import {
  __commonJS
} from "./chunk-DZZM6G22.js";

// node_modules/@mescius/spread-sheets/dist/gc.spread.sheets.all.min.js
var require_gc_spread_sheets_all_min = __commonJS({
  "node_modules/@mescius/spread-sheets/dist/gc.spread.sheets.all.min.js"(exports, module) {
    var GC;
    !(function() {
      var t, n = { "./all.entry.js": function(t2, n2, e2) {
        (GC = GC || {}).Spread = GC.Spread || {}, GC.Spread = e2("./node_modules_local/@spreadjs/js-sheets-common/index.js"), GC.Spread.CalcEngine = e2("./node_modules_local/@spreadjs/js-calc/index.js"), GC.Spread.CalcEngine.BasicFunctions = e2("./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js"), GC.Spread.CalcEngine.AdvancedFunctions = e2("./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js"), GC.Data = e2("./node_modules_local/@spreadjs/js-data-manager/index.js"), GC.Spread.Sheets = e2("./dist/core/core.entry.js"), GC.Spread.Sheets.Bindings = e2("./dist/plugins/data/data.entry.js"), GC.Spread.Sheets.Outlines = e2("./dist/plugins/group/group.entry.js"), GC.Spread.Sheets.CalcEngine = e2("./dist/plugins/sheetsCalc/sheetsCalc.entry.js"), GC.Spread.Sheets.ConditionalFormatting = e2("./dist/plugins/conditional/conditional.entry.js"), GC.Spread.Sheets.DataValidation = e2("./dist/plugins/validation/datavalidation.entry.js"), GC.Spread.Sheets.Search = e2("./dist/plugins/search/search.entry.js"), GC.Spread.Sheets.Touch = e2("./dist/plugins/touch/touch.entry.js"), GC.Spread.Sheets.FloatingObjects = e2("./dist/plugins/floatingObject/floatingobject.entry.js"), GC.Spread.Sheets.Sparklines = e2("./dist/plugins/sparkline/sparkline-wrapper.entry.js"), GC.Spread.Sheets.Comments = e2("./dist/plugins/comment/comment.entry.js"), GC.Spread.Sheets.CellState = e2("./dist/plugins/cellState/cellstate.entry.js"), GC.Spread.Sheets.CellTypes = e2("./dist/plugins/celltype/celltypes.entry.js"), GC.Spread.Sheets.Filter = e2("./dist/plugins/filter/filter.entry.js"), GC.Spread.Sheets.Tables = e2("./dist/plugins/table/table.entry.js"), GC.Spread.Sheets.Fill = e2("./dist/plugins/fill/fill.entry.js"), GC.Spread.Sheets.ContextMenu = e2("./dist/plugins/contextMenu/context-menu.entry.js"), GC.Spread.Sheets.FormulaTextBox = e2("./dist/plugins/formulaTextbox/formulaTextBox.entry.js"), GC.Spread.Sheets.OutlineColumn = e2("./dist/plugins/outlineColumn/outlineColumn.entry.js"), GC.Spread.Sheets.DragMerge = e2("./dist/plugins/dragMerge/dragMerge.entry.js"), GC.Spread.Sheets.StatusBar = e2("./dist/plugins/statusBar/statusBar.entry.js"), GC.Spread.Sheets.AutoMerge = e2("./dist/plugins/autoMerge/autoMerge.js"), GC.Spread.Sheets.Hyperlink = e2("./dist/plugins/hyperlink/hyperlink.js"), GC.Spread.Sheets.NameBox = e2("./dist/plugins/namebox/namebox.entry.js"), GC.Spread.Sheets.Components = e2("./dist/plugins/components/index.js"), GC.Spread.Sheets.InputMask = e2("./dist/plugins/inputMask/inputMask.entry.js"), GC.Spread.Sheets.Spacing = e2("./dist/plugins/spacing/spacing.entry.js"), GC.Spread.Sheets.DataRange = e2("./dist/plugins/dataRange/dataRange.entry.js"), t2.exports = GC.Spread;
      }, "./dist/core/celltype/basecelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut;
        function st(t3) {
          var n3 = t3.isPrinting, e3 = t3.printZoomFactor;
          return n3 && typeof e3 === L && 1 !== e3;
        }
        function ct(t3) {
          var n3;
          return !(t3 instanceof CanvasRenderingContext2D) && !I(t3._ae);
        }
        function ft(t3, n3) {
          var e3 = 0, i3 = t3.font + n3, r2 = !ct(t3);
          return r2 && J[i3] ? e3 = J[i3] : (e3 = T(t3, t3.font, n3), r2 && (J[i3] = e3)), e3;
        }
        function lt(t3, n3) {
          var e3;
          return n3 / 2 - t3 / 2 + (t3 > 8 ? P((t3 - 8) / 5 + 2) : 1) - 1;
        }
        function ht(t3, n3, e3) {
          return p(t3.x) || (t3.x += n3.width), t3.width = t3.width - n3.width - e3.width, t3;
        }
        function dt(t3, e3, i3, r2, a2) {
          var u2, s2 = i3 + " - " + e3 + " - " + t3;
          return n2.wordWrapInfoCache || (n2.wordWrapInfoCache = {}), u2 = 2e3, I(n2.clearCacheTimer) && (n2.clearCacheTimer = setTimeout((function() {
            n2.wordWrapInfoCache = null, n2.clearCacheTimer = null;
          }), u2)), n2.wordWrapInfoCache[s2] || (n2.wordWrapInfoCache[s2] = o.q.un(t3, e3, i3, false, a2)), n2.wordWrapInfoCache[s2];
        }
        function vt(t3, n3) {
          return a.W.gfe(t3, s.IconPosition.left) && (n3 += 1), a.W.gfe(t3, s.IconPosition.right) && (n3 += 2), n3;
        }
        function pt(t3, n3) {
          return a.W.gfe(t3, s.IconPosition.left) && (n3 -= 1), a.W.gfe(t3, s.IconPosition.right) && (n3 -= 2), n3;
        }
        function gt(t3, n3, e3) {
          var i3 = t3.text;
          return e3 && (i3 = (0, o.W3e)(i3)), i3 === n3;
        }
        function mt(t3) {
          return !!t3 && (o.util.Yf(t3) || o.util.Hcr(t3));
        }
        function bt(t3, n3) {
          var e3 = "inherit";
          return n3 && "=" !== n3[0] && (t3 === s.TextDirectionType.rightToLeft || t3 === s.TextDirectionType.context && mt(n3)) && (e3 = "rtl"), e3;
        }
        function yt(t3, n3, e3, i3) {
          var r2, o2 = t3.conditionalFormats;
          if (o2) return r2 = t3.getValue(n3, e3, i3), o2.O(n3, e3, i3) && o2.U(t3, n3, e3, r2, i3).iconSet;
        }
        function wt(t3, n3, e3) {
          var i3, r2, o2 = 0;
          for (i3 = 0; i3 < t3.length; i3++) r2 = void 0, r2 = t3[i3].style && t3[i3].style.font ? t3[i3].style.font : n3, o2 = Math.max(b(r2, t3[i3].text) / e3, o2), (t3[i3].style && 1 === t3[i3].style.vertAlign || 2 === t3[i3].style.vertAlign) && (o2 = Math.max(b(r2, t3[i3].text) / e3 + 2 * a.W.V(r2, K).fontSize * 0.218, o2));
          return o2;
        }
        function Mt(t3, n3, e3, i3, r2) {
          var u2, s2, c2, f2, l2, h2 = o.q.J();
          if (!h2) return 0;
          for (u2 = 0, s2 = 0; s2 < t3.length; s2++) c2 = void 0, c2 = t3[s2].style && t3[s2].style.font ? t3[s2].style.font : n3, t3[s2].style && t3[s2].style.vertAlign && (c2 = a.W.V(c2, K).font), M(h2, c2), f2 = "", f2 = s2 === t3.length - 1 && r2 ? o.q.tt(t3[s2].text) : t3[s2].text, l2 = 0, i3 ? l2 = b(c2, f2) * f2.length / e3 : p(t3[s2].text) || (l2 = T(h2, c2, t3[s2].text) / e3), u2 += l2;
          return u2;
        }
        function Ct(t3, n3, e3, i3, r2) {
          var a2, u2, s2 = o.q.J();
          if (!s2) return 0;
          for (a2 = 0, u2 = 0; u2 < t3.length; u2++) a2 += Mt(t3[u2], n3, e3, i3, r2);
          return a2;
        }
        function St(t3, n3, e3, i3, r2, o2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, g2, m2, b2 = u2.backColor, y2 = u2.backgroundImage, w2 = u2.isVerticalText, M2 = u2.textIndent && 0 !== u2.textIndent, C2 = u2.backgroundImageLayout, S2 = c2.row, T2 = c2.col, x2 = c2.sheet, A2 = x2.Jt, I2 = c2.sheet && c2.sheet.getSpan(S2, T2, c2.sheetArea), k2 = u2 && (u2.borderLeft || u2.borderTop || u2.borderRight || u2.borderBottom), N2 = 0, j2 = n3, D2 = x2.options.rightToLeft && z(u2.textOrientation) < 90 ? -u2.textOrientation : u2.textOrientation;
          t3.save(), T2 + 1 < x2.getColumnCount() && (v2 = A2.qt(S2, T2 + 1)), T2 - 1 >= 0 && (p2 = A2.qt(S2, T2 - 1)), g2 = function(t4) {
            return t4 !== B && t4 && -90 <= t4 && t4 <= 90;
          }, m2 = function() {
            t3.fillRect(n3, e3, i3, r2);
          }, D2 && 0 !== D2 && k2 && s2 && !I2 && !w2 && !M2 && (f2 = z(D2 * Math.PI / 180), l2 = V(f2), N2 = P(r2 / l2), D2 > -90 && D2 < 0 && (v2 && !g2(v2.textOrientation) && (d2 = v2.backColor), j2 = n3 - N2), D2 > 0 && D2 < 90 && (p2 && !g2(p2.textOrientation) && (d2 = p2.backColor), j2 = n3 + N2), h2 = function() {
            t3.beginPath(), t3.moveTo(j2, e3), t3.lineTo(j2 + i3, e3), t3.lineTo(n3 + i3, e3 + r2), t3.lineTo(n3, e3 + r2), t3.fill();
          }), b2 && (d2 && a.W.setFillStyle(t3, d2, n3, e3, i3, r2, m2), h2 ? a.W.setFillStyle(t3, b2, Math.min(j2, n3), e3, i3 + N2, r2, h2) : b2 !== c2.parentBackColor && a.W.setFillStyle(t3, b2, n3, e3, i3, r2, m2)), it.nt(t3, n3, e3, i3, r2, y2, C2, o2), t3.restore();
        }
        function Tt(t3, n3, e3, i3, r2, o2, a2) {
          if ((0 === t3 || 5 === t3 || a2) && yt(n3, e3, i3, r2)) {
            var u2 = xt(n3);
            o2.x += u2, o2.width -= u2;
          }
        }
        function xt(t3) {
          return parseInt(E * t3.zoom(), 10);
        }
        function At(t3, n3, e3, i3) {
          var r2 = t3.cellPadding, o2 = 0, a2 = t3.labelOptions;
          return e3 && (r2 = a2 ? a2.margin : "0"), r2 && (o2 = typeof (o2 = parseInt(Et(r2)[n3], 10)) === L && o2 > 0 ? o2 : 0), i3 === B ? o2 : o2 * i3;
        }
        function It(t3) {
          var n3 = { context: t3, value: 0 };
          return ut.et(t3.sheet, "getOutlineColumnOffset", n3), n3.value;
        }
        function kt(t3, n3) {
          var e3 = { context: t3, value: 0, cellStyle: n3 };
          return ut.et(t3.sheet, "getCellButtonAutoWidth", e3), e3.value;
        }
        function Nt(t3, n3) {
          var e3 = { context: t3, value: 0, cellStyle: n3 };
          return pn(e3), ut.et(t3.sheet, "getSpecialIconsAutoWidth", e3), e3.value;
        }
        function jt(t3, n3) {
          var e3 = { context: t3, value: 0, cellStyle: n3 };
          return ut.et(t3.sheet, "getCellButtonAutoHeight", e3), e3.value;
        }
        function Dt(t3, n3) {
          var e3 = { context: t3, value: 0, cellStyle: n3 };
          return gn(e3), ut.et(t3.sheet, "getSpecialIconsAutoHeight", e3), e3.value;
        }
        function _t(t3, n3) {
          var e3, i3, r2, o2, a2 = n3 && n3.sheet;
          if (a2 && t3) return e3 = n3.canvasOffset || a2.rt.it(), i3 = a2.ot(), { top: r2 = e3.top + i3.y + t3.y - 2, left: o2 = e3.left + i3.x + t3.x - 2 };
        }
        function Ot(t3, n3, e3, i3) {
          var o2, a2, u2, s2, c2, f2 = i3 && i3.sheet;
          f2 && e3 && (a2 = (o2 = _t(e3, i3)).left, u2 = o2.top, (s2 = n3.backColor || "white").stops && (s2 = (c2 = s2.stops)[0] && c2[0].color), s2.backgroundColor && (s2 = s2.backgroundColor), (0, r.GC$)(t3).width(e3.width).height(e3.height).css({ top: u2, left: a2, "background-color": s2 }));
        }
        function Et(t3) {
          var n3, e3, i3, r2, o2 = ["0", "0", "0", "0"];
          return typeof t3 === R && (i3 = void 0, r2 = void 0, 1 === (e3 = (n3 = t3.split(" ", 4)).length) ? o2 = [i3 = n3[0], i3, i3, i3] : 2 === e3 ? o2 = [i3 = n3[0], r2 = n3[1], i3, r2] : 3 === e3 ? (r2 = n3[1], o2 = [n3[0], r2, n3[2], r2]) : 4 === e3 && (o2 = [n3[0], n3[1], n3[2], n3[3]])), o2;
        }
        function Rt(t3, n3) {
          var e3, i3 = At(t3, 0), r2 = At(t3, 2), o2 = At(t3, 0, true), a2 = At(t3, 2, true);
          if (At(t3, 3, true) + At(t3, 1, true) >= n3.width) return false;
          if ((e3 = t3.labelOptions.alignment) === B && (e3 = t3.labelOptions.alignment = 0), 0 === e3 || 1 === e3 || 2 === e3) {
            if (i3 > 0 && o2 + a2 < i3) return true;
          } else if ((3 === e3 || 4 === e3 || 5 === e3) && i3 < n3.height && r2 > 0 && o2 + a2 < r2) return true;
          return false;
        }
        function Lt(t3, n3) {
          var e3 = At(n3, 0), i3 = At(n3, 3, true), r2 = At(n3, 2, true), o2 = t3.clone(), a2 = n3.labelOptions.alignment;
          return 0 === a2 || 1 === a2 || 2 === a2 ? e3 < t3.height && (o2.height = e3 - r2 + 1) : 3 !== a2 && 4 !== a2 && 5 !== a2 || (o2.height = t3.height - r2), o2.x += i3, o2.width -= i3 + At(n3, 1, true), o2;
        }
        function Ft(t3) {
          var n3 = "left";
          return 1 === t3 || 4 === t3 ? n3 = "center" : 2 !== t3 && 5 !== t3 || (n3 = "right"), n3;
        }
        function Bt(t3, n3, e3, i3) {
          var r2 = new o.Point(t3.x, t3.y), a2 = parseInt(e3.fontSize, 10), u2 = At(n3, 0), s2 = At(n3, 2), c2 = At(n3, 3, true), f2 = At(n3, 1, true), l2 = t3.width, h2 = t3.height, d2 = a2 > 8 ? Math.floor((a2 - 8) / 5 + 2) : 1, v2 = i3 / 2 - a2 / 2 + d2 - 1, p2 = a2 > 8 ? 1 : 2, g2 = i3 - v2 + At(n3, 0, true), m2 = g2 + 1, b2 = u2 + s2 > h2 ? u2 + g2 : h2 - s2 + g2 - 1;
          switch (n3.labelOptions.alignment) {
            case 0:
              r2.x += c2 + p2 + 1, r2.y += m2;
              break;
            case 1:
              r2.x += c2 + (l2 - c2 - f2) / 2, r2.y += m2;
              break;
            case 2:
              r2.x += l2 - f2 - 2, r2.y += m2;
              break;
            case 3:
              r2.x += c2 + p2 + 1, r2.y += b2;
              break;
            case 4:
              r2.x += c2 + (l2 - c2 - f2) / 2, r2.y += b2;
              break;
            case 5:
              r2.x += l2 - f2 - 2, r2.y += b2;
          }
          return r2;
        }
        function Pt(t3, n3) {
          var e3 = At(n3, 3, true), i3 = At(n3, 1, true), r2 = At(n3, 0, true), o2 = At(n3, 2, true), a2 = t3.clone(), u2 = n3.labelOptions.alignment;
          return a2.x = e3 + 1, a2.width -= e3 + i3, 0 === u2 || 1 === u2 || 2 === u2 ? (a2.y = r2, a2.height = At(n3, 0) - r2 - o2) : 3 !== u2 && 4 !== u2 && 5 !== u2 || (a2.y = t3.height - At(n3, 2) + r2, a2.height = At(n3, 2) - r2 - o2), 2 !== u2 && 5 !== u2 || (a2.width -= 2), a2;
        }
        function Gt(t3, n3, e3, i3) {
          var r2, a2;
          if (g(n3, R)) return ft(t3, n3);
          if (e3 && n3 && n3[0] && n3[0].value) return n3[0].value.length * b(t3.font, n3[0].value);
          for (i3 && Array.isArray(n3) && (n3 = (0, o.getTextContentWithoutEndBlank)(n3)), r2 = 0, a2 = 0; a2 < n3.length; a2++) "fillingChar" !== n3[a2].type && (r2 += ft(t3, n3[a2].value));
          return r2;
        }
        function Ut(t3) {
          var n3, e3, i3, r2 = null === (n3 = t3[0]) || void 0 === n3 ? void 0 : n3.type, o2 = 0, a2 = [t3[0]];
          for (e3 = 1; e3 < t3.length; e3++) i3 = t3[e3], r2 === Z && i3.type === Z ? a2[o2].value += i3.value : (a2.push(i3), r2 = i3.type, o2++);
          return a2;
        }
        function Ht(t3, n3, e3, i3, r2) {
          var o2;
          return o2 = i3 ? Math.floor(n3 / r2) : Math.floor(n3 / T(t3, t3.font, e3)), new Array(o2 + 1).join(e3);
        }
        function Vt(t3) {
          var n3 = t3.clone();
          return n3.width--, n3.height--, n3;
        }
        function zt(t3, n3, e3, i3) {
          var r2, o2, u2;
          for (r2 = 0; r2 < t3.length; r2++) o2 = void 0, t3[r2].style = t3[r2].style || {}, (u2 = t3[r2].style).font ? (o2 = a.W.V(u2.font, e3).font, p(i3) || (o2 = a.W.V(o2, i3).font)) : o2 = "object" == typeof n3 ? n3.font : n3, u2.font = o2;
        }
        function Yt(t3, n3, e3, i3, r2) {
          var a2 = e3 * H(-i3) + r2 * U(-i3), u2 = e3 * H(-i3) + r2 * U(-i3), s2 = t3 - a2 / 2, c2 = n3 - u2 / 2;
          return new o.Rect(s2, c2, a2, u2);
        }
        function Zt(t3) {
          return "string" == typeof t3.src && t3.src.length > 0 && -1 === t3.src.indexOf("<script");
        }
        function Wt(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          I(e3) || (u2 = { context: i3, style: e3 }, ut.et(i3.sheet, "beforePaintDecoration", u2), (null === (r2 = e3.decoration) || void 0 === r2 ? void 0 : r2.cornerFold) && Qt(t3, n3, e3.decoration.cornerFold, i3), (null === (a2 = null === (o2 = e3.decoration) || void 0 === o2 ? void 0 : o2.icons) || void 0 === a2 ? void 0 : a2.length) > 0 && Kt(t3, n3, e3.decoration.icons.filter((function(t4) {
            return Zt(t4);
          })), e3.vAlign, i3));
        }
        function Qt(t3, n3, e3, i3) {
          var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = e3.size, b2 = e3.position, y2 = e3.color;
          I(m2) && (m2 = 6), I(b2) && (b2 = u.CornerPosition.leftTop), r2 = n3.x, o2 = n3.y, a2 = n3.height, s2 = n3.width, f2 = m2 * (c2 = i3.sheet).zoom(), t3 && s2 > 0 && a2 > 0 && (t3.save(), t3.rect(r2, o2, s2, a2), t3.clip(), t3.fillStyle = y2 || "#FF3D00", t3.beginPath(), t3.fillStyle = y2, l2 = void 0, h2 = void 0, d2 = void 0, v2 = void 0, p2 = void 0, g2 = void 0, b2 & u.CornerPosition.leftTop && (d2 = r2, v2 = (h2 = o2) + f2, p2 = (l2 = r2) + f2, g2 = h2, t3.moveTo(l2, h2), t3.lineTo(d2, v2), t3.lineTo(p2, g2), t3.fill()), b2 & u.CornerPosition.rightBottom && (d2 = l2 = r2 + s2, v2 = (h2 = o2 + a2) - f2, p2 = l2 - f2, g2 = h2, t3.moveTo(l2, h2), t3.lineTo(d2, v2), t3.lineTo(p2, g2), t3.fill()), b2 & u.CornerPosition.leftBottom && (d2 = r2, v2 = (h2 = o2 + a2) - f2, p2 = (l2 = r2) + f2, g2 = h2, t3.moveTo(l2, h2), t3.lineTo(d2, v2), t3.lineTo(p2, g2), t3.fill()), b2 & u.CornerPosition.rightTop && (d2 = l2 = r2 + s2, v2 = (h2 = o2) + f2, p2 = l2 - f2, g2 = h2, t3.moveTo(l2, h2), t3.lineTo(d2, v2), t3.lineTo(p2, g2), t3.fill()), t3.closePath(), t3.restore());
        }
        function Kt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, c2, f2, l2, h2;
          if (!r2.cellOverflowLayout && e3.length > 0 && (o2 = e3.filter((function(t4) {
            return I(t4.position) || t4.position === s.IconPosition.left;
          })), a2 = e3.filter((function(t4) {
            return t4.position === s.IconPosition.right;
          })), (u2 = o2.concat(a2)).length > 0)) {
            if (dn(u2, r2), !t3) return;
            c2 = vn(n3.clone(), r2), t3.save(), t3.rect(c2.x, c2.y, c2.width, c2.height), t3.clip(), t3.beginPath(), l2 = f2 = c2.x, h2 = c2.x + c2.width, o2.length > 0 && (l2 = f2 = nn(t3, o2, c2, i3, r2)), a2.length > 0 && (h2 = f2 = $t(t3, a2, c2, i3, r2)), t3.restore(), n3.width = n3.x + n3.width - (c2.x + c2.width - h2) - l2, n3.x = l2;
          }
        }
        function Jt(t3, n3, e3, i3, r2) {
          if (t3 && e3.length > 0) {
            var o2 = e3.filter((function(t4) {
              return t4.position === s.IconPosition.outsideLeft && Zt(t4);
            })), a2 = e3.filter((function(t4) {
              return t4.position === s.IconPosition.outsideRight && Zt(t4);
            })), u2 = 3, c2 = n3.x;
            (o2.length > 0 || a2.length > 0) && (dn(o2, r2), dn(a2, r2), 2 === r2.columnHeaderFitMode && r2.cornerX && ((n3 = n3.clone()).height = n3.height - (r2.cornerY - n3.y) - 1, n3.y = r2.cornerY - 1), o2.length > 0 && (n3.x = c2 - 3, Xt(t3, o2, n3, i3, r2)), a2.length > 0 && (n3.x = c2 + 3, qt(t3, a2, n3, i3, r2)));
          }
        }
        function Xt(t3, n3, e3, i3, r2) {
          tn(t3, n3, e3.x, e3, i3, r2);
        }
        function qt(t3, n3, e3, i3, r2) {
          en(t3, n3, e3.x + e3.width, e3, i3, r2);
        }
        function $t(t3, n3, e3, i3, r2) {
          return tn(t3, n3, e3.x + e3.width, e3, i3, r2);
        }
        function tn(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = fn(o2), c2 = s2;
          for (e3 -= c2, a2 = n3.length - 1; a2 >= 0; a2--) e3 -= u2 = ln(o2, n3[a2], "width"), on(t3, n3[a2], e3, i3.y, u2, i3.height, o2, i3, r2);
          return e3;
        }
        function nn(t3, n3, e3, i3, r2) {
          return en(t3, n3, e3.x, e3, i3, r2);
        }
        function en(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = fn(o2), c2 = s2;
          for (e3 += c2, a2 = 0; a2 < n3.length; a2++) u2 = ln(o2, n3[a2], "width"), on(t3, n3[a2], e3, i3.y, u2, i3.height, o2, i3, r2), e3 += u2;
          return e3;
        }
        function rn(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = n3.ctx, c2 = n3.style, f2 = n3.context, l2 = n3.textRect, h2 = n3.availRect;
          !I(c2.decoration) && u2 && (e3 = "beforeFillTextArea" === t3 ? s.IconPosition.leftOfText : s.IconPosition.rightOfText, (i3 = c2.decoration.icons && c2.decoration.icons.filter((function(t4) {
            return t4.position === e3 && Zt(t4);
          }))) && i3.length > 0 && (dn(i3, f2), 2 === f2.columnHeaderFitMode && f2.cornerX && (r2 = f2.cellRect.x + f2.cellRect.width - (h2.x + h2.width), (h2 = h2.clone()).width = f2.cornerX - h2.x - r2, h2.height = h2.height - (f2.cornerY - h2.y) - 1, h2.y = f2.cornerY - 1), o2 = void 0, a2 = sn(h2, l2, e3), u2.save(), u2.rect(a2.x, a2.y, a2.width, a2.height), u2.clip(), u2.beginPath(), e3 === s.IconPosition.leftOfText ? (o2 = $t(u2, i3, a2, c2.vAlign, f2), l2.x = o2) : (o2 = nn(u2, i3, a2, c2.vAlign, f2), l2.width = o2 - l2.x), u2.restore()));
        }
        function on(t3, n3, e3, i3, r2, a2, u2, c2, f2) {
          var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2;
          return t3.save(), t3.beginPath(), t3.rect(e3, i3, r2, a2), t3.clip(), l2 = 0, h2 = hn(u2), d2 = n3.src, h2.getState(d2) ? h2.qh(d2) && (v2 = new o.Rect(e3, i3, r2, a2), p2 = ln(u2, n3, "width"), g2 = ln(u2, n3, "height"), b2 = cn(v2, m2 = new o.Rect(0, 0, p2, g2), f2, fn(u2)), n3.position !== s.IconPosition.leftOfText && n3.position !== s.IconPosition.rightOfText || ((y2 = u2.textRect) && (b2.y = W(y2.y - y2.height / 2 - m2.height / 2, i3 + 4)), b2.y + b2.height > v2.y + v2.height && (b2.y = W(b2.y - (b2.y + b2.height - v2.y - v2.height), v2.y))), M2 = (w2 = h2.getImage(d2)).width, C2 = w2.height, o.mt.Tt.msie && (q[d2] || (w2.style.position = "absolute", w2.style.left = "-10000px", w2.style.top = "-100000px", document.body.appendChild(w2), q[d2] = { width: w2.width, height: w2.height }, document.body.removeChild(w2)), M2 = q[d2].width, C2 = q[d2].height), c2 && o.mt.Tt.msie && b2.x + b2.width > c2.x + c2.width ? (S2 = l2 = c2.x + c2.width - b2.x) > 0 && (T2 = M2 / p2, t3.drawImage(w2, 0, 0, S2 * T2, C2, G(b2.x), G(b2.y), S2, g2)) : (l2 = p2, t3.drawImage(w2, 0, 0, M2, C2, G(b2.x), G(b2.y), l2, g2))) : h2.addImage(d2, "anonymous"), t3.restore(), l2;
        }
        function an(t3) {
          var n3 = t3.context, e3 = t3.style, i3 = t3.externals;
          a.W.Xue(e3) && (i3.left = i3.left.concat(un(n3, e3, s.IconPosition.leftOfText)), i3.right = i3.right.concat(un(n3, e3, s.IconPosition.rightOfText)));
        }
        function un(t3, n3, e3) {
          var i3, r2, o2, a2 = false;
          for (i3 = 0, r2 = n3.decoration.icons; i3 < r2.length; i3++) if ((o2 = r2[i3]).Ltr) {
            a2 = true;
            break;
          }
          return n3.decoration.icons.filter((function(n4) {
            return n4.position === e3 && (!t3.cellOverflowLayout || a2);
          })).map((function(n4) {
            return { width: ln(t3, n4, "width"), height: ln(t3, n4, "height"), isStick: n4.Ltr };
          }));
        }
        function sn(t3, n3, e3) {
          switch (e3) {
            case s.IconPosition.leftOfText:
              return new o.Rect(t3.x, t3.y, n3.x - t3.x, t3.height);
            case s.IconPosition.rightOfText:
              return new o.Rect(n3.x + n3.width, t3.y, t3.x + t3.width - n3.x - n3.width, t3.height);
          }
        }
        function cn(t3, n3, e3, i3) {
          var r2, a2 = 2 * i3;
          switch (e3) {
            case s.VerticalAlign.top:
              r2 = 0 + a2;
              break;
            case s.VerticalAlign.bottom:
              r2 = Math.max(0, t3.height - n3.height) - a2;
              break;
            default:
              r2 = Math.max(0, (t3.height - n3.height) / 2);
          }
          return new o.Rect(t3.x, t3.y + r2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
        }
        function fn(t3) {
          return st(t3) ? t3.printZoomFactor : t3.sheet.zoom();
        }
        function ln(t3, n3, e3) {
          var i3 = n3[e3], r2 = fn(t3);
          return (I(i3) || isNaN(i3) || i3 <= 0) && (i3 = 12), i3 * r2;
        }
        function hn(t3) {
          var n3 = t3.sheet, e3;
          return n3.MC || t3.imageLoader || n3.BO();
        }
        function dn(t3, n3) {
          var e3, i3, r2 = hn(n3);
          for (e3 = 0; e3 < t3.length; e3++) (i3 = t3[e3].src) && r2.addImage(i3, "anonymous");
        }
        function vn(t3, n3) {
          return 2 === n3.columnHeaderFitMode && n3.cornerX && (t3.width = n3.cornerX - t3.x, t3.height = t3.height - (n3.cornerY - t3.y) - 1, t3.y = n3.cornerY - 1), t3;
        }
        function pn(t3) {
          mn(t3, "width");
        }
        function gn(t3) {
          mn(t3, "height");
        }
        function mn(t3, n3) {
          var e3, i3, r2, o2, u2 = t3.cellStyle;
          if (u2.decoration && u2.decoration.icons && 0 !== u2.decoration.icons.length) {
            for (e3 = u2.decoration.icons, i3 = 0, r2 = 0; r2 < e3.length; r2++) o2 = e3[r2], a.W.Kue(o2) && (i3 += ln(t3.context, o2, n3));
            t3.value = i3;
          }
        }
        function bn(t3, n3, e3) {
          var i3, r2, o2 = (t3.length - 1) * n3, a2 = t3[0], u2 = t3[t3.length - 1], s2 = document.createElement("canvas"), c2 = s2.getContext("2d");
          return c2.font = e3.font, i3 = c2.measureText(a2), r2 = c2.measureText(u2), { height: o2 = i3.actualBoundingBoxAscent + r2.actualBoundingBoxDescent + o2, descenderHeight: r2.actualBoundingBoxDescent };
        }
        function yn(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2 = e3.content;
          if (h2 && h2.length > 0) for (f2 = (f2 = o2 - a2 - (c2 = Gt(t3, h2, true)) - 2) > 0 ? f2 : 0, l2 = void 0, s2 = 0; s2 < h2.length; s2++) "fillingChar" === h2[s2].type || "numberPlaceholder" === h2[s2].type ? r2 += f2 : "placeholder" === h2[s2].type ? r2 += h2[s2].value ? h2[s2].value.length * u2 : 0 : r2 += l2 = h2[s2].value ? h2[s2].value.length * u2 : 0;
          else if (n3) for (s2 = 0; s2 < n3.length; s2++) r2 = wn(t3, n3[s2], i3, r2).y;
          return r2;
        }
        function wn(t3, n3, e3, i3) {
          var r2, o2, u2, s2;
          if (n3 && n3.length > 0) for (r2 = t3.font, o2 = b(r2, n3), u2 = lt(a.W.V(r2, 1).fontSize, o2), s2 = 0; s2 < n3.length; s2++) i3 = i3 + o2 - u2, i3 += u2;
          return { x: e3, y: i3 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Context = n2.Base = n2.paintStyleDecorationOutSideIcons = n2.paintDecoration = n2.getEditorPosition = n2.cellTypeContext_paintBackground = n2.clearCacheTimer = n2.wordWrapInfoCache = n2.isPrintZoomFactorExist = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/worksheet/stylehelper.js"), u = e2("./dist/core/core.interface.js"), s = e2("./dist/core/core.enum.js"), c = e2("./dist/core/celltype/celltype.ns.js"), f = e2("CalcEngine"), l = i2.Common.CultureManager, h = i2.Common.st, d = i2.Common.ct, v = i2.Common.lt, p = v.ht, g = v.dt, m = o.mt.vt, b = o.mt.qao, y = o.mt.gt, w = o.mt.pt, M = o.mt.bt, C = o.mt.yt, S = o.mt.wt, T = o.mt.Mt, x = o.mt.Ct, A = o.mt.St, I = i2.Common.lt.ht, k = r.GC$.extend, N = o.mt.Tt, j = "left", D = "right", _ = "center", O = "alphabetic", E = 16, R = "string", L = "number", F = null, B = void 0, P = Math.floor, G = Math.ceil, U = Math.sin, H = Math.cos, V = Math.tan, z = Math.abs, Y = "General", Z = "text", W = Math.max, Q = Math.min, K = 0.7, J = {}, X = "...", q = {}, tt = " ", nt = new RegExp($ = " ", "g"), (function(t3) {
          t3[t3.top = 0] = "top", t3[t3.right = 1] = "right", t3[t3.bottom = 2] = "bottom", t3[t3.left = 3] = "left";
        })(et || (et = {})), n2.isPrintZoomFactorExist = st, it = (function() {
          function t3() {
          }
          return t3.At = function(t4) {
            var n3, e3, i3 = t4.split("e")[1];
            if (i3 && i3.length > 0 && ("+" === i3[0] ? n3 = true : "-" === i3[0] && (n3 = false), e3 = i3.slice(1)), void 0 !== n3) return { isAdd: n3, length: e3 };
          }, t3.It = function(n3, e3, i3) {
            var r2 = t3.xt, o2 = r2[e3 + i3];
            return o2 || (o2 = T(n3, e3, i3), r2[e3 + i3] = o2), o2;
          }, t3.Nt = function(n3, e3, i3, r2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = r2.font;
            if (i3 = i3 - 1 - pt(r2, 3) * a2, u2 = r2.textIndent && 0 !== r2.textIndent, s2 = r2.isVerticalText, typeof e3 === L && true !== r2.shrinkToFit && !s2 && !u2) {
              if (c2 = e3 < 0, e3 = z(e3), f2 = c2 ? t3.It(n3, I2, "-") : 0, l2 = e3.toString(), (h2 = t3.At(l2)) && false === h2.isAdd && (d2 = o.mt.toPlainString(e3)).split(".")[1].length < 10 && (l2 = d2, h2 = B), v2 = void 0, p2 = t3.Dt(r2._autoFormatter, e3), h2) return v2 = h2.length.toString().length, v2 = W(v2, 2), t3._t(n3, i3, r2, v2, f2, h2.isAdd, p2);
              if (g2 = f2, m2 = t3.It(n3, I2, "0"), b2 = l2.split("."), g2 += w2 = m2 * (y2 = Math.round(e3).toString().length), M2 = t3.It(n3, I2, "."), C2 = void 0, w2 <= i3) {
                if (!b2[1] || 0 === b2[1].length) return r2._autoFormatter;
                if ((g2 = g2 + b2[1].length * m2 + M2) <= i3) return r2._autoFormatter;
                if (e3 < 1e-3) return v2 = b2[1].length.toString().length, v2 = W(v2, 2), t3._t(n3, i3, r2, v2, f2, false, p2);
                for (S2 = i3 - f2 - w2 - M2, T2 = Math.floor(S2 / m2), C2 = "0", (T2 = Math.min(T2, b2[1].length)) > 0 && (C2 += "."), x2 = 0; x2 < T2; x2++) C2 += "0";
                return C2;
              }
              return v2 = (A2 = Math.round(e3)).toString().length.toString().length, v2 = W(v2, 2), t3._t(n3, i3, r2, v2, f2, true, p2);
            }
            return r2._autoFormatter;
          }, t3._t = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2 = i3.font, h2 = t3.It(n3, l2, "0"), d2 = t3.It(n3, l2, "E"), v2 = t3.It(n3, l2, "+"), p2 = t3.It(n3, l2, "-"), g2 = a2 ? v2 : p2, m2 = t3.It(n3, l2, "."), b2 = e3 - o2 - r2 * h2 - d2 - g2 - h2, y2 = b2 - m2;
            if (y2 <= h2) return a2 ? "0E+00" : b2 > 0 ? "0E-00" : "0";
            for (s2 = Math.floor(y2 / h2), s2 = Math.min(s2, u2), c2 = "0", f2 = 0; f2 < s2; f2++) 0 === f2 && (c2 += "."), c2 += "0";
            return c2 += a2 ? "E+00" : "E-00";
          }, t3.Et = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = r2.font;
            if (i3 = i3 - 1 - pt(r2, 3) * o2, a2 = r2.textIndent || 0, s2 = i3, 1 !== (u2 = r2.hAlign) && a2 > 0 && (s2 = i3 - 8 * a2), s2 < (c2 = T(n3, v2, e3))) {
              for (f2 = t3.It(n3, v2, "#"), l2 = Math.floor(i3 / f2), h2 = "", d2 = 0; d2 < l2; d2++) h2 += "#";
              return h2;
            }
            return e3;
          }, t3.nt = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2;
            if (o2 && "none" !== o2 && u2) try {
              u2.getState(o2) ? (s2 = u2.getImage(o2), c2 = void 0, N.msie && ((c2 = document.createElement("div")).appendChild(s2), document.body.appendChild(c2)), f2 = s2.width, l2 = s2.height, N.msie && (c2.removeChild(s2), document.body.removeChild(c2)), h2 = 0, d2 = 0, v2 = f2, p2 = l2, g2 = i3, m2 = r2, b2 = n3, y2 = e3, 1 === a2 ? (v2 = i3 >= f2 ? f2 : i3, p2 = r2 >= l2 ? l2 : r2, b2 = i3 > f2 && f2 > 0 ? G(n3 + i3 / 2 - f2 / 2) : n3, y2 = r2 > l2 && l2 > 0 ? G(e3 + r2 / 2 - l2 / 2) : e3, g2 = v2, m2 = p2) : 2 === a2 ? r2 > 0 && l2 > 0 && i3 / r2 > f2 / l2 ? b2 = n3 + i3 / 2 - (g2 = f2 / l2 * r2) / 2 : i3 > 0 && f2 > 0 && r2 / i3 > l2 / f2 && (y2 = e3 + r2 / 2 - (m2 = l2 / f2 * i3) / 2) : 3 === a2 && (g2 = v2 = i3 >= f2 ? f2 : i3, m2 = p2 = r2 >= l2 ? l2 : r2), t4.drawImage(s2, h2, d2, v2, p2, b2, y2, g2, m2)) : u2.addImage(o2);
            } catch (t5) {
            }
          }, t3.Bt = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = 0, I2 = r2 && r2.sheet, N2 = r2.sheetArea, j2 = r2.row, D2 = r2.col, _2 = e3.textIndent, O2 = e3.hAlign, L2 = e3.isVerticalText, F2 = 1 === N2 && 1 === I2.Lt(D2), B2 = F2 ? -90 : e3.textOrientation, P2 = e3.borderTop || e3.borderBottom || e3.borderLeft || e3.borderRight, G2 = e3.font;
            if (B2 && -90 <= B2 && B2 <= 90 && (c2 = z(B2 * Math.PI / 180), u2 = U(c2), s2 = H(c2)), I2 && typeof n3 === R && n3) if (f2 = [], l2 = void 0, t4 && t4.richText) if (t4.converted || (t4 = o.util.g0(t4)), t4 = { text: t4.text, richText: t4.converted }, h2 = e3.formatter || e3._autoFormatter, v2 = (d2 = I2.getCellType(j2, D2, N2)).Ft(h2, t4.text), zt(l2 = k(true, [], d2.Pt(t4, n3, v2, G2, e3.foreColor)), G2, i3), L2) if (e3.wordWrap || 5 === O2) {
              if (p2 = I2.Gt(j2, N2), (g2 = I2.getSpan(j2, D2, N2)) && g2.row >= j2 && g2.col >= D2 && g2.rowCount > 1) for (b2 = j2 + 1; b2 < j2 + g2.rowCount; b2++) p2 += I2.Gt(b2, N2);
              for (y2 = 0, _2 > 0 && (y2 = 8 * _2 * i3), (w2 = At(e3, 0)) > 0 && (p2 -= w2), (M2 = At(e3, 2)) > 0 && (p2 -= M2), p2++, f2 = o.q.Ht((0, o.W3e)(n3), p2 - pt(e3, 3) - y2, G2, l2, L2), a2 = 0; a2 < f2.length; a2++) A2 += wt(f2[a2].textInfos, G2, i3);
            } else A2 = wt(l2, G2, i3);
            else {
              if (e3.wordWrap || 5 === O2) {
                for (C2 = (0, o.W3e)(n3).split(/\r\n|\r|\n/), a2 = 0; a2 < C2.length; a2++) f2.push((0, o.zt)(C2[a2]));
                for (f2 = o.q.Vt(f2, o.q.Yt(l2)), a2 = 0; a2 < f2.length; a2++) A2 = Math.max(A2, Ct(f2[a2], G2, i3, L2, true));
              } else A2 = Mt(l2, G2, i3);
              _2 > 0 && 4 !== O2 && (A2 += 1 === O2 || 5 === O2 ? 8 * _2 * 2 : 8 * _2), yt(I2, j2, D2, r2.sheetArea) && (A2 += xt(I2));
            }
            else if (f2 = (0, o.W3e)(n3).split(/\r\n|\r|\n/), T2 = m(S2 = G2) / i3, L2) if (e3.wordWrap || 5 === O2) for (a2 = 0; a2 < f2.length; a2++) A2 += T2;
            else A2 = T2;
            else {
              if (e3.wordWrap || 5 === O2) {
                if (B2) return x2 = I2.Gt(j2, N2), o.q.Zt(j2, D2, u2, s2, n3, S2, x2);
                for (a2 = 0; a2 < f2.length; a2++) A2 = Math.max(A2, o.q.Wt(f2[a2], S2, true) / i3);
              } else A2 = B2 ? P2 ? (T2 + 4) / u2 : s2 * (I2.Qt(n3, S2) / i3) + T2 * u2 : 4 === e3.hAlign ? I2.Jt.Kt(D2, N2) : I2.Qt(n3, S2) / i3;
              _2 > 0 && 4 !== O2 && (A2 += 1 === O2 || 5 === O2 ? 8 * _2 * 2 : 8 * _2), yt(I2, j2, D2, r2.sheetArea) && (A2 += E);
            }
            return A2;
          }, t3.Xt = function(t4, n3, e3, i3) {
            var r2, o2, u2, s2 = t4.Jt.Kt(e3, i3);
            for (r2 = e3 + 1; r2 < t4.getColumnCount(i3) && (o2 = t4.Jt.qt(n3, r2, i3), u2 = t4.Jt.$t(n3, r2, i3, 1, { style: o2 }), I(u2)) && !o2.watermark && !(o2.cellType && "1" !== o2.cellType.typeName || o2.cellButtons && o2.cellButtons.length > 0 || a.W.Jue(o2)) && 4 === o2.hAlign; r2++) s2 += t4.Jt.Kt(r2, i3);
            return s2;
          }, t3.tn = function(t4, n3, e3, i3, r2) {
            var u2, c2, f2, l2, h2, d2, v2, p2, g2, y2, w2, M2, C2, S2, T2, A2, I2, N2, j2, D2, _2, O2, E2, L2, F2, B2, P2, G2, V2, Y2, Z2 = 0, W2 = r2 && r2.sheet, Q2 = e3.font, K2 = e3.isVerticalText, J2 = e3.textIndent, X2 = e3.vAlign, q2 = e3.hAlign, $2 = e3.textOrientation, tt2 = r2.row, nt2 = r2.col, et2 = r2.sheetArea, it2 = W2.outlineColumn && W2.outlineColumn.Un(nt2), rt2 = 0;
            if (J2 > 0 && (rt2 = 8 * J2 * i3), 1 !== q2 && 5 !== q2 || (rt2 *= 2), $2 && -90 <= $2 && $2 <= 90 && (S2 = z($2 * Math.PI / 180), M2 = U(S2), C2 = H(S2)), W2 && typeof n3 === R && n3) if (T2 = [], A2 = void 0, t4 && t4.richText) if (t4.converted || (t4 = o.util.g0(t4)), t4 = { text: t4.text, richText: t4.converted }, I2 = e3.formatter || e3._autoFormatter, j2 = (N2 = W2.getCellType(tt2, nt2, et2)).Ft(I2, t4.text), zt(A2 = k(true, [], N2.Pt(t4, n3, j2, Q2, e3.foreColor)), Q2, i3), K2) {
              if (e3.wordWrap || 5 === e3.hAlign) {
                for (D2 = (0, o.W3e)(n3).split(/\r\n|\r|\n/), u2 = 0; u2 < D2.length; u2++) T2.push((0, o.zt)(D2[u2]));
                for (T2 = o.q.Vt(T2, o.q.Yt(A2)), u2 = 0; u2 < T2.length; u2++) Z2 = Math.max(Z2, Ct(T2[u2], Q2, i3, K2, true));
              } else Z2 = Mt(A2, Q2, i3, K2);
              J2 > 0 && (Z2 += 1 === X2 ? 8 * J2 * 2 : 8 * J2);
            } else if (e3.wordWrap || 5 === e3.hAlign) {
              if (c2 = W2.nn(nt2, et2), (h2 = W2.getSpan(tt2, nt2, et2)) && h2.row >= tt2 && h2.col >= nt2 && h2.colCount > 1) for (d2 = nt2 + 1; d2 < nt2 + h2.colCount; d2++) c2 += W2.nn(d2, et2);
              for (p2 = At(e3, 1), (g2 = At(e3, 3)) > 0 && (c2 -= g2), p2 > 0 && (c2 -= p2), c2++, T2 = o.q.Ht((0, o.W3e)(n3), c2 - pt(e3, 3) - rt2, Q2, A2), u2 = 0; u2 < T2.length; u2++) Z2 += wt(T2[u2].textInfos, Q2, i3);
            } else Z2 = wt(A2, Q2, i3);
            else if (_2 = e3.font, O2 = m(_2) / i3, K2) {
              if (e3.wordWrap || 5 === e3.hAlign) for (T2 = (0, o.W3e)(n3).split(/\r\n|\r|\n/), u2 = 0; u2 < T2.length; u2++) E2 = T2[u2].length * b(_2, T2[u2]), Z2 = Math.max(Z2, E2);
              else Z2 = n3.length * b(_2, n3);
              J2 > 0 && (Z2 += 1 === X2 ? 8 * J2 * 2 : 8 * J2);
            } else if (e3.wordWrap || 5 === e3.hAlign) {
              if (et2 = r2.sheetArea, c2 = 4 === e3.hAlign ? this.Xt(r2.sheet, tt2, nt2, et2) : W2.nn(nt2, et2), f2 = W2.Gt(tt2, et2), (h2 = W2.getSpan(tt2, nt2, et2)) && h2.row >= tt2 && h2.col >= nt2 && h2.colCount > 1) {
                for (d2 = nt2 + 1; d2 < nt2 + h2.colCount; d2++) c2 += W2.nn(d2, et2);
                for (v2 = tt2 + 1; v2 < tt2 + h2.rowCount; v2++) f2 += W2.Gt(v2, et2);
              }
              if (p2 = At(e3, 1), (g2 = At(e3, 3)) > 0 && (c2 -= g2), p2 > 0 && (c2 -= p2), (y2 = At(e3, 0)) > 0 && (f2 -= y2), (w2 = At(e3, 2)) > 0 && (f2 -= w2), e3.cellButtons && e3.cellButtons.length > 0 && (c2 -= kt(r2, e3)), a.W.Jue(e3) && (c2 -= Nt(r2, e3)), e3.cellType && e3.cellType.Tfe && (c2 -= e3.cellType.Tfe(i3)), 1 === et2 && (F2 = !!((L2 = W2.rowFilter && W2.rowFilter()) && L2.rn(tt2, nt2, et2) && L2.filterButtonVisible(nt2))) && (c2 -= W2.an(new o.Rect(0, 0, c2, f2), et2).width), $2) return B2 = (f2 - O2 * C2) / M2, T2 = o.q.un((0, o.W3e)(n3), B2, _2), Z2 = M2 * (l2 = W2.Qt(T2[0], _2) / i3) + O2 * C2;
              x(t4) ? T2 = [n3] : (P2 = rt2, !it2 || et2 === s.SheetArea.colHeader && W2.NMi || (G2 = W2.outlineColumn.ost()) && (V2 = G2[tt2]) && (Y2 = V2.cellContent) && "number" == typeof Y2.left && (P2 = Y2.left), T2 = o.q.un((0, o.W3e)(n3), c2 - pt(e3, 3) - P2, _2)), Z2 = T2.length * O2;
            } else Z2 = $2 ? M2 * (l2 = W2.Qt(n3, _2) / i3) + O2 * C2 : O2;
            return Z2;
          }, t3.cn = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
            var h2;
            1 === s2 ? (t4.beginPath(), (h2 = t4.createLinearGradient(n3, e3 + 1, n3, e3 + r2 - 2)).addColorStop(0, u2.borderLeftColor), h2.addColorStop(1, u2.borderRightColor), t4.strokeStyle !== h2 && (t4.strokeStyle = h2), o2.borderLeft || (t4.moveTo(n3 + 0.5, e3), t4.lineTo(n3 + 0.5, e3 + r2)), o2.borderRight || (t4.moveTo(n3 + i3 - 0.5, e3), t4.lineTo(n3 + i3 - 0.5, e3 + r2)), c2 && !o2.borderTop && (t4.moveTo(n3, e3 + 0.5), t4.lineTo(n3 + i3, e3 + 0.5)), t4.stroke(), u2.borderBottomWidth && !o2.borderBottom && (t4.beginPath(), t4.strokeStyle !== u2.borderBottomColor && (t4.strokeStyle = u2.borderBottomColor), t4.moveTo(n3 + 1, e3 + r2 - 0.5), t4.lineTo(n3 + i3, e3 + r2 - 0.5), t4.stroke())) : (t4.beginPath(), (h2 = t4.createLinearGradient(n3, e3, n3 + i3 - 2, e3)).addColorStop(0, u2.borderTopColor), h2.addColorStop(1, u2.borderBottomColor), t4.strokeStyle !== h2 && (t4.strokeStyle = h2), o2.borderTop || (t4.moveTo(n3, e3 + 0.5), t4.lineTo(n3 + i3, e3 + 0.5)), o2.borderBottom || (t4.moveTo(n3, e3 + r2 - 0.5), t4.lineTo(n3 + i3, e3 + r2 - 0.5)), f2 && !o2.borderLeft && (t4.moveTo(n3 + 0.5, e3), t4.lineTo(n3 + 0.5, e3 + r2)), t4.stroke(), !u2.borderRightWidth || o2.borderRight || l2 || (t4.beginPath(), t4.strokeStyle !== u2.borderRightColor && (t4.strokeStyle = u2.borderRightColor), t4.moveTo(n3 + i3 - 0.5, e3 + 1), t4.lineTo(n3 + i3 - 0.5, e3 + r2), t4.stroke()));
          }, t3.hn = function(t4, n3) {
            var e3;
            e3 = 2 === n3 ? "active" : 4 === n3 ? "inactive" : 0 === n3 ? "disabled" : "auto", (0, r.GC$)(t4).css("ime-mode", e3);
          }, t3.dn = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2;
            return !!(n3 && "SparklineExValue" === n3.typeName && (s2 = (u2 = a2.sheet) && u2.parent) && (c2 = s2.getSparklineEx(n3.name))) && (l2 = { zoomFactor: f2 = st(a2) ? a2.printZoomFactor : u2.zoom(), sheet: u2, rowIndex: a2.row, columnIndex: a2.col, isPrinting: a2.isPrinting }, 2 === a2.columnHeaderFitMode && (r2 = u2.getColumnWidth(a2.col, a2.sheetArea) + 1), c2.paint(t4, n3.value, e3, i3, r2, o2, l2), true);
          }, t3.xt = {}, t3.Dt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2;
            return t4 && t4.vn && (i3 = (e3 = t4.vn(n3)).format(n3)) && i3[1] && "decimalSeparator" === i3[1].type ? (r2 = i3[2]) && r2.type === L ? (o2 = r2.value, u2 = (a2 = i3[3]) && "exponent" === a2.type && a2.value && a2.value.indexOf("E") > -1, !p(o2) && u2 ? o2.length : 5) : 0 : 5;
          }, t3.gn = At, t3;
        })(), n2.Context = it, rt = ['"ＭＳ ゴシック"', '"ＭＳ Ｐゴシック"', '"ＭＳ 明朝"', '"ＭＳ Ｐ明朝"', '"MS UI Gothic"', "メイリオ", "Meiryo", '"Meiryo UI"', '"Yu Gothic"', '"Yu Gothic UI"', '"Yu Mincho"', "游ゴシック", "游明朝", '"MS Gothic"', '"MS PGothic"', '"MS Mincho"', '"MS PMincho"'], ot = { "〈": c.VCRT.DEG90, "〉": c.VCRT.DEG90, "「": c.VCRT.DEG90, "」": c.VCRT.DEG90, "｢": c.VCRT.DEG90, "｣": c.VCRT.DEG90, "(": c.VCRT.DEG90, ")": c.VCRT.DEG90, "[": c.VCRT.DEG90, "]": c.VCRT.DEG90, "［": c.VCRT.DEG90, "］": c.VCRT.DEG90, "{": c.VCRT.DEG90, "}": c.VCRT.DEG90, "｛": c.VCRT.DEG90, "｝": c.VCRT.DEG90, "〖": c.VCRT.DEG90, "〗": c.VCRT.DEG90, "〔": c.VCRT.DEG90, "〕": c.VCRT.DEG90, "【": c.VCRT.DEG90, "】": c.VCRT.DEG90, "《": c.VCRT.DEG90, "》": c.VCRT.DEG90, "『": c.VCRT.DEG90, "』": c.VCRT.DEG90, "（": c.VCRT.DEG90, "）": c.VCRT.DEG90, "＝": c.VCRT.DEG90, "＿": c.VCRT.DEG90, "｜": c.VCRT.DEG90, "～": c.VCRT.DEG90_FLIP_V, "ー": c.VCRT.DEG90, "<": c.VCRT.DEG90, ">": c.VCRT.DEG90, "、": c.VCRT.DEG90_FLIP_H, "。": c.VCRT.DEG90 }, at = {}, rt.forEach((function(t3) {
          at[t3] = (0, o.RF)(ot), at[t3]["﹛"] = c.VCRT.DEG90, at[t3]["﹜"] = c.VCRT.DEG90, at[t3]["﹝"] = c.VCRT.DEG90, at[t3]["﹞"] = c.VCRT.DEG90, at[t3]["―"] = c.VCRT.DEG90;
        })), ["等线", '"等线 Light"'].forEach((function(t3) {
          at[t3] = (0, o.RF)(ot), at[t3]["～"] = c.VCRT.DEG90;
        })), ["Aptos", '"Aptos Light"', "Calibri", '"Calibri Light"', "宋体"].forEach((function(t3) {
          at[t3] = (0, o.RF)(ot), at[t3]["～"] = c.VCRT.DEG90, at[t3]["―"] = c.VCRT.DEG90;
        })), (0, c.rotatedCharsForVertical)(at), ut = (function() {
          function t3() {
            this.allowOverflow = false, this.typeName = "0";
          }
          return t3.prototype.Bye = function(n3, e3) {
            var i3 = { context: n3, style: e3 };
            t3.et(n3.sheet, "beforePaintCellContent", i3);
          }, t3.prototype.pn = function(n3, e3, i3, r2) {
            var o2 = { ctx: n3, options: { rect: e3, context: i3, value: r2 } };
            return t3.et(i3.sheet, "paintCellPadding", o2), o2.options.rect;
          }, t3.prototype.bn = function(n3, e3, i3) {
            var r2 = { context: n3, options: { dom: e3, cellRect: i3, contentRect: i3.clone(), leftExternalRect: new o.Rect(0, 0, 0, 0), rightExternalRect: new o.Rect(0, 0, 0, 0) } };
            return t3.et(n3.sheet, "onCreateCellEditor", r2), r2.options.dom;
          }, t3.prototype.yn = function(n3, e3, i3) {
            var r2 = { ctx: null, options: { rect: e3.clone(), context: n3, value: null, style: i3 } };
            return t3.et(n3.sheet, "getCellButtonRect", r2), r2.options.rect;
          }, t3.prototype.wn = function(n3, e3, i3, r2) {
            var a2 = { context: n3, options: { dom: e3, cellRect: i3, cellStyle: r2, contentRect: i3.clone(), leftExternalRect: new o.Rect(0, 0, 0, 0), rightExternalRect: new o.Rect(0, 0, 0, 0) } };
            return t3.et(n3.sheet, "onActivateCellEditor", a2), a2;
          }, t3.prototype.Mn = function(n3, e3, i3, r2) {
            var a2 = { context: n3, contentContainer: e3, editorBounds: i3, cellStyle: r2, contentRect: i3.clone(), leftExternalRect: new o.Rect(0, 0, 0, 0), rightExternalRect: new o.Rect(0, 0, 0, 0) };
            return t3.et(n3.sheet, "onUpdateContainer", a2), a2;
          }, t3.prototype.Cn = function(n3, e3, i3) {
            var r2 = { context: n3, options: { dom: e3, cellRect: i3, contentRect: i3.clone(), leftExternalRect: new o.Rect(0, 0, 0, 0), rightExternalRect: new o.Rect(0, 0, 0, 0) } };
            return t3.et(n3.sheet, "onDeactivateCellEditor", r2), r2.options.dom;
          }, t3.prototype.Sn = function(t4, n3, e3) {
            var i3 = this;
            i3.deactivateEditor(t4, n3), i3.Cn(n3, t4, e3);
          }, t3.prototype.Tn = function(t4, n3, e3, i3) {
            var r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = e3.labelOptions;
            if (p2 && (r2 = i3.sheet, o2 = e3.watermark)) {
              if (u2 = p2.visibility, s2 = r2.getText(i3.row, i3.col, i3.sheetArea), 1 === u2 || (2 === u2 || u2 === B) && "" === s2) return;
              c2 = r2.zoom(), l2 = void 0, l2 = (f2 = p2.font) ? a.W.V(f2, c2) : a.W.x2e(e3, 1), h2 = m(l2.font), d2 = Lt(n3, e3), v2 = void 0, Rt(e3, n3) && (v2 = Bt(n3, e3, l2, h2)), v2 && (t4.save(), t4.textAlign = Ft(p2.alignment), t4.textBaseline = "alphabetic", M(t4, l2.font), t4.fillStyle = p2.foreColor || e3.foreColor || "grey", t4.rect(d2.x, d2.y, d2.width, d2.height), t4.clip(), t4.beginPath(), t4.fillText(o2, v2.x, v2.y), t4.restore());
            }
          }, t3.prototype.An = function(t4, n3, e3) {
            var i3 = t4.clone(), r2 = At(n3, 0, false, e3), o2 = At(n3, 1, false, e3), a2 = At(n3, 2, false, e3), u2 = At(n3, 3, false, e3);
            return r2 > 0 && (i3.y += r2, i3.height -= r2), a2 > 0 && (i3.height -= a2), u2 > 0 && (i3.x += u2, i3.width -= u2), o2 > 0 && (i3.width -= o2), o2 + u2 >= t4.width && (i3.width = 0), r2 + a2 >= t4.height && (i3.height = 0), i3;
          }, t3.prototype.In = function(n3, e3, i3, r2) {
            var o2, a2 = this, u2 = st(r2) ? r2.printZoomFactor : r2.sheet.zoom();
            return o2 = { ctx: n3, options: { rect: e3 = a2.An(e3, i3, u2), context: r2 } }, t3.et(r2.sheet, "getCellPaddingRect", o2), o2.options.rect;
          }, t3.prototype.xn = function(t4, n3, e3, i3) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2 = e3.labelOptions;
            w2 && (u2 = (a2 = i3.sheet).getText(i3.row, i3.col, i3.sheetArea), s2 = e3.watermark, 1 !== (c2 = w2.visibility) && s2 && (f2 = w2.font || e3.font || a2.Dn.Nn(), 1 !== (l2 = a2.zoom()) && (f2 = a2.Dn._n(f2)), h2 = m(f2), Rt(e3, n3) && (d2 = Pt(n3, e3)), d2 && ((v2 = (0, r.GC$)(o.mt.En("span"))).text(s2), p2 = (2 === c2 || c2 === B) && "" === u2, g2 = d2.height - h2, b2 = d2.y + (p2 && g2 > 0 ? g2 : 0), v2.css({ display: "block", position: "absolute", left: d2.x, top: b2, width: d2.width, height: d2.height, font: C(f2), color: w2.foreColor || e3.foreColor || "grey", textAlign: Ft(w2.alignment), overflow: "hidden", whiteSpace: "nowrap" }).attr("gcUIElement", "gcEditorLabel"), (0, r.GC$)(t4).append(v2), p2 && (y2 = setInterval((function() {
              b2--, v2.css("top", b2), b2 <= d2.y && clearInterval(y2);
            }), 20)))));
          }, t3.prototype.jn = function(t4) {
            var n3, e3, i3, a2 = this, u2 = o.mt.En("div");
            return u2.style.cssText = "position: absolute; margin: 0;padding: 0; overflow: hidden; box-sizing: content-box;resize: none;outline: none;border: 2px #5292f7 solid;box-shadow: 1px 2px 5px rgba(0,0,0,0.4);background-color: white", (n3 = o.mt.En("div")).style.cssText = "position: absolute; outline: none; border: none;", (0, r.GC$)(u2).append((0, r.GC$)(n3)), (e3 = a2.createEditorElement(t4, u2)) && (0, r.GC$)(n3).append((0, r.GC$)(e3)), i3 = t4.sheetArea, a2.bn(t4, u2, t4.sheet.getCellRect(t4.row, t4.col, 1 === i3 ? -1 : B, 2 === i3 ? -1 : B)), u2;
          }, t3.prototype.On = function(t4, n3, e3, i3) {
            var o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2;
            t4 && t4.firstChild && (o2 = this, Ot(t4, n3, a2 = Vt(e3), i3), c2 = (u2 = o2.wn(i3, t4, a2, n3)).options.contentRect, f2 = u2.options.cellRect, l2 = u2.options.leftExternalRect, h2 = u2.options.rightExternalRect, o2.xn && o2.xn(t4, c2, n3, i3), d2 = i3.sheet.zoom(), v2 = ht(c2 = o2.An ? o2.An(c2, n3, d2) : c2, l2, h2), p2 = t4.firstChild, g2 = bt(n3.textDirection, n3.textDirection === s.TextDirectionType.context ? i3.sheet.getValue(i3.row, i3.col) : F), (0, r.GC$)(p2).css({ left: (+(0, r.GC$)(p2).css("left").replace("px", "") || 0) + At(n3, 3, false, d2), top: (+(0, r.GC$)(p2).css("top").replace("px", "") || 0) + At(n3, 0, false, d2), direction: g2 }), o2.activateEditor(t4.firstChild.firstChild, n3, v2, i3, f2, l2, h2));
          }, t3.prototype.updateEditorContainer = function(t4, n3, e3, i3, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2;
            t4 && n3 && (c2 = (s2 = t4.parentNode) ? s2.parentNode : B) && o2 && (f2 = (0, r.GC$)(c2), l2 = o2.width, h2 = o2.height, l2 > 0 && (f2.width(l2), d2 = c2.lastChild, e3 && "gcEditorLabel" === d2.getAttribute("gcUIElement") && (0, r.GC$)(d2).width(l2 - At(e3, 3, true) - At(e3, 1, true) - 2)), h2 > 0 && f2.height(h2), p(o2.x) || f2.css("left", o2.x + "px"), p(o2.y) || f2.css("top", o2.y + "px"));
          }, t3.prototype.Rn = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = t4.firstChild, y2 = Vt(e3);
            Ot(t4, n3, y2, i3), o2 = (r2 = m2.Mn(i3, b2, y2, n3)).editorBounds, a2 = r2.contentRect, u2 = r2.leftExternalRect, s2 = r2.rightExternalRect, c2 = b2.firstChild, f2 = ht(a2 = m2.An ? m2.An(a2, n3, i3.sheet.zoom()) : a2, u2, s2), l2 = m2.updateEditor(c2, n3, f2, i3, o2, u2, s2), h2 = { width: u2.width, height: u2.height }, d2 = { width: s2.width, height: s2.height }, v2 = { width: p2 = !isNaN(l2 && l2.width) && l2.width + h2.width + d2.width > o2.width ? l2.width + h2.width + d2.width : o2.width, height: g2 = !isNaN(l2 && l2.height) && l2.height + h2.height + d2.height > o2.height ? l2.height + h2.height + d2.height : o2.height }, m2.updateEditorContainer(c2, l2, n3, i3, v2, h2, d2);
          }, t3.prototype.Bn = function(t4, n3, e3, i3, r2) {
            return this.getCellAndPaddingHitInfo(t4, n3, e3, i3, r2);
          }, t3.prototype.Ln = function(t4, n3, e3, i3, r2) {
            var o2 = kt(r2, e3) + It(r2) + Nt(r2, e3), a2 = this.getAutoFitWidth(t4, n3, e3, i3, r2);
            return a2 > 0 && (o2 += a2 + At(e3, 3, false) + At(e3, 1, false)), o2;
          }, t3.prototype.Fn = function(t4, n3, e3, i3, r2) {
            var o2 = 0, a2 = this.getAutoFitHeight(t4, n3, e3, i3, r2);
            return a2 > 0 && (o2 += a2 + At(e3, 0, false) + At(e3, 2, false)), o2 = Math.max(Dt(r2, e3), o2), Math.max(jt(r2, e3), o2);
          }, t3.prototype.paintValue = function(t4, n3, e3, i3, r2, a2, u2, s2) {
            var c2, f2, l2, h2 = this, d2 = {};
            s2.quotePrefix = u2.quotePrefix, (c2 = this.format(S(n3), u2.formatter || u2._autoFormatter, d2, s2)) && (c2 = this.RUr(c2, d2, u2, s2), f2 = new o.Rect(e3, i3, r2, a2), this.adjustRectForIconSet(u2.hAlign, s2.sheet, s2.row, s2.col, s2.sheetArea, f2, d2.content && this.hasInfilling(d2.content)), e3 = f2.x, r2 = f2.width, l2 = h2.Pn(t4, c2, u2, s2, e3, i3, r2, a2), this.paintText(t4, n3, e3, i3, r2, a2, u2, s2, c2, d2, B, l2.externals));
          }, t3.prototype.RUr = function(t4, n3, e3, i3) {
            var r2 = (0, o.isIgnoreEndBlank)(e3, i3), a2 = t4;
            return t4 && t4.endsWith(tt) && r2 && (a2 = (0, o.W3e)(t4), (0, o.removeEndSpaceOfFormattedData)(n3)), a2;
          }, t3.prototype.Gn = function(t4, n3, e3, i3) {
            var r2 = 0;
            return t4 > 0 && (r2 = 8 * t4 * i3), n3 && n3.Un(e3) && (r2 = 0), r2;
          }, t3.prototype.Ft = function(t4, n3) {
            return !!(!t4 || g(t4, R) && t4 === Y || t4 && t4.formatString && t4.formatString() === Y) || !(n3 && (!isNaN(n3) || "TRUE" === n3.toUpperCase() || "FALSE" === n3.toUpperCase()) && "@" !== t4);
          }, t3.prototype.Hn = function(t4) {
            var n3, e3 = 0;
            for (n3 = 0; n3 < t4.length; n3++) e3 += t4[n3].width;
            return e3;
          }, t3.prototype.Iye = function(t4) {
            var n3, e3, i3, r2, o2, a2 = t4.left, u2 = t4.right;
            for (n3 = 0, e3 = a2; n3 < e3.length; n3++) if ((i3 = e3[n3]).isStick) return true;
            for (r2 = 0, o2 = u2; r2 < o2.length; r2++) if ((i3 = o2[r2]).isStick) return true;
            return false;
          }, t3.prototype.zn = function(t4) {
            var n3, e3 = 0;
            for (n3 = 0; n3 < t4.length; n3++) e3 += t4[n3].height;
            return e3;
          }, t3.prototype.Vn = function(n3, e3, i3, r2, o2) {
            var a2 = { ctx: n3, options: { rect: i3, context: e3, value: r2, style: o2 } };
            t3.et(e3.sheet, "beforePaintLabel", a2);
          }, t3.prototype.mao = function(n3) {
            t3.et(n3.context.sheet, "beforePaintBackColor", n3);
          }, t3.prototype.Pn = function(n3, e3, i3, r2, a2, u2, s2, c2) {
            var f2 = { ctx: n3, text: e3, rect: new o.Rect(a2, u2, s2, c2), style: i3, context: r2, externals: { left: [], right: [] } };
            return t3.et(r2.sheet, "beforePaintText", f2), an(f2), f2;
          }, t3.prototype.Yn = function(n3, e3, i3, r2, a2, u2, s2, c2, f2) {
            var l2 = { ctx: n3, style: e3, context: i3, textRect: new o.Rect(r2, a2, u2, s2), availRect: c2 };
            return t3.et(i3.sheet, f2, l2), rn(f2, l2), l2;
          }, t3.prototype.Zn = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            return this.Yn(t4, n3, e3, i3, r2, o2, a2, u2, "beforeFillTextArea");
          }, t3.prototype.Wn = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            return this.Yn(t4, n3, e3, i3, r2, o2, a2, u2, "afterFillTextArea");
          }, t3.prototype.paintText = function(t4, n3, e3, i3, r2, a2, u2, c2, f2, l2, h2, d2) {
            var v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, k2 = this;
            t4.save(), t4.beginPath(), v2 = u2.textOrientation, g2 = u2.textIndent && 0 !== u2.textIndent, m2 = u2.hAlign, b2 = u2.isVerticalText && 4 !== m2, 4 === m2 && (v2 = 0, g2 = false), y2 = c2.sheet, w2 = c2.sheetArea, M2 = y2.rowFilter && y2.rowFilter(), C2 = c2.columnHeaderFitMode, !(S2 = !!(M2 && M2.rn(c2.row, c2.col, w2) && M2.filterButtonVisible(c2.col))) || C2 !== s.ColumnHeaderFitMode.normal && C2 !== s.ColumnHeaderFitMode.vertical || (I(c2.cornerX) || (r2 = c2.cornerX - e3), r2 -= y2.an(new o.Rect(e3, i3, r2, a2), w2).width), T2 = u2.wordWrap, x2 = u2.shrinkToFit, A2 = u2.showEllipsis, 5 === m2 && (c2.sheet.options.showFormulas && c2.isFormula ? (u2.hAlign = 1, u2.wordWrap = false) : u2.wordWrap = true, u2.shrinkToFit = false, u2.showEllipsis = false), n3 && n3.richText && n3.richText.length > 0 && gt(n3, f2, u2.wordWrap) || b2 ? k2.Qn(t4, n3, e3, i3, r2, a2, u2, c2, f2, l2, h2, d2) : 0 !== v2 && !p(v2) && -90 <= v2 && v2 <= 90 && !g2 && !b2 ? k2.Kn(t4, n3, e3, i3, r2, a2, u2, c2, f2, l2, h2, d2) : k2.Jn(t4, n3, e3, i3, r2, a2, u2, c2, f2, l2, h2, d2), 5 === m2 && (u2.hAlign = 5, u2.wordWrap = T2, u2.shrinkToFit = x2, u2.showEllipsis = A2), t4.restore();
          }, t3.prototype.Xn = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = n3.sheet, T2 = n3.row, x2 = n3.col, A2 = r2.vAlign, I2 = n3.sheetArea;
            for (f2 = 0; f2 < e3.length; f2++) if (l2 = e3[f2].text, h2 = i3[f2].lineHeight, d2 = 1 === A2 ? 0 : u2, v2 = this.qn(t4, "0"), p2 = "", (g2 = o2) - 1 - 2 - d2 < l2.length * h2) {
              if (g2 < 3 * v2) c2.push(0), p2 = X;
              else if (m2 = P((g2 - 1 - 2 - 3 * v2 - (1 === A2 ? 0 : u2)) / h2), b2 = 0, 0 === A2) {
                for (y2 = 0; y2 < m2; y2++) p2 += l2[y2];
                w2 = p2.length, 3 * v2 + ((p2 += X).length - 3) * h2 + u2 > g2 - 1 - 2 ? (p2 = p2.substring(0, p2.length - 4) + X, c2.push(p2.split(X)[0].length)) : c2.push(w2);
              } else if (1 === A2) {
                for (M2 = 0; M2 < G(m2 / 2); M2++) p2 += C2 = l2.charAt(M2), b2 = M2;
                for (w2 = p2.length, p2 += X, M2 = G(l2.length - m2 / 2); M2 < l2.length; M2++) p2 += C2 = l2.charAt(M2);
                3 * v2 + (p2.length - 3) * h2 + u2 > g2 - 1 - 2 ? (p2 = p2.replace(l2[b2], ""), c2.push(p2.split(X)[0].length)) : c2.push(w2), s2[f2].y = a2 + (o2 - (3 * v2 + (p2.length - 3) * h2)) / 2;
              } else {
                for (c2.push(0), y2 = l2.length - 1; y2 >= l2.length - m2; y2--) p2 = l2[y2] + p2;
                3 * v2 + ((p2 = X + p2).length - 3) * h2 + u2 > g2 - 1 - 2 && (p2 = p2.replace(l2[l2.length - m2], "")), s2[f2].y = a2 + o2 - u2 - (3 * v2 + (p2.length - 3) * h2) - 2;
              }
              e3[f2].textInfos[0].text = p2, S2.Ut.$n(T2, x2, l2, I2);
            } else S2.Ut.$n(T2, x2, null, I2);
          }, t3.prototype.Qn = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2) {
            var d2, v2, p2, g2, m2, b2, M2, C2, S2, T2, x2, A2, I2, N2, j2, D2, _2, O2, E2, R2, L2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2;
            if (n3 && n3.richText && (n3.converted || (n3 = o.util.g0(n3)), n3 = { text: n3.text, richText: n3.converted }), b2 = this, M2 = new o.Rect(e3, i3, r2, a2), C2 = s2.sheet ? s2.sheet.zoom() : 1, S2 = s2.printZoomFactor, S2 = st(s2) ? S2 : F, T2 = b2.Gn(u2.textIndent, s2.sheet.outlineColumn, s2.col, S2 ? S2 * C2 : C2), x2 = s2.cellOverflowLayout && s2.cellOverflowLayout.expandedWidth, A2 = u2.hAlign, I2 = u2.formatter || u2._autoFormatter, 3 === A2 && (A2 = y(A2, n3, I2)), j2 = !!(N2 = u2.isVerticalText && 4 !== A2) && w(c2), D2 = u2.font, _2 = b2.Ft(I2, n3 && n3.text), O2 = k(true, [], b2.Pt(n3, c2, _2, D2, u2.foreColor)), (0, o.resetFillStyle)(t4, s2.sheet, u2, l2), n3 && n3.richText && n3.richText.length > 0 && b2.te(O2, D2, C2, S2), E2 = 0, R2 = 0, h2 && (E2 = b2.Hn(h2.left), R2 = b2.Hn(h2.right), L2 = b2.Iye(h2)), B2 = E2 + R2, P2 = { left: E2, right: R2, isStick: L2 }, !u2.wordWrap && u2.shrinkToFit && (4 === u2.hAlign ? b2.ne(O2, x2 - B2, a2, u2, D2, 1, N2) : b2.ne(O2, r2 - B2, a2, u2, D2, 1, N2)), G2 = b2.ee(t4, c2, u2.font, N2 ? a2 : r2 - B2, T2, N2 ? u2.vAlign : u2.hAlign, u2.wordWrap, N2, O2), U2 = b2.re(G2, u2, A2, l2), H2 = b2.oe(t4, u2, e3, i3, r2, a2, u2.wordWrap, s2.cellOverflowLayout, A2, T2, N2, (null === (d2 = G2[0]) || void 0 === d2 ? void 0 : d2.textLength) || 0, (null === (v2 = U2[0]) || void 0 === v2 ? void 0 : v2.lineHeight) || 0), V2 = false, u2.showEllipsis && N2 && n3 && !n3.richText && (V2 = true), z2 = [], z2 = 4 === A2 ? b2.ae(e3, i3, null === (p2 = s2.cellOverflowLayout) || void 0 === p2 ? void 0 : p2.expandedWidth, a2, A2, u2.vAlign, T2, N2, j2, G2, U2, P2, V2, u2) : b2.ae(e3, i3, r2, a2, A2, u2.vAlign, T2, N2, null !== (m2 = null === (g2 = null == s2 ? void 0 : s2.paintInfo) || void 0 === g2 ? void 0 : g2.rightToLeft) && void 0 !== m2 ? m2 : j2, G2, U2, P2, V2, u2), Y2 = G2.length, Z2 = [], V2 && f2 && (f2.content && 1 === f2.content.length && "text" === f2.content[0].type || !f2.content && 1 === G2.length && G2[0].text) && this.Xn(t4, s2, G2, U2, u2, a2, i3, T2, z2, Z2), 1 === Y2 && f2 && !_2) b2.ue(t4, s2.sheet, c2, f2, z2[0].x, z2[0].y, r2, a2, A2, u2, H2 ? H2.width : 0, H2 ? H2.height : 0, T2, N2, G2[0].textLength, s2, P2, M2);
            else {
              for (Q2 = (W2 = b2.se(G2, z2)).textWidth, K2 = W2.textStart, b2.Zn(t4, u2, s2, K2, z2[0].y, Q2, 0, M2), J2 = r2 - B2 - 4 - 2 * T2, X2 = 0; X2 < Y2; X2++) b2.ce(t4, s2.sheet, z2[X2].x, z2[X2].y, U2[X2], A2, G2[X2], Z2[X2], J2, s2.cellRect, 0 === X2);
              b2.Wn(t4, u2, s2, K2, z2[0].y, Q2, 0, M2);
            }
          }, t3.prototype.se = function(t4, n3) {
            var e3, i3, r2;
            if (!t4 || 0 === t4.length || !n3 || 0 === n3.length) return { textWidth: 0, textStart: (null == n3 ? void 0 : n3[0].x) || 0 };
            for (e3 = t4[0].textLength, i3 = n3[0].x, r2 = 0; r2 < t4.length; r2++) t4[r2].textLength > e3 && (e3 = t4[r2].textLength, i3 = n3[r2].x);
            return { textWidth: e3, textStart: i3 };
          }, t3.prototype.qn = function(t4, n3) {
            return ft(t4, n3);
          }, t3.prototype.fe = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = t4.sheetArea, y2 = e3, w2 = this.qn(i3, y2), M2 = t4.sheet, C2 = t4.row, S2 = t4.col, T2 = r2, x2 = 0, A2 = this.qn(i3, "0"), I2 = this.qn(i3, X);
            if (x2 = I2, w2 > T2 - 1 - 2 - (u2 = 1 === o2 ? 0 : a2)) {
              if (s2 = "", 2 === o2) for (c2 = y2.length - 1; c2 >= 0; c2--) {
                if (x2 > T2 - 1 - 2 - a2) {
                  f2 = s2.length, s2 = X + s2.substring(1, f2);
                  break;
                }
                s2 = (l2 = y2.charAt(c2)) + s2, x2 += h2 = this.qn(i3, l2);
              }
              else if (1 === o2) {
                for (d2 = G((T2 - x2) / A2), c2 = 0; c2 < d2 / 2; c2++) s2 += l2 = y2.charAt(c2);
                for (s2 += X, c2 = P(y2.length - d2 / 2); c2 < y2.length; c2++) s2 += l2 = y2.charAt(c2);
                for (v2 = this.qn(i3, s2); v2 > T2 - 1 - 2 && s2 !== X; ) g2 = (p2 = s2.split(X))[0], m2 = p2[1], s2 = g2.length > m2.length ? g2.substring(0, g2.length - 1) + X + m2 : g2 + X + m2.substring(1, m2.length), v2 = this.qn(i3, s2);
              } else for (c2 = 0; c2 < y2.length; c2++) {
                if (x2 > T2 - 1 - 2 - a2) {
                  f2 = s2.length, s2 = s2.substring(0, f2 - 1) + X;
                  break;
                }
                s2 += l2 = y2.charAt(c2), x2 += h2 = this.qn(i3, l2);
              }
              n3.content = [{ value: s2, type: "text" }], M2.Ut.$n(C2, S2, y2, b2);
            }
          }, t3.prototype.Jn = function(t4, n3, e3, i3, r2, u2, c2, f2, l2, h2, d2, v2) {
            var g2, b2, C2, S2, x2, I2, k2, N2, j2, E2, L2, F2, B2, G2, U2, H2, V2, z2, Y2, Z2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, ct2, ft2, lt2, ht2, gt2, mt2, yt2, wt2, Mt2, Ct2 = this, St2 = 0, Tt2 = c2.textIndent, xt2 = c2.wordWrap, It2 = c2.hAlign, kt2 = c2.vAlign, Nt2 = c2.shrinkToFit, jt2 = c2.textDecoration, Dt2 = "left", _t2 = 2, Ot2 = 2, Et2 = c2.font, Rt2 = 0, Lt2 = [], Ft2 = 0, Bt2 = f2.sheet, Pt2 = new o.Rect(e3, i3, r2, u2), Gt2 = f2.cellOverflowLayout && f2.cellOverflowLayout.expandedWidth, Ut2 = f2.offsetX;
            if (Ut2 || (Ut2 = 0), 4 === It2 && (Tt2 = 0), p(f2.fontInfo) && (f2.fontInfo = a.W.x2e(c2, Bt2.zoom()), st(f2) && (f2.fontInfo = a.W.V(f2.fontInfo.font, f2.printZoomFactor))), g2 = parseInt(f2.fontInfo.fontSize, 10), p(f2.lineHeight) && (f2.lineHeight = m(a.W.x2e(c2, Bt2.zoom()).font, false, w(l2))), b2 = f2.lineHeight, (0, o.resetFillStyle)(t4, Bt2, c2, d2), C2 = Bt2.zoom() || 1, st(f2) && (C2 *= f2.printZoomFactor), Tt2 > 0 && (St2 = 8 * Tt2 * C2), Bt2.outlineColumn && Bt2.outlineColumn.Un(f2.col) && (St2 = 0), 3 === It2 && (It2 = y(It2, n3, c2.formatter || c2._autoFormatter)), S2 = 1, M(t4, Et2), x2 = 0, I2 = 0, v2 && (x2 = Ct2.Hn(v2.left), I2 = Ct2.Hn(v2.right), k2 = Ct2.Iye(v2)), N2 = x2 + I2, j2 = { left: x2, right: I2, isStick: k2 }, !xt2 && Nt2) {
              for (E2 = 0, L2 = { value: false }, F2 = void 0, B2 = 0; B2 < 3 && false === L2.value && (G2 = t4.measureText(l2).width, E2 = W(0, r2 - 4 - (1 === It2 ? 0 : St2) - N2), 4 === It2 && (E2 = W(0, Gt2 - 4 - St2 - N2)), E2 < G2); B2++) Et2 = (F2 = a.W.V(Et2, E2 / G2, L2, true)).font, M(t4, Et2);
              F2 && (S2 = g2 / F2.fontSize, g2 = F2.fontSize);
            }
            if ((U2 = Bt2.parent && Bt2.parent.options.numbersFitMode === s.NumbersFitMode.overflow || false) || (U2 = h2 && h2.content ? !(!h2.content || 1 !== h2.content.length || "text" !== h2.content[0].type) : "string" == typeof n3), !xt2 && !Nt2 && c2.showEllipsis && U2 && this.fe(f2, h2, l2, t4, r2, It2, St2), _t2 += St2 + x2, 1 === It2 || 4 === It2 || 5 === It2 ? (_t2 = (r2 + x2 - I2) / 2, Dt2 = _) : 2 === It2 && (_t2 = r2 - I2 - 1 - 2, Dt2 = D, _t2 = vt(c2, _t2 -= St2)), t4.textAlign !== Dt2 && (t4.textAlign = Dt2), H2 = 0, xt2 && (H2 = r2 - N2 - (V2 = pt(c2, 3)) - (1 === It2 || 5 === It2 ? 2 * St2 : St2), 4 === It2 && (H2 = Gt2 - N2 - V2 - St2), H2 -= 1, (Ft2 = (Lt2 = f2.isPrinting ? o.q.un(l2, H2, Et2, false, t4) : dt(l2, H2, Et2, false, t4)).length) > 1 && 0 !== kt2 && (Rt2 = (Ft2 - 1) * b2)), Ot2 += b2 - (Y2 = b2 / 2 - g2 / 2 + (z2 = g2 > 8 ? P((g2 - 8) / 5 + 2) : 1) - 1), Ot2 /= S2, 1 === kt2 ? Ot2 = (u2 - Rt2) / 2 + b2 / 2 - Y2 : 2 === kt2 && (Ot2 = u2 - (Rt2 + 2 + Y2) / S2), t4.textBaseline !== O && (t4.textBaseline = O), K2 = (Z2 = f2.cellOverflowLayout) && Z2.layout, J2 = 4 === It2 && Bt2.options.rightToLeft, X2 = { x: K2 ? J2 ? e3 + r2 - K2.width : K2.x : e3 + 1, y: K2 ? K2.y : i3 + 1, width: K2 ? K2.width : r2 - 2, height: K2 ? K2.height : u2 - 2 }, Z2 && 4 === It2 && (_t2 += (Z2.expandedWidth - r2) / 2), _t2 += Ut2, q2 = K2 && K2.width > r2 || 4 === It2, $2 = X2.x, tt2 = X2.y, nt2 = X2.width, et2 = X2.height, xt2) if (t4.rect($2, tt2, nt2, et2), t4.clip(), t4.beginPath(), it2 = i3 + Ot2, Ft2 > 1 || 5 === It2) if (rt2 = e3 + _t2, t4.textAlign === _ ? rt2 -= H2 / 2 : t4.textAlign === D && (rt2 -= H2), at2 = it2, (ot2 = bn(Lt2, b2, c2)).descenderHeight && (at2 += ot2.descenderHeight), f2.textRect = new o.Rect(rt2, Q(at2 + (Lt2.length - 1) * b2, i3 + u2), H2, Q(ot2.height, u2)), 5 === It2) ut2 = _t2, ct2 = 2 + St2 + x2 + Ut2, !U2 && !A(c2.formatter) && typeof c2.formatter === R && "object" != typeof n3 || U2 && 1 === Ft2 && !Ct2.SAe(Lt2[0]) ? Ct2.he(t4, l2, h2, e3 + ut2, i3 + Ot2, 1, nt2, St2, jt2, z2, g2, f2, c2, j2, Pt2, q2) : (Ct2.Zn(t4, c2, f2, rt2, it2, H2, b2 * Ft2, Pt2), Ct2.Z3e(t4, Lt2, e3, it2, H2, ut2, ct2, b2, c2, g2, z2), Ct2.Wn(t4, c2, f2, rt2, it2, H2, b2 * Ft2, Pt2));
            else {
              for (Ct2.Zn(t4, c2, f2, rt2, it2, H2, b2 * Ft2, Pt2), B2 = 0; B2 < Ft2; B2++) t4.direction = bt(c2.textDirection, Lt2[B2]), t4.fillText(Lt2[B2], e3 + _t2, it2), jt2 && (G2 = t4.measureText(Lt2[B2]).width, Ct2.le(t4, jt2, e3 + _t2, it2, G2, g2, z2)), it2 += b2;
              Ct2.Wn(t4, c2, f2, rt2, it2, H2, b2 * Ft2, Pt2);
            }
            else Ct2.he(t4, l2, h2, e3 + _t2, i3 + Ot2, It2, nt2, St2, jt2, z2, g2, f2, c2, j2, Pt2, q2);
            else lt2 = (ft2 = f2.ysr = T(t4, t4.font, l2) + N2) > nt2 - (e3 + 1 - $2) || b2 > et2 || 0 !== Ut2, 4 === It2 && (lt2 = true), ht2 = At(c2, 0), gt2 = At(c2, 1), mt2 = At(c2, 2), yt2 = At(c2, 3), lt2 || (1 === It2 || 4 === It2 ? Z2 && ((wt2 = ft2 / 2) > Z2.backgroundLeftWidth || wt2 > Z2.backgroundRightWidth) && (lt2 = true) : (ft2 + St2 + ht2 + mt2 > nt2 || Rt2 + yt2 + gt2 > et2) && (lt2 = true)), lt2 && (t4.rect($2, tt2, nt2, et2), t4.clip(), t4.beginPath()), Mt2 = J2 ? e3 + r2 - _t2 : e3 + _t2, Ct2.he(t4, l2, h2, Mt2, i3 + Ot2, It2, nt2, St2, jt2, z2, g2, f2, c2, j2, Pt2, q2);
          }, t3.prototype.SAe = function(t4) {
            var n3 = o.q.Q3e(t4);
            return n3.length > 1 || 1 === n3.length && n3[0].prefixSpaceCount > 0;
          }, t3.prototype.Z3e = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = n3.length, T2 = i3, x2 = c2.textDecoration, A2 = this, I2 = r2;
            for (h2 = 0; h2 < S2; h2++) if (d2 = n3[h2]) {
              if (1 === (v2 = o.q.Q3e(d2)).length) t4.textAlign = _, t4.fillText(d2, e3 + a2, T2), x2 && (p2 = t4.measureText(d2).width, A2.le(t4, x2, e3 + a2, T2, p2, f2, l2));
              else for (t4.textAlign = j, g2 = t4.measureText(" ").width, m2 = t4.measureText(d2).width, b2 = e3 + u2, y2 = 0, v2[0].prefixSpaceCount > 0 ? b2 += y2 = (I2 - m2) / v2.length : y2 = (I2 - m2) / (v2.length - 1), w2 = 0; w2 < v2.length; w2++) b2 += (M2 = v2[w2]).prefixSpaceCount * g2, t4.fillText(M2.word, b2, T2), C2 = t4.measureText(M2.word).width, x2 && A2.le(t4, x2, b2, T2, C2, f2, l2), b2 += C2 + y2;
              T2 += s2;
            } else T2 += s2;
          }, t3.prototype.Uro = function(t4, n3, e3) {
            var i3 = _, r2 = 0;
            return -90 === t4 ? e3 === s.VerticalAlign.top ? (i3 = j, r2 -= n3) : e3 === s.VerticalAlign.bottom && (i3 = D, r2 += n3) : 90 === t4 && (e3 === s.VerticalAlign.top ? (i3 = D, r2 -= n3) : e3 === s.VerticalAlign.bottom && (i3 = j, r2 += n3)), { textAlign: i3, yOffset: r2 };
          }, t3.prototype.Kn = function(t4, n3, e3, i3, r2, u2, s2, c2, f2, l2, h2, d2) {
            var v2, p2, g2, m2, b2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, G2, Y2, Z2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2 = this, vt2 = s2.wordWrap, pt2 = s2.hAlign, gt2 = s2.vAlign, mt2 = s2.shrinkToFit, bt2 = s2.textDecoration, yt2 = 2, wt2 = 2, Mt2 = s2.font, Ct2 = [], St2 = 0, Tt2 = parseInt(c2.fontInfo.fontSize, 10), xt2 = c2.sheet, It2 = new o.Rect(e3, i3, r2, u2), kt2 = c2.cellOverflowLayout, Nt2 = kt2 && kt2.layout, jt2 = s2 && (s2.borderLeft || s2.borderTop || s2.borderRight || s2.borderBottom) && !xt2.getSpan(c2.row, c2.col, c2.sheetArea), Dt2 = xt2.options.rightToLeft && z(s2.textOrientation) < 90 ? -s2.textOrientation : s2.textOrientation, _t2 = Dt2 * Math.PI / 180, Ot2 = z(_t2), Et2 = H(Ot2), Rt2 = U(Ot2), Lt2 = V(Ot2), Ft2 = c2.lineHeight, Bt2 = 90 === Dt2 || -90 === Dt2;
            if (jt2 && (Dt2 > -90 && Dt2 < 0 && (w2 = false), Dt2 > 0 && Dt2 < 90 && (w2 = true)), S2 = (C2 = { x: Nt2 ? Nt2.x : e3 + 1, y: Nt2 ? Nt2.y : i3 + 1, width: Nt2 ? Nt2.width : r2 - 2, height: Nt2 ? Nt2.height : u2 - 2 }).x, T2 = C2.y, x2 = C2.width, A2 = C2.height, I2 = Ft2 / 2 * U(Ot2), k2 = Ft2 / 2 * H(Ot2), j2 = Ft2 / 2 - Tt2 / 2 + (N2 = Tt2 > 8 ? P((Tt2 - 8) / 5 + 2) : 1) - 1, l2 && l2.content && l2.content.length > 0 && !mt2 && (f2 = dt2.de(t4, l2.content, u2 - 4, Mt2)), D2 = xt2.Qt(f2, Mt2), (0, o.resetFillStyle)(t4, xt2, s2, h2), 3 === pt2 && (pt2 = y(pt2, n3, s2.formatter || s2._autoFormatter, Dt2)), M(t4, Mt2), _2 = 0, O2 = 0, d2 && (_2 = dt2.Hn(d2.left), O2 = dt2.Hn(d2.right)), !vt2 && mt2) for (E2 = 0, R2 = { value: false }, L2 = 0; L2 < 3 && false === R2.value && (E2 = W(0, (u2 - 4 - 2 * k2) / Rt2)) < D2; L2++) Mt2 = a.W.V(Mt2, E2 / D2, R2, true).font, M(t4, Mt2), Tt2 = null !== (v2 = s2._fontSizeDigit) && void 0 !== v2 ? v2 : parseInt(c2.fontInfo.fontSize, 10), D2 = xt2.Qt(f2, Mt2), I2 = (Ft2 = o.mt.vt(Mt2)) / 2 * U(Ot2), k2 = Ft2 / 2 * H(Ot2);
            if (F2 = 0, B2 = 0, vt2) for (B2 = (u2 - 4 - 2 * k2) / Rt2, St2 = (Ct2 = o.q.un(f2, B2, Mt2, false, t4)).length, D2 = xt2.Qt(Ct2[0], Mt2), G2 = 0; G2 < St2; G2++) (Y2 = xt2.Qt(Ct2[G2], Mt2)) > F2 && (F2 = Y2);
            switch (u2 <= (b2 = (vt2 ? F2 : D2) * Rt2 + 2 * k2) && (gt2 = 2), g2 = D2 / 2 * Et2, m2 = (vt2 ? F2 : D2) / 2 * Rt2, 5 === pt2 && (Dt2 < 0 && (pt2 = 2, Bt2 && 1 === St2 && (O2 = (x2 - Ft2) / 2)), Dt2 > 0 && (pt2 = 0, Bt2 && 1 === St2 && (_2 = (x2 - Ft2) / 2)), Bt2 && St2 > 1 && (Ft2 = (x2 - Ft2) / (St2 - 1)) < c2.lineHeight && (Ft2 = c2.lineHeight)), Z2 = "" + pt2 + gt2) {
              case "00":
                yt2 += g2 + I2 + _2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 = (u2 - wt2) / Lt2 * (w2 ? 1 : -1) + (Ft2 / 2 + 2) / Rt2 + _2);
                break;
              case "01":
                yt2 += g2 + I2 + _2, wt2 = u2 / 2, jt2 && (yt2 = (u2 - wt2) / Lt2 * (w2 ? 1 : -1) + (Ft2 / 2 + 2) / Rt2 + _2);
                break;
              case "02":
                yt2 += g2 + I2 + _2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 = wt2 / Lt2 * (w2 ? 1 : -1) + (Ft2 / 2 + 2) / Rt2 + _2), wt2 = u2 - wt2;
                break;
              case "10":
                yt2 = (r2 + _2 - O2) / 2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 += (w2 ? 1 : -1) * (u2 - wt2) / Lt2);
                break;
              case "11":
                yt2 = (r2 + _2 - O2) / 2, wt2 = u2 / 2, jt2 && (yt2 += (w2 ? 1 : -1) * (u2 - wt2) / Lt2);
                break;
              case "12":
                yt2 = (r2 + _2 - O2) / 2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 += (w2 ? 1 : -1) * wt2 / Lt2), wt2 = u2 - wt2;
                break;
              case "20":
                yt2 = r2 - 2 - g2 - I2 - O2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 = r2 + (u2 - wt2) / Lt2 * (w2 ? 1 : -1) - (Ft2 / 2 + 2) / Rt2 - O2);
                break;
              case "21":
                yt2 = r2 - 2 - g2 - I2 - O2, wt2 = u2 / 2, jt2 && (yt2 = r2 + (u2 - wt2) / Lt2 * (w2 ? 1 : -1) - (Ft2 / 2 + 2) / Rt2 - O2);
                break;
              case "22":
                yt2 = r2 - 2 - g2 - I2 - O2, wt2 += m2, Bt2 || (wt2 += k2), jt2 && (yt2 = r2 + wt2 / Lt2 * (w2 ? 1 : -1) - (Ft2 / 2 + 2) / Rt2 - O2), wt2 = u2 - wt2;
            }
            if (vt2) if (K2 = e3 + yt2, J2 = Ft2 / Rt2, X2 = void 0, 90 === Math.abs(Dt2) && (tt2 = D2 * St2 + (q2 = At(s2, 1)) + ($2 = At(s2, 3)) > x2) && (t4.rect(S2, T2, x2, A2), t4.clip()), St2 > 1) {
              for (1 === pt2 && (K2 -= (nt2 = St2 % 2 != 0) ? J2 * (St2 - 1) / 2 : J2 * (St2 / 2) - 0.5 * J2), it2 = (et2 = Yt(K2, i3 + wt2, D2, _t2, Ft2)).width + J2 * (St2 - 1), rt2 = et2.height, ot2 = et2.y, at2 = et2.x - J2 * (St2 - 1), c2.textRect = new o.Rect(at2, Q(i3 + 2 * wt2, It2.y + It2.height), it2, 2 * wt2 - Ft2 / 2), dt2.Zn(t4, s2, c2, at2, ot2, it2, rt2, It2), st2 = (ut2 = dt2.Uro(Dt2, m2, gt2)).textAlign, ct2 = ut2.yOffset, -90 === Dt2 && false === (null === (p2 = null == c2 ? void 0 : c2.paintInfo) || void 0 === p2 ? void 0 : p2.rightToLeft) && (Ct2 = Ct2.reverse()), L2 = 0; L2 < St2; L2++) X2 = L2, (s2.textOrientation > 0 && 2 === pt2 || s2.textOrientation < 0 && (0 === pt2 || 1 === pt2)) && (X2 = St2 - L2 - 1), dt2.ve(t4, _t2, Ct2[X2], K2, i3 + wt2 + ct2, bt2, Tt2, N2, j2, st2), K2 = 2 === pt2 ? K2 - J2 : K2 + J2;
              dt2.Wn(t4, s2, c2, at2, ot2, it2, rt2, It2);
            } else dt2.me(t4, f2, e3, i3, yt2, wt2, c2, s2, D2, _t2, bt2, Tt2, N2, Ft2, j2, It2);
            else ft2 = D2 * Rt2 + Tt2 * Rt2 + 2, lt2 = At(s2, 0), ht2 = At(s2, 2), (tt2 = ft2 > A2 - (i3 + 1 - T2) || Ft2 > A2 || ft2 + lt2 + ht2 > A2) && (t4.rect(S2, T2, x2, A2), t4.clip()), dt2.me(t4, f2, e3, i3, yt2, wt2, c2, s2, D2, _t2, bt2, Tt2, N2, Ft2, j2, It2);
          }, t3.prototype.me = function(t4, n3, e3, i3, r2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2) {
            var b2, y2 = this, w2 = Yt(e3, i3, f2, l2, p2), M2 = w2.width, C2 = w2.height, S2 = w2.x, T2 = w2.y;
            (a.W.qme(c2) || a.W.$me(c2)) && (b2 = z(l2), S2 = e3 + r2 - (M2 = f2 * H(b2) + p2 * U(b2)) / 2, T2 = i3 + u2 - (C2 = f2 * U(b2) + p2 * H(b2)) / 2), s2.textRect = new o.Rect(S2, Q(T2 + C2, m2.height + m2.y), M2, C2), y2.Zn(t4, c2, s2, S2, T2, M2, C2, m2), y2.ve(t4, l2, n3, e3 + r2, i3 + u2, h2, d2, v2, g2), y2.Wn(t4, c2, s2, S2, T2, M2, C2, m2);
          }, t3.prototype.te = function(t4, n3, e3, i3) {
            zt(t4, n3, e3, i3);
          }, t3.prototype.ne = function(t4, n3, e3, i3, r2, o2, u2) {
            var s2, c2, f2, l2 = 0, h2 = { value: false };
            for (s2 = 0; s2 < 3 && false === h2.value && (c2 = Mt(t4, r2, o2, u2), l2 = W(0, (u2 ? e3 : n3) - 4), (u2 ? i3.vAlign : 1 !== i3.hAlign && i3.textIndent) && (l2 = W(0, l2 - 8 * i3.textIndent * o2)), l2 < c2); s2++) for (f2 = 0; f2 < t4.length; f2++) t4[f2].style.font = a.W.V(t4[f2].style.font, l2 / c2, h2, true).font;
          }, t3.prototype.Pt = function(t4, n3, e3, i3, r2) {
            var o2 = t4 && t4.richText;
            return !p(o2) && e3 || (o2 = [{ style: { font: i3, foreColor: r2 }, text: n3 }]), o2;
          }, t3.prototype.oe = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
            var d2, v2 = u2 && u2.layout, p2 = { x: v2 ? v2.x : e3 + 1, y: v2 ? v2.y : i3 + 1, width: v2 ? v2.width : r2 - 2, height: v2 ? v2.height : o2 - 2 }, g2 = p2.x, m2 = p2.y, b2 = p2.width, y2 = p2.height;
            return (a2 || (d2 = this.ge(n3, s2, n3.vAlign, e3, i3, y2, b2, g2, m2, l2, h2, c2, f2, u2))) && (t4.rect(g2, m2, b2, y2), t4.clip(), t4.beginPath()), p2;
          }, t3.prototype.ge = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
            var v2, p2, g2 = At(t4, 0), m2 = At(t4, 1), b2 = At(t4, 2), y2 = At(t4, 3);
            return h2 ? (!(v2 = c2 > o2 - (r2 + 1 - s2) || f2 > a2) && 1 !== e3 && c2 + l2 + g2 + b2 > o2 || f2 + y2 + m2 > a2) && (v2 = true) : (v2 = c2 > a2 - (i3 + 1 - u2) || f2 > o2) || (1 === n3 ? d2 && ((p2 = c2 / 2) > d2.backgroundLeftWidth || p2 > d2.backgroundRightWidth) && (v2 = true) : (c2 + l2 + y2 + m2 > a2 || f2 + g2 + b2 > o2) && (v2 = true)), v2;
          }, t3.prototype.ee = function(t4, n3, e3, i3, r2, u2, s2, c2, f2) {
            var l2, h2, d2, v2, p2;
            if (i3 = 1 === u2 || 5 === u2 ? i3 - 3 - 2 * r2 : i3 - 3 - r2, s2 && n3) return o.q.Ht(n3, i3, e3, f2, c2, t4);
            for (l2 = 0, h2 = 0; h2 < f2.length; h2++) d2 = f2[h2].text, c2 ? l2 += b(f2[h2].style.font, d2) * (d2 ? d2.length : 0) : (v2 = a.W.V(f2[h2].style.font, 1), p2 = f2[h2].style.vertAlign ? v2.fontSize * K + "px " + v2.fontFamily : f2[h2].style.font, l2 += T(t4, p2, d2));
            return [{ textLength: l2, text: n3, textInfos: f2 }];
          }, t3.prototype.ue = function(t4, n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2) {
            var y2, w2 = a.W.x2e(f2, 1).fontSize, M2 = w2 > 8 ? P((w2 - 8) / 5 + 2) : 1;
            this.pe(t4, n3, f2), v2 ? this.be(t4, e3, i3, f2, r2, o2, h2, d2, h2, g2, m2, b2) : (y2 = l2 > u2, this.he(t4, e3, i3, r2, o2, c2, l2, d2, f2.textDecoration, M2, w2, g2, f2, m2, b2, y2, p2));
          }, t3.prototype.be = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2) {
            var d2, v2, p2, g2, m2, b2 = this, y2 = e3.content, w2 = a2;
            if (f2.textRect = new o.Rect(r2, w2, c2, yn(t4, n3, e3, r2, a2, u2, s2, c2) - w2), b2.Zn(t4, i3, f2, r2, w2, c2, c2 * n3.length, h2), y2 && y2.length > 0) for (p2 = (p2 = u2 - s2 - (v2 = Gt(t4, y2, true)) - 2) > 0 ? p2 : 0, g2 = void 0, d2 = 0; d2 < y2.length; d2++) "fillingChar" === y2[d2].type ? (m2 = Ht(t4, p2, y2[d2].value, true), this.ye(t4, m2, r2, a2), a2 += p2) : "placeholder" === y2[d2].type ? a2 += y2[d2].value ? y2[d2].value.length * c2 : 0 : "numberPlaceholder" === y2[d2].type ? a2 += c2 : (this.ye(t4, y2[d2].value, r2, a2), a2 += g2 = y2[d2].value ? y2[d2].value.length * c2 : 0);
            else if (n3) for (d2 = 0; d2 < n3.length; d2++) a2 = this.ye(t4, n3[d2], r2, a2, c2).y;
            b2.Wn(t4, i3, f2, r2, w2, c2, a2 - w2, h2);
          }, t3.prototype.we = function(t4) {
            var n3 = j;
            return 1 === t4 ? n3 = _ : 2 === t4 && (n3 = D), n3;
          }, t3.prototype.Fgr = function(t4, n3) {
            for (var e3 = n3 && " " === t4.text[0] ? 0 : t4.textInfos.findIndex((function(t5) {
              return t5.text.length > 0 && " " !== t5.text;
            })), i3 = t4.textInfos.length - 1; i3 > e3 && (0 === t4.textInfos[i3].text.length || " " === t4.textInfos[i3].text); ) i3--;
            return t4.textInfos.slice(e3, i3 + 1);
          }, t3.prototype.ce = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2 = !r2.isVerticalText && 5 === o2, p2 = v2 ? this.Fgr(a2, f2) : a2.textInfos, g2 = [];
            for (l2 = 0; l2 < p2.length; l2++) g2.push(k(true, {}, r2, p2[l2].style));
            for (h2 = 0, v2 && p2.length > 1 && s2 && (h2 = (s2 - a2.textLength) / (p2.length - 1)) < 0 && (h2 = 0), l2 = 0; l2 < p2.length; l2++) e3 = (d2 = this.Me(t4, n3, e3, i3, g2[l2], p2[l2].text, u2, c2)).x + h2, i3 = d2.y;
          }, t3.prototype.re = function(t4, n3, e3, i3) {
            var r2, o2, a2 = [], u2 = t4.length;
            for (r2 = 0; r2 < u2; r2++) o2 = this.Ce(n3, e3, i3, t4[r2].textInfos), a2.push(o2);
            return a2;
          }, t3.prototype.Ce = function(t4, n3, e3, i3) {
            var r2, o2, u2, s2, c2 = this, f2 = 0, l2 = 0;
            if (i3) for (r2 = 0; r2 < i3.length; r2++) o2 = void 0, o2 = i3[r2].style && i3[r2].style.font && i3[r2].text ? i3[r2].style.font : t4.font, f2 = Math.max(b(o2, i3[r2].text), f2), l2 = Math.max(a.W.V(o2, 1).fontSize, l2), (i3[r2].style && 1 === i3[r2].style.vertAlign || 2 === i3[r2].style.vertAlign) && (f2 = Math.max(b(o2, i3[r2].text) + 2 * a.W.V(o2, K).fontSize * 0.218, f2));
            return { lineHeight: f2, fontSize: l2, baselineOffset: u2 = l2 > 8 ? P((l2 - 8) / 5 + 2) : 1, lineOffset: s2 = f2 / 2 - l2 / 2 + u2 - 1, font: t4.font, foreColor: t4.foreColor, textDecoration: t4.textDecoration, isVerticalText: t4.isVerticalText, textAlign: c2.we(n3), textBaseline: O, opacity: e3, hAlign: n3 };
          }, t3.prototype.Se = function(t4, n3, e3) {
            var i3 = 0, r2 = 0, o2;
            for (o2 = 0; o2 < t4.length; o2++) r2 += n3[o2].lineHeight, i3 = Math.max(t4[o2].textLength, i3);
            return { width: e3 ? r2 : i3, height: e3 ? i3 : r2 };
          }, t3.prototype.ae = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
            var v2, p2, g2, m2, b2 = this.Se(c2, f2, u2), y2 = b2.height, w2 = b2.width, M2 = [];
            if (u2) for (p2 = r2, g2 = 0, 5 === r2 && (1 === c2.length ? p2 = 1 : (p2 = 0, w2 < (m2 = e3 - 4 - l2.left - l2.right) && (g2 = (m2 - w2) / (c2.length - 1)))), v2 = 0; v2 < c2.length; v2++) M2.push(this.Te(t4, n3, e3, i3, p2, o2, a2, w2, c2[v2].textLength, f2[v2].lineHeight, f2[v2].lineOffset, s2, l2, c2[v2], h2, d2)), s2 ? t4 -= f2[v2].lineHeight + g2 : t4 += f2[v2].lineHeight + g2;
            else for (v2 = 0; v2 < c2.length; v2++) p2 = r2, 5 === r2 && (p2 = this.Fgr(c2[v2], 0 === v2).length > 1 ? 0 : 1), M2.push(this.Ae(t4, n3, e3, i3, p2, o2, a2, c2[v2].textLength, y2, f2[v2].lineHeight, f2[v2].lineOffset, l2, d2)), n3 += f2[v2].lineHeight;
            return M2;
          }, t3.prototype.Ae = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
            var d2 = 0, v2 = 0, p2 = l2.left, g2 = l2.right;
            return v2 = 1 === o2 ? (i3 - s2) / 2 + c2 - f2 : 2 === o2 ? i3 - s2 - 2 + c2 - f2 : 2 + c2 - f2, 1 === r2 || 4 === r2 ? d2 = (e3 - u2 + p2 - g2) / 2 : 2 === r2 ? (d2 = vt(h2, d2 = e3 - 1 - 2 - u2 - g2), d2 -= a2) : d2 = 2 + a2 + p2, { x: t4 + d2, y: n3 + v2 };
          }, t3.prototype.Te = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2) {
            var g2 = 0, m2 = 0, b2 = h2.left, y2 = h2.right;
            return l2 ? 0 === r2 ? g2 = 2 + u2 + y2 - c2 / 2 : 1 === r2 ? g2 = (e3 - b2 + y2 + u2) / 2 - c2 / 2 : 2 === r2 && (g2 = vt(p2, g2 = e3 - b2 - 1 - 2 - c2 / 2)) : 1 === r2 ? g2 = (e3 - u2 + b2 - y2) / 2 + c2 / 2 : 2 === r2 ? g2 = vt(p2, g2 = e3 - 1 - 2 - y2 - u2 + c2 / 2) : 0 === r2 && (g2 = 2 + b2 + c2 / 2), { x: t4 + g2, y: n3 + (m2 = 1 === o2 ? (i3 - s2) / 2 : 2 === o2 ? i3 - a2 - s2 - 2 : 2 + a2) };
          }, t3.prototype.Me = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2;
            return t4.save(), this.pe(t4, n3, r2), s2 = r2.vertAlign, c2 = r2.isVerticalText ? this.ye(t4, o2, e3, i3, r2.textDecoration, r2.baselineOffset, a2) : this.Ie(t4, e3, i3, r2, o2, s2, u2), t4.restore(), c2;
          }, t3.prototype.pe = function(t4, n3, e3) {
            (0, o.resetFillStyle)(t4, n3, e3);
            var i3 = e3.vertAlign ? this.xe(e3.font) : e3.font;
            p(e3.textBaseline) || t4.textBaseline === e3.textBaseline ? p(t4.textBaseline) && t4.textBaseline !== O && (t4.textBaseline = O) : t4.textBaseline = e3.textBaseline, e3.isVerticalText ? t4.textAlign !== _ && (t4.textAlign = _) : t4.textAlign !== j && (t4.textAlign = j), M(t4, i3);
          }, t3.prototype.xe = function(t4) {
            var n3 = a.W.Ne(t4), e3 = parseFloat(n3.fontSize) * K;
            return n3.fontSize = e3 + "px", this.ke(n3);
          }, t3.prototype.ke = function(t4) {
            var n3 = "", e3 = "normal", i3 = "Calibri", r2 = t4.fontStyle, o2 = t4.fontSize, a2 = t4.fontWeight, u2 = t4.fontFamily;
            return n3 = void 0 !== r2 ? r2 : e3, n3 += void 0 !== a2 ? (n3 ? " " : "") + a2 : (n3 ? " " : "") + e3, n3 += (n3 ? " " : "") + o2, n3 += void 0 !== u2 ? (n3 ? " " : "") + u2 : (n3 ? " " : "") + i3;
          }, t3.prototype.o_e = function(t4, n3, e3, i3, r2, o2, a2) {
            n3.save(), n3.translate(e3 + o2 - r2 / 2, i3 + o2 - r2 / 2), n3.rotate(Math.PI / 2), a2 === c.VCRT.DEG90_FLIP_V ? n3.scale(-1, 1) : a2 === c.VCRT.DEG90_FLIP_H && n3.scale(1, -1), n3.fillText(t4, 0, 0), n3.restore();
          }, t3.prototype.ye = function(t4, n3, e3, i3, r2, o2, u2) {
            var s2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2;
            if (n3 && n3.length > 0) for (s2 = this, f2 = t4.font, l2 = b(f2, n3), h2 = lt(a.W.V(f2, 1).fontSize, l2), v2 = (d2 = s2.qn(t4, "0")) / 2, p2 = 0; p2 < n3.length; p2++) g2 = n3[p2], i3 = i3 + (y2 = (m2 = void 0 !== u2 && p2 >= u2 && p2 <= u2 + 2 && (u2 + 3 === n3.length || 0 === u2 && u2 + 3 < n3.length || 0 !== u2 && u2 + 3 < n3.length)) ? d2 : l2) - (w2 = m2 ? v2 : h2), M2 = a.W.Ne(t4.font).fontFamily || "游ゴシック", (S2 = (C2 = (0, c.rotatedCharsForVertical)())[M2] && C2[M2][g2]) ? s2.o_e(g2, t4, e3, i3, l2, h2, S2) : t4.fillText(g2, e3, i3), this.De(t4, r2, e3, i3, T(t4, t4.font, g2), a.W.V(t4.font, 1).fontSize, o2), i3 += w2;
            return { x: e3, y: i3 };
          }, t3.prototype.De = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2;
            t4.strokeStyle !== t4.fillStyle && (t4.strokeStyle = t4.fillStyle), u2 = 0, s2 = 0, c2 = 0.5, s2 = P(((f2 = o2 <= 12 ? 12 : o2) - 12) / 21 + 1), t4.lineWidth !== s2 && (t4.lineWidth = s2), 1 & s2 || (c2 = 0), (l2 = t4.textAlign) === _ ? e3 -= r2 / 2 : l2 === D && (e3 -= r2), t4.beginPath(), 2 & ~n3 || (u2 = G(i3 + a2 - o2 / 2) - c2, t4.moveTo(e3, u2), t4.lineTo(e3 + r2, u2)), t4.stroke();
          }, t3.prototype.Ie = function(t4, n3, e3, i3, r2, o2, u2) {
            var c2, f2, l2, h2, d2;
            return p(r2) ? { x: n3, y: e3 } : (f2 = (c2 = a.W.V(t4.font, 1).fontSize) > 8 ? P((c2 - 8) / 5 + 2) : 1, l2 = 0, o2 ? (l2 = 1 === o2 ? 0.74 * c2 : 0.28 * -c2, t4.fillText(r2, n3, e3 - l2)) : (u2 && (t4.rect(u2.x, u2.y, u2.width, u2.height), t4.clip()), t4.fillText(r2, n3, e3)), h2 = T(t4, t4.font, r2), i3.hAlign === s.HorizontalAlign.distributed && "" === r2.trim() || (d2 = i3.textDecoration, this.le(t4, d2, n3, e3, h2, c2, f2 - l2)), { x: n3 + h2, y: e3 });
          }, t3.prototype._e = function(n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2 = { row: s2.row, col: s2.col, sheet: s2.sheet, sheetArea: s2.sheetArea, style: u2, underline: u2.textDecoration, foreColor: u2.foreColor };
            t3.et(s2.sheet, "applyHyperlinkStyle", c2), this.paint(n3, e3, i3, r2, o2, a2, u2, s2);
          }, t3.prototype.paint = function(t4, n3, e3, i3, r2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2;
            t4 && (St(t4, e3, i3, r2, a2, s2.imageLoader, u2, n3, s2), 2 !== (c2 = s2.sheetArea) && 1 !== c2 || (f2 = s2.visualState || 0, l2 = "columnHeader", 2 === c2 && (l2 = "rowHeader"), h2 = this.getThemeStyle(s2.visualState, "gc-" + l2 + "-" + o.I.Ee(f2)), it.cn(t4, e3, i3, r2, a2, u2, l2, h2, c2)), d2 = this, v2 = new o.Rect(e3, i3, r2, a2), s2.cellRect = v2.clone(), d2.Vn(t4, s2, v2, n3, u2), Wt(t4, v2, u2, s2), d2.Tn && (d2.Tn(t4, v2, u2, s2), v2 = d2.An(v2, u2, st(s2) ? s2.printZoomFactor : s2.sheet.zoom())), s2.cellOverflowLayout || d2.pn(t4, v2, s2, S(n3)), v2.width > 0 && v2.height > 0 && (u2 && u2.showEllipsis && s2.sheet.Ut.$n(s2.row, s2.col, null, s2.sheetArea), d2.paintContent(t4, n3, v2.x, v2.y, v2.width, v2.height, u2, s2)));
          }, t3.prototype.paintContent = function(t4, n3, e3, i3, r2, a2, u2, s2) {
            var c2, f2, l2, h2, d2 = s2.conditionalFormats;
            d2 && (c2 = d2._e(t4, S(n3), e3, i3, r2, a2, u2, s2)), s2.showBarIconOnly = c2, (f2 = s2.sparkline) && f2.paintSparkline(t4, e3, i3, r2, a2), l2 = it.dn(t4, S(n3), e3, i3, r2, a2, s2), s2.cellOverflowLayout || c2 || l2 || (h2 = new o.Rect(e3, i3, r2, a2), this.Bye(s2, u2), this.paintValue(t4, n3, h2.x, h2.y, h2.width, h2.height, u2, s2));
          }, t3.prototype.adjustRectForIconSet = function(t4, n3, e3, i3, r2, o2, a2) {
            Tt(t4, n3, e3, i3, r2, o2, a2);
          }, t3.prototype.hasInfilling = function(t4) {
            for (var n3 = 0; n3 < t4.length; n3++) if ("fillingChar" === t4[n3].type) return true;
            return false;
          }, t3.prototype.createEditorElement = function(t4, n3) {
            return F;
          }, t3.prototype.getEditorValue = function(t4, n3) {
            return F;
          }, t3.prototype.je = function(t4, n3, e3, i3) {
            return e3;
          }, t3.prototype.setEditorValue = function(t4, n3, e3) {
          }, t3.prototype.getEditingElement = function() {
            return F;
          }, t3.prototype.parse = function(t4, n3, e3) {
            var r2, o2, a2 = p(n3), u2 = p(t4);
            try {
              if (r2 = i2.Formatter && i2.Formatter.GeneralFormatter, !a2 && !u2 && r2) return (o2 = typeof n3 === R ? new r2(n3) : n3).parse(t4);
            } catch (t5) {
            }
            return u2 ? "" : t4.toString();
          }, t3.prototype.format = function(t4, n3, e3, r2) {
            var a2, u2, s2, c2, v2, g2, m2 = A(n3);
            if (r2 && m2 && (u2 = (a2 = r2.sheet).Oe(r2.row, r2.col, r2.sheetArea, n3), p(u2) || (t4 = u2)), p(t4) || "" === t4) return "";
            if (r2 && r2.quotePrefix && typeof t4 === R) return t4.toString();
            if (!m2 && typeof n3 === R && "object" != typeof t4) return o.Be.Re(t4, n3, e3);
            if (!n3 || "General" === n3 || m2) return "boolean" == typeof t4 || t4 instanceof Boolean ? (f && (t4 = t4 ? f.getBoolean().boolean_true : f.getBoolean().boolean_false), t4.toString().toUpperCase()) : t4 instanceof Date ? (c2 = (s2 = l.Fe(l.culture()).DateTimeFormat).shortDatePattern, 0 === t4.getHours() && 0 === t4.getMinutes() && 0 === t4.getSeconds() && 0 === t4.getMilliseconds() || (c2 = s2.defaultDatePattern), d.Pe(t4, c2)) : (typeof t4 === L && (t4 = h.Ge(t4.toString())), t4.toString());
            try {
              return (v2 = i2.Formatter && i2.Formatter.GeneralFormatter) ? (g2 = void 0, (g2 = typeof n3 === R ? o.Be.Ue(n3) : n3).format(t4, e3)) : t4.toString();
            } catch (n4) {
              return t4.toString();
            }
          }, t3.prototype.focus = function(t4, n3) {
            t4 && t4.focus && t4.focus();
          }, t3.prototype.getThemeStyle = function(t4, n3) {
            return o.I.He(t4, n3);
          }, t3.prototype.activateEditor = function(t4, n3, e3, i3, r2, o2, a2) {
          }, t3.prototype.deactivateEditor = function(t4, n3) {
          }, t3.prototype.selectAll = function(t4, n3) {
            t4 && t4.select && t4.select();
          }, t3.prototype.updateEditor = function(t4, n3, e3, i3, r2, o2, a2) {
          }, t3.prototype.setImeMode = function(t4, n3, e3) {
            this.isImeAware(e3) ? this.updateImeMode(t4, n3, e3) : t4 && it.hn(t4, 0);
          }, t3.prototype.updateImeMode = function(t4, n3, e3) {
            t4 && it.hn(t4, n3);
          }, t3.prototype.getHitInfo = function(t4, n3, e3, i3, r2) {
            return F;
          }, t3.prototype.getCellAndPaddingHitInfo = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2 = this;
            if (o2) {
              if (a2 = { x: n3, y: e3, context: o2, cellStyle: i3, cellRect: r2, paddingHitInfo: null }, t3.et(o2.sheet, "getCellButtonHitInfo", a2, (function() {
                return null !== a2.paddingHitInfo && void 0 !== a2.paddingHitInfo;
              })), u2 = a2.paddingHitInfo, a2.paddingHitInfo && !p(a2.paddingHitInfo.cellButtonHitInfo) && !p(a2.paddingHitInfo.cellButtonHitInfo.buttonConfig)) return a2.paddingHitInfo;
              if (a2.cellRect = s2.An ? s2.An(a2.cellRect, i3, o2.sheet.zoom()) : a2.cellRect, t3.et(o2.sheet, "getCellTextHitInfo", a2, (function() {
                return !p(a2.paddingHitInfo) && a2.paddingHitInfo.isReservedLocation;
              })), a2.paddingHitInfo && a2.paddingHitInfo.isReservedLocation) return a2.paddingHitInfo;
              if (3 === o2.sheetArea) return t3.et(o2.sheet, "getCellPaddingHitInfo", a2, (function() {
                return !p(a2.paddingHitInfo) && a2.paddingHitInfo.isReservedLocation;
              })), a2.paddingHitInfo ? a2.paddingHitInfo : u2 || this.getHitInfo(n3, e3, i3, r2, o2);
            }
            return this.getHitInfo(n3, e3, i3, r2, o2);
          }, t3.prototype.processCellAndPaddingMouseDown = function(n3) {
            return t3.et(n3.sheet, "processMouseDownOnCellPadding", n3), this.processMouseDown(n3);
          }, t3.prototype.processMouseDown = function(t4) {
            return false;
          }, t3.prototype.ze = function(n3) {
            return t3.et(n3.sheet, "processMouseMoveOnCellPadding", n3), this.processMouseMove(n3);
          }, t3.prototype.processMouseMove = function(t4) {
            return false;
          }, t3.prototype.Ve = function(n3) {
            return t3.et(n3.sheet, "processMouseUpOnCellPadding", n3), this.processMouseUp(n3);
          }, t3.prototype.processMouseUp = function(t4) {
            return false;
          }, t3.prototype.processMouseEnter = function(t4) {
            return false;
          }, t3.prototype.Ye = function(n3) {
            return t3.et(n3.sheet, "processMouseLeaveOnCellPadding", n3), this.processMouseLeave(n3);
          }, t3.prototype.processMouseLeave = function(t4) {
            return false;
          }, t3.prototype.isReservedKey = function(t4, n3) {
            return false;
          }, t3.prototype.isEditingValueChanged = function(t4, n3, e3) {
            var i3 = e3.sheet, r2 = e3.row, o2 = e3.col, a2 = e3.sheetArea || s.SheetArea.viewport, u2 = i3 && i3.getValue(r2, o2, a2, s.ValueType.richText);
            return u2 && u2.richText && (t4 = t4.replace(/\r\n?/g, "\n").replace(nt, tt), n3 && n3.replace && (n3 = n3.replace(/\r\n?/g, "\n").replace(nt, tt))), "string" == typeof t4 && t4 && "string" == typeof n3 && n3 && (t4 = t4.replace(/\t/g, ""), n3 = n3.replace(/\t/g, "")), t4 === F && (t4 = B), n3 === F && (n3 = B), t4 !== n3;
          }, t3.prototype.processCompositionStart = function(t4, n3) {
            return false;
          }, t3.prototype.processKeyDown = function(t4, n3) {
            return false;
          }, t3.prototype.processKeyUp = function(t4, n3) {
            return false;
          }, t3.prototype.getAutoFitWidth = function(t4, n3, e3, i3, r2) {
            return it.Bt(t4, n3, e3, i3, r2);
          }, t3.prototype.getAutoFitHeight = function(t4, n3, e3, i3, r2) {
            return it.tn(t4, n3, e3, i3, r2);
          }, t3.prototype.NFe = function(t4, n3, e3, i3) {
            return t4 && t4.content && t4.content.length > 0 && (n3 || !e3 || 4 === i3);
          }, t3.prototype.yUr = function(t4, n3, e3) {
            var i3, r2, a2, u2;
            if (!Array.isArray(t4)) return n3;
            if (0 === t4.length) return n3;
            for (t4 = Ut(JSON.parse(JSON.stringify(t4))), i3 = (0, o.getTextContentWithoutEndBlank)(t4, e3), r2 = "", a2 = 0; a2 < i3.length; a2++) if (u2 = i3[a2]) switch (u2.type) {
              case "fillingChar":
                break;
              case "numberPlaceholder":
                r2 += "0";
                break;
              default:
                r2 += u2.value;
            }
            return r2;
          }, t3.prototype.he = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2) {
            var y2, w2, M2, C2, S2, x2 = this, A2 = v2.isStick;
            x2.NFe(e3, b2, g2, a2) ? this.Ze(t4, e3.content, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2) : (m2 = m2 || T(t4, t4.font, n3), y2 = i3, w2 = void 0, t4.textAlign === _ ? (y2 -= m2 / 2, v2.left > 0 && p2.width < m2 + v2.left && (i3 = m2 / 2 + v2.left + p2.x)) : t4.textAlign === D && (y2 -= m2, v2.left > 0 && p2.width < m2 + v2.left && (w2 = { x: p2.x + v2.left, y: p2.y, width: p2.width - v2.left, height: p2.height })), M2 = y2, v2.left > 0 && y2 - p2.x < v2.left && A2 && (M2 = p2.x + v2.left), S2 = r2, (C2 = bn([n3], h2.lineHeight, d2)).descenderHeight && (S2 += C2.descenderHeight), h2.textRect = new o.Rect(y2, S2, m2, C2.height), x2.Zn(t4, d2, h2, M2, r2, m2, h2.lineHeight, p2), w2 && A2 ? (t4.save(), t4.beginPath(), t4.rect(w2.x, w2.y, w2.width, w2.height), t4.clip(), t4.fillText(n3, i3, r2), t4.restore()) : (t4.direction = bt(d2.textDirection, n3), t4.fillText(n3, i3, r2)), c2 && this.le(t4, c2, i3, r2, m2, l2, f2), x2.Wn(t4, d2, h2, y2, r2, m2, h2.lineHeight, p2));
          }, t3.prototype.ve = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            if (t4.save(), t4.textAlign = c2 || "center", t4.textBaseline = "middle", t4.translate(i3, r2), t4.rotate(-n3), t4.fillText(e3, 0, 0), o2) {
              var f2 = t4.measureText(e3).width;
              this.le(t4, o2, 0, s2, f2, a2, u2);
            }
            t4.restore();
          }, t3.prototype.de = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            for (t4.font || M(t4, i3), o2 = (o2 = e3 - (r2 = Gt(t4, n3))) > 0 ? o2 : 0, a2 = [], u2 = 0; u2 < n3.length; u2++) if ("fillingChar" === n3[u2].type) a2.push(Ht(t4, o2, n3[u2].value));
            else {
              if ("placeholder" === n3[u2].type || "numberPlaceholder" === n3[u2].type) continue;
              a2.push(n3[u2].value);
            }
            return a2.join("");
          }, t3.prototype.Ze = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2) {
            var m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, D2;
            t4.save(), t4.textAlign !== j && (t4.textAlign = j), m2 = this, b2 = Gt(t4, n3 = Ut(JSON.parse(JSON.stringify(n3))), false, (0, o.isIgnoreEndBlank)(h2, l2)), y2 = d2.isStick, S2 = (S2 = a2 - u2 - b2 - (C2 = (w2 = d2 ? d2.left : 0) + (M2 = d2 ? d2.right : 0)) - 2) > 0 ? S2 : 0, p(g2) ? this.hasInfilling(n3) ? 1 === r2 || 4 === r2 ? (e3 -= (a2 + w2 - M2) / 2, e3 += u2 + w2) : 2 === r2 && (e3 = e3 - a2 + M2 + 2, e3 += u2 + w2) : p(b2) || (1 === r2 || 4 === r2 ? e3 -= b2 / 2 : 2 === r2 && (e3 -= b2)) : this.hasInfilling(n3) ? 1 === r2 ? (e3 = e3 + (g2 || b2) / 2 - (a2 + w2 - M2) / 2, e3 += u2 + w2) : 2 === r2 && (e3 = e3 + (g2 || b2) - a2 + M2 + 2, e3 += u2 + w2) : p(b2) || (1 === r2 ? e3 = e3 + g2 / 2 - b2 / 2 : 2 === r2 && (e3 = e3 + g2 - b2)), T2 = e3, w2 > 0 && w2 > e3 - v2.x && y2 && (T2 = v2.x + w2 + 1, x2 = v2.width - w2 - 1), I2 = "", n3.forEach((function(t5) {
              return I2 += t5.value;
            })), N2 = i3, (k2 = bn([I2], l2.lineHeight, h2)).descenderHeight && (N2 += k2.descenderHeight), l2.textRect = new o.Rect(e3, N2, e3, k2.height), m2.Zn(t4, h2, l2, T2, i3, b2, l2.lineHeight, v2), D2 = (0, o.isIgnoreEndBlank)(h2, l2), x2 ? (t4.save(), t4.beginPath(), t4.rect(T2, v2.y, x2, v2.height), t4.clip(), A2 = this.We(t4, n3, e3, i3, S2, s2, c2, f2, h2.textDirection, D2), t4.restore()) : A2 = this.We(t4, n3, e3, i3, S2, s2, c2, f2, h2.textDirection, D2), m2.Wn(t4, h2, l2, e3, i3, A2 - e3, l2.lineHeight, v2), t4.restore();
          }, t3.prototype.We = function(t4, n3, e3, i3, r2, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2;
            for (f2 && (n3 = (0, o.getTextContentWithoutEndBlank)(n3, f2)), l2 = this.qn(t4, "0"), h2 = 0; h2 < n3.length; h2++) if ("fillingChar" === n3[h2].type) {
              if (I(n3[h2].value)) continue;
              t4.direction = bt(c2, n3[h2].value), t4.fillText(Ht(t4, r2, n3[h2].value), e3, i3), a2 && this.le(t4, a2, e3, i3, r2, s2, u2), e3 += r2;
            } else "placeholder" === n3[h2].type ? e3 += T(t4, t4.font, n3[h2].value) : "numberPlaceholder" === n3[h2].type ? e3 += l2 : ((d2 = n3[h2].value) !== F && (t4.direction = bt(c2, d2), t4.fillText(d2, e3, i3)), v2 = T(t4, t4.font, d2), a2 && this.le(t4, a2, e3, i3, v2, s2, u2), e3 += v2);
            return e3;
          }, t3.prototype.le = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2;
            t4.strokeStyle !== t4.fillStyle && (t4.strokeStyle = t4.fillStyle), u2 = t4.textAlign, s2 = 0, c2 = 0, f2 = 0.5, c2 = P(((l2 = o2 <= 12 ? 12 : o2) - 12) / 21 + 1), t4.lineWidth !== c2 && (t4.lineWidth = c2), 1 & c2 || (f2 = 0), u2 === _ ? e3 -= r2 / 2 : u2 === D && (e3 -= r2), t4.beginPath(), 4 & ~n3 || (s2 = G(i3 + a2 - o2 - 1) - f2, t4.moveTo(e3, s2), t4.lineTo(e3 + r2, s2)), 2 & ~n3 || (s2 = G(i3 + a2 - o2 / 2) - f2, t4.moveTo(e3, s2), t4.lineTo(e3 + r2, s2)), 1 & ~n3 || (s2 = G(i3 + a2 - 1) - f2, t4.moveTo(e3, s2), t4.lineTo(e3 + r2, s2)), 8 & ~n3 || (s2 = G(i3 + a2 - 1) - f2, t4.moveTo(e3, s2 - c2), t4.lineTo(e3 + r2, s2 - c2), t4.moveTo(e3, s2 + c2), t4.lineTo(e3 + r2, s2 + c2)), t4.stroke();
          }, t3.prototype.Qe = function(t4, n3) {
            var e3 = "";
            4 & ~n3 || (e3 = "overline"), 2 & ~n3 || (e3 += " line-through"), 1 & ~n3 || (e3 += " underline"), t4.css("text-decoration", e3);
          }, t3.prototype.Ke = function() {
            return F;
          }, t3.prototype.isImeAware = function(t4) {
            return false;
          }, t3.prototype.isEditing = function() {
            return false;
          }, t3.prototype.Je = function(t4) {
          }, t3.prototype.Xe = function(t4, n3, e3, i3, r2) {
          }, t3.prototype.qe = function(t4, n3, e3, i3, r2) {
          }, t3.prototype.lfe = function(t4, n3) {
            return t4;
          }, t3.prototype.wkr = function(t4) {
            var n3, e3 = t4.sheet, i3 = t4.row, r2 = t4.col, o2 = t4.sheetArea, a2 = t4.cellStyle, u2 = function(t5) {
              return !t5 || false !== t5.allowEditInCell;
            };
            return !!u2(a2) && u2(n3 = e3.getActualStyle(i3, r2, o2));
          }, t3.prototype.isReadonly = function(t4) {
            var n3, e3;
            return this.lfe(t4, B).readonly;
          }, t3.prototype.toJSON = function() {
            var t4, n3 = {}, e3 = this;
            for (t4 in e3) e3.hasOwnProperty(t4) && (n3[t4] = e3[t4]);
            return n3;
          }, t3.prototype.fromJSON = function(t4) {
            if (t4) for (var n3 in t4) p(t4[n3]) || (this[n3] = t4[n3]);
          }, t3;
        })(), n2.Base = ut, (0, o.$e)(ut), c.ti[0] = ut, n2.cellTypeContext_paintBackground = St, n2.getEditorPosition = _t, n2.paintDecoration = Wt, n2.paintStyleDecorationOutSideIcons = Jt;
      }, "./dist/core/celltype/cellType.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), a = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || o(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/core/celltype/headercelltype.js"), r = e2("./dist/core/celltype/textcelltype.js"), Object.defineProperty(n2, "Corner", { set: function(t3) {
          t3 !== i2.Corner && (i2.Corner = t3);
        }, get: function() {
          return i2.Corner;
        } }), Object.defineProperty(n2, "ColumnHeader", { set: function(t3) {
          t3 !== i2.ColumnHeader && (i2.ColumnHeader = t3);
        }, get: function() {
          return i2.ColumnHeader;
        } }), Object.defineProperty(n2, "RowHeader", { set: function(t3) {
          t3 !== i2.RowHeader && (i2.RowHeader = t3);
        }, get: function() {
          return i2.RowHeader;
        } }), Object.defineProperty(n2, "Text", { set: function(t3) {
          t3 !== r.Text && (r.Text = t3);
        }, get: function() {
          return r.Text;
        } }), a(e2("./dist/core/celltype/celltype.ns.js"), n2), a(e2("./dist/core/celltype/basecelltype.js"), n2), a(e2("./dist/core/celltype/textcelltype.js"), n2), a(e2("./dist/core/celltype/headercelltype.js"), n2);
      }, "./dist/core/celltype/celltype.ns.js": function(t2, n2) {
        "use strict";
        var e2, i2;
        function r(t3) {
          if (0 === arguments.length) return i2;
          i2 = t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.rotatedCharsForVertical = n2.VCRT = n2.ti = void 0, n2.ti = {}, (function(t3) {
          t3[t3.DEG90 = 1] = "DEG90", t3[t3.DEG90_FLIP_H = 2] = "DEG90_FLIP_H", t3[t3.DEG90_FLIP_V = 3] = "DEG90_FLIP_V";
        })(e2 = n2.VCRT || (n2.VCRT = {})), i2 = {}, n2.rotatedCharsForVertical = r;
      }, "./dist/core/celltype/headercelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x = this && this.qKr || (A = function(t3, n3) {
          return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, A(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          A(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), A;
        function I(t3, n3) {
          return t3 = t3 || 0, f.He(t3, "gc-" + n3 + "-" + f.Ee(t3));
        }
        function k(t3, n3, e3, i3, r2, o2) {
          var a2 = new Image(), u2 = o2;
          u2 = (u2 = u2.replace('url("', "")).replace('")', ""), a2.src = u2, t3.drawImage(a2, n3, e3, i3, r2);
        }
        function N(t3, n3, e3, i3, r2, o2, u2, f2, l2) {
          var d2, v2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
          function N2() {
            t3.fillRect(n3 + 1, e3 + 1, i3 - 1, r2 - 1);
          }
          if (!p(f2)) {
            if (t3.save(), t3.beginPath(), d2 = o2.backColor, 0 === f2 && d2) a.W.setFillStyle(t3, d2, n3, e3, i3, r2, N2);
            else try {
              if (d2 = l2 && l2.backgroundColor, v2 = l2 && l2.backgroundImage, g2 = u2.sheet, m2 = u2.row, y2 = u2.col, w2 = u2.sheetArea, M2 = void 0, C2 = false, g2.cellStates && f2 === c.VisualState.hover && (M2 = g2.cellStates.getStyle(m2, y2, w2)) && M2.backColor && (d2 = M2.backColor, C2 = true), !C2 && v2 && -1 !== v2.indexOf("linear-gradient")) {
                for (S2 = h(v2), T2 = { degree: 90, stops: [] }, x2 = 0, A2 = S2.length; x2 < A2; x2++) I2 = S2[x2], T2.stops.push({ position: I2.point, color: I2.color });
                a.W.setFillStyleGradient(t3, T2, n3, e3, i3, r2, N2);
              } else d2 ? (t3.fillStyle = d2, N2()) : v2 && v2 !== b && k(t3, n3 + 1, e3 + 1, i3 - 1, r2 - 1, v2);
            } catch (t4) {
            }
            2 === u2.columnHeaderFitMode && (i3 = u2.sheet.getColumnWidth(u2.col) + 1), s.Context.nt(t3, n3, e3, i3, r2, o2.backgroundImage, o2.backgroundImageLayout, u2.imageLoader), t3.restore();
          }
        }
        function j(t3, n3, e3, i3, r2, a2, u2, c2, f2, l2, h2, d2) {
          var v2, p2, g2, m2, b2, y2, w2, M2;
          n3 && (g2 = { paintState: v2 = f2.visualState || 0, style: c2, themeStyle: p2 = I(v2, l2), context: f2 }, t3.mao(g2), N(n3, i3, r2, a2, u2, c2 = g2.style, f2, g2.paintState, p2), b2 = (m2 = "number" == typeof f2.rowSpacingIndex) && !f2.j0r, s.Context.cn(n3, i3, r2, a2, u2, c2, l2, p2, h2, f2.needTopGridline, f2.needLeftGridline, b2), y2 = new o.Rect(i3, r2, a2, u2), f2.cellRect = y2.clone(), t3.Vn(n3, f2, y2, e3, c2), (0, s.paintDecoration)(n3, y2, c2, f2), t3.Tn && (t3.Tn(n3, y2, c2, f2), w2 = f2.printZoomFactor, M2 = f2.isPrinting && "number" == typeof w2 && 1 !== w2 ? w2 : f2.sheet.zoom(), y2 = t3.An(y2, c2, M2)), y2.width > 0 && y2.height > 0 && t3.paintContent(n3, e3, y2.x, y2.y, y2.width, y2.height, c2, f2, d2));
        }
        function D(t3, n3, e3, i3, r2, o2, u2) {
          var s2, f2, l2 = { font: n3, fillStyle: e3 }, h2 = i3.sheet;
          return !u2 && 0 !== i3.visualState && parseInt(o2.zIndex, 10) > 2007 && h2.ni(i3.row, i3.col, r2) && (s2 = void 0, f2 = r2 === c.SheetArea.rowHeader ? "gc-rowHeader" : "gc-columnHeader", s2 = h2.ei(i3.row, i3.col, r2) ? t3(i3.visualState, f2 + "-selected") : t3(i3.visualState, f2 + "-highlight"), l2.fillStyle = s2.color, l2.font = a.W.ii(l2.font, "bold")), l2;
        }
        function _(t3, n3, e3, i3, r2, a2, u2, s2, f2, l2, h2, d2) {
          var v2, m2, b2, w2, M2, C2, S2, T2, x2, A2 = {}, I2 = f2.sheet, k2 = { sheet: I2, row: f2.row, col: f2.col, sheetArea: l2, quotePrefix: s2.quotePrefix }, N2 = t3.format(g(e3), s2.formatter, A2, k2);
          N2 && (n3.save(), n3.beginPath(), v2 = I2.rowFilter && I2.rowFilter(), m2 = f2.columnHeaderFitMode, !(b2 = !!(v2 && v2.rn(f2.row, f2.col, l2) && v2.filterButtonVisible(f2.col))) && !d2 || m2 !== c.ColumnHeaderFitMode.normal && m2 !== c.ColumnHeaderFitMode.vertical || (p(f2.cornerX) || (a2 = f2.cornerX - i3), a2 -= I2.an(new o.Rect(i3, r2, a2, u2), l2).width), (w2 = s2.foreColor) || (w2 = h2.color), w2 && n3.fillStyle !== w2 && (n3.fillStyle = w2), M2 = s2.textOrientation, C2 = s2.isVerticalText, S2 = 0 === m2 && I2.NMi && 0 !== M2 && !p(M2) && -90 <= M2 && M2 <= 90 && !C2, e3 && e3.richText && e3.richText.length > 0 || C2 ? O(t3, I2, n3, e3, i3, r2, a2, u2, s2, N2, A2, f2, l2, h2) : 1 === m2 || S2 ? (T2 = D(t3.getThemeStyle, s2.font || n3.font, n3.fillStyle, f2, l2, h2, t3.fGr), s2.foreColor = T2.fillStyle, s2.font = o.util.yt(T2.font), 1 === m2 && (s2.textOrientation = -90), x2 = t3.Pn(n3, N2, s2, f2, i3, r2, a2, u2), t3.Kn(n3, e3, i3, r2, a2, u2, s2, f2, N2, A2, y, x2.externals)) : E(t3, n3, e3, i3, r2, a2, u2, s2, N2, A2, f2, l2, h2), n3.restore());
        }
        function O(t3, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, v2, p2) {
          var b2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, _2, O2, E2, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $;
          if (i3 && i3.richText && (i3.converted || (i3 = o.mt.g0(i3)), i3 = { text: i3.text, richText: i3.converted }), x2 = new M(r2, a2, u2, s2), A2 = D(t3.getThemeStyle, c2.font || e3.font, e3.fillStyle, h2, v2, p2, t3.fGr), I2 = c2.isVerticalText, k2 = c2.hAlign, N2 = L(c2), j2 = t3.Ft(c2.formatter || c2._autoFormatter, i3 && i3.text), _2 = m(true, [], t3.Pt(i3, f2, j2, A2.font, A2.fillStyle)), i3 && i3.richText && i3.richText.length > 0 && (O2 = h2.sheet ? h2.sheet.zoom() : 1, E2 = h2.printZoomFactor, E2 = h2.isPrinting && "number" == typeof E2 && 1 !== E2 ? E2 : y, t3.te(_2, A2, O2, E2)), F = t3.Pn(e3, g(i3), c2, h2, r2, a2, u2, s2), G = (B = t3.Hn(F.externals.left)) + (P = t3.Hn(F.externals.right)), U = { left: B, right: P }, !c2.wordWrap && c2.shrinkToFit && t3.ne(_2, u2 - G, s2, c2, A2, 1, I2), H = t3.ee(e3, f2, c2.font, I2 ? s2 : u2 - G, N2, I2 ? c2.vAlign : c2.hAlign, c2.wordWrap, I2, _2), V = t3.re(H, c2, k2), R(e3, c2, r2, a2, u2, s2, N2, (null === (b2 = H[0]) || void 0 === b2 ? void 0 : b2.textLength) || 0, (null === (w2 = V[0]) || void 0 === w2 ? void 0 : w2.lineHeight) || 0), z = I2 ? d(f2) : y, Y = false, !c2.wordWrap && !c2.shrinkToFit && c2.showEllipsis && I2 && i3 && !i3.richText && (Y = true), Z = t3.ae(x2.x, x2.y, x2.width, x2.height, k2, c2.vAlign, N2, I2, z, H, V, U, Y), W = [], Y && l2 && (l2.content && 1 === l2.content.length && "text" === (null === (C2 = l2.content[0]) || void 0 === C2 ? void 0 : C2.type) || !l2.content && 1 === H.length && (null === (S2 = H[0]) || void 0 === S2 ? void 0 : S2.text)) && t3.Xn(e3, h2, H, V, c2, s2, a2, N2, Z, W), 1 === (Q = H.length) && l2.content && !j2) t3.ue(e3, n3, f2, l2, Z[0].x, Z[0].y, u2, s2, k2, c2, x2.width, x2.height, N2, I2, null === (T2 = H[0]) || void 0 === T2 ? void 0 : T2.textLength, h2, U, x2);
          else {
            for (J = (K = t3.se(H, Z)).textWidth, X = K.textStart, t3.Zn(e3, c2, h2, X, Z[0].y, J, 0, x2), q = u2 - G - 3 - 2 * N2, $ = 0; $ < Q; $++) t3.ce(e3, n3, Z[$].x, Z[$].y, V[$], k2, H[$], W[$], q, h2.cellRect);
            t3.Wn(e3, c2, h2, X, Z[0].y, J, 0, x2);
          }
        }
        function E(t3, n3, e3, i3, r2, o2, u2, s2, f2, h2, d2, g2, m2) {
          var b2, y2, C2, S2, T2, x2, A2, I2, k2, N2, j2, _2, O2, E2, R2, L2, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at = new M(i3, r2, o2, u2), ut = d2.columnHeaderFitMode, st = D(t3.getThemeStyle, s2.font || n3.font, n3.fillStyle, d2, g2, m2, t3.fGr);
          if (v(n3, st.font), n3.fillStyle = st.fillStyle, b2 = 0, (y2 = s2.textIndent) > 0 && (b2 = 8 * y2), C2 = parseInt(d2.fontInfo.fontSize, 10), S2 = s2.hAlign, T2 = s2.vAlign, x2 = "left", A2 = 2, I2 = t3.Pn(n3, f2, s2, d2, i3, r2, o2, u2), j2 = (k2 = t3.Hn(I2.externals.left)) + (N2 = t3.Hn(I2.externals.right)), _2 = { left: k2, right: N2 }, A2 += b2 + k2, ut !== c.ColumnHeaderFitMode.stack || p(d2.cornerX) || (u2 = d2.cornerY - r2, (!(O2 = d2.colStyle) || O2 && p(O2.hAlign)) && (S2 = 0)), 1 === S2) A2 = (o2 + k2 - N2) / 2, x2 = "center";
          else if (2 === S2) A2 = o2 - N2 - 1, A2 -= b2, x2 = "right";
          else if (5 === S2) return E2 = s2.wordWrap, R2 = s2.shrinkToFit, L2 = s2.showEllipsis, d2.sheet.options.showFormulas && d2.isFormula ? (s2.hAlign = 1, s2.wordWrap = false) : s2.wordWrap = true, s2.shrinkToFit = false, s2.showEllipsis = false, t3.Jn(n3, e3, i3, r2, o2, u2, s2, d2, f2, h2, null, _2), s2.hAlign = 5, s2.wordWrap = E2, s2.shrinkToFit = R2, void (s2.showEllipsis = L2);
          if (n3.textAlign !== x2 && (n3.textAlign = x2), F = 0, B = "alphabetic", P = 2, G = s2.wordWrap, U = s2.shrinkToFit, H = s2.font, V = d2.lineHeight, z = [], Y = 0, !G && U) for (Z = 0, W = { value: false }, Q = 0; Q < 3 && false === W.value && (K = n3.measureText(f2).width, (Z = Math.max(0, o2 - 4 - (1 === S2 ? 0 : b2))) < K); Q++) H = a.W.V(H, Z / K, W, true).font, v(n3, H);
          if (J = 0, G && (J = o2 - j2 - 3 - b2, J -= 1, (Y = (z = l.un(f2, J, st.font)).length) > 1 && 0 !== T2 && (F = (Y - 1) * V)), q = V / 2 - C2 / 2 + (X = C2 > 8 ? w((C2 - 8) / 5 + 2) : 1) - 1, !G && s2.showEllipsis && t3.fe(d2, h2, f2, n3, o2, S2, b2), P += V - q, 1 === T2 ? P = (u2 - F) / 2 + V / 2 - q : 2 === T2 && (P = u2 - F - 2 - q), n3.textBaseline !== B && (n3.textBaseline = B), $ = s2.textDecoration, tt = at.x, nt = at.y, et = at.width, it = at.height, s2.wordWrap) if (n3.rect(tt, nt, et, it), n3.clip(), n3.beginPath(), rt = r2 + P, Y > 1) {
            for (t3.Zn(n3, s2, d2, i3 + A2, rt, J, V * Y, at), Q = 0; Q < Y; Q++) n3.fillText(z[Q], i3 + A2, rt), $ && (K = n3.measureText(z[Q]).width, t3.le(n3, $, i3 + A2, rt, K, C2, X)), rt += V;
            t3.Wn(n3, s2, d2, i3 + A2, rt, J, V * Y, at);
          } else t3.he(n3, f2, h2, i3 + A2, r2 + P, S2, et, b2, $, X, C2, d2, s2, _2, at);
          else ((ot = n3.measureText(f2).width) > et || V > it) && (n3.rect(tt, nt, et, it), n3.clip(), n3.beginPath()), t3.he(n3, f2, h2, i3 + A2, r2 + P, S2, et, b2, $, X, C2, d2, s2, _2, at, void 0, void 0, s2.showEllipsis);
        }
        function R(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2 = false;
          (c2 = !!n3.wordWrap || (n3.isVerticalText ? u2 + a2 > o2 || s2 > r2 : u2 + a2 > r2 || s2 > o2)) && (t3.rect(e3, i3, r2, o2), t3.clip(), t3.beginPath());
        }
        function L(t3) {
          var n3 = 0, e3 = t3.textIndent;
          return e3 > 0 && (n3 = 8 * e3), n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.RowHeader = n2.ColumnHeader = n2.Corner = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/worksheet/stylehelper.js"), u = e2("./dist/core/celltype/celltype.ns.js"), s = e2("./dist/core/celltype/basecelltype.js"), c = e2("./dist/core/core.enum.js"), f = o.I, l = o.q, h = o.mt.ri, d = o.mt.pt, v = o.mt.bt, p = i2.Common.lt.ht, g = o.mt.wt, m = r.GC$.extend, b = "none", y = void 0, w = Math.floor, M = o.Rect, C = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.typeName = "2", n4.Y_e = "columnHeader", n4;
          }
          return x(n3, t3), n3.prototype.paint = function(t4, n4, e3, i3, r2, o2, a2, u2, s2) {
            j(this, t4, n4, e3, i3, r2, o2, a2, u2, this.Y_e, 1, s2);
          }, n3.prototype.paintContent = function(t4, n4, e3, i3, r2, o2, a2, u2, c2) {
            var f2, l2 = s.Context.dn(t4, g(n4), e3, i3, r2, o2, u2);
            l2 || _(this, t4, n4, e3, i3, r2, o2, a2, u2, 1, f2 = I(u2.visualState, this.Y_e), c2);
          }, n3;
        })(s.Base), n2.ColumnHeader = C, u.ti[2] = C, S = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.typeName = "3", n4.Y_e = "rowHeader", n4;
          }
          return x(n3, t3), n3.prototype.paint = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            j(this, t4, n4, e3, i3, r2, o2, a2, u2, this.Y_e, 2);
          }, n3.prototype.paintContent = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var c2, f2 = s.Context.dn(t4, g(n4), e3, i3, r2, o2, u2);
            f2 || _(this, t4, n4, e3, i3, r2, o2, a2, u2, 2, c2 = I(u2.visualState, this.Y_e));
          }, n3.prototype.wm = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, s2, c2;
            t4 && N(t4, n4, e3, i3, r2, o2 = (c2 = { paintState: u2 = a2.visualState || 0, style: o2, themeStyle: s2 = I(u2, this.Y_e), context: a2 }).style, a2, c2.paintState, s2);
          }, n3;
        })(s.Base), n2.RowHeader = S, u.ti[3] = S, T = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.typeName = "4", n4;
          }
          return x(n3, t3), n3.prototype.paint = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2, c2, l2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
            if (t4) {
              t4.save(), t4.rect(e3, i3, r2, o2), t4.clip(), t4.beginPath(), s2 = this, c2 = u2.visualState || 0;
              try {
                d2 = (l2 = s2.getThemeStyle(u2.visualState, "gc-corner-" + f.Ee(c2))) && l2.backgroundColor, v2 = l2 && l2.backgroundImage, d2 ? (t4.fillStyle = d2, t4.fillRect(e3, i3, r2, o2)) : v2 && v2 !== b && k(t4, e3, i3, r2, o2, v2);
              } catch (t5) {
              }
              if (g2 = (p2 = s2.getThemeStyle(4, "gc-corner-triangle-" + f.Ee(c2))) && p2.backgroundImage, m2 = p2 && p2.backgroundColor, y2 = t4.createLinearGradient(e3 + r2 / 2, i3, e3 + r2 / 2, i3 + o2), g2 && -1 !== g2.indexOf("linear-gradient")) {
                for (M2 = 0, C2 = (w2 = h(g2)).length; M2 < C2; M2++) S2 = w2[M2], y2.addColorStop(S2.point, S2.color);
                t4.fillStyle = y2;
              } else m2 && (y2.addColorStop(0.125, "#f6fafb"), y2.addColorStop(1, m2), t4.fillStyle = y2);
              (T2 = t4.createLinearGradient(e3 + r2, i3 + 1, e3 + r2, i3 + o2 - 2)).addColorStop(0, p2.borderLeftColor), T2.addColorStop(1, p2.borderRightColor), t4.beginPath(), t4.strokeStyle = T2, t4.moveTo(e3 + r2 - 0.5, i3), t4.lineTo(e3 + r2 - 0.5, i3 + o2), t4.stroke(), u2.needLeftGridline && (t4.beginPath(), t4.strokeStyle = p2.borderLeftColor, t4.moveTo(e3 + 0.5, i3), t4.lineTo(e3 + 0.5, i3 + o2), t4.stroke()), (x2 = t4.createLinearGradient(e3, i3, e3 + r2 - 2, i3)).addColorStop(0, p2.borderTopColor), x2.addColorStop(1, p2.borderBottomColor), t4.beginPath(), t4.strokeStyle = x2, t4.moveTo(e3, i3 + o2 - 0.5), t4.lineTo(e3 + r2, i3 + o2 - 0.5), t4.stroke(), u2.needTopGridline && (t4.beginPath(), t4.strokeStyle = p2.borderTopColor, t4.moveTo(e3, i3 + 0.5), t4.lineTo(e3 + r2, i3 + 0.5), t4.stroke()), t4.beginPath(), A2 = 3, I2 = o2, r2 < o2 && (I2 = r2), u2.sheet.options.rightToLeft ? (t4.moveTo(e3 + A2, i3 + o2 - A2), t4.lineTo(e3 + A2, i3 + o2 - I2 + A2), t4.lineTo(e3 + I2 + A2, i3 + o2 - A2)) : (t4.moveTo(e3 + r2 - I2 + A2, i3 + o2 - A2), t4.lineTo(e3 + r2 - A2, i3 + o2 - A2), t4.lineTo(e3 + r2 - A2, i3 + o2 - I2 + A2)), t4.fill(), t4.restore();
            }
          }, n3;
        })(s.Base), n2.Corner = T, u.ti[4] = T;
      }, "./dist/core/celltype/textcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It = this && this.qKr || (kt = function(t3, n3) {
          return kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, kt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          kt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), kt;
        function Nt(t3) {
          return st || 0 === t3;
        }
        function jt(t3) {
          return Nt(t3) ? (0, o.GC$)(w("textarea")) : (0, o.GC$)(w("div"));
        }
        function Dt(t3) {
          return t3 && "DIV" === t3.tagName && "true" === t3.contentEditable;
        }
        function _t(t3) {
          return Dt(t3) ? C && parseFloat(M.version) < 10 ? m.oi(t3) : t3.innerText : t3.value;
        }
        function Ot(t3, n3) {
          Dt(t3) ? t3.innerText = d(n3) ? "" : n3 : t3.value = d(n3) ? "" : n3;
        }
        function Et(t3) {
          if (Dt(t3)) {
            var n3 = rt.getSelection();
            if (n3.selectAllChildren(t3), n3.rangeCount > 0) try {
              n3.collapseToEnd();
            } catch (t4) {
            }
          } else t3.selectionStart = t3.selectionEnd = t3.value.length;
        }
        function Rt(t3) {
          var n3, e3;
          return Dt(t3) ? (n3 = rt.getSelection()).rangeCount > 0 ? (e3 = n3.getRangeAt(0)).startOffset : 0 : t3.selectionStart;
        }
        function Lt(t3) {
          var n3, e3;
          return Dt(t3) ? (n3 = rt.getSelection()).rangeCount > 0 ? (e3 = n3.getRangeAt(0)).endOffset : 0 : t3.selectionEnd;
        }
        function Ft(t3) {
          var n3 = t3.keyCode, e3 = t3.shiftKey, i3 = { 106: 42, 107: 43, 109: 45, 110: 46, 111: 47, 173: 45 }, r2 = { 186: 59, 187: 61, 188: 44, 189: 45, 190: 46, 191: 47, 192: 96, 219: 91, 220: 92, 221: 93, 222: 39 }, o2 = { 186: 58, 187: 43, 188: 60, 189: 95, 190: 62, 191: 63, 192: 126, 219: 123, 220: 124, 221: 125, 222: 34 }, a2 = n3;
          return n3 >= 96 && n3 <= 105 ? a2 = n3 - 48 : i3[n3] ? a2 = i3[n3] : e3 && o2[n3] ? a2 = o2[n3] : !e3 && r2[n3] ? a2 = r2[n3] : !e3 && n3 >= 65 && n3 <= 90 && (a2 = n3 + 32), a2;
        }
        function Bt(t3) {
          return t3 && "BR" === t3.tagName;
        }
        function Pt(t3) {
          return t3 && "SPAN" === t3.tagName;
        }
        function Gt(t3) {
          return t3 && "DIV" === t3.tagName;
        }
        function Ut(t3) {
          return t3 instanceof Text;
        }
        function Ht(t3) {
          return t3 === yt;
        }
        function Vt(t3, n3, e3, i3) {
          var r2 = t3.substr(0, n3), o2 = t3.substr(e3, t3.length - e3);
          return r2 + i3 + o2;
        }
        function zt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2 = "", h2 = t3.childNodes, d2 = h2.length;
          for (a2 = 0; a2 < d2; a2++) Pt(u2 = h2[a2]) ? l2 += zt(u2, n3, e3, i3, r2, o2) : Ut(u2) ? (s2 = n3 && n3.startContainer, c2 = n3 && n3.endContainer, f2 = u2.textContent, u2 === s2 || u2 === c2 ? s2 !== c2 ? u2 === s2 ? (l2 += Vt(f2, e3, f2.length, r2), o2 = true) : (l2 += Vt(f2, 0, i3, ""), o2 = false) : l2 += Vt(f2, e3, i3, r2) : o2 || (l2 += f2)) : Bt(u2) && !o2 && (l2 += "\n");
          return l2;
        }
        function Yt(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = String.fromCharCode(Ft(r2));
          return Dt(t3) ? (o2 = rt.getSelection()).rangeCount > 0 && Ut((a2 = o2.getRangeAt(0)).startContainer) ? zt(t3, a2, e3, i3, u2) : a2 && a2.startOffset === a2.endOffset ? n3 + u2 : u2 : Vt(n3, e3, i3, u2);
        }
        function Zt(t3) {
          var n3 = Jt(t3);
          return n3 && n3.indexOf(" ") >= 0 && (n3 = O(n3, " ", bt)), n3;
        }
        function Wt(t3, n3, e3, i3, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2, m2, b2, y2 = t3.srcElement || t3.target;
          y2 && y2.getAttribute(U) === z && 13 === t3.keyCode && (t3.ctrlKey || t3.altKey) && ((u2 = g.ai()) instanceof r.Worksheet && (s2 = u2.getCellType(u2.ui, u2.ci)) && (Dt(y2) ? (e3 && (y2.blur(), y2.focus()), (c2 = rt.getSelection()).rangeCount > 0 && (f2 = c2.getRangeAt(0), l2 = ot.createElement("br"), h2 = ot.createTextNode(yt), f2.insertNode(h2), f2.insertNode(l2), Qt(f2), (d2 = ot.createRange()).setStartAfter(h2), d2.setEndAfter(h2), d2.collapse(false), c2.removeAllRanges(), c2.addRange(d2))) : (v2 = y2.selectionStart, m2 = (p2 = y2.value).substr(0, v2), b2 = p2.substr(v2, p2.length - v2), y2.value = m2 + "\n" + b2, y2.selectionStart = v2 + 1, y2.selectionEnd = v2 + 1), s2.fi(u2.li, ct, ct, t3, n3, true)), x(t3));
        }
        function Qt(t3) {
          var n3, e3 = t3.endContainer, i3 = e3.lastChild;
          Ut(i3) && 0 === i3.textContent.length && e3.removeChild(i3), n3 = (i3 = e3.lastChild).previousSibling, Ht(i3.textContent) && !Bt(n3) && 0 === n3.textContent.length && e3.removeChild(n3);
        }
        function Kt(t3) {
          var n3, e3 = t3;
          return e3 ? e3.indexOf(yt) < 0 && e3.indexOf("\n") < 0 ? e3 : ((n3 = t3.split("\n")).forEach((function(t4, n4, e4) {
            Ht(t4[0]) && (e4[n4] = t4.substr(1));
          })), n3.join("\n")) : e3;
        }
        function Jt(t3) {
          var n3, e3 = t3;
          return e3 ? ((n3 = e3.length) > 0 && (e3 = e3.replace(/\n/g, "\n" + yt)), e3) : e3;
        }
        function Xt(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = rt.getSelection(), h2 = false, d2 = 0, v2 = 0, p2 = "";
          if (l2.rangeCount > 0) {
            if (n3 = l2.getRangeAt(0), e3 = Rt(t3), i3 = Lt(t3), r2 = n3.startContainer, o2 = n3.endContainer, Gt(r2)) h2 = true, d2 = e3;
            else if (s2 = void 0, (u2 = (a2 = r2.childNodes).length) > 0) for (s2 = 0; s2 < u2; s2++) {
              if (!(c2 = a2[s2]).tagName || "br" !== c2.tagName.toLocaleLowerCase()) {
                r2 = c2;
                break;
              }
              p2 += "\n";
            }
            return Gt(o2) && (v2 = i3), p2 + (f2 = qt(t3, e3, i3, r2, o2, h2, d2, v2)).content;
          }
        }
        function qt(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, v2;
          if (i3 === r2 && !o2) return { content: Kt(i3.textContent.slice(n3, e3)) };
          for (s2 = "", c2 = a2, h2 = t3.childNodes, d2 = u2 || h2.length; c2 < d2; c2++) if (Pt(v2 = h2[c2])) {
            if (s2 += (f2 = qt(v2, n3, e3, i3, r2, o2, 0, 0)).content, f2.startFlag && (o2 = true), f2.endFlag) {
              l2 = true;
              break;
            }
          } else if (Ut(v2) && v2 === i3) s2 += v2.textContent.slice(n3, v2.textContent.length), o2 = true;
          else {
            if (Ut(v2) && v2 === r2) {
              s2 += v2.textContent.slice(0, e3), l2 = true;
              break;
            }
            o2 && (Bt(v2) ? s2 += "\n" : s2 += v2.innerText || v2.textContent);
          }
          return { content: Kt(s2), startFlag: o2, endFlag: l2 };
        }
        function $t(t3, n3) {
          var e3, i3 = t3.length, r2 = [];
          for (e3 = 0; e3 < i3; e3++) r2.push(D(t3[e3], n3));
          return r2;
        }
        function tn(t3) {
          var n3, e3 = t3.length, i3 = 0;
          for (n3 = 0; n3 < e3; n3++) i3 += t3[n3];
          return i3;
        }
        function nn(t3, n3, e3, i3) {
          var r2, o2, a2 = 0, u2 = e3;
          for (r2 = 0; r2 < t3.length; r2++) T && (u2 = i3[r2]), t3[r2] > n3 ? a2 += u2 * (o2 = lt(t3[r2] / n3)) : a2 += u2;
          return a2;
        }
        function en(t3, n3, e3) {
          var i3 = _t(t3);
          return i3 && "=" === i3[0] || "" === i3 && "=" === n3[0] || 0 === e3 && "=" === n3[0];
        }
        function rn(t3) {
          var n3 = t3 && t3.tagName;
          return "TEXTAREA" === n3 || "INPUT" === n3;
        }
        function on(t3) {
          return (t3.ctrlKey || t3.metaKey) && t3.keyCode === (t3.shiftKey ? Ct : Mt);
        }
        function an(t3) {
          return (t3.ctrlKey || t3.metaKey) && t3.keyCode === (t3.shiftKey ? Mt : Ct);
        }
        function un(t3, n3) {
          t3.ki(p, { sheet: t3, sheetName: t3.name(), row: t3.ui, col: t3.ci, editingText: n3 });
        }
        function sn(t3, n3, e3, i3, r2, o2, a2) {
          var u2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2 = t3, S2 = a2.sheet, T2 = S2.zoom ? S2.zoom() : 1, x2 = i3, A2 = o2.textOrientation, I2 = o2.textIndent && 0 !== o2.textIndent, k2 = o2.isVerticalText;
          if (A2 && -90 <= A2 && A2 <= 90 && !I2 && !k2 && (l2 = pt(A2 * Math.PI / 180), x2 = (r2 - a2.lineHeight * vt(l2)) / dt(l2)), d2 = {}, p2 = (v2 = o2.formatter) && "General" !== v2, g2 = y(v2), m2 = o2._autoFormatter && o2._autoFormatter.formatCached && "General" !== o2._autoFormatter.formatCached, "string" == typeof v2 && (p2 = p2 && !g2), p2 ? h2 = o2.formatter : m2 ? h2 = o2._autoFormatter : S2.parent && S2.parent.options.numbersFitMode === c.NumbersFitMode.mask ? h2 = s.Context.Nt(n3, e3, x2, o2, T2) : S2.parent && S2.parent.options.numbersFitMode === c.NumbersFitMode.overflow && (h2 = o2._autoFormatter), u2 = g2 && (e3 instanceof Date || "boolean" == typeof e3 || e3 instanceof Boolean || "number" == typeof e3) ? C2.format(e3, v2, {}) : C2.format(R(e3), h2, d2, a2), b2 = (0, f.isIgnoreEndBlank)(o2, a2), u2 && u2.endsWith(wt) && b2 && (u2 = (0, f.W3e)(u2), (0, f.removeEndSpaceOfFormattedData)(d2)), true !== o2.shrinkToFit && !k2 && L(e3) && S2.parent) switch (w2 = C2.yUr(d2.content, u2), S2.parent.options.numbersFitMode) {
            case c.NumbersFitMode.mask:
              (M2 = C2.wi(n3, w2, x2, o2, T2, a2, d2, S2)) !== w2 && (u2 = M2);
              break;
            case c.NumbersFitMode.overflow:
              C2.overflow(n3, a2, e3, o2, S2, w2, d2);
          }
          return u2;
        }
        function cn(t3) {
          var n3, e3, i3, r2, o2 = ["0", "0", "0", "0"];
          return typeof t3 === St && (i3 = void 0, r2 = void 0, 1 === (e3 = (n3 = t3.split(" ", 4)).length) ? o2 = [i3 = n3[0], i3, i3, i3] : 2 === e3 ? o2 = [i3 = n3[0], r2 = n3[1], i3, r2] : 3 === e3 ? (r2 = n3[1], o2 = [n3[0], r2, n3[2], r2]) : 4 === e3 && (o2 = [n3[0], n3[1], n3[2], n3[3]])), o2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Text = n2.TextCellType = n2.EditorType = n2.y0r = void 0, i2 = e2("Common"), r = e2("./dist/core/worksheet/worksheet.js"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/common.js"), u = e2("./dist/core/celltype/celltype.ns.js"), s = e2("./dist/core/celltype/basecelltype.js"), c = e2("./dist/core/core.enum.js"), f = e2("./dist/core/util/common.js"), l = e2("CalcEngine"), h = !!l, d = i2.Common.lt.ht, v = a.q, p = a.Events.EditChange, g = a.hi, m = a.mt, b = a.di, y = m.St, w = m.En, M = m.Tt, C = M.msie, S = M.edge, T = M.chrome, x = m.vi, A = m.gt, I = m.formatValue2Text, k = m.gi, N = m.pi(), j = m.vt, D = m.bi, _ = m.Mt, O = m.yi, E = m.yt, R = m.wt, L = m.Ct, F = "left", B = "right", P = "center", G = "top", U = "gcUIElement", H = "none", V = ".gcEditingInput", z = "gcEditingInput", Y = "width", Z = "height", W = "text-align", Q = "hidden", K = "word-wrap", J = "overflow", X = "vertical-align", q = "normal", $ = "break-word", tt = "overflow-y", nt = "scroll", et = "word-break", it = "float", rt = window, ot = document, at = 0.337, ut = N.ipad, st = N.iphone || ut || N.android, ct = null, ft = void 0, lt = Math.ceil, ht = Math.min, dt = Math.sin, vt = Math.cos, pt = Math.abs, gt = Math.max, mt = parseInt, bt = " ", yt = "​", wt = " ", Mt = 90, Ct = 89, St = "string", Tt = "number", n2.y0r = sn, (function(t3) {
          t3[t3.textarea = 0] = "textarea", t3[t3.editableDiv = 1] = "editableDiv";
        })(xt = n2.EditorType || (n2.EditorType = {})), At = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.allowOverflow = true, e3.typeName = "1", e3.editorType = d(n4) ? 1 : n4, e3;
          }
          return It(n3, t3), n3.prototype.getText = function(t4, n4) {
            return t4;
          }, n3.prototype.paintValue = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2, x2, I2, k2, N2, j2, D2, _2, O2, E2, F2, B2 = this, P2 = u2.sheet, G2 = P2.zoom ? P2.zoom() : 1;
            if (n4 = B2.getText(n4, u2), l2 = {}, u2.quotePrefix = a2.quotePrefix, v2 = (d2 = a2.formatter) && "General" !== d2, p2 = y(d2), "string" == typeof d2 && (v2 = v2 && !p2), g2 = a2.textOrientation, m2 = a2.textIndent && 0 !== a2.textIndent, b2 = a2.isVerticalText, w2 = r2, g2 && -90 <= g2 && g2 <= 90 && !m2 && !b2 && (M2 = pt(g2 * Math.PI / 180), w2 = (o2 - u2.lineHeight * vt(M2)) / dt(M2)), C2 = (S2 = B2.Pn(t4, h2, a2, u2, e3, i3, r2, o2)).externals, T2 = B2.Hn(C2.left), x2 = B2.Hn(C2.right), 3 === (I2 = a2.hAlign) && (I2 = A(I2, n4, a2.formatter || a2._autoFormatter)), 2 === I2 ? w2 -= x2 : 0 === I2 && (w2 -= T2), k2 = a2._autoFormatter && a2._autoFormatter.formatCached && "General" !== a2._autoFormatter.formatCached, v2 ? N2 = a2.formatter : k2 ? N2 = a2._autoFormatter : P2.parent && P2.parent.options.numbersFitMode === c.NumbersFitMode.mask ? N2 = s.Context.Nt(t4, n4, w2, a2, G2) : P2.parent && P2.parent.options.numbersFitMode === c.NumbersFitMode.overflow && (N2 = a2._autoFormatter), h2 = p2 && (n4 instanceof Date || "boolean" == typeof n4 || n4 instanceof Boolean || "number" == typeof n4) ? B2.format(n4, d2, {}) : B2.format(R(n4), N2, l2, u2), h2 = this.RUr(h2, l2, a2, u2), j2 = new f.Rect(e3, i3, r2, o2), this.adjustRectForIconSet(a2.hAlign, u2.sheet, u2.row, u2.col, u2.sheetArea, j2, l2.content && this.hasInfilling(l2.content)), e3 = j2.x, r2 = j2.width, true !== a2.shrinkToFit && !b2) if (L(n4)) {
              if (P2.parent) switch (D2 = B2.yUr(l2.content, h2), P2.parent.options.numbersFitMode) {
                case c.NumbersFitMode.mask:
                  (_2 = this.wi(t4, D2, w2, a2, G2, u2, l2, P2)) !== D2 && (h2 = _2);
                  break;
                case c.NumbersFitMode.overflow:
                  this.overflow(t4, u2, n4, a2, P2, D2, l2);
              }
            } else void 0 === P2.Ut.Ci(u2.row, u2.col, u2.sheetArea) || a2.showEllipsis || P2.Ut.$n(u2.row, u2.col, void 0, u2.sheetArea);
            O2 = a2.labelOptions, E2 = a2.watermark, F2 = !O2 || 0 !== O2.visibility, E2 && !h2 && F2 ? B2.paintText(t4, E2, e3, i3, r2, o2, a2, u2, E2, l2, at) : (h2 || l2.content && l2.content.length || a2.cellButtons && a2.cellButtons.length) && B2.paintText(t4, n4, e3, i3, r2, o2, a2, u2, h2, l2, ft, C2);
          }, n3.prototype.wi = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var c2 = o2.cellOverflowLayout && o2.cellOverflowLayout.expandedWidth, f2 = s.Context.Et(t4, n4, d(c2) ? e3 : c2, i3, r2), l2 = o2.row, h2 = o2.col;
            return n4 !== f2 ? (delete a2.content, i3.textIndent = 0, u2.Ut.$n(l2, h2, u2.getText(l2, h2, o2.sheetArea), o2.sheetArea)) : u2.Ut.$n(l2, h2, void 0, o2.sheetArea), f2;
          }, n3.prototype.overflow = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2 = n4.row, d2 = n4.col;
            if (i3.wordWrap && (i3.wordWrap = false), u2 = _(t4, i3.font, o2), s2 = r2.Jt.Kt(d2), f2 = void 0, !(c2 = n4.cellOverflowLayout) && s2 < u2) f2 = r2.getText(h2, d2, n4.sheetArea);
            else if (c2 && s2 < u2 && this.Si(c2.backgroundWidth) && this.Si(c2.valueWidth)) {
              if (!this.Si(i3.hAlign)) return;
              l2 = void 0, f2 = (l2 = 1 !== i3.hAlign ? c2.valueWidth > c2.backgroundWidth : c2.valueWidth / 2 > c2.backgroundLeftWidth || c2.valueWidth / 2 > c2.backgroundRightWidth) ? r2.getText(h2, d2, n4.sheetArea) : void 0;
            }
            return r2.Ut.$n(h2, d2, f2, n4.sheetArea), o2;
          }, n3.prototype.Si = function(t4) {
            return null != t4;
          }, n3.prototype.createEditorElement = function(t4, n4) {
            var e3, i3, r2 = t4 && t4.sheet && t4.sheet.parent && t4.sheet.parent.Ti, a2 = k(r2) + 1e3;
            return (0, o.GC$)(n4).css("z-index", a2), e3 = jt(this.editorType), (0, o.GC$)(e3).css({ font: "normal 11pt calibri", outline: H, resize: H, border: H, "vertical-align": "top", "min-height": "0px", "box-sizing": "content-box", background: "transparent" }).css(K, q).attr({ tabindex: -1, autocomplete: "off", contenteditable: true }).css(J, Q).attr(U, z), M.safari && (0, o.GC$)(e3).css("-webkit-user-select", "auto"), (i3 = Dt((0, o.GC$)(e3)[0])) && ((0, o.GC$)(e3).css("display", "table-cell"), (0, o.GC$)(e3).css(et, q)), (0, o.GC$)(e3)[0];
          }, n3.prototype.getEditorValue = function(t4, n4) {
            var e3, i3, r2, o2;
            return t4 && (e3 = _t(t4), i3 = !d(e3) && e3.length > 0, r2 = { editor: t4, ns: V, editorValue: e3 }, s.Base.et(n4 && n4.sheet, "getEditorValue", r2), e3 = r2.editorValue, i3) ? (o2 = (o2 = Kt(e3)).replace(/\r\n?/g, "\n")).indexOf(bt) < 0 ? o2 : O(o2, bt, " ") : ct;
          }, n3.prototype.setEditorValue = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2, c2, l2;
            t4 && (o2 = void 0, a2 = void 0, e3 && e3.sheet && (o2 = e3.sheet.Ai, a2 = e3.sheet.getValue(e3.row, e3.col)), u2 = Zt(n4), c2 = { editor: t4, ns: V, editorValue: u2, originValue: a2, startEditByKeydown: o2, addPercent: i3 || r2, cancel: false }, s.Base.et(e3 && e3.sheet, "setEditorValue", c2), true === c2.cancel ? (Ot(t4, c2.editorValue), this.qmt(t4, c2.caret), e3 && e3.sheet && (l2 = e3.sheet).ki(f.Events.FormulaTextBoxTextChanged, { sheet: l2, sheetName: l2.name(), text: c2.editorValue })) : C ? o2 && e3.isImeInput || Ot(t4, u2 = d(u2) ? i3 ? "%" : "" : u2) : Ot(t4, u2 = o2 ? i3 ? "%" : "" : u2));
          }, n3.prototype.selectAll = function(t4, n4) {
            var e3;
            t4 && t4.select ? t4.select() : rt.getSelection().selectAllChildren(t4);
          }, n3.prototype.focus = function(t4, n4) {
            var e3, i3, r2, o2 = this;
            o2.isImeAware() && t4 ? Et(e3 = t4) : e3 = t4.parentNode.parentNode, e3.focus(), r2 = { editor: e3, caret: i3 = o2.Xmt(e3), cancel: false }, s.Base.et(n4 && n4.sheet, "afterSetEditorFocus", r2), true === r2.cancel && r2.caret && o2.qmt(e3, r2.caret);
          }, n3.prototype.je = function(t4, n4, e3, i3) {
            var r2 = t4 && i3 && i3.sheet, o2 = {}, a2 = I(n4, e3, r2, i3, o2);
            return t4.Ii = o2.formatter || ft, a2;
          }, n3.prototype.Xmt = function(t4) {
            var n4, e3, i3, r2, o2, a2;
            return t4 && (n4 = ot.activeElement === t4) ? (e3 = -1, i3 = -1, r2 = void 0, o2 = void 0, rn(t4) ? (e3 = t4.selectionStart, i3 = t4.selectionEnd) : Dt(t4) && (r2 = rt.getSelection()).rangeCount > 0 && ((a2 = (o2 = r2.getRangeAt(0)).cloneRange()).selectNodeContents(t4), a2.setEnd(o2.endContainer, o2.endOffset), i3 = a2.toString().length, (a2 = o2.cloneRange()).selectNodeContents(t4), a2.setEnd(o2.startContainer, o2.startOffset), e3 = a2.toString().length, a2.detach()), { start: e3, end: i3, length: i3 - e3 }) : null;
          }, n3.prototype.qmt = function(t4, n4) {
            var e3, i3, r2, o2 = n4.start, a2 = n4.end, u2 = document.createRange(), s2 = window.getSelection();
            if (t4.childNodes[0]) {
              if (o2 > (e3 = t4.childNodes[0].textContent.length)) {
                for (i3 = 0; t4.childNodes[i3] && o2 >= 0; ) o2 -= t4.childNodes[i3].textContent.length, i3++;
                u2.setStart(t4.childNodes[i3 - 1], o2 + t4.childNodes[i3 - 1].textContent.length);
              } else u2.setStart(t4.childNodes[0], o2);
              if ((a2 = a2 > n4.start ? a2 - 1 : a2) > e3) {
                for (i3 = 0; t4.childNodes[i3] && a2 >= 0; ) a2 -= t4.childNodes[i3].textContent.length, i3++;
                u2.setEnd(t4.childNodes[i3 - 1], a2 + t4.childNodes[i3 - 1].textContent.length);
              } else u2.setEnd(t4.childNodes[0], a2);
              u2.collapse(true), s2.removeAllRanges(), s2.addRange(u2);
            } else t4.value && (e3 = (r2 = t4.value).length, o2 = ht(o2, e3), a2 = a2 > n4.start ? a2 - 1 : a2, a2 = ht(a2, e3), t4.setSelectionRange(o2, a2));
          }, n3.prototype.activateEditor = function(t4, n4, e3, i3, r2, a2, u2) {
            var c2, l2, v2, p2, g2, m2, y2, w2, T2, A2, I2, k2, j2 = i3 && i3.sheet;
            if (j2 && (c2 = this, l2 = t4)) {
              if (v2 = (0, o.GC$)(l2), p2 = Dt(l2), c2._editingElement = l2, v2.attr(U) || v2.attr(U, z), N.android && v2.bind("input" + V, (function(t5) {
                try {
                  c2.fi(l2, n4, e3, t5, i3, false, r2, a2, u2);
                } catch (t6) {
                }
              })), v2.bind("keydown" + V, (function(t5) {
                var o2, h2, d2;
                try {
                  o2 = t5.keyCode, h2 = { event: t5, editor: l2, value: _t(l2), caret: c2.Xmt(l2), cancel: false }, 8 === o2 ? (s.Base.et(j2, "editorBackspace", h2), true === h2.cancel ? (x(t5), Ot(l2, h2.value), c2.qmt(l2, h2.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: h2.value })) : p2 && b.processBackspaceAndLeftArrowKeyEvent(t5, true)) : 46 === o2 ? (s.Base.et(j2, "editorDelete", h2), true === h2.cancel ? (x(t5), Ot(l2, h2.value), c2.qmt(l2, h2.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: h2.value })) : p2 && b.processDeleteAndRightArrowKeyEvent(t5, true)) : 37 === o2 && p2 ? b.processBackspaceAndLeftArrowKeyEvent(t5, false) : 39 === o2 && p2 && b.processDeleteAndRightArrowKeyEvent(t5, false), on(t5) && p2 ? (s.Base.et(j2, "editorUndo", h2), true === h2.cancel && (x(t5), Ot(l2, h2.value), c2.qmt(l2, h2.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: h2.value }))) : an(t5) && p2 && (s.Base.et(j2, "editorRedo", h2), true === h2.cancel && (x(t5), Ot(l2, h2.value), c2.qmt(l2, h2.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: h2.value }))), (!(d2 = 229 === o2 || 0 === o2) && !c2.Ni || N.android) && c2.fi(l2, n4, e3, t5, i3, true, r2, a2, u2), Wt(t5, i3, c2.Ni, r2, a2, u2);
                } catch (t6) {
                }
              })), v2.bind("keyup" + V, (function(t5) {
                var s2 = t5.keyCode, f2 = t5.ctrlKey, h2 = t5.altKey, d2 = 229 === s2 || 0 === s2;
                (!d2 && !c2.Ni || N.android) && (46 !== s2 && 8 !== s2 && (90 !== s2 && 89 !== s2 || !f2 || h2) || (p2 && "\n" === l2.innerText && (0, o.GC$)(l2).empty(), c2.fi(l2, n4, e3, t5, i3, false, r2, a2, u2)), (13 !== s2 && 9 !== s2 && 27 !== s2 && 16 !== s2 || f2 || h2) && un(j2, c2.getEditorValue(l2, i3)));
              })), v2.bind("mousedown" + V, (function() {
                1 === j2.Di && (j2.Di = 2, j2._i(1, 2));
              })), v2.bind("textInput" + V, (function(t5) {
                var e4, r3, o2, a3;
                if (M.safari) {
                  if (t5.metaKey || t5.altKey || t5.ctrlKey || "Enter" === t5.key) return;
                  e4 = t5.key || t5.data, r3 = { editor: l2, value: e4, caret: c2.Xmt(l2), cancel: false }, s.Base.et(j2, "editorInput", r3), true === r3.cancel && (x(t5), Ot(l2, r3.value), o2 = j2.getCellType(i3.row, i3.col), l2.parentNode && l2.parentNode.parentNode && o2 && o2.Rn(l2.parentNode.parentNode, n4, j2.getCellRect(i3.row, i3.col), i3), c2.qmt(l2, r3.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: r3.value }));
                }
                t5.data && (c2.probabilityAddPercentSpec || c2.probabilityAddPercent) && /^[0-9]+.?[0-9]*/.test(t5.data) && ((a3 = document.createElement("span")).innerText = "%", a3.id = "updateEditorImpAddPercent", "#text" === l2.firstChild.nodeName ? l2.appendChild(a3) : l2.firstChild.appendChild(a3), delete c2.probabilityAddPercentSpec, delete c2.probabilityAddPercent);
              })), v2.bind("compositionstart" + V, (function() {
                c2.Ni = true, c2.Ei = _t(l2);
              })), v2.bind("compositionupdate" + V, (function(t5) {
                c2.fi(l2, n4, e3, t5 || ct, i3, true, r2, a2, u2);
              })), v2.bind("compositionend" + V, (function(t5) {
                var o2, h2, d2, v3, p3, g3 = t5.data, m3 = { editor: l2, value: g3, caret: c2.Xmt(l2), isImeInputting: true, cancel: false };
                s.Base.et(j2, "editorInput", m3), true === m3.cancel && (x(t5), Ot(l2, m3.value), o2 = j2.getCellType(i3.row, i3.col), l2.parentNode && l2.parentNode.parentNode && o2 && o2.Rn(l2.parentNode.parentNode, n4, j2.getCellRect(i3.row, i3.col), i3), c2.qmt(l2, m3.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: m3.value })), c2.fi(l2, n4, e3, t5 || ct, i3, false, r2, a2, u2), c2.Ni = false, h2 = t5.keyCode, d2 = t5.ctrlKey, v3 = t5.altKey, p3 = c2.getEditorValue(l2, i3) || "", c2.Ei !== p3 && (h2 === ft || 13 !== h2 && 9 !== h2 || d2 || v3) && un(j2, p3);
              })), p2 && (v2.bind("copy" + V, (function(t5) {
                var n5 = rt.clipboardData, e4 = t5.clipboardData, i4 = Xt(t5.currentTarget);
                d(i4) || (n5 && n5.setData ? (n5.setData("text", i4), x(t5)) : e4 && e4.setData && (e4.setData("text/plain", i4), x(t5)));
              })), v2.bind("cut" + V, (function(t5) {
                var e4, r3, o2, a3, u3 = Xt(t5.currentTarget), f2 = "editorCut";
                !d(u3) && l2.Rse && (rt.clipboardData && rt.clipboardData.setData ? (r3 = "text", o2 = rt.clipboardData) : t5.clipboardData && t5.clipboardData.setData && (r3 = "text/plain", o2 = t5.clipboardData), e4 = { editor: l2, clipboardData: o2, dataName: r3, caret: c2.Xmt(l2) }, s.Base.et(j2, f2, e4), x(t5), Ot(l2, e4.value), a3 = j2.getCellType(i3.row, i3.col), l2.parentNode && l2.parentNode.parentNode && a3 && a3.Rn(l2.parentNode.parentNode, n4, j2.getCellRect(i3.row, i3.col), i3), c2.qmt(l2, e4.caret)), c2.ji = rt.setTimeout((function() {
                  un(j2, c2.getEditorValue(l2, i3)), c2.ji && (clearTimeout(c2.ji), delete c2.ji);
                }), 10);
              })), v2.bind("paste" + V, (function(t5) {
                var o2, h2, d2, v3, p3, g3, m3, b2, y3, w3 = false;
                try {
                  o2 = void 0, C && !S && rt.clipboardData && rt.clipboardData.getData ? o2 = rt.clipboardData.getData("text") : t5.clipboardData && t5.clipboardData.getData && (o2 = t5.clipboardData.getData("text/plain")), o2 = Zt(o2 = o2.replace(/\r\n?/g, "\n")), h2 = { editor: l2, pasteValue: o2, caret: c2.Xmt(l2), cancel: false }, s.Base.et(j2, "editorPaste", h2), true === h2.cancel ? (w3 = true, Ot(l2, h2.pasteValue), c2.qmt(l2, h2.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: h2.pasteValue })) : (d2 = rt.getSelection()).rangeCount > 0 && ((p3 = (v3 = d2.getRangeAt(0)).startOffset) !== (g3 = v3.endOffset) && v3.deleteContents(), en(l2, o2, p3) || (m3 = ot.createElement("span"), 8203 === o2[(b2 = o2.length) - 1].charCodeAt(0) && "\n" === o2[b2 - 2] && (o2 = o2.replace(/\u200B/g, "")), "\n" === o2[(b2 = o2.length) - 1] && (o2 = "\r" === o2[b2 - 2] ? o2.substr(0, b2 - 2) : o2.substr(0, b2 - 1)), m3.innerText = o2, v3.insertNode(m3), (y3 = document.createRange()).setStartAfter(m3), y3.setEndAfter(m3), y3.collapse(false), d2.removeAllRanges(), d2.addRange(y3), w3 = true));
                } catch (t6) {
                }
                if (c2.ji = rt.setTimeout((function() {
                  c2.fi(l2, n4, e3, t5, i3, false, r2, a2, u2), j2.parent && j2.parent.ki(f.Events.FormulaTextBoxUpdatePosition, void 0), un(j2, c2.getEditorValue(l2, i3)), c2.ji && (clearTimeout(c2.ji), delete c2.ji);
                }), 10), w3) return false;
              })), v2.bind("keypress" + V, (function(t5) {
                var e4, r3, o2;
                t5.metaKey || t5.altKey || t5.ctrlKey || "Enter" === t5.key || (e4 = t5.key || t5.data, r3 = { editor: l2, value: e4, caret: c2.Xmt(l2), cancel: false }, s.Base.et(j2, "editorInput", r3), true === r3.cancel && (x(t5), Ot(l2, r3.value), o2 = j2.getCellType(i3.row, i3.col), l2.parentNode && l2.parentNode.parentNode && o2 && o2.Rn(l2.parentNode.parentNode, n4, j2.getCellRect(i3.row, i3.col), i3), c2.qmt(l2, r3.caret), j2.ki(f.Events.FormulaTextBoxTextChanged, { sheet: j2, sheetName: j2.name(), text: r3.value })));
              }))), g2 = void 0, m2 = void 0, i3 && ((m2 = h && j2.getFormula(i3.row, i3.col)) || (g2 = n4.mask)), g2 && g2.pattern && "=" === g2.pattern[0]) {
                y2 = j2.Lp, w2 = j2.Uw(3), T2 = i3.row >= 0 ? i3.row : 0, A2 = i3.col >= 0 ? i3.col : 0;
                try {
                  I2 = y2.evaluate(w2, g2.pattern, T2, A2), g2.pattern = "object" == typeof I2 ? "" : "" + I2;
                } catch (t5) {
                  g2.pattern = "";
                }
              }
              k2 = { editor: l2, ns: V, mask: g2, text: _t(l2) }, s.Base.et(j2, "activateEditor", k2);
            }
          }, n3.prototype.deactivateEditor = function(t4, n4) {
            var e3, i3, r2, a2, u2, c2, f2, l2, h2, d2 = this;
            if (s.Base.et(n4 && n4.sheet, "deactivateEditor", { editor: t4 }), t4 && n4 && n4.sheet) {
              if (e3 = n4.sheet, d2.Ni && ut && e3.Oi) try {
                (0, o.GC$)(t4).trigger("compositionend" + V);
              } catch (t5) {
              }
              if (i3 = e3.getActualStyle(n4.row, n4.col, n4.sheetArea).cellPadding) for (r2 = [F, G], a2 = [3, 0], u2 = 0; u2 < r2.length; u2++) c2 = typeof (c2 = parseInt(cn(i3)[a2[u2]], 10)) === Tt && c2 > 0 ? c2 : 0, d2.shiftPadding(t4, r2[u2], c2);
              (0, o.GC$)(t4).unbind(V), f2 = e3.getActiveRowIndex(), l2 = e3.getActiveColumnIndex(), h2 = e3.getActualStyle(f2, l2), e3.Ri(d2, t4, f2, l2, h2, ft, ft, ft, ft, n4.sheetArea);
            }
            d2._editingElement = ct;
          }, n3.prototype.shiftPadding = function(t4, n4, e3) {
            var i3 = (0, o.GC$)(t4).parent();
            i3 && (n4 === F ? i3.css({ left: (+(0, o.GC$)(i3).css(F).replace("px", "") || 0) - e3 }) : n4 === G && i3.css({ top: (+(0, o.GC$)(i3).css(G).replace("px", "") || 0) - e3 }));
          }, n3.prototype.getEditingElement = function() {
            return this._editingElement;
          }, n3.prototype.Bi = function(t4, n4, e3, i3, r2, a2, u2, c2, l2) {
            var h2, p2, g2, m2, b2, y2, w2, M2, S2, x2, I2, k2, N2, D2, _2, O2, R2, L2, G2, U2, V2, z2, rt2, ot2, at2, ut2, st2, ct2, ft2, dt2, vt2, pt2, bt2, yt2, wt2, Mt2, Ct2, St2, Tt2, xt2, At2, It2, kt2 = r2 && r2.sheet, Nt2 = this, jt2 = kt2.options.sheetAreaOffset, Ot2 = t4;
            if (Ot2 && kt2 && (g2 = (0, o.GC$)(Ot2), m2 = kt2.Dn, b2 = r2.preventOverflow, y2 = _t(Ot2), kt2.isEditing())) {
              if (w2 = Dt(Ot2), M2 = void 0, S2 = F, x2 = void 0, I2 = s.Context.gn, k2 = 0, N2 = 0, D2 = 0, _2 = 0, n4 && (k2 = I2(n4, 0, false, O2 = kt2.zoom()), N2 = I2(n4, 1, false, O2), D2 = I2(n4, 2, false, O2), _2 = I2(n4, 3, false, O2), 1 === (M2 = A(n4.hAlign, t4.Li)) || 5 === M2 ? S2 = P : 2 === M2 && (S2 = B), g2.css(W, S2), n4.foreColor && g2.css("color", n4.foreColor), (x2 = n4.font || m2.Nn()) && (kt2.zoom() > 1 && (x2 = m2._n(x2)), g2.css("font", E(x2))), n4.textDecoration && Nt2.Qe(g2, n4.textDecoration)), R2 = (mt(g2.css("padding-left"), 10) || 0) + (mt(g2.css("padding-right"), 10) || 0), L2 = (mt(g2.css("padding-top"), 10) || 0) + (mt(g2.css("padding-bottom"), 10) || 0), e3 || (R2 += 2 * Number(g2.parent().css("left").replace("px", "")), L2 += 2 * Number(g2.parent().css("top").replace("px", ""))), d(u2) && (u2 = e3), u2 && (G2 = kt2.Fi(), U2 = e3.width, u2.x + u2.width - jt2.left > G2.width && (U2 = e3.width = G2.width - e3.x, u2.width = G2.width - u2.x), g2.css(Y, U2 - R2).css(Z, e3.height - L2), kt2.options.rightToLeft ? Ot2.maxWidth = jt2.left + G2.BA - e3.x - R2 - N2 : Ot2.maxWidth = jt2.left + G2.width - e3.x - R2 - N2, g2.css("max-width", Ot2.maxWidth + "px"), Ot2.maxHeight = jt2.top + G2.height - e3.y - L2 - D2, Ot2.minWidth = mt(Ot2.style.width, 10), Ot2.minHeight = mt(Ot2.style.height, 10)), V2 = Rt(Ot2), z2 = Lt(Ot2), rt2 = (a2 = (a2 = a2 && i3 && i3.keyCode && kt2.rt.Pi(i3) && 0 === V2 && z2 === y2.length) || kt2.Ai) && !n4.mask ? "" : y2, (x2 = Ot2.style.font) || (x2 = m2._n(m2.Nn())), ot2 = j(x2), i3 && Nt2.probabilityAddPercent && (at2 = i3.key) && -1 !== f.NUMBER_ARRAY.indexOf(at2) && (kt2.parent.options.enableFormulaTextbox ? (st2 = Ot2.innerText, /[a-z]/i.test(st2) ? Nt2.probabilityAddPercent = false : ((ut2 = document.createElement("span")).innerText = "%", ut2.id = "updateEditorImpAddPercent", Ot2.appendChild(ut2), delete Nt2.probabilityAddPercent)) : ((ut2 = document.createElement("span")).innerText = "%", ut2.id = "updateEditorImpAddPercent", Ot2.firstChild.appendChild(ut2), delete Nt2.probabilityAddPercent)), !a2 && i3 && (ct2 = kt2.parent, kt2.rt.Pi(i3) && 8 !== i3.keyCode && d(null === (p2 = null === (h2 = null == ct2 ? void 0 : ct2.contextMenu) || void 0 === h2 ? void 0 : h2.menuView) || void 0 === p2 ? void 0 : p2.getHost()) && (rt2 = Yt(Ot2, rt2, V2, z2, i3)), Nt2.Ni && (rt2 = C ? y2 : Nt2.Ei + i3.data)), ft2 = [], dt2 = void 0, vt2 = void 0, pt2 = (ft2 = n4 && (n4.wordWrap || 5 === M2) ? v.un(rt2, mt(Ot2.style.width) - R2, x2) : rt2.split(/\r\n|\r|\n/)).length, Ot2.minWidth = ht(Ot2.minWidth, Ot2.maxWidth), Ot2.minHeight = ht(Ot2.minHeight, Ot2.maxHeight), n4 && (n4.wordWrap || 5 === M2) || pt2 > 0) {
                if (bt2 = void 0, yt2 = void 0, bt2 = T ? tn(yt2 = $t(ft2, x2)) : pt2 * ot2, n4 && (n4.wordWrap || 5 === M2)) g2.css(K, $).css(J, Q).css("max-width", Ot2.style.width);
                else {
                  for (wt2 = 0, Mt2 = [], dt2 = 0; dt2 < pt2; dt2++) vt2 = lt(kt2.Gi(ft2[dt2], x2)), Mt2.push(vt2), wt2 = gt(wt2, vt2);
                  Ct2 = g2.css(K), St2 = mt(Ot2.style.width), n4 || Ct2 !== $ ? wt2 <= Ot2.minWidth ? (g2.css(Y, Ot2.minWidth).css(K, q).css(J, Q), w2 && g2.css(et, q)) : wt2 > Ot2.minWidth && wt2 <= Ot2.maxWidth && !b2 ? (g2.css(Y, wt2).css(K, q).css(J, Q), w2 && g2.css(et, q)) : wt2 > Ot2.maxWidth && !b2 && (g2.css(Y, Ot2.maxWidth - 2).css(K, $).css(J, Q), bt2 = nn(Mt2, Ot2.maxWidth, ot2, yt2)) : wt2 > St2 && !b2 && (bt2 = nn(Mt2, St2, ot2, yt2));
                }
                bt2 <= Ot2.minHeight ? g2.css(Z, Ot2.minHeight).css(it, H) : bt2 > Ot2.minHeight && bt2 <= Ot2.maxHeight ? g2.css(Z, bt2).css(it, H) : bt2 > Ot2.maxHeight && g2.css(Z, Ot2.maxHeight - 1).css(tt, nt).css(it, F);
              }
              return S2 = g2.css(W), Tt2 = g2.width() - Ot2.minWidth, d(S2) || S2 === F || (S2 === P ? g2.css(F, Ot2.originalLeft - Tt2 / 2) : S2 === B && g2.css(F, Ot2.originalLeft - Tt2)), n4 && w2 && (1 === (xt2 = n4.vAlign) ? g2.css(X, "middle") : 2 === xt2 && g2.css(X, "bottom")), At2 = mt(Ot2.style.height) + L2 + k2 + D2, It2 = R2 + _2 + N2, g2.css(tt) === nt ? { width: Ot2.offsetWidth + It2, height: a2 ? 0 : At2 } : { width: mt(Ot2.style.width) + It2, height: At2 };
            }
          }, n3.prototype.updateEditor = function(t4, n4, e3, i3, r2, a2, u2) {
            var s2, c2, l2;
            return e3 = this.Bi(t4, n4, e3, ct, i3, false, r2, a2, u2), C && t4 && (c2 = (s2 = (0, o.GC$)(t4))[0].style.width, s2.width(c2 + 1).width(c2)), !d(e3) && t4 && (l2 = new f.Rect(t4.style.left ? parseFloat(t4.style.left) : 0, t4.style.top ? parseFloat(t4.style.top) : 0, e3.width, e3.height)), l2;
          }, n3.prototype.fi = function(t4, n4, e3, i3, r2, a2, u2, s2, c2) {
            if (e3 = this.Bi(t4, n4, e3, i3, r2, a2, u2, s2, c2), C && t4) {
              var f2 = (0, o.GC$)(t4), l2 = f2[0].style.width;
              f2.width(l2 + 1).width(l2);
            }
            !d(e3) && t4 && (d(u2) ? u2 = e3 : (u2.x = ft, u2.y = ft), this.updateEditorContainer(t4, e3, n4, r2, u2, s2, c2));
          }, n3.prototype.updateEditorContainer = function(n4, e3, i3, r2, a2, u2, s2) {
            var c2, f2, l2;
            r2 && r2.preventOverflow ? (t3.prototype.updateEditorContainer.call(this, n4, e3, i3, r2, a2, u2, s2), (c2 = n4.parentNode) && e3 && (f2 = (0, o.GC$)(c2), (l2 = e3.width) > 0 && f2.width(l2))) : (e3 && e3.width && a2 && a2.width && (a2.width = e3.width), e3 && e3.height && a2 && a2.height && (a2.height = e3.height), t3.prototype.updateEditorContainer.call(this, n4, e3, i3, r2, a2, u2, s2));
          }, n3.prototype.updateImeMode = function(t4, n4, e3) {
            this.isImeAware() && t4 && s.Context.hn(t4, n4);
          }, n3.prototype.isReservedKey = function(t4, n4) {
            var e3 = t4.srcElement || t4.target, i3 = t4.keyCode, r2 = t4.ctrlKey, o2 = t4.altKey, a2 = t4.metaKey;
            return !!(e3 && n4 && n4.isEditing && e3.getAttribute(U) === z) && (13 === i3 && (r2 && !t4.shiftKey || o2) || 90 === i3 && r2 && !o2 || 89 === i3 && r2 && !o2 || 67 === i3 && (r2 || a2) && !o2 || 88 === i3 && (r2 || a2) && !o2);
          }, n3.prototype.isImeAware = function(t4) {
            return true;
          }, n3.prototype.toJSON = function() {
            var t4, n4 = {}, e3 = this;
            for (t4 in e3) e3.hasOwnProperty(t4) && "_editingElement" !== t4 && (n4[t4] = e3[t4]);
            return n4;
          }, n3.prototype.lfe = function(t4, n4) {
            var e3 = { eventName: n4, eventArg: t4 };
            return s.Base.et(t4.sheet, "onCreateEventArg", e3), e3.eventArg;
          }, n3;
        })(s.Base), n2.TextCellType = At, n2.Text = At, u.ti[1] = At;
      }, "./dist/core/common/index.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/core/common/interfaces/index.js"), n2);
      }, "./dist/core/common/interfaces/index.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/core/common/interfaces/parameter-provider.js"), n2);
      }, "./dist/core/common/interfaces/parameter-provider.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true });
      }, "./dist/core/core.definition.js": function() {
      }, "./dist/core/core.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), g = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || p(n3, t3, e3);
        };
        function m(t3, n3) {
          return r._Ae(t3, n3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Aoe = n2._Ae = n2.VerticalCharRotatedType = n2.rotatedCharsForVertical = n2.CellTypes = n2.y0r = n2.isPrintZoomFactorExist = n2.paintDecoration = n2.cellTypeContext_paintBackground = n2.getEditorPosition = void 0, e2("./dist/core/core.res.en.js"), i2 = e2("./dist/core/util/common.js"), Object.defineProperty(n2, "getTypeFromString", { set: function(t3) {
          i2.getTypeFromString = t3;
        }, get: function() {
          return i2.getTypeFromString;
        } }), g(e2("./dist/core/id-system/id.entry.js"), n2), g(e2("./dist/core/common/index.js"), n2), g(e2("./dist/core/core.ns.js"), n2), g(e2("./dist/core/core.interface.js"), n2), g(e2("./dist/core/core.enum.js"), n2), g(e2("./dist/core/util/common.js"), n2), g(e2("./dist/core/excel-io-util/common.js"), n2), g(e2("./dist/core/excel-io-util/excel-types.js"), n2), g(e2("./dist/core/excel-io-util/range-parser.js"), n2), g(e2("./dist/core/excel-io-util/excel-helper.js"), n2), g(e2("./dist/core/excel-io-util/excel-style.js"), n2), g(e2("./dist/core/util/domUtil.js"), n2), e2("./dist/core/core.definition.js"), a = -1, 1 === (o = (r = e2("./dist/core/lc/releaseLc.js"))._pt) && (a = Math.floor(5 * Math.random()), n2["G".concat("C", "$")]["s".concat("d")] = a), g(e2("./dist/core/util/theme.js"), n2), g(e2("./dist/core/util/basedialog.js"), n2), g(e2("./dist/core/util/imageLoader.js"), n2), g(e2("./dist/core/util/tasks.js"), n2), g(e2("./dist/core/util/crypto.js"), n2), g(e2("./dist/core/util/dataManager.js"), n2), g(e2("./dist/core/util/custom-list.js"), n2), g(e2("./dist/core/util/event-notify.js"), n2), 0 === a && e2("./dist/core/lc/lcRegister.js"), g(e2("./dist/core/worksheet/stylehelper.js"), n2), 1 === a && e2("./dist/core/lc/lcRegister.js"), g(e2("./dist/core/worksheet/style.js"), n2), 2 === a && e2("./dist/core/lc/lcRegister.js"), g(e2("./dist/core/worksheet/clipboardhelper.js"), n2), 3 === a && e2("./dist/core/lc/lcRegister.js"), g(e2("./dist/core/worksheet/worksheet-model.js"), n2), 4 === a && e2("./dist/core/lc/lcRegister.js"), g(e2("./dist/core/worksheet/worksheet.js"), n2), g(e2("./dist/core/worksheet/worksheet-formatter.js"), n2), g(e2("./dist/core/worksheet/worksheet-actions.js"), n2), g(e2("./dist/core/worksheet/worksheet-border.js"), n2), e2("./dist/core/worksheet/worksheet-edit.js"), g(e2("./dist/core/worksheet/worksheet-event.js"), n2), e2("./dist/core/worksheet/worksheet-json.js"), g(e2("./dist/core/worksheet/worksheet-render.js"), n2), e2("./dist/core/worksheet/worksheet-selection.js"), g(e2("./dist/core/worksheet/worksheet-sort.js"), n2), g(e2("./dist/core/worksheet/worksheet-ui.js"), n2), g(e2("./dist/core/worksheet/worksheet-static.js"), n2), g(e2("./dist/core/worksheet/worksheet-clipboard.js"), n2), (0, (u = e2("./dist/core/worksheet/feature-registers/index.js")).registerWorkbookFeatures)(), g(e2("./dist/core/workbook/workbook.js"), n2), g(e2("./dist/core/workbook/workbook-json.js"), n2), g(e2("./dist/core/workbook/sheettabbase.js"), n2), g(e2("./dist/core/workbook/sheettab.js"), n2), g(e2("./dist/core/workbook/sheettab2007.js"), n2), g(e2("./dist/core/workbook/workbookpanelex.js"), n2), g(e2("./dist/core/workbook/customThemeManager.js"), n2), g(e2("./dist/core/worksheet/attachmentManager/index.js"), n2), g(e2("./dist/core/util/styleManager.js"), n2), s = e2("./dist/core/celltype/cellType.entry.js"), n2.CellTypes = s, c = e2("./dist/core/celltype/basecelltype.js"), Object.defineProperty(n2, "getEditorPosition", { enumerable: true, get: function() {
          return c.getEditorPosition;
        } }), Object.defineProperty(n2, "cellTypeContext_paintBackground", { enumerable: true, get: function() {
          return c.cellTypeContext_paintBackground;
        } }), Object.defineProperty(n2, "paintDecoration", { enumerable: true, get: function() {
          return c.paintDecoration;
        } }), Object.defineProperty(n2, "isPrintZoomFactorExist", { enumerable: true, get: function() {
          return c.isPrintZoomFactorExist;
        } }), f = e2("./dist/core/celltype/headercelltype.js"), l = e2("./dist/core/celltype/textcelltype.js"), h = e2("./dist/core/celltype/textcelltype.js"), Object.defineProperty(n2, "y0r", { enumerable: true, get: function() {
          return h.y0r;
        } }), s.Hi = f, s.zi = l, d = s.rotatedCharsForVertical, v = s.VCRT, n2.rotatedCharsForVertical = d, n2.VerticalCharRotatedType = v, 1 !== o && 2 !== o || r.Vi(n2), n2._Ae = m, n2.Aoe = r.Aoe;
      }, "./dist/core/core.enum.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.IconPosition = n2.ButtonPosition = n2.DropDownType = n2.ButtonImageType = n2.ButtonVisibility = n2.RowColumnStates = n2.CellStatesType = n2.SortState = n2.SheetArea = n2.VerticalPosition = n2.HorizontalPosition = n2.Yi = n2.ImageLayout = n2.ValueType = n2.RangeChangedAction = n2.HeaderAutoText = n2.StorageType = n2.SelectionUnit = n2.SelectionPolicy = n2.ImeMode = n2.EditorStatus = n2.VisualState = n2.Zi = n2.VertAlign = n2.VerticalAlign = n2.HorizontalAlign = n2.TextDirectionType = n2.TextDecorationType = n2.LabelVisibility = n2.LabelAlignment = n2.TransformScope = n2.PasteOperationOptions = n2.CopyToOptions = n2.ClipboardPasteOptions = n2.AutoFitType = n2.InvalidOperationType = n2.ResizeZeroIndicator = n2.HeaderOptions = n2.CalculationType = n2.CalculationMode = n2.CopyPasteHeaderOptions = n2.ResizeMode = n2.InsertShiftCell = n2.ShowScrollTip = n2.ScrollbarAppearance = n2.ShowResizeTip = n2.WorksheetType = n2.ScrollbarState = n2.AxisInfoChangeType = n2.ScrollType = void 0, n2.CalcSetValueTrigger = n2.CustomThemeType = n2.AllowDragHeaderToMove = n2.ListType = n2.SheetTabState = n2.DefaultChangeValueType = n2.ClipboardActionType = n2.OpenMode = n2.OpenSaveFileType = n2.FileType = n2.TableStyleElement = n2.SortBy = n2.UsedRangeType = n2.ColumnHeaderFitMode = n2.AllSheetsListVisibility = n2.SheetTabVisible = n2.SheetType = n2.HyperlinkTargetType = n2.TabStripPosition = n2.NumbersFitMode = n2.PatternType = n2.DropDownAlignment = n2.DropDownDirection = n2.DropdownListValue = n2.GroupSort = n2.CalendarStartDay = n2.CalendarPage = n2.LayoutDisplayAs = n2.LayoutDirection = n2.CaptionAlignment = void 0, (function(t3) {
          t3[t3.pixels = 0] = "pixels", t3[t3.continuous = 1] = "continuous";
        })(e2 = n2.ScrollType || (n2.ScrollType = {})), (function(t3) {
          t3[t3.setRowCount = 0] = "setRowCount", t3[t3.setColumnCount = 1] = "setColumnCount", t3[t3.addRows = 2] = "addRows", t3[t3.deleteRows = 3] = "deleteRows", t3[t3.addColumns = 4] = "addColumns", t3[t3.deleteColumns = 5] = "deleteColumns", t3[t3.setRowHeight = 6] = "setRowHeight", t3[t3.setColumnWidth = 7] = "setColumnWidth", t3[t3.setRowVisible = 8] = "setRowVisible", t3[t3.setColumnVisible = 9] = "setColumnVisible", t3[t3.filterRows = 10] = "filterRows", t3[t3.outlineExpandRows = 11] = "outlineExpandRows", t3[t3.outlineExpandColumns = 12] = "outlineExpandColumns";
        })(i2 = n2.AxisInfoChangeType || (n2.AxisInfoChangeType = {})), (function(t3) {
          t3[t3.hide = 0] = "hide", t3[t3.show = 1] = "show", t3[t3.active = 2] = "active", t3[t3.inactive = 3] = "inactive";
        })(r = n2.ScrollbarState || (n2.ScrollbarState = {})), (function(t3) {
          t3[t3.worksheet = 0] = "worksheet", t3[t3.reportTemplateSheet = 1] = "reportTemplateSheet";
        })(o = n2.WorksheetType || (n2.WorksheetType = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.column = 1] = "column", t3[t3.row = 2] = "row", t3[t3.both = 3] = "both";
        })(a = n2.ShowResizeTip || (n2.ShowResizeTip = {})), (function(t3) {
          t3[t3.skin = 0] = "skin", t3[t3.mobile = 1] = "mobile";
        })(u = n2.ScrollbarAppearance || (n2.ScrollbarAppearance = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.horizontal = 1] = "horizontal", t3[t3.vertical = 2] = "vertical", t3[t3.both = 3] = "both";
        })(s = n2.ShowScrollTip || (n2.ShowScrollTip = {})), (function(t3) {
          t3[t3.right = 0] = "right", t3[t3.down = 1] = "down";
        })(c = n2.InsertShiftCell || (n2.InsertShiftCell = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.split = 1] = "split";
        })(f = n2.ResizeMode || (n2.ResizeMode = {})), (function(t3) {
          t3[t3.noHeaders = 0] = "noHeaders", t3[t3.rowHeaders = 1] = "rowHeaders", t3[t3.columnHeaders = 2] = "columnHeaders", t3[t3.allHeaders = 3] = "allHeaders";
        })(l = n2.CopyPasteHeaderOptions || (n2.CopyPasteHeaderOptions = {})), (function(t3) {
          t3[t3.auto = 0] = "auto", t3[t3.manual = 1] = "manual";
        })(h = n2.CalculationMode || (n2.CalculationMode = {})), (function(t3) {
          t3[t3.all = 0] = "all", t3[t3.rebuild = 1] = "rebuild", t3[t3.minimal = 2] = "minimal", t3[t3.regular = 3] = "regular";
        })(d = n2.CalculationType || (n2.CalculationType = {})), (function(t3) {
          t3[t3.noHeaders = 0] = "noHeaders", t3[t3.rowHeaders = 1] = "rowHeaders", t3[t3.columnHeaders = 2] = "columnHeaders", t3[t3.allHeaders = 3] = "allHeaders";
        })(v = n2.HeaderOptions || (n2.HeaderOptions = {})), (function(t3) {
          t3[t3.default = 0] = "default", t3[t3.enhanced = 1] = "enhanced";
        })(p = n2.ResizeZeroIndicator || (n2.ResizeZeroIndicator = {})), (function(t3) {
          t3[t3.setFormula = 0] = "setFormula", t3[t3.copyPaste = 1] = "copyPaste", t3[t3.dragFill = 2] = "dragFill", t3[t3.dragDrop = 3] = "dragDrop", t3[t3.changePartOfArrayFormula = 4] = "changePartOfArrayFormula", t3[t3.changeSheetName = 5] = "changeSheetName", t3[t3.table = 6] = "table", t3[t3.filter = 7] = "filter", t3[t3.hideSheet = 8] = "hideSheet", t3[t3.sort = 9] = "sort", t3[t3.pivotTable = 10] = "pivotTable", t3[t3.ptOverlapValue = 11] = "ptOverlapValue", t3[t3.groupProtected = 12] = "groupProtected", t3[t3.editProtected = 13] = "editProtected", t3[t3.cutProtected = 14] = "cutProtected", t3[t3.customName = 15] = "customName", t3[t3.dataObjectCellTypeInsertData = 16] = "dataObjectCellTypeInsertData", t3[t3.reportSheet = 17] = "reportSheet", t3[t3.sizeLimitExceeded = 18] = "sizeLimitExceeded";
        })(g = n2.InvalidOperationType || (n2.InvalidOperationType = {})), (function(t3) {
          t3[t3.cell = 0] = "cell", t3[t3.cellWithHeader = 1] = "cellWithHeader";
        })(m = n2.AutoFitType || (n2.AutoFitType = {})), (function(t3) {
          t3[t3.all = 0] = "all", t3[t3.values = 1] = "values", t3[t3.formatting = 2] = "formatting", t3[t3.formulas = 3] = "formulas", t3[t3.valuesAndFormatting = 4] = "valuesAndFormatting", t3[t3.formulasAndFormatting = 5] = "formulasAndFormatting", t3[t3.comments = 6] = "comments", t3[t3.validation = 7] = "validation", t3[t3.usingSourceTheme = 8] = "usingSourceTheme", t3[t3.noBorder = 9] = "noBorder", t3[t3.columnWidths = 10] = "columnWidths", t3[t3.formulasAndNumberFormatting = 11] = "formulasAndNumberFormatting", t3[t3.valuesAndNumberFormatting = 12] = "valuesAndNumberFormatting", t3[t3.valuesAndSourceFormatting = 13] = "valuesAndSourceFormatting", t3[t3.allAndColumnWidth = 14] = "allAndColumnWidth";
        })(b = n2.ClipboardPasteOptions || (n2.ClipboardPasteOptions = {})), (function(t3) {
          t3[t3.value = 1] = "value", t3[t3.formula = 2] = "formula", t3[t3.comment = 4] = "comment", t3[t3.outline = 8] = "outline", t3[t3.sparkline = 16] = "sparkline", t3[t3.span = 32] = "span", t3[t3.style = 64] = "style", t3[t3.tag = 128] = "tag", t3[t3.bindingPath = 256] = "bindingPath", t3[t3.conditionalFormat = 512] = "conditionalFormat", t3[t3.hyperlink = 1024] = "hyperlink", t3[t3.defaultValue = 2048] = "defaultValue", t3[t3.altText = 4096] = "altText", t3[t3.shape = 8192] = "shape", t3[t3.all = 16383] = "all";
        })(y = n2.CopyToOptions || (n2.CopyToOptions = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.add = 1] = "add", t3[t3.subtract = 2] = "subtract", t3[t3.multiply = 3] = "multiply", t3[t3.divide = 4] = "divide", t3[t3.transform = 5] = "transform";
        })(w = n2.PasteOperationOptions || (n2.PasteOperationOptions = {})), (function(t3) {
          t3[t3.byCell = 0] = "byCell", t3[t3.byRow = 1] = "byRow", t3[t3.byColumn = 2] = "byColumn", t3[t3.byRange = 3] = "byRange";
        })(M = n2.TransformScope || (n2.TransformScope = {})), (function(t3) {
          t3[t3.topLeft = 0] = "topLeft", t3[t3.topCenter = 1] = "topCenter", t3[t3.topRight = 2] = "topRight", t3[t3.bottomLeft = 3] = "bottomLeft", t3[t3.bottomCenter = 4] = "bottomCenter", t3[t3.bottomRight = 5] = "bottomRight";
        })(C = n2.LabelAlignment || (n2.LabelAlignment = {})), (function(t3) {
          t3[t3.visible = 0] = "visible", t3[t3.hidden = 1] = "hidden", t3[t3.auto = 2] = "auto";
        })(S = n2.LabelVisibility || (n2.LabelVisibility = {})), (function(t3) {
          t3[t3.underline = 1] = "underline", t3[t3.lineThrough = 2] = "lineThrough", t3[t3.overline = 4] = "overline", t3[t3.doubleUnderline = 8] = "doubleUnderline", t3[t3.none = 0] = "none";
        })(T = n2.TextDecorationType || (n2.TextDecorationType = {})), (function(t3) {
          t3[t3.context = 0] = "context", t3[t3.leftToRight = 1] = "leftToRight", t3[t3.rightToLeft = 2] = "rightToLeft";
        })(x = n2.TextDirectionType || (n2.TextDirectionType = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.center = 1] = "center", t3[t3.right = 2] = "right", t3[t3.general = 3] = "general", t3[t3.centerContinuous = 4] = "centerContinuous", t3[t3.distributed = 5] = "distributed";
        })(A = n2.HorizontalAlign || (n2.HorizontalAlign = {})), (function(t3) {
          t3[t3.top = 0] = "top", t3[t3.center = 1] = "center", t3[t3.bottom = 2] = "bottom";
        })(I = n2.VerticalAlign || (n2.VerticalAlign = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.superscript = 1] = "superscript", t3[t3.subscript = 2] = "subscript";
        })(k = n2.VertAlign || (n2.VertAlign = {})), (function(t3) {
          t3[t3.smallDecrement = 0] = "smallDecrement", t3[t3.smallIncrement = 1] = "smallIncrement", t3[t3.largeDecrement = 2] = "largeDecrement", t3[t3.largeIncrement = 3] = "largeIncrement", t3[t3.thumbPosition = 4] = "thumbPosition", t3[t3.thumbTrack = 5] = "thumbTrack", t3[t3.endScroll = 6] = "endScroll";
        })(N = n2.Zi || (n2.Zi = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.highlight = 1] = "highlight", t3[t3.selected = 2] = "selected", t3[t3.active = 3] = "active", t3[t3.hover = 4] = "hover", t3[t3.activeNotSelected = 5] = "activeNotSelected";
        })(j = n2.VisualState || (n2.VisualState = {})), (function(t3) {
          t3[t3.ready = 0] = "ready", t3[t3.enter = 1] = "enter", t3[t3.edit = 2] = "edit";
        })(D = n2.EditorStatus || (n2.EditorStatus = {})), (function(t3) {
          t3[t3.auto = 1] = "auto", t3[t3.active = 2] = "active", t3[t3.inactive = 4] = "inactive", t3[t3.disabled = 0] = "disabled";
        })(_ = n2.ImeMode || (n2.ImeMode = {})), (function(t3) {
          t3[t3.single = 0] = "single", t3[t3.range = 1] = "range", t3[t3.multiRange = 2] = "multiRange";
        })(O = n2.SelectionPolicy || (n2.SelectionPolicy = {})), (function(t3) {
          t3[t3.cell = 0] = "cell", t3[t3.row = 1] = "row", t3[t3.column = 2] = "column";
        })(E = n2.SelectionUnit || (n2.SelectionUnit = {})), (function(t3) {
          t3[t3.data = 1] = "data", t3[t3.style = 2] = "style", t3[t3.comment = 4] = "comment", t3[t3.tag = 8] = "tag", t3[t3.sparkline = 16] = "sparkline", t3[t3.axis = 32] = "axis", t3[t3.bindingPath = 64] = "bindingPath", t3[t3.hyperlink = 256] = "hyperlink", t3[t3.altText = 512] = "altText";
        })(R = n2.StorageType || (n2.StorageType = {})), (function(t3) {
          t3[t3.blank = 0] = "blank", t3[t3.numbers = 1] = "numbers", t3[t3.letters = 2] = "letters";
        })(L = n2.HeaderAutoText || (n2.HeaderAutoText = {})), (function(t3) {
          t3[t3.dragDrop = 0] = "dragDrop", t3[t3.dragFill = 1] = "dragFill", t3[t3.clear = 2] = "clear", t3[t3.paste = 3] = "paste", t3[t3.sort = 4] = "sort", t3[t3.setArrayFormula = 5] = "setArrayFormula", t3[t3.evaluateFormula = 6] = "evaluateFormula";
        })(F = n2.RangeChangedAction || (n2.RangeChangedAction = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.richText = 1] = "richText";
        })(B = n2.ValueType || (n2.ValueType = {})), (function(t3) {
          t3[t3.stretch = 0] = "stretch", t3[t3.center = 1] = "center", t3[t3.zoom = 2] = "zoom", t3[t3.none = 3] = "none";
        })(P = n2.ImageLayout || (n2.ImageLayout = {})), (function(t3) {
          t3.ThumbButton = "thumbButton", t3.TrackButton = "trackButton", t3.LeftButton = "leftButton", t3.RightButton = "rightButton", t3.UpButton = "upButton", t3.DownButton = "downButton";
        })(G = n2.Yi || (n2.Yi = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.center = 1] = "center", t3[t3.right = 2] = "right", t3[t3.nearest = 3] = "nearest";
        })(U = n2.HorizontalPosition || (n2.HorizontalPosition = {})), (function(t3) {
          t3[t3.top = 0] = "top", t3[t3.center = 1] = "center", t3[t3.bottom = 2] = "bottom", t3[t3.nearest = 3] = "nearest";
        })(H = n2.VerticalPosition || (n2.VerticalPosition = {})), (function(t3) {
          t3[t3.corner = 0] = "corner", t3[t3.colHeader = 1] = "colHeader", t3[t3.rowHeader = 2] = "rowHeader", t3[t3.viewport = 3] = "viewport";
        })(V = n2.SheetArea || (n2.SheetArea = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.ascending = 1] = "ascending", t3[t3.descending = 2] = "descending";
        })(z = n2.SortState || (n2.SortState = {})), (function(t3) {
          t3[t3.hover = 1] = "hover", t3[t3.invalid = 2] = "invalid", t3[t3.readonly = 4] = "readonly", t3[t3.edit = 8] = "edit", t3[t3.active = 16] = "active", t3[t3.selected = 32] = "selected", t3[t3.dirty = 64] = "dirty", t3[t3.invalidFormula = 128] = "invalidFormula";
        })(Y = n2.CellStatesType || (n2.CellStatesType = {})), (function(t3) {
          t3[t3.hover = 1] = "hover", t3[t3.invalid = 2] = "invalid", t3[t3.edit = 8] = "edit", t3[t3.active = 16] = "active", t3[t3.selected = 32] = "selected", t3[t3.dirty = 64] = "dirty", t3[t3.inserted = 128] = "inserted", t3[t3.invalidFormula = 512] = "invalidFormula";
        })(Z = n2.RowColumnStates || (n2.RowColumnStates = {})), (function(t3) {
          t3[t3.always = 0] = "always", t3[t3.onSelected = 1] = "onSelected", t3[t3.onEditing = 2] = "onEditing";
        })(W = n2.ButtonVisibility || (n2.ButtonVisibility = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.custom = 1] = "custom", t3[t3.clear = 2] = "clear", t3[t3.cancel = 3] = "cancel", t3[t3.ok = 4] = "ok", t3[t3.dropdown = 5] = "dropdown", t3[t3.ellipsis = 6] = "ellipsis", t3[t3.left = 7] = "left", t3[t3.right = 8] = "right", t3[t3.plus = 9] = "plus", t3[t3.minus = 10] = "minus", t3[t3.undo = 11] = "undo", t3[t3.redo = 12] = "redo", t3[t3.search = 13] = "search", t3[t3.separator = 14] = "separator", t3[t3.spinLeft = 15] = "spinLeft", t3[t3.spinRight = 16] = "spinRight", t3[t3.collapse = 17] = "collapse", t3[t3.expand = 18] = "expand";
        })(Q = n2.ButtonImageType || (n2.ButtonImageType = {})), Q.calcel = Q.cancel, (function(t3) {
          t3[t3.colorPicker = 0] = "colorPicker", t3[t3.dateTimePicker = 1] = "dateTimePicker", t3[t3.timePicker = 2] = "timePicker", t3[t3.monthPicker = 3] = "monthPicker", t3[t3.list = 4] = "list", t3[t3.slider = 5] = "slider", t3[t3.calculator = 6] = "calculator", t3[t3.workflowList = 7] = "workflowList", t3[t3.multiColumn = 8] = "multiColumn";
        })(K = n2.DropDownType || (n2.DropDownType = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.right = 1] = "right", t3[t3.leftOfText = 2] = "leftOfText", t3[t3.rightOfText = 3] = "rightOfText";
        })(J = n2.ButtonPosition || (n2.ButtonPosition = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.right = 1] = "right", t3[t3.leftOfText = 2] = "leftOfText", t3[t3.rightOfText = 3] = "rightOfText", t3[t3.outsideLeft = 4] = "outsideLeft", t3[t3.outsideRight = 5] = "outsideRight";
        })(X = n2.IconPosition || (n2.IconPosition = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.right = 1] = "right";
        })(q = n2.CaptionAlignment || (n2.CaptionAlignment = {})), (function(t3) {
          t3[t3.horizontal = 0] = "horizontal", t3[t3.vertical = 1] = "vertical";
        })($ = n2.LayoutDirection || (n2.LayoutDirection = {})), (function(t3) {
          t3[t3.inline = 0] = "inline", t3[t3.popup = 1] = "popup", t3[t3.tree = 2] = "tree";
        })(tt = n2.LayoutDisplayAs || (n2.LayoutDisplayAs = {})), (function(t3) {
          t3[t3.year = 1] = "year", t3[t3.month = 2] = "month", t3[t3.day = 3] = "day";
        })(nt = n2.CalendarPage || (n2.CalendarPage = {})), (function(t3) {
          t3[t3.monday = 1] = "monday", t3[t3.tuesday = 2] = "tuesday", t3[t3.wednesday = 3] = "wednesday", t3[t3.thursday = 4] = "thursday", t3[t3.friday = 5] = "friday", t3[t3.saturday = 6] = "saturday", t3[t3.sunday = 7] = "sunday";
        })(et = n2.CalendarStartDay || (n2.CalendarStartDay = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.group = 1] = "group", t3[t3.child = 2] = "child", t3[t3.full = 3] = "full";
        })(it = n2.GroupSort || (n2.GroupSort = {})), (function(t3) {
          t3[t3.string = 0] = "string", t3[t3.array = 1] = "array";
        })(rt = n2.DropdownListValue || (n2.DropdownListValue = {})), (function(t3) {
          t3[t3.Down = 0] = "Down", t3[t3.Up = 1] = "Up", t3[t3.Left = 2] = "Left", t3[t3.Right = 3] = "Right";
        })(ot = n2.DropDownDirection || (n2.DropDownDirection = {})), (function(t3) {
          t3[t3.Near = 0] = "Near", t3[t3.Center = 1] = "Center", t3[t3.Far = 2] = "Far";
        })(at = n2.DropDownAlignment || (n2.DropDownAlignment = {})), (function(t3) {
          t3[t3.solid = 1] = "solid", t3[t3.darkGray = 2] = "darkGray", t3[t3.mediumGray = 3] = "mediumGray", t3[t3.lightGray = 4] = "lightGray", t3[t3.gray125 = 5] = "gray125", t3[t3.gray0625 = 6] = "gray0625", t3[t3.darkHorizontal = 7] = "darkHorizontal", t3[t3.darkVertical = 8] = "darkVertical", t3[t3.darkDown = 9] = "darkDown", t3[t3.darkUp = 10] = "darkUp", t3[t3.darkGrid = 11] = "darkGrid", t3[t3.darkTrellis = 12] = "darkTrellis", t3[t3.lightHorizontal = 13] = "lightHorizontal", t3[t3.lightVertical = 14] = "lightVertical", t3[t3.lightDown = 15] = "lightDown", t3[t3.lightUp = 16] = "lightUp", t3[t3.lightGrid = 17] = "lightGrid", t3[t3.lightTrellis = 18] = "lightTrellis";
        })(ut = n2.PatternType || (n2.PatternType = {})), (function(t3) {
          t3[t3.mask = 0] = "mask", t3[t3.overflow = 1] = "overflow";
        })(st = n2.NumbersFitMode || (n2.NumbersFitMode = {})), (function(t3) {
          t3[t3.bottom = 0] = "bottom", t3[t3.top = 1] = "top", t3[t3.left = 2] = "left", t3[t3.right = 3] = "right";
        })(ct = n2.TabStripPosition || (n2.TabStripPosition = {})), (function(t3) {
          t3[t3.blank = 0] = "blank", t3[t3.self = 1] = "self", t3[t3.parent = 2] = "parent", t3[t3.top = 3] = "top";
        })(ft = n2.HyperlinkTargetType || (n2.HyperlinkTargetType = {})), (function(t3) {
          t3[t3.tableSheet = 0] = "tableSheet", t3[t3.ganttSheet = 1] = "ganttSheet", t3[t3.customSheetTab = 2] = "customSheetTab", t3[t3.reportSheet = 3] = "reportSheet", t3[t3.printSheet = 9007199254740991] = "printSheet";
        })(lt = n2.SheetType || (n2.SheetType = {})), (function(t3) {
          t3[t3.hidden = 0] = "hidden", t3[t3.visible = 1] = "visible", t3[t3.veryHidden = 2] = "veryHidden";
        })(ht = n2.SheetTabVisible || (n2.SheetTabVisible = {})), (function(t3) {
          t3[t3.hide = 0] = "hide", t3[t3.show = 1] = "show", t3[t3.auto = 2] = "auto";
        })(dt = n2.AllSheetsListVisibility || (n2.AllSheetsListVisibility = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.vertical = 1] = "vertical", t3[t3.stack = 2] = "stack";
        })(vt = n2.ColumnHeaderFitMode || (n2.ColumnHeaderFitMode = {})), (function(t3) {
          t3[t3.all = 4294967295] = "all", t3[t3.axis = 1] = "axis", t3[t3.style = 2] = "style", t3[t3.rowStyle = 4] = "rowStyle", t3[t3.colStyle = 8] = "colStyle", t3[t3.data = 16] = "data", t3[t3.formula = 32] = "formula", t3[t3.span = 64] = "span", t3[t3.shape = 128] = "shape", t3[t3.table = 256] = "table", t3[t3.sparkLine = 512] = "sparkLine", t3[t3.comment = 1024] = "comment", t3[t3.slicer = 2048] = "slicer", t3[t3.pivottable = 4096] = "pivottable", t3[t3.filter = 8192] = "filter", t3[t3.dataValidation = 16384] = "dataValidation", t3[t3.conditionFormat = 32768] = "conditionFormat", t3[t3.chart = 65536] = "chart", t3[t3.picture = 131072] = "picture", t3[t3.tag = 262144] = "tag", t3[t3.dataRange = 524288] = "dataRange";
        })(pt = n2.UsedRangeType || (n2.UsedRangeType = {})), (function(t3) {
          t3.cellColor = "cellColor", t3.fontColor = "fontColor", t3.icon = "icon", t3.value = "value";
        })(gt = n2.SortBy || (n2.SortBy = {})), (function(t3) {
          t3.wholeTable = "wholeTable", t3.firstColumnStripe = "firstColumnStripe", t3.secondColumnStripe = "secondColumnStripe", t3.firstRowStripe = "firstRowStripe", t3.secondRowStripe = "secondRowStripe", t3.lastColumn = "lastColumn", t3.firstColumn = "firstColumn", t3.headerRow = "headerRow", t3.totalRow = "totalRow", t3.firstHeaderCell = "firstHeaderCell", t3.lastHeaderCell = "lastHeaderCell", t3.firstTotalCell = "firstTotalCell", t3.lastTotalCell = "lastTotalCell";
        })(mt = n2.TableStyleElement || (n2.TableStyleElement = {})), (function(t3) {
          t3[t3.excel = 0] = "excel", t3[t3.ssjson = 1] = "ssjson", t3[t3.csv = 2] = "csv";
        })(bt = n2.FileType || (n2.FileType = {})), (function(t3) {
          t3[t3.excel = 0] = "excel", t3[t3.sjs = 1] = "sjs";
        })(yt = n2.OpenSaveFileType || (n2.OpenSaveFileType = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.lazy = 1] = "lazy", t3[t3.incremental = 2] = "incremental";
        })(wt = n2.OpenMode || (n2.OpenMode = {})), (function(t3) {
          t3[t3.copy = 1] = "copy", t3[t3.cut = 2] = "cut", t3[t3.reset = 3] = "reset";
        })(Mt = n2.ClipboardActionType || (n2.ClipboardActionType = {})), (function(t3) {
          t3.Expression = "expr", t3.Value = "value";
        })(Ct = n2.DefaultChangeValueType || (n2.DefaultChangeValueType = {})), (function(t3) {
          t3[t3.hover = 1] = "hover", t3[t3.selected = 2] = "selected", t3[t3.active = 4] = "active", t3[t3.protected = 8] = "protected", t3[t3.normal = 16] = "normal";
        })(St = n2.SheetTabState || (n2.SheetTabState = {})), (function(t3) {
          t3[t3.disc = 0] = "disc", t3[t3.circle = 1] = "circle", t3[t3.square = 2] = "square", t3[t3.decimal = 3] = "decimal", t3[t3.lowerAlpha = 4] = "lowerAlpha", t3[t3.upperAlpha = 5] = "upperAlpha", t3[t3.lowerRoman = 6] = "lowerRoman", t3[t3.upperRoman = 7] = "upperRoman", t3[t3.lowerGreek = 8] = "lowerGreek";
        })(Tt = n2.ListType || (n2.ListType = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.column = 1] = "column", t3[t3.row = 2] = "row", t3[t3.both = 3] = "both";
        })(xt = n2.AllowDragHeaderToMove || (n2.AllowDragHeaderToMove = {})), (function(t3) {
          t3[t3.table = 0] = "table", t3[t3.pivot = 1] = "pivot", t3[t3.slicer = 2] = "slicer", t3[t3.timeline = 3] = "timeline";
        })(At = n2.CustomThemeType || (n2.CustomThemeType = {})), (function(t3) {
          t3.calc = "calc", t3.clear = "clear";
        })(It = n2.CalcSetValueTrigger || (n2.CalcSetValueTrigger = {}));
      }, "./dist/core/core.interface.js": function(t2, n2) {
        "use strict";
        var e2, i2;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataRangeChangeType = n2.CornerPosition = void 0, (function(t3) {
          t3[t3.leftTop = 1] = "leftTop", t3[t3.rightTop = 2] = "rightTop", t3[t3.leftBottom = 4] = "leftBottom", t3[t3.rightBottom = 8] = "rightBottom";
        })(e2 = n2.CornerPosition || (n2.CornerPosition = {})), (function(t3) {
          t3.value = "value", t3.style = "style", t3.rowCount = "rowCount", t3.colCount = "colCount", t3.clear = "clear", t3.move = "move", t3.copy = "copy", t3.remove = "remove";
        })(i2 = n2.DataRangeChangeType || (n2.DataRangeChangeType = {}));
      }, "./dist/core/core.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/core/core.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/core/core.res.en.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        for (r in Object.defineProperty(n2, "__esModule", { value: true }), n2.ARIA_Cell = n2.ARIA_Scrollbar_TRACK_Button = n2.ARIA_Scrollbar_Bottom_Button = n2.ARIA_Scrollbar_Right_Button = n2.ARIA_Scrollbar_Thumb_Button = n2.ARIA_Scrollbar_Top_Button = n2.ARIA_Scrollbar_Left_Button = n2.ARIA_Blank = n2.ARIA_NewSheet = n2.ARIA_SheetTab = n2.ARIA_NextButton = n2.ARIA_PreviousButton = n2.ARIA_Last = n2.ARIA_NextArrow = n2.ARIA_PreviousArrow = n2.ARIA_First = n2.ARIA_Resize = n2.NeedCanvasSupport = n2.Exp_OverlappingSpans = n2.Exp_SheetIsNull = n2.Exp_DestSheetIsNull = n2.Exp_ArrayFormulaSpan = n2.Exp_SheetNameConflict = n2.Exp_SheetNameInvalid = n2.Exp_EmptyNamedStyle = n2.NewTab = n2.Tip_Width = n2.Tip_Height = n2.Tip_Column_Offset = n2.Tip_Column = n2.Tip_Row = n2.Exp_PasteChangeMergeCell = n2.Exp_PasteDestinationCellsLocked = n2.Exp_InvalidCopyPasteSize = n2.Exp_PasteSourceCellsLocked = n2.Exp_ArgumentOutOfRange = n2.Exp_NotAFunction = n2.Exp_InvalidRange = n2.Exp_IndexOutOfRange = n2.Exp_CustomNameBothInUse = n2.Exp_InvalidCustomName = n2.Exp_InvalidCustomFunction = n2.Exp_DestIsNull = n2.Exp_SrcIsNull = n2.Exp_InvalidAndSpace = n2.Exp_ChangePartOfArray = n2.Exp_MultipleSelections = n2.Exp_InvalidPastedArea = n2.Exp_PasteExtentIsNull = n2.Exp_NotSupported = void 0, n2.cancel = n2.ok = n2.pasteSpecialOptionDialog = n2.STEP = n2.Exp_InvalidOperationSizeLimitExceeded = n2.EXP_UNSUPPORT_CRYPTO_ALGORITHM = n2.GENERAL = n2.NORMAL = n2.EXP_INVALID_PASSWORD = n2.EXP_NO_PASSWORD = n2.EXP_FILE_FORMAT = n2.EXP_IO = n2.Exp_InvalidOperationInProtect = n2.Exp_InvalidSortPartTableOrMultiTableInRange = n2.Exp_InvalidSortSpanInRange = n2.Exp_InvalidSortArrayFormulaInRange = n2.Exp_InsertCopiedCutCellsAffectTable = n2.Exp_InsertCopiedCutCellsOverlap = n2.Exp_InsertCopiedCutCellsNoRange = n2.Exp_InsertCopiedCutCellsOnSpanTable = n2.Exp_InsertCopiedCutCells = n2.REPORT_SUMMARY = n2.SHEET_NAME = n2.ARIA_OutlineGroupExpandedGroup = n2.ARIA_OutlineGroupCollapsedGroup = n2.ARIA_OutlineGroupExpanded = n2.ARIA_OutlineGroupCollapsed = n2.ARIA_ColumnHeader = n2.ARIA_RowHeader = n2.ARIA_HasComment = n2.ARIA_HasHyperlink = n2.ARIA_HasButton = n2.ARIA_HasCheckbox = n2.ARIA_HasFormula = n2.ARIA_HasValue = void 0, n2.Exp_NotSupported = "Not supported exception", n2.Exp_PasteExtentIsNull = "pasteExtent is null", n2.Exp_InvalidPastedArea = "The pasted area should have the same size as the copy or cut area.", n2.Exp_MultipleSelections = "This action won't work on multiple selections.", n2.Exp_ChangePartOfArray = "Cannot change part of an array.", n2.Exp_InvalidAndSpace = "Invalid {0}: {1} (must be between {2} and {3}).", n2.Exp_SrcIsNull = "The argument 'src' is null", n2.Exp_DestIsNull = "The argument 'dest' is null", n2.Exp_InvalidCustomFunction = "invalid custom function", n2.Exp_InvalidCustomName = "invalid custom name", n2.Exp_CustomNameBothInUse = "Both the current name and new name are referenced in cell formulas", n2.Exp_IndexOutOfRange = "Index is out of range!", n2.Exp_InvalidRange = "Invalid range", n2.Exp_NotAFunction = "Not A Function", n2.Exp_ArgumentOutOfRange = "ArgumentOutOfRange", n2.Exp_PasteSourceCellsLocked = "Source sheet's cells are locked.", n2.Exp_InvalidCopyPasteSize = "The copy and paste areas are not the same size.", n2.Exp_PasteDestinationCellsLocked = "The cell you are trying to change is protected and therefore read-only.", n2.Exp_PasteChangeMergeCell = "Cannot change part of a merged cell.", n2.Tip_Row = "Row: ", n2.Tip_Column = "Column: ", n2.Tip_Column_Offset = "Offset: ", n2.Tip_Height = "Height: {0} pixels", n2.Tip_Width = "Width: {0} pixels", n2.NewTab = "New...", n2.Exp_EmptyNamedStyle = "The name of named style cannot be empty or null", n2.Exp_SheetNameInvalid = "The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /", n2.Exp_SheetNameConflict = "That name is already taken. Try a different one.", n2.Exp_ArrayFormulaSpan = "Array formulas are not valid in merged cells.", n2.Exp_DestSheetIsNull = "destSheet is null", n2.Exp_SheetIsNull = "sheet is null.", n2.Exp_OverlappingSpans = "This operation will cause overlapping spans.", n2.NeedCanvasSupport = "You need a browser which full supports HTML5 Canvas to run SpreadJS", n2.ARIA_Resize = "resize", n2.ARIA_First = "first", n2.ARIA_PreviousArrow = "previous arrow", n2.ARIA_NextArrow = "next arrow", n2.ARIA_Last = "last", n2.ARIA_PreviousButton = "previous button", n2.ARIA_NextButton = "next button", n2.ARIA_SheetTab = "sheet tab", n2.ARIA_NewSheet = "new sheet", n2.ARIA_Blank = "blank", n2.ARIA_Scrollbar_Left_Button = "scrollbar left button", n2.ARIA_Scrollbar_Top_Button = "scrollbar top button", n2.ARIA_Scrollbar_Thumb_Button = "scrollbar thumb button", n2.ARIA_Scrollbar_Right_Button = "scrollbar right button", n2.ARIA_Scrollbar_Bottom_Button = "scrollbar bottom button", n2.ARIA_Scrollbar_TRACK_Button = "scrollbar track button", n2.ARIA_Cell = "cell", n2.ARIA_HasValue = "has value {0}", n2.ARIA_HasFormula = "has formula {0}", n2.ARIA_HasCheckbox = "has checkbox {0}", n2.ARIA_HasButton = "has button {0}", n2.ARIA_HasHyperlink = "has hyperlink {0}", n2.ARIA_HasComment = "has comment {0}", n2.ARIA_RowHeader = "row header", n2.ARIA_ColumnHeader = "column header", n2.ARIA_OutlineGroupCollapsed = "Collapse", n2.ARIA_OutlineGroupExpanded = "Expand", n2.ARIA_OutlineGroupCollapsedGroup = "Collapsed Group", n2.ARIA_OutlineGroupExpandedGroup = "Expanded Group", n2.SHEET_NAME = "Sheet", n2.REPORT_SUMMARY = "Sum", i2 = e2("./dist/core/lc/lr.msc.en.js")) i2.hasOwnProperty(r) && (n2[r] = i2[r]);
        n2.Exp_InsertCopiedCutCells = "This selection is not valid. The copy/paste area must be the same size", n2.Exp_InsertCopiedCutCellsOnSpanTable = "This won’t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.", n2.Exp_InsertCopiedCutCellsNoRange = "New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.", n2.Exp_InsertCopiedCutCellsOverlap = "This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.", n2.Exp_InsertCopiedCutCellsAffectTable = "You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.", n2.Exp_InvalidSortArrayFormulaInRange = "Can't sort current range as array formula exist.", n2.Exp_InvalidSortSpanInRange = "Can't sort current range as span exist.", n2.Exp_InvalidSortPartTableOrMultiTableInRange = "Can't sort current range as part table or more than one table exist.", n2.Exp_InvalidOperationInProtect = "The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.", n2.EXP_IO = "File read and write exception.", n2.EXP_FILE_FORMAT = "Incorrect file format.", n2.EXP_NO_PASSWORD = "The Excel file cannot be opened because the workbook/worksheet is password protected.", n2.EXP_INVALID_PASSWORD = "The specified password is incorrect.", n2.NORMAL = "Normal", n2.GENERAL = "General", n2.EXP_UNSUPPORT_CRYPTO_ALGORITHM = "Unsupported cryptographic algorithms", n2.Exp_InvalidOperationSizeLimitExceeded = "File size exceeds set limit the max size.", n2.STEP = { start: "start load {0}", loadFileData: "load {0}'s data to spread", loadSheetData: "load {0}'s data", startCalc: "start reCalc", loadSheetFormula: "load {0}'s formula", parseFile: "parse {0} content" }, n2.pasteSpecialOptionDialog = { title: "Paste Special", paste: "Paste", pasteOptions: { all: "All", formulas: "Formulas", values: "Values", formats: "Formats", comments: "Comments", validation: "Validation", usingSourceTheme: "All using Source theme", noBorders: "All except borders", columnWidth: "Column widths", formulasAndNumberFormats: "Formulas and number formats", valueAndNumberFormats: "Value and number formats" }, operation: "Operation", operationOptions: { none: "None", add: "Add", subtract: "Subtract", multiply: "Multiply", divide: "Divide", transform: "Transform" }, skipBlanks: "Skip blanks", transpose: "Transpose", pasteLink: "Paste Link", transformOptions: { title: "Transform", formula: "Formula:", formulaPrefix: "= LAMBDA( x, ", formulaSuffix: ")", formulaPlaceholder: "Enter the formula, e.g. UPPER(x)", scope: "Scope:", byCell: "By Cell", byRow: "By Row", byColumn: "By Column", byRange: "By Range" } }, n2.ok = "OK", n2.cancel = "Cancel";
      }, "./dist/core/excel-io-util/common.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T = this && this.$Kr || function(t3, n3, e3, i3) {
          function r2(t4) {
            return t4 instanceof e3 ? t4 : new e3((function(n4) {
              n4(t4);
            }));
          }
          return new (e3 || (e3 = Promise))((function(e4, o2) {
            function a2(t4) {
              try {
                s2(i3.next(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function u2(t4) {
              try {
                s2(i3.throw(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function s2(t4) {
              t4.done ? e4(t4.value) : r2(t4.value).then(a2, u2);
            }
            s2((i3 = i3.apply(t3, n3 || [])).next());
          }));
        }, x = this && this.tJr || function(t3, n3) {
          var e3 = { label: 0, sent: function() {
            if (1 & o2[0]) throw o2[1];
            return o2[1];
          }, trys: [], ops: [] }, i3, r2, o2, a2;
          return a2 = { next: u2(0), throw: u2(1), return: u2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
            return this;
          }), a2;
          function u2(t4) {
            return function(n4) {
              return s2([t4, n4]);
            };
          }
          function s2(u3) {
            if (i3) throw new TypeError("Generator is already executing.");
            for (; a2 && (a2 = 0, u3[0] && (e3 = 0)), e3; ) try {
              if (i3 = 1, r2 && (o2 = 2 & u3[0] ? r2.return : u3[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, u3[1])).done) return o2;
              switch (r2 = 0, o2 && (u3 = [2 & u3[0], o2.value]), u3[0]) {
                case 0:
                case 1:
                  o2 = u3;
                  break;
                case 4:
                  return e3.label++, { value: u3[1], done: false };
                case 5:
                  e3.label++, r2 = u3[1], u3 = [0];
                  continue;
                case 7:
                  u3 = e3.ops.pop(), e3.trys.pop();
                  continue;
                default:
                  if (!(o2 = e3.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== u3[0] && 2 !== u3[0])) {
                    e3 = 0;
                    continue;
                  }
                  if (3 === u3[0] && (!o2 || u3[1] > o2[0] && u3[1] < o2[3])) {
                    e3.label = u3[1];
                    break;
                  }
                  if (6 === u3[0] && e3.label < o2[1]) {
                    e3.label = o2[1], o2 = u3;
                    break;
                  }
                  if (o2 && e3.label < o2[2]) {
                    e3.label = o2[2], e3.ops.push(u3);
                    break;
                  }
                  o2[2] && e3.ops.pop(), e3.trys.pop();
                  continue;
              }
              u3 = n3.call(t3, e3);
            } catch (t4) {
              u3 = [6, t4], r2 = 0;
            } finally {
              i3 = o2 = 0;
            }
            if (5 & u3[0]) throw u3[1];
            return { value: u3[0] ? u3[1] : void 0, done: true };
          }
        };
        function A(t3, n3) {
          var e3, i3 = n3.toUpperCase(), r2 = b[i3];
          return r2 ? (e3 = g, r2.reg && (e3 = r2.prefix), e3 + t3) : t3;
        }
        function I(t3, n3, e3) {
          var i3 = function(n4) {
            return t3.getRowHeight(n4);
          }, r2 = function(n4) {
            return t3.getColumnWidth(n4);
          }, o2 = k(e3, i3, t3.getRowCount(), t3.defaults.rowHeight), a2 = k(n3, r2, t3.getColumnCount(), t3.defaults.colWidth);
          return { rowIndex: o2.index, rowOffset: o2.offset, colIndex: a2.index, colOffset: a2.offset };
        }
        function k(t3, n3, e3, i3) {
          var r2, o2, a2, u2 = -1, s2 = -1, c2 = 0;
          for (r2 = 0; r2 < e3; r2++) if ((c2 += o2 = n3(r2)) > t3) {
            u2 = r2, s2 = t3 - (c2 - o2);
            break;
          }
          return -1 === u2 && c2 < t3 && (u2 = e3 + (a2 = i3 ? Math.floor((t3 - c2) / i3) : 0), s2 = t3 - (c2 + a2 * i3)), { index: u2, offset: s2 };
        }
        function N(t3, n3) {
          for (var e3 = n3; e3 < t3.length; e3++) if ("'" === t3[e3] || '"' === t3[e3]) return e3;
          return e3;
        }
        function j(t3, n3) {
          var e3, i3, r2;
          if (t3 && "string" == typeof t3) {
            for (e3 = [], i3 = 0; i3 < t3.length && (r2 = N(t3, i3), e3.push(n3(t3.substring(i3, r2))), r2 < t3.length); i3++) {
              if (-1 === (i3 = t3.indexOf(t3[r2], r2 + 1))) {
                e3.push(t3.substring(r2));
                break;
              }
              e3.push(t3.substring(r2, i3 + 1));
            }
            return e3.join("");
          }
          return t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ExtendedNumberFormatHelper = n2.excelSupportProtectionOptions = n2.protectionOptionsMap = n2.SJSStylePropsToStyleProps = n2.Util = n2.NodeHelper = n2.IndexHelper = n2.StringEx = n2.STEP_RATE = void 0, i2 = e2("Common"), r = e2("./dist/core/core.enum.js"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/common.js"), u = e2("./dist/core/excel-io-util/excel-types.js"), s = e2("./dist/core/excel-io-util/excel-helper.js"), c = /_x[0-9A-Fa-f]{4}_/, f = i2.Common.lt.ht, l = null, h = u.XFileConstants.Wi, d = u.XFileConstants.Qi, v = u.XFileConstants.Ki, p = /([_A-Z][_A-Z.]+)\(/gi, g = "_xlfn.", b = { AVERAGEIF: /\bAVERAGEIF\b\(/gi, AVERAGEIFS: /\bAVERAGEIFS\b\(/gi, CUBEKPIMEMBER: /\bCUBEKPIMEMBER\b\(/gi, CUBEMEMBER: /\bCUBEMEMBER\b\(/gi, CUBEMEMBERPROPERTY: /\bCUBEMEMBERPROPERTY\b\(/gi, CUBERANKEDMEMBER: /\bCUBERANKEDMEMBER\b\(/gi, CUBESET: /\bCUBESET\b\(/gi, CUBESETCOUNT: /\bCUBESETCOUNT\b\(/gi, CUBEVALUE: /\bCUBEVALUE\b\(/gi, COUNTIFS: /\bCOUNTIFS\b\(/gi, IFERROR: /\bIFERROR\b\(/gi, SUMIFS: /\bSUMIFS\b\(/gi, ACOT: /\bACOT\b\(/gi, ACOTH: /\bACOTH\b\(/gi, AGGREGATE: /\bAGGREGATE\b\(/gi, ARABIC: /\bARABIC\b\(/gi, BASE: /\bBASE\b\(/gi, "BETA.DIST": /\bBETA\.DIST\b\(/gi, "BETA.INV": /\bBETA\.INV\b\(/gi, "BINOM.DIST": /\bBINOM\.DIST\b\(/gi, "BINOM.DIST.RANGE": /\bBINOM\.DIST\.RANGE\b\(/gi, "BINOM.INV": /\bBINOM\.INV\b\(/gi, BITAND: /\bBITAND\b\(/gi, BITLSHIFT: /\bBITLSHIFT\b\(/gi, BITOR: /\bBITOR\b\(/gi, BITRSHIFT: /\bBITRSHIFT\b\(/gi, BITXOR: /\bBITXOR\b\(/gi, "CEILING.MATH": /\bCEILING\.MATH\b\(/gi, "CEILING.PRECISE": /\bCEILING\.PRECISE\b\(/gi, "CHISQ.DIST": /\bCHISQ\.DIST\b\(/gi, "CHISQ.DIST.RT": /\bCHISQ\.DIST\.RT\b\(/gi, "CHISQ.INV": /\bCHISQ\.INV\b\(/gi, "CHISQ.INV.RT": /\bCHISQ\.INV\.RT\b\(/gi, "CHISQ.TEST": /\bCHISQ\.TEST\b\(/gi, COMBINA: /\bCOMBINA\b\(/gi, CONCAT: /\bCONCAT\b\(/gi, "CONFIDENCE.T": /\bCONFIDENCE\.T\b\(/gi, "CONFIDENCE.NORM": /\bCONFIDENCE\.NORM\b\(/gi, COT: /\bCOT\b\(/gi, "COVARIANCE.P": /\bCOVARIANCE\.P\b\(/gi, "COVARIANCE.S": /\bCOVARIANCE\.S\b\(/gi, CSC: /\bCSC\b\(/gi, CSCH: /\bCSCH\b\(/gi, DAYS: /\bDAYS\b\(/gi, DECIMAL: /\bDECIMAL\b\(/gi, ENCODEURL: /\bENCODEURL\b\(/gi, "ERF.PRECISE": /\bERF\.PRECISE\b\(/gi, "ERFC.PRECISE": /\bERFC\.PRECISE\b\(/gi, "EXPON.DIST": /\bEXPON\.DIST\b\(/gi, "F.DIST": /\bF\.DIST\b\(/gi, "F.DIST.RT": /\bF\.DIST\.RT\b\(/gi, "F.INV": /\bF\.INV\b\(/gi, "F.INV.RT": /\bF\.INV\.RT\b\(/gi, FILTERXML: /\bFILTERXML\b\(/gi, "FLOOR.MATH": /\bFLOOR\.MATH\b\(/gi, "FLOOR.PRECISE": /\bFLOOR\.PRECISE\b\(/gi, FORMULATEXT: /\bFORMULATEXT\b\(/gi, GAMMA: /\bGAMMA\b\(/gi, "GAMMA.DIST": /\bGAMMA\.DIST\b\(/gi, "GAMMA.INV": /\bGAMMA\.INV\b\(/gi, "GAMMALN.PRECISE": /\bGAMMALN\.PRECISE\b\(/gi, "HYPGEOM.DIST": /\bHYPGEOM\.DIST\b\(/gi, IFNA: /\bIFNA\b\(/gi, IFS: /\bIFS\b\(/gi, IMCOSH: /\bIMCOSH\b\(/gi, IMCOT: /\bIMCOT\b\(/gi, IMCSCH: /\bIMCSCH\b\(/gi, IMSEC: /\bIMSEC\b\(/gi, IMSECH: /\bIMSECH\b\(/gi, IMSINH: /\bIMSINH\b\(/gi, IMTAN: /\bIMTAN\b\(/gi, ISFORMULA: /\bISFORMULA\b\(/gi, ISOWEEKNUM: /\bISOWEEKNUM\b\(/gi, "LOGNORM.DIST": /\bLOGNORM\.DIST\b\(/gi, "LOGNORM.INV": /\bLOGNORM\.INV\b\(/gi, MAXIFS: /\bMAXIFS\b\(/gi, MINIFS: /\bMINIFS\b\(/gi, "MODE.MULT": /\bMODE\.MULT\b\(/gi, "MODE.SNGL": /\bMODE\.SNGL\b\(/gi, MUNIT: /\bMUNIT\b\(/gi, "NEGBINOM.DIST": /\bNEGBINOM\.DIST\b\(/gi, "NORM.DIST": /\bNORM\.DIST\b\(/gi, "NORM.INV": /\bNORM\.INV\b\(/gi, "NORM.S.DIST": /\bNORM\.S\.DIST\b\(/gi, "NORM.S.INV": /\bNORM\.S\.INV\b\(/gi, NUMBERVALUE: /\bNUMBERVALUE\b\(/gi, PDURATION: /\bPDURATION\b\(/gi, "PERCENTILE.EXC": /\bPERCENTILE\.EXC\b\(/gi, "PERCENTILE.INC": /\bPERCENTILE\.INC\b\(/gi, "PERCENTRANK.EXC": /\bPERCENTRANK\.EXC\b\(/gi, "PERCENTRANK.INC": /\bPERCENTRANK\.INC\b\(/gi, PERMUTATIONA: /\bPERMUTATIONA\b\(/gi, PHI: /\bPHI\b\(/gi, "POISSON.DIST": /\bPOISSON\.DIST\b\(/gi, "QUARTILE.EXC": /\bQUARTILE\.EXC\b\(/gi, "QUARTILE.INC": /\bQUARTILE\.INC\b\(/gi, "RANK.AVG": /\bRANK\.AVG\b\(/gi, "RANK.EQ": /\bRANK\.EQ\b\(/gi, RRI: /\bRRI\b\(/gi, SECH: /\bSECH\b\(/gi, SHEET: /\bSHEET\b\(/gi, SHEETS: /\bSHEETS\b\(/gi, "STDEV.P": /\bSTDEV\.P\b\(/gi, "STDEV.S": /\bSTDEV\.S\b\(/gi, SWITCH: /\bSWITCH\b\(/gi, "T.DIST": /\bT\.DIST\b\(/gi, "T.DIST.2T": /\bT\.DIST\.2T\b\(/gi, "T.DIST.RT": /\bT\.DIST\.RT\b\(/gi, "T.INV": /\bT\.INV\b\(/gi, "T.INV.2T": /\bT\.INV\.2T\b\(/gi, TEXTJOIN: /\bTEXTJOIN\b\(/gi, UNICHAR: /\bUNICHAR\b\(/gi, UNICODE: /\bUNICODE\b\(/gi, "VAR.P": /\bVAR\.P\b\(/gi, "VAR.S": /\bVAR\.S\b\(/gi, WEBSERVICE: /\bWEBSERVICE\b\(/gi, "WEIBULL.DIST": /\bWEIBULL\.DIST\b\(/gi, XOR: /\bXOR\b\(/gi, "Z.TEST": /\bZ\.TEST\b\(/gi, XMATCH: /\bXLOOKUP\b\(/gi, XLOOKUP: /\bXLOOKUP\b\(/gi, RANDARRAY: /RANDARRAY\(/gi, SEQUENCE: /SEQUENCE\(/gi, IMAGE: /IMAGE\(/gi, SORTBY: /SORTBY\(/gi, UNIQUE: /UNIQUE\(/gi, ANCHORARRAY: /ANCHORARRAY\(/gi, SINGLE: /SINGLE\(/gi, _TRO_ALL: /_TRO_ALL\(/gi, _TRO_TRAILING: /_TRO_TRAILING\(/gi, _TRO_LEADING: /_TRO_LEADING\(/gi, TRIMRANGE: /TRIMRANGE\(/gi, LET: /\bLET\b\(/gi, LAMBDA: /\bLAMBDA\b\(/gi, REGEXTEST: /REGEXTEST\(/gi, REGEXEXTRACT: /REGEXEXTRACT\(/gi, REGEXREPLACE: /REGEXREPLACE\(/gi, MAP: /\bMAP\b\(/gi, REDUCE: /\bREDUCE\b\(/gi, SCAN: /\bSCAN\b\(/gi, MAKEARRAY: /\bMAKEARRAY\b\(/gi, BYCOL: /\bBYCOL\b\(/gi, BYROW: /\bBYROW\b\(/gi, ISOMITTED: /\bISOMITTED\b\(/gi, FILTER: { reg: /FILTER\(/gi, prefix: m = "_xlfn._xlws." }, SORT: { reg: /SORT\(/gi, prefix: m }, TEXTBEFORE: /\bTEXTBEFORE\b\(/gi, TEXTAFTER: /\bTEXTAFTER\b\(/gi, TEXTSPLIT: /\bTEXTSPLIT\b\(/gi, VSTACK: /\bVSTACK\b\(/gi, HSTACK: /\bHSTACK\b\(/gi, TOROW: /\bTOROW\b\(/gi, TOCOL: /\bTOCOL\b\(/gi, WRAPROWS: /\bWRAPROWS\b\(/gi, WRAPCOLS: /\bWRAPCOLS\b\(/gi, TAKE: /\bTAKE\b\(/gi, DROP: /\bDROP\b\(/gi, EXPAND: /\bEXPAND\b\(/gi, CHOOSEROWS: /\bCHOOSEROWS\b\(/gi, CHOOSECOLS: /\bCHOOSECOLS\b\(/gi, PERCENTOF: /\bPERCENTOF\b\(/gi, GROUPBY: /\bGROUPBY\b\(/gi, PIVOTBY: /\bPIVOTBY\b\(/gi }, n2.STEP_RATE = { start: 0, loadFileData: 0.1, loadSheetData: 0.4, loadSheetDataWithCalc: 0.3, startCalc: 0.2, loadSheetFormula: 0.4, loadSheetFormulaWithCalc: 0.3, parseFile: 0.1, end: 1 }, y = (function() {
          function t3() {
          }
          return t3.Ji = function(t4) {
            return !t4 || "" === t4;
          }, t3.Xi = function(t4) {
            return !t4 || " " === t4;
          }, t3;
        })(), n2.StringEx = y, w = (function() {
          function t3() {
          }
          return t3.qi = function(t4) {
            if (y.Ji(t4)) return 0;
            for (var n3 = 0, e3 = 0; e3 < t4.length && isNaN(parseInt(t4[e3], 10)); ) e3++;
            return e3 < t4.length && (n3 = parseInt(t4.substring(e3), 10)), n3 - 1;
          }, t3.$i = function(t4) {
            var n3, e3, i3, r2, o2 = 0, a2 = t4.length;
            for (n3 = 0; n3 < a2 && !((r2 = (i3 = (e3 = t4[n3]).charCodeAt()) - 97) > 25) && (r2 < 0 && (r2 = i3 - 65), !(r2 < 0)); n3++) o2 = 26 * o2 + r2 + 1;
            return --o2;
          }, t3.nr = function(n3) {
            var e3, i3, r2, o2, a2, u2;
            if (n3 < 0) return "";
            if (e3 = t3.er[n3]) return e3;
            for (i3 = n3, o2 = (r2 = "").length, n3 += 1; n3 > 0; n3 = Math.floor((n3 - 1) / 26)) a2 = r2.substring(0, o2), u2 = r2.substring(o2), r2 = a2 + String.fromCharCode(65 + (n3 - 1) % 26) + u2;
            return e3 = r2.toString(), t3.er[i3] = e3, e3;
          }, t3.er = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], t3;
        })(), n2.IndexHelper = w, M = (function() {
          function t3() {
          }
          return t3.ar = function(t4, n3) {
            if (!f(t4)) {
              var e3 = parseFloat(t4);
              if (!isNaN(e3)) return e3;
            }
            return n3;
          }, t3.ur = function(t4, n3) {
            return "1" === t4 || "true" === t4 || "0" !== t4 && "false" !== t4 && n3;
          }, t3.sr = function(t4, n3) {
            if (!isNaN(t4)) {
              var e3 = parseInt(t4, 10);
              if (!isNaN(e3)) return e3;
            }
            return n3;
          }, t3.cr = function(t4) {
            return Array.isArray(t4) || (t4 = t4 ? [t4] : []), t4;
          }, t3.lr = function(t4, n3) {
            var e3, i3, r2;
            if (t4) {
              for (e3 = n3.split("."), i3 = t4; e3.length; ) {
                if (r2 = e3.shift(), f(i3[r2])) return;
                i3 = i3[r2];
              }
              return i3;
            }
          }, t3.dr = function(t4, n3) {
            return f(t4) ? n3 : t4 ? "1" : "0";
          }, t3;
        })(), n2.NodeHelper = M, C = (function() {
          function t3() {
          }
          return t3.vr = function(t4) {
            return t4.split("/").pop().slice(0, -4);
          }, t3.mr = function(t4) {
            return j(t4, (function(t5) {
              return t5.toLowerCase().indexOf("_xl") >= 0 ? t5.replace(/_xlfn\.|_xlws\.|_xll\./gi, "") : t5;
            }));
          }, t3.gr = function(t4, n3, e3) {
            return t4.split(n3).join(e3);
          }, t3.pr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2;
            if (f(t4) || "" === t4) return t4;
            for (t4.match(c) !== l && (e3 = /(_x[0-9A-Fa-f]{4}_)/g, t4 = t4.replace(e3, (function(t5) {
              return "_x005F" + t5;
            }))), i3 = ["_x0000_", "_x0001_", "_x0002_", "_x0003_", "_x0004_", "_x0005_", "_x0006_", "_x0007_", "_x0008_", "_x0009_", "_x000A_", "_x000B_", "_x000C_", "_x000D_", "_x000E_", "_x000F_", "_x0010_", "_x0011_", "_x0012_", "_x0013_", "_x0014_", "_x0015_", "_x0016_", "_x0017_", "_x0018_", "_x0019_", "_x001A_", "_x001B_", "_x001C_", "_x001D_", "_x001E_", "_x001F_"], r2 = [], o2 = 0; o2 < t4.length; o2++) a2 = t4.charCodeAt(o2), u2 = t4[o2], a2 > 31 || (10 === a2 || 13 === a2) && n3 ? r2.push(u2) : r2.push(i3[a2]);
            return r2.join("");
          }, t3.addXLFNPrefix = function(t4) {
            return j(t4, (function(t5) {
              return t5.replace(p, A);
            }));
          }, t3.wr = function(t4) {
            return t4.c_ || (t4.c_ = []), t4.c_.length + 1;
          }, t3.Mr = function(t4) {
            return t4 + "." + u.XFileConstants.Cr;
          }, t3.Sr = function(t4, n3) {
            var e3, i3, r2;
            for (e3 = 0, i3 = t4; e3 < i3.length; e3++) if ((r2 = i3[e3]).Id === n3) return r2;
          }, t3.Tr = function(n3, e3, i3) {
            var r2, o2, a2 = n3 && t3.Sr(n3.c_, e3);
            if (a2) return r2 = t3.vr(a2.Target), (o2 = i3.drawings) && o2[r2];
          }, t3.Ir = function(n3, e3) {
            var i3 = a.util.xr(n3, h);
            if (i3) return t3.Tr(n3.rels, i3[v], e3);
          }, t3.Nr = function(t4) {
            t4.rels || (t4.rels = { n_: u.XFileConstants.Dr, xmlns: u.RelationshipConstants._r, c_: [] });
          }, t3.Er = function(n3, e3) {
            var i3, r2 = a.util.xr(e3, h), o2 = r2 && t3.Sr(e3.rels.c_, r2[v]), s2 = o2 && t3.vr(o2.Target);
            if (s2) return n3.drawings || (n3.drawings = {}), (i3 = n3.drawings)[s2] || (i3[s2] = { n_: "wsDr", r_: [5, 4], c_: [], rels: { n_: u.XFileConstants.Dr, xmlns: u.RelationshipConstants._r, c_: [] } }), i3[s2];
          }, t3.jr = function(n3, e3) {
            var i3, r2, o2, s2 = n3.rels;
            a.util.xr(n3, h) || (e3.drawing++, i3 = t3.wr(s2), r2 = u.XFileConstants.Rr + i3, o2 = u.XFileConstants.Wi + e3.drawing, s2.c_.push({ n_: u.XFileConstants.Lr, Id: r2, Type: u.RelationshipConstants.Fr, Target: "../drawings/" + o2 + "." + u.XFileConstants.Cr }), n3.c_ || (n3.c_ = []), n3.c_.push({ n_: h, "r:id": r2 }), a.util.Pr(n3, u.WorkSheetNodeOrder));
          }, t3.Gr = function(n3, e3, i3) {
            return t3.Tr(n3, e3, i3);
          }, t3.Ur = function(n3, e3, i3) {
            var r2, o2, u2 = a.util.xr(e3, i3 || d), s2 = u2 && t3.Sr(e3.rels.c_, u2[v]), c2 = s2 && t3.vr(s2.Target);
            if (c2) return n3.drawings || (n3.drawings = {}), (r2 = n3.drawings)[c2] || (o2 = { n_: "shapelayout", "v:ext": "edit", c_: [{ n_: "idmap", "v:ext": "edit", data: "1" }] }, r2[c2] = { n_: "xml", r_: [10, 11, 12], c_: [o2] }), r2[c2];
          }, t3.Hr = function(n3, e3, i3) {
            var r2, o2, s2, c2, f2;
            i3 = i3 || d, r2 = n3.rels, a.util.xr(n3, i3) || (e3.vmlDrawing++, o2 = e3.vmlDrawing, s2 = t3.wr(r2), c2 = u.XFileConstants.Rr + s2, f2 = u.XFileConstants.zr + o2, r2.c_.push({ n_: u.XFileConstants.Lr, Id: c2, Type: u.RelationshipConstants.Vr, Target: "../drawings/" + f2 + "." + u.XFileConstants.Yr }), n3.c_ || (n3.c_ = []), n3.c_.push({ n_: i3, "r:id": c2 }));
          }, t3.Zr = function(n3, e3, i3) {
            var r2, o2, a2, u2 = t3.Sr(e3.c_, n3), s2 = u2 && u2.Target;
            if (s2) return -1 !== (o2 = s2.lastIndexOf("/")) && (s2 = s2.substring(o2 + 1)), -1 !== (o2 = s2.lastIndexOf(".")) && (r2 = s2.substring(o2 + 1)), (a2 = i3.media[s2]) && r2 && (a2 = t3.Wr(a2, r2)), { blob: a2, type: r2 };
          }, t3.Wr = function(t4, n3) {
            var e3 = n3;
            return "svg" === e3 && (e3 = "svg+xml"), "data:image/".concat(e3, ";base64,").concat(t4);
          }, t3.Qr = function(t4) {
            var n3, e3, i3 = t4.indexOf(";base64,");
            if (-1 !== i3) return n3 = t4.substring(i3 + 8), { type: e3 = t4.substring(11, i3), base64Content: n3 };
          }, t3.Kr = function(n3, e3, i3) {
            var r2, o2, a2, s2, c2, l2, h2 = t3.Qr(n3);
            if (h2) {
              for (i3.media || (i3.media = {}), "svg+xml" === (r2 = h2.type) ? r2 = "svg" : "x-icon" === r2 && (r2 = "png"), o2 = "", a2 = Object.keys(i3.media), s2 = 0; s2 < a2.length; s2++) c2 = a2[s2], i3.media[c2] === h2.base64Content && (o2 = c2);
              return o2 || (o2 = u.XFileConstants.Jr + Object.keys(i3.media).length + "." + r2, i3.media[o2] = h2.base64Content), f(e3) ? o2 : (l2 = u.XFileConstants.Rr + t3.wr(e3), e3.c_.push({ n_: u.XFileConstants.Lr, Id: l2, Type: u.RelationshipConstants.Xr, Target: "../media/" + o2 }), l2);
            }
          }, t3.qr = function(t4, n3) {
            var e3 = 1024 * (t4 + 1) + 1;
            return n3 && (e3 += n3.c_.filter((function(t5) {
              return t5.n_ === u.XFileConstants.$r;
            })).length), e3;
          }, t3.StringToByteArray = function(t4) {
            var n3, e3, i3 = [];
            if (t4 && !(t4 instanceof Array)) for (n3 = t4.length, e3 = 0; e3 < n3; e3 += 2) i3[e3 / 2] = parseInt(t4.substr(e3, 2), 16);
            return i3;
          }, t3.no = function() {
            return "{xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx}".replace(/[xy]/g, (function(t4) {
              var n3 = 16 * Math.random() | 0, e3;
              return ("x" === t4 ? n3 : 3 & n3 | 8).toString(16);
            }));
          }, t3.eo = function(t4, n3) {
            var e3, i3 = t4.split("/"), r2 = n3.split("/");
            for (i3.pop(); r2.length > 0; ) if (".." === (e3 = r2[0])) r2.shift(), i3.pop();
            else {
              if ("." !== e3) break;
              r2.shift();
            }
            return i3.concat(r2).join("/");
          }, t3.io = function(t4) {
            if (!f(t4) && t4.match(c) !== l) {
              var n3 = /(_x005[fF])?_x([0-9A-Fa-f]{4})_/g;
              return t4.replace(n3, (function(t5, n4, e3) {
                var i3 = 0;
                return e3 && (i3 = parseInt(e3, 16)), n4 ? "_x" + e3 + "_" : String.fromCharCode(i3);
              })).replace(/(\r)+\n/g, "\n");
            }
            return t4.replace(/\r\n/g, "\n");
          }, t3.ro = function() {
            var t4, n3, e3, i3;
            try {
              n3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t5) {
                return typeof t5;
              } : function(t5) {
                return t5 && "function" == typeof Symbol && t5.constructor === Symbol ? "symbol" : typeof t5;
              }, e3 = "object" === ("undefined" == typeof global ? "undefined" : n3(global)) && global && global.Object === Object && global, i3 = "object" === ("undefined" == typeof self ? "undefined" : n3(self)) && self && self.Object === Object && self, t4 = e3 || i3 || Function("return this")();
            } catch (t5) {
            }
            return t4;
          }, t3.oo = function() {
            var n3 = t3.ro();
            return n3 && n3.gcCultureInfo;
          }, t3.ao = function() {
            var n3 = t3.ro();
            return n3 && n3.gcCultureObj;
          }, t3.uo = function(n3) {
            var e3 = true, i3 = t3.ro(), r2 = i3 && i3.GC && i3.GC.Spread && i3.GC.Spread.Formatter && i3.GC.Spread.Formatter.GeneralFormatter;
            if (n3 && "=" !== n3[0] && !f(r2)) try {
              new r2(n3);
            } catch (t4) {
              e3 = false;
            }
            return e3;
          }, t3.so = function(n3, e3) {
            var i3;
            return o.GC$.each(n3, (function(n4, r2) {
              var o2, a2, u2 = r2.rels && r2.rels.c_;
              if (u2 && u2.length) {
                for (o2 = 0; o2 < u2.length; o2++) if ((a2 = t3.vr(u2[o2].Target)) === e3) return i3 = n4, false;
              }
            })), i3;
          }, t3.co = function(n3, e3) {
            var i3, r2, o2, a2, s2, c2, f2, l2, h2;
            if (e3 && e3.rels && e3.c_ && e3.c_.length) {
              for (i3 = e3.rels.c_, r2 = {}, o2 = 0; o2 < i3.length; o2++) (s2 = (a2 = i3[o2]).Type) !== u.RelationshipConstants.fo && s2 !== u.RelationshipConstants.$ao || (r2[a2.Id] = t3.vr(a2.Target));
              for (o2 = 0; o2 < e3.c_.length; o2++) if ("sheets" === (c2 = e3.c_[o2]).n_) {
                for (f2 = c2.c_, l2 = 0; l2 < f2.length; l2++) if (r2[(h2 = f2[l2])[u.XFileConstants.Ki]] === n3) return h2.name;
              }
            }
          }, t3.ho = function(n3, e3) {
            var i3, r2, o2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            for (e3 = a.util.vo(e3), r2 = n3.workbook, s2 = -1, f2 = 0, l2 = o2 = a.util.xr(r2, u.XFileConstants.mo).c_; f2 < l2.length; f2++) if (e3 === (h2 = l2[f2]).name) {
              s2 = h2[u.XFileConstants.Ki];
              break;
            }
            if (-1 !== s2) {
              for (v2 = 0, p2 = d2 = a.util.go(r2.rels, u.XFileConstants.Lr); v2 < p2.length; v2++) if (s2 === (g2 = p2[v2]).Id) {
                c2 = t3.vr(g2.Target);
                break;
              }
              c2 && (i3 = n3.sheets[c2]);
            }
            return i3;
          }, t3.po = function(n3, e3) {
            var i3 = t3.ho(n3, e3);
            return i3 && a.util.xr(i3, u.XFileConstants.bo);
          }, t3.yo = function(t4, n3, e3, i3, r2) {
            var o2, a2;
            f(i3) || t4 && ((o2 = t4[n3]) || (o2 = t4[n3] = {}), (a2 = o2[e3]) || (a2 = o2[e3] = {}), a2.v = r2.getTextIndex(i3));
          }, t3.wo = function(t4, n3) {
            return t4 && t4.openMode & r.OpenMode.lazy && !f(n3);
          }, t3.Mo = function(t4) {
            return t4 && t4.openMode & r.OpenMode.incremental;
          }, t3.Co = function(t4) {
            return t4 && t4.fileType === r.OpenSaveFileType.excel;
          }, t3.So = function(t4, n3, e3, i3) {
            var r2, o2 = t4.getRowCount(), u2 = t4.getColumnCount(), s2 = i3 && i3.dataEffectByInflate && i3.dataEffectByInflate[t4.name()];
            n3 > o2 && (r2 = new a.Range(o2, -1, n3 - o2, -1), t4.setRowCount(n3), s2 && Object.keys(s2).forEach((function(t5) {
              s2[t5](r2);
            }))), e3 > u2 && (r2 = new a.Range(-1, u2, -1, e3 - u2), t4.setColumnCount(e3), s2 && Object.keys(s2).forEach((function(t5) {
              s2[t5](r2);
            })));
          }, t3.cme = function(t4, n3, e3, i3, r2, o2) {
            i3 !== l && n3.setSize(e3, i3), r2 && t4.setColumnVisible(e3, false), o2 !== l && t4.setStyle(-1, e3, o2);
          }, t3.To = function(n3, e3, i3, r2) {
            var o2, a2, u2, c2, f2, l2, h2, d2, v2;
            void 0 === i3 && (i3 = 2), a2 = (o2 = e3).from, u2 = o2.to, c2 = o2.pos, f2 = o2.ext, u2 ? t3.PTe(n3, u2, i3, r2) : f2 && (a2 || c2) && (l2 = { x: 0, y: 0 }, a2 ? (t3.PTe(n3, a2, i3, r2), l2 = t3.Gce(n3, a2)) : (l2.x = s.ExcelHelper.emuToPixles(parseInt(c2.x, 10)), l2.y = s.ExcelHelper.emuToPixles(parseInt(c2.y, 10))), l2.x += s.ExcelHelper.emuToPixles(parseInt(f2.cx, 10)), l2.y += s.ExcelHelper.emuToPixles(parseInt(f2.cy, 10)), d2 = (h2 = I(n3, l2.x, l2.y)).rowIndex, v2 = h2.colIndex, t3.So(n3, d2 + i3, v2 + i3, r2));
          }, t3.PTe = function(n3, e3, i3, r2) {
            var o2 = t3.Uce(e3), a2 = o2.row, u2 = o2.col;
            t3.So(n3, a2 + i3, u2 + i3, r2);
          }, t3.Ao = function(n3, e3, i3, r2) {
            e3 && e3.forEach((function(e4) {
              var o2, a2;
              e4 && (o2 = e4.row + (e4.rowCount > 0 ? e4.rowCount : 1), a2 = e4.col + (e4.colCount > 0 ? e4.colCount : 1), i3 && (o2 >= u.XmlConstants.Io || a2 >= u.XmlConstants.xo) || t3.So(n3, o2, a2, r2));
            }));
          }, t3.Uce = function(t4) {
            var n3, e3, i3, r2;
            function o2(t5, n4) {
              var e4 = parseInt(t5.v_ || 0, 10);
              return n4 ? s.ExcelHelper.emuToPixles(e4) : e4;
            }
            return { row: n3 = o2(t4.row), col: e3 = o2(t4.col), rowOff: i3 = o2(t4.rowOff, true), colOff: r2 = o2(t4.colOff, true) };
          }, t3.Gce = function(n3, e3) {
            var i3 = t3.Uce(e3), r2 = a.util.w0(n3, 0, i3.col, false) + i3.colOff, o2 = a.util.w0(n3, 0, i3.row, true) + i3.rowOff;
            return { x: r2, y: o2 };
          }, t3.No = function(t4) {
            return t4 = Math.min(t4, u.XmlConstants.xo - 1), w.nr(t4);
          }, t3.ko = function(t4) {
            return !t4 || f(t4.fileType) || t4.fileType === r.OpenSaveFileType.sjs;
          }, t3.encodeNameFormula = function(t4) {
            if (t4) return t4.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
          }, t3.xAe = function(n3, e3) {
            var i3 = { n_: "definedName", c_: [t3.addXLFNPrefix(t3.encodeNameFormula(e3))] }, r2 = n3.name, o2 = n3.localSheetId, u2 = n3.e, s2 = n3.comment, c2 = n3.isReadOnly, l2 = n3.hidden;
            return f(r2) || (i3.name = a.util.vo(r2)), f(o2) || (i3.localSheetId = o2), f(u2) || (i3.e = u2), f(s2) || (i3.comment = a.util.vo(s2)), f(c2) || (i3.isReadOnly = c2), f(l2) || (i3.hidden = l2), i3;
          }, t3.WYr = function(n3) {
            var e3, i3, r2, o2, a2;
            n3 && (0 !== n3.width && 0 !== n3.height || (e3 = t3.Qr(n3.src)) && (i3 = e3.type, r2 = e3.base64Content, "svg+xml" === i3 && (o2 = atob(r2), (a2 = t3.QYr(o2)) && (n3.width = a2.width, n3.height = a2.height))));
          }, t3.JYr = function(n3) {
            return T(this, void 0, void 0, (function() {
              var e3, i3, r2;
              return x(this, (function(o2) {
                switch (o2.label) {
                  case 0:
                    return o2.trys.push([0, 3, , 4]), [4, fetch(n3)];
                  case 1:
                    return (e3 = o2.sent()).ok ? [4, e3.text()] : [2, null];
                  case 2:
                    return i3 = o2.sent(), [2, t3.QYr(i3)];
                  case 3:
                    return r2 = o2.sent(), [2, null];
                  case 4:
                    return [2];
                }
              }));
            }));
          }, t3.QYr = function(t4) {
            var n3, e3, i3, r2 = new DOMParser(), o2 = r2.parseFromString(t4, "image/svg+xml"), a2 = o2.documentElement, u2 = a2.getAttribute("viewBox");
            return u2 && 4 === (n3 = u2.split(" ").map(Number)).length ? { width: e3 = n3[2], height: i3 = n3[3] } : null;
          }, t3.Kuo = function(t4) {
            return t4.startsWith(u.XFileConstants.ou) || (t4 = u.XFileConstants.ou + t4), t4;
          }, t3;
        })(), n2.Util = C, n2.SJSStylePropsToStyleProps = { wholeSlicerStyle: "wholeTable", headerStyle: "headerRow", wholeTableStyle: "wholeTable", headerRowStyle: "headerRow", footerRowStyle: "totalRow", highlightFirstColumnStyle: "firstColumn", highlightLastColumnStyle: "lastColumn", firstRowStripStyle: "firstRowStripe", secondRowStripStyle: "secondRowStripe", firstColumnStripStyle: "firstColumnStripe", secondColumnStripStyle: "secondColumnStripe", firstHeaderCellStyle: "firstHeaderCell", lastHeaderCellStyle: "lastHeaderCell", firstFooterCellStyle: "firstTotalCell", lastFooterCellStyle: "lastTotalCell", reportFilterLabelsStyle: "pageFieldLabels", reportFilterValuesStyle: "pageFieldValues", firstRowStripeStyle: "firstRowStripe", secondRowStripeStyle: "secondRowStripe", firstColumnStripeStyle: "firstColumnStripe", secondColumnStripeStyle: "secondColumnStripe", subtotalColumn1Style: "firstSubtotalColumn", subtotalColumn2Style: "secondSubtotalColumn", subtotalColumn3Style: "thirdSubtotalColumn", subtotalRow1Style: "firstSubtotalRow", subtotalRow2Style: "secondSubtotalRow", subtotalRow3Style: "thirdSubtotalRow", columnSubheading1Style: "firstColumnSubheading", columnSubheading2Style: "secondColumnSubheading", columnSubheading3Style: "thirdColumnSubheading", rowSubheading1Style: "firstRowSubheading", rowSubheading2Style: "secondRowSubheading", rowSubheading3Style: "thirdRowSubheading", blankRowStyle: "blankRow", grandTotalColumnStyle: "lastColumn", grandTotalRowStyle: "totalRow", firstHeaderCellStyleL: "firstHeaderCell", firstColumnStyle: "firstColumn" }, n2.protectionOptionsMap = { allowSelectLockedCells: "selectLockedCells", allowSelectUnlockedCells: "selectUnlockedCells", allowFilter: "autoFilter", allowSort: "sort", allowInsertColumns: "insertColumns", allowInsertRows: "insertRows", allowDeleteColumns: "deleteColumns", allowDeleteRows: "deleteRows", allowEditObjects: "objects" }, n2.excelSupportProtectionOptions = { objects: true, formatCells: true, formatColumns: true, formatRows: true, insertColumns: true, insertRows: true, insertHyperlinks: true, deleteColumns: true, deleteRows: true, selectLockedCells: true, selectUnlockedCells: true, sort: true, autoFilter: true, pivotTables: true }, S = (function() {
          function t3() {
          }
          return t3.builtInNumberFormat = function() {
            return t3.Md || (t3.Md = { count: 0 }), 0 === t3.Md.count && t3.initBuiltNumberFormat(), t3.Md;
          }, t3.languageIndepedentNumberFormat = function() {
            return t3.Ch || (t3.Ch = { count: 0 }), 0 === t3.Ch.count && t3.initLanguageIndepedentNumberFormat(), t3.Ch;
          }, t3.formatCodeTable = function() {
            return t3.Sh || (t3.Sh = []), t3.Sh;
          }, t3.customNumberFormat = function() {
            return t3.Th || (t3.Th = { count: 0 }), t3.Th;
          }, t3.getCultureInfo = function() {
            var t4 = C.ro(), n3 = t4 && t4.GC && t4.GC.Spread && t4.GC.Spread.Common && C.ro().GC.Spread.Common.CultureManager.getCultureInfo();
            return n3 || C.ao();
          }, t3.initBuiltNumberFormat = function() {
            var n3, e3, i3, r2, o2, a2, u2, s2 = t3.Md;
            if (s2[0] = "General", s2[1] = "0", s2[2] = "0.00", s2[3] = "#,##0", s2[4] = "#,##0.00", s2[9] = "0%", s2[10] = "0.00%", s2[11] = "0.00E+00", s2[12] = "# ?/?", s2[13] = "# ??/??", s2[14] = "m/d/yyyy", s2[15] = "d-mmm-yy", s2[16] = "d-mmm", s2[17] = "mmm-yy", s2[18] = "h:mm AM/PM", s2[19] = "h:mm:ss AM/PM", s2[20] = "h:mm", s2[21] = "h:mm:ss", s2[22] = "m/d/yyyy h:mm", s2[37] = "#,##0_);(#,##0)", s2[38] = "#,##0_);[Red](#,##0)", s2[39] = "#,##0.00_);(#,##0.00)", s2[40] = "#,##0.00_);[Red](#,##0.00)", s2[41] = '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', s2[45] = "mm:ss", s2[46] = "[h]:mm:ss", s2[47] = "mm:ss.0", s2[48] = "##0.0E+0", s2[49] = "@", s2.count = 49, C.oo()) if ("zh-cn" === (n3 = C.oo())) s2[14] = "yyyy/m/d", s2[17] = "mmm-yy", s2[22] = "yyyy/m/d h:mm", s2[27] = 'yyyy"年"m"月"', s2[28] = 'm"月"d"日"', s2[29] = 'm"月"d"日"', s2[30] = "m-d-yy", s2[31] = 'yyyy"年"m"月"d"日"', s2[32] = 'h"时"mm"分"', s2[33] = 'h"时"mm"分"ss"秒"', s2[34] = '上午/下午h"时"mm"分"', s2[35] = '上午/下午h"时"mm"分"ss"秒"', s2[36] = 'yyyy"年"m"月"', s2[39] = "#,##0.00;-#,##0.00", s2[40] = "#,##0.00;[Red]-#,##0.00", s2[41] = '* #,##0_ ;_ * -#,##0_ ;_ * "-"_ ;_ @_', s2[50] = 'yyyy"年"m"月"', s2[51] = 'm"月"d"日"', s2[52] = 'yyyy"年"m"月"', s2[53] = 'm"月"d"日"', s2[54] = 'm"月"d"日"', s2[55] = '上午/下午h"时"mm"分"', s2[56] = '上午/下午h"时"mm"分"ss"秒"', s2[57] = 'yyyy"年"m"月"', s2[58] = 'm"月"d"日"', s2.count = 58;
            else if ("ja-jp" === n3) s2[14] = "yyyy/m/d", s2[15] = "dd-mmm-yy", s2[16] = "dd-mmm", s2[17] = "mmm-yy", s2[22] = "yyyy/mm/dd h:mm", s2[27] = "[$-411]ge.m.d", s2[28] = '[$-411]ggge"年"m"月"d"', s2[29] = '[$-411]ggge"年"m"月"d"', s2[30] = "m/d/yy", s2[31] = 'yyyy"年"m"月"d"日"', s2[32] = 'h"時"mm"分"', s2[33] = 'h"時"mm"分"ss"秒"', s2[34] = 'yyyy"年"m"月"', s2[35] = 'm"月"d"日"', s2[36] = "[$-411]ge.m.d", s2[38] = "#,##0;[Red]-#,##0", s2[39] = "#,##0.00;-#,##0.00", s2[40] = "#,##0.00;[Red]-#,##0.00", s2[41] = '_ * #,##0_ ;_ * -#,##0_ ;_ * "-"_ ;_ @_ ', s2[50] = "[$-411]ge.m.d", s2[51] = '[$-411]ggge"年"m"月"d"日"', s2[52] = 'yyyy"年"m"月"', s2[53] = 'm"月"d"日"', s2[54] = '[$-411]ggge"年"m"月"d"日"', s2[55] = 'yyyy"年"m"月"', s2[56] = 'm"月"d"日"', s2[57] = "[$-411]ge.m.d", s2[58] = '[$-411]ggge"年"m"月"d"日"', s2.count = 58;
            else {
              if (i3 = (e3 = t3.getCultureInfo()) && e3.LocalNumberFormat, f(i3) || Array.isArray(i3) || "object" != typeof i3) return;
              for (r2 in i3) isNaN(Number(r2)) || (o2 = i3[r2], C.uo(o2) && (s2[r2] = i3[r2]));
              for (r2 in a2 = 0, s2) isNaN(Number(r2)) || (u2 = Number(r2)) > a2 && (a2 = u2);
              s2.count = a2;
            }
          }, t3.initLanguageIndepedentNumberFormat = function() {
            var n3 = t3.Ch;
            n3[27] = "m/d/yyyy", n3[28] = "m/d/yyyy", n3[29] = "m/d/yyyy", n3[30] = "m/d/yyyy", n3[31] = "m/d/yyyy", n3[32] = "h:mm:ss", n3[33] = "h:mm:ss", n3[34] = "m/d/yyyy", n3[35] = "m/d/yyyy", n3[36] = "m/d/yyyy", n3[50] = "m/d/yyyy", n3[51] = "m/d/yyyy", n3[52] = "m/d/yyyy", n3[53] = "m/d/yyyy", n3[54] = "m/d/yyyy", n3[55] = "m/d/yyyy", n3[56] = "m/d/yyyy", n3[57] = "m/d/yyyy", n3[58] = "m/d/yyyy";
          }, t3.getFormatCode = function(n3) {
            var e3, i3, r2, o2 = t3.builtInNumberFormat(), a2 = t3.customNumberFormat(), u2 = t3.languageIndepedentNumberFormat(), s2 = n3.numberFormatIndex;
            return n3.numberFormat ? (i3 = (e3 = n3.numberFormat).numberFormatId, r2 = e3.numberFormatCode, o2[i3] && o2[i3] !== r2 ? (o2[i3] = r2, r2) : (a2[r2] || (a2[r2] = i3, a2.count++), r2)) : o2[s2] ? o2[s2] : u2[s2] ? u2[s2] : "General";
          }, t3.getFormatId = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = t3.Ah();
            if (c2[n3]) return c2[n3];
            if (i3 = t3.builtInNumberFormat()) {
              for (r2 in i3) if (i3[r2] === n3) return e3 = { isBuiltIn: true, id: parseInt(r2, 10) }, c2[n3] = e3, e3;
            }
            if ((o2 = t3.customNumberFormat()) && o2[n3]) return e3 = { isBuiltIn: false, id: o2[n3] }, c2[n3] = e3, e3;
            if (a2 = 0, o2.count > 0) {
              for (s2 in u2 = 0, o2) o2[s2] > u2 && (u2 = o2[s2]);
              a2 = u2;
            }
            return t3.Ih++, a2 = Math.max(t3.Ih, a2) + 1, o2[n3] = a2, e3 = { isBuiltIn: false, id: a2 };
          }, t3.Ah = function() {
            return t3.xh || (t3.xh = {}), t3.xh;
          }, t3.resetBuiltInNumberFormat = function() {
            t3.Md = { count: 0 }, t3.Ch = { count: 0 };
          }, t3.Sh = null, t3.xh = null, t3.Md = { count: 0 }, t3.Ch = { count: 0 }, t3.Th = { count: 0 }, t3.Ih = 170, t3;
        })(), n2.ExtendedNumberFormatHelper = S;
      }, "./dist/core/excel-io-util/excel-helper.js": function(t2, n2) {
        "use strict";
        function e2(t3, n3) {
          var e3 = Math.pow(10, n3);
          return Math.round(t3 * e3) / e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ExcelHelper = void 0;
        var i2 = (function() {
          function t3() {
          }
          return t3.pointToPixel = function(t4) {
            return e2(96 * t4 / 72, 2);
          }, t3.pixelToPoint = function(t4) {
            return 72 * t4 / 96;
          }, t3.emuToPixles = function(t4, n3) {
            return e2(96 * t4 / 914400, n3 || 2);
          }, t3.pixelToEMU = function(t4) {
            return Math.round(914400 * t4 / 96);
          }, t3.getActualColumnWidth = function(t4, n3, e3) {
            var i3, r = 0;
            for (i3 = n3; i3 < e3; i3++) t4.getColumnVisible(i3) && (r += t4.Do(i3, 3));
            return r;
          }, t3.getActualRowHeight = function(t4, n3, e3) {
            var i3, r = 0;
            for (i3 = n3; i3 < e3; i3++) t4.getRowVisible(i3) && (r += t4._o(i3, 3));
            return r;
          }, t3.getImageContent = function(t4, n3) {
            var e3, i3 = "png", r = t4.lastIndexOf(".");
            return -1 !== r && (i3 = t4.substr(r + 1)), "svg" === i3 && (i3 = "svg+xml"), (e3 = n3(t4, true)) ? "data:image/" + i3 + ";base64," + e3 : null;
          }, t3;
        })();
        n2.ExcelHelper = i2;
      }, "./dist/core/excel-io-util/excel-style.js": function(t2, n2) {
        "use strict";
        var e2;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ExcelBorderStyle = void 0, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.thin = 1] = "thin", t3[t3.medium = 2] = "medium", t3[t3.dashed = 3] = "dashed", t3[t3.dotted = 4] = "dotted", t3[t3.thick = 5] = "thick", t3[t3.double = 6] = "double", t3[t3.hair = 7] = "hair", t3[t3.mediumDashed = 8] = "mediumDashed", t3[t3.dashDot = 9] = "dashDot", t3[t3.mediumDashDot = 10] = "mediumDashDot", t3[t3.dashDotDot = 11] = "dashDotDot", t3[t3.mediumDashDotDot = 12] = "mediumDashDotDot", t3[t3.slantDashDot = 13] = "slantDashDot";
        })(e2 = n2.ExcelBorderStyle || (n2.ExcelBorderStyle = {}));
      }, "./dist/core/excel-io-util/excel-types.js": function(t2, n2) {
        "use strict";
        var e2;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.XFileLosslessExtensionOrPartsMapping = n2.WorkSheetNodeOrder = n2.WorkbookNodeOrder = n2.RelationshipConstants = n2.XFileConstants = n2.XmlConstants = void 0, n2.XmlConstants = { xo: 16384, Io: 1048576 }, n2.XFileConstants = { Eo: "_rels", jo: "/xl", Oo: "[Content_Types].xml", Rr: "rId", Ki: "r:id", Dr: "Relationships", Lr: "Relationship", Qi: "legacyDrawing", Ro: "legacyDrawingHF", Bo: "AlternateContent", Lo: "Choice", Fo: "controls", Po: "control", $r: "shape", Go: "bin", Uo: "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings", Ho: "rels", zo: "application/vnd.openxmlformats-package.relationships+xml", Vo: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml", Yo: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml", Zo: "application/vnd.openxmlformats-officedocument.theme+xml", Wo: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", vKr: "application/vnd.ms-excel.sheet.macroEnabled.main+xml", pKr: "application/vnd.ms-excel.template.macroEnabled.main+xml", Qo: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml", Ko: "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml", IKr: "application/vnd.openxmlformats-officedocument.customXmlProperties+xml", kKr: "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml", Jo: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml", NKr: "application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml", Xo: "application/vnd.openxmlformats-officedocument.drawing+xml", qo: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml", $o: "application/vnd.ms-office.chartex+xml", ta: "application/vnd.ms-office.chartstyle+xml", na: "application/vnd.ms-office.chartcolorstyle+xml", ia: "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml", ra: "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml", oa: "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml", aa: "application/vnd.ms-office.drawingml.diagramDrawing+xml", ua: "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml", sa: "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml", ca: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml", fa: "application/vnd.ms-excel.threadedcomments+xml", la: "application/vnd.ms-excel.person+xml", ha: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml", da: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml", va: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml", ma: "application/vnd.ms-excel.slicer+xml", ga: "application/vnd.ms-excel.slicerCache+xml", pa: "application/vnd.ms-excel.timeline+xml", ba: "application/vnd.ms-excel.timelineCache+xml", ya: "application/vnd.ms-office.vbaProject", wa: "application/vnd.openxmlformats-officedocument.vmlDrawing", Ma: "application/vnd.ms-excel.controlproperties+xml", SrV: "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml", v3e: "application/vnd.ms-excel.rdrichvaluetypes+xml", g3e: "application/vnd.ms-excel.rdrichvaluestructure+xml", p3e: "application/vnd.ms-excel.rdrichvalue+xml", b3e: "application/vnd.ms-excel.rdrichvaluewebimage+xml", gee: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml", Cr: "xml", Yr: "vml", Ca: "application/xml", Sa: "jpg", Ta: "image/jpg", Aa: "tiff", Ia: "image/tiff", xa: "jpeg", Na: "image/jpeg", ka: "svg", Da: "image/svg+xml", _a: "png", Ea: "image/png", ja: "bmp", Oa: "image/bmp", Ra: "gif", Ba: "image/gif", La: "emf", Fa: "image/x-emf", Pa: "wmf", Ga: "image/x-wmf", Ua: "drawings", zr: "vmlDrawing", Ha: "/xl/charts", za: "/xl/drawings", Va: "/xl/persons", Ya: "/xl/media", Za: "/xl/threadedComments", Wa: "/xl/worksheets", Qa: "/xl/tables", Ka: "/xl/slicers", Ja: "/xl/slicerCaches", Xa: "/xl/timelines", qa: "/xl/timelineCaches", $a: "/xl/ctrlProps", tu: "externalLink", nu: "/xl/externalLinks", eu: "/xl/pivotCache", iu: "/xl/pivotTables", w3e: "/xl/richData", gKr: "xl/vbaProject.bin", duo: "vbaProjectBin", y3e: "rdRichValueTypes.xml", M3e: "rdRichValueWebImage.xml", C3e: "rdrichvalue.xml", S3e: "rdrichvaluestructure.xml", mo: "sheets", ru: "sheet", ou: "comments", au: "chart", uu: "chartEx", su: "style", cu: "person", fu: "colors", Wi: "drawing", lu: "ctrlProp", hu: "threadedComment", Jr: "image", du: "table", vu: "slicer", mu: "slicerCache", gu: "timeline", pu: "timelineCache", bu: "pivotCacheDefinition", yu: "pivotCache", wu: "pivotCacheRecords", Mu: "pivotTable", Cu: "External", Su: "sheetPr", Tu: "dimension", Au: "extLst", Iu: "mergeCells", xu: "mergeCell", Nu: "hyperlinks", ku: "hyperlink", Du: "sheetViews", _u: "sheetFormatPr", Eu: "cols", bo: "sheetData", fQt: "sortState", ju: "conditionalFormatting", Ou: "dataValidations", Ru: "dataValidation", Bu: "tableParts", mKr: "vbaProject.bin", Lu: "/xl/sharedStrings.xml", Fu: "/xl/theme/theme1.xml", Pu: "/xl/worksheets", Gu: "/xl/workbook.xml", Uu: "/docProps/core.xml", Hu: "/docProps/app.xml", zu: "/docProps/custom.xml", Vu: "/xl/styles.xml", Yu: "/xl/theme/theme1.xml", Zu: "metadata.xml", T3e: "calcChain.xml", Wu: "/xl/_rels/workbook.xml.rels", Qu: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", Ku: "http://schemas.openxmlformats.org/markup-compatibility/2006", Ju: "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", Xu: "http://schemas.openxmlformats.org/drawingml/2006/main", _ac: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac", $u: "x14ac", ts: "x14ac xr xr2 xr3", ns: "xr", _xr: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision", as: "http://schemas.microsoft.com/office/spreadsheetml/2015/revision2", us: "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3", ss: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", fs: "http://schemas.openxmlformats.org/package/2006/content-types", _r: "http://schemas.openxmlformats.org/package/2006/relationships", ls: "http://schemas.openxmlformats.org/drawingml/2006/main", hs: "http://schemas.microsoft.com/office/drawing/2010/main", vs: "http://schemas.microsoft.com/office/drawing/2016/SVG/main", ms: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main", ps: "http://schemas.microsoft.com/office/excel/2006/main", bs: "http://schemas.openxmlformats.org/markup-compatibility/2006", ys: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main", ws: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", Ms: "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main", Cs: "http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures", Ss: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml", Ts: "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray", As: "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata", Is: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments", xs: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments", Ns: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision", jKr: "/customXml/", DKr: "/xl/connections.xml", _Kr: "/xl/xmlMaps.xml", OKr: "/xl/tables/tableSingleCells", ks: "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", Ds: "http://purl.org/dc/elements/1.1/", _s: "http://purl.org/dc/terms/", Es: "http://purl.org/dc/dcmitype/", js: "http://www.w3.org/2001/XMLSchema-instance", Os: "application/vnd.openxmlformats-package.core-properties+xml", Ls: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", Fs: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", Ps: "application/vnd.openxmlformats-officedocument.extended-properties+xml", Gs: "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties", Us: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", Hs: "application/vnd.openxmlformats-officedocument.custom-properties+xml" }, n2.RelationshipConstants = { zs: "rId", _r: "http://schemas.openxmlformats.org/package/2006/relationships", EKr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", RKr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", LKr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections", FKr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps", BKr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells", Vs: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties", Ys: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties", WUr: "http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties", Zs: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties", JUr: "http://purl.oclc.org/ooxml/officeDocument/relationships/customProperties", Ws: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", Qs: "http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument", Ks: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles", Js: "http://purl.oclc.org/ooxml/officeDocument/relationships/styles", fo: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", $ao: "http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet", Xs: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings", qs: "http://purl.oclc.org/ooxml/officeDocument/relationships/sharedStrings", $s: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", tc: "http://purl.oclc.org/ooxml/officeDocument/relationships/theme", ec: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition", nuo: "http://purl.oclc.org/ooxml/officeDocument/relationships/pivotCacheDefinition", ic: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords", euo: "http://purl.oclc.org/ooxml/officeDocument/relationships/pivotCacheRecords", oc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable", uc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink", iuo: "http://purl.oclc.org/ooxml/officeDocument/relationships/externalLink", fc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath", BYr: "http://schemas.microsoft.com/office/2019/04/relationships/externalLinkLongPath", lc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table", ruo: "http://purl.oclc.org/ooxml/officeDocument/relationships/table", hc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments", Vr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing", dc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp", vc: "http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties", Fr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing", gc: "http://purl.oclc.org/ooxml/officeDocument/relationships/drawing", pc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", Xr: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", bc: "http://purl.oclc.org/ooxml/officeDocument/relationships/image", yc: "http://schemas.microsoft.com/office/2007/relationships/slicer", wc: "http://schemas.microsoft.com/office/2007/relationships/slicerCache", Mc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart", Cc: "http://schemas.microsoft.com/office/2014/relationships/chartEx", Sc: "http://purl.oclc.org/ooxml/officeDocument/relationships/chart", Tc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes", Ac: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle", Ic: "http://schemas.microsoft.com/office/2011/relationships/chartStyle", xc: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata", v3e: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueTypes", g3e: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueStructure", A3e: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValue", b3e: "http://schemas.microsoft.com/office/2020/07/relationships/rdRichValueWebImage", SrV: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain", Nc: "http://schemas.microsoft.com/office/2011/relationships/timeline", kc: "http://schemas.microsoft.com/office/2011/relationships/timelineCache", bKr: "http://schemas.microsoft.com/office/2006/relationships/vbaProject" }, n2.WorkbookNodeOrder = ["workbookPr", "bookViews", n2.XFileConstants.mo, "externalReferences", "definedNames", "calcPr", "pivotCaches", "extLst"], n2.WorkSheetNodeOrder = [n2.XFileConstants.Su, n2.XFileConstants.Tu, n2.XFileConstants.Du, n2.XFileConstants._u, n2.XFileConstants.Eu, n2.XFileConstants.bo, "sheetProtection", "autoFilter", n2.XFileConstants.fQt, n2.XFileConstants.Iu, n2.XFileConstants.ju, n2.XFileConstants.Ou, n2.XFileConstants.Nu, "printOptions", "pageMargins", "pageSetup", "headerFooter", "rowBreaks", "colBreaks", "drawing", n2.XFileConstants.Qi, "picture", n2.XFileConstants.Ro, n2.XFileConstants.Po, n2.XFileConstants.Bo, n2.XFileConstants.Bu, n2.XFileConstants.Au], n2.XFileLosslessExtensionOrPartsMapping = ((e2 = {})[n2.XFileConstants.gKr] = n2.XFileConstants.duo, e2);
      }, "./dist/core/excel-io-util/range-parser.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        function l(t3) {
          return -1 === t3.col || -1 === t3.colCount;
        }
        function h(t3) {
          return -1 === t3.row || -1 === t3.rowCount;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.range_parser = void 0, i2 = e2("Common"), r = e2("./dist/core/excel-io-util/excel-types.js"), o = e2("./dist/core/excel-io-util/common.js"), a = e2("./dist/core/util/common.js"), u = r.XmlConstants.Io, s = r.XmlConstants.xo, c = i2.Common.lt.ht, f = (function() {
          function t3() {
          }
          return t3.Dc = function(n3, e3) {
            var i3, r2 = [];
            return c(n3) || (i3 = n3.replace(/('.+')/g, "").split(" ")).forEach((function(n4) {
              var i4 = t3._c(n4, e3);
              i4 && r2.push(i4);
            })), r2;
          }, t3._c = function(t4, n3) {
            var e3, i3, r2, c2, f2, l2, h2, d = (0, a.Ec)(0, 0, 0, 0), v = t4.indexOf("!");
            if (v > -1 && (t4 = t4.substr(v + 1)), 1 === (e3 = (e3 = t4.split("$").join("")).split(":")).length) {
              if (l2 = e3[0], i3 = o.IndexHelper.qi(l2), r2 = o.IndexHelper.$i(l2), -1 === i3 && -1 === r2) return null;
              d.row = i3, d.col = r2, d.rowCount = 1, d.colCount = 1;
            } else 2 === e3.length && (l2 = e3[0], h2 = e3[1], i3 = o.IndexHelper.qi(l2), r2 = o.IndexHelper.$i(l2), c2 = o.IndexHelper.qi(h2), f2 = o.IndexHelper.$i(h2), d.row = i3, d.col = r2, d.rowCount = c2 - i3 + 1, d.colCount = f2 - r2 + 1, n3 || 0 !== i3 || d.rowCount !== u || (d.row = -1, d.rowCount = -1), n3 || 0 !== r2 || d.colCount !== s || (d.col = -1, d.colCount = -1));
            return d;
          }, t3.jc = function(t4, n3) {
            var e3, i3, r2, a2, c2, f2;
            if (t4) return e3 = n3 ? "$" : "", i3 = t4.row, r2 = t4.col, a2 = t4.rowCount, c2 = t4.colCount, f2 = o.IndexHelper.nr(r2), 1 === a2 && 1 === c2 ? e3 + f2 + e3 + (i3 + 1) : -1 === i3 || -1 === a2 ? e3 + f2 + e3 + "1:" + e3 + o.IndexHelper.nr(r2 + c2 - 1) + e3 + u : -1 === r2 || -1 === c2 ? e3 + "A" + e3 + (i3 + 1) + ":" + e3 + o.IndexHelper.nr(s - 1) + e3 + (i3 + a2) : 0 === a2 && 0 === c2 ? e3 + f2 + e3 + (i3 + 1) : e3 + f2 + e3 + (i3 + 1) + ":" + e3 + o.IndexHelper.nr(r2 + c2 - 1) + e3 + (i3 + a2);
          }, t3.Oc = function(n3, e3) {
            var i3, r2, o2, a2;
            if (n3) {
              for (i3 = [], r2 = 0, o2 = n3; r2 < o2.length; r2++) a2 = o2[r2], i3.push(t3.jc(a2, e3));
              return i3.join(" ");
            }
          }, t3.getRangeString = function(t4) {
            var n3, e3, i3, r2, a2, c2, f2, d, v = [];
            for (n3 = 0, e3 = t4; n3 < e3.length; n3++) l(i3 = e3[n3]) && (i3.col = 0, i3.colCount = s), h(i3) && (i3.row = 0, i3.rowCount = u), r2 = i3.row, a2 = i3.row + i3.rowCount - 1, c2 = i3.col, f2 = i3.col + i3.colCount - 1, d = o.IndexHelper.nr(c2) + (r2 + 1), (i3.rowCount > 1 || i3.colCount > 1) && (d += ":" + o.IndexHelper.nr(f2) + (a2 + 1)), v.push(d);
            return v.join(" ");
          }, t3;
        })(), n2.range_parser = f;
      }, "./dist/core/id-system/generate-id.js": function(t2, n2) {
        "use strict";
        var e2, i2;
        function r(t3) {
          var n3, r2, o2 = "";
          for (n3 = 0; n3 < t3; n3++) r2 = ~~(Math.random() * i2), o2 += e2[r2];
          return o2;
        }
        function o(t3, n3) {
          void 0 === n3 && (n3 = 8);
          var e3 = r(n3);
          if (t3) {
            for (; t3[e3]; ) e3 = r(n3);
            t3[e3] = true;
          }
          return e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.generateRandomId = void 0, i2 = (e2 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ").length, n2.generateRandomId = o;
      }, "./dist/core/id-system/id-assignment.js": function(t2, n2) {
        "use strict";
        var e2, i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.IDConflictLoserType = n2.IDCompareType = n2.IDAssignmentType = void 0, (function(t3) {
          t3[t3.randomString = 1] = "randomString", t3[t3.distributedLock = 2] = "distributedLock", t3[t3.incrementalNumber = 3] = "incrementalNumber";
        })(e2 = n2.IDAssignmentType || (n2.IDAssignmentType = {})), (function(t3) {
          t3[t3.firstWriteWin = 1] = "firstWriteWin", t3[t3.lastWriteWin = 2] = "lastWriteWin", t3[t3.skip = 3] = "skip";
        })(i2 = n2.IDCompareType || (n2.IDCompareType = {})), (function(t3) {
          t3[t3.rename = 1] = "rename", t3[t3.alarm = 2] = "alarm", t3[t3.reload = 3] = "reload";
        })(r = n2.IDConflictLoserType || (n2.IDConflictLoserType = {}));
      }, "./dist/core/id-system/id.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/core/id-system/generate-id.js"), n2), r(e2("./dist/core/id-system/register-id.js"), n2);
      }, "./dist/core/id-system/register-id.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a = this && this.nJr || function() {
          return a = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, a.apply(this, arguments);
        };
        function u(t3, e3) {
          e3 = a(a({}, o), e3), t3.prototype.assignId = function(t4) {
            t4 ? (this[n2.ID_SYMBOL] = t4, e3.assignType = r.IDAssignmentType.randomString) : this[n2.ID_SYMBOL] = (0, i2.generateRandomId)(), this.XDr = e3;
          }, t3.prototype.jKe = function() {
            return this[n2.ID_SYMBOL];
          }, t3.prototype.UKn = function(t4, e4) {
            var i3, r2;
            void 0 === e4 && (e4 = false), t4 && (r2 = this.jKe(), this[n2.ID_SYMBOL] = t4, !e4 && (null === (i3 = this.eJr) || void 0 === i3 || i3.call(this, r2, t4)));
          };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.qDr = n2.ID_SYMBOL = void 0, i2 = e2("./dist/core/id-system/generate-id.js"), r = e2("./dist/core/id-system/id-assignment.js"), n2.ID_SYMBOL = "__ID__", o = { assignType: r.IDAssignmentType.randomString, compareType: r.IDCompareType.lastWriteWin, conflictLoserType: r.IDConflictLoserType.rename }, n2.qDr = u;
      }, "./dist/core/lc/common.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U;
        function H() {
          return U;
        }
        function V(t3, n3) {
          var e3, i3, r2, o2, a2 = "", u2 = 0;
          for (e3 = 0; e3 < t3.length; e3++) u2 = Math.max(u2, t3[e3].length);
          for (e3 = 0; e3 < u2; e3++) {
            for (n3 && (i3 = ""), o2 = 0; o2 < t3.length; o2++) n3 ? e3 >= t3[o2].length ? i3 += "00" : i3 += t3[o2].charAt(e3) + t3[o2].charAt(e3 + 1) : e3 < t3[o2].length && (a2 += t3[o2].charAt(e3));
            n3 && (r2 = parseInt(i3, 16), a2 += String.fromCharCode(r2), e3++);
          }
          return a2;
        }
        function z(t3, n3, e3) {
          var i3, r2 = V(["Lcnee", "iesKy"]), o2 = H()[r2], a2 = "BJIH";
          return v(o2, { pK: "l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w==", aC: "B1" }, (function(r3) {
            (i3 = Y(r3, a2)).hl = !!o2, i3.m = o2 ? i3.m : -1, n3.call(t3, i3), Q(i3, t3, o2, e3);
          }), (function() {
            (i3 = Y())[I] = true, i3.hl = !!o2, i3.m = o2 ? i3.m : -1, n3.call(t3, i3), Q(i3, t3, o2, e3);
          })), i3;
        }
        function Y(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = { isVd: function(t4) {
            var n4 = this;
            return t4 = 1 === H().Workbook.lm || t4, n4.s && !n4.e && (!n4.adr || !!n4.adr.dsr == !!t4);
          } }, h2 = et(), d2 = function() {
            var l3, d3, v2, p2, g2, m2, b2, y2, w2, M2;
            if (!t3) return c2 = true, false;
            if (!(l3 = t3[_]) || !l3.length) return false;
            for (p2 = V(["Sra Sv", "pedJ ."]), g2 = V(["SraJ-einrAdn", "pedSDsge-do"]), m2 = 0, b2 = l3.length; m2 < b2; m2++) if (d3 = l3[m2]) {
              if (v2 = d3[E] === n3) {
                e3 = d3[O];
                break;
              }
              d3[O] && (d3[O].indexOf(p2) >= 0 ? (y2 = parseInt(d3[O].replace(p2, ""), 10), s2 = isNaN(y2) ? void 0 : y2) : d3[O].indexOf(g2) >= 0 && (u2 = true));
            }
            if (!v2) return false;
            if (t3[B] && (o2 = t3[B]), t3[F]) {
              if (w2 = /* @__PURE__ */ new Date(), M2 = Z(t3[F]), r2 = Math.ceil((M2 - w2) / 864e5), i3 = r2 <= 0) return f2 = M2, false;
            } else r2 = void 0;
            return !!(h2 || !t3[R] && !t3[L] || tt(t3[R], t3[L]) || nt(t3[R], t3[L])) || (a2 = (t3[R] ? t3[R] + " " : "") + (t3[L] ? t3[L] : ""), false);
          };
          return l2[C] = h2, l2.s = d2(), l2[w] = t3 ? t3[D] ? -1 : 1 : 0, l2[M] = e3, l2[T] = i3, l2[A] = a2, l2[k] = u2, l2[N] = s2, l2[I] = c2, l2[j] = f2, i3 || (l2[S] = r2), l2[x] = o2, l2;
        }
        function Z(t3) {
          return new Date(W(t3.substr(0, 4)) || 0, W(t3.substr(4, 2)) - 1 || 0, W(t3.substr(6, 2)) || 0);
        }
        function W(t3) {
          return parseInt(t3, 10);
        }
        function Q(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
          if (st(t3)) {
            if (t3 && t3.adr && true !== t3.adr.dsr && (r2 = t3.adr.flg || [], o2 = {}, a2 = t3.m, u2 = t3.d, H().Workbook.et(n3, "adlc", { flg: r2, checkRs: o2, m: a2, d: u2, fn: K }), void 0 !== o2.nwm)) {
              if (t3.wm = o2.wm, t3.nwm = o2.nwm, o2.dis) {
                for (s2 = t3.disL || [], c2 = 0, f2 = o2.dis; c2 < f2.length; c2++) l2 = f2[c2], s2.push(V(["", l2], true));
                t3.disL = s2;
              }
              if (o2.state) for (h2 = 0, d2 = o2.state; h2 < d2.length; h2++) t3[(v2 = d2[h2])[0]] = v2[1];
            }
            e3 || (o2 = {}, a2 = t3.m, u2 = t3.d, p2 = 1, 1 !== H().Workbook.lm && H().Workbook.et(n3, "adlc", { flg: [], checkRs: o2, m: a2, d: u2, nl: p2 }), void 0 !== o2.nwm && (t3.wm = o2.wm, t3.nwm = o2.nwm)), i3 || n3.repaint && !n3.xT && n3.repaint();
          } else ft(n3, t3);
        }
        function K(t3, n3, e3) {
          var i3 = ["rs"];
          t3 && n3.forEach((function(n4) {
            var r2 = V(["", n4], true);
            t3[r2] && t3[r2][e3 + i3] && t3[r2][e3 + i3]();
          }));
        }
        function J(t3, n3) {
          var e3, i3, r2, o2, a2;
          if (!t3 || 0 !== t3.indexOf("//")) return false;
          if ((e3 = t3.slice(2).split("/")).length < 1) return false;
          for (i3 = e3[0], r2 = 0, o2 = n3.length; r2 < o2; r2++) if ((a2 = n3[r2]) === i3) return true;
          return false;
        }
        function X(t3, n3) {
          var e3, i3, r2, o2, a2;
          for (e3 = 0, i3 = n3.length; e3 < i3; e3++) {
            if (o2 = false, (r2 = n3[e3]) && 0 === r2.lastIndexOf("*.", 0) && (o2 = true), (r2 = o2 ? r2.slice(2) : r2) === t3) return true;
            if (o2 && (a2 = t3.indexOf("." + r2)) > 0 && a2 === t3.length - r2.length - 1) return true;
          }
          return false;
        }
        function q(t3, n3) {
          var e3, i3, r2, o2;
          if (0 === t3.indexOf("[") && t3.lastIndexOf("]") === t3.length - 1 && (t3 = t3.substring(1, t3.length - 1)), t3.indexOf("%") > -1 && (t3 = t3.split("%")[0]), a2(t3)) for (e3 = u.parse(t3), i3 = 0; i3 < n3.length; i3++) {
            if (a2(r2 = n3[i3]) && c2(r2, t3)) return true;
            if ((o2 = s2(r2)) && f2(e3, o2)) return true;
          }
          return false;
          function a2(t4) {
            return u.IPv4.isValidFourPartDecimal(t4) || u.IPv6.isValid(t4);
          }
          function s2(t4) {
            var n4, e4;
            if (-1 === t4.indexOf("/")) return false;
            ((n4 = t4.split("/"))[1].indexOf(":") > -1 || n4[1].indexOf(".") > -1) && (e4 = u.parse(n4[1]).prefixLengthFromSubnetMask(), t4 = [n4[0], e4].join("/"));
            try {
              return u.parseCIDR(t4);
            } catch (t5) {
              return false;
            }
          }
          function c2(t4, n4) {
            var e4 = u.parse(t4).toString(), i4 = u.parse(n4).toString();
            return e4 === i4;
          }
          function f2(t4, n4) {
            try {
              return t4.match(n4);
            } catch (t5) {
              return false;
            }
          }
        }
        function $(t3, n3) {
          var e3, i3, r2, o2;
          if (t3 && 4 === t3.split(".").length) {
            for (e3 = 0, i3 = n3.length; e3 < i3; e3++) if ((r2 = n3[e3]) && (o2 = r2.length - 2) > 0 && (r2 === t3 || ".*" === r2.substr(o2) && t3.substr(0, o2) === r2.substr(0, o2) && y.test(t3))) return true;
          }
          return false;
        }
        function tt(t3, n3) {
          var e3, i3, r2, o2;
          return !!at() && (e3 = p(P), i3 = p("1agFGc#UHbw5"), !!(r2 = b[e3] && b[e3][i3]) && (r2 = r2.toLowerCase(), o2 = t3.split(","), !(!t3 || !J(r2, o2))));
        }
        function nt(t3, n3) {
          var e3, i3 = p(P), r2 = p("Zdg3Ga#UHbw5"), o2 = b[i3] && b[i3][r2];
          return !o2 || (o2 = o2.toLowerCase(), e3 = t3.split(","), !(!t3 || !X(o2, e3)) || (!(!t3 || !$(o2, e3)) || !(!t3 || !q(o2, e3))));
        }
        function et() {
          var t3 = p(P);
          return it(b[t3]);
        }
        function it(t3) {
          var n3 = p("VdgJHc#wJb59"), e3 = p("Zdg3Ga#UHbw5");
          return t3 && (rt(t3[n3]) || ot(t3[n3]) || ut(t3[e3]));
        }
        function rt(t3) {
          var n3 = p("MlSZto#Z");
          return t3 && t3 === n3;
        }
        function ot(t3) {
          var n3 = p("yXbog&w");
          return t3 && t3 === n3;
        }
        function at() {
          var t3 = p(P), n3 = p("VdgJHc#wJb59"), e3 = p("Udg36Y#oUddV"), i3 = b[t3];
          return i3 && i3[n3] === e3;
        }
        function ut(t3) {
          var n3 = p("4LJITMx8UMcA"), e3 = p("Zo9Wv2#M"), i3 = p("JYw3Gb4NOb6x");
          return t3 && (t3 === n3 || t3 === e3 || t3 === i3);
        }
        function st(t3) {
          return t3 && (t3.isVd(false) || t3.b && !t3.hl);
        }
        function ct(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2;
          U = n3, i3 = n3.Workbook.prototype, r2 = i3.Hc, i3.Hc = function() {
            var t4 = this;
            if (z(t4, (function(n4) {
              t4.ls = n4, e3 = n4, t4.ul = function() {
                z(t4, (function(n5) {
                  t4.ls = n5, e3 = n5;
                }));
              };
            })), !e3 || st(e3)) return r2.apply(t4, arguments);
          }, i3.nslc = function() {
            this.xU = true;
          }, n3.PivotTableManager && (o2 = n3.PivotTableManager.prototype, a2 = o2._Qt, o2._Qt = function() {
            a2.apply(this, arguments), e3 || this.parent || z(this, (function(t4) {
              e3 = t4;
            }));
          }), u2 = n3.Worksheet.prototype, s2 = u2.Hc, u2.Hc = function() {
            if (e3 || this.parent || z(this, (function(t4) {
              e3 = t4;
            })), !e3 || st(e3)) return s2.apply(this, arguments);
          }, c2 = n3.g7.prototype, f2 = c2.jy, c2.jy = function(n4, i4) {
            f2.apply(this, arguments), e3 && (-1 === e3.m || !e3.hl && e3.b || e3.m && e3.nwm && (1 === e3.m || 1 === e3.m && void 0 === e3.d)) && t3(this.Mf, n4, i4, e3);
          }, l2 = c2.cet, c2.cet = function(n4, i4) {
            l2.apply(this, arguments), e3 && (-1 === e3.m || !e3.hl && e3.b) && t3(this.Mf, n4, i4, e3);
          };
        }
        function ft(t3, n3) {
          var e3, i3;
          function r2() {
            i3.width = (0, o.GC$)(e3).width(), i3.height = (0, o.GC$)(e3).height(), gt(i3.getContext("2d"), i3.width, i3.height, n3);
          }
          t3.yoe || (t3.yoe = true, e3 = t3.Ti, t3.sheets = [], t3.mp = [], t3.dse = [], t3.L0(), e3 && (i3 = document.createElement("canvas"), e3.appendChild(i3), r2(), (0, o.GC$)(window).bind("resize", (function() {
            setTimeout(r2, 100);
          }))));
        }
        function lt(t3) {
          var n3;
          return new i2.Common.ResourceManager(r.SR).getResource()[t3];
        }
        function ht(t3, n3, e3, i3) {
          n3.font = e3;
          var r2 = {};
          function o2(t4) {
            return t4 in r2 || (r2[t4] = n3.measureText(t4).width), r2[t4];
          }
          function a2(t4) {
            var n4, e4, i4, r3 = 0;
            for (n4 = 0, e4 = t4; n4 < e4.length; n4++) r3 += o2(i4 = e4[n4]);
            return r3;
          }
          return t3.flatMap((function(t4) {
            var n4, e4, r3, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = [], S2 = f(t4);
            if (S2) {
              for (n4 = "", e4 = 0, r3 = 0, u2 = t4; r3 < u2.length; r3++) e4 + (c2 = o2(s2 = u2[r3])) > i3 && n4.length > 0 ? (C2.push(n4), n4 = s2, e4 = c2) : (n4 += s2, e4 += c2);
              n4 && C2.push(n4);
            } else {
              for (n4 = "", e4 = 0, h2 = 0, d2 = l2 = t4.split(/(\s+)/); h2 < d2.length; h2++) if (e4 + (p2 = a2(v2 = d2[h2])) > i3 && n4.length > 0) if (C2.push(n4), p2 > i3) {
                for (g2 = "", m2 = 0, b2 = 0, y2 = v2; b2 < y2.length; b2++) m2 + (M2 = o2(w2 = y2[b2])) > i3 && g2.length > 0 ? (C2.push(g2), g2 = w2, m2 = M2) : (g2 += w2, m2 += M2);
                n4 = g2, e4 = m2;
              } else n4 = v2, e4 = p2;
              else n4 += v2, e4 += p2;
              n4 && C2.push(n4);
            }
            return C2;
          }));
        }
        function dt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, I2, k2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2 = lt(V([t3, "s"])), z2 = 1 === H().Workbook.lm ? lt(V(["ld", "se"])) : lt(V(["lr", "su"])), Y2 = pt(U2, n3);
          for (z2 = pt(z2, n3), Y2 = (Y2 = Y2.replace("{0}", e3.d)).replace("{1}", z2).replace("{1}", z2), e3[N] && (a2 = parseInt(null === (o2 = H()[V(["poutno", "rdcIf"])]) || void 0 === o2 ? void 0 : o2[V(["pouteso", "rdcVrin"])], 10), isNaN(a2) || (Y2 = (Y2 = pt(lt(V([V(["l5", "1"]), "s"])), n3)).replace("{3}", a2 + "")), Y2 = Y2.replace("{2}", e3[N])), Y2 = (Y2 = Y2.replace("{2}", "")).replace("{3}", ""), e3[j] && e3[j].toLocaleDateString && (Y2 = Y2.replace("{4}", e3[j].toLocaleDateString())), Y2 = Y2.replace("{4}", ""), e3[A] && (u2 = e3[A].split(",").join("\n"), Y2 = (s2 = Y2).replace("{5}", u2), r2 && s2.indexOf("{5}") > -1 && (l2 = void 0 === (f2 = r2.top) ? 0 : f2, d2 = r2.height, p2 = void 0 === (v2 = r2.lineHeight) ? c(r2.font) : v2, d2 > 0 && Y2.split("\n").length * p2 + l2 > d2 && ((g2 = (g2 = e3[A].split(",")).reduce((function(t4, n4, e4, i4) {
            return e4 % 2 == 0 && t4.push(i4.slice(e4, e4 + 2).join(", ") + ", "), t4;
          }), []))[g2.length - 1] && (g2[g2.length - 1] = g2[g2.length - 1].slice(0, -2)), u2 = g2.join("\n"), Y2 = s2.replace("{5}", u2)))), Y2 = Y2.replace("{5}", ""), m2 = [], b2 = 0, y2 = 0; y2 < Y2.length; y2++) "\r" !== Y2[y2] && "\n" !== Y2[y2] || (m2.push(Y2.substring(b2, y2)), "\r" === Y2[y2] && y2 < Y2.length - 1 && "\n" === Y2[y2 + 1] && y2++, b2 = y2 + 1);
          if (b2 < Y2.length && m2.push(Y2.substring(b2, Y2.length)), r2 && (w2 = r2.ctx, M2 = r2.width, C2 = r2.font, T2 = void 0 === (S2 = r2.left) ? 0 : S2, M2 > 0 && (w2.save(), m2 = ht(m2, w2, C2, M2 - 2 * T2), w2.restore())), true === i3) return m2;
          for (I2 = [], k2 = [], D2 = [], _2 = 0, O2 = (x2 = e3.wm || []).length; _2 < O2; _2++) R2 = (E2 = x2[_2])[0], L2 = E2[1], F2 = void 0, "" !== (F2 = V(R2 instanceof Array ? R2 : ["", R2], true)) && (0 === L2 ? D2.push(F2) : 1 === L2 && k2.push(F2));
          return (k2.length > 0 || D2.length > 0) && (I2.push(""), B2 = V(h().ls11, true), k2.length > 0 && (P2 = V((P2 = h().ls9) instanceof Array ? P2 : ["", P2], true), I2.push(P2.replace(/\{0\}/, k2.join(B2)))), D2.length > 0 && (G2 = V((G2 = h().ls10) instanceof Array ? G2 : ["", G2], true), I2.push(G2.replace(/\{0\}/, D2.join(B2))))), 1 === e3.m && e3.nwm ? [].concat(I2) : e3.wm && e3.wm.length > 0 ? m2.concat(I2) : m2;
        }
        function vt(t3) {
          return lt(V([t3, "sa"]));
        }
        function pt(t3, n3) {
          var e3, i3, r2, o2 = true, a2 = "";
          if (t3) {
            if ("string" == typeof t3) (t3 = t3.trim()) && (e3 = [t3]);
            else if (Array.isArray(t3)) {
              for (i3 = true, e3 = [], r2 = 0; r2 < t3.length; r2++) a2 = t3[r2].trim(), e3.push(a2), i3 && a2 && (i3 = false);
              i3 && (e3 = null);
            }
          }
          return e3 || (o2 = false, e3 = n3), V(e3, o2);
        }
        function gt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, c2, f2, l2, h2 = "16pt calibri";
          if (i3) {
            if (i3.isVd(false)) return;
            r2 = i3.hl ? i3.adr && i3.adr.dsr ? "l4" : i3[N] ? "l14" : i3[A] ? "l16" : i3[k] ? "l13" : i3[I] ? "l12" : i3.e ? "l5" : "l4" : "l3";
          } else r2 = "l4";
          for (c2 = dt(r2, G, i3, void 0, { zoom: 1, ctx: t3, width: n3, height: e3, font: h2, left: o2 = 20, top: a2 = 30, lineHeight: u2 = 25 }), s(t3, h2), t3.fillStyle = "black", t3.fillRect(0, 0, n3, e3), t3.fillStyle = "white", f2 = 0; f2 < c2.length; f2++) l2 = c2[f2], t3.fillText(l2, o2, a2), a2 += u2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Moe = n2.Toe = n2.eG = n2.Vi = n2.Aoe = n2.decode = void 0, i2 = e2("Common"), r = e2("./dist/core/core.ns.js"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/common.js"), u = e2("./dist/core/lc/ipaddr.js"), s = a.mt.bt, c = a.util.vt, f = a.util.pt, l = new i2.Common.ResourceManager(r.SR), h = l.getResource.bind(l), d = e2("./dist/core/lc/lcValidator.js"), v = d.Aoe, p = d.Ioe, g = "object" == typeof global && global && global.Object === Object && global, m = "object" == typeof self && self && self.Object === Object && self, b = g || m || Function("return this")(), y = /^[0-9.]+$/, w = "m", M = "n", C = "b", S = "d", T = "e", x = "adr", A = "c", I = "h", k = "r", N = "i", j = "p", D = p("XRsZ"), _ = p("HUkJ"), O = p("T&g"), E = p("Q&w"), R = p("GRz1"), L = p("XSzB"), F = p("XRwh"), B = p("WQs5"), P = "JYx3Gb#8Pb5R", G = ["Ivldlcneky", "nai ies e."], n2.decode = V, n2.Aoe = z, n2.Vi = ct, n2.eG = ft, n2.Toe = dt, n2.Moe = vt;
      }, "./dist/core/lc/ipaddr.js": function(t2) {
        "use strict";
        !(function(n2) {
          var e2, i2 = "(0?\\d+|0x[a-f0-9]+)", r = { fourOctet: new RegExp("^".concat(i2, "\\.").concat(i2, "\\.").concat(i2, "\\.").concat(i2, "$"), "i"), threeOctet: new RegExp("^".concat(i2, "\\.").concat(i2, "\\.").concat(i2, "$"), "i"), twoOctet: new RegExp("^".concat(i2, "\\.").concat(i2, "$"), "i"), longValue: new RegExp("^".concat(i2, "$"), "i") }, o = new RegExp("^0[0-7]+$", "i"), a = new RegExp("^0x[a-f0-9]+$", "i"), u = "%[0-9a-z]{1,}", s = "(?:[0-9a-f]+::?)+", c = { zoneIndex: new RegExp(u, "i"), native: new RegExp("^(::)?(".concat(s, ")?([0-9a-f]+)?(::)?(").concat(u, ")?$"), "i"), deprecatedTransitional: new RegExp("^(?:::)(".concat(i2, "\\.").concat(i2, "\\.").concat(i2, "\\.").concat(i2, "(").concat(u, ")?)$"), "i"), transitional: new RegExp("^((?:".concat(s, ")|(?:::)(?:").concat(s, ")?)").concat(i2, "\\.").concat(i2, "\\.").concat(i2, "\\.").concat(i2, "(").concat(u, ")?$"), "i") };
          function f(t3, n3) {
            var e3, i3, r2, o2, a2;
            if (t3.indexOf("::") !== t3.lastIndexOf("::")) return null;
            for (e3 = 0, i3 = -1, (r2 = (t3.match(c.zoneIndex) || [])[0]) && (r2 = r2.substring(1), t3 = t3.replace(/%.+$/, "")); (i3 = t3.indexOf(":", i3 + 1)) >= 0; ) e3++;
            if ("::" === t3.substr(0, 2) && e3--, "::" === t3.substr(-2, 2) && e3--, e3 > n3) return null;
            for (a2 = n3 - e3, o2 = ":"; a2--; ) o2 += "0:";
            return ":" === (t3 = t3.replace("::", o2))[0] && (t3 = t3.slice(1)), ":" === t3[t3.length - 1] && (t3 = t3.slice(0, -1)), { parts: n3 = (function() {
              var n4, e4 = t3.split(":"), i4 = [];
              for (n4 = 0; n4 < e4.length; n4++) i4.push(parseInt(e4[n4], 16));
              return i4;
            })(), zoneId: r2 };
          }
          function l(t3, n3, e3, i3) {
            var r2, o2;
            if (t3.length !== n3.length) throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
            for (r2 = 0; i3 > 0; ) {
              if ((o2 = e3 - i3) < 0 && (o2 = 0), t3[r2] >> o2 !== n3[r2] >> o2) return false;
              i3 -= e3, r2 += 1;
            }
            return true;
          }
          function h(t3) {
            if (a.test(t3)) return parseInt(t3, 16);
            if ("0" === t3[0] && !isNaN(parseInt(t3[1], 10))) {
              if (o.test(t3)) return parseInt(t3, 8);
              throw new Error("ipaddr: cannot parse ".concat(t3, " as octal"));
            }
            return parseInt(t3, 10);
          }
          function d(t3, n3) {
            for (; t3.length < n3; ) t3 = "0".concat(t3);
            return t3;
          }
          (e2 = {}).IPv4 = (function() {
            function t3(t4) {
              if (4 !== t4.length) throw new Error("ipaddr: ipv4 octet count should be 4");
              var n3, e3;
              for (n3 = 0; n3 < t4.length; n3++) if (!(0 <= (e3 = t4[n3]) && e3 <= 255)) throw new Error("ipaddr: ipv4 octet should fit in 8 bits");
              this.octets = t4;
            }
            return t3.prototype.SpecialRanges = { unspecified: [[new t3([0, 0, 0, 0]), 8]], broadcast: [[new t3([255, 255, 255, 255]), 32]], multicast: [[new t3([224, 0, 0, 0]), 4]], linkLocal: [[new t3([169, 254, 0, 0]), 16]], loopback: [[new t3([127, 0, 0, 0]), 8]], carrierGradeNat: [[new t3([100, 64, 0, 0]), 10]], private: [[new t3([10, 0, 0, 0]), 8], [new t3([172, 16, 0, 0]), 12], [new t3([192, 168, 0, 0]), 16]], reserved: [[new t3([192, 0, 0, 0]), 24], [new t3([192, 0, 2, 0]), 24], [new t3([192, 88, 99, 0]), 24], [new t3([198, 51, 100, 0]), 24], [new t3([203, 0, 113, 0]), 24], [new t3([240, 0, 0, 0]), 4]] }, t3.prototype.kind = function() {
              return "ipv4";
            }, t3.prototype.match = function(t4, n3) {
              var e3;
              if (void 0 === n3 && (t4 = (e3 = t4)[0], n3 = e3[1]), "ipv4" !== t4.kind()) throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");
              return l(this.octets, t4.octets, 8, n3);
            }, t3.prototype.prefixLengthFromSubnetMask = function() {
              var t4, n3, e3, i3 = 0, r2 = false, o2 = { 0: 8, 128: 7, 192: 6, 224: 5, 240: 4, 248: 3, 252: 2, 254: 1, 255: 0 };
              for (t4 = 3; t4 >= 0; t4 -= 1) {
                if (!((n3 = this.octets[t4]) in o2)) return null;
                if (e3 = o2[n3], r2 && 0 !== e3) return null;
                8 !== e3 && (r2 = true), i3 += e3;
              }
              return 32 - i3;
            }, t3.prototype.range = function() {
              return e2.subnetMatch(this, this.SpecialRanges);
            }, t3.prototype.toByteArray = function() {
              return this.octets.slice(0);
            }, t3.prototype.toIPv4MappedAddress = function() {
              return e2.IPv6.parse("::ffff:".concat(this.toString()));
            }, t3.prototype.toNormalizedString = function() {
              return this.toString();
            }, t3.prototype.toString = function() {
              return this.octets.join(".");
            }, t3;
          })(), e2.IPv4.broadcastAddressFromCIDR = function(t3) {
            var n3, e3, i3, r2, o2;
            try {
              for (e3 = (n3 = this.parseCIDR(t3))[0].toByteArray(), i3 = this.subnetMaskFromPrefixLength(n3[1]).toByteArray(), r2 = [], o2 = 0; o2 < 4; ) r2.push(parseInt(e3[o2], 10) | 255 ^ parseInt(i3[o2], 10)), o2++;
              return new this(r2);
            } catch (t4) {
              throw new Error("ipaddr: the address does not have IPv4 CIDR format");
            }
          }, e2.IPv4.isIPv4 = function(t3) {
            return null !== this.parser(t3);
          }, e2.IPv4.isValid = function(t3) {
            try {
              return new this(this.parser(t3)), true;
            } catch (t4) {
              return false;
            }
          }, e2.IPv4.isValidFourPartDecimal = function(t3) {
            return !(!e2.IPv4.isValid(t3) || !t3.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
          }, e2.IPv4.networkAddressFromCIDR = function(t3) {
            var n3, e3, i3, r2, o2;
            try {
              for (i3 = (n3 = this.parseCIDR(t3))[0].toByteArray(), o2 = this.subnetMaskFromPrefixLength(n3[1]).toByteArray(), r2 = [], e3 = 0; e3 < 4; ) r2.push(parseInt(i3[e3], 10) & parseInt(o2[e3], 10)), e3++;
              return new this(r2);
            } catch (t4) {
              throw new Error("ipaddr: the address does not have IPv4 CIDR format");
            }
          }, e2.IPv4.parse = function(t3) {
            var n3 = this.parser(t3);
            if (null === n3) throw new Error("ipaddr: string is not formatted like an IPv4 Address");
            return new this(n3);
          }, e2.IPv4.parseCIDR = function(t3) {
            var n3, e3, i3;
            if ((n3 = t3.match(/^(.+)\/(\d+)$/)) && (e3 = parseInt(n3[2])) >= 0 && e3 <= 32) return i3 = [this.parse(n3[1]), e3], Object.defineProperty(i3, "toString", { value: function t4() {
              return this.join("/");
            } }), i3;
            throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
          }, e2.IPv4.parser = function(t3) {
            var n3, e3, i3;
            if (n3 = t3.match(r.fourOctet)) return (function() {
              var t4, i4 = n3.slice(1, 6), r2 = [];
              for (t4 = 0; t4 < i4.length; t4++) e3 = i4[t4], r2.push(h(e3));
              return r2;
            })();
            if (n3 = t3.match(r.longValue)) {
              if ((i3 = h(n3[1])) > 4294967295 || i3 < 0) throw new Error("ipaddr: address outside defined range");
              return (function() {
                var t4, n4 = [];
                for (t4 = 0; t4 <= 24; t4 += 8) n4.push(i3 >> t4 & 255);
                return n4;
              })().reverse();
            }
            return (n3 = t3.match(r.twoOctet)) ? (function() {
              var t4 = n3.slice(1, 4), e4 = [];
              if ((i3 = h(t4[1])) > 16777215 || i3 < 0) throw new Error("ipaddr: address outside defined range");
              return e4.push(h(t4[0])), e4.push(i3 >> 16 & 255), e4.push(i3 >> 8 & 255), e4.push(255 & i3), e4;
            })() : (n3 = t3.match(r.threeOctet)) ? (function() {
              var t4 = n3.slice(1, 5), e4 = [];
              if ((i3 = h(t4[2])) > 65535 || i3 < 0) throw new Error("ipaddr: address outside defined range");
              return e4.push(h(t4[0])), e4.push(h(t4[1])), e4.push(i3 >> 8 & 255), e4.push(255 & i3), e4;
            })() : null;
          }, e2.IPv4.subnetMaskFromPrefixLength = function(t3) {
            var n3, e3, i3;
            if ((t3 = parseInt(t3)) < 0 || t3 > 32) throw new Error("ipaddr: invalid IPv4 prefix length");
            for (n3 = [0, 0, 0, 0], e3 = 0, i3 = Math.floor(t3 / 8); e3 < i3; ) n3[e3] = 255, e3++;
            return i3 < 4 && (n3[i3] = Math.pow(2, t3 % 8) - 1 << 8 - t3 % 8), new this(n3);
          }, e2.IPv6 = (function() {
            function t3(t4, n3) {
              var e3, i3;
              if (16 === t4.length) for (this.parts = [], e3 = 0; e3 <= 14; e3 += 2) this.parts.push(t4[e3] << 8 | t4[e3 + 1]);
              else {
                if (8 !== t4.length) throw new Error("ipaddr: ipv6 part count should be 8 or 16");
                this.parts = t4;
              }
              for (e3 = 0; e3 < this.parts.length; e3++) if (!(0 <= (i3 = this.parts[e3]) && i3 <= 65535)) throw new Error("ipaddr: ipv6 part should fit in 16 bits");
              n3 && (this.zoneId = n3);
            }
            return t3.prototype.SpecialRanges = { unspecified: [new t3([0, 0, 0, 0, 0, 0, 0, 0]), 128], linkLocal: [new t3([65152, 0, 0, 0, 0, 0, 0, 0]), 10], multicast: [new t3([65280, 0, 0, 0, 0, 0, 0, 0]), 8], loopback: [new t3([0, 0, 0, 0, 0, 0, 0, 1]), 128], uniqueLocal: [new t3([64512, 0, 0, 0, 0, 0, 0, 0]), 7], ipv4Mapped: [new t3([0, 0, 0, 0, 0, 65535, 0, 0]), 96], rfc6145: [new t3([0, 0, 0, 0, 65535, 0, 0, 0]), 96], rfc6052: [new t3([100, 65435, 0, 0, 0, 0, 0, 0]), 96], "6to4": [new t3([8194, 0, 0, 0, 0, 0, 0, 0]), 16], teredo: [new t3([8193, 0, 0, 0, 0, 0, 0, 0]), 32], reserved: [[new t3([8193, 3512, 0, 0, 0, 0, 0, 0]), 32]] }, t3.prototype.isIPv4MappedAddress = function() {
              return "ipv4Mapped" === this.range();
            }, t3.prototype.kind = function() {
              return "ipv6";
            }, t3.prototype.match = function(t4, n3) {
              var e3;
              if (void 0 === n3 && (t4 = (e3 = t4)[0], n3 = e3[1]), "ipv6" !== t4.kind()) throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");
              return l(this.parts, t4.parts, 16, n3);
            }, t3.prototype.prefixLengthFromSubnetMask = function() {
              var t4, n3, e3, i3 = 0, r2 = false, o2 = { 0: 16, 32768: 15, 49152: 14, 57344: 13, 61440: 12, 63488: 11, 64512: 10, 65024: 9, 65280: 8, 65408: 7, 65472: 6, 65504: 5, 65520: 4, 65528: 3, 65532: 2, 65534: 1, 65535: 0 };
              for (e3 = 7; e3 >= 0; e3 -= 1) {
                if (!((t4 = this.parts[e3]) in o2)) return null;
                if (n3 = o2[t4], r2 && 0 !== n3) return null;
                16 !== n3 && (r2 = true), i3 += n3;
              }
              return 128 - i3;
            }, t3.prototype.range = function() {
              return e2.subnetMatch(this, this.SpecialRanges);
            }, t3.prototype.toByteArray = function() {
              var t4, n3, e3 = [], i3 = this.parts;
              for (n3 = 0; n3 < i3.length; n3++) t4 = i3[n3], e3.push(t4 >> 8), e3.push(255 & t4);
              return e3;
            }, t3.prototype.toFixedLengthString = function() {
              var t4 = (function() {
                var t5, n4 = [];
                for (t5 = 0; t5 < this.parts.length; t5++) n4.push(d(this.parts[t5].toString(16), 4));
                return n4;
              }).call(this).join(":"), n3 = "";
              return this.zoneId && (n3 = "%".concat(this.zoneId)), t4 + n3;
            }, t3.prototype.toIPv4Address = function() {
              var t4, n3, i3;
              if (!this.isIPv4MappedAddress()) throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
              return n3 = (t4 = this.parts.slice(-2))[0], i3 = t4[1], new e2.IPv4([n3 >> 8, 255 & n3, i3 >> 8, 255 & i3]);
            }, t3.prototype.toNormalizedString = function() {
              var t4 = (function() {
                var t5, n4 = [];
                for (t5 = 0; t5 < this.parts.length; t5++) n4.push(this.parts[t5].toString(16));
                return n4;
              }).call(this).join(":"), n3 = "";
              return this.zoneId && (n3 = "%".concat(this.zoneId)), t4 + n3;
            }, t3.prototype.toRFC5952String = function() {
              for (var t4, n3 = /((^|:)(0(:|$)){2,})/g, e3 = this.toNormalizedString(), i3 = 0, r2 = -1; t4 = n3.exec(e3); ) t4[0].length > r2 && (i3 = t4.index, r2 = t4[0].length);
              return r2 < 0 ? e3 : "".concat(e3.substring(0, i3), "::").concat(e3.substring(i3 + r2));
            }, t3.prototype.toString = function() {
              return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, "::");
            }, t3;
          })(), e2.IPv6.broadcastAddressFromCIDR = function(t3) {
            var n3, e3, i3, r2, o2;
            try {
              for (e3 = (n3 = this.parseCIDR(t3))[0].toByteArray(), i3 = this.subnetMaskFromPrefixLength(n3[1]).toByteArray(), r2 = [], o2 = 0; o2 < 16; ) r2.push(parseInt(e3[o2], 10) | 255 ^ parseInt(i3[o2], 10)), o2++;
              return new this(r2);
            } catch (t4) {
              throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t4, ")"));
            }
          }, e2.IPv6.isIPv6 = function(t3) {
            return null !== this.parser(t3);
          }, e2.IPv6.isValid = function(t3) {
            if ("string" == typeof t3 && -1 === t3.indexOf(":")) return false;
            try {
              var n3 = this.parser(t3);
              return new this(n3.parts, n3.zoneId), true;
            } catch (t4) {
              return false;
            }
          }, e2.IPv6.networkAddressFromCIDR = function(t3) {
            var n3, e3, i3, r2, o2;
            try {
              for (i3 = (n3 = this.parseCIDR(t3))[0].toByteArray(), o2 = this.subnetMaskFromPrefixLength(n3[1]).toByteArray(), r2 = [], e3 = 0; e3 < 16; ) r2.push(parseInt(i3[e3], 10) & parseInt(o2[e3], 10)), e3++;
              return new this(r2);
            } catch (t4) {
              throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t4, ")"));
            }
          }, e2.IPv6.parse = function(t3) {
            var n3 = this.parser(t3);
            if (null === n3.parts) throw new Error("ipaddr: string is not formatted like an IPv6 Address");
            return new this(n3.parts, n3.zoneId);
          }, e2.IPv6.parseCIDR = function(t3) {
            var n3, e3, i3;
            if ((e3 = t3.match(/^(.+)\/(\d+)$/)) && (n3 = parseInt(e3[2])) >= 0 && n3 <= 128) return i3 = [this.parse(e3[1]), n3], Object.defineProperty(i3, "toString", { value: function t4() {
              return this.join("/");
            } }), i3;
            throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
          }, e2.IPv6.parser = function(t3) {
            var n3, e3, i3, r2, o2, a2;
            if (i3 = t3.match(c.deprecatedTransitional)) return this.parser("::ffff:".concat(i3[1]));
            if (c.native.test(t3)) return f(t3, 8);
            if ((i3 = t3.match(c.transitional)) && (a2 = i3[6] || "", (n3 = f(i3[1].slice(0, -1) + a2, 6)).parts)) {
              for (o2 = [parseInt(i3[2]), parseInt(i3[3]), parseInt(i3[4]), parseInt(i3[5])], e3 = 0; e3 < o2.length; e3++) if (!(0 <= (r2 = o2[e3]) && r2 <= 255)) return null;
              return n3.parts.push(o2[0] << 8 | o2[1]), n3.parts.push(o2[2] << 8 | o2[3]), { parts: n3.parts, zoneId: n3.zoneId };
            }
            return null;
          }, e2.IPv6.subnetMaskFromPrefixLength = function(t3) {
            var n3, e3, i3;
            if ((t3 = parseInt(t3)) < 0 || t3 > 128) throw new Error("ipaddr: invalid IPv6 prefix length");
            for (n3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e3 = 0, i3 = Math.floor(t3 / 8); e3 < i3; ) n3[e3] = 255, e3++;
            return i3 < 16 && (n3[i3] = Math.pow(2, t3 % 8) - 1 << 8 - t3 % 8), new this(n3);
          }, e2.fromByteArray = function(t3) {
            var n3 = t3.length;
            if (4 === n3) return new e2.IPv4(t3);
            if (16 === n3) return new e2.IPv6(t3);
            throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address");
          }, e2.isValid = function(t3) {
            return e2.IPv6.isValid(t3) || e2.IPv4.isValid(t3);
          }, e2.parse = function(t3) {
            if (e2.IPv6.isValid(t3)) return e2.IPv6.parse(t3);
            if (e2.IPv4.isValid(t3)) return e2.IPv4.parse(t3);
            throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format");
          }, e2.parseCIDR = function(t3) {
            try {
              return e2.IPv6.parseCIDR(t3);
            } catch (n3) {
              try {
                return e2.IPv4.parseCIDR(t3);
              } catch (t4) {
                throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format");
              }
            }
          }, e2.process = function(t3) {
            var n3 = this.parse(t3);
            return "ipv6" === n3.kind() && n3.isIPv4MappedAddress() ? n3.toIPv4Address() : n3;
          }, e2.subnetMatch = function(t3, n3, e3) {
            var i3, r2, o2, a2;
            for (r2 in null == e3 && (e3 = "unicast"), n3) if (Object.prototype.hasOwnProperty.call(n3, r2)) {
              for (!(o2 = n3[r2])[0] || o2[0] instanceof Array || (o2 = [o2]), i3 = 0; i3 < o2.length; i3++) if (a2 = o2[i3], t3.kind() === a2[0].kind() && t3.match.apply(t3, a2)) return r2;
            }
            return e3;
          }, t2.exports ? t2.exports = e2 : n2.ipaddr = e2;
        })(void 0);
      }, "./dist/core/lc/lcRegister.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        function c(t3) {
          if (s = null, u[0]) try {
            var n3 = u[0].jS;
            n3 && n3.Ti && i2.Aoe(n3, (function(e3) {
              var r2, a2, u2, s2, c2, f, l, h, d, v, p;
              if (n3.ls = e3, r2 = n3.getActiveSheetOrSheetTab()) {
                if ((a2 = r2._gi) === o.SheetType.customSheetTab) return;
                if ((c2 = (s2 = (u2 = "number" == typeof a2) ? r2.Mf : r2).l) && (e3 = c2), t3 || c2 || e3.b || -1 !== e3.m || !e3.d || (e3.s = false, i2.eG(n3, e3)), e3.nwm) for (l = 0, h = f = e3.disL || []; l < h.length; l++) (v = s2[d = h[l]]) && (p = v.adrs) && p.apply(v), u2 && a2 === o.SheetType[d] && (p = r2.adrs) && p.apply(r2);
              }
            }), true);
          } finally {
            u = [];
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/core/lc/releaseLc.js"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/core.enum.js"), a = r.GC$.sd, u = [], r.GC$[a] = function(t3, n3) {
          u.push(t3), n3 ? c(n3) : s || (s = setTimeout(c, 5e3 * Math.random() + 3e3));
        };
      }, "./dist/core/lc/lcValidator.js": function(t2) {
        var n2 = (function(t3) {
          var n3 = {};
          function e2(i2) {
            if (n3[i2]) return n3[i2].exports;
            var r = n3[i2] = { exports: {}, id: i2, loaded: false };
            return t3[i2].call(r.exports, r, r.exports, e2), r.loaded = true, r.exports;
          }
          return e2.m = t3, e2.c = n3, e2.p = "dist", e2(0);
        })([function(t3, n3) {
          (function(t4) {
            "use strict";
            var e2, i2, r, o, a, u, s, c, f, l;
            function h(t5) {
              var n4, i3;
              if ("number" == typeof t5) for (n4 = new Array(t5), i3 = 0; i3 < t5; ++i3) n4[i3] = 0;
              else n4 = t5.slice(0);
              return n4.buffer = n4, n4.byteLength = n4.length, "object" === (void 0 === t5 ? "undefined" : e2(t5)) && t5.buffer && (n4.buffer = t5.buffer), n4;
            }
            function d(t5, n4, e3, i3) {
              return 1 == t5.length || t5.splice(e3, 1, i3(t5.splice(n4, 1, i3(t5[e3]))[0])), t5;
            }
            function v(t5) {
              var n4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, e3 = t5.charCodeAt(0);
              return e3 >= 65 && e3 <= 90 ? t5.toLowerCase() : e3 >= 97 && e3 <= 122 ? t5.toUpperCase() : e3 >= 48 && e3 <= 57 ? r(48 + (e3 - 48 + 10 + n4) % 10) : t5;
            }
            function p(t5) {
              var n4, e3 = t5.split(""), i3 = function t6(n5) {
                return v(n5, -1);
              };
              for (n4 = e3.length - 5; n4 >= 0; n4--) d(e3, n4 + 1, n4 + 3, i3), d(e3, n4, n4 + 2, i3);
              return e3.join("");
            }
            function g(t5) {
              return t5.split("").reverse().join("");
            }
            function m(t5) {
              var n4, e3, i3, r2, o2, u2, s2, c2, f2, l2 = [], h2 = "", d2 = a, v2 = t5, p2 = v2.length % 3;
              if (p2 > 0) for (; p2++ < 3; ) h2 += "=", v2 += "\0";
              for (p2 = 0; p2 < v2.length; p2 += 3) o2 = (r2 = (n4 = v2.charCodeAt(p2)) << 16 | (e3 = v2.charCodeAt(p2 + 1)) << 8 | (i3 = v2.charCodeAt(p2 + 2))) >> 18 & 63, u2 = r2 >> 12 & 63, s2 = r2 >> 6 & 63, c2 = 63 & r2, l2[p2 / 3] = d2.charAt(o2) + d2.charAt(u2) + d2.charAt(s2) + d2.charAt(c2);
              return f2 = (f2 = l2.join("")).slice(0, f2.length - h2.length) + h2;
            }
            function b(t5) {
              var n4, e3, i3, o2, u2, s2, c2, f2, l2, h2, d2 = [], v2 = a, p2 = t5;
              for (h2 = 0; h2 < p2.length; h2 += 4) n4 = (f2 = (o2 = v2.indexOf(p2.charAt(h2))) << 18 | (u2 = v2.indexOf(p2.charAt(h2 + 1))) << 12 | (s2 = v2.indexOf(p2.charAt(h2 + 2))) << 6 | (c2 = v2.indexOf(p2.charAt(h2 + 3)))) >>> 16 & 255, e3 = f2 >>> 8 & 255, i3 = 255 & f2, d2[h2 / 4] = r(n4, e3, i3), 64 == c2 && (d2[h2 / 4] = r(n4, e3)), 64 == s2 && (d2[h2 / 4] = r(n4));
              return l2 = d2.join("");
            }
            function y(t5) {
              return (i2 && window.atob || b)(t5);
            }
            function w(t5) {
              return (i2 && window.btoa || m)(t5);
            }
            function M(t5) {
              return decodeURIComponent(Array.prototype.map.call(y(t5), (function(t6) {
                return "%" + ("00" + t6.charCodeAt(0).toString(16)).slice(-2);
              })).join(""));
            }
            function C(t5) {
              return w(encodeURIComponent(t5).replace(/%([0-9A-F]{2})/g, (function(t6, n4) {
                return r(parseInt(n4, 16));
              })));
            }
            function S(t5) {
              var n4, e3;
              return t5 ? (n4 = g(n4 = p(t5)), e3 = Math.ceil(n4.length / 2), M(n4 = (n4 = (n4 = n4.substr(e3) + n4.substr(0, e3)).replace("#", "=")).replace("&", "=="))) : "";
            }
            function T(t5) {
              var n4, e3 = y(t5), i3 = e3.length, r2 = new o(i3);
              for (n4 = 0; n4 < i3; n4++) r2[n4] = e3.charCodeAt(n4);
              return r2.buffer;
            }
            function x(t5) {
              var n4, e3, i3 = new ArrayBuffer(t5.length), r2 = new o(i3);
              for (n4 = 0, e3 = t5.length; n4 < e3; n4++) r2[n4] = t5.charCodeAt(n4);
              return i3;
            }
            function A(t5) {
              return r.apply(null, new o(t5));
            }
            function I(t5) {
              return t5.replace(/\+/g, "-").replace(/\//g, "_").replace(/\=+$/, "");
            }
            function k(t5) {
              var n4, e3, i3, r2 = 0, o2 = 5381, a2 = 0;
              for (n4 = t5.length - 1; n4 >= 0; n4--) r2 = (e3 = t5.charCodeAt(n4)) + (r2 << 6) + (r2 << 16) - r2, o2 = e3 + ((o2 << 5) + o2), a2 = e3 + ((a2 << 5) - a2), a2 &= a2;
              return (i3 = r2 ^ o2 ^ a2) < 0 && (i3 = ~i3), i3.toString(16).toUpperCase();
            }
            function N(t5) {
              return t5 && JSON.parse(t5) || void 0;
            }
            function j(t5, n4) {
              try {
                n4 = "#" + n4;
                var e3 = t5.indexOf(n4);
                if (e3 > -1) return { prefix: t5.substring(0, e3), licData: JSON.parse(S(t5.substr(e3 + n4.length))) };
              } catch (t6) {
              }
              return false;
            }
            function D(t5) {
              return "oncomplete" in t5 && (t5.then = function(n4, e3) {
                t5.resolve = n4, t5.reject = e3;
              }, t5.oncomplete = function(n4) {
                t5.resolve(t5.result);
              }, t5.onerror = function() {
                t5.reject();
              }), t5;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t5) {
              return typeof t5;
            } : function(t5) {
              return t5 && "function" == typeof Symbol && t5.constructor === Symbol && t5 !== Symbol.prototype ? "symbol" : typeof t5;
            }, i2 = "undefined" != typeof window, r = String.fromCharCode, o = i2 && window.Uint8Array || h, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", u = "object" == (void 0 === t4 ? "undefined" : e2(t4)) && t4 && t4.Object === Object && t4, s = "object" == ("undefined" == typeof self ? "undefined" : e2(self)) && self && self.Object === Object && self, c = u || s, f = n3.iDe = S, l = n3.attorn = function t5(n4, e3, r2, o2) {
              var a2, u2, s2, f2, l2, h2, d2, v2 = i2 ? window.msCrypto ? window.msCrypto : window.crypto : void 0, p2 = j(n4, e3.aC);
              if (!p2) return o2();
              function g2() {
                return k(u2 + JSON.stringify(a2.D)) === a2.H ? r2(a2.D) : o2();
              }
              return a2 = p2.licData, u2 = p2.prefix + "#" + e3.aC, s2 = A(T(C(u2 + JSON.stringify(a2.D)))), f2 = S("JYx3Gb#8Pb5R"), l2 = S("VdgJHc#wJb59"), c[f2] && c[f2][l2] && !location.protocol.match(/^https/i) ? g2() : v2 && v2.subtle ? (h2 = { alg: "PS256", e: "AQAB", kty: "RSA", n: I(e3.pK) }, h2 = window.msCrypto ? x(JSON.stringify(h2)) : h2, d2 = { name: "RSA-PSS", saltLength: 32, hash: { name: "SHA-256" } }, void D(v2.subtle.importKey("jwk", h2, d2, false, ["verify"])).then((function(t6) {
                D(v2.subtle.verify(d2, t6, T(a2.S), x(s2))).then((function(t7) {
                  return t7 ? r2(a2.D) : o2();
                }));
              }), (function() {
                return g2();
              }))) : g2();
            };
          }).call(n3, /* @__PURE__ */ (function() {
            return this;
          })());
        }]);
        t2.exports = { Aoe: n2.attorn, Ioe: n2.iDe };
      }, "./dist/core/lc/lr.msc.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ls17 = n2.ls16 = n2.ls15 = n2.ls14 = n2.ls13 = n2.ls12 = n2.ls11 = n2.ls10 = n2.ls9 = n2.ls8 = n2.ls7 = n2.ls6 = n2.ls5 = n2.ls4 = n2.ls3 = n2.ls2 = n2.ls1 = n2.lsde = n2.lsru = void 0, n2.lsru = ["", "6465706c6f796d656e74"], n2.lsde = ["", "64657369676e6572"], n2.ls1 = ["", "506f7765726564206279204d455343495553205370726561644a532e0d0a596f752063616e206f6e6c79206465706c6f792074686973204556414c554154494f4e2076657273696f6e206c6f63616c6c792e0d0a54656d706f72617279206465706c6f796d656e74206b6579732061726520617661696c61626c6520666f722074657374696e672e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d2e"], n2.ls2 = ["", "506f7765726564206279204d455343495553205370726561644a532e0d0a596f75722074656d706f72617279206465706c6f796d656e74206b6579206578706972657320696e207b307d206461792873292e"], n2.ls3 = ["", "4c6963656e7365204e6f7420466f756e640d0a596f75206e65656420612076616c6964206c6963656e7365206b657920746f2072756e205370726561644a532e0d0a54656d706f72617279206b6579732061726520617661696c61626c6520666f72206576616c756174696f6e2e0d0a496620796f75207075726368617365642061206c6963656e73652c20796f7572206b657920697320696e20796f757220707572636861736520636f6e6669726d6174696f6e20656d61696c2e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e65656420617373697374616e63652e"], n2.ls4 = ["", "496e76616c6964206c6963656e7365206b65792e2020456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e6565642068656c702e"], n2.ls5 = ["", "506f7765726564206279204d455343495553205370726561644a532e0d0a596f75722074656d706f72617279206465706c6f796d656e74206b6579206861732065787069726564206f6e207b347d2e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d20666f722068656c702e"], n2.ls6 = ["", "506f7765726564206279204d455343495553205370726561644a53204576616c756174696f6e2056657273696f6e0d0a4e6f74204c6963656e73656420666f7220446973747269627574696f6e"], n2.ls7 = ["", "457863656c20494f204c6963656e7365204e6f7420466f756e640d0a596f75206e65656420612076616c6964206c6963656e7365206b657920746f2072756e205370726561644a5320457863656c20494f2e2054656d706f72617279206b6579732061726520617661696c61626c6520666f72206576616c756174696f6e2e20496620796f75207075726368617365642061206c6963656e73652c20796f7572206b657920697320696e20796f757220707572636861736520636f6e6669726d6174696f6e20656d61696c2e20456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e65656420617373697374616e63652e"], n2.ls8 = ["", "496e76616c696420457863656c20494f206c6963656e7365206b65792e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e65656420617373697374616e63652e"], n2.ls9 = ["", "4164642d6f6e7320456e61626c65643a207b307d"], n2.ls10 = ["", "4164642d6f6e73204e6f7420456e61626c65643a207b307d"], n2.ls11 = ["", "2c20"], n2.ls12 = ["", "496e76616c6964206c6963656e7365206b65792e0d0a546865726520697320616e2069737375652072656164696e6720746865206c6963656e7365206b65792e0d0a4d616b65207375726520746f20636f70792074686520656e74697265206c6963656e7365206b657920737472696e6720696e746f20796f7572206170706c69636174696f6e2e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e6565642068656c702e"], n2.ls13 = ["", "496e76616c6964206c6963656e7365206b65792e0d0a546865206c6963656e7365206b657920796f75207573656420697320666f72207468652044657369676e657220526962626f6e2e0d0a506c65617365206170706c7920746865205370726561644a53206c6963656e7365206b65792e0d0a456d61696c2075732e73616c6573406d6573636975732e636f6d20696620796f75206e6565642068656c702e"], n2.ls14 = ["", "496e76616c6964206c6963656e7365206b65792e0d0a546865206c6963656e7365206b657920697320666f722076657273696f6e20567b327d2e0d0a506c65617365207573652074686520636f7272656374206c6963656e736520666f7220746869732076657273696f6e206f7220636f6e746163742075732e73616c6573406d6573636975732e636f6d20746f206765742061206e6577206b65792e"], n2.ls15 = ["", "496e76616c6964206c6963656e7365206b65792e0d0a546865206c6963656e7365206b657920697320666f722076657273696f6e20567b327d2062757420746869732076657273696f6e20697320567b337d2e0d0a506c65617365207573652074686520636f7272656374206c6963656e736520666f7220746869732076657273696f6e206f7220636f6e746163742075732e73616c6573406d6573636975732e636f6d20746f206765742061206e6577206b65792e"], n2.ls16 = ["", "496e76616c6964206c6963656e7365206b65792e0d0a546865206c6963656e7365206b657920697320666f722074686520686f73746e616d653a0d0a7b357d0d0a506c6561736520636f6e746163742075732e73616c6573406d6573636975732e636f6d20696620796f75206e65656420746f206164642074686520686f73746e616d652e"], n2.ls17 = ["", "506f776572656420627920477261706543697479205370726561644a532e0d0a596f75722074656d706f72617279207b317d206b65792068617320657870697265642e0d0a456d61696c2075732e73616c6573406772617065636974792e636f6d20666f722068656c702e"];
      }, "./dist/core/lc/releaseLc.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        function s(t3, n3, e3, r2) {
          var s2, c2, f2, l, h, d, v, p, g, m, b = t3.Fi(), y = 203, w = t3.parent, M = "11pt calibri", C = r2.hl && r2.isVd(false) && r2.d, S = w && w.xU, T = "";
          for (C ? s2 = "l2" : r2.e ? s2 = "l5" : r2.hl && !r2.d ? s2 = "l6" : (s2 = "l1", c2 = i2.Moe(s2)), b = b || t3.Fi(), f2 = i2.Toe(s2, a, r2), l = 0, c2 && f2.forEach((function(n4) {
            l = u(l, t3.Qt(n4, M));
          })), t3.l = f2[0] ? r2 : void 0, h = 0; h < f2.length && (b.width > y || b.height > y) && !S; h++) T = f2[h], d = l || t3.Qt(T, M), v = 10, p = 20, g = b.width - d - v, m = b.height - v - p * (f2.length - h), !n3 || e3 && !e3.intersect(g, m, d, p) || (n3.save(), n3.fillStyle = "rgba(0, 0, 0, 0.5)", o(n3, M), e3 && (n3.rect(e3.x, e3.y, e3.width, e3.height), n3.clip(), n3.beginPath()), n3.fillText(T, g, m + p), T && (t3.l = r2), n3.restore());
        }
        function c(t3) {
          i2.Vi(s, t3);
        }
        function f(t3, n3) {
          return i2.decode(t3, n3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.eG = n2.Aoe = n2._pt = n2._Ae = n2.Vi = void 0, i2 = e2("./dist/core/lc/common.js"), r = e2("./dist/core/util/common.js"), o = r.mt.bt, a = ["LcneNtFud\no edavldlcnekyt u pedSet.\neprr esaeaalbefreauto.\nfyuprhsdalcne orkyi nyu ucaecnimto mi.", "ies o on\rYune  ai ies e ornSra.hes\rTmoayky r vial o vlain\rI o ucae  ies,yu e si orprhs ofraineal"], u = Math.max, n2.Vi = c, n2._Ae = f, n2._pt = 1, n2.Aoe = i2.Aoe, n2.eG = i2.eG;
      }, "./dist/core/util/basedialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b = this && this.qKr || (y = function(t3, n3) {
          return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), y;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Ase = n2.zc = n2.DialogFeatureType = void 0, i2 = e2("./dist/core/util/common.js"), r = e2("./dist/core/util/domUtil.js"), o = r.GC$, a = i2.util.En, u = i2.util.Tt, s = i2.util.vi, c = document, f = window, l = f.gcGlobal, h = "touchstart", d = "MSPointerDown", v = "pointerdown", (function(t3) {
          t3.contextMenu = "context-menu", t3.filter = "filter", t3.touch = "touch", t3.fill = "fill", t3.sheetList = "sheet-list";
        })(p = n2.DialogFeatureType || (n2.DialogFeatureType = {})), g = (function() {
          function t3(t4, n3, e3, i3) {
            this.Bc = "gc-popup", this.Lc = "gc-overlay", this.Fc = null;
            var r2 = this;
            r2.Ti = t4, r2.Pc = e3, r2.ERe = i3, n3 = n3 || 0, r2.Gc = { position: "fixed", width: "100%", height: "100%", margin: 0, padding: 0, top: 0, left: 0, border: "none", zIndex: n3, backgroundColor: "rgba(0,0,0,0)" }, r2.Uc = { position: "absolute", padding: 0, margin: 0, height: "auto", zIndex: n3 + 1, outline: "none" }, r2.Hc();
          }
          return t3.prototype.Hc = function() {
            var t4 = this;
            t4.Yc(t4.Zc) ? t4.Wc = o("#" + t4.Zc) : (t4.Zc = t4.Qc(), t4.Kc = t4.Lc + "-" + t4.Zc, t4.Jc = t4.Bc + "-" + t4.Zc, t4.Wc = o(a("div")).addClass(t4.Jc + " ui-widget").attr({ id: t4.Zc, tabIndex: -1 }).css(t4.Uc));
          }, t3.prototype.Qc = function() {
            for (var t4 = 0, n3 = "gc-dialog"; this.Yc(n3 + t4.toString()); ) t4++;
            return n3 + t4.toString();
          }, t3.prototype.Xc = function() {
            if (this.Wc) return this.Wc;
          }, t3.prototype.qc = function() {
            return this.Ti ? this.Ti : c.body;
          }, t3.prototype.$c = function(t4) {
            var n3 = this, e3 = n3.Wc;
            n3.ERe || n3.tf() || n3.nf(), n3.ERe || l.ef(), n3.Yc(n3.Zc) || (o(n3.qc()).append(e3), n3.if(), e3.css("display", "none")), n3.ter && n3.Wc.attr("sjs-dialog", n3.ter), e3.show(t4);
          }, t3.prototype.rf = function() {
            return "block" === this.Wc.css("display");
          }, t3.prototype.close = function() {
            var t4 = this;
            t4.af(), t4.Yc(t4.Zc) && t4.Wc.remove(), o("." + t4.Jc).isVisible() || t4.uf(), t4.ERe || l.cf();
          }, t3.prototype.uf = function() {
            o("." + this.Kc).remove(), this.Fc = null;
          }, t3.prototype.af = function() {
            var t4 = this.Zc;
            [h, d, v].forEach((function(n3) {
              o(c).unbind(n3 + "." + t4);
            }));
          }, t3.prototype.if = function() {
            var t4, n3, e3, i3, r2, a2, u2, s2, f2, l2, h2, d2 = this.Wc, v2 = this.qc();
            0 !== d2.length && (t4 = o(v2).offset(), n3 = parseInt(d2.css("left"), 10) + t4.left, e3 = parseInt(d2.css("top"), 10) + t4.top, i3 = d2.width(), r2 = d2.height(), isNaN(n3) || isNaN(e3) || isNaN(i3) || isNaN(r2) || (a2 = 0, u2 = 0, f2 = (s2 = c.documentElement).clientWidth, l2 = s2.clientHeight, (h2 = d2[0].getBoundingClientRect()).left + i3 > f2 && (u2 = h2.left + i3 - f2), h2.top + r2 > l2 && (a2 = h2.top + r2 - l2), (n3 < 0 || e3 < 0 || a2 > 0 || u2 > 0) && ((n3 -= u2) < 0 && (n3 = 0), (e3 -= a2) < 0 && (e3 = 0), d2.css({ left: n3 - t4.left + "px", top: e3 - t4.top + "px" }))));
          }, t3.prototype.Yc = function(t4) {
            return o("#" + t4).length > 0;
          }, t3.prototype.nf = function() {
            var t4, n3, e3 = this, i3 = e3.Zc, r2 = o(a("div")).addClass(e3.Kc), l2 = e3.Wc;
            e3.Fc = r2, r2.css(e3.Gc), o(e3.qc()).append(r2), (t4 = u && u.mozilla) && (n3 = (/* @__PURE__ */ new Date()).valueOf()), r2.bind("mousedown", (function(i4) {
              if (!e3.bQr) {
                if (!e3.Pc) {
                  var r3;
                  if (t4) {
                    if ((/* @__PURE__ */ new Date()).valueOf() - n3 < 100) return;
                  }
                  e3.close(), t4 && e3.ff && clearTimeout(e3.ff);
                }
                s(i4);
              }
            })), r2.bind("contextmenu", (function(t5) {
              e3.bQr || e3.Pc && s(t5);
            })), l2.bind("contextmenu", (function(t5) {
              e3.bQr || s(t5);
            })), [h, d, v].forEach((function(n4) {
              o(c).bind(n4 + "." + i3, (function(n5) {
                if (!e3.bQr) {
                  var i4 = n5.target;
                  e3.Fc && !e3.lf(i4) && (e3.Pc || (t4 ? e3.ff = f.setTimeout((function() {
                    e3.close();
                  }), 100) : e3.close()), s(n5));
                }
              }));
            }));
          }, t3.prototype.hf = function(t4, n3) {
            for (var e3 = t4; n3 && n3 !== document.body; ) {
              if (n3 === e3) return true;
              n3 = n3.parentNode;
            }
            return false;
          }, t3.prototype.lf = function(t4) {
            return !!this.Wc && this.hf(this.Wc.get(0), t4);
          }, t3.prototype.tf = function() {
            return o("." + this.Kc).length > 0;
          }, t3;
        })(), n2.zc = g, m = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, e3, i3) || this;
            return r2.Mse = false, r2.Cse = { mouseOriginalX: 0, mouseOriginalY: 0, domOriginalX: 0, domOriginalY: 0, domWidth: 0, domHeight: 0, parentRect: null, screenWidth: 0, screenHeight: 0 }, r2.Sse = function(t4) {
              var n5, e4, i4, o2, a2, u2, s2, c2, f2 = r2;
              f2.Mse && f2.mouseInScreen(t4.pageX - window.scrollX, t4.pageY - window.scrollY) && (n5 = t4.pageX, e4 = t4.pageY, o2 = n5 - (i4 = f2.Cse).mouseOriginalX, a2 = e4 - i4.mouseOriginalY, i4.parentRect && (u2 = f2.Wc[0], s2 = Math.max(0, i4.domOriginalX + Math.min(o2, i4.screenWidth - i4.domOriginalX - i4.domWidth + (f2.Pc ? 0 : window.scrollX))), c2 = Math.max(0, i4.domOriginalY + Math.min(a2, i4.screenHeight - i4.domOriginalY - i4.domHeight + (f2.Pc ? 0 : window.scrollY))), u2.style.left = "".concat(s2, "px"), u2.style.top = "".concat(c2, "px")));
            }, r2.Ise = function() {
              window.removeEventListener("mousemove", r2.Sse), r2.Mse = false;
            }, r2;
          }
          return b(n3, t3), n3.prototype.bindMoveEvent = function(t4) {
            var n4 = this, e3 = function(t5) {
              var e4, i3, r2 = n4.Wc[0], o2 = n4.Cse;
              o2.mouseOriginalX = t5.pageX, o2.mouseOriginalY = t5.pageY, e4 = r2.getBoundingClientRect(), o2.domOriginalX = e4.left + (n4.Pc ? 0 : window.scrollX), o2.domOriginalY = e4.top + (n4.Pc ? 0 : window.scrollY), o2.domWidth = e4.width, o2.domHeight = e4.height, (i3 = r2.offsetParent) ? o2.parentRect = i3.getBoundingClientRect() : "fixed" === r2.style.position && (o2.parentRect = r2.getBoundingClientRect()), o2.screenWidth = window.innerWidth, o2.screenHeight = window.innerHeight, n4.Mse = true, window.addEventListener("mousemove", n4.Sse);
            };
            return t4.addEventListener("mousedown", e3), document.addEventListener("mouseup", n4.Ise), function() {
              t4.removeEventListener("mousedown", e3), document.removeEventListener("mouseup", n4.Ise);
            };
          }, n3.prototype.mouseInScreen = function(t4, n4) {
            return t4 >= 0 && t4 <= this.Cse.screenWidth && n4 >= 0 && n4 <= this.Cse.screenHeight;
          }, n3;
        })(g), n2.Ase = m;
      }, "./dist/core/util/common.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function Vt(t3) {
          return t3 !== D;
        }
        function zt(t3) {
          return I.createElement(t3);
        }
        function Yt(t3) {
          var n3 = (t3 || I).activeElement;
          return n3 && n3.shadowRoot ? Yt(n3.shadowRoot) : n3;
        }
        function Zt(t3) {
          I.body && I.body.insertBefore(t3, _);
        }
        function Wt(t3, n3, e3, i3) {
          Object.defineProperty(t3, n3, { get: function() {
            return this._ps[n3];
          }, set: function(t4) {
            if (!i3 || i3(n3, t4)) {
              var r2 = this._ps[n3];
              r2 !== t4 && (this._ps[n3] = t4, e3 && e3(n3, t4, r2));
            }
          }, enumerable: true });
        }
        function Qt(t3, n3) {
          if (t3.style && t3.style.vertAlign) {
            var e3 = f.W.V(n3, 1);
            return e3.fontSize * W + "px " + e3.fontFamily;
          }
          return n3;
        }
        function Kt(t3) {
          return t3.preventDefault ? (t3.preventDefault(), t3.stopPropagation()) : (t3.cancelBubble = false, t3.returnValue = false), false;
        }
        function Jt(t3) {
          var n3, e3, i3 = false;
          if (t3) {
            for (n3 = 0; n3 < t3.length; n3++) if ((e3 = t3.charCodeAt(n3)) >= 11904 && e3 < 12032 || e3 >= 12288 && e3 < 40960 || e3 >= 43360 && e3 < 43392 || e3 >= 63744 && e3 < 64256) {
              i3 = true;
              break;
            }
          }
          return i3;
        }
        function Xt(t3) {
          return Math.random().toString(16).slice(-t3);
        }
        function qt(t3) {
          try {
            return String.fromCodePoint(t3);
          } catch (n3) {
            return String.fromCharCode(t3);
          }
        }
        function $t(t3) {
          return function(n3, e3) {
            return qt(parseInt(e3, t3));
          };
        }
        function tn(t3, n3, e3) {
          var i3, r2, o2 = 0, a2 = t3.split(K);
          if (a2.length >= 3 && (o2 = parseFloat(a2[2]), isNaN(o2) || (o2 /= 100)), "Background 1" === t3.substring(0, 12) && (i3 = n3 ? 243 : 0), "Text 1" === t3.substring(0, 6) && (i3 = n3 ? 241 : 1), "Background 2" === t3.substring(0, 12) && (i3 = n3 ? 244 : 2), "Text 2" === t3.substring(0, 6) && (i3 = n3 ? 242 : 3), "Accent 1" === t3.substring(0, 8) && (i3 = 4), "Accent 2" === t3.substring(0, 8) && (i3 = 5), "Accent 3" === t3.substring(0, 8) && (i3 = 6), "Accent 4" === t3.substring(0, 8) && (i3 = 7), "Accent 5" === t3.substring(0, 8) && (i3 = 8), "Accent 6" === t3.substring(0, 8) && (i3 = 9), "hyperlink" === t3.substring(0, 8) && (i3 = 10), "followedHyperlink" === t3.substring(0, 8) && (i3 = 11), i3 !== D) return { n_: r2 = e3 || "color", theme: i3, tint: o2 };
        }
        function nn(t3, n3) {
          var e3 = t3.tint ? F(100 * t3.tint) : 0, i3 = +t3.theme;
          return 0 === i3 || 243 === i3 ? "Background 1 " + e3 : 1 === i3 || 241 === i3 ? "Text 1 " + e3 : 2 === i3 || 244 === i3 ? "Background 2 " + e3 : 3 === i3 || 242 === i3 ? "Text 2 " + e3 : 4 === i3 ? "Accent 1 " + e3 : 5 === i3 ? "Accent 2 " + e3 : 6 === i3 ? "Accent 3 " + e3 : 7 === i3 ? "Accent 4 " + e3 : 8 === i3 ? "Accent 5 " + e3 : 9 === i3 ? "Accent 6 " + e3 : 10 === i3 ? "hyperlink" : 11 === i3 ? "followedHyperlink" : void 0;
        }
        function en(t3) {
          return ct.getIndexedColor(+t3.indexed);
        }
        function rn(t3, n3) {
          var e3, i3 = ct.convertColorToHex(t3);
          if (i3) return { n_: e3 = n3 || "color", rgb: i3 };
        }
        function on(t3, n3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = 0, p2 = document.createElement("canvas"), g2 = p2.getContext("2d");
          return g2 || (c2 = e2("canvas")) && c2.createCanvas && (g2 = (f2 = c2.createCanvas(2, 2)).getContext("2d")), g2 && (g2.font = t3, v2 = (h2 = null !== (o2 = null !== (r2 = null !== (i3 = (l2 = g2.measureText(n3)).actualBoundingBoxAscent) && void 0 !== i3 ? i3 : l2.fontBoundingBoxAscent) && void 0 !== r2 ? r2 : l2.emHeightAscent) && void 0 !== o2 ? o2 : 0) + (d2 = null !== (s2 = null !== (u2 = null !== (a2 = l2.actualBoundingBoxDescent) && void 0 !== a2 ? a2 : l2.fontBoundingBoxDescent) && void 0 !== u2 ? u2 : l2.emHeightDescent) && void 0 !== s2 ? s2 : 0)), v2;
        }
        function an(t3) {
          return t3 !== a.ListType.circle && t3 !== a.ListType.square && t3 !== a.ListType.disc;
        }
        function un(t3, n3) {
          var e3, i3, r2;
          if ((t3 += 1) < 1 || t3 > 3999) return "i";
          for (e3 = [{ value: 1e3, numeral: n3 ? "m" : "M" }, { value: 900, numeral: n3 ? "cm" : "CM" }, { value: 500, numeral: n3 ? "d" : "D" }, { value: 400, numeral: n3 ? "cd" : "CD" }, { value: 100, numeral: n3 ? "c" : "C" }, { value: 90, numeral: n3 ? "xc" : "XC" }, { value: 50, numeral: n3 ? "l" : "L" }, { value: 40, numeral: n3 ? "xl" : "XL" }, { value: 10, numeral: n3 ? "x" : "X" }, { value: 9, numeral: n3 ? "ix" : "IX" }, { value: 5, numeral: n3 ? "v" : "V" }, { value: 4, numeral: n3 ? "iv" : "IV" }, { value: 1, numeral: n3 ? "i" : "I" }], i3 = "", r2 = 0; r2 < e3.length; r2++) for (; t3 >= e3[r2].value; ) i3 += e3[r2].numeral, t3 -= e3[r2].value;
          return i3;
        }
        function sn(t3, n3) {
          var e3 = "", i3 = n3 ? 97 : 65;
          if (0 === t3) return String.fromCharCode(i3);
          for (; t3 > 0; ) e3 += String.fromCharCode(t3 % 26 + i3), t3 = Math.floor(t3 / 26);
          return e3;
        }
        function cn(t3) {
          var n3, e3;
          if (0 === t3) return "α";
          for (n3 = ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ", "λ", "μ", "ν", "ξ", "ο", "π", "ρ", "σ", "τ", "υ", "φ", "χ", "ψ", "ω"], e3 = ""; t3 > 0; ) e3 += n3[t3 % 24], t3 = Math.floor(t3 / 24);
          return e3;
        }
        function fn(t3, n3) {
          switch (t3) {
            case a.ListType.lowerRoman:
              return un(n3, true) + ". ";
            case a.ListType.lowerAlpha:
              return sn(n3, true) + ". ";
            case a.ListType.upperRoman:
              return un(n3) + ". ";
            case a.ListType.upperAlpha:
              return sn(n3) + ". ";
            case a.ListType.decimal:
              return n3 + 1 + ". ";
            case a.ListType.lowerGreek:
              return cn(n3) + ". ";
          }
        }
        function ln(t3) {
          switch (t3) {
            case a.ListType.lowerGreek:
              return n2.GREEK_LETTER_FONT_FAMILY + ", " + n2.FallbackFontFamily;
            case a.ListType.disc:
            case a.ListType.circle:
            case a.ListType.square:
              return n2.SYMBOL_FONT_FAMILY + ", " + n2.FallbackFontFamily;
            default:
              return n2.NORMAL_RADIO_LIST_FONT + ", " + n2.FallbackFontFamily;
          }
        }
        function hn(t3) {
          switch (t3) {
            case a.ListType.disc:
              return "● ";
            case a.ListType.circle:
              return "○ ";
            case a.ListType.square:
              return "■ ";
          }
        }
        function dn(t3) {
          var n3, e3, i3, r2 = [], o2 = [];
          for (n3 = 0, e3 = t3.length; n3 < e3; n3++) (i3 = t3[n3]).richText ? (o2.length > 0 && (r2.push(o2), o2 = []), r2.push(i3)) : o2.push(i3);
          return o2.length > 0 && r2.push(o2), r2;
        }
        function vn(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2 = dn(t3), f2 = {}, l2 = {}, h2 = [];
          for (e3 = 0, i3 = c2.length; e3 < i3; e3++) (r2 = c2[e3]).richText ? (o2 = r2.level || 0, a2 = void 0, an(r2.type) ? (r2.type === l2[o2] && o2 <= n3 ? f2[o2]++ : f2[o2] = 0, a2 = fn(r2.type, f2[o2])) : a2 = hn(r2.type), n3 = o2, l2[o2] = r2.type, (u2 = new Array(4 * (o2 + 1))).fill(K), s2 = { text: u2.join("") + a2 }, b(r2.type) || (s2.style = { font: "11pt ".concat(ln(r2.type)) }), h2 = Ht(Ht(Ht([], h2, true), [s2], false), r2.richText, true)) : (h2 = Ht(Ht([], h2, true), r2, true), l2 = {}, n3 = D, f2 = {}), e3 !== i3 - 1 && h2.push({ text: "\r\n" });
          return h2;
        }
        function pn(t3) {
          var n3, e3, i3, r2;
          for (n3 = 0, e3 = t3.richText.length; n3 < e3; n3++) if (t3.richText[n3].richText) return { richText: i3 = vn(t3.richText), text: r2 = D };
          return t3;
        }
        function gn(t3) {
          var n3, e3, i3;
          if (t3 && t3.content) for (n3 = t3.content.length - 1; n3 >= 0 && ((e3 = t3.content[n3]) && e3.value && e3.value.endsWith(K)); n3--) {
            for (i3 = e3.value.length - 1; i3 >= 0 && e3.value[i3] === K; i3--) ;
            if (-1 !== i3) {
              e3.value = e3.value.substring(0, i3 + 1);
              break;
            }
            t3.content.pop();
          }
        }
        function mn(t3, n3) {
          return true === t3.wordWrap || 5 === t3.hAlign && !(n3.sheet.options.showFormulas && n3.isFormula);
        }
        function bn(t3, n3) {
          var e3, i3, r2 = [], o2 = false;
          for (e3 = t3.length - 1; e3 >= 0; e3--) (i3 = t3[e3]) && ("fillingChar" === i3.type || "numberPlaceholder" === i3.type ? (r2.push(i3), o2 = true) : ("placeholder" === i3.type && (!n3 || o2) && i3.value || i3.value && (i3.value !== K || !n3 || o2)) && r2.push(i3));
          return r2.reverse(), r2;
        }
        function yn(t3, n3, e3, i3, r2, o2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2 = t3.Dn, T2 = t3.zoom(), x2 = "number" == typeof o2, A2 = t3.MAe(n3, e3, i3, D, { rowSpacingIndex: o2, isAfterRowSpacing: u2 }), I2 = 0, k2 = A2.cellType || t3.$f(i3);
          return k2 && (s2 = A2.font || S2.Nn(), A2.font = S2._n(s2), c2 = t3.rowFilter && t3.rowFilter(), (f2 = !x2 && !(!c2 || !c2.rn(n3, e3, i3))) || 3 !== i3 || (l2 = t3.tables ? t3.tables.find(n3, e3) : _) && l2.showHeader() && l2.headerIndex() === n3 && l2.rowFilter() && l2.filterButtonVisible(e3 - l2.range().col) && (f2 = true), h2 = A2.formatter ? A2.formatter : A2._autoFormatter, d2 = { sheet: t3, row: n3, col: e3, sheetArea: i3, quotePrefix: A2.quotePrefix, rowSpacingIndex: o2, isAfterRowSpacing: u2 }, t3.dataRanges && (v2 = t3.dataRanges.getByPosition(n3, e3)) && (d2.dataRange = v2), p2 = {}, g2 = t3.$t(n3, e3, i3, a.ValueType.richText, { rowSpacingIndex: o2, isAfterRowSpacing: u2 }), m2 = x2 ? "" : t3.t0(n3, e3, r2), y2 = "", x2 || (g2 && g2.richText ? y2 = t3.getText(n3, e3, i3) : b(m2) ? (y2 = k2.format(g2, h2, p2, d2), k2.NFe && k2.NFe(p2, A2.showEllipsis, D, A2.hAlign) && k2.yUr && (y2 = k2.yUr(p2.content, y2))) : y2 = m2), I2 = k2.Ln(g2, y2, A2, T2, d2), f2 && (w2 = R(T2, 1), M2 = z((t3.defaults.rowHeight * w2).toString(), 10), 3 === (C2 = A2.hAlign) && (C2 = ht.gt(C2, g2, A2.formatter || A2._autoFormatter, A2.textOrientation)), C2 === a.HorizontalAlign.center ? I2 += 2 * M2 : C2 === a.HorizontalAlign.left && (I2 += M2))), I2;
        }
        function wn(t3, n3) {
          var e3 = zt("span");
          return e3.className = t3, n3 && (e3.id = n3), e3.style.display = "none", Zt(e3), e3;
        }
        function Mn(t3, n3, e3, i3) {
          t3.addEventListener(n3, e3, i3);
        }
        function Cn(t3) {
          var n3 = t3.currentStyle, e3 = I.defaultView;
          return e3 && e3.getComputedStyle && (n3 = e3.getComputedStyle(t3, "")), n3;
        }
        function Sn(t3, n3) {
          var e3, i3, r2 = null == n3 ? void 0 : n3.gf, o2 = false;
          return r2 && (e3 = l(r2)).isVisible() && ("ArrowUp" === t3.key ? (r2.selectedIndex = Math.max(0, r2.selectedIndex - 1), Kt(t3), o2 = true) : "ArrowDown" === t3.key ? (r2.selectedIndex = Math.min(r2.options.length - 1, r2.selectedIndex + 1), Kt(t3), o2 = true) : "Enter" === t3.key || "Tab" === t3.key ? ((i3 = new KeyboardEvent("keydown", t3)).$$r = true, r2.dispatchEvent(i3), Kt(t3)) : "Escape" === t3.key ? (e3.hide(), Kt(t3), o2 = true) : gt(t3) && n3.startEdit(false, "")), o2;
        }
        function Tn(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = A.gcGlobal;
          u2.vf > 0 || t3.$$r || (16 !== t3.keyCode && (u2.mf = true), (e3 = Sn(t3, n3 = pt.ai())) || n3 && n3.rt && n3.rt.pf && (n3.rt.pf(t3), n3.isEditing() || (i3 = t3.keyCode, r2 = t3.ctrlKey, o2 = t3.altKey, a2 = t3.shiftKey, 90 !== i3 && 89 !== i3 || !r2 || o2 ? 86 !== i3 || !r2 || o2 || a2 || t3.stopPropagation && t3.stopPropagation() : Kt(t3))));
        }
        function xn(t3) {
          var n3, e3 = A.gcGlobal;
          e3.vf > 0 || (e3.mf = false, (n3 = pt.ai()) && n3.rt && n3.rt.bf && n3.rt.bf(t3));
        }
        function An(t3) {
          var n3, e3 = A.gcGlobal;
          e3.vf > 0 || (n3 = pt.ai()) && n3.rt && n3.rt.yf && n3.rt.yf(t3);
        }
        function In(t3) {
          var n3, e3 = A.gcGlobal;
          e3.vf > 0 || true !== e3.mf && (n3 = pt.ai()) && n3.rt && n3.rt.yf && n3.rt.yf(t3);
        }
        function kn(t3) {
          return I.all === D && pt.ai() && Kt(t3), false;
        }
        function Nn(t3, n3, e3, i3) {
          return new Ct(t3, n3, e3, i3);
        }
        function jn(t3, n3) {
          var e3, i3, r2;
          if (!Array.isArray(t3) || !Array.isArray(n3) || t3.length !== n3.length) return false;
          for (e3 = 0; e3 < t3.length; e3++) if (i3 = t3[e3], r2 = n3[e3], !i3 || !r2 || i3.row !== r2.row || i3.col !== r2.col || i3.rowCount !== r2.rowCount || i3.colCount !== r2.colCount) return false;
          return true;
        }
        function Dn(t3, n3) {
          var e3, i3, r2, o2;
          if (t3 && n3) {
            if (e3 = R(t3.row, n3.row), i3 = R(t3.col, n3.col), r2 = L(t3.row + t3.rowCount - 1, n3.row + n3.rowCount - 1), o2 = L(t3.col + t3.colCount - 1, n3.col + n3.colCount - 1), e3 >= 0 && i3 >= 0) return new Ct(e3, i3, r2 - e3 + 1, o2 - i3 + 1);
            if (e3 >= 0) return new Ct(e3, -1, r2 - e3 + 1, -1);
            if (i3 >= 0) return new Ct(-1, i3, -1, o2 - i3 + 1);
          }
          return new Ct(-1, -1, -1, -1);
        }
        function _n(t3) {
          var n3 = t3.Cf || { scaleX: 1, scaleY: 1, translateX: 0, translateY: 0, skewX: 0, skewY: 0, orgTranslateX: 0, orgTranslateY: 0 };
          return t3.Cf = n3, n3;
        }
        function On(t3, n3) {
          t3 && (t3.Sf = n3);
        }
        function En(t3, n3) {
          t3 && (t3.Tf = n3);
        }
        function Rn(t3, n3) {
          t3.Af = n3;
        }
        function Ln(t3, n3) {
          t3.If = n3;
        }
        function Fn() {
          var t3, n3;
          return jt.xf || (jt.xf = zt("canvas").getContext("2d")), jt.xf || (t3 = e2("canvas")) && t3.createCanvas && (n3 = t3.createCanvas(2, 2), jt.xf = n3.getContext("2d")), jt.xf;
        }
        function Bn(t3) {
          var n3, e3, i3, r2, o2;
          if (0 === t3.length) return [];
          for (n3 = [], e3 = "", i3 = "", r2 = 0; r2 < t3.length && "" === t3[r2].trim(); r2++) e3 += t3[r2];
          for (o2 = t3.length - 1; o2 >= 0; o2--) {
            if ("" !== t3[o2].trim()) {
              /\s$/.test(t3[o2]) && (i3 += K);
              break;
            }
            i3 += t3[o2];
          }
          for (e3 && n3.push(e3); r2 < o2; r2++) n3.push(t3[r2]);
          return t3[o2] && n3.push(t3[o2].trimEnd()), o2 >= 0 && i3 && n3.push(i3), n3;
        }
        function Pn(t3) {
          return Bn(i2.Common.CultureManager.Fe().hse(t3));
        }
        function Gn(t3) {
          if (b(t3) || "" === t3) return t3;
          for (var n3 = t3.length - 1; t3.charAt(n3) === K; ) n3--;
          return n3 !== t3.length - 1 && (t3 = t3.substring(0, n3 + 1)), t3;
        }
        function Un(t3, n3, e3, i3) {
          var r2, o2 = null === (r2 = i3[e3]) || void 0 === r2 ? void 0 : r2[n3];
          return o2 === D && (o2 = vt(t3, n3, e3), i3[e3] === D && (i3[e3] = {}), i3[e3][n3] = o2), o2;
        }
        function Hn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = 0, l2 = "", h2 = [];
          if (b(t3) || 0 === t3.length) return { text: l2, textLength: f2, textInfos: h2 };
          for (; t3.length > 0 && (!t3[t3.length - 1].text || "" === t3[t3.length - 1].text.trim()); ) t3.pop();
          if (0 === t3.length) return { text: l2, textLength: f2, textInfos: h2 };
          for (t3[t3.length - 1].text = t3[t3.length - 1].text.trimEnd(), a2 = 0, u2 = t3; a2 < u2.length; a2++) l2 += (s2 = u2[a2]).text, c2 = Qt(s2, (null === (o2 = s2.style) || void 0 === o2 ? void 0 : o2.font) || i3), f2 += r2 ? ht.qao(c2, s2.text) * s2.text.length : Un(n3, c2, s2.text, e3), h2.push(Vn(s2));
          return { text: l2, textLength: f2, textInfos: h2 };
        }
        function Vn(t3) {
          var n3, e3 = t3 instanceof Array ? [] : {};
          for (n3 in t3) t3.hasOwnProperty(n3) && (e3[n3] = "object" == typeof t3[n3] && t3[n3] !== _ ? Vn(t3[n3]) : t3[n3]);
          return e3;
        }
        function zn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = [], p2 = r2 || Fn();
          if (!p2) return v2;
          for (e3 ? (u2 = t3.length * i3, a2 = E(n3 / i3)) : (o2 = (u2 = vt(p2, p2.font, t3)) / t3.length, a2 = E(n3 / o2)); u2 > n3 && t3; ) for (s2 = false, c2 = a2; ; ) {
            if (t3.length < c2) {
              v2.push(t3), t3 = "";
              break;
            }
            if (f2 = t3.substring(0, c2), l2 = e3 ? c2 * i3 : vt(p2, p2.font, f2), "-" === f2.charAt(f2.length - 1) && (l2 = e3 ? c2 * i3 : vt(p2, p2.font, f2) - vt(p2, p2.font, "-")), l2 === n3 || s2 && l2 < n3) {
              v2.push(f2), t3 = t3.substring(c2), u2 -= l2;
              break;
            }
            if (l2 > n3) {
              if (1 === f2.length) {
                (h2 = t3.substring(f2.length)).trim() ? (v2.push(f2), t3 = t3.substring(c2), u2 -= l2) : (v2.push(t3), t3 = "");
                break;
              }
              c2 -= 1, s2 = true;
            } else c2 += d2 = (d2 = e3 ? (n3 - l2) / i3 : (n3 - l2) / o2) >= 1 ? d2 : 1;
          }
          return t3 && -1 === t3.search(/^[ ]*$/) && v2.push(t3), v2;
        }
        function Yn(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = o2 || Fn();
          if (!m2) return [t3];
          for (a2 = [], u2 = 0, s2 = n3, c2 = [], f2 = 0; f2 < t3.length; f2++) if (l2 = t3[f2].style && t3[f2].style.font || r2, h2 = ht.qao(l2, t3[f2].text), l2 = Qt(t3[f2], l2), t3[f2].text && t3[f2].text.length > 0 ? u2 += i3 ? h2 * t3[f2].text.length : vt(m2, l2, t3[f2].text) : u2 = 0, u2 < s2) c2.push(t3[f2]);
          else for (u2 -= i3 ? h2 * t3[f2].text.length : vt(m2, l2, t3[f2].text), d2 = 0, v2 = t3[f2].text.length; d2 < v2; d2++) {
            if ((p2 = i3 ? h2 : vt(m2, l2, t3[f2].text.charAt(d2))) > e3 && 0 === d2) {
              c2.length > 0 && (a2.push(c2), c2 = []), c2.push({ style: t3[f2].style, text: t3[f2].text.substring(0, 1) }), a2.push(c2), c2 = [], (g2 = t3[f2].text.substring(1, t3[f2].text.length)).length && t3.splice(f2 + 1, 0, { style: t3[f2].style, text: g2 }), u2 = 0, s2 = e3;
              break;
            }
            if ((u2 += p2) > s2) {
              c2.push({ style: t3[f2].style, text: t3[f2].text.substring(0, d2) }), a2.push(c2), c2 = [], (g2 = t3[f2].text.substring(d2, t3[f2].text.length)).length && t3.splice(f2 + 1, 0, { style: t3[f2].style, text: g2 }), u2 = 0, s2 = e3;
              break;
            }
            d2 === v2 - 1 && (c2.push({ style: t3[f2].style, text: t3[f2].text }), a2.push(c2), c2 = [], u2 = 0, s2 = e3);
          }
          return c2.length > 0 && a2.push(c2), a2;
        }
        function Zn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = [], w2 = Pn(t3), M2 = r2 || Fn();
          if (!M2) return y2;
          for (o2 = vt(M2, M2.font, t3), a2 = e3 ? i3 : o2 / t3.length, u2 = z(n3 / a2 + "", 10), s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = [], d2 = false; l2 < w2.length; ) {
            if (false === d2) {
              if (v2 = w2[l2], h2.push(v2), (c2 += v2.length) < u2 && l2 < w2.length - 1) {
                l2++;
                continue;
              }
              f2 = c2, c2 = 0;
            }
            if ((p2 = e3 ? h2.join("").length * i3 : jt.Wt(h2.join(""), M2.font, true, M2)) > n3) if (g2 = h2.pop(), 0 === h2.length) {
              for (m2 = zn(g2, n3, e3, i3, M2), b2 = 0; b2 < m2.length - 1; b2++) y2[s2] = m2[b2], s2++;
              1 === m2.length && (y2[s2] = m2[0], s2++), m2.length >= 2 ? w2[l2] = m2[m2.length - 1] : l2++, d2 = false;
            } else d2 = true, l2--;
            else p2 < n3 && true === d2 || p2 === n3 ? (d2 = false, y2[s2] = Gn(h2.join("")), s2++, h2 = [], l2++) : p2 < n3 && (l2++, c2 = f2);
          }
          return 0 !== h2.length && (y2[s2] = Gn(h2.join(""))), y2;
        }
        function Wn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2 = [], I2 = r2 || Fn();
          if (!I2) return A2;
          if (0 === t3.length) return A2.push({ textLength: 0, text: "", textInfos: [{ style: { font: e3 }, text: "" }] }), A2;
          for (u2 = 0, s2 = [], c2 = 0, f2 = {}, l2 = 0; l2 < t3.length; l2++) {
            for (h2 = t3[l2], d2 = 0, v2 = 0, p2 = 0; p2 < h2.length; p2++) if (g2 = void 0, g2 = h2[p2].style && h2[p2].style.font ? h2[p2].style.font : e3, m2 = h2[p2].text, l2 === t3.length - 1 && p2 === h2.length - 1 && (m2 = Gn(h2[p2].text)), !b(m2)) {
              if (0 === d2 && 0 === s2.length && "" === m2.trim() && c2 === D) continue;
              if (i3) {
                if (d2 += (v2 = ht.qao(g2, m2)) * m2.length, c2 !== D) if ("" === m2.trim()) c2 += d2;
                else {
                  for (y2 = 0, c2 += d2, w2 = 0; w2 < m2.length; w2++) if (m2[w2] !== K) {
                    y2 = w2;
                    break;
                  }
                  c2 > n3 && (A2 = [{ textLength: 0, text: "", textInfos: Vn(s2) }], m2 = m2.substring(y2), d2 = (v2 = ht.qao(g2, m2)) * m2.length), c2 = D;
                }
              } else if (d2 += Un(I2, g2 = Qt(h2[p2], g2), m2, f2), c2 !== D) if ("" === m2.trim()) c2 += d2;
              else {
                for (y2 = 0, c2 += d2, w2 = 0; w2 < m2.length; w2++) if (m2[w2] !== K) {
                  y2 = w2;
                  break;
                }
                c2 > n3 && (A2 = [], d2 = Un(I2, g2, m2 = m2.substring(y2), f2)), c2 = D;
              }
            }
            if (d2 > n3) {
              for (s2.length > 0 && (A2.push(Hn(s2, I2, f2, e3, i3)), s2 = [], u2 = 0), M2 = Yn(h2, n3 - u2, n3, i3, e3, I2), s2 = s2.concat(M2[0]), b(M2[0]) || A2.push(Hn(s2, I2, f2, e3, i3)), s2 = [], u2 = 0, w2 = 1; w2 < M2.length - 1; w2++) b(M2[w2]) || A2.push(Hn(M2[w2], I2, f2, e3, i3));
              M2.length > 1 && (C2 = M2[M2.length - 1], s2 = s2.concat(C2), b(C2) || (u2 += Qn(C2, e3, i3, I2)));
            } else if (u2 + d2 > n3) {
              for ("" !== (S2 = Gn(Kn(s2))).trim() && A2.push(Hn(s2, I2, f2, e3, i3)), s2 = [], T2 = true, x2 = 0; x2 < h2.length; x2++) "" !== (null === (a2 = null === (o2 = h2[x2]) || void 0 === o2 ? void 0 : o2.text) || void 0 === a2 ? void 0 : a2.trim()) && (T2 = false);
              false === T2 && (s2 = s2.concat(h2), u2 = d2);
            } else s2 = s2.concat(h2), u2 += d2;
          }
          return s2.length > 0 && A2.push(Hn(s2, I2, f2, e3, i3)), A2;
        }
        function Qn(t3, n3, e3, i3) {
          var r2, o2, a2, u2 = 0, s2 = i3 || Fn();
          for (r2 = 0; r2 < t3.length; r2++) o2 = t3[r2].style && t3[r2].style.font || n3, a2 = Qt(t3[r2], o2), u2 += e3 ? ht.qao(o2, t3[r2].text) * t3[r2].text.length : vt(s2, a2, t3[r2].text);
          return u2;
        }
        function Kn(t3) {
          var n3, e3 = "";
          for (n3 = 0; n3 < t3.length; n3++) e3 += t3[n3].text;
          return e3;
        }
        function Jn(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2 = -1, f2 = true;
          for (r2 = 0; r2 < n3.length; r2++) if (!b(n3[r2].text)) for (o2 = 0; o2 < n3[r2].text.length; o2++) a2 = n3[r2].text.charAt(o2), u2 = n3[r2].style ? n3[r2].style.font : e3, ht.bt(t3, u2), s2 = ht.vt(u2), a2 === K || f2 ? a2 !== K && f2 && (c2 = i3 ? s2 : vt(t3, e3, a2), f2 = false) : c2 = R(c2, i3 ? s2 : vt(t3, e3, a2));
          return c2;
        }
        function Xn(t3) {
          var n3, e3, i3, r2, o2 = t3.getRangeAt(0), a2 = o2.startContainer, u2 = o2.startOffset, s2 = $n(a2);
          s2 && (n3 = se(a2, u2)) && n3.zeroWidthCharNode && (e3 = n3.zeroWidthCharNode, (i3 = t3.getRangeAt(0)).setStart(e3, 1), i3.deleteContents(), (r2 = I.createRange()).setStart(e3, 1), r2.setEnd(e3, 1), t3.removeAllRanges(), t3.addRange(r2), Kt(event));
        }
        function qn(t3) {
          return t3.textContent && 1 === t3.textContent.length && t3.textContent.split("")[0] === it;
        }
        function $n(t3) {
          return t3.textContent && t3.textContent.split("")[0] === it;
        }
        function te(t3, n3, e3) {
          if (1 === n3 && ne(e3.firstChild) && ne(e3.firstChild.firstChild)) {
            var i3 = e3.firstChild.firstChild.lastChild, r2 = void 0;
            if (t3 === e3) return 1 === (r2 = i3.textContent).length && r2[0] !== it && ee(i3.previousSibling);
            if (i3 === t3 || ee(i3) && t3 === i3.previousSibling) return 1 === (r2 = t3.textContent).length && r2[0] !== it && ee(t3.previousSibling);
          }
          return false;
        }
        function ne(t3) {
          return t3 && "SPAN" === t3.tagName;
        }
        function ee(t3) {
          return t3 && "BR" === t3.tagName;
        }
        function ie(t3) {
          return t3 && "DIV" === t3.tagName;
        }
        function re(t3) {
          return t3 instanceof Text;
        }
        function oe(t3) {
          if (t3) {
            var n3 = t3.childNodes;
            return ne(t3) && 2 === n3.length && ee(n3[0]) && ue(n3[1]);
          }
          return false;
        }
        function ae(t3, n3) {
          if (t3) {
            var e3 = t3.childNodes;
            return ne(t3) && ee(e3[n3 - 2]) && ue(e3[n3 - 1]);
          }
          return false;
        }
        function ue(t3) {
          if (t3 && re(t3)) {
            var n3 = t3.textContent;
            if (1 === n3.length && he(n3[0])) return true;
          }
          return false;
        }
        function se(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = t3.childNodes.length, s2 = (t3.innerText || t3.textContent)[0];
          if (!he(s2) || 0 !== n3 && 1 !== n3) if (0 === n3) i3 = t3, t3 === t3.parentNode.firstChild && (i3 = t3.parentNode), e3 = (r2 = de(i3, oe)) && r2.lastChild;
          else {
            if (ie(t3)) return 1 === u2 && 1 === n3 ? e3 = t3.firstChild.firstChild.lastChild : u2 > 1 && n3 === u2 && (e3 = t3.lastChild), ue(e3) ? { zeroWidthCharNode: e3, previousTextNode: e3.previousSibling.previousSibling } : oe(e3) ? { zeroWidthCharNode: e3, previousTextNode: de(i3, re) } : _;
            !ne(t3) || n3 !== u2 && n3 !== u2 - 1 || (oe(t3) ? e3 = t3 : oe(t3.lastChild) ? e3 = t3.lastChild : ae(t3, n3) && (e3 = t3.childNodes[n3 - 1]));
          }
          else e3 = t3;
          return e3 ? (ne(e3) ? i3 = e3 : re(e3) && (i3 = (o2 = e3.previousSibling) === (a2 = e3.parentNode).firstChild ? a2 : o2), { zeroWidthCharNode: e3, previousTextNode: de(i3, re) }) : _;
        }
        function ce(t3, n3) {
          var e3, i3, r2 = t3.anchorNode, o2 = t3.anchorOffset, a2 = r2.textContent, u2 = a2.length;
          if (o2 === u2) {
            if (i3 = void 0, !(e3 = ve(r2))) return _;
            if (ne(e3) && he(e3.textContent[0])) {
              for (; ne(e3.firstChild); ) e3 = e3.firstChild;
              i3 = e3.childNodes[1];
            } else ee(e3) && he(e3.nextSibling.textContent[0]) && (i3 = e3.nextSibling);
            return { node: i3, offset: 1 };
          }
          return 0 === o2 && he(a2[0]) ? { node: r2, offset: n3 ? 0 : 2 } : _;
        }
        function fe(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2 = "", h2 = t3.childNodes, d2 = h2.length;
          for (a2 = 0; a2 < d2; a2++) ne(u2 = h2[a2]) ? l2 += fe(u2, n3, e3, i3, r2, o2) : re(u2) ? (s2 = n3 && n3.startContainer, c2 = n3 && n3.endContainer, f2 = u2.textContent, u2 === s2 || u2 === c2 ? s2 !== c2 ? u2 === s2 ? (l2 += le(f2, e3, f2.length, r2), o2 = true) : (l2 += le(f2, 0, i3, ""), o2 = false) : l2 += le(f2, e3, i3, r2) : o2 || (l2 += f2)) : ee(u2) && !o2 && (l2 += "\n");
          return l2;
        }
        function le(t3, n3, e3, i3) {
          var r2 = t3.substr(0, n3), o2 = t3.substr(e3, t3.length - e3);
          return r2 + i3 + o2;
        }
        function he(t3) {
          return t3 === it;
        }
        function de(t3, n3) {
          for (var e3 = t3 && t3.previousSibling; e3; ) {
            if (n3(e3)) return e3;
            e3 = e3.lastChild;
          }
          return _;
        }
        function ve(t3) {
          for (var n3, e3 = t3; e3; ) {
            if (e3 !== (n3 = e3.parentNode).lastChild) return e3.nextSibling;
            e3 = n3;
          }
          return _;
        }
        function pe(t3) {
          var n3, e3;
          return t3 && ((n3 = t3.getActiveSheet()) || (e3 = t3.getActiveSheetTab()) && (n3 = e3.Mf)), n3;
        }
        function ge(t3, n3) {
          var e3, i3;
          t3 && ((e3 = t3._f(n3)) ? t3.setActiveSheet(n3) : (i3 = t3.Ofe(n3)) && t3.setActiveSheetTab(n3));
        }
        function me(t3, n3) {
          var e3, i3 = t3._f(n3);
          return i3 || (e3 = t3.Ofe(n3)) && (i3 = e3.Mf), i3;
        }
        function be(t3) {
          var n3, e3, i3, r2 = [].concat(t3.parent.sheets);
          for (t3 && t3.NMi && r2.push(t3), n3 = t3.parent.getSheetTabCount(), e3 = 0; e3 < n3; e3++) (i3 = t3.parent.getSheetTab(e3)) && i3.Mf && r2.push(i3.Mf);
          return r2;
        }
        function ye(t3) {
          return "=" === t3 || "+" === t3 || "-" === t3;
        }
        function we(t3) {
          if (t3.length > 1 && ye(t3[0]) && ye(t3[1])) return NaN;
          var n3 = ht.Xf(void 0, t3, true);
          return true === n3 || false === n3 ? NaN : n3;
        }
        function Me(t3) {
          return t3 && t3.length > 0 && ye(t3[0]) && !ye(t3) && isNaN(we(t3));
        }
        function Ce(t3, n3) {
          var e3 = B(10, n3);
          return F(t3 * e3) / e3;
        }
        function Se(t3) {
          return false === t3;
        }
        function Te(t3) {
          if (t3) {
            var n3 = t3.applyFont, e3 = t3.applyFill, i3 = t3.applyBorder, r2 = t3.applyAlignment, o2 = t3.applyNumberFormat, a2 = t3.applyProtection;
            Se(n3) && (delete t3.foreColor, delete t3.textDecoration, delete t3.themeFont, delete t3.font), Se(e3) && delete t3.backColor, Se(i3) && (delete t3.borderLeft, delete t3.borderTop, delete t3.borderRight, delete t3.borderBottom, delete t3.diagonalDown, delete t3.diagonalUp), Se(r2) && (delete t3.textIndent, delete t3.wordWrap, delete t3.hAlign, delete t3.vAlign, delete t3.isVerticalText, delete t3.shrinkToFit, delete t3.textOrientation), Se(o2) && delete t3.formatter, Se(a2) && (delete t3.locked, delete t3.hidden);
          }
        }
        function xe(t3, n3, e3, i3) {
          var r2, o2;
          e3 && (r2 = e3.foreColor, r2 = yt.m(n3, r2), i3 = b(e3.opacity) ? i3 : e3.opacity, b(i3) || ((o2 = d._(r2)).a = i3, r2 = d.j(o2)), t3.fillStyle !== r2 && (t3.fillStyle = r2 || "#000000"));
        }
        function Ae(t3) {
          return s.Cmt(t3.split(""), false) ? t3 : "'" + t3.replace(/'/g, "''") + "'";
        }
        function Ie(t3, n3, i3, r2, o2) {
          if (Gt || (Gt = e2("SheetsCalc")), Gt) return Gt.rangeToFormula(t3, n3, i3, r2, o2);
        }
        function ke(t3, n3, i3, r2, o2) {
          return Gt || (Gt = e2("SheetsCalc")), Gt.formulaToExpression(t3, n3, i3, r2, o2);
        }
        function Ne(t3, n3, i3, r2, o2) {
          return Gt || (Gt = e2("SheetsCalc")), Gt.evaluateExpressionAsync(t3, n3, i3, r2, { vDt: o2 });
        }
        function je(t3, n3, i3, r2) {
          return Gt || (Gt = e2("SheetsCalc")), Gt.evaluateFormulaAsync(t3, n3, i3, r2);
        }
        function De(t3, n3) {
          var e3, i3, r2 = Array.isArray(t3), o2 = "[object Object]" === Object.prototype.toString.call(t3);
          if (r2) {
            for (e3 = [], i3 = 0; i3 < t3.length; i3++) e3[i3] = De(t3[i3], n3);
            return e3;
          }
          if (o2) {
            for (i3 in e3 = {}, t3) b(t3[i3]) && !n3 || (e3[i3] = De(t3[i3], n3));
            return e3;
          }
          return t3;
        }
        function _e(t3) {
          t3 && t3.length && t3.forEach((function(t4) {
            var n3 = t4.sheet, e3 = t4.table, i3 = t4.oldRange, r2 = t4.newRange;
            n3.S4t(e3, i3, r2);
          }));
        }
        function Oe(t3, n3, e3) {
          var i3 = t3.row, r2 = t3.rowCount, o2 = Re(i3, r2, n3, e3), a2 = o2.index, u2 = o2.count;
          t3.row = a2, t3.rowCount = u2;
        }
        function Ee(t3, n3, e3) {
          var i3 = t3.col, r2 = t3.colCount, o2 = Re(i3, r2, n3, e3), a2 = o2.index, u2 = o2.count;
          t3.col = a2, t3.colCount = u2;
        }
        function Re(t3, n3, e3, i3) {
          var r2 = { index: t3, count: n3 }, o2 = t3 + n3 - 1, a2 = e3 + i3 - 1;
          return e3 < t3 ? a2 < t3 ? r2.index -= i3 : a2 <= o2 ? (r2.index = e3, r2.count -= a2 - t3 + 1) : (r2.index = e3, r2.count = 0) : e3 <= o2 && (a2 <= o2 ? r2.count -= i3 : r2.count = e3 - t3), r2;
        }
        function Le(t3, n3, e3) {
          var i3 = a.UsedRangeType.style | a.UsedRangeType.rowStyle | a.UsedRangeType.colStyle | a.UsedRangeType.data | a.UsedRangeType.formula | a.UsedRangeType.table | a.UsedRangeType.pivottable | a.UsedRangeType.dataRange, r2 = e3 ? new Ct(n3, -1, 1, -1) : new Ct(-1, n3, -1, 1), o2 = t3.getUsedRangeByRange(i3, r2);
          if (o2) return e3 ? o2.col + o2.colCount : o2.row + o2.rowCount;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.kf = n2.Df = n2.rke = n2._f = n2.Ef = n2.jf = n2.Of = n2.di = n2.Rf = n2.$e = n2.q = n2.resetSize = n2.W3e = n2.zt = n2.Bf = n2.Lf = n2.Be = n2.Ff = n2.Events = n2.Pf = n2.getUnionRange = n2.areSelectionsEqual = n2.Ec = n2.Range = n2.Rect = n2.Point = n2.I = n2.hi = n2.mt = n2.getTextContentWithoutEndBlank = n2.isIgnoreEndBlank = n2.removeEndSpaceOfFormattedData = n2.vkr = n2.util = n2.getFontHeightWithCanvas = n2.ColorHelper = n2.findControl = n2.getTypeFromString = n2.CursorResource = n2.productInfo = n2.defineProperty = n2.isDefined = n2.FormulaPrefix = n2.BUILT_IN_STYLE_REGEX = n2.NORMAL_RADIO_LIST_FONT = n2.SYMBOL_FONT_FAMILY = n2.GREEK_LETTER_FONT_FAMILY = n2.FallbackFontFamily = n2.MAX_COLUMN_COUNT = n2.MAX_ROW_COUNT = void 0, n2.akr = n2.ukr = n2.handleRestoredTableResizedArgs = n2.WAe = n2.RF = n2.evaluateFormulaAsync = n2.evaluateExpressionAsync = n2.formulaToExpression = n2.rangeToFormula = n2.qTe = n2.resetFillStyle = n2.AL = n2.ExcelNumerFormat = n2.SJSColumnWidthHelper = n2.unknownFontMaxDigitWidthMap = n2.SharedStrings = n2.NUMBER_ARRAY = n2.BaseUsedRange = n2.UsedRangeUtil = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/core.ns.js"), a = e2("./dist/core/core.enum.js"), u = e2("./dist/core/excel-io-util/common.js"), s = e2("CalcEngine"), c = e2("./dist/core/util/imageLoader.js"), f = e2("./dist/core/worksheet/stylehelper.js"), n2.MAX_ROW_COUNT = 1048576, n2.MAX_COLUMN_COUNT = 16384, l = r.GC$, h = l.extend, d = i2.Common.ft, v = i2.Common.st, p = i2.Common.Uf.Gf, g = i2.Formatter && i2.Formatter.GeneralFormatter, m = i2.Formatter && i2.Formatter.Hf, b = i2.Common.lt.ht, y = i2.Common.lt.q8, w = u.StringEx.Xi, M = i2.Common.zf, C = i2.Common.CultureManager, S = new i2.Common.ResourceManager(o.SR), T = S.getResource.bind(S), n2.FallbackFontFamily = '"Helvetica Neue", Arial, sans-serif', x = u.Util.addXLFNPrefix, n2.GREEK_LETTER_FONT_FAMILY = "SJSRadioListGreekLetterFont", n2.SYMBOL_FONT_FAMILY = "SJSRadioListSymbolFont", n2.NORMAL_RADIO_LIST_FONT = "SJSRadioListFont", n2.BUILT_IN_STYLE_REGEX = /^(__builtInTableStyle\d+)?__builtInStyle\d+$/, A = window, I = document, k = "boolean", N = "date", j = "function", D = void 0, _ = null, O = Math.floor, E = Math.ceil, R = Math.min, L = Math.max, F = Math.round, B = Math.pow, P = Math.sqrt, G = Math.atan2, U = Math.cos, H = Math.abs, V = Math.sin, z = parseInt, Y = parseFloat, Z = isNaN, W = 0.7, Q = "px", K = " ", J = ".", X = "string", q = "number", $ = "touch", tt = "MSPOINTER_TYPE_TOUCH", nt = new RegExp("^/Date\\((-?\\d+)([-+]{1}\\d+)?\\)/\\s*$"), et = new RegExp("^/OADate\\(([-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)\\)/\\s*$"), it = "​", n2.FormulaPrefix = ["=", "+", "-"], n2.isDefined = Vt, n2.defineProperty = Wt, n2.productInfo = { productVersion: "18.2.3" }, n2.CursorResource = { ResizeCol: "col-Resize", ResizeRow: "row-resize", ResizeHiddenCol: "w-resize", ResizeHiddenRow: "n-resize", DragHeaderGrab: "grab", DragHeaderGrabbing: "grabbing" }, rt = function(t3) {
          var n3, e3, i3, r2 = false, o2 = A;
          if (typeof t3 === X) {
            for (e3 = 0, i3 = (n3 = t3.split(J)).length; e3 < i3 && o2; e3++) o2 = o2[n3[e3]];
            o2 && e3 === i3 && i3 > 0 && (r2 = true);
          }
          return r2 ? o2 : D;
        }, n2.getTypeFromString = rt, ot = function(t3) {
          return typeof t3 === X && (t3 = I.getElementById(t3)), l(t3).data("workbook");
        }, n2.findControl = ot, at = [4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4286578688, 4278222848, 4278190208, 4286611456, 4286578816, 4278222976, 4290822336, 4286611584, 4288256511, 4288230246, 4294967244, 4291624959, 4284874854, 4294934656, 4278216396, 4291611903, 4278190208, 4294902015, 4294967040, 4278255615, 4286578816, 4286578688, 4278222976, 4278190335, 4278242559, 4291624959, 4291624908, 4294967193, 4288269567, 4294941132, 4291598847, 4294954137, 4281558783, 4281584844, 4288269312, 4294953984, 4294940928, 4294927872, 4284901017, 4288059030, 4278203238, 4281571686, 4278203136, 4281545472, 4288230144, 4288230246, 4281545625, 4281545523, 4278190080, 4294967295], ut = { aliceblue: 4293982463, antiquewhite: 4294634455, aqua: 4278255615, aquamarine: 4286578644, azure: 4293984255, beige: 4294309340, bisque: 4294960324, black: 4278190080, blanchedalmond: 4294962125, blue: 4278190335, blueviolet: 4287245282, brown: 4289014314, burlywood: 4292786311, cadetblue: 4284456608, chartreuse: 4286578432, chocolate: 4291979550, coral: 4294934352, cornflowerblue: 4284782061, cornsilk: 4294965468, crimson: 4292613180, cyan: 4278255615, darkblue: 4278190219, darkcyan: 4278225803, darkgoldenrod: 4290283019, darkgray: 4289309097, darkgreen: 4278215680, darkkhaki: 4290623339, darkmagenta: 4287299723, darkolivegreen: 4283788079, darkorange: 4294937600, darkorchid: 4288230092, darkred: 4287299584, darksalmon: 4293498490, darkseagreen: 4287609999, darkslateblue: 4282924427, darkslategray: 4281290575, darkturquoise: 4278243025, darkviolet: 4287889619, deeppink: 4294907027, deepskyblue: 4278239231, dimgray: 4285098345, dodgerblue: 4280193279, feldspar: 4291924597, firebrick: 4289864226, floralwhite: 4294966e3, forestgreen: 4280453922, fuchsia: 4294902015, gainsboro: 4292664540, ghostwhite: 4294506751, gold: 4294956800, goldenrod: 4292519200, gray: 4286611584, green: 4278222848, greenyellow: 4289593135, honeydew: 4293984240, hotpink: 4294928820, "indianred ": 4291648604, "indigo ": 4283105410, ivory: 4294967280, khaki: 4293977740, lavender: 4293322490, lavenderblush: 4294963445, lawngreen: 4286381056, lemonchiffon: 4294965965, lightblue: 4289583334, lightcoral: 4293951616, lightcyan: 4292935679, lightgoldenrodyellow: 4294638290, lightgrey: 4292072403, lightgreen: 4287688336, lightpink: 4294948545, lightsalmon: 4294942842, lightseagreen: 4280332970, lightskyblue: 4287090426, lightslateblue: 4286869759, lightslategray: 4286023833, lightsteelblue: 4289774814, lightyellow: 4294967264, lime: 4278255360, limegreen: 4281519410, linen: 4294635750, magenta: 4294902015, maroon: 4286578688, mediumaquamarine: 4284927402, mediumblue: 4278190285, mediumorchid: 4290401747, mediumpurple: 4287852760, mediumseagreen: 4282168177, mediumslateblue: 4286277870, mediumspringgreen: 4278254234, mediumturquoise: 4282962380, mediumvioletred: 4291237253, midnightblue: 4279834992, mintcream: 4294311930, mistyrose: 4294960353, moccasin: 4294960309, navajowhite: 4294958765, navy: 4278190208, oldlace: 4294833638, olive: 4286611456, olivedrab: 4285238819, orange: 4294944e3, orangered: 4294919424, orchid: 4292505814, palegoldenrod: 4293847210, palegreen: 4288215960, paleturquoise: 4289720046, palevioletred: 4292374675, papayawhip: 4294963157, peachpuff: 4294957753, peru: 4291659071, pink: 4294951115, plum: 4292714717, powderblue: 4289781990, purple: 4286578816, red: 4294901760, rosybrown: 4290547599, royalblue: 4282477025, saddlebrown: 4287317267, salmon: 4294606962, sandybrown: 4294222944, seagreen: 4281240407, seashell: 4294964718, sienna: 4288696877, silver: 4290822336, skyblue: 4287090411, slateblue: 4285160141, slategray: 4285563024, snow: 4294966010, springgreen: 4278255487, steelblue: 4282811060, tan: 4291998860, teal: 4278222976, thistle: 4292394968, tomato: 4294927175, turquoise: 4282441936, violet: 4293821166, violetred: 4291829904, wheat: 4294303411, white: 4294967295, whitesmoke: 4294309365, yellow: 4294967040, yellowgreen: 4288335154, transparent: 16777215 }, st = { "infoBackground [80]": 4294967265, infoBackground: 4294967265, "window [65]": 4294967295, window: 4294967295 }, ct = (function() {
          function t3() {
          }
          return t3.hexToARGB = function(t4) {
            return "string" == typeof t4 && (t4 = parseInt(t4, 16)), { r: t4 >> 16 & 255, g: t4 >> 8 & 255, b: 255 & t4, a: t4 >> 24 & 255 };
          }, t3.convertRgbToXyz = function(t4) {
            var n3 = function(t5) {
              return t5 = (t5 /= 255) > 0.04045 ? B((t5 + 0.055) / 1.055, 2.4) : t5 / 12.92, t5 *= 100;
            }, e3 = t4.r, i3 = t4.g, r2 = t4.b, o2 = n3(e3), a2 = n3(i3), u2 = n3(r2), s2 = 0.4124564 * o2 + 0.3575761 * a2 + 0.1804375 * u2, c2 = 0.2126729 * o2 + 0.7151522 * a2 + 0.072175 * u2, f2 = 0.0193339 * o2 + 0.119192 * a2 + 0.9503041 * u2;
            return { x: s2, y: c2, z: f2 };
          }, t3.convertXyzToLab = function(t4) {
            var n3, e3, i3, r2 = function(t5) {
              return t5 > 8856e-6 ? B(t5, 1 / 3) : 7.787 * t5 + 16 / 116;
            }, o2 = t4.x, a2 = t4.y, u2 = t4.z;
            return a2 /= 100, u2 /= 107.304, o2 = r2(o2 /= 94.811), { lightness: n3 = 116 * (a2 = r2(a2)) - 16, redGreen: e3 = 500 * (o2 - a2), blueYellow: i3 = 200 * (a2 - (u2 = r2(u2))) };
          }, t3.calculateDeltaE2000 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = t4.lightness, b2 = t4.redGreen, y2 = t4.blueYellow, w2 = n3.lightness, M2 = n3.redGreen, C2 = n3.blueYellow, S2 = function(t5) {
              return 360 * t5 / (2 * Math.PI);
            }, T2 = function(t5) {
              return 2 * Math.PI * t5 / 360;
            }, x2 = (m2 + w2) / 2, A2 = P(B(b2, 2) + B(y2, 2)), I2 = P(B(M2, 2) + B(C2, 2)), k2 = (A2 + I2) / 2, N2 = (1 - P(B(k2, 7) / (B(k2, 7) + B(25, 7)))) / 2, j2 = b2 * (1 + N2), D2 = M2 * (1 + N2), _2 = P(B(j2, 2) + B(y2, 2)), O2 = P(B(D2, 2) + B(C2, 2)), E2 = (_2 + O2) / 2, R2 = S2(G(y2, j2));
            return R2 < 0 && (R2 += 360), (e3 = S2(G(C2, D2))) < 0 && (e3 += 360), i3 = H(R2 - e3) > 180 ? (R2 + e3 + 360) / 2 : (R2 + e3) / 2, r2 = 1 - 0.17 * U(T2(i3 - 30)) + 0.24 * U(T2(2 * i3)) + 0.32 * U(T2(3 * i3 + 6)) - 0.2 * U(T2(4 * i3 - 63)), H(o2 = e3 - R2) > 180 && (e3 <= R2 ? o2 += 360 : o2 -= 360), a2 = w2 - m2, u2 = O2 - _2, o2 = 2 * P(_2 * O2) * V(T2(o2) / 2), s2 = 1 + 0.015 * B(x2 - 50, 2) / P(20 + B(x2 - 50, 2)), c2 = 1 + 0.045 * E2, f2 = 1 + 0.015 * E2 * r2, l2 = 30 * Math.exp(-B((i3 - 275) / 25, 2)), d2 = -(h2 = 2 * P(B(E2, 7) / (B(E2, 7) + B(25, 7)))) * V(2 * T2(l2)), p2 = 1, g2 = 1, P(B(a2 / ((v2 = 1) * s2), 2) + B(u2 / (p2 * c2), 2) + B(o2 / (g2 * f2), 2) + d2 * (u2 / (p2 * c2)) * (o2 / (g2 * f2)));
          }, t3.getClosestColorIndex = function(n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            for (e3 === D && (e3 = 64), i3 = -1, r2 = Number.MAX_VALUE, o2 = t3.convertXyzToLab(t3.convertRgbToXyz(n3)), a2 = Math.min(t3.paletteInLab.length - 1, e3); a2 >= 0; a2--) u2 = t3.paletteInLab[a2], (s2 = t3.calculateDeltaE2000(u2, o2)) < r2 && (r2 = s2, i3 = a2);
            return i3;
          }, t3.getHexNumString = function(t4) {
            var n3, e3 = +t4;
            return isNaN(e3) ? t4 + "" : (n3 = (t4 = e3).toString(16), t4 < 16 && (n3 = "0" + n3), n3);
          }, t3.convertColorToHex = function(n3) {
            var e3, i3, r2, o2, a2, u2;
            if (n3) return "string" != typeof n3 ? n3 : ("#" === (e3 = n3.toLowerCase()).substring(0, 1) ? 7 === e3.length ? i3 = "FF" + e3.substring(1).toUpperCase() : 4 === e3.length && (i3 = "FF" + (r2 = e3[1] + e3[1] + e3[2] + e3[2] + e3[3] + e3[3]).toUpperCase()) : "rgb(" === e3.substring(0, 4) ? (a2 = e3.indexOf("("), u2 = e3.indexOf(")"), o2 = e3.substring(a2 + 1, u2).split(","), i3 = "FF" + (r2 = t3.getHexNumString(o2[0]) + t3.getHexNumString(o2[1]) + t3.getHexNumString(o2[2])).toUpperCase()) : "rgba(" === e3.substring(0, 5) ? (a2 = e3.indexOf("("), u2 = e3.indexOf(")"), o2 = e3.substring(a2 + 1, u2).split(","), i3 = (r2 = t3.getHexNumString(o2[3]) + t3.getHexNumString(o2[0]) + t3.getHexNumString(o2[1]) + t3.getHexNumString(o2[2])).toUpperCase()) : ut[e3] && (i3 = ut[e3].toString(16).toUpperCase()), i3);
          }, t3.convertHexColorToArgb = function(n3) {
            return t3.hexToARGB(t3.convertColorToHex(n3));
          }, t3.getIndexedColor = function(t4) {
            var n3, e3, i3, r2;
            return 32767 === t4 || t4 < 0 || t4 >= at.length ? "#000000" : at[t4] !== D ? "rgb(" + (e3 = (n3 = at[t4]) >> 16 & 255) + "," + (i3 = n3 >> 8 & 255) + "," + (r2 = 255 & n3) + ")" : void 0;
          }, t3.isSystemColor = function(t4) {
            return !!st[t4];
          }, t3.convertSystemColor = function(t4, n3) {
            if (t4 && n3) {
              var e3 = n3, i3 = void 0;
              st[e3] && (n3 = (i3 = t4.getNamedStyle("SJS_".concat(e3.split(" ")[0]))) ? i3.backColor : "#" + st[e3].toString(16).substring(2));
            }
            return n3;
          }, t3.palette = [4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4286578688, 4278222848, 4278190208, 4286611456, 4286578816, 4278222976, 4290822336, 4286611584, 4288256511, 4288230246, 4294967244, 4291624959, 4284874854, 4294934656, 4278216396, 4291611903, 4278190208, 4294902015, 4294967040, 4278255615, 4286578816, 4286578688, 4278222976, 4278190335, 4278242559, 4291624959, 4291624908, 4294967193, 4288269567, 4294941132, 4291598847, 4294954137, 4281558783, 4281584844, 4288269312, 4294953984, 4294940928, 4294927872, 4284901017, 4288059030, 4278203238, 4281571686, 4278203136, 4281545472, 4288230144, 4288230246, 4281545625, 4281545523, 4278190080], t3.paletteInLab = [{ lightness: 0, redGreen: 0, blueYellow: 0 }, { lightness: 100.00000386666655, redGreen: 0.41450003183252093, blueYellow: -0.9762337974368318 }, { lightness: 53.24079414130722, redGreen: 80.40628534603033, blueYellow: 66.9485076645686 }, { lightness: 87.73472235279792, redGreen: -85.88347705836918, blueYellow: 82.71231806483974 }, { lightness: 32.297010932850725, redGreen: 79.42575443955474, blueYellow: -108.79311020157895 }, { lightness: 97.13926722430631, redGreen: -21.167322894165398, blueYellow: 93.98697624453854 }, { lightness: 60.32421212836874, redGreen: 98.58848986524677, blueYellow: -61.76412516100469 }, { lightness: 91.11321981275862, redGreen: -47.74463372340881, blueYellow: -15.101613782352352 }, { lightness: 0, redGreen: 0, blueYellow: 0 }, { lightness: 100.00000386666655, redGreen: 0.41450003183252093, blueYellow: -0.9762337974368318 }, { lightness: 53.24079414130722, redGreen: 80.40628534603033, blueYellow: 66.9485076645686 }, { lightness: 87.73472235279792, redGreen: -85.88347705836918, blueYellow: 82.71231806483974 }, { lightness: 32.297010932850725, redGreen: 79.42575443955474, blueYellow: -108.79311020157895 }, { lightness: 97.13926722430631, redGreen: -21.167322894165398, blueYellow: 93.98697624453854 }, { lightness: 60.32421212836874, redGreen: 98.58848986524677, blueYellow: -61.76412516100469 }, { lightness: 91.11321981275862, redGreen: -47.74463372340881, blueYellow: -15.101613782352352 }, { lightness: 25.53553096346318, redGreen: 48.23338316760745, blueYellow: 37.96950789833623 }, { lightness: 46.22743146876261, redGreen: -51.51899057263506, blueYellow: 49.61670487243066 }, { lightness: 12.9719668574308, redGreen: 47.64519130280251, blueYellow: -65.26181066276018 }, { lightness: 51.86894337734398, redGreen: -12.69765903738712, blueYellow: 56.380043157800905 }, { lightness: 29.784666617920195, redGreen: 59.1403568405364, blueYellow: -37.05049551887899 }, { lightness: 48.2540934618616, redGreen: -28.64061189579556, blueYellow: -9.059017225814237 }, { lightness: 77.7043667134314, redGreen: 0.3348315663007084, blueYellow: -0.7885979888260453 }, { lightness: 53.585015771669404, redGreen: 0.2486464680258038, blueYellow: -0.5856141545440119 }, { lightness: 67.10642818332406, redGreen: 24.661563327250835, blueYellow: -51.70481284997233 }, { lightness: 38.02326868659504, redGreen: 47.530276772876526, blueYellow: -7.41000863702892 }, { lightness: 98.88366982816507, redGreen: -7.647377025903346, blueYellow: 23.604961406243042 }, { lightness: 96.64610006552223, redGreen: -15.626896975835969, blueYellow: -6.286449794841897 }, { lightness: 22.946593663526578, redGreen: 50.30757275587142, blueYellow: -31.51689638909162 }, { lightness: 68.21369400049187, redGreen: 48.529707503769, blueYellow: 22.097909906924063 }, { lightness: 44.03181574544729, redGreen: 15.497390355584283, blueYellow: -60.313393374835414 }, { lightness: 83.56960561788927, redGreen: 10.660290354444879, blueYellow: -25.869538462689157 }, { lightness: 12.9719668574308, redGreen: 47.64519130280251, blueYellow: -65.26181066276018 }, { lightness: 60.32421212836874, redGreen: 98.58848986524677, blueYellow: -61.76412516100469 }, { lightness: 97.13926722430631, redGreen: -21.167322894165398, blueYellow: 93.98697624453854 }, { lightness: 91.11321981275862, redGreen: -47.74463372340881, blueYellow: -15.101613782352352 }, { lightness: 29.784666617920195, redGreen: 59.1403568405364, blueYellow: -37.05049551887899 }, { lightness: 25.53553096346318, redGreen: 48.23338316760745, blueYellow: 37.96950789833623 }, { lightness: 48.2540934618616, redGreen: -28.64061189579556, blueYellow: -9.059017225814237 }, { lightness: 32.297010932850725, redGreen: 79.42575443955474, blueYellow: -108.79311020157895 }, { lightness: 76.31433784805343, redGreen: -24.045184322556313, blueYellow: -37.63232479221295 }, { lightness: 96.64610006552223, redGreen: -15.626896975835969, blueYellow: -6.286449794841897 }, { lightness: 95.46123799053612, redGreen: -25.20013221308681, blueYellow: 18.33180794427749 }, { lightness: 98.0661672083006, redGreen: -13.832882960730986, blueYellow: 47.940897645383274 }, { lightness: 80.27790732349922, redGreen: -3.692924875082826, blueYellow: -31.192993832087378 }, { lightness: 75.08051024268852, redGreen: 44.9470828980269, blueYellow: -10.53443113754624 }, { lightness: 71.44638619892534, redGreen: 38.40169770146873, blueYellow: -44.58196770374543 }, { lightness: 85.37715784474301, redGreen: 11.871131967975845, blueYellow: 31.5700614950422 }, { lightness: 48.789468602187014, redGreen: 37.72886428748323, blueYellow: -81.46151935827358 }, { lightness: 74.97920661167659, redGreen: -37.437024973414836, blueYellow: -12.053212107002897 }, { lightness: 76.04314994204388, redGreen: -38.98270545611504, blueYellow: 75.18013610138723 }, { lightness: 84.19958734726818, redGreen: 4.040877427542666, blueYellow: 84.79018925434798 }, { lightness: 72.2607240884026, redGreen: 30.50579205114734, blueYellow: 76.85864017596677 }, { lightness: 62.312481453511026, redGreen: 55.3256388060856, blueYellow: 71.01583749339153 }, { lightness: 45.11897896728884, redGreen: 12.741665540704494, blueYellow: -28.39942907333195 }, { lightness: 62.082179778109094, redGreen: 0.2790091803857031, blueYellow: -0.6571246580693746 }, { lightness: 21.3066228635372, redGreen: 6.957317762469661, blueYellow: -34.694697216998314 }, { lightness: 56.52959107095738, redGreen: -41.28375003303447, blueYellow: 17.929912574393892 }, { lightness: 17.308442495122094, redGreen: -27.576541316135987, blueYellow: 24.11521195522933 }, { lightness: 20.328171424265783, redGreen: -6.796668862699029, blueYellow: 28.392687041649655 }, { lightness: 36.25649980036505, redGreen: 41.047060654411325, blueYellow: 47.86323594949912 }, { lightness: 38.02326868659504, redGreen: 47.530276772876526, blueYellow: -7.41000863702892 }, { lightness: 27.765685279866425, redGreen: 33.339639613412324, blueYellow: -56.37161392120451 }, { lightness: 21.24673253653905, redGreen: 0.13309285609849897, blueYellow: -0.31346136150179893 }, { lightness: 0, redGreen: 0, blueYellow: 0 }], t3;
        })(), n2.ColorHelper = ct, n2.getFontHeightWithCanvas = on, ft = /&#(\d+);/g, lt = /&#x([0-9A-F]+);/gi, ht = (function() {
          function t3() {
          }
          return t3.Vf = function(t4) {
            for (var n3, e3 = ""; t4 > 0; t4 = parseInt((t4 - 1) / 26 + "", 10)) n3 = (t4 - 1) % 26, e3 = String.fromCharCode(65 + n3) + e3;
            return e3;
          }, t3.gt = function(n3, e3, i3, r2) {
            if (3 === n3) {
              var o2 = l.getType(e3);
              n3 = !i3 || "@" !== i3 && "@" !== i3.formatCached ? o2 === k ? 1 : o2 === q || o2 === N || o2 === X && (t3.Yf(e3) || t3.Hcr(e3)) ? 2 : 0 : 0, r2 && 0 !== r2 && (r2 > 0 ? n3 = 0 : r2 < 0 && (n3 = 2), -90 === r2 ? n3 = 0 : 90 === r2 && (n3 = 2));
            }
            return n3;
          }, t3.Yf = function(n3) {
            return t3.Zf.test(n3);
          }, t3.Hcr = function(n3) {
            return t3.Ycr.test(n3);
          }, t3.j = function(n3) {
            var e3, r2 = l.getType(n3);
            return n3 === _ || n3 === D ? n3 = "" : r2 === k ? n3 = n3.toString().toUpperCase() : r2 === N ? (e3 = 0 === n3.getHours() && 0 === n3.getMinutes() && 0 === n3.getSeconds() && 0 === n3.getMilliseconds(), n3 = i2.Common.ct.Pe(n3, e3 ? "M/d/yyyy" : "M/d/yyyy h:mm:ss")) : n3 = n3.richText ? t3.wt(n3) : n3.toString(), n3;
          }, t3.Wf = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, h2, d2, v2 = l(t4), p2 = n3, g2 = e3, m2 = "background-position", b2 = "background-size", y2 = "auto", w2 = "0%", M2 = "50%", C2 = "100%";
            switch (o2) {
              case 0:
                a2 ? v2.css(m2, a2.position).css(b2, a2.size) : v2.css(m2, w2 + K + w2).css(b2, C2 + K + C2);
                break;
              case 1:
                u2 = M2, s2 = M2, i3 > p2 && (u2 = w2), r2 > g2 && (s2 = w2), v2.css(m2, u2 + K + s2).css(b2, y2 + K + y2);
                break;
              case 2:
                c2 = 0, f2 = 0, h2 = p2, d2 = g2, g2 > 0 && r2 > 0 && p2 / g2 > i3 / r2 ? c2 = c2 + p2 / 2 - (h2 = i3 / r2 * g2) / 2 : p2 > 0 && i3 > 0 && g2 / p2 > r2 / i3 && (f2 = f2 + g2 / 2 - (d2 = r2 / i3 * p2) / 2), v2.css(m2, c2 + Q + K + f2 + Q).css(b2, h2 + Q + K + d2 + Q);
                break;
              case 3:
                v2.css(m2, w2 + K + w2).css(b2, y2 + K + y2);
            }
          }, t3.device = function() {
            var t4, n3, e3, i3, r2 = navigator.userAgent, o2 = r2.match(/iPad/i);
            if (o2) (t4 = o2[0]) && (n3 = "ipad" === t4.toLowerCase());
            else if ((o2 = r2.match(/Macintosh/i)) && (t4 = o2[0])) try {
              document.createEvent("TouchEvent"), n3 = "macintosh" === t4.toLowerCase();
            } catch (t5) {
            }
            return (o2 = r2.match(/iPhone/i)) && (t4 = o2[0]) && (e3 = "iphone" === t4.toLowerCase()), (o2 = r2.match(/android/i)) && (t4 = o2[0]) && (i3 = "android" === t4.toLowerCase()), (o2 = r2.match(/harmony/i)) && (t4 = o2[0]) && (i3 = "harmony" === t4.toLowerCase()), { ipad: n3, iphone: e3, android: i3 };
          }, t3.Qf = function() {
            var t4 = navigator.platform;
            return t4 && t4.indexOf("Mac") > -1;
          }, t3.Kf = function(t4) {
            if (t4 === D || t4 === _) return false;
            var n3 = t4.toString();
            return n3 = v.Jf(n3), !Z(Number("" === n3.trim() ? NaN : n3)) || /^[1-9]\d{0,2}(?:(,\d{3})*|\d*)(?:\.\d*)?$/.test(n3);
          }, t3.Xf = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2 = _, d2 = false;
            if (n3 && ((a2 = n3.formatter) ? (o2 ? h2 = o2 : t3.St(a2) || (h2 = a2, d2 = true), typeof h2 === X && g && (h2 = new g(h2))) : h2 = n3._autoFormatter), h2 && !h2.isAuto) {
              u2 = _;
              try {
                if (u2 = h2.parse(e3), d2 && u2 instanceof Date && (s2 = new g().getPreferredDisplayFormatter(e3, o2)) && (u2 = s2.parse(e3)), typeof u2 === q) return u2;
              } catch (t4) {
              }
              return u2 === D || u2 === _ ? e3 : u2;
            }
            if (i3) {
              if (c2 = void 0, c2 = {}, f2 = void 0, l2 = _, g) try {
                l2 = new g().getPreferredDisplayFormatter(e3, c2);
              } catch (t4) {
              }
              return typeof (f2 = c2.value) === q ? e3 = f2 : t3.Kf(e3) && (f2 = c2.value = e3), r2 && (r2.value = l2), f2 !== D && f2 !== _ ? f2 : e3;
            }
            return e3;
          }, t3.gi = function(t4) {
            for (var n3, e3, i3 = I.body, r2 = t4; r2 && r2.parentElement && r2.parentElement !== i3; ) r2 = r2.parentElement;
            return n3 = 1e3, r2 && r2.parentElement === i3 && (e3 = z(l(r2).css("z-index")), Z(e3) || (n3 += e3)), n3;
          }, t3.ri = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            if (!t4) return [];
            if (n3 = t4.indexOf("("), e3 = t4.lastIndexOf(")"), !(i3 = t4.substring(n3 + 1, e3))) return [];
            for (r2 = [], o2 = 0, a2 = "", u2 = 0, s2 = 0; s2 < i3.length; ) u2 = i3.indexOf("rgb", o2), -1 === (s2 = i3.indexOf("rgb", o2 + 1)) && (s2 = i3.length), a2 = i3.substring(u2, s2), r2.push(a2), o2 = s2;
            for (c2 = [], f2 = 0, l2 = r2.length; f2 < l2; f2++) d2 = (h2 = r2[f2]).indexOf(")"), v2 = h2.substring(0, d2 + 1), p2 = Y(h2.substring(d2 + 1, h2.length)), Z(p2) && (f2 === l2 - 1 ? p2 = 100 : f2 <= 1 && (p2 = 0)), (v2 || 0 !== f2) && (p2 /= 100, c2.push({ color: v2, point: p2 }));
            return c2;
          }, t3.qf = function(n3, e3, i3, r2, o2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = 0, C2 = [i3];
            for (r2 === a.AutoFitType.cellWithHeader && (i3 === a.SheetArea.viewport ? C2.push(1) : i3 === a.SheetArea.rowHeader && C2.push(0)), u2 = e3.Csr, i3 === a.SheetArea.viewport && (s2 = Le(e3, n3)), c2 = 0; c2 < C2.length; c2++) for (f2 = 0, l2 = C2[c2], h2 = o2 || e3.getRowCount(l2); f2 >= 0 && f2 < h2; ) if ((d2 = e3.Ut.findSpan(f2, n3, l2)) && (d2.col < n3 || d2.colCount > 1 || d2.row < f2)) f2 = d2.row + d2.rowCount;
            else {
              if (u2 && e3.Csr(f2, false, i3)) for (v2 = e3.Rsr(f2, false, i3), p2 = 0; p2 < v2; p2++) e3.rcr(f2, p2, false, i3) && (g2 = yn(e3, f2, n3, l2, i3, p2)) > M2 && (M2 = g2);
              if ((m2 = yn(e3, f2, n3, l2, i3)) > M2 && (M2 = m2), u2 && e3.Csr(f2, true, i3)) for (b2 = e3.Rsr(f2, true, i3), y2 = 0; y2 < b2; y2++) e3.rcr(f2, y2, true, i3) && (w2 = yn(e3, f2, n3, l2, i3, y2, true)) > M2 && (M2 = w2);
              l2 === a.SheetArea.viewport ? f2 = t3.n0(f2, n3, e3, l2, s2) : f2++;
            }
            return 0 === M2 ? M2 = e3.defaults.colWidth : M2 += E(3), E(M2);
          }, t3.n0 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, y2 = -1, w2 = e3.Csr;
            if (b(r2)) return e3.getRowCount(i3);
            for (o2 = t4 + 1; o2 < r2; o2++) {
              if (a2 = e3.$t(o2, n3, i3)) {
                y2 = o2;
                break;
              }
              if ((u2 = e3.getActualStyle(o2, n3, i3)) && (u2.cellType || u2.cellButtons && u2.cellButtons.length > 0 || f.W.Jue(u2))) {
                y2 = o2;
                break;
              }
              if (w2) {
                if (s2 = false, (c2 = e3.Rsr(o2, false, i3)) > 0) {
                  for (l2 = 0; l2 < c2; l2++) {
                    if (h2 = e3.$t(o2, n3, i3, D, { rowSpacingIndex: l2 })) {
                      y2 = o2, s2 = true;
                      break;
                    }
                    if ((d2 = e3.getActualStyle(o2, n3, i3, D, { rowSpacingIndex: l2 })) && (d2.cellType || d2.cellButtons && d2.cellButtons.length > 0 || f.W.Jue(d2))) {
                      y2 = o2, s2 = true;
                      break;
                    }
                  }
                  if (s2) break;
                }
                if ((v2 = e3.Rsr(o2, true, i3)) > 0) {
                  for (p2 = 0; p2 < v2; p2++) {
                    if (g2 = e3.$t(o2, n3, i3, D, { rowSpacingIndex: p2, isAfterRowSpacing: true })) {
                      y2 = o2, s2 = true;
                      break;
                    }
                    if ((m2 = e3.getActualStyle(o2, n3, i3, D, { rowSpacingIndex: p2, isAfterRowSpacing: true })) && (m2.cellType || m2.cellButtons && m2.cellButtons.length > 0 || f.W.Jue(m2))) {
                      y2 = o2, s2 = true;
                      break;
                    }
                  }
                  if (s2) break;
                }
              }
            }
            return y2;
          }, t3.e0 = function(n3, e3, i3, r2) {
            var o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = e3.Dn, C2 = 0, S2 = [i3], T2 = e3.zoom();
            for (1 === r2 && (3 === i3 ? S2.push(2) : 1 === i3 && S2.push(0)), i3 === a.SheetArea.viewport && (o2 = Le(e3, n3, true)), s2 = 0, c2 = false, f2 = 0; f2 < S2.length; f2++) for (i3 = S2[f2], l2 = 0, h2 = e3.getColumnCount(i3); l2 >= 0 && l2 < h2; ) (d2 = e3.Ut.findSpan(n3, l2, i3)) && (d2.row < n3 || d2.rowCount > 1 || d2.col < l2) ? l2 = d2.col + d2.colCount : (e3.getColumnWidth(l2, i3) > 0 && (p2 = (v2 = e3.MAe(n3, l2, i3)).font || M2.Nn(), v2.font = M2._n(p2), g2 = 0, (m2 = e3.getCellType(n3, l2, i3)) && (b2 = e3.getText(n3, l2, i3), y2 = e3.$t(n3, l2, i3, a.ValueType.richText), w2 = { sheet: e3, row: n3, col: l2, sheetArea: i3 }, g2 = m2.Fn(y2, b2, v2, T2, w2)), 2 === (u2 = e3.Lt(l2)) ? s2 = s2 + g2 + E(3) : (s2 && (g2 += s2, s2 = 0), 1 === u2 && (c2 = true)), s2 && (g2 = s2), g2 > C2 && (C2 = g2)), 3 === i3 ? l2 = t3.i0(n3, l2, e3, i3, o2) : l2++);
            return c2 && C2 < 60 && (C2 = 60), 0 === C2 ? C2 = e3.defaults.rowHeight : C2 += E(3), E(C2);
          }, t3.i0 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = -1;
            if (b(r2)) return e3.getColumnCount(i3);
            for (o2 = n3 + 1; o2 < r2; o2++) {
              if (a2 = e3.$t(t4, o2, i3)) {
                s2 = o2;
                break;
              }
              if ((u2 = e3.getActualStyle(t4, o2, i3)) && u2.cellType) {
                s2 = o2;
                break;
              }
            }
            return s2;
          }, t3.Bve = function(t4) {
            var n3, e3, r2, o2;
            if (t4 instanceof Date) return t4;
            if ("string" == typeof t4) {
              if (!(n3 = i2.Common.ct.yU(t4))) {
                if (isNaN(t4)) {
                  if (i2.Common.ct.u6t(t4)) return _;
                  if (n3 = new Date(t4), isNaN(n3.valueOf())) return _;
                  try {
                    if (e3 = /^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/, r2 = M.s6t(M.cJ(t4.replace(/[ \n]/g, ""), K), K), (o2 = e3.exec(r2)) && 4 === o2.length && (-1 === o2.indexOf(n3.getFullYear().toString()) || -1 === o2.indexOf(n3.getMonth().toString()) || -1 === o2.indexOf(n3.getDate().toString()))) return _;
                  } catch (t5) {
                    return _;
                  }
                } else if (!(n3 = i2.Common.ct.Y0(parseFloat(t4)))) return _;
              }
              return n3;
            }
            return "number" == typeof t4 ? isNaN(t4) ? _ : (n3 = i2.Common.ct.Y0(t4)) || _ : _;
          }, t3.formatValue2Text = function(n3, e3, r2, o2, a2) {
            var u2, c2, f2, l2, h2, d2, p2, b2, y2, w2;
            if (r2 && (u2 = o2.row, c2 = o2.col, f2 = o2.sheetArea, l2 = n3.formatter ? n3.formatter : n3._autoFormatter, h2 = a2 || {}, g && e3 !== _ && e3 !== D)) if (d2 = void 0, l2 && l2.isAuto) d2 = typeof e3 === q, p2 = t3.Kf(e3), !d2 && p2 && (e3 = v.Jf(e3)), e3 = l2.getPreferredEditingFormatter ? l2.getPreferredEditingFormatter(e3).format(e3) : e3;
            else if (typeof l2 !== X || t3.St(l2) || (l2 = new g(l2)), l2) try {
              e3 instanceof Date ? ((b2 = s && s.Convert.r0(e3)) && (e3 = b2), y2 = i2.Common.CultureManager.Fe().DateTimeFormat, w2 = i2.Common.ct.o0(e3), l2 = !m.a0(l2.formatString(), ["d", "y"]) && w2 >= 0 && w2 < 1 ? new g(y2.longTimePattern) : 0 === e3.getHours() && 0 === e3.getMinutes() && 0 === e3.getSeconds() && 0 === e3.getMilliseconds() ? new g(y2.shortDatePattern) : new g(y2.shortDatePattern + K + y2.longTimePattern), r2.u0 = true, e3 = l2.format(e3), h2.formatter = l2) : typeof e3 === q && (e3 = l2.getPreferredEditingFormatter ? l2.getPreferredEditingFormatter(e3).format(e3) : v.Ge(e3.toString()));
            } catch (t4) {
              e3 = r2.getText(u2, c2, f2);
            }
            else e3 = 0 === e3 ? "0" : r2.getText(u2, c2, f2);
            return e3 !== _ && e3 !== D && (e3 = t3.j(e3)), e3;
          }, t3.s0 = function(n3, e3, r2, o2) {
            var a2, u2, c2, f2, l2, h2;
            if (r2 && (a2 = o2 || {}, g && e3 !== _ && e3 !== D)) {
              if (u2 = void 0, n3 && n3.isAuto) u2 = typeof e3 === q, c2 = t3.Kf(e3), !u2 && c2 && (e3 = v.Jf(e3)), e3 = n3.getPreferredEditingFormatter ? n3.getPreferredEditingFormatter(e3).format(e3) : e3;
              else if (n3) try {
                e3 instanceof Date ? (typeof n3 !== X || t3.St(n3) || (n3 = new g(n3)), (f2 = s && s.Convert.r0(e3)) && (e3 = f2), l2 = i2.Common.CultureManager.Fe().DateTimeFormat, h2 = i2.Common.ct.o0(e3), n3 = !m.a0(n3.formatString(), ["d", "y"]) && h2 >= 0 && h2 < 1 ? new g(l2.longTimePattern) : 0 === e3.getHours() && 0 === e3.getMinutes() && 0 === e3.getSeconds() && 0 === e3.getMilliseconds() ? new g(l2.shortDatePattern) : new g(l2.shortDatePattern + K + l2.longTimePattern), e3 = n3.format(e3), a2.formatter = n3) : typeof e3 === q && (e3 = v.Ge(e3.toString()));
              } catch (t4) {
              }
            }
            return e3 !== _ && e3 !== D && (e3 = t3.j(e3)), e3;
          }, t3.c0 = function(t4, e3, i3, r2) {
            return !b(t4) && "string" == typeof t4 && !!(e3 || -1 === n2.FormulaPrefix.indexOf(t4) && t4.length > 0 && -1 !== n2.FormulaPrefix.indexOf(t4[0]) && i3 && !r2);
          }, t3.f0 = function(n3, e3, i3) {
            var r2, o2, a2 = "";
            if (n3) if ((r2 = n3.getFormulaInformation(e3, i3, 3)) && r2.hasFormula && !t3.HRe(e3, i3, n3)) {
              if (a2 = "=" + r2.formulaWithCulture, r2.isDynamicArray) return "";
            } else {
              if (o2 = n3.getValue(e3, i3), b(o2)) return o2;
              a2 = t3.s0(n3.getFormatter(e3, i3) || n3.l0(e3, i3, "_autoFormatter"), o2, n3) || "";
            }
            return a2;
          }, t3.h0 = function(t4, n3) {
            var e3, r2 = t4, o2 = i2.Common.CultureManager.Fe(n3).NumberFormat, a2 = o2 && o2.percentSymbol;
            return !(!a2 || !t4) && ("object" == typeof t4 && t4.formatCached && (r2 = t4.formatCached), "object" != typeof r2 && ("string" == typeof r2 && (e3 = v.v0(r2)).d0 > 0));
          }, t3.m0 = function(n3) {
            var e3, i3 = t3.Tt.msie || t3.Tt.edge, r2 = i3 && A.MSPointerEvent && (navigator.msMaxTouchPoints || 0) > 1;
            return n3 ? r2 : (e3 = i3 && A.PointerEvent && (navigator.maxTouchPoints || 0) > 1, r2 || e3);
          }, t3.wt = function(n3) {
            return n3 && n3.richText && n3.richText.length > 0 ? (n3.text || (n3 = t3.g0(n3)), n3.text) : n3;
          }, t3.g0 = function(t4) {
            var n3, e3, i3, r2;
            if (!t4) return t4;
            if ((n3 = t4.richText) && n3.length > 0) {
              for (e3 = pn(t4), t4.converted = n3 = e3.richText, i3 = [], r2 = 0; r2 < n3.length; r2++) i3.push(n3[r2].text ? n3[r2].text : "");
              t4.text = i3.join("");
            }
            return t4;
          }, t3.St = function(t4) {
            return "string" == typeof t4 && ("=" === t4.charAt(0) || t4.indexOf("{{") >= 0 && t4.indexOf("}}") >= 0);
          }, t3.VYr = function(t4) {
            return s && s.BJ(t4);
          }, t3.HRe = function(t4, n3, e3, i3) {
            var r2 = e3.isActualProtected();
            return i3 === D && (i3 = 3), !!r2 && !!e3.l0(t4, n3, "hidden", i3);
          }, t3.p0 = function(t4, n3, e3, i3, r2) {
            var o2 = t4, a2 = n3, u2 = function(t5, n4, u3) {
              var s2, c2, f2 = this;
              return f2.hasOwnProperty("_ps") || (f2._ps = {}), s2 = f2._ps, 0 === arguments.length ? s2[o2] !== D ? s2[o2] : a2 : (false !== n4 && i3 && !i3.call(f2, t5) || (c2 = s2[o2] !== D ? s2[o2] : a2) !== t5 && (s2[o2] = t5, false !== n4 && e3 && e3.call(f2, t5, c2), false !== (null == u3 ? void 0 : u3.shouldModelCallback) && r2 && r2.call(f2, t5, c2)), f2);
            };
            return u2.isDefault = function(t5) {
              return t5 === a2;
            }, u2;
          }, t3.b0 = function(t4, n3, e3) {
            var r2 = { _ps: {} };
            return i2.Common.lt.y0(t4, (function(t5) {
              Wt(r2, t5, n3, e3);
            })), r2;
          }, t3.w0 = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2 = R(n3, e3), c2 = L(n3, e3), f2 = 0;
            for (u2 = s2; u2 < c2 && (f2 += i3 ? o2 ? t4.getRowHeight(u2, 3) : t4.Gt(u2, 3, a2) : o2 ? t4.getColumnWidth(u2, 3) : t4.nn(u2, 3, a2), !(r2 && f2 > r2)); u2++) ;
            return f2;
          }, t3.M0 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = R(n3, e3), s2 = L(n3, e3), c2 = 0;
            for (o2 = u2; o2 < s2 && (i3 ? (a2 = t4.C0(o2), t4.getViewportTopRow(a2) <= o2 && t4.getViewportBottomRow(a2) >= o2 && (c2 += t4.Gt(o2, 3))) : (a2 = t4.S0(o2), t4.getViewportLeftColumn(a2) <= o2 && t4.getViewportRightColumn(a2) >= o2 && (c2 += t4.nn(o2, 3))), !(r2 && c2 > r2)); o2++) ;
            return c2;
          }, t3.T0 = function(t4, n3) {
            var e3, i3, r2 = 0, o2 = 0;
            return t4 !== n3 && (e3 = l(t4).offset(), i3 = l(n3).offset(), r2 = e3.left - i3.left, o2 = e3.top - i3.top), { A0: o2, I0: r2 };
          }, t3.x0 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = i3 || {};
            if (!t4 || "string" != typeof t4) return s2.message = T().Exp_SheetNameInvalid, false;
            for (o2 = 0; o2 < t4.length; o2++) if ("*" === (r2 = t4.charAt(o2)) || ":" === r2 || "[" === r2 || "]" === r2 || "?" === r2 || "\\" === r2 || "/" === r2) return s2.message = T().Exp_SheetNameInvalid, false;
            if ("'" === t4.charAt(0) || "'" === t4.charAt(t4.length - 1)) return s2.message = T().Exp_SheetNameInvalid, false;
            if (!n3) return true;
            for (a2 = n3.length, o2 = 0; o2 < a2; o2++) if (e3 !== (u2 = n3[o2]) && t4.toUpperCase() === u2.name().toUpperCase()) return s2.message = T().Exp_SheetNameConflict, false;
            return true;
          }, t3.yi = function(t4, n3, e3) {
            var i3, r2, o2;
            if (!t4) return t4;
            for (i3 = 0, r2 = t4.length, o2 = []; i3 < r2; ) t4[i3] === n3 ? o2[i3] = e3 : o2[i3] = t4[i3], i3++;
            return o2.join("");
          }, t3.N0 = function() {
            var n3, e3, i3, r2 = t3;
            return r2.k0 || (i3 = "-10000px", (e3 = (n3 = zt("span")).style).visibility = "hidden", e3.top = i3, e3.left = i3, e3.position = "absolute", n3.setAttribute("gcUIElement", "gcStringWidthSpan"), I.body.insertBefore(n3, _), r2.k0 = n3), r2.k0;
          }, t3.vt = function(n3, e3, i3) {
            var r2, o2, a2, u2 = t3, s2 = u2.D0;
            if (!e3) if (s2) {
              if (i3 && (s2 = s2.CJKFontCache), r2 = s2[n3]) return r2;
            } else s2 = u2.D0 = { CJKFontCache: {} }, i3 && (s2 = s2.CJKFontCache);
            return (o2 = u2.N0()).style.font = t3.yt(n3), t3.Tt && t3.Tt.safari && (o2.style.lineHeight = "normal"), o2.innerHTML = i3 ? String.fromCharCode(20013) : "H", (a2 = o2.offsetHeight) || (a2 = on(n3, o2.innerHTML)), e3 || (s2[n3] = a2), a2;
          }, t3.qao = function(n3, e3, i3) {
            return t3.vt(n3, i3, Jt(e3));
          }, t3._0 = function(n3) {
            var e3, i3, r2 = t3, o2 = r2.E0;
            if (o2) {
              if (o2[n3]) return o2[n3];
            } else o2 = r2.E0 = {};
            return (i3 = r2.N0()).style.font = n3, i3.innerHTML = "H", (e3 = {}).fontFamily = i3.style.fontFamily, e3.fontSize = i3.style.fontSize, e3.fontStyle = i3.style.fontStyle, e3.fontWeight = i3.style.fontWeight, o2[n3] = e3, e3;
          }, t3.bi = function(n3, e3) {
            var i3, r2 = t3.N0();
            return r2.style.font = t3.yt(e3), t3.Tt && t3.Tt.safari && (r2.style.lineHeight = "normal"), r2.innerHTML = M.j0(n3 || "H"), (i3 = r2.offsetHeight) || (i3 = on(e3, r2.innerHTML)), i3;
          }, t3.r0r = function(n3, e3) {
            var i3 = t3.N0();
            return i3.style.font = t3.yt(e3), t3.Tt && t3.Tt.safari && (i3.style.lineHeight = "normal"), i3.style.whiteSpace = "pre", i3.innerHTML = M.j0(n3), i3.getBoundingClientRect().width;
          }, t3.O0 = function(e3) {
            var i3, r2, o2 = t3;
            return e3.indexOf(n2.FallbackFontFamily) >= 0 ? e3 : (e3 = e3.replace("(" + String.fromCharCode(27491) + String.fromCharCode(25991) + ")", "").replace("(Body)", "").replace("(" + String.fromCharCode(26631) + String.fromCharCode(39064) + ")", ""), (r2 = (i3 = o2.N0()).style).font = e3, r2.fontFamily = [].concat(r2.fontFamily.split(","), n2.FallbackFontFamily.split(",")).join(","), r2.font);
          }, t3.yt = function(n3) {
            var e3, i3, r2 = t3;
            return n3 && r2.R0 ? ((e3 = r2.B0) || (e3 = r2.B0 = {}), (i3 = e3[n3]) || (i3 = e3[n3] = r2.O0(n3)), i3) : n3;
          }, t3.bt = function(n3, e3, i3) {
            void 0 === i3 && (i3 = false), e3 && (e3 = t3.yt(e3), n3.font === e3 && true !== i3 || (n3.font = e3));
          }, t3.Mt = function(n3, e3, i3) {
            return !e3 || b(i3) ? 0 : (t3.bt(n3, e3), n3.measureText(i3).width);
          }, t3.L0 = function() {
            var n3 = t3, e3 = n3.k0;
            e3 && (l(e3).remove(), n3.k0 = D), n3.D0 = D, n3.E0 = D, t3.F0 && (t3.F0 = D), n3.B0 = D;
          }, t3.oi = function(n3) {
            var e3, i3 = t3.F0;
            return i3 || (i3 = t3.F0 = zt("div")), e3 = n3.innerHTML, i3.innerHTML = e3, i3.innerText;
          }, t3.P0 = function(t4) {
            return t4 && /^[A-Za-z_\\\u0080-\uFFFF][A-Za-z0-9_\.\\\?\u0080-\uFFFF]*$/.test(t4) && !(-1 !== ["C", "c", "R", "r"].indexOf(t4) || /^([A-Za-z]{1,2}|[a-wA-W][A-Za-z]{2}|[xX][a-eA-E][A-Za-z]|[xX][fF][a-dA-D])\d*[1-9]\d*$/.test(t4) || /^[Rr]\d*[Cc]\d*$/.test(t4) || t4.length >= 255);
          }, t3.G0 = function(t4) {
            t4 && (t4.U0(true), t4.initExpression(), t4.H0());
          }, t3.z0 = function(t4) {
            var n3, e3, i3 = 0, r2 = 0, o2 = t4.length;
            for (o2 > 0 && (i3 = t4[0].row, r2 = t4[0].col), n3 = 1; n3 < o2; n3++) i3 > (e3 = t4[n3]).row && (i3 = e3.row), r2 > e3.col && (r2 = e3.col);
            return { r: i3 = i3 < 0 ? 0 : i3, c: r2 = r2 < 0 ? 0 : r2 };
          }, t3.V0 = function(n3) {
            var e3;
            return e3 = typeof n3 === X && "/" === n3.charAt(0) ? t3.cge(n3) : n3;
          }, t3.cge = function(t4) {
            var n3, e3;
            return et.test(t4) ? (e3 = t4.match(et), n3 = i2.Common.ct.Y0(Y(e3[1]))) : nt.test(t4) ? (e3 = t4.match(nt), n3 = new Date(Y(e3[1]))) : n3 = t4, n3;
          }, t3.Z0 = function(t4) {
            var n3;
            return n3 = !b(t4) && i2.Common.ct.W0(t4) ? i2.Common.ct.Q0(t4) : t4;
          }, t3.K0 = function(t4, n3) {
            var e3, i3, r2 = t4.getImageData(n3.x, n3.y, n3.width, n3.height), o2 = r2.data;
            for (e3 = 0; e3 < o2.length - 4; e3 += 4) i3 = O((30 * o2[e3] + 59 * o2[e3 + 1] + 11 * o2[e3 + 2] + 50) / 100), o2[e3] = i3, o2[e3 + 1] = i3, o2[e3 + 2] = i3;
            t4.putImageData(r2, n3.x, n3.y);
          }, t3.J0 = function(t4, n3, e3) {
            t4.rowCount > n3 && (t4.rowCount = n3), t4.colCount > e3 && (t4.colCount = e3);
          }, t3.X0 = function(t4, n3, e3, i3) {
            for (var r2 = e3; r2 < e3 + i3; r2++) if (!b(t4.getValue(n3, r2))) return true;
            return false;
          }, t3.q0 = function(t4, n3, e3, i3) {
            for (var r2 = n3; r2 < n3 + i3; r2++) if (!b(t4.getValue(r2, e3))) return true;
          }, t3.$0 = function(t4) {
            return !t4 || "" === t4;
          }, t3.qi = function(n3) {
            if (t3.$0(n3)) return 0;
            for (var e3 = 0, i3 = 0; i3 < n3.length && isNaN(parseInt(n3[i3], 10)); ) i3++;
            return i3 < n3.length && (e3 = parseInt(n3.substring(i3), 10)), e3 - 1;
          }, t3.$i = function(t4) {
            var n3, e3, i3, r2 = 0, o2 = t4.length;
            for (n3 = 0; n3 < o2 && !((i3 = (e3 = t4[n3].charCodeAt()) - 97) > 25) && (i3 < 0 && (i3 = e3 - 65), !(i3 < 0)); n3++) r2 = 26 * r2 + i3 + 1;
            return --r2;
          }, t3.t1 = function(t4) {
            var n3 = "" + t4;
            return "=" === n3.charAt(0) ? n3.substr(1) : n3;
          }, t3.getFormulaString = function(t4) {
            return "string" == typeof t4 ? (t4 = "=" === t4[0] ? t4.substr(1) : t4, x(t4)) : t4;
          }, t3.cuo = function(t4) {
            return b(t4) ? t4 : t4.replace(/(\x0b)/g, "");
          }, t3.vo = function(t4, n3) {
            return b(t4) ? t4 : (n3 = n3 || /(&)|(<)|(>)|(")|(')/g).test(t4) ? typeof t4 === X ? t4.replace(n3, (function(t5) {
              switch (t5) {
                case "&":
                  return "&amp;";
                case "<":
                  return "&lt;";
                case ">":
                  return "&gt;";
                case '"':
                  return "&quot;";
                case "'":
                  return "&apos;";
              }
            })) : "" + t4 : t4;
          }, t3.Nfe = function(t4, n3) {
            return void 0 === n3 && (n3 = false), n3 ? t4 && t4.replace(/\%/g, "%25").replace(/\ /g, "%20").replace(/\#/g, "%23").replace(/\[/g, "%5b").replace(/\]/g, "%5d").replace(/\^/g, "%5e").replace(/\`/g, "%60").replace(/\{/g, "%7b").replace(/\}/g, "%7d").replace(/\&/g, "&amp;").replace(/\"/g, "&quot;") : t4 && t4.replace(/\&/g, "&amp;").replace(/\"/g, "&quot;").replace(/\>/g, "&gt;").replace(/\</g, "&lt;");
          }, t3.kfe = function(t4, n3) {
            return void 0 === n3 && (n3 = false), n3 ? t4 && t4.replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/%20/g, K).replace(/%23/g, "#").replace(/%5[bB]/g, "[").replace(/%5[cC]/g, "\\").replace(/%5[dD]/g, "]").replace(/%5[eE]/g, "^").replace(/%60/g, "`").replace(/%7[bB]/g, "{").replace(/%7[dD]/g, "}").replace(/%25/g, "%") : t4 && t4.replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&gt;/g, ">").replace(/&lt;/g, "<");
          }, t3.n1 = function(t4) {
            var n3, e3;
            return b(t4) ? t4 : (n3 = typeof t4 === X) ? -1 === t4.indexOf("&") ? "" + t4 : (e3 = /(&amp;)|(&gt;)|(&lt;)|(&quot;)|(&apos;)/g, -1 !== t4.indexOf("&#") && (t4 = t4.replace(ft, $t(10)).replace(lt, $t(16))), t4.replace(e3, (function(t5) {
              switch (t5) {
                case "&amp;":
                  return "&";
                case "&gt;":
                  return ">";
                case "&lt;":
                  return "<";
                case "&quot;":
                  return '"';
                case "&apos;":
                  return "'";
              }
            }))) : "" + t4;
          }, t3.e1 = function(t4, n3, e3) {
            var i3, r2;
            if (t4 && typeof t4 === X) {
              for (i3 = 0; i3 < e3.length; i3++) if ((r2 = e3[i3]) !== n3 && (t4.indexOf(r2 + "!") > -1 || t4.indexOf("'" + r2 + "'!") > -1)) return true;
            }
            return false;
          }, t3.i1 = function(t4) {
            var n3, e3, i3;
            return "string" == typeof t4 && (n3 = t4.indexOf("/OADate(") + 1, e3 = t4.indexOf(")"), 0 !== n3 && e3 > n3 && (i3 = parseFloat(t4.substring(n3 + 7, e3)), isNaN(i3) || (t4 = "" + i3))), t4;
          }, t3.r1 = function(t4) {
            var n3, e3, i3;
            if (!t4) return null;
            if (e3 = ",", -1 !== (n3 = t4).indexOf(e3) && (n3 = n3.split(e3)[0]), n3) {
              for (i3 = n3.length - 1; i3 >= 0 && "/" !== n3[i3]; ) i3--;
              i3 >= 0 && (n3 = n3.substring(i3)), n3 && "/#" === n3.substring(0, 2) && (n3 = n3.substring(2)), '"' === n3[0] && '"' === n3[n3.length - 1] && (n3 = n3.substring(1, n3.length - 1));
            }
            return n3;
          }, t3.o1 = function(n3, e3) {
            var i3, r2, o2, a2, u2, s2 = e3.split("&");
            for (i3 = 0, r2 = s2.length; i3 < r2; i3++) {
              if (a2 = (o2 = s2[i3].split("."))[0], u2 = o2[1], !n3) return;
              n3 = t3.xr(n3, a2, u2);
            }
            return n3;
          }, t3.Hue = function(n3, e3) {
            var i3, r2, o2;
            if (n3 && n3.c_) {
              for (r2 = n3.c_, o2 = 0; o2 < r2.length && !(i3 = t3.xr(r2[o2], e3)); o2++) ;
              return i3;
            }
          }, t3.xr = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            if (!t4 || !t4.c_) return D;
            for (e3 = e3 ? +e3 : 0, r2 = 0, o2 = (i3 = t4.c_).length; r2 < o2; r2++) if ((a2 = i3[r2]) && a2.n_ === n3) {
              if (0 === e3) return a2;
              e3--;
            }
          }, t3.u1 = function(t4, n3) {
            var e3, i3;
            if (t4) {
              for (e3 = t4.c_ || [], i3 = 0; i3 < e3.length; i3++) if (e3[i3][n3]) return e3[i3][n3];
            }
          }, t3.s1 = function(n3, e3) {
            var i3, r2, o2, a2, u2;
            if (!n3 || !n3.c_) return D;
            for (r2 = 0, o2 = (i3 = n3.c_).length; r2 < o2; r2++) {
              if ((a2 = i3[r2]) && a2.n_ === e3) return a2;
              if (u2 = t3.s1(a2, e3), !b(u2)) return u2;
            }
          }, t3.c1 = function(t4) {
            return t4 && t4.c_ ? t4.c_[0] : D;
          }, t3.go = function(t4, n3) {
            var e3, i3, r2, o2, a2;
            if (!t4 || !t4.c_) return D;
            for (i3 = [], r2 = 0, o2 = (e3 = t4.c_).length; r2 < o2; r2++) (a2 = e3[r2]) && a2.n_ === n3 && i3.push(a2);
            return i3;
          }, t3.Pr = function(n3, e3) {
            var i3, r2, o2, a2, u2;
            if (n3 && n3.c_) {
              for (i3 = [], r2 = 0, o2 = e3.length; r2 < o2; r2++) a2 = e3[r2], (u2 = t3.go(n3, a2)) && u2.length > 0 && (i3 = i3.concat(u2));
              n3.c_ = i3;
            }
          }, t3.f1 = function(t4, n3, e3) {
            var i3, r2, o2;
            if (t4 && n3) for (e3 = e3 || n3.name, i3 = 0, r2 = t4.length; i3 < r2; i3++) (o2 = t4[i3]) && o2.n_ === e3 && (t4[i3] = n3);
          }, t3.l1 = function() {
            var t4;
            return ("{" + Xt(8) + "-" + Xt(4) + "-" + Xt(4) + "-" + Xt(4) + "-" + Xt(12) + "}").toUpperCase();
          }, t3.isThemeColor = function(t4) {
            if (!t4 || "string" != typeof t4) return false;
            var n3;
            switch ((t4 = t4.toLowerCase())[0]) {
              case "b":
                return 0 === t4.indexOf("background ");
              case "t":
                return 0 === t4.indexOf("text ");
              case "a":
                return 0 === t4.indexOf("accent ");
              case "h":
                return 0 === t4.indexOf("hyperlink");
              case "f":
                return 0 === t4.indexOf("followedhyperlink");
              default:
                return false;
            }
          }, t3.isSameThemeColor = function(n3, e3) {
            return n3 === e3 || t3.normialThemeColor(n3) === t3.normialThemeColor(e3);
          }, t3.normialThemeColor = function(n3) {
            var e3, i3;
            return t3.isThemeColor(n3) && (e3 = n3.split(K)).length >= 3 && 0 === (i3 = parseFloat(e3[2])) ? e3[0] + K + e3[1] : n3;
          }, t3.h1 = function(n3, e3, i3) {
            if (n3) return t3.isThemeColor(n3) ? tn(n3, e3, i3) : rn(n3, i3);
          }, t3.d1 = function(t4, n3) {
            if (t4) {
              if ("1" === t4.auto) return "#000000";
              if (t4.theme !== D) return nn(t4, n3);
              if (t4.rgb) {
                var e3 = t4.rgb;
                return "number" == typeof e3 && (e3 = e3.toString(16)), "#" + e3.substring(2, e3.length);
              }
              return t4.indexed !== D ? en(t4) : void 0;
            }
          }, t3.hueToRGB = function(t4, n3, e3) {
            return e3 < 0 && (e3 += 255), e3 > 255 && (e3 -= 255), e3 < 42 ? t4 + ((n3 - t4) * e3 + 21) / 42 : e3 < 127 ? n3 : e3 < 170 ? t4 + ((n3 - t4) * (170 - e3) + 21) / 42 : t4;
          }, t3.v1 = function(n3, e3, i3) {
            var r2, o2, a2 = 0, u2 = 0, s2 = 0;
            return 0 === i3 ? (u2 = a2 = 255 * e3 / 255 | 0, s2 = a2) : (r2 = void 0, o2 = 2 * e3 - (r2 = e3 <= 127 ? (e3 * (255 + i3) + 127) / 255 : e3 + i3 - (e3 * i3 + 127) / 255), a2 = parseInt(((255 * t3.hueToRGB(o2, r2, n3 + 85) + 127) / 255).toString(), 10), u2 = parseInt(((255 * t3.hueToRGB(o2, r2, n3) + 127) / 255).toString(), 10), s2 = parseInt(((255 * t3.hueToRGB(o2, r2, n3 - 85) + 127) / 255).toString(), 10)), { r: a2 = (a2 = a2 > 0 ? a2 : 0) < 255 ? a2 : 255, g: u2 = (u2 = u2 > 0 ? u2 : 0) < 255 ? u2 : 255, b: s2 = (s2 = s2 > 0 ? s2 : 0) > 255 ? s2 : 255, a: 0 };
          }, t3.m1 = function(t4) {
            var n3 = ut[t4];
            if (n3 !== D) return ct.hexToARGB(n3);
          }, t3.g1 = function(t4) {
            if (!w(t4)) return "=" === t4[0] ? t4 : "=" + t4;
          }, t3.p1 = function(t4) {
            return w(t4) || t4.length <= 2 ? t4 : t4.substr(1, t4.length - 2);
          }, t3.b1 = function(t4) {
            if (!b(t4)) return "=" === t4[0] ? t4.substring(1, t4.length) : t4;
          }, t3.w1 = function(t4, n3) {
            if (!t4 || !n3) return t4;
            for (var e3 in n3) n3.hasOwnProperty(e3) && (t4[e3] = n3[e3]);
            return t4;
          }, t3.C1 = function(t4) {
            var n3, e3, i3, r2;
            if ("string" == typeof t4) {
              if (n3 = /\[[^\]]+\]|@/, (e3 = t4.split(/\'|\"/g)) && e3.length > 0) {
                for (i3 = 0; i3 < e3.length; i3++) if (r2 = e3[i3], i3 % 2 == 0 && r2.match(n3)) return true;
              }
              return false;
            }
          }, t3.S1 = function(t4, n3) {
            var e3 = n3.row, i3 = n3.col, r2 = n3.rowCount, o2 = n3.colCount, a2 = t4.getRowCount(), u2 = t4.getColumnCount();
            return -1 === e3 && (e3 = 0, r2 = a2), -1 === i3 && (i3 = 0, o2 = u2), Nn(e3, i3, r2 = e3 + r2 > a2 ? a2 - e3 : r2, o2 = i3 + o2 > u2 ? u2 - i3 : o2);
          }, t3.isInfinityNumberString = function(t4) {
            return "string" == typeof t4 && (parseFloat(t4) === Number.POSITIVE_INFINITY || parseFloat(t4) === Number.NEGATIVE_INFINITY);
          }, t3.repeatString = function(t4, n3) {
            var e3 = "";
            if (!t4 || n3 < 1 || n3 > Number.POSITIVE_INFINITY) return e3;
            do {
              n3 % 2 && (e3 += t4), (n3 = Math.floor(n3 / 2)) && (t4 += t4);
            } while (n3);
            return e3;
          }, t3.toPlainString = function(n3) {
            var e3, i3;
            return ("" + n3).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/, (function(n4, e4, i4, r2, o2) {
              return +o2 < 0 ? e4 + "0." + t3.repeatString("0", 1 - +o2 - i4.length - 1) + i4 + r2 : e4 + i4 + r2 + t3.repeatString("0", +o2 - r2.length);
            }));
          }, t3.jse = function(t4) {
            var n3 = document.createElement("div");
            return n3.innerHTML = t4.trim(), n3.firstChild;
          }, t3.rfe = function(n3, e3) {
            var i3, r2, o2, a2;
            if (n3 !== _ && e3 !== _ && "object" == typeof n3 && "object" == typeof e3) {
              if (i3 = Object.keys(n3), r2 = Object.keys(e3), i3.length !== r2.length) return false;
              for (o2 = 0; o2 < i3.length; o2++) if (a2 = i3[o2], !t3.rfe(n3[a2], e3[a2])) return false;
              return true;
            }
            return n3 === e3;
          }, t3.Mme = function(t4, n3) {
            var e3, i3, r2 = n3.row, o2 = n3.col, a2 = n3.rowCount, u2 = n3.colCount;
            for (e3 = r2; e3 < r2 + a2; e3++) for (i3 = o2; i3 < o2 + u2; i3++) if (t4.getCell(e3, i3).locked()) return true;
            return false;
          }, t3.Cme = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = n3.getSelections();
            for (e3 = 0; e3 < c2.length; e3++) if (r2 = -1 === (i3 = c2[e3]).col ? 0 : i3.col, o2 = -1 === i3.row ? 0 : i3.row, a2 = -1 === i3.col ? n3.getColumnCount() : i3.colCount, u2 = -1 === i3.row ? n3.getRowCount() : i3.rowCount, s2 = t3.Mme(n3, { col: r2, row: o2, colCount: a2, rowCount: u2 })) return true;
            return false;
          }, t3.age = function(t4) {
            return t4 > 4 ? t4 = 4 : t4 < 0.25 && (t4 = 0.25), this.iye(t4);
          }, t3.iye = function(t4, n3) {
            return void 0 === n3 && (n3 = 12), +parseFloat(t4.toPrecision(n3));
          }, t3.isEnablePasteSpecial = function(t4) {
            return !!t4 && (!t4.NMi && (!(!t4.ST()._S || t4.ST().ES) && ((!t4.isPasteShapes || !t4.isPasteShapes()) && (!t4.isPasteFloatingObject || !t4.isPasteFloatingObject()))));
          }, t3.b_e = function(t4) {
            var n3 = [];
            return t4.shapeLayers && t4.shapeLayers[0] && t4.shapeLayers[0].shapes.forEach((function(t5) {
              t5.isSelected && n3.push(t5.JVV.name());
            })), n3;
          }, t3.w_e = function(t4) {
            var n3 = [];
            return t4.WL && t4.WL.QP().forEach((function(t5) {
              t5.isSelected() && n3.push(t5.name());
            })), n3;
          }, t3.Dx = function(t4, n3) {
            if (!t4 && !n3) return true;
            if (!t4 || !n3) return false;
            if (t4.length !== n3.length) return false;
            for (var e3 = 0; e3 < t4.length; e3++) if (t4[e3] !== n3[e3]) return false;
            return true;
          }, t3.jBe = function(t4, n3) {
            for (var e3 = false, i3 = t4; i3; ) {
              if ("gcSpread" === l(i3).attr("gcUIElement")) {
                e3 = n3.qc() !== i3;
                break;
              }
              i3 = i3.parentElement;
            }
            return e3;
          }, t3.setFillStyle = function(t4, n3, e3, i3, r2, o2, a2) {
            f.W.setFillStyle(t4, n3, e3, i3, r2, o2, a2);
          }, t3.RYr = function(t4, n3) {
            var e3, i3;
            if (!b(e3)) {
              for (i3 = 0; i3 < t4.sheets.length; i3++) if (t4.getSheetPosition(t4.sheets[i3].name()) === n3) {
                e3 = i3;
                break;
              }
            }
            return e3;
          }, t3.XYr = function(t4) {
            if (!t4) return false;
            var n3 = new URL(t4).pathname;
            return !!n3 && ".svg" === n3.slice(-4).toLowerCase();
          }, t3.Zf = /[\u0600-\u06FF\u0750-\u077F]/, t3.Ycr = /[\u0590-\u05FF]|[\uFB1D-\uFB4F]/, t3.vi = Kt, t3.pi = t3.device, t3.Tt = (function() {
            var t4, n3, e3, i3, r2, o2, a2;
            function u2(t5) {
              t5 = t5.toLowerCase();
              var n4 = /(chrome)[ \/]([\w.]+)/.exec(t5) || /(webkit)[ \/]([\w.]+)/.exec(t5) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t5) || /(msie) ([\w.]+)/.exec(t5) || t5.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t5) || [];
              return { browser: n4[1] || "", version: n4[2] || "0" };
            }
            function s2() {
              var t5 = _, n4 = false;
              try {
                new ActiveXObject("");
              } catch (n5) {
                t5 = n5.name;
              }
              try {
                n4 = !!new ActiveXObject("htmlfile");
              } catch (t6) {
                n4 = false;
              }
              return !(n4 = "ReferenceError" === t5 || false !== n4);
            }
            return n3 = u2(t4 = navigator.userAgent), e3 = { version: D, chrome: D, webkit: D, safari: D, mozilla: D, msie: D, metroMode: D, edge: D }, n3.browser && (e3[n3.browser] = true, e3.version = n3.version), e3.chrome ? e3.webkit = true : e3.webkit && (e3.safari = true), (i3 = t4.indexOf("PhantomJS") >= 0) && (e3.safari = false, e3.chrome = true), (o2 = (r2 = t4.toLowerCase()).indexOf("compatible") < 0 && /(trident)(?:.*? rv ([\w.]+)|)/.exec(r2) !== _) && (e3.mozilla = D, e3.msie = true), (a2 = /Edge\/\d+/.exec(t4)) !== _ && a2.length > 0 && (e3.webkit = D, e3.chrome = D, e3.msie = true, e3.edge = true, e3.version = a2[0].substr(a2[0].indexOf("/") + 1)), e3.msie && s2() && (e3.metroMode = true), e3;
          })(), t3.browser = t3.Tt, t3.En = zt, t3.ai = Yt, t3.T1 = Vt, t3.pt = Jt, t3.R0 = t3.Qf(), t3.Ct = function(t4) {
            return !b(t4) && (typeof t4 === q || typeof t4 === k || t4 instanceof Date || s && t4 instanceof s.CalcError);
          }, t3;
        })(), n2.util = ht, n2.mt = ht, dt = (function() {
          function t3() {
          }
          return t3.gkr = function(t4) {
            return b(t4) ? "" : new i2.Formatter.GeneralFormatter(C.Fe().DateTimeFormat.shortDatePattern).format(t4);
            var n3;
          }, t3.mkr = function(t4) {
            return b(t4) ? "" : new i2.Formatter.GeneralFormatter(C.Fe().DateTimeFormat.shortTimePattern).format(t4);
            var n3;
          }, t3;
        })(), n2.vkr = dt, n2.removeEndSpaceOfFormattedData = gn, n2.isIgnoreEndBlank = mn, n2.getTextContentWithoutEndBlank = bn, vt = ht.Mt, pt = (function() {
          function t3() {
          }
          return t3.A1 = function(n3) {
            return !(t3.ai() !== n3 || !n3.rt || !n3.rt.I1);
          }, t3.ai = function() {
            return A && A.gcGlobal && A.gcGlobal.activeElement;
          }, t3.N1 = function(n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2;
            function v2(t4) {
              var o3, a2;
              for (o3 = 0; o3 <= 2; o3++) (a2 = t4.call(e3, o3)) && 0 !== a2.width && 0 !== a2.height && (n3.k1 = true, i3.D1(r2, a2));
            }
            if (n3 && !t3.A1(n3) && n3.parent && n3.parent.options.hideSelection) if (e3 = n3.Fi(), i3 = n3.Dn, r2 = i3.J(), u2 = (o2 = n3._1) && o2.isEnable(a.RowColumnStates.selected, true), s2 = o2 && o2.isEnable(a.RowColumnStates.selected, false), c2 = n3.getSelections(), f2 = void 0, l2 = void 0, u2 || s2) {
              for (h2 = void 0, f2 = 0; f2 < c2.length; f2++) d2 = c2[f2], h2 = h2 ? h2.union(d2) : d2;
              h2 && i3.E1(h2);
            } else {
              for (f2 = 0; f2 < c2.length; f2++) d2 = c2[f2], (l2 = n3.j1(d2)).width >= 0 && l2.height >= 0 && (l2.x -= 9, l2.y -= 9, l2.width += 18, l2.height += 30, i3.O1(l2));
              l2 = e3.R1(), n3.k1 = true, i3.D1(r2, l2), v2(e3.B1), v2(e3.L1);
            }
          }, t3.F1 = function(n3, e3) {
            var i3 = t3.ai();
            A.gcGlobal.activeElement = n3, n3 === i3 || e3 || (i3 && (i3.endEdit(), t3.N1(i3), i3.G1 && i3.G1()), n3 && n3.Dn.E1());
          }, t3;
        })(), n2.hi = pt, gt = function(t3) {
          return !["ArrowUp", "ArrowDown", "Enter", "Tab", "Escape", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown", "Alt", "Ctrl", "Shift", "Meta", "CapsLock", "NumLock", "ScrollLock", "PrintScreen", "Pause", "Insert", "Delete"].includes(t3.key);
        }, mt = (function() {
          function t3() {
            this.vf = 0, this.wf = [], this.mf = false, this.Hc();
          }
          return t3.prototype.U1 = function() {
            var t4 = "gc-theme-version ui-widget-header ui-state-default wijmoThemeHelper btn-default", n3 = "span." + t4.split(K).join(J);
            return bt.H1 ? l(I).find(n3).length <= 0 && Zt(bt.H1) : bt.H1 = wn(t4), bt.H1;
          }, t3.prototype.z1 = function() {
            var t4 = "gc-theme-version ui-widget-content wijmoThemeHelper btn-default", n3 = "span." + t4.split(K).join(J);
            return bt.V1 ? l(I).find(n3).length <= 0 && Zt(bt.V1) : bt.V1 = wn(t4), bt.V1;
          }, t3.prototype.Y1 = function() {
            var t4 = "gc-theme-version ui-state-hover wijmoThemeHelper btn-primary", n3 = "span." + t4.split(K).join(J);
            return bt.Z1 ? l(I).find(n3).length <= 0 && Zt(bt.Z1) : bt.Z1 = wn(t4), bt.Z1;
          }, t3.prototype.W1 = function() {
            var t4 = "gc-theme-version ui-state-highlight wijmoThemeHelper btn-warning", n3 = "span." + t4.split(K).join(J);
            return bt.K1 ? l(I).find(n3).length <= 0 && Zt(bt.K1) : bt.K1 = wn(t4), bt.K1;
          }, t3.prototype.J1 = function() {
            var t4 = "gc-theme-version", n3 = "gcDummyElement";
            return bt.X1 ? l(I).find("#" + n3).length <= 0 && Zt(bt.X1) : bt.X1 = wn(t4, n3), bt.X1;
          }, t3.prototype.nl = function() {
            bt.U1(), bt.z1(), bt.Y1(), bt.W1();
          }, t3.prototype.Hc = function() {
            var t4, n3, e3 = this;
            function i3(t5) {
              var i4, r3, o2, a2, u2 = pt.ai();
              if (u2 && (i4 = bt.el(t5.target), o2 = !(r3 = u2.il && u2.il.rl), e3.wf.forEach((function(t6) {
                t6 && t6(u2, i4);
              })), !i4 || ht.jBe(i4, u2))) {
                if (u2.ol(D, D, r3, D, o2)) n3 && (a2 = u2.rt) && a2.al && a2.al(), pt.F1(_);
                else if (t5.cancelable) return false;
              }
            }
            function r2(t5) {
              var n4 = t5.pointerType;
              n4 !== t5[tt] && n4 !== $ || i3(t5);
            }
            e3.vf = 0, Mn(A, "keydown", Tn, true), Mn(A, "keyup", xn, true), Mn(A, "compositionstart", An, true), Mn(A, "selectstart", kn, true), t4 = ht.pi(), n3 = t4.ipad || t4.iphone, ht.browser.safari && !n3 && Mn(A, "textInput", In, true), ht.m0() ? (l(I).bind("MSPointerDown", r2), l(I).bind("pointerdown", r2)) : l(I).bind("touchstart", i3), Mn(I, "mousedown", (function(t5) {
              var n4;
              false === i3(t5) && Kt(t5);
            }), true), l(I).bind("DOMContentLoaded", (function() {
              bt.nl();
            }));
          }, t3.prototype.el = function(t4) {
            for (var n3, e3 = t4; e3 && "BODY" !== e3.tagName && typeof e3.getAttribute === j; ) {
              if ((n3 = e3.getAttribute("gcUIElement")) || (n3 = e3.gcUIElement), n3) return e3;
              e3 = e3.parentNode;
            }
            return _;
          }, t3.prototype.ul = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2 = bt.U1();
            return t4 === a.VisualState.highlight || t4 === a.VisualState.selected ? s2 = bt.W1() : t4 === a.VisualState.hover && (s2 = bt.Y1()), e3 = s2.className, l(s2).removeClass(e3).addClass(n3), r2 = (i3 = Cn(s2)).backgroundColor, o2 = i3.backgroundImage, l(s2).addClass(e3), (u2 = { backgroundColor: (i3 = Cn(s2)).backgroundColor, backgroundImage: i3.backgroundImage, color: i3.color, zIndex: i3.zIndex }).borderLeftColor = i3.borderLeftColor, u2.borderRightColor = i3.borderRightColor, u2.borderBottomColor = i3.borderBottomColor, u2.borderBottomWidth = i3.borderBottomWidth, u2.borderTopColor = i3.borderTopColor, u2.borderRightWidth = i3.borderRightWidth, u2.backgroundImage === o2 && u2.backgroundColor !== r2 && (u2.backgroundImage = D), l(s2).removeClass(n3), u2;
          }, t3.prototype.sl = function(t4) {
            var n3, e3 = bt.J1();
            return l(e3).removeClass(e3.className).addClass("gc-theme-version " + t4), n3 = Cn(e3), h({}, n3);
          }, t3.prototype.cl = function(t4) {
            var n3, e3 = bt.z1();
            return l(e3).removeClass(e3.className).addClass("gc-theme-version ui-widget-content wijmoThemeHelper btn-default " + t4), n3 = Cn(e3), h({}, n3);
          }, t3.prototype.ef = function() {
            var t4;
            A.gcGlobal.vf++;
          }, t3.prototype.cf = function() {
            var t4 = A.gcGlobal;
            t4.vf--, t4.vf < 0 && (t4.vf = 0);
          }, t3;
        })(), bt = mt.prototype, A.gcGlobal || (A.gcGlobal = new mt()), yt = (function() {
          function t3() {
          }
          return t3.Ee = function(t4) {
            var n3;
            return { 0: "normal", 1: "highlight", 2: "selected", 3: "active", 4: "hover", 5: "activeNotSelected" }[t4] || "";
          }, t3.He = function(n3, e3) {
            var i3 = t3.Ee(n3) + e3, r2 = t3.styleCache;
            return r2[i3] || (r2[i3] = bt.ul(n3, e3)), r2[i3];
          }, t3.fl = function(n3) {
            var e3 = n3, i3 = t3.styleCache;
            return i3[e3] || (i3[e3] = bt.sl(n3)), i3[e3];
          }, t3.ll = function(n3) {
            var e3 = "content" + n3, i3 = t3.styleCache;
            return i3[e3] || (i3[e3] = bt.cl(n3)), i3[e3];
          }, t3.m = function(t4, n3) {
            var e3 = t4.hl;
            return e3 && e3.getColor && (n3 = e3.getColor(n3)), n3;
          }, t3.dl = function() {
            t3.styleCache = {};
          }, t3.styleCache = {}, t3;
        })(), n2.I = yt, wt = (function() {
          function t3(t4, n3) {
            this.x = t4, this.y = n3;
          }
          return t3.prototype.clone = function() {
            return new t3(this.x, this.y);
          }, t3;
        })(), n2.Point = wt, Mt = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.x = t4, r2.y = n3, r2.width = e3, r2.height = i3;
          }
          return t3.prototype.intersect = function(t4, n3, e3, i3) {
            var r2 = this;
            return t4 < r2.x + r2.width && r2.x < t4 + e3 && n3 < r2.y + r2.height && r2.y < n3 + i3;
          }, t3.prototype.intersectRect = function(t4) {
            return this.intersect(t4.x, t4.y, t4.width, t4.height);
          }, t3.prototype.contains = function(t4, n3, e3) {
            var i3 = this;
            return e3 ? i3.x <= t4 && t4 <= i3.x + i3.width && i3.y <= n3 && n3 <= i3.y + i3.height : i3.x < t4 && t4 < i3.x + i3.width && i3.y < n3 && n3 < i3.y + i3.height;
          }, t3.prototype.containsRect = function(t4, n3) {
            return this.contains(t4.x, t4.y, n3) && this.contains(t4.x + t4.width, t4.y + t4.height, n3);
          }, t3.prototype.getIntersectRect = function(t4) {
            return this.getIntersect(t4.x, t4.y, t4.width, t4.height);
          }, t3.prototype.getIntersect = function(n3, e3, i3, r2) {
            var o2 = this, a2 = o2.x, u2 = o2.y, s2 = o2.x + o2.width, c2 = o2.y + o2.height, f2, l2 = e3, h2 = n3 + i3, d2 = e3 + r2, v2 = L(a2, n3), p2 = L(u2, l2), g2, m2, b2, y2, w2 = R(s2, h2) - v2, M2 = R(c2, d2) - p2;
            return w2 > 0 && M2 > 0 ? new t3(v2, p2, w2, M2) : _;
          }, t3.prototype.round = function() {
            var t4 = this;
            t4.x = O(t4.x), t4.y = O(t4.y), t4.width = E(t4.width), t4.height = E(t4.height);
          }, t3.prototype.clone = function() {
            var n3 = this;
            return new t3(n3.x, n3.y, n3.width, n3.height);
          }, t3;
        })(), n2.Rect = Mt, Ct = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.row = t4, r2.rowCount = e3, r2.col = n3, r2.colCount = i3;
          }
          return t3.prototype.intersect = function(t4, n3, e3, i3) {
            var r2 = this;
            return (-1 === t4 || -1 === r2.row || r2.row < t4 + e3 && t4 < r2.row + r2.rowCount) && (-1 === n3 || -1 === r2.col || r2.col < n3 + i3 && n3 < r2.col + r2.colCount);
          }, t3.prototype.getIntersect = function(e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            return void 0 === i3 && (i3 = n2.MAX_ROW_COUNT), void 0 === r2 && (r2 = n2.MAX_COLUMN_COUNT), o2 = this, e3 && o2.intersect(e3.row, e3.col, e3.rowCount, e3.colCount) ? (a2 = -1 === o2.col ? r2 - 1 : o2.col + o2.colCount - 1, u2 = -1 === e3.col ? r2 - 1 : e3.col + e3.colCount - 1, s2 = -1 === o2.row ? i3 - 1 : o2.row + o2.rowCount - 1, c2 = -1 === e3.row ? i3 - 1 : e3.row + e3.rowCount - 1, f2 = L(o2.col, e3.col), l2 = R(a2, u2), h2 = L(o2.row, e3.row), d2 = R(s2, c2), new t3(h2, f2, v2 = -1 === h2 ? -1 : d2 - h2 + 1, p2 = -1 === f2 ? -1 : l2 - f2 + 1)) : _;
          }, t3.prototype.contains = function(t4, n3, e3, i3) {
            var r2 = this, o2 = arguments.length, a2 = false;
            return 2 !== o2 && 4 !== o2 || (2 === o2 && (e3 = 1, i3 = 1), a2 = (-1 === r2.row || r2.row <= t4 && t4 + e3 <= r2.row + r2.rowCount) && (-1 === r2.col || r2.col <= n3 && n3 + i3 <= r2.col + r2.colCount)), a2;
          }, t3.prototype.isInner = function(t4, n3, e3, i3) {
            var r2 = this, o2 = arguments.length, a2 = false;
            return 2 !== o2 && 4 !== o2 || (2 === o2 && (e3 = 1, i3 = 1), a2 = (-1 === t4 || t4 <= r2.row && r2.row + r2.rowCount <= t4 + e3) && (-1 === n3 || n3 <= r2.col && r2.col + r2.colCount <= n3 + i3)), a2;
          }, t3.prototype.containsRange = function(t4) {
            return this.contains(t4.row, t4.col, t4.rowCount, t4.colCount);
          }, t3.prototype.offset = function(n3, e3) {
            var i3 = this, r2 = i3.col, o2 = i3.row;
            return -1 !== r2 && (r2 += n3), -1 !== o2 && (o2 += e3), new t3(o2, r2, i3.rowCount, i3.colCount);
          }, t3.prototype.union = function(t4) {
            return Dn(this, t4);
          }, t3.prototype.Qui = function(n3, e3) {
            var i3 = this.getIntersect(n3);
            i3 && -1 !== i3.row && -1 !== i3.col ? (i3.row > this.row && e3.push(new t3(this.row, this.col, i3.row - this.row, this.colCount)), i3.col > this.col && e3.push(new t3(i3.row, this.col, this.rowCount - i3.row + this.row, i3.col - this.col)), i3.row + i3.rowCount < this.row + this.rowCount && e3.push(new t3(i3.row + i3.rowCount, i3.col, this.rowCount + this.row - i3.row - i3.rowCount, this.colCount - i3.col + this.col)), i3.col + i3.colCount < this.col + this.colCount && e3.push(new t3(i3.row, i3.col + i3.colCount, i3.rowCount, this.colCount + this.col - i3.col - i3.colCount))) : e3.push(this);
          }, t3.prototype.equals = function(n3) {
            var e3 = this;
            return n3 instanceof t3 && e3.row === n3.row && e3.col === n3.col && e3.rowCount === n3.rowCount && e3.colCount === n3.colCount;
          }, t3.prototype.toJSON = function() {
            var t4 = this;
            return { row: t4.row, col: t4.col, rowCount: t4.rowCount, colCount: t4.colCount };
          }, t3.prototype.fromJSON = function(t4) {
            var n3 = this;
            t4 && (n3.row = t4.row, n3.col = t4.col, n3.rowCount = t4.rowCount, n3.colCount = t4.colCount);
          }, t3;
        })(), n2.Range = Ct, n2.Ec = Nn, n2.areSelectionsEqual = jn, n2.getUnionRange = Dn, St = (function() {
          function t3() {
          }
          return t3.vl = function(t4, n3) {
            if (t4 && n3) {
              var e3 = t4.currentTheme();
              if (e3) return e3.getColor(n3);
            }
            return n3;
          }, t3.ml = function(t4, n3) {
            if (t4 && n3) {
              var e3 = t4.currentTheme();
              return e3 ? e3.getFont(n3) : n3;
            }
            return _;
          }, t3;
        })(), n2.Pf = St, Tt = (function() {
          function t3() {
          }
          return t3.ValidationError = "ValidationError", t3.CellClick = "CellClick", t3.CellDoubleClick = "CellDoubleClick", t3.ColumnChanging = "ColumnChanging", t3.RowChanging = "RowChanging", t3.EnterCell = "EnterCell", t3.LeaveCell = "LeaveCell", t3.ValueChanged = "ValueChanged", t3.TopRowChanged = "TopRowChanged", t3.CollaborationStartUndo = "CollaborationStartUndo", t3.CollaborationEndUndo = "CollaborationEndUndo", t3.CollaborationStartRedo = "CollaborationStartRedo", t3.CollaborationEndRedo = "CollaborationEndRedo", t3.SheetChanging = "SheetChanging", t3.SheetChanged = "SheetChanged", t3.PivotTableChanged = "PivotTableChanged", t3.PivotTableFormatClick = "PivotTableFormatClick", t3.PivotTableAdded = "PivotTableAdded", t3.LeftColumnChanged = "LeftColumnChanged", t3.InvalidOperation = "InvalidOperation", t3.RangeFiltering = "RangeFiltering", t3.RangeFiltered = "RangeFiltered", t3.RangeFilterClearing = "RangeFilterClearing", t3.TableFilterClearing = "TableFilterClearing", t3.RangeFilterCleared = "RangeFilterCleared", t3.TableFilterCleared = "TableFilterCleared", t3.TableFiltering = "TableFiltering", t3.TableFiltered = "TableFiltered", t3.RangeSorting = "RangeSorting", t3.RangeSorted = "RangeSorted", t3.ClipboardChanging = "ClipboardChanging", t3.ClipboardChanged = "ClipboardChanged", t3.ClipboardPasting = "ClipboardPasting", t3.ClipboardPasted = "ClipboardPasted", t3.ColumnWidthChanging = "ColumnWidthChanging", t3.ColumnWidthChanged = "ColumnWidthChanged", t3.RowHeightChanging = "RowHeightChanging", t3.RowHeightChanged = "RowHeightChanged", t3.DragDropBlock = "DragDropBlock", t3.DragDropBlockCompleted = "DragDropBlockCompleted", t3.DragFillBlock = "DragFillBlock", t3.DragFillBlockCompleted = "DragFillBlockCompleted", t3.EditStarting = "EditStarting", t3.EditStarted = "EditStarted", t3.EditChange = "EditChange", t3.EditEnding = "EditEnding", t3.EditEnd = "EditEnd", t3.EditEnded = "EditEnded", t3.RangeGroupStateChanging = "RangeGroupStateChanging", t3.RangeGroupStateChanged = "RangeGroupStateChanged", t3.InternalSelectionChanging = "InternalSelectionChanging", t3.SelectionChanging = "SelectionChanging", t3.SelectionChanged = "SelectionChanged", t3.SheetTabClick = "SheetTabClick", t3.SheetTabDoubleClick = "SheetTabDoubleClick", t3.SheetNameChanging = "SheetNameChanging", t3.SheetNameChanged = "SheetNameChanged", t3.ViewZooming = "ViewZooming", t3.ViewZoomed = "ViewZoomed", t3.UserZooming = "UserZooming", t3.UserFormulaEntered = "UserFormulaEntered", t3.CellChanged = "CellChanged", t3.ColumnChanged = "ColumnChanged", t3.RowChanged = "RowChanged", t3.ActiveSheetChanging = "ActiveSheetChanging", t3.ActiveSheetChanged = "ActiveSheetChanged", t3.CalculationProgress = s && s.CALC_PROGRESS_EVENT, t3.SparklineChanged = "SparklineChanged", t3.OutlineColumnCheckStatusChanged = "OutlineColumnCheckStatusChanged", t3.RangeChanged = "RangeChanged", t3.ButtonClicked = "ButtonClicked", t3.EditorStatusChanged = "EditorStatusChanged", t3.FloatingObjectChanged = "FloatingObjectChanged", t3.DrawingElementZIndexChanged = "DrawingElementZIndexChanged", t3.ProgressChanged = "ProgressChanged", t3.FloatingObjectSelectionChanged = "FloatingObjectSelectionChanged", t3.ShapeChanged = "ShapeChanged", t3.ShapeSelectionChanged = "ShapeSelectionChanged", t3.FormControlButtonClicked = "FormControlButtonClicked", t3.FormControlValueChanged = "FormControlValueChanged", t3.PictureChanged = "PictureChanged", t3.FloatingObjectRemoving = "FloatingObjectRemoving", t3.ShapeRemoving = "ShapeRemoving", t3.FloatingObjectRemoved = "FloatingObjectRemoved", t3.ShapeRemoved = "ShapeRemoved", t3.PictureSelectionChanged = "PictureSelectionChanged", t3.FloatingObjectLoaded = "FloatingObjectLoaded", t3.TouchToolStripOpening = "TouchToolStripOpening", t3.CommentChanged = "CommentChanged", t3.CommentRemoving = "CommentRemoving", t3.CommentRemoved = "CommentRemoved", t3.SlicerChanged = "SlicerChanged", t3.BeforeDragDrop = "BeforeDragDrop", t3.ActiveSheetChangingInternal = "ActiveSheetChangingInternal", t3.ActiveSheetChangedInternal = "ActiveSheetChangedInternal", t3.EnterCellInternal = "EnterCellInternal", t3.SheetOptionsChangedInternal = "SheetOptionsChangedInternal", t3.WorkbookOptionsChangedInternal = "WorkbookOptionsChangedInternal", t3.RangeChangedInternal = "RangeChangedInternal", t3.CustomNameChangedInternal = "CustomNameChangedInternal", t3.FormulaTextboxEditStarted = "FormulaTextboxEditStarted", t3.FormulaTextboxEditEnded = "FormulaTextboxEditEnded", t3.SheetBackgroundChangedInternal = "SheetBackgroundChangedInternal", t3.SheetMoving = "SheetMoving", t3.SheetMoved = "SheetMoved", t3.DragMerging = "DragMerging", t3.DragMerged = "DragMerged", t3.ChartClicked = "ChartClicked", t3.DataChartClicked = "DataChartClicked", t3.FloatingElementSelected = "FloatingElementSelected", t3.BeforePrint = "BeforePrint", t3.TableResizing = "TableResizing", t3.TableResized = "TableResized", t3.TableRowsChanged = "TableRowsChanged", t3.TableColumnsChanged = "TableColumnsChanged", t3.DropdownSpreadMouseClick = "DropdownSpreadMouseClick", t3.DropdownSpreadKeyboardEnter = "DropdownSpreadKeyboardEnter", t3.DropdownSpreadTouchTap = "DropdownSpreadTouchTap", t3.PasteEnd = "PasteEnd", t3.WorkbookUndo = "WorkbookUndo", t3.WorkbookRedo = "WorkbookRedo", t3.TableSheetColHeaderRowCountChanged = "TableSheetColHeaderRowCountChanged", t3.TableSheetGroupFieldSetting = "TableSheetGroupFieldSetting", t3.SheetTabAllSheetsListContextMenuOpening = "SheetTabAllSheetsListContextMenuOpening", t3.SheetTabAllSheetsListContextMenuOpened = "SheetTabAllSheetsListContextMenuOpened", t3.ReportSheetDataChanging = "ReportSheetDataChanging", t3.ReportSheetDataChanged = "ReportSheetDataChanged", t3.ReportSheetRecordsSubmitting = "ReportSheetRecordsSubmitting", t3.ReportSheetRecordsSubmitted = "ReportSheetRecordsSubmitted", t3.ActiveCellChanged = "ActiveCellChanged", t3.WorksheetDataChanged = "WorksheetDataChanged", t3.ReportSheetModeChanged = "ReportSheetModeChanged", t3.ReportPaginationSettingChanged = "ReportPaginationSettingChanged", t3.ReportPaginationPageChanged = "ReportPaginationPageChanged", t3.DataFetchCompleted = "DataFetchCompleted", t3.UserInfoChanged = "UserInfoChanged", t3;
        })(), n2.Events = Tt, xt = (function() {
          function t3(t4) {
            this.Mf = t4;
          }
          return t3.prototype.L0 = function() {
            this.Mf = _;
          }, t3.prototype.gl = function(t4, n3, e3) {
            var i3, r2 = this.pl, o2 = t4 << 4 + n3;
            return r2 ? ((i3 = r2[o2]) || (i3 = e3(), r2[o2] = i3), i3) : e3();
          }, t3.prototype.yl = function(t4, n3) {
            var e3, i3 = this.wl;
            return i3 && (e3 = i3[t4]) ? e3[n3] : _;
          }, t3.prototype.Ml = function(t4, n3, e3, i3) {
            var r2, o2 = this.wl;
            o2 && (o2[t4] || (o2[t4] = {}), (r2 = o2[t4])[n3] = { d: e3, i: i3 });
          }, t3.prototype.$t = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2;
            if (void 0 === r2 && (r2 = {}), a2 = (o2 = this).Mf, e3 === D && (e3 = 3), !(u2 = y(r2.rowSpacingIndex))) {
              if (s2 = a2.t0(t4, n3, e3), a2.options.showFormulas && ht.HRe(t4, n3, a2, e3)) return "";
              if (!b(s2)) return s2;
              if (c2 = r2.style, !b(c2) && ht.St(c2.formatter)) return At.Cl(a2, c2, o2.Sl(t4, n3, e3, 0), {}, { row: t4, col: n3, sheet: a2 });
            }
            return o2.Sl(t4, n3, e3, i3, r2);
          }, t3.prototype.Sl = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2;
            return void 0 === r2 && (r2 = {}), a2 = (o2 = this).Mf, u2 = o2.Tl, e3 === D && (e3 = 3), u2 ? ((s2 = u2[e3]) || (s2 = {}, u2[e3] = s2), (c2 = s2[t4]) || (c2 = {}, s2[t4] = c2), (f2 = c2[n3]) === D && (f2 = a2.$t(t4, n3, e3, i3), c2[n3] = f2), f2) : a2.$t(t4, n3, e3, i3, r2);
          }, t3.prototype.fdr = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.ldr;
            return n3 === D && (n3 = 3), e3 = function() {
              var e4 = a2.getColumnVisible(t4, n3), i4 = a2.getColumnWidth(t4, n3) > 0;
              return i4 && e4;
            }, u2 ? ((i3 = u2[n3]) || (i3 = {}, u2[n3] = i3), (r2 = i3[t4]) || (r2 = e3(), i3[t4] = r2), r2) : e3();
          }, t3.prototype.qt = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2;
            return void 0 === r2 && (r2 = {}), a2 = (o2 = this).Mf, u2 = o2.Al, e3 === D && (e3 = 3), u2 ? ((s2 = u2[e3]) || (s2 = {}, u2[e3] = s2), (c2 = s2[t4]) || (c2 = {}, s2[t4] = c2), (f2 = c2[n3]) || (r2.notClone = true, f2 = a2.Hao(t4, n3, e3, false, r2), c2[n3] = f2), f2.clone(true)) : (r2.notClone = false, a2.Hao(t4, n3, e3, false, r2));
          }, t3.prototype.MAe = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.Al;
            return e3 === D && (e3 = 3), s2 ? ((i3 = s2[e3]) || (i3 = {}, s2[e3] = i3), (r2 = i3[t4]) || (r2 = {}, i3[t4] = r2), (o2 = r2[n3]) || (o2 = u2.MAe(t4, n3, e3, false, { notClone: true }), r2[n3] = o2), o2.clone(true)) : u2.MAe(t4, n3, e3, false, { notClone: false });
          }, t3.prototype.Gt = function(t4, n3) {
            var e3, i3, r2, o2, u2;
            return void 0 === n3 && (n3 = a.SheetArea.viewport), i3 = (e3 = this).Mf, (r2 = e3.xl) ? ((o2 = r2[n3]) === D && (o2 = r2[n3] = {}), (u2 = o2[t4]) === D && (u2 = o2[t4] = i3.Gt(t4, n3)), u2) : i3.Gt(t4, n3);
          }, t3.prototype.Kt = function(t4, n3) {
            var e3, i3, r2, o2, u2;
            return void 0 === n3 && (n3 = a.SheetArea.viewport), i3 = (e3 = this).Mf, (r2 = e3.Nl) ? ((o2 = r2[n3]) === D && (o2 = r2[n3] = {}), (u2 = o2[t4]) === D && (u2 = o2[t4] = i3.nn(t4, n3)), u2) : i3.nn(t4, n3);
          }, t3.prototype.kl = function(t4) {
            var n3 = this;
            return n3.Tl ? (n3.Dl || (n3.Dl = t4()), n3.Dl) : t4();
          }, t3.prototype._l = function(t4) {
            var n3 = this;
            return n3.Tl ? (n3.El || (n3.El = t4()), n3.El) : t4();
          }, t3.prototype.jl = function() {
            var t4 = this;
            t4.Ol = true, t4.pl = {}, t4.wl = {}, t4.Tl = {}, t4.Al = {}, t4.ldr = {}, t4.xl = {}, t4.Nl = {};
          }, t3.prototype.Rl = function() {
            this.Ol = false;
          }, t3.prototype.Bl = function() {
            var t4 = this;
            t4.Ol = false, t4.pl = _, t4.wl = _, t4.Tl = _, t4.Al = _, t4.ldr = _, t4.Nl = _, t4.xl = _, t4.Dl = _, t4.El = _;
          }, t3;
        })(), n2.Ff = xt, At = (function() {
          function t3() {
          }
          return t3.Ll = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2;
            if (t3.Fl = true, (a2 = n3.tables) && a2.Pl(e3, i3, r2 - e3 + 1, o2 - i3 + 1)) for (u2 = -1, s2 = t3.Gl = [], c2 = 0; c2 <= r2; c2++) n3.getRowVisible(c2) ? (u2++, s2[c2] = u2) : s2[c2] = -1;
          }, t3.dl = function() {
            t3.Gl = _, t3.Fl = false;
          }, t3.Ue = function(n3) {
            var e3 = t3.Ul;
            return e3[n3] || (e3[n3] = g ? new g(n3) : _), e3[n3];
          }, t3.Re = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2 = t3.Hl, h2 = n3 + "_" + typeof n3;
            return g ? (l2[e3] || (l2[e3] = {}), (o2 = (r2 = l2[e3])[h2]) ? (i3 && (i3.conditionalForeColor = i3.value = o2.color, i3.content = p(o2.content)), o2.text) : ((a2 = t3.Ul)[e3] || (a2[e3] = new g(e3)), s2 = {}, c2 = (u2 = a2[e3]).format(n3, s2), (f2 = r2[h2] = {}).text = c2, f2.color = s2.conditionalForeColor, f2.content = s2.content, i3 && (i3.conditionalForeColor = i3.value = s2.conditionalForeColor, i3.content = p(s2.content)), c2)) : n3.toString();
          }, t3.Cl = function(t4, n3, e3, i3, r2) {
            var o2, a2;
            return e3 && "SparklineExValue" === e3.typeName ? "" : (o2 = n3.cellType || t4.$f(), a2 = n3.formatter || n3._autoFormatter, o2.format(e3, a2, i3, r2));
          }, t3.zl = function() {
            t3.Ul = {}, t3.Hl = {};
          }, t3.Fl = false, t3.Ul = {}, t3.Hl = {}, t3.Gl = [], t3;
        })(), n2.Be = At, It = (function() {
          function t3() {
          }
          return t3.Vl = function(t4, n3, e3) {
            var i3 = _n(t4);
            i3.scaleX = n3, i3.scaleY = e3, i3.translateX = i3.orgTranslateX * n3, i3.translateY = i3.orgTranslateY * e3, t4.setTransform(i3.scaleX, i3.skewX, i3.skewY, i3.scaleY, i3.translateX, i3.translateY);
          }, t3.Yl = function(t4, n3, e3) {
            var i3 = _n(t4);
            i3.orgTranslateX += n3, i3.orgTranslateY += e3, i3.translateX = i3.orgTranslateX * i3.scaleX, i3.translateY = i3.orgTranslateY * i3.scaleY, t4.setTransform(i3.scaleX, i3.skewX, i3.skewY, i3.scaleY, i3.translateX, i3.translateY);
          }, t3.d5 = function(t4) {
            var n3 = null == t4 ? void 0 : t4.getContext("2d");
            n3 && (n3.clearRect(0, 0, t4.width, t4.height), t4.width = 1, t4.height = 1);
          }, t3;
        })(), n2.Lf = It, kt = It, Nt = (function() {
          function t3() {
          }
          return t3.Zl = function() {
            var t4 = A.screen, n3 = t4.deviceXDPI, e3 = A.devicePixelRatio || (n3 ? n3 / t4.logicalXDPI : 1), i3 = 20 * e3, r2 = F(i3);
            return r2 - i3 > 0.82 ? r2 / 20 : F(100 * e3) / 100;
          }, t3.Wl = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3;
            if (On(n3, 1), En(n3, 1), (1 !== (r2 = t3.Zl()) || 1 !== h2.dpr) && (h2.dpr = r2, o2 = e3 || i3 && i3.parent)) {
              for (a2 = h2.Ql, u2 = void 0, s2 = 0; s2 < a2.length; s2++) if (o2 === a2[s2].workbook) {
                u2 = a2[s2];
                break;
              }
              if (u2 || (u2 = { workbook: o2, sheets: [], canvases: [] }, a2.push(u2)), e3) u2.canvases.push(n3);
              else {
                for (c2 = void 0, f2 = u2.sheets, l2 = 0; l2 < f2.length; l2++) if (f2[l2].sheet === i3) {
                  c2 = f2[l2];
                  break;
                }
                c2 || (c2 = { sheet: i3, canvases: [] }, f2.push(c2)), c2.canvases.push(n3);
              }
            }
          }, t3.Kl = function(t4) {
            return t4 && t4.Sf || 1;
          }, t3.Jl = function(t4) {
            return t4 && t4.Tf || 1;
          }, t3.Xl = function(t4) {
            return t4.Af;
          }, t3.ql = function(t4) {
            return t4.If;
          }, t3.$l = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2;
            0 !== e3 && 0 !== i3 && (o2 = (r2 = t3).dpr, a2 = r2.Kl(n3), u2 = r2.Jl(n3), Rn(n3, e3), Ln(n3, i3), 1 === o2 && 1 === a2 && 1 === u2 ? (n3.width = e3, n3.height = i3) : (s2 = n3.getContext("2d"), kt.Vl(s2, 1, 1), ht.Tt.mozilla ? (n3.width = E(e3 * o2), n3.height = E(i3 * o2)) : (n3.width = F(e3 * o2), n3.height = F(i3 * o2)), n3.style.width = e3 + Q, n3.style.height = i3 + Q, c2 = n3.width / e3, f2 = n3.height / i3, c2 === a2 && f2 === u2 || (On(n3, c2), En(n3, f2)), kt.Vl(s2, c2, f2)));
          }, t3.th = function(n3, e3) {
            var i3, r2, o2, a2, u2, s2 = t3.Ql, c2 = n3.parent;
            for (o2 = 0; o2 < s2.length; o2++) if (!c2 || s2[o2].workbook === c2) {
              for (i3 = s2[o2].sheets, a2 = 0; a2 < i3.length; a2++) if (i3[a2].sheet === n3) {
                for (r2 = i3[a2].canvases, u2 = 0; u2 < r2.length; u2++) if (r2[u2] === e3) {
                  r2.splice(u2, 1);
                  break;
                }
                break;
              }
            }
          }, t3.nh = function(n3, e3) {
            var i3, r2, o2, a2 = t3.Ql;
            for (r2 = 0; r2 < a2.length; r2++) if (a2[r2].workbook === n3) {
              for (i3 = a2[r2].canvases, o2 = 0; o2 < i3.length; o2++) if (i3[o2] === e3) {
                i3.splice(o2, 1);
                break;
              }
            }
          }, t3.eh = function(n3) {
            var e3, i3, r2, o2 = t3.Ql, a2 = n3.parent;
            for (i3 = 0; i3 < o2.length; i3++) if (!a2 || o2[i3].workbook === a2) {
              for (e3 = o2[i3].sheets, r2 = 0; r2 < e3.length; r2++) e3[r2].sheet === n3 && e3.splice(r2, 1);
              return;
            }
          }, t3.ih = function(n3) {
            var e3, i3 = t3.Ql;
            for (e3 = 0; e3 < i3.length; e3++) if (i3[e3].workbook === n3) return void i3.splice(e3, 1);
          }, t3.rh = function() {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = t3, f2 = c2.Zl();
            if (c2.dpr !== f2) for (n3 = c2.Ql, e3 = void 0, i3 = void 0, r2 = void 0, o2 = void 0, c2.dpr = f2, a2 = 0; a2 < n3.length; a2++) {
              for (r2 = (i3 = n3[a2]).canvases, e3 = i3.sheets, u2 = 0; u2 < e3.length; u2++) r2 = r2.concat(e3[u2].canvases);
              for (s2 = 0; s2 < r2.length; s2++) o2 = r2[s2], c2.$l(o2, c2.Xl(o2), c2.ql(o2));
            }
          }, t3.dpr = 1, t3.Ql = [], t3;
        })(), n2.Bf = Nt, n2.zt = Pn, n2.W3e = Gn, n2.resetSize = Jn, jt = (function() {
          function t3() {
          }
          return t3.un = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = [];
            if (!t4 || 0 === t4.length || isNaN(n3)) return p2;
            if (!(o2 = r2 || Fn())) return p2;
            if (ht.bt(o2, e3), a2 = ht.vt(e3), n3 <= 0) {
              for (u2 = -1, s2 = true, c2 = 0; c2 < t4.length; c2++) (f2 = t4.charAt(c2)) === K || s2 ? f2 !== K && s2 && (u2 = i3 ? a2 : vt(o2, o2.font, f2), s2 = false) : u2 = R(u2, i3 ? a2 : vt(o2, o2.font, f2));
              if ((n3 = u2) <= 0) return [t4];
            }
            for (l2 = t4.split(/\r\n|\r|\n/), h2 = 0; h2 < l2.length; h2++) if (d2 = Zn(l2[h2], n3, i3, a2, o2)) if (0 === d2.length) p2.push("");
            else for (v2 = 0; v2 < d2.length; v2++) p2.push(d2[v2]);
            return p2;
          }, t3.oh = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2 = [];
            if (0 === e3.length) return f2;
            if (r2) f2 = t3.un(e3, o2, i3, true);
            else for (a2 = e3.split(/\r\n|\r|\n/), u2 = 0; u2 < a2.length; u2++) {
              for (s2 = [], c2 = 0; c2 < a2[u2].length; c2++) s2.push(a2[u2][c2]);
              f2.push(s2);
            }
            return f2;
          }, t3.Ht = function(n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2 = [];
            if (0 === n3.length) return v2;
            if (!(u2 = a2 || Fn())) return v2;
            if (e3 <= 0 && (e3 = Jn(u2, r2, i3, o2)) <= 0) {
              for (c2 = [], s2 = 0; s2 < r2.length; s2++) b(r2[s2].text) || c2.push({ textLength: t3.ah([r2[s2]], i3, 1, o2, true, u2), text: r2[s2].text, textInfos: [r2[s2]] });
              return c2;
            }
            for (f2 = t3.uh(n3), l2 = t3.Vt(f2, t3.Yt(r2)), s2 = 0; s2 < l2.length; s2++) if (h2 = Wn(l2[s2], e3, i3, o2, u2)) if (0 === h2.length) v2.push("");
            else for (d2 = 0; d2 < h2.length; d2++) v2.push(h2[d2]);
            return v2;
          }, t3.uh = function(t4) {
            var n3, e3 = [], i3 = t4.split(/\r\n|\r|\n/);
            for (n3 = 0; n3 < i3.length; n3++) e3.push(Pn(i3[n3]));
            return e3;
          }, t3.Vt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = [], c2 = 0, f2 = 0;
            for (e3 = 0; e3 < t4.length; e3++) {
              for (i3 = [], r2 = 0; r2 < t4[e3].length && c2 < n3.length; r2++) if ((o2 = t4[e3][r2]).length <= n3[c2].text.length - f2) i3.push([{ style: n3[c2].style, text: o2 }]), f2 += o2.length;
              else {
                for ((a2 = []).push({ style: n3[c2].style, text: n3[c2].text.substring(f2) }), u2 = o2.length - (n3[c2].text.length - f2), c2++; c2 < n3.length; c2++) {
                  if (u2 < n3[c2].text.length) {
                    a2.push({ style: n3[c2].style, text: o2.substring(o2.length - u2) }), f2 = u2;
                    break;
                  }
                  if (u2 === n3[c2].text.length) {
                    a2.push({ style: n3[c2].style, text: o2.substring(o2.length - u2) }), c2++, f2 = 0;
                    break;
                  }
                  a2.push({ style: n3[c2].style, text: n3[c2].text }), u2 -= n3[c2].text.length;
                }
                i3.push(a2);
              }
              s2.push(i3);
            }
            return s2;
          }, t3.Wt = function(t4, n3, e3, i3) {
            var r2, o2 = i3 || Fn();
            return o2 ? (n3 && ht.bt(o2, n3), r2 = e3 ? Gn(t4) : t4, vt(o2, o2.font, r2)) : 0;
          }, t3.Yt = function(t4) {
            var n3, e3 = [];
            for (n3 = 0; n3 < t4.length; n3++) b(t4[n3].text) || e3.push({ style: t4[n3].style, text: t4[n3].text ? t4[n3].text.replace(/\r\n|\r|\n/g, "") : t4[n3].text });
            return e3;
          }, t3.ah = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2 = o2 || Fn();
            if (!l2) return 0;
            for (a2 = 0, u2 = 0; u2 < t4.length; u2++) s2 = void 0, s2 = t4[u2].style && t4[u2].style.font ? t4[u2].style.font : n3, ht.bt(l2, s2), c2 = "", c2 = u2 === t4.length - 1 && r2 ? Gn(t4[u2].text) : t4[u2].text, f2 = 0, i3 ? f2 = ht.qao(s2, c2) * c2.length / e3 : b(t4[u2].text) || (f2 = vt(l2, l2.font, t4[u2].text) / e3), t4[u2].style && t4[u2].style.vertAlign && (f2 *= W), a2 += f2;
            return a2;
          }, t3.Zt = function(n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2 = 0, f2 = ht.vt(a2), l2 = (u2 - 4 - f2 * r2) / i3, h2 = t3.un(o2, l2, a2), d2 = h2.length, v2 = f2 / i3, p2 = f2 * i3;
            return c2 = (d2 - 1) * v2, c2 += t3.Wt(h2[0], a2) / 2 * r2 + p2, c2 += t3.Wt(h2[d2 - 1], a2) / 2 * r2 + p2;
          }, t3.tt = function(t4) {
            return Gn(t4);
          }, t3.J = function() {
            return Fn();
          }, t3.Q3e = function(t4) {
            var n3, e3, r2, o2 = [], a2 = i2.Common.CultureManager.Fe(), u2 = a2.FAe(t4), s2 = 0;
            for (n3 = 0, e3 = u2; n3 < e3.length; n3++) (r2 = e3[n3]) === K ? s2++ : (o2.push({ word: r2, prefixSpaceCount: s2 }), s2 = 0);
            return o2;
          }, t3;
        })(), n2.q = jt, Dt = function(t3, n3) {
          void 0 === n3 && (n3 = false), n3 && (t3.E5e = function(n4) {
            var e3;
            t3.R5e = null !== (e3 = t3.registerCallBack) && void 0 !== e3 ? e3 : [], t3.R5e.push(n4);
          }, t3.EAe = function(n4) {
            var e3, i3;
            t3.R5e = null !== (e3 = t3.registerCallBack) && void 0 !== e3 ? e3 : [], -1 !== (i3 = t3.R5e.indexOf(n4)) && t3.R5e.splice(i3, 1);
          }), t3.ch = function(e3, i3) {
            var r2, o2, a2;
            for (t3.fh || (t3.fh = []), t3._featuresCache = {}, o2 = t3.fh, i3.name = e3, i3.priority = i3.priority || 5e3, a2 = 0; ; a2++) if (a2 >= o2.length || i3.priority > o2[a2].priority) {
              o2.splice(a2, 0, i3);
              break;
            }
            n3 && (null !== (r2 = t3.R5e) && void 0 !== r2 ? r2 : []).forEach((function(t4) {
              t4();
            }));
          }, t3.et = function(e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2 = t3.fh;
            if (h2) {
              if (e3 && !e3._featuresCache && (e3._featuresCache = {}), !(s2 = n3 && e3 ? null === (a2 = e3._featuresCache) || void 0 === a2 ? void 0 : a2[i3] : null === (u2 = t3._featuresCache) || void 0 === u2 ? void 0 : u2[i3])) for (s2 = n3 && e3 ? e3._featuresCache[i3] = [] : t3._featuresCache[i3] = [], c2 = 0; c2 < h2.length; c2++) (f2 = h2[c2])[i3] && (l2 = !f2.isValid || f2.isValid.call(e3, i3)) && s2.push(f2[i3]);
              for (c2 = 0; c2 < s2.length && (s2[c2].call(e3, r2), !o2 || !o2()); c2++) ;
            }
          };
        }, n2.$e = Dt, _t = (function() {
          function t3() {
            this.Nf = {};
          }
          return t3.prototype.get = function(t4, n3) {
            var e3 = this.Nf[t4];
            return e3 ? e3[n3] : D;
          }, t3.prototype.set = function(t4, n3, e3) {
            var i3 = this.Nf[t4];
            i3 || (i3 = this.Nf[t4] = {}), i3[n3] = e3;
          }, t3;
        })(), n2.Rf = _t, Ot = (function() {
          function t3() {
          }
          return t3.processBackspaceAndLeftArrowKeyEvent = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = A.getSelection();
            if (!(b2.rangeCount <= 0)) {
              if (e3 = b2.anchorNode, i3 = b2.anchorOffset, r2 = t4.target, ht.browser.msie && !ht.browser.edge && n3 && te(e3, i3, r2)) return a2 = (o2 = parseFloat(ht.browser.version) < 10 ? fe(r2) : r2.innerText).slice(0, -1), r2.innerHTML = a2.replace(/\r/g, "").replace(/\n/g, "<br>​"), b2.selectAllChildren(r2), b2.rangeCount > 0 && b2.collapseToEnd(), void Kt(t4);
              if (s2 = (u2 = b2.getRangeAt(0)).startContainer, c2 = u2.endContainer, f2 = u2.startOffset, l2 = u2.endOffset, h2 = s2 === c2 && f2 === l2) {
                if ((d2 = se(e3, i3)) && d2.zeroWidthCharNode) {
                  if (v2 = d2.zeroWidthCharNode, p2 = d2.previousTextNode, n3) if (ne(v2)) v2.parentNode.removeChild(v2);
                  else {
                    if (v2.parentNode.removeChild(v2.previousSibling), ee(p2)) return void Kt(t4);
                    (g2 = b2.getRangeAt(0)).setStart(v2, 0), g2.setEnd(v2, 1), g2.deleteContents();
                  }
                  m2 = I.createRange(), qn(p2) ? (m2.setStart(p2, 1), m2.setEnd(p2, 1)) : (m2.setStartAfter(p2), m2.setEndAfter(p2)), m2.collapse(false), b2.removeAllRanges(), b2.addRange(m2), Kt(t4);
                }
              } else n3 && Xn(b2);
            }
          }, t3.processDeleteAndRightArrowKeyEvent = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = A.getSelection();
            p2.rangeCount <= 0 || (i3 = (e3 = p2.getRangeAt(0)).startContainer, r2 = e3.endContainer, o2 = e3.startOffset, a2 = e3.endOffset, (u2 = i3 === r2 && o2 === a2) ? (s2 = ce(p2, n3)) && s2.node && (l2 = se(c2 = s2.node, f2 = s2.offset), n3 ? (h2 = p2.getRangeAt(0), 1 === f2 ? (h2.setStart(c2, 0), h2.setEnd(c2, 1), c2.parentNode.removeChild(c2.previousSibling), h2.deleteContents(), l2 && l2.previousTextNode && (d2 = l2.previousTextNode, v2 = I.createRange(), qn(d2) ? (v2.setStart(d2, 1), v2.setEnd(d2, 1)) : (v2.setStartAfter(d2), v2.setEndAfter(d2)), v2.collapse(false), p2.removeAllRanges(), p2.addRange(v2))) : 0 === f2 && (h2.setStart(c2, 1), h2.setEnd(c2, 2), h2.deleteContents())) : ((v2 = I.createRange()).setStart(c2, f2), v2.setEnd(c2, f2), v2.collapse(false), p2.removeAllRanges(), p2.addRange(v2)), Kt(t4)) : n3 && Xn(p2));
          }, t3;
        })(), n2.di = Ot, n2.Of = { touch: false }, n2.jf = pe, n2.Ef = ge, n2._f = me, n2.rke = be, n2.Df = ye, n2.kf = Me, Et = (function() {
          function t3() {
          }
          return t3.hh = function(t4) {
            var n3, e3, i3;
            if (!b(t4)) return n3 = {}, e3 = t4.row + t4.rowCount - 1, i3 = t4.col + t4.colCount - 1, n3.minRow = t4.row, n3.minCol = t4.col, n3.maxRow = e3, n3.maxCol = i3, n3;
          }, t3.vh = function(t4, n3) {
            if (b(n3) || b(n3.minRow)) return t4;
            t4.minRow = b(t4.minRow) ? n3.minRow : R(t4.minRow, n3.minRow), t4.minCol = b(t4.minCol) ? n3.minCol : R(t4.minCol, n3.minCol), t4.maxRow = b(t4.maxRow) ? n3.maxRow : L(t4.maxRow, n3.maxRow), t4.maxCol = b(t4.maxCol) ? n3.maxCol : L(t4.maxCol, n3.maxCol);
          }, t3.updateUsedRangeByData = function(t4, n3, e3, i3, r2) {
            i3 === r2 || !b(i3) && !b(r2) || b(t4) || (!b(i3) && b(r2) && t4.removeRowAndColInfo(n3, e3), b(i3) && !b(r2) && t4.addRowAndColInfo(n3, e3));
          }, t3;
        })(), n2.UsedRangeUtil = Et, Rt = (function() {
          function t3() {
            var t4 = this;
            t4.rowInfo = [], t4.colInfo = [], t4.wholeCols = {}, t4.wholeRows = {}, t4.data = [];
          }
          return t3.prototype.getRowUsedRange = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.wholeRows, a2 = Object.keys(o2);
            return a2.length > 0 && (t4 = +a2[0], n3 = 0, e3 = +a2[a2.length - 1], i3 = 1 / 0), { minRow: t4, minCol: n3, maxRow: e3, maxCol: i3 };
          }, t3.prototype.getColUsedRange = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.wholeCols, a2 = Object.keys(o2);
            return a2.length > 0 && (n3 = +a2[0], t4 = 0, i3 = +a2[a2.length - 1], e3 = 1 / 0), { minRow: t4, minCol: n3, maxRow: e3, maxCol: i3 };
          }, t3.prototype.getUsedRange = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.rowInfo, l2 = c2.colInfo, h2 = 0, d2 = f2.length - 1, v2 = 0, p2 = l2.length - 1;
            for (t4 && (h2 = t4.row, v2 = t4.col, d2 = h2 + t4.rowCount - 1, p2 = v2 + t4.colCount - 1), o2 = h2; o2 <= d2; o2++) if (f2[o2]) {
              n3 = o2;
              break;
            }
            for (a2 = d2; a2 >= h2; a2--) if (f2[a2]) {
              i3 = a2;
              break;
            }
            for (u2 = v2; u2 <= p2; u2++) if (l2[u2]) {
              e3 = u2;
              break;
            }
            for (s2 = p2; s2 >= v2; s2--) if (l2[s2]) {
              r2 = s2;
              break;
            }
            return b(n3) || b(e3) || b(i3) || b(r2) ? {} : { minRow: n3, minCol: e3, maxRow: i3, maxCol: r2 };
          }, t3.prototype.addRowAndColInfo = function(t4, n3) {
            var e3, i3 = this, r2 = i3.rowInfo, o2 = i3.colInfo, a2 = i3.data;
            b(t4) || b(n3) || -1 === t4 && -1 === n3 || (-1 === t4 ? i3.wholeCols[n3] = true : -1 === n3 ? i3.wholeRows[t4] = true : (b(r2[t4]) ? r2[t4] = 1 : r2[t4]++, b(o2[n3]) ? o2[n3] = 1 : o2[n3]++, (null === (e3 = a2[t4]) || void 0 === e3 ? void 0 : e3[n3]) || (a2[t4] || (a2[t4] = []), a2[t4][n3] = true)));
          }, t3.prototype.removeRowAndColInfo = function(t4, n3) {
            var e3, i3 = this, r2 = i3.rowInfo, o2 = i3.colInfo, a2 = i3.data;
            -1 === t4 && -1 === n3 || (-1 === t4 ? delete i3.wholeCols[n3] : -1 === n3 ? delete i3.wholeRows[t4] : (null === (e3 = a2[t4]) || void 0 === e3 ? void 0 : e3[n3]) && (r2[t4]--, o2[n3]--, a2[t4][n3] = false));
          }, t3.prototype.addHeadInfo = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = e3 ? f2.rowInfo : f2.colInfo, h2 = f2.data, d2 = [];
            if (d2.length = n3, r2 = l2.slice(0, t4), o2 = l2.slice(t4), l2 = r2.concat(d2).concat(o2), e3) f2.rowInfo = l2, (a2 = []).length = n3, u2 = h2.slice(0, t4), s2 = h2.slice(t4), f2.data = u2.concat(a2).concat(s2);
            else for (f2.colInfo = l2, c2 = 0; c2 < h2.length; c2++) (null === (i3 = h2[c2]) || void 0 === i3 ? void 0 : i3.length) > t4 && ((a2 = []).length = n3, u2 = h2[c2].slice(0, t4), s2 = h2[c2].slice(t4), h2[c2] = u2.concat(a2).concat(s2));
          }, t3.prototype.removeHeadInfo = function(t4, n3, e3) {
            var i3, r2 = this, o2 = e3 ? r2.rowInfo : r2.colInfo, a2 = r2.data;
            if (o2.splice(t4, n3), e3) a2.splice(t4, n3);
            else for (i3 = 0; i3 < a2.length; i3++) a2[i3] && a2[i3].splice(t4, n3);
          }, t3.prototype.dispose = function() {
            var t4 = this;
            t4.rowInfo = D, t4.colInfo = D, t4.wholeCols = D, t4.wholeRows = D, t4.data = D;
          }, t3;
        })(), n2.BaseUsedRange = Rt, n2.NUMBER_ARRAY = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Lt = (function() {
          function t3() {
            this.reset();
          }
          return t3.prototype.getTextIndex = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this;
            if (t4.richText) if ((e3 = t4.text) === D && (e3 = t4.text = ht.g0(t4).text), (n3 = c2.mh[e3]) === D || c2.gh[e3] === D) n3 = c2.ph.push(t4) - 1, c2.mh[e3] = n3, c2.gh[e3] = [], c2.gh[e3].push({ i: n3, v: t4, j: JSON.stringify(t4) });
            else {
              for (i3 = void 0, r2 = JSON.stringify(t4), a2 = 0, u2 = (o2 = c2.gh[e3]).length; a2 < u2; a2++) if ((s2 = o2[a2]) && (s2.v === t4 || s2.j === r2)) {
                i3 = a2;
                break;
              }
              i3 >= 0 ? n3 = o2[i3].i : (n3 = c2.ph.push(t4) - 1, o2.push({ i: n3, v: t4, j: r2 }));
            }
            else ((n3 = c2.mh[t4]) === D || c2.gh[t4]) && (n3 = c2.ph.push(t4) - 1, c2.mh[t4] = n3);
            return n3;
          }, t3.prototype.getText = function(t4) {
            var n3 = this.ph[t4];
            return b(n3) ? t4 : n3;
          }, t3.prototype.getCount = function() {
            return this._length;
          }, t3.prototype.reset = function() {
            var t4 = this;
            t4.ph = [], t4.mh = {}, t4.gh = {}, t4._length = 0;
          }, t3.prototype.rebuildSSTDict = function() {
            var t4 = this;
            t4.ph.forEach((function(n3, e3) {
              if (n3.richText) {
                var i3 = n3.text;
                i3 === D && (i3 = n3.text = ht.g0(n3).text), t4.mh[i3] = e3;
              } else t4.mh[n3] = e3;
            }));
          }, t3.prototype.yh = function(t4) {
            if (t4 && t4.length > 0) {
              var n3 = this;
              n3.reset(), n3.ph = t4;
            }
          }, t3.prototype.wh = function() {
            return this.ph;
          }, t3;
        })(), n2.SharedStrings = Lt, Ft = { 8: { "Gill Sans MT": 6, Abadi: 7, "Abadi Extra Light": 6, "Agency FB": 5, Aharoni: 5, Aldhabi: 4, Algerian: 7, "Ami R": 5, "Angsana New": 4, AngsanaUPC: 4, Aparajita: 4, "Arabic Typesetting": 4, Arial: 6, "Arial Black": 7, "Arial Narrow": 5, "Arial Nova": 6, "Arial Nova Cond": 6, "Arial Nova Cond Light": 5, "Arial Nova Light": 6, "Arial Rounded MT Bold": 7, "Baskerville Old Face": 5, Batang: 6, BatangChe: 6, "Bauhaus 93": 6, "Bell MT": 6, Bembo: 5, "Berlin Sans FB": 7, "Berlin Sans FB Demi": 7, "Bernard MT Condensed": 5, "Blackadder ITC": 4, "Bodoni MT": 5, "Bodoni MT Black": 7, "Bodoni MT Condensed": 4, "Bodoni MT Poster Compressed": 4, "Book Antiqua": 6, "Bookman Old Style": 7, "Bookshelf Symbol 7": 8, "Bradley Hand ITC": 7, "Britannic Bold": 7, Broadway: 7, "Browallia New": 4, BrowalliaUPC: 4, "Brush Script MT": 6, Calibri: 6, "Calibri Light": 6, "Californian FB": 5, "Calisto MT": 6, Cambria: 6, "Cambria Math": 6, Candara: 6, Castellar: 8, Centaur: 5, Century: 6, "Century Gothic": 6, "Century Schoolbook": 6, Chiller: 5, "Colonna MT": 6, "Comic Sans MS": 7, Consolas: 6, Constantia: 6, "Cooper Black": 7, "Copperplate Gothic Bold": 8, "Copperplate Gothic Light": 8, Corbel: 6, "Cordia New": 4, CordiaUPC: 4, "Courier New": 7, "Curlz MT": 6, Dante: 5, DaunPenh: 4, David: 5, DilleniaUPC: 3, DokChampa: 6, Dotum: 6, DotumChe: 6, Dubai: 6, "Dubai Light": 6, "Dubai Medium": 6, Ebrima: 6, "Edwardian Script ITC": 5, Elephant: 8, "Engravers MT": 7, "Eras Bold ITC": 7, "Eras Demi ITC": 7, "Eras Light ITC": 6, "Eras Medium ITC": 6, EucrosiaUPC: 4, Euphemia: 6, "Expo M": 10, FangSong: 6, "Felix Titling": 6, "Footlight MT Light": 6, Forte: 6, "Franklin Gothic Book": 6, "Franklin Gothic Demi": 6, "Franklin Gothic Demi Cond": 6, "Franklin Gothic Heavy": 6, "Franklin Gothic Medium": 6, "Franklin Gothic Medium Cond": 6, FrankRuehl: 5, FreesiaUPC: 5, "Freestyle Script": 4, "French Script MT": 4, Gabriola: 4, Gadugi: 6, Garamond: 5, Gautami: 7, Georgia: 8, "Georgia Pro": 6, "Georgia Pro Black": 8, "Georgia Pro Cond": 6, "Georgia Pro Cond Black": 7, "Georgia Pro Cond Light": 6, "Georgia Pro Cond Semibold": 6, "Georgia Pro Light": 6, "Georgia Pro Semibold": 7, Gigi: 5, "Gill Sans MT Condensed": 4, "Gill Sans MT Ext Condensed Bold": 4, "Gill Sans Nova": 6, "Gill Sans Nova Cond": 4, "Gill Sans Nova Cond Lt": 3, "Gill Sans Nova Cond Ultra Bold": 6, "Gill Sans Nova Cond XBd": 6, "Gill Sans Nova Light": 6, "Gill Sans Nova Ultra Bold": 9, "Gill Sans Ultra Bold": 9, "Gill Sans Ultra Bold Condensed": 6, Gisha: 6, "Gloucester MT Extra Condensed": 4, "Goudy Old Style": 6, "Goudy Stout": 9, Grotesque: 5, "Grotesque Light": 5, Gulim: 6, GulimChe: 6, Gungsuh: 6, GungsuhChe: 6, "Hadassah Friedlaender": 6, Haettenschweiler: 5, "Harlow Solid Italic": 5, Harrington: 6, "Headline R": 8, HGGothicE: 6, HGGothicM: 6, HGGyoshotai: 6, HGKyokashotai: 6, HGMaruGothicMPRO: 8, HGMinchoB: 7, HGMinchoE: 7, HGPGothicE: 7, HGPGothicM: 7, HGPGyoshotai: 6, HGPKyokashotai: 6, HGPMinchoB: 6, HGPMinchoE: 7, HGPSoeiKakugothicUB: 8, HGPSoeiKakupoptai: 8, HGPSoeiPresenceEB: 7, HGSeikaishotaiPRO: 7, HGSGothicE: 6, HGSGothicM: 6, HGSGyoshotai: 5, HGSKyokashotai: 5, HGSMinchoB: 6, HGSMinchoE: 7, HGSoeiKakugothicUB: 7, HGSoeiKakupoptai: 7, HGSoeiPresenceEB: 7, HGSSoeiKakugothicUB: 7, HGSSoeiKakupoptai: 7, HGSSoeiPresenceEB: 6, "High Tower Text": 5, "HYGothic-Extra": 7, "HYGothic-Medium": 6, "HYGraphic-Medium": 6, "HYGungSo-Bold": 6, "HYHeadLine-Medium": 6, "HYMyeongJo-Extra": 7, "HYPMokGak-Bold": 8, "HYPost-Light": 7, "HYPost-Medium": 8, "HYShortSamul-Medium": 4, "HYSinMyeongJo-Medium": 7, Impact: 6, "Imprint MT Shadow": 6, "Informal Roman": 6, "Ink Free": 6, IrisUPC: 6, "Iskoola Pota": 6, JasmineUPC: 6, "Javanese Text": 6, Jokerman: 8, "Juice ITC": 4, KaiTi: 6, Kalinga: 6, Kartika: 6, "Khmer UI": 6, KodchiangUPC: 6, Kokila: 6, "Kristen ITC": 7, "Kunstler Script": 4, "Lao UI": 6, Latha: 6, Leelawadee: 6, "Leelawadee UI": 6, "Leelawadee UI Semilight": 6, "Levenim MT": 6, LilyUPC: 6, "Lucida Bright": 7, "Lucida Calligraphy": 7, "Lucida Console": 8, "Lucida Fax": 7, "Lucida Handwriting": 8, "Lucida Sans": 7, "Lucida Sans Typewriter": 7, "Lucida Sans Unicode": 8, "Magic R": 7, Magneto: 8, "Maiandra GD": 7, "Malgun Gothic": 6, "Malgun Gothic Semilight": 7, Mangal: 7, Marlett: 12, "Matura MT Script Capitals": 8, Meiryo: 7, "Meiryo UI": 7, "Microsoft GothicNeo": 7, "Microsoft Himalaya": 5, "Microsoft JhengHei": 7, "Microsoft JhengHei Light": 7, "Microsoft JhengHei UI": 7, "Microsoft JhengHei UI Light": 7, "Microsoft New Tai Lue": 6, "Microsoft PhagsPa": 6, "Microsoft Sans Serif": 7, "Microsoft Tai Le": 6, "Microsoft Uighur": 4, "Microsoft YaHei Light": 7, "Microsoft YaHei UI": 7, "Microsoft YaHei UI Light": 7, "Microsoft Yi Baiti": 7, MingLiU: 7, MingLiU_HKSCS: 7, "MingLiU_HKSCS-ExtB": 7, "MingLiU-ExtB": 7, Miriam: 7, "Miriam Fixed": 7, Mistral: 6, "Modern No. 20": 6, "MoeumT R": 7, "Mongolian Baiti": 7, "Monotype Corsiva": 6, MoolBoran: 7, "MS Gothic": 6, "MS Mincho": 7, "MS Outlook": 7, "MS PGothic": 7, "MS PMincho": 7, "MS Reference Sans Serif": 8, "MS Reference Specialty": 14, "MS UI Gothic": 7, "MT Extra": 12, "MV Boli": 9, "Myanmar Text": 6, Narkisim: 7, "Neue Haas Grotesk Text Pro": 7, "New Gulim": 7, "News Gothic MT": 7, "Niagara Engraved": 5, "Niagara Solid": 5, "Nirmala UI": 6, "Nirmala UI Semilight": 7, Nyala: 7, "OCR A Extended": 8, OCRB: 8, "Old English Text MT": 7, Onyx: 5, "Palace Script MT": 4, "Palatino Linotype": 6, Papyrus: 7, Parchment: 3, Perpetua: 5, "Perpetua Titling MT": 7, "Plantagenet Cherokee": 7, Playbill: 5, PMingLiU: 6, "PMingLiU-ExtB": 6, "Poor Richard": 7, Pristina: 6, "Pyunji R": 6, Raavi: 7, "Rage Italic": 7, Ravie: 11, Rockwell: 6, "Rockwell Condensed": 5, "Rockwell Extra Bold": 8, "Rockwell Light": 7, "Rockwell Nova": 7, "Rockwell Nova Cond": 7, "Rockwell Nova Cond Light": 7, "Rockwell Nova Extra Bold": 7, "Rockwell Nova Light": 7, Rod: 7, "Sakkal Majalla": 7, "Sanskrit Text": 7, "Script MT Bold": 6, "Segoe MDL2 Assets": 4, "Segoe Print": 8, "Segoe Script": 8, "Segoe UI": 6, "Segoe UI Black": 7, "Segoe UI Emoji": 6, "Segoe UI Historic": 6, "Segoe UI Light": 6, "Segoe UI Semibold": 6, "Segoe UI Semilight": 6, "Segoe UI Symbol": 6, Selawik: 6, "Selawik Light": 6, "Selawik Semibold": 6, "Shonar Bangla": 6, "Showcard Gothic": 6, Shruti: 6, "Simplified Arabic": 6, "Simplified Arabic Fixed": 6, "SimSun-ExtB": 6, "Sitka Banner": 6, "Sitka Display": 6, "Sitka Heading": 6, "Sitka Small": 8, "Sitka Subheading": 6, "Sitka Text": 7, "Snap ITC": 10, "Source Sans Pro": 6, "Source Sans Pro Black": 6, "Source Sans Pro ExtraLight": 6, "Source Sans Pro Light": 6, "Source Sans Pro SemiBold": 6, Stencil: 6, Sylfaen: 6, Symbol: 6, Tahoma: 6, "Tempus Sans ITC": 7, "TH SarabunPSK": 6, "Times New Roman": 6, "Traditional Arabic": 6, "Trebuchet MS": 6, Tunga: 6, "Tw Cen MT": 6, "Tw Cen MT Condensed": 4, "Tw Cen MT Condensed Extra Bold": 5, "UD Digi Kyokasho N-B": 6, "UD Digi Kyokasho NK-B": 6, "UD Digi Kyokasho NK-R": 6, "UD Digi Kyokasho NP-B": 6, "UD Digi Kyokasho NP-R": 6, "UD Digi Kyokasho N-R": 6, Univers: 6, "Univers Condensed": 6, "Univers Condensed Light": 6, "Univers Light": 6, "Urdu Typesetting": 6, Utsaah: 6, Vani: 6, Verdana: 7, "Verdana Pro": 6, "Verdana Pro Black": 6, "Verdana Pro Cond": 6, "Verdana Pro Cond Black": 6, "Verdana Pro Cond Light": 6, "Verdana Pro Cond SemiBold": 6, "Verdana Pro Light": 6, "Verdana Pro SemiBold": 6, Vijaya: 6, "Viner Hand ITC": 7, Vivaldi: 5, "Vladimir Script": 5, Vrinda: 6, Webdings: 11, "Wide Latin": 14, Wingdings: 15, "Wingdings 2": 12, "Wingdings 3": 10, "Yet R": 6, "Yu Gothic": 6, "Yu Gothic Light": 6, "Yu Gothic Medium": 6, "Yu Gothic UI": 6, "Yu Gothic UI Light": 6, "Yu Gothic UI Semibold": 6, "Yu Gothic UI Semilight": 6, "Yu Mincho": 6, "Yu Mincho Demibold": 6, "Yu Mincho Light": 6, "仿宋": 6, "华文中宋": 7, "华文仿宋": 5, "华文宋体": 5, "华文彩云": 6, "华文新魏": 6, "华文楷体": 5, "华文琥珀": 6, "华文细黑": 6, "华文行楷": 6, "华文隶书": 5, "宋体": 6, "幼圆": 6, "微软雅黑": 6, "微软雅黑 Light": 6, "新宋体": 6, "方正姚体": 6, "方正舒体": 6, "楷体": 6, "等线": 6, "等线 Light": 6, "隶书": 6, "黑体": 6, "游ゴシック": 6, "ＭＳ Ｐ明朝": 6, '"ＭＳ Ｐゴシック"': 6, "メイリオ": 7, "HGｺﾞｼｯｸE": 6, "HG明朝B": 6, "HGｺﾞｼｯｸM": 6 }, 9: { "Gill Sans MT": 6, Abadi: 7, "Abadi Extra Light": 7, "Agency FB": 5, Aharoni: 5, Aldhabi: 4, Algerian: 7, "Ami R": 5, "Angsana New": 4, AngsanaUPC: 4, Aparajita: 5, "Arabic Typesetting": 4, Arial: 7, "Arial Black": 8, "Arial Narrow": 5, "Arial Nova": 7, "Arial Nova Cond": 6, "Arial Nova Cond Light": 5, "Arial Nova Light": 7, "Arial Rounded MT Bold": 7, "Baskerville Old Face": 6, Batang: 6, BatangChe: 6, "Bauhaus 93": 7, "Bell MT": 6, Bembo: 6, "Berlin Sans FB": 7, "Berlin Sans FB Demi": 8, "Bernard MT Condensed": 6, "Blackadder ITC": 5, "Bodoni MT": 6, "Bodoni MT Black": 8, "Bodoni MT Condensed": 4, "Bodoni MT Poster Compressed": 4, "Book Antiqua": 6, "Bookman Old Style": 7, "Bookshelf Symbol 7": 9, "Bradley Hand ITC": 8, "Britannic Bold": 7, Broadway: 8, "Browallia New": 4, BrowalliaUPC: 4, "Brush Script MT": 6, Calibri: 6, "Calibri Light": 6, "Californian FB": 7, "Calisto MT": 6, Cambria: 7, "Cambria Math": 7, Candara: 7, Castellar: 9, Centaur: 6, Century: 7, "Century Gothic": 7, "Century Schoolbook": 7, Chiller: 6, "Colonna MT": 6, "Comic Sans MS": 7, Consolas: 7, Constantia: 7, "Cooper Black": 7, "Copperplate Gothic Bold": 9, "Copperplate Gothic Light": 9, Corbel: 6, "Cordia New": 4, CordiaUPC: 4, "Courier New": 7, "Curlz MT": 6, Dante: 5, DaunPenh: 4, David: 5, DilleniaUPC: 4, DokChampa: 7, Dotum: 6, DotumChe: 6, Dubai: 6, "Dubai Light": 6, "Dubai Medium": 6, Ebrima: 6, "Edwardian Script ITC": 6, Elephant: 9, "Engravers MT": 8, "Eras Bold ITC": 8, "Eras Demi ITC": 7, "Eras Light ITC": 6, "Eras Medium ITC": 7, EucrosiaUPC: 5, Euphemia: 7, "Expo M": 10, FangSong: 6, "Felix Titling": 7, "Footlight MT Light": 7, Forte: 6, "Franklin Gothic Book": 7, "Franklin Gothic Demi": 7, "Franklin Gothic Demi Cond": 6, "Franklin Gothic Heavy": 7, "Franklin Gothic Medium": 7, "Franklin Gothic Medium Cond": 6, FrankRuehl: 5, FreesiaUPC: 5, "Freestyle Script": 5, "French Script MT": 4, Gabriola: 5, Gadugi: 6, Garamond: 6, Gautami: 7, Georgia: 8, "Georgia Pro": 7, "Georgia Pro Black": 9, "Georgia Pro Cond": 6, "Georgia Pro Cond Black": 8, "Georgia Pro Cond Light": 6, "Georgia Pro Cond Semibold": 7, "Georgia Pro Light": 7, "Georgia Pro Semibold": 7, Gigi: 7, "Gill Sans MT Condensed": 4, "Gill Sans MT Ext Condensed Bold": 4, "Gill Sans Nova": 6, "Gill Sans Nova Cond": 4, "Gill Sans Nova Cond Lt": 4, "Gill Sans Nova Cond Ultra Bold": 7, "Gill Sans Nova Cond XBd": 6, "Gill Sans Nova Light": 6, "Gill Sans Nova Ultra Bold": 10, "Gill Sans Ultra Bold": 10, "Gill Sans Ultra Bold Condensed": 7, Gisha: 6, "Gloucester MT Extra Condensed": 5, "Goudy Old Style": 6, "Goudy Stout": 10, Grotesque: 6, "Grotesque Light": 6, Gulim: 6, GulimChe: 6, Gungsuh: 6, GungsuhChe: 6, "Hadassah Friedlaender": 7, Haettenschweiler: 5, "Harlow Solid Italic": 6, Harrington: 7, "Headline R": 9, HGGothicE: 6, HGGothicM: 6, HGGyoshotai: 6, HGKyokashotai: 6, HGMaruGothicMPRO: 9, HGMinchoB: 7, HGMinchoE: 7, HGPGothicE: 8, HGPGothicM: 8, HGPGyoshotai: 7, HGPKyokashotai: 7, HGPMinchoB: 7, HGPMinchoE: 7, HGPSoeiKakugothicUB: 9, HGPSoeiKakupoptai: 9, HGPSoeiPresenceEB: 8, HGSeikaishotaiPRO: 7, HGSGothicE: 7, HGSGothicM: 7, HGSGyoshotai: 6, HGSKyokashotai: 6, HGSMinchoB: 7, HGSMinchoE: 7, HGSoeiKakugothicUB: 7, HGSoeiKakupoptai: 7, HGSoeiPresenceEB: 7, HGSSoeiKakugothicUB: 8, HGSSoeiKakupoptai: 8, HGSSoeiPresenceEB: 7, "High Tower Text": 6, "HYGothic-Extra": 8, "HYGothic-Medium": 7, "HYGraphic-Medium": 7, "HYGungSo-Bold": 7, "HYHeadLine-Medium": 7, "HYMyeongJo-Extra": 8, "HYPMokGak-Bold": 9, "HYPost-Light": 8, "HYPost-Medium": 9, "HYShortSamul-Medium": 5, "HYSinMyeongJo-Medium": 8, Impact: 7, "Imprint MT Shadow": 6, "Informal Roman": 7, "Ink Free": 6, IrisUPC: 6, "Iskoola Pota": 6, JasmineUPC: 6, "Javanese Text": 7, Jokerman: 9, "Juice ITC": 4, KaiTi: 6, Kalinga: 6, Kartika: 6, "Khmer UI": 6, KodchiangUPC: 6, Kokila: 6, "Kristen ITC": 7, "Kunstler Script": 4, "Lao UI": 6, Latha: 6, Leelawadee: 6, "Leelawadee UI": 6, "Leelawadee UI Semilight": 7, "Levenim MT": 6, LilyUPC: 6, "Lucida Bright": 7, "Lucida Calligraphy": 9, "Lucida Console": 8, "Lucida Fax": 8, "Lucida Handwriting": 9, "Lucida Sans": 8, "Lucida Sans Typewriter": 7, "Lucida Sans Unicode": 9, "Magic R": 8, Magneto: 9, "Maiandra GD": 8, "Malgun Gothic": 7, "Malgun Gothic Semilight": 8, Mangal: 7, Marlett: 13, "Matura MT Script Capitals": 9, Meiryo: 8, "Meiryo UI": 8, "Microsoft GothicNeo": 7, "Microsoft Himalaya": 5, "Microsoft JhengHei": 7, "Microsoft JhengHei Light": 8, "Microsoft JhengHei UI": 7, "Microsoft JhengHei UI Light": 8, "Microsoft New Tai Lue": 7, "Microsoft PhagsPa": 7, "Microsoft Sans Serif": 8, "Microsoft Tai Le": 7, "Microsoft Uighur": 5, "Microsoft YaHei Light": 8, "Microsoft YaHei UI": 7, "Microsoft YaHei UI Light": 8, "Microsoft Yi Baiti": 7, MingLiU: 7, MingLiU_HKSCS: 7, "MingLiU_HKSCS-ExtB": 7, "MingLiU-ExtB": 7, Miriam: 7, "Miriam Fixed": 7, Mistral: 6, "Modern No. 20": 6, "MoeumT R": 8, "Mongolian Baiti": 7, "Monotype Corsiva": 6, MoolBoran: 7, "MS Gothic": 6, "MS Mincho": 7, "MS Outlook": 7, "MS PGothic": 7, "MS PMincho": 7, "MS Reference Sans Serif": 9, "MS Reference Specialty": 15, "MS UI Gothic": 7, "MT Extra": 13, "MV Boli": 9, "Myanmar Text": 7, Narkisim: 7, "Neue Haas Grotesk Text Pro": 7, "New Gulim": 8, "News Gothic MT": 7, "Niagara Engraved": 5, "Niagara Solid": 5, "Nirmala UI": 7, "Nirmala UI Semilight": 8, Nyala: 7, "OCR A Extended": 8, OCRB: 8, "Old English Text MT": 7, Onyx: 5, "Palace Script MT": 5, "Palatino Linotype": 6, Papyrus: 8, Parchment: 4, Perpetua: 6, "Perpetua Titling MT": 8, "Plantagenet Cherokee": 7, Playbill: 5, PMingLiU: 7, "PMingLiU-ExtB": 7, "Poor Richard": 8, Pristina: 6, "Pyunji R": 7, Raavi: 7, "Rage Italic": 7, Ravie: 12, Rockwell: 7, "Rockwell Condensed": 5, "Rockwell Extra Bold": 8, "Rockwell Light": 7, "Rockwell Nova": 7, "Rockwell Nova Cond": 7, "Rockwell Nova Cond Light": 7, "Rockwell Nova Extra Bold": 7, "Rockwell Nova Light": 7, Rod: 7, "Sakkal Majalla": 7, "Sanskrit Text": 7, "Script MT Bold": 6, "Segoe MDL2 Assets": 5, "Segoe Print": 9, "Segoe Script": 9, "Segoe UI": 6, "Segoe UI Black": 7, "Segoe UI Emoji": 6, "Segoe UI Historic": 6, "Segoe UI Light": 6, "Segoe UI Semibold": 7, "Segoe UI Semilight": 7, "Segoe UI Symbol": 6, Selawik: 6, "Selawik Light": 6, "Selawik Semibold": 6, "Shonar Bangla": 6, "Showcard Gothic": 8, Shruti: 6, "Simplified Arabic": 6, "Simplified Arabic Fixed": 6, "SimSun-ExtB": 6, "Sitka Banner": 6, "Sitka Display": 6, "Sitka Heading": 7, "Sitka Small": 8, "Sitka Subheading": 7, "Sitka Text": 8, "Snap ITC": 10, "Source Sans Pro": 6, "Source Sans Pro Black": 6, "Source Sans Pro ExtraLight": 6, "Source Sans Pro Light": 6, "Source Sans Pro SemiBold": 6, Stencil: 7, Sylfaen: 6, Symbol: 6, Tahoma: 7, "Tempus Sans ITC": 8, "TH SarabunPSK": 6, "Times New Roman": 6, "Traditional Arabic": 6, "Trebuchet MS": 6, Tunga: 6, "Tw Cen MT": 7, "Tw Cen MT Condensed": 4, "Tw Cen MT Condensed Extra Bold": 6, "UD Digi Kyokasho N-B": 6, "UD Digi Kyokasho NK-B": 6, "UD Digi Kyokasho NK-R": 6, "UD Digi Kyokasho NP-B": 6, "UD Digi Kyokasho NP-R": 6, "UD Digi Kyokasho N-R": 6, Univers: 6, "Univers Condensed": 6, "Univers Condensed Light": 6, "Univers Light": 6, "Urdu Typesetting": 6, Utsaah: 6, Vani: 6, Verdana: 8, "Verdana Pro": 6, "Verdana Pro Black": 6, "Verdana Pro Cond": 6, "Verdana Pro Cond Black": 6, "Verdana Pro Cond Light": 6, "Verdana Pro Cond SemiBold": 6, "Verdana Pro Light": 6, "Verdana Pro SemiBold": 6, Vijaya: 6, "Viner Hand ITC": 8, Vivaldi: 5, "Vladimir Script": 6, Vrinda: 6, Webdings: 12, "Wide Latin": 15, Wingdings: 16, "Wingdings 2": 14, "Wingdings 3": 11, "Yet R": 6, "Yu Gothic": 7, "Yu Gothic Light": 6, "Yu Gothic Medium": 7, "Yu Gothic UI": 6, "Yu Gothic UI Light": 6, "Yu Gothic UI Semibold": 7, "Yu Gothic UI Semilight": 7, "Yu Mincho": 7, "Yu Mincho Demibold": 6, "Yu Mincho Light": 6, "仿宋": 6, "华文中宋": 7, "华文仿宋": 6, "华文宋体": 6, "华文彩云": 7, "华文新魏": 7, "华文楷体": 6, "华文琥珀": 7, "华文细黑": 7, "华文行楷": 6, "华文隶书": 5, "宋体": 6, "幼圆": 6, "微软雅黑": 7, "微软雅黑 Light": 7, "新宋体": 6, "方正姚体": 6, "方正舒体": 7, "楷体": 6, "等线": 6, "等线 Light": 6, "隶书": 6, "黑体": 6, "游ゴシック": 7, "ＭＳ Ｐ明朝": 6, '"ＭＳ Ｐゴシック"': 6, "メイリオ": 7, "HGｺﾞｼｯｸE": 6, "HG明朝B": 6, "HGｺﾞｼｯｸM": 6 }, 10: { "Gill Sans MT": 7, Abadi: 8, "Abadi Extra Light": 7, "Agency FB": 5, Aharoni: 5, Aldhabi: 4, Algerian: 8, "Ami R": 5, "Angsana New": 4, AngsanaUPC: 4, Aparajita: 5, "Arabic Typesetting": 4, Arial: 7, "Arial Black": 9, "Arial Narrow": 6, "Arial Nova": 7, "Arial Nova Cond": 7, "Arial Nova Cond Light": 6, "Arial Nova Light": 7, "Arial Rounded MT Bold": 8, "Baskerville Old Face": 6, Batang: 7, BatangChe: 7, "Bauhaus 93": 7, "Bell MT": 7, Bembo: 6, "Berlin Sans FB": 8, "Berlin Sans FB Demi": 8, "Bernard MT Condensed": 6, "Blackadder ITC": 5, "Bodoni MT": 6, "Bodoni MT Black": 9, "Bodoni MT Condensed": 4, "Bodoni MT Poster Compressed": 5, "Book Antiqua": 7, "Bookman Old Style": 8, "Bookshelf Symbol 7": 10, "Bradley Hand ITC": 8, "Britannic Bold": 8, Broadway: 8, "Browallia New": 5, BrowalliaUPC: 5, "Brush Script MT": 7, Calibri: 7, "Calibri Light": 7, "Californian FB": 7, "Calisto MT": 7, Cambria: 7, "Cambria Math": 7, Candara: 7, Castellar: 9, Centaur: 6, Century: 7, "Century Gothic": 7, "Century Schoolbook": 7, Chiller: 6, "Colonna MT": 7, "Comic Sans MS": 8, Consolas: 7, Constantia: 7, "Cooper Black": 8, "Copperplate Gothic Bold": 9, "Copperplate Gothic Light": 9, Corbel: 7, "Cordia New": 5, CordiaUPC: 5, "Courier New": 8, "Curlz MT": 7, Dante: 6, DaunPenh: 4, David: 6, DilleniaUPC: 4, DokChampa: 7, Dotum: 6, DotumChe: 7, Dubai: 7, "Dubai Light": 7, "Dubai Medium": 7, Ebrima: 7, "Edwardian Script ITC": 6, Elephant: 10, "Engravers MT": 8, "Eras Bold ITC": 8, "Eras Demi ITC": 8, "Eras Light ITC": 7, "Eras Medium ITC": 7, EucrosiaUPC: 5, Euphemia: 8, "Expo M": 11, FangSong: 7, "Felix Titling": 8, "Footlight MT Light": 7, Forte: 7, "Franklin Gothic Book": 8, "Franklin Gothic Demi": 8, "Franklin Gothic Demi Cond": 7, "Franklin Gothic Heavy": 8, "Franklin Gothic Medium": 8, "Franklin Gothic Medium Cond": 7, FrankRuehl: 5, FreesiaUPC: 6, "Freestyle Script": 5, "French Script MT": 5, Gabriola: 5, Gadugi: 7, Garamond: 6, Gautami: 8, Georgia: 9, "Georgia Pro": 7, "Georgia Pro Black": 9, "Georgia Pro Cond": 7, "Georgia Pro Cond Black": 8, "Georgia Pro Cond Light": 7, "Georgia Pro Cond Semibold": 7, "Georgia Pro Light": 7, "Georgia Pro Semibold": 8, Gigi: 7, "Gill Sans MT Condensed": 5, "Gill Sans MT Ext Condensed Bold": 4, "Gill Sans Nova": 7, "Gill Sans Nova Cond": 4, "Gill Sans Nova Cond Lt": 4, "Gill Sans Nova Cond Ultra Bold": 8, "Gill Sans Nova Cond XBd": 7, "Gill Sans Nova Light": 7, "Gill Sans Nova Ultra Bold": 11, "Gill Sans Ultra Bold": 11, "Gill Sans Ultra Bold Condensed": 8, Gisha: 7, "Gloucester MT Extra Condensed": 5, "Goudy Old Style": 7, "Goudy Stout": 11, Grotesque: 6, "Grotesque Light": 6, Gulim: 7, GulimChe: 7, Gungsuh: 6, GungsuhChe: 7, "Hadassah Friedlaender": 7, Haettenschweiler: 6, "Harlow Solid Italic": 6, Harrington: 7, "Headline R": 9, HGGothicE: 7, HGGothicM: 7, HGGyoshotai: 7, HGKyokashotai: 7, HGMaruGothicMPRO: 10, HGMinchoB: 8, HGMinchoE: 8, HGPGothicE: 8, HGPGothicM: 9, HGPGyoshotai: 7, HGPKyokashotai: 7, HGPMinchoB: 7, HGPMinchoE: 8, HGPSoeiKakugothicUB: 9, HGPSoeiKakupoptai: 9, HGPSoeiPresenceEB: 8, HGSeikaishotaiPRO: 8, HGSGothicE: 7, HGSGothicM: 8, HGSGyoshotai: 6, HGSKyokashotai: 6, HGSMinchoB: 7, HGSMinchoE: 8, HGSoeiKakugothicUB: 8, HGSoeiKakupoptai: 8, HGSoeiPresenceEB: 8, HGSSoeiKakugothicUB: 8, HGSSoeiKakupoptai: 8, HGSSoeiPresenceEB: 7, "High Tower Text": 6, "HYGothic-Extra": 8, "HYGothic-Medium": 8, "HYGraphic-Medium": 8, "HYGungSo-Bold": 8, "HYHeadLine-Medium": 8, "HYMyeongJo-Extra": 9, "HYPMokGak-Bold": 9, "HYPost-Light": 9, "HYPost-Medium": 9, "HYShortSamul-Medium": 5, "HYSinMyeongJo-Medium": 8, Impact: 7, "Imprint MT Shadow": 7, "Informal Roman": 7, "Ink Free": 7, IrisUPC: 7, "Iskoola Pota": 7, JasmineUPC: 7, "Javanese Text": 8, Jokerman: 9, "Juice ITC": 5, KaiTi: 7, Kalinga: 7, Kartika: 7, "Khmer UI": 7, KodchiangUPC: 4, Kokila: 7, "Kristen ITC": 8, "Kunstler Script": 5, "Lao UI": 7, Latha: 7, Leelawadee: 7, "Leelawadee UI": 7, "Leelawadee UI Semilight": 7, "Levenim MT": 7, LilyUPC: 7, "Lucida Bright": 8, "Lucida Calligraphy": 10, "Lucida Console": 9, "Lucida Fax": 9, "Lucida Handwriting": 10, "Lucida Sans": 9, "Lucida Sans Typewriter": 8, "Lucida Sans Unicode": 9, "Magic R": 8, Magneto: 10, "Maiandra GD": 9, "Malgun Gothic": 8, "Malgun Gothic Semilight": 8, Mangal: 8, Marlett: 14, "Matura MT Script Capitals": 10, Meiryo: 9, "Meiryo UI": 9, "Microsoft GothicNeo": 8, "Microsoft Himalaya": 5, "Microsoft JhengHei": 8, "Microsoft JhengHei Light": 8, "Microsoft JhengHei UI": 8, "Microsoft JhengHei UI Light": 8, "Microsoft New Tai Lue": 7, "Microsoft PhagsPa": 7, "Microsoft Sans Serif": 8, "Microsoft Tai Le": 7, "Microsoft Uighur": 5, "Microsoft YaHei Light": 8, "Microsoft YaHei UI": 8, "Microsoft YaHei UI Light": 8, "Microsoft Yi Baiti": 8, MingLiU: 8, MingLiU_HKSCS: 8, "MingLiU_HKSCS-ExtB": 8, "MingLiU-ExtB": 8, Miriam: 8, "Miriam Fixed": 8, Mistral: 7, "Modern No. 20": 7, "MoeumT R": 8, "Mongolian Baiti": 8, "Monotype Corsiva": 7, MoolBoran: 8, "MS Gothic": 7, "MS Mincho": 8, "MS Outlook": 8, "MS PGothic": 8, "MS PMincho": 8, "MS Reference Sans Serif": 9, "MS Reference Specialty": 17, "MS UI Gothic": 8, "MT Extra": 14, "MV Boli": 10, "Myanmar Text": 7, Narkisim: 8, "Neue Haas Grotesk Text Pro": 8, "New Gulim": 8, "News Gothic MT": 8, "Niagara Engraved": 5, "Niagara Solid": 5, "Nirmala UI": 7, "Nirmala UI Semilight": 8, Nyala: 8, "OCR A Extended": 9, OCRB: 9, "Old English Text MT": 8, Onyx: 6, "Palace Script MT": 5, "Palatino Linotype": 7, Papyrus: 9, Parchment: 4, Perpetua: 6, "Perpetua Titling MT": 9, "Plantagenet Cherokee": 8, Playbill: 6, PMingLiU: 7, "PMingLiU-ExtB": 7, "Poor Richard": 8, Pristina: 8, "Pyunji R": 7, Raavi: 8, "Rage Italic": 8, Ravie: 13, Rockwell: 7, "Rockwell Condensed": 6, "Rockwell Extra Bold": 9, "Rockwell Light": 8, "Rockwell Nova": 8, "Rockwell Nova Cond": 8, "Rockwell Nova Cond Light": 8, "Rockwell Nova Extra Bold": 8, "Rockwell Nova Light": 8, Rod: 8, "Sakkal Majalla": 8, "Sanskrit Text": 8, "Script MT Bold": 7, "Segoe MDL2 Assets": 5, "Segoe Print": 10, "Segoe Script": 10, "Segoe UI": 7, "Segoe UI Black": 8, "Segoe UI Emoji": 7, "Segoe UI Historic": 7, "Segoe UI Light": 7, "Segoe UI Semibold": 7, "Segoe UI Semilight": 7, "Segoe UI Symbol": 7, Selawik: 7, "Selawik Light": 7, "Selawik Semibold": 7, "Shonar Bangla": 7, "Showcard Gothic": 8, Shruti: 7, "Simplified Arabic": 7, "Simplified Arabic Fixed": 7, "SimSun-ExtB": 7, "Sitka Banner": 7, "Sitka Display": 7, "Sitka Heading": 7, "Sitka Small": 9, "Sitka Subheading": 8, "Sitka Text": 8, "Snap ITC": 11, "Source Sans Pro": 7, "Source Sans Pro Black": 7, "Source Sans Pro ExtraLight": 7, "Source Sans Pro Light": 7, "Source Sans Pro SemiBold": 7, Stencil: 7, Sylfaen: 7, Symbol: 7, Tahoma: 7, "Tempus Sans ITC": 9, "TH SarabunPSK": 7, "Times New Roman": 6, "Traditional Arabic": 7, "Trebuchet MS": 7, Tunga: 7, "Tw Cen MT": 7, "Tw Cen MT Condensed": 5, "Tw Cen MT Condensed Extra Bold": 6, "UD Digi Kyokasho N-B": 7, "UD Digi Kyokasho NK-B": 7, "UD Digi Kyokasho NK-R": 7, "UD Digi Kyokasho NP-B": 7, "UD Digi Kyokasho NP-R": 7, "UD Digi Kyokasho N-R": 7, Univers: 7, "Univers Condensed": 7, "Univers Condensed Light": 7, "Univers Light": 7, "Urdu Typesetting": 7, Utsaah: 7, Vani: 7, Verdana: 8, "Verdana Pro": 8, "Verdana Pro Black": 7, "Verdana Pro Cond": 7, "Verdana Pro Cond Black": 7, "Verdana Pro Cond Light": 7, "Verdana Pro Cond SemiBold": 7, "Verdana Pro Light": 7, "Verdana Pro SemiBold": 7, Vijaya: 7, "Viner Hand ITC": 9, Vivaldi: 6, "Vladimir Script": 6, Vrinda: 7, Webdings: 13, "Wide Latin": 16, Wingdings: 17, "Wingdings 2": 15, "Wingdings 3": 12, "Yet R": 7, "Yu Gothic": 7, "Yu Gothic Light": 7, "Yu Gothic Medium": 7, "Yu Gothic UI": 7, "Yu Gothic UI Light": 7, "Yu Gothic UI Semibold": 7, "Yu Gothic UI Semilight": 7, "Yu Mincho": 7, "Yu Mincho Demibold": 7, "Yu Mincho Light": 7, "仿宋": 7, "华文中宋": 8, "华文仿宋": 6, "华文宋体": 6, "华文彩云": 7, "华文新魏": 8, "华文楷体": 6, "华文琥珀": 7, "华文细黑": 7, "华文行楷": 7, "华文隶书": 6, "宋体": 7, "幼圆": 7, "微软雅黑": 8, "微软雅黑 Light": 7, "新宋体": 7, "方正姚体": 7, "方正舒体": 7, "楷体": 7, "等线": 7, "等线 Light": 7, "隶书": 7, "黑体": 7, "游ゴシック": 7, "ＭＳ Ｐ明朝": 7, '"ＭＳ Ｐゴシック"': 7, "メイリオ": 8, "HGｺﾞｼｯｸE": 7, "HG明朝B": 7, "HGｺﾞｼｯｸM": 7 }, 11: { "Gill Sans MT": 8, Abadi: 9, "Abadi Extra Light": 8, "Agency FB": 6, Aharoni: 6, Aldhabi: 5, Algerian: 9, "Ami R": 6, "Angsana New": 5, AngsanaUPC: 5, Aparajita: 6, "Arabic Typesetting": 5, Arial: 8, "Arial Black": 10, "Arial Narrow": 7, "Arial Nova": 8, "Arial Nova Cond": 8, "Arial Nova Cond Light": 7, "Arial Nova Light": 8, "Arial Rounded MT Bold": 9, "Baskerville Old Face": 7, Batang: 8, BatangChe: 8, "Bauhaus 93": 9, "Bell MT": 8, Bembo: 7, "Berlin Sans FB": 9, "Berlin Sans FB Demi": 9, "Bernard MT Condensed": 7, "Blackadder ITC": 6, "Bodoni MT": 7, "Bodoni MT Black": 10, "Bodoni MT Condensed": 5, "Bodoni MT Poster Compressed": 5, "Book Antiqua": 8, "Bookman Old Style": 9, "Bookshelf Symbol 7": 11, "Bradley Hand ITC": 10, "Britannic Bold": 9, Broadway: 10, "Browallia New": 5, BrowalliaUPC: 5, "Brush Script MT": 8, Calibri: 7, "Calibri Light": 8, "Californian FB": 9, "Calisto MT": 8, Cambria: 8, "Cambria Math": 8, Candara: 8, Castellar: 11, Centaur: 7, Century: 8, "Century Gothic": 8, "Century Schoolbook": 8, Chiller: 7, "Colonna MT": 8, "Comic Sans MS": 9, Consolas: 8, Constantia: 8, "Cooper Black": 9, "Copperplate Gothic Bold": 11, "Copperplate Gothic Light": 11, Corbel: 8, "Cordia New": 5, CordiaUPC: 5, "Courier New": 9, "Curlz MT": 8, Dante: 7, DaunPenh: 5, David: 7, DilleniaUPC: 5, DokChampa: 8, Dotum: 9, DotumChe: 8, Dubai: 8, "Dubai Light": 8, "Dubai Medium": 8, Ebrima: 8, "Edwardian Script ITC": 7, Elephant: 11, "Engravers MT": 10, "Eras Bold ITC": 10, "Eras Demi ITC": 9, "Eras Light ITC": 8, "Eras Medium ITC": 9, EucrosiaUPC: 6, Euphemia: 9, "Expo M": 13, FangSong: 8, "Felix Titling": 9, "Footlight MT Light": 8, Forte: 8, "Franklin Gothic Book": 9, "Franklin Gothic Demi": 9, "Franklin Gothic Demi Cond": 8, "Franklin Gothic Heavy": 9, "Franklin Gothic Medium": 9, "Franklin Gothic Medium Cond": 8, FrankRuehl: 6, FreesiaUPC: 7, "Freestyle Script": 6, "French Script MT": 5, Gabriola: 6, Gadugi: 8, Garamond: 7, Gautami: 9, Georgia: 9, "Georgia Pro": 8, "Georgia Pro Black": 11, "Georgia Pro Cond": 8, "Georgia Pro Cond Black": 10, "Georgia Pro Cond Light": 8, "Georgia Pro Cond Semibold": 8, "Georgia Pro Light": 8, "Georgia Pro Semibold": 9, Gigi: 7, "Gill Sans MT Condensed": 5, "Gill Sans MT Ext Condensed Bold": 5, "Gill Sans Nova": 8, "Gill Sans Nova Cond": 5, "Gill Sans Nova Cond Lt": 5, "Gill Sans Nova Cond Ultra Bold": 9, "Gill Sans Nova Cond XBd": 8, "Gill Sans Nova Light": 8, "Gill Sans Nova Ultra Bold": 13, "Gill Sans Ultra Bold": 13, "Gill Sans Ultra Bold Condensed": 9, Gisha: 8, "Gloucester MT Extra Condensed": 6, "Goudy Old Style": 8, "Goudy Stout": 12, Grotesque: 7, "Grotesque Light": 7, Gulim: 8, GulimChe: 8, Gungsuh: 7, GungsuhChe: 8, "Hadassah Friedlaender": 9, Haettenschweiler: 7, "Harlow Solid Italic": 7, Harrington: 8, "Headline R": 11, HGGothicE: 8, HGGothicM: 8, HGGyoshotai: 8, HGKyokashotai: 8, HGMaruGothicMPRO: 11, HGMinchoB: 9, HGMinchoE: 9, HGPGothicE: 9, HGPGothicM: 10, HGPGyoshotai: 8, HGPKyokashotai: 8, HGPMinchoB: 8, HGPMinchoE: 9, HGPSoeiKakugothicUB: 10, HGPSoeiKakupoptai: 11, HGPSoeiPresenceEB: 9, HGSeikaishotaiPRO: 9, HGSGothicE: 8, HGSGothicM: 9, HGSGyoshotai: 7, HGSKyokashotai: 7, HGSMinchoB: 8, HGSMinchoE: 9, HGSoeiKakugothicUB: 9, HGSoeiKakupoptai: 9, HGSoeiPresenceEB: 9, HGSSoeiKakugothicUB: 9, HGSSoeiKakupoptai: 10, HGSSoeiPresenceEB: 8, "High Tower Text": 7, "HYGothic-Extra": 9, "HYGothic-Medium": 9, "HYGraphic-Medium": 9, "HYGungSo-Bold": 9, "HYHeadLine-Medium": 9, "HYMyeongJo-Extra": 10, "HYPMokGak-Bold": 11, "HYPost-Light": 10, "HYPost-Medium": 11, "HYShortSamul-Medium": 6, "HYSinMyeongJo-Medium": 9, Impact: 8, "Imprint MT Shadow": 8, "Informal Roman": 8, "Ink Free": 8, IrisUPC: 8, "Iskoola Pota": 8, JasmineUPC: 8, "Javanese Text": 9, Jokerman: 11, "Juice ITC": 6, KaiTi: 8, Kalinga: 8, Kartika: 8, "Khmer UI": 8, KodchiangUPC: 5, Kokila: 8, "Kristen ITC": 9, "Kunstler Script": 5, "Lao UI": 8, Latha: 8, Leelawadee: 8, "Leelawadee UI": 8, "Leelawadee UI Semilight": 8, "Levenim MT": 9, LilyUPC: 8, "Lucida Bright": 9, "Lucida Calligraphy": 11, "Lucida Console": 10, "Lucida Fax": 10, "Lucida Handwriting": 11, "Lucida Sans": 10, "Lucida Sans Typewriter": 9, "Lucida Sans Unicode": 10, "Magic R": 9, Magneto: 12, "Maiandra GD": 10, "Malgun Gothic": 9, "Malgun Gothic Semilight": 9, Mangal: 9, Marlett: 16, "Matura MT Script Capitals": 11, Meiryo: 9, "Meiryo UI": 10, "Microsoft GothicNeo": 9, "Microsoft Himalaya": 6, "Microsoft JhengHei": 9, "Microsoft JhengHei Light": 10, "Microsoft JhengHei UI": 9, "Microsoft JhengHei UI Light": 10, "Microsoft New Tai Lue": 9, "Microsoft PhagsPa": 9, "Microsoft Sans Serif": 9, "Microsoft Tai Le": 9, "Microsoft Uighur": 6, "Microsoft YaHei Light": 10, "Microsoft YaHei UI": 9, "Microsoft YaHei UI Light": 10, "Microsoft Yi Baiti": 9, MingLiU: 9, MingLiU_HKSCS: 9, "MingLiU_HKSCS-ExtB": 9, "MingLiU-ExtB": 9, Miriam: 9, "Miriam Fixed": 10, Mistral: 8, "Modern No. 20": 8, "MoeumT R": 9, "Mongolian Baiti": 9, "Monotype Corsiva": 8, MoolBoran: 9, "MS Gothic": 8, "MS Mincho": 9, "MS Outlook": 9, "MS PGothic": 9, "MS PMincho": 9, "MS Reference Sans Serif": 11, "MS Reference Specialty": 19, "MS UI Gothic": 9, "MT Extra": 16, "MV Boli": 12, "Myanmar Text": 9, Narkisim: 7, "Neue Haas Grotesk Text Pro": 9, "New Gulim": 10, "News Gothic MT": 9, "Niagara Engraved": 5, "Niagara Solid": 6, "Nirmala UI": 9, "Nirmala UI Semilight": 9, Nyala: 9, "OCR A Extended": 10, OCRB: 10, "Old English Text MT": 9, Onyx: 6, "Palace Script MT": 6, "Palatino Linotype": 8, Papyrus: 10, Parchment: 4, Perpetua: 7, "Perpetua Titling MT": 10, "Plantagenet Cherokee": 9, Playbill: 6, PMingLiU: 8, "PMingLiU-ExtB": 8, "Poor Richard": 9, Pristina: 9, "Pyunji R": 8, Raavi: 9, "Rage Italic": 9, Ravie: 15, Rockwell: 8, "Rockwell Condensed": 6, "Rockwell Extra Bold": 10, "Rockwell Light": 9, "Rockwell Nova": 9, "Rockwell Nova Cond": 9, "Rockwell Nova Cond Light": 9, "Rockwell Nova Extra Bold": 9, "Rockwell Nova Light": 9, Rod: 9, "Sakkal Majalla": 9, "Sanskrit Text": 9, "Script MT Bold": 8, "Segoe MDL2 Assets": 6, "Segoe Print": 11, "Segoe Script": 11, "Segoe UI": 8, "Segoe UI Black": 9, "Segoe UI Emoji": 8, "Segoe UI Historic": 8, "Segoe UI Light": 8, "Segoe UI Semibold": 9, "Segoe UI Semilight": 8, "Segoe UI Symbol": 8, Selawik: 8, "Selawik Light": 8, "Selawik Semibold": 8, "Shonar Bangla": 8, "Showcard Gothic": 9, Shruti: 8, "Simplified Arabic": 8, "Simplified Arabic Fixed": 8, "SimSun-ExtB": 8, "Sitka Banner": 8, "Sitka Display": 8, "Sitka Heading": 8, "Sitka Small": 10, "Sitka Subheading": 9, "Sitka Text": 9, "Snap ITC": 13, "Source Sans Pro": 8, "Source Sans Pro Black": 8, "Source Sans Pro ExtraLight": 8, "Source Sans Pro Light": 8, "Source Sans Pro SemiBold": 8, Stencil: 9, Sylfaen: 8, Symbol: 8, Tahoma: 8, "Tempus Sans ITC": 10, "TH SarabunPSK": 8, "Times New Roman": 7, "Traditional Arabic": 8, "Trebuchet MS": 8, Tunga: 8, "Tw Cen MT": 8, "Tw Cen MT Condensed": 5, "Tw Cen MT Condensed Extra Bold": 7, "UD Digi Kyokasho N-B": 8, "UD Digi Kyokasho NK-B": 8, "UD Digi Kyokasho NK-R": 8, "UD Digi Kyokasho NP-B": 8, "UD Digi Kyokasho NP-R": 8, "UD Digi Kyokasho N-R": 8, Univers: 8, "Univers Condensed": 8, "Univers Condensed Light": 8, "Univers Light": 8, "Urdu Typesetting": 8, Utsaah: 8, Vani: 8, Verdana: 10, "Verdana Pro": 10, "Verdana Pro Black": 8, "Verdana Pro Cond": 8, "Verdana Pro Cond Black": 8, "Verdana Pro Cond Light": 8, "Verdana Pro Cond SemiBold": 8, "Verdana Pro Light": 8, "Verdana Pro SemiBold": 8, Vijaya: 8, "Viner Hand ITC": 10, Vivaldi: 6, "Vladimir Script": 7, Vrinda: 9, Webdings: 15, "Wide Latin": 19, Wingdings: 20, "Wingdings 2": 17, "Wingdings 3": 13, "Yet R": 8, "Yu Gothic": 8, "Yu Gothic Light": 8, "Yu Gothic Medium": 8, "Yu Gothic UI": 8, "Yu Gothic UI Light": 8, "Yu Gothic UI Semibold": 9, "Yu Gothic UI Semilight": 8, "Yu Mincho": 8, "Yu Mincho Demibold": 8, "Yu Mincho Light": 8, "仿宋": 8, "华文中宋": 9, "华文仿宋": 7, "华文宋体": 7, "华文彩云": 9, "华文新魏": 9, "华文楷体": 7, "华文琥珀": 9, "华文细黑": 8, "华文行楷": 8, "华文隶书": 7, "宋体": 8, "幼圆": 8, "微软雅黑": 9, "微软雅黑 Light": 9, "新宋体": 8, "方正姚体": 8, "方正舒体": 8, "楷体": 8, "等线": 8, "等线 Light": 8, "隶书": 8, "黑体": 8, "游ゴシック": 8, "ＭＳ Ｐ明朝": 8, '"ＭＳ Ｐゴシック"': 8, "メイリオ": 9, "HGｺﾞｼｯｸE": 8, "HG明朝B": 8, "HGｺﾞｼｯｸM": 8 }, 12: { "Gill Sans MT": 8, Abadi: 10, "Abadi Extra Light": 9, "Agency FB": 6, Aharoni: 7, Aldhabi: 5, Algerian: 10, "Ami R": 7, "Angsana New": 5, AngsanaUPC: 5, Aparajita: 6, "Arabic Typesetting": 5, Arial: 9, "Arial Black": 11, "Arial Narrow": 7, "Arial Nova": 9, "Arial Nova Cond": 8, "Arial Nova Cond Light": 7, "Arial Nova Light": 9, "Arial Rounded MT Bold": 10, "Baskerville Old Face": 8, Batang: 9, BatangChe: 8, "Bauhaus 93": 9, "Bell MT": 8, Bembo: 8, "Berlin Sans FB": 10, "Berlin Sans FB Demi": 10, "Bernard MT Condensed": 8, "Blackadder ITC": 6, "Bodoni MT": 8, "Bodoni MT Black": 11, "Bodoni MT Condensed": 5, "Bodoni MT Poster Compressed": 6, "Book Antiqua": 8, "Bookman Old Style": 10, "Bookshelf Symbol 7": 12, "Bradley Hand ITC": 10, "Britannic Bold": 10, Broadway: 10, "Browallia New": 6, BrowalliaUPC: 6, "Brush Script MT": 8, Calibri: 8, "Calibri Light": 8, "Californian FB": 9, "Calisto MT": 8, Cambria: 9, "Cambria Math": 9, Candara: 9, Castellar: 12, Centaur: 8, Century: 9, "Century Gothic": 9, "Century Schoolbook": 9, Chiller: 8, "Colonna MT": 8, "Comic Sans MS": 10, Consolas: 9, Constantia: 9, "Cooper Black": 10, "Copperplate Gothic Bold": 11, "Copperplate Gothic Light": 12, Corbel: 8, "Cordia New": 6, CordiaUPC: 6, "Courier New": 10, "Curlz MT": 9, Dante: 7, DaunPenh: 5, David: 7, DilleniaUPC: 5, DokChampa: 9, Dotum: 8, DotumChe: 8, Dubai: 9, "Dubai Light": 9, "Dubai Medium": 9, Ebrima: 9, "Edwardian Script ITC": 8, Elephant: 12, "Engravers MT": 10, "Eras Bold ITC": 10, "Eras Demi ITC": 10, "Eras Light ITC": 9, "Eras Medium ITC": 9, EucrosiaUPC: 6, Euphemia: 9, "Expo M": 14, FangSong: 8, "Felix Titling": 9, "Footlight MT Light": 9, Forte: 8, "Franklin Gothic Book": 9, "Franklin Gothic Demi": 9, "Franklin Gothic Demi Cond": 8, "Franklin Gothic Heavy": 9, "Franklin Gothic Medium": 9, "Franklin Gothic Medium Cond": 8, FrankRuehl: 7, FreesiaUPC: 7, "Freestyle Script": 6, "French Script MT": 6, Gabriola: 6, Gadugi: 9, Garamond: 8, Gautami: 10, Georgia: 10, "Georgia Pro": 9, "Georgia Pro Black": 11, "Georgia Pro Cond": 8, "Georgia Pro Cond Black": 10, "Georgia Pro Cond Light": 8, "Georgia Pro Cond Semibold": 9, "Georgia Pro Light": 9, "Georgia Pro Semibold": 10, Gigi: 7, "Gill Sans MT Condensed": 6, "Gill Sans MT Ext Condensed Bold": 6, "Gill Sans Nova": 8, "Gill Sans Nova Cond": 5, "Gill Sans Nova Cond Lt": 5, "Gill Sans Nova Cond Ultra Bold": 9, "Gill Sans Nova Cond XBd": 8, "Gill Sans Nova Light": 8, "Gill Sans Nova Ultra Bold": 14, "Gill Sans Ultra Bold": 14, "Gill Sans Ultra Bold Condensed": 9, Gisha: 9, "Gloucester MT Extra Condensed": 6, "Goudy Old Style": 8, "Goudy Stout": 13, Grotesque: 8, "Grotesque Light": 8, Gulim: 9, GulimChe: 8, Gungsuh: 9, GungsuhChe: 8, "Hadassah Friedlaender": 9, Haettenschweiler: 7, "Harlow Solid Italic": 7, Harrington: 9, "Headline R": 11, HGGothicE: 8, HGGothicM: 8, HGGyoshotai: 8, HGKyokashotai: 8, HGMaruGothicMPRO: 12, HGMinchoB: 9, HGMinchoE: 9, HGPGothicE: 10, HGPGothicM: 10, HGPGyoshotai: 9, HGPKyokashotai: 8, HGPMinchoB: 9, HGPMinchoE: 9, HGPSoeiKakugothicUB: 11, HGPSoeiKakupoptai: 11, HGPSoeiPresenceEB: 10, HGSeikaishotaiPRO: 10, HGSGothicE: 9, HGSGothicM: 9, HGSGyoshotai: 8, HGSKyokashotai: 7, HGSMinchoB: 9, HGSMinchoE: 9, HGSoeiKakugothicUB: 9, HGSoeiKakupoptai: 9, HGSoeiPresenceEB: 9, HGSSoeiKakugothicUB: 10, HGSSoeiKakupoptai: 10, HGSSoeiPresenceEB: 9, "High Tower Text": 8, "HYGothic-Extra": 10, "HYGothic-Medium": 9, "HYGraphic-Medium": 9, "HYGungSo-Bold": 9, "HYHeadLine-Medium": 9, "HYMyeongJo-Extra": 11, "HYPMokGak-Bold": 11, "HYPost-Light": 11, "HYPost-Medium": 11, "HYShortSamul-Medium": 6, "HYSinMyeongJo-Medium": 10, Impact: 9, "Imprint MT Shadow": 8, "Informal Roman": 9, "Ink Free": 8, IrisUPC: 8, "Iskoola Pota": 8, JasmineUPC: 8, "Javanese Text": 9, Jokerman: 11, "Juice ITC": 6, KaiTi: 8, Kalinga: 9, Kartika: 8, "Khmer UI": 8, KodchiangUPC: 5, Kokila: 8, "Kristen ITC": 10, "Kunstler Script": 6, "Lao UI": 8, Latha: 8, Leelawadee: 9, "Leelawadee UI": 9, "Leelawadee UI Semilight": 9, "Levenim MT": 9, LilyUPC: 7, "Lucida Bright": 10, "Lucida Calligraphy": 12, "Lucida Console": 11, "Lucida Fax": 11, "Lucida Handwriting": 12, "Lucida Sans": 11, "Lucida Sans Typewriter": 10, "Lucida Sans Unicode": 11, "Magic R": 10, Magneto: 12, "Maiandra GD": 10, "Malgun Gothic": 9, "Malgun Gothic Semilight": 10, Mangal: 9, Marlett: 17, "Matura MT Script Capitals": 12, Meiryo: 11, "Meiryo UI": 11, "Microsoft GothicNeo": 9, "Microsoft Himalaya": 6, "Microsoft JhengHei": 10, "Microsoft JhengHei Light": 10, "Microsoft JhengHei UI": 10, "Microsoft JhengHei UI Light": 10, "Microsoft New Tai Lue": 9, "Microsoft PhagsPa": 9, "Microsoft Sans Serif": 10, "Microsoft Tai Le": 9, "Microsoft Uighur": 6, "Microsoft YaHei Light": 10, "Microsoft YaHei UI": 10, "Microsoft YaHei UI Light": 10, "Microsoft Yi Baiti": 9, MingLiU: 9, MingLiU_HKSCS: 9, "MingLiU_HKSCS-ExtB": 9, "MingLiU-ExtB": 9, Miriam: 9, "Miriam Fixed": 11, Mistral: 8, "Modern No. 20": 8, "MoeumT R": 10, "Mongolian Baiti": 9, "Monotype Corsiva": 8, MoolBoran: 7, "MS Gothic": 8, "MS Mincho": 9, "MS Outlook": 9, "MS PGothic": 9, "MS PMincho": 9, "MS Reference Sans Serif": 11, "MS Reference Specialty": 20, "MS UI Gothic": 9, "MT Extra": 17, "MV Boli": 12, "Myanmar Text": 9, Narkisim: 8, "Neue Haas Grotesk Text Pro": 9, "New Gulim": 10, "News Gothic MT": 9, "Niagara Engraved": 6, "Niagara Solid": 6, "Nirmala UI": 9, "Nirmala UI Semilight": 10, Nyala: 9, "OCR A Extended": 11, OCRB: 11, "Old English Text MT": 9, Onyx: 7, "Palace Script MT": 6, "Palatino Linotype": 8, Papyrus: 10, Parchment: 4, Perpetua: 7, "Perpetua Titling MT": 11, "Plantagenet Cherokee": 9, Playbill: 7, PMingLiU: 9, "PMingLiU-ExtB": 9, "Poor Richard": 10, Pristina: 9, "Pyunji R": 9, Raavi: 8, "Rage Italic": 9, Ravie: 16, Rockwell: 9, "Rockwell Condensed": 7, "Rockwell Extra Bold": 11, "Rockwell Light": 10, "Rockwell Nova": 9, "Rockwell Nova Cond": 9, "Rockwell Nova Cond Light": 9, "Rockwell Nova Extra Bold": 9, "Rockwell Nova Light": 9, Rod: 9, "Sakkal Majalla": 9, "Sanskrit Text": 9, "Script MT Bold": 8, "Segoe MDL2 Assets": 7, "Segoe Print": 12, "Segoe Script": 12, "Segoe UI": 9, "Segoe UI Black": 10, "Segoe UI Emoji": 9, "Segoe UI Historic": 9, "Segoe UI Light": 8, "Segoe UI Semibold": 9, "Segoe UI Semilight": 9, "Segoe UI Symbol": 9, Selawik: 8, "Selawik Light": 8, "Selawik Semibold": 8, "Shonar Bangla": 8, "Showcard Gothic": 9, Shruti: 8, "Simplified Arabic": 8, "Simplified Arabic Fixed": 8, "SimSun-ExtB": 8, "Sitka Banner": 8, "Sitka Display": 8, "Sitka Heading": 9, "Sitka Small": 11, "Sitka Subheading": 9, "Sitka Text": 10, "Snap ITC": 14, "Source Sans Pro": 8, "Source Sans Pro Black": 8, "Source Sans Pro ExtraLight": 8, "Source Sans Pro Light": 8, "Source Sans Pro SemiBold": 8, Stencil: 9, Sylfaen: 8, Symbol: 8, Tahoma: 9, "Tempus Sans ITC": 11, "TH SarabunPSK": 8, "Times New Roman": 8, "Traditional Arabic": 8, "Trebuchet MS": 8, Tunga: 8, "Tw Cen MT": 9, "Tw Cen MT Condensed": 6, "Tw Cen MT Condensed Extra Bold": 8, "UD Digi Kyokasho N-B": 8, "UD Digi Kyokasho NK-B": 8, "UD Digi Kyokasho NK-R": 8, "UD Digi Kyokasho NP-B": 8, "UD Digi Kyokasho NP-R": 8, "UD Digi Kyokasho N-R": 8, Univers: 8, "Univers Condensed": 8, "Univers Condensed Light": 8, "Univers Light": 8, "Urdu Typesetting": 8, Utsaah: 6, Vani: 8, Verdana: 10, "Verdana Pro": 10, "Verdana Pro Black": 8, "Verdana Pro Cond": 8, "Verdana Pro Cond Black": 8, "Verdana Pro Cond Light": 8, "Verdana Pro Cond SemiBold": 8, "Verdana Pro Light": 8, "Verdana Pro SemiBold": 8, Vijaya: 8, "Viner Hand ITC": 11, Vivaldi: 7, "Vladimir Script": 7, Vrinda: 9, Webdings: 16, "Wide Latin": 20, Wingdings: 22, "Wingdings 2": 18, "Wingdings 3": 14, "Yet R": 9, "Yu Gothic": 9, "Yu Gothic Light": 9, "Yu Gothic Medium": 9, "Yu Gothic UI": 9, "Yu Gothic UI Light": 9, "Yu Gothic UI Semibold": 9, "Yu Gothic UI Semilight": 9, "Yu Mincho": 9, "Yu Mincho Demibold": 8, "Yu Mincho Light": 8, "仿宋": 8, "华文中宋": 10, "华文仿宋": 8, "华文宋体": 8, "华文彩云": 9, "华文新魏": 9, "华文楷体": 8, "华文琥珀": 9, "华文细黑": 9, "华文行楷": 8, "华文隶书": 7, "宋体": 8, "幼圆": 8, "微软雅黑": 9, "微软雅黑 Light": 9, "新宋体": 8, "方正姚体": 8, "方正舒体": 9, "楷体": 8, "等线": 8, "等线 Light": 8, "隶书": 8, "黑体": 8, "游ゴシック": 9, "ＭＳ Ｐ明朝": 8, '"ＭＳ Ｐゴシック"': 8, "メイリオ": 10, "HGｺﾞｼｯｸE": 8, "HG明朝B": 8, "HGｺﾞｼｯｸM": 8 }, 14: { "Gill Sans MT": 10, Abadi: 11, "Abadi Extra Light": 11, "Agency FB": 8, Aharoni: 8, Aldhabi: 6, Algerian: 11, "Ami R": 8, "Angsana New": 6, AngsanaUPC: 6, Aparajita: 8, "Arabic Typesetting": 6, Arial: 11, "Arial Black": 13, "Arial Narrow": 9, "Arial Nova": 11, "Arial Nova Cond": 10, "Arial Nova Cond Light": 9, "Arial Nova Light": 11, "Arial Rounded MT Bold": 11, "Baskerville Old Face": 9, Batang: 10, BatangChe: 10, "Bauhaus 93": 11, "Bell MT": 10, Bembo: 9, "Berlin Sans FB": 11, "Berlin Sans FB Demi": 12, "Bernard MT Condensed": 9, "Blackadder ITC": 8, "Bodoni MT": 9, "Bodoni MT Black": 12, "Bodoni MT Condensed": 6, "Bodoni MT Poster Compressed": 6, "Book Antiqua": 10, "Bookman Old Style": 12, "Bookshelf Symbol 7": 14, "Bradley Hand ITC": 12, "Britannic Bold": 12, Broadway: 12, "Browallia New": 7, BrowalliaUPC: 7, "Brush Script MT": 10, Calibri: 10, "Calibri Light": 10, "Californian FB": 11, "Calisto MT": 10, Cambria: 11, "Cambria Math": 11, Candara: 10, Castellar: 14, Centaur: 9, Century: 11, "Century Gothic": 11, "Century Schoolbook": 11, Chiller: 9, "Colonna MT": 10, "Comic Sans MS": 12, Consolas: 10, Constantia: 10, "Cooper Black": 11, "Copperplate Gothic Bold": 14, "Copperplate Gothic Light": 14, Corbel: 10, "Cordia New": 7, CordiaUPC: 7, "Courier New": 11, "Curlz MT": 10, Dante: 9, DaunPenh: 6, David: 8, DilleniaUPC: 6, DokChampa: 11, Dotum: 10, DotumChe: 10, Dubai: 10, "Dubai Light": 10, "Dubai Medium": 10, Ebrima: 10, "Edwardian Script ITC": 9, Elephant: 14, "Engravers MT": 12, "Eras Bold ITC": 12, "Eras Demi ITC": 12, "Eras Light ITC": 10, "Eras Medium ITC": 11, EucrosiaUPC: 8, Euphemia: 11, "Expo M": 16, FangSong: 10, "Felix Titling": 11, "Footlight MT Light": 11, Forte: 10, "Franklin Gothic Book": 11, "Franklin Gothic Demi": 11, "Franklin Gothic Demi Cond": 10, "Franklin Gothic Heavy": 11, "Franklin Gothic Medium": 11, "Franklin Gothic Medium Cond": 10, FrankRuehl: 8, FreesiaUPC: 8, "Freestyle Script": 7, "French Script MT": 7, Gabriola: 8, Gadugi: 10, Garamond: 9, Gautami: 11, Georgia: 12, "Georgia Pro": 11, "Georgia Pro Black": 13, "Georgia Pro Cond": 10, "Georgia Pro Cond Black": 12, "Georgia Pro Cond Light": 10, "Georgia Pro Cond Semibold": 11, "Georgia Pro Light": 10, "Georgia Pro Semibold": 12, Gigi: 10, "Gill Sans MT Condensed": 7, "Gill Sans MT Ext Condensed Bold": 7, "Gill Sans Nova": 10, "Gill Sans Nova Cond": 6, "Gill Sans Nova Cond Lt": 6, "Gill Sans Nova Cond Ultra Bold": 11, "Gill Sans Nova Cond XBd": 10, "Gill Sans Nova Light": 10, "Gill Sans Nova Ultra Bold": 16, "Gill Sans Ultra Bold": 16, "Gill Sans Ultra Bold Condensed": 11, Gisha: 10, "Gloucester MT Extra Condensed": 7, "Goudy Old Style": 10, "Goudy Stout": 16, Grotesque: 9, "Grotesque Light": 9, Gulim: 10, GulimChe: 10, Gungsuh: 10, GungsuhChe: 10, "Hadassah Friedlaender": 11, Haettenschweiler: 8, "Harlow Solid Italic": 9, Harrington: 11, "Headline R": 14, HGGothicE: 10, HGGothicM: 10, HGGyoshotai: 10, HGKyokashotai: 10, HGMaruGothicMPRO: 14, HGMinchoB: 11, HGMinchoE: 11, HGPGothicE: 11, HGPGothicM: 12, HGPGyoshotai: 10, HGPKyokashotai: 10, HGPMinchoB: 10, HGPMinchoE: 11, HGPSoeiKakugothicUB: 13, HGPSoeiKakupoptai: 13, HGPSoeiPresenceEB: 12, HGSeikaishotaiPRO: 11, HGSGothicE: 10, HGSGothicM: 11, HGSGyoshotai: 9, HGSKyokashotai: 9, HGSMinchoB: 10, HGSMinchoE: 11, HGSoeiKakugothicUB: 11, HGSoeiKakupoptai: 11, HGSoeiPresenceEB: 11, HGSSoeiKakugothicUB: 12, HGSSoeiKakupoptai: 12, HGSSoeiPresenceEB: 11, "High Tower Text": 9, "HYGothic-Extra": 12, "HYGothic-Medium": 11, "HYGraphic-Medium": 11, "HYGungSo-Bold": 11, "HYHeadLine-Medium": 11, "HYMyeongJo-Extra": 13, "HYPMokGak-Bold": 13, "HYPost-Light": 13, "HYPost-Medium": 13, "HYShortSamul-Medium": 7, "HYSinMyeongJo-Medium": 12, Impact: 10, "Imprint MT Shadow": 10, "Informal Roman": 10, "Ink Free": 10, IrisUPC: 10, "Iskoola Pota": 10, JasmineUPC: 10, "Javanese Text": 11, Jokerman: 14, "Juice ITC": 7, KaiTi: 10, Kalinga: 11, Kartika: 11, "Khmer UI": 10, KodchiangUPC: 7, Kokila: 10, "Kristen ITC": 11, "Kunstler Script": 7, "Lao UI": 10, Latha: 10, Leelawadee: 10, "Leelawadee UI": 10, "Leelawadee UI Semilight": 10, "Levenim MT": 11, LilyUPC: 8, "Lucida Bright": 12, "Lucida Calligraphy": 14, "Lucida Console": 12, "Lucida Fax": 13, "Lucida Handwriting": 14, "Lucida Sans": 13, "Lucida Sans Typewriter": 11, "Lucida Sans Unicode": 13, "Magic R": 12, Magneto: 15, "Maiandra GD": 12, "Malgun Gothic": 11, "Malgun Gothic Semilight": 12, Mangal: 11, Marlett: 20, "Matura MT Script Capitals": 13, Meiryo: 13, "Meiryo UI": 13, "Microsoft GothicNeo": 11, "Microsoft Himalaya": 7, "Microsoft JhengHei": 11, "Microsoft JhengHei Light": 12, "Microsoft JhengHei UI": 11, "Microsoft JhengHei UI Light": 12, "Microsoft New Tai Lue": 11, "Microsoft PhagsPa": 11, "Microsoft Sans Serif": 11, "Microsoft Tai Le": 11, "Microsoft Uighur": 7, "Microsoft YaHei Light": 12, "Microsoft YaHei UI": 12, "Microsoft YaHei UI Light": 12, "Microsoft Yi Baiti": 11, MingLiU: 11, MingLiU_HKSCS: 11, "MingLiU_HKSCS-ExtB": 11, "MingLiU-ExtB": 11, Miriam: 10, "Miriam Fixed": 12, Mistral: 10, "Modern No. 20": 10, "MoeumT R": 11, "Mongolian Baiti": 11, "Monotype Corsiva": 9, MoolBoran: 8, "MS Gothic": 10, "MS Mincho": 11, "MS Outlook": 11, "MS PGothic": 11, "MS PMincho": 11, "MS Reference Sans Serif": 13, "MS Reference Specialty": 24, "MS UI Gothic": 11, "MT Extra": 20, "MV Boli": 14, "Myanmar Text": 11, Narkisim: 9, "Neue Haas Grotesk Text Pro": 11, "New Gulim": 12, "News Gothic MT": 12, "Niagara Engraved": 7, "Niagara Solid": 7, "Nirmala UI": 11, "Nirmala UI Semilight": 11, Nyala: 11, "OCR A Extended": 12, OCRB: 12, "Old English Text MT": 11, Onyx: 7, "Palace Script MT": 7, "Palatino Linotype": 10, Papyrus: 12, Parchment: 5, Perpetua: 9, "Perpetua Titling MT": 13, "Plantagenet Cherokee": 11, Playbill: 8, PMingLiU: 10, "PMingLiU-ExtB": 10, "Poor Richard": 11, Pristina: 10, "Pyunji R": 10, Raavi: 10, "Rage Italic": 11, Ravie: 19, Rockwell: 10, "Rockwell Condensed": 8, "Rockwell Extra Bold": 13, "Rockwell Light": 11, "Rockwell Nova": 11, "Rockwell Nova Cond": 11, "Rockwell Nova Cond Light": 11, "Rockwell Nova Extra Bold": 11, "Rockwell Nova Light": 11, Rod: 11, "Sakkal Majalla": 11, "Sanskrit Text": 12, "Script MT Bold": 10, "Segoe MDL2 Assets": 8, "Segoe Print": 14, "Segoe Script": 14, "Segoe UI": 10, "Segoe UI Black": 12, "Segoe UI Emoji": 10, "Segoe UI Historic": 10, "Segoe UI Light": 10, "Segoe UI Semibold": 11, "Segoe UI Semilight": 10, "Segoe UI Symbol": 10, Selawik: 10, "Selawik Light": 10, "Selawik Semibold": 10, "Shonar Bangla": 10, "Showcard Gothic": 11, Shruti: 11, "Simplified Arabic": 10, "Simplified Arabic Fixed": 11, "SimSun-ExtB": 10, "Sitka Banner": 10, "Sitka Display": 10, "Sitka Heading": 11, "Sitka Small": 13, "Sitka Subheading": 11, "Sitka Text": 12, "Snap ITC": 16, "Source Sans Pro": 9, "Source Sans Pro Black": 10, "Source Sans Pro ExtraLight": 9, "Source Sans Pro Light": 10, "Source Sans Pro SemiBold": 10, Stencil: 11, Sylfaen: 10, Symbol: 10, Tahoma: 10, "Tempus Sans ITC": 13, "TH SarabunPSK": 7, "Times New Roman": 10, "Traditional Arabic": 10, "Trebuchet MS": 10, Tunga: 10, "Tw Cen MT": 10, "Tw Cen MT Condensed": 7, "Tw Cen MT Condensed Extra Bold": 9, "UD Digi Kyokasho N-B": 10, "UD Digi Kyokasho NK-B": 10, "UD Digi Kyokasho NK-R": 10, "UD Digi Kyokasho NP-B": 10, "UD Digi Kyokasho NP-R": 10, "UD Digi Kyokasho N-R": 10, Univers: 10, "Univers Condensed": 10, "Univers Condensed Light": 8, "Univers Light": 10, "Urdu Typesetting": 10, Utsaah: 8, Vani: 11, Verdana: 12, "Verdana Pro": 12, "Verdana Pro Black": 10, "Verdana Pro Cond": 10, "Verdana Pro Cond Black": 10, "Verdana Pro Cond Light": 10, "Verdana Pro Cond SemiBold": 10, "Verdana Pro Light": 10, "Verdana Pro SemiBold": 10, Vijaya: 10, "Viner Hand ITC": 13, Vivaldi: 8, "Vladimir Script": 9, Vrinda: 11, Webdings: 19, "Wide Latin": 24, Wingdings: 26, "Wingdings 2": 22, "Wingdings 3": 17, "Yet R": 10, "Yu Gothic": 11, "Yu Gothic Light": 10, "Yu Gothic Medium": 11, "Yu Gothic UI": 10, "Yu Gothic UI Light": 10, "Yu Gothic UI Semibold": 11, "Yu Gothic UI Semilight": 10, "Yu Mincho": 10, "Yu Mincho Demibold": 10, "Yu Mincho Light": 10, "仿宋": 10, "华文中宋": 12, "华文仿宋": 9, "华文宋体": 9, "华文彩云": 11, "华文新魏": 11, "华文楷体": 9, "华文琥珀": 11, "华文细黑": 11, "华文行楷": 10, "华文隶书": 8, "宋体": 10, "幼圆": 10, "微软雅黑": 11, "微软雅黑 Light": 11, "新宋体": 10, "方正姚体": 10, "方正舒体": 10, "楷体": 10, "等线": 10, "等线 Light": 10, "隶书": 10, "黑体": 10, "游ゴシック": 11, "ＭＳ Ｐ明朝": 10, '"ＭＳ Ｐゴシック"': 10, "メイリオ": 12, "HGｺﾞｼｯｸE": 10, "HG明朝B": 10, "HGｺﾞｼｯｸM": 10 }, 16: { "Gill Sans MT": 11, Abadi: 13, "Abadi Extra Light": 12, "Agency FB": 9, Aharoni: 9, Aldhabi: 7, Algerian: 13, "Ami R": 9, "Angsana New": 7, AngsanaUPC: 7, Aparajita: 8, "Arabic Typesetting": 7, Arial: 12, "Arial Black": 14, "Arial Narrow": 10, "Arial Nova": 12, "Arial Nova Cond": 11, "Arial Nova Cond Light": 9, "Arial Nova Light": 12, "Arial Rounded MT Bold": 12, "Baskerville Old Face": 10, Batang: 10, BatangChe: 11, "Bauhaus 93": 12, "Bell MT": 11, Bembo: 10, "Berlin Sans FB": 13, "Berlin Sans FB Demi": 13, "Bernard MT Condensed": 10, "Blackadder ITC": 8, "Bodoni MT": 10, "Bodoni MT Black": 14, "Bodoni MT Condensed": 7, "Bodoni MT Poster Compressed": 7, "Book Antiqua": 11, "Bookman Old Style": 13, "Bookshelf Symbol 7": 16, "Bradley Hand ITC": 14, "Britannic Bold": 13, Broadway: 14, "Browallia New": 8, BrowalliaUPC: 8, "Brush Script MT": 11, Calibri: 11, "Calibri Light": 11, "Californian FB": 12, "Calisto MT": 11, Cambria: 12, "Cambria Math": 12, Candara: 12, Castellar: 15, Centaur: 10, Century: 12, "Century Gothic": 12, "Century Schoolbook": 12, Chiller: 10, "Colonna MT": 11, "Comic Sans MS": 13, Consolas: 12, Constantia: 11, "Cooper Black": 13, "Copperplate Gothic Bold": 15, "Copperplate Gothic Light": 15, Corbel: 11, "Cordia New": 8, CordiaUPC: 8, "Courier New": 13, "Curlz MT": 11, Dante: 9, DaunPenh: 7, David: 9, DilleniaUPC: 7, DokChampa: 12, Dotum: 11, DotumChe: 11, Dubai: 11, "Dubai Light": 11, "Dubai Medium": 11, Ebrima: 11, "Edwardian Script ITC": 10, Elephant: 16, "Engravers MT": 14, "Eras Bold ITC": 14, "Eras Demi ITC": 13, "Eras Light ITC": 11, "Eras Medium ITC": 12, EucrosiaUPC: 9, Euphemia: 12, "Expo M": 18, FangSong: 11, "Felix Titling": 12, "Footlight MT Light": 12, Forte: 11, "Franklin Gothic Book": 12, "Franklin Gothic Demi": 12, "Franklin Gothic Demi Cond": 11, "Franklin Gothic Heavy": 12, "Franklin Gothic Medium": 12, "Franklin Gothic Medium Cond": 11, FrankRuehl: 9, FreesiaUPC: 9, "Freestyle Script": 8, "French Script MT": 8, Gabriola: 8, Gadugi: 11, Garamond: 10, Gautami: 13, Georgia: 13, "Georgia Pro": 12, "Georgia Pro Black": 15, "Georgia Pro Cond": 11, "Georgia Pro Cond Black": 13, "Georgia Pro Cond Light": 11, "Georgia Pro Cond Semibold": 12, "Georgia Pro Light": 12, "Georgia Pro Semibold": 13, Gigi: 12, "Gill Sans MT Condensed": 8, "Gill Sans MT Ext Condensed Bold": 7, "Gill Sans Nova": 11, "Gill Sans Nova Cond": 7, "Gill Sans Nova Cond Lt": 6, "Gill Sans Nova Cond Ultra Bold": 12, "Gill Sans Nova Cond XBd": 11, "Gill Sans Nova Light": 11, "Gill Sans Nova Ultra Bold": 18, "Gill Sans Ultra Bold": 18, "Gill Sans Ultra Bold Condensed": 12, Gisha: 11, "Gloucester MT Extra Condensed": 8, "Goudy Old Style": 11, "Goudy Stout": 17, Grotesque: 10, "Grotesque Light": 10, Gulim: 11, GulimChe: 11, Gungsuh: 11, GungsuhChe: 11, "Hadassah Friedlaender": 12, Haettenschweiler: 9, "Harlow Solid Italic": 10, Harrington: 12, "Headline R": 15, HGGothicE: 11, HGGothicM: 11, HGGyoshotai: 11, HGKyokashotai: 11, HGMaruGothicMPRO: 16, HGMinchoB: 12, HGMinchoE: 12, HGPGothicE: 12, HGPGothicM: 13, HGPGyoshotai: 11, HGPKyokashotai: 11, HGPMinchoB: 11, HGPMinchoE: 12, HGPSoeiKakugothicUB: 14, HGPSoeiKakupoptai: 15, HGPSoeiPresenceEB: 13, HGSeikaishotaiPRO: 12, HGSGothicE: 11, HGSGothicM: 12, HGSGyoshotai: 10, HGSKyokashotai: 10, HGSMinchoB: 11, HGSMinchoE: 12, HGSoeiKakugothicUB: 12, HGSoeiKakupoptai: 12, HGSoeiPresenceEB: 12, HGSSoeiKakugothicUB: 13, HGSSoeiKakupoptai: 14, HGSSoeiPresenceEB: 12, "High Tower Text": 10, "HYGothic-Extra": 13, "HYGothic-Medium": 12, "HYGraphic-Medium": 12, "HYGungSo-Bold": 12, "HYHeadLine-Medium": 12, "HYMyeongJo-Extra": 14, "HYPMokGak-Bold": 15, "HYPost-Light": 14, "HYPost-Medium": 15, "HYShortSamul-Medium": 8, "HYSinMyeongJo-Medium": 13, Impact: 11, "Imprint MT Shadow": 11, "Informal Roman": 11, "Ink Free": 11, IrisUPC: 11, "Iskoola Pota": 11, JasmineUPC: 10, "Javanese Text": 12, Jokerman: 15, "Juice ITC": 8, KaiTi: 11, Kalinga: 12, Kartika: 12, "Khmer UI": 11, KodchiangUPC: 7, Kokila: 8, "Kristen ITC": 13, "Kunstler Script": 7, "Lao UI": 11, Latha: 11, Leelawadee: 11, "Leelawadee UI": 11, "Leelawadee UI Semilight": 12, "Levenim MT": 12, LilyUPC: 9, "Lucida Bright": 13, "Lucida Calligraphy": 15, "Lucida Console": 14, "Lucida Fax": 14, "Lucida Handwriting": 15, "Lucida Sans": 14, "Lucida Sans Typewriter": 13, "Lucida Sans Unicode": 14, "Magic R": 13, Magneto: 16, "Maiandra GD": 13, "Malgun Gothic": 12, "Malgun Gothic Semilight": 13, Mangal: 12, Marlett: 22, "Matura MT Script Capitals": 15, Meiryo: 14, "Meiryo UI": 14, "Microsoft GothicNeo": 12, "Microsoft Himalaya": 8, "Microsoft JhengHei": 13, "Microsoft JhengHei Light": 13, "Microsoft JhengHei UI": 13, "Microsoft JhengHei UI Light": 13, "Microsoft New Tai Lue": 12, "Microsoft PhagsPa": 12, "Microsoft Sans Serif": 13, "Microsoft Tai Le": 12, "Microsoft Uighur": 8, "Microsoft YaHei Light": 13, "Microsoft YaHei UI": 13, "Microsoft YaHei UI Light": 13, "Microsoft Yi Baiti": 12, MingLiU: 12, MingLiU_HKSCS: 12, "MingLiU_HKSCS-ExtB": 12, "MingLiU-ExtB": 12, Miriam: 11, "Miriam Fixed": 14, Mistral: 10, "Modern No. 20": 11, "MoeumT R": 13, "Mongolian Baiti": 12, "Monotype Corsiva": 10, MoolBoran: 8, "MS Gothic": 11, "MS Mincho": 12, "MS Outlook": 12, "MS PGothic": 12, "MS PMincho": 12, "MS Reference Sans Serif": 14, "MS Reference Specialty": 26, "MS UI Gothic": 12, "MT Extra": 22, "MV Boli": 16, "Myanmar Text": 12, Narkisim: 10, "Neue Haas Grotesk Text Pro": 12, "New Gulim": 13, "News Gothic MT": 14, "Niagara Engraved": 8, "Niagara Solid": 8, "Nirmala UI": 12, "Nirmala UI Semilight": 13, Nyala: 12, "OCR A Extended": 14, OCRB: 14, "Old English Text MT": 12, Onyx: 8, "Palace Script MT": 8, "Palatino Linotype": 11, Papyrus: 14, Parchment: 5, Perpetua: 10, "Perpetua Titling MT": 14, "Plantagenet Cherokee": 12, Playbill: 8, PMingLiU: 11, "PMingLiU-ExtB": 11, "Poor Richard": 13, Pristina: 11, "Pyunji R": 11, Raavi: 11, "Rage Italic": 12, Ravie: 21, Rockwell: 11, "Rockwell Condensed": 9, "Rockwell Extra Bold": 14, "Rockwell Light": 12, "Rockwell Nova": 12, "Rockwell Nova Cond": 12, "Rockwell Nova Cond Light": 12, "Rockwell Nova Extra Bold": 12, "Rockwell Nova Light": 12, Rod: 12, "Sakkal Majalla": 12, "Sanskrit Text": 13, "Script MT Bold": 11, "Segoe MDL2 Assets": 8, "Segoe Print": 15, "Segoe Script": 15, "Segoe UI": 11, "Segoe UI Black": 13, "Segoe UI Emoji": 11, "Segoe UI Historic": 11, "Segoe UI Light": 11, "Segoe UI Semibold": 12, "Segoe UI Semilight": 11, "Segoe UI Symbol": 11, Selawik: 11, "Selawik Light": 11, "Selawik Semibold": 12, "Shonar Bangla": 11, "Showcard Gothic": 12, Shruti: 13, "Simplified Arabic": 11, "Simplified Arabic Fixed": 13, "SimSun-ExtB": 11, "Sitka Banner": 11, "Sitka Display": 11, "Sitka Heading": 12, "Sitka Small": 14, "Sitka Subheading": 12, "Sitka Text": 13, "Snap ITC": 18, "Source Sans Pro": 10, "Source Sans Pro Black": 11, "Source Sans Pro ExtraLight": 10, "Source Sans Pro Light": 11, "Source Sans Pro SemiBold": 11, Stencil: 12, Sylfaen: 11, Symbol: 11, Tahoma: 11, "Tempus Sans ITC": 14, "TH SarabunPSK": 8, "Times New Roman": 11, "Traditional Arabic": 10, "Trebuchet MS": 11, Tunga: 11, "Tw Cen MT": 12, "Tw Cen MT Condensed": 8, "Tw Cen MT Condensed Extra Bold": 10, "UD Digi Kyokasho N-B": 11, "UD Digi Kyokasho NK-B": 11, "UD Digi Kyokasho NK-R": 11, "UD Digi Kyokasho NP-B": 11, "UD Digi Kyokasho NP-R": 11, "UD Digi Kyokasho N-R": 11, Univers: 11, "Univers Condensed": 11, "Univers Condensed Light": 9, "Univers Light": 11, "Urdu Typesetting": 11, Utsaah: 8, Vani: 13, Verdana: 13, "Verdana Pro": 13, "Verdana Pro Black": 11, "Verdana Pro Cond": 11, "Verdana Pro Cond Black": 11, "Verdana Pro Cond Light": 11, "Verdana Pro Cond SemiBold": 11, "Verdana Pro Light": 11, "Verdana Pro SemiBold": 11, Vijaya: 11, "Viner Hand ITC": 14, Vivaldi: 9, "Vladimir Script": 10, Vrinda: 12, Webdings: 21, "Wide Latin": 26, Wingdings: 28, "Wingdings 2": 24, "Wingdings 3": 19, "Yet R": 11, "Yu Gothic": 12, "Yu Gothic Light": 11, "Yu Gothic Medium": 12, "Yu Gothic UI": 11, "Yu Gothic UI Light": 11, "Yu Gothic UI Semibold": 12, "Yu Gothic UI Semilight": 12, "Yu Mincho": 11, "Yu Mincho Demibold": 11, "Yu Mincho Light": 11, "仿宋": 11, "华文中宋": 13, "华文仿宋": 10, "华文宋体": 10, "华文彩云": 12, "华文新魏": 12, "华文楷体": 10, "华文琥珀": 12, "华文细黑": 12, "华文行楷": 11, "华文隶书": 9, "宋体": 11, "幼圆": 11, "微软雅黑": 12, "微软雅黑 Light": 12, "新宋体": 11, "方正姚体": 11, "方正舒体": 11, "楷体": 11, "等线": 11, "等线 Light": 11, "隶书": 11, "黑体": 11, "游ゴシック": 12, "ＭＳ Ｐ明朝": 11, '"ＭＳ Ｐゴシック"': 11, "メイリオ": 13, "HGｺﾞｼｯｸE": 11, "HG明朝B": 11, "HGｺﾞｼｯｸM": 11 }, 18: { "Gill Sans MT": 12, Abadi: 15, "Abadi Extra Light": 13, "Agency FB": 10, Aharoni: 10, Aldhabi: 8, Algerian: 14, "Ami R": 10, "Angsana New": 8, AngsanaUPC: 8, Aparajita: 10, "Arabic Typesetting": 8, Arial: 13, "Arial Black": 16, "Arial Narrow": 11, "Arial Nova": 13, "Arial Nova Cond": 12, "Arial Nova Cond Light": 11, "Arial Nova Light": 13, "Arial Rounded MT Bold": 14, "Baskerville Old Face": 12, Batang: 12, BatangChe: 12, "Bauhaus 93": 14, "Bell MT": 12, Bembo: 12, "Berlin Sans FB": 14, "Berlin Sans FB Demi": 15, "Bernard MT Condensed": 12, "Blackadder ITC": 9, "Bodoni MT": 12, "Bodoni MT Black": 16, "Bodoni MT Condensed": 8, "Bodoni MT Poster Compressed": 8, "Book Antiqua": 12, "Bookman Old Style": 15, "Bookshelf Symbol 7": 18, "Bradley Hand ITC": 15, "Britannic Bold": 15, Broadway: 16, "Browallia New": 9, BrowalliaUPC: 9, "Brush Script MT": 12, Calibri: 12, "Calibri Light": 12, "Californian FB": 13, "Calisto MT": 12, Cambria: 13, "Cambria Math": 13, Candara: 13, Castellar: 17, Centaur: 12, Century: 13, "Century Gothic": 13, "Century Schoolbook": 13, Chiller: 11, "Colonna MT": 12, "Comic Sans MS": 15, Consolas: 13, Constantia: 13, "Cooper Black": 14, "Copperplate Gothic Bold": 17, "Copperplate Gothic Light": 17, Corbel: 13, "Cordia New": 9, CordiaUPC: 9, "Courier New": 14, "Curlz MT": 13, Dante: 11, DaunPenh: 8, David: 11, DilleniaUPC: 7, DokChampa: 13, Dotum: 13, DotumChe: 12, Dubai: 13, "Dubai Light": 13, "Dubai Medium": 13, Ebrima: 13, "Edwardian Script ITC": 11, Elephant: 18, "Engravers MT": 16, "Eras Bold ITC": 16, "Eras Demi ITC": 15, "Eras Light ITC": 13, "Eras Medium ITC": 14, EucrosiaUPC: 10, Euphemia: 14, "Expo M": 21, FangSong: 12, "Felix Titling": 14, "Footlight MT Light": 13, Forte: 13, "Franklin Gothic Book": 14, "Franklin Gothic Demi": 14, "Franklin Gothic Demi Cond": 12, "Franklin Gothic Heavy": 14, "Franklin Gothic Medium": 14, "Franklin Gothic Medium Cond": 12, FrankRuehl: 10, FreesiaUPC: 11, "Freestyle Script": 9, "French Script MT": 9, Gabriola: 10, Gadugi: 13, Garamond: 11, Gautami: 14, Georgia: 15, "Georgia Pro": 14, "Georgia Pro Black": 17, "Georgia Pro Cond": 13, "Georgia Pro Cond Black": 15, "Georgia Pro Cond Light": 12, "Georgia Pro Cond Semibold": 13, "Georgia Pro Light": 13, "Georgia Pro Semibold": 15, Gigi: 12, "Gill Sans MT Condensed": 9, "Gill Sans MT Ext Condensed Bold": 8, "Gill Sans Nova": 12, "Gill Sans Nova Cond": 8, "Gill Sans Nova Cond Lt": 7, "Gill Sans Nova Cond Ultra Bold": 14, "Gill Sans Nova Cond XBd": 13, "Gill Sans Nova Light": 12, "Gill Sans Nova Ultra Bold": 20, "Gill Sans Ultra Bold": 21, "Gill Sans Ultra Bold Condensed": 14, Gisha: 13, "Gloucester MT Extra Condensed": 9, "Goudy Old Style": 12, "Goudy Stout": 20, Grotesque: 12, "Grotesque Light": 12, Gulim: 13, GulimChe: 12, Gungsuh: 13, GungsuhChe: 12, "Hadassah Friedlaender": 14, Haettenschweiler: 11, "Harlow Solid Italic": 11, Harrington: 13, "Headline R": 17, HGGothicE: 12, HGGothicM: 12, HGGyoshotai: 12, HGKyokashotai: 12, HGMaruGothicMPRO: 18, HGMinchoB: 13, HGMinchoE: 13, HGPGothicE: 14, HGPGothicM: 15, HGPGyoshotai: 12, HGPKyokashotai: 12, HGPMinchoB: 12, HGPMinchoE: 13, HGPSoeiKakugothicUB: 16, HGPSoeiKakupoptai: 17, HGPSoeiPresenceEB: 14, HGSeikaishotaiPRO: 14, HGSGothicE: 13, HGSGothicM: 14, HGSGyoshotai: 11, HGSKyokashotai: 11, HGSMinchoB: 12, HGSMinchoE: 13, HGSoeiKakugothicUB: 13, HGSoeiKakupoptai: 13, HGSoeiPresenceEB: 13, HGSSoeiKakugothicUB: 15, HGSSoeiKakupoptai: 16, HGSSoeiPresenceEB: 13, "High Tower Text": 12, "HYGothic-Extra": 15, "HYGothic-Medium": 14, "HYGraphic-Medium": 14, "HYGungSo-Bold": 14, "HYHeadLine-Medium": 14, "HYMyeongJo-Extra": 16, "HYPMokGak-Bold": 17, "HYPost-Light": 16, "HYPost-Medium": 17, "HYShortSamul-Medium": 9, "HYSinMyeongJo-Medium": 15, Impact: 13, "Imprint MT Shadow": 12, "Informal Roman": 13, "Ink Free": 12, IrisUPC: 12, "Iskoola Pota": 12, JasmineUPC: 11, "Javanese Text": 14, Jokerman: 17, "Juice ITC": 8, KaiTi: 12, Kalinga: 13, Kartika: 14, "Khmer UI": 13, KodchiangUPC: 8, Kokila: 9, "Kristen ITC": 14, "Kunstler Script": 8, "Lao UI": 13, Latha: 12, Leelawadee: 13, "Leelawadee UI": 13, "Leelawadee UI Semilight": 13, "Levenim MT": 14, LilyUPC: 11, "Lucida Bright": 15, "Lucida Calligraphy": 17, "Lucida Console": 15, "Lucida Fax": 16, "Lucida Handwriting": 17, "Lucida Sans": 16, "Lucida Sans Typewriter": 14, "Lucida Sans Unicode": 16, "Magic R": 14, Magneto: 19, "Maiandra GD": 15, "Malgun Gothic": 14, "Malgun Gothic Semilight": 14, Mangal: 14, Marlett: 25, "Matura MT Script Capitals": 17, Meiryo: 16, "Meiryo UI": 16, "Microsoft GothicNeo": 13, "Microsoft Himalaya": 9, "Microsoft JhengHei": 14, "Microsoft JhengHei Light": 15, "Microsoft JhengHei UI": 14, "Microsoft JhengHei UI Light": 15, "Microsoft New Tai Lue": 14, "Microsoft PhagsPa": 14, "Microsoft Sans Serif": 14, "Microsoft Tai Le": 14, "Microsoft Uighur": 9, "Microsoft YaHei Light": 15, "Microsoft YaHei UI": 15, "Microsoft YaHei UI Light": 15, "Microsoft Yi Baiti": 13, MingLiU: 13, MingLiU_HKSCS: 13, "MingLiU_HKSCS-ExtB": 13, "MingLiU-ExtB": 13, Miriam: 12, "Miriam Fixed": 15, Mistral: 12, "Modern No. 20": 12, "MoeumT R": 14, "Mongolian Baiti": 13, "Monotype Corsiva": 12, MoolBoran: 9, "MS Gothic": 12, "MS Mincho": 13, "MS Outlook": 13, "MS PGothic": 13, "MS PMincho": 13, "MS Reference Sans Serif": 16, "MS Reference Specialty": 30, "MS UI Gothic": 13, "MT Extra": 25, "MV Boli": 18, "Myanmar Text": 14, Narkisim: 11, "Neue Haas Grotesk Text Pro": 13, "New Gulim": 15, "News Gothic MT": 16, "Niagara Engraved": 9, "Niagara Solid": 9, "Nirmala UI": 14, "Nirmala UI Semilight": 14, Nyala: 13, "OCR A Extended": 15, OCRB: 15, "Old English Text MT": 13, Onyx: 9, "Palace Script MT": 9, "Palatino Linotype": 12, Papyrus: 15, Parchment: 6, Perpetua: 11, "Perpetua Titling MT": 16, "Plantagenet Cherokee": 13, Playbill: 10, PMingLiU: 12, "PMingLiU-ExtB": 12, "Poor Richard": 14, Pristina: 13, "Pyunji R": 13, Raavi: 12, "Rage Italic": 13, Ravie: 24, Rockwell: 13, "Rockwell Condensed": 10, "Rockwell Extra Bold": 17, "Rockwell Light": 14, "Rockwell Nova": 13, "Rockwell Nova Cond": 13, "Rockwell Nova Cond Light": 13, "Rockwell Nova Extra Bold": 13, "Rockwell Nova Light": 13, Rod: 15, "Sakkal Majalla": 10, "Sanskrit Text": 15, "Script MT Bold": 13, "Segoe MDL2 Assets": 10, "Segoe Print": 18, "Segoe Script": 18, "Segoe UI": 13, "Segoe UI Black": 15, "Segoe UI Emoji": 13, "Segoe UI Historic": 13, "Segoe UI Light": 12, "Segoe UI Semibold": 14, "Segoe UI Semilight": 13, "Segoe UI Symbol": 13, Selawik: 12, "Selawik Light": 13, "Selawik Semibold": 14, "Shonar Bangla": 12, "Showcard Gothic": 14, Shruti: 14, "Simplified Arabic": 13, "Simplified Arabic Fixed": 14, "SimSun-ExtB": 12, "Sitka Banner": 12, "Sitka Display": 13, "Sitka Heading": 13, "Sitka Small": 16, "Sitka Subheading": 14, "Sitka Text": 15, "Snap ITC": 21, "Source Sans Pro": 12, "Source Sans Pro Black": 12, "Source Sans Pro ExtraLight": 11, "Source Sans Pro Light": 12, "Source Sans Pro SemiBold": 12, Stencil: 14, Sylfaen: 12, Symbol: 12, Tahoma: 13, "Tempus Sans ITC": 16, "TH SarabunPSK": 9, "Times New Roman": 12, "Traditional Arabic": 12, "Trebuchet MS": 13, Tunga: 13, "Tw Cen MT": 13, "Tw Cen MT Condensed": 9, "Tw Cen MT Condensed Extra Bold": 12, "UD Digi Kyokasho N-B": 12, "UD Digi Kyokasho NK-B": 12, "UD Digi Kyokasho NK-R": 12, "UD Digi Kyokasho NP-B": 17, "UD Digi Kyokasho NP-R": 12, "UD Digi Kyokasho N-R": 12, Univers: 12, "Univers Condensed": 12, "Univers Condensed Light": 11, "Univers Light": 12, "Urdu Typesetting": 12, Utsaah: 10, Vani: 15, Verdana: 15, "Verdana Pro": 15, "Verdana Pro Black": 12, "Verdana Pro Cond": 12, "Verdana Pro Cond Black": 12, "Verdana Pro Cond Light": 12, "Verdana Pro Cond SemiBold": 12, "Verdana Pro Light": 12, "Verdana Pro SemiBold": 12, Vijaya: 12, "Viner Hand ITC": 16, Vivaldi: 10, "Vladimir Script": 11, Vrinda: 14, Webdings: 24, "Wide Latin": 30, Wingdings: 32, "Wingdings 2": 27, "Wingdings 3": 21, "Yet R": 13, "Yu Gothic": 13, "Yu Gothic Light": 13, "Yu Gothic Medium": 13, "Yu Gothic UI": 13, "Yu Gothic UI Light": 13, "Yu Gothic UI Semibold": 14, "Yu Gothic UI Semilight": 13, "Yu Mincho": 13, "Yu Mincho Demibold": 13, "Yu Mincho Light": 12, "仿宋": 12, "华文中宋": 15, "华文仿宋": 11, "华文宋体": 11, "华文彩云": 14, "华文新魏": 14, "华文楷体": 11, "华文琥珀": 14, "华文细黑": 13, "华文行楷": 12, "华文隶书": 11, "宋体": 12, "幼圆": 12, "微软雅黑": 14, "微软雅黑 Light": 14, "新宋体": 12, "方正姚体": 12, "方正舒体": 13, "楷体": 12, "等线": 13, "等线 Light": 12, "隶书": 12, "黑体": 12, "游ゴシック": 13, "ＭＳ Ｐ明朝": 12, '"ＭＳ Ｐゴシック"': 12, "メイリオ": 15, "HGｺﾞｼｯｸE": 12, "HG明朝B": 12, "HGｺﾞｼｯｸM": 12 }, 20: { "Gill Sans MT": 14, Abadi: 16, "Abadi Extra Light": 15, "Agency FB": 11, Aharoni: 11, Aldhabi: 9, Algerian: 16, "Ami R": 11, "Angsana New": 9, AngsanaUPC: 9, Aparajita: 11, "Arabic Typesetting": 9, Arial: 15, "Arial Black": 18, "Arial Narrow": 12, "Arial Nova": 15, "Arial Nova Cond": 14, "Arial Nova Cond Light": 12, "Arial Nova Light": 15, "Arial Rounded MT Bold": 16, "Baskerville Old Face": 13, Batang: 16, BatangChe: 14, "Bauhaus 93": 15, "Bell MT": 14, Bembo: 13, "Berlin Sans FB": 16, "Berlin Sans FB Demi": 17, "Bernard MT Condensed": 13, "Blackadder ITC": 11, "Bodoni MT": 13, "Bodoni MT Black": 18, "Bodoni MT Condensed": 9, "Bodoni MT Poster Compressed": 8, "Book Antiqua": 14, "Bookman Old Style": 17, "Bookshelf Symbol 7": 20, "Bradley Hand ITC": 17, "Britannic Bold": 17, Broadway: 17, "Browallia New": 10, BrowalliaUPC: 10, "Brush Script MT": 14, Calibri: 14, "Calibri Light": 14, "Californian FB": 14, "Calisto MT": 14, Cambria: 15, "Cambria Math": 15, Candara: 15, Castellar: 19, Centaur: 13, Century: 15, "Century Gothic": 15, "Century Schoolbook": 15, Chiller: 13, "Colonna MT": 14, "Comic Sans MS": 16, Consolas: 15, Constantia: 15, "Cooper Black": 16, "Copperplate Gothic Bold": 19, "Copperplate Gothic Light": 19, Corbel: 14, "Cordia New": 10, CordiaUPC: 10, "Courier New": 16, "Curlz MT": 15, Dante: 12, DaunPenh: 9, David: 12, DilleniaUPC: 8, DokChampa: 15, Dotum: 16, DotumChe: 14, Dubai: 15, "Dubai Light": 15, "Dubai Medium": 15, Ebrima: 15, "Edwardian Script ITC": 13, Elephant: 20, "Engravers MT": 17, "Eras Bold ITC": 18, "Eras Demi ITC": 16, "Eras Light ITC": 14, "Eras Medium ITC": 15, EucrosiaUPC: 11, Euphemia: 16, "Expo M": 23, FangSong: 14, "Felix Titling": 16, "Footlight MT Light": 15, Forte: 14, "Franklin Gothic Book": 16, "Franklin Gothic Demi": 16, "Franklin Gothic Demi Cond": 14, "Franklin Gothic Heavy": 16, "Franklin Gothic Medium": 16, "Franklin Gothic Medium Cond": 14, FrankRuehl: 11, FreesiaUPC: 12, "Freestyle Script": 10, "French Script MT": 10, Gabriola: 11, Gadugi: 15, Garamond: 13, Gautami: 16, Georgia: 17, "Georgia Pro": 15, "Georgia Pro Black": 19, "Georgia Pro Cond": 14, "Georgia Pro Cond Black": 17, "Georgia Pro Cond Light": 14, "Georgia Pro Cond Semibold": 15, "Georgia Pro Light": 15, "Georgia Pro Semibold": 17, Gigi: 14, "Gill Sans MT Condensed": 10, "Gill Sans MT Ext Condensed Bold": 9, "Gill Sans Nova": 14, "Gill Sans Nova Cond": 9, "Gill Sans Nova Cond Lt": 8, "Gill Sans Nova Cond Ultra Bold": 16, "Gill Sans Nova Cond XBd": 14, "Gill Sans Nova Light": 14, "Gill Sans Nova Ultra Bold": 23, "Gill Sans Ultra Bold": 23, "Gill Sans Ultra Bold Condensed": 16, Gisha: 15, "Gloucester MT Extra Condensed": 10, "Goudy Old Style": 14, "Goudy Stout": 22, Grotesque: 13, "Grotesque Light": 13, Gulim: 16, GulimChe: 14, Gungsuh: 16, GungsuhChe: 14, "Hadassah Friedlaender": 15, Haettenschweiler: 12, "Harlow Solid Italic": 13, Harrington: 15, "Headline R": 19, HGGothicE: 14, HGGothicM: 14, HGGyoshotai: 14, HGKyokashotai: 14, HGMaruGothicMPRO: 20, HGMinchoB: 15, HGMinchoE: 15, HGPGothicE: 16, HGPGothicM: 17, HGPGyoshotai: 14, HGPKyokashotai: 14, HGPMinchoB: 14, HGPMinchoE: 15, HGPSoeiKakugothicUB: 18, HGPSoeiKakupoptai: 19, HGPSoeiPresenceEB: 16, HGSeikaishotaiPRO: 16, HGSGothicE: 15, HGSGothicM: 16, HGSGyoshotai: 13, HGSKyokashotai: 13, HGSMinchoB: 14, HGSMinchoE: 15, HGSoeiKakugothicUB: 15, HGSoeiKakupoptai: 15, HGSoeiPresenceEB: 15, HGSSoeiKakugothicUB: 17, HGSSoeiKakupoptai: 18, HGSSoeiPresenceEB: 15, "High Tower Text": 13, "HYGothic-Extra": 17, "HYGothic-Medium": 16, "HYGraphic-Medium": 16, "HYGungSo-Bold": 16, "HYHeadLine-Medium": 16, "HYMyeongJo-Extra": 18, "HYPMokGak-Bold": 19, "HYPost-Light": 18, "HYPost-Medium": 19, "HYShortSamul-Medium": 10, "HYSinMyeongJo-Medium": 17, Impact: 15, "Imprint MT Shadow": 14, "Informal Roman": 15, "Ink Free": 14, IrisUPC: 14, "Iskoola Pota": 14, JasmineUPC: 12, "Javanese Text": 16, Jokerman: 19, "Juice ITC": 10, KaiTi: 14, Kalinga: 15, Kartika: 16, "Khmer UI": 15, KodchiangUPC: 9, Kokila: 10, "Kristen ITC": 16, "Kunstler Script": 10, "Lao UI": 15, Latha: 14, Leelawadee: 15, "Leelawadee UI": 15, "Leelawadee UI Semilight": 15, "Levenim MT": 15, LilyUPC: 12, "Lucida Bright": 16, "Lucida Calligraphy": 19, "Lucida Console": 17, "Lucida Fax": 18, "Lucida Handwriting": 19, "Lucida Sans": 18, "Lucida Sans Typewriter": 16, "Lucida Sans Unicode": 18, "Magic R": 16, Magneto: 21, "Maiandra GD": 17, "Malgun Gothic": 16, "Malgun Gothic Semilight": 16, Mangal: 16, Marlett: 28, "Matura MT Script Capitals": 19, Meiryo: 18, "Meiryo UI": 18, "Microsoft GothicNeo": 15, "Microsoft Himalaya": 10, "Microsoft JhengHei": 16, "Microsoft JhengHei Light": 17, "Microsoft JhengHei UI": 16, "Microsoft JhengHei UI Light": 17, "Microsoft New Tai Lue": 16, "Microsoft PhagsPa": 16, "Microsoft Sans Serif": 16, "Microsoft Tai Le": 16, "Microsoft Uighur": 10, "Microsoft YaHei Light": 16, "Microsoft YaHei UI": 17, "Microsoft YaHei UI Light": 16, "Microsoft Yi Baiti": 15, MingLiU: 15, MingLiU_HKSCS: 15, "MingLiU_HKSCS-ExtB": 15, "MingLiU-ExtB": 15, Miriam: 14, "Miriam Fixed": 17, Mistral: 13, "Modern No. 20": 13, "MoeumT R": 16, "Mongolian Baiti": 15, "Monotype Corsiva": 13, MoolBoran: 10, "MS Gothic": 14, "MS Mincho": 15, "MS Outlook": 15, "MS PGothic": 15, "MS PMincho": 15, "MS Reference Sans Serif": 18, "MS Reference Specialty": 33, "MS UI Gothic": 15, "MT Extra": 29, "MV Boli": 20, "Myanmar Text": 16, Narkisim: 12, "Neue Haas Grotesk Text Pro": 15, "New Gulim": 17, "News Gothic MT": 18, "Niagara Engraved": 9, "Niagara Solid": 9, "Nirmala UI": 16, "Nirmala UI Semilight": 16, Nyala: 15, "OCR A Extended": 17, OCRB: 17, "Old English Text MT": 15, Onyx: 9, "Palace Script MT": 9, "Palatino Linotype": 14, Papyrus: 16, Parchment: 7, Perpetua: 12, "Perpetua Titling MT": 18, "Plantagenet Cherokee": 15, Playbill: 11, PMingLiU: 14, "PMingLiU-ExtB": 14, "Poor Richard": 16, Pristina: 14, "Pyunji R": 14, Raavi: 14, "Rage Italic": 15, Ravie: 27, Rockwell: 15, "Rockwell Condensed": 12, "Rockwell Extra Bold": 19, "Rockwell Light": 15, "Rockwell Nova": 15, "Rockwell Nova Cond": 15, "Rockwell Nova Cond Light": 15, "Rockwell Nova Extra Bold": 15, "Rockwell Nova Light": 15, Rod: 17, "Sakkal Majalla": 11, "Sanskrit Text": 17, "Script MT Bold": 14, "Segoe MDL2 Assets": 11, "Segoe Print": 20, "Segoe Script": 20, "Segoe UI": 15, "Segoe UI Black": 17, "Segoe UI Emoji": 15, "Segoe UI Historic": 15, "Segoe UI Light": 14, "Segoe UI Semibold": 15, "Segoe UI Semilight": 15, "Segoe UI Symbol": 15, Selawik: 14, "Selawik Light": 14, "Selawik Semibold": 15, "Shonar Bangla": 14, "Showcard Gothic": 16, Shruti: 16, "Simplified Arabic": 14, "Simplified Arabic Fixed": 16, "SimSun-ExtB": 14, "Sitka Banner": 14, "Sitka Display": 14, "Sitka Heading": 15, "Sitka Small": 18, "Sitka Subheading": 16, "Sitka Text": 17, "Snap ITC": 23, "Source Sans Pro": 13, "Source Sans Pro Black": 14, "Source Sans Pro ExtraLight": 12, "Source Sans Pro Light": 12, "Source Sans Pro SemiBold": 14, Stencil: 16, Sylfaen: 14, Symbol: 14, Tahoma: 15, "Tempus Sans ITC": 18, "TH SarabunPSK": 10, "Times New Roman": 14, "Traditional Arabic": 13, "Trebuchet MS": 14, Tunga: 14, "Tw Cen MT": 15, "Tw Cen MT Condensed": 10, "Tw Cen MT Condensed Extra Bold": 13, "UD Digi Kyokasho N-B": 14, "UD Digi Kyokasho NK-B": 14, "UD Digi Kyokasho NK-R": 14, "UD Digi Kyokasho NP-B": 19, "UD Digi Kyokasho NP-R": 14, "UD Digi Kyokasho N-R": 14, Univers: 14, "Univers Condensed": 14, "Univers Condensed Light": 12, "Univers Light": 14, "Urdu Typesetting": 14, Utsaah: 11, Vani: 17, Verdana: 17, "Verdana Pro": 17, "Verdana Pro Black": 14, "Verdana Pro Cond": 14, "Verdana Pro Cond Black": 14, "Verdana Pro Cond Light": 14, "Verdana Pro Cond SemiBold": 14, "Verdana Pro Light": 14, "Verdana Pro SemiBold": 14, Vijaya: 14, "Viner Hand ITC": 18, Vivaldi: 12, "Vladimir Script": 13, Vrinda: 16, Webdings: 27, "Wide Latin": 33, Wingdings: 36, "Wingdings 2": 31, "Wingdings 3": 24, "Yet R": 14, "Yu Gothic": 15, "Yu Gothic Light": 14, "Yu Gothic Medium": 15, "Yu Gothic UI": 15, "Yu Gothic UI Light": 14, "Yu Gothic UI Semibold": 16, "Yu Gothic UI Semilight": 15, "Yu Mincho": 15, "Yu Mincho Demibold": 14, "Yu Mincho Light": 14, "仿宋": 14, "华文中宋": 17, "华文仿宋": 13, "华文宋体": 13, "华文彩云": 15, "华文新魏": 16, "华文楷体": 13, "华文琥珀": 15, "华文细黑": 15, "华文行楷": 14, "华文隶书": 12, "宋体": 14, "幼圆": 14, "微软雅黑": 16, "微软雅黑 Light": 15, "新宋体": 14, "方正姚体": 14, "方正舒体": 15, "楷体": 14, "等线": 14, "等线 Light": 14, "隶书": 14, "黑体": 14, "游ゴシック": 15, "ＭＳ Ｐ明朝": 14, '"ＭＳ Ｐゴシック"': 14, "メイリオ": 17, "HGｺﾞｼｯｸE": 14, "HG明朝B": 14, "HGｺﾞｼｯｸM": 14 }, 22: { "Gill Sans MT": 15, Abadi: 18, "Abadi Extra Light": 16, "Agency FB": 11, Aharoni: 12, Aldhabi: 9, Algerian: 17, "Ami R": 12, "Angsana New": 10, AngsanaUPC: 10, Aparajita: 12, "Arabic Typesetting": 10, Arial: 16, "Arial Black": 19, "Arial Narrow": 13, "Arial Nova": 16, "Arial Nova Cond": 15, "Arial Nova Cond Light": 13, "Arial Nova Light": 16, "Arial Rounded MT Bold": 17, "Baskerville Old Face": 14, Batang: 17, BatangChe: 15, "Bauhaus 93": 16, "Bell MT": 15, Bembo: 14, "Berlin Sans FB": 17, "Berlin Sans FB Demi": 18, "Bernard MT Condensed": 14, "Blackadder ITC": 11, "Bodoni MT": 14, "Bodoni MT Black": 19, "Bodoni MT Condensed": 10, "Bodoni MT Poster Compressed": 9, "Book Antiqua": 15, "Bookman Old Style": 18, "Bookshelf Symbol 7": 21, "Bradley Hand ITC": 19, "Britannic Bold": 18, Broadway: 19, "Browallia New": 11, BrowalliaUPC: 11, "Brush Script MT": 15, Calibri: 15, "Calibri Light": 15, "Californian FB": 15, "Calisto MT": 15, Cambria: 16, "Cambria Math": 16, Candara: 16, Castellar: 21, Centaur: 14, Century: 16, "Century Gothic": 16, "Century Schoolbook": 16, Chiller: 14, "Colonna MT": 15, "Comic Sans MS": 18, Consolas: 16, Constantia: 16, "Cooper Black": 17, "Copperplate Gothic Bold": 21, "Copperplate Gothic Light": 21, Corbel: 15, "Cordia New": 11, CordiaUPC: 11, "Courier New": 17, "Curlz MT": 16, Dante: 13, DaunPenh: 10, David: 13, DilleniaUPC: 9, DokChampa: 16, Dotum: 17, DotumChe: 15, Dubai: 16, "Dubai Light": 16, "Dubai Medium": 16, Ebrima: 16, "Edwardian Script ITC": 14, Elephant: 22, "Engravers MT": 19, "Eras Bold ITC": 19, "Eras Demi ITC": 18, "Eras Light ITC": 16, "Eras Medium ITC": 17, EucrosiaUPC: 12, Euphemia: 17, "Expo M": 25, FangSong: 15, "Felix Titling": 17, "Footlight MT Light": 16, Forte: 15, "Franklin Gothic Book": 17, "Franklin Gothic Demi": 17, "Franklin Gothic Demi Cond": 15, "Franklin Gothic Heavy": 17, "Franklin Gothic Medium": 17, "Franklin Gothic Medium Cond": 15, FrankRuehl: 12, FreesiaUPC: 13, "Freestyle Script": 10, "French Script MT": 11, Gabriola: 12, Gadugi: 16, Garamond: 14, Gautami: 17, Georgia: 18, "Georgia Pro": 16, "Georgia Pro Black": 21, "Georgia Pro Cond": 15, "Georgia Pro Cond Black": 18, "Georgia Pro Cond Light": 15, "Georgia Pro Cond Semibold": 16, "Georgia Pro Light": 16, "Georgia Pro Semibold": 18, Gigi: 14, "Gill Sans MT Condensed": 11, "Gill Sans MT Ext Condensed Bold": 10, "Gill Sans Nova": 15, "Gill Sans Nova Cond": 10, "Gill Sans Nova Cond Lt": 9, "Gill Sans Nova Cond Ultra Bold": 17, "Gill Sans Nova Cond XBd": 15, "Gill Sans Nova Light": 15, "Gill Sans Nova Ultra Bold": 25, "Gill Sans Ultra Bold": 25, "Gill Sans Ultra Bold Condensed": 17, Gisha: 16, "Gloucester MT Extra Condensed": 11, "Goudy Old Style": 15, "Goudy Stout": 24, Grotesque: 14, "Grotesque Light": 14, Gulim: 17, GulimChe: 15, Gungsuh: 17, GungsuhChe: 15, "Hadassah Friedlaender": 17, Haettenschweiler: 13, "Harlow Solid Italic": 14, Harrington: 16, "Headline R": 21, HGGothicE: 15, HGGothicM: 15, HGGyoshotai: 15, HGKyokashotai: 15, HGMaruGothicMPRO: 22, HGMinchoB: 16, HGMinchoE: 16, HGPGothicE: 17, HGPGothicM: 18, HGPGyoshotai: 15, HGPKyokashotai: 14, HGPMinchoB: 15, HGPMinchoE: 16, HGPSoeiKakugothicUB: 19, HGPSoeiKakupoptai: 20, HGPSoeiPresenceEB: 17, HGSeikaishotaiPRO: 17, HGSGothicE: 16, HGSGothicM: 17, HGSGyoshotai: 14, HGSKyokashotai: 13, HGSMinchoB: 15, HGSMinchoE: 16, HGSoeiKakugothicUB: 16, HGSoeiKakupoptai: 16, HGSoeiPresenceEB: 16, HGSSoeiKakugothicUB: 18, HGSSoeiKakupoptai: 19, HGSSoeiPresenceEB: 16, "High Tower Text": 14, "HYGothic-Extra": 18, "HYGothic-Medium": 17, "HYGraphic-Medium": 17, "HYGungSo-Bold": 17, "HYHeadLine-Medium": 17, "HYMyeongJo-Extra": 19, "HYPMokGak-Bold": 21, "HYPost-Light": 19, "HYPost-Medium": 21, "HYShortSamul-Medium": 11, "HYSinMyeongJo-Medium": 18, Impact: 16, "Imprint MT Shadow": 15, "Informal Roman": 16, "Ink Free": 15, IrisUPC: 15, "Iskoola Pota": 15, JasmineUPC: 13, "Javanese Text": 17, Jokerman: 21, "Juice ITC": 11, KaiTi: 15, Kalinga: 16, Kartika: 17, "Khmer UI": 16, KodchiangUPC: 10, Kokila: 11, "Kristen ITC": 17, "Kunstler Script": 10, "Lao UI": 16, Latha: 15, Leelawadee: 16, "Leelawadee UI": 16, "Leelawadee UI Semilight": 16, "Levenim MT": 17, LilyUPC: 13, "Lucida Bright": 18, "Lucida Calligraphy": 20, "Lucida Console": 18, "Lucida Fax": 19, "Lucida Handwriting": 21, "Lucida Sans": 19, "Lucida Sans Typewriter": 17, "Lucida Sans Unicode": 19, "Magic R": 17, Magneto: 22, "Maiandra GD": 18, "Malgun Gothic": 17, "Malgun Gothic Semilight": 17, Mangal: 17, Marlett: 30, "Matura MT Script Capitals": 20, Meiryo: 20, "Meiryo UI": 20, "Microsoft GothicNeo": 16, "Microsoft Himalaya": 11, "Microsoft JhengHei": 17, "Microsoft JhengHei Light": 18, "Microsoft JhengHei UI": 17, "Microsoft JhengHei UI Light": 18, "Microsoft New Tai Lue": 17, "Microsoft PhagsPa": 17, "Microsoft Sans Serif": 17, "Microsoft Tai Le": 17, "Microsoft Uighur": 11, "Microsoft YaHei Light": 18, "Microsoft YaHei UI": 18, "Microsoft YaHei UI Light": 18, "Microsoft Yi Baiti": 16, MingLiU: 16, MingLiU_HKSCS: 16, "MingLiU_HKSCS-ExtB": 16, "MingLiU-ExtB": 16, Miriam: 15, "Miriam Fixed": 18, Mistral: 14, "Modern No. 20": 14, "MoeumT R": 17, "Mongolian Baiti": 16, "Monotype Corsiva": 14, MoolBoran: 11, "MS Gothic": 15, "MS Mincho": 16, "MS Outlook": 16, "MS PGothic": 16, "MS PMincho": 16, "MS Reference Sans Serif": 19, "MS Reference Specialty": 36, "MS UI Gothic": 16, "MT Extra": 31, "MV Boli": 21, "Myanmar Text": 17, Narkisim: 13, "Neue Haas Grotesk Text Pro": 16, "New Gulim": 18, "News Gothic MT": 19, "Niagara Engraved": 10, "Niagara Solid": 10, "Nirmala UI": 17, "Nirmala UI Semilight": 17, Nyala: 16, "OCR A Extended": 19, OCRB: 18, "Old English Text MT": 16, Onyx: 10, "Palace Script MT": 10, "Palatino Linotype": 15, Papyrus: 18, Parchment: 7, Perpetua: 13, "Perpetua Titling MT": 20, "Plantagenet Cherokee": 16, Playbill: 11, PMingLiU: 15, "PMingLiU-ExtB": 15, "Poor Richard": 17, Pristina: 15, "Pyunji R": 15, Raavi: 15, "Rage Italic": 16, Ravie: 29, Rockwell: 16, "Rockwell Condensed": 12, "Rockwell Extra Bold": 20, "Rockwell Light": 16, "Rockwell Nova": 16, "Rockwell Nova Cond": 16, "Rockwell Nova Cond Light": 16, "Rockwell Nova Extra Bold": 16, "Rockwell Nova Light": 16, Rod: 18, "Sakkal Majalla": 12, "Sanskrit Text": 18, "Script MT Bold": 15, "Segoe MDL2 Assets": 12, "Segoe Print": 21, "Segoe Script": 21, "Segoe UI": 16, "Segoe UI Black": 18, "Segoe UI Emoji": 16, "Segoe UI Historic": 16, "Segoe UI Light": 15, "Segoe UI Semibold": 17, "Segoe UI Semilight": 16, "Segoe UI Symbol": 16, Selawik: 15, "Selawik Light": 15, "Selawik Semibold": 16, "Shonar Bangla": 15, "Showcard Gothic": 17, Shruti: 17, "Simplified Arabic": 15, "Simplified Arabic Fixed": 17, "SimSun-ExtB": 15, "Sitka Banner": 15, "Sitka Display": 15, "Sitka Heading": 16, "Sitka Small": 20, "Sitka Subheading": 17, "Sitka Text": 18, "Snap ITC": 25, "Source Sans Pro": 14, "Source Sans Pro Black": 15, "Source Sans Pro ExtraLight": 13, "Source Sans Pro Light": 13, "Source Sans Pro SemiBold": 14, Stencil: 17, Sylfaen: 15, Symbol: 15, Tahoma: 16, "Tempus Sans ITC": 19, "TH SarabunPSK": 11, "Times New Roman": 15, "Traditional Arabic": 14, "Trebuchet MS": 15, Tunga: 15, "Tw Cen MT": 16, "Tw Cen MT Condensed": 11, "Tw Cen MT Condensed Extra Bold": 14, "UD Digi Kyokasho N-B": 15, "UD Digi Kyokasho NK-B": 15, "UD Digi Kyokasho NK-R": 15, "UD Digi Kyokasho NP-B": 21, "UD Digi Kyokasho NP-R": 15, "UD Digi Kyokasho N-R": 15, Univers: 15, "Univers Condensed": 15, "Univers Condensed Light": 13, "Univers Light": 15, "Urdu Typesetting": 15, Utsaah: 12, Vani: 18, Verdana: 18, "Verdana Pro": 18, "Verdana Pro Black": 15, "Verdana Pro Cond": 15, "Verdana Pro Cond Black": 15, "Verdana Pro Cond Light": 15, "Verdana Pro Cond SemiBold": 15, "Verdana Pro Light": 15, "Verdana Pro SemiBold": 15, Vijaya: 12, "Viner Hand ITC": 20, Vivaldi: 12, "Vladimir Script": 13, Vrinda: 17, Webdings: 29, "Wide Latin": 36, Wingdings: 39, "Wingdings 2": 33, "Wingdings 3": 26, "Yet R": 16, "Yu Gothic": 16, "Yu Gothic Light": 16, "Yu Gothic Medium": 16, "Yu Gothic UI": 16, "Yu Gothic UI Light": 15, "Yu Gothic UI Semibold": 17, "Yu Gothic UI Semilight": 16, "Yu Mincho": 16, "Yu Mincho Demibold": 15, "Yu Mincho Light": 15, "仿宋": 15, "华文中宋": 18, "华文仿宋": 14, "华文宋体": 14, "华文彩云": 16, "华文新魏": 17, "华文楷体": 14, "华文琥珀": 16, "华文细黑": 16, "华文行楷": 15, "华文隶书": 13, "宋体": 15, "幼圆": 15, "微软雅黑": 17, "微软雅黑 Light": 17, "新宋体": 15, "方正姚体": 15, "方正舒体": 16, "楷体": 15, "等线": 15, "等线 Light": 15, "隶书": 15, "黑体": 15, "游ゴシック": 16, "ＭＳ Ｐ明朝": 15, '"ＭＳ Ｐゴシック"': 15, "メイリオ": 18, "HGｺﾞｼｯｸE": 15, "HG明朝B": 15, "HGｺﾞｼｯｸM": 15 }, 24: { "Gill Sans MT": 16, Abadi: 19, "Abadi Extra Light": 18, "Agency FB": 14, Aharoni: 13, Aldhabi: 10, Algerian: 19, "Ami R": 13, "Angsana New": 11, AngsanaUPC: 11, Aparajita: 13, "Arabic Typesetting": 11, Arial: 18, "Arial Black": 21, "Arial Narrow": 15, "Arial Nova": 18, "Arial Nova Cond": 16, "Arial Nova Cond Light": 14, "Arial Nova Light": 18, "Arial Rounded MT Bold": 19, "Baskerville Old Face": 16, Batang: 19, BatangChe: 16, "Bauhaus 93": 18, "Bell MT": 16, Bembo: 16, "Berlin Sans FB": 19, "Berlin Sans FB Demi": 20, "Bernard MT Condensed": 16, "Blackadder ITC": 13, "Bodoni MT": 16, "Bodoni MT Black": 21, "Bodoni MT Condensed": 11, "Bodoni MT Poster Compressed": 9, "Book Antiqua": 16, "Bookman Old Style": 20, "Bookshelf Symbol 7": 24, "Bradley Hand ITC": 21, "Britannic Bold": 20, Broadway: 21, "Browallia New": 12, BrowalliaUPC: 12, "Brush Script MT": 16, Calibri: 16, "Calibri Light": 16, "Californian FB": 17, "Calisto MT": 16, Cambria: 18, "Cambria Math": 18, Candara: 18, Castellar: 23, Centaur: 16, Century: 18, "Century Gothic": 18, "Century Schoolbook": 18, Chiller: 15, "Colonna MT": 16, "Comic Sans MS": 20, Consolas: 18, Constantia: 17, "Cooper Black": 19, "Copperplate Gothic Bold": 23, "Copperplate Gothic Light": 23, Corbel: 17, "Cordia New": 12, CordiaUPC: 12, "Courier New": 19, "Curlz MT": 17, Dante: 14, DaunPenh: 11, David: 14, DilleniaUPC: 10, DokChampa: 18, Dotum: 19, DotumChe: 16, Dubai: 17, "Dubai Light": 17, "Dubai Medium": 17, Ebrima: 17, "Edwardian Script ITC": 15, Elephant: 24, "Engravers MT": 21, "Eras Bold ITC": 21, "Eras Demi ITC": 20, "Eras Light ITC": 17, "Eras Medium ITC": 18, EucrosiaUPC: 13, Euphemia: 19, "Expo M": 28, FangSong: 16, "Felix Titling": 19, "Footlight MT Light": 18, Forte: 17, "Franklin Gothic Book": 19, "Franklin Gothic Demi": 19, "Franklin Gothic Demi Cond": 16, "Franklin Gothic Heavy": 19, "Franklin Gothic Medium": 19, "Franklin Gothic Medium Cond": 16, FrankRuehl: 13, FreesiaUPC: 14, "Freestyle Script": 12, "French Script MT": 12, Gabriola: 13, Gadugi: 17, Garamond: 15, Gautami: 19, Georgia: 20, "Georgia Pro": 18, "Georgia Pro Black": 23, "Georgia Pro Cond": 17, "Georgia Pro Cond Black": 20, "Georgia Pro Cond Light": 16, "Georgia Pro Cond Semibold": 18, "Georgia Pro Light": 18, "Georgia Pro Semibold": 20, Gigi: 17, "Gill Sans MT Condensed": 12, "Gill Sans MT Ext Condensed Bold": 11, "Gill Sans Nova": 16, "Gill Sans Nova Cond": 11, "Gill Sans Nova Cond Lt": 10, "Gill Sans Nova Cond Ultra Bold": 19, "Gill Sans Nova Cond XBd": 17, "Gill Sans Nova Light": 16, "Gill Sans Nova Ultra Bold": 27, "Gill Sans Ultra Bold": 27, "Gill Sans Ultra Bold Condensed": 19, Gisha: 17, "Gloucester MT Extra Condensed": 12, "Goudy Old Style": 16, "Goudy Stout": 26, Grotesque: 15, "Grotesque Light": 15, Gulim: 18, GulimChe: 16, Gungsuh: 19, GungsuhChe: 16, "Hadassah Friedlaender": 18, Haettenschweiler: 14, "Harlow Solid Italic": 15, Harrington: 18, "Headline R": 23, HGGothicE: 16, HGGothicM: 16, HGGyoshotai: 16, HGKyokashotai: 16, HGMaruGothicMPRO: 24, HGMinchoB: 17, HGMinchoE: 17, HGPGothicE: 18, HGPGothicM: 20, HGPGyoshotai: 16, HGPKyokashotai: 16, HGPMinchoB: 16, HGPMinchoE: 18, HGPSoeiKakugothicUB: 21, HGPSoeiKakupoptai: 22, HGPSoeiPresenceEB: 19, HGSeikaishotaiPRO: 19, HGSGothicE: 17, HGSGothicM: 19, HGSGyoshotai: 15, HGSKyokashotai: 15, HGSMinchoB: 16, HGSMinchoE: 18, HGSoeiKakugothicUB: 17, HGSoeiKakupoptai: 17, HGSoeiPresenceEB: 17, HGSSoeiKakugothicUB: 20, HGSSoeiKakupoptai: 21, HGSSoeiPresenceEB: 18, "High Tower Text": 15, "HYGothic-Extra": 20, "HYGothic-Medium": 19, "HYGraphic-Medium": 19, "HYGungSo-Bold": 19, "HYHeadLine-Medium": 19, "HYMyeongJo-Extra": 21, "HYPMokGak-Bold": 23, "HYPost-Light": 21, "HYPost-Medium": 23, "HYShortSamul-Medium": 12, "HYSinMyeongJo-Medium": 20, Impact: 17, "Imprint MT Shadow": 16, "Informal Roman": 17, "Ink Free": 16, IrisUPC: 16, "Iskoola Pota": 16, JasmineUPC: 15, "Javanese Text": 19, Jokerman: 23, "Juice ITC": 11, KaiTi: 16, Kalinga: 18, Kartika: 18, "Khmer UI": 17, KodchiangUPC: 11, Kokila: 12, "Kristen ITC": 19, "Kunstler Script": 11, "Lao UI": 17, Latha: 16, Leelawadee: 17, "Leelawadee UI": 17, "Leelawadee UI Semilight": 18, "Levenim MT": 18, LilyUPC: 14, "Lucida Bright": 19, "Lucida Calligraphy": 22, "Lucida Console": 20, "Lucida Fax": 21, "Lucida Handwriting": 23, "Lucida Sans": 21, "Lucida Sans Typewriter": 19, "Lucida Sans Unicode": 21, "Magic R": 19, Magneto: 25, "Maiandra GD": 20, "Malgun Gothic": 19, "Malgun Gothic Semilight": 19, Mangal: 18, Marlett: 33, "Matura MT Script Capitals": 22, Meiryo: 22, "Meiryo UI": 22, "Microsoft GothicNeo": 17, "Microsoft Himalaya": 12, "Microsoft JhengHei": 19, "Microsoft JhengHei Light": 19, "Microsoft JhengHei UI": 19, "Microsoft JhengHei UI Light": 19, "Microsoft New Tai Lue": 18, "Microsoft PhagsPa": 18, "Microsoft Sans Serif": 19, "Microsoft Tai Le": 18, "Microsoft Uighur": 12, "Microsoft YaHei Light": 19, "Microsoft YaHei UI": 20, "Microsoft YaHei UI Light": 19, "Microsoft Yi Baiti": 17, MingLiU: 17, MingLiU_HKSCS: 17, "MingLiU_HKSCS-ExtB": 17, "MingLiU-ExtB": 17, Miriam: 16, "Miriam Fixed": 20, Mistral: 15, "Modern No. 20": 16, "MoeumT R": 19, "Mongolian Baiti": 17, "Monotype Corsiva": 15, MoolBoran: 12, "MS Gothic": 16, "MS Mincho": 17, "MS Outlook": 17, "MS PGothic": 17, "MS PMincho": 17, "MS Reference Sans Serif": 21, "MS Reference Specialty": 39, "MS UI Gothic": 17, "MT Extra": 34, "MV Boli": 23, "Myanmar Text": 18, Narkisim: 14, "Neue Haas Grotesk Text Pro": 17, "New Gulim": 19, "News Gothic MT": 21, "Niagara Engraved": 11, "Niagara Solid": 11, "Nirmala UI": 18, "Nirmala UI Semilight": 19, Nyala: 17, "OCR A Extended": 20, OCRB: 20, "Old English Text MT": 17, Onyx: 10, "Palace Script MT": 11, "Palatino Linotype": 16, Papyrus: 20, Parchment: 8, Perpetua: 15, "Perpetua Titling MT": 22, "Plantagenet Cherokee": 18, Playbill: 12, PMingLiU: 16, "PMingLiU-ExtB": 16, "Poor Richard": 19, Pristina: 16, "Pyunji R": 17, Raavi: 16, "Rage Italic": 18, Ravie: 31, Rockwell: 17, "Rockwell Condensed": 14, "Rockwell Extra Bold": 22, "Rockwell Light": 18, "Rockwell Nova": 17, "Rockwell Nova Cond": 17, "Rockwell Nova Cond Light": 17, "Rockwell Nova Extra Bold": 17, "Rockwell Nova Light": 17, Rod: 20, "Sakkal Majalla": 13, "Sanskrit Text": 19, "Script MT Bold": 17, "Segoe MDL2 Assets": 13, "Segoe Print": 23, "Segoe Script": 23, "Segoe UI": 17, "Segoe UI Black": 20, "Segoe UI Emoji": 17, "Segoe UI Historic": 17, "Segoe UI Light": 16, "Segoe UI Semibold": 18, "Segoe UI Semilight": 17, "Segoe UI Symbol": 17, Selawik: 17, "Selawik Light": 17, "Selawik Semibold": 18, "Shonar Bangla": 13, "Showcard Gothic": 19, Shruti: 19, "Simplified Arabic": 17, "Simplified Arabic Fixed": 19, "SimSun-ExtB": 16, "Sitka Banner": 16, "Sitka Display": 17, "Sitka Heading": 18, "Sitka Small": 22, "Sitka Subheading": 19, "Sitka Text": 20, "Snap ITC": 28, "Source Sans Pro": 15, "Source Sans Pro Black": 17, "Source Sans Pro ExtraLight": 15, "Source Sans Pro Light": 15, "Source Sans Pro SemiBold": 16, Stencil: 18, Sylfaen: 16, Symbol: 16, Tahoma: 17, "Tempus Sans ITC": 21, "TH SarabunPSK": 12, "Times New Roman": 16, "Traditional Arabic": 16, "Trebuchet MS": 17, Tunga: 17, "Tw Cen MT": 18, "Tw Cen MT Condensed": 12, "Tw Cen MT Condensed Extra Bold": 16, "UD Digi Kyokasho N-B": 16, "UD Digi Kyokasho NK-B": 16, "UD Digi Kyokasho NK-R": 16, "UD Digi Kyokasho NP-B": 23, "UD Digi Kyokasho NP-R": 16, "UD Digi Kyokasho N-R": 16, Univers: 16, "Univers Condensed": 16, "Univers Condensed Light": 14, "Univers Light": 16, "Urdu Typesetting": 16, Utsaah: 13, Vani: 20, Verdana: 20, "Verdana Pro": 20, "Verdana Pro Black": 16, "Verdana Pro Cond": 16, "Verdana Pro Cond Black": 16, "Verdana Pro Cond Light": 16, "Verdana Pro Cond SemiBold": 16, "Verdana Pro Light": 16, "Verdana Pro SemiBold": 16, Vijaya: 13, "Viner Hand ITC": 22, Vivaldi: 14, "Vladimir Script": 15, Vrinda: 18, Webdings: 32, "Wide Latin": 40, Wingdings: 43, "Wingdings 2": 36, "Wingdings 3": 29, "Yet R": 17, "Yu Gothic": 18, "Yu Gothic Light": 17, "Yu Gothic Medium": 18, "Yu Gothic UI": 17, "Yu Gothic UI Light": 17, "Yu Gothic UI Semibold": 18, "Yu Gothic UI Semilight": 18, "Yu Mincho": 17, "Yu Mincho Demibold": 17, "Yu Mincho Light": 16, "仿宋": 16, "华文中宋": 20, "华文仿宋": 15, "华文宋体": 15, "华文彩云": 18, "华文新魏": 19, "华文楷体": 15, "华文琥珀": 18, "华文细黑": 18, "华文行楷": 16, "华文隶书": 14, "宋体": 16, "幼圆": 16, "微软雅黑": 19, "微软雅黑 Light": 18, "新宋体": 16, "方正姚体": 16, "方正舒体": 18, "楷体": 16, "等线": 17, "等线 Light": 16, "隶书": 16, "黑体": 16, "游ゴシック": 18, "ＭＳ Ｐ明朝": 16, '"ＭＳ Ｐゴシック"': 16, "メイリオ": 20, "HGｺﾞｼｯｸE": 16, "HG明朝B": 16, "HGｺﾞｼｯｸM": 16 } }, n2.unknownFontMaxDigitWidthMap = {}, Bt = (function() {
          function t3() {
          }
          return t3.pixelToPoint = function(t4) {
            return 72 * t4 / 96;
          }, t3.pointToPixel = function(t4, n3) {
            return void 0 === n3 && (n3 = 2), Ce(96 * t4 / 72, n3);
          }, t3.setMaxDigitWidth = function(e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = 0;
            try {
              if ((i3 = zt("span")).style.font = e3, r2 = i3.style.fontSize, o2 = void 0, -1 !== r2.indexOf("px") ? o2 = F(t3.pixelToPoint(parseFloat(r2))) : -1 !== r2.indexOf("pt") && (o2 = F(parseFloat(r2))), !isNaN(o2) && o2 || (o2 = -1 !== e3.indexOf("pt") ? Math.round(parseFloat(e3.match(/(\d|\.)+/) + "")) : F(t3.pixelToPoint(parseFloat(e3.match(/(\d|\.)+/) + "")))), (a2 = i3.style.fontFamily) || e3.split(K).forEach((function(t4) {
                "normal" !== t4 && "italic" !== t4 && "bold" !== t4 && -1 === t4.indexOf("px") && -1 === t4.indexOf("pt") && isNaN(+t4) && (a2 = t4);
              })), !a2 || '"' !== a2[0] && "'" !== a2[0] || (a2 = a2.slice(1, a2.length - 1)), n2.unknownFontMaxDigitWidthMap[o2] && n2.unknownFontMaxDigitWidthMap[o2][a2] ? l2 = n2.unknownFontMaxDigitWidthMap[o2][a2] : Ft[o2] && Ft[o2][a2] && (l2 = Ft[o2][a2]), l2 > 0) return void (t3.maxDigitWidth = F(l2));
            } catch (t4) {
            }
            if (u2 = "0123456789", s2 = 0, c2 = Fn()) for (c2.font = e3, f2 = 0; f2 < u2.length; f2++) (s2 = c2.measureText(u2.charAt(f2)).width) > l2 && (l2 = s2);
            return l2 > 0 && (t3.maxDigitWidth = F(l2)), t3.maxDigitWidth;
          }, t3.defaultColumnWidthToPixel = function(n3) {
            var e3 = 2 * Math.ceil(t3.maxDigitWidth / 4) + 1, i3 = t3.columnWidthToPixel(n3) + e3;
            return 8 * Math.ceil(i3 / 8);
          }, t3.columnWidthToPixel = function(n3) {
            return 0 === n3 ? 0 : Math.floor(Math.floor(256 * n3) / 256 * t3.maxDigitWidth + 0.5);
          }, t3.pixelToColumnWidth = function(n3) {
            var e3, i3;
            return 0 === n3 ? 0 : (e3 = t3.maxDigitWidth, i3 = Math.floor((n3 - 5) / e3 * 100 + 0.5) / 100, Math.floor((i3 * e3 + 5) / e3 * 256) / 256);
          }, t3.maxDigitWidth = 7, t3;
        })(), n2.SJSColumnWidthHelper = Bt, Pt = (function() {
          function t3(t4, n3) {
            this.numberFormatId = t4, this.numberFormatCode = n3;
          }
          return t3.prototype.equals = function(t4) {
            var n3 = this;
            return n3 === t4 || !!t4 && (n3.numberFormatId === t4.numberFormatId && n3.numberFormatCode === t4.numberFormatCode);
          }, t3.prototype.compose = function(t4) {
            var n3 = this;
            n3.numberFormatId === D && (n3.numberFormatId = t4.numberFormatId), n3.numberFormatCode === D && (n3.numberFormatCode = t4.numberFormatCode);
          }, t3.prototype.clone = function() {
            var n3 = this;
            return new t3(n3.numberFormatId, n3.numberFormatCode);
          }, t3;
        })(), n2.ExcelNumerFormat = Pt, n2.AL = Te, n2.resetFillStyle = xe, n2.qTe = Ae, n2.rangeToFormula = Ie, n2.formulaToExpression = ke, n2.evaluateExpressionAsync = Ne, n2.evaluateFormulaAsync = je, n2.RF = De, Ut = (function() {
          function t3() {
          }
          return t3.isBase64ImageStr = function(t4) {
            if ("string" != typeof t4 || "data:image/" !== t4.slice(0, 11)) return false;
            var n3 = t4.indexOf(",");
            return -1 !== n3 && ";base64" === t4.slice(n3 - 7, n3);
          }, t3.isSVGBase64ImageStr = function(n3) {
            return "string" == typeof n3 && 0 === n3.indexOf(t3.SVG_IMAGE_DATA_URL_PREFIX);
          }, t3.isVectorBase64ImageStr = function(n3) {
            return t3.isSVGBase64ImageStr(n3);
          }, t3.loadImageElement = function(t4, n3, e3) {
            var i3 = new c.Wh((function() {
              if (i3.qh(t4)) {
                var r2 = i3.getImage(t4);
                r2 ? n3(r2) : e3 && e3();
              } else e3 && e3();
              i3.L0(), i3 = D;
            }));
            i3.addImage(t4, "anonymous");
          }, t3.loadBase64ImageByUrl = function(n3, e3, i3) {
            t3.loadImageElement(n3, (function(t4) {
              var n4, r2 = document.createElement("canvas");
              r2.width = t4.naturalWidth, r2.height = t4.naturalHeight, r2.getContext("2d").drawImage(t4, 0, 0);
              try {
                n4 = r2.toDataURL(), e3(n4);
              } catch (t5) {
                i3 && i3();
              }
            }), i3);
          }, t3.BASE64_IMAGE_REGULAR = /^data:image\/(?:png|jpe?g|gif|bmp|webp|svg\+xml|tiff);base64,/, t3.SVG_IMAGE_DATA_URL_PREFIX = "data:image/svg+xml;base64,", t3;
        })(), n2.WAe = Ut, n2.handleRestoredTableResizedArgs = _e, n2.ukr = Oe, n2.akr = Ee;
      }, "./dist/core/util/crypto.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.qKr || (g = function(t3, n3) {
          return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, g(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          g(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), g;
        for (Object.defineProperty(n2, "__esModule", { value: true }), n2.Wle = n2.Qle = n2.Qoe = void 0, e2 = "input is invalid type", i2 = "finalize already called", r = "0123456789abcdef".split(""), o = [], a = [24, 16, 8, 0], u = [-2147483648, 8388608, 32768, 128], s = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], c = (function() {
          function t3(t4, n3) {
            this.bits = t4, this.init(n3);
          }
          return t3.prototype.init = function(t4) {
            t4 ? (o[0] = o[1] = o[2] = o[3] = o[4] = o[5] = o[6] = o[7] = o[8] = o[9] = o[10] = o[11] = o[12] = o[13] = o[14] = o[15] = o[16] = o[17] = o[18] = o[19] = o[20] = o[21] = o[22] = o[23] = o[24] = o[25] = o[26] = o[27] = o[28] = o[29] = o[30] = o[31] = o[32] = 0, this.blocks = o) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
            var n3 = this.bits;
            384 === n3 ? (this.h0h = 3418070365, this.h0l = 3238371032, this.h1h = 1654270250, this.h1l = 914150663, this.h2h = 2438529370, this.h2l = 812702999, this.h3h = 355462360, this.h3l = 4144912697, this.h4h = 1731405415, this.h4l = 4290775857, this.h5h = 2394180231, this.h5l = 1750603025, this.h6h = 3675008525, this.h6l = 1694076839, this.h7h = 1203062813, this.h7l = 3204075428) : 256 === n3 ? (this.h0h = 573645204, this.h0l = 4230739756, this.h1h = 2673172387, this.h1l = 3360449730, this.h2h = 596883563, this.h2l = 1867755857, this.h3h = 2520282905, this.h3l = 1497426621, this.h4h = 2519219938, this.h4l = 2827943907, this.h5h = 3193839141, this.h5l = 1401305490, this.h6h = 721525244, this.h6l = 746961066, this.h7h = 246885852, this.h7l = 2177182882) : 224 === n3 ? (this.h0h = 2352822216, this.h0l = 424955298, this.h1h = 1944164710, this.h1l = 2312950998, this.h2h = 502970286, this.h2l = 855612546, this.h3h = 1738396948, this.h3l = 1479516111, this.h4h = 258812777, this.h4l = 2077511080, this.h5h = 2011393907, this.h5l = 79989058, this.h6h = 1067287976, this.h6l = 1780299464, this.h7h = 286451373, this.h7l = 2446758561) : (this.h0h = 1779033703, this.h0l = 4089235720, this.h1h = 3144134277, this.h1l = 2227873595, this.h2h = 1013904242, this.h2l = 4271175723, this.h3h = 2773480762, this.h3l = 1595750129, this.h4h = 1359893119, this.h4l = 2917565137, this.h5h = 2600822924, this.h5l = 725511199, this.h6h = 528734635, this.h6l = 4215389547, this.h7h = 1541459225, this.h7l = 327033209), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = false;
          }, t3.prototype.update = function(t4) {
            var n3, r2, o2, u2, s2, c2, f2;
            if (this.finalized) throw new Error(i2);
            if ("string" !== (r2 = typeof t4)) {
              if ("object" !== r2) throw new Error(e2);
              if (null === t4) throw new Error(e2);
              if (!Array.isArray(t4) && !ArrayBuffer.isView(t4)) throw new Error(e2);
              n3 = true;
            }
            for (u2 = 0, c2 = t4.length, f2 = this.blocks; u2 < c2; ) {
              if (this.hashed && (this.hashed = false, f2[0] = this.block, f2[1] = f2[2] = f2[3] = f2[4] = f2[5] = f2[6] = f2[7] = f2[8] = f2[9] = f2[10] = f2[11] = f2[12] = f2[13] = f2[14] = f2[15] = f2[16] = f2[17] = f2[18] = f2[19] = f2[20] = f2[21] = f2[22] = f2[23] = f2[24] = f2[25] = f2[26] = f2[27] = f2[28] = f2[29] = f2[30] = f2[31] = f2[32] = 0), n3) for (s2 = this.start; u2 < c2 && s2 < 128; ++u2) f2[s2 >> 2] |= t4[u2] << a[3 & s2++];
              else for (s2 = this.start; u2 < c2 && s2 < 128; ++u2) (o2 = t4.charCodeAt(u2)) < 128 ? f2[s2 >> 2] |= o2 << a[3 & s2++] : o2 < 2048 ? (f2[s2 >> 2] |= (192 | o2 >> 6) << a[3 & s2++], f2[s2 >> 2] |= (128 | 63 & o2) << a[3 & s2++]) : o2 < 55296 || o2 >= 57344 ? (f2[s2 >> 2] |= (224 | o2 >> 12) << a[3 & s2++], f2[s2 >> 2] |= (128 | o2 >> 6 & 63) << a[3 & s2++], f2[s2 >> 2] |= (128 | 63 & o2) << a[3 & s2++]) : (o2 = 65536 + ((1023 & o2) << 10 | 1023 & t4.charCodeAt(++u2)), f2[s2 >> 2] |= (240 | o2 >> 18) << a[3 & s2++], f2[s2 >> 2] |= (128 | o2 >> 12 & 63) << a[3 & s2++], f2[s2 >> 2] |= (128 | o2 >> 6 & 63) << a[3 & s2++], f2[s2 >> 2] |= (128 | 63 & o2) << a[3 & s2++]);
              this.lastByteIndex = s2, this.bytes += s2 - this.start, s2 >= 128 ? (this.block = f2[32], this.start = s2 - 128, this.hash(), this.hashed = true) : this.start = s2;
            }
            return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 | 0, this.bytes = this.bytes % 4294967296), this;
          }, t3.prototype.finalize = function() {
            if (!this.finalized) {
              this.finalized = true;
              var t4 = this.blocks, n3 = this.lastByteIndex;
              t4[32] = this.block, t4[n3 >> 2] |= u[3 & n3], this.block = t4[32], n3 >= 112 && (this.hashed || this.hash(), t4[0] = this.block, t4[1] = t4[2] = t4[3] = t4[4] = t4[5] = t4[6] = t4[7] = t4[8] = t4[9] = t4[10] = t4[11] = t4[12] = t4[13] = t4[14] = t4[15] = t4[16] = t4[17] = t4[18] = t4[19] = t4[20] = t4[21] = t4[22] = t4[23] = t4[24] = t4[25] = t4[26] = t4[27] = t4[28] = t4[29] = t4[30] = t4[31] = t4[32] = 0), t4[30] = this.hBytes << 3 | this.bytes >>> 29, t4[31] = this.bytes << 3, this.hash();
            }
          }, t3.prototype.hash = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H = this.h0h, V = this.h0l, z = this.h1h, Y = this.h1l, Z = this.h2h, W = this.h2l, Q = this.h3h, K = this.h3l, J = this.h4h, X = this.h4l, q = this.h5h, $ = this.h5l, tt = this.h6h, nt = this.h6l, et = this.h7h, it = this.h7l, rt = this.blocks;
            for (t4 = 32; t4 < 160; t4 += 2) n3 = ((w = rt[t4 - 30]) >>> 1 | (M = rt[t4 - 29]) << 31) ^ (w >>> 8 | M << 24) ^ w >>> 7, e3 = (M >>> 1 | w << 31) ^ (M >>> 8 | w << 24) ^ (M >>> 7 | w << 25), i3 = ((w = rt[t4 - 4]) >>> 19 | (M = rt[t4 - 3]) << 13) ^ (M >>> 29 | w << 3) ^ w >>> 6, r2 = (M >>> 19 | w << 13) ^ (w >>> 29 | M << 3) ^ (M >>> 6 | w << 26), w = rt[t4 - 32], M = rt[t4 - 31], c2 = ((C = rt[t4 - 14]) >>> 16) + (w >>> 16) + (n3 >>> 16) + (i3 >>> 16) + ((u2 = (65535 & C) + (65535 & w) + (65535 & n3) + (65535 & i3) + ((a2 = ((S = rt[t4 - 13]) >>> 16) + (M >>> 16) + (e3 >>> 16) + (r2 >>> 16) + ((o2 = (65535 & S) + (65535 & M) + (65535 & e3) + (65535 & r2)) >>> 16)) >>> 16)) >>> 16), rt[t4] = c2 << 16 | 65535 & u2, rt[t4 + 1] = a2 << 16 | 65535 & o2;
            for (A = H, I = V, _ = Q, O = K, E = J, R = X, L = q, F = $, B = tt, P = nt, G = et, U = it, g2 = (k = z) & (j = Z), m = (N = Y) & (D = W), t4 = 0; t4 < 160; t4 += 8) n3 = (A >>> 28 | I << 4) ^ (I >>> 2 | A << 30) ^ (I >>> 7 | A << 25), e3 = (I >>> 28 | A << 4) ^ (A >>> 2 | I << 30) ^ (A >>> 7 | I << 25), i3 = (E >>> 14 | R << 18) ^ (E >>> 18 | R << 14) ^ (R >>> 9 | E << 23), r2 = (R >>> 14 | E << 18) ^ (R >>> 18 | E << 14) ^ (E >>> 9 | R << 23), b = (f2 = A & k) ^ A & j ^ g2, y = (l2 = I & N) ^ I & D ^ m, T = E & L ^ ~E & B, x = R & F ^ ~R & P, w = rt[t4], M = rt[t4 + 1], w = (c2 = ((C = s[t4]) >>> 16) + (w >>> 16) + (T >>> 16) + (i3 >>> 16) + (G >>> 16) + ((u2 = (65535 & C) + (65535 & w) + (65535 & T) + (65535 & i3) + (65535 & G) + ((a2 = ((S = s[t4 + 1]) >>> 16) + (M >>> 16) + (x >>> 16) + (r2 >>> 16) + (U >>> 16) + ((o2 = (65535 & S) + (65535 & M) + (65535 & x) + (65535 & r2) + (65535 & U)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, M = a2 << 16 | 65535 & o2, C = (c2 = (b >>> 16) + (n3 >>> 16) + ((u2 = (65535 & b) + (65535 & n3) + ((a2 = (y >>> 16) + (e3 >>> 16) + ((o2 = (65535 & y) + (65535 & e3)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, S = a2 << 16 | 65535 & o2, G = (c2 = (_ >>> 16) + (w >>> 16) + ((u2 = (65535 & _) + (65535 & w) + ((a2 = (O >>> 16) + (M >>> 16) + ((o2 = (65535 & O) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, U = a2 << 16 | 65535 & o2, n3 = ((_ = (c2 = (C >>> 16) + (w >>> 16) + ((u2 = (65535 & C) + (65535 & w) + ((a2 = (S >>> 16) + (M >>> 16) + ((o2 = (65535 & S) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2) >>> 28 | (O = a2 << 16 | 65535 & o2) << 4) ^ (O >>> 2 | _ << 30) ^ (O >>> 7 | _ << 25), e3 = (O >>> 28 | _ << 4) ^ (_ >>> 2 | O << 30) ^ (_ >>> 7 | O << 25), i3 = (G >>> 14 | U << 18) ^ (G >>> 18 | U << 14) ^ (U >>> 9 | G << 23), r2 = (U >>> 14 | G << 18) ^ (U >>> 18 | G << 14) ^ (G >>> 9 | U << 23), b = (h2 = _ & A) ^ _ & k ^ f2, y = (d2 = O & I) ^ O & N ^ l2, T = G & E ^ ~G & L, x = U & R ^ ~U & F, w = rt[t4 + 2], M = rt[t4 + 3], w = (c2 = ((C = s[t4 + 2]) >>> 16) + (w >>> 16) + (T >>> 16) + (i3 >>> 16) + (B >>> 16) + ((u2 = (65535 & C) + (65535 & w) + (65535 & T) + (65535 & i3) + (65535 & B) + ((a2 = ((S = s[t4 + 3]) >>> 16) + (M >>> 16) + (x >>> 16) + (r2 >>> 16) + (P >>> 16) + ((o2 = (65535 & S) + (65535 & M) + (65535 & x) + (65535 & r2) + (65535 & P)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, M = a2 << 16 | 65535 & o2, C = (c2 = (b >>> 16) + (n3 >>> 16) + ((u2 = (65535 & b) + (65535 & n3) + ((a2 = (y >>> 16) + (e3 >>> 16) + ((o2 = (65535 & y) + (65535 & e3)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, S = a2 << 16 | 65535 & o2, B = (c2 = (j >>> 16) + (w >>> 16) + ((u2 = (65535 & j) + (65535 & w) + ((a2 = (D >>> 16) + (M >>> 16) + ((o2 = (65535 & D) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, P = a2 << 16 | 65535 & o2, n3 = ((j = (c2 = (C >>> 16) + (w >>> 16) + ((u2 = (65535 & C) + (65535 & w) + ((a2 = (S >>> 16) + (M >>> 16) + ((o2 = (65535 & S) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2) >>> 28 | (D = a2 << 16 | 65535 & o2) << 4) ^ (D >>> 2 | j << 30) ^ (D >>> 7 | j << 25), e3 = (D >>> 28 | j << 4) ^ (j >>> 2 | D << 30) ^ (j >>> 7 | D << 25), i3 = (B >>> 14 | P << 18) ^ (B >>> 18 | P << 14) ^ (P >>> 9 | B << 23), r2 = (P >>> 14 | B << 18) ^ (P >>> 18 | B << 14) ^ (B >>> 9 | P << 23), b = (v2 = j & _) ^ j & A ^ h2, y = (p2 = D & O) ^ D & I ^ d2, T = B & G ^ ~B & E, x = P & U ^ ~P & R, w = rt[t4 + 4], M = rt[t4 + 5], w = (c2 = ((C = s[t4 + 4]) >>> 16) + (w >>> 16) + (T >>> 16) + (i3 >>> 16) + (L >>> 16) + ((u2 = (65535 & C) + (65535 & w) + (65535 & T) + (65535 & i3) + (65535 & L) + ((a2 = ((S = s[t4 + 5]) >>> 16) + (M >>> 16) + (x >>> 16) + (r2 >>> 16) + (F >>> 16) + ((o2 = (65535 & S) + (65535 & M) + (65535 & x) + (65535 & r2) + (65535 & F)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, M = a2 << 16 | 65535 & o2, C = (c2 = (b >>> 16) + (n3 >>> 16) + ((u2 = (65535 & b) + (65535 & n3) + ((a2 = (y >>> 16) + (e3 >>> 16) + ((o2 = (65535 & y) + (65535 & e3)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, S = a2 << 16 | 65535 & o2, L = (c2 = (k >>> 16) + (w >>> 16) + ((u2 = (65535 & k) + (65535 & w) + ((a2 = (N >>> 16) + (M >>> 16) + ((o2 = (65535 & N) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, F = a2 << 16 | 65535 & o2, n3 = ((k = (c2 = (C >>> 16) + (w >>> 16) + ((u2 = (65535 & C) + (65535 & w) + ((a2 = (S >>> 16) + (M >>> 16) + ((o2 = (65535 & S) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2) >>> 28 | (N = a2 << 16 | 65535 & o2) << 4) ^ (N >>> 2 | k << 30) ^ (N >>> 7 | k << 25), e3 = (N >>> 28 | k << 4) ^ (k >>> 2 | N << 30) ^ (k >>> 7 | N << 25), i3 = (L >>> 14 | F << 18) ^ (L >>> 18 | F << 14) ^ (F >>> 9 | L << 23), r2 = (F >>> 14 | L << 18) ^ (F >>> 18 | L << 14) ^ (L >>> 9 | F << 23), b = (g2 = k & j) ^ k & _ ^ v2, y = (m = N & D) ^ N & O ^ p2, T = L & B ^ ~L & G, x = F & P ^ ~F & U, w = rt[t4 + 6], M = rt[t4 + 7], w = (c2 = ((C = s[t4 + 6]) >>> 16) + (w >>> 16) + (T >>> 16) + (i3 >>> 16) + (E >>> 16) + ((u2 = (65535 & C) + (65535 & w) + (65535 & T) + (65535 & i3) + (65535 & E) + ((a2 = ((S = s[t4 + 7]) >>> 16) + (M >>> 16) + (x >>> 16) + (r2 >>> 16) + (R >>> 16) + ((o2 = (65535 & S) + (65535 & M) + (65535 & x) + (65535 & r2) + (65535 & R)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, M = a2 << 16 | 65535 & o2, C = (c2 = (b >>> 16) + (n3 >>> 16) + ((u2 = (65535 & b) + (65535 & n3) + ((a2 = (y >>> 16) + (e3 >>> 16) + ((o2 = (65535 & y) + (65535 & e3)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, S = a2 << 16 | 65535 & o2, E = (c2 = (A >>> 16) + (w >>> 16) + ((u2 = (65535 & A) + (65535 & w) + ((a2 = (I >>> 16) + (M >>> 16) + ((o2 = (65535 & I) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, R = a2 << 16 | 65535 & o2, A = (c2 = (C >>> 16) + (w >>> 16) + ((u2 = (65535 & C) + (65535 & w) + ((a2 = (S >>> 16) + (M >>> 16) + ((o2 = (65535 & S) + (65535 & M)) >>> 16)) >>> 16)) >>> 16)) << 16 | 65535 & u2, I = a2 << 16 | 65535 & o2;
            c2 = (H >>> 16) + (A >>> 16) + ((u2 = (65535 & H) + (65535 & A) + ((a2 = (V >>> 16) + (I >>> 16) + ((o2 = (65535 & V) + (65535 & I)) >>> 16)) >>> 16)) >>> 16), this.h0h = c2 << 16 | 65535 & u2, this.h0l = a2 << 16 | 65535 & o2, c2 = (z >>> 16) + (k >>> 16) + ((u2 = (65535 & z) + (65535 & k) + ((a2 = (Y >>> 16) + (N >>> 16) + ((o2 = (65535 & Y) + (65535 & N)) >>> 16)) >>> 16)) >>> 16), this.h1h = c2 << 16 | 65535 & u2, this.h1l = a2 << 16 | 65535 & o2, c2 = (Z >>> 16) + (j >>> 16) + ((u2 = (65535 & Z) + (65535 & j) + ((a2 = (W >>> 16) + (D >>> 16) + ((o2 = (65535 & W) + (65535 & D)) >>> 16)) >>> 16)) >>> 16), this.h2h = c2 << 16 | 65535 & u2, this.h2l = a2 << 16 | 65535 & o2, c2 = (Q >>> 16) + (_ >>> 16) + ((u2 = (65535 & Q) + (65535 & _) + ((a2 = (K >>> 16) + (O >>> 16) + ((o2 = (65535 & K) + (65535 & O)) >>> 16)) >>> 16)) >>> 16), this.h3h = c2 << 16 | 65535 & u2, this.h3l = a2 << 16 | 65535 & o2, c2 = (J >>> 16) + (E >>> 16) + ((u2 = (65535 & J) + (65535 & E) + ((a2 = (X >>> 16) + (R >>> 16) + ((o2 = (65535 & X) + (65535 & R)) >>> 16)) >>> 16)) >>> 16), this.h4h = c2 << 16 | 65535 & u2, this.h4l = a2 << 16 | 65535 & o2, c2 = (q >>> 16) + (L >>> 16) + ((u2 = (65535 & q) + (65535 & L) + ((a2 = ($ >>> 16) + (F >>> 16) + ((o2 = (65535 & $) + (65535 & F)) >>> 16)) >>> 16)) >>> 16), this.h5h = c2 << 16 | 65535 & u2, this.h5l = a2 << 16 | 65535 & o2, c2 = (tt >>> 16) + (B >>> 16) + ((u2 = (65535 & tt) + (65535 & B) + ((a2 = (nt >>> 16) + (P >>> 16) + ((o2 = (65535 & nt) + (65535 & P)) >>> 16)) >>> 16)) >>> 16), this.h6h = c2 << 16 | 65535 & u2, this.h6l = a2 << 16 | 65535 & o2, c2 = (et >>> 16) + (G >>> 16) + ((u2 = (65535 & et) + (65535 & G) + ((a2 = (it >>> 16) + (U >>> 16) + ((o2 = (65535 & it) + (65535 & U)) >>> 16)) >>> 16)) >>> 16), this.h7h = c2 << 16 | 65535 & u2, this.h7l = a2 << 16 | 65535 & o2;
          }, t3.prototype.hex = function() {
            var t4, n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m, b;
            return this.finalize(), t4 = this.h0h, n3 = this.h0l, e3 = this.h1h, i3 = this.h1l, o2 = this.h2h, a2 = this.h2l, u2 = this.h3h, s2 = this.h3l, c2 = this.h4h, f2 = this.h4l, l2 = this.h5h, h2 = this.h5l, d2 = this.h6h, v2 = this.h6l, p2 = this.h7h, g2 = this.h7l, m = this.bits, b = r[t4 >> 28 & 15] + r[t4 >> 24 & 15] + r[t4 >> 20 & 15] + r[t4 >> 16 & 15] + r[t4 >> 12 & 15] + r[t4 >> 8 & 15] + r[t4 >> 4 & 15] + r[15 & t4] + r[n3 >> 28 & 15] + r[n3 >> 24 & 15] + r[n3 >> 20 & 15] + r[n3 >> 16 & 15] + r[n3 >> 12 & 15] + r[n3 >> 8 & 15] + r[n3 >> 4 & 15] + r[15 & n3] + r[e3 >> 28 & 15] + r[e3 >> 24 & 15] + r[e3 >> 20 & 15] + r[e3 >> 16 & 15] + r[e3 >> 12 & 15] + r[e3 >> 8 & 15] + r[e3 >> 4 & 15] + r[15 & e3] + r[i3 >> 28 & 15] + r[i3 >> 24 & 15] + r[i3 >> 20 & 15] + r[i3 >> 16 & 15] + r[i3 >> 12 & 15] + r[i3 >> 8 & 15] + r[i3 >> 4 & 15] + r[15 & i3] + r[o2 >> 28 & 15] + r[o2 >> 24 & 15] + r[o2 >> 20 & 15] + r[o2 >> 16 & 15] + r[o2 >> 12 & 15] + r[o2 >> 8 & 15] + r[o2 >> 4 & 15] + r[15 & o2] + r[a2 >> 28 & 15] + r[a2 >> 24 & 15] + r[a2 >> 20 & 15] + r[a2 >> 16 & 15] + r[a2 >> 12 & 15] + r[a2 >> 8 & 15] + r[a2 >> 4 & 15] + r[15 & a2] + r[u2 >> 28 & 15] + r[u2 >> 24 & 15] + r[u2 >> 20 & 15] + r[u2 >> 16 & 15] + r[u2 >> 12 & 15] + r[u2 >> 8 & 15] + r[u2 >> 4 & 15] + r[15 & u2], m >= 256 && (b += r[s2 >> 28 & 15] + r[s2 >> 24 & 15] + r[s2 >> 20 & 15] + r[s2 >> 16 & 15] + r[s2 >> 12 & 15] + r[s2 >> 8 & 15] + r[s2 >> 4 & 15] + r[15 & s2]), m >= 384 && (b += r[c2 >> 28 & 15] + r[c2 >> 24 & 15] + r[c2 >> 20 & 15] + r[c2 >> 16 & 15] + r[c2 >> 12 & 15] + r[c2 >> 8 & 15] + r[c2 >> 4 & 15] + r[15 & c2] + r[f2 >> 28 & 15] + r[f2 >> 24 & 15] + r[f2 >> 20 & 15] + r[f2 >> 16 & 15] + r[f2 >> 12 & 15] + r[f2 >> 8 & 15] + r[f2 >> 4 & 15] + r[15 & f2] + r[l2 >> 28 & 15] + r[l2 >> 24 & 15] + r[l2 >> 20 & 15] + r[l2 >> 16 & 15] + r[l2 >> 12 & 15] + r[l2 >> 8 & 15] + r[l2 >> 4 & 15] + r[15 & l2] + r[h2 >> 28 & 15] + r[h2 >> 24 & 15] + r[h2 >> 20 & 15] + r[h2 >> 16 & 15] + r[h2 >> 12 & 15] + r[h2 >> 8 & 15] + r[h2 >> 4 & 15] + r[15 & h2]), 512 === m && (b += r[d2 >> 28 & 15] + r[d2 >> 24 & 15] + r[d2 >> 20 & 15] + r[d2 >> 16 & 15] + r[d2 >> 12 & 15] + r[d2 >> 8 & 15] + r[d2 >> 4 & 15] + r[15 & d2] + r[v2 >> 28 & 15] + r[v2 >> 24 & 15] + r[v2 >> 20 & 15] + r[v2 >> 16 & 15] + r[v2 >> 12 & 15] + r[v2 >> 8 & 15] + r[v2 >> 4 & 15] + r[15 & v2] + r[p2 >> 28 & 15] + r[p2 >> 24 & 15] + r[p2 >> 20 & 15] + r[p2 >> 16 & 15] + r[p2 >> 12 & 15] + r[p2 >> 8 & 15] + r[p2 >> 4 & 15] + r[15 & p2] + r[g2 >> 28 & 15] + r[g2 >> 24 & 15] + r[g2 >> 20 & 15] + r[g2 >> 16 & 15] + r[g2 >> 12 & 15] + r[g2 >> 8 & 15] + r[g2 >> 4 & 15] + r[15 & g2]), b;
          }, t3.prototype.digest = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m;
            return this.finalize(), t4 = this.h0h, n3 = this.h0l, e3 = this.h1h, i3 = this.h1l, r2 = this.h2h, o2 = this.h2l, a2 = this.h3h, u2 = this.h3l, s2 = this.h4h, c2 = this.h4l, f2 = this.h5h, l2 = this.h5l, h2 = this.h6h, d2 = this.h6l, v2 = this.h7h, p2 = this.h7l, m = [t4 >> 24 & 255, t4 >> 16 & 255, t4 >> 8 & 255, 255 & t4, n3 >> 24 & 255, n3 >> 16 & 255, n3 >> 8 & 255, 255 & n3, e3 >> 24 & 255, e3 >> 16 & 255, e3 >> 8 & 255, 255 & e3, i3 >> 24 & 255, i3 >> 16 & 255, i3 >> 8 & 255, 255 & i3, r2 >> 24 & 255, r2 >> 16 & 255, r2 >> 8 & 255, 255 & r2, o2 >> 24 & 255, o2 >> 16 & 255, o2 >> 8 & 255, 255 & o2, a2 >> 24 & 255, a2 >> 16 & 255, a2 >> 8 & 255, 255 & a2], (g2 = this.bits) >= 256 && m.push(u2 >> 24 & 255, u2 >> 16 & 255, u2 >> 8 & 255, 255 & u2), g2 >= 384 && m.push(s2 >> 24 & 255, s2 >> 16 & 255, s2 >> 8 & 255, 255 & s2, c2 >> 24 & 255, c2 >> 16 & 255, c2 >> 8 & 255, 255 & c2, f2 >> 24 & 255, f2 >> 16 & 255, f2 >> 8 & 255, 255 & f2, l2 >> 24 & 255, l2 >> 16 & 255, l2 >> 8 & 255, 255 & l2), 512 === g2 && m.push(h2 >> 24 & 255, h2 >> 16 & 255, h2 >> 8 & 255, 255 & h2, d2 >> 24 & 255, d2 >> 16 & 255, d2 >> 8 & 255, 255 & d2, v2 >> 24 & 255, v2 >> 16 & 255, v2 >> 8 & 255, 255 & v2, p2 >> 24 & 255, p2 >> 16 & 255, p2 >> 8 & 255, 255 & p2), m;
          }, t3.prototype.arrayBuffer = function() {
            var t4, n3, e3;
            return this.finalize(), t4 = this.bits, n3 = new ArrayBuffer(t4 / 8), (e3 = new DataView(n3)).setUint32(0, this.h0h), e3.setUint32(4, this.h0l), e3.setUint32(8, this.h1h), e3.setUint32(12, this.h1l), e3.setUint32(16, this.h2h), e3.setUint32(20, this.h2l), e3.setUint32(24, this.h3h), t4 >= 256 && e3.setUint32(28, this.h3l), t4 >= 384 && (e3.setUint32(32, this.h4h), e3.setUint32(36, this.h4l), e3.setUint32(40, this.h5h), e3.setUint32(44, this.h5l)), 512 === t4 && (e3.setUint32(48, this.h6h), e3.setUint32(52, this.h6l), e3.setUint32(56, this.h7h), e3.setUint32(60, this.h7l)), n3;
          }, t3.prototype.clone = function() {
            var n3 = new t3(this.bits, false);
            return this.copyTo(n3), n3;
          }, t3.prototype.copyTo = function(t4) {
            var n3, e3 = ["h0h", "h0l", "h1h", "h1l", "h2h", "h2l", "h3h", "h3l", "h4h", "h4l", "h5h", "h5l", "h6h", "h6l", "h7h", "h7l", "start", "bytes", "hBytes", "finalized", "hashed", "lastByteIndex"];
            for (n3 = 0; n3 < e3.length; ++n3) t4[e3[n3]] = this[e3[n3]];
            for (n3 = 0; n3 < this.blocks.length; ++n3) t4.blocks[n3] = this.blocks[n3];
          }, t3;
        })(), n2.Qle = c, f = (function(t3) {
          function n3(n4, e3, i3) {
            var r2, o2, a2, u2, s2 = this;
            for (n4.length > 128 && (n4 = new c(e3, true).update(n4).digest()), r2 = [], o2 = [], a2 = 0; a2 < 128; ++a2) u2 = n4[a2] || 0, r2[a2] = 92 ^ u2, o2[a2] = 54 ^ u2;
            return (s2 = t3.call(this, e3, i3) || this).update(o2), s2.oKeyPad = r2, s2.inner = true, s2.sharedMemory = i3, s2;
          }
          return p(n3, t3), n3.prototype.finalize = function() {
            if (t3.prototype.finalize.call(this), this.inner) {
              this.inner = false;
              var n4 = this.digest();
              this.init(this.sharedMemory), this.update(this.oKeyPad), this.update(n4), t3.prototype.finalize.call(this);
            }
          }, n3;
        })(c), n2.Wle = f, l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", h = new Uint8Array(255), d = 0; d < l.length; d++) h[l.charCodeAt(d)] = d;
        v = (function() {
          function t3() {
          }
          return t3.Kle = function(t4) {
            var n3 = new Uint8Array(4);
            return n3[0] = 255 & t4, n3[1] = (65280 & t4) >> 8, n3[2] = (16711680 & t4) >> 16, n3[3] = (4278190080 & t4) >> 24, n3;
          }, t3.Joe = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = 0.75 * t4.length, c2 = t4.length, f2 = 0;
            for ("=" === t4[t4.length - 1] && (s2--, "=" === t4[t4.length - 2] && s2--), a2 = new ArrayBuffer(s2), u2 = new Uint8Array(a2), n3 = 0; n3 < c2; n3 += 4) e3 = h[t4.charCodeAt(n3)], i3 = h[t4.charCodeAt(n3 + 1)], r2 = h[t4.charCodeAt(n3 + 2)], o2 = h[t4.charCodeAt(n3 + 3)], u2[f2++] = e3 << 2 | i3 >> 4, u2[f2++] = (15 & i3) << 4 | r2 >> 2, u2[f2++] = (3 & r2) << 6 | 63 & o2;
            return new Uint8Array(a2);
          }, t3.Xoe = function(t4) {
            var n3, e3 = t4.length, i3 = "";
            for (n3 = 0; n3 < e3; n3 += 3) i3 += l[t4[n3] >> 2], i3 += l[(3 & t4[n3]) << 4 | t4[n3 + 1] >> 4], i3 += l[(15 & t4[n3 + 1]) << 2 | t4[n3 + 2] >> 6], i3 += l[63 & t4[n3 + 2]];
            return e3 % 3 == 2 ? i3 = i3.substring(0, i3.length - 1) + "=" : e3 % 3 == 1 && (i3 = i3.substring(0, i3.length - 2) + "=="), i3;
          }, t3.qoe = function(t4) {
            var n3, e3 = new DataView(new ArrayBuffer(2 * t4.length));
            for (n3 = 0; n3 < t4.length; n3++) e3.setUint16(2 * n3, t4.charCodeAt(n3), true);
            return new Uint8Array(e3.buffer);
          }, t3.$oe = function(t4, n3) {
            var e3 = t4.length, i3 = new Uint8Array(e3 + n3.length);
            return i3.set(t4, 0), i3.set(n3, e3), i3;
          }, t3.tue = function(n3, e3, i3, r2) {
            var o2, a2 = t3.$oe(t3.Joe(e3), t3.qoe(n3)), u2 = r2(a2);
            for (o2 = 0; o2 < i3; o2++) u2 = r2(t3.$oe(new Uint8Array(u2), t3.Kle(o2)));
            return u2;
          }, t3.nue = function(n3, e3, i3, r2) {
            return t3.Xoe(new Uint8Array(t3.tue(n3, e3, i3, r2)));
          }, t3.eue = function(t4) {
            var n3;
            return new c(512, true).update(t4).arrayBuffer();
          }, t3.Jle = function(n3) {
            var e3, i3 = new Uint8Array(256);
            for (e3 = 0; e3 <= 255; e3++) i3[e3] = Date.now() * Math.random() + Date.now() & 255;
            return new Uint8Array(t3.eue(i3)).slice(0, n3);
          }, t3.iue = function() {
            var n3, e3 = new Uint8Array(256);
            for (n3 = 0; n3 <= 255; n3++) e3[n3] = Date.now() * Math.random() + Date.now() & 255;
            return t3.Xoe(t3.Jle(16));
          }, t3.rue = function(n3, e3, i3, r2, o2) {
            var a2;
            return t3.nue(n3, i3, r2, o2) === e3;
          }, t3.Xle = function(t4, n3, e3) {
            var i3, r2 = 0;
            for (i3 = e3; i3 < n3 + e3; i3++) r2 += t4[i3] * (1 << 8 * (i3 - e3));
            return r2;
          }, t3.Yur = function(t4) {
            var n3, e3 = 0;
            for (n3 = t4.length - 1; n3 >= 0; n3--) e3 = e3 >> 14 & 1 | e3 << 1 & 32767, e3 ^= t4.charCodeAt(n3);
            return e3 = e3 >> 14 & 1 | e3 << 1 & 32767, e3 ^= t4.length, (e3 ^= 52811).toString(16).toUpperCase();
          }, t3;
        })(), n2.Qoe = v;
      }, "./dist/core/util/custom-list.js": function(t2, n2) {
        "use strict";
        var e2, i2 = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r = n3.length, o; i3 < r; i3++) !o && i3 in n3 || (o || (o = Array.prototype.slice.call(n3, 0, i3)), o[i3] = n3[i3]);
          return t3.concat(o || Array.prototype.slice.call(n3));
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CustomList = void 0, e2 = (function() {
          function t3(t4, n3) {
            this.wY = t4, this.YBe = n3;
          }
          return Object.defineProperty(t3.prototype, "length", { get: function() {
            return this.wY.length;
          }, enumerable: false, configurable: true }), t3.prototype.get = function(t4) {
            return this.wY[t4];
          }, t3.prototype.indexOf = function(t4) {
            return this.wY.indexOf(t4);
          }, t3.prototype.findIndex = function(t4, n3) {
            return this.wY.findIndex(t4, n3);
          }, t3.prototype.some = function(t4, n3) {
            return this.wY.some(t4, n3);
          }, t3.prototype.set = function(t4, n3) {
            this.wY[t4] = n3;
          }, t3.prototype.push = function(t4) {
            var n3 = this;
            return this.ZBe((function() {
              return n3.wY.push(t4);
            }));
          }, t3.prototype.update = function(t4) {
            var n3 = this;
            this.ZBe((function() {
              n3.wY = t4;
            }));
          }, t3.prototype.splice = function(t4, n3) {
            var e3, r = this, o = [];
            for (e3 = 2; e3 < arguments.length; e3++) o[e3 - 2] = arguments[e3];
            return this.ZBe((function() {
              var e4;
              return (e4 = r.wY).splice.apply(e4, i2([t4, n3], o, false));
            }));
          }, t3.prototype.slice = function(t4, n3) {
            var e3 = this;
            return this.ZBe((function() {
              return e3.wY.slice(t4, n3);
            }));
          }, t3.prototype.concat = function(t4) {
            var n3 = this;
            return this.ZBe((function() {
              return n3.wY.concat(t4);
            }));
          }, t3.prototype.QP = function() {
            return i2([], this.wY, true);
          }, t3.prototype.L0 = function() {
            this.wY = [], this.YBe = function() {
            };
          }, t3.prototype.ZBe = function(t4) {
            var n3, e3 = this.length, i3 = t4();
            return null === (n3 = this.YBe) || void 0 === n3 || n3.call(this, e3, this.length), i3;
          }, t3;
        })(), n2.CustomList = e2;
      }, "./dist/core/util/dataManager.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.jSe = n2.PSe = n2.GSe = n2.USe = void 0;
        var i2 = e2("./dist/core/core.enum.js");
        function r(t3, n3) {
          var e3, i3 = n3.workbook.lossless, r2 = i3 && i3.dataManager;
          if (t3.N3 = null, r2) return (e3 = t3.dataManager()).fromJSON(r2);
        }
        function o(t3, n3) {
          var e3, i3 = n3.dataManager;
          if (t3.N3 = null, i3) return (e3 = t3.dataManager()).fromJSON(i3);
        }
        function a(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f, l, h, d, v = t3.mp, p = t3.dataManager().tables, g = Object.keys(p);
          for (n3 = 0, e3 = v; n3 < e3.length; n3++) if ((r2 = e3[n3])._gi === i2.SheetType.tableSheet || r2._gi === i2.SheetType.ganttSheet) {
            if (o2 = r2.getDataView()) for (a2 = o2.gLt.name, u2 = p[a2].F_e(), s2 = 0, c2 = g; s2 < c2.length; s2++) f = c2[s2], u2.indexOf(f) < 0 && (p[f].B_e = true);
          } else if (r2._gi === i2.SheetType.reportSheet) for (u2 = r2.getTemplate().A4i(t3), l = function(t4) {
            u2.find((function(n4) {
              return t4.toUpperCase() === n4;
            })) || (p[t4].B_e = true);
          }, h = 0, d = g; h < d.length; h++) l(f = d[h]);
        }
        function u(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f = t3.sheets;
          if (f) {
            for (o2 = [], a2 = 0; a2 < f.length; a2++) if ((r2 = f[a2].tables) && (u2 = r2.all())) for (s2 = function(t4) {
              var n4, e4, r3, a3, s3, c3, f2 = u2[t4];
              if (f2.NTr() && (n4 = null === (i3 = f2.z3()) || void 0 === i3 ? void 0 : i3.getTable()) && !n4.BIr() && (e4 = n4.getChanges()).length > 0) if (n4.X7t()) o2.push(n4.submitChanges());
              else for (r3 = function(t5) {
                void 0 !== t5.index && null !== t5.index && o2.push(new Promise((function(e5, i4) {
                  n4.saveItem(t5.index, e5, i4);
                })));
              }, a3 = 0, s3 = e4; a3 < s3.length; a3++) r3(c3 = s3[a3]);
            }, c2 = 0; c2 < u2.length; c2++) s2(c2);
            Promise.all(o2).then(n3, (function(t4) {
              return e3 && e3(t4);
            }));
          }
        }
        function s(t3, n3, e3) {
          var r2, o2, s2 = t3.N3;
          if (s2) {
            if (a(t3), n3.dataManager = s2.toJSON(e3), e3 && (e3.gp || e3.cb === i2.OpenSaveFileType.excel)) return;
            u(t3, r2 = null == e3 ? void 0 : e3.rJr, o2 = null == e3 ? void 0 : e3.oJr);
          }
        }
        function c(t3, n3, e3) {
          var r2 = t3.N3;
          r2 && (a(t3), n3.workbook.lossless.dataManager = r2.toJSON(), e3 && e3.fileType === i2.OpenSaveFileType.sjs && u(t3));
        }
        n2.USe = r, n2.GSe = o, n2.PSe = s, n2.jSe = c;
      }, "./dist/core/util/domUtil.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B;
        function P(t3, n3) {
          var e3, i3;
          for (Array.call(this), "string" == typeof t3 ? e3 = (n3 || f).querySelectorAll(t3) : t3 && (e3 = E.isArray(t3) || t3 instanceof HTMLCollection ? t3 : [t3]), i3 = 0; e3 && i3 < e3.length; i3++) this.push(e3[i3]);
        }
        function G(t3) {
          for (var n3, e3 = U(t3); t3.parentElement; ) (n3 = U(t3 = t3.parentElement)) > e3 && (e3 = n3);
          return e3;
        }
        function U(t3) {
          var n3 = getComputedStyle(t3).zIndex;
          return "auto" === n3 || "" === n3 ? 0 : Number(n3);
        }
        function H(t3) {
          return E.isWindow(t3) ? t3 : 9 === t3.nodeType && (t3.defaultView || t3.parentWindow);
        }
        function V(t3, n3) {
          var e3 = t3.nodeName;
          return e3 && e3.toLowerCase() === n3.toLowerCase();
        }
        function z(t3, n3) {
          return "top left right bottom width height border-radius border-width border-left-width border-right-width border-top-width border-bottom-width line-height padding padding-left padding-right padding-top padding-bottom margin margin-left margin-right margin-top margin-bottom".split(" ").indexOf(t3) >= 0 && isFinite(n3) ? ("width height".split(" ").indexOf(t3) >= 0 && n3 < 0 && (n3 = 0), n3 + "px") : n3;
        }
        function Y(t3, n3, e3) {
          var i3, r2, o2, a2 = t3.nodeType;
          if (t3 && 3 !== a2 && 8 !== a2 && 2 !== a2) return (o2 = 1 !== a2) && (n3 = I[n3] || n3, r2 = k[n3]), tt(e3) ? r2 && d in r2 && (i3 = r2.get(t3, n3)) !== s ? i3 : t3[n3] : r2 && v in r2 && !tt(i3 = r2.set(t3, e3, n3)) ? i3 : (t3[n3] = e3, e3);
        }
        function Z(t3) {
          var n3, e3, i3, r2 = t3.nodeType;
          return (!r2 || 1 === r2 || 9 === r2) && (n3 = { embed: true, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", applet: true }, !(i3 = (e3 = t3.nodeName) && n3[e3.toLowerCase()]) || true !== i3 && t3.getAttribute("classid") === i3);
        }
        function W(t3) {
          return t3.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, (function(t4, n3) {
            return n3.toUpperCase();
          }));
        }
        function Q(t3, n3, e3, i3) {
          if (Z(t3)) {
            var r2, o2, a2 = D, c2 = q(n3), f2 = t3.nodeType, l2 = f2 ? j : t3, h2 = f2 ? t3[a2] : t3[a2] && a2;
            if (h2 && l2[h2] && (i3 || l2[h2].data) || !c2 || !tt(e3)) return h2 || (f2 ? (t3[a2] = h2 = _, _++) : h2 = a2), l2[h2] || (l2[h2] = {}, f2 || (l2[h2].toJSON = function() {
            })), ($(n3) || "function" == typeof n3) && (i3 ? l2[h2] = E.extend(l2[h2], n3) : l2[h2].data = E.extend(l2[h2].data, n3)), r2 = l2[h2], i3 || (r2.data || (r2.data = {}), r2 = r2.data), tt(e3) || (r2[W(n3)] = e3), c2 ? (o2 = r2[n3]) !== s && o2 !== u || (o2 = r2[W(n3)]) : o2 = r2, o2;
          }
        }
        function K(t3) {
          var n3;
          for (n3 in t3) if (("data" !== n3 || !E.isEmptyObject(t3[n3])) && "toJSON" !== n3) return false;
          return true;
        }
        function J(t3, n3, e3) {
          if (Z(t3)) {
            var i3, r2, o2, a2 = t3.nodeType, u2 = a2 ? j : t3, c2 = a2 ? t3[D] : D;
            if (u2[c2]) {
              if (n3 && (o2 = e3 ? u2[c2] : u2[c2].data)) {
                r2 = (n3 = E.isArray(n3) ? n3.concat(E.map(n3, W)) : n3 in o2 || (n3 = W(n3)) in o2 ? [n3] : n3.split(" ")).length;
                for (i3 = 0; i3 < r2; i3++) delete o2[n3[i3]];
                if (!(e3 ? K : E.isEmptyObject)(o2)) return;
              }
              (e3 || (delete u2[c2].data, K(u2[c2]))) && (a2 ? X([t3], true) : u2 !== u2.window ? delete u2[c2] : u2[c2] = s);
            }
          }
        }
        function X(t3, n3) {
          for (var e3, i3, r2, o2, u2, c2, f2, l2, h2, d2 = 0, v2 = D, p2 = j, g2 = t3[d2]; g2 !== s && void 0 !== g2; ) {
            if ((n3 || Z(g2)) && (i3 = (e3 = g2[v2]) && p2[e3])) {
              if (r2 = i3.events) {
                for (o2 in r2) if (a(r2, o2) && (u2 = r2[o2])) {
                  for (c2 in u2) if (a(u2, c2) && (f2 = u2[c2])) for (l2 = 0, h2 = f2.length; l2 < h2; l2++) at(g2, o2, f2[l2]);
                }
              }
              p2[e3] && (delete p2[e3], delete g2[v2]);
            }
            g2 = t3[++d2];
          }
        }
        function q(t3) {
          return "string" == typeof t3;
        }
        function $(t3) {
          return "object" == typeof t3;
        }
        function tt(t3) {
          return typeof t3 == typeof u;
        }
        function nt(t3) {
          var n3 = t3;
          return function(t4) {
            var e3, i3 = this, r2 = "border-box" === i3.css("box-sizing"), o2 = n3 ? p : g, a2 = n3 ? m : y, u2 = n3 ? b : w;
            return 0 === arguments.length ? (e3 = Math.round(c(i3.css(o2))) || 0, r2 && (e3 -= c(i3.css("padding-" + a2)) + c(i3.css("padding-" + u2)) + c(i3.css("border-" + a2 + "-" + p)) + c(i3.css("border-" + u2 + "-" + p))), e3) : (i3.css(o2, t4), i3);
          };
        }
        function et(t3) {
          var n3 = t3;
          return function() {
            var t4 = this, e3 = n3 ? m : y, i3 = n3 ? b : w;
            return n3 ? t4.width() : t4.height() + c(t4.css("padding-" + e3)) + c(t4.css("padding-" + i3));
          };
        }
        function it(t3) {
          var n3 = t3;
          return function(t4) {
            var e3 = n3 ? m : y, i3 = n3 ? b : w, r2 = this, o2 = n3 ? r2.innerWidth() : r2.innerHeight();
            return o2 += c(r2.css("border-" + e3 + "-" + p)) + c(r2.css("border-" + i3 + "-" + p)), t4 && (o2 += c(r2.css("margin-" + e3)) + c(r2.css("margin-" + i3))), o2;
          };
        }
        function rt(t3) {
          var n3 = t3;
          return function(t4) {
            return this.forEach((function(e3) {
              e3.style[A] = n3 ? C : S, t4 && t4.apply(e3);
            })), this;
          };
        }
        function ot(t3) {
          var n3 = t3;
          return function(t4) {
            var e3 = "scrollLeft", i3 = "scrollTop", r2 = n3 ? e3 : i3, o2 = n3 ? "pageXOffset" : "pageYOffset", a2 = this, u2 = a2[0], s2 = u2 && H(u2);
            return tt(t4) ? s2 ? o2 in s2 ? s2[o2] : f.documentElement[r2] : u2 && u2[r2] : (s2 ? s2.scrollTo(n3 ? t4 : E(s2)[e3](), n3 ? E(s2)[i3]() : t4) : u2 && (u2[r2] = t4), a2);
          };
        }
        function at(t3, n3, e3) {
          t3.removeEventListener(n3, e3);
        }
        function ut(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2 = 0, f2 = false, l2 = false, h2 = true;
          if ("function" != typeof t3) throw new TypeError("Expected a function");
          function d2(n4) {
            var e4 = i3, o3 = r2;
            return i3 = r2 = void 0, c2 = n4, a2 = t3.apply(o3, e4);
          }
          function v2(t4, n4) {
            return setTimeout(t4, n4);
          }
          function p2(t4) {
            clearTimeout(t4);
          }
          function g2(t4) {
            return c2 = t4, u2 = v2(y2, n3), f2 ? d2(t4) : a2;
          }
          function m2(t4) {
            var e4 = t4 - s2, i4 = t4 - c2, r3 = n3 - e4;
            return l2 ? Math.min(r3, o2 - i4) : r3;
          }
          function b2(t4) {
            var e4 = t4 - s2, i4 = t4 - c2;
            return void 0 === s2 || e4 >= n3 || e4 < 0 || l2 && i4 >= o2;
          }
          function y2() {
            var t4 = Date.now();
            if (b2(t4)) return w2(t4);
            u2 = v2(y2, m2(t4));
          }
          function w2(t4) {
            return u2 = void 0, h2 && i3 ? d2(t4) : (i3 = r2 = void 0, a2);
          }
          function M2() {
            void 0 !== u2 && p2(u2), c2 = 0, i3 = s2 = r2 = u2 = void 0;
          }
          function C2() {
            return void 0 === u2 ? a2 : w2(Date.now());
          }
          function S2() {
            return void 0 !== u2;
          }
          function T2() {
            var t4, e4, o3, c3 = [];
            for (t4 = 0; t4 < arguments.length; t4++) c3[t4] = arguments[t4];
            if (o3 = b2(e4 = Date.now()), i3 = c3, r2 = this, s2 = e4, o3) {
              if (void 0 === u2) return g2(s2);
              if (l2) return u2 = v2(y2, n3), d2(s2);
            }
            return void 0 === u2 && (u2 = v2(y2, n3)), a2;
          }
          return n3 = +n3 || 0, $(e3) && (f2 = !!e3.leading, o2 = (l2 = "maxWait" in e3) ? Math.max(+e3.maxWait || 0, n3) : o2, h2 = "trailing" in e3 ? !!e3.trailing : h2), T2.cancel = M2, T2.flush = C2, T2.pending = S2, T2;
        }
        function st(t3, n3, e3) {
          var i3 = true, r2 = true;
          if ("function" != typeof t3) throw new TypeError("Expected a function");
          return $(e3) && (i3 = "leading" in e3 ? !!e3.leading : i3, r2 = "trailing" in e3 ? !!e3.trailing : r2), ut(t3, n3, { leading: i3, trailing: r2, maxWait: n3 });
        }
        function ct(t3, n3, e3) {
          var i3, r2, o2;
          if (t3) {
            if (i3 = t3, !n3 || 0 === n3.length) return !(i3 = t3[l]) && e3 && (i3 = t3[l] = {}), i3;
            for (r2 = n3.length - 1; r2 >= 0; r2--) {
              if (!i3[o2 = n3[r2]]) {
                if (!e3) return;
                i3[o2] = {};
              }
              i3 = i3[o2];
            }
            return i3;
          }
        }
        function ft(t3, n3) {
          var e3, i3, r2, o2;
          for (e3 in t3) if (a(t3, e3) && (i3 = t3[e3])) if (E.isArray(i3)) for (r2 = i3.length, o2 = 0; o2 < r2; o2++) at(n3, e3, i3[o2]);
          else ft(i3, n3);
        }
        function lt(t3, n3, e3, i3, r2) {
          var o2, u2, s2, c2, f2;
          if (!(!t3 || r2 > 2 || t3 instanceof Function)) {
            for (o2 in r2 += 1, t3) if (a(t3, o2) && (u2 = t3[o2])) {
              if ((s2 = u2[e3]) && E.isArray(s2)) for (c2 = 0, f2 = s2.length; c2 < f2; c2++) s2[c2].apply(n3, [{ type: e3 }, i3]);
              lt(u2, n3, e3, i3, r2);
            }
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Ose = n2.GC$ = n2.getHostMaxZIndex = void 0, i2 = e2("Common"), r = e2("./dist/core/util/common.js"), o = i2.Common.lt, a = i2.Common.kh, u = void 0, s = null, c = parseFloat, f = document, l = "_nonamespace", h = "events", d = "get", v = "set", p = "width", g = "height", m = "left", b = "right", y = "top", w = "bottom", M = "hidden", C = "block", S = "none", T = "position", x = "visibility", A = "display", I = { tabindex: "tabIndex", readonly: "readOnly", for: "htmlFor", class: "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable" }, k = { tabIndex: { get: function(t3) {
          var n3 = t3.getAttributeNode("tabindex"), e3 = /^(?:input|select|textarea|button|object)$/i, i3 = /^(?:a|area)$/i, r2 = t3.nodeName;
          return n3 && n3.specified ? parseInt(n3.value, 10) : e3.test(r2) || i3.test(r2) && t3.href ? 0 : u;
        } } }, N = { option: { get: function(t3) {
          var n3 = t3.attributes.value;
          return !n3 || n3.specified ? t3.value : t3.text;
        } }, select: { get: function(t3) {
          var n3, e3, i3 = t3.options, r2 = t3.selectedIndex, o2 = "select-one" === t3.type || r2 < 0, a2 = o2 ? s : [], u2 = o2 ? r2 + 1 : i3.length, c2 = o2 ? r2 : 0;
          for (r2 < 0 && (c2 = u2); c2 < u2; c2++) if (((e3 = i3[c2]).selected || c2 === r2) && !e3.disabled && (!e3.parentNode.disabled || !V(e3.parentNode, "optgroup"))) {
            if (n3 = E(e3).val(), o2) return n3;
            a2.push(n3);
          }
          return a2;
        }, set: function(t3, n3) {
          var e3 = E.makeArray(n3), i3 = E(t3).find("option").getAll();
          return i3.forEach((function(t4) {
            t4.selected = E.inArray(E(t4).val(), e3) >= 0;
          })), e3.length || (t3.selectedIndex = -1), e3;
        } } }, j = {}, D = "$" + ("" + Math.random()).replace(/\D/g, ""), _ = 1, O = {}, [g, p].forEach((function(t3) {
          O[t3] = { get: function(n3) {
            var e3, i3, r2, o2 = getComputedStyle(n3), a2 = n3.style, u2 = a2[T], s2 = a2[x], c2 = a2[A], l2 = 0 === n3.offsetWidth && /^(none|table(?!-c[ea]).+)/.test(o2[A]);
            if (l2 && (a2[T] = "absolute", a2[x] = M, a2[A] = C), e3 = o2 && o2[t3], l2 && (a2[T] = u2, a2[x] = s2, a2[A] = c2), "" === e3) {
              for (i3 = n3.parentElement, r2 = f.body; i3 && i3 !== r2; ) i3 = i3.parentElement;
              i3 !== r2 && (e3 = a2[t3]);
            }
            return e3;
          } };
        })), E = function(t3, n3) {
          return t3 instanceof P ? t3 : new P(t3, n3);
        }, n2.GC$ = E, R = { get: function(t3) {
          return this[t3];
        }, getAll: function() {
          return this;
        }, bind: function(t3, n3, e3) {
          var i3 = this;
          return tt(e3) && (e3 = n3, n3 = u), i3.forEach((function(i4) {
            var r2, o2, a2, s2, c2, f2, l2 = Q(i4, h, u, true);
            l2 || Q(i4, h, l2 = {}, true), o2 = (r2 = t3.split("."))[0], s2 = ct(l2, a2 = r2.slice(1), true), c2 = function(t4) {
              tt(n3) || (t4.data = n3);
              var r3 = e3.apply(i4, arguments);
              t4.result = r3, false === r3 && (t4.preventDefault ? (t4.preventDefault(), t4.stopPropagation()) : (t4.cancelBubble = false, t4.returnValue = false));
            }, c2.original = e3, (f2 = s2[o2]) || (f2 = s2[o2] = []), f2.push(c2), i4.addEventListener(o2, c2);
          })), i3;
        }, unbind: function(t3, n3) {
          var e3 = this;
          return e3.forEach((function(e4) {
            var i3, r2, o2, a2, s2, c2 = Q(e4, h, u, true), f2 = t3.split("."), l2 = f2[0], d2 = f2.slice(1), v2 = ct(c2, d2);
            if (v2) if (n3) {
              if (l2 && (i3 = v2[l2]) && E.isArray(i3)) {
                for (o2 = i3.length, r2 = 0; r2 < o2; r2++) if (i3[r2].original === n3) {
                  at(e4, l2, i3[r2]), i3.splice(r2, 1);
                  break;
                }
              }
            } else if (l2) {
              if ((i3 = v2[l2]) && E.isArray(i3)) for (o2 = i3.length, r2 = 0; r2 < o2; r2++) at(e4, l2, i3[r2]);
              v2[l2] = u;
            } else {
              for (ft(v2, e4), a2 = c2, s2 = d2.length - 1; s2 > 0 && (a2 = a2[d2[s2]]); s2--) ;
              a2 && (a2[d2[0]] = u);
            }
          })), e3;
        }, trigger: function(t3, n3) {
          var e3, i3, r2, o2, a2, s2, c2 = this;
          if (t3) for (e3 = 0, i3 = c2.length; e3 < i3; e3++) (o2 = Q(r2 = c2[e3], h, u, true)) && lt(o2, r2, s2 = (a2 = t3.split("."))[0], n3, 0);
          return c2;
        }, css: function(t3, n3) {
          var e3, i3, r2, o2 = this, u2 = o2, c2 = arguments.length;
          function f2(t4, n4) {
            u2.forEach((function(e4) {
              e4.style[t4] = z(t4, n4);
            }));
          }
          if (1 === c2) {
            if (!$(t3)) return e3 = o2[0], (i3 = O[t3]) && d in i3 ? e3 ? i3.get(e3) : s : (r2 = e3 && getComputedStyle(e3)) && r2[t3];
            u2.forEach((function(n4) {
              for (var e4 in t3) a(t3, e4) && (n4.style[e4] = z(e4, t3[e4]));
            }));
          } else 2 === c2 && (E.isArray(t3) && E.isArray(n3) && t3.length === n3.length ? t3.forEach((function(t4, e4) {
            f2(t4, n3[e4]);
          })) : f2(t3, n3));
          return o2;
        }, width: nt(true), height: nt(), innerWidth: et(true), innerHeight: et(), outerWidth: it(true), outerHeight: it(), append: function(t3) {
          var n3, e3, i3 = [t3];
          return t3 instanceof E && (i3 = t3.getAll()), (e3 = (n3 = this)[0]) && i3.forEach((function(t4) {
            t4 && e3.appendChild(t4);
          })), n3;
        }, appendTo: function(t3) {
          var n3, e3 = t3;
          return t3 instanceof E && (e3 = t3[0]), n3 = this, e3 && n3.forEach((function(t4) {
            e3.appendChild(t4);
          })), n3;
        }, prepend: function(t3) {
          var n3 = this, e3 = n3[0];
          return e3 && e3.insertBefore(t3, e3.firstChild), n3;
        }, insertBefore: function(t3) {
          var n3 = this, e3 = t3.parentElement;
          return n3.forEach((function(n4) {
            e3.insertBefore(n4, t3);
          })), n3;
        }, addClass: function(t3) {
          var n3, e3, i3, r2, o2, a2 = 0, u2 = this, s2 = u2.length, c2 = /\S+/g, f2 = /[\t\r\n]/g;
          for (n3 = (t3 || "").match(c2) || []; a2 < s2; a2++) if (i3 = 1 === (e3 = u2[a2]).nodeType && (e3.className ? (" " + e3.className + " ").replace(f2, " ") : " ")) {
            for (r2 = n3[o2 = 0]; r2; ) i3.indexOf(" " + r2 + " ") < 0 && (i3 += r2 + " "), r2 = n3[++o2];
            e3.className = E.trim(i3);
          }
          return this;
        }, removeClass: function(t3) {
          var n3, e3, i3, r2, o2, a2 = 0, u2 = this, s2 = u2.length, c2 = /\S+/g, f2 = /[\t\r\n]/g;
          for (n3 = (t3 || "").match(c2) || []; a2 < s2; a2++) if (i3 = 1 === (e3 = u2[a2]).nodeType && (e3.className ? (" " + e3.className + " ").replace(f2, " ") : "")) {
            for (r2 = n3[o2 = 0]; r2; ) {
              for (; i3.indexOf(" " + r2 + " ") >= 0; ) i3 = i3.replace(" " + r2 + " ", " ");
              r2 = n3[++o2];
            }
            e3.className = t3 ? E.trim(i3) : "";
          }
          return this;
        }, hasClass: function(t3) {
          var n3, e3 = 0, i3 = this, r2 = i3.length, o2 = /[\t\r\n]/g;
          for (t3 = " " + t3 + " "; e3 < r2; e3++) if (1 === (n3 = i3[e3]).nodeType && (" " + n3.className + " ").replace(o2, " ").indexOf(t3) >= 0) return true;
          return false;
        }, toggle: function() {
          var t3 = this, n3 = t3[0];
          return n3 && n3.style[A] === S ? t3.show() : t3.hide(), t3;
        }, show: rt(true), hide: rt(), attr: function(t3, n3) {
          var e3, i3 = this, r2 = i3, o2 = arguments.length;
          if (1 === o2) {
            if (!$(t3)) return null === (e3 = i3[0]) || void 0 === e3 ? void 0 : e3.getAttribute(t3);
            r2.forEach((function(n4) {
              for (var e4 in t3) a(t3, e4) && n4.setAttribute(e4, t3[e4]);
            }));
          } else 2 === o2 && r2.forEach((function(e4) {
            e4.setAttribute(t3, n3);
          }));
          return i3;
        }, removeAttr: function(t3) {
          return this.forEach((function(n3) {
            n3.removeAttribute(t3);
          })), this;
        }, prop: function(t3, n3) {
          var e3 = this, i3 = e3, r2 = arguments.length;
          if (1 === r2) {
            if (!$(t3)) return e3[0] && Y(e3[0], t3);
            i3.forEach((function(n4) {
              for (var e4 in t3) a(t3, e4) && Y(n4, e4, t3[e4]);
            }));
          } else 2 === r2 && i3.forEach((function(e4) {
            Y(e4, t3, n3);
          }));
          return e3;
        }, removeProp: function(t3) {
          t3 = I[t3] || t3;
          var n3 = this, e3;
          return n3.forEach((function(n4) {
            try {
              n4[t3] = u, delete n4[t3];
            } catch (t4) {
            }
          })), n3;
        }, text: function(t3) {
          var n3, e3 = this, i3 = e3;
          return 0 === arguments.length ? null === (n3 = e3[0]) || void 0 === n3 ? void 0 : n3.textContent : (i3.forEach((function(n4) {
            n4.textContent = t3;
          })), e3);
        }, val: function(t3) {
          var n3, e3, i3, r2, o2 = this;
          return arguments.length ? (r2 = E.isFunction(t3), o2.forEach((function(e4, i4) {
            var o3;
            1 === e4.nodeType && ((o3 = r2 ? t3.call(e4, i4, E(e4).val()) : t3) === s || o3 === u ? o3 = "" : "number" == typeof o3 ? o3 += "" : E.isArray(o3) && (o3 = E.map(o3, (function(t4) {
              return t4 === s || t4 === u ? "" : t4 + "";
            }))), (n3 = N[e4.type] || N[e4.nodeName.toLowerCase()]) && v in n3 && !tt(n3.set(e4, o3, "value")) || (e4.value = o3));
          })), o2) : (i3 = void 0, (e3 = o2[0]) ? (n3 = N[e3.type] || N[e3.nodeName.toLowerCase()]) && d in n3 && !tt(i3 = n3.get(e3, "value")) ? i3 : q(i3 = e3.value) ? i3.replace(/\r/g, "") : i3 === s || i3 === u ? "" : i3 : void 0);
        }, position: function() {
          var t3, n3, e3, i3, r2 = this[0];
          if (r2) {
            if (t3 = { top: 0, left: 0 }, n3 = { top: 0, left: 0 }, "fixed" === E(r2).css(T)) try {
              t3 = r2.getBoundingClientRect();
            } catch (t4) {
            }
            else e3 = this.offsetParent(), t3 = this.offset(), (i3 = e3[0]) && (V(i3, "html") || ((n3 = e3.offset()).left -= i3.scrollLeft, n3.top -= i3.scrollTop), n3.top += c(E(i3).css("borderTopWidth")), n3.left += c(E(i3).css("borderLeftWidth")));
            return { top: t3.top - n3.top - c(E(r2).css("marginTop")), left: t3.left - n3.left - c(E(r2).css("marginLeft")) };
          }
        }, offsetParent: function() {
          var t3 = E.map(this, (function(t4) {
            for (var n3 = f.documentElement, e3 = t4.offsetParent || n3; e3 && !V(e3, "html") && "static" === E(e3).css(T); ) e3 = e3.offsetParent;
            return e3 || n3;
          }));
          return E(t3);
        }, offset: function() {
          var t3, n3, e3 = { top: 0, left: 0 }, i3 = this[0], r2 = i3 && i3.ownerDocument;
          if (r2) {
            if (t3 = r2.documentElement, !tt(i3.getBoundingClientRect)) try {
              e3 = i3.getBoundingClientRect();
            } catch (t4) {
            }
            return n3 = H(r2), { top: e3.top + (n3.pageYOffset || t3.scrollTop) - (t3.clientTop || 0), left: e3.left + (n3.pageXOffset || t3.scrollLeft) - (t3.clientLeft || 0) };
          }
        }, scrollLeft: ot(true), scrollTop: ot(), html: function(t3) {
          var n3, e3 = this, i3 = e3;
          return 0 === arguments.length ? null === (n3 = e3[0]) || void 0 === n3 ? void 0 : n3.innerHTML : (i3.forEach((function(n4) {
            n4.innerHTML = t3;
          })), e3);
        }, remove: function() {
          var t3;
          this.forEach((function(t4) {
            var n3 = t4.parentElement;
            n3 && (n3.removeChild(t4), X([t4]));
          }));
        }, empty: function() {
          return this.forEach((function(t3) {
            E(t3.children).remove();
          })), this;
        }, find: function(t3) {
          var n3 = [];
          return q(t3) && this.forEach((function(e3) {
            var i3 = e3.querySelectorAll(t3);
            E.merge(n3, i3);
          })), E(n3);
        }, parent: function() {
          var t3 = [];
          return this.forEach((function(n3) {
            var e3 = n3.parentElement;
            e3 && t3.push(e3);
          })), E(t3);
        }, index: function(t3) {
          var n3 = this[0];
          return t3 ? q(t3) ? n3 && E.inArray(n3, E(t3).getAll()) : E.inArray(t3, this) : n3 && n3.parentElement ? E.inArray(n3, n3.parentElement.children) : -1;
        }, focus: function() {
          var t3 = this, n3 = t3[0];
          return n3 && n3 !== f.activeElement && n3.focus && n3.focus(), t3;
        }, isVisible: function() {
          var t3 = 0;
          return this.forEach((function(n3) {
            var e3 = getComputedStyle(n3);
            e3[x] !== M && e3[A] !== S && t3++;
          })), t3 > 0;
        }, data: function(t3, n3) {
          var e3 = this, i3 = tt(n3);
          return i3 && (e3 = void 0), E.each(this, (function(r2, o2) {
            var a2 = Q(o2, t3, n3);
            if (i3) return e3 = a2, false;
          })), e3;
        }, removeData: function(t3) {
          return E.each(this, (function(n3, e3) {
            J(e3, t3);
          })), this;
        } }, L = P.prototype = [], o.Dh(L, R), E.prototype = L, E.each = o.y0, E.isEmptyObject = o._h, E.isFunction = o.Eh, E.isArray = o.Nh, E.isNumeric = o.jh, E.getType = o.Oh, E.inArray = o.Rh, E.merge = o.Bh, E.map = o.Lh, E.extend = o.Dh, E.inherit = o.Fh, E.isPlainObject = o.Ph, E.isArraylike = o.Gh, E.isWindow = o.Uh, E.makeArray = o.Hh, E.trim = function(t3) {
          return t3.trim ? t3.trim() : t3 === s || t3 === u ? "" : (t3 + "").replace(/(^[\s\uFEFF\xA0]+)|([\s\uFEFF\xA0]+$)/g, "");
          var n3;
        }, E.En = function(t3, n3, e3, i3, r2) {
          var o2 = E(f.createElement(t3));
          return n3 && e3 && o2.css(n3, e3), i3 && o2.addClass(i3), r2 && (r2 instanceof E ? r2.append(o2) : E(r2).append(o2)), o2;
        }, n2.getHostMaxZIndex = G, F = "px", B = (function() {
          function t3(t4, n3, e3) {
            this.zue = t4.clientHeight, this.Vue = t4.clientWidth, this.sse = r.mt.Tt.safari, this.cse(t4, n3, e3);
          }
          return t3.prototype.cse = function(t4, n3, e3) {
            var i3 = this;
            this.sse ? this.fse = setInterval((function() {
              var e4;
              (t4.style.width !== i3.Vue + F || t4.style.height !== i3.zue + F) && n3();
            }), 100) : (this.Yue = new MutationObserver(st((function(e4) {
              var r2, o2, a2;
              for (r2 = 0; r2 < e4.length; r2++) if ("attributes" === (o2 = e4[r2]).type && (a2 = t4.style.width !== i3.Vue + F || t4.style.height !== i3.zue + F)) return void n3();
            }), e3)), this.Yue.observe(t4, { attributes: true }));
          }, t3.prototype.disconnect = function() {
            this.sse ? clearInterval(this.fse) : (this.Yue.disconnect(), this.Yue = null);
          }, t3;
        })(), n2.Ose = B;
      }, "./dist/core/util/event-notify.js": function(t2, n2) {
        "use strict";
        var e2, i2;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TypedEventNotifier = n2.EventNotifier = void 0, e2 = (function() {
          function t3() {
            this.aT = [];
          }
          return t3.prototype.count = function() {
            return this.aT.length;
          }, t3.prototype.addListener = function(t4) {
            this.aT.push(t4);
          }, t3.prototype.removeListener = function(t4) {
            var n3 = this.aT.indexOf(t4);
            n3 >= 0 && this.aT.splice(n3, 1);
          }, t3.prototype.notify = function(t4) {
            var n3, e3 = this.aT, i3 = e3.length;
            if (0 !== i3) for (n3 = 0; n3 < i3; n3++) e3[n3](t4);
          }, t3.prototype.destroy = function() {
            this.aT = [];
          }, t3;
        })(), n2.EventNotifier = e2, i2 = (function() {
          function t3() {
            this.aT = /* @__PURE__ */ new Map();
          }
          return t3.prototype.addListener = function(t4, n3) {
            var e3 = this.aT.get(t4);
            e3 || (e3 = [], this.aT.set(t4, e3)), e3.push(n3);
          }, t3.prototype.removeListener = function(t4, n3) {
            var e3 = this.aT.get(t4), i3 = e3.indexOf(n3);
            i3 >= 0 && e3.splice(i3, 1);
          }, t3.prototype.notify = function(t4) {
            var n3, e3, i3, r = this.aT.get(t4);
            if (r) for (n3 = 0, e3 = r; n3 < e3.length; n3++) (i3 = e3[n3])();
          }, t3.prototype.destroy = function() {
            this.aT = null;
          }, t3;
        })(), n2.TypedEventNotifier = i2;
      }, "./dist/core/util/imageLoader.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Wh = void 0, i2 = e2("./dist/core/util/domUtil.js"), r = i2.GC$, o = ".gcSheet", a = (function() {
          function t3(t4) {
            var n3;
            this.zh = 0, this.Vh = 0, this.Yh = {}, this.vUr = [], this.xYr = /* @__PURE__ */ new Map(), this.rL = [], this.Zh = t4;
          }
          return t3.prototype.addImage = function(t4, n3, e3) {
            var i3, a2, u, s = this, c = null == e3 ? void 0 : e3.loadCallback;
            function f() {
              s.Qh(t4, true);
            }
            function l() {
              s.Qh(t4, false);
            }
            (a2 = (i3 = s.Yh)[t4]) ? a2.Kh ? null == c || c() : s.AYr(t4, c) : (u = r(document.createElement("img")), n3 && u.attr("crossOrigin", n3), u.bind("load" + o, f), u.bind("error" + o, l), u.bind("abort" + o, l), s.zh++, i3[t4] = { Kh: false, Jh: u[0], Xh: false }, s.AYr(t4, c), u[0].src = t4);
          }, t3.prototype.getState = function(t4) {
            var n3 = this.Yh[t4];
            return !!n3 && n3.Kh;
          }, t3.prototype.qh = function(t4) {
            var n3 = this.Yh[t4];
            return !!n3 && n3.Xh;
          }, t3.prototype.getImage = function(t4) {
            var n3 = this.Yh[t4];
            return n3 ? n3.Jh : null;
          }, t3.prototype.Qh = function(t4, n3) {
            var e3 = this;
            e3.Vh++, e3.Yh[t4].Kh = true, e3.Yh[t4].Xh = n3, e3.IYr(t4), e3.$h() && e3.Zh && Promise.all(this.rL).then((function() {
              e3.Zh(), e3.vUr.forEach((function(t5) {
                t5();
              }));
            }));
          }, t3.prototype.registerLoadedCompleteListener = function(t4) {
            var n3 = this;
            return n3.vUr.push(t4), function() {
              n3.vUr = n3.vUr.filter((function(n4) {
                return n4 !== t4;
              }));
            };
          }, t3.prototype.$h = function() {
            return this.Vh >= this.zh;
          }, t3.prototype.addLoadingPromises = function(t4) {
            var n3;
            t4 && t4.length > 0 && (n3 = this.rL).push.apply(n3, t4);
          }, t3.prototype.AYr = function(t4, n3) {
            var e3, i3;
            n3 && ((i3 = (e3 = this).xYr.get(t4)) ? i3.push(n3) : e3.xYr.set(t4, [n3]));
          }, t3.prototype.IYr = function(t4) {
            var n3 = this, e3 = n3.xYr.get(t4);
            e3 && (e3.forEach((function(t5) {
              t5();
            })), n3.xYr.delete(t4));
          }, t3.prototype.L0 = function() {
            var t4, n3, e3 = this.Yh;
            if (e3) for (t4 in e3) e3[t4] && (n3 = r(e3[t4].Jh)).unbind(o);
            this.Zh = null, this.vUr = [], this.xYr = /* @__PURE__ */ new Map();
          }, t3;
        })(), n2.Wh = a;
      }, "./dist/core/util/styleManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R = this && this.nJr || function() {
          return R = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, R.apply(this, arguments);
        };
        function L(t3) {
          return t3 ? 1 : 0;
        }
        function F(t3, n3) {
          var e3, i3;
          return t3 === p ? p : (e3 = "{", d(t3.style) || ("string" == typeof (i3 = t3.style) && (i3 = '"' + f.ExcelBorderStyle[i3] + '"'), "object" != typeof i3 && (e3 += '"s":' + i3 + ",")), d(t3.color) || (e3 += '"c":' + n3.getTextIndex(t3.color) + ","), e3.substring(0, e3.length - 1) + "}");
        }
        function B(t3, n3, e3) {
          var i3, r2;
          return t3 ? (i3 = new u.LineBorder(), r2 = JSON.parse(t3), e3 || 0 !== r2.s ? (d(r2.s) || (i3.style = +r2.s), d(r2.c) || (i3.color = n3.getText(+r2.c)), i3) : p) : t3;
        }
        function P(t3) {
          return t3 === v || t3 && t3.color === v && t3.level === v && t3.style === v;
        }
        function G(t3) {
          return t3.c + (t3.json ? ", json: ".concat(t3.json) : "");
        }
        function U(t3, n3) {
          if (!t3 || !n3) return t3;
          for (var e3 in n3) n3.hasOwnProperty(e3) && (t3[e3] = n3[e3]);
          return t3;
        }
        function H(t3, n3) {
          var e3, i3, r2, u2 = o.ti, s2 = t3.getObject(+n3);
          return s2 && (i3 = s2.typeName, (r2 = u2[s2.type] || u2[i3] || a.getTypeFromString(i3)) && (e3 = new r2()).fromJSON(s2, true)), e3;
        }
        function V(t3) {
          delete t3.applyAlignment, delete t3.applyBorder, delete t3.applyFill, delete t3.applyFont, delete t3.applyNumberFormat, delete t3.applyProtection;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.StyleManager = n2.SharedDxfs = n2.SimpleSharedStrings = void 0, i2 = e2("./dist/core/util/common.js"), r = e2("./dist/core/core.enum.js"), o = e2("./dist/core/celltype/celltype.ns.js"), a = e2("./dist/core/util/common.js"), u = e2("./dist/core/worksheet/style.js"), s = e2("./dist/core/util/common.js"), c = e2("./dist/core/excel-io-util/common.js"), f = e2("./dist/core/excel-io-util/excel-style.js"), l = e2("Common"), h = e2("./dist/core/util/domUtil.js"), d = l.Common.lt.ht, v = void 0, p = null, g = c.NodeHelper.ur, m = h.GC$.each, b = l.Common.lt.tv, y = l.Common.ct.W0, w = l.Common.ct.Q0, M = l.Common.ct.dJ, C = c.Util.ro, S = c.Util.ao, T = i2.mt.St, x = (function() {
          function t3(t4, n3) {
            var e3 = this;
            this.td = [], this.Lh = {}, t4 && (n3 ? t4.forEach((function(t5, n4) {
              e3.Lh[t5] = "" + n4, e3.td[n4] = t5;
            })) : t4.forEach((function(t5, n4) {
              e3.getTextIndex(t5);
            })));
          }
          return t3.prototype.dispose = function() {
            this.td = v, this.Lh = v;
          }, t3.prototype.setTextValue = function(t4) {
            var n3;
            this.Lh[t4] === v && (n3 = this.td.push(t4) - 1, this.Lh[t4] = n3);
          }, t3.prototype.getTextIndex = function(t4) {
            return this.setTextValue(t4), this.Lh[t4];
          }, t3.prototype.getText = function(t4) {
            return this.td[t4];
          }, t3.prototype.setTextIndex = function(t4, n3) {
            this.td[n3] = t4, this.Lh[t4] = n3;
          }, t3.prototype.replaceText = function(t4, n3) {
            this.td[t4] = n3;
          }, t3.prototype.getCount = function() {
            return this.td.length;
          }, t3.prototype.yh = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Lh;
            if (t4) for (i3.td = t4, n3 = 0, e3 = t4.length; n3 < e3; n3++) r2[t4[n3]] = "" + n3;
          }, t3.prototype.wh = function() {
            return this.td;
          }, t3;
        })(), n2.SimpleSharedStrings = x, A = (function() {
          function t3() {
            this.td = [];
          }
          return t3.prototype.dispose = function() {
            this.td = v;
          }, t3.prototype.getObjectIndex = function(t4) {
            var n3, e3 = this.td, i3 = 0, r2 = e3.length, o2;
            if (t4.toJSON ? o2 = t4.toJSON() : !d(t4) && t4 instanceof Object && (o2 = JSON.stringify(t4)), o2) {
              for (; i3 < r2; i3++) if (e3[i3] === o2) return i3;
              return e3[i3] = o2, i3;
            }
          }, t3.prototype.getObject = function(t4) {
            return this.td[t4];
          }, t3.prototype.yh = function(t4) {
            this.td = t4;
          }, t3.prototype.wh = function() {
            return this.td;
          }, t3;
        })(), I = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.nd = [], e3.ed = new x(n3), e3.rd = t4;
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.ed && (t4.ed.dispose(), t4.ed = v), t4.nd = v, t4.rd = v;
          }, t3.prototype.nv = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this, c2 = u2.rd;
            return t4.backColor === p ? u2.ed.getTextIndex('{"t":0}') : t4.backColor !== v ? (i3 = e3 = t4.backColor, r2 = e3, o2 = e3, "object" == typeof e3 ? (n3 = "{", r2.stops ? (n3 += '"s":[', (a2 = r2.stops).forEach((function(t5) {
              n3 += '{"p":' + t5.position + ',"c":' + c2.getTextIndex(t5.color) + "},";
            })), n3 = n3.substring(0, n3.length - 1), n3 += "],", "path" === o2.type ? (n3 += '"t":"p"', (0, s.isDefined)(o2.left) && (n3 += ',"l":' + o2.left), (0, s.isDefined)(o2.right) && (n3 += ',"r":' + o2.right), (0, s.isDefined)(o2.top) && (n3 += ',"a":' + o2.top), (0, s.isDefined)(o2.bottom) && (n3 += ',"c":' + o2.bottom)) : n3 += '"d":' + (r2.degree ? r2.degree : 0)) : i3.type !== v && (n3 += '"t":' + i3.type, (0, s.isDefined)(i3.patternColor) && "" !== i3.patternColor && (n3 += ',"p":' + c2.getTextIndex(i3.patternColor)), (0, s.isDefined)(i3.backgroundColor) && "" !== i3.backgroundColor && (n3 += ',"b":' + c2.getTextIndex(i3.backgroundColor))), n3 += "}") : n3 = "" === e3 ? '{"t":0}' : c2.getTextIndex(e3), u2.ed.getTextIndex(n3)) : void 0;
          }, t3.prototype.ev = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.rd, l2 = c2.nd;
            return l2[t4] ? l2[t4] : "string" == typeof (r2 = c2.ed.getText(+t4)) && "{" === r2[0] ? (a2 = (o2 = JSON.parse(r2)).s, i3 = {}, 0 === o2.t ? p : (a2 && a2.length > 0 ? (u2 = i3.stops = [], a2.forEach((function(t5) {
              var n4 = {};
              d(t5.p) || (n4.position = t5.p), d(t5.c) || (n4.color = f2.getText(t5.c)), u2.push(n4);
            })), "p" === o2.t ? (i3.type = "path", d(o2.l) || (i3.left = o2.l), d(o2.r) || (i3.right = o2.r), d(o2.a) || (i3.top = o2.a), d(o2.c) || (i3.bottom = o2.c)) : d(o2.d) || (i3.degree = o2.d)) : d(o2.t) ? e3 && !d(o2.b) && (i3 = f2.getText(o2.b)) : 1 === (s2 = o2.t) ? n3 || d(o2.p) ? d(o2.b) || (i3 = f2.getText(o2.b)) : i3 = f2.getText(o2.p) : (i3.type = s2, d(o2.p) || (i3.patternColor = f2.getText(o2.p)), d(o2.b) || (i3.backgroundColor = f2.getText(o2.b))), i3 = h.GC$.isEmptyObject(i3) ? v : i3, l2[t4] = i3, i3)) : (i3 = f2.getText(r2), i3 = h.GC$.isEmptyObject(i3) ? v : i3, l2[t4] = i3, i3);
          }, t3.prototype.iv = function(t4) {
            t4.fills = this.ed.wh();
          }, t3.prototype.rv = function(t4) {
            this.ed.yh(t4.fills);
          }, t3;
        })(), k = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.od = [], e3.ad = new x(), e3.ud = new x(), e3.D2e = new x(), e3.E2e = new x(), e3.R2e = new x(), e3.Pre = new x(), e3.rd = t4, e3.cd = n3;
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.ad && (t4.ad.dispose(), t4.ad = v), t4.ud && (t4.ud.dispose(), t4.ud = v), t4.D2e && (t4.D2e.dispose(), t4.D2e = v), t4.E2e && (t4.E2e.dispose(), t4.E2e = v), t4.R2e && (t4.R2e.dispose(), t4.R2e = v), t4.Pre && (t4.Pre.dispose(), t4.Pre = v), t4.od = v, t4.rd = v, t4.cd = v;
          }, t3.prototype.nv = function(t4) {
            var n3, e3 = this;
            if (!(d(t4.font) && d(t4.vertAlign) && d(t4.textDecoration) && t4.foreColor === v && d(t4.themeFont))) return n3 = "", d(t4.font) || (n3 += "f:" + e3.ud.getTextIndex(t4.font) + ","), t4.fontStyle !== v && (n3 += "i:" + e3.D2e.getTextIndex(t4.fontStyle) + ","), t4.fontWeight !== v && (n3 += "b:" + e3.E2e.getTextIndex(t4.fontWeight) + ","), d(t4.fontSize) || (n3 += "s:" + e3.R2e.getTextIndex(t4.fontSize) + ","), d(t4.fontFamily) || (n3 += "n:" + e3.Pre.getTextIndex(t4.fontFamily) + ","), d(t4._fontVariant) || (n3 += "a:" + e3.cd.getTextIndex(t4._fontVariant) + ","), d(t4._lineHeight) || (n3 += "l:" + e3.cd.getTextIndex(t4._lineHeight) + ","), d(t4._fontStretch) || (n3 += "r:" + e3.cd.getTextIndex(t4._fontStretch) + ","), d(t4.vertAlign) || (n3 += "v:" + t4.vertAlign + ","), d(t4.textDecoration) || (n3 += "d:" + +t4.textDecoration + ","), t4.foreColor !== v && (n3 += "c:" + e3.rd.getTextIndex(t4.foreColor) + ","), d(t4.themeFont) || (n3 += "t:" + e3.cd.getTextIndex(t4.themeFont) + ","), e3.ad.getTextIndex(n3.substring(0, n3.length - 1));
          }, t3.prototype.ev = function(t4) {
            var n3, e3, i3 = this, r2 = i3.rd, o2 = i3.od;
            return o2[t4] ? o2[t4] : (n3 = i3.ad.getText(+t4)) ? (e3 = {}, n3.split(",").forEach((function(t5) {
              var n4 = t5.split(":"), o3 = n4[0], a2 = n4[1];
              switch (o3) {
                case "f":
                  e3.font = i3.ud.getText(+a2);
                  break;
                case "v":
                  e3.vertAlign = +a2;
                  break;
                case "d":
                  e3.textDecoration = +a2;
                  break;
                case "c":
                  e3.foreColor = r2.getText(+a2);
                  break;
                case "t":
                  e3.themeFont = i3.cd.getText(+a2);
                  break;
                case "i":
                  e3.fontStyle = i3.D2e.getText(+a2);
                  break;
                case "b":
                  e3.fontWeight = i3.E2e.getText(+a2);
                  break;
                case "s":
                  e3.fontSize = i3.R2e.getText(+a2);
                  break;
                case "n":
                  e3.fontFamily = i3.Pre.getText(+a2);
                  break;
                case "a":
                  e3._fontVariant = i3.cd.getText(+a2);
                  break;
                case "l":
                  e3._lineHeight = i3.cd.getText(+a2);
                  break;
                case "r":
                  e3._fontStretch = i3.cd.getText(+a2);
              }
            })), o2[t4] = e3, e3) : void 0;
          }, t3.prototype.iv = function(t4) {
            var n3 = this;
            t4.fonts = n3.ad.wh(), t4.htmlFonts = n3.ud.wh(), t4.fontStyles = n3.D2e.wh(), t4.fontWeights = n3.E2e.wh(), t4.fontSizes = n3.R2e.wh(), t4.fontFamilies = n3.Pre.wh();
          }, t3.prototype.rv = function(t4, n3) {
            var e3 = this;
            n3 ? (e3.ad.yh(t4.partFonts), e3.ud.yh(t4.partHtmlFonts)) : (e3.ad.yh(t4.fonts), e3.ud.yh(t4.htmlFonts), e3.D2e.yh(t4.fontStyles), e3.E2e.yh(t4.fontWeights), e3.R2e.yh(t4.fontSizes), e3.Pre.yh(t4.fontFamilies));
          }, t3;
        })(), N = (function() {
          function t3(t4) {
            var n3 = this;
            n3.fd = [], n3.ld = [], n3.hd = new x(), n3.dd = new x(), n3.rd = t4, n3.hd.getTextIndex('{"s":0}'), n3.dd.getTextIndex("l:0,r:0,t:0,b:0");
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.hd && (t4.hd.dispose(), t4.hd = v), t4.dd && (t4.dd.dispose(), t4.dd = v), t4.fd = v, t4.ld = v, t4.rd = v;
          }, t3.prototype.nv = function(t4) {
            var n3 = this, e3 = n3.rd, i3 = "";
            if (P(t4.borderLeft) || (i3 += "l:" + n3.hd.getTextIndex(F(t4.borderLeft, e3)) + ","), P(t4.borderRight) || (i3 += "r:" + n3.hd.getTextIndex(F(t4.borderRight, e3)) + ","), P(t4.borderTop) || (i3 += "t:" + n3.hd.getTextIndex(F(t4.borderTop, e3)) + ","), P(t4.borderBottom) || (i3 += "b:" + n3.hd.getTextIndex(F(t4.borderBottom, e3)) + ","), P(t4.borderVertical) || (i3 += "v:" + n3.hd.getTextIndex(F(t4.borderVertical, e3)) + ","), P(t4.borderHorizontal) || (i3 += "h:" + n3.hd.getTextIndex(F(t4.borderHorizontal, e3)) + ","), P(t4.diagonalUp) || (i3 += "u:" + n3.hd.getTextIndex(F(t4.diagonalUp, e3)) + ","), P(t4.diagonalDown) || (i3 += "d:" + n3.hd.getTextIndex(F(t4.diagonalDown, e3)) + ","), "" !== i3) return n3.dd.getTextIndex(i3.substring(0, i3.length - 1));
          }, t3.prototype.ov = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.ld;
            return u2[t4] ? u2[t4] : (e3 = a2.hd, i3 = a2.rd, o2 = B(r2 = e3.getText(+t4), i3, n3), u2[t4] = o2, o2);
          }, t3.prototype.ev = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.fd;
            return o2[t4] ? o2[t4] : (e3 = r2.dd.getText(t4), i3 = {}, e3 ? (e3.split(",").forEach((function(t5) {
              var e4 = t5.split(":"), o3 = e4[0], a2 = e4[1];
              switch (o3) {
                case "l":
                  i3.borderLeft = r2.ov(a2, n3);
                  break;
                case "r":
                  i3.borderRight = r2.ov(a2, n3);
                  break;
                case "t":
                  i3.borderTop = r2.ov(a2, n3);
                  break;
                case "b":
                  i3.borderBottom = r2.ov(a2, n3);
                  break;
                case "v":
                  i3.borderVertical = r2.ov(a2, n3);
                  break;
                case "h":
                  i3.borderHorizontal = r2.ov(a2, n3);
                  break;
                case "u":
                  i3.diagonalUp = r2.ov(a2, n3);
                  break;
                case "d":
                  i3.diagonalDown = r2.ov(a2, n3);
              }
            })), o2[t4] = i3, i3) : void 0);
          }, t3.prototype.iv = function(t4) {
            var n3 = this;
            t4.borderItems = n3.hd.wh(), t4.borders = n3.dd.wh();
          }, t3.prototype.rv = function(t4) {
            var n3 = this;
            n3.dd.yh(t4.borders), n3.hd.yh(t4.borderItems);
          }, t3;
        })(), j = (function() {
          function t3(n3, e3) {
            var i3, r2 = this;
            r2.vd = [], r2.md = new x(), r2.pd = new x(), r2.bd = {}, r2.cd = n3, r2.yd = e3, r2.wd = {}, c.ExtendedNumberFormatHelper.resetBuiltInNumberFormat(), i3 = c.ExtendedNumberFormatHelper.builtInNumberFormat(), Object.keys(i3).forEach((function(n4) {
              "count" !== n4 && (t3.Cd[i3[n4]] = n4);
            }));
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.md && (t4.md.dispose(), t4.md = v), t4.pd && (t4.pd.dispose(), t4.pd = v), t4.vd = v, t4.bd = v;
          }, t3.prototype.nv = function(t4) {
            var n3, e3, i3, r2 = this, o2 = "", a2 = t4._autoFormatter, u2 = t4.formatter;
            if (!d(a2)) {
              if (!(e3 = r2.av(a2))) return;
              n3 = "a" + G(e3), r2.bd[n3] !== v ? o2 += "a:" + r2.bd[n3] + "," : (i3 = r2.pd.getTextIndex(JSON.stringify(e3)), r2.bd[n3] = i3, o2 += "a:" + i3 + ",");
            }
            if (u2 !== v && !T(u2)) {
              if (!(e3 = r2.av(u2))) return;
              n3 = "f" + G(e3), r2.bd[n3] !== v ? o2 += "f:" + r2.bd[n3] + "," : (i3 = r2.pd.getTextIndex(JSON.stringify(e3)), r2.bd[n3] = i3, o2 += "f:" + i3 + ",");
            }
            if (o2) return r2.md.getTextIndex(o2.substring(0, o2.length - 1));
          }, t3.prototype.ev = function(t4) {
            var n3, e3, i3 = this, r2 = i3.vd;
            return r2[t4] ? r2[t4] : (n3 = i3.md.getText(t4), e3 = {}, n3.split(",").forEach((function(t5) {
              var n4, r3, o2, a2 = t5.split(":"), u2 = a2[0], s2 = a2[1];
              "a" === u2 ? (n4 = i3.fromSJSFormatString(i3.pd.getText(+s2))) && (o2 = (r3 = l.Formatter) && r3.GeneralFormatter) && (e3._autoFormatter = new o2(n4.formatCached, n4.customerCultureName), e3._autoFormatter.isAuto = true) : "f" === u2 && (e3.formatter = i3.fromSJSFormatString(i3.pd.getText(+s2)));
            })), r2[t4] = e3, e3);
          }, t3.prototype.uv = function(t4) {
            var n3 = this, e3 = n3.wd;
            return e3[t4] ? e3[t4] : n3.sv(t4);
          }, t3.prototype.sv = function(t4) {
            var n3, e3;
            if (t4 !== v) {
              if ((n3 = c.ExtendedNumberFormatHelper.builtInNumberFormat())[t4] !== v) return n3[t4];
              if ((e3 = c.ExtendedNumberFormatHelper.languageIndepedentNumberFormat())[t4] !== v) return e3[t4];
            }
          }, t3.prototype.fromSJSFormatString = function(t4) {
            var n3, e3, i3 = this, r2 = i3.wd, o2 = JSON.parse(t4), s2 = o2.n, c2 = o2.c;
            return d(o2.json) ? -1 === s2 ? null : "string" == typeof c2 ? (r2[s2] = c2, c2) : c2 && !d(c2.typeName) && (n3 = a.getTypeFromString(c2.typeName)) ? ((e3 = new n3()).fromJSON(c2), r2[s2] = e3, e3) : (d(s2) || c2 && c2.formatCached || (c2 = i3.sv(s2)), r2[s2] = c2, c2) : (0, u.Juo)(JSON.parse(i3.yd.getObject(o2.json)));
          }, t3.prototype.av = function(n3) {
            var e3, i3, r2 = this, o2 = n3;
            return o2 === p ? { n: -1, c: null } : ("object" == typeof o2 && (o2.toJSON && (e3 = o2.toJSON()), o2.formatCached ? o2 = o2.formatCached : e3 && (o2 = JSON.stringify(e3))), o2 ? ((i3 = t3.Cd[o2]) === v && this.bd[o2] === v && (i3 = ++c.ExtendedNumberFormatHelper.Ih), { n: i3, c: o2, json: e3 && r2.yd.getObjectIndex(e3) }) : void 0);
          }, t3.prototype.iv = function(t4) {
            var n3 = this;
            t4.numFmts = n3.md.wh(), t4.formatStrings = n3.pd.wh();
          }, t3.prototype.rv = function(t4) {
            var n3, e3, i3 = this;
            if (i3.md.yh(t4.numFmts), i3.pd.yh(t4.formatStrings), t4.numFmts && t4.numFmts.length > 0) for (n3 = 0, e3 = t4.numFmts.length; n3 < e3; n3++) i3.ev(n3);
          }, t3.Cd = {}, t3;
        })(), D = (function() {
          function t3() {
            var t4 = this;
            t4.Td = [], t4.Ad = new x();
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.Ad && (t4.Ad.dispose(), t4.Ad = v), t4.Td = v;
          }, t3.prototype.nv = function(t4, n3) {
            var e3, i3 = "", r2 = t4.hAlign;
            if (d(r2) || (3 === n3 || !n3) && 3 === r2 || 2 === n3 && 1 === r2 || 1 === n3 && 1 === r2 || (i3 += "h:" + r2 + ","), e3 = t4.vAlign, d(e3) || (3 === n3 || !n3) && 2 === e3 || 2 === n3 && 1 === e3 || 1 === n3 && 1 === e3 || (i3 += "v:" + e3 + ","), d(t4.textOrientation) || (i3 += "x:" + t4.textOrientation + ","), d(t4.textIndent) || (i3 += "i:" + t4.textIndent + ","), d(t4.shrinkToFit) || (i3 += "s:" + L(t4.shrinkToFit) + ","), d(t4.wordWrap) || (i3 += "w:" + L(t4.wordWrap) + ","), i3) return this.Ad.getTextIndex(i3.substring(0, i3.length - 1));
          }, t3.prototype.ev = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Td;
            return r2[t4] ? r2[t4] : (n3 = i3.Ad.getText(t4), e3 = new u.Style(), n3.split(",").forEach((function(t5) {
              var n4 = t5.split(":"), i4 = n4[0], r3 = n4[1];
              switch (i4) {
                case "h":
                  e3.hAlign = +r3;
                  break;
                case "v":
                  e3.vAlign = +r3;
                  break;
                case "x":
                  e3.textOrientation = +r3;
                  break;
                case "i":
                  e3.textIndent = +r3;
                  break;
                case "s":
                  e3.shrinkToFit = g(r3);
                  break;
                case "w":
                  e3.wordWrap = g(r3);
                  break;
                case "td":
                  e3.textDirection = +r3;
              }
            })), e3);
          }, t3.prototype.iv = function(t4) {
            t4.alignments = this.Ad.wh();
          }, t3.prototype.rv = function(t4) {
            this.Ad.yh(t4.alignments);
          }, t3;
        })(), _ = (function() {
          function t3() {
            var t4 = this;
            t4.xd = [], t4.Nd = new x();
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.Nd && (t4.Nd.dispose(), t4.Nd = v), t4.xd = v;
          }, t3.prototype.nv = function(t4) {
            var n3 = "";
            if (d(t4.locked) || (n3 += "l:" + L(t4.locked) + ","), d(t4.hidden) || (n3 += "hi:" + L(t4.hidden) + ","), d(t4.allowEditInCell) || (n3 += "ec:" + L(t4.allowEditInCell) + ","), n3) return this.Nd.getTextIndex(n3.substring(0, n3.length - 1));
          }, t3.prototype.ev = function(t4) {
            var n3, e3, i3 = this, r2 = i3.xd;
            return r2[t4] ? r2[t4] : (n3 = i3.Nd.getText(t4), e3 = new u.Style(), n3.split(",").forEach((function(t5) {
              var n4 = t5.split(":"), i4 = n4[0], r3 = n4[1];
              "l" === i4 ? e3.locked = g(r3) : "hi" === i4 ? e3.hidden = g(r3) : "ec" === i4 && (e3.allowEditInCell = g(r3));
            })), e3);
          }, t3.prototype.iv = function(t4) {
            t4.protections = this.Nd.wh();
          }, t3.prototype.rv = function(t4) {
            this.Nd.yh(t4.protections);
          }, t3;
        })(), O = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.kd = new x(), i3.Dd = new j(n3, e3), i3._d = new k(t4, n3), i3.Lfe = new k(t4, n3), i3.Ed = new I(t4), i3.jd = new N(t4), i3.Qve = new D(), i3.Kve = new _(), i3.yd = e3;
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.kd && (t4.kd.dispose(), t4.kd = v), t4.Dd && (t4.Dd.dispose(), t4.Dd = v), t4._d && (t4._d.dispose(), t4._d = v), t4.Ed && (t4.Ed.dispose(), t4.Ed = v), t4.jd && (t4.jd.dispose(), t4.jd = v), t4.Qve && (t4.Qve.dispose(), t4.Qve = v), t4.Kve && (t4.Kve.dispose(), t4.Kve = v);
          }, t3.prototype.cv = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, p2 = "";
            if (t4 && ((e3 = h2.Qve.nv(t4)) !== v && n3 && (p2 += "a:" + e3 + ","), (i3 = h2.Ed.nv(t4)) !== v && (p2 += "c:" + i3 + ","), (r2 = h2._d.nv(t4)) !== v && (p2 += "f:" + r2 + ","), (o2 = h2.jd.nv(t4)) !== v && (p2 += "b:" + o2 + ","), (a2 = h2.Dd.nv(t4)) !== v && (p2 += "j:" + a2 + ","), (u2 = h2.Kve.nv(t4)) !== v && n3 && (p2 += "pr:" + u2 + ","), s2 = h2.yd, d(t4.cellType) || (c2 = s2.getObjectIndex(t4.cellType), d(c2) || (p2 += "ct:" + c2 + ",")), d(t4.cellButtons) || (f2 = s2.getObjectIndex(t4.cellButtons), d(f2) || (p2 += "cb:" + f2 + ",")), d(t4.dropDowns) || (l2 = s2.getObjectIndex(t4.dropDowns), d(l2) || (p2 += "dd:" + l2 + ",")), "" !== (p2 = p2.substring(0, p2.length - 1)))) return h2.kd.getTextIndex(p2);
          }, t3.prototype.fv = function(t4, n3, e3, i3) {
            var r2, o2 = this, a2 = o2.kd.getText(t4);
            if (a2) return n3 = n3 || new u.Style(), r2 = o2.yd, a2.split(",").forEach((function(t5) {
              var a3, u2, s2, c2, f2, l2, h2, d2 = t5.split(":"), v2 = d2[0], p2 = d2[1];
              switch (v2) {
                case "a":
                  i3 && (a3 = o2.Qve.ev(+p2), U(n3, a3));
                  break;
                case "c":
                  u2 = o2.Ed.ev(+p2, e3, true), n3.backColor = u2;
                  break;
                case "f":
                  s2 = o2._d.ev(+p2), U(n3, s2);
                  break;
                case "pf":
                  s2 = o2.Lfe.ev(+p2), U(n3, s2);
                  break;
                case "b":
                  c2 = o2.jd.ev(+p2), U(n3, c2);
                  break;
                case "j":
                  f2 = o2.Dd.ev(+p2), U(n3, f2);
                  break;
                case "pr":
                  i3 && (l2 = o2.Kve.ev(+p2), U(n3, l2));
                  break;
                case "ct":
                  (h2 = H(r2, p2)) && (n3.cellType = h2);
                  break;
                case "cb":
                  n3.cellButtons = JSON.parse(r2.getObject(+p2));
                  break;
                case "dd":
                  n3.dropDowns = JSON.parse(r2.getObject(+p2));
              }
            })), n3;
          }, t3.prototype.iv = function() {
            var t4 = this, n3 = {};
            return n3.cellXfs = t4.kd.wh(), t4.Dd.iv(n3), t4._d.iv(n3), t4.Ed.iv(n3), t4.jd.iv(n3), t4.Qve.iv(n3), t4.Kve.iv(n3), n3;
          }, t3.prototype.rv = function(t4) {
            if (t4) {
              var n3 = this;
              t4 && (n3.kd.yh(t4.cellXfs), n3.Dd.rv(t4), n3._d.rv(t4), n3.Lfe.rv(t4, true), n3.Ed.rv(t4), n3.jd.rv(t4), n3.Qve.rv(t4), n3.Kve.rv(t4));
            }
          }, t3;
        })(), n2.SharedDxfs = O, E = (function() {
          function t3() {
            var t4 = this;
            t4.Od = new x(), t4.cd = new x(), t4.yd = new A(), t4.Dd = new j(t4.cd, t4.yd), t4._d = new k(t4.Od, t4.cd), t4.Ed = new I(t4.Od, ['{"t":0}', '{"t":5}']), t4.jd = new N(t4.Od), t4.Rd = new x(), t4.Bd = new x(), t4.Ld = new x(), t4.kd = new O(t4.Od, t4.cd, t4.yd), t4.Fd = {}, t4.Pd = {}, t4.Gd = {}, t4.Ud = {}, t4.Hd = {}, t4.zd = [], t4.Vd = {}, t4.Yd = {}, t4.Zd = {}, t4.originCellXfs = new x(), t4.originNamedStylesXfs = new x(), t4.Wd = {}, t4.Qd = {}, t4.Kd = {}, t4.Jd = "__builtInStyle", t4.Xd = "__builtInTableStyle", t4.qd = i2.BUILT_IN_STYLE_REGEX, t4.$d = 0;
          }
          return t3.prototype.dispose = function() {
            var t4 = this;
            t4.Od && (t4.Od.dispose(), t4.Od = v), t4.cd && (t4.cd.dispose(), t4.cd = v), t4.yd && (t4.yd.dispose(), t4.yd = v), t4.Dd && (t4.Dd.dispose(), t4.Dd = v), t4._d && (t4._d.dispose(), t4._d = v), t4.Ed && (t4.Ed.dispose(), t4.Ed = v), t4.jd && (t4.jd.dispose(), t4.jd = v), t4.Rd && (t4.Rd.dispose(), t4.Rd = v), t4.Bd && (t4.Bd.dispose(), t4.Bd = v), t4.Ld && (t4.Ld.dispose(), t4.Ld = v), t4.kd && (t4.kd.dispose(), t4.kd = v), t4.Fd = {}, t4.Pd = {}, t4.Gd = {}, t4.Ud = {}, t4.Hd = {}, t4.Vd = {}, t4.zd.length = 0, t4.Yd = {}, t4.Zd = {}, t4.originCellXfs && (t4.originCellXfs.dispose(), t4.originCellXfs = v), t4.originNamedStylesXfs && (t4.originNamedStylesXfs.dispose(), t4.originNamedStylesXfs = v), t4.Wd = {}, t4.Qd = {}, t4.Kd = {};
          }, t3.prototype.lv = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2, c2, f2, l2, h2, p2, g2, m2, b2, M2, C2, S2 = this, x2 = S2.cd, A2 = S2.yd, I2 = "";
            return e3 !== v && (I2 += "t:" + e3 + ","), (o2 = S2.Ed.nv(t4)) !== v && (I2 += "c:" + o2 + ","), (a2 = S2._d.nv(t4)) !== v && (I2 += "f:" + a2 + ","), u2 = t4.hAlign, d(u2) || !i3 && ((3 === n3 || !n3) && 3 === u2 || 2 === n3 && 1 === u2 || 1 === n3 && 1 === u2) || (I2 += "h:" + u2 + ","), s2 = t4.vAlign, 2 === n3 && 1 === s2 || 1 === n3 && 1 === s2 || (d(s2) ? i3 || (I2 += "v:0,") : I2 += "v:" + s2 + ","), (c2 = S2.jd.nv(t4)) !== v && (I2 += "b:" + c2 + ","), d(t4.locked) || (I2 += "l:" + L(t4.locked) + ","), d(t4.hidden) || (I2 += "hi:" + L(t4.hidden) + ","), d(t4.allowEditInCell) || (I2 += "ec:" + L(t4.allowEditInCell) + ","), d(t4.wordWrap) || (I2 += "w:" + L(t4.wordWrap) + ","), d(t4.showEllipsis) || (I2 += "se:" + L(t4.showEllipsis) + ","), d(t4._showTip) || (I2 += "st:" + L(t4._showTip) + ","), d(t4.shrinkToFit) || (I2 += "s:" + L(t4.shrinkToFit) + ","), d(t4.tabStop) || (I2 += "ts:" + L(t4.tabStop) + ","), d(t4.quotePrefix) || (I2 += "q:" + L(t4.quotePrefix) + ","), d(t4.isVerticalText) || (I2 += "va:" + L(t4.isVerticalText) + ","), d(t4.applyFont) || (I2 += "y:" + L(t4.applyFont) + ","), d(t4.applyFill) || (I2 += "z:" + L(t4.applyFill) + ","), d(t4.applyAlignment) || (I2 += "r:" + L(t4.applyAlignment) + ","), d(t4.applyBorder) || (I2 += "e:" + L(t4.applyBorder) + ","), d(t4.applyProtection) || (I2 += "u:" + L(t4.applyProtection) + ","), d(t4.applyNumberFormat) || (I2 += "g:" + L(t4.applyNumberFormat) + ","), d(t4.textIndent) || (I2 += "i:" + t4.textIndent + ","), f2 = t4.imeMode, d(f2) || 1 === f2 || (I2 += "im:" + f2 + ","), d(t4.opacity) || (I2 += "o:" + t4.opacity + ","), d(t4.backgroundImageLayout) || (I2 += "bl:" + t4.backgroundImageLayout + ","), d(t4.textOrientation) || (I2 += "x:" + t4.textOrientation + ","), d(t4.backgroundImage) || (I2 += "bi:" + x2.getTextIndex(t4.backgroundImage) + ","), d(t4.watermark) || (I2 += "k:" + x2.getTextIndex(t4.watermark) + ","), d(t4.cellPadding) || (I2 += "p:" + x2.getTextIndex(t4.cellPadding) + ","), d(t4.textBaseline) || (I2 += "tb:" + x2.getTextIndex(t4.textBaseline) + ","), d(t4.labelOptions) || (I2 += "lo:" + x2.getTextIndex(JSON.stringify(t4.labelOptions)) + ","), d(t4.cellType) || (l2 = A2.getObjectIndex(t4.cellType), d(l2) || (I2 += "ct:" + l2 + ",")), d(t4.cellButtons) || (h2 = A2.getObjectIndex(t4.cellButtons), d(h2) || (I2 += "cb:" + h2 + ",")), d(t4.dropDowns) || ((p2 = t4.dropDowns).length > 0 && (p2 = p2.map((function(t5) {
              var n4, e4, i4, o3, a3 = R(R({}, t5), { option: R({}, t5.option) });
              return a3.type === r.DropDownType.dateTimePicker && ((null === (n4 = t5.option) || void 0 === n4 ? void 0 : n4.defaultDateTime) && (o3 = a3.option.defaultDateTime, y(o3) ? a3.option.defaultDateTime = w(o3) : "object" == typeof o3 && y(o3.start) && y(o3.end) && (a3.option.defaultDateTime = { start: w(o3.start), end: w(o3.end) })), (null === (e4 = t5.option) || void 0 === e4 ? void 0 : e4.maxDate) && (a3.option.maxDate = w(a3.option.maxDate)), (null === (i4 = t5.option) || void 0 === i4 ? void 0 : i4.minDate) && (a3.option.minDate = w(a3.option.minDate))), a3;
            }))), g2 = A2.getObjectIndex(p2), d(g2) || (I2 += "dd:" + g2 + ",")), d(t4.decoration) || (m2 = A2.getObjectIndex(t4.decoration), d(m2) || (I2 += "dc:" + m2 + ",")), d(t4.mask) || (b2 = A2.getObjectIndex(t4.mask), d(b2) || (I2 += "ma:" + b2 + ",")), !d(t4.formatter) && T(t4.formatter) && (I2 += "fs:" + (M2 = x2.getTextIndex(t4.formatter)) + ","), (C2 = S2.Dd.nv(t4)) !== v && (I2 += "j:" + C2 + ","), d(t4.textDirection) || (I2 += "td:" + t4.textDirection + ","), I2.substring(0, I2.length - 1);
          }, t3.prototype.vv = function(t4, n3) {
            var e3, i3, o2, a2, s2;
            if (t4) return e3 = new u.Style(), o2 = (i3 = this).cd, a2 = i3.yd, s2 = i3.Hd, t4.split(",").forEach((function(t5) {
              var u2, c2, f2, l2, h2, p2, m2 = t5.split(":"), b2 = m2[0], y2 = m2[1];
              switch (b2) {
                case "t":
                  e3.sheetId = +y2;
                  break;
                case "c":
                  u2 = i3.Ed.ev(+y2), e3.backColor = u2;
                  break;
                case "f":
                  c2 = i3._d.ev(+y2), U(e3, c2);
                  break;
                case "h":
                  e3.hAlign = +y2;
                  break;
                case "v":
                  e3.vAlign = +y2;
                  break;
                case "b":
                  f2 = i3.jd.ev(+y2, n3), U(e3, f2);
                  break;
                case "l":
                  e3.locked = g(y2);
                  break;
                case "hi":
                  e3.hidden = g(y2);
                  break;
                case "ec":
                  e3.allowEditInCell = g(y2);
                  break;
                case "w":
                  e3.wordWrap = g(y2);
                  break;
                case "se":
                  e3.showEllipsis = g(y2);
                  break;
                case "st":
                  e3._showTip = g(y2);
                  break;
                case "s":
                  e3.shrinkToFit = g(y2);
                  break;
                case "ts":
                  e3.tabStop = g(y2);
                  break;
                case "q":
                  e3.quotePrefix = g(y2);
                  break;
                case "va":
                  e3.isVerticalText = g(y2);
                  break;
                case "y":
                  e3.applyFont = g(y2);
                  break;
                case "z":
                  e3.applyFill = g(y2);
                  break;
                case "r":
                  e3.applyAlignment = g(y2);
                  break;
                case "e":
                  e3.applyBorder = g(y2);
                  break;
                case "u":
                  e3.applyProtection = g(y2);
                  break;
                case "g":
                  e3.applyNumberFormat = g(y2);
                  break;
                case "i":
                  e3.textIndent = +y2;
                  break;
                case "im":
                  e3.imeMode = +y2;
                  break;
                case "o":
                  e3.opacity = +y2;
                  break;
                case "bl":
                  e3.backgroundImageLayout = +y2;
                  break;
                case "x":
                  e3.textOrientation = +y2;
                  break;
                case "bi":
                  e3.backgroundImage = o2.getText(+y2);
                  break;
                case "n":
                  e3.parentName = d(y2) || !n3 && 0 === +y2 ? v : s2[y2];
                  break;
                case "k":
                  e3.watermark = o2.getText(+y2);
                  break;
                case "p":
                  e3.cellPadding = o2.getText(+y2);
                  break;
                case "tb":
                  e3.textBaseline = o2.getText(+y2);
                  break;
                case "lo":
                  e3.labelOptions = JSON.parse(o2.getText(+y2));
                  break;
                case "ct":
                  (l2 = H(a2, y2)) && (e3.cellType = l2);
                  break;
                case "cb":
                  e3.cellButtons = JSON.parse(a2.getObject(+y2));
                  break;
                case "dd":
                  (h2 = JSON.parse(a2.getObject(+y2))) && h2.length > 0 && h2.forEach((function(t6) {
                    var n4, e4, i4, o3;
                    t6.type === r.DropDownType.dateTimePicker && ((null === (n4 = t6.option) || void 0 === n4 ? void 0 : n4.defaultDateTime) && ("string" == typeof (o3 = t6.option.defaultDateTime) ? t6.option.defaultDateTime = M(o3) : "object" == typeof o3 && (t6.option.defaultDateTime = { start: M(o3.start), end: M(o3.end) })), (null === (e4 = t6.option) || void 0 === e4 ? void 0 : e4.maxDate) && (t6.option.maxDate = M(t6.option.maxDate)), (null === (i4 = t6.option) || void 0 === i4 ? void 0 : i4.minDate) && (t6.option.minDate = M(t6.option.minDate)));
                  })), e3.dropDowns = h2;
                  break;
                case "dc":
                  e3.decoration = JSON.parse(a2.getObject(+y2));
                  break;
                case "ma":
                  e3.mask = JSON.parse(a2.getObject(+y2));
                  break;
                case "fs":
                  e3.formatter = o2.getText(+y2);
                  break;
                case "j":
                  p2 = i3.Dd.ev(+y2), U(e3, p2);
                  break;
                case "td":
                  e3.textDirection = +y2;
              }
            })), e3;
          }, t3.prototype.mv = function(t4, n3) {
            var e3 = this;
            if (!d(t4)) return n3 && e3.gv && e3.gv[t4] && e3.gv[t4][n3] && (t4 = e3.gv[t4][n3]), t4;
          }, t3.prototype.getNamedStyle = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.Rd, a2 = o2.getText(t4);
            if (a2 !== v) return (i3 = a2 ? r2.vv(a2, e3) : new u.Style()).name = n3, r2.Hd[t4] = n3, i3;
          }, t3.prototype.getNamedStyleIndex = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2;
            if (t4) return a2 = (o2 = this).Rd, u2 = o2.Pd, s2 = o2.qd, f2 = o2.Kd, l2 = t4.name, l2 = o2.mv(l2, e3), h2 = o2.lv(t4, n3, i3, true), (!r2 || l2 && !s2.test(l2)) && (c2 = a2.getTextIndex(h2), u2[l2] = c2, f2[c2] = { parentName: t4.parentName, name: l2 }), c2;
          }, t3.prototype.updateNamedStylesParentName = function() {
            var t4 = this, n3 = t4.Rd, e3 = t4.Pd, i3 = t4.Kd;
            Object.keys(i3).forEach((function(t5) {
              var r2, o2, a2 = i3[t5], u2 = a2.parentName, s2 = a2.name;
              d(u2) || d(e3[u2]) || (r2 = n3.getText(+t5), o2 = n3.getTextIndex(r2 + (r2.length > 0 ? ",n:" : "n") + e3[u2]), e3[s2] = +o2);
            }));
          }, t3.prototype.addStyleParent = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            if (n3) for (o2 = (r2 = this).originNamedStylesXfs, a2 = e3 ? t4 : null === (i3 = n3.u8(t4)) || void 0 === i3 ? void 0 : i3.parentName; a2 && u2 !== a2; ) o2.setTextValue(a2), a2 = null == (s2 = n3.u8(a2)) ? void 0 : s2.parentName, u2 = null == s2 ? void 0 : s2.name;
          }, t3.prototype.getStyle = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Yd, u2 = a2[t4];
            return u2 !== v ? u2 : (e3 = (n3 = o2.Ud)[t4]) !== v ? e3 : (r2 = (i3 = o2.Bd) && i3.getText(t4)) !== v ? (e3 = o2.vv(r2, false), n3[t4] = e3, e3) : void 0;
          }, t3.prototype.MUr = function(t4) {
            var n3;
            return null === (n3 = this.Bd) || void 0 === n3 ? void 0 : n3.getText(t4);
          }, t3.prototype.getStyleIndex = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2;
            if (t4) {
              if (o2 = (i3 = this).Pd, a2 = i3.Rd, u2 = i3.Bd, s2 = i3.qd, "string" == typeof t4) {
                if (f2 = o2[t4 = i3.mv(t4, e3)], !(c2 = a2.getText(f2))) return;
                return c2.length && "," !== c2[c2.length - 1] && (c2 += ","), c2 += "d:" + f2, +u2.getTextIndex(c2);
              }
              if (l2 = t4._id, h2 = i3.Fd, l2 !== v && (r2 = h2[l2]) !== v) return r2;
              if (((d2 = t4.name) === v || s2.test(d2)) && (d2 = t4.parentName), d2 = i3.mv(d2, e3), c2 = i3.lv(t4, n3)) return c2.length && "," !== c2[c2.length - 1] && (c2 += ","), d2 !== v && o2[d2] !== v ? c2 += "n:" + o2[d2] : c2 += "n:0", r2 = u2.getTextIndex(c2), h2[l2] = r2, r2;
            }
          }, t3.prototype.getOriginNamedStyleIndex = function(t4, n3) {
            var e3 = this, i3 = e3.originNamedStylesXfs;
            return e3.addStyleParent(t4, n3), +i3.getTextIndex(t4);
          }, t3.prototype.getOriginStyleIndex = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this, c2 = s2.Wd, f2 = s2.originCellXfs;
            return t4 ? (r2 = t4._id) !== v && (i3 = c2[r2]) !== v ? i3 : (o2 = s2.Pd, a2 = s2.lv(t4, e3, void 0, true), t4.name && !d(o2[t4.name]) && (a2.length && "," !== a2[a2.length - 1] && (a2 += ","), a2 += "d:" + o2[t4.name]), (u2 = t4.parentName) && !d(o2[u2]) && (s2.addStyleParent(u2, n3, true), a2.length && "," !== a2[a2.length - 1] && (a2 += ","), a2 += "n:" + o2[u2]), +f2.getTextIndex(a2)) : +f2.getTextIndex(p);
          }, t3.prototype.getOriginStyle = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.originCellXfs, s2 = o2.Qd;
            return a2.getText(t4) === p ? p : s2[t4] !== v ? ((n3 = new u.Style()).fromJSON(s2[t4], v, v), n3) : (e3 = a2.getText(t4)) ? ((i3 = o2.vv(e3, true)) ? (r2 = i3.toJSON(), i3._autoFormatter && (r2 || (r2 = {}), r2.autoFormatter || (r2.autoFormatter = { formatCached: i3._autoFormatter.formatCached, customerCultureName: i3._autoFormatter.customerCultureName })), (i3 = new u.Style()).fromJSON(r2, v, v)) : r2 = p, s2[t4] = r2, i3) : p;
          }, t3.prototype.getOriginNamedStyle = function(t4) {
            var n3, e3;
            return this.originNamedStylesXfs.getText(t4);
          }, t3.prototype.getDxf = function(t4, n3, e3, i3) {
            var r2, o2;
            return this.kd.fv(t4, n3, e3, i3);
          }, t3.prototype.getDxfIndex = function(t4, n3) {
            var e3, i3 = this.kd;
            return t4 ? i3.cv(t4, n3) : v;
          }, t3.prototype.addTableStyle = function(t4) {
            this.zd.filter((function(n3) {
              return n3.name === t4.name;
            })).length > 0 || this.zd.push(t4);
          }, t3.prototype.addDefaultStyleName = function(t4, n3) {
            this.Vd[t4] = n3;
          }, t3.prototype.getDefaultStyleName = function(t4) {
            return this.Vd[t4];
          }, t3.prototype.getFormatCodeByNumFmtId = function(t4) {
            return this.Dd.uv(t4);
          }, t3.prototype.buildDummyNamedStyles = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.Bd, a2 = r2.Jd, u2 = o2.td.length, s2 = r2.Yd, c2 = 0, f2 = r2.Hd, l2 = r2.Xd, h2 = r2.$d;
            if (f2 && (Object.keys(f2).forEach((function(t5) {
              var n4, e4, i4 = f2[t5], r3 = i4 && i4.indexOf(a2);
              r3 >= 0 && (n4 = parseInt(i4.substring(r3 + 14), 10)) > c2 && (c2 = n4), (e4 = i4 && i4.indexOf(l2)) >= 0 && (n4 = parseInt(i4.substring(e4 + 19), 10)) > h2 && (h2 = n4);
            })), r2.$d = h2), u2 > 0) for (n3 = 0; n3 < u2; n3++) V(e3 = r2.getStyle(n3)), i3 = a2 + (n3 + c2), e3.name = i3, t4.addNamedStyle(e3), s2[n3] = i3;
          }, t3.prototype.yh = function(n3, e3) {
            var i3 = this;
            n3 && (n3.sharedColors && i3.Od.yh(n3.sharedColors), n3.commonSharedStrings && i3.cd.yh(n3.commonSharedStrings), n3.cellXfs && i3.Bd.yh(n3.cellXfs), n3.cellStyleXfs && i3.Rd.yh(n3.cellStyleXfs), n3.sharedObjects && i3.yd.yh(n3.sharedObjects), n3.originCellXfs && i3.originCellXfs.yh(n3.originCellXfs), n3.originNamedStylesXfs && i3.originNamedStylesXfs.yh(n3.originNamedStylesXfs), i3.Ed.rv(n3), i3.Dd.rv(n3), i3._d.rv(n3), i3.jd.rv(n3), i3.kd.rv(n3.dxfs), i3.Vd = b(n3.defaultStyleNames) || {}, t3.fh && m(t3.fh, (function(t4, e4) {
              e4.yh && e4.yh.call(i3, n3);
            })));
          }, t3.prototype.wh = function(n3) {
            var e3 = this, i3 = { sharedColors: e3.Od.wh(), commonSharedStrings: e3.cd.wh(), cellXfs: e3.Bd.wh(), cellStyleXfs: e3.Rd.wh(), sharedObjects: e3.yd.wh(), namedStylesMap: e3.Pd, defaultStyleNames: b(e3.Vd), originCellXfs: e3.originCellXfs.wh(), originNamedStylesXfs: e3.originNamedStylesXfs.wh() };
            return e3.Dd.iv(i3), e3._d.iv(i3), e3.Ed.iv(i3), e3.jd.iv(i3), i3.dxfs = e3.kd.iv(), (e3.zd.length > 0 || Object.keys(e3.Vd).length > 0) && (i3.tableStyles = { n_: "tableStyles", c_: [].concat(e3.zd), defaultPivotStyle: e3.getDefaultStyleName("defaultPivotStyle") || "PivotStyleLight16", defaultTableStyle: e3.getDefaultStyleName("defaultTableStyle") || "TableStyleMedium2", count: e3.zd.length }), t3.fh && m(t3.fh, (function(t4, n4) {
              n4.wh && n4.wh.call(e3, i3);
            })), i3;
          }, t3.prototype.bv = function(t4, n3) {
            for (var e3 in n3) n3.hasOwnProperty(e3) && (t4[e3] = n3[e3]);
            return t4;
          }, t3;
        })(), n2.StyleManager = E, (0, s.$e)(E);
      }, "./dist/core/util/tasks.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a, u, s = this && this.qKr || (c = function(t3, n3) {
          return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, c(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          c(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), c;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.LoadTasks = n2.LoadTask = n2.Tasks = n2.Task = void 0, e2 = 100, i2 = 10, r = (function() {
          function t3(t4, n3) {
            this.fn = t4, this.args = n3;
          }
          return t3.prototype.dispose = function() {
            this.fn = void 0, this.args = void 0;
          }, t3.prototype.run = function() {
            this.fn.apply(null, this.args);
          }, t3;
        })(), n2.Task = r, o = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.tasks = [], e3.nextTaskFunc = t4.bind(e3), e3.isBusyFunc = n3.bind(e3);
          }
          return Object.defineProperty(t3.prototype, "hasPendingTask", { get: function() {
            var t4 = this.tasks;
            return t4 && t4.length > 0;
          }, enumerable: false, configurable: true }), t3.prototype.addTask = function(t4, n3, e3) {
            this.tasks.splice(0, 0, new r(t4, n3));
          }, t3.prototype.pushTask = function(t4, n3, e3) {
            this.tasks.push(new r(t4, n3));
          }, t3.prototype.runNextTask = function() {
            var t4, n3 = this, r2 = n3.tasks;
            n3.isTerminated || (r2.length < 1 ? n3.endingCallback && n3.endingCallback() : n3.isBusyFunc() ? setTimeout((function() {
              n3.runNextTask();
            }), e2) : ((t4 = n3.nextTaskFunc()).run(), setTimeout((function() {
              n3.runNextTask();
            }), i2)));
          }, t3.prototype.start = function() {
            var t4;
            this.runNextTask();
          }, t3.prototype.terminate = function() {
            var t4 = this;
            t4.tasks && (t4.tasks.forEach((function(t5) {
              t5.dispose();
            })), t4.tasks = []), t4.endingCallback = void 0, t4.isTerminated = true;
          }, t3;
        })(), n2.Tasks = o, a = (function(t3) {
          function n3(n4, e3, i3, r2, o2) {
            var a2 = t3.call(this, n4, e3) || this;
            return a2.description = i3, a2.progress = r2, a2.sheetName = o2, a2;
          }
          return s(n3, t3), n3.prototype.dispose = function() {
            this.description = void 0, this.progress = void 0, this.sheetName = void 0, t3.prototype.dispose.call(this);
          }, n3;
        })(r), n2.LoadTask = a, u = (function(t3) {
          function n3(n4, e3, i3) {
            void 0 === i3 && (i3 = function(t4) {
            });
            var r2 = t3.call(this, n4, e3) || this;
            return r2.progress = i3, r2;
          }
          return s(n3, t3), n3.prototype.runNextTask = function() {
            var t4, n4 = this, i3 = n4.tasks, r2 = n4.progress;
            n4.isTerminated || (i3.length < 1 ? n4.endingCallback && n4.endingCallback() : n4.isBusyFunc() ? setTimeout((function() {
              n4.runNextTask();
            }), e2) : ((t4 = n4.nextTaskFunc()).description && r2({ progress: t4.progress && t4.progress(), step: t4.description, sheetName: t4.sheetName }), t4.run(), t4.dispose(), setTimeout((function() {
              n4.runNextTask();
            }), 0)));
          }, n3.prototype.addTask = function(t4, n4, e3, i3, r2) {
            this.tasks.splice(0, 0, new a(t4, n4, e3, i3, r2));
          }, n3.prototype.pushTask = function(t4, n4, e3, i3, r2) {
            this.tasks.push(new a(t4, n4, e3, i3, r2));
          }, n3.prototype.terminate = function() {
            this.progress = void 0, t3.prototype.terminate.call(this);
          }, n3;
        })(o), n2.LoadTasks = u;
      }, "./dist/core/util/theme-font-script-typefaces.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ThemeFontScriptTypefaces = void 0;
        var e2 = (function() {
          function t3() {
          }
          return t3.Office = { heading: [{ script: "Jpan", typeface: "游ゴシック Light" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Tahoma" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }, { script: "Geor", typeface: "Sylfaen" }], body: [{ script: "Jpan", typeface: "游ゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Tahoma" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }, { script: "Geor", typeface: "Sylfaen" }] }, t3.Office2007 = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Tahoma" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Tahoma" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.LucidaBook = { heading: [{ script: "Grek", typeface: "Arial" }, { script: "Cyrl", typeface: "Arial" }, { script: "Jpan", typeface: "HG丸ｺﾞｼｯｸM-PRO" }, { script: "Hang", typeface: "휴먼옛체" }, { script: "Hans", typeface: "黑体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Levenim MT" }, { script: "Thai", typeface: "FreesiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Times New Roman" }, { script: "Cyrl", typeface: "Times New Roman" }, { script: "Jpan", typeface: "HG明朝B" }, { script: "Hang", typeface: "돋움" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "David" }, { script: "Thai", typeface: "EucrosiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.Verdana = { heading: [{ script: "Jpan", typeface: "ＭＳ ゴシック" }, { script: "Hang", typeface: "굴림" }, { script: "Hans", typeface: "微软雅黑" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Tahoma" }, { script: "Thai", typeface: "FreesiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Verdana" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ ゴシック" }, { script: "Hang", typeface: "굴림" }, { script: "Hans", typeface: "微软雅黑" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Tahoma" }, { script: "Thai", typeface: "FreesiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Verdana" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.LucidaSansUnicode = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "黑体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "黑体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.Georgia = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "돋움" }, { script: "Hans", typeface: "方正舒体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ Ｐ明朝" }, { script: "Hang", typeface: "바탕" }, { script: "Hans", typeface: "方正舒体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Angsana New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.CenturySchoolbook = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐ明朝" }, { script: "Hang", typeface: "휴먼매직체" }, { script: "Hans", typeface: "华文楷体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "KodchiangUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ Ｐ明朝" }, { script: "Hang", typeface: "휴먼매직체" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "KodchiangUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.BookmanGillSansMT = { heading: [{ script: "Grek", typeface: "Cambria" }, { script: "Cyrl", typeface: "Cambria" }, { script: "Jpan", typeface: "HG明朝E" }, { script: "Hang", typeface: "돋움" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "標楷體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Browallia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Calibri" }, { script: "Cyrl", typeface: "Calibri" }, { script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "华文新魏" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.Constantia = { heading: [{ script: "Jpan", typeface: "HG明朝E" }, { script: "Hang", typeface: "궁서" }, { script: "Hans", typeface: "华文新魏" }, { script: "Hant", typeface: "標楷體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Browallia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HG明朝E" }, { script: "Hang", typeface: "궁서" }, { script: "Hans", typeface: "华文新魏" }, { script: "Hant", typeface: "標楷體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Browallia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.GillSansMT = { heading: [{ script: "Grek", typeface: "Corbel" }, { script: "Cyrl", typeface: "Corbel" }, { script: "Jpan", typeface: "HGｺﾞｼｯｸE" }, { script: "Hang", typeface: "휴먼매직체" }, { script: "Hans", typeface: "华文中宋" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Majalla UI" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Corbel" }, { script: "Cyrl", typeface: "Corbel" }, { script: "Jpan", typeface: "HGｺﾞｼｯｸE" }, { script: "Hang", typeface: "HY엽서L" }, { script: "Hans", typeface: "华文中宋" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Majalla UI" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.FranklinGothicArial = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "HY견고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "HY중고딕" }, { script: "Hans", typeface: "黑体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Levenim MT" }, { script: "Thai", typeface: "LilyUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.FranklinGothic = { heading: [{ script: "Jpan", typeface: "HG創英角ｺﾞｼｯｸUB" }, { script: "Hang", typeface: "돋움" }, { script: "Hans", typeface: "隶书" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Aharoni" }, { script: "Thai", typeface: "LilyUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸE" }, { script: "Hang", typeface: "돋움" }, { script: "Hans", typeface: "华文楷体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Aharoni" }, { script: "Thai", typeface: "LilyUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.TrebuchetGeorgia = { heading: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "方正姚体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HG明朝B" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Times New Roman" }, { script: "Thai", typeface: "Angsana New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.CenturyGothic = { heading: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "HY중고딕" }, { script: "Hans", typeface: "幼圆" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Gisha" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "ＭＳ ゴシック" }, { script: "Hang", typeface: "HY중고딕" }, { script: "Hans", typeface: "幼圆" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Gisha" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Verdana" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.FranklinGothicPerpetua = { heading: [{ script: "Grek", typeface: "Calibri" }, { script: "Cyrl", typeface: "Calibri" }, { script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "바탕" }, { script: "Hans", typeface: "幼圆" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Aharoni" }, { script: "Thai", typeface: "LilyUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Cambria" }, { script: "Cyrl", typeface: "Cambria" }, { script: "Jpan", typeface: "HG創英ﾌﾟﾚｾﾞﾝｽEB" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "Aharoni" }, { script: "Thai", typeface: "EucrosiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.CalibriConstantia = { heading: [{ script: "Jpan", typeface: "ＭＳ Ｐゴシック" }, { script: "Hang", typeface: "HY중고딕" }, { script: "Hans", typeface: "隶书" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Traditional Arabic" }, { script: "Hebr", typeface: "Arial" }, { script: "Thai", typeface: "Cordia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HGP明朝E" }, { script: "Hang", typeface: "HY신명조" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Majalla UI" }, { script: "Hebr", typeface: "David" }, { script: "Thai", typeface: "Browallia New" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.Rockwell = { heading: [{ script: "Grek", typeface: "Cambria" }, { script: "Cyrl", typeface: "Cambria" }, { script: "Jpan", typeface: "HG明朝B" }, { script: "Hang", typeface: "바탕" }, { script: "Hans", typeface: "方正姚体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "David" }, { script: "Thai", typeface: "JasmineUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Cambria" }, { script: "Cyrl", typeface: "Cambria" }, { script: "Jpan", typeface: "HG明朝B" }, { script: "Hang", typeface: "바탕" }, { script: "Hans", typeface: "方正姚体" }, { script: "Hant", typeface: "標楷體" }, { script: "Arab", typeface: "Times New Roman" }, { script: "Hebr", typeface: "David" }, { script: "Thai", typeface: "JasmineUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "MoolBoran" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Times New Roman" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.TwCenMT = { heading: [{ script: "Grek", typeface: "Calibri" }, { script: "Cyrl", typeface: "Calibri" }, { script: "Jpan", typeface: "HGPｺﾞｼｯｸE" }, { script: "Hang", typeface: "HY얕은샘물M" }, { script: "Hans", typeface: "华文仿宋" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Levenim MT" }, { script: "Thai", typeface: "FreesiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Grek", typeface: "Calibri" }, { script: "Cyrl", typeface: "Calibri" }, { script: "Jpan", typeface: "HGPｺﾞｼｯｸE" }, { script: "Hang", typeface: "HY얕은샘물M" }, { script: "Hans", typeface: "华文仿宋" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Arial" }, { script: "Hebr", typeface: "Levenim MT" }, { script: "Thai", typeface: "FreesiaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.ConsolasCorbel = { heading: [{ script: "Jpan", typeface: "HG丸ｺﾞｼｯｸM-PRO" }, { script: "Hang", typeface: "HY중고딕" }, { script: "Hans", typeface: "华文楷体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Levenim MT" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "맑은 고딕" }, { script: "Hans", typeface: "宋体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Miriam" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.Corbel = { heading: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "HY엽서L" }, { script: "Hans", typeface: "华文楷体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Miriam" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HGｺﾞｼｯｸM" }, { script: "Hang", typeface: "HY엽서L" }, { script: "Hans", typeface: "华文楷体" }, { script: "Hant", typeface: "新細明體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Miriam" }, { script: "Thai", typeface: "DilleniaUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3.TrebuchetMS = { heading: [{ script: "Jpan", typeface: "HG丸ｺﾞｼｯｸM-PRO" }, { script: "Hang", typeface: "HY그래픽M" }, { script: "Hans", typeface: "黑体" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Gisha" }, { script: "Thai", typeface: "IrisUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Tahoma" }, { script: "Uigh", typeface: "Microsoft Uighur" }], body: [{ script: "Jpan", typeface: "HG丸ｺﾞｼｯｸM-PRO" }, { script: "Hang", typeface: "HY그래픽M" }, { script: "Hans", typeface: "华文新魏" }, { script: "Hant", typeface: "微軟正黑體" }, { script: "Arab", typeface: "Tahoma" }, { script: "Hebr", typeface: "Gisha" }, { script: "Thai", typeface: "IrisUPC" }, { script: "Ethi", typeface: "Nyala" }, { script: "Beng", typeface: "Vrinda" }, { script: "Gujr", typeface: "Shruti" }, { script: "Khmr", typeface: "DaunPenh" }, { script: "Knda", typeface: "Tunga" }, { script: "Guru", typeface: "Raavi" }, { script: "Cans", typeface: "Euphemia" }, { script: "Cher", typeface: "Plantagenet Cherokee" }, { script: "Yiii", typeface: "Microsoft Yi Baiti" }, { script: "Tibt", typeface: "Microsoft Himalaya" }, { script: "Thaa", typeface: "MV Boli" }, { script: "Deva", typeface: "Mangal" }, { script: "Telu", typeface: "Gautami" }, { script: "Taml", typeface: "Latha" }, { script: "Syrc", typeface: "Estrangelo Edessa" }, { script: "Orya", typeface: "Kalinga" }, { script: "Mlym", typeface: "Kartika" }, { script: "Laoo", typeface: "DokChampa" }, { script: "Sinh", typeface: "Iskoola Pota" }, { script: "Mong", typeface: "Mongolian Baiti" }, { script: "Viet", typeface: "Arial" }, { script: "Uigh", typeface: "Microsoft Uighur" }] }, t3;
        })();
        n2.ThemeFontScriptTypefaces = e2;
      }, "./dist/core/util/theme.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H;
        function V(t3) {
          var n3 = t3;
          return function(e3) {
            return 0 === arguments.length ? this.yv[n3] : (this.yv[t3] = h(e3), this);
          };
        }
        function z(t3) {
          return t3 <= 0 ? 0 : t3 <= 31308e-7 ? 255 * t3 * 12.92 + 0.5 : t3 < 1 ? 255 * (1.055 * Math.pow(t3, 0.4166666666666667) - 0.055) + 0.5 : 255;
        }
        function Y(t3) {
          var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2 = t3.n_.split(":").pop(), h2 = t3.val;
          if ("sysClr" === l2) {
            if (void 0 !== (n3 = O[h2.toUpperCase()])) return o.ColorHelper.hexToARGB(n3);
            if (e3 = t3.lastClr) return i3 = 4278190080 + (16777215 & parseInt(e3, 16)), o.ColorHelper.hexToARGB(i3);
          } else {
            if ("srgbClr" === l2 && h2) return i3 = 4278190080 + (16777215 & parseInt(h2, 16)), o.ColorHelper.hexToARGB(i3);
            if ("scrgbClr" === l2) return r2 = parseFloat(t3._r), a2 = parseFloat(t3.g), u2 = parseFloat(t3.b), { a: 255, r: z(r2), g: z(a2), b: z(u2) };
            if ("hslClr" === l2) return s2 = parseFloat(t3.wv), c2 = parseFloat(t3.sat), f2 = parseFloat(t3.lum), o.util.v1(s2, f2, c2);
            if ("prstClr" === l2 && h2) return o.util.m1(h2);
          }
        }
        function Z(t3) {
          var n3 = t3.toString(16).toUpperCase();
          return 1 === n3.length && (n3 = "0" + n3), n3;
        }
        function W(t3, n3) {
          return { n_: t3, c_: [{ n_: "srgbClr", val: Z(n3.r) + Z(n3.g) + Z(n3.b) }] };
        }
        function Q(t3) {
          return t3 && "'" === t3[0] && (t3 = t3.slice(1, t3.length - 1)), t3;
        }
        function K(t3, n3, e3, i3) {
          var r2, o2, a2, s2 = [{ n_: "latin", typeface: Q(t3) }];
          if (u(n3) || s2.push({ n_: "ea", typeface: Q(n3) }), e3) for (r2 = 0, o2 = e3; r2 < o2.length; r2++) a2 = o2[r2], s2.push({ n_: "font", script: a2.script, typeface: a2.typeface });
          return s2;
        }
        function J(t3, n3) {
          if (t3) return t3[n3];
        }
        function X(t3, n3, e3, i3) {
          var r2, o2;
          i3 ? (n3[e3] ? (r2 = t3.findIndex((function(t4) {
            return t4.script === e3;
          }))) > -1 && (t3[r2].typeface = i3) : t3.push({ script: e3, typeface: i3 }), n3[e3] = i3) : ((o2 = t3.findIndex((function(t4) {
            return t4.script === e3;
          }))) > -1 && t3.splice(o2, 1), delete n3[e3]);
        }
        function q(t3, n3, e3, i3) {
          if (t3) {
            if (n3) return n3;
            if (e3) return e3;
          }
          return i3;
        }
        function $(t3, n3, e3, i3) {
          var r2, o2 = null === (r2 = l.getCultureInfo()) || void 0 === r2 ? void 0 : r2.fontScriptCode;
          if (0 === t3) return e3(o2);
          ("string" == typeof n3 || u(n3)) && i3(o2);
        }
        function tt(t3, n3) {
          if (u(t3) || u(n3)) return !(u(t3) && u(n3));
          if (t3.length !== n3.length) return false;
          for (var e3 = 0, i3 = t3.length; e3 < i3; e3++) if (t3[e3].script !== n3[e3].script || t3[e3].typeface !== n3[e3].typeface) return false;
          return true;
        }
        function nt(t3) {
          return u(t3) || "" === t3;
        }
        function et(t3, n3) {
          return !!(t3 === n3 || nt(t3) && nt(n3));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Themes = n2.ThemeFonts = n2.ThemeColors = n2.Theme = n2.ThemeFont = n2.ColorScheme = void 0, i2 = e2("Common"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/util/theme-font-script-typefaces.js"), u = i2.Common.lt.ht, s = i2.Common.lt.Nh, c = i2.Common.lt.tv, f = i2.Common.ft, l = i2.Common.CultureManager, h = f._, d = parseInt, v = r.util.p0, p = o.util.xr, g = o.util.o1, m = o.util.go, b = "Gill Sans MT", y = "Franklin Gothic Book", w = "Trebuchet MS", M = 0, C = 1, S = 2, T = 3, x = 4, A = 5, I = 6, k = 7, N = 8, j = 9, D = 10, _ = 11, O = { "3DDKSHADOW": 4288716960, "3DLIGHT": 4293125091, ACTIVEBORDER: 4290032820, ACTIVECAPTION: 4288263377, APPWORKSPACE: 4289440683, BACKGROUND: 1044480, BTNFACE: 4293980400, BTNHIGHLIGHT: 4294967295, BTNSHADOW: 4288716960, BTNTEXT: 1044480, CAPTIONTEXT: 1044480, GRAYTEXT: 4285361517, HIGHLIGHT: 4281571839, HIGHLIGHTTEXT: 4294967295, INACTIVEBORDER: 4294244348, INACTIVECAPTION: 4290760155, INACTIVECAPTIONTEXT: 4282601044, INFOBK: 4294967265, INFOTEXT: 1044480, MENU: 4293980400, GRADIENTACTIVECAPTION: 4290367978, HOTLIGHT: 267413196, GRADIENTINACTIVECAPTION: 4292338930, MENUBAR: 4293980400, MENUHIGHLIGHT: 4281571839, MENUTEXT: 1044480, SCROLLBAR: 4291348680, WINDOW: 4294967295, WINDOWFRAME: 4284769380, WINDOWTEXT: 4278190080 }, (function(t3) {
          t3[t3.lt1 = 0] = "lt1", t3[t3.lt2 = 1] = "lt2", t3[t3.dk1 = 2] = "dk1", t3[t3.dk2 = 3] = "dk2", t3[t3.accent1 = 4] = "accent1", t3[t3.accent2 = 5] = "accent2", t3[t3.accent3 = 6] = "accent3", t3[t3.accent4 = 7] = "accent4", t3[t3.accent5 = 8] = "accent5", t3[t3.accent6 = 9] = "accent6", t3[t3.hlink = 10] = "hlink", t3[t3.folHlink = 11] = "folHlink";
        })(E || (E = {})), R = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2) {
            this.background1 = V(M), this.background2 = V(C), this.textColor1 = V(S), this.textColor2 = V(T), this.accent1 = V(x), this.accent2 = V(A), this.accent3 = V(I), this.accent4 = V(k), this.accent5 = V(N), this.accent6 = V(j), this.hyperlink = V(D), this.followedHyperlink = V(_), this.Zc = t4, this.yv = [];
            for (var v2 = 1; v2 < 13; v2++) this.yv.push(h(arguments[v2]));
          }
          return t3.prototype.name = function(t4) {
            return 0 === arguments.length ? this.Zc : (this.Zc = t4, this);
          }, t3.prototype.getColor = function(t4) {
            var n3, e3, i3, r2, o2;
            if (t4 && "string" == typeof t4 && (e3 = void 0, n3 = t4.split(" "))) {
              if (i3 = -1, (r2 = n3.length) > 1) {
                if (!n3[0]) return t4;
                "background" === (e3 = n3[0].toLowerCase()) ? i3 = d(n3[1], 10) - 1 : "text" === e3 ? i3 = d(n3[1], 10) + 1 : "accent" === e3 && (i3 = d(n3[1], 10) + 3);
              } else 1 === r2 && ("hyperlink" === (e3 = n3[0].toLowerCase()) ? i3 = D : "followedhyperlink" === e3 && (i3 = _));
              if (i3 >= 0 && i3 <= 11) return r2 > 2 ? (o2 = d(n3[2], 10) / 100, f.j(f.Cv(this.yv[i3], o2))) : f.j(this.yv[i3]);
            }
            return t4;
          }, t3.prototype.toJSON = function() {
            var t4 = this, n3 = t4.yv;
            return { name: t4.Zc, background1: n3[M], background2: n3[C], text1: n3[S], text2: n3[T], accent1: n3[x], accent2: n3[A], accent3: n3[I], accent4: n3[k], accent5: n3[N], accent6: n3[j], hyperlink: n3[D], followedHyperlink: n3[_] };
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2;
            function w2(t5, n4) {
              u(n4) || (e3.yv[t5] = { a: n4.a, r: n4.r, g: n4.g, b: n4.b });
            }
            t4 && (e3 = this, i3 = "_colorList", r2 = "_name", n3 ? (b2 = t4.name ? t4.name : t4[r2], u(b2) || (e3.Zc = b2), o2 = (y2 = t4.colorList ? t4.colorList : t4[i3])[M], a2 = y2[C], s2 = y2[S], c2 = y2[T], f2 = y2[x], l2 = y2[A], h2 = y2[I], d2 = y2[k], v2 = y2[N], p2 = y2[j], g2 = y2[D], m2 = y2[_]) : (u(t4.name) || (e3.Zc = t4.name), o2 = t4.background1, a2 = t4.background2, s2 = t4.text1, c2 = t4.text2, f2 = t4.accent1, l2 = t4.accent2, h2 = t4.accent3, d2 = t4.accent4, v2 = t4.accent5, p2 = t4.accent6, g2 = t4.hyperlink, m2 = t4.followedHyperlink), w2(M, o2), w2(C, a2), w2(S, s2), w2(T, c2), w2(x, f2), w2(A, l2), w2(I, h2), w2(k, d2), w2(N, v2), w2(j, p2), w2(D, g2), w2(_, m2));
          }, t3.prototype.yh = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            if (t4) for (n3 = this, e3 = t4.c_, n3.Zc = t4.name, i3 = 0, r2 = e3.length; i3 < r2; i3++) (o2 = e3[i3]) && (a2 = o2.n_.split(":").pop(), u2 = o2.c_[0], n3.yv[E[a2]] = Y(u2));
          }, t3.prototype.wh = function() {
            var t4, n3, e3, i3 = this, r2 = { n_: "clrScheme", name: i3.name() }, o2 = [], a2 = i3.yv;
            for (t4 = 0, n3 = a2.length; t4 < n3; t4++) e3 = a2[t4], 2 === t4 ? o2[0] = e3.r + e3.g + e3.b === 0 ? { n_: "dk1", c_: [{ n_: "sysClr", val: "windowText", lastClr: Z(e3.r) + Z(e3.g) + Z(e3.b) }] } : W("dk1", e3) : 0 === t4 ? o2[1] = e3.r + e3.g + e3.b === 765 ? { n_: "lt1", c_: [{ n_: "sysClr", val: "window", lastClr: Z(e3.r) + Z(e3.g) + Z(e3.b) }] } : W("lt1", e3) : 3 === t4 ? o2[2] = W("dk2", e3) : 1 === t4 ? o2[3] = W("lt2", e3) : o2.push(W("" + E[t4], e3));
            return r2.c_ = o2, r2;
          }, t3.prototype.Sv = function(t4) {
            var n3, e3, i3, r2;
            if (this.name() !== t4.name()) return false;
            for (e3 = 0, i3 = (n3 = ["textColor1", "textColor2", "background1", "background2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hyperlink", "followedHyperlink"]).length; e3 < i3; e3++) if (r2 = n3[e3], !f.Tv(this[r2](), t4[r2]())) return false;
            return true;
          }, t3;
        })(), n2.ColorScheme = R, L = (function() {
          function t3(t4, n3, e3, i3, r2) {
            this.name = v("name"), this.headingFont = v("headingFont"), this.bodyFont = v("bodyFont"), this.headingEastAsianFont = v("headingEastAsianFont"), this.bodyEastAsianFont = v("bodyEastAsianFont"), this.name(t4), this.headingFont(n3), this.bodyFont(e3), "string" == typeof i3 ? this.headingEastAsianFont(i3) : s(i3) && this.mYr(i3), "string" == typeof r2 ? this.bodyEastAsianFont(r2) : s(r2) && this.Uzr(r2);
          }
          return t3.prototype.headingFontScriptTypeface = function(t4, n3) {
            return 1 === arguments.length ? J(this.bYr, t4) : u(n3) || "string" == typeof n3 ? (u(this.yYr) && (this.yYr = [], this.bYr = {}), u(this.bYr) && (this.bYr = {}), X(this.yYr, this.bYr, t4, n3), this) : void 0;
          }, t3.prototype.bodyFontScriptTypeface = function(t4, n3) {
            return 1 === arguments.length ? J(this.$zr, t4) : u(n3) || "string" == typeof n3 ? (u(this.qzr) && (this.qzr = [], this.$zr = {}), u(this.$zr) && (this.$zr = {}), X(this.qzr, this.$zr, t4, n3), this) : void 0;
          }, t3.prototype.wYr = function(t4) {
            return t4 ? c(this.yYr, false) : this.yYr;
          }, t3.prototype.mYr = function(t4) {
            s(t4) && t4.length > 0 ? (this.yYr = c(t4, false), this.bYr = this.yYr.reduce((function(t5, n3) {
              return t5[n3.script] = n3.typeface, t5;
            }), {})) : this.yYr = this.bYr = void 0;
          }, t3.prototype.Xzr = function(t4) {
            return t4 ? c(this.qzr, false) : this.qzr;
          }, t3.prototype.Uzr = function(t4) {
            s(t4) && t4.length > 0 ? (this.qzr = c(t4, false), this.$zr = this.qzr.reduce((function(t5, n3) {
              return t5[n3.script] = n3.typeface, t5;
            }), {})) : this.qzr = this.$zr = void 0;
          }, t3.prototype.toJSON = function() {
            return { name: this.name(), headingFont: this.headingFont(), bodyFont: this.bodyFont(), headingEastAsianFont: this.headingEastAsianFont(), bodyEastAsianFont: this.bodyEastAsianFont(), headingFontScriptTypefaces: this.wYr(true), bodyFontScriptTypefaces: this.Xzr(true) };
          }, t3.prototype.fromJSON = function(t4) {
            this.name(t4.name), this.headingFont(t4.headingFont || t4.headerFont), this.bodyFont(t4.bodyFont), this.headingEastAsianFont(t4.headingEastAsianFont), this.bodyEastAsianFont(t4.bodyEastAsianFont), this.mYr(t4.headingFontScriptTypefaces), this.Uzr(t4.bodyFontScriptTypefaces);
          }, t3;
        })(), n2.ThemeFont = L, F = (function() {
          function t3(t4, n3, e3, i3) {
            var r2, o2 = this;
            this.name = v("name"), this.colors = v("colors"), this.headerFont = this.headingFont, this.fmtTheme = v("fmtTheme", void 0, (function() {
              o2.Mv = {};
            })), (r2 = this).name(t4), r2.colors(n3 || new R(t4)), "string" == typeof e3 ? this._font = new L(void 0, e3, i3) : e3 instanceof L ? this.font(e3) : this._font = new L(void 0, e3, i3);
          }
          return t3.prototype.headingFont = function(t4) {
            var n3 = this;
            return $(arguments.length, t4, (function(t5) {
              return q(t5, n3._font.headingEastAsianFont(), n3._font.headingFontScriptTypeface(t5), n3._font.headingFont());
            }), (function(e3) {
              e3 ? n3._font.headingEastAsianFont(t4) : n3._font.headingFont(t4);
            }));
          }, t3.prototype.bodyFont = function(t4) {
            var n3 = this;
            return $(arguments.length, t4, (function(t5) {
              return q(t5, n3._font.bodyEastAsianFont(), n3._font.bodyFontScriptTypeface(t5), n3._font.bodyFont());
            }), (function(e3) {
              e3 ? n3._font.bodyEastAsianFont(t4) : n3._font.bodyFont(t4);
            }));
          }, t3.prototype.font = function(t4) {
            return 0 === arguments.length ? this._font : (this._font = new L(), this._font.fromJSON(t4.toJSON()), this);
          }, t3.prototype.getColor = function(t4) {
            return this.colors().getColor(t4);
          }, t3.prototype.getFont = function(t4) {
            return "Body" === t4 ? this.bodyFont() : "Headings" === t4 ? this.headingFont() : t4;
          }, t3.prototype.toJSON = function() {
            var n3 = this, e3 = n3.name();
            return t3.Av(n3) ? e3 : { name: e3, themeColor: n3.colors() ? n3.colors().toJSON() : void 0, headingFont: n3.headingFont(), bodyFont: n3.bodyFont(), font: n3._font ? n3._font.toJSON() : void 0 };
          }, t3.prototype.fromJSON = function(t4) {
            if ("string" == typeof t4) {
              var n3 = H[t4];
              this.name(n3.name()), this.colors(n3.colors()), this.headingFont(n3.headingFont()), this.bodyFont(n3.bodyFont()), this.font(n3.font());
            } else this.name(t4.name), this.bodyFont(t4.bodyFont), this.headingFont(t4.headingFont), this.colors().fromJSON(t4.themeColor), t4.font && this._font.fromJSON(t4.font);
          }, t3.prototype.wh = function(n3) {
            var e3, i3, r2, o2 = this, a2 = o2.name();
            return false !== n3 && t3.Av(o2) ? a2 : ((e3 = o2.colors()) && (i3 = e3.wh()), r2 = { n_: "themeElements", c_: [] }, i3 && r2.c_.push(i3), r2.c_.push({ n_: "fontScheme", c_: [{ n_: "majorFont", c_: K(this._font.headingFont(), this._font.headingEastAsianFont(), this._font.wYr(), this._font.bodyEastAsianFont()) }, { n_: "minorFont", c_: K(this._font.bodyFont(), this._font.bodyEastAsianFont(), this._font.Xzr(), this._font.headingEastAsianFont()) }], name: o2._font.name() }), { n_: "theme", name: a2, c_: [r2] });
          }, t3.prototype.yh = function(t4) {
            var n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2 = this;
            "string" != typeof t4 ? (h2.Iv(t4.name), i3 = p(t4, "themeElements"), r2 = p(i3, "clrScheme"), (o2 = new R("")).yh(r2), h2.colors(o2), (a2 = p(i3, "fontScheme")) && (h2._font.headingFont(g(a2, "majorFont&latin").typeface), h2._font.bodyFont(g(a2, "minorFont&latin").typeface), s2 = null === (n3 = g(a2, "majorFont&ea")) || void 0 === n3 ? void 0 : n3.typeface, u(s2) || h2._font.headingEastAsianFont(s2), c2 = null === (e3 = g(a2, "minorFont&ea")) || void 0 === e3 ? void 0 : e3.typeface, u(c2) || h2._font.bodyEastAsianFont(c2), f2 = m(g(a2, "majorFont"), "font").map((function(t5) {
              return { script: t5.script, typeface: t5.typeface };
            })), h2._font.mYr(f2), f2 = m(g(a2, "minorFont"), "font").map((function(t5) {
              return { script: t5.script, typeface: t5.typeface };
            })), h2._font.Uzr(f2), a2.name && h2._font.name(a2.name)), (l2 = p(i3, "fmtScheme")) && h2.fmtTheme(l2)) : h2.Iv(t4);
          }, t3.prototype.Iv = function(t4) {
            var n3, e3 = this;
            t4 && "OFFICE" === t4.toUpperCase().trim() && (t4 = "Office"), e3.name(t4), (n3 = H[t4]) && (e3.colors(n3.colors()), e3.font(n3.font()));
          }, t3.Av = function(t4) {
            var n3, e3 = t4.name();
            return !!H[e3] && (n3 = H[e3], t4.bodyFont() === n3.bodyFont() && t4.headingFont() === n3.headingFont() && et(t4.font().bodyFont(), n3.font().bodyFont()) && et(t4.font().headingFont(), n3.font().headingFont()) && et(t4.font().bodyEastAsianFont(), n3.font().bodyEastAsianFont()) && et(t4.font().headingEastAsianFont(), n3.font().headingEastAsianFont()) && t4.font().name() === n3.font().name() && tt(t4.font().wYr(), n3.font().wYr()) && tt(t4.font().Xzr(), n3.font().Xzr()) && t4.colors().Sv(n3.colors()));
          }, t3;
        })(), n2.Theme = F, B = "#000000", P = "#FFFFFF", G = (function() {
          function t3() {
          }
          return t3.Default = new R("Default", P, "#EEECE1", B, "#1F497D", "#4F81BD", "#C0504D", "#9BBB59", "#8064A2", "#4BACC6", "#F79646", "#0000FF", "#800080"), t3.Office2007 = new R("Office2007", P, "#EEECE1", B, "#1F497D", "#4F81BD", "#C0504D", "#9BBB59", "#8064A2", "#4BACC6", "#F79646", "#0000FF", "#800080"), t3.Office = new R("Office", P, "#E7E6E6", B, "#44546A", "#5B9BD5", "#ED7D31", "#A5A5A5", "#FFC000", "#4472C4", "#70AD47", "#0563C1", "#954F72"), t3.Apex = new R("Apex", P, "#C9C2D1", B, "#69676D", "#CEB966", "#9CB084", "#6BB1C9", "#6585CF", "#7E6BC9", "#A379BB", "#410082", "#932968"), t3.Aspect = new R("Aspect", P, "#E3DED1", B, "#323232", "#F07F09", "#9F2936", "#1B587C", "#4E8542", "#604878", "#C19859", "#6B9F25", "#B26B02"), t3.Concourse = new R("Concourse", P, "#DEF5FA", B, "#464646", "#2DA2BF", "#DA1F28", "#EB641B", "#39639D", "#474B78", "#7D3C4A", "#FF8119", "#44B9E8"), t3.Civic = new R("Civic", P, "#C5D1D7", B, "#646B86", "#D16349", "#CCB400", "#8CADAE", "#8C7B70", "#8FB08C", "#D19049", "#00A3D6", "#694F07"), t3.Oriel = new R("Oriel", P, "#FFF39D", B, "#575F6D", "#FE8637", "#7598D9", "#B32C16", "#F5CD2D", "#AEBAD5", "#777C84", "#D2611C", "#3B435B"), t3.Origin = new R("Origin", P, "#DDE9EC", B, "#464653", "#727CA3", "#9FB8CD", "#D2DA7A", "#FADA7A", "#B88472", "#8E736A", "#B292CA", "#6B5680"), t3.Paper = new R("Paper", P, "#FEFAC9", B, "#444D26", "#A5B592", "#F3A447", "#E7BC29", "#D092A7", "#9C85C0", "#809EC2", "#8E58B6", "#7F6F6F"), t3.Solstice = new R("Solstice", P, "#E7DEC9", B, "#4F271C", "#3891A7", "#FEB80A", "#C32D2E", "#84AA33", "#964305", "#475A8D", "#8DC765", "#AA8A14"), t3.Technic = new R("Technic", P, "#D4D2D0", B, "#3B3B3B", "#6EA0B0", "#CCAF0A", "#8D89A4", "#748560", "#9E9273", "#7E848D", "#00C8C3", "#A116E0"), t3.Trek = new R("Trek", P, "#FBEEC9", B, "#4E3B30", "#F0A22E", "#A5644E", "#B58B80", "#C3986D", "#A19574", "#C17529", "#AD1F1F", "#FFC42F"), t3.Urban = new R("Urban", P, "#DEDEDE", B, "#424456", "#53548A", "#438086", "#A04DA3", "#C4652D", "#8B5D3D", "#5C92B5", "#67AFBD", "#C2A874"), t3.Verve = new R("Verve", P, "#D2D2D2", B, "#666666", "#FF388C", "#E40059", "#9C007F", "#68007F", "#005BD3", "#00349E", "#17BBFD", "#FF79C2"), t3.Equity = new R("Equity", P, "#E9E5DC", B, "#696464", "#D34817", "#9B2D1F", "#A28E6A", "#956251", "#918485", "#855D5D", "#CC9900", "#96A9A9"), t3.Flow = new R("Flow", P, "#DBF5F9", B, "#04617B", "#0F6FC6", "#009DD9", "#0BD0D9", "#10CF9B", "#7CCA62", "#A5C249", "#E2D700", "#85DFD0"), t3.Foundry = new R("Foundry", P, "#EAEBDE", B, "#676A55", "#72A376", "#B0CCB0", "#A8CDD7", "#C0BEAF", "#CEC597", "#E8B7B7", "#DB5353", "#903638"), t3.Median = new R("Median", P, "#EBDDC3", B, "#775F55", "#94B6D2", "#DD8047", "#A5AB81", "#D8B25C", "#7BA79D", "#968C8C", "#F7B615", "#704404"), t3.Metro = new R("Metro", P, "#D6ECFF", B, "#4E5B6F", "#7FD13B", "#EA157A", "#FEB80A", "#00ADDC", "#738AC8", "#1AB39F", "#EB8803", "#5F7791"), t3.Module = new R("Module", P, "#D4D4D6", B, "#5A6378", "#F0AD00", "#60B5CC", "#E66C7D", "#6BB76D", "#E88651", "#C64847", "#168BBA", "#680000"), t3.Opulent = new R("Opulent", P, "#F4E7ED", B, "#B13F9A", "#B83D68", "#AC66BB", "#DE6C36", "#F9B639", "#CF6DA4", "#FA8D3D", "#FFDE66", "#D490C5"), t3;
        })(), n2.ThemeColors = G, U = (function() {
          function t3() {
          }
          return t3.Office = new L("Office", "Calibri Light", "Calibri", a.ThemeFontScriptTypefaces.Office.heading, a.ThemeFontScriptTypefaces.Office.body), t3.Office2007 = new L("Office2007", "Cambria", "Calibri", a.ThemeFontScriptTypefaces.Office2007.heading, a.ThemeFontScriptTypefaces.Office2007.body), t3.LucidaBook = new L("LucidaBook", "Lucida Sans", "Book Antiqua", a.ThemeFontScriptTypefaces.LucidaBook.heading, a.ThemeFontScriptTypefaces.LucidaBook.body), t3.Verdana = new L("Verdana", "Verdana", "Verdana", a.ThemeFontScriptTypefaces.Verdana.heading, a.ThemeFontScriptTypefaces.Verdana.body), t3.LucidaSansUnicode = new L("LucidaSansUnicode", "Lucida Sans Unicode", "Lucida Sans Unicode", a.ThemeFontScriptTypefaces.LucidaSansUnicode.heading, a.ThemeFontScriptTypefaces.LucidaSansUnicode.body), t3.Georgia = new L("Georgia", "Georgia", "Georgia", a.ThemeFontScriptTypefaces.Georgia.heading, a.ThemeFontScriptTypefaces.Georgia.body), t3.CenturySchoolbook = new L("CenturySchoolbook", "Century Schoolbook", "Century Schoolbook", a.ThemeFontScriptTypefaces.CenturySchoolbook.heading, a.ThemeFontScriptTypefaces.CenturySchoolbook.body), t3.BookmanGillSansMT = new L("BookmanGillSansMT", "Bookman Old Style", b, a.ThemeFontScriptTypefaces.BookmanGillSansMT.heading, a.ThemeFontScriptTypefaces.BookmanGillSansMT.body), t3.Constantia = new L("Constantia", "Constantia", "Constantia", a.ThemeFontScriptTypefaces.Constantia.heading, a.ThemeFontScriptTypefaces.Constantia.body), t3.GillSansMT = new L("GillSansMT", b, b, a.ThemeFontScriptTypefaces.GillSansMT.heading, a.ThemeFontScriptTypefaces.GillSansMT.body), t3.FranklinGothicArial = new L("FranklinGothicArial", y, "Arial", a.ThemeFontScriptTypefaces.FranklinGothicArial.heading, a.ThemeFontScriptTypefaces.FranklinGothicArial.body), t3.FranklinGothic = new L("FranklinGothic", "Franklin Gothic Medium", y, a.ThemeFontScriptTypefaces.FranklinGothic.heading, a.ThemeFontScriptTypefaces.FranklinGothic.body), t3.TrebuchetGeorgia = new L("TrebuchetGeorgia", w, "Georgia", a.ThemeFontScriptTypefaces.TrebuchetGeorgia.heading, a.ThemeFontScriptTypefaces.TrebuchetGeorgia.body), t3.CenturyGothic = new L("CenturyGothic", "Century Gothic", "Century Gothic", a.ThemeFontScriptTypefaces.CenturyGothic.heading, a.ThemeFontScriptTypefaces.CenturyGothic.body), t3.FranklinGothicPerpetua = new L("FranklinGothicPerpetua", y, "Perpetua", a.ThemeFontScriptTypefaces.FranklinGothicPerpetua.heading, a.ThemeFontScriptTypefaces.FranklinGothicPerpetua.body), t3.CalibriConstantia = new L("CalibriConstantia", "Calibri", "Constantia", a.ThemeFontScriptTypefaces.CalibriConstantia.heading, a.ThemeFontScriptTypefaces.CalibriConstantia.body), t3.Rockwell = new L("Rockwell", "Rockwell", "Rockwell", a.ThemeFontScriptTypefaces.Rockwell.heading, a.ThemeFontScriptTypefaces.Rockwell.body), t3.TwCenMT = new L("TwCenMT", "Tw Cen MT", "Tw Cen MT", a.ThemeFontScriptTypefaces.TwCenMT.heading, a.ThemeFontScriptTypefaces.TwCenMT.body), t3.ConsolasCorbel = new L("ConsolasCorbel", "Consolas", "Corbel", a.ThemeFontScriptTypefaces.ConsolasCorbel.heading, a.ThemeFontScriptTypefaces.ConsolasCorbel.body), t3.Corbel = new L("Corbel", "Corbel", "Corbel", a.ThemeFontScriptTypefaces.Corbel.heading, a.ThemeFontScriptTypefaces.Corbel.body), t3.TrebuchetMS = new L("TrebuchetMS", w, w, a.ThemeFontScriptTypefaces.TrebuchetMS.heading, a.ThemeFontScriptTypefaces.TrebuchetMS.body), t3;
        })(), n2.ThemeFonts = U, H = (function() {
          function t3() {
          }
          return t3.Default = new F("Default", G.Default, "Cambria", "Calibri"), t3.Office = new F("Office", G.Office, U.Office), t3.Office2007 = new F("Office2007", G.Office2007, U.Office2007), t3.Apex = new F("Apex", G.Apex, U.LucidaBook), t3.Aspect = new F("Aspect", G.Aspect, U.Verdana), t3.Concourse = new F("Concourse", G.Concourse, U.LucidaSansUnicode), t3.Civic = new F("Civic", G.Civic, U.Georgia), t3.Oriel = new F("Oriel", G.Oriel, U.CenturySchoolbook), t3.Origin = new F("Origin", G.Origin, U.BookmanGillSansMT), t3.Paper = new F("Paper", G.Paper, U.Constantia), t3.Solstice = new F("Solstice", G.Solstice, U.GillSansMT), t3.Technic = new F("Technic", G.Technic, U.FranklinGothicArial), t3.Trek = new F("Trek", G.Trek, U.FranklinGothic), t3.Urban = new F("Urban", G.Urban, U.TrebuchetGeorgia), t3.Verve = new F("Verve", G.Verve, U.CenturyGothic), t3.Equity = new F("Equity", G.Equity, U.FranklinGothicPerpetua), t3.Flow = new F("Flow", G.Flow, U.CalibriConstantia), t3.Foundry = new F("Foundry", G.Foundry, U.Rockwell), t3.Median = new F("Median", G.Median, U.TwCenMT), t3.Metro = new F("Metro", G.Metro, U.ConsolasCorbel), t3.Module = new F("Module", G.Module, U.Corbel), t3.Opulent = new F("Opulent", G.Opulent, U.TrebuchetMS), t3;
        })(), n2.Themes = H;
      }, "./dist/core/workbook/customThemeManager.js": function(t2, n2) {
        "use strict";
        var e2, i2 = this && this.nJr || function() {
          return i2 = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, i2.apply(this, arguments);
        }, r = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o; i3 < r2; i3++) !o && i3 in n3 || (o || (o = Array.prototype.slice.call(n3, 0, i3)), o[i3] = n3[i3]);
          return t3.concat(o || Array.prototype.slice.call(n3));
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CustomThemeManagerBase = void 0, e2 = (function() {
          function t3(t4, n3) {
            this.Vv = t4, this.xur = [], this.kur = n3.create, this._ur = n3.buildIn, this.N0r = n3.prefixName;
          }
          return Object.defineProperty(t3.prototype, "Dur", { get: function() {
            return this.xur.reduce((function(t4, n3, e3) {
              return n3.name() || n3.name("theme-".concat(Math.floor(1e8 * Math.random()))), t4[n3.name().toLowerCase()] = e3, t4;
            }), {});
          }, enumerable: false, configurable: true }), t3.prototype.Our = function(t4) {
            return this.Dur.hasOwnProperty(t4.toLowerCase());
          }, t3.prototype.Rur = function(t4) {
            return this.Dur[t4.toLowerCase()];
          }, t3.prototype.M0r = function(t4, n3) {
            return t4 && n3 && t4.toUpperCase() === n3.toUpperCase();
          }, t3.prototype.S0r = function(t4, n3) {
          }, t3.prototype.k0r = function(t4) {
            var n3 = this;
            return !!t4 && (!this.xur.some((function(e3) {
              return n3.M0r(t4, e3.name());
            })) && !this.D0r(t4));
          }, t3.prototype.Oh = function() {
          }, t3.prototype.$Dr = function(t4) {
            var n3 = this;
            n3.Vv.$Dr(i2({ customThemeType: n3.Oh() }, t4));
          }, t3.prototype.add = function(t4) {
            var n3, e3;
            if ("string" == typeof t4) {
              if (this.k0r(t4)) return (n3 = this.kur()).name(t4), this.xur.push(n3), this.$Dr({ type: "addCustomTheme", theme: n3 }), n3;
            } else {
              if ("function" == typeof t4.builtInName && t4.builtInName()) return;
              if (e3 = t4.name(), this.k0r(e3)) return this.xur.push(t4), this.$Dr({ type: "addCustomTheme", theme: t4 }), t4;
            }
          }, t3.prototype.get = function(t4) {
            if (t4 && this.Our(t4)) {
              var n3 = this.Rur(t4);
              return void 0 !== n3 ? this.xur[n3] : void 0;
            }
          }, t3.prototype.remove = function(t4) {
            if (t4 && this.Our(t4)) {
              var n3 = this.Rur(t4);
              void 0 !== n3 && (this.xur.splice(n3, 1), this.$Dr({ type: "removeCustomTheme", name: t4 }));
            }
          }, t3.prototype.all = function() {
            return r([], this.xur, true);
          }, t3.prototype.update = function(t4, n3) {
            var e3, i3;
            n3.name() || n3.name(t4), (e3 = t4 && this.Our(t4) && n3 && !this.D0r(n3.name()) && (this.Our(n3.name()) && t4 === n3.name() || !this.Our(n3.name()))) && void 0 !== (i3 = this.Rur(t4)) && (this.xur[i3] = n3, this.S0r(t4, n3), this.$Dr({ type: "updateCustomTheme", name: t4, theme: n3 }));
          }, t3.prototype.isBuildInStyle = function(t4) {
            var n3 = this;
            return !this.xur.some((function(e3) {
              return n3.M0r(t4, e3.name());
            })) && Object.keys(this._ur).some((function(e3) {
              return n3.M0r(e3, t4);
            }));
          }, t3.prototype.D0r = function(t4) {
            var n3 = this;
            return Object.keys(this._ur).some((function(e3) {
              return n3.M0r(n3.N0r + e3, t4);
            }));
          }, t3.prototype.L0 = function() {
            this.Vv = null, this.xur = null, this.kur = null, this._ur = null;
          }, t3;
        })(), n2.CustomThemeManagerBase = e2;
      }, "./dist/core/workbook/doc-prop/app-doc-props-manager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.t_r = void 0, i2 = e2("./dist/core/util/common.js"), r = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Vv = t4, n3._ps = {}, (0, i2.defineProperty)(n3, "manager", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "company", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "hyperlinkBase", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "template", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "totalTime", n3.$Dr.bind(n3));
          }
          return t3.prototype.L0 = function() {
            this.Vv = null;
          }, t3.prototype.$Dr = function(t4, n3) {
            this.Vv.$Dr({ type: "updateDocPropForApp", propName: t4, value: n3 });
          }, t3.prototype.e_r = function(t4) {
            var n3 = this._ps;
            n3.manager = t4.manager, n3.company = t4.company, n3.hyperlinkBase = t4.hyperlinkBase, n3.template = t4.template, n3.totalTime = t4.totalTime;
          }, t3;
        })(), n2.t_r = r;
      }, "./dist/core/workbook/doc-prop/core-doc-props-manager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.i_r = void 0, i2 = e2("./dist/core/util/common.js"), r = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Vv = t4, n3._ps = {}, (0, i2.defineProperty)(n3, "title", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "subject", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "creator", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "keywords", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "description", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "category", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "contentStatus", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "created", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "lastPrinted", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "modified", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "lastModifiedBy", n3.$Dr.bind(n3)), (0, i2.defineProperty)(n3, "revision", n3.$Dr.bind(n3));
          }
          return t3.prototype.L0 = function() {
            this.Vv = null;
          }, t3.prototype.$Dr = function(t4, n3) {
            this.Vv.$Dr({ type: "updateDocPropForCore", propName: t4, value: n3 });
          }, t3.prototype.e_r = function(t4) {
            var n3 = this._ps;
            n3.title = t4.title, n3.subject = t4.subject, n3.creator = t4.creator, n3.keywords = t4.keywords, n3.description = t4.description, n3.category = t4.category, n3.contentStatus = t4.contentStatus, n3.created = t4.created, n3.lastPrinted = t4.lastPrinted, n3.modified = t4.modified, n3.lastModifiedBy = t4.lastModifiedBy, n3.revision = t4.revision;
          }, t3;
        })(), n2.i_r = r;
      }, "./dist/core/workbook/doc-prop/custom-doc-props-manager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CustomDocPropsManager = void 0, i2 = e2("Common"), r = e2("CalcEngine"), o = e2("./dist/core/worksheet/worksheet-model.js"), a = i2.Common.lt.ht, u = i2.Common.zf.j0, s = i2.Common.zf.dI, (function(t3) {
          t3.text = "lpwstr", t3.int = "i4", t3.float = "r8", t3.boolean = "bool", t3.date = "filetime";
        })(c || (c = {})), f = "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", l = { i4: "number", lpwstr: "string", r8: "number", bool: "boolean", filetime: "object" }, h = 2147483647, d = 4294967295, v = (function() {
          function t3(t4) {
            this.qar = {}, this.Vv = t4;
          }
          return t3.prototype.L0 = function() {
            var t4;
            null === (t4 = this.Vv.Dp) || void 0 === t4 || delete t4.docPropsCustom, this.Vv = null;
          }, t3.prototype.all = function(t4) {
            var n3, e3, i3 = this.Vv, r2 = null === (n3 = i3.Dp) || void 0 === n3 ? void 0 : n3.docPropsCustom;
            if (t4 || r2) return t4 && (i3.Dp || (i3.Dp = { docPropsCustom: [] }), i3.Dp.docPropsCustom || (i3.Dp.docPropsCustom = []), e3 = this.pBe(t4), i3.Dp.docPropsCustom = e3, this.$ar(), i3.$Dr({ type: "setCustomDocProps", props: e3 })), this.bBe(i3.Dp.docPropsCustom);
          }, t3.prototype.getAllDocPropsProps = function() {
            var t4, n3 = this.Vv, e3 = null === (t4 = n3.Dp) || void 0 === t4 ? void 0 : t4.docPropsCustom;
            if (e3) return this.bBe(n3.Dp.docPropsCustom, true);
          }, t3.prototype.get = function(t4) {
            var n3, e3, i3 = this.Vv, r2 = null === (n3 = i3.Dp) || void 0 === n3 ? void 0 : n3.docPropsCustom;
            if (r2) return (e3 = r2.find((function(n4) {
              return n4.name === t4;
            }))) && this.wBe(e3);
          }, t3.prototype.add = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p;
            if (null != t4 && "" !== t4 && null != n3) {
              if (u2 = null == (a2 = null === (r2 = (o2 = this.Vv).Dp) || void 0 === r2 ? void 0 : r2.docPropsCustom) ? void 0 : a2.find((function(n4) {
                return n4.name === t4;
              }))) {
                if (e3) {
                  if (!(f2 = this.ABe(o2, n3))) return;
                  l2 = f2.nameInfo, h2 = f2.linkTarget, v2 = "number" == typeof (d2 = this.yBe(f2.nameInfo)) ? this.adr(d2) : d2, u2.linkTarget = h2, u2.propertyItemChildElement = ((i3 = {})[this.MBe(d2)] = v2 + "", i3), s2 = "".concat(l2.getRow(), ",").concat(l2.getColumn()), c2 = h2, this.qar[s2] = h2;
                } else u2 = this.CBe({ name: t4, value: n3 }, parseInt(u2.pid, 10));
                this.remove(t4);
              } else if (p = a2 ? a2.reduce((function(t5, n4) {
                return Math.max(t5, parseInt(n4.pid, 10));
              }), 0) : 1, e3) {
                if (!(f2 = this.ABe(o2, n3))) return;
                l2 = f2.nameInfo, h2 = f2.linkTarget, d2 = this.yBe(l2), u2 = this.CBe({ name: t4, value: d2, linkTarget: h2 }, p + 1), s2 = "".concat(l2.getRow(), ",").concat(l2.getColumn()), c2 = u2.linkTarget, this.qar[s2] = u2.linkTarget;
              } else u2 = this.CBe({ name: t4, value: n3 }, p + 1);
              o2.Dp || (o2.Dp = { docPropsCustom: [] }), o2.Dp.docPropsCustom || (o2.Dp.docPropsCustom = []), o2.Dp.docPropsCustom.push(u2), o2.$Dr({ type: "addCustomDocProp", property: u2, isLinkTarget: e3, mapKey: s2, mapValue: c2 });
            }
          }, t3.prototype.remove = function(t4) {
            var n3, e3 = this, i3 = e3.get(t4);
            i3 && (n3 = e3.TOt(t4)) && this.Vv.$Dr({ type: "removeCustomDocProp", propName: t4 });
          }, t3.prototype.TOt = function(t4) {
            var n3, e3, i3 = this.Vv, r2 = null === (n3 = i3.Dp) || void 0 === n3 ? void 0 : n3.docPropsCustom, o2 = false;
            return r2 && (e3 = r2.findIndex((function(n4) {
              return n4.name === t4;
            }))) >= 0 && (r2.splice(e3, 1), o2 = true), o2;
          }, t3.prototype.clear = function() {
            var t4, n3 = this.Vv;
            null === (t4 = n3.Dp) || void 0 === t4 || delete t4.docPropsCustom, n3.$Dr({ type: "clearCustomDocProp" });
          }, t3.prototype.MBe = function(t4) {
            var n3 = "";
            switch (typeof t4) {
              case "string":
              default:
                n3 = c.text;
                break;
              case "number":
                n3 = Number.isInteger(t4) && t4 >= 0 && t4 <= d ? c.int : c.float;
                break;
              case "boolean":
                n3 = c.boolean;
                break;
              case "object":
                n3 = t4 instanceof Date ? c.date : c.text;
            }
            return "vt:".concat(n3);
          }, t3.prototype.pBe = function(t4, n3) {
            var e3, i3 = this;
            return void 0 === n3 && (n3 = 2), t4 ? (e3 = [], t4.forEach((function(t5, r2) {
              e3.push(i3.CBe(t5, n3 + r2));
            })), e3) : [];
          }, t3.prototype.CBe = function(t4, n3) {
            var e3, i3, r2, o2, a2 = { fmtid: f, pid: n3 + "", name: u(t4.name), propertyItemChildElement: {} };
            return t4.linkTarget && (a2.linkTarget = t4.linkTarget), i3 = this.MBe(t4.value), r2 = u(t4.value ? t4.value + "" : ""), i3.split(":")[1] === c.date ? ((o2 = t4.value.toISOString().split("."))[o2.length - 1].endsWith("Z") && (o2[o2.length - 1] = "Z"), r2 = o2.join("")) : i3.split(":")[1] === c.int && (r2 = this.udr(parseInt(r2, 10)) + ""), a2.propertyItemChildElement = ((e3 = {})[i3] = r2, e3), a2;
          }, t3.prototype.bBe = function(t4, n3) {
            var e3, i3 = this;
            return t4 ? (e3 = [], t4.forEach((function(t5) {
              e3.push(i3.wBe(t5, n3));
            })), e3) : [];
          }, t3.prototype.wBe = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, f2, h2, d2, v2 = { name: s(t4.name) };
            if (t4.linkTarget) v2.linkTarget = t4.linkTarget, r2 = Object.keys(t4.propertyItemChildElement).find((function(t5) {
              return t5.startsWith("vt:");
            })), a2 = t4.propertyItemChildElement[r2], u2 = this.Vv, (f2 = this.ABe(u2, t4.linkTarget)) ? (v2.value = this.yBe(f2.nameInfo), a2 !== (h2 = "number" == typeof v2.value ? this.adr(v2.value) : v2.value) && ((d2 = h2) instanceof Date && (d2 = d2.toISOString()), t4.propertyItemChildElement = ((e3 = {})[this.MBe(v2.value)] = d2 + "", e3))) : v2.value = a2;
            else switch (r2 = (i3 = Object.entries(t4.propertyItemChildElement)[0])[0], o2 = i3[1], r2.split(":")[1]) {
              case c.int:
                v2.value = this.adr(parseInt(o2, 10));
                break;
              case c.float:
                v2.value = parseFloat(o2);
                break;
              case c.boolean:
                v2.value = Boolean(o2);
                break;
              case c.date:
                v2.value = new Date(o2);
                break;
              case c.text:
              default:
                v2.value = s(o2);
            }
            return n3 && (v2.type = r2 && l[r2.split(":")[1]], v2.type || (v2.type = "string")), v2;
          }, t3.prototype.yBe = function(t4) {
            var n3, e3, i3, o2, u2, s2 = t4.getExpression(), c2 = this.Vv;
            return a(s2) || s2.type === r.ExpressionType.error ? "" : (e3 = s2.value ? s2.value : s2.source ? c2.getCalcService().evaluateExpression(s2.source, s2, {}) : c2.getCalcService().evaluateExpression(c2.getCalcService().getGlobalSourceModel().getSource(), s2, {}), a(e3) && (i3 = s2.row, o2 = s2.column, e3 = (u2 = null === (n3 = s2.source) || void 0 === n3 ? void 0 : n3.Mf) && u2.getValue(i3, o2)), e3);
          }, t3.prototype.ABe = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t4.getCustomName(n3), l2 = n3;
            if (!f2) if (1 === (e3 = n3.split("!")).length) {
              for (r2 = 0, o2 = i3 = t4.sheets; r2 < o2.length; r2++) if (u2 = (a2 = o2[r2]).getCustomName(n3)) {
                f2 = u2, l2 = a2.name() + "!" + n3;
                break;
              }
              if (!f2) return;
            } else {
              if (s2 = e3.slice(0, e3.length - 1).join("!"), c2 = e3[e3.length - 1], !(a2 = t4.getSheetFromName(s2))) return;
              if (!(f2 = a2.getCustomName(c2))) return;
            }
            return { nameInfo: f2, linkTarget: l2 };
          }, t3.prototype.$ar = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this.Vv, c2 = null === (t4 = s2.Dp) || void 0 === t4 ? void 0 : t4.docPropsCustom;
            if (c2) for (this.qar = {}, e3 = 0, i3 = c2; e3 < i3.length; e3++) (r2 = i3[e3]).linkTarget && (o2 = null === (n3 = this.ABe(s2, r2.linkTarget)) || void 0 === n3 ? void 0 : n3.nameInfo) && (a2 = o2.getExpression().row, u2 = o2.getExpression().column, this.qar["".concat(a2, ",").concat(u2)] = r2.linkTarget);
          }, t3.prototype.tur = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2;
            this.qar.hasOwnProperty("".concat(t4, ",").concat(n3)) && (i3 = this.qar["".concat(t4, ",").concat(n3)], o2 = (r2 = this.Vv).Dp.docPropsCustom, a2 = this.MBe(e3), u2 = ("number" === l[a2.split(":")[1]] ? this.udr(e3) : e3) + "", o2.forEach((function(t5) {
              var n4;
              t5.linkTarget === i3 && (t5.propertyItemChildElement = ((n4 = {})[a2] = u2, n4));
            })), r2.$Dr({ type: "updateCustomDocProp", customName: i3, propType: a2, propValue: u2 }));
          }, t3.prototype.udr = function(t4) {
            return t4 > h && t4 <= d ? t4 | 0 : t4;
          }, t3.prototype.adr = function(t4) {
            return t4 < 0 ? t4 >>> 0 : t4;
          }, t3;
        })(), n2.CustomDocPropsManager = v, o.Y8.ch("customDocProps", { setValue: function(t3) {
          var n3, e3 = t3.row, i3 = t3.col, r2 = t3.value, o2 = this.Mf.getParent();
          (null === (n3 = null == o2 ? void 0 : o2.docProps) || void 0 === n3 ? void 0 : n3.customDocPropsManager) && o2.docProps.customDocPropsManager.tur(e3, i3, r2);
        } });
      }, "./dist/core/workbook/doc-prop/doc-props-manager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.u_r = void 0, i2 = e2("./dist/core/workbook/doc-prop/app-doc-props-manager.js"), r = e2("./dist/core/workbook/doc-prop/core-doc-props-manager.js"), o = e2("./dist/core/workbook/doc-prop/custom-doc-props-manager.js"), a = null, u = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Vv = t4, n3.r_r = new r.i_r(t4), n3.o_r = new i2.t_r(t4), n3.a_r = new o.CustomDocPropsManager(t4);
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.r_r && (t4.r_r.L0(), t4.r_r = a), t4.o_r && (t4.o_r.L0(), t4.o_r = a), t4.a_r && (t4.a_r.L0(), t4.a_r = a), this.Vv = a;
          }, t3.prototype.$Dr = function(t4, n3) {
            this.Vv.$Dr({ type: "updateDocProp", propName: t4, value: n3 });
          }, Object.defineProperty(t3.prototype, "coreDocProps", { get: function() {
            return this.r_r;
          }, set: function(t4) {
            this.r_r.e_r(t4), this.$Dr("coreDocProps", t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "appDocProps", { get: function() {
            return this.o_r;
          }, set: function(t4) {
            this.o_r.e_r(t4), this.$Dr("appDocProps", t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "customDocPropsManager", { get: function() {
            return this.a_r;
          }, enumerable: false, configurable: true }), t3;
        })(), n2.u_r = u;
      }, "./dist/core/workbook/sheettab.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.qKr || (m = function(t3, n3) {
          return m = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, m(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          m(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), g = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, m;
        function b(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          t3.beginPath(), t3.roundRect ? t3.roundRect(n3, e3, i3, r2, [o2, a2, u2, s2]) : (t3.moveTo(n3 + o2, e3), t3.arcTo(n3 + i3, e3, n3 + i3, e3 + r2, a2), t3.arcTo(n3 + i3, e3 + r2, n3, e3 + r2, u2), t3.arcTo(n3, e3 + r2, n3, e3, s2), t3.arcTo(n3, e3, n3 + i3, e3, o2)), t3.closePath();
        }
        function y(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          t3.moveTo(n3, e3 - 0.5), t3.lineTo(n3 + 0.5, e3), t3.arcTo(n3 + 0.5 + o2, e3, n3 + 0.5 + o2, e3 + o2, o2), t3.lineTo(n3 + 0.5 + o2, e3 + r2 - c2 - s2), t3.arcTo(n3 + 0.5 + o2, e3 + r2 - c2, n3 + 0.5 + o2 + s2, e3 + r2 - c2 + 0.5, s2), t3.lineTo(n3 + i3 + 0.5 - a2 - u2, e3 + r2 - c2 + 0.5), t3.arcTo(n3 + i3 + 0.5 - a2, e3 + r2 - c2, n3 + i3 + 0.5 - a2, e3 + r2 - c2 - u2, u2), t3.lineTo(n3 + i3 + 0.5 - a2, e3 + a2), t3.arcTo(n3 + i3 + 0.5 - a2, e3, n3 + i3 + 0.5, e3, a2), t3.lineTo(n3 + i3 + 1, e3 - 0.5);
        }
        function w(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          t3.moveTo(n3, e3 + r2 + 0.5), t3.lineTo(n3 + 0.5, e3 + r2), t3.arcTo(n3 + 0.5 + s2, e3 + r2, n3 + 0.5 + s2, e3 + r2 - s2, s2), t3.lineTo(n3 + 0.5 + s2, e3 + c2 + o2), t3.arcTo(n3 + 0.5 + s2, e3 + c2, n3 + 0.5 + o2 + s2, e3 + c2 - 0.5, o2), t3.lineTo(n3 + i3 + 0.5 - a2 - u2, e3 + c2 - 0.5), t3.arcTo(n3 + i3 + 0.5 - u2, e3 + c2 - 0.5, n3 + i3 + 0.5 - u2, e3 + c2 + a2, a2), t3.lineTo(n3 + i3 + 0.5 - u2, e3 + r2 - u2), t3.arcTo(n3 + i3 + 0.5 - u2, e3 + r2, n3 + i3 + 0.5, e3 + r2, u2), t3.lineTo(n3 + i3 + 1, e3 + r2 + 0.5);
        }
        function M(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          t3.moveTo(n3 + i3 + 0.5, e3), t3.lineTo(n3 + i3, e3 + 0.5), t3.arcTo(n3 + i3, e3 + 0.5 + a2, n3 + i3 - a2, e3 + 0.5 + a2, a2), t3.lineTo(n3 + c2 + o2, e3 + 0.5 + a2), t3.arcTo(n3 + c2 - 0.5, e3 + 0.5 + a2, n3 + c2 - 0.5, e3 + 0.5 + a2 + o2, o2), t3.lineTo(n3 + c2 - 0.5, e3 + r2 - s2 - u2), t3.arcTo(n3 + c2 - 0.5, e3 + r2 + 0.5 - u2, n3 + c2 + s2, e3 + r2 + 0.5 - u2, s2), t3.lineTo(n3 + i3 - u2, e3 + r2 + 0.5 - u2), t3.arcTo(n3 + i3, e3 + r2 - u2, n3 + i3, e3 + r2, u2), t3.lineTo(n3 + i3 + 0.5, e3 + r2 + 0.5);
        }
        function C(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          t3.moveTo(n3 - 0.5, e3), t3.lineTo(n3, e3 + 0.5), t3.arcTo(n3, e3 + 0.5 + o2, n3 + o2, e3 + 0.5 + o2, o2), t3.lineTo(n3 + i3 - c2 - a2, e3 + 0.5 + o2), t3.arcTo(n3 + i3 - c2 + 0.5, e3 + 0.5 + o2, n3 + i3 - c2 + 0.5, e3 + 0.5 + a2 + o2, a2), t3.lineTo(n3 + i3 - c2 + 0.5, e3 + r2 - s2 - u2), t3.arcTo(n3 + i3 - c2 + 0.5, e3 + r2 + 0.5 - s2, n3 + i3 - c2 + 0.5 - u2, e3 + r2 + 0.5 - s2, u2), t3.lineTo(n3 + s2, e3 + r2 + 0.5 - s2), t3.arcTo(n3, e3 + r2 + 0.5 - s2, n3, e3 + r2 + 0.5, s2), t3.lineTo(n3 - 0.5, e3 + r2 + 0.5);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Gv = void 0, i2 = e2("Common"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/workbook/sheettabbase.js"), a = e2("./dist/core/core.enum.js"), u = i2.Common.ft, s = u.Uv, c = u._, f = r.mt.Tt, l = null, h = "blank", d = "nextButton", v = (function(t3) {
          function n3(n4) {
            var e3, i3 = t3.call(this, n4) || this;
            return i3.xv = 4, i3.Nv = "white", (e3 = i3).kv = 13, e3.Dv = 12, e3._v = 0, e3.Ev = 30, e3.jv = 28, e3.Ov = 28, e3.Rv = o.NEW_TAB_SIZE_ASIDE, e3.Bv = 15, e3.Lv = 28, e3.Fv = 0, e3._font = "10pt Segoe UI", i3;
          }
          return p(n3, t3), n3.prototype.zv = function() {
            var t4 = this.Vv, n4 = t4 && t4.options;
            return n4 && n4.tabNavigationVisible ? this.jv * (n4.useTouchLayout ? 1.5 : 1) : 0;
          }, n3.prototype.Lur = function() {
            return 2 * this.zv();
          }, n3.prototype.Yv = function() {
            var t4 = this.Vv;
            return t4 && t4.options.tabNavigationVisible ? t4.Zv() : 0;
          }, n3.prototype.Wv = function() {
            return this.Ov;
          }, n3.prototype.Qv = function() {
            return this.Ov;
          }, n3.prototype.Jv = function() {
            return this.Vv.options.newTabVisible ? this.Rv : 0;
          }, n3.prototype.Pur = function() {
            return Math.max(this.rm(), this.Ig().newTabStartPosition - this.Jv() - this.Qv());
          }, n3.prototype.Xv = function() {
            var t4, n4, e3, i3, o2, u2, s2, c2 = this, f2 = c2.Vv.qv(), l2 = c2.tm();
            if (c2.nm() && (l2 -= c2.em()), n4 = c2.im(), e3 = null === (t4 = (0, r.jf)(c2.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, i3 = c2.ot(), o2 = n4 ? e3 ? i3.x + i3.width - 2 * c2.zv() - c2.em() - c2.Wv() : i3.x + i3.width - c2.rm() - c2.Jv() - c2.Qv() : i3.y + i3.height - c2.Yv(), n4 && e3) l2 = o2;
            else for (u2 = c2.om, s2 = f2.length; u2 < s2; u2++) if (f2[u2].visible() === a.SheetTabVisible.visible && (l2 += n4 ? c2.UUr.a7(u2) : c2.UUr.aXe(u2)), l2 > o2) {
              l2 = o2;
              break;
            }
            return l2;
          }, n3.prototype.tm = function() {
            var t4, n4, e3, i3 = this, o2 = i3.Vv.options, a2 = i3.im(), u2 = o2.tabNavigationVisible, s2 = null === (t4 = (0, r.jf)(i3.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return a2 ? (n4 = 2 * i3.em(), u2 && (n4 -= i3.em()), s2 ? i3.rm() + i3.Jv() + i3.Qv() : 2 * i3.zv() + i3.Wv() + i3.um() + n4) : (e3 = i3.cm(), i3.nm() && (e3 = 0), Math.max(i3.Jv(), e3));
          }, n3.prototype.um = function() {
            var t4 = this, n4 = t4.Vv;
            return n4 && n4.options.tabNavigationVisible ? t4.rm() / 2 : 0;
          }, n3.prototype.getResizeBarBounds = function() {
            var t4, n4 = this, e3 = n4.ot(), i3 = null === (t4 = (0, r.jf)(n4.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return { x: i3 ? e3.x : e3.x + e3.width - n4.rm(), y: l, width: n4.rm(), height: l };
          }, n3.prototype.getNavButtonBounds = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2 = this, f2 = c2.im(), h2 = c2.ot(), d2 = c2.zv(), v2 = null === (t4 = (0, r.jf)(c2.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return f2 ? (n4 = v2 ? h2.x + h2.width - 2 * d2 + c2.rm() / 2 : c2.rm() / 2, e3 = l, i3 = d2, o2 = l) : (s2 = c2.Yv(), n4 = h2.width / 2 - d2, e3 = h2.height - s2, i3 = d2, o2 = s2), a2 = 1, u2 = 3, { x: n4, y: e3, width: i3, height: o2, startIndex: 1, endIndex: 3 };
          }, n3.prototype.getSheetTabBounds = function() {
            var t4, n4 = this, e3 = n4.ot(), i3 = n4.Qv(), o2 = n4.tm(), a2 = null === (t4 = (0, r.jf)(n4.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return !a2 && n4.nm() && (o2 -= n4.em()), { x: o2, y: l, height: l, secondMoreTabWidth: n4.Qv(), moreTabPos: a2 ? Math.max(0, o2 - i3) : e3.x + e3.width - n4.rm() - n4.Jv() - i3 };
          }, n3.prototype.getPreMoreTabBounds = function() {
            var t4, n4, e3, i3 = this, o2 = i3.tm();
            return i3.nm() && (o2 -= i3.em()), n4 = i3.Xv(), { x: (e3 = null === (t4 = (0, r.jf)(i3.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft) ? n4 : o2 - i3.Wv(), width: i3.Wv() };
          }, n3.prototype.getPreMoreTabWidth = function() {
            return this.Wv();
          }, n3.prototype.getAllSheetsBounds = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2 = this, f2 = c2.im(), l2 = c2.Vv.options.newTabVisible, h2 = c2.Vv.options.tabNavigationVisible, d2 = c2.Vv.options.useTouchLayout, v2 = c2.ot(), p2 = c2.getNavButtonBounds(), g2 = c2.em(), m2 = c2.cm(), b2 = null === (t4 = (0, r.jf)(c2.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return f2 ? (n4 = b2 ? v2.x + v2.width - 2 * p2.width - g2 : p2.x + 2 * p2.width, n4 += c2.em() - c2.rm() / 2, 0 === c2.rm() && h2 && (n4 -= c2.em()), e3 = v2.y, i3 = g2, o2 = m2) : d2 ? (a2 = v2.x, u2 = v2.width, l2 && (a2 = v2.x + v2.width / 2, u2 = v2.width / 2), n4 = a2, e3 = v2.y, i3 = u2, o2 = m2) : (s2 = l2 ? 0 : c2.Bv / -2, n4 = (v2.x + v2.width) / 2 + s2, e3 = 5, i3 = g2 + 4, o2 = m2), { x: n4, y: e3, width: i3, height: o2 };
          }, n3.prototype.fm = function() {
            var t4 = this, n4 = t4.im();
            return n4 ? t4.lm + t4.UUr.a7(t4.hm) > t4.dm() : t4.lm + 2 * t4.UUr.aXe(t4.hm) > t4.dm();
          }, n3.prototype.dm = function() {
            var t4, n4 = this, e3 = n4.im(), i3 = null === (t4 = (0, r.jf)(n4.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return e3 ? i3 ? n4.ot().width - n4.Lur() - n4.em() - n4.Qv() : n4.ot().width - n4.rm() - n4.Jv() - n4.Qv() : n4.ot().height - n4.Yv();
          }, n3.prototype.vm = function() {
            return 6;
          }, n3.prototype.mm = function() {
            return [h, d];
          }, n3.prototype.gm = function() {
            return this.tm();
          }, n3.prototype.pm = function(t4, n4) {
            var e3, i3 = this;
            t4.save(), t4.beginPath(), e3 = r.I.He(0, "gc-tabStripBackground").backgroundColor, i3.bm = c(e3), t4.fillStyle = e3, t4.fillRect(n4.x, n4.y, n4.width, n4.height), t4.restore();
          }, n3.prototype.ym = function(t4, n4) {
            var e3, i3, o2, u2, s2 = this, c2 = s2.Vv, f2 = c2 && c2.options.tabStripPosition, l2 = r.I.He(0, "gc-tabStripBackground").borderTopColor;
            t4.save(), t4.beginPath(), t4.strokeStyle = l2, f2 === a.TabStripPosition.bottom ? (e3 = n4.x, i3 = n4.y, o2 = n4.x + n4.width, u2 = n4.y + 0.5) : f2 === a.TabStripPosition.top ? (e3 = n4.x, i3 = n4.height - 0.5, o2 = n4.x + n4.width, u2 = n4.y + n4.height - 0.5) : f2 === a.TabStripPosition.left ? (e3 = n4.x + n4.width - 0.5, i3 = n4.y, o2 = n4.x + n4.width - 0.5, u2 = n4.y + n4.height) : f2 === a.TabStripPosition.right && (e3 = n4.x + 0.5, i3 = n4.y, o2 = n4.x + 0.5, u2 = n4.y + n4.height), t4.moveTo(e3, i3), t4.lineTo(o2, u2), t4.stroke(), t4.restore();
          }, n3.prototype.wm = function(t4, n4) {
            var e3 = this;
            e3.pm(t4, n4), e3.ym(t4, n4);
          }, n3.prototype.Mm = function(t4, n4, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Vv.options, d2 = h2.newTabVisible, v2 = l2.im(), p2 = null === (i3 = (0, r.jf)(l2.Vv)) || void 0 === i3 ? void 0 : i3.options.rightToLeft, g2 = l2.tm(), m2 = l2.Xv(), b2 = l2.jv, y2 = e3, w2 = 0, M2 = b2;
            v2 ? (a2 = l2.Qv(), p2 ? ((y2 -= a2) < (u2 = n4.x + l2.rm() + l2.Jv()) && (y2 = u2, (s2 = u2) > m2 && (y2 = (s2 = m2) - b2), l2.Cm(t4, s2, 0, a2, n4.height)), y2 -= l2.Jv()) : (y2 += a2, l2.nm() && (g2 -= l2.em()), y2 > (c2 = n4.x + n4.width - l2.rm() - l2.Jv()) && (y2 = c2, (s2 = c2 - a2) < g2 && (y2 = (s2 = g2) + b2), l2.Cm(t4, s2, 0, a2, n4.height))), o2 = n4.height) : (f2 = l2.em(), l2.nm() && (f2 = 0), y2 = (n4.width - g2) / 2 - f2, M2 = o2 = g2), d2 && l2.Sm(t4, y2, w2, M2, o2, -2 === l2.Tm);
          }, n3.prototype.Am = function(t4, n4, e3, i3, o2) {
            var a2, u2 = this.Wv(), s2 = null === (a2 = (0, r.jf)(this.Vv)) || void 0 === a2 ? void 0 : a2.options.rightToLeft;
            this.Cm(t4, s2 ? o2 : i3 - u2, 0, u2, n4.height);
          }, n3.prototype.Im = function(t4, n4) {
            var e3, i3, u2, s2, c2 = this, f2 = c2.im(), h2 = c2.xm, d2 = c2.zv(), v2 = c2.Yv(), p2 = c2.Nm, g2 = null === (e3 = (0, r.jf)(c2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft;
            f2 ? (s2 = c2.Vv.options.tabStripPosition === a.TabStripPosition.top, i3 = g2 ? n4.x + n4.width - 2 * d2 + (s2 ? c2.em() : c2.rm() / 2) : c2.rm() / 2 + d2 / 2, u2 = v2 / 2, c2.km(t4, i3, u2, i3 + h2, u2 + h2, i3 + h2, u2 - h2, o.NavButtonDirection.left, l, 1 === p2), i3 += d2, c2.km(t4, i3, u2, i3 - h2, u2 + h2, i3 - h2, u2 - h2, o.NavButtonDirection.right, l, 2 === p2)) : (i3 = (n4.width - d2) / 2, u2 = n4.height - v2 / 2, c2.km(t4, i3, u2, i3 + h2, u2 + h2, i3 - h2, u2 + h2, o.NavButtonDirection.top, l, 1 === p2), i3 += d2, c2.km(t4, i3, u2, i3 - h2, u2 + h2, i3 - h2, u2 - h2, o.NavButtonDirection.bottom, l, 2 === p2));
          }, n3.prototype.Dm = function(t4, n4) {
            var e3, i3, o2, u2, s2, c2, f2 = this, l2 = f2.Vv.options, h2 = l2.allSheetsListVisible, d2 = l2.newTabVisible, v2 = l2.tabNavigationVisible, p2 = f2.im(), g2 = f2.tm();
            f2.nm() && (g2 -= f2.em()), i3 = 0, o2 = 10, u2 = f2.ot(), s2 = null === (e3 = (0, r.jf)(f2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft, p2 ? (i3 = s2 ? u2.x + u2.width - 2 * f2.zv() - f2.em() : 2 * f2.zv() + f2.em(), 0 !== f2.rm() || !v2 || s2 && l2.tabStripPosition === a.TabStripPosition.top || (i3 -= f2.em())) : (c2 = d2 ? f2.em() : f2.em() / 2, i3 = (n4.width - g2) / 2 + c2), h2 !== a.AllSheetsListVisibility.hide && f2._m(t4, i3, o2, -3 === f2.Tm);
          }, n3.prototype.Em = function(t4, n4) {
            var e3, i3, o2, a2 = this, u2 = a2.rm(), s2 = r.I.He(0, "gc-tabStripResizeBarInner"), c2 = null === (e3 = (0, r.jf)(a2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft;
            a2.Vv.options.showHorizontalScrollbar && (t4.beginPath(), t4.rect(c2 ? n4.x : n4.x + n4.width - u2, 0, u2, n4.height), t4.clip(), i3 = c2 ? n4.x + u2 / 2 : n4.x + n4.width - u2 / 2, o2 = n4.y + n4.height / 2, t4.fillStyle = s2.color, t4.fillRect(i3, o2, 2, 2), t4.fillRect(i3, o2 - 4, 2, 2), t4.fillRect(i3, o2 + 4, 2, 2));
          }, n3.prototype.jm = function(t4, n4, e3, i3, r2, o2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.Vv, y2 = m2.options.tabStripPosition, w2 = g2.Om, M2 = g2.Nv, C2 = g2.xv, S = g2.Rm, T = g2.im(), x = m2.sheetTabStyles.pTe(u2), A = x & a.SheetTabState.active, I = x & a.SheetTabState.selected;
            t4.save(), (s2 = g2.MYr) && (c2 = s2.topLeftRadius, f2 = s2.topRightRadius, l2 = s2.bottomLeftRadius, h2 = s2.bottomRightRadius, y2 === a.TabStripPosition.left ? (d2 = 1.5, A && (d2 = 4), b(t4, n4 + w2 + d2, e3 + f2 + 1.5, i3 - c2 - f2 - w2, r2 - f2 - h2 - 2, c2, l2, c2, l2)) : y2 === a.TabStripPosition.top ? b(t4, n4 + l2 + 2, e3 + C2 + 1, i3 - l2 - h2 - 3, r2 - C2 - 6, c2, f2, c2, f2) : y2 === a.TabStripPosition.right ? (v2 = 3, d2 = w2, A && (d2 = c2, v2 = 4), b(t4, n4 + d2, e3 + c2 + 1.5, i3 - w2 - c2 - v2, r2 - l2 - c2 - 2, h2, f2, h2, f2)) : b(t4, n4 + c2 + 2, e3 + 3, i3 - c2 - f2 - 3, r2 - C2 - 4, h2, l2, h2, l2), t4.clip()), A && I && (t4.fillStyle = M2, y2 === a.TabStripPosition.bottom ? t4.fillRect(n4, e3, i3, r2 - C2) : y2 === a.TabStripPosition.top ? t4.fillRect(n4, e3 + C2, i3, r2) : y2 === a.TabStripPosition.left ? t4.fillRect(n4 + w2, e3, i3 - w2, r2) : t4.fillRect(n4, e3, i3 - w2, r2)), x & a.SheetTabState.selected ? (t4.fillStyle = M2, y2 === a.TabStripPosition.bottom ? t4.fillRect(n4, e3 + 1, i3, r2 - C2) : y2 === a.TabStripPosition.top ? t4.fillRect(n4, e3 + C2 - 1, i3, r2) : x & a.SheetTabState.active ? y2 === a.TabStripPosition.left ? t4.fillRect(n4 + w2, e3, i3 - w2, r2 + 1) : t4.fillRect(n4, e3, i3 - w2, r2 + 1) : t4.fillRect(n4 + w2, e3, i3 - 2 * w2, r2 + 1)) : x & a.SheetTabState.active && (t4.fillStyle = M2, y2 === a.TabStripPosition.bottom ? t4.fillRect(n4, e3, i3, 1) : y2 === a.TabStripPosition.top ? t4.fillRect(n4, e3 + r2, i3, 1) : y2 === a.TabStripPosition.left ? t4.fillRect(n4 + w2, e3, i3 - w2, r2 + 1) : t4.fillRect(n4, e3, i3 - w2, r2 + 1)), t4.fillStyle = o2, T ? y2 === a.TabStripPosition.bottom ? (p2 = A ? S - 1 : S, t4.fillRect(n4 + S, e3 + p2, i3 - 2 * S + 1, r2 - 2 * S)) : (p2 = A ? S + 1 : S, t4.fillRect(n4 + S, e3 + p2, i3 - 2 * S + 1, r2 - 2 * S)) : x & a.SheetTabState.active ? y2 === a.TabStripPosition.left ? t4.fillRect(n4 + w2, e3, i3 - w2, r2 + 1) : t4.fillRect(n4, e3, i3 - w2, r2 + 1) : t4.fillRect(n4 + w2, e3, i3 - 2 * w2, r2 + 1), t4.restore();
          }, n3.prototype.Bm = function(t4, n4, e3, i3, o2, u2, s2) {
            var c2, f2 = this, l2 = f2.Vv, h2 = l2.options.tabStripPosition, d2 = f2.xv, v2 = f2.Om, p2 = f2.im(), g2 = l2.sheetTabStyles.pTe(s2), m2 = null === (c2 = (0, r.jf)(f2.Vv)) || void 0 === c2 ? void 0 : c2.options.rightToLeft, b2 = f2.MYr, S = b2 || {}, T = S.topLeftRadius, x = S.topRightRadius, A = S.bottomLeftRadius, I = S.bottomRightRadius, k = b2 ? 2 : 0, N = g2 & a.SheetTabState.active, j = b2 && g2 & a.SheetTabState.selected;
            t4.save(), p2 ? (t4.beginPath(), t4.lineWidth = 1, t4.strokeStyle = u2, b2 || !N ? (t4.moveTo(n4 + 0.5, e3 + d2 + k), t4.lineTo(n4 + 0.5, e3 + o2 - d2 - k), t4.moveTo(n4 + i3 + 0.5, e3 + d2 + k), t4.lineTo(n4 + i3 + 0.5, e3 + o2 - d2 - k), (N || j) && (h2 === a.TabStripPosition.bottom ? y(t4, n4, e3, i3, o2, T, x, I, A, d2) : w(t4, n4, e3, i3, o2, T, x, I, A, d2))) : h2 === a.TabStripPosition.bottom ? (t4.moveTo(n4 + 0.5, e3), t4.lineTo(n4 + 0.5, e3 + o2 - d2), t4.moveTo(n4 + i3 + (m2 ? -0.5 : 0.5), e3), t4.lineTo(n4 + i3 + (m2 ? -0.5 : 0.5), e3 + o2 - d2)) : h2 === a.TabStripPosition.top && (t4.moveTo(n4 + 0.5, e3 + d2), t4.lineTo(n4 + 0.5, e3 + o2), t4.moveTo(n4 + i3 + (m2 ? -0.5 : 0.5), e3 + d2), t4.lineTo(n4 + i3 + (m2 ? -0.5 : 0.5), e3 + o2))) : (t4.beginPath(), t4.lineWidth = 1, t4.strokeStyle = u2, b2 || !N ? (t4.moveTo(n4 + v2 + 2 * k, e3 + 0.5), t4.lineTo(n4 - v2 + i3 - k, e3 + 0.5), t4.moveTo(n4 + v2 + 2 * k, e3 + o2 + 0.5), t4.lineTo(n4 - v2 + i3 - k, e3 + o2 + 0.5), (N || j) && (h2 === a.TabStripPosition.left ? M(t4, n4, e3, i3, o2, T, x, I, A, v2) : C(t4, n4, e3, i3, o2, T, x, I, A, v2))) : h2 === a.TabStripPosition.left ? (t4.moveTo(n4 + v2, e3 + 0.5), t4.lineTo(n4 + v2 + i3, e3 + 0.5), t4.moveTo(n4 + v2, e3 + o2 + 0.5), t4.lineTo(n4 + v2 + i3, e3 + o2 + 0.5)) : (t4.moveTo(n4, e3 + 0.5), t4.lineTo(n4 + i3 - v2, e3 + 0.5), t4.moveTo(n4, e3 + o2 + 0.5), t4.lineTo(n4 + i3 - v2, e3 + o2 + 0.5))), t4.stroke(), t4.restore();
          }, n3.prototype.Lm = function(t4, n4, e3, i3, r2, o2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Vv, y2 = b2.options.tabStripPosition, w2 = m2.xv, M2 = m2.Om, C2 = b2.sheetTabStyles.pTe(u2), S = m2.MYr;
            C2 & (S ? a.SheetTabState.active : a.SheetTabState.selected) && (c2 = (s2 = S || {}).topLeftRadius, f2 = s2.topRightRadius, l2 = s2.bottomLeftRadius, h2 = s2.bottomRightRadius, d2 = 0, v2 = 0, p2 = 0, g2 = 0, t4.save(), t4.beginPath(), t4.strokeStyle = o2, t4.lineWidth = 2, y2 === a.TabStripPosition.bottom ? (S && (v2 = c2 + l2 + 2, p2 = f2 + h2 + 2, g2 = 2.5, t4.lineWidth = 1), t4.moveTo(n4 + v2, e3 + r2 - w2 - g2), t4.lineTo(n4 + i3 + 1 - p2, e3 + r2 - w2 - g2)) : y2 === a.TabStripPosition.top ? (S && (v2 = c2 + l2 + 2, p2 = f2 + h2 + 2, g2 = 2.5, t4.lineWidth = 1), t4.moveTo(n4 + v2, e3 + w2 + g2), t4.lineTo(n4 + i3 + 1 - p2, e3 + w2 + g2)) : y2 === a.TabStripPosition.left ? (S && (d2 = f2 + 2, g2 = h2 + 2, v2 = 3.5, t4.lineWidth = 1), t4.moveTo(n4 + M2 + v2, e3 + d2), t4.lineTo(n4 + M2 + v2, e3 + r2 + 1 - g2)) : (S && (d2 = c2 + 2, g2 = l2 + 2, p2 = 3.5, t4.lineWidth = 1), t4.moveTo(i3 - M2 - p2, e3 + d2), t4.lineTo(i3 - M2 - p2, e3 + r2 + 1 - g2)), t4.stroke(), t4.restore());
          }, n3.prototype.bTe = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2, S, T, x = this;
            if (x.im()) return { text: e3, leftIcons: null == i3 ? void 0 : i3.leftIcons, rightIcons: null == i3 ? void 0 : i3.rightIcons };
            if (r2 = 0, o2 = { text: e3 }, a2 = { text: "" }, u2 = x.Rm + x.Om, s2 = n4 - 2 * u2 - 2 - 1, c2 = i3.font, f2 = i3.leftIcons, l2 = i3.rightIcons, h2 = x.wTe, d2 = h2.iconSpace, v2 = h2.iconTextSpace, p2 = h2.defaultSize, m2 = x.Mt(t4, x.yTe, c2), b2 = function(t5, n5) {
              var i4, u3, c3, f3, l3, h3, v3 = [];
              for (u3 = 0; u3 < t5.length; u3++) {
                if (f3 = 0 === u3, l3 = (null !== (i4 = (c3 = t5[u3]).width) && void 0 !== i4 ? i4 : p2) + (f3 ? 0 : d2), (h3 = r2 + l3) > s2) return 0 !== u3 || n5 || (a2.hasEllipsis = true), true;
                v3.push(c3), h3 + m2 <= s2 ? (a2.hasEllipsis || (a2.hasEllipsis = true), n5 ? (a2.rightIcons = g([], v3, true), a2.text = e3) : (a2.leftIcons = g([], v3, true), a2.text = "")) : n5 || 0 !== u3 || (a2.hasEllipsis = true), r2 = h3;
              }
              return n5 ? o2.rightIcons = v3 : o2.leftIcons = v3, false;
            }, f2 && f2.length > 0) {
              if (y2 = b2(f2)) return a2;
              r2 += v2;
            } else a2.text = x.yTe;
            for (w2 = "", M2 = 0; M2 < e3.length; M2++) {
              if (C2 = e3[M2], S = x.Mt(t4, C2, c2), (T = r2 + S) > s2) return a2;
              w2 += C2, T + m2 <= s2 && (a2.text = w2 + x.yTe, a2.hasEllipsis && (a2.hasEllipsis = false)), r2 = T;
            }
            return l2 && l2.length > 0 && (r2 += v2, y2 = b2(l2, true)) ? a2 : o2;
          }, n3.prototype.MTe = function(t4) {
            var n4, e3 = this, i3 = 0;
            return e3.im() ? (n4 = e3.Vv.options.tabStripPosition) === a.TabStripPosition.bottom ? i3 -= t4 ? 2 : 1 : i3 += t4 ? -1 : 1 : i3 += 2, i3;
          }, n3.prototype.CTe = function(t4, n4, e3, i3, r2, o2) {
            var a2 = this, u2 = r2, s2 = a2.BO(), c2 = a2.wTe, l2 = c2.defaultSize, h2 = c2.iconSpace, d2 = a2.im();
            return o2.forEach((function(r3, c3) {
              var v2, p2, g2, m2, b2, y2, w2, M2, C2, S, T, x, A;
              s2.getState(r3.src) && s2.qh(r3.src) && (g2 = s2.getImage(r3.src), m2 = 0, b2 = 0, y2 = n4, w2 = e3, M2 = null !== (v2 = r3.width) && void 0 !== v2 ? v2 : l2, C2 = null !== (p2 = r3.height) && void 0 !== p2 ? p2 : l2, S = (i3 - C2) / 2 + (d2 ? a2.MTe(true) : 0), T = void 0, f.msie && ((T = document.createElement("div")).appendChild(g2), document.body.appendChild(T)), x = g2.width, A = g2.height, f.msie && (T.removeChild(g2), document.body.removeChild(T)), t4.drawImage(g2, m2, b2, x, A, y2 + u2, w2 + S, M2, C2), u2 = u2 + M2 + (c3 === o2.length - 1 ? 0 : h2));
            })), u2;
          }, n3.prototype.STe = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2 = this, s2 = u2.bTe(t4, i3, o2, a2), c2 = s2.leftIcons, f2 = s2.rightIcons, l2 = s2.text, h2 = s2.hasEllipsis, d2 = a2.font, v2 = a2.foreColor, p2 = u2.wTe.iconTextSpace, g2 = u2.im(), m2 = g2 ? u2.kv : u2.Rm + u2.Om, b2 = g2 ? u2.Dv : u2.Rm + u2.Om, y2 = i3 - m2 - b2 - (g2 ? 0 : 3), w2 = m2 + (g2 ? 0 : 2), M2 = r2 / 2 + u2.MTe();
            t4.save(), t4.beginPath(), t4.rect(n4 + w2, e3, y2, r2), t4.clip(), c2 && (w2 = u2.CTe(t4, n4, e3, r2, w2, c2)), t4.font = null != d2 ? d2 : t4.font, t4.fillStyle = v2, t4.textBaseline = "middle", l2.length > 0 && (c2 && c2.length > 0 && (w2 += p2), t4.fillText(l2, n4 + w2, e3 + M2), w2 += t4.measureText(l2).width), f2 && (l2.length > 0 && (w2 += p2), w2 = u2.CTe(t4, n4, e3, r2, w2, f2)), h2 && t4.fillText(u2.yTe, n4 + w2, e3 + M2), t4.restore();
          }, n3.prototype.Hm = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2 = this, s2 = a2.composedStyle, c2 = a2.borderLeftColor, f2 = a2.borderBottomColor;
            u2.MYr = u2.dYr(i3, r2), u2.vYr(t4, n4, e3, i3, r2, o2), u2.jm(t4, n4, e3, i3, r2, s2.backColor, o2), u2.Bm(t4, n4, e3, i3, r2, c2, o2), u2.Lm(t4, n4, e3, i3, r2, f2, o2), u2.STe(t4, n4, e3, i3, r2, o2, s2);
          }, n3.prototype.dYr = function(t4, n4) {
            var e3 = this, i3 = e3.Vv.options.tabStripPosition, r2 = e3.Om, a2 = e3.xv;
            return (0, o.fixBorderRadiuses)(n4 - a2, t4 - r2, i3, (0, o.dYr)(i3));
          }, n3.prototype.vYr = function(t4, n4, e3, i3, r2, o2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Vv, S = b2.sheetTabStyles.pTe(o2), T = S & a.SheetTabState.active, x = S & a.SheetTabState.selected;
            (T || x) && (u2 = b2.options.tabStripPosition, s2 = m2.xv, c2 = m2.Om, h2 = (l2 = (f2 = m2.MYr) || {}).topLeftRadius, d2 = l2.topRightRadius, v2 = l2.bottomLeftRadius, p2 = l2.bottomRightRadius, f2 && (g2 = m2.im(), t4.save(), t4.beginPath(), g2 ? u2 === a.TabStripPosition.top ? w(t4, n4, e3, i3, r2, h2, d2, p2, v2, s2) : y(t4, n4, e3, i3, r2, h2, d2, p2, v2, s2) : u2 === a.TabStripPosition.right ? C(t4, n4, e3, i3, r2, h2, d2, p2, v2, c2) : M(t4, n4, e3, i3, r2, h2, d2, p2, v2, c2), t4.closePath(), t4.fillStyle = m2.Nv, t4.fill(), t4.restore()));
          }, n3.prototype.km = function(t4, n4, e3, i3, u2, s2, c2, f2, l2, h2) {
            var d2, v2, p2, g2, m2, b2, y2, w2, M2;
            t4.save(), v2 = this, p2 = null === (d2 = (0, r.jf)(v2.Vv)) || void 0 === d2 ? void 0 : d2.options.rightToLeft, g2 = f2 === o.NavButtonDirection.left || f2 === o.NavButtonDirection.top, m2 = a.VisualState.highlight, h2 && (m2 = a.VisualState.hover), g2 ? (f2 === o.NavButtonDirection.left ? n4 -= 2 : e3 -= 2, -1 === (b2 = p2 ? v2.Ym(v2.Zm()) : v2.Vm(v2.om)) && (m2 = a.VisualState.normal)) : (f2 === o.NavButtonDirection.right ? n4 += 2 : e3 += 2, -1 === (y2 = p2 ? v2.Vm(v2.om) : v2.Ym(v2.Zm())) && (m2 = a.VisualState.normal)), w2 = r.I.He(m2, "gc-navButton-" + r.I.Ee(m2)), t4.strokeStyle = this.Wm(w2.borderTopColor), t4.beginPath(), M2 = g2 ? 1 : -1, f2 === o.NavButtonDirection.left || f2 === o.NavButtonDirection.right ? (t4.moveTo(n4 - 0.5, e3), t4.lineTo(n4 - 0.5, e3 + 1), t4.moveTo(n4 + M2 - 0.5, e3 - 1), t4.lineTo(n4 + M2 - 0.5, e3 + 2), t4.moveTo(n4 + 2 * M2 - 0.5, e3 - 2), t4.lineTo(n4 + 2 * M2 - 0.5, e3 + 3), t4.moveTo(n4 + 3 * M2 - 0.5, e3 - 3), t4.lineTo(n4 + 3 * M2 - 0.5, e3 + 4)) : f2 !== o.NavButtonDirection.top && f2 !== o.NavButtonDirection.bottom || (t4.moveTo(n4, e3 - 0.5), t4.lineTo(n4 + 1, e3 - 0.5), t4.moveTo(n4 - 1, e3 + M2 - 0.5), t4.lineTo(n4 + 2, e3 + M2 - 0.5), t4.moveTo(n4 - 2, e3 + 2 * M2 - 0.5), t4.lineTo(n4 + 3, e3 + 2 * M2 - 0.5), t4.moveTo(n4 - 3, e3 + 3 * M2 - 0.5), t4.lineTo(n4 + 4, e3 + 3 * M2 - 0.5)), t4.stroke(), t4.restore();
          }, n3.prototype.Sm = function(t4, n4, e3, i3, o2, u2) {
            var s2, c2, f2, l2 = this;
            t4.save(), t4.beginPath(), s2 = (o2 - 2 * l2.Qm) / 2, c2 = a.VisualState.highlight, u2 && (c2 = a.VisualState.hover), f2 = r.I.He(c2, "gc-tabStripNewTab-" + r.I.Ee(c2)), t4.lineWidth = 1.5, t4.strokeStyle = l2.Wm(f2.borderTopColor), t4.arc(n4 + i3 / 2, e3 + o2 / 2, s2, 0, 2 * Math.PI), t4.stroke(), t4.beginPath(), t4.lineWidth = 2, t4.moveTo(n4 + i3 / 2 - 4, e3 + o2 / 2), t4.lineTo(n4 + i3 / 2 + 4, e3 + o2 / 2), t4.moveTo(n4 + i3 / 2, e3 + o2 / 2 - 4), t4.lineTo(n4 + i3 / 2, e3 + o2 / 2 + 4), t4.stroke(), t4.restore();
          }, n3.prototype._m = function(t4, n4, e3, i3) {
            var o2, u2, s2 = this, c2 = 15, f2 = 5;
            s2.nm() && (c2 = 0), t4.save(), t4.beginPath(), o2 = a.VisualState.highlight, i3 && (o2 = a.VisualState.hover), u2 = r.I.He(o2, "gc-tab-strip-all-sheets-" + r.I.Ee(o2)), t4.strokeStyle = s2.Wm(u2.borderTopColor), t4.lineWidth = 2, t4.moveTo(n4, e3), t4.lineTo(n4 + c2, e3), t4.moveTo(n4, e3 + f2), t4.lineTo(n4 + c2, e3 + f2), t4.moveTo(n4, e3 + 2 * f2), t4.lineTo(n4 + c2, e3 + 2 * f2), t4.stroke(), t4.restore();
          }, n3.prototype.Cm = function(t4, n4, e3, i3, o2) {
            var u2, s2, c2;
            t4.save(), t4.beginPath(), u2 = a.VisualState.highlight, 5 !== (s2 = this.Nm) && 6 !== s2 || (u2 = a.VisualState.hover), c2 = r.I.He(u2, "gc-navMoreButton-" + r.I.Ee(u2)), t4.fillStyle = this.Wm(c2.borderTopColor), t4.fillRect(n4 + i3 / 2, e3 + o2 / 2, 2, 2), t4.fillRect(n4 + i3 / 2 - 4, e3 + o2 / 2, 2, 2), t4.fillRect(n4 + i3 / 2 + 4, e3 + o2 / 2, 2, 2), t4.restore();
          }, n3.prototype.Wm = function(t4) {
            var n4 = c(t4), e3 = this.bm;
            return n4.a <= 0.01 ? s(e3) : u.Km(e3, n4) ? s(n4) : t4;
          }, n3;
        })(o.Hv), n2.Gv = v;
      }, "./dist/core/workbook/sheettab2007.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w = this && this.qKr || (C = function(t3, n3) {
          return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, C(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          C(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), M = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, C;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Jm = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("Common"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/workbook/sheettabbase.js"), u = e2("./dist/core/core.enum.js"), s = e2("./dist/core/worksheet/stylehelper.js"), c = o.mt.ri, f = o.mt.Tt, l = null, h = Math.min, d = Math.max, v = "#92A5C7", p = "newSheet", g = "linear-gradient", m = new r.Common.ResourceManager(i2.SR, "Sheets"), b = m.getResource.bind(m), y = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, n4) || this, i3 = e3;
            return i3.kv = 12, i3.Dv = 8, i3._v = 3, i3.Ev = 12, i3.Rv = 48, i3.Bv = 15, i3.Lv = 28, i3.Fv = 5, i3._font = "10pt Arial", e3;
          }
          return w(n3, t3), n3.prototype.zv = function() {
            var t4 = this.Vv, n4 = t4 && t4.options, e3 = 0;
            return n4 && n4.tabNavigationVisible && (e3 = t4.Xm() * (n4.useTouchLayout ? 2 : 1)), e3;
          }, n3.prototype.Lur = function() {
            return 4 * this.zv();
          }, n3.prototype.Yv = function() {
            var t4 = this.Vv;
            return t4 && t4.options.tabNavigationVisible ? t4.Xm() : 0;
          }, n3.prototype.tm = function() {
            var t4, n4, e3 = this, i3 = e3.im(), r2 = null === (t4 = (0, o.jf)(e3.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return i3 ? r2 ? e3.rm() : 4 * e3.zv() + e3.qm() + e3.em() : (n4 = e3.cm(), e3.nm() && (n4 = 0), Math.max(e3.Jv(), n4));
          }, n3.prototype.qm = function() {
            var t4, n4 = this.Vv;
            return n4 && n4.options.tabNavigationVisible ? 2 : 0;
          }, n3.prototype.getResizeBarBounds = function() {
            var t4, n4 = this, e3 = n4.ot(), i3 = null === (t4 = (0, o.jf)(n4.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return { x: i3 ? e3.x : e3.x + e3.width - n4.rm(), y: l, width: n4.rm(), height: l };
          }, n3.prototype.getNavButtonBounds = function() {
            var t4, n4, e3, i3, r2, a2, u2, s2, c2 = this, f2 = c2.im(), h2 = c2.ot(), d2 = c2.zv(), v2 = null === (t4 = (0, o.jf)(c2.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return f2 ? (n4 = v2 ? h2.x + h2.width - 4 * d2 : 0, e3 = l, i3 = d2, r2 = l) : (s2 = c2.Yv(), n4 = h2.width / 2 - 2 * d2, e3 = h2.height - s2, i3 = d2, r2 = s2), a2 = 0, u2 = 4, { x: n4, y: e3, width: i3, height: r2, startIndex: 0, endIndex: 4 };
          }, n3.prototype.getSheetTabBounds = function() {
            var t4 = this, n4 = t4.tm();
            return t4.nm() && (n4 -= t4.em()), { x: n4, y: l, height: l, secondMoreTabWidth: 0, moreTabPos: 0 };
          }, n3.prototype.getPreMoreTabBounds = function() {
            var t4, n4, e3, i3 = this, r2 = i3.tm();
            return i3.nm() && (r2 -= i3.em()), n4 = i3.Xv(), { x: (e3 = null === (t4 = (0, o.jf)(i3.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft) ? n4 : r2, width: i3.getPreMoreTabWidth() };
          }, n3.prototype.getPreMoreTabWidth = function() {
            var t4 = this;
            return t4._v + t4.Fv + t4.ot().height;
          }, n3.prototype.getAllSheetsBounds = function() {
            var t4, n4, e3, i3, r2, a2, u2, s2, c2 = this, f2 = c2.im(), l2 = c2.Vv.options.newTabVisible, h2 = c2.Vv.options.tabNavigationVisible, d2 = c2.Vv.options.useTouchLayout, v2 = c2.ot(), p2 = c2.getNavButtonBounds(), g2 = c2.em(), m2 = c2.cm(), b2 = null === (t4 = (0, o.jf)(c2.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return f2 ? (n4 = b2 ? v2.x + v2.width - 4 * p2.width - g2 : p2.x + 4 * p2.width, n4 += c2.em() / 2 - c2.rm() / 2, 0 === c2.rm() && h2 && (n4 -= c2.em() / 2), e3 = v2.y, i3 = g2, r2 = m2) : d2 ? (a2 = v2.x, u2 = v2.width, l2 && (a2 = v2.x + v2.width / 2, u2 = v2.width / 2), n4 = a2, e3 = v2.y, i3 = u2, r2 = m2) : (s2 = l2 ? 0 : c2.Bv / -2, n4 = (v2.x + v2.width) / 2 + s2, e3 = 5, i3 = g2 + 4, r2 = m2), { x: n4, y: e3, width: i3, height: r2 };
          }, n3.prototype.fm = function() {
            var t4 = this, n4 = t4.im();
            return n4 ? t4.lm + t4.UUr.a7(t4.hm) + t4.Jv() > t4.dm() : t4.lm + 2 * t4.UUr.aXe(t4.hm) > t4.dm();
          }, n3.prototype.dm = function() {
            var t4, n4 = this, e3 = n4.im(), i3 = null === (t4 = (0, o.jf)(n4.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return e3 ? i3 ? n4.ot().width - n4.Lur() - n4.em() : n4.ot().width - n4.rm() : n4.ot().height - n4.Yv();
          }, n3.prototype.vm = function() {
            var t4;
            return this.im() ? 1 : 4;
          }, n3.prototype.mm = function() {
            return [p];
          }, n3.prototype.gm = function() {
            var t4 = this, n4 = t4.im(), e3 = t4.tm();
            return n4 && (e3 += t4.ot().height, t4.Vv.options.newTabVisible && (e3 += t4.Jv(), e3 += t4._v)), e3;
          }, n3.prototype.wm = function(t4, n4) {
            var e3, i3, r2, a2, u2, s2, f2, l2;
            if (t4.save(), t4.beginPath(), e3 = t4.createLinearGradient(n4.x, n4.y, n4.width, n4.height), r2 = (i3 = o.I.He(0, "gc-tabStripBackground")) && i3.backgroundImage, a2 = i3 && i3.backgroundColor, r2 && -1 !== r2.indexOf(g)) for (s2 = 0, f2 = (u2 = c(r2)).length; s2 < f2; s2++) l2 = u2[s2], e3.addColorStop(l2.point, l2.color);
            else a2 && (e3.addColorStop(0, "#DDDDDD"), e3.addColorStop(1, a2));
            t4.fillStyle = e3, t4.fillRect(n4.x, n4.y, n4.width, n4.height), t4.restore();
          }, n3.prototype.ZTe = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2, f2, l2, h2 = this, d2 = h2.im(), v2 = h2.ot();
            if (r2 = d2 ? t4.createLinearGradient(v2.x + 0.7 * v2.height, v2.y + 0, 0.7 * v2.height, v2.height) : t4.createLinearGradient(v2.x + 0.7 * e3, n4, 0.7 * e3, n4 + e3), o2 = i3.backgroundImage, a2 = i3.backgroundColor, o2 && -1 !== o2.indexOf("linear-gradient")) for (s2 = 0, f2 = (u2 = c(o2)).length; s2 < f2; s2++) l2 = u2[s2], r2.addColorStop(l2.point, l2.color);
            else a2 && r2.addColorStop(0, a2);
            return r2;
          }, n3.prototype.WTe = function(t4, n4, e3) {
            var i3, r2 = this, a2 = -2 === r2.Tm, c2 = a2 ? u.VisualState.hover : u.VisualState.normal, f2 = o.I.He(c2, "gc-tab-" + o.I.Ee(c2)), l2 = o.I.He(u.VisualState.normal, "gc-tab-" + o.I.Ee(u.VisualState.normal)), h2 = r2.ZTe(t4, n4, e3, f2), d2 = r2._font;
            return a2 && (d2 = s.W.ii(d2, "bold")), { composedStyle: { backColor: h2, font: d2, foreColor: i3 = r2.Um(f2.color) }, borderLeftColor: null == l2 ? void 0 : l2.borderLeftColor, borderBottomColor: null == l2 ? void 0 : l2.borderBottomColor };
          }, n3.prototype.Mm = function(t4, n4, e3) {
            var i3, r2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Vv, g2 = b().NewTab, m2 = v2.im(), y2 = null === (i3 = (0, o.jf)(v2.Vv)) || void 0 === i3 ? void 0 : i3.options.rightToLeft, w2 = p2.options.newTabVisible;
            w2 && (r2 = 0, u2 = 0, s2 = void 0, c2 = void 0, f2 = -2 === v2.Tm, m2 ? (t4.font = v2._font, v2.Rv = t4.measureText(g2).width + v2.kv, r2 = e3, s2 = v2.Jv(), y2 && (r2 -= s2), c2 = n4.height, l2 = v2.WTe(t4, u2, c2), v2.Hm(t4, r2, u2, s2, c2, void 0, l2)) : (h2 = v2.em(), v2.nm() && (h2 = 0), d2 = a.NEW_TAB_SIZE_ASIDE, v2.Rv = d2, r2 = (n4.width - d2) / 2 - h2, s2 = d2, c2 = d2, v2.$m(t4, r2, u2, s2, c2, f2)));
          }, n3.prototype.$m = function(t4, n4, e3, i3, r2, a2) {
            var s2, f2, l2, h2, d2, v2, p2, m2, b2, y2 = this;
            if (t4.save(), t4.beginPath(), s2 = (r2 - 2 * y2.Qm) / 2, f2 = u.VisualState.normal, a2 && (f2 = u.VisualState.hover), l2 = o.I.He(f2, "gc-tab-" + o.I.Ee(f2)), (h2 = a2 ? l2.backgroundColor : l2.backgroundImage) && -1 !== h2.indexOf(g)) for (d2 = t4.createLinearGradient(n4 + 0.7 * r2, e3 + 0, 0.7 * r2, r2), p2 = 0, m2 = (v2 = c(h2)).length; p2 < m2; p2++) b2 = v2[p2], d2.addColorStop(b2.point, b2.color);
            else d2 = h2;
            t4.lineWidth = 1.5, t4.strokeStyle = d2, t4.arc(n4 + i3 / 2, e3 + r2 / 2, s2, 0, 2 * Math.PI), t4.stroke(), t4.beginPath(), t4.lineWidth = 2, t4.moveTo(n4 + i3 / 2 - 4, e3 + r2 / 2), t4.lineTo(n4 + i3 / 2 + 4, e3 + r2 / 2), t4.moveTo(n4 + i3 / 2, e3 + r2 / 2 - 4), t4.lineTo(n4 + i3 / 2, e3 + r2 / 2 + 4), t4.stroke(), t4.restore();
          }, n3.prototype.Am = function(t4, n4, e3, i3, r2) {
            var a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Vv, y2 = e3 - 1, w2 = "", M2 = m2.IAe(t4, 0, w2, y2), C2 = m2.Vv.e2(y2);
            C2 && (d2 = null === (s2 = null === (a2 = b2.sheetTabStyles.all()[C2.name()]) || void 0 === a2 ? void 0 : a2[u.SheetTabState.normal]) || void 0 === s2 ? void 0 : s2.backColor, v2 = null === (f2 = null === (c2 = b2.options.defaultSheetTabStyles) || void 0 === c2 ? void 0 : c2[u.SheetTabState.normal]) || void 0 === f2 ? void 0 : f2.backColor, (p2 = C2 ? o.Pf.vl(C2, null !== (l2 = null != d2 ? d2 : v2) && void 0 !== l2 ? l2 : C2.e1e()) : void 0) && (M2.composedStyle.backColor = p2)), g2 = null === (h2 = (0, o.jf)(m2.Vv)) || void 0 === h2 ? void 0 : h2.options.rightToLeft, m2.Hm(t4, g2 ? r2 : i3, 0, m2.Fv, n4.height, w2, M2);
          }, n3.prototype.Im = function(t4, n4) {
            var e3, i3, r2, u2 = this, s2 = u2.im(), c2 = u2.tm(), f2 = u2.xm, h2 = u2.zv(), d2 = u2.Yv(), p2 = u2.Nm, g2 = null === (e3 = (0, o.jf)(u2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft;
            t4.fillStyle = v, s2 ? t4.fillRect(n4.x, n4.y, c2 - u2.em() - 2, n4.height) : t4.fillRect(n4.x, n4.height - d2, n4.width, d2), s2 ? (i3 = g2 ? n4.x + n4.width - 4 * h2 + h2 / 2 : h2 / 2, r2 = d2 / 2, u2.km(t4, i3, r2, i3 + f2, r2 + f2, i3 + f2, r2 - f2, a.NavButtonDirection.left, i3 - f2, 0 === p2), i3 += h2, u2.km(t4, i3, r2, i3 + f2, r2 + f2, i3 + f2, r2 - f2, a.NavButtonDirection.left, l, 1 === p2), i3 += h2, u2.km(t4, i3, r2, i3 - f2, r2 + f2, i3 - f2, r2 - f2, a.NavButtonDirection.right, l, 2 === p2), i3 += h2, u2.km(t4, i3, r2, i3 - f2, r2 + f2, i3 - f2, r2 - f2, a.NavButtonDirection.right, i3 + 4, 3 === p2)) : (i3 = n4.width / 2 - 1.5 * h2, r2 = n4.height - d2 / 2, u2.km(t4, i3, r2, i3 + f2, r2 + f2, i3 - f2, r2 + f2, a.NavButtonDirection.top, r2 - f2, 0 === p2), i3 += h2, u2.km(t4, i3, r2, i3 + f2, r2 + f2, i3 - f2, r2 + f2, a.NavButtonDirection.top, l, 1 === p2), i3 += h2, u2.km(t4, i3, r2, i3 + f2, r2 - f2, i3 - f2, r2 - f2, a.NavButtonDirection.bottom, l, 2 === p2), i3 += h2, u2.km(t4, i3, r2, i3 + f2, r2 - f2, i3 - f2, r2 - f2, a.NavButtonDirection.bottom, r2 + f2, 3 === p2));
          }, n3.prototype.Dm = function(t4, n4) {
            var e3, i3, r2, a2, s2, c2, f2 = this, l2 = f2.Vv.options, h2 = l2.allSheetsListVisible, d2 = l2.newTabVisible, v2 = f2.im(), p2 = f2.tm();
            f2.nm() && (p2 -= f2.em()), i3 = 0, r2 = 0, a2 = f2.ot(), s2 = null === (e3 = (0, o.jf)(f2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft, v2 ? (i3 = s2 ? a2.x + a2.width - 4 * f2.zv() - f2.em() : 4 * f2.zv() + 1, r2 = 5) : (c2 = d2 ? f2.em() : f2.em() / 2, i3 = (n4.width - p2) / 2 + c2, r2 = 10), h2 !== u.AllSheetsListVisibility.hide && f2._m(t4, i3, r2, -3 === f2.Tm);
          }, n3.prototype._m = function(t4, n4, e3, i3) {
            var r2, a2, s2, f2, l2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2, S, T, x, A, I, k, N;
            if (t4.save(), t4.beginPath(), a2 = (r2 = this).im(), s2 = r2.ot(), f2 = r2.em(), h2 = (l2 = o.I.He)(4, "gc-all-sheets-button-hover"), v2 = (d2 = l2(0, "gc-all-sheets-button-normal")) && d2.backgroundColor, (p2 = d2 && d2.backgroundImage) && -1 !== p2.indexOf(g)) for (m2 = t4.createLinearGradient(s2.x + 0.7 * s2.height, s2.y + 0, 0.7 * s2.height, s2.height), y2 = 0, w2 = (b2 = c(p2)).length; y2 < w2; y2++) M2 = b2[y2], m2.addColorStop(M2.point, M2.color);
            if (a2 && (i3 ? (t4.fillStyle = h2.backgroundColor, t4.fillRect(n4 + 2, s2.y + 2, f2 - 4, s2.height - 4)) : (m2 ? t4.fillStyle = m2 : v2 && (t4.fillStyle = v2), t4.fillRect(n4 - f2 / 2, s2.y + 1, r2.cm(), s2.height - 2))), a2) t4.strokeStyle = i3 ? h2.color : d2.color;
            else {
              if (C2 = u.VisualState.normal, i3 && (C2 = u.VisualState.hover), M2 = void 0, S = o.I.He(C2, "gc-all-sheets-button-" + o.I.Ee(C2)), (T = i3 ? S.backgroundColor : S.backgroundImage) && -1 !== T.indexOf(g)) for (x = r2.em(), M2 = t4.createLinearGradient(n4 + 0.7 * x, e3 + 0, 0.7 * x, x), y2 = 0, w2 = (b2 = c(T)).length; y2 < w2; y2++) A = b2[y2], M2.addColorStop(A.point, A.color);
              else M2 = T;
              t4.strokeStyle = M2;
            }
            a2 ? (I = 3, k = 12, N = 4) : (I = 0, k = 15, N = 5), r2.nm() && (k = 0, N = 0, I = 0), t4.stroke(), t4.lineWidth = 1, t4.moveTo(n4 + I, e3), t4.lineTo(n4 + k, e3), t4.moveTo(n4 + I, e3 + N), t4.lineTo(n4 + k, e3 + N), t4.moveTo(n4 + I, e3 + 2 * N), t4.lineTo(n4 + k, e3 + 2 * N), t4.stroke(), t4.fill(), t4.restore();
          }, n3.prototype.Em = function(t4, n4) {
            var e3, i3, r2 = this, a2 = r2.Vv, u2 = r2.rm(), s2 = o.I.He, c2 = s2(4, "gc-tabStripResizeBarInner"), f2 = s2(0, "gc-tabStripResizeBarOuter"), l2 = null === (e3 = (0, o.jf)(r2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft;
            a2.options.showHorizontalScrollbar && (i3 = l2 ? n4.x : n4.x + n4.width - u2, t4.fillStyle = f2.backgroundColor, t4.fillRect(i3, n4.y, u2, n4.height), t4.fillStyle = c2.backgroundColor, t4.fillRect(i3 + 1, n4.y + 1, u2 - 2, n4.height - 2), t4.fillStyle = c2.color, t4.fillRect(i3 + u2 / 2 - 1, n4.y + 4, 2, n4.height - 8));
          }, n3.prototype.bTe = function(t4, n4, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2, S, T, x, A, I = this;
            if (I.im()) return { text: e3, leftIcons: null == i3 ? void 0 : i3.leftIcons, rightIcons: null == i3 ? void 0 : i3.rightIcons };
            if (r2 = 0, o2 = { text: e3 }, a2 = { text: "" }, s2 = I.Om * (I.Vv.options.tabStripPosition === u.TabStripPosition.right ? 1 : 2), c2 = I.Rm + s2, f2 = n4 - 2 * c2, l2 = i3.font, h2 = i3.leftIcons, d2 = i3.rightIcons, v2 = I.wTe, p2 = v2.iconSpace, g2 = v2.iconTextSpace, m2 = v2.defaultSize, b2 = I.Mt(t4, I.yTe, l2), y2 = function(t5, n5) {
              var i4, u2, s3, c3, l3, h3, d3 = [];
              for (u2 = 0; u2 < t5.length; u2++) {
                if (c3 = 0 === u2, l3 = (null !== (i4 = (s3 = t5[u2]).width) && void 0 !== i4 ? i4 : m2) + (c3 ? 0 : p2), (h3 = r2 + l3) > f2) return 0 !== u2 || n5 || (a2.hasEllipsis = true), true;
                d3.push(s3), h3 + b2 <= f2 ? (a2.hasEllipsis || (a2.hasEllipsis = true), n5 ? (a2.rightIcons = M([], d3, true), a2.text = e3) : (a2.leftIcons = M([], d3, true), a2.text = "")) : n5 || 0 !== u2 || (a2.hasEllipsis = true), r2 = h3;
              }
              return n5 ? o2.rightIcons = d3 : o2.leftIcons = d3, false;
            }, h2 && h2.length > 0) {
              if (w2 = y2(h2)) return a2;
              r2 += g2;
            }
            for (C2 = "", S = 0; S < e3.length; S++) {
              if (T = e3[S], x = I.Mt(t4, T, l2), (A = r2 + x) > f2) return a2;
              C2 += T, A + b2 <= f2 && (a2.text = C2 + I.yTe, a2.hasEllipsis && (a2.hasEllipsis = false)), r2 = A;
            }
            return d2 && d2.length > 0 && (r2 += g2, w2 = y2(d2, true)) ? a2 : o2;
          }, n3.prototype.ATe = function(t4, n4, e3, i3, r2, o2, a2) {
            var s2 = this, c2 = s2.Vv, f2 = c2.sheetTabStyles.pTe(a2), l2 = c2.options.tabStripPosition, h2 = c2.sheets, d2 = c2.getSheetPosition(a2), p2 = d2 === h2.length - 1, g2 = s2.eg, m2 = s2.Om, b2 = s2.xm, y2 = s2.im();
            t4.save(), t4.beginPath(), y2 ? l2 === u.TabStripPosition.bottom ? (t4.moveTo(n4, e3), t4.lineTo(n4, e3 + r2 - g2), t4.arcTo(n4, e3 + r2, n4 + i3, e3 + r2, g2), t4.lineTo(n4 + i3, e3 + r2), t4.lineTo(n4 + i3 + r2, e3), f2 & u.SheetTabState.active || t4.lineTo(n4, e3)) : (t4.moveTo(n4, e3 + r2), t4.lineTo(n4, e3 - g2), t4.arcTo(n4, e3, n4 + i3, e3, g2), t4.lineTo(n4 + i3, e3), t4.lineTo(n4 + i3 + r2, e3 + r2), f2 & u.SheetTabState.active || t4.lineTo(n4, e3 + r2)) : l2 === u.TabStripPosition.left ? (n4 += m2, i3 -= m2, t4.moveTo(n4 + i3, e3), t4.lineTo(n4 + g2, e3), t4.arcTo(n4, e3, n4, e3 + g2, g2), t4.lineTo(n4, e3 + r2 - g2), t4.arcTo(n4, e3 + r2, n4 + g2, e3 + r2, g2), p2 ? t4.lineTo(n4 + i3, e3 + r2) : (t4.lineTo(n4 + i3 - b2, e3 + r2), t4.lineTo(n4 + i3, e3 + r2 + b2)), f2 & u.SheetTabState.active || t4.lineTo(n4 + i3, e3)) : (i3 -= m2, t4.moveTo(n4, e3), t4.lineTo(n4 + i3 - g2, e3), t4.arcTo(n4 + i3, e3, n4 + i3, e3 + g2, g2), t4.lineTo(n4 + i3, e3 + r2 - g2), t4.arcTo(n4 + i3, e3 + r2, n4 + i3 - g2, e3 + r2, g2), p2 ? t4.lineTo(n4, e3 + r2) : (t4.lineTo(n4 + b2, e3 + r2), t4.lineTo(n4, e3 + r2 + b2)), f2 & u.SheetTabState.active || t4.lineTo(n4, e3)), t4.fillStyle = o2, t4.fill(), t4.strokeStyle = v, t4.stroke(), t4.restore();
          }, n3.prototype.CTe = function(t4, n4, e3, i3, r2, o2) {
            var a2 = this, u2 = r2, s2 = a2.BO(), c2 = a2.wTe, l2 = c2.defaultSize, h2 = c2.iconSpace;
            return o2.forEach((function(r3, a3) {
              var c3, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S, T;
              s2.getState(r3.src) && s2.qh(r3.src) && (v2 = s2.getImage(r3.src), p2 = 0, g2 = 0, m2 = n4, b2 = e3, y2 = null !== (c3 = r3.width) && void 0 !== c3 ? c3 : l2, w2 = null !== (d2 = r3.height) && void 0 !== d2 ? d2 : l2, M2 = (i3 - w2) / 2, C2 = void 0, f.msie && ((C2 = document.createElement("div")).appendChild(v2), document.body.appendChild(C2)), S = v2.width, T = v2.height, f.msie && (C2.removeChild(v2), document.body.removeChild(C2)), t4.drawImage(v2, p2, g2, S, T, m2 + u2, b2 + M2, y2, w2), u2 = u2 + y2 + (a3 === o2.length - 1 ? 0 : h2));
            })), u2;
          }, n3.prototype.STe = function(t4, n4, e3, i3, r2, o2, a2, s2) {
            var c2 = this, f2 = c2.bTe(t4, i3, o2, a2), l2 = f2.leftIcons, h2 = f2.rightIcons, d2 = f2.text, v2 = f2.hasEllipsis, p2 = a2.font, g2 = a2.foreColor, m2 = c2.wTe.iconTextSpace, b2 = c2.im(), y2 = c2.Om * (c2.Vv.options.tabStripPosition === u.TabStripPosition.right ? 1 : 2), w2 = b2 ? c2.kv : c2.Rm + y2, M2 = b2 ? c2.Dv : c2.Rm + c2.Om, C2 = i3 - w2 - (s2 ? 0 : M2), S = w2, T = r2 / 2 + (b2 ? 0 : 2);
            t4.save(), t4.beginPath(), t4.rect(n4 + S, e3, C2, r2), t4.clip(), l2 && (S = c2.CTe(t4, n4, e3, r2, S, l2)), t4.font = null != p2 ? p2 : t4.font, t4.fillStyle = g2, t4.textBaseline = "middle", d2.length > 0 && (l2 && l2.length > 0 && (S += m2), t4.fillText(d2, n4 + S, e3 + T), S += t4.measureText(d2).width), h2 && (d2.length > 0 && (S += m2), S = c2.CTe(t4, n4, e3, r2, S, h2)), v2 && t4.fillText(c2.yTe, n4 + S, e3 + T), t4.restore();
          }, n3.prototype.Hm = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, s2 = this, c2 = null != o2 ? o2 : b().NewTab;
            s2.ATe(t4, n4, e3, i3, r2, null === (u2 = null == a2 ? void 0 : a2.composedStyle) || void 0 === u2 ? void 0 : u2.backColor, c2), s2.STe(t4, n4, e3, i3, r2, c2, null == a2 ? void 0 : a2.composedStyle, !o2);
          }, n3.prototype.km = function(t4, n4, e3, i3, r2, u2, s2, f2, v2, p2) {
            var m2, b2, y2, w2, M2, C2, S, T, x, A, I, k, N, j, D;
            if (t4.save(), b2 = (m2 = this).im(), y2 = f2 === a.NavButtonDirection.left || f2 === a.NavButtonDirection.top, w2 = m2.ot(), M2 = m2.zv(), S = (C2 = o.I.He)(4, "gc-navButton-hover"), x = (T = C2(0, "gc-navButton-normal")) && T.backgroundColor, (A = T && T.backgroundImage) && -1 !== A.indexOf(g)) for (I = t4.createLinearGradient(w2.x + 0.7 * w2.height, w2.y + 0, 0.7 * w2.height, w2.height), N = 0, j = (k = c(A)).length; N < j; N++) D = k[N], I.addColorStop(D.point, D.color);
            b2 && (p2 ? (t4.fillStyle = S.backgroundColor, t4.fillRect(n4 - M2 / 2 + 2, w2.y + 2, M2 - 4, w2.height - 4)) : (I ? t4.fillStyle = I : x && (t4.fillStyle = x), t4.fillRect(n4 - M2 / 2, w2.y + 1, M2, w2.height - 2))), t4.fillStyle = b2 ? p2 ? S.color : T.color : p2 ? x : I || x, void 0 !== v2 && v2 !== l && (f2 === a.NavButtonDirection.left || f2 === a.NavButtonDirection.right ? t4.fillRect(v2, h(r2, s2), 1, d(r2, s2) - h(r2, s2)) : t4.fillRect(h(i3, u2), v2, d(i3, u2) - h(i3, u2), 1)), y2 ? f2 === a.NavButtonDirection.left ? (n4 -= 2, i3 -= 2, u2 -= 2) : (e3 -= 2, r2 -= 2, s2 -= 2) : f2 === a.NavButtonDirection.right ? (n4 += 2, i3 += 2, u2 += 2) : (e3 += 2, r2 += 2, s2 += 2), t4.beginPath(), t4.moveTo(n4, e3), t4.lineTo(i3, r2), t4.lineTo(u2, s2), t4.lineTo(n4, e3), t4.fill(), t4.restore();
          }, n3;
        })(a.Hv), n2.Jm = y;
      }, "./dist/core/workbook/sheettabStyleManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s = this && this.nJr || function() {
          return s = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, s.apply(this, arguments);
        }, c = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SheetTabStyleManager = void 0, i2 = e2("Common"), r = e2("./dist/core/core.enum.js"), o = e2("./dist/core/worksheet/stylehelper.js"), a = i2.Common.lt.ht, u = (function() {
          function t3(t4) {
            this.Vv = t4, this.xTe = {};
          }
          return t3.prototype.pTe = function(t4) {
            var n3, e3 = this.Vv, i3 = e3.getSheetPosition(t4), o2 = e3.Gm(t4), u2 = r.SheetTabState.normal;
            return a(o2) || (o2.b2() && (u2 |= r.SheetTabState.selected), e3.w2.Tm === i3 && (u2 |= r.SheetTabState.hover), e3.ep() === i3 && (u2 |= r.SheetTabState.active), n3 = o2._gi, (a(n3) && o2.options.isProtected || n3 === r.SheetType.reportSheet && o2.iir()) && (u2 |= r.SheetTabState.protected)), u2;
          }, t3.prototype.ITe = function(t4) {
            var n3, e3, i3, a2, u2, f, l, h, d, v, p, g, m, b, y, w, M, C, S = {}, T = this.Vv, x = T.Gm(t4);
            return x._gi === r.SheetType.customSheetTab || (b = this.pTe(t4), y = null !== (n3 = this.Vv.options.defaultSheetTabStyles) && void 0 !== n3 ? n3 : {}, w = x.e1e(), M = null !== (e3 = this.xTe[t4]) && void 0 !== e3 ? e3 : y, C = function(t5) {
              var n4, e4, i4 = S.icons, r2 = (null === (n4 = M[t5]) || void 0 === n4 ? void 0 : n4.icons) && M[t5].icons.length > 0, o2 = r2 ? M[t5].icons : null === (e4 = y[t5]) || void 0 === e4 ? void 0 : e4.icons;
              return o2 && o2.length > 0 ? c(c([], null != i4 ? i4 : [], true), o2, true) : i4;
            }, b & r.SheetTabState.normal && (S = s(s(s({}, null !== (i3 = y[r.SheetTabState.normal]) && void 0 !== i3 ? i3 : {}), M[r.SheetTabState.normal]), { icons: C(r.SheetTabState.normal) }), w && !S.backColor && (S.backColor = w)), b & r.SheetTabState.protected && (S = s(s(s(s({}, S), null !== (a2 = y[r.SheetTabState.protected]) && void 0 !== a2 ? a2 : {}), M[r.SheetTabState.protected]), { icons: C(r.SheetTabState.protected) })), b & r.SheetTabState.selected && ((null === (u2 = y[r.SheetTabState.selected]) || void 0 === u2 ? void 0 : u2.font) || (null === (f = M[r.SheetTabState.selected]) || void 0 === f ? void 0 : f.font) || !S.font || (S.font = o.W.ii(S.font, "bold")), S = s(s(s(s({}, S), null !== (l = y[r.SheetTabState.selected]) && void 0 !== l ? l : {}), M[r.SheetTabState.selected]), { icons: C(r.SheetTabState.selected) })), b & r.SheetTabState.active && ((null === (h = y[r.SheetTabState.active]) || void 0 === h ? void 0 : h.font) || (null === (d = M[r.SheetTabState.active]) || void 0 === d ? void 0 : d.font) || !S.font || (S.font = o.W.ii(S.font, "bold")), S = s(s(s(s({}, S), null !== (v = y[r.SheetTabState.active]) && void 0 !== v ? v : {}), M[r.SheetTabState.active]), { icons: C(r.SheetTabState.active) })), b & r.SheetTabState.hover && ((null === (p = y[r.SheetTabState.hover]) || void 0 === p ? void 0 : p.font) || (null === (g = M[r.SheetTabState.hover]) || void 0 === g ? void 0 : g.font) || !S.font || (S.font = o.W.ii(S.font, "bold")), S = s(s(s(s({}, S), null !== (m = y[r.SheetTabState.hover]) && void 0 !== m ? m : {}), M[r.SheetTabState.hover]), { icons: C(r.SheetTabState.hover) }))), S;
          }, t3.prototype.NTe = function(t4) {
            delete this.xTe[t4], this.kTe();
          }, t3.prototype.all = function(t4) {
            var n3, e3 = this;
            return t4 && 0 !== t4.length && 0 !== Object.keys(this.xTe).length ? (n3 = {}, t4.forEach((function(t5) {
              n3[t5] = e3.xTe[t5];
            })), n3) : this.xTe;
          }, t3.prototype._Te = function(t4) {
            var n3 = t4;
            return t4 && 0 !== t4.length || (n3 = this.Vv.qv().map((function(t5) {
              return t5.name();
            }))), n3;
          }, t3.prototype.add = function(t4, n3, e3) {
            this._Qt(t4, n3, e3);
          }, t3.prototype._Qt = function(t4, n3, e3, i3) {
            var r2, o2 = this;
            void 0 === i3 && (i3 = true), (r2 = this._Te(e3)).forEach((function(e4) {
              o2.xTe[e4] || (o2.xTe[e4] = {}), o2.xTe[e4][t4] = n3;
            })), i3 && this.Vv.$Dr({ type: "addSheetTabStyle", state: t4, style: n3, sheetNames: r2 }), this.kTe();
          }, t3.prototype.remove = function(t4, n3) {
            this.TOt(t4, n3);
          }, t3.prototype.TOt = function(t4, n3, e3) {
            var i3, r2 = this;
            void 0 === e3 && (e3 = true), (i3 = this._Te(n3)).forEach((function(n4) {
              var e4, i4, o2, a2;
              null === (i4 = null === (e4 = r2.xTe) || void 0 === e4 ? void 0 : e4[n4]) || void 0 === i4 || delete i4[t4], 0 === Object.keys(null !== (a2 = null === (o2 = r2.xTe) || void 0 === o2 ? void 0 : o2[n4]) && void 0 !== a2 ? a2 : {}).length && delete r2.xTe[n4];
            })), e3 && this.Vv.$Dr({ type: "removeSheetTabStyle", state: t4, sheetNames: i3 }), this.kTe();
          }, t3.prototype.clear = function(t4) {
            this.s_r(t4);
          }, t3.prototype.s_r = function(t4, n3) {
            var e3, i3 = this;
            void 0 === n3 && (n3 = true), (e3 = this._Te(t4)).forEach((function(t5) {
              delete i3.xTe[t5];
            })), n3 && this.Vv.$Dr({ type: "clearSheetTabStyle", sheetNames: e3 }), this.kTe();
          }, t3.prototype.kTe = function() {
            this.Vv.w2.Cg();
          }, t3.prototype.L0 = function() {
            this.Vv = null, this.xTe = null;
          }, t3;
        })(), n2.SheetTabStyleManager = u;
      }, "./dist/core/workbook/sheettabbase.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function st(t3, n3, e3) {
          t3.ki(a.Events.SheetTabClick, { sheet: n3, sheetName: n3 ? n3.name() : C, sheetTabIndex: d(e3) ? -1 : e3 });
        }
        function ct(t3) {
          if (t3) {
            (t3 = t3.trim()).endsWith("px") && (t3 = t3.slice(0, t3.length - 2).trim());
            var n3 = parseInt(t3, 10);
            if (n3 >= 0) return n3;
          }
        }
        function ft(t3) {
          switch (t3) {
            case c.TabStripPosition.left:
              return "sjs-tab-strip-left-tab";
            case c.TabStripPosition.right:
              return "sjs-tab-strip-right-tab";
            case c.TabStripPosition.top:
              return "sjs-tab-strip-top-tab";
          }
          return "sjs-tab-strip-bottom-tab";
        }
        function lt(t3, n3, e3) {
          var i3, r2 = n3 / e3;
          return r2 + 1 >= t3 ? (n3 = t3 < 1 ? 0 : t3 - 1, e3 = 0) : (i3 = t3 / (r2 + 1), n3 = Math.floor(r2 * i3), e3 = Math.floor(i3)), { radius1: n3, radius2: e3 };
        }
        function ht(t3, n3, e3) {
          var i3, r2 = n3 + e3;
          if (r2 >= t3) return n3 > e3 ? lt(t3, n3, e3) : { radius1: (i3 = lt(t3, e3, n3)).radius2, radius2: i3.radius1 };
        }
        function dt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2;
          if (i3) return r2 = i3.topLeftRadius, o2 = i3.topRightRadius, a2 = i3.bottomRightRadius, u2 = i3.bottomLeftRadius, e3 === c.TabStripPosition.left ? ((s2 = ht(t3, o2, a2)) && (i3.topRightRadius = o2 = s2.radius1, i3.bottomRightRadius = a2 = s2.radius2), (s2 = ht(t3 - o2 - a2, r2, u2)) && (i3.topLeftRadius = r2 = s2.radius1, i3.bottomLeftRadius = u2 = s2.radius2), (s2 = ht(n3, r2, o2)) && (i3.topLeftRadius = s2.radius1, i3.topRightRadius = s2.radius2), (s2 = ht(n3, u2, a2)) && (i3.bottomLeftRadius = s2.radius1, i3.bottomRightRadius = s2.radius2)) : e3 === c.TabStripPosition.right ? ((s2 = ht(t3, r2, u2)) && (i3.topLeftRadius = r2 = s2.radius1, i3.bottomLeftRadius = u2 = s2.radius2), (s2 = ht(t3 - r2 - u2, o2, a2)) && (i3.topRightRadius = o2 = s2.radius1, i3.bottomRightRadius = a2 = s2.radius2), (s2 = ht(n3, r2, o2)) && (i3.topLeftRadius = s2.radius1, i3.topRightRadius = s2.radius2), (s2 = ht(n3, u2, a2)) && (i3.bottomLeftRadius = s2.radius1, i3.bottomRightRadius = s2.radius2)) : e3 === c.TabStripPosition.top ? ((s2 = ht(t3, r2, u2)) && (i3.topLeftRadius = r2 = s2.radius1, i3.bottomLeftRadius = u2 = s2.radius2), (s2 = ht(t3, o2, a2)) && (i3.topRightRadius = o2 = s2.radius1, i3.bottomRightRadius = a2 = s2.radius2), (s2 = ht(n3, u2, a2)) && (i3.bottomLeftRadius = u2 = s2.radius1, i3.bottomRightRadius = a2 = s2.radius2), (s2 = ht(n3 - u2 - a2, r2, o2)) && (i3.topLeftRadius = s2.radius1, i3.topRightRadius = s2.radius2)) : ((s2 = ht(t3, r2, u2)) && (i3.topLeftRadius = r2 = s2.radius1, i3.bottomLeftRadius = u2 = s2.radius2), (s2 = ht(t3, o2, a2)) && (i3.topRightRadius = o2 = s2.radius1, i3.bottomRightRadius = a2 = s2.radius2), (s2 = ht(n3, r2, o2)) && (i3.topLeftRadius = r2 = s2.radius1, i3.topRightRadius = o2 = s2.radius2), (s2 = ht(n3 - r2 - o2, u2, a2)) && (i3.bottomLeftRadius = s2.radius1, i3.bottomRightRadius = s2.radius2)), i3;
        }
        function vt(t3) {
          var n3, e3, i3, r2, o2, u2, s2, c2, f2, l2 = a.I.fl(ft(t3));
          if (l2 && (n3 = l2.borderRadius) && "0px" !== n3) switch (i3 = void 0, r2 = void 0, o2 = void 0, u2 = void 0, s2 = void 0, c2 = void 0, f2 = void 0, (e3 = n3.split(" ").filter((function(t4) {
            return "" !== t4.trim();
          }))).length) {
            case 1:
              if (i3 = ct(e3[0]), v(i3)) return { topLeftRadius: i3, topRightRadius: i3, bottomLeftRadius: i3, bottomRightRadius: i3 };
              break;
            case 2:
              if (r2 = ct(e3[0]), o2 = ct(e3[1]), v(r2) && v(o2) && r2 + o2 !== 0) return { topLeftRadius: r2, topRightRadius: o2, bottomLeftRadius: o2, bottomRightRadius: r2 };
              break;
            case 3:
              if (u2 = ct(e3[0]), o2 = ct(e3[1]), s2 = ct(e3[2]), v(u2) && v(o2) && v(s2) && u2 + o2 + s2 !== 0) return { topLeftRadius: u2, topRightRadius: o2, bottomLeftRadius: o2, bottomRightRadius: s2 };
              break;
            case 4:
              if (u2 = ct(e3[0]), c2 = ct(e3[1]), s2 = ct(e3[2]), f2 = ct(e3[3]), v(u2) && v(c2) && v(f2) && v(s2) && u2 + c2 + f2 + s2 !== 0) return { topLeftRadius: u2, topRightRadius: c2, bottomLeftRadius: f2, bottomRightRadius: s2 };
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Hv = n2.NavButtonDirection = n2.dYr = n2.fixBorderRadiuses = n2.VERTICAL_TAB_BORDER_RADIUS_OFFSET = n2.NEW_TAB_SIZE_ASIDE = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("Common"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/common.js"), u = e2("./dist/core/util/imageLoader.js"), s = e2("./dist/core/worksheet/stylehelper.js"), c = e2("./dist/core/core.enum.js"), f = r.Common.ft, l = a.mt.ri, h = a.mt.x0, d = r.Common.lt.ht, v = r.Common.lt.q8, p = a.mt.En, g = a.mt.vt, m = a.mt.bi, b = a.mt.yt, y = parseInt, w = window, M = document, C = null, S = Math.max, T = Math.min, x = Math.pow, A = "px", I = "none", N = "mousedown" + (k = ".gcTab"), j = "mousemove" + k, D = "mouseup" + k, _ = "mouseout" + k, O = "dblclick" + k, E = "mousewheel" + k, L = "mousemove" + (R = ".spliter"), F = "mouseup" + R, P = "keydown" + (B = ".tabNameEditor"), G = "focus" + B, U = "blur" + B, H = "canvas", V = "2d", z = "resize", Y = "tab", Z = "newSheet", W = "blank", Q = "allSheets", K = ["first", "prevArrow", "nextArrow", "last", "", "prevButton", "nextButton"], J = "black", X = "white", q = 7, $ = 10, tt = "navButton", nt = "sheetTab", n2.NEW_TAB_SIZE_ASIDE = 28, n2.VERTICAL_TAB_BORDER_RADIUS_OFFSET = 2, et = new r.Common.ResourceManager(i2.SR, "Sheets"), it = et.getResource.bind(et), n2.fixBorderRadiuses = dt, n2.dYr = vt, (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.right = 1] = "right", t3[t3.top = 2] = "top", t3[t3.bottom = 3] = "bottom";
        })(rt = n2.NavButtonDirection || (n2.NavButtonDirection = {})), ot = /* @__PURE__ */ (function() {
          function t3(t4) {
            var e3 = this;
            this.HUr = t4, this.zUr = [], this.VUr = [], this.YUr = [], this.a7 = function(t5) {
              return void 0 !== e3.zUr[t5] || e3.YUr[t5] || (e3.YUr[t5] = true, e3.ZUr(t5), e3.YUr[t5] = false), e3.zUr[t5];
            }, this.aXe = function(t5) {
              return void 0 !== e3.VUr[t5] || e3.YUr[t5] || (e3.YUr[t5] = true, e3.ZUr(t5), e3.YUr[t5] = false), e3.VUr[t5];
            }, this.c5 = function() {
              e3.zUr = [], e3.VUr = [], e3.YUr = [];
            }, this.ZUr = function(t5) {
              var i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2 = e3.HUr, j2 = e3.HUr.Vv.qv(), D2 = j2[t5], _2 = N2.Dg(), O2 = _2.getContext(V);
              O2.save(), c2 = O2.font, f2 = D2.name(), h2 = (l2 = N2.wTe).iconSpace, d2 = l2.iconTextSpace, v2 = l2.defaultSize, m2 = null !== (r2 = null == (p2 = null === (i3 = N2.ITe(t5)) || void 0 === i3 ? void 0 : i3.composedStyle) ? void 0 : p2.font) && void 0 !== r2 ? r2 : c2, b2 = null !== (o2 = null == p2 ? void 0 : p2.leftIcons) && void 0 !== o2 ? o2 : [], y2 = null !== (a2 = null == p2 ? void 0 : p2.rightIcons) && void 0 !== a2 ? a2 : [], w2 = ut(ut([], b2, true), y2, true), O2.font = s.W.ii(m2, "bold"), M2 = N2.Dv + N2.kv, C2 = 0, w2.length > 0 && (N2.DTe(w2), C2 = w2.reduce((function(t6, n3) {
                var e4;
                return t6 + (null !== (e4 = n3.width) && void 0 !== e4 ? e4 : v2);
              }), 0), M2 += h2 * (w2.length - 1), M2 += b2.length > 0 ? d2 : 0, M2 += y2.length > 0 ? d2 : 0), S2 = Math.round(O2.measureText(f2).width) + C2 + M2, e3.zUr[t5] = S2, N2.im() || (T2 = vt(e3.HUr.Vv.options.tabStripPosition) ? 2 * n2.VERTICAL_TAB_BORDER_RADIUS_OFFSET : 0, x2 = g(O2.font), A2 = null !== (u2 = null == w2 ? void 0 : w2.reduce((function(t6, n3) {
                var e4;
                return Math.max(t6, null !== (e4 = n3.height) && void 0 !== e4 ? e4 : v2);
              }), 0)) && void 0 !== u2 ? u2 : 0, k2 = (I2 = Math.max(x2, A2)) + 2 * N2.ig + T2, e3.VUr[t5] = k2), O2.restore();
            };
          }
          return t3;
        })(), at = (function() {
          function t3(t4) {
            this.Zc = t4, this.UUr = new ot(this), this.Fv = 0, this._v = 0, this.Om = 6, this.ig = 3, this.eg = 5, this.xm = 5, this.Rm = 3, this.Qm = 7, this.yTe = "...", this.buffer = null, this.wTe = { defaultSize: 16, iconSpace: 2, iconTextSpace: 4 }, this.VAe = {};
            var n3 = this;
            n3.Vv = C, n3.hm = 0, n3.om = 0, n3.lm = 70, n3.Nm = -1, n3.Tm = -1, n3._font = "", n3.rg = -1, n3.og = -1, n3.ag = C, n3.ug = C, n3.sg = 0, n3.cg(new a.Rect(0, 0, 200, 28));
          }
          return t3.prototype.getNewTabBounds = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.Vv.options.useTouchLayout, s2 = a2.ot(), c2 = a2.Jv(), f2 = (c2 - 2 * a2.Qm) / 2;
            return u2 ? (r2 = s2.width, a2.nm() || (r2 /= 2), t4 = s2.x, n3 = s2.y, e3 = r2, i3 = c2) : (o2 = (s2.x + s2.width - 2 * f2) / 2, a2.nm() || (o2 -= a2.em()), t4 = o2, n3 = (s2.y + c2 - 2 * f2) / 2, e3 = 2 * f2, i3 = 2 * f2), { x: t4, y: n3, width: e3, height: i3 };
          }, t3.prototype.getCanvas = function() {
            return this.fg;
          }, t3.prototype.im = function() {
            var t4, n3 = this, e3 = null === (t4 = n3.Vv) || void 0 === t4 ? void 0 : t4.options.tabStripPosition;
            return e3 === c.TabStripPosition.bottom || e3 === c.TabStripPosition.top;
          }, t3.prototype.hg = function(n3) {
            var e3, i3, r2;
            n3 && ((i3 = (e3 = this).fg) && e3.L0(true), r2 = p(H), a.Bf.Wl(r2, e3.Vv), r2.setAttribute("id", e3.Zc), e3.dg = e3.vg(), e3.mg(), n3.appendChild(e3.dg[0]), n3.appendChild(r2), e3.fg = r2, (0, o.GC$)(r2).bind(N, (function(t4) {
              return e3.gg(t4);
            })).bind(j, (function(t4) {
              return e3.pg(t4);
            })).bind(D, (function(t4) {
              return e3.bg(t4);
            })).bind(_, (function(t4) {
              return e3.yg(t4);
            })).bind(O, (function(t4) {
              return e3.wg(t4);
            })).bind(E, (function(t4) {
              return e3.Mg(t4);
            })), e3.Cg(), t3.et(e3, "setHost"));
          }, t3.prototype.Sg = function(t4) {
            var n3, e3 = this;
            e3.Vv = t4, t4 && ((n3 = t4.options.font) && n3.length > 0 && (e3._font = n3), e3.mg());
          }, t3.prototype.Tg = function(t4) {
            var n3 = this.Vv;
            n3.suspendPaint(), this.Ag(t4), n3.resumePaint();
          }, t3.prototype.Ag = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = -1, u2 = o2.Zm();
            if (!(u2.length <= 0)) for (; ; ) {
              if (a2 === (null === (n3 = (r2 = o2.Ig().tabsInfo)[0]) || void 0 === n3 ? void 0 : n3.index)) return;
              if (a2 = null === (e3 = r2[0]) || void 0 === e3 ? void 0 : e3.index, (null === (i3 = r2[0]) || void 0 === i3 ? void 0 : i3.index) > t4) o2.xg(u2);
              else {
                if (!r2[r2.length - 1] || !(r2[r2.length - 1].index < t4 || r2[r2.length - 1].index === t4 && r2.length > 1)) return;
                o2.Ng(u2);
              }
            }
          }, t3.prototype.ot = function() {
            var t4 = this.kg;
            return new a.Rect(t4.x, t4.y, t4.width, t4.height);
          }, t3.prototype.cg = function(t4) {
            var n3 = this.kg = new a.Rect(0, 0, 0, 0);
            n3.x = t4.x, n3.y = t4.y, n3.width = t4.width, n3.height = t4.height;
          }, t3.prototype.Jv = function() {
            var t4 = this, n3 = t4.Vv.options.newTabVisible;
            return n3 ? this.Rv : 0;
          }, t3.prototype.Pur = function() {
            return Math.max(this.rm(), this.Ig().newTabStartPosition - this.Jv());
          }, t3.prototype.em = function() {
            var t4 = this, n3 = t4.Vv, e3 = n3.options.allSheetsListVisible;
            return e3 !== c.AllSheetsListVisibility.hide ? this.Bv : 0;
          }, t3.prototype.cm = function() {
            var t4 = this, n3 = t4.Vv, e3 = n3.options.allSheetsListVisible;
            return e3 !== c.AllSheetsListVisibility.hide ? this.Lv : 0;
          }, t3.prototype.Xv = function() {
            var t4, n3 = this, e3 = n3.ot(), i3 = n3.im(), r2 = null === (t4 = (0, a.jf)(n3.Vv)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            return i3 ? r2 ? e3.x + e3.width - n3.Lur() - n3.em() - n3.getPreMoreTabWidth() : e3.x + e3.width - n3.rm() : e3.y + e3.height - n3.Yv();
          }, t3.prototype.tm = function() {
            return 0;
          }, t3.prototype.rm = function() {
            var t4 = this, n3 = c.TabStripPosition.bottom, e3 = t4.Vv;
            return e3 && (n3 = e3.options.tabStripPosition), n3 === c.TabStripPosition.bottom ? t4.Ev : 0;
          }, t3.prototype.Cg = function() {
            var t4, n3, e3, i3, r2 = this, u2 = r2.Dg();
            u2 && u2.parentNode && 0 !== (t4 = (0, o.GC$)(u2.parentNode)).width() && 0 !== t4.height() && (n3 = S(t4.width(), 0), e3 = S(t4.height(), 0), u2.style.display = I, u2.width = n3, u2.height = e3, u2.style.display = "", u2.style.width = n3 + A, u2.style.height = e3 + A, n3 = u2.clientWidth || u2.width, e3 = u2.clientHeight || u2.height, i3 = r2.ot(), r2.cg(new a.Rect(i3.x, i3.y, n3, e3)), a.Bf.$l(u2, n3, e3), r2.repaint());
          }, t3.prototype.fm = function() {
            return false;
          }, t3.prototype.zv = function() {
            return 0;
          }, t3.prototype.Lur = function() {
            return 0;
          }, t3.prototype.Yv = function() {
            return 0;
          }, t3.prototype.dm = function() {
            return 0;
          }, t3.prototype.vm = function() {
            return 0;
          }, t3.prototype.mm = function() {
            return [];
          }, t3.prototype.gm = function() {
            return 0;
          }, t3.prototype.vg = function() {
            return this.dg ? this.dg : (0, o.GC$)(p("div"));
          }, t3.prototype.mg = function() {
            var t4, n3, e3, i3 = this, r2 = i3.dg;
            r2 && (e3 = void 0, (n3 = (t4 = i3.Vv) ? t4.options.tabStripPosition : c.TabStripPosition.bottom) === c.TabStripPosition.bottom ? e3 = "gc-tab-indicator-bottom" : n3 === c.TabStripPosition.top ? e3 = "gc-tab-indicator-top" : n3 === c.TabStripPosition.left ? e3 = "gc-tab-indicator-left" : n3 === c.TabStripPosition.right && (e3 = "gc-tab-indicator-right"), r2.removeClass(), r2.addClass(e3));
          }, t3.prototype.L0 = function(n3) {
            var e3, i3 = this, r2 = i3.fg;
            r2 && (e3 = r2.parentNode, (0, o.GC$)(r2).unbind(N).unbind(j).unbind(D).unbind(O).unbind(_).unbind(E), e3 && e3.removeChild(r2)), i3.Nke(), (0, o.GC$)(i3.dg).remove(), t3.et(i3, "dispose"), n3 || (i3.Vv = C), i3.MC && (i3.MC.L0(), i3.MC = C);
          }, t3.prototype._g = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2 = this, O2 = _2.Vv, E2 = O2.options.scrollbarAppearance === c.ScrollbarAppearance.mobile, R2 = O2.options.showHorizontalScrollbar;
            if (R2 && !E2 && (i3 = _2.getResizeBarBounds(), O2.options.showHorizontalScrollbar && t4 > i3.x && t4 < i3.x + i3.width)) return { type: "resize", element: z };
            for (o2 = -1, u2 = (r2 = _2.getNavButtonBounds()).startIndex, s2 = r2.x, f2 = r2.endIndex, h2 = u2; h2 < f2; h2++) {
              if (s2 < t4 && t4 < s2 + r2.width) {
                o2 = h2, l2 = K[h2];
                break;
              }
              s2 += r2.width;
            }
            if (-1 !== o2) return { type: tt, element: l2, index: h2 };
            if (s2 = (d2 = _2.getAllSheetsBounds()).x, v2 = O2.options.allSheetsListVisible, p2 = true, _2.nm() && (p2 = false), v2 !== c.AllSheetsListVisibility.hide && s2 <= t4 && t4 < s2 + d2.width && p2) return { type: nt, element: Q, position: s2, index: -1 };
            if (s2 = (g2 = _2.getPreMoreTabBounds()).x, m2 = 0, -1 !== (b2 = _2.Vm(_2.om))) {
              if (s2 <= t4 && t4 < s2 + g2.width) return { type: tt, element: K[5], index: 5, position: s2 };
              m2 = _2.Fv;
            }
            if (y2 = _2.getSheetTabBounds(), w2 = O2.qv(), M2 = _2._v, C2 = 0, s2 = y2.x + m2, S2 = null === (e3 = (0, a.jf)(_2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft, _2.om > -1) {
              if (S2) {
                for (x2 = 0, A2 = T2 = this.Ig().tabsInfo; x2 < A2.length; x2++) if ((I2 = A2[x2]).position <= t4 && t4 <= I2.position + I2.width && (y2.moreTabPos > 0 && t4 > y2.moreTabPos + y2.secondMoreTabWidth || 0 === y2.moreTabPos)) return { type: nt, element: Y, index: I2.index, position: I2.position };
              } else for (h2 = _2.om; h2 < w2.length; h2++) if (w2[h2].visible() === c.SheetTabVisible.visible) {
                if (C2 = _2.UUr.a7(h2), s2 < t4 && t4 < s2 + C2 + M2 && (y2.moreTabPos > 0 && t4 < y2.moreTabPos || 0 === y2.moreTabPos)) return { type: nt, element: Y, index: h2, position: s2 };
                s2 += C2 + M2;
              }
            }
            if (S2 && (k2 = _2.Pur(), N2 = _2.Jv(), O2.options.newTabVisible && k2 < t4 && t4 < k2 + N2)) return { type: nt, element: Z, position: t4, index: -1 };
            if (s2 > y2.moreTabPos && y2.moreTabPos > 0 && (s2 = y2.moreTabPos), j2 = s2, D2 = y2.secondMoreTabWidth, S2 && (j2 = y2.x - y2.secondMoreTabWidth), -1 !== _2.Ym(_2.Zm())) {
              if (j2 < t4 && t4 < j2 + D2) return { type: tt, element: K[6], index: 6, position: s2 };
            } else if (s2 < t4 && t4 < s2 + y2.secondMoreTabWidth) return { element: W, position: s2 };
            return !S2 && (k2 = s2 += y2.secondMoreTabWidth, N2 = _2.Jv(), O2.options.newTabVisible && k2 < t4 && t4 < k2 + N2) ? { type: nt, element: Z, position: s2, index: -1 } : { element: W };
          }, t3.prototype.Eg = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, f2, l2, h2 = this, d2 = h2.Vv, v2 = h2.getNavButtonBounds(), p2 = -1, g2 = v2.x, m2 = v2.y, b2 = v2.startIndex, y2 = v2.endIndex;
            for (e3 = b2; e3 < y2; e3++) {
              if (g2 < t4 && t4 < g2 + v2.width && m2 < n3 && n3 < m2 + v2.height) {
                p2 = e3, i3 = K[e3];
                break;
              }
              g2 += v2.width;
            }
            if (-1 !== p2) return { type: tt, element: i3, index: e3 };
            if (r2 = h2.Jv(), o2 = d2.options.allSheetsListVisible, a2 = h2.cm(), u2 = true, h2.nm() && (a2 = 0, u2 = false), m2 = S(r2, a2), s2 = d2.qv(), h2.om > -1) {
              for (e3 = h2.om; e3 < s2.length; e3++) if (s2[e3].visible() === c.SheetTabVisible.visible) {
                if (m2 < n3 && n3 < m2 + h2.UUr.aXe(e3)) return { type: nt, element: Y, index: e3, position: m2 };
                m2 += h2.UUr.aXe(e3);
              }
            }
            return f2 = h2.getNewTabBounds(), d2.options.newTabVisible && f2.x < t4 && t4 < f2.x + f2.width && f2.y < n3 && n3 < f2.y + f2.height ? { type: nt, element: Z, position: m2, index: -1 } : (l2 = h2.getAllSheetsBounds(), o2 !== c.AllSheetsListVisibility.hide && l2.x < t4 && t4 < l2.x + l2.width && l2.y < n3 && n3 < l2.y + l2.height && u2 ? { type: nt, element: Q, position: m2, index: -1 } : m2 < n3 && n3 < m2 + v2.y ? -1 !== h2.Ym(h2.Zm()) ? { type: tt, element: K[6], index: 6, position: m2 } : { element: W, position: m2 } : { element: W });
          }, t3.prototype.hitTest = function(t4, n3) {
            var e3, i3 = this, r2 = i3.im();
            return e3 = r2 ? i3._g(t4, n3) : i3.Eg(t4, n3);
          }, t3.prototype.gg = function(n3) {
            var e3, i3, r2, a2, u2, s2, c2, f2 = this, l2 = { e: n3, r: C };
            return t3.et(f2, "preProcessMouseDown", l2), e3 = l2.r, d(e3) ? (i3 = (0, o.GC$)(f2.Dg()).offset(), r2 = n3.pageX - i3.left, a2 = n3.pageY - i3.top, u2 = f2.Vv.jg(), f2.Og && f2.Rg(u2, false), c2 = (s2 = f2.hitTest(r2, a2)).element, 0 === n3.button && (c2 === z ? (f2.Bg = true, f2.Lg = n3.pageX, f2.Fg()) : K.indexOf(c2) >= 0 ? f2.Pg(s2.index, void 0, "prevButton" === c2 || "nextButton" === c2) : c2 === Y ? (f2.Gg(s2.index, s2.position, n3), f2.Ug(n3, s2)) : c2 === Z ? f2.Hg(s2.position) : c2 === Q && f2.zg(n3), f2.Vg()), f2.Yg = true, false) : e3;
          }, t3.prototype.Vg = function() {
            var t4 = this, n3 = t4.Vv.jg();
            n3 && !n3.isEditing() && n3.Zg();
          }, t3.prototype.zg = function(t4) {
            var n3 = this, e3 = n3.Vv;
            return e3.commandManager().execute({ cmd: "showAllSheetsDialog", mouseEvent: t4 });
          }, t3.prototype.pg = function(n3) {
            var e3, i3, r2, u2, s2, c2, f2, l2, h2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2 = this, A2 = T2.Vv, I2 = (0, a.jf)(A2), k2 = { e: n3, r: C };
            if (t3.et(T2, "preProcessMouseMove", k2), i3 = k2.r, !d(i3)) return i3;
            if (r2 = T2.fg.style, u2 = "default", s2 = "w-resize", T2.Wg && !T2.Qg && (c2 = Math.sqrt(x(T2.Wg.x - n3.pageX, 2) + x(T2.Wg.y - n3.pageY, 2))) > $ && (T2.Qg = true), T2.Bg) r2.cursor = s2, f2 = n3.pageX - T2.Lg, l2 = I2.getHDockScrollbarWidth(), h2 = T2.Vv._vp.clientWidth - l2, A2.options.tabStripRatio = A2.Jg() + f2 / h2, p2 = (v2 = null === (e3 = (0, a.jf)(T2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft) ? 0 : T2.rm() / h2, g2 = v2 ? 1 - T2.rm() / h2 : 1, A2.Jg() < p2 ? (A2.options.tabStripRatio = p2, T2.Lg = T2.rm()) : A2.Jg() >= g2 ? (A2.options.tabStripRatio = g2, T2.Lg = h2) : T2.Lg = n3.pageX, A2.Xg();
            else if (T2.Qg) T2.qg(n3.pageX, n3.pageY), T2.$g(n3);
            else {
              if (T2.Nm = -1, T2.Tm = -1, m2 = (0, o.GC$)(T2.Dg()).offset(), b2 = n3.pageX - m2.left, y2 = n3.pageY - m2.top, M2 = (w2 = T2.hitTest(b2, y2)).element, T2.Vv && T2.Vv.options.enableAccessibility && (S2 = T2.t2(w2), T2.Vv.n2(S2)), "" === M2) return r2.cursor = u2, T2.repaint(), false;
              M2 === z ? r2.cursor = s2 : (r2.cursor = u2, K.indexOf(M2) >= 0 ? T2.Nm = w2.index : M2 === Y ? T2.Tm = w2.index : M2 === Z ? T2.Tm = -2 : M2 === Q && (T2.Tm = -3)), T2.repaint();
            }
            return false;
          }, t3.prototype.t2 = function(t4) {
            var n3, e3, i3 = it(), r2 = "", o2 = t4.element;
            return o2 === z ? r2 = i3.ARIA_Resize : K.indexOf(o2) >= 0 ? r2 = (n3 = { first: i3.ARIA_First, prevArrow: i3.ARIA_PreviousArrow, nextArrow: i3.ARIA_NextArrow, last: i3.ARIA_Last, prevButton: i3.ARIA_PreviousButton, nextButton: i3.ARIA_NextButton })[o2] || "" : o2 === Y ? (e3 = this.Vv.e2(t4.index).name(), r2 = i3.ARIA_SheetTab + " " + e3.replace(/([0-9]+)/, " $1 ")) : o2 === Z ? r2 = i3.ARIA_NewSheet : o2 === W && (r2 = i3.ARIA_Blank), r2;
          }, t3.prototype.bg = function(n3) {
            var e3, i3 = this, r2 = { e: n3, r: C };
            return t3.et(i3, "preProcessMouseUp", r2), e3 = r2.r, d(e3) ? (i3.Bg && (i3.Bg = false, i3.Vv.Xg()), i3.i2(), i3.Qg && (i3.Qg = false, i3.r2.remove(), i3.o2(), i3.dg.hide()), i3.Wg = C, i3.a2(), i3.u2(), !i3.Yg || (i3.Yg = false, false)) : e3;
          }, t3.prototype.yg = function(n3) {
            var e3, i3, r2, o2 = this, a2 = { e: n3, r: C };
            return t3.et(o2, "preProcessMouseOut", a2), e3 = a2.r, d(e3) ? (o2.a2(), i3 = o2.Nm, o2.Nm = -1, r2 = o2.Tm, o2.Tm = -1, o2.Nm === i3 && o2.Tm === r2 || o2.repaint(), false) : e3;
          }, t3.prototype.Fg = function() {
            var t4 = this;
            t4.s2 || ((0, o.GC$)(M).bind(L, (function(n3) {
              t4.pg(n3);
            })).bind(F, (function(n3) {
              t4.bg(n3);
            })), t4.c2(true), t4.s2 = true);
          }, t3.prototype.c2 = function(t4) {
            var n3 = this, e3 = n3.Vv.getActiveSheet();
            e3 && (e3.f2 = t4);
          }, t3.prototype.u2 = function() {
            if (this.s2) {
              this.s2 = false, (0, o.GC$)(M).unbind(L).unbind(F);
              var t4 = this.Vv.getActiveSheet();
              t4 && delete t4.f2;
            }
          }, t3.prototype.Pg = function(t4, n3, e3) {
            var i3, r2, o2, u2 = this, s2 = null === (i3 = (0, a.jf)(u2.Vv)) || void 0 === i3 ? void 0 : i3.options.rightToLeft;
            u2.a2(), (r2 = u2.Zm()).length <= 0 || (o2 = 200, 0 === (t4 %= 4) ? s2 ? u2.d2(r2) : u2.l2(r2) : 1 === t4 ? (n3 || (u2.h2 = w.setTimeout((function() {
              u2.Pg(1);
            }), o2)), s2 && !e3 ? u2.Ng(r2) : u2.xg(r2)) : 2 === t4 ? (n3 || (u2.h2 = w.setTimeout((function() {
              u2.Pg(2);
            }), o2)), s2 && !e3 ? u2.xg(r2) : u2.Ng(r2)) : 3 === t4 && (s2 ? u2.l2(r2) : u2.d2(r2)));
          }, t3.prototype.Gg = function(t4, n3, e3) {
            var i3 = this, r2 = i3.Vv, o2 = r2.v2, a2 = r2.e2(t4), u2 = o2 && o2.sheetsState;
            u2 && 0 === u2[a2.name()] ? (i3.ug !== C && clearTimeout(i3.ug), i3.ug = window.setTimeout((function() {
              i3.m2(t4, n3, e3), i3.c2(true), i3.ug = C, i3.Vg();
            }))) : i3.m2(t4, n3, e3);
          }, t3.prototype.m2 = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Vv;
            a2.hm = t4, a2.lm = n3, u2.suspendPaint(), i3 = u2.getActiveSheet(), (r2 = u2.e2(t4)) && r2.isEditing() && r2 !== i3 && (o2 = i3 && i3.il && i3.il.rl, !r2.ol(void 0, void 0, o2, void 0, false)) ? u2.resumePaint() : (st(u2, r2, t4), a2.g2(t4, e3), u2.resumePaint(), a2.repaint());
          }, t3.prototype.p2 = function(t4, n3, e3, i3, r2, o2) {
            var u2 = { oldValue: e3, newValue: i3, sheetName: r2, propertyName: "isSelected", cancel: false, sheetIndex: o2, sheetPosition: t4.getSheetPosition(r2) };
            t4.ki(a.Events.SheetChanging, u2), u2.cancel || (n3.b2(i3), t4 && t4.w2 && t4.w2.repaint(), delete u2.cancel, t4.ki(a.Events.SheetChanged, u2));
          }, t3.prototype.Hg = function(n3) {
            var e3, i3, r2, o2, u2, s2, c2 = this, f2 = c2.Vv, l2 = c2.im(), h2 = f2.getActiveSheet();
            if ((!c2.C2 || c2.C2(h2)) && (e3 = { r: C }, t3.et(c2, "beforeAddSheetBySheetTab", e3), !e3.r && (st(f2, C, C), i3 = f2.qv(), r2 = f2.getSheetCount(), o2 = f2.S2(f2.T2(r2)), i3.forEach((function(t4) {
              t4.b2(false, true);
            })), s2 = { sheetName: u2 = o2.name(), propertyName: "insertSheet", cancel: false, sheetIndex: r2, sheetPosition: f2.getSheetPosition(u2) }, c2.p2(f2, o2, false, true, u2, r2), f2.ki(a.Events.SheetChanging, s2), !s2.cancel))) {
              for (f2.A2(r2, 1, o2), f2.ki(a.Events.SheetChanged, { sheetName: o2.name(), propertyName: "insertSheet", sheetIndex: r2, sheetPosition: f2.getSheetPosition(o2.name()) }), c2.hm = r2, c2.lm = n3, f2.I2(f2.qv().length - 1, 1, false, true); c2.hm > c2.om && (c2.fm() || c2.om < c2.N2(-1)); ) c2.k2(c2.om) && (c2.lm -= l2 ? c2.UUr.a7(c2.om) : c2.UUr.aXe(c2.om)), c2.om++;
              c2.repaint();
            }
          }, t3.prototype.g2 = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Vv, y2 = b2.qv(), w2 = m2.im(), M2 = b2.getActiveSheet(), C2 = b2.getActiveSheetTab();
            m2.D2 && !m2.D2(M2 || (null === (e3 = null == C2 ? void 0 : C2.getSheet) || void 0 === e3 ? void 0 : e3.call(C2))) || (i3 = false, M2 && M2.il && M2.il.rl && (i3 = true), (r2 = !!n3) && (o2 = (s2 = a.mt.Qf()) ? n3.metaKey : n3.ctrlKey, u2 = n3.shiftKey), t4 !== b2.ep() ? (o2 ? (f2 = y2[t4]).b2() ? f2.b2(false, true) : (f2.b2(true, true), M2 && !M2.b2() && M2.b2(true, true)) : u2 ? (h2 = (l2 = b2.jg()) ? b2.getSheetPosition(l2.name()) : -1, d2 = y2.slice(T(h2, t4), S(h2, t4) + 1), y2.forEach((function(t5) {
              t5.visible() === c.SheetTabVisible.visible && (-1 !== d2.indexOf(t5) ? t5.b2() || t5.b2(true, true) : t5.b2() && t5.b2(false, true));
            }))) : (v2 = y2.every((function(t5) {
              return t5.visible() !== c.SheetTabVisible.visible || t5.b2();
            })), y2[t4].b2() && !v2 || y2.forEach((function(t5) {
              t5.b2(false, true);
            })), (f2 = y2[t4]).b2() || f2.b2(true, true), b2.I2(t4, 1, i3, true)), p2 = m2.N2(m2.om), g2 = false, g2 = w2 ? m2.lm + m2.UUr.a7(m2.hm) > m2.dm() : m2.lm + m2.UUr.aXe(m2.hm) >= m2.dm(), m2.hm > m2.om && g2 && -1 !== p2 && (m2.om = p2)) : u2 && y2.forEach((function(t5) {
              var n4 = t5.name(), e4 = b2.getSheetPosition(n4);
              e4 !== b2.ep() && t5.b2() && t5.visible() === c.SheetTabVisible.visible && t5.b2(false, true);
            })), m2.hm < m2.om && (m2.om = m2.Vm(m2.om)));
          }, t3.prototype.E2 = function(e3, i3) {
            var r2, u2, s2, f2, l2, h2, d2, v2, g2, b2, w2, M2, S2, T2, x2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, H2, z2, Z2, W2 = this, Q2 = W2.Vv, K2 = W2.im(), J2 = Q2.options.tabStripPosition, q2 = y(a.I.fl("").zIndex), $2 = W2.hitTest(e3, i3);
            if ($2.element === Y) {
              if (r2 = W2.hm, u2 = Q2.e2(r2), $2.index !== r2) return;
              if (Q2.ki(a.Events.SheetTabDoubleClick, { sheet: u2, sheetName: u2.name(), sheetTabIndex: r2 }), !Q2.options.tabEditable) return false;
              if (s2 = { r: C }, t3.et(W2, "beforeEditingSheetName", s2), s2.r) return;
              if ((f2 = a.hi.ai()) && f2.endEdit && !f2.endEdit()) return;
              a.hi.F1(C), l2 = (0, o.GC$)(W2.Dg()).offset(), h2 = Q2.j2(), d2 = (0, o.GC$)(h2).offset(), v2 = (0, o.GC$)(h2).width(), b2 = (g2 = p("input")).style, g2.type = "text", g2.value = u2.name(), g2.setAttribute("contentEditable", "true"), g2.setAttribute("autocomplete", "off"), b2.position = "absolute", b2.margin = "0px", b2.padding = "0px", w2 = void 0, M2 = void 0, S2 = void 0, T2 = void 0, x2 = u2.name(), N2 = (k2 = W2.VAe[x2].composedStyle).font, j2 = k2.leftIcons, D2 = k2.foreColor, _2 = W2.Mt(this.Dg().getContext(V), x2, N2), O2 = 0, E2 = 0, j2.length > 0 && (R2 = j2.reduce((function(t4, n3) {
                var e4, i4, r3 = null !== (e4 = n3.height) && void 0 !== e4 ? e4 : W2.wTe.defaultSize;
                return r3 > E2 && (E2 = r3), t4 + (null !== (i4 = n3.width) && void 0 !== i4 ? i4 : W2.wTe.defaultSize);
              }), 0) + (j2.length - 1) * W2.wTe.iconSpace, O2 = R2 + W2.wTe.iconTextSpace), L2 = 0, j2.length > 0 && (R2 = j2.reduce((function(t4, n3) {
                var e4, i4, r3 = null !== (e4 = n3.height) && void 0 !== e4 ? e4 : W2.wTe.defaultSize;
                return r3 > L2 && (L2 = r3), t4 + (null !== (i4 = n3.width) && void 0 !== i4 ? i4 : W2.wTe.defaultSize);
              }), 0) + (j2.length - 1) * W2.wTe.iconSpace, O2 = R2 + W2.wTe.iconTextSpace), K2 ? (T2 = _2 + 2, S2 = l2.top - d2.top + W2.vm() - W2.ig - 1, w2 = l2.left - d2.left + W2.lm + W2.kv + O2, b2.height = 20 + A) : (F2 = W2.ot(), T2 = _2 + 2, B2 = m(x2, N2), z2 = ((H2 = Math.max(E2, L2, B2)) - B2) / 2, Z2 = vt(J2) ? n2.VERTICAL_TAB_BORDER_RADIUS_OFFSET + 1 : 0, S2 = l2.top - d2.top + W2.lm + W2.vm() + z2 - W2.ig - 1 + Z2, w2 = l2.left - d2.left + F2.x + W2.Om + W2.Rm + O2, J2 === c.TabStripPosition.left && 2007 === q2 && (w2 += W2.Om), J2 === c.TabStripPosition.right && w2 + T2 > v2 && (M2 = l2.left + F2.width - v2 + W2.Om + W2.Rm), b2.height = H2 + A), M2 ? b2.right = M2 + A : w2 && (b2.left = w2 + A), b2.top = S2 + A, b2.width = T2 + A, b2.backgroundColor = X, b2.borderWidth = "0px", b2.outline = I, b2.zIndex = "1", b2.font = N2, b2.color = D2, (0, o.GC$)(g2).appendTo(h2), W2.Og = g2, (0, o.GC$)(g2).addClass("gc-sheetTabEditor").bind(P, (function(t4) {
                return 13 === t4.keyCode ? (W2.Rg(u2, false), false) : 27 === t4.keyCode ? (W2.Rg(u2, true), false) : void 0;
              })).bind(G, (function() {
                g2.selectionStart = 0, g2.selectionEnd = g2.value.length;
              })).bind(U, (function() {
                W2.Rg(u2, false);
              })), g2.focus();
            }
            return false;
          }, t3.prototype.wg = function(n3) {
            var e3, i3, r2, a2, u2 = this, s2 = { e: n3, r: C };
            return t3.et(u2, "preProcessMouseDbClick", s2), e3 = s2.r, d(e3) ? (i3 = (0, o.GC$)(u2.Dg()).offset(), r2 = n3.pageX - i3.left, a2 = n3.pageY - i3.top, u2.E2(r2, a2)) : e3;
          }, t3.prototype.Mg = function(t4) {
            var n3, e3, i3 = this, r2 = i3.im(), o2 = !d(i3.Og);
            return r2 || o2 || (d(t4.wheelDelta) && d(t4.detail) && (t4.wheelDelta = t4.originalEvent.wheelDelta, t4.detail = t4.originalEvent.detail), n3 = t4.detail ? t4.detail : t4.wheelDelta, e3 = i3.Zm(), n3 > 0 ? i3.xg(e3) : i3.Ng(e3)), false;
          }, t3.prototype.Rg = function(t4, n3) {
            var e3, i3, r2, u2 = this, s2 = u2.Og;
            s2 && ((0, o.GC$)(s2).unbind(P).unbind(G).unbind(U), e3 = s2.value, false === n3 && e3 !== (i3 = t4.name()) && (r2 = { message: "" }, h(e3, u2.Vv.qv(), t4, r2) && !d(e3) && "" !== e3 ? t4.getParent().commandManager().execute({ cmd: "renameSheet", sheetName: i3, name: e3 }) : t4.ki(a.Events.InvalidOperation, { sheet: t4, sheetName: t4.name(), invalidType: 5, message: r2.message })), s2.parentNode.removeChild(s2), delete u2.Og);
          }, t3.prototype.O2 = function() {
            return this.Vv.options.allowSheetReorder;
          }, t3.prototype.Ug = function(n3, e3) {
            var i3, r2 = this;
            if (r2.O2()) {
              if (i3 = { r: C }, t3.et(r2, "beforeReorderSheet", i3), i3.r) return;
              r2.og = e3.index, r2.r2 = r2.R2(r2.og), r2.Wg = new a.Point(n3.pageX, n3.pageY), r2.Fg();
            } else r2.Qg = false;
          }, t3.prototype.R2 = function(t4) {
            var n3, e3, i3 = this.Vv.qv(), r2 = i3.length;
            if (!(t4 >= r2 || t4 < 0)) return (n3 = i3[t4].name()) || (n3 = "sheet"), (e3 = (0, o.GC$)(p("span")).text(n3).css({ position: "absolute", cursor: "default", "border-radius": "5px", opacity: ".7" })).addClass("ui-widget-header gc-tab-tip-span btn-primary"), e3;
          }, t3.prototype.a2 = function() {
            var t4 = this.h2;
            t4 && (clearTimeout(t4), this.h2 = C);
          }, t3.prototype.qg = function(t4, n3) {
            var e3, i3, r2 = this, a2 = r2.r2;
            a2 && 0 === (0, o.GC$)(".gc-tab-tip-span").length && (a2.appendTo(M.body), a2.hide()), e3 = a2.width(), i3 = a2.height(), a2.css({ left: t4 - e3 / 2, top: n3 - i3 / 2 }), a2.show();
          }, t3.prototype.$g = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2 = this, f2 = s2.Vv, l2 = (0, o.GC$)(s2.Dg()), h2 = l2.position(), v2 = l2.offset(), p2 = t4.pageX - v2.left, g2 = t4.pageY - v2.top, m2 = s2.hitTest(p2, g2), b2 = m2.element, y2 = s2.ot(), M2 = s2.tm(), S2 = s2.Vv.qv().length, T2 = 100, x2 = f2.options.tabStripPosition, A2 = s2.im(), I2 = s2.Jv(), k2 = s2.dg, N2 = A2 ? p2 : g2;
            N2 > (n3 = A2 ? y2.x + s2.dm() : y2.y + s2.dm() + I2) ? s2.ag === C && s2.rg < S2 && (s2.ag = w.setInterval((function() {
              s2.Ng(s2.Zm()), s2.rg === S2 ? (s2.i2(), x2 === c.TabStripPosition.bottom ? (e3 = h2.left + s2.B2() - q / 2, i3 = h2.top - q / 2) : x2 === c.TabStripPosition.top ? (e3 = h2.left + s2.B2() - q / 2, i3 = h2.top + y2.height) : x2 === c.TabStripPosition.left ? (e3 = h2.left + y2.width, i3 = h2.top + s2.B2() - q / 2) : x2 === c.TabStripPosition.right && (e3 = h2.left - q / 2, i3 = h2.top + s2.B2() - q / 2), k2.show()) : (s2.rg++, k2.hide()), k2.css({ left: e3, top: i3 });
            }), T2)) : N2 < M2 ? s2.ag === C && s2.rg > 0 && (s2.ag = w.setInterval((function() {
              s2.xg(s2.Zm()), 0 === s2.rg ? (s2.i2(), x2 === c.TabStripPosition.bottom ? (e3 = h2.left + M2 - q / 2, i3 = h2.top - q / 2) : x2 === c.TabStripPosition.top ? (e3 = h2.left + M2 - q / 2, i3 = h2.top + y2.height) : x2 === c.TabStripPosition.left ? (e3 = h2.left + y2.width, i3 = h2.top + I2 - q / 2) : x2 === c.TabStripPosition.right && (e3 = h2.left - q, i3 = h2.top + I2 - q / 2), k2.show()) : (s2.rg--, k2.hide()), k2.css({ left: e3, top: i3 });
            }), T2)) : (s2.i2(), b2 !== Y && -1 === s2.mm().indexOf(b2) || (r2 = m2.index, b2 === W && (r2 = s2.rg), (b2 !== Y || d(r2)) && (r2 = S2), a2 = r2, u2 = m2.position, s2.rg = a2, x2 === c.TabStripPosition.bottom ? (e3 = h2.left + u2 - q / 2, i3 = h2.top - q) : x2 === c.TabStripPosition.top ? (e3 = h2.left + u2 - q / 2, i3 = h2.top + y2.height) : x2 === c.TabStripPosition.left ? (e3 = h2.left + y2.width, i3 = h2.top + u2 - q / 2) : x2 === c.TabStripPosition.right && (e3 = h2.left - q, i3 = h2.top + u2 - q / 2), k2.css({ left: e3, top: i3 }), k2.show()));
          }, t3.prototype.B2 = function() {
            var t4, n3 = this, e3 = n3.im(), i3 = n3.Zm(), r2 = n3.L2(n3.om, i3), o2 = 0, a2 = n3.tm(), u2 = e3 ? a2 + n3.Fv : a2;
            for (t4 = r2; t4 < i3.length; t4++) o2 = i3[t4], e3 ? (u2 += n3.UUr.a7(o2), u2 += n3._v) : u2 += n3.UUr.aXe(o2);
            return u2;
          }, t3.prototype.i2 = function() {
            var t4 = this.ag;
            t4 && (clearInterval(t4), this.ag = C);
          }, t3.prototype.o2 = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Vv, u2 = o2.rg, s2 = o2.og, c2 = a2.qv();
            if (a2.suspendPaint(), this.F2(c2)) {
              for (n3 = [], e3 = 0; e3 < c2.length; e3++) c2[e3].b2() && (c2[e3].b2(false), n3.push(c2[e3]));
              for (e3 = n3.length - 1; e3 >= 0 && !(a2.getSheetPosition(n3[e3].name()) <= u2); e3--) a2.commandManager().execute({ cmd: "moveSheet", sheetName: n3[e3].name(), targetIndex: u2 });
              for (u2 -= 1, e3 = 0; e3 < n3.length && !(a2.getSheetPosition(n3[e3].name()) > u2); e3++) a2.commandManager().execute({ cmd: "moveSheet", sheetName: n3[e3].name(), targetIndex: u2 });
            } else r2 = null === (t4 = (i3 = a2.e2(s2)).options) || void 0 === t4 ? void 0 : t4.rightToLeft, -1 !== u2 && -1 !== s2 && s2 !== u2 && (s2 !== u2 - 1 && !r2 || r2) && o2.dg.isVisible() && (s2 < u2 - 1 && (u2 -= 1), a2.commandManager().execute({ cmd: "moveSheet", sheetName: i3.name(), targetIndex: u2 }));
            a2.resumePaint();
          }, t3.prototype.F2 = function(t4) {
            var n3, e3 = [];
            for (n3 = 0; n3 < t4.length; n3++) if (t4[n3].b2() && (e3.push(t4[n3]), e3.length > 1)) return true;
            return false;
          }, t3.prototype.scrollTabToActive = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Vv, o2 = i3.Zm(), a2 = r2.getSheetCount() + r2.getSheetTabCount();
            return n3 === a2 - 1 ? (i3.d2(o2), void i3.Cg()) : 0 === n3 ? (i3.l2(o2), void i3.Cg()) : void ((e3 = i3.U2(t4, n3)) && (n3 > t4 && n3++, i3.Tg(n3)));
          }, t3.prototype.U2 = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Ig().tabsInfo, o2 = false, a2 = false;
            for (e3 = 0; e3 < r2.length - 2; e3++) if (t4 === r2[e3].index && (o2 = true), n3 === r2[e3].index && (a2 = true), o2 && a2) return i3.Cg(), false;
            return true;
          }, t3.prototype.Zm = function() {
            var t4, n3 = [], e3 = this.Vv.qv();
            for (t4 = 0; t4 < e3.length; t4++) this.k2(t4) && n3.push(t4);
            return n3;
          }, t3.prototype.l2 = function(t4) {
            t4.length > 0 && this.om !== t4[0] && this.Vv.startSheetIndex(t4[0]);
          }, t3.prototype.xg = function(t4) {
            var n3, e3;
            t4.length > 0 && (n3 = this).om > t4[0] && -1 !== (e3 = n3.Vm(n3.om)) && n3.Vv.startSheetIndex(e3);
          }, t3.prototype.Ng = function(t4) {
            var n3, e3;
            t4.length > 0 && (n3 = this).om < t4[t4.length - 1] && -1 !== (e3 = n3.Ym(t4)) && n3.Vv.startSheetIndex(n3.N2(n3.om));
          }, t3.prototype.d2 = function(t4) {
            if (t4.length > 0 && this.om < t4[t4.length - 1]) {
              var n3 = this.Ym(t4);
              -1 !== n3 && this.Vv.startSheetIndex(n3);
            }
          }, t3.prototype.Ym = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2;
            if (t4.length > 0) {
              for (e3 = (n3 = this).im(), i3 = n3.dm(), r2 = 0, o2 = void 0, a2 = void 0, u2 = n3.gm(), -1 === (s2 = n3.L2(n3.om, t4)) && (s2 = 0), o2 = t4.length - 1; o2 >= s2; o2--) if (a2 = t4[o2], r2 += c2 = e3 ? n3.UUr.a7(a2) : n3.UUr.aXe(a2), o2 !== t4.length - 1 && (r2 += e3 ? n3._v : 0), f2 = u2 + r2, 0 !== o2 && (f2 += e3 ? n3.Fv : n3.UUr.aXe(a2)), f2 > i3) return l2 = void 0, l2 = o2 + 1 < t4.length ? t4[o2 + 1] : t4[t4.length - 1], n3.om < l2 ? l2 : -1;
            }
            return -1;
          }, t3.prototype.Vm = function(t4) {
            var n3;
            for (n3 = t4 - 1; n3 >= 0; n3--) if (this.k2(n3)) return n3;
            return -1;
          }, t3.prototype.N2 = function(t4) {
            var n3, e3, i3 = null === (n3 = this.Vv) || void 0 === n3 ? void 0 : n3.qv().length;
            for (e3 = t4 + 1; e3 < i3; e3++) if (this.k2(e3)) return e3;
            return -1;
          }, t3.prototype.L2 = function(t4, n3) {
            var e3;
            for (e3 = 0; e3 <= n3.length - 1; e3++) if (t4 === n3[e3]) return e3;
            return -1;
          }, t3.prototype.k2 = function(t4) {
            var n3 = this.Vv.e2(t4);
            return !(!n3 || n3.visible() !== c.SheetTabVisible.visible);
          }, t3.prototype.H2 = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Lv, o2 = i3.Yv() / 2, a2 = i3.ot().height, u2 = i3.Zm(), s2 = r2 + o2, c2 = 0;
            for (t4 = 0, n3 = u2.length; t4 < n3; t4++) if ((c2 += i3.UUr.aXe(t4)) + s2 > a2) return true;
            return -1 !== (e3 = i3.Vm(i3.om));
          }, t3.prototype.z2 = function() {
            var t4, n3 = this, e3 = n3.Vm(n3.om);
            return -1 !== e3 || -1 !== (t4 = n3.Ym(n3.Zm()));
          }, t3.prototype.nm = function() {
            var t4 = this, n3 = t4.Vv.options, e3 = n3.allSheetsListVisible, i3 = t4.im();
            if (i3) {
              if (!t4.z2() && e3 === c.AllSheetsListVisibility.auto) return true;
            } else if (!t4.H2() && e3 === c.AllSheetsListVisibility.auto) return true;
          }, t3.prototype.V2 = function() {
            this.sg++;
          }, t3.prototype.Y2 = function() {
            var t4 = this;
            t4.sg--, t4.sg <= 0 && (t4.sg = 0, t4.repaint());
          }, t3.prototype.repaint = function(t4) {
            var n3 = this.Dg();
            n3 && n3.getContext && this._e(n3.getContext(V), t4);
          }, t3.prototype._e = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2 = this;
            if (!(m2.sg > 0)) {
              if (e3 = m2.ot(), i3 = m2.fg, n3) {
                if (n3.x >= e3.x + e3.width) return;
                if (n3.y >= e3.y + e3.height) return;
                if (n3.x + n3.width > e3.width && (n3.width = e3.width - n3.x, n3.width <= 0)) return;
                if (n3.y + n3.height > e3.height && (n3.height = e3.height - n3.y, n3.height <= 0)) return;
                if (n3.width <= 0 || n3.height <= 0) return;
              }
              if ((o2 = m2.buffer) && (!o2 || o2.width === i3.width && o2.height === i3.height) && (o2 || o2.width === e3.width && o2.height === e3.height) || (o2 && (a.Bf.nh(m2.Vv, o2), m2.Nke()), m2.buffer = o2 = p(H), a.Bf.Wl(o2, m2.Vv), a.Bf.$l(o2, e3.width, e3.height)), !(e3.width <= 0 || e3.height <= 0 || n3 && (n3.width <= 0 || n3.height <= 0))) {
                (r2 = m2.buffer.getContext(V)).clearRect(0, 0, e3.width, e3.height), a.Lf.Yl(r2, -e3.x, -e3.y), m2.Z2(r2, n3), a.Lf.Yl(r2, e3.x, e3.y), c2 = u2 = e3.x >= 0 ? 0 : -e3.x, f2 = s2 = e3.y >= 0 ? 0 : -e3.y, n3 && (c2 = e3.x + n3.x, f2 = e3.y + n3.y, e3 = new a.Rect(c2, f2, n3.width, n3.height)), u2 = e3.x >= 0 ? e3.x : 0, s2 = e3.y >= 0 ? e3.y : 0, d2 = C, v2 = a.Bf.Kl(i3), g2 = a.Bf.Jl(i3), i3 && 1 !== v2 && (c2 *= v2, f2 *= g2, e3.x *= v2, e3.y *= g2, e3.width *= v2, e3.height *= g2);
                try {
                  i3 ? n3 ? (l2 = S(e3.width - c2, 0), h2 = S(e3.height - f2, 0)) : (l2 = T(e3.width - c2, S(i3.width - e3.x, 3)), h2 = T(e3.height - f2, S(i3.height - e3.y, 3))) : (c2 = n3.x, f2 = n3.y, l2 = n3.width, h2 = n3.height), i3 ? (a.Lf.Vl(t4, 1, 1), t4.clearRect(u2, s2, l2, h2), t4.drawImage(m2.buffer, c2, f2, l2, h2, u2, s2, l2, h2), a.Lf.Vl(t4, v2, g2)) : d2 = (r2 = m2.buffer.getContext(V)).getImageData(c2, f2, l2, h2);
                } catch (t5) {
                  return;
                }
                !i3 && d2 && e3.width > 0 && e3.height > 0 && t4.putImageData(d2, u2, s2);
              }
            }
          }, t3.prototype.Nke = function() {
            a.Lf.d5(this.buffer), this.buffer = null;
          }, t3.prototype.W2 = function(t4, n3) {
            var e3 = this, i3 = e3.ot();
            n3 ? t4.rect(n3.x, n3.y, n3.width, n3.height) : t4.rect(i3.x, i3.y, i3.width, i3.height), t4.clip();
          }, t3.prototype.DTe = function(t4) {
            var n3 = this, e3 = n3.BO();
            t4 && t4.forEach((function(t5) {
              var n4 = t5.src;
              n4 && !e3.getImage(n4) && e3.addImage(n4, "anonymous");
            }));
          }, t3.prototype.Ig = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, f2, l2, h2, d2 = this, v2 = d2.Vv, p2 = null === (e3 = (0, a.jf)(d2.Vv)) || void 0 === e3 ? void 0 : e3.options.rightToLeft, g2 = v2.qv(), m2 = d2.im(), b2 = d2.ot(), y2 = [];
            if (n3 && m2 && !p2 && (i3 = d2.kRe().width, b2.width = i3), r2 = n3 ? 0 : d2.tm(), !n3 && d2.nm() && m2 && (r2 -= d2.em()), o2 = r2, f2 = n3 ? d2.N2(-1) : d2.om, m2 && f2 > 0 && d2.Vm(f2) >= 0 && (o2 += d2.Fv), f2 < 0 && (d2.om = 0, f2 = 0), p2 && m2) for (o2 = b2.x + b2.width - d2.Lur() - d2.em() - d2.getPreMoreTabWidth(), l2 = f2; l2 < g2.length && (h2 = g2[l2].visible(), u2 = d2.UUr.a7(l2), s2 = d2.UUr.aXe(l2), !(o2 < d2.tm())); l2++) y2.push({ index: l2, position: h2 === c.SheetTabVisible.visible ? o2 - u2 - d2._v : o2, width: u2, height: s2, text: g2[l2].name(), visible: h2, style: t4 && t4[g2[l2].name()] }), h2 === c.SheetTabVisible.visible && (o2 -= u2 + d2._v);
            else for (l2 = f2; l2 < g2.length; l2++) {
              if (h2 = g2[l2].visible(), u2 = d2.UUr.a7(l2), s2 = d2.UUr.aXe(l2), m2) {
                if (o2 > b2.x + b2.width) break;
              } else if (o2 > b2.y + b2.height) break;
              y2.push({ index: l2, position: o2, width: u2, height: s2, text: g2[l2].name(), visible: h2, style: t4 && t4[g2[l2].name()] }), h2 === c.SheetTabVisible.visible && (o2 += m2 ? u2 + d2._v : s2);
            }
            return { tabsInfo: y2, newTabStartPosition: o2 };
          }, t3.prototype.QTe = function(t4) {
            var n3 = this, e3 = c.VisualState.normal, i3 = n3.Vv.SC;
            return i3 > 2007 ? (t4 & c.SheetTabState.hover && (e3 = c.VisualState.hover), t4 & c.SheetTabState.selected && (e3 = c.VisualState.selected), t4 & c.SheetTabState.active && (e3 = c.VisualState.active), t4 & c.SheetTabState.active && !(t4 & c.SheetTabState.selected) && (e3 = c.VisualState.activeNotSelected)) : (t4 & c.SheetTabState.selected || t4 & c.SheetTabState.hover) && (e3 = c.VisualState.hover), e3;
          }, t3.prototype.RTe = function(t4, n3) {
            if (!t4 || 0 === Object.keys(t4).length) return n3;
            var e3 = {};
            return Object.keys(n3.composedStyle).forEach((function(i3) {
              void 0 === t4[i3] || 0 === t4[i3].length ? e3[i3] = n3.composedStyle[i3] : e3[i3] = t4[i3];
            })), { composedStyle: e3, borderLeftColor: n3.borderLeftColor, borderBottomColor: n3.borderBottomColor };
          }, t3.prototype.IAe = function(t4, n3, e3, i3) {
            var r2 = this, o2 = this.Vv.sheetTabStyles.pTe(e3), u2 = r2.QTe(o2), s2 = a.I.He(u2, "gc-tab-" + a.I.Ee(u2)), f2 = a.I.He(c.VisualState.normal, "gc-tab-" + a.I.Ee(c.VisualState.normal)), l2 = r2.NAe(t4, i3, this.Vv.SC > 2007 ? f2 : s2, n3), h2 = "string" == typeof l2 ? l2 : void 0, d2 = r2.Um(s2.color, h2), v2 = r2.OTe(t4, e3);
            return { composedStyle: { backColor: l2, foreColor: d2, font: v2, leftIcons: [], rightIcons: [] }, borderLeftColor: null == f2 ? void 0 : f2.borderLeftColor, borderBottomColor: s2.borderBottomColor };
          }, t3.prototype.kAe = function(t4, n3, e3, i3, r2) {
            var o2, u2, s2, f2, l2, h2, d2, v2, p2, g2;
            if (r2 && 0 !== Object.keys(r2).length) return s2 = this, f2 = {}, l2 = this.Vv.e2(i3), h2 = this.Vv.sheetTabStyles.pTe(e3), d2 = s2.QTe(h2), v2 = a.I.He(d2, "gc-tab-" + a.I.Ee(d2)), r2.icons && (f2.leftIcons = null === (o2 = null == r2 ? void 0 : r2.icons) || void 0 === o2 ? void 0 : o2.filter((function(t5) {
              return !t5.position;
            })), f2.rightIcons = null === (u2 = null == r2 ? void 0 : r2.icons) || void 0 === u2 ? void 0 : u2.filter((function(t5) {
              return t5.position === c.IconPosition.right;
            }))), r2.backColor && (p2 = a.Pf.vl(l2, r2.backColor), f2.backColor = s2.zm(t4, e3, i3, n3, p2)), r2.foreColor ? f2.foreColor = a.Pf.vl(l2, r2.foreColor) : r2.backColor && (g2 = "string" == typeof f2.backColor ? a.Pf.vl(l2, f2.backColor) : void 0, f2.foreColor = s2.Um(v2.color, g2)), r2.font && (f2.font = r2.font), f2;
          }, t3.prototype.ITe = function(t4) {
            var n3 = this.Vv, e3 = n3.e2(t4), i3 = this.buffer.getContext(V), r2 = this.ot(), o2 = e3.name(), a2 = n3.getSheetPosition(o2), u2 = n3.sheetTabStyles.ITe(o2), s2 = this.kAe(i3, r2.y, o2, a2, u2), c2 = this.IAe(i3, r2.y, o2, a2);
            return this.RTe(s2, c2);
          }, t3.prototype.FTe = function(t4, n3, e3) {
            var i3, r2 = this, o2 = this, u2 = o2.Vv, s2 = o2.im(), f2 = null !== (i3 = u2.SC) && void 0 !== i3 ? i3 : 0;
            return e3.forEach((function(e4) {
              var i4, l2 = e4.index, h2 = u2.e2(l2), d2 = h2.name(), v2 = r2.Vv.sheetTabStyles.pTe(h2.name()), p2 = o2.QTe(v2), g2 = a.I.He(p2, "gc-tab-" + a.I.Ee(p2)), m2 = a.I.He(c.VisualState.normal, "gc-tab-" + a.I.Ee(c.VisualState.normal)), b2 = s2 ? 0 : null !== (i4 = null == e4 ? void 0 : e4.position) && void 0 !== i4 ? i4 : 0, y2 = o2.NAe(t4, l2, f2 > 2007 ? m2 : g2, b2), w2 = o2.Vv.sheetTabStyles.ITe(d2), M2 = o2.zm(t4, d2, l2, b2, null == w2 ? void 0 : w2.backColor);
              n3[d2] || (n3[d2] = r2.ITe(l2)), n3[d2].composedStyle.backColor = null != M2 ? M2 : y2;
            })), n3;
          }, t3.prototype.kRe = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.Vv, a2 = o2.qv(), u2 = r2.im(), s2 = 0, f2 = 0, l2 = r2.N2(-1);
            for (l2 < 0 && (r2.om = 0), u2 && l2 > 0 && r2.Vm(l2) >= 0 && (s2 += r2.Fv), t4 = l2; t4 < a2.length; t4++) n3 = a2[t4].visible(), e3 = r2.UUr.a7(t4), i3 = r2.UUr.aXe(t4), n3 === c.SheetTabVisible.visible && (u2 ? s2 += e3 + r2._v : f2 += i3);
            return { width: s2, height: f2 };
          }, t3.prototype.Z2 = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Vv, s2 = u2.options.scrollbarAppearance === c.ScrollbarAppearance.mobile, f2 = u2.options.tabStripPosition, l2 = u2.options.showHorizontalScrollbar;
            t4 && u2 && (t4.save(), e3 || a2.W2(t4, n3), t4.beginPath(), i3 = a2.ot(), r2 = {}, a2.UUr.c5(), o2 = a2.Ig(void 0, e3), a2.FTe(t4, r2, o2.tabsInfo), a2.wm(t4, i3), e3 || (a2.Mm(t4, i3, o2.newTabStartPosition), a2.Dm(t4, i3)), o2 = a2.Ig(r2, e3), a2.VAe = r2, a2.J2(t4, i3, o2.tabsInfo, e3), e3 || (a2.Vv && a2.Vv.options.tabNavigationVisible && a2.Im(t4, i3), l2 && !s2 && f2 === c.TabStripPosition.bottom && a2.Em(t4, i3)), t4.beginPath(), t4.restore());
          }, t3.prototype.wm = function(t4, n3) {
          }, t3.prototype.Mm = function(t4, n3, e3) {
          }, t3.prototype.X2 = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.im(), a2 = r2.tm();
            r2.nm() && (a2 -= r2.em()), o2 ? (e3 = n3.x + r2.dm(), t4.rect(a2, 0, e3 - a2, n3.height)) : (i3 = r2.Yv(), t4.rect(0, a2, n3.width, n3.height - a2 - i3)), t4.clip();
          }, t3.prototype.np = function(t4, n3) {
            var e3 = this, i3 = e3.om, r2 = e3.im(), o2 = e3.tm(), a2 = e3.Xv();
            i3 > 0 && e3.Vm(i3) >= 0 && r2 && e3.Am(t4, n3, i3, o2, a2);
          }, t3.prototype.KTe = function(t4, n3, e3) {
            var i3 = this, r2 = i3.im();
            r2 ? i3.Hm(t4, e3.position, 0, e3.width, n3.height, e3.text, e3.style) : i3.Hm(t4, 0, e3.position, n3.width, e3.height, e3.text, e3.style);
          }, t3.prototype.J2 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this, s2 = u2.Vv;
            if (u2.hm = s2.ep(), e3.length > 0) {
              for (t4.save(), t4.beginPath(), i3 || u2.X2(t4, n3), r2 = void 0, o2 = e3.length - 1; o2 > -1; o2--) (a2 = e3[o2]).index !== u2.hm ? a2.visible === c.SheetTabVisible.visible && u2.KTe(t4, n3, a2) : r2 = a2;
              r2 && r2.visible === c.SheetTabVisible.visible && u2.KTe(t4, n3, r2), t4.restore(), t4.save(), t4.beginPath(), i3 || u2.np(t4, n3), t4.restore();
            }
          }, t3.prototype.Am = function(t4, n3, e3, i3, r2) {
          }, t3.prototype.Im = function(t4, n3) {
          }, t3.prototype.Dm = function(t4, n3) {
          }, t3.prototype.Em = function(t4, n3) {
          }, t3.prototype.km = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          }, t3.prototype.Hm = function(t4, n3, e3, i3, r2, o2, a2) {
          }, t3.prototype.Dg = function() {
            return this.fg;
          }, t3.prototype.ip = function(t4, n3) {
            var e3, i3, r2, o2, u2 = t4.createLinearGradient(n3.x, n3.y, n3.width, n3.height), s2 = a.I.He(c.VisualState.normal, "gc-tabStripBackground"), f2 = s2 && s2.backgroundImage, h2 = s2 && s2.backgroundColor;
            if (f2 && -1 !== f2.indexOf("linear-gradient")) for (i3 = 0, r2 = (e3 = l(f2)).length; i3 < r2; i3++) o2 = e3[i3], u2.addColorStop(o2.point, o2.color);
            else h2 && (u2.addColorStop(0, "#DDDDDD"), u2.addColorStop(1, h2));
            return u2;
          }, t3.prototype.BTe = function(t4) {
            var n3 = this, e3 = n3.Vv.Gm(t4);
            return "" === t4 && n3.om > 0 && (e3 = n3.Vv.e2(n3.om - 1)), e3;
          }, t3.prototype.zm = function(t4, n3, e3, i3, r2) {
            var o2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2;
            if (r2) return s2 = (u2 = this).ot(), f2 = u2.BTe(n3), l2 = u2.im(), d2 = (h2 = u2.Vv.sheetTabStyles.pTe(n3)) & c.SheetTabState.active, v2 = h2 & c.SheetTabState.selected, p2 = h2 & c.SheetTabState.hover, l2 ? g2 = t4.createLinearGradient(s2.x + 0.7 * s2.height, s2.y + 0, 0.7 * s2.height, s2.height) : (m2 = s2.y, b2 = 0, i3 >= 0 && (m2 = i3, b2 = null !== (o2 = u2.UUr.aXe(e3)) && void 0 !== o2 ? o2 : 0), g2 = t4.createLinearGradient(s2.x + 0.7 * b2, m2, 0.7 * b2, m2 + b2)), y2 = "rgba(0, 0, 0, 0)", t4.fillStyle = y2, w2 = t4.fillStyle, t4.fillStyle = a.Pf.vl(f2, r2), (M2 = t4.fillStyle) !== w2 && ((u2.Vv.SC > 2007 ? d2 : v2 || p2) ? (g2.addColorStop(0, X), g2.addColorStop(0.45, "#F1F6FD"), g2.addColorStop(0.9, M2), g2.addColorStop(1, X)) : g2 = M2), g2;
          }, t3.prototype.NAe = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2 = this, g2 = p2.ot(), m2 = p2.im();
            if (m2 ? o2 = t4.createLinearGradient(g2.x + 0.7 * g2.height, g2.y + 0, 0.7 * g2.height, g2.height) : (a2 = g2.y, u2 = 0, i3 >= 0 && (a2 = i3, u2 = null !== (r2 = p2.UUr.aXe(n3)) && void 0 !== r2 ? r2 : 0), o2 = t4.createLinearGradient(g2.x + 0.7 * u2, a2, 0.7 * u2, a2 + u2)), e3) if (s2 = e3.backgroundImage, c2 = e3.backgroundColor, s2 && -1 !== s2.indexOf("linear-gradient")) for (h2 = 0, d2 = (f2 = l(s2)).length; h2 < d2; h2++) v2 = f2[h2], o2.addColorStop(v2.point, v2.color);
            else c2 && o2.addColorStop(0, c2);
            return o2;
          }, t3.prototype.Um = function(t4, n3) {
            var e3 = n3 ? f._(n3) : null;
            return e3 && f.rp(e3) < 127.5 ? X : t4 || J;
          }, t3.prototype.OTe = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Vv, o2 = r2.sheetTabStyles.pTe(n3), a2 = b(null !== (e3 = i3._font) && void 0 !== e3 ? e3 : t4.font);
            return (o2 & c.SheetTabState.selected || o2 & c.SheetTabState.hover || o2 & c.SheetTabState.active) && (a2 = s.W.ii(a2, "bold")), a2;
          }, t3.prototype.BO = function() {
            var t4 = this;
            return t4.MC || (t4.MC = new u.Wh((function() {
              t4.MC && t4.repaint();
            }))), t4.MC;
          }, t3.prototype.Mt = function(t4, n3, e3) {
            var i3, r2 = t4.font;
            return t4.font = null != e3 ? e3 : t4.font, t4.textBaseline = "middle", i3 = t4.measureText(n3).width, t4.font = r2, i3;
          }, t3.prototype.a7 = function(t4) {
            return this.UUr.a7(t4);
          }, t3.prototype.aXe = function(t4) {
            return this.UUr.aXe(t4);
          }, t3;
        })(), n2.Hv = at, (0, a.$e)(at);
      }, "./dist/core/workbook/workbook-json.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt = this && this.nJr || function() {
          return nt = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, nt.apply(this, arguments);
        }, et = this && this.$Kr || function(t3, n3, e3, i3) {
          function r2(t4) {
            return t4 instanceof e3 ? t4 : new e3((function(n4) {
              n4(t4);
            }));
          }
          return new (e3 || (e3 = Promise))((function(e4, o2) {
            function a2(t4) {
              try {
                s2(i3.next(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function u2(t4) {
              try {
                s2(i3.throw(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function s2(t4) {
              t4.done ? e4(t4.value) : r2(t4.value).then(a2, u2);
            }
            s2((i3 = i3.apply(t3, n3 || [])).next());
          }));
        }, it = this && this.tJr || function(t3, n3) {
          var e3 = { label: 0, sent: function() {
            if (1 & o2[0]) throw o2[1];
            return o2[1];
          }, trys: [], ops: [] }, i3, r2, o2, a2;
          return a2 = { next: u2(0), throw: u2(1), return: u2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
            return this;
          }), a2;
          function u2(t4) {
            return function(n4) {
              return s2([t4, n4]);
            };
          }
          function s2(u3) {
            if (i3) throw new TypeError("Generator is already executing.");
            for (; a2 && (a2 = 0, u3[0] && (e3 = 0)), e3; ) try {
              if (i3 = 1, r2 && (o2 = 2 & u3[0] ? r2.return : u3[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, u3[1])).done) return o2;
              switch (r2 = 0, o2 && (u3 = [2 & u3[0], o2.value]), u3[0]) {
                case 0:
                case 1:
                  o2 = u3;
                  break;
                case 4:
                  return e3.label++, { value: u3[1], done: false };
                case 5:
                  e3.label++, r2 = u3[1], u3 = [0];
                  continue;
                case 7:
                  u3 = e3.ops.pop(), e3.trys.pop();
                  continue;
                default:
                  if (!(o2 = e3.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== u3[0] && 2 !== u3[0])) {
                    e3 = 0;
                    continue;
                  }
                  if (3 === u3[0] && (!o2 || u3[1] > o2[0] && u3[1] < o2[3])) {
                    e3.label = u3[1];
                    break;
                  }
                  if (6 === u3[0] && e3.label < o2[1]) {
                    e3.label = o2[1], o2 = u3;
                    break;
                  }
                  if (o2 && e3.label < o2[2]) {
                    e3.label = o2[2], e3.ops.push(u3);
                    break;
                  }
                  o2[2] && e3.ops.pop(), e3.trys.pop();
                  continue;
              }
              u3 = n3.call(t3, e3);
            } catch (t4) {
              u3 = [6, t4], r2 = 0;
            } finally {
              i3 = o2 = 0;
            }
            if (5 & u3[0]) throw u3[1];
            return { value: u3[0] ? u3[1] : void 0, done: true };
          }
        }, rt = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function ot(t3, n3) {
          return t3.hasOwnProperty(n3);
        }
        function at(t3) {
          var n3, e3, i3, r2;
          if (!t3 || "string" != typeof t3) return 1;
          if ((e3 = (n3 = t3.split(".")).length) > 3) return 3;
          if (i3 = $(n3[0]), e3 <= 2) return isNaN(i3) ? 1 : i3;
          if (r2 = $(n3[1]), i3 >= 10) return i3;
          if (i3 >= 3) {
            if (r2 >= 20143) return 3;
            if (r2 >= 20142) return 2;
          }
          return 1;
        }
        function ut(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = this, s2 = t3 && t3.frozenColumnsAsRowHeaders, c2 = t3 && t3.frozenRowsAsColumnHeaders;
          if (s2 || c2) for (b && (n3 = u2.op()).isAdjustSuspended() && n3.resumeAdjust(), i3 = (e3 = u2.sheets).length, r2 = 0; r2 < i3; r2++) a2 = (o2 = e3[r2]).Ut, c2 && q(a2.ap) && (o2.cp = true, o2.deleteRows(0, a2.ap)), s2 && q(a2.fp) && o2.deleteColumns(0, a2.fp);
        }
        function st(t3, n3) {
          var e3, i3, r2, o2, a2 = this, u2 = n3 && n3.frozenColumnsAsRowHeaders, s2 = n3 && n3.frozenRowsAsColumnHeaders, c2 = 0, f2 = t3.sheets;
          if (s2 || u2) for (i3 in f2) "string" == typeof i3 && (r2 = f2[i3], o2 = q(r2.index) ? r2.index : r2.lp, e3 = a2.sheets[q(o2) ? o2 : c2], s2 && q(r2.frozenRowCount) && (e3.cp = true, e3.deleteRows(0, r2.frozenRowCount)), u2 && q(r2.frozenColCount) && e3.deleteColumns(0, r2.frozenColCount), c2++);
        }
        function ct(t3, n3) {
          t3.hp(n3, 0);
        }
        function ft(t3, n3, e3) {
          return function() {
            var i3, r2, o2, a2, u2, s2 = n3.dataManager(), c2 = function(o3) {
              var a3, u3, c3, f2;
              if (!(null === (i3 = o3[0]) || void 0 === i3 ? void 0 : i3.getParent())) return "continue";
              a3 = null === (r2 = o3[1]) || void 0 === r2 ? void 0 : r2.dataView, (u3 = s2.tables[a3 && a3.tableName]) && (c3 = u3.views[a3.name]) && (f2 = c3, c3.dp = function() {
                e3(o3), delete f2.dp;
              }, c3.vp = function() {
                var i4, r3, o4, a4, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = function(t4) {
                  if (!t4[0].getParent() || !t4[1]) return "continue";
                  var n4 = t4[1].dataView;
                  (u3 = s2.tables[n4 && n4.tableName]) && (c3 = u3.views[n4.name]) && f2 !== c3 && c3.fetch().then((function() {
                    e3(t4);
                  }));
                };
                for (i4 = 0, r3 = t3; i4 < r3.length; i4++) w2(o4 = r3[i4]);
                for (l2 in a4 = s2.tables) if (a4.hasOwnProperty(l2)) for (v2 in d2 = (h2 = a4[l2]).views) d2.hasOwnProperty(v2) && delete (p2 = d2[v2]).vp;
                for (g2 = 0, m2 = t3; g2 < m2.length; g2++) if ((o4 = m2[g2])[0].getParent() && o4[1] && (b2 = o4[1].dataView, (u3 = s2.tables[b2 && b2.tableName]) && (c3 = u3.views[b2.name], f2 === c3))) {
                  y2 = o4[0], n3.suspendPaint(), y2.Mf.recalcAll(true), n3.resumePaint();
                  break;
                }
              });
            };
            for (o2 = 0, a2 = t3; o2 < a2.length; o2++) c2(u2 = a2[o2]);
          };
        }
        function lt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2;
          if (t3.length > 0) {
            for (r2 = n3.dataManager(), o2 = void 0, u2 = 0; u2 < t3.length; u2++) if (o2 = t3[u2][1] && t3[u2][1].dataView) {
              a2 = u2;
              break;
            }
            (s2 = r2.tables[o2 && o2.tableName]) && (c2 = s2.views[o2.name]) && (f2 = function(t4) {
              var e4 = t4[0], r3 = t4[1], o3 = t4[2];
              e4.getParent() && (e4.ANi(r3, i3), o3 && vt(n3, o3, e4));
            }, c2.fetch().then((function() {
              var i4, o3, u3, l2, h2;
              if (t3[a2][0].getParent()) {
                for (f2(t3[a2]), i4 = [], o3 = function(t4) {
                  var n4 = t4[1] && t4[1].dataView;
                  n4 && (s2 = r2.tables[n4.tableName]) && (c2 = s2.views[n4.name]) && i4.push(c2.fetch().then((function() {
                    f2(t4);
                  })));
                }, u3 = 0, l2 = t3.slice(1); u3 < l2.length; u3++) o3(h2 = l2[u3]);
                Promise.all(i4).then((function() {
                  n3.suspendPaint(), e3 && n3.calculate(1), n3.resumePaint();
                }));
              }
            })).catch(ft(t3, n3, f2)));
          }
        }
        function ht(t3, n3, e3) {
          var i3, r2, o2 = null == n3 ? void 0 : n3.dataView;
          if (o2) return (i3 = e3.tables[o2 && o2.tableName]) && (r2 = i3.views[o2.name]) ? r2.fetch().then((function() {
            t3.ANi(n3, true);
          })) : void 0;
        }
        function dt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2, b2 = 0, y2 = n3.sheetTabs, w2 = [], M2 = i3 && i3.gp, C2 = t3.mp, S2 = [], T2 = n3.sheetCount;
          for (r2 = 0, o2 = Object.keys(y2); r2 < o2.length; r2++) (u2 = y2[a2 = o2[r2]]) && (s2 = u2.index - T2, S2.splice(s2, 0, u2));
          if (C2 && C2.length && S2) {
            for (c2 = 0, f2 = S2; c2 < f2.length; c2++) if ("string" == typeof (l2 = (u2 = f2[c2]).name)) {
              if (!(h2 = t3.mp[b2])) continue;
              if (h2.fromJSON(u2, false, e3, i3, true), z(u2.order) || (h2.E0i = u2.order), !M2 && (h2._gi === v.SheetType.tableSheet || h2._gi === v.SheetType.ganttSheet || h2._gi === W)) {
                for (d2 = n3.formatStringNames, p2 = [], g2 = 0; d2 && g2 < d2.length; g2++) (m2 = d2[g2]).sheetTabName === h2.name() && p2.push(m2);
                w2.push([h2, u2.addition, p2]);
              }
              b2++;
            }
            lt(w2, t3, !(i3 && i3.doNotRecalculateAfterLoad), true);
          }
        }
        function vt(t3, n3, e3) {
          var i3, r2;
          if (n3) for (i3 = 0; i3 < n3.length; i3++) r2 = n3[i3], t3.pp(t3.bp, r2.name, r2.formula, r2.row, r2.col, true, r2.comment, e3);
        }
        function pt(t3, n3) {
          var e3 = t3.getActiveSheetTab(), i3 = n3.activeSheetTabIndex;
          q(i3) ? (t3.yp(i3, 0), t3.u3(e3)) : (t3.f3(), e3 && e3.b2(false, false));
        }
        function gt(t3, n3, e3, i3, r2) {
          if (e3 === W && i3 === W && t3 === W && n3 === W) return W;
          var o2 = "";
          return e3 !== W && (o2 += "$" + T(e3)), t3 !== W && (o2 += "$" + (t3 + 1)), o2 += ":", i3 !== W && (o2 += "$" + T(i3)), n3 !== W && (o2 += "$" + (n3 + 1)), r2 ? (0, f.qTe)(r2) + "!" + o2 : o2;
        }
        function mt(t3) {
          if (t3 instanceof Date) {
            var n3 = t3.toISOString().split(".");
            return n3[n3.length - 1].endsWith("Z") && (n3[n3.length - 1] = "Z"), n3.join("");
          }
        }
        function bt(t3) {
          var n3, e3;
          t3.Dp || (t3.Dp = {}), t3.docProps.appDocProps && (t3.Dp.docPropsApp || (t3.Dp.docPropsApp = {}), wt(n3 = t3.docProps.appDocProps, t3.Dp.docPropsApp)), t3.docProps.coreDocProps && (t3.Dp.docPropsCore || (t3.Dp.docPropsCore = {}), Mt(e3 = t3.docProps.coreDocProps, t3.Dp.docPropsCore));
        }
        function yt(t3, n3) {
          var e3, i3, r2, o2;
          t3.Dp = n3 ? C(n3) : {}, n3 ? (n3.docPropsApp && (e3 = {}, Ct(i3 = n3.docPropsApp, e3), t3.docProps.appDocProps = e3), n3.docPropsCore && (r2 = {}, St(o2 = n3.docPropsCore, r2), t3.docProps.coreDocProps = r2), n3.docPropsCustom && (t3.Dp.docPropsCustom = n3.docPropsCustom.map((function(t4) {
            var n4, e4 = Object.keys(t4.propertyItemChildElement)[0];
            return e4 && !e4.startsWith("vt:") ? nt(nt({}, t4), { propertyItemChildElement: (n4 = {}, n4["vt:".concat(e4)] = t4.propertyItemChildElement[e4], n4) }) : t4;
          })))) : (delete t3.docProps.appDocProps, delete t3.docProps.coreDocProps);
        }
        function wt(t3, n3) {
          if (t3.company && (n3.Company = Y(t3.company)), t3.manager && (n3.Manager = Y(t3.manager)), t3.hyperlinkBase && (n3.HyperlinkBase = Y(t3.hyperlinkBase)), t3.template && (n3.Template = Y(t3.template)), t3.totalTime) {
            if ("number" != typeof t3.totalTime) {
              var e3 = parseInt(t3.totalTime, 10);
              t3.totalTime = isNaN(e3) ? 0 : e3;
            }
            n3.TotalTime = Y(t3.totalTime + "");
          }
        }
        function Mt(t3, n3) {
          if (t3.category && (n3.category = Y(t3.category)), t3.contentStatus && (n3.contentStatus = Y(t3.contentStatus)), t3.creator && (n3.creator = Y(t3.creator)), t3.description && (n3.description = Y(t3.description)), t3.keywords && (n3.keywords = Y(t3.keywords)), t3.subject && (n3.subject = Y(t3.subject)), t3.title && (n3.title = Y(t3.title)), t3.created && (n3.created = mt(t3.created)), t3.modified && (n3.modified = mt(t3.modified)), t3.lastModifiedBy && (n3.lastModifiedBy = Y(t3.lastModifiedBy)), t3.lastPrinted && (n3.lastPrinted = mt(t3.lastPrinted)), t3.revision) {
            if ("number" != typeof t3.revision) {
              var e3 = parseInt(t3.revision, 10);
              t3.revision = isNaN(e3) ? 1 : e3;
            }
            n3.revision = Y(t3.revision + "");
          }
        }
        function Ct(t3, n3) {
          if (t3.Company && (n3.company = Z(t3.Company)), t3.Manager && (n3.manager = Z(t3.Manager)), t3.HyperlinkBase && (n3.hyperlinkBase = Z(t3.HyperlinkBase)), t3.Template && (n3.template = Z(t3.Template)), t3.TotalTime) {
            var e3 = parseInt(Z(t3.TotalTime), 10);
            n3.totalTime = isNaN(e3) ? 0 : e3;
          }
        }
        function St(t3, n3) {
          if (t3.created && (n3.created = new Date(t3.created)), t3.lastModifiedBy && (n3.lastModifiedBy = Z(t3.lastModifiedBy)), t3.modified && (n3.modified = new Date(t3.modified)), t3.lastPrinted && (n3.lastPrinted = new Date(t3.lastPrinted)), t3.category && (n3.category = Z(t3.category)), t3.contentStatus && (n3.contentStatus = Z(t3.contentStatus)), t3.creator && (n3.creator = Z(t3.creator)), t3.description && (n3.description = Z(t3.description)), t3.keywords && (n3.keywords = Z(t3.keywords)), t3.subject && (n3.subject = Z(t3.subject)), t3.title && (n3.title = Z(t3.title)), t3.revision) {
            var e3 = parseInt(Z(t3.revision), 10);
            n3.revision = isNaN(e3) ? 1 : e3;
          }
        }
        function Tt(t3, n3, e3) {
          i2.Workbook.fh && X(i2.Workbook.fh, (function(i3, r2) {
            var o2 = r2[n3];
            o2 && o2.call.apply(o2, rt([t3], e3, false));
          }));
        }
        function xt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = It(t3), T2 = [], x2 = 0, A2 = 0, I2 = 0, j2 = 0;
          for (a2 = 0; a2 < S2; a2++) (u2 = kt(t3, a2)) && (u2.wp = a2 + 1, (c2 = u2.tables) && c2.all().length > 0 && c2.all().forEach((function(t4) {
            ++x2, t4._id = x2 + "";
          })), (f2 = u2.charts) && f2.all().length > 0 && f2.all().forEach((function(t4) {
            ++A2, t4.wp = A2;
          })), (l2 = u2.pictures) && l2.all().length > 0 && l2.all().forEach((function(t4) {
            ++I2, t4.wp = I2;
          })), (h2 = u2.pivotTables) && h2.all().length > 0 && h2.all().forEach((function(t4) {
            ++j2, t4.Mp = j2;
          })), d2 = k(n3), T2.push(d2), n3.c_.push({ n_: U, Id: G + d2, Type: s.RelationshipConstants.fo, Target: N("worksheets/" + B + d2) }));
          if (p2 = e3 && e3.fileType === v.OpenSaveFileType.excel, g2 = null === (r2 = null === (i3 = t3.vuo) || void 0 === i3 ? void 0 : i3.guo) || void 0 === r2 ? void 0 : r2.PKr, e3 && e3.losslessEditing && p2 && g2) for (y2 in t3.vuo.guo.PKr = nt({}, g2), m2 = /(<singleXmlCell\b[^>]*?\bid=")(\d+)("[^>]*>)/g, x2++, b2 = x2, g2) g2.hasOwnProperty(y2) && (w2 = g2[y2], g2[y2] = w2.replace(m2, (function(t4, n4, e4, i4) {
            var r3 = parseInt(e4, 10);
            return r3 > b2 ? b2 = r3 : r3 = b2, b2++, "".concat(n4).concat(r3).concat(i4);
          })));
          return At(n3, t3, e3), ("XLSM" === (M2 = null === (o2 = null == e3 ? void 0 : e3.excelFileType) || void 0 === o2 ? void 0 : o2.toUpperCase()) || "XLTM" === M2) && t3.vuo && t3.vuo[s.XFileConstants.duo] && (C2 = k(n3), n3.c_.push({ n_: U, Id: G + C2, Type: s.RelationshipConstants.bKr, Target: s.XFileConstants.mKr })), t3.Cp = { slicer: 0, timeline: 0, drawing: 0, vmlDrawing: 0 }, T2;
        }
        function At(t3, n3, e3) {
          var i3, r2, o2, a2, u2, c2, f2, l2 = G + k(t3);
          t3.c_.push({ n_: U, Id: l2, Type: s.RelationshipConstants.Xs, Target: N("sharedStrings") }), l2 = G + k(t3), t3.c_.push({ n_: U, Id: l2, Type: s.RelationshipConstants.Ks, Target: N("styles") }), l2 = G + k(t3), t3.c_.push({ n_: U, Id: l2, Type: s.RelationshipConstants.$s, Target: N("theme/theme1") }), u2 = e3 && e3.fileType === v.OpenSaveFileType.excel, c2 = null === (r2 = null === (i3 = n3.vuo) || void 0 === i3 ? void 0 : i3.guo) || void 0 === r2 ? void 0 : r2.HKr, e3 && e3.losslessEditing && u2 && c2 && ((c2 = nt({}, c2)).n_ = U, c2.Id = G + k(t3), c2.Target = N("xmlMaps"), t3.c_.push(c2)), f2 = null === (a2 = null === (o2 = n3.vuo) || void 0 === o2 ? void 0 : o2.muo) || void 0 === a2 ? void 0 : a2.VKr, e3 && e3.losslessEditing && u2 && f2 && ((f2 = nt({}, f2)).n_ = U, f2.Id = G + k(t3), f2.Target = N("connections"), t3.c_.push(f2));
        }
        function It(t3) {
          return t3.getSheetCount() + t3.getSheetTabCount();
        }
        function kt(t3, n3) {
          var e3 = t3.e2(n3);
          return e3 instanceof g.Worksheet ? e3 : e3 && e3.Mf;
        }
        function Nt(t3, n3) {
          var e3, i3, r2, o2;
          for (e3 = 0, i3 = t3.getSheetCount(); e3 < i3; e3++) if (r2 = t3.getSheet(e3), n3 === (o2 = t3.getSheetPosition(r2.name()))) return null;
          for (e3 = 0, i3 = t3.getSheetTabCount(); e3 < i3; e3++) if (r2 = t3.getSheetTab(e3), n3 === (o2 = t3.getSheetPosition(r2.name()))) return r2;
        }
        function jt(t3) {
          return t3.substring(0, 19) === F;
        }
        function Dt(t3) {
          return t3.substring(0, 23) === L;
        }
        function _t(t3, n3) {
          var e3 = t3;
          return e3.length > 255 ? e3 = e3.slice(-240) : (e3 = n3 + " " + e3).length > 250 && (e3 = t3 + " " + Math.random().toString(36).slice(-6)), e3;
        }
        function Ot(t3) {
          var n3, e3, i3, r2 = It(t3);
          for (e3 = 0; e3 < r2; e3++) if (i3 = null === (n3 = kt(t3, e3)) || void 0 === n3 ? void 0 : n3.hl) return i3;
        }
        function Et(t3) {
          var n3, e3, i3, r2 = null === (i3 = null === (e3 = null === (n3 = t3.workbook) || void 0 === n3 ? void 0 : n3.lossless) || void 0 === e3 ? void 0 : e3.version) || void 0 === i3 ? void 0 : i3.fileVer;
          return !!z(r2) || ("1.0" === (r2 = r2.trim()) || "" === r2);
        }
        function Rt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2 = t3.themeFont;
          return "Body" === c2 ? a2 = e3 || (u2 = Ot(n3)) && u2.bodyFont() : "Headings" === c2 && (a2 = i3 || (u2 = Ot(n3)) && u2.headingFont()), o2 = !a2 || r2 && !t3.font ? t3.font || J : (s2 = f.util._0(t3.font || J)).fontWeight + " " + s2.fontStyle + " " + s2.fontSize + " " + a2;
        }
        function Lt() {
          return { fileVer: "1.1", proName: "sjs", proVer: f.productInfo.productVersion };
        }
        function Ft() {
          var t3 = new r.Style();
          return t3.font = "14.67px Calibri", t3.foreColor = "Text 1", t3.borderLeft = new r.LineBorder(), t3.borderRight = new r.LineBorder(), t3.borderTop = new r.LineBorder(), t3.borderBottom = new r.LineBorder(), t3.name = K().NORMAL, t3.backColor = null, t3;
        }
        function Bt(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = n3 && n3.rowHeadersAsFrozenColumns, l2 = n3 && n3.columnHeadersAsFrozenRows;
          if (f2 || l2) return true;
          if (n3 && n3.fileType === v.OpenSaveFileType.excel) {
            if ((e3 = t3.mp) && e3.length) {
              for (i3 = 0, r2 = e3; i3 < r2.length; i3++) if ((o2 = r2[i3])._gi !== v.SheetType.reportSheet) return true;
            }
            if ((a2 = t3.sheets) && a2.length > 0) {
              for (u2 = 0, s2 = a2; u2 < s2.length; u2++) if ((c2 = s2[u2]).dataRanges && !c2.dataRanges.isEmpty()) return true;
            }
          }
        }
        function Pt(t3) {
          return f.mt.w1(C({ fileType: v.OpenSaveFileType.sjs, includeBindingSource: false, includeStyles: true, includeFormulas: true, saveAsView: false, rowHeadersAsFrozenColumns: false, columnHeadersAsFrozenRows: false, includeAutoMergedCells: false, includeCalcModelCache: false, includeUnusedNames: true, exportSharedFormula: true, includeEmptyRegionCells: true, saveR1C1Formula: false }), t3);
        }
        function Gt(t3, n3) {
          n3 && (t3.options.colHeaderAutoText = v.HeaderAutoText.numbers);
        }
        function Ut(t3, n3) {
          var e3 = n3.state;
          "hidden" === e3 ? t3.visible(v.SheetTabVisible.hidden, false) : "veryHidden" === e3 && t3.visible(v.SheetTabVisible.veryHidden, false);
        }
        function Ht(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2 = kt(t3, e3), f2 = r2.loadStatus, l2 = Nt(t3, e3);
          (c2 || l2) && (c2.loading = true, s2 = (u2 = x(n3, "sheetData")) && u2.rowCount || 200, f2.total += s2, l2 ? (l2.yh(n3, i3, r2), z(n3.order) || (l2.E0i = n3.order)) : (c2.rv(n3, i3, r2, o2, a2), z(n3.order) || (c2.E0i = n3.order)));
        }
        function Vt(t3) {
          var n3, e3 = t3.getActiveSheet();
          return e3 || (n3 = t3.getActiveSheetTab()) && (e3 = n3.Mf), e3;
        }
        function zt(t3) {
          var n3, e3, i3;
          for (n3 = 0, e3 = It(t3); n3 < e3; n3++) delete (i3 = kt(t3, n3)).loading, g.Worksheet.et(i3, "onSheetLoaded");
        }
        function Yt(t3, n3, e3, i3) {
          var r2, o2 = t3;
          M.culture(n3), o2.Bp = false, e3 && i3 && i3.Zg(), o2.resumeEvent(), o2.Cg(), o2.resumePaint(), null === (r2 = o2.resumeOp) || void 0 === r2 || r2.call(o2);
        }
        function Zt(t3) {
          var n3, e3, i3, r2, o2 = {}, a2 = [];
          for (n3 = 0, e3 = t3; n3 < e3.length; n3++) r2 = (i3 = e3[n3]).f, o2.hasOwnProperty(r2) || (o2[r2] = i3, a2.push(i3));
          return a2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Sp = n2.Tp = n2.Ap = n2.MHr = n2.CHr = n2.SHr = n2.xHr = n2.convertToExcelTime = n2.getAbsoluteRangeText = n2.Ip = void 0, i2 = e2("./dist/core/workbook/workbook.js"), r = e2("./dist/core/worksheet/style.js"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/tasks.js"), u = e2("./dist/core/excel-io-util/common.js"), s = e2("./dist/core/excel-io-util/excel-types.js"), c = e2("Common"), f = e2("./dist/core/util/common.js"), l = e2("CalcEngine"), h = e2("./dist/core/util/styleManager.js"), d = e2("./dist/core/util/theme.js"), v = e2("./dist/core/core.enum.js"), p = e2("./dist/core/core.ns.js"), g = e2("./dist/core/worksheet/worksheet.js"), m = e2("./dist/core/util/dataManager.js"), b = !!l, y = r.Style.xp, w = c.Commands.UndoManager, M = c.Common.CultureManager, C = c.Common.lt.tv, S = u.Util.Kr, T = u.IndexHelper.nr, x = f.util.xr, A = f.util.o1, I = f.util.go, k = u.Util.wr, N = u.Util.Mr, j = u.Util.Sr, D = u.Util.xAe, _ = f.util.Pr, O = f.mt.n1, E = f.mt.vo, R = u.Util.io, L = "__builtInValidatorStyle", F = "__builtInTableStyle", B = s.XFileConstants.ru, P = s.XFileConstants.mo, G = s.XFileConstants.Rr, U = s.XFileConstants.Lr, H = s.XFileConstants.Ki, V = s.XFileConstants.ou, z = c.Common.lt.ht, Y = c.Common.zf.j0, Z = c.Common.zf.dI, W = void 0, Q = new c.Common.ResourceManager(p.SR, "Sheets"), K = Q.getResource.bind(Q), J = "normal normal normal 11pt/normal Calibri", X = o.GC$.each, q = f.mt.T1, $ = parseFloat, n2.Ip = ht, n2.getAbsoluteRangeText = gt, n2.convertToExcelTime = mt, n2.xHr = wt, n2.SHr = Mt, n2.CHr = Ct, n2.MHr = St, i2.Workbook.prototype.toJSON = function(t3) {
          return this.Np(t3);
        }, tt = function(t3) {
          var n3, e3, i3;
          (null === (e3 = null === (n3 = null == t3 ? void 0 : t3.docPropsApp) || void 0 === n3 ? void 0 : n3.TitlesOfParts) || void 0 === e3 ? void 0 : e3.sheetsNameArray.length) > 0 && (i3 = t3.docPropsApp.TitlesOfParts.sheetsNameArray, t3.docPropsApp.TitlesOfParts.sheetsNameArray = i3.map((function(t4) {
            return E(t4);
          })));
        }, i2.Workbook.prototype.Np = function(t3, n3) {
          var e3, r2, a2, u2, s2, c2, h2, d2, v2, p2, g2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2 = this, Y2 = { version: f.productInfo.productVersion, name: V2.name }, Z2 = t3 && t3.rowHeadersAsFrozenColumns, Q2 = t3 && t3.columnHeadersAsFrozenRows, K2 = Z2 || Q2;
          if (K2 && (t3.kp = true), bt(V2), Y2.docProps = C(V2.Dp), b && (a2 = l.Functions.setLanguagepackage) && (u2 = a2(), a2("en")), this._p && this._p.Ep(this, t3), s2 = V2.getSheetCount(), Y2.sheetCount = s2, K2) for ((c2 = new i2.Workbook()).fromJSON(V2.toJSON({ includeBindingSource: null === (e3 = t3.includeBindingSource) || void 0 === e3 || e3, includeAutoMergedCells: false, ignoreFormula: t3.ignoreFormula, cb: t3.cb, convertReportSheetToWorksheet: t3 && t3.convertReportSheetToWorksheet, ignorePivotStyle: true }), { gp: true }), V2 = c2, h2 = 0; h2 < s2; h2++) v2 = (d2 = V2.getSheet(h2)).getRowCount(1), p2 = d2.getColumnCount(2), y2 = Q2 && v2 > 0, (g2 = Z2 && p2 > 0) && d2.addColumns(0, p2), y2 && d2.ffe(0, v2, 3, { rowExpand: y2 }), g2 && d2.jp(p2, y2 ? v2 : 0), y2 && d2.Op(v2, g2 ? p2 : 0);
          for (V2.Bp = true, V2.suspendPaint(), V2.suspendEvent(), b && ((w2 = V2.Lp).calcOnDemand && (w2.calcOnDemand = false, V2.Fp(), w2.suspend(true), w2.resume(true), w2.calcOnDemand = true), (null == t3 ? void 0 : t3.saveR1C1Formula) && (Y2.frc = 1, w2.forceR1C1Formula = true), w2.suspend(true)), (M2 = V2.startSheetIndex()) && (Y2.startSheetIndex = M2), X(V2.options, (function(t4, n4) {
            "_ps" !== t4 && i2.Workbook.Pp[t4] !== n4 && (Y2[t4] = n4);
          })), (null == t3 ? void 0 : t3.isServer) && (Y2.collaborationInfo = { v: "0.1" }, (S2 = null === (r2 = V2.getActiveSheet()) || void 0 === r2 ? void 0 : r2.jKe()) !== W && (Y2.activeSheetId = S2)), (T2 = V2.getActiveSheetIndex()) !== i2.Workbook.Gp && (Y2.activeSheetIndex = T2), x2 = {}, A2 = f.util.RYr(V2, n3), I2 = 0; I2 < s2; I2++) d2 = V2.getSheet(I2), k2 = t3, z(A2) || I2 === A2 || (k2 = {}), (N2 = d2.toJSON(k2)).index = I2, N2.order = d2.E0i, x2[d2.name()] = N2;
          for (o.GC$.isEmptyObject(x2) || (Y2.sheets = x2), j2 = {}, D2 = V2.getSheetTabCount(), _2 = V2.getActiveSheetTabIndex(), O2 = 0, E2 = 0, R2 = 0, L2 = function(n4) {
            var e4 = V2.Ofe(n4), i3 = e4.toJSON(t3);
            Array.isArray(i3) ? (i3.forEach((function(t4, e5) {
              t4.index = s2 + n4 + e5 - O2 + 1, j2[t4.sheet.name] = t4, E2++;
            })), R2 = i3.length - 1) : i3 ? (i3.sheetType = i3.sheetType || e4._gi, i3.index = s2 + n4 + R2 - O2, i3.order = e4.E0i, j2[e4.name()] = i3, E2++) : (O2++, _2 >= n4 && _2--);
          }, F2 = 0; F2 < D2; F2++) L2(F2);
          if (Y2.sheetTabCount = E2, -1 !== _2 && (Y2.activeSheetTabIndex = _2), o.GC$.isEmptyObject(j2) || (Y2.sheetTabs = j2), B2 = [], P2 = V2.Hp) {
            for (G2 in P2) ot(P2, G2) && B2.push(P2[G2]);
            B2.length > 0 && (Y2.namedStyles = B2);
          }
          return (U2 = V2.sheetTabStyles) && (H2 = U2.all(), o.GC$.isEmptyObject(H2) || (Y2.sheetTabStylesMap = H2)), i2.Workbook.fh && X(i2.Workbook.fh, (function(n4, e4) {
            e4.toJson && e4.toJson.call(V2, Y2, t3);
          })), (0, m.PSe)(V2, Y2, t3), b && a2 && a2(u2), V2.Bp = false, b && (delete V2.Lp.forceR1C1Formula, V2.Lp.resume(false, true)), V2.resumeEvent(), V2.resumePaint(), K2 && delete t3.kp, Y2;
        }, i2.Workbook.prototype.fromJSON = function(t3, n3) {
          var e3, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, Y2, Z2, Q2, K2, J2 = [], $2 = this;
          if ($2.Ymr = J2, $2.zp(), !t3) return Promise.resolve([]);
          if ($2.vuo = W, (null === (e3 = $2.Lp) || void 0 === e3 ? void 0 : e3.Ui) && (clearTimeout($2.Lp.Ui), $2.Lp.Ui = 0), $2.Vp && $2.Vp.terminate(), n3 && n3.incrementalLoading) return true === n3.incrementalLoading && (n3.incrementalLoading = {}), $2.Yp(t3, n3);
          s2 = at(t3.version), l2 = { noSchema: c2 = s2 < 3, version: s2 }, h2 = f.hi.ai(), $2.Bp = true, null === (o2 = $2.suspendOp) || void 0 === o2 || o2.call($2), $2.suspendPaint(), $2.suspendEvent(), d2 = M.culture(), M.culture("");
          try {
            for (x2 in $2.Zp(), $2.Wp = new w($2, -1, $2.options.allowUndo), b && ($2.Qp(true), $2.Lp.suspendAdjust(), t3.frc && ($2.Lp.forceR1C1Formula = true)), $2.Kp = -1, $2.clearSheets(), $2.clearSheetTabs(), v2 = t3.name, q(v2) && ($2.name = v2), p2 = $2.options, g2 = t3.canUserEditFormula, q(g2) && (p2.allowUserEditFormula = g2), C2 = t3.allowDragDrop, q(C2) && (p2.allowUserDragDrop = C2), S2 = t3.allowDragHeaderToMove, q(S2) && (p2.allowDragHeaderToMove = S2), T2 = t3.allowDragFill, q(T2) && (p2.allowUserDragFill = T2), p2) ot(p2, x2) && (A2 = t3[x2], q(A2) && (p2[x2] = A2));
            if (yt($2, t3.docProps), $2.Kwt(), Tt($2, "preFromJson", [t3, c2, n3]), J2.push((0, m.GSe)($2, t3)), I2 = t3.sheetCount, q(I2) || (I2 = i2.Workbook.Jp), $2.Xp(t3.sheets || I2, 0), $2.Hp = {}, $2.qp = {}, k2 = t3.namedStyles) for (N2 = 0, j2 = k2; N2 < j2.length; N2++) D2 = j2[N2], _2 = new r.Style(), y(D2, $2), _2.fromJSON(D2, c2, $2), $2.$p(_2);
            if (i2.Workbook.fh && X(i2.Workbook.fh, (function(e4, i3) {
              var r2 = i3.fromJson;
              r2 && "table" === i3.name && r2.call($2, t3, c2, n3);
            })), O2 = 0, E2 = void 0, R2 = t3.sheets, L2 = void 0, F2 = void 0, B2 = false, P2 = true, R2) for (G2 in R2) "string" == typeof G2 && (U2 = R2[G2], H2 = q(U2.index) ? U2.index : U2.lp, (E2 = $2.sheets[q(H2) ? H2 : O2]) && (U2.isApplyRefilter = n3 && n3.isApplyRefilter, E2.PRe(U2, false, l2, n3, true, J2), z(U2.order) || (E2.E0i = U2.order), O2++, F2 = U2.allowUndo, B2 ? P2 = P2 && F2 === L2 : (L2 = F2, B2 = true)));
            if (q(L2) && P2 && (p2.allowUndo = L2), ct($2, t3), $2.mp.length > 0 ? (dt($2, t3, l2, n3), pt($2, t3)) : t3.activeSheetTabIndex >= 0 && (t3.activeSheetIndex = 0), V2 = t3.activeSheetIndex, Y2 = t3.activeSheetId, q(Y2)) for (H2 = 0; H2 < $2.sheets.length; H2++) $2.sheets[H2].jKe() === Y2 && (V2 = H2);
            q(V2) || (V2 = i2.Workbook.Gp), $2.tb(V2, 0, W, W, true), (Z2 = $2.sheets[V2]) && Z2.b2(true, false), $2.dse = $2.vse($2.sheets, $2.mp), Q2 = t3.startSheetIndex, q(Q2) && $2.startSheetIndex(Q2), K2 = t3.backgroundImage, q(K2) && $2.nb(), $2.sheetTabStyles.xTe = null !== (a2 = t3.sheetTabStylesMap) && void 0 !== a2 ? a2 : {}, i2.Workbook.fh && X(i2.Workbook.fh, (function(e4, i3) {
              var r2 = i3.fromJson;
              r2 && r2.call($2, t3, c2, n3);
            })), b && $2.Lp.resumeAdjust(), st.call($2, t3, n3), i2.Workbook.et($2, "initCustomName"), $2.docProps.customDocPropsManager.$ar();
          } finally {
            b && ($2.Lp.resumeAdjust(), delete $2.Lp.forceR1C1Formula), M.culture(d2), $2.Bp = false, Z2 = $2.getActiveSheet(), h2 && Z2 && Z2.Zg(), $2.resumeEvent(), $2.Cg(), $2.resumePaint(), Z2 && $2.ki(f.Events.ActiveSheetChangedInternal, { oldSheet: void 0, newSheet: Z2 }), b && $2.Lp.processDynamicRef(), $2.Ymr = null, null === (u2 = $2.resumeOp) || void 0 === u2 || u2.call($2);
          }
          return Promise.all(J2);
        }, i2.Workbook.prototype.Yp = function(t3, n3) {
          var e3, o2, u2, s2, c2, l2, h2, d2, v2, p2, g2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, Y2, Z2 = [], Q2 = this;
          Q2.Ymr = Z2, Q2.Vp = new a.Tasks((function() {
            var t4, n4, e4, i3 = Q2.getActiveSheet();
            if (i3 && !i3.loaded) {
              for (t4 = this.tasks.length - 1; t4 >= 0; t4--) if ((n4 = this.tasks[t4].args[0]) && n4.Ut && n4.name && n4.name() === i3.name()) return e4 = this.tasks[t4], this.tasks.splice(t4, 1), e4;
            }
            return this.tasks.pop();
          }), (function() {
            var t4 = Q2.getActiveSheet();
            return t4 && (Q2.ib.eb || t4.isEditing() || t4.rt.rb || t4.rt.ob || t4.rt.ab);
          })), u2 = at(t3.version), c2 = { noSchema: s2 = u2 < 3, version: u2 }, l2 = f.hi.ai(), Q2.Bp = true, null === (e3 = Q2.suspendOp) || void 0 === e3 || e3.call(Q2), Q2.suspendPaint(), Q2.suspendEvent(), h2 = M.culture(), M.culture("");
          try {
            for (T2 in Q2.Zp(), Q2.Wp = new w(Q2, -1, Q2.options.allowUndo), b && (Q2.Qp(true), Q2.Lp.suspendAdjust()), Q2.Kp = -1, Q2.clearSheets(), Q2.clearSheetTabs(), d2 = t3.name, q(d2) && (Q2.name = d2), v2 = Q2.options, p2 = t3.canUserEditFormula, q(p2) && (v2.allowUserEditFormula = p2), g2 = t3.allowDragDrop, q(g2) && (v2.allowUserDragDrop = g2), C2 = t3.allowDragHeaderToMove, q(C2) && (v2.allowDragHeaderToMove = C2), S2 = t3.allowDragFill, q(S2) && (v2.allowUserDragFill = S2), v2) ot(v2, T2) && (x2 = t3[T2], q(x2) && (v2[T2] = x2));
            if (yt(Q2, t3.docProps), Q2.Kwt(), Tt(Q2, "preFromJson", [t3, s2, n3]), Z2.push((0, m.GSe)(Q2, t3)), A2 = t3.sheetCount, q(A2) || (A2 = i2.Workbook.Jp), Q2.Xp(t3.sheets || A2, 0), Q2.Hp = {}, I2 = t3.namedStyles) for (k2 = 0; k2 < I2.length; k2++) N2 = I2[k2], j2 = new r.Style(), y(N2, Q2), j2.fromJSON(N2, s2, Q2), Q2.$p(j2);
            if (D2 = 0, O2 = t3.sheets, E2 = void 0, R2 = void 0, L2 = false, F2 = true, n3.incrementLoadTask = Q2.Vp, O2) for (P2 in B2 = { total: 0, valuesLoad: 0, formulaLoad: 0 }, n3.incrementalLoading.loadStatus = B2, O2) "string" == typeof P2 && (G2 = O2[P2], U2 = q(G2.index) ? G2.index : G2.lp, (_2 = Q2.sheets[q(U2) ? U2 : D2]).loading = true, _2.ub(G2.name + "", true), _2.b2(G2.isSelected), _2.setRowCount(G2.rowCount), _2.setColumnCount(G2.columnCount), q(G2.visible) && _2.visible(G2.visible, false), B2.total += _2.getRowCount(), Q2.Vp.addTask((function(t4, e4) {
              e4.isApplyRefilter = n3 && n3.isApplyRefilter, t4.Yp(e4, false, c2, n3, true), z(e4.order) || (t4.E0i = e4.order);
            }), [_2, G2]), D2++, R2 = G2.allowUndo, L2 ? F2 = F2 && R2 === E2 : (E2 = R2, L2 = true));
            q(E2) && F2 && (v2.allowUndo = E2), ct(Q2, t3), Q2.mp.length > 0 ? (dt(Q2, t3, c2, n3), pt(Q2, t3)) : t3.activeSheetTabIndex >= 0 && (t3.activeSheetIndex = 0), H2 = t3.activeSheetIndex, q(H2) || (H2 = i2.Workbook.Gp), Q2.tb(H2, 0, W, W, true), (V2 = Q2.sheets[H2]) && V2.b2(true, false), Y2 = t3.startSheetIndex, q(Y2) && Q2.startSheetIndex(Y2), Q2.Vp.endingCallback = function() {
              i2.Workbook.fh && X(i2.Workbook.fh, (function(e4, i3) {
                i3.Yp ? Q2.Vp.addTask((function(t4, n4, e5, r2) {
                  i3.Yp.call(t4, n4, e5, r2);
                }), [Q2, t3, s2, n3]) : i3.fromJson && i3.fromJson.call(Q2, t3, s2, n3);
              })), Q2.Vp.endingCallback = function() {
                var e4, r2, o3;
                for (Q2.dse = Q2.vse(Q2.sheets, Q2.mp), b && Q2.Lp.resumeAdjust(), st.call(Q2, t3, n3), i2.Workbook.et(Q2, "initCustomName"), b && Q2.Lp.processDynamicRef(), Q2.docProps.customDocPropsManager.$ar(), e4 = 0; e4 < Q2.sheets.length; e4++) delete Q2.sheets[e4].loading;
                (_2 = Q2.getActiveSheet()) && Q2.ki(f.Events.ActiveSheetChangedInternal, { oldSheet: void 0, newSheet: _2 }), n3 && n3.incrementalLoading && (r2 = n3.incrementalLoading, Q2.ki(f.Events.ProgressChanged, { loadStatus: r2.loadStatus, progress: 1, sheet: _2 }), r2.loading && r2.loading(1, { sheet: _2 })), (o3 = n3 && n3.incrementalLoading && n3.incrementalLoading.loaded) && o3(), _2 && _2.repaint(), Q2.w2.repaint(), Q2.Vp.endingCallback = void 0;
              }, Q2.Vp.start();
            }, Q2.Vp.start();
          } finally {
            M.culture(h2), Q2.Bp = false, V2 = Q2.getActiveSheet(), l2 && V2 && V2.Zg(), Q2.resumeEvent(), Q2.Cg(), Q2.resumePaint(), Q2.Ymr = null, null === (o2 = Q2.resumeOp) || void 0 === o2 || o2.call(Q2);
          }
          return Promise.all(Z2);
        }, i2.Workbook.prototype.getSheetRelsName = function(t3) {
          var n3 = t3.split("/").pop(), e3 = n3.lastIndexOf(".xml");
          return n3.substring(0, e3);
        }, i2.Workbook.prototype.getSheetRelsDir = function(t3) {
          var n3 = t3.split("/"), e3 = n3[n3.length - 2];
          return "worksheets" !== e3 ? e3 : "sheets";
        }, n2.Ap = It, n2.Tp = kt, i2.Workbook.prototype.wh = function(t3) {
          var n3, e3, r2, a2, c2, d2, p2, y2, w2, M2, T2, x2, A2, I2, k2, N2, j2, O2;
          return et(this, void 0, void 0, (function() {
            var R2, L2, F2, U2, H2, V2, Y2, Z2, Q2, J2, q2, $2, nt2, et2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2, vt2, pt2, mt2, yt2, wt2, Mt2, Ct2, St2, Tt2, At2, Ot2, Et2, Gt2, Ut2, Z2, Q2, Ht2, Vt2, zt2, Yt2, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, Ct2, en, rn, ut2, on, an, ut2, un, sn, cn, fn, ln, hn, dn, ut2, vn, St2, pn, gn, mn, bn, Ct2, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn;
            return it(this, (function(it2) {
              switch (it2.label) {
                case 0:
                  if ((R2 = this)._p && R2._p.Ep(R2), L2 = !t3 || false !== t3.includeStyles, (null == t3 ? void 0 : t3.fileType) === v.OpenSaveFileType.excel ? false !== (null == t3 ? void 0 : t3.losslessEditing) && (t3.losslessEditing = true) : (null == t3 ? void 0 : t3.losslessEditing) && (t3.losslessEditing = false), !Bt(this, t3)) return [3, 2];
                  if ((F2 = new i2.Workbook()).fromJSON(R2.toJSON({ includeBindingSource: null === (n3 = t3.includeBindingSource) || void 0 === n3 || n3, includeAutoMergedCells: false, ignoreFormula: !(null === (e3 = t3.includeFormulas) || void 0 === e3 || e3), cb: t3.fileType, wuo: t3 && t3.losslessEditing, convertReportSheetToWorksheet: t3 && t3.fileType === v.OpenSaveFileType.excel, ignorePivotStyle: true }), { sb: true, cb: t3 && t3.fileType, wuo: t3 && t3.losslessEditing }), t3 && t3.fileType === v.OpenSaveFileType.excel && t3.losslessEditing && R2.vuo) {
                    for (U2 = F2.vuo = {}, H2 = R2.vuo, V2 = 0, Y2 = Object.keys(s.XFileLosslessExtensionOrPartsMapping); V2 < Y2.length; V2++) Z2 = Y2[V2], (Q2 = H2[s.XFileLosslessExtensionOrPartsMapping[Z2]]) && (U2[s.XFileLosslessExtensionOrPartsMapping[Z2]] = Q2);
                    U2[s.XFileConstants.duo] = H2[s.XFileConstants.duo], F2.vuo.muo = (0, f.RF)(R2.vuo.muo), F2.vuo.guo = (0, f.RF)(R2.vuo.guo);
                  }
                  return R2 = F2, t3 = Pt(t3), J2 = { saveOptions: t3, workingPromiseArray: [], isClone: true }, i2.Workbook.et(R2, "preSave", J2), J2.workingPromiseArray.length > 0 ? [4, Promise.all(J2.workingPromiseArray)] : [3, 2];
                case 1:
                  it2.sent(), it2.label = 2;
                case 2:
                  if (q2 = R2.options, $2 = {}, nt2 = t3 && t3.fileType === v.OpenSaveFileType.excel, t3 && t3.losslessEditing && nt2 && ((null === (a2 = null === (r2 = R2.vuo) || void 0 === r2 ? void 0 : r2.muo) || void 0 === a2 ? void 0 : a2.zKr) && ($2.zKr = null === (d2 = null === (c2 = R2.vuo) || void 0 === c2 ? void 0 : c2.muo) || void 0 === d2 ? void 0 : d2.zKr), (null === (y2 = null === (p2 = R2.vuo) || void 0 === p2 ? void 0 : p2.guo) || void 0 === y2 ? void 0 : y2.YKr) && ($2.YKr = null === (M2 = null === (w2 = R2.vuo) || void 0 === w2 ? void 0 : w2.guo) || void 0 === M2 ? void 0 : M2.YKr), null === (x2 = null === (T2 = R2.vuo) || void 0 === T2 ? void 0 : T2.guo) || void 0 === x2 ? void 0 : x2.PKr)) {
                    for (et2 = R2.sheets, rt2 = {}, ot2 = 0, at2 = et2.length; ot2 < at2; ot2++) if (ut2 = et2[ot2], (st2 = null === (I2 = null === (A2 = ut2.vuo) || void 0 === A2 ? void 0 : A2.guo) || void 0 === I2 ? void 0 : I2.WKr) && st2.length > 0) for (ct2 = 0, ft2 = st2.length; ct2 < ft2; ct2++) lt2 = st2[ct2], ht2 = lt2.Target, rt2[ht2] = true;
                    for (vt2 in dt2 = null === (N2 = null === (k2 = R2.vuo) || void 0 === k2 ? void 0 : k2.guo) || void 0 === N2 ? void 0 : N2.PKr) dt2.hasOwnProperty(vt2) && !rt2[vt2] && delete dt2[vt2];
                    0 === Object.keys(dt2).length && (R2.vuo.guo.PKr = W), $2.PKr = null === (O2 = null === (j2 = R2.vuo) || void 0 === j2 ? void 0 : j2.guo) || void 0 === O2 ? void 0 : O2.PKr;
                  }
                  if (pt2 = $2.workbook = { n_: "workbook", c_: [], lossless: { version: Lt(), renamedStylesMap: {}, richValueDataArray: [], customData: t3 && t3.customData }, rels: {} }, mt2 = { n_: "bookViews", c_: [] }, pt2.c_.push(mt2), yt2 = { n_: "workbookView" }, false === q2.showHorizontalScrollbar && (yt2.showHorizontalScroll = "0"), false === q2.showVerticalScrollbar && (yt2.showVerticalScroll = "0"), false === q2.tabStripVisible && (yt2.showSheetTabs = "0"), (wt2 = R2.startSheetIndex()) && (yt2.firstSheet = wt2), -1 !== (Mt2 = R2.ep())) for (Ct2 = Mt2; Ct2 >= 0; Ct2--) 2 === (St2 = R2.e2(Ct2))._gi && Mt2--;
                  if (Mt2 !== i2.Workbook.Gp && (yt2.activeTab = Mt2), "number" == typeof (Tt2 = q2.tabStripRatio) && 0.6 !== Tt2 && (yt2.tabRatio = 1e3 * Tt2), mt2.c_.push(yt2), bt(R2), $2.docProps = C(R2.Dp), tt($2.docProps), X(R2.options, (function(t4, n4) {
                    "_ps" !== t4 && i2.Workbook.Pp[t4] !== n4 && (pt2.lossless[t4] = n4);
                  })), b && (At2 = l.Functions.setLanguagepackage) && (Ot2 = At2(), At2("en")), R2.vuo && t3 && t3.fileType === v.OpenSaveFileType.excel && ("XLSM" === t3.excelFileType || "XLTM" === t3.excelFileType)) for (R2.vuo[s.XFileConstants.duo] && (Et2 = { n_: "workbookPr", codeName: "ThisWorkbook", c_: [] }, $2.workbook.c_.push(Et2)), Gt2 = 0, Ut2 = Object.keys(s.XFileLosslessExtensionOrPartsMapping); Gt2 < Ut2.length; Gt2++) Z2 = Ut2[Gt2], (Q2 = R2.vuo[s.XFileLosslessExtensionOrPartsMapping[Z2]]) && ($2.workbook.lossless[s.XFileLosslessExtensionOrPartsMapping[Z2]] = Q2);
                  for (Ht2 = {}, Vt2 = It(R2), zt2 = R2.getNamedStyles(), Yt2 = new h.StyleManager(), Wt = new f.SharedStrings(), Qt = { styleManager: Yt2, sharedStrings: Wt }, Kt = false, Jt = [{ style: null }], Xt = {}, qt = {}, $t = pt2.lossless.renamedStylesMap, Object.keys(zt2).forEach((function(t4) {
                    var n4 = zt2[t4].name;
                    n4 !== K().NORMAL ? Jt.push({ style: zt2[t4] }) : (Jt[0].style = zt2[t4], Kt = true), Xt[n4] = 1;
                  })), tn = 0, nn = function(t4) {
                    var n4, e4, i3 = kt(R2, t4);
                    if (!i3) return tn++, "continue";
                    n4 = { sheet: i3 }, g.Worksheet.et(i3, "getActualToSJSFormatSheet", n4), i3 = n4.sheet, e4 = i3.getNamedStyles(), Object.keys(e4).forEach((function(n5) {
                      var r3, o2, a3 = e4[n5].name;
                      if (!Dt(a3) && !jt(a3)) {
                        for (r3 = a3, o2 = C(e4[n5]); Xt[r3] || r3.length > 255; ) r3 = _t(r3, i3.name());
                        o2.name = r3, Kt || o2.name !== K().NORMAL ? Jt.push({ sheetId: t4 - tn, style: o2 }) : (Jt[0] = { sheetId: t4 - tn, style: e4[n5] }, Kt = true), Xt[r3] = 1, a3 !== r3 && (qt[a3] = qt[a3] || {}, qt[a3][i3.name()] = r3, $t[r3] = a3);
                      }
                    }));
                  }, Ct2 = 0; Ct2 < Vt2; Ct2++) nn(Ct2);
                  for (Yt2.gv = qt, (en = u.Util.ko(t3)) || L2 && Jt[0] && Jt[0].style ? !en || Jt[0] && Jt[0].style || Jt.shift() : (ut2 = kt(R2, 0), rn = L2 && ut2 && !ut2.NMi ? ut2.getDefaultStyle() : {}, on = Ft(), Object.keys(rn).forEach((function(t4) {
                    "_id" !== t4 && "name" !== t4 && (on[t4] = rn[t4]);
                  })), Jt[0] = { style: on }, Kt = true), Jt.forEach((function(t4) {
                    Yt2.getNamedStyleIndex(t4.style, 3, W, t4.sheetId, !en);
                  })), en || (an = Jt[0].style.clone(true), (0, f.AL)(an), Yt2.getStyleIndex(an)), Yt2.updateNamedStylesParentName(), Kt ? rn = Jt[0] && Jt[0].style : (ut2 = kt(R2, 0), rn = L2 && ut2 && !ut2.NMi ? ut2.getDefaultStyle() : Ft()), Qt.defaultStyle = rn, f.SJSColumnWidthHelper.setMaxDigitWidth(Rt(rn, R2)), i2.Workbook.fh && X(i2.Workbook.fh, (function(n4, e4) {
                    e4.preToSJSFormat && e4.preToSJSFormat.call(R2, $2, Qt, t3);
                  })), sn = { n_: P, c_: [] }, cn = { n_: s.XFileConstants.Dr, xmlns: s.RelationshipConstants._r }, fn = xt(R2, cn, t3), ln = 0, $2.workbook.rels = cn, hn = 0, dn = 0; dn < Vt2; dn++) if (ut2 = kt(R2, dn)) {
                    if (vn = fn[ln], St2 = Nt(R2, dn), ln++, pn = B + vn, (gn = St2 ? St2.wh($2, Qt, t3) : ut2.wh($2, Qt, t3)).order = (St2 ? St2.E0i : ut2.E0i) - hn, Ht2[pn] = gn, mn = ut2.name(), L2 && ut2.hl && !un && ($2.theme = un = gn && gn.lossless && gn.lossless.theme), (bn = gn.lossless.definedNames || []) && bn.length) for (Ct2 = 0; Ct2 < bn.length; Ct2++) yn = bn[Ct2], bn[Ct2] = D({ name: yn.name, localSheetId: dn, e: yn.e, comment: yn.comment, isReadOnly: yn.isReadOnly }, yn.formula);
                    gn.richValueDataArray && gn.richValueDataArray.length > 0 && (gn.richValueDataArray.forEach((function(t4) {
                      t4.imgFileName = S(t4.imageBase64Data, W, $2);
                    })), $2.workbook.lossless.richValueDataArray = $2.workbook.lossless.richValueDataArray.concat(gn.richValueDataArray), delete gn.richValueDataArray), wn = ut2.getCalcService(), Mn = ut2.Uw(), wn && Mn && (Cn = ut2.getCustomName("Print_Area")) && (Sn = Cn.getExpression(), Tn = Cn.getRow(), xn = Cn.getColumn(), An = Cn.getComment(), In = Cn.isReadOnly(), kn = wn.unparse(Mn, Sn, Tn, xn, false, true, 1), bn.push(D({ name: "_xlnm.Print_Area", localSheetId: dn, comment: An, isReadOnly: In }, kn))), (Nn = gn.printInfo) && (jn = gt(Nn.repeatRowStart, Nn.repeatRowEnd, W, W, mn), Dn = gt(W, W, Nn.repeatColumnStart, Nn.repeatColumnEnd, mn), _n = void 0, jn && Dn ? _n = Dn + "," + jn : jn ? _n = jn : Dn && (_n = Dn), _n && bn.push(D({ name: "_xlnm.Print_Titles", localSheetId: dn }, _n)), delete gn.printInfo), gn.lossless.definedNames = bn, On = ut2.visible(), En = void 0, On === v.SheetTabVisible.hidden ? En = "hidden" : On === v.SheetTabVisible.veryHidden && (En = "veryHidden"), Rn = { n_: B, "r:id": G + vn, name: E(mn), sheetId: vn, state: En, lossless: { tabSelected: ut2.b2() ? "1" : W } }, sn.c_.push(Rn);
                  } else hn++;
                  return $2.workbook.c_.push(sn), $2.workbook.lossless.richValueDataArray = Zt($2.workbook.lossless.richValueDataArray), o.GC$.isEmptyObject(Ht2) || ($2.sheets = Ht2), $2.styles = {}, i2.Workbook.fh && X(i2.Workbook.fh, (function(n4, e4) {
                    e4.wh && e4.wh.call(R2, $2, Qt, t3);
                  })), (0, m.jSe)(R2, $2, t3), $2.styles = Yt2.bv($2.styles, Yt2.wh(t3)), $2.sharedStrings = Wt.wh(), Yt2.dispose(), (Ln = R2.sheetTabStyles) && (Fn = R2.sheetTabStyles.all(), o.GC$.isEmptyObject(Fn) || ($2.workbook.lossless.sheetTabStylesMap = Fn)), 1 !== q2.referenceStyle && z(q2.iterativeCalculation) && z(q2.iterativeCalculationMaximumIterations) && z(q2.iterativeCalculationMaximumChange) || (Bn = { n_: "calcPr", calcId: 0 }, 1 === q2.referenceStyle && (Bn.refMode = "R1C1"), q2.calculationMode === v.CalculationMode.manual && (Bn.calcMode = "manual"), true === q2.iterativeCalculation && (Bn.iterate = 1), z(q2.iterativeCalculationMaximumIterations) || (Bn.iterateCount = q2.iterativeCalculationMaximumIterations), z(q2.iterativeCalculationMaximumChange) || (Bn.iterateDelta = q2.iterativeCalculationMaximumChange), $2.workbook.c_.push(Bn)), _($2.workbook, s.WorkbookNodeOrder), b && At2 && At2(Ot2), [2, $2];
              }
            }));
          }));
        }, i2.Workbook.prototype.fb = function(t3, n3) {
          var e3, i3 = this;
          M.culture(""), i3.Zp(), true === t3 && (i3.options.allowDynamicArray = true), i3.Wp = new w(i3, -1, i3.options.allowUndo), b && (i3.Qp(true), (e3 = i3.Lp).suspendAdjust(), e3.suspend(), e3.lb = n3 && !n3.fullRecalc), i3.Kp = -1, i3.clearSheets(), i3.clearSheetTabs(), i3.Kwt();
        }, i2.Workbook.prototype.hb = function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, c2, f2, l2, h2 = this, d2 = h2.options, p2 = t3.workbook.lossless;
          if (p2) for (u2 in h2.Lp.forceR1C1Formula = p2.frc, i3 = p2.canUserEditFormula, q(i3) && (d2.allowUserEditFormula = i3), r2 = p2.allowDragDrop, q(r2) && (d2.allowUserDragDrop = r2), o2 = p2.allowDragHeaderToMove, q(o2) && (d2.allowDragHeaderToMove = o2), a2 = p2.allowDragFill, q(a2) && (d2.allowUserDragFill = a2), d2) ot(d2, u2) && (c2 = p2[u2], q(c2) && (d2[u2] = c2));
          n3 && !z(n3.calcOnDemand) && (h2.options.calcOnDemand = n3.calcOnDemand), n3 && !z(n3.incrementalCalculation) && (h2.options.incrementalCalculation = n3.incrementalCalculation), n3 && !z(n3.dynamicReferences) && (h2.options.dynamicReferences = n3.dynamicReferences), (null === (e3 = null == (f2 = x(t3.workbook, "extLst")) ? void 0 : f2.c_) || void 0 === e3 ? void 0 : e3.some((function(t4) {
            return t4["xmlns:xcalcf"] === s.XFileConstants.Cs;
          }))) && (d2.allowDynamicArray = true), (l2 = x(t3.workbook, "calcPr")) && ("R1C1" === l2.refMode && (d2.referenceStyle = 1), "manual" === l2.calcMode && (d2.calculationMode = v.CalculationMode.manual), d2.iterativeCalculation = 1 === parseInt(l2.iterate, 10), d2.iterativeCalculationMaximumIterations = z(l2.iterateCount) ? 100 : parseInt(l2.iterateCount, 10), d2.iterativeCalculationMaximumChange = z(l2.iterateDelta) ? 1e-3 : parseFloat(l2.iterateDelta));
        }, i2.Workbook.prototype.db = function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.options, S2 = x(t3.workbook, "bookViews"), T2 = x(S2, "workbookView");
          if (T2) {
            if (T2.showHorizontalScroll && (C2.showHorizontalScrollbar = "0" !== T2.showHorizontalScroll), T2.showVerticalScroll && (C2.showVerticalScrollbar = "0" !== T2.showVerticalScroll), T2.showSheetTabs && (C2.tabStripVisible = "0" !== T2.showSheetTabs), C2.tabStripRatio = z(T2.tabRatio) ? 0.6 : T2.tabRatio / 1e3, T2.firstSheet && M2.startSheetIndex(+T2.firstSheet), i3 = 0, T2.activeTab !== W) i3 = +T2.activeTab;
            else if (t3.sheets) {
              if (r2 = x(t3.workbook, P).c_, o2 = t3.workbook.rels && t3.workbook.rels.c_, r2 && o2) {
                for (a2 = [], u2 = 0; u2 < r2.length; u2++) c2 = (s2 = r2[u2])[H], (l2 = (f2 = j(o2, c2)) && f2.Target) && a2.push(M2.getSheetRelsName(l2));
                for (u2 = 0; u2 < a2.length; u2++) if ((h2 = t3.sheets[a2[u2]]) && (d2 = x(h2, "sheetViews")) && (v2 = x(d2, "sheetView")) && "1" === v2.tabSelected) {
                  i3 = u2;
                  break;
                }
              }
            } else if ((g2 = null == (p2 = x(t3.workbook, "sheets")) ? void 0 : p2.c_) && g2.length > 0) {
              for (m2 = 0; m2 < g2.length; m2++) if ("1" === (null === (e3 = null === (n3 = null == g2 ? void 0 : g2[m2]) || void 0 === n3 ? void 0 : n3.lossless) || void 0 === e3 ? void 0 : e3.tabSelected)) {
                i3 = m2;
                break;
              }
            }
            y2 = (b2 = M2.getActiveSheetOrSheetTab()) && b2.b2(), M2.I2(i3, 2), null == (w2 = M2.getActiveSheet()) || w2.b2(true, false), b2 && y2 && M2.getActiveSheetOrSheetTab() !== b2 && b2.b2(true, false);
          }
        }, i2.Workbook.prototype.mb = function(t3, n3, e3, i3, o2, a2, s2) {
          var c2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, A2, I2, k2, N2, D2 = this, _2 = o2.sheetNamedStyles;
          for (p2 in a2 || (a2 = {}), D2.Hp = {}, c2 = false !== s2.includeUnusedStyles, l2 = n3.styles && n3.styles.namedStylesMap, h2 = u.Util.ko(s2), d2 = true, l2) if (l2.hasOwnProperty(p2)) {
            if (g2 = d2 && (p2 === K().NORMAL || !h2 && 0 === l2[p2]), h2 && !c2 && !g2 && z(t3.originNamedStylesXfs.Lh[p2])) continue;
            m2 = t3.getNamedStyle(l2[p2], p2, h2), z(m2) && (m2 = { foreColor: "Text 1 0", themeFont: "Body", font: "normal normal 14.7px Calibri", locked: true, hidden: false, textIndent: 0, wordWrap: false, vAlign: 2, hAlign: 3 }), h2 || "General" !== m2.formatter || delete m2.formatter, g2 && (d2 = false, m2.name = "Normal", m2.font = Rt(m2, D2, i3, e3, Et(n3)), f.SJSColumnWidthHelper.setMaxDigitWidth(m2.font), delete (b2 = m2.clone()).name, o2.defaultStyle = b2), m2.name = a2[m2.name] ? a2[m2.name] : m2.name, m2.sheetId !== W ? (_2[m2.sheetId] || (_2[m2.sheetId] = []), _2[m2.sheetId].push(m2)) : D2.$p(m2);
          }
          false !== d2 && (y2 = x(n3.workbook, P).c_, w2 = n3.workbook.rels && n3.workbook.rels.c_, C2 = (M2 = y2[0])[H], A2 = void 0, (T2 = (S2 = j(w2, C2)) && S2.Target) ? (I2 = D2.getSheetRelsName(T2), A2 = n3[k2 = D2.getSheetRelsDir(T2)] && n3[k2][I2]) : A2 = n3.sheets.sheet1, b2 = void 0, A2 && (b2 = A2.lossless && A2.lossless.defaultStyle), b2 || (b2 = { hAlign: 3, imeMode: 1, themeFont: "Body", vAlign: 0 }), (N2 = new r.Style()).fromJSON(b2, W, W), N2.font = Rt(N2, D2, i3, e3, Et(n3)), f.SJSColumnWidthHelper.setMaxDigitWidth(N2.font), o2.defaultStyle = N2), s2 && s2.fileType === v.OpenSaveFileType.excel && t3.buildDummyNamedStyles(D2);
        }, n2.Sp = Vt, i2.Workbook.prototype.yh = function(t3, n3, e3) {
          var r2, o2, c2, l2, p2, g2, y2, w2, C2, S2, T2, k2, N2, D2, _2, E2, L2, F2, B2, G2, U2, z2, Y2, Z2, Q2, K2, J2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, st2, ct2, ft2, ht2, dt2, vt2, pt2, gt2, mt2, bt2, wt2, Mt2, Ct2, St2, Tt2, xt2, At2, It2, Nt2, jt2, Dt2, _t2, Ot2, Et2, Rt2, Lt2, Ft2, Bt2, Pt2, Zt2, Wt = [], Qt = this;
          if (null === (r2 = Qt.suspendOp) || void 0 === r2 || r2.call(Qt), Qt.zp(), t3) {
            e3 || (e3 = function() {
            }), k2 = u.Util.Mo(n3), n3 || (n3 = {}), n3.progress || (n3.progress = function(t4) {
            }), n3.loadStatus = { total: 0, valuesLoad: 0, formulaLoad: 0 }, N2 = function(t4) {
              Qt.pb(f.Events.ProgressChanged, { loadStatus: n3.loadStatus, progress: t4.progress, sheetName: t4.sheetName }), n3.progress({ step: t4.step, sheetName: t4.sheetName, progress: t4.progress });
            }, Qt.Vp && Qt.Vp.terminate(), Qt.Vp = new a.LoadTasks((function() {
              var t4, n4, e4, i3 = Vt(Qt);
              if (i3 && !i3.loaded) {
                for (t4 = this.tasks.length - 1; t4 >= 0; t4--) if ((n4 = this.tasks[t4].args[0]) && n4.Ut && n4.name && n4.name() === i3.name()) return e4 = this.tasks[t4], this.tasks.splice(t4, 1), e4;
              }
              return this.tasks.pop();
            }), (function() {
              var t4 = Vt(Qt);
              return k2 && t4 && (Qt.ib.eb || t4.isEditing() || t4.rt.rb || t4.rt.ob || t4.rt.ab);
            }), N2), Qt.vuo = W, n3 && n3.fileType === v.OpenSaveFileType.excel && (t3.zKr || t3.YKr || t3.PKr) && (Qt.vuo || (Qt.vuo = {}), t3.zKr && (Qt.vuo.muo || (Qt.vuo.muo = {}), Qt.vuo.muo.zKr = t3.zKr), (t3.YKr || t3.PKr) && (Qt.vuo.guo || (Qt.vuo.guo = {}), Qt.vuo.guo.YKr = t3.YKr, Qt.vuo.guo.PKr = t3.PKr)), Qt.suspendPaint(), Qt.suspendEvent(), D2 = f.hi.ai(), Qt.Bp = true, _2 = M.culture(), E2 = false;
            try {
              if (Qt.fb(t3.workbook.lossless && t3.workbook.lossless.allowDynamicArray, n3), Qt.hb(t3, n3), yt(Qt, t3.docProps), (L2 = new h.StyleManager()).yh(t3.styles), (F2 = new f.SharedStrings()).yh(t3.sharedStrings), B2 = {}, Object.keys(t3).forEach((function(n4) {
                n4.indexOf(V) > -1 && (B2[n4] = t3[n4]);
              })), G2 = void 0, G2 = t3.sheets && t3.sheets.sheet1 && t3.sheets.sheet1.lossless && t3.sheets.sheet1.lossless.theme ? t3.sheets.sheet1.lossless.theme : t3.theme, U2 = void 0, z2 = void 0, G2 && "string" != typeof G2 ? G2 && (Z2 = x(G2, "themeElements"), Q2 = x(Z2, "fontScheme"), K2 = "latin", J2 = M.getCultureInfo(), ($2 = null == J2 ? void 0 : J2.fontScriptCode) && (K2 = "ea"), U2 = null === (o2 = A(Q2, "majorFont&" + K2)) || void 0 === o2 ? void 0 : o2.typeface, z2 = null === (c2 = A(Q2, "minorFont&" + K2)) || void 0 === c2 ? void 0 : c2.typeface, U2 || ($2 && (U2 = null == (tt2 = I(A(Q2, "majorFont"), "font").find((function(t4) {
                return t4.script === $2;
              }))) ? void 0 : tt2.typeface), U2 || (U2 = A(Q2, "majorFont&latin").typeface)), z2 || ($2 && (z2 = null == (nt2 = I(A(Q2, "minorFont"), "font").find((function(t4) {
                return t4.script === $2;
              }))) ? void 0 : nt2.typeface), z2 || (z2 = A(Q2, "minorFont&latin").typeface))) : ((Y2 = new d.Theme(W)).yh("string" == typeof G2 ? G2 : "Office"), U2 = Y2.headingFont(), z2 = Y2.bodyFont()), et2 = { drawings: t3.drawings, tables: t3.tables, charts: t3.charts, dataCharts: t3.dataCharts, media: t3.media, ctrlProps: t3.ctrlProps, comments: B2, pivotTables: t3.pivotTables, slicers: t3.slicers, slicerCaches: t3.slicerCaches, timelineCaches: t3.timelineCaches, timelines: t3.timelines, styleManager: L2, sharedStrings: F2, theme: t3.theme, sheetNamedStyles: {}, dataEffectByInflate: {}, attachments: t3.attachments }, Qt.mb(L2, t3, U2, z2, et2, t3.workbook.lossless && t3.workbook.lossless.renamedStylesMap, n3), i2.Workbook.fh && X(i2.Workbook.fh, (function(e4, i3) {
                var r3 = i3.preFromSJSFormat;
                r3 && r3.call(Qt, t3, et2, n3);
              })), Wt.push((0, m.USe)(Qt, t3)), it2 = x(t3.workbook, "definedNames"), et2.workbookNames = it2 && it2.c_, ot2 = (rt2 = x(t3.workbook, P).c_ || []).length, q(ot2) || (ot2 = i2.Workbook.Jp), at2 = t3.workbook.rels && t3.workbook.rels.c_, n3 && (n3.incrementLoadTask = Qt.Vp), at2) {
                if (n3 && n3.fileType === v.OpenSaveFileType.excel) for (st2 = 0, ct2 = at2.length; st2 < ct2; st2++) (ft2 = at2[st2]).Type === s.RelationshipConstants.FKr ? (Qt.vuo || (Qt.vuo = {}), Qt.vuo.guo || (Qt.vuo.guo = {}), Qt.vuo.guo.HKr = ft2) : ft2.Type === s.RelationshipConstants.LKr && (Qt.vuo || (Qt.vuo = {}), Qt.vuo.muo || (Qt.vuo.muo = {}), Qt.vuo.muo.VKr = ft2);
                for (ht2 = [], dt2 = [], vt2 = 1 === Qt.options.referenceStyle, pt2 = 0; pt2 < ot2; pt2++) {
                  if (mt2 = (gt2 = rt2[pt2])[H], wt2 = (bt2 = j(at2, mt2)) && bt2.Target || "", Mt2 = Qt.getSheetRelsName(wt2), Ct2 = Qt.getSheetRelsDir(wt2), St2 = null === (l2 = null == t3 ? void 0 : t3[Ct2]) || void 0 === l2 ? void 0 : l2[Mt2], Tt2 = R(O(gt2.name)), xt2 = true, At2 = null === (p2 = null == St2 ? void 0 : St2.lossless) || void 0 === p2 ? void 0 : p2.addition, It2 = (null == St2 ? void 0 : St2.sheetType) || (null === (g2 = null == St2 ? void 0 : St2.lossless) || void 0 === g2 ? void 0 : g2.sheetType), At2 || It2) if (Nt2 = Qt.bb(Tt2, It2 || 0)) {
                    for (Qt.yb(pt2 - Qt.sheets.length, 0, Nt2), jt2 = t3.workbook.lossless.formatStringNames, Dt2 = [], _t2 = 0; jt2 && _t2 < jt2.length; _t2++) (Ot2 = jt2[_t2]).sheetTabName === Nt2.name() && Dt2.push(Ot2);
                    ht2.push([Nt2, At2, Dt2]);
                  } else xt2 = false;
                  else Et2 = Qt.S2(Tt2), Qt.A2(pt2, 0, Et2);
                  xt2 && dt2.push(St2);
                }
                for (pt2 = 0; pt2 < ot2; pt2++) (St2 = dt2[pt2]) && Ht(Qt, St2, pt2, et2, n3, !u.Util.wo(n3, Qt.v2), Wt), (Et2 = kt(Qt, pt2)) && (Ut(Et2, rt2[pt2]), Gt(Et2, vt2));
                lt(ht2, Qt, n3 && n3.fullRecalc, true);
              }
              if (Qt.db(t3), Rt2 = {}, (null === (w2 = null === (y2 = t3.workbook) || void 0 === y2 ? void 0 : y2.lossless) || void 0 === w2 ? void 0 : w2.customData) && (Rt2.customData = t3.workbook.lossless.customData), Qt.sheetTabStyles.xTe = null !== (T2 = null === (S2 = null === (C2 = t3.workbook) || void 0 === C2 ? void 0 : C2.lossless) || void 0 === S2 ? void 0 : S2.sheetTabStylesMap) && void 0 !== T2 ? T2 : {}, t3.workbook.lossless) for (Lt2 = 0, Ft2 = Object.keys(s.XFileLosslessExtensionOrPartsMapping); Lt2 < Ft2.length; Lt2++) Bt2 = Ft2[Lt2], (Pt2 = t3.workbook.lossless[s.XFileLosslessExtensionOrPartsMapping[Bt2]]) && ((Zt2 = Qt.vuo) || (Zt2 = Qt.vuo = {}), Zt2[s.XFileLosslessExtensionOrPartsMapping[Bt2]] = Pt2);
              Qt.Vp.endingCallback = function() {
                Qt.k_e(), i2.Workbook.fh && X(i2.Workbook.fh, (function(e4, i3) {
                  var r3 = k2 && i3.Mb || i3.yh;
                  r3 && Qt.Vp.addTask((function(e5, i4, o3) {
                    r3.call(Qt, t3, et2, n3);
                  }), [Qt, t3, n3]);
                })), Qt.Vp.endingCallback = function() {
                  var t4, r3, o3;
                  L2.dispose(), u.Util.wo(n3, Qt.v2) || ut.call(Qt, n3), t4 = false, b && ((r3 = Qt.Lp).resumeAdjust(), delete Qt.Lp.forceR1C1Formula, n3.fullRecalc ? (zt(Qt), t4 = true, r3.resume(false, false, !r3.calcOnDemand)) : (r3.resumeWithoutCalc(), delete r3.lb, Qt.Lp.processDynamicRef())), i2.Workbook.et(Qt, "initCustomName"), Qt.docProps.customDocPropsManager.$ar(), t4 || zt(Qt), Qt.options.backgroundImage && Qt.nb(), o3 = Vt(Qt), N2({ progress: 1, step: "whole workbook loaded.", sheetName: o3 && o3.name() }), k2 ? o3 && o3.repaint() : Yt(Qt, _2, D2, o3), o3 && Qt.ki(f.Events.ActiveSheetChangedInternal, { oldSheet: void 0, newSheet: o3 }), e3(Rt2);
                }, Qt.Vp.start();
              }, Qt.Vp.start(), Promise.all(Wt).then((function() {
                Qt.ki(f.Events.DataFetchCompleted, { spread: Qt });
              }));
            } catch (t4) {
              throw E2 = true, t4;
            } finally {
              (k2 || E2) && Yt(Qt, _2, D2, Vt(Qt));
            }
          }
        };
      }, "./dist/core/workbook/workbook.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft = this && this.nJr || function() {
          return Ft = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, Ft.apply(this, arguments);
        };
        function Bt(t3, n3) {
          return u.Bf.Zl() % 1 != 0 || t3.zoom() % 1 != 0 || t3.parent && t3.parent.options.scrollByPixel && n3 && t3.Cb && t3.Cb.Sb((0, u.Ec)(t3.Tb, t3.Ab, 1, 1));
        }
        function Pt(t3, n3) {
          return L.setTimeout((function() {
            t3.invalidateLayout(), t3.repaint(), n3.Ib = B;
            var e3 = t3.ot();
            n3.xb(t3, e3.x, e3.width), n3.Nb(t3, e3.y, e3.height);
          }), 200);
        }
        function Gt(t3, n3, e3) {
          t3.ki(u.Events.ActiveSheetChanged, { oldSheet: n3, newSheet: e3 });
        }
        function Ut(t3, n3) {
          t3.ki(u.Events.ActiveSheetChanging, n3);
        }
        function Ht(t3, n3) {
          t3.ki(u.Events.ActiveSheetChangingInternal, n3);
        }
        function Vt(t3, n3, e3) {
          t3.ki(u.Events.ActiveSheetChangedInternal, { oldSheet: n3, newSheet: e3 });
        }
        function zt(t3, n3, e3, i3) {
          var r2, o2, s2 = u.I.fl("gc-vertical-scrollbar" + lt), c2 = R(s2.zIndex) > 2007 ? 1 : 0, f2 = n3 - e3;
          o2 = f2 % 2 == 0 ? (r2 = f2 / 2) - c2 : r2 = (f2 - c2) / 2, i3 ? (0, a.GC$)(t3).css({ "box-sizing": ct, border: ut, "border-color": ut, "border-right-style": ft, "border-right-width": c2 + it, "border-right-color": s2.borderLeftColor, "background-color": s2.backgroundColor, width: e3, padding: "0px " + r2 + "px 0px " + o2 + it, margin: 0 }) : (0, a.GC$)(t3).css({ "box-sizing": ct, border: ut, "border-color": ut, "border-left-style": ft, "border-left-width": c2 + it, "border-left-color": s2.borderLeftColor, "background-color": s2.backgroundColor, width: e3, padding: "0px " + r2 + "px 0px " + o2 + it, margin: 0 });
        }
        function Yt(t3, n3, e3) {
          var i3, r2, o2 = u.I.fl("gc-horizontal-scrollbar" + lt), s2 = R(o2.zIndex) > 2007 ? 1 : 0, c2 = n3 - e3;
          r2 = c2 % 2 == 0 ? (i3 = c2 / 2) - s2 : i3 = (c2 - s2) / 2, (0, a.GC$)(t3).css({ "box-sizing": ct, border: ut, "border-color": ut, "border-top-style": ft, "border-top-width": s2 + it, "border-top-color": o2.borderTopColor, "background-color": o2.backgroundColor, height: e3, padding: r2 + "px 0px " + i3 + "px 0px", margin: 0 });
        }
        function Zt(t3) {
          var n3 = u.I.fl("gc-footer-corner" + lt);
          (0, a.GC$)(t3).css({ border: ut, padding: 0, margin: 0, "background-color": n3.backgroundColor });
        }
        function Wt(t3, n3, e3, i3, r2) {
          var o2 = t3._b(), a2 = n3.left - e3.left, u2 = n3.top - e3.top;
          if (i3 > a2 && i3 < o2.width + a2 && r2 > u2 && r2 < o2.height + u2) return { horizontalScrollBarHitInfo: { element: t3.hitTest(i3 - a2, r2 - u2).element }, x: i3, y: r2 };
        }
        function Qt(t3, n3, e3, i3, r2) {
          var o2 = t3._b(), a2 = n3.left - e3.left, u2 = n3.top - e3.top;
          if (i3 > a2 && i3 < o2.width + a2 && r2 > u2 && r2 < o2.height + u2) return { verticalScrollBarHitInfo: { element: t3.hitTest(i3 - a2, r2 - u2).element }, x: i3, y: r2 };
        }
        function Kt(t3) {
          var n3 = (0, a.GC$)(t3);
          return { top: Jt(n3, "borderTopWidth"), right: Jt(n3, "borderRightWidth"), bottom: Jt(n3, "borderBottomWidth"), left: Jt(n3, "borderLeftWidth") };
        }
        function Jt(t3, n3) {
          var e3 = t3.css(n3);
          switch (e3) {
            case "thin":
              return 1;
            case "medium":
              return 3;
            case "thick":
              return 5;
            default:
              return parseFloat(e3);
          }
        }
        function Xt(t3) {
          var n3 = (0, a.GC$)(t3);
          return { top: parseFloat(n3.css("paddingTop")), right: parseFloat(n3.css("paddingRight")), bottom: parseFloat(n3.css("paddingBottom")), left: parseFloat(n3.css("paddingLeft")) };
        }
        function qt(t3) {
          var n3 = t3.getBoundingClientRect().width, e3 = Kt(t3), i3 = e3.left, r2 = e3.right, o2 = Xt(t3), a2 = o2.left, u2 = o2.right;
          return n3 - i3 - r2 - a2 - u2;
        }
        function $t(t3) {
          return !!m.SheetType[t3];
        }
        function tn(t3) {
          var n3, e3, i3, r2 = t3.getSheetCount(), o2 = t3.getSheetTabCount();
          if (0 === r2 || 0 === o2) return true;
          for (n3 = t3.qv(), e3 = 0; e3 < n3.length; e3++) if (i3 = n3[e3], e3 < r2 && i3.NMi || e3 >= r2 && !i3.NMi) return false;
          return true;
        }
        function nn(t3) {
          var n3 = { calcSources: [] };
          return v.Worksheet.et(t3, "getRelatedCalcSources", n3), n3.calcSources;
        }
        function en(t3) {
          var n3 = (0, u.jf)(t3);
          return !!n3 && n3.options.rightToLeft;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Workbook = void 0, i2 = e2("./dist/core/workbook/workbookpanelex.js"), r = e2("./dist/core/core.ns.js"), o = e2("Common"), a = e2("./dist/core/util/domUtil.js"), u = e2("./dist/core/util/common.js"), s = e2("./dist/core/util/imageLoader.js"), c = e2("./dist/core/worksheet/worksheet-actions.js"), f = e2("./dist/core/workbook/sheettab.js"), l = e2("./dist/core/workbook/sheettab2007.js"), h = e2("./dist/core/worksheet/stylehelper.js"), d = e2("./dist/core/worksheet/clipboardhelper.js"), v = e2("./dist/core/worksheet/worksheet.js"), p = e2("CalcEngine"), g = !!p, m = e2("./dist/core/core.enum.js"), b = e2("DataManager"), y = e2("./dist/core/workbook/sheettabStyleManager.js"), w = e2("./dist/core/workbook/doc-prop/doc-props-manager.js"), M = o.Common.zf, C = o.Commands.UndoManager, S = o.Commands.CommandManager, T = a.GC$.each, x = a.GC$.extend, A = g, I = o.Common.lt.ht, k = u.mt.En, N = u.mt.p0, j = u.mt.b0, D = u.mt.yt, _ = u.mt.T1, O = o.Common.CultureManager, E = u.mt.pi(), R = parseInt, L = window, F = document, B = null, P = Math.round, G = Math.min, U = Math.floor, H = Math.abs, V = "number", z = "mousedown", Y = "mousemove", Z = "mouseup", W = "mouseenter", Q = "mouseleave", K = "scroll", J = "resize", X = "focus", q = ".gcSpread", $ = ".gcSpreadInternal", tt = ".gcScrollbar", nt = "div", et = "table", it = "px", rt = "100%", ot = "gc-scroll-handle", at = "gc-scroll-bar", ut = "none", st = "absolute", ct = "content-box", ft = "solid", lt = " ui-widget-header ui-state-default btn btn-default", ht = "gc-scroll-mobile-container", dt = "gc-scroll-mobile-container-horizontal", vt = "gc-scroll-mobile-container-vertical", pt = "gc-scroll-mobile-spread-hovering", gt = "gc-scroll-mobile-state-hide", mt = "gc-scroll-mobile-state-hover", bt = L.jQuery, yt = "cultureChanged", wt = "workbook", Mt = "gcUIElement", Ct = "gc-no-user-select", St = "visible", Tt = "overflow", xt = "en-us", At = "ja-jp", It = 80, kt = 1, Nt = new o.Common.ResourceManager(r.SR, "Sheets"), jt = Nt.getResource.bind(Nt), Dt = 100, _t = 30, Ot = 40, Et = (function() {
          function t3(t4) {
            this._wb = t4;
          }
          return t3.Bb = function(t4, n3) {
            var e3, i3 = t4.data, r2 = i3.ib;
            r2.Lb && (L.clearTimeout(r2.Lb), r2.Lb = B), (e3 = i3.jg()) && n3 && e3.Fb(i3, n3);
          }, t3.Pb = function(t4) {
            var n3 = t4.data, e3 = n3.jg();
            e3 && e3.Gb(n3);
          }, t3.Ub = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2 = t4.data;
            c2 && ((e3 = c2.getActiveSheet()) ? ((i3 = c2._hScrollbar.Hb) && i3.Vb && (e3.Oi = true), e3.Zg()) : (r2 = c2.getActiveSheetTab()) && r2.Zg(), 1 !== (o2 = c2.options.showScrollTip) && 3 !== o2 || (s2 = (u2 = (0, a.GC$)(t4.srcElement || t4.target)).parent(), (u2 && (u2.hasClass(ot) || u2.hasClass(at)) || s2 && (s2.hasClass(ot) || s2.hasClass(at))) && c2.ib.Yb(false, t4, n3)));
          }, t3.Zb = function(t4, n3) {
            var e3, i3 = t4.data, r2 = i3.ib;
            r2.Lb && (L.clearTimeout(r2.Lb), r2.Lb = B), (e3 = i3.jg()) && n3 && e3.Wb(i3, n3);
          }, t3.Qb = function(t4) {
            var n3 = t4.data, e3 = n3.jg();
            e3 && e3.Kb(n3);
          }, t3.Jb = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2 = t4.data;
            s2 && ((n3 = s2.getActiveSheet()) ? ((e3 = s2._vScrollbar.Hb) && e3.Vb && (n3.Oi = true), n3.Zg()) : (i3 = s2.getActiveSheetTab()) && i3.Zg(), 2 !== (r2 = s2.options.showScrollTip) && 3 !== r2 || (o2 = (0, a.GC$)(t4.srcElement || t4.target)) && (u2 = o2.parent(), (o2.hasClass(ot) || u2 && u2.hasClass(ot) || o2.hasClass(at) || u2 && u2.hasClass(at)) && s2.ib.Yb(true, t4)));
          }, t3.qb = function(t4, n3) {
            var e3, i3, r2, o2 = t4.data, a2 = o2.ib;
            a2.Lb && (L.clearTimeout(a2.Lb), a2.Lb = B), (e3 = o2.jg()) && n3 && (e3.onHorizontalDockScroll(o2, n3), 1 !== (i3 = o2.options.showScrollTip) && 3 !== i3 || (r2 = o2.ib.$b(false, true), o2.ny(r2)));
          }, t3.ey = function(t4) {
            var n3 = t4.data;
            n3 && n3.iy();
          }, t3.ry = function(t4) {
            var n3, e3, i3, r2, o2 = jt(), u2 = t4.data, s2 = t4.scrollbar;
            u2.options.enableAccessibility && (n3 = (0, a.GC$)(s2.oy()).offset(), e3 = s2.hitTest(t4.x - n3.left, t4.y - n3.top), r2 = (i3 = { thumbButton: o2.ARIA_Scrollbar_Thumb_Button, trackButton: o2.ARIA_Scrollbar_TRACK_Button, leftButton: o2.ARIA_Scrollbar_Left_Button, rightButton: o2.ARIA_Scrollbar_Right_Button, upButton: o2.ARIA_Scrollbar_Top_Button, downButton: o2.ARIA_Scrollbar_Bottom_Button })[e3.element], u2.n2(r2));
          }, t3.prototype.L0 = function() {
            this._wb = B;
          }, t3.prototype.ay = function(t4, n3, e3, i3) {
            var r2 = this;
            t4 && (r2.eb = true, r2.uy = i3 ? t4.Tb : n3, r2.fy = i3 ? t4.ly : e3, r2.hy = i3 ? n3 : t4.Ab, r2.vy = i3 ? e3 : t4.my, L.setTimeout((function() {
              r2.gy(t4);
            }), 0));
          }, t3.prototype.gy = function(t4) {
            var n3 = this;
            t4 && n3.eb && (n3.eb = false, n3.py(t4));
          }, t3.prototype.py = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this;
            u2.by || (u2.by = true, n3 = u2._wb, t4 && (e3 = n3.options.showScrollTip, i3 = u2.uy, r2 = u2.fy, o2 = u2.hy, a2 = u2.vy, i3 !== t4.Tb || r2 !== t4.ly ? (u2.yy(t4, i3, r2), 2 !== e3 && 3 !== e3 || n3.ny(u2.$b(true))) : o2 === t4.Ab && a2 === t4.my || (u2.wy(t4, o2, a2), 1 !== e3 && 3 !== e3 || n3.ny(u2.$b(false)))), u2.by = false);
          }, t3.prototype.yy = function(t4, n3, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, k2, N2, j2, D2, _2, O2, E2, R2, F2, P2, U2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2 = this;
            if (it2.Ib && (L.clearTimeout(it2.Ib), it2.Ib = B), t4) {
              if (a2 = t4.Tb, s2 = t4.ly, c2 = t4.zoom(), f2 = t4.parent.options.scrollByPixel, !(l2 = !I(i3)) && n3 === a2 && e3 === s2) return;
              if (l2 && (a2 = i3), t4.Tb = n3, t4.ly = e3, t4.My > 0) return (a2 !== n3 || f2 && s2 !== e3) && t4.ki(u.Events.TopRowChanged, { sheet: t4, sheetName: t4.name(), oldTopRow: a2, newTopRow: n3, oldOffset: H(s2 / c2), newOffset: H(e3 / c2) }), void t4.$Dr({ type: "updateTopLeftPosition", leftCol: t4.Ab, topRow: t4.Tb });
              if (h2 = false, p2 = (v2 = (d2 = t4.options).sheetAreaOffset.top) + 2, g2 = t4.kg, b2 = (m2 = t4.Fi()).Cy, y2 = t4.Sy(m2), w2 = m2.Ty, M2 = m2.Ay, C2 = m2.Iy, S2 = m2.width + d2.sheetAreaOffset.left + (t4.options.rightToLeft && t4.gj ? t4.gj().width : 0), T2 = void 0, x2 = void 0, A2 = void 0, N2 = (k2 = t4.Dn).J(), j2 = t4.Ny, D2 = t4.Csr, t4.tables && 0 === t4.frozenRowCount() && (_2 = t4.tables.Dy()) && (_2.x = _2.x - 2, _2.width = _2.width + 4, _2.y = v2, _2.height = b2, t4.k1 = true, k2.D1(N2, _2)), n3 > a2 || n3 === a2 && H(e3) > H(s2)) {
                if (O2 = void 0, E2 = void 0, (R2 = t4._y(1)) && R2.length > 0 && (O2 = R2.findRow(n3)), O2) {
                  for (E2 = R2[F2 = R2.length - 1]; E2 && E2.y + E2.height > b2 + y2; ) E2 = R2[F2 -= 1];
                  E2 && E2.row > n3 && (h2 = true, x2 = g2 ? g2.x : m2.x, A2 = O2.y + H(e3), D2 && t4.Csr(O2.row) && (A2 -= t4.Msr(O2.row)), T2 = E2.y + E2.height - A2 - p2, k2.Ey(x2, A2, S2, T2, x2, b2), d2.colHeaderVisible || (t4.invalidateLayout(), k2.D1(N2, new u.Rect(x2, 0, S2, v2 + 1))), t4.invalidateLayout(), P2 = j2 ? y2 : y2 + C2 + w2, _2 = new u.Rect(x2, b2 + T2, S2, P2 - T2), U2 = void 0, (V2 = null === (r2 = t4.dataRanges) || void 0 === r2 ? void 0 : r2.getStickyTopRowCount(void 0, true)) > 0 && (z2 = R2.findRow(n3 + V2)) && (Y2 = z2.y - A2, U2 = new u.Rect(x2, b2, S2, Y2)), k2.D1(N2, _2, U2, it2.hBe(t4, _2)), it2.Muo(t4, m2, "V"), P2 -= j2 ? 0 : w2, k2.jy(N2, new u.Rect(x2, b2 - 2, S2, P2 + 2)), this.xb(t4, x2, S2));
                }
              } else {
                for (Z2 = 0, W2 = n3; W2 < a2 && Z2 < y2; W2++) Z2 += t4.Gt(W2), D2 && (t4.Csr(W2) && (Z2 += t4.Msr(W2)), t4.Csr(W2, true) && (Z2 += t4.Msr(W2, true)));
                if ((Z2 += H(s2) - H(e3)) < y2) {
                  if (h2 = true, x2 = g2 ? g2.x : m2.x, A2 = b2, T2 = y2 - Z2, t4.frozenTrailingRowCount() > 0 && (T2 -= kt), Q2 = 0, !j2 && w2 > 0 && (Q2 = C2 + ((K2 = m2.W_e()) ? K2.height : 0), J2 = G(g2.height - Q2 - kt, M2 - kt + Z2), k2.Ey(x2, M2 - kt, S2, Q2 + kt, x2, J2)), X2 = j2 ? 0 : G(Z2, w2) - kt, k2.Ey(x2, A2, S2, T2 + X2, x2, A2 + Z2), t4.invalidateLayout(), q2 = t4.rowOutlines && !t4.rowOutlines.Oy() ? t4.rowOutlines.Ry() + v2 + 1 : 0, _2 = new u.Rect(x2, A2 - v2, S2, Z2 + v2 + q2 + 5), (V2 = null === (o2 = t4.dataRanges) || void 0 === o2 ? void 0 : o2.getStickyTopRowCount(a2, true)) > 0) for ($2 = 0; $2 < V2; $2++) _2.height += t4.Gt(a2 + $2);
                  k2.D1(N2, _2, void 0, it2.hBe(t4, _2)), it2.Muo(t4, m2, "V"), tt2 = y2 + X2 + Q2 + 2, k2.jy(N2, new u.Rect(x2, A2 - 2, S2, tt2)), this.xb(t4, x2, S2);
                }
              }
              h2 || (t4.invalidateLayout(), t4.repaint()), (a2 !== n3 || f2 && s2 !== e3) && (t4.ki(u.Events.TopRowChanged, { sheet: t4, sheetName: t4.name(), oldTopRow: a2, newTopRow: n3, oldOffset: H(s2 / c2), newOffset: H(e3 / c2) }), t4.$Dr({ type: "updateTopLeftPosition", leftCol: t4.Ab, topRow: t4.Tb })), (nt2 = t4.rt) && nt2.By(), et2 = a2 === t4.Tb && s2 !== t4.ly, h2 && Bt(t4, et2) && (it2.Ib = Pt(t4, it2));
            }
          }, t3.prototype.xb = function(t4, n3, e3) {
            var i3 = t4.Dn, r2 = i3.J();
            this.Ly(t4).concat(this.Fy(t4)).forEach((function(t5) {
              var o2 = t5.layout, a2 = new u.Rect(n3, o2.y, e3, o2.height);
              i3.O1(a2), i3.jy(r2, a2);
            }));
          }, t3.prototype.Ly = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.getSelections();
            return 1 === c2.length && t4.frozenRowCount() > 0 ? (n3 = s2._wb.options.scrollByPixel, e3 = t4.Tb, i3 = t4.ly, r2 = c2[0].row, o2 = c2[0].row + c2[0].rowCount - 1, n3 && o2 === e3 - 1 ? [] : (a2 = [], (r2 === e3 + 1 || r2 < e3 && e3 <= o2 || o2 === e3 - 1 || n3 && r2 === e3 && 0 !== i3) && (u2 = t4._y(0)) && u2.length > 0 && a2.push({ layout: u2[u2.length - 1] }), a2)) : [];
          }, t3.prototype.Fy = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = t4.getSelections();
            return 1 === v2.length && t4.frozenTrailingRowCount() > 0 ? (n3 = d2._wb.options.scrollByPixel, e3 = t4.getViewportBottomRow(1), i3 = v2[0].row, r2 = v2[0].row + v2[0].rowCount - 1, o2 = [], s2 = (u2 = (a2 = t4._y(2)) && a2.length > 0) ? a2[0] : B, l2 = (f2 = (c2 = t4._y(1)) && c2.length > 0) ? c2.findRow(e3) : B, h2 = u2 && f2 && s2.y !== l2.y + l2.height, (r2 === e3 - 1 || i3 <= e3 && e3 < r2 || i3 === e3 + 1 || n3 && r2 === e3 && h2) && u2 && o2.push({ layout: s2 }), o2) : [];
          }, t3.prototype.Muo = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = n3.L6, s2 = n3.F6, c2 = n3.Iy, f2 = n3.zy;
            u2 || s2 || c2 || f2 ? (i3 = n3.Py, r2 = n3.Cy, o2 = n3.Hy, a2 = n3.Ay, "V" === e3 ? t4.Dn.Ey(n3.x, r2, n3.width, a2 - r2, n3.x, r2, true) : t4.Dn.Ey(i3, n3.y, o2 - i3, n3.height, i3, n3.y, true)) : t4.Dn.Ey(n3.x, n3.y, n3.width, n3.height, n3.x, n3.y, true);
          }, t3.prototype.wy = function(t4, n3, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, k2, N2, j2, D2, _2, O2, E2, R2, F2, P2, U2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2 = this;
            if (q2.Ib && (L.clearTimeout(q2.Ib), q2.Ib = B), t4) {
              if (r2 = t4.Ab, o2 = t4.my, a2 = t4.zoom(), !(s2 = !I(i3)) && n3 === r2 && e3 === o2) return;
              if (c2 = t4.parent.options.scrollByPixel, s2 && (r2 = i3), t4.Ab = n3, t4.my = e3, t4.My > 0) return (r2 !== n3 || c2 && e3 !== o2) && t4.ki(u.Events.LeftColumnChanged, { sheet: t4, sheetName: t4.name(), oldLeftCol: r2, newLeftCol: n3, oldOffset: H(o2 / a2), newOffset: H(e3 / a2) }), void t4.$Dr({ type: "updateTopLeftPosition", leftCol: t4.Ab, topRow: t4.Tb });
              if (f2 = false, h2 = (l2 = t4.options).sheetAreaOffset.left, d2 = l2.rightToLeft, v2 = h2 + 2, p2 = t4.kg, m2 = (g2 = t4.Fi()).Py, b2 = t4.Gy(g2), y2 = g2.Uy, w2 = g2.Hy, M2 = g2.zy, C2 = g2.height + l2.sheetAreaOffset.top, S2 = void 0, T2 = void 0, x2 = void 0, k2 = (A2 = t4.Dn).J(), N2 = t4.Vy, n3 > r2 || n3 === r2 && H(e3) > H(o2)) {
                if (j2 = void 0, D2 = void 0, (_2 = t4.Yy(1)) && _2.length > 0 && (j2 = _2.findCol(n3)), j2) {
                  for (D2 = _2[O2 = _2.length - 1]; D2 && (d2 ? D2.x < w2 + M2 : D2.x + D2.width > m2 + b2); ) D2 = _2[O2 -= 1];
                  D2 && D2.col > n3 && (f2 = true, T2 = p2 ? p2.y : g2.y, d2 ? (S2 = D2.x, x2 = j2.x + j2.width - H(e3) - S2, E2 = t4.frozenColumnCount() > 0 ? kt : 0, A2.Ey(S2, T2, x2 - E2, C2, g2.b6 - x2, T2)) : (S2 = j2.x + H(e3), x2 = D2.x + D2.width - S2 - v2, A2.Ey(S2, T2, x2, C2, m2, T2)), l2.rowHeaderVisible || (t4.invalidateLayout(), A2.D1(k2, new u.Rect(0, T2, h2 + 1, C2))), t4.invalidateLayout(), R2 = N2 ? b2 : b2 + M2 + y2, d2 ? A2.D1(k2, new u.Rect(g2.b6 - R2, T2, R2 - x2 + 0.5, C2)) : (F2 = new u.Rect(m2 + x2, T2, R2 - x2, C2), A2.D1(k2, F2, void 0, q2.hBe(t4, F2)), q2.Muo(t4, g2, "H")), R2 -= N2 ? 0 : y2, A2.jy(k2, new u.Rect(m2 - 2, T2, R2 + 2, C2)), this.Nb(t4, T2, C2));
                }
              } else {
                for (P2 = 0, U2 = n3; U2 < r2 && P2 < b2; U2++) P2 += t4.nn(U2);
                (P2 += H(o2) - H(e3)) < b2 && (f2 = true, T2 = p2 ? p2.y : g2.y, d2 ? (S2 = g2.b6, x2 = b2 - P2) : (S2 = m2, x2 = b2 - P2), d2 || t4.frozenTrailingColumnCount() > 0 && (x2 -= kt), V2 = 0, !N2 && y2 > 0 && (V2 = M2 + ((z2 = g2.Z_e()) ? z2.width : 0), d2 ? (Y2 = Math.max(p2.x, w2 - P2), A2.Ey(w2, T2, V2, C2, Y2, T2)) : (Z2 = G(p2.width - V2 - kt, w2 - kt + P2), A2.Ey(w2 - kt, T2, V2 + kt, C2, Z2, T2))), W2 = N2 ? 0 : G(P2, y2) - kt, d2 ? (E2 = t4.frozenColumnCount() > 0 ? kt : 0, !N2 && t4.frozenTrailingColumnCount() > 0 ? A2.Ey(S2 - b2, T2, b2 - E2, C2, S2 - b2 - P2, T2) : A2.Ey(S2 - x2, T2, x2 - E2, C2, S2 - x2 - P2, T2)) : A2.Ey(S2, T2, x2 + W2, C2, S2 + P2, T2), t4.invalidateLayout(), Q2 = t4.columnOutlines && !t4.columnOutlines.Oy() ? t4.columnOutlines.Ry() + h2 + 1 : 0, d2 ? A2.D1(k2, new u.Rect(S2 - h2 - P2, T2, P2 + h2 + Q2 + 5, C2)) : (F2 = new u.Rect(S2 - h2, T2, P2 + h2 + Q2 + 5, C2), A2.D1(k2, F2, void 0, q2.hBe(t4, F2)), q2.Muo(t4, g2, "H")), K2 = b2 + W2 + V2 + 2, A2.jy(k2, new u.Rect(m2 - 2, T2, K2, C2)), this.Nb(t4, T2, C2));
              }
              f2 || (t4.invalidateLayout(), t4.repaint()), (r2 !== n3 || c2 && o2 !== e3) && (t4.ki(u.Events.LeftColumnChanged, { sheet: t4, sheetName: t4.name(), oldLeftCol: r2, newLeftCol: n3, oldOffset: H(o2 / a2), newOffset: H(e3 / a2) }), t4.$Dr({ type: "updateTopLeftPosition", leftCol: t4.Ab, topRow: t4.Tb })), (J2 = t4.rt) && J2.By(), X2 = r2 === t4.Ab && o2 !== t4.my, f2 && Bt(t4, X2) && (q2.Ib = Pt(t4, q2));
            }
          }, t3.prototype.Nb = function(t4, n3, e3) {
            var i3 = t4.Dn, r2 = i3.J();
            this.Zy(t4).concat(this.Wy(t4)).forEach((function(t5) {
              var o2 = t5.layout, a2 = new u.Rect(o2.x, n3, o2.width, e3);
              i3.O1(a2), i3.jy(r2, a2);
            }));
          }, t3.prototype.Zy = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.getSelections();
            return 1 === c2.length && t4.frozenColumnCount() > 0 ? (n3 = s2._wb.options.scrollByPixel, e3 = t4.Ab, i3 = t4.my, r2 = c2[0].col, o2 = c2[0].col + c2[0].colCount - 1, n3 && o2 === e3 - 1 ? [] : (a2 = [], (r2 === e3 + 1 || r2 < e3 && e3 <= o2 || o2 === e3 - 1 || n3 && r2 === e3 && 0 !== i3) && (u2 = t4.Yy(0)) && u2.length > 0 && a2.push({ layout: u2[u2.length - 1] }), a2)) : [];
          }, t3.prototype.Wy = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = t4.getSelections();
            return 1 === v2.length && t4.frozenTrailingColumnCount() > 0 ? (n3 = d2._wb.options.scrollByPixel, e3 = t4.getViewportRightColumn(1), i3 = v2[0].col, r2 = v2[0].col + v2[0].colCount - 1, o2 = [], s2 = (u2 = (a2 = t4.Yy(2)) && a2.length > 0) ? a2[0] : B, l2 = (f2 = (c2 = t4.Yy(1)) && c2.length > 0) ? c2.findCol(e3) : B, h2 = u2 && f2 && s2.x !== l2.x + l2.width, (r2 === e3 - 1 || i3 <= e3 && e3 < r2 || i3 === e3 + 1 || n3 && r2 === e3 && h2) && u2 && o2.push({ layout: s2 }), o2) : [];
          }, t3.prototype.Mg = function(t4, n3, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = this, k2 = I2._wb, N2 = false, j2 = k2._vScrollbar, D2 = k2._hScrollbar, _2 = k2.options.scrollbarShowMax, O2 = k2.options.scrollbarAppearance === m.ScrollbarAppearance.mobile;
            if (t4) {
              if (r2 = t4.name(), n3.ctrlKey) {
                if (!k2.options.allowUserZoom) return true;
                if (o2 = t4.zoom(), a2 = u.mt.age(o2 - 0.05 * e3), t4.isEditing() && !t4.endEdit()) return;
                if (s2 = { sheet: t4, sheetName: t4.name(), oldZoomFactor: o2, newZoomFactor: a2, cancel: false }, t4.ki(u.Events.ViewZooming, s2), s2 && true === s2.cancel) return false;
                c2 = { cmd: "zoom", sheetName: r2, oldZoomFactor: o2, zoomFactor: s2.newZoomFactor }, t4.Qy().execute(c2);
              } else i3 = i3 || 0, n3.shiftKey && !u.mt.Qf() && (f2 = i3, i3 = e3, e3 = f2), l2 = t4.Tb, h2 = t4.ly, v2 = (d2 = I2.Jy(t4, e3)).Ky, p2 = d2.Xy, l2 !== v2 || h2 !== p2 ? (O2 && (j2.qy(m.ScrollbarState.show), I2.$y(true)), I2.yy(t4, v2, p2), t4.tw(), _2 || t4.ew()) : N2 = true, g2 = t4.Ab, b2 = t4.my, w2 = (y2 = I2.rw(t4, i3)).iw, M2 = y2.Xy, g2 === w2 && b2 === M2 || (O2 && (D2.qy(m.ScrollbarState.show), I2.$y(false)), I2.wy(t4, w2, M2), t4.ow(), _2 || t4.aw());
              (C2 = t4.rt).ab && C2.rb || (S2 = t4.uw(), T2 = t4.hitTest(n3.pageX - S2.left, n3.pageY - S2.top), (A2 = (x2 = t4.sw) && x2.cellTypeHitInfo) && (A2.cellRect = t4.getCellRect(x2.row, x2.col)), C2.cw(T2), C2.fw(T2));
            }
            return N2 && 0 === i3;
          }, t3.prototype.hw = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t4.Tb, l2 = t4.ly, h2 = t4.parent, d2 = t4.zoom(), v2 = P(n3 * h2.options.scrollPixel * d2), p2 = 0, g2 = t4.Fi().Cy, m2 = t4.dw(1).findRow(f2), b2 = t4.Csr;
            if (m2) {
              if (v2 < 0) {
                for (e3 = t4.vw(-1), p2 = -(g2 - m2.y), b2 && t4.Csr(f2) && (p2 -= t4.Msr(f2)); f2 > e3 && p2 >= v2; ) f2--, p2 -= t4.Gt(f2), b2 && (t4.Csr(f2) && (p2 -= t4.Msr(f2)), t4.Csr(f2, true) && (p2 -= t4.Msr(f2, true)));
                l2 = p2 - v2, f2 === e3 && l2 > 0 && (l2 = 0);
              } else if (v2 > 0) {
                for (i3 = t4.mw().Ky, p2 = m2.y + m2.height - g2, b2 && t4.Csr(m2.row, true) && (p2 += t4.Msr(m2.row, true)); f2 < i3 && p2 <= v2; ) f2++, p2 += t4.Gt(f2), b2 && (t4.Csr(f2) && (p2 += t4.Msr(f2)), t4.Csr(f2, true) && (p2 += t4.Msr(f2, true)));
                r2 = t4.Gt(f2), b2 && (t4.Csr(f2) && (r2 += t4.Msr(f2)), t4.Csr(f2, true) && (r2 += t4.Msr(f2, true))), l2 = p2 - v2 - r2, h2.options.scrollbarMaxAlign ? (o2 = t4.Fi(), a2 = t4.frozenRowCount(), u2 = t4.getRowCount() - t4.frozenTrailingRowCount() - 1, i3 = (s2 = t4.gw(t4.Sy(o2), a2, u2)).Ky, c2 = s2.Xy, f2 > i3 ? (f2 = i3, l2 = c2) : f2 === i3 && H(l2) > H(c2) && (l2 = c2)) : f2 < i3 && p2 - v2 === 0 ? (f2++, l2 = 0) : f2 === i3 && p2 - v2 < 0 && (l2 = -r2);
              }
            }
            return { Ky: f2, Xy: l2 };
          }, t3.prototype.Jy = function(t4, n3) {
            var e3, i3, r2, o2, a2 = t4.Tb, u2 = t4.ly, s2 = t4.parent;
            return s2 && s2.options.scrollByPixel ? s2.ib.hw(t4, n3) : ((e3 = t4.frozenRowCount()) > 0 && (0 === a2 && n3 > 0 ? a2 = e3 : n3 < 0 && a2 === e3 - n3 && (a2 = 0)), -1 !== (i3 = t4.vw(a2 + n3, n3 < 0)) ? a2 = i3 : a2 += n3, r2 = t4.pw(), o2 = t4.mw().Ky, t4.getRowCount() - e3 - t4.frozenTrailingRowCount() <= 0 || r2 === B ? a2 = t4.Tb : (a2 < r2 ? a2 = r2 : a2 > o2 && (a2 = o2), a2 === B && (a2 = -1)), { Ky: a2, Xy: u2 });
          }, t3.prototype.bw = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t4.Ab, l2 = t4.my, h2 = t4.parent, d2 = t4.zoom(), v2 = t4.options.rightToLeft, p2 = P(n3 * h2.options.scrollPixel * d2), g2 = 0, m2 = t4.Fi(), b2 = m2.Py, y2 = t4.yw(1).findCol(f2);
            if (y2) {
              if (v2) {
                if (p2 < 0) {
                  for (e3 = t4.ww(-1), g2 = -(y2.x + y2.width - m2.b6); f2 > e3 && g2 > p2; ) f2--, g2 -= t4.nn(f2);
                  l2 = g2 - p2, f2 === e3 && l2 > 0 && (l2 = 0);
                } else if (p2 > 0) {
                  for (i3 = t4.Mw().iw, g2 = m2.b6 - y2.x; f2 < i3 && g2 < p2; ) f2++, g2 += t4.nn(f2);
                  l2 = g2 - p2 - (r2 = t4.nn(f2)), f2 < i3 && g2 - p2 === 0 ? (f2++, l2 = 0) : f2 === i3 && g2 - p2 < 0 && (l2 = -r2);
                }
              } else if (p2 < 0) {
                for (e3 = t4.ww(-1), g2 = -(b2 - y2.x); f2 > e3 && g2 >= p2; ) f2--, g2 -= t4.nn(f2);
                l2 = g2 - p2, f2 === e3 && l2 > 0 && (l2 = 0);
              } else if (p2 > 0) {
                for (i3 = t4.Mw().iw, g2 = y2.x + y2.width - b2; f2 < i3 && g2 <= p2; ) f2++, g2 += t4.nn(f2);
                l2 = g2 - p2 - (r2 = t4.nn(f2)), h2.options.scrollbarMaxAlign ? (o2 = t4.Fi(), a2 = t4.frozenColumnCount(), u2 = t4.getColumnCount() - t4.frozenTrailingColumnCount() - 1, i3 = (s2 = t4.Cw(t4.Gy(o2), a2, u2)).iw, c2 = s2.Xy, f2 > i3 ? (f2 = i3, l2 = c2) : f2 === i3 && H(l2) > H(c2) && (l2 = c2)) : f2 < i3 && g2 - p2 === 0 ? (f2++, l2 = 0) : f2 === i3 && g2 - p2 < 0 && (l2 = -r2);
              }
            }
            return { iw: f2, Xy: l2 };
          }, t3.prototype.rw = function(t4, n3) {
            var e3, i3, r2, o2, a2 = t4.Ab, u2 = t4.my, s2 = t4.parent;
            return s2 && s2.options.scrollByPixel ? s2.ib.bw(t4, n3) : ((e3 = t4.frozenColumnCount()) > 0 && (0 === a2 && n3 > 0 ? a2 = e3 : n3 < 0 && a2 === e3 - n3 && (a2 = 0)), -1 !== (i3 = t4.ww(a2 + n3, n3 < 0)) ? a2 = i3 : a2 += n3, r2 = t4.Sw(), o2 = t4.Mw().iw, t4.getColumnCount() - e3 - t4.frozenTrailingColumnCount() <= 0 || r2 === B ? a2 = t4.Ab : (a2 < r2 ? a2 = r2 : a2 > o2 && (a2 = o2), a2 === B && (a2 = -1)), { iw: a2, Xy: u2 });
          }, t3.prototype.Yb = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, s2 = a2._wb, c2 = (0, u.jf)(s2);
            c2 && (o2 = a2.$b(t4, e3), t4 ? (i3 = n3.pageY, r2 = n3.pageX - Dt) : (i3 = n3.pageY - Ot, r2 = n3.pageX - _t), s2.Tw(M.j0(o2), r2, i3, true));
          }, t3.prototype.$b = function(t4, n3) {
            var e3, i3 = (0, u.jf)(this._wb);
            return i3 && (e3 = i3.getScrollTooltipContent(t4, n3)), e3;
          }, t3.prototype.Aw = function(t4) {
            (0, a.GC$)(t4).addClass(gt);
          }, t3.prototype.Iw = function(t4) {
            (0, a.GC$)(t4).removeClass(gt);
          }, t3.prototype.xw = function(t4) {
            (0, a.GC$)(t4).addClass(mt);
          }, t3.prototype.Nw = function(t4) {
            (0, a.GC$)(t4).removeClass(mt);
          }, t3.prototype.$y = function(t4, n3) {
            var e3, i3, r2, o2, a2;
            void 0 === n3 && (n3 = 1e3), i3 = (e3 = this)._wb, r2 = t4 ? i3.kw : i3.Dw, a2 = function() {
              e3.Nw(r2), e3.Aw(r2);
            }, (o2 = i3.options.scrollbarAppearance = m.ScrollbarAppearance.mobile) && (e3._w(t4), t4 ? e3.Ew = setTimeout(a2, n3) : e3.jw = setTimeout(a2, n3));
          }, t3.prototype._w = function(t4) {
            var n3 = this;
            t4 && n3.Ew ? (clearTimeout(n3.Ew), n3.Ew = null) : !t4 && n3.jw && (clearTimeout(n3.jw), n3.jw = null);
          }, t3.prototype.hBe = function(t4, n3) {
            var e3 = t4.ot();
            return new u.Rect(Math.max(n3.x - 2, 0), Math.max(n3.y - 2, 0), Math.min(n3.width + 4, e3.width), Math.min(n3.height + 4, e3.height));
          }, t3;
        })(), Rt = { allowDragHeaderToMove: m.AllowDragHeaderToMove.none, allowUserDragDrop: true, allowUserDragFill: true, allowUserZoom: true, allowUserResize: true, allowUndo: true, allowSheetReorder: true, allowContextMenu: true, allowUserDeselect: true, defaultDragFillType: 5, showDragFillSmartTag: true, showHorizontalScrollbar: true, showVerticalScrollbar: true, scrollbarShowMax: true, scrollbarMaxAlign: false, tabStripVisible: true, tabStripRatio: 0.5, tabStripPosition: m.TabStripPosition.bottom, tabStripWidth: It, tabEditable: true, newTabVisible: true, allSheetsListVisible: m.AllSheetsListVisibility.auto, cutCopyIndicatorVisible: true, cutCopyIndicatorBorderColor: "#217346", tabNavigationVisible: true, backColor: "white", backgroundImage: B, backgroundImageLayout: 0, showResizeTip: m.ShowResizeTip.none, showDragDropTip: true, showDragFillTip: true, scrollIgnoreHidden: false, highlightInvalidData: false, showScrollTip: m.ShowScrollTip.none, grayAreaBackColor: B, useTouchLayout: false, hideSelection: false, resizeZeroIndicator: m.ResizeZeroIndicator.enhanced, allowUserEditFormula: true, pivotAreaReference: 1, enableFormulaTextbox: true, referenceStyle: 0, allowDynamicArray: false, iterativeCalculation: true, iterativeCalculationMaximumIterations: 1e3, iterativeCalculationMaximumChange: 0.01, calcOnDemand: false, incrementalCalculation: false, dynamicReferences: true, autoFitType: m.AutoFitType.cell, allowCopyPasteExcelStyle: true, allowExtendPasteRange: false, copyPasteHeaderOptions: m.CopyPasteHeaderOptions.allHeaders, calculationMode: m.CalculationMode.auto, allowUserDragMerge: false, rowResizeMode: m.ResizeMode.normal, columnResizeMode: m.ResizeMode.normal, scrollByPixel: false, scrollPixel: 5, enableAccessibility: false, allowAutoCreateHyperlink: true, scrollbarAppearance: m.ScrollbarAppearance.skin, font: B, customList: [], numbersFitMode: m.NumbersFitMode.mask, pasteSkipInvisibleRange: false, allowAutoExtendFilterRange: false, allowInvalidFormula: false, formulaFormatHint: true, defaultSheetTabStyles: {}, builtInFileIcons: {}, dragHeaderMaskBackColor: B, dragHeaderIndicatorColor: B, pasteIgnoreSingleBlankCharCell: false }, Lt = (function() {
          function t3(t4, n3) {
            var e3, i3, r2 = this;
            r2.name = "", r2.sheetTabStyles = new y.SheetTabStyleManager(r2), r2.docProps = new w.u_r(r2), r2.Eb = false, r2.Kp = -1, r2._2 = 0, r2.jb = -1, r2.Bp = false, r2.options = j(Rt, (function(t5, n4, e4) {
              r2.Ob(t5, n4, e4);
            }), (function(t5, n4) {
              return r2.f_r(t5, n4);
            })), r2.Zp(n3), n3 && "white" === n3.backColor ? r2.Rb = true : r2.Rb = false, r2.sdr = false, e3 = 1, n3 && typeof (i3 = n3.sheetCount) === V && (e3 = i3), "string" == typeof t4 && (t4 = F.getElementById(t4)), r2.Ti = t4, r2.Hc(e3, t4);
          }
          return t3.prototype.commandManager = function() {
            return this.Qy;
          }, t3.prototype.undoManager = function() {
            return this.Wp;
          }, t3.prototype.l_r = function(t4) {
            var n3, e3 = this;
            switch (t4) {
              case m.CustomThemeType.table:
                n3 = e3.customTableThemes;
                break;
              case m.CustomThemeType.pivot:
                n3 = e3.customPivotTableThemes;
                break;
              case m.CustomThemeType.slicer:
                n3 = e3.customSlicerThemes;
                break;
              case m.CustomThemeType.timeline:
                n3 = e3.customTimelineThemes;
            }
            return n3;
          }, t3.prototype.Ow = function() {
            var t4 = this.Rw(), n3 = this.Bw;
            return n3 instanceof Array ? n3.concat(t4) : t4;
          }, t3.prototype.Rw = function() {
            var t4 = O.culture(), n3 = [], e3 = [], i3 = O.Fe(xt).DateTimeFormat, r2 = O.Fe(t4).DateTimeFormat;
            return n3 = this.Lw(i3), t4 !== xt && (e3 = this.Lw(r2, t4)), n3.concat(e3);
          }, t3.prototype.Lw = function(t4, n3) {
            var e3, i3, r2, o2, a2;
            return void 0 === n3 && (n3 = xt), i3 = [], (a2 = (e3 = function() {
              var t5 = ["abbreviatedDayNames", "dayNames", "abbreviatedMonthNames", "monthNames"];
              return n3 === At && (t5 = t5.filter((function(t6) {
                return "abbreviatedMonthNames" !== t6;
              }))), t5;
            })()).forEach((function(n4) {
              (r2 = t4[n4]) instanceof Array && r2.length > 0 && (o2 = n4.indexOf("month") > -1 || n4.indexOf("Month") > -1, r2 = o2 ? r2.slice(0, 12) : r2, i3.push(r2));
            })), i3;
          }, t3.prototype.Fp = function() {
            var t4 = this, n3 = A && t4.op();
            n3 && n3.clearDirties(), this.sheets.forEach((function(t5) {
              var n4;
              t5.Uw().Gw();
            }));
          }, t3.prototype.Ob = function(t4, n3, e3, i3) {
            var r2 = this, o2 = (0, u.jf)(r2), a2 = r2.w2, s2 = A && r2.op();
            switch (true !== i3 && r2.$Dr({ type: "setWorkbookOptions", propName: t4, value: n3 }), t4) {
              case "allowUndo":
                r2.Wp && (r2.Wp.Hw = n3);
                break;
              case "backColor":
                r2.Rb = true, o2 && (o2.Lj(o2, [{ row: 0, col: 0, rowCount: o2.getRowCount(), colCount: o2.getColumnCount() }], 0), o2.zw());
                break;
              case "cutCopyIndicatorBorderColor":
              case "cutCopyIndicatorVisible":
              case "grayAreaBackColor":
              case "hideSelection":
              case "highlightInvalidData":
              case "resizeZeroIndicator":
              case "allowUserDragFill":
              case "allowUserDragMerge":
              case "numbersFitMode":
              case "pasteSkipInvisibleRange":
              case "builtInFileIcons":
                o2 && o2.zw();
                break;
              case "backgroundImage":
              case "backgroundImageLayout":
                r2.nb(), o2 && o2.zw();
                break;
              case "newTabVisible":
              case "allSheetsListVisible":
              case "tabNavigationVisible":
              case "tabStripPosition":
                n3 !== e3 && r2.Vw(n3);
                break;
              case "tabStripWidth":
                n3 !== e3 && r2.Yw(n3);
                break;
              case "showHorizontalScrollbar":
              case "showVerticalScrollbar":
              case "useTouchLayout":
              case "tabStripVisible":
                r2.Cg();
                break;
              case "tabStripRatio":
                r2.Xg();
                break;
              case "scrollIgnoreHidden":
              case "scrollbarMaxAlign":
              case "scrollbarShowMax":
                o2 && (o2.Zw = true, o2.Ww = true, o2.zw());
                break;
              case "scrollByPixel":
                o2 && (o2.Zw = true, o2.Ww = true, o2.ly = 0, o2.my = 0, o2.zw());
                break;
              case "scrollPixel":
                break;
              case "scrollbarAppearance":
                r2.ib && n3 !== e3 && r2.Qw(n3);
                break;
              case "calcOnDemand":
                s2 && (!n3 && s2.calcOnDemand && r2.Fp(), s2[t4] = n3);
                break;
              case "incrementalCalculation":
              case "dynamicReferences":
                s2 && (s2[t4] = n3);
                break;
              case "customList":
                r2.Bw = n3;
                break;
              case "referenceStyle":
              case "allowDynamicArray":
              case "calculationMode":
              case "iterativeCalculation":
              case "iterativeCalculationMaximumIterations":
              case "iterativeCalculationMaximumChange":
                r2.Kw(t4, n3), o2 && o2.zw();
                break;
              case "defaultSheetTabStyles":
                a2 && a2.repaint();
            }
            r2.ki(u.Events.WorkbookOptionsChangedInternal, { propertyName: t4, value: n3 });
          }, t3.prototype.f_r = function(t4, n3) {
            var e3 = true;
            return "scrollPixel" === t4 && n3 <= 0 && (e3 = false), e3;
          }, t3.prototype.Qw = function(t4) {
            var n3, e3;
            I(t4) && (t4 = m.ScrollbarAppearance.skin), n3 = this, e3 = t4 === m.ScrollbarAppearance.mobile, n3._vScrollbar.Jw(t4), n3._hScrollbar.Jw(t4), n3.Xw.Jw(t4), n3.qw(), e3 ? n3.$w() : n3.tM(), n3.refresh();
          }, t3.prototype.Vw = function(t4) {
            var n3 = this;
            I(t4) && (t4 = m.TabStripPosition.bottom, n3.options.tabStripPosition = t4), n3.nM && (n3.eM(), n3.iM(), n3.Cg());
          }, t3.prototype.Yw = function(t4) {
            var n3 = this;
            I(t4) ? (t4 = It, n3.options.tabStripWidth = t4) : t4 < It && (n3.options.tabStripWidth = It), n3.nM && (n3.iM(), n3.Cg());
          }, t3.prototype.Kw = function(t4, n3) {
            var e3 = this, i3 = A && e3.op();
            if (i3) switch (t4) {
              case "referenceStyle":
                i3.useR1C1 = 1 === n3;
                break;
              case "allowDynamicArray":
              case "calculationMode":
              case "iterativeCalculation":
              case "iterativeCalculationMaximumIterations":
              case "iterativeCalculationMaximumChange":
                i3[t4] = n3;
            }
          }, t3.prototype.Hc = function(n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2 = this;
            for (A && f2.Qp(), f2.rM = [], f2.oM = k("input"), f2.vf = 0, f2.sg = 0, f2.aM = { fromSheet: B, isCutting: false }, f2.uM = { fromSheet: B, isCutting: false }, f2.sM = B, f2.sheets = [], f2.mp = [], f2.dse = [], f2.Hp = {}, f2.Bw = f2.options.customList, f2.Wp = new C(f2, -1, f2.options.allowUndo), (o2 = f2.Qy = new S(f2)).cM("beforeWorkbookExecute", (function(t4) {
              var n4, e4, i4;
              t4.isBefore && ((n4 = t4.command) && n4.sheetName && (e4 = f2.Gm(n4.sheetName), i4 = f2.getActiveSheetOrSheetTab(), e4 && e4 !== i4 && e4.notChangeActiveSheetWhenUndo && e4.notChangeActiveSheetWhenUndo() && (n4.sGr = true)), f2.fM(t4), 2 === t4.vM && f2.mM(t4));
            })), o2.addListener("workbookUndo", (function(t4) {
              var n4, e4 = t4.command, i4 = c.Commands.lM(e4), r3 = f2.Qy[e4.cmd];
              r3 && r3.canUndo() && !i4 && !e4.hM && ((n4 = f2.getSheetFromName(e4.sheetName)) && (e4.sheetId = n4._id), f2.undoManager().dM(e4, t4.vM)), 1 === t4.vM && f2.mM(t4);
            })), c.Commands.gM(o2), t3.et(f2, "init"), null === (i3 = f2.suspendOp) || void 0 === i3 || i3.call(f2), a2 = 0; a2 < n3; a2++) u2 = f2.S2(f2.T2(a2)), f2.sheets.push(u2), f2.v3(u2), f2.dse.push(u2), u2.h_r(a2), u2.pM(f2);
            (s2 = f2.sheets[f2._2]) && s2.isSelected(true), f2.suspendPaint(), e3 && f2.hg(e3), f2.bM = new d.yM(f2), f2.resumePaint(), null === (r2 = f2.resumeOp) || void 0 === r2 || r2.call(f2);
          }, t3.prototype.hitTest = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, P2 = this, G2 = P2.jg(), U2 = P2.w2, H2 = P2._hScrollbar, V2 = P2._vScrollbar, z2 = (0, a.GC$)(P2.getHost()).width(), Y2 = (0, a.GC$)(P2.getHost()).height();
            if (t4 < 0 || t4 > z2 || n3 < 0 || n3 > Y2) return B;
            if (i3 = P2.wM(), r2 = P2.options.scrollbarAppearance === m.ScrollbarAppearance.mobile) {
              if (u2 = Wt(H2, o2 = (0, a.GC$)(P2.Dw).offset(), i3, t4, n3)) return u2;
              if (c2 = Qt(V2, s2 = (0, a.GC$)(P2.kw).offset(), i3, t4, n3)) return c2;
            }
            if (G2 && (f2 = G2.uw(), l2 = G2.ot(), h2 = f2.left - i3.left, d2 = f2.top - i3.top, t4 > h2 && t4 < l2.width + h2 && n3 > d2 && n3 < l2.height + d2)) return { worksheetHitInfo: G2.hitTest(t4 - h2, n3 - d2, false, e3), x: t4, y: n3 };
            if (v2 = (0, a.GC$)(U2.Dg()).offset(), p2 = U2.ot(), g2 = v2.left - i3.left, b2 = v2.top - i3.top, t4 > g2 && t4 < p2.width + g2 && n3 > b2 && n3 < p2.height + b2) {
              switch (w2 = {}, M2 = (y2 = U2.hitTest(t4 - g2, n3 - b2)).index, S2 = (C2 = P2.e2(M2)) && C2.name(), T2 = B, C2 && $t(C2._gi) && (T2 = C2._gi), y2.type) {
                case "navButton":
                  w2 = { navButton: y2.element };
                  break;
                case "sheetTab":
                  w2 = { sheetTab: { sheetName: S2 || y2.element, sheetIndex: M2 } }, T2 !== B && (w2.sheetTab.sheetType = T2);
                  break;
                case "resize":
                  w2 = { resize: true };
                  break;
                default:
                  w2 = { blank: true };
              }
              return { tabStripHitInfo: w2, x: t4, y: n3 };
            }
            return x2 = (0, a.GC$)(H2.oy()).offset(), A2 = H2._b(), I2 = x2.left - i3.left, k2 = x2.top - i3.top, t4 > I2 && t4 < A2.width + I2 && n3 > k2 && n3 < A2.height + k2 ? { horizontalScrollBarHitInfo: { element: H2.hitTest(t4 - I2, n3 - k2).element }, x: t4, y: n3 } : (N2 = (0, a.GC$)(V2.oy()).offset(), j2 = V2._b(), D2 = N2.left - i3.left, _2 = N2.top - i3.top, t4 > D2 && t4 < j2.width + D2 && n3 > _2 && n3 < j2.height + _2 ? { verticalScrollBarHitInfo: { element: V2.hitTest(t4 - D2, n3 - _2).element }, x: t4, y: n3 } : (O2 = (0, a.GC$)(P2.MM).offset(), E2 = parseInt(P2.MM.style.width.substr(0, P2.MM.style.width.indexOf("px")), 10), R2 = parseInt(P2.MM.style.height.substr(0, P2.MM.style.height.indexOf("px")), 10), L2 = O2.left - i3.left, F2 = O2.top - i3.top, t4 > L2 && t4 < E2 + L2 && n3 > F2 && n3 < R2 + F2 ? { footerCornerHitInfo: { element: "footerCorner" }, x: t4, y: n3 } : void 0));
          }, t3.prototype.wM = function() {
            var t4 = this, n3;
            return (n3 = bt ? bt(t4.Ti).offset() : (0, a.GC$)(t4.Ti).offset()) ? (n3.top += F.body.clientTop || 0, n3.left += F.body.clientLeft || 0) : n3 = { top: 0, left: 0 }, n3;
          }, t3.prototype.Zp = function(t4) {
            var n3 = this.options, e3 = t4 || {};
            e3 = x(true, {}, Rt, e3), T(e3, (function(t5, e4) {
              n3.hasOwnProperty(t5) && (n3[t5] = e4);
            }));
          }, t3.prototype.j2 = function() {
            var t4 = this;
            return !t4.sM && t4.Ti && (t4.sM = k(nt), (0, a.GC$)(t4.sM).css({ position: "relative", left: 0, top: 0, height: 0 }).attr(Mt, "gcLayerContainer"), (0, a.GC$)(t4.Ti).prepend(t4.sM)), t4.sM;
          }, t3.prototype.T2 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.getSheetCount();
            u2.Kp < s2 ? u2.Kp = s2 : u2.Kp++, (I(t4) || t4 < u2.Kp) && (t4 = u2.Kp), n3 = false, i3 = u2.qv();
            do {
              for (e3 = (jt().SHEET_NAME || "Sheet") + (t4 + 1), r2 = i3.length, o2 = 0; o2 < r2; o2++) if (a2 = i3[o2]) {
                if (a2.name().toUpperCase() === e3.toUpperCase()) {
                  t4++, n3 = true;
                  break;
                }
                n3 && (n3 = false);
              }
            } while (n3);
            return e3;
          }, t3.prototype.S2 = function(n3, e3) {
            var i3 = { name: n3, type: e3, sheet: null };
            return t3.et(this, "createSheet", i3, (function() {
              return i3.sheet !== B;
            })), i3.sheet || new v.Worksheet(n3);
          }, t3.prototype.setHost = function(t4) {
            this.hg(t4);
          }, t3.prototype.hg = function(n3) {
            var e3 = this;
            n3 && (e3.Ti = n3, e3.CM(), e3.nl(), e3.SM(), e3.TM(), e3.AM(), e3.IM(), e3.xM(), e3.NM(), e3.kM(), e3.DM(), e3._M(), e3.$w(), e3.EM(), e3.jM(), e3.OM(), e3.BM(), e3.iM(), e3.Cg(), e3.LM(n3), t3.et(e3, "setHost", n3));
          }, t3.prototype.CM = function() {
            var t4 = this, n3 = t4.Ti;
            bt && bt(n3).data(wt, t4), (0, a.GC$)(n3).data(wt, t4).attr(Mt, "gcSpread").addClass(Ct).css(Tt, St);
          }, t3.prototype.nl = function() {
            L.gcGlobal.nl();
          }, t3.prototype.SM = function() {
            var t4 = this;
            t4.cultureChangedHandler = function() {
              t4.FM();
            }, F.addEventListener(yt, t4.cultureChangedHandler);
          }, t3.prototype.TM = function() {
            var t4 = this;
            t4.PM(), t4.GM(), t4.HM();
          }, t3.prototype.GM = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Ti, u2 = k(et), s2 = u2.style;
            for (u2.cellSpacing = "0px", u2.cellPadding = "0px", u2.border = "0", s2.width = rt, s2.height = rt, s2.border = "0", s2.margin = "0", s2.borderCollapse = "collapse", s2.float = "left", t4 = 0; t4 < 3; t4++) {
              for (n3 = k("tr"), e3 = 0; e3 < 2; e3++) (r2 = (i3 = k("td")).style).padding = "0", r2.border = "0", n3.appendChild(i3);
              u2.appendChild(n3);
            }
            a2.appendChild(u2), o2.nM = u2;
          }, t3.prototype.PM = function() {
            var t4 = this, n3 = t4.Ti, e3 = k(nt), i3 = e3.style;
            i3.width = "0", i3.height = "0", i3.float = "left", n3.appendChild(e3), t4.zM = e3;
          }, t3.prototype.HM = function() {
            var t4 = this, n3 = t4.Ti, e3 = k(nt), i3 = e3.style;
            i3.width = "0", i3.height = "0", i3.float = "left", n3.appendChild(e3), t4.VM = e3;
          }, t3.prototype.AM = function() {
            var t4 = this, n3 = t4.Ti, e3 = t4.nM, i3 = e3.rows[1].cells[0], r2 = k(nt);
            r2.id = n3.id + "vp", (0, a.GC$)(i3).append(r2), t4._vp = r2;
          }, t3.prototype.IM = function() {
            var t4 = this, n3 = t4.nM, e3 = n3.rows[1].cells[1], r2 = t4.options, o2 = r2.scrollByPixel, u2 = r2.scrollbarAppearance, s2 = o2 ? m.ScrollType.pixels : m.ScrollType.continuous, c2 = new i2.YM(false, B, B, B, B, B, s2, u2, (function() {
              t4.ZM(true);
            })), f2 = k(nt), l2 = c2.oy();
            (0, a.GC$)(f2).append(l2), t4._vScrollbar = c2, t4.kw = f2, t4.WM = e3;
          }, t3.prototype.QM = function() {
            var t4 = this, n3 = t4._vScrollbar.oy();
            (0, a.GC$)(n3).bind(K + tt, (function(n4, e3) {
              var r2 = e3.scrollEventType;
              n4.data = t4, e3.scrollOrientation === i2.ScrollOrientation.verticalScroll && (r2 === m.Zi.smallDecrement || r2 === m.Zi.smallIncrement || r2 === m.Zi.largeDecrement || r2 === m.Zi.largeIncrement || r2 === m.Zi.thumbTrack ? Et.Zb(n4, e3) : r2 === m.Zi.thumbPosition && Et.Qb(n4));
            })).bind(z + tt, (function(n4) {
              n4.data = t4, Et.Jb(n4);
            })).bind(Z + tt, (function(n4) {
              n4.data = t4, Et.ey(n4);
            })).bind(Y + tt, (function(n4) {
              n4.data = t4, n4.scrollbar = t4._vScrollbar, Et.ry(n4);
            }));
          }, t3.prototype.xM = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.nM, u2 = o2.rows[2].cells[0], s2 = k(et), c2 = s2.style;
            for (s2.cellSpacing = "0", s2.cellPadding = "0", s2.border = "0", c2.border = "0", c2.margin = "0", (0, a.GC$)(s2).css("user-select", ut), t4 = k("tr"), n3 = 0; n3 < 2; n3++) (i3 = (e3 = k("td")).style).padding = "0", i3.border = "0", t4.appendChild(e3);
            s2.appendChild(t4), (0, a.GC$)(u2).append(s2), r2.JM = s2;
          }, t3.prototype.NM = function() {
            var t4, n3 = this, e3 = n3.Ti, i3 = k(nt), r2 = i3.style, o2 = null === (t4 = (0, u.jf)(n3)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, s2 = n3.Jg();
            o2 && (s2 = 1 - s2), r2.width = "" + s2 * (0, a.GC$)(e3).width() + it, r2.height = "" + n3.Zv() + it, r2.fontSize = "10pt", r2.fontFamily = "Arial", n3.XM = i3;
          }, t3.prototype.kM = function() {
            var t4, n3, e3, r2 = this, o2 = r2.JM, s2 = o2.rows[0].cells[1], c2 = r2.options, f2 = c2.scrollByPixel, l2 = c2.scrollbarAppearance, h2 = f2 ? m.ScrollType.pixels : m.ScrollType.continuous, d2 = null === (t4 = (0, u.jf)(r2)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, v2 = new i2.YM(true, B, B, B, B, B, h2, l2, (function() {
              r2.ZM(false);
            }), d2), p2 = v2.oy(), g2 = k(nt);
            (0, a.GC$)(g2).append(p2), r2._hScrollbar = v2, e3 = (n3 = new i2.YM(true, B, B, B, B, B, m.ScrollType.pixels, l2, (function() {
              r2.ZM(false);
            }), d2)).oy(), (0, a.GC$)(g2).append(e3), r2.Xw = n3, r2.Dw = g2, r2.qM = s2;
          }, t3.prototype.$M = function() {
            var t4 = this, n3 = t4._hScrollbar.oy();
            (0, a.GC$)(n3).bind(K + tt, (function(n4, e3) {
              var r2 = e3.scrollEventType;
              n4.data = t4, e3.scrollOrientation === i2.ScrollOrientation.horizontalScroll && (r2 === m.Zi.smallDecrement || r2 === m.Zi.smallIncrement || r2 === m.Zi.largeDecrement || r2 === m.Zi.largeIncrement || r2 === m.Zi.thumbTrack ? Et.Bb(n4, e3) : r2 === m.Zi.thumbPosition && t4.iy());
            })).bind(z + tt, (function(n4) {
              n4.data = t4, Et.Ub(n4);
            })).bind(Z + tt, (function(n4) {
              n4.data = t4, Et.ey(n4);
            })).bind(Y + tt, (function(n4) {
              n4.data = t4, n4.scrollbar = t4._hScrollbar, Et.ry(n4);
            }));
          }, t3.prototype.tC = function() {
            var t4 = this, n3 = t4.Xw.oy();
            (0, a.GC$)(n3).bind(K + tt, (function(n4, e3) {
              var r2 = e3.scrollEventType;
              n4.data = t4, e3.scrollOrientation === i2.ScrollOrientation.horizontalScroll && (r2 === m.Zi.smallDecrement || r2 === m.Zi.smallIncrement || r2 === m.Zi.largeDecrement || r2 === m.Zi.largeIncrement || r2 === m.Zi.thumbTrack ? Et.qb(n4, e3) : r2 === m.Zi.thumbPosition && Et.Pb(n4));
            })).bind(z + tt, (function(n4) {
              n4.data = t4, Et.Ub(n4, true);
            })).bind(Z + tt, (function(n4) {
              n4.data = t4, Et.ey(n4);
            })).bind(Y + tt, (function(n4) {
              n4.data = t4, n4.scrollbar = t4.Xw, Et.ry(n4);
            }));
          }, t3.prototype.DM = function() {
            var t4 = this;
            t4.nC(), t4.eC();
          }, t3.prototype.nC = function() {
            var t4 = this, n3 = t4.nM, e3 = n3.rows[0].cells[1], i3 = k(nt);
            (0, a.GC$)(e3).append(i3), t4.iC = i3;
          }, t3.prototype.eC = function() {
            var t4 = this, n3 = t4.nM, e3 = n3.rows[2].cells[1], i3 = k(nt);
            (0, a.GC$)(e3).append(i3), t4.MM = i3;
          }, t3.prototype.EM = function() {
            var t4 = this;
            t4.ib = new Et(t4);
          }, t3.prototype._M = function() {
            var t4 = this;
            t4.QM(), t4.$M(), t4.tC();
          }, t3.prototype.$w = function() {
            var t4, n3, e3, i3 = this, r2 = i3.options, o2 = r2.scrollbarAppearance;
            o2 === m.ScrollbarAppearance.mobile && (t4 = i3.Ti, n3 = i3.kw, e3 = i3.Dw, (0, a.GC$)(n3).bind(W, (function() {
              i3._vScrollbar.qy(m.ScrollbarState.active);
            })).bind(Q, (function() {
              i3._vScrollbar.qy(m.ScrollbarState.inactive);
            })), (0, a.GC$)(e3).bind(W, (function() {
              i3._hScrollbar.qy(m.ScrollbarState.active), i3.Xw.qy(m.ScrollbarState.active);
            })).bind(Q, (function() {
              i3._hScrollbar.qy(m.ScrollbarState.inactive), i3.Xw.qy(m.ScrollbarState.inactive);
            })), (0, a.GC$)(t4).bind(W, i3.oC).bind(Q, i3.aC));
          }, t3.prototype.tM = function() {
            var t4 = this, n3 = t4.kw, e3 = t4.Dw;
            n3 && ((0, a.GC$)(n3).unbind(W).unbind(Q), t4.ib._w(true)), e3 && ((0, a.GC$)(e3).unbind(W).unbind(Q), t4.ib._w(false)), (0, a.GC$)(t4.Ti).unbind(W, t4.oC).bind(Q, t4.aC);
          }, t3.prototype.oC = function() {
            (0, a.GC$)(this).find("." + ht).addClass(pt);
          }, t3.prototype.aC = function() {
            (0, a.GC$)(this).find("." + ht).removeClass(pt);
          }, t3.prototype.jM = function() {
            var t4 = this;
            t4.eM(), t4.qw(), t4.sdr && (t4.Gur(), t4.PC());
          }, t3.prototype.uC = function() {
            var t4, n3 = this, e3 = n3.w2, i3 = n3.options.tabStripPosition, r2 = n3.options.tabStripVisible, o2 = 0, a2 = 0, s2 = (0, u.jf)(n3);
            return s2 && s2.options.rightToLeft && n3.options.showVerticalScrollbar && (o2 = n3.NC()), e3 && r2 && (t4 = e3.ot(), i3 === m.TabStripPosition.top ? a2 = t4.height : i3 === m.TabStripPosition.left && (o2 += t4.width)), { left: o2, top: a2 };
          }, t3.prototype.hdr = function() {
            var t4 = this, n3 = t4.w2, e3 = t4.options.tabStripPosition, i3 = t4.options.tabStripVisible, r2 = (0, a.GC$)(t4.Ti).width();
            return n3 && i3 && e3 === m.TabStripPosition.left && (r2 -= n3.ot().width), r2;
          }, t3.prototype.sC = function() {
            var t4 = this, n3 = t4.j2(), e3 = t4.uC(), i3 = t4.hdr();
            (0, a.GC$)(n3).css({ width: i3, left: e3.left, top: e3.top });
          }, t3.prototype.qw = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2, f2, l2, h2 = this, d2 = h2.Ti;
            h2.ib && (n3 = h2.options.scrollbarAppearance === m.ScrollbarAppearance.mobile, e3 = h2.JM, i3 = h2.nM, r2 = null === (t4 = (0, u.jf)(h2)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, h2.qM = r2 ? e3.rows[0].cells[0] : e3.rows[0].cells[1], h2.WM = r2 ? i3.rows[1].cells[0] : i3.rows[1].cells[1], o2 = h2.WM, s2 = h2.qM, c2 = h2.kw, f2 = h2.Dw, (0, a.GC$)(c2).removeAttr("style"), (0, a.GC$)(f2).removeAttr("style"), h2.kGr(), (0, a.GC$)(f2).addClass("gc-clear-float"), n3 ? (l2 = h2.j2(), c2.style.position = "absolute", c2.style.top = "0px", c2.style.left = "0px", (0, a.GC$)(c2).addClass(ht + " " + vt), (0, a.GC$)(l2).append(c2), f2.style.position = "absolute", f2.style.top = "0px", f2.style.left = "0px", (0, a.GC$)(f2).addClass(ht + " " + dt), (0, a.GC$)(l2).append(f2)) : ((0, a.GC$)(o2).append(c2), (0, a.GC$)(s2).append(f2), (0, a.GC$)(c2).removeClass(ht + " " + gt + " " + vt + " " + mt), (0, a.GC$)(f2).removeClass(ht + " " + gt + " " + dt + " " + mt), (0, a.GC$)(d2).css("position", "auto")));
          }, t3.prototype.kGr = function() {
            for (var t4 = false, n3 = this._hScrollbar.oy(), e3 = n3, i3 = F.body; e3 && e3 !== i3; ) {
              if ("flex" === getComputedStyle(e3).display) {
                t4 = true;
                break;
              }
              e3 = e3.parentElement;
            }
            t4 && (n3.style.width = "0");
          }, t3.prototype.Gur = function() {
            var t4, n3, e3, i3 = this, r2 = i3.nM;
            r2 && (e3 = (n3 = null === (t4 = (0, u.jf)(i3)) || void 0 === t4 ? void 0 : t4.options.rightToLeft) ? r2.rows[1].cells[1] : r2.rows[1].cells[0], (0, a.GC$)(e3).append(i3._vp));
          }, t3.prototype.eM = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2 = this, f2 = c2.nM, l2 = c2.zM, h2 = c2.VM, d2 = c2.JM;
            d2 && (n3 = c2.XM, e3 = c2.options.tabStripPosition, i3 = c2.options.tabStripVisible, r2 = null === (t4 = (0, u.jf)(c2)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, e3 === m.TabStripPosition.bottom ? o2 = r2 ? d2.rows[0].cells[1] : d2.rows[0].cells[0] : e3 === m.TabStripPosition.top ? o2 = r2 ? f2.rows[0].cells[1] : f2.rows[0].cells[0] : e3 === m.TabStripPosition.left ? o2 = l2 : e3 === m.TabStripPosition.right && (o2 = h2), e3 !== m.TabStripPosition.bottom && e3 !== m.TabStripPosition.top && i3 ? f2.style.tableLayout = "fixed" : f2.style.tableLayout = "", e3 === m.TabStripPosition.top && c2.sdr && (s2 = r2 ? f2.rows[0].cells[0] : f2.rows[0].cells[1], (0, a.GC$)(s2).append(c2.iC)), (0, a.GC$)(o2).append(n3));
          }, t3.prototype.LM = function(t4) {
            var n3 = this, e3 = "tabindex", i3 = R((0, a.GC$)(t4).attr(e3), 10) || 0, r2 = k(nt);
            (0, a.GC$)(r2).css({ position: st, overflow: "hidden" }).attr(Mt, "gcSheetFocusElementForTab").attr(e3, i3).bind(X, (function() {
              n3.fC || (0, u.jf)(n3).Zg(), n3.fC = false;
            })), t4.insertBefore(r2, B), n3.lC = r2;
          }, t3.prototype.OM = function() {
            var t4 = this, n3 = function() {
              t4.hC();
            };
            (0, a.GC$)(L).bind(J + q, n3), t4.dC = n3;
          }, t3.prototype.BM = function() {
            var t4 = this, n3 = (0, u.jf)(t4);
            n3 && n3.hg(t4._vp);
          }, t3.prototype.vC = function() {
            var t4 = this, n3 = t4.lC;
            n3 && (t4.fC = true, n3.focus());
          }, t3.prototype.mC = function() {
            var t4, n3, e3, i3, r2, o2 = this.getActiveSheet();
            if (o2) if (u.hi.A1(o2)) {
              if (n3 = this.Ti) for (e3 = document.activeElement, i3 = document.body, r2 = e3; r2; ) {
                if (r2 === n3) {
                  t4 = e3;
                  break;
                }
                if (r2 === i3) break;
                r2 = r2.parentElement;
              }
            } else o2.fg && (t4 = o2.fg);
            return t4;
          }, t3.prototype.n2 = function(t4) {
            var n3 = this;
            n3.She(), n3.gC = L.setTimeout((function() {
              var e3, i3, r2, o2 = n3.mC();
              o2 && (e3 = o2.getAttribute(Mt), I(t4) || "gcWorksheetCanvas" === e3 || "gcSheetClipboard" === e3 || o2.setAttribute("aria-label", t4), i3 = (0, u.jf)(n3), r2 = !(i3 && i3.rt && i3.rt.w_(i3)), u.mt.Qf() && r2 && (i3 && !i3.isEditing() && (o2.textContent = ""), n3.vC(), setTimeout((function() {
                i3 = (0, u.jf)(n3), (r2 = !(i3 && i3.rt && i3.rt.w_(i3))) && o2.focus();
              }), 50))), L.clearTimeout(n3.gC), n3.gC = B;
            }), 50);
          }, t3.prototype.She = function() {
            var t4 = this;
            t4.gC && (L.clearTimeout(t4.gC), t4.gC = B);
          }, t3.prototype.L0 = function() {
            var n3, e3, i3, r2, o2, s2, c2, f2 = this, l2 = f2._hScrollbar, d2 = f2._vScrollbar, v2 = f2.Xw, p2 = f2.sheets, g2 = f2.options.scrollbarAppearance === m.ScrollbarAppearance.mobile;
            for (f2.zp(), u.Bf.ih(f2), u.mt.L0(), f2.dC && (0, a.GC$)(L).unbind(J + q, f2.dC), f2.dC = B, f2.pC && clearTimeout(f2.pC), l2 && l2.dispose(), d2 && d2.dispose(), v2 && v2.dispose(), f2.bC(), f2.iy(), u.hi.ai() === f2.getActiveSheet() && u.hi.F1(B), n3 = 0; n3 < p2.length; n3++) p2[n3].L0(true);
            for (p2.splice(0, p2.length), e3 = f2.mp, n3 = 0; n3 < e3.length; n3++) e3[n3].L0(true);
            e3.splice(0, e3.length), f2.dse.splice(0, f2.dse.length), (i3 = f2.bM) && (i3.L0(), f2.bM = B), s2 = "class", c2 = "unselectable", (r2 = f2.Ti) && (o2 = (0, a.GC$)(r2), F.removeEventListener(yt, f2.cultureChangedHandler), o2.html("").removeAttr(Mt).removeClass(Ct), o2.attr(s2) || o2.removeAttr(s2), o2.attr(c2) || o2.removeAttr(c2), o2.data(wt) && o2.data(wt, B), bt && bt(r2).data(wt) && bt(r2).data(wt, B)), g2 && f2.tM(), f2.Dw = B, f2.kw = B, f2.Wp && (f2.Wp.L0(), f2.Wp = B), f2.sheetTabStyles && (f2.sheetTabStyles.L0(), f2.sheetTabStyles = B), f2.w2 && (f2.w2.L0(), f2.w2 = B), f2.Dp = B, f2.docProps && (f2.docProps.L0(), f2.docProps = B), t3.et(f2, "dispose"), f2.lC && ((0, a.GC$)(f2.lC).unbind(X), f2.lC = B), f2.Lp && (f2.Lp.dispose(), f2.Lp = B, f2.yC = B, f2.wC = B), f2.MC && (f2.MC.L0(), f2.MC = B), h.W.L0(), f2.Qy && (f2.Qy.L0(), f2.Qy = B), f2.ib && (f2.ib.L0(), f2.ib = B), f2.v2 && (f2.v2.dispose(), f2.v2 = B), f2.N3 && (f2.N3 = B), f2.vuo = B;
          }, t3.prototype.bC = function() {
            var t4, n3, e3, i3, r2, o2, u2 = this, s2 = u2.sheets;
            for ((0, a.GC$)(u2.oM).unbind(q), t4 = 0; t4 < s2.length; t4++) (n3 = s2[t4]).bC();
            for (i3 = 0, r2 = e3 = u2.mp; i3 < r2.length; i3++) (o2 = r2[i3]).bC();
            u2.rM && (u2.rM.length = 0);
          }, t3.prototype.zp = function() {
            var t4, n3, e3, i3 = this, r2 = i3.CC;
            if (r2) for (t4 = 0, n3 = r2; t4 < n3.length; t4++) (e3 = n3[t4]).close && e3.close();
            i3.CC = [];
          }, t3.prototype.Uur = function(t4) {
            var n3, e3;
            null === (n3 = this._hScrollbar) || void 0 === n3 || n3.Uur(t4), null === (e3 = this.Xw) || void 0 === e3 || e3.Uur(t4);
          }, t3.prototype.iM = function() {
            var t4 = this, n3 = R(u.I.fl("").zIndex), e3 = n3 !== t4.SC;
            e3 && t4.TC(n3), t4.AC(e3), t4.IC(), t4.xC();
          }, t3.prototype.TC = function(t4) {
            this.SC = t4;
          }, t3.prototype.AC = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.Ti;
            o2 && (n3 = r2.SC, e3 = o2.getAttribute("id") + "_tabStrip", r2.sdr && r2.Xg(), (i3 = r2.w2) && !t4 ? (i3.mg(), i3.repaint()) : (i3 && i3.L0(), i3 = n3 > 2007 ? new f.Gv(e3) : new l.Jm(e3), r2.w2 = i3, i3.Sg(r2), i3.hg(r2.XM)));
          }, t3.prototype.IC = function() {
            var t4, n3 = this, e3 = n3.options.scrollbarAppearance === m.ScrollbarAppearance.mobile, i3 = n3.Zv(), r2 = n3.Xm(), o2 = n3.NC(), a2 = null === (t4 = (0, u.jf)(n3)) || void 0 === t4 ? void 0 : t4.options.rightToLeft;
            e3 ? n3.kC() : (zt(n3.kw, o2, r2, a2), Yt(n3.Dw, i3, r2));
          }, t3.prototype.xC = function() {
            var t4 = this;
            Zt(t4.MM), Zt(t4.iC);
          }, t3.prototype.hC = function() {
            var t4 = this, n3 = t4.pC;
            n3 && clearTimeout(n3), t4.pC = L.setTimeout((function() {
              u.Bf.rh(), t4.Cg(), t4.pC = B;
            }), 100);
          }, t3.prototype.Cg = function() {
            var t4 = this;
            t4.Eb || (t4.Eb = true, t4.DC(), t4.Eb = false);
          }, t3.prototype.DC = function() {
            var t4 = this, n3 = t4.Ti;
            n3 && (t4._C(), t4.EC(), t4.jC(), t4.OC(), t4.RC(), t4.BC(), t4.LC(), t4.PC(), t4.GC(), t4.UC(), t4.HC(), t4.sC(), t4.zC());
          }, t3.prototype._C = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2, f2 = this, l2 = f2.zM;
            l2 && (t4 = l2.style, e3 = (n3 = f2.options).tabStripVisible, i3 = n3.tabStripPosition, r2 = e3 ? n3.tabStripWidth : 0, o2 = f2.Ti, u2 = (0, a.GC$)(o2).height(), i3 === m.TabStripPosition.left ? (s2 = r2, c2 = u2) : (s2 = 0, c2 = 0), t4.width = "" + s2 + it, t4.height = "" + c2 + it);
          }, t3.prototype.EC = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2 = this, f2 = c2.nM;
            f2 && (t4 = f2.style, e3 = (n3 = c2.options).tabStripVisible, i3 = n3.tabStripPosition, r2 = n3.tabStripWidth, o2 = (0, a.GC$)(c2.Ti).width(), u2 = !e3 || i3 !== m.TabStripPosition.left && i3 !== m.TabStripPosition.right ? o2 + it : (s2 = U(qt(c2.Ti))) - r2 + it, t4.width = u2);
          }, t3.prototype.OC = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2, f2 = this, l2 = f2.VM;
            l2 && (t4 = l2.style, e3 = (n3 = f2.options).tabStripVisible, i3 = n3.tabStripPosition, r2 = e3 ? n3.tabStripWidth : 0, o2 = f2.Ti, u2 = (0, a.GC$)(o2).height(), i3 === m.TabStripPosition.right ? (s2 = r2, c2 = u2) : (s2 = 0, c2 = 0), t4.width = "" + s2 + it, t4.height = "" + c2 + it);
          }, t3.prototype.jC = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2 = this, y2 = b2.Ti, w2 = (0, a.GC$)(y2), M2 = b2._vp;
            M2 && (t4 = M2.style, n3 = w2.width(), e3 = w2.height(), i3 = b2.NC(), r2 = b2.Zv(), u2 = (o2 = b2.options).showVerticalScrollbar, s2 = o2.showHorizontalScrollbar, c2 = o2.scrollbarAppearance, f2 = o2.tabStripVisible, l2 = o2.tabStripPosition, h2 = f2 ? o2.tabStripWidth : 0, d2 = c2 === m.ScrollbarAppearance.mobile, p2 = (v2 = l2 === m.TabStripPosition.left || l2 === m.TabStripPosition.right) ? U(qt(y2)) : n3, u2 && !d2 && (p2 -= i3), v2 && (p2 -= h2), g2 = e3, l2 === m.TabStripPosition.top ? (s2 && !d2 && (g2 -= r2), f2 && (g2 -= r2)) : (s2 && !d2 || f2 && l2 === m.TabStripPosition.bottom) && (g2 -= r2), g2 < 2 && (g2 = 2), t4.width = p2 + it, t4.height = g2 + it);
          }, t3.prototype.RC = function(t4) {
            var n3, e3, i3, r2, o2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2 = this, A2 = x2.Ti, k2 = (0, a.GC$)(A2), N2 = x2._vp;
            N2 && (I(t4) && (t4 = k2.width()), n3 = (0, a.GC$)(N2).height(), e3 = x2._hScrollbar, i3 = x2.Xw, r2 = x2._vScrollbar, s2 = (o2 = x2.options).showVerticalScrollbar, c2 = o2.showHorizontalScrollbar, f2 = o2.scrollbarAppearance, l2 = o2.tabStripVisible, h2 = o2.tabStripPosition, d2 = l2 ? o2.tabStripWidth : 0, v2 = f2 === m.ScrollbarAppearance.mobile, p2 = x2.Xm(), g2 = x2.NC(), b2 = x2.VC(), w2 = (y2 = (0, u.jf)(x2)) ? y2.getHDockScrollbarWidth() : 0, s2 ? ((0, a.GC$)(x2.kw).show(), (0, a.GC$)(r2.oy()).show()) : ((0, a.GC$)(x2.kw).hide(), (0, a.GC$)(r2.oy()).hide()), c2 ? ((0, a.GC$)(x2.Dw).show(), (0, a.GC$)(e3.oy()).show(), (0, a.GC$)(i3.oy()).show()) : ((0, a.GC$)(x2.Dw).hide(), (0, a.GC$)(e3.oy()).hide(), (0, a.GC$)(i3.oy()).hide()), 0 === w2 ? (0, a.GC$)(i3.oy()).hide() : (0, a.GC$)(i3.oy()).show(), M2 = p2, C2 = n3, r2.YC(M2), r2.ZC(C2), S2 = t4 - w2, h2 !== m.TabStripPosition.left && h2 !== m.TabStripPosition.right || (S2 -= d2), l2 && !v2 && h2 === m.TabStripPosition.bottom && (S2 -= b2), s2 && !v2 && (S2 -= g2), S2 <= 0 && (S2 = 1), T2 = p2, c2 || l2 || h2 !== m.TabStripPosition.bottom || (T2 = 0), e3.YC(S2), e3.ZC(T2), i3.YC(w2), i3.ZC(T2));
          }, t3.prototype.VC = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2._vp, s2 = r2.options, c2 = s2.tabStripPosition, f2 = s2.tabStripWidth, l2 = s2.scrollbarAppearance, h2 = (0, u.jf)(r2), d2 = null === (t4 = (0, u.jf)(r2)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, v2 = r2.Jg();
            return d2 && c2 === m.TabStripPosition.bottom && (v2 = 1 - v2), n3 = (0, a.GC$)(o2).width(), c2 === m.TabStripPosition.bottom || c2 === m.TabStripPosition.top ? (h2 && c2 === m.TabStripPosition.bottom && l2 === m.ScrollbarAppearance.skin && (n3 -= i3 = h2.getHDockScrollbarWidth()), e3 = P(v2 * n3), c2 === m.TabStripPosition.bottom && e3 === n3 && (e3 = n3 - 1)) : e3 = f2, e3;
          }, t3.prototype.BC = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2 = this, c2 = s2.Ti, f2 = (0, a.GC$)(c2).height(), l2 = s2.XM;
            l2 && (t4 = l2.style, e3 = (n3 = s2.options).tabStripVisible, i3 = n3.tabStripPosition, r2 = s2.Zv(), o2 = s2.VC(), u2 = i3 === m.TabStripPosition.bottom || i3 === m.TabStripPosition.top ? r2 : f2, e3 || (u2 = 0), t4.width = "" + o2 + it, t4.height = "" + u2 + it);
          }, t3.prototype.LC = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.iC, u2 = r2.MM, s2 = r2.options, c2 = s2.showVerticalScrollbar, f2 = s2.showHorizontalScrollbar, l2 = s2.tabStripVisible, h2 = s2.tabStripPosition, d2 = s2.scrollbarAppearance === m.ScrollbarAppearance.mobile, v2 = r2.NC(), p2 = r2.Zv();
            h2 === m.TabStripPosition.top ? (t4 = c2 && !d2 ? v2 : 0, n3 = l2 ? p2 : 0) : (t4 = 0, n3 = 0), (0, a.GC$)(o2).css("width", t4 + it), (0, a.GC$)(o2).css("height", n3 + it), e3 = c2 && !d2 ? v2 : 0, f2 || l2 && h2 === m.TabStripPosition.bottom ? (i3 = p2, d2 && (!l2 || l2 && h2 !== m.TabStripPosition.bottom) && (i3 = 0)) : i3 = 0, (0, a.GC$)(u2).css("width", e3 + it), (0, a.GC$)(u2).css("height", i3 + it);
          }, t3.prototype.PC = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2, f2, l2, h2 = this;
            h2._vp && (t4 = h2.nM, e3 = (n3 = h2.options).scrollbarAppearance === m.ScrollbarAppearance.mobile, i3 = n3.showVerticalScrollbar, r2 = [(0, a.GC$)(h2._vp).width(), h2.NC()], !e3 && i3 || (r2[1] = 0), (s2 = null == (o2 = (0, u.jf)(h2)) ? void 0 : o2.options.rightToLeft) && r2.reverse(), t4.rows[0].cells[0].style.width = r2[0] + it, t4.rows[0].cells[1].style.width = r2[1] + it, (c2 = o2 && o2 instanceof v.Worksheet) && ((f2 = s2 ? t4.rows[2].cells[1] : t4.rows[2].cells[0]).appendChild(h2.JM), (l2 = s2 ? t4.rows[2].cells[0] : t4.rows[2].cells[1]).appendChild(h2.MM)));
          }, t3.prototype.UC = function() {
            var t4 = this, n3 = t4.options, e3 = n3.scrollbarAppearance === m.ScrollbarAppearance.mobile;
            e3 && t4.kC(), t4.WC(), t4.QC(), e3 && (t4._vScrollbar.qy(m.ScrollbarState.hide), t4._hScrollbar.qy(m.ScrollbarState.hide));
          }, t3.prototype.HC = function() {
            var t4 = this, n3 = t4.options, e3 = n3.tabStripVisible;
            e3 ? (0, a.GC$)(t4.XM).show() : (0, a.GC$)(t4.XM).hide(), t4.w2 && t4.w2.Cg();
          }, t3.prototype.GC = function(t4) {
            var n3, e3, i3;
            void 0 === t4 && (t4 = true), n3 = this, (e3 = (0, u.jf)(n3)) ? (0 === e3.Tb && (e3.Tb = e3.pw()), 0 === e3.Ab && (e3.Ab = e3.Sw()), t4 && e3.Cg()) : (i3 = n3.getActiveSheetTab()) && i3.Cg();
          }, t3.prototype.zC = function() {
            var t4, n3 = this, e3 = (0, u.jf)(n3);
            e3 && (e3.invalidateLayout(), e3.repaint()), (t4 = n3.KC()) && !n3.JC && (n3.JC = true, setTimeout((function() {
              delete n3.JC, n3.DC();
            }), 1));
          }, t3.prototype.KC = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2, f2, l2 = this, h2 = (0, a.GC$)(l2.Ti), d2 = h2.width(), v2 = 2, p2 = h2.width(), g2 = d2 !== p2 && H(d2 - p2) > v2, m2 = false, b2 = l2.zM, y2 = l2.VM, w2 = l2.nM;
            return b2 && y2 && w2 && (t4 = (0, a.GC$)(b2).width(), n3 = (0, a.GC$)(y2).width(), e3 = (0, a.GC$)(w2).width(), m2 = H(t4 + e3 + n3 - p2) > v2), i3 = false, r2 = l2.Xw, o2 = (0, u.jf)(l2), r2 && o2 && (s2 = o2.getDockScrollbarAttachedIndex(), I(s2) || (c2 = r2.YC()) !== (f2 = o2.getHDockScrollbarWidth()) && (i3 = true)), g2 || m2 || i3;
          }, t3.prototype.kC = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, k2, N2, j2, D2, _2, O2, E2, L2 = this;
            I(L2.Ti) || (t4 = (0, a.GC$)(L2.Ti), (n3 = (0, u.jf)(L2)) && (e3 = (0, a.GC$)(L2.kw), i3 = (0, a.GC$)(L2.Dw), r2 = n3.Fi(), o2 = t4.width(), s2 = t4.height(), c2 = 2, l2 = (f2 = L2.options).tabStripVisible, h2 = f2.showVerticalScrollbar, d2 = f2.tabStripPosition, v2 = l2 ? f2.tabStripWidth : 0, p2 = l2 ? L2.Zv() : 0, g2 = n3.getHDockScrollbarWidth(), b2 = r2.x + r2.XC, y2 = r2.y + r2.qC, w2 = h2 ? e3.width() : 0, M2 = s2 - y2, d2 !== m.TabStripPosition.bottom && d2 !== m.TabStripPosition.top || (M2 -= p2), C2 = 0, d2 !== m.TabStripPosition.right && d2 !== m.TabStripPosition.left || (C2 += v2), S2 = y2, A2 = M2 - (T2 = R(e3.css("padding-top"))) - (x2 = R(e3.css("padding-bottom"))), k2 = o2 - b2, 0 === g2 && (k2 -= w2), d2 !== m.TabStripPosition.left && d2 !== m.TabStripPosition.right || (k2 -= v2), N2 = i3.height(), j2 = -(M2 + S2), D2 = b2, E2 = k2 - (_2 = R(i3.css("padding-left"))) - (O2 = R(i3.css("padding-right"))) - g2, 0 === g2 ? E2 -= c2 : g2 -= w2 + O2 + c2, L2._vScrollbar.YC(w2), L2._vScrollbar.ZC(A2), L2._hScrollbar.YC(E2), L2._hScrollbar.ZC(N2), L2.Xw.YC(g2), L2.Xw.ZC(N2), e3.css(["height", "left", "right", "top"], [M2, "auto", C2, S2]), i3.css(["width", "top", "bottom", "left"], [k2, "auto", j2, D2])));
          }, t3.prototype.WC = function() {
            var t4 = this, n3 = t4.jg(), e3 = t4.options;
            n3 ? (n3.WC(e3.scrollbarMaxAlign, e3.scrollbarShowMax, t4._hScrollbar), n3.$C(t4.Xw)) : t4._hScrollbar && t4._hScrollbar.w4();
          }, t3.prototype.QC = function() {
            var t4 = this, n3 = t4.jg(), e3 = t4.options;
            n3 && n3.QC(e3.scrollbarMaxAlign, e3.scrollbarShowMax, t4._vScrollbar);
          }, t3.prototype.Xg = function() {
            var t4, n3 = this, e3 = n3.Ti;
            e3 && (t4 = n3.t3(), n3.BC(), n3.RC(t4), n3.GC(false), n3.UC(), n3.HC());
          }, t3.prototype.t3 = function() {
            var t4, n3, e3 = this.Ti, i3 = e3.parentNode;
            return i3 && "flex" === (n3 = i3.style.display || getComputedStyle(i3).display) && (t4 = (0, a.GC$)(e3).width()), t4;
          }, t3.prototype.suspendPaint = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.w2, s2 = a2.sheets, c2 = a2.mp;
            for (a2.sg++, t4 = 0, n3 = s2; t4 < n3.length; t4++) (e3 = n3[t4]).suspendPaint();
            for (i3 = 0, r2 = c2; i3 < r2.length; i3++) (o2 = r2[i3]).suspendPaint();
            u2 && u2.V2();
          }, t3.prototype.resumePaint = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.w2, s2 = a2.sheets, c2 = a2.mp;
            for (a2.sg -= a2.sg > 0 ? 1 : 0, t4 = 0, n3 = s2; t4 < n3.length; t4++) (e3 = n3[t4]).resumePaint();
            for (i3 = 0, r2 = c2; i3 < r2.length; i3++) (o2 = r2[i3]).resumePaint();
            u2 && u2.Y2();
          }, t3.prototype.k_e = function() {
            var t4 = this, n3 = t4.getActiveSheet();
            try {
              n3 && (n3.My--, n3.n3(), n3.repaint(), n3.My++), t4.w2 && (t4.w2.sg--, t4.w2.repaint(), t4.w2.sg++);
            } catch (t5) {
            }
          }, t3.prototype.isPaintSuspended = function() {
            return this.sg > 0;
          }, t3.prototype.nb = function() {
            var t4, n3, e3, i3, r2, o2, c2 = this, f2 = c2.options.backgroundImage, l2 = c2.options.backgroundImageLayout, h2 = (0, u.jf)(c2);
            if (h2 && (n3 = void 0, (t4 = (0, a.GC$)(h2.Dg())).css({ "background-image": f2 ? "url('" + f2 + "')" : "", "background-repeat": "no-repeat" }), f2 && !I(l2))) {
              (n3 = c2.MC) || (n3 = c2.MC = new s.Wh((function() {
                c2.MC && c2.nb();
              })));
              try {
                n3.getState(f2) ? (e3 = n3.getImage(f2), r2 = (i3 = h2.ot()).width, o2 = i3.height, u.mt.Wf(h2.Dg(), r2, o2, e3.width, e3.height, l2)) : n3.addImage(f2);
              } catch (t5) {
              }
            }
          }, t3.prototype.e3 = function(t4) {
            var n3 = this, e3 = t4.name(), i3 = n3.getSheetPosition(e3);
            n3.w2.g2(i3);
          }, t3.prototype.startSheetIndex = function(t4) {
            var n3 = this, e3 = n3.w2;
            return 0 === arguments.length ? e3 ? e3.om : 0 : (e3 && (e3.k2(t4) || -1 === (t4 = e3.N2(t4)) && (t4 = e3.Vm(t4)), e3.om = t4, n3.$Dr({ type: "setStartSheetIndex", value: t4 })), n3.Xg(), n3);
          }, t3.prototype.Jg = function() {
            var t4, n3, e3, i3, r2, o2, s2, c2, f2 = this, l2 = f2.options, h2 = f2.options.scrollbarAppearance === m.ScrollbarAppearance.mobile, d2 = l2.tabStripPosition;
            return l2.showHorizontalScrollbar && !h2 && d2 === m.TabStripPosition.bottom ? (n3 = l2.tabStripRatio, isNaN(n3) ? 0.5 : (e3 = null === (t4 = (0, u.jf)(f2)) || void 0 === t4 ? void 0 : t4.options.rightToLeft, i3 = 0, r2 = 1, o2 = f2._vp, s2 = f2.w2, o2 && s2 && (c2 = (0, a.GC$)(o2).width(), i3 = e3 ? 0 : s2.rm() / c2, r2 = e3 ? 1 - s2.rm() / c2 : 1), n3 < i3 ? n3 = i3 : n3 > r2 && (n3 = r2), n3)) : 1;
          }, t3.prototype.destroy = function() {
            this.dC && (0, a.GC$)(L).unbind(J + q, this.dC), this.L0();
          }, t3.prototype.repaint = function() {
            var t4, n3 = this, e3 = n3.w2;
            e3 && e3.repaint(), (t4 = (0, u.jf)(n3)) && t4.repaint();
          }, t3.prototype.refresh = function() {
            var t4 = this;
            t4.Ti && (u.I.dl(), t4.r3(), t4.iM(), t4.Cg(), t4.repaint());
          }, t3.prototype.getHost = function() {
            return this.Ti;
          }, t3.prototype.invalidateLayout = function() {
            var t4 = (0, u.jf)(this);
            t4 && t4.invalidateLayout();
          }, t3.prototype.addNamedStyle = function(t4) {
            this.$p(t4);
            var n3 = (0, u.jf)(this);
            n3 && n3.zw();
          }, t3.prototype.$p = function(t4) {
            if (t4) {
              if (!t4.name) throw new Error(jt().Exp_EmptyNamedStyle);
              var n3 = t4.name.toUpperCase();
              this.Hp[n3] = t4, this.$Dr({ type: "addNamedStyle", style: t4 }), this.r3();
            }
          }, t3.prototype.getNamedStyle = function(t4) {
            return this.i3(t4, true);
          }, t3.prototype.i3 = function(t4, n3) {
            var e3, i3 = this.Hp;
            return i3 && t4 ? ((e3 = i3[t4 = t4.toUpperCase()]) && n3 && this.r3(), e3) : B;
          }, t3.prototype.r3 = function() {
            var t4, n3, e3, i3 = this.sheets;
            for (t4 = 0, n3 = i3; t4 < n3.length; t4++) (e3 = n3[t4]).r3();
          }, t3.prototype.removeNamedStyle = function(t4) {
            var n3, e3, i3 = this.Hp;
            i3 && t4 && (t4 = t4.toUpperCase(), i3.hasOwnProperty(t4) && ((n3 = i3[t4].formatter) && "string" == typeof n3 && this.bp[n3] && this.o3(n3), delete i3[t4], this.$Dr({ type: "removeNamedStyle", name: t4 }), this.r3(), (e3 = (0, u.jf)(this)) && e3.zw()));
          }, t3.prototype.getNamedStyles = function() {
            var t4 = [], n3 = this.Hp;
            return n3 && T(n3, (function(n4, e3) {
              t4.push(e3);
            })), t4;
          }, t3.prototype.getActiveSheet = function() {
            return this.sheets && this.sheets.length > 0 ? this.sheets[this._2] : B;
          }, t3.prototype.getActiveSheetTab = function() {
            return this.mp && this.mp.length > 0 ? this.mp[this.jb] : B;
          }, t3.prototype.setActiveSheet = function(t4) {
            var n3 = this.getActiveSheet(), e3 = this.getActiveSheetTab();
            this.vb(t4, 2), this.a3(n3), this.u3(e3);
          }, t3.prototype.setActiveSheetTab = function(t4) {
            var n3 = this.getActiveSheet(), e3 = this.getActiveSheetTab();
            "number" == typeof t4 ? this.yp(t4, 2) : "string" == typeof t4 && this.s3(t4, 2), this.a3(n3), this.u3(e3);
          }, t3.prototype.vb = function(t4, n3, e3, i3) {
            var r2, o2 = this.sheets;
            for (r2 = 0; r2 < o2.length; r2++) if (o2[r2].name() === t4) {
              this.tb(r2, n3, e3, i3);
              break;
            }
          }, t3.prototype.s3 = function(t4, n3, e3, i3) {
            var r2, o2 = this.mp;
            for (r2 = 0; r2 < o2.length; r2++) if (o2[r2].name() === t4) {
              this.yp(r2, n3, e3, i3);
              break;
            }
          }, t3.prototype.getActiveSheetIndex = function() {
            return this._2;
          }, t3.prototype.getActiveSheetTabIndex = function() {
            return this.jb;
          }, t3.prototype.setActiveSheetIndex = function(t4) {
            var n3, e3, i3 = this, r2 = i3.getSheetCount();
            t4 >= r2 && (t4 = r2 - 1), t4 < 0 && (t4 = 0), n3 = i3.getActiveSheet(), e3 = i3.getActiveSheetTab(), i3.tb(t4, 2), i3.a3(n3), i3.u3(e3);
          }, t3.prototype.kYr = function(t4, n3) {
            var e3, i3, r2;
            return typeof t4 === V && (t4 !== (e3 = this)._2 && (!!((i3 = e3.sheets[t4]) && i3.visible() === m.SheetTabVisible.visible || n3) && !((E.ipad || E.iphone) && (r2 = e3.c3) && (/* @__PURE__ */ new Date()).valueOf() - r2 < 300)));
          }, t3.prototype.NYr = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.sheets[t4], s2 = a2.getActiveSheet(), c2 = s2;
            return c2 || (c2 = (e3 = a2.getActiveSheetTab()) && e3.Mf), Ht(a2, i3 = { oldSheet: c2, newSheet: u2, needTriggerSheetChange: true }), r2 = { oldSheet: c2, newSheet: u2, cancel: false }, (o2 = i3.needTriggerSheetChange && n3) && Ut(a2, r2), { isCancel: r2.cancel, whetherTriggerEvent: o2 };
          }, t3.prototype.jYr = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.sheets[t4], a2 = r2.getActiveSheet(), u2 = en(r2);
            r2.d_r(t4), r2.f3(), o2 !== a2 && (a2 && (a2.L0(false), a2.charts && a2.charts.all().forEach((function(t5) {
              t5.clearflexDVs();
            }))), o2 && (r2.sdr = en(r2) !== u2, r2.l3(o2, n3, false, e3, i3))), r2.Cg();
          }, t3.prototype.DYr = function(t4, n3, e3) {
            var i3 = this;
            Vt(i3, t4, n3), e3 && Gt(i3, t4, n3);
          }, t3.prototype._Yr = function(t4, n3, e3) {
          }, t3.prototype.OYr = function(t4, n3, e3, i3) {
            this.DYr(n3, e3, i3);
          }, t3.prototype.tb = function(t4, n3, e3, i3, r2) {
            var o2, a2, s2, c2, f2, l2 = this;
            l2.kYr(t4, r2) && (o2 = l2.sheets[t4], a2 = (0, u.jf)(l2), c2 = (s2 = l2.NYr(t4, i3)).isCancel, f2 = s2.whetherTriggerEvent, false === c2 && (l2._Yr(t4, a2, o2), l2.jYr(t4, n3, f2, e3), l2.OYr(t4, a2, o2, f2)), (E.ipad || E.iphone) && (l2.c3 = (/* @__PURE__ */ new Date()).valueOf()));
          }, t3.prototype.yp = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2;
            typeof t4 === V && t4 !== (r2 = this).jb && (o2 = r2.mp[t4]) && o2.visible() === m.SheetTabVisible.visible && (a2 = o2.Mf, (E.ipad || E.iphone) && (u2 = r2.c3) && (/* @__PURE__ */ new Date()).valueOf() - u2 < 300 || (c2 = (s2 = r2.getActiveSheetTab()) ? s2.Mf : r2.getActiveSheet(), Ht(r2, f2 = { oldSheet: c2, newSheet: a2, needTriggerSheetChange: true }), l2 = { oldSheet: c2, newSheet: a2, cancel: false }, (h2 = f2.needTriggerSheetChange && i3) && Ut(r2, l2), false === l2.cancel && (d2 = en(r2), r2.f3(), r2.jb = t4, r2.h3(), o2 !== s2 && (s2 && s2.L0(false), r2.sdr = en(r2) !== d2, r2.d3(o2, n3, false, h2, e3), o2.b2(true)), r2.Cg(), Vt(r2, c2, a2), h2 && Gt(r2, c2, a2)), (E.ipad || E.iphone) && (r2.c3 = (/* @__PURE__ */ new Date()).valueOf())));
          }, t3.prototype.l3 = function(t4, n3, e3, i3, r2) {
            var o2, a2, s2;
            e3 || t4.hg(this._vp), a2 = (o2 = u.hi.ai()) && o2.parent === this, s2 = 2 === n3 ? a2 : 1 === n3, u.hi.F1(B), !this.Bp && s2 && t4.Zg(r2), t4.aw(), t4.tw();
          }, t3.prototype.d3 = function(t4, n3, e3, i3, r2) {
            var o2, a2, s2;
            e3 || t4.hg(this._vp), a2 = (o2 = u.hi.ai()) && o2.parent === this, s2 = 2 === n3 ? a2 : 1 === n3, u.hi.F1(B), !this.Bp && s2 && t4.Zg(r2), t4.aw(), t4.tw();
          }, t3.prototype.a3 = function(t4) {
            var n3 = this.getActiveSheet();
            t4 && t4.b2(false, false), n3 && n3.b2(true, false);
          }, t3.prototype.u3 = function(t4) {
            var n3 = this.getActiveSheetTab();
            t4 && t4.b2(false, false), n3 && n3.b2(true, false);
          }, t3.prototype.addSheet = function(t4, n3) {
            this.oGr(t4, n3);
          }, t3.prototype.oGr = function(t4, n3) {
            var e3 = this.getActiveSheet(), i3 = this.getActiveSheetTab();
            this.A2(t4, 2, n3), this.a3(e3), this.u3(i3);
          }, t3.prototype.addSheetTab = function(t4, n3, e3) {
            var i3 = this.getActiveSheet(), r2 = this.getActiveSheetTab(), o2 = this.bb(n3, e3);
            if (o2) return this.suspendPaint(), this.yb(t4, 2, o2), this.a3(i3), this.u3(r2), this.resumePaint(), o2;
          }, t3.prototype.i1e = function(t4, n3) {
            var e3 = this.getActiveSheet(), i3 = this.getActiveSheetTab();
            if (n3) return this.suspendPaint(), this.yb(t4, 2, n3), this.a3(e3), this.u3(i3), this.resumePaint(), n3;
          }, t3.prototype.gse = function(t4, n3, e3) {
            var i3, r2 = t4.length, o2 = [];
            for (i3 = 0; i3 < e3 && r2 > 0; i3++) o2.push(t4.pop());
            for (t4.push(n3); o2.length > 0; ) t4.push(o2.pop());
          }, t3.prototype.pse = function(t4, n3, e3) {
            for (var i3, r2, o2 = t4.length, a2 = [], u2 = 0, s2 = n3 instanceof v.Worksheet; u2 < e3 && o2 > 0; ) i3 = t4[t4.length - 1] instanceof v.Worksheet, (s2 && i3 || !s2 && !i3) && u2++, a2.push(t4.pop());
            for (t4.push(n3), n3.h_r ? n3.h_r(t4.length - 1) : n3.E0i = t4.length - 1; a2.length > 0; ) r2 = a2.pop(), t4.push(r2), r2.h_r ? r2.h_r(t4.length - 1) : r2.E0i = t4.length - 1;
          }, t3.prototype.bse = function(t4, n3) {
            var e3, i3, r2;
            for (e3 = 0; e3 < t4.length; e3++) if (t4[e3].name() === n3) {
              for (i3 = e3; i3 < t4.length - 1; i3++) (r2 = t4[i3 + 1]).h_r ? r2.h_r(r2.E0i - 1) : r2.E0i = r2.E0i - 1, t4[i3] = r2;
              t4.length = t4.length - 1;
              break;
            }
          }, t3.prototype.A2 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2 = this;
            if (e3 || (e3 = h2.S2(h2.T2(t4), i3)), a2 = (o2 = h2.sheets).length, e3.name()) {
              for (u2 = h2.qv(), r2 = 0; r2 < u2.length; r2++) if (u2[r2].name() === e3.name()) throw jt().Exp_NotSupported;
            } else e3.ub(h2.T2(t4));
            h2.v3(e3), s2 = h2.getActiveSheet(), c2 = h2._2, h2.$Dr({ type: "addSheet", sheet: e3, index: t4 }), h2.gse(o2, e3, a2 - t4), e3.pM(h2), h2.pse(h2.dse, e3, a2 - t4), h2.f3(), f2 = en(h2), 1 === (a2 = o2.length) ? (h2._vp && e3.hg(h2._vp), h2.d_r(0)) : (c2 < 0 && h2.w2 && (c2 = h2.w2.N2(c2)), h2.d_r(c2)), (l2 = h2.getActiveSheet()) !== s2 && (s2 && s2.L0(false), l2 && (h2.sdr = en(h2) !== f2, h2.l3(l2, n3, 1 === a2, true)), h2.Cg()), h2.w2 && (h2.w2.om < 0 && (h2.w2.om = h2._2), h2.w2.repaint());
          }, t3.prototype.yb = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2;
            if (e3) {
              for (a2 = (o2 = (i3 = this).mp).length, u2 = i3.qv(), r2 = 0; r2 < u2.length; r2++) if (u2[r2].name() === e3.name()) throw jt().Exp_NotSupported;
              i3.v3(e3), s2 = i3.getActiveSheetTab(), c2 = i3.jb, i3.gse(o2, e3, a2 - t4), i3.pse(i3.dse, e3, a2 - t4), e3.pM(i3), f2 = en(i3), a2 = o2.length, i3.h3(), 1 === a2 ? (i3._vp && e3.hg(i3._vp), i3.jb = 0) : (c2 < 0 && i3.w2 && (c2 = i3.w2.N2(c2)), i3.jb = c2 >= t4 ? c2 + 1 : c2), (l2 = i3.getActiveSheetTab()) !== s2 && (s2 && s2.L0(false), l2 && (i3.sdr = en(i3) !== f2, i3.d3(l2, n3, 1 === a2, true)), i3.Cg()), i3.w2 && (i3.w2.om < 0 && (i3.w2.om = i3.jb), i3.w2.repaint());
            }
          }, t3.prototype.removeSheet = function(t4) {
            var n3, e3 = this.getActiveSheet();
            this.m3(t4, 2), (n3 = this.getActiveSheet()) && n3 !== e3 && n3.b2(true, false);
          }, t3.prototype.removeSheetTab = function(t4) {
            var n3, e3;
            "string" == typeof t4 && (t4 = this.getSheetTabIndex(t4)), n3 = this.getActiveSheetTab(), this.g3(t4, 2), (e3 = this.getActiveSheet()) && e3 !== n3 && e3.b2(true, false);
          }, t3.prototype.m3 = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2;
            if (void 0 === e3 && (e3 = false), a2 = (o2 = this).sheets, u2 = o2.Lp, s2 = o2.w2, c2 = a2.length, !e3 && (isNaN(t4) || t4 < 0 || t4 >= c2)) throw new Error(jt().Exp_IndexOutOfRange);
            if (f2 = en(o2), l2 = o2._2, h2 = t4 <= o2._2 || t4 === c2 - 1, d2 = o2.getActiveSheet() || (null === (i3 = o2.getActiveSheetTab()) || void 0 === i3 ? void 0 : i3.getSheet()), t4 < o2._2 && o2._2--, v2 = o2.v_r(t4), !e3 && o2.$Dr({ type: "removeSheet", sheet: v2, index: t4 }), 0 === (c2 = a2.length)) o2.d_r(-1);
            else if (o2._2 >= c2 && s2) o2.d_r(s2.Vm(c2));
            else {
              for (p2 = void 0, p2 = Math.max(0, o2._2); p2 < c2; p2++) if (a2[p2].visible() === m.SheetTabVisible.visible) {
                o2.d_r(p2);
                break;
              }
              p2 >= c2 && s2 && o2.d_r(s2.Vm(c2));
            }
            o2.f3(), (h2 || l2 !== o2._2) && d2 !== (g2 = a2[o2._2]) && (d2 && d2.L0(false), g2 && (!e3 && Ht(o2, d2), o2.sdr = en(o2) !== f2, o2.l3(g2, n3, false, true), !e3 && Vt(o2, d2, g2), !e3 && this.$Dr({ type: "setActiveSheetId", id: g2.jKe() }))), o2.g_r(v2, t4), !e3 && (null === (r2 = o2.sheetTabStyles) || void 0 === r2 ? void 0 : r2.xTe[v2.name()]) && o2.sheetTabStyles.NTe(v2.name()), v2.L0(true, -1 !== o2._2), A && !u2.x3 && o2.sheets && o2.sheets.length > 0 && (b2 = o2.sheets[0], u2.initParserContext(b2.Uw())), s2 && (s2.om >= c2 ? o2.startSheetIndex(s2.Vm(c2)) : s2.om < 0 ? o2.startSheetIndex(s2.N2(-1)) : o2.Cg());
          }, t3.prototype.v_r = function(t4) {
            var n3 = this, e3 = n3.sheets, i3 = e3[t4];
            return i3.bC(), e3.splice(t4, 1), n3.bse(n3.dse, i3.name()), i3;
          }, t3.prototype.g_r = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Lp;
            if (p2) {
              if (p2.suspend(), t4.b3().p3(), i3 = (e3 = nn(t4)).map((function(t5) {
                return t5.id;
              })), r2 = {}, o2 = p2.y3) {
                for (u2 in a2 = t4.b3().getSource().id, o2) if (o2.hasOwnProperty(u2)) for (r2[u2] = [], s2 = o2[u2]; s2; ) a2 !== (c2 = s2.w3 && s2.w3.getSource().id) && -1 === i3.indexOf(c2) && r2[u2].push(s2), s2 = s2.C3;
              }
              for (u2 in (f2 = t4.Uw()).S3 = n3, p2.removeSource(f2), l2 = t4.T3, p2.removeSource(l2), h2 = t4.A3, p2.removeSource(h2), e3.forEach((function(t5) {
                p2.removeSource(t5);
              })), r2) if (r2.hasOwnProperty(u2)) for (s2 = r2[u2], d2 = 0; d2 < s2.length; d2++) p2.I3(s2[d2], parseInt(u2, 10));
              p2.resume(false);
            }
          }, t3.prototype.g3 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.mp, d2 = l2.Lp, v2 = l2.w2, p2 = h2.length;
            if (isNaN(t4) || t4 < 0 || t4 >= p2) throw new Error(jt().Exp_IndexOutOfRange);
            if (e3 = en(l2), i3 = l2.jb, r2 = t4 <= l2.jb || t4 === p2 - 1, o2 = l2.getActiveSheetTab(), t4 < l2.jb && l2.jb--, (a2 = h2[t4]).bC(), h2.splice(t4, 1), l2.bse(l2.dse, a2.name()), 0 === (p2 = h2.length)) l2.jb = -1;
            else if (l2.jb >= p2) l2.jb = v2.Vm(p2);
            else {
              for (u2 = void 0, u2 = Math.max(0, l2.jb); u2 < p2; u2++) if (h2[u2].visible() === m.SheetTabVisible.visible) {
                l2.jb = u2;
                break;
              }
              u2 >= p2 && (l2.jb = v2.Vm(p2));
            }
            l2.h3(), (r2 || i3 !== l2.jb) && o2 !== (s2 = h2[l2.jb]) && (o2 && o2.L0(false), s2 && (l2.sdr = en(l2) !== e3, l2.d3(s2, n3, false, true))), d2 && (d2.suspend(), (f2 = (c2 = a2.Mf).Uw()) && (f2.S3 = t4), [f2, c2.T3, c2.A3, c2.Dnn].forEach((function(t5) {
              t5 && d2.removeSource(t5);
            })), d2.resume(false)), l2.sheetTabStyles && l2.sheetTabStyles[a2.name()] && l2.sheetTabStyles.NTe(a2.name()), a2.L0(true, -1 !== l2.jb), v2 && (v2.om >= p2 ? l2.startSheetIndex(v2.Vm(p2)) : v2.om < 0 ? l2.startSheetIndex(v2.N2(-1)) : l2.Cg());
          }, t3.prototype.clearSheets = function() {
            var t4, n3, e3, i3 = this, r2 = i3.sheets, o2 = i3.Lp, a2 = i3.w2;
            for (t4 = 0, n3 = r2; t4 < n3.length; t4++) (e3 = n3[t4]).bC(), e3.L0(true);
            r2.splice(0, r2.length), this.$Dr({ type: "clearSheets" }), i3.dse = i3.yse(i3.mp), o2 && o2.clearSource(), i3.d_r(-1), a2 && (a2.om = -1, a2.repaint());
          }, t3.prototype.clearSheetTabs = function() {
            var t4, n3, e3, i3 = this, r2 = i3.mp, o2 = i3.w2;
            for (t4 = 0, n3 = r2; t4 < n3.length; t4++) (e3 = n3[t4]).bC(), e3.L0(true);
            r2.splice(0, r2.length), i3.dse = i3.yse(i3.sheets), i3.jb = -1, o2 && (o2.om = -1, o2.repaint());
          }, t3.prototype.getSheet = function(t4) {
            var n3 = this.sheets;
            return t4 >= 0 && t4 < n3.length ? n3[t4] : B;
          }, t3.prototype.getSheetTab = function(t4) {
            return this.Ofe(t4);
          }, t3.prototype.Ofe = function(t4) {
            var n3, e3, i3, r2 = this.mp;
            if ("number" == typeof t4) return t4 >= 0 && t4 < r2.length ? r2[t4] : B;
            if ("string" == typeof t4) {
              for (n3 = 0, e3 = r2; n3 < e3.length; n3++) if ((i3 = e3[n3]).name() === t4) return i3;
            }
            return B;
          }, t3.prototype.getSheetFromName = function(t4) {
            return this._f(t4);
          }, t3.prototype._f = function(t4) {
            var n3, e3, i3, r2 = this.sheets;
            for (n3 = 0, e3 = r2; n3 < e3.length; n3++) if ((i3 = e3[n3]).name() === t4) return i3;
            return B;
          }, t3.prototype.c_r = function(t4) {
            var n3, e3, i3, r2 = this.sheets;
            for (n3 = 0, e3 = r2; n3 < e3.length; n3++) if ((i3 = e3[n3]).jKe() === t4) return i3;
            return B;
          }, t3.prototype.m_r = function(t4) {
            var n3, e3, i3 = this.sheets;
            for (n3 = 0; n3 < i3.length; n3++) if ((e3 = i3[n3]).jKe() === t4) return n3;
            return -1;
          }, t3.prototype.getSheetIndex = function(t4) {
            var n3, e3 = this.sheets;
            for (n3 = 0; n3 < e3.length; n3++) if (e3[n3].name() === t4) return n3;
            return B;
          }, t3.prototype.getSheetTabIndex = function(t4) {
            var n3, e3 = this.mp;
            for (n3 = 0; n3 < e3.length; n3++) if (e3[n3].name() === t4) return n3;
            return B;
          }, t3.prototype.getSheetPosition = function(t4) {
            var n3, e3 = this.dse;
            for (n3 = 0; n3 < e3.length; n3++) if (e3[n3].name() === t4) return n3;
            return -1;
          }, t3.prototype.getSheetCount = function() {
            return this.sheets.length;
          }, t3.prototype.getSheetTabCount = function() {
            return this.mp.length;
          }, t3.prototype.setSheetCount = function(t4) {
            var n3 = this, e3 = n3.getActiveSheet(), i3 = n3.getActiveSheetTab();
            n3.Xp(t4, 2), n3.a3(e3), n3.u3(i3);
          }, t3.prototype.Xp = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = "object" == typeof t4, u2 = a2 ? Object.keys(t4).length : t4, s2 = a2 ? Object.keys(t4) : null;
            if (u2 < 0) throw jt().Exp_ArgumentOutOfRange;
            if (0 === u2 && o2.clearSheets(), u2 < (e3 = o2.sheets.length)) for (i3 = e3 - 1; i3 >= u2; i3--) o2.m3(i3, n3);
            else if (u2 > e3) for (i3 = e3; i3 < u2; i3++) r2 = a2 ? t4[s2[i3]].type : B, o2.A2(i3, n3, null, r2);
          }, t3.prototype.hp = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, b2 = t4.sheetTabCount;
            if (_(b2)) {
              if (b2 < 0) throw jt().Exp_ArgumentOutOfRange;
              if (0 === b2) return void g2.clearSheetTabs();
              for (e3 = t4.sheetTabs, i3 = t4.sheetCount, r2 = g2.mp.length, o2 = [], a2 = 0, u2 = Object.keys(e3); a2 < u2.length; a2++) (c2 = e3[s2 = u2[a2]]) && (f2 = c2.index - i3, o2.splice(f2, 0, c2));
              if (b2 < r2) for (l2 = r2 - 1; l2 >= b2; l2--) g2.g3(l2, n3);
              for (l2 = 0; l2 < o2.length; l2++) c2 = o2[l2], h2 = g2.mp[l2], d2 = "number" == typeof c2.sheetType ? c2.sheetType : m.SheetType.tableSheet, v2 = i3 + l2, h2 ? (p2 = h2._gi) !== d2 && (g2.g3(v2, n3), h2 = g2.bb(B, d2), g2.yb(v2, n3, h2)) : (h2 = g2.bb(B, d2), g2.yb(v2, n3, h2));
            }
          }, t3.prototype.bb = function(n3, e3) {
            var i3 = { name: n3, type: e3, sheetTab: B };
            return t3.et(this, "createSheetTab", i3, (function() {
              return i3.sheetTab !== B;
            })), i3.sheetTab;
          }, t3.prototype.dataManager = function() {
            var t4 = this, n3 = t4.N3;
            return !n3 && b.DataManager && (n3 = t4.N3 = new b.DataManager(B, t4.Lp)), n3;
          }, t3.prototype.setDataManager = function(t4) {
            this.N3 = t4;
          }, t3.prototype.bind = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2, f2, l2 = this, h2 = l2.sheets;
            for (l2.rM && l2.rM.push({ type: t4, data: n3, fn: e3 }), (0, a.GC$)(l2.oM).bind(t4 + q, n3, e3), i3 = 0, r2 = h2; i3 < r2.length; i3++) (o2 = r2[i3]).bind(t4, n3, e3);
            for (s2 = 0, c2 = u2 = l2.mp; s2 < c2.length; s2++) (f2 = c2[s2]).bind(t4, n3, e3);
          }, t3.prototype.unbind = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.sheets, v2 = h2.rM;
            if (v2) for (e3 = v2.length - 1; e3 >= 0; e3--) ((i3 = v2[e3]).type === t4 || h2.k3(i3.type, t4)) && v2.splice(e3, 1);
            for ((0, a.GC$)(h2.oM).unbind(t4 + q, n3), r2 = 0, o2 = d2; r2 < o2.length; r2++) (u2 = o2[r2]).unbind(t4, n3);
            for (c2 = 0, f2 = s2 = h2.mp; c2 < f2.length; c2++) (l2 = f2[c2]).unbind(t4, n3);
          }, t3.prototype.k3 = function(t4, n3) {
            return 0 === n3.indexOf(".") && t4.substring(t4.length - n3.length) === n3;
          }, t3.prototype.unbindAll = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2 = this, c2 = s2.sheets;
            for (s2.rM.length = 0, (0, a.GC$)(s2.oM).unbind(q), t4 = 0, n3 = c2; t4 < n3.length; t4++) (e3 = n3[t4]).unbindAll();
            for (r2 = 0, o2 = i3 = s2.mp; r2 < o2.length; r2++) (u2 = o2[r2]).unbindAll();
          }, t3.prototype.D3 = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2, f2, l2 = this, h2 = l2.sheets;
            for (l2.rM.push({ type: t4, data: n3, fn: e3 }), (0, a.GC$)(l2.oM).bind(t4 + $, n3, e3), i3 = 0, r2 = h2; i3 < r2.length; i3++) (o2 = r2[i3]).D3(t4, n3, e3);
            for (s2 = 0, c2 = u2 = l2.mp; s2 < c2.length; s2++) (f2 = c2[s2]).D3(t4, n3, e3);
          }, t3.prototype._3 = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.sheets, v2 = h2.rM;
            for (e3 = 0; e3 < v2.length; e3++) ((i3 = v2[e3]).type === t4 || h2.k3(i3.type, t4)) && v2.splice(e3, 1);
            for ((0, a.GC$)(h2.oM).unbind(t4 + $, n3), r2 = 0, o2 = d2; r2 < o2.length; r2++) (u2 = o2[r2])._3(t4, n3);
            for (c2 = 0, f2 = s2 = h2.mp; c2 < f2.length; c2++) (l2 = f2[c2])._3(t4, n3);
          }, t3.prototype.E3 = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2 = this, c2 = s2.sheets;
            for (s2.rM.length = 0, (0, a.GC$)(s2.oM).unbind($), t4 = 0, n3 = c2; t4 < n3.length; t4++) (e3 = n3[t4]).E3();
            for (r2 = 0, o2 = i3 = s2.mp; r2 < o2.length; r2++) (u2 = o2[r2]).E3();
          }, t3.prototype.ki = function(t4, n3) {
            0 === this.vf && (0, a.GC$)(this.oM).trigger(t4, n3);
          }, t3.prototype.pb = function(t4, n3) {
            (0, a.GC$)(this.oM).trigger(t4, n3);
          }, t3.prototype.j3 = function(t4, n3, e3, i3) {
            this.ki(u.Events.ButtonClicked, { sheet: t4, sheetName: t4.name(), row: n3, col: e3, sheetArea: i3 });
          }, t3.prototype.v3 = function(t4) {
            var n3, e3, i3, r2 = this.rM;
            for (n3 = 0, e3 = r2; n3 < e3.length; n3++) i3 = e3[n3], t4.bind(i3.type, i3.data, i3.fn);
          }, t3.prototype.suspendEvent = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.sheets;
            for (u2.vf++, t4 = 0, n3 = s2; t4 < n3.length; t4++) (e3 = n3[t4]).suspendEvent();
            for (r2 = 0, o2 = i3 = u2.mp; r2 < o2.length; r2++) (a2 = o2[r2]).suspendEvent();
          }, t3.prototype.resumeEvent = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.sheets;
            for (u2.vf--, u2.vf < 0 && (u2.vf = 0), t4 = 0, n3 = s2; t4 < n3.length; t4++) (e3 = n3[t4]).resumeEvent();
            for (r2 = 0, o2 = i3 = u2.mp; r2 < o2.length; r2++) (a2 = o2[r2]).resumeEvent();
          }, t3.prototype.focus = function(t4) {
            var n3, e3;
            false === t4 ? u.hi.F1(B) : (n3 = this.getActiveSheet()) ? n3.Zg() : (e3 = this.getActiveSheetTab()) && e3.Zg();
          }, t3.prototype.Xm = function() {
            return this.SC > 2007 ? 15 : 18;
          }, t3.prototype.NC = function() {
            return this.SC > 2007 ? 22 : this.Xm();
          }, t3.prototype.ZM = function(t4) {
            var n3, e3, i3 = this, r2 = t4 ? i3.kw : i3.Dw, o2 = t4 ? i3._vScrollbar : i3._hScrollbar, a2 = i3.options.scrollbarAppearance === m.ScrollbarAppearance.mobile;
            if (r2 && o2 && a2) switch (n3 = i3.ib, e3 = o2.O3) {
              case m.ScrollbarState.hide:
                n3.$y(t4);
                break;
              case m.ScrollbarState.show:
                n3.Iw(r2), n3._w(t4);
                break;
              case m.ScrollbarState.active:
                n3.Iw(r2), n3._w(t4), n3.xw(r2);
                break;
              case m.ScrollbarState.inactive:
                n3.Nw(r2), n3.$y(t4);
            }
          }, t3.prototype.Zv = function() {
            return this.SC > 2007 ? 28 : this.Xm();
          }, t3.prototype.Tw = function(t4, n3, e3, i3, r2, o2) {
            var u2, s2, c2 = "auto", f2 = this;
            o2 = !!f2.R3 && o2, f2.R3 || (u2 = (0, a.getHostMaxZIndex)(f2.Ti) + 1, s2 = k(nt), r2 ? (0, a.GC$)(s2).addClass(r2) : (0, a.GC$)(s2).addClass("gc-spread-toolTip"), (0, a.GC$)(s2).addClass("ui-state-default ui-widget-content btn-default").css({ position: "fixed", padding: "0px 3px 0px 3px", font: D("normal normal normal 11pt calibri"), "box-shadow": "1px 2px 5px rgba(0,0,0,0.4)", "white-space": "pre-wrap", "z-index": u2, top: 0 }).width(c2).height(c2).appendTo(F.body), f2.R3 = s2), f2.ny(t4, n3, e3, i3, o2);
          }, t3.prototype.ny = function(t4, n3, e3, i3, r2) {
            var o2, u2, s2, c2, f2, l2 = this, h2 = l2.jg();
            if (h2 && (u2 = l2.R3)) {
              if (s2 = (0, a.GC$)(u2), t4 ? (s2.html(t4), s2.show()) : s2.hide(), r2) return;
              i3 || (h2 instanceof v.Worksheet || (h2 = null === (o2 = h2.getSheet) || void 0 === o2 ? void 0 : o2.call(h2)), h2 && (n3 += (f2 = (c2 = h2.Dg()).getBoundingClientRect()).left, e3 += f2.top)), s2.css("left", n3), s2.css("top", e3);
            }
          }, t3.prototype.iy = function() {
            var t4 = this, n3 = t4.R3;
            n3 && ((0, a.GC$)(n3).remove(), t4.R3 = B);
          }, t3.prototype.FM = function() {
            var n3, e3, i3, r2 = this, a2 = r2.qv();
            for (u.Be.zl(), r2.invalidateLayout(), n3 = 0, e3 = a2.length; n3 < e3; n3++) (i3 = a2[n3]).FM();
            jt(), o.Common.B3(), g && p.sR(), r2.repaint(), t3.et(r2, "onCultureChanged");
          }, t3.prototype.getTab = function() {
            return this.w2;
          }, t3.prototype.changeSheetIndex = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.getSheetPosition(t4), a2 = r2.getTab(), u2 = r2.getSheetCount() + r2.getSheetTabCount();
            return !("number" != typeof n3 || -1 === o2 || o2 === n3 || n3 < 0 || n3 >= u2 || n3 % 1 != 0 || r2.L3(t4)) && ((e3 = r2.jg().name()) !== t4 ? (r2.suspendPaint(), r2.setActiveSheetOrSheetTabIndex(o2, 2), r2.o2(o2, n3), i3 = r2.getSheetPosition(e3), r2.setActiveSheetOrSheetTabIndex(i3, 2), r2.resumePaint()) : (r2.o2(o2, n3), a2.scrollTabToActive(o2, n3)), true);
          }, t3.prototype.changeSheetPosition = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.getSheetPosition(t4), a2 = r2.getTab(), u2 = r2.getSheetCount() + r2.getSheetTabCount();
            return !("number" != typeof n3 || -1 === o2 || o2 === n3 || n3 < 0 || n3 >= u2 || n3 % 1 != 0 || r2.L3(t4)) && ((e3 = r2.jg().name()) !== t4 ? (r2.suspendPaint(), r2.setActiveSheetOrSheetTabIndex(o2, 2), r2._se(o2, n3), i3 = r2.getSheetPosition(e3), r2.setActiveSheetOrSheetTabIndex(i3, 2), r2.resumePaint()) : (r2._se(o2, n3), a2.scrollTabToActive(o2, n3)), true);
          }, t3.prototype.L3 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.sheets;
            for (n3 = 0, e3 = c2; n3 < e3.length; n3++) if ((i3 = e3[n3]).name() === t4) return false;
            for (o2 = 0, a2 = r2 = s2.mp; o2 < a2.length; o2++) if ((u2 = a2[o2]).name() === t4) return false;
            return true;
          }, t3.prototype.o2 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = -1, l2 = c2.qv(), h2 = l2[t4], d2 = c2.sheets.length;
            if (tn(c2)) {
              if (t4 > n3) if (t4 >= d2 && d2 > n3) l2.splice(t4, 1), l2.splice(d2, 0, h2), f2 = d2;
              else {
                for (e3 = t4; e3 > n3; e3--) l2[e3] = l2[e3 - 1];
                l2[n3] = h2, f2 = n3;
              }
              else if (t4 < n3) if (t4 < d2 && d2 <= n3) l2.splice(d2, 0, h2), l2.splice(t4, 1), f2 = d2 - 1;
              else {
                for (e3 = t4; e3 < n3; e3++) l2[e3] = l2[e3 + 1];
                l2[n3] = h2, f2 = n3;
              }
            } else if (i3 = c2.getSheetTabCount(), r2 = 0, o2 = 0, a2 = void 0, u2 = I(h2._gi), 0 <= t4 && t4 < d2 && 0 <= n3 && n3 < d2 || d2 <= t4 && t4 < d2 + i3 && d2 <= n3 && n3 < d2 + i3) {
              for (e3 = 0; e3 < l2.length; e3++) if (s2 = l2[e3], I(s2._gi) ? r2++ : o2++, u2 && r2 - 1 === n3 || !u2 && o2 - 1 === n3) {
                a2 = e3;
                break;
              }
              if (t4 > a2) {
                for (e3 = t4; e3 > a2; e3--) l2[e3] = l2[e3 - 1];
                l2[a2] = h2, f2 = a2;
              } else if (t4 < a2) {
                for (e3 = t4; e3 < a2; e3++) l2[e3] = l2[e3 + 1];
                l2[a2] = h2, f2 = a2;
              }
            }
            c2.P3(l2), c2.setActiveSheetOrSheetTabIndex(f2, 2);
          }, t3.prototype._se = function(t4, n3) {
            var e3 = this, i3 = e3.qv(), r2 = i3[t4], o2 = this.p_r(t4, n3);
            !r2._gi && r2.jKe && e3.$Dr({ type: "reorderSheet", sheetId: r2.jKe(), tarPosition: n3, sourceIndex: t4 }), e3.setActiveSheetOrSheetTabIndex(o2, 2);
          }, t3.prototype.p_r = function(t4, n3) {
            var e3, i3 = this, r2 = -1, o2 = i3.qv(), a2 = o2[t4];
            if (t4 > n3) {
              for (e3 = t4; e3 > n3; e3--) o2[e3] = o2[e3 - 1];
              o2[n3] = a2, r2 = n3;
            } else if (t4 < n3) {
              for (e3 = t4; e3 < n3; e3++) o2[e3] = o2[e3 + 1];
              o2[n3] = a2, r2 = n3;
            }
            return i3.P3(o2), r2;
          }, t3.prototype.F3 = function(t4, n3) {
            t4 ? this.setActiveSheetTab(n3) : this.setActiveSheet(n3);
          }, t3.prototype.setActiveSheetOrSheetTab = function(t4) {
            var n3 = this.getSheetIndex(t4), e3 = false;
            I(n3) && (n3 = this.getSheetTabIndex(t4), e3 = true), I(n3) || this.F3(e3, t4);
          }, t3.prototype.isFocus = function() {
            var t4 = u.hi.ai();
            return t4 && t4.getParent && t4.getParent() === this;
          }, t3.prototype.clone = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2 = this, b2 = g2.Gm(t4);
            if (I(i3) && (i3 = true), !(I(b2) || I(e3) || g2.Gm(e3)) && (a2 = b2 instanceof v.Worksheet, g2.suspendPaint(), g2.suspendCalcService(), b2.canClone)) {
              if (u2 = JSON.stringify(b2.toJSON({ newWorkSheetName: e3 })), n3 < 0 && (n3 = 0), null === (r2 = g2.suspendOp) || void 0 === r2 || r2.call(g2), a2 ? ((s2 = g2.S2(e3)).Uw().G3 = true, g2.oGr(n3, s2)) : ((s2 = g2.bb(e3, b2._gi)).Mf && (s2.Mf.Uw().G3 = true), g2.yb(n3, 2, s2)), g2.getSheetPosition(e3) !== n3 && g2.changeSheetPosition(e3, n3), s2.fromJSON(JSON.parse(u2)), null === (o2 = g2.resumeOp) || void 0 === o2 || o2.call(g2), g2.$Dr({ type: "addSheet", sheet: s2, index: n3 }), g2.setActiveSheetOrSheetTab(s2.name()), a2) {
                for (f2 = b2.tables.U3, l2 = s2.tables.U3, h2 = void 0, d2 = 0; d2 < f2.length; d2++) f2.get(d2).H3 && i3 && !l2.get(d2).NTr() && (c2 = f2.get(d2).z3(), l2.get(d2).V3(c2)), h2 = l2.get(d2).range(), s2.Q1i && s2.Q1i(h2.row, h2.col, h2.rowCount, h2.colCount, m.SheetArea.viewport);
                (c2 = b2.H3._dataSource) && i3 && (p2 = s2.H3).bind(c2);
              } else (c2 = b2.Mf && b2.Mf.H3._dataSource) && i3 && (p2 = s2.Mf.H3).bind(c2);
              return g2.resumeCalcService(false), g2.resumePaint(), s2;
            }
          }, t3.prototype.fM = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = t4.command;
            0 !== t4.vM && a2.hM || (n3 = a2.sheetName ? (0, u._f)(o2, a2.sheetName) : (0, u.jf)(o2)) && (e3 = n3.getActiveRowIndex(), i3 = n3.getActiveColumnIndex(), r2 = n3.getSelections(), a2._oldPosition = { _selections: r2, _activeCell: { row: e3, col: i3 } });
          }, t3.prototype.mM = function(n3) {
            var e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = this, S2 = n3.command;
            if ((!S2 || !S2.sGr) && (o2 = (r2 = null != (i3 = S2._oldPosition) ? i3 : {})._activeCell, a2 = r2._selections, s2 = r2.J3, l2 = true, h2 = true, (f2 = (c2 = (0, u.jf)(C2)) && c2.name()) !== S2.sheetName ? ((0, u.Ef)(C2, S2.sheetName), c2 = (0, u.jf)(C2)) : o2 && c2 && o2.row === c2.ui && o2.col === c2.ci && ((d2 = null === (e3 = c2.Ut) || void 0 === e3 ? void 0 : e3.K_().find(o2.row, o2.col)) || (l2 = false, v2 = c2.getSelections(), (0, u.areSelectionsEqual)(v2, a2) && (h2 = false))), !I(i3) && c2)) {
              if (c2.suspendPaint(), p2 = i3.X3, !I(o2) && l2 && c2.t4(o2.row, o2.col, B, B, B, true), !I(a2) && h2) if (1 === (g2 = a2.length)) c2.setSelection(a2[0].row, a2[0].col, a2[0].rowCount, a2[0].colCount);
              else for (m2 = 0; m2 < g2; m2++) b2 = a2[m2].row, y2 = a2[m2].col, w2 = a2[m2].rowCount, M2 = a2[m2].colCount, c2.n4(b2, y2, w2, M2);
              if (t3.et(C2, "onCommandExecuting", c2), !I(s2)) {
                for (m2 = 0; m2 < s2.length; m2++) s2[m2].isSelected && s2[m2].isSelected(true);
                p2 || c2.e4();
              }
              c2.showCell(o2.row, o2.col, 3, 3), c2.resumePaint();
            }
          }, t3.prototype.changeSelectionInCommandExecuting = function(t4, n3, e3, i3, r2) {
            if (t4 && t4._oldPosition) {
              var o2 = t4._oldPosition, a2 = o2._activeCell;
              I(a2) || (I(n3) || (a2.row = n3), I(e3) || (a2.col = e3)), I(i3) || (o2._selections = i3), I(r2) || (o2.J3 = r2);
            }
          }, t3.prototype.h3 = function() {
            var t4 = this.getActiveSheet();
            t4 && (t4.L0(false), t4.b2(false, false)), this.d_r(-1);
          }, t3.prototype.f3 = function() {
            var t4 = this.getActiveSheetTab();
            t4 && (t4.L0(false), t4.b2(false, false)), this.jb = -1;
          }, t3.prototype.yse = function(t4) {
            var n3, e3, i3 = [];
            for (n3 = 0; n3 < t4.length; n3++) (e3 = t4[n3]).h_r ? e3.h_r(n3) : e3.E0i = n3, i3[n3] = e3;
            return i3;
          }, t3.prototype.vse = function(t4, n3) {
            var e3, i3, r2 = [];
            for (e3 = 0; e3 < t4.length; e3++) r2.push(t4[e3]);
            for (e3 = 0; e3 < n3.length; e3++) r2.push(n3[e3]);
            for (r2.sort((function(t5, n4) {
              return t5.E0i - n4.E0i;
            })), e3 = 0; e3 < r2.length; e3++) (i3 = r2[e3]).h_r ? i3.h_r(e3) : i3.E0i = e3;
            return r2;
          }, t3.prototype.qv = function() {
            var t4 = this;
            return t4.sheets.length + t4.mp.length !== t4.dse.length && (t4.dse = [].concat(t4.sheets).concat(t4.mp)), t4.dse;
          }, t3.prototype.P3 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.getActiveSheet(), c2 = u2.getActiveSheetTab();
            for (s2 ? n3 = s2.name() : c2 && (e3 = c2.name()), u2.sheets.length = 0, u2.mp.length = 0, i3 = u2.sheets, r2 = u2.mp, o2 = 0; o2 < t4.length; o2++) (a2 = t4[o2]).h_r ? a2.h_r(o2) : a2.E0i = o2, a2 instanceof v.Worksheet ? i3.push(a2) : r2.push(a2);
            n3 ? u2.d_r(u2.getSheetIndex(n3)) : e3 && (u2.jb = u2.getSheetTabIndex(e3)), u2.dse = t4;
          }, t3.prototype.Gm = function(t4) {
            return this._f(t4) || this.Ofe(t4);
          }, t3.prototype.e2 = function(t4) {
            return this.qv()[t4];
          }, t3.prototype.getActiveSheetOrSheetTab = function() {
            return this.jg();
          }, t3.prototype.jg = function() {
            return this.getActiveSheet() || this.getActiveSheetTab();
          }, t3.prototype.I2 = function(t4, n3, e3, i3) {
            var r2 = this.e2(t4);
            r2 && (r2 instanceof v.Worksheet ? this.vb(r2.name(), n3, e3, i3) : this.s3(r2.name(), n3, e3, i3));
          }, t3.prototype.setActiveSheetOrSheetTabIndex = function(t4, n3, e3, i3) {
            var r2 = this.getActiveSheet(), o2 = this.getActiveSheetTab();
            this.I2(t4, I(n3) ? 2 : n3, e3, i3), this.a3(r2), this.u3(o2);
          }, t3.prototype.getActiveSheetOrSheetTabIndex = function() {
            return this.ep();
          }, t3.prototype.ep = function() {
            var t4 = this.jg();
            return t4 ? t4.E0i : -1;
          }, t3.prototype.i4 = function() {
            var t4 = [].concat(this.sheets);
            return this.mp.forEach((function(n3) {
              n3.Mf && t4.push(n3.Mf);
            })), t4;
          }, t3.prototype.r4 = function() {
            var t4, n3, e3 = this, i3 = e3.sheets, r2 = i3.length, o2 = [];
            for (t4 = 0; t4 < r2; t4++) (n3 = i3[t4]) && o2.push(n3.name());
            return o2;
          }, t3.prototype.Ese = function(t4) {
            var n3 = this.getSheetIndex(t4);
            return I(n3) && (n3 = this.getSheetTabIndex(t4)), n3;
          }, t3.prototype.d_r = function(t4) {
            var n3, e3;
            this._2 !== t4 && (this._2 = t4, e3 = (n3 = this.sheets[t4]) ? n3.jKe() : "", this.$Dr({ type: "setActiveSheetId", id: e3 }));
          }, t3.prototype.Hro = function() {
            return false;
          }, t3.prototype.$Dr = function(n3, e3) {
            e3 && (n3.changingContext = e3), t3.et(this, "modelChanged", n3);
          }, t3.prototype.THr = function(n3) {
            return n3.changingContext = {}, t3.et(this, "modelChanging", n3), n3.changingContext;
          }, t3.prototype.CYr = function(t4) {
            this.$Dr(Ft({ type: "setWorkbookProperty" }, t4));
          }, t3.Pp = Rt, t3.Jp = 1, t3.Gp = 0, t3;
        })(), n2.Workbook = Lt, (0, u.$e)(Lt), Lt.prototype.nextControl = N("nextControl", B), Lt.prototype.previousControl = N("previousControl", B);
      }, "./dist/core/workbook/workbookpanelex.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt;
        function yt(t3) {
          t3.preventDefault ? t3.preventDefault() : t3.returnValue = false;
        }
        function wt(t3, n3) {
          var e3 = t3.get(0);
          e3 && (e3.style[n3] = "");
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.x4 = n2.YM = n2.ScrollOrientation = void 0, i2 = e2("./dist/core/util/domUtil.js"), r = e2("./dist/core/util/common.js"), o = e2("Common"), a = e2("./dist/core/core.enum.js"), u = e2("./dist/core/workbook/sheettabbase.js"), s = o.Common.lt.ht, c = null, f = r.mt.Tt, l = r.mt.vi, h = r.mt.En, d = r.mt.p0, v = document, p = window, g = Math.round, m = Math.ceil, b = "gc-scroll-container", y = "gc-scroll-corner-all", w = "gc-scroll-arrow", M = "gc-scrollbar-wrapper", C = "gc-scroll-bar", S = "gc-scroll-arrowUp", T = "gc-scroll-arrowDown", x = "gc-scroll-arrowLeft", A = "gc-scroll-arrowRight", I = "gc-scroll-mobile-track", k = "gc-scroll-mobile-thumb", N = "gc-scroll-mobile-state-active", j = "gc-scrollbar-vertical", D = "gc-scrollbar-horizontal", _ = "gc-no-user-select", O = "width", E = "height", R = "gc-scrollbar-stateActive ui-state-active", L = "float", F = "left", B = "right", P = "top", G = "bottom", U = "margin-left", H = "position", V = "border", z = "padding", Y = "margin", Z = "overflow", W = "display", Q = "outline", K = "100%", J = "borderWidth", X = "boxSizing", q = "absolute", $ = "relative", tt = "margin-top", nt = "text-align", it = "mousedown" + (et = ".gcScrollbar"), rt = "mouseup" + et, ot = "mousemove" + et, at = "mouseover" + et, ut = "mouseout" + et, st = "mousewheel", ct = "inline-block", ft = "content-box", lt = "DOMMouseScroll", ht = "scroll" + et, dt = "scrollbar", (function(t3) {
          t3[t3.horizontalScroll = 0] = "horizontalScroll", t3[t3.verticalScroll = 1] = "verticalScroll";
        })(vt = n2.ScrollOrientation || (n2.ScrollOrientation = {})), pt = (function() {
          function t3(t4, n3, e3, i3, r2, o2, u2, s2, f2, l2) {
            this.updateStateFn = f2;
            var h2 = this;
            h2.o4 = s2, h2.a4 = false, h2.u4 = false, h2.s4 = c, h2.c4 = c, h2.f4 = 300, h2.l4 = 70, h2.h4 = t4, h2.Hur = l2, h2.qy(a.ScrollbarState.show), h2.YC("number" == typeof n3 ? n3 : 0), h2.ZC("number" == typeof e3 ? e3 : 0), h2.d4("number" == typeof i3 ? i3 : 0), h2._maximum("number" == typeof r2 ? r2 : 0), h2._minimum("number" == typeof o2 ? o2 : 0), h2.g4 = "number" == typeof u2 ? u2 : 1, h2.p4 = false, h2.b4 = 0, h2.y4 = h2._minimum(), h2.w4();
          }
          return t3.prototype.Uur = function(t4) {
            var n3 = this;
            n3.Hur !== t4 && (n3.Hur = t4, n3.h4 && (n3.O4.css(n3.Hur ? B : F, g(n3.b4)), n3.O4.css(n3.Hur ? F : B, "auto")));
          }, t3.prototype.oy = function() {
            return this.N4;
          }, t3.prototype.qy = function(t4) {
            t4 === a.ScrollbarState.inactive && this.a4 || (this.O3 = t4, this.updateStateFn && this.updateStateFn());
          }, t3.prototype.value = function(t4) {
            var n3, e3 = this;
            return 0 === arguments.length ? e3.y4 : ("number" == typeof t4 && t4 <= e3._maximum() && t4 >= e3._minimum() && (e3.y4 = t4, n3 = (t4 - e3._minimum()) * e3.k4, e3.scrollTo(n3, true)), e3);
          }, t3.prototype.w4 = function() {
            var t4, n3, e3, r2 = this, o2 = 0, u2 = 0, s2 = false, c2 = r2.o4, f2 = c2 === a.ScrollbarAppearance.mobile, l2 = f2 ? 0 : 2, d2 = "ui-widget ui-corner-all", v2 = r2.ZC(), p2 = r2.YC(), m2 = f2 ? 0 : v2, N2 = p2 - 2 * m2, R2 = m2, et2 = F, it2 = B, rt2 = x, ot2 = A, at2 = D, ut2 = U, st2 = "ui-button ui-state-default ui-corner-bl btn btn-default", lt2 = "ui-icon ui-icon-triangle-1-w", ht2 = "gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default", dt2 = "ui-icon ui-icon-grip-solid-vertical", vt2 = "ui-button ui-state-default ui-corner-br btn btn-default", pt2 = "ui-icon ui-icon-triangle-1-e";
            function gt2() {
              r2.N4 = h("div"), r2.D4 = (0, i2.GC$)(r2.N4), r2.D4.css([H, F, P, Z, Q, z, Y, nt], [$, 0, 0, "hidden", "none", 0, 0, "initial"]).addClass(b + " " + y + " " + d2 + " "), r2.h4 && r2.D4.css(L, F);
            }
            function mt2(t5) {
              r2._4 = i2.GC$.En("div", [H, W, J, z, Y, X], [q, ct, "1px", 0, 0, ft], w + " " + st2, t5), r2.E4 = i2.GC$.En("span", [W, V, z, Y], ["block", "none", 0, 0], rt2 + " " + lt2, r2._4);
            }
            function bt2(t5) {
              r2.j4 = i2.GC$.En("div", [H, W, X, V, z, Y], [q, ct, ft, "none", 0, 0], M + " " + M, t5);
            }
            function yt2(t5) {
              r2.O4 = i2.GC$.En("div", [], [], _ + " " + ht2 + " " + C, t5), r2.R4 = i2.GC$.En("span", [W, V, z, Y], ["block", "none", 0, 0], at2 + " " + dt2, r2.O4);
            }
            function Mt(t5) {
              r2.B4 = i2.GC$.En("div", [H, W, J, z, Y, X], [q, ct, "1px", 0, 0, ft], w + " " + vt2, t5), r2.L4 = i2.GC$.En("span", [W, V, z, Y], ["block", "none", 0, 0], ot2 + " " + pt2, r2.B4);
            }
            r2.F4 = N2, r2.h4 || (N2 = m2 = f2 ? 0 : p2, R2 = v2 - 2 * m2, et2 = P, it2 = G, rt2 = S, ot2 = T, at2 = j, ut2 = tt, st2 = "ui-button ui-state-default ui-corner-tr btn btn-default", lt2 = "ui-icon ui-icon-triangle-1-n", ht2 = "gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default", dt2 = "ui-icon ui-icon-grip-solid-horizontal", vt2 = "ui-button ui-state-default ui-corner-br btn btn-default", pt2 = "ui-icon ui-icon-triangle-1-s", r2.F4 = R2), t4 = r2.F4, n3 = r2._maximum() - r2._minimum(), r2.P4 = r2.d4() * t4 / (n3 + r2.d4()), r2.P4 > t4 && (r2.P4 = t4), r2.P4 < 10 && (r2.P4 = 10), e3 = r2.P4, r2.k4 = 0 === n3 ? 1 : (t4 - e3) / n3, r2.h4 ? (o2 = e3, u2 = m2) : (o2 = m2, u2 = e3), r2.D4 || (s2 = true, gt2()), f2 ? r2.D4.addClass(I) : r2.D4.removeClass(I), r2._4 || mt2(r2.D4), r2.j4 || bt2(r2.D4), r2.O4 ? r2.O4.removeAttr("style") : yt2(r2.j4), f2 ? r2.O4.css(H, q).addClass(k) : r2.O4.css([H, J, z, Y, X], [q, "1px", 0, 0, ft]).removeClass(k), r2.B4 || Mt(r2.D4), f2 ? (wt(r2.D4, V), wt(r2.D4, Y), r2.h4 ? (r2.D4.css([O, E], [p2, K]), r2.j4.css([et2, O, E], [m2, K, K]), r2.O4.css([et2, O, E], [r2.b4, g(o2 - l2), K])) : (r2.D4.css([O, E, Y], [K, K, 0]), r2.j4.css([et2, O, E], [m2, K, K]), r2.O4.css([et2, O, E], [r2.b4, K, g(u2 - l2)])), r2.R4.remove(), r2._4.remove(), r2.B4.remove()) : (r2.D4.css([O, E, V], [p2, v2, "none"]), r2.j4.css([et2, O, E], [m2, N2, R2]), r2.O4.css([et2, O, E], [r2.b4, g(o2 - l2), g(u2 - l2)]), r2._4.css([et2, O, E], [0, m2 - l2, m2 - l2]), r2.E4.css([O, E], [K, K]), r2.B4.css([it2, O, E], [0, m2 - l2, m2 - l2]), r2.L4.css([O, E], [K, K]), r2.R4.css([O, E, ut2], [m2 - l2, m2 - l2, Math.floor((r2.P4 - m2) / 2)]), r2.O4.append(r2.R4), r2.D4.append(r2._4), r2.D4.append(r2.B4)), s2 && r2.G4();
          }, t3.prototype.G4 = function() {
            var n3 = this;
            function e3(t4, e4) {
              t4.bind(it, (function(t5) {
                n3.U4(t5, e4);
              })).bind(rt, (function(t5) {
                n3.H4(t5, e4);
              })).bind(at, (function(t5) {
                n3.z4(t5, e4);
              })).bind(ut, (function(t5) {
                n3.V4(t5, e4);
              }));
            }
            e3(n3._4, true), e3(n3.B4, false), n3.O4.bind(it, (function(t4) {
              n3.Y4(t4);
            })).bind(ot, (function(t4) {
              n3.Z4(t4);
            })).bind(rt, (function(t4) {
              n3.W4(t4);
            })).bind(at, (function(t4) {
              n3.K4(t4);
            })).bind(ut, (function(t4) {
              n3.J4(t4);
            })), n3.j4.bind(it, (function(t4) {
              var e4, i3, r2 = f && f.mozilla;
              r2 && (e4 = (/* @__PURE__ */ new Date()).valueOf(), i3 = n3.X4, n3.X4 = e4, i3 && e4 - i3 < 100) || n3.q4(t4);
            })).bind(rt, (function(t4) {
              n3.tS(t4);
            })), n3.nS = function(t4) {
              n3.eS(t4);
            }, n3.D4.bind(st, n3.nS), n3.D4.bind(lt, n3.nS), t3.et(n3, "initEvents", n3.N4);
          }, t3.prototype.Jw = function(t4) {
            this.o4 = t4;
          }, t3.prototype.dispose = function() {
            var n3 = this;
            function e3(t4) {
              t4 && t4.unbind(et);
            }
            e3(n3.B4), e3(n3.O4), e3(n3._4), e3(n3.j4), n3.D4 && (n3.nS && (n3.D4.unbind(st, n3.nS), n3.D4.unbind(lt, n3.nS)), t3.et(n3, "dispose", n3.N4), n3.D4.unbind(et).remove());
          }, t3.prototype.Fg = function() {
            var t4 = this;
            t4.p4 || ((0, i2.GC$)(v).bind(ot, (function(n3) {
              t4.Z4(n3);
            })).bind(rt, (function(n3) {
              t4.W4(n3);
            })), t4.p4 = true);
          }, t3.prototype.u2 = function() {
            this.p4 && (this.p4 = false, (0, i2.GC$)(v).unbind(ot).unbind(rt));
          }, t3.prototype.U4 = function(t4, n3) {
            var e3, i3 = 0, r2 = this, o2 = true, u2 = r2.Hur;
            r2.u4 = true, null === r2.s4 && (n3 ? (r2._4.addClass(R), i3 = u2 ? r2.iS() : 0 - r2.iS(), r2.rS = u2 ? a.Zi.smallIncrement : a.Zi.smallDecrement) : (r2.B4.addClass(R), i3 = u2 ? 0 - r2.iS() : r2.iS(), r2.rS = u2 ? a.Zi.smallDecrement : a.Zi.smallIncrement), (e3 = function() {
              r2.scrollTo(r2.b4 + i3 * r2.k4, false), r2.s4 = p.setTimeout(e3, o2 ? r2.f4 : r2.l4), o2 = false;
            })(), yt(t4));
          }, t3.prototype.H4 = function(t4, n3) {
            var e3 = this, i3 = n3 ? e3._4 : e3.B4;
            i3.removeClass(R), e3.oS(), yt(t4);
          }, t3.prototype.z4 = function(t4, n3) {
            var e3 = this, i3 = n3 ? e3._4 : e3.B4;
            i3.addClass("gc-scroll-arrow-hover ui-state-hover"), yt(t4);
          }, t3.prototype.V4 = function(t4, n3) {
            var e3 = this, i3 = n3 ? e3._4 : e3.B4;
            i3.removeClass("gc-scroll-arrow-hover ui-state-hover " + R), e3.oS(), yt(t4);
          }, t3.prototype.Y4 = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2 = this;
            0 === t4.button && (s2.a4 = true, s2._oldPosition = { x: t4.pageX, y: t4.pageY }, s2.qy(a.ScrollbarState.show), s2.Fg(), s2.D4.addClass(N), s2.O4.addClass(R), n3 = s2.O4.offset(), e3 = s2.O4.outerWidth(true), i3 = s2.O4.outerHeight(true), r2 = s2.j4.offset(), o2 = s2.j4.outerWidth(true), u2 = s2.j4.outerHeight(true), s2.aS = { isBeyondEdge: false, startEdgePosition: { x: r2.left + t4.pageX - n3.left, y: r2.top + t4.pageY - n3.top }, endEdgePosition: { x: r2.left + o2 - (e3 - t4.pageX + n3.left), y: r2.top + u2 - (i3 - t4.pageY + n3.top) } }), yt(t4);
          }, t3.prototype.Z4 = function(t4) {
            var n3 = this;
            n3.a4 && (n3.qy(a.ScrollbarState.active), n3.uS = { x: t4.pageX, y: t4.pageY }, n3.sS(), n3._oldPosition = n3.uS, (0, i2.GC$)(v.body).attr("unselectable", "on").addClass(_)), yt(t4);
          }, t3.prototype.W4 = function(t4) {
            var n3, e3, r2, o2, u2, s2 = this;
            s2.a4 = false, s2.rS = a.Zi.thumbPosition, s2.aS = null, s2.D4.trigger(ht, { newValue: s2.y4, oldValue: s2.y4, scrollOrientation: s2.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: s2.rS }), e3 = ((n3 = s2.y4) - s2._minimum()) * s2.k4, r2 = s2.Hur ? B : F, u2 = (o2 = t4.target.classList) && o2.contains(k), s2.h4 || (r2 = P), u2 ? s2.qy(a.ScrollbarState.hide) : s2.qy(a.ScrollbarState.inactive), s2.b4 = e3, s2.O4.css(r2, g(e3)), s2.h4 && s2.O4.css(s2.Hur ? F : B, "auto"), s2.u2(), (0, i2.GC$)(v.body).removeClass(_), (0, i2.GC$)(v.body).attr("unselectable") && (0, i2.GC$)(v.body).removeAttr("unselectable"), s2.O4.removeClass(R), s2.D4.removeClass(N), s2.rS = 6, s2.D4.trigger(ht, { newValue: s2.y4, oldValue: s2.y4, scrollOrientation: s2.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: s2.rS }), yt(t4);
          }, t3.prototype.K4 = function(t4) {
            this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"), yt(t4);
          }, t3.prototype.J4 = function(t4) {
            this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"), yt(t4);
          }, t3.prototype.eS = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.Hur;
            s(t4.wheelDelta) && s(t4.detail) && (t4.wheelDelta = t4.originalEvent.wheelDelta, t4.detail = t4.originalEvent.detail), n3 = t4.detail ? t4.detail : t4.wheelDelta / -40, o2 && (n3 *= -1), e3 = n3 / 3 * r2.iS() * r2.k4, r2.rS = e3 >= 0 ? 1 : 0, r2.scrollTo(r2.b4 + e3, false), r2.rS = 6, i3 = { newValue: r2.y4, oldValue: r2.y4, scrollOrientation: r2.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: r2.rS }, r2.D4.trigger(ht, i3), yt(t4);
          }, t3.prototype.q4 = function(t4) {
            var n3, e3 = this, i3 = true, r2 = t4.pageX, o2 = t4.pageY, u2 = 0, s2 = e3.j4.offset(), c2 = e3.cS(), f2 = e3.Hur;
            e3.a4 || null === e3.c4 && (u2 = e3.h4 ? r2 - s2.left - (f2 ? e3.F4 - e3.b4 - e3.P4 : e3.b4) : o2 - s2.top - e3.b4, (n3 = function() {
              var t5 = 0, l2 = f2 ? e3.F4 - e3.b4 - e3.P4 : e3.b4;
              if ((t5 = e3.h4 ? r2 - s2.left - l2 : o2 - s2.top - l2) * u2 < 0 || t5 >= 0 && t5 < e3.P4) e3.fS();
              else {
                if (u2 < 0) e3.rS = f2 ? a.Zi.largeIncrement : a.Zi.largeDecrement, e3.scrollTo(f2 ? e3.b4 + c2 * e3.k4 : e3.b4 - c2 * e3.k4, false);
                else {
                  if (!(u2 > 0)) return void e3.fS();
                  e3.rS = f2 ? a.Zi.largeDecrement : a.Zi.largeIncrement, e3.scrollTo(f2 ? e3.b4 - c2 * e3.k4 : e3.b4 + c2 * e3.k4, false);
                }
                e3.c4 = p.setTimeout(n3, i3 ? e3.f4 : e3.l4), i3 = false;
              }
            })(), yt(t4));
          }, t3.prototype.tS = function(t4) {
            this.fS(), yt(t4);
          }, t3.prototype.fS = function() {
            var t4, n3 = this;
            n3.c4 && clearTimeout(n3.c4), n3.c4 = c, n3.rS = a.Zi.endScroll, t4 = { newValue: n3.y4, oldValue: n3.y4, scrollOrientation: n3.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: n3.rS }, n3.D4.trigger(ht, t4);
          }, t3.prototype.oS = function() {
            var t4, n3 = this;
            n3.u4 && (n3.u4 = false, n3.s4 && clearTimeout(n3.s4), n3.s4 = c, n3.rS = 6, t4 = { newValue: n3.y4, oldValue: n3.y4, scrollOrientation: n3.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: n3.rS }, n3.D4.trigger(ht, t4));
          }, t3.prototype.sS = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.b4, l2 = c2.uS, h2 = c2.aS;
            function d2(t5) {
              return c2.h4 ? t5.x : t5.y;
            }
            function v2(t5, n4) {
              c2.h4 ? t5.x = n4 : t5.y = n4;
            }
            if (e3 = d2(l2), i3 = d2(c2._oldPosition), h2 && h2.isBeyondEdge) {
              if (r2 = d2(h2.startEdgePosition), n3 = e3 > (o2 = d2(h2.endEdgePosition)), (t4 = e3 < r2) || n3) return;
              i3 < r2 && v2(c2._oldPosition, r2), i3 > o2 && v2(c2._oldPosition, o2);
            }
            a2 = e3 - i3, (u2 = c2.Hur) && (a2 *= -1), (s2 = f2 + a2) !== f2 && (c2.rS = 5, c2.scrollTo(s2, false));
          }, t3.prototype.scrollTo = function(t4, n3) {
            var e3, i3, r2, o2, u2, c2, f2, l2, h2 = this, d2 = P, v2 = h2.F4 - h2.P4;
            h2.h4 && (d2 = h2.Hur ? B : F), e3 = false, i3 = false, r2 = false, t4 > v2 && (t4 = v2, r2 = true, i3 = true), t4 < 0 && (t4 = 0, r2 = true, e3 = true), h2.aS && (h2.aS.isBeyondEdge = r2), o2 = h2.g4 === a.ScrollType.continuous ? g(t4 / h2.k4) + h2._minimum() : t4 / h2.k4 + h2._minimum(), u2 = h2.y4, c2 = false, n3 || (l2 = { newValue: o2, oldValue: u2, scrollOrientation: h2.h4 ? vt.horizontalScroll : vt.verticalScroll, scrollEventType: h2.rS, isBeyondMaxEdge: i3, isBeyondMinEdge: e3 }, h2.D4.trigger(ht, l2), c2 = l2.ignoreUpdatePosition, l2.newValue > h2._maximum() && (l2.newValue = h2._maximum()), o2 = l2.newValue, f2 = l2.newValueWithOffset), s(f2) && (f2 = o2), h2.y4 = o2, 5 !== h2.rS && (t4 = (f2 - h2._minimum()) * h2.k4), h2.b4 = t4, c2 || (h2.O4.css(d2, g(t4)), h2.h4 && h2.O4.css(h2.Hur ? F : B, "auto"));
          }, t3.prototype.hitTest = function(t4, n3) {
            var e3, r2, o2, u2, s2 = this, c2 = 0, f2 = 0, l2 = s2.O4.outerWidth(), h2 = s2._4.outerWidth(), d2 = s2.j4.outerWidth(), v2 = s2.O4.offset(), p2 = (0, i2.GC$)(s2.oy()).offset(), g2 = v2.left - p2.left - 18;
            return s2.h4 ? t4 < c2 + d2 + h2 && t4 > c2 + h2 ? t4 < c2 + g2 + l2 + h2 && t4 > g2 ? { element: a.Yi.ThumbButton, x: t4, y: n3 } : { element: a.Yi.TrackButton } : t4 <= c2 + h2 && t4 > c2 ? { element: a.Yi.LeftButton, x: t4, y: n3 } : { element: a.Yi.RightButton, x: t4, y: n3 } : (e3 = s2.O4.outerHeight(), r2 = s2._4.outerHeight(), o2 = s2.j4.outerHeight(), u2 = v2.top - p2.top - 18, n3 < f2 + o2 + r2 && n3 > f2 + r2 ? n3 < f2 + u2 + e3 + r2 && n3 > u2 ? { element: a.Yi.ThumbButton, x: t4, y: n3 } : { element: a.Yi.TrackButton } : n3 <= f2 + r2 && n3 > f2 ? { element: a.Yi.UpButton, x: t4, y: n3 } : { element: a.Yi.DownButton, x: t4, y: n3 });
          }, t3.prototype._b = function() {
            var t4 = this;
            return { x: 0, y: 0, width: t4.YC(), height: t4.ZC() };
          }, t3.prototype.show = function() {
            this.j4.show();
          }, t3.prototype.hide = function() {
            this.j4.hide();
          }, t3.prototype.lS = function(t4) {
            var n3 = this, e3 = n3.D4.parent() && n3.D4.parent().parent();
            return e3 ? t4 ? e3.height() : e3.width() : c;
          }, t3;
        })(), n2.YM = pt, (0, r.$e)(pt), (gt = pt.prototype).iS = d("smallChange", 1), gt.cS = d("largeChange", 10), gt.d4 = d("pageValue", 10, (function(t3) {
          t3 <= 0 && this.d4(1);
        })), gt._maximum = d("maximum", 100, (function(t3) {
          t3 <= 0 && this._maximum(0);
        })), gt._minimum = d("minimum", 0, (function(t3) {
          t3 <= 0 && this._minimum(0);
        })), gt.YC = d("width", 0), gt.ZC = d("height", 0), mt = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.S4 = true, e3.T4 = 18, e3.A4 = t4 && (0, i2.GC$)(t4), e3.I4 = n3 && (0, i2.GC$)(n3), e3.w4(true);
          }
          return t3.prototype.w4 = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2, l2, h2, d2, v2, p2, b2, y2 = this;
            function w2(t5) {
              return t5 === q ? i2.GC$.En("div", [H, F, P, V, z, Y], [q, 0, 0, "none", 0, 0]) : t5 === $ ? i2.GC$.En("div", [H, F, P, V, z, Y], [$, 0, 0, "none", 0, 0]) : c;
            }
            function M2(t5, n4) {
              var e4, r3, o3, a3 = n4 ? y2.hS : y2.dS;
              return a3 || (e4 = new pt(n4), r3 = i2.GC$.En("div"), n4 ? (y2.vS = r3, y2.hS = e4, r3.css([H, F, G, V, z, Y], [q, 0, 0, "none", 0, 0])) : (y2.mS = r3, y2.dS = e4, r3.css([H, B, P, V, z, Y], [q, 0, 0, "none", 0, 0])), o3 = (n4 ? y2.hS : y2.dS).oy(), r3.append(o3), t5.append(r3), e4);
            }
            function C2(t5, n4, e4, r3, o3, a3) {
              a3 ? (y2.vS.css([O, E], [n4, r3]), t5.YC(n4), t5.ZC(r3)) : (y2.mS.css([O, E], [r3, n4]), t5.YC(r3), t5.ZC(n4)), t5._minimum(0), t5._maximum(o3 - n4), t5.d4(n4), t5.iS(a3 ? y2.gS() : y2.pS()), t5.cS(n4), t5.w4(), (0, i2.GC$)(t5.oy()).bind(ht, (function(t6, n5) {
                e4.css(a3 ? F : P, 0 - n5.newValue);
              })), a3 ? y2.vS.show() : y2.mS.show();
            }
            function S2(t5) {
              y2.bS || (y2.bS = w2($), y2.bS.css([Z, W, O], ["hidden", ct, K]), t5.append(y2.bS));
            }
            function T2(t5) {
              y2.yS || (y2.yS = i2.GC$.En("div", H, $, c, t5));
            }
            y2.A4 && y2.I4 && (n3 = y2.T4, e3 = y2.I4.width(), r2 = y2.I4.height(), u2 = (o2 = y2.A4.width()) - n3, s2 = (a2 = y2.A4.height()) - n3, l2 = false, y2.wS || (y2.wS = w2($), y2.wS.css([H, Z], [$, "hidden"]), l2 = true), y2.wS.css(E, a2), S2(y2.wS), T2(y2.bS), t4 && y2.yS.append(y2.I4).css([P, F], [0, 0]), f.chrome && (e3 = g(e3), r2 = g(r2), o2 = m(o2), a2 = m(a2)), d2 = (h2 = y2.CS(e3, r2, o2, a2)).MS, (v2 = h2.SS) ? (d2 || (u2 += n3), C2(p2 = M2(y2.wS, true), u2, y2.yS, n3, e3, true)) : y2.vS && y2.vS.hide(), d2 ? (v2 || (s2 += n3), C2(b2 = M2(y2.wS, false), s2, y2.yS, n3, r2, false)) : y2.mS && y2.mS.hide(), v2 || d2 || (u2 += n3, s2 += n3), y2.S4 = d2, y2.TS = u2, y2.AS = s2, y2.bS.css(E, s2), l2 && (y2.A4.append(y2.wS), y2.IS()));
          }, t3.prototype.xS = function(t4) {
            var n3 = this, e3 = n3.NS(t4), i3 = e3.I0, r2 = e3.A0;
            !s(i3) && n3.hS && n3.wy(i3), !s(r2) && n3.dS && n3.yy(r2);
          }, t3.prototype.wy = function(t4) {
            var n3, e3, i3 = this;
            i3.hS.value(t4), n3 = i3.TS, e3 = i3.I4.width(), t4 >= 0 && t4 <= e3 - n3 && i3.yS.css(F, 0 - t4);
          }, t3.prototype.yy = function(t4) {
            var n3, e3, i3 = this;
            i3.dS.value(t4), n3 = i3.AS, e3 = i3.I4.height(), t4 >= 0 && t4 <= e3 - n3 && i3.yS.css(P, 0 - t4);
          }, t3.prototype.CS = function(t4, n3, e3, i3) {
            var r2, o2 = e3, a2 = i3 - this.T4, u2 = { SS: false, MS: false };
            return t4 > e3 && (u2.SS = true, u2.MS = n3 > a2), n3 > i3 && (u2.MS = true, u2.SS = t4 > o2), u2;
          }, t3.prototype.NS = function(t4) {
            var n3 = (0, i2.GC$)(t4), e3 = this.bS, r2 = this.yS, o2, a2, u2, s2, f2, l2, h2, d2 = { I0: c, A0: c };
            return t4 ? (o2 = n3.offset(), a2 = r2.offset(), u2 = e3.offset(), o2.leftWidth = o2.left + n3.outerWidth(), o2.topHeight = o2.top + n3.outerHeight(), u2.leftWidth = u2.left + e3.outerWidth(), u2.topHeight = u2.top + e3.outerHeight(), s2 = o2.left - a2.left, o2.left < u2.left ? d2.I0 = s2 : o2.leftWidth > u2.leftWidth && (f2 = o2.leftWidth - a2.left - e3.innerWidth(), d2.I0 = s2 < f2 ? s2 : f2), l2 = o2.top - a2.top, o2.top < u2.top ? d2.A0 = l2 : o2.topHeight > u2.topHeight && (h2 = o2.topHeight - a2.top - e3.innerHeight(), d2.A0 = l2 < h2 ? l2 : h2), d2) : d2;
          }, t3.prototype.IS = function() {
            var t4 = this;
            this.yS && (t4.nS = function(n3) {
              t4.kS(n3);
            }, t4.yS.bind(st, t4.nS), t4.yS.bind(lt, t4.nS));
          }, t3.prototype.kS = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2 = this;
            s(t4.wheelDelta) && s(t4.detail) && (t4.wheelDelta = t4.originalEvent.wheelDelta, t4.detail = t4.originalEvent.detail), e3 = n3 = t4.detail ? t4.detail : t4.wheelDelta / -40, i3 = c2.dS, r2 = parseInt(c2.yS.css(P), 10), o2 = c2.AS, (a2 = c2.I4.height()) < o2 && (a2 = o2), isNaN(r2) && (r2 = 0), (u2 = r2 - e3 * c2.pS()) >= 0 && (u2 = 0), u2 < 0 && 0 - u2 > a2 - o2 && (u2 = 0 - (a2 - o2)), u2 !== r2 && (c2.yS.css(P, u2), c2.S4 && i3.value(0 - u2)), l(t4);
          }, t3.prototype.dispose = function() {
            var t4 = this;
            t4.wS && (t4.hS && t4.hS.dispose(), t4.dS && t4.dS.dispose(), t4.yS && t4.nS && (t4.yS.unbind(st, t4.nS), t4.yS.unbind(lt, t4.nS)), (0, i2.GC$)(t4.wS).remove());
          }, t3;
        })(), n2.x4 = mt, (bt = mt.prototype).gS = d("horizontalSmallChange", 10), bt.pS = d("verticalSmallChange", 10), u.Hv.ch(dt, { preProcessMouseMove: function(t3) {
          var n3 = this.Vv, e3;
          (n3._vScrollbar.a4 || n3._hScrollbar.a4) && (t3.r = true);
        } });
      }, "./dist/core/worksheet/actionbase.js": function(t2, n2) {
        "use strict";
        function e2(t3, n3) {
          t3.suspendPaint(), t3.mno && t3.mno(), n3 || t3.suspendEvent();
        }
        function i2(t3, n3, e3) {
          e3 && t3.invalidateLayout && t3.invalidateLayout(), n3 || t3.resumeEvent(), t3.Nno && t3.Nno(), t3.resumePaint();
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ActionBase = void 0;
        var r = (function() {
          function t3(t4, n3) {
            this.X5 = e2, this.q5 = i2;
            var r2 = this;
            r2.Mf = t4, r2.tT = n3;
          }
          return t3.prototype.execute = function() {
          }, t3.prototype.canExecute = function() {
            return true;
          }, t3.prototype.canUndo = function() {
            return true;
          }, t3.prototype.undo = function() {
            return true;
          }, t3;
        })();
        n2.ActionBase = r;
      }, "./dist/core/worksheet/attachmentManager/attachmentsManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u = this && this.nJr || function() {
          return u = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, u.apply(this, arguments);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.AttachmentsManager = void 0, i2 = e2("./dist/core/worksheet/attachmentManager/utils.js"), r = e2("./dist/core/worksheet/attachmentManager/fileWrapper.js"), o = e2("./dist/core/util/event-notify.js"), a = (function() {
          function t3(t4, n3) {
            this.glt = {}, this.P0r = {}, this.Dht = {}, this.b_r = new o.EventNotifier(), this.AHr = new o.EventNotifier(), t4 && this.b_r.addListener(t4), n3 && this.AHr.addListener(n3);
          }
          return t3.prototype.Mdt = function(t4, n3) {
            if (void 0 === n3 && (n3 = false), void 0 !== t4) return this.glt[t4] || n3 && this.P0r[t4];
          }, t3.prototype._0r = function(t4) {
            return !!this.glt[t4] || !!this.Dht[t4];
          }, t3.prototype.Bdt = function(t4) {
            var n3, e3, r2 = t4.id, o2 = t4.name, a2 = t4.dataUrl, u2 = t4.blob, s = t4.type, c = t4.postCreateFile, f = r2 || (0, i2.Wgt)();
            return a2 ? (e3 = this.G0r(f, a2, s, o2), c && c(e3), this.P0r[f] = e3, n3 = Promise.resolve(e3)) : u2 instanceof Blob && (n3 = this.jkt(f, u2, o2, c)), n3;
          }, t3.prototype.B0r = function(t4, n3) {
            n3 && (n3.id = t4), this.w_r(t4, n3);
          }, t3.prototype.O0r = function(t4, n3) {
            if (t4) {
              var e3 = u(u({}, t4), { id: n3 });
              return this.w_r(n3, e3), this.glt[n3];
            }
          }, t3.prototype.MRe = function(t4, n3, e3, i3) {
            var o2, a2, u2 = new r.FileWrapper(i3);
            return u2.name = t4, u2.blob = n3, u2.dataUrl = e3, u2.type = null !== (o2 = n3.type) && void 0 !== o2 ? o2 : "", "" === u2.type && e3 && (u2.type = null === (a2 = e3.split(":")[1]) || void 0 === a2 ? void 0 : a2.split(";")[0]), u2.loaded = true, this.w_r(i3, u2), u2;
          }, t3.prototype.w_r = function(t4, n3) {
            var e3 = this.glt[t4];
            this.AHr.notify({ fileGUID: t4, oldValue: e3 }), this.y_r(t4, n3), this.b_r.notify({ fileGUID: t4, fileInfo: n3, oldValue: e3 });
          }, t3.prototype.y_r = function(t4, n3) {
            this.glt[t4] = n3;
          }, t3.prototype.Ekt = function() {
            return Object.values(this.Dht);
          }, t3.prototype.iPt = function(t4) {
            var n3 = this;
            t4.forEach((function(t5) {
              n3.lan(t5);
            }));
          }, t3.prototype.d5 = function() {
            this.glt = {}, this.Dht = {}, this.P0r = {};
          }, t3.prototype.L0 = function() {
            this.glt = null, this.Dht = null, this.P0r = null;
          }, t3.prototype.Np = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this.glt, s = (null == t4 ? void 0 : t4.usedAttachmentFileGUIDs) || [];
            if (u2 && Object.keys(u2).length > 0) {
              for (i3 in e3 = {}, u2) u2.hasOwnProperty(i3) && (s.indexOf(i3) >= 0 ? (r2 = u2[i3]) && (o2 = r2.id, a2 = { name: r2.name, dataUrl: null === (n3 = r2.dataUrl) || void 0 === n3 ? void 0 : n3.toString(), type: r2.type }, e3[o2] = a2) : this.lan(i3));
              return t4 && delete t4.usedAttachmentFileGUIDs, e3;
            }
          }, t3.prototype.wh = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this.glt, s = (null == t4 ? void 0 : t4.usedAttachmentFileGUIDs) || [];
            if (u2 && Object.keys(u2).length > 0) {
              for (i3 in n3 = {}, e3 = {}, u2) u2.hasOwnProperty(i3) && (s.indexOf(i3) >= 0 ? (r2 = u2[i3]) && (o2 = r2.id, a2 = { name: r2.name, type: r2.type }, e3[o2] = a2, n3[o2.split("/").pop()] = { dataUrl: r2.dataUrl }) : this.lan(i3));
              return t4 && delete t4.usedAttachmentFileGUIDs, { attachmentsJSON: n3, attachmentsInfos: e3 };
            }
          }, t3.prototype.xji = function(t4) {
            var n3 = this, e3 = null != t4 ? t4 : {};
            Object.keys(e3).forEach((function(t5) {
              var i3 = e3[t5];
              n3.G0r(t5, i3.dataUrl, i3.type, i3.name);
            }));
          }, t3.prototype.yh = function(t4, n3) {
            var e3 = this;
            Object.keys(n3).forEach((function(i3) {
              var r2 = t4[i3.split("/").pop()], o2 = n3[i3], a2 = "data:" + o2.type + ";base64," + btoa(r2);
              e3.G0r(i3, a2, o2.type, o2.name);
            }));
          }, t3.prototype.G0r = function(t4, n3, e3, o2) {
            var a2 = this, u2 = new r.FileWrapper(t4);
            return u2.name = o2, u2.dataUrl = n3, u2.blob = (0, i2.Wfn)(n3, e3), u2.type = e3 || u2.blob.type, a2.w_r(t4, u2), u2.loaded = true, u2;
          }, t3.prototype.jkt = function(t4, n3, e3, i3) {
            var o2, a2, u2 = this, s = new r.FileWrapper(t4);
            return s.name = null != e3 ? e3 : n3.name, s.type = null !== (o2 = n3.type) && void 0 !== o2 ? o2 : "", s.blob = n3, i3 && i3(s), this.P0r[t4] = s, a2 = new Promise((function(e4) {
              var i4 = new FileReader();
              i4.readAsDataURL(n3), i4.onloadend = function() {
                var n4, r2;
                s.loaded = true, r2 = i4.result, s.dataUrl = r2, "" === s.type && r2 && (s.type = null === (n4 = r2.split(":")[1]) || void 0 === n4 ? void 0 : n4.split(";")[0]), u2.w_r(s.id, s), delete u2.Dht[t4], delete u2.P0r[t4], e4(s);
              }, i4.onerror = function() {
                delete u2.Dht[t4], delete u2.P0r[t4], e4(void 0);
              };
            })), this.Dht[t4] = a2, a2;
          }, t3.prototype.lan = function(t4) {
            if (this.glt[t4]) {
              var n3 = this.glt[t4];
              this.AHr.notify({ fileGUID: t4, oldValue: n3 }), delete this.glt[t4], this.b_r.notify({ fileGUID: t4, fileInfo: {}, oldValue: n3 });
            }
          }, t3;
        })(), n2.AttachmentsManager = a;
      }, "./dist/core/worksheet/attachmentManager/feature-register.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/core/worksheet/worksheet.js"), r = e2("./dist/core/worksheet/worksheet-model.js"), o = e2("./dist/core/worksheet/attachmentManager/utils.js"), a = Math.min, r.Y8.ch("attachmentsManager", { preClear: function(t3) {
          var n3, e3, i3, r2, o2, u, s = this, c = s.Mf, f = c.GRe(), l = t3.row, h = t3.col, d = t3.rowCount, v = t3.colCount, p = t3.type, g = t3.sheetArea;
          if (!((1 & p) <= 0 || void 0 !== g && 3 !== g)) {
            if (n3 = c.getRowCount(), e3 = c.getColumnCount(), i3 = [], l >= 0 && h >= 0) {
              if (d = a(d, n3 - l), v = a(v, e3 - h), d > 0 && v > 0) for (u = l; u < l + d; u++) for (o2 = h; o2 < h + v; o2++) (r2 = s.getFileGUID(u, o2)) && i3.push(r2);
            } else if (l >= 0 && -1 === h) {
              if ((d = a(d, n3 - l)) > 0) for (u = l; u < l + d; u++) (r2 = s.getFileGUID(u, -1)) && i3.push(r2);
            } else if (-1 === l && h >= 0) {
              if ((v = a(v, e3 - h)) > 0) for (o2 = h; o2 < h + v; o2++) (r2 = s.getFileGUID(-1, o2)) && i3.push(r2);
            } else -1 === l && -1 === h && (r2 = s.getFileGUID(-1, -1)) && i3.push(r2);
            i3.forEach((function(t4) {
              var n4 = f.Mdt(t4);
              n4 && s.R0r(n4);
            }));
          }
        } }), i2.Worksheet.ch("attachmentsManager", { afterCopyMoveStyle: function(t3) {
          var n3, e3, i3 = t3.source, r2 = t3.target, a2 = t3.isMove, u = i3.sheet, s = i3.row, c = i3.col, f = r2.sheet, l = r2.row, h = r2.col, d = u.Ut.getFileGUID(s, c), v = u.GRe(), p = v.Mdt(d);
          p && (n3 = (0, o.Wgt)(), f.Ut.setFileGUID(l, h, n3), (e3 = f.GRe().O0r(p, n3)) && f.Ut.L0r(e3), a2 && (u.Ut.setFileGUID(s, c, null), u.Ut.R0r(p)));
        } });
      }, "./dist/core/worksheet/attachmentManager/fileWrapper.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FileWrapper = void 0;
        var e2 = /* @__PURE__ */ (function() {
          function t3(t4) {
            this.id = t4, this.loaded = false;
          }
          return t3;
        })();
        n2.FileWrapper = e2;
      }, "./dist/core/worksheet/attachmentManager/index.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/core/worksheet/attachmentManager/attachmentsManager.js"), n2), r(e2("./dist/core/worksheet/attachmentManager/fileWrapper.js"), n2), r(e2("./dist/core/worksheet/attachmentManager/feature-register.js"), n2);
      }, "./dist/core/worksheet/attachmentManager/utils.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        function s(t3) {
          var n3 = "";
          try {
            n3 = atob(t3);
          } catch (t4) {
          }
          return n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Wgt = n2.Wfn = n2.vIt = void 0, i2 = e2("Common"), r = i2.Common.lt.ht, o = function(t3) {
          return t3.startsWith("data:") && t3.split("base64,").length > 1;
        }, n2.vIt = o, a = function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, c;
          for (r2 = (t3 = null !== (e3 = null == t3 ? void 0 : t3.toString()) && void 0 !== e3 ? e3 : "").split(","), o2 = null === (i3 = t3.split(":")[1]) || void 0 === i3 ? void 0 : i3.split(";")[0], u2 = (a2 = s(r2[2 === r2.length ? 1 : 0])).length, c = new Uint8Array(u2); u2--; ) c[u2] = a2.charCodeAt(u2);
          return new Blob([c], { type: n3 || o2 });
        }, n2.Wfn = a, u = function(t3) {
          var n3 = crypto && crypto.randomUUID && crypto.randomUUID();
          return r(n3) && (n3 = "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (function(t4) {
            return (t4 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t4 / 4).toString(16);
          }))), 32 === t3 && (n3 = n3.split("-").join("")), n3;
        }, n2.Wgt = u;
      }, "./dist/core/worksheet/clipboardhelper.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p;
        function g(t3) {
          return t3 && t3.options.allowCopyPasteExcelStyle;
        }
        function m(t3, n3) {
          var e3, i3;
          if (f.msie) {
            for (e3 = [], i3 = 0; i3 < t3.length; i3++) n3 && "" === t3[i3].trim() || e3.push(t3[i3]);
            return e3.join("");
          }
          return t3.join("");
        }
        function b(t3) {
          for (var n3 = "picture", e3 = 1, i3 = n3 + e3.toString(); t3.get(i3); ) i3 = n3 + (++e3).toString();
          return i3;
        }
        function y(t3, n3, e3, i3) {
          var r2, o2, a2 = [];
          for (r2 = 0, o2 = e3; r2 < o2; r2++) a2[n3 + r2] = t3.getRowHeight(n3 + r2, i3);
          return a2;
        }
        function w(t3, n3, e3, i3) {
          var r2, o2, a2 = [];
          for (r2 = 0, o2 = e3; r2 < o2; r2++) a2[n3 + r2] = t3.getColumnWidth(n3 + r2, i3);
          return a2;
        }
        function M(t3, n3, e3) {
          var i3, r2;
          if (n3 || (n3 = "<!--"), e3 || (e3 = "-->"), !t3) return t3;
          for (; !((i3 = t3.indexOf(n3)) < 0 || (r2 = t3.indexOf(e3)) < 0); ) t3 = t3.substring(0, i3) + t3.substring(r2 + e3.length);
          return t3;
        }
        function C(t3) {
          var n3, e3, i3, r2 = "", o2 = t3.split("\n");
          for (n3 = 0; n3 < o2.length; n3++) e3 = o2[n3], i3 = o2[n3 - 1], n3 > 0 && "<br>" === i3.substring(i3.length - 4) ? r2 += "\n" + e3 : r2 += e3;
          return r2;
        }
        function S(t3, n3, e3) {
          var i3, r2 = -1;
          if (e3) for (r2 = 0, i3 = 0; i3 < n3; i3++) r2 += e3[t3 + i3] || 0;
          return r2;
        }
        function T(t3, n3, e3) {
          var i3, r2 = -1;
          if (e3) for (r2 = 0, i3 = 0; i3 < n3; i3++) r2 += e3[t3 + i3] || 0;
          return r2;
        }
        function x(t3) {
          var n3, e3;
          for (e3 = 0; e3 < t3.length && (0 !== t3[e3].type.indexOf("image") || !(n3 = t3[e3].getAsFile())); e3++) ;
          return n3;
        }
        function A(t3) {
          var n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2;
          if ('"' === t3[0] && '"' === t3[t3.length - 1] && t3.length >= 2 && (t3 = t3.substring(1, t3.length - 1)), n3 = { Standard: "#,##0.00", Fixed: "0.00", Scientific: "0.00E+00", Percent: "0.00%", "Short Date": "m/d/yyyy", "Medium Date": "d-mmm-yy", "General Date": "m/d/yyyy hh:mm", "Short Time": "hh:mm", "Medium Time": "h:mm AM/PM", "Long Time": "h:mm:ss AM/PM" }, "ja-jp" === (e3 = r.Common.CultureManager.culture().toLowerCase())) n3["Short Date"] = "yyyy/m/d", n3["General Date"] = "yyyy/m/d h:mm", n3["Long Date"] = 'yyyy"年"m"月"d"日"';
          else if ("zh-cn" === e3) n3["Short Date"] = "yyyy/m/d", n3["General Date"] = "yyyy/m/d h:mm", n3["Medium Date"] = 'yyyy"年"m"月"d"日"', n3["Long Date"] = 'dddd, yyyy"年"m"月"d"日"', n3["Short Time"] = "h:mm", n3["Medium Time"] = "h:mm:ss", n3["Long Time"] = "h:mm:ss";
          else if ("ko-kr" === e3) n3["Short Date"] = "yyyy/m/d", n3["Medium Date"] = 'yyyy"년" m"월" d"일"', n3["Long Date"] = 'dddd, yyyy"년" m"월" d"일"', n3["General Date"] = "yyyy/m/d h:mm", n3["Short Time"] = "h:mm", n3["Medium Time"] = "h:mm:ss", n3["Long Time"] = "h:mm:ss";
          else if ("en-us" !== e3 && (i3 = r.Common.CultureManager.getCultureInfo().DateTimeFormat)[(o2 = { "Short Date": "shortDatePattern", "Long Date": "longDatePattern", "General Date": "defaultDatePattern", "Short Time": "shortTimePattern", "Long Time": "longTimePattern" })[t3]]) return i3[o2[t3]];
          if (a2 = n3[t3]) return a2;
          for (t3 = t3.replace(/\\0022/g, '"'), u2 = [], s2 = 0; s2 < t3.length; s2++) "\\" === (c2 = t3[s2]) ? ++s2 < t3.length && u2.push(t3[s2]) : u2.push(c2);
          return l2 = "[ENG]", (h2 = (f2 = u2.join("")).indexOf(l2)) >= 0 && (f2 = f2.substr(h2 + l2.length)), f2;
        }
        function I(t3) {
          var n3, e3, i3, r2 = [], o2 = "", a2 = "";
          for (n3 = 0, e3 = t3; n3 < e3.length; n3++) (i3 = e3[n3]).match(/[^a-z0-9\+\-\%]/i) ? (r2.push("\\"), r2.push(i3), o2 = '"', a2 = '"') : r2.push(i3);
          return o2 + r2.join("") + a2;
        }
        function k(t3) {
          var n3 = t3.toLowerCase().split(" ").filter((function(t4) {
            return "" !== t4.trim();
          })), e3 = "", i3 = "", r2 = "";
          return n3.forEach((function(t4) {
            t4.includes("px") || t4.includes("pt") ? r2 = t4 : ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"].includes(t4) ? i3 = t4 : e3 += t4;
          })), { borderColor: e3, borderStyle: i3, borderWidth: r2 };
        }
        function N(t3) {
          var n3 = t3, e3 = / +/g, i3 = /\n /g;
          return n3 = (n3 = (n3 = (n3 = C(n3 = M(n3, "<!--[if", "[endif]-->"))).replace(e3, " ")).replace(i3, "\n")).replace(/(<br[^<]*>)/g, (function(t4, n4, e4, i4) {
            return "\n" !== i4[e4 + t4.length] ? n4 + "\n" : n4;
          }));
        }
        function j(t3) {
          if (1 !== t3.length) return false;
          var n3 = t3.charCodeAt(0);
          return 32 === n3 || 160 === n3 || 12288 === n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.yM = n2.Ooe = n2.Boe = n2.CGr = void 0, i2 = e2("./dist/core/util/common.js"), r = e2("Common"), o = e2("./dist/core/worksheet/stylehelper.js"), a = e2("./dist/core/worksheet/style.js"), u = e2("./dist/core/core.enum.js"), s = r.Common.zf, c = /<img[^>]+>/g, f = i2.mt.Tt, l = r.Common.lt.ht, h = null, n2.CGr = A, d = (function() {
          function t3(t4) {
            this.Nf = [], this.Zc = t4;
          }
          return t3.prototype.add = function(t4) {
            var n3 = this.Nf, e3 = n3.indexOf(t4);
            return -1 === e3 && (n3.push(t4), e3 = n3.length - 1), e3;
          }, t3.prototype.toString = function(t4) {
            var n3 = this.Nf[t4];
            return l(n3) ? "" : this.Zc + ":" + n3;
          }, t3;
        })(), n2.Boe = d, v = (function() {
          function t3(t4) {
            this.Nf = {}, this.Doe = t4, this.joe = t4.map((function(t5) {
              return new d(t5);
            })), this.Lre = 1;
          }
          return t3.prototype.Loe = function(t4) {
            var n3 = this.joe;
            return this.Doe.map((function(e3, i3) {
              return n3[i3].add(t4[e3]);
            })).join("_");
          }, t3.prototype.add = function(t4) {
            var n3 = this.Nf, e3 = this.Loe(t4);
            return n3[e3] || (n3[e3] = "sjs" + this.Lre, this.Lre++), n3[e3];
          }, t3.prototype.toString = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this.joe, u2 = [], s2 = this.Nf;
            for (t4 in s2) if (s2.hasOwnProperty(t4)) {
              for (n3 = t4.split("_"), e3 = [], i3 = 0; i3 < this.Doe.length; i3++) (r2 = a2[i3].toString(+n3[i3])) && e3.push(r2);
              o2 = "." + s2[t4] + "{\r\n" + e3.join(";\r\n") + "\r\n}\r\n", u2.push(o2);
            }
            return u2.join("");
          }, t3;
        })(), n2.Ooe = v, p = (function() {
          function t3(t4) {
            var n3 = this;
            n3.DS = h, n3._S = h, n3.ES = false, n3.jS = t4, n3.En();
          }
          return t3.prototype.En = function() {
            var n3, e3, r2, o2 = this, a2 = document.createElement("div");
            a2.style.position = "fixed", a2.style.top = "0px", a2.style.left = "0px", a2.style.width = "0px", a2.style.height = "0px", a2.style.overflow = "hidden", (n3 = document.createElement("div")).setAttribute("contenteditable", "true"), n3.setAttribute("gcUIElement", "gcSheetClipboard"), n3.setAttribute("tabindex", "-1"), n3.style.position = "absolute", n3.style.overflow = "hidden", n3.style.background = "white", n3.style.webkitUserSelect = "text", a2.appendChild(n3), o2.RS = n3, (e3 = document.createElement("textarea")).setAttribute("gcUIElement", "gcSheetClipboard"), o2.jS && o2.jS.options.enableAccessibility && (e3.setAttribute("aria-hidden", "true"), e3.setAttribute("role", "none"), e3.setAttribute("title", "")), e3.setAttribute("tabindex", "-1"), e3.style.position = "absolute", e3.style.overflow = "hidden", e3.style.background = "white", e3.style.webkitUserSelect = "text", a2.appendChild(e3), o2.BS = e3, (r2 = o2.jS.getHost()) && r2.appendChild(a2), f.msie || f.edge || (o2.zfe = function(t4) {
              var n4, e4, r3, a3, u2, s2 = t4.clipboardData;
              s2 && ((e4 = (n4 = o2.DS) ? i2.mt.b_e(n4) : []).length > 0 || (r3 = n4 ? i2.mt.w_e(n4) : []).length > 0 ? s2.setData("text/plain", "") : (a3 = n4 ? n4.bT(o2._S) : "", s2.setData("text/plain", a3), u2 = n4 ? n4.MT(o2._S) : "", s2.setData("text/html", u2)), t4.preventDefault());
            }, o2.FS = function(n4) {
              var e4, r3, a3, u2, s2, f2, l2, h2, d2, v2, p2 = (0, i2.jf)(o2.jS), g2 = n4.clipboardData;
              g2 && (e4 = (e4 = g2.getData("text/html")).replace(c, ""), (r3 = o2.PS()).innerHTML = e4, a3 = e4 ? o2.GS(r3, false) : t3.formatClipboardData(g2.getData("text/plain")), r3.innerHTML = "", (u2 = !a3 && !e4 && x(g2.items)) ? ((s2 = new FileReader()).onload = function(t4) {
                var n5 = new Image();
                n5.src = t4.target.result, n5.onload = function() {
                  p2.US(a3, e4, n5.src);
                };
              }, s2.readAsDataURL(u2), o2.oA = true) : (f2 = o2.jS.commandManager(), l2 = a3 || e4 && e4.indexOf("<table") >= 0, h2 = o2._S, d2 = p2.wT(h2), v2 = !p2._T(o2.DS, p2.yT(h2), p2, a3, d2.rows, d2.cols, false), l2 && v2 ? p2.US(a3, e4) : p2.isPasteShapes && p2.isPasteShapes() ? (f2.execute({ cmd: "pasteShapes", sheetName: p2.name() }), o2.oA = true) : p2.isPasteFloatingObject && p2.isPasteFloatingObject() ? (f2.execute({ cmd: "pasteFloatingObjects", sheetName: p2.name() }), o2.oA = true) : l2 && p2.US(a3, e4))), n4.preventDefault();
            }, n3.addEventListener("cut", o2.zfe), n3.addEventListener("copy", o2.zfe), n3.addEventListener("paste", o2.FS), o2.HS = function(n4) {
              var e4, r3, a3, u2, s2, c2, f2, l2, h2, d2 = (0, i2.jf)(o2.jS), v2 = n4.clipboardData;
              v2 && (r3 = void 0, (a3 = v2.getData("text/html")) ? ((u2 = o2.PS()).innerHTML = a3, r3 = o2.GS(u2, false, null === (e4 = o2.jS) || void 0 === e4 ? void 0 : e4.options.pasteIgnoreSingleBlankCharCell), u2.innerHTML = "") : r3 = t3.formatClipboardData(v2.getData("text/plain")), s2 = o2.jS.commandManager(), c2 = r3, f2 = o2._S, l2 = d2.wT(f2), h2 = !d2._T(o2.DS, d2.yT(f2), d2, r3, l2.rows, l2.cols, false), c2 && h2 ? d2.US(r3, "") : d2.isPasteShapes && d2.isPasteShapes() ? (s2.execute({ cmd: "pasteShapes", sheetName: d2.name() }), o2.oA = true) : d2.isPasteFloatingObject && d2.isPasteFloatingObject() ? (s2.execute({ cmd: "pasteFloatingObjects", sheetName: d2.name() }), o2.oA = true) : c2 && d2.US(r3, "")), n4.preventDefault();
            }, e3.addEventListener("paste", o2.HS));
          }, t3.prototype.L0 = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.RS;
            u2 && (f.msie || f.edge || (u2.removeEventListener("cut", a2.zfe), u2.removeEventListener("copy", a2.zfe), u2.removeEventListener("paste", a2.FS), a2.BS.removeEventListener("paste", a2.HS)), (t4 = u2.parentElement) && (n3 = t4.parentElement) && n3.removeChild(t4), a2.RS = h, a2.BS = h), (e3 = a2.zS) && ((i3 = e3.parentElement) && i3.removeChild(e3), a2.zS = h), (r2 = a2.VS) && ((o2 = r2.parentElement) && o2.removeChild(r2), a2.VS = h), a2.jS = h;
          }, t3.prototype.YS = function(t4) {
            g(this.jS) ? this.RS.innerHTML = t4 : this.BS.value = t4;
          }, t3.prototype.ZS = function() {
            g(this.jS) ? this.RS.focus({ preventScroll: true }) : this.BS.focus({ preventScroll: true });
          }, t3.prototype.WS = function() {
            g(this.jS) ? document.execCommand("selectAll") : this.BS.select();
          }, t3.prototype.QS = function() {
            var n3, e3, i3, r2 = "", o2 = "", a2 = "";
            return g(this.jS) ? ((n3 = this.RS) && ((e3 = n3.getElementsByTagName("table")).length > 0 ? r2 = e3[0].outerHTML : (i3 = n3.getElementsByTagName("img")).length > 0 && (a2 = i3[0].src)), o2 = this.GS(this.RS, true)) : o2 = t3.formatClipboardData(this.BS.value), { html: r2, text: o2, image: a2 };
          }, t3.KS = function(n3, e3, r2, o2, a2, s2, c2, l2, d2, p2, g2, m2, b2, M2) {
            var C2, S2, T2, x2, A2, I2, k2, N2, j2, D, _, O, E, R, L, F, B, P;
            return !M2 && (f.chrome || f.edge || f.mozilla) && (t3.Foe = new v(["background-color", "color", "font", "white-space", "vertical-align", "text-align", "border-left", "border-right", "border-top", "border-bottom", "mso-number-format"])), C2 = n3.JS((0, i2.Ec)(r2, a2, o2, s2), c2), S2 = new RegExp(String.fromCharCode(32), "g"), T2 = "&nbsp;", x2 = false, A2 = false, c2 === u.SheetArea.viewport && (r2 < 0 && !(2 & ~e3) && (x2 = true), a2 < 0 && !(1 & ~e3) && (A2 = true)), r2 = C2.row, a2 = C2.col, o2 = C2.rowCount, s2 = C2.colCount, I2 = g2 ? n3.options.gridline : h, k2 = g2 ? { color: "#d4d4d4", showHorizontalGridline: true, showVerticalGridline: true } : h, N2 = b2 ? y(n3, r2, o2, c2) : h, j2 = b2 ? w(n3, a2, s2, c2) : h, D = !M2 && o2 * s2 > 4e3 && (f.safari || f.mozilla || i2.mt.Qf() && f.chrome), c2 === u.SheetArea.viewport ? (O = void 0, E = void 0, R = h, L = h, F = t3.XS(n3, r2, o2, a2, s2, 3, d2, p2, l2, C2, S2, T2, I2, m2, N2, j2, M2), A2 && (O = b2 ? w(n3, a2, s2, 2) : h, B = n3.getColumnCount(2), R = t3.XS(n3, r2, o2, 0, B, 2, d2, [], l2, C2, S2, T2, k2, m2, N2, O, M2)), x2 && (E = b2 ? y(n3, r2, o2, 1) : h, P = n3.getRowCount(1), L = t3.XS(n3, 0, P, a2, s2, 1, [], p2, l2, C2, S2, T2, k2, m2, E, j2, M2)), _ = t3.qS(F, R, L, M2, D)) : c2 === u.SheetArea.rowHeader ? (R = t3.XS(n3, r2, o2, a2, s2, 2, d2, p2, l2, C2, S2, T2, k2, m2, N2, j2, M2), _ = t3.qS(R, h, h, M2, D)) : c2 === u.SheetArea.colHeader && (L = t3.XS(n3, r2, o2, a2, s2, 1, d2, p2, l2, C2, S2, T2, k2, m2, N2, j2, M2), _ = t3.qS(L, h, h, M2, D)), t3.Foe && (t3.Foe = h), _;
          }, t3.qS = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2 = n3, c2 = 0, f2 = function(t4, n4) {
              var e4, i4 = [], r3 = t4.length;
              for (e4 = 0; e4 < r3; e4++) i4.push(t4[e4].concat(n4[e4]));
              return i4;
            };
            return e3 && (c2 = e3[0].length, s2 = f2(e3, n3)), i3 && (a2 = i3.length, c2 && (i3 = f2(u2 = t3.XS(h, 0, a2, 0, c2, h, [], [], false, h, h, h, h, false, [], [], r2), i3)), s2 = i3.concat(s2)), o2 && t3.$S(s2), t3.t5(s2, r2);
          }, t3.$S = function(t4) {
            var n3, e3 = t4.length;
            for (n3 = t4.length - 1; n3 >= 0 && -1 === t4[n3].join("").search(/>\S+</); n3--) e3 = n3;
            t4.length = e3;
          }, t3.t5 = function(n3, e3) {
            var i3, r2, o2, a2 = "", u2 = !!t3.Foe;
            for (u2 && (a2 += "<html>\r\n<head>\r\n<style>\r\n", a2 += t3.Foe.toString(), a2 += "</style>\r\n</head>\r\n<body>\r\n"), i3 = n3.length, a2 += e3 ? '<table style="border-collapse: collapse">' : '<table gc-sjs-clipboard="true" style="min-width:1px;min-height:1px;">', r2 = 0; r2 < i3; r2++) {
              for (a2 += "<tr>", o2 = 0; o2 < n3[r2].length; o2++) a2 += n3[r2][o2];
              a2 += "</tr>";
            }
            return a2 += "</table>", u2 && (a2 += "\r\n</body>\r\n</html>"), a2;
          }, t3.n5 = function(t4) {
            return t4 && t4.indexOf('gc-sjs-clipboard="true"') >= 0;
          }, t3.vI = function(n3, e3, r2, o2, a2, u2, s2) {
            var c2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = t3.convertVAlign, A2 = t3.convertHAlign, k2 = t3.convertLineBorder, N2 = o2, j2 = a2, D = {}, _ = n3.backColor;
            return _ && (D["background-color"] = _, N2 = false, j2 = false), (c2 = n3.foreColor) && (D.color = c2), (f2 = n3.font) && (u2 && (f2 = f2 + ", " + i2.FallbackFontFamily), D.font = f2.replace(/"/g, "'").replace(/([\.\d]+px)/, (function(t4) {
              return (3 * parseFloat(t4.substring(0, t4.length - 2)) / 4).toFixed(2) + "pt";
            }))), n3.wordWrap ? s2 ? (D["word-wrap"] = ["break-word"], D["white-space"] = ["break-spaces"]) : D["white-space"] = "normal" : D["white-space"] = "nowrap", h2 = n3.vAlign, l(h2) || (D["vertical-align"] = x2(h2)), d2 = n3.hAlign, l(d2) || (s2 && (d2 = i2.mt.gt(d2, e3)), (v2 = A2(d2)) && (D["text-align"] = v2)), p2 = "border-left", g2 = "border-right", m2 = "border-top", b2 = "border-bottom", (y2 = n3.borderLeft) && (D[p2] = k2(y2), j2 = false), (w2 = n3.borderRight) && (D[g2] = k2(w2), j2 = false), (M2 = n3.borderTop) && (D[m2] = k2(M2), N2 = false), (C2 = n3.borderBottom) && (D[b2] = k2(C2), N2 = false), S2 = "1px solid " + r2, N2 && (D[m2] = S2, D[b2] = S2), j2 && (D[p2] = S2, D[g2] = S2), T2 = n3.formatter, !s2 && T2 && (D["mso-number-format"] = I(T2)), D;
          }, t3.C2e = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2 = t4.row === n3 && t4.col === e3;
            if (i3 && r2) {
              for (a2 = t4.row; a2 < t4.row + t4.rowCount; a2++) if (i3[a2] > 0) {
                o2 = a2;
                break;
              }
              for (u2 = void 0, s2 = t4.col; s2 < t4.col + t4.colCount; s2++) if (r2[s2] > 0) {
                u2 = s2;
                break;
              }
              c2 = o2 === n3 && u2 === e3;
            }
            return c2;
          }, t3.g2e = function(t4, n3, e3) {
            var i3, r2 = n3;
            if (e3) for (i3 = t4; i3 < t4 + n3; i3++) e3[i3] <= 0 && r2--;
            return r2;
          }, t3.XS = function(n3, e3, r2, o2, a2, u2, c2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2) {
            var C2, S2, T2, x2, A2, I2, k2, N2, j2, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J;
            for (m2 && (C2 = m2.color, S2 = m2.showHorizontalGridline, T2 = m2.showVerticalGridline), x2 = [], A2 = [], I2 = [], null == c2 || c2.forEach((function(t4) {
              return A2[t4] = true;
            })), null == l2 || l2.forEach((function(t4) {
              return I2[t4] = true;
            })), k2 = 0; k2 < r2; k2++) if (!(A2[N2 = e3 + k2] || M2 && y2 && y2[N2] <= 0)) {
              for (j2 = [], D = 0; D < a2; D++) if (!(I2[_ = o2 + D] || M2 && w2 && w2[_] <= 0)) {
                if (O = "", E = void 0, R = void 0, L = 1, F = 1, B = 1, P = 1, d2 && n3 && ((E = n3.getSpan(N2, _, u2)) && t3.isPartSpan(E, v2, c2, l2) && (E = h), E)) {
                  if (E.row !== N2 || E.col !== _) {
                    if (!t3.C2e(E, N2, _, y2, w2)) continue;
                    N2 = E.row, _ = E.col;
                  }
                  R = n3.getActualStyle(N2, _, u2), G = n3.getActualStyle(E.row + E.rowCount - 1, E.col + E.colCount - 1, u2), !R.borderRight && G.borderRight && (R.borderRight = G.borderRight), !R.borderBottom && G.borderBottom && (R.borderBottom = G.borderBottom);
                }
                if (O += "<td", U = n3 && n3.getValue(N2, _, u2), d2 && n3) {
                  if (E && (L = t3.g2e(E.row, E.rowCount, y2), B = E.rowCount, L > 1 && (O += " rowSpan=" + L), F = t3.g2e(E.col, E.colCount, w2), P = E.colCount, F > 1 && (O += " colSpan=" + F)), R || (R = n3.getActualStyle(N2, _, u2)), H = M2 ? "padding: 0; " : "", V = t3.vI(R, U, C2, S2, T2, b2, M2), t3.Foe) O += ' class="' + (z = t3.Foe.add(V)) + '"';
                  else for (Y in V) V.hasOwnProperty(Y) && (H += Y + ": " + V[Y] + "; ");
                  Z = V.font ? i2.mt.vt(V.font) : 0, (H += t3.e5(N2, _, B, P, y2, w2, Z)) && (O += ' style="' + H + '"');
                }
                O += ">", W = void 0, Q = void 0, d2 && n3 && ((Q = !(1 & ~(K = R.textDecoration))) || (Q = !(8 & ~K)), (W = !(2 & ~K)) && (O += "<s>"), Q && (O += "<u>")), (J = n3 ? n3.getText(N2, _, u2) : "") ? (" " !== J[0] && " " !== J[J.length - 1] || "number" != typeof U || (J = J.trim()), J = s.j0(J), "number" != typeof U && (J = J.replace(p2, g2))) : f.chrome ? J = "" : f.safari && (J = "&nbsp;"), M2 || (J = J.replace(/\n/g, '<br style="mso-data-placement:same-cell;"/>')), O += J, d2 && (Q && (O += "</u>"), W && (O += "</s>")), O += "</td>", j2.push(O);
              }
              x2.push(j2);
            }
            return x2;
          }, t3.e5 = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2 = "", f2 = S(t4, e3, r2);
            return f2 > 0 && (f2 -= 1), (u2 = T(n3, i3, o2)) > 0 && (u2 -= 1), f2 >= 0 && u2 >= 0 && (c2 = "overflow: hidden;height: " + f2 + "px;line-height: " + (s2 = Math.min(a2, f2)) + "px; width: " + u2 + "px;max-width: " + u2 + "px;min-width: " + u2 + "px;"), c2;
          }, t3.prototype.PS = function() {
            var t4, n3, e3 = this;
            return e3.zS || ((t4 = document.createElement("div")).style.display = "none", t4.style.width = "0px", t4.style.height = "0px", t4.style.position = "absolute", t4.style.overflow = "hidden", t4.classList.add("gc-clipboard-container"), (n3 = e3.jS.getHost()) && n3.appendChild(t4), e3.zS = t4), e3.zS;
          }, t3.prototype.i5 = function() {
            var t4, n3, e3 = this;
            return e3.VS || ((t4 = document.createElement("div")).style.display = "none", (n3 = e3.jS.getHost()) && n3.appendChild(t4), e3.VS = t4), e3.VS;
          }, t3.prototype.r5 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this.PS();
            if (g2.innerHTML = t4, r2 = g2.getElementsByTagName("table"), o2 = n3.o5(), r2.length > 0) for (a2 = this.a5(r2[0], true, t4), s2 = e3 + (u2 = 0); u2 < a2.length; u2++, s2++) {
              if (c2 = a2[u2], o2) for (; 0 === n3.getRowHeight(s2); ) s2++;
              for (l2 = i3 + (f2 = 0); f2 < c2.length; f2++, l2++) if (h2 = c2[f2]) {
                if (o2) for (; 0 === n3.getColumnWidth(l2); ) l2++;
                n3.u5(s2, l2, h2.style), d2 = h2.rowSpan, v2 = h2.colSpan, (d2 > 1 || v2 > 1) && ((p2 = n3.getSpan(s2, l2)) ? (p2.row = s2, p2.col = l2, p2.rowCount = d2, p2.colCount = v2) : n3.addSpan(s2, l2, d2, v2));
              }
            }
            g2.innerHTML = "";
          }, t3.prototype.s5 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            n3.shapes ? ((r2 = n3.shapes.addPictureShape("", t4, 0, 0)).startRow(e3), r2.startColumn(i3)) : n3.pictures && (a2 = b(o2 = n3.pictures), (u2 = o2.add(a2, t4, 0, 0)).startRow(e3), u2.startColumn(i3));
          }, t3.prototype.a5 = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this.i5(), y2 = [], w2 = t3.getCssRulesMap(b2);
            for (r2 = 0; r2 < n3.rows.length; r2++) for (o2 = n3.rows[r2], y2[r2] || (y2[r2] = []), a2 = y2[r2], u2 = 0, s2 = 0; u2 < o2.cells.length; u2++) {
              for (c2 = o2.cells[u2]; a2[s2]; ) s2++;
              for (f2 = a2[s2] = {}, l2 = void 0, e3 && (l2 = t3.getStyleFromDOM(c2, i3, w2), f2.style = l2), h2 = N(c2.innerHTML), b2.innerHTML = h2, d2 = b2.innerText, h2.indexOf("<table") >= 0 && (d2 = d2.trim()), f2.text = d2, f2.rowSpan = c2.rowSpan, (v2 = c2.getAttribute("style")) && v2.search(/mso-ignore:\s*colspan/) >= 0 ? f2.colSpan = 1 : f2.colSpan = c2.colSpan, p2 = 0; p2 < c2.rowSpan; p2++) for (g2 = 0; g2 < c2.colSpan; g2++) 0 === p2 && 0 === g2 || (y2[r2 + p2] || (y2[r2 + p2] = []), (m2 = y2[r2 + p2])[s2 + g2] = { style: l2, text: "", rowSpan: 1, colSpan: 1 });
              s2 += c2.colSpan;
            }
            return b2.innerHTML = "", y2;
          }, t3.prototype.GS = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = [];
            if (t4) if ((i3 = t4.getElementsByTagName("table")).length > 0) for (r2 = this.a5(i3[0], false), o2 = new RegExp(String.fromCharCode(160), "g"), a2 = String.fromCharCode(32), u2 = 0, s2 = r2.length; u2 < s2; u2++) {
              for (f2 = 0, l2 = (c2 = r2[u2]).length; f2 < l2; f2++) d2 = false, (h2 = c2[f2] ? c2[f2].text : "").indexOf('"') >= 0 && (h2 = '"' + h2.replace(/"/g, '""') + '"', d2 = true), h2.indexOf("\n") >= 0 && (n3 ? (h2.indexOf("\r\n") >= 0 && (h2 = m(h2.split("\r\n"), true)), h2 = m(h2.split("\n"), true)) : d2 || (h2 = '"' + h2 + '"')), h2.indexOf("	") >= 0 && (h2 = m(h2.split("	"), true)), e3 && j(h2) || v2.push(h2.replace(o2, a2)), f2 < l2 - 1 && v2.push("	");
              u2 < s2 - 1 && v2.push("\r\n");
            }
            else v2.push(M(t4.innerText || t4.innerHTML).trim());
            return v2.join("");
          }, t3.prototype.c5 = function(t4) {
            var n3 = this, e3 = n3.QS();
            n3.DS && n3.DS.ki(i2.Events.ClipboardChanging, { sheet: n3.DS, sheetName: n3.DS.name(), copyData: { text: e3.text, html: e3.html }, ranges: n3._S, cancel: false, action: u.ClipboardActionType.reset }, true), n3.DS = h, n3._S = h, n3.ES = false, n3.TT = false, n3.jS.ki("ClipboardStatusChanged", { isReset: true, isSystemPasted: !!t4 });
          }, t3.isPartSpan = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (!n3.containsRange(t4)) return true;
            for (r2 = 0, o2 = e3; r2 < o2.length; r2++) if (a2 = o2[r2], t4.row <= a2 && a2 < t4.row + t4.rowCount) return true;
            for (u2 = 0, s2 = i3; u2 < s2.length; u2++) if (c2 = s2[u2], t4.col <= c2 && c2 < t4.col + t4.colCount) return true;
            return false;
          }, t3.formatClipboardData = function(t4) {
            var n3, e3, i3, r2, o2, a2 = [];
            if (t4) {
              for (n3 = '"', e3 = false, i3 = 0; i3 < t4.length; i3++) r2 = i3 > 0 ? t4[i3 - 1] : "", (o2 = t4[i3]) === n3 ? (e3 = !e3, a2.push(n3)) : e3 || "\n" !== o2 || "\r" === r2 ? a2.push(o2) : a2.push("\r\n");
              return a2.join("");
            }
            return "";
          }, t3.convertHAlign = function(t4) {
            var n3;
            return { 0: "left", 1: "center", 2: "right" }[t4];
          }, t3.convertVAlign = function(t4) {
            var n3;
            return { 0: "top", 1: "middle", 2: "bottom" }[t4];
          }, t3.convertLineBorder = function(t4) {
            var n3 = { 0: "none", 1: "solid", 2: "solid", 3: "dashed", 4: "dotted", 5: "solid", 6: "double", 7: "dotted", 8: "dashed", 9: "dashed", 10: "dashed", 11: "dashed", 12: "dashed", 13: "dashed" }, e3 = { 9: 0.5, 1: 0.5, 3: 0.5, 4: 0.5, 7: 0.5, 11: 0.5, 2: 1, 10: 1, 12: 1, 8: 1, 13: 1, 5: 1.5, 6: 1.5 };
            return e3[t4.style] + "pt " + n3[t4.style] + " " + t4.color;
          }, t3.convertToHAlign = function(t4) {
            var n3;
            return { left: 0, center: 1, right: 2 }[t4];
          }, t3.convertToVAlign = function(t4) {
            var n3;
            return { top: 0, middle: 1, bottom: 2 }[t4];
          }, t3.convertToLineBorder = function(t4, n3, e3) {
            var i3 = { none: 0, solid: 1, dashed: 3, dotted: 4, double: 6 };
            return (f.msie || f.edge) && "2px" === e3 ? i3.solid = 5 : (e3 = Math.round(10 * parseFloat(e3) * 3 / 4) / 10) <= 0.8 ? i3.solid = 1 : e3 <= 1 ? (i3.solid = 2, i3.dashed = 8) : e3 <= 1.5 && (i3.solid = 5), new a.LineBorder(t4, i3[n3]);
          }, t3.getCssRulesMap = function(t4) {
            var n3, e3, i3, r2, o2 = t4.querySelectorAll("style"), a2 = {};
            for (n3 = 0; n3 < o2.length; n3++) for (e3 = o2[n3].sheet, i3 = 0; i3 < e3.cssRules.length; i3++) a2[(r2 = e3.cssRules[i3]).selectorText] = r2.style;
            return a2;
          }, t3.convertToLineBorderByCssRule = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2 = null == t4 ? void 0 : t4.getPropertyValue(n3);
            if (s2 && (i3 = (e3 = k(s2)).borderColor, r2 = e3.borderStyle, o2 = e3.borderWidth, "none" !== r2)) return u2 = 1, "0.5pt" === o2 ? "dotted" === r2 ? u2 = 4 : "dashed" === r2 && (u2 = 3) : "1pt" === o2 ? u2 = "dashed" === r2 ? 8 : 2 : "1.5pt" === o2 && (u2 = "double" === r2 ? 6 : 5), new a.LineBorder(i3, u2);
          }, t3.convertToLineBorders = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2 = t3.convertToLineBorderByCssRule, h2 = t3.convertToLineBorder, d2 = l2(i3, "border-left");
            d2 ? n3.borderLeft = d2 : "none" !== (r2 = e3.borderLeftStyle) && (n3.borderLeft = h2(e3.borderLeftColor, r2, e3.borderLeftWidth)), (o2 = l2(i3, "border-right")) ? n3.borderRight = o2 : "none" !== (a2 = e3.borderRightStyle) && (n3.borderRight = h2(e3.borderRightColor, a2, e3.borderRightWidth)), (u2 = l2(i3, "border-top")) ? n3.borderTop = u2 : "none" !== (s2 = e3.borderTopStyle) && (n3.borderTop = h2(e3.borderTopColor, s2, e3.borderTopWidth)), (c2 = l2(i3, "border-bottom")) ? n3.borderBottom = c2 : "none" !== (f2 = e3.borderBottomStyle) && (n3.borderBottom = h2(e3.borderBottomColor, f2, e3.borderBottomWidth));
          }, t3.convertToTextDecoration = function(t4) {
            var n3;
            return { underline: 1, "line-through": 2, "underline line-through": 3, none: 0 }[t4];
          }, t3.isTransparent = function(t4) {
            return 0 === r.Common.ft._(t4).a;
          }, t3.isBlack = function(t4) {
            var n3 = r.Common.ft._(t4);
            return 0 !== n3.a && 0 === n3.r && 0 === n3.g && 0 === n3.b;
          }, t3.getStyleFromDOM = function(n3, e3, i3) {
            var r2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = n3.getElementsByTagName("font")[0], T2 = getComputedStyle(n3), x2 = n3.style, I2 = new a.Style(), k2 = T2.backgroundColor;
            return k2 && !t3.isTransparent(k2) && (I2.backColor = k2), r2 = T2.color, S2 && (r2 = S2.color), r2 && !t3.isBlack(r2) && (I2.foreColor = r2), S2 ? I2.font = o.W.f5(getComputedStyle(S2)) : (u2 = o.W.f5(T2)) && (u2 = u2.replace(/\/.+?\s/gi, " "), I2.font = u2), "normal" === (s2 = T2.whiteSpace) && (I2.wordWrap = true), c2 = T2.verticalAlign, l2 = t3.convertToVAlign, h2 = t3.convertToHAlign, d2 = t3.convertToTextDecoration, c2 && (I2.vAlign = l2(c2)), v2 = x2.textAlign, p2 = T2.textAlign, f.msie || f.edge ? I2.hAlign = h2("" !== v2 ? v2 : "general") : p2 && (I2.hAlign = h2(p2)), t3.convertToLineBorders(I2, T2, i3[".".concat(n3.className)]), g2 = d2(T2.textDecorationLine || T2.textDecoration), n3.getElementsByTagName("u").length > 0 && (g2 |= d2("underline")), n3.getElementsByTagName("s").length > 0 && (g2 |= d2("line-through")), 0 !== g2 && (I2.textDecoration = g2), (m2 = n3.classList[0]) && e3 && (b2 = e3.indexOf("." + m2), y2 = e3.indexOf("}", b2), (C2 = (M2 = (w2 = e3.substring(b2, y2 + 1)).match(new RegExp("\\." + m2 + "[\\s\\S]*?{[\\s\\S]*?mso-number-format:(.*)[\\s\\S]*?}"))) && M2[1]) && (";" === (C2 = C2.trim())[C2.length - 1] && (C2 = C2.substring(0, C2.length - 1)), I2.formatter = A(C2))), I2;
          }, t3;
        })(), n2.yM = p;
      }, "./dist/core/worksheet/feature-registers/index.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/core/worksheet/feature-registers/workbook-feature-register.js"), n2);
      }, "./dist/core/worksheet/feature-registers/workbook-feature-register.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        function a() {
          r.Workbook.ch("worksheet", { preSave: function(t3) {
            var n3 = t3.saveOptions, e3 = t3.workingPromiseArray, r2 = t3.isClone;
            (null == n3 ? void 0 : n3.fileType) === i2.OpenSaveFileType.excel && this.sheets.forEach((function(t4) {
              new o.SetBase64Helper().generate(t4, e3), t4.Mao(e3, r2);
            }));
          } });
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.registerWorkbookFeatures = void 0, i2 = e2("./dist/core/core.enum.js"), r = e2("./dist/core/workbook/workbook.js"), o = e2("./dist/core/worksheet/helpers/set-base64-helper.js"), n2.registerWorkbookFeatures = a;
      }, "./dist/core/worksheet/helpers/set-base64-helper.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SetBase64Helper = void 0, i2 = e2("./dist/core/core.enum.js"), r = (function() {
          function t3() {
            this.Ivr = {};
          }
          return t3.prototype.generate = function(t4, n3) {
            try {
              this.Ivr = {}, this.rdr(t4, n3);
            } catch (t5) {
            }
          }, t3.prototype.rdr = function(t4, n3) {
            var e3, r2, o, a, u, s, c, f = [], l = t4.getUsedRange(i2.UsedRangeType.formula);
            if (l) {
              for (e3 = l.row + l.rowCount - 1, r2 = l.col + l.colCount - 1, o = 0; o <= e3; o++) for (a = 0; a <= r2; a++) if ((u = t4.getFormula(o, a)) && u.toUpperCase().replace("=", "").startsWith("IMAGE") && (s = t4.getValue(o, a)) && s.value && s.value.url && !s.value.imageBase64Data) {
                if (c = this.Ivr[s.url]) {
                  s.imageBase64Data = c;
                  continue;
                }
                f.push(this.odr(s.value));
              }
              f.length > 0 && n3.push(Promise.all(f));
            }
          }, t3.prototype.odr = function(t4) {
            var n3 = this;
            return new Promise((function(e3) {
              var i3 = document.createElement("img");
              i3.crossOrigin = "anonymous", i3.onload = function() {
                t4.imageBase64Data = n3.jvr(i3), n3.Ivr[t4.url] = t4.imageBase64Data, e3(true);
              }, i3.onerror = function() {
                e3(true);
              }, i3.onabort = function() {
                e3(true);
              }, i3.src = t4.url;
            }));
          }, t3.prototype.jvr = function(t4) {
            var n3 = document.createElement("canvas");
            n3.width = t4.naturalWidth, n3.height = t4.naturalHeight, n3.getContext("2d").drawImage(t4, 0, 0);
            try {
              return n3.toDataURL();
            } catch (t5) {
              return "";
            }
          }, t3;
        })(), n2.SetBase64Helper = r;
      }, "./dist/core/worksheet/helpers/visible-row-col-cache.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.VisibleRowColCache = void 0;
        var e2 = (function() {
          function t3(t4) {
            this.Ix = false, this.Mf = t4, this.Hc();
          }
          return t3.prototype.Hc = function() {
            this.aBe = {}, this.uBe = {};
          }, t3.prototype.Nx = function(t4) {
            this.Ix = t4;
          }, t3.prototype.sD = function(t4, n3) {
            var e3, i2;
            return this.Ix || void 0 === n3 ? t4 + 1 : (void 0 === (i2 = (e3 = this.sBe(n3))[t4]) && (i2 = this.E_e(t4, n3), e3[t4] = i2), i2);
          }, t3.prototype.E_e = function(t4, n3) {
            var e3, i2 = this.Mf.getRowCount(n3), r = this.Mf;
            for (e3 = t4 + 1; e3 < i2; e3++) if (r.getRowVisible(e3, n3)) return e3;
            return i2;
          }, t3.prototype.sBe = function(t4) {
            var n3 = this.aBe[t4];
            return n3 || (this.aBe[t4] = {}, this.aBe[t4]);
          }, t3.prototype.R_e = function(t4, n3) {
            var e3, i2;
            return this.Ix || void 0 === n3 ? t4 + 1 : (void 0 === (i2 = (e3 = this.cBe(n3))[t4]) && (i2 = this.D_e(t4, n3), e3[t4] = i2), i2);
          }, t3.prototype.D_e = function(t4, n3) {
            var e3, i2 = this.Mf.getColumnCount(n3), r = this.Mf;
            for (e3 = t4 + 1; e3 < i2; e3++) if (r.getColumnVisible(e3, n3)) return e3;
            return i2;
          }, t3.prototype.cBe = function(t4) {
            var n3 = this.uBe[t4];
            return n3 || (this.uBe[t4] = {}, this.uBe[t4]);
          }, t3;
        })();
        n2.VisibleRowColCache = e2;
      }, "./dist/core/worksheet/paste-special-dialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T = this && this.qKr || (A = function(t3, n3) {
          return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, A(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          A(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), x = this && this.nJr || function() {
          return x = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, x.apply(this, arguments);
        }, A;
        function I(t3, n3, e3) {
          var i3, r2 = "", o2 = function(i4) {
            var o3 = t3.slice(i4, i4 + n3);
            r2 += '<div class="gc-sjs-vertical-container gc-sjs-column-container">', o3.forEach((function(t4, n4) {
              r2 += h(t4, e3, e3 + (n4 + i4));
            })), r2 += "</div>";
          };
          for (i3 = 0; i3 < t3.length; i3 += n3) o2(i3);
          return r2;
        }
        function k(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t3.getCustomNames();
          for (e3 = 0; e3 < f2.length; e3++) i3 = f2[e3], n3.addCustomName(i3.getName(), "=true", 0, 0, i3.getComment());
          for (n3.setSheetCount(t3.getSheetCount()), e3 = 0; e3 < t3.getSheetCount(); e3++) if (r2 = t3.getSheet(e3), o2 = n3.getSheet(e3), r2 && o2) for (a2 = r2.getCustomNames(), u2 = 0; u2 < a2.length; u2++) s2 = a2[u2], o2.addCustomName(s2.getName(), "=true", 0, 0, s2.getComment());
          (c2 = function(t4) {
            var e4, i4, r3;
            if (t4 && (i4 = null === (e4 = t4.internalGetCustomFunctions) || void 0 === e4 ? void 0 : e4.call(t4))) for (r3 in i4) i4.hasOwnProperty(r3) && n3.addCustomFunction(i4[r3]);
          })(t3), c2(t3.getActiveSheet());
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.PasteSpecialDialog = void 0, i2 = e2("Common"), r = e2("./dist/core/core.ns.js"), o = e2("./dist/core/core.enum.js"), a = e2("./dist/core/util/basedialog.js"), u = e2("./dist/core/workbook/workbook.js"), s = new i2.Common.ResourceManager(r.SR, "Sheets"), c = s.getResource.bind(s), f = function() {
          return [{ value: o.ClipboardPasteOptions.all, text: c().pasteSpecialOptionDialog.pasteOptions.all }, { value: o.ClipboardPasteOptions.formulas, text: c().pasteSpecialOptionDialog.pasteOptions.formulas }, { value: o.ClipboardPasteOptions.values, text: c().pasteSpecialOptionDialog.pasteOptions.values }, { value: o.ClipboardPasteOptions.formatting, text: c().pasteSpecialOptionDialog.pasteOptions.formats }, { value: o.ClipboardPasteOptions.comments, text: c().pasteSpecialOptionDialog.pasteOptions.comments }, { value: o.ClipboardPasteOptions.validation, text: c().pasteSpecialOptionDialog.pasteOptions.validation }, { value: o.ClipboardPasteOptions.usingSourceTheme, text: c().pasteSpecialOptionDialog.pasteOptions.usingSourceTheme }, { value: o.ClipboardPasteOptions.noBorder, text: c().pasteSpecialOptionDialog.pasteOptions.noBorders }, { value: o.ClipboardPasteOptions.columnWidths, text: c().pasteSpecialOptionDialog.pasteOptions.columnWidth }, { value: o.ClipboardPasteOptions.formulasAndNumberFormatting, text: c().pasteSpecialOptionDialog.pasteOptions.formulasAndNumberFormats }, { value: o.ClipboardPasteOptions.valuesAndNumberFormatting, text: c().pasteSpecialOptionDialog.pasteOptions.valueAndNumberFormats }];
        }, l = function() {
          return [{ value: o.PasteOperationOptions.none, text: c().pasteSpecialOptionDialog.operationOptions.none }, { value: o.PasteOperationOptions.add, text: c().pasteSpecialOptionDialog.operationOptions.add }, { value: o.PasteOperationOptions.subtract, text: c().pasteSpecialOptionDialog.operationOptions.subtract }, { value: o.PasteOperationOptions.multiply, text: c().pasteSpecialOptionDialog.operationOptions.multiply }, { value: o.PasteOperationOptions.divide, text: c().pasteSpecialOptionDialog.operationOptions.divide }, { value: o.PasteOperationOptions.transform, text: c().pasteSpecialOptionDialog.operationOptions.transform }];
        }, h = function(t3, n3, e3) {
          return '<div><input type="radio" value="'.concat(t3.value, '" name="').concat(n3, '" id="').concat(e3, '"/><label for="').concat(e3, '">').concat(t3.text, "</label></div>");
        }, d = "pasteOptions", v = "operationOptions", p = "skipBlanks", g = "transpose", m = "pasteLink", y = "gc-sjs-".concat(b = "transform", "-formula-container"), w = "gc-sjs-".concat(b, "-scope-container"), M = "gc-sjs-".concat(b, "-formula-editor-input"), C = "gc-sjs-".concat(b, "-formula-editor-host"), S = (function(t3) {
          function n3(n4, i3, r2, a2, s2) {
            var c2, f2 = t3.call(this, i3, r2, a2) || this;
            return f2.vpt = n4, f2.data = { pasteOptions: o.ClipboardPasteOptions.all, operationOptions: o.PasteOperationOptions.none, skipBlanks: false, transpose: false, pasteLink: false, transformFormula: "", transformScope: o.TransformScope.byCell }, f2.xye = false, f2.Euo = [o.ClipboardPasteOptions.all, o.ClipboardPasteOptions.formulas, o.ClipboardPasteOptions.values, o.ClipboardPasteOptions.valuesAndNumberFormatting, o.ClipboardPasteOptions.formulasAndNumberFormatting], f2.getFormulaEditorInput = function() {
              return f2.Wc[0].querySelector(".".concat(M));
            }, f2.getSpreadHostContainer = function() {
              return f2.Wc[0].querySelector(".".concat(C));
            }, f2.Eao = function() {
              f2.data.transformFormula = f2.il.text();
            }, f2.Lao = function() {
              var t4, n5, i4, r3, o2, a3 = f2.getFormulaEditorInput(), s3 = e2("FormulaTextBox");
              s3 ? (f2.Fao = document.createElement("div"), f2.Fao.style.display = "none", null === (t4 = f2.getSpreadHostContainer()) || void 0 === t4 || t4.appendChild(f2.Fao), f2.il = new s3.FormulaTextBox(a3, { rangeSelectMode: false, absoluteReference: false, acceptNoPrefixFormula: true }), f2.il.isOutFormulaTextBox(true), ((null === (i4 = (n5 = f2.il).getPopupElements) || void 0 === i4 ? void 0 : i4.call(n5)) || []).forEach((function(t5) {
                return t5.classList.add("sjs-designer-popup");
              })), o2 = new u.Workbook(f2.Fao, { allowDynamicArray: null !== (r3 = f2.uZ) && void 0 !== r3 && r3 }), k(f2.vpt, o2), f2.kuo = o2, o2.commandManager().setShortcutKey("", 13, false, false, false, false), o2.commandManager().setShortcutKey("", 9, false, false, false, false), f2.il.workbook(o2), f2.il.bind("TextChanged", f2.il, f2.Eao)) : a3.addEventListener("change", f2.Eao);
            }, f2.Bao = function() {
              var t4, n5;
              f2.il || f2.getFormulaEditorInput().removeEventListener("change", f2.Eao), null === (t4 = f2.kuo) || void 0 === t4 || t4.destroy(), f2.kuo = null, null === (n5 = f2.il) || void 0 === n5 || n5.destroy(), f2.il = null;
            }, c2 = e2("SheetsCalc"), f2.xye = !!c2, f2.uZ = s2, f2;
          }
          return T(n3, t3), n3.prototype.$c = function(n4) {
            this.Dn(), t3.prototype.$c.call(this, n4), this.Nye(), this.kye();
          }, n3.prototype.rQ = function(t4) {
            this.submitCallback = t4, this.$c();
          }, n3.prototype._ye = function(t4, n4) {
            return this.Wc[0].querySelector('input[name="'.concat(t4, '"][value="').concat(n4, '"]'));
          }, n3.prototype.Dn = function() {
            this.Wc.html(this.Dye), this._ye(d, this.data.pasteOptions).checked = true, this.xye && (this._ye(v, this.data.operationOptions).checked = true);
          }, n3.prototype.kye = function() {
            var t4 = this.Wc.width(), n4 = this.Wc.height(), e3 = this.Fc.width(), i3 = this.Fc.height();
            this.Wc.css(["position", "left", "top"], ["absolute", (e3 - t4) / 2 + "px", (i3 - n4) / 2 + "px"]);
          }, Object.defineProperty(n3.prototype, "Dye", { get: function() {
            return '\n<div class="gc-sjs-paste-special-dialog-container">\n    <div class="gc-sjs-paste-special-dialog-title gc-sjs-horzation-container">\n        <span class="gc-sjs-paste-special-dialog-title-text">'.concat(c().pasteSpecialOptionDialog.title, '</span>\n        <span class="sjs-cancel-icon" data-cmd="close">×</span>\n    </div>\n    <div class="gc-sjs-paste-special-dialog-content">\n        <div class="gc-sjs-horzation-container">\n            <span>').concat(c().pasteSpecialOptionDialog.paste, '</span>\n            <div class="gc-sjs-separator"></div>\n        </div>\n        <div class="gc-sjs-paste-special-dialog-paste-options gc-sjs-horzation-container">\n            ').concat(I(f(), 6, d), "\n        </div>\n        ").concat(this.xye ? '\n            <div class="gc-sjs-horzation-container">\n                <span>'.concat(c().pasteSpecialOptionDialog.operation, '</span>\n                <div class="gc-sjs-separator"></div>\n            </div>\n            <div class="gc-sjs-paste-special-dialog-operation-options gc-sjs-horzation-container">\n                ').concat(I(l(), 3, v), "\n            </div>\n         ") : "", '\n        <div class="gc-sjs-horzation-container" id="').concat(y, '" style="display: none;">\n            <div class="gc-sjs-column-container">\n                <span class="gc-sjs-paste-special-dialog-transform-formula-label">').concat(c().pasteSpecialOptionDialog.transformOptions.formula, '</span>\n                <span class="gc-sjs-paste-special-dialog-transform-formula-prefix">').concat(c().pasteSpecialOptionDialog.transformOptions.formulaPrefix, '</span>\n                <div class="').concat(C, '">\n                        <input class="').concat(M, '" placeholder="').concat(c().pasteSpecialOptionDialog.transformOptions.formulaPlaceholder, '"></input>\n                </div>\n                <span class="gc-sjs-paste-special-dialog-transform-formula-suffix">').concat(c().pasteSpecialOptionDialog.transformOptions.formulaSuffix, '</span>\n            </div>\n        </div>\n        <div class="gc-sjs-horzation-container" id="').concat(w, '" style="display: none;">\n            <div class="gc-sjs-column-container">\n                <span class="gc-sjs-paste-special-dialog-transform-scope-label">').concat(c().pasteSpecialOptionDialog.transformOptions.scope, '</span>\n                <select id="').concat(b, '-scope" class="gc-sjs-transform-scope-select">\n                    <option value="').concat(o.TransformScope.byCell, '">').concat(c().pasteSpecialOptionDialog.transformOptions.byCell, '</option>\n                    <option value="').concat(o.TransformScope.byRow, '">').concat(c().pasteSpecialOptionDialog.transformOptions.byRow, '</option>\n                    <option value="').concat(o.TransformScope.byColumn, '">').concat(c().pasteSpecialOptionDialog.transformOptions.byColumn, '</option>\n                    <option value="').concat(o.TransformScope.byRange, '">').concat(c().pasteSpecialOptionDialog.transformOptions.byRange, '</option>\n                </select>\n            </div>\n        </div>\n        <div class="gc-sjs-separator"></div>\n        <div class="gc-sjs-horzation-container">\n            <div class="gc-sjs-column-container">\n                <input type="checkbox" id="').concat(p, '"/><label for="').concat(p, '">').concat(c().pasteSpecialOptionDialog.skipBlanks, '</label>\n            </div>\n            <div class="gc-sjs-column-container">\n                <input type="checkbox" id="').concat(g, '"/><label for="').concat(g, '">').concat(c().pasteSpecialOptionDialog.transpose, '</label>\n            </div>\n        </div>\n    </div>\n    <div class="gc-sjs-paste-special-dialog-footer gc-sjs-horzation-container">\n        ').concat(this.xye ? '<span class="gc-sjs-dialog-button" data-cmd="'.concat(m, '">').concat(c().pasteSpecialOptionDialog.pasteLink, "</span>") : "<span></span>", '\n        <div>\n            <span class="gc-sjs-dialog-button" data-cmd="submit">').concat(c().ok, '</span>\n            <span class="gc-sjs-dialog-button" data-cmd="close">').concat(c().cancel, "</span>\n        </div>\n    </div>\n</div>\n        ");
          }, enumerable: false, configurable: true }), n3.prototype.submit = function(t4) {
            var n4 = t4 || this.data;
            this.submitCallback && this.submitCallback(n4), this.close();
          }, n3.prototype.jye = function(t4) {
            var n4 = t4.target, e3 = n4.dataset.cmd;
            if (e3) switch (e3) {
              case "close":
                this.close();
                break;
              case "submit":
                this.submit();
                break;
              case m:
                this.submit(x(x({}, this.data), { pasteLink: true }));
            }
          }, n3.prototype.Oye = function(t4) {
            var n4, e3, i3 = t4.target;
            i3.name ? (i3.name === d && i3.checked && (this.data.pasteOptions = +i3.value, this.Euo.includes(this.data.pasteOptions) || (this.data.operationOptions = o.PasteOperationOptions.none, this.Wc[0].querySelector("#".concat(v, "0")).checked = true)), i3.name === v && i3.checked && (this.data.operationOptions = +i3.value, n4 = this.data.operationOptions === o.PasteOperationOptions.transform, (e3 = document.querySelector("#".concat(y))).style.display = n4 ? "block" : "none", n4 ? (this.data.transformFormula = "", this.data.transformScope = o.TransformScope.byCell, this.il || this.Lao()) : (delete this.data.transformFormula, delete this.data.transformScope))) : (i3.id === p && (this.data.skipBlanks = i3.checked), i3.id === g && (this.data.transpose = i3.checked), i3.id === "".concat(b, "-scope") && (this.data.transformScope = +i3.value)), this.Eye();
          }, n3.prototype.Nye = function() {
            var t4, n4 = this, e3 = function(t5) {
              n4.jye(t5);
            }, i3 = function(t5) {
              n4.Oye(t5);
            }, r2 = function(t5) {
              "Escape" !== t5.key && 27 !== t5.keyCode || n4.close(), "Enter" !== t5.key && 13 !== t5.keyCode || n4.submit();
            };
            this.Wc.bind("click", e3), this.Wc.bind("change", i3), document.addEventListener("keydown", r2), t4 = this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")), this.wpt = function() {
              n4.Wc.unbind("click", e3), n4.Wc.unbind("change", i3), document.removeEventListener("keydown", r2), t4();
            };
          }, n3.prototype.close = function() {
            this.wpt && this.wpt(), this.Bao(), t3.prototype.close.call(this);
          }, n3.prototype.Eye = function() {
            var t4, n4, e3, i3, r2, a2, u2, s2, c2, f2;
            this.xye && (n4 = [(t4 = o.ClipboardPasteOptions).formatting, t4.comments, t4.validation], e3 = [t4.all, t4.noBorder], i3 = this.data.operationOptions === o.PasteOperationOptions.transform, r2 = document.querySelector("#".concat(y)), a2 = document.querySelector("#".concat(w)), u2 = this.Wc[0].querySelectorAll("[name=".concat(v, "]")), s2 = n4.includes(this.data.pasteOptions), c2 = !this.Euo.includes(this.data.pasteOptions), u2.forEach((function(t5) {
              return t5.disabled = s2 || Number(t5.value) === o.PasteOperationOptions.transform && c2;
            })), i3 && (r2.classList.toggle("disable", c2), a2.classList.toggle("disable", c2)), r2.style.display = i3 ? "block" : "none", a2.style.display = i3 ? "block" : "none", f2 = this.Wc[0].querySelector('[data-cmd="'.concat(m, '"]')), !e3.includes(this.data.pasteOptions) || this.data.operationOptions !== o.PasteOperationOptions.none || this.data.skipBlanks || this.data.transpose ? f2.classList.add("disable") : f2.classList.remove("disable"));
          }, n3;
        })(a.Ase), n2.PasteSpecialDialog = S;
      }, "./dist/core/worksheet/style.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z = this && this.nJr || function() {
          return z = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, z.apply(this, arguments);
        }, Y = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function Z(t3) {
          var n3, e3 = {};
          return t3 && t3.option && t3.option.dataSource ? (n3 = t3.option.dataSource, t3.option.dataSource = y, (e3 = d(t3)).option.dataSource = n3, t3.option.dataSource = n3) : e3 = d(t3), e3;
        }
        function W(t3) {
          return !(!t3 || "object" != typeof t3) && (!t3.patternColor && !t3.stops);
        }
        function Q(t3) {
          return t3 && t3.stops ? t3 : t3 && t3.type ? { type: ht(c.PatternType, t3.type, y), patternColor: t3.patternColor, backgroundColor: t3.backgroundColor } : t3;
        }
        function K(t3) {
          return t3 ? new P(t3.color, ht(F, t3.style, y)) : y;
        }
        function J(t3) {
          var n3, e3, r2, a2 = i2.Formatter && i2.Formatter.GeneralFormatter;
          return a2 ? (n3 = t3, (e3 = t3.typeName) ? (r2 = o.getTypeFromString(e3)) && (n3 = new r2()).fromJSON(t3) : n3 = new a2(t3.formatCached, t3.customerCultureName), n3) : t3;
        }
        function X(t3) {
          return t3 && "object" == typeof t3 ? J(t3) : t3;
        }
        function q(t3) {
          var n3, e3, i3, r2;
          if (t3) {
            if (!(e3 = (n3 = { checkbox: "5", combobox: "7", hyperlink: "8", radioButtonList: "11", checkboxList: "12", fileUpload: "19", diagonal: "20" })[t3.type])) return vt(t3, true, void 0);
            if (i3 = u.ti[e3]) return (r2 = new i3()).Je(t3), r2;
          }
          return t3;
        }
        function $(t3) {
          return t3 ? { alignment: ht(c.LabelAlignment, t3.alignment, y), visibility: ht(c.LabelVisibility, t3.visibility, y), font: t3.font, foreColor: t3.foreColor, margin: t3.margin } : y;
        }
        function tt(t3) {
          var n3 = t3;
          return n3 && (n3 = d(t3), v(t3.position) || (n3.position = ht(s.CornerPosition, t3.position))), n3;
        }
        function nt(t3) {
          return t3 ? { cornerFold: tt(t3.cornerFold), icons: t3.icons && t3.icons.length > 0 ? t3.icons.map((function(t4) {
            return { src: t4.src, width: t4.width, height: t4.height, position: ht(c.IconPosition, t4.position, y) };
          })) : y } : y;
        }
        function et(t3) {
          return t3 ? t3.map((function(t4) {
            return { position: ht(c.ButtonPosition, t4.position, y), useButtonStyle: t4.useButtonStyle, enabled: t4.enabled, width: t4.width, caption: t4.caption, imageSrc: t4.imageSrc, imageSize: t4.imageSize, captionAlign: ht(c.CaptionAlignment, t4.captionAlign, y), command: t4.command, imageType: ht(c.ButtonImageType, t4.imageType, y), visibility: ht(c.ButtonVisibility, t4.visibility, y), hoverBackColor: t4.hoverBackColor, buttonBackColor: t4.buttonBackColor };
          })) : y;
        }
        function it(t3) {
          var n3, e3, i3, o2, a2, u2, s2, f2;
          if (t3) return n3 = r.GC$.extend(true, {}, t3), e3 = t3.calendarPage, v(e3) || (n3.calendarPage = ht(c.CalendarPage, e3)), i3 = t3.startDay, v(i3) || (n3.startDay = c.CalendarStartDay[i3]), (o2 = t3.layout) && (a2 = o2.direction, v(a2) || (n3.layout.direction = c.LayoutDirection[a2]), u2 = o2.displayAs, v(u2) || (n3.layout.displayAs = c.LayoutDisplayAs[u2])), s2 = t3.valueType, v(s2) || (n3.valueType = c.DropdownListValue[s2]), f2 = t3.direction, v(f2) || (n3.direction = c.LayoutDirection[f2]), n3;
        }
        function rt(t3) {
          return t3 ? t3.map((function(t4) {
            return { type: ht(c.DropDownType, t4.type, y), option: it(t4.option), submitCommand: t4.submitCommand };
          })) : y;
        }
        function ot(t3) {
          var n3;
          return n3 = "lineThroughUnderline" === t3 ? c.TextDecorationType.lineThrough | c.TextDecorationType.underline : "lineThroughDoubleUnderline" === t3 ? c.TextDecorationType.lineThrough | c.TextDecorationType.doubleUnderline : ht(c.TextDecorationType, t3, c.TextDecorationType.none);
        }
        function at(t3) {
          var n3, e3, i3, r2 = d(t3.decoration);
          if (!v(r2) && !v(r2.icons)) for (r2.icons = [], n3 = t3.decoration.icons, e3 = 0; e3 < n3.length; e3++) i3 = n3[e3], r2.icons.push(d(i3));
          return r2;
        }
        function ut(t3, n3) {
          var e3, i3, r2, o2;
          for (v(t3.decoration) && (t3.decoration = {}), v(t3.decoration.icons) && (t3.decoration.icons = []), e3 = t3.decoration.icons, i3 = n3.decoration.icons, r2 = 0; r2 < i3.length; r2++) o2 = i3[r2], e3.push(d(o2));
          return e3;
        }
        function st(t3) {
          if (!(t3 && t3 instanceof Object)) return t3;
          var n3 = {};
          return Object.keys(t3).forEach((function(e3) {
            var i3 = t3[e3];
            v(i3) || (n3[e3] = i3 instanceof Array ? JSON.parse(JSON.stringify(i3)) : i3 instanceof Object ? st(i3) : i3);
          })), n3;
        }
        function ct(t3) {
          return t3 && t3.type !== y;
        }
        function ft(t3, n3) {
          var e3 = t3.backColor, i3 = n3.backColor;
          e3 === y ? t3.backColor = st(i3) : ct(e3) ? (e3.backgroundColor === y && ("string" == typeof i3 ? e3.backgroundColor = i3 : ct(i3) && i3.backgroundColor && (e3.backgroundColor = i3.backgroundColor)), e3.patternColor === y && ct(i3) && i3.patternColor && (e3.patternColor = i3.patternColor)) : ct(i3) && "string" == typeof e3 && (t3.backColor = { type: i3.type, backgroundColor: e3, patternColor: i3.patternColor });
        }
        function lt(t3, n3) {
          v(t3.applyFill) || (n3.applyFill = t3.applyFill), v(t3.applyFont) || (n3.applyFont = t3.applyFont), v(t3.applyAlignment) || (n3.applyAlignment = t3.applyAlignment), v(t3.applyBorder) || (n3.applyBorder = t3.applyBorder), v(t3.applyProtection) || (n3.applyProtection = t3.applyProtection), v(t3.applyNumberFormat) || (n3.applyNumberFormat = t3.applyNumberFormat);
        }
        function ht(t3, n3, e3) {
          var i3;
          if (e3 = e3 || y, !v(n3)) {
            if (!isNaN(n3)) return parseInt(n3, 10);
            i3 = t3[n3];
          }
          return v(i3) ? e3 : i3;
        }
        function dt(t3, n3, e3, i3) {
          var r2 = vt(n3, e3, i3);
          t3.cellType = r2;
        }
        function vt(t3, n3, e3) {
          var i3, r2, a2, s2, c2 = t3;
          if (n3 && t3) {
            if (i3 = t3.Ke && t3.Ke()) return c2;
            t3.toJSON && (t3 = t3.toJSON()), r2 = u.ti, a2 = t3.typeName, (s2 = r2[t3.type] || r2[a2] || o.getTypeFromString(a2)) ? (c2 = new s2()).fromJSON(t3, e3) : c2 = y;
          }
          return c2;
        }
        function pt(t3, n3, e3, i3) {
          var r2, o2;
          if (n3 === w && (t3.cellButtons = n3), n3) {
            if (r2 = n3, e3) for (r2 = [], o2 = 0; o2 < n3.length; o2++) r2.push(d(n3[o2]));
            t3.cellButtons = r2;
          }
        }
        function gt(t3, n3, e3, i3) {
          if (n3 === w && (t3.decoration = n3), n3) {
            var r2 = n3;
            e3 && (r2 = d(n3), n3.icons && n3.icons.length > 0 && (r2.icons = n3.icons.map((function(t4) {
              return d(t4);
            })))), t3.decoration = r2;
          }
        }
        function mt(t3, n3, e3, i3) {
          var r2, o2;
          if (n3 === w && (t3.dropDowns = n3), n3) {
            if (r2 = Y([], n3, true), e3) for (r2 = [], o2 = 0; o2 < n3.length; o2++) r2.push(d(n3[o2]));
            t3.dropDowns = r2;
          }
        }
        function bt(t3, n3, e3) {
          var i3 = n3;
          e3 && n3 && "object" == typeof n3 && (n3.toJSON && (n3 = n3.toJSON()), i3 = J(n3)), t3.formatter = i3;
        }
        function yt(t3, n3, e3) {
          var r2, o2, a2 = n3;
          e3 && n3 && (n3.toJSON && (n3 = n3.toJSON()), (o2 = (r2 = i2.Formatter) && r2.GeneralFormatter) && ((a2 = new o2(n3.formatCached, n3.customerCultureName)).isAuto = true)), t3._autoFormatter = a2;
        }
        function wt(t3, n3, e3) {
          n3 && (n3 = t3.getColor(n3)) && e3(n3);
        }
        function Mt(t3, n3, e3) {
          return t3 === T ? 2 === e3 || 1 === e3 ? 1 === n3 : 3 === n3 : t3 === x ? 2 === e3 || 1 === e3 ? 1 === n3 : 0 === n3 : t3 === A ? 1 === n3 : t3 === M ? n3 === y : void 0;
        }
        function Ct(t3, n3, e3, i3, r2, o2) {
          for (var a2, u2, s2 = t3.parentName; s2 && s2 !== a2 && (u2 = e3.u8(s2)); ) n3.h5(u2, i3, r2, o2), s2 = u2.parentName, a2 = u2.name;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.composeParentStyle = n2.Style = n2.composePatternFillAndBackColor = n2.createCellType = n2.Juo = n2.LineBorder = n2.LineBorderComposeLevel = n2.LineStyle = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/worksheet/stylehelper.js"), u = e2("./dist/core/celltype/celltype.ns.js"), s = e2("./dist/core/core.interface.js"), c = e2("./dist/core/core.enum.js"), f = r.GC$.each, l = o.mt, h = l.T1, d = i2.Common.lt.tv, v = i2.Common.lt.ht, p = a.W.F2e, g = i2.Common.ct.W0, m = i2.Common.ct.Q0, b = i2.Common.ct.dJ, y = void 0, w = null, M = "autoFormatter", C = "formatter", S = "cellType", T = "hAlign", x = "vAlign", A = "imeMode", I = "labelOptions", k = "cellButtons", N = "dropDowns", j = "applyFont", D = "applyFill", _ = "applyAlignment", O = "applyBorder", E = "applyNumberFormat", R = "applyProtection", L = { borderLeft: true, borderRight: true, borderTop: true, borderBottom: true, borderHorizontal: true, borderVertical: true, diagonalDown: true, diagonalUp: true }, (function(t3) {
          t3[t3.empty = 0] = "empty", t3[t3.thin = 1] = "thin", t3[t3.medium = 2] = "medium", t3[t3.dashed = 3] = "dashed", t3[t3.dotted = 4] = "dotted", t3[t3.thick = 5] = "thick", t3[t3.double = 6] = "double", t3[t3.hair = 7] = "hair", t3[t3.mediumDashed = 8] = "mediumDashed", t3[t3.dashDot = 9] = "dashDot", t3[t3.mediumDashDot = 10] = "mediumDashDot", t3[t3.dashDotDot = 11] = "dashDotDot", t3[t3.mediumDashDotDot = 12] = "mediumDashDotDot", t3[t3.slantedDashDot = 13] = "slantedDashDot";
        })(F = n2.LineStyle || (n2.LineStyle = {})), (function(t3) {
          t3[t3.conditionalFormat = 1] = "conditionalFormat", t3[t3.cell = 10] = "cell", t3[t3.table = 20] = "table", t3[t3.row = 30] = "row", t3[t3.column = 40] = "column", t3[t3.sheet = 50] = "sheet";
        })(B = n2.LineBorderComposeLevel || (n2.LineBorderComposeLevel = {})), P = (function() {
          function t3(t4, n3, e3) {
            this.color = t4 || "black", this.style = n3 || 0, this.level = e3;
          }
          return t3.prototype.Gf = function() {
            return new t3(this.color, this.style, this.level);
          }, t3.prototype.toJSON = function() {
            var t4 = {}, n3 = this, e3 = n3.color, i3 = n3.style;
            return "black" !== e3 && (t4.color = e3), t4.style = i3, t4;
          }, t3.prototype.fromJSON = function(t4, n3) {
            if (t4) {
              var e3 = this, i3 = t4.color, r2 = t4.style;
              h(i3) && (e3.color = i3), h(r2) && (e3.style = r2);
            }
          }, t3.YC = function(t4) {
            var n3 = t4 && t4.style, e3 = { 9: 1, 1: 1, 3: 1, 4: 1, 7: 1, 11: 1, 2: 2, 10: 2, 12: 2, 8: 2, 13: 2, 5: 3, 6: 3 };
            return e3[n3] || 0;
          }, t3;
        })(), n2.LineBorder = P, n2.Juo = J, n2.createCellType = q, n2.composePatternFillAndBackColor = ft, G = ["backColor", "foreColor", T, x, "font", "themeFont", C, "borderLeft", "borderTop", "borderRight", "borderBottom", "locked", "textIndent", "wordWrap", "showEllipsis", "shrinkToFit", "backgroundImage", S, "backgroundImageLayout", "tabStop", "textDecoration", A, "name", "parentName", "watermark", "cellPadding", I, "quotePrefix", "diagonalDown", "diagonalUp", "isVerticalText", k, N, "textOrientation", "decoration", "mask", "fontStyle", "fontWeight", "fontSize", "fontFamily", "hidden", "textDirection", "allowEditInCell"], U = ["_showTip", "_fontVariant", "_fontStretch", "_lineHeight"], H = [j, D, _, O, E, R], V = (function() {
          function t3() {
            var n3, e3, i3, r2, o2 = [];
            for (n3 = 0; n3 < arguments.length; n3++) o2[n3] = arguments[n3];
            if ((e3 = this)._id = t3.l5, t3.l5++, 0 !== o2.length) if (i3 = o2[0], 1 === o2.length && W(i3)) e3.Je(i3);
            else for (r2 = 0; r2 < G.length && r2 < o2.length; r2++) e3[G[r2]] = o2[r2];
          }
          return t3.xp = function(t4, n3) {
            var e3 = t4.parentName;
            e3 && !n3.getNamedStyle(e3) && delete t4.parentName;
          }, t3.prototype.compose = function(t4, n3, e3, i3, r2) {
            this.h5(t4, n3, e3, i3, r2);
          }, t3.prototype.h5 = function(t4, n3, e3, i3, r2) {
            var o2, u2, s2, c2, f2, l2, h2, v2, g2, m2, b2, w2, M2 = this, C2 = t4.labelOptions, S2 = t4.cellButtons;
            if (t4.cellButtons && t4.cellButtons.length > 0) for (S2 = [], g2 = 0; g2 < t4.cellButtons.length; g2++) S2.push(d(t4.cellButtons[g2]));
            if (m2 = t4.dropDowns, t4.dropDowns && t4.dropDowns.length > 0) for (m2 = [], g2 = 0; g2 < t4.dropDowns.length; g2++) m2.push(Z(t4.dropDowns[g2]));
            n3 ? (M2._autoFormatter = t4._autoFormatter, M2.backgroundImage = t4.backgroundImage, M2.backgroundImageLayout = t4.backgroundImageLayout, M2.backColor = st(t4.backColor), M2.foreColor = t4.foreColor, M2.hAlign = t4.hAlign, M2.vAlign = t4.vAlign, M2._fontStyle = t4._fontStyle, M2._fontWeight = t4._fontWeight, M2._fontSize = t4._fontSize, M2._fontSizeDigit = t4._fontSizeDigit, M2._fontSizeUnit = t4._fontSizeUnit, M2._fontFamily = t4._fontFamily, M2._fontVariant = t4._fontVariant, M2._fontStretch = t4._fontStretch, M2._lineHeight = t4._lineHeight, M2._font = p(M2._fontStyle, M2._fontWeight, M2._fontSize, M2._fontFamily, M2._fontVariant, M2._fontStretch, M2._lineHeight), M2.themeFont = t4.themeFont, M2.formatter = t4.formatter, M2.mask = st(t4.mask), M2.showEllipsis = t4.showEllipsis, M2._showTip = t4._showTip, o2 = t4.borderLeft, M2.borderLeft = o2 && o2.Gf && o2.Gf() || o2, M2.borderLeft && e3 && (M2.borderLeft.level = e3), u2 = t4.borderTop, M2.borderTop = u2 && u2.Gf && u2.Gf() || u2, M2.borderTop && e3 && (M2.borderTop.level = e3), s2 = t4.borderRight, M2.borderRight = s2 && s2.Gf && s2.Gf() || s2, M2.borderRight && e3 && (M2.borderRight.level = e3), c2 = t4.borderBottom, M2.borderBottom = c2 && c2.Gf && c2.Gf() || c2, M2.borderBottom && e3 && (M2.borderBottom.level = e3), h2 = t4.borderHorizontal, M2.borderHorizontal = h2 && h2.Gf && h2.Gf() || h2, M2.borderHorizontal && e3 && (M2.borderHorizontal.level = e3), v2 = t4.borderVertical, M2.borderVertical = v2 && v2.Gf && v2.Gf() || v2, M2.borderVertical && e3 && (M2.borderVertical.level = e3), f2 = t4.diagonalDown, M2.diagonalDown = f2 && f2.Gf && f2.Gf() || f2, M2.diagonalDown && e3 && (M2.diagonalDown.level = e3), l2 = t4.diagonalUp, M2.diagonalUp = l2 && l2.Gf && l2.Gf() || l2, M2.diagonalUp && e3 && (M2.diagonalUp.level = e3), M2.locked = t4.locked, M2.hidden = t4.hidden, M2.textIndent = t4.textIndent, M2.wordWrap = t4.wordWrap, M2.shrinkToFit = t4.shrinkToFit, M2.cellType = t4.cellType, M2.name = t4.name, M2.parentName = t4.parentName, M2.tabStop = t4.tabStop, M2.textDecoration = t4.textDecoration, M2.imeMode = t4.imeMode, M2.watermark = t4.watermark, M2.cellPadding = t4.cellPadding, M2.isVerticalText = t4.isVerticalText, M2.textOrientation = t4.textOrientation, C2 && (M2.labelOptions = { alignment: C2.alignment, font: C2.font, foreColor: C2.foreColor, visibility: C2.visibility, margin: C2.margin }), M2.quotePrefix = t4.quotePrefix, M2.cellButtons = S2, M2.dropDowns = m2, M2.decoration = at(t4), M2.textDirection = t4.textDirection, M2.allowEditInCell = t4.allowEditInCell) : (M2.backgroundImage === y && (M2.backgroundImage = t4.backgroundImage), M2.backgroundImageLayout === y && (M2.backgroundImageLayout = t4.backgroundImageLayout), ft(M2, t4), M2.foreColor === y && (M2.foreColor = t4.foreColor), M2.hAlign === y && (M2.hAlign = t4.hAlign), M2.vAlign === y && (M2.vAlign = t4.vAlign), M2.themeFont === y && M2.font === y && (M2.themeFont = t4.themeFont), M2._fontStyle === y && (M2._fontStyle = t4._fontStyle), M2._fontWeight === y && (M2._fontWeight = t4._fontWeight), M2._fontSize === y && (M2._fontSize = t4._fontSize, M2._fontSizeDigit = t4._fontSizeDigit, M2._fontSizeUnit = t4._fontSizeUnit), M2._fontFamily === y && (M2._fontFamily = t4._fontFamily), M2._fontVariant === y && (M2._fontVariant = t4._fontVariant), M2._fontStretch === y && (M2._fontStretch = t4._fontStretch), M2._lineHeight === y && (M2._lineHeight = t4._lineHeight), M2._font = p(M2._fontStyle, M2._fontWeight, M2._fontSize, M2._fontFamily, M2._fontVariant, M2._fontStretch, M2._lineHeight), M2.formatter === y && (M2.formatter = t4.formatter), M2.showEllipsis === y && (M2.showEllipsis = t4.showEllipsis), M2._showTip === y && (M2._showTip = t4._showTip), M2._autoFormatter === y && (M2._autoFormatter = t4._autoFormatter), M2.mask === y && (M2.mask = st(t4.mask)), M2.borderLeft === y && (o2 = t4.borderLeft, M2.borderLeft = o2 && o2.Gf && o2.Gf() || o2, M2.borderLeft && e3 && (M2.borderLeft.level = e3)), M2.borderTop === y && (u2 = t4.borderTop, M2.borderTop = u2 && u2.Gf && u2.Gf() || u2, M2.borderTop && e3 && (M2.borderTop.level = e3)), M2.borderRight === y && (s2 = t4.borderRight, M2.borderRight = s2 && s2.Gf && s2.Gf() || s2, M2.borderRight && e3 && (M2.borderRight.level = e3)), M2.borderBottom === y && (c2 = t4.borderBottom, M2.borderBottom = c2 && c2.Gf && c2.Gf() || c2, M2.borderBottom && e3 && (M2.borderBottom.level = e3)), M2.borderHorizontal === y && (h2 = t4.borderHorizontal, M2.borderHorizontal = h2 && h2.Gf && h2.Gf() || h2, M2.borderHorizontal && e3 && (M2.borderHorizontal.level = e3)), M2.borderVertical === y && (v2 = t4.borderVertical, M2.borderVertical = v2 && v2.Gf && v2.Gf() || v2, M2.borderVertical && e3 && (M2.borderVertical.level = e3)), M2.diagonalDown === y && (f2 = t4.diagonalDown, M2.diagonalDown = f2 && f2.Gf && f2.Gf() || f2, M2.diagonalDown && e3 && (M2.diagonalDown.level = e3)), M2.diagonalUp === y && (l2 = t4.diagonalUp, M2.diagonalUp = l2 && l2.Gf && l2.Gf() || l2, M2.diagonalUp && e3 && (M2.diagonalUp.level = e3)), M2.locked === y && (M2.locked = t4.locked), M2.hidden === y && (M2.hidden = t4.hidden), M2.textIndent === y && (M2.textIndent = t4.textIndent), M2.wordWrap === y && (M2.wordWrap = t4.wordWrap), M2.shrinkToFit === y && (M2.shrinkToFit = t4.shrinkToFit), M2.cellType === y && (M2.cellType = t4.cellType), M2.tabStop === y && (M2.tabStop = t4.tabStop), M2.textDecoration === y && (M2.textDecoration = t4.textDecoration), M2.imeMode === y && (M2.imeMode = t4.imeMode), M2.name === y && (M2.name = t4.name), M2.parentName === y && (M2.parentName = t4.parentName), M2.watermark === y && (M2.watermark = t4.watermark), M2.cellPadding === y && (M2.cellPadding = t4.cellPadding), !M2.labelOptions && C2 && (M2.labelOptions = {}), (b2 = M2.labelOptions) && C2 && (b2.alignment === y && (b2.alignment = C2.alignment), b2.font === y && (b2.font = C2.font), b2.foreColor === y && (b2.foreColor = C2.foreColor), b2.visibility === y && (b2.visibility = C2.visibility), b2.margin === y && (b2.margin = C2.margin)), i3 || M2.quotePrefix !== y || (M2.quotePrefix = t4.quotePrefix), M2.isVerticalText === y && (M2.isVerticalText = t4.isVerticalText), M2.textOrientation === y && (M2.textOrientation = t4.textOrientation), M2.cellButtons === y && (M2.cellButtons = S2), M2.dropDowns === y && (M2.dropDowns = m2), t4.decoration && (M2.decoration === y ? M2.decoration = at(t4) : (w2 = at(t4), M2.decoration.cornerFold === y && (M2.decoration.cornerFold = w2.cornerFold), r2 && a.W.Xue(t4) ? ut(M2, t4) : M2.decoration.icons === y && (M2.decoration.icons = w2.icons), M2.decoration.cycle === y && (M2.decoration.cycle = w2.cycle))), M2.textDirection === y && (M2.textDirection = t4.textDirection), M2.allowEditInCell === y && (M2.allowEditInCell = t4.allowEditInCell));
          }, t3.prototype.d5 = function(t4) {
            var n3 = this;
            0 === arguments.length ? (f(G, (function(t5, e3) {
              n3[e3] = y;
            })), f(U, (function(t5, e3) {
              n3[e3] = y;
            })), f(H, (function(t5, e3) {
              h(n3[e3]) && (n3[e3] = y);
            }))) : n3[t4] = y;
          }, t3.prototype.clone = function(n3) {
            var e3 = this, i3 = e3.borderLeft, r2 = e3.borderTop, o2 = e3.borderRight, a2 = e3.borderBottom, u2 = e3.diagonalDown, s2 = e3.diagonalUp, c2 = e3.borderHorizontal, f2 = e3.borderVertical, l2 = new t3();
            return l2.backColor = st(e3.backColor), l2.foreColor = e3.foreColor, l2.hAlign = e3.hAlign, l2.vAlign = e3.vAlign, l2._fontStyle = e3._fontStyle, l2._fontWeight = e3._fontWeight, l2._fontSize = e3._fontSize, l2._fontSizeDigit = e3._fontSizeDigit, l2._fontSizeUnit = e3._fontSizeUnit, l2._fontFamily = e3._fontFamily, l2._fontVariant = e3._fontVariant, l2._fontStretch = e3._fontStretch, l2._lineHeight = e3._lineHeight, l2._font = e3._font, l2.themeFont = e3.themeFont, l2.formatter = y, l2.mask = st(e3.mask), l2.borderLeft = i3 && !n3 && i3.Gf && i3.Gf() || i3, l2.borderTop = r2 && !n3 && r2.Gf && r2.Gf() || r2, l2.borderRight = o2 && !n3 && o2.Gf && o2.Gf() || o2, l2.borderBottom = a2 && !n3 && a2.Gf && a2.Gf() || a2, l2.borderHorizontal = c2 && !n3 && c2.Gf && c2.Gf() || c2, l2.borderVertical = f2 && !n3 && f2.Gf && f2.Gf() || f2, l2.locked = e3.locked, l2.hidden = e3.hidden, l2.textIndent = e3.textIndent, l2.wordWrap = e3.wordWrap, l2.shrinkToFit = e3.shrinkToFit, l2.backgroundImage = e3.backgroundImage, l2.cellType = y, l2.backgroundImageLayout = e3.backgroundImageLayout, l2.tabStop = e3.tabStop, l2.textDecoration = e3.textDecoration, l2.imeMode = e3.imeMode, l2.name = e3.name, l2.parentName = e3.parentName, l2.watermark = e3.watermark, l2.cellPadding = e3.cellPadding, l2.labelOptions = e3.labelOptions, l2.quotePrefix = e3.quotePrefix, l2.diagonalDown = u2 && !n3 && u2.Gf() || u2, l2.diagonalUp = s2 && !n3 && s2.Gf() || s2, l2.isVerticalText = e3.isVerticalText, l2.showEllipsis = e3.showEllipsis, l2._showTip = e3._showTip, l2.textOrientation = e3.textOrientation, gt(l2, e3.decoration, !n3, true), lt(e3, l2), bt(l2, e3.formatter, !n3), yt(l2, e3._autoFormatter, !n3), dt(l2, e3.cellType, !n3, true), pt(l2, e3.cellButtons, !n3, true), mt(l2, e3.dropDowns, !n3, true), l2.textDirection = e3.textDirection, l2.allowEditInCell = e3.allowEditInCell, l2;
          }, t3.prototype.v5 = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2 = this;
            if (t4 && t4.getColor) {
              if (wt(t4, h2.foreColor, (function(t5) {
                h2.foreColor = t5;
              })), "string" == typeof (n3 = h2.backColor)) wt(t4, n3, (function(t5) {
                h2.backColor = t5;
              }));
              else if (n3 && (n3.backgroundColor && wt(t4, n3.backgroundColor, (function(t5) {
                n3.backgroundColor = t5;
              })), n3.patternColor && wt(t4, n3.patternColor, (function(t5) {
                n3.patternColor = t5;
              })), n3.stops)) for (e3 = function(e4) {
                wt(t4, n3.stops[e4].color, (function(t5) {
                  n3.stops[e4].color = t5;
                }));
              }, i3 = 0; i3 < n3.stops.length; i3++) e3(i3);
              for (o2 = function(n4) {
                var e4 = h2[n4];
                e4 && e4.color && (h2[n4] = e4 = e4.Gf(), wt(t4, e4.color, (function(t5) {
                  e4.color = t5;
                })));
              }, u2 = 0, s2 = r2 = ["borderLeft", "borderTop", "borderRight", "borderBottom", "borderHorizontal", "borderVertical", "diagonalDown", "diagonalUp"]; u2 < s2.length; u2++) o2(c2 = s2[u2]);
            }
            if (f2 = h2.themeFont, t4 && t4.getFont) {
              if (l2 = void 0, !(l2 = f2 ? t4.getFont(f2) : h2._fontFamily ? h2._fontFamily : t4.bodyFont())) return h2;
              h2._fontFamily = l2, h2._fontSize || (h2._fontSize = a.Z2e), h2._font = p(h2._fontStyle, h2._fontWeight, h2._fontSize, h2._fontFamily, h2._fontVariant, h2._fontStretch, h2._lineHeight);
            }
            return h2;
          }, t3.prototype.g5 = function(t4) {
            var n3, e3 = this, i3 = e3._autoFormatter;
            i3 && t4 !== w && ((n3 = i3.getPreferredEditingFormatter(t4)).isAuto = true, e3._autoFormatter = n3);
          }, t3.prototype.toJSON = function(t4, n3, e3) {
            var i3, o2, a2 = this, u2 = {}, s2 = a2._autoFormatter;
            for (!h(s2) || n3 && Mt(M, s2, t4) || (s2.toJSON && (s2 = s2.toJSON()), r.GC$.isEmptyObject(s2) || (u2[M] = s2)), i3 = 0; i3 < G.length; i3++) s2 = a2[o2 = G[i3]], o2 !== I || r.GC$.isEmptyObject(s2) ? o2 !== N && o2 !== k || r.GC$.isEmptyObject(s2) ? !h(s2) || n3 && Mt(o2, s2, t4) || (u2[o2] = s2 && s2.toJSON ? s2.toJSON(e3) : s2) : o2 === N && (null == s2 ? void 0 : s2.length) > 0 ? u2[o2] = s2.map((function(t5) {
              var n4, e4, i4, r2, o3 = z(z({}, t5), { option: z({}, t5.option) });
              return o3.type === c.DropDownType.dateTimePicker && ((null === (n4 = o3.option) || void 0 === n4 ? void 0 : n4.defaultDateTime) && (r2 = o3.option.defaultDateTime, g(r2) ? o3.option.defaultDateTime = m(r2) : "object" == typeof r2 && g(r2.start) && g(r2.end) && (o3.option.defaultDateTime = { start: m(r2.start), end: m(r2.end) })), (null === (e4 = o3.option) || void 0 === e4 ? void 0 : e4.minDate) && (o3.option.minDate = m(o3.option.minDate)), (null === (i4 = o3.option) || void 0 === i4 ? void 0 : i4.maxDate) && (o3.option.maxDate = m(o3.option.maxDate))), o3;
            })) : u2[o2] = s2 : u2[I] = s2;
            for (i3 = 0; i3 < U.length; i3++) s2 = a2[o2 = H[i3]], h(s2) && (u2[o2] = s2);
            for (i3 = 0; i3 < H.length; i3++) s2 = a2[o2 = H[i3]], h(s2) && (u2[o2] = s2);
            return r.GC$.isEmptyObject(u2) ? y : u2;
          }, t3.prototype.fromJSON = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            if (n3) {
              for (o2 in r2 = this, n3) if (n3.hasOwnProperty(o2)) {
                if (a2 = n3[o2], !h(a2)) continue;
                (u2 = { p: o2, v: a2, r: false }).noSchema = e3, u2.context = i3, t3.et(r2, "fromJson", u2), u2.r || ("formatter" === o2 ? bt(r2, a2, true) : "autoFormatter" === o2 ? yt(r2, a2, true) : o2 === S ? dt(r2, a2, true, e3) : L[o2] ? a2 === w ? r2[o2] = null : ((s2 = new P()).fromJSON(a2, e3), r2[o2] = s2) : o2 === N && (null == a2 ? void 0 : a2.length) > 0 ? r2[o2] = a2.map((function(t4) {
                  var n4, e4, i4, r3, o3 = d(t4);
                  return o3.type === c.DropDownType.dateTimePicker && ((null === (n4 = o3.option) || void 0 === n4 ? void 0 : n4.defaultDateTime) && ("string" == typeof (r3 = o3.option.defaultDateTime) ? o3.option.defaultDateTime = b(r3) : "object" == typeof r3 && (o3.option.defaultDateTime = { start: b(r3.start), end: b(r3.end) })), (null === (e4 = t4.option) || void 0 === e4 ? void 0 : e4.minDate) && (o3.option.minDate = b(t4.option.minDate)), (null === (i4 = t4.option) || void 0 === i4 ? void 0 : i4.maxDate) && (o3.option.maxDate = b(t4.option.maxDate))), o3;
                })) : r2[o2] = a2);
              }
            }
          }, t3.prototype.Je = function(t4) {
            var n3 = this;
            n3.backColor = Q(t4.backColor), n3.foreColor = t4.foreColor, n3.hAlign = ht(c.HorizontalAlign, t4.hAlign, y), n3.vAlign = ht(c.VerticalAlign, t4.vAlign, y), t4.font ? n3.font = t4.font : (n3._fontStyle = t4.fontStyle, n3._fontWeight = t4.fontWeight, n3._fontSize = t4.fontSize, n3._fontFamily = t4.fontFamily, n3._fontVariant = t4.fontVariant, n3._fontStretch = t4.fontStretch, n3._lineHeight = t4.lineHeight, n3._font = p(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight)), n3.themeFont = t4.themeFont, n3.formatter = X(t4.formatter), n3.borderLeft = K(t4.borderLeft), n3.borderTop = K(t4.borderTop), n3.borderRight = K(t4.borderRight), n3.borderBottom = K(t4.borderBottom), n3.borderHorizontal = K(t4.borderHorizontal), n3.borderVertical = K(t4.borderVertical), n3.diagonalDown = K(t4.diagonalDown), n3.diagonalUp = K(t4.diagonalUp), n3.locked = t4.locked, n3.hidden = t4.hidden, n3.textIndent = t4.textIndent, n3.wordWrap = t4.wordWrap, n3.shrinkToFit = t4.shrinkToFit, n3._showTip = t4._showTip, n3.backgroundImage = t4.backgroundImage, n3.cellType = q(t4.cellType), n3.backgroundImageLayout = ht(c.ImageLayout, t4.backgroundImageLayout, y), n3.tabStop = t4.tabStop, n3.textDecoration = ot(t4.textDecoration), n3.imeMode = ht(c.ImeMode, t4.imeMode, y), n3.name = t4.name, n3.parentName = t4.parentName, n3.watermark = t4.watermark, n3.cellPadding = t4.cellPadding, n3.labelOptions = $(t4.labelOptions), n3.isVerticalText = t4.isVerticalText, n3.textOrientation = t4.textOrientation, n3.showEllipsis = t4.showEllipsis, n3.cellButtons = et(t4.cellButtons), n3.dropDowns = rt(t4.dropDowns), n3.decoration = nt(t4.decoration), n3.mask = st(t4.mask), n3.textDirection = t4.textDirection, n3.allowEditInCell = t4.allowEditInCell, lt(t4, n3);
          }, Object.defineProperty(t3.prototype, "font", { get: function() {
            return this._font;
          }, set: function(t4) {
            a.W.oce(this, t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontSize", { get: function() {
            return this._fontSize;
          }, set: function(t4) {
            a.W.W2e(this, t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontStyle", { get: function() {
            return this._fontStyle;
          }, set: function(t4) {
            var n3 = this, e3;
            n3._fontStyle !== t4 && (n3._fontStyle = t4, n3._font = p(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight));
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontWeight", { get: function() {
            return this._fontWeight;
          }, set: function(t4) {
            var n3 = this, e3;
            n3._fontWeight !== t4 && (n3._fontWeight = t4, n3._font = p(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight));
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontFamily", { get: function() {
            return this._fontFamily;
          }, set: function(t4) {
            var n3 = this, e3;
            n3._fontFamily !== t4 && (n3._fontFamily = t4, n3._font = p(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight));
          }, enumerable: false, configurable: true }), t3;
        })(), n2.Style = V, n2.composeParentStyle = Ct, o.$e(V), V.l5 = 0;
      }, "./dist/core/worksheet/stylehelper.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S;
        function T(t3) {
          return t3 = u(t3 = t3 || 0, 0), t3 = s(t3, 1);
        }
        function x(t3) {
          var n3, e3;
          return t3 === c ? c : null === t3 ? d : (n3 = t3.split(v), (t3 = (e3 = n3.filter((function(t4) {
            return t4 && t4 !== d;
          }))).join(v)) || d);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.W = n2.Z2e = n2.p5 = void 0, i2 = e2("./dist/core/util/domUtil.js"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/core.enum.js"), a = document, u = Math.max, s = Math.min, c = void 0, f = null, l = "#FFFFFF", h = "#000000", d = "normal", v = " ", p = Math.abs, g = Math.PI, m = Math.cos, b = Math.sin, y = Math.atan, w = Math.tan, M = /^(small-caps|all-small-caps|all-petite-caps|petite-caps|unicase|titling-caps|historical-forms|common-ligatures|no-common-ligatures|discretionary-ligatures|no-discretionary-ligatures|historical-ligatures|no-historical-ligatures|contextual|no-contextual|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|jis78|jis83|jis90|jis04|simplified|traditional|full-width|proportional-width|stylistic\([\d\.]+\)|styleset\([\d\.]+\)|character-variant\([\d\.]+\)|swash\([\d\.]+\)|ornaments\([\d\.]+\)|annotation\([\d\.]+\)|ruby|sub|super|text|emoji|unicode|ordinal|slashed-zero)$/i, n2.p5 = "11pt", n2.Z2e = "14.6667px", C = { 1: [[1]], 2: [[1, 0, 1, 1], [1, 1, 1, 0]], 3: [[0, 1], [1, 0]], 4: [[0, 0, 1, 0], [1, 0, 0, 0]], 5: [[0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 0], [1, 0, 0, 0]], 6: [[0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0]], 7: [[0], [1], [1], [0]], 8: [[1, 1, 0, 0]], 9: [[0, 1, 1, 0], [0, 0, 1, 1], [1, 0, 0, 1], [1, 1, 0, 0]], 10: [[0, 1, 1, 0], [1, 1, 0, 0], [1, 0, 0, 1], [0, 0, 1, 1]], 11: [[0, 0, 1, 1], [0, 0, 1, 1], [1, 1, 0, 0], [1, 1, 0, 0]], 12: [[0, 1, 1, 0], [1, 1, 1, 1], [1, 0, 0, 1], [1, 1, 1, 1]], 13: [[0], [1], [0], [0]], 14: [[1, 0, 0, 0]], 15: [[0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1], [1, 0, 0, 0]], 16: [[0, 0, 1, 0], [0, 1, 0, 0], [1, 0, 0, 0], [0, 0, 0, 1]], 17: [[0, 0, 1, 0], [1, 1, 1, 1], [0, 0, 1, 0], [0, 0, 1, 0]], 18: [[1, 0, 1, 0], [0, 0, 0, 1], [1, 0, 1, 0], [0, 1, 0, 0]] }, S = (function() {
          function t3() {
          }
          return t3.B2e = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, l2, h2, p2, g2, m2, b2, y2, w2, C2, S2, T2, A, I, k;
            if (t3.V2e[n3]) return t3.V2e[n3];
            if ((e3 = t3.y5()).style.font = n3, i3 = e3.style, r2 = c, o2 = c, a2 = c, u2 = c, s2 = c, l2 = c, h2 = c, p2 = c, g2 = c, m2 = c, b2 = c, "" === i3.fontStyle || "" === i3.fontWeight || i3.fontStyle === d || i3.fontWeight === d) {
              for (y2 = 0, w2 = [], C2 = (n3 = n3.replace(/"/g, "'")).length, S2 = false, T2 = "", A = 0; A < C2; A++) "'" === (I = n3[A]) ? (T2 += I, false === (S2 = !S2) && (w2.push(T2), T2 = "")) : S2 ? T2 += I : I === v ? (w2.push(T2), T2 = "") : T2 += I;
              0 !== T2.length && w2.push(T2), w2.forEach((function(t4, n4) {
                if (/^(italic|oblique)$/i.test(t4)) r2 = t4, p2 = n4;
                else if (/^[\d\.]+deg$/i.test(t4) && "oblique" === r2) r2 += v + t4, p2 = n4;
                else if (M.test(t4)) l2 === c ? l2 = t4 : l2 += v + t4;
                else if (/(condensed|expanded)$/i.test(t4)) h2 = t4;
                else if (/^[\d\.]+%$/i.test(t4)) h2 = t4;
                else if (/^(bold|bolder|lighter|[1-9]00)$/i.test(t4)) o2 = t4, g2 = n4;
                else if (/^[\d\.]+(px|em|rem|%|pt)\/([\d\.]+(px|em|rem|%|pt)|normal)$/.test(t4)) {
                  var e4 = t4.split("/");
                  a2 = e4[0], s2 = e4[1], m2 = n4;
                } else /^[\d\.]+(px|em|rem|%|pt)$/.test(t4) ? (a2 = t4, m2 = n4) : t4 === d ? y2++ : t4 && (u2 === c ? u2 = t4 : u2 += v + t4, b2 = n4);
              })), r2 !== c && (p2 >= m2 || p2 >= b2) && (r2 = c), o2 !== c && (g2 >= m2 || g2 >= b2) && (o2 = c), y2 >= 1 && (r2 === c && (r2 = f), o2 === c && (o2 = f));
            } else r2 = i3.fontStyle, o2 = i3.fontWeight;
            return k = { fontStyle: r2, fontWeight: o2, fontSize: i3.fontSize || a2, fontFamily: i3.fontFamily ? i3.fontFamily.replace(/"/g, "'") : u2, lineHeight: (i3.lineHeight === d ? c : i3.lineHeight) || s2, fontVariant: (x(i3.fontVariant) === d ? c : i3.fontVariant) || x(l2), fontStretch: (i3.fontStretch === d ? c : i3.fontStretch) || h2 }, t3.V2e[n3] = k, k;
          }, t3.CAe = function(n3) {
            var e3, i3, r2;
            return n3 ? t3.KAe[n3] ? t3.KAe[n3] : (e3 = n3.split(","), i3 = [], e3.forEach((function(t4) {
              t4 && ("'" !== (t4 = t4.trim())[0] && '"' !== t4[0] && t4.indexOf(v) > 0 ? i3.push("'" + t4 + "'") : i3.push(t4));
            })), r2 = i3.join(", "), t3.KAe[n3] = r2, r2) : n3;
          }, t3.F2e = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, l2, h2;
            return n3 === c && e3 === c && i3 === c && r2 === c ? c : n3 === f && e3 === f && i3 === f && r2 === f ? f : (s2 = n3 + "," + o2 + "," + e3 + "," + a2 + "," + i3 + "," + u2 + "," + r2, t3.Y2e[s2] ? t3.Y2e[s2] : (l2 = "", n3 === f ? l2 += d : n3 !== c && (l2 += n3), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", o2 !== c && (l2 += h2 + o2), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", e3 === f ? l2 += h2 + d : e3 !== c && (l2 += h2 + e3), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", a2 !== c && (l2 += h2 + a2), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", i3 !== c && (l2 += h2 + i3), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", u2 !== c && (l2 += h2 + "/" + h2 + u2), h2 = l2[l2.length - 1] && l2[l2.length - 1] !== v ? v : "", r2 !== c && (l2 += h2 + (r2 = t3.CAe(r2))), t3.Y2e[s2] = l2, l2));
          }, t3.oce = function(n3, e3) {
            var i3, r2, o2 = n3, a2 = o2._font;
            a2 !== e3 && (e3 ? (i3 = t3.B2e(e3), o2._fontStyle = i3.fontStyle === d ? f : i3.fontStyle, o2._fontWeight = i3.fontWeight === d ? f : i3.fontWeight, o2._fontSize = i3.fontSize, i3.fontSize ? (r2 = i3.fontSize.match(/^([\d\.]+)(px|em|rem|%|pt)$/), o2._fontSizeDigit = r2 && +r2[1], o2._fontSizeUnit = r2 && r2[2]) : (o2._fontSizeDigit = c, o2._fontSizeUnit = c), o2._fontFamily = i3.fontFamily, o2._fontVariant = i3.fontVariant, o2._fontStretch = i3.fontStretch, o2._lineHeight = i3.lineHeight, o2._font = t3.F2e(o2._fontStyle, o2._fontWeight, o2._fontSize, o2._fontFamily, o2._fontVariant, o2._fontStretch, o2._lineHeight)) : (o2._fontStyle = e3, o2._fontWeight = e3, o2._fontSize = e3, o2._fontSizeDigit = c, o2._fontSizeUnit = c, o2._fontFamily = e3, o2._fontVariant = c, o2._fontStretch = c, o2._lineHeight = c, o2._font = e3));
          }, t3.W2e = function(n3, e3) {
            var i3, r2 = n3, o2 = r2._fontSize;
            o2 !== e3 && (i3 = void 0, e3 && (i3 = e3.match(/^([\d\.]+)(px|em|rem|%|pt)$/)), i3 ? (r2._fontSizeDigit = +i3[1], r2._fontSizeUnit = i3[2]) : (r2._fontSizeDigit = c, r2._fontSizeUnit = c), r2._fontSize = e3, r2._font = t3.F2e(r2._fontStyle, r2._fontWeight, r2._fontSize, r2._fontFamily, r2._fontVariant, r2._fontStretch, r2._lineHeight));
          }, t3.T0r = function(n3) {
            var e3 = t3.B2e(n3).fontStyle;
            return "italic" === e3 || "oblique" === e3;
          }, t3.m5 = function(n3, e3) {
            return e3 ? t3.b5(n3, e3) : n3;
          }, t3.Ne = function(n3) {
            var e3, i3;
            return n3 ? ((e3 = t3.y5()).style.font = n3, i3 = e3.style, "object" == typeof global && (n3.indexOf("italic") >= 0 && (i3.fontStyle = "italic"), "" === i3.fontStyle && (i3.fontStyle = d), "" === i3.fontWeight && (i3.fontWeight = d)), { fontFamily: i3.fontFamily, fontSize: i3.fontSize, fontStyle: i3.fontStyle, fontWeight: i3.fontWeight }) : {};
          }, t3.f5 = function(t4, n3) {
            var e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, p2, g2 = null !== (e3 = null == n3 ? void 0 : n3.alwaysBuild) && void 0 !== e3 && e3;
            return r.mt.Tt.safari && true !== g2 ? t4.font : (i3 = "", o2 = "400", a2 = "11pt", u2 = "Calibri", s2 = t4.fontStyle, c2 = x(t4.fontVariant), f2 = t4.fontWeight, l2 = t4.lineHeight, h2 = t4.fontSize, p2 = t4.fontFamily, s2 && s2 !== d && (i3 = s2), c2 && c2 !== d && (i3 += (i3 ? v : "") + c2), f2 && f2 !== d && f2 !== o2 && (i3 += (i3 ? v : "") + f2), i3 += (i3 ? v : "") + (h2 = h2 || a2), l2 && l2 !== d && (i3 += "/" + l2), i3 += v + (p2 = p2 || u2));
          }, t3.b5 = function(e3, r2) {
            var o2, u2, s2, c2, f2;
            if (!e3 && !r2) return e3;
            if (e3) {
              if (u2 = r2 ? e3 + "+" + r2 : e3, s2 = t3.w5[u2]) return s2;
              o2 = t3.y5(), (0, i2.GC$)(o2).css("font", e3);
            } else {
              if (u2 = r2, s2 = t3.w5[u2]) return s2;
              o2 = t3.y5(), (0, i2.GC$)(o2).css("fontSize", n2.p5);
            }
            return r2 && (0, i2.GC$)(o2).css("fontFamily", r2), c2 = o2.currentStyle, (f2 = a.defaultView) && f2.getComputedStyle && (c2 = f2.getComputedStyle(o2, "")), s2 = t3.f5(c2), t3.w5[u2] = s2, t3.w5[s2] = s2, s2;
          }, t3.V = function(n3, e3, i3, o2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = t3.C5[e3];
            if (!o2) if (m2) {
              if (s2 = m2[n3]) return s2;
            } else m2 = t3.C5[e3] = {};
            return (c2 = t3.y5()).style.font = n3, f2 = c2.currentStyle, (l2 = a.defaultView) && l2.getComputedStyle && (f2 = l2.getComputedStyle(c2, "")), d2 = "px", -1 !== (h2 = f2.fontSize || c2.style.fontSize).indexOf(d2) ? (v2 = u(1, parseFloat(h2.replace(d2, "")) * e3), i3 && 1 === v2 && (i3.value = true), h2 = v2 + d2) : -1 !== h2.indexOf("pt") && (v2 = r.SJSColumnWidthHelper.pointToPixel(u(1, parseFloat(h2.replace("pt", "")) * e3), 4), i3 && 1 === v2 && (i3.value = true), h2 = v2 + d2), -1 !== (p2 = f2.lineHeight).indexOf(d2) && (g2 = u(1, parseFloat(p2.replace(d2, "")) * e3), p2 = g2 + d2), 1 === e3 ? s2 = { font: n3, fontFamily: c2.style.fontFamily, fontSize: v2 } : (c2.style.fontSize = h2, c2.style.lineHeight = p2, s2 = { font: c2.style.font, fontFamily: c2.style.fontFamily, fontSize: v2 }), o2 || (m2[n3] = s2), s2;
          }, t3.V2e = {}, t3.Y2e = {}, t3.KAe = {}, t3.x2e = function(n3, e3, i3, o2) {
            var a2, s2, c2, f2, l2, h2;
            if (n3) {
              if (a2 = t3.C5[e3], c2 = n3.font, !o2) if (a2) {
                if (s2 = a2[c2]) return s2;
              } else a2 = t3.C5[e3] = {};
              return f2 = n3._fontSizeDigit, l2 = n3._fontSizeUnit, f2 && l2 && !l2.includes("em") && !l2.includes("rem") ? (h2 = u(1, f2 * e3), i3 && 1 === h2 && (i3.value = true), "pt" === n3._fontSizeUnit && (h2 = r.SJSColumnWidthHelper.pointToPixel(h2, 4), l2 = "px"), s2 = { font: t3.F2e(n3.fontStyle, n3.fontWeight, h2 + l2, n3.fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight), fontFamily: n3.fontFamily, fontSize: h2 }) : s2 = t3.V(c2, e3, i3, true), o2 || (a2[c2] = s2), s2;
            }
          }, t3.y5 = function() {
            var n3, e3, i3;
            if (t3.S5) t3.S5.style.cssText = t3.T5;
            else {
              if (n3 = "-10000px", (i3 = (e3 = r.mt.En("span")).style).visibility = "hidden", i3.top = n3, i3.left = n3, i3.lineHeight = d, i3.position = "absolute", i3.fontWeight = d, i3.fontStretch = d, i3.fontVariant = d, i3.fontStyle = d, !a.body) return e3;
              a.body.insertBefore(e3, null), t3.S5 = e3, t3.T5 = i3.cssText;
            }
            return t3.S5;
          }, t3.L0 = function() {
            var n3 = t3.S5;
            n3 && ((0, i2.GC$)(n3).remove(), t3.S5 = c, t3.T5 = c);
          }, t3.stringFontCatch = {}, t3.ii = function(n3, e3) {
            var i3, r2 = n3 + "," + e3, o2 = t3.stringFontCatch, a2 = o2[r2];
            return a2 || ((i3 = t3.y5()).style.font = n3, e3 && (i3.style.fontWeight = e3), a2 = o2[r2] = i3.style.font), a2;
          }, t3.w5 = {}, t3.C5 = {}, t3.A5 = function(t4) {
            if (t4 <= 0) return "none";
            var n3 = "";
            return (1 | t4) === t4 && (n3 += "underline "), (2 | t4) === t4 && (n3 += "line-through "), (4 | t4) === t4 && (n3 += "overline "), n3.trim();
          }, t3.setFillStyle = function(n3, e3, i3, r2, o2, a2, u2) {
            "string" == typeof e3 ? (n3.fillStyle !== e3 && (n3.fillStyle = e3), u2()) : "path" === e3.type ? t3.setFillStylePath(n3, e3, i3, r2, o2, a2, u2) : e3.stops ? t3.setFillStyleGradient(n3, e3, i3, r2, o2, a2, u2) : e3.type && t3.setFillStylepatternFill(n3, e3, i3, r2, o2, a2, u2);
          }, t3.setFillStylepatternFill = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, d2, v2 = C[n3.type], p2 = v2.length, g2 = v2[0].length, m2 = document.createElement("canvas");
            for (m2.width = g2, m2.height = p2, (u2 = m2.getContext("2d")).fillStyle = n3.backgroundColor || l, u2.fillRect(0, 0, g2, p2), u2.fillStyle = n3.patternColor || h, s2 = 0; s2 < p2; s2++) for (c2 = 0; c2 < g2; c2++) (f2 = v2[s2][c2]) && u2.fillRect(c2, s2, 1, 1);
            t4.createPattern(m2, "repeat"), d2 = t4.createPattern(m2, "repeat"), t4.fillStyle = d2, a2();
          }, t3.processStops = function(t4) {
            var n3, e3;
            if (t4.stops || "path" === t4.type) {
              if (n3 = t4.stops) if (0 === n3.length) n3 = [{ position: 0, color: h }, { position: 1, color: h }];
              else {
                for ((n3 = n3.filter((function(t5, n4, e4) {
                  return t5.position <= 1 && t5.position >= 0;
                }))).sort((function(t5, n4) {
                  return t5.position - n4.position;
                })), e3 = 0; e3 < n3.length; e3++) n3[e3].color = n3[e3].color || h;
                0 !== n3[0].position && n3.splice(0, 0, { position: 0, color: h }), 1 !== n3[n3.length - 1].position && n3.push({ position: 1, color: h });
              }
              else n3 = [{ position: 0, color: l }, { position: 1, color: l }];
              t4.stops = n3;
            }
            "path" === t4.type ? (t4.left = T(t4.left), t4.right = T(t4.right), t4.top = T(t4.top), t4.bottom = T(t4.bottom)) : t4.stops && (delete t4.type, t4.degree = t4.degree || 0);
          }, t3.setFillStyleGradient = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, h2, d2, v2, M2 = n3.degree || 0;
            for (M2 % 90 == 0 ? (s2 = M2 / 180 * g, c2 = p(M2 % 180 / 180 * g) - y(o2 / r2)) : (s2 = y(r2 / o2 * w(M2 / 180 * g)), c2 = p(s2) - y(o2 / r2), s2 = Math.round(M2 / 180) * g + s2), f2 = Math.sqrt(r2 * r2 + o2 * o2) / 2, u2 = t4.createLinearGradient(e3 + r2 / 2 - f2 * m(c2) * m(s2), i3 + o2 / 2 - f2 * m(c2) * b(s2), e3 + r2 / 2 + f2 * m(c2) * m(s2), i3 + o2 / 2 + f2 * m(c2) * b(s2)), d2 = 0, v2 = (h2 = n3.stops).length; d2 < v2; d2++) u2.addColorStop(h2[d2].position, h2[d2].color || l);
            t4.fillStyle = u2, a2();
          }, t3.setFillStylePath = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2 = n3.left || 0, h2 = n3.right || 0, d2 = n3.top || 0, v2 = n3.bottom || 0, p2 = n3.stops;
            if (f2 > h2 && (h2 = f2), d2 > v2 && (v2 = d2), f2 > 0) {
              for (t4.save(), t4.beginPath(), u2 = t4.createLinearGradient(e3 + r2 * f2, 0, e3, 0), s2 = 0, c2 = p2.length; s2 < c2; s2++) u2.addColorStop(p2[s2].position, p2[s2].color || l);
              t4.fillStyle = u2, t4.moveTo(e3, i3 - 1), t4.lineTo(e3 + r2 * f2 + 1, i3 + o2 * d2), t4.lineTo(e3 + r2 * f2 + 1, i3 + o2 * v2), t4.lineTo(e3, i3 + o2 + 1), t4.clip(), a2(), t4.restore();
            }
            if (h2 < 1) {
              for (t4.save(), t4.beginPath(), u2 = t4.createLinearGradient(e3 + r2 * h2, 0, e3 + r2, 0), s2 = 0, c2 = p2.length; s2 < c2; s2++) u2.addColorStop(p2[s2].position, p2[s2].color || l);
              t4.fillStyle = u2, t4.moveTo(e3 + r2, i3 - 1), t4.lineTo(e3 + r2, i3 + o2 + 1), t4.lineTo(e3 + r2 * h2 - 1, i3 + o2 * v2), t4.lineTo(e3 + r2 * h2 - 1, i3 + o2 * d2), t4.clip(), a2(), t4.restore();
            }
            if (d2 > 0) {
              for (t4.save(), t4.beginPath(), u2 = t4.createLinearGradient(0, i3 + o2 * d2, 0, i3), s2 = 0, c2 = p2.length; s2 < c2; s2++) u2.addColorStop(p2[s2].position, p2[s2].color || l);
              t4.fillStyle = u2, t4.moveTo(e3, i3), t4.lineTo(e3 + r2, i3), t4.lineTo(e3 + r2 * h2, i3 + o2 * d2 + 1), t4.lineTo(e3 + r2 * f2, i3 + o2 * d2 + 1), t4.clip(), a2(), t4.restore();
            }
            if (v2 < 1) {
              for (t4.save(), t4.beginPath(), u2 = t4.createLinearGradient(0, i3 + o2 * v2, 0, i3 + o2), s2 = 0, c2 = p2.length; s2 < c2; s2++) u2.addColorStop(p2[s2].position, p2[s2].color || l);
              t4.fillStyle = u2, t4.moveTo(e3 + r2, i3 + o2), t4.lineTo(e3, i3 + o2), t4.lineTo(e3 + r2 * f2, i3 + o2 * v2 - 1), t4.lineTo(e3 + r2 * h2, i3 + o2 * v2 - 1), t4.clip(), a2(), t4.restore();
            }
            f2 < h2 && d2 < v2 && (t4.save(), t4.beginPath(), t4.fillStyle = p2[0].color, t4.rect(e3 + r2 * f2, i3 + o2 * d2, r2 * (h2 - f2), o2 * (v2 - d2)), t4.clip(), a2(), t4.restore());
          }, t3.Xue = function(t4) {
            var n3;
            return (null === (n3 = null == t4 ? void 0 : t4.decoration) || void 0 === n3 ? void 0 : n3.icons) && t4.decoration.icons.length > 0;
          }, t3.tge = function(t4) {
            return (null == t4 ? void 0 : t4.cellButtons) && t4.cellButtons.length > 0;
          }, t3.qme = function(n3) {
            return t3.gfe(n3, o.IconPosition.leftOfText) || t3.gfe(n3, o.IconPosition.rightOfText);
          }, t3.gfe = function(n3, e3) {
            var i3 = e3 === o.IconPosition.left;
            return t3.Xue(n3) && n3.decoration.icons.some((function(t4) {
              return i3 ? t4.position === o.IconPosition.left || t4.position === f || t4.position === c : t4.position === e3;
            }));
          }, t3.$me = function(n3) {
            return t3.nge(n3, o.IconPosition.leftOfText) || t3.nge(n3, o.IconPosition.rightOfText);
          }, t3.nge = function(n3, e3) {
            var i3 = e3 === o.ButtonPosition.left;
            return t3.tge(n3) && n3.cellButtons.some((function(t4) {
              return i3 ? t4.position === o.ButtonPosition.left || t4.position === f || t4.position === c : t4.position === e3;
            }));
          }, t3.Jue = function(n3) {
            return t3.Xue(n3) && n3.decoration.icons.some((function(n4) {
              return t3.Kue(n4);
            }));
          }, t3.Kue = function(t4) {
            return t4.position === f || t4.position === c || t4.position === o.IconPosition.left || t4.position === o.IconPosition.leftOfText || t4.position === o.IconPosition.right || t4.position === o.IconPosition.rightOfText;
          }, t3;
        })(), n2.W = S;
      }, "./dist/core/worksheet/worksheet-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn = this && this.qKr || (mn = function(t3, n3) {
          return mn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, mn(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          mn(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), pn = this && this.nJr || function() {
          return pn = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, pn.apply(this, arguments);
        }, gn = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, mn;
        function bn(t3, n3) {
          return t3.getRowCount(n3);
        }
        function yn(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function wn(t3) {
          return t3.rowCount;
        }
        function Mn(t3) {
          return t3.colCount;
        }
        function Cn(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.allowCopyPasteExcelStyle;
        }
        function Sn(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.copyPasteHeaderOptions;
        }
        function Tn(t3, n3, e3, i3) {
          throw new Error(b.I5(L().Exp_InvalidAndSpace, [t3, n3, e3, i3]));
        }
        function xn(t3) {
          t3.suspendPaint();
        }
        function An(t3) {
          t3.resumePaint();
        }
        function In(t3) {
          t3.suspendEvent();
        }
        function kn(t3) {
          t3.resumeEvent();
        }
        function Nn(t3, n3) {
          t3 && g && t3.suspendCalcService(n3);
        }
        function jn(t3, n3) {
          t3 && g && t3.resumeCalcService(n3);
        }
        function Dn(t3, n3, e3, i3, r2) {
          var o2 = t3.getSpan(n3, e3, i3);
          if (o2 && r2 && t3.getRowVisible(o2.row) && t3.getColumnVisible(o2.col) && (o2.row !== n3 || o2.col !== e3)) return true;
        }
        function _n(t3) {
          var n3 = this;
          n3.x5 = !(1 & ~t3), n3.N5 = !(2 & ~t3), n3.k5 = !(8 & ~t3), n3.D5 = g && !(16 & ~t3), n3._5 = true, n3.E5 = true;
        }
        function On(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, w2, M2, C2, S2, T2;
          if (m(t3) || "" === t3) return N;
          for ((m(n3) || "" === n3) && (n3 = "\r\n"), a2 = "\n", (m(e3) || "" === e3) && (e3 = "	"), (m(i3) || "" === i3) && (i3 = '"'), y(t3, n3) || (t3 += n3), u2 = !r2, s2 = [], c2 = [], f2 = "", h2 = false, d2 = i3.length, v2 = n3.length, p2 = a2.length, g2 = e3.length, b2 = t3.length, w2 = 0; w2 < b2; w2++) l2 = (f2 += t3[w2]).length, u2 && (l2 === d2 && i3 === f2 || l2 > d2 && i3 === f2.substr(l2 - d2, d2)) ? h2 && b2 >= w2 + 1 + d2 && i3 === t3.substr(w2 + 1, d2) ? w2 += d2 : h2 ? (f2 = f2.substr(0, l2 - d2), h2 = false) : 0 === (M2 = f2).indexOf(i3) && (f2 = f2.substr(0, l2 - d2), h2 = true) : !h2 && (l2 === g2 && e3 === f2 || l2 > g2 && e3 === f2.substr(l2 - g2, g2)) ? (f2 = f2.substr(0, l2 - g2), c2.push(f2), f2 = "") : !h2 && (l2 === v2 && n3 === f2 || l2 > v2 && n3 === f2.substr(l2 - v2, v2)) ? (f2 = f2.substr(0, l2 - v2), c2.push(f2), s2.push(c2), c2 = [], f2 = "") : !h2 && (l2 === p2 && a2 === f2 || l2 > p2 && a2 === f2.substr(l2 - p2, p2)) ? (f2 = f2.substr(0, l2 - p2), c2.push(f2), s2.push(c2), c2 = [], f2 = "") : h2 && b2 >= w2 + 1 + g2 && e3 === t3.substr(w2 + 1, g2) && "," !== e3 && (w2 += d2);
          if (h2) {
            if (c2.length > 0) {
              for (C2 = void 0, C2 = 0; C2 < s2.length && s2[C2] !== c2; C2++) ;
              C2 >= s2.length && s2.push(c2);
            }
            (S2 = f2.toString()) && (S2 = S2.replace(new RegExp(e3, "g"), ""), y(S2, n3) && (S2 = S2.substr(0, S2.length - v2)), 0 === s2.length && s2.push([S2]));
          }
          return 0 === s2.length && (T2 = t3, y(t3, n3) && (T2 = T2.substr(0, T2.length - v2)), s2.push([T2])), (o2 && /^(\s)*$/.test(t3) || /^[\r\n]*$/.test(t3)) && En(s2) && t3.substr(t3.length - p2, p2) === a2 && s2.push([""]), s2;
        }
        function En(t3) {
          var n3, e3;
          if (t3) {
            for (n3 = 0; n3 < t3.length && ((e3 = t3[n3]) && 1 === e3.length); n3++) ;
            if (n3 === t3.length) return true;
          }
          return false;
        }
        function Rn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = i3.length, p2 = Bn(i3);
          if (0 !== v2 && 0 !== p2) for (o2 = new _n(r2), t3 && (yn(t3, 2) <= 0 && (o2.x5 = false), bn(t3, 1) <= 0 && (o2.N5 = false)), s2 = 0, (p2 -= a2 = o2.x5 ? yn(t3, 2) : 0) <= 0 && (p2 = 0), (v2 -= u2 = o2.N5 ? bn(t3, 1) : 0) <= 0 && (s2 = 0), (v2 -= s2) <= 0 && (v2 = 0), o2._5 && n3 + v2 > bn(t3) && t3.setRowCount(n3 + v2), o2.E5 && e3 + p2 > yn(t3) && t3.setColumnCount(e3 + p2), c2 = {}, f2 = 0, l2 = 0; f2 < i3.length; f2++, l2++) h2 = i3[f2], d2 = t3.o5(), h2.length <= 0 || (u2 > 0 && f2 < u2 ? Ln(t3, h2, l2, e3, p2, 1, o2, c2) : v2 > 0 && l2 < bn(t3) && (f2 === u2 && (l2 = n3), Ln(t3, h2, l2, 0, a2, 2, o2, c2), h2.splice(0, a2), d2 && (l2 = t3.j5(l2 - 1, 3)), Ln(t3, h2, l2, e3, p2, 3, o2, c2, d2)));
        }
        function Ln(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2 = yn(t3, o2);
          for (c2 = 0, f2 = i3; c2 < n3.length; c2++, f2++) r2 > 0 && f2 < l2 && (s2 && (f2 = t3.O5(f2 - 1, 3)), Fn(t3, o2, e3, f2, n3[c2], a2, u2));
        }
        function Fn(t3, n3, e3, i3, o2, a2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, b2, y2 = o2, w2 = N;
          if (false === a2.k5 && (c2 = { value: N }, l2 = s2[f2 = o2.toString()], !m(o2) && l2 ? (y2 = l2.setValue, w2 = l2.formatter) : o2 && !isNaN(o2) && o2.indexOf("	") >= 0 ? y2 = o2 : (y2 = u.mt.Xf(N, o2, !a2.k5, c2), w2 = c2.value, m(o2) || (s2[f2] = { setValue: y2, formatter: w2 }))), m(y2)) t3.setValue(e3, i3, y2, n3);
          else if ("" !== o2) if (a2.D5 && "=" === o2[0] && o2.length > 1) try {
            t3.setFormula(e3, i3, o2.substr(1));
          } catch (r2) {
            t3.setText(e3, i3, o2, n3);
          }
          else h2 = t3.l0(e3, i3, "formatter", n3), false === a2.k5 && w2 ? h2 ? h2 && ("string" == typeof h2 && r.Formatter && (h2 = new r.Formatter.GeneralFormatter(h2)), b2 = h2.parse && h2.parse(o2), y2 = m(b2) ? y2 : b2) : (w2.isAuto = true, t3.getCell(e3, i3, n3).R5("_autoFormatter", w2), d2 = void 0, v2 = t3.getCellType(e3, i3, n3), p2 = w2.formatString(), v2 && "7" === v2.typeName && (g2 = { sheet: t3, row: e3, col: i3, sheetArea: n3 }, d2 = v2.parse(o2, p2, g2), y2 = m(d2) ? o2 : d2)) : h2 && t3.getCell(e3, i3, n3).formatter(N), t3.setValue(e3, i3, y2, n3);
          else t3.setValue(e3, i3, N, n3);
        }
        function Bn(t3) {
          var n3, e3, i3 = 0;
          for (n3 = 0; n3 < (t3 && t3.length); n3++) e3 = t3[n3], i3 = D(e3.length, i3);
          return i3;
        }
        function Pn(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          if (!t3) throw new Error(L().Exp_SheetIsNull);
          if ((n3 < -1 || n3 >= bn(t3)) && Tn("row", n3, "-1", bn(t3) - 1), (e3 < -1 || e3 >= yn(t3)) && Tn("column", e3, "-1", yn(t3) - 1), !m(i3) && "" !== i3) {
            -1 === n3 && (n3 = 0), -1 === e3 && (e3 = 0);
            var f2 = On(i3, r2, o2, a2, s2, c2);
            f2 && f2.length > 0 && Rn(t3, n3, e3, f2, u2);
          }
        }
        function Gn(t3, n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2) {
          var p2, g2, b2, y2, w2, M2, C2, S2, T2, A2, I2, k2, N2;
          if (!t3) throw new Error(L().Exp_SheetIsNull);
          return p2 = bn(t3), g2 = yn(t3), (n3 < -1 || n3 >= p2) && Tn("row", n3, "-1", p2 - 1), (e3 < -1 || n3 + e3 > p2) && Tn("rowCount", e3, "-1", p2 - n3), (i3 < -1 || i3 >= g2) && Tn("column", i3, "-1", g2 - 1), (r2 < -1 || i3 + r2 > g2) && Tn("columnCount", r2, "-1", g2 - i3), b2 = -1, y2 = -1, w2 = false, M2 = false, -1 === n3 && -1 === i3 && -1 === e3 && -1 === r2 ? (n3 = 0, i3 = 0, b2 = (e3 = bn(t3)) - 1, y2 = (r2 = yn(t3)) - 1) : (-1 === n3 && (n3 = 0, 2 & ~Sn(t3) || (w2 = true)), -1 === i3 && (i3 = 0, 1 & ~Sn(t3) || (M2 = true)), -1 === e3 && (e3 = bn(t3) - n3), -1 === r2 && (r2 = yn(t3) - i3), b2 = n3 + e3 - 1, y2 = i3 + r2 - 1), (m(o2) || "" === o2) && (o2 = "\r\n"), (m(a2) || "" === a2) && (a2 = "	"), (m(s2) || "" === s2) && (s2 = '"'), S2 = null, T2 = null, A2 = zn(t3, n3, b2, i3, y2, 3, f2, l2, o2, a2, s2, C2 = new RegExp(s2, "g"), c2, h2, d2, v2), M2 && (I2 = t3.getColumnCount(2), S2 = zn(t3, n3, b2, 0, I2 - 1, 2, f2, l2, o2, a2, s2, C2, c2, h2, d2, v2)), w2 && (k2 = t3.getRowCount(1), T2 = zn(t3, 0, k2 - 1, i3, y2, 1, f2, l2, o2, a2, s2, C2, c2, h2, d2, v2)), Un(A2, S2, T2, o2, a2, N2 = h2 && e3 * r2 > 4e3 && (x.safari || x.mozilla || u.mt.Qf() && x.chrome));
        }
        function Un(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = t3, c2 = 0, f2 = function(t4, n4) {
            var e4, i4 = [], r3 = t4.length;
            for (e4 = 0; e4 < r3; e4++) i4.push(t4[e4].concat(n4[e4]));
            return i4;
          };
          return n3 && (c2 = n3[0].length, s2 = f2(n3, t3)), e3 && (a2 = e3.length, u2 = null, c2 && (e3 = f2(u2 = zn(null, 0, a2 - 1, 0, c2 - 1, null, [], [], i3, r2, null, null, null, false, false), e3)), s2 = e3.concat(s2)), o2 && Hn(s2), Vn(s2, i3, r2);
        }
        function Hn(t3) {
          var n3, e3 = t3.length;
          for (n3 = t3.length - 1; n3 >= 0 && -1 === t3[n3].join("").search(/\S+/); n3--) e3 = n3;
          t3.length = e3;
        }
        function Vn(t3, n3, e3) {
          var i3, r2, o2 = "", a2 = t3.length, s2 = u.mt.Qf();
          for (i3 = 0; i3 < a2; i3++) {
            for (r2 = 0; r2 < t3[i3].length; r2++) 0 !== r2 && (o2 += e3), o2 += t3[i3][r2];
            (!s2 || s2 && (1 === a2 || i3 < a2 - 1)) && (o2 += n3);
          }
          return o2;
        }
        function zn(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2) {
          var g2, m2, b2, y2, w2 = [], M2 = t3 && Cn(t3), C2 = [], S2 = [];
          for (null == a2 || a2.forEach((function(t4) {
            return C2[t4] = true;
          })), null == u2 || u2.forEach((function(t4) {
            return S2[t4] = true;
          })), g2 = n3; g2 <= e3; g2++) if (!C2[g2]) {
            for (b2 = [], m2 = i3; m2 <= r2; m2++) S2[m2] || (y2 = "", t3 && !Dn(t3, g2, m2, o2, d2) && (y2 = t3.getText(g2, m2, o2), p2 && M2 && y2 && (" " !== y2[0] && " " !== y2[y2.length - 1] || "number" != typeof t3.getValue(g2, m2, o2) || (y2 = y2.trim()))), y2 = Yn(y2, d2, M2, l2, f2, v2, h2, c2, s2), b2.push(y2));
            w2.push(b2);
          }
          return w2;
        }
        function Yn(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2 = "";
          return m(t3) || (c2 = (c2 = t3).replace(i3, r2 + r2)), o2 && !c2 && (c2 = " "), (a2 || -1 !== c2.indexOf(r2) || -1 !== c2.indexOf(u2) || -1 !== c2.indexOf(s2) || -1 !== c2.indexOf("\n")) && (c2 = r2 + c2 + r2), c2;
        }
        function Zn(t3, n3) {
          if (t3.sheets) {
            var e3 = (0, u._f)(t3, n3.sheetName);
            if (e3) return e3;
          }
          return t3;
        }
        function Wn(t3, n3, e3, i3) {
          var r2 = Zn(t3, e3), o2 = new n3(r2, e3, i3);
          return i3 ? o2.undo(r2) : o2.execute(r2);
        }
        function Qn(t3) {
          var n3 = t3;
          return function(t4, e3) {
            var i3 = Zn(t4, e3);
            return F.B5(i3, n3);
          };
        }
        function Kn(t3, n3) {
          var e3 = t3, i3 = n3;
          return function(t4, n4) {
            var r2 = Zn(t4, n4);
            return F.L5(r2, e3, i3);
          };
        }
        function Jn(t3, n3) {
          var e3, i3, r2, o2, a2 = t3.parent;
          a2 && (e3 = a2.getSheetCount(), i3 = void 0, r2 = void 0, i3 = r2 = a2.getActiveSheetIndex(), n3 ? r2 < e3 - 1 && r2++ : r2 > 0 && r2--, i3 !== r2 && (o2 = a2.getActiveSheet(), a2.tb(r2, 1), a2.a3(o2), a2.repaint()));
        }
        function Xn(t3, n3, e3, i3) {
          t3.F5 = true, qn(t3) ? t3.P5(n3) : t3.G5(n3, e3, void 0, void 0, i3), t3.F5 = false;
        }
        function qn(t3) {
          var n3, e3 = t3.Ut.getSelections().length;
          return e3 > 1 || !!((n3 = t3.U5()) && e3 > 0) && !(t3.ui === n3.row && t3.ci === n3.col && t3.H5 >= wn(n3) && t3.z5 >= Mn(n3));
        }
        function $n(t3, n3) {
          var e3, i3, r2, o2;
          return !!t3.endEdit() && ((e3 = t3.rt).V5(), e3.Y5(), u.hi.F1(N), i3 = false, (r2 = t3.parent) && ((o2 = n3.call(r2)) && o2.focus ? (o2.focus(), i3 = true) : r2.vC()), { ignoreCancelDefault: !i3 });
        }
        function te(t3, n3) {
          var e3, i3 = [];
          return "string" == typeof n3 ? (e3 = (0, u._f)(t3, n3)) && i3.push(e3) : Array.isArray(n3) && n3.forEach((function(n4) {
            var e4 = (0, u._f)(t3, n4);
            e4 && i3.push(e4);
          })), i3;
        }
        function ne(t3) {
          return t3 instanceof a.Worksheet ? t3 : t3.Mf instanceof a.Worksheet ? t3.Mf : void 0;
        }
        function ee(t3, n3) {
          m(t3.Tb) && (t3.Tb = n3.Tb, t3.Ab = n3.Ab);
        }
        function ie(t3, n3) {
          var e3, i3, r2, o2 = t3.frozenRowCount();
          n3 < o2 || (i3 = t3.vw(n3), r2 = null === (e3 = t3.parent) || void 0 === e3 ? void 0 : e3.ib, -1 !== i3 && i3 < t3.Tb && r2 && r2.yy(t3, i3, 0));
        }
        function re(t3, n3) {
          var e3, i3, r2, o2 = t3.frozenColumnCount();
          n3 < o2 || (i3 = t3.ww(n3), r2 = null === (e3 = t3.parent) || void 0 === e3 ? void 0 : e3.ib, -1 !== i3 && i3 < t3.Ab && r2 && r2.wy(t3, i3, 0));
        }
        function oe(t3, n3) {
          "value" === n3.propertyName && t3.eT(n3.row, n3.col, n3.oldValue, n3.newValue);
        }
        function ae(t3) {
          var n3 = t3.parent, e3 = n3 && n3.w2;
          e3 && e3.repaint();
        }
        function ue(t3, n3) {
          t3 && t3.forEach((function(t4) {
            var e3 = t4.w3.getFormula(t4.row, t4.column), i3 = t4.w3.sT(t4.row, t4.column);
            t4.w3.rT.setFormula(t4.row, t4.column, e3, i3, n3);
          }));
        }
        function se(t3, n3) {
          return !(true === t3.isEditing() && !t3.endEdit()) && (t3.suspendPaint(), t3.zoom(n3), t3.resumePaint(), true);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ChangedCells = n2.Commands = n2.getRangeText = n2.getMaxLength = n2.parseText = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("Common"), o = e2("./dist/core/worksheet/style.js"), a = e2("./dist/core/worksheet/worksheet.js"), u = e2("./dist/core/util/common.js"), s = e2("./dist/core/util/domUtil.js"), c = e2("./dist/core/core.enum.js"), f = s.GC$, l = e2("CalcEngine"), h = e2("./dist/core/util/crypto.js"), d = e2("./dist/core/worksheet/worksheet-formatter.js"), v = e2("./dist/core/worksheet/worksheet-clipboard.js"), p = e2("./dist/core/worksheet/actionbase.js"), g = !!l, m = r.Common.lt.ht, b = r.Common.zf, y = b.dT, w = u.Events.CellChanged, M = u.Events.ColumnWidthChanging, C = u.Events.ColumnWidthChanged, S = u.Events.RowHeightChanging, T = u.Events.RowHeightChanged, x = u.mt.Tt, A = u.mt.x0, I = u.mt.T1, k = f.extend, N = null, j = void 0, D = Math.max, _ = Math.ceil, O = 1e5, E = "SHA-512", R = new r.Common.ResourceManager(i2.SR, "Sheets"), L = R.getResource.bind(R), n2.parseText = On, n2.getMaxLength = Bn, n2.getRangeText = Gn, k(a.Worksheet.prototype, { autoFitColumn: function(t3) {
          0 <= t3 && t3 < yn(this) && this.Qy().execute({ cmd: "autoFitColumn", sheetName: this.name(), columns: [{ col: t3 }], rowHeader: false });
        }, autoFitRow: function(t3) {
          0 <= t3 && t3 < bn(this) && this.Qy().execute({ cmd: "autoFitRow", sheetName: this.name(), rows: [{ row: t3 }], columnHeader: false });
        }, setCsv: function(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2 = this;
          xn(s2), In(s2), Nn(s2), Pn(s2, t3, n3, e3, i3, r2, '"', o2, a2, u2), jn(s2, false), kn(s2), An(s2);
        }, setDataToCell: function(t3, n3, e3, i3) {
          Rn(t3, n3, e3, i3, 0);
        }, getCsv: function(t3, n3, e3, i3, r2, o2) {
          return Gn(this, t3, e3, n3, i3, r2, o2, '"', true);
        }, getRangeTextHasIgnore: function(t3, n3, e3, i3, r2, o2) {
          return Gn(this, t3, e3, n3, i3, "\r\n", "	", '"', true, r2, o2);
        }, findSpecialNonNullCellInRange: function(t3, n3) {
          for (var e3, i3 = this.Ut.sheetModels[3], r2 = u.mt.S1(this, t3), o2 = r2.row, a2 = r2.row + r2.rowCount, s2 = r2.col, c2 = r2.col + r2.colCount, f2 = i3.gT(o2 - 1); -1 !== f2 && f2 <= a2; ) {
            for (e3 = i3.pT(f2, s2 - 1); -1 !== e3 && e3 <= c2; ) {
              if (n3(this, f2, e3)) return { row: f2, col: e3 };
              e3 = i3.pT(f2, e3);
            }
            f2 = i3.gT(f2);
          }
          return j;
        }, nA: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = t3.length;
          if (!a2.isActualProtected()) return false;
          for (n3 = 0; n3 < u2; n3++) for (i3 = (e3 = t3[n3]).row; i3 < e3.row + e3.rowCount; i3++) for (r2 = e3.col; r2 < e3.col + e3.colCount; r2++) if (false !== (o2 = a2.getActualStyle(i3, r2)).locked) return true;
          return false;
        }, ET: function(t3) {
          for (var n3 = 0; n3 < t3.length; n3++) if (this.dA(t3[n3], j, c.SheetArea.viewport)) return true;
          return false;
        }, G5: function(t3, n3, e3, i3, r2) {
          var o2, a2, s2, c2 = this, f2 = c2.vA && 1 === c2.vA.sheetArea, l2 = c2.il && c2.il.rl;
          c2.endEdit && !c2.endEdit(j, !l2) || f2 || (o2 = { sheet: c2, sheetName: c2.name(), row: c2.ui, col: c2.ci, cancel: false }, c2.ki(u.Events.LeaveCell, o2), true !== o2.cancel && (a2 = c2.ui, s2 = c2.ci, m(e3) && (e3 = c2.ui), m(i3) && (i3 = c2.ci), 3 === t3 ? c2.mA(e3, i3, n3) : 4 === t3 ? c2.gA(e3, i3, n3) : 1 === t3 ? c2.pA(e3, i3, n3, r2) : 2 === t3 ? c2.bA(e3, i3, n3) : 5 === t3 ? c2.yA() : 6 === t3 && c2.wA(), c2.MA(t3, a2, s2, false)));
        }, P5: function(t3) {
          var n3, e3, i3, r2 = this;
          r2.endEdit() && (n3 = { sheet: r2, sheetName: r2.name(), row: r2.ui, col: r2.ci, cancel: false }, r2.ki(u.Events.LeaveCell, n3), true !== n3.cancel && (e3 = r2.ui, i3 = r2.ci, 3 === t3 ? r2.CA(r2.ui, r2.ci) : 4 === t3 ? r2.SA(r2.ui, r2.ci) : 1 === t3 ? r2.TA(r2.ui, r2.ci) : 2 === t3 && r2.AA(r2.ui, r2.ci), r2.MA(t3, e3, i3, true)));
        }, MA: function(t3, n3, e3, i3) {
          var r2, o2, a2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2 = this, R2 = E2.rt, L2 = E2.Ut.getSelections(), F2 = false;
          if (i3 || (o2 = E2.JS(E2.U5()), (L2.length > 1 || wn(o2) > 1 || Mn(o2) > 1) && (F2 = true), !F2 && E2.Cb && E2.Cb.Sb(o2) && (F2 = true), E2.IA()), a2 = E2.ui, s2 = E2.ci, f2 = E2.Ut.getSpan(a2, s2), E2.H5 = wn(f2), E2.z5 = Mn(f2), i3 || (l2 = E2.xA(a2, s2), h2 = E2.selectionPolicy(), d2 = E2.selectionUnit(), 0 !== h2 && 1 !== h2 || E2.Ut.do("clearSelection"), 1 === d2 ? (l2.col = -1, l2.colCount = -1) : 2 === d2 && (l2.row = -1, l2.rowCount = -1), E2.kA(l2.row, l2.col, wn(l2), Mn(l2), false), v2 = E2.Ut.getSelections(), R2._A(L2, v2) && (E2.EA(L2, v2), E2.jA(L2))), E2.OA(a2, s2), n3 !== a2 && (p2 = E2.H3) && p2.RA(), g2 = E2.Dn, F2) {
            if (m2 = E2.options.rightToLeft, b2 = E2.Fi(), y2 = m2 ? b2.x : b2.BA, w2 = b2.LA, M2 = b2.width - y2, C2 = b2.height - w2, g2.FA(y2, w2, M2, C2), g2.repaint(new u.Rect(y2, w2, M2, b2.qC)), g2.repaint(new u.Rect(y2, w2, b2.XC, C2)), T2 = (S2 = E2._1) && S2.isEnable(c.RowColumnStates.selected, true), x2 = S2 && S2.isEnable(c.RowColumnStates.selected, false), T2 || x2) {
              for (A2 = L2[0], I2 = 1; I2 < L2.length; I2++) A2 = A2.union(L2[I2]);
              A2 && (k2 = new u.Range(a2, s2, E2.H5, E2.z5), g2.E1(k2.union(A2), null, null, null, null, i3));
            }
            g2.jy(g2.J());
          } else j2 = wn(N2 = E2.Ut.getSpan(n3, e3)), D2 = Mn(N2), g2.E1(new u.Range(a2, s2, E2.H5, E2.z5).union(new u.Range(n3, e3, j2, D2)), null, null, null, null, i3);
          _2 = false === (null === (r2 = E2.getActualStyle(a2, s2)) || void 0 === r2 ? void 0 : r2.allowEditInCell), O2 = { sheet: E2, sheetName: E2.name(), row: a2, col: s2, readonly: _2 }, E2.ki(u.Events.EnterCell, O2), E2.ki(u.Events.EnterCellInternal, O2), R2.PA && R2.PA(a2, s2);
        }, GA: function(t3, n3, e3) {
          var i3 = this, r2 = i3.getDataValidator && i3.getDataValidator(t3, n3), o2 = { sheet: i3, sheetName: i3.name(), row: t3, col: n3, editingValue: e3, validator: r2, validationResult: 0 };
          return i3.ki(u.Events.ValidationError, o2), o2.validationResult;
        }, protect: function(t3) {
          this.aue(t3);
        }, aue: function(t3) {
          var n3, e3, i3, r2 = this, o2 = "string" == typeof t3;
          true !== r2.options.isProtected && (m(t3) || o2 && 0 === t3.length ? r2.options.isProtected = true : o2 && (n3 = h.Qoe.iue(), e3 = O, i3 = h.Qoe.nue(t3, n3, e3, h.Qoe.eue), r2.oue = { algorithmName: E, hashValue: i3, saltValue: n3, spinCount: e3 }, r2.options.isProtected = true));
        }, unprotect: function(t3) {
          return this.uue(t3);
        }, uue: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.sue();
          if (!s2.options.isProtected) return true;
          if (!c2) return s2.options.isProtected = false, true;
          if (m(t3) || "string" != typeof t3 || 0 === t3.length) return false;
          if (e3 = (n3 = s2.oue).hashValue, i3 = n3.saltValue, r2 = n3.spinCount, o2 = n3.algorithmName, a2 = n3.legacyPassword, u2 = false, [e3, i3, r2, o2].some(m)) {
            if (m(a2)) return false;
            u2 = h.Qoe.Yur(t3) === a2;
          } else {
            if (o2 !== E) throw new Error(L().EXP_UNSUPPORT_CRYPTO_ALGORITHM);
            u2 = h.Qoe.rue(t3, e3, i3, r2, h.Qoe.eue);
          }
          return !!u2 && (s2.options.isProtected = false, s2.oue = j, true);
        }, hasPassword: function() {
          return this.sue();
        }, sue: function() {
          return !m(this.oue);
        } }), F = {}, n2.Commands = F, F.B5 = function(t3, n3) {
          return !!t3 && (2 !== t3.Di && (t3.options.rightToLeft && (3 === n3 ? n3 = 4 : 4 === n3 && (n3 = 3)), t3.G5(n3, false), true));
        }, F.UA = function(t3, n3, e3, i3) {
          return !!t3 && (2 !== t3.Di && (t3.options.rightToLeft && (3 === n3 ? n3 = 4 : 4 === n3 && (n3 = 3)), t3.G5(n3, false, e3, i3), true));
        }, F.L5 = function(t3, n3, e3) {
          return !!t3 && (2 !== t3.Di && (!(t3.endEdit && !t3.endEdit()) && (t3.options.rightToLeft && (37 === n3 ? n3 = 39 : 39 === n3 && (n3 = 37)), t3.HA(n3, e3), true)));
        }, B = "navigationLeft", P = "navigationRight", G = "navigationUp", U = "navigationDown", H = "navigationHome2", V = "navigationEnd2", z = "navigationTop", Y = "navigationBottom", Z = "navigationHome", W = "navigationFirst", Q = "navigationEnd", K = "navigationLast", J = "moveToNextCell", X = "moveToPreviousCell", q = "navigationPageUp", $ = "navigationPageDown", tt = "navigationPreviousSheet", nt = "navigationNextSheet", et = "startEdit", it = "changeEditorStatus", rt = "clear", ot = "clearAndEditing", at = "commitInputNavigationDown", ut = "commitInputNavigationUp", st = "cancelInput", ct = "commitArrayFormula", ft = "selectionLeft", lt = "selectionRight", ht = "selectionUp", dt = "selectionDown", vt = "selectionHome", pt = "selectionEnd", gt = "selectionPageUp", mt = "selectionPageDown", bt = "selectionTop", yt = "selectionBottom", wt = "selectionFirst", Mt = "selectionLast", Ct = "copy", St = "superCopy", Tt = "cut", xt = "superCut", At = "paste", It = "undo", kt = "redo", Nt = "resizeColumn", jt = "resizeRow", Dt = "splitResizeRow", _t = "splitResizeColumn", Ot = "autoFitColumn", Et = "autoFitRow", Rt = "editCell", Lt = "setCellDefaultValue", Ft = "renameSheet", Bt = "zoom", Pt = "clearValues", Gt = "clipboardPaste", Ut = "selectNextControl", Ht = "selectPreviousControl", Vt = "moveToNextCellThenControl", zt = "moveToPreviousCellThenControl", Yt = "changeFormulaReference", Zt = "moveSheet", Wt = "copySheet", Qt = "showAllSheetsDialog", Kt = "openPasteSpecialDialog", Jt = "transformCellsInternal", F.Tp = Zn, F.zA = Wn, F.gM = function(t3) {
          var n3 = u.mt.Qf(), e3 = !n3, i3 = n3;
          t3.register(B, F[B], 37, false, false, false, false), t3.register(P, F[P], 39, false, false, false, false), t3.register(G, F[G], 38, false, false, false, false), t3.register(U, F[U], 40, false, false, false, false), t3.register(H, F[H], 37, e3, false, false, i3), t3.register(V, F[V], 39, e3, false, false, i3), t3.register(z, F[z], 38, e3, false, false, i3), t3.register(Y, F[Y], 40, e3, false, false, i3), t3.register(Z, F[Z], 36, false, false, false, false), t3.register(W, F[W], 36, true, false, false, false), t3.register(Q, F[Q], 35, false, false, false, false), t3.register(K, F[K], 35, true, false, false, false), t3.register(J, F[J], 9, false, false, false, false), t3.register(X, F[X], 9, false, true, false, false), t3.register(q, F[q], 33, false, false, false, false), t3.register($, F[$], 34, false, false, false, false), t3.register(tt, F[tt], 33, e3, false, false, i3), t3.register(nt, F[nt], 34, e3, false, false, i3), t3.register(rt, F[rt], 46, false, false, false, false), t3.register(ot, F[ot], 8, false, false, false, false), t3.register(et, F[et], 113, false, false, false, false), t3.register(it, F[it], 113, false, false, false, false), t3.register(at, F[at], 13, false, false, false, false), t3.register(ut, F[ut], 13, false, true, false, false), t3.register(st, F[st], 27, false, false, false, false), t3.register(ct, F[ct], 13, true, true, false, false), t3.register(ft, F[ft], 37, false, true, false, false), t3.register(lt, F[lt], 39, false, true, false, false), t3.register(ht, F[ht], 38, false, true, false, false), t3.register(dt, F[dt], 40, false, true, false, false), t3.register(vt, F[vt], 36, false, true, false, false), t3.register(pt, F[pt], 35, false, true, false, false), t3.register(gt, F[gt], 33, false, true, false, false), t3.register(mt, F[mt], 34, false, true, false, false), t3.register(vt, F[vt], 37, e3, true, false, i3), t3.register(pt, F[pt], 39, e3, true, false, i3), t3.register(bt, F[bt], 38, e3, true, false, i3), t3.register(yt, F[yt], 40, e3, true, false, i3), t3.register(wt, F[wt], 36, true, true, false, false), t3.register(Mt, F[Mt], 35, true, true, false, false), x.msie || x.edge ? t3.register(Ct, F[Ct], 67, e3, false, false, i3) : (t3.register(Ct, F[Ct]), t3.register(St, F[St], 67, e3, false, false, i3)), x.msie || x.edge ? t3.register(Tt, F[Tt], 88, e3, false, false, i3) : (t3.register(Tt, F[Tt]), t3.register(xt, F[xt], 88, e3, false, false, i3)), t3.register(At, F[At], 86, e3, false, false, i3), t3.register(It, F[It], 90, e3, false, false, i3), t3.register(kt, F[kt], 89, e3, false, false, i3), n3 && t3.register(kt, F[kt], 90, e3, true, false, i3), t3.register(Ut, F[Ut]), t3.register(Ht, F[Ht]), t3.register(Vt, F[Vt]), t3.register(zt, F[zt]), t3.register(Yt, F[Yt]), t3.register(Nt, F[Nt]), t3.register(jt, F[jt]), t3.register(_t, F[_t]), t3.register(Dt, F[Dt]), t3.register(Ot, F[Ot]), t3.register(Et, F[Et]), t3.register(Rt, F[Rt]), t3.register(Lt, F[Lt]), t3.register(Ft, F[Ft]), t3.register(Bt, F[Bt]), t3.register(Pt, F[Pt]), t3.register(Gt, F[Gt]), t3.register(Zt, F[Zt]), t3.register(Wt, F[Wt]), t3.register(Qt, F[Qt]), t3.register(Kt, F[Kt], 86, true, false, true, false), t3.register(Jt, F[Jt]);
        }, Xt = { 256: "bindingPath", 4: "comment", 2: "formula", 16: "sparkline", 64: "style", 128: "tag", 1024: "hyperlink", 2048: "defaultValue", 4096: "altText", 1: "value" }, qt = ".cellEditAction", F[B] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Qn(3) }, F[P] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Qn(4) }, F[G] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Qn(1) }, F[U] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Qn(2) }, F[ct] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = F.VA;
          return i3 && (e3 = i3.YA(e3)), e3.YA && e3.YA(), true;
        } }, F[at] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = F.VA;
          return i3 && (e3 = i3.ZA(e3)), Xn(e3, 2, false), true;
        } }, F[ut] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = F.VA;
          return i3 && (e3 = i3.WA(e3)), Xn(e3, 1, false, true), true;
        } }, F[Z] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return F.UA(e3, 4, N, e3.frozenColumnCount() - 1);
        } }, F[H] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3 = Zn(t3, n3);
          return !!(i3 && (e3 = i3.getSelections()).length > 0) && F.UA(i3, 4, N, -1);
        } }, F[Q] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return F.UA(e3, 3, N, yn(e3) - e3.frozenTrailingColumnCount());
        } }, F[V] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3 = Zn(t3, n3);
          return !!(i3 && (e3 = i3.getSelections()).length > 0) && F.UA(i3, 3, N, yn(i3));
        } }, F[z] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return F.UA(e3, 2, -1, N);
        } }, F[Y] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return F.UA(e3, 1, bn(e3), N);
        } }, F[q] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = Zn(t3, n3);
          if (!u2 || 2 === u2.Di) return false;
          if ((e3 = u2.QA()) === N || e3 === u2.Tb) return true;
          if (i3 = u2._y(1, 3), (r2 = u2.j5(u2.ui - i3.length)) < e3 && (r2 = e3), o2 = F.VA) {
            if ((a2 = o2.KA(u2, r2, e3)).r) return true;
            u2 = a2.sheet;
          }
          return !!u2.endEdit() && (u2.JA(r2, u2.getActiveColumnIndex()) && (u2.XA(r2, N), u2.qA = r2, u2.G5()), u2.$A(e3, 0), true);
        } }, F[$] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = Zn(t3, n3);
          if (!u2 || 2 === u2.Di) return false;
          if ((e3 = u2.tI()) === N || e3 === u2.Tb) return true;
          if (i3 = u2._y(1, 3), (r2 = u2.nI(u2.ui + i3.length)) < e3 && (r2 = e3), o2 = F.VA) {
            if ((a2 = o2.eI(u2, r2, e3)).r) return true;
            u2 = a2.sheet;
          }
          return !!u2.endEdit() && (u2.JA(r2, u2.getActiveColumnIndex()) && (u2.XA(r2, N), u2.qA = r2, u2.G5()), u2.$A(e3, 0), true);
        } }, F[nt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3;
          Jn(Zn(t3, n3), true);
        } }, F[tt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3;
          Jn(Zn(t3, n3), false);
        } }, F[W] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3);
          if (!r2 || 2 === r2.Di) return false;
          if (e3 = F.VA) {
            if ((i3 = e3.iI(r2)).r) return true;
            r2 = i3.sheet;
          }
          return r2.G5(5, false, r2.ui, r2.ci), true;
        } }, F[K] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3);
          if (!r2 || 2 === r2.Di) return false;
          if (e3 = F.VA) {
            if ((i3 = e3.rI(r2)).r) return true;
            r2 = i3.sheet;
          }
          return r2.G5(6, false, r2.ui, r2.ci), true;
        } }, F[Ut] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return !!e3.parent && $n(e3, e3.parent.nextControl);
        } }, F[Ht] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return !!e3.parent && $n(e3, e3.parent.previousControl);
        } }, F[J] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = F.VA;
          return i3 && (e3 = i3.oI(e3)), Xn(e3, 4, true), true;
        } }, F[X] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = F.VA;
          return i3 && (e3 = i3.aI(e3)), Xn(e3, 3, true), true;
        } }, F[Vt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3), o2 = r2.qA, a2 = r2.getActiveColumnIndex();
          return r2.F5 = true, e3 = r2.uI(r2.getActiveRowIndex(), a2, true, o2), r2.F5 = false, (i3 = !e3 || (e3.leadingCellRow < o2 || e3.leadingCellRow === o2 && a2 > e3.col)) ? F[Ut].execute(t3, n3) : F[J].execute(t3, n3);
        } }, F[zt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3), o2 = r2.qA, a2 = r2.getActiveColumnIndex();
          return r2.F5 = true, e3 = r2.sI(r2.getActiveRowIndex(), a2, true, o2), r2.F5 = false, (i3 = !e3 || (e3.leadingCellRow > o2 || e3.leadingCellRow === o2 && a2 < e3.col)) ? F[Ht].execute(t3, n3) : F[X].execute(t3, n3);
        } }, F[st] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3), o2 = F.VA;
          return o2 && (e3 = o2.cI(r2)), r2.isEditing() ? !!r2.endEdit(true) : m(e3) ? (F.fI(r2.parent), r2.bM = N, r2.parent.bM.c5(), u.hi.A1(r2) && r2.y_e(), (i3 = r2).AT && i3.AT(), void (i3.ieV && i3.ieV())) : e3;
        } }, F.fI = function(t3) {
          var n3, e3, i3, r2, o2, a2;
          if (t3 && (n3 = t3.sheets, e3 = t3.mp.map((function(t4) {
            return t4.Mf;
          })), i3 = n3.concat(e3))) for (r2 = 0, o2 = i3.length; r2 < o2; r2++) (a2 = i3[r2]) && a2.lA && a2.lA.lI();
        }, F[et] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return !e3.isEditing() && u.mt.b_e(e3).length <= 0 && u.mt.w_e(e3).length <= 0 && (e3.Pgr = true, e3.f6(e3.fg, e3.ui, e3.ci, j, j, false, j, false, j, c.EditorStatus.edit), e3.Pgr = false, true);
        } }, F[it] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return !!e3.isEditing() && (1 === e3.Di ? (e3.Di = 2, e3._i(1, 2)) : 2 === e3.Di && (e3.Di = 1, e3._i(2, 1)), true);
        } }, F[rt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3 = Zn(t3, n3);
          return !i3.isEditing() && (e3 = i3.getSelections(), i3.Qy().execute({ cmd: Pt, sheetName: i3.name(), ranges: e3 }));
        } }, F[ot] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3);
          return !e3.isEditing() && (u.mt.Qf() ? (F[rt].execute(t3, n3), true) : (e3.Ai = true, e3.startEdit(true, ""), e3.Ai = false, true));
        } }, F[Ct] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3 = Zn(t3, n3), r2 = !n3.eye && (null === (e3 = n3.ignoreClipboard) || void 0 === e3 || e3), o2 = n3.copyData = i3.eA(r2);
          return n3.callback && n3.callback(), !o2 || j;
        } }, F[St] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3), o2 = null === (e3 = r2.parent) || void 0 === e3 ? void 0 : e3.commandManager(), a2 = u.mt.b_e(r2);
          return a2.length > 0 ? (r2.y_e(), o2.execute({ cmd: "copyShapes", sheetName: r2.name() })) : (i3 = u.mt.w_e(r2)).length > 0 ? (r2.y_e(), o2.execute({ cmd: "copyFloatingObjects", sheetName: r2.name() })) : o2.execute(pn({ cmd: Ct }, n3));
        } }, F[Tt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3 = Zn(t3, n3), r2 = !n3.eye && (null === (e3 = n3.ignoreClipboard) || void 0 === e3 || e3), o2 = n3.cutData = i3.tA(r2);
          return n3.callback && n3.callback(), !o2 || j;
        } }, F[xt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2 = Zn(t3, n3), o2 = null === (e3 = r2.parent) || void 0 === e3 ? void 0 : e3.commandManager(), a2 = u.mt.b_e(r2);
          return a2.length > 0 ? (r2.y_e(), o2.execute({ cmd: "cutShapes", sheetName: r2.name() })) : (i3 = u.mt.w_e(r2)).length > 0 ? (r2.y_e(), o2.execute({ cmd: "cutFloatingObjects", sheetName: r2.name() })) : o2.execute(pn({ cmd: Tt }, n3));
        } }, F[At] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3 = null !== (e3 = n3.eye) && void 0 !== e3 && e3, r2 = Zn(t3, n3);
          r2.rA(n3, i3);
        } }, F[ft] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(37) }, F[lt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(39) }, F[ht] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(38) }, F[dt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(40) }, F[vt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(37, true) }, F[pt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(39, true) }, F[gt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(33) }, F[mt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(34) }, F[bt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(38, true) }, F[yt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(40, true) }, F[wt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(36, true) }, F[Mt] = { canUndo: false, metaData: { viewModePermissions: 1 }, execute: Kn(35, true) }, F[Yt] = { canUndo: false, execute: function(t3, n3) {
          var e3 = Zn(t3, n3), i3 = e3 && e3.rt;
          if (i3) {
            xn(e3);
            try {
              i3.hI && i3.hI();
            } finally {
              An(e3);
            }
          }
        } }, F[It] = { canUndo: false, execute: function(t3) {
          var n3, e3 = t3;
          return e3 && (n3 = e3.undoManager()) && n3.canUndo() && (n3.undo(), e3.ki(u.Events.WorkbookUndo, { spread: e3 })), true;
        } }, F[kt] = { canUndo: false, execute: function(t3) {
          var n3, e3 = t3;
          return e3 && (n3 = e3.undoManager()) && n3.canRedo() && (n3.redo(), e3.ki(u.Events.WorkbookRedo, { spread: e3 })), true;
        } }, F[Nt] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, tn, n3, e3);
        } }, F[jt] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, nn, n3, e3);
        } }, F[_t] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, en, n3, e3);
        } }, F[Dt] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, rn, n3, e3);
        } }, F[Ot] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, on, n3, e3);
        } }, F[Et] = { canUndo: true, metaData: { viewModePermissions: 4 }, execute: function(t3, n3, e3) {
          return Wn(t3, an, n3, e3);
        } }, F[Rt] = { canUndo: true, execute: function(t3, n3, e3) {
          return Wn(t3, sn, n3, e3);
        } }, F[Lt] = { canUndo: false, execute: function(t3, n3, e3) {
          return Wn(t3, cn, n3, e3);
        } }, F[Ft] = { canUndo: true, execute: function(t3, n3, e3) {
          return Wn(t3, fn, n3, e3);
        } }, F[Bt] = { canUndo: true, metaData: { viewModePermissions: 1 }, execute: function(t3, n3, e3) {
          return Wn(t3, ln, n3, e3);
        } }, F[Pt] = { canUndo: true, execute: function(t3, n3, e3) {
          var i3 = Zn(t3, n3), r2 = i3.getSelections();
          return i3.isActualProtected() && i3.ET(r2) ? (i3.jT(13, i3.FT()), false) : Wn(t3, dn, n3, e3);
        } }, F[Gt] = { canUndo: true, execute: function(t3, n3, e3) {
          var i3, r2, o2, a2 = [c.ClipboardPasteOptions.all, c.ClipboardPasteOptions.values, c.ClipboardPasteOptions.formulas, c.ClipboardPasteOptions.formulasAndNumberFormatting, c.ClipboardPasteOptions.valuesAndNumberFormatting];
          return !n3.isCutting && (null === (i3 = n3.pasteSpecialOptions) || void 0 === i3 ? void 0 : i3.operationOptions) === c.PasteOperationOptions.transform && a2.includes(n3.pasteOption) ? o2 = v.ClipboardPasteTransformUndoAction : (o2 = v.ClipboardPasteUndoAction, (null === (r2 = n3.pasteSpecialOptions) || void 0 === r2 ? void 0 : r2.operationOptions) === c.PasteOperationOptions.transform && (n3.pasteSpecialOptions.operationOptions = c.PasteOperationOptions.none, n3.pasteSpecialOptions.transformFormula = j, n3.pasteSpecialOptions.transformScope = j)), Wn(t3, o2, n3, e3);
        } }, F[Jt] = { canUndo: true, execute: function(t3, n3, e3) {
          return Wn(t3, v.TransformCells, n3, e3);
        } }, F[Zt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3 = n3.sheetName, r2 = n3.targetIndex, o2 = t3.getSheetPosition(i3), a2 = t3.jg(), s2 = o2, c2 = r2, f2 = { sheet: a2, sheetName: a2.name(), oldIndex: s2, newIndex: c2, cancel: false };
          return t3.ki(u.Events.SheetMoving, f2), !f2.cancel && (e3 = t3.changeSheetPosition(i3, r2), t3.ki(u.Events.SheetMoved, { sheet: a2, sheetName: a2 ? a2.name() : N, oldIndex: s2, newIndex: c2 }), e3);
        } }, F[Wt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2 = n3.sheetName, o2 = n3.targetIndex, a2 = n3.newName, s2 = n3.includeBindingSource, c2 = t3.Gm(r2);
          return t3.ki(u.Events.SheetChanging, { sheetName: a2, propertyName: "insertSheet", cancel: false, sheetIndex: o2, sheetPosition: t3.getSheetPosition(a2) }), t3.ki(u.Events.ActiveSheetChanging, { oldSheet: c2, newSheet: i3, cancel: false }), i3 = t3.clone(r2, o2, a2, s2), !m(i3) && (t3.ki(u.Events.SheetChanged, { sheetName: i3.name(), propertyName: "insertSheet", sheetIndex: o2, sheetPosition: t3.getSheetPosition(i3.name()) }), t3.ki(u.Events.ActiveSheetChanged, { oldSheet: c2, newSheet: i3 }), t3.sheetTabStyles.all()[r2] && (t3.sheetTabStyles.xTe[i3.name()] = t3.sheetTabStyles.all()[r2], null === (e3 = t3.w2) || void 0 === e3 || e3.Cg()), true);
        } }, F[Qt] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2, o2, a2, s2, f2, l2 = t3, h2 = "gc.spread.", d2 = "gc.spread.contextMenu.allSheets", v2 = "sheetTab", p2 = [], g2 = l2.qv();
          for (i3 = 0; i3 < g2.length; i3++) g2[i3].visible() === c.SheetTabVisible.visible && (r2 = g2[i3].name().length > 21 ? g2[i3].name().substr(0, 18) + "..." : g2[i3].name(), o2 = { text: r2 = b.dI(r2), name: h2 + g2[i3].name(), command: d2, workArea: v2, itemClass: "", title: g2[i3].name() }, g2[i3].b2() && (e3 = i3, o2.itemClass = "gc-ui-contextmenu-menuitem-all-sheets-select-sheets-background-color"), p2.push(o2));
          return s2 = { oldSheet: a2 = (0, u.jf)(l2), newSheet: a2, needTriggerSheetChange: true }, l2.ki(u.Events.ActiveSheetChangingInternal, s2), f2 = { items: p2, mouseEvent: n3.mouseEvent, cancel: false }, l2.ki(u.Events.SheetTabAllSheetsListContextMenuOpening, f2), !f2.cancel && (l2.contextMenu.openAllSheetsListContextMenu(p2, l2, n3.mouseEvent, e3), l2.ki(u.Events.SheetTabAllSheetsListContextMenuOpened, f2), l2.ki(u.Events.ActiveSheetChangedInternal, { oldSheet: void 0, newSheet: a2 }), true);
        } }, F[Kt] = { canUndo: false, execute: function(t3, n3, e3) {
          return Wn(t3, v.OpenPasteSpecialDialogActive, n3, e3);
        } }, $t = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.Mf = t4, i3.Z5 = n3, i3.W5 = e3, i3.Q5 = [], i3.K5 = [], i3.J5();
          }
          return t3.prototype.toJSON = function() {
            var t4 = this;
            return { sheetName: t4.Mf.name(), range: t4.Z5, dataType: t4.W5, cellsData: t4.Q5 };
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3 = t4.sheetName, i3 = n3;
            "Workbook" === n3.constructor.name && (i3 = n3.getSheetFromName(e3)), this.Mf = i3, this.Z5 = t4.range, this.W5 = t4.dataType, this.Q5 = t4.cellsData;
          }, t3.prototype.J5 = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = this, D2 = k2.Z5, _2 = k2.Mf;
            if (_2 && D2) {
              if (t4 = k2.W5, n3 = D2.row, e3 = D2.col, i3 = wn(D2), r2 = Mn(D2), o2 = k2.Q5, a2 = false, -1 === n3 && (a2 = true, n3 = 0, i3 = bn(_2)), -1 === e3 && (a2 = true, e3 = 0, r2 = yn(_2)), s2 = [], (64 & t4) > 0) for (f2 = 0; f2 < r2; f2++) s2[f2] = _2.vI(-1, f2) || N;
              for (l2 = 0; l2 < i3; l2++) for (h2 = n3 + l2, (64 & t4) > 0 && (u2 = _2.vI(h2, -1) || N), d2 = 0; d2 < r2; d2++) {
                if (v2 = void 0, p2 = e3 + d2, g && (2 & t4) > 0 && _2.getFormulaInformation && (v2 = _2.getFormulaInformation(h2, p2, 3)).hasFormula) if (v2.isArrayFormula) {
                  if ((b2 = v2.baseRange).row === h2 && b2.col === p2) for (y2 = b2.row, w2 = b2.row + wn(b2); y2 < w2; y2++) for (M2 = b2.col, C2 = b2.col + Mn(b2); M2 < C2; M2++) k2.mI(o2, y2 - n3, M2 - e3, v2, 2);
                } else k2.mI(o2, l2, d2, v2.formula, 2);
                !((1 & t4) > 0) || v2 && v2.hasFormula || k2.mI(o2, l2, d2, _2.getValue(h2, p2, 3), 1), (16 & t4) > 0 && _2.getSparkline && (S2 = _2.getSparkline(h2, p2), T2 = N, S2 && (m(S2.data()) && S2.data(S2.gI), T2 = S2.data()), S2 && T2 && k2.mI(o2, l2, d2, S2, 16)), (64 & t4) > 0 && (x2 = void 0, a2 ? x2 = _2.getActualStyle(h2, p2, 3) : (c2 = _2.vI(h2, p2) || N, x2 = _2.getCompositeStyle(h2, p2, 3, c2, u2, s2[d2])), A2 = j, x2 && x2.toJSON && (A2 = JSON.stringify(x2.toJSON(3, true))), k2.mI(o2, l2, d2, A2, 64)), I2 = _2.Ut.pI, (4 & t4) > 0 && I2 && k2.mI(o2, l2, d2, I2.get(h2, p2), 4), (128 & t4) > 0 && k2.mI(o2, l2, d2, _2.getTag(h2, p2, 3), 128), (256 & t4) > 0 && k2.mI(o2, l2, d2, _2.getBindingPath && _2.getBindingPath(h2, p2, 3), 256), (1024 & t4) > 0 && k2.mI(o2, l2, d2, _2.getHyperlink && _2.getHyperlink(l2, d2, 3), 1024), (2048 & t4) > 0 && k2.mI(o2, l2, d2, _2.getDefaultValue(h2, p2, 3), 2048), (4096 & t4) > 0 && k2.mI(o2, l2, d2, _2.getAltText(l2, d2, 3), 4096);
              }
            }
          }, t3.prototype.bI = function() {
            return this.Q5;
          }, t3.prototype.mI = function(t4, n3, e3, i3, r2) {
            !m(i3) && t4 && (t4[n3] === j && (t4[n3] = []), t4[n3][e3] === j && (t4[n3][e3] = {}), t4[n3][e3][Xt[r2]] = i3);
          }, t3.prototype.yI = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2;
            if (t4) {
              for (e3 = (n3 = this).Q5, i3 = 0, r2 = t4.length; i3 < r2; i3++) if (o2 = t4[i3]) for (a2 = 0, u2 = o2.length; a2 < u2; a2++) (s2 = o2[a2]) && (e3[i3] || (e3[i3] = []), (c2 = e3[i3][a2]) ? n3.wI(s2, c2) && (e3[i3][a2] = j) : e3[i3][a2] = s2);
            }
          }, t3.prototype.wI = function(t4, n3) {
            var e3, i3, r2, o2 = this.W5, a2 = [];
            for (256 & o2 && a2.push(Xt[256]), 4 & o2 && a2.push(Xt[4]), 2 & o2 && a2.push(Xt[2]), 16 & o2 && a2.push(Xt[16]), 64 & o2 && a2.push(Xt[64]), 128 & o2 && a2.push(Xt[128]), 1024 & o2 && a2.push(Xt[1024]), 2048 & o2 && a2.push(Xt[2048]), 4096 & o2 && a2.push(Xt[4096]), 1 & o2 && a2.push(Xt[1]), e3 = 0, i3 = a2.length; e3 < i3; e3++) if (t4[r2 = a2[e3]] !== n3[r2]) return false;
            return true;
          }, t3.prototype.MI = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Z5.row, u2 = o2.Z5.col, s2 = o2.Q5, c2 = o2.K5;
            if (c2 && c2.length > 0) return c2;
            for (c2 = [], a2 = -1 === a2 ? 0 : a2, u2 = -1 === u2 ? 0 : u2, t4 = 0, n3 = s2.length; t4 < n3; t4++) if (e3 = s2[t4]) for (i3 = 0, r2 = e3.length; i3 < r2; i3++) e3[i3] && c2.push({ row: t4 + a2, col: i3 + u2 });
            return o2.K5 = c2, c2;
          }, t3;
        })(), n2.ChangedCells = $t, F.CI = $t, F.SI = function(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          t3 && (n3 < 0 && (n3 = 0, i3 = bn(t3)), e3 < 0 && (e3 = 0, r2 = yn(t3)), t3.SI(n3, e3, i3, r2, o2, a2, j, j, u2, s2, c2));
        }, F.TI = function(t3) {
          return "changes" + t3;
        }, F.AI = function(t3) {
          return t3 && (0 !== t3.length || !f.isEmptyObject(t3));
        }, F.lM = function(t3) {
          var n3, e3 = t3.sheetName;
          return "string" == typeof e3 ? n3 = [e3] : Array.isArray(e3) && (n3 = e3), !!n3 && n3.every((function(n4) {
            var e4 = F.TI(n4), i3 = t3[e4];
            return i3 && 0 === i3.length && f.isEmptyObject(i3);
          }));
        }, F.startTransaction = function(t3, n3) {
          te(t3, n3.sheetName).forEach((function(t4) {
            t4.vCn();
          }));
        }, F.endTransaction = function(t3, n3) {
          te(t3, n3.sheetName).forEach((function(t4) {
            var e3 = F.TI(t4.name());
            n3[e3] = t4.FCn();
          }));
        }, F.undoTransaction = function(t3, n3) {
          te(t3, n3.sheetNames || n3.sheetName).forEach((function(t4) {
            var e3 = F.TI(t4.name());
            t4.Mtt(n3[e3]), t4.zw();
          }));
        }, F.II = function(t3) {
          t3.forEach((function(t4) {
            var n3 = ne(t4);
            n3 && n3.vCn();
          }));
        }, F.startTransactionAll = function(t3) {
          F.II(t3);
        }, F.xI = function(t3, n3) {
          var e3 = [];
          t3.forEach((function(t4) {
            var i3, r2, o2, a2 = ne(t4);
            a2 && !a2.xT && (i3 = a2.name(), r2 = F.TI(i3), (o2 = a2.FCn()) && (n3[r2] = o2, e3.push(i3)));
          })), n3.sheetNames = e3;
        }, F.endTransactionAll = function(t3, n3) {
          F.xI(t3, n3);
        }, F.NI = function(t3, n3) {
          t3.forEach((function(t4) {
            var e3, i3 = ne(t4);
            i3 && (i3.Nj = true, e3 = F.TI(i3.name()), i3.Mtt(n3[e3]), i3.Nj = false);
          }));
        }, F.ActionBase = p.ActionBase, tn = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return ee(e3, n4), i3;
          }
          return vn(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = false;
            if (m2.canExecute() && (t4 = m2.tT, n4 = m2.Mf, e3 = t4.columns, i3 = t4.rowHeader, r2 = e3 && e3.length, n4 && r2 > 0)) {
              if (o2 = m2.kI(e3), a2 = { sheet: n4, sheetName: n4.name(), colList: o2, header: i3, cancel: false }, n4.ki(M, a2), a2 && true === a2.cancel) return b2;
              t4.DI = true, F.startTransaction(n4.getParent(), t4), m2.X5(n4);
              try {
                for (u2 = 2, s2 = 3, c2 = yn(n4, i3 ? u2 : s2), n4.Ab = t4.Ab, l2 = t4.size, h2 = 0; h2 < r2; h2++) for (v2 = (d2 = e3[h2]).firstCol, p2 = d2.lastCol, g2 = v2; g2 <= p2; g2++) 0 <= g2 && g2 < c2 && (i3 && n4.getColumnResizable(g2, u2) && l2 !== n4.Do(g2, u2) ? (n4.setColumnWidth(g2, l2, u2), b2 = true) : !i3 && n4.getColumnResizable(g2, s2) && l2 !== n4.Do(g2, s2) && (n4.setColumnWidth(g2, l2, s2), b2 = true));
              } finally {
                kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(C, { sheet: n4, sheetName: n4.name(), colList: o2, header: t4.rowHeader }), re(n4, e3[0].firstCol), n4.ow(), An(n4), F.endTransaction(n4.getParent(), t4);
              }
            }
            return b2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2 = this, c2 = false;
            if (s2.canUndo() && (t4 = s2.tT, n4 = s2.Mf, e3 = t4.columns, i3 = t4.rowHeader, r2 = e3 && e3.length, n4 && r2 > 0)) {
              if (o2 = s2.kI(e3), a2 = { sheet: n4, sheetName: n4.name(), colList: o2, header: i3, cancel: false }, n4.ki(M, a2), a2 && true === a2.cancel) return c2;
              s2.X5(n4);
              try {
                u2 = F.TI(n4.name()), n4.Mtt(t4[u2]), n4.Zw = true, n4.showCell(n4.getActiveRowIndex(), n4.getActiveColumnIndex(), 1, 1), n4.Ab = t4.Ab, c2 = true;
              } finally {
                kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(C, { sheet: n4, sheetName: n4.name(), colList: o2, header: t4.rowHeader }), An(n4);
              }
            }
            return c2;
          }, n3.prototype.kI = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = [];
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) for (r2 = (i3 = t4[n4]).firstCol, o2 = i3.lastCol, a2 = r2; a2 <= o2; a2++) u2.push(a2);
            return u2;
          }, n3.prototype.canUndo = function() {
            return this.tT.DI;
          }, n3;
        })(p.ActionBase), nn = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return ee(e3, n4), i3;
          }
          return vn(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = false;
            if (m2.canExecute() && (t4 = m2.Mf, i3 = (e3 = (n4 = m2.tT).rows) && e3.length, t4 && i3 > 0)) {
              if (r2 = m2._I(e3), o2 = { sheet: t4, sheetName: t4.name(), rowList: r2, header: n4.columnHeader, cancel: false }, t4.ki(S, o2), o2 && true === o2.cancel) return b2;
              n4.DI = true, F.startTransaction(t4.getParent(), n4), m2.X5(t4);
              try {
                for (a2 = 3, u2 = 1, c2 = bn(t4, (s2 = n4.columnHeader) ? u2 : a2), t4.Tb = n4.Tb, l2 = n4.size, h2 = 0; h2 < i3; h2++) for (v2 = (d2 = e3[h2]).firstRow, p2 = d2.lastRow, g2 = v2; g2 <= p2; g2++) 0 <= g2 && g2 < c2 && (s2 && t4.getRowResizable(g2, u2) && l2 !== t4._o(g2, u2) ? (t4.setRowHeight(g2, l2, u2), b2 = true) : !s2 && t4.getRowResizable(g2, a2) && l2 !== t4._o(g2, a2) && (t4.setRowHeight(g2, l2, a2), b2 = true));
              } finally {
                kn(t4), f[f.sd]({ jS: t4.parent }), t4.ki(T, { sheet: t4, sheetName: t4.name(), rowList: r2, header: n4.columnHeader }), ie(t4, e3[0].firstRow), t4.tw(), An(t4), F.endTransaction(t4.getParent(), n4);
              }
            }
            return b2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = false;
            if (u2.canUndo() && (t4 = u2.Mf, i3 = (e3 = (n4 = u2.tT).rows) && e3.length, t4 && i3 > 0)) {
              if (r2 = u2._I(e3), o2 = { sheet: t4, sheetName: t4.name(), rowList: r2, header: n4.columnHeader, cancel: false }, t4.ki(S, o2), o2 && true === o2.cancel) return s2;
              u2.X5(t4);
              try {
                a2 = F.TI(t4.name()), t4.Mtt(n4[a2]), t4.Ww = true, t4.showCell(t4.getActiveRowIndex(), t4.getActiveColumnIndex(), 1, 1), t4.Tb = n4.Tb, s2 = true;
              } finally {
                kn(t4), f[f.sd]({ jS: t4.parent }), t4.ki(T, { sheet: t4, sheetName: t4.name(), rowList: r2, header: n4.columnHeader }), An(t4);
              }
            }
            return s2;
          }, n3.prototype._I = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = [];
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) for (r2 = (i3 = t4[n4]).firstRow, o2 = i3.lastRow, a2 = r2; a2 <= o2; a2++) u2.push(a2);
            return u2;
          }, n3.prototype.canUndo = function() {
            return this.tT.DI;
          }, n3;
        })(p.ActionBase), en = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Mf = n4, r2.tT = e3, i3;
          }
          return vn(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = false, c2 = u2.tT, l2 = u2.Mf, h2 = c2.columns, d2 = c2.rowHeader, v2 = u2.kI(h2);
            if (l2 && h2 && h2.length > 0) {
              if (t4 = { sheet: l2, sheetName: l2.Zc, colList: v2, header: d2, cancel: false }, l2.ki(M, t4), t4 && true === t4.cancel) return s2;
              F.startTransaction(l2.getParent(), c2), u2.X5(l2);
              try {
                n4 = _(c2.size), e3 = d2 ? 2 : 3, i3 = h2[0].firstCol, r2 = void 0, o2 = void 0, a2 = void 0, n4 !== (r2 = l2.Do(i3, e3)) && (o2 = n4 - r2, a2 = l2.O5(i3, e3), l2.setColumnWidth(i3, n4, e3), l2.setColumnWidth(a2, l2.Do(a2, e3) - o2, e3)), s2 = true;
              } finally {
                kn(l2), f[f.sd]({ jS: l2.parent }), l2.ki(C, { sheet: l2, sheetName: l2.Zc, colList: v2, header: c2.rowHeader }), An(l2), F.endTransaction(l2.getParent(), c2);
              }
            }
            return s2;
          }, n3.prototype.undo = function() {
            var t4, n4 = this.Mf, e3 = this.tT.columns, i3 = false, r2 = this.tT, o2 = this.tT.rowHeader, a2 = this.kI(e3), u2 = { sheet: n4, sheetName: n4.Zc, colList: a2, header: o2, cancel: false };
            if (n4.ki(M, u2), u2 && true === u2.cancel) return i3;
            this.X5(n4);
            try {
              t4 = F.TI(n4.name()), n4.Mtt(r2[t4]), i3 = true;
            } finally {
              kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(C, { sheet: n4, sheetName: n4.Zc, colList: a2, header: r2.rowHeader }), An(n4);
            }
            return i3;
          }, n3.prototype.kI = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = [];
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) for (r2 = (i3 = t4[n4]).firstCol, o2 = i3.lastCol, a2 = r2; a2 <= o2; a2++) u2.push(a2);
            return u2;
          }, n3;
        })(p.ActionBase), rn = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Mf = n4, r2.tT = e3, i3;
          }
          return vn(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = false, c2 = u2.tT, l2 = u2.Mf, h2 = c2.rows, d2 = c2.columnHeader, v2 = u2._I(h2);
            if (l2 && h2 && h2.length > 0) {
              if (t4 = { sheet: l2, sheetName: l2.Zc, rowList: v2, header: d2, cancel: false }, l2.ki(S, t4), t4 && true === t4.cancel) return s2;
              F.startTransaction(l2.getParent(), c2), u2.X5(l2);
              try {
                n4 = _(c2.size), e3 = d2 ? 1 : 3, i3 = h2[0].firstRow, r2 = void 0, o2 = void 0, a2 = void 0, n4 !== (r2 = l2._o(i3, e3)) && (o2 = n4 - r2, a2 = l2.j5(i3, e3), l2.setRowHeight(i3, n4, e3), l2.setRowHeight(a2, l2._o(a2, e3) - o2, e3)), s2 = true;
              } finally {
                kn(l2), f[f.sd]({ jS: l2.parent }), l2.ki(T, { sheet: l2, sheetName: l2.Zc, rowList: v2, header: c2.columnHeader }), An(l2), F.endTransaction(l2.getParent(), c2);
              }
            }
            return s2;
          }, n3.prototype.undo = function() {
            var t4, n4 = this.Mf, e3 = this.tT.rows, i3 = false, r2 = this.tT, o2 = this.tT.columnHeader, a2 = this._I(e3), u2 = { sheet: n4, sheetName: n4.Zc, rowList: a2, header: o2, cancel: false };
            if (n4.ki(S, u2), u2 && true === u2.cancel) return i3;
            this.X5(n4);
            try {
              t4 = F.TI(n4.name()), n4.Mtt(r2[t4]), i3 = true;
            } finally {
              kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(T, { sheet: n4, sheetName: n4.Zc, rowList: a2, header: r2.columnHeader }), An(n4);
            }
            return i3;
          }, n3.prototype._I = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = [];
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) for (r2 = (i3 = t4[n4]).firstRow, o2 = i3.lastRow, a2 = r2; a2 <= o2; a2++) u2.push(a2);
            return u2;
          }, n3;
        })(p.ActionBase), on = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this, r2 = i3, o2 = n4.parent;
            return r2.nT = e3.rowHeader ? 2 : 3, I(e3.autoFitType) || (e3.autoFitType = o2 ? o2.options.autoFitType : 0), i3;
          }
          return vn(n3, t3), n3.prototype.canExecute = function() {
            var t4 = this.tT;
            return this.Mf && t4.columns && t4.columns.length > 0;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, s2, c2, l2, h2, d2, v2, p2, g2 = this, b2 = false;
            if (g2.canExecute()) {
              if (t4 = g2.tT, n4 = g2.Mf, e3 = g2.nT, i3 = g2.kI(t4.columns), r2 = 2 === e3, o2 = { sheet: n4, sheetName: n4.name(), colList: i3, header: r2, cancel: false }, n4.ki(M, o2), o2 && true === o2.cancel) return b2;
              for (t4.DI = true, s2 = (a2 = yn(n4, e3)) - 1, c2 = 0, l2 = void 0, h2 = 0, d2 = t4.columns.length; h2 < d2; h2++) s2 = s2 > (l2 = t4.columns[h2].col) ? l2 : s2, c2 = c2 < l2 ? l2 : c2;
              u.Be.Ll(n4, 0, s2, bn(n4) - 1, c2), F.startTransaction(n4.getParent(), t4), g2.X5(n4);
              try {
                for (v2 = void 0, h2 = 0, d2 = t4.columns.length; h2 < d2; h2++) 0 <= (p2 = t4.columns[h2].col) && p2 < a2 && n4.getColumnResizable(p2, e3) && ((v2 = g2.qf(p2)) === n4.getColumnWidth(p2, e3) && m(n4.getColumnWidth(p2, e3, true)) || (n4.setColumnWidth(p2, v2, e3), b2 = true));
              } finally {
                u.Be.dl(), kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(C, { sheet: n4, sheetName: n4.name(), colList: i3, header: r2 }), An(n4), F.endTransaction(n4.getParent(), t4);
              }
            }
            return b2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = false;
            if (u2.canUndo()) {
              if (t4 = u2.tT, n4 = u2.Mf, e3 = u2.nT, i3 = u2.kI(t4.columns), r2 = 2 === e3, o2 = { sheet: n4, sheetName: n4.name(), colList: i3, header: r2, cancel: false }, n4.ki(M, o2), o2 && true === o2.cancel) return s2;
              u2.X5(n4);
              try {
                a2 = F.TI(n4.name()), n4.Mtt(t4[a2]), s2 = true;
              } finally {
                kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(C, { sheet: n4, sheetName: n4.name(), colList: i3, header: r2 }), An(n4);
              }
            }
            return s2;
          }, n3.prototype.kI = function(t4) {
            var n4, e3, i3 = [];
            for (n4 = 0; n4 < t4.length; n4++) e3 = t4[n4], i3.push(e3.col);
            return i3;
          }, n3.prototype.qf = function(t4) {
            return u.mt.qf(t4, this.Mf, this.nT, this.tT.autoFitType);
          }, n3.prototype.canUndo = function() {
            return this.tT.DI;
          }, n3;
        })(p.ActionBase), an = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this, r2 = i3, o2 = n4.parent;
            return r2.nT = e3.columnHeader ? 1 : 3, I(e3.autoFitType) || (e3.autoFitType = o2 ? o2.options.autoFitType : 0), i3;
          }
          return vn(n3, t3), n3.prototype.canExecute = function() {
            var t4 = this.tT;
            return this.Mf && t4.rows && t4.rows.length > 0;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2 = this, d2 = false;
            if (h2.canExecute()) {
              if (t4 = h2.tT, n4 = h2.Mf, e3 = h2._I(t4.rows), i3 = h2.nT, r2 = 1 === h2.nT, o2 = { sheet: n4, sheetName: n4.name(), rowList: e3, header: r2, cancel: false }, n4.ki(S, o2), o2 && true === o2.cancel) return d2;
              t4.DI = true, F.startTransaction(n4.getParent(), t4), h2.X5(n4);
              try {
                for (a2 = bn(n4, i3), u2 = void 0, s2 = 0, c2 = t4.rows.length; s2 < c2; s2++) 0 <= (l2 = t4.rows[s2].row) && l2 < a2 && n4.getRowResizable(l2, i3) && ((u2 = h2.e0(l2)) === n4.getRowHeight(l2, i3) && m(n4.getRowHeight(l2, i3, true)) || (n4.setRowHeight(l2, u2, i3), d2 = true));
              } finally {
                kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(T, { sheet: n4, sheetName: n4.name(), rowList: e3, header: r2 }), An(n4), F.endTransaction(n4.getParent(), t4);
              }
            }
            return d2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2, a2 = this, u2 = false;
            if (a2.canUndo()) {
              if (t4 = a2.tT, n4 = a2.Mf, e3 = a2._I(t4.rows), i3 = 1 === a2.nT, r2 = { sheet: n4, sheetName: n4.name(), rowList: e3, header: i3, cancel: false }, n4.ki(S, r2), r2 && true === r2.cancel) return u2;
              a2.X5(n4);
              try {
                o2 = F.TI(n4.name()), n4.Mtt(t4[o2]), u2 = true;
              } finally {
                kn(n4), f[f.sd]({ jS: n4.parent }), n4.ki(T, { sheet: n4, sheetName: n4.name(), rowList: e3, header: i3 }), An(n4);
              }
            }
            return u2;
          }, n3.prototype._I = function(t4) {
            var n4, e3, i3, r2 = [];
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) i3 = t4[n4], r2.push(i3.row);
            return r2;
          }, n3.prototype.e0 = function(t4) {
            return u.mt.e0(t4, this.Mf, this.nT, this.tT.autoFitType);
          }, n3.prototype.canUndo = function() {
            return this.tT.DI;
          }, n3;
        })(p.ActionBase), un = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return vn(n3, t3), n3.prototype.canExecute = function() {
            var t4, n4, e3 = this, i3 = e3.Mf, r2 = e3.tT, o2 = r2.ranges, a2 = r2.row, u2 = r2.col, s2 = { lockErrorMsg: e3.ier(), sheetArea: r2.sheetArea, invalidType: 13 };
            if (o2) {
              for (t4 = 0; t4 < o2.length; t4++) if (n4 = o2[t4], !i3.PT(n4.row, n4.col, wn(n4), Mn(n4), s2)) return false;
            } else if (!i3.PT(a2, u2, 1, 1, s2)) return false;
            return true;
          }, n3.prototype.ier = function() {
            return N;
          }, n3.prototype.EI = function(t4) {
            var n4, e3, i3, r2, o2 = this, a2 = o2.tT, u2 = a2.ranges;
            if (u2) for (n4 = 0; n4 < u2.length; n4++) for (i3 = (e3 = u2[n4]).row; i3 < e3.row + wn(e3); i3++) for (r2 = e3.col; r2 < e3.col + Mn(e3); r2++) t4(i3, r2);
            else t4(a2.row, a2.col);
          }, n3.prototype.execute = function() {
            var t4, n4, e3 = this, i3 = false;
            if (e3.canExecute()) {
              t4 = e3.Mf, e3.X5(t4, true), n4 = void 0;
              try {
                n4 = e3.rer(), e3.tT.applyResult = e3.jI(), i3 = true;
              } catch (t5) {
                i3 = false;
              } finally {
                e3.oer(n4), e3.q5(t4, true);
              }
            }
            return i3;
          }, n3.prototype.rer = function() {
            return [];
          }, n3.prototype.oer = function(t4) {
          }, n3.prototype.jI = function() {
            return 0;
          }, n3.prototype.LI = function(t4, n4, e3, i3, r2) {
            var o2, a2, s2, c2 = this, f2 = c2.Mf, l2 = c2.tT, h2 = l2.ignoreFormatting, d2 = f2.getActualStyle(t4, n4), v2 = {};
            return o2 = "string" != typeof e3 || h2 ? e3 : e3 && "'" === e3[0] ? e3.substring(1) : u.mt.Xf(d2, e3, i3, v2, l2.editingFormatter), r2.quotePrefix ? (r2._autoFormatter = j, r2.GI = true) : (a2 = v2.value, i3 && a2 && (s2 = N, (o2 !== N && "General" !== a2.formatString() || !d2._autoFormatter) && (a2.isAuto = true, s2 = a2), s2 && (r2.GI = true, r2._autoFormatter = s2))), o2;
          }, n3.prototype.HI = function(t4, n4, e3, i3) {
            var r2, a2 = this, u2 = a2.Mf, s2 = u2.vI(t4, n4), c2 = "string" == typeof s2;
            s2 && !c2 || (r2 = new o.Style(), c2 && (r2.parentName = s2), s2 = r2), s2.quotePrefix !== e3 && (i3.UI = true, i3.quotePrefix = e3);
          }, n3;
        })(p.ActionBase), sn = (function(t3) {
          function n3(n4, e3) {
            var i3, r2, o2 = t3.call(this, n4, e3) || this;
            return g && e3.ranges && 1 === e3.endEditType && (i3 = n4.JS(e3.ranges[0]), e3.ranges[0] = i3, 1 === wn(i3) && 1 === Mn(i3) && (r2 = n4.iT(i3.row, i3.col, 1, 1)) && r2.ranges && r2.ranges.length > 0 && (e3.ranges = [r2.ranges[0]])), o2;
          }
          return vn(n3, t3), n3.prototype.ier = function() {
            return this.Mf.FT();
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3 = this;
            if (i3.canUndo()) {
              t4 = i3.Mf, n4 = i3.tT, i3.X5(t4, true);
              try {
                t4.D3(w + qt, (function(n5, e4) {
                  oe(t4, e4);
                })), e3 = F.TI(t4.name()), t4.Mtt(n4[e3]);
              } catch (t5) {
                return false;
              } finally {
                t4._3(w + qt), i3.q5(t4, true);
              }
              return true;
            }
            return false;
          }, n3.prototype.rer = function() {
            var t4 = this.Mf, n4 = t4.parent.i4();
            return F.II(n4), t4.D3(w + qt, (function(n5, e3) {
              oe(t4, e3);
            })), n4;
          }, n3.prototype.oer = function(t4) {
            var n4 = this, e3;
            n4.Mf._3(w + qt), F.xI(t4, n4.tT);
          }, n3.prototype.RI = function(t4) {
            var n4, e3, i3, r2, o2 = this, a2 = 0, s2 = o2.Mf, c2 = o2.tT, f2 = c2.row, l2 = c2.col, h2 = c2.sheetArea, d2 = c2.newValue, v2 = !c2.hasOwnProperty("autoFormat") || c2.autoFormat, p2 = function() {
              var n5 = o2.LI(f2, l2, d2, v2, t4), e4 = !s2.isValid || s2.isValid(f2, l2, n5, false);
              e4 || (a2 = s2.GA(f2, l2, n5), s2.rt.FI = true);
            };
            if (g && true !== c2.ignoreFormula && (0, u.kf)(d2)) {
              if (s2.getDataValidator && s2.getDataValidator(f2, l2, h2) && "" !== (n4 = "=" === d2[0] ? d2.substring(1) : d2) && n4 !== s2.getFormula(f2, l2, h2) && (e3 = s2.op())) {
                i3 = void 0;
                try {
                  i3 = e3.parse(s2.Uw(), n4, f2 >= 0 ? f2 : 0, l2 >= 0 ? l2 : 0, true);
                } catch (t5) {
                  s2.parent.options.allowInvalidFormula && p2();
                }
                i3 && (r2 = e3.evaluateParsedFormula(s2.Uw(), i3, { row: f2, col: l2 }), s2.isValid && !s2.isValid(f2, l2, r2, false) && (a2 = s2.GA(f2, l2, r2)));
              }
            } else p2();
            return a2;
          }, n3.prototype.jI = function() {
            var t4, n4, e3, i3, r2, s2, c2, f2, h2, v2, p2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = this, A2 = x2.Mf, I2 = x2.tT, k2 = I2.sheetArea, D2 = I2.newValue, _2 = I2.ignoreValidate, O2 = { GI: false, UI: false, _autoFormatter: j, quotePrefix: j }, E2 = 0;
            if (true !== _2 && (1 === (E2 = x2.RI(O2)) || 2 === E2)) return E2;
            if (n4 = !I2.hasOwnProperty("autoFormat") || I2.autoFormat, e3 = (e3 = I2.row) >= 0 ? e3 : 0, i3 = (i3 = I2.col) >= 0 ? i3 : 0, r2 = g && l && l.Parser, h2 = A2.parent, !(v2 = A2.NMi && 3 === k2) && r2) if (f2 = A2.op(), p2 = h2 && h2.options.allowUserEditFormula, m2 = A2.getFormatter(e3, i3, k2), b2 = false, "string" == typeof D2 && "@" !== m2 && p2 && f2 && true !== I2.ignoreFormula && (0, u.kf)(D2)) {
              "=" === D2[0] && (D2 = D2.substring(1), b2 = true);
              try {
                if (y2 = { row: e3, col: i3, sheetArea: k2, text: D2, isAllow: true }, a.Worksheet.et(A2, "applyEditingSetFormula", y2), y2.isAllow) {
                  if (I2.ranges && 1 === I2.endEditType) return c2 = I2.ranges[0], A2.setArrayFormula(c2.row, c2.col, wn(c2), Mn(c2), D2, k2), E2;
                  s2 = f2.parse(A2.Uw(), D2, e3, i3, true);
                }
              } catch (t5) {
                if (!h2 || !h2.options.allowInvalidFormula) throw A2.jT(0, "string" == typeof t5 ? t5 : t5.message), t5;
                D2 = b2 ? "=" + D2 : D2;
              }
            } else I2.ranges && 1 === I2.endEditType && (c2 = I2.ranges[0], A2.getRange(c2.row, c2.col, wn(c2), Mn(c2), k2).clear(1));
            return s2 || (D2 && "'" === D2[0] ? x2.HI(e3, i3, true, O2) : x2.HI(e3, i3, j, O2), t4 = x2.LI(e3, i3, D2, n4, O2)), x2.EI((function(n5, r3) {
              if (s2) try {
                var o2 = f2.unparse(A2.Uw(k2), s2, n5, r3);
                A2.zI(n5, r3, o2, s2, j, k2), A2.ki(u.Events.UserFormulaEntered, { sheet: A2, sheetName: A2.name(), row: n5, col: r3, isCircularReference: A2.VI(n5, r3), formula: o2 }), !h2 || !h2.options.formulaFormatHint || k2 && 3 !== k2 || (0, d.Fue)(A2, h2, s2, e3, i3);
              } catch (t5) {
                throw A2.jT(0, "string" == typeof t5 ? t5 : t5.message), t5;
              }
              else {
                try {
                  A2.hasFormula && A2.hasFormula(n5, r3, k2) && A2.setFormula(n5, r3, N, k2);
                } catch (t5) {
                  throw A2.jT(0, "string" == typeof t5 ? t5 : t5.message), t5;
                }
                try {
                  A2.YI(n5, r3, t4, k2), "string" != typeof t4 && null !== t4 || a.Worksheet.et(A2, "setHyperlinkWhenEditing", { url: t4, row: n5, col: r3, sheetArea: k2 });
                } catch (t5) {
                  A2.setValue(n5, r3, D2, k2);
                }
              }
            })), w2 = O2.GI, M2 = O2.UI, (w2 || M2) && (S2 = "string" == typeof (C2 = A2.vI(e3, i3, k2)), C2 && !S2 || (T2 = new o.Style(), S2 && (T2.parentName = C2), C2 = T2), w2 && !v2 && (C2._autoFormatter = O2._autoFormatter), M2 && (C2.quotePrefix = O2.quotePrefix), A2.setStyle(e3, i3, C2, k2)), E2;
          }, n3.prototype.canUndo = function() {
            return 0 === this.tT.applyResult;
          }, n3;
        })(un), cn = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return vn(n3, t3), n3.prototype.jI = function() {
            var t4, n4, e3, i3, r2, a2, s2, f2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this, I2 = A2.Mf, k2 = A2.tT, N2 = k2.sheetArea, D2 = k2.newValue, _2 = { GI: false, UI: false, _autoFormatter: j, quotePrefix: j }, O2 = 0, E2 = !k2.hasOwnProperty("autoFormat") || k2.autoFormat, R2 = k2.row;
            if (R2 = R2 >= 0 ? R2 : 0, a2 = (a2 = k2.col) >= 0 ? a2 : 0, s2 = g && l && l.Parser, d2 = I2.parent, s2 && (h2 = I2.op(), v2 = d2 && d2.options.allowUserEditFormula, m2 = false, "@" !== (p2 = I2.getFormatter(R2, a2, N2)) && v2 && h2 && true !== k2.ignoreFormula && (0, u.kf)(D2))) {
              "=" === D2[0] && (D2 = D2.substring(1), m2 = true);
              try {
                (b2 = { row: R2, col: a2, sheetArea: N2, text: D2, isAllow: true }).isAllow && (f2 = h2.parse(I2.Uw(), D2, R2, a2, true));
              } catch (t5) {
                d2 && d2.options.allowInvalidFormula && (D2 = m2 ? "=" + D2 : D2);
              }
            }
            return f2 || (D2 && "'" === D2[0] ? A2.HI(R2, a2, true, _2) : A2.HI(R2, a2, j, _2), r2 = A2.LI(R2, a2, D2, E2, _2)), y2 = I2.Ut, A2.EI((function(t5, n5) {
              if (f2) try {
                var e4 = h2.unparse(I2.Uw(N2), f2, t5, n5);
                y2.setDefaultValue(t5, n5, e4, N2, c.DefaultChangeValueType.Expression);
              } catch (t6) {
              }
              else try {
                y2.setDefaultValue(t5, n5, r2, N2, c.DefaultChangeValueType.Value);
              } catch (e5) {
                y2.setDefaultValue(t5, n5, D2, N2, c.DefaultChangeValueType.Value);
              }
            })), w2 = _2.GI, M2 = _2.UI, (w2 || M2) && (S2 = "string" == typeof (C2 = I2.vI(R2, a2, N2)), C2 && !S2 || (T2 = new o.Style(), S2 && (T2.parentName = C2), C2 = T2), w2 && (C2._autoFormatter = _2._autoFormatter), M2 && (C2.quotePrefix = _2.quotePrefix), null != (x2 = (null == C2 ? void 0 : C2.toJSON()) === j) || null === (n4 = null === (t4 = I2.parent) || void 0 === t4 ? void 0 : t4.suspendOp) || void 0 === n4 || n4.call(t4), I2.setStyle(R2, a2, C2, N2), null != x2 || null === (i3 = null === (e3 = I2.parent) || void 0 === e3 ? void 0 : e3.resumeOp) || void 0 === i3 || i3.call(e3)), O2;
          }, n3;
        })(un), fn = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return vn(n3, t3), n3.prototype.canUndo = function() {
            return !!this.tT.oldName;
          }, n3.prototype.canExecute = function() {
            var t4 = this, n4 = t4.tT, e3 = t4.Mf, i3 = null == e3 ? void 0 : e3.parent;
            return e3 && n4.name && n4.name !== n4.oldName && A(n4.name, i3 ? i3.sheets : null, e3);
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2 = this, s2 = a2.Mf, c2 = a2.tT, f2 = c2.name, l2 = false;
            return a2.canExecute() && (t4 = s2.name(), e3 = { sheet: s2, oldValue: t4, newValue: n4 = f2, cancel: false }, s2.ki(u.Events.SheetNameChanging, e3), false === e3.cancel && (i3 = s2.parent.i4(), F.II(i3), r2 = null, s2.parent.options && s2.parent.options.saveChangesForSheet && ue(r2 = s2.getCrossSheetReferences(), true), c2.oldName = t4, a2.X5(s2, true), Nn(s2), s2.name(f2), ae(s2), r2 && ue(r2, false), F.xI(i3, c2), l2 = true, c2.sheetName = f2, jn(s2, false), a2.q5(s2, true), o2 = { sheet: s2, oldValue: t4, newValue: n4 }, s2.ki(u.Events.SheetNameChanged, o2))), l2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2, a2, s2 = this;
            return !(!s2.canUndo() || (r2 = { sheet: t4 = s2.Mf, oldValue: e3 = (n4 = s2.tT).name, newValue: i3 = n4.oldName, cancel: false }, t4.ki(u.Events.SheetNameChanging, r2), false !== r2.cancel)) && (s2.X5(t4, true), Nn(t4), o2 = F.TI(t4.name()), t4.Mtt(n4[o2]), ae(t4), n4.sheetName = n4.oldName, jn(t4, false), s2.q5(t4, true), a2 = { sheet: t4, oldValue: e3, newValue: i3 }, t4.ki(u.Events.SheetNameChanged, a2), true);
          }, n3;
        })(p.ActionBase), ln = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return vn(n3, t3), n3.prototype.canExecute = function() {
            var t4 = this, n4 = u.mt.age(t4.tT.zoomFactor);
            return t4.Mf && t4.Mf.parent.options.allowUserZoom && t4.Mf.zoom() !== n4;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2 = this, o2 = r2.tT, a2 = false;
            return r2.canExecute() && (n4 = (t4 = r2.Mf).Ut, e3 = o2.zoomFactor, i3 = o2.oldZoomFactor, F.startTransaction(t4.getParent(), o2), a2 = se(t4, e3), t4.Oj(e3, i3), n4.ZI(["zoomChanged", i3, e3]), F.endTransaction(t4.getParent(), o2)), a2;
          }, n3.prototype.undo = function() {
            var t4, n4 = this.Mf;
            if (this.canUndo()) return !(true === n4.isEditing() && !n4.endEdit()) && (n4.suspendPaint(), t4 = F.TI(n4.name()), n4.Mtt(this.tT[t4]), n4.resumePaint(), true);
          }, n3;
        })(p.ActionBase), hn = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return vn(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2 = this, v2 = d2.Mf;
            d2.canExecute() && v2 && (t4 = d2.tT.clearRange, n4 = v2.tables && v2.tables.WI && v2.tables.WI(t4.row, t4.col, t4.rowCount, t4.colCount), e3 = !!v2.isReportTemplateSheet, v2.isDirtySuspended() || (i3 = 1027 | (e3 ? 256 : 0), d2.tT.K5 = new $t(v2, v2.JS(t4), i3)), n4 && n4.length > 0 && (d2.tT.tableNames = n4), o2 = (r2 = v2.JS(t4)).row, a2 = r2.col, u2 = wn(r2), (s2 = Mn(r2)) > 0 && u2 > 0 && (f2 = v2.parent.i4(), F.II(f2), d2.X5(v2), v2.QI = true, l2 = c.StorageType.data | c.StorageType.hyperlink | (e3 ? c.StorageType.bindingPath : 0), v2.KI(o2, a2, u2, s2, 3, l2, true), d2.q5(v2), v2.QI = false, F.xI(f2, d2.tT), h2 = d2.tT.K5, F.SI(v2, o2, a2, u2, s2, h2 ? h2.MI() : [], 2, n4)));
          }, n3.prototype.canExecute = function() {
            var t4 = this.tT.clearRange;
            return this.Mf && this.Mf.PT(t4.row, t4.col, wn(t4), Mn(t4), { sheetArea: c.SheetArea.viewport });
          }, n3.prototype.canUndo = function() {
            var t4, n4;
            if (this.Mf) return t4 = F.TI(this.Mf.name()), n4 = this.tT[t4], F.AI(n4);
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3 = this, r2 = i3.Mf;
            if (i3.canUndo() && r2 && Mn(t4 = r2.JS(i3.tT.clearRange)) > 0 && wn(t4) > 0) {
              i3.X5(r2), r2.QI = true;
              try {
                n4 = F.TI(r2.name()), r2.Mtt(i3.tT[n4]);
              } finally {
                i3.q5(r2), r2.QI = false;
              }
              return e3 = i3.tT.K5, F.SI(r2, t4.row, t4.col, wn(t4), Mn(t4), e3 ? e3.MI() : [], 2, i3.tT.tableNames, true), true;
            }
            return false;
          }, n3.prototype.toJSON = function() {
            var t4 = this;
            return { sheetName: t4.Mf ? t4.Mf.name() : "", command: t4.tT };
          }, n3.prototype.fromJSON = function(t4) {
            var n4, e3 = this, i3 = t4.sheetName;
            e3.Mf && !m(i3) && (n4 = e3.Mf.parent, e3.Mf = n4.getSheetFromName(i3)), e3.tT = t4.command;
          }, n3;
        })(p.ActionBase), F.ClearRangeValueUndoAction = hn, dn = (function(t3) {
          function n3(n4, e3, i3) {
            var r2, o2, a2 = t3.call(this, n4, e3) || this;
            if (!i3 && (e3.cachedActions = [], (r2 = e3.ranges) && r2.length > 0)) for (o2 = 0; o2 < r2.length; o2++) e3.cachedActions[o2] = new hn(n4, { clearRange: r2[o2] });
            return a2;
          }
          return vn(n3, t3), n3.prototype.canExecute = function() {
            var t4, n4, e3 = this.tT.cachedActions;
            if (e3) {
              for (t4 = 0; t4 < e3.length; t4++) if (!(n4 = e3[t4]).canExecute()) return false;
              return true;
            }
            return false;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, o2 = this;
            if (o2.canExecute() && (t4 = o2.tT.cachedActions, n4 = o2.Mf, t4)) {
              for (e3 = n4.parent.i4(), F.II(e3), o2.X5(n4, true), i3 = 0; i3 < t4.length; i3++) (r2 = t4[i3]).execute();
              return o2.q5(n4, true), F.xI(e3, o2.tT), true;
            }
            return false;
          }, n3.prototype.canUndo = function() {
            var t4, n4;
            if (this.Mf) return t4 = F.TI(this.Mf.name()), n4 = this.tT[t4], F.AI(n4);
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2, o2 = this, a2 = o2.Mf;
            if (o2.canUndo() && a2) {
              for (t4 = 0; t4 < o2.tT.cachedActions.length; t4++) if (n4 = o2.tT.cachedActions[t4], !(i3 = Mn(e3 = a2.JS(n4.tT.clearRange)) > 0 && wn(e3) > 0)) return false;
              o2.X5(a2), a2.QI = true;
              try {
                r2 = F.TI(a2.name()), a2.Mtt(o2.tT[r2]);
              } finally {
                o2.q5(a2), a2.QI = false;
              }
              return gn([], o2.tT.cachedActions, true).reverse().forEach((function(t5) {
                var n5 = a2.JS(t5.tT.clearRange), e4 = t5.tT.K5;
                F.SI(a2, n5.row, n5.col, wn(n5), Mn(n5), e4 ? e4.MI() : [], 2, t5.tT.tableNames, true);
              })), true;
            }
            return false;
          }, n3;
        })(p.ActionBase), F.JI = dn;
      }, "./dist/core/worksheet/worksheet-border.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G = this && this.qKr || (U = function(t3, n3) {
          return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, U(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          U(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), U;
        function H(t3, n3, e3, i3, r2, o2, a2, u2, f2) {
          switch (void 0 === u2 && (u2 = 1), o2 !== s && o2 !== c || (o2 = 1), o2) {
            case 1:
              return new O(t3, n3, e3, i3, r2, 1, a2, void 0, f2);
            case 2:
              return new O(t3, n3, e3, i3, r2, 2, a2, u2, f2);
            case 5:
              return new O(t3, n3, e3, i3, r2, 3, a2, u2, f2);
            case 3:
              return new E(t3, n3, e3, i3, r2, 1, [3, 1], a2, void 0, f2);
            case 9:
              return new E(t3, n3, e3, i3, r2, 1, [8, 2, 2, 2], a2, void 0, f2);
            case 4:
              return new E(t3, n3, e3, i3, r2, 1, [2, 2], a2, void 0, f2);
            case 11:
              return new E(t3, n3, e3, i3, r2, 1, [9, 3, 3, 3, 3, 3], a2, void 0, f2);
            case 13:
              return new R(t3, n3, e3, i3, r2, t3 !== e3, [11, 1, 5, 1], [10, 2, 4, 2], a2, f2);
            case 10:
              return new E(t3, n3, e3, i3, r2, 2, [9, 3, 3, 3], a2, u2, f2);
            case 12:
              return new E(t3, n3, e3, i3, r2, 2, [9, 3, 3, 3, 3, 3], a2, u2, f2);
            case 8:
              return new E(t3, n3, e3, i3, r2, 2, [9, 3], a2, u2, f2);
            case 7:
              return new E(t3, n3, e3, i3, r2, 1, [1], a2, void 0, f2);
            case 6:
              return new F(t3, n3, e3, i3, r2, a2, f2);
          }
          return c;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Yx = n2.Zx = void 0, i2 = e2("./dist/core/worksheet/style.js"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/core.enum.js"), a = e2("Common"), u = e2("./dist/core/worksheet/helpers/visible-row-col-cache.js"), s = void 0, c = null, f = Math.sqrt, l = Math.pow, h = Math.min, d = Math.abs, v = Math.tan, p = Math.ceil, g = Math.PI, m = r.GC$.inherit, b = r.GC$.isEmptyObject, y = a.Common.lt.ht, w = 0, M = 1, C = 2, S = 3, T = 0, x = 1, A = 2, I = 3, k = 4, N = 5, j = 6, D = 7, _ = (function() {
          function t3(t4) {
            void 0 === t4 && (t4 = false), this.needRightToLeft = t4;
          }
          return t3.prototype.Wx = function(t4) {
            var n3 = this;
            0 === t4._orientation ? this.needRightToLeft ? (t4.Kx && (n3._x1 -= t4.Kx), t4.Jx && (n3._x2 -= t4.Jx)) : (t4.Kx && (n3._x2 += t4.Kx), t4.Jx && (n3._x1 += t4.Jx)) : (t4.Kx && (n3._y2 += t4.Kx), t4.Jx && (n3._y1 += t4.Jx));
          }, t3.prototype._e = function(t4) {
            var n3 = this._x || "#9eb6ce", e3 = this.Ex, i3 = t4.lineWidth, r2 = t4.strokeStyle;
            i3 === e3 && r2 === n3 || (i3 !== e3 && (t4.lineWidth = e3), r2 !== n3 && (t4.strokeStyle = n3)), this.Xx(t4);
          }, t3.prototype.Xx = function(t4) {
            var n3, e3, i3 = this, r2 = i3._x1 === i3._x2, o2 = i3._y1 === i3._y2;
            r2 && o2 || (r2 || o2 ? (t4.beginPath(), i3.qx(t4), t4.stroke()) : (t4.save(), n3 = Math.min(i3._x1, i3._x2), e3 = Math.min(i3._y1, i3._y2), t4.rect(n3, e3, Math.abs(i3._x2 - i3._x1), Math.abs(i3._y2 - i3._y1)), t4.clip(), t4.beginPath(), i3.qx(t4), t4.stroke(), t4.beginPath(), t4.restore()));
          }, t3.prototype.qx = function(t4) {
            var n3 = this;
            t4.moveTo(n3._x1, n3._y1), t4.lineTo(n3._x2, n3._y2);
          }, t3;
        })(), O = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2, l2 = t3.call(this, c2) || this, h2 = y(s2) || 1 === s2 ? a2 : p(a2 * s2), d2 = h2 % 2;
            return d2 || (n4 !== i3 ? (e3 -= 0.5, r2 -= 0.5) : (n4 -= 0.5, i3 -= 0.5)), (f2 = l2)._x1 = n4, f2._y1 = e3, f2._x2 = i3, f2._y2 = r2, f2._x = o2, f2.Ex = h2, f2.jx = u2, f2._zoomFactor = s2, l2;
          }
          return G(n3, t3), n3;
        })(_), E = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, h2 = t3.call(this, f2) || this, d2 = y(c2) || 1 === c2 ? a2 : p(a2 * c2), v2 = d2 % 2;
            return v2 || (n4 !== i3 ? (e3 -= 0.5, r2 -= 0.5) : (n4 -= 0.5, i3 -= 0.5)), (l2 = h2)._x1 = n4, l2._y1 = e3, l2._x2 = i3, l2._y2 = r2, l2._x = o2, l2.Ex = d2, l2.Ox = u2, l2.jx = s2, l2._zoomFactor = c2, h2;
          }
          return G(n3, t3), n3.prototype.qx = function(t4) {
            var e3 = this;
            n3.Dn(t4, e3._x1, e3._y1, e3._x2, e3._y2, e3.Ox);
          }, n3.Dn = function(t4, n4, e3, i3, r2, o2) {
            var a2, u2, s2 = f(l(i3 - n4, 2) + l(r2 - e3, 2)), c2 = (i3 - n4) / s2, d2 = (r2 - e3) / s2, v2 = 0, p2 = 0;
            for (o2 = o2 && o2.length ? o2 : [4, 4]; v2 < s2; ) v2 += a2 = h(o2[p2 % o2.length], s2 - v2), (u2 = ++p2 % 2) && t4.moveTo(n4, e3), n4 += a2 * c2, e3 += a2 * d2, u2 && t4.lineTo(n4, e3);
          }, n3;
        })(_), R = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, h2 = t3.call(this, f2) || this;
            return a2 ? (n4 -= 1, i3 -= 1) : (e3 -= 1, r2 -= 1), (l2 = h2)._x1 = n4, l2._y1 = e3, l2._x2 = i3, l2._y2 = r2, l2._x = o2, l2.Rx = a2, l2.Ex = 1, l2.Bx = u2, l2.Lx = s2, l2.jx = c2, h2;
          }
          return G(n3, t3), n3.prototype.qx = function(t4) {
            var n4 = this, e3 = n4.Rx ? 0 : 1, i3 = n4.Rx ? 1 : 0;
            E.Dn(t4, n4._x1 - e3, n4._y1 - i3, n4._x2 - e3, n4._y2 - i3, n4.Bx), E.Dn(t4, n4._x1, n4._y1, n4._x2, n4._y2, n4.Lx);
          }, n3;
        })(_), L = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2) {
            var s2 = t3.call(this) || this, c2 = s2;
            return c2._x1 = n4, c2._y1 = e3, c2._x2 = i3, c2._y2 = r2, c2._x = o2, c2.Fx = a2, c2.jx = u2, c2.Px = new O(c2._x1, c2._y1, c2._x2, c2._y2, o2, 1, u2), c2.Gx = null, s2;
          }
          return G(n3, t3), n3.prototype.Xx = function(t4) {
            this.Px && this.Px.Xx(t4), this.Gx && this.Gx.Xx(t4);
          }, n3.prototype.Wx = function(t4) {
            var n4 = this;
            n4.Gx ? (t4.Jx && n4.Px && n4.Px.Wx(t4), t4.Kx && n4.Gx.Wx(t4)) : n4.Px && n4.Px.Wx(t4);
          }, n3.prototype.$x = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2 = this;
            t4 && t4.severX && t4.severY ? (n4 = t4.severX || 0, e3 = t4.severY || 0, n4 = c2.Fx ? n4 : -n4, o2 = (i3 = parseInt(c2._x1 + (c2._x2 - c2._x1) / 2, 10)) - n4, a2 = (r2 = parseInt(c2._y1 + (c2._y2 - c2._y1) / 2, 10)) - e3, u2 = i3 + n4, s2 = r2 + e3, c2.Px = new O(c2._x1, c2._y1, o2, a2, c2._x, 1, c2.jx), c2.Gx = new O(u2, s2, c2._x2, c2._y2, c2._x, 1, c2.jx)) : (c2.Px = new O(c2._x1, c2._y1, c2._x2, c2._y2, c2._x, 1, c2.jx), c2.Gx = null);
          }, n3;
        })(_), F = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2;
            return void 0 === u2 && (u2 = false), (s2 = t3.call(this, u2) || this).needRightToLeft = u2, c2 = s2, f2 = 0, l2 = 0, n4 === i3 && (f2 = 1), e3 === r2 && (l2 = 1), n4 !== i3 && e3 !== r2 ? a2 ? (f2 = 2, c2.Px = new O(n4 - f2, e3, i3 - f2, r2, o2, 1, a2), c2.Gx = new O(n4 + f2, e3, i3 + f2, r2, o2, 1, a2)) : (f2 = 2, l2 = 2, n4 > i3 ? (c2.Px = new L(n4 - f2, e3, i3, r2 - l2, o2, false, a2), c2.Gx = new L(n4, e3 + l2, i3 + f2, r2, o2, false, a2)) : (c2.Px = new L(n4, e3 + l2, i3 - f2, r2, o2, true, a2), c2.Gx = new L(n4 + f2, e3, i3, r2 - l2, o2, true, a2))) : (c2.Px = new O(n4 - f2, e3 - l2, i3 - f2, r2 - l2, o2, 1, a2, void 0, u2), c2.Gx = new O(n4 + f2, e3 + l2, i3 + f2, r2 + l2, o2, 1, a2, void 0, u2), s2.c0r()), c2.jx = a2, c2._x = o2, c2.Ex = 1, s2;
          }
          return G(n3, t3), n3.prototype.c0r = function() {
            if (this.YQn && this.needRightToLeft) {
              var t4 = this, n4 = t4.Px, e3 = t4.Gx;
              this.Gx = n4, this.Px = e3;
            }
          }, Object.defineProperty(n3.prototype, "YQn", { get: function() {
            return this.Px._x1 === this.Px._x2;
          }, enumerable: false, configurable: true }), n3.prototype.Xx = function(t4) {
            this.Px.Xx(t4), this.Gx.Xx(t4);
          }, n3.prototype.Wx = function(t4) {
            var n4 = this;
            t4.tN ? 1 === t4.tN ? n4.Px.Wx(t4) : 2 === t4.tN && n4.Gx.Wx(t4) : (n4.Px.Wx(t4), n4.Gx.Wx(t4));
          }, n3.prototype.$x = function() {
            var t4 = this, n4 = { severX: 1, severY: 1 }, e3 = t4.Px, i3 = t4.Gx;
            e3.$x(n4), i3.$x(n4);
          }, n3;
        })(_), n2.Zx = H, B = (function() {
          function t3() {
          }
          return t3.nN = function(n3, e3, i3) {
            var r2, o2;
            return n3 ? e3 ? 0 !== (o2 = (r2 = t3.eN)[n3.style] - r2[e3.style]) || i3 ? o2 : (e3.level || 0) - (n3.level || 0) : 1 : e3 ? -1 : 0;
          }, t3.iN = function(t4) {
            var n3, e3, r2;
            if (t4) {
              if (t4.isGridLine) return 1;
              if (t4.style) return e3 = i2.LineBorder.YC(t4.style), r2 = null === (n3 = t4.line) || void 0 === n3 ? void 0 : n3._zoomFactor, y(r2) ? e3 : p(e3 * r2);
            }
            return 0;
          }, t3.rN = function(t4) {
            return t4 && 6 === t4.style;
          }, t3.oN = function(t4) {
            return t4 && 13 === t4.style;
          }, t3.aN = function(n3, e3) {
            return n3 ? e3 ? t3.nN(n3.style, e3.style) >= 0 ? n3 : e3 : n3 : e3;
          }, t3.uN = function(t4, n3) {
            t4 && t4.line ? t4.line.Wx(n3) : t4.Wx && t4.Wx(n3);
          }, t3.sN = function(n3, e3, i3) {
            return n3 === e3 ? 0 : n3 ? e3 ? n3.isGridLine ? e3.isGridLine ? 0 : -1 : e3.isGridLine ? 1 : t3.nN(n3.style, e3.style, i3) : 1 : -1;
          }, t3.cN = function(t4) {
            return t4 && t4.style && 6 === t4.style.style;
          }, t3.fN = function(t4, n3, e3, i3) {
            if (t4.style && 6 === t4.style.style) return true;
            var r2 = 0;
            return r2 += n3 && n3.style && 6 === n3.style.style ? 1 : 0, r2 += e3 && e3.style && 6 === e3.style.style ? 1 : 0, (r2 += i3 && i3.style && 6 === i3.style.style ? 1 : 0) < 2;
          }, t3.lN = function(t4, n3, e3, i3, r2, o2) {
            var a2 = { _orientation: o2 ? 1 : 0, Jx: 0, Kx: 0 }, u2 = this.sN(t4, e3), s2 = this.sN(t4, i3);
            u2 >= 0 && s2 >= 0 ? 0 === u2 && 0 === s2 ? -1 !== r2 && 1 === r2 && (a2.Kx -= r2) : -1 === r2 ? a2.Jx -= r2 : 1 === r2 && (a2.Kx -= 2 * r2) : s2 >= 0 ? (a2.tN = 2, a2.Jx += r2) : u2 >= 0 && (a2.tN = 1, a2.Jx += r2), this.uN(t4, a2);
          }, t3.hN = function(n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = { _orientation: s2 ? 1 : 0, tN: c2 ? 2 : 1, Jx: 0, Kx: 0 }, w2 = { _orientation: s2 ? 1 : 0, tN: c2 ? 1 : 2, Jx: 0, Kx: 0 }, M2 = 1 === a2 ? r2 : o2, C2 = 1 === u2 ? i3 : e3, S2 = this.cN(C2);
            S2 ? 0 === (f2 = this.sN(n3, M2)) ? 0 === (l2 = this.sN(n3, C2)) ? 1 === u2 && (w2.Kx -= u2) : l2 > 0 && (-1 === u2 ? w2.Jx -= 2 * u2 : 1 === u2 && (w2.Kx -= 2 * u2)) : f2 > 0 ? 0 === (h2 = this.sN(n3, C2)) ? 1 === u2 && (w2.Kx -= u2) : h2 > 0 && (-1 === u2 ? w2.Jx -= 2 * u2 : 1 === u2 && (w2.Kx -= 2 * u2)) : 0 === (d2 = this.sN(n3, C2)) ? -1 === u2 ? y2.Jx += 2 * u2 : 1 === u2 && (y2.Kx += 2 * u2) : d2 > 0 && (-1 === u2 ? y2.Jx -= 3 * u2 : 1 === u2 && (y2.Kx -= 3 * u2)) : this.sN(n3, M2) >= 0 ? -1 === u2 ? w2.Jx -= 2 * u2 : 1 === u2 && (w2.Kx -= 2 * u2) : -1 === u2 ? y2.Jx += 2 * u2 : 1 === u2 && (y2.Kx += 2 * u2), p2 = 1 === (v2 = 1 === a2 ? 2 : 1) ? r2 : o2, g2 = false, m2 = 0, this.cN(p2) && this.sN(p2, n3) > 0 && (g2 = true, b2 = t3.iN(p2), this.sN(p2, M2) > 0 ? b2 > 0 && (m2 = 1 === u2 && this.cN(i3) ? b2 >= 2 ? 2 : 1 : -1 === u2 && this.cN(e3) ? b2 >= 3 ? 2 : 1 : 3 === b2 ? 3 : 2) : m2 = 3 === b2 ? 3 : 2), g2 || this.cN(C2) || !(C2 && !C2.isGridLine || p2 && !p2.isGridLine) || (g2 = true, m2 = -1 === u2 ? 2 : 1), g2 && (-1 === u2 ? (y2.Jx += u2 * m2, w2.Jx += u2 * m2) : 1 === u2 && (y2.Kx += u2 * m2, w2.Kx += u2 * m2)), (y2.Jx || y2.Kx) && this.uN(n3, y2), (w2.Jx || w2.Kx) && this.uN(n3, w2);
          }, t3.dN = function(t4, n3, e3, i3, r2, o2) {
            if (this.sN(t4, e3) >= 0 && this.sN(t4, i3) >= 0) {
              var a2 = { _orientation: o2 ? 1 : 0, Jx: 0, Kx: 0 };
              -1 === r2 ? (a2.Jx -= 2 * r2, this.cN(t4) && this.sN(n3, t4) > 0 && (a2.Jx -= 1)) : 1 === r2 && (a2.Kx -= 2 * r2, this.cN(t4) && this.sN(n3, t4) > 0 && (a2.Kx += 1)), this.uN(t4, a2);
            }
          }, t3.vN = function(n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2;
            this.cN(n3) && (u2 = this.aN(i3, r2)) && !u2.isGridLine && (s2 = t3.iN(u2)) > 0 && (c2 = { _orientation: a2 ? 1 : 0, Jx: 0, Kx: 0 }, -1 === o2 ? c2.Jx += s2 * o2 : c2.Kx += s2 * o2, (c2.Jx || c2.Kx) && this.uN(n3, c2));
          }, t3.mN = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2 = t3;
            (e3 || i3 || r2) && (f2 = h2.aN(i3, r2), h2.fN(n3, e3, i3, r2) ? (c2 = h2.sN(f2, n3, true)) > 0 ? (s2 = h2.iN(f2), h2.cN(n3) && (h2.cN(i3) || h2.cN(r2) || h2.cN(e3)) || 3 === s2 && h2.uN(n3, { _orientation: 0, Jx: 1 })) : f2 && c2 < 0 ? (c2 = h2.sN(n3, e3, true)) > 0 ? 3 === (s2 = h2.iN(f2)) || 2 === s2 ? h2.uN(n3, { _orientation: 0, Jx: -2 }) : 1 === s2 && h2.uN(n3, { _orientation: 0, Jx: -1 }) : 0 !== c2 && h2.sN(e3, f2, true) > 0 && 3 === (s2 = h2.iN(f2)) && h2.uN(n3, { _orientation: 0, Jx: 1 }) : 0 === c2 && (!e3 || h2.sN(n3, e3, true) > 0) && (3 === (s2 = h2.iN(f2)) || 2 === s2 ? h2.uN(n3, { _orientation: 0, Jx: -2 }) : 1 === s2 && h2.uN(n3, { _orientation: 0, Jx: -1 })) : h2.uN(n3, { _orientation: 0, Jx: 1 })), (o2 || a2 || u2) && (l2 = h2.aN(a2, u2), h2.fN(n3, o2, a2, u2) ? (c2 = h2.sN(l2, n3, true)) > 0 ? (s2 = h2.iN(l2), h2.cN(n3) && (h2.cN(a2) || h2.cN(u2) || h2.cN(o2)) || (3 === s2 ? h2.uN(n3, { _orientation: 0, Kx: -2 }) : 2 !== s2 && 1 !== s2 || h2.uN(n3, { _orientation: 0, Kx: -1 }))) : c2 <= 0 && ((c2 = h2.sN(n3, o2, true)) > 0 ? 3 === (s2 = h2.iN(l2)) && h2.uN(n3, { _orientation: 0, Kx: 1 }) : 0 !== c2 && h2.uN(n3, { _orientation: 0, Kx: -1 })) : h2.uN(n3, { _orientation: 0, Kx: -2 }));
          }, t3.gN = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, f2, l2, h2, d2 = t3;
            (e3 || i3 || r2) && (l2 = d2.aN(i3, r2), f2 = d2.sN(l2, n3, true), d2.fN(n3, e3, i3, r2) ? f2 > 0 ? (s2 = d2.iN(l2), d2.cN(n3) && (d2.cN(i3) || d2.cN(r2) || d2.cN(e3)) || 3 === s2 && d2.uN(n3, { _orientation: 1, Jx: 1 })) : f2 < 0 ? (f2 = d2.sN(n3, e3, true)) > 0 ? 3 === (s2 = d2.iN(l2)) || 2 === s2 ? d2.uN(n3, { _orientation: 1, Jx: -2 }) : 1 === s2 && d2.uN(n3, { _orientation: 1, Jx: -1 }) : 0 !== f2 && d2.sN(e3, l2, true) > 0 && 3 === (s2 = d2.iN(l2)) && d2.uN(n3, { _orientation: 1, Jx: 1 }) : 0 === f2 && d2.sN(n3, e3, true) > 0 && (3 === (s2 = d2.iN(l2)) || 2 === s2 ? d2.uN(n3, { _orientation: 1, Jx: -2 }) : 1 === s2 && d2.uN(n3, { _orientation: 1, Jx: -1 })) : d2.uN(n3, { _orientation: 1, Jx: 1 })), (o2 || a2 || u2) && (h2 = d2.aN(a2, u2), f2 = d2.sN(n3, h2, true), d2.fN(n3, o2, a2, u2) ? f2 < 0 ? (s2 = d2.iN(h2), d2.cN(n3) && (d2.cN(a2) || d2.cN(u2) || d2.cN(o2)) || (3 === s2 || 2 === s2 ? d2.uN(n3, { _orientation: 1, Kx: -2 }) : 1 === s2 && d2.uN(n3, { _orientation: 1, Kx: -1 }))) : h2 !== c && f2 >= 0 && ((f2 = d2.sN(n3, o2, true)) > 0 ? 3 === (s2 = d2.iN(h2)) && d2.uN(n3, { _orientation: 1, Kx: 1 }) : 0 !== f2 && d2.uN(n3, { _orientation: 1, Kx: -1 })) : d2.uN(n3, { _orientation: 1, Kx: -2 }));
          }, t3.pN = function(n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2 = t3;
            s2 ? this.gN(n3, e3, i3, r2, o2, a2, u2) : this.mN(n3, e3, i3, r2, o2, a2, u2), c2 = d2.cN(i3), f2 = d2.cN(r2), l2 = d2.cN(e3), c2 && f2 && l2 ? d2.lN(n3, e3, i3, r2, -1, s2) : c2 && !f2 ? d2.hN(n3, e3, o2, i3, r2, 1, -1, s2, true) : !c2 && f2 ? d2.hN(n3, e3, o2, i3, r2, 2, -1, s2, false) : c2 && f2 && !l2 ? d2.dN(n3, e3, i3, r2, -1, s2) : l2 && d2.vN(n3, e3, i3, r2, -1, s2), c2 = d2.cN(a2), f2 = d2.cN(u2), h2 = d2.cN(o2), c2 && f2 && h2 ? d2.lN(n3, o2, a2, u2, 1, s2) : c2 && !f2 ? d2.hN(n3, e3, o2, a2, u2, 1, 1, s2, true) : !c2 && f2 ? d2.hN(n3, e3, o2, a2, u2, 2, 1, s2, false) : c2 && f2 && !h2 ? d2.dN(n3, o2, a2, u2, 1, s2) : h2 && d2.vN(n3, o2, a2, u2, 1, s2);
          }, t3.eN = [0, 101, 199, 100, 100, 300, 90, 100, 198, 100, 198, 100, 198, 198], t3.bN = function(t4, n3) {
            return !(!t4 || !n3 || t4.color !== n3.color || t4.level !== n3.level || t4.style !== n3.style);
          }, t3;
        })(), P = (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.Ux = false, o2.Hx = false, o2.Mf = t4, o2.nT = i3, o2.zx = n3, o2.Vx = e3, o2.L_e = new u.VisibleRowColCache(t4), o2.Ssr = r2;
          }
          return t3.prototype.yN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this;
            if (f2.wN = [], f2.MN = [], f2.CN = [], f2.SN = [], f2.TN = [], f2.AN = {}, f2.IN = {}, f2.xN = {}, f2.NN = {}, f2.kN = {}, f2.DN = {}, f2._N = {}, !f2.Ssr && (f2.L_e.Hc(), t4 = f2.zx, n3 = f2.Vx, t4 && t4.length > 0 && n3 && n3.length > 0)) {
              for (e3 = f2.MN, i3 = t4.length, r2 = void 0, o2 = 0; o2 < i3; o2++) (r2 = t4[o2]).height > 0 && e3.push(r2.row);
              for (e3.push(e3[e3.length - 1] + 1), a2 = f2.CN, u2 = n3.length, s2 = void 0, c2 = 0; c2 < u2; c2++) (s2 = n3[c2]).width > 0 && a2.push(s2.col);
              a2.push(a2[a2.length - 1] + 1);
            }
            f2.Ux = true;
          }, t3.prototype.EN = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            if (e3) {
              var s2 = { Ky: t4, iw: n3, jN: e3.startColumn, ON: e3.endColumn, RN: i3, _x: r2, _y: o2, YC: a2, ZC: u2 };
              this.SN.push(s2);
            }
          }, t3.prototype.PN = function(t4, n3, e3, i3, r2, o2, a2, u2, c2, f2, l2) {
            var h2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = this, T2 = S2.Ssr, x2 = S2.Mf.options.rightToLeft;
            S2.Ux || S2.yN(), u2 ? S2.wN.push(u2) : (h2 = void 0, v2 = void 0, p2 = void 0, g2 = void 0, m2 = void 0, b2 = void 0, y2 = void 0, w2 = void 0, M2 = void 0, C2 = void 0, a2 && (h2 = a2.borderLeft, v2 = a2.borderTop, p2 = a2.borderRight, g2 = a2.borderBottom, C2 = a2.backColor, l2 && 2 === l2.columnHeaderFitMode || (m2 = a2.diagonalDown, b2 = a2.diagonalUp), l2 && l2.sheetArea !== s && 3 !== l2.sheetArea || (y2 = x2 && d(a2.textOrientation) < 90 ? -a2.textOrientation : a2.textOrientation), w2 = a2.isVerticalText, M2 = a2.textIndent), T2 || !C2 || h2 || p2 || v2 || g2 || S2.TN.push({ r: t4, c: n3, rc: 1, cc: 1 }), l2 ? l2.rightToLeft = x2 : l2 = { rightToLeft: x2 }, S2.GN(t4, n3, e3, i3, r2, o2, h2, v2, p2, g2, m2, b2, C2, false, false, c2, f2, y2, w2, M2 && 0 !== M2, l2));
          }, t3.prototype.GN = function(t4, n3, e3, i3, r2, a2, u2, f2, l2, h2, m2, b2, w2, M2, C2, S2, T2, x2, A2, I2, k2) {
            var N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut = this, st = ut.Mf, ct = st.Jt, ft = k2 && ut.Ssr, lt = false, ht = false, dt = false, vt = false, pt = function(t5) {
              return t5 !== s && t5 && -90 <= t5 && t5 <= 90;
            }, gt = pt(x2), mt = u2 || f2 || l2 || h2, bt = 0, yt = 0, wt = e3, Mt = r2;
            n3 + 1 < st.getColumnCount() && (E2 = ct.qt(t4, n3 + 1)), n3 - 1 >= 0 && (R2 = ct.qt(t4, n3 - 1)), L2 = gt && !A2 && !I2 && k2 && k2.data, F2 = y(k2 && k2.printZoomFactor) ? 1 : k2.printZoomFactor, B2 = k2 ? k2.rightToLeft : s, G2 = !(P2 = mt && L2 && x2 % 90 != 0), !ft && mt && (L2 && (_2 = d(x2 * g / 180), O2 = v(_2), bt = Math.floor(a2 / O2), x2 > -90 && x2 < 0 && (wt = e3 - bt), x2 > 0 && x2 < 90 && (wt = e3 + bt)), gt || (E2 && pt(U2 = B2 && d(E2.textOrientation) < 90 ? -E2.textOrientation : E2.textOrientation) && (_2 = d(U2 * g / 180), O2 = v(_2), yt = Math.floor(a2 / O2), U2 > 0 && U2 < 90 && (Mt = r2 + yt), U2 < 0 && U2 > -90 && (Mt = r2 - yt)), R2 && pt(H2 = B2 && d(R2.textOrientation) < 90 ? -R2.textOrientation : R2.textOrientation) && (_2 = d(H2 * g / 180), O2 = v(_2), yt = Math.floor(a2 / O2), H2 > -90 && H2 < 0 && (Mt += yt, wt = e3 - yt), H2 > 0 && H2 < 90 && (Mt -= yt, wt = e3 + yt)))), V = k2 ? k2.rowSpacingIndex : s, z = k2 ? k2.isAfterRowSpacing : s, Y = B2 ? p(-1 * F2) : 0, Z = wt + Mt - 0.5, W = e3 + r2 - 0.5, Q = wt - 0.5, K = e3 - 0.5, m2 && G2 && ut.UN(t4, n3, e3 - 1, i3 - 1, e3 + r2, i3 + a2, m2, ut.kN, c, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z }), b2 && G2 && ut.UN(t4, n3, e3 + r2, i3 - 1, e3 - 1, i3 + a2, b2, ut.DN, c, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z }), f2 && a2 > 0 && (lt = ut.UN(t4, n3, wt + Y, i3 - 0.5, wt + Mt + Y, i3 - 0.5, f2, ut.xN, gt, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z })), u2 && Mt > 0 && (ht = ut.UN(t4, n3, B2 ? Z : Q, i3, B2 ? W : K, i3 + a2, u2, ut.NN, gt, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z })), l2 && Mt > 0 && (J = ut.L_e.R_e(n3, null == k2 ? void 0 : k2.sheetArea), k2 && k2.columnHeaderFitMode === o.ColumnHeaderFitMode.stack && !y(k2.cornerX) ? (N2 = k2.cornerX, D2 = (j2 = k2.cornerY) - i3, ut.UN(t4, J, wt + Mt - 0.5, i3, e3 + r2 - 0.5, i3 + D2, l2, ut.NN, gt, { isMultiLine: true, multiLinePart: "topVertical", printZoomFactor: F2 }), ut.UN(t4, J, N2, i3 + D2 - 0.5, e3 + r2 - 0.5, i3 + D2 - 0.5, l2, ut.xN, gt, { isMultiLine: true, multiLinePart: "horizontal", printZoomFactor: F2 }), vt = ut.UN(t4, J, N2 - 0.5, j2, N2 - 0.5, i3 + a2, l2, ut.NN, gt, { isMultiLine: true, multiLinePart: "bottomVertical", printZoomFactor: F2 })) : vt = ut.UN(t4, J, B2 ? Q : Z, i3, B2 ? K : W, i3 + a2, l2, ut.NN, gt, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z })), h2 && a2 > 0 && (X = ut.L_e.sD(t4, null == k2 ? void 0 : k2.sheetArea), k2 && k2.columnHeaderFitMode === o.ColumnHeaderFitMode.stack && !y(k2.cornerX) ? (N2 = k2.cornerX, dt = ut.UN(X, n3, e3 + Y, i3 + a2 - 0.5, N2 + Y, i3 + a2 - 0.5, h2, ut.xN, gt, { printZoomFactor: F2 })) : dt = ut.UN(X, n3, e3 + Y, i3 + a2 - 0.5, e3 + r2 + Y, i3 + a2 - 0.5, h2, ut.xN, gt, { printZoomFactor: F2, rowSpacingIndex: V, isAfterRowSpacing: z })), q = ft && st.Asr ? st.Asr(t4, k2.rowSpacingIndex, k2.isAfterRowSpacing) : st.Jt.Gt(t4), w2 && 0 !== q && 0 !== st.Jt.Kt(n3) || ($ = st.fcr && st.fcr(t4, n3), tt = !dt && !M2 && (!$ || $.bottom), nt = !vt && !C2 && (!$ || $.right), et = !lt && !M2 && (!$ || $.top), it = !ht && !C2 && (!$ || $.left), (tt || nt || et || it) && (rt = {}, ft && (rt.rowSpacingIndex = V, rt.isAfterRowSpacing = z, nt = false, st.xsr && !st.xsr(t4, V, z) && (tt = false), ot = z ? t4 + 1 : t4, (at = ct.qt(ot, n3, k2.sheetArea, s)) && at.borderTop && (tt = false)), ut.HN(t4, n3, e3, i3, r2, a2, tt, nt, S2, T2, rt))), !lt && !w2 || gt || ut.zN(t4 - 1, n3, ut.AN), (ht || w2) && ut.zN(t4, n3 - 1, ut.IN), !w2 || u2 || l2 || f2 || h2 || (ut.VN(t4 - 1, n3 - 1, ut.IN, false), ut.VN(t4 - 1, n3 - 1, ut.AN, true));
          }, t3.prototype.UN = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, f2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2;
            return !!a2 && (l2 = void 0, h2 = void 0, d2 = void 0, f2 && (l2 = f2.isMultiLine, h2 = f2.multiLinePart, d2 = f2.printZoomFactor), v2 = f2.rowSpacingIndex, p2 = f2.isAfterRowSpacing, g2 = this.YN(t4, n3, u2, { noCreate: true, rowSpacingIndex: v2, isAfterRowSpacing: p2 }), m2 = this.Mf.options.rightToLeft, g2 ? l2 ? ((b2 = H(e3, i3, r2, o2, a2.color, a2.style, s2, d2, m2)).multiLinePart = h2, g2.splitLines || (g2.splitLines = []), "horizontal" === h2 && (g2.line = b2), g2.splitLines.push(b2)) : s2 || 6 !== g2.style.style && (6 === a2.style || B.nN(a2, g2.style) > 0) ? (g2.line = H(e3, i3, r2, o2, a2.color, a2.style, s2, d2, m2), g2.style = a2) : g2.line && !g2.splitLines && o2 - i3 !== g2.line._y2 - g2.line._y1 && (g2.line._y2 = o2, g2.line._y1 = i3) : (y2 = H(e3, i3, r2, o2, a2.color, a2.style, s2, d2, m2)) && ((g2 = this.YN(t4, n3, u2, { rowSpacingIndex: v2, isAfterRowSpacing: p2 })).line = y2, g2.style = a2, l2 && (g2.line.multiLinePart = h2, g2.splitLines = [g2.line])), g2 && g2.line !== c);
          }, t3.prototype.HN = function(t4, n3, e3, i3, r2, o2, a2, u2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
            void 0 === l2 && (l2 = {}), d2 = 3 === (h2 = this).nT, v2 = h2.Mf.options.gridline, p2 = h2.Mf.options.rightToLeft, d2 && v2 && (g2 = v2.color, v2.showHorizontalGridline && (a2 && ((m2 = h2.YN(t4, n3, h2.AN, l2)).isGridLine = true, m2.line = H(e3, i3 + o2 - 0.5, e3 + r2, i3 + o2 - 0.5, g2, s, s, s, p2)), c2 && ((b2 = h2.YN(-1, n3, h2.AN, { noCreate: false, isTopLeftGridline: true, rowSpacingIndex: l2.rowSpacingIndex, isAfterRowSpacing: l2.isAfterRowSpacing })).isGridLine = true, b2.line = H(e3, i3 - 0.5, e3 + r2, i3 - 0.5, g2, s, s, s, p2))), v2.showVerticalGridline && (y2 = e3 + r2 - 0.5, w2 = e3 - 0.5, u2 && ((M2 = h2.YN(t4, n3, h2.IN, l2)).isGridLine = true, C2 = p2 ? w2 : y2, M2.line = H(C2, i3, C2, i3 + o2, g2, s, s, s, p2)), f2 && (C2 = p2 ? y2 : w2, (S2 = h2.YN(t4, -1, h2.IN, { noCreate: false, isTopLeftGridline: true, rowSpacingIndex: l2.rowSpacingIndex, isAfterRowSpacing: l2.isAfterRowSpacing })).isGridLine = true, S2.line = H(C2, i3, C2, i3 + o2, g2, s, s, s, p2))));
          }, t3.prototype.VN = function(t4, n3, e3, i3) {
            var r2, o2 = this.YN(t4, n3, e3, { noCreate: true });
            o2 && (r2 = o2).line && r2.line.Wx({ _orientation: i3 ? 0 : 1, Kx: -1 });
          }, t3.prototype.zN = function(t4, n3, e3) {
            var i3, r2;
            (t4 >= 0 && n3 >= 0 || 0 === t4 && -1 === n3 || -1 === t4 && 0 === n3) && (i3 = e3[t4]) && (r2 = i3[n3]) && delete i3[n3];
          }, t3.prototype.YN = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            if (void 0 === i3 && (i3 = {}), r2 = i3.isTopLeftGridline, o2 = i3.noCreate, !r2 && (-1 === t4 || -1 === n3)) return c;
            if (this.Ssr && this.Tsr) return this.Tsr(t4, n3, e3, i3);
            if (!(a2 = e3[t4])) {
              if (o2) return c;
              e3[t4] = a2 = {};
            }
            if (!(u2 = a2[n3])) {
              if (o2) return c;
              a2[n3] = u2 = {};
            }
            return u2;
          }, t3.prototype.ZN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2 = this, j2 = N2.SN, D2 = j2.length, _2 = N2.NN, O2 = N2.xN, E2 = N2.IN, R2 = N2.AN;
            for (t4 = 0; t4 < D2; t4++) if (e3 = (n3 = j2[t4]).Ky, i3 = n3.iw, r2 = n3.jN, o2 = n3.RN, a2 = n3.ON, u2 = void 0, s2 = n3._x, c2 = n3.YC, f2 = n3.ZC, l2 = s2, h2 = void 0, d2 = o2.textOrientation, v2 = o2.borderTop, !(p2 = j2[t4 - 1]) || p2.Ky !== e3 || p2.jN !== r2 || p2.ON !== a2) {
              for (g2 = r2; g2 < a2; g2++) (u2 = N2.YN(e3, g2 + 1, _2, { noCreate: true })) && !d2 ? N2.zN(e3, g2 + 1, _2) : (m2 = g2, (u2 = N2.YN(e3, m2, E2, { noCreate: true })) && N2.zN(e3, m2, E2));
              if (b2 = N2.YN(e3, i3, O2, { noCreate: true }), d2 && v2 && !b2) {
                for (y2 = void 0, y2 = f2 / Math.tan(Math.abs(d2 * Math.PI / 180)), d2 > -90 && d2 < 0 && (l2 = s2 - y2), d2 > 0 && d2 < 90 && (l2 = s2 + y2), h2 = l2 + c2, w2 = r2; w2 < a2 + 1; w2++) if (C2 = (M2 = N2.YN(e3 - 1, w2, R2, { noCreate: true })) && M2.line) {
                  for (M2.splitLines || (M2.splitLines = [], M2.splitLines.push(C2)), S2 = 0; S2 < M2.splitLines.length; S2++) if (x2 = (T2 = M2.splitLines[S2])._x1, A2 = T2._x2, I2 = T2._y1, k2 = T2._y2, l2 > x2 && h2 > A2 && A2 > l2) T2._x2 = l2;
                  else if (l2 < x2 && h2 > A2) N2.zN(e3 - 1, w2, N2.AN);
                  else if (l2 < x2 && h2 < A2 && x2 < h2) T2._x1 = h2;
                  else if (l2 > x2 && h2 < A2) {
                    M2.splitLines.splice(S2, 1, H(x2, I2, l2, I2, T2.color), H(h2, k2, A2, k2, T2.color));
                    break;
                  }
                }
              }
            }
          }, t3.prototype.WN = function(t4, n3) {
            var e3, i3, r2 = this.wN, o2 = r2.length;
            if (o2 > 0) for (i3 = 0; i3 < o2; i3++) e3 = r2[i3], this.QN(e3, t4, n3);
          }, t3.prototype.KN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2;
            if (this._N = {}, (n3 = (t4 = this.wN).length) > 0) for (i3 = 0; i3 < n3; i3++) for (e3 = t4[i3], r2 = 0; r2 < e3.rowCount; r2++) for (o2 = r2 + e3.row, this._N[o2] = this._N[o2] || {}, a2 = 0; a2 < e3.colCount; a2++) u2 = a2 + e3.col, this._N[o2][u2] = e3;
          }, t3.prototype.QN = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = t4.row, C2 = t4.col, S2 = t4.x, T2 = t4.y, x2 = t4.spanSizeInfo, A2 = x2.styleList[0][0], I2 = A2 ? A2.backColor : c, k2 = S2, N2 = T2, j2 = null, D2 = true, _2 = null, O2 = true, E2 = w2.Mf, R2 = E2.N9(3), L2 = E2.k9(3), F2 = E2.Fi(), P2 = E2.options.sheetAreaOffset, G2 = E2.gj && E2.gj() || { x: P2.left, y: P2.top, width: 0, height: 0 }, U2 = 0 === F2.qC && 0 === G2.height, H2 = 0 === F2.XC && 0 === G2.width, V = M2 === R2 && U2 || e3 && 0 === t4.vIndex, z = C2 === L2 && H2 || e3 && 0 === t4.hIndex;
            if (1 === t4.rowCount) {
              for (s2 = M2, l2 = x2.rowSizes[0], u2 = 0; u2 < t4.colCount; u2++) d2 = 0 === u2, p2 = u2 === t4.colCount - 1, f2 = C2 + u2, h2 = x2.colSizes[u2], m2 = x2.styleList[0][u2], s2 === t4.row && f2 === t4.col && (j2 = (b2 = m2) && b2.diagonalDown, _2 = b2 && b2.diagonalUp), m2 ? (i3 = m2.borderLeft, r2 = m2.borderTop, o2 = m2.borderRight, a2 = m2.borderBottom, D2 && (D2 = B.bN(j2, m2.diagonalDown)), O2 && (O2 = B.bN(_2, m2.diagonalUp))) : i3 = r2 = o2 = a2 = c, d2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, r2, c, a2, c, c, I2, false, true, c, c, c, c, c, { printZoomFactor: n3 }) : p2 ? w2.GN(s2, f2, k2, N2, h2, l2, c, r2, o2, a2, c, c, I2, false, false, c, c, c, c, c, { printZoomFactor: n3 }) : w2.GN(s2, f2, k2, N2, h2, l2, c, r2, c, a2, c, c, I2, false, true, c, c, c, c, c, { printZoomFactor: n3 }), k2 += h2;
              j2 = D2 ? j2 : null, _2 = O2 ? _2 : null, w2.GN(t4.row, t4.col, t4.x, t4.y, t4.width, t4.height, c, c, c, c, j2, _2, I2, !V, !z, V, z, c, c, c, { printZoomFactor: n3 });
            } else if (1 === t4.colCount) {
              for (f2 = C2, h2 = x2.colSizes[0], u2 = 0; u2 < t4.rowCount; u2++) v2 = 0 === u2, g2 = u2 === t4.rowCount - 1, s2 = M2 + u2, l2 = x2.rowSizes[u2], m2 = x2.styleList[u2][0], s2 === t4.row && f2 === t4.col && (j2 = (b2 = m2) && b2.diagonalDown, _2 = b2 && b2.diagonalUp), m2 ? (i3 = m2.borderLeft, r2 = m2.borderTop, o2 = m2.borderRight, a2 = m2.borderBottom, D2 && (D2 = B.bN(j2, m2.diagonalDown)), O2 && (O2 = B.bN(_2, m2.diagonalUp))) : i3 = r2 = o2 = a2 = c, v2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, r2, o2, c, c, c, I2, true, false, c, c, c, c, c, { printZoomFactor: n3 }) : g2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, c, o2, a2, c, c, I2, false, false, c, c, c, c, c, { printZoomFactor: n3 }) : w2.GN(s2, f2, k2, N2, h2, l2, i3, c, o2, c, c, c, I2, true, false, c, c, c, c, c, { printZoomFactor: n3 }), N2 += l2;
              j2 = D2 ? j2 : null, _2 = O2 ? _2 : null, w2.GN(t4.row, t4.col, t4.x, t4.y, t4.width, t4.height, c, c, c, c, j2, _2, I2, !V, !z, V, z, c, c, c, { printZoomFactor: n3 });
            } else {
              for (u2 = 0; u2 < t4.rowCount; u2++) {
                for (s2 = M2 + u2, v2 = 0 === u2, g2 = u2 === t4.rowCount - 1, l2 = x2.rowSizes[u2], y2 = 0; y2 < t4.colCount; y2++) f2 = C2 + y2, d2 = 0 === y2, p2 = y2 === t4.colCount - 1, h2 = x2.colSizes[y2], m2 = x2.styleList[u2][y2], s2 === t4.row && f2 === t4.col && (j2 = (b2 = m2) && b2.diagonalDown, _2 = b2 && b2.diagonalUp), m2 ? (i3 = m2.borderLeft, r2 = m2.borderTop, o2 = m2.borderRight, a2 = m2.borderBottom, D2 && (D2 = B.bN(j2, m2.diagonalDown)), O2 && (O2 = B.bN(_2, m2.diagonalUp))) : i3 = r2 = o2 = a2 = c, v2 ? d2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, r2, c, c, c, c, I2, true, true, c, c, c, c, c, { printZoomFactor: n3 }) : p2 ? w2.GN(s2, f2, k2, N2, h2, l2, c, r2, o2, c, c, c, I2, true, false, c, c, c, c, c, { printZoomFactor: n3 }) : w2.GN(s2, f2, k2, N2, h2, l2, c, r2, c, c, c, c, I2, true, true, c, c, c, c, c, { printZoomFactor: n3 }) : g2 ? d2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, c, c, a2, c, c, I2, false, true, c, c, c, c, c, { printZoomFactor: n3 }) : p2 ? w2.GN(s2, f2, k2, N2, h2, l2, c, c, o2, a2, c, c, I2, false, false, c, c, c, c, c, { printZoomFactor: n3 }) : w2.GN(s2, f2, k2, N2, h2, l2, c, c, c, a2, c, c, I2, false, true, c, c, c, c, c, { printZoomFactor: n3 }) : d2 ? w2.GN(s2, f2, k2, N2, h2, l2, i3, c, c, c, c, c, I2, true, true, c, c, c, c, c, { printZoomFactor: n3 }) : p2 && w2.GN(s2, f2, k2, N2, h2, l2, c, c, o2, c, c, c, I2, true, false, c, c, c, c, c, { printZoomFactor: n3 }), k2 += h2;
                k2 = S2, N2 += l2;
              }
              j2 = D2 ? j2 : null, _2 = O2 ? _2 : null, w2.GN(t4.row, t4.col, t4.x, t4.y, t4.width, t4.height, c, c, c, c, j2, _2, I2, !V, !z, V, z, c, c, c, { printZoomFactor: n3 });
            }
            !I2 || i3 || o2 || r2 || a2 || w2.TN.push({ r: M2, c: C2, rc: t4.rowCount, cc: t4.colCount });
          }, t3.prototype.Wx = function() {
            var t4 = this, n3 = false, e3 = false, i3 = false, r2 = false;
            b(t4.NN) || (n3 = true), b(t4.xN) || (e3 = true), (n3 || e3) && (t4.JN(), t4.XN()), b(t4.kN) || (i3 = true), b(t4.DN) || (r2 = true), (i3 || r2) && t4.qN(), t4.TN.length > 0 && t4.$N();
          }, t3.prototype.t6 = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = this._N[t4] ? this._N[t4][n3] : null;
            if (a2) switch (r2) {
              case T:
                return o2.n6(t4, n3, e3, i3);
              case x:
              case A:
                return o2.n6(t4, n3 + a2.colCount - 1, e3, i3);
              case I:
              case k:
                return o2.n6(t4 + a2.rowCount - 1, n3 + a2.colCount - 1, e3, i3);
              case N:
              case j:
                return o2.n6(t4 + a2.rowCount - 1, n3, e3, i3);
              case D:
                return o2.n6(t4, n3, e3, i3);
            }
            return o2.n6(t4, n3, e3, i3);
          }, t3.prototype.qN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = p2.MN, m2 = p2.CN, b2 = g2.length, y2 = m2.length, w2 = {}, M2 = {};
            for (t4 = 0; t4 < b2; t4++) for (e3 = g2[t4], n3 = 0; n3 < y2; n3++) i3 = m2[n3], h2 = p2.YN(e3, i3, p2.kN, { noCreate: false }), d2 = p2.YN(e3, i3, p2.DN, { noCreate: false }), (h2 || d2) && (B.cN(h2) && B.cN(d2) && (h2.line.$x(), d2.line.$x()), v2 = [], (r2 = p2.t6(e3, i3, false, w2, T)) && r2.line && !r2.isGridLine && (v2 = [1, 1, 2], p2.e6(v2, r2, h2, true, 1)), (s2 = p2.t6(e3, i3, false, w2, x)) && s2.line && !s2.isGridLine && (v2 = [1, 1, 2], p2.e6(v2, s2, d2, true, 1)), (o2 = p2.t6(e3, i3, true, M2, D)) && o2.line && !o2.isGridLine && (v2 = [1, 1, 2], p2.e6(v2, o2, h2, true, 0)), (c2 = p2.t6(e3, i3, true, M2, j)) && c2.line && !c2.isGridLine && (v2 = [1, 1, 2], p2.e6(v2, c2, d2, false, 0)), (a2 = p2.t6(e3 + 1, i3, false, w2, N)) && a2.line && !a2.isGridLine && (v2 = [-1, -2, -2], p2.e6(v2, a2, d2, false, 1)), (f2 = p2.t6(e3 + 1, i3, false, w2, k)) && f2.line && !f2.isGridLine && (v2 = [-1, -2, -2], p2.e6(v2, f2, h2, false, 1)), (u2 = p2.t6(e3, i3 + 1, true, M2, A)) && u2.line && !u2.isGridLine && (v2 = [-1, -2, -2], p2.e6(v2, u2, d2, true, 0)), (l2 = p2.t6(e3, i3 + 1, true, M2, I)) && l2.line && !l2.isGridLine && (v2 = [-1, -2, -2], p2.e6(v2, l2, h2, false, 0)));
          }, t3.prototype.e6 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = B.cN(n3), s2 = B.oN(n3), c2 = n3.line.Ex;
            u2 && (c2 = 3), s2 && (c2 = 2), o2 = t4[c2 - 1], e3 && e3.line && (a2 = { _orientation: r2 }, i3 ? a2.Jx = o2 : a2.Kx = o2, e3.line.Wx(a2));
          }, t3.prototype.$N = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.TN, v2 = d2.length;
            for (t4 = 0; t4 < v2; t4++) {
              for (r2 = e3 = (n3 = d2[t4]).r, o2 = e3 - 1, a2 = (i3 = n3.c) - 1, u2 = i3, n3.rc > 1 && (r2 += n3.rc - 1), n3.cc > 1 && (u2 += n3.cc - 1), s2 = false, c2 = false, f2 = t4 + 1; f2 < v2 && ((l2 = d2[f2]).c === u2 + 1 && l2.r === e3 && (c2 = true), l2.r === r2 + 1 && l2.c === i3 && (s2 = true), !s2 || !c2) && !(l2.r > e3 + 1 && l2.c > i3 + 1); f2++) ;
              s2 || h2.VN(r2, a2, h2.AN, true), c2 || h2.VN(o2, u2, h2.IN, false);
            }
          }, t3.prototype.JN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this, I2 = A2.Mf, k2 = I2.Ut, N2 = A2.MN, j2 = A2.CN, D2 = N2.length, _2 = j2.length, O2 = {}, E2 = {};
            for (t4 = 0; t4 < D2; t4++) for (e3 = N2[t4], n3 = 0; n3 < _2; n3++) {
              if (i3 = j2[n3], p2 = 0, g2 = 0, m2 = A2.YN(e3, i3, A2.NN, { noCreate: true })) {
                if (m2.line && m2.line.jx) continue;
                p2++;
              } else m2 = A2.YN(e3, i3 - 1, A2.IN, { noCreate: true });
              if ((b2 = A2.YN(e3, i3, A2.xN, { noCreate: true })) ? g2++ : b2 = A2.YN(e3 - 1, i3, A2.AN, { noCreate: true }), m2 || b2) {
                if ((r2 = 0 === t4 ? c : A2.n6(N2[t4 - 1], i3, true, E2)) && r2.line && !r2.isGridLine && (p2++, g2++), (o2 = 0 === n3 ? c : A2.n6(e3, j2[n3 - 1], false, O2)) && o2.line && !o2.isGridLine && (p2++, g2++), m2) for (y2 = [m2], m2.splitLines && m2.splitLines.length > 0 && (y2 = m2.splitLines), w2 = 0; w2 < y2.length; w2++) (M2 = y2[w2]).style = m2.style, (a2 = A2.n6(e3, i3, false, O2)) && a2.line && !a2.isGridLine && p2++, t4 !== D2 - 1 && (s2 = A2.n6(N2[t4 + 1], i3, true, E2)) && s2.line && !s2.isGridLine && p2++, 0 !== n3 && t4 !== D2 - 1 && (f2 = A2.n6(N2[t4 + 1], j2[n3 - 1], false, O2)) && f2.line && !f2.isGridLine && p2++, t4 !== D2 - 1 && (l2 = A2.n6(N2[t4 + 1], i3, false, O2)) && l2.line && !l2.isGridLine && p2++, p2 > 0 && ("topVertical" === M2.multiLinePart ? (C2 = k2.i6(i3, 0), S2 = I2.r6(C2), 2 === I2.Lt(S2) && (C2 = I2.O5(C2)), T2 = I2.O5(i3), a2 = A2.n6(e3, C2, false, O2), s2 = A2.n6(e3, T2, true, E2), f2 = M2, l2 = c) : "bottomVertical" === M2.multiLinePart && (r2 = c, o2 = c, a2 = M2, s2 = c, f2 = A2.n6(N2[t4 + 1], j2[n3 - 1], false, O2), l2 = A2.n6(N2[t4 + 1], j2[n3], false, O2)), B.rN(m2.style) ? B.pN(M2, r2, o2, a2, s2, f2, l2, true) : B.oN(m2.style) || B.gN(M2, r2, o2, a2, s2, f2, l2));
                b2 && ((u2 = A2.n6(e3, i3, true, E2)) && u2.line && !u2.isGridLine && g2++, n3 !== _2 - 1 && (x2 = j2[n3 + 1], 2 === I2.Lt(x2) && (x2 = k2.i6(x2, 0), x2 = I2.O5(x2)), (h2 = A2.n6(e3, x2, false, O2)) && h2.line && !h2.isGridLine && g2++), 0 !== t4 && n3 !== _2 - 1 && (d2 = A2.n6(N2[t4 - 1], j2[n3 + 1], true, E2)) && d2.line && !d2.isGridLine && g2++, n3 !== _2 - 1 && (v2 = A2.n6(e3, j2[n3 + 1], true, E2)) && v2.line && !v2.isGridLine && g2++, g2 > 0 && (b2.line && "horizontal" === b2.line.multiLinePart && (C2 = k2.i6(i3, 0), S2 = I2.r6(C2), 2 === I2.Lt(S2) && (C2 = I2.O5(C2)), o2 = c, r2 = c, u2 = b2, h2 = c, d2 = b2, v2 = A2.n6(e3, C2, true, E2)), B.rN(b2.style) ? B.pN(b2, o2, r2, u2, h2, d2, v2, false) : B.oN(b2.style) || B.mN(b2, o2, r2, u2, h2, d2, v2)));
              }
            }
          }, t3.prototype.o6 = function(t4, n3, e3, i3) {
            var r2 = this, o2 = this._N[t4] ? this._N[t4][n3] : null, a2 = e3 ? r2.DN : r2.kN;
            return o2 ? t4 === o2.row && n3 === o2.col && i3 === w || t4 === o2.row && n3 === o2.col + o2.colCount - 1 && i3 === M || t4 === o2.row + o2.rowCount - 1 && n3 === o2.col + o2.colCount - 1 && i3 === C || t4 === o2.row + o2.rowCount - 1 && n3 === o2.col && i3 === S ? r2.YN(o2.row, o2.col, a2, { noCreate: false }) : void 0 : r2.YN(t4, n3, a2, { noCreate: false });
          }, t3.prototype.XN = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = p2.MN, m2 = p2.CN, b2 = g2.length, y2 = m2.length;
            for (t4 = 0; t4 < b2; t4++) for (e3 = g2[t4], n3 = 0; n3 < y2; n3++) i3 = m2[n3], (d2 = p2.YN(e3, i3, p2.NN, { noCreate: true })) && d2.line && d2.line.aJr || (d2 && d2.line && B.cN(d2) && (r2 = p2.o6(e3, i3, false, w), o2 = p2.o6(e3, i3, true, S), a2 = B.cN(r2), u2 = B.cN(o2), s2 = p2.o6(e3, i3 - 1, false, C), c2 = p2.o6(e3, i3 - 1, true, M), f2 = B.cN(s2), l2 = B.cN(c2), r2 && a2 && (h2 = { tN: 2, _orientation: 1, Jx: 2 }, d2.line.Wx(h2)), o2 && u2 && (h2 = { tN: 2, _orientation: 1, Kx: -2 }, d2.line.Wx(h2)), s2 && f2 && (h2 = { tN: 1, _orientation: 1, Kx: -2 }, d2.line.Wx(h2)), c2 && l2 && (h2 = { tN: 1, _orientation: 1, Jx: 2 }, d2.line.Wx(h2))), (v2 = p2.YN(e3, i3, p2.xN, { noCreate: true })) && v2.line && B.cN(v2) && (r2 = p2.o6(e3, i3, false, w), o2 = p2.o6(e3, i3, true, M), a2 = B.cN(r2), u2 = B.cN(o2), s2 = p2.o6(e3 - 1, i3, false, C), c2 = p2.o6(e3 - 1, i3, true, S), f2 = B.cN(s2), l2 = B.cN(c2), r2 && a2 && (h2 = { tN: 2, _orientation: 0, Jx: 2 }, v2.line.Wx(h2)), o2 && u2 && (h2 = { tN: 2, _orientation: 0, Kx: -2 }, v2.line.Wx(h2)), s2 && f2 && (h2 = { tN: 1, _orientation: 0, Kx: -2 }, v2.line.Wx(h2)), c2 && l2 && (h2 = { tN: 1, _orientation: 0, Jx: 2 }, v2.line.Wx(h2))));
          }, t3.prototype.n6 = function(t4, n3, e3, i3) {
            var r2, o2 = i3[t4];
            return o2 || (o2 = i3[t4] = {}), (r2 = o2[n3]) === s && (r2 = o2[n3] = this.a6(t4, n3, e3)), r2;
          }, t3.prototype.a6 = function(t4, n3, e3) {
            var i3, r2, o2;
            if (t4 === s || t4 < 0 || n3 === s || n3 < 0) return c;
            if (i3 = this, r2 = e3 ? i3.NN : i3.xN, o2 = i3.YN(t4, n3, r2, { noCreate: true })) return o2;
            if (r2 = e3 ? i3.IN : i3.AN, e3) {
              if (--n3 < 0) return c;
            } else if (--t4 < 0) return c;
            return (o2 = i3.YN(t4, n3, r2, { noCreate: true })) || c;
          }, t3.prototype.paint = function(t4, n3, e3) {
            var i3, r2 = this;
            r2.Ux && (i3 = r2.Ssr, r2.Hx || (i3 || (r2.KN(), r2.WN(n3, e3)), r2.ZN(), r2.Wx(), r2.Hx = true), t4.save(), r2._e(t4), t4.restore());
          }, t3.prototype._e = function(t4) {
            this.u6(t4), this.s6(t4);
          }, t3.prototype.u6 = function(t4) {
            var n3 = this;
            n3.c6(t4, n3.AN), n3.c6(t4, n3.IN);
          }, t3.prototype.s6 = function(t4) {
            var n3 = this;
            n3.c6(t4, n3.xN), n3.c6(t4, n3.NN), n3.c6(t4, n3.kN), n3.c6(t4, n3.DN);
          }, t3.prototype.c6 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2;
            if (this.Ssr && this.Isr) this.Isr(t4, n3);
            else for (e3 in e3 = void 0, i3 = void 0, r2 = void 0, o2 = void 0, a2 = void 0, n3) if (n3[e3]) {
              for (i3 in r2 = n3[e3]) if (r2[i3]) if (o2 = r2[i3].line, (a2 = r2[i3].splitLines) && a2.length > 0) for (u2 = 0; u2 < a2.length; u2++) a2[u2] && a2[u2]._e(t4);
              else o2 && o2._e(t4);
            }
          }, t3;
        })(), n2.Yx = P;
      }, "./dist/core/worksheet/worksheet-clipboard.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt = this && this.qKr || (st = function(t3, n3) {
          return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, st(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          st(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), ot = this && this.nJr || function() {
          return ot = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, ot.apply(this, arguments);
        }, at = this && this.$Kr || function(t3, n3, e3, i3) {
          function r2(t4) {
            return t4 instanceof e3 ? t4 : new e3((function(n4) {
              n4(t4);
            }));
          }
          return new (e3 || (e3 = Promise))((function(e4, o2) {
            function a2(t4) {
              try {
                s2(i3.next(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function u2(t4) {
              try {
                s2(i3.throw(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function s2(t4) {
              t4.done ? e4(t4.value) : r2(t4.value).then(a2, u2);
            }
            s2((i3 = i3.apply(t3, n3 || [])).next());
          }));
        }, ut = this && this.tJr || function(t3, n3) {
          var e3 = { label: 0, sent: function() {
            if (1 & o2[0]) throw o2[1];
            return o2[1];
          }, trys: [], ops: [] }, i3, r2, o2, a2;
          return a2 = { next: u2(0), throw: u2(1), return: u2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
            return this;
          }), a2;
          function u2(t4) {
            return function(n4) {
              return s2([t4, n4]);
            };
          }
          function s2(u3) {
            if (i3) throw new TypeError("Generator is already executing.");
            for (; a2 && (a2 = 0, u3[0] && (e3 = 0)), e3; ) try {
              if (i3 = 1, r2 && (o2 = 2 & u3[0] ? r2.return : u3[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, u3[1])).done) return o2;
              switch (r2 = 0, o2 && (u3 = [2 & u3[0], o2.value]), u3[0]) {
                case 0:
                case 1:
                  o2 = u3;
                  break;
                case 4:
                  return e3.label++, { value: u3[1], done: false };
                case 5:
                  e3.label++, r2 = u3[1], u3 = [0];
                  continue;
                case 7:
                  u3 = e3.ops.pop(), e3.trys.pop();
                  continue;
                default:
                  if (!(o2 = e3.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== u3[0] && 2 !== u3[0])) {
                    e3 = 0;
                    continue;
                  }
                  if (3 === u3[0] && (!o2 || u3[1] > o2[0] && u3[1] < o2[3])) {
                    e3.label = u3[1];
                    break;
                  }
                  if (6 === u3[0] && e3.label < o2[1]) {
                    e3.label = o2[1], o2 = u3;
                    break;
                  }
                  if (o2 && e3.label < o2[2]) {
                    e3.label = o2[2], e3.ops.push(u3);
                    break;
                  }
                  o2[2] && e3.ops.pop(), e3.trys.pop();
                  continue;
              }
              u3 = n3.call(t3, e3);
            } catch (t4) {
              u3 = [6, t4], r2 = 0;
            } finally {
              i3 = o2 = 0;
            }
            if (5 & u3[0]) throw u3[1];
            return { value: u3[0] ? u3[1] : void 0, done: true };
          }
        }, st;
        function ct(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.allowCopyPasteExcelStyle;
        }
        function ft(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.allowExtendPasteRange;
        }
        function lt(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.copyPasteHeaderOptions;
        }
        function ht(t3, n3, e3, i3, r2, a2) {
          var u2, s2, c2, f2, l2, h2 = g, d2 = (0, o.parseText)(t3, n3, e3, i3, r2, a2);
          if (d2) {
            for (u2 = d2.length, s2 = (0, o.getMaxLength)(d2), c2 = [], f2 = 0; f2 < u2; f2++) for (c2[f2] = [], l2 = 0; l2 < s2; l2++) l2 < d2[f2].length ? c2[f2][l2] = d2[f2][l2] : c2[f2][l2] = g;
            h2 = c2;
          }
          return h2;
        }
        function dt(t3, n3) {
          return t3.tables && t3.tables.Uue(n3);
        }
        function vt(t3, n3) {
          var e3, i3;
          for (e3 = n3.row; e3 < n3.row + n3.rowCount; e3++) for (i3 = n3.col; i3 < n3.col + n3.colCount; i3++) if (!x(t3.getValue(e3, i3))) return false;
          return true;
        }
        function pt(t3, n3) {
          return -1 !== t3.col && -1 !== t3.colCount && t3.colCount !== n3;
        }
        function gt(t3, n3) {
          return -1 === t3.row || -1 === t3.rowCount || t3.rowCount === n3;
        }
        function mt(t3, n3) {
          return t3.tables && t3.tables.Uue(n3);
        }
        function bt(t3, n3, e3, i3, r2) {
          return t3.tables && t3.tables.oSt(n3, e3, i3, r2);
        }
        function yt(t3, n3, e3, o2, a2) {
          var u2 = n3.rowCount, s2 = n3.colCount, c2 = false;
          return a2 === i2.InsertShiftCell.right ? (s2 = 1, o2 === t3.col && (c2 = true)) : (u2 = 1, e3 === t3.row && (c2 = true)), (-1 === t3.row || -1 === t3.col) && t3.intersect(e3, o2, u2, s2) && !t3.equals(new r.Range(e3, o2, u2, s2)) && !c2;
        }
        function wt(t3) {
          return (t3 & i2.CopyToOptions.style) <= 0;
        }
        function Mt(t3, n3) {
          var e3, i3, o2, a2, u2 = t3.row, s2 = t3.col, c2 = t3.row + t3.rowCount, f2 = t3.col + t3.colCount, l2 = n3.row, h2 = n3.col, d2 = n3.row + n3.rowCount, v2 = n3.col + n3.colCount, p2 = y(u2, l2) <= w(c2, d2) && y(s2, h2) <= w(f2, v2);
          return !!p2 && (e3 = y(u2, l2), i3 = y(s2, h2), o2 = w(c2, d2) - e3, a2 = w(f2, v2) - i3, new r.Range(e3, i3, o2, a2));
        }
        function Ct(t3, n3) {
          var e3 = [];
          return n3.forEach((function(n4) {
            var i3 = Mt(t3, n4);
            i3 && e3.push(i3);
          })), e3;
        }
        function St(t3, n3) {
          t3 && p && t3.suspendCalcService(n3);
        }
        function Tt(t3, n3) {
          t3 && p && t3.resumeCalcService(n3);
        }
        function xt(t3, n3) {
          return n3 === i2.ClipboardPasteOptions.formatting && t3.options.protectionOptions.formatCells;
        }
        function At(t3, n3, e3, i3, r2) {
          t3.ki("shiftCellsDown", { row: i3, col: r2, changedRowCount: i3 - n3, changedColCount: r2 - e3, srcRow: n3, srcColumn: e3 }, true);
        }
        function It(t3) {
          var n3, e3, i3 = t3.BSt, r2 = null === (n3 = t3.IB) || void 0 === n3 ? void 0 : n3.srt;
          if (r2 && i3) return e3 = {}, i3.map((function(t4, n4) {
            e3[t4.name()] = r2[n4];
          })), e3;
        }
        function kt(t3) {
          return { showHeader: t3.showHeader(), allowAutoExpand: t3.allowAutoExpand(), showFooter: t3.showFooter(), useFooterDropDownList: t3.useFooterDropDownList(), showResizeHandle: t3.showResizeHandle(), bandRows: t3.bandRows(), bandColumns: t3.bandColumns(), highlightFirstColumn: t3.highlightFirstColumn(), highlightLastColumn: t3.highlightLastColumn(), buttonVisible: It(t3) };
        }
        function Nt(t3, n3) {
          var e3 = t3.BSt, i3 = t3.rowFilter();
          n3 && e3 && e3.map((function(t4, e4) {
            i3.filterButtonVisible(e4, n3[t4.name()]);
          }));
        }
        function jt(t3, n3) {
          t3 && n3 && (x(n3.bandRows) || t3.bandRows(n3.bandRows), x(n3.allowAutoExpand) || t3.allowAutoExpand(n3.allowAutoExpand), x(n3.bandColumns) || t3.bandColumns(n3.bandColumns), x(n3.highlightFirstColumn) || t3.highlightFirstColumn(n3.highlightFirstColumn), x(n3.highlightLastColumn) || t3.highlightLastColumn(n3.highlightLastColumn), x(n3.buttonVisible && t3) || Nt(t3, n3.buttonVisible));
        }
        function Dt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2;
          void 0 === r2 && (r2 = {}), n3 && e3 && i3 !== m && (a2 = n3.Ky, u2 = n3.iw, s2 = n3.Sx, c2 = n3.Tx, f2 = void 0, f2 = r2 || { showHeader: n3.showHeader(), allowAutoExpand: n3.allowAutoExpand(), showFooter: n3.showFooter(), useFooterDropDownList: n3.useFooterDropDownList(), showResizeHandle: n3.showResizeHandle(), bandRows: n3.bandRows(), bandColumns: n3.bandColumns(), highlightFirstColumn: n3.highlightFirstColumn(), highlightLastColumn: n3.highlightLastColumn() }, l2 = n3.style(), jt(h2 = t3.tables._Qt(n3.name(), a2, u2, s2, c2, null !== (o2 = l2.name()) && void 0 !== o2 ? o2 : l2, f2, true), r2), n3.L0());
        }
        function _t(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2 = t3.Ut.getSpans(), g2 = t3.tables && t3.tables.U3, m2 = t3.pivotTables && t3.pivotTables.all();
          for (u2 = 0; u2 < p2.length; u2++) if (!(n3 <= (s2 = p2[u2]).row && e3 <= s2.col && n3 + i3 >= s2.row + s2.rowCount && e3 + r2 >= s2.col + s2.colCount || s2.row > n3 + i3 || s2.row + s2.rowCount - 1 < n3 || s2.row > n3 + i3 - 1 || s2.row + s2.rowCount - 1 < n3 || s2.col + s2.colCount - 1 < e3)) return true;
          if (g2) {
            for (u2 = 0; u2 < g2.length; u2++) if (c2 = g2.get(u2), (x(o2) || c2.name() !== o2) && !(n3 <= c2.Ky && e3 <= c2.iw && n3 + i3 >= c2.Ky + c2.Sx && e3 + r2 >= c2.iw + c2.Tx || c2.Ky > n3 + i3 || c2.Ky + c2.Sx - 1 < n3 || c2.Ky > n3 + i3 - 1 || c2.Ky + c2.Sx - 1 < n3 || c2.iw + c2.Tx - 1 < e3)) return true;
          }
          if (m2) {
            for (u2 = 0; u2 < m2.length; u2++) if (h2 = (l2 = (f2 = m2[u2]).getRange()).content, d2 = l2.page, v2 = void 0, -1 === (null == a2 ? void 0 : a2.indexOf(f2.name())) && (h2 && (v2 = h2.intersect(n3, e3, i3, r2)), !v2 && d2 && (v2 = d2.intersect(n3, e3, i3, r2)), v2)) return true;
          }
          return false;
        }
        function Ot(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2;
          return !t3 || (e3 = t3.row, i3 = t3.col, r2 = n3.row, o2 = n3.col, -1 !== e3 && -1 !== i3 || (a2 = -1 === e3 && -1 !== i3) && r2 <= 0 || (u2 = -1 === i3 && -1 !== e3) && o2 <= 0 || (s2 = -1 === e3 && -1 === i3) && r2 <= 0 && o2 <= 0);
        }
        function Et(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2 = t3.Ut.getSpans(), g2 = t3.tables && t3.tables.U3, m2 = t3.pivotTables && t3.pivotTables.all();
          for (u2 = 0; u2 < p2.length; u2++) if (!(n3 <= (s2 = p2[u2]).row && e3 <= s2.col && n3 + i3 >= s2.row + s2.rowCount && e3 + r2 >= s2.col + s2.colCount || s2.col > e3 + r2 || s2.col + s2.colCount - 1 < e3 || s2.col > e3 + r2 - 1 || s2.col + s2.colCount - 1 < e3 || s2.row + s2.rowCount - 1 < n3)) return true;
          if (g2) {
            for (u2 = 0; u2 < g2.length; u2++) if (c2 = g2.get(u2), (x(o2) || c2.name() !== o2) && !(n3 <= c2.Ky && e3 <= c2.iw && n3 + i3 >= c2.Ky + c2.Sx && e3 + r2 >= c2.iw + c2.Tx || c2.iw > e3 + r2 || c2.iw + c2.Tx - 1 < e3 || c2.iw > e3 + r2 - 1 || c2.iw + c2.Tx - 1 < e3 || c2.Ky + c2.Sx - 1 < n3 || e3 === c2.iw && r2 === c2.Tx && n3 > c2.Ky)) return true;
          }
          if (m2) {
            for (u2 = 0; u2 < m2.length; u2++) if (h2 = (l2 = (f2 = m2[u2]).getRange()).content, d2 = l2.page, v2 = void 0, -1 === (null == a2 ? void 0 : a2.indexOf(f2.name())) && (h2 && (v2 = h2.intersect(n3, e3, i3, r2)), !v2 && d2 && (v2 = d2.intersect(n3, e3, i3, r2)), v2)) return true;
          }
          return false;
        }
        function Rt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2 = t3.Ut.getSpans(), d2 = t3.tables.U3;
          for (o2 = n3; o2 < n3 + i3; o2++) for (a2 = e3; a2 < e3 + r2; a2++) {
            if (u2 = t3.getCell(o2, a2), !x(u2.value()) || u2.backColor() || u2.comment() || u2.tag()) return true;
            for (s2 = 0; s2 < h2.length; s2++) if (o2 >= (c2 = h2[s2]).row && o2 <= c2.row + c2.rowCount - 1 && a2 >= c2.col && a2 <= c2.col + c2.colCount - 1) return true;
            for (f2 = 0; f2 < d2.length; f2++) if (o2 >= (l2 = d2.get(f2)).Ky && o2 <= l2.Ky + l2.Sx - 1 && a2 >= l2.iw && a2 <= l2.iw + l2.Tx - 1) return true;
          }
          return false;
        }
        function Lt(t3, n3) {
          var e3;
          return null === (e3 = t3.getSpan(n3.row, n3.col)) || void 0 === e3 ? void 0 : e3.equals(n3);
        }
        function Ft(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2;
          if (t3 && (e3 = t3.length) > 1) {
            for (i3 = void 0, i3 = 0; i3 < e3; i3++) for (r2 = t3[i3], o2 = i3 + 1; o2 < e3; o2++) if (a2 = t3[o2], r2.intersect(a2.row, a2.col, a2.rowCount, a2.colCount)) return false;
            for (u2 = t3[0], s2 = void 0, i3 = 1; i3 < e3 && (s2 = t3[i3], u2.row === s2.row && u2.rowCount === s2.rowCount); i3++) ;
            if (i3 >= e3) return n3 && (n3.inSameRow = true), true;
            for (i3 = 1; i3 < e3 && (s2 = t3[i3], u2.col === s2.col && u2.colCount === s2.colCount); i3++) ;
            if (i3 >= e3) return n3 && (n3.inSameCol = true), true;
          }
          return false;
        }
        function Bt(t3, n3, e3, o2, a2, u2, c2) {
          var l2, h2, d2, v2, m2, b2, y2, w2 = n3.row, M2 = n3.col, C2 = n3.rowCount, S2 = n3.colCount, T2 = 0 === e3 || 2 === e3 || 4 === e3 || 5 === e3;
          if (a2 && T2) for (d2 = (h2 = (l2 = t3.Ut).getSpans((0, r.Ec)(w2, M2, C2, S2))).length - 1; d2 >= 0; d2--) l2.do("removeSpan", h2[d2]);
          if (p && (1 & o2) > 0 && t3.clearFormula(w2, M2, C2, S2, (function(t4, n4) {
            return !t4.XT || !t4.XT(n4);
          })), v2 = t3.ST(), a2 && "" !== a2) t3.parent && t3.parent.options.allowAutoCreateHyperlink && 1 === C2 && 1 === S2 && (f.Common.$T.qT(A).test(a2) || f.Common.$T.qT(I).test(a2)) && t3.setHyperlink && t3.setHyperlink(w2, M2, { url: a2, tooltip: a2 }), v2 && T2 && c2 && v2.r5(c2, t3, w2, M2), (o2 & i2.CopyToOptions.value) > 0 && (y2 = t3.parent && t3.parent.options.allowUserEditFormula ? 16 : 0, t3.Vur = true, t3.setCsv(w2, M2, a2, "\r\n", "	", y2, false, s.yM.n5(c2)), delete t3.Vur);
          else {
            if (v2 && T2 && u2) v2.s5(u2, t3, w2, M2);
            else for (m2 = 0; m2 < C2; m2++) for (b2 = 0; b2 < S2; b2++) t3.setValue(w2 + m2, M2 + b2, g);
            v2 && T2 && c2 && v2.r5(c2, t3, w2, M2);
          }
        }
        function Pt(t3, n3, e3, i3, o2, a2, u2) {
          var s2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, C2, S2, T2, x2, A2 = J.WT(o2), I2 = i3.row < 0 ? n3.getRowCount() : i3.rowCount, k2 = i3.col < 0 ? n3.getColumnCount() : i3.colCount, N2 = e3.row < 0 ? t3.getRowCount() : e3.rowCount, j2 = e3.col < 0 ? t3.getColumnCount() : e3.colCount, D2 = i3.row, _2 = i3.col;
          for (i3.row < 0 && N2 < n3.getRowCount() && (D2 = 0), i3.col < 0 && j2 < n3.getColumnCount() && (_2 = 0), (f2 = (null === (s2 = t3.getSpan(e3.row, e3.col)) || void 0 === s2 ? void 0 : s2.equals(e3)) && 1 === i3.rowCount && 1 === i3.colCount) && (I2 = (l2 = t3.getSpan(e3.row, e3.col)).rowCount, k2 = l2.colCount), h2 = M(I2 / N2), d2 = M(k2 / j2), v2 = 0; v2 < h2 && h2 && d2; v2++) for (p2 = 0; p2 < d2; p2++) c.staticMembers.copyTo(t3, e3.row, e3.col, n3, D2 + N2 * v2, _2 + j2 * p2, N2, j2, A2, a2, lt(t3), m, wt(A2), u2);
          for (S2 = -33 & A2, g2 = D2 + N2 * h2, b2 = _2, y2 = I2 - N2 * h2, w2 = j2, C2 = Ct(new r.Range(e3.row, e3.col, y2, w2), t3.getSpans(e3)), T2 = function(i4) {
            C2.forEach((function(t4) {
              n3.addSpan(g2 + t4.row - e3.row, b2 + j2 * i4 + t4.col - e3.col, t4.rowCount, t4.colCount);
            })), c.staticMembers.copyTo(t3, e3.row < 0 ? 0 : e3.row, e3.col < 0 ? 0 : e3.col, n3, g2, b2 + j2 * i4, y2, w2, S2, a2, lt(t3), m, wt(S2), u2);
          }, p2 = 0; p2 < d2 && y2 && w2; p2++) T2(p2);
          for (g2 = D2, b2 = _2 + j2 * d2, y2 = N2, w2 = k2 - j2 * d2, C2 = Ct(new r.Range(e3.row, e3.col, y2, w2), t3.getSpans(e3)), x2 = function(i4) {
            C2.forEach((function(t4) {
              n3.addSpan(g2 + N2 * i4 + t4.row - e3.row, b2 + t4.col - e3.col, t4.rowCount, t4.colCount);
            })), c.staticMembers.copyTo(t3, e3.row < 0 ? 0 : e3.row, e3.col < 0 ? 0 : e3.col, n3, g2 + N2 * i4, b2, y2, w2, S2, a2, lt(t3), m, wt(S2), u2);
          }, v2 = 0; v2 < h2 && y2 && w2; v2++) x2(v2);
          g2 = D2 + N2 * h2, b2 = _2 + j2 * d2, y2 = I2 - N2 * h2, w2 = k2 - j2 * d2, C2 = Ct(new r.Range(e3.row, e3.col, y2, w2), t3.getSpans(e3)), y2 && w2 && (C2.forEach((function(t4) {
            n3.addSpan(g2 + t4.row - e3.row, b2 + t4.col - e3.col, t4.rowCount, t4.colCount);
          })), c.staticMembers.copyTo(t3, e3.row < 0 ? 0 : e3.row, e3.col < 0 ? 0 : e3.col, n3, g2, b2, y2, w2, S2, a2, lt(t3), m, wt(S2), u2));
        }
        function Gt(t3, n3, e3, r2, o2, a2, u2, s2, f2, l2) {
          var h2, d2, v2, p2, g2, b2, w2, C2, S2, T2, A2, I2, k2 = r2.row < 0 ? e3.getRowCount() : r2.rowCount, N2 = r2.col < 0 ? e3.getColumnCount() : r2.colCount, j2 = n3.row < 0 ? t3.getRowCount() : n3.rowCount, D2 = n3.col < 0 ? t3.getColumnCount() : n3.colCount, _2 = e3.o5();
          if (_2 && (k2 = (k2 -= e3.ix(r2.row, y(k2, j2), true)) < 1 ? 1 : k2, N2 = (N2 -= e3.ix(r2.col, y(N2, D2))) < 1 ? 1 : N2), !(k2 > j2 || N2 > D2) || (null == s2 ? void 0 : s2.operationOptions) === i2.PasteOperationOptions.transform) return c.staticMembers.copyTo(t3, n3.row, n3.col, e3, r2.row, r2.col, n3.rowCount, n3.colCount, o2, a2, lt(t3), u2, wt(o2), s2, m, true, f2, l2);
          for (h2 = r2.row, d2 = r2.col, r2.row < 0 && j2 < e3.getRowCount() && (h2 = 0), r2.col < 0 && D2 < e3.getColumnCount() && (d2 = 0), k2 % j2 === 0 && 1 === N2 ? N2 = D2 : 1 === k2 && N2 % D2 === 0 ? k2 = j2 : k2 % j2 === 0 && N2 % D2 === 0 || (k2 = j2, N2 = D2), v2 = M(k2 / j2), p2 = M(N2 / D2), g2 = j2, b2 = D2, w2 = void 0, C2 = void 0, S2 = void 0, T2 = void 0, A2 = 0; A2 < v2; A2++) {
            for (w2 = x(S2) ? h2 < 0 ? -1 : h2 + A2 * j2 : S2, I2 = 0; I2 < p2; I2++) C2 = x(T2) ? d2 < 0 ? -1 : d2 + I2 * D2 : T2, j2 = h2 < 0 ? -1 : g2, D2 = d2 < 0 ? -1 : b2, _2 && (j2 = h2 < 0 ? -1 : j2 + e3.lT(w2, g2, true), D2 = d2 < 0 ? -1 : D2 + e3.lT(C2, b2)), c.staticMembers.copyTo(t3, n3.row, n3.col, e3, w2, C2, g2, b2, o2, a2, lt(t3), u2, wt(o2), s2, m, true), T2 = C2 + (D2 < 0 ? 0 : D2);
            S2 = w2 + (j2 < 0 ? 0 : j2), T2 = null;
          }
        }
        function Ut(t3, n3, e3, r2, o2) {
          var a2, u2, s2 = o2.isCutting, f2 = o2.clipboardPasteOptions, l2 = o2.ignoreFilteredOutRow, h2 = o2.ignorePasteSkipInvisibleRange, d2 = o2.pasteSpecialOptions;
          if (!t3 || e3.name() !== t3.name() || !e3.parent || t3.NMi || b(e3.parent.sheets, t3) || e3.parent === t3.parent) {
            a2 = J.WT(f2), St(t3), St(e3);
            try {
              if (t3 && n3) {
                if (2 & a2 && s2 && p && t3.KT(n3.row, n3.col, n3.rowCount, n3.colCount || e3.KT(r2.row, r2.col, r2.rowCount, r2.colCount))) throw T().Exp_ChangePartOfArray;
                if (u2 = f2 === i2.ClipboardPasteOptions.formatting, s2) c.staticMembers.moveTo(t3, n3.row, n3.col, e3, r2.row, r2.col, n3.rowCount, n3.colCount, a2, t3.JT, h2), t3.YT();
                else {
                  if (!u2) return Gt(t3, n3, e3, r2, a2, l2, h2, d2, o2.command, o2.shiftOrExpandRange);
                  Pt(t3, e3, n3, r2, f2, l2, d2);
                }
              } else Bt(e3, r2, f2, a2, o2.clipboardText, o2.clipboardImage, o2.clipboardHtml);
            } finally {
              Tt(t3, false), Tt(e3, false);
            }
          } else t3.YT();
        }
        function Ht(t3) {
          return !!(null == t3 ? void 0 : t3.collaboration);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TransformCells = n2.OpenPasteSpecialDialogActive = n2.ClipboardPasteTransformUndoAction = n2.ClipboardPasteRangeTransformUndoAction = n2.ClipboardPasteUndoAction = n2.ClipboardPasteRangeUndoAction = void 0, i2 = e2("./dist/core/core.enum.js"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/worksheet/worksheet-actions.js"), a = e2("./dist/core/worksheet/worksheet.js"), u = e2("./dist/core/util/domUtil.js"), s = e2("./dist/core/worksheet/clipboardhelper.js"), c = e2("./dist/core/worksheet/worksheet-static.js"), f = e2("Common"), l = e2("./dist/core/core.ns.js"), h = e2("CalcEngine"), d = e2("./dist/core/worksheet/actionbase.js"), v = e2("./dist/core/worksheet/paste-special-dialog.js"), p = !!h, g = null, m = void 0, b = f.Common.Uf.OS, y = Math.max, w = Math.min, M = Math.floor, C = r.mt.Tt, S = new f.Common.ResourceManager(l.SR, "Sheets"), T = S.getResource.bind(S), x = f.Common.lt.ht, A = "^(((ht|f)tp(s?)):\\/\\/(?:www.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|((ht|f)tp(s?)):\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})$", I = "^(mailto:\\/\\/)?([A-Za-z0-9_\\-\\.\\!\\#$%&'*\\+/=?^`{|}~])+\\@([A-Za-z0-9\\-])+\\.([A-Za-z0-9\\-]){2,63}(\\?subject=.+)?$", k = function(t3, n3) {
          return n3 ? (0, r.Ec)(t3.row, t3.col, t3.colCount, t3.rowCount) : t3;
        }, N = function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2, l2 = new r.Range(n3, e3, i3, o2), h2 = 1 === (null === (f2 = null === (c2 = t3.getParent()) || void 0 === c2 ? void 0 : c2.options) || void 0 === f2 ? void 0 : f2.referenceStyle), d2 = (0, r.rangeToFormula)(l2, u2, s2, 15, h2);
          return (0, r.formulaToExpression)(t3, a2 + "(" + d2 + ")", u2, s2, h2);
        }, j = function(t3) {
          return Array.isArray(t3) && t3.rowCount && t3.colCount;
        }, D = function(t3, n3, e3, i3) {
          return at(void 0, void 0, void 0, (function() {
            return ut(this, (function(o2) {
              return [2, (0, r.evaluateExpressionAsync)(t3, n3, e3, i3, true)];
            }));
          }));
        }, _ = function(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2) {
          return at(void 0, void 0, void 0, (function() {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2;
            return ut(this, (function(_2) {
              switch (_2.label) {
                case 0:
                  for (l2 = 0, h2 = 0, d2 = n3 < 0 ? 0 : n3, v2 = e3 < 0 ? 0 : e3, p2 = (null == u2 ? void 0 : u2.row) < 0 ? 0 : null == u2 ? void 0 : u2.row, g2 = (null == u2 ? void 0 : u2.col) < 0 ? 0 : null == u2 ? void 0 : u2.col, m2 = [], b2 = [], y2 = null, w2 = 0; w2 < i3; w2++) for (M2 = 0; M2 < o2; M2++) y2 || (y2 = N(t3, d2 + w2, v2 + M2, 1, 1, a2, p2 + w2, g2 + M2)), m2.push(D(t3, y2, p2 + w2, g2 + M2)), b2.push({ row: w2, col: M2 });
                  return [4, Promise.all(m2)];
                case 1:
                  if (C2 = _2.sent(), S2 = Array.from({ length: i3 }, (function() {
                    return Array.from({ length: o2 }, (function() {
                    }));
                  })), b2.forEach((function(t4, n4) {
                    var e4 = C2[n4];
                    S2[t4.row][t4.col] = e4, l2 = Math.max(l2, j(e4) ? e4.length : 1), h2 = Math.max(h2, j(e4) ? e4[0].length : 1);
                  })), I2 = p2 + (x2 = s2 ? o2 * h2 : i3 * l2), k2 = g2 + (A2 = s2 ? i3 * l2 : o2 * h2), (null == f2 ? void 0 : f2.o5()) && (I2 += f2.lT(p2, x2, true), k2 += f2.lT(g2, A2)), !c2 && u2 && !(f2 || t3).HT(p2, g2, I2 - p2, k2 - g2)) throw new Error(T().Exp_InvalidCopyPasteSize);
                  return [2, { ranges: S2, maxRowCount: l2, maxColCount: h2, selection: new r.Range(p2, g2, I2 - p2, k2 - g2) }];
              }
            }));
          }));
        }, O = function(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2) {
          return at(void 0, void 0, void 0, (function() {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
            return ut(this, (function(x2) {
              switch (x2.label) {
                case 0:
                  for (l2 = null, h2 = [], d2 = e3 < 0 ? 0 : e3, v2 = n3 < 0 ? 0 : n3, p2 = (null == u2 ? void 0 : u2.row) < 0 ? 0 : null == u2 ? void 0 : u2.row, g2 = (null == u2 ? void 0 : u2.col) < 0 ? 0 : null == u2 ? void 0 : u2.col, m2 = 0, b2 = 0, y2 = [], w2 = 0; w2 < o2; w2++) l2 || (l2 = N(t3, v2, d2 + w2, i3, 1, a2, p2, g2 + w2)), y2.push(D(t3, l2, p2, g2 + w2));
                  return [4, Promise.all(y2)];
                case 1:
                  if ((M2 = x2.sent()).forEach((function(t4, n4) {
                    h2[n4] = t4, m2 = Math.max(m2, (null == t4 ? void 0 : t4.rowCount) ? t4.rowCount : 1), b2 += (null == t4 ? void 0 : t4.colCount) ? t4.colCount : 1;
                  })), C2 = p2 + (s2 ? b2 : m2), S2 = g2 + (s2 ? m2 : b2), (null == f2 ? void 0 : f2.o5()) && (C2 += f2.lT(p2, s2 ? b2 : m2, true), S2 += f2.lT(g2, s2 ? m2 : b2)), !c2 && u2 && !(f2 || t3).HT(u2.row, u2.col, C2 - p2, S2 - g2)) throw new Error(T().Exp_InvalidCopyPasteSize);
                  return [2, { ranges: h2, selection: new r.Range(p2, g2, C2 - p2, S2 - g2) }];
              }
            }));
          }));
        }, E = function(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2) {
          return at(void 0, void 0, void 0, (function() {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
            return ut(this, (function(x2) {
              switch (x2.label) {
                case 0:
                  for (l2 = null, h2 = [], d2 = e3 < 0 ? 0 : e3, v2 = n3 < 0 ? 0 : n3, p2 = (null == u2 ? void 0 : u2.row) < 0 ? 0 : null == u2 ? void 0 : u2.row, g2 = (null == u2 ? void 0 : u2.col) < 0 ? 0 : null == u2 ? void 0 : u2.col, m2 = 0, b2 = 0, y2 = [], w2 = 0; w2 < i3; w2++) l2 || (l2 = N(t3, v2 + w2, d2, 1, o2, a2, p2 + w2, g2)), y2.push(D(t3, l2, p2 + w2, g2));
                  return [4, Promise.all(y2)];
                case 1:
                  if ((M2 = x2.sent()).forEach((function(t4, n4) {
                    h2[n4] = t4, m2 += (null == t4 ? void 0 : t4.rowCount) ? t4.rowCount : 1, b2 = Math.max(b2, (null == t4 ? void 0 : t4.colCount) ? t4.colCount : 1);
                  })), C2 = p2 + (s2 ? b2 : m2), S2 = g2 + (s2 ? m2 : b2), (null == f2 ? void 0 : f2.o5()) && (C2 += f2.lT(p2, s2 ? b2 : m2, true), S2 += f2.lT(g2, s2 ? m2 : b2)), !c2 && u2 && !(f2 || t3).HT(u2.row, u2.col, C2 - p2, S2 - g2)) throw new Error(T().Exp_InvalidCopyPasteSize);
                  return [2, { ranges: h2, selection: new r.Range(p2, g2, C2 - p2, S2 - g2) }];
              }
            }));
          }));
        }, R = function(t3, n3, e3, i3, o2, a2, u2) {
          return at(void 0, void 0, void 0, (function() {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
            return ut(this, (function(y2) {
              switch (y2.label) {
                case 0:
                  return s2 = (null == i3 ? void 0 : i3.row) < 0 ? 0 : null == i3 ? void 0 : i3.row, c2 = (null == i3 ? void 0 : i3.col) < 0 ? 0 : null == i3 ? void 0 : i3.col, f2 = (0, r.rangeToFormula)(n3, s2, c2, 15, 1 === (null === (b2 = null === (m2 = t3.getParent()) || void 0 === m2 ? void 0 : m2.options) || void 0 === b2 ? void 0 : b2.referenceStyle)), [4, (0, r.evaluateFormulaAsync)(t3, e3 + "(" + f2 + ")", s2, c2)];
                case 1:
                  if (l2 = y2.sent(), h2 = !(null == l2 ? void 0 : l2.rowCount) && !(null == l2 ? void 0 : l2.colCount), d2 = h2 ? 1 : o2 ? l2.colCount : l2.rowCount, v2 = h2 ? 1 : o2 ? l2.rowCount : l2.colCount, p2 = s2 + d2, g2 = c2 + v2, (null == u2 ? void 0 : u2.o5()) && (p2 += u2.lT(s2, d2, true), g2 += u2.lT(c2, v2)), !a2 && i3 && !(u2 || t3).HT(s2, c2, p2 - s2, g2 - c2)) throw new Error(T().Exp_InvalidCopyPasteSize);
                  return [2, { ranges: l2, selection: new r.Range(s2, c2, p2 - s2, g2 - c2) }];
              }
            }));
          }));
        }, L = function(t3, n3, e3, o2, a2, u2, s2, c2) {
          return at(void 0, void 0, void 0, (function() {
            var f2, l2, h2, d2, v2, p2;
            return ut(this, (function(g2) {
              switch (g2.label) {
                case 0:
                  switch (f2 = { ranges: [], selection: new r.Range(0, 0, 1, 1) }, l2 = n3.row, h2 = n3.col, d2 = n3.rowCount, v2 = n3.colCount, p2 = e3) {
                    case i2.TransformScope.byCell:
                      return [3, 1];
                    case i2.TransformScope.byColumn:
                      return [3, 3];
                    case i2.TransformScope.byRow:
                      return [3, 5];
                    case i2.TransformScope.byRange:
                      return [3, 7];
                  }
                  return [3, 9];
                case 1:
                  return [4, _(t3, l2, h2, d2, v2, o2, a2, u2, s2, c2)];
                case 2:
                case 4:
                case 6:
                case 8:
                  return f2 = g2.sent(), [3, 9];
                case 3:
                  return [4, O(t3, l2, h2, d2, v2, o2, a2, u2, s2, c2)];
                case 5:
                  return [4, E(t3, l2, h2, d2, v2, o2, a2, u2, s2, c2)];
                case 7:
                  return [4, R(t3, n3, o2, a2, u2, s2, c2)];
                case 9:
                  return [2, f2];
              }
            }));
          }));
        }, F = function(t3) {
          return null == t3 || "" === t3;
        }, B = function(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          (null === (a2 = null === (o2 = t3.parent) || void 0 === o2 ? void 0 : o2.options) || void 0 === a2 ? void 0 : a2.allowExtendPasteRange) && (u2 = t3.getRowCount(), s2 = t3.getColumnCount(), u2 < n3 + i3 && t3.addRows(u2, n3 + i3 - u2), s2 < e3 + r2 && t3.addColumns(s2, e3 + r2 - s2));
        }, P = function(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2;
          if (a2) for (u2 = n3, s2 = e3, c2 = 0; c2 < r2; c2++) {
            for (u2 += t3.lT(u2, 1, true), f2 = 0; f2 < o2; f2++) s2 += t3.lT(s2, 1), t3.clear(u2, s2, 1, 1, i2.SheetArea.viewport, i2.StorageType.data), s2 += 1;
            u2 += 1, s2 = e3;
          }
          else t3.clear(n3, e3, r2, o2, i2.SheetArea.viewport, i2.StorageType.data);
        }, G = function(t3, n3, e3, i3, r2) {
          var o2, a2, u2;
          return void 0 === i3 && (i3 = 1), void 0 === r2 && (r2 = 1), { row: n3 + i3 + (a2 = (o2 = t3.o5()) ? t3.lT(n3, i3, true) : 0) - 1, col: e3 + r2 + (u2 = o2 ? t3.lT(e3, r2) : 0) - 1 };
        }, U = function(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = t3.o5();
          if (!j(n3)) return f2 = (c2 = G(t3, e3, i3)).row, l2 = c2.col, u2 && B(t3, e3, i3, f2 - e3 + 1, l2 - i3 + 1), o2 || P(t3, e3, i3, 1, 1, C2), o2 && F(n3) ? F(n3) && (null == a2 || a2.set(f2, l2, true)) : t3.setValue(f2, l2, n3), { maxRow: f2 + 1, maxCol: l2 + 1 };
          for (h2 = r2 ? n3[0].length : n3.length, d2 = r2 ? n3.length : n3[0].length, v2 = C2 ? t3.lT(e3, h2, true) : 0, p2 = C2 ? t3.lT(i3, d2) : 0, u2 && B(t3, e3, i3, h2 + v2, d2 + p2), o2 || P(t3, e3, i3, h2, d2, C2), g2 = 0; g2 < n3.length; g2++) for (m2 = 0; m2 < n3[0].length; m2++) y2 = (b2 = G(t3, e3, i3, r2 ? m2 + 1 : g2 + 1, r2 ? g2 + 1 : m2 + 1)).row, w2 = b2.col, o2 && F(n3[g2][m2]) ? null == a2 || a2.set(y2, w2, true) : (M2 = (null === (s2 = n3[g2][m2]) || void 0 === s2 ? void 0 : s2.array) ? n3[g2][m2].array[0][0] : n3[g2][m2], t3.setValue(y2, w2, M2));
          return { maxRow: e3 + h2 + v2, maxCol: i3 + d2 + p2 };
        }, H = function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2 = n3.row, l2 = n3.col, h2 = n3.rowCount, d2 = n3.colCount, v2 = f2 < 0 ? 0 : f2, p2 = l2 < 0 ? 0 : l2, g2 = e3.ranges, m2 = e3.maxRowCount, b2 = e3.maxColCount, y2 = i3 ? b2 * h2 : m2 * h2, w2 = i3 ? m2 * d2 : b2 * d2, M2 = t3.o5(), C2 = M2 ? t3.lT(v2, y2, true) : 0, S2 = M2 ? t3.lT(p2, w2) : 0;
          return u2 && B(t3, v2, p2, y2 + C2, w2 + S2), o2 || P(t3, v2, p2, u2 ? y2 : h2, u2 ? w2 : d2, M2), c2 = {}, g2.forEach((function(n4, e4) {
            n4.forEach((function(n5, s3) {
              var f3, l3, h3, d3, g3, y3, w3, C3 = v2 + (i3 ? s3 * b2 : e4 * m2), S3 = p2 + (i3 ? e4 * m2 : s3 * b2), T2 = 0, x2 = 0;
              M2 && (C3 += T2 = i3 ? t3.lT(v2, s3 * b2 + 1, true) : t3.lT(v2, e4 * m2 + 1, true), S3 += x2 = i3 ? t3.lT(p2, e4 * m2 + 1) : t3.lT(p2, s3 * b2 + 1)), l3 = (f3 = U(t3, n5, C3, S3, i3, o2, a2, u2)).maxRow, h3 = f3.maxCol, d3 = v2 + (i3 ? s3 + t3.lT(v2, s3 + 1, true) : e4 + t3.lT(v2, e4 + 1, true)), g3 = p2 + (i3 ? e4 + t3.lT(p2, e4 + 1) : s3 + t3.lT(p2, s3 + 1)), y3 = 0, w3 = 0, o2 ? (y3 = l3 - C3, w3 = h3 - S3) : (y3 = i3 ? b2 : m2, w3 = i3 ? m2 : b2, M2 && (y3 += t3.lT(C3, y3, true), w3 += t3.lT(S3, w3))), c2["".concat(d3, "-").concat(g3)] = new r.Range(C3, S3, y3, w3);
            }));
          })), null == s2 || s2(c2), t3.setSelection(v2, p2, y2 + C2, w2 + S2), new r.Range(v2, p2, y2 + C2, w2 + S2);
        }, V = function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = n3.row, y2 = n3.col, w2 = n3.rowCount, M2 = n3.colCount, C2 = t3.o5();
          return o2 || u2 || P(t3, b2, y2, w2, M2, C2), l2 = c2 = b2 < 0 ? 0 : b2, h2 = f2 = y2 < 0 ? 0 : y2, d2 = c2, v2 = f2, p2 = {}, e3.forEach((function(n4, e4) {
            var s3, g3, m3, b3, w3, M3, S2 = i3 ? "".concat(c2 + e4 + t3.lT(c2, e4 + 1, true), "-").concat(f2) : "".concat(c2, "-").concat(f2 + e4 + t3.lT(f2, e4 + 1));
            i3 ? (s3 = U(t3, n4, l2, y2, i3, o2, a2, u2).maxCol, v2 = Math.max(v2, s3), g3 = j(n4) ? i3 ? n4[0].length : n4.length : 1, m3 = C2 ? t3.lT(l2, g3) : 0, p2[S2] = new r.Range(l2 + m3, f2, g3, (o2 ? s3 : v2) - f2), l2 = l2 + g3 + m3) : (b3 = U(t3, n4, c2, h2, i3, o2, a2, u2).maxRow, d2 = Math.max(d2, b3), w3 = j(n4) ? i3 ? n4.length : n4[0].length : 1, M3 = C2 ? t3.lT(h2, w3) : 0, p2[S2] = new r.Range(c2, h2 + M3, (o2 ? b3 : d2) - c2, w3), h2 = h2 + w3 + M3);
          })), null == s2 || s2(p2), g2 = i3 ? l2 - c2 : d2 - c2, m2 = i3 ? v2 - f2 : h2 - f2, t3.setSelection(c2, f2, g2, m2), new r.Range(c2, f2, g2, m2);
        }, z = function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = n3.row, y2 = n3.col, w2 = n3.rowCount, M2 = n3.colCount, C2 = t3.o5();
          return o2 || u2 || P(t3, b2, y2, w2, M2, C2), l2 = c2 = b2 < 0 ? 0 : b2, h2 = f2 = y2 < 0 ? 0 : y2, d2 = c2, v2 = f2, p2 = {}, e3.forEach((function(n4, e4) {
            var s3, g3, m3, b3, y3, w3, M3 = i3 ? "".concat(c2, "-").concat(f2 + e4 + t3.lT(f2, e4 + 1)) : "".concat(c2 + e4 + t3.lT(c2, e4 + 1), "-").concat(f2);
            i3 ? (s3 = U(t3, n4, l2, h2, i3, o2, a2, u2).maxRow, d2 = Math.max(d2, s3), g3 = j(n4) ? i3 ? n4.length : n4[0].length : 1, m3 = C2 ? t3.lT(h2, g3) : 0, p2[M3] = new r.Range(l2, h2 + m3, (o2 ? s3 : d2) - l2, g3), h2 = h2 + g3 + m3) : (b3 = U(t3, n4, l2, h2, i3, o2, a2, u2).maxCol, v2 = Math.max(v2, b3), y3 = j(n4) ? i3 ? n4[0].length : n4.length : 1, w3 = C2 ? t3.lT(l2, y3) : 0, p2[M3] = new r.Range(l2 + w3, h2, y3, (o2 ? b3 : v2) - h2), l2 = l2 + y3 + w3);
          })), null == s2 || s2(p2), g2 = i3 ? d2 - c2 : l2 - c2, m2 = i3 ? h2 - f2 : v2 - f2, t3.setSelection(c2, f2, g2, m2), new r.Range(c2, f2, g2, m2);
        }, Y = function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2 = n3.row, v2 = n3.col, p2 = n3.rowCount, g2 = n3.colCount, m2 = d2 < 0 ? 0 : d2, b2 = v2 < 0 ? 0 : v2, y2 = t3.o5();
          return o2 || u2 || P(t3, m2, b2, p2, g2, y2), l2 = (f2 = U(t3, e3, m2, b2, i3, o2, a2, u2)).maxRow, h2 = f2.maxCol, null == s2 || s2(j(e3) ? void 0 : ((c2 = {})["".concat(m2 + t3.lT(m2, 1, true), "-").concat(b2 + t3.lT(b2, 1))] = new r.Range(m2, b2, l2 - m2, h2 - b2), c2)), t3.setSelection(m2, b2, l2 - m2, h2 - b2), new r.Range(m2, b2, l2 - m2, h2 - b2);
        }, Z = function(t3, n3, e3, r2, o2, a2, u2, s2, c2) {
          try {
            switch (e3) {
              case i2.TransformScope.byCell:
                return H(t3, n3, r2, o2, a2, u2, s2, c2);
              case i2.TransformScope.byColumn:
                return V(t3, n3, r2.ranges, o2, a2, u2, s2, c2);
              case i2.TransformScope.byRow:
                return z(t3, n3, r2.ranges, o2, a2, u2, s2, c2);
              case i2.TransformScope.byRange:
                return Y(t3, n3, r2.ranges, o2, a2, u2, s2, c2);
            }
          } catch (t4) {
          }
        }, W = function(t3) {
          var n3, e3;
          if (t3) {
            for (n3 = 0; n3 < t3.length; n3++) if (!(e3 = t3[n3]).canExecute()) return false;
            return true;
          }
          return false;
        }, Q = function(t3) {
          var n3, e3;
          if (t3) {
            for (n3 = 0; n3 < t3.length; n3++) if (!(e3 = t3[n3]).canUndo()) return false;
            return true;
          }
          return false;
        }, K = function(t3) {
          var n3, e3, i3, r2, a2, u2 = t3, s2 = u2.tT.cachedActions;
          if (u2.canUndo() && s2) {
            n3 = true, e3 = u2.Mf.parent.jg(), u2.X5(e3, true);
            try {
              for ((u2.tT.hasTableSheet || Ht(u2.Mf.parent)) && (i3 = u2.Mf.parent.i4(), o.Commands.NI(i3, u2.tT)), r2 = s2.length - 1; r2 >= 0; r2--) a2 = s2[r2], n3 = n3 && a2.undo();
            } finally {
              u2.q5(e3, true);
            }
            return n3;
          }
          return false;
        }, J = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return rt(n3, t3), n3.WT = function(t4) {
            var n4 = 0, e3 = [i2.ClipboardPasteOptions.all, i2.ClipboardPasteOptions.usingSourceTheme, i2.ClipboardPasteOptions.noBorder, i2.ClipboardPasteOptions.allAndColumnWidth].includes(t4);
            return (e3 || 1 === t4 || t4 === i2.ClipboardPasteOptions.valuesAndNumberFormatting || t4 === i2.ClipboardPasteOptions.valuesAndSourceFormatting) && (n4 |= 1), (e3 || 2 === t4 || t4 === i2.ClipboardPasteOptions.valuesAndSourceFormatting) && (n4 |= 64, n4 |= 32, n4 |= 512), (e3 || 3 === t4 || t4 === i2.ClipboardPasteOptions.formulasAndNumberFormatting) && (n4 |= 2), (e3 || 4 === t4) && (n4 |= 1, n4 |= 64, n4 |= 32, n4 |= 512), (e3 || 5 === t4) && (n4 |= 64, n4 |= 32, n4 |= 2, n4 |= 512), e3 && (n4 |= 32, n4 |= 16, n4 |= 256, n4 |= 4, n4 |= 8, n4 |= 512, n4 |= 128, n4 |= 1024, n4 |= 2048, n4 |= 4096, n4 |= 8192), t4 === i2.ClipboardPasteOptions.comments && (n4 |= i2.CopyToOptions.comment), n4;
          }, n3.prototype.canExecute = function() {
            var t4 = this, n4 = t4.tT, e3 = n4.pasteExtent, r2 = e3.targetRange, o2 = e3.sourceRange, a2 = n4.toSheet.PT(r2.row, r2.col, r2.rowCount, r2.colCount, { sheetArea: i2.SheetArea.viewport }) || xt(n4.toSheet, t4.tT.pasteOption), u2 = !e3.isCutting || n4.fromSheet.PT(o2.row, o2.col, o2.rowCount, o2.colCount, { sheetArea: i2.SheetArea.viewport }) || xt(n4.fromSheet, t4.tT.pasteOption);
            return a2 && u2;
          }, n3.prototype.XI = function() {
            var t4 = this, e3 = t4.tT.pasteExtent, i3 = t4.tT.Kh = {}, r2 = e3.isCutting, a2 = n3.WT(t4.tT.pasteOption), u2 = e3.sourceRange, s2 = e3.targetRange, c2 = t4.tT.fromSheet, f2 = t4.tT.toSheet;
            c2 && u2 && r2 && !c2.isDirtySuspended() && (i3.qI = new o.ChangedCells(c2, u2, a2)), f2.isDirtySuspended() || (i3.$I = new o.ChangedCells(f2, s2, a2));
          }, n3.prototype.nx = function() {
            return this.tT.pasteExtent.targetRange;
          }, n3.prototype.ex = function(t4, n4, e3, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2 = false, it2 = n4.row, rt2 = n4.col, ot2 = n4.rowCount, at2 = n4.colCount, ut2 = a2 !== u2, st2 = false, ct2 = false, lt2 = false, ht2 = false, vt2 = ft(a2), wt2 = false, Mt2 = a2.o5(), Ct2 = a2.getRowCount(), St2 = a2.getColumnCount(), Tt2 = ot2, xt2 = at2, At2 = 0, It2 = 0, kt2 = 0, Nt2 = 0;
            if (Mt2 && (Tt2 -= a2.ix(it2, Tt2, true), xt2 -= a2.ix(rt2, xt2)), d2 = a2.tables && a2.tables.AB(it2, rt2, ot2, at2), v2 = t4 && (null === (s2 = u2.pivotTables) || void 0 === s2 ? void 0 : s2.$Qr(e3)), p2 = false, g2 = pt(e3, St2), b2 = gt(e3, Ct2), C2 = this._fromDragFill, S2 = this._isHeaderPaste, A2 = o2 === i2.InsertShiftCell.right, I2 = o2 === i2.InsertShiftCell.down, _2 = false, -1 === (k2 = e3.row) && (k2 = 0, _2 = true), -1 === (N2 = e3.col) && (N2 = 0), -1 === (j2 = e3.rowCount) && (j2 = Ct2), -1 === (D2 = e3.colCount) && (D2 = St2), O2 = false, -1 === rt2 && (rt2 = 0, O2 = true), -1 === it2 && (it2 = 0, O2 = true), S2) {
              if (d2.length > 1) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
              if (1 === d2.length) {
                if (y2 = d2[0]) {
                  if (w2 = y2.Tx, M2 = y2.Sx, A2) {
                    if (!ut2 && (M2 + y2.Ky !== j2 && (rt2 !== y2.iw || j2 < y2.Ky + M2) && !(j2 <= y2.Ky || !t4 && rt2 === y2.iw && Tt2 % j2 === 0) || !C2 && t4 && dt(a2, e3))) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                    rt2 === y2.iw && Tt2 % j2 === 0 || (p2 = true), rt2 === y2.iw && (y2 = m);
                  } else if (I2) {
                    if (!ut2 && g2 && k2 >= it2 && D2 > y2.iw && D2 < y2.iw + y2.Tx && (t4 || xt2 % D2 !== 0)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                    D2 === w2 && 0 === y2.iw && it2 !== y2.Ky && (p2 = true), it2 === y2.Ky && (y2 = m);
                  }
                }
              } else if (t4 && (!g2 || b2) && a2.tables && a2.tables.Uue(e3)) return a2.jT(1, T().Exp_InsertCopiedCutCellsAffectTable), { returnFunc: true };
            }
            if (S2 && y2 && (E2 = y2.name()), p2 || t4 || y2 && !g2 || !(A2 && Tt2 % j2 === 0 || I2 && xt2 % D2 === 0)) {
              if (A2) {
                if (z2 = j2, Y2 = void 0, c2 = it2, l2 = j2, Z2 = !y2 || !S2 || C2 || !gt(n4, Ct2), W2 = y2 && j2 <= y2.Ky, R2 = Z2 || W2, Mt2 && (z2 += Y2 = a2.lT(it2, z2), l2 += Y2), Q2 = false, !ut2) {
                  if (J2 = (K2 = k2) + j2, R2 && it2 !== K2 && (0 !== k2 || -1 !== it2 || !_2) && e3.intersect(it2, rt2, z2, a2.getColumnCount() - rt2)) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                  if (!y2 && S2 && yt(e3, n4, it2, rt2, o2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                  if (rt2 > N2 && rt2 <= N2 + D2 - 1 && it2 > K2 && it2 <= J2 - 1) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                  if (_t(a2, it2, rt2, z2, a2.getColumnCount() - rt2, E2, v2) || !R2 && y2 && N2 > rt2 && K2 >= y2.Ky && K2 < y2.Ky + M2 && J2 > y2.Ky + M2) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                  if (!C2 && t4 && N2 < rt2 && !mt(a2, e3) && bt(a2, k2, N2 + D2, j2, rt2 - N2 - D2 + (y2 ? y2.Tx - (rt2 - y2.iw) : 0))) return a2.jT(1, T().Exp_InsertCopiedCutCellsAffectTable), { returnFunc: true };
                  if (!Z2 && y2) if (W2) B2 = j2;
                  else {
                    if (0 !== y2.Ky && rt2 !== y2.iw) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                    rt2 === y2.iw && (Q2 = true), N2 > rt2 && K2 >= y2.Ky && J2 <= y2.Ky + M2 && j2 === y2.Sx && (F2 = D2), B2 = Q2 ? j2 : y2.Sx;
                  }
                }
                if (ut2 || (it2 !== k2 && -1 !== it2 || !(rt2 <= N2) || y2 && !Q2 && !W2) && x(F2) || (Mt2 ? (e3.col += e3.colCount, e3.col = a2.O5(e3.col - 1), It2 = a2.lT(e3.col, e3.colCount), e3.colCount += It2) : e3.col = e3.col + (x(F2) ? e3.colCount : F2), st2 = true), f2 = a2.getColumnCount() - e3.colCount, h2 = e3.colCount, Mt2 && (Nt2 = a2.lT(rt2, e3.colCount), f2 = St2 - (h2 = (X2 = e3.colCount + Nt2) + a2.ox(St2 - 1, X2)), st2 && (e3.col += Nt2)), (wt2 = Rt(a2, c2, f2, l2, h2)) && !vt2 && (!t4 || ut2 || !S2 || -1 !== e3.row)) return a2.jT(1, T().Exp_InsertCopiedCutCellsNoRange), { returnFunc: true };
              } else if (I2) {
                if (q2 = D2, $2 = void 0, f2 = rt2, h2 = D2, R2 = !y2 || !S2 || C2 || pt(n4, St2) || D2 <= y2.iw, Mt2 && (q2 += $2 = a2.lT(rt2, q2), h2 += $2), !R2 && y2 && g2 && (D2 < w2 || D2 < y2.iw + w2 || (!y2.showHeader || y2.Ky !== it2) && D2 !== y2.iw + w2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                if (!ut2) {
                  if (y2 && g2 && y2.iw < q2 && y2.iw + y2.Tx !== q2 && e3.intersect(it2, rt2, a2.getRowCount() - it2, q2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                  if (!y2 && S2 && yt(e3, n4, it2, rt2, o2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                  if (g2 && R2 && rt2 !== N2 && e3.intersect(it2, rt2, a2.getRowCount() - it2, q2)) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                  if (g2 && rt2 !== N2 && e3.intersect(it2, rt2, a2.getRowCount() - it2, e3.colCount)) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                  if (it2 > k2 && it2 <= k2 + j2 - 1 && rt2 > N2 && rt2 <= N2 + q2 - 1) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                  if (Et(a2, it2, rt2, a2.getRowCount() - it2, q2, E2, v2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                  if (!C2 && t4 && k2 < it2 && !mt(a2, e3) && bt(a2, k2 + j2, N2, it2 - k2 - j2 + (y2 ? y2.Sx - (it2 - y2.Ky) : 0), q2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsAffectTable), { returnFunc: true };
                  !R2 && y2 && (tt2 = j2, t4 && (!g2 && e3.intersect(y2.Ky, 0, y2.Sx, y2.endColumn() + 1) || new r.Range(y2.Ky, 0, y2.Sx, y2.endColumn() + 1).containsRange(e3)) && (tt2 = k2 + j2 - 1 - y2.endRow()), a2.getColumnCount() % q2 === 0 && (tt2 > 0 ? !g2 && k2 >= it2 ? L2 = tt2 : q2 === w2 && (P2 = w2) : t4 && tt2 < 0 && (rt2 === N2 || -1 === rt2) && it2 <= k2 && (L2 = j2)));
                }
                if (ut2 || x(L2) && (rt2 !== N2 && -1 !== rt2 || !(it2 <= k2) || y2 && !g2) || (Mt2 ? (e3.row = e3.row + e3.rowCount, e3.row = a2.j5(e3.row - 1), At2 = a2.lT(e3.row, e3.rowCount, true), e3.rowCount += At2) : e3.row = e3.row + (x(L2) ? e3.rowCount : L2), ct2 = true), c2 = Ct2 - e3.rowCount, l2 = e3.rowCount, Mt2 && (kt2 = a2.lT(it2, e3.rowCount, true), c2 = Ct2 - (l2 = (nt2 = e3.rowCount + kt2) + a2.ox(Ct2 - 1, nt2, true)), ct2 && (e3.row += kt2)), (wt2 = Rt(a2, c2, f2, l2, h2)) && !vt2 && (!t4 || ut2 || !S2 || -1 !== e3.col)) return a2.jT(1, T().Exp_InsertCopiedCutCellsNoRange), { returnFunc: true };
              }
            } else if (G2 = 0, U2 = 0, Tt2 % j2 === 0 && xt2 % D2 !== 0 ? (at2 = n4.colCount = D2, Mt2 && (at2 += G2 = a2.lT(rt2, at2), n4.colCount = at2)) : Tt2 % j2 !== 0 && xt2 % D2 === 0 && (ot2 = n4.rowCount = j2, Mt2 && (ot2 += U2 = a2.lT(it2, ot2, true), n4.rowCount = ot2)), et2 = true, H2 = { row: e3.row, col: e3.col, rowCount: e3.rowCount, colCount: e3.colCount }, A2) {
              if (V2 = false, R2 = !y2 || !S2 || C2 || !gt(n4, Ct2), !ut2) {
                if ((it2 <= e3.row && it2 + ot2 >= e3.row + e3.rowCount || O2 && -1 === e3.row) && (V2 = true), !y2 && S2 && yt(e3, n4, it2, rt2, o2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                if (rt2 > N2 && rt2 <= N2 + D2 - 1 && it2 > k2 && it2 <= k2 + j2 - 1) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                if (!V2 && e3.intersect(it2, rt2, ot2, St2 - rt2)) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                if (_t(a2, it2, rt2, ot2, St2 - rt2, E2, v2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                if (!R2 && y2 && j2 === y2.Sx) {
                  if (0 !== y2.Ky) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                  N2 > rt2 && (F2 = at2), B2 = y2.Sx;
                }
                (V2 && rt2 <= N2 && (!y2 || g2) || !x(F2)) && (Mt2 ? (e3.col += at2, e3.col = a2.O5(e3.col - 1), It2 = a2.lT(e3.col, at2), e3.colCount += It2) : e3.col += x(F2) ? at2 : F2, lt2 = true);
              }
              if (c2 = it2, l2 = ot2, f2 = St2 - at2, h2 = at2, Mt2 && (f2 = St2 - (h2 = at2 + (Nt2 = a2.ox(St2 - 1, at2)) + G2)), (wt2 = Rt(a2, c2, f2, l2, h2)) && !vt2) return lt2 && (e3.col = H2.col, e3.colCount = H2.colCount), a2.jT(1, T().Exp_InsertCopiedCutCellsNoRange), { returnFunc: true };
            } else if (I2) {
              if (V2 = false, R2 = !y2 || !S2 || C2 || pt(n4, St2), !ut2) {
                if (rt2 <= N2 && rt2 + at2 >= N2 + D2 && (V2 = true), !y2 && S2 && yt(e3, n4, it2, rt2, o2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                if (it2 > k2 && it2 <= k2 + j2 - 1 && rt2 > N2 && rt2 <= N2 + D2 - 1) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                if (!V2 && e3.intersect(it2, rt2, a2.getRowCount() - it2, at2)) return a2.jT(1, T().Exp_InsertCopiedCutCells), { returnFunc: true };
                if (Et(a2, it2, rt2, a2.getRowCount() - it2, at2, E2, v2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOnSpanTable), { returnFunc: true };
                if (it2 > k2 && it2 < k2 + j2 || pt(n4, St2) && y2 && D2 > y2.iw && y2.iw + w2 > D2 && e3.intersect(it2, rt2, a2.getRowCount() - it2, at2)) return a2.jT(1, T().Exp_InsertCopiedCutCellsOverlap), { returnFunc: true };
                !R2 && y2 && ot2 > 0 && a2.getColumnCount() % D2 === 0 && D2 === w2 && 0 === y2.iw && (P2 = w2), (!y2 || g2) && V2 && it2 <= k2 && (Mt2 ? (e3.row += ot2, e3.row = a2.j5(e3.row - 1), At2 = a2.lT(e3.row, ot2, true), e3.rowCount += At2) : e3.row += ot2, ht2 = true);
              }
              if (c2 = a2.getRowCount() - ot2, l2 = ot2, f2 = rt2, h2 = at2, Mt2 && (c2 = Ct2 - (l2 = ot2 + (kt2 = a2.ox(Ct2 - 1, ot2, true)) + U2)), (wt2 = Rt(a2, c2, f2, l2, h2)) && !vt2) return ht2 && (e3.row = H2.row, e3.rowCount = H2.rowCount), a2.jT(1, T().Exp_InsertCopiedCutCellsNoRange), { returnFunc: true };
            }
            return { changePasteDataRangeCol: st2, changePasteDataRangeRow: ct2, changePasteDataRangeCols: lt2, changePasteDataRangeRows: ht2, moveRangeHaveValue: wt2, returnFunc: false, selectRange: et2, adjustedTableRowCount: B2, adjustedTableColCount: P2, changePasteDataRangeRowInvisibleCount: At2, changePasteDataRangeColInvisibleCount: It2, invisibleRowCountInAcRange: kt2, invisibleColCountInAcRange: Nt2 };
          }, n3.prototype.fx = function(t4, n4, e3, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
            var v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2 = false, B2 = false, P2 = this._isHeaderPaste, G2 = o2.o5(), U2 = o2.getColumnCount(), H2 = -1 !== u2.col && u2.colCount !== U2, V2 = false, z2 = n4 === i2.InsertShiftCell.right, Y2 = n4 === i2.InsertShiftCell.down, Z2 = dt(o2, new r.Range(s2, c2, Y2 ? 1 : f2, z2 ? 1 : l2)), W2 = 0, Q2 = false, K2 = o2 !== e3;
            if (P2 && Z2 && (-1 === s2 && (s2 = 0), -1 === c2 && (c2 = 0)), Z2 && (z2 && c2 === Z2.iw || Y2 && s2 === Z2.Ky) && (Z2 = m), t4) {
              if (z2) if (o2.mT(s2, c2 + l2, f2, o2.getColumnCount() - c2 - l2, true)) if (v2 = Z2 && u2.rowCount > Z2.Ky && Z2.showHeader(), c2 + l2 < o2.getColumnCount()) {
                if (p2 = Z2 && c2 === Z2.iw, G2) if (g2 = f2, b2 = l2 + o2.ox(o2.getColumnCount() - 1, l2), -1 === s2) -1 === u2.row ? (o2.addColumns(c2, l2), o2.deleteColumns(o2.getColumnCount() - l2, l2)) : o2.moveTo(s2, c2, s2, c2 + l2, f2, o2.getColumnCount() - c2 - l2, i2.CopyToOptions.all, true);
                else for (y2 = s2; y2 < s2 + g2 && y2 < o2.getRowCount(); y2++) 0 !== o2.getRowHeight(y2) && o2.moveTo(y2, c2, y2, c2 + l2, 1, o2.getColumnCount() - c2 - b2, i2.CopyToOptions.all, true);
                else P2 && Z2 && !p2 && (Z2.showFooter() || v2) ? (w2 = Z2.endRow(), Z2.showFooter() && (W2 = w2), u2.rowCount > w2 + 1 && o2.moveTo(w2 + 1, c2, w2 + 1, c2 + u2.colCount, u2.rowCount - w2 - 1, o2.getColumnCount() - c2 - u2.colCount, i2.CopyToOptions.all, true)) : -1 === s2 && -1 === u2.row ? (o2.addColumns(c2, l2), o2.deleteColumns(o2.getColumnCount() - l2, l2)) : o2.moveTo(s2, c2, s2, c2 + l2, f2, o2.getColumnCount() - c2 - l2, i2.CopyToOptions.all, true);
                At(o2, s2, c2, s2, c2 + l2), (C2 = (M2 = o2.rowFilter()) && M2.range) && -1 === s2 && C2.colCount > 1 && c2 > C2.col && c2 <= C2.col + C2.colCount - 1 && (C2.colCount = C2.colCount + u2.colCount), P2 && Z2 && (p2 || u2.rowCount !== Z2.Sx && !gt(u2, o2.getRowCount()) || (Z2.showFooter() || v2 ? (Z2.insertColumns(c2 - Z2.iw, u2.colCount), V2 = true) : Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx, Z2.Tx + l2))));
              } else c2 + l2 > o2.getColumnCount() && (F2 = true, B2 = true);
              else F2 = true, B2 = true;
              else if (Y2) if (o2.mT(s2 + f2, c2, o2.getRowCount() - s2 - f2, l2, true)) if (s2 + f2 < o2.getRowCount()) {
                if (S2 = 0, P2 && Z2 && (A2 = (T2 = Z2.dataRange()).col + T2.colCount, (I2 = s2 === Z2.Ky) || (S2 = f2, d2 && u2.row >= Z2.startRow() && u2.row <= Z2.endRow() && (S2 = u2.row + u2.rowCount - 1 - Z2.endRow()), S2 > 0 && (h2 = Z2.footerIndex())), !d2 && H2 && U2 % u2.colCount === 0 || !H2 && !vt(o2, { row: u2.row, col: A2, rowCount: u2.rowCount, colCount: u2.colCount - A2 }) || (V2 = true)), G2) if (k2 = l2, N2 = f2 + o2.ox(o2.getRowCount() - 1, f2, true), -1 === c2) -1 === u2.col ? (o2.addRows(s2, f2), o2.deleteRows(o2.getRowCount() - f2, f2)) : o2.moveTo(s2, c2, s2 + f2, c2, o2.getRowCount() - s2 - N2, u2.colCount, i2.CopyToOptions.all, true);
                else for (j2 = c2; j2 < c2 + k2 && j2 < o2.getColumnCount(); j2++) 0 !== o2.getColumnWidth(j2) && o2.moveTo(s2, j2, s2 + f2, j2, o2.getRowCount() - s2 - N2, 1, i2.CopyToOptions.all, true);
                else D2 = S2 > 0, x(h2) || -1 === h2 ? (D2 && Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx + S2, Z2.Tx)), -1 === c2 && -1 === u2.col ? (o2.addRows(s2, f2), o2.deleteRows(o2.getRowCount() - f2, f2)) : o2.moveTo(s2, c2, s2 + f2, c2, o2.getRowCount() - s2 - f2, l2, i2.CopyToOptions.all, true)) : (o2.moveTo(h2 + 1, c2, h2 + 1 + f2, c2, o2.getRowCount() - h2 - 1 - f2, l2, i2.CopyToOptions.all, true), D2 && Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx + S2, Z2.Tx)), (_2 = h2 + S2 - s2 - f2) > 0 && o2.moveTo(s2, c2, s2 + f2, c2, _2, l2, i2.CopyToOptions.all, true));
                At(o2, s2, c2, s2 + f2, c2);
              } else s2 + f2 > o2.getRowCount() && (F2 = true, B2 = true);
              else F2 = true, B2 = true;
            } else if (z2) if (o2.mT(s2, c2 + u2.colCount, u2.rowCount, o2.getColumnCount() - c2 - u2.colCount, true)) if (c2 + u2.colCount - (d2 && !K2 && this._isHeaderPaste && -1 === u2.row ? u2.colCount : 0) < o2.getColumnCount()) {
              if (p2 = Z2 && c2 === Z2.iw, v2 = Z2 && u2.rowCount > Z2.Ky && Z2.showHeader(), G2) if (O2 = u2.rowCount, b2 = (E2 = u2.colCount + o2.lT(c2, u2.colCount)) + o2.ox(o2.getColumnCount() - 1, E2), -1 === s2) -1 === u2.row ? (o2.addColumns(c2, u2.colCount), K2 && o2.deleteColumns(o2.getColumnCount() - u2.colCount, u2.colCount), Q2 = true) : o2.moveTo(s2, c2, s2, c2 + E2, u2.rowCount, o2.getColumnCount() - c2 - b2, i2.CopyToOptions.all, true);
              else for (y2 = s2; y2 < s2 + O2 && y2 < o2.getRowCount(); y2++) 0 !== o2.getRowHeight(y2) ? o2.moveTo(y2, c2, y2, c2 + E2, 1, o2.getColumnCount() - c2 - b2, i2.CopyToOptions.all, true) : O2++;
              else P2 && !d2 && Z2 && !p2 && (Z2.showFooter() || v2) ? (w2 = Z2.endRow(), Z2.showFooter() && (W2 = w2), u2.rowCount > w2 + 1 && o2.moveTo(w2 + 1, c2, w2 + 1, c2 + u2.colCount, u2.rowCount - w2 - 1, o2.getColumnCount() - c2 - u2.colCount, i2.CopyToOptions.all, true)) : -1 === s2 && -1 === u2.row ? (o2.addColumns(c2, u2.colCount), K2 && o2.deleteColumns(o2.getColumnCount() - u2.colCount, u2.colCount), Q2 = true) : o2.moveTo(s2, c2, s2, c2 + u2.colCount, u2.rowCount, o2.getColumnCount() - c2 - u2.colCount, i2.CopyToOptions.all, true);
              At(o2, s2, c2, s2, c2 + u2.colCount), (C2 = (M2 = o2.rowFilter()) && M2.range) && -1 === s2 && C2.colCount > 1 && c2 > C2.col && c2 <= C2.col + C2.colCount - 1 && (C2.colCount = C2.colCount + u2.colCount), P2 && Z2 && u2.rowCount > Z2.Ky && (p2 || u2.rowCount !== Z2.Sx && !gt(u2, o2.getRowCount()) || (d2 || !Z2.showFooter() && !v2 ? Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx, Z2.Tx + u2.colCount)) : (Z2.insertColumns(c2 - Z2.iw, u2.colCount), V2 = true)));
            } else c2 + u2.colCount > o2.getColumnCount() && (F2 = true, B2 = true);
            else F2 = true, B2 = true;
            else if (Y2) if (o2.mT(s2 + u2.rowCount, c2, o2.getRowCount() - s2 - u2.rowCount, u2.colCount, true)) if (s2 + u2.rowCount - (d2 && !K2 && this._isHeaderPaste && -1 === u2.col ? u2.rowCount : 0) < o2.getRowCount()) {
              if (S2 = 0, P2 && Z2 && u2.colCount > Z2.iw && (A2 = (T2 = Z2.dataRange()).col + T2.colCount, (I2 = s2 === Z2.Ky) || (S2 = u2.rowCount, d2 && (!H2 && u2.intersect(Z2.Ky, 0, Z2.Sx, Z2.endColumn() + 1) || new r.Range(Z2.Ky, 0, Z2.Sx, Z2.endColumn() + 1).containsRange(u2)) && (S2 = u2.row + u2.rowCount - 1 - Z2.endRow()), S2 > 0 && (h2 = Z2.footerIndex())), !d2 && H2 && U2 % u2.colCount === 0 || !H2 && !vt(o2, { row: u2.row, col: A2, rowCount: u2.rowCount, colCount: u2.colCount - A2 }) || (V2 = true)), G2) if (R2 = u2.colCount, N2 = (L2 = u2.rowCount + o2.lT(s2, u2.rowCount, true)) + o2.ox(o2.getRowCount() - 1, L2, true), -1 === c2) -1 === u2.col ? (o2.addRows(s2, u2.rowCount), K2 && o2.deleteRows(o2.getRowCount() - u2.rowCount, u2.rowCount), Q2 = true) : o2.moveTo(s2, c2, s2 + L2, c2, o2.getRowCount() - s2 - N2, u2.colCount, i2.CopyToOptions.all, true);
              else for (j2 = c2; j2 < c2 + R2 && j2 < o2.getColumnCount(); j2++) 0 !== o2.getColumnWidth(j2) ? o2.moveTo(s2, j2, s2 + L2, j2, o2.getRowCount() - s2 - N2, 1, i2.CopyToOptions.all, true) : R2++;
              else D2 = S2 > 0, x(h2) || -1 === h2 ? (D2 && Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx + S2, Z2.Tx)), -1 === c2 && -1 === u2.col ? (o2.addRows(s2, u2.rowCount), K2 && o2.deleteRows(o2.getRowCount() - u2.rowCount, u2.rowCount), Q2 = true) : o2.moveTo(s2, c2, s2 + u2.rowCount, c2, o2.getRowCount() - s2 - u2.rowCount, u2.colCount, i2.CopyToOptions.all, true)) : (o2.moveTo(h2 + 1, c2, h2 + 1 + u2.rowCount, c2, o2.getRowCount() - h2 - 1 - u2.rowCount, u2.colCount, i2.CopyToOptions.all, true), D2 && Z2.K5t(new r.Range(Z2.Ky, Z2.iw, Z2.Sx + S2, Z2.Tx)), (_2 = h2 + S2 - s2 - u2.rowCount) > 0 && o2.moveTo(s2, c2, s2 + u2.rowCount, c2, _2, u2.colCount, i2.CopyToOptions.all, true));
              At(o2, s2, c2, s2 + u2.rowCount, c2);
            } else s2 + u2.rowCount > o2.getRowCount() && (F2 = true, B2 = true);
            else F2 = true, B2 = true;
            return { ignoreTableExpand: V2, ignoreTableFooterIndex: W2, raiseInvalidOperation: F2, returnFunc: B2, isInsert: Q2 };
          }, n3.prototype.hx = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2 = u2.changePasteDataRangeRowInvisibleCount, c2 = u2.changePasteDataRangeColInvisibleCount, f2 = u2.invisibleRowCountInAcRange, l2 = u2.invisibleColCountInAcRange, h2 = this.tT.pasteExtent.targetRange;
            t4 && (n4.colCount -= c2, n4.col -= n4.colCount, n4.col -= l2, h2.colCount -= c2), e3 && (n4.rowCount -= s2, n4.row -= n4.rowCount, n4.row -= f2, h2.rowCount -= s2), i3 && (n4.colCount -= c2, n4.col -= o2, n4.col -= l2, h2.colCount -= c2), r2 && (n4.rowCount -= s2, n4.row -= a2, n4.row -= f2, h2.rowCount -= s2), u2.changePasteDataRangeRowInvisibleCount = 0, u2.changePasteDataRangeColInvisibleCount = 0, u2.invisibleRowCountInAcRange = 0, u2.invisibleColCountInAcRange = 0;
          }, n3.prototype.vx = function(t4, n4) {
            var e3 = [].concat(n4.parent.sheets);
            return t4 && (t4.NMi || t4.isReportTemplateSheet) && e3.push(t4), n4 && n4 !== t4 && (n4.NMi || n4.isReportTemplateSheet) && e3.push(n4), e3;
          }, n3.prototype.execute = function() {
            var t4, e3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, A2, I2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, lt2, ht2, vt2, pt2, bt2, yt2, wt2, Mt2, Ct2, St2, Tt2, xt2, At2, It2, Nt2, jt2, _t2, Ot2, Et2, Rt2, Lt2, Ft2, Bt2 = this;
            if (Bt2.canExecute() && (u2 = Bt2.tT.fromSheet, s2 = Bt2.tT.toSheet, c2 = Bt2.tT.pasteExtent, f2 = Bt2.tT.pasteOption, l2 = c2.sourceRange, h2 = c2.targetRange, d2 = c2.isCutting, v2 = null === (t4 = c2.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, p2 = k(l2, !(!v2 || !l2)), (!u2 || !l2 || u2.zT(p2.row, p2.col, p2.rowCount, p2.colCount, u2.getRowCount(), u2.getColumnCount())) && s2 && h2 && s2.HT(h2.row, h2.col, h2.rowCount, h2.colCount, true) && !(s2.tables && s2.tables.mx(u2, l2, s2, h2, d2) || s2.pivotTables && s2.pivotTables.KYt(l2, h2, s2, d2)))) {
              if (u2 && (w2 = u2.ST(), b2 = Bt2._shiftCells, (y2 = Bt2._dataRange) && (C2 = y2.row, S2 = y2.col, A2 = y2.rowCount, I2 = y2.colCount, M2 = new r.Range(C2, S2, A2, I2), v2 && (N2 = y2.row < 0 ? 0 : y2.row, j2 = y2.col < 0 ? 0 : y2.col, y2 = new r.Range(N2, j2, y2.colCount, y2.rowCount)), (null === (e3 = c2.pasteSpecialOptions) || void 0 === e3 ? void 0 : e3.pasteLink) && (y2 = new r.Range(y2.row, y2.col, h2.rowCount, h2.colCount), (D2 = u2.getSpan(y2.row, y2.col)) && D2.rowCount === l2.rowCount && D2.colCount === l2.colCount && (y2 = new r.Range(y2.row, y2.col, 1, 1))))), Bt2._acCell && (_2 = Bt2._acCell.row, O2 = Bt2._acCell.col, E2 = Bt2._acCell.rowCount, R2 = Bt2._acCell.colCount), F2 = Bt2._isHeaderPaste, B2 = s2 === u2, G2 = false, U2 = false, H2 = false, V2 = false, z2 = ft(s2), Y2 = false, Z2 = 0, W2 = 0, Q2 = 0, K2 = 0, b2 !== m && y2) {
                if (B2 && d2 && b2 === i2.InsertShiftCell.right && gt(y2, s2.getRowCount()) && (P2 = dt(s2, y2)) && (X2 = dt(s2, new r.Range(_2, O2, E2, R2))) && X2.name() === P2.name() && (Bt2.tT.Hfe = P2, J2 = kt(P2), s2.tables.remove(P2, 1)), (q2 = this.ex(d2, Bt2._acCell, y2, b2, s2, u2)).returnFunc) return void Dt(s2, P2, d2, b2, J2);
                G2 = q2.changePasteDataRangeCol, U2 = q2.changePasteDataRangeRow, Z2 = q2.changePasteDataRangeRowInvisibleCount, W2 = q2.changePasteDataRangeColInvisibleCount, Q2 = q2.invisibleRowCountInAcRange, K2 = q2.invisibleColCountInAcRange, H2 = q2.changePasteDataRangeCols, V2 = q2.changePasteDataRangeRows, Y2 = q2.moveRangeHaveValue, L2 = q2.selectRange, E2 = Bt2._acCell.rowCount, R2 = Bt2._acCell.colCount, h2.rowCount += Z2, h2.colCount += W2, $2 = q2.adjustedTableRowCount, tt2 = q2.adjustedTableColCount, x($2) || (h2.row = 0, h2.rowCount = $2), x(tt2) || (h2.col = 0, h2.colCount = tt2);
              }
              Bt2.XI(), nt2 = Bt2.vx(u2, s2), o.Commands.II(nt2), s2.suspendPaint(), s2.suspendEvent(), s2.QI = true, et2 = false, u2 && (u2.suspendPaint(), u2.suspendEvent(), u2.QI = true);
              try {
                if (z2 && !(ot2 = this.Rye(u2, s2, l2, h2, _2, O2, b2, Y2, M2, P2, d2, J2))) return et2 = true, it2 = 1, rt2 = T().Exp_InvalidCopyPasteSize, at2 = s2.U5(), h2.colCount = at2.colCount, void (h2.rowCount = at2.rowCount);
                if ((et2 = (ut2 = b2 !== m && this.fx(L2, b2, u2, s2, Bt2._acCell, M2, _2, O2, E2, R2, Bt2._ignoreTableFooterShiftIndex, d2)).raiseInvalidOperation) && (it2 = 1, rt2 = T().Exp_InsertCopiedCutCellsNoRange), ut2.returnFunc) return void Dt(s2, P2, d2, b2, J2);
                if (l2 && r.Be.Ll(u2, l2.row, l2.col, l2.row + l2.rowCount - 1, l2.col + l2.colCount - 1), st2 = !l2 || -1 !== l2.col && -1 !== l2.row, ct2 = b2 !== m ? !ut2.ignoreTableExpand : st2) try {
                  lt2 = { shiftCells: Bt2._fromDragFill && b2 === i2.InsertShiftCell.down, isCopy: !d2, isFirst: false, isHeaderPaste: Bt2._isHeaderPaste }, ht2 = [], vt2 = x(ut2.ignoreTableFooterIndex) ? 0 : ut2.ignoreTableFooterIndex, pt2 = new r.Range(h2.row, h2.col, h2.rowCount - vt2, h2.colCount), s2.tables && s2.tables.yx(u2, pt2, l2, g, g, g, { shiftInfo: lt2, backupTableResizedArgs: ht2 }), this.tT.Kh.eke = ht2;
                } catch (t5) {
                  return et2 = true, it2 = 6, rt2 = t5.message, void Dt(s2, P2, d2, b2, J2);
                }
                bt2 = y2 || l2, yt2 = d2 && b2 !== m && (b2 === i2.InsertShiftCell.right && (-1 === bt2.row || bt2.row === h2.row) || b2 === i2.InsertShiftCell.down && (-1 === bt2.col || bt2.col === h2.col)), Ut(u2, y2 || l2, s2, h2, wt2 = { isCutting: d2, clipboardText: c2.clipboardText, clipboardHtml: c2.clipboardHtml, clipboardImage: c2.clipboardImage, clipboardPasteOptions: f2, ignoreFilteredOutRow: !c2.includeFilteredOutRow, ignorePasteSkipInvisibleRange: true === yt2, pasteSpecialOptions: c2.pasteSpecialOptions }), d2 && b2 !== m && (Mt2 = bt2.row, Ct2 = bt2.col, St2 = bt2.rowCount, Tt2 = bt2.colCount, xt2 = h2.row, At2 = h2.col, b2 !== i2.InsertShiftCell.right || -1 !== bt2.row && bt2.row !== h2.row || (B2 && F2 && At2 > Ct2 && mt(s2, h2) && (h2.col -= Tt2), -1 === Mt2 && ut2.isInsert ? (u2.deleteColumns(Ct2, Tt2), !B2 && u2.addColumns(u2.getColumnCount(), Tt2)) : u2.moveTo(Mt2, Ct2 + Tt2, xt2, Ct2, St2, s2.getColumnCount() - Ct2 - Tt2, i2.CopyToOptions.all, true)), b2 !== i2.InsertShiftCell.down || -1 !== bt2.col && bt2.col !== h2.col || (B2 && F2 && xt2 > Mt2 && mt(s2, h2) && (h2.row -= St2), -1 === Ct2 && ut2.isInsert ? (u2.deleteRows(Mt2, St2), !B2 && u2.addRows(u2.getRowCount(), St2)) : u2.moveTo(Mt2 + St2, Ct2, Mt2, At2, s2.getRowCount() - Mt2 - St2, Tt2, i2.CopyToOptions.all, true))), null === (a2 = s2.tables) || void 0 === a2 || a2.Fuo();
              } finally {
                Dt(s2, P2, d2, b2, J2), l2 && r.Be.dl(), s2.resumeEvent(), s2.QI = false, u2 && (u2.resumeEvent(), u2.QI = false, u2.resumePaint()), s2.resumePaint(), o.Commands.xI(nt2, Bt2.tT), It2 = Bt2.tT.Kh, Nt2 = n3.WT(f2), c2.isCutting && u2 && (jt2 = [], u2.isDirtySuspended() || ((_t2 = new o.ChangedCells(u2, l2, Nt2)).yI(It2.qI.bI()), It2.wx = _t2, jt2 = _t2.MI()), o.Commands.SI(u2, l2.row, l2.col, l2.rowCount, l2.colCount, jt2, 3, m, m, b2)), s2 && (Ot2 = [], s2.isDirtySuspended() || ((Et2 = new o.ChangedCells(s2, h2, Nt2)).yI(It2.$I.bI()), It2.Mx = Et2, Ot2 = Et2.MI()), Rt2 = s2.tables && s2.tables.WI && s2.tables.WI(h2.row, h2.col, h2.rowCount, h2.colCount), Lt2 = h2.rowCount, Ft2 = h2.colCount, o.Commands.SI(s2, h2.row, h2.col, Lt2, Ft2, Ot2, 3, Rt2, m, b2), Bt2.tableNamesObj = { r: h2.row, c: h2.col, rc: Lt2, cc: Ft2, tableNames: Rt2 }), Bt2.Cx = { changePasteDataRangeCol: G2, changePasteDataRangeRow: U2, changePasteDataRangeCols: H2, changePasteDataRangeRows: V2, acColCount: R2, acRowCount: E2, changePasteDataRangeRowInvisibleCount: Z2, changePasteDataRangeColInvisibleCount: W2, invisibleRowCountInAcRange: Q2, invisibleColCountInAcRange: K2 }, w2 && delete w2.TT, et2 && s2.jT(it2, rt2);
              }
            }
          }, n3.prototype.Rye = function(t4, n4, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
            var d2, v2, p2, g2, m2, b2, y2, w2;
            if (void 0 === h2 && (h2 = {}), d2 = -1, v2 = -1, -1 !== r2.row ? d2 = r2.row + r2.rowCount : -1 === e3.row && (d2 = t4.getRowCount()), p2 = n4.getRowCount(), g2 = t4 !== n4, m2 = d2 - p2, (b2 = d2 > p2) && Ot(e3, r2)) u2 === i2.InsertShiftCell.down && s2 ? n4.addRows(p2, d2 - o2 - (l2 && !g2 && this._isHeaderPaste && -1 === c2.col ? c2.rowCount : 0)) : n4.addRows(p2, m2);
            else if (s2 || o2 + r2.rowCount !== p2 || u2 !== i2.InsertShiftCell.down) {
              if (s2 && u2 === i2.InsertShiftCell.down) n4.addRows(p2, m2 + (p2 - o2) - (l2 && !g2 && this._isHeaderPaste && -1 === c2.col ? c2.rowCount : 0));
              else if (b2) return Dt(n4, f2, l2, u2, h2), false;
            } else n4.addRows(p2, m2 + (p2 - o2) - c2.rowCount);
            if (-1 !== r2.col ? v2 = r2.col + r2.colCount : -1 === e3.col && (v2 = t4.getColumnCount()), (w2 = v2 > (y2 = n4.getColumnCount())) && Ot(e3, r2)) u2 === i2.InsertShiftCell.right && s2 ? n4.Vuo(v2 + y2 - a2 - (l2 && !g2 && this._isHeaderPaste && -1 === c2.row ? c2.colCount : 0)) : n4.Vuo(v2);
            else if (s2 || a2 + r2.colCount !== y2 || u2 !== i2.InsertShiftCell.right) {
              if (s2 && u2 === i2.InsertShiftCell.right) n4.Vuo(v2 + y2 - a2 - (l2 && !g2 && this._isHeaderPaste && -1 === c2.row ? c2.colCount : 0));
              else if (w2) return Dt(n4, f2, l2, u2, h2), false;
            } else n4.Vuo(v2 + y2 - a2 - c2.colCount);
            return true;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = this;
            if (I2.canUndo()) {
              if (t4 = I2.tT.fromSheet, n4 = I2.tT.toSheet, i3 = (e3 = I2.tT.pasteExtent).sourceRange, a2 = e3.targetRange, !n4 || !a2) return false;
              if (I2.Cx && (u2 = I2.Cx, this.hx(u2.changePasteDataRangeCol, i3, u2.changePasteDataRangeRow, u2.changePasteDataRangeCols, u2.changePasteDataRangeRows, u2.acColCount, u2.acRowCount, u2)), !ft(n4) && !n4.zT(a2.row, a2.col, a2.rowCount, a2.colCount, n4.getRowCount(), n4.getColumnCount())) return false;
              if (t4 && i3) {
                if (!t4.zT(i3.row, i3.col, i3.rowCount, i3.colCount, t4.getRowCount(), t4.getColumnCount())) return false;
                if (t4.name() === n4.name() && n4.parent && !t4.NMi && n4.parent !== t4.parent) return false;
              }
              s2 = I2.tT.Kh, n4.suspendPaint();
              try {
                c2 = a2.row < 0 ? 0 : a2.row, f2 = a2.col < 0 ? 0 : a2.col, l2 = a2.row < 0 ? n4.getRowCount() : a2.rowCount, h2 = a2.col < 0 ? n4.getColumnCount() : a2.colCount, d2 = I2.vx(t4, n4), o.Commands.NI(d2, I2.tT), (p2 = (v2 = n4.rowFilter()) && v2.range) && -1 === a2.row && p2.col < a2.col && p2.col + p2.colCount >= a2.col + a2.colCount && (p2.colCount = p2.colCount - a2.colCount), g2 = 0, m2 = 0, b2 = 0, y2 = 0, t4 && i3 && (g2 = i3.row < 0 ? 0 : i3.row, m2 = i3.col < 0 ? 0 : i3.col, b2 = i3.row < 0 ? t4.getRowCount() : i3.rowCount, y2 = i3.col < 0 ? t4.getColumnCount() : i3.colCount), w2 = [], M2 = [], (C2 = I2.tableNamesObj) && (n4 && C2.r === c2 && C2.c === f2 && C2.rc === l2 && C2.cc === h2 && (M2 = C2.tableNames), t4 && C2.r === g2 && C2.c === m2 && C2.rc === b2 && C2.cc === y2 && (w2 = C2.tableNames)), S2 = I2._shiftCells, n4 && (T2 = s2.Mx, o.Commands.SI(n4, c2, f2, l2, h2, T2 ? T2.MI() : [], 3, w2, true, S2)), e3.isCutting && t4 && (x2 = s2.wx, o.Commands.SI(t4, g2, m2, b2, y2, x2 ? x2.MI() : [], 3, M2, true, S2)), (A2 = I2.tT.Hfe) && Dt(n4, A2, e3.isCutting, S2), (0, r.handleRestoredTableResizedArgs)(s2.eke);
              } finally {
                n4.resumePaint();
              }
            }
            return true;
          }, n3.prototype.toJSON = function() {
            var t4 = this;
            return { sheetName: t4.Mf ? t4.Mf.name() : "", command: t4.tT };
          }, n3;
        })(d.ActionBase), n2.ClipboardPasteRangeUndoAction = J, X = (function(t3) {
          function n3(n4, e3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2 = this;
            if (G2 = t3.call(this, n4, e3) || this, o2) return G2;
            if (l2 = n4, h2 = e3.fromSheet, !l2) throw new Error(T().Exp_DestSheetIsNull);
            if (v2 = (d2 = e3).pastedRanges, p2 = l2.o5(), !v2 || v2.length <= 0) return G2;
            if (g2 = (null === (u2 = null == n4 ? void 0 : n4.NMi) || void 0 === u2 ? void 0 : u2._gi) === i2.SheetType.tableSheet, m2 = (null === (c2 = null === (s2 = e3.fromSheet) || void 0 === s2 ? void 0 : s2.NMi) || void 0 === c2 ? void 0 : c2._gi) === i2.SheetType.tableSheet, e3.hasTableSheet = g2 || m2, e3.cachedActions = [], y2 = (b2 = d2.fromRanges || [d2.fromRange]).length, w2 = d2.isCutting, M2 = d2.clipboardText, C2 = d2.clipboardHtml, S2 = d2.clipboardImage, x2 = d2.pasteOption, A2 = {}, I2 = v2[0], k2 = null === (f2 = d2.pasteSpecialOptions) || void 0 === f2 ? void 0 : f2.transpose, !w2 && l2 && Ft(b2, A2) && I2.equals(l2.fT(b2, I2, k2))) {
              for (N2 = A2.inSameRow, j2 = A2.inSameCol, k2 && (N2 = (a2 = [j2, N2])[0], j2 = a2[1]), N2 ? b2.sort((function(t4, n5) {
                return t4.col - n5.col;
              })) : j2 && b2.sort((function(t4, n5) {
                return t4.row - n5.row;
              })), D2 = I2.row, _2 = I2.col, O2 = 0; O2 < y2; O2++) R2 = (E2 = b2[O2]).rowCount, L2 = E2.colCount, p2 && (R2 += n4.lT(D2, R2, true), L2 += n4.lT(_2, L2)), F2 = { sourceRange: E2, targetRange: (0, r.Ec)(D2, _2, R2, L2), isCutting: w2, clipboardText: M2, clipboardHtml: C2, clipboardImage: S2, includeFilteredOutRow: true, pasteSpecialOptions: d2.pasteSpecialOptions }, e3.cachedActions[O2] = new J(n4, { fromSheet: h2, toSheet: l2, pasteExtent: F2, pasteOption: x2 }), N2 ? _2 += L2 : j2 && (D2 += R2);
              e3.hT = true;
            } else for (B2 = 0; B2 < v2.length; B2++) P2 = { sourceRange: b2[0], targetRange: v2[B2], isCutting: w2, clipboardText: M2, clipboardHtml: C2, clipboardImage: S2, pasteSpecialOptions: d2.pasteSpecialOptions }, e3.cachedActions[B2] = new J(n4, { fromSheet: h2, toSheet: l2, pasteExtent: P2, pasteOption: x2 });
            return G2;
          }
          return rt(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2 = this, x2 = T2.tT, A2 = x2.cachedActions, I2 = false;
            if (T2.canExecute() && A2) {
              e3 = (n4 = T2.Mf).parent.jg(), T2.X5(e3, true), a2 = n4.parent.i4(), (x2.hasTableSheet || Ht(n4.parent)) && o.Commands.II(a2);
              try {
                for (u2 = false, s2 = x2._dataRange && (Array.isArray(x2._dataRange) ? x2._dataRange : [x2._dataRange]), c2 = 0; c2 < A2.length; c2++) (f2 = A2[c2])._shiftCells = x2._shiftCells, f2._isHeaderPaste = x2._isHeaderPaste, f2._acCell = x2._acCell, f2._dataRange = s2 && (x2.hT ? s2[c2] : s2[0]), f2._fromDragFill = x2._fromDragFill, f2._ignoreTableFooterShiftIndex = x2._ignoreTableFooterShiftIndex, n4 ? (l2 = f2.tT.pasteExtent, d2 = (h2 = T2.tT).fromSheet, v2 = h2.fromRanges && h2.fromRanges[c2], p2 = l2.clipboardText, g2 = l2.clipboardHtml, m2 = null === (t4 = h2.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, g2 && (b2 = "<html>\r\n<body>\r\n<!--StartFragment-->", y2 = "<!--EndFragment-->\r\n</body>\r\n</html>", g2.substr(0, b2.length) === b2 && g2.substr(g2.length - y2.length, y2.length) === y2 && (g2 = g2.substring(b2.length, g2.length - y2.length)), r.mt.Qf() && (w2 = "<meta charset='utf-8'>", g2.substr(0, w2.length) === w2 && (g2 = g2.substring(w2.length, g2.length)))), !p2 && d2 && v2 && (M2 = k(v2, m2), p2 = d2.bT([M2])), !g2 && d2 && v2 && ct(n4) && (M2 = k(v2, m2), g2 = d2.MT([M2])), C2 = { sheet: n4, sheetName: n4.name(), cellRange: f2.nx(), pasteOption: f2.tT.pasteOption, pasteData: { text: p2, html: g2 }, shiftCells: x2._shiftCells, fromSheet: d2, fromRange: v2, isCutting: !!h2.isCutting, cancel: false, action: h2.isCutting ? i2.ClipboardActionType.cut : i2.ClipboardActionType.copy }, (S2 = l2.clipboardImage) && (C2.pasteData.image = S2), n4.ki(r.Events.ClipboardPasting, C2), C2.cancel || (I2 = f2.execute(), delete C2.cancel, u2 = true, n4.ki(r.Events.ClipboardPasted, C2))) : I2 = f2.execute();
                u2 && T2.Ax();
              } finally {
                (x2.hasTableSheet || Ht(n4.parent)) && o.Commands.xI(a2, T2.tT), T2.q5(e3, true);
              }
            }
            return I2;
          }, n3.prototype.Ax = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.tT, f2 = c2.cachedActions, l2 = s2.Mf;
            if (l2 && f2) {
              if (t4 = l2.getSelections(), n4 = [], e3 = l2.parent, l2.IA(), c2.hT) i3 = c2.pastedRanges[0], l2.n4(i3.row, i3.col, i3.rowCount, i3.colCount);
              else if (f2.length > 1) for (r2 = 0; r2 < f2.length; r2++) a2 = (o2 = f2[r2]).nx(), l2.n4(a2.row, a2.col, a2.rowCount, a2.colCount);
              else f2.length > 0 && (u2 = f2[0].nx(), l2.n4(u2.row, u2.col, u2.rowCount, u2.colCount), u2.contains(l2.ui, l2.ci) || l2.XA(u2.row, u2.col));
              n4 = l2.getSelections(), l2.EA(t4, n4) && l2.jA(t4), e3 && c2._oldPosition && e3.changeSelectionInCommandExecuting(c2, null, null, n4);
            }
          }, n3.prototype.canExecute = function() {
            return W(this.tT.cachedActions);
          }, n3.prototype.canUndo = function() {
            return Q(this.tT.cachedActions);
          }, n3.prototype.undo = function() {
            return K(this);
          }, n3;
        })(d.ActionBase), n2.ClipboardPasteUndoAction = X, q = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return rt(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, A2, I2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2 = this, ft2 = this;
            if (ft2.canExecute() && (s2 = ft2.tT.fromSheet, c2 = ft2.tT.toSheet, f2 = ft2.tT.pasteExtent, l2 = ft2.tT.pasteOption, h2 = f2.sourceRange, d2 = f2.targetRange, v2 = null === (t4 = f2.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, p2 = k(h2, !(!v2 || !h2)), (!s2 || !h2 || s2.zT(p2.row, p2.col, p2.rowCount, p2.colCount, s2.getRowCount(), s2.getColumnCount())) && (c2 && d2 && c2.HT(d2.row, d2.col, d2.rowCount, d2.colCount, true) || (null === (n4 = f2.pasteSpecialOptions) || void 0 === n4 ? void 0 : n4.operationOptions) === i2.PasteOperationOptions.transform) && !(c2.tables && c2.tables.mx(s2, h2, c2, d2, false) || c2.pivotTables && c2.pivotTables.KYt(h2, d2, c2, false)))) {
              if (s2 && (w2 = s2.ST(), b2 = ft2._shiftCells, (y2 = ft2._dataRange) && (C2 = y2.row, S2 = y2.col, A2 = y2.rowCount, I2 = y2.colCount, M2 = new r.Range(C2, S2, A2, I2), v2 && (N2 = y2.row < 0 ? 0 : y2.row, j2 = y2.col < 0 ? 0 : y2.col, y2 = new r.Range(N2, j2, y2.colCount, y2.rowCount)), (null === (e3 = f2.pasteSpecialOptions) || void 0 === e3 ? void 0 : e3.pasteLink) && (y2 = new r.Range(y2.row, y2.col, d2.rowCount, d2.colCount), (D2 = s2.getSpan(y2.row, y2.col)) && D2.rowCount === h2.rowCount && D2.colCount === h2.colCount && (y2 = new r.Range(y2.row, y2.col, 1, 1))))), ft2._acCell && (_2 = ft2._acCell.rowCount, O2 = ft2._acCell.colCount), R2 = m, L2 = false, F2 = false, B2 = false, P2 = false, G2 = 0, U2 = 0, H2 = 0, V2 = 0, b2 !== m && y2) {
                if ((Y2 = this.ex(false, ft2._acCell, y2, b2, c2, s2)).returnFunc) return void Dt(c2, R2, false, b2, z2);
                L2 = Y2.changePasteDataRangeCol, F2 = Y2.changePasteDataRangeRow, G2 = Y2.changePasteDataRangeRowInvisibleCount, U2 = Y2.changePasteDataRangeColInvisibleCount, H2 = Y2.invisibleRowCountInAcRange, V2 = Y2.invisibleColCountInAcRange, B2 = Y2.changePasteDataRangeCols, P2 = Y2.changePasteDataRangeRows, E2 = Y2.selectRange, _2 = ft2._acCell.rowCount, O2 = ft2._acCell.colCount, d2.rowCount += G2, d2.colCount += U2, Z2 = Y2.adjustedTableRowCount, W2 = Y2.adjustedTableColCount, x(Z2) || (d2.row = 0, d2.rowCount = Z2), x(W2) || (d2.col = 0, d2.colCount = W2);
              }
              ft2.XI(), Q2 = ft2.vx(s2, c2), o.Commands.II(Q2), c2.suspendPaint(), c2.suspendEvent(), c2.QI = true, K2 = false, s2 && (s2.suspendPaint(), s2.suspendEvent(), s2.QI = true);
              try {
                tt2 = function(t5) {
                  var n5, e4, o2, a3, u3, f3, l3, d3;
                  if (M2.rowCount = t5.rowCount, M2.colCount = t5.colCount, e4 = b2 !== m && ct2.fx(E2, b2, s2, c2, t5, M2, t5.row, t5.col, t5.rowCount, t5.colCount, ft2._ignoreTableFooterShiftIndex, false), (K2 = e4.raiseInvalidOperation) && (n5 = { invalidType: 1, message: T().Exp_InsertCopiedCutCellsNoRange }), e4.returnFunc) return Dt(c2, R2, false, b2, z2), n5;
                  if (h2 && r.Be.Ll(s2, h2.row, h2.col, h2.row + h2.rowCount - 1, h2.col + h2.colCount - 1), o2 = !h2 || -1 !== h2.col && -1 !== h2.row, a3 = b2 !== m ? !e4.ignoreTableExpand : o2) try {
                    u3 = { shiftCells: ft2._fromDragFill && b2 === i2.InsertShiftCell.down, isCopy: true, isFirst: false, isHeaderPaste: ft2._isHeaderPaste }, f3 = [], l3 = x(e4.ignoreTableFooterIndex) ? 0 : e4.ignoreTableFooterIndex, d3 = new r.Range(t5.row, t5.col, t5.rowCount - l3, t5.colCount), c2.tables && c2.tables.yx(s2, d3, h2, g, g, g, { shiftInfo: u3, backupTableResizedArgs: f3 }), ct2.tT.Kh.eke = f3;
                  } catch (t6) {
                    return Dt(c2, R2, false, b2, z2), { invalidType: 6, message: t6.message };
                  }
                }, nt2 = { isCutting: false, clipboardText: f2.clipboardText, clipboardHtml: f2.clipboardHtml, clipboardImage: f2.clipboardImage, clipboardPasteOptions: l2, ignoreFilteredOutRow: !f2.includeFilteredOutRow, ignorePasteSkipInvisibleRange: false, pasteSpecialOptions: f2.pasteSpecialOptions, command: ft2.tT, shiftOrExpandRange: tt2 }, $2 = Ut(s2, y2 || h2, c2, d2, nt2), null === (a2 = c2.tables) || void 0 === a2 || a2.Fuo();
              } finally {
                Dt(c2, R2, false, b2, z2), h2 && r.Be.dl(), c2.resumeEvent(), c2.QI = false, s2 && (s2.resumeEvent(), s2.QI = false, s2.resumePaint()), c2.resumePaint(), (null === (u2 = f2.pasteSpecialOptions) || void 0 === u2 ? void 0 : u2.operationOptions) !== i2.PasteOperationOptions.transform && o.Commands.xI(Q2, ft2.tT), et2 = ft2.tT.Kh, it2 = J.WT(l2), c2 && (rt2 = [], c2.isDirtySuspended() || ((ot2 = new o.ChangedCells(c2, d2, it2)).yI(et2.$I.bI()), et2.Mx = ot2, rt2 = ot2.MI()), at2 = c2.tables && c2.tables.WI && c2.tables.WI(d2.row, d2.col, d2.rowCount, d2.colCount), ut2 = d2.rowCount, st2 = d2.colCount, o.Commands.SI(c2, d2.row, d2.col, ut2, st2, rt2, 3, at2, m, b2), ft2.tableNamesObj = { r: d2.row, c: d2.col, rc: ut2, cc: st2, tableNames: at2 }), ft2.Cx = { changePasteDataRangeCol: L2, changePasteDataRangeRow: F2, changePasteDataRangeCols: B2, changePasteDataRangeRows: P2, acColCount: O2, acRowCount: _2, changePasteDataRangeRowInvisibleCount: G2, changePasteDataRangeColInvisibleCount: U2, invisibleRowCountInAcRange: H2, invisibleColCountInAcRange: V2 }, w2 && delete w2.TT, K2 && c2.jT(X2, q2);
              }
              return $2 instanceof Promise ? $2 : void 0;
            }
          }, n3;
        })(J), n2.ClipboardPasteRangeTransformUndoAction = q, $ = (function(t3) {
          function n3(n4, e3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2 = this;
            if (P2 = t3.call(this, n4, e3) || this, o2) return P2;
            if (l2 = n4, h2 = e3.fromSheet, !l2) throw new Error(T().Exp_DestSheetIsNull);
            if (v2 = (d2 = e3).pastedRanges, p2 = l2.o5(), !v2 || v2.length <= 0) return P2;
            if (g2 = (null === (u2 = null == n4 ? void 0 : n4.NMi) || void 0 === u2 ? void 0 : u2._gi) === i2.SheetType.tableSheet, m2 = (null === (c2 = null === (s2 = e3.fromSheet) || void 0 === s2 ? void 0 : s2.NMi) || void 0 === c2 ? void 0 : c2._gi) === i2.SheetType.tableSheet, e3.hasTableSheet = g2 || m2, e3.cachedActions = [], y2 = (b2 = d2.fromRanges || [d2.fromRange]).length, w2 = d2.clipboardText, M2 = d2.clipboardHtml, C2 = d2.clipboardImage, S2 = d2.pasteOption, x2 = {}, A2 = v2[0], I2 = null === (f2 = d2.pasteSpecialOptions) || void 0 === f2 ? void 0 : f2.transpose, l2 && Ft(b2, x2) && A2.equals(l2.fT(b2, A2, I2))) {
              for (k2 = x2.inSameRow, N2 = x2.inSameCol, I2 && (k2 = (a2 = [N2, k2])[0], N2 = a2[1]), k2 ? b2.sort((function(t4, n5) {
                return t4.col - n5.col;
              })) : N2 && b2.sort((function(t4, n5) {
                return t4.row - n5.row;
              })), j2 = A2.row, D2 = A2.col, _2 = 0; _2 < y2; _2++) E2 = (O2 = b2[_2]).rowCount, R2 = O2.colCount, p2 && (E2 += n4.lT(j2, E2, true), R2 += n4.lT(D2, R2)), L2 = { sourceRange: O2, targetRange: (0, r.Ec)(j2, D2, E2, R2), isCutting: false, clipboardText: w2, clipboardHtml: M2, clipboardImage: C2, includeFilteredOutRow: true, pasteSpecialOptions: d2.pasteSpecialOptions }, e3.cachedActions[_2] = new q(n4, { fromSheet: h2, toSheet: l2, pasteExtent: L2, pasteOption: S2 }), e3.cachedActions[_2].Pao = k2, e3.cachedActions[_2].Gao = N2, k2 ? D2 += R2 : N2 && (j2 += E2);
              e3.hT = true;
            } else for (F2 = 0; F2 < v2.length; F2++) B2 = { sourceRange: b2[0], targetRange: v2[F2], isCutting: false, clipboardText: w2, clipboardHtml: M2, clipboardImage: C2, pasteSpecialOptions: d2.pasteSpecialOptions }, e3.cachedActions[F2] = new q(n4, { fromSheet: h2, toSheet: l2, pasteExtent: B2, pasteOption: S2 });
            return P2;
          }
          return rt(n3, t3), n3.prototype.execute = function() {
            var t4;
            return at(this, void 0, void 0, (function() {
              var n4, e3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, A2, I2, N2, j2, D2, _2, O2;
              return ut(this, (function(E2) {
                switch (E2.label) {
                  case 0:
                    if (e3 = (n4 = this).tT, a2 = e3.cachedActions, u2 = false, !n4.canExecute() || !a2) return [3, 11];
                    s2 = n4.Mf, c2 = s2.parent.jg(), n4.X5(c2, true), f2 = s2.parent.i4(), (e3.hasTableSheet || Ht(s2.parent)) && o.Commands.II(f2), E2.label = 1;
                  case 1:
                    E2.trys.push([1, , 10, 11]), l2 = false, h2 = e3._dataRange && (Array.isArray(e3._dataRange) ? e3._dataRange : [e3._dataRange]), d2 = void 0, v2 = 0, E2.label = 2;
                  case 2:
                    return v2 < a2.length ? (p2 = a2[v2], d2 && 0 !== d2.rowCount && 0 !== d2.colCount && (p2.Pao ? p2.tT.pasteExtent.targetRange.col = d2.col + d2.colCount : p2.Gao && (p2.tT.pasteExtent.targetRange.row = d2.row + d2.rowCount)), p2._shiftCells = e3._shiftCells, p2._isHeaderPaste = e3._isHeaderPaste, p2._acCell = e3._acCell, p2._dataRange = h2 && (e3.hT ? h2[v2] : h2[0]), p2._fromDragFill = e3._fromDragFill, p2._ignoreTableFooterShiftIndex = e3._ignoreTableFooterShiftIndex, s2 ? [3, 3] : (u2 = p2.execute(), [3, 8])) : [3, 9];
                  case 3:
                    g2 = p2.tT.pasteExtent, m2 = n4.tT, b2 = m2.fromSheet, y2 = m2.fromRanges && m2.fromRanges[v2], w2 = g2.clipboardText, M2 = g2.clipboardHtml, C2 = null === (t4 = m2.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, M2 && (S2 = "<html>\r\n<body>\r\n<!--StartFragment-->", T2 = "<!--EndFragment-->\r\n</body>\r\n</html>", M2.substr(0, 36) === S2 && M2.substr(M2.length - 36, 36) === T2 && (M2 = M2.substring(36, M2.length - 36)), r.mt.Qf() && (x2 = "<meta charset='utf-8'>", M2.substr(0, 22) === x2 && (M2 = M2.substring(22, M2.length)))), !w2 && b2 && y2 && (A2 = k(y2, C2), w2 = b2.bT([A2])), !M2 && b2 && y2 && ct(s2) && (A2 = k(y2, C2), M2 = b2.MT([A2])), I2 = { sheet: s2, sheetName: s2.name(), cellRange: p2.nx(), pasteOption: p2.tT.pasteOption, pasteData: { text: w2, html: M2 }, shiftCells: e3._shiftCells, fromSheet: b2, fromRange: y2, isCutting: !!m2.isCutting, cancel: false, action: m2.isCutting ? i2.ClipboardActionType.cut : i2.ClipboardActionType.copy }, (N2 = g2.clipboardImage) && (I2.pasteData.image = N2), E2.label = 4;
                  case 4:
                    return E2.trys.push([4, 6, , 7]), [4, p2.execute()];
                  case 5:
                    return u2 = E2.sent(), [3, 7];
                  case 6:
                    return j2 = E2.sent(), n4.q5(c2, true), [2, false];
                  case 7:
                    d2 = u2, delete I2.cancel, l2 = true, d2 && (I2.cellRange = d2), s2.ki(r.Events.ClipboardPasted, I2), E2.label = 8;
                  case 8:
                    return v2++, [3, 2];
                  case 9:
                    return l2 && (D2 = n4.tT.pastedRanges[0], _2 = d2 ? d2.row + d2.rowCount - D2.row : D2.rowCount, O2 = d2 ? d2.col + d2.colCount - D2.col : D2.colCount, n4.Ax(new r.Range(D2.row, D2.col, _2, O2))), [3, 11];
                  case 10:
                    return (e3.hasTableSheet || Ht(s2.parent)) && o.Commands.xI(f2, n4.tT), n4.q5(c2, true), [7];
                  case 11:
                    return [2, !!u2];
                }
              }));
            }));
          }, n3.prototype.Ax = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.tT, l2 = f2.cachedActions, h2 = c2.Mf;
            if (h2 && l2) {
              if (n4 = h2.getSelections(), e3 = [], i3 = h2.parent, h2.IA(), t4) h2.n4(t4.row, t4.col, t4.rowCount, t4.colCount);
              else if (f2.hT) r2 = f2.pastedRanges[0], h2.n4(r2.row, r2.col, r2.rowCount, r2.colCount);
              else if (l2.length > 1) for (o2 = 0; o2 < l2.length; o2++) u2 = (a2 = l2[o2]).nx(), h2.n4(u2.row, u2.col, u2.rowCount, u2.colCount);
              else l2.length > 0 && (s2 = l2[0].nx(), h2.n4(s2.row, s2.col, s2.rowCount, s2.colCount), s2.contains(h2.ui, h2.ci) || h2.XA(s2.row, s2.col));
              e3 = h2.getSelections(), h2.EA(n4, e3) && h2.jA(n4), i3 && f2._oldPosition && i3.changeSelectionInCommandExecuting(f2, null, null, e3);
            }
          }, n3.prototype.canExecute = function() {
            return W(this.tT.cachedActions);
          }, n3.prototype.canUndo = function() {
            return Q(this.tT.cachedActions);
          }, n3.prototype.undo = function() {
            return K(this);
          }, n3;
        })(d.ActionBase), n2.ClipboardPasteTransformUndoAction = $, tt = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return rt(n3, t3), n3.prototype.canExecute = function() {
            return r.mt.isEnablePasteSpecial(this.Mf);
          }, n3.prototype.execute = function() {
            var t4, n4, e3, r2 = this;
            return !!this.canExecute() && (n4 = this.Mf.parent, (e3 = new v.PasteSpecialDialog(n4, document.body, 2e3, true, null === (t4 = this.Mf) || void 0 === t4 ? void 0 : t4.parent.options.allowDynamicArray)).rQ((function(t5) {
              if (t5.operationOptions === i2.PasteOperationOptions.transform) {
                var e4 = t5.transformFormula;
                (e4.startsWith("=") || e4.startsWith("+")) && (e4 = e4.slice(1)), t5.transformFormula = "=LAMBDA(x," + e4 + ")";
              }
              n4.commandManager().execute({ cmd: "paste", sheetName: r2.tT.sheetName, pasteOption: t5.pasteOptions, pasteSpecialOptions: t5 });
            })), true);
          }, n3;
        })(d.ActionBase), n2.OpenPasteSpecialDialogActive = tt, nt = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return rt(n3, t3), n3.prototype.MI = function(t4, n4) {
            var e3, i3, r2 = ot(ot({}, t4), { rowCount: n4.rowCount > t4.rowCount ? n4.rowCount : t4.rowCount, colCount: n4.colCount > t4.colCount ? n4.colCount : t4.colCount }), o2 = [];
            for (e3 = 0; e3 < r2.rowCount; e3++) for (i3 = 0; i3 < r2.colCount; i3++) o2.push({ row: r2.row + e3, col: r2.col + i3 });
            return o2;
          }, n3.prototype.execute = function() {
            var t4, n4, e3 = this, a2 = e3.Mf, u2 = e3.tT.commandOptions, s2 = a2.parent.i4(), c2 = a2.getSelections()[0];
            e3.tT.selection = c2, o.Commands.II(s2), e3.X5(a2), a2.suspendCalcService(), a2.transformCells(u2.range, u2.scope, u2.result), a2.resumeCalcService(), e3.q5(a2), o.Commands.xI(s2, e3.tT), t4 = e3.MI(u2.range, c2), n4 = { sheet: a2, sheetName: a2.name(), row: c2.row, col: c2.col, rowCount: c2.rowCount, colCount: c2.colCount, changedCells: t4, isUndo: false, action: i2.RangeChangedAction.evaluateFormula }, a2.ki(r.Events.RangeChanged, n4);
          }, n3.prototype.undo = function() {
            var t4, n4, e3, a2 = this, u2 = a2.tT, s2 = a2.Mf, c2 = u2.commandOptions;
            return a2.X5(s2), t4 = o.Commands.TI(s2.name()), s2.Mtt(u2[t4]), a2.q5(s2), n4 = a2.MI(c2.range, u2.selection), e3 = { sheet: s2, sheetName: s2.name(), row: c2.range.row, col: c2.range.col, rowCount: u2.selection.rowCount, colCount: u2.selection.colCount, changedCells: n4, isUndo: true, action: i2.RangeChangedAction.evaluateFormula }, s2.ki(r.Events.RangeChanged, e3), true;
          }, n3;
        })(d.ActionBase), n2.TransformCells = nt, et = u.GC$, it = function(t3, n3) {
          var e3 = ot({}, t3);
          return [i2.ClipboardPasteOptions.formatting, i2.ClipboardPasteOptions.comments, i2.ClipboardPasteOptions.validation, i2.ClipboardPasteOptions.columnWidths].includes(n3) && (e3.operationOptions = i2.PasteOperationOptions.none), (n3 !== i2.ClipboardPasteOptions.all && n3 !== i2.ClipboardPasteOptions.noBorder || e3.operationOptions) && (e3.pasteLink = false), e3.advancedPasteOptions = {}, n3 === i2.ClipboardPasteOptions.validation ? e3.advancedPasteOptions.validator = true : n3 === i2.ClipboardPasteOptions.usingSourceTheme || n3 === i2.ClipboardPasteOptions.valuesAndSourceFormatting ? e3.advancedPasteOptions.usingSourceTheme = true : n3 === i2.ClipboardPasteOptions.noBorder ? e3.advancedPasteOptions.noBorder = true : n3 === i2.ClipboardPasteOptions.columnWidths || n3 === i2.ClipboardPasteOptions.allAndColumnWidth ? e3.advancedPasteOptions.columnWidth = true : n3 !== i2.ClipboardPasteOptions.valuesAndNumberFormatting && n3 !== i2.ClipboardPasteOptions.formulasAndNumberFormatting || (e3.advancedPasteOptions.numberFormats = true), e3;
        }, et.extend(a.Worksheet.prototype, { copyTo: function(t3, n3, e3, i3, r2, o2, a2) {
          this.vT(t3, n3, e3, i3, r2, o2, a2);
        }, vT: function(t3, n3, e3, i3, r2, o2, a2, u2, s2, f2, l2) {
          var h2 = this;
          h2.suspendPaint(), h2.suspendEvent(), c.staticMembers.copyTo(h2, t3, n3, f2 || h2, e3, i3, r2, o2, a2, u2, 0, s2, void 0, void 0, l2), h2.resumeEvent(), h2.resumePaint();
        }, moveTo: function(t3, n3, e3, r2, o2, a2, u2, s2, f2, l2) {
          var h2 = this;
          if (!(p && u2 & i2.CopyToOptions.formula) || h2.mT(t3, n3, o2, a2, true) && h2.mT(e3, r2, o2, a2, true)) try {
            h2.suspendPaint(), h2.suspendEvent(), h2.Lp.DFe = h2.Ut.pj(), c.staticMembers.moveTo(h2, t3, n3, h2, e3, r2, o2, a2, u2, s2, m, m, f2, l2), delete h2.Lp.DFe;
          } finally {
            h2.resumeEvent(), h2.resumePaint();
          }
        }, bT: function(t3) {
          var n3, e3, i3, r2, a2 = this, u2 = a2.yT(t3);
          if (u2) return n3 = "	", e3 = "\r\n", i3 = '"', r2 = a2.wT(t3), (0, o.getRangeText)(a2, u2.row, u2.rowCount, u2.col, u2.colCount, e3, n3, i3, false, r2.rows, r2.cols, true);
        }, MT: function(t3) {
          var n3, e3, r2 = this, o2 = r2.yT(t3);
          if (o2) return n3 = r2.wT(t3), e3 = lt(r2), s.yM.KS(r2, e3, o2.row, o2.rowCount, o2.col, o2.colCount, i2.SheetArea.viewport, ct(r2), n3.rows, n3.cols, false, false, false, false);
        }, CT: function(t3, n3, e3) {
          var o2, a2, u2, s2, c2 = this, f2 = c2.rt, l2 = c2.bT(t3);
          if (l2) {
            (o2 = c2.ST()).DS = c2, o2._S = t3, n3 && c2.NMi && 1 === t3.length && -1 === t3[0].row && -1 === t3[0].col && (n3 = false), o2.ES = n3, (a2 = c2.ST()).TT = true, u2 = c2.MT(t3), c2.AT && c2.AT(), c2.ieV && c2.ieV();
            try {
              if (s2 = { sheet: c2, sheetName: c2.name(), copyData: { text: l2, html: u2 }, ranges: t3, isCutting: n3, cancel: false, action: n3 ? i2.ClipboardActionType.cut : i2.ClipboardActionType.copy }, c2.ki(r.Events.ClipboardChanging, s2), s2 && false === s2.cancel) return f2 && !e3 && f2.IT(ct(c2) ? u2 : l2), c2.ki(r.Events.ClipboardChanged, { sheet: c2, sheetName: c2.name(), copyData: { text: l2, html: u2 } }), setTimeout((function() {
                !f2 || e3 || c2.xT || f2.NT();
              }), 100), { copyText: l2, copyHtml: u2 };
              o2.c5();
            } catch (t4) {
            }
          }
        }, kT: function(t3, n3, e3, i3, r2, o2, u2, c2, f2, l2, h2, d2, v2) {
          var p2, m2, b2, y2, w2, M2, C2, S2 = T().Exp_PasteSourceCellsLocked;
          if (u2.pastedInternal = false, u2.pastedRange = g, p2 = !o2 && !f2 && !v2, !t3 && p2) return false;
          if (t3 && a.Worksheet.et(t3, "checkingPastedRange"), b2 = m2 = this, y2 = m2.wT(n3), !v2 && m2._T(t3, m2.yT(n3, null == d2 ? void 0 : d2.transpose), b2, o2, y2.rows, y2.cols, l2) || p2) {
            if (u2.pastedInternal = true, r2 && t3.isActualProtected() && t3.ET(n3) && !xt(t3, i3)) return m2.jT(1, S2), false;
            u2.pastedRange = m2.OT(t3, n3, b2, e3, i3, r2, c2, d2);
          } else w2 = m2.RT(b2, e3, o2, s.yM.n5(f2)), M2 = m2.BT(b2, e3, f2), u2.pastedRange = w2.union(M2);
          return C2 = m2.LT(t3, n3, e3, i3, r2, u2, c2, h2, d2), t3 && a.Worksheet.et(t3, "checkedPastedRange"), C2;
        }, LT: function(t3, n3, e3, o2, a2, u2, s2, c2, f2) {
          var l2, h2, d2, v2, p2, g2, b2, w2, C2, S2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2 = this, F2 = T().Exp_InvalidCopyPasteSize, B2 = L2.FT(), P2 = T().Exp_PasteChangeMergeCell, G2 = T().Exp_ChangePartOfArray, U2 = L2, H2 = u2.pastedRange, V2 = U2.o5(), z2 = null == f2 ? void 0 : f2.pasteLink;
          if (!H2 && (null == f2 ? void 0 : f2.operationOptions) !== i2.PasteOperationOptions.transform) return L2.jT(1, F2), false;
          if (!xt(U2, o2) && !U2.PT(H2.row, H2.col, H2.rowCount, H2.colCount, { lockErrorMsg: B2, arrayFormulaErrorMsg: G2, shiftCells: s2, sheetArea: i2.SheetArea.viewport })) return false;
          if (u2.pastedInternal) {
            if (1 === (d2 = n3.length)) {
              if (v2 = n3[0], p2 = H2.rowCount, g2 = H2.colCount, b2 = v2.rowCount, w2 = v2.colCount, (null == f2 ? void 0 : f2.transpose) && (p2 = (l2 = [g2, p2])[0], g2 = l2[1], b2 = (h2 = [w2, b2])[0], w2 = h2[1]), a2 && !t3.PT(v2.row, v2.col, v2.rowCount, v2.colCount, { lockErrorMsg: B2, arrayFormulaErrorMsg: G2, sheetArea: i2.SheetArea.viewport })) return false;
              if (!z2 && t3.GT(v2.row, v2.col, b2, w2)) return L2.jT(1, P2), false;
              if (C2 = H2.row < 0 ? U2.getRowCount() : H2.rowCount, S2 = H2.col < 0 ? U2.getColumnCount() : H2.colCount, x2 = v2.row < 0 ? t3.getRowCount() : v2.rowCount, A2 = v2.col < 0 ? t3.getColumnCount() : v2.colCount, V2 && (C2 = (C2 -= U2.ix(e3.row, y(C2, x2), true)) < 1 ? 1 : C2, S2 = (S2 -= U2.ix(e3.col, y(S2, A2))) < 1 ? 1 : S2), I2 = 2 === o2 || (null == f2 ? void 0 : f2.pasteLink), (C2 > x2 || S2 > A2) && !I2) {
                if (k2 = e3.row, N2 = e3.col, e3.row < 0 && x2 < U2.getRowCount() && (k2 = 0), e3.col < 0 && A2 < U2.getColumnCount() && (N2 = 0), C2 % x2 === 0 && 1 === S2 ? (S2 = A2, V2 || (H2 = u2.pastedRange = new r.Range(k2, N2, C2, S2))) : 1 === C2 && S2 % A2 === 0 ? (C2 = x2, V2 || (H2 = u2.pastedRange = new r.Range(k2, N2, C2, S2))) : C2 % x2 === 0 && S2 % A2 === 0 || (C2 = x2, S2 = A2, H2 = u2.pastedRange = new r.Range(k2, N2, C2, S2)), j2 = M(C2 / x2), D2 = M(S2 / A2), s2 === m || a2 && (!c2 || !dt(U2, new r.Range(k2, N2, C2, S2)))) {
                  for (_2 = 0; _2 < j2; _2++) for (O2 = 0; O2 < D2; O2++) if (!L2.UT(v2, H2) && U2.GT(k2 < 0 ? -1 : k2 + _2 * x2, N2 < 0 ? -1 : N2 + O2 * A2, k2 < 0 ? -1 : x2, N2 < 0 ? -1 : A2)) return L2.jT(1, P2), false;
                }
              } else if (s2 === m && !L2.UT(v2, H2) && U2.GT(H2.row, H2.col, p2, g2)) return L2.jT(1, P2), false;
            } else if (d2 > 1) {
              for (E2 = 0; E2 < d2; E2++) if (R2 = n3[E2], t3.GT(R2.row, R2.col, R2.rowCount, R2.colCount)) return L2.jT(1, P2), false;
              if (U2.GT(H2.row, H2.col, H2.rowCount, H2.colCount)) return L2.jT(1, P2), false;
            }
          } else {
            if (U2.GT(H2.row, H2.col, H2.rowCount, H2.colCount)) return L2.jT(1, P2), false;
            if (!U2.HT(H2.row, H2.col, H2.rowCount, H2.colCount)) return L2.jT(1, F2), false;
          }
          return true;
        }, UT: function(t3, n3) {
          if (t3 && 1 === t3.rowCount && 1 === t3.colCount) {
            var e3 = this.getSpan(n3.row, n3.col);
            if (e3 && e3.equals(n3)) return true;
          }
          return false;
        }, _T: function(t3, n3, e3, i3, r2, a2, u2) {
          var s2, c2, f2, l2;
          if (t3 && n3 && e3) try {
            return (c2 = (s2 = (0, o.getRangeText)(t3, n3.row, n3.rowCount, n3.col, n3.colCount, "\r\n", "	", '"', false, r2, a2, true, C.safari, true)) === i3) || (!(c2 = s2 === i3 + "\r\n") && C.chrome && (c2 = s2 === i3 + "	\r\n"), c2 || !(C.safari || C.mozilla || u2) && ct(e3) || (c2 = s2.replace(/\s/g, "") === i3.replace(/\s/g, "")), c2 || (f2 = new RegExp(String.fromCharCode(160), "g"), l2 = String.fromCharCode(32), c2 = (s2 = s2.replace(f2, l2)).replace(/\s+$/, "") === i3.replace(/\s+$/, ""))), c2;
          } catch (t4) {
            return false;
          }
          return false;
        }, OT: function(t3, n3, e3, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, m2, b2, w2, M2, C2, S2, T2, A2, I2, k2, N2 = this, j2 = null == n3 ? void 0 : n3.length, D2 = e3.o5(), _2 = null == c2 ? void 0 : c2.transpose;
          if (1 === j2) {
            if (h2 = (l2 = n3[0]).row < 0 ? 0 : l2.row, d2 = l2.col < 0 ? 0 : l2.col, v2 = l2.row < 0 ? t3.getRowCount() : l2.rowCount, p2 = l2.col < 0 ? t3.getColumnCount() : l2.colCount, m2 = o2.row < 0 ? 0 : o2.row, b2 = o2.col < 0 ? 0 : o2.col, w2 = o2.row < 0 ? e3.getRowCount() : o2.rowCount, M2 = o2.col < 0 ? e3.getColumnCount() : o2.colCount, C2 = void 0, S2 = void 0, D2 && (w2 = (w2 -= C2 = e3.ix(m2, y(w2, v2), true)) < 1 ? 1 : w2, M2 = (M2 -= S2 = e3.ix(b2, y(M2, p2))) < 1 ? 1 : M2), T2 = 2 === a2 || (null == c2 ? void 0 : c2.pasteLink), u2 || 1 === w2 && 1 === M2 && !Lt(N2, l2)) w2 = v2, M2 = p2;
            else if (!T2 && (w2 % v2 === 0 && 1 === M2 ? M2 = p2 : 1 === w2 && M2 % p2 === 0 ? w2 = v2 : w2 % v2 === 0 && M2 % p2 === 0 || (w2 = v2, M2 = p2), !N2.zT(h2, d2, v2, p2, t3.getRowCount(), t3.getColumnCount()))) return g;
            if (!u2 && t3.name() === e3.name() && x(s2)) {
              if (A2 = new r.Range(m2, b2, w2, M2), I2 = v2, k2 = p2, _2 && (I2 = (f2 = [k2, I2])[0], k2 = f2[1]), A2.contains(h2, d2, I2, k2)) {
                if ((h2 - m2) % I2 !== 0 || (d2 - b2) % k2 !== 0) return g;
              } else if (A2.intersect(h2, d2, I2, k2) && (w2 > I2 || M2 > k2)) return g;
            }
            return D2 && (w2 += e3.lT(m2, w2, true), M2 += e3.lT(b2, M2)), e3.HT(m2, b2, w2, M2) || (null == c2 ? void 0 : c2.operationOptions) === i2.PasteOperationOptions.transform ? (-1 === o2.row && (m2 = -1, w2 = -1), -1 === o2.col && (b2 = -1, M2 = -1), new r.Range(m2, b2, w2, M2)) : g;
          }
          return j2 > 1 ? N2.fT(n3, o2, _2) : g;
        }, fT: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2 = this, b2 = m2.o5();
          if (t3.length > 1) {
            if (i3 = -1 === n3.row ? 0 : n3.row, o2 = n3.col < 0 ? 0 : n3.col, a2 = t3[0], u2 = t3[1], s2 = a2.rowCount, c2 = a2.colCount, f2 = a2.row === u2.row && s2 === u2.rowCount, l2 = a2.col === u2.col && c2 === u2.colCount, f2 && !e3 || l2 && e3) return h2 = 0, d2 = s2, t3.forEach((function(t4) {
              h2 += t4.colCount;
            })), b2 && (d2 += m2.lT(i3, d2, true), h2 += m2.lT(o2, h2)), (0, r.Ec)(i3, o2, d2, h2);
            if (l2 && !e3 || f2 && e3) return v2 = 0, p2 = c2, t3.forEach((function(t4) {
              v2 += t4.rowCount;
            })), b2 && (v2 += m2.lT(i3, v2, true), p2 += m2.lT(o2, p2)), (0, r.Ec)(i3, o2, v2, p2);
          }
          return g;
        }, RT: function(t3, n3, e3, i3) {
          var a2, u2, s2 = n3.row < 0 ? 0 : n3.row, c2 = n3.col < 0 ? 0 : n3.col, f2 = new r.Range(s2, c2, 1, 1), l2 = ht(e3, "\r\n", "	", '"', false, i3);
          return l2 && (a2 = l2.length, u2 = (0, o.getMaxLength)(l2), a2 > 0 && u2 > 0 && (t3.o5() && (a2 += t3.lT(s2, a2, true), u2 += t3.lT(c2, u2)), f2 = new r.Range(s2, c2, a2, u2))), f2;
        }, BT: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, c2 = n3.row < 0 ? 0 : n3.row, f2 = n3.col < 0 ? 0 : n3.col, l2 = 1, h2 = 1, d2 = t3.ST();
          return d2 && ((i3 = d2.i5()).innerHTML = e3, (a2 = (o2 = i3.getElementsByTagName("table")) && o2[0]) && ((u2 = a2.rows) && (l2 = u2.length, (s2 = u2[0] && u2[0].cells) && (h2 = s2.length)), l2 > 0 && h2 > 0 && t3.o5() && (l2 += t3.lT(c2, l2, true), h2 += t3.lT(f2, h2)))), new r.Range(c2, f2, l2, h2);
        }, YT: function() {
          var t3 = this.ST();
          t3 && t3.c5();
        }, y_e: function() {
          var t3 = this, n3 = t3.rt;
          n3.IT(C.safari ? "test" : ""), document.execCommand("copy"), setTimeout((function() {
            n3 && !t3.xT && n3.NT();
          }), 100);
        }, tA: function(t3) {
          var n3, e3, i3;
          return !this.isEditing() && (n3 = this.getSelections()) && 1 === n3.length ? (e3 = n3[0], (i3 = this.isActualProtected()) || (i3 = (0, a.isAnyCellProtectedInDataRange)(this, e3)), i3 && this.ET(n3) ? (this.jT(14, this.FT()), g) : this.CT(n3, true, t3)) : g;
        }, yT: function(t3, n3) {
          var e3, i3, o2, a2, u2;
          if (t3) {
            if (1 === (e3 = t3.length)) return k(t3[0], n3);
            if (e3 > 1) {
              if (i3 = t3[0], o2 = t3[e3 - 1], a2 = void 0, u2 = void 0, i3.row === o2.row && i3.rowCount === o2.rowCount) {
                for (a2 = 0; a2 < e3; a2++) (u2 = t3[a2]).col < i3.col && (i3 = u2), u2.col > o2.col && (o2 = u2);
                return k((0, r.Ec)(i3.row, i3.col, i3.rowCount, o2.col + o2.colCount - i3.col), n3);
              }
              if (i3.col === o2.col && i3.colCount === o2.colCount) {
                for (a2 = 0; a2 < e3; a2++) (u2 = t3[a2]).row < i3.row && (i3 = u2), u2.row > o2.row && (o2 = u2);
                return k((0, r.Ec)(i3.row, i3.col, o2.row + o2.rowCount - i3.row, i3.colCount), n3);
              }
            }
          }
          return g;
        }, wT: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = [], v2 = [];
          if (t3 && (n3 = t3.length) > 1 && (e3 = t3[0], i3 = t3[n3 - 1], r2 = e3.row === i3.row && e3.rowCount === i3.rowCount, o2 = e3.col === i3.col && e3.colCount === i3.colCount, r2 || o2)) for (t3.sort(r2 ? function(t4, n4) {
            return t4.col - n4.col;
          } : function(t4, n4) {
            return t4.row - n4.row;
          }), a2 = 1; a2 < n3; a2++) for (u2 = t3[a2 - 1], s2 = t3[a2], c2 = r2 ? u2.col + u2.colCount : u2.row + u2.rowCount, f2 = r2 ? s2.col : s2.row, l2 = r2 ? v2 : d2, h2 = c2; h2 < f2; h2++) l2.push(h2);
          return { rows: d2, cols: v2 };
        }, eA: function(t3) {
          var n3, e3, i3, o2, a2, u2, s2, c2, f2 = this;
          if (!f2.isEditing()) {
            if ((n3 = f2.getSelections()) && 1 === n3.length) {
              if ((e3 = f2.ST()).TT = true, i3 = n3[0], f2.iA && f2.iA()) {
                for (o2 = [], a2 = -1, u2 = -1 === i3.row ? 1 : 0, s2 = 0; s2 < i3.rowCount; s2++) c2 = i3.row + u2 + s2, f2.XT(c2) ? -1 !== a2 && (o2.push((0, r.Ec)(a2, i3.col, c2 - a2, i3.colCount)), a2 = -1) : -1 === a2 && (a2 = c2);
                -1 !== a2 && o2.push((0, r.Ec)(a2, i3.col, i3.row + u2 + i3.rowCount - a2, i3.colCount)), n3 = o2;
              }
              return f2.CT(n3, false, t3);
            }
            if (Ft(n3)) return f2.CT(n3, false, t3);
            f2.jT(1, T().Exp_MultipleSelections);
          }
          return g;
        }, rA: function(t3, n3) {
          var e3, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.rt;
          h2.isEditing() || (t3 && (e3 = t3.pasteText, o2 = t3.pasteHtml, a2 = void 0 === t3.pasteOption ? h2.options.clipBoardOptions : t3.pasteOption, u2 = t3.shiftCells, f2 = t3.isHeaderPaste, c2 = t3.isFromDesigner, s2 = h2.getSelections()[0], p || !t3.pasteSpecialOptions || [i2.ClipboardPasteOptions.all, i2.ClipboardPasteOptions.formulas, i2.ClipboardPasteOptions.values, i2.ClipboardPasteOptions.valuesAndNumberFormatting, i2.ClipboardPasteOptions.formulasAndNumberFormatting].includes(a2) || t3.pasteSpecialOptions.operationOptions !== i2.PasteOperationOptions.transform || (t3.pasteSpecialOptions.operationOptions = 0, t3.pasteSpecialOptions.pasteLink = false)), d2 && !e3 && n3 && d2.IT(""), (l2 = h2.ST()) && (l2.oA = false), setTimeout((function() {
            var i3, v2, p2, g2, m2, b2, y2, w2, M2;
            if (!h2.xT) {
              if (i3 = e3 || "", v2 = o2 || "", d2 && !e3) {
                if (l2 && (m2 = l2.QS(), b2 = l2.DS, i3 = m2.text, v2 = m2.html, g2 = m2.image, p2 = l2._S, b2 && p2)) for (y2 = 0, w2 = p2; y2 < w2.length; y2++) M2 = w2[y2], r.mt.J0(M2, b2.getRowCount(), b2.getColumnCount());
                n3 && d2.NT();
              }
              (C.msie || C.edge || e3 || !i3 && !v2 && !l2.oA) && h2.US(i3, v2, g2, a2, u2, s2, p2, c2, f2, null == t3 ? void 0 : t3.pasteSpecialOptions), h2.rt.aA(), h2.ki(r.Events.PasteEnd);
            }
          }), 100));
        }, US: function(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2) {
          var l2, h2 = this, d2 = h2.ST();
          if (d2 && (d2.oA = true), !(l2 = h2.uA(t3, i3, o2, n3, s2, c2, f2, e3))) {
            if (!e3) return;
            l2 = { pasteOption: void 0 === i3 ? h2.options.clipBoardOptions : i3, pastedRanges: [(0, r.Ec)(h2.getActiveRowIndex(), h2.getActiveColumnIndex(), 1, 1)], clipboardText: "" };
          }
          o2 !== m && (l2._shiftCells = o2), x(c2) || (l2._isHeaderPaste = c2), a2 && (l2._acCell = a2), u2 && (l2._dataRange = u2), l2.cmd = "clipboardPaste", l2.sheetName = h2.name(), l2.pasteSpecialOptions = it(f2, l2.pasteOption), ct(h2) && (l2.clipboardHtml = n3, l2.clipboardImage = e3), h2.Qy().execute(l2);
        }, uA: function(t3, n3, e3, i3, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, x2, A2 = this, I2 = T().Exp_InvalidPastedArea, k2 = A2.ST(), N2 = k2.DS, j2 = k2._S, D2 = k2.ES;
          if (k2._S && (null == u2 ? void 0 : u2.transpose)) {
            for (j2 = [], c2 = 0; c2 < k2._S.length; c2++) l2 = (f2 = k2._S[c2]).row < 0 ? 0 : f2.row, h2 = f2.col < 0 ? 0 : f2.col, d2 = f2.row < 0 ? N2.getRowCount() : f2.rowCount, v2 = f2.col < 0 ? N2.getColumnCount() : f2.colCount, j2.push(new r.Range(l2, h2, d2, v2));
            for (c2 = 0; c2 < j2.length; c2++) j2[c2] = new r.Range(j2[c2].row, j2[c2].col, j2[c2].colCount, j2[c2].rowCount);
          }
          if (D2 && N2 && j2 && N2.isActualProtected() && N2.ET(j2) && (D2 = false), p2 = { pastedRange: g, pastedInternal: false }, b2 = [], (y2 = A2.getSelections()).length > 1) for (M2 = 2 === n3, c2 = 0; c2 < y2.length; c2++) {
            if (w2 = y2[c2], !A2.kT(N2, j2, w2, n3, D2, t3, p2, m, i3, o2, a2, u2, s2)) return;
            if (w2.containsRange(p2.pastedRange) && !w2.equals(p2.pastedRange) && !M2) return void A2.jT(1, I2);
            b2.push(p2.pastedRange);
          }
          else {
            if (w2 = y2.length > 0 ? y2[0] : A2.Ut.getSpan(A2.ui, A2.ci), !A2.kT(N2, j2, w2, n3, D2, t3, p2, e3, i3, o2, a2, u2, s2)) return;
            b2.push(p2.pastedRange);
          }
          if ((C2 = A2.lA) && C2._T(p2.pastedInternal), p2.pastedInternal || (N2 = g, j2 = g, D2 = false), S2 = void 0 === n3 ? A2.options.clipBoardOptions : n3, D2 && (S2 = A2.hA), j2 && 1 === j2.length) for (x2 = 0; x2 < b2.length; x2++) f2 = b2[x2], A2.UT(j2[0], f2) && (f2.rowCount = 1, f2.colCount = 1);
          if (!((!j2 || j2.length > 1) && b2.length > 1)) return { fromSheet: N2, fromRanges: j2, isCutting: D2, pasteOption: S2, pastedRanges: b2, clipboardText: t3 };
          A2.jT(1, T().Exp_MultipleSelections);
        }, HT: function(t3, n3, e3, i3, r2) {
          var o2 = this, a2 = o2.getRowCount(), u2 = o2.getColumnCount();
          return ft(o2) ? -1 <= t3 && (r2 || t3 < a2) && -1 <= n3 && (r2 || n3 < u2) : o2.zT(t3, n3, e3, i3, a2, u2);
        }, evaluateFormulaByScope: function(t3, n3, e3, i3, r2, o2, a2) {
          return L(this, t3, n3, e3, i3, r2, o2, a2);
        }, transformCells: function(t3, n3, e3, i3, r2, o2, a2, u2) {
          return Z(this, t3, n3, e3, i3, r2, o2, a2, u2);
        } });
      }, "./dist/core/worksheet/worksheet-edit.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/core/worksheet/worksheet.js"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/util/domUtil.js"), a = o.GC$, u = e2("Common"), s = e2("./dist/core/core.enum.js"), c = e2("CalcEngine"), f = !!c, l = r.mt.Tt, h = r.mt.pi(), d = u.Common.lt.ht, v = u.Common.CultureManager, p = null, g = void 0, m = "string", b = r.mt.wt, y = { startEdit: function(t3, n3) {
          var e3 = this;
          e3.f6(e3.Dg(), e3.ui, e3.ci, p, p, t3, n3);
        }, editorStatus: function() {
          return this.Di || 0;
        }, setEditorStatus: function(t3) {
          var n3;
          this.Di = t3;
        }, isEditing: function() {
          var t3 = this.Di;
          return 1 === t3 || 2 === t3;
        }, endEdit: function(t3, n3) {
          return this.ol(t3, void 0, void 0, void 0, n3);
        }, ol: function(t3, n3, e3, r2, o2) {
          var a2, u2, c2, f2, l2, h2 = this;
          if (!h2.isEditing()) return true;
          h2.suspendPaint();
          try {
            return a2 = {}, i2.Worksheet.et(h2, "beforeEndEditImp", a2), a2.cancel && (t3 = true), a2.editingCellInfo && (h2.vA = a2.editingCellInfo), u2 = h2.ui, c2 = h2.ci, f2 = s.SheetArea.viewport, (l2 = h2.vA) && (u2 = l2.row, c2 = l2.col, f2 = l2.sheetArea, h2.vA = g), h2.l6(u2, c2, f2, t3, n3, e3, r2, o2);
          } finally {
            h2.resumePaint();
          }
        }, l6: function(t3, n3, e3, o2, u2, c2, f2, h2) {
          var v2, m2, b2, y2, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z;
          if (void 0 === e3 && (e3 = s.SheetArea.viewport), m2 = (v2 = this).rt, b2 = v2.li, y2 = v2.name(), w = t3, M = n3, T = v2.getCellType(w, M, e3), x = { sheet: v2, row: w, col: M, sheetArea: e3 }, T.isImeAware(x) || m2.aA(), b2 && b2.parentNode) {
            if (A = { sheet: v2, sheetName: y2, row: w, col: M, editor: b2, editingText: S = T.getEditorValue(b2, x), cancel: false, committed: !o2 }, v2.ki(r.Events.EditEnd, A), A.cancel && !f2) return;
            if (v2.ki(r.Events.EditEnding, A), A.cancel && !f2) return;
            if (k = (I = v2.parent) && I.h6, document.activeElement === (k && k.Ti) && m2.aA(), w >= 0 && M >= 0 && (N = b2.d6, j = v2.getFormulaInformation && v2.getFormulaInformation(w, M, 3), T.isEditingValueChanged(N, S, x) || 1 === u2 || j && j.isArrayFormula && 1 !== u2)) {
              if (o2) T.setEditorValue(b2, N, x), T.selectAll(b2, x);
              else if (D = T.v6, d(D) && (D = true), (_ = v2.getActualStyle(w, M)).mask && j && !j.hasFormula && S && r.FormulaPrefix.indexOf(S[0]) > -1 && (!v2.NMi || (0, r.kf)(S)) && (S = "'" + S), O = { cmd: "editCell", sheetName: y2, row: w, col: M, sheetArea: e3, newValue: S, autoFormat: D, editingFormatter: b2.Ii }, v2.dataRanges && (E = v2.dataRanges.getByPosition(w, M)) && (R = E.convertContext({ sheet: v2, row: w, col: M, sheetArea: e3 })) && R.sheet !== v2 && (O.sheetName = R.sheet.name(), O.row = R.row, O.col = R.col, O.sheetArea = R.sheetArea), 1 === u2 && (O.ranges = [v2.U5()], O.endEditType = u2), null !== S && (L = v2.tables && v2.tables.find && (v2.tables.find(w - 1, M) || v2.tables.find(w, M - 1))) && (v2.Buo || (v2.Buo = []), v2.Buo.push([{ row: O.row, col: O.col, rowCount: 1, colCount: 1 }, O.ranges ? O.ranges.slice() : O.ranges]), v2.tables.yx(p, new r.Range(w, M, 1, 1), null, S, true), F = v2.Buo.pop(), O.row = F[0].row, O.col = F[0].col, F[1] && (O.ranges = F[1]), 0 === v2.Buo.length && delete v2.Buo), v2.Qy().execute(O), 2 === (C = O.applyResult) && (T.focus(b2, x), !f2)) return false;
            }
            if (v2.k1 = true, B = e3 === s.SheetArea.colHeader ? -1 : g, P = e3 === s.SheetArea.rowHeader ? -1 : g, T.Sn(b2, x, v2.getCellRect(w, M, B, P)), T.isImeAware(x)) l.msie && 9 === parseFloat(l.version) ? m2.aA() : a(b2.parentNode.parentNode).css({ width: 0, height: 0, overflow: "hidden", border: "none" });
            else for (G = v2.qc(), U = b2; U; ) U.parentNode === G ? G.removeChild(U) : U = U.parentNode;
          }
          return v2.u0 = false, H = { sheet: v2, sheetName: y2, row: w, col: M, editingText: S, ignoreValueChange: o2, sheetArea: e3, committed: !o2 }, V = a.extend({}, H), false !== h2 && v2.ki(r.Events.EditEnded, H), v2.ki(r.Events.FormulaTextboxEditEnded, V), !(true !== c2 && V.ignore && !f2) && (0 !== v2.Di && (z = v2.Di, v2.Di = 0, v2._i(z, 0)), v2.Ut.setCellState(w, M, s.CellStatesType.edit, false, e3), i2.Worksheet.et(v2, "endEdit"), v2.li = p, 1 !== C);
        }, m6: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.hitTest(n3, e3);
          !h2 || h2.cellTypeHitInfo && (h2.cellTypeHitInfo.outlineColumnHitInfo || h2.cellTypeHitInfo.cellButtonHitInfo) || (i3 = h2.row, r2 = h2.col, i3 >= 0 && r2 >= 0 && h2.rowViewportIndex >= 0 && h2.colViewportIndex >= 0 && !h2.resizeInfo && !h2.dragInfo && i3 === l2.ui && r2 === l2.ci && (o2 = l2.isEditing(), l2.f6(t3, i3, r2), !o2 && l2.isEditing() && (a2 = h2.hitTestType, (u2 = l2.getCellType(i3, r2)).j3 && (s2 = l2.getCellRect(i3, r2, 1 === a2 ? -1 : g, 2 === a2 ? -1 : g), c2 = l2.getActualStyle(i3, r2, a2), (f2 = u2.Bn(n3, e3, c2, s2, { sheet: l2, row: i3, col: r2, sheetArea: a2 })) && f2.isReservedLocation && u2.j3(l2, i3, r2, 3)))));
        }, inputFormulaAndSelectFormulaRange: function(t3, n3, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, m2 = this, b2 = m2.options, y2 = m2.getCellRect(t3, n3), w = m2.getActualStyle(t3, n3), M = m2.getCellType(t3, n3), C = m2.rt;
          C.Zg(), c2 = { sheet: m2, row: t3, col: n3, sheetArea: 3 }, M.wkr(c2) && ((f2 = C.g6) && f2.firstChild && (l2 = f2.firstChild.firstChild), l2 && (m2.li = l2, h2 = m2.Fi(), M.isImeAware(c2) && C.p6(), M.On(f2, w, y2, c2), m2.Ri(M, l2, t3, n3, w, g, g, g, g, 3), M.Rn(f2, w, y2, c2), b2.allowCellOverflow && ((d2 = y2.clone()).y -= 2, d2.height += 4, d2.x = b2.rightToLeft ? h2.x : h2.b6, d2.width = m2.Gy(h2), m2.repaint(d2)), i2.Worksheet.et(m2, "startEdit", { element: M.getEditingElement(), row: t3, col: n3, sheetArea: 3 }), m2.Di = 2, m2.il.text(a2), m2.il.caret(a2.length - 1), u2 && s2 ? (p2 = (v2 = e2("SheetsCalc")).formulaToRange(m2, u2), m2.rt.Lvt = { anchorRow: p2.row, anchorCol: p2.col, leadingRow: p2.row, leadingCol: p2.col }, m2.il.Gvt(u2, true, true)) : u2 && m2.il.Gvt(u2, false, false), o2 && m2.il.y6(3, 4), m2.il.w6(), r.hi.F1(m2)));
        }, f6: function(t3, n3, e3, o2, u2, c2, g2, m2, b2, y2) {
          var w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot;
          if (a[a.sd]({ jS: this.parent }), !(n3 < 0 || e3 < 0 || (C = (M = this).name(), S = M.options, M.isEditing()))) {
            if (T = M.C6(o2, u2), d(T) && (T = 3), (x = M.Ut).setCellState(n3, e3, s.CellStatesType.edit, true, T), A = M.getActualStyle(n3, e3, T), I = M, M.dataRanges && (k = M.dataRanges.getByPosition(n3, e3)) && (N = k.convertContext({ sheet: M, row: n3, col: e3, sheetArea: s.SheetArea.viewport })) && (I = N.sheet), I.isActualProtected() && false !== A.locked) return x.setCellState(n3, e3, s.CellStatesType.edit, false, T), void (T === s.SheetArea.viewport && M.jT(13, M.FT()));
            if (false !== A.allowEditInCell) if (j = M.getCellType(n3, e3, T)) if (_ = { row: n3, col: e3, sheetArea: T, isAllow: D = true }, i2.Worksheet.et(M, "allowStartEdit", _), _.isAllow) if ((O = M.rt).Zg(), E = { sheet: M, row: n3, col: e3, sheetArea: T }, (R = j.isImeAware(E) ? O.g6 : j.jn(E)) && R.firstChild && (L = R.firstChild.firstChild), L) {
              if (F = A, B = false, G = v.culture(), (F.formatter && r.util.h0(F.formatter, G) || !F.formatter && F._autoFormatter && F._autoFormatter.formatCached && r.util.h0(F._autoFormatter, G)) && (b2 && b2.key && ((U = b2.key) && -1 !== r.NUMBER_ARRAY.indexOf(U) && (B = true), "+" !== U && "-" !== U || (j.probabilityAddPercent = true)), H = R.innerText, l.msie && (H = H.replace("\r\n", "")), V = v.Fe(v.culture()).NumberFormat.numberDecimalSeparator, z = new RegExp("^[-]?[0-9]+(\\" + V + "[0-9]+)?$"), !b2 && H && z.test(H) && (P = true)), M.li = L, Y = { sheet: M, sheetName: C, row: n3, col: e3, cancel: false }, M.ki(r.Events.EditStarting, Y), Y.cancel) return h.ipad && O.aA(), void x.setCellState(n3, e3, s.CellStatesType.edit, false, T);
              M.vA = { row: n3, col: e3, sheetArea: T }, 3 === T && M.showCell(n3, e3, 3, 3), M.S6 = true, Z = M.getValue(n3, e3, T), W = f && M.getFormula(n3, e3, T), Q = M.editorStatus(), d(y2) ? M.Ai || d(Z) && d(W) ? M.Di = 1 : M.Di = 2 : M.Di = y2, M._i(Q, M.Di), M.isPaintSuspended() && M.n3(), K = M.Fi(), !(J = M.getCellRect(n3, e3, o2, u2)) || d(J.width) || d(J.height) || d(J.x) || d(J.y) || J.width <= 0 || J.height <= 0 || (j.isImeAware(E) && O.p6(), j.On(R, A, J, E), M.Ri(j, L, n3, e3, A, g2, m2, B, P, T), X = M.qc(), j.isImeAware(E) || X.insertBefore(R, p), delete M.S6, j.Rn(R, A, J, E), j.isImeAware(E) && c2 || j.focus(L, E), S.allowCellOverflow && ((q = J.clone()).y -= 2, q.height += 4, M._1 && M._1.isEnable(s.RowColumnStates.edit, false) && (q.y = K.T6, q.height = K.A6), q.x = S.rightToLeft ? K.x : K.b6, q.width = M.Gy(K), (($ = M).getSelections() || []).forEach((function(t4) {
                var n4 = $.getRangeRect(o2, u2, t4);
                n4 && -1 !== n4.x && -1 !== n4.y && -1 !== n4.width && -1 !== n4.height && (n4.y < q.y && (q.y = n4.y), n4.height + n4.y > q.height + q.y && (q.height = n4.height + n4.y - q.y));
              })), null === (w = M.Dn) || void 0 === w || w.Vao(q)), r.util.HRe(n3, e3, M) && !b2 && (j.setEditorValue(L, "", E), P = false), i2.Worksheet.et(M, "startEdit", { element: j.getEditingElement(), row: n3, col: e3, sheetArea: T, preventFormulaTextBox: !!A.mask }), B || !c2 || A.mask || j.selectAll(L, E), B && (tt = window.getSelection(), (nt = document.createRange()).setStart(L, 0), tt.removeAllRanges(), tt.addRange(nt)), P && (tt = window.getSelection(), (et = document.createElement("span")).innerText = "%", nt = document.createRange(), M.parent.options.enableFormulaTextbox && M.parent.options.allowUserEditFormula && !A.mask ? ((it = L.firstChild) ? ("#text" === it.nodeName && (rt = document.createElement("span"), L.insertBefore(rt, it), rt.appendChild(it)), L.firstChild.appendChild(et), nt.setStart(L.firstChild, 1)) : nt.setStart(L, 0), M.il && M.il.I6()) : (L.appendChild(et), nt.setStart(L, 1)), tt.removeAllRanges(), tt.addRange(nt)), r.hi.F1(M), ot = { sheet: M, sheetName: C, row: n3, col: e3, sheetArea: T }, M.ki(r.Events.EditStarted, ot), M.ki(r.Events.FormulaTextboxEditStarted, ot));
            } else x.setCellState(n3, e3, s.CellStatesType.edit, false, T);
            else x.setCellState(n3, e3, s.CellStatesType.edit, false, T);
            else x.setCellState(n3, e3, s.CellStatesType.edit, false, T);
            else x.setCellState(n3, e3, s.CellStatesType.edit, false, T);
          }
        }, Ri: function(t3, n3, e3, i3, o2, a2, u2, s2, c2, l2) {
          var h2, v2, p2, g2, m2, y2 = this, w = f && y2.getFormula(e3, i3, l2, true);
          w && (w = "=" + w), h2 = w, v2 = { sheet: y2, row: e3, col: i3, sheetArea: l2, isImeInput: u2, cellStyle: o2 }, w && 0 !== w.length || ((w = y2.getValue(e3, i3, l2, 1)) && w.richText && (w = b(w)), p2 = y2.parent, g2 = f && p2 && p2.options.allowUserEditFormula, m2 = f && p2 && p2.options.allowInvalidFormula, r.util.c0(w, o2.quotePrefix, g2, m2) ? h2 = w = "'" + w : (h2 = w, w = t3.je(n3, o2, w, v2))), n3.d6 = w, d(a2) || (w = a2), c2 && w && (w = this.x6(w, o2)), o2.mask && o2.mask.pattern && "'" !== o2.mask.pattern[0] && w && "'" === w[0] && r.FormulaPrefix.indexOf(w[1]) > -1 && (w = w.substring(1, w.length)), t3.setEditorValue(n3, w, v2, s2, c2), y2.parent && y2.parent.options.enableAccessibility && (y2.parent.She(), y2.The(n3, w, e3, i3, l2)), n3.Li = h2;
        }, The: function(t3, n3, e3, i3, r2) {
          var o2 = this, a2 = n3 && "=" === n3[0], u2 = o2.getText(e3, i3, r2), s2 = a2 ? n3 : o2.getFormula(e3, i3, r2), c2 = 3 === r2 && o2.comments && o2.comments.get(e3, i3), f2 = o2.N6(e3, i3, r2, u2, s2, c2 && c2.text());
          t3.setAttribute("aria-label", f2), o2.setAccessibilityPrefixSuffixContent && o2.setAccessibilityPrefixSuffixContent();
        }, k6: function(t3) {
          var n3 = "", e3 = t3 && (t3.formatter || t3._autoFormatter);
          return e3 && (n3 = typeof e3 === m ? e3 : e3.formatCached), n3;
        }, x6: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = v.Fe(v.culture()).NumberFormat, l2 = f2.negativeSign, h2 = f2.numberDecimalSeparator, d2 = this.k6(n3), p2 = "%" === d2[0], g2 = d2.split(";");
          if (p2 ? e3 = g2[0].split("%")[1].split(".")[1] : g2[0].indexOf("%") > -1 && (e3 = "00"), void 0 === e3 && (e3 = ""), (t3 = t3.toString()).split("e").length > 1) return i3 = t3.split("e")[0], r2 = t3.split("e")[1], i3 + "e+" + (parseInt(r2.split("+")[1], 10) + 2);
          if (t3.split(h2).length > 1) {
            for (o2 = false, t3.charAt(0) === l2 && (t3 = t3.substr(1, t3.length - 1), o2 = true), a2 = (t3 += e3).indexOf(h2), s2 = (u2 = (t3 = (t3 = t3.split(h2).join("")).substr(0, a2 + 2) + h2 + t3.substr(a2 + 2, t3.length - 1)).split(h2))[0], c2 = u2[1]; s2 && "0" === s2.charAt(0); ) s2 = s2.substr(1, s2.length - 1);
            for (; c2 && "0" === c2.charAt(c2.length - 1); ) c2 = c2.substr(0, c2.length - 1);
            return o2 && s2 && (s2 = l2 + s2), s2 && c2 ? s2 + h2 + c2 : !s2 && c2 ? (o2 ? l2 + "0" + h2 : "0" + h2) + c2 : s2 && !c2 ? s2 : "0";
          }
          return "0" === t3 ? t3 : t3 + e3;
        } }, a.extend(i2.Worksheet.prototype, y);
      }, "./dist/core/worksheet/worksheet-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt;
        function gt(t3, n3) {
          var e3, i3 = [n3, n3];
          return t3 < 3 * n3 && (i3 = 2 === t3 || 1 === t3 ? [0, 1] : [e3 = F(t3 / 3), e3]), i3;
        }
        function mt(t3, n3) {
          var e3 = 3;
          return xt(n3) < 0 && (e3 = 1), At(n3) < 0 && (e3 = 2), !(3 === e3 || !t3.ni(n3.row, n3.col, e3, true));
        }
        function bt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, f2, l2, h2, d2, v2, p2 = false, g2 = t3.Fi();
          return n3 && (i3 = xt(n3), o2 = (r2 = At(n3)) < 0 && n3.col >= t3.getFreeAreaColumnCount(c.SheetArea.rowHeader), a2 = i3 < 0 && n3.row >= t3.getFreeAreaRowCount(c.SheetArea.colHeader), (o2 || a2) && ((u2 = t3.getCellRect(n3.row, n3.col, i3, r2, { needAutoMerge: true })) && u2.width > 0 && u2.height > 0 ? (f2 = g2.x, l2 = g2.y, (u2.x < g2.XC + f2 || u2.y < g2.qC + l2 || u2.y >= g2.height - g2.D6) && (h2 = new s.Rect(u2.x - 2, u2.y - 2, u2.width + 4, u2.height + 4), d2 = void 0, d2 = i3 < 0 && r2 < 0 ? g2.R1() : i3 < 0 ? g2.L1(r2) : g2.B1(i3), h2 = h2.getIntersectRect(d2), e3._6(h2.x, h2.y, h2.width, h2.height), p2 = mt(t3, n3))) : n3.cellTypeHitInfo && n3.cellTypeHitInfo.addRowColumnButtonHitInfo && (h2 = void 0, 1 === (v2 = n3.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType ? h2 = g2.Z_e() : 2 === v2.addRowColumnButtonType && (h2 = g2.W_e()), e3._6(h2.x, h2.y, h2.width, h2.height)))), p2;
        }
        function yt(t3) {
          return t3.isEditing();
        }
        function wt(t3) {
          return t3.endEdit();
        }
        function Mt(t3) {
          return t3.frozenRowCount();
        }
        function Ct(t3) {
          return t3.frozenColumnCount();
        }
        function St(t3, n3) {
          return t3.getRowCount(n3);
        }
        function Tt(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function xt(t3) {
          return t3.rowViewportIndex;
        }
        function At(t3) {
          return t3.colViewportIndex;
        }
        function It(t3) {
          return t3.hitTestType;
        }
        function kt(t3) {
          return t3.getActiveRowIndex();
        }
        function Nt(t3) {
          return t3.getActiveColumnIndex();
        }
        function jt(t3) {
          return t3.keyCode;
        }
        function Dt(t3) {
          return t3.ctrlKey;
        }
        function _t(t3) {
          return t3.shiftKey;
        }
        function Ot(t3) {
          return t3.altKey;
        }
        function Et(t3) {
          return t3.metaKey;
        }
        function Rt(t3) {
          return t3.colCount;
        }
        function Lt(t3) {
          return t3.rowCount;
        }
        function Ft(t3, n3, e3) {
          return { action: t3, index: n3, sheetArea: e3 };
        }
        function Bt(t3, n3, e3) {
          return _ === n3.O5(t3, e3, true);
        }
        function Pt(t3, n3, e3) {
          return _ === n3.j5(t3, e3, true);
        }
        function Gt(t3, n3) {
          return n3 ? t3.E6 ? t3.startY - t3.movingY : t3.movingY - t3.startY : t3.j6 || t3.Hur ? t3.startX - t3.movingX : t3.movingX - t3.startX;
        }
        function Ut(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2 = { sheet: t3, sheetName: n3, sheetArea: r2, row: e3, col: i3 }, f2 = false === (null === (u2 = t3.getActualStyle(e3, i3, r2)) || void 0 === u2 ? void 0 : u2.allowEditInCell);
          return f2 && (c2.readonly = true), (s2 = t3.getCellType(e3, i3)) && (c2 = s2.lfe(c2, a2)), o2 && (c2.cancel = false), c2;
        }
        function Ht(t3, n3, e3, i3, r2, o2) {
          var a2 = t3.Mf, u2 = Ut(a2, a2.name(), a2.ui, a2.ci, O, true);
          if (a2.ki(s.Events.LeaveCell, u2), u2 && true === u2.cancel) return true;
          a2.O6(n3, e3, i3, r2, o2), a2.ki(s.Events.EnterCell, Ut(a2, a2.name(), n3, e3)), a2.ki(s.Events.EnterCellInternal, Ut(a2, a2.name(), n3, e3, O, O, s.Events.EnterCellInternal)), t3.PA && t3.PA(n3, e3);
        }
        function Vt(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2 = t3.Mf, c2 = n3.call(s2, o2.sheetArea);
          return (a2 && !s2.getRowVisible(o2.index, o2.sheetArea) || !a2 && !s2.getColumnVisible(o2.index, o2.sheetArea)) && (o2.index = e3.call(t3, o2.index, o2.sheetArea)), (u2 = i3.call(c2, o2.index)) || (u2 = i3.call(c2, r2)), u2;
        }
        function zt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2 = i3 ? "movingY" : "movingX", c2 = i3 ? "startY" : "startX";
          t3[s2] = n3, (o2 = t3.j6 || t3.Hur || t3.E6 ? t3[s2] > t3[c2] : t3[s2] < t3[c2]) && (t3[s2] = t3[c2]), a2 = i3 ? e3.y + e3.height : e3.x + e3.width, u2 = i3 ? t3.R6 : t3.B6, t3[s2] > a2 && !u2 && (t3[s2] = a2), r2 !== _ && t3[s2] > t3[c2] + r2 && (t3[s2] = t3[c2] + r2);
        }
        function Yt(t3, n3) {
          var e3, i3 = t3.Fi();
          return Mt(t3) > 0 && n3 < i3.T6 + i3.L6 ? 0 : t3.frozenTrailingRowCount() > 0 && n3 > i3.Ay ? 2 : t3.Csr && (e3 = t3.dw(3)) && e3.findY(n3) ? 3 : 1;
        }
        function Zt(t3, n3) {
          var e3 = t3.Fi();
          return Ct(t3) > 0 && e3.b6 < n3 && n3 < e3.b6 + e3.F6 ? 0 : t3.frozenTrailingColumnCount() > 0 && n3 > e3.Hy && n3 < e3.Hy + e3.zy ? 2 : 1;
        }
        function Wt(t3, n3, e3) {
          var i3 = t3._y(n3);
          return i3 ? i3.findNearY(e3, t3.options.rightToLeft) : _;
        }
        function Qt(t3, n3) {
          var e3 = t3._y(-1, c.SheetArea.colHeader);
          return e3 ? e3.findNearY(n3, t3.options.rightToLeft) : _;
        }
        function Kt(t3, n3, e3) {
          var i3 = t3.Yy(n3);
          return i3 ? i3.findNearX(e3, t3.options.rightToLeft) : _;
        }
        function Jt(t3, n3) {
          var e3 = t3.Yy(-1, c.SheetArea.rowHeader);
          return e3 ? e3.findNearX(n3, t3.options.rightToLeft) : _;
        }
        function Xt(t3) {
          return !t3.isActualProtected() || t3.options.protectionOptions.allowResizeRows;
        }
        function qt(t3) {
          return !t3.isActualProtected() || t3.options.protectionOptions.allowResizeColumns;
        }
        function $t(t3, n3) {
          var e3 = n3.row, i3 = n3.rowCount, r2 = n3.col, o2 = n3.colCount, a2 = t3.getColumnCount(), u2 = t3.getRowCount();
          return o2 + r2 > a2 && (o2 = a2 - r2), i3 + e3 > u2 && (i3 = u2 - e3), { row: e3, col: r2, rowCount: i3, colCount: o2 };
        }
        function tn(t3, n3) {
          var e3, i3 = t3.getViewportBottomRow(t3.C0(n3));
          if (-1 === i3 && (i3 = t3.P6()), n3 < i3) {
            for (e3 = i3; e3 > n3; e3--) if (0 !== t3.getRowHeight(e3)) return false;
          }
          return true;
        }
        function nn(t3) {
          var n3, e3, i3 = t3.Ut.getSelections();
          if (i3.length > 0) return n3 = 0, e3 = t3.getRowCount(), i3.every((function(i4) {
            var r2, o2, a2 = $t(t3, i4), u2 = false;
            return 1 === a2.rowCount && (u2 = (n3 += 1) <= 1), r2 = a2.row < e3, (o2 = -1 !== a2.col) || u2 && r2;
          }));
        }
        function en(t3, n3, e3) {
          var i3 = t3.parent, r2 = i3.options.rowResizeMode;
          return e3 && 0 === r2 && (r2 = 1), n3.action !== it && 1 === r2 && (!tn(t3, n3.index) && (!(!t3.getRowResizable(n3.index, n3.sheetArea) || !t3.getRowResizable(n3.index + 1, n3.sheetArea)) && nn(t3)));
        }
        function rn(t3, n3, e3, i3) {
          return en(t3, n3, i3) && 1 === e3.length && e3[0].firstRow === e3[0].lastRow;
        }
        function on(t3, n3) {
          var e3, i3 = t3.getViewportRightColumn(t3.S0(n3));
          if (-1 === i3 && (i3 = t3.G6()), n3 < i3) {
            for (e3 = i3; e3 > n3; e3--) if (0 !== t3.getColumnWidth(e3)) return false;
          }
          return true;
        }
        function an(t3) {
          var n3, e3, i3 = t3.Ut.getSelections();
          if (i3.length > 0) return n3 = 0, e3 = t3.getColumnCount(), i3.every((function(i4) {
            var r2, o2, a2 = $t(t3, i4), u2 = false;
            return 1 === a2.colCount && (u2 = (n3 += 1) <= 1), r2 = a2.col < e3, (o2 = -1 !== a2.row) || u2 && r2;
          }));
        }
        function un(t3, n3, e3) {
          var i3 = t3.parent, r2 = i3.options.columnResizeMode;
          return e3 && 0 === r2 && (r2 = 1), n3.action !== at && 1 === r2 && (!on(t3, n3.index) && (!(!t3.getColumnResizable(n3.index, n3.sheetArea) || !t3.getColumnResizable(n3.index + 1, n3.sheetArea)) && an(t3)));
        }
        function sn(t3, n3, e3, i3) {
          return un(t3, n3, i3) && 1 === e3.length && e3[0].firstColumn === e3[0].lastColumn;
        }
        function cn(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = n3.index, s2 = t3.Fi();
          en(t3, n3, r2) ? (o2 = t3.j5(u2, e3), zt(n3, i3, s2, true, a2 = t3.Gt(u2, e3) + t3.Gt(o2, e3))) : zt(n3, i3, s2, true);
        }
        function fn(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = n3.index, s2 = t3.Fi();
          un(t3, n3, r2) ? (o2 = t3.O5(u2, e3), zt(n3, i3, s2, false, a2 = t3.nn(u2, e3) + t3.nn(o2, e3))) : zt(n3, i3, s2, false);
        }
        function ln(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = e3 ? t3.frozenRowCount() : t3.frozenColumnCount(), s2 = e3 ? t3.Tb : t3.Ab, c2 = false, f2 = s2 - 1;
          if (u2 > 0 && u2 < s2) for (r2 = s2 - 1; r2 >= u2; ) {
            if (i3 = e3 ? t3.getRowVisible(r2) : t3.getColumnVisible(r2)) {
              if (o2 = e3 ? t3.getRowHeight(r2) : t3.getColumnWidth(r2), r2 === f2 && 0 === o2) break;
              if (o2 > 0) {
                c2 = true;
                break;
              }
            } else f2--;
            r2--;
          }
          for (a2 = c2 ? u2 : n3, a2--; a2 >= 0; ) {
            if (i3 = e3 ? t3.getRowVisible(a2) : t3.getColumnVisible(a2)) return a2;
            a2--;
          }
          return -1;
        }
        function hn(t3) {
          var n3 = t3.il;
          return n3 && n3.U6;
        }
        function dn(t3) {
          for (; t3 !== h.body; ) {
            var n3;
            if (getComputedStyle(t3).transform.match(/matrix\([^\)]+\)/)) return true;
            if (!t3.parentNode) break;
            t3 = t3.parentNode;
          }
          return false;
        }
        function vn(t3, n3, e3) {
          var i3;
          return n3.addRowColumnButtonHitInfo && (i3 = t3.K_e(It(e3))), i3;
        }
        function pn(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = vn(t3, n3, e3);
          return M(s2) && (i3 = t3, r2 = It(e3), o2 = e3.rowSpacingIndex, a2 = e3.isAfterRowSpacing, e3.dataRange && (n3.sheet && (i3 = n3.sheet), "number" == typeof n3.sheetArea && (r2 = n3.sheetArea), "number" == typeof n3.rowSpacingIndex && (o2 = n3.rowSpacingIndex), "boolean" == typeof n3.isAfterRowSpacing && (a2 = n3.isAfterRowSpacing)), s2 = i3.getCellType(n3.row, n3.col, r2, { rowSpacingIndex: o2, isAfterRowSpacing: a2 })), n3.sheet || (e3.dataRange && (u2 = e3.dataRange.convertContext({ sheet: t3 })) && (t3 = u2.sheet), n3.sheet = t3), s2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.nk = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("./dist/core/worksheet/worksheet.js"), o = e2("Common"), a = e2("./dist/core/worksheet/worksheet-model.js"), u = e2("./dist/core/util/domUtil.js"), s = e2("./dist/core/util/common.js"), c = e2("./dist/core/core.enum.js"), f = e2("./dist/core/workbook/sheettabbase.js"), l = window, h = document, d = u.GC$.each, v = s.mt.Tt, p = s.mt.pi(), g = s.mt.vi, m = s.mt.En, b = o.Common.zf, y = o.Common.zf.I5, w = s.Ec, M = o.Common.lt.ht, C = o.Common.lt.q8, T = "mousedown" + (S = ".handler"), x = "mouseup" + S, A = "mousemove" + S, I = "mousewheel" + S, k = "DOMMouseScroll" + S, N = "wheel" + S, j = "mouseout" + S, D = "dblclick" + S, _ = null, O = void 0, E = isNaN, R = parseInt, L = Math.max, F = Math.floor, B = Math.min, P = Math.abs, G = Math.ceil, U = "function", H = "position", V = "absolute", z = "border", Y = "overflow", Z = "top", W = "left", Q = "width", K = "height", J = "resize", X = "hidden", q = "visible", $ = "none", tt = "tabindex", nt = "gcUIElement", et = "corner", it = "sizeHiddenRow", rt = "sizeRow", ot = "sizeCol", at = "sizeHiddenCol", ut = "default", st = 20, ct = 400, ft = p.iphone || p.ipad || p.android, lt = new o.Common.ResourceManager(i2.SR, "Sheets"), ht = lt.getResource.bind(lt), dt = 30, vt = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.Ti = t4, e3.H6 = _, e3.z6 = _, e3.V6 = _, e3.Y6 = _, e3.Z6 = false, e3.W6 = false, e3.h4 = n3;
          }
          return t3.prototype.ek = function(t4) {
            typeof t4 === U && (this.z6 = t4);
          }, t3.prototype.ik = function(t4) {
            var n3, e3 = this;
            E(t4) || 0 === t4 ? e3.rk() : (e3.W6 = e3.Ti.W6(t4, e3.h4), t4 = P(t4), n3 = e3.H6, e3.H6 = t4, n3 !== t4 && e3.ak());
          }, t3.prototype.ak = function() {
            var t4 = this;
            t4.d5(), E(t4.H6) || (t4.V6 = l.setInterval((function() {
              t4.uk();
            }), t4.H6));
          }, t3.prototype.uk = function() {
            var t4 = this, n3 = t4.z6;
            t4.Z6 = true, typeof n3 === U && (t4.Y6 = n3.call(t4.Ti, t4.W6));
          }, t3.prototype.rk = function() {
            var t4 = this;
            t4.d5(), t4.H6 = _, t4.V6 = _, t4.Y6 = _, t4.Z6 = false;
          }, t3.prototype.d5 = function() {
            var t4 = this.V6;
            t4 && clearInterval(t4);
          }, t3.prototype.L0 = function() {
            this.rk();
          }, t3;
        })(), pt = (function() {
          function t3(t4) {
            this.Q6 = 0;
            var n3 = this;
            n3.K6 = 0, n3.J6 = false, n3.X6 = false, n3.q6 = {}, n3.Mf = t4, n3.tk = "gcEvent" + t4._id;
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.sk && t4.sk.L0(), t4.ck && t4.ck.L0(), t4.fk = _;
          }, t3.prototype.lk = function() {
            var t4 = this;
            return t4.sk || (t4.sk = new vt(t4, true)), t4.sk;
          }, t3.prototype.hk = function() {
            var t4 = this;
            return t4.ck || (t4.ck = new vt(t4, false)), t4.ck;
          }, t3.prototype.uw = function() {
            return this.Mf.uw();
          }, t3.prototype.it = function() {
            var t4 = (0, u.GC$)(this.Mf.Dg()).position();
            return t4 || (t4 = { top: 0, left: 0 }), t4;
          }, t3.prototype.gg = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, l2, h2 = s.mt.Qf(), d2 = Dt(t4), p2 = h2 && true === d2 && 0 === t4.button;
            return !(2 !== t4.button && !p2) || (e3 = (n3 = this).Mf, n3.Fg(), v && v.msie && t4.offsetX !== O && t4.offsetY !== O && (i3 = 0, r2 = 0, o2 = e3.fg, t4.target !== o2 && (i3 = (a2 = s.mt.T0(t4.target, o2)).I0, r2 = a2.A0), o2 && (u2 = t4.pageX - (t4.offsetX + i3), c2 = t4.pageY - (t4.offsetY + r2), o2.canvasOffset = { top: c2, left: u2 })), f2 = e3.uw(), l2 = n3.dk(t4, t4.pageX - f2.left, t4.pageY - f2.top), yt(e3) || l2 || n3.Zg(), e3.vk = true, false);
          }, t3.prototype.Fg = function() {
            var t4 = this;
            t4.p4 || ((0, u.GC$)(h).bind("mousemove.gcSheet." + t4.tk, (function(n3) {
              t4.pg(n3);
            })).bind("mouseup.gcSheet." + t4.tk, (function(n3) {
              t4.bg(n3);
            })), t4.p4 = true);
          }, t3.prototype.u2 = function() {
            this.p4 && (this.p4 = false, (0, u.GC$)(h).unbind("mousemove.gcSheet." + this.tk).unbind("mouseup.gcSheet." + this.tk));
          }, t3.prototype.dk = function(t4, n3, e3) {
            var i3, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = y2.Mf, C2 = w2.hitTest(n3, e3), S2 = C2.row, T2 = C2.col, x2 = C2.dragInfo, A2 = C2.formulaRangeHitInfo, I2 = C2.cellTypeHitInfo, k2 = C2.resizeTableHitInfo, N2 = { hitInfo: C2, e: t4, r: _ };
            if (r.Worksheet.et(w2, "processMouseDown", N2), n3 >= (i3 = w2.Fi()).x && e3 >= i3.y) {
              if (w2.sw = C2, N2.r) return;
              if (y2.ab = true, C2.tableSelectInfo && !w2.Bde) y2.mk(C2, w2);
              else if (C2.resizeInfo) {
                if (!hn(w2) && !wt(w2)) return;
                if (r.Worksheet.et(w2, "beforeResizingRowsOrColumns", N2), N2.r) return;
                y2.gk(C2);
              } else if (C2.dragHeaderToMoveInfo) {
                if (!hn(w2) && !wt(w2)) return;
                if (r.Worksheet.et(w2, "beforeDragHeaderToMove", N2), N2.r) return;
                y2.VRe && y2.VRe(C2);
              } else if (C2.dragMergeInfo) {
                if (!wt(w2)) return;
                if (r.Worksheet.et(w2, "beforeDragMerge", N2), N2.r) return;
                y2.pk && y2.pk(C2);
              } else if (x2 && x2.side && x2.side !== et) {
                if (!wt(w2)) return;
                if (r.Worksheet.et(w2, "beforeDragDropping", N2), N2.r) return;
                y2.bk && y2.bk(C2), y2.yk(t4);
              } else if (x2 && x2.side === et) {
                if (!wt(w2)) return;
                if (r.Worksheet.et(w2, "beforeDragFill", N2), N2.r) return;
                y2.wk && y2.wk(C2);
              } else if (C2.filterButtonHitInfo) wt(w2);
              else if (A2) {
                if (A2.inBorder) return y2.Mk(C2), true;
                if (A2.inTopLeft || A2.inTopRight || A2.inBottomLeft || A2.inBottomRight) return y2.Ck(C2), true;
              } else if (k2) {
                if (r.Worksheet.et(w2, "beforeResizingTable", N2), N2.r) return;
                y2.Sk && y2.Sk(C2);
              } else if (w2.JA(xt(C2) < 0 ? -1 : S2, At(C2) < 0 ? -1 : T2)) {
                if (o2 = w2.Bde, C2.tableSelectInfo && o2 ? (a2 = this.Tk(C2, w2), C2.tableSelectInfo.tableSelection = a2, o2.Ak(a2)) : o2 && o2.Hce(), y2.Ik && y2.Ik(w2, C2)) return true;
                if (u2 = kt(w2), c2 = Nt(w2), I2) {
                  if (f2 = pn(w2, I2, C2), y2.xk(f2, I2) && (l2 = I2.sheetArea, (M(l2) || 3 === l2) && (S2 !== u2 || T2 !== c2))) {
                    w2.suspendPaint();
                    try {
                      if (!wt(w2)) return;
                      if (h2 = Ut(w2, w2.name(), u2, c2, O, true), w2.ki(s.Events.LeaveCell, h2), h2 && true === h2.cancel) return;
                      (d2 = "number" == typeof (null == C2 ? void 0 : C2.rowSpacingIndex)) || (v2 = w2.Ut.getSelections(), p2 = w2.Ut.getSpan(S2, T2), g2 = [new s.Range(p2.row, p2.col, p2.rowCount, p2.colCount)], w2.ki(s.Events.FloatingElementSelected, { type: "worksheet" }), w2.EA(v2, g2), w2.t4(S2, T2, O, O, 1), w2.ki(s.Events.EnterCell, Ut(w2, w2.name(), S2, T2)), w2.ki(s.Events.EnterCellInternal, Ut(w2, w2.name(), S2, T2)), w2.jA(v2), w2.Nk = true, y2.PA && y2.PA(S2, T2));
                    } finally {
                      w2.resumePaint();
                    }
                  }
                  f2.processCellAndPaddingMouseDown(I2);
                }
                if (I2 && I2.isReservedLocation) return true;
                y2.yk(t4), C2.dataRange && (m2 = C2.dataRange.convertContext({ sheet: w2, row: S2, col: T2, sheetArea: C2.hitTestType })) && m2.sheet !== w2 && (b2 = { sheet: m2.sheet, row: m2.row, col: m2.col, hitTestType: m2.sheetArea, rowViewportIndex: m2.sheet.C0(m2.row), colViewportIndex: m2.sheet.S0(m2.col) }, m2.sheet.rt && m2.sheet.rt.kk(m2.sheet, b2, m2.row, m2.col)), y2.kk(w2, C2, S2, T2);
              }
            }
          }, t3.prototype.kk = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this;
            try {
              if (a2.Dk = n3, yt(t4) && !wt(t4)) return;
            } finally {
              a2.Dk = _;
            }
            M(e3) || M(i3) || (3 === It(n3) && a2.PA && a2.PA(e3, i3), t4.ki(s.Events.FloatingElementSelected, { type: "worksheet" }), r2 = t4.Ut.getSelections(), a2._k(n3, r2), o2 = t4.Ut.getSelections(), t4.EA(r2, o2));
          }, t3.prototype.xk = function(t4, n3) {
            return t4 && n3 && n3.isReservedLocation && (!t4.activeOnClick || t4.activeOnClick());
          }, t3.prototype.Ek = function(t4) {
            var n3, e3 = this.Mf;
            return !e3 || (n3 = e3.Fi(), M(t4.x) || M(t4.y) || M(t4.width) || M(t4.height) || t4.x + t4.width > n3.Py + e3.Gy(n3) + n3.zy || t4.y + t4.height > n3.Cy + e3.Sy(n3) + n3.Iy);
          }, t3.prototype.jk = function(t4, n3, e3, i3, r2) {
            var o2, a2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this.Mf;
            for (a2 = 0, l2 = (f2 = t4.options).length; a2 < l2; a2++) if ((h2 = f2[a2]).selected) {
              o2 = i3[a2].value;
              break;
            }
            d2 = { cmd: "editCell", sheetName: b2.name(), row: n3, col: e3, newValue: o2, autoFormat: true, ignoreFormatting: r2, ignoreFormula: true }, b2.dataRanges && (v2 = b2.dataRanges.getByPosition(n3, e3)) && (p2 = v2.convertContext({ sheet: b2, row: n3, col: e3, sheetArea: c.SheetArea.viewport })) && p2.sheet !== b2 && (d2.sheetName = p2.sheet.name(), d2.row = p2.row, d2.col = p2.col), g2 = b2.Qy().execute(d2), !M(o2) && g2 && (m2 = b2.tables && b2.tables.find && (b2.tables.find(n3 - 1, e3) || b2.tables.find(n3, e3 - 1))) && b2.tables.yx(_, new s.Range(n3, e3, 1, 1), null, o2, true), (0, u.GC$)(t4).hide();
          }, t3.prototype.Ok = function() {
            var t4, n3 = this;
            n3.Rk && (3 !== (t4 = n3.Rk.Bk) && 2 !== t4 || n3.hk().ek(n3.Lk), 3 !== t4 && 1 !== t4 || n3.lk().ek(n3.Fk));
          }, t3.prototype.Pk = function() {
            var t4 = this;
            t4.ob && t4.Gk(), t4.Uk && t4.Hk && t4.Hk(), t4.zk && t4.Vk && t4.Vk(), t4.Yk && t4.Zk && t4.Zk(), t4.Wk && t4.Qk(), t4.Kk && t4.Jk(), t4.Xk && t4.qk(), t4.$k && t4.t9 && t4.t9(), t4.eBe && t4.YRe && t4.YRe();
          }, t3.prototype.Lk = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.n9();
            h2 || (n3 = l2.Rk, e3 = l2.Mf, i3 = n3.e9, r2 = e3.getViewportTopRow(i3), o2 = e3.getViewportBottomRow(i3), u2 = (a2 = e3.Fye()) === r2 ? r2 : e3.j5(r2), t4 ? o2 < St(e3) - e3.frozenTrailingRowCount() - 1 ? e3.$A(u2) : (s2 = e3._y(i3)) && s2.length > 0 && (c2 = e3.Fi(), (f2 = s2[s2.length - 1]).y + f2.height >= c2.Cy + e3.Sy(c2) && e3.$A(u2)) : r2 > Mt(e3) && e3.$A(e3.nI(r2))), l2.Pk();
          }, t3.prototype.Fk = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.i9();
            h2 || (n3 = l2.Mf, i3 = (e3 = l2.Rk).r9, r2 = n3.getViewportLeftColumn(i3), o2 = n3.getViewportRightColumn(i3), u2 = (a2 = n3.Pye()) === r2 ? r2 : n3.O5(r2), t4 ? o2 < Tt(n3) - n3.frozenTrailingColumnCount() - 1 ? n3.o9(u2) : (s2 = n3.Yy(i3)) && s2.length > 0 && (c2 = n3.Fi(), (f2 = s2[s2.length - 1]).x + f2.width >= c2.Py + n3.Gy(c2) && n3.o9(u2)) : r2 > Ct(n3) && n3.o9(n3.r6(r2))), l2.Pk();
          }, t3.prototype.n9 = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this.Mf, u2 = a2.Fi(), s2 = Mt(a2), c2 = a2.frozenTrailingRowCount(), f2 = this.fk, l2 = this.Rk, h2 = l2.e9;
            if (0 === h2) {
              if (f2.y > u2.Cy) return a2.$A(a2.pw()), l2.e9 = 1, true;
            } else if (1 === h2) {
              if ((t4 = a2._y(1)) && t4.length > 0) {
                if (n3 = t4[0], s2 > 0 && f2.y < u2.Cy && n3.row <= a2.pw()) return l2.e9 = 0, true;
                if (n3 = t4[t4.length - 1], c2 > 0 && f2.y > u2.Ay && n3.row >= a2.P6() && n3.y + n3.height <= u2.Ay) return l2.e9 = 2, true;
              }
            } else if (2 === h2 && (t4 = a2._y(1)) && t4.length > 0 && f2.y < u2.Ay) {
              if ((n3 = t4[t4.length - 1]).y + n3.height > u2.Ay) {
                for (e3 = a2.Sy(u2), r2 = 0, o2 = i3 = St(a2) - c2 - 1; o2 >= s2; o2--) if ((r2 += a2.Gt(o2)) > e3) {
                  i3 = B(o2 + 1, i3);
                  break;
                }
                a2.$A(a2.j5(i3 - 1));
              }
              return l2.e9 = 1, true;
            }
            return false;
          }, t3.prototype.i9 = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this.Mf, u2 = a2.frozenTrailingColumnCount(), s2 = Ct(a2), c2 = a2.Fi(), f2 = this.fk, l2 = this.Rk, h2 = l2.r9;
            if (0 === h2) {
              if (f2.x > c2.Py) return a2.o9(a2.Sw()), l2.r9 = 1, true;
            } else if (1 === h2) {
              if ((t4 = a2.Yy(1)) && t4.length > 0) {
                if (n3 = t4[0], s2 > 0 && f2.x < c2.Py && n3.col <= a2.Sw()) return l2.r9 = 0, true;
                if (n3 = t4[t4.length - 1], u2 > 0 && f2.x > c2.Hy && n3.col >= a2.G6() && n3.x + n3.width <= c2.Hy) return l2.r9 = 2, true;
              }
            } else if (2 === h2 && (t4 = a2.Yy(1)) && t4.length > 0 && f2.x < c2.Hy) {
              if ((n3 = t4[t4.length - 1]).x + n3.width > c2.Hy) {
                for (e3 = a2.Gy(c2), r2 = 0, o2 = i3 = Tt(a2) - u2 - 1; o2 >= s2; o2--) if ((r2 += a2.nn(o2)) > e3) {
                  i3 = B(o2 + 1, i3);
                  break;
                }
                a2.o9(a2.O5(i3 - 1));
              }
              return l2.r9 = 1, true;
            }
            return false;
          }, t3.prototype.a9 = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2 = this;
            (p2.rb || p2.u9 || p2.s9) && (n3 = (t4 = p2.Mf).Fi(), e3 = p2.Rk, M(e3) || (i3 = e3.e9, r2 = e3.r9, o2 = p2.fk, a2 = _, i3 >= 0 && r2 >= 0 ? (a2 = n3.c9(i3, r2), 0 === i3 && t4.Tb === t4.frozenRowCount() && (u2 = n3.c9(1, r2), a2.height += u2.height), 0 === r2 && t4.Ab === t4.frozenColumnCount() && (u2 = n3.c9(i3, 1), a2.width += u2.width)) : i3 >= 0 ? a2 = n3.B1(i3) : r2 >= 0 && (a2 = n3.L1(r2)), a2 && (f2 = (s2 = t4.parent) && s2.options.scrollbarAppearance === c.ScrollbarAppearance.mobile, l2 = 0, h2 = 0, d2 = false, v2 = false, o2.x <= a2.x ? (l2 = o2.x - a2.x, f2 && (v2 = true)) : o2.x >= a2.x + a2.width ? (0 === (l2 = o2.x - (a2.x + a2.width)) && (l2 = 50), f2 && (v2 = true)) : f2 && o2.x === a2.x + a2.width - 1 && (l2 = 50, v2 = true), o2.y <= a2.y ? (h2 = o2.y - a2.y, f2 && (d2 = true)) : o2.y >= a2.y + a2.height && (h2 = o2.y - (a2.y + a2.height), f2 && (d2 = true)), s2 && f2 && (d2 && (s2._vScrollbar.qy(c.ScrollbarState.show), s2.ib.$y(true)), v2 && (s2._hScrollbar.qy(c.ScrollbarState.show), s2.ib.$y(false))), p2.lk().ik(p2.f9(l2)), p2.hk().ik(p2.f9(h2)))));
          }, t3.prototype.l9 = function() {
            this.lk().rk(), this.hk().rk();
          }, t3.prototype.gk = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2 = this, c2 = a.h9.prototype, f2 = s2.Mf, l2 = t4.resizeInfo;
            l2.action === rt || l2.action === it ? (n3 = Vt(s2, f2.d9, s2.v9, c2.findRow, t4.row, l2, true), l2.startY = n3.y + (l2.E6 ? n3.height : 0)) : (e3 = Vt(s2, f2.m9, s2.g9, c2.findCol, t4.col, l2, false), l2.startX = e3.x + (l2.j6 || l2.Hur ? e3.width : 0)), i3 = f2.parent, r2 = t4.x, o2 = t4.y, i3 && ((1 !== (u2 = i3.options.showResizeTip) || l2.action !== ot && l2.action !== at) && (2 !== u2 || l2.action !== rt && l2.action !== it) && 3 !== u2 || (o2 - dt < 0 ? o2 += dt / 2 : o2 -= dt, i3.Tw(b.j0(s2.p9()), r2, o2))), s2.isResizing = true, s2.rb = true, s2.ctrl && (s2.b9 = true);
          }, t3.prototype.y9 = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Mf, o2 = r2.sw, a2 = o2.resizeInfo, u2 = i3.fk, s2 = u2.x, c2 = u2.y, f2 = r2.Fi(), l2 = r2.parent, h2 = a2.sheetArea;
            a2 && i3.rb && i3.isResizing && (o2.x === s2 && o2.y === c2 || (a2.action === rt || a2.action === it ? cn(r2, a2, h2, c2, i3.b9) : fn(r2, a2, h2, s2, i3.b9), n3 = (t4 = r2.Dn).J(), t4.FA(f2.x, f2.y, f2.width, f2.height), t4.jy(n3), l2 && ((1 !== (e3 = l2.options.showResizeTip) || a2.action !== ot && a2.action !== at) && (2 !== e3 || a2.action !== rt && a2.action !== it) && 3 !== e3 || l2.ny(i3.w9(a2)))));
          }, t3.prototype.C9 = function() {
            var t4, n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2 = this;
            d2.isResizing = false, d2.rb = false, t4 = true, e3 = (n3 = d2.Mf).sw, (i3 = e3.resizeInfo) && (d2.iy(), i3.action === rt || i3.action === it ? M(i3.movingY) ? t4 = false : (r2 = L(0, Gt(i3, true) / n3.zoom()), o2 = [], a2 = "resizeRow", n3.S9(i3.index) ? u.GC$.each(n3.Ut.getSelections(), (function(t5, e4) {
              if (-1 === e4.col) if (1 === i3.sheetArea) o2.push({ firstRow: i3.index, lastRow: i3.index });
              else {
                var r3 = n3.JS(e4);
                o2.push({ firstRow: r3.row, lastRow: r3.row + Lt(r3) - 1 });
              }
            })) : o2.push({ firstRow: i3.index, lastRow: i3.index }), rn(n3, i3, o2, d2.b9) && (a2 = "splitResizeRow"), s2 = 1 === i3.sheetArea, n3.Qy().execute({ cmd: a2, sheetName: n3.name(), rows: o2, size: r2, columnHeader: s2 })) : M(i3.movingX) ? t4 = false : (r2 = L(0, Gt(i3) / n3.zoom()), c2 = [], f2 = "resizeColumn", n3.T9(i3.index) ? u.GC$.each(n3.Ut.getSelections(), (function(t5, e4) {
              if (-1 === e4.row) {
                var r3 = n3.JS(e4);
                2 === i3.sheetArea ? c2.push({ firstCol: i3.index, lastCol: i3.index }) : c2.push({ firstCol: r3.col, lastCol: r3.col + Rt(r3) - 1 });
              }
            })) : c2.push({ firstCol: i3.index, lastCol: i3.index }), sn(n3, i3, c2, d2.b9) && (f2 = "splitResizeColumn"), l2 = 2 === i3.sheetArea, n3.Qy().execute({ cmd: f2, sheetName: n3.name(), columns: c2, size: r2, rowHeader: l2 })), (h2 = n3.hitTest(d2.fk.x, d2.fk.y)) && d2.cw(h2), t4 || n3.repaint(), d2.b9 = false);
          }, t3.prototype.A9 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = 0, b2 = 0, y2 = 0, w2 = 0, M2 = this, C2 = M2.Mf, S2 = C2.H3, T2 = Mt(C2), x2 = Ct(C2), A2 = It(t4), I2 = 1 === A2 && C2.NMi && C2.NMi.options.isDesignMode && t4.row < C2.Ut.getFreeAreaRowCount(A2);
            if (M2.I9 = M2.x9 = C2.Ut.getSelections(A2), C2.isCtrlPressed(A2) || M2.shift || (I2 ? C2.IA(A2) : C2.IA()), 0 === A2) {
              if (!M2.shift && (e3 = Ht(M2, i3 = T2 ? C2.N9() : C2.Tb, a2 = x2 ? C2.k9() : C2.Ab, 1, 1, n3))) return;
              C2.isCtrlPressed(A2) || C2.IA(), M2.wse(C2) ? (C2.IA(), C2.D9(0, 0, 1, 1, true)) : C2.D9(-1, -1, St(C2), Tt(C2), true);
            } else if (1 === A2) if (I2) u2 = C2.Ut.getSpan(t4.row, t4.col, 1), C2.Ut._9(u2.row, u2.col, u2.rowCount, u2.colCount), C2.D9(u2.row, u2.col, u2.rowCount, u2.colCount, true, 1), M2.E9 = true;
            else {
              if (!M2.shift && (i3 = T2 ? C2.N9() : C2.Tb, r2 = M2.j9(i3, t4.col, false), e3 = Ht(M2, r2.row, r2.col, 1, At(t4), n3))) return;
              M2.shift || C2.O9 ? (m2 = B(C2.ci, t4.col), w2 = P(C2.ci - t4.col) + 1, C2.kA(-1, m2, St(C2), w2, true)) : C2.D9(-1, C2.ci, St(C2), 1, true);
            }
            else if (2 === A2) {
              if (!M2.shift) {
                if (s2 = x2 ? C2.k9() : C2.Ab, r2 = M2.j9(t4.row, s2, true), o2 = C2.ui !== r2.row, e3 = Ht(M2, r2.row, r2.col, xt(t4), 1, n3)) return;
                o2 && S2 && S2.RA();
              }
              M2.shift || C2.O9 ? (b2 = B(C2.ui, t4.row), y2 = P(C2.ui - t4.row) + 1, C2.kA(b2, -1, y2, Tt(C2), true)) : C2.D9(C2.ui, -1, 1, Tt(C2), true);
            } else if (3 === A2) if (E(t4.row) || E(t4.col)) yt(C2) && (g2 = C2.getCellRect(C2.ui, C2.ci, C2.R9, C2.B9), C2.Dn._6(g2.x, g2.y, g2.width, g2.height));
            else {
              if (!M2.shift && (C2.ui !== t4.row || C2.ci !== t4.col)) {
                if (o2 = C2.ui !== t4.row, e3 = Ht(M2, t4.row, t4.col, xt(t4), At(t4), n3)) return;
                o2 && S2 && S2.RA();
              }
              M2.shift ? C2.L9(t4.row, t4.col, true) : (c2 = (u2 = C2.Ut.getSpan(t4.row, t4.col)).row, f2 = u2.col, l2 = u2.rowCount, h2 = u2.colCount, t4.dataRange && (d2 = t4.dataRange.convertContext({ sheet: C2 })) && (v2 = d2.sheet.getSelections()) && v2[0] && (p2 = t4.dataRange.range(), -1 === v2[0].row && (c2 = p2.row, l2 = p2.rowCount), -1 === v2[0].col && (f2 = p2.col, h2 = p2.colCount)), C2.O9 || C2.D9(c2, f2, l2, h2, true));
            }
          }, t3.prototype.wse = function(t4) {
            var n3, e3, i3, r2, o2, a2 = t4.getSelections();
            for (n3 = 0, e3 = a2; n3 < e3.length; n3++) if (i3 = e3[n3], r2 = St(t4), o2 = Tt(t4), -1 === i3.row && -1 === i3.col && i3.colCount === o2 && i3.rowCount === r2) return true;
            return false;
          }, t3.prototype.F9 = function(t4) {
            if (t4 && (3 !== It(t4) || !E(t4.row) && !E(t4.col))) {
              var n3 = this;
              n3.rb = true, n3.ob = true, n3.Rk = { e9: xt(t4), r9: At(t4), Bk: It(t4) }, n3.Ok();
            }
          }, t3.prototype.P9 = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Mf, o2 = r2.getSpan(t4, n3), a2 = t4, u2 = n3, c2 = 1, f2 = 1, l2 = r2.selectionUnit(), h2 = false;
            return 1 === l2 ? (u2 = -1, f2 = -1, a2 = o2 ? o2.row : a2, c2 = o2 ? o2.rowCount : c2) : 2 === l2 ? (a2 = -1, c2 = -1, u2 = o2 ? o2.col : u2, f2 = o2 ? o2.colCount : f2) : h2 = true, e3 = o2 && h2 ? o2 : new s.Range(a2, u2, c2, f2);
          }, t3.prototype._k = function(t4, n3) {
            var e3 = this, i3 = e3.Mf, r2 = t4.row, o2 = t4.col;
            i3.O9 = e3.G9(r2, o2, n3, It(t4)) && i3.parent.options.allowUserDeselect, i3.O9 && (i3.U9 = i3.ui, i3.H9 = i3.ci, i3.z9 = e3.P9(r2, o2)), e3.A9(t4), e3.F9(t4);
          }, t3.prototype.G9 = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.Mf, a2 = r2.V9(t4, n3, e3, i3);
            return a2 && 2 === o2.selectionPolicy();
          }, t3.prototype.V9 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this.Mf, s2 = u2.getRowCount(), c2 = u2.getColumnCount();
            if (!u2.isCtrlPressed(i3)) return false;
            for (r2 = false, o2 = e3.length, a2 = 0; a2 < o2; a2++) if (3 === i3) {
              if (e3[a2].contains(t4, n3, 1, 1)) {
                r2 = true;
                break;
              }
            } else if (2 === i3) {
              if (e3[a2].contains(t4, -1, 1, c2) || e3[a2].contains(t4, 0, 1, c2)) {
                r2 = true;
                break;
              }
            } else if (1 === i3 && (e3[a2].contains(-1, n3, s2, 1) || e3[a2].contains(0, n3, s2, 1))) {
              r2 = true;
              break;
            }
            return r2;
          }, t3.prototype.Gk = function(t4, n3) {
            var e3, i3 = this;
            i3.Rk && i3.rb && true !== i3.FI && (3 === (e3 = i3.Rk.Bk) ? i3.Y9(t4, n3) : 2 === e3 ? i3.Z9() : 1 === e3 && i3.W9());
          }, t3.prototype.Y9 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, f2, l2, h2, d2 = this, v2 = d2.Mf, p2 = d2.Q9(), g2 = d2.K9();
            if (p2 >= 0 && g2 >= 0 && v2.JA(p2, g2)) {
              if (d2.a9(), e3 = v2.Ut.getSelections(), i3 = v2.xA(p2, g2, v2.ui, v2.ci), 1 === e3.length && (r2 = e3[0], !v2.O9 && i3.equals(r2))) return;
              v2.L9(p2, g2, true), v2.sw && v2.sw.dataRange && (o2 = C(t4) && C(n3) && v2.hitTest(t4, n3, void 0, void 0, true)) && o2.dataRange && (a2 = o2.dataRange.convertContext({ sheet: v2, row: p2, col: g2, sheetArea: c.SheetArea.viewport })).sheet !== v2 && (u2 = a2.row, f2 = a2.col, (l2 = a2.sheetArea) !== c.SheetArea.corner && l2 !== c.SheetArea.colHeader || (u2 = -1), l2 !== c.SheetArea.corner && l2 !== c.SheetArea.rowHeader || (f2 = -1), a2.sheet.L9(u2, f2, true)), h2 = v2.Ut.getSelections(), v2.O9 ? v2.ki(s.Events.InternalSelectionChanging, { sheet: this, sheetName: v2.name(), oldSelections: e3, newSelections: i3 }) : v2.EA(e3, h2);
            }
          }, t3.prototype.Z9 = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.Mf, l2 = c2.Q9(true);
            if (l2 >= 0 && f2.JA(l2, -1)) {
              if (t4 = B(f2.ui, l2), n3 = L(f2.ui, l2) - t4 + 1, e3 = -1, i3 = Tt(f2), 0 === (r2 = f2.selectionPolicy())) return;
              2 === (o2 = f2.selectionUnit()) && (t4 = -1, n3 = -1), a2 = f2.Ut.getSelections(), f2.kA(t4, e3, n3, i3, true), u2 = f2.Ut.getSelections(), f2.EA(a2, u2);
            }
            s2 = c2.fk.x, c2.fk.x = f2.sw.x, c2.a9(), c2.fk.x = s2;
          }, t3.prototype.W9 = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf, d2 = l2.Rk.Bk, v2 = l2.Q9(true, d2), p2 = l2.K9(true, d2);
            if (l2.E9 && v2 < h2.Ut.getFreeAreaRowCount(d2)) t4 = h2.Ut.J9(), n3 = h2.xA(v2, p2, t4.row, t4.col, O, 1), h2.D9(n3.row, n3.col, n3.rowCount, n3.colCount, true, 1);
            else if (l2.E9 = false, p2 >= 0 && h2.JA(-1, p2)) {
              if (e3 = B(h2.ci, p2), i3 = L(h2.ci, p2) - e3 + 1, r2 = -1, o2 = St(h2), 0 === (a2 = h2.selectionPolicy())) return;
              1 === (u2 = h2.selectionUnit()) && (e3 = -1, i3 = -1), s2 = h2.Ut.getSelections(), h2.kA(r2, e3, o2, i3, true), c2 = h2.Ut.getSelections(), h2.EA(s2, c2);
            }
            f2 = l2.fk.y, l2.fk.y = h2.sw.y, l2.a9(), l2.fk.y = f2;
          }, t3.prototype.X9 = function() {
            var t4, n3, e3, i3, r2 = this;
            r2.Rk = _, r2.l9(), r2.FI = _, r2.rb = false, r2.ob = false, r2.q9 = r2.E9, r2.E9 = false, 0 !== (t4 = r2.Mf).Ut.getSelections().length && (t4.O9 && (t4.O9 = false, n3 = t4.z9, t4.z9 = null, t4.tD(t4.Ut.getSelections(), n3), delete t4.U9, delete t4.H9), t4.Nk ? delete t4.Nk : ((e3 = !r2.x9) || (i3 = t4.Ut.getSelections(), e3 = r2._A(r2.x9, i3)), e3 && t4.jA(r2.I9, r2.shift)), r2.x9 = t4.Ut.getSelections());
          }, t3.prototype.nD = function() {
            var t4 = this.Mf, n3 = Yt(t4, this.fk.y), e3 = this.Rk.e9, i3 = t4._y(1);
            return (0 === n3 && e3 > 0 && i3.length > 0 && i3[0].row > t4.pw() || 2 === n3 && e3 < 2 && i3.length > 0 && i3[i3.length - 1].row < t4.P6()) && (n3 = 1), n3;
          }, t3.prototype.eD = function() {
            var t4 = this.Mf, n3 = Zt(t4, this.fk.x), e3 = this.Rk.r9, i3 = t4.Yy(1);
            return (0 === n3 && e3 > 0 && i3.length > 0 && i3[0].col > t4.Sw() || 2 === n3 && e3 < 2 && i3.length > 0 && i3[i3.length - 1].col < t4.G6()) && (n3 = 1), n3;
          }, t3.prototype.Q9 = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2;
            if (void 0 === n3 && (n3 = c.SheetArea.viewport), r2 = (i3 = this.Mf).Ut, o2 = this.fk.y, n3 === c.SheetArea.colHeader) {
              if (a2 = Qt(i3, o2)) return u2 = r2.getFreeAreaRowCount(n3), e3 && u2 > 0 && a2.row >= u2 ? u2 - 1 : a2.row;
            } else if (a2 = Wt(i3, s2 = this.nD(), o2)) {
              if (f2 = i3.Fi(), l2 = a2.row, 1 === s2 && o2 < f2.Cy) {
                if (l2 > (h2 = i3.pw())) return i3.j5(l2 - 1) || l2;
                if (l2 === h2 && t4) return 0;
              } else if (0 === s2 && o2 < f2.T6 && t4) return 0;
              return 1 === s2 && o2 > f2.Ay && l2 > i3.getLastFullyVisibleRow() && i3.nI(l2) || l2;
            }
            return -1;
          }, t3.prototype.K9 = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2;
            if (void 0 === n3 && (n3 = c.SheetArea.viewport), r2 = (i3 = this.Mf).Ut, o2 = i3.options.rightToLeft, a2 = this.fk.x, n3 === c.SheetArea.rowHeader) {
              if (u2 = Jt(i3, a2)) return s2 = r2.getFreeAreaColumnCount(n3), e3 && s2 > 0 && u2.col >= s2 ? s2 - 1 : u2.col;
            } else if (u2 = Kt(i3, f2 = this.eD(), a2)) {
              if (l2 = i3.Fi(), h2 = u2.col, 1 === f2 && a2 < l2.Py) {
                if (h2 > (d2 = i3.Sw())) return i3.O5(h2 - 1) || h2;
                if (h2 === d2 && t4) return 0;
              } else if (0 === f2 && (o2 ? a2 > l2.BA : a2 < l2.b6) && t4) return 0;
              return 1 === f2 && a2 > l2.Hy && h2 > i3.getLastFullyVisibleColumn() && i3.r6(h2) || h2;
            }
            return -1;
          }, t3.prototype.f9 = function(t4) {
            var n3, e3 = 0;
            return E(t4) || 0 === t4 || (n3 = t4 < 0, e3 = G(500 / P(t4)), (e3 = L(20, 10 * e3)) > 200 && (e3 = 200), n3 && (e3 = -e3)), e3;
          }, t3.prototype.v9 = function(t4, n3) {
            var e3, i3 = this.Mf.nI(t4, n3);
            return i3 !== _ ? i3 : t4;
          }, t3.prototype.g9 = function(t4, n3) {
            var e3, i3 = this.Mf.r6(t4, n3);
            return i3 !== _ ? i3 : t4;
          }, t3.prototype.oD = function(t4, n3, e3) {
            for (var i3 = this.Mf; t4 > n3; ) if (t4--, i3.getRowVisible(t4, e3)) return t4;
            return t4;
          }, t3.prototype.aD = function(t4, n3, e3) {
            for (var i3 = this.Mf; t4 > n3; ) if (t4--, i3.getColumnVisible(t4, e3)) return t4;
            return t4;
          }, t3.prototype.uD = function(t4, n3, e3) {
            for (var i3 = this.Mf; t4 < n3; ) if (t4++, i3.getColumnVisible(t4, e3)) return t4;
            return t4;
          }, t3.prototype.sD = function(t4, n3, e3) {
            for (var i3 = this.Mf; t4 < n3; ) if (t4++, i3.getRowVisible(t4, e3)) return t4;
            return t4;
          }, t3.prototype.cD = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = _;
            if (!Xt(t4)) return k2;
            if (a2 = this, u2 = t4.options.reversalTrailingResizeOrder, s2 = t4.Ny, c2 = 2 === xt(n3), l2 = u2 && (f2 = c2 && s2), h2 = c2 && !s2 || l2, !(d2 = t4._y(xt(n3), i3)) || E(n3.row) || E(n3.col)) {
              if (E(n3.row) && 1 === xt(n3)) for (A2 = 3, I2 = 0; I2 < A2 && (k2 = a2.fD(t4, I2, e3, i3, r2)) === _; I2++) ;
            } else t4.getRowVisible(n3.row, i3) || (n3.row = this.v9(n3.row, i3)), (v2 = d2.findRow(n3.row)) && (g2 = (p2 = gt(v2.height, e3))[0], m2 = p2[1], b2 = !(l2 && d2[d2.length - 1].row === v2.row), v2.y + v2.height - m2 <= r2 && r2 <= v2.y + v2.height + m2 && b2 ? (k2 = Ft(rt, n3.row, i3), (y2 = d2[d2.length - 1].row) >= 0 && (w2 = t4.P6(i3), k2.index === w2 && k2.index !== y2 && v2.y + v2.height - m2 / 2 <= r2 && (k2 = Ft(a2.lD(t4, y2, i3), y2, i3))), c2 && Pt(k2.index, t4, i3) && (k2.R6 = true), l2 && (M2 = a2.sD(k2.index, d2[d2.length - 1].row, i3), (k2 = Ft(a2.lD(t4, M2, i3), M2, i3)).E6 = l2)) : v2.y - g2 <= r2 && r2 < v2.y + g2 && (o.Common.Uf.hD(d2, v2) > 0 || h2) && (C2 = a2.oD(n3.row, 0, i3), k2 = Ft(a2.lD(t4, C2, i3), C2, i3), l2 && (k2 = Ft(rt, n3.row, i3), (S2 = d2[0].row) >= 0 && (T2 = t4.j5(S2 - 1, i3, true), k2.index === T2 && k2.index !== S2 && r2 < v2.y + g2 / 2 && (k2 = Ft(a2.lD(t4, S2, i3), S2, i3))), k2.E6 = l2))), !k2 && 1 === xt(n3) && d2.length > 0 && (v2 = d2[0], L(0, v2.y - e3) <= r2 && r2 <= v2.y + e3 && (x2 = ln(t4, n3.row, true)) >= 0 && (k2 = Ft(a2.lD(t4, x2, i3), x2, i3)));
            return k2 && !t4.getRowResizable(k2.index, i3) && (k2 = _), k2;
          }, t3.prototype.fD = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = _, u2 = 2 === n3, s2 = t4._y(n3, i3), c2 = s2[u2 ? 0 : s2.length - 1], f2, l2;
            return M(c2) || 0 !== c2.height || (f2 = u2 ? c2.y : c2.y + c2.height, l2 = c2.row, L(0, f2 - e3) <= r2 && r2 <= f2 + e3 && (a2 = Ft(o2.lD(t4, l2, i3), l2, i3), u2 && (a2.E6 = true))), a2;
          }, t3.prototype.lD = function(t4, n3, e3) {
            var i3 = t4.parent;
            return i3 && 1 === i3.options.resizeZeroIndicator && t4.getRowVisible(n3) && 0 === t4._o(n3, e3) ? it : rt;
          }, t3.prototype.dD = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2 = _;
            if (!qt(t4)) return D2;
            if (a2 = this, u2 = t4.options.reversalTrailingResizeOrder, s2 = t4.Vy, c2 = 2 === At(n3), l2 = u2 && (f2 = c2 && s2), h2 = c2 && !s2 || l2, d2 = t4.options.rightToLeft, !(v2 = t4.Yy(At(n3), i3)) || E(n3.col) || E(n3.row)) {
              if (E(n3.col) && 1 === At(n3)) for (N2 = 3, j2 = 0; j2 < N2 && (D2 = a2.vD(t4, j2, e3, i3, r2)) === _; j2++) ;
            } else t4.getColumnVisible(n3.col, i3) || (n3.col = this.g9(n3.col, i3)), (p2 = v2.findCol(n3.col)) && (m2 = (g2 = gt(p2.width, e3))[0], b2 = g2[1], y2 = t4.getColumnWidth(n3.col, i3), y2 *= w2 = t4.zoom(), M2 = !(l2 && v2[v2.length - 1].col === p2.col), p2.x + y2 - b2 <= r2 && r2 <= p2.x + y2 + b2 && M2 && (!d2 || 0 !== o.Common.Uf.hD(v2, p2)) ? (C2 = d2 ? a2.aD(n3.col, 0, i3) : n3.col, D2 = Ft(ot, C2, i3), (S2 = v2[v2.length - 1].col) >= 0 && (T2 = t4.G6(i3), D2.index === T2 && D2.index !== S2 && p2.x + y2 - b2 / 2 <= r2 && (D2 = Ft(a2.mD(t4, S2, i3), S2, i3))), c2 && Bt(D2.index, t4, i3) && (D2.B6 = true), l2 && (x2 = a2.uD(D2.index, v2[v2.length - 1].col, i3), (D2 = Ft(a2.mD(t4, x2, i3), x2, i3)).j6 = l2)) : p2.x - m2 <= r2 && r2 < p2.x + m2 && (o.Common.Uf.hD(v2, p2) > 0 || d2 && 0 === o.Common.Uf.hD(v2, p2) || h2) && (C2 = d2 ? n3.col : a2.aD(n3.col, 0, i3), D2 = Ft(a2.mD(t4, C2, i3), C2, i3), l2 && (D2 = Ft(ot, n3.col, i3), (A2 = v2[0].col) >= 0 && (I2 = t4.O5(A2 - 1, i3, true), D2.index === I2 && D2.index !== A2 && r2 < p2.x + m2 / 2 && (D2 = Ft(a2.mD(t4, A2, i3), A2, i3))), D2.j6 = l2))), !D2 && 1 === At(n3) && v2.length > 0 && (p2 = v2[0], L(0, p2.x - e3) <= r2 && r2 <= p2.x + e3 && (k2 = d2 ? n3.col : ln(t4, n3.col, false)) >= 0 && (D2 = Ft(a2.mD(t4, k2, i3), k2, i3)));
            return D2 && t4.gD && t4.pD(n3, D2.index) && (D2 = _), D2 && !t4.getColumnResizable(D2.index, i3) && (D2 = _), D2 && d2 && (D2.Hur = true), D2;
          }, t3.prototype.vD = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = _, u2 = 2 === n3, s2 = t4.Yy(n3, i3), c2 = s2[u2 ? 0 : s2.length - 1], f2, l2;
            return M(c2) || 0 !== c2.width || (f2 = u2 ? c2.x : c2.x + c2.width, l2 = c2.col, L(0, f2 - e3) <= r2 && r2 <= f2 + e3 && (a2 = Ft(o2.mD(t4, l2, i3), l2, i3), u2 && (a2.j6 = true), t4.options.rightToLeft && (a2.Hur = true))), a2;
          }, t3.prototype.mD = function(t4, n3, e3) {
            var i3 = t4.parent;
            return i3 && 1 === i3.options.resizeZeroIndicator && t4.getColumnVisible(n3) && 0 === t4.Do(n3, e3) ? at : ot;
          }, t3.prototype.bD = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, f2, l2, h2 = this, d2 = h2.Mf, v2 = d2.parent, p2 = d2.options, g2 = p2.colHeaderVisible, m2 = p2.rowHeaderVisible, b2 = _;
            return v2 && !v2.options.allowUserResize || (a2 = d2.Fi(), xt(t4) < 0 && At(t4) >= 0 && g2 && t4.row >= d2.getFreeAreaRowCount(c.SheetArea.colHeader) ? (b2 = h2.dD(d2, t4, i3, 1, n3)) || (b2 = h2.cD(d2, t4, i3, 1, e3)) : xt(t4) >= 0 && At(t4) < 0 && m2 && t4.col >= d2.getFreeAreaRowCount(c.SheetArea.rowHeader) ? (b2 = h2.cD(d2, t4, i3, 2, e3)) || (b2 = h2.dD(d2, t4, i3, 2, n3)) : xt(t4) < 0 && At(t4) < 0 ? d2.P6(2) === _ && P(e3 - a2.qC) <= i3 ? (u2 = d2._y(1)) && u2.length > 0 && (r2 = u2[u2.length - 1].row) >= 0 && d2.getRowResizable(r2, 2) && (b2 = Ft(h2.lD(d2, r2, 2), r2, 2)) : d2.G6(1) === _ && P(n3 - a2.XC) <= i3 && (s2 = d2.Yy(1)) && s2.length > 0 && (o2 = s2[s2.length - 1].col) >= 0 && d2.getColumnResizable(o2, 1) && (b2 = Ft(h2.mD(d2, o2, 1), o2, 1)) : xt(t4) >= 0 && At(t4) >= 0 && (r2 = St(d2, 1) - 1, o2 = Tt(d2, 2) - 1, f2 = d2.options.sheetAreaOffset.top, l2 = d2.options.sheetAreaOffset.left, r2 >= 0 && 0 === a2.qC && f2 <= e3 && e3 <= i3 + f2 && g2 ? b2 = Ft(h2.lD(d2, r2, 1), r2, 1) : o2 >= 0 && 0 === a2.XC && l2 <= n3 && n3 <= i3 + l2 && m2 && (b2 = Ft(h2.mD(d2, o2, 2), o2, 2)))), b2;
          }, t3.prototype.yD = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this.Mf, c2 = s2.Fi(), f2 = c2.c9(1, 1), l2 = s2.options.rightToLeft;
            if (1 === n3) {
              if ((r2 = s2.Yy(n3)) && r2.length > 0) {
                if (o2 = r2[r2.length - 1], !l2 && o2.x + o2.width <= e3 && e3 < f2.x + f2.width || l2 && e3 < o2.x && e3 >= f2.x) return true;
              } else if (f2.contains(e3, i3)) return true;
            }
            if (1 === t4) {
              if ((a2 = s2._y(t4)) && a2.length > 0) {
                if ((u2 = a2[a2.length - 1]).y + u2.height <= i3 && i3 < f2.y + f2.height) return true;
              } else if (f2.contains(e3, i3)) return true;
            }
            return false;
          }, t3.prototype.pg = function(t4) {
            var n3 = this.uw();
            this.wD(t4, t4.pageX - n3.left, t4.pageY - n3.top);
          }, t3.prototype.yg = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this.Mf, u2 = a2.sw;
            u2 && (t4 = u2.cellTypeHitInfo) && (n3 = pn(a2, t4, u2)).Ye(t4), this.rb || (a2.Nk = O, e3 = { x: -1e4, y: -1e4, rowViewportIndex: _, colViewportIndex: _, row: -1, col: -1, resizeInfo: _, hitTestType: _ }, this.fw(e3), u2 && (i3 = u2.row, r2 = u2.col, o2 = a2.getActualStyle(i3, r2), a2.Bgr && (clearTimeout(a2.Bgr), delete a2.Bgr), a2.MD && (clearTimeout(a2.MD), delete a2.MD), a2.r1e && (clearTimeout(a2.r1e), delete a2.r1e), a2.parent && o2 && o2.showEllipsis && a2.parent.iy()));
          }, t3.prototype.wD = function(t4, n3, e3) {
            var i3, o2, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, E2, R2 = this;
            R2.fk = { e: t4, x: n3, y: e3 }, i3 = R2.Mf, R2.ab && !s.hi.A1(i3) && s.hi.F1(i3), R2.ab && R2.rb ? R2.isResizing ? R2.y9() : R2.eBe ? R2.YRe && R2.YRe() : R2.Uk ? R2.Hk && R2.Hk() : R2.zk ? R2.Vk && R2.Vk() : R2.Yk ? R2.Zk && R2.Zk() : R2.Wk ? R2.Qk() : R2.Kk ? R2.Jk() : R2.Xk ? R2.qk() : R2.$k ? R2.t9 && R2.t9() : R2.ob && R2.Gk(n3, e3) : (o2 = i3.hitTest(n3, e3, O, O, true), R2.CD(i3, o2, R2), o2 && (a2 = { hitInfo: o2, e: t4, r: _ }, r.Worksheet.et(i3, "processMouseMove", a2), a2.r || (0 === R2.Q6 && o2.tableSelectInfo && R2.ab && R2.SD(i3, R2, o2), u2 = i3.parent, f2 = o2.row, l2 = o2.col, h2 = i3.C6(o2.rowViewportIndex, o2.colViewportIndex), p2 = o2.pivotTableInfo, g2 = !M(p2) && p2.options.showToolTip, m2 = i3.isReportTemplateSheet && i3.showToolTip(), u2 ? (v2 = i3.getActualStyle(f2, l2, h2), !g2 || i3.isEditing && i3.isEditing() ? !m2 || i3.isEditing && i3.isEditing() ? (clearTimeout(i3.MD), delete i3.MD, C2 = void 0, o2.cellTypeHitInfo && o2.cellTypeHitInfo.addRowColumnButtonHitInfo && (1 === (S2 = o2.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType ? (d2 = i3.options.addColumnButtonOption.tooltip) && (v2 = i3.J_e(c.SheetArea.colHeader), h2 = c.SheetArea.colHeader, C2 = true) : 2 === S2.addRowColumnButtonType && (d2 = i3.options.addRowButtonOption.tooltip) && (v2 = i3.J_e(c.SheetArea.rowHeader), h2 = c.SheetArea.rowHeader, C2 = true)), C2 || (x2 = f2, A2 = l2, (T2 = i3.getSpan(f2, l2, h2)) && (x2 = T2.row, A2 = T2.col), d2 = i3.Ci(x2, A2, h2)), d2 && false !== v2._showTip && h2 ? (clearTimeout(i3.Bgr), delete i3.Bgr, i3.Bgr = setTimeout((function(t5, n4) {
              u2.Tw(b.j0(d2), t5, n4 + st, false, O, true);
            }), ct, o2.x, o2.y)) : (I2 = u2.options.showScrollTip && (u2._vScrollbar.a4 || u2._hScrollbar.a4 || u2.Xw.a4)) || u2.iy()) : (d2 = i3.getCellTipContent(f2, l2), w2 = "gc-spread-template-sheet-toolTip", clearTimeout(i3.r1e), delete i3.r1e, u2.iy(), d2 && false !== v2._showTip && (i3.r1e = setTimeout((function(t5, n4) {
              u2.Tw(d2, t5, n4 + 15, false, w2);
            }).bind(void 0, o2.x, o2.y), 300))) : (d2 = p2.sJt(f2, l2), y2 = "gc-spread-pivot-toolTip", clearTimeout(i3.MD), delete i3.MD, u2.iy(), d2 && false !== v2._showTip && (i3.MD = setTimeout((function(t5, n4) {
              u2.Tw(d2, t5, n4 + 15, false, y2);
            }).bind(void 0, o2.x, o2.y), 700)))) : (i3.Bgr && (clearTimeout(i3.Bgr), delete i3.Bgr), clearTimeout(i3.MD), delete i3.MD), R2.cw(o2), k2 = !i3.sw && o2, N2 = R2.fw(o2), D2 = (j2 = u2 && u2.options.enableAccessibility) && (N2 || o2 && o2.outlineHitInfo), N2 && (k2 || (clearTimeout(i3.Bgr), delete i3.Bgr, u2.iy())), D2 && (E2 = i3.t2(o2), u2.n2(E2)))));
          }, t3.prototype.CD = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2;
            1 === e3.Q6 ? (i3 = e3.TD.row, r2 = e3.TD.col, o2 = n3.col, a2 = t4.getSelections()[0], t4.kA(i3, r2 > o2 ? o2 : r2, a2.rowCount, r2 - o2 > 0 ? r2 - o2 + 1 : o2 - r2 + 1, true)) : 2 === e3.Q6 && (i3 = e3.TD.row, r2 = e3.TD.col, u2 = n3.row, a2 = t4.getSelections()[0], t4.kA(i3 > u2 ? u2 : i3, r2, i3 - u2 > 0 ? i3 - u2 + 1 : u2 - i3 + 1, a2.colCount, true));
          }, t3.prototype.SD = function(t4, n3, e3) {
            var i3, r2 = t4.getActiveRowIndex(), o2 = t4.getActiveColumnIndex();
            n3.TD = { row: r2, col: o2 }, "tableColSelect" === (i3 = e3.tableSelectInfo.action) ? n3.Q6 = 1 : "tableRowSelect" === i3 && (n3.Q6 = 2);
          }, t3.prototype.cw = function(t4) {
            var n3, e3, i3, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.Mf, S2 = C2.Dg();
            if (S2) if (i3 = !(n3 = C2.sw) || t4.row !== n3.row || t4.col !== n3.col || It(t4) !== It(n3) || t4.resizeInfo && !n3.resizeInfo || !t4.resizeInfo && n3.resizeInfo || t4.resizeInfo && t4.resizeInfo.action !== n3.resizeInfo.action || t4.dragInfo && !n3.dragInfo || !t4.dragInfo && n3.dragInfo || t4.dragInfo && t4.dragInfo.action !== n3.dragInfo.action || t4.resizeTableHitInfo && !n3.resizeTableHitInfo || t4.dragHeaderToMoveInfo && !n3.dragHeaderToMoveInfo || !t4.dragHeaderToMoveInfo && n3.dragHeaderToMoveInfo || !t4.cellTypeHitInfo && n3.cellTypeHitInfo, n3 && i3 && (o2 = n3.cellTypeHitInfo) && (e3 = pn(C2, o2, n3)).Ye(o2), a2 = t4.resizeInfo, u2 = t4.dragMergeInfo, c2 = t4.dragInfo, f2 = t4.formulaRangeHitInfo, l2 = t4.cellTypeHitInfo, h2 = C2.Dn, d2 = t4.resizeTableHitInfo, v2 = t4.tableSelectInfo, p2 = t4.dragHeaderToMoveInfo, g2 = { hitInfo: t4, r: _ }, v2) "tableRowSelect" === v2.action ? S2.style.cursor = "url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI4cHgiIGhlaWdodD0iOHB4IiB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjAiIHk9IjAiCiAgICBocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFnQUFBQUlDQVFBQUFCdUJuWUFBQUFBQkdkQlRVRUFBTEdQQy94aEJRQUFBQ0JqU0ZKTgpBQUI2SmdBQWdJUUFBUG9BQUFDQTZBQUFkVEFBQU9wZ0FBQTZtQUFBRjNDY3VsRThBQUFBQW1KTFIwUUEvNGVQekw4QUFBQUhkRWxOClJRZm1BeDBHTURRVFpSbFpBQUFBUzBsRVFWUUkxMlhOc1ExQVVBQkYwZU9qVWxFYXdTNFM0Mmh0d0JCS0kyQXVJcUhReUhmcW0vZDQKNVZxbGo5eGlWSkRwSlFnYW5jdVF1RC9kYVE0aXFjTm10YXRWSnYxdlZIejdBRU5GRE9OV3daY3lBQUFBSlhSRldIUmtZWFJsT21OeQpaV0YwWlFBeU1ESXlMVEF6TFRJNVZEQTJPalE0T2pVeUt6QXdPakF3VkVsRUpBQUFBQ1YwUlZoMFpHRjBaVHB0YjJScFpua0FNakF5Ck1pMHdNeTB5T1ZRd05qbzBPRG8xTWlzd01Eb3dNQ1VVL0pnQUFBQUFTVVZPUks1Q1lJST0iIC8+Cjwvc3ZnPgo=) 8 4,auto" : "tableColSelect" === v2.action ? S2.style.cursor = "url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI4cHgiIGhlaWdodD0iOHB4IiB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjAiIHk9IjAiCiAgICBocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFnQUFBQUlDQVFBQUFCdUJuWUFBQUFBQkdkQlRVRUFBTEdQQy94aEJRQUFBQ0JqU0ZKTgpBQUI2SmdBQWdJUUFBUG9BQUFDQTZBQUFkVEFBQU9wZ0FBQTZtQUFBRjNDY3VsRThBQUFBQW1KTFIwUUEvNGVQekw4QUFBQUhkRWxOClJRZm1BeDBHTlRobnBLRTNBQUFBVGtsRVFWUUkxMlhJTVFwQVVBQUEwUGQ5UlprZHdlNFFWanVUZ3pBN25LTllETCtVb3V5ODhRR1QKMjIyQ0hBUVJBVElmdjRocXZVNkxRMm5QSkkwQmpCb0pDb3ZUYVZZUThkaFVOcXVMRjkwZUQzQ2dxdzV5QUFBQUpYUkZXSFJrWVhSbApPbU55WldGMFpRQXlNREl5TFRBekxUSTVWREEyT2pVek9qVTJLekF3T2pBd21XaEVBQUFBQUNWMFJWaDBaR0YwWlRwdGIyUnBabmtBCk1qQXlNaTB3TXkweU9WUXdOam8xTXpvMU5pc3dNRG93TU9nMS9Md0FBQUFBU1VWT1JLNUNZSUk9IiAvPgo8L3N2Zz4K) 8 4,auto" : "tableCornerSelect" === v2.action ? S2.style.cursor = "url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxMHB4IiBoZWlnaHQ9IjEwcHgiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAgMTAiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgeD0iMCIgeT0iMCIKICAgIGhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQW9BQUFBS0NBUUFBQUFuT3djMkFBQUFCR2RCVFVFQUFMR1BDL3hoQlFBQUFDQmpTRkpOCkFBQjZKZ0FBZ0lRQUFQb0FBQUNBNkFBQWRUQUFBT3BnQUFBNm1BQUFGM0NjdWxFOEFBQUFBbUpMUjBRQS80ZVB6TDhBQUFBSGRFbE4KUlFmbUF4MEdOd1BrbVNxUkFBQUFZRWxFUVZRSTExM01zUTJETUJRRTBDZTZVRUxDQnBHeUhOUFEyeVVNeFFRWkFjVXhCV0FCZDkzVAovMGVsTitsYzB2djZDNW96anBJc2lZVnJYc0tGbndab3hKMkR0eWh0RHdjdlpvdDhMTGVDbjd5MzVHTytZeXZlTHg4R3FWQmVBYnlQCk1QNG1OSW4zQUFBQUpYUkZXSFJrWVhSbE9tTnlaV0YwWlFBeU1ESXlMVEF6TFRJNVZEQTJPalUxT2pBekt6QXdPakF3anE0VmhBQUEKQUNWMFJWaDBaR0YwWlRwdGIyUnBabmtBTWpBeU1pMHdNeTB5T1ZRd05qbzFOVG93TXlzd01Eb3dNUC96clRnQUFBQUFTVVZPUks1QwpZSUk9IiAvPgo8L3N2Zz4K) 10 5,auto" : "tableSelect" === v2.action ? S2.style.cursor = "move" : "default" === v2.action && (S2.style.cursor = "");
            else if (a2) {
              if (r.Worksheet.et(C2, "beforeDisplayResizeRowsOrColumnsCursor", g2), g2.r) return;
              a2.action === ot ? S2.style.cursor = s.CursorResource.ResizeCol : a2.action === rt ? S2.style.cursor = s.CursorResource.ResizeRow : a2.action === at ? S2.style.cursor = s.CursorResource.ResizeHiddenCol : a2.action === it ? S2.style.cursor = s.CursorResource.ResizeHiddenRow : S2.style.cursor = ut;
            } else if (p2) {
              if (r.Worksheet.et(C2, "beforeDisplayDragHeaderToMoveCursor", g2), g2.r) return;
              S2.style.cursor = M2.eBe ? s.CursorResource.DragHeaderGrabbing : s.CursorResource.DragHeaderGrab;
            } else if (u2) {
              if (r.Worksheet.et(C2, "beforeDisplayDragMergeCursor", g2), g2.r) return;
              u2.left || u2.right ? S2.style.cursor = "w-resize" : (u2.top || u2.bottom) && (S2.style.cursor = "n-resize");
            } else if (c2 && "drag" === c2.action) if (c2.side === et) {
              if (r.Worksheet.et(C2, "beforeDisplayDragFillCursor", g2), g2.r) return;
              S2.style.cursor = "crosshair";
            } else if (c2.side) {
              if (r.Worksheet.et(C2, "beforeDisplayDragDroppingCursor", g2), g2.r) return;
              S2.style.cursor = "move";
            } else S2.style.cursor = ut;
            else if (f2) {
              if (r.Worksheet.et(C2, "beforeDisplayDragDroppingCursor", g2), g2.r) return;
              f2.inBorder ? S2.style.cursor = "move" : f2.inTopLeft ? S2.style.cursor = "nw-resize" : f2.inTopRight ? S2.style.cursor = "ne-resize" : f2.inBottomLeft ? S2.style.cursor = "sw-resize" : f2.inBottomRight && (S2.style.cursor = "se-resize"), m2 = M2.isFormulaRangeHovering, y2 = (b2 = M2.AD) && b2.paramRange, w2 = f2.paramRange, M2.isFormulaRangeHovering = true, M2.AD = { paramRange: w2 }, m2 && w2.index === y2.index || h2.Fde();
            } else if (d2) {
              if (r.Worksheet.et(C2, "beforeDisplayResizingTableCursor", g2), g2.r) return;
              S2.style.cursor = C2.options.rightToLeft ? "sw-resize" : "se-resize";
            } else l2 && (e3 = pn(C2, l2, t4), i3 && e3.processMouseEnter(l2), e3.ze(l2)), !i3 && l2 && l2.isReservedLocation || (S2.style.cursor = ut), M2.isFormulaRangeHovering && (M2.isFormulaRangeHovering = false, M2.AD = _, h2.Fde());
          }, t3.prototype.bg = function(t4) {
            var n3 = this, e3 = n3.Mf;
            return n3.u2(), !e3.vk || (e3.vk = false, n3.xD(t4), false);
          }, t3.prototype.xD = function(t4) {
            var n3, e3, i3, o2, a2, u2 = this, c2 = u2.Mf, f2 = s.hi.ai();
            u2.ab = false, u2.Q6 = 0, f2 && f2 !== c2 && f2.endEdit && (f2.il && f2.il.rl || (f2.endEdit(), f2.repaint())), s.hi.F1(c2), n3 = { hitInfo: c2.sw, e: t4, r: _ }, r.Worksheet.et(c2, "processMouseUp", n3), n3.r || (u2.isResizing ? u2.C9() : u2.eBe ? u2.ZRe && u2.ZRe() : u2.Uk ? u2.ND && u2.ND() : u2.zk ? u2.kD && u2.kD(t4) : u2.Yk ? u2.DD && u2.DD() : u2.Wk ? u2._D() : u2.Kk ? u2.ED() : u2.Xk ? u2.jD() : u2.$k ? u2.OD && u2.OD() : c2.sw && (i3 = (e3 = c2.sw).cellTypeHitInfo, !e3.filterButtonHitInfo && !e3.resizeInfo && e3.row >= 0 && e3.col >= 0 ? (i3 && (o2 = c2.getCellType(i3.row, i3.col, It(e3)), i3.sheet || (i3.sheet = c2), o2.Ve(i3)), i3 && i3.isReservedLocation || c2.ki(s.Events.CellClick, Ut(c2, c2.name(), e3.row, e3.col, It(e3))), u2.X9(), c2.RD && c2.BD && c2.BD()) : e3.cellTypeHitInfo && e3.cellTypeHitInfo.addRowColumnButtonHitInfo && (a2 = pn(c2, i3, e3)).Ve(i3)), u2.LD = false, u2.yk(t4));
          }, t3.prototype.FD = function(t4, n3, e3) {
            var i3, r2 = this.Mf;
            r2.isEditing && r2 === s.hi.ai() && (i3 = r2.Dg(), _t(t4) || Dt(t4) || r2.m6(i3, n3, e3));
          }, t3.prototype.pf = function(t4) {
            var n3, e3, i3, o2, a2, u2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf;
            if (p2) {
              if (n3 = kt(p2), e3 = Nt(p2), i3 = p2.getCellType(n3, e3), o2 = { isEditing: yt(p2), sheet: p2, row: n3, col: e3, sheetArea: 3 }, a2 = { sheet: p2, row: n3, col: e3, sheetArea: 3 }, i3 && i3.isReservedKey(t4, o2)) return void (yt(p2) || i3.processKeyDown(t4, a2));
              if (u2 = { e: t4, r: _, c: o2 }, r.Worksheet.et(p2, "preProcessKeyDown", u2), u2.r) return;
            }
            if (c2 = !(yt(p2) || Dt(t4) || Et(t4) || 34 !== jt(t4) && 33 !== jt(t4) && 37 !== jt(t4) && 39 !== jt(t4) && 9 !== jt(t4) && 13 !== jt(t4) && 38 !== jt(t4) && 40 !== jt(t4)), p2.Oi && (p2.Oi = false, p2.Dn.PD()), h2 = 13 === (l2 = jt(t4)), d2 = 27 === l2, p2.RD && p2.GD && (h2 || d2) ? p2.GD(d2) : c2 ? (v2.UD && l2 !== v2.OUr && v2.V5(), v2.UD ? f2 = v2.HD : (v2.OUr = l2, f2 = v2.HD = v2.zD(t4))) : f2 = v2.zD(t4), c2 && f2 && s.hi.A1(p2)) {
              if (v2.VD = /* @__PURE__ */ new Date(), v2.UD) return v2.YD < 25 && v2.YD++, void g(t4);
              v2.UD = true, v2.YD = 1, v2.ZD(t4, true);
            }
          }, t3.prototype.p9 = function() {
            var t4, n3, e3 = this.Mf, i3 = e3.sw, r2 = i3.resizeInfo;
            return r2.action === rt || r2.action === it ? (t4 = e3.getRowHeight(r2.index), y(ht().Tip_Height, [t4])) : (n3 = e3.getColumnWidth(r2.index), y(ht().Tip_Width, [n3]));
          }, t3.prototype.w9 = function(t4) {
            var n3, e3 = this.Mf;
            return t4.action === rt || t4.action === it ? y(ht().Tip_Height, [L(0, F((t4.movingY - t4.startY) / e3.zoom()))]) : (n3 = L(0, F((t4.Hur ? t4.startX - t4.movingX : t4.movingX - t4.startX) / e3.zoom())), y(ht().Tip_Width, [n3]));
          }, t3.prototype.ZD = function(t4, n3) {
            var e3 = this;
            e3.UD && (/* @__PURE__ */ new Date() - e3.VD > (e3.YD > 1 ? 100 : 600) ? e3.V5() : (n3 || (e3.HD = e3.zD(t4)), e3.UD && (e3.K6 = l.setTimeout((function() {
              e3.ZD(t4);
            }), n3 ? 500 : 20))));
          }, t3.prototype.WD = function(t4, n3) {
            var e3, i3, r2, o2 = this.Mf, a2 = o2.Dg();
            if (a2) {
              o2.Ai = true;
              try {
                e3 = yt(o2), o2.f6 && o2.f6(a2, o2.ui, o2.ci, _, _, true, _, n3, t4), !e3 && yt(o2) && (!(i3 = o2.getCellType(o2.ui, o2.ci)).j3 || 32 !== jt(t4) || Dt(t4) || _t(t4) || Ot(t4) || i3.j3(o2, o2.ui, o2.ci, 3), i3.QD && i3.QD(t4));
              } finally {
                o2.Ai = false, (r2 = o2.ST()).TT && delete r2.TT;
              }
            }
          }, t3.prototype.zD = function(t4) {
            var n3, e3, i3, o2, a2, s2, c2, f2, h2, d2, v2, p2, m2, b2, y2, w2, M2 = this, C2 = M2.Mf;
            if (M2.yk(t4), yt(C2) || 27 !== jt(t4) || Ot(t4) || Dt(t4) || _t(t4) || !C2.KD || ((0, u.GC$)(C2.KD).remove(), C2.KD = _), n3 = C2.ST(), yt(C2) || 27 !== jt(t4) || Ot(t4) || Dt(t4) || _t(t4) || !n3.TT || delete n3.TT, yt(C2) || 34 !== jt(t4) && 33 !== jt(t4) && 35 !== jt(t4) && 36 !== jt(t4) && 38 !== jt(t4) && 40 !== jt(t4) || g(t4), yt(C2) || 37 !== jt(t4) && 39 !== jt(t4) || g(t4), yt(C2) && Dt(t4) && (89 === jt(t4) || 90 === jt(t4))) return g(t4), false;
            if (e3 = C2.Qy(), i3 = jt(t4), o2 = e3.getShortcutKey(i3, Dt(t4), _t(t4), Ot(t4), Et(t4)), s2 = { cmds: a2 = e3.getCommands(o2), r: _, convertedSheets: {} }, r.Worksheet.et(C2, "beforeExecuteShortcut", s2), a2 = s2.cmds) {
              for (c2 = 0; c2 < a2.length; c2++) if (f2 = a2[c2], d2 = { sheetName: (h2 = s2.convertedSheets[f2.Zc] || C2).name(), eye: true }, (v2 = f2.execute(h2.parent, d2)) || d2.JD) return v2.ignoreCancelDefault || g(t4), true;
            }
            if (p2 = { e: t4, r: _ }, r.Worksheet.et(C2, "processKeyDown", p2), p2.r) return true;
            if (M2.Pi(t4)) {
              if (r.Worksheet.et(C2, "beforeStartEdit", p2), p2.r) return;
              (m2 = C2.il) && m2.XD && m2.qD(), (b2 = yt(C2)) || (w2 = (y2 = l.gcGlobal.el(t4.target)) && "gcAttachedFormulaTextBox" === y2.getAttribute(nt)) || M2.WD(t4);
            }
            return false;
          }, t3.prototype.V5 = function() {
            var t4 = this;
            t4.UD = false, t4.HD = O, t4.OUr = O, t4.YD = 0, t4.K6 > 0 && (clearTimeout(t4.K6), t4.K6 = 0);
          }, t3.prototype.bf = function(t4) {
            var n3, e3, i3, o2, a2, u2, c2, f2, l2, h2, d2 = this;
            if (d2.V5(), n3 = d2.Mf) {
              if (e3 = kt(n3), i3 = Nt(n3), o2 = n3.getCellType(e3, i3), a2 = { isEditing: yt(n3), sheet: n3, row: e3, col: i3, sheetArea: 3 }, u2 = { sheet: n3, row: e3, col: i3, sheetArea: 3 }, o2 && o2.isReservedKey(t4, a2)) return void (yt(n3) || o2.processKeyUp(t4, u2));
              if (c2 = { e: t4, r: _ }, r.Worksheet.et(n3, "processKeyUp", c2), c2.r) return;
              if ((f2 = n3.il) && f2.$D(t4)) return;
              if ((l2 = n3.parent && n3.parent.h6) && l2.$D(t4)) return;
              n3.parent && n3.parent.options.enableAccessibility && s.mt.Qf() && (34 !== (h2 = jt(t4)) && 33 !== h2 && 35 !== h2 && 36 !== h2 && 37 !== h2 && 39 !== h2 && 9 !== h2 && 13 !== h2 && 38 !== h2 && 40 !== h2 || n3.parent.n2(O));
            }
            d2.yk(t4);
          }, t3.prototype.yf = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = { e: t4, r: _ };
            r.Worksheet.et(e3, "processCompositionStart", i3), i3.r || this.WD(t4, true);
          }, t3.prototype.Pi = function(t4) {
            return !(Dt(t4) || Ot(t4) || Et(t4)) && (jt(t4) >= 65 && jt(t4) <= 90 || jt(t4) >= 48 && jt(t4) <= 59 || jt(t4) >= 96 && jt(t4) <= 105 || jt(t4) >= 186 && jt(t4) <= 192 || jt(t4) >= 220 && jt(t4) <= 222 || 219 === jt(t4) || jt(t4) >= 106 && jt(t4) <= 111 || 32 === jt(t4) || 61 === jt(t4) || 173 === jt(t4) || 229 === jt(t4) || 0 === jt(t4) || 8 === jt(t4) || 223 === jt(t4));
          }, t3.prototype.yk = function(t4) {
            var n3, e3 = this, i3 = e3.Mf, r2 = s.mt.Qf(), o2 = r2 ? Et(t4) : Dt(t4);
            e3.ctrl = o2 && !_t(t4), e3.shift = _t(t4) && !o2, e3.isPressShiftKey = _t(t4), true === e3.zk && (e3.t_ = o2, n3 = _t(t4), e3.e_ && (n3 = !_t(t4)), e3.i_ = n3, i3.Dn.o_ && i3.Dn.o_()), e3.a_ = o2;
          }, t3.prototype.Y5 = function() {
            var t4 = this;
            t4.shift = false, t4.ctrl = false, t4.zk = false, t4.i_ = false, t4.t_ = false, t4.a_ = false;
          }, t3.prototype.By = function(t4) {
            var n3, e3, i3, r2, o2, a2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2, S2, T2, x2;
            t4 && t4.sheet ? (i3 = t4.sheet, r2 = t4.editor, o2 = t4.canvasOffset) : r2 = (i3 = this.Mf).li, yt(i3) && (h2 = c.SheetArea.viewport, (d2 = i3.vA) ? (a2 = d2.row, s2 = d2.col, M(d2.sheetArea) || (h2 = d2.sheetArea)) : (a2 = i3.ui, s2 = i3.ci), h2 === c.SheetArea.rowHeader ? l2 = -1 : h2 === c.SheetArea.colHeader && (f2 = -1), v2 = i3.getCellType(a2, s2, h2), p2 = i3.Fi(), g2 = i3.getActualStyle(a2, s2, h2), m2 = i3.getCellRect(a2, s2, f2, l2), i3.parent && (null === (e3 = (n3 = i3.parent).Hro) || void 0 === e3 ? void 0 : e3.call(n3)) && (b2 = B(a2, i3.getRowCount() - 1), y2 = B(s2, i3.getColumnCount() - 1), m2 = i3.getCellRect(b2, y2, f2, l2)), r2 && r2.parentNode && (w2 = r2.parentNode.parentNode, C2 = false, S2 = i3.options.rightToLeft, h2 === c.SheetArea.rowHeader ? C2 = m2.x >= p2.x && m2.y >= p2.y + p2.qC && m2.x + m2.width <= p2.Py && m2.y + m2.height <= p2.Ay + p2.Iy : h2 === c.SheetArea.colHeader ? C2 = m2.x >= p2.x + p2.XC && m2.y >= p2.y && m2.x + m2.width <= p2.Hy + p2.zy && m2.y + m2.height <= p2.Cy : h2 === c.SheetArea.viewport && (C2 = S2 ? m2.x >= p2.x && m2.y >= p2.T6 && m2.x + m2.width <= p2.BA && m2.y + m2.height <= p2.Ay + p2.Iy : m2.x >= p2.b6 && m2.y >= p2.T6 && m2.x + m2.width <= p2.Hy + p2.zy && m2.y + m2.height <= p2.Ay + p2.Iy), m2 && m2.width > 0 && m2.height > 0 && C2 ? (T2 = { sheet: i3, row: a2, col: s2, sheetArea: h2, canvasOffset: o2 }, v2.Rn(w2, g2, m2, T2)) : (0, u.GC$)(w2).css({ top: -1e4, left: -1e4 })), (x2 = i3.il) && x2.u_());
          }, t3.prototype.s_ = function(t4, n3) {
            var e3, i3;
            if (!t4) return _;
            for (e3 = t4.firstChild; e3; ) {
              if (e3.id === n3 || e3.name === n3) return e3;
              if (i3 = this.s_(e3, n3)) return i3;
              e3 = e3.nextSibling;
            }
            return _;
          }, t3.prototype._A = function(t4, n3) {
            var e3, i3, r2, o2 = true;
            if (t4.length === n3.length) for (e3 = 0; e3 < t4.length; e3++) {
              if (i3 = t4[e3], r2 = n3[e3], i3.row !== r2.row || i3.col !== r2.col || Lt(i3) !== Lt(r2) || Rt(i3) !== Rt(r2)) {
                o2 = true;
                break;
              }
              o2 = false;
            }
            return o2;
          }, t3.prototype.f_ = function(t4, n3, e3, i3) {
            var r2, o2, a2, s2, c2, f2, h2, d2, p2 = this, g2 = p2.Mf, b2 = { sheet: g2, row: n3, col: e3, sheetArea: 3 }, y2 = g2.qc(), w2 = t4.isImeAware(b2), C2 = ft ? V : "fixed";
            return i3 && !g2.isEditing() && p2.l_(), w2 && !p2.g6 && (o2 = (r2 = t4.jn(b2)).style, p2.h_ || (p2.h_ = { overflow: q, border: $, position: V }), p2.h_.overflow = o2.overflow, p2.h_.border = o2.border, p2.h_.position = o2.position, (0, u.GC$)(r2).css([H, Y, Z, W, Q, K, z], [C2, X, "0px", "0px", "0px", "0px", $]), g2.Ri && r2.firstChild && (a2 = r2.firstChild.firstChild, g2.Ri(t4, a2, n3, e3, g2.getActualStyle(n3, e3), O, O, O, O, 3), s2 = t4.getEditorValue(a2, b2), v.safari && ("" === s2 || M(s2)) && t4.setEditorValue(a2, " ", b2)), y2 && y2.insertBefore(r2, _), p2.g6 = r2), p2.d_ || (r2 = m("div"), (0, u.GC$)(r2).css([H, Y, Z, W, Q, K], [C2, X, "0px", "0px", "0px", "0px"]), p2.d_ = r2, c2 = m("textarea"), (0, u.GC$)(c2).attr(nt, "gcSheetFocusInput").attr(tt, -1).css([H, Y, z, J], [V, X, $, $]), c2.value = " ", r2.insertBefore(c2, _), p2.I1 = c2, f2 = m("div"), (0, u.GC$)(f2).css(H, V).css(Y, X).attr(nt, "gcSheetFocusInput").attr("aria-hidden", "true").attr("title", "").attr(tt, -1), r2.insertBefore(f2, _), p2.m_ = f2, y2 && y2.insertBefore(r2, _)), !w2 && g2.parent && g2.parent.options.enableAccessibility && (g2.parent.She(), g2.The(p2.I1, "", n3, e3, 3)), h2 = l.location !== l.parent.location, d2 = l.scrollX > 0 || l.scrollY > 0, (ft || (v.mozilla || v.chrome || v.safari) && h2 || d2) && (p2.g6 && p2.g_(g2, p2.g6), p2.g_(g2, p2.d_)), w2 ? p2.g6 : p2.I1;
          }, t3.prototype.JBe = function(t4, n3, e3, i3) {
            var r2, o2 = this, a2 = o2.Mf, u2 = o2.g6;
            a2.Ri && u2 && u2.firstChild && (r2 = u2.firstChild.firstChild, a2.Ri(t4, r2, n3, e3, a2.getActualStyle(n3, e3), i3, O, O, O, 3));
          }, t3.prototype.p6 = function() {
            var t4 = this;
            t4.g6 && t4.h_ && (0, u.GC$)(t4.g6).css(Y, t4.h_.overflow).css(z, t4.h_.border).css(H, t4.h_.position);
          }, t3.prototype.l_ = function() {
            var t4 = this;
            t4.g6 && (t4.g6.parentElement && t4.g6.parentElement.removeChild(t4.g6), t4.g6.comboBox && (t4.g6.comboBox = _), t4.g6 = _);
          }, t3.prototype.Zg = function(t4) {
            s.hi.A1(this.Mf) || this.p_(true, true, t4);
          }, t3.prototype.al = function() {
            var t4 = this.m_;
            t4 && t4.focus();
          }, t3.prototype.aA = function() {
            this.p_(true, true);
          }, t3.prototype.b_ = function() {
            this.y_ && (clearTimeout(this.y_), this.y_ = _);
          }, t3.prototype.p_ = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, c2, f2, d2, g2, m2, b2, y2, w2;
            if (0 === arguments.length && (t4 = true), !(i3 = this).X6) {
              if (i3.J6 = false, i3.b_(), r2 = i3.Mf, o2 = kt(r2), a2 = Nt(r2), u2 = r2.getCellType(o2, a2), c2 = { sheet: r2, row: o2, col: a2, sheetArea: 3 }, !u2.wkr(c2)) return (f2 = h.activeElement) && f2.blur(), void h.body.blur();
              i3.f_(u2, o2, a2, n3), d2 = u2.isImeAware(c2) && i3.g6.firstChild ? i3.g6.firstChild.firstChild : i3.I1, g2 = d2, n3 && !v.msie && u2.setImeMode(g2, r2.getActualStyle(o2, a2).imeMode, c2), h.body.focus(), m2 = function() {
                var t5 = function() {
                  try {
                    u2.isImeAware(c2) ? (u2.focus(g2, c2), r2.isEditing() || u2.selectAll(g2, c2)) : (d2.focus(), r2.isEditing() || d2.select());
                  } catch (t6) {
                  }
                };
                n3 && v.msie && u2.setImeMode(g2, r2.getActualStyle(o2, a2).imeMode, c2), t5();
              }, b2 = p, y2 = v.metroMode || b2.ipad || b2.iphone || b2.android, !r2.Oi && !y2 || !t4 && u2.isImeAware(c2) ? false === r2.uJr || e3 || i3.w_(r2) || m2() : !yt(r2) && y2 ? n3 && (w2 = i3.g6 && i3.g6.firstChild && i3.g6.firstChild.firstChild, u2.setImeMode(w2, r2.getActualStyle(o2, a2).imeMode, c2)) : i3.y_ = l.setTimeout((function() {
                i3.w_(r2) || (i3.b_(), yt(r2) || false === r2.uJr || e3 || m2());
              }), 200), s.hi.A1(r2) || i3.w_(r2) || s.hi.F1(r2), i3.M_(r2) || i3.PA && i3.PA(r2.ui, r2.ci);
            }
          }, t3.prototype.g_ = function(t4, n3) {
            var e3, i3, r2, o2, a2, s2, c2, f2, h2, d2, v2 = kt(t4), p2 = Nt(t4), g2 = t4.R9, m2 = t4.B9, b2 = t4.getCellRect(v2, p2, g2, m2), y2 = this, w2 = t4.uw(), M2 = y2.it(), C2 = y2.g6, S2 = 0, T2 = 0;
            C2 && (r2 = (0, u.GC$)(C2), S2 = parseInt(r2.css(K), 10), T2 = parseInt(r2.css(Q), 10)), e3 = b2.y + M2.top - 2, i3 = b2.x + M2.left - 2, o2 = l.pageYOffset, a2 = l.pageXOffset, (s2 = "fixed" === n3.style.position && !dn(n3)) && (e3 -= o2, i3 -= a2), c2 = s2 ? 0 : o2 - w2.top + M2.top, f2 = l.innerHeight + c2 - S2, h2 = s2 ? 0 : a2 - w2.left + M2.left, d2 = l.innerWidth + h2 - T2, (E(e3) || e3 < c2 || e3 > f2) && (e3 = c2), (E(i3) || i3 < h2 || i3 > d2) && (i3 = h2), (0, u.GC$)(n3).css(Z, e3).css(W, i3);
          }, t3.prototype.C_ = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            o2.b_(), yt(o2.Mf) || o2.J6 && h.activeElement === o2.m_ || (n3 = o2.Mf, t4 ? (e3 = t4.row, i3 = t4.col) : (e3 = n3.ui, i3 = n3.ci), r2 = n3.getCellType(e3, i3), o2.f_(r2, e3, i3, false), o2.m_.focus(), o2.J6 = true);
          }, t3.prototype.S_ = function(t4, n3) {
            var e3 = this;
            e3.J6 && (e3.J6 = false, !n3 && e3.p_(t4));
          }, t3.prototype.IT = function(t4) {
            var n3 = this.Mf, e3 = n3.ST();
            e3 && (e3.YS(t4), e3.ZS(), this.X6 = true, t4 && e3.WS());
          }, t3.prototype.NT = function() {
            var t4 = this, n3 = t4.Mf.ST();
            n3 && n3.YS(""), t4.X6 = false, t4.p_(true, false);
          }, t3.prototype.T_ = function() {
            var t4, n3 = this;
            n3.b_(), (t4 = n3.g6) && ((0, u.GC$)(t4).remove(), n3.g6 = O), (t4 = n3.d_) && ((0, u.GC$)(t4).remove(), n3.I1 = O, n3.d_ = _, n3.m_ = _);
          }, t3.prototype.Tw = function(t4, n3, e3, i3) {
            var r2 = this.Mf.parent;
            r2 && r2.Tw(b.j0(t4), n3, e3, i3);
          }, t3.prototype.ny = function(t4, n3, e3, i3) {
            var r2 = this.Mf.parent;
            r2 && r2.ny(t4, n3, e3, i3);
          }, t3.prototype.iy = function() {
            var t4 = this.Mf.parent;
            t4 && t4.iy();
          }, t3.prototype.fw = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2;
            function g2(t5, n4) {
              var e4 = false;
              return t5 || n4 ? t5 && n4 && (e4 = t5.action === n4.action && t5.index === n4.index && t5.sheetArea === n4.sheetArea) : e4 = true, e4;
            }
            function m2(t5, n4) {
              var e4 = !M(t5.cellTypeHitInfo), i4 = e4 && !M(t5.cellTypeHitInfo.addRowColumnButtonHitInfo), r3 = !M(n4.cellTypeHitInfo), o3, a3, u3;
              return !(r3 && !M(n4.cellTypeHitInfo.addRowColumnButtonHitInfo) && !e4 || i4 && !r3);
            }
            return i3 = (e3 = (n3 = this).Mf).A_, r2 = e3.I_, a2 = false, (o2 = e3.sw) || (a2 = true), a2 || t4 || (a2 = true), a2 || (a2 = t4.col !== o2.col || t4.row !== o2.row || At(t4) !== At(o2) || xt(t4) !== xt(o2) || It(t4) !== It(o2) || !g2(t4.resizeInfo, o2.resizeInfo) || !m2(t4, o2)), e3.sw = t4, a2 && (s2 = (u2 = e3._1) && u2.isEnable(c.RowColumnStates.hover, true), f2 = u2 && u2.isEnable(c.RowColumnStates.hover, false), l2 = t4.hitTestType, o2 && !M(o2.hitTestType) && (e3.A_ = null, e3.I_ = null, e3.Ut.setCellState(i3, r2, c.CellStatesType.hover, false, o2.hitTestType), s2 && e3.x_(i3, o2.rowViewportIndex, o2.colViewportIndex), f2 && e3.N_(r2, o2.rowViewportIndex, o2.colViewportIndex), s2 || f2 || e3.k_ && e3.k_(c.CellStatesType.hover, i3, r2, o2.hitTestType, o2.rowViewportIndex, o2.colViewportIndex)), t4 && !M(l2) && (h2 = void 0 !== t4.row && void 0 !== t4.col && l2 === c.SheetArea.viewport, e3.A_ = t4.row, e3.I_ = t4.col, t4.resizeInfo || (e3.Ut.setCellState(t4.row, t4.col, c.CellStatesType.hover, true, l2), s2 && h2 && e3.x_(t4.row, t4.rowViewportIndex, t4.colViewportIndex), f2 && h2 && e3.N_(t4.col, t4.rowViewportIndex, t4.colViewportIndex), s2 || f2 || e3.k_ && e3.k_(c.CellStatesType.hover, t4.row, t4.col, l2, t4.rowViewportIndex, t4.colViewportIndex))), e3.D_ = true, v2 = bt(e3, o2, d2 = e3.Dn), p2 = bt(e3, t4, d2), v2 = v2 || p2, e3.D_ = false, (v2 || e3.gD) && d2.E1(), e3.NMi && e3.NMi.options.isDesignMode && 1 === l2 && d2.E1(O, O, O, O, 1)), a2;
          }, t3.prototype.j9 = function(t4, n3, e3) {
            var i3 = this.__(t4, n3, e3);
            return this.E_(i3);
          }, t3.prototype.__ = function(t4, n3, e3) {
            var i3 = this.Mf.Ut.getSpan(t4, n3), r2 = Lt(i3), o2 = Rt(i3);
            return 1 === r2 && 1 === o2 || e3 && 1 === r2 || !e3 && 1 === o2 ? i3 : (e3 ? n3++ : t4++, this.__(t4, n3, e3));
          }, t3.prototype.E_ = function(t4) {
            var n3, e3, i3, r2 = this.Mf, o2 = t4.row, a2 = St(r2);
            for (n3 = o2; n3 < a2 && true !== r2.getRowVisible(n3); n3++) ;
            for (n3 < a2 && (o2 = n3), e3 = t4.col, i3 = Tt(r2), n3 = e3; n3 < i3 && true !== r2.getColumnVisible(n3); n3++) ;
            return n3 < i3 && (e3 = n3), w(o2, e3, Lt(t4), Rt(t4));
          }, t3.prototype.M_ = function(t4) {
            var n3, e3, i3 = t4.floatingObjects && t4.floatingObjects.all(), r2 = t4.shapes && t4.shapes.all();
            if (!M(i3)) {
              for (n3 = 0; n3 < i3.length; n3++) if (i3[n3].isSelected()) return true;
            }
            if (!M(r2)) {
              for (e3 = 0; e3 < r2.length; e3++) if (r2[e3].isSelected()) return true;
            }
          }, t3.prototype.w_ = function(t4) {
            return "function" == typeof t4.isShapeTextEditorOpened && t4.isShapeTextEditorOpened();
          }, t3.prototype.j_ = function(t4) {
            var n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2 = this.Mf, v2 = t4.resizeInfo;
            if (v2) {
              if (n3 = h2.Ut.getSelections(), v2.action === rt || v2.action === it) {
                if (e3 = [], h2.S9(v2.index) ? d(n3, (function(t5, n4) {
                  var i4, r2;
                  if (-1 === n4.col) for (i4 = h2.JS(n4), r2 = 0; r2 < Lt(i4); r2++) e3.push({ row: i4.row + r2 });
                })) : e3.push({ row: v2.index }), i3 = { r: _ }, r.Worksheet.et(h2, "beforeAutoFitRow", i3), i3.r) return;
                h2.Qy().execute({ cmd: "autoFitRow", sheetName: h2.name(), rows: e3, columnHeader: 1 === v2.sheetArea });
              } else {
                if (o2 = [], h2.T9(v2.index) ? d(n3, (function(t5, n4) {
                  var e4, i4;
                  if (-1 === n4.row) for (e4 = h2.JS(n4), i4 = 0; i4 < Rt(e4); i4++) o2.push({ col: e4.col + i4 });
                })) : o2.push({ col: v2.index }), i3 = { r: _ }, r.Worksheet.et(h2, "beforeAutoFitColumn", i3), i3.r) return;
                h2.Qy().execute({ cmd: "autoFitColumn", sheetName: h2.name(), columns: o2, rowHeader: 2 === v2.sheetArea });
              }
              return true;
            }
            if (i3 = { r: _ }, r.Worksheet.et(h2, "beforeStartEdit", i3), !i3.r) return t4.cellTypeHitInfo && t4.cellTypeHitInfo.addRowColumnButtonHitInfo || (a2 = t4.row, u2 = t4.col, s2 = t4.hitTestType, (c2 = h2.O_(t4.rowViewportIndex, t4.colViewportIndex, t4.hitTestType, t4.row, t4.col)) && (a2 = c2.row, u2 = c2.col), f2 = void 0, (l2 = h2.getFormula && h2.getFormula(a2, u2, s2, true)) && (f2 = "=" + l2), h2.f6(h2.fg, a2, u2, t4.rowViewportIndex, t4.colViewportIndex, false, f2, false)), false;
          }, t3.prototype.W6 = function(t4, n3) {
            return n3 && this.Mf.options.rightToLeft ? t4 <= 0 : t4 > 0;
          }, t3;
        })(), n2.nk = pt, r.Worksheet.ch("eventHandler", { beforeSetHost: function() {
          var t3 = this;
          t3.rt = new pt(t3);
        }, dispose: function(t3) {
          var n3, e3, i3, r2, o2 = this, a2 = o2.rt;
          a2 && (a2.u2(), n3 = a2.tk, (0, u.GC$)(o2.Dg()).unbind(T + "." + n3).unbind(x + "." + n3).unbind(A + "." + n3).unbind(I + "." + n3).unbind(j + "." + n3).unbind(D + "." + n3), v.mozilla && (e3 = "onwheel" in document ? N : k, (0, u.GC$)(o2.Dg()).unbind(e3 + "." + n3)), a2.L0(), a2.T_()), (i3 = o2.li) && (0, u.GC$)(i3).remove(), (r2 = o2.R_) && (r2.close(), o2.R_ = null), false !== t3.clearCache && (o2.B_ = _, o2.L_ = _, o2.F_ = _, o2.P_ = _, o2.G_ = _, o2.U_ = _, o2.rt = _);
        }, setHost: function(t3) {
          var n3, e3, i3, o2;
          function a2(t4, e4) {
            var i4, o3 = n3.uw(), a3 = e4.pageX - o3.left, u2 = e4.pageY - o3.top, s2 = n3.hitTest(a3, u2), c2 = s2.dragInfo;
            if (!s2.tableSelectInfo) if (i4 = { hitInfo: s2, e: e4, r: _ }, c2 && t4.H_ && "corner" === c2.side) {
              if (r.Worksheet.et(n3, "beforeDoubleClickFill", i4), i4.r) return;
              t4.H_();
            } else {
              if (r.Worksheet.et(n3, "beforeStartEdit", i4), i4.r) return;
              t4.FD(e4, a3, u2);
            }
          }
          t3 && (e3 = (n3 = this).rt, n3.B_ = function(t4) {
            var i4 = { e: t4, r: _ };
            if (r.Worksheet.et(n3, "preProcessMouseDown", i4), !i4.r) return e3.gg(t4);
          }, n3.L_ = function(t4) {
            var i4 = { e: t4, r: _ };
            r.Worksheet.et(n3, "preProcessMouseMove", i4), i4.r || e3.p4 || e3.pg(t4);
          }, n3.F_ = function(t4) {
            var i4 = { e: t4, r: _ };
            if (r.Worksheet.et(n3, "preProcessMouseUp", i4), !i4.r && !n3.f2) {
              if (e3.p4) return;
              return e3.bg(t4);
            }
          }, n3.bye = function(t4, e4, i4) {
            var r2, o3, a3 = (/* @__PURE__ */ new Date()).valueOf(), u2 = !n3.z_ || a3 - n3.z_ > 200;
            return M(t4) || (u2 ? (r2 = ((r2 = t4 / i4) >= 0 ? 1 : -1) * F(P(r2)), n3.V_ = 0) : (r2 = t4 / i4, n3.V_ += r2, r2 = (r2 >= 0 ? 1 : -1) * F(P(n3.V_)), n3.V_ -= r2)), M(e4) || (u2 ? (o3 = ((o3 = e4 / i4) >= 0 ? 1 : -1) * F(P(o3)), n3.Y_ = 0) : (o3 = e4 / i4, n3.Y_ += o3, o3 = (o3 >= 0 ? 1 : -1) * F(P(n3.Y_)), n3.Y_ -= o3)), n3.z_ = a3, { detailY: r2, detailX: o3 };
          }, n3.P_ = function(t4) {
            var e4, i4, o3, a3, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2;
            if (e4 = { e: t4 = t4 || l.event, r: _ }, r.Worksheet.et(n3, "preProcessMouseWheel", e4), !e4.r) return o3 = (i4 = n3.parent) && i4.options.scrollByPixel, a3 = t4.detail ? t4.detail : t4.wheelDelta / -40, u2 = 0, "wheel" === t4.type ? (s2 = 17, c2 = t4.wheelDeltaY && P(t4.wheelDeltaY - -3 * t4.deltaY) < 1, f2 = t4.wheelDeltaX && P(t4.wheelDeltaX - -3 * t4.deltaX) < 1, h2 = c2 || f2, d2 = v.mozilla && +v.version >= 88 && !h2 ? s2 : 1, a3 = t4.deltaY / d2, u2 = t4.deltaX / d2, o3 || (P(a3) >= P(u2) ? u2 = 0 : a3 = 0), h2 && (p2 = o3 ? 1 : 10, a3 = (g2 = n3.bye(a3, u2, p2)).detailY, u2 = g2.detailX)) : (m2 = t4.wheelDeltaY, b2 = t4.wheelDeltaX, o3 || (P(m2) >= P(b2) ? b2 = 0 : m2 = 0), (v.safari || v.chrome) && (d2 = v.safari ? -4 : -40, a3 = (g2 = n3.bye(m2, b2, d2)).detailY, u2 = g2.detailX)), (0 !== a3 || 0 !== u2) && (y2 = R(u2, 10) || 0, w2 = R(a3, 10) || 0, M2 = { e: t4, r: _, detailX: y2, detailY: w2 }, r.Worksheet.et(n3, "processMouseWheel", M2), !M2.r && (C2 = n3.parent.ib.Mg(n3, t4, w2, y2), i4.iy(), !!C2 && void 0));
          }, n3.G_ = function(t4) {
            var i4 = { e: t4, r: _ };
            if (r.Worksheet.et(n3, "preProcessMouseOut", i4), !i4.r) return e3.yg(t4);
          }, n3.U_ = function(t4) {
            var i4, o3 = n3.sw, u2 = { e: t4, r: _, target: o3 };
            r.Worksheet.et(n3, "preProcessMouseDbClick", u2), u2.r || o3 && (i4 = false, 3 === It(o3) ? a2(e3, t4) : i4 = e3.j_(o3), i4 || n3.ki(s.Events.CellDoubleClick, Ut(n3, n3.name(), o3.row, o3.col, It(o3))));
          }, i3 = e3.tk, t3.bind(T + "." + i3, (function(t4) {
            return n3.B_(t4);
          })).bind(x + "." + i3, (function(t4) {
            return n3.F_(t4);
          })).bind(A + "." + i3, (function(t4) {
            return n3.L_(t4);
          })).bind(I + "." + i3, (function(t4) {
            return n3.P_(t4);
          })).bind(j + "." + i3, (function(t4) {
            return n3.G_(t4);
          })).bind(D + "." + i3, (function(t4) {
            return n3.U_(t4);
          })), v.mozilla && (o2 = "onwheel" in document ? N : k, t3.bind(o2 + "." + i3, (function(t4) {
            return n3.P_(t4);
          }))));
        } }), f.Hv.ch("worksheet-event", { preProcessMouseMove: function(t3) {
          var n3, e3 = this.Vv.getActiveSheet();
          e3 && (n3 = e3.rt) && n3.ab && n3.rb && n3.isResizing && (n3.pg(t3.e), t3.r = false);
        } });
      }, "./dist/core/worksheet/worksheet-formatter.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v;
        function p(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = n3.getRange(e3, i3);
          if (!u2) return h;
          if (n3.source && (t3 = n3.source.Mf), o2 = u2.row, a2 = u2.col, r2) if (1 === u2.rowCount) a2 = i3;
          else {
            if (1 !== u2.colCount) return h;
            o2 = e3;
          }
          return g(t3, o2, a2);
        }
        function g(t3, n3, e3) {
          var i3, r2, o2, a2, s2, c2;
          return t3 && t3.getFormatter ? (i3 = t3.getFormatter(n3, e3)) && "General" !== i3 ? w(i3, (function(t4, n4) {
            return u.Be.Re(t4, n4);
          })) : (r2 = t3.getStyle(n3, e3), (o2 = r2 && r2._autoFormatter) ? w(o2.formatCached, (function(t4, n4) {
            return o2.format(t4);
          })) : (s2 = (a2 = t3.pivotTables) && a2.findPivotTable(n3, e3)) && (i3 = (c2 = s2.hqt(n3, e3)) && c2.formatter) ? w(i3, (function(t4, n4) {
            return u.Be.Re(t4, n4);
          })) : h) : h;
        }
        function m(t3, n3) {
          var e3 = c(t3, "E") && n3(1, t3);
          return e3 && c(e3, "E");
        }
        function b(t3, n3) {
          var e3 = n3(123, t3);
          return !!c(e3, "123") && (e3 = e3.replace(/[1230. ]+/g, "")).length > 0;
        }
        function y(t3, n3) {
          if (t3 = t3.replace("DBNum", ""), i2.Common.$T.qT("[mMdDyYhHseg]").test(t3)) {
            var e3 = n3(123, t3);
            return !c(e3, "123");
          }
          return false;
        }
        function w(t3, n3) {
          var e3, i3, r2, o2;
          if ("string" != typeof t3 || "=" === t3[0]) return h;
          if (e3 = { f: t3 }, y(t3, n3)) {
            if (i3 = n3(44955, t3), r2 = n3(44955.11, t3), o2 = n3(45323, t3), i3 !== r2) return e3.t = i3 === o2 ? 6 : 8, e3;
            if (i3 !== o2) return e3.t = 7, e3;
          }
          if (c(t3, "%")) e3.t = 0;
          else if (c(t3, "/")) e3.t = 4;
          else if (m(t3, n3)) e3.t = 3;
          else if (b(t3, n3)) e3.t = 5;
          else if (c(t3, "0") || c(t3, "DBNum", true)) e3.t = 2;
          else if (c(t3, "GENERAL", true)) e3.t = 1;
          else {
            if (!c(t3, "@")) return h;
            e3.t = 9;
          }
          return e3;
        }
        function M(t3, n3, e3, i3, r2) {
          var o2, a2 = e3.value;
          if (a2 && 2 === a2.type) return { f: "0.00%", t: 0 };
          if (a2 && 9 === a2.type) {
            if (0 === a2.operatorType || 1 === a2.operatorType) {
              if (a2.value && 2 === a2.value.type) return { f: "0.00%", t: 0 };
            } else if (2 === a2.operatorType) return (o2 = M(t3, n3, a2, i3, r2)) && 0 === o2.t && (o2.f = o2.f.replace("%", "00%")), o2;
          }
          return h;
        }
        function C(t3, n3, e3, i3, r2) {
          var o2 = x(t3, n3, e3.value, i3, r2), a2 = x(t3, n3, e3.value2, i3, r2);
          if (7 === o2.t || 8 === o2.t) {
            if (7 === a2.t || 8 === a2.t) return h;
            if (6 === a2.t) return 8 === o2.t ? o2 : { f: o2.f + " " + a2.f, t: 8 };
          } else if (6 === o2.t) {
            if (8 === a2.t) return a2;
            if (7 === a2.t) return { f: a2.f + " " + o2.f, t: 8 };
          }
          return 0 === o2.t && 0 === a2.t ? { f: a2.f.length > o2.f.length ? a2.f : o2.f, t: 0 } : 1 !== o2.t ? o2 : a2;
        }
        function S(t3, n3, e3, i3, r2) {
          var o2 = x(t3, n3, e3.value, i3, r2), a2 = x(t3, n3, e3.value2, i3, r2);
          return 9 === o2.t ? o2 : 9 === a2.t ? a2 : o2.t >= 5 ? a2.t >= 5 ? h : o2 : a2.t >= 5 ? a2 : 3 === o2.t ? o2 : 3 === a2.t ? a2 : 4 === o2.t ? o2 : 4 === a2.t ? a2 : 2 === o2.t || 1 === o2.t || 2 === a2.t || 1 === a2.t ? h : 0 === o2.t && 0 === a2.t ? { f: a2.f.length > o2.f.length ? a2.f : o2.f, t: 0 } : h;
        }
        function T(t3, n3, e3, i3, r2) {
          var o2, a2, u2, c2, l2 = e3.functionName && e3.functionName.toUpperCase(), p2 = v[l2];
          if (!s(d[l2])) {
            switch (d[l2]) {
              case 6:
                o2 = "H:mm:ss";
                break;
              case 7:
                o2 = f.Fe().DateTimeFormat.shortDatePattern || "M/d/yyyy";
                break;
              case 8:
                o2 = f.Fe().DateTimeFormat.defaultDatePattern || "M/d/yyyy H:mm:ss";
                break;
              case 0:
                o2 = "0.00%";
                break;
              case 5:
                a2 = f.Fe().NumberFormat.currencySymbol || "$", o2 = (u2 = f.Fe().predefinedFormats.Currency) && u2[u2.length - 1] || "".concat(a2, "#,##0.00_);[Red](").concat(a2, "#,##0.00)");
            }
            return { f: o2, t: d[l2] };
          }
          return "number" == typeof p2 ? x(t3, n3, c2 = e3.arguments[p2], i3, r2) : p2 ? p2(t3, n3, e3, i3, r2) : h;
        }
        function x(t3, n3, e3, i3, r2) {
          if (!e3) return h;
          if (9 === e3.type) {
            if (2 === e3.operatorType) return M(t3, n3, e3, i3, r2);
            if (3 === e3.operatorType || 4 === e3.operatorType) return C(t3, n3, e3, i3, r2);
            if (5 === e3.operatorType || 6 === e3.operatorType || 7 === e3.operatorType) return S(t3, n3, e3, i3, r2);
            if (0 === e3.operatorType || 1 === e3.operatorType) return x(t3, n3, e3.value, i3, r2);
          } else {
            if (1 === e3.type || 13 === e3.type || 22 === e3.type) return p(t3, e3, i3, r2);
            if (7 === e3.type) return T(t3, n3, e3, i3, r2);
            if (10 === e3.type) return x(t3, n3, e3.value, i3, r2);
          }
          return h;
        }
        function A(t3, n3, e3, i3, r2) {
          var o2 = t3.getFormatter(i3, r2);
          (!o2 || o2.toUpperCase && "GENERAL" === o2.toUpperCase()) && (e3 = t3.oMt.Fyt(i3, r2) || e3, I(t3, i3, r2, x(t3, n3, e3, i3, r2)));
        }
        function I(t3, n3, e3, i3) {
          var r2, o2 = t3.getStyle(n3, e3), s2 = o2 || new a.Style();
          if ("string" == typeof i3 && (i3 = w(i3, (function(t4, n4) {
            return u.Be.Re(t4, n4);
          }))), i3 && 1 !== i3.t) s2._autoFormatter = new l(i3.f), delete s2.formatter, r2 = true;
          else {
            if (!s2._autoFormatter) return;
            s2._autoFormatter = new l(), r2 = true;
          }
          r2 && t3.setStyle(n3, e3, s2);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Ffe = n2.Fue = n2.Pue = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/worksheet/worksheet.js"), a = e2("./dist/core/worksheet/style.js"), u = e2("./dist/core/util/common.js"), s = i2.Common.lt.ht, c = i2.Common.zf.OS, f = i2.Common.CultureManager, l = i2.Formatter && i2.Formatter.GeneralFormatter, h = { t: 1 }, r.GC$.extend(o.Worksheet.prototype, { getFormatter: function(t3, n3, e3) {
          return this.l0(t3, n3, "formatter", e3);
        }, setFormatter: function(t3, n3, e3, i3) {
          var r2 = this.Z_(t3, n3, i3);
          r2 || (r2 = new a.Style()), r2.formatter = e3, this.setStyle(t3, n3, r2, i3);
        } }), o.Worksheet.ch("formatter", { settingText: function(t3) {
          var n3, e3 = u.util.Kf(t3.value);
          l && e3 && (n3 = {}, new l().getPreferredDisplayFormatter(t3.value, n3), "number" == typeof n3.value && (t3.value = n3.value));
        } }), d = { NOW: 8, TODAY: 7, TIME: 6, DATE: 7, IRR: 0, XIRR: 0, MIRR: 0, RATE: 0, YIELD: 0, INTRATE: 0, NPV: 5, XNPV: 5 }, (v = { SUM: 0, MAX: 0, MIN: 0, AVEDEV: 0, FLOOR: 0, ROUND: 0, ROUNDUP: 0, ROUNDDOWN: 0, INT: 0, TRUNC: 0 }).SINGLE = v["@"] = function(t3, n3, e3, i3, r2) {
          var o2 = e3.arguments[0];
          return !o2 || 1 !== o2.type && 13 !== o2.type ? h : p(t3, o2, i3, r2, true);
        }, v.INDIRECT = v.OFFSET = v.INDEX = function(t3, n3, i3, r2, o2) {
          var a2 = e2("SheetsCalc"), u2 = h;
          return a2 && (i3.Gue = function(n4, e3, i4) {
            u2 = s(e3) ? p(t3, n4, r2, o2) : g(i4 && i4.Mf || t3, n4, e3);
          }, a2.evaluateExpression(t3, i3, r2, o2)), u2;
        }, n2.Pue = x, n2.Fue = A, n2.Ffe = I;
      }, "./dist/core/worksheet/worksheet-json.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct = this && this.nJr || function() {
          return Ct = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, Ct.apply(this, arguments);
        };
        function St(t3) {
          t3.vuo || (t3.vuo = {}, t3.vuo.guo = {}), t3.vuo.guo || (t3.vuo.guo = {});
        }
        function Tt(t3, n3) {
          St(t3), t3.vuo.guo.WKr = n3;
        }
        function xt(t3, n3) {
          return D(t3) ? n3 : D(n3) ? t3 : Math.max(t3, n3);
        }
        function At(t3, n3, e3, i3) {
          var r2, o2;
          if (t3.dataTable && (n3.dataTable || (n3.dataTable = {}), r2 = t3.dataTable[e3])) {
            if (n3.dataTable[e3] || (n3.dataTable[e3] = {}), !(o2 = r2[i3])) return;
            n3.dataTable[e3][i3] || (n3.dataTable[e3][i3] = {}), o2.formula && (n3.dataTable[e3][i3].formula = o2.formula);
          }
        }
        function It(t3, n3, e3, i3, r2) {
          var o2, a2, s2, c2 = t3.Ut, f2 = c2.W_(), h2 = c2.W_(l.SheetArea.colHeader), d2 = c2.Q_(true), v2 = c2.Q_(true, l.SheetArea.colHeader), p2 = c2.K_(), g2 = c2.K_(l.SheetArea.colHeader), m2 = f2.getColumnCount();
          for (!r2 && D(n3.colHeaderData) ? n3.colHeaderData = {} : c2.ap = e3, h2.setRowCount(e3), o2 = 0; o2 < e3; o2++) for (h2.setNode(o2, -1, f2.J_(o2, -1)), v2.X_(o2, d2.q_(o2)), a2 = i3; a2 < m2; a2++) h2.setNode(o2, a2, f2.J_(o2, a2)), r2 || At(n3.data, n3.colHeaderData, o2, a2);
          (s2 = p2.getSpans((0, u.Ec)(0, 0, e3, m2))).forEach((function(t4) {
            g2.add(t4);
          })), t3.frozenRowCount(0);
        }
        function kt(t3, n3, e3, i3, r2) {
          var o2, a2, s2, c2 = t3.Ut, f2 = c2.W_(), h2 = c2.W_(l.SheetArea.rowHeader), d2 = c2.Q_(false), v2 = c2.Q_(false, l.SheetArea.rowHeader), p2 = c2.K_(), g2 = c2.K_(l.SheetArea.rowHeader), m2 = f2.getRowCount();
          for (!r2 && D(n3.rowHeaderData) ? n3.rowHeaderData = {} : c2.fp = e3, h2.setColumnCount(e3), o2 = 0; o2 < e3; o2++) for (h2.setNode(-1, o2, f2.J_(-1, o2)), v2.X_(o2, d2.q_(o2)), a2 = i3; a2 < m2; a2++) h2.setNode(a2, o2, f2.J_(a2, o2)), r2 || At(n3.data, n3.rowHeaderData, a2, o2);
          (s2 = p2.getSpans((0, u.Ec)(0, 0, m2, e3))).forEach((function(t4) {
            g2.add(t4);
          })), t3.frozenColumnCount(0);
        }
        function Nt(t3, n3) {
          switch (t3) {
            case "frozenRowCount":
            case "frozenColCount":
            case "frozenTrailingRowCount":
            case "frozenTrailingColCount":
            case "activeRow":
            case "activeCol":
            case "frozenTopRow":
            case "frozenLeftCol":
              return 0 === n3;
            case "rowCount":
              return 200 === n3;
            case "columnCount":
              return 20 === n3;
            case "zoomFactor":
            case "rowHeaderColCount":
            case "colHeaderRowCount":
              return 1 === n3;
            case "visible":
            case "frozenTrailingRowStickToEdge":
            case "frozenTrailingColumnStickToEdge":
              return true === n3;
          }
          return false;
        }
        function jt(t3, n3) {
          return I(t3) ? t3 : n3;
        }
        function Dt(t3, n3, e3, i3) {
          I(e3) && n3.call(t3, e3, !!I(i3) && i3);
        }
        function _t(t3, n3, e3, i3, r2, o2) {
          A && k(A, (function(a2, u2) {
            var s2 = u2.fromJson;
            s2 && s2.call(t3, n3, e3, i3, !I(r2) || r2, o2);
          }));
        }
        function Ot(t3, n3) {
          var e3 = t3.Uw && t3.Uw(3).t8.Rme(-1, -1, -1, -1);
          e3 && e3.forEach((function(t4) {
            var e4, i3;
            t4.isValid || (e4 = n3[t4.minX] && n3[t4.minX][t4.minY]) && (i3 = { row: t4.minX, rowCount: t4.maxX - t4.minX + 1, col: t4.minY, colCount: t4.maxY - t4.minY + 1, isDynamicArray: true }, t4.isValid || (i3.isInvalid = true), e4.arrayInfo = i3);
          }));
        }
        function Et(t3, n3) {
          var e3 = P(n3, nt + "&tabColor");
          e3 && (t3.sheetTabColor = H(e3));
        }
        function Rt(t3, n3, e3) {
          Qt(t3, n3, e3), d.Util.wo(e3, t3.parent && t3.parent.v2) && Lt(t3, e3);
        }
        function Lt(t3, n3) {
          T && t3.Lp.resumeAdjust(), $t(t3, n3);
        }
        function Ft(t3, n3, e3) {
          t3.showCell(n3, e3, l.VerticalPosition.top, l.HorizontalPosition.left);
        }
        function Bt(t3) {
          var n3, e3, i3, o2 = B(t3, et);
          return o2 && o2.ref && (i3 = z(o2.ref, true)) && (n3 = i3.row + i3.rowCount, e3 = i3.col + i3.colCount), (D(n3) || n3 < -1) && (n3 = r.Worksheet.n8), (D(e3) || e3 < -1) && (e3 = r.Worksheet.e8), { rowCount: n3, colCount: e3 };
        }
        function Pt(t3, n3) {
          var e3, i3 = t3.defaults, r2 = B(n3, ut);
          r2 && (e3 = r2.defaultColWidth, isNaN(e3) ? (i3.colWidth = u.SJSColumnWidthHelper.defaultColumnWidthToPixel(8), i3._isExcelDefaultColumnWidth = true) : i3.colWidth = u.SJSColumnWidthHelper.columnWidthToPixel(parseFloat(e3)), i3.rowHeight = u.SJSColumnWidthHelper.pointToPixel(r2.defaultRowHeight));
        }
        function Gt(t3, n3, e3, i3) {
          var a2, s2, c2, f2, h2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = P(n3, "sheetViews&sheetView"), N2 = t3.Ut, j2 = t3.options, _2 = !e3 || false !== e3.includeStyles, O2 = d.Util.Co(e3), E2 = t3.getRowCount(), R2 = t3.getColumnCount(), L2 = n3.lossless, F2 = 0, B2 = 0;
          if (k2) {
            if ((p2 = k2.topLeftCell) && (f2 = z(p2), F2 = f2 ? f2.row : 0, B2 = f2 ? f2.col : 0), k2.zoomScale && t3.zoom(k2.zoomScale / 100), g2 = j2.gridline, (m2 = n3.lossless && n3.lossless.gridline) ? (g2.showHorizontalGridline = !!D(m2.showHorizontalGridline) || m2.showHorizontalGridline, g2.showVerticalGridline = !!D(m2.showVerticalGridline) || m2.showVerticalGridline) : "0" === k2.showGridLines && (g2.showHorizontalGridline = false, g2.showVerticalGridline = false), m2 && !D(m2.color) ? g2.color = m2.color : k2.colorId && 64 !== +k2.colorId && (g2.color = u.ColorHelper.getIndexedColor(k2.colorId)), "1" === k2.rightToLeft && (j2.rightToLeft = true), $(k2.showRowColHeaders, true) || (j2.rowHeaderVisible = false, j2.colHeaderVisible = false), $(k2.showFormulas) && (j2.showFormulas = true), j2.showZeros = $(k2.showZeros, true), $(k2.tabSelected) && t3.b2(true, false), b2 = G(k2, "pane"), y2 = 3, _2 && b2 && b2.length > 0 && b2.forEach((function(i4) {
              var r2, o2, a3, u2, s3 = i4.state;
              "frozen" !== s3 && "frozenSplit" !== s3 || (i4.topLeftCell && (c2 = i4.topLeftCell), r2 = i4.xSplit, o2 = i4.ySplit, a3 = F2, u2 = B2, o2 && E2 <= (h2 = +o2 + a3) && (E2 = xt(E2, h2)), r2 && R2 <= (v2 = +r2 + u2) && (R2 = xt(R2, v2)), Zt(t3, n3, e3, h2, v2, F2, B2), o2 && r2 ? (f2 = z(c2), F2 = f2.row || 0, B2 = f2.col || 0) : o2 && !r2 ? (f2 = z(c2), F2 = f2.row || 0, B2 = u2) : !o2 && r2 && (f2 = z(c2), F2 = a3, B2 = f2.col), E2 < F2 && (E2 = F2 + 1), R2 < B2 && (R2 = B2 + 1));
            })), _2 && Wt(t3, n3), _2 && (L2 && L2.defaultStyle ? ((w2 = new o.Style()).fromJSON(L2.defaultStyle, dt, t3), t3.setDefaultStyle(w2)) : i3.defaultStyle && t3.setDefaultStyle(i3.defaultStyle)), M2 = G(k2, "selection"), C2 = null == M2 ? void 0 : M2.length, M2 && C2 > 0) for (S2 = (null == L2 ? void 0 : L2.selectRanges) || [], T2 = function(t4) {
              var n4, e4, i4, r2, o2 = M2[t4], c3 = o2.activeCell;
              c3 && (n4 = z(c3), a2 = n4.row, s2 = n4.col, E2 = xt(E2, n4.row + 1), R2 = xt(R2, n4.col + 1)), e4 = o2.panel, !(i4 = o2.sqref) || e4 && e4 !== y2 || (C2 - 1 === t4 && S2 && S2.length ? (r2 = N2.selectionModel.selections = [], S2.forEach((function(t5) {
                r2.push(new u.Range(t5.row, t5.col, t5.rowCount, t5.colCount));
              }))) : (r2 = Y(i4), N2.selectionModel.selections = r2), O2 && r2 && r2.forEach((function(t5) {
                if (t5) {
                  var n5 = t5.row + (t5.rowCount > 0 ? t5.rowCount : 1), e5 = t5.col + (t5.colCount > 0 ? t5.colCount : 1);
                  E2 = xt(E2, n5), R2 = xt(R2, e5);
                }
              })));
            }, x2 = 0; x2 < C2; x2++) T2(x2);
            O2 && d.Util.So(t3, E2, R2, i3);
          }
          return A2 = L2 ? jt(L2.rowHeaderColCount, r.Worksheet.r8) : r.Worksheet.r8, I2 = L2 ? jt(L2.colHeaderRowCount, r.Worksheet.o8) : r.Worksheet.o8, t3.setColumnCount(A2, l.SheetArea.rowHeader), t3.setRowCount(I2, l.SheetArea.colHeader), t3.O6(a2 || 0, s2 || 0, dt, dt, true), { showCellRow: F2, showCellCol: B2 };
        }
        function Ut(t3, n3, e3, i3, r2, o2) {
          var a2, s2, c2, f2, l2 = !r2 || false !== r2.includeStyles, h2 = t3.Ut, v2 = h2.Q_(false, 3), p2 = B(n3, st), g2 = p2 && p2.c_, m2 = h2.W_(3), b2 = m2.a8, y2 = K(r2);
          g2 && g2.length > 0 && (a2 = t3.getColumnCount(), s2 = false, c2 = function(t4, n4) {
            var i4, r3 = t4.width, o3 = $(t4.hidden, false), a3 = t4.outlineLevel, s3 = m2.J_(-1, n4, true), c3 = s3 && s3.style, f3 = +t4.min, h3 = +t4.max, d2 = vt;
            return D(r3) || (d2 = u.SJSColumnWidthHelper.columnWidthToPixel(parseFloat(r3)), o3 && 0 === d2 && (d2 = dt)), o3 = o3 && D(a3) ? o3 : vt, y2 ? t4.t !== dt ? i4 = e3.getOriginNamedStyle(t4.t) : t4.e !== dt && (i4 = e3.getOriginStyle(t4.e)) : i4 = e3.getStyle(t4.style), b2 && M(b2.style, -1, n4, c3, i4), { minCol: f3, maxCol: h3, columnSize: d2, hidden: o3, colStyle: i4 = l2 && i4 ? i4 : vt };
          }, g2.forEach((function(n4, e4) {
            var r3, o3, f3, l3 = c2(n4, e4), h3 = l3.minCol, p3 = l3.maxCol, g3 = l3.columnSize, m3 = l3.hidden, b3 = l3.colStyle;
            for (a2 < p3 && (s2 = true), r3 = p3 === u.MAX_COLUMN_COUNT, o3 = +n4.max, p3 = r3 ? xt(h3, i3) : o3, f3 = h3; f3 <= p3; f3++) d.Util.cme(t3, v2, f3 - 1, g3, m3, b3);
          })), s2 && (o2.dataEffectByInflate[t3.name()] || (o2.dataEffectByInflate[t3.name()] = {}), o2.dataEffectByInflate[t3.name()].setColumnInfo = function(n4) {
            Ht(t3, n4, g2, v2, c2);
          })), (f2 = n3.lossless && n3.lossless.colInfos) && f2.forEach((function(n4, e4) {
            D(n4) || (D(n4.colTag) || (t3.setTag(-1, e4, n4.colTag), delete n4.colTag), v2.X_(e4, n4));
          }));
        }
        function Ht(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2;
          if (!(n3.col < 0 || n3.colCount <= 0)) for (o2 = function(t4) {
            var n4, i4, r3, o3, a3;
            for (r3 = 0, o3 = e3.length; r3 < o3; r3++) if (t4 >= +(a3 = e3[r3]).min && t4 <= +a3.max) {
              n4 = a3, i4 = r3;
              break;
            }
            return { colItem: n4, colItemIndex: i4 };
          }, a2 = function(t4) {
            var n4 = o2(t4), e4 = n4.colItem, i4 = n4.colItemIndex;
            if (e4) return r2(e4, i4);
          }, s2 = n3.col, c2 = n3.col + n3.colCount; s2 < c2; s2++) (!u2 || s2 + 1 < u2.minCol || s2 + 1 > u2.maxCol) && (u2 = a2(s2 + 1)), u2 && d.Util.cme(t3, i3, s2, u2.columnSize, u2.hidden, u2.colStyle);
        }
        function Vt(t3, n3) {
          var e3, i3, r2 = B(n3, rt);
          r2 && (e3 = t3.spanModels[3], (i3 = r2.c_).forEach((function(t4) {
            var n4 = z(t4.ref);
            e3.find(n4.row, n4.col) || e3.add(n4);
          })));
        }
        function zt(t3, n3, e3) {
          var i3, r2;
          if (t3.length > 0) return i3 = { n_: ot }, r2 = [], t3.forEach((function(t4) {
            var i4, o2, a2, s2, c2, f2, l2, h2 = { n_: p.XFileConstants.ku, lossless: {} }, v2 = n3[t4.row + "," + t4.col];
            i4 = Z(v2 || (0, u.Ec)(t4.row, t4.col, 1, 1)), h2.ref = i4, (a2 = (o2 = t4.hyperlink).url) && (s2 = "sjs://", a2.substring(0, s2.length) === s2 ? h2.location = U(a2.replace(s2, "")) : (c2 = p.XFileConstants.Rr + d.Util.wr(e3), e3.c_.push({ n_: p.XFileConstants.Lr, Id: c2, Target: U(a2), Type: p.RelationshipConstants.pc, TargetMode: p.XFileConstants.Cu }), h2[tt] = c2), "string" == typeof (f2 = t4.value) && (h2.display = U(f2))), o2.tooltip && (h2.tooltip = U(o2.tooltip)), l2 = h2.lossless, D(o2.drawUnderline) || (l2.drawUnderline = o2.drawUnderline), D(o2.command) || (l2.command = o2.command), D(o2.target) || (l2.target = o2.target), o2.visitedLinkColor !== dt && (l2.visitedLinkColor = o2.visitedLinkColor), o2.linkColor !== dt && (l2.linkColor = o2.linkColor), r2.push(h2);
          })), i3.c_ = r2, i3;
        }
        function Yt(t3, n3) {
          var e3, i3, r2, o2, a2 = B(n3, ot);
          a2 && (e3 = a2.c_) && (i3 = n3.rels && n3.rels.c_ || [], r2 = t3.getRowCount(), o2 = t3.getColumnCount(), e3.forEach((function(n4) {
            var e4, a3, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = n4.ref.split(":"), m2 = E(g2[0]), b2 = O(g2[0]), y2 = 1, w2 = 1;
            for (g2.length > 1 && (e4 = E(g2[1]), a3 = O(g2[1]), y2 = bt(1, yt(e4 - m2 + 1, r2 - m2)), w2 = bt(1, yt(a3 - b2 + 1, o2 - b2))), u2 = R(n4.tooltip), n4[tt] && (c2 = L(i3, n4[tt]), s2 = R(c2 && c2.Target)), (f2 = R(n4.location)) && (s2 ? s2 = s2 + "#" + f2 : ("#" === f2[0] && (f2 = f2.substr(1)), s2 = "sjs://" + f2)), l2 = n4.lossless || {}, h2 = !!D(l2.drawUnderline) || l2.drawUnderline, d2 = l2.target || 0, v2 = 0; v2 < y2; v2++) for (p2 = 0; p2 < w2; p2++) t3.setHyperlink(m2 + v2, b2 + p2, { url: s2, tooltip: u2, linkColor: l2.linkColor, visitedLinkColor: l2.visitedLinkColor, drawUnderline: h2, command: l2.command, target: d2 }, 3);
          })));
        }
        function Zt(t3, n3, e3, i3, r2, o2, a2) {
          t3.pme(i3, o2, true), t3.bme(r2, a2, true);
        }
        function Wt(t3, n3) {
          var e3 = n3.lossless;
          e3 && (Dt(t3, t3.frozenTrailingRowCount, e3.frozenTrailingRowCount), Dt(t3, t3.frozenTrailingColumnCount, e3.frozenTrailingColCount), t3.Ny = !I(e3.frozenTrailingRowStickToEdge) || e3.frozenTrailingRowStickToEdge, t3.Vy = !I(e3.frozenTrailingColumnStickToEdge) || e3.frozenTrailingColumnStickToEdge, D(e3.frozenlineColor) || (t3.options.frozenlineColor = e3.frozenlineColor));
        }
        function Qt(t3, n3, e3) {
          var i3 = e3 && e3.frozenColumnsAsRowHeaders, r2 = e3 && e3.frozenRowsAsColumnHeaders, o2 = t3.frozenRowCount(), a2 = t3.frozenColumnCount();
          o2 > 0 && r2 && It(t3, dt, o2, a2, true), a2 > 0 && i3 && kt(t3, dt, a2, o2, true);
        }
        function Kt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = t3.options, c2 = B(n3, "sheetProtection"), f2 = s2.protectionOptions;
          if (c2) {
            for (o2 in c2.algorithmName && c2.hashValue && c2.saltValue && c2.spinCount ? t3.oue = { algorithmName: c2.algorithmName, hashValue: c2.hashValue, saltValue: c2.saltValue, spinCount: +c2.spinCount } : c2.password && (t3.oue = { legacyPassword: c2.password }), delete c2.algorithmName, delete c2.hashValue, delete c2.saltValue, delete c2.spinCount, delete c2.password, i3 = function(t4) {
              return "0" === t4 || "false" === t4;
            }, r2 = function(t4) {
              return "1" === t4 || "true" === t4;
            }, c2) if (c2.hasOwnProperty(o2)) switch (u2 = i3(a2 = c2[o2]), o2) {
              case p.XFileConstants.ru:
                s2.isProtected = r2(a2);
                break;
              case "selectLockedCells":
                f2.allowSelectLockedCells = u2;
                break;
              case "selectUnlockedCells":
                f2.allowSelectUnlockedCells = u2;
                break;
              case "autoFilter":
                f2.allowFilter = u2;
                break;
              case "sort":
                f2.allowSort = u2;
                break;
              case "insertColumns":
                f2.allowInsertColumns = u2;
                break;
              case "insertRows":
                f2.allowInsertRows = u2;
                break;
              case "deleteColumns":
                f2.allowDeleteColumns = u2;
                break;
              case "deleteRows":
                f2.allowDeleteRows = u2;
                break;
              case "objects":
                f2.allowEditObjects = u2;
                break;
              default:
                r2(c2[o2]) || i3(c2[o2]) ? f2[o2] = i3(c2[o2]) : "n_" !== o2 && "c_" !== o2 && (f2[o2] = c2[o2]);
            }
          }
          t3.isActualProtected() && true !== f2.allowEditObjects && c2.objects === dt && (f2.allowEditObjects = true), "formatColumns" in f2 && true === f2.formatColumns && (f2.allowOutlineColumns = true, e3 && (f2.allowResizeColumns = true)), "formatRows" in f2 && true === f2.formatRows && (f2.allowOutlineRows = true, e3 && (f2.allowResizeRows = true));
        }
        function Jt(t3, n3, e3) {
          var i3 = { addRowButtonOption: function(n4) {
            var i4, r2, a2;
            n4 ? (i4 = t3.addRowButtonOption, r2 = { visible: n4.visible || i4.visible, command: n4.command || i4.command, tooltip: n4.tooltip || i4.tooltip, height: n4.height || i4.height, style: i4.style }, n4.style && ((a2 = new o.Style()).fromJSON(n4.style, dt, e3), r2.style = a2), t3.addRowButtonOption = r2) : t3.addRowButtonOption = n4;
          }, addColumnButtonOption: function(n4) {
            var i4, r2, a2;
            n4 ? (i4 = t3.addColumnButtonOption, r2 = { visible: n4.visible || i4.visible, command: n4.command || i4.command, tooltip: n4.tooltip || i4.tooltip, width: n4.width || i4.width, style: i4.style }, n4.style && ((a2 = new o.Style()).fromJSON(n4.style, dt, e3), r2.style = a2), t3.addColumnButtonOption = r2) : t3.addColumnButtonOption = n4;
          }, sheetAreaOffset: function(n4) {
            !D(n4.left) && (t3.sheetAreaOffset.left = n4.left), !D(n4.top) && (t3.sheetAreaOffset.top = n4.top);
          } };
          n3 && n3.sheetOptions && Object.keys(n3.sheetOptions).forEach((function(e4) {
            D(n3.sheetOptions[e4]) || (i3[e4] && "function" == typeof i3[e4] ? i3[e4](n3.sheetOptions[e4]) : t3[e4] = n3.sheetOptions[e4]);
          }));
        }
        function Xt(t3, n3) {
          t3 && n3 && (t3.o1e = n3.parameter);
        }
        function qt(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = { rowHeaderAutoText: t3.rowHeaderAutoText, colHeaderAutoText: t3.colHeaderAutoText, rowHeaderAutoTextIndex: t3.rowHeaderAutoTextIndex, colHeaderAutoTextIndex: t3.colHeaderAutoTextIndex, allowCellOverflow: t3.allowCellOverflow, clipBoardOptions: t3.clipBoardOptions, selectionBackColor: t3.selectionBackColor, selectionBorderColor: t3.selectionBorderColor, sheetAreaOffset: { left: t3.sheetAreaOffset.left, top: t3.sheetAreaOffset.top } };
          return t3.addRowButtonOption && (i3 = u2.addRowButtonOption = {}, (r2 = t3.addRowButtonOption).visible && (i3.visible = r2.visible), "number" == typeof r2.height && (i3.height = r2.height), e3 && !e3.X_e(r2.command) && (i3.command = r2.command), r2.style && (i3.style = r2.style.toJSON()), r2.tooltip && (i3.tooltip = r2.tooltip)), t3.addColumnButtonOption && (o2 = u2.addColumnButtonOption = {}, (a2 = t3.addColumnButtonOption).visible && (o2.visible = a2.visible), "number" == typeof a2.width && (o2.width = a2.width), e3 && !e3.q_e(a2.command) && (o2.command = a2.command), a2.style && (o2.style = a2.style.toJSON()), a2.tooltip && (o2.tooltip = a2.tooltip)), n3 && (u2.rowHeaderVisible = t3.rowHeaderVisible, u2.colHeaderVisible = t3.colHeaderVisible), u2;
        }
        function $t(t3, n3) {
          var e3, i3 = n3 && n3.frozenColumnsAsRowHeaders, r2 = n3 && n3.frozenRowsAsColumnHeaders;
          (i3 || r2) && (e3 = t3.Ut, r2 && I(e3.ap) && (t3.cp = true, t3.deleteRows(0, e3.ap)), i3 && I(e3.fp) && t3.deleteColumns(0, e3.fp));
        }
        function tn(t3, n3, e3, i3, r2, o2, a2) {
          var s2, c2, f2, l2, h2, d2, v2, g2, m2, b2;
          if (!t3) return false;
          if (e3.col = Math.max(t3.getActiveColumnIndex(), 0), e3.row = Math.max(t3.getActiveRowIndex(), 0), s2 = r2 > 0, c2 = o2 > 0, 0 === i3) {
            if (!s2 || !c2) return false;
          } else if (1 === i3) {
            if (!c2) return false;
            s2 && (e3.col = o2, e3.row = 0);
          } else if (2 === i3) {
            if (!s2) return false;
            c2 && (e3.col = 0, e3.row = r2);
          }
          if (e3.col = Math.min(p.XmlConstants.xo, e3.col), e3.row = Math.min(p.XmlConstants.Io, e3.row), n3) if (f2 = void 0, l2 = t3.getSelections()) for (h2 = 0; h2 < l2.length; h2++) "object" == typeof (d2 = l2[h2]) && (v2 = d2.row, g2 = d2.col, m2 = d2.rowCount > 0 ? d2.rowCount : p.XmlConstants.Io, b2 = d2.colCount > 0 ? d2.colCount : p.XmlConstants.xo, f2 = new u.Range(v2 > 0 ? v2 : 0, g2 > 0 ? g2 : 0, m2, b2), n3.push(f2), null == a2 || a2.push({ row: v2, col: g2, rowCount: m2, colCount: b2 }));
          else n3.push(new u.Range(e3.row, e3.col, 1, 1));
          return true;
        }
        function nn(t3, n3, e3, i3) {
          var r2, o2, a2, s2, c2, f2, l2, h2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = t3.getSelections();
          if (A2 && 0 !== A2.length) {
            for (r2 = e3 ? t3.frozenRowCount() : 0, o2 = e3 ? t3.frozenColumnCount() : 0, a2 = [], s2 = new u.Range(0, 0, 1, 1), c2 = 0, f2 = 1, l2 = -1, h2 = 3; h2 >= 0; h2--) if (a2.length = 0, v2 = void 0, i3 && 3 === h2 && (v2 = i3), tn(t3, a2, s2, h2, r2, o2, v2)) {
              for (f2 = a2.length, c2 = 0; c2 < f2; c2++) -1 !== (g2 = a2[c2]).col && -1 !== g2.colCount || (g2 = new u.Range(g2.row, 0, g2.rowCount, p.XmlConstants.xo)), -1 !== g2.row && -1 !== g2.rowCount || (g2 = new u.Range(0, g2.col, p.XmlConstants.Io, g2.colCount)), s2.col >= g2.col && s2.col <= g2.col + g2.colCount - 1 && s2.row >= g2.row && s2.row <= g2.row + g2.rowCount - 1 && (l2 = c2);
              if (l2 < 0 && f2 > 0 && (s2.row = a2[0].row, s2.col = a2[0].col), m2 = "" + Q(s2.col) + (s2.row + 1), b2 = "", o2 > 0 && r2 > 0 && (1 === h2 || 2 === h2)) b2 = m2;
              else {
                for (c2 = 0; c2 < f2; c2++) y2 = a2[c2], w2 = Math.min(p.XmlConstants.Io, y2.row + 1), M2 = Math.min(y2.col, p.XmlConstants.xo), b2 += "" + Q(M2) + w2, (y2.colCount > 1 || y2.rowCount > 1) && (C2 = Math.min(M2 + y2.colCount - 1, p.XmlConstants.xo), S2 = Math.min(w2 + y2.rowCount - 1, p.XmlConstants.Io), b2 += ":" + (T2 = "" + Q(C2) + S2)), b2 += " ";
                b2 = b2.trim();
              }
              d.StringEx.Xi(b2) || 3 === h2 && (o2 > 0 || r2 > 0 || 3 !== h2) || (x2 = { n_: "selection" }, 3 !== h2 && (x2.pane = Mt[h2]), x2.activeCell = m2, 0 !== l2 && 0 === h2 && (x2.activeCellId = l2.toString()), x2.sqref = b2, n3.c_.push(x2));
            }
          }
        }
        function en(t3, n3, e3, i3) {
          var r2, o2;
          r2 = n3 && n3.theme ? n3.theme : i3.theme, o2 = new s.Theme(void 0), e3 && r2 ? r2 && o2.yh(r2) : o2.yh("Office"), t3.currentTheme(o2);
        }
        function rn(t3, n3) {
          t3 && (t3[n3] = 2);
        }
        function on(t3, n3) {
          var e3, i3, r2, o2, a2, s2, c2 = t3.options.protectionOptions, f2 = t3.options.isProtected, l2 = { n_: "sheetProtection" };
          for (r2 in f2 && (l2.sheet = pt), i3 = function(t4) {
            return t4 ? gt : pt;
          }, c2) if (c2.hasOwnProperty(r2)) {
            if (o2 = c2[r2], a2 = ["allowSelectLockedCells", "allowSelectUnlockedCells"].includes(r2) && o2) continue;
            if (s2 = null !== (e3 = d.protectionOptionsMap[r2]) && void 0 !== e3 ? e3 : r2, !n3) {
              if (!d.excelSupportProtectionOptions[s2]) continue;
              if ("allowEditObjects" === r2 && !t3.isActualProtected()) continue;
            }
            l2[s2] = i3(o2);
          }
          if (t3.oue && (u.util.w1(l2, t3.oue), D(l2.spinCount) || (l2.spinCount = "" + l2.spinCount), l2.legacyPassword && (l2.password = l2.legacyPassword, delete l2.legacyPassword)), Object.keys(l2).length > 1) return l2;
        }
        function an(t3, n3) {
          var e3, i3 = function(t4) {
            var e4 = t4.range();
            return n3.intersect(e4.row, e4.col, e4.rowCount, e4.colCount);
          };
          return null === (e3 = t3.tables) || void 0 === e3 ? void 0 : e3.all().some(i3);
        }
        function un(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = [], s2 = t3.getSpans(), c2 = {};
          for (i3 = 0; i3 < s2.length; i3++) r2 = s2[i3], o2 = !n3 && an(t3, r2), r2 && !o2 && (u2.push({ n_: p.XFileConstants.xu, ref: Z(r2) }), c2[r2.row + "," + r2.col] = r2);
          return e3 && u2.length > 0 && (a2 = { n_: rt, c_: u2 }), { spanRowColInfos: c2, sjsMergeCells: a2 };
        }
        function sn(t3) {
          var n3, e3, i3 = t3.name(), r2 = t3.getParent();
          return r2 && (n3 = r2.getSheetPosition(t3.name()) + 1, i3 = (e3 = p.XFileConstants.ru) + n3), i3;
        }
        function cn(t3) {
          return v.range_parser.Dc(t3.ref, true)[0];
        }
        function fn(t3, n3) {
          var e3 = n3.row, i3 = n3.rowCount, r2 = d.NodeHelper.sr(t3.headerRowCount, 1) >= 1, o2 = d.NodeHelper.sr(t3.totalsRowCount, -1) >= 1, a2 = r2 ? e3 + 1 : e3, s2 = r2 ? i3 - 1 : i3;
          return o2 && s2--, (0, u.Ec)(a2, n3.col, s2, n3.colCount);
        }
        function ln(t3, n3) {
          var e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
          if (t3.tables && !t3.ITr) {
            for (r2 in i3 = {}, e3 = t3.tables) if (e3.hasOwnProperty(r2)) {
              if (o2 = e3[r2], "function" == typeof n3 && !n3(o2.name)) continue;
              if (!(a2 = cn(o2))) continue;
              for (s2 = fn(o2, a2), c2 = {}, f2 = 0; f2 < s2.colCount; f2++) c2[f2 + s2.col] = [];
              for (l2 = u.util.xr(o2, "tableColumns"), h2 = u.util.go(l2, "tableColumn"), d2 = {}, v2 = 0; v2 < h2.length; v2++) p2 = h2[v2], g2 = u.util.xr(p2, "calculatedColumnFormula"), D(g2) || (d2[v2 + s2.col] = true);
              i3[r2] = { tableRels: r2, tableName: o2.name, range: a2, dataRange: s2, data: c2, formulaCols: d2 };
            }
            return t3.ITr = i3, i3;
          }
          return t3.ITr || [];
        }
        function hn(t3, n3) {
          var e3, i3, r2, o2, a2, s2, c2, f2, l2 = u.util.xr(t3, p.XFileConstants.Bu), h2 = t3.rels;
          if (u.util.T1(l2) && u.util.T1(l2.c_) && u.util.T1(h2)) {
            for (e3 = [], r2 = 0, o2 = (i3 = l2.c_).length; r2 < o2; r2++) a2 = i3[r2][p.XFileConstants.Ki], (c2 = (s2 = d.Util.Sr(h2.c_, a2)) && s2.Target) && (f2 = n3[c2 = c2.split("/").pop().slice(0, -4)]) && e3.push(f2);
            return e3;
          }
          return [];
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Common"), r = e2("./dist/core/worksheet/worksheet.js"), o = e2("./dist/core/worksheet/style.js"), a = o.Style.xp, u = e2("./dist/core/util/common.js"), s = e2("./dist/core/util/theme.js"), c = e2("./dist/core/util/domUtil.js"), f = e2("./dist/core/worksheet/stylehelper.js"), l = e2("./dist/core/core.enum.js"), h = e2("CalcEngine"), d = e2("./dist/core/excel-io-util/common.js"), v = e2("./dist/core/excel-io-util/range-parser.js"), p = e2("./dist/core/excel-io-util/excel-types.js"), g = e2("./dist/core/worksheet/worksheet-model.js"), m = e2("./dist/core/core.ns.js"), b = void 0, y = new i2.Common.ResourceManager(m.SR, "Sheets"), w = y.getResource.bind(y), M = u.UsedRangeUtil.updateUsedRangeByData, C = 16384, S = 1048576, T = !!h, x = i2.Common.CultureManager, A = r.Worksheet.fh, I = u.util.T1, k = c.GC$.each, N = c.GC$.isEmptyObject, j = i2.Common.kh, D = i2.Common.lt.ht, _ = d.IndexHelper.nr, O = d.IndexHelper.$i, E = d.IndexHelper.qi, R = u.util.n1, L = d.Util.Sr, F = u.util.Pr, B = u.util.xr, P = u.util.o1, G = u.util.go, U = u.util.vo, H = u.util.d1, V = u.util.h1, z = v.range_parser._c, Y = v.range_parser.Dc, Z = v.range_parser.jc, W = i2.Common.zf, Q = d.Util.No, K = d.Util.ko, J = d.Util.Kr, X = d.Util.Qr, q = d.Util.WYr, $ = d.NodeHelper.ur, tt = p.XFileConstants.Ki, nt = p.XFileConstants.Su, et = p.XFileConstants.Tu, it = p.XFileConstants.Au, rt = p.XFileConstants.Iu, ot = p.XFileConstants.Nu, at = p.XFileConstants.Du, ut = p.XFileConstants._u, st = p.XFileConstants.Eu, ct = p.XFileConstants.bo, ft = "string", lt = parseInt, ht = isNaN, dt = void 0, vt = null, pt = "1", gt = "0", mt = ["jpg", "jpeg", "png"], bt = Math.max, yt = Math.min, wt = function(t3) {
          return t3 = t3.toLowerCase(), mt.findIndex((function(n3) {
            return n3 === t3;
          })) >= 0;
        }, (function(t3) {
          t3[t3.bottomRight = 0] = "bottomRight", t3[t3.topRight = 1] = "topRight", t3[t3.bottomLeft = 2] = "bottomLeft", t3[t3.topLeft = 3] = "topLeft";
        })(Mt || (Mt = {})), c.GC$.extend(r.Worksheet.prototype, { s8: function(t3, n3, e3, i3, r2, o2) {
          var a2, u2;
          t3[n3] || (t3[n3] = {}), (a2 = t3[n3])[e3] || (a2[e3] = {}), u2 = a2[e3], r2 && !D(u2.value) || (u2.value = i3), D(o2) || (u2.style ? o2.formatter && (u2.style = (0, g.LUr)(this, u2.style), u2.style.formatter === dt && (u2.style.formatter = o2.formatter)) : u2.style = o2);
        }, c8: function(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2 = B(t3, ct), h2 = l2[n3];
          switch (h2 || (h2 = l2[n3] = {}), (a2 = h2[e3]) || (a2 = h2[e3] = {}), u2 = typeof i3, delete a2.b, delete a2.o, delete a2.v, delete a2.n, u2) {
            case "boolean":
              a2.b = i3 ? 1 : 0;
              break;
            case "string":
              c2 = (s2 = (0, g.getOADateNumber)(i3, r2)).OADateNumber, f2 = s2.valueIndex, a2.o = c2, a2.v = f2;
              break;
            case "object":
              i3 && i3.richText ? a2.v = r2 ? r2.getTextIndex(i3) : i3 : a2.v = i3;
              break;
            default:
              a2.n = i3;
          }
          D(o2) || (a2.s = o2);
        }, kTr: function(t3, n3, e3, i3, r2) {
          var o2, a2 = B(t3, ct), u2 = a2[n3];
          u2 || (u2 = a2[n3] = {}), (o2 = u2[e3]) || (o2 = u2[e3] = {}), o2.f = i3, D(r2) || (o2.s = r2);
        }, Op: function(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2 = this, f2 = c2.Ut, h2 = f2.W_(), d2 = f2.W_(l.SheetArea.colHeader), v2 = f2.Q_(true), p2 = f2.Q_(true, l.SheetArea.colHeader), m2 = f2.K_(), b2 = f2.K_(l.SheetArea.colHeader), y2 = c2.rowFilter(), w2 = h2.getColumnCount();
          for (e3 = 0; e3 < t3; e3++) for (h2.setNode(e3, -1, d2.J_(e3, -1)), i3 = p2.q_(e3), c2.NMi && (o2 = c2.defaults.colHeaderRowHeight) !== g.DEFAULT_COL_HEADER_ROW_HEIGHT && (i3 ? D(i3.size) && (i3.size = o2) : i3 = { size: o2 }), v2.X_(e3, i3), a2 = n3; a2 < w2; a2++) (u2 = d2.J_(e3, a2)) || (u2 = {}), u2.style = c2.getActualStyle(e3, a2, l.SheetArea.colHeader), h2.setNode(e3, a2, u2), (s2 = c2.getFormula(e3, a2, l.SheetArea.colHeader)) && c2.setFormula(e3, a2, s2, l.SheetArea.viewport);
          b2.getSpans().forEach((function(t4) {
            m2.add(t4);
          })), y2 && y2.range && -1 === y2.range.row && (y2.f8 = true), c2.frozenRowCount(t3), f2.l8(r.Worksheet.o8, w2, l.SheetArea.colHeader), f2.h8(false, l.SheetArea.colHeader), f2.d8(l.SheetArea.colHeader), c2.b3(l.SheetArea.colHeader).clearAll();
        }, jp: function(t3, n3) {
          var e3, i3, o2, a2, u2 = this, s2 = u2.Ut, c2 = s2.W_(), f2 = s2.W_(l.SheetArea.rowHeader), h2 = s2.Q_(false), d2 = s2.Q_(false, l.SheetArea.rowHeader), v2 = s2.K_(), p2 = s2.K_(l.SheetArea.rowHeader), g2 = c2.getRowCount();
          for (e3 = 0; e3 < t3; e3++) for (c2.setNode(-1, e3, f2.J_(-1, e3)), h2.X_(e3, d2.q_(e3)), i3 = n3; i3 < g2; i3++) (o2 = f2.J_(i3, e3)) || (o2 = {}), o2.style = u2.getActualStyle(i3, e3, l.SheetArea.rowHeader), c2.setNode(i3, e3, o2), (a2 = u2.getFormula(i3, e3, l.SheetArea.rowHeader)) && u2.setFormula(i3, e3, a2, l.SheetArea.viewport);
          p2.getSpans().forEach((function(t4) {
            v2.add(t4);
          })), u2.frozenColumnCount(t3), s2.l8(g2, r.Worksheet.r8, l.SheetArea.rowHeader), s2.h8(false, l.SheetArea.rowHeader), s2.d8(l.SheetArea.rowHeader), u2.b3(l.SheetArea.rowHeader).clearAll();
        }, toJSON: function(t3) {
          var n3, e3, i3, o2, a2, s2, c2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, I2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2 = this, Z2 = t3 && t3.ignoreStyle;
          for (S2 in !t3 || t3.kp || Y2.NMi || (a2 = Y2.getRowCount(l.SheetArea.colHeader), s2 = Y2.getColumnCount(l.SheetArea.rowHeader), c2 = t3.rowHeadersAsFrozenColumns, v2 = (h2 = t3.columnHeadersAsFrozenRows) && a2 > 0, (d2 = c2 && s2 > 0) && Y2.addColumns(0, s2), v2 && Y2.ffe(0, a2, 3, { rowExpand: v2 }), d2 && Y2.jp(s2, v2 ? a2 : 0), v2 && Y2.Op(a2, d2 ? s2 : 0)), p2 = Y2.getRowCount(), g2 = Y2.getColumnCount(), m2 = Y2.getRowCount(l.SheetArea.colHeader), b2 = Y2.getColumnCount(l.SheetArea.rowHeader), y2 = { name: t3 && t3.newWorkSheetName || Y2.name(), isSelected: Y2.b2(), rowCount: p2, columnCount: g2, activeRow: Y2.ui, activeCol: Y2.ci, zoomFactor: Y2.zoom(), rowHeaderColCount: b2, colHeaderRowCount: m2, visible: Y2.visible(), parameter: Y2.o1e }, (null == t3 ? void 0 : t3.isServer) && (y2.__ID__ = Y2.jKe()), w2 = Y2.getDockScrollbarAttachedIndex(), D(w2) || (y2.dockScrollbarAttachedIndex = w2), Z2 || (y2.frozenRowCount = Y2.frozenRowCount(), y2.frozenColCount = Y2.frozenColumnCount(), y2.frozenTopRow = Y2._ve, y2.frozenLeftCol = Y2.Dve, y2.frozenTrailingRowCount = Y2.frozenTrailingRowCount(), y2.frozenTrailingColCount = Y2.frozenTrailingColumnCount(), y2.frozenTrailingRowStickToEdge = Y2.Ny, y2.frozenTrailingColumnStickToEdge = Y2.Vy, y2.theme = Y2.hl.toJSON()), C2 = (M2 = Y2.Ut).toJSON(t3)) y2[S2] = C2[S2];
          for (I2 in A && k(A, (function(n4, e4) {
            e4.toJson && e4.toJson.call(Y2, y2, t3);
          })), (T2 = Y2.GRe()) && (y2.attachments = T2.Np(C2.data)), x2 = {}, y2) j(y2, I2) && (_2 = y2[I2], D(_2) || Nt(I2, _2) || (x2[I2] = _2));
          if (x2.backgroundImage = Y2.eYr, (null == t3 ? void 0 : t3.fileType) === l.OpenSaveFileType.excel && (x2.pYr = Y2.pYr, (null == t3 ? void 0 : t3.losslessEditing) && (null === (e3 = null === (n3 = Y2.vuo) || void 0 === n3 ? void 0 : n3.guo) || void 0 === e3 ? void 0 : e3.WKr) && (x2.WKr = null === (o2 = null === (i3 = Y2.vuo) || void 0 === i3 ? void 0 : i3.guo) || void 0 === o2 ? void 0 : o2.WKr)), Ot(Y2, y2.data.dataTable), k(Y2.options, (function(t4, n4) {
            var e4, i4, o3, a3 = n4;
            "gridline" === t4 && (a3 = {}, e4 = n4.color, i4 = n4.showHorizontalGridline, o3 = n4.showVerticalGridline, e4 && e4 !== u.I.fl("gc-gridlineColor").borderTopColor && (a3.color = e4), false === i4 && (a3.showHorizontalGridline = i4), false === o3 && (a3.showVerticalGridline = o3)), "sheetAreaOffset" === t4 && (a3 = {}, n4.left && (a3.left = n4.left), n4.top && (a3.top = n4.top)), "protectionOptions" === t4 && Y2.oue && u.util.w1(a3, Y2.oue), "addRowButtonOption" === t4 && n4 && (a3 = {}, n4.visible && (a3.visible = n4.visible), "number" == typeof n4.height && (a3.height = n4.height), Y2.X_e(n4.command) || (a3.command = n4.command), n4.style && (a3.style = n4.style.toJSON()), n4.tooltip && (a3.tooltip = n4.tooltip)), "addColumnButtonOption" === t4 && n4 && (a3 = {}, n4.visible && (a3.visible = n4.visible), "number" == typeof n4.width && (a3.width = n4.width), Y2.q_e(n4.command) || (a3.command = n4.command), n4.style && (a3.style = n4.style.toJSON()), n4.tooltip && (a3.tooltip = n4.tooltip)), "_ps" === t4 || D(a3) || r.Worksheet.Pp[t4] === a3 || "object" == typeof a3 && N(a3) || (x2[t4] = a3);
          })), O2 = [], E2 = Y2.Hp) {
            for (R2 in E2) j(E2, R2) && (L2 = E2[R2]) && (F2 = L2.toJSON(void 0, void 0, t3), B2 = L2.font, N(F2) || (B2 && (P2 = L2.fontStyle, G2 = L2._fontVariant, U2 = L2.fontWeight, H2 = L2._lineHeight, V2 = L2.fontSize, z2 = L2.fontFamily, F2.font = f.W.f5({ fontStyle: P2, fontVariant: G2, fontWeight: U2, lineHeight: H2, fontSize: V2, fontFamily: z2 }, { alwaysBuild: true })), t3 && t3.saveAsView && F2.formatter && u.util.St(F2.formatter) && (F2.formatter = void 0), O2.push(F2)));
            O2.length > 0 && (x2.namedStyles = O2);
          }
          return x2;
        }, PRe: function(t3, n3, e3, i3, u2, f2) {
          var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, A2, k2, N2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2;
          if (e3 && (d2 = e3.noSchema, v2 = e3.version), t3) {
            g2 = (p2 = this).Ut, m2 = i3 && i3.ignoreStyle, p2.Zp(), (b2 = p2.Uw && p2.Uw()) && !b2.G3 && (b2.G3 = true, y2 = true), r.Worksheet.et(p2, "preFromJson"), p2.suspendPaint(), g2.v8(), g2.m8(), w2 = x.culture(), x.culture(""), M2 = jt(t3.rowCount, r.Worksheet.n8), C2 = jt(t3.columnCount, r.Worksheet.e8);
            try {
              if (t3.__ID__ && this.UKn(t3.__ID__), p2.ub(t3.name + "", true), p2.b2(t3.isSelected), p2.setRowCount(M2), p2.setColumnCount(C2), p2.o1e = t3.parameter, p2.Hp = {}, S2 = t3.namedStyles) for (A2 = 0; A2 < S2.length; A2++) k2 = S2[A2], N2 = new o.Style(), a(k2, p2), N2.fromJSON(k2, d2, p2), p2.$p(N2);
              for (O2 in _2 = p2.options) if (j(_2, O2) && (E2 = t3[O2], "protectionOptions" === O2 ? (E2 = E2 || t3.protectionOption) && (E2.algorithmName && E2.hashValue && E2.saltValue && E2.spinCount && (p2.oue = { algorithmName: E2.algorithmName, hashValue: E2.hashValue, saltValue: E2.saltValue, spinCount: E2.spinCount }), delete E2.algorithmName, delete E2.hashValue, delete E2.saltValue, delete E2.spinCount) : "allowCellOverflow" === O2 ? E2 = I(t3[O2]) ? t3[O2] : !v2 || v2 >= 11 : ("addRowButtonOption" === O2 || "addColumnButtonOption" === O2) && E2 && E2.style && ((N2 = new o.Style()).fromJSON(E2.style, d2, p2), E2.style = N2), I(E2))) if ("object" == typeof E2) for (R2 in E2) j(E2, R2) && (_2[O2][R2] = E2[R2]);
              else "borderWidth" === O2 ? (_2.sheetAreaOffset.left = E2, _2.sheetAreaOffset.top = E2) : _2[O2] = E2;
              if (L2 = jt(t3.activeRow, p2.ui), F2 = jt(t3.activeCol, p2.ci), p2.O6(L2, F2, dt, dt, true), m2 || (Dt(p2, p2.frozenRowCount, t3.frozenRowCount, t3.frozenTopRow || 0), Dt(p2, p2.frozenColumnCount, t3.frozenColCount, t3.frozenLeftCol || 0), Dt(p2, p2.frozenTrailingRowCount, t3.frozenTrailingRowCount), Dt(p2, p2.frozenTrailingColumnCount, t3.frozenTrailingColCount), p2.Ny = !I(t3.frozenTrailingRowStickToEdge) || t3.frozenTrailingRowStickToEdge, p2.Vy = !I(t3.frozenTrailingColumnStickToEdge) || t3.frozenTrailingColumnStickToEdge), !m2) {
                if (B2 = t3.colStyles) for (P2 in B2) ht(P2) || p2.setStyle(-1, lt(P2, 10), B2[P2], l.SheetArea.viewport);
                if (G2 = t3.rowStyles) for (U2 in G2) ht(U2) || p2.setStyle(lt(U2, 10), -1, G2[U2], l.SheetArea.viewport);
              }
              H2 = jt(t3.rowHeaderColCount, r.Worksheet.r8), V2 = jt(t3.colHeaderRowCount, r.Worksheet.o8), p2.setColumnCount(H2, l.SheetArea.rowHeader), p2.setRowCount(V2, l.SheetArea.colHeader), p2.g8(jt(t3._zoomFactor || t3.zoomFactor, p2.zoom())), false === t3.visible ? t3.visible = l.SheetTabVisible.hidden : true === t3.visible && (t3.visible = l.SheetTabVisible.visible), Dt(p2, p2.visible, t3.visible), z2 = p2.b8, Y2 = { sheet: p2, setValidator: function(t4, n4, e4) {
                z2 && z2.y8(t4, n4, e4);
              }, ignoreStyle: m2 }, p2.w8(t3), g2.fromJSON(t3, d2, Y2, p2.Lp && p2.Lp.allowDynamicArray), p2.defaults = g2.defaults, z2 && z2.C8(true), Z2 = t3.dockScrollbarAttachedIndex, D(Z2) || p2.setDockScrollbarAttachedIndex(Z2), (W2 = t3.theme) && !m2 && (typeof (Q2 = W2) !== ft && I(Q2) && (K2 = "_themeColor", J2 = "_name", X2 = Q2.themeColor || Q2[K2], (q2 = new s.ColorScheme(X2.name || X2[J2])).fromJSON(X2, d2), $2 = Q2.font, Q2 = new s.Theme(Q2.name || Q2.Zc, q2, Q2.headingFont || Q2.Aee, Q2.bodyFont || Q2.See), $2 && Q2.font().fromJSON($2)), p2.currentTheme(Q2)), c.GC$.isEmptyObject(t3.attachments) || null === (h2 = p2.GRe()) || void 0 === h2 || h2.xji(t3.attachments), _t(p2, t3, d2, i3, n3, u2), t3.backgroundImage && ((null == i3 ? void 0 : i3.fileType) === l.OpenSaveFileType.excel ? (p2.eYr = t3.backgroundImage, p2.pYr = t3.pYr) : p2.backgroundImage(t3.backgroundImage.src, t3.backgroundImage)), p2.vuo = dt, (null == i3 ? void 0 : i3.fileType) === l.OpenSaveFileType.excel && t3.WKr && Tt(p2, t3.WKr), tt2 = i3 && i3.frozenColumnsAsRowHeaders && !p2.NMi, et2 = (nt2 = i3 && i3.frozenRowsAsColumnHeaders && !p2.NMi) && t3.frozenRowCount || 0, it2 = tt2 && t3.frozenColCount || 0, nt2 && et2 > 0 && It(p2, t3, et2, it2), tt2 && it2 > 0 && kt(p2, t3, it2, et2), T && (rt2 = p2.Uw(), et2 > 0 && (rt2.S8 = et2), it2 > 0 && (rt2.T8 = it2)), u2 || (et2 > 0 && p2.deleteRows(0, et2), it2 > 0 && p2.deleteColumns(0, it2)), p2.clearPendingChanges();
            } finally {
              y2 && delete b2.G3, x.culture(w2), g2.A8(), p2.resumePaint();
            }
          }
        }, fromJSON: function(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          null === (a2 = null === (o2 = this.parent) || void 0 === o2 ? void 0 : o2.suspendOp) || void 0 === a2 || a2.call(o2), this.PRe(t3, n3, e3, i3, r2), null === (s2 = null === (u2 = this.parent) || void 0 === u2 ? void 0 : u2.resumeOp) || void 0 === s2 || s2.call(u2);
        }, Yp: function(t3, n3, e3, i3, u2) {
          var c2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, A2, k2, N2, D2, _2, O2, E2, R2, L2, F2;
          if (e3 && (c2 = e3.noSchema, f2 = e3.version), t3) {
            d2 = (h2 = this).Ut, v2 = i3.ignoreStyle, h2.Zp(), r.Worksheet.et(h2, "preFromJson"), d2.v8(), d2.m8(), p2 = x.culture(), x.culture("");
            try {
              if (h2.Hp = {}, g2 = t3.namedStyles) for (m2 = 0; m2 < g2.length; m2++) b2 = g2[m2], y2 = new o.Style(), a(b2, h2), y2.fromJSON(b2, c2, h2), h2.$p(y2);
              for (M2 in w2 = h2.options) if (j(w2, M2) && (C2 = t3[M2], "protectionOptions" === M2 ? C2 = C2 || t3.protectionOption : "allowCellOverflow" === M2 ? C2 = I(t3[M2]) ? t3[M2] : !f2 || f2 >= 11 : ("addRowButtonOption" === M2 || "addColumnButtonOption" === M2) && C2 && C2.style && ((y2 = new o.Style()).fromJSON(C2.style, c2, h2), C2.style = y2), I(C2))) if ("object" == typeof C2) for (S2 in C2) j(C2, S2) && (w2[M2][S2] = C2[S2]);
              else "borderWidth" === M2 ? (w2.sheetAreaOffset.left = C2, w2.sheetAreaOffset.top = C2) : w2[M2] = C2;
              if (A2 = jt(t3.activeRow, h2.ui), k2 = jt(t3.activeCol, h2.ci), h2.O6(A2, k2, dt, dt, true), v2 || (Dt(h2, h2.frozenRowCount, t3.frozenRowCount), Dt(h2, h2.frozenColumnCount, t3.frozenColCount), Dt(h2, h2.frozenTrailingRowCount, t3.frozenTrailingRowCount), Dt(h2, h2.frozenTrailingColumnCount, t3.frozenTrailingColCount), h2.Ny = !I(t3.frozenTrailingRowStickToEdge) || t3.frozenTrailingRowStickToEdge, h2.Vy = !I(t3.frozenTrailingColumnStickToEdge) || t3.frozenTrailingColumnStickToEdge), !v2) {
                if (N2 = t3.colStyles) for (D2 in N2) ht(D2) || h2.setStyle(-1, lt(D2, 10), N2[D2], l.SheetArea.viewport);
                if (_2 = t3.rowStyles) for (O2 in _2) ht(O2) || h2.setStyle(lt(O2, 10), -1, _2[O2], l.SheetArea.viewport);
              }
              E2 = jt(t3.rowHeaderColCount, r.Worksheet.r8), R2 = jt(t3.colHeaderRowCount, r.Worksheet.o8), h2.setColumnCount(E2, l.SheetArea.rowHeader), h2.setRowCount(R2, l.SheetArea.colHeader), h2.g8(jt(t3._zoomFactor || t3.zoomFactor, h2.zoom())), false === t3.visible ? t3.visible = l.SheetTabVisible.hidden : true === t3.visible && (t3.visible = l.SheetTabVisible.visible), L2 = h2.b8, F2 = { sheet: h2, setValidator: function(t4, n4, e4) {
                L2 && L2.y8(t4, n4, e4);
              }, ignoreStyle: v2, incrementalLoading: i3.incrementalLoading, incrementLoadTask: i3.incrementLoadTask }, h2.w8(t3), d2.fromJSON(t3, c2, F2, h2.Lp && h2.Lp.allowDynamicArray, (function() {
                var e4, r2, o2, a2, f3, l2, g3, m3, b3, y3, w3, M3;
                h2.defaults = d2.defaults, L2 && L2.C8(true), (e4 = t3.theme) && !v2 && (typeof (r2 = e4) !== ft && I(r2) && (o2 = "_themeColor", a2 = "_name", f3 = r2.themeColor || r2[o2], (l2 = new s.ColorScheme(f3.name || f3[a2])).fromJSON(f3, c2), g3 = r2.font, r2 = new s.Theme(r2.name || r2.Zc, l2, r2.headingFont || r2.Aee, r2.bodyFont || r2.See), g3 && r2.font().fromJSON(g3)), h2.currentTheme(r2)), _t(h2, t3, c2, i3, n3, u2), m3 = i3 && i3.frozenColumnsAsRowHeaders && !h2.NMi, y3 = (b3 = i3 && i3.frozenRowsAsColumnHeaders && !h2.NMi) && t3.frozenRowCount || 0, w3 = m3 && t3.frozenColCount || 0, b3 && y3 > 0 && It(h2, t3, y3, w3), m3 && w3 > 0 && kt(h2, t3, w3, y3), T && (M3 = h2.Uw(), y3 > 0 && (M3.S8 = y3), w3 > 0 && (M3.T8 = w3)), u2 || (y3 > 0 && h2.deleteRows(0, y3), w3 > 0 && h2.deleteColumns(0, w3)), h2.clearPendingChanges(), x.culture(p2), d2.A8(), h2.loaded = true;
              }));
            } finally {
            }
          }
        }, wh: function(t3, n3, e3) {
          var i3, r2, o2, a2, s2, f2, h2, v2, g2, m2, y2, w2, M2, S2, T2, x2, I2, N2, j2, O2, E2, R2, L2, B2, P2, G2, U2, H2, z2, Y2, W2, Q2, K2, $2, tt2, rt2, ot2, ct2, ft2, lt2, ht2, pt2, gt2, mt2, bt2, yt2, St2, Tt2, At2, It2, kt2, Nt2, jt2, Dt2, _t2, Ot2, Et2, Rt2, Lt2, Ft2, Bt2, Pt2, Gt2, Ut2, Ht2, Vt2, Yt2, Zt2, Wt2, Qt2, Kt2, Jt2, Xt2, $t2, tn2, en2, rn2, an2, cn2, fn2, ln2, hn2, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn, Pn, Gn, Un, Hn, Vn, zn, Yn, Zn, Wn, Qn, Kn, Jn, Xn, qn = this, $n = qn.options, te = d.Util.ko(e3), ne = !e3 || false !== e3.includeStyles;
          for ($n.sheetTabColor && (f2 = { n_: nt, c_: [V($n.sheetTabColor, dt, "tabColor")] }), (null === (i3 = t3.workbook) || void 0 === i3 ? void 0 : i3.lossless) && t3.workbook.lossless[p.XFileConstants.duo] && e3 && e3.fileType === l.OpenSaveFileType.excel && ("XLSM" === e3.excelFileType || "XLTM" === e3.excelFileType) && (v2 = null == (h2 = qn.vuo && qn.vuo.codeName) ? void 0 : h2.codeName) && (f2 ? f2.codeName = v2 : f2 = { n_: nt, codeName: v2, c_: [] }), g2 = qn.getRowCount(l.SheetArea.colHeader) || 1, m2 = qn.getColumnCount(l.SheetArea.rowHeader) || 1, y2 = qn.NMi && (e3 && e3.fileType) === l.OpenSaveFileType.excel, w2 = e3 && e3.rowHeadersAsFrozenColumns, M2 = e3 && e3.columnHeadersAsFrozenRows, (w2 || M2 || y2) && (T2 = (M2 || y2) && g2 > 0, (S2 = w2 && m2 > 0) && qn.addColumns(0, m2), T2 && qn.ffe(0, g2, 3, { rowExpand: T2 }), S2 && qn.jp(m2, T2 ? g2 : 0), T2 && qn.Op(g2, S2 ? m2 : 0)), x2 = $n.gridline, I2 = $n.frozenlineColor, N2 = qn.zoom(), j2 = qn.frozenRowCount(), O2 = qn.frozenColumnCount(), E2 = qn._ve || 0, R2 = qn.Dve || 0, L2 = qn.getViewportLeftColumn(1), B2 = qn.getViewportTopRow(1), qn.NMi ? P2 = "A1" : E2 || R2 ? P2 = Z((0, u.Ec)(E2, R2, 1, 1)) : L2 !== dt && B2 !== dt && (j2 || O2 ? O2 && !j2 ? P2 = "A" + (B2 + 1) : !O2 && j2 && (P2 = Z((0, u.Ec)(0, L2, 1, 1))) : P2 = Z((0, u.Ec)(B2, L2, 1, 1))), x2 && (G2 = { color: x2.color, showVerticalGridline: x2.showVerticalGridline, showHorizontalGridline: x2.showHorizontalGridline }), (U2 = G2 && G2.color && G2.color !== u.I.fl("gc-gridlineColor").borderTopColor ? G2 && G2.color : dt) && (U2 = u.ColorHelper.getClosestColorIndex(u.ColorHelper.convertHexColorToArgb(U2))), H2 = { n_: "sheetView", showGridLines: !G2 || false !== G2.showVerticalGridline && false !== G2.showHorizontalGridline ? dt : "0", rightToLeft: true === $n.rightToLeft ? "1" : dt, showRowColHeaders: false === $n.rowHeaderVisible && false === $n.colHeaderVisible ? "0" : dt, defaultGridColor: U2 ? 0 : dt, colorId: U2, showFormulas: $n.showFormulas ? "1" : dt, showZeros: $n.showZeros ? dt : "0", topLeftCell: P2 || dt, zoomScale: 1 === N2 ? dt : Math.round(100 * N2), workbookViewId: 0, tabSelected: qn.b2() ? "1" : dt, c_: [] }, z2 = 0, Y2 = 0, W2 = 3, Q2 = "1", K2 = "A", ne && (O2 > 0 || j2 > 0) && (O2 > 0 && (z2 = O2, K2 = _(L2)), j2 > 0 && (Y2 = j2, Q2 = B2 + 1 + ""), O2 > 0 && 0 === j2 ? W2 = 1 : 0 === O2 && j2 > 0 ? W2 = 2 : O2 > 0 && j2 > 0 && (W2 = 0), $2 = { n_: "pane", xSplit: O2 > 0 ? O2 - R2 : dt, ySplit: j2 > 0 ? j2 - E2 : dt, topLeftCell: K2 + Q2 === "A1" ? Z((0, u.Ec)(z2, Y2, 1, 1)) : K2 + Q2, activePane: Mt[W2], state: "frozen" }, H2.c_.push($2)), nn(qn, H2, ne, tt2 = te ? [] : vt), rt2 = n3.styleManager, ot2 = n3.sharedStrings, lt2 = (ft2 = (ct2 = qn.Ut).wh(rt2, ot2, e3)).sheetData, ht2 = ft2.hyperlinks, pt2 = ft2.rowHeaderData, gt2 = ft2.colHeaderData, mt2 = ft2.rowHeaderColInfos, bt2 = ft2.colHeaderRowInfos, yt2 = ft2.rowHeaderSpan, St2 = ft2.colHeaderSpan, Tt2 = ft2.defaults, At2 = ft2.selectionPolicy, It2 = ft2.selectionUnit, kt2 = ft2.rowInfos, Nt2 = ft2.defaultData, jt2 = ft2.tag, Dt2 = !qn.NMi && qn.getDefaultStyle(), Et2 = { rowHeaderData: pt2, colHeaderData: gt2, rowHeaderColInfos: mt2, colHeaderRowInfos: bt2, rowHeaderSpan: yt2, colHeaderSpan: St2, rowInfos: kt2, colHeaderRowCount: g2, rowHeaderColCount: m2, gridline: G2, frozenlineColor: I2, defaults: Tt2, selectionPolicy: At2, selectionUnit: It2, defaultStyle: _t2 = ne && Dt2 && Dt2.toJSON(), sheetOptions: Ot2 = qt($n, te, qn), defaultData: Nt2, tag: jt2, parameter: qn.o1e, selectRanges: tt2, backgroundImage: qn.eYr }, ne && (Rt2 = void 0, Lt2 = void 0, Ft2 = void 0, Bt2 = void 0, Rt2 = qn.frozenTrailingRowCount(), Lt2 = qn.frozenTrailingColumnCount(), Ft2 = qn.Ny, Bt2 = qn.Vy, 0 !== Rt2 && (Et2.frozenTrailingRowCount = Rt2), 0 !== Lt2 && (Et2.frozenTrailingColCount = Lt2), true !== Ft2 && (Et2.frozenTrailingRowStickToEdge = Ft2), true !== Bt2 && (Et2.frozenTrailingColumnStickToEdge = Bt2)), ne && (Et2.theme = qn.hl.wh(te)), Pt2 = ct2.Q_(false, 3).wh(e3), Ut2 = (Gt2 = ct2.defaults).colWidth, Ht2 = Gt2.rowHeight, Vt2 = { n_: ut, defaultRowHeight: u.SJSColumnWidthHelper.pixelToPoint(Ht2), defaultColWidth: u.SJSColumnWidthHelper.pixelToColumnWidth(Ut2), customHeight: Math.abs(76 - Ht2) >= 2 ? "1" : dt }, Yt2 = e3 && false === e3.includeEmptyRegionCells, Zt2 = 0, Wt2 = 0, Qt2 = qn.getRowCount(), Kt2 = qn.getColumnCount(), Yt2 && (Jt2 = l.UsedRangeType.all - l.UsedRangeType.colStyle - l.UsedRangeType.rowStyle - l.UsedRangeType.style - l.UsedRangeType.axis, (Xt2 = qn.getUsedRange(Jt2)) && (Zt2 = Xt2.row, Wt2 = Xt2.col, Qt2 = Xt2.row + Xt2.rowCount, Kt2 = Xt2.col + Xt2.colCount)), $t2 = [], tn2 = Pt2.length - 1, en2 = Et2.colInfos = [], rn2 = ct2.W_(3), an2 = Wt2; an2 < xt(Kt2, tn2 + 1); an2++) fn2 = (cn2 = rn2.J_(-1, an2)) && cn2.style, ln2 = Pt2[an2], hn2 = qn.getTag(-1, an2), (ln2 || fn2 || !D(hn2)) && (dn = ln2 && ln2.size, vn = ln2 && ln2.visible, pn = void 0, gn = void 0, mn = void 0, ne && fn2 && (te ? "string" == typeof fn2 ? pn = rt2.getOriginNamedStyleIndex(fn2, qn) : fn2 !== dt && (gn = rt2.getOriginStyleIndex(fn2, qn)) : ("string" == typeof fn2 && 0 === fn2.indexOf(rt2.Jd) && (bn = fn2, (fn2 = qn.i3(bn, false)) || (fn2 = (yn = qn.parent) && yn.i3(bn, false))), mn = rt2.getStyleIndex(fn2))), (!D(dn) && dn !== Ut2 || false === vn || fn2 || pn !== dt || gn !== dt) && ($t2[an2] = { width: D(dn) ? u.SJSColumnWidthHelper.pixelToColumnWidth(Ut2) : u.SJSColumnWidthHelper.pixelToColumnWidth(dn), hidden: false === vn ? "1" : dt, customWidth: D(dn) || dn === Ut2 ? dt : 1, style: mn, t: pn, e: gn }), D(hn2) || (Pt2[an2] = Pt2[an2] ? Pt2[an2] : {}, Pt2[an2].colTag = hn2), en2[an2] = Pt2[an2]);
          if (Mn = (wn = un(qn, te, ne)).spanRowColInfos, Cn = wn.sjsMergeCells, Sn = { n_: p.XFileConstants.Dr, xmlns: p.RelationshipConstants._r, c_: [] }, e3 && e3.losslessEditing && e3.fileType === l.OpenSaveFileType.excel && (null === (o2 = null === (r2 = qn.vuo) || void 0 === r2 ? void 0 : r2.guo) || void 0 === o2 ? void 0 : o2.WKr)) for (xn = 0, An = (Tn = null === (s2 = null === (a2 = qn.vuo) || void 0 === a2 ? void 0 : a2.guo) || void 0 === s2 ? void 0 : s2.WKr).length; xn < An; xn++) (In = Ct({}, Tn[xn])).n_ = p.XFileConstants.Lr, In.Id = p.XFileConstants.Rr + d.Util.wr(Sn), In.Target = "../" + In.Target.slice(3), Sn.c_.push(In);
          for (kn = zt(ht2, Mn, Sn), an2 = Zt2; an2 < Qt2; an2++) Nn = qn.getTag(an2, -1), !lt2[an2] && D(Nn) && false !== qn.getRowVisible(an2) || (lt2[an2] || (lt2[an2] = { r: an2 + 1 }), false === qn.getRowVisible(an2) && (lt2[an2].v = "1"), D(Nn) || (lt2[an2].lossless = { tag: Nn }));
          for (jn = on(qn, te), !(Dn = qn.GRe().wh(lt2)) || c.GC$.isEmptyObject(Dn.attachmentsJSON) || c.GC$.isEmptyObject(Dn.attachmentsInfos) || (t3.attachments || (t3.attachments = {}), t3.attachments[sn(this)] = Dn.attachmentsJSON, Et2.attachments = Dn.attachmentsInfos), _n = qn.getRowCount() || 1, On = qn.getColumnCount() || 1, (e3 && e3.fileType) === l.OpenSaveFileType.excel && (_n > u.MAX_ROW_COUNT && (_n = u.MAX_ROW_COUNT), On > u.MAX_COLUMN_COUNT && (On = u.MAX_COLUMN_COUNT)), En = { n_: et, ref: Z((0, u.Ec)(0, 0, _n, On)) }, Fn = { n_: "worksheet", c_: [f2, En, Rn = { n_: at, c_: [H2] }, Vt2, lt2, jn, Cn, kn, Ln = { n_: it, c_: [] }], rels: Sn, tempCols: $t2, lossless: Et2 }, A && k(A, (function(t4, i4) {
            i4.wh && i4.wh.call(qn, Fn, n3, e3);
          })), (e3 && e3.fileType) === l.OpenSaveFileType.excel && qn.pYr && (Bn = void 0, (Pn = X(qn.pYr.src)) && wt(Pn.type) ? Bn = qn.pYr.src : (Gn = document.createElement("canvas"), Un = qn.pYr, q(Un), Un.width > 0 && Un.height > 0 && (Hn = Un.width, Vn = Un.height, Gn.width = Hn, Gn.height = Vn, (zn = Gn.getContext("2d")).fillStyle = "transparent", zn.fillRect(0, 0, Hn, Vn), zn.drawImage(Un, 0, 0, Hn, Vn), Bn = Gn.toDataURL("image/png"))), Bn && (Yn = J(Bn, Fn.rels, t3), Fn.c_.push({ n_: "picture", "r:id": Yn }), u.util.Pr(Fn, p.WorkSheetNodeOrder))), Zn = [], an2 = 0; an2 < $t2.length; an2++) if (Wn = $t2[an2]) {
            if ((Qn = an2) >= C) break;
            for (Kn = an2 + 1, Jn = Qn; Kn < $t2.length && (Xn = $t2[Kn]) && Kn === Jn + 1 && Kn < C && Xn.style === Wn.style && Xn.hidden === Wn.hidden && Xn.outlineLevel === Wn.outlineLevel && Xn.collapsed === Wn.collapsed && Math.abs(Xn.width - Wn.width) <= 1e-4 && Xn.t === Wn.t && Xn.e === Wn.e; ) Jn = Kn, an2 = Kn, Kn++;
            ln2 = { n_: "col", min: Qn + 1 + "", max: Jn + 1 + "" }, Wn.style !== b && (ln2.style = Wn.style + ""), Wn.t !== b && (ln2.t = Wn.t + ""), Wn.e !== b && (ln2.e = Wn.e + ""), isNaN(Wn.width) || Wn.width === b || (ln2.width = Wn.width + ""), ln2.hidden = Wn.hidden, Wn.collapsed && (ln2.collapsed = "1"), !isNaN(Wn.width) && Math.abs(Wn.width - qn.defaults.colWidth) > 1e-4 && (ln2.customWidth = "1"), "number" == typeof Wn.outlineLevel && 0 !== Wn.outlineLevel && (ln2.outlineLevel = Wn.outlineLevel + ""), Zn.push(ln2);
          }
          return Zn.length > 0 && Fn.c_.push({ n_: st, c_: Zn }), delete Fn.tempCols, F(Fn, p.WorkSheetNodeOrder), Fn;
        }, URe: function(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, f2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, I2, N2, j2, _2, O2, E2, R2, L2, F2, P2, G2, U2, H2, V2, z2 = this, Y2 = z2.options;
          if (z2.vuo = dt, e3 && e3.fileType === l.OpenSaveFileType.excel && (null === (o2 = t3.rels) || void 0 === o2 ? void 0 : o2.c_)) for (b2 = 0, y2 = null === (a2 = t3.rels) || void 0 === a2 ? void 0 : a2.c_.length; b2 < y2; b2++) (w2 = null === (u2 = t3.rels) || void 0 === u2 ? void 0 : u2.c_[b2]).Type === p.RelationshipConstants.BKr && ((null === (f2 = null === (s2 = z2.vuo) || void 0 === s2 ? void 0 : s2.guo) || void 0 === f2 ? void 0 : f2.WKr) || Tt(z2, []), z2.vuo.guo.WKr.push(w2));
          M2 = B(t3, ct), C2 = t3.lossless, Et(Y2, t3), T2 = (S2 = Bt(t3)).rowCount, x2 = S2.colCount, M2 && (e3.fileType === l.OpenSaveFileType.excel ? (D(M2.rowCount) || (T2 = Math.max(M2.rowCount, T2 || 0)), D(M2.colCount) || (x2 = Math.max(M2.colCount, x2 || 0))) : (D(M2.rowCount) || (T2 = M2.rowCount), D(M2.colCount) || (x2 = M2.colCount))), z2.setRowCount(T2), z2.setColumnCount(x2), N2 = (I2 = z2.parent) && I2.getSheetPosition(z2.name()), (j2 = n3.sheetNamedStyles) && j2[N2] && j2[N2].forEach((function(t4) {
            delete t4.sheetId, z2.addNamedStyle(t4);
          })), Pt(_2 = z2.Ut, t3), O2 = Gt(z2, t3, e3, n3), E2 = O2.showCellRow, R2 = O2.showCellCol, L2 = !e3 || false !== e3.includeStyles, en(z2, C2, L2, n3), F2 = n3.styleManager, Ut(z2, t3, F2, x2, e3, n3), Jt(Y2, C2, z2), Xt(z2, C2), A && k(A, (function(r3, o3) {
            o3.aUr && o3.aUr.call(z2, t3, n3, e3, i3);
          })), P2 = e3 && e3.convertSheetTableToDataTable ? hn(t3, ln(n3, e3.convertSheetTableToDataTable)) : vt, _2.yh(M2, n3, e3, C2, (function() {
            if (_2.Mf) {
              L2 && Vt(_2, t3), Yt(z2, t3), Kt(z2, t3, e3.fileType === l.OpenSaveFileType.excel), A && k(A, (function(r4, o4) {
                o4.yh && o4.yh.call(z2, t3, n3, e3, i3);
              }));
              var r3 = I2 && I2.v2, o3 = r3 && r3.sheetsState;
              i3 ? (rn(o3, z2.name()), Rt(z2, t3, e3), Ft(z2, E2, R2)) : e3.incrementLoadTask.addTask((function(t4, n4, e4, i4) {
                rn(i4, t4.name()), Rt(t4, n4, e4), Ft(z2, E2, R2);
              }), [z2, t3, e3, o3]);
            }
          }), i3, z2.Lp && z2.Lp.allowDynamicArray, P2), G2 = null === (h2 = n3.attachments) || void 0 === h2 ? void 0 : h2[sn(z2)], U2 = null === (d2 = null == t3 ? void 0 : t3.lossless) || void 0 === d2 ? void 0 : d2.attachments, c.GC$.isEmptyObject(G2) || c.GC$.isEmptyObject(U2) || z2.GRe().yh(G2, U2), (null == e3 ? void 0 : e3.fileType) === l.OpenSaveFileType.excel ? (null === (v2 = null == t3 ? void 0 : t3.lossless) || void 0 === v2 ? void 0 : v2.backgroundImage) ? z2.backgroundImage(t3.lossless.backgroundImage.src, t3.lossless.backgroundImage) : this.iYr(t3, n3) : (null === (g2 = null == t3 ? void 0 : t3.lossless) || void 0 === g2 ? void 0 : g2.backgroundImage) && z2.backgroundImage(t3.lossless.backgroundImage.src, t3.lossless.backgroundImage), (H2 = null === (m2 = t3.c_) || void 0 === m2 ? void 0 : m2.find((function(t4) {
            return "sheetPr" === t4.n_;
          }))) && (V2 = void 0, (V2 = z2.vuo ? z2.vuo : z2.vuo = {}).codeName = H2);
        }, iYr: function(t3, n3) {
          var e3, i3, r2, o2, a2 = null === (e3 = t3.c_.find((function(t4) {
            return "picture" === t4.n_;
          }))) || void 0 === e3 ? void 0 : e3["r:id"];
          a2 && (r2 = d.Util.Zr(a2, t3.rels, n3)) && (o2 = this).backgroundImage(r2.blob, null === (i3 = t3.lossless) || void 0 === i3 ? void 0 : i3.backgroundImage);
        }, rv: function(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = this;
          i3 ? u2.URe(t3, n3, e3, i3, r2) : (e3 || (e3 = {}), e3.progress || (e3.progress = function(t4) {
          }), e3.loadStatus || (e3.loadStatus = { total: 0, valuesLoad: 0, formulaLoad: 0 }), o2 = d.Util.wo(e3, u2.parent && u2.parent.v2), a2 = e3.incrementLoadTask && !e3.incrementLoadTask.hasPendingTask, e3.incrementLoadTask.addTask((function(t4, n4, e4) {
            u2.URe(t4, n4, e4, r2);
          }), [t3, n3, e3], W.I5(w().STEP.loadSheetData, [u2.name()]), (function() {
            var t4 = e3.loadStatus.valuesLoad / e3.loadStatus.total;
            return o2 ? 0.2 : e3.fullRecalc ? t4 * d.STEP_RATE.loadSheetDataWithCalc + +d.STEP_RATE.parseFile + d.STEP_RATE.loadFileData : t4 * d.STEP_RATE.loadSheetData + d.STEP_RATE.parseFile + d.STEP_RATE.loadFileData;
          }), u2.name()), a2 && e3.incrementLoadTask.start());
        }, yh: function(t3, n3, e3, i3) {
          this.rv(t3, n3, e3, i3);
        } });
      }, "./dist/core/worksheet/worksheet-model.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It = this && this.qKr || (Dt = function(t3, n3) {
          return Dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Dt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Dt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), kt = this && this.nJr || function() {
          return kt = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, kt.apply(this, arguments);
        }, Nt = this && this.sJr || function(t3, n3) {
          var e3, i3, r2 = {};
          for (e3 in t3) Object.prototype.hasOwnProperty.call(t3, e3) && n3.indexOf(e3) < 0 && (r2[e3] = t3[e3]);
          if (null != t3 && "function" == typeof Object.getOwnPropertySymbols) for (i3 = 0, e3 = Object.getOwnPropertySymbols(t3); i3 < e3.length; i3++) n3.indexOf(e3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(t3, e3[i3]) && (r2[e3[i3]] = t3[e3[i3]]);
          return r2;
        }, jt = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, Dt;
        function _t(t3, n3) {
          return F(t3) ? n3 : t3;
        }
        function Ot(t3, n3) {
          return t3.hasOwnProperty(n3);
        }
        function Et(t3) {
          return "number" == typeof t3;
        }
        function Rt(t3) {
          return t3.rowCount;
        }
        function Lt(t3) {
          return t3.colCount;
        }
        function Ft(t3, n3, e3, i3) {
          var r2 = e3;
          Object.defineProperty(t3, n3, { get: function() {
            return r2;
          }, set: function(t4) {
            var e4 = r2;
            r2 = t4, i3(this, t4, n3, e4);
          } });
        }
        function Bt(t3, n3) {
          t3.cache = {}, n3 && n3.forEach((function(n4) {
            Pt(t3, n4);
          }));
        }
        function Pt(t3, n3) {
          var e3, i3;
          if (t3.I8 = I(t3.I8, n3.row + Rt(n3) - 1), t3.x8 = I(t3.x8, n3.col + Lt(n3) - 1), !t3.suspendUpdatingCache) for (e3 = 0; e3 < n3.rowCount; e3++) for (i3 = 0; i3 < n3.colCount; i3++) t3.cache[n3.row + e3 + "_" + (n3.col + i3)] = n3;
        }
        function Gt(t3, n3) {
          var e3, i3;
          if (!t3.suspendUpdatingCache) for (e3 = 0; e3 < n3.rowCount; e3++) for (i3 = 0; i3 < n3.colCount; i3++) t3.cache[n3.row + e3 + "_" + (n3.col + i3)] = S;
        }
        function Ut(t3, n3) {
          var e3, i3 = t3.indexOf("/OADate(") + 1, r2 = t3.indexOf(")");
          return 0 !== i3 && r2 > i3 && (e3 = parseFloat(t3.substring(i3 + 7, r2)), !isNaN(e3)) ? { OADateNumber: e3, valueIndex: S } : { OADateNumber: S, valueIndex: n3 ? n3.getTextIndex(t3) : t3 };
        }
        function Ht(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = (0, c.Ec)(-1, -1, -1, -1);
          return t3 && (i3 = t3.col, o2 = -1 === (r2 = t3.row), a2 = -1 === i3, u2.row = o2 ? 0 : r2, u2.rowCount = o2 ? n3 : Rt(t3), u2.col = a2 ? 0 : i3, u2.colCount = a2 ? e3 : Lt(t3)), u2;
        }
        function Vt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = t3.length, c2 = false, f2 = [];
          for (u2 = 0; u2 < s2; u2++) if (a2 = t3[u2], c2 = F(n3) || F(e3) ? F(n3) ? F(e3) ? F(i3) ? a2.containsY(r2) : a2.containsX(i3) : a2.col === e3 : a2.row === n3 : a2.contains(n3, e3)) {
            if (!o2) return a2;
            f2.push(a2);
          }
          return o2 && f2.length > 0 ? f2 : C;
        }
        function zt(t3, n3, e3, i3) {
          var r2 = C, o2 = t3.length, a2 = !F(n3);
          return o2 > 0 && ((r2 = a2 ? t3.findX(n3) : t3.findY(e3)) || (r2 = i3 && a2 ? n3 < t3[o2 - 1].x ? t3[o2 - 1] : t3[0] : a2 && n3 < t3[0].x || !a2 && e3 < t3[0].y ? t3[0] : t3[o2 - 1])), r2;
        }
        function Yt(t3, n3) {
          var e3 = t3.valuesLoad / t3.total;
          return n3 ? 0.4 * e3 + 0.1 : 0.3 * e3 + 0.1;
        }
        function Zt(t3, n3, e3, i3, r2, o2, a2, u2, s2, f2, l2) {
          var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = r2 && r2.incrementLoadTask;
          if (x2 && !x2.isTerminated) {
            for (h2 = x2.isBusyFunc, d2 = a2 = a2 || 0, v2 = false, p2 = 30, g2 = /* @__PURE__ */ new Date(); d2 < e3; ) {
              if (m2 = n3[d2]) for (b2 = 0; b2 < i3; b2++) (y2 = m2[b2]) && (v2 = true, en(y2, t3.J_(d2, b2, true), o2, d2, b2, r2, s2, f2, l2));
              if (d2++, h2 && h2()) break;
              if ((w2 = /* @__PURE__ */ new Date()) - g2 > p2) break;
            }
            if (v2) {
              if (M2 = r2 && r2.sheet, 0 !== a2 && M2.parent.getActiveSheet() === M2) {
                for (C2 = a2; C2 < d2; C2++) if (M2.dw(1).findRow(C2)) {
                  M2.repaint();
                  break;
                }
              }
              (S2 = r2 && r2.incrementalLoading) && (S2.loadStatus.valuesLoad += d2 - a2, T2 = Yt(S2.loadStatus, r2.doNotRecalculateAfterLoad), M2.parent && M2.parent.ki(c.Events.ProgressChanged, { loadStatus: S2.loadStatus, progress: T2, sheet: M2 }), S2.loading && S2.loading(T2, { sheet: M2 }));
            }
            d2 < e3 ? r2.incrementLoadTask.pushTask(Zt, [t3, n3, e3, i3, r2, o2, d2, u2, s2]) : u2 && r2.incrementLoadTask.pushTask(u2, []);
          }
        }
        function Wt(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2;
          for (c2 = 0; c2 < e3; c2++) if (f2 = n3[c2]) for (l2 = 0; l2 < i3; l2++) (h2 = f2[l2]) && en(h2, t3.J_(c2, l2, true), o2, c2, l2, r2, a2, u2, s2);
        }
        function Qt(t3, n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2) {
          var v2, p2, g2, b2, y2, w2, M2, C2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, P2, U2, V2, z2, Y2, Z2 = d.Util.Mo(r2);
          if (e3) {
            for (p2 = t3.a8, g2 = r2 && false === r2.includeStyles, b2 = H(r2), y2 = i3.styleManager, M2 = null == (w2 = r2 && r2.incrementLoadTask) ? void 0 : w2.isBusyFunc, C2 = false, T2 = 30, Z2 && (x2 = /* @__PURE__ */ new Date()), A2 = !(!r2 || !r2.convertSheetTableToDataTable), I2 = (h2 = h2 || []).length, k2 = !!A2 && I2 > 0, N2 = o2 = o2 || 0, j2 = e3.rowCount, D2 = e3.colCount; N2 < j2; ) if (_2 = e3[N2]) {
              for (E2 = (O2 = t3.J_(N2, -1, true)) && O2.style, R2 = void 0, O2 && !g2 && (b2 ? _2.t !== S ? R2 = y2.getOriginNamedStyle(_2.t) : _2.e !== S && (R2 = y2.getOriginStyle(_2.e)) : R2 = y2.getStyle(_2.s), O2.style = R2), O2 && _2.lossless && !F(_2.lossless.tag) && (O2.tag = _2.lossless.tag), p2 && q(p2.style, N2, -1, E2, O2 && O2.style), L2 = function(e4) {
                var r3, o3, a3, s3, d2, w3, M3, T3, x3, A3, j3, D3 = void 0, O3 = true;
                if (k2) {
                  for (r3 = 0; r3 < I2; r3++) if ((o3 = h2[r3]).dataRange.contains(N2, e4)) {
                    D3 = o3, O3 = false, (a3 = o3.formulaCols)[e4] && ((s3 = _2[e4]).f = S, s3.g = S, s3.r = S);
                    break;
                  }
                }
                if ((d2 = _2[e4]) === S) return "continue";
                C2 = true, w3 = t3.J_(N2, e4, true), T3 = void 0, (T3 = d2).v !== S ? (x3 = T3.v, M3 = "number" == typeof x3 ? i3.sharedStrings.getText(x3) : x3 && (x3._calcError || x3._error && !F(x3._code) || x3.error && !F(x3.code)) ? m && u.CalcError.parse(x3._calcError || x3._error || x3.error) : x3) : M3 = T3.b !== S ? !!T3.b : T3.o !== S ? "/OADate(" + T3.o + ")/" : T3.n, F(T3.f) && p2 && q(p2.data, N2, e4, w3.value, M3), F(T3.d) || (w3.fileGUID = T3.d), F(M3) || ("object" == typeof M3 && Object.keys(M3).length > 0 && ("SparklineExValue" === M3.typeName && "IMAGE" === M3.name ? M3.toString = function() {
                  return M3.value.altText + "";
                } : (M3.richText && (M3 = G(M3)), M3 = kn(M3))), O3 ? w3.value = M3 : D3.data[e4][N2] = M3), A3 = w3.style, b2 || (F(T3.s) && (R2 || l2[e4]) ? T3.s = 0 : 0 !== T3.s || R2 || l2[e4] || (T3.s = S)), g2 || (j3 = void 0, b2 ? T3.t !== S ? j3 = y2.getOriginNamedStyle(T3.t) : T3.e !== S && (j3 = y2.getOriginStyle(T3.e)) : j3 = y2.getStyle(T3.s), w3.style = j3), p2 && q(p2.style, N2, e4, A3, w3.style), T3.lossless && (F(T3.lossless.bindingPath) || (q(p2.data, N2, e4, w3.bindingPath, T3.lossless.bindingPath), w3.bindingPath = T3.lossless.bindingPath), F(T3.lossless.tag) || (q(p2.tag, N2, e4, w3.tag, null === (v2 = null == T3 ? void 0 : T3.lossless) || void 0 === v2 ? void 0 : v2.tag), w3.tag = T3.lossless.tag), F(T3.lossless.altText) || (w3.altText = T3.lossless.altText)), N2 > -1 && bn(w3, M3, !!T3.f || !!T3.g || !!T3.si, w3.style, c2, null == n3 ? void 0 : n3.parent, f2);
              }, P2 = 0; P2 < D2; P2++) L2(P2);
              if (N2++, !s2 && M2 && M2()) break;
              if (Z2 && (U2 = /* @__PURE__ */ new Date(), !s2 && U2 - x2 > T2)) break;
            } else N2++;
            if (C2) {
              if (0 !== o2 && n3.parent.getActiveSheet() === n3) {
                for (V2 = o2; V2 < N2; V2++) if (n3.dw(1).findRow(V2)) {
                  n3.repaint();
                  break;
                }
              }
              r2.loadStatus && (r2.loadStatus.valuesLoad += N2 - o2), !s2 && Z2 && (z2 = r2.loadStatus.valuesLoad / r2.loadStatus.total, Y2 = +(r2.fullRecalc ? 0.3 * z2 + 0.2 : 0.4 * z2 + 0.2).toFixed(5), r2.incrementLoadTask.progress && r2.incrementLoadTask.progress({ progress: Y2, sheetName: n3.name(), step: B.I5(ct().STEP.loadSheetData, [n3.name()]) }));
            }
            N2 < j2 ? r2.incrementLoadTask.pushTask(Qt, [t3, n3, e3, i3, r2, N2, a2, S, c2, f2, l2, h2]) : s2 ? a2() : a2 && r2.incrementLoadTask.pushTask(a2, []);
          } else a2 && setTimeout(a2, 0);
        }
        function Kt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          t3 >= 0 && n3 >= 0 && (i3[t3] || (i3[t3] = {}), a2 = (o2 = i3[t3])[n3], o2[n3] = e3, u2 = null == e3 ? void 0 : e3.value, s2 = null == e3 ? void 0 : e3.expr, r2 && (q(r2, t3, n3, a2 && a2.value, u2), q(r2, t3, n3, a2 && a2.expr, s2)));
        }
        function Jt(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2;
          e3 >= 0 && i3 >= 0 ? (o2[e3] || (o2[e3] = {}), f2 = (c2 = o2[e3])[i3], c2[i3] = r2, l2 = r2 && r2.value, s2.a8 && (l2 && "SparklineExValue" === l2.typeName && (l2 = C), q(s2.a8.data, e3, i3, f2 && f2.value, l2), q(s2.a8.tag, e3, i3, f2 && f2.tag, r2 && r2.tag), q(s2.a8.style, e3, i3, f2 && f2.style, r2 && r2.style))) : e3 >= 0 && -1 === i3 && t3 >= 0 && -1 === n3 ? a2[e3] = r2 : i3 >= 0 && -1 === e3 && n3 >= 0 && -1 === t3 && (u2[i3] = r2);
        }
        function Xt(t3, n3, e3, i3, r2, o2, a2) {
          if (e3 >= 0 && i3 >= 0) {
            o2[e3] || (o2[e3] = {}), o2[e3].rs = "e";
            var u2 = o2[e3];
            u2.originalItem = a2, u2[i3] = r2;
          }
        }
        function qt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = {};
          for (i3 in t3) t3[i3] && (r2 = A(i3), !isNaN(r2) && r2 >= n3 && (o2 = t3[r2], a2 = t3[r2 + e3], u2 = s2[r2], a2 && (s2[r2 + e3] = a2), u2 ? t3[r2 + e3] = u2 : (delete t3[r2], t3[r2 + e3] = o2)));
        }
        function $t(t3, n3, e3) {
          var i3, r2, o2;
          for (i3 in t3) t3[i3] && (r2 = Math.floor(i3), !isNaN(r2) && r2 >= n3 && (o2 = t3[r2], delete t3[r2], r2 >= n3 + e3 && (t3[r2 - e3] = o2)));
        }
        function tn(t3, n3, e3, i3, r2) {
          var o2 = t3.op(), a2 = t3.Uw(), u2 = n3.Uw(), s2;
          o2 && a2 && u2 && r2 && (s2 = o2.unparse(u2, r2, e3, i3)), n3.Ut.setDefaultValue(e3, i3, s2, C, l.DefaultChangeValueType.Expression, C, true);
        }
        function nn(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2;
          r2 !== i3 && (a2 = void 0, u2 = void 0, o2 && "add-delete-row-col-formula-adjust" === o2.triggerSource && o2.changedSource === o2.formulaSource && (s2 = o2.index, c2 = o2.count, f2 = o2.isRow, (l2 = o2.isAdd) ? f2 ? n3 >= s2 && (a2 = n3 - c2) : e3 >= s2 && (u2 = e3 - c2) : f2 ? n3 >= s2 && (a2 = n3 + c2) : e3 >= s2 && (u2 = e3 + c2)), t3.OHr(n3, e3, i3, r2, a2, u2, o2));
        }
        function en(t3, n3, e3, i3, o2, a2, c2, f2, l2) {
          var h2, d2, v2, p2, g2, b2, y2, w2, M2, x2, A2, I2, k2, N2, j2;
          t3 && (h2 = t3.value, d2 = t3.formula, h2 !== S && (h2 !== C && (h2._calcError || h2._error && !F(h2._code)) && (v2 = m && u.CalcError.parse(h2._calcError || h2._error)) !== S && (h2 = v2 = G(v2)), F(d2) && c2 && q(c2.data, i3, o2, n3.value, h2), !F(h2) && "object" == typeof h2 && Object.keys(h2).length > 0 && (h2.richText && h2.converted && (h2 = G(h2)), h2 = kn(h2)), n3.value = h2), p2 = t3.style, g2 = a2 && a2.sheet, p2 !== S && a2 && !a2.ignoreStyle && (b2 = C, y2 = n3.style, typeof p2 === T ? (n3.style = p2, b2 = g2 && (g2.i3(p2, false) || g2.parent && g2.parent.i3(p2, false))) : p2 && ((b2 = new r.Style()).fromJSON(p2, e3), b2.name = S, n3.style = b2, "object" == typeof p2 && p2.formatter && "string" == typeof p2.formatter && (null == g2 ? void 0 : g2.parent) && g2.SL(i3, o2, p2.formatter)), c2 && q(c2.style, i3, o2, y2, n3.style), b2 && b2.validator && a2.setValidator && a2.setValidator(i3, o2, b2.validator)), (w2 = t3.visualState) !== S && (n3.visualState = w2), (M2 = t3.bindingPath) !== S && (q(c2.data, i3, o2, n3.bindingPath, M2), n3.bindingPath = M2), (x2 = t3.tag) !== S && x2 !== C && (typeof (A2 = x2.typeName) === T && (I2 = s.getTypeFromString(A2)) && (x2 = new I2()).fromJSON && x2.fromJSON(t3.tag), c2 && !F(x2) && q(c2.tag, i3, o2, n3.tag, x2), n3.tag = x2), (k2 = t3.altText) !== S && k2 !== C && (n3.altText = k2), (N2 = t3.hyperlink) !== S && (n3.hyperlink = V(N2)), i3 > -1 && o2 > -1 && bn(n3, h2, !!d2, p2, f2, S, l2), (j2 = t3.fileGUID) !== S && (n3.fileGUID = j2));
        }
        function rn(t3, n3, e3) {
          var i3 = t3.P8 > 0 ? [["selectionModel"], S] : S;
          t3.selectionModel.setProperty(n3, e3, i3), i3 && t3.G8.push(i3);
        }
        function on(t3) {
          return t3[0].slice(0, 3);
        }
        function an(t3) {
          return t3[0].slice(3).filter((function(t4) {
            return "style" !== t4;
          })).join("-");
        }
        function un(t3, n3) {
          return t3.find((function(t4) {
            if (t4.path.length !== n3.length) return false;
            for (var e3 = 0; e3 <= n3.length; e3++) if (t4.path[e3] !== n3[e3]) return false;
            return true;
          }));
        }
        function sn(t3, n3, e3) {
          if (t3) {
            var i3 = t3.caches;
            return i3 || (t3.caches = i3 = a.createMap(), t3.forEach((function(t4) {
              t4[3] || i3.set(t4[1] + "," + t4[2], 1);
            }))), i3.has(n3 + "," + e3);
          }
          return false;
        }
        function cn(t3, n3, e3, i3) {
          var r2 = t3[n3];
          r2 && delete r2[e3], i3 && y(r2) && delete t3[n3];
        }
        function fn(t3) {
          if (t3) {
            var n3 = t3.filter((function(t4) {
              return !t4.isAutoMerge;
            }));
            return 0 === n3.length ? S : n3;
          }
          return t3;
        }
        function ln(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
          if (n3[0] !== et) {
            if ("selectionModel" !== (o2 = (r2 = -1 !== (i3 = n3.indexOf("style")) && !Array.isArray(n3[0])) ? n3.slice(0, i3 + 1) : n3[0])[0]) {
              for (a2 = t3, u2 = 0; u2 < o2.length - 1; u2++) (s2 = o2[u2]) === N ? a2 = a2.B8 : (a2[s2] || (a2[s2] = {}), a2 = a2[s2]);
              h2 = o2[(f2 = o2.length) - 1], d2 = t3.sheetModels[3], v2 = t3.defaultValueModels[3], p2 = d2.a8, g2 = a2[o2[u2]], r2 ? dn(n3, a2, e3) : (m2 = o2[0], b2 = n3[1], y2 = null, n3.length > 2 && (y2 = n3[2]), y2 = e3 ? y2 : b2, m2 === $ || "colInfos" === m2 || "rowInfos" === m2 || m2 === tt ? e3 && y2 !== a2[o2[u2]] ? a2[o2[u2]] = y2 : e3 || ("bindingPath" === o2[u2] && t3.Mf.setTemplateCell ? (w2 = { row: o2[u2 - 2], col: o2[u2 - 1], value: b2 }, Tt.et(t3, "undoBindingPath", w2)) : a2[o2[u2]] = b2) : "spanModels" === m2 ? (a2.cache = {}, a2.spans = [], y2.forEach((function(t4) {
                a2.add((0, c.Ec)(t4.row, t4.col, t4.rowCount, t4.colCount));
              }))) : (a2[o2[u2]] = n3[1], M2 = void 0, C2 = o2[f2 - 2], S2 = o2[1], "size" === h2 ? M2 = o2[0] === _ ? l.AxisInfoChangeType.setRowHeight : l.AxisInfoChangeType.setColumnWidth : "visible" === h2 && (M2 = o2[0] === _ ? l.AxisInfoChangeType.setRowVisible : l.AxisInfoChangeType.setColumnVisible), F(M2) || t3.L8({ type: M2, index: C2, sheetArea: S2 }))), "style" === h2 ? ((T2 = p2 && p2.style) && q(T2, o2[f2 - 3], o2[f2 - 2], g2, a2[o2[u2]]), a2 && (g2 && g2.quotePrefix || a2.style && a2.style.quotePrefix) && (g2 && g2.quotePrefix) !== (a2.style && a2.style.quotePrefix) && bn(a2, a2.value, !!a2.formula, a2.style, t3.F8)) : "value" === h2 ? ((x2 = p2 && p2.data) && q(x2, o2[f2 - 3], o2[f2 - 2], g2, a2[o2[u2]]), a2 && g2 !== a2.value && bn(a2, a2.value, !!a2.formula, a2.style, t3.F8)) : "tag" === h2 ? (A2 = p2 && p2.tag) && q(A2, o2[f2 - 3], o2[f2 - 2], g2, a2 && a2[o2[u2]]) : h2 === nt && (I2 = v2.Vve) && q(I2, o2[f2 - 3], o2[f2 - 2], g2, a2[o2[u2]]);
            }
          } else hn(n3, (function(n4) {
            ln(t3, n4, e3);
          }));
        }
        function hn(t3, n3) {
          var e3, i3, r2, o2 = t3[0] === et;
          o2 && (e3 = t3[1], i3 = t3[2], r2 = function(t4, e4) {
            "number" == typeof e4 ? t4.push(i3[e4]) : (t4.push(e4.old), t4.push(e4.new)), n3(t4);
          }, e3.forEach((function(t4) {
            var n4 = t4.path, e4 = t4.change, i4 = Object.keys(e4);
            i4.forEach((function(t5) {
              var i5, o3 = jt(jt(jt([], n4, true), t5.split("-").map((function(t6) {
                return +t6;
              })), true), ["style"], false), a2 = e4[t5];
              if (Array.isArray(a2)) for (i5 = a2.length - 1; i5 >= 0; i5--) r2(jt([], o3, true), a2[i5]);
              else r2(o3, a2);
            }));
          })));
        }
        function dn(t3, n3, e3) {
          var i3, r2, o2, a2 = t3.indexOf("style");
          t3.length - a2 === 3 ? n3.style = e3 ? t3[a2 + 2] : t3[a2 + 1] : (i3 = t3[a2 + 1], r2 = Object.keys(i3), (o2 = n3.style) && r2.forEach((function(t4) {
            var n4 = e3 ? i3[t4].new : i3[t4].old;
            o2[t4] !== n4 && (o2[t4] = n4);
          })));
        }
        function vn(t3, n3) {
          return !n3 && !F(t3) && "string" == typeof t3;
        }
        function pn(t3, n3, e3, i3) {
          if (n3 && n3.quotePrefix) return false;
          if (e3 && e3[t3]) return true;
          if (-1 !== xt.indexOf(t3[0]) && t3.length > 1) {
            var r2 = { value: t3, isInvalid: false, allowDynamicArray: i3 };
            if (Tt.et(S, "isInvalidFormula", r2), r2.isInvalid) return e3 && (e3[t3] = true), true;
          }
        }
        function gn(t3) {
          F(t3.cellState) || (t3.cellState &= ~l.CellStatesType.invalidFormula);
        }
        function mn(t3) {
          F(t3.cellState) && (t3.cellState = 0), t3.cellState |= l.CellStatesType.invalidFormula;
        }
        function bn(t3, n3, e3, i3, r2, o2, a2) {
          F(t3) || (vn(n3, e3) ? (o2 && i3 && "string" == typeof i3 && (i3 = wn(i3, o2)), o2 && F(a2) && (a2 = o2.options.allowDynamicArray), pn(n3, i3, r2, a2) ? mn(t3) : gn(t3)) : gn(t3));
        }
        function yn(t3, n3, e3) {
          if (!F(t3) || !F(n3)) return "string" == typeof t3 && (t3 = wn(t3, e3)), "string" == typeof n3 && (n3 = wn(n3, e3)), (t3 && t3.quotePrefix) !== (n3 && n3.quotePrefix);
        }
        function wn(t3, n3) {
          var e3, i3, r2, o2, a2;
          if (n3) {
            if (e3 = n3.getNamedStyle(t3)) return e3;
            for (i3 = 0, r2 = n3.sheets; i3 < r2.length; i3++) if (a2 = (o2 = r2[i3]).getNamedStyle(t3)) return a2;
            return C;
          }
        }
        function Mn(t3, n3) {
          var e3, i3, o2;
          if ("string" == typeof t3 && "/OADate" === t3.substring(0, 7) && (!n3.formatter || "General" === n3.formatter)) {
            if (F(n3) && (n3 = new r.Style()), n3._autoFormatter) return n3.formatter = n3._autoFormatter.formatCached, n3;
            e3 = t3.indexOf("("), i3 = t3.indexOf(")"), -1 !== e3 && -1 !== i3 && (o2 = ut.Fe(ut.culture()).DateTimeFormat, t3.includes(".") ? n3.formatter = o2.defaultDatePattern : n3.formatter = o2.shortDatePattern);
          }
          return n3;
        }
        function Cn(t3, n3) {
          return t3.renamedStyles && t3.renamedStyles[n3] && (n3 = t3.renamedStyles[n3]), n3;
        }
        function Sn(t3, n3) {
          var e3, i3, o2;
          return "object" == typeof n3 ? n3 : "string" == typeof n3 ? (e3 = n3, c.BUILT_IN_STYLE_REGEX.test(n3) && (i3 = n3.indexOf(At), e3 = Cn(t3, n3.substring(i3))), (o2 = t3.u8(e3)) || new r.Style()) : void 0;
        }
        function Tn(t3, n3, e3) {
          e3 && xn(n3, e3 = Sn(t3, e3));
        }
        function xn(t3, n3) {
          false !== n3.applyFill && (0, r.composePatternFillAndBackColor)(t3, n3), false !== n3.applyFont && (t3.foreColor === S && n3.foreColor !== S && (t3.foreColor = n3.foreColor), t3.themeFont === S && t3.font === S && (t3.themeFont = n3.themeFont), t3._fontStyle === S && (t3._fontStyle = n3._fontStyle), t3._fontWeight === S && (t3._fontWeight = n3._fontWeight), t3._fontSize === S && (t3._fontSize = n3._fontSize), t3._fontFamily === S && (t3._fontFamily = n3._fontFamily), t3._fontVariant === S && (t3._fontVariant = n3._fontVariant), t3._fontStretch === S && (t3._fontStretch = n3._fontStretch), t3._lineHeight === S && (t3._lineHeight = n3._lineHeight), t3._font = K(t3._fontStyle, t3._fontWeight, t3._fontSize, t3._fontFamily, t3._fontVariant, t3._fontStretch, t3._lineHeight), t3.textDecoration === S && n3.textDecoration !== S && (t3.textDecoration = n3.textDecoration)), false !== n3.applyAlignment && (t3.hAlign === S && n3.hAlign !== S && (t3.hAlign = n3.hAlign), t3.vAlign === S && n3.vAlign !== S && (t3.vAlign = n3.vAlign), t3.textIndent === S && n3.textIndent !== S && (t3.textIndent = n3.textIndent), t3.wordWrap === S && n3.wordWrap !== S && (t3.wordWrap = n3.wordWrap), t3.isVerticalText === S && n3.isVerticalText !== S && (t3.isVerticalText = n3.isVerticalText), t3.shrinkToFit === S && n3.shrinkToFit !== S && (t3.shrinkToFit = n3.shrinkToFit), t3.textOrientation === S && n3.textOrientation !== S && (t3.textOrientation = n3.textOrientation), t3.textDirection === S && n3.textDirection !== S && (t3.textDirection = n3.textDirection)), t3.formatter === S && n3.formatter !== S && false !== n3.applyNumberFormat && (t3.formatter = n3.formatter), false !== n3.applyBorder && (t3.borderLeft === S && n3.borderLeft !== S && (t3.borderLeft = An(n3.borderLeft)), t3.borderTop === S && n3.borderTop !== S && (t3.borderTop = An(n3.borderTop)), t3.borderRight === S && n3.borderRight !== S && (t3.borderRight = An(n3.borderRight)), t3.borderBottom === S && n3.borderBottom !== S && (t3.borderBottom = An(n3.borderBottom)), t3.diagonalUp === S && n3.diagonalUp !== S && (t3.diagonalUp = An(n3.diagonalUp)), t3.diagonalDown === S && n3.diagonalDown !== S && (t3.diagonalDown = An(n3.diagonalDown))), t3.locked === S && false !== n3.applyProtection && (t3.locked = n3.locked), t3.hidden === S && false !== n3.applyProtection && (t3.hidden = n3.hidden), t3.quotePrefix === S && n3.quotePrefix !== S && (t3.quotePrefix = n3.quotePrefix);
        }
        function An(t3) {
          if (!t3) return t3;
          var n3 = {};
          return F(t3.color) || (n3.color = t3.color), F(t3.style) || (n3.style = t3.style), F(t3.level) || (n3.level = t3.level), n3;
        }
        function In(t3) {
          var n3, e3, i3 = V(t3);
          for (n3 in i3) i3.hasOwnProperty(n3) && (e3 = i3[n3], !F(e3) && "object" == typeof e3 && Object.keys(e3).length > 0 ? In(e3) : o.Common.ct.W0(e3) && (i3[n3] = o.Common.ct.Q0(e3)));
          return i3;
        }
        function kn(t3) {
          var n3, e3, i3 = V(t3);
          for (n3 in i3) i3.hasOwnProperty(n3) && (e3 = i3[n3], !F(e3) && "object" == typeof e3 && Object.keys(e3).length > 0 ? kn(e3) : typeof e3 === T && "/" === e3.charAt(0) && (i3[n3] = c.util.cge(e3)));
          return i3;
        }
        function Nn(t3, e3) {
          var i3, r2;
          if (void 0 === e3 && (e3 = false), e3) {
            if (i3 = {}, t3.rowHeight !== Mt && (i3.rowHeight = t3.rowHeight), t3.colWidth !== Ct && (i3.colWidth = t3.colWidth), t3.rowHeaderColWidth !== St && (i3.rowHeaderColWidth = t3.rowHeaderColWidth), t3.colHeaderRowHeight !== n2.DEFAULT_COL_HEADER_ROW_HEIGHT && (i3.colHeaderRowHeight = t3.colHeaderRowHeight), Object.keys(i3).length > 0) return i3;
          } else if (!(r2 = (i3 = { colHeaderRowHeight: t3.colHeaderRowHeight, colWidth: t3.colWidth, rowHeaderColWidth: t3.rowHeaderColWidth, rowHeight: t3.rowHeight, _isExcelDefaultColumnWidth: t3._isExcelDefaultColumnWidth }).rowHeight === Mt && i3.colWidth === Ct && i3.rowHeaderColWidth === St && i3.colHeaderRowHeight === n2.DEFAULT_COL_HEADER_ROW_HEIGHT)) return i3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.M_r = n2.C_r = n2.LUr = n2.Ngr = n2.Y8 = n2.DEFAULT_COL_HEADER_ROW_HEIGHT = n2.ksr = n2.Nsr = n2.IHr = n2.copyDefaultFormula = n2.W8 = n2.h9 = n2.Q8 = n2.K8 = n2.getOADateNumber = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("./dist/core/worksheet/style.js"), o = e2("Common"), a = e2("CalcEngine"), u = e2("CalcEngine"), s = e2("./dist/core/util/common.js"), c = e2("./dist/core/util/common.js"), f = e2("./dist/core/util/domUtil.js"), l = e2("./dist/core/core.enum.js"), h = e2("./dist/core/celltype/celltype.ns.js"), d = e2("./dist/core/excel-io-util/common.js"), v = e2("./dist/core/excel-io-util/excel-types.js"), p = e2("./dist/core/worksheet/stylehelper.js"), g = e2("./dist/core/util/event-notify.js"), m = !!a, b = f.GC$.each, y = f.GC$.isEmptyObject, w = f.GC$.extend, M = new RegExp("^\\d*(\\.\\d+)?\\*$"), C = null, S = void 0, T = "string", x = Math.min, A = Math.floor, I = Math.max, k = Math.ceil, N = "dirtyNodes", j = "vc", D = "undo", _ = "rowInfos", O = "colInfos", E = "default_size", R = o.Common.J8, L = o.Common.X8, F = o.Common.lt.ht, B = o.Common.zf, P = c.util.wt, G = c.util.g0, U = c.util.St, H = d.Util.ko, V = o.Common.lt.tv, z = o.Common.lt.q8, Y = 200, Z = 20, W = "bindingPath", Q = "tag", K = p.W.F2e, J = c.UsedRangeUtil.vh, X = c.UsedRangeUtil.hh, q = c.UsedRangeUtil.updateUsedRangeByData, $ = "sheetModels", tt = "defaultValueModels", nt = "defaultCellData", et = "style-changes", it = ["borderLeft", "borderTop", "borderRight", "borderBottom", "borderHorizontal", "borderVertical", "diagonalDown", "diagonalUp"], rt = ["cellButtons", "dropDowns", "mask", "decoration"], ot = ["formatter", "_autoFormatter"], at = ["tag", "altText", "hyperlinkInfo", "bindingPath"], ut = o.Common.CultureManager, st = new o.Common.ResourceManager(i2.SR, "Sheets"), ct = st.getResource.bind(st), n2.getOADateNumber = Ut, ft = (function() {
          function t3(t4) {
            this.b_r = new g.EventNotifier(), Ft(this, "spans", [], Bt), this.x8 = -1, this.I8 = -1, this.cache = {}, this.suspendUpdatingCache = false, t4 && this.b_r.addListener(t4);
          }
          return t3.prototype.find = function(t4, n3) {
            return this.cache[t4 + "_" + n3] || C;
          }, t3.prototype.get = function(t4, n3) {
            return this.find(t4, n3) || (0, c.Ec)(t4, n3, 1, 1);
          }, t3.prototype.remove = function(t4, n3) {
            var e3 = this.spans.indexOf(t4);
            e3 >= 0 ? (n3 && (n3[0].push("spans"), n3[1] = [].concat(this.spans)), this.removeSpan(e3, 1), n3 && (n3[2] = [].concat(this.spans))) : n3 && (n3.length = 0);
          }, t3.prototype.removeSpan = function(t4, n3) {
            var e3 = this, i3 = this.S_r(t4, n3);
            i3.forEach((function(t5) {
              t5.isAutoMerge || e3.b_r.notify({ type: "removeSpan", row: t5.row, col: t5.col, oldValue: { oldSpan: t5 } });
            }));
          }, t3.prototype.S_r = function(t4, n3) {
            var e3, i3;
            for (e3 = 0; e3 < n3 && (i3 = this.spans[t4 + e3]); e3++) Gt(this, i3);
            return this.spans.splice(t4, n3);
          }, t3.prototype.x_r = function(t4, n3) {
            var e3, i3 = this.spans;
            for (e3 = 0; e3 < i3.length; e3++) if (i3[e3].row === t4 && i3[e3].col === n3) return e3;
            return -1;
          }, t3.prototype.update = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.spans[t4];
            o2.T_r(t4, n3), (r2 = null === (i3 = null == e3 ? void 0 : e3.isTriggerChanged) || void 0 === i3 || i3) && o2.b_r.notify({ type: "updateSpan", oldRange: a2, newRange: n3, useDelta: !(null == e3 ? void 0 : e3.isMove) });
          }, t3.prototype.T_r = function(t4, n3) {
            var e3 = this;
            Gt(this, this.spans[t4]), e3.spans[t4] = n3, Pt(e3, n3);
          }, t3.prototype.add = function(t4, n3) {
            n3 && (n3[0].push("spans"), n3[1] = [].concat(this.spans)), this._Qt(t4), this.b_r.notify({ type: "addSpan", value: t4 }), n3 && (n3[2] = [].concat(this.spans));
          }, t3.prototype._Qt = function(t4) {
            Pt(this, t4), this.spans.push(t4);
          }, t3.prototype.tE = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = this, k2 = false;
            for (a2 && (h2 = [].concat(I2.spans)), d2 = I2.spans.length, p2 = [], v2 = 0; v2 < d2; v2++) m2 = (g2 = I2.spans[v2]).col, y2 = (b2 = g2.row) - t4, w2 = m2 - n3, M2 = Rt(g2), C2 = Lt(g2), S2 = r2, T2 = o2, u2 && (M2 = (s2 = [C2, M2])[0], C2 = s2[1], y2 = (f2 = [w2, y2])[0], w2 = f2[1], S2 = (l2 = [T2, S2])[0], T2 = l2[1]), (-1 === t4 || t4 <= b2 && b2 < t4 + S2) && (-1 === n3 || n3 <= m2 && m2 < n3 + T2) ? (x2 = -1 === t4 ? b2 : e3 + y2, A2 = -1 === n3 ? m2 : i3 + w2, p2.push((0, c.Ec)(x2, A2, M2, C2)), k2 = true) : (-1 === t4 || e3 <= b2 && b2 < e3 + r2) && (-1 === n3 || i3 <= m2 && m2 < i3 + o2) && (I2.removeSpan(v2, 1), v2--, d2--, k2 = true);
            for (v2 = 0; v2 < p2.length; v2++) {
              if (g2 = p2[v2], !I2.nE(I2.spans, 0, I2.spans.length, g2)) throw new Error(ct().Exp_OverlappingSpans);
              I2.add(g2);
            }
            a2 && (k2 ? (a2[0].push("spans"), a2[1] = h2, a2[2] = [].concat(I2.spans)) : a2.length = 0);
          }, t3.prototype.nE = function(t4, n3, e3, i3) {
            for (var r2 = n3; r2 < e3 && r2 < t4.length; r2++) if (t4[r2].intersect(i3.row, i3.col, Rt(i3), Lt(i3))) return false;
            return true;
          }, t3.prototype.getSpans = function(t4) {
            var n3, e3, i3, r2 = this.spans;
            if (!t4) return [].concat(r2);
            for (n3 = [], e3 = 0; e3 < r2.length; e3++) (i3 = r2[e3]).intersect(t4.row, t4.col, Rt(t4), Lt(t4)) && n3.push(i3);
            return n3;
          }, t3.prototype.GT = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this.spans;
            for (r2 = 0; r2 < a2.length; r2++) if ((o2 = a2[r2]).intersect(t4, n3, e3, i3) && (-1 !== t4 && (o2.row < t4 || o2.row + Rt(o2) > t4 + e3) || -1 !== n3 && (o2.col < n3 || o2.col + Lt(o2) > n3 + i3))) return true;
            return false;
          }, t3.prototype.eE = function(t4, n3, e3, i3) {
            var r2, o2, a2 = false, u2 = this.spans;
            for (r2 = 0, o2 = u2.length; r2 < o2; r2++) {
              if (t4 >= 0 || n3 >= 0) for (; r2 < o2 && !u2[r2].intersect(t4, n3, e3, i3); ) r2++;
              if (r2 < o2) {
                a2 = true;
                break;
              }
            }
            return a2;
          }, t3.prototype.d5 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2 = this.spans, l2 = false;
            for (r2 && (o2 = [].concat(f2)), a2 = 0; a2 < f2.length; a2++) s2 = (u2 = f2[a2]).row, c2 = u2.col, (-1 === t4 || t4 <= s2 && s2 < t4 + e3) && (-1 === n3 || n3 <= c2 && c2 < n3 + i3) && (this.removeSpan(a2, 1), a2--, l2 = true);
            r2 && (l2 ? (r2[0].push("spans"), r2[1] = o2, r2[2] = [].concat(this.spans)) : r2.length = 0);
          }, t3.prototype.iE = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = this, T2 = false;
            for (a2 && (u2 = [].concat(S2.spans)), s2 = [], f2 = [], l2 = S2.spans.length, m2 = 0, b2 = {}, y2 = [], p2 = 0; p2 < l2; p2++) d2 = (h2 = S2.spans[p2]).row, v2 = h2.col, (-1 === t4 || t4 <= d2 && d2 < t4 + r2) && (-1 === n3 || n3 <= v2 && v2 < n3 + o2) ? (g2 = (0, c.Ec)(-1 === t4 ? d2 : e3 + d2 - t4, -1 === n3 ? v2 : i3 + v2 - n3, Rt(h2), Lt(h2)), f2.push(g2), T2 = true, b2[m2] = { range: g2 }, m2++) : (-1 === t4 || e3 <= d2 && d2 < e3 + r2) && (-1 === n3 || i3 <= v2 && v2 < i3 + o2) ? (T2 = true, y2.push(p2)) : (s2.push(h2), m2++);
            if (T2) {
              if (f2.length > 0) for (p2 = 0; p2 < f2.length; p2++) {
                if (g2 = f2[p2], !S2.nE(s2, 0, s2.length, g2)) throw new Error(ct().Exp_OverlappingSpans);
                s2.push(g2);
              }
              for (y2.reverse(), w2 = 0, M2 = y2; w2 < M2.length; w2++) C2 = M2[w2], S2.removeSpan(C2, 1);
              S2.spans.forEach((function(t5, n4) {
                b2[n4] && S2.update(n4, b2[n4].range, { isMove: true });
              })), a2 && (a2[0].push("spans"), a2[1] = u2, a2[2] = [].concat(S2.spans));
            } else a2 && (a2.length = 0);
          }, t3.prototype.rE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2 = this, v2 = d2.spans;
            for (d2.suspendUpdatingCache = true, i3 = false, e3 && (r2 = [].concat(v2)), o2 = v2.length, a2 = 0; a2 < o2; a2++) s2 = (u2 = v2[a2]).row, f2 = u2.col, l2 = Rt(u2), h2 = Lt(u2), s2 >= t4 ? (d2.update(a2, (0, c.Ec)(s2 + n3, f2, l2, h2), { isTriggerChanged: false }), i3 = true) : t4 < s2 + l2 && (d2.update(a2, (0, c.Ec)(s2, f2, l2 + n3, h2), { isTriggerChanged: true }), i3 = true);
            d2.suspendUpdatingCache = false, i3 && Bt(d2, v2), e3 && (i3 ? (e3[0].push("spans"), e3[1] = r2, e3[2] = [].concat(d2.spans)) : e3.length = 0);
          }, t3.prototype.kHr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, f2, l2 = this, h2 = l2.spans;
            for (l2.suspendUpdatingCache = true, e3 = false, i3 = h2.length, r2 = 0; r2 < i3; r2++) a2 = (o2 = h2[r2]).row, u2 = o2.col, s2 = Rt(o2), f2 = Lt(o2), a2 >= t4 && (l2.update(r2, (0, c.Ec)(a2 + n3, u2, s2, f2), { isTriggerChanged: false }), e3 = true);
            l2.suspendUpdatingCache = false, e3 && Bt(l2, h2);
          }, t3.prototype.oE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2 = this, v2 = d2.spans;
            for (d2.suspendUpdatingCache = true, i3 = false, e3 && (r2 = [].concat(v2)), o2 = v2.length, a2 = 0; a2 < o2; a2++) s2 = (u2 = v2[a2]).row, f2 = u2.col, l2 = Rt(u2), h2 = Lt(u2), f2 >= t4 ? (d2.update(a2, (0, c.Ec)(s2, f2 + n3, l2, h2), { isTriggerChanged: false }), i3 = true) : t4 < f2 + h2 && (d2.update(a2, (0, c.Ec)(s2, f2, l2, h2 + n3), { isTriggerChanged: true }), i3 = true);
            d2.suspendUpdatingCache = false, i3 && Bt(d2, v2), e3 && (i3 ? (e3[0].push("spans"), e3[1] = r2, e3[2] = [].concat(d2.spans)) : e3.length = 0);
          }, t3.prototype.NHr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, f2, l2 = this, h2 = l2.spans;
            for (l2.suspendUpdatingCache = true, e3 = false, i3 = h2.length, r2 = 0; r2 < i3; r2++) a2 = (o2 = h2[r2]).row, u2 = o2.col, s2 = Rt(o2), f2 = Lt(o2), u2 >= t4 && (l2.update(r2, (0, c.Ec)(a2, u2 + n3, s2, f2), { isTriggerChanged: false }), e3 = true);
            l2.suspendUpdatingCache = false, e3 && Bt(l2, h2);
          }, t3.prototype.aE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.spans;
            for (m2.suspendUpdatingCache = true, i3 = false, e3 && (r2 = [].concat(b2)), o2 = [], a2 = b2.length, u2 = 0; u2 < a2; u2++) f2 = (s2 = b2[u2]).row, l2 = s2.col, h2 = Rt(s2), d2 = Lt(s2), f2 >= t4 ? f2 < t4 + n3 ? f2 + h2 <= t4 + n3 ? (o2.push(u2), i3 = true) : (1 === (v2 = f2 + h2 - (t4 + n3)) && 1 === d2 ? o2.push(u2) : (m2.b_r.notify({ type: "updateSpan", oldRange: m2.spans[u2], newRange: (0, c.Ec)(t4 + n3, l2, v2, d2), useDelta: true }), m2.update(u2, (0, c.Ec)(t4, l2, v2, d2), { isTriggerChanged: false })), i3 = true) : (m2.update(u2, (0, c.Ec)(f2 - n3, l2, h2, d2), { isTriggerChanged: false }), i3 = true) : t4 < f2 + h2 && (p2 = (0, c.Ec)(f2, l2, h2 - x(f2 + h2 - t4, n3), d2), m2.update(u2, p2, { isTriggerChanged: true }), 1 === p2.rowCount && 1 === p2.colCount && o2.push(u2), i3 = true);
            for (u2 = o2.length - 1; u2 >= 0; u2--) g2 = o2[u2], m2.removeSpan(g2, 1);
            m2.suspendUpdatingCache = false, i3 && Bt(m2, b2), e3 && (i3 ? (e3[0].push("spans"), e3[1] = r2, e3[2] = [].concat(m2.spans)) : e3.length = 0);
          }, t3.prototype.jHr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, f2, l2 = this, h2 = l2.spans;
            for (l2.suspendUpdatingCache = true, e3 = false, i3 = h2.length, r2 = 0; r2 < i3; r2++) a2 = (o2 = h2[r2]).row, u2 = o2.col, s2 = Rt(o2), f2 = Lt(o2), a2 >= t4 + n3 && (l2.update(r2, (0, c.Ec)(a2 - n3, u2, s2, f2), { isTriggerChanged: false }), e3 = true);
            l2.suspendUpdatingCache = false, e3 && Bt(l2, h2);
          }, t3.prototype.uE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.spans;
            for (m2.suspendUpdatingCache = true, i3 = false, e3 && (r2 = [].concat(b2)), o2 = [], a2 = b2.length, u2 = 0; u2 < a2; u2++) f2 = (s2 = b2[u2]).row, l2 = s2.col, h2 = Rt(s2), d2 = Lt(s2), l2 >= t4 ? l2 < t4 + n3 ? l2 + d2 <= t4 + n3 ? (o2.push(u2), i3 = true) : (1 === (v2 = l2 + d2 - (t4 + n3)) && 1 === h2 ? o2.push(u2) : (m2.b_r.notify({ type: "updateSpan", oldRange: m2.spans[u2], newRange: (0, c.Ec)(f2, t4 + n3, h2, v2), useDelta: true }), m2.update(u2, (0, c.Ec)(f2, t4, h2, v2), { isTriggerChanged: false })), i3 = true) : (m2.update(u2, (0, c.Ec)(f2, l2 - n3, h2, d2), { isTriggerChanged: false }), i3 = true) : t4 < l2 + d2 && (p2 = (0, c.Ec)(f2, l2, h2, d2 - x(l2 + d2 - t4, n3)), m2.update(u2, p2, { isTriggerChanged: true }), 1 === p2.rowCount && 1 === p2.colCount && o2.push(u2), i3 = true);
            for (u2 = o2.length - 1; u2 >= 0; u2--) g2 = o2[u2], m2.removeSpan(g2, 1);
            m2.suspendUpdatingCache = false, i3 && Bt(m2, b2), e3 && (i3 ? (e3[0].push("spans"), e3[1] = r2, e3[2] = [].concat(m2.spans)) : e3.length = 0);
          }, t3.prototype.DHr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, f2, l2 = this, h2 = l2.spans;
            for (l2.suspendUpdatingCache = true, e3 = false, i3 = h2.length, r2 = 0; r2 < i3; r2++) a2 = (o2 = h2[r2]).row, u2 = o2.col, s2 = Rt(o2), f2 = Lt(o2), u2 >= t4 + n3 && (l2.update(r2, (0, c.Ec)(a2, u2 - n3, s2, f2), { isTriggerChanged: false }), e3 = true);
            l2.suspendUpdatingCache = false, e3 && Bt(l2, h2);
          }, t3.prototype.toJSON = function() {
            var t4 = [].concat(this.spans);
            return 0 === t4.length ? S : t4;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2;
            if (t4) for (this.spans = [], i3 = t4, r2 = 0; r2 < i3.length; r2++) a2 = Rt(o2 = i3[r2]), u2 = Lt(o2), s2 = F(n3) ? a2 : x(a2, n3), f2 = F(e3) ? u2 : x(u2, e3), this.add((0, c.Ec)(o2.row, o2.col, s2, f2));
          }, t3;
        })(), lt = (function() {
          function t3() {
            Array.apply(this, arguments);
          }
          return t3.prototype.pop = function() {
            return C;
          }, t3.prototype.push = function(t4) {
            return 0;
          }, t3.prototype.splice = function(t4, n3) {
            var e3, i3 = [];
            for (e3 = 2; e3 < arguments.length; e3++) i3[e3 - 2] = arguments[e3];
            return C;
          }, t3.prototype.slice = function(t4, n3) {
            return null;
          }, t3;
        })(), lt.prototype = [], ht = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.headingOverflowLayouts = C, n4.trailingOverflowLayouts = C, n4;
          }
          return It(n3, t3), n3.prototype.find = function(t4) {
            var n4, e3, i3 = this, r2 = i3.length, o2 = [];
            for (e3 = 0; e3 < r2; e3++) (n4 = i3[e3]).contains(t4) && o2.push(n4);
            return o2;
          }, n3;
        })(lt), n2.K8 = ht, dt = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2 = this;
            c2.column = t4, c2.startColumn = n3, c2.endColumn = e3, c2.valueWidth = i3, c2.columnWidth = r2, c2.backgroundWidth = o2, c2.backgroundLeftWidth = a2, c2.backgroundRightWidth = u2, c2.expandedWidth = s2;
          }
          return t3.prototype.contains = function(t4) {
            return t4 >= this.startColumn && t4 <= this.endColumn;
          }, t3;
        })(), n2.Q8 = dt, vt = (function() {
          function t3() {
            this.selections = [], this.selectionPolicy = 2, this.selectionUnit = 0;
          }
          return t3.prototype.getProperty = function(t4) {
            return this[t4];
          }, t3.prototype.setProperty = function(t4, n3, e3) {
            e3 && (e3[0].push(t4), e3[1] = this[t4], e3[2] = n3), this[t4] = n3;
          }, t3.prototype.clear = function(t4) {
            t4 && (t4.push(["selections", this.get()]), t4.push(["activeSelectedRangeIndex", this.activeSelectedRangeIndex])), this.selections = [], this.activeSelectedRangeIndex = -1;
          }, t3.prototype.add = function(t4, n3, e3, i3, r2, o2) {
            r2 && (r2.push(["selections", this.get()]), r2.push(["activeSelectedRangeIndex", this.activeSelectedRangeIndex]));
            var a2 = this, u2 = a2.selectionPolicy, s2 = a2.selectionUnit;
            0 === u2 ? (e3 = x(e3, 1), i3 = x(i3, 1), a2.clear()) : 1 === u2 && a2.clear(), 1 === s2 ? (n3 = -1, i3 = -1) : 2 === s2 && (t4 = -1, e3 = -1), a2.selections.push((0, c.Ec)(t4, n3, e3, i3)), false !== o2 && (a2.activeSelectedRangeIndex = a2.selections.length - 1);
          }, t3.prototype.get = function() {
            return [].concat(this.selections);
          }, t3.prototype.set = function(t4, n3) {
            n3 && (n3.push(["selections", this.get()]), n3.push(["activeSelectedRangeIndex", this.activeSelectedRangeIndex])), this.selections = t4, this.activeSelectedRangeIndex >= t4.length && (this.activeSelectedRangeIndex = 0);
          }, t3.prototype.toJSON = function() {
            var t4, n3 = this, e3 = {}, i3 = n3.selectionPolicy, r2 = n3.selectionUnit, o2 = n3.activeSelectedRangeIndex, a2 = n3.selections.length;
            for (2 !== i3 && (e3.selectionPolicy = i3), 0 !== r2 && (e3.selectionUnit = r2), 0 !== o2 && (e3.activeSelectedRangeIndex = o2), e3.length = a2, t4 = 0; t4 < a2; t4++) e3[t4] = n3.selections[t4];
            return y(e3) ? S : e3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2 = n3 || Y, d2 = e3 || Z;
            if (t4) {
              for ((o2 = this).clear(), a2 = t4.selectionPolicy, u2 = t4.selectionUnit, s2 = t4.length, F(s2) && (s2 = 1), f2 = 0; f2 < s2; f2++) l2 = t4[f2], i3 = x(l2 ? Rt(l2) : 1, h2), r2 = x(l2 ? Lt(l2) : 1, d2), o2.selections.push((0, c.Ec)(l2 ? l2.row : 0, l2 ? l2.col : 0, i3, r2));
              o2.activeSelectedRangeIndex = t4.activeSelectedRangeIndex || 0, F(a2) || (o2.selectionPolicy = a2), F(u2) || (o2.selectionUnit = u2);
            }
          }, t3.prototype.T9 = function(t4) {
            var n3, e3, i3, r2 = this.selections;
            for (n3 = 0; n3 < r2.length; n3++) if (i3 = -1 === (e3 = r2[n3]).col ? 0 : e3.col, -1 === e3.row && t4 >= i3 && t4 < i3 + Lt(e3)) return true;
            return false;
          }, t3.prototype.S9 = function(t4) {
            var n3, e3, i3, r2 = this.selections;
            for (n3 = 0; n3 < r2.length; n3++) if (i3 = -1 === (e3 = r2[n3]).row ? 0 : e3.row, -1 === e3.col && t4 >= i3 && t4 < i3 + Rt(e3)) return true;
            return false;
          }, t3.prototype.ni = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = false, p2 = this.selections, g2 = o2 ? 1 : 0;
            for (a2 = 0, u2 = p2.length; a2 < u2 && (f2 = (c2 = Ht(s2 = p2[a2], i3, r2)).row, l2 = c2.col, h2 = f2 - g2 <= t4 && t4 < f2 + Rt(c2) + g2, d2 = l2 - g2 <= n3 && n3 < l2 + Lt(c2) + g2, 3 === e3 || F(e3) ? v2 = h2 && d2 : 2 === e3 ? v2 = h2 : 1 === e3 ? v2 = d2 : 0 === e3 && (v2 = -1 === s2.row && -1 === s2.col), !v2); a2++) ;
            return v2;
          }, t3.prototype.ei = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = this.selections, g2 = false;
            for (o2 = 0; o2 < p2.length && (u2 = (a2 = p2[o2]).row, s2 = a2.col, c2 = Rt(a2), f2 = Lt(a2), l2 = -1 === s2, h2 = -1 === u2, F(e3) || 3 === e3 || (2 === e3 ? (d2 = h2 ? 0 : u2, g2 = l2 && t4 >= d2 && t4 < d2 + c2) : 1 === e3 ? (v2 = l2 ? 0 : s2, g2 = h2 && n3 >= v2 && n3 < v2 + f2) : 0 === e3 && (g2 = h2 && l2 && c2 === i3 && f2 === r2), !g2)); o2++) ;
            return g2;
          }, t3;
        })(), pt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return It(n3, t3), n3.prototype.findCell = function(t4, n4) {
            var e3, i3, r2 = this.length;
            for (i3 = 0; i3 < r2; i3++) if ((e3 = this[i3]).contains(t4, n4)) return e3;
            return C;
          }, n3.prototype.sE = function() {
            this.cE = {}, this.oHr = {};
          }, n3.prototype.fE = function(t4, n4) {
            this.cE[t4] = n4;
          }, n3.prototype.aHr = function(t4, n4) {
            this.oHr[t4] = n4;
          }, n3.prototype.findRow = function(t4) {
            var n4, e3, i3, r2 = this.cE;
            if (r2) return r2[t4];
            for (n4 = this.length, i3 = 0; i3 < n4; i3++) if ((e3 = this[i3]).row === t4) return e3;
            return C;
          }, n3.prototype.findRowSpacing = function(t4, n4, e3) {
            var i3, r2, o2 = this.length;
            for (r2 = 0; r2 < o2; r2++) if ((i3 = this[r2]).row === t4 && i3.spacingIndex === n4 && !!i3.isAfterSpacing == !!e3) return i3;
            return C;
          }, n3.prototype.findCol = function(t4) {
            var n4, e3, i3, r2 = this.oHr;
            if (r2) return r2[t4];
            for (n4 = this.length, i3 = 0; i3 < n4; i3++) if ((e3 = this[i3]).col === t4) return e3;
            return C;
          }, n3.prototype.findLargestRow = function(t4) {
            var n4, e3, i3, r2, o2 = this.length;
            if (0 === o2) return C;
            for (n4 = 0, i3 = 0; i3 < o2; i3++) (r2 = this[i3]).row === t4 && r2.height > n4 && (n4 = r2.height, e3 = i3);
            return z(e3) && this[e3];
          }, n3.prototype.findLargestCol = function(t4) {
            var n4, e3, i3, r2, o2 = this.length;
            if (0 === o2) return C;
            for (n4 = 0, i3 = 0; i3 < o2; i3++) (r2 = this[i3]).col === t4 && r2.width > n4 && (n4 = r2.width, e3 = i3);
            return z(e3) && this[e3];
          }, n3.prototype.findLargestRange = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this.length;
            if (0 === l2) return C;
            for (e3 = t4.row, i3 = t4.col, r2 = t4.rowCount, o2 = t4.colCount, u2 = 0, s2 = 0; s2 < l2; s2++) if (n4) for (c2 = t4.row; c2 < e3 + r2; c2++) (f2 = this[s2]).row === c2 && f2.height > u2 && (u2 = f2.height, a2 = s2);
            else for (c2 = t4.col; c2 < i3 + o2; c2++) (f2 = this[s2]).col === c2 && f2.width > u2 && (u2 = f2.width, a2 = s2);
            return z(a2) && this[a2];
          }, n3.prototype.findX = function(t4, n4) {
            return Vt(this, S, S, t4, S, n4);
          }, n3.prototype.findY = function(t4) {
            return Vt(this, S, S, S, t4);
          }, n3.prototype.findNearX = function(t4, n4) {
            return zt(this, t4, S, n4);
          }, n3.prototype.findNearY = function(t4, n4) {
            return zt(this, S, t4, n4);
          }, n3.prototype.findXByExactY = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2 = this.findX(t4, true);
            if (!Array.isArray(s2)) return s2;
            for (i3 = s2.length, r2 = e3.y, o2 = e3.height, a2 = i3 - 1; a2 >= 0; a2--) if (n4 > r2 + (u2 = s2[a2]).y * o2) return u2;
          }, n3;
        })(lt), n2.h9 = pt, gt = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2 = this;
            f2.rowCount = a2, f2.colCount = u2, f2.row = t4, f2.col = n3, f2.x = e3, f2.y = i3, f2.width = r2, f2.height = o2, f2.isAutoMerge = s2, f2.offsetX = c2;
          }
          return t3.prototype.contains = function(t4, n3) {
            var e3 = this;
            return t4 < e3.row + Rt(e3) && e3.row <= t4 && n3 < e3.col + Lt(e3) && e3.col <= n3;
          }, t3.prototype.intersect = function(t4) {
            var n3 = this;
            return (n3.x < 0 || t4.x < n3.x + n3.width && n3.x < t4.x + t4.width) && (n3.y < 0 || t4.y < n3.y + n3.height && n3.y < t4.y + t4.height);
          }, t3.prototype.containsX = function(t4) {
            return this.x <= t4 && t4 < this.x + this.width;
          }, t3.prototype.containsY = function(t4) {
            return this.y <= t4 && t4 < this.y + this.height;
          }, t3;
        })(), n2.W8 = gt, n2.copyDefaultFormula = tn, mt = (function() {
          function t3(t4, n3, e3, i3) {
            this.nT = i3;
            var r2 = this;
            r2.Mf = t4, r2.Sx = n3, r2.Tx = e3, r2.defaultCellData = {}, r2.Vve = new c.BaseUsedRange(), r2.I8 = -1, r2.x8 = -1;
          }
          return t3.prototype.dispose = function() {
            this.Mf = C, this.defaultCellData = C;
          }, t3.prototype.getRowCount = function() {
            return this.Sx;
          }, t3.prototype.setRowCount = function(t4) {
            this.Sx = t4;
          }, t3.prototype.getColumnCount = function() {
            return this.Tx;
          }, t3.prototype.setColumnCount = function(t4) {
            this.Tx = t4;
          }, t3.prototype.xhe = function(t4, n3, e3, i3, r2, o2) {
            if (n3) {
              var a2 = void 0;
              t4 && (a2 = o2 === l.DefaultChangeValueType.Expression ? t4.expr : t4.value), n3[0].push(nt, e3, i3, o2), n3[1] = F(a2) ? C : a2, n3[2] = r2;
            }
          }, t3.prototype.Yve = function(t4, n3) {
            var e3 = this;
            e3.x8 < n3 && (e3.x8 = n3), e3.I8 < t4 && (e3.I8 = t4);
          }, t3.prototype.Nhe = function(t4, n3) {
            var e3, i3 = this.defaultCellData[t4], r2;
            return F(i3) || (r2 = i3[n3]), r2;
          }, t3.prototype.getValue = function(t4, n3) {
            var e3 = this, i3;
            return t4 < e3.Sx && n3 < e3.Tx && (t4 >= 0 && n3 >= 0 && (i3 = e3.Nhe(t4, n3)), i3 && !F(i3.value)) ? i3.value : C;
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, f2, h2, d2 = this;
            t4 < d2.Sx && n3 < d2.Tx && t4 >= 0 && n3 >= 0 && (s2 = (u2 = d2.defaultCellData)[t4], F(s2) && (s2 = u2[t4] = {}), e3 = c.util.Z0(e3), d2.xhe(s2[n3], r2, t4, n3, e3, l.DefaultChangeValueType.Value), f2 = null === (a2 = s2[n3]) || void 0 === a2 ? void 0 : a2.value, i3 ? (s2[n3] || (s2[n3] = {}), s2[n3].value = e3) : ((h2 = s2[n3] && s2[n3].expr) && (d2.khe(t4, n3, C), d2.OHr(t4, n3, C, h2)), s2[n3] = { value: e3 }, d2.A_r(t4, n3, f2, e3)), f2 !== e3 && d2._Hr(t4, n3, e3, f2, !!(null == o2 ? void 0 : o2.fromCalc)));
          }, t3.prototype.getFormulaFromExpression = function(t4, n3, i3) {
            var r2, o2, a2, u2, s2 = this;
            if (t4) return a2 = void 0, (o2 = e2("SheetsCalc")) && ((u2 = s2.Mf).Dhe = true, a2 = o2.expressionToFormula(u2, t4, n3, i3, (null === (r2 = u2.parent) || void 0 === r2 ? void 0 : r2.options.referenceStyle) === o2.ReferenceStyle.r1c1), delete u2.Dhe), c.util.g1(a2);
          }, t3.prototype.getFormula = function(t4, n3) {
            var e3, i3, r2 = this;
            return t4 < r2.Sx && n3 < r2.Tx && (t4 >= 0 && n3 >= 0 && (e3 = r2.Nhe(t4, n3)), e3 && e3.expr) ? (i3 = e3.expr, r2.getFormulaFromExpression(i3, t4, n3)) : C;
          }, t3.prototype.getExpression = function(t4, n3) {
            var e3 = this, i3;
            return t4 < e3.Sx && n3 < e3.Tx ? (t4 >= 0 && n3 >= 0 && (i3 = e3.Nhe(t4, n3)), i3 && i3.expr) : C;
          }, t3.prototype.khe = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.defaultCellData, v2 = d2[t4];
            if (v2 && v2[n3] && v2[n3].expr && (l2 = (f2 = h2.Mf).op())) try {
              !o2 && (null === (u2 = null === (a2 = f2.parent) || void 0 === a2 ? void 0 : a2.suspendOp) || void 0 === u2 || u2.call(a2)), f2.Dhe = true, o2 && (v2[n3].value = C, i3 = v2[n3].expr), f2.zI(t4, n3, e3, i3, false, r2, true, true), !o2 && (null === (c2 = null === (s2 = f2.parent) || void 0 === s2 ? void 0 : s2.resumeOp) || void 0 === c2 || c2.call(s2));
            } finally {
              delete f2.Dhe;
            }
          }, t3.prototype.setFormula = function(t4, n3, i3, r2, o2, a2) {
            var u2, s2, f2, h2, d2, v2, p2, g2, b2, y2 = this;
            if (t4 < y2.Sx && n3 < y2.Tx && t4 >= 0 && n3 >= 0) {
              if (f2 = (s2 = y2.defaultCellData)[t4], h2 = void 0, F(f2) && (f2 = s2[t4] = {}), f2[n3] || (f2[n3] = {}), i3 && ((d2 = e2("SheetsCalc")) && (p2 = (null === (u2 = (v2 = y2.Mf).parent) || void 0 === u2 ? void 0 : u2.options.referenceStyle) === d2.ReferenceStyle.r1c1, h2 = d2.formulaToExpression(v2, i3, t4, n3, p2, true), i3 = d2.expressionToFormula(v2, h2, t4, n3, p2)), i3 = c.util.g1(i3)), y2.xhe(f2[n3], a2, t4, n3, h2, l.DefaultChangeValueType.Expression), g2 = f2[n3].expr, f2[n3].expr = h2, g2 !== h2 && y2.OHr(t4, n3, h2, g2), y2.A_r(t4, n3, g2, h2), !m) return b2 = f2[n3].value, y2.xhe(f2[n3], a2, t4, n3, i3, l.DefaultChangeValueType.Value), f2[n3].value = i3, void (b2 !== i3 && y2._Hr(t4, n3, i3, b2));
              o2 || y2.khe(t4, n3, i3, h2, r2);
            }
          }, t3.prototype.resetFormulaToCalc = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = o2.Sx, u2 = o2.Tx, s2, c2;
            if (t4 >= 0 && n3 >= 0 && (e3 = x(e3, a2 - t4), i3 = x(i3, u2 - n3), e3 > 0 && i3 > 0)) for (c2 = t4; c2 < t4 + e3; c2++) for (s2 = n3; s2 < n3 + i3; s2++) o2.khe(c2, s2, C, C, r2, true);
          }, t3.prototype.A_r = function(t4, n3, e3, i3) {
            var r2 = this;
            r2.Yve(t4, n3), r2.Vve && q(r2.Vve, t4, n3, e3, i3);
          }, t3.prototype._he = function() {
            return this.defaultCellData;
          }, t3.prototype.jhe = function(t4) {
            var n3, e3, i3, r2;
            if (t4) {
              for (n3 in t4) if (t4.hasOwnProperty(n3)) {
                if (!(e3 = t4[n3])) continue;
                for (i3 in e3) e3.hasOwnProperty(i3) && (r2 = e3[i3]) && r2.expr && (r2.oldRow = n3, r2.oldCol = i3);
              }
            }
          }, t3.prototype.hE = function(t4, n3) {
            var e3, i3 = this.Vve, r2 = {};
            if (!F(i3)) return t4 & l.UsedRangeType.data && J(r2, i3.getUsedRange(n3)), r2;
          }, t3.prototype.rE = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Sx;
            0 <= t4 && t4 <= r2 && n3 >= 0 && (e3 = i3.defaultCellData, i3.jhe(e3), R(e3, r2, t4, n3), i3.Sx += n3, i3.Vve && this.Vve.addHeadInfo(t4, n3, true));
          }, t3.prototype.yE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Sx;
            if (0 <= t4 && t4 < h2 && n3 > 0) {
              if (t4 + n3 > h2 && (n3 = h2 - t4), i3 = l2.defaultCellData, e3) for (r2 = 0; r2 < n3; r2++) o2 = t4 + r2, e3.push([[nt, o2], i3[o2]]);
              if (l2.Vve) {
                for (a2 = t4, u2 = t4 + n3, s2 = l2.defaultCellData, c2 = void 0; a2 < u2; a2++) if (s2[a2]) for (f2 = 0; f2 < l2.Tx; f2++) (c2 = s2[a2] && s2[a2][f2]) && (F(c2.value) && !c2.expr || l2.Vve.removeRowAndColInfo(a2, f2));
                l2.Vve.removeHeadInfo(t4, n3, true);
              }
              l2.jhe(i3), L(i3, h2, t4, n3), l2.Sx -= n3;
            }
          }, t3.prototype.oE = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Tx;
            if (0 <= t4 && t4 <= a2 && n3 >= 0) {
              for (e3 = o2.defaultCellData, o2.jhe(e3), i3 = 0; i3 < o2.Sx; i3++) (r2 = e3[i3]) && t4 < a2 && R(r2, a2, t4, n3);
              o2.Tx += n3, o2.Vve && o2.Vve.addHeadInfo(t4, n3, false);
            }
          }, t3.prototype.wE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.Tx;
            if (0 <= t4 && t4 < f2 && n3 > 0) {
              for (i3 = c2.defaultCellData, r2 = void 0, c2.jhe(i3), o2 = 0; o2 < c2.Sx; o2++) if (a2 = i3[o2]) {
                if (e3) for (u2 = 0; u2 < n3; u2++) r2 = a2[s2 = t4 + u2], e3.push([[nt, o2, s2], r2]), r2 && c2.Vve && (F(r2.value) && !r2.expr || c2.Vve.removeRowAndColInfo(o2, s2));
                L(a2, f2, t4, n3);
              }
              t4 + n3 > f2 && (n3 = f2 - t4), c2.Tx -= n3, c2.Vve && c2.Vve.removeHeadInfo(t4, n3, false);
            }
          }, t3.prototype.SE = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, h2;
            r2 && (o2 = [[tt, 3], S], a2 = [[tt, 3], S], u2 = [[tt, 3], S], s2 = [[tt, 3], S], r2.push(o2, a2, u2, s2)), f2 = (c2 = this).Nhe(t4, n3), h2 = c2.Nhe(e3, i3), r2 && (c2.xhe(f2, o2, t4, n3, h2.value, l.DefaultChangeValueType.Value), c2.xhe(h2, a2, e3, i3, f2.value, l.DefaultChangeValueType.Value), c2.xhe(f2, u2, t4, n3, h2.expr, l.DefaultChangeValueType.Expression), c2.xhe(h2, s2, e3, i3, f2.expr, l.DefaultChangeValueType.Expression)), this.Mf.$Dr({ type: "sortSwap", sortType: "defaultValueNode", fromRow: t4, fromCol: n3, toRow: e3, toCol: i3, sheetArea: this.nT }), c2.I_r(t4, n3, e3, i3);
          }, t3.prototype.I_r = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.defaultCellData, a2 = r2.Nhe(t4, n3), u2 = r2.Nhe(e3, i3), s2 = r2.Vve;
            a2 ? Kt(e3, i3, a2, o2, s2) : u2 && Kt(e3, i3, C, o2, s2), u2 ? Kt(t4, n3, u2, o2, s2) : a2 && Kt(t4, n3, C, o2, s2);
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, i3, r2, o2;
            if (t4) {
              for (e3 in (n3 = this).defaultCellData = {}, t4) if (t4.hasOwnProperty(e3)) {
                if (!(i3 = t4[e3])) continue;
                for (o2 in r2 = function(t5) {
                  var r3, o3, a2, s2;
                  if (!i3.hasOwnProperty(t5) || !i3[t5]) return "continue";
                  try {
                    r3 = i3[t5], o3 = +e3, a2 = +t5, r3.f && n3.setFormula(o3, a2, c.util.n1(r3.f), S, true), s2 = r3.v, F(s2) || (s2.error && !F(s2.code) || s2._calcError && !F(s2._code) ? s2 = m && u.CalcError.parse(s2.error || s2._calcError) : "SparklineExValue" === s2.typeName ? s2.toString = function() {
                      return s2.value && !F(s2.value.altText) ? s2.value.altText + "" : "";
                    } : s2.richText && G(s2), n3.setValue(o3, a2, s2, !!r3.f));
                  } catch (t6) {
                  }
                }, i3) r2(o2);
              }
            }
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, f2 = this, l2 = f2.defaultCellData, h2 = {};
            if (l2) {
              for (n3 in l2) if (l2.hasOwnProperty(n3)) {
                if (!(e3 = l2[n3])) continue;
                for (i3 in h2[n3] || (h2[n3] = {}), e3) e3.hasOwnProperty(i3) && (r2 = e3[i3]) && (F(r2.value) || (a2 = o2 = r2.value, t4 && (o2 && o2 instanceof Date ? a2 = o2.toISOString() : F(o2._error) && F(o2._code) ? o2 && o2.richText && (o2.converted = S) : a2 = { error: o2._error, code: o2._code }), h2[n3][i3] = { v: a2 }), (u2 = r2.expr) && (h2[n3][i3] || (h2[n3][i3] = {}), s2 = f2.getFormulaFromExpression(u2, +n3, +i3), h2[n3][i3].f = c.util.vo(s2)));
              }
            }
            return h2;
          }, t3.prototype.yh = function(t4) {
            this.fromJSON(t4);
          }, t3.prototype.wh = function(t4) {
            var n3;
            if (H(t4)) return this.toJSON(true);
          }, t3.prototype._Hr = function(t4, n3, e3, i3, r2) {
            this.Mf.$Dr({ type: "setRange", setType: "defaultValue", row: t4, col: n3, sheetArea: l.SheetArea.viewport, data: { value: e3 }, oldValue: { value: i3 }, fromCalc: r2 });
          }, t3.prototype.OHr = function(t4, n3, e3, i3, r2, o2, a2) {
            this.Mf.$Dr({ type: "setRange", setType: "defaultValue", row: t4, col: n3, sheetArea: l.SheetArea.viewport, data: { expr: e3 }, oldValue: { expr: i3 }, originRow: r2, originCol: o2, context: a2 });
          }, t3;
        })(), n2.IHr = mt, bt = (function() {
          function t3(t4, n3, e3, i3, r2) {
            this.eGr = new g.EventNotifier();
            var o2 = this;
            r2 && this.eGr.addListener(r2), o2.Sx = t4, o2.Tx = n3, F(e3) || (o2.j8 = e3), F(i3) || (o2.O8 = i3), o2.Hc();
          }
          return t3.prototype.Hc = function() {
            var t4 = this;
            t4.dataTable = {}, t4.rowDataArray = [], t4.columnDataArray = [], t4.defaultDataNode = C, t4.B8 = {}, t4.lE = 0, t4.x8 = -1, t4.I8 = -1;
          }, t3.prototype.$Dr = function(t4, n3) {
            var e3, i3 = this.eGr;
            t4.isChanging = false, t4.changingContext = n3, null == i3 || i3.notify(t4);
          }, t3.prototype.THr = function(t4) {
            var n3, e3 = this.eGr;
            return t4.isChanging = true, null == e3 || e3.notify(t4), t4.changingContext;
          }, t3.prototype.F_r = function(t4) {
            var n3;
            this.eGr.addListener(t4);
          }, t3.prototype.z8 = function() {
            var t4;
            this.a8 = { data: new c.BaseUsedRange(), style: new c.BaseUsedRange(), tag: new c.BaseUsedRange() };
          }, t3.prototype.hE = function(t4, n3) {
            var e3, i3 = this.a8, r2 = {};
            if (!F(i3)) return t4 & l.UsedRangeType.data && J(r2, i3.data.getUsedRange(n3)), t4 & l.UsedRangeType.tag && J(r2, i3.tag.getUsedRange()), t4 & l.UsedRangeType.style && J(r2, i3.style.getUsedRange(n3)), t4 & l.UsedRangeType.rowStyle && J(r2, i3.style.getRowUsedRange(n3)), t4 & l.UsedRangeType.colStyle && J(r2, i3.style.getColUsedRange(n3)), r2;
          }, t3.prototype.getRowCount = function() {
            return this.Sx;
          }, t3.prototype.getColumnCount = function() {
            return this.Tx;
          }, t3.prototype.setRowCount = function(t4) {
            this.Sx = t4;
          }, t3.prototype.setColumnCount = function(t4) {
            this.Tx = t4;
          }, t3.prototype.getFreeAreaRowCount = function() {
            return this.j8;
          }, t3.prototype.getFreeAreaColumnCount = function() {
            return this.O8;
          }, t3.prototype.setFreeAreaRowCount = function(t4) {
            this.j8 = t4;
          }, t3.prototype.setFreeAreaColumnCount = function(t4) {
            this.O8 = t4;
          }, t3.prototype.dE = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.B8;
            if (!(l2.lE > 0)) {
              if (a2 = t4 + "_" + n3, (o2 = this.B8.vE) && o2[a2]) {
                if (o2[a2].oldCalcValue === e3.mE) return;
                delete o2[a2];
              }
              t4 >= 0 && n3 >= 0 && (i3 && (i3.type = "updateDirty", i3.row = t4, i3.col = n3, i3.skipUndo = r2, h2[t4] ? h2[t4][n3] || (i3.isEmptyCol = true) : i3.isEmptyRow = true), h2[t4] || (h2[t4] = {}), (u2 = h2[t4])[n3] || (u2[n3] = {}), s2 = u2[n3], "n" !== u2.rs && (u2.rs = "e"), c2 = e3.gE, f2 = e3.d6, F(c2) || (i3 && (i3.originalItem = u2.originalItem), u2.originalItem = c2), F(f2) || (i3 && (i3.oldValue = s2.oldValue, r2 && (i3.oldCalcValue = f2)), s2.oldValue = f2));
            }
          }, t3.prototype.pE = function(t4) {
            var n3 = this.B8, e3 = t4.row, i3 = t4.col;
            t4.skipUndo && (this.B8.vE = this.B8.vE || {}, this.B8.vE[e3 + "_" + i3] = t4), t4.isEmptyRow && n3 ? delete n3[e3] : t4.isEmptyCol && n3[e3] ? delete n3[e3][i3] : (t4.hasOwnProperty("originalItem") && (F(t4.originalItem) && !F(n3[e3].originalItem) ? delete n3[e3].originalItem : n3[e3].originalItem = t4.originalItem), t4.hasOwnProperty("oldValue") && n3[e3] && (F(t4.oldValue) && !F(n3[e3][i3].oldValue) ? delete n3[e3][i3].oldValue : n3[e3][i3].oldValue = t4.oldValue));
          }, t3.prototype.getValue = function(t4, n3, e3) {
            var i3 = this.J_(t4, n3);
            return i3 && !F(i3.value) ? 1 !== e3 ? P(i3.value) : F(i3.value.richText) ? i3.value : w(true, {}, i3.value) : C;
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2 = this.J_(t4, n3, true, i3 ? i3[0] : S);
            !s2 || F(s2.value) && F(e3) || s2.value === e3 ? i3 && (i3.length = 0) : (u2 = s2.value, s2.value = e3, this.$Dr({ type: "setRange", row: t4, col: n3, data: e3, oldValue: u2, setType: "value", fromCalc: a2 }), this.dE(t4, n3, { d6: u2, mE: e3 }, r2, o2), i3 && (i3[0].push("value"), i3[1] = u2, i3[2] = e3), this.a8 && (e3 && "SparklineExValue" === e3.typeName && ("IMAGE" === e3.name && (s2.altText = e3.value && e3.value.altText), e3 = C), q(this.a8.data, t4, n3, u2, e3)));
          }, t3.prototype.getStyle = function(t4, n3, e3) {
            var i3 = this.J_(t4, n3), r2 = i3 && i3.style;
            return r2 && e3 && r2.clone && (r2 = r2.clone(true)), r2;
          }, t3.prototype.setStyle = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2 = this, f2 = c2.J_(t4, n3, true, i3 ? i3[0] : S);
            f2 && f2.style !== e3 ? (a2 = f2.style, f2.style = e3, c2.$Dr({ type: "setRange", row: t4, col: n3, data: e3, setType: "style", oldValue: void 0 !== a2 ? a2 : C }), i3 && (i3[0].push("style"), u2 = function() {
              i3.push(a2), i3.push(e3);
            }, r2 && o2 && a2 && e3 && "object" == typeof a2 && "object" == typeof e3 && this.__e(a2) && this.__e(e3) && -1 !== (s2 = this.c_e(i3, a2, e3, r2, o2)) ? i3.push(s2) : u2()), this.a8 && q(this.a8.style, t4, n3, a2, e3)) : i3 && (i3.length = 0);
          }, t3.prototype.getFileGUID = function(t4, n3) {
            var e3 = this.J_(t4, n3);
            return e3 && !F(e3.fileGUID) ? e3.fileGUID : C;
          }, t3.prototype.setFileGUID = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this.J_(t4, n3, true, i3 ? i3[0] : S);
            !a2 || F(a2.fileGUID) && F(e3) || a2.fileGUID === e3 ? i3 && (i3.length = 0) : (o2 = a2.fileGUID, a2.fileGUID = e3, this.$Dr({ type: "setRange", setType: "fileGUID", row: t4, col: n3, data: { fileGUID: e3 }, source: S, oldValue: o2 }), this.dE(t4, n3, { d6: o2, mE: e3 }, r2), i3 && (i3[0].push("fileGUID"), i3[1] = o2, i3[2] = e3));
          }, t3.prototype.__e = function(t4) {
            return !(t4.cellButtons && t4.cellButtons.some((function(t5) {
              return t5.command && "function" == typeof t5.command;
            })) || t4.dropDowns && t4.dropDowns.some((function(t5) {
              return t5.submitCommand && "function" == typeof t5.submitCommand;
            })));
          }, t3.prototype.l_e = function(t4, n3) {
            var e3 = on(t4), i3 = un(n3, e3), r2 = an(t4);
            return i3 && i3.change[r2] !== S ? i3.change[r2] : null;
          }, t3.prototype.c_e = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2 = this.l_e(t4, i3);
            return h2 !== C && "number" != typeof h2 ? -1 : (o2 = function(t5, n4, e4) {
              var i4, r3;
              return it.includes(e4) && t5 && n4 ? (r3 = n4, (i4 = t5).color === r3.color && i4.style === r3.style && i4.level === r3.level) : ot.includes(e4) && t5 && n4 ? "object" == typeof t5 && "function" == typeof t5.formatString && "object" == typeof n4 && "function" == typeof n4.formatString ? t5.formatString() === n4.formatString() : t5 === n4 : rt.includes(e4) && t5 && n4 ? JSON.stringify(t5) === JSON.stringify(n4) : t5 === n4;
            }, a2 = ["_id", "_featuresCache"], u2 = Object.keys(n3).filter((function(t5) {
              return !a2.includes(t5);
            })), s2 = Object.keys(e3).filter((function(t5) {
              return !a2.includes(t5) && !u2.includes(t5);
            })), c2 = {}, u2.forEach((function(t5) {
              o2(n3[t5], e3[t5], t5) || (c2[t5] = { old: n3[t5], new: e3[t5] });
            })), s2.forEach((function(t5) {
              void 0 !== e3[t5] && (c2[t5] = { old: void 0, new: e3[t5] });
            })), h2 !== C && "number" == typeof h2 && r2[h2] && this.h_e(r2[h2], c2), f2 = Object.keys(c2), -1 !== (l2 = r2.findIndex((function(t5) {
              return f2.length === Object.keys(t5).length && f2.every((function(n4) {
                return t5[n4] && o2(t5[n4].old, c2[n4].old, n4) && o2(t5[n4].new, c2[n4].new, n4);
              }));
            }))) ? l2 : (r2.push(c2), r2.length - 1));
          }, t3.prototype.h_e = function(t4, n3) {
            var e3;
            Object.keys(t4).forEach((function(e4) {
              n3[e4] ? n3[e4].old = t4[e4].old : n3[e4] = t4[e4];
            }));
          }, t3.prototype.getCellState = function(t4, n3) {
            var e3 = this.J_(t4, n3);
            return e3 ? e3.cellState : C;
          }, t3.prototype.setCellState = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this.getCellState(t4, n3) || 0;
            0 !== (r2 = i3 ? a2 | e3 : a2 & ~e3) ? (o2 = this.J_(t4, n3, true, S, true)) && (o2.cellState = r2) : ((o2 = this.J_(t4, n3)) && delete o2.cellState, y(o2) && (cn(this.dataTable, t4, n3), y(this.dataTable[t4]) && delete this.dataTable[t4]));
          }, t3.prototype.getValueForKey = function(t4, n3, e3) {
            var i3 = this.J_(t4, n3);
            return i3 && i3[e3];
          }, t3.prototype.forEachForKey = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            for (e3 in o2.dataTable) if (o2.dataTable[e3]) for (r2 in i3 = o2.dataTable[e3]) i3[r2] && i3[r2][t4] && n3(i3[r2][t4], +e3, +r2);
          }, t3.prototype.setValueForKey = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this.J_(t4, n3, true, r2 ? r2[0] : S), u2 = false;
            return a2 && a2[e3] !== i3 ? (o2 = a2[e3], a2[e3] = i3, u2 = o2 !== i3, r2 && (r2[0].push(e3), r2[1] = o2, r2[2] = i3), this.bE(t4, n3, e3, o2, i3)) : r2 && (r2.length = 0), u2;
          }, t3.prototype.bE = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this.a8;
            e3 === W && a2 ? q(a2.data, t4, n3, i3, r2) : e3 === Q && a2 && q(a2.tag, t4, n3, i3, r2);
          }, t3.prototype.rE = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.Sx, a2 = r2.dataTable, u2 = r2.B8;
            if (0 <= t4 && t4 <= o2 && n3 >= 0) {
              if (R(a2, o2, t4, n3), R(r2.rowDataArray, o2, t4, n3), R(u2, o2, t4, n3), r2.Sx += n3, !e3) for (i3 = 0; i3 < n3; i3++) a2[t4 + i3] = { rs: "n" }, u2[t4 + i3] = { rs: "n" };
              this.a8 && (this.a8.data.addHeadInfo(t4, n3, true), this.a8.tag.addHeadInfo(t4, n3, true), this.a8.style.addHeadInfo(t4, n3, true));
            }
          }, t3.prototype.yE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Sx;
            if (0 <= t4 && t4 < l2 && n3 > 0) {
              if (t4 + n3 > l2 && (n3 = l2 - t4), e3) for (i3 = 0; i3 < n3; i3++) r2 = t4 + i3, e3.push([["dataTable", r2], f2.dataTable[r2]]), e3.push([["rowDataArray", r2], f2.rowDataArray[r2]]), e3.push([[N, r2], f2.B8[r2]]);
              if (this.a8) {
                for (o2 = t4, a2 = t4 + n3, u2 = f2.dataTable, s2 = void 0; o2 < a2; o2++) if (u2[o2]) for (c2 = 0; c2 < f2.Tx; c2++) (s2 = u2[o2] && u2[o2][c2]) && (F(s2.value) && F(s2.bindingPath) || this.a8.data.removeRowAndColInfo(o2, c2), F(s2.tag) || this.a8.tag.removeRowAndColInfo(o2, c2), s2.style && this.a8.style.removeRowAndColInfo(o2, c2));
                this.a8.data.removeHeadInfo(t4, n3, true), this.a8.tag.removeHeadInfo(t4, n3, true), this.a8.style.removeHeadInfo(t4, n3, true);
              }
              L(f2.dataTable, l2, t4, n3), L(f2.rowDataArray, l2, t4, n3), L(f2.B8, l2, t4, n3), f2.Sx -= n3;
            }
          }, t3.prototype.oE = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Tx, u2 = o2.B8;
            if (0 <= t4 && t4 <= a2 && n3 >= 0) {
              for (e3 = 0; e3 < o2.Sx; e3++) (i3 = o2.dataTable[e3]) && t4 < a2 && (R(i3, a2, t4, n3), (r2 = u2[e3]) && qt(r2, t4, n3));
              R(o2.columnDataArray, a2, t4, n3), o2.Tx += n3, this.a8 && (this.a8.data.addHeadInfo(t4, n3, false), this.a8.tag.addHeadInfo(t4, n3, false), this.a8.style.addHeadInfo(t4, n3, false));
            }
          }, t3.prototype.wE = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Tx, d2 = l2.B8, v2 = l2.dataTable;
            if (0 <= t4 && t4 < h2 && n3 > 0) {
              for (r2 = 0; r2 < l2.Sx; r2++) if (o2 = l2.dataTable[r2]) {
                if (e3) for (a2 = 0; a2 < n3; a2++) u2 = t4 + a2, e3.push([["dataTable", r2, u2], o2[u2]]), l2.B8[r2] && e3.push([[N, r2, u2], l2.B8[r2][u2]]), (i3 = v2[r2] && v2[r2][u2]) && this.a8 && (F(i3.value) && F(i3.bindingPath) || this.a8.data.removeRowAndColInfo(r2, u2), F(i3.tag) || this.a8.tag.removeRowAndColInfo(r2, u2), i3.style && this.a8.style.removeRowAndColInfo(r2, u2));
                L(o2, h2, t4, n3), $t(s2 = d2[r2], t4, n3);
              }
              if (e3) for (c2 = 0; c2 < n3; c2++) f2 = t4 + c2, e3.push([["columnDataArray", f2], l2.columnDataArray[f2]]);
              L(l2.columnDataArray, h2, t4, n3), t4 + n3 > h2 && (n3 = h2 - t4), l2.Tx -= n3, this.a8 && (this.a8.data.removeHeadInfo(t4, n3, false), this.a8.tag.removeHeadInfo(t4, n3, false), this.a8.style.removeHeadInfo(t4, n3, false));
            }
          }, t3.prototype.ME = function(t4, n3, e3, i3) {
            var r2 = this, o2 = t4[n3];
            return e3 && (o2 || (o2 = t4[n3] = {}), !i3 && n3 > r2.I8 && (r2.I8 = n3)), o2;
          }, t3.prototype.CE = function(t4, n3, e3, i3) {
            if (t4) {
              var r2 = this, o2 = t4[n3];
              return e3 && (o2 || (o2 = t4[n3] = {}), !i3 && r2.x8 < n3 && (r2.x8 = n3)), o2;
            }
          }, t3.prototype.J_ = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this, u2 = a2.dataTable, s2 = a2.columnDataArray, c2 = a2.rowDataArray, f2 = C;
            return t4 < a2.Sx && n3 < a2.Tx && (t4 >= 0 && n3 >= 0 ? (o2 = a2.ME(u2, t4, e3, r2), f2 = a2.CE(o2, n3, e3, r2), i3 && i3.push("dataTable", t4, n3)) : -1 === t4 && n3 >= 0 ? (f2 = s2[n3], e3 && (f2 || (f2 = s2[n3] = {}), !r2 && a2.x8 < n3 && (a2.x8 = n3)), i3 && i3.push("columnDataArray", n3)) : t4 >= 0 && -1 === n3 ? (f2 = c2[t4], e3 && (f2 || (f2 = c2[t4] = {}), !r2 && a2.I8 < t4 && (a2.I8 = t4)), i3 && i3.push("rowDataArray", t4)) : -1 === t4 && -1 === n3 && (f2 = a2.defaultDataNode, e3 && !f2 && (f2 = a2.defaultDataNode = {}), i3 && i3.push("defaultDataNode"))), f2;
          }, t3.prototype.setNode = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.dataTable, a2 = r2.columnDataArray, u2 = r2.rowDataArray;
            t4 < r2.Sx && n3 < r2.Tx && (t4 >= 0 && n3 >= 0 ? ((i3 = o2[t4]) || (i3 = o2[t4] = {}), i3[n3] = e3) : -1 === t4 && n3 >= 0 ? a2[n3] = e3 : -1 === n3 && t4 >= 0 && (u2[t4] = e3));
          }, t3.prototype.SE = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
            r2 && (o2 = [], a2 = []), s2 = (u2 = this).B8, c2 = u2.J_(t4, n3, S, o2), f2 = s2[t4] && s2[t4][n3], l2 = s2[t4] && s2[t4].originalItem, h2 = u2.J_(e3, i3, S, a2), d2 = s2[e3] && s2[e3][i3], v2 = s2[e3] && s2[e3].originalItem, r2 && (r2.push([o2, c2]), r2.push([a2, h2])), this.$Dr({ type: "sortSwap", sortType: "node", fromRow: t4, fromCol: n3, toRow: e3, toCol: i3 }), this.I_r(t4, n3, e3, i3), f2 ? Xt(t4, n3, e3, i3, f2, s2, l2) : d2 && Xt(t4, n3, e3, i3, C, s2, l2), d2 ? Xt(e3, i3, t4, n3, d2, s2, v2) : f2 && Xt(e3, i3, t4, n3, C, s2, v2);
          }, t3.prototype.I_r = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.dataTable, a2 = r2.rowDataArray, u2 = r2.columnDataArray, s2 = r2.J_(t4, n3), c2 = r2.J_(e3, i3);
            s2 ? Jt(t4, n3, e3, i3, s2, o2, a2, u2, r2) : c2 && Jt(t4, n3, e3, i3, C, o2, a2, u2, r2), c2 ? Jt(e3, i3, t4, n3, c2, o2, a2, u2, r2) : s2 && Jt(e3, i3, t4, n3, C, o2, a2, u2, r2);
          }, t3.prototype.gT = function(t4) {
            t4++;
            for (var n3 = this.Sx, e3 = this.dataTable; t4 >= 0 && t4 < n3 && !e3[t4]; ) t4++;
            return t4 < n3 ? t4 : -1;
          }, t3.prototype.pT = function(t4, n3) {
            var e3 = this, i3 = C, r2 = e3.Tx;
            if (t4 >= 0 && t4 < e3.Sx && (i3 = e3.dataTable[t4]), i3) {
              for (n3++; n3 >= 0 && n3 < r2 && !i3[n3]; ) n3++;
              if (n3 < r2) return n3;
            }
            return -1;
          }, t3.prototype.TE = function(t4, n3, e3) {
            var i3 = e3 && e3.getFormatter(t4, n3);
            return !!U(i3) && i3;
          }, t3.prototype.clear = function(t4, n3, e3, i3, r2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = b2.Sx, w2 = b2.Tx, M2 = [], T2 = !!u2, A2 = {};
            if (t4 >= 0 && n3 >= 0) {
              if (e3 = x(e3, y2 - t4), i3 = x(i3, w2 - n3), e3 > 0 && i3 > 0) {
                for (f2 = t4; f2 < t4 + e3; f2++) if (!a2 || o.Common.Uf.hD(a2, f2) < 0) for (c2 = n3; c2 < n3 + i3; c2++) T2 && (l2 = []), (s2 = b2.J_(f2, c2, S, l2)) && (M2.push({ r: f2, c: c2, node: s2, paths: T2 ? l2 : void 0 }), (1 & r2) > 0 && !F(s2.value) && (h2 = void 0, T2 && (h2 = {}), b2.dE(f2, c2, { d6: s2.value }, h2), h2 && u2.push(h2)));
              }
            } else if (t4 >= 0 && -1 === n3) {
              if ((e3 = x(e3, y2 - t4)) > 0) for (f2 = t4; f2 < t4 + e3; f2++) T2 && (l2 = []), (s2 = b2.J_(f2, -1, S, l2)) && M2.push({ r: f2, c: c2, node: s2, paths: T2 ? l2 : void 0 });
            } else if (-1 === t4 && n3 >= 0) {
              if ((i3 = x(i3, w2 - n3)) > 0) for (c2 = n3; c2 < n3 + i3; c2++) T2 && (l2 = []), (s2 = b2.J_(-1, c2, S, l2)) && M2.push({ r: f2, c: c2, node: s2, paths: T2 ? l2 : void 0 });
            } else -1 === t4 && -1 === n3 && (T2 && (l2 = []), (s2 = b2.J_(-1, -1, S, l2)) && M2.push({ r: f2, c: c2, node: s2, paths: T2 ? l2 : void 0 }));
            for (b2.a8 && (d2 = b2.a8.style, v2 = b2.a8.data, p2 = b2.a8.tag), g2 = 0, m2 = M2.length; g2 < m2; g2++) s2 = M2[g2].node, f2 = M2[g2].r, c2 = M2[g2].c, l2 = M2[g2].paths, s2 && ((8 & r2) > 0 && s2.tag !== C && (T2 && u2.push([jt(jt([], l2, true), ["tag"], false), s2.tag]), p2 && q(p2, f2, c2, s2.tag, C), s2.tag = C), (2 & r2) > 0 && s2.style !== C && s2.style !== S && (T2 && u2.push([jt(jt([], l2, true), ["style"], false), s2.style, void 0]), d2 && q(d2, f2, c2, s2.style, C), s2.style = C), (1 & r2) > 0 && (s2.value !== C && s2.value !== S || s2.fileGUID !== C && s2.fileGUID !== S) && (T2 && (u2.push([jt(jt([], l2, true), ["value"], false), s2.value]), u2.push([jt(jt([], l2, true), ["fileGUID"], false), s2.fileGUID])), A2[f2] || (A2[f2] = {}), A2[f2][c2] = true, v2 && q(v2, f2, c2, s2.value, C), s2.value = C, s2.fileGUID = C), (16 & r2) > 0 && s2.sparkline !== C && (T2 && u2.push([jt(jt([], l2, true), ["sparkline"], false), s2.sparkline]), s2.sparkline = C), (64 & r2) > 0 && s2.bindingPath !== C && (T2 && u2.push([jt(jt([], l2, true), ["bindingPath"], false), s2.bindingPath]), v2 && q(v2, f2, c2, s2.bindingPath, C), s2.bindingPath = C), (256 & r2) > 0 && s2.hyperlink !== C && (T2 && u2.push([jt(jt([], l2, true), ["hyperlink"], false), s2.hyperlink]), s2.hyperlink = C), (4 & r2) > 0 && s2.comment !== C && (T2 && u2.push([jt(jt([], l2, true), ["comment"], false), s2.comment]), s2.comment = C), (512 & r2) > 0 && s2.altText !== C && (T2 && u2.push([jt(jt([], l2, true), ["altText"], false), s2.altText]), s2.altText = C));
            return { valueChangeMap: A2 };
          }, t3.prototype.toJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, T2, x2, A2, I2, k2, N2, j2 = e3 && e3.parent && !y(e3.parent.bp), D2 = [];
            function _2(t5, i4, r3, o3, a3, u3) {
              var s3, c3, f3, l3, h3, d3, v3, p3, g3, m3, b3, w3, M3, T3;
              return r3 ? (s3 = {}, c3 = false, f3 = r3.value, l3 = false, F(f3) || (f3.richText && (f3.converted = S), r3.fileGUID && (s3.fileGUID = r3.fileGUID, D2.push(r3.fileGUID)), s3.value = f3, c3 = true), n3 && n3.saveAsView && (h3 = void 0, u3 ? h3 = u3 : j2 && (h3 = e3 && e3.getFormatter(t5, i4)), h3 && U(h3) && (l3 = true, d3 = e3.Oe(t5, i4, o3, h3), F(d3) || (s3.value = d3, c3 = true))), v3 = s3.value, !F(v3) && "object" == typeof v3 && Object.keys(v3).length > 0 && (s3.value = In(v3)), (p3 = n3 && n3.ignoreStyle) || (g3 = r3.style) && !y(g3) && ("string" == typeof g3 ? (s3.style = g3, c3 = true) : (m3 = g3.toJSON(o3, a3, n3)) && (l3 && m3.formatter && (m3.formatter = void 0), m3.name = S, m3.fontForColumnWidth = g3.fontForColumnWidth, s3.style = m3, c3 = true)), b3 = r3.bindingPath, F(b3) || (s3.bindingPath = b3, c3 = true), w3 = r3.tag, F(w3) || (s3.tag = w3, c3 = true), M3 = r3.altText, F(M3) || (s3.altText = M3, c3 = true), T3 = r3.hyperlink, F(T3) || (s3.hyperlink = V(T3), delete s3.hyperlink.isVisited, c3 = true), true === c3 ? s3 : C) : C;
            }
            if (r2 = {}, o2 = {}, a2 = (i3 = this).Sx, u2 = i3.Tx, s2 = i3.dataTable, c2 = i3.rowDataArray, f2 = i3.columnDataArray, n3 && n3.saveAsView) for (d2 = 0, v2 = 3 === t4 && j2; d2 < a2; ) if ((p2 = s2[d2]) || v2) {
              for (g2 = {}, m2 = false, b2 = 0; b2 < u2; ) w2 = void 0, p2 && p2[b2] ? w2 = _2(d2, b2, p2[b2]) : v2 && (M2 = this.TE(d2, b2, e3)) && (p2 || (p2 = i3.ME(s2, d2, true)), w2 = _2(d2, b2, i3.CE(p2, b2, true), 3, false, M2)), F(w2) || (g2[b2] = w2, m2 = true), b2++;
              m2 && (o2[d2] = g2), d2++;
            } else d2++;
            else for (l2 = i3.gT(-1); l2 >= 0; ) {
              for (g2 = {}, m2 = false, h2 = i3.pT(l2, -1); h2 >= 0; ) (T2 = i3.J_(l2, h2)) && (w2 = _2(l2, h2, T2), y(w2) || (g2[h2] = w2, m2 = true)), h2 = i3.pT(l2, h2);
              m2 && (o2[l2] = g2), l2 = i3.gT(l2);
            }
            for (y(o2) || (r2.dataTable = o2), x2 = [], l2 = 0; l2 < a2; l2++) Ot(c2, l2) && c2[l2] && (A2 = _2(l2, -1, c2[l2]), y(A2) || (x2[l2] = A2));
            for (x2.length > 0 && (r2.rowDataArray = x2), I2 = [], h2 = 0; h2 < u2; h2++) Ot(f2, h2) && f2[h2] && (k2 = _2(-1, h2, f2[h2]), y(k2) || (I2[h2] = k2));
            return I2.length > 0 && (r2.columnDataArray = I2), N2 = _2(-1, -1, i3.defaultDataNode, t4, true), y(N2) || (r2.defaultDataNode = N2), D2.length && (r2.usedAttachmentFileGUIDs = D2), r2;
          }, t3.prototype.fromJSON = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = e3 && e3.incrementalLoading;
            if (t4) {
              if ((u2 = this).Hc(), u2.lE++, s2 = t4.dataTable, l2 = u2.Sx, h2 = u2.Tx, s2 ? b2 && 3 === o2 ? Zt(u2, s2, l2, h2, e3, n3, S, a2, u2.a8, i3, r2) : Wt(u2, s2, l2, h2, e3, n3, u2.a8, i3, r2) : b2 && a2 && setTimeout(a2, 0), p2 = t4.rowDataArray || t4.AE) for (c2 = 0; c2 < l2; c2++) Ot(p2, c2) && p2[c2] && en(p2[c2], u2.J_(c2, -1, true), n3, c2, -1, e3, u2.a8);
              if (g2 = t4.columnDataArray || t4.IE) for (f2 = 0; f2 < h2; f2++) Ot(g2, f2) && g2[f2] && en(g2[f2], u2.J_(-1, f2, true), n3, -1, f2, e3, u2.a8);
              (m2 = t4.defaultDataNode || t4.xE) && en(m2, u2.J_(-1, -1, true), n3, -1, -1, e3, u2.a8), u2.lE--;
            } else b2 && a2 && setTimeout(a2, 0);
          }, t3.prototype.wh = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2, f2, h2, d2, p2, g2, m2, b2, w2, M2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, B2, P2, G2, H2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2 = this, ft2 = 0, lt2 = 0, ht2 = ct2.Sx, dt2 = ct2.Tx, vt2 = ct2.dataTable, pt2 = [], gt2 = a2 && false === a2.includeStyles, mt2 = a2 && a2.saveAsView, bt2 = a2 && false === a2.includeEmptyRegionCells, yt2 = t4 && t4.parent && !y(t4.parent.bp), wt2 = a2 && a2.fileType === l.OpenSaveFileType.excel, Mt2 = [];
            for (bt2 && (u2 = l.UsedRangeType.all - l.UsedRangeType.colStyle - l.UsedRangeType.rowStyle - l.UsedRangeType.style - l.UsedRangeType.axis, (s2 = t4.getUsedRange(u2)) && (ft2 = s2.row, lt2 = s2.col, -1 !== s2.rowCount && (ht2 = s2.row + s2.rowCount), -1 !== s2.colCount && (dt2 = s2.col + s2.colCount))), h2 = { sheetData: f2 = { n_: v.XFileConstants.bo, rowCount: ct2.Sx, colCount: ct2.Tx }, hyperlinks: pt2 }, d2 = !t4.NMi && t4.getDefaultStyle(3), Object.keys(n3).forEach((function(t5) {
              var e4, r2 = n3[t5], o3 = r2 && r2.size, a3 = !F(o3) && o3 !== i3, u3 = r2 && false === r2.visible ? 1 : S;
              (true === a3 || u3) && ((e4 = f2[t5] = {}).h = a3 && o3 !== S ? +c.SJSColumnWidthHelper.pixelToPoint(o3).toFixed(2) : S, e4.v = u3);
            })), p2 = wt2 ? t4.Ut.Ehe()._he() : {}, g2 = ft2; g2 < ht2; g2++) if (m2 = f2[g2] || { r: g2 + 1 }, b2 = vt2[g2], w2 = p2[g2], M2 = void 0, x2 = (T2 = ct2.J_(g2, -1)) && T2.style, F(x2) || gt2 || (wt2 ? ("string" == typeof x2 && 0 === x2.indexOf(e3.Jd) && (A2 = x2, (x2 = t4.i3(A2, false)) || (x2 = (I2 = t4.parent) && I2.i3(A2, false))), m2.s = e3.getStyleIndex(x2)) : "string" == typeof x2 ? m2.t = e3.getOriginNamedStyleIndex(x2, t4) : x2 !== S && (m2.e = e3.getOriginStyleIndex(x2, t4)), M2 = true), b2 || w2) {
              for (k2 = lt2; k2 < dt2; k2++) {
                if (j2 = {}, D2 = void 0, !(N2 = b2 && b2[k2])) {
                  if (w2 && w2[k2]) N2 = w2[k2];
                  else if (D2 = ct2.getStyle(-1, k2, false), !(wt2 && (t4.tables.find(g2, k2) || x2 && D2))) continue;
                }
                if (N2 && (F(N2.tag) || (j2.tag = N2.tag), F(N2.altText) || (j2.altText = N2.altText), _2 = N2.bindingPath, F(_2) || (j2.bindingPath = _2)), D2 = ct2.getStyle(-1, k2, true), O2 = C, E2 = void 0, R2 = void 0, L2 = void 0, B2 = void 0, P2 = void 0, G2 = void 0, H2 = void 0, z2 = void 0, Y2 = null == N2 ? void 0 : N2.value, Z2 = ct2.getStyle(g2, k2, true), W2 = null == N2 ? void 0 : N2.hyperlink, F(Y2) && w2 && w2[k2] && (Y2 = w2[k2].value), (null == N2 ? void 0 : N2.fileGUID) && (z2 = null == N2 ? void 0 : N2.fileGUID), Q2 = false, K2 = false, mt2) {
                  if (!(J2 = ct2.TE(g2, k2, t4)) && yt2 && (J2 = t4.getFormatter(g2, k2)), U(J2) && (K2 = true, X2 = t4.Oe(g2, k2, 3, J2), !F(X2))) {
                    switch (q2 = typeof X2) {
                      case "boolean":
                        L2 = X2 ? 1 : 0;
                        break;
                      case "string":
                        H2 = tt2 = ($2 = Ut(X2, o2)).OADateNumber, E2 = nt2 = $2.valueIndex;
                        break;
                      case "object":
                        X2 instanceof Date ? (X2 = c.util.Z0(X2), Z2.formatter = "M/d/yyyy", E2 = o2 ? o2.getTextIndex(X2) : X2) : E2 = X2;
                        break;
                      default:
                        R2 = isFinite(X2) ? X2 : S;
                    }
                    Q2 = true;
                  }
                  t4.jzr && (et2 = t4.jzr(g2, k2)) && et2.success && (Y2 = et2.value, Q2 = false);
                }
                if (K2 && Z2.formatter && (Z2.formatter = void 0), !gt2) if (wt2) {
                  if (it2 = W2 || "string" == typeof Y2 && "/OADate" === Y2.substring(0, 7) || Y2 !== C && void 0 !== Y2 && (D2 || x2), Z2 ? O2 = Sn(t4, Z2) : it2 ? O2 = new r.Style() : (D2 || x2) && (rt2 = t4.getValue(g2, k2), (!F(rt2) || x2 && D2) && (O2 = new r.Style())), O2) {
                    if (O2.parentName) for ((ot2 = Sn(t4, O2.parentName)) && Tn(t4, O2, ot2); ot2 && ot2.parentName; ) (ot2 = Sn(t4, ot2.parentName)) && Tn(t4, O2, ot2);
                    x2 && Tn(t4, O2, x2), D2 && Tn(t4, O2, D2), d2 && Tn(t4, O2, d2), O2 = Mn(Y2, O2);
                  }
                } else "string" == typeof Z2 ? P2 = e3.getOriginNamedStyleIndex(Z2, t4) : Z2 !== S && (G2 = e3.getOriginStyleIndex(Z2, t4));
                if (F(Y2) && (P2 === S && G2 === S && F(O2) || gt2) && F(W2)) y(j2) || (m2[k2] = { lossless: j2 }, M2 = true);
                else {
                  if (M2 = true, !Q2 && !F(Y2)) switch ("object" === (at2 = typeof Y2) && Object.keys(Y2).length > 0 && (Y2 = In(Y2)).richText && (Y2.converted = S), at2) {
                    case "boolean":
                      L2 = Y2 ? 1 : 0;
                      break;
                    case "string":
                      H2 = tt2 = (ut2 = Ut(Y2, o2)).OADateNumber, E2 = nt2 = ut2.valueIndex;
                      break;
                    case "object":
                      E2 = Y2 && Y2.richText ? o2 ? o2.getTextIndex(Y2) : Y2 : Y2 && Y2 instanceof Date ? o2 ? o2.getTextIndex(Y2.toISOString()) : Y2 : F(Y2._error) && F(Y2._code) ? Y2 : { error: Y2._error, code: Y2._code };
                      break;
                    default:
                      R2 = isFinite(Y2) ? Y2 : S;
                  }
                  F(W2) || (wt2 && (O2 ? "string" == typeof O2 && (O2 = t4.u8(O2)) : O2 = new r.Style(), F(W2.linkColor) ? (W2.linkColor !== S || !O2.foreColor && O2.foreColor !== C) && (O2.foreColor = "hyperlink") : O2.foreColor = W2.linkColor, W2.drawUnderline && F(O2.textDecoration) ? O2.textDecoration = 1 : 2 !== O2.textDecoration && 4 !== O2.textDecoration || (O2.textDecoration += 1)), pt2.push({ row: g2, col: k2, value: N2.value, hyperlink: V(W2) })), O2 && (wt2 && O2.cellType && "20" === O2.cellType.typeName && (O2.wordWrap = true), B2 = e3.getStyleIndex(O2, 3, t4.name())), st2 = { s: B2, v: E2, n: R2, b: L2, t: P2, e: G2, o: H2, d: z2 }, z2 && Mt2.push(z2), y(j2) || (st2.lossless = j2), m2[k2] = st2;
                }
              }
              M2 && (f2[g2] = m2);
            } else M2 && (f2[g2] = m2);
            return Mt2.length && (f2.usedAttachmentFileGUIDs = Mt2), h2;
          }, t3.prototype.yh = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2, l2, h2, d2 = this, v2 = {};
            if (n3) for (f2 = n3.colCount, l2 = 0; l2 < f2; l2++) (h2 = d2.J_(-1, l2)) && h2.style && (v2[l2] = 1);
            Qt(this, t4, n3, e3, i3, r2, o2, a2, u2, s2, v2, c2);
          }, t3;
        })(), n2.Nsr = bt, yt = (function() {
          function t3() {
            this.infos = [], this.R8 = [];
          }
          return t3.prototype.NE = function(t4, n3) {
            var e3 = this.infos, i3 = e3[t4];
            return !i3 && n3 && (i3 = e3[t4] = {}), i3;
          }, t3.prototype.kE = function(t4, n3) {
            var e3 = this.infos, i3 = e3.length;
            0 <= t4 && t4 <= i3 && n3 > 0 && R(e3, i3, t4, n3);
          }, t3.prototype.DE = function(t4, n3, e3) {
            var i3, r2, o2 = this.infos, a2 = o2.length;
            if (0 <= t4 && t4 < a2 && n3 > 0) {
              if (n3 = x(n3, a2 - t4), e3) for (i3 = 0; i3 < n3; i3++) r2 = t4 + i3, e3.push([["infos", r2], o2[r2]]);
              L(o2, a2, t4, n3);
            }
          }, t3.prototype._E = function() {
            return this.infos.length;
          }, t3.prototype.EE = function() {
            return this.infos;
          }, t3.prototype.q_ = function(t4) {
            return this.infos[t4];
          }, t3.prototype.X_ = function(t4, n3, e3) {
            var i3 = this.infos[t4];
            this.infos[t4] = n3, e3 && (e3[0].push("infos", t4), e3[1] = i3, e3[2] = n3);
          }, t3.prototype.getSize = function(t4) {
            var n3 = this.infos[t4], e3 = C;
            return n3 && (false === n3.visible ? e3 = 0 : Et(n3.size) && (e3 = A(n3.size))), e3;
          }, t3.prototype.getColumnHeaderFitMode = function(t4) {
            var n3 = this.infos[t4], e3 = l.ColumnHeaderFitMode.normal;
            return n3 && (e3 = n3.columnHeaderFitMode || e3), e3;
          }, t3.prototype.setColumnHeaderFitMode = function(t4, n3, e3) {
            var i3 = this.NE(t4, true), r2 = i3.columnHeaderFitMode;
            r2 !== n3 && (i3.columnHeaderFitMode = n3), e3 && (e3[0].push("infos", t4, "columnHeaderFitMode"), e3[1] = r2);
          }, t3.prototype.getActualSize = function(t4) {
            var n3 = this.infos[t4];
            return n3 ? A(n3.size) : C;
          }, t3.prototype.setSize = function(t4, n3, e3) {
            var i3 = this.NE(t4, true), r2 = i3.size, o2 = false;
            return r2 !== n3 && (i3.size = n3, o2 = true), e3 && (e3[0].push("infos", t4, "size"), e3[1] = r2, e3[2] = n3), o2;
          }, t3.prototype.getStarSize = function(t4) {
            var n3 = this.infos[t4];
            return n3 ? n3.starSize : S;
          }, t3.prototype.setStarSize = function(t4, n3, e3) {
            var i3 = this.NE(t4, true), r2 = i3.starSize, o2 = r2 !== n3;
            return (!F(n3) || !F(r2)) && (r2 !== n3 && (F(n3) ? delete i3.starSize : i3.starSize = n3), e3 && (e3[0].push("infos", t4, "starSize"), e3[1] = r2, e3[2] = n3), o2);
          }, t3.prototype.getScrollOffsetX = function(t4) {
            var n3 = this.q_(t4), e3 = 0;
            return n3 && Et(n3.scrollOffsetX) && (e3 = n3.scrollOffsetX), e3;
          }, t3.prototype.setScrollOffsetX = function(t4, n3, e3) {
            var i3 = this.NE(t4, true);
            e3 && (n3 += i3.scrollOffsetX || 0), i3.scrollOffsetX = n3;
          }, t3.prototype.getScrollContentWidth = function(t4) {
            var n3 = this.q_(t4), e3 = this.getSize(t4), i3 = e3;
            return n3 && Et(n3.scrollContentWidth) && (i3 = n3.scrollContentWidth), I(i3, e3);
          }, t3.prototype.setScrollContentWidth = function(t4, n3) {
            var e3 = this.NE(t4, true), i3 = this.getSize(t4);
            n3 < i3 && (n3 = i3), e3.scrollContentWidth = n3;
          }, t3.prototype.getHiddenRows = function() {
            return this.R8;
          }, t3.prototype.wh = function(t4) {
            return this.infos;
          }, t3.prototype.yh = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = t4;
            if (s2) for (e3 = t4.rowCount, i3 = 0; i3 < e3; i3++) (r2 = s2[i3]) && (o2 = void 0, a2 = void 0, r2.h !== S && (o2 = Math.round(c.SJSColumnWidthHelper.pointToPixel(r2.h))), r2.v && (F(r2.l) || 0 === r2.l) && (a2 = false, u2.R8.push(i3)), false === a2 && 0 === o2 && (o2 = S), F(o2) || u2.setSize(+i3, o2), F(a2) || u2.setVisible(+i3, a2));
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, d2, v2, p2 = this.infos, g2 = [];
            if (t4 && t4.ignoreStarSize) for (n3 = 0; n3 < p2.length; n3++) F(p2[n3]) || (i3 = (e3 = p2[n3]).cellType, r2 = Nt(e3, ["cellType"]), g2[n3] = V(r2), i3 && (i3.toJSON && (i3 = i3.toJSON()), o2 = h.ti, a2 = i3.typeName, (u2 = o2[i3.type] || o2[a2] || s.getTypeFromString(a2)) && ((c2 = new u2()).fromJSON(i3, t4), g2[n3].cellType = c2)), delete g2[n3].starSize);
            else for (n3 = 0; n3 < p2.length; n3++) f2 = p2[n3], (d2 = !F(f2)) && (v2 = V(f2), (null == t4 ? void 0 : t4.isServer) ? (v2.size === E && delete v2.size, v2.columnHeaderFitMode === l.ColumnHeaderFitMode.normal && delete v2.columnHeaderFitMode, Object.keys(v2).length > 0 && (g2[n3] = v2)) : g2[n3] = v2);
            return g2.length > 0 ? g2 : S;
          }, t3.prototype.fromJSON = function(t4) {
            t4 && (this.infos = t4);
          }, t3;
        })(), n2.ksr = yt, wt = yt.prototype, b({ visible: true, resizable: true, pageBreak: false }, (function(t3, n3) {
          var e3 = t3[0].toUpperCase() + t3.substr(1);
          wt["get" + e3] = function(e4) {
            var i3 = n3, r2 = this.infos[e4];
            return r2 && !F(r2[t3]) && (i3 = r2[t3]), i3;
          }, wt["set" + e3] = function(n4, e4, i3) {
            var r2 = this.NE(n4, true), o2 = r2[t3];
            o2 !== e4 && (r2[t3] = e4), i3 && (i3[0].push("infos", n4, t3), i3[1] = o2, i3[2] = e4);
          };
        })), Mt = 20, Ct = 62, St = 40, n2.DEFAULT_COL_HEADER_ROW_HEIGHT = 20, Tt = (function() {
          function t3(e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, h2, d2, v2, p2;
            function g2(t4, n3, i4, r3) {
              var o3, a3;
              s2.P8 > 0 && s2.G8.push([["defaults", i4], r3, n3]), s2.Mf.zw(), "_isExcelDefaultColumnWidth" !== i4 && e3.$Dr(((o3 = { type: "updateSheetDefaultsOptions" })[i4] = n3, o3.oldValue = ((a3 = {})[i4] = r3, a3), o3));
            }
            this._featuresCache = {}, (s2 = this).RAe = this.L5e.bind(this), t3.E5e(s2.RAe), s2.Mf = e3, c2 = new bt(i3, r2, i3, r2, s2.onSheetModelChange(l.SheetArea.viewport)), s2.sheetModels = [S, new bt(o2, r2, 0, 0, s2.onSheetModelChange(l.SheetArea.colHeader)), new bt(i3, a2, 0, 0, s2.onSheetModelChange(l.SheetArea.rowHeader)), c2], c2.z8(), (f2 = s2.rowInfos = [])[0] = f2[1] = new yt(), f2[2] = f2[3] = new yt(), (h2 = s2.colInfos = [])[0] = h2[2] = new yt(), h2[1] = h2[3] = new yt(), d2 = function(t4) {
              return function(n3) {
                var e4;
                (null === (e4 = n3.value) || void 0 === e4 ? void 0 : e4.isAutoMerge) || s2.Mf.$Dr(kt({ sheetArea: t4 }, n3));
              };
            }, s2.spanModels = [S, new ft(d2(l.SheetArea.colHeader)), new ft(d2(l.SheetArea.rowHeader)), new ft(d2(l.SheetArea.viewport))], s2.defaultValueModels = [S, new mt(e3, o2, r2, l.SheetArea.colHeader), new mt(e3, i3, a2, l.SheetArea.rowHeader), new mt(e3, i3, r2, l.SheetArea.viewport)], s2.selectionModel = new vt(), (v2 = s2.colHeaderSelectionModel = new vt()).selectionPolicy = 1, s2.name = u2 || "", s2.isSelected = false, s2.zoomFactor = 1, Ft(p2 = s2.defaults = {}, "rowHeight", Mt, g2), Ft(p2, "colWidth", Ct, g2), Ft(p2, "rowHeaderColWidth", St, g2), Ft(p2, "colHeaderRowHeight", n2.DEFAULT_COL_HEADER_ROW_HEIGHT, g2), Ft(p2, "_isExcelDefaultColumnWidth", false, g2), s2.P8 = 0, t3.et(this, "init"), s2.V8(i3, r2), s2.F8 = {};
          }
          return t3.prototype.onSheetModelChange = function(t4) {
            var n3 = this;
            return function(e3) {
              e3.sheetArea = t4;
              var i3 = e3.changingContext;
              e3.isChanging ? n3.Mf.THr(e3) : n3.Mf.$Dr(e3, i3);
            };
          }, t3.prototype.L5e = function() {
            this._featuresCache = {};
          }, t3.prototype.getUsedRange = function(t4, n3) {
            var e3 = this, i3 = {};
            return J(i3, e3.ZE(t4)), J(i3, e3.sheetModels[3].hE(t4, n3)), J(i3, e3.defaultValueModels[3].hE(t4, n3)), J(i3, e3.WE(t4, n3)), J(i3, e3.QE(t4, n3)), i3;
          }, t3.prototype.ZE = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            if (t4 & l.UsedRangeType.span && (i3 = (e3 = (n3 = this).spanModels[l.SheetArea.viewport]).spans, !F(i3) && i3.length > 0)) {
              for (r2 = {}, o2 = 0, a2 = i3; o2 < a2.length; o2++) u2 = a2[o2], J(r2, X(u2));
              return r2;
            }
          }, t3.prototype.WE = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = !(t4 & l.UsedRangeType.axis);
            if (t4 & l.UsedRangeType.data || !m2) {
              if (e3 = m2 ? function(t5) {
                return !F(t5) && !F(t5.name);
              } : function(t5) {
                return !F(t5);
              }, r2 = (i3 = this).colInfos[3].infos, o2 = {}, u2 = (a2 = Object.keys(r2)).length, s2 = (null == n3 ? void 0 : n3.col) || -1, c2 = n3 ? n3.col + n3.colCount : 1 / 0, u2 > 0) {
                for (d2 = 0, v2 = a2; d2 < v2.length; d2++) if (+(p2 = v2[d2]) >= s2 && e3(r2[p2])) {
                  f2 = +p2;
                  break;
                }
                for (g2 = u2 - 1; g2 >= 0; g2--) if (+a2[g2] < c2 && e3(r2[a2[g2]])) {
                  h2 = +a2[g2];
                  break;
                }
                F(f2) || F(h2) || J(o2, { minRow: 0, minCol: f2, maxRow: 1 / 0, maxCol: h2 });
              }
              return o2;
            }
          }, t3.prototype.QE = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2;
            if (t4 & l.UsedRangeType.axis) {
              if (i3 = (e3 = this).rowInfos[3].infos, r2 = {}, s2 = (u2 = Object.keys(i3)).length, c2 = (null == n3 ? void 0 : n3.row) || -1, f2 = n3 ? n3.row + n3.rowCount : 1 / 0, s2 > 0) {
                for (h2 = 0, d2 = u2; h2 < d2.length; h2++) if (+(v2 = d2[h2]) >= c2 && !F(i3[v2])) {
                  o2 = +v2;
                  break;
                }
                for (p2 = s2 - 1; p2 >= 0; p2--) if (+u2[p2] < f2 && !F(i3[u2[p2]])) {
                  a2 = +u2[p2];
                  break;
                }
                F(o2) || F(a2) || J(r2, { minRow: o2, minCol: 0, maxRow: a2, maxCol: 1 / 0 });
              }
              return r2;
            }
          }, t3.prototype.KE = function(t4, n3, e3, i3, r2) {
            if (!(3 !== e3 || t4 < 0 || n3 < 0) && this.Mf && this.Mf.hasFormula !== S) {
              var o2 = this.W_(3).J_(t4, n3, !!r2);
              bn(o2, i3, this.Mf.hasFormula(t4, n3, e3), o2 && o2.style, this.F8, this.Mf.parent);
            }
          }, t3.prototype.JE = function(t4, n3, e3) {
            if (!(3 !== e3 || t4 < 0 || n3 < 0)) {
              var i3 = this.W_(3).J_(t4, n3);
              i3 && gn(i3);
            }
          }, t3.prototype.V8 = function(t4, n3) {
            var e3 = this;
            e3.L8({ type: l.AxisInfoChangeType.setRowCount, count: t4 }), e3.L8({ type: l.AxisInfoChangeType.setColumnCount, count: n3 });
          }, t3.prototype.L8 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, h2 = f2.Mf, d2 = t4.type, v2 = t4.sheetArea, p2 = void 0 === v2 ? l.SheetArea.viewport : v2;
            if (p2 === l.SheetArea.viewport) if (F(f2.XE) && (f2.XE = []), F(f2.qE) && (f2.qE = []), f2.$E) f2.tj(t4);
            else switch (n3 = f2.XE, e3 = f2.qE, d2) {
              case l.AxisInfoChangeType.deleteRows:
                i3 = t4.index, r2 = t4.count, n3.splice(i3, r2);
                break;
              case l.AxisInfoChangeType.deleteColumns:
                i3 = t4.index, r2 = t4.count, e3.splice(i3, r2);
                break;
              case l.AxisInfoChangeType.setRowHeight:
              case l.AxisInfoChangeType.setRowVisible:
                i3 = t4.index, o2 = t4.value, n3[i3] = o2;
                break;
              case l.AxisInfoChangeType.setColumnWidth:
              case l.AxisInfoChangeType.setColumnVisible:
                i3 = t4.index, o2 = t4.value, e3[i3] = o2;
                break;
              case l.AxisInfoChangeType.filterRows:
                for (u2 = 0, s2 = a2 = t4.index; u2 < s2.length; u2++) i3 = s2[u2], o2 = h2.getRowHeight(i3), n3[i3] = o2;
                break;
              case l.AxisInfoChangeType.outlineExpandRows:
                for (a2 = t4.index, c2 = 0; c2 < a2.length; c2++) i3 = a2[c2], o2 = h2.getRowHeight(i3), n3[i3] = o2;
                break;
              case l.AxisInfoChangeType.outlineExpandColumns:
                for (a2 = t4.index, c2 = 0; c2 < a2.length; c2++) i3 = a2[c2], o2 = h2.getColumnWidth(i3), e3[i3] = o2;
            }
          }, t3.prototype.nj = function(t4) {
            if (this.XE) {
              var n3 = this.XE[t4];
              return F(n3) ? this.defaults.rowHeight : n3;
            }
          }, t3.prototype.ej = function(t4) {
            if (this.qE) {
              var n3 = this.qE[t4];
              return F(n3) ? this.defaults.colWidth : n3;
            }
          }, t3.prototype.v8 = function() {
            this.$E = [];
          }, t3.prototype.A8 = function() {
            var t4, n3, e3, i3 = this, r2 = i3.$E;
            if (i3.$E = C, r2) for (t4 = 0, n3 = r2; t4 < n3.length; t4++) e3 = n3[t4], i3.L8(e3);
          }, t3.prototype.tj = function(t4) {
            this.$E && this.$E.push(t4);
          }, t3.prototype.m8 = function() {
            var t4 = this;
            t4.XE = C, t4.qE = C;
          }, t3.prototype.ij = function() {
            this.F8 = C;
          }, t3.prototype.L0 = function(n3) {
            if (false !== n3) {
              var e3 = this;
              e3.Mf = C, e3.sheetModels = C, e3.defaultValueModels && (e3.defaultValueModels.forEach((function(t4) {
                null == t4 || t4.dispose();
              })), e3.defaultValueModels = C), e3.m8(), e3.ij(), t3.EAe(this.RAe);
            }
            t3.et(this, "dispose", { clearCache: n3 });
          }, t3.prototype.addRows = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2;
            void 0 === o2 && (o2 = l.SheetArea.viewport), u2 = (a2 = this).Mf, a2.P8 > 0 && (s2 = { row: n3, rowCount: e3, type: "addRows", sheetArea: o2 }, a2.G8.push(s2), a2.G8.styleChanges = []), 1 === o2 ? (a2.W_(1).rE(n3, e3, r2), a2.Ehe(1).rE(n3, e3), a2.Q_(true, 1).kE(n3, e3), a2.K_(1).rE(n3, e3), u2.$Dr({ type: "addRows", sheetArea: o2, row: n3, rowCount: e3 })) : (a2.W_(3).rE(n3, e3, r2), a2.W_(2).rE(n3, e3, r2), a2.Ehe(3).rE(n3, e3), a2.Ehe(2).rE(n3, e3), a2.Q_(true, 3).kE(n3, e3), a2.K_(3).rE(n3, e3), a2.K_(2).rE(n3, e3), u2.$Dr({ type: "addRows", sheetArea: l.SheetArea.viewport, row: n3, rowCount: e3 }), !r2 && m && u2.Uw(3).t8.rE(n3, e3)), i3 || t3.et(a2, "addRows", { row: n3, rowCount: e3, sheetArea: o2, changes: a2.G8 }), a2.L8({ type: l.AxisInfoChangeType.addRows, index: n3, count: e3, sheetArea: o2 });
          }, t3.prototype.rj = function(n3, e3) {
            var i3 = this, r2 = n3.row, o2 = n3.rowCount, a2 = n3.sheetArea;
            e3 ? i3.addRows(r2, o2, true, !e3, a2) : i3.deleteRows(r2, o2, true, a2), t3.et(i3, "undoAddRows", { row: r2, rowCount: o2, sheetArea: a2 });
          }, t3.prototype.deleteRows = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, T2;
            if (void 0 === r2 && (r2 = l.SheetArea.viewport), s2 = (u2 = this).Mf, c2 = r2 === l.SheetArea.colHeader, f2 = null === (a2 = null == o2 ? void 0 : o2.triggerChanged) || void 0 === a2 || a2, u2.P8 > 0 && (d2 = [], v2 = [], p2 = c2 ? [] : [["spanModels", 3], S], g2 = c2 ? [] : [["spanModels", 2], S], b2 = [], y2 = [], h2 = { row: n3, rowCount: e3, type: "deleteRows", sheetArea: r2 }, u2.G8 && (u2.G8.styleChanges = [])), c2 ? (w2 = f2 && s2.THr({ type: "deleteRows", sheetArea: r2, row: n3, rowCount: e3 }), u2.W_(1).yE(n3, e3), u2.Ehe(1).yE(n3, e3), u2.Q_(true, 1).DE(n3, e3), u2.K_(1).aE(n3, e3), f2 && s2.$Dr({ type: "deleteRows", sheetArea: r2, row: n3, rowCount: e3 }, w2)) : (m && s2.Uw(3).t8.aE(n3, e3, true), w2 = f2 && s2.THr({ type: "deleteRows", sheetArea: l.SheetArea.viewport, row: n3, rowCount: e3 }), u2.W_(3).yE(n3, e3, d2), u2.W_(2).yE(n3, e3, v2), u2.Ehe(3).yE(n3, e3, y2), u2.Ehe(2).yE(n3, e3), u2.Q_(true, 3).DE(n3, e3, b2), u2.K_(3).aE(n3, e3, p2), u2.K_(2).aE(n3, e3, g2), f2 && s2.$Dr({ type: "deleteRows", sheetArea: l.SheetArea.viewport, row: n3, rowCount: e3 }, w2)), i3 || t3.et(u2, "deleteRows", { row: n3, rowCount: e3, changes: u2.G8, sheetArea: r2 }), h2) {
              for (u2.G8.push(h2), M2 = h2.changes = [], C2 = [$, 3], T2 = 0; T2 < d2.length; T2++) d2[T2][0] = C2.concat(d2[T2][0]), M2.push(d2[T2]);
              for (C2 = [$, 2], T2 = 0; T2 < v2.length; T2++) v2[T2][0] = C2.concat(v2[T2][0]), M2.push(v2[T2]);
              for (p2.length > 0 && M2.push(p2), g2.length > 0 && M2.push(g2), C2 = [_, 3], T2 = 0; T2 < b2.length; T2++) b2[T2][0] = C2.concat(b2[T2][0]), M2.push(b2[T2]);
              for (C2 = [tt, 3], T2 = 0; T2 < y2.length; T2++) y2[T2][0] = C2.concat(y2[T2][0]), M2.push(y2[T2]);
            }
            u2.L8({ type: l.AxisInfoChangeType.deleteRows, index: n3, count: e3, sheetArea: r2 });
          }, t3.prototype.oj = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = t4.row, u2 = t4.rowCount, s2 = t4.sheetArea;
            if (n3) o2.deleteRows(a2, u2, true, s2);
            else {
              for (o2.addRows(a2, u2, true, true, s2), i3 = (e3 = t4.changes).length - 1; i3 >= 0; i3--) ln(o2, e3[i3]);
              m && o2.Mf.Uw(3).t8.Lme(a2, u2);
            }
            (r2 = o2.Mf && o2.Mf.aj) && r2.splice(r2.length - u2, u2);
          }, t3.prototype.addColumns = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2;
            void 0 === r2 && (r2 = l.SheetArea.viewport), u2 = (a2 = this).Mf, a2.P8 > 0 && (s2 = { col: n3, colCount: e3, type: "addColumns", sheetArea: r2 }, a2.G8.push(s2), a2.G8.styleChanges = []), 2 === r2 ? (a2.W_(2).oE(n3, e3), a2.Ehe(2).oE(n3, e3), a2.Q_(false, 2).kE(n3, e3), a2.K_(2).oE(n3, e3), u2.$Dr({ type: "addColumns", sheetArea: r2, col: n3, colCount: e3 })) : (a2.W_(3).oE(n3, e3), a2.W_(1).oE(n3, e3), a2.Ehe(3).oE(n3, e3), a2.Ehe(1).oE(n3, e3), a2.Q_(false, 3).kE(n3, e3), a2.K_(3).oE(n3, e3), a2.K_(1).oE(n3, e3), u2.$Dr({ type: "addColumns", sheetArea: l.SheetArea.viewport, col: n3, colCount: e3 }), !o2 && m && a2.Mf.Uw(3).t8.oE(n3, e3)), i3 || t3.et(a2, "addColumns", { col: n3, colCount: e3, changes: a2.G8, sheetArea: r2 }), a2.L8({ type: l.AxisInfoChangeType.addColumns, index: n3, count: e3, sheetArea: r2 });
          }, t3.prototype.uj = function(t4, n3) {
            var e3 = this, i3 = t4.col, r2 = t4.colCount, o2 = t4.sheetArea;
            n3 ? e3.addColumns(i3, r2, true, o2) : e3.deleteColumns(i3, r2, true, o2);
          }, t3.prototype.deleteColumns = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, T2;
            if (void 0 === r2 && (r2 = l.SheetArea.viewport), s2 = (u2 = this).Mf, c2 = r2 === l.SheetArea.rowHeader, f2 = null === (a2 = null == o2 ? void 0 : o2.triggerChanged) || void 0 === a2 || a2, u2.P8 > 0 && (d2 = [], v2 = [], p2 = c2 ? [] : [["spanModels", 3], S], g2 = c2 ? [] : [["spanModels", 1], S], b2 = [], y2 = [], h2 = { col: n3, colCount: e3, type: "deleteColumns", sheetArea: r2 }, u2.G8 && (u2.G8.styleChanges = [])), c2 ? (w2 = f2 && s2.THr({ type: "deleteColumns", sheetArea: r2, col: n3, colCount: e3 }), u2.W_(2).wE(n3, e3), u2.Ehe(2).wE(n3, e3), u2.Q_(false, 2).DE(n3, e3), u2.K_(2).uE(n3, e3), f2 && s2.$Dr({ type: "deleteColumns", sheetArea: r2, col: n3, colCount: e3 }, w2)) : (w2 = f2 && s2.THr({ type: "deleteColumns", sheetArea: l.SheetArea.viewport, col: n3, colCount: e3 }), m && s2.Uw(3).t8.uE(n3, e3, true), u2.W_(3).wE(n3, e3, d2), u2.W_(1).wE(n3, e3, v2), u2.Ehe(3).wE(n3, e3, y2), u2.Ehe(1).wE(n3, e3), u2.Q_(false, 3).DE(n3, e3, b2), u2.K_(3).uE(n3, e3, p2), u2.K_(1).uE(n3, e3, g2), f2 && s2.$Dr({ type: "deleteColumns", sheetArea: l.SheetArea.viewport, col: n3, colCount: e3 }, w2)), i3 || t3.et(u2, "deleteColumns", { col: n3, colCount: e3, changes: u2.G8, sheetArea: r2 }), h2) {
              for (u2.G8.push(h2), M2 = h2.changes = [], C2 = [$, 3], T2 = 0; T2 < d2.length; T2++) d2[T2][0] = C2.concat(d2[T2][0]), M2.push(d2[T2]);
              for (C2 = [$, 1], T2 = 0; T2 < v2.length; T2++) v2[T2][0] = C2.concat(v2[T2][0]), M2.push(v2[T2]);
              for (p2.length > 0 && M2.push(p2), g2.length > 0 && M2.push(g2), C2 = [O, 3], T2 = 0; T2 < b2.length; T2++) b2[T2][0] = C2.concat(b2[T2][0]), M2.push(b2[T2]);
              for (C2 = [tt, 3], T2 = 0; T2 < y2.length; T2++) y2[T2][0] = C2.concat(y2[T2][0]), M2.push(y2[T2]);
            }
            u2.L8({ type: l.AxisInfoChangeType.deleteColumns, index: n3, count: e3, sheetArea: r2 });
          }, t3.prototype.sj = function(t4, n3) {
            var e3, i3, r2 = this, o2 = t4.col, a2 = t4.colCount, u2 = t4.sheetArea;
            if (n3) r2.deleteColumns(o2, a2, true, u2);
            else {
              for (r2.addColumns(o2, a2, true, u2, true), i3 = (e3 = t4.changes).length - 1; i3 >= 0; i3--) ln(r2, e3[i3]);
              m && r2.Mf.Uw().t8.Bme(o2, a2);
            }
          }, t3.prototype.getRowCount = function(t4) {
            return this.W_(t4).getRowCount();
          }, t3.prototype.setRowCount = function(t4, n3, e3) {
            var i3 = this, r2 = i3.getRowCount(n3);
            i3.P8 > 0 && (i3.G8.push({ oldRowCount: r2, sheetArea: n3, type: "setRowCount" }), i3.G8.styleChanges = []), 3 === n3 || 2 === n3 ? (r2 > t4 && i3.deleteRows(t4, r2 - t4, e3), i3.W_(3).setRowCount(t4), i3.W_(2).setRowCount(t4), i3.Ehe(3).setRowCount(t4), i3.Mf.ki(c.Events.WorksheetDataChanged, { type: "count" }), i3.Mf.$Dr({ type: "setRowCount", sheetArea: l.SheetArea.viewport, count: t4 })) : 1 === n3 && (r2 > t4 && i3.deleteRows(t4, r2 - t4, e3, n3), i3.W_(n3).setRowCount(t4), i3.Mf.$Dr({ type: "setRowCount", sheetArea: l.SheetArea.colHeader, count: t4 })), i3.L8({ type: l.AxisInfoChangeType.setRowCount, count: t4, sheetArea: n3 });
          }, t3.prototype.cj = function(t4) {
            var n3 = this;
            n3.W_(3).setRowCount(t4), n3.W_(2).setRowCount(t4), n3.Ehe(3).setRowCount(t4), n3.L8({ type: l.AxisInfoChangeType.setRowCount, count: t4, sheetArea: 3 });
          }, t3.prototype.fj = function(t4, n3) {
            n3 ? this.setRowCount(t4.rowCount, t4.sheetArea, true) : this.setRowCount(t4.oldRowCount, t4.sheetArea, true);
          }, t3.prototype.getColumnCount = function(t4) {
            return this.W_(t4).getColumnCount();
          }, t3.prototype.setColumnCount = function(t4, n3, e3) {
            var i3 = this, r2 = i3.getColumnCount(n3);
            i3.P8 > 0 && (i3.G8.push({ oldColCount: r2, sheetArea: n3, type: "setColumnCount" }), i3.G8.styleChanges = []), 3 === n3 || 1 === n3 ? (r2 > t4 && i3.deleteColumns(t4, r2 - t4, e3), i3.W_(3).setColumnCount(t4), i3.W_(1).setColumnCount(t4), i3.Ehe(3).setColumnCount(t4), i3.Mf.ki(c.Events.WorksheetDataChanged, { type: "count" }), i3.Mf.$Dr({ type: "setColumnCount", sheetArea: l.SheetArea.viewport, count: t4 })) : 2 === n3 && (r2 > t4 && i3.deleteColumns(t4, r2 - t4, e3, n3), i3.W_(n3).setColumnCount(t4), i3.Mf.$Dr({ type: "setColumnCount", sheetArea: n3, count: t4 })), i3.L8({ type: l.AxisInfoChangeType.setColumnCount, count: t4, sheetArea: n3 });
          }, t3.prototype.lj = function(t4, n3) {
            n3 ? this.setColumnCount(t4.colCount, t4.sheetArea, true) : this.setColumnCount(t4.oldColCount, t4.sheetArea, true);
          }, t3.prototype.getLastNonNullRow = function(n3, e3) {
            var i3, r2;
            return F(n3) && (n3 = 3), i3 = { isRow: true, sheetArea: n3, index: S, isIndexGet: false }, t3.et(this, "getLastNonNullRowOrCol", i3), i3.isIndexGet ? i3.index : (r2 = e3 ? 0 : this.Q_(true, n3)._E() - 1, I(this.W_(n3).I8, this.K_(n3).I8, this.Ehe(n3).I8, r2));
          }, t3.prototype.getLastNonNullCol = function(n3, e3) {
            var i3, r2;
            return F(n3) && (n3 = 3), i3 = { isRow: false, sheetArea: n3, index: S, isIndexGet: false }, t3.et(this, "getLastNonNullRowOrCol", i3), i3.isIndexGet ? i3.index : (r2 = e3 ? 0 : this.Q_(false, n3)._E() - 1, I(this.W_(n3).x8, this.K_(n3).x8, this.Ehe(n3).x8, r2));
          }, t3.prototype.getFreeAreaRowCount = function(t4) {
            var n3 = this.W_(t4);
            return n3 && n3.getFreeAreaRowCount();
          }, t3.prototype.getFreeAreaColumnCount = function(t4) {
            var n3 = this.W_(t4);
            return n3 && n3.getFreeAreaColumnCount();
          }, t3.prototype.setFreeAreaRowCount = function(t4, n3) {
            this.W_(n3).setFreeAreaRowCount(t4);
          }, t3.prototype.setFreeAreaColumnCount = function(t4, n3) {
            this.W_(n3).setFreeAreaColumnCount(t4);
          }, t3.prototype.hj = function() {
            var t4 = this, n3 = t4.Mf, e3 = 0 !== n3.ot().height && t4.mj(true, n3.defaults.rowHeight), i3 = 0 !== n3.ot().width && t4.mj(false, n3.defaults.colWidth);
            function r2(t5, e4) {
              var i4, r3, o2, a2, u2 = e4.length;
              for (i4 = 0; i4 < u2; i4++) r3 = e4[i4][0], o2 = e4[i4][1], (a2 = e4[i4][2]) !== o2 && (t5 ? n3.dj(r3, 3, "height", o2, a2) : n3.vj(r3, 3, "width", o2, a2));
            }
            e3 && r2(true, e3), i3 && r2(false, i3);
          }, t3.prototype.mj = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2 = this, S2 = C2.Mf, T2 = [], x2 = S2.zoom(), I2 = t4 ? S2.getRowCount() : S2.getColumnCount(), N2 = C2.Q_(t4, 3), j2 = 0, D2 = 0;
            if (S2.gj && (D2 = t4 ? S2.gj().height : S2.gj().width), t4) {
              if (S2.options.colHeaderVisible) for (i3 = 0; i3 < S2.getRowCount(1); i3++) j2 += k(x2 * S2.getRowHeight(i3, 1));
              e3 = S2.ot().height - S2.options.sheetAreaOffset.top - D2 - j2;
            } else {
              if (S2.options.rowHeaderVisible) for (i3 = 0; i3 < S2.getColumnCount(2); i3++) j2 += k(x2 * S2.getColumnWidth(i3, 2));
              e3 = S2.ot().width - S2.options.sheetAreaOffset.left - D2 - j2;
            }
            for (r2 = [], o2 = [], a2 = [], u2 = 0, s2 = t4 ? S2.getRowVisible : S2.getColumnVisible, i3 = 0; i3 < I2; i3++) if (c2 = s2.call(S2, i3), f2 = S2.Ut.getSize(t4, 3, i3), h2 = S2.Ut.getStarSize(t4, 3, i3), M.test(h2)) d2 = "*" === h2 ? 1 : parseFloat(h2.replace("*", "")), c2 && d2 > 0 ? (u2 += d2, r2.push(i3), o2.push(d2), a2.push(f2)) : T2.push([i3, 0, f2]);
            else if (f2 = Et(f2) ? Math.floor(f2) : n3, c2 && (e3 -= k(x2 * f2)) < 1) return;
            if (!(u2 + T2.length === 0 || e3 < 1)) {
              for (v2 = r2.length, i3 = 0; i3 < v2 - 1; i3++) if (p2 = e3 / u2 / x2, d2 = o2[i3], f2 = A(p2 * d2), g2 = k(x2 * f2), T2.push([r2[i3], f2, a2[i3]]), e3 -= g2, u2 -= d2, g2 < 1 || e3 < 1) return;
              for (m2 = k((e3 - 1e-4) / x2), T2.push([r2[v2 - 1], m2, a2[v2 - 1]]), i3 = 0; i3 < T2.length; i3++) b2 = T2[i3][0], y2 = T2[i3][1], N2.setSize(b2, y2), w2 = t4 ? l.AxisInfoChangeType.setRowHeight : l.AxisInfoChangeType.setColumnWidth, C2.L8({ type: w2, index: b2 });
              return T2;
            }
          }, t3.prototype.setCellState = function(t4, n3, e3, i3, r2) {
            var o2 = this.W_(r2);
            o2 && o2.setCellState(t4, n3, e3, i3);
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3 = this, r2 = {}, o2 = i3.Mf;
            return r2.data = i3.W_(3).toJSON(3, t4, i3.Mf), r2.rowHeaderData = i3.W_(2).toJSON(2, t4), r2.colHeaderData = i3.W_(1).toJSON(1, t4), r2.rows = i3.Q_(true, 3).toJSON(t4), r2.columns = i3.Q_(false, 3).toJSON(t4), r2.rowHeaderColInfos = i3.Q_(false, 2).toJSON(t4), r2.colHeaderRowInfos = i3.Q_(true, 1).toJSON(t4), r2.defaultData = i3.Ehe(3).toJSON(), o2.filterRowsVisibleInfo && !o2.filterRowsVisibleInfo.empty && i3.updateToJsonRowInfo(o2.filterRowsVisibleInfo.rowsVisibleInfo, r2, o2), r2.leftCellIndex = o2.getViewportLeftColumn(1), r2.topCellIndex = o2.getViewportTopRow(1), (n3 = t4 && t4.ignoreStyle) || (r2.spans = fn(i3.K_(3).toJSON()), r2.rowHeaderSpan = fn(i3.K_(2).toJSON()), r2.colHeaderSpan = fn(i3.K_(1).toJSON())), r2.selections = i3.selectionModel.toJSON(), (e3 = Nn(o2.defaults, null == t4 ? void 0 : t4.isServer)) && (r2.defaults = e3), r2;
          }, t3.prototype.updateToJsonRowInfo = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            for (F(n3.rows) && (n3.rows = []), i3 = n3.rows, r2 = e3.getRowCount(), o2 = 0; o2 < r2; o2++) (a2 = false === t4[o2]) && (F(i3[o2]) ? i3[o2] = {} : i3[o2] = kt({}, i3[o2]), i3[o2].visible = false, i3[o2].isFilter = true);
          }, t3.prototype.fromJSON = function(t4, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.F8;
            if (m2.W_(3).fromJSON(t4.data, e3, i3, b2, r2, 3, o2), m2.W_(2).fromJSON(t4.rowHeaderData, e3, i3, b2), m2.W_(1).fromJSON(t4.colHeaderData, e3, i3, b2), m2.Q_(true, 3).fromJSON(t4.rows), m2.Q_(false, 3).fromJSON(t4.columns), m2.Q_(false, 2).fromJSON(t4.rowHeaderColInfos), m2.Q_(true, 1).fromJSON(t4.colHeaderRowInfos), m2.Ehe(3).fromJSON(t4.defaultData), t4 && t4.rows) for (u2 = 0, s2 = a2 = Object.keys(t4.rows); u2 < s2.length; u2++) c2 = s2[u2], f2 = t4.rows[c2], F(f2) || m2.L8({ type: l.AxisInfoChangeType.setRowHeight, index: +c2 });
            if (t4 && t4.columns) for (h2 = 0, d2 = a2 = Object.keys(t4.columns); h2 < d2.length; h2++) c2 = d2[h2], f2 = t4.columns[c2], F(f2) || m2.L8({ type: l.AxisInfoChangeType.setColumnWidth, index: +c2 });
            (v2 = i3 && i3.ignoreStyle) || (m2.K_(3).fromJSON(t4.spans, m2.getRowCount(), m2.getColumnCount()), m2.K_(2).fromJSON(t4.rowHeaderSpan), m2.K_(1).fromJSON(t4.colHeaderSpan)), m2.Mf.showCell(t4.topCellIndex || 0, t4.leftCellIndex || 0, l.VerticalPosition.top, l.HorizontalPosition.left), m2.selectionModel.fromJSON(t4.selections, t4.rowCount, t4.columnCount), m2.Rue(t4.tag), (p2 = t4.defaults) !== S && ((g2 = m2.defaults).colHeaderRowHeight = _t(p2.colHeaderRowHeight, n2.DEFAULT_COL_HEADER_ROW_HEIGHT), g2.colWidth = _t(p2.colWidth, Ct), g2.rowHeaderColWidth = _t(p2.rowHeaderColWidth, St), g2.rowHeight = _t(p2.rowHeight, Mt), g2._isExcelDefaultColumnWidth = p2._isExcelDefaultColumnWidth);
          }, t3.prototype.Rue = function(t4) {
            var n3, e3, i3, r2;
            t4 !== S && t4 !== C && (n3 = this, typeof (e3 = t4.typeName) === T && (i3 = s.getTypeFromString(e3)) && ((r2 = new i3()).fromJSON && r2.fromJSON(t4), t4 = r2), n3.do("setValueForKey", -1, -1, "tag", t4, 3));
          }, t3.prototype.wh = function(t4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = b2.defaults.rowHeight, w2 = b2.Q_(true, 3).wh(i3), M2 = b2.W_(3).wh(b2.Mf, w2, t4, y2, e3, i3), C2 = M2.sheetData, S2 = M2.hyperlinks, T2 = {};
            return i3 && (T2.saveAsView = i3.saveAsView, T2.ignoreStyle = false === i3.includeStyles), r2 = b2.W_(2).toJSON(2, T2), o2 = b2.W_(1).toJSON(1, T2), a2 = b2.Q_(false, 2).toJSON(T2), u2 = b2.Q_(true, 1).toJSON(T2), s2 = b2.Ehe(3).wh(i3), c2 = b2.getValueForKey(-1, -1, "tag", 3), i3 && false === i3.includeStyles || (f2 = fn(b2.K_(2).toJSON()), l2 = fn(b2.K_(1).toJSON())), d2 = { colHeaderRowHeight: (h2 = b2.defaults).colHeaderRowHeight, rowHeaderColWidth: h2.rowHeaderColWidth }, v2 = [], w2.forEach((function(t5, n3) {
              t5 && t5.starSize && (v2[n3] = { starSize: t5.starSize });
            })), p2 = b2.selectionModel.selectionPolicy, g2 = b2.selectionModel.selectionUnit, m2 = d2.rowHeaderColWidth === St && d2.colHeaderRowHeight === n2.DEFAULT_COL_HEADER_ROW_HEIGHT, { sheetData: C2, hyperlinks: S2, rowHeaderData: r2, colHeaderData: o2, rowHeaderColInfos: a2, colHeaderRowInfos: u2, rowHeaderSpan: f2, colHeaderSpan: l2, rowInfos: v2, defaultData: s2, tag: c2, defaults: m2 ? void 0 : d2, selectionPolicy: p2, selectionUnit: g2 };
          }, t3.prototype.yh = function(t4, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, v2, p2, g2, m2 = this;
            m2.Mf && (m2.Q_(true, 3).yh(t4, i3), m2.W_(3).yh(m2.Mf, t4, e3, i3, S, o2, a2, m2.F8, u2, s2), r2 && (c2 = {}, i3 && (c2.ignoreStyle = false === i3.includeStyles, d.Util.Mo(i3) && (c2.incrementalLoading = true)), m2.W_(2).fromJSON(r2.rowHeaderData, S, c2), m2.W_(1).fromJSON(r2.colHeaderData, S, c2), m2.Q_(false, 2).fromJSON(r2.rowHeaderColInfos), m2.Q_(true, 1).fromJSON(r2.colHeaderRowInfos), m2.Ehe(3).yh(r2.defaultData), i3 && false === i3.includeStyles || (m2.K_(2).fromJSON(r2.rowHeaderSpan), m2.K_(1).fromJSON(r2.colHeaderSpan)), f2 = m2.Q_(true, 3), (l2 = r2.rowInfos || []).forEach((function(t5, n3) {
              F(t5 && t5.starSize) || f2.setStarSize(n3, t5.starSize);
            })), (h2 = r2.defaults) !== S && ((v2 = m2.defaults).colHeaderRowHeight = _t(h2.colHeaderRowHeight, n2.DEFAULT_COL_HEADER_ROW_HEIGHT), v2.rowHeaderColWidth = _t(h2.rowHeaderColWidth, St)), (p2 = r2.selectionPolicy) !== S && (m2.selectionModel.selectionPolicy = +p2), (g2 = r2.selectionUnit) !== S && (m2.selectionModel.selectionUnit = +g2), m2.Rue(r2.tag)));
          }, t3.prototype.startTransaction = function() {
            var n3, e3, i3, r2;
            0 === this.P8 && (this.G8 = [], (r2 = !(i3 = this.Mf).isEventSuspended()) && (this.G8.events = []), t3.et(this, "startTransaction")), this.P8++, null === (e3 = null === (n3 = this.Mf) || void 0 === n3 ? void 0 : n3.startBatchOp) || void 0 === e3 || e3.call(n3);
          }, t3.prototype.endTransaction = function() {
            var n3, e3, i3, r2;
            return this.P8--, null === (e3 = null === (n3 = this.Mf) || void 0 === n3 ? void 0 : n3.endBatchOp) || void 0 === e3 || e3.call(n3), 0 === this.P8 ? (t3.et(this, "endTransaction"), i3 = this.G8, this.G8 = S, (r2 = i3.events) && 0 === r2.length && delete i3.events, delete i3.diffCache, delete i3.styleChanges, i3) : (this.P8 < 0 && (this.P8 = 0), []);
          }, t3.prototype.pj = function() {
            var t4 = this.G8;
            if (t4) return t4.calc || (t4.calc = []), t4.calc;
          }, t3.prototype.applyChange = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this, f2 = t4.type;
            !f2 && t4.length > 0 ? (ln(c2, t4, n3), r2 = (i3 = Array.isArray(t4[0]) ? t4[0] : t4)[1], o2 = i3[3], a2 = i3[4], r2 > 0 && o2 >= 0 && a2 >= 0 && (s2 = (u2 = c2.W_(r2)).J_(o2, a2)) && en(s2, s2, false, o2, a2, {}, u2.a8)) : "addRows" === f2 ? c2.rj(t4, n3) : "addColumns" === f2 ? c2.uj(t4, n3) : "deleteRows" === f2 ? c2.oj(t4, n3) : "deleteColumns" === f2 ? c2.sj(t4, n3) : "setRowCount" === f2 ? c2.fj(t4, n3) : "setColumnCount" === f2 ? c2.lj(t4, n3) : "setZoomFactor" === f2 ? c2.wj(n3 ? t4.newValue : t4.value) : "updateDirty" === f2 ? e3.push(t4) : "setName" === f2 ? n3 ? c2.Mj(t4.newValue) : c2.Mj(t4.value) : "sortRange" === f2 ? c2.Cj(t4, n3) : "sheetProperty" === f2 && c2.Mf[t4.pname](n3 ? t4.value : t4.oldValue);
          }, t3.prototype.applyChanges = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            function c2(t4, n4, e4, i4, r3) {
              r3 ? t4.setArrayFormula(n4, e4, r3.rowCount, r3.colCount, i4) : t4.setFormula(n4, e4, i4);
            }
            function f2(t4, n4) {
              var e4, r3, o3, a3, u3, s3;
              if (n4) {
                for (e4 in n4) if (!isNaN(e4)) for (a3 in r3 = parseInt(e4, 10), o3 = n4[e4]) isNaN(a3) || (u3 = parseInt(a3, 10), i3 ? c2(t4, r3, u3, s3 = o3[a3].formula !== o3[a3].oldFormula ? o3[a3].formula : null, s3 ? o3[a3].arrayInfo : null) : c2(t4, r3, u3, o3[a3].oldFormula, o3[a3].oldArrayInfo));
              }
            }
            if (r2 = this, o2 = [], e3) if (a2 = function(t4) {
              t4[0] !== et ? r2.applyChange(t4, i3, o2) : hn(t4, (function(t5) {
                r2.applyChange(t5, i3, o2);
              }));
            }, i3) for (u2 = 0; u2 < e3.length; u2++) a2(e3[u2]);
            else for (u2 = e3.length - 1; u2 >= 0; u2--) a2(e3[u2]);
            (s2 = r2.Mf).Sj = {}, s2.r3(), f2(s2, e3 && e3.formulas), t3.et(r2, "applyChanges", { command: n3, changes: e3, isUndo: !i3 }), o2.length > 0 && s2.Tj();
          }, t3.prototype.undo = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = [], h2 = n3 && n3.events;
            if (h2 && this.Aj(h2, true), n3) for (e3 = n3.length - 1; e3 >= 0; e3--) (r2 = (i3 = n3[e3]).type) ? "addRows" === r2 ? this.rj(i3) : "addColumns" === r2 ? this.uj(i3) : "deleteRows" === r2 ? this.oj(i3) : "deleteColumns" === r2 ? this.sj(i3) : "setRowCount" === r2 ? this.fj(i3) : "setColumnCount" === r2 ? this.lj(i3) : "setZoomFactor" === r2 ? this.wj(i3.value) : "updateDirty" === r2 ? (this.pE(i3), l2.push(i3)) : "setName" === r2 ? this.Mj(i3.value) : "sortRange" === r2 ? this.Cj(i3) : "updateAttachment" === r2 && this.F0r(i3) : i3.skipUndo || ln(this, i3);
            (o2 = this.Mf).Sj = {}, o2.r3(), o2.gYr(n3), a2 = n3 && n3.calc, (u2 = l2.length > 0 || a2 && a2.length > 0) && (s2 = o2.Lp) && s2.suspend(), l2.length > 0 && l2.forEach((function(t4) {
              var n4;
              o2.Ij(t4.row, t4.col, null !== (n4 = t4.sheetArea) && void 0 !== n4 ? n4 : 3, false);
            })), (c2 = n3 && n3.tableChanges) && c2.length > 0 && (t3.et(this, D, { tableChanges: c2 }), n3.tableChanges.isRestored = true), (f2 = n3 && n3.pivotTableChanges) && f2.length > 0 && (t3.et(this, D, { pivotTableChanges: f2 }), n3.pivotTableChanges.isRestored = true), n3 && t3.et(this, "undoValue", n3), a2 && a2.length && o2.xj(a2), u2 && (s2 && s2.resume(false), o2.Tj()), delete this.W_(3).B8.vE, n3 && t3.et(this, D, n3), h2 && this.Aj(h2, false);
          }, t3.prototype.do = function(t4) {
            var n3, e3, i3, r2 = [];
            for (n3 = 1; n3 < arguments.length; n3++) r2[n3 - 1] = arguments[n3];
            e3 = this, t4 && (i3 = e3[t4]) && i3.apply(e3, r2);
          }, t3.prototype.W_ = function(t4) {
            return F(t4) && (t4 = 3), this.sheetModels[t4];
          }, t3.prototype.l8 = function(t4, n3, e3) {
            var i3 = 0, r2 = 0;
            F(e3) && (e3 = 3, i3 = t4, r2 = n3), this.sheetModels[e3] = new bt(t4, n3, i3, r2, this.onSheetModelChange(e3));
          }, t3.prototype.Ehe = function(t4) {
            return F(t4) && (t4 = 3), this.defaultValueModels[t4];
          }, t3.prototype.ZI = function(t4) {
            var n3, e3 = this.G8, i3 = e3 && e3.events;
            i3 && i3.push(t4);
          }, t3.prototype.Aj = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this.Mf;
            for (a2.Nj = true, e3 = t4.length - 1; e3 >= 0; e3--) o2 = void 0, "cellChanged" !== (r2 = (i3 = t4[e3])[0]) || n3 ? "rowChanged" !== r2 || n3 ? "columnChanged" !== r2 || n3 ? "zoomChanged" !== r2 || n3 ? "rowChanging" === r2 && n3 ? o2 = a2.kj : "columnChanging" === r2 && n3 ? o2 = a2.Dj : "tableRowsChanged" !== r2 || n3 ? "tableColumnsChanged" !== r2 || n3 ? "rangeChanged" !== r2 || n3 || (o2 = a2._j) : o2 = a2.Ej : o2 = a2.jj : o2 = a2.Oj : o2 = a2.vj : o2 = a2.dj : o2 = a2.Rj, o2 && ([].splice.call(t4, e3, 1), o2.apply(a2, [].slice.call(i3, 1)));
            a2.Nj = false;
          }, t3.prototype.Fve = function(t4, n3, e3) {
            var i3 = this.Ehe(e3);
            if (i3) return i3.getValue(t4, n3);
          }, t3.prototype.t3e = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.Mf;
            o2.hasFormula && !o2.hasFormula(t4, n3, i3, true) && r2.Ehe(i3).khe(t4, n3, C, C, i3, e3);
          }, t3.prototype.d3e = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf;
            if (h2.hasFormula) for (r2 = l2.Ehe(), o2 = x(e3, r2.getRowCount()), a2 = x(i3, r2.getColumnCount()), u2 = 0; u2 < o2; u2++) for (s2 = t4 + u2, c2 = 0; c2 < a2; c2++) f2 = n3 + c2, r2.getExpression(s2, f2) && !h2.hasFormula(s2, f2, 3, true) && l2.t3e(s2, f2);
          }, t3.prototype.getValue = function(n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2;
            return void 0 === a2 && (a2 = {}), F(i3) && (i3 = 3), !r2 && (u2 = { row: n3, col: e3, sheetArea: i3, isValueGet: false, value: S, valueType: o2, rowSpacingIndex: a2.rowSpacingIndex, isAfterRowSpacing: a2.isAfterRowSpacing, isCopy: a2.isCopy }, t3.et(this, "getValue", u2, (function() {
              return u2.isValueGet;
            })), u2.isValueGet) ? (s2 = z(a2.rowSpacingIndex)) || this.Ohe || !F(u2.value) || (c2 = this.Fve(n3, e3, i3), F(c2)) ? u2.value : c2 : (f2 = this.W_(i3).getValue(n3, e3, o2), this.Ohe || r2 || !F(f2) || (c2 = this.Fve(n3, e3, i3), F(c2)) ? f2 : c2);
          }, t3.prototype.setValue = function(n3, e3, i3, r2, o2, a2, u2, s2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, x2;
            F(r2) && (r2 = 3), v2 = (d2 = this).Mf, (p2 = !a2 && !v2.isEventSuspended()) && (h2 = v2.getValue(n3, e3, r2, 1)), f2 || d2.KE(n3, e3, r2, i3, true), g2 = false, o2 || (m2 = { row: n3, col: e3, value: i3, sheetArea: r2, isValueSet: false, changes: d2.G8, isCopy: l2 }, t3.et(d2, "setValue", m2, (function() {
              return m2.isValueSet;
            })), g2 = m2.isValueSet), g2 || (b2 = void 0, y2 = void 0, d2.P8 > 0 && (!u2 || v2.parent && v2.parent.options.saveChangesForSheet) && (b2 = [[$, r2], S], y2 = { sheetArea: r2 }), v2.Dhe ? (d2.setDefaultValue(n3, e3, i3, r2, C, true, C, { fromCalc: f2 }), d2.W_(r2).setValue(n3, e3, C, b2, y2, s2, f2)) : (d2.t3e(n3, e3, F(i3), r2), d2.W_(r2).setValue(n3, e3, i3, b2, y2, s2, f2), d2.W_(r2).setValueForKey(n3, e3, j, true)), s2 && b2 && !sn(this.pj(), n3, e3) && (b2.skipUndo = true), b2 && b2.length > 0 && d2.G8.push(b2), y2 && y2.type && d2.G8.push(y2), v2.Tj()), p2 ? (w2 = h2 !== i3, M2 = false, x2 = void 0, typeof i3 === T && ((x2 = c.util.V0(i3)) instanceof Date && (M2 = true), h2 instanceof Date && (w2 = h2.valueOf() !== x2.valueOf())), w2 && v2.Rj("value", n3, e3, r2, h2, M2 && x2 ? x2 : i3)) : v2.Lj(v2, [{ row: n3, col: e3 }], 0);
          }, t3.prototype.getFileGUID = function(t4, n3, e3) {
            return F(e3) && (e3 = 3), this.W_(e3).getFileGUID(t4, n3);
          }, t3.prototype.setFileGUID = function(t4, n3, e3, i3) {
            var r2, o2, a2;
            F(i3) && (i3 = 3), (r2 = this).P8 > 0 && (o2 = [[$, i3], S], a2 = { sheetArea: i3 }), r2.W_(i3).setFileGUID(t4, n3, e3, o2, a2), o2 && o2.length > 0 && r2.G8.push(o2), a2 && a2.type && r2.G8.push(a2);
          }, t3.prototype.Rhe = function(t4, n3, e3) {
            F(e3) && (e3 = 3);
            var i3 = this.Ehe(e3);
            if (i3) return i3.Nhe(t4, n3);
          }, t3.prototype.getDefaultValue = function(t4, n3, e3, i3) {
            var r2 = this.Ehe(e3);
            if (r2) return i3 === l.DefaultChangeValueType.Expression ? r2.getFormula(t4, n3) : i3 === l.DefaultChangeValueType.Value ? r2.getValue(t4, n3) : r2.getFormula(t4, n3) || r2.getValue(t4, n3);
          }, t3.prototype.qBe = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2;
            F(i3) && (i3 = 3), o2 = this, (u2 = (a2 = this.Ehe(i3)) && a2.Nhe(t4, n3)) && (s2 = void 0, o2.P8 > 0 && (s2 = [[tt, i3], S]), a2.xhe(u2, s2, t4, n3, e3, l.DefaultChangeValueType.Expression), c2 = u2.expr, u2.expr = e3, nn(a2, t4, n3, e3, c2, r2), s2 && s2.length > 0 && o2.G8.push(s2));
          }, t3.prototype.setDefaultValue = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var c2, f2, h2;
            F(i3) && (i3 = 3), (f2 = (c2 = this).Ehe(i3)) && (h2 = void 0, c2.P8 > 0 && (h2 = [[tt, i3], S]), F(a2) && (c2.Ohe = true, a2 = !F(c2.getValue(t4, n3, i3)) || c2.Mf.hasFormula(t4, n3, i3, true), delete c2.Ohe), !r2 && s.kf(e3) || r2 === l.DefaultChangeValueType.Expression ? f2.setFormula(t4, n3, e3, i3, a2, h2) : f2.setValue(t4, n3, e3, o2, h2, u2), h2 && h2.length > 0 && c2.G8.push(h2));
          }, t3.prototype.getStyle = function(n3, e3, i3, r2) {
            void 0 === r2 && (r2 = {}), F(i3) && (i3 = 3);
            var o2 = { row: n3, col: e3, sheetArea: i3, isStyleGet: false, style: S, rowSpacingIndex: r2.rowSpacingIndex, isAfterRowSpacing: r2.isAfterRowSpacing, isCopy: r2.isCopy };
            return t3.et(this, "getStyle", o2), o2.isStyleGet ? o2.style : this.W_(i3).getStyle(n3, e3, this.P8 > 0);
          }, t3.prototype.setStyle = function(n3, e3, i3, r2, o2) {
            var a2 = { row: n3, col: e3, style: i3, oldStyle: o2, sheetArea: r2, changes: this.G8 };
            t3.et(this, "beforeSetStyle", a2, (function() {
              return a2.isStyleSet;
            })), a2.isStyleSet || (this.cAn(n3, e3, i3, r2), t3.et(this, "setStyle", a2));
          }, t3.prototype.cAn = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            F(i3) && (i3 = 3), e3 && e3.cellType && e3.cellType.qe(this.Mf, t4, n3, e3, i3), a2 = this.P8 > 0 ? [[$, i3]] : S, u2 = this.W_(i3).getStyle(t4, n3, false), this.G8 && this.G8.diffCache === S && (this.G8.diffCache = []), this.G8 && this.G8.styleChanges === S && (this.G8.styleChanges = []), this.W_(i3).setStyle(t4, n3, e3, a2, null === (r2 = this.G8) || void 0 === r2 ? void 0 : r2.styleChanges, null === (o2 = this.G8) || void 0 === o2 ? void 0 : o2.diffCache), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "style" }), a2 && a2.length > 0 && this.d_e(a2), s2 = this.Mf.parent, i3 === l.SheetArea.viewport && yn(u2, e3, s2) && this.KE(t4, n3, i3, this.getValue(t4, n3, i3, true), false);
          }, t3.prototype.d_e = function(t4) {
            var n3, e3, i3, r2, o2, a2;
            this.G8 && this.G8.diffCache === S && (this.G8.diffCache = []), this.G8 && this.G8.styleChanges === S && (this.G8.styleChanges = []), 0 === (null === (n3 = this.G8) || void 0 === n3 ? void 0 : n3.styleChanges.length) && this.G8.push([et, this.G8.styleChanges, this.G8.diffCache]), e3 = on(t4), (i3 = un(this.G8.styleChanges, e3)) || (i3 = { path: e3, change: {} }, this.G8.styleChanges.push(i3)), r2 = an(t4), o2 = i3.change[r2], a2 = 3 === t4.length ? { old: t4[1], new: t4[2] } : t4[1], o2 !== S && Array.isArray(o2) ? "object" == typeof o2[o2.length - 1] ? o2[o2.length - 1].new = t4[2] : o2.push(a2) : 3 === t4.length && o2 !== S ? "object" == typeof o2 ? o2.new = t4[2] : i3.change[r2] = [o2, a2] : i3.change[r2] = a2;
          }, t3.prototype.wKr = function(t4, n3, e3) {
            this.W_(n3).forEachForKey(t4, e3);
          }, t3.prototype.getValueForKey = function(t4, n3, e3, i3) {
            return this.W_(i3).getValueForKey(t4, n3, e3);
          }, t3.prototype.setValueForKey = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2;
            F(r2) && (r2 = 3), o2 = this.P8 > 0 ? [[$, r2], S] : S, a2 = this.W_(r2).getValueForKey(t4, n3, e3), (u2 = this.W_(r2).setValueForKey(t4, n3, e3, i3, o2)) && at.indexOf(e3) >= 0 && this.Mf.$Dr({ type: "setRange", sheetArea: r2, row: t4, col: n3, data: { key: e3, value: i3 }, setType: "valueForKeys", oldValue: { key: e3, value: a2 } }), o2 && o2.length > 0 && this.G8.push(o2);
          }, t3.prototype.setValueChangedKey = function(t4, n3, e3) {
            var i3 = this.P8 > 0 ? [[$, e3], S] : S;
            this.W_(e3).setValueForKey(t4, n3, j, true, i3), i3 && i3.length > 0 && this.G8.push(i3);
          }, t3.prototype.f_e = function(t4, n3, e3, i3, r2, o2) {
            this.W_(o2).clear(t4, n3, e3, i3, r2);
          }, t3.prototype.clear = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, f2, h2, d2, v2, p2, g2, b2, y2, w2, M2, T2, x2, A2, I2;
            if (F(u2) && (u2 = 3), f2 = this.P8 > 0 ? [] : S, m && 3 === u2 && (h2 = this).Mf.Uw(3).t8.Fgt(n3, e3, i3, r2), d2 = this.W_(u2), v2 = { isClearStop: S, row: n3, col: e3, rowCount: i3, colCount: r2, type: o2, ignoredRowList: a2, sheetArea: u2, changes: this.G8 }, t3.et(this, "preClear", v2, (function() {
              return v2.isClearStop;
            })), v2.isClearStop) for (this.Ehe(u2).resetFormulaToCalc(n3, e3, i3, r2, u2), p2 = 0; p2 < i3; p2++) for (g2 = 0; g2 < r2; g2++) b2 = n3 + p2, y2 = e3 + g2, this.KE(b2, y2, u2, C, false);
            else {
              if (w2 = this.Mf.THr({ type: "clearRange", row: n3, col: e3, rowCount: i3, colCount: r2, clearType: o2, ignoredRowList: a2, sheetArea: u2 }), M2 = d2.clear(n3, e3, i3, r2, o2, a2, f2).valueChangeMap, this.Mf.$Dr({ type: "clearRange", row: n3, col: e3, rowCount: i3, colCount: r2, clearType: o2, ignoredRowList: a2, sheetArea: u2 }, w2), this.Ehe(u2).resetFormulaToCalc(n3, e3, i3, r2, u2), this.Mf.ki(c.Events.WorksheetDataChanged, { type: l.StorageType[o2] }), t3.et(this, "clear", { row: n3, col: e3, rowCount: i3, colCount: r2, type: o2, ignoredRowList: a2, sheetArea: u2, changes: this.G8 }), f2) for (T2 = [$, u2], x2 = 0, A2 = f2.length; x2 < A2; x2++) (I2 = f2[x2])[0] = T2.concat(I2[0]), "style" !== I2[0][I2[0].length - 1] ? this.G8.push(I2) : this.d_e(I2);
              for (p2 = 0; p2 < i3; p2++) for (g2 = 0; g2 < r2; g2++) b2 = n3 + p2, y2 = e3 + g2, this.KE(b2, y2, u2, C, false), (null === (s2 = null == M2 ? void 0 : M2[b2]) || void 0 === s2 ? void 0 : s2[y2]) && this.setValueChangedKey(b2, y2, u2);
            }
          }, t3.prototype.swapNode = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2;
            if (F(r2) && (r2 = 3), o2 = this.P8 > 0 ? [] : S, this.W_(r2).SE(t4, n3, e3, i3, o2), this.Ehe(r2).SE(t4, n3, e3, i3, o2), o2) for (a2 = [$, r2], u2 = 0, s2 = o2.length; u2 < s2; u2++) (c2 = o2[u2])[0] = a2.concat(c2[0]), this.G8.push(c2);
          }, t3.prototype.dE = function(t4, n3, e3, i3) {
            var r2;
            this.P8 > 0 && (r2 = { sheetArea: i3 }, F(i3) && (r2.sheetArea = 3)), this.W_(i3).dE(t4, n3, e3, r2), r2 && this.G8.push(r2);
          }, t3.prototype.pE = function(t4) {
            this.W_(t4.sheetArea).pE(t4);
          }, t3.prototype.Fj = function(t4) {
            return this.W_(t4).B8;
          }, t3.prototype.Pj = function(t4, n3, e3) {
            var i3, r2 = this.Fj(e3), o2 = r2[t4];
            return !(!o2 || !(i3 = o2[n3]));
          }, t3.prototype.Gj = function(t4, n3, e3) {
            var i3, r2, o2 = this.W_(e3).B8;
            for (i3 = 0; i3 < n3; i3++) (r2 = t4 + i3) in o2 && delete o2[r2];
          }, t3.prototype.Uj = function(t4, n3) {
            var e3, i3, r2 = this.Mf, o2 = r2.aj;
            if (o2) for (e3 = o2.length - 1; e3 >= 0; e3--) t4 <= (i3 = o2[e3].row) && i3 < t4 + n3 && o2.splice(e3);
          }, t3.prototype.Hj = function(t4) {
            this.W_(t4).B8 = {};
          }, t3.prototype.zj = function(t4, n3, e3, i3) {
            var r2 = this.Fj(), o2, a2, u2;
            if (r2) for (o2 in r2) Ot(r2, o2) && (a2 = r2[o2], u2 = parseInt(o2, 10), a2 && "n" === a2.rs && (t4 || n3 && e3 <= u2 && u2 < e3 + i3) && (r2[o2] = {}));
          }, t3.prototype.Vj = function(n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Fj(), p2 = d2.Mf, g2 = p2.tables;
            if (!y(v2)) {
              if (a2 = [], e3 >= 0) for (u2 = e3; u2 < e3 + r2; u2++) a2.push(u2);
              else for (s2 in v2) Ot(v2, s2) && a2.push(parseInt(s2, 10));
              c2 = [], f2 = [], g2 && (c2 = g2.Yj(e3, i3, r2, o2), f2 = g2.Zj(e3, i3, r2, o2), c2.length > 0 && t3.et(this, "clearPendingChanges", { tableList: c2 })), b(a2, (function(t4, e4) {
                var r3, a3, u3;
                if ((l2 = v2[e4]) && "e" === l2.rs) if (r3 = f2.length, n3) if (g2 && 0 !== r3 && g2.Wj(f2, e4, -1)) for (a3 = p2.getColumnCount(), u3 = 0; u3 < a3; u3++) g2 && 0 !== r3 && g2.Wj(f2, e4, u3) || (h2 = l2[u3]) && delete l2[u3];
                else v2[e4] = {};
                else for (u3 = i3; u3 < i3 + o2; u3++) g2 && 0 !== r3 && g2.Wj(f2, e4, u3) || (h2 = l2[u3]) && delete l2[u3];
              }));
            }
          }, t3.prototype.Qj = function() {
            var t4, n3 = this, e3 = n3.Fj();
            for (t4 in e3) Ot(e3, t4) && e3[t4] && "e" === e3[t4].rs && (e3[t4] = {});
          }, t3.prototype.Kj = function(t4) {
            this.W_(t4).lE++;
          }, t3.prototype.Jj = function(t4) {
            var n3, e3 = this.W_(t4);
            e3.lE--, (n3 = e3.lE) < 0 && (e3.lE = 0);
          }, t3.prototype.getName = function() {
            return this.name || "";
          }, t3.prototype.setName = function(t4) {
            var n3, e3 = this, i3 = e3.name;
            i3 !== t4 && (e3.P8 > 0 && e3.G8.push({ type: "setName", value: i3 }), n3 = this.Mf.THr({ type: "setSheetName" }), e3.name = t4, this.Mf.$Dr({ type: "setSheetName", value: t4 }, n3));
          }, t3.prototype.Xj = function() {
            return this.isSelected;
          }, t3.prototype.qj = function(t4) {
            var n3 = this.Mf.THr({ type: "setTabSelected", oldValue: this.isSelected });
            this.isSelected = t4, this.Mf.$Dr({ type: "setTabSelected", value: t4 }, n3);
          }, t3.prototype.Mj = function(t4) {
            this.Mf.name(t4);
          }, t3.prototype.Cj = function(t4, n3) {
            var e3, i3, r2;
            e3 = t4.byRows ? t4.row : t4.column, n3 || (i3 = [], t4.array.map((function(t5, n4) {
              i3[t5 - e3] = n4 + e3;
            }))), this.Mf.sortRange(t4.row, t4.column, t4.rowCount, t4.columnCount, t4.byRows, t4.sortInfo, C, i3, S, !t4.sortState), (r2 = t4.sortState) ? this.Mf.JSe(r2.row, r2.col, r2.rowCount, r2.colCount, r2.byRow, r2.sortConditions) : this.Mf.XSe();
          }, t3.prototype.L0r = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = u2.GRe();
            a2.P8 > 0 && !n3 && a2.G8.push({ newValue: t4, type: "updateAttachment" }), t4 && (e3 = t4.name, i3 = t4.blob, r2 = t4.dataUrl, o2 = t4.id, s2.MRe(e3, i3, r2, o2));
          }, t3.prototype.R0r = function(t4, n3) {
            var e3 = this, i3, r2 = e3.Mf.GRe();
            e3.P8 > 0 && !n3 && e3.G8.push({ oldValue: t4, type: "updateAttachment" }), t4 && r2.iPt([t4.id]);
          }, t3.prototype.F0r = function(t4) {
            var n3 = t4.oldValue, e3 = t4.newValue;
            e3 && this.R0r(e3, true), n3 && this.L0r(n3, true);
          }, t3.prototype.getZoomFactor = function() {
            return this.zoomFactor;
          }, t3.prototype.setZoomFactor = function(t4) {
            var n3, e3, i3 = this;
            i3.P8 > 0 && i3.G8.push({ type: "setZoomFactor", value: i3.zoomFactor }), i3.zoomFactor !== t4 && (e3 = i3.zoomFactor, i3.zoomFactor = t4, (null === (n3 = this.Mf) || void 0 === n3 ? void 0 : n3.$Dr) && this.Mf.$Dr({ type: "updateZoom", value: t4, oldValue: e3 }));
          }, t3.prototype.wj = function(t4) {
            this.Mf.zoom(t4);
          }, t3.prototype.K_ = function(t4) {
            return F(t4) && (t4 = 3), this.spanModels[t4];
          }, t3.prototype.d8 = function(t4) {
            F(t4) && (t4 = 3), this.spanModels[t4] = new ft();
          }, t3.prototype.getSpans = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            return F(e3) && (e3 = 3), n3 && (r2 = n3.row, o2 = n3.col, a2 = n3.rowCount, u2 = n3.colCount), c2 = { row: r2, col: o2, rowCount: a2, colCount: u2, isAll: !n3, sheetArea: e3, isSpansGet: false, mergeSpanModel: false, spans: [] }, t3.et(this, "getSpans", c2), c2.isSpansGet ? (s2 = c2.spans, c2.mergeSpanModel && (s2 = s2.concat(this.K_(e3).getSpans(n3)))) : s2 = this.K_(e3).getSpans(n3), i3 && (s2 = s2.filter((function(t4) {
              return !t4.isAutoMerge;
            }))), s2;
          }, t3.prototype.getSpan = function(n3, e3, i3) {
            F(i3) && (i3 = 3);
            var r2 = { row: n3, col: e3, sheetArea: i3, isSpansGet: false, spans: [] };
            return t3.et(this, "getSpans", r2), r2.isSpansGet ? r2.spans[0] || (0, c.Ec)(n3, e3, 1, 1) : this.K_(i3).get(n3, e3);
          }, t3.prototype.Ci = function(t4, n3, e3) {
            var i3, r2;
            return F(e3) && (e3 = 3), (i3 = this.W_(e3)) && i3.J_ && (r2 = i3.J_(t4, n3)) && r2.tipContent ? r2.tipContent : null;
          }, t3.prototype.$n = function(t4, n3, e3, i3) {
            F(i3) && (i3 = 3);
            var r2 = this.W_(i3).J_(t4, n3);
            !e3 && r2 ? delete r2.tipContent : e3 && r2 ? r2.tipContent = e3 : e3 && !r2 && ((r2 = this.W_(i3).J_(t4, n3, true)).tipContent = e3);
          }, t3.prototype.eE = function(t4, n3, e3, i3, r2) {
            return this.K_(r2).eE(t4, n3, e3, i3);
          }, t3.prototype.GT = function(t4, n3, e3, i3, r2) {
            return this.K_(r2).GT(t4, n3, e3, i3);
          }, t3.prototype.findSpan = function(n3, e3, i3) {
            F(i3) && (i3 = 3);
            var r2 = { row: n3, col: e3, sheetArea: i3, isSpansGet: false, spans: [] };
            return t3.et(this, "getSpans", r2), r2.isSpansGet ? r2.spans[0] : this.K_(i3).find(n3, e3);
          }, t3.prototype.removeSpan = function(t4, n3) {
            F(n3) && (n3 = 3);
            var e3 = this.P8 > 0 ? [["spanModels", n3], S] : S;
            this.K_(n3).remove(t4, e3), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "span", isClear: true, sheet: this.Mf }), e3 && e3.length > 0 && this.G8.push(e3);
          }, t3.prototype.addSpan = function(t4, n3) {
            F(n3) && (n3 = 3);
            var e3 = this.P8 > 0 ? [["spanModels", n3], S] : S;
            this.K_(n3).add(t4, e3), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "span", range: t4, isAdd: true, sheet: this.Mf }), e3 && e3.length > 0 && this.G8.push(e3);
          }, t3.prototype.clearSpan = function(t4, n3, e3, i3, r2) {
            F(r2) && (r2 = 3);
            var o2 = this.P8 > 0 ? [["spanModels", r2], S] : S;
            this.K_(r2).d5(t4, n3, e3, i3, o2), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "span", isClear: true, sheet: this.Mf }), o2 && o2.length > 0 && this.G8.push(o2);
          }, t3.prototype.moveSpan = function(t4, n3, e3, i3, r2, o2, a2) {
            F(a2) && (a2 = 3);
            var u2 = this.P8 > 0 ? [["spanModels", a2], S] : S;
            this.K_(a2).iE(t4, n3, e3, i3, r2, o2, u2), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "span" }), u2 && u2.length > 0 && this.G8.push(u2);
          }, t3.prototype.copySpan = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            F(a2) && (a2 = 3);
            var s2 = this.P8 > 0 ? [["spanModels", a2], S] : S;
            this.K_(a2).tE(t4, n3, e3, i3, r2, o2, s2, u2), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "span" }), s2 && s2.length > 0 && this.G8.push(s2);
          }, t3.prototype._9 = function(t4, n3, e3, i3) {
            this.colHeaderSelectionModel.$j = new c.Range(t4, n3, e3, i3);
          }, t3.prototype.J9 = function() {
            return this.colHeaderSelectionModel.$j;
          }, t3.prototype.addSelection = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2;
            if (1 === o2) this.colHeaderSelectionModel.add(t4, n3, e3, i3, S);
            else if (a2 = this.P8 > 0 ? [] : S, this.selectionModel.add(t4, n3, e3, i3, a2, r2), a2) for (u2 = 0; u2 < a2.length; u2++) (s2 = a2[u2])[0] = ["selectionModel"].concat(s2[0]), this.G8.push(s2);
          }, t3.prototype.getSelections = function(t4) {
            return 1 === t4 ? this.colHeaderSelectionModel.get() : this.selectionModel.get();
          }, t3.prototype.setSelections = function(t4, n3) {
            var e3, i3, r2;
            if (1 === n3) this.colHeaderSelectionModel.set(t4, S);
            else if (e3 = this.P8 > 0 ? [] : S, this.selectionModel.set(t4, e3), e3) for (i3 = 0; i3 < e3.length; i3++) (r2 = e3[i3])[0] = ["selectionModel"].concat(r2[0]), this.G8.push(r2);
          }, t3.prototype.clearSelection = function(t4) {
            var n3, e3, i3;
            if (1 === t4) this.colHeaderSelectionModel.clear(S);
            else if (n3 = this.P8 > 0 ? [] : S, this.selectionModel.clear(n3), n3) for (e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3])[0] = ["selectionModel"].concat(i3[0]), this.G8.push(i3);
          }, t3.prototype.getActiveSelectedRangeIndex = function() {
            return this.selectionModel.getProperty("activeSelectedRangeIndex");
          }, t3.prototype.setActiveSelectedRangeIndex = function(t4) {
            var n3 = this.P8 > 0 ? [["selectionModel"], S] : S;
            this.selectionModel.setProperty("activeSelectedRangeIndex", t4, n3), n3 && this.G8.push(n3);
          }, t3.prototype.getSelectionPolicy = function() {
            return this.selectionModel.getProperty("selectionPolicy");
          }, t3.prototype.setSelectionPolicy = function(t4) {
            rn(this, "selectionPolicy", t4);
          }, t3.prototype.getSelectionUnit = function() {
            return this.selectionModel.getProperty("selectionUnit");
          }, t3.prototype.setSelectionUnit = function(t4) {
            rn(this, "selectionUnit", t4);
          }, t3.prototype.T9 = function(t4) {
            return this.selectionModel.T9(t4);
          }, t3.prototype.S9 = function(t4) {
            return this.selectionModel.S9(t4);
          }, t3.prototype.ni = function(t4, n3, e3, i3, r2, o2) {
            return this.selectionModel.ni(t4, n3, e3, i3, r2, o2);
          }, t3.prototype.ei = function(t4, n3, e3, i3, r2) {
            return this.selectionModel.ei(t4, n3, e3, i3, r2);
          }, t3.prototype.Q_ = function(t4, n3) {
            var e3;
            return F(n3) && (n3 = 3), (t4 ? this.rowInfos : this.colInfos)[n3];
          }, t3.prototype.h8 = function(t4, n3) {
            var e3;
            F(n3) && (n3 = 3), (t4 ? this.rowInfos : this.colInfos)[n3] = new yt();
          }, t3.prototype.getPageBreak = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).getPageBreak(e3);
          }, t3.prototype.setPageBreak = function(t4, n3, e3, i3) {
            var r2, o2, a2;
            F(n3) && (n3 = 3), r2 = this.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, o2 = this.Q_(t4, n3), a2 = this.Mf.THr({ type: "setAxisOptions", propName: "pageBreak", isRow: t4, index: e3, value: i3, sheetArea: n3 }), o2.setPageBreak(e3, i3, r2), this.Mf.$Dr({ type: "setAxisOptions", propName: "pageBreak", isRow: t4, index: e3, value: i3, sheetArea: n3 }, a2), r2 && this.G8.push(r2);
          }, t3.prototype.getVisible = function(n3, e3, i3) {
            var r2, o2, a2 = this, u2 = a2.Mf;
            return u2.bao() && (r2 = { isRow: n3, index: i3, sheetArea: e3, isVisibleGet: false, visible: void 0 }, t3.et(this, "getVisible", r2), r2.isVisibleGet) ? r2.visible : (o2 = this.Q_(n3, e3)).getVisible(i3);
          }, t3.prototype.setVisible = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this;
            F(n3) && (n3 = 3), r2 = s2.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, o2 = s2.Q_(t4, n3), a2 = s2.Mf.THr({ type: "setAxisOptions", propName: "visible", isRow: t4, index: e3, value: i3, sheetArea: n3 }), o2.setVisible(e3, i3, r2), s2.Mf.$Dr({ type: "setAxisOptions", propName: "visible", isRow: t4, index: e3, value: i3, sheetArea: n3 }, a2), r2 && s2.G8.push(r2), u2 = t4 ? l.AxisInfoChangeType.setRowVisible : l.AxisInfoChangeType.setColumnVisible, s2.L8({ type: u2, index: e3, sheetArea: n3 });
          }, t3.prototype.getResizable = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).getResizable(e3);
          }, t3.prototype.setResizable = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            F(n3) && (n3 = 3), r2 = this.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, o2 = this.Q_(t4, n3), a2 = { type: "setAxisOptions", propName: "resizable", isRow: t4, index: e3, value: i3, sheetArea: n3 }, u2 = this.Mf.THr(a2), o2.setResizable(e3, i3, r2), this.Mf.$Dr(a2, u2), r2 && this.G8.push(r2);
          }, t3.prototype.getSize = function(n3, e3, i3) {
            var r2, o2;
            return F(e3) && (e3 = 3), r2 = { index: i3, isRow: n3, isSizeGet: false, sheetArea: e3, size: S }, t3.et(this, "getSize", r2), r2.isSizeGet ? r2.size : (o2 = this.Q_(n3, e3)).getSize(i3);
          }, t3.prototype.getColumnHeaderFitMode = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).getColumnHeaderFitMode(e3);
          }, t3.prototype.setColumnHeaderFitMode = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, h2, d2, v2 = this, p2 = 60, g2 = v2.Mf, m2 = g2.getRowCount(1);
            if (F(n3) && (n3 = 3), v2.P8 && (r2 = [[O, n3], S], o2 = [[_, n3], S]), s2 = (u2 = v2.Q_(t4, n3)).getColumnHeaderFitMode(e3), u2.setColumnHeaderFitMode(e3, i3, r2), f2 = false, i3 === l.ColumnHeaderFitMode.vertical ? c2 = p2 : i3 === l.ColumnHeaderFitMode.normal && (c2 = g2.defaults.colHeaderRowHeight), v2.k_r(i3, e3, s2, n3, true), c2 && i3 !== s2) {
              for (h2 = v2.Q_(true, n3), d2 = 0; d2 < m2; d2++) f2 || (a2 = g2.getRowHeight(d2, n3), c2 = I(c2, a2)), c2 !== a2 && (h2.setSize(d2, E, o2), o2 && (v2.G8.push(o2), o2 = [[_, n3], S]));
              g2.NMi ? g2.defaults.colHeaderRowHeight = c2 : g2.setRowHeight(0, c2, l.SheetArea.colHeader);
            }
            r2 && v2.G8.push(r2);
          }, t3.prototype.k_r = function(t4, n3, e3, i3, r2) {
            void 0 === r2 && (r2 = true);
            var o2 = this, a2 = o2.Mf;
            t4 === l.ColumnHeaderFitMode.vertical || t4 === l.ColumnHeaderFitMode.normal ? a2.gD && 2 === e3 && a2.gD-- : t4 === l.ColumnHeaderFitMode.stack && (o2.t7(n3, i3, r2), a2.gD || (a2.gD = 0), 2 !== e3 && a2.gD++);
          }, t3.prototype.t7 = function(t4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, h2, d2, v2;
            if (void 0 === i3 && (i3 = true), u2 = (r2 = this).Mf, s2 = r2.Q_(true, e3), r2.P8 && (o2 = [[_, e3], S]), c2 = r2.Mf.defaults.rowHeight || n2.DEFAULT_COL_HEADER_ROW_HEIGHT, h2 = r2.getRowCount(l.SheetArea.colHeader), d2 = r2.n7(t4), !r2.e7(t4)) {
              for (v2 = 0; v2 < h2; v2++) a2 = c2 * d2, f2 = u2.getRowHeight(v2, e3), (a2 = I(a2, f2)) !== f2 && (s2.setSize(v2, E, o2), o2 && (r2.G8.push(o2), o2 = [[_, e3], S]));
              i3 && (u2.NMi ? u2.defaults.colHeaderRowHeight = a2 : u2.setRowHeight(0, a2, l.SheetArea.colHeader));
            }
          }, t3.prototype.e7 = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = e3.frozenColumnCount() - 1, r2 = e3.frozenTrailingColumnCount(), o2 = n3.getColumnCount() - 1;
            return t4 === i3 || t4 === o2 || t4 === o2 - r2;
          }, t3.prototype.i7 = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Mf, o2 = r2.frozenColumnCount(), a2 = r2.frozenTrailingColumnCount(), u2 = i3.getColumnCount();
            return o2 && (n3 = t4 === o2), a2 && (e3 = t4 === u2 - a2), n3 || e3;
          }, t3.prototype.n7 = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, h2 = l.SheetArea.colHeader, d2 = {}, v2 = f2.Mf, p2 = v2.getColumnCount();
            for (n3 || (n3 = f2.Q_(false, h2).infos), e3 = i3 = r2 = n3[t4] && n3[t4].columnHeaderFitMode === l.ColumnHeaderFitMode.stack ? t4 : t4 - 1, o2 = r2; o2 >= 0; o2--) {
              if (v2.getColumnWidth(o2, h2)) {
                if (n3[o2] && n3[o2].columnHeaderFitMode === l.ColumnHeaderFitMode.stack && !f2.eE(-1, o2, -1, 1, l.SheetArea.colHeader)) {
                  if (f2.i7(o2)) {
                    e3 = o2;
                    break;
                  }
                  e3 = o2;
                  continue;
                }
                break;
              }
              e3 = o2, d2[o2] = true;
            }
            for (o2 = r2; o2 < p2; o2++) {
              if (v2.getColumnWidth(o2, h2)) {
                if (n3[o2] && n3[o2].columnHeaderFitMode === l.ColumnHeaderFitMode.stack && !f2.eE(-1, o2, -1, 1, l.SheetArea.colHeader)) {
                  if (f2.e7(o2)) break;
                  i3 = o2;
                  continue;
                }
                break;
              }
              if (i3 = o2, d2[o2] = true, f2.e7(o2)) break;
            }
            return u2 = i3 - e3 - (a2 = Object.keys(d2).length) + 1, s2 = 1, !(c2 = v2.O5(i3, h2, true)) || f2.e7(i3) || f2.eE(-1, c2, -1, 1, l.SheetArea.colHeader) ? u2 : u2 + s2;
          }, t3.prototype.r7 = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = 0, s2 = a2.Mf, c2 = s2.Ut;
            for (n3 || (n3 = a2.Q_(false, l.SheetArea.colHeader).infos), i3 = a2.o7(t4), r2 = t4 - 1; r2 >= i3; r2--) if (o2 = s2.getColumnWidth(r2)) {
              if (!n3[r2] || n3[r2].columnHeaderFitMode !== l.ColumnHeaderFitMode.stack || c2.eE(-1, r2, -1, 1, l.SheetArea.colHeader)) {
                if (e3 && n3[r2] && n3[r2].columnHeaderFitMode === l.ColumnHeaderFitMode.vertical && !c2.eE(-1, r2, -1, 1, l.SheetArea.colHeader)) continue;
                return u2;
              }
              u2++;
            }
            return u2;
          }, t3.prototype.i6 = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.Mf, a2 = o2.getColumnCount();
            for (i3 = t4 + 1; i3 < a2; i3++) if ((e3 = r2.getColumnHeaderFitMode(false, 1, i3)) === n3) return i3;
            return C;
          }, t3.prototype.o7 = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = e3.frozenColumnCount(), r2 = e3.frozenTrailingColumnCount(), o2 = n3.getColumnCount();
            return t4 < i3 ? 0 : t4 < o2 - r2 ? i3 : o2 - r2;
          }, t3.prototype.getStarSize = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).getStarSize(e3);
          }, t3.prototype.getActualSize = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).getActualSize(e3);
          }, t3.prototype.setSize = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, f2, h2, d2, v2, p2 = this;
            F(n3) && (n3 = 3), a2 = p2.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, u2 = p2.Q_(t4, n3), s2 = { type: "setAxisSize", isRow: t4, sheetArea: n3, index: e3, size: i3 }, f2 = this.Mf.THr(kt(kt({}, s2), { isStarSize: false })), (h2 = u2.setSize(e3, i3, a2)) && this.Mf.$Dr(s2, f2), this.Mf.ki(c.Events.WorksheetDataChanged, { type: "size" }), a2 && p2.G8.push(a2), (d2 = null === (o2 = null == r2 ? void 0 : r2.clearStarSize) || void 0 === o2 || o2) && p2.setStarSize(t4, n3, e3, C), v2 = t4 ? l.AxisInfoChangeType.setRowHeight : l.AxisInfoChangeType.setColumnWidth, p2.L8({ type: v2, index: e3, value: i3, sheetArea: n3 });
          }, t3.prototype.setStarSize = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            F(n3) && (n3 = 3), r2 = this.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, o2 = this.Q_(t4, n3), a2 = { type: "setAxisSize", isRow: t4, sheetArea: n3, index: e3, starSize: i3 }, u2 = this.Mf.THr(kt(kt({}, a2), { isStarSize: true })), (s2 = o2.setStarSize(e3, i3, r2)) && this.Mf.$Dr(a2, u2), r2 && !F(r2[1]) && this.G8.push(r2);
          }, t3.prototype._E = function(t4, n3) {
            var e3;
            return this.Q_(t4, n3)._E();
          }, t3.prototype.EE = function(t4, n3) {
            var e3;
            return this.Q_(t4, n3).EE();
          }, t3.prototype.q_ = function(t4, n3, e3) {
            var i3;
            return this.Q_(t4, n3).q_(e3);
          }, t3.prototype.setItem = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this;
            F(n3) && (n3 = 3), r2 = u2.P8 > 0 ? [[t4 ? _ : O, n3], S] : S, (o2 = u2.Q_(t4, n3)).X_(e3, i3, r2), i3 && (F(i3.size) || (a2 = t4 ? l.AxisInfoChangeType.setRowHeight : l.AxisInfoChangeType.setColumnWidth, u2.L8({ type: a2, index: e3, value: i3.size, sheetArea: n3 })), F(i3.visible) || (a2 = t4 ? l.AxisInfoChangeType.setRowVisible : l.AxisInfoChangeType.setColumnVisible, u2.L8({ type: a2, index: e3, sheetArea: n3 }))), r2 && u2.G8.push(r2);
          }, t3;
        })(), n2.Y8 = Tt, (0, c.$e)(Tt, true), xt = ["=", "+", "-"], n2.Ngr = wn, At = "__builtInStyle", n2.LUr = Sn, n2.C_r = In, n2.M_r = kn;
      }, "./dist/core/worksheet/worksheet-render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st;
        function ct(t3) {
          return t3.height;
        }
        function ft(t3) {
          return t3.width;
        }
        function lt(t3, n3, e3, i3, r2, o2, a2) {
          t3.beginPath(), t3.lineWidth = n3, t3.strokeStyle = e3, t3.moveTo(i3, r2), t3.lineTo(o2, a2), t3.stroke();
        }
        function ht(t3, n3) {
          var e3 = t3.sw && t3.sw.cellTypeHitInfo && t3.sw.cellTypeHitInfo.addRowColumnButtonHitInfo;
          if (e3) {
            if (n3 === f.SheetArea.colHeader) return 1 === e3.addRowColumnButtonType;
            if (n3 === f.SheetArea.rowHeader) return 2 === e3.addRowColumnButtonType;
          }
          return false;
        }
        function dt(t3, n3) {
          var e3, i3, r2 = 0;
          return "string" == typeof t3 && (1 === (i3 = (e3 = t3.split(" ", 4)).length) ? r2 = 2 * G(e3[0]) : 2 === i3 || 3 === i3 ? r2 = 2 * G(e3[1]) : 4 === i3 && (r2 = G(e3[1]) + G(e3[3]))), r2 * n3;
        }
        function vt(t3, n3, e3, i3, r2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = r2.zoom(), y2 = b2 || 1, M2 = e3.font, C2 = e3.textIndent, S2 = e3.textOrientation, x2 = e3.isVerticalText, A2 = e3.textIndent && 0 !== e3.textIndent, I2 = 0 !== S2 && !T(S2);
          return M2 = M2 ? N(e3, b2).font : i3, typeof s2 === Z && 1 !== s2 && (M2 = k(M2, s2).font, y2 = b2 * s2), d2 = 0, v2 = t3, t3 && v2.richText ? d2 = gt(v2.richText, M2, b2) : t3 && I2 && !x2 && !A2 ? (f2 = E(S2 * Math.PI / 180), l2 = R(f2), h2 = L(f2), e3.wordWrap ? (g2 = (p2 = r2.Jt).Gt(a2), d2 = o.q.Zt(a2, u2, l2, h2, n3, M2, g2)) : (m2 = w(M2), d2 = o.q.Wt(n3, M2) * h2 + m2 * l2)) : d2 = o.q.Wt(n3, M2), c2 = (d2 += bt(r2, C2, a2, u2, y2) + W) + dt(e3.cellPadding, b2);
        }
        function pt(t3, n3, e3) {
          var i3;
          if (t3 && -90 <= t3 && t3 <= 90) return B(e3 / F(E(t3 * Math.PI / 180))) + n3 + 4;
        }
        function gt(t3, n3, e3) {
          var i3 = u.GC$.extend(true, [], t3);
          return mt(i3, n3, e3), o.q.ah(i3, n3, 1);
        }
        function mt(t3, n3, e3) {
          var i3, r2, o2, a2, u2;
          for (i3 = 0, r2 = t3; i3 < r2.length; i3++) a2 = void 0, (o2 = r2[i3]).style = o2.style || {}, a2 = (u2 = o2.style).font ? k(u2.font, e3).font : n3, u2.font = a2;
        }
        function bt(t3, n3, e3, i3, r2) {
          if (!T(e3) && !T(i3) && t3.outlineColumn) {
            var o2 = t3.outlineColumn.a7(e3, i3);
            if (o2) return o2;
          }
          return n3 ? 8 * n3 * r2 : 0;
        }
        function yt(t3, n3, e3, i3, r2, o2, a2, u2, c2) {
          var l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, I2, k2, N2, D2, _2, O2, E2;
          if (A(r2.data) && t3.parent && t3.parent.options.numbersFitMode !== f.NumbersFitMode.overflow) return j;
          if (l2 = t3.Jt, d2 = ft(r2), v2 = ft(r2), g2 = r2.style, b2 = r2.text, y2 = r2.printZoomFactor, w2 = g2.watermark, M2 = g2.wordWrap, C2 = g2.textOrientation, I2 = t3.options.allowCellOverflow, n3.findCell(o2, a2)) return j;
          if (g2.cellButtons && g2.cellButtons.length > 0) return j;
          if (h.W.Xue(g2)) return j;
          if (k2 = g2.cellType || e3, D2 = (N2 = t3.parent && t3.parent.options.numbersFitMode) === f.NumbersFitMode.mask || N2 === f.NumbersFitMode.overflow && !A(r2.data), !k2.allowOverflow || !b2 && !w2 || !C2 && M2 && D2) return j;
          if (b2 || (b2 = w2), !I2 && !C2) return j;
          if ((S2 = vt(r2.data, b2, g2, i3, t3, o2, a2, y2)) <= v2) return j;
          if (90 === Math.abs(C2) && M2) return j;
          for (_2 = a2, O2 = a2, m2 = a2 + (c2 ? 1 : -1); (c2 ? m2 <= u2 : m2 >= u2) && !n3.findCell(o2, m2) && (x2 = l2.qt(o2, m2), p2 = l2.$t(o2, m2, 3, 1, { style: x2 }), E2 = x2.textOrientation, !l2.fdr(m2) || (T(p2) || E2 && C2)) && !x2.watermark && !(x2.cellType && "1" !== x2.cellType.typeName || x2.cellButtons && x2.cellButtons.length > 0 || h.W.Xue(x2)) && (c2 ? O2 = m2 : _2 = m2, !(S2 <= (v2 += l2.Kt(m2)))); m2 += c2 ? 1 : -1) ;
          return c2 && O2 === a2 || !c2 && _2 === a2 ? j : new s.Q8(a2, _2, O2, S2, d2, v2, c2 ? -1 : v2, c2 ? v2 : -1);
        }
        function wt(t3) {
          var n3, e3;
          return T(t3.Xuo) ? (n3 = t3.parent, e3 = { nps: true }, r.Worksheet.et(t3, "needPaintSelection", e3), (o.hi.A1(t3) || n3 && !n3.options.hideSelection) && e3.nps) : t3.Xuo;
        }
        function Mt(t3) {
          var n3;
          t3.quo = (null !== (n3 = t3.quo) && void 0 !== n3 ? n3 : 0) + 1, T(t3.Xuo) && (t3.Xuo = wt(t3));
        }
        function Ct(t3) {
          t3.quo--, t3.quo <= 0 && delete t3.Xuo;
        }
        function St(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.backColor || Y;
        }
        function Tt(t3, n3) {
          n3 && ("addRows" === t3 ? n3.JO() : "deleteRows" === t3 ? n3.XO() : "addColumns" === t3 ? n3.qO() : "deleteColumns" === t3 && n3.$O());
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.m7 = n2.g7 = n2.clearNeedPaintSelectionCache = n2.cacheNeedPaintSelection = n2.needPaintSelection = n2.p7 = void 0, i2 = e2("Common"), r = e2("./dist/core/worksheet/worksheet.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/worksheet/stylehelper.js"), u = e2("./dist/core/util/domUtil.js"), s = e2("./dist/core/worksheet/worksheet-model.js"), c = e2("./dist/core/worksheet/worksheet-border.js"), f = e2("./dist/core/core.enum.js"), l = e2("./dist/core/celltype/basecelltype.js"), h = e2("./dist/core/worksheet/stylehelper.js"), d = e2("./dist/core/excel-io-util/common.js"), v = d.Util.Qr, p = d.Util.WYr, g = o.mt.XYr, m = function(t3) {
          return t3.getSparkline;
        }, b = i2.Common.Uf, y = o.mt.gt, w = o.mt.vt, M = o.mt.bt, C = o.mt.St, S = o.mt.Tt.safari, T = i2.Common.lt.ht, x = i2.Common.lt.q8, A = o.mt.Ct, I = a.p5, k = a.W.V, N = a.W.x2e, j = null, D = void 0, _ = Math.min, O = Math.max, E = Math.abs, R = Math.sin, L = Math.cos, F = Math.tan, B = Math.floor, P = Math.round, G = parseInt, U = "black", H = "transparent", V = "rowHeader", z = "columnHeader", Y = "white", Z = "number", W = 2, Q = 100, K = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.Mf = t4, i3.Vx = t4.Yy(e3), i3.u7 = t4.s7(n3, e3, f.SheetArea.viewport, true), i3.c7 = k(t4.Dn.Nn(), t4.zoom()).font, i3.f7 = t4.$f(), i3.l7 = {};
          }
          return t3.prototype.b7 = function(t4, n3, e3) {
            var i3, r2, a2, u2, c2, f2 = this, l2 = f2.l7[t4];
            if (l2) return l2;
            if (r2 = (i3 = f2.Vx).length, a2 = new s.K8(), n3 || (n3 = o.q.J()), r2 > 0) {
              for (a2.headingOverflowLayouts = f2.y7(t4, n3), c2 = 0; c2 < r2; c2++) (u2 = this.w7(t4, c2, n3, e3)) && a2.push(u2);
              a2.trailingOverflowLayouts = f2.C7(t4, n3);
            }
            return f2.l7[t4] = a2, a2;
          }, t3.prototype.w7 = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, x2, I2, k2, N2, j2, D2, _2 = this, O2 = _2.Mf, E2 = O2.Jt, R2 = _2.Vx, L2 = R2.length;
            if (0 !== L2 && (b2 = R2[0].col, w2 = R2[L2 - 1].col, e3 || (e3 = o.q.J()), !(ft(s2 = R2[n3]) <= 0) && (c2 = s2.col, l2 = E2.MAe(t4, c2), h2 = E2.$t(t4, c2, 3, 1), r2 = l2.textOrientation, a2 = l2.isVerticalText, u2 = l2.textIndent && 0 !== l2.textIndent, M2 = l2 && (l2.borderLeft || l2.borderTop || l2.borderRight || l2.borderBottom), (!T(h2) || l2.watermark || l2.cellType) && (C2 = O2.parent && O2.parent.options.numbersFitMode, !((l2.shrinkToFit || !r2 && l2.wordWrap && (C2 === f.NumbersFitMode.mask || C2 === f.NumbersFitMode.overflow && !A(h2)) || a2) && 4 !== l2.hAlign || 4 !== l2.hAlign && false === O2.options.allowCellOverflow || (S2 = O2.conditionalFormats) && (I2 = (x2 = S2.U(O2, t4, c2, h2, 3)) && x2.dataBar, k2 = x2 && x2.iconSet, I2 && I2.showBarOnly || k2 && k2.showIconOnly)))))) return d2 = E2.Kt(c2), v2 = E2.Gt(t4), N2 = l2.cellType || _2.f7, j2 = {}, g2 = o.Be.Cl(O2, l2, h2, j2, { row: t4, col: c2, sheet: O2 }), j2 && j2.content && j2.content.length > 0 && !l2.shrinkToFit && r2 && (g2 = N2.de(e3, j2.content, v2 - 4, l2.font)), 3 === (p2 = l2.hAlign) && (p2 = y(p2, h2, l2.formatter || l2._autoFormatter, r2)), D2 = O2.options.rightToLeft, !M2 || !r2 || a2 && 4 !== p2 || u2 ? 0 === p2 ? m2 = D2 ? _2.T7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, b2) : _2.S7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, w2) : 2 === p2 ? m2 = D2 ? _2.S7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, w2) : _2.T7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, b2) : 1 === p2 ? m2 = _2.A7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, b2, w2) : 4 === p2 && (m2 = _2.I7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, 0, O2.getColumnCount() - 1)) : 0 > r2 && r2 > -90 ? m2 = _2.x7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, b2) : 0 < r2 && r2 < 90 && (m2 = _2.x7({ data: h2, style: l2, width: d2, text: g2, printZoomFactor: i3 }, t4, c2, w2, true)), m2;
          }, t3.prototype.N7 = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.Vx, s2 = u2.length, c2 = a2.Mf, f2 = c2.Jt;
            for (o2 = s2 - 1; o2 >= 0; o2--) if (r2 = (n3 = u2[o2]).col, e3 = f2.qt(t4, r2), (i3 = f2.$t(t4, r2, 3, 1)) || e3.watermarks) return this.w7(t4, o2);
          }, t3.prototype.S7 = function(t4, n3, e3, i3) {
            var r2 = this;
            return yt(r2.Mf, r2.u7, r2.f7, r2.c7, t4, n3, e3, i3, true);
          }, t3.prototype.T7 = function(t4, n3, e3, i3) {
            var r2 = this;
            return yt(r2.Mf, r2.u7, r2.f7, r2.c7, t4, n3, e3, i3);
          }, t3.prototype.x7 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, c2, f2, l2, d2 = this, v2 = d2.Mf, p2 = d2.u7, g2 = d2.f7, m2 = d2.c7, b2 = v2.Jt, y2 = ft(t4), w2 = ft(t4), M2 = t4.style, C2 = t4.text, S2 = t4.printZoomFactor, T2 = M2.watermark, x2 = M2.wordWrap, A2 = M2.textOrientation, I2 = M2 && (M2.borderLeft || M2.borderTop || M2.borderRight || M2.borderBottom), k2 = M2.isVerticalText, N2 = M2.textIndent && 0 !== M2.textIndent, D2 = v2.options.allowCellOverflow;
            if (p2.findCell(n3, e3)) return j;
            if (M2.cellButtons && M2.cellButtons.length > 0) return j;
            if (h.W.Xue(M2)) return j;
            if (!(c2 = M2.cellType || g2).allowOverflow || !C2 && !T2 || !A2 && x2) return j;
            if (C2 || (C2 = T2), !D2 && !A2) return j;
            if ((a2 = !I2 || k2 || N2 ? vt(t4.data, C2, M2, m2, v2, n3, e3, S2) : pt(A2, b2.Kt(e3), b2.Gt(n3))) <= w2) return j;
            for (f2 = e3, l2 = e3, o2 = e3 + (r2 ? 1 : -1); (r2 ? o2 <= i3 : o2 >= i3) && !p2.findCell(n3, o2) && !(u2 = b2.qt(n3, o2)).watermark && !(u2.cellType && "1" !== u2.cellType.typeName || u2.cellButtons && u2.cellButtons.length > 0 || h.W.Xue(u2)) && (r2 ? l2 = o2 : f2 = o2, !(a2 <= (w2 += b2.Kt(o2)))); o2 += r2 ? 1 : -1) ;
            return r2 && l2 === e3 || !r2 && f2 === e3 ? j : new s.Q8(e3, f2, l2, a2, y2, w2, r2 ? -1 : w2, r2 ? w2 : -1);
          }, t3.prototype.A7 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, c2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, I2, k2, N2, D2, _2, O2, E2;
            if (A(t4.data) && this.Mf.parent && this.Mf.parent.options.numbersFitMode !== f.NumbersFitMode.overflow) return j;
            if (u2 = (a2 = (o2 = this).Mf).Jt, c2 = o2.u7, l2 = ft(t4), d2 = ft(t4), p2 = t4.style, m2 = t4.text, b2 = t4.printZoomFactor, y2 = p2.textOrientation, w2 = p2.watermark, M2 = p2.wordWrap, x2 = a2.options.allowCellOverflow, c2.findCell(n3, e3)) return j;
            if (p2.cellButtons && p2.cellButtons.length > 0) return j;
            if (h.W.Xue(p2)) return j;
            if (!(I2 = p2.cellType || o2.f7).allowOverflow || !m2 && !w2 || !y2 && M2 && a2.parent && a2.parent.options.numbersFitMode !== f.NumbersFitMode.overflow) return j;
            if (m2 || (m2 = w2), !x2 && !y2) return j;
            if ((C2 = vt(t4.data, m2, p2, o2.c7, a2, n3, e3, b2)) <= d2) return j;
            if (90 === Math.abs(y2) && M2) return j;
            for (k2 = e3, N2 = d2 / 2, g2 = e3 - 1; g2 >= i3 && !c2.findCell(n3, g2) && (S2 = u2.qt(n3, g2), v2 = u2.$t(n3, g2, 3, 1, { style: S2 }), D2 = S2.textOrientation, !u2.fdr(g2) || (T(v2) || D2 && y2)) && !S2.watermark && !(S2.cellType && "1" !== S2.cellType.typeName || S2.cellButtons && S2.cellButtons.length > 0 || h.W.Xue(S2)) && (k2 = g2, !(C2 / 2 <= (N2 += u2.Kt(g2)))); g2--) ;
            for (_2 = e3, O2 = d2 / 2, g2 = e3 + 1; g2 <= r2 && !c2.findCell(n3, g2) && (S2 = u2.qt(n3, g2), v2 = u2.$t(n3, g2, 3, 1, { style: S2 }), D2 = S2.textOrientation, !u2.fdr(g2) || (T(v2) || D2 && y2)) && !S2.watermark && !(S2.cellType && "1" !== S2.cellType.typeName || S2.cellButtons && S2.cellButtons.length > 0 || h.W.Xue(S2)) && (_2 = g2, !(C2 / 2 <= (O2 += u2.Kt(g2)))); g2++) ;
            return k2 === _2 ? j : (E2 = a2.options.rightToLeft, new s.Q8(e3, k2, _2, C2, l2, N2 + O2, E2 ? O2 : N2, E2 ? N2 : O2));
          }, t3.prototype.k7 = function(t4, n3, e3) {
            var i3 = t4.qt(n3, e3), r2 = t4.$t(n3, e3, 3, 1, { style: i3 }), o2 = t4.fdr(e3);
            return !o2 || !(!i3.textOrientation && !T(r2)) && (!i3.watermark && !(i3.cellType && "1" !== i3.cellType.typeName || i3.cellButtons && i3.cellButtons.length > 0 || h.W.Xue(i3)));
          }, t3.prototype.I7 = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, c2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.Mf, S2 = C2.Jt, x2 = M2.u7, I2 = ft(t4), k2 = t4.style, N2 = k2.shrinkToFit, D2 = t4.text, _2 = t4.printZoomFactor, O2 = k2.watermark, E2 = k2.wordWrap;
            if (x2.findCell(n3, e3)) return j;
            if (k2.cellButtons && k2.cellButtons.length > 0) return j;
            if (h.W.Xue(k2)) return j;
            for (D2 || (D2 = O2), u2 = vt(t4.data, D2, k2, M2.c7, C2, n3, e3, _2), l2 = e3, d2 = e3, v2 = S2.Kt(e3), p2 = l2 + 1; p2 <= r2 && (c2 = S2.qt(n3, p2), o2 = S2.$t(n3, p2, 3, 1, { style: c2 }), T(o2) && 4 === c2.hAlign && T(C2.getSpan(n3, p2))) && !c2.watermark && !(c2.cellType && "1" !== c2.cellType.typeName || c2.cellButtons && c2.cellButtons.length > 0 || h.W.Xue(c2)); p2++) d2 = p2, v2 += S2.Kt(p2);
            if (g2 = (u2 - v2) / 2, A(t4.data) && this.Mf.parent && this.Mf.parent.options.numbersFitMode !== f.NumbersFitMode.overflow && (g2 = 0), m2 = l2, b2 = v2 / 2, y2 = d2, w2 = v2 / 2, !N2 && !E2 && false !== C2.options.allowCellOverflow) {
              for (a2 = e3 - 1; a2 >= i3 && g2 > 0 && (this.k7(S2, n3, a2) && !x2.findCell(n3, a2)) && (m2 = a2, !(g2 <= (b2 += S2.Kt(a2)) - v2 / 2)); a2--) ;
              for (a2 = d2 + 1; a2 <= r2 && g2 > 0 && (this.k7(S2, n3, a2) && !x2.findCell(n3, a2)) && (y2 = a2, !(g2 <= (w2 += S2.Kt(a2)) - v2 / 2)); a2++) ;
            }
            return new s.Q8(e3, m2, y2, u2, I2, b2 + w2, b2, w2, v2);
          }, t3.prototype.y7 = function(t4, n3) {
            var e3, i3, r2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2 = this, S2 = C2.Mf, x2 = S2.Jt, A2 = C2.Vx;
            if (0 === A2.length) return [];
            for (e3 = A2[0].col, i3 = A2[A2.length - 1].col, r2 = S2.Ut, b2 = [], n3 || (n3 = o.q.J()), w2 = S2.options.rightToLeft, M2 = 1; M2 < Q; M2++) {
              if ((h2 = e3 - M2) < 0) return b2;
              if (r2.findSpan(t4, h2) || S2.Cb && S2.Cb.D7(t4, h2, f.SheetArea.viewport)) return b2;
              if (u2 = x2.$t(t4, h2, 3, 1), (s2 = x2.Kt(h2)) > 0 && !T(u2)) {
                if (4 !== (l2 = (a2 = x2.qt(t4, h2)).hAlign) && false === S2.options.allowCellOverflow) continue;
                3 === l2 && (l2 = y(l2, u2, D, a2.textOrientation)), c2 = x2.Gt(t4), g2 = a2.cellType || C2.f7, m2 = {}, v2 = o.Be.Cl(S2, a2, u2, m2, { row: t4, col: h2, sheet: S2 }), m2 && m2.content && m2.content.length > 0 && !a2.shrinkToFit && a2.textOrientation && (v2 = g2.de(n3, m2.content, c2 - 4, a2.font)), p2 = { data: u2, style: a2, width: s2, text: v2 }, 0 < a2.textOrientation && a2.textOrientation < 90 ? d2 = C2.x7(p2, t4, h2, i3, true) : 0 === l2 && !w2 || 2 === l2 && w2 ? d2 = C2.S7(p2, t4, h2, i3) : 1 === l2 ? d2 = C2.A7(p2, t4, h2, e3, i3) : 4 === l2 && (d2 = C2.I7(p2, t4, h2, e3, i3)), d2 && d2.endColumn >= e3 && b2.push(d2);
              }
            }
            return b2;
          }, t3.prototype.C7 = function(t4, n3) {
            var e3, i3, r2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2 = this, x2 = S2.Mf, A2 = x2.Jt, I2 = S2.Vx;
            if (0 === I2.length) return [];
            for (e3 = I2[0].col, i3 = I2[I2.length - 1].col, r2 = x2.Ut, v2 = x2.getColumnCount(), w2 = [], n3 || (n3 = o.q.J()), M2 = x2.options.rightToLeft, C2 = 1; C2 < Q; C2++) {
              if ((p2 = i3 + C2) >= v2) return w2;
              if (r2.findSpan(t4, p2) || x2.Cb && x2.Cb.D7(t4, p2, f.SheetArea.viewport)) return w2;
              if (u2 = A2.$t(t4, p2, 3, 1), (s2 = A2.Kt(p2)) > 0 && !T(u2)) {
                if (4 !== (l2 = (a2 = A2.MAe(t4, p2)).hAlign) && false === x2.options.allowCellOverflow) continue;
                3 === l2 && (l2 = y(l2, u2, D, a2.textOrientation)), c2 = A2.Gt(t4), h2 = a2.cellType || S2.f7, d2 = {}, m2 = o.Be.Cl(x2, a2, u2, d2, { row: t4, col: p2, sheet: x2 }), d2 && d2.content && d2.content.length > 0 && !a2.shrinkToFit && a2.textOrientation && (m2 = h2.de(n3, d2.content, c2 - 4, a2.font)), b2 = { data: u2, style: a2, width: s2, text: m2 }, 0 > a2.textOrientation && a2.textOrientation > -90 ? g2 = S2.x7(b2, t4, p2, e3, false) : 2 === l2 && !M2 || 0 === l2 && M2 ? g2 = S2.T7(b2, t4, p2, e3) : 1 === l2 ? g2 = S2.A7(b2, t4, p2, e3, i3) : 4 === l2 && (g2 = S2.I7(b2, t4, p2, 0, i3 + Q)), g2 && g2.startColumn <= i3 && w2.push(g2);
              }
            }
            return w2;
          }, t3;
        })(), n2.p7 = K, n2.needPaintSelection = wt, n2.cacheNeedPaintSelection = Mt, n2.clearNeedPaintSelectionCache = Ct, J = (function() {
          function t3(t4) {
            this.Mf = t4;
          }
          return t3.prototype.l3e = function(t4, n3) {
            var e3 = this.Mf, i3 = e3.getParent(), o2 = { sheetArea: t4, isPrinting: n3, isNeedHighlightInvalid: !n3 && 3 === t4 && i3 && i3.options.highlightInvalidData };
            return r.Worksheet.et(e3, "sheetHighlightInvalid", o2), o2.isNeedHighlightInvalid;
          }, t3.prototype.J = function() {
            var t4 = this.Mf, n3 = j, e3 = t4.Dg();
            return e3 && e3.getContext && (n3 = e3.getContext("2d")), n3;
          }, t3.prototype._7 = function() {
            var t4, n3 = this, e3 = n3.Mf, i3 = e3.ot(), r2 = e3.fg, a2 = ft(r2), u2 = ct(r2), s2 = n3.E7;
            return s2 && ft(s2) === a2 && ct(s2) === u2 || (s2 && (o.Bf.th(e3, s2), n3.Nke()), n3.E7 = s2 = o.mt.En("canvas"), s2.getContext && (n3.j7 = s2.getContext("2d"), o.Bf.Wl(s2, j, e3), o.Bf.$l(s2, ft(i3), ct(i3)))), (t4 = n3.j7) && (t4.beginPath(), M(t4, n3._n(n3.Nn())), t4.name = "bufferContext"), t4;
          }, t3.prototype.Nn = function() {
            return this.c7 || (this.c7 = I + " " + this.Mf.currentTheme().bodyFont()), this.c7;
          }, t3.prototype.O7 = function() {
            this.c7 = j;
          }, t3.prototype.R7 = function(t4) {
            var n3, e3 = this.Mf, i3 = e3.parent, r2 = i3 ? i3.options.grayAreaBackColor || o.I.ll("gc-grayArea").backgroundColor : "gray", a2 = o.Pf.vl(e3, r2);
            return t4 ? ((n3 = i3 ? i3.options.backgroundImage : j) && (a2 = H), a2) : a2;
          }, t3.prototype._n = function(t4) {
            var n3, e3 = this.Mf.zoom();
            return 1 === e3 ? t4 : k(t4, e3).font;
          }, t3.prototype.FA = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = l2.E7, d2 = l2.J();
            e3 <= 0 || i3 <= 0 || !h2 || !d2 || (r2 || (r2 = l2.Mf.ot()), a2 = o.Bf.Kl(h2), u2 = o.Bf.Jl(h2), 1 !== a2 && (t4 *= a2, n3 *= u2, e3 *= a2, i3 *= u2, r2 = new o.Rect(r2.x * a2, r2.y * u2, ft(r2) * a2, ct(r2) * u2)), (s2 = r2.getIntersect(t4, n3, e3, i3)) && (s2.round(), t4 = s2.x, n3 = s2.y, e3 = ft(s2), i3 = ct(s2), (c2 = ft(h2)) && t4 + e3 > c2 && (t4 = c2 - e3) < 0 && (e3 += t4, t4 = 0), (f2 = ct(h2)) && n3 + i3 > f2 && (n3 = f2 - i3) < 0 && (i3 += n3, n3 = 0), o.Lf.Vl(d2, 1, 1), d2.clearRect(t4, n3, e3, i3), d2.drawImage(h2, t4, n3, e3, i3, t4, n3, e3, i3), o.Lf.Vl(d2, a2, u2)));
          }, t3.prototype.O1 = function(t4, n3) {
            t4 && this.FA(t4.x, t4.y, ft(t4), ct(t4), n3);
          }, t3.prototype.Ey = function(t4, n3, e3, i3, r2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
            if (void 0 === u2 && (u2 = false), e3 > 0 && i3 > 0) try {
              c2 = (s2 = this).Mf, f2 = s2.J(), l2 = c2.Dg(), h2 = s2._7(), d2 = s2.E7, g2 = r2, m2 = a2, b2 = v2 = e3, y2 = p2 = i3, w2 = o.Bf.Kl(l2), M2 = o.Bf.Jl(l2), t4 = P(t4 * w2), n3 = P(n3 * M2), e3 = P(e3 * w2), i3 = P(i3 * M2), g2 = P(g2 * w2), m2 = P(m2 * M2), b2 = P(b2 * w2), y2 = P(y2 * M2), C2 = ft(d2), S2 = ct(d2), C2 && t4 + e3 > C2 && (t4 = C2 - e3) < 0 && (e3 += t4, t4 = 0), S2 && n3 + i3 > S2 && (n3 = S2 - i3) < 0 && (i3 += n3, n3 = 0), C2 && g2 + b2 > C2 && (g2 = C2 - b2) < 0 && (b2 += g2, g2 = 0), S2 && m2 + y2 > S2 && (m2 = S2 - y2) < 0 && (y2 += m2, m2 = 0), o.Lf.Vl(f2, 1, 1), o.Lf.Vl(h2, 1, 1), u2 ? (h2.clearRect(g2, m2, b2, y2), h2.drawImage(l2, t4, n3, e3, i3, g2, m2, b2, y2)) : (f2.clearRect(g2, m2, b2, y2), f2.drawImage(d2, t4, n3, e3, i3, g2, m2, b2, y2), h2.clearRect(g2, m2, b2, y2), h2.drawImage(l2, g2, m2, b2, y2, g2, m2, b2, y2)), o.Lf.Vl(f2, w2, M2), o.Lf.Vl(h2, w2, M2);
            } catch (t5) {
            }
          }, t3.prototype.E1 = function(t4, n3, e3, i3, r2, a2) {
            var u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2, j2, D2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2 = this, K2 = Q2.Mf, J2 = T(r2) || 3 === r2;
            if (e3 || (e3 = Q2.J()), u2 = false, s2 = (0, o.Ec)(-1, -1, -1, -1), c2 = K2.Ut, t4 && (s2 = K2.options.allowCellOverflow || K2.gD ? (0, o.Ec)(t4.row, 0, t4.rowCount, K2.getColumnCount(r2)) : (0, o.Ec)(t4.row, t4.col, t4.rowCount, t4.colCount), J2 && !a2)) {
              if (s2.col >= 0) {
                for (h2 = s2.col, d2 = s2.col + s2.colCount - 1, v2 = K2.getRowCount(1), p2 = 0; p2 < v2; p2++) (l2 = c2.findSpan(p2, s2.col, 1)) ? h2 = _(l2.col, h2) : K2.z9 && (h2 = _(K2.z9.col, h2)), (l2 = c2.findSpan(p2, s2.col + s2.colCount - 1, 1)) ? d2 = O(l2.col + l2.colCount - 1, d2) : K2.z9 && (d2 = O(K2.z9.col + K2.z9.colCount - 1, d2));
                s2.col = h2, s2.colCount = d2 - h2 + 1;
              }
              if (s2.row >= 0) {
                for (g2 = s2.row, m2 = s2.row + s2.rowCount - 1, b2 = K2.getColumnCount(2), y2 = 0; y2 < b2; y2++) (l2 = c2.findSpan(s2.row, y2, 2)) ? g2 = _(l2.row, g2) : K2.z9 && (g2 = _(K2.z9.row, g2)), (l2 = c2.findSpan(s2.row + s2.rowCount - 1, y2, 2)) ? m2 = O(l2.row + l2.rowCount - 1, m2) : K2.z9 && (m2 = O(K2.z9.row + K2.z9.rowCount - 1, m2));
                s2.row = g2, s2.rowCount = m2 - g2 + 1;
              }
            }
            if (w2 = K2.j1(s2, r2), K2.cellStates && K2.cellStates.hasIntersectInSelectionState(s2.row, s2.col, s2.rowCount, s2.colCount) && K2.repaint(w2), C2 = (M2 = K2._1) && M2.isEnable(f.RowColumnStates.selected, true), S2 = M2 && M2.isEnable(f.RowColumnStates.selected, false), t4 && (x2 = void 0, (C2 || S2) && (x2 = K2.s7(K2.C0(t4.row), K2.S0(t4.col), f.SheetArea.viewport, false)), C2 && (A2 = t4.row, I2 = t4.rowCount, x2 && x2.length > 0 && (k2 = x2.findLargestRange(t4, true)) && (N2 = (0, o.Ec)(k2.row, k2.col, k2.rowCount, k2.colCount), A2 = (j2 = t4.union(N2)).row, I2 = j2.rowCount), D2 = K2.j1((0, o.Ec)(A2, -1, I2, -1), r2), w2.x = _(w2.x, D2.x), w2.y = _(w2.y, D2.y), w2.width = O(w2.width, D2.width), w2.height = O(w2.height, D2.height)), S2 && (E2 = t4.col, R2 = t4.colCount, x2 && x2.length > 0 && (L2 = x2.findLargestRange(t4, false)) && (F2 = (0, o.Ec)(L2.row, L2.col, L2.rowCount, L2.colCount), E2 = (j2 = t4.union(F2)).col, R2 = j2.colCount), D2 = K2.j1((0, o.Ec)(-1, E2, -1, R2), r2), w2.x = _(w2.x, D2.x), w2.y = _(w2.y, D2.y), w2.width = O(w2.width, D2.width), w2.height = O(w2.height, D2.height))), B2 = ft(w2), P2 = ct(w2), G2 = w2.x, U2 = w2.y, B2 >= 0 || P2 >= 0) {
              if (H2 = -9, V2 = -9, z2 = 18, Y2 = 30, w2.x += H2, w2.y += V2, w2.width += z2, w2.height += Y2, n3 && !(w2 = w2.getIntersectRect(n3))) return;
              Mt(K2), Z2 = K2.Fi(), W2 = K2.options.rightToLeft, P2 > 0 && !a2 && (K2.k1 = true, Q2._e(e3, new o.Rect(W2 ? Z2.x + Z2.width - Z2.XC : Z2.x, O(Z2.T6, U2), Z2.XC, P2), i3)), B2 > 0 && !a2 && (K2.k1 = true, Q2._e(e3, new o.Rect(O(W2 ? Z2.x : Z2.b6, G2), Z2.y, B2, Z2.qC), i3)), -1 !== s2.row || -1 !== s2.col || a2 || (K2.k1 = true, Q2._e(e3, Z2.R1(), i3)), B2 > 0 && P2 > 0 && ((C2 || S2) && (K2.k1 = true), Q2._e(e3, w2, i3)), Ct(K2), u2 = true;
            }
            return u2;
          }, t3.prototype._6 = function(t4, n3, e3, i3, r2) {
            var a2, u2 = this, s2 = u2.Mf;
            s2.My <= 0 && (a2 = u2.J()) && (r2 || (s2.k1 = true), u2._e(a2, new o.Rect(t4, n3, e3, i3)));
          }, t3.prototype.repaint = function(t4) {
            var n3, e3 = this, i3 = e3.Mf;
            i3.My > 0 || (n3 = e3.J()) && (i3.k1 = true, e3._e(n3, t4));
          }, t3.prototype._e = function(t4, n3, e3) {
            var i3 = this;
            t4 && i3.Mf.My <= 0 && (e3 || i3.D1(t4, n3), i3.jy(t4, n3));
          }, t3.prototype.Vao = function(t4) {
            var n3, e3, i3, r2 = this, a2 = this, u2 = a2.J();
            u2 && a2.Mf.My <= 0 && (a2.Mf.k1 = true, n3 = function(t5) {
              var n4 = r2.Mf.ot();
              return new o.Rect(Math.max(t5.x - 2, 0), Math.max(t5.y - 2, 0), Math.min(t5.width + 4, n4.width), Math.min(t5.height + 4, n4.height));
            }, e3 = t4 && n3(t4), a2.D1(u2, t4, void 0, e3), e3 && (i3 = n3(e3), a2.Ey(i3.x, i3.y, i3.width, i3.height, i3.x, i3.y, true)));
          }, t3.prototype.D1 = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2 = this, f2 = c2.Mf;
            t4 && f2.My <= 0 && (a2 = (r2 = c2._7()) || t4, u2 = f2.ot(), n3 || (n3 = u2), n3 && n3.round(), e3 && e3.round(), f2.k1 && (f2.k1 = false, s2 = i3 || n3, r2 && (r2.clearRect(s2.x, s2.y, ft(s2), ct(s2)), e3 && r2.clearRect(e3.x, e3.y, ft(e3), ct(e3)), o.Lf.Yl(r2, -u2.x, -u2.y)), c2.B7(a2, s2), e3 && c2.B7(a2, e3), r2 && o.Lf.Yl(r2, u2.x, u2.y)), r2 && (c2.O1(n3), e3 && c2.O1(e3)));
          }, t3.prototype.jy = function(t4, n3) {
            var e3, i3, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = c2.Oi;
            if (t4 && !(c2.My > 0) && (n3 && n3.round(), e3 = c2.Fi(), r.Worksheet.et(c2, "beforePaintAdornment", { ctx: t4, clipRect: n3 }), !c2.D_)) {
              if (f2) {
                for (i3 = e3.R1(), s2.O1(i3), a2 = 0; a2 <= 2; a2++) (i3 = e3.B1(a2)) && 0 !== ft(i3) && 0 !== ct(i3) && s2.O1(i3);
                for (u2 = 0; u2 <= 2; u2++) (i3 = e3.L1(u2)) && 0 !== ft(i3) && 0 !== ct(i3) && s2.O1(i3);
              } else if (c2.NMi && c2.NMi.options.isDesignMode) for (u2 = 0; u2 <= 2; u2++) (i3 = e3.L1(u2)) && 0 !== ft(i3) && 0 !== ct(i3) && ((o2 = n3) && !i3.intersectRect(o2) || s2.L7(t4, -1, u2, o2, 1));
              for (a2 = 0; a2 <= 2; a2++) for (u2 = 0; u2 <= 2; u2++) (i3 = e3.c9(a2, u2)) && 0 !== ft(i3) && 0 !== ct(i3) && (o2 = n3, (f2 && (1 !== a2 || 1 !== u2) || c2.parent && c2.parent.options.allowUserDragMerge) && (s2.O1(i3), o2 = i3), o2 && !i3.intersectRect(o2) || s2.L7(t4, a2, u2, o2));
              s2.F7(t4), r.Worksheet.et(c2, "paintAdornment", { ctx: t4, clipRect: n3 });
            }
          }, t3.prototype.PYr = function(t4) {
            var n3, e3, i3 = function() {
              if (!t4 || !t4.src) return false;
              var n4 = v(t4.src);
              return n4 ? "svg+xml" === n4.type : g(t4.src);
            };
            return i3() ? (e3 = (n3 = document.createElement("canvas")).getContext("2d"), n3.width = t4.width, n3.height = t4.height, e3.fillStyle = "transparent", e3.fillRect(0, 0, n3.width, n3.height), e3.drawImage(t4, 0, 0, t4.width, t4.height), n3) : t4;
          }, t3.prototype.nt = function(t4, n3, e3) {
            var i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, g2 = v2.Mf, m2 = g2.pYr;
            !m2 || g2.getRowCount() < 1 || g2.getColumnCount() < 1 || (p(m2), 0 !== m2.width && 0 !== m2.height && (r2 = v2.PYr(m2), a2 = t4.canvas, u2 = o.Bf.Kl(a2), s2 = o.Bf.Jl(a2), (c2 = false !== (null === (i3 = g2.eYr) || void 0 === i3 ? void 0 : i3.fitScreenDPI) && (1 !== u2 || 1 !== s2)) && (l2 = (f2 = document.createElement("canvas")).width = r2.width / u2, h2 = f2.height = r2.height / s2, (d2 = f2.getContext("2d")).drawImage(r2, 0, 0, l2, h2), r2 = f2), v2.hYr(t4, r2, n3, e3)));
          }, t3.prototype.hYr = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.Mf, v2 = n3.width, p2 = n3.height, g2 = d2.parent, m2 = g2 && g2.options.scrollByPixel, b2 = d2.options, y2 = "none" === (null === (r2 = d2.eYr) || void 0 === r2 ? void 0 : r2.layout), w2 = d2.gj && d2.gj() || { x: b2.sheetAreaOffset.left, y: b2.sheetAreaOffset.top, width: 0, height: 0 }, M2 = d2.frozenRowCount(), C2 = d2.frozenTrailingRowCount(), S2 = d2.getRowCount(), T2 = d2.Eve(), x2 = d2.frozenColumnCount(), A2 = d2.frozenTrailingColumnCount(), I2 = d2.getColumnCount(), k2 = d2.jve(), N2 = function() {
              var t5, n4;
              return m2 ? (t5 = g2._vScrollbar.value(), d2.rYr(O(0, M2)) + t5) : !(n4 = d2._y(1)) || n4.length < 1 ? 0 : d2.rYr(n4[0].row);
            }, j2 = function(t5) {
              return 0 === t5 ? d2.rYr(O(0, T2)) : 1 === t5 ? N2() : 2 === t5 ? d2.rYr(S2 - C2) : void 0;
            }, D2 = function() {
              var t5, n4;
              return m2 ? (t5 = g2._hScrollbar.value(), d2.oYr(O(0, x2)) + t5) : !(n4 = d2.Yy(1)) || n4.length < 1 ? 0 : d2.oYr(n4[0].col);
            }, E2 = function(t5) {
              return 0 === t5 ? d2.oYr(O(0, k2)) : 1 === t5 ? D2() : 2 === t5 ? d2.oYr(I2 - A2) : void 0;
            }, R2 = function(t5) {
              return !t5 || 0 === t5.width || 0 === t5.height;
            }, L2 = function(t5) {
              var n4, e4 = d2.Yy(t5);
              return !e4 || e4.length < 1 ? 0 : (n4 = e4.length, b2.rightToLeft ? e4[0].x + e4[0].width - e4[n4 - 1].x : e4[n4 - 1].x + e4[n4 - 1].width - e4[0].x);
            }, F2 = function(t5) {
              var n4, e4 = d2._y(t5);
              return !e4 || e4.length < 1 ? 0 : e4[(n4 = e4.length) - 1].y + e4[n4 - 1].height - e4[0].y;
            }, B2 = function(t5, n4) {
              var e4, r3, o2 = d2.Fi(), a3 = h2.U7(t5, n4, o2, w2, i3);
              return a3 ? (e4 = L2(n4), r3 = F2(t5), a3.width = _(a3.width, e4), a3.height = _(a3.height, r3), a3) : a3;
            }, P2 = function() {
              var t5 = L2(0), n4 = E2(1);
              return t5 + O(0, v2 - n4);
            }, G2 = function() {
              var t5 = F2(0), n4 = j2(1);
              return t5 + O(0, p2 - n4);
            }, U2 = function() {
              var t5 = P2(), n4 = G2(), e4 = d2.Fi();
              return b2.rightToLeft ? new o.Rect(e4.x + e4.width - e4.XC - t5, e4.qC, t5, n4) : new o.Rect(e4.XC, e4.qC, t5, n4);
            }, H2 = U2(), V2 = function(e4, i4, r3, o2) {
              var a3, u3, s3, c3, f3, l3, h3, d3, g3, m3, y3, w3, M3, C3, S3 = r3 + i4.x - e4.x, T3 = S3 - Math.floor(S3 / v2) * v2;
              for (b2.rightToLeft && (S3 = r3 + (e4.x + e4.width - i4.x), T3 = v2 - (S3 - Math.floor(S3 / v2) * v2)), u3 = (a3 = o2 + i4.y - e4.y) - Math.floor(a3 / p2) * p2, s3 = v2 - T3, c3 = p2 - u3, f3 = i4.height, l3 = i4.width, t4.save(), h3 = i4.y, d3 = u3, g3 = c3, m3 = 0; m3 < f3; ) {
                for (g3 + m3 > f3 && (g3 = f3 - m3), y3 = i4.x, w3 = T3, M3 = s3, C3 = 0; C3 < l3; ) M3 + C3 > l3 && (M3 = l3 - C3), t4.drawImage(n3, w3, d3, M3, g3, y3, h3, M3, g3), C3 += M3, y3 += M3, M3 = v2, w3 = 0;
                m3 += g3, h3 += g3, g3 = p2, d3 = 0;
              }
              t4.restore();
            };
            for (a2 = 0; a2 < 3; ++a2) for (u2 = 0; u2 < 3; ++u2) (s2 = B2(a2, u2)) && !R2(s2) && ((c2 = e3 ? s2.getIntersectRect(e3) : s2) && y2 && (c2 = c2.getIntersectRect(H2)), c2 && !R2(c2) && (f2 = j2(a2), V2(s2, c2, l2 = E2(u2), f2)));
          }, t3.prototype.wm = function(t4, n3, e3, i3) {
            var r2 = this.Mf, a2 = r2.parent, u2 = a2 ? a2.options : {}, s2 = St(r2), c2 = o.Pf.vl(r2, s2), f2 = u2.backgroundImage;
            (f2 || !i3 && r2.pYr) && (c2 = H), t4.save(), t4.fillStyle = c2, t4.fillRect(n3.x, n3.y, ft(n3), ct(n3)), t4.restore(), !i3 && r2.pYr && (t4.save(), this.nt(t4, e3, i3), t4.restore());
          }, t3.prototype.P7 = function(t4, n3) {
            var e3 = this.Mf, i3 = e3.Fi(), r2 = e3.frozenRowCount() > 0 ? 0 : 1;
            return 0 === i3.qC && (t4 === e3.getViewportTopRow(r2) || n3);
          }, t3.prototype.G7 = function(t4, n3) {
            var e3 = this.Mf, i3 = e3.Fi(), r2 = e3.frozenColumnCount() > 0 ? 0 : 1;
            return 0 === i3.XC && (t4 === e3.getViewportLeftColumn(r2) || n3);
          }, t3.prototype.U7 = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = o2.Mf, u2 = 0 === i3.width, s2 = 0 === i3.height, c2 = a2.options, f2 = c2.sheetAreaOffset.top, l2 = c2.sheetAreaOffset.left, h2 = e3.c9(t4, n3);
            return h2 && (s2 && o2.P7(a2.H7(t4), r2) && (h2.y = h2.y - f2, h2.height = h2.height + f2), u2 && o2.G7(a2.z7(n3), r2) && (h2.x = h2.x - l2, h2.width = h2.width + l2)), h2;
          }, t3.prototype.V7 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Mf, p2 = v2.options, g2 = v2.Fi(), m2 = p2.sheetAreaOffset.top, b2 = p2.sheetAreaOffset.left, y2 = 0 !== g2.qC, w2 = 0 !== g2.XC, M2 = v2.gj && v2.gj() || { x: p2.sheetAreaOffset.left, y: p2.sheetAreaOffset.top, width: 0, height: 0 };
            for (Mt(v2), r2 = 0 === M2.width, o2 = 0 === M2.height, u2 = 0; u2 <= 2; u2++) (c2 = g2.L1(u2)) && (y2 && o2 && (c2.y = c2.y - m2, c2.height = c2.height + m2, !w2 && r2 && (c2.x = c2.x - b2, c2.width = c2.width + b2)), (s2 = n3 ? c2.getIntersectRect(n3) : c2) && d2.Y7(t4, u2, s2, e3, i3));
            for (a2 = 0; a2 <= 3; a2++) for ((f2 = g2.B1(a2)) && (w2 && r2 && (f2.x = f2.x - b2, f2.width = f2.width + b2, !y2 && o2 && (f2.y = f2.y - m2, f2.height = f2.height + m2)), (s2 = n3 ? f2.getIntersectRect(n3) : f2) && d2.Z7(t4, a2, s2, e3, i3)), u2 = 0; u2 <= 2; u2++) (l2 = d2.U7(a2, u2, g2, M2, e3)) && (s2 = n3 ? l2.getIntersectRect(n3) : l2) && d2.W7(t4, a2, u2, s2, e3, i3, l2);
            (h2 = g2.R1()) && (s2 = n3 ? h2.getIntersectRect(n3) : h2) && d2.Q7(t4, s2, e3, i3), Ct(v2);
          }, t3.prototype.K7 = function(t4) {
            var n3, e3 = this, i3 = e3.Mf, r2 = i3.options.rightToLeft, o2 = i3.Fi(), a2 = r2 ? o2.x : o2.BA, u2 = o2.LA, s2 = ft(o2), c2 = o2.Ay, f2 = o2.Iy, l2 = o2.J7, h2 = r2 ? o2.Uy - 1 : o2.Uy, d2 = o2.X7, v2 = o2.Ty;
            v2 > 0 && (t4.fillStyle = e3.R7(false), t4.fillRect(a2, d2, s2, v2)), h2 > 0 && (t4.fillStyle = e3.R7(false), t4.fillRect(l2, u2, h2, d2 + 1), (n3 = i3.Ny) && t4.fillRect(l2, c2, h2, f2));
          }, t3.prototype.q7 = function(t4, n3) {
            var e3 = this, i3 = e3.Mf, r2 = e3.R7(false), o2 = i3.options, a2 = o2.sheetAreaOffset.left, u2 = o2.sheetAreaOffset.top, s2 = n3.x, c2 = n3.y, f2 = ft(n3), l2 = ct(n3);
            t4.save(), a2 > 0 && lt(t4, a2, r2, s2 + a2 / 2, u2 > 0 ? c2 + u2 : c2, s2 + a2 / 2, c2 + O(0, l2)), u2 > 0 && lt(t4, u2, r2, a2 > 0 ? s2 + a2 : s2, c2 + u2 / 2, s2 + O(0, f2), c2 + u2 / 2), a2 > 0 && u2 > 0 && (t4.fillStyle = e3.R7(false), t4.fillRect(s2, c2, a2, u2)), t4.beginPath(), t4.restore();
          }, t3.prototype.B7 = function(t4, n3) {
            var e3, i3 = this, o2 = i3.Mf;
            !t4 || o2.My > 0 || (e3 = o2.ot(), t4.save(), n3 ? t4.rect(n3.x, n3.y, ft(n3), ct(n3)) : t4.rect(e3.x, e3.y, ft(e3), ct(e3)), t4.clip(), t4.beginPath(), i3.wm(t4, e3, n3, false), r.Worksheet.et(o2, "paint", { ctx: t4, clipRect: n3 }), i3.q7(t4, e3), i3.V7(t4, n3, false), i3.K7(t4), i3.$_e(t4, n3), i3.tO(t4), r.Worksheet.et(o2, "paintSheetEnd", { ctx: t4, clipRect: n3 }), t4.beginPath(), t4.restore());
          }, t3.prototype.nO = function(t4, n3, e3) {
            var i3, r2, a2 = this, u2 = a2.Mf;
            t4 && (i3 = u2.ot(), t4.save(), r2 = n3 || new o.Rect(i3.x, i3.y, ft(i3), ct(i3)), t4.rect(r2.x, r2.y, ft(r2), ct(r2)), t4.clip(), t4.beginPath(), a2.wm(t4, i3, n3, true), a2.V7(t4, r2, true, e3), t4.beginPath(), t4.restore());
          }, t3.prototype.F7 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this.Mf, l2 = f2.rt, h2 = f2.sw;
            if (l2 && l2.isResizing && h2 && (u2 = h2.resizeInfo)) {
              if (s2 = f2.Fi(), c2 = U, t4.save(), t4.strokeStyle !== c2 && (t4.strokeStyle = c2), 1 !== t4.lineWidth && (t4.lineWidth = 1), t4.beginPath(), "sizeRow" === u2.action || "sizeHiddenRow" === u2.action) for (e3 = O(0, u2.startY - 0.5), r2 = u2.movingY - 0.5, o2 = s2.x + ft(s2), n3 = s2.x; n3 < o2; n3 += 2) t4.moveTo(n3, e3), t4.lineTo(n3 + 1, e3), t4.moveTo(n3, r2), t4.lineTo(n3 + 1, r2);
              else for (n3 = O(0, u2.startX - 0.5), i3 = u2.movingX - 0.5, a2 = s2.y + ct(s2), e3 = s2.y; e3 < a2; e3 += 2) t4.moveTo(n3, e3), t4.lineTo(n3, e3 + 1), t4.moveTo(i3, e3), t4.lineTo(i3, e3 + 1);
              t4.stroke(), t4.beginPath(), t4.restore();
            }
          }, t3.prototype.Nke = function() {
            o.Lf.d5(this.E7), this.E7 = null, this.j7 = null;
          }, t3.prototype.Q7 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, f2, l2, h2 = this.Mf;
            t4.beginPath(), o2 = (r2 = h2.Fi().R1()).x, a2 = r2.y, u2 = ft(r2), s2 = ct(r2), f2 = h2.getActualStyle(-1, -1, 0), this.eO(t4, [{ data: j, row: -1, col: -1, x: o2, y: a2, width: u2, height: s2, style: f2.clone() }], 0, e3, i3), (l2 = new c.Yx(h2, h2._y(0, 0), h2.Yy(0, 0), 0)).PN(0, 0, o2, a2, u2, s2, j, j, j, j, { printZoomFactor: i3 }), l2.paint(t4, i3);
          }, t3.prototype.$_e = function(t4, n3) {
            this.tEe(t4, n3), this.nEe(t4, n3);
          }, t3.prototype.tEe = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this.Mf, w2 = y2.Fi(), M2 = w2.eEe(), C2 = w2.Z_e();
            T(M2) || T(C2) || (e3 = 4, M2.x -= e3, M2.width += e3 + 2, M2.height += e3, i3 = M2.getIntersectRect(n3), T(i3) || (t4.save(), t4.beginPath(), t4.rect(i3.x, i3.y, ft(i3), ct(i3)), t4.clip(), r2 = C2.x, o2 = C2.y, a2 = ft(C2), u2 = ct(C2), s2 = y2.J_e(f.SheetArea.colHeader, true), h2 = [], d2 = o2 - M2.y, p2 = (v2 = ht(y2, f.SheetArea.colHeader)) ? y2.sw.row : D, g2 = v2 ? y2.sw.col : D, d2 > 0 && (l2 = y2.getDefaultStyle(f.SheetArea.colHeader).clone(true), s2.borderBottom && (l2.borderBottom = s2.borderBottom.Gf()), h2.push({ data: D, row: D, col: D, x: r2, y: M2.y, width: a2, height: d2, style: l2 })), h2.push({ data: s2.backgroundImage ? D : "+", row: p2, col: g2, x: r2, y: o2, width: a2, height: u2, style: s2 }), this.eO(t4, h2, f.SheetArea.colHeader, false), m2 = new c.Yx(y2, y2._y(0, f.SheetArea.colHeader), y2.Yy(0, f.SheetArea.colHeader), f.SheetArea.colHeader), b2 = 0, d2 > 0 && (b2 = 1, m2.PN(0, 0, r2, M2.y, a2, d2, l2)), m2.PN(b2, 0, r2, o2, a2, u2, s2), m2.paint(t4), t4.restore()));
          }, t3.prototype.nEe = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this.Mf, w2 = y2.Fi(), M2 = w2.iEe(), C2 = w2.W_e();
            T(M2) || T(C2) || (e3 = 4, M2.y -= e3, M2.width += e3, M2.height += e3 + 2, i3 = M2.getIntersectRect(n3), T(i3) || (t4.save(), t4.beginPath(), t4.rect(i3.x, i3.y, ft(i3), ct(i3)), t4.clip(), r2 = C2.x, o2 = C2.y, a2 = ft(C2), u2 = ct(C2), s2 = y2.J_e(f.SheetArea.rowHeader, true), h2 = [], d2 = r2 - M2.x, p2 = (v2 = ht(y2, f.SheetArea.rowHeader)) ? y2.sw.row : D, g2 = v2 ? y2.sw.col : D, d2 > 0 && (l2 = y2.getDefaultStyle(f.SheetArea.rowHeader).clone(true), s2.borderRight && (l2.borderRight = s2.borderRight.Gf()), h2.push({ data: D, row: D, col: D, x: M2.x, y: o2, width: d2, height: u2, style: l2 })), h2.push({ data: s2.backgroundImage ? D : "+", row: p2, col: g2, x: r2, y: o2, width: a2, height: u2, style: s2 }), this.eO(t4, h2, f.SheetArea.rowHeader, false), m2 = new c.Yx(y2, y2._y(0, f.SheetArea.rowHeader), y2.Yy(0, f.SheetArea.rowHeader), f.SheetArea.rowHeader), b2 = 0, d2 > 0 && (b2 = 1, m2.PN(0, 0, M2.x, o2, d2, u2, l2)), m2.PN(0, b2, r2, o2, a2, u2, s2), m2.paint(t4), t4.restore()));
          }, t3.prototype.tO = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2 = this.Mf, h2 = l2.options.rightToLeft, d2 = l2.frozenRowCount(), v2 = l2.frozenColumnCount(), p2 = l2.frozenTrailingRowCount(), g2 = l2.frozenTrailingColumnCount();
            (d2 || v2 || p2 || g2) && (n3 = l2.Fi(), e3 = h2 ? n3.b6 : n3.Py, i3 = n3.Cy, r2 = h2 ? n3.Hy + n3.zy : n3.Hy, a2 = n3.Ay, u2 = n3.x, s2 = n3.y, c2 = ft(n3), f2 = ct(n3), t4.save(), t4.strokeStyle = o.Pf.vl(l2, l2.options.frozenlineColor), t4.lineWidth = 1, t4.beginPath(), v2 && (t4.moveTo(e3 - 0.5, s2), t4.lineTo(e3 - 0.5, s2 + f2)), d2 && (t4.moveTo(u2, i3 - 0.5), t4.lineTo(u2 + c2, i3 - 0.5)), g2 && (t4.moveTo(r2 - 0.5, s2), t4.lineTo(r2 - 0.5, s2 + f2)), p2 && (t4.moveTo(u2, a2 - 0.5), t4.lineTo(u2 + c2, a2 - 0.5)), t4.stroke(), t4.restore());
          }, t3.prototype.Y7 = function(t4, n3, e3, i3, r2) {
            this.iO(t4, -1, n3, 1, e3, i3, r2);
          }, t3.prototype.Z7 = function(t4, n3, e3, i3, r2) {
            this.iO(t4, n3, -1, 2, e3, i3, r2);
          }, t3.prototype.W7 = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2 = this.Mf, f2 = c2.getCalcService && c2.getCalcService();
            3 !== n3 && f2 && f2.ggr(true), this.iO(t4, n3, e3, 3, i3, r2, o2, a2), 3 !== n3 && f2 && (u2 = !f2.calcOnDemand, f2.ggr(false, u2, c2)), (s2 = this.Mf.lA) && s2.oO(t4, i3, n3, e3);
          }, t3.prototype.aO = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2 = this, f2 = c2.Mf, l2 = f2.getRangeRect(n3, e3, (0, o.Ec)(r2.row, r2.col, r2.rowCount, r2.colCount));
            (l2 = l2.getIntersectRect(f2.Fi().c9(n3, e3))) && (l2.round(), a2 = r2.isValid, t4.save(), t4.lineWidth = 1, t4.strokeStyle = "mediumblue", a2 || t4.setLineDash([6, 2]), u2 = l2.x + 0.5, s2 = l2.y + 0.5, t4.strokeRect(u2, s2, ft(l2), ct(l2)), t4.beginPath(), t4.restore());
          }, t3.prototype.L7 = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2 = T(r2) || 3 === r2, B2 = this, P2 = B2.Mf;
            if (wt(P2)) {
              if (!P2.addSelection) return;
              if (c2 = 3 === n3, f2 = P2.Ut, l2 = P2.rt, d2 = (h2 = f2.getSelections(r2)).length, !(i3 = B2.uO(n3, e3, i3))) return;
              if (v2 = o.I.fl("gc-selection"), p2 = G(v2.zIndex), F2 && !c2 && (p2 > 2007 && B2.sO(t4, n3, e3, i3), g2 = P2.Uw && P2.Uw(3), (m2 = f2.cO = g2 && g2.t8.getAnchorInfo(P2.getActiveRowIndex(), P2.getActiveColumnIndex())) && B2.aO(t4, n3, e3, i3, m2)), w2 = void 0, (y2 = (b2 = B2.fO(n3, e3, h2, i3)).length) <= 0) return;
              for (M2 = F2 && B2.fO(n3, e3, [P2.z9], i3)[0], C2 = false, S2 = void 0, S2 = 0; S2 < y2; S2++) if (w2 = b2[S2], !i3.containsRect(w2)) {
                C2 = true;
                break;
              }
              if (M2 && !i3.containsRect(M2) && (C2 = true), t4.save(), C2 && (P2.options.rightToLeft && (i3.x -= 2), t4.rect(i3.x, i3.y, ft(i3), ct(i3)), t4.clip()), t4.beginPath(), y2 > 0) for (s2 = o.Pf.vl(P2, P2.getSelectionBackColor()), t4.fillStyle !== s2 && (t4.fillStyle = s2), a2 = 0, u2 = 0, p2 > 2007 && (a2 = 1, u2 = -3), S2 = 0; S2 < y2; S2++) w2 = b2[S2], t4.fillRect(w2.x + a2, w2.y + a2, ft(w2) + u2, ct(w2) + u2);
              P2.RD || (x2 = P2.ui, A2 = P2.ci, 1 === r2 ? (x2 = (I2 = f2.J9() || h2[0]).row, A2 = I2.col) : M2 && (x2 = P2.U9, A2 = P2.H9), N2 = void 0, j2 = void 0, D2 = void 0, _2 = void 0, (k2 = P2.getCellRect(x2, A2, n3, e3)) && k2.intersectRect(i3) && (N2 = k2.x, j2 = k2.y, D2 = ft(k2), _2 = ct(k2), a2 = 1, u2 = -2, p2 > 2007 && (a2 = 0, u2 = 0), B2.FA(N2 + a2, j2 + a2, D2 + u2, _2 + u2), d2 > 1 && (t4.strokeStyle = o.Pf.vl(P2, P2.getSelectionBorderColor()), t4.lineWidth = 1, t4.strokeRect(N2 + 1.5, j2 + 1.5, D2 - 4, _2 - 4)))), t4.restore(), t4.save(), t4.beginPath(), 1 === d2 && (F2 && l2 && l2.Yk && l2.lO && l2.lO() && !l2.hO && (O2 = l2.dO && l2.dO(), R2 = ft(E2 = P2.getRangeRect(n3, e3, O2)), L2 = ct(E2), E2 && R2 > 0 && L2 > 0 && (t4.fillStyle = v2 && v2.color, t4.fillRect(E2.x, E2.y, R2, L2))), w2 && ft(w2) >= 0 && ct(w2) >= 0 && (B2.vO(i3, P2, n3, e3, p2), B2.mO(t4, n3, e3, w2, i3, h2[0], r2))), M2 && (t4.save(), C2 && (t4.rect(i3.x, i3.y, ft(i3), ct(i3)), t4.clip()), t4.beginPath(), t4.fillStyle = "rgba(255,255,255,0.4)", t4.fillRect(M2.x + a2, M2.y + a2, ft(M2) + u2, ct(M2) + u2), t4.fillStyle = s2, t4.strokeStyle = "rgb(124,124,124)", t4.lineWidth = 1, t4.strokeRect(M2.x - 0.5, M2.y - 0.5, ft(M2), ct(M2)), t4.restore()), t4.beginPath(), t4.restore();
            }
          }, t3.prototype.vO = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = n3.frozenTrailingRowCount(), m2 = n3.frozenTrailingColumnCount(), b2 = n3.getSelections(), y2 = n3.Fi(), w2 = n3.getRowCount() - g2 - 1, M2 = n3.getColumnCount() - m2 - 1, C2 = n3.Yy(1, 3), S2 = n3._y(1, 3);
            1 === b2.length && r2 > 2007 && (o2 = n3.frozenRowCount(), a2 = n3.frozenColumnCount(), s2 = (u2 = b2[0]).row, c2 = u2.col, f2 = u2.rowCount, l2 = u2.colCount, o2 > 0 && (s2 >= o2 && n3.nI(s2) < o2 ? (t4.y -= 2, t4.height += 2) : s2 + f2 <= o2 && n3.j5(s2 + f2 - 1) === n3.Tb && (t4.height += 2)), a2 > 0 && (c2 >= a2 && n3.r6(c2) < a2 ? (t4.x -= 2, t4.width += 2) : c2 + l2 <= a2 && n3.O5(c2 + l2 - 1) === n3.Ab && (t4.width += 2)), 0 === s2 && 0 === c2 && (t4.x -= 2, t4.y -= 2, t4.width += 2, t4.height += 2), -1 === s2 && (s2 = 0, f2 = n3.getRowCount()), -1 === c2 && (c2 = 0, l2 = n3.getColumnCount()), h2 = false, d2 = false, v2 = S2.findRow(w2), p2 = C2.findCol(M2), v2 && v2.y + ct(v2) < y2.Cy + n3.Sy(y2) && (h2 = true), p2 && p2.x + ft(p2) < y2.Py + n3.Gy(y2) && (d2 = true), h2 && s2 + f2 - 1 === w2 && (t4.height += 2), d2 && c2 + l2 - 1 === M2 && (t4.width += 2));
          }, t3.prototype.sO = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2 = this, O2 = _2.Mf, E2 = O2.Ut.getSelections(), R2 = O2.Fi(), L2 = R2.b6, F2 = R2.T6, B2 = E2.length, P2 = 0 !== R2.qC, G2 = 0 !== R2.XC;
            if (!(B2 <= 0)) {
              if (o2 = (r2 = E2[0]).row, a2 = r2.rowCount, u2 = r2.col, s2 = r2.colCount, -1 === o2 && (o2 = 0), -1 === u2 && (u2 = 0), -1 === a2 && (a2 = O2.getRowCount()), -1 === s2 && (s2 = O2.getColumnCount()), t4.save(), t4.beginPath(), t4.lineWidth = 2, t4.strokeStyle = O2.getSelectionBorderColor(), c2 = i3.x, f2 = i3.y, l2 = ft(i3), h2 = ct(i3), d2 = O2.frozenRowCount(), P2 && (1 !== B2 || 0 !== d2 || O2.Tb <= o2 || O2.Tb >= o2 + a2)) for (p2 = 0, g2 = (v2 = _2.gO(e3)).length; p2 < g2; p2++) b2 = 0, y2 = 0, w2 = (m2 = v2[p2]).x, M2 = m2.x + ft(m2), m2.x < c2 + l2 && c2 < m2.x + ft(m2) && (1 === B2 && (0 === d2 && O2.Tb === o2 || d2 > 0 && 0 === o2) && (b2 = -1, y2 = 1), m2.x < c2 && (b2 = 0, w2 = c2), m2.x + ft(m2) > c2 + l2 && (y2 = 0, M2 = c2 + l2), t4.moveTo(w2 + b2 - 1, F2 - 1), t4.lineTo(M2 + y2, F2 - 1), t4.stroke());
              if (C2 = O2.frozenColumnCount(), G2 && (1 !== B2 || 0 !== C2 || O2.Ab <= u2 || O2.Ab >= u2 + s2)) for (T2 = 0, x2 = (S2 = _2.pO(n3)).length; T2 < x2; T2++) I2 = 0, k2 = 0, N2 = (A2 = S2[T2]).y, j2 = A2.y + ct(A2), A2.y < f2 + h2 && f2 < A2.y + ct(A2) && (1 === B2 && (0 === C2 && O2.Ab === u2 || C2 > 0 && 0 === u2) && (I2 = -1, k2 = 1), A2.y < f2 && (I2 = 0, N2 = f2), A2.y + ct(A2) > f2 + h2 && (k2 = 0, j2 = f2 + h2), D2 = O2.options.rightToLeft, t4.moveTo(D2 ? R2.x + R2.width - R2.XC - 1 : L2 - 1, N2 + I2 - 1), t4.lineTo(D2 ? R2.x + R2.width - R2.XC - 1 : L2 - 1, j2 + k2), t4.stroke());
              t4.beginPath(), t4.restore();
            }
          }, t3.prototype.gO = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this.Mf, m2 = g2.Ut.getSelections(), b2 = m2.length, y2 = g2.Yy(t4), w2 = [], M2 = g2.options.rightToLeft, C2 = {};
            for (e3 = 0; e3 < b2; e3++) if (i3 = m2[e3]) {
              if (-1 === (r2 = i3.col)) a2 = g2.Yy(0, 3), u2 = g2.Yy(1, 3), s2 = g2.Yy(2, 3), c2 = -1, f2 = -1, a2.length > 0 && (c2 = M2 ? a2[a2.length - 1].x : a2[0].x, f2 = M2 ? a2[0].x + a2[0].width - c2 : a2[a2.length - 1].x + a2[a2.length - 1].width - c2, w2.push(new o.Rect(c2, -1, f2, -1))), u2.length > 0 && (c2 = M2 ? u2[u2.length - 1].x : u2[0].x, f2 = M2 ? u2[0].x + u2[0].width - c2 : u2[u2.length - 1].x + u2[u2.length - 1].width - c2, w2.push(new o.Rect(c2, -1, f2, -1))), s2.length > 0 && (c2 = M2 ? s2[s2.length - 1].x : s2[0].x, f2 = M2 ? s2[0].x + s2[0].width - c2 : s2[s2.length - 1].x + s2[s2.length - 1].width - c2, w2.push(new o.Rect(c2, -1, f2, -1)));
              else if (y2 && (l2 = r2, h2 = r2 + i3.colCount - 1, d2 = y2.findCol(l2), v2 = y2.findCol(h2), d2 || v2)) {
                if (p2 = new o.Rect(-1, -1, -1, -1), M2 ? (p2.x = v2 ? v2.x : y2[y2.length - 1].x, p2.width = d2 ? d2.x + ft(d2) - p2.x : y2[0].x + y2[0].width - p2.x) : (p2.x = d2 ? d2.x : y2[0].x, p2.width = v2 ? v2.x + ft(v2) - p2.x : y2[y2.length - 1].x + y2[y2.length - 1].width - p2.x), C2[n3 = [p2.x, p2.width].join("_")]) continue;
                C2[n3] = true, w2.push(p2);
              }
            }
            return w2;
          }, t3.prototype.pO = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this.Mf, p2 = v2.Ut.getSelections(), g2 = p2.length, m2 = v2._y(t4), b2 = [], y2 = {};
            for (e3 = 0; e3 < g2; e3++) if (i3 = p2[e3]) {
              if (-1 === (r2 = i3.row)) a2 = v2._y(0, 3), u2 = v2._y(1, 3), s2 = v2._y(2, 3), c2 = -1, f2 = -1, a2.length > 0 && (c2 = a2[0].y, f2 = a2[a2.length - 1].y + a2[a2.length - 1].height - c2, b2.push(new o.Rect(-1, c2, -1, f2))), u2.length > 0 && (c2 = u2[0].y, f2 = u2[u2.length - 1].y + u2[u2.length - 1].height - c2, b2.push(new o.Rect(-1, c2, -1, f2))), s2.length > 0 && (c2 = s2[0].y, f2 = s2[s2.length - 1].y + s2[s2.length - 1].height - c2, b2.push(new o.Rect(-1, c2, -1, f2)));
              else if (m2 && (l2 = m2.findRow(r2), h2 = m2.findRow(r2 + i3.rowCount - 1), l2 || h2)) {
                if ((d2 = new o.Rect(-1, -1, -1, -1)).y = l2 ? l2.y : m2[0].y, d2.height = h2 ? h2.y + ct(h2) - d2.y : m2[m2.length - 1].y + m2[m2.length - 1].height - d2.y, y2[n3 = [d2.y, d2.height].join("_")]) continue;
                y2[n3] = true, b2.push(d2);
              }
            }
            return b2;
          }, t3.prototype.mO = function(t4, n3, e3, i3, r2, a2, u2) {
            var s2, c2, f2 = this, l2 = f2.Mf, h2 = l2.parent, d2 = l2.rt, v2 = i3.x, p2 = i3.y, g2 = ft(i3), m2 = ct(i3), b2 = l2.getViewportTopRow(n3), y2 = l2.getViewportLeftColumn(e3), w2 = l2.getViewportBottomRow(n3), M2 = l2.getViewportRightColumn(e3), C2 = 0, S2 = 0, x2 = l2.Fi(), A2 = 0 !== x2.qC, I2 = 0 !== x2.XC;
            I2 || a2.col !== y2 && -1 !== a2.col || (C2 = 2), A2 || a2.row !== b2 && -1 !== a2.row || (S2 = 2), a2.row + a2.rowCount === w2 + 1 && (r2.height = r2.height + 1), a2.col + a2.colCount === M2 + 1 && (r2.width = r2.width + 1), g2 >= 0 && m2 >= 0 && (!r2 || i3.intersect(r2.x - 1, r2.y - 1, ft(r2) + 2, ct(r2) + 2)) && (t4.save(), r2 && !r2.containsRect(i3) && (t4.rect(r2.x - C2, r2.y - S2, ft(r2), ct(r2)), t4.clip()), t4.beginPath(), t4.strokeStyle = o.Pf.vl(l2, l2.getSelectionBorderColor()), t4.lineWidth = 2, g2 > 0 && m2 > 0 ? (d2 && d2.Yk ? 2 === (s2 = d2.bO) ? (t4.moveTo(v2 + 0.5, p2 - 0.5), t4.lineTo(v2 + g2 - 1, p2 - 0.5)) : 3 === s2 ? (t4.moveTo(v2 + 0.5, p2 + m2 - 0.5), t4.lineTo(v2 + g2 - 1, p2 + m2 - 0.5)) : 0 === s2 ? (t4.moveTo(v2 - 0.5, p2 + 0.5), t4.lineTo(v2 - 0.5, p2 + m2 - 1)) : 1 === s2 && (t4.moveTo(v2 + g2 - 0.5, p2 + 0.5), t4.lineTo(v2 + g2 - 0.5, p2 + m2 - 1)) : (c2 = h2 && h2.SC) > 2007 ? t4.rect(v2 - 1, p2 - 1, g2 + 1, m2 + 1) : t4.rect(v2 - 0.5, p2 - 0.5, g2, m2), t4.stroke(), (T(u2) || 3 === u2) && h2 && h2.options.allowUserDragFill && f2.yO && f2.yO(t4, n3, e3, i3, r2)) : 0 !== g2 && 0 !== m2 || t4.strokeRect(v2 - 1, p2 - 1, g2 + 1, m2 + 1), t4.beginPath(), t4.restore());
          }, t3.prototype.uO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this.Mf, c2 = s2.Fi();
            return t4 >= 0 && n3 >= 0 ? i3 = c2.c9(t4, n3) : -1 === t4 ? i3 = c2.L1(n3) : -1 === n3 && (i3 = c2.B1(t4)), 1 === n3 && (r2 = s2.Yy(n3), s2.options.rightToLeft ? (o2 = r2.length > 0 ? r2[0] : j) && (i3.width = _(ft(i3), o2.x + ft(o2) - c2.x - c2.zy)) : (o2 = r2.length > 0 ? r2[r2.length - 1] : j) && (i3.width = _(ft(i3), o2.x + ft(o2) - c2.Py))), 1 === t4 && (u2 = (a2 = s2._y(t4)).length > 0 ? a2[a2.length - 1] : j) && (i3.height = _(ct(i3), u2.y + ct(u2) - c2.Cy)), e3 = e3 ? e3.getIntersect(i3.x, i3.y, ft(i3), ct(i3)) : i3;
          }, t3.prototype.fO = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this.Mf, c2 = s2.Ut, f2 = e3.length, l2 = [], h2 = s2.C6(t4, n3);
            for (u2 = 0; u2 < f2; u2++) (o2 = e3[u2]) && ((r2 = c2.findSpan(o2.row, o2.col, h2)) && r2.containsRange(o2) && (o2 = r2), (a2 = s2.getRangeRect(t4, n3, o2)) && a2.x <= i3.x + ft(i3) && a2.y <= i3.y + ct(i3) && i3.x <= a2.x + ft(a2) && i3.y <= a2.y + ct(a2) && l2.push(a2));
            return l2;
          }, t3.prototype.wO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2;
            if (t4.save(), i3 = n3.x, r2 = n3.y, o2 = ft(n3), a2 = ct(n3), u2 = [6, 6], t4.setLineDash) t4.beginPath(), t4.lineWidth = 2, t4.strokeStyle = e3, t4.setLineDash(u2), t4.rect(i3, r2, o2 - 1, a2 - 1), t4.stroke();
            else {
              for (t4.beginPath(), t4.lineWidth = 2, t4.strokeStyle = e3, s2 = u2[0], c2 = u2[1], f2 = void 0, l2 = void 0, h2 = void 0, d2 = void 0, f2 = i3, l2 = r2, h2 = o2; h2 > 0; ) if (h2 >= s2 + c2) t4.moveTo(f2, l2), t4.lineTo(f2 + s2, l2), f2 = f2 + s2 + c2, h2 = h2 - s2 - c2;
              else {
                if (h2 >= s2) {
                  t4.moveTo(f2, l2), t4.lineTo(f2 + s2, l2), h2 = h2 - s2 - c2;
                  break;
                }
                if (h2 > 0) {
                  t4.moveTo(f2, l2), t4.lineTo(f2 + h2, l2), h2 = h2 - s2 - c2;
                  break;
                }
              }
              for (f2 = i3 + o2 - 1, l2 = r2 + 1, d2 = a2 - 1, h2 < 0 && ((h2 = E(h2)) > c2 && (t4.moveTo(f2, l2 - 2), t4.lineTo(f2, l2 + (h2 - c2))), l2 += h2, d2 -= h2); d2 > 0; ) d2 >= s2 + c2 ? (t4.moveTo(f2, l2), t4.lineTo(f2, l2 + s2), l2 = l2 + s2 + c2, d2 = d2 - s2 - c2) : d2 >= s2 ? (t4.moveTo(f2, l2), t4.lineTo(f2, l2 + s2), d2 = d2 - s2 - c2) : d2 > 0 && (t4.moveTo(f2, l2), t4.lineTo(f2, l2 + d2), d2 = d2 - s2 - c2);
              for (f2 = i3 + o2 - 2, l2 = r2 + a2 - 1, h2 = o2 - 1, d2 < 0 && ((d2 = E(d2)) > c2 && (t4.moveTo(f2 + 2, l2), t4.lineTo(f2 - (d2 - c2), l2)), f2 -= d2, h2 -= d2); h2 > 0; ) if (h2 >= s2 + c2) t4.moveTo(f2, l2), t4.lineTo(f2 - s2, l2), f2 = f2 - s2 - c2, h2 = h2 - s2 - c2;
              else {
                if (h2 >= s2) {
                  t4.moveTo(f2, l2), t4.lineTo(f2 - s2, l2), h2 = h2 - s2 - c2;
                  break;
                }
                if (h2 > 0) {
                  t4.moveTo(f2, l2), t4.lineTo(f2 - h2, l2), h2 = h2 - s2 - c2;
                  break;
                }
              }
              for (f2 = i3, l2 = r2 + a2 - 2, d2 = a2 - 1, h2 < 0 && ((h2 = E(h2)) > c2 && (t4.moveTo(f2, l2 + 2), t4.lineTo(f2, l2 - (h2 - c2))), l2 -= h2, d2 -= h2); d2 > 0; ) d2 >= s2 + c2 ? (t4.moveTo(f2, l2), t4.lineTo(f2, l2 - s2), l2 = l2 - s2 - c2, d2 = d2 - s2 - c2) : d2 >= s2 ? (t4.moveTo(f2, l2), l2 - s2 === r2 ? t4.lineTo(f2, l2 - s2 - 1) : t4.lineTo(f2, l2 - s2), d2 = d2 - s2 - c2) : d2 > 0 && (l2 > r2 && (t4.moveTo(f2, l2), t4.lineTo(f2, l2 - d2)), d2 = d2 - s2 - c2);
              t4.stroke();
            }
            t4.beginPath(), t4.restore();
          }, t3.prototype.mfe = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2;
            if (!i3 && 0 !== n3.length) {
              for (a2 = e3.row, u2 = void 0, s2 = void 0, c2 = void 0, f2 = void 0, l2 = void 0, d2 = void 0, v2 = void 0, p2 = n3.length - 1; p2 >= 0 && (g2 = n3[p2]).isOutside; p2--) v2 = p2;
              for (x(v2) ? (u2 = (m2 = n3[v2]).col, s2 = m2.x, c2 = m2.width, 2 !== m2.columnHeaderFitMode ? (f2 = n3[v2].y, l2 = n3[v2].height) : (f2 = n3[v2 + 1].y, l2 = n3[v2 + 1].height)) : (u2 = n3[n3.length - 1].col + 1, s2 = n3[n3.length - 1].x + n3[n3.length - 1].width, c2 = r2.Jt.Kt(u2, o2), f2 = e3.y, l2 = e3.height), u2 < r2.getColumnCount(o2) && (d2 = r2.Jt.qt(a2, u2, o2)), h.W.gfe(d2, 4) && c2 > 0 && r2.getColumnVisible(u2, o2) && t4.push({ style: d2, x: s2, y: f2, width: c2, height: l2 }), b2 = void 0, p2 = 0; p2 < n3.length && (g2 = n3[p2]).isOutside; p2++) b2 = p2;
              if (x(b2) ? (u2 = (y2 = n3[b2]).col, s2 = y2.x, c2 = y2.width, 2 !== y2.columnHeaderFitMode ? (f2 = n3[b2].y, l2 = n3[b2].height) : (f2 = n3[b2 + 1].y, l2 = n3[b2 + 1].height)) : (u2 = n3[0].col - 1, c2 = r2.Jt.Kt(u2, o2), s2 = n3[0].x - c2, f2 = e3.y, l2 = e3.height), u2 < 0) return;
              d2 = r2.Jt.qt(a2, u2, o2), h.W.gfe(d2, 5) && c2 > 0 && r2.getColumnVisible(u2, o2) && t4.push({ style: d2, x: s2, y: f2, width: c2, height: l2 });
            }
          }, t3.prototype.MO = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2;
            if (r2 && 0 !== n3.length) {
              if (u2 = n3[0].col - 1, s2 = n3[n3.length - 1].col + 1, c2 = e3.Sl(i3.row, u2, a2), !(f2 = o2.getRowVisible(i3.row))) return;
              u2 >= 0 && (l2 = o2.getColumnVisible(u2)) && o2.isValid && !o2.isValid(i3.row, u2, c2) && t4.push({ style: o2.getDataValidator(i3.row, u2).highlightStyle(), x: n3[0].x - o2.getColumnWidth(u2), y: i3.y, width: o2.getColumnWidth(u2), height: i3.height }), h2 = e3.Sl(i3.row, s2, a2), (d2 = o2.getColumnVisible(s2)) && o2.isValid && !o2.isValid(i3.row, s2, h2) && (v2 = n3[n3.length - 1], t4.push({ style: o2.getDataValidator(i3.row, s2).highlightStyle(), x: v2.x + v2.width, y: i3.y, width: o2.getColumnWidth(s2), height: i3.height }));
            }
          }, t3.prototype.CO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = n3.Jt, s2 = t4.row, c2 = t4.col, f2 = {}, l2 = {}, h2 = [], d2 = t4.rowCount, v2 = t4.colCount;
            for (i3 = 0; i3 < v2; i3++) l2[i3] = n3.nn(i3 + c2, e3);
            for (r2 = 0; r2 < d2; r2++) {
              if (f2[r2] = n3.Gt(r2 + s2, e3), o2 = [], f2[r2] > 0) for (a2 = 0; a2 < v2; a2++) o2.push(l2[a2] > 0 ? u2.qt(s2 + r2, c2 + a2, e3) : D);
              h2.push(o2);
            }
            return { rowSizes: f2, colSizes: l2, styleList: h2 };
          }, t3.prototype.iO = function(t4, n3, o2, a2, u2, s2, l2, d2) {
            var v2, p2, g2, y2, w2, M2, S2, x2, A2, I2, k2, N2, j2, _2, O2, E2, R2, L2, F2, B2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, lt2, ht2, dt2, vt2, pt2, gt2, mt2, bt2, yt2, wt2, Mt2, Ct2, St2, Tt2, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt;
            if (T(a2) && (a2 = 3), p2 = 3 === n3, y2 = (g2 = (v2 = this).Mf).parent, w2 = g2.options.rightToLeft, M2 = y2 && y2.options.resizeZeroIndicator, S2 = g2._y(n3, a2), x2 = g2.yfe(o2, a2), A2 = g2.options.sheetAreaOffset, I2 = g2.gj && g2.gj() || { x: A2.left, y: A2.top, width: 0, height: 0 }, d2 = d2 || v2.U7(n3, o2, g2.Fi(), I2, s2), k2 = false, N2 = S2.length, j2 = x2.length, !(N2 < 0 || j2 < 0)) {
              for (_2 = x2, 1 === a2 && x2.Dh && (_2 = x2.Dh), O2 = v2.l3e(a2, s2), E2 = g2.s7(n3, o2, a2, true), R2 = E2.length > 0, G2 = g2.Jt, V2 = 0, z2 = 0, Y2 = 0, Z2 = 0, J2 = new c.Yx(g2, S2, _2, a2, p2), X2 = [], q2 = [], $2 = [], nt2 = [], et2 = [], t4.save(), t4.beginPath(), it2 = [], rt2 = -1, ot2 = -1, at2 = g2.N9(3), ut2 = g2.k9(3), st2 = g2.Fi(), lt2 = 0 === st2.qC && 0 === I2.height, ht2 = 0 === st2.XC && 0 === I2.width, dt2 = !!m(this.Mf), vt2 = false, pt2 = e2("SheetsCalc"), gt2 = g2.getActiveRowIndex(), mt2 = g2.getActiveColumnIndex(), bt2 = this.SO(a2, g2, gt2, mt2), wt2 = {}, R2 && (yt2 = new i2.Common.rbush(), E2.forEach((function(t5) {
                yt2.insert({ minX: t5.row, minY: t5.col, maxX: t5.row + t5.rowCount - 1, maxY: t5.col + t5.colCount - 1, item: t5 });
              }))), Mt2 = 0; Mt2 < N2; Mt2++) {
                for (L2 = S2[Mt2], v2.MO(nt2, _2, G2, L2, O2, g2, a2), Ct2 = [], St2 = function(t5) {
                  var e3, i3, r2, c2, d3, p3, m2, y3, S3, T2, A3, I3, N3, _3, E3, K2, $3, st3, gt3, mt3, St3, xt2, At2, It2, kt2, Nt2, jt2, Dt2, _t2;
                  if (F2 = x2[t5], R2 && (wt2.minX = L2.row, wt2.minY = F2.col, wt2.maxX = L2.row, wt2.maxY = F2.col, e3 = yt2.search(wt2)[0], B2 = e3 && e3.item), B2 ? (U2 = B2.row, H2 = B2.col, V2 = B2.x, z2 = B2.y, Y2 = ft(B2), Z2 = ct(B2), B2.isAutoMerge && (i3 = v2.TO(B2, n3, o2, a2), V2 = i3.x, z2 = i3.y, Y2 = i3.width, Z2 = i3.height), B2.spanSizeInfo || (B2.spanSizeInfo = v2.CO(B2, g2, a2))) : (U2 = L2.row, H2 = F2.col, V2 = F2.x, Y2 = ft(F2), -1 === F2.y ? z2 = L2.y : (z2 = P(F2.y * L2.height + L2.y), k2 = true), -1 === ct(F2) ? Z2 = ct(L2) : (Z2 = L2.height + L2.y - z2, k2 = true)), 1 === M2 && (-1 === n3 && g2.getColumnVisible(H2) && 0 === g2.Do(H2) && ((ot2 < 0 || ot2 !== H2 - 1) && it2.push({ x1: V2, y1: z2, x2: V2, y2: z2 + Z2, horizontal: false }), ot2 = H2), -1 === o2 && g2.getRowVisible(U2) && 0 === g2._o(U2) && ((rt2 < 0 || rt2 !== U2 - 1) && it2.push({ x1: V2, y1: z2, x2: V2 + Y2, y2: z2, horizontal: true }), rt2 = U2)), u2 && (V2 + Y2 <= u2.x || V2 >= u2.x + ft(u2) || z2 + Z2 <= u2.y || z2 >= u2.y + ct(u2)) && (!k2 || k2 && V2 > u2.x + ft(u2)) && !F2.isOutside) return "continue";
                  if (0 === Y2 || 0 === Z2) return "continue";
                  if (!w2 && 1 === a2 && t5 < j2 - 1 && x2[t5 + 1].x - V2 === 0) return "continue";
                  if (Ct2.push({ col: H2, x: V2, y: z2, width: Y2, height: Z2 }), r2 = function(n4) {
                    var e4, i4;
                    "number" == typeof n4.columnHeaderFitMode && n4.columnHeaderFitMode !== f.ColumnHeaderFitMode.normal && t5 < j2 - 1 && (e4 = g2.O5(F2.col, a2, true)) && (i4 = x2.findCol(e4)) && -1 !== i4.y && (n4.cornerX = i4.x, n4.columnHeaderFitMode === f.ColumnHeaderFitMode.stack ? n4.cornerY = P(i4.y * L2.height) + L2.y : n4.cornerY = L2.height + L2.y);
                  }, F2.isOutside) return (c2 = Ct2[Ct2.length - 1]).isOutside = true, c2.columnHeaderFitMode = 1 === a2 && g2.Lt(H2), r2(c2), c2.columnHeaderFitMode === f.ColumnHeaderFitMode.stack && (c2.width = G2.Kt(H2, a2)), "continue";
                  if (d3 = false, !B2 || !b.OS(X2, B2)) {
                    if (p3 = false, m2 = L2.spacingIndex, y3 = L2.isAfterSpacing, W2 = G2.$t(U2, H2, a2, 1, { rowSpacingIndex: m2, isAfterRowSpacing: y3 }), S3 = g2.AO && g2.AO(), T2 = g2.getRowCount(f.SheetArea.colHeader) - 1, A3 = g2.frozenRowCount(), I3 = g2.getViewportTopRow(0), N3 = g2.getViewportTopRow(1), !s2 && bt2 && U2 === T2 && H2 >= bt2.iw && (0 === A3 && bt2.Ky + bt2.Sx > N3 || A3 > 0 && I3 > 0 && bt2.Ky + bt2.Sx > I3) && H2 < bt2.iw + bt2.Tx) {
                      if (W2 = g2.getCell(bt2.Ky, H2).text() + "", d3 = true, p3 = bt2.filterButtonVisible(), S3) {
                        for (_3 = 0; _3 < S3.length; _3++) if (S3[_3].col === H2 && S3[_3].rowFilter.nM === bt2) {
                          Tt2.IO(S3[_3], 1, T2, true);
                          break;
                        }
                      }
                    } else if (S3 && S3.length > 0 && (K2 = S3[E3 = S3.length - 1].rowFilter && S3[E3].rowFilter.nM)) {
                      for (_3 = S3.length - 1; _3 >= 0; _3--) if (S3[_3].tableColumnHeaderFilter && S3[_3].col === H2) {
                        Tt2.IO(S3[_3], 3, K2.Ky, false);
                        break;
                      }
                    }
                    Q2 = G2.qt(U2, H2, a2, D, { rowSpacingIndex: m2, isAfterRowSpacing: y3 }), O2 && ($3 = G2.Sl(U2, H2, a2), st3 = g2, gt3 = U2, mt3 = H2, St3 = a2, xt2 = false, g2.dataRanges && (At2 = g2.dataRanges.getByPosition(U2, H2)) && (It2 = At2.convertContext({ sheet: g2, row: U2, col: H2, sheetArea: a2 })) && (xt2 = true, st3 = It2.sheet, gt3 = It2.row, mt3 = It2.col, St3 = It2.sheetArea), st3.isValid && !st3.isValid(gt3, mt3, $3) && (!xt2 || xt2 && St3 === f.SheetArea.viewport) && nt2.push({ style: st3.getDataValidator(gt3, mt3).highlightStyle(), x: V2, y: z2, width: Y2, height: Z2 })), 3 === a2 && (kt2 = Q2.formatter, pt2 && kt2 && C(kt2) && (!s2 || g2.pivotTables && g2.pivotTables.findPivotTable(U2, H2)) && (Nt2 = g2.parent && g2.parent.xO(kt2)) && (jt2 = Nt2.getExpression(), W2 = g2.NO(kt2, jt2, U2, H2))), d3 && (Q2.hAlign = 0), r2(tt2 = { data: W2, row: U2, col: H2, x: V2, y: z2, width: Y2, sparkline: dt2 && g2.getSparkline(U2, H2), height: Z2, style: Q2, colStyle: g2.Z_(-1, H2, a2), cellLayout: B2, tableFilter: p3, columnHeaderFitMode: 1 === a2 && g2.Lt(H2), offsetX: F2.offsetX, printZoomFactor: l2, sheetArea: a2, rowSpacingIndex: m2, isAfterRowSpacing: y3, j0r: t5 === x2.length - 1 }), q2.push(tt2), h.W.Xue(Q2) && et2.push({ style: Q2, x: V2, y: z2, width: tt2.columnHeaderFitMode === f.ColumnHeaderFitMode.stack ? g2.getColumnWidth(H2, a2) : Y2, height: Z2, columnHeaderFitMode: tt2.columnHeaderFitMode, cornerY: tt2.cornerY, cornerX: tt2.cornerX }), B2 && X2.push(B2), tt2.style && 4 === tt2.style.hAlign && (vt2 = true), Dt2 = (U2 === at2 || s2 && 0 === Mt2) && lt2, _t2 = void 0, _t2 = g2.options.rightToLeft ? H2 === g2.G6(3) : (H2 === ut2 || s2 && 0 === t5) && ht2, B2 && (B2.vIndex = Mt2, B2.hIndex = t5), J2.PN(U2, H2, V2, z2, Y2, Z2, Q2, B2, Dt2, _t2, tt2);
                  }
                }, Tt2 = this, xt = 0; xt < j2; xt++) St2(xt);
                Ct2.length > 0 && v2.mfe(et2, Ct2, L2, s2, g2, a2);
              }
              if (q2.length > 0) {
                if (3 === a2 && (g2.options.allowCellOverflow || vt2) && (At = G2.gl(n3, o2, (function() {
                  return new K(g2, n3, o2);
                })), ($2 = v2.kO(t4, At, q2, J2, l2)).length > 0)) {
                  for (It = u2.x, kt = u2.x + u2.width, Mt2 = 0; Mt2 < $2.length; Mt2++) (Nt = $2[Mt2]) && (jt = Nt.row, Dt = Nt.col, (_t = Nt.cellOverflowLayout && Nt.cellOverflowLayout.layout) && ((Ot = _t.x) < It && (It = Ot), (Et = Ot + _t.width) > kt && (kt = Et)), Nt.printZoomFactor = l2, J2.PN(jt, Dt, Nt.x, Nt.y, Nt.width, Nt.height, Nt.style, Nt.cellLayout, jt === at2 && lt2, Dt === ut2 && ht2, Nt));
                  q2 = q2.concat($2), s2 || (u2.x = It, u2.width = kt - It, d2 && (u2 = u2 ? d2.getIntersectRect(u2) : d2));
                }
                1 === a2 && k2 && v2.DO(q2, _2, J2, u2, s2, d2, at2, ut2, lt2, ht2, l2), u2 && (Rt = g2.printInfo && g2.printInfo(), s2 && Rt && (Rt.columnStart() > 0 || Rt.rowStart() > 0) && !Rt.showBorder() ? t4.rect(u2.x - (Rt.columnStart() > 0 ? 2 : 0), u2.y - (Rt.rowStart() > 0 ? 2 : 0), ft(u2) + (Rt.columnStart() > 0 ? 4 : 0), ct(u2) + (Rt.rowStart() > 0 ? 4 : 0)) : (g2.options.rightToLeft && (u2.x -= 1), t4.rect(u2.x, u2.y, ft(u2), ct(u2))), t4.clip()), v2.eO(t4, q2, a2, s2, l2);
              }
              r.Worksheet.et(g2, "paintViewport", { ctx: t4, rowViewportIndex: n3, colViewportIndex: o2, sheetArea: a2, clipRect: u2, isPrinting: s2 }), J2.paint(t4, l2), it2.length > 0 && v2._O(t4, it2, 1, 3), nt2.length > 0 && (Lt = d2.getIntersectRect(u2), t4.rect(Lt.x, Lt.y, ft(Lt), ct(Lt)), t4.clip(), v2.EO(t4, nt2)), et2.length > 0 && (Lt = d2 ? d2.getIntersectRect(u2) : u2, t4.rect(Lt.x, Lt.y, ft(Lt), ct(Lt)), t4.clip(), v2.que(t4, et2, { isPrinting: s2, printZoomFactor: l2, sheet: g2 })), t4.restore();
            }
          }, t3.prototype.IO = function(t4, n3, e3, i3) {
            t4.sheetArea = n3, t4.row = e3, t4.tableColumnHeaderFilter = i3;
          }, t3.prototype.SO = function(t4, n3, e3, i3) {
            if (n3.tables && 1 === t4) {
              var r2 = n3.tables.find(e3, i3), o2 = n3.frozenRowCount(), a2 = n3.getViewportTopRow(0), u2 = n3.getViewportTopRow(1);
              if (r2 && r2.jO && (0 === o2 && r2.Ky < u2 || o2 > 0 && a2 > 0 && r2.Ky < a2)) return r2;
            }
            return null;
          }, t3.prototype.TO = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = t4.row, p2 = t4.col, g2 = t4.x, m2 = t4.y, b2 = t4.width, y2 = t4.height, w2 = this.Mf, M2 = w2.Fi();
            return 1 !== n3 || 3 !== i3 && 2 !== i3 || (r2 = M2.B1(n3), a2 = w2.frozenRowCount(), u2 = w2.getRowCount(i3) - w2.frozenTrailingRowCount() - 1, m2 < (s2 = r2.y) && a2 <= v2 && v2 <= u2 && (y2 -= s2 - m2, m2 = s2), m2 + y2 > s2 + (c2 = r2.height) && a2 <= v2 + t4.rowCount - 1 && v2 + t4.rowCount - 1 <= u2 && (y2 -= m2 + y2 - (s2 + c2))), 1 !== e3 || 3 !== i3 && 1 !== i3 || (r2 = M2.L1(e3), f2 = w2.frozenColumnCount(), l2 = w2.getColumnCount(i3) - w2.frozenTrailingColumnCount() - 1, g2 < (h2 = r2.x) && f2 <= p2 && p2 <= l2 && (b2 -= h2 - g2, g2 = h2), g2 + b2 > h2 + (d2 = r2.width) && f2 <= p2 + t4.colCount - 1 && p2 + t4.colCount - 1 <= l2 && (b2 -= g2 + b2 - (h2 + d2))), new o.Rect(g2, m2, b2, y2);
          }, t3.prototype._O = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2;
            if (0 !== n3.length) for (r2 = 0, o2 = n3.length; r2 < o2; r2++) u2 = (a2 = n3[r2]).x1, s2 = a2.y1, c2 = a2.x2, f2 = a2.y2, l2 = a2.horizontal, t4.beginPath(), t4.save(), t4.lineWidth = e3, t4.strokeStyle = this.OO(t4, l2, u2, s2, c2, f2), t4.fillStyle = this.RO(t4, l2, u2, s2, c2, f2), l2 ? (h2 = -3, d2 = 1, v2 = -1, p2 = -2, t4.fillRect(u2, s2 + h2, c2 - u2 - 1, i3 + 2 * e3), s2 += 0.5, f2 += 0.5, t4.moveTo(u2 + v2, s2 + h2), t4.lineTo(c2 + p2, f2 + h2), t4.moveTo(u2 + v2, s2 + d2), t4.lineTo(c2 + p2, f2 + d2)) : (g2 = -3, m2 = 1, b2 = 0, y2 = -1, t4.fillRect(u2 + g2, s2 + b2, i3 + 2 * e3, f2 - s2 - 1), u2 += 0.5, c2 += 0.5, t4.moveTo(u2 + g2, s2 + b2), t4.lineTo(c2 + g2, f2 + y2), t4.moveTo(u2 + m2, s2 + b2), t4.lineTo(c2 + m2, f2 + y2)), t4.stroke(), t4.restore();
          }, t3.prototype.RO = function(t4, n3, e3, i3, r2, a2) {
            var u2, s2, c2, f2, l2, h2 = n3 ? V : z, d2 = o.I.He(0, "gc-" + h2 + "-normal"), v2 = d2 && d2.backgroundColor, p2 = d2 && d2.backgroundImage;
            if (!n3 && p2 && -1 !== p2.indexOf("linear-gradient")) for (s2 = o.mt.ri(p2), u2 = t4.createLinearGradient(e3, i3, r2, a2), c2 = 0, f2 = s2.length; c2 < f2; c2++) l2 = s2[c2], u2.addColorStop(l2.point, l2.color);
            else v2 && (u2 = v2);
            return u2;
          }, t3.prototype.OO = function(t4, n3, e3, i3, r2, a2) {
            var u2 = t4.createLinearGradient(e3, i3, r2, a2), s2 = n3 ? V : z, c2 = o.I.He(0, "gc-" + s2 + "-normal");
            return n3 ? (u2.addColorStop(0, c2.borderTopColor), u2.addColorStop(1, c2.borderBottomColor)) : (u2.addColorStop(0, c2.borderLeftColor), u2.addColorStop(1, c2.borderRightColor)), u2;
          }, t3.prototype.que = function(t4, n3, e3) {
            var i3, r2, a2, u2, s2, c2, f2, h2, d2, v2, p2 = n3.length;
            for (i3 = 0; i3 < p2; i3++) a2 = (r2 = n3[i3]).x, u2 = r2.y, s2 = r2.width, c2 = r2.height, f2 = r2.style, h2 = r2.columnHeaderFitMode, d2 = r2.cornerY, v2 = r2.cornerX, e3.columnHeaderFitMode = h2, e3.cornerY = d2, e3.cornerX = v2, (0, l.paintStyleDecorationOutSideIcons)(t4, new o.Rect(a2, u2, s2, c2), f2.decoration.icons, f2.vAlign, e3);
          }, t3.prototype.EO = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf, d2 = h2.BO();
            if (n3) for (e3 = n3.length, i3 = 0; i3 < e3; i3++) o2 = (r2 = n3[i3]).x, a2 = r2.y, u2 = r2.width, s2 = r2.height, 0 === (f2 = (c2 = r2.style).type) && this.LO(t4, o2, a2, u2, s2, c2), 1 === f2 && this.FO(t4, o2, a2, u2, s2, c2), 2 === f2 && this.PO(t4, o2, a2, u2, s2, c2, d2);
          }, t3.prototype.LO = function(t4, n3, e3, i3, r2, o2) {
            var a2 = o2.color, u2 = n3 - 4, s2 = e3 - 4, c2 = i3 + 8, f2 = r2 + 8, l2 = 0.5522848, h2 = c2 / 2 * l2, d2 = f2 / 2 * l2, v2 = u2 + c2, p2 = s2 + f2, g2 = u2 + c2 / 2, m2 = s2 + f2 / 2;
            t4.save(), t4.lineWidth = 2, t4.strokeStyle = a2, t4.beginPath(), t4.moveTo(u2, m2), t4.bezierCurveTo(u2, m2 - d2, g2 - h2, s2, g2, s2), t4.bezierCurveTo(g2 + h2, s2, v2, m2 - d2, v2, m2), t4.bezierCurveTo(v2, m2 + d2, g2 + h2, p2, g2, p2), t4.bezierCurveTo(g2 - h2, p2, u2, m2 + d2, u2, m2), t4.closePath(), t4.stroke(), t4.restore();
          }, t3.prototype.FO = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2;
            n3 -= 0.5, e3 -= 0.5, h2 = Math.min(i3 / 2, r2 / 2), d2 = o2.color, v2 = o2.position, t4.save(), t4.lineWidth = 2, t4.strokeStyle = d2, t4.beginPath(), t4.rect(n3, e3, i3, r2), t4.stroke(), t4.restore(), t4.save(), t4.beginPath(), 0 === v2 ? (s2 = n3, c2 = (u2 = e3) + h2, f2 = (a2 = n3) + h2, l2 = u2) : 2 === v2 ? (s2 = a2 = n3 + i3, c2 = (u2 = e3 + r2) - h2, f2 = a2 - h2, l2 = u2) : 3 === v2 ? (s2 = n3, c2 = (u2 = e3 + r2) - h2, f2 = (a2 = n3) + h2, l2 = u2) : 1 === v2 && (s2 = a2 = n3 + i3, c2 = (u2 = e3) + h2, f2 = a2 - h2, l2 = u2), t4.moveTo(a2, u2), t4.lineTo(s2, c2), t4.lineTo(f2, l2), t4.fillStyle = d2, t4.fill(), t4.closePath(), t4.restore();
          }, t3.prototype.PO = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            if (n3 -= 0.5, e3 -= 0.5, s2 = (u2 = this.Mf).zoom(), l2 = 15, h2 = 15, d2 = o2.image, v2 = o2.position, p2 = 3, g2 = o2.color, t4.save(), t4.beginPath(), t4.lineWidth = 2, t4.strokeStyle = g2, t4.rect(n3, e3, i3, r2), t4.stroke(), d2 && "none" !== d2 && a2) {
              4 === v2 ? c2 = n3 - (l2 + p2) : 5 === v2 && (c2 = n3 + i3 + p2);
              try {
                a2.getState(d2) ? (m2 = a2.getImage(d2), f2 = e3 + r2 / 2 - h2 / 2, t4.drawImage(m2, c2, f2, l2, h2)) : a2.addImage(d2);
              } catch (t5) {
              }
            } else 4 === v2 ? c2 = n3 - (l2 + p2) * s2 : 5 === v2 && (c2 = n3 + i3 + p2 * s2), f2 = e3 + r2 / 2 - h2 * s2 / 2, t4.translate(c2, f2), t4.scale(0.015 * s2, 0.015 * s2), t4.beginPath(), t4.moveTo(512, 0), t4.bezierCurveTo(229.248, 0, 0, 229.184, 0, 512), t4.bezierCurveTo(0, 794.816, 229.248, 1024, 512, 1024), t4.bezierCurveTo(794.752, 1024, 1024, 794.752, 1024, 512), t4.bezierCurveTo(1024, 229.24800000000005, 794.752, 0, 512, 0), t4.closePath(), t4.moveTo(783.488, 692.992), t4.lineTo(692.9920000000001, 783.4879999999999), t4.lineTo(512, 602.496), t4.lineTo(331.00800000000004, 783.4879999999999), t4.lineTo(240.51200000000006, 692.992), t4.lineTo(421.504, 512), t4.lineTo(240.512, 330.944), t4.lineTo(331.008, 240.44800000000004), t4.lineTo(512, 421.44), t4.lineTo(692.992, 240.384), t4.lineTo(783.4879999999999, 330.88), t4.lineTo(602.496, 512), t4.lineTo(783.488, 692.992), t4.closePath(), t4.fillStyle = g2, t4.fill(), t4.stroke();
            t4.restore();
          }, t3.prototype.eO = function(t4, n3, e3, i3, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2, p2, g2, b2, y2, C2, A2, I2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, H2, V2, z2, Y2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, lt2, ht2, dt2, vt2, pt2, gt2, mt2, bt2, yt2, wt2, Mt2, Ct2;
            for (void 0 === s2 && (s2 = 0), void 0 === c2 && (c2 = 0), void 0 === f2 && (f2 = 1), v2 = (d2 = this).Mf, p2 = 3 === e3, g2 = (u2 ? u2.zoom() : v2.zoom()) * f2, b2 = k(d2.Nn(), g2), y2 = v2.getDefaultStyle(e3), C2 = v2.$f(e3), A2 = d2.Mf.conditionalFormats, I2 = St(v2), D2 = v2.k9(2), _2 = v2.N9(1), O2 = u2 ? u2.BO() : v2.BO(), t4.save(), t4.beginPath(), E2 = U, y2 && y2.foreColor ? (0, o.resetFillStyle)(t4, v2, y2) : t4.fillStyle = E2, M(t4, b2.font), t4.textAlign = p2 ? "right" : "center", F2 = n3.length, ut2 = [], lt2 = { sheet: v2, row: -1, col: -1, fontInfo: j, lineHeight: -1, imageLoader: O2, conditionalFormats: A2, sheetArea: e3, parentBackColor: I2 }, ht2 = [], R2 = 0; R2 < F2; R2++) G2 = (B2 = n3[R2]).data, J2 = B2.tableFilter, H2 = B2.row, V2 = B2.col, z2 = B2.x, Y2 = B2.y, W2 = ft(B2), Q2 = ct(B2), 1 !== e3 || ht2[H2] || (ht2[H2] = v2.getRowHeight(H2, e3)), K2 = B2.style, nt2 = B2.cellOverflowLayout, X2 = B2.columnHeaderFitMode, q2 = B2.cornerX, $2 = B2.cornerY, at2 = B2.offsetX, tt2 = B2.colStyle, rt2 = K2.font ? N(K2, g2) : b2, i3 && typeof a2 === Z && 1 !== a2 && (rt2 = k(rt2.font, a2)), K2.font = rt2.font, dt2 = B2.rowSpacingIndex, vt2 = B2.isAfterRowSpacing, pt2 = x(dt2), W2 > 0 && Q2 > 0 && (P2 = K2.cellType || C2, z2--, Y2--, W2++, Q2++, p2 ? lt2.sparkline = B2.sparkline : (it2 = i3 || pt2 ? 0 : d2.GO(H2, V2, e3), lt2.visualState = it2), S && M(t4, K2.font, true), ot2 = w(rt2.font), lt2.lineHeight = ot2, lt2.row = H2 + s2, lt2.col = V2 + c2, lt2.fontInfo = rt2, lt2.cellOverflowLayout = nt2, gt2 = ht2.length && Q2 !== ht2[H2] + 1, lt2.needTopGridline = 1 === e3 && H2 === _2 || 0 === e3 || gt2, lt2.needLeftGridline = 2 === e3 && V2 === D2 || 0 === e3 || gt2, lt2.isPrinting = i3, lt2.printZoomFactor = a2, lt2.columnHeaderFitMode = X2, lt2.cornerX = q2, lt2.cornerY = $2, lt2.offsetX = at2, lt2.colStyle = tt2, lt2.isFormula = !T(v2.t0(B2.row, B2.col, e3)), lt2.builtInFileIcons = u2 && (null === (h2 = null === (l2 = u2.getParent()) || void 0 === l2 ? void 0 : l2.options) || void 0 === h2 ? void 0 : h2.builtInFileIcons), lt2.rowSpacingIndex = dt2, lt2.isAfterRowSpacing = vt2, lt2.j0r = B2.j0r, p2 && v2.dataRanges && v2.dataRanges.all().length > 0 && (lt2.dataRange = v2.dataRanges.getByPosition(lt2.row, lt2.col)), P2._e(t4, G2, z2, Y2, W2, Q2, K2, lt2, J2), nt2 && !lt2.showBarIconOnly && (mt2 = new o.Rect(z2, Y2, W2, Q2), bt2 = P2.In ? P2.In(t4, mt2, K2, lt2) : mt2, ut2.push({ cellType: P2, data: G2, x: bt2.x, y: bt2.y, width: bt2.width, height: bt2.height, style: K2, richText: et2, options: { sheet: v2, row: H2, col: V2, fontInfo: rt2, lineHeight: ot2, cellOverflowLayout: nt2, parentBackColor: I2, imageLoader: O2, isPrinting: i3, printZoomFactor: a2 } })));
            if ((F2 = ut2.length) > 0) for (yt2 = v2.isEditing(), wt2 = v2.ui, Mt2 = v2.ci, L2 = 0; L2 < F2; L2++) G2 = (st2 = ut2[L2]).data, lt2 = st2.options, yt2 && v2.li && lt2.row === wt2 && lt2.col === Mt2 || (Ct2 = m(this.Mf)) && G2 && "SparklineExValue" === G2.typeName || d2.UO(t4, st2);
            for (t4.restore(), F2 = n3.length, R2 = 0; R2 < F2; R2++) B2 = n3[R2], r.Worksheet.et(v2, "paintCell", { ctx: t4, sheetArea: e3, cell: B2, isPrinting: i3 });
          }, t3.prototype.UO = function(t4, n3) {
            var e3, i3, r2 = n3.cellType, a2 = n3.data, u2 = n3.x, s2 = n3.y, c2 = ft(n3), f2 = ct(n3), l2 = n3.style, h2 = n3.options, d2 = h2.cellOverflowLayout;
            d2 && r2.pn && (e3 = d2.layout, i3 = new o.Rect(e3 ? e3.x : u2, e3 ? e3.y : s2, e3 ? e3.width : c2, e3 ? e3.height : f2), r2.pn(t4, i3, h2, a2)), r2.paintValue && r2.paintValue(t4, a2, u2, s2, c2, f2, l2, h2);
          }, t3.prototype.GO = function(t4, n3, e3) {
            var i3 = this.Mf, r2 = 0;
            return wt(i3) && (3 === e3 || T(e3) ? !i3.isEditing() && i3.HO(t4, n3) ? r2 = 3 : i3.ni(t4, n3, e3) && (r2 = 2) : (i3.ni(t4, n3, e3) && (r2 = 1, i3.ei(t4, n3, e3) && (r2 = 2)), i3.zO(t4, n3, e3) && (r2 = 4))), r2;
          }, t3.prototype.kO = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2 = this.Mf, x2 = T2.Jt, A2 = e3.length, I2 = [], k2 = {}, N2 = [], D2 = function(C3) {
              var S3, A3, D3, _3, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2;
              if (a2 = e3[C3], c2 = a2.row, f2 = a2.col, l2 = a2.y, d2 = ct(a2), b2 = n3.b7(c2, t4, r2), y2 = b2.headingOverflowLayouts, w2 = b2.trailingOverflowLayouts, !k2[c2]) {
                for (S3 = {}, A3 = 0, D3 = b2; A3 < D3.length; A3++) _3 = D3[A3], S3[_3.column] = false;
                y2 && y2.forEach((function(t5) {
                  S3[t5.column] = false;
                })), w2 && w2.forEach((function(t5) {
                  S3[t5.column] = false;
                })), k2[c2] = S3;
              }
              for (O2 = k2[c2], M2 = b2.find(f2), E2 = T2.options.rightToLeft, R2 = 0; R2 < M2.length; R2++) if (L2 = M2[R2]) {
                if (F2 = T2.getCellRect(c2, L2.column, j, j, { needAutoMerge: true }), !O2[L2.column]) {
                  if (B2 = L2.column, (s2 = x2.MAe(c2, B2)).showEllipsis) continue;
                  u2 = x2.$t(c2, B2, 3, 1, { style: s2 }), h2 = L2.columnWidth, v2 = L2.backgroundWidth, p2 = L2.backgroundLeftWidth < 0 ? E2 ? F2.x + ft(F2) - v2 : F2.x : L2.backgroundRightWidth < 0 ? E2 ? F2.x : F2.x + ft(F2) - v2 : 4 === s2.hAlign ? F2.x + L2.expandedWidth / 2 - L2.backgroundLeftWidth : F2.x + ft(F2) / 2 - L2.backgroundLeftWidth, m2 = { data: u2, row: c2, col: B2, x: F2.x, y: l2, width: h2, height: d2, cellOverflowLayout: L2, style: s2 }, I2.push(m2), L2.layout = new o.Rect(p2, l2, v2, d2), s2 = x2.MAe(c2, B2), i3.EN(c2, B2, L2, s2, F2.x, l2, h2, d2), O2[L2.column] = true;
                }
                L2.column === f2 && O2[L2.column] && N2.push(C3);
              }
              if (y2) {
                for (P2 = 0; P2 < y2.length; P2++) if ((G2 = y2[P2]) && !O2[G2.column] && G2.contains(a2.col)) {
                  if (f2 = G2.column, (s2 = x2.MAe(c2, f2)).showEllipsis) continue;
                  u2 = x2.$t(c2, f2, 3, 1, { style: s2 }), h2 = G2.columnWidth, v2 = G2.backgroundWidth, U2 = 2 === s2.hAlign, H2 = T2.getCellRect(c2, G2.endColumn, j, j, { needAutoMerge: true }), p2 = E2 ? H2.x + (U2 ? G2.backgroundWidth - h2 : 0) : H2.x + ft(H2) - v2, g2 = E2 ? H2.x + G2.backgroundWidth - h2 : p2, m2 = { data: u2, row: c2, col: f2, x: g2, y: l2, width: h2, height: d2, style: s2, cellOverflowLayout: G2 }, I2.push(m2), G2.layout = new o.Rect(p2, l2, v2, d2), O2[G2.column] = true, i3.EN(c2, f2, G2, s2, p2, l2, h2, d2);
                }
              }
              if (w2) {
                for (V2 = 0; V2 < w2.length; V2++) if ((z2 = w2[V2]) && !O2[z2.column] && z2.contains(a2.col)) {
                  if (f2 = z2.column, (s2 = x2.MAe(c2, f2)).showEllipsis) continue;
                  u2 = x2.$t(c2, f2, 3, 1, { style: s2 }), h2 = z2.columnWidth, v2 = z2.backgroundWidth, Y2 = T2.getCellRect(c2, z2.startColumn, j, j, { needAutoMerge: true }), p2 = E2 ? Y2.x + ft(Y2) - v2 : Y2.x, g2 = E2 ? Y2.x + ft(Y2) - v2 : Y2.x + v2 - h2, m2 = { data: u2, row: c2, col: f2, x: g2, y: l2, width: h2, height: d2, style: s2, cellOverflowLayout: z2 }, I2.push(m2), z2.layout = new o.Rect(p2, l2, v2, d2), i3.EN(c2, f2, z2, s2, p2, l2, h2, d2), O2[z2.column] = true;
                }
              }
            };
            for (C2 = 0; C2 < A2; C2++) D2(C2);
            if (N2.length > 0) for (S2 = N2.length - 1; S2 >= 0; S2--) e3.splice(N2[S2], 1);
            function _2(t5, n4) {
              var e4 = t5.row, i4 = n4.row, r3 = t5.col, o2 = n4.col;
              return e4 !== i4 ? e4 - i4 : r3 !== o2 ? r3 - o2 : void 0;
            }
            return I2.length > 0 && I2.sort(_2), I2;
          }, t3.prototype.DO = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = this, S2 = [], T2 = C2.VO(t4[0].col, t4[0].x), x2 = [];
            for (l2 = 0; l2 < T2.length; l2++) x2.push(T2[l2]);
            for (l2 = 0; l2 < n3.length; l2++) x2.push(n3[l2]);
            for (e3.Vx = x2, h2 = [], d2 = e3.Vx.length, p2 = 0; p2 < d2; p2++) (v2 = e3.Vx[p2]).width > 0 && h2.push(v2.col);
            if (h2.push(h2[h2.length - 1] + 1), e3.CN = h2, (S2 = C2.YO(T2, t4)).length > 0) {
              for (g2 = i3.x, m2 = i3.x + i3.width, l2 = S2.length - 1; l2 >= 0; l2--) (b2 = S2[l2]) && ((y2 = b2.overflowLayout) && ((w2 = y2.x) < g2 && (g2 = w2), (M2 = w2 + y2.width) > m2 && (m2 = M2)), t4.unshift(b2), b2.printZoomFactor = f2, e3.PN(b2.row, b2.col, b2.x, b2.y, b2.width, b2.height, b2.style, D, b2.row === a2 && s2, b2.col === u2 && c2, b2));
              r2 || (i3.width = m2 - g2, o2 && (i3 = i3 ? o2.getIntersectRect(i3) : o2));
            }
          }, t3.prototype.VO = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = new s.h9(), c2 = this, l2 = c2.Mf, h2 = l2.Jt, d2 = l2.Ut, v2 = t4, p2 = {}, g2 = [], m2 = [], b2 = [], y2 = [], w2 = v2, M2 = -1, C2 = n3, S2 = l2.getColumnCount() - l2.frozenTrailingColumnCount(), x2 = l2.frozenColumnCount() - 1;
            for (r2 = v2 - 1; r2 > x2; r2--) if (g2[r2] = e3 = h2.Kt(r2), e3) {
              if (m2[r2] = d2.getColumnHeaderFitMode(false, f.SheetArea.colHeader, r2), b2[r2] = d2.eE(-1, r2, -1, 1, f.SheetArea.colHeader), y2[r2] = l2.ZO(r2, C2, S2, w2, g2, m2, b2, y2, p2), m2[r2] === f.ColumnHeaderFitMode.normal) break;
              w2 = r2, C2 -= e3;
            }
            for (o2 = w2; o2 < v2; o2++) void 0 === (i3 = g2[o2]) && (g2[o2] = i3 = h2.Kt(o2)), 0 !== i3 && (p2[o2] || (p2[o2] = M2), M2 = o2), T(m2[o2]) && (m2[o2] = d2.getColumnHeaderFitMode(false, f.SheetArea.colHeader, o2)), a2 = l2.ZO(o2, C2, S2, w2, g2, m2, b2, y2, p2), y2[o2] = a2, u2.push(a2), C2 += i3;
            return u2;
          }, t3.prototype.YO = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2 = this, p2 = v2.Mf, g2 = p2.Ut, m2 = p2.Jt, b2 = p2._y(1, 1), y2 = [], w2 = b2.length, M2 = t4.length, C2 = function(d3) {
              var v3, w3;
              for (e3 = b2[d3], v3 = function(v4) {
                var b3, w4, C3, S2, T2 = t4[v4];
                if (T2) {
                  if (i3 = e3.row, r2 = T2.col, c2 = T2.x, l2 = -1 === T2.y ? e3.y : P(T2.y * e3.height + e3.y), u2 = ft(T2), s2 = -1 === ct(T2) ? ct(e3) : e3.height + e3.y - l2, a2 = m2.$t(i3, r2, 1, 1, { style: o2 }), o2 = m2.qt(i3, r2, 1), h2 = { data: a2, row: i3, col: r2, x: c2, y: l2, width: u2, height: s2, style: o2, overflowLayout: T2, columnHeaderFitMode: g2.getColumnHeaderFitMode(false, f.SheetArea.colHeader, r2), SheetArea: 1 }, o2.showEllipsis && h2.columnHeaderFitMode !== f.ColumnHeaderFitMode.stack) return "continue";
                  h2.columnHeaderFitMode === f.ColumnHeaderFitMode.stack && (v4 === M2 - 1 ? (b3 = n3[0].col, w4 = n3.filter((function(t5) {
                    return t5.row === d3 && t5.col === b3;
                  }))[0], h2.cornerX = w4 && w4.x, h2.cornerY = w4 && w4.y) : (C3 = p2.O5(r2, 1, true)) && (S2 = t4.findCol(C3)) && -1 !== S2.y && (h2.cornerX = S2.x, h2.cornerY = P(S2.y * e3.height) + e3.y)), y2.push(h2);
                }
              }, w3 = 0; w3 < M2; w3++) v3(w3);
            };
            for (d2 = 0; d2 < w2; d2++) C2(d2);
            return y2;
          }, t3;
        })(), n2.g7 = J, X = ".cutCopyIndicator", q = o.Events.CellChanged, $ = o.Events.ClipboardChanged, tt = o.Events.ValueChanged, nt = o.Events.ColumnChanged, et = o.Events.RowChanged, it = o.Events.RangeChanged, rt = o.Events.ClipboardPasting, ot = o.Events.ClipboardPasted, at = o.Events.DragMerging, ut = o.Events.FloatingElementSelected, st = (function() {
          function t3(t4) {
            var n3 = this;
            n3.h7 = false, n3.d7 = false, n3.Mf = t4, n3.v7();
          }
          return t3.prototype._T = function(t4) {
            var n3 = this;
            if (0 === arguments.length) return n3.d7;
            n3.d7 = t4;
          }, t3.prototype.WO = function(t4, n3) {
            var e3, i3 = this;
            if (0 === arguments.length) return i3.h7;
            (i3.h7 !== t4 || t4 || n3) && (i3.h7 = t4, (e3 = i3.Mf) && (e3.zw(), T(i3.QO) || clearTimeout(i3.QO), i3.QO = window.setTimeout((function() {
              if (!i3.h7) {
                var t5 = e3.ST();
                t5 && t5.c5(n3);
              }
              i3.QO = j;
            }))));
          }, t3.prototype.v7 = function() {
            var t4 = this, n3 = t4.Mf, e3 = false, i3 = "resizable", r2 = "isVisible";
            function a2() {
              t4.h7 && t4.WO(false);
            }
            function u2(t5, n4, e4) {
              t5 || n4 === i3 || n4 === e4 || n4 === r2 || a2();
            }
            n3.D3($ + X, (function() {
              t4.WO(true);
            })), n3.D3(tt + X, a2), n3.D3(q + X, (function(t5, n4) {
              n4.isUndo || "tag" === n4.propertyName || n4.KO || a2();
            })), n3.D3(nt + X, (function(t5, n4) {
              u2(n4.isUndo, n4.propertyName, "width");
            })), n3.D3(et + X, (function(t5, n4) {
              u2(n4.isUndo, n4.propertyName, "height");
            })), n3.D3(it + X, (function(t5, n4) {
              n4.isUndo || 6 === n4.action || 3 === n4.action || a2();
            })), n3.D3(rt + X, (function() {
              e3 = t4.WO();
            })), n3.D3(ot + X, (function(n4, i4) {
              var r3, o2, a3, u3, s2 = i4.cellRange, c2 = i4.sheet.ST(), f2 = c2._S, l2 = e3;
              if (s2 && f2 && c2.DS) {
                if (t4._T()) {
                  for (o2 = 0, a3 = f2; o2 < a3.length; o2++) if ((u3 = a3[o2]).intersect(s2.row, s2.col, s2.rowCount, s2.colCount) && !u3.equals(s2)) {
                    l2 = false;
                    break;
                  }
                } else l2 = false, r3 = true;
                t4.WO(l2, r3);
              }
            })), n3.D3(at + X, a2), n3.D3(ut + X, (function(t5, e4) {
              "worksheet" !== e4.type && (n3.endEdit(), o.hi.N1(n3));
            }));
          }, t3.prototype.oO = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this;
            if (b2.h7 && (a2 = (r2 = b2.Mf).Dn, s2 = (u2 = r2.parent) ? u2.options : {}, f2 = (c2 = r2.ST())._S, l2 = s2.cutCopyIndicatorVisible, T(l2) && (l2 = true), h2 = o.Pf.vl(r2, s2.cutCopyIndicatorBorderColor || "blue"), l2 && c2.DS === r2 && f2 && (d2 = a2.uO(e3, i3, j), (v2 = a2.fO(e3, i3, f2, n3)) && d2))) {
              for (t4.save(), t4.rect(d2.x, d2.y, ft(d2), ct(d2)), t4.clip(), p2 = 0, g2 = v2; p2 < g2.length; p2++) m2 = g2[p2], a2.wO(t4, m2, h2);
              t4.beginPath(), t4.restore();
            }
          }, t3.prototype.JO = function() {
            this.WO(false);
          }, t3.prototype.XO = function() {
            this.WO(false);
          }, t3.prototype.qO = function() {
            this.WO(false);
          }, t3.prototype.$O = function() {
            this.WO(false);
          }, t3.prototype.lI = function() {
            this.WO(false);
          }, t3.prototype.L0 = function() {
            var t4 = this.Mf;
            t4._3(q + X), t4._3($ + X), t4._3(tt + X), t4._3(nt + X), t4._3(et + X), t4._3(it + X), t4._3(rt + X), t4._3(ot + X), t4._3(at + X), t4._3(ut + X);
          }, t3;
        })(), n2.m7 = st, r.Worksheet.ch("render", { init: function() {
          var t3 = this;
          t3.Dn = new J(t3), t3.lA && t3.lA.L0(), t3.lA = new st(t3);
        }, dispose: function(t3) {
          var n3, e3 = this;
          e3.Dn && e3.Dn.Nke(), false !== t3.clearCache && (e3.Dn && (e3.Dn.Mf = j, e3.Dn = j), (n3 = e3.lA) && (n3.L0(), e3.lA = j));
        }, onLayoutChanged: function(t3) {
          var n3 = this, e3 = n3.lA;
          Tt(t3.changeType, e3);
        }, onLayoutChangedFromOp: function(t3) {
          Tt(t3.changeType, this.lA);
        } });
      }, "./dist/core/worksheet/worksheet-selection.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d;
        function v(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function p(t3, n3) {
          return t3.getRowCount(n3);
        }
        function g(t3) {
          return t3.rowCount;
        }
        function m(t3) {
          return t3.colCount;
        }
        function b(t3, n3, e3) {
          var i3, r2, o2 = [], a2 = t3.length;
          for (r2 = 0; r2 < a2; r2++) i3 = t3[r2], r2 === n3 ? o2 = o2.concat(e3) : o2.push(i3);
          return o2;
        }
        function y(t3, n3, e3) {
          for (var i3 = e3 - 1; i3 >= 0; i3--) if (t3.getColumnVisible(n3 + i3) && t3.getColumnWidth(n3 + i3) > 0) return n3 + i3;
          return n3 + e3 - 1;
        }
        function w(t3, n3, e3) {
          for (var i3 = e3 - 1; i3 >= 0; i3--) if (t3.getRowVisible(n3 + i3) && t3.getRowHeight(n3 + i3) > 0) return n3 + i3;
          return n3 + e3 - 1;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/core/worksheet/worksheet.js"), r = e2("./dist/core/util/common.js"), o = e2("Common"), a = e2("./dist/core/util/domUtil.js"), u = e2("./dist/core/core.enum.js"), s = o.Common.lt.ht, c = o.Common.Uf.tR, f = null, l = Math.max, h = Math.min, d = "gc-selection", a.GC$.extend(i2.Worksheet.prototype, { addSelection: function(t3, n3, e3, i3) {
          this.n4(t3, n3, e3, i3, false);
        }, n4: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2 = this, f2 = t3, l2 = n3, h2 = e3, d2 = i3;
          -1 !== f2 && -1 !== l2 && (a2 = s2.Ut.getSpans()) && c(a2) > 0 && (f2 = (u2 = s2.nR(a2, (0, r.Ec)(t3, n3, e3, i3))).row, l2 = u2.col, h2 = g(u2), d2 = m(u2)), s2.Ut.do("addSelection", f2, l2, h2, d2, o2), s2.zw();
        }, setSelection: function(t3, n3, e3, i3) {
          this.eR(t3, n3, e3, i3, 2);
        }, eR: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2, c2 = this, f2 = p(c2), h2 = v(c2);
          t3 >= f2 && (t3 = f2 - 1), n3 >= h2 && (n3 = h2 - 1), a2 = l(0, t3), u2 = l(0, n3), c2.IA(), s2 = 2 === o2 ? r.hi.A1(c2) : 1 === o2, c2.O6(a2, u2, c2.C0(a2), c2.S0(u2), !s2), c2.n4(t3, n3, e3, i3);
        }, getSelections: function() {
          return this.Ut.getSelections();
        }, clearSelection: function(t3) {
          var n3, e3;
          void 0 === t3 && (t3 = 1), (n3 = this).IA(), e3 = 2 === t3 ? r.hi.A1(n3) : 1 === t3, n3.O6(0, 0, n3.C0(0), n3.S0(0), !e3), i2.Worksheet.et(n3, "clearSelection"), n3.zw();
        }, IA: function(t3) {
          this.Ut.do("clearSelection", t3);
        }, canSelect: function(t3, n3, e3) {
          return this.JA(t3, n3, e3);
        }, JA: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, g2 = d2.options, m2 = g2.protectionOptions, b2 = false !== m2.allowSelectLockedCells, y2 = false !== m2.allowSelectUnlockedCells;
          if (!d2.isActualProtected() || b2 && y2) return true;
          if (!b2 && !y2) return false;
          if (i3 = e3 ? e3.locked : d2.l0(t3, n3, "locked"), o2 = n3 < 0, u2 = (a2 = t3 < 0) ? p(d2) : 1, t3 = a2 ? 0 : t3, s2 = o2 ? v(d2) : 1, n3 = o2 ? 0 : n3, y2 && (a2 || o2)) return !r.util.Mme(d2, { row: t3, col: n3, rowCount: u2, colCount: s2 });
          if (b2 === i3 && (a2 || o2)) {
            for (c2 = t3 + u2 - 1, f2 = n3 + s2 - 1, l2 = void 0, h2 = void 0, l2 = t3; l2 <= c2; l2++) for (h2 = n3; h2 <= f2; h2++) if ((e3 = d2.getCompositeStyle(l2, h2)) && b2 !== e3.locked) return false;
            if (a2) {
              for (l2 = t3; l2 <= c2; l2++) if ((e3 = d2.getCompositeStyle(l2, -1)) && b2 !== e3.locked) return false;
            }
            if (o2) {
              for (h2 = n3; h2 <= f2; h2++) if ((e3 = d2.getCompositeStyle(-1, h2)) && b2 !== e3.locked) return false;
            }
          }
          return b2 === i3;
        }, iR: function(t3, n3, e3, i3) {
          var r2, o2, a2 = this;
          for (n3 = n3 < 0 ? 0 : n3, r2 = t3 = t3 < 0 ? 0 : t3; r2 < t3 + e3; r2++) for (o2 = n3; o2 < n3 + i3; o2++) if (a2.l0(r2, o2, "locked")) return true;
        }, rR: function() {
          var t3, n3 = this.getSelections();
          for (t3 = 0; t3 < n3.length; t3++) if (-1 !== n3[t3].col) return false;
          return true;
        }, oR: function() {
          var t3, n3 = this.getSelections();
          for (t3 = 0; t3 < n3.length; t3++) if (-1 !== n3[t3].row) return false;
          return true;
        }, selectionPolicy: function(t3) {
          var n3 = this, e3 = n3.Ut;
          return 0 === arguments.length ? e3.getSelectionPolicy() : (e3.do("setSelectionPolicy", t3), n3);
        }, selectionUnit: function(t3) {
          var n3 = this, e3 = n3.Ut;
          return 0 === arguments.length ? e3.getSelectionUnit() : (e3.do("setSelectionUnit", t3), n3);
        }, getSelectionBackColor: function() {
          return this.options.selectionBackColor || r.I.fl(d).backgroundColor;
        }, getSelectionBorderColor: function() {
          return this.options.selectionBorderColor || r.I.fl(d).borderTopColor;
        }, aR: function(t3) {
          if (!t3) return this.options.aR;
          this.options.aR = t3;
        }, e4: function() {
          var t3, n3, e3 = this, i3 = e3.Ut.getSelections();
          c(i3) > 0 && (t3 = { selections: i3 }, 0 !== (n3 = e3.Ut.getActiveSelectedRangeIndex()) && (t3.activeSelectedRangeIndex = n3), e3.uR = t3, e3.IA(), e3.Dn.E1());
        }, cR: function() {
          var t3 = this, n3 = t3.uR, e3 = n3 && n3.selections;
          e3 && (t3.Ut.do("setSelections", e3), t3.Ut.do("setActiveSelectedRangeIndex", n3.activeSelectedRangeIndex || 0));
        }, pA: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2 = this, c2 = s2.tables;
          (e3 || i3) && (r2 = c2 && c2.fR(t3, n3)) || (r2 = s2.lR(t3, n3, e3, s2.hR || 0)), r2 && (o2 = r2.row, a2 = r2.col, u2 = r2.leadingCellCol, s2.dR(o2, a2) && (s2.qA = o2, s2.hR = u2, s2.XA(o2, a2)));
        }, lR: function(t3, n3, e3, i3) {
          var r2, o2, a2 = this, u2 = p(a2), c2 = v(a2), l2 = t3;
          return 0 === l2 && !e3 || 0 === u2 || 0 === c2 ? f : (o2 = a2.vR(l2, i3), e3 || a2.mR(o2), l2 = o2.r, r2 = o2.c, l2 < 0 && e3 && (((r2 = a2.r6(r2)) < 0 || s(r2)) && (r2 = a2.r6(c2)), i3 = r2, l2 = (o2 = a2.vR(u2, r2)).r, (r2 = o2.c) === n3 && l2 <= t3) ? f : { row: l2, col: r2, leadingCellCol: i3 });
        }, bA: function(t3, n3, e3) {
          var i3, r2, o2, a2 = this, u2 = a2.gR(t3, n3, e3, a2.hR || 0);
          !u2 || u2.row === t3 && u2.col === n3 || (i3 = u2.row, r2 = u2.col, o2 = u2.leadingCellCol, a2.dR(i3, r2) && (a2.qA = i3, a2.hR = o2, a2.XA(i3, r2)));
        }, gR: function(t3, n3, e3, i3) {
          var r2, o2, a2 = this, u2 = p(a2), c2 = v(a2), f2 = t3;
          if ((f2 !== u2 - 1 || e3) && 0 !== u2 && 0 !== c2 && (o2 = a2.pR(f2, i3), e3 || a2.mR(o2), f2 = o2.r, r2 = o2.c, !(f2 === u2 && e3 && (((r2 = a2.O5(r2)) >= c2 || s(r2)) && (r2 = a2.O5(-1)), i3 = r2, f2 = (o2 = a2.pR(-1, r2)).r, (r2 = o2.c) === n3 && f2 >= t3)))) return { row: f2, col: r2, leadingCellCol: i3 };
        }, wA: function() {
          var t3, n3, e3 = this, i3 = e3.bR();
          i3 && (t3 = i3.row, n3 = i3.col, e3.qA = t3, e3.hR = n3, e3.XA(t3, n3));
        }, bR: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2.P6(), u2 = o2.G6(), s2 = u2;
          if (!a2 && !s2) return f;
          if (e3 = false !== (n3 = (t3 = o2.options).protectionOptions).allowSelectLockedCells, i3 = false !== n3.allowSelectUnlockedCells, !o2.isActualProtected() || e3 && i3) return { row: a2, col: s2 };
          if (!e3 && !i3) return f;
          for (; a2 !== f && a2 >= 0; a2 = o2.nI(a2)) for (s2 = u2; s2 !== f && s2 >= 0; s2 = o2.r6(s2)) if (e3 === (r2 = o2.l0(a2, s2, "locked"))) return { row: a2, col: s2 };
          return f;
        }, yA: function() {
          var t3, n3, e3 = this, i3 = e3.yR();
          i3 && (t3 = i3.row, n3 = i3.col, e3.qA = t3, e3.hR = n3, e3.XA(t3, n3));
        }, yR: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2.j5(o2.frozenRowCount() - 1), u2 = o2.O5(o2.frozenColumnCount() - 1), s2 = u2, c2 = o2.P6(), l2 = o2.G6();
          if (a2 === f || s2 === f) return f;
          if (e3 = false !== (n3 = (t3 = o2.options).protectionOptions).allowSelectLockedCells, i3 = false !== n3.allowSelectUnlockedCells, !o2.isActualProtected() || e3 && i3) return { row: a2, col: s2 };
          if (!e3 && !i3) return f;
          for (; a2 !== f && a2 <= c2; a2 = o2.j5(a2)) for (s2 = u2; s2 !== f && s2 <= l2; s2 = o2.O5(s2)) if (e3 === (r2 = o2.l0(a2, s2, "locked"))) return { row: a2, col: s2 };
          return f;
        }, mA: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = this, s2 = u2.tables;
          e3 && (i3 = s2 && s2.wR(t3, n3)) || (i3 = u2.sI(t3, n3, e3, u2.qA || 0)), i3 && (r2 = i3.row, o2 = i3.col, a2 = i3.leadingCellRow, u2.dR(r2, o2) && (u2.qA = a2, u2.hR = o2, u2.XA(r2, o2)));
        }, sI: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2 = this, c2 = p(u2), l2 = v(u2), h2 = n3;
          if (0 === h2 && !e3 || 0 === c2 || 0 === l2) return f;
          for (o2 = u2.MR(i3, h2), a2 = i3, e3 || u2.mR(o2), r2 = o2.r, h2 = o2.c; h2 < 0 && e3; ) {
            if (((r2 = u2.nI(r2, 3, true)) < 0 || s(r2)) && (r2 = u2.nI(c2, 3, true)), i3 = r2, r2 = (o2 = u2.MR(i3, l2)).r, h2 = o2.c, r2 === t3 && h2 < n3) return f;
            if (r2 === t3 && h2 === n3) {
              if (i3 === a2) return f;
              r2 = (o2 = u2.MR(i3, h2)).r, h2 = o2.c;
            }
          }
          return { row: r2, col: h2, leadingCellRow: i3 };
        }, mR: function(t3) {
          var n3, e3 = this, i3 = false;
          t3.r < 0 ? t3.r = e3.N9() : t3.r >= p(e3) && (t3.r = e3.P6(), i3 = true), t3.c < 0 ? t3.c = e3.k9() : t3.c >= v(e3) && (t3.c = e3.G6(), i3 = true), i3 && ((n3 = e3.Ut.getSpan(t3.r, t3.c)).row !== t3.r && (t3.r = n3.row), n3.col !== t3.c && (t3.c = n3.col));
        }, CA: function(t3, n3) {
          for (var e3, i3, r2 = this, o2 = r2.Ut, a2 = o2.getActiveSelectedRangeIndex(), u2 = -1, s2 = r2.JS(r2.U5()), c2 = s2.row, f2 = s2.col, l2 = s2.col + m(s2) - 1, h2 = t3, d2 = n3; h2 = (e3 = r2.CR(h2, d2)).r, !((d2 = e3.c) >= f2); ) {
            if (u2 === a2 && h2 === t3 && d2 <= n3) return;
            --h2 >= c2 ? d2 = l2 + 1 : (i3 = r2.JS(r2.U5(3)), u2 = o2.getActiveSelectedRangeIndex(), c2 = i3.row, f2 = i3.col, l2 = i3.col + m(i3) - 1, h2 = i3.row + g(i3) - 1, d2 = i3.col + m(i3));
          }
          h2 >= 0 && (r2.XA(h2, d2), r2.qA = h2, r2.hR = d2);
        }, SA: function(t3, n3) {
          for (var e3, i3, r2 = this, o2 = r2.Ut, a2 = o2.getActiveSelectedRangeIndex(), u2 = -1, s2 = r2.JS(r2.U5()), c2 = s2.col, f2 = s2.row + g(s2) - 1, l2 = s2.col + m(s2) - 1, h2 = t3, d2 = n3; h2 = (e3 = r2.TR(h2, d2)).r, !((d2 = e3.c) <= l2); ) {
            if (u2 === a2 && h2 === t3 && d2 >= n3) return;
            ++h2 <= f2 ? d2 = c2 - 1 : (i3 = r2.JS(r2.U5(4)), u2 = o2.getActiveSelectedRangeIndex(), c2 = i3.col, f2 = i3.row + g(i3) - 1, l2 = i3.col + m(i3) - 1, h2 = i3.row, d2 = i3.col - 1);
          }
          h2 >= 0 && (r2.XA(h2, d2), r2.qA = h2, r2.hR = d2);
        }, TA: function(t3, n3) {
          for (var e3, i3, r2 = this, o2 = r2.Ut, a2 = o2.getActiveSelectedRangeIndex(), u2 = -1, s2 = r2.JS(r2.U5()), c2 = s2.row, f2 = s2.row + g(s2) - 1, l2 = s2.col, h2 = t3, d2 = n3; h2 = (e3 = r2.AR(h2, d2)).r, d2 = e3.c, !(h2 >= c2); ) {
            if (u2 === a2 && d2 === n3 && h2 <= t3) return;
            --d2 >= l2 ? h2 = f2 + 1 : (i3 = r2.JS(r2.U5(1)), u2 = o2.getActiveSelectedRangeIndex(), c2 = i3.row, f2 = i3.row + g(i3) - 1, l2 = i3.col, h2 = i3.row + g(i3), d2 = i3.col + m(i3) - 1);
          }
          d2 >= 0 && (r2.XA(h2, d2), r2.qA = h2, r2.hR = d2);
        }, AA: function(t3, n3) {
          for (var e3, i3, r2 = this, o2 = r2.Ut, a2 = o2.getActiveSelectedRangeIndex(), u2 = -1, s2 = r2.JS(r2.U5()), c2 = s2.row, f2 = s2.row + g(s2) - 1, l2 = s2.col + m(s2) - 1, h2 = t3, d2 = n3; h2 = (e3 = r2.IR(h2, d2)).r, d2 = e3.c, !(h2 <= f2); ) {
            if (u2 === a2 && d2 === n3 && h2 >= t3) return;
            ++d2 <= l2 ? h2 = c2 - 1 : (i3 = r2.JS(r2.U5(2)), u2 = o2.getActiveSelectedRangeIndex(), f2 = i3.row + g(i3) - 1, l2 = i3.col + m(i3) - 1, h2 = i3.row - 1, d2 = i3.col);
          }
          d2 >= 0 && (r2.XA(h2, d2), r2.qA = h2, r2.hR = d2);
        }, gA: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = this, s2 = u2.tables;
          e3 && (i3 = s2 && s2.xR(t3, n3)) || (i3 = u2.uI(t3, n3, e3, u2.qA || 0)), !i3 || i3.row === t3 && i3.col === n3 || (r2 = i3.row, o2 = i3.col, a2 = i3.leadingCellRow, u2.dR(r2, o2) && (u2.qA = a2, u2.hR = o2, u2.XA(r2, o2)));
        }, uI: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2 = this, c2 = p(u2), l2 = v(u2), h2 = n3;
          if (h2 === l2 - 1 && !e3 || 0 === c2 || 0 === l2) return f;
          for (o2 = u2.NR(i3, h2), a2 = i3, e3 || u2.mR(o2), r2 = o2.r, h2 = o2.c; h2 === l2 && e3; ) {
            if (t3 === c2 - 1 && t3 === r2 && (!u2.getRowVisible(r2, 3) || u2.Gt(r2, 3) <= 0)) return f;
            if (((r2 = u2.j5(r2, 3, true)) >= c2 || s(r2)) && (r2 = u2.j5(-1, 3, true)), i3 = r2, r2 = (o2 = u2.NR(i3, -1)).r, h2 = o2.c, r2 === t3 && h2 > n3) return f;
            if (r2 === t3 && h2 === n3) {
              if (i3 === a2) return f;
              r2 = (o2 = u2.NR(i3, h2)).r, h2 = o2.c;
            }
          }
          return { row: r2, col: h2, leadingCellRow: i3 };
        }, MR: function(t3, n3) {
          for (var e3, i3, o2, a2 = this, u2 = n3; u2 >= 0 && (e3 = t3, !(--u2 < 0)); ) if (a2.getColumnVisible(u2) && ((i3 = a2.Ut.getSpans((0, r.Ec)(e3, u2, 1, 1))) && c(i3) > 0 && u2 >= (o2 = i3[0]).col && (u2 = o2.col, e3 = o2.row), a2.dR(e3, u2))) return { r: e3, c: u2 };
          return { r: e3, c: u2 };
        }, CR: function(t3, n3) {
          for (var e3, i3, r2 = this; n3 >= 0 && !(--n3 < 0); ) {
            if (e3 = r2.Ut.findSpan(t3, n3)) {
              if (!((i3 = r2.U5()).row <= e3.row && e3.row + g(e3) <= i3.row + g(i3) && i3.col <= e3.col && e3.col + m(e3) <= i3.col + m(i3))) continue;
              if (e3.row !== t3 || e3.col !== n3) continue;
              n3 >= e3.col && (n3 = e3.col, t3 = e3.row);
            }
            if (r2.dR(t3, n3)) return { r: t3, c: n3 };
          }
          return { r: t3, c: n3 };
        }, NR: function(t3, n3) {
          for (var e3, i3, o2, a2, u2 = this, s2 = v(u2), f2 = n3; f2 < s2 && (e3 = t3, !((f2 = (i3 = u2.Ut.getSpan(e3, f2)).col + m(i3)) >= s2)); ) if (u2.getColumnVisible(f2) && ((o2 = u2.Ut.getSpans((0, r.Ec)(e3, f2, 1, 1))) && c(o2) > 0 && (f2 > (a2 = o2[0]).col ? f2 = l(f2, a2.col + m(a2)) : e3 = a2.row), u2.dR(e3, f2))) return { r: e3, c: f2 };
          return { r: e3, c: f2 };
        }, TR: function(t3, n3) {
          for (var e3, i3, r2, o2 = this, a2 = o2.Ut, u2 = v(o2); n3 < u2 && !((n3 = (e3 = a2.getSpan(t3, n3)).col + m(e3)) >= u2); ) {
            if (i3 = a2.findSpan(t3, n3)) {
              if (!((r2 = o2.U5()).row <= i3.row && i3.row + g(i3) <= r2.row + g(r2) && r2.col <= i3.col && i3.col + m(i3) <= r2.col + m(r2))) continue;
              if (i3.row !== t3 || i3.col !== n3) continue;
              n3 > i3.col ? n3 = l(n3, i3.col + m(i3)) : t3 = i3.row;
            }
            if (o2.dR(t3, n3)) return { r: t3, c: n3 };
          }
          return { r: t3, c: n3 };
        }, dR: function(t3, n3) {
          var e3, i3, r2, o2 = this;
          return !!o2.JA(t3, n3) && (e3 = t3 >= 0 && t3 < p(o2) && n3 >= 0 && n3 < v(o2) && o2.getRowVisible(t3) && o2.getColumnVisible(n3) && o2.Gt(t3) > 0 && o2.nn(n3) > 0, i3 = !!o2.F5, true === e3 && true === i3 && false === (r2 = o2.l0(t3, n3, "tabStop")) && (e3 = false), e3);
        }, vR: function(t3, n3) {
          for (var e3, i3, o2 = this; t3 >= 0 && !(--t3 < 0); ) if (o2.getRowVisible(t3) && ((e3 = o2.Ut.getSpans((0, r.Ec)(t3, n3, 1, 1))) && c(e3) > 0 && t3 >= (i3 = e3[0]).row && (t3 = i3.row, n3 = i3.col), o2.dR(t3, n3))) return { r: t3, c: n3 };
          return { r: t3, c: n3 };
        }, AR: function(t3, n3) {
          for (var e3, i3, r2 = this; t3 >= 0 && !(--t3 < 0); ) {
            if (e3 = r2.Ut.findSpan(t3, n3)) {
              if (!((i3 = r2.U5()).row <= e3.row && e3.row + g(e3) <= i3.row + g(i3) && i3.col <= e3.col && e3.col + m(e3) <= i3.col + m(i3))) continue;
              if (e3.row !== t3 || e3.col !== n3) continue;
              t3 >= e3.row && (n3 = e3.col, t3 = e3.row);
            }
            if (r2.dR(t3, n3)) return { r: t3, c: n3 };
          }
          return { r: t3, c: n3 };
        }, pR: function(t3, n3) {
          for (var e3, i3, o2, a2 = this, u2 = p(a2); t3 < u2 && !((t3 = (e3 = a2.Ut.getSpan(t3, n3)).row + g(e3)) >= u2); ) if (i3 = a2.Ut.getSpans((0, r.Ec)(t3, n3, 1, 1)), a2.getRowVisible(t3) && (i3 && c(i3) > 0 && (t3 > (o2 = i3[0]).row ? t3 = l(t3, o2.row + g(o2)) : n3 = o2.col), a2.dR(t3, n3))) return { r: t3, c: n3 };
          return { r: t3, c: n3 };
        }, IR: function(t3, n3) {
          for (var e3, i3, r2, o2 = this, a2 = o2.Ut, u2 = p(o2); t3 < u2 && !((t3 = (e3 = a2.getSpan(t3, n3)).row + g(e3)) >= u2); ) {
            if (i3 = a2.findSpan(t3, n3)) {
              if (!((r2 = o2.U5()).row <= i3.row && i3.row + g(i3) <= r2.row + g(r2) && r2.col <= i3.col && i3.col + m(i3) <= r2.col + m(r2))) continue;
              if (i3.col !== n3 || i3.row !== t3) continue;
              t3 > i3.row ? t3 = l(t3, i3.row + g(i3)) : n3 = i3.col;
            }
            if (o2.dR(t3, n3)) return { r: t3, c: n3 };
          }
          return { r: t3, c: n3 };
        }, D9: function(t3, n3, e3, i3, r2, o2) {
          var a2 = this;
          a2.Ut.do("addSelection", t3, n3, e3, i3, f, o2), r2 && a2.My <= 0 && a2.Dn.E1(f, f, f, f, o2);
        }, L9: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.xA(t3, n3, c2.ui, c2.ci), l2 = f2.row, h2 = f2.col, d2 = g(f2), v2 = m(f2);
          c2.dataRanges && (i3 = c2.dataRanges.getByPosition(t3, n3)) && (r2 = i3.convertContext({ sheet: c2 })) && r2.sheet !== c2 && (o2 = r2.sheet.getSelections()) && o2[0] && (a2 = i3.range(), -1 === o2[0].row && (l2 = a2.row, d2 = a2.rowCount), -1 === o2[0].col && (h2 = a2.col, v2 = a2.colCount)), u2 = c2.selectionPolicy(), s2 = c2.selectionUnit(), 0 !== u2 && (1 === u2 && c2.Ut.do("clearSelection"), 1 === s2 ? (h2 = -1, v2 = -1) : 2 === s2 && (l2 = -1, d2 = -1), c2.kA(l2, h2, d2, v2, e3));
        }, xA: function(t3, n3, e3, i3, o2, a2) {
          var u2, l2, h2, d2, v2, p2 = this;
          return s(e3) && (e3 = p2.ui), s(i3) && (i3 = p2.ci), l2 = (u2 = p2.Ut).getSpan(e3, i3, a2), h2 = u2.getSpan(t3, n3, a2), o2 && l2.equals(h2) ? new r.Range(l2.row, l2.col, 1, 1) : (d2 = l2.union(h2), (v2 = p2.Ut.getSpans(f, a2)) && c(v2) > 0 && (d2 = p2.kR(v2, d2)), d2);
        }, kA: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2, f2, l2, h2, d2 = this, v2 = d2.Ut, p2 = d2.U5();
          if (c(v2.getSelections()) > 0 ? (u2 = (0, r.Ec)(t3, n3, e3, i3), d2.O9 ? (a2 = d2.z9, d2.z9 = u2) : ((s2 = v2.getSelections())[v2.getActiveSelectedRangeIndex()] = u2, v2.do("setSelections", s2))) : d2.O9 || v2.do("addSelection", t3, n3, e3, i3), o2 && d2.My <= 0) {
            if (f2 = d2.U5(), !d2.O9 && f2.row === p2.row && f2.col === p2.col && g(f2) === g(p2) && m(f2) === m(p2)) return;
            l2 = d2.Dn, d2.O9 && (h2 = d2.z9, a2 && a2.containsRange(h2) ? h2 = a2 : a2 && (h2 = a2.union(h2)), p2 = (h2 = h2.union((0, r.Ec)(d2.getActiveRowIndex(), d2.getActiveColumnIndex(), 1, 1))).union(p2), f2 = h2.union(f2)), p2.containsRange(f2) ? l2.E1(p2) : f2.containsRange(p2) ? l2.E1(f2) : (l2.E1(p2), l2.E1(f2), l2.E1(d2.z9));
          }
        }, DR: function(t3) {
          var n3 = [];
          return t3 && (n3 = this.Ut.getSpans(t3)), n3;
        }, _R: function(t3, n3) {
          var e3 = t3.row, i3 = t3.col, r2 = t3.rowCount, o2 = t3.colCount, a2 = n3.row, u2 = n3.col, s2 = n3.rowCount, c2 = n3.colCount, f2 = e3 + r2, l2 = i3 + o2, h2 = a2 + s2, d2 = u2 + c2, v2 = false, p2 = false, g2;
          return t3.intersect(a2, u2, s2, c2) && (v2 = g2 = e3 > a2 || i3 > u2 || f2 < h2 || l2 < d2, p2 = !g2), n3.ER = n3.ER || p2, v2;
        }, jR: function(t3, n3, e3, i3) {
          var r2, o2 = [], a2 = [];
          for (r2 = 0; r2 < t3.length; r2++) a2 = this.RR(t3[r2], n3, e3, i3), o2 = o2.concat(a2);
          return o2;
        }, RR: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2 = [], f2 = n3.length;
          for (c2.push(t3), u2 = f2 - 1; u2 >= 0; u2--) for (o2 = n3[u2], s2 = 0; s2 < c2.length; ) r2 = c2[s2], this._R(r2, o2) ? (c2 = b(c2, s2, a2 = this.BR(r2, o2, e3, i3)), s2 += a2.length) : s2++;
          return c2;
        }, LR: function(t3, n3) {
          var e3 = n3.row, i3 = n3.col, r2 = n3.rowCount, o2 = n3.colCount;
          return t3.intersect(e3, i3, r2, o2);
        }, FR: function(t3, n3) {
          var e3, i3, r2 = t3.length, o2 = [];
          for (i3 = r2 - 1; i3 >= 0; i3--) e3 = t3[i3], this.LR(e3, n3) || o2.push(e3);
          return o2;
        }, PR: function(t3) {
          var n3 = false, e3 = this.Ut.getSpans(t3);
          return 1 === e3.length && (n3 = t3.equals(e3[0])), n3;
        }, GR: function(t3, n3) {
          var e3, i3, r2, o2, a2 = t3, u2 = n3.length, s2 = a2.length, c2 = true;
          for (r2 = u2 - 1; r2 >= 0; r2--) {
            for (i3 = n3[r2], o2 = s2 - 1; o2 >= 0; o2--) if ((e3 = a2[o2]).equals(i3)) {
              c2 = false;
              break;
            }
            c2 && a2.push(i3);
          }
          return a2;
        }, UR: function(t3) {
          var n3, e3, i3, r2, o2 = t3.length, a2 = [];
          for (e3 = o2 - 1; e3 >= 0; e3--) (n3 = t3[e3]).ER && (delete n3.ER, a2.push(e3));
          for (i3 = a2.length, r2 = 0; r2 < i3; r2++) t3.splice(a2[r2], 1);
        }, BR: function(t3, n3, e3, i3) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
          return n3 = this.JS(n3), o2 = [], a2 = t3.getIntersect(n3, e3, i3), t3 && a2 ? (u2 = t3.row >= 0 ? t3.row : 0, s2 = t3.col >= 0 ? t3.col : 0, c2 = t3.rowCount, f2 = t3.colCount, l2 = a2.row, h2 = a2.col, d2 = a2.rowCount, g2 = s2 + f2, b2 = h2 + (v2 = a2.colCount), (p2 = u2 + c2) - (m2 = l2 + d2) > 0 && o2.push((0, r.Ec)(m2, s2, p2 - m2, f2)), g2 - b2 > 0 && o2.push((0, r.Ec)(l2, b2, d2, g2 - b2)), h2 - s2 > 0 && o2.push((0, r.Ec)(l2, s2, d2, h2 - s2)), l2 - u2 > 0 && o2.push((0, r.Ec)(u2, s2, l2 - u2, f2))) : o2.push(t3), o2;
        }, tD: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2 = [], p2 = this.getRowCount(3), g2 = this.getColumnCount(3), m2 = this.deselectIgnoreSpan();
          if (t3 && t3.length > 0) {
            for (r2 = [], o2 = [], a2 = [], u2 = void 0, s2 = void 0, e3 = false, f2 = (i3 = t3.length) - 1; f2 >= 0; f2--) u2 = t3[f2], m2 || !this.PR(u2) || this.LR(u2, n3) ? (r2 = this.BR(u2, n3, p2, g2), m2 || (s2 = this.DR(u2)).length > 0 && (r2 = this.jR(r2, s2, p2, g2), a2 = this.FR(s2, n3), o2 = this.GR(o2, a2), this.UR(o2)), l2 = c(r2), !e3 && l2 > 0 && (this.setSelection(r2[l2 - 1].row, r2[l2 - 1].col, 1, 1), e3 = true), v2 = r2.concat(v2)) : o2 = this.GR(o2, [u2]);
            m2 || (v2 = o2.concat(v2));
          }
          for (this.IA(), h2 = v2.length, this.suspendPaint(), d2 = 0; d2 < h2; d2++) this.n4(v2[d2].row, v2[d2].col, v2[d2].rowCount, v2[d2].colCount);
          e3 || this.setActiveCell(this.ui, this.ci), this.resumePaint();
        }, HA: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, f2, l2, h2 = this, d2 = h2.Ut.getSelections();
          if (!(c(d2) <= 0) && (e3 = h2.U5(), i3 = h2.HR(e3, t3, n3))) {
            if (r2 = i3.row, o2 = i3.col, a2 = g(i3), u2 = m(i3), s2 = h2.selectionPolicy(), f2 = h2.selectionUnit(), 0 === s2) return;
            1 === s2 && h2.Ut.do("clearSelection"), 1 === f2 ? (o2 = -1, u2 = -1) : 2 === f2 && (r2 = -1, a2 = -1), h2.kA(r2, o2, a2, u2, true), l2 = h2.Ut.getSelections(), h2.rt._A(d2, l2) && (h2.EA(d2, l2), h2.jA(d2));
          }
        }, HR: function(t3, n3, e3, i3, r2) {
          var o2 = this, a2 = o2.JS(t3), u2 = f;
          return 37 === n3 ? u2 = e3 ? o2.zR(a2, false, i3, r2) : o2.VR(a2, i3, r2) : 39 === n3 ? u2 = e3 ? o2.YR(a2, false, i3, r2) : o2.ZR(a2, i3, r2) : 38 === n3 ? u2 = e3 ? o2.WR(a2, false, i3, r2) : o2.QR(a2, i3, r2) : 40 === n3 ? u2 = e3 ? o2.KR(a2, false, i3, r2) : o2.JR(a2, i3, r2) : 36 === n3 ? u2 = e3 ? o2.XR(a2, i3, r2) : o2.qR(a2, i3, r2) : 35 === n3 ? u2 = e3 ? o2.$R(a2, i3, r2) : o2.tB(a2, i3, r2) : 33 === n3 ? u2 = o2.nB(a2, i3, r2) : 34 === n3 && (u2 = o2.eB(a2, i3, r2)), u2 && (t3.row < 0 && (u2.row = -1, u2.rowCount = o2.getRowCount()), t3.col < 0 && (u2.col = -1, u2.colCount = o2.getColumnCount())), u2;
        }, VR: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, v2, p2, b2, y2, M, C = this, S = t3.row, T = t3.col, x = g(t3), A = m(t3), I = T + A - 1, k = 0, N = w(C, S, x), j = S + x; I > k; ) {
            for (I--, v2 = S; v2 < j; v2++) if (!C.JA(v2, I)) return f;
            if ((p2 = C.getColumnVisible(I)) && (i3 = C.xA(N, I, n3, e3), o2 = h(S, i3.row), a2 = h(T, i3.col), c2 = (u2 = l(S + x - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = h(T + A - 1, i3.col + m(i3) - 1)) - a2 + 1, o2 !== S || a2 !== T || c2 !== x || d2 !== A)) return b2 = C.Ab, T < (y2 = C.ci) ? a2 <= b2 && C.o9(a2) : T === y2 && s2 <= b2 && C.o9(s2), (M = C.parent && C.parent.options.scrollByPixel) && a2 === b2 && 0 !== C.my && C.o9(a2, 0), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, zR: function(t3, n3, e3, i3) {
          var o2, a2, u2, c2, f2, d2, v2, p2, b2, y2, w2, M, C = this, S = t3.row, T = t3.col, x = C.frozenColumnCount(), A = x ? C.O5(x - 1) : C.k9(), I = n3 ? A : C.k9();
          if (!s(I)) {
            for ((x <= 0 || n3) && (o2 = C.cJr, C.o9(I)), a2 = C.xA(S, I, e3, i3), u2 = h(S, a2.row), c2 = h(T, a2.col), b2 = u2 + (v2 = (f2 = l(S + g(t3) - 1, a2.row + g(a2) - 1)) - u2 + 1), y2 = c2 + (p2 = (d2 = h(T + m(t3) - 1, a2.col + m(a2) - 1)) - c2 + 1), w2 = u2; w2 < b2; w2++) for (M = c2; M < y2; M++) if (!C.JA(w2, M)) return s(o2) || C.o9(o2), t3;
            return (0, r.Ec)(u2, c2, v2, p2);
          }
        }, iB: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = a2.parent && a2.parent.options.scrollByPixel;
          if (u2) {
            for (i3 = a2.Jt, r2 = a2.S0(t3), o2 = a2.getViewportWidth(r2); 0 <= t3 && !((o2 -= i3.Kt(t3)) < 0); t3--) ;
            n3 = t3, e3 = o2;
          } else n3 = a2.rB(t3, 2).col, e3 = 0;
          return { iw: n3, Xy: e3 };
        }, ZR: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, p2, b2, y2, M, C, S = this, T = t3.row, x = t3.col, A = g(t3), I = m(t3), k = x, N = v(S) - 1, j = w(S, T, A), D = T + A; k < N; ) {
            for (k++, p2 = T; p2 < D; p2++) if (!S.JA(p2, k)) return f;
            if ((b2 = S.getColumnVisible(k)) && (i3 = S.xA(j, k, n3, e3), o2 = h(T, i3.row), a2 = l(x, i3.col), c2 = (u2 = l(T + A - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = l(x + I - 1, i3.col + m(i3) - 1)) - a2 + 1, o2 !== T || a2 !== x || c2 !== A || d2 !== I)) return y2 = S.oB(), x < (M = S.ci) ? a2 >= y2 && (C = S.iB(a2), S.o9(C.iw, C.Xy)) : x === M && s2 >= y2 && (C = S.iB(s2), S.o9(C.iw, C.Xy)), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, YR: function(t3, n3, e3, i3) {
          var o2, a2, u2, c2, f2, d2, v2, p2, b2, y2, w2, M, C, S = this, T = t3.row, x = t3.col, A = S.aB();
          if (!s(A)) {
            for (o2 = S.Ab, S.o9(A), a2 = S.G6(), n3 || (a2 += S.frozenTrailingColumnCount()), u2 = S.xA(T, a2, e3, i3), c2 = h(T, u2.row), f2 = l(x, u2.col), y2 = c2 + (p2 = (d2 = l(T + g(t3) - 1, u2.row + g(u2) - 1)) - c2 + 1), w2 = f2 + (b2 = (v2 = l(x + m(t3) - 1, u2.col + m(u2) - 1)) - f2 + 1), M = c2; M < y2; M++) for (C = f2; C < w2; C++) if (!S.JA(M, C)) return S.o9(o2), t3;
            return (0, r.Ec)(c2, f2, p2, b2);
          }
        }, QR: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, v2, p2, b2, w2, M, C = this, S = t3.row, T = t3.col, x = g(t3), A = m(t3), I = S + x - 1, k = 0, N = y(C, T, A), j = T + A; I > k; ) {
            for (I--, v2 = T; v2 < j; v2++) if (!C.JA(I, v2)) return f;
            if ((p2 = C.getRowVisible(I)) && (i3 = C.xA(I, N, n3, e3), o2 = h(S, i3.row), a2 = h(T, i3.col), c2 = (u2 = h(S + x - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = l(T + A - 1, i3.col + m(i3) - 1)) - a2 + 1, o2 !== S || a2 !== T || c2 !== x || d2 !== A)) return b2 = C.Tb, S < (w2 = C.ui) ? o2 <= b2 && C.$A(o2) : S === w2 && u2 <= b2 && C.$A(u2), (M = C.parent && C.parent.options.scrollByPixel) && o2 === b2 && 0 !== C.ly && C.$A(o2, 0), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, WR: function(t3, n3, e3, i3) {
          var o2, a2, u2, c2, f2, d2, v2, p2, b2, y2, w2, M, C = this, S = t3.row, T = t3.col, x = C.frozenRowCount(), A = x ? C.j5(x - 1) : C.N9(), I = n3 ? A : C.N9();
          if (!s(I)) {
            for ((x <= 0 || n3) && (o2 = C.Tb, C.$A(I)), a2 = C.xA(I, T, e3, i3), u2 = h(S, a2.row), c2 = h(T, a2.col), b2 = u2 + (v2 = (f2 = h(S + g(t3) - 1, a2.row + g(a2) - 1)) - u2 + 1), y2 = c2 + (p2 = (d2 = l(T + m(t3) - 1, a2.col + m(a2) - 1)) - c2 + 1), w2 = u2; w2 < b2; w2++) for (M = c2; M < y2; M++) if (!C.JA(w2, M)) return s(o2) || C.$A(o2), t3;
            return (0, r.Ec)(u2, c2, v2, p2);
          }
        }, uB: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = a2.parent && a2.parent.options.scrollByPixel;
          if (u2) {
            for (i3 = a2.Jt, r2 = a2.C0(t3), o2 = a2.getViewportHeight(r2); 0 <= t3 && !((o2 -= i3.Gt(t3)) < 0); t3--) ;
            n3 = t3, e3 = o2;
          } else n3 = a2.Jy(t3, 2), e3 = 0;
          return { Ky: n3, Xy: e3 };
        }, JR: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, v2, b2, w2, M, C, S = this, T = t3.row, x = t3.col, A = g(t3), I = m(t3), k = T, N = p(S) - 1, j = y(S, x, I), D = x + I; k < N; ) {
            for (k++, v2 = x; v2 < D; v2++) if (!S.JA(k, v2)) return f;
            if ((b2 = S.getRowVisible(k)) && (i3 = S.xA(k, j, n3, e3), o2 = l(T, i3.row), a2 = h(x, i3.col), c2 = (u2 = l(T + A - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = l(x + I - 1, i3.col + m(i3) - 1)) - a2 + 1, o2 !== T || a2 !== x || c2 !== A || d2 !== I)) return w2 = S.sB(), T < (M = S.ui) ? o2 >= w2 && (C = S.uB(o2), S.$A(C.Ky, C.Xy)) : T === M && u2 >= w2 && (C = S.uB(u2), S.$A(C.Ky, C.Xy)), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, KR: function(t3, n3, e3, i3) {
          var o2, a2, u2, c2, f2, d2, v2, p2, b2, y2, w2, M, C, S = this, T = t3.row, x = t3.col, A = S.cB();
          if (!s(A)) {
            for (o2 = S.Tb, S.$A(A), a2 = S.P6(), n3 || (a2 += S.frozenTrailingRowCount()), u2 = S.xA(a2, x, e3, i3), c2 = l(T, u2.row), f2 = h(x, u2.col), y2 = c2 + (p2 = (d2 = l(T + g(t3) - 1, u2.row + g(u2) - 1)) - c2 + 1), w2 = f2 + (b2 = (v2 = l(x + m(t3) - 1, u2.col + m(u2) - 1)) - f2 + 1), M = c2; M < y2; M++) for (C = f2; C < w2; C++) if (!S.JA(M, C)) return S.$A(o2), t3;
            return (0, r.Ec)(c2, f2, p2, b2);
          }
        }, qR: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, v2 = this, p2 = t3.row, b2 = t3.col, y2 = g(t3), w2 = m(t3), M = v2.frozenColumnCount() - 1, C = v2.ci, S = p2 + y2 - 1; M < C; ) if (M++, v2.dR(S, M)) {
            if (b2 <= M && b2 + w2 - 1 === v2.ci) break;
            return i3 = v2.xA(S, M, n3, e3), o2 = h(p2, i3.row), a2 = h(b2, i3.col), c2 = (u2 = l(p2 + y2 - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = h(b2 + w2 - 1, i3.col + m(i3) - 1)) - a2 + 1, v2.o9(v2.k9()), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, XR: function(t3, n3, e3) {
          return t3 = this.zR(t3, true, n3, e3), t3 = this.WR(t3, true, n3, e3);
        }, tB: function(t3, n3, e3) {
          for (var i3, o2, a2, u2, s2, c2, d2, p2 = this, b2 = t3.row, y2 = t3.col, w2 = g(t3), M = m(t3), C = v(p2), S = p2.ci, T = b2 + w2 - 1; C > S; ) if (C--, p2.dR(T, C)) {
            if (y2 + M - 1 >= C && y2 === p2.ci) break;
            return i3 = p2.xA(T, C, n3, e3), o2 = h(b2, i3.row), a2 = l(y2, i3.col), c2 = (u2 = l(b2 + w2 - 1, i3.row + g(i3) - 1)) - o2 + 1, d2 = (s2 = l(y2 + M - 1, i3.col + m(i3) - 1)) - a2 + 1, p2.o9(p2.aB()), (0, r.Ec)(o2, a2, c2, d2);
          }
          return f;
        }, $R: function(t3, n3, e3) {
          return t3 = this.YR(t3, true, n3, e3), t3 = this.KR(t3, true, n3, e3);
        }, nB: function(t3, n3, e3) {
          var i3, o2, a2, u2, d2, v2, p2, b2, y2, w2, M, C, S, T = this, x = t3.row, A = t3.col, I = g(t3), k = T.QA();
          if (s(k)) return f;
          for (i3 = -1, o2 = T._y(1), a2 = T.Tb, (u2 = T.$A(k)) ? i3 = T.j5(x + I - 1 - c(o2)) : T.frozenRowCount() <= 0 && (i3 = T.N9()), i3 < T.Tb ? i3 = T.Tb : i3 >= T.sB() && (i3 = T.nI(T.sB())), d2 = T.xA(i3, A, n3, e3), v2 = h(x, d2.row), p2 = h(A, d2.col), w2 = (b2 = h(x + I - 1, d2.row + g(d2) - 1)) - v2 + 1, M = (y2 = l(A + m(t3) - 1, d2.col + m(d2) - 1)) - p2 + 1, C = v2; C < v2 + w2; C++) for (S = p2; S < p2 + M; S++) if (!T.JA(C, S)) return T.$A(a2), t3;
          return (0, r.Ec)(v2, p2, w2, M);
        }, eB: function(t3, n3, e3) {
          var i3, o2, a2, u2, d2, v2, p2, b2, y2, w2, M, C, S = this, T = t3.row, x = t3.col, A = g(t3), I = S.tI();
          if (s(I)) return f;
          for (i3 = S._y(1), o2 = S.Tb, S.$A(I), (a2 = S.nI(T + A - 1 + c(i3))) < S.Tb ? a2 = S.Tb : a2 >= S.sB() && (a2 = S.Tb >= S.cB() ? S.sB() : S.nI(S.sB())), u2 = S.xA(a2, x, n3, e3), d2 = l(T, u2.row), v2 = h(x, u2.col), y2 = (p2 = l(T + A - 1, u2.row + g(u2) - 1)) - d2 + 1, w2 = (b2 = l(x + m(t3) - 1, u2.col + m(u2) - 1)) - v2 + 1, M = d2; M <= p2; M++) for (C = v2; C <= b2; C++) if (!S.JA(M, C)) return S.$A(o2), t3;
          return (0, r.Ec)(d2, v2, y2, w2);
        }, QA: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2._y(1);
          if (!a2 || c(a2) <= 0) return f;
          for (n3 = (t3 = o2.frozenRowCount()) ? o2.j5(t3 - 1) : o2.N9(), e3 = 0, i3 = o2.Tb, r2 = o2.Fi(); i3 > n3 && (i3--, !((e3 += o2.Gt(i3)) > o2.Sy(r2))); ) ;
          return i3;
        }, fB: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2.Yy(1);
          if (!a2 || c(a2) <= 0) return f;
          for (n3 = (t3 = o2.frozenColumnCount()) ? o2.O5(t3 - 1) : o2.k9(), e3 = 0, i3 = o2.Ab, r2 = o2.Fi(); i3 > n3 && (i3--, !((e3 += o2.nn(i3)) > o2.Gy(r2))); ) ;
          return i3;
        }, tI: function() {
          var t3, n3 = this._y(1), e3 = c(n3);
          return n3 && e3 > 0 ? (t3 = n3[e3 - 1].row, this.P6() <= t3 ? this.Tb : t3) : f;
        }, cB: function() {
          var t3, n3, e3, i3, r2, o2, a2 = this;
          if (a2.P6() <= a2.sB() && (t3 = a2.Fi(), n3 = a2._y(1), e3 = c(n3), n3 && e3 >= 1 && (i3 = n3[e3 - 1]).y + i3.height <= t3.Cy + a2.Sy(t3))) return a2.Tb;
          r2 = a2.Tb;
          try {
            return a2.Tb = a2.P6(), o2 = a2.QA(), o2 = a2.j5(o2);
          } catch (t4) {
          } finally {
            a2.Tb = r2;
          }
        }, aB: function() {
          var t3, n3, e3, i3, r2, o2, a2 = this;
          if (a2.G6() === a2.oB() && (t3 = a2.Fi(), n3 = a2.Yy(1), e3 = c(n3), n3 && e3 >= 1 && (i3 = n3[e3 - 1]).x + i3.width <= t3.Py + t3.width)) return a2.Ab;
          for (t3 = a2.Fi(), r2 = 0, o2 = a2.G6(); o2 > 0 && !((r2 += a2.nn(o2)) > a2.Gy(t3)); ) o2--;
          return o2 > 0 && (o2 = a2.O5(o2)), o2;
        }, sB: function() {
          var t3 = this._y(1), n3 = c(t3);
          return t3 && n3 > 0 ? t3[n3 - 1].row : f;
        }, oB: function() {
          var t3 = this.Yy(1), n3 = c(t3);
          return t3 && n3 > 0 ? t3[n3 - 1].col : f;
        }, getLastFullyVisibleRow: function() {
          var t3, n3, e3 = this, i3 = e3._y(1), r2 = c(i3);
          return i3 && r2 > 0 ? (t3 = e3.Fi(), i3[n3 = r2 - 1].y + i3[n3].height <= t3.Cy + e3.Sy(t3) ? i3[n3].row : i3[l(n3 - 1, 0)].row) : f;
        }, getLastFullyVisibleColumn: function() {
          var t3, n3, e3 = this, i3 = e3.Yy(1), r2 = c(i3);
          return i3 && r2 > 0 ? (t3 = e3.Fi(), i3[n3 = r2 - 1].x + i3[n3].width <= t3.Py + e3.Gy(t3) ? i3[n3].col : i3[l(n3 - 1, 0)].col) : f;
        }, P6: function(t3) {
          s(t3) && (t3 = 3);
          var n3 = p(this, t3);
          return 3 !== t3 && 2 !== t3 || (n3 -= this.frozenTrailingRowCount()), this.nI(n3, t3);
        }, G6: function(t3) {
          s(t3) && (t3 = 3);
          var n3 = v(this, t3);
          return 3 !== t3 && 1 !== t3 || (n3 -= this.frozenTrailingColumnCount()), this.r6(n3, t3);
        }, kR: function(t3, n3) {
          var e3, i3, r2;
          if (t3) {
            for (e3 = 0, i3 = c(t3); e3 < i3; e3++) if (r2 = t3[e3], n3.intersect(r2.row, r2.col, g(r2), m(r2))) return t3.splice(e3, 1), e3--, this.kR(t3, n3.union(r2));
          }
          return n3;
        }, U5: function(t3) {
          var n3, e3 = this, i3 = e3.Ut, o2 = c(i3.getSelections()), a2 = (0, r.Ec)(-1, -1, 0, 0);
          return o2 <= 0 || (n3 = i3.getActiveSelectedRangeIndex(), 3 === t3 || 1 === t3 ? (--n3 < 0 && (n3 = o2 - 1), i3.do("setActiveSelectedRangeIndex", n3)) : 4 !== t3 && 2 !== t3 || (++n3 >= o2 && (n3 = 0), i3.do("setActiveSelectedRangeIndex", n3)), (n3 = i3.getActiveSelectedRangeIndex()) >= 0 && (a2 = i3.getSelections()[n3])), a2;
        } }), i2.Worksheet.ch("selection", { init: function() {
          this.Ut.do("addSelection", 0, 0, 1, 1), this.Ut.setCellState(0, 0, u.CellStatesType.active, true, u.SheetArea.viewport);
        } });
      }, "./dist/core/worksheet/worksheet-sort.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S;
        function T(t3, n3, e3) {
          for (var i3 = t3[e3 - n3]; i3 < e3; ) i3 = t3[i3 - n3];
          return i3;
        }
        function x(t3, n3) {
          return "object" == typeof t3 ? JSON.stringify(t3) : (t3 = n3.getColor(t3), i2.Common.ft.j(i2.Common.ft._(t3)));
        }
        function A(t3, n3) {
          return t3 instanceof Date && n3 instanceof Date ? v(t3) === v(n3) : typeof t3 === b && typeof n3 === b ? t3.toLowerCase() === n3.toLowerCase() : t3 === n3;
        }
        function I(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2 = t3.currentTheme();
          return g(n3) || (a2 = r2 ? n3.backColor : n3.foreColor, g(a2) || (a2 = x(a2, s2))), g(e3) || (u2 = r2 ? e3.backColor : e3.foreColor, g(u2) || (u2 = x(u2, s2))), o2 = (a2 = a2 || "") === (u2 = u2 || "") ? 0 : a2 === i3 ? 1 : u2 === i3 ? -1 : 0;
        }
        function k(t3, n3) {
          var e3, i3, r2, o2, a2;
          return t3 instanceof Date && (t3 = v(t3)), n3 instanceof Date && (n3 = v(n3)), r2 = (e3 = typeof t3) === b, o2 = (i3 = typeof n3) === b, a2 = i3 === y, e3 === i3 || e3 !== y && !a2 ? !(e3 !== m || !o2) || (!r2 || i3 !== m) && (r2 && o2 ? t3.toLowerCase() > n3.toLowerCase() : t3 > n3) : a2;
        }
        function N(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2, b2, w2, M2, C2 = r2, S2 = t3, T2 = n3;
          if (C2) for (u2 = 0; u2 < C2.length && (C2[u2] && (s2 = C2[u2].ascending, 0 <= (c2 = C2[u2].index) && (f2 = void 0, l2 = void 0, h2 = i3 ? S2 : c2, d2 = i3 ? c2 : S2, v2 = i3 ? T2 : c2, p2 = i3 ? c2 : T2, o2 ? (f2 = o2[h2][d2], l2 = o2[v2][p2]) : (f2 = e3.getValue(h2, d2), l2 = e3.getValue(v2, p2)), C2[u2].compareFunction ? (a2 = C2[u2].compareFunction(f2, l2), s2 || (a2 *= -1)) : g(C2[u2].color) ? (w2 = g(f2) || "" === f2 || typeof f2 === y && isNaN(f2), M2 = g(l2) || "" === l2 || typeof l2 === y && isNaN(l2), w2 || M2 ? w2 && M2 ? a2 = 0 : w2 && !M2 ? a2 = 1 : !w2 && M2 && (a2 = -1) : a2 = A(f2, l2) ? 0 : k(f2, l2) ? s2 ? 1 : -1 : s2 ? -1 : 1) : (m2 = void 0, b2 = void 0, m2 = e3.getActualStyle(h2, d2, 3, false, { notClone: false, isForFilter: true }), b2 = e3.getActualStyle(v2, p2, 3, false, { notClone: false, isForFilter: true }), a2 = I(e3, m2, b2, C2[u2].color, C2[u2].isBackColor), s2 || (a2 *= -1)))), 0 === a2); u2++) ;
          return a2;
        }
        function j(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2 = t3.length;
          if (h2 <= 1) return t3;
          for (a2 = t3[o2 = Math.floor(h2 / 2)], u2 = [], s2 = [], c2 = [], f2 = 0; f2 < h2; f2++) o2 !== f2 ? (l2 = N(t3[f2], a2, n3, e3, i3, r2)) < 0 ? u2.push(t3[f2]) : l2 > 0 ? s2.push(t3[f2]) : c2.push(t3[f2]) : c2.push(t3[f2]);
          return j(u2, n3, e3, i3, r2).concat(c2, j(s2, n3, e3, i3, r2));
        }
        function D(t3, n3, e3) {
          var i3, r2, o2 = [];
          if (n3) for (i3 = e3.length - 1; i3 >= 0; i3--) r2 = e3[i3], 0 === t3.getRowHeight(r2) && (e3.splice(i3, 1), o2.push({ lp: i3, y4: r2 }));
          else for (i3 = e3.length - 1; i3 >= 0; i3--) r2 = e3[i3], 0 === t3.getColumnWidth(r2) && (e3.splice(i3, 1), o2.push({ lp: i3, y4: r2 }));
          return o2;
        }
        function _(t3, n3) {
          var e3, i3;
          for (e3 = t3.length - 1; e3 >= 0; e3--) i3 = t3[e3], n3.splice(i3.lp, 0, i3.y4);
        }
        function O(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2 = o2 ? i3 : r2, p2 = o2 ? n3 : e3, g2 = [];
          for (c2 = 0; c2 < v2; c2++) g2[c2] = p2 + c2;
          for (f2 = u2.ignoreHidden ? D(t3, o2, g2) : [], l2 = g2.concat([]), h2 = false, g2 = j(g2, t3, o2, a2, s2), d2 = 0; d2 < g2.length; d2++) if (g2[d2] !== l2[d2]) {
            h2 = true;
            break;
          }
          return _(f2, g2), { array: g2, isChanged: h2 };
        }
        function E(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2 = o2 ? i3 : r2, v2 = o2 ? n3 : e3, p2 = o2 ? t3.rowOutlines : t3.columnOutlines, g2 = p2.lB(v2, d2), m2 = p2.hB(g2, u2.groupSort);
          if (!m2) {
            for (c2 = [], f2 = 0; f2 < d2; f2++) c2.push(v2 + f2);
            m2 = [c2];
          }
          for (f2 = 0; f2 < m2.length; f2++) m2[f2] = j(m2[f2], t3, o2, a2, s2);
          return h2 = (l2 = p2.dB(m2, g2, u2.groupSort)).array, l2.isChanged && R(t3, o2, l2, h2, g2, v2, d2), { array: h2, isChanged: l2.isChanged };
        }
        function R(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2 = n3 ? t3.rowOutlines : t3.columnOutlines, f2 = [], l2 = [];
          if (n3) {
            for (u2 = o2; u2 < o2 + a2; u2++) t3.XT(u2) || t3.rowOutlines && t3.rowOutlines.isCollapsed(u2) || (t3.getRowVisible(u2, 3, true) ? 0 === t3.getRowHeight(u2) && (f2.push(u2), t3.setRowHeight(u2, t3.defaults.rowHeight)) : (l2.push(u2), t3.setRowVisible(u2, true)));
            for (c2.vB(e3.groupSwap, e3.array, r2.start), u2 = 0; u2 < l2.length; u2++) s2 = p.hD(i3, l2[u2]) + o2, t3.setRowVisible(s2, false);
            for (u2 = 0; u2 < f2.length; u2++) s2 = p.hD(i3, f2[u2]) + o2, t3.setRowHeight(s2, 0);
          } else {
            for (u2 = o2; u2 < o2 + a2; u2++) t3.columnOutlines && t3.columnOutlines.isCollapsed(u2) || (t3.getColumnVisible(u2, 3) ? 0 === t3.getColumnWidth(u2) && (f2.push(u2), t3.setColumnWidth(u2, t3.defaults.colWidth)) : (l2.push(u2), t3.setColumnVisible(u2, true)));
            for (c2.vB(e3.groupSwap, e3.array, r2.start), u2 = 0; u2 < l2.length; u2++) s2 = p.hD(i3, l2[u2]) + o2, t3.setColumnVisible(s2, false);
            for (u2 = 0; u2 < f2.length; u2++) s2 = p.hD(i3, f2[u2]) + o2, t3.setColumnWidth(s2, 0);
          }
        }
        function L(t3, n3, e3) {
          var i3 = t3.oT(n3, e3, false);
          i3 && i3.hasListeners() && i3.mB();
        }
        function F(t3, n3, i3, r2) {
          var o2, a2, u2 = e2("SheetsCalc");
          u2 && (o2 = u2.CalcOperatorAdjustor.gB(t3.rT, t3.rT, t3.pB(n3, i3), n3, i3, 0, 0), t3.bB(n3, i3, o2, r2), (a2 = t3.oT(n3, i3, !!o2)) && (t3.Phe(n3, i3) && a2.isDefault(true), a2.yB()));
        }
        function B(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
          var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2 = t3.Ut, N2 = k2.pI, j2 = N2 && N2.wB.length > 0, D2 = o2 ? n3 : e3, _2 = o2 ? n3 + i3 : e3 + r2, O2 = o2 ? e3 : n3, E2 = o2 ? e3 + r2 : n3 + i3;
          for (A2 = D2; A2 < _2; A2++) if (A2 !== (x2 = T(u2, D2, A2))) for (o2 ? (g2 = A2, b2 = x2) : (m2 = A2, y2 = x2), I2 = O2; I2 < E2; I2++) o2 ? (m2 = I2, y2 = I2) : (g2 = I2, b2 = I2), a2 && (w2 = s2[g2][m2], M2 = s2[b2][y2]), j2 && (C2 = N2.get(g2, m2), S2 = N2.get(b2, y2)), f2 && l2 && (null === (d2 = null === (h2 = t3.parent) || void 0 === h2 ? void 0 : h2.suspendOp) || void 0 === d2 || d2.call(h2), L(f2, g2, m2), L(f2, b2, y2), f2.SE(g2, m2, b2, y2), F(f2, g2, m2), F(f2, b2, y2), null === (p2 = null === (v2 = t3.parent) || void 0 === v2 ? void 0 : v2.resumeOp) || void 0 === p2 || p2.call(v2)), k2.do("swapNode", g2, m2, b2, y2), t3.b8 && t3.MB(g2, m2, b2, y2), j2 && N2.CB(C2, g2, m2, S2, b2, y2), a2 && (s2[g2][m2] = M2, s2[b2][y2] = w2), c2.push({ row: g2, col: m2 }), c2.push({ row: b2, col: y2 });
        }
        function P(t3, n3, e3, i3, r2, o2, u2, c2, f2, l2, h2) {
          var d2, v2, p2, g2, m2, b2, y2, w2 = [], M2 = t3.Ut.P8;
          if (M2 > 0 && (n3 && (t3.Ut.P8 = 0), [].push.apply(t3.Ut.G8, [{ row: e3, column: i3, rowCount: r2, columnCount: o2, byRows: u2, sortInfo: c2, type: "sortRange", array: l2.concat([]), sortState: t3.getSortState() }])), d2 = s && t3.b3(), v2 = s && t3.Uw(), B(t3, e3, i3, r2, o2, u2, f2, l2, h2, w2, d2, v2), f2) for (p2 = e3; p2 < e3 + r2; p2++) for (g2 = i3; g2 < i3 + o2; g2++) t3.setValue(p2, g2, h2[p2][g2]);
          if (d2) {
            for (m2 = e3; m2 < e3 + r2; m2++) for (b2 = i3; b2 < i3 + o2; b2++) (y2 = d2.pB(m2, b2)) && d2.SB(m2, b2, y2, C);
            t3.getCalcService().recalcRange(v2, e3, i3, r2, o2);
          }
          return a.Worksheet.et(t3, "sortRangeChanged", { column: i3, columnCount: o2 }), M2 > 0 && (t3.Ut.P8 = M2), w2;
        }
        function G(t3, n3, e3, i3, r2, o2, u2, c2, f2, l2, h2, d2) {
          var v2, p2, g2, m2, b2, y2;
          t3.suspendPaint(), t3.suspendEvent(), s && t3.suspendCalcService();
          try {
            if (l2) {
              if (h2 && h2.H3 && h2.H3.eln()) return t3.Ut.P8 > 0 && [].push.apply(t3.Ut.G8, [{ row: n3, column: e3, rowCount: i3, columnCount: r2, byRows: o2, sortInfo: u2, type: "sortRange", array: [], sortState: t3.getSortState() }]), d2 || h2.rowFilter().ekr(u2), v2 = [], a.Worksheet.et(t3, "sortRangeChanged", { column: e3, columnCount: r2 }), true;
              for (p2 = [], g2 = n3; g2 < n3 + i3; g2++) for (p2[g2] = [], m2 = e3; m2 < e3 + r2; m2++) p2[g2][m2] = t3.getValue(g2, m2);
            }
            return b2 = void 0, y2 = void 0, !!(b2 = f2 || (0 === c2.groupSort ? (y2 = O(t3, n3, e3, i3, r2, o2, u2, c2, p2)).array : (y2 = E(t3, n3, e3, i3, r2, o2, u2, c2, p2)).array)) && (v2 = P(t3, y2 && y2.isChanged, n3, e3, i3, r2, o2, u2, l2, b2, p2), true);
          } finally {
            s && t3.resumeCalcService(false), t3.resumeEvent(), t3.resumePaint(), t3.SI(n3, e3, i3, r2, v2, 4, C, C, C, !!f2);
          }
        }
        function U(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2 = [];
          for (e3 = 0, i3 = n3; e3 < i3.length; e3++) (r2 = i3[e3]).compareFunction ? (o2 = r2, s2.push({ index: o2.index, ascending: o2.ascending, compareFunction: o2.compareFunction })) : r2.order && r2.hasOwnProperty(w) ? (a2 = "top" !== (o2 = r2).order, u2 = g(o2.backColor) ? "" : x(o2.backColor, t3.currentTheme()), s2.push({ index: o2.index, ascending: a2, color: u2, isBackColor: true })) : r2.order && r2.hasOwnProperty(M) ? (a2 = "top" !== (o2 = r2).order, u2 = g(o2.fontColor) ? "" : x(o2.fontColor, t3.currentTheme()), s2.push({ index: o2.index, ascending: a2, color: u2, isBackColor: false })) : (r2.color && (r2.color = x(r2.color, t3.currentTheme())), s2.push(r2));
          return s2;
        }
        function H(t3, n3) {
          var e3, i3, r2;
          if (n3) {
            for (e3 = t3[0], i3 = 1; i3 < t3.length; i3++) if ((r2 = t3[i3]).row !== e3.row || r2.rowCount !== e3.rowCount) return false;
            return true;
          }
        }
        function V(t3, n3) {
          var e3, i3, r2, o2, a2 = t3[0], u2 = a2.row;
          for (e3 = 1; e3 < t3.length; e3++) (i3 = t3[e3]) && i3.row < u2 && (u2 = i3.row, a2 = i3);
          if (u2 === n3.row - 1) return r2 = n3.row, o2 = a2.row + a2.rowCount, n3.row = o2, n3.rowCount = n3.rowCount - (o2 - r2), n3;
        }
        function z(t3, n3, e3, i3) {
          var r2, o2;
          if (t3.sortConditions) for (r2 in t3.sortConditions) t3.sortConditions && t3.sortConditions.hasOwnProperty(r2) && ((o2 = t3.sortConditions[r2]).index >= n3 && o2.index < n3 + e3 ? i3.push(o2.index) : o2.index >= n3 + e3 && (o2.index -= e3));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.afterSwapCalcModel = n2.beforeSwapCalcModel = void 0, i2 = e2("Common"), r = e2("./dist/core/util/domUtil.js"), o = e2("./dist/core/util/common.js"), a = e2("./dist/core/worksheet/worksheet.js"), u = e2("CalcEngine"), s = !!u, c = e2("./dist/core/core.ns.js"), f = e2("./dist/core/core.enum.js"), l = e2("./dist/core/excel-io-util/range-parser.js"), h = new i2.Common.ResourceManager(c.SR, "Sheets"), d = h.getResource.bind(h), v = i2.Common.ct.o0, p = i2.Common.Uf, g = i2.Common.lt.ht, m = "boolean", b = "string", y = "number", w = "backColor", M = "fontColor", C = void 0, n2.beforeSwapCalcModel = L, n2.afterSwapCalcModel = F, r.GC$.extend(a.Worksheet.prototype, { sortRange: function(t3, n3, e3, i3, r2, a2, u2, c2, l2, h2) {
          var v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = false;
          if (0 === arguments.length) {
            if (!(v2 = this.getSortState())) return false;
            t3 = v2.row, n3 = v2.col, e3 = v2.rowCount, i3 = v2.colCount, a2 = v2.sortConditions, r2 = v2.byRow, O2 = true;
          }
          if (g2 = (p2 = this).getRowCount(), m2 = p2.getColumnCount(), -1 === t3 && (t3 = 0), -1 === e3 && (e3 = g2), -1 === n3 && (n3 = 0), -1 === i3 && (i3 = m2), t3 < 0 || t3 >= g2 || n3 < 0 || n3 >= m2 || e3 < 0 || t3 + e3 > g2 || i3 < 0 || n3 + i3 > m2 || !a2) return false;
          if (u2 = p2.TB(o.Ec(t3, n3, e3, i3), r2, u2), b2 = r2 ? e3 : i3, y2 = r2 ? t3 : n3, w2 = r2 ? p2.rowOutlines : p2.columnOutlines, !c2 && u2.groupSort > 0) {
            if (!w2) return false;
            M2 = w2.lB(y2, b2), r2 ? (e3 = M2.count, t3 = M2.start) : (i3 = M2.count, n3 = M2.start);
          }
          return s && !p2.mT(t3, n3, e3, i3, false) ? (l2 && p2.jT(7, d().Exp_InvalidSortArrayFormulaInRange), false) : (S2 = o.Ec(t3, n3, e3, i3), (T2 = p2.Ut.getSpans(S2)) && T2.length > 0 && (x2 = true, H(T2, r2) && (A2 = V(T2, S2)) && (t3 = A2.row, e3 = A2.rowCount, x2 = false), x2) ? (l2 && p2.jT(7, d().Exp_InvalidSortSpanInRange), false) : !(I2 = p2.tables) || (N2 = 1 === (k2 = I2.AB(t3, n3, e3, i3)).length && k2[0].dataRange().equals(o.Ec(t3, n3, e3, i3)), k2.length <= 0 || N2) ? (j2 = p2.H3, D2 = (!p2.NMi || p2.NMi._gi !== f.SheetType.ganttSheet) && j2 && j2._dataSource || N2 && k2[0] && k2[0].z3(), (_2 = G(p2, t3, n3, e3, i3, r2, U(p2, a2), u2, c2, D2, N2 && k2[0] ? k2[0] : C, h2)) && 0 !== u2.groupSort && p2.IB && p2.IB.reFilter(), O2 || c2 || this.JSe(t3, n3, e3, i3, r2, a2), _2) : (l2 && p2.jT(7, d().Exp_InvalidSortPartTableOrMultiTableInRange), false));
        }, TB: function(t3, n3, e3) {
          var i3, r2 = this, o2 = r2.JS(t3), a2 = n3 ? o2.rowCount : o2.colCount, u2 = n3 ? o2.row : o2.col, s2 = n3 ? r2.rowOutlines : r2.columnOutlines;
          return g(e3) && (e3 = {}), r2.outlineColumn && r2.outlineColumn.xB() && n3 && (i3 = r2.outlineColumn.NB.columnIndex, o2.col <= i3 && i3 <= o2.col + o2.colCount || (e3.groupSort = 0)), g(e3.groupSort) && (g(e3.ignoreHidden) ? e3.groupSort = s2 && s2.kB(u2, a2) ? 1 : 0 : e3.groupSort = 0), 0 === e3.groupSort ? e3.ignoreHidden = !!g(e3.ignoreHidden) || e3.ignoreHidden : e3.ignoreHidden = false, e3;
        }, _B: function() {
          var t3 = this.options;
          return !this.isActualProtected() || t3.protectionOptions.allowSort;
        }, MB: function(t3, n3, e3, i3) {
          var r2 = this, o2 = r2.getDataValidator(t3, n3), a2 = r2.getDataValidator(e3, i3);
          r2.setDataValidator(t3, n3, a2), r2.setDataValidator(e3, i3, o2);
        }, JSe: function(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2 = this, f2 = null === (a2 = c2.rowFilter()) || void 0 === a2 ? void 0 : a2.LAe;
          if (!f2) {
            if (o2.length < 1) return c2.XSe();
            (u2 = { row: t3, col: n3, rowCount: e3, colCount: i3, byRow: r2 }).sortConditions = s2 = o2, this.N_r(u2);
          }
        }, XSe: function() {
          this.N_r(void 0);
        }, N_r: function(t3, n3) {
          void 0 === n3 && (n3 = true);
          var e3 = this;
          e3.fQt = t3, n3 && e3.$Dr({ type: "updateSortState" });
        }, getSortState: function() {
          var t3, n3 = this;
          return n3.fQt ? ((t3 = o.RF(n3.fQt, true)).sortConditions = t3.sortConditions.map((function(t4) {
            return Object.hasOwnProperty.call(t4, "backColor") || Object.hasOwnProperty.call(t4, "fontColor") ? (t4.ascending = void 0, delete t4.ascending, t4) : t4;
          })), t3) : n3.fQt;
        }, qSe: function(t3, n3) {
          var e3, i3, r2, o2, a2 = this.getSortState();
          if (a2 && !(t3 >= a2.row + a2.rowCount)) {
            if (t3 <= a2.row) {
              if (a2.row = a2.row + n3, !a2.byRow) for (e3 = 0, i3 = a2.sortConditions; e3 < i3.length; e3++) (r2 = i3[e3]).index = r2.index + n3;
            } else if (a2.rowCount = a2.rowCount + n3, !a2.byRow && a2.sortConditions) for (o2 in a2.sortConditions) a2.sortConditions.hasOwnProperty(o2) && (r2 = a2.sortConditions[o2]).index >= t3 && (r2.index += n3);
          }
        }, $Se: function(t3, n3) {
          var e3, i3, r2, o2, a2 = this.getSortState();
          if (a2 && !(t3 >= a2.col + a2.colCount)) {
            if (t3 <= a2.col) {
              if (a2.col = a2.col + n3, a2.byRow) for (e3 = 0, i3 = a2.sortConditions; e3 < i3.length; e3++) (r2 = i3[e3]).index = r2.index + n3;
            } else if (a2.colCount = a2.colCount + n3, a2.byRow && a2.sortConditions) for (o2 in a2.sortConditions) a2.sortConditions.hasOwnProperty(o2) && (r2 = a2.sortConditions[o2]).index >= t3 && (r2.index += n3);
          }
        }, tTe: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = this.getSortState();
          if (u2 && (e3 = [], !(t3 >= u2.row + u2.rowCount))) {
            if (t3 + n3 <= u2.row) {
              if (u2.row = u2.row - n3, !u2.byRow) for (i3 = 0, r2 = u2.sortConditions; i3 < r2.length; i3++) (o2 = r2[i3]).index = o2.index - n3;
            } else if (t3 >= u2.row && t3 + n3 < u2.row + u2.rowCount) {
              if (u2.rowCount = u2.rowCount - n3, !u2.byRow && u2.sortConditions) for (a2 in u2.sortConditions) u2.sortConditions.hasOwnProperty(a2) && ((o2 = u2.sortConditions[a2]).index >= t3 && o2.index < t3 + n3 ? e3.push(o2.index) : o2.index >= t3 + n3 && (o2.index -= n3));
            } else t3 < u2.row ? (u2.rowCount -= t3 + n3 - u2.row, u2.row = t3, u2.byRow || z(u2, t3, n3, e3)) : (u2.rowCount -= u2.row + u2.rowCount - t3, u2.byRow || z(u2, t3, n3, e3));
            return e3.length > 0 && (u2.sortConditions = u2.sortConditions.filter((function(t4) {
              return -1 === e3.indexOf(t4.index);
            }))), 0 === u2.sortConditions.length || u2.rowCount <= 0 ? this.XSe() : void 0;
          }
        }, nTe: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = this.getSortState();
          if (u2 && (e3 = [], !(t3 >= u2.col + u2.colCount))) {
            if (t3 + n3 <= u2.col) {
              if (u2.col = u2.col - n3, u2.byRow) for (i3 = 0, r2 = u2.sortConditions; i3 < r2.length; i3++) (o2 = r2[i3]).index = o2.index - n3;
            } else if (t3 >= u2.col && t3 + n3 < u2.col + u2.colCount) {
              if (u2.colCount = u2.colCount - n3, u2.byRow && u2.sortConditions) for (a2 in u2.sortConditions) u2.sortConditions.hasOwnProperty(a2) && ((o2 = u2.sortConditions[a2]).index >= t3 && o2.index < t3 + n3 ? e3.push(o2.index) : o2.index >= t3 + n3 && (o2.index -= n3));
            } else t3 < u2.col ? (u2.colCount -= t3 + n3 - u2.col, u2.col = t3, u2.byRow && z(u2, t3, n3, e3)) : (u2.colCount -= u2.col + u2.colCount - t3, u2.byRow && z(u2, t3, n3, e3));
            return e3.length > 0 && (u2.sortConditions = u2.sortConditions.filter((function(t4) {
              return -1 === e3.indexOf(t4.index);
            }))), 0 === u2.sortConditions.length || u2.colCount <= 0 ? this.XSe() : void 0;
          }
        } }), S = { yh: function(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = this, T2 = o.util.go, x2 = o.util.xr, A2 = x2(t3, "sortState");
          if (A2 && (i3 = "1" !== A2.columnSort, r2 = l.range_parser._c(A2.ref), A2)) {
            for (u2 = [], s2 = 0, c2 = a2 = T2(A2, "sortCondition"); s2 < c2.length; s2++) if (d2 = (h2 = c2[s2]).sortBy, v2 = !h2.descending, p2 = l.range_parser._c(h2.ref), r2.containsRange(p2) && (g2 = i3 ? p2.col : p2.row, m2 = void 0, b2 = void 0, "icon" !== d2)) {
              for (C2 in d2 !== f.SortBy.fontColor && d2 !== f.SortBy.cellColor || (y2 = Number.parseInt(h2.dxfId, 10), w2 = n3.styleManager.getDxf(y2), b2 = d2 === f.SortBy.cellColor, w2 && (m2 = b2 ? w2.backColor : w2.foreColor)), M2 = { index: g2, ascending: v2 }, d2 === f.SortBy.cellColor ? (M2.backColor = m2, M2.order = v2 ? "top" : "bottom") : d2 === f.SortBy.fontColor && (M2.fontColor = m2, M2.order = v2 ? "top" : "bottom"), M2) void 0 === M2[C2] && delete M2[C2];
              u2.push(M2);
            }
            S2.JSe(r2.row, r2.col, r2.rowCount, r2.colCount, i3, u2);
          }
        }, wh: function(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2, h2, d2, v2, p2, m2, b2 = this, y2 = t3.c_, w2 = this.getSortState();
          if (w2) {
            for (i3 = { n_: "sortState", ref: r2 = l.range_parser.getRangeString([new o.Range(w2.row, w2.col, w2.rowCount, w2.colCount)]), c_: [] }, w2.byRow || (i3.columnSort = 1), u2 = 0, s2 = a2 = U(b2, w2.sortConditions); u2 < s2.length; u2++) c2 = s2[u2], h2 = void 0, d2 = { n_: "sortCondition", ref: h2 = w2.byRow ? l.range_parser.jc(new o.Range(w2.row, c2.index, w2.rowCount, 1)) : l.range_parser.jc(new o.Range(c2.index, w2.col, 1, w2.colCount)) }, v2 = c2.isBackColor, p2 = c2.color, g(p2) ? c2.ascending || (d2.descending = 1) : ("{" === p2[0] && (p2 = JSON.parse(p2)), m2 = v2 ? { backColor: p2 } : { foreColor: p2 }, d2.sortBy = v2 ? f.SortBy.cellColor : f.SortBy.fontColor, d2.dxfId = n3.styleManager.getDxfIndex(m2), c2.ascending ? d2.descending = 1 : (d2.descending = null, delete d2.descending)), i3.c_.push(d2);
            i3 && y2.push(i3);
          }
        }, toJson: function(t3, n3) {
          var e3 = this.getSortState();
          e3 && (t3.sortState = e3);
        }, fromJson: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2 = this, f2 = t3.sortState;
          f2 && (i3 = f2.row, r2 = f2.col, o2 = f2.rowCount, a2 = f2.colCount, u2 = f2.byRow, s2 = f2.sortConditions, c2.JSe(i3, r2, o2, a2, u2, s2));
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2 = this.getSortState();
          s2 && (n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = t3.sheetArea, u2 = g(a2) || a2 === f.SheetArea.viewport, "addRows" === n3 && u2 ? this.qSe(e3, i3) : "deleteRows" === n3 && u2 ? this.tTe(e3, i3) : "addColumns" === n3 && u2 ? this.$Se(r2, o2) : "deleteColumns" === n3 && u2 && this.nTe(r2, o2));
        } }, a.Worksheet.ch("Sort", S);
      }, "./dist/core/worksheet/worksheet-static.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I = this && this.nJr || function() {
          return I = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, I.apply(this, arguments);
        }, k = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function N(t3, n3) {
          return t3.getRowCount(n3);
        }
        function j(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function D(t3, n3, e3) {
          return t3.Do(n3, e3);
        }
        function _(t3, n3, e3) {
          return t3._o(n3, e3);
        }
        function O(t3, n3, e3, i3) {
          t3.setColumnWidth(n3, e3, i3);
        }
        function E(t3, n3, e3, i3) {
          t3.setRowHeight(n3, e3, i3);
        }
        function R(t3, n3, e3, i3, r2) {
          return t3.getActualStyle(n3, e3, i3, m, { notClone: m, isForFilter: m, ignoreSheet: r2 });
        }
        function L(t3, n3) {
          return t3.getDefaultStyle(n3);
        }
        function F(t3, n3, e3) {
          t3.setDefaultStyle(n3, e3);
        }
        function B(t3, n3, e3, i3, r2) {
          t3.u5(n3, e3, i3, r2);
        }
        function P(t3, n3, e3, i3) {
          throw new Error(o.Common.zf.I5(S().Exp_InvalidAndSpace, [t3, n3, e3, i3]));
        }
        function G(t3, n3, e3) {
          return n3 && e3.XT && e3.XT(t3);
        }
        function U(t3, n3, e3) {
          return e3 ? [n3, t3] : [t3, n3];
        }
        function H(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, g2, m2;
          if (!t3) throw new Error(S().Exp_SrcIsNull);
          if (!i3) throw new Error(S().Exp_DestIsNull);
          f2 = N(t3), l2 = j(t3), h2 = N(i3), d2 = j(i3), (n3 < -1 || n3 >= f2) && P("from row index", n3, "-1", f2 - 1), (e3 < -1 || e3 >= l2) && P("from column index", e3, "-1", l2 - 1), (r2 < -1 || r2 >= h2) && P("to row index", r2, "-1", h2 - 1), (o2 < -1 || o2 >= d2) && P("to column index", o2, "-1", d2 - 1), v2 = e3, e3 < 0 && (v2 = 0, u2 = l2), p2 = o2 < 0 ? 0 : o2, (u2 < 1 || v2 + (s2 ? a2 : u2) > l2 || p2 + u2 > d2) && !c2 && P("column count", u2, "1", b(l2 - v2, d2 - p2)), g2 = n3, n3 < 0 && (g2 = 0, a2 = f2), m2 = r2 < 0 ? 0 : r2, (a2 < 1 || g2 + (s2 ? u2 : a2) > f2 || m2 + a2 > h2) && !c2 && P("row count", a2, "1", b(f2 - g2, h2 - m2));
        }
        function V(t3) {
          if (!t3) return t3;
          if ("number" == typeof t3 || "string" == typeof t3 || "boolean" == typeof t3 || v(t3)) return t3;
          if (t3.clone) return t3.clone();
          if (t3 instanceof Date) return new Date(t3.valueOf());
          var n3, e3, i3;
          if (w && t3 instanceof w) return new w([t3], t3.name, { type: t3.type, lastModified: t3.lastModified });
          if (M && t3 instanceof M) return new M([t3], { type: t3.type });
          for (e3 in n3 = t3 instanceof Object ? new t3.constructor() : new t3.constructor(t3.valueOf()), t3) t3.hasOwnProperty(e3) && (i3 = t3[e3], t3.hasOwnProperty(e3) && n3[e3] !== i3 && (n3[e3] = "object" == typeof i3 ? i3 instanceof M ? i3 : V(i3) : i3));
          return n3.toString = t3.toString, n3.valueOf = t3.valueOf, n3;
        }
        function z(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2 = t3.getSpans(m, s2), C2 = i3.getSpans(m, s2), S2 = [];
          if (M2) for (f2 = 0; f2 < M2.length; f2++) h2 = (l2 = M2[f2]).row, d2 = l2.col, v2 = l2.rowCount, p2 = l2.colCount, -1 === n3 ? e3 <= d2 && d2 + p2 <= e3 + u2 && S2.push(T(h2, o2 + d2 - e3, v2, p2, c2)) : -1 === e3 ? n3 <= h2 && h2 + v2 <= n3 + a2 && S2.push(T(r2 + h2 - n3, d2, v2, p2, c2)) : n3 <= h2 && h2 < n3 + a2 && e3 <= d2 && d2 < e3 + u2 && S2.push(T(r2 + h2 - n3, o2 + d2 - e3, v2, p2, c2));
          if (C2) for (f2 = 0; f2 < C2.length; f2++) h2 = (l2 = C2[f2]).row, g2 = void 0, b2 = (d2 = l2.col) >= o2 && d2 < o2 + u2, y2 = h2 >= r2 && h2 < r2 + a2, (g2 = -1 === n3 ? b2 : -1 === e3 ? y2 : y2 && b2) && (w2 = i3.findSpan(h2, d2, s2)) && w2.row === h2 && w2.col === d2 && i3.do("removeSpan", w2, s2);
          for (f2 = 0; f2 < S2.length; f2++) i3.do("addSpan", S2[f2], s2);
        }
        function Y(t3, n3) {
          t3.forEach((function(t4) {
            var e3 = t4.sheet, i3 = t4.r, r2 = t4.c, o2 = t4.value;
            e3.setTemplateCell ? e3.setTemplateCellInternal(i3, r2, o2, n3) : e3.setBindingPath && e3.setBindingPath(i3, r2, o2);
          }));
        }
        function Z(t3, n3, e3) {
          var i3, r2, o2, a2 = t3.JS(n3), u2 = a2.row, s2 = a2.col, c2 = a2.rowCount, f2 = a2.colCount;
          for (i3 = 0; i3 < c2; i3++) for (r2 = e3[u2 + i3] = e3[u2 + i3] || {}, o2 = 0; o2 < f2; o2++) r2[s2 + o2] = true;
        }
        function W(t3, n3) {
          return t3 === n3 && t3.name() === n3.name();
        }
        function Q(t3) {
          var n3 = k([], t3.sheets, true);
          return t3.mp && t3.mp.length > 0 && t3.mp.forEach((function(t4) {
            t4.Mf && n3.push(t4.Mf);
          })), n3;
        }
        function K(t3, n3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2 = e2("SheetsCalc");
          if (S2) {
            if (h2 = S2.QB, g2 = t3.Ut.pj(), !t3.parent || !t3.parent.sheets) return void ((m2 = t3.getCustomNames()) && p(m2, (function(e3, f3) {
              d2 = f3.getExpression(), (v2 = h2(t3, t3, n3, i3, r2, o2, a2, u2, s2, d2, c2)) !== d2 && f3.SB(v2, g2);
            })));
            for (b2 = Q(t3.parent), y2 = t3.parent.getCustomNames(), w2 = null === (l2 = (f2 = t3.parent).wJt) || void 0 === l2 ? void 0 : l2.call(f2), y2 && p(y2, (function(e3, f3) {
              d2 = f3.getExpression(), (v2 = h2(null, t3, n3, i3, r2, o2, a2, u2, s2, d2, c2)) !== d2 && f3.SB(v2, g2);
            })), w2 && p(w2, (function(e3, f3) {
              d2 = f3.getExpression(), (v2 = h2(null, t3, n3, i3, r2, o2, a2, u2, s2, d2, c2)) !== d2 && f3.SB(v2, g2);
            })), M2 = function(e3) {
              var f3, l3 = b2[e3].getCustomNames();
              l3 && (f3 = [], p(l3, (function(l4, p2) {
                d2 = p2.getExpression(), (v2 = h2(b2[e3], t3, n3, i3, r2, o2, a2, u2, s2, d2, c2)) !== d2 && (p2.SB(v2, g2), f3.push({ nameInfo: p2, oldExpr: d2, newExpr: v2 }));
              })), f3.length > 0 && "function" == typeof b2[e3].onCustomNameFormulaChanged && b2[e3].onCustomNameFormulaChanged(f3));
            }, C2 = 0; C2 < b2.length; C2++) M2(C2);
          }
        }
        function J(t3, n3, e3, i3, r2, o2, u2, s2, c2) {
          if (e3 && r2) {
            r2 = t3.adjustFormulaOnMoveSwap(i3, o2, u2, r2, s2, true, { crossSheetMoved: c2 });
            var f2 = e3.unparse(i3, r2, o2, u2);
            n3.setDefaultValue(o2, u2, f2, g, a.DefaultChangeValueType.Expression, g, true);
          }
        }
        function X(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2;
          if (t3) {
            for (l2 in a2 = e3 !== i3, u2 = e3.Ut, s2 = i3.Ut, c2 = e3.Uw(), f2 = e3.op(), t3) if (t3.hasOwnProperty(l2)) {
              if (!(h2 = t3[l2])) continue;
              for (d2 in h2) if (h2.hasOwnProperty(d2) && (p2 = h2[d2]) && p2.expr) if (o2) J(n3, s2, f2, c2, y2 = (b2 = p2).expr, w2 = b2.destRow, M2 = b2.destCol, r2, a2);
              else {
                if (g2 = +l2, m2 = +d2, v(e3.getValueIgnoreDefault(g2, m2))) continue;
                J(n3, u2, f2, c2, p2.expr, g2, m2, r2, a2);
              }
            }
          }
        }
        function q(t3, n3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, g2, m2 = e2("SheetsCalc");
          m2 && (f2 = t3.op(), l2 = t3.Uw(), h2 = r2.Uw(), f2 && l2 && h2 && (d2 = new m2.MoveSwapInfo(l2, n3, i3, h2, o2, a2, u2, s2), X(g2 = (p2 = (v2 = t3.Ut) && v2.Ehe()) && p2._he(), m2, t3, r2, d2), X(c2, m2, t3, r2, d2, true)));
        }
        function $(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
          var l2 = !(t3 === i3 && t3.name() === i3.name()), h2 = t3.Ut, d2 = h2.K_(c2);
          l2 ? (z(h2, n3, e3, i3.Ut, r2, o2, a2, u2, c2, f2), s2 && d2 && h2.do("clearSpan", n3, e3, a2, u2, c2)) : s2 ? h2.do("moveSpan", n3, e3, r2, o2, a2, u2, c2) : h2.do("copySpan", n3, e3, r2, o2, a2, u2, c2, f2);
        }
        function tt(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2 = {}, f2 = T(e3, i3, r2, o2), l2 = t3.Uw(3).t8, h2 = n3.Uw(3).t8, d2 = l2 && l2.Rme(e3, i3, r2, o2), v2 = h2 && h2.Rme(a2, u2, r2, o2), p2 = h2 && h2.b3();
          return t3 === n3 && f2.intersect(a2, u2, r2, o2) ? (s2 = [], d2 && d2.forEach((function(t4) {
            l2.Fme(t4), t4.minX >= e3 && t4.minY >= i3 && s2.push(t4);
          })), v2 && v2.forEach((function(t4) {
            l2.Fme(t4), p2.gF(t4.minX, t4.minY, 1, 1), t4.minX >= a2 && t4.minY >= u2 && h2.Pme(t4, true);
          })), s2.forEach((function(t4) {
            var n4 = { minX: t4.minX + a2 - e3, minY: t4.minY + u2 - i3, maxX: t4.maxX + a2 - e3, maxY: t4.maxY + u2 - i3, isValid: t4.isValid };
            h2.Gme(n4, true);
          }))) : (v2 && v2.forEach((function(t4) {
            t4.minX >= a2 && t4.minY >= u2 ? h2.Fme(t4, true, true) : (h2.Fme(t4), p2.gF(t4.minX, t4.minY, 1, 1));
          })), d2 && d2.forEach((function(t4) {
            var n4, s3, f3, l3, d3;
            if (t4.minX >= e3 && t4.minY >= i3) (n4 = { minX: t4.minX + a2 - e3, minY: t4.minY + u2 - i3, maxX: b(t4.maxX + a2 - e3, a2 + r2 - 1), maxY: b(t4.maxY + u2 - i3, u2 + o2 - 1), isValid: t4.isValid }).isValid || (n4.maxX = n4.minX, n4.maxY = n4.minY), h2 && h2.Gme(n4, true);
            else if (t4.isValid) for (s3 = b(t4.maxX, e3 + r2 - 1), f3 = b(t4.maxY, i3 + o2 - 1), l3 = y(t4.minX, e3); l3 <= s3; l3++) for (c2[l3] = c2[l3] || {}, d3 = y(t4.minY, i3); d3 <= f3; d3++) c2[l3][d3] = 1;
          }))), c2;
        }
        function nt(t3, n3, i3, r2, o2, a2, u2, s2, c2) {
          var f2 = e2("SheetsCalc");
          f2 && f2.CalcOperatorAdjustor.moveFormula(t3, n3, i3, r2, o2, a2, u2, s2, c2);
        }
        function et(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2 = {};
          if (t3 === n3 && t3.tables) for (c2 = T(e3, i3, r2, o2), f2 = T(a2, u2, r2, o2), h2 = (l2 = t3.tables).all(), d2 = void 0, l2.zB && (h2 = h2.concat(l2.zB)), v2 = 0, p2 = h2.length; v2 < p2; v2++) (d2 = (g2 = h2[v2]).VB ? g2.VB : g2.range()).containsRange(c2) && d2.containsRange(f2) ? Z(t3, c2, m2) : (d2.intersect(f2.row, f2.col, f2.rowCount, f2.colCount) || s2 && c2.containsRange(d2)) && Z(t3, d2, m2);
          return m2;
        }
        function it(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
          var h2 = "onCopyOrMoveRange", d2 = { srcSheet: t3, isMove: e3, fromRow: i3, fromCol: r2, toRow: o2, toCol: a2, rowCount: u2, colCount: s2, copyToOption: c2, bindingPathInfos: f2 };
          l.Worksheet.et(n3, h2, d2);
        }
        function rt(t3) {
          var n3 = [];
          return t3 && t3.forEach((function(t4) {
            n3.push.apply(n3, t4.ranges);
          })), n3;
        }
        function ot(t3, n3) {
          return new Promise((function(e3, i3) {
            var o2 = n3.src, u2 = n3.srcRow, s2 = n3.srcColumn, c2 = n3.dest, f2 = n3.destRow, l2 = n3.destColumn, d2 = n3.rowCount, v2 = n3.columnCount, p2 = n3.transpose, g2 = n3.pasteSpecialOptions, b2 = n3.command, y2 = n3.needStyle, w2 = n3.shiftOrExpandRange, M2 = g2.transformScope, C2 = g2.transformFormula, S2 = g2.skipBlanks, T2 = new r.Range(u2, s2, p2 ? v2 : d2, p2 ? d2 : v2), x2 = new r.Range(f2, l2, d2, v2);
            o2.evaluateFormulaByScope(T2, M2, C2, x2, p2, false, c2).then((function(n4) {
              var u3, s3, f3, l3, d3, v3, g3, C3, A2 = b2._shiftCells, I2 = { sheet: c2, sheetName: c2.name(), cellRange: n4.selection, pasteOption: b2.pasteOption, pasteData: { text: b2.pasteExtent.clipboardText, html: b2.pasteExtent.clipboardHtml }, shiftCells: A2, fromSheet: o2, fromRange: T2, isCutting: false, cancel: false, action: a.ClipboardActionType.copy };
              if (c2.ki(r.Events.ClipboardPasting, I2), I2.cancel) i3();
              else if (c2.suspendCalcService(), c2.suspendEvent(), c2.suspendPaint(), f3 = w2(n4.selection)) i3({ invalidType: f3.invalidType, message: f3.message });
              else {
                for (l3 = c2.transformCells(x2, M2, n4, p2, S2, t3.skipBlankCache, true, (function(n5) {
                  y2 && t3.copyMoveStyle({}, n5);
                })), c2.resumePaint(), c2.resumeEvent(), c2.resumeCalcService(), h.Commands.xI(o2.parent.i4(), b2), null === (u3 = null == c2 ? void 0 : c2.endBatchOp) || void 0 === u3 || u3.call(c2), null === (s3 = null == o2 ? void 0 : o2.endBatchOp) || void 0 === s3 || s3.call(o2), d3 = c2.getSelections()[0], v3 = [], g3 = 0; g3 < c2.getSelections()[0].rowCount; g3++) for (C3 = 0; C3 < c2.getSelections()[0].colCount; C3++) v3.push({ row: c2.getSelections()[0].row + g3, col: c2.getSelections()[0].col + C3 });
                h.Commands.SI(c2, d3.row, d3.col, d3.rowCount, d3.colCount, v3, 3, [], m), e3(l3);
              }
            })).catch((function(t4) {
              t4.invalidType ? null == c2 || c2.jT(t4.invalidType, t4.message) : null == c2 || c2.jT(1, t4), h.Commands.xI(o2.parent.i4(), b2), c2.getParent().undoManager().Nmt.pop(), i3(t4);
            }));
          }));
        }
        function at(t3, n3, i3, r2, o2, u2, c2, f2, h2, v2, p2, m2, w2) {
          var M2, C2, S2, x2, I2, k2, D2, _2, O2, E2, R2, L2, F2, B2, P2, U2, V2, z2, Z2, W2, Q2, J2, X2, $2, tt2, at2, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt = { cancel: false, src: t3, isMove: h2, dest: r2, srcRow: n3, srcColumn: i3, destRow: o2, destColumn: u2, rowCount: c2, columnCount: f2, copyToOption: v2.copyToOption }, Dt = (null === (M2 = v2.pasteSpecialOptions) || void 0 === M2 ? void 0 : M2.operationOptions) === a.PasteOperationOptions.transform;
          if (l.Worksheet.et(r2, "copyOrMoveTo", jt), !jt.cancel) {
            if (I2 = v2.copyToOption, k2 = v2.ignoreFilteredOutRow, D2 = v2.ignorePasteSkipInvisibleRange, _2 = v2.pasteSpecialOptions, O2 = v2.needHideFormula, v2.skipRangeCheck || H(t3, n3, i3, r2, o2, u2, c2, f2, null == _2 ? void 0 : _2.transpose, Dt), F2 = null == _2 ? void 0 : _2.pasteLink, ((null == _2 ? void 0 : _2.operationOptions) || (null == _2 ? void 0 : _2.transpose)) && (B2 = { operationOptions: (null == _2 ? void 0 : _2.operationOptions) ? { option: null == _2 ? void 0 : _2.operationOptions, useValue: (1 & I2) > 0 && (2 & I2) <= 0 } : void 0, transpose: _2.transpose }), P2 = null === (C2 = null == _2 ? void 0 : _2.advancedPasteOptions) || void 0 === C2 ? void 0 : C2.validator, U2 = new A(t3, r2, n3, i3, o2, u2, c2, f2, h2, v2), V2 = null === (S2 = null == _2 ? void 0 : _2.advancedPasteOptions) || void 0 === S2 ? void 0 : S2.columnWidth, z2 = null === (x2 = null == _2 ? void 0 : _2.advancedPasteOptions) || void 0 === x2 ? void 0 : x2.numberFormats, F2 && (I2 = 0), (null == B2 ? void 0 : B2.operationOptions) && (I2 &= ~a.CopyToOptions.value, I2 |= a.CopyToOptions.formula), (1 & I2) > 0 && (2 & I2) > 0 && (W2 = t3.pivotTables) && (Z2 = W2.KB(T(y(0, n3), y(0, i3), n3 < 0 ? b(N(t3), N(r2)) : c2, i3 < 0 ? b(j(t3), j(r2)) : f2), h2)), Q2 = rt(Z2), U2.$Ur(Q2), (1 & I2) > 0 && (2 & I2) > 0 && t3.isReportTemplateSheet && (J2 = t3.wwr(T(y(0, n3), y(0, i3), n3 < 0 ? b(N(t3), N(r2)) : c2, i3 < 0 ? b(j(t3), j(r2)) : f2), h2)), h2 && r2.UB && n3 < 0) for (R2 = i3, L2 = f2, i3 < 0 && (R2 = 0, L2 = b(j(t3), j(r2))), X2 = u2, u2 < 0 && (X2 = 0), E2 = true, $2 = 0; $2 < L2; $2++) tt2 = t3.Ut.q_(false, 3, R2 + $2), at2 = t3.Ut.q_(false, 3, X2 + $2), ut = tt2 && tt2.name, st = at2 && at2.name, tt2 && at2 && ut && st || (E2 = false), (at2 = s.GC$.extend(true, {}, r2.Ut.q_(false, 3, X2 + $2) || {})).displayName = tt2 && tt2.displayName, at2.name = tt2 && tt2.name, r2.Ut.do("setItem", false, 3, X2 + $2, at2);
            ((64 & I2) > 0 || P2) && !(null == p2 ? void 0 : p2.ignoreValidator) && (U2.copyMoveMultiColumnPrecedents(), t3.b8 && U2.copyMoveValidator()), (64 & I2) > 0 && (ct = et(t3, r2, n3, i3, c2, f2, o2, u2, h2)), (512 & I2) > 0 && !Dt && U2.copyOrMoveConditionalFormat(), (1 & I2) > 0 && (2 & I2) > 0 && (lt = t3.tables) && (ft = lt.KB(T(y(0, n3), y(0, i3), n3 < 0 ? b(N(t3), N(r2)) : c2, i3 < 0 ? b(j(t3), j(r2)) : f2), h2)), (1 & I2) > 0 && (dt = t3.dataRanges) && !dt.isEmpty() && (ht = dt.onCopyOrMoving(T(y(0, n3), y(0, i3), n3 < 0 ? b(N(t3), N(r2)) : c2, i3 < 0 ? b(j(t3), j(r2)) : f2), h2)), (vt = d) && (t3.suspendCalcService(), r2.suspendCalcService()), pt = [], gt = g, mt = [], (256 & I2) > 0 && (pt = (gt = U2.copyMoveBindingPath()).savedValues, mt = gt.bindingPathInfos), (2048 & I2) > 0 && (bt = U2.copyMoveDefaultValue(), h2 && bt && q(t3, n3, i3, r2, o2, u2, c2, f2, bt));
            try {
              if (F2 && U2.copyCellLink(), yt = r2.dataRanges, (1 & I2) > 0 && yt && yt.onCopyOrMoved(ht, y(0, n3), y(0, i3), y(0, o2), y(0, u2), h2, jt.dataRangeCopyResults), wt = r2.pivotTables, Mt = void 0, (1 & I2) > 0 && (2 & I2) > 0 && wt && (Mt = true, wt.JB(Z2, t3, y(0, n3), y(0, i3), r2, y(0, o2), y(0, u2), c2, f2, h2)), (1 & I2) > 0 && (2 & I2) > 0 && r2.isReportTemplateSheet && r2.Mwr(J2, y(0, n3), y(0, i3), y(0, o2), y(0, u2), h2), (1 & I2) > 0 && !E2) {
                if (!d || 2 & I2 || r2.clearFormula(o2, u2, c2, f2, (function(t4, n4) {
                  return !k2 || !t4.XT || !t4.XT(n4);
                })), h2 ? U2.moveValue() : U2.copyValue(), (256 & I2) > 0) for (Y(mt, h2), Ct = pt.length, St = o2 < 0 ? 0 : o2, Tt = u2 < 0 ? 0 : u2, xt = 0; xt < Ct; xt++) At = pt[xt], !h2 && G(St + At.row, k2, r2) || r2.setValue(St + At.row, Tt + At.col, At.value);
              } else (256 & I2) > 0 && Y(mt, h2);
              if (((64 & I2) > 0 || z2) && !Dt && U2.copyMoveStyle(ct), It = r2.tables, (1 & I2) > 0 && (2 & I2) > 0 && It && It.JB(ft, y(0, n3), y(0, i3), y(0, o2), y(0, u2), h2), d) {
                if (h2) K(t3, n3, i3, r2, o2, u2, c2, f2, v2.tableExpand), (2 & I2) > 0 && nt(t3, n3, i3, r2, o2, u2, c2, f2, v2.tableExpand);
                else if ((2 & I2) > 0 && (kt = e2("SheetsCalc"))) {
                  if (Dt) return ot(U2, Nt = { src: t3, srcRow: n3, srcColumn: i3, dest: r2, destRow: o2, destColumn: u2, rowCount: c2, columnCount: f2, transpose: null == B2 ? void 0 : B2.transpose, pasteSpecialOptions: _2, command: m2, needStyle: (64 & I2) > 0 || z2, shiftOrExpandRange: w2 });
                  kt.XB(t3, n3, i3, r2, o2, u2, c2, f2, k2, D2, true, B2, O2);
                }
              }
              (4 & I2) > 0 && U2.copyMoveComment(), (128 & I2) > 0 && U2.copyMoveTag(), (1024 & I2) > 0 && U2.copyMoveHyperlink(), (4096 & I2) > 0 && U2.copyMoveAltText(), Mt && wt.zQr(Z2, h2);
            } finally {
              vt && (t3.resumeCalcService(false), r2.resumeCalcService(false));
            }
            if ((16 & I2) > 0 && U2.copyOrMoveSparkline(), (8 & I2) > 0 && (n3 < 0 && U2.copyOrMoveColumnRangeGroup(), i3 < 0 && U2.copyOrMoveRowRangeGroup()), (32 & I2) > 0 && (h2 || 1 !== c2 || 1 !== f2) && U2.copyOrMoveSpan(), n3 < 0 && o2 <= 0 && U2.copyOrMoveColumnAxis(), i3 < 0 && u2 <= 0 && U2.copyOrMoveRowAxis(), n3 < 0 && o2 <= 0 && i3 < 0 && u2 <= 0 && U2.copyOrMoveSheetInfo(), V2 && U2.copyColumnWidth(), h2 && t3.UB && n3 < 0) for (R2 = i3, L2 = f2, i3 < 0 && (R2 = 0, L2 = b(j(t3), j(r2))), $2 = 0; $2 < L2; $2++) t3.getDataColumnName && t3.getDataColumnName(R2 + $2) && t3.Ut.do("setItem", false, 3, R2 + $2, g);
            it(t3, r2, h2, n3, i3, o2, u2, c2, f2, I2, mt);
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.staticMembers = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("./dist/core/util/common.js"), o = e2("Common"), a = e2("./dist/core/core.enum.js"), u = e2("CalcEngine"), s = e2("./dist/core/util/domUtil.js"), c = e2("./dist/core/worksheet/worksheet-model.js"), f = e2("./dist/core/worksheet/style.js"), l = e2("./dist/core/worksheet/worksheet.js"), h = e2("./dist/core/worksheet/worksheet-actions.js"), d = !!u, v = o.Common.lt.ht, p = s.GC$.each, g = null, m = void 0, b = Math.min, y = Math.max, w = "undefined" != typeof window ? window.File : g, M = "undefined" != typeof window ? window.Blob : g, C = new o.Common.ResourceManager(i2.SR, "Sheets"), S = C.getResource.bind(C), T = function(t3, n3, e3, i3, o2) {
          return new r.Range(t3, n3, o2 ? i3 : e3, o2 ? e3 : i3);
        }, x = function(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2, l2) {
          var h2, d2, p2, g2, m2, b2, y2 = l2.pasteSkipInvisibleRange, w2 = l2.sheetArea, M2 = s2, C2 = !(t3 === n3 && t3.name() === n3.name());
          if (C2) for (h2 = 0, d2 = 0; h2 < u2 && h2 < N(n3, w2); h2++) if (y2 && 0 === n3.getRowHeight(i3 + h2, w2)) u2++;
          else {
            for (s2 = M2, p2 = 0, g2 = 0; p2 < s2 && p2 < j(n3, w2); p2++) y2 && 0 === n3.getColumnWidth(a2 + p2, w2) ? s2++ : (f2(n3, i3 + h2, a2 + p2, V(m2 = c2(t3, e3 + d2, o2 + g2, w2)), w2, { sheet: t3, row: e3 + d2, col: o2 + g2 }), g2++);
            d2++;
          }
          else {
            for (b2 = new r.Rf(), h2 = 0; h2 < u2; h2++) for (p2 = 0; p2 < s2; p2++) m2 = c2(t3, e3 + h2, o2 + p2, w2), v(m2) || b2.set(h2, p2, V(m2));
            for (h2 = 0, d2 = 0; h2 < u2 && h2 < N(n3, w2); h2++) if (y2 && 0 === n3.getRowHeight(i3 + h2, w2)) u2++;
            else {
              for (s2 = M2, p2 = 0, g2 = 0; p2 < s2 && p2 < j(n3, w2); p2++) y2 && 0 === n3.getColumnWidth(a2 + p2, w2) ? s2++ : (f2(n3, i3 + h2, a2 + p2, b2.get(d2, g2), w2, { sheet: t3, row: e3 + d2, col: o2 + g2 }), g2++);
              d2++;
            }
          }
        }, A = (function() {
          function t3(t4, n3, e3, i3, o2, a2, u2, s2, c2, f2) {
            var l2;
            this.qUr = [], this.src = t4, this.dest = n3, this.srcRow = e3, this.srcColumn = i3, this.destRow = o2, this.destColumn = a2, this.copyRowCount = u2, this.copyColumnCount = s2, this.isMove = c2, this.options = f2, (null === (l2 = f2.pasteSpecialOptions) || void 0 === l2 ? void 0 : l2.skipBlanks) && (this.Lye = new r.Rf());
          }
          return Object.defineProperty(t3.prototype, "skipBlankCache", { get: function() {
            return this.Lye;
          }, enumerable: false, configurable: true }), t3.prototype.$Ur = function(t4) {
            var n3;
            (n3 = this.qUr).push.apply(n3, t4);
          }, t3.prototype.S2e = function(t4, n3, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2, y2, w2, M2, C2, S2, T2, A2, k2, D2, _2, O2, E2, R2, L2, F2, B2, P2, U2, H2, z2 = this, Y2 = z2.src, Z2 = z2.srcRow, W2 = z2.srcColumn, Q2 = z2.dest, K2 = z2.destRow, J2 = z2.destColumn, X2 = z2.copyRowCount, q2 = z2.copyColumnCount, $2 = I(I({}, this.options), e3), tt2 = $2.ignoreFilteredOutRow, nt2 = $2.copyPasteHeaders, et2 = $2.ignorePasteSkipInvisibleRange, it2 = !(Y2 === Q2 && Y2.name() === Q2.name()), rt2 = !et2 && Q2.o5(), ot2 = null === (a2 = $2.pasteSpecialOptions) || void 0 === a2 ? void 0 : a2.transpose;
            if (!(2 & ~nt2) && Z2 < 0 && (u2 = W2, s2 = J2, c2 = b(N(Y2, 1), N(Q2, 1)), f2 = q2, W2 < 0 && (u2 = 0, f2 = j(Y2)), J2 < 0 && (s2 = 0), x(Y2, Q2, 0, 0, u2, s2, c2, f2, t4, n3, { pasteSkipInvisibleRange: rt2, sheetArea: 1 })), !(1 & ~nt2) && W2 < 0 && (l2 = Z2, h2 = K2, c2 = X2, f2 = b(j(Y2, 2), j(Q2, 2)), Z2 < 0 && (l2 = 0, c2 = N(Y2)), K2 < 0 && (h2 = 0), x(Y2, Q2, l2, h2, 0, 0, c2, f2, t4, n3, { pasteSkipInvisibleRange: rt2, sheetArea: 2 })), d2 = Z2, p2 = W2, g2 = K2, m2 = J2, y2 = X2, w2 = q2, M2 = N(Q2), C2 = j(Q2), Z2 < 0 && (d2 = 0, y2 = b(N(Y2), M2)), W2 < 0 && (p2 = 0, w2 = b(j(Y2), C2)), K2 < 0 && (g2 = 0), J2 < 0 && (m2 = 0), S2 = w2, T2 = !i3 || i3.length < 1 ? function(t5, n4) {
              return false;
            } : function(t5, n4) {
              return i3.some((function(e4) {
                return t5 >= e4.row && t5 < e4.row + e4.rowCount && n4 >= e4.col && n4 < e4.col + e4.colCount;
              }));
            }, it2) for (A2 = 0, k2 = 0; k2 < y2 && g2 + k2 < M2; k2++) if (rt2 && 0 === Q2.getRowHeight(g2 + k2)) y2++;
            else if (G(g2 + k2, tt2, Q2)) A2++;
            else {
              for (w2 = S2, D2 = 0, _2 = 0; _2 < w2 && m2 + _2 < C2; _2++) if (rt2 && 0 === Q2.getColumnWidth(m2 + _2)) w2++;
              else if (T2(O2 = d2 + (ot2 ? D2 : A2), E2 = p2 + (ot2 ? A2 : D2))) D2++;
              else {
                if (R2 = t4(Y2, O2, E2, 3), o2) {
                  if (L2 = "".concat(g2 + k2, "-").concat(m2 + _2), null == o2 ? void 0 : o2[L2]) {
                    for (F2 = o2[L2], B2 = 0; B2 < F2.rowCount; B2++) if (!rt2 || 0 !== Q2.getRowHeight(F2.row + B2)) for (P2 = 0; P2 < F2.colCount; P2++) rt2 && 0 === Q2.getColumnWidth(F2.col + P2) || n3(Q2, F2.row + B2, F2.col + P2, V(R2), 3, { sheet: Y2, row: O2, col: E2 });
                  }
                } else n3(Q2, g2 + k2, m2 + _2, V(R2), 3, { sheet: Y2, row: O2, col: E2 });
                D2++;
              }
              A2++;
            }
            else {
              U2 = new r.Rf();
              try {
                for (k2 = 0; k2 < y2; k2++) for (_2 = 0; _2 < w2; _2++) R2 = t4(Y2, O2 = d2 + (ot2 ? _2 : k2), E2 = p2 + (ot2 ? k2 : _2), 3), v(R2) || U2.set(k2, _2, V(R2));
                for (A2 = 0, k2 = 0; k2 < y2 && g2 + k2 < M2; k2++) if (rt2 && 0 === Q2.getRowHeight(g2 + k2)) y2++;
                else if (G(g2 + k2, tt2, Q2)) A2++;
                else {
                  for (w2 = S2, D2 = 0, _2 = 0; _2 < w2 && m2 + _2 < C2; _2++) if (rt2 && 0 === Q2.getColumnWidth(m2 + _2)) w2++;
                  else if (T2(d2 + (ot2 ? _2 : k2), p2 + (ot2 ? k2 : _2))) D2++;
                  else {
                    if (L2 = "".concat(g2 + k2, "-").concat(m2 + _2), H2 = U2.get(A2, D2), o2) {
                      if (null == o2 ? void 0 : o2[L2]) {
                        for (F2 = o2[L2], B2 = 0; B2 < F2.rowCount; B2++) if (!rt2 || 0 !== Q2.getRowHeight(F2.row + B2)) for (P2 = 0; P2 < F2.colCount; P2++) rt2 && 0 === Q2.getColumnWidth(F2.col + P2) || n3(Q2, F2.row + B2, F2.col + P2, H2, 3, { sheet: Y2, row: d2 + (ot2 ? _2 : k2), col: p2 + (ot2 ? k2 : _2) });
                      }
                    } else n3(Q2, g2 + k2, m2 + _2, H2, 3, { sheet: Y2, row: d2 + (ot2 ? _2 : k2), col: p2 + (ot2 ? k2 : _2) });
                    D2++;
                  }
                  A2++;
                }
              } catch (t5) {
              }
            }
          }, t3.prototype.copyOrMoveConditionalFormat = function() {
            var t4, n3, e3 = this, i3 = e3.src, r2 = e3.dest, o2 = e3.srcRow, a2 = e3.srcColumn, u2 = e3.destRow, s2 = e3.destColumn, c2 = e3.copyRowCount, f2 = e3.copyColumnCount, l2 = e3.isMove, h2 = this.options.ignorePasteSkipInvisibleRange, d2 = null === (t4 = this.options.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, v2 = i3.conditionalFormats, p2 = r2.conditionalFormats, g2 = W(i3, r2);
            v2 && p2 && !i3.EB && (n3 = v2.jB(o2, a2, p2, u2, s2, c2, f2, g2, h2, d2), l2 && v2.OB(o2, a2, c2, f2, n3, g2));
          }, t3.prototype.copyOrMoveSparkline = function() {
            var t4, n3, e3 = this, i3 = e3.src, r2 = e3.dest, o2 = e3.srcRow, a2 = e3.srcColumn, u2 = e3.destRow, s2 = e3.destColumn, c2 = e3.copyRowCount, f2 = e3.copyColumnCount, l2 = e3.isMove, h2 = this.options.ignorePasteSkipInvisibleRange;
            o2 < 0 && (o2 = 0, c2 = b(N(i3), N(r2))), u2 < 0 && (u2 = 0), a2 < 0 && (a2 = 0, f2 = b(j(i3), j(r2))), s2 < 0 && (s2 = 0), (t4 = !(i3 === r2 && i3.name() === r2.name())) ? (n3 = r2.RB) && (l2 ? i3.RB.count() > 0 && n3.BB(i3, o2, a2, u2, s2, c2, f2) : n3.LB(i3, o2, a2, u2, s2, c2, f2, m, h2)) : (n3 = i3.RB) && (l2 ? n3.count() > 0 && n3.iE(o2, a2, u2, s2, c2, f2) : n3.tE(o2, a2, u2, s2, c2, f2, m, h2));
          }, t3.prototype.copyOrMoveColumnRangeGroup = function() {
            var t4, n3, e3, i3 = this, r2 = i3.src, o2 = i3.srcColumn, a2 = i3.dest, u2 = i3.destColumn, s2 = i3.copyColumnCount, c2 = i3.isMove;
            o2 < 0 && (o2 = 0, s2 = b(j(r2), j(a2))), u2 < 0 && (u2 = 0), t4 = r2.columnOutlines, n3 = a2.columnOutlines, (e3 = !(r2 === a2 && r2.name() === a2.name())) ? t4 && n3 && (n3.FB(t4, o2, u2, s2, c2), n3.Oy() && (n3.x2t = n3.items.every((function(t5) {
              return v(t5);
            })), n3.refresh())) : t4 && t4.PB(o2, u2, s2, c2);
          }, t3.prototype.copyOrMoveRowRangeGroup = function() {
            var t4, n3, e3, i3 = this, r2 = i3.src, o2 = i3.srcRow, a2 = i3.dest, u2 = i3.destRow, s2 = i3.copyRowCount, c2 = i3.isMove;
            o2 < 0 && (o2 = 0, s2 = b(N(r2), N(a2))), u2 < 0 && (u2 = 0), t4 = !(r2 === a2 && r2.name() === a2.name()), n3 = r2.rowOutlines, e3 = a2.rowOutlines, t4 ? n3 && e3 && (e3.FB(n3, o2, u2, s2, c2), e3.Oy() && (e3.x2t = e3.items.every((function(t5) {
              return v(t5);
            })), e3.refresh())) : n3 && n3.PB(o2, u2, s2, c2);
          }, t3.prototype.copyOrMoveSpan = function() {
            var t4, n3 = this, e3 = n3.src, i3 = n3.srcRow, r2 = n3.srcColumn, o2 = n3.dest, u2 = n3.destRow, s2 = n3.destColumn, c2 = n3.copyRowCount, f2 = n3.copyColumnCount, l2 = n3.isMove, h2 = null === (t4 = this.options.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.transpose, d2 = i3, v2 = r2;
            d2 < 0 && (d2 = 0, c2 = b(N(e3), N(o2))), u2 < 0 && (u2 = 0), v2 < 0 && (v2 = 0, f2 = b(j(e3), j(o2))), s2 < 0 && (s2 = 0), i3 < 0 && $(e3, -1, v2, o2, -1, s2, -1, f2, l2, 1, h2), r2 < 0 && $(e3, d2, -1, o2, u2, -1, c2, -1, l2, 2, h2), $(e3, d2, v2, o2, u2, s2, c2, f2, l2, a.SheetArea.viewport, h2);
          }, t3.prototype.copyOrMoveColumnAxis = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, p2, y2, w2, M2, C2 = this, S2 = C2.src, T2 = C2.srcColumn, x2 = C2.dest, A2 = C2.destColumn, I2 = C2.copyColumnCount, k2 = C2.isMove, L2 = this.options, F2 = L2.copyToOption, P2 = L2.ignorePasteSkipInvisibleRange, G2 = L2.ignoreSheet;
            for (T2 < 0 && (T2 = 0, I2 = b(j(S2), j(x2))), t4 = I2, A2 < 0 && (A2 = 0), n3 = !P2 && x2.o5(), e3 = 1, i3 = [], r2 = 0, o2 = 0; r2 < I2 && r2 < j(x2, e3); r2++) n3 && 0 === x2.getColumnWidth(A2 + r2) ? I2++ : (u2 = {}, (64 & F2) > 0 && (s2 = D(S2, o2 + T2), v(s2) || (u2.size = s2, k2 && O(S2, r2 + T2, S2.defaults.colWidth)), c2 = S2.Iao(o2 + T2, false), v(c2) || (u2.visible = c2, k2 && S2.setColumnVisible(r2 + T2, true)), f2 = R(S2, -1, o2 + T2, m, G2), u2.style = f2, k2 && B(S2, -1, r2 + T2, g), f2 = R(S2, -1, o2 + T2, e3, G2), u2.headerStyle = f2, k2 && B(S2, -1, r2 + T2, g, e3), l2 = S2.Lt(o2 + T2), v(l2) || (u2.columnHeaderFitMode = l2, k2 && S2.GB(r2 + T2, a.ColumnHeaderFitMode.normal))), (128 & F2) > 0 && (h2 = S2.getTag(-1, o2 + T2), v(h2) || (u2.tag = h2, k2 && S2.setTag(-1, r2 + T2, m))), i3[o2 + T2] = u2, o2++);
            for (I2 = t4, r2 = 0, o2 = 0; r2 < I2 && r2 < j(x2, e3); r2++) n3 && 0 === x2.getColumnWidth(A2 + r2) ? I2++ : (u2 = i3[o2 + T2], (64 & F2) > 0 && (s2 = u2.size, v(s2) || O(x2, r2 + A2, s2), c2 = u2.visible, v(c2) || x2.setColumnVisible(r2 + A2, c2), B(x2, -1, r2 + A2, (f2 = u2.style) ? f2.clone() : g), B(x2, -1, r2 + A2, (f2 = u2.headerStyle) ? f2.clone() : g, e3), l2 = u2.columnHeaderFitMode, v(l2) || x2.GB(r2 + A2, l2)), (128 & F2) > 0 && (h2 = u2.tag, v(h2) || x2.setTag(-1, r2 + A2, h2)), o2++);
            for (d2 = N(x2, e3), p2 = b(N(S2, e3), d2), y2 = 0, w2 = 0; y2 < p2 && y2 < d2; y2++) n3 && 0 === x2.getRowHeight(y2, e3) ? p2++ : (M2 = _(S2, w2, e3), v(M2) || (k2 && E(S2, y2, S2.defaults.colHeaderRowHeight, e3), E(x2, y2, M2, e3)), w2++);
          }, t3.prototype.copyOrMoveRowAxis = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, p2, y2, w2, M2, C2, S2 = this, T2 = S2.src, x2 = S2.srcRow, A2 = S2.dest, I2 = S2.destRow, k2 = S2.copyRowCount, L2 = S2.isMove, F2 = this.options, P2 = F2.copyToOption, U2 = F2.ignoreFilteredOutRow, H2 = F2.ignorePasteSkipInvisibleRange, V2 = F2.ignoreSheet;
            for (x2 < 0 && (x2 = 0, k2 = b(N(T2), N(A2))), t4 = k2, I2 < 0 && (I2 = 0), n3 = !H2 && A2.o5(), e3 = 2, i3 = [], r2 = 0, o2 = 0; r2 < k2 && I2 + r2 < N(A2, e3); r2++) n3 && 0 === A2.getRowHeight(I2 + r2) ? k2++ : L2 || !G(I2 + r2, U2, A2) ? (u2 = {}, (64 & P2) > 0 && (s2 = _(T2, o2 + x2), v(s2) || (u2.size = s2, L2 && E(T2, r2 + x2, T2.defaults.rowHeight)), c2 = T2.Iao(o2 + x2, true, a.SheetArea.viewport, true), v(c2) || (u2.visible = c2, L2 && T2.setRowVisible(r2 + x2, true)), f2 = R(T2, o2 + x2, -1, m, V2), u2.style = f2, L2 && B(T2, r2 + x2, -1, g), f2 = R(T2, o2 + x2, -1, e3, V2), u2.headerStyle = f2, L2 && B(T2, r2 + x2, -1, g, e3)), (128 & P2) > 0 && (l2 = T2.getTag(o2 + x2, -1), v(l2) || (u2.tag = l2, L2 && T2.setTag(r2 + x2, -1, m))), i3[o2 + x2] = u2, o2++) : o2++;
            for (k2 = t4, h2 = A2.rowFilter && A2.rowFilter() && A2.rowFilter().extendedRange, r2 = 0, o2 = 0; r2 < k2 && I2 + r2 < N(A2, e3); r2++) d2 = I2 + r2, n3 && 0 === A2.getRowHeight(d2) ? k2++ : L2 || !G(d2, U2, A2) ? (u2 = i3[o2 + x2], (64 & P2) > 0 && (s2 = u2.size, v(s2) || E(A2, d2, s2), c2 = u2.visible, v(c2) || (h2 && h2.intersect(d2, -1, 1, 0) ? A2.filterRowsVisibleInfo.rowsVisibleInfo[d2] = !!c2 : A2.getRowVisible(d2) !== c2 && A2.setRowVisible(d2, c2)), B(A2, d2, -1, (f2 = u2.style) ? f2.clone() : g), B(A2, d2, -1, (f2 = u2.headerStyle) ? f2.clone() : g, e3)), (128 & P2) > 0 && (l2 = u2.tag, v(l2) || A2.setTag(d2, -1, l2)), o2++) : o2++;
            for (p2 = j(A2, e3), y2 = b(j(T2, e3), p2), w2 = 0, M2 = 0; w2 < y2 && w2 < p2; w2++) n3 && 0 === A2.getColumnWidth(w2, e3) ? y2++ : (C2 = D(T2, M2, e3), v(C2) || (L2 && O(T2, w2, T2.defaults.rowHeaderColWidth, e3), O(A2, w2, C2, e3)), M2++);
          }, t3.prototype.copyOrMoveSheetInfo = function() {
            var t4, n3, e3, i3 = this, r2 = i3.src, o2 = i3.dest, a2 = i3.isMove, u2 = this.options.copyToOption;
            r2 === o2 && r2.name() === o2.name() || ((64 & u2) > 0 && (t4 = L(r2), F(o2, a2 ? t4 : t4.clone()), t4 = L(r2, 1), F(o2, a2 ? t4 : t4.clone(), 1), t4 = L(r2, 2), F(o2, a2 ? t4 : t4.clone(), 2), a2 && (F(r2, g), F(r2, g, 1), F(r2, g, 2))), n3 = o2.defaults, e3 = r2.defaults, n3.colWidth = e3.colWidth, n3.rowHeight = e3.rowHeight, n3.rowHeaderColWidth = e3.rowHeaderColWidth, n3.colHeaderRowHeight = e3.colHeaderRowHeight, a2 && (e3.colWidth = 62, e3.rowHeight = 20, e3.rowHeaderColWidth = 40, e3.colHeaderRowHeight = 20));
          }, t3.prototype.copyValue = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = this, u2 = a2.src, s2 = a2.srcRow, c2 = a2.srcColumn, f2 = a2.dest, l2 = a2.destRow, h2 = a2.destColumn, p2 = a2.copyRowCount, b2 = a2.copyColumnCount, y2 = this.options, w2 = y2.copyToOption, M2 = y2.treatRichTextAsNormal, C2 = null === (t4 = this.options.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.skipBlanks, S2 = null === (n3 = this.options.pasteSpecialOptions) || void 0 === n3 ? void 0 : n3.transpose, T2 = (2 & w2) > 0;
            T2 && d && (e3 = tt.apply(void 0, k(k([u2, f2, s2, c2], U(p2, b2, S2), false), [l2, h2], false))), i3 = function(t5, n4, i4, r3) {
              var o3, a3, u3, s3, c3 = 3 === r3, l3 = M2 ? 0 : 1, h3 = t5.Ut;
              return c3 ? o3 = e3 && e3[n4] && e3[n4][i4] ? m : t5.getValueIgnoreDefault(n4, i4, r3, l3, void 0, true) : (o3 = h3.getValue(n4, i4, r3, true, l3), 1 === r3 && v(o3) && f2.UB && (a3 = t5.H3) && a3._dataSource && (u3 = h3.q_(false, 3, i4), s3 = t5.options.colHeaderAutoTextIndex, u3 && (s3 >= 0 && n4 === s3 || -1 === s3 && n4 === N(t5, r3) - 1) && (o3 = u3.displayName || u3.name))), o3;
            }, r2 = function(t5, n4, e4, i4, r3) {
              v(i4) ? C2 ? o2.Lye.set(n4, e4, true) : t5.YI(n4, e4, g, r3, !!t5.HB, true, true) : v(i4) || t5.YI(n4, e4, i4, r3, !!t5.HB, true, true);
            }, this.S2e(i3, r2, void 0, this.qUr);
          }, t3.prototype.moveValue = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.src, s2 = a2.srcRow, c2 = a2.srcColumn, f2 = a2.dest, l2 = a2.destRow, h2 = a2.destColumn, p2 = a2.copyRowCount, w2 = a2.copyColumnCount, M2 = this.options, C2 = M2.copyToOption, S2 = M2.treatRichTextAsNormal, T2 = (2 & C2) > 0, x2 = {}, A2 = {}, I2 = [];
            T2 && d && (t4 = u2.Uw(3).t8, n3 = f2.Uw(3).t8, (e3 = t4 && t4.Rme(s2, c2, p2, w2)).forEach((function(n4) {
              var e4, i4, r3, o3, a3, f3;
              if (n4.minX >= s2 && n4.minY >= c2) if (!n4.isValid || n4.maxX < s2 + p2 && n4.maxY < c2 + w2) I2.push(n4);
              else {
                for (e4 = [], i4 = n4.minX; i4 <= n4.maxX; i4++) for (r3 = [], e4.push(r3), o3 = n4.minY; o3 <= n4.maxY; o3++) r3.push(u2.getValueIgnoreDefault(i4, o3, 3));
                I2.push(n4), n4._v = e4, t4.Fme(n4, false, true);
              }
              else if (n4.isValid) for (a3 = b(n4.maxX, s2 + p2 - 1), f3 = b(n4.maxY, c2 + w2 - 1), i4 = y(n4.minX, s2); i4 <= a3; i4++) for (x2[i4] = x2[i4] || {}, o3 = y(n4.minY, c2); o3 <= f3; o3++) x2[i4][o3] = 1;
              else t4.b3().gF(n4.minX, n4.minY, 1, 1);
            })), (i3 = n3 && n3.Rme(l2, h2, p2, w2)).forEach((function(t5) {
              var e4, i4, r3, o3;
              if (!(I2.indexOf(t5) >= 0)) {
                if (t5.minX >= l2 && t5.minY >= h2) n3.Fme(t5, true, true, true);
                else if (t5.isValid) for (e4 = b(t5.maxX, l2 + p2 - 1), i4 = b(t5.maxY, h2 + w2 - 1), r3 = y(t5.minX, l2); r3 <= e4; r3++) for (A2[r3] = A2[r3] || {}, o3 = y(t5.minY, h2); o3 <= i4; o3++) A2[r3][o3] = t5;
              }
            }))), r2 = function(t5, n4, e4, i4) {
              var r3, o3, a3, u3, s3 = 3 === i4, c3 = S2 ? 0 : 1, l3 = t5.Ut;
              return s3 ? r3 = x2 && x2[n4] && x2[n4][e4] ? m : t5.getValueIgnoreDefault(n4, e4, i4, c3, m, true) : (r3 = l3.getValue(n4, e4, i4, true, c3), 1 === i4 && v(r3) && f2.UB && (o3 = t5.H3) && o3._dataSource && (a3 = l3.q_(false, 3, e4), u3 = t5.options.colHeaderAutoTextIndex, a3 && (u3 >= 0 && n4 === u3 || -1 === u3 && n4 === N(t5, i4) - 1) && (r3 = a3.displayName || a3.name))), v(r3) || (s3 ? t5.YI(n4, e4, g, i4, false, true, true) : l3.do("setValue", n4, e4, g, i4, true, true)), r3;
            }, o2 = function(t5, e4, i4, r3, o3) {
              var a3 = A2 && A2[e4] && A2[e4][i4];
              v(r3) ? a3 && a3.isValid || t5.YI(e4, i4, g, o3, !!t5.HB, true, true) : (a3 && a3.isValid && n3.Fme(a3, true, u2.Ut.G8), t5.YI(e4, i4, r3, o3, !!t5.HB, true, true));
            }, this.S2e(r2, o2, void 0, this.qUr), (I2 = I2.map((function(n4) {
              t4.Pme(n4, true);
              var e4 = { minX: n4.minX + l2 - s2, minY: n4.minY + h2 - c2, maxX: n4.maxX + l2 - s2, maxY: n4.maxY + h2 - c2, _v: n4._v, isValid: n4.isValid };
              return n4._v = null, e4;
            }))).forEach((function(t5) {
              t5._v ? n3.setArray(t5.minX, t5.minY, t5.maxX - t5.minX + 1, t5.maxY - t5.minY + 1, t5._v, false, true) : n3.Gme(t5, true);
            }));
          }, t3.prototype.copyMoveStyle = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.isMove, a2 = r2.options.ignoreSheet, u2 = null === (e3 = r2.options.pasteSpecialOptions) || void 0 === e3 ? void 0 : e3.skipBlanks, s2 = null === (i3 = r2.options.pasteSpecialOptions) || void 0 === i3 ? void 0 : i3.advancedPasteOptions, c2 = null == s2 ? void 0 : s2.usingSourceTheme, h2 = null == s2 ? void 0 : s2.noBorder, d2 = null == s2 ? void 0 : s2.numberFormats, p2 = function(n4, e4, i4, r3) {
              var u3, s3 = (3 === r3 || v(r3)) && t4 && t4[e4] && t4[e4][i4], f2 = n4.Z_(e4, i4, r3, m, { isCopy: true });
              return c2 ? (u3 = n4.getActualStyle(e4, i4, r3, m, { notClone: m, isForFilter: m, ignoreSheet: a2, isCopy: true })) && (delete u3.themeFont, f2 || delete u3.parentName) : (u3 = n4.getCompositeStyle(e4, i4, r3, m, m, m, { hasTableStyle: s3, ignoreSheet: a2, isCopy: true })) && !f2 && delete u3.parentName, o2 && u3 && B(n4, e4, i4, g, r3), u3;
            }, b2 = function(t5, n4, e4, i4, a3, s3) {
              var c3, v2, p3, g2, m2, b3, y2, w2, M2, C2, S2;
              u2 && r2.Lye.get(n4, e4) || (d2 && (c3 = i4.formatter, (i4 = t5.getStyle(n4, e4)) || (i4 = new f.Style()), i4.formatter = c3), h2 && (p3 = (v2 = t5.getCompositeStyle(n4, e4)).diagonalUp, g2 = v2.diagonalDown, m2 = v2.borderTop, b3 = v2.borderBottom, y2 = v2.borderLeft, w2 = v2.borderRight, M2 = v2.borderHorizontal, C2 = v2.borderVertical, Object.assign(i4, { diagonalUp: p3, diagonalDown: g2, borderTop: m2, borderBottom: b3, borderLeft: y2, borderRight: w2, borderHorizontal: M2, borderVertical: C2 })), B(t5, n4, e4, i4, a3), S2 = { target: { sheet: t5, row: n4, col: e4 }, source: s3, isMove: o2 }, l.Worksheet.et(t5, "afterCopyMoveStyle", S2));
            };
            r2.S2e(p2, b2, void 0, r2.qUr, n3);
          }, t3.prototype.moveValidator = function() {
            var t4, n3, e3, i3, o2, a2 = this, u2 = a2.src, s2 = a2.srcRow, c2 = a2.srcColumn, f2 = a2.copyRowCount, l2 = a2.copyColumnCount, h2 = a2.destRow, d2 = a2.destColumn, v2 = new r.Range(s2, c2, f2, l2), p2 = new r.Range(h2, d2, f2, l2), g2 = u2.b8.zYr([v2, p2]);
            0 !== g2.size && (o2 = u2.b8.YB, null === (n3 = (t4 = u2.Ut).b6t) || void 0 === n3 || n3.call(t4), u2.b8.d5(), g2.forEach((function(t5) {
              var n4, e4, i4, o3, a3, u3, g3 = t5._S;
              g3 && (n4 = void 0, t5.rge || 1 !== g3.length || ((e4 = g3[0]).isInner(s2, c2, f2, l2) ? n4 = new r.Range(e4.row + h2 - s2, e4.col + d2 - c2, e4.rowCount, e4.colCount) : s2 === h2 && d2 > c2 && v2.contains(e4.row, e4.col + e4.colCount - 1, e4.rowCount, 1) && c2 > e4.col ? (i4 = e4.colCount + d2 - c2, n4 = new r.Range(e4.row, e4.col, e4.rowCount, i4)) : c2 === d2 && h2 > s2 && v2.contains(e4.row + e4.rowCount - 1, e4.col, 1, e4.colCount) && s2 > e4.row && (o3 = e4.rowCount + h2 - s2, n4 = new r.Range(e4.row, e4.col, o3, e4.colCount))), n4 ? t5._S = [n4] : (a3 = [], g3.map((function(t6) {
                var n5, e5 = t6.getIntersect(v2);
                e5 ? (n5 = [], t6.Qui(e5, n5), a3.push(e5.offset(d2 - c2, h2 - s2))) : n5 = [t6], n5.forEach((function(t7) {
                  t7.Qui(p2, a3);
                }));
              })), t5._S = a3), (u3 = t5.condition()) && u3.ranges(t5._S));
            })), u2.b8.YB = o2, u2.b8.C8(), null === (i3 = (e3 = u2.Ut).b6t) || void 0 === i3 || i3.call(e3, true));
          }, t3.prototype.copyMoveValidator = function() {
            var t4, n3, e3, i3, a2, u2, s2, c2, f2 = this, l2 = f2.src, h2 = f2.srcRow, d2 = f2.srcColumn, v2 = f2.dest, p2 = f2.copyRowCount, m2 = f2.copyColumnCount, b2 = f2.isMove, y2 = f2.destRow, w2 = f2.destColumn, M2 = l2.b8.YB;
            for (t4 in M2) (n3 = M2[t4]) && (e3 = n3._S, b2 && l2 === v2 && e3 && (i3 = e3.some((function(t5) {
              return t5.contains(h2, d2, p2, m2) && !t5.equals(new r.Range(h2, d2, p2, m2));
            })), n3.rge = i3), (a2 = n3.condition()) && a2.initExpression());
            if (b2 && W(l2, v2)) {
              if (!l2.o5()) return void this.moveValidator();
              u2 = new o.Common.rbush();
            }
            s2 = function(t5, n4, e4) {
              var i4, r2, o2, a3 = t5.getDataValidator(n4, e4, 3);
              return a3 && (b2 && (i4 = void 0, !a3.rge && 1 === a3._S.length && W(l2, v2) && ((i4 = a3._S[0]).isInner(h2, d2, p2, m2) ? u2.insert({ minX: i4.row + y2 - h2, minY: i4.col + w2 - d2, maxX: i4.row + y2 - h2 + i4.rowCount - 1, maxY: i4.col + w2 - d2 + i4.colCount - 1, rc: i4.rowCount, cc: i4.colCount }) : h2 === y2 && w2 > d2 && d2 > i4.col && d2 + m2 >= i4.col + i4.colCount ? (r2 = i4.colCount + w2 - d2, u2.insert({ minX: i4.row, minY: i4.col, maxX: i4.row + i4.rowCount - 1, maxY: i4.col + r2 - 1, rc: i4.rowCount, cc: r2 })) : d2 === w2 && y2 > h2 && h2 > i4.row && h2 + p2 >= i4.row + i4.rowCount ? (o2 = i4.rowCount + y2 - h2, u2.insert({ minX: i4.row, minY: i4.col, maxX: i4.row + o2 - 1, maxY: i4.col + i4.colCount - 1, rc: o2, cc: i4.colCount })) : i4 = null), i4 ? t5.setDataValidator(i4.row, i4.col, i4.rowCount, i4.colCount, g) : t5.setDataValidator(n4, e4, g)), W(l2, v2) && (a3.ZB = true)), a3;
            }, c2 = function(t5, n4, e4, i4) {
              var r2, o2, a3, s3 = false;
              u2 && (r2 = n4, o2 = e4, (a3 = u2.search({ minX: r2, minY: o2, maxX: r2, maxY: o2 })).length > 0 && (i4 && t5.setDataValidator(a3[0].minX, a3[0].minY, a3[0].rc, a3[0].cc, i4), s3 = true)), !s3 && t5.setDataValidator(n4, e4, i4), W(l2, v2) && i4 && delete i4.ZB;
            }, this.S2e(s2, c2, { copyPasteHeaders: 0 });
          }, t3.prototype.copyMoveComment = function() {
            var t4, n3 = this.isMove, e3 = null === (t4 = this.options.pasteSpecialOptions) || void 0 === t4 ? void 0 : t4.skipBlanks, i3 = function(t5, e4, i4) {
              var r3 = t5.Ut.pI, o2 = r3 && r3.get(e4, i4);
              return o2 && n3 && r3.remove(e4, i4), o2;
            }, r2 = function(t5, n4, i4, r3) {
              if (!e3 || r3) {
                var o2 = t5.Ut.pI;
                o2 && o2.WB(n4, i4, r3);
              }
            };
            this.S2e(i3, r2, { copyPasteHeaders: 0 });
          }, t3.prototype.copyMoveMultiColumnPrecedents = function() {
            var t4 = this.isMove, n3 = function(n4, e4, i3) {
              var r2, o2, a2, u2, s2, c2, f2, l2 = n4.whe && n4.whe(), h2 = [], d2 = n4.name();
              if (l2) {
                for (r2 = 0, o2 = l2.length; r2 < o2; r2++) if (a2 = l2[r2]) for (u2 = 0, s2 = a2.length; u2 < s2; u2++) (c2 = a2[u2]) && (t4 && (a2[u2] = c2.filter((function(t5) {
                  return t5.row !== e4 || t5.col !== i3 || t5.targetSheetName !== d2;
                }))), (f2 = c2.filter((function(t5) {
                  return t5.row === e4 && t5.col === i3 && t5.targetSheetName === d2;
                }))[0]) && h2.push({ row: r2, col: u2, dataSource: f2.dataSource, dependSheetName: f2.dependSheetName }));
              }
              return h2;
            }, e3 = function(t5, n4, e4, i3) {
              if (i3 && i3.length) {
                var r2 = t5.whe && t5.whe();
                i3.forEach((function(i4) {
                  var o2 = i4.row, a2 = i4.col;
                  void 0 === r2[o2] && (r2[o2] = []), void 0 === r2[o2][a2] && (r2[o2][a2] = []), r2[o2][a2].some((function(t6) {
                    return t6.row === n4 && t6.col === e4 && t6.dataSource === i4.dataSource && t6.targetSheetName === i4.targetSheetName;
                  })) || r2[o2][a2].push({ row: n4, col: e4, dataSource: i4.dataSource, dependSheetName: i4.dependSheetName, targetSheetName: t5.name() });
                }));
              }
            };
            this.S2e(n3, e3, { copyPasteHeaders: 0 });
          }, t3.prototype.copyMoveTag = function() {
            var t4 = this.isMove, n3 = function(n4, e4, i3, r2) {
              var o2 = n4.getTag(e4, i3, r2);
              return !v(o2) && t4 && n4.setTag(e4, i3, m), o2;
            }, e3 = function(t5, n4, e4, i3, r2) {
              t5.setTag(n4, e4, i3, r2);
            };
            this.S2e(n3, e3);
          }, t3.prototype.copyMoveBindingPath = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.src, h2 = f2.srcRow, d2 = f2.srcColumn, p2 = f2.dest, b2 = f2.destRow, w2 = f2.destColumn, M2 = f2.copyRowCount, C2 = f2.copyColumnCount, S2 = f2.isMove, T2 = this.options.ignorePasteSkipInvisibleRange, x2 = [], A2 = [], I2 = {}, k2 = {}, N2 = !T2 && p2.o5();
            if (N2) {
              for (t4 = M2, n3 = C2, t4 += p2.lT(b2, t4, true), n3 += p2.lT(w2, n3), e3 = p2.getRowCount(), i3 = p2.getColumnCount(), r2 = 0, o2 = 0; r2 < t4 && r2 + b2 < e3; r2++) 0 !== p2.getRowHeight(b2 + r2) && (I2[o2] = r2, o2++);
              for (a2 = 0, u2 = 0; a2 < n3 && a2 + w2 < i3; a2++) 0 !== p2.getColumnWidth(w2 + a2) && (k2[u2] = a2, u2++);
            }
            return s2 = function(t5, n4, e4) {
              var i4, r3, o3 = t5.getBindingPath && t5.getBindingPath(n4, e4);
              return o3 && (i4 = n4 - y(0, h2), r3 = e4 - y(0, d2), N2 && (i4 = I2[i4], r3 = k2[r3]), x2.push({ row: i4, col: r3, value: t5.getValue(n4, e4) }), S2 && (l2.setTemplateCell ? l2.setTemplateCellInternal(n4, e4, g, S2) : l2.setBindingPath && l2.setBindingPath(n4, e4, g))), o3;
            }, c2 = function(t5, n4, e4, i4) {
              (!v(i4) || t5.getBindingPath && !v(t5.getBindingPath(n4, e4))) && (t5.setTemplateCell ? t5.setTemplateCellInternal(n4, e4, m, S2) : t5.setBindingPath && t5.setBindingPath(n4, e4, m), A2.push({ sheet: t5, r: n4, c: e4, value: i4 }));
            }, this.S2e(s2, c2, { copyPasteHeaders: 0 }), { savedValues: x2, bindingPathInfos: A2 };
          }, t3.prototype.copyMoveDefaultValue = function() {
            var t4 = this, n3 = t4.src, e3 = t4.srcRow, i3 = t4.srcColumn, r2 = t4.dest, o2 = t4.destRow, u2 = t4.destColumn, s2 = t4.isMove, f2 = {}, l2 = {}, h2 = function(t5, n4, r3, o3) {
              var u3, c2 = t5.Ut, h3 = c2.Ehe(o3), d2 = h3.getValue(n4, r3), p3 = h3.getExpression(n4, r3), m2 = n4 - e3, b2 = r3 - i3;
              return f2[m2] || (f2[m2] = {}), s2 && !l2[m2] && (l2[m2] = {}), s2 && (!v(d2) && c2.setDefaultValue(n4, r3, g, o3, a.DefaultChangeValueType.Value, true), !v(p3) && c2.setDefaultValue(n4, r3, g, o3, a.DefaultChangeValueType.Expression, g, true)), p3 ? (u3 = t5.getValueIgnoreDefault(n4, r3, o3), v(u3) ? g : (f2[m2][b2] = 1, s2 && (l2[m2][b2] = { expr: p3 }), p3)) : (f2[m2][b2] = 0, d2);
            }, p2 = function(t5, e4, i4, h3, p3) {
              var g2, m2, b2 = t5.Ut, y2 = b2.Ehe(p3), w2 = e4 - o2, M2 = i4 - u2;
              v(h3) && v(y2.getValue(e4, i4)) || (g2 = f2[w2][M2], d && 1 === g2 ? s2 ? (m2 = l2[w2][M2]) && (m2.destRow = e4, m2.destCol = i4) : (0, c.copyDefaultFormula)(n3, r2, e4, i4, h3) : b2.setDefaultValue(e4, i4, h3, p3, a.DefaultChangeValueType.Value));
            };
            return this.S2e(h2, p2), l2;
          }, t3.prototype.copyMoveHyperlink = function() {
            var t4 = this.isMove, n3 = function(n4, e4, i3, r2) {
              var o2 = n4.getHyperlink && n4.getHyperlink(e4, i3, r2);
              return !v(o2) && t4 && n4.setHyperlink && n4.setHyperlink(e4, i3, m), o2;
            }, e3 = function(t5, n4, e4, i3, r2) {
              t5.setHyperlink && t5.setHyperlink(n4, e4, i3, r2);
            };
            this.S2e(n3, e3);
          }, t3.prototype.copyMoveAltText = function() {
            var t4 = this.isMove, n3 = function(n4, e4, i3, r2) {
              var o2 = n4.getAltText(e4, i3, r2);
              return !v(o2) && t4 && n4.setAltText(e4, i3, m), o2;
            }, e3 = function(t5, n4, e4, i3, r2) {
              t5.setAltText(n4, e4, i3, r2);
            };
            this.S2e(n3, e3);
          }, t3.prototype.copyCellLink = function() {
            var t4, n3 = !(this.src === this.dest && this.src.name() === this.dest.name()), e3 = n3 ? (0, r.qTe)(this.src.name()) + "!" : "", i3 = 1 === (null === (t4 = this.src.parent) || void 0 === t4 ? void 0 : t4.options.referenceStyle), o2 = (0, r.rangeToFormula)(new r.Range(this.srcRow, this.srcColumn, 1, 1), this.destRow, this.destColumn, 15, true), a2 = 1 === this.copyRowCount && 1 === this.copyColumnCount, u2 = (0, r.rangeToFormula)(new r.Range(this.srcRow, this.srcColumn, 1, 1), 0, 0, 0, i3), s2 = function(t5, n4, s3) {
              return a2 ? e3 + u2 : i3 ? e3 + o2 : e3 + (0, r.rangeToFormula)(new r.Range(n4, s3, 1, 1), 0, 0, 15);
            }, c2 = function(t5, n4, e4, i4) {
              t5.setFormula(n4, e4, i4);
            };
            this.S2e(s2, c2);
          }, t3.prototype.copyColumnWidth = function() {
            var t4, n3 = function(t5, n4, e4) {
              return t5.getColumnWidth(e4);
            }, e3 = function(n4, e4, i3, r2) {
              if (v(t4)) t4 = e4;
              else if (t4 !== e4) return;
              n4.setColumnWidth(i3, r2);
            };
            this.S2e(n3, e3);
          }, t3;
        })(), n2.staticMembers = { copyTo: function(t3, n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2) {
          var y2, w2, M2, C2, S2, T2, x2 = { copyPasteHeaders: l2, ignorePasteSkipInvisibleRange: h2, treatRichTextAsNormal: d2, ignoreFilteredOutRow: f2, copyToOption: c2, pasteSpecialOptions: v2, needHideFormula: g2 };
          if (null === (y2 = null == t3 ? void 0 : t3.startBatchOp) || void 0 === y2 || y2.call(t3), null === (w2 = null == i3 ? void 0 : i3.startBatchOp) || void 0 === w2 || w2.call(i3), S2 = at(t3, n3, e3, i3, r2, o2, u2, s2, false, x2, p2, m2, b2), T2 = (null == v2 ? void 0 : v2.operationOptions) === a.PasteOperationOptions.transform) {
            if (S2 instanceof Promise) return S2;
          } else null === (M2 = null == i3 ? void 0 : i3.endBatchOp) || void 0 === M2 || M2.call(i3), null === (C2 = null == t3 ? void 0 : t3.endBatchOp) || void 0 === C2 || C2.call(t3);
        }, moveTo: function(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
          var v2, p2, g2, m2, b2, y2 = 3;
          t3 === i3 && t3.NMi && (y2 = 0), b2 = { copyToOption: s2, skipRangeCheck: h2, ignorePasteSkipInvisibleRange: f2, treatRichTextAsNormal: l2, ignoreSheet: c2, tableExpand: d2, copyPasteHeaders: y2 }, null === (v2 = null == t3 ? void 0 : t3.startBatchOp) || void 0 === v2 || v2.call(t3), null === (p2 = null == i3 ? void 0 : i3.startBatchOp) || void 0 === p2 || p2.call(i3), at(t3, n3, e3, i3, r2, o2, a2, u2, true, b2), null === (g2 = null == i3 ? void 0 : i3.endBatchOp) || void 0 === g2 || g2.call(i3), null === (m2 = null == t3 ? void 0 : t3.endBatchOp) || void 0 === m2 || m2.call(t3);
        }, BGr: function(t3, n3, e3, i3, r2, o2, a2, u2) {
          K(t3, n3, e3, t3, i3, r2, o2, a2, u2), nt(t3, n3, e3, t3, i3, r2, o2, a2, u2);
        } };
      }, "./dist/core/worksheet/worksheet-ui.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m;
        function b(t3) {
          return "number" == typeof t3;
        }
        function y(t3) {
          return "string" == typeof t3;
        }
        function w(t3) {
          return parseInt(t3, 10);
        }
        function M(t3) {
          return Math.abs(t3);
        }
        function C(t3, n3) {
          var e3 = t3, i3 = n3;
          return function(t4) {
            var n4, r2, o2 = this, a2 = o2.sheet, u2 = o2.row, s2 = o2.col, c2 = o2.sheetArea;
            if (0 === arguments.length) return e3.call(a2, u2, s2, c2);
            if (u2 >= 0 && s2 >= 0) {
              for (o2.j_r(), n4 = u2; n4 < u2 + o2.rowCount; n4++) for (r2 = s2; r2 < s2 + o2.colCount; r2++) S(a2, n4, r2, c2) && i3.call(a2, n4, r2, t4, c2);
              o2.D_r();
            }
            return o2;
          };
        }
        function S(t3, n3, e3, i3) {
          var r2 = t3.getRowCount(i3), o2 = t3.getColumnCount(i3);
          return e3 < 0 && 0 <= n3 && n3 < r2 || n3 < 0 && 0 <= e3 && e3 < o2 || 0 <= n3 && n3 < r2 && 0 <= e3 && e3 < o2 || -1 === n3 && -1 === e3;
        }
        function T(t3, n3, e3, i3) {
          if (!p(n3.themeFont)) {
            var r2 = null == n3 ? void 0 : n3.fontFamily, o2 = i3;
            "font" === e3 && (o2 = l.W.B2e(i3).fontFamily), o2 !== r2 && (n3.themeFont = d);
          }
        }
        function x(t3) {
          return t3 = (t3 = t3.replace(/[^\:]+\!/g, "")).replace(/\$/g, "");
        }
        function A(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2 = t3.split(":"), b2 = m2[0], y2 = m2[1], w2 = /([A-Z]+)(\d+)?(\D+)?/;
          if (isNaN(Number(b2))) {
            if (r2 = (i3 = b2.match(w2))[3]) return v;
            n3 = i3[1], e3 = i3[2];
          } else e3 = b2;
          if (b2 && !y2) {
            if (n3 && e3) return [o2 = I(e3), a2 = k(n3), 1, 1];
          } else if (b2 && y2) {
            if (u2 = void 0, s2 = void 0, isNaN(Number(y2))) {
              if (r2 = (c2 = y2.match(w2))[3]) return v;
              u2 = c2[1], s2 = c2[2];
            } else s2 = y2;
            if (!n3 && e3 && !u2 && s2) return f2 = I(e3), l2 = I(s2), [o2 = Math.min(f2, l2), -1, h2 = M(f2 - l2) + 1, -1];
            if (n3 && !e3 && u2 && !s2) return d2 = k(n3), p2 = k(u2), [-1, a2 = Math.min(d2, p2), -1, g2 = M(d2 - p2) + 1];
            if (n3 && e3 && u2 && s2) return f2 = I(e3), l2 = I(s2), d2 = k(n3), p2 = k(u2), o2 = Math.min(f2, l2), h2 = M(f2 - l2) + 1, [o2, a2 = Math.min(d2, p2), h2, g2 = M(d2 - p2) + 1];
          }
          return v;
        }
        function I(t3) {
          return w(t3) - 1;
        }
        function k(t3) {
          var n3, e3, i3 = 64, r2 = 26, o2 = 0, a2 = t3.length;
          for (n3 = 0; n3 < a2; n3++) e3 = t3[n3].charCodeAt(0) - i3, o2 += Math.pow(r2, a2 - n3 - 1) * e3;
          return o2 - 1;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.$B = n2.tL = n2.CellRange = void 0, i2 = e2("./dist/core/worksheet/worksheet.js"), r = e2("./dist/core/worksheet/style.js"), o = e2("./dist/core/util/domUtil.js"), a = e2("./dist/core/util/common.js"), u = e2("Common"), s = e2("./dist/core/core.enum.js"), c = e2("CalcEngine"), f = e2("./dist/core/worksheet/clipboardhelper.js"), l = e2("./dist/core/worksheet/stylehelper.js"), h = !!c, d = void 0, v = null, p = u.Common.lt.ht, g = i2.Worksheet.prototype, m = (function() {
          function t3(t4, n3, e3, i3, r2, o2) {
            var a2 = this;
            n3 < 0 && (n3 = i3 = -1), e3 < 0 && (e3 = r2 = -1), a2.sheet = t4, a2.row = n3, a2.rowCount = p(i3) ? 1 : i3, a2.col = e3, a2.colCount = p(r2) ? 1 : r2, a2.sheetArea = p(o2) ? 3 : o2;
          }
          return t3.prototype.j_r = function() {
            var t4, n3;
            null === (n3 = null === (t4 = this.sheet) || void 0 === t4 ? void 0 : t4.startBatchOp) || void 0 === n3 || n3.call(t4);
          }, t3.prototype.D_r = function() {
            var t4, n3;
            null === (n3 = null === (t4 = this.sheet) || void 0 === t4 ? void 0 : t4.endBatchOp) || void 0 === n3 || n3.call(t4);
          }, t3.prototype.suspendOp = function() {
            var t4, n3, e3;
            null === (e3 = null === (n3 = null === (t4 = this.sheet) || void 0 === t4 ? void 0 : t4.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3);
          }, t3.prototype.resumeOp = function() {
            var t4, n3, e3;
            null === (e3 = null === (n3 = null === (t4 = this.sheet) || void 0 === t4 ? void 0 : t4.parent) || void 0 === n3 ? void 0 : n3.resumeOp) || void 0 === e3 || e3.call(n3);
          }, t3.prototype.tag = function(t4) {
            var n3 = this, e3 = n3.sheet, i3 = n3.row, r2 = n3.col, o2 = n3.rowCount, a2 = n3.colCount, u2 = n3.sheetArea, s2, c2;
            if (0 === arguments.length) return e3.getTag(i3, r2, u2);
            if (n3.j_r(), i3 >= 0 && r2 >= 0) for (s2 = i3; s2 < i3 + o2; s2++) for (c2 = r2; c2 < r2 + a2; c2++) e3.setTag(s2, c2, t4, u2);
            else if (i3 >= 0) for (s2 = i3; s2 < i3 + o2; s2++) e3.setTag(s2, -1, t4, u2);
            else if (r2 >= 0) for (c2 = r2; c2 < r2 + a2; c2++) e3.setTag(-1, c2, t4, u2);
            return n3.D_r(), n3;
          }, t3.prototype.altText = function(t4) {
            var n3 = this, e3 = n3.sheet, i3 = n3.row, r2 = n3.col, o2 = n3.rowCount, a2 = n3.colCount, u2 = n3.sheetArea, s2, c2;
            if (0 === arguments.length) return e3.getAltText(i3, r2, u2);
            if (n3.j_r(), i3 >= 0 && r2 >= 0) for (s2 = i3; s2 < i3 + o2; s2++) for (c2 = r2; c2 < r2 + a2; c2++) e3.setAltText(s2, c2, t4, u2);
            return n3.D_r(), n3;
          }, t3.prototype.width = function(t4) {
            var n3, e3 = this, i3 = e3.sheet, r2 = e3.row, o2 = e3.col, a2 = e3.sheetArea;
            if (0 !== arguments.length) {
              if (r2 < 0) {
                for (e3.j_r(), n3 = 0; n3 < e3.colCount; n3++) i3.setColumnWidth(n3 + o2, t4, a2);
                e3.D_r();
              }
              return e3;
            }
            if (r2 < 0) return i3.getColumnWidth(o2, a2);
          }, t3.prototype.height = function(t4) {
            var n3, e3 = this, i3 = e3.sheet, r2 = e3.row, o2 = e3.col, a2 = e3.sheetArea;
            if (0 !== arguments.length) {
              if (o2 < 0) {
                for (e3.j_r(), n3 = 0; n3 < e3.rowCount; n3++) i3.setRowHeight(n3 + r2, t4, a2);
                e3.D_r();
              }
              return e3;
            }
            if (o2 < 0) return i3.getRowHeight(r2, a2);
          }, t3.prototype.visible = function(t4) {
            var n3, e3, i3 = this, r2 = i3.sheet, o2 = i3.row, a2 = i3.col, u2 = i3.sheetArea;
            if (0 !== arguments.length) {
              if (i3.j_r(), a2 < 0 && o2 >= 0) for (n3 = 0; n3 < i3.rowCount; n3++) r2.setRowVisible(n3 + o2, t4, u2);
              else if (a2 >= 0 && o2 < 0) for (e3 = 0; e3 < i3.colCount; e3++) r2.setColumnVisible(e3 + a2, t4, u2);
              return i3.D_r(), i3;
            }
            return a2 < 0 && o2 >= 0 ? r2.getRowVisible(o2, u2) : a2 >= 0 && o2 < 0 ? r2.getColumnVisible(a2, u2) : void 0;
          }, t3.prototype.resizable = function(t4) {
            var n3, e3, i3 = this, r2 = i3.sheet, o2 = i3.row, a2 = i3.col, u2 = i3.sheetArea;
            if (0 !== arguments.length) {
              if (i3.j_r(), a2 < 0 && o2 >= 0) for (n3 = 0; n3 < i3.rowCount; n3++) r2.setRowResizable(n3 + o2, t4, u2);
              else if (a2 >= 0 && o2 < 0) for (e3 = 0; e3 < i3.colCount; e3++) r2.setColumnResizable(e3 + a2, t4, u2);
              return i3.D_r(), i3;
            }
            return a2 < 0 && o2 >= 0 ? r2.getRowResizable(o2, u2) : a2 >= 0 && o2 < 0 ? r2.getColumnResizable(a2, u2) : void 0;
          }, t3.prototype.l0 = function(t4) {
            var n3 = this;
            return n3.sheet.l0(n3.row, n3.col, t4, n3.sheetArea);
          }, t3.prototype.R5 = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.sheet, s2 = a2.sheetArea, c2 = {};
            return a2.nL((function(e4, i4) {
              var r3 = a2.Yot(e4, i4, t4, n3);
              c2[e4] = c2[e4] || {}, c2[e4][i4] = r3;
            })), e3 = a2.row, i3 = a2.col, r2 = a2.rowCount, o2 = a2.colCount, u2.$Dr({ type: "setRange", sheetArea: s2, row: e3, col: i3, rowCount: r2, colCount: o2, data: { propName: t4 }, setType: "styleProperty", oldValue: c2 }), a2;
          }, t3.prototype.Yot = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2 = this, c2 = s2.sheet, f2 = s2.sheetArea;
            if (S(c2, t4, n3, f2)) return (o2 = c2.vI(t4, n3, f2)) ? "formatter" === e3 && "string" != typeof o2 && (o2 = o2.clone()) : o2 = new r.Style(), "string" == typeof o2 && (a2 = o2, (o2 = new r.Style()).parentName = a2), u2 = o2[e3], "font" !== e3 && "fontFamily" !== e3 || T(c2, o2, e3, i3), o2[e3] = i3, s2.suspendOp(), c2.setStyle(t4, n3, o2, f2), s2.resumeOp(), u2;
          }, t3.prototype.nL = function(t4) {
            var n3, e3, i3 = this, r2 = i3.sheet, o2 = i3.row + i3.rowCount, a2 = i3.col + i3.colCount;
            if (r2.suspendPaint(), i3.j_r(), i3.row >= 0 && i3.col >= 0) for (n3 = i3.row; n3 < o2; n3++) for (e3 = i3.col; e3 < a2; e3++) t4.call(i3, n3, e3);
            else if (i3.row >= 0) for (n3 = i3.row; n3 < o2; n3++) t4.call(i3, n3, -1);
            else if (i3.col >= 0) for (e3 = i3.col; e3 < a2; e3++) t4.call(i3, -1, e3);
            else -1 === i3.row && -1 === i3.col && -1 === i3.rowCount && -1 === i3.colCount && t4.call(i3, -1, -1);
            i3.D_r(), r2.resumePaint();
          }, t3.prototype.setStyleName = function(t4) {
            var n3 = this;
            n3.nL((function(e3, i3) {
              n3.sheet.setStyleName(e3, i3, t4, n3.sheetArea);
            }));
          }, t3.prototype.setStyle = function(t4) {
            var n3 = this;
            n3.nL((function(e3, i3) {
              n3.sheet.setStyle(e3, i3, t4.clone(), n3.sheetArea);
            }));
          }, t3.prototype.clear = function(t4) {
            var n3 = this;
            n3.sheet.clear(n3.row, n3.col, n3.rowCount, n3.colCount, n3.sheetArea, t4);
          }, t3.prototype.setBorder = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.sheet, g2 = v2.sheetArea;
            p2.suspendPaint(), v2.j_r();
            try {
              if (e3 = new a.Range(v2.row, v2.col, v2.rowCount, v2.colCount), r2 = (i3 = p2.JS(e3, g2)).row, o2 = i3.col, u2 = i3.rowCount, s2 = i3.colCount, c2 = void 0, f2 = void 0, l2 = n3.all, h2 = n3.outline, d2 = n3.inside, n3.left || l2 || h2) for (c2 = 0; c2 < u2; c2++) p2.getCell(r2 + c2, o2, g2).borderLeft(t4);
              if (n3.top || l2 || h2) for (f2 = 0; f2 < s2; f2++) p2.getCell(r2, o2 + f2, g2).borderTop(t4);
              if (n3.right || l2 || h2) for (c2 = 0; c2 < u2; c2++) p2.getCell(r2 + c2, o2 + s2 - 1, g2).borderRight(t4);
              if (n3.bottom || l2 || h2) for (f2 = 0; f2 < s2; f2++) p2.getCell(r2 + u2 - 1, o2 + f2, g2).borderBottom(t4);
              if (n3.diagonalUp) for (c2 = 0; c2 < u2; c2++) for (f2 = 0; f2 < s2; f2++) p2.getCell(r2 + c2, o2 + f2, g2).diagonalUp(t4);
              if (n3.diagonalDown) for (c2 = 0; c2 < u2; c2++) for (f2 = 0; f2 < s2; f2++) p2.getCell(r2 + c2, o2 + f2, g2).diagonalDown(t4);
              if (n3.innerHorizontal || l2 || d2) for (c2 = 0; c2 < u2 - 1; c2++) for (f2 = 0; f2 < s2; f2++) p2.getCell(r2 + c2, o2 + f2, g2).borderBottom(t4), p2.getCell(r2 + c2 + 1, o2 + f2, g2).borderTop(t4);
              if (n3.innerVertical || l2 || d2) for (f2 = 0; f2 < s2 - 1; f2++) for (c2 = 0; c2 < u2; c2++) p2.getCell(r2 + c2, o2 + f2, g2).borderRight(t4), p2.getCell(r2 + c2, o2 + f2 + 1, g2).borderLeft(t4);
            } finally {
              p2.resumePaint(), v2.D_r();
            }
          }, t3.prototype.toHtml = function(t4, n3) {
            void 0 === t4 && (t4 = s.HeaderOptions.noHeaders), void 0 === n3 && (n3 = true);
            var e3 = this;
            return e3.sheetArea === s.SheetArea.corner ? "" : f.yM.KS(e3.sheet, t4, e3.row, e3.rowCount, e3.col, e3.colCount, e3.sheetArea, n3, [], [], true, true, n3, true);
          }, t3.p0 = C, t3;
        })(), n2.CellRange = m, m.prototype.value = C(g.getValue, g.setValue), m.prototype.text = C(g.getText, g.setText), m.prototype.D5 = C((function(t3, n3) {
          return h && this.getFormula(t3, n3);
        }), (function(t3, n3, e3, i3) {
          h && this.setFormula(t3, n3, e3, i3);
        })), m.prototype.formula = function(t3, n3) {
          if (!n3) return 0 === arguments.length ? this.D5() : this.D5(t3);
          h && this.sheet.eL(this.row, this.col, this.rowCount, this.colCount, t3);
        }, m.prototype.defaultValue = C(g.getDefaultValue, g.setDefaultValue), m.prototype.styleName = C(g.getStyleName, g.setStyleName), o.GC$.each(["backColor", "foreColor", "hAlign", "vAlign", "themeFont", "font", "formatter", "borderLeft", "borderTop", "allowEditInCell", "borderRight", "borderBottom", "diagonalDown", "diagonalUp", "locked", "hidden", "textIndent", "wordWrap", "showEllipsis", "shrinkToFit", "backgroundImage", "backgroundImageLayout", "cellType", "tabStop", "textDecoration", "imeMode", "watermark", "cellPadding", "labelOptions", "quotePrefix", "isVerticalText", "cellButtons", "dropDowns", "textOrientation", "mask", "fontStyle", "fontWeight", "fontSize", "fontFamily", "textDirection"], (function(t3, n3) {
          m.prototype[n3] = function(t4) {
            return 0 === arguments.length ? this.l0(n3) : this.R5(n3, t4);
          };
        })), n2.tL = A, n2.$B = k, o.GC$.extend(g, { getRange: function() {
          var t3, n3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = arguments[0];
          if (y(l2)) {
            if (a2 = l2.toUpperCase(), u2 = this.parent && 1 === this.parent.options.referenceStyle) return v;
            if (o2 = arguments[1], (a2 = x(a2)).split(",").length > 1) return v;
            if (h) {
              if (!(c2 = (s2 = e2("SheetsCalc")).formulaToRange(this, a2, d, d, o2))) return v;
              t3 = c2.row, n3 = c2.col, i3 = c2.rowCount, r2 = c2.colCount;
            } else {
              if (!(f2 = A(a2))) return v;
              t3 = f2[0], n3 = f2[1], i3 = f2[2], r2 = f2[3];
            }
          } else b(l2) && (t3 = l2, n3 = arguments[1], i3 = arguments[2], r2 = arguments[3], o2 = arguments[4]);
          return new m(this, t3, n3, i3, r2, o2);
        }, getCell: function(t3, n3, e3) {
          return p(n3) && (n3 = -1), new m(this, t3, n3, 1, 1, e3);
        } });
      }, "./dist/core/worksheet/worksheet.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t = this && this.nJr || function() {
          return _t = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, _t.apply(this, arguments);
        };
        function Ot(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = [], s2 = t3.Ut.Fj();
          if (s2) {
            for (e3 in s2) if (_(s2, e3) && (i3 = s2[e3]) && (n3 || "n" !== i3.rs || (r2 = { row: +e3, item: t3.getDataItem && t3.getDataItem(+e3) }, u2.push(r2)), n3 && "e" === i3.rs)) {
              for (o2 in i3) if (!U(o2) && (a2 = i3[o2])) {
                (r2 = { row: +e3, item: t3.getDataItem && t3.getDataItem(+e3) }).originalItem = i3.originalItem, u2.push(r2);
                break;
              }
            }
          }
          return u2;
        }
        function Et(t3, n3, e3, i3) {
          var r2, o2 = 0;
          for (r2 = n3; r2 <= e3; r2++) o2 += t3.Kt(r2, i3);
          return o2;
        }
        function Rt(t3, n3, e3, i3) {
          var r2, o2 = 0;
          for (r2 = n3; r2 <= e3; r2++) o2 += t3.Gt(r2, i3);
          return o2;
        }
        function Lt(t3, n3, e3) {
          var i3, r2 = 0, o2 = t3.Mf;
          if (o2 && o2.Msr) for (i3 = n3; i3 <= e3; i3++) r2 += o2.Msr(i3), r2 += o2.Msr(i3, true);
          return r2;
        }
        function Ft(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function Bt(t3, n3) {
          return t3.getRowCount(n3);
        }
        function Pt(t3) {
          return t3.frozenTrailingColumnCount();
        }
        function Gt(t3) {
          return t3.frozenTrailingRowCount();
        }
        function Ut(t3) {
          return t3.Ny;
        }
        function Ht(t3) {
          return t3.Vy;
        }
        function Vt(t3) {
          return t3.frozenColumnCount();
        }
        function zt(t3) {
          return t3.frozenRowCount();
        }
        function Yt(t3) {
          return t3.Dve;
        }
        function Zt(t3) {
          return t3._ve;
        }
        function Wt(t3, n3) {
          return n3 === h.SheetArea.colHeader && Qt(t3.options) ? t3.options.addColumnButtonOption : n3 === h.SheetArea.rowHeader && Jt(t3.options) ? t3.options.addRowButtonOption : H;
        }
        function Qt(t3) {
          return t3.colHeaderVisible && t3.addColumnButtonOption && t3.addColumnButtonOption.visible;
        }
        function Kt(t3) {
          var n3, e3 = 0;
          return e3 = "number" == typeof t3.options.addColumnButtonOption.width ? t3.options.addColumnButtonOption.width : Z(t3.defaults.colWidth), 1 !== (n3 = t3.zoom()) && (e3 *= n3), W(e3);
        }
        function Jt(t3) {
          return t3.rowHeaderVisible && t3.addRowButtonOption && t3.addRowButtonOption.visible;
        }
        function Xt(t3) {
          var n3, e3 = 0;
          return e3 = "number" == typeof t3.options.addRowButtonOption.height ? t3.options.addRowButtonOption.height : Z(t3.defaults.rowHeight), 1 !== (n3 = t3.zoom()) && (e3 *= n3), W(e3);
        }
        function qt(t3) {
          return t3.options.addColumnButtonOption && t3.options.addRowButtonOption.command;
        }
        function $t(t3) {
          return t3.options.addColumnButtonOption && t3.options.addColumnButtonOption.command;
        }
        function tn(t3) {
          return T(t3) || t3 === h.SheetArea.viewport || t3 === h.SheetArea.rowHeader ? h.SheetArea.viewport : t3 === h.SheetArea.colHeader ? t3 : h.SheetArea.corner;
        }
        function nn(t3) {
          return T(t3) || t3 === h.SheetArea.viewport || t3 === h.SheetArea.colHeader ? h.SheetArea.viewport : t3 === h.SheetArea.rowHeader ? t3 : h.SheetArea.corner;
        }
        function en(t3, n3) {
          var e3 = r.util._0(t3.font), i3 = r.util._0(n3.font);
          return e3.fontStyle + " " + e3.fontWeight + " " + i3.fontSize + " " + i3.fontFamily;
        }
        function rn(t3, n3, e3) {
          Object.defineProperty(t3, n3, { get: function() {
            return this["_" + n3];
          }, set: function(t4) {
            var i3 = this["_" + n3];
            i3 !== t4 && (this["_" + n3] = t4, e3 && e3(n3, t4, i3));
          } });
        }
        function on(t3, n3, e3) {
          t3["_" + n3] = e3;
        }
        function an(t3, n3, e3, i3) {
          return { row: n3, col: e3, newValue: t3.getValue(n3, e3), oldValue: i3 };
        }
        function un(t3) {
          var n3, e3, i3, r2;
          if (t3) for (e3 = (n3 = t3.sheets).length, r2 = 0; r2 < e3; r2++) true === (i3 = n3[r2]).iL && delete i3.iL;
        }
        function sn(t3) {
          if (D(t3)) return true;
          for (var n3 in t3) if (!T(t3[n3]) && !D(t3[n3])) return false;
          return true;
        }
        function cn(t3, n3, e3, i3) {
          var r2, o2, a2 = e3.formatter;
          return a2 && "General" !== a2 || (a2 = e3._autoFormatter), "General" === a2 && (a2 = V), r2 = {}, o2 = e3.quotePrefix, (n3 = t3.format(n3, a2, r2, { quotePrefix: o2, sheet: i3 })) && "string" == typeof n3 && (n3 = n3.replace(/\r\n?/g, "\n")), n3;
        }
        function fn(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = t3.dataRanges;
          if (u2 && (e3 = u2.getByRange(n3.row, n3.col, n3.rowCount, n3.colCount)) && e3.length > 0) {
            for (i3 = 0, r2 = e3; i3 < r2.length; i3++) if ((a2 = (o2 = r2[i3]).convertContext({ sheet: t3 })) && a2.sheet && a2.sheet.isActualProtected()) return true;
          }
          return false;
        }
        function ln(t3, n3, e3, i3, r2) {
          if ((-1 !== n3 || -1 !== e3) && (T(r2) && (r2 = 3), 3 === r2)) {
            var o2 = t3.tables && t3.tables.find(n3, e3);
            o2 && o2.oL && n3 === o2.footerIndex() && jt.et(t3, "composeTableFooterList", { table: o2, row: n3, col: e3, style: i3 });
          }
        }
        function hn(t3, n3) {
          var e3, i3;
          try {
            (e3 = d.Formatter && d.Formatter.GeneralFormatter) && typeof t3 === X && (t3 = r.Be.Ue(t3));
          } catch (t4) {
          }
          if (((null == t3 ? void 0 : t3.hasFormattedColor) && t3.hasFormattedColor() || d.Formatter && t3 instanceof d.Formatter.FormatterBase) && (i3 = { conditionalForeColor: H }, t3.format(n3, i3), i3.conditionalForeColor)) return i3.conditionalForeColor;
        }
        function dn(t3) {
          var n3;
          return null === (n3 = t3.parent) || void 0 === n3 ? void 0 : n3.collaboration;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Wmr = n2.Worksheet = n2.isAnyCellProtectedInDataRange = n2.C0r = n2.InvalidType = n2.ClearPendingChangeType = void 0, i2 = e2("./dist/core/core.ns.js"), r = e2("./dist/core/util/common.js"), o = e2("./dist/core/util/imageLoader.js"), a = e2("./dist/core/util/tasks.js"), u = e2("./dist/core/worksheet/style.js"), s = e2("./dist/core/worksheet/worksheet-model.js"), c = e2("./dist/core/util/domUtil.js"), f = e2("./dist/core/celltype/textcelltype.js"), l = e2("./dist/core/celltype/headercelltype.js"), h = e2("./dist/core/core.enum.js"), d = e2("Common"), v = e2("CalcEngine"), p = !!v, m = e2("./dist/core/util/theme.js"), b = e2("./dist/core/worksheet/stylehelper.js"), y = e2("./dist/core/worksheet/attachmentManager/attachmentsManager.js"), w = e2("./dist/core/id-system/id.entry.js"), M = e2("./dist/core/excel-io-util/common.js"), C = r.util.g0, S = r.util.St, T = d.Common.lt.ht, x = d.Common.lt.q8, A = r.util.En, I = r.util.p0, k = r.util.b0, N = r.util.x0, j = c.GC$.each, D = c.GC$.isEmptyObject, _ = d.Common.kh, O = r.util.Z0, E = r.util.V0, R = new RegExp("^\\d*(\\.\\d+)?\\*$"), L = new Date(1899, 11, 30).getTime(), F = d.Common.zf, B = document, P = parseInt, G = parseFloat, U = isNaN, H = null, V = void 0, z = Math.min, Y = Math.max, Z = Math.floor, W = Math.ceil, Q = Math.abs, K = Math.round, J = "undefined", X = "string", q = "width", $ = "height", tt = "black", nt = "tag", et = "altText", it = "onLayoutChanged", rt = "beforeLayoutChanged", ot = "onPaintSuspend", at = "isVisible", ut = "starSize", st = "resizable", ct = "canAddingSpan", ft = ".gcSheet", lt = ".gcSheetInternal", ht = "columnHeaderFitMode", dt = "gc.spread.contextMenu.insertRows", vt = "gc.spread.contextMenu.insertColumns", pt = "rgh", gt = "cgh", mt = "rg", bt = "cg", yt = M.Util.JYr, wt = M.Util.Qr, Mt = M.Util.WYr, Ct = r.util.XYr, St = { backColor: true, foreColor: true, font: true, borderLeft: true, borderTop: true, borderRight: true, borderBottom: true, textDecoration: true, cellType: true, formatter: true }, Tt = new d.Common.ResourceManager(i2.SR, "Sheets"), xt = Tt.getResource.bind(Tt), At = r.UsedRangeUtil.vh, (function(t3) {
          t3[t3.dirty = 1] = "dirty", t3[t3.insert = 2] = "insert", t3[t3.delete = 4] = "delete";
        })(It = n2.ClearPendingChangeType || (n2.ClearPendingChangeType = {})), (function(t3) {
          t3[t3.setFormula = 0] = "setFormula", t3[t3.copyPaste = 1] = "copyPaste", t3[t3.dragFill = 2] = "dragFill", t3[t3.dragDrop = 3] = "dragDrop", t3[t3.changePartOfArrayFormula = 4] = "changePartOfArrayFormula", t3[t3.changeSheetName = 5] = "changeSheetName", t3[t3.table = 6] = "table", t3[t3.hideSheet = 7] = "hideSheet", t3[t3.pivotTable = 8] = "pivotTable", t3[t3.PTOverlapPT = 9] = "PTOverlapPT";
        })(kt = n2.InvalidType || (n2.InvalidType = {})), Nt = { rowHeaderVisible: true, colHeaderVisible: true, clipBoardOptions: 0, frozenlineColor: tt, rowHeaderAutoText: 1, colHeaderAutoText: 2, rowHeaderAutoTextIndex: -1, colHeaderAutoTextIndex: -1, sheetTabColor: H, selectionBackColor: H, selectionBorderColor: H, allowCellOverflow: true, showFormulas: false, showZeros: true, isProtected: false, protectionOptions: {}, gridline: {}, reversalTrailingResizeOrder: false, keepUnknownFormulas: false, addColumnButtonOption: { visible: false, width: H, command: vt, style: H, tooltip: H }, addRowButtonOption: { visible: false, height: H, command: dt, style: H, tooltip: H }, rightToLeft: false, sheetAreaOffset: { left: 0, top: 0 } }, n2.C0r = cn, n2.isAnyCellProtectedInDataRange = fn, jt = (function() {
          function t3(n3) {
            this.canClone = true;
            var e3 = this;
            e3.assignId(), e3._id = t3._ID, t3._ID++, e3.options = k(Nt, (function(t4, n4, i3) {
              e3.Ob(t4, n4, i3);
            })), e3.Hc(n3), e3.Vp = new a.Tasks((function() {
              return this.tasks.pop();
            }), (function() {
              var t4 = e3.parent;
              return t4 && t4.ib.eb || e3.rt.rb || e3.rt.ob || e3.rt.ab;
            }));
          }
          return t3.prototype.sortRange = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            return false;
          }, t3.prototype.h_r = function(t4) {
            var n3;
            this.E0i = t4;
          }, t3.prototype.Ob = function(n3, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.parent;
            switch (true !== o2 && v2.$Dr({ type: "setWorksheetOptions", propertyName: n3, value: e3 }), n3) {
              case "allowCellOverflow":
              case "showFormulas":
              case "showZeros":
              case "colHeaderAutoText":
              case "colHeaderAutoTextIndex":
              case "colHeaderVisible":
              case "frozenlineColor":
              case "rowHeaderAutoText":
              case "rowHeaderAutoTextIndex":
              case "rowHeaderVisible":
              case "selectionBackColor":
              case "selectionBorderColor":
              case "reversalTrailingResizeOrder":
                v2.zw();
                break;
              case "rightToLeft":
                p2 && (p2.sdr = true, p2.jM(), p2.Uur(e3), p2.sC(), p2.iM()), v2.zw(), t3.et(v2, "onRightToLeftChanged", { value: e3, oldValue: i3 });
                break;
              case "sheetAreaOffset":
                a2 = function(t4, e4) {
                  e4 < 0 && (v2.options.sheetAreaOffset[t4] = 0), v2.zw(), v2.$Dr({ type: "setWorksheetOptions", propertyName: n3, value: v2.options.sheetAreaOffset[t4], secondLevelPropertyName: t4 });
                }, u2 = v2.options.sheetAreaOffset, ["left", "top"].forEach((function(t4) {
                  var n4 = e3[t4];
                  rn(u2, t4, a2), u2[t4] = n4;
                }));
                break;
              case "gridline":
                s2 = function(t4, e4) {
                  v2.zw(), v2.$Dr({ type: "setWorksheetOptions", propertyName: n3, value: e4, secondLevelPropertyName: t4 });
                }, c2 = v2.options.gridline, ["color", "showHorizontalGridline", "showVerticalGridline"].forEach((function(t4) {
                  var n4 = e3[t4];
                  rn(c2, t4, s2), c2[t4] = n4;
                }));
                break;
              case "isProtected":
                e3 && p2 && p2.undoManager().aL((function(t4) {
                  return t4.sheetId !== v2._id;
                })), v2.uL(), t3.et(v2, "onProtectChanged"), v2.zw();
                break;
              case "protectionOptions":
                v2.uL(), t3.et(v2, "onProtectChanged");
                break;
              case "sheetTabColor":
                p2 && p2.Xg();
                break;
              case "addRowButtonOption":
                f2 = function(t4, e4) {
                  v2.rEe = H, v2.zw(), v2.$Dr({ type: "setWorksheetOptions", propertyName: n3, value: e4, secondLevelPropertyName: t4 });
                }, l2 = v2.options.addRowButtonOption, ["visible", "command", "height", "style", "tooltip"].forEach((function(t4) {
                  if (!T(e3)) {
                    var n4 = e3[t4];
                    rn(l2, t4, f2), on(l2, t4, n4);
                  }
                })), v2.rEe = H, v2.zw();
                break;
              case "addColumnButtonOption":
                h2 = function(t4, e4) {
                  v2.oEe = H, v2.zw(), v2.$Dr({ type: "setWorksheetOptions", propertyName: n3, value: e4, secondLevelPropertyName: t4 });
                }, d2 = v2.options.addColumnButtonOption, ["visible", "command", "width", "style", "tooltip"].forEach((function(t4) {
                  if (!T(e3)) {
                    var n4 = e3[t4];
                    rn(d2, t4, h2), on(d2, t4, n4);
                  }
                })), v2.oEe = H, v2.zw();
                break;
              case "keepUnknownFormulas":
                v2.options.keepUnknownFormulas = e3;
            }
            v2.ki(r.Events.SheetOptionsChangedInternal, { propertyName: n3, value: e3 });
          }, t3.prototype.getUsedRange = function(n3) {
            var e3, i3, o2, a2, u2, s2, c2, f2, l2, d2, v2, g2;
            return T(n3) ? H : (u2 = (a2 = (o2 = this).Ut).getUsedRange(n3) || {}, s2 = o2.getRowCount(), c2 = o2.getColumnCount(), n3 & h.UsedRangeType.formula && p && (l2 = (f2 = o2.b3()).usedRange, T(l2) || At(u2, l2.getUsedRange()), (d2 = o2.Uw && o2.Uw(3)) && d2.t8 && At(u2, d2.t8.Ume())), At(u2, null === (e3 = o2.rowOutlines) || void 0 === e3 ? void 0 : e3.getUsedRange(n3)), At(u2, null === (i3 = o2.columnOutlines) || void 0 === i3 ? void 0 : i3.getUsedRange(n3)), t3.et(o2, "getUsedRange", { type: n3, range: u2 }), u2 && Object.keys(u2).length > 0 ? (u2.minRow < 0 && (u2.minRow = 0, u2.maxRow = s2 - 1), u2.minCol < 0 && (u2.minCol = 0, u2.maxCol = c2 - 1), u2.maxRow >= s2 && u2.maxRow !== 1 / 0 && (u2.maxRow = s2 - 1), u2.maxCol >= c2 && u2.maxCol !== 1 / 0 && (u2.maxCol = c2 - 1), v2 = u2.maxRow === 1 / 0 ? -1 : u2.maxRow - u2.minRow + 1, g2 = u2.maxCol === 1 / 0 ? -1 : u2.maxCol - u2.minCol + 1, new r.Range(u2.minRow, u2.minCol, v2, g2)) : H);
          }, t3.prototype.getUsedRangeByRange = function(n3, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2, d2, v2, g2;
            return T(n3) || T(e3) ? H : (i3 = new r.Range(e3.row, e3.col, e3.rowCount, e3.colCount), a2 = (o2 = this).Ut, u2 = o2.getRowCount(), s2 = o2.getColumnCount(), -1 !== i3.row && -1 !== i3.rowCount || (i3.row = 0, i3.rowCount = u2), -1 !== i3.col && -1 !== i3.colCount || (i3.col = 0, i3.colCount = s2), c2 = a2.getUsedRange(n3, i3) || {}, t3.et(o2, "getUsedRange", { type: n3, range: c2, maxRange: i3 }), n3 & h.UsedRangeType.formula && p && (l2 = (f2 = o2.b3()).usedRange, T(l2) || At(c2, l2.getUsedRange(i3)), (d2 = o2.Uw && o2.Uw(3)) && d2.t8 && At(c2, d2.t8.Ume(i3))), c2 && Object.keys(c2).length > 0 ? ((c2.maxRow >= u2 || c2.maxRow === 1 / 0) && (c2.maxRow = z(u2, i3.row + i3.rowCount) - 1), (c2.maxCol >= s2 || c2.maxCol === 1 / 0) && (c2.maxCol = z(s2, i3.col + i3.colCount) - 1), c2.minRow = Y(c2.minRow, i3.row), c2.minCol = Y(c2.minCol, i3.col), v2 = c2.maxRow - c2.minRow + 1, g2 = c2.maxCol - c2.minCol + 1, new r.Range(c2.minRow, c2.minCol, v2, g2)) : H);
          }, t3.prototype.name = function(t4) {
            var n3 = this, e3 = n3.parent;
            if (0 === arguments.length) return n3.Ut ? n3.Ut.getName() : "";
            if (!N(t4, e3 ? e3.sheets : null, n3)) throw xt().Exp_NotSupported;
            return n3.ub(t4), e3 && e3.Xg(), n3;
          }, t3.prototype.isSelected = function(t4) {
            return this.b2(t4);
          }, t3.prototype.b2 = function(t4, n3) {
            var e3, i3, o2, a2 = this, u2 = a2.parent, s2 = !!a2.Ut && a2.Ut.Xj();
            return T(t4) ? s2 : (t4 !== s2 && (e3 = a2.name(), i3 = u2 && u2.Ese(e3), o2 = void 0, n3 && (o2 = { oldValue: s2, newValue: t4, sheetName: e3, propertyName: "isSelected", cancel: false, sheetIndex: i3, sheetPosition: u2 && u2.getSheetPosition(e3) }, u2 && u2.ki(r.Events.SheetChanging, o2)), (!n3 || o2 && false === o2.cancel) && (a2.Ut.qj(t4), u2 && u2.w2 && u2.w2.repaint(), n3 && u2 && u2.ki(r.Events.SheetChanged, { oldValue: s2, newValue: t4, sheetName: e3, propertyName: "isSelected", sheetIndex: i3, sheetPosition: u2 && u2.getSheetPosition(e3) }))), a2);
          }, t3.prototype.Mtt = function(t4) {
            this.Ut.undo(t4);
          }, t3.prototype.vCn = function() {
            this.Ut.startTransaction();
          }, t3.prototype.FCn = function() {
            return this.Ut.endTransaction();
          }, t3.prototype.ub = function(n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.name(), s2 = a2.parent;
            if (e3 || t3.et(a2, "beforeSetName", { oldName: u2, newName: n3 }), a2.Ut.do("setName", n3), s2 && (r2 = (i3 = s2.sheetTabStyles).xTe[u2], u2 !== n3 && r2)) {
              for (o2 in r2) r2.hasOwnProperty(o2) && i3.add(+o2, r2[o2], [n3]);
              i3.clear([u2]);
            }
            e3 || t3.et(a2, "setName", { oldName: u2, newName: n3 });
          }, t3.prototype.addRows = function(t4, n3, e3) {
            this.ffe(t4, n3, e3);
          }, t3.prototype.ffe = function(n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2;
            if (void 0 === i3 && (i3 = h.SheetArea.viewport), a2 = i3, (i3 = tn(i3)) !== h.SheetArea.corner && !(e3 <= 0)) {
              s2 = Bt(u2 = this, i3), (n3 < 0 || n3 > s2) && (n3 = s2), u2.suspendPaint();
              try {
                if (c2 = "addRows", !u2.kj(n3, a2, c2, e3, s2)) return;
                if (f2 = null === (o2 = null == r2 ? void 0 : r2.clearUndoNotInCommand) || void 0 === o2 || o2, 0 === u2.Ut.P8 && f2 && u2.parent && u2.parent.Wp.clear(), u2.sL(false, i3), l2 = { changeType: "addingRows", row: n3, rowCount: e3, canAdd: true, sheetArea: i3 }, t3.et(u2, it, l2), !l2.canAdd) return;
                T(l2.newRow) || (n3 = l2.newRow), this.Ut.do("addRows", n3, e3, V, V, i3), u2.Ww = true, t3.et(u2, it, { changeType: c2, row: n3, oldValue: s2, rowCount: e3, rowExpand: null == r2 ? void 0 : r2.rowExpand, ignoreExpand: null == r2 ? void 0 : r2.ignoreExpand, sheetArea: i3, G8: this.Ut.G8 }), i3 === h.SheetArea.viewport && u2.tables && u2.tables.cL(true, n3), u2.dj(n3, a2, c2, e3, s2);
              } finally {
                u2.sL(true, i3), u2.resumePaint();
              }
            }
          }, t3.prototype.sL = function(t4, n3) {
            if (void 0 === n3 && (n3 = h.SheetArea.viewport), n3 === h.SheetArea.viewport) {
              var e3 = this, i3 = e3.ui, r2 = e3.ci;
              e3.Ut.setCellState(i3, r2, h.CellStatesType.active, t4, n3);
            }
          }, t3.prototype.deleteRows = function(t4, n3, e3) {
            void 0 === e3 && (e3 = h.SheetArea.viewport), this.QBe(t4, n3, e3);
          }, t3.prototype.QBe = function(n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2;
            if (void 0 === i3 && (i3 = h.SheetArea.viewport), void 0 === r2 && (r2 = true), o2 = i3, (i3 = tn(i3)) !== h.SheetArea.corner && (u2 = Bt(a2 = this, i3), !(0 > n3 || n3 >= u2 || e3 <= 0))) {
              a2.suspendPaint(), null == (s2 = dn(a2)) || s2.startRecordOp();
              try {
                if (c2 = "deleteRows", !a2.kj(n3, o2, c2, e3, u2)) return;
                if (0 === a2.Ut.P8 && r2 && a2.parent && a2.parent.Wp.clear(), f2 = i3 === h.SheetArea.colHeader, l2 = a2.THr({ type: "deleteRows", sheetArea: f2 ? i3 : h.SheetArea.viewport, row: n3, rowCount: e3 }), a2.sL(false, i3), d2 = { changeType: "deletingRows", row: n3, rowCount: e3, canDelete: true, sheetArea: i3 }, t3.et(a2, it, d2), !d2.canDelete) return;
                if (i3 === h.SheetArea.viewport && a2._j(n3, e3, 0, this.getColumnCount()), a2.Ut.do("deleteRows", n3, e3, V, i3, { triggerChanged: false }), (v2 = a2.Tb) >= 0) {
                  for (p2 = -1, g2 = zt(a2), m2 = v2; m2 >= g2; m2--) if (a2.getRowVisible(m2) && a2.Gt(m2) > 0) {
                    p2 = m2;
                    break;
                  }
                  -1 === p2 && (p2 = 0), v2 !== p2 && a2.$A(p2);
                }
                b2 = Bt(a2), a2.getActiveRowIndex() >= b2 && (y2 = b2 - 1, w2 = a2.getActiveColumnIndex(), (M2 = a2.getSpan(y2, w2)) && (y2 = M2.row, w2 = M2.col), a2.setActiveCell(y2, w2)), a2.Ww = true, t3.et(a2, it, { changeType: c2, row: n3, oldValue: u2, rowCount: e3, sheetArea: i3, G8: a2.Ut.G8 }), a2.$Dr({ type: "deleteRows", sheetArea: f2 ? i3 : h.SheetArea.viewport, row: n3, rowCount: e3 }, l2), i3 === h.SheetArea.viewport && a2.tables && a2.tables.cL(true, n3), a2.dj(n3, o2, c2, e3, u2);
              } finally {
                a2.sL(true, i3), null == s2 || s2.dro(null == s2 ? void 0 : s2.endRecordOp()), a2.resumePaint();
              }
            }
          }, t3.prototype.addColumns = function(t4, n3, e3) {
            void 0 === e3 && (e3 = h.SheetArea.viewport), this.WBe(t4, n3, e3);
          }, t3.prototype.WBe = function(n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2;
            void 0 === i3 && (i3 = h.SheetArea.viewport), a2 = i3, (i3 = nn(i3)) !== h.SheetArea.corner && (e3 <= 0 || (s2 = Ft(u2 = this, i3), (n3 < 0 || n3 > s2) && (n3 = s2), c2 = "addColumns", u2.Dj(n3, a2, c2, e3, s2) && (f2 = null === (o2 = null == r2 ? void 0 : r2.clearUndoNotInCommand) || void 0 === o2 || o2, 0 === u2.Ut.P8 && f2 && u2.parent && u2.parent.Wp.clear(), l2 = { changeType: "addingColumns", col: n3, colCount: e3, canAdd: true, sheetArea: i3 }, t3.et(u2, it, l2), l2.canAdd && (u2.sL(false, i3), u2.Ut.do("addColumns", n3, e3, V, i3), u2.Zw = true, t3.et(u2, it, { changeType: c2, col: n3, oldValue: s2, colCount: e3, sheetArea: i3, ignoreExpand: null == r2 ? void 0 : r2.ignoreExpand, G8: u2.Ut.G8 }), i3 === h.SheetArea.viewport && u2.tables && u2.tables.cL(false, n3), u2.vj(n3, a2, c2, e3, s2), u2.sL(true, i3), u2.zw()))));
          }, t3.prototype.deleteColumns = function(t4, n3, e3) {
            void 0 === e3 && (e3 = h.SheetArea.viewport), this.KBe(t4, n3, e3);
          }, t3.prototype.KBe = function(n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2;
            if (void 0 === i3 && (i3 = h.SheetArea.viewport), void 0 === r2 && (r2 = true), o2 = i3, (i3 = nn(i3)) !== h.SheetArea.corner && (u2 = Ft(a2 = this, i3), !(0 > n3 || n3 >= u2 || e3 <= 0) && (s2 = "deleteColumns", a2.Dj(n3, o2, s2, e3, u2)))) if (0 === a2.Ut.P8 && r2 && a2.parent && a2.parent.Wp.clear(), null == (c2 = dn(a2)) || c2.startRecordOp(), f2 = i3 === h.SheetArea.rowHeader, l2 = a2.THr({ type: "deleteColumns", sheetArea: f2 ? i3 : h.SheetArea.viewport, col: n3, colCount: e3 }), d2 = { changeType: "deletingColumns", col: n3, colCount: e3, canDelete: true, sheetArea: i3 }, t3.et(a2, it, d2), d2.canDelete) {
              if (a2.sL(false, i3), i3 === h.SheetArea.viewport && a2._j(0, this.getRowCount(), n3, e3), a2.Ut.do("deleteColumns", n3, e3, V, i3, { triggerChanged: false }), (v2 = a2.Ab) >= 0) {
                for (p2 = -1, g2 = Vt(a2), m2 = v2; m2 >= g2; m2--) if (a2.getColumnVisible(m2) && a2.nn(m2) > 0) {
                  p2 = m2;
                  break;
                }
                -1 === p2 && (p2 = 0), v2 !== p2 && a2.o9(p2);
              }
              b2 = Ft(a2), a2.getActiveColumnIndex() >= b2 && (y2 = a2.getActiveRowIndex(), w2 = b2 - 1, (M2 = a2.getSpan(y2, w2)) && (y2 = M2.row, w2 = M2.col), a2.setActiveCell(y2, w2)), a2.Zw = true, t3.et(a2, it, { changeType: s2, col: n3, oldValue: u2, colCount: e3, sheetArea: i3, G8: a2.Ut.G8 }), a2.$Dr({ type: "deleteColumns", sheetArea: f2 ? i3 : h.SheetArea.viewport, col: n3, colCount: e3 }, l2), i3 === h.SheetArea.viewport && a2.tables && a2.tables.cL(false, n3), a2.vj(n3, o2, s2, e3, u2), a2.sL(true, i3), null == c2 || c2.bro(null == c2 ? void 0 : c2.endRecordOp()), a2.zw();
            } else null == c2 || c2.bro(null == c2 ? void 0 : c2.endRecordOp());
          }, t3.prototype.frozenColumnCount = function(t4, n3) {
            var e3 = this;
            if (0 === arguments.length) return e3.fp;
            e3.bme(t4, n3);
          }, t3.prototype.bme = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this;
            t4 >= 0 && ((T(n3) || "number" != typeof n3) && (n3 = 0), o2 = c2.THr({ type: "setFrozen", isRow: false, isTrailing: false }), a2 = null !== (i3 = c2.fp) && void 0 !== i3 ? i3 : 0, u2 = null !== (r2 = c2.Dve) && void 0 !== r2 ? r2 : 0, c2.fp = t4, n3 > 0 ? (s2 = c2.getColumnCount(), e3 || z(n3, t4) < s2 ? c2.Dve = n3 < t4 - 1 ? n3 : t4 - 1 : c2.Dve = s2 - 1) : c2.Dve = 0, c2.Ab < t4 ? c2.Ab = t4 : "" !== t4 && 0 !== t4 && null !== t4 || (c2.Ab = u2 || 0), c2.Zw = true, c2.zw(), a2 === c2.fp && u2 === c2.Dve || c2.$Dr({ type: "setFrozen", isRow: false, isTrailing: false, beginIndex: c2.Dve, count: c2.fp }, o2));
          }, t3.prototype.frozenRowCount = function(t4, n3) {
            var e3 = this;
            if (0 === arguments.length) return e3.ap;
            e3.pme(t4, n3);
          }, t3.prototype.pme = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this;
            t4 >= 0 && ((T(n3) || "number" != typeof n3) && (n3 = 0), a2 = l2.THr({ type: "setFrozen", isRow: true, isTrailing: false }), u2 = null !== (i3 = l2.ap) && void 0 !== i3 ? i3 : 0, s2 = null !== (r2 = l2._ve) && void 0 !== r2 ? r2 : 0, c2 = null !== (o2 = l2.Tb) && void 0 !== o2 ? o2 : 0, l2.ap = t4, n3 > 0 ? (f2 = l2.getRowCount(), e3 || z(n3, t4) < f2 ? l2._ve = n3 < t4 - 1 ? n3 : t4 - 1 : l2._ve = f2 - 1) : l2._ve = 0, l2.Tb < t4 ? l2.Tb = t4 : "" !== t4 && 0 !== t4 && null !== t4 || (l2.Tb = s2 || 0), l2.Ww = true, l2.zw(), u2 === l2.ap && s2 === l2._ve || l2.$Dr({ type: "setFrozen", isRow: true, isTrailing: false, beginIndex: l2._ve, count: l2.ap }, a2), c2 !== l2.Tb && l2.$Dr({ type: "updateTopLeftPosition", leftCol: l2.Ab, topRow: l2.Tb }));
          }, t3.prototype.jve = function(t4) {
            void 0 === t4 && (t4 = 0);
            var n3, e3 = Yt(this), i3 = t4;
            return e3 > 0 && (i3 = e3), i3;
          }, t3.prototype.Eve = function(t4) {
            void 0 === t4 && (t4 = 0);
            var n3, e3 = Zt(this), i3 = t4;
            return e3 > 0 && (i3 = e3), i3;
          }, t3.prototype.frozenTrailingRowCount = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            return 0 === arguments.length ? o2.fL : (t4 >= 0 && (T(n3) && (n3 = true), e3 = o2.THr({ type: "setFrozen", isRow: true, isTrailing: true }), i3 = o2.fL, r2 = o2.Ny, o2.fL = t4, o2.Ny = n3, o2.Ww = true, o2.zw(), i3 === o2.fL && r2 === o2.Ny || o2.$Dr({ type: "setFrozen", isStickToEdge: n3, count: t4, isRow: true, isTrailing: true }, e3)), o2);
          }, t3.prototype.frozenTrailingColumnCount = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            return 0 === arguments.length ? o2.lL : (t4 >= 0 && (T(n3) && (n3 = true), e3 = o2.THr({ type: "setFrozen", isRow: false, isTrailing: true }), i3 = o2.lL, r2 = o2.Vy, o2.lL = t4, o2.Vy = n3, o2.Zw = true, o2.zw(), i3 === o2.lL && r2 === o2.Vy || o2.$Dr({ type: "setFrozen", isStickToEdge: n3, count: t4, isRow: false, isTrailing: true }, e3)), o2);
          }, t3.prototype.getFrozenTrailingState = function(t4) {
            var n3 = this;
            return t4 ? n3.Ny : n3.Vy;
          }, t3.prototype.getFrozenTopLeftIndex = function(t4) {
            var n3 = this;
            return t4 ? n3._ve : n3.Dve;
          }, t3.prototype.aEe = function() {
            var t4 = this, n3 = t4.isActualProtected() && t4.options.protectionOptions && !t4.options.protectionOptions.allowInsertRows, e3 = qt(t4);
            return n3 && t4.X_e(e3) ? H : e3;
          }, t3.prototype.X_e = function(t4) {
            return t4 === dt;
          }, t3.prototype.uEe = function() {
            var t4 = this, n3 = t4.isActualProtected() && t4.options.protectionOptions && !t4.options.protectionOptions.allowInsertColumns, e3 = $t(t4);
            return n3 && t4.q_e(e3) ? H : e3;
          }, t3.prototype.q_e = function(t4) {
            return t4 === vt;
          }, t3.prototype.J_e = function(t4, n3) {
            var e3, i3, r2 = this;
            if (t4 === h.SheetArea.colHeader) {
              if (!T(r2.oEe)) return r2.oEe.clone(true);
            } else {
              if (t4 !== h.SheetArea.rowHeader) return H;
              if (!T(r2.rEe)) return r2.rEe.clone(true);
            }
            return e3 = Wt(r2, t4), T(e3) ? H : (i3 = e3.style, i3 = T(i3) ? r2.getActualStyle(V, V, t4, true, { notClone: true }).clone(true) : i3.clone(true).v5(r2.hl), n3 && T(i3.cellType) && (i3.cellType = r2.K_e(t4)), t4 === h.SheetArea.colHeader ? r2.oEe = i3 : r2.rEe = i3, i3.clone(true));
          }, t3.prototype.Gy = function(t4) {
            var n3 = Ht(this), e3 = t4.hL;
            return n3 ? e3 + t4.Uy : e3;
          }, t3.prototype.Sy = function(t4) {
            var n3 = Ut(this), e3 = t4.A6;
            return n3 ? e3 + t4.Ty : e3;
          }, t3.prototype.getRowCount = function(t4) {
            return 0 === t4 ? 0 : this.Ut.getRowCount(t4);
          }, t3.prototype.getColumnCount = function(t4) {
            return 0 === t4 ? 0 : this.Ut.getColumnCount(t4);
          }, t3.prototype.setRowCount = function(n3, e3, i3) {
            var r2, o2, a2;
            T(e3) && (e3 = 3), r2 = this, T(i3) || (o2 = r2.getUsedRange(i3), T(o2) || (-1 === o2.rowCount && (o2.rowCount = r2.getRowCount(e3)), n3 = Math.max(n3, o2.row + o2.rowCount))), a2 = { changeType: "settingRowCount", rowCount: n3, sheetArea: e3, canSet: true }, t3.et(r2, it, a2), a2.canSet && r2.setRowCountCore(n3, e3);
          }, t3.prototype.setRowCountCore = function(n3, e3) {
            var i3, r2;
            n3 = P(n3, 10), U(n3) || (T(e3) && (e3 = 3), r2 = (i3 = this).getRowCount(e3), n3 < 0 || n3 === r2 || (3 === e3 || 2 === e3 ? (i3.Ut.do("setRowCount", n3, e3), zt(i3) > n3 && i3.frozenRowCount(n3)) : 1 === e3 && i3.Ut.do("setRowCount", n3, e3), t3.et(i3, it, { changeType: "setRowCount", row: r2, rowCount: n3, sheetArea: e3, G8: i3.Ut.G8 }), i3.Ww = true, i3.ui >= n3 && (3 === e3 || 2 === e3) && i3.setActiveCell(n3 - 1, i3.getActiveColumnIndex()), i3.zw(), i3.clearPendingChanges()));
          }, t3.prototype.setColumnCount = function(t4, n3, e3) {
            var i3 = this;
            i3.Vuo(t4, n3, e3), i3.clearPendingChanges();
          }, t3.prototype.Vuo = function(n3, e3, i3) {
            var r2, o2, a2;
            n3 = P(n3, 10), U(n3) || (o2 = (r2 = this).getColumnCount(e3), n3 < 0 || n3 === o2 || (T(e3) && (e3 = 3), T(i3) || (a2 = r2.getUsedRange(i3), T(a2) || (-1 === a2.colCount && (a2.colCount = r2.getColumnCount(e3)), n3 = Math.max(n3, a2.col + a2.colCount))), 3 === e3 || 1 === e3 ? (r2.Ut.do("setColumnCount", n3, e3), Vt(r2) > n3 && r2.frozenColumnCount(n3)) : 2 === e3 && r2.Ut.do("setColumnCount", n3, e3), t3.et(r2, it, { changeType: "setColumnCount", col: o2, colCount: n3, sheetArea: e3, G8: r2.Ut.G8 }), r2.Zw = true, r2.ci >= n3 && (3 === e3 || 1 === e3) && r2.setActiveCell(r2.getActiveRowIndex(), n3 - 1), r2.zw()));
          }, t3.prototype.getFreeAreaRowCount = function(t4) {
            var n3;
            return this.Ut.getFreeAreaRowCount(t4);
          }, t3.prototype.getFreeAreaColumnCount = function(t4) {
            var n3;
            return this.Ut.getFreeAreaColumnCount(t4);
          }, t3.prototype.setFreeAreaRowCount = function(t4, n3) {
            var e3;
            this.Ut.setFreeAreaRowCount(t4, n3);
          }, t3.prototype.setFreeAreaColumnCount = function(t4, n3) {
            var e3;
            this.Ut.setFreeAreaColumnCount(t4, n3);
          }, t3.prototype.w8 = function(t4) {
            var n3, e3, i3, r2, o2;
            if (!T(t4) && (n3 = t4.rows, i3 = false, this.filterRowsVisibleInfo)) {
              if (r2 = this.filterRowsVisibleInfo.rowsVisibleInfo || {}, n3 && n3.length > 0) for (o2 = 0; o2 < n3.length; o2++) (e3 = n3[o2]) && e3.isFilter && (e3.visible = true, delete e3.isFilter, r2[o2] = false, i3 = true);
              i3 && (this.filterRowsVisibleInfo.rowsVisibleInfo = r2, this.filterRowsVisibleInfo.empty = false);
            }
          }, t3.prototype.Oe = function(t4, n3, i3, r2) {
            var o2 = this;
            return g || (g = e2("SheetsCalc")), g ? o2.dL(t4, n3, i3, r2) : V;
          }, t3.prototype.t0 = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this;
            if (3 === e3) {
              if (c2.options.showFormulas) {
                if (r2 = c2.getFormula(t4, n3, 3, true)) return "=" !== r2[0] && (r2 = "=" + r2), r2;
                if (a2 = (o2 = c2.Uw && c2.Uw(e3)) && o2.t8.getAnchorInfo(t4, n3)) return "";
              } else if (!c2.options.showZeros && (0 === (u2 = c2.getValue(t4, n3, 3)) || u2 instanceof Date && u2.getTime() === L) && ((s2 = c2.getFormatter(t4, n3)) || (s2 = null === (i3 = c2.getStyle(t4, n3)) || void 0 === i3 ? void 0 : i3._autoFormatter), "object" == typeof s2 && s2.formatCached && (s2 = s2.formatCached), !s2 || "string" != typeof s2 || !("=" === s2[0] || s2.split(";").length >= 3))) return "";
            }
          }, t3.prototype.getText = function(t4, n3, e3) {
            var i3, r2, o2;
            return T(e3) && (e3 = 3), r2 = (i3 = this).t0(t4, n3, e3), T(r2) ? (o2 = i3.getValue(t4, n3, e3), i3.vL(t4, n3, o2, e3, true)) : r2;
          }, t3.prototype.setText = function(n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2 = this;
            T(r2) && (r2 = 3), o2 = i3, a2 = { value: i3 }, t3.et(l2, "settingText", a2), u2 = i3 = a2.value, s2 = l2.getCellType(n3, e3, r2), c2 = l2.getFormatter && l2.getFormatter(n3, e3, r2), s2 && c2 && !S(c2) && (f2 = { sheet: l2, row: n3, col: e3, sheetArea: r2 }, u2 = s2.parse(o2, c2, f2), u2 = T(u2) ? i3 : u2), l2.YI(n3, e3, u2, r2), l2.zw();
          }, t3.prototype.getValue = function(t4, n3, e3, i3, r2) {
            return void 0 === r2 && (r2 = {}), this.mL(t4, n3, e3, i3, r2);
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2) {
            this.YI(t4, n3, e3, i3, r2), this.Lhe();
          }, t3.prototype.Ij = function(t4, n3, e3, i3) {
            var r2 = this;
            !i3 && p && r2.gL(t4, n3, e3), r2.Q1i && r2.Q1i(t4, n3, 1, 1, e3), r2.Mhe && r2.Mhe(t4, n3, e3);
          }, t3.prototype.Tj = function() {
            var t4 = this.conditionalFormats;
            t4 && t4.dl();
          }, t3.prototype.Lj = function(t4, n3, e3) {
            var i3;
            t4 && t4.parent && t4.parent.sheets && t4.parent.sheets.forEach((function(i4) {
              i4.shapes && i4.shapes.NsV(t4, n3, e3);
            }));
          }, t3.prototype.clearCameraShapeCache = function(t4, n3, e3) {
            this.Lj(t4, n3, e3);
          }, t3.prototype.Bhe = function(t4, n3, e3, i3) {
            var r2 = this;
            r2.Ij(t4, n3, e3, i3), r2.Tj();
          }, t3.prototype.YI = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2;
            0 !== i3 && (T(i3) && (i3 = 3), c2 = (s2 = (u2 = this).Ut).getRowCount(i3), f2 = s2.getColumnCount(i3), t4 < 0 || t4 >= c2 || n3 < 0 || n3 >= f2 || (e3 = O(e3), e3 = C(e3), l2 = u2.Uw && u2.Uw(i3), !o2 && l2 && l2.t8.Fgt(t4, n3), s2.do("setValue", t4, n3, e3, i3, V, V, V, V, V, a2), u2.Bhe(t4, n3, i3, r2)));
          }, t3.prototype.Lhe = function() {
            var t4 = this.parent, n3 = t4 && t4.getActiveSheet();
            n3 && true === n3.iL ? n3.zw() : this.zw(), un(t4);
          }, t3.prototype.getValueIgnoreDefault = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2 = this.Ut;
            return u2.Ohe = true, a2 = this.mL(t4, n3, e3, i3, { realValue: r2, isCopy: o2 }), delete u2.Ohe, a2;
          }, t3.prototype.getDefaultValue = function(t4, n3) {
            return E(this.Ut.getDefaultValue(t4, n3));
          }, t3.prototype.getDefaultValueByType = function(t4, n3, e3, i3) {
            return E(this.Ut.getDefaultValue(t4, n3, e3, i3));
          }, t3.prototype.setDefaultValue = function(t4, n3, e3) {
            var i3 = this;
            i3.Ut.setDefaultValue(t4, n3, e3), i3.Bhe(t4, n3, 3, true), i3.Lhe();
          }, t3.prototype.Il = function(t4, n3, e3, i3, r2) {
            void 0 === r2 && (r2 = {});
            var o2 = this, a2;
            return a2 = o2.getActualStyle(t4, n3, e3, i3, r2), ln(o2, t4, n3, a2, e3), a2;
          }, t3.prototype.getActualStyle = function(t4, n3, e3, i3, r2) {
            var o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2;
            if (void 0 === r2 && (r2 = {}), T(e3) && (e3 = 3), 0 === e3) return new u.Style();
            if (-1 === t4 && -1 === n3) return this.getDefaultStyle(e3);
            if (o2 = x(r2.rowSpacingIndex), d2 = (a2 = this).pL, C2 = "__spreadJSDefault", A2 = "__undefined", I2 = this.Ut, !o2 && 3 === e3 && a2.pivotTables && (N2 = (k2 = a2.pivotTables.findPivotTable(t4, n3) || H) && k2.hqt(t4, n3)), f2 = I2.getStyle(t4, n3, e3, r2), l2 = I2.getStyle(t4, -1, e3, r2), h2 = I2.getStyle(-1, n3, e3, r2), f2 = f2 || H, l2 = l2 || H, h2 = h2 || H, r2.ignoreSheet && (-1 === t4 && (l2 = H), -1 === n3 && (h2 = H)), y2 = A2, j2 = a2.parent && a2.parent.Gie, f2 && (y2 = f2.charAt ? f2 : C2 + f2._id), w2 = A2, l2 && (w2 = l2.charAt ? l2 : C2 + l2._id), M2 = A2, h2 && (M2 = h2.charAt ? h2 : C2 + h2._id), v2 = (b2 = d2[e3])[y2], D2 = a2.tables, (_2 = 3 === e3 && D2 && !r2.isForFilter ? D2.find(t4, n3) : H) || k2 || a2.NMi || r2.doNotAddCache || (v2 || (v2 = b2[y2] = {}), (g2 = v2[w2]) ? m2 = g2[M2] : g2 = v2[w2] = {}), m2 || (c2 = a2.getCompositeStyle(t4, n3, e3, f2, l2, h2, { table: _2, isForFilter: r2.isForFilter, pivotTableStyle: N2, ignoreSheet: r2.ignoreSheet, pivotTable: k2, rowSpacingIndex: r2.rowSpacingIndex, isAfterRowSpacing: r2.isAfterRowSpacing })), o2 || !(3 === e3 || t4 < a2.getFreeAreaRowCount(e3) || 1 === e3 && a2.NMi) || i3 || (O2 = a2.conditionalFormats) && (s2 = O2.bL(s2, t4, n3, e3)), o2 || !(3 === e3 || t4 < a2.getFreeAreaRowCount(e3)) || i3 || (T(s2) || T(s2.foreColor)) && (!(E2 = s2 && s2.formatter || m2 && m2.formatter || c2 && c2.formatter || f2 && f2._autoFormatter) || r2.isForFilter || S(E2) || (R2 = hn(E2, a2.getValue(t4, n3, e3))) && (T(s2) && (s2 = new u.Style()), s2.foreColor = R2)), s2) p2 = m2 || c2, s2.h5(p2), s2.font && p2 && p2.font && s2.font !== p2.font && (s2.font = en(s2, p2)), c2 = s2;
            else if (m2) return !a2.cellStates || i3 || j2 || (L2 = a2.cellStates.getStyle(t4, n3, e3, H, m2.locked)) && (L2.h5(m2), (m2 = L2).v5(a2.hl)), r2.notClone ? m2 : m2.clone(true);
            return r2.ignoreSheet || (T(c2.locked) && (c2.locked = true), T(c2.hidden) && (c2.hidden = false), c2 = c2.v5(a2.hl)), s2 || _2 || k2 || a2.NMi || r2.doNotAddCache || (g2[M2] = c2.clone(true)), o2 || !a2.cellStates || i3 || j2 || r2.ignoreCellStatesStyle || (F2 = a2.cellStates.getStyle(t4, n3, e3, H, c2.locked)) && (!(E2 = F2.formatter) || r2.isForFilter || S(E2) || (R2 = hn(E2, a2.getValue(t4, n3, e3))) && (F2.foreColor = R2), F2.h5(c2), c2 = (c2 = F2).v5(a2.hl)), c2;
          }, t3.prototype.l0 = function(t4, n3, e3, i3, o2) {
            var a2, s2, c2, f2, l2, h2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2;
            if (void 0 === o2 && (o2 = {}), 0 === i3) return V;
            if (T(i3) && (i3 = 3), l2 = (a2 = this).Ut, v2 = false, 3 === i3) {
              if ("foreColor" === e3) {
                g2 = a2.l0(t4, n3, "formatter", i3);
                try {
                  (m2 = d.Formatter && d.Formatter.GeneralFormatter) && typeof g2 === X && (g2 = r.Be.Ue(g2));
                } catch (t5) {
                }
                g2 && (g2.hasFormattedColor && g2.hasFormattedColor() || d.Formatter && g2 instanceof d.Formatter.FormatterBase) && (b2 = { conditionalForeColor: H }, g2.format(a2.getValue(t4, n3), b2), b2.conditionalForeColor && (h2 = b2.conditionalForeColor, v2 = true));
              }
              y2 = a2.pivotTables, (w2 = 3 === i3 && y2 ? y2.findPivotTable(t4, n3) : H) && (M2 = w2.TQr(t4, n3, e3)).yL && (v2 = M2.yL, h2 = M2.Y6), C2 = a2.conditionalFormats, !v2 && C2 && C2.count(i3) > 0 && (v2 = (S2 = C2.wL(t4, n3, e3, i3)).yL, h2 = S2.Y6);
            }
            for (x2 = 0; !v2 && x2 <= 4; ) if (0 === x2 ? s2 = l2.getStyle(t4, n3, i3, o2) : 1 === x2 ? (A2 = !a2.E0r && a2.tables, (I2 = 3 === i3 && A2 ? A2.find(t4, n3) : H) && St[e3] && (s2 = I2.ML(t4, n3, e3))) : s2 = 2 === x2 ? l2.getStyle(t4, -1, i3, o2) : 3 === x2 ? l2.getStyle(-1, n3, i3, o2) : a2.getDefaultStyle(i3), x2++, s2 && s2.charAt && typeof s2 === X && (s2 = a2.u8(s2)), s2) {
              if ("font" !== e3 && "fontStyle" !== e3 && "fontWeight" !== e3 && "fontSize" !== e3 && "fontFamily" !== e3 || !s2.themeFont || p2 || (p2 = s2.themeFont), s2[e3] !== V) {
                h2 = s2[e3], v2 = true;
                break;
              }
              for (c2 = s2.parentName, k2 = void 0; c2 && k2 !== c2 && (f2 = a2.u8(c2)); ) {
                if (f2[e3] !== V) {
                  h2 = f2[e3], v2 = true;
                  break;
                }
                c2 = f2.parentName, k2 = f2.name;
              }
            }
            return "locked" === e3 ? !!T(h2) || h2 : "hidden" === e3 ? !T(h2) && h2 : v2 || p2 ? ("foreColor" !== e3 && "backColor" !== e3 && "font" !== e3 && "fontStyle" !== e3 && "fontWeight" !== e3 && "fontSize" !== e3 && "fontFamily" !== e3 && "borderLeft" !== e3 && "borderTop" !== e3 && "borderRight" !== e3 && "borderBottom" !== e3 || ((s2 = new u.Style())[e3] = h2, "font" === e3 && p2 && (s2.themeFont = p2), s2.v5(a2.hl), h2 = s2[e3]), h2) : V;
          }, t3.prototype.getStyle = function(t4, n3, e3) {
            return this.Z_(t4, n3, e3, true);
          }, t3.prototype.Z_ = function(t4, n3, e3, i3, r2) {
            var o2, a2, s2, c2;
            if (void 0 === r2 && (r2 = {}), T(e3) && (e3 = 3), 0 !== e3) {
              if ((a2 = (o2 = this.Ut).getStyle(t4, n3, e3, r2)) instanceof u.Style) return i3 && this.r3(), a2;
              if (typeof a2 === X && (s2 = this.u8(a2)) !== H && s2 !== V) return (c2 = new u.Style()).h5(s2, false), i3 && this.r3(), c2;
            }
            return H;
          }, t3.prototype.addNamedStyle = function(t4) {
            this.$p(t4), this.zw();
          }, t3.prototype.$p = function(t4) {
            var n3, e3;
            if (t4) {
              if (!t4.name) throw new Error(xt().Exp_EmptyNamedStyle);
              n3 = t4.name.toUpperCase(), e3 = this.THr({ type: "addSheetNamedStyle", name: n3 }), this.Hp[n3] = t4, this.$Dr({ type: "addSheetNamedStyle", style: t4 }, e3);
            }
          }, t3.prototype.getNamedStyle = function(t4) {
            return this.i3(t4, true);
          }, t3.prototype.i3 = function(t4, n3) {
            var e3, i3 = this.Hp;
            return i3 && t4 ? ((e3 = i3[t4 = t4.toUpperCase()]) && n3 && this.r3(), e3) : H;
          }, t3.prototype.r3 = function() {
            this.pL = [{}, {}, {}, {}], this.sEe();
          }, t3.prototype.sEe = function() {
            this.rEe = H, this.oEe = H;
          }, t3.prototype.removeNamedStyle = function(t4) {
            var n3, e3, i3 = this.Hp;
            i3 && t4 && (t4 = t4.toUpperCase(), _(i3, t4) && ((n3 = i3[t4].formatter) && "string" == typeof n3 && this.parent.bp[n3] && this.parent.o3(n3), e3 = this.THr({ type: "removeSheetNamedStyle" }), delete i3[t4], this.$Dr({ type: "removeSheetNamedStyle", name: t4 }, e3), this.r3(), this.zw()));
          }, t3.prototype.getNamedStyles = function() {
            var t4 = [], n3 = this.Hp;
            return n3 && j(n3, (function(n4, e3) {
              t4.push(e3);
            })), this.r3(), t4;
          }, t3.prototype.setStyle = function(t4, n3, e3, i3) {
            var r2, o2;
            T(i3) && (i3 = 3), e3 && e3.backColor && "object" == typeof e3.backColor && b.W.processStops(e3.backColor), (r2 = this).CL(t4, n3, e3, i3), -1 === t4 && -1 === n3 && (r2.Sj[i3] = H), -1 !== t4 && -1 !== n3 || (o2 = e3 && e3.validator) && o2.condition() && 4 === o2.condition().conType() && o2.condition().getExpected(this, t4 < 0 ? 0 : t4, n3 < 0 ? 0 : n3), r2.r3(), r2.zw();
          }, t3.prototype.u5 = function(t4, n3, e3, i3) {
            var r2, o2, a2, s2 = this;
            s2.isActualProtected() ? (o2 = void 0, (r2 = s2.Z_(t4, n3, i3)) && r2.parentName && ((a2 = new u.Style()).h5(r2, true, 10), (0, u.composeParentStyle)(r2, a2, s2, false, 10, true), r2 = a2), e3 ? (o2 = r2 ? r2.locked : V, e3.locked !== o2 && (e3.locked = o2), s2.setStyle(t4, n3, e3, i3)) : r2 && ((o2 = r2.locked) !== V && ((e3 = new u.Style()).locked = o2), s2.setStyle(t4, n3, e3, i3))) : s2.setStyle(t4, n3, e3, i3);
          }, t3.prototype.getStyleName = function(t4, n3, e3) {
            var i3 = this.vI(t4, n3, e3);
            return i3 instanceof u.Style ? i3.name : i3;
          }, t3.prototype.setStyleName = function(t4, n3, e3, i3) {
            if (typeof e3 === X) {
              T(i3) && (i3 = 3);
              var r2 = this;
              this.CL(t4, n3, e3, i3), -1 === t4 && -1 === n3 && (r2.Sj[i3] = H), r2.r3(), r2.zw();
            }
          }, t3.prototype.vI = function(t4, n3, e3) {
            var i3;
            return T(e3) && (e3 = 3), 0 !== e3 && (i3 = this.Ut.getStyle(t4, n3, e3)), i3 || H;
          }, t3.prototype.getNamedStyleName = function(t4, n3, e3) {
            var i3 = this.vI(t4, n3, e3);
            return "string" == typeof i3 ? i3 : V;
          }, t3.prototype.CL = function(t4, n3, e3, i3) {
            var o2, a2, u2, c2, f2, l2, h2, d2, v2, p2;
            if (T(i3) && (i3 = 3), 0 !== i3) {
              if (u2 = (a2 = (o2 = this).Ut).getRowCount(i3), c2 = a2.getColumnCount(i3), "string" == typeof (f2 = o2.vI(t4, n3, i3)) && o2.parent && !T(f2) && (f2 = (0, s.Ngr)(f2, o2.parent)), t4 < -1 || t4 >= u2 || n3 < -1 || n3 >= c2) return;
              l2 = a2.getStyle(t4, n3, i3), a2.do("setStyle", t4, n3, e3, i3, f2), (h2 = o2.l0(t4, n3, "formatter", i3)) && S(h2) && o2.SL(t4, n3, h2), d2 = f2 && f2.cellType && f2.cellType.typeName || H, v2 = e3 && e3.cellType && e3.cellType.typeName || H, t4 === o2.ui && n3 === o2.ci && d2 !== v2 && r.hi.A1(o2) && o2.rt.aA(), p2 = "[styleinfo]", -1 !== t4 && -1 !== n3 ? o2.Rj(p2, t4, n3, i3, l2, e3) : -1 !== t4 && -1 === n3 ? o2.dj(t4, i3, p2, e3, l2) : -1 === t4 && -1 !== n3 && o2.vj(n3, i3, p2, e3, l2);
            }
          }, t3.prototype.SL = function(t4, n3, i3) {
            var r2 = this;
            S(i3) && (g || (g = e2("SheetsCalc")), g && r2.TL(t4, n3, i3));
          }, t3.prototype.getDefaultStyle = function(t4) {
            var n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2;
            return T(t4) && (t4 = 3), (s2 = (a2 = (o2 = this).Sj)[t4]) ? s2 : 0 !== t4 ? (typeof (f2 = (c2 = o2.Ut).getStyle(-1, -1, t4)) === X && (f2 = o2.u8(f2)), f2 || (f2 = new u.Style(), null === (e3 = null === (n3 = o2.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), c2.do("setStyle", -1, -1, f2, t4), null === (r2 = null === (i3 = o2.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3)), l2 = 1 === t4 || 2 === t4, typeof f2.hAlign === J && (f2.hAlign = l2 ? 1 : 3), typeof f2.vAlign === J && (f2.vAlign = l2 ? 1 : 0), typeof f2.imeMode === J && (f2.imeMode = 1), f2.font || typeof f2.themeFont !== J || (f2.themeFont = "Body"), a2[t4] = f2, f2) : ((h2 = new u.Style()).locked = true, h2.hidden = false, a2[t4] = h2, h2);
          }, t3.prototype.setDefaultStyle = function(t4, n3) {
            T(n3) && (n3 = 3);
            var e3 = this;
            0 !== n3 && e3.Ut.do("setStyle", -1, -1, t4, n3), e3.Sj[n3] = H, e3.r3(), e3.zw();
          }, t3.prototype.u8 = function(t4) {
            var n3, e3, i3 = this.i3(t4, false);
            return i3 || (i3 = (n3 = this.parent) && n3.i3(t4, false)), e3 = H, i3 && (e3 = i3.clone(true), (0, r.AL)(e3)), e3;
          }, t3.prototype.getCompositeStyle = function(t4, n3, e3, i3, r2, o2, a2) {
            var s2, c2, f2, l2;
            if (void 0 === a2 && (a2 = {}), T(e3) && (e3 = 3), c2 = this, f2 = new u.Style(), l2 = false, 0 !== e3) {
              if (l2 = c2.IL(t4, n3, e3, f2, l2, i3, a2.isCopy), a2.hasTableStyle) return l2 ? f2 : i3;
              l2 = c2.xL(t4, n3, e3, f2, l2, a2.table, a2.isForFilter), l2 = (s2 = c2.NL(t4, n3, e3, f2, l2, a2.pivotTable, a2.isForFilter, a2.pivotTableStyle)).changed, f2 = s2.destInfo, l2 = c2.kL(t4, e3, f2, l2, r2), l2 = c2.DL(n3, e3, f2, l2, o2);
            }
            return c2._L(e3, f2, l2, a2.ignoreSheet), f2;
          }, t3.prototype.IL = function(t4, n3, e3, i3, r2, o2, a2) {
            var s2, c2 = this, f2 = c2.Ut, l2 = f2.getRowCount(e3), h2 = f2.getColumnCount(e3);
            return 0 <= t4 && t4 < l2 && 0 <= n3 && n3 < h2 && ((s2 = o2 !== V ? o2 : f2.getStyle(t4, n3, e3, { isCopy: a2 })) && s2.charAt && (s2 = c2.u8(s2)), s2 && (i3.h5(s2, true, 10), r2 = true, (0, u.composeParentStyle)(s2, i3, c2, false, 10, true))), r2;
          }, t3.prototype.xL = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2 = this.tables;
            return o2 !== V || a2 || (o2 = 3 === e3 && s2 ? s2.find(t4, n3) : H), o2 && !a2 && (o2.h5(t4, n3, i3), r2 = true), r2;
          }, t3.prototype.NL = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2 = this, f2 = c2.pivotTables;
            return o2 !== V || a2 || (u2 = (o2 = 3 === e3 && f2 ? f2.findPivotTable(t4, n3) : H) && o2.hqt(t4, n3)), u2 && (u2.parentName && (s2 = c2.u8(u2.parentName)) && u2.h5(s2), u2.h5(i3), i3 = u2, r2 = true), o2 && (o2.wqt(t4, n3, i3), r2 = true), { changed: r2, destInfo: i3 };
          }, t3.prototype.kL = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = o2.Ut, s2 = a2.getRowCount(n3), c2;
            return 0 <= t4 && t4 < s2 && ((c2 = r2 !== V ? r2 : a2.getStyle(t4, -1, n3)) && c2.charAt && (c2 = o2.u8(c2)), c2 && (e3.h5(c2, !i3, 30), i3 = true, (0, u.composeParentStyle)(c2, e3, o2, false, 30, true))), i3;
          }, t3.prototype.DL = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = o2.Ut, s2 = a2.getColumnCount(n3), c2;
            return 0 <= t4 && t4 < s2 && ((c2 = r2 !== V ? r2 : a2.getStyle(-1, t4, n3)) && c2.charAt && (c2 = o2.u8(c2)), c2 && (e3.h5(c2, !i3, 40), i3 = true, (0, u.composeParentStyle)(c2, e3, o2, false, 40, true))), i3;
          }, t3.prototype._L = function(t4, n3, e3, i3) {
            var o2 = this, a2 = o2.getDefaultStyle(t4);
            return a2 && a2.charAt ? a2 = o2.u8(a2) : a2 && a2.clone && (a2 = a2.clone(true), (0, r.AL)(a2)), a2 && !i3 && (n3.h5(a2, !e3, 50), (0, u.composeParentStyle)(a2, n3, o2, false, 50, true)), e3;
          }, t3.prototype.getCellType = function(t4, n3, e3, i3) {
            return void 0 === i3 && (i3 = {}), this.l0(t4, n3, "cellType", e3, i3) || this.$f(e3);
          }, t3.prototype.$f = function(t4) {
            T(t4) && (t4 = 3);
            var n3 = this.f7;
            return n3 || (n3 = this.f7 = new f.Text()), 3 === t4 ? n3 : 1 === t4 ? new l.ColumnHeader() : 2 === t4 ? new l.RowHeader() : 0 === t4 ? new l.Corner() : n3;
          }, t3.prototype.K_e = function(t4) {
            var n3 = this;
            return t4 === h.SheetArea.colHeader && Qt(n3.options) ? n3.cEe : t4 === h.SheetArea.rowHeader && Jt(n3.options) ? n3.fEe : H;
          }, t3.prototype.setCellType = function(t4, n3, e3, i3) {
            var r2 = this.Z_(t4, n3, i3);
            r2 || (r2 = new u.Style()), r2.cellType = e3, this.setStyle(t4, n3, r2, i3);
          }, t3.prototype.EL = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2 = this;
            if (T(o2) && (o2 = 3), u2 = d2.Ut, a2 || u2.do("clearSpan", t4, n3, e3, i3, o2), s2 = (0, r.Ec)(t4, n3, e3, i3), c2 = d2.JS(s2, o2), f2 = d2.jL(c2, o2), u2.do("addSpan", f2, o2), 3 === o2) {
              for (l2 = d2.getSelections(), h2 = 0; h2 < l2.length; h2++) l2[h2].intersect(t4, n3, e3, i3) && (l2[h2] = l2[h2].union(s2));
              u2.do("setSelections", l2);
            }
            d2.zw();
          }, t3.prototype.jL = function(t4, n3) {
            var e3 = this.getRowCount(n3), i3 = this.getColumnCount(n3), o2 = t4.row, a2 = t4.col, u2 = t4.rowCount, s2 = t4.colCount;
            return o2 + u2 > e3 && (u2 = e3 - o2), a2 + s2 > i3 && (s2 = i3 - a2), (0, r.Ec)(o2, a2, u2, s2);
          }, t3.prototype.addSpan = function(t4, n3, e3, i3, r2) {
            this.XBe(t4, n3, e3, i3, r2);
          }, t3.prototype.addSpans = function(t4, n3) {
            var e3 = this;
            t4.forEach((function(t5) {
              e3.XBe(t5.row, t5.col, t5.rowCount, t5.colCount, n3, true);
            }));
          }, t3.prototype.XBe = function(n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2 = this;
            if ((1 !== i3 || 1 !== r2) && 0 !== o2 && (u2 = h2.getRowCount(o2), s2 = h2.getColumnCount(o2), !(n3 >= u2 || e3 >= s2 || n3 < -1 || e3 < -1) && (c2 = { row: n3, col: e3, rowCount: i3, colCount: r2, sheetName: h2.name(), sheetArea: o2, isAllow: true }, t3.et(h2, ct, c2), c2.isAllow))) {
              if (!a2 && (f2 = h2.Ut).GT(n3, e3, i3, r2, o2)) throw new Error(xt().Exp_InvalidRange);
              h2.OL && h2.OL(n3, e3, i3, r2), h2.EL(n3, e3, i3, r2, o2, a2), l2 = { sheet: h2, row: n3, col: e3, rowCount: i3, colCount: r2, sheetArea: o2, changeType: "addSpan" }, t3.et(h2, it, l2), h2.ki("spanChanged", l2);
            }
          }, t3.prototype.removeSpan = function(n3, e3, i3) {
            var r2, o2, a2, u2 = this;
            T(i3) && (i3 = 3), (o2 = (r2 = u2.Ut).findSpan(n3, e3, i3)) && o2.row === n3 && o2.col === e3 && r2.do("removeSpan", o2, i3), a2 = { sheet: u2, row: n3, col: e3, sheetArea: i3, changeType: "removeSpan" }, t3.et(u2, it, a2), u2.ki("spanChanged", a2), u2.zw();
          }, t3.prototype.getSpans = function(t4, n3) {
            return 0 === n3 ? [] : this.Ut.getSpans(t4, n3, true);
          }, t3.prototype.getSpan = function(t4, n3, e3) {
            return 0 === e3 ? H : this.Ut.findSpan(t4, n3, e3);
          }, t3.prototype.repaint = function(t4) {
            this.My <= 0 && this.Dn && this.Dn.repaint(t4);
          }, t3.prototype.x_ = function(t4, n3, e3, i3) {
            var o2, a2 = t4, u2 = 1, s2 = this.RL(t4, n3, e3, i3);
            s2 && (a2 = s2.row, u2 = s2.rowCount), (o2 = this.j1(new r.Range(a2, -1, u2, -1))).y -= 2, o2.height += 4, this.repaint(o2);
          }, t3.prototype.N_ = function(t4, n3, e3, i3) {
            var o2, a2 = t4, u2 = 1, s2 = this.BL(t4, n3, e3, i3);
            s2 && (a2 = s2.col, u2 = s2.colCount), (o2 = this.j1(new r.Range(-1, a2, -1, u2))).x -= 2, o2.width += 4, this.repaint(o2);
          }, t3.prototype.LL = function(t4, n3) {
            var e3 = this, i3 = e3.Fi(), o2 = e3.j1(new r.Range(-1, t4, -1, 1));
            o2.y = i3.y, o2.height = i3.height, n3 && (o2.x -= 2, o2.width += 4), e3.repaint(o2);
          }, t3.prototype.RL = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2 = this, f2 = c2.yw(e3), l2 = f2.length;
            if (0 === l2) return H;
            if (r2 = c2.s7(n3, e3, h.SheetArea.viewport, i3)) {
              if (r2.length > l2) for (r2 = new s.h9(), a2 = o2 = f2[0].col; a2 < l2; a2++) (u2 = c2.O_(n3, e3, h.SheetArea.viewport, t4, f2[a2].col)) && r2.push(u2);
              return r2.findLargestRow(t4);
            }
            return H;
          }, t3.prototype.BL = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2 = this, f2 = c2.dw(n3), l2 = f2.length;
            if (0 === l2) return H;
            if (r2 = c2.s7(n3, e3, h.SheetArea.viewport, i3)) {
              if (r2.length > l2) for (r2 = new s.h9(), a2 = o2 = f2[0].row; a2 < l2; a2++) (u2 = c2.O_(n3, e3, h.SheetArea.viewport, f2[a2].row, t4)) && r2.push(u2);
              return r2.findLargestCol(t4);
            }
            return H;
          }, t3.prototype.OA = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = this, T2 = S2.parent, x2 = T2 && T2.options.scrollbarAppearance === h.ScrollbarAppearance.mobile, A2 = false, I2 = false, k2 = T2 && T2.options.scrollByPixel, N2 = zt(S2), j2 = Vt(S2), D2 = j2 ? S2.O5(j2 - 1) : S2.k9(), _2 = N2 ? S2.j5(N2 - 1) : S2.N9();
            if (n3 < S2.Ab && n3 >= D2 ? (A2 = true, S2.o9(S2.r6(n3 + 1), 0)) : k2 && n3 === S2.Ab && 0 !== S2.my && (A2 = true, S2.o9(n3, 0)), n3 > S2.getLastFullyVisibleColumn() && n3 <= S2.G6()) {
              for (e3 = 0, i3 = n3, r2 = S2.Fi(), o2 = S2.Gy(r2), (a2 = S2.Ut.findSpan(t4, i3)) && (i3 = a2.col + a2.colCount - 1); i3 > S2.Ab && !((e3 += S2.nn(i3)) > o2); ) i3--;
              u2 = void 0, s2 = void 0, k2 ? (i3 === S2.Ab && e3 < o2 && (e3 += S2.nn(i3)), u2 = i3, s2 = o2 - e3) : (u2 = (c2 = S2.Pye()) === i3 ? i3 : S2.O5(i3), s2 = 0), A2 = true, S2.o9(u2, s2);
            }
            if (t4 < S2.Tb && t4 >= _2 ? (I2 = true, S2.$A(S2.nI(t4 + 1), 0)) : k2 && t4 === S2.Tb && 0 !== S2.ly && (I2 = true, S2.$A(t4, 0)), t4 > S2.getLastFullyVisibleRow() && t4 <= S2.P6()) {
              for (f2 = 0, l2 = t4, (d2 = S2.Ut.findSpan(l2, n3)) && (l2 = d2.row + d2.rowCount - 1), v2 = S2.Fi(), p2 = S2.Sy(v2); l2 > S2.Tb && !((f2 += S2.Gt(l2)) > p2); ) l2--;
              g2 = void 0, m2 = void 0, k2 ? (l2 === S2.Tb && f2 < p2 && (f2 += S2.Gt(l2)), g2 = l2, m2 = p2 - f2) : (g2 = (b2 = S2.Fye()) === l2 ? l2 : S2.j5(l2), m2 = 0), I2 = true, S2.$A(g2, m2);
            }
            y2 = S2.aB(), !k2 && n3 === S2.G6() && y2 && S2.o9(y2, 0), x2 && (w2 = T2._vScrollbar, M2 = T2._hScrollbar, C2 = T2.ib, I2 && (w2.qy(h.ScrollbarState.show), C2.$y(true)), A2 && (M2.qy(h.ScrollbarState.show), C2.$y(false)));
          }, t3.prototype.hitTest = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2 = this;
            return F2.Fi(), o2 = { x: t4, y: n3 }, a2 = F2.rowOutlines, u2 = F2.columnOutlines, a2 && (s2 = a2.hitTest(F2, t4, n3)), !s2 && u2 && (s2 = u2.hitTest(F2, t4, n3)), s2 ? (o2.outlineHitInfo = s2, o2) : (c2 = F2.FL(n3), f2 = F2.PL(t4), o2.rowViewportIndex = c2, o2.colViewportIndex = f2, o2.row = F2.GL(n3, c2), o2.col = F2.UL(t4, f2, n3, c2, o2.row), o2.hitTestType = F2.C6(c2, f2), 3 === c2 && (F2.jsr && (o2.rowSpacingIndex = F2.jsr(n3, c2)), F2._sr && (o2.isAfterRowSpacing = F2._sr(n3, c2))), c2 >= 0 && c2 <= 2 && f2 >= 0 && true !== e3 && (l2 = F2.O_(c2, f2, o2.hitTestType, o2.row, o2.col, r2)) && (o2.row = l2.row, o2.col = l2.col), F2.dataRanges && (v2 = F2.dataRanges.getByPosition(o2.row, o2.col)) && (o2.dataRange = v2, (p2 = v2.convertContext({ sheet: F2, row: o2.row, col: o2.col, sheetArea: o2.hitTestType })) && (d2 = p2.sheet)), g2 = F2.rt, b2 = (m2 = d2 ? d2.IB : F2.IB) && m2.hitTest(o2, t4, n3), !(y2 = F2.tables) || -1 === c2 && -1 === f2 || (w2 = -1 === c2 ? y2.find(F2.getActiveRowIndex(), F2.getActiveColumnIndex()) : y2.find(o2.row, o2.col)), b2 || (b2 = (M2 = w2 && w2.IB) && M2.hitTest(o2, t4, n3)), (C2 = y2 && !b2 && y2.HL(t4, n3, o2)) ? (o2.tableSelectInfo = C2, C2.table && C2.table.IB && (o2.filterButtonHitInfo = b2), o2) : b2 ? (o2.filterButtonHitInfo = b2, o2) : (S2 = g2.zL && g2.zL(o2, t4, n3)) ? (o2.dragMergeInfo = S2, o2) : (T2 = g2.VL && g2.VL(o2, t4, n3)) ? (o2.dragInfo = T2, o2) : (x2 = o2.col, o2.col = F2.UL(t4, f2), o2.YL = x2, (A2 = g2.bD(o2, t4, n3, 5)) ? (o2.resizeInfo = A2, o2) : (o2.col = x2, delete o2.YL, (I2 = g2.ZL ? g2.ZL(o2, t4, n3) : H) ? (o2.formulaRangeHitInfo = I2, o2) : (N2 = (k2 = F2.Ut.pI) && k2.hitTest(t4, n3)) ? (o2.commentHitInfo = N2, o2) : (j2 = F2.shapes && F2.shapes.hitTest(t4, n3)) ? (o2.shapeHitInfo = j2, o2) : (_2 = (D2 = F2.WL) && D2.hitTest(t4, n3, i3)) ? (o2.floatingObjectHitInfo = _2, o2) : (O2 = w2 && !w2.QL() && g2.KL && g2.KL(o2, w2)) ? (o2.resizeTableHitInfo = O2, o2) : ((E2 = F2.JL(o2, t4, n3)) && (o2.cellTypeHitInfo = E2), o2.hitTestType === h.SheetArea.viewport && F2.pivotTables && (R2 = F2.pivotTables.findPivotTable(o2.row, o2.col)) ? (o2.pivotTableInfo = R2, o2) : E2 ? o2 : (L2 = g2.QRe && g2.QRe(o2, t4, n3)) ? (o2.dragHeaderToMoveInfo = L2, o2) : o2))));
          }, t3.prototype.getCellRect = function(t4, n3, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
            return void 0 === o2 && (o2 = {}), a2 = 3, -1 === e3 ? a2 = 1 : -1 === i3 && (a2 = 2), s2 = (u2 = this).Fi(), -1 === e3 && -1 === i3 ? new r.Rect(s2.BA, s2.LA, s2.XC, s2.qC) : (c2 = u2.ot(), T(e3) && (e3 = u2.C0(t4, o2.rowSpacingIndex)), T(i3) && (i3 = u2.S0(n3)), f2 = x(o2.rowSpacingIndex), l2 = u2._y(e3, a2), h2 = f2 ? l2.findRowSpacing(t4, o2.rowSpacingIndex, o2.isAfterRowSpacing) : l2.findRow(t4), d2 = u2.Yy(i3, a2).findCol(n3), !f2 && (v2 = u2.s7(e3, i3, a2, o2.needAutoMerge).findCell(t4, n3)) ? new r.Rect(v2.x - c2.x, v2.y - c2.y, v2.width, v2.height) : h2 && d2 ? (p2 = d2.x - c2.x, g2 = h2.y - c2.y, m2 = d2.width, b2 = h2.height, f2 || -1 === d2.height || -1 === d2.y || (b2 = h2.height * d2.height, g2 = h2.height * d2.y), new r.Rect(p2, g2, m2, b2)) : new r.Rect());
          }, t3.prototype.XA = function(t4, n3, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2 = this, g2 = p2.rt, m2 = false, b2 = false, y2 = p2.ui, w2 = p2.ci;
            T(t4) || (p2.ui !== t4 && (b2 = true), i3 = p2.ui, p2.ui = t4, m2 = true), T(n3) || (p2.ci !== n3 && (b2 = true), o2 = p2.ci, p2.ci = n3, m2 = true), u2 = (a2 = p2._1) && a2.isEnable(h.RowColumnStates.active, true), s2 = a2 && a2.isEnable(h.RowColumnStates.active, false), u2 && (p2.x_(y2, p2.R9, p2.B9), p2.x_(t4, p2.R9, p2.B9)), s2 && (p2.N_(w2, p2.R9, p2.B9), p2.N_(n3, p2.R9, p2.B9)), p2.Ut.setCellState(y2, w2, h.CellStatesType.active, false, h.SheetArea.viewport), u2 || s2 || p2.k_ && p2.k_(h.CellStatesType.active, y2, w2, h.SheetArea.viewport), p2.Ut.setCellState(t4, n3, h.CellStatesType.active, true, h.SheetArea.viewport), u2 || s2 || p2.k_ && p2.k_(h.CellStatesType.active, t4, n3, h.SheetArea.viewport), !e3 && g2 && m2 && (b2 && p2.ki(r.Events.ActiveCellChanged, { oldRow: i3, oldCol: o2, row: p2.ui, col: p2.ci }), g2.aA(), c2 = p2.Ut, (l2 = (f2 = p2.Uw && p2.Uw(h.SheetArea.viewport)) && f2.t8.getAnchorInfo(t4, n3)) !== (d2 = c2.cO) && (c2.cO = l2, p2.My <= 0 && (v2 = void 0, l2 && d2 ? v2 = (0, r.getUnionRange)(l2, d2) : (l2 = l2 || d2, v2 = (0, r.Ec)(l2.row, l2.col, l2.rowCount, l2.colCount)), p2.Dn.E1(v2))));
          }, t3.prototype.XL = function(t4, n3, e3, i3, r2) {
            var o2 = t4.getCellRect(n3, e3, i3, r2), a2 = o2.x, u2 = o2.y, s2 = o2.width, c2 = o2.height;
            return o2.x = a2 - 2, o2.y = u2 - 2, o2.width = s2 + 4, o2.height = c2 + 4, o2;
          }, t3.prototype.O6 = function(t4, n3, e3, i3, o2) {
            var a2, u2 = this, s2 = u2.ui, c2 = u2.ci, f2 = u2.Ut, l2 = f2.getSpan(t4, n3);
            u2.H5 = l2.rowCount, u2.z5 = l2.colCount, u2.My <= 0 && (a2 = f2.getSpan(s2, c2), u2.Dn.E1((0, r.Ec)(s2, c2, a2.rowCount, a2.colCount))), u2.R9 = e3, u2.B9 = i3, u2.XA(t4, n3, o2), u2.qA = t4, u2.hR = n3;
          }, t3.prototype.setActiveCell = function(t4, n3, e3, i3) {
            this.t4(t4, n3, e3, i3, 2);
          }, t3.prototype.t4 = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2, c2, f2, l2, d2;
            void 0 === a2 && (a2 = false), s2 = Bt(u2 = this), c2 = Ft(u2), t4 < 0 ? t4 = 0 : t4 >= s2 && (t4 = Y(0, s2 - 1)), n3 < 0 ? n3 = 0 : n3 >= c2 && (n3 = Y(0, c2 - 1)), u2.IA(), f2 = 2 === o2 ? r.hi.A1(u2) : 1 === o2, u2.O6(t4, n3, e3, i3, !f2), l2 = { sheet: u2, sheetArea: h.SheetArea.viewport, sheetName: u2.name(), row: t4, col: n3 }, d2 = u2.Ut.getSpan(t4, n3), (!a2 || d2.rowCount > 1 || d2.colCount > 1) && u2.D9(d2.row, d2.col, d2.rowCount, d2.colCount), u2.zw(), u2.ki(r.Events.EnterCellInternal, l2);
          }, t3.prototype.getActiveRowIndex = function() {
            return this.ui;
          }, t3.prototype.getActiveColumnIndex = function() {
            return this.ci;
          }, t3.prototype.getRowResizable = function(t4, n3) {
            return this.Ut.getResizable(true, n3, t4);
          }, t3.prototype.setRowResizable = function(t4, n3, e3) {
            this.qL(t4, n3, st, true, e3);
          }, t3.prototype.qL = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2;
            switch (T(r2) && (r2 = 3), e3 !== $ && e3 !== q || !R.test(n3) || (e3 = ut), a2 = (o2 = this).Ut, e3) {
              case st:
                u2 = a2.getResizable(i3, r2, t4);
                break;
              case "pageBreak":
                u2 = a2.getPageBreak(i3, r2, t4);
                break;
              case at:
                u2 = a2.getVisible(i3, r2, t4);
                break;
              case $:
              case q:
                u2 = a2.getSize(i3, r2, t4);
                break;
              case ht:
                u2 = a2.getColumnHeaderFitMode(i3, r2, t4);
            }
            if (s2 = true, !(s2 = i3 ? o2.kj(t4, r2, e3, n3, u2) : o2.Dj(t4, r2, e3, n3, u2))) return s2;
            switch (e3) {
              case st:
                a2.do("setResizable", i3, r2, t4, n3);
                break;
              case "pageBreak":
                a2.do("setPageBreak", i3, r2, t4, n3);
                break;
              case at:
                a2.do("setVisible", i3, r2, t4, n3), i3 && p && 3 === r2 && u2 !== n3 && (o2.Lp.Vct = 4, o2.recalcRows([t4]), delete o2.Lp.Vct);
                break;
              case $:
                a2.do("setSize", i3, r2, t4, n3), !p || 3 !== r2 || u2 === n3 || 0 !== u2 && 0 !== n3 || (o2.Lp.Vct = 4, o2.recalcRows([t4]), delete o2.Lp.Vct);
                break;
              case q:
                a2.do("setSize", i3, r2, t4, n3);
                break;
              case ut:
                a2.do("setStarSize", i3, r2, t4, n3);
                break;
              case ht:
                a2.do("setColumnHeaderFitMode", i3, r2, t4, n3);
            }
            return i3 ? o2.dj(t4, r2, e3, n3, u2) : o2.vj(t4, r2, e3, n3, u2), true;
          }, t3.prototype.getColumnResizable = function(t4, n3) {
            return this.Ut.getResizable(false, n3, t4);
          }, t3.prototype.setColumnResizable = function(t4, n3, e3) {
            this.qL(t4, n3, st, false, e3);
          }, t3.prototype.getRowHeight = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this;
            if (T(n3) && (n3 = 3), e3) return f2.Ut.getStarSize(true, n3, t4);
            if (3 === n3 || 2 === n3) {
              if (i3 = f2.getRowCount(n3), t4 < 0 || t4 >= i3) return 0;
              for (r2 = f2.$L, o2 = 0; o2 < r2.length; o2++) if (!(a2 = r2[o2]).tF(t4)) return 0;
            }
            return s2 = (u2 = f2.defaults).rowHeight, 1 === n3 && (s2 = u2.colHeaderRowHeight), (c2 = f2.Ut.getSize(true, n3, t4)) || 0 === c2 ? c2 : Z(s2);
          }, t3.prototype._o = function(t4, n3) {
            var e3, i3, r2, o2;
            return T(n3) && (n3 = 3), r2 = (i3 = (e3 = this).defaults).rowHeight, 1 === n3 && (r2 = i3.colHeaderRowHeight), (o2 = e3.Ut.getActualSize(true, n3, t4)) || 0 === o2 ? o2 : Z(r2);
          }, t3.prototype.setRowHeight = function(t4, n3, e3) {
            this.qL(t4, n3, $, true, e3) && (this.Ww = true, this.zw());
          }, t3.prototype.getRowVisible = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this;
            if (T(n3) && (n3 = 3), !e3 && (3 === n3 || 2 === n3)) {
              for (i3 = a2.$L, r2 = 0; r2 < i3.length; r2++) if (!(o2 = i3[r2]).tF(t4)) return false;
            }
            return this.Ut.getVisible(true, n3, t4);
          }, t3.prototype.setRowVisible = function(t4, n3, e3) {
            var i3 = this;
            i3.qL(t4, n3, at, true, e3) && (i3.Ww = true, i3.zw());
          }, t3.prototype.getColumnWidth = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this;
            if (T(n3) && (n3 = 3), e3) return f2.Ut.getStarSize(false, n3, t4);
            if (r2 = (i3 = f2.defaults).colWidth, 2 === n3 && (r2 = i3.rowHeaderColWidth), 3 === n3 || 1 === n3) {
              if (o2 = f2.getColumnCount(n3), t4 < 0 || t4 >= o2) return 0;
              for (a2 = f2.nF, u2 = 0; u2 < a2.length; u2++) if (!(s2 = a2[u2]).tF(t4)) return 0;
            }
            return (c2 = this.Ut.getSize(false, n3, t4)) || 0 === c2 ? c2 : Z(r2);
          }, t3.prototype.Do = function(t4, n3) {
            var e3, i3, r2, o2;
            return T(n3) && (n3 = 3), r2 = (i3 = (e3 = this).defaults).colWidth, 2 === n3 && (r2 = i3.rowHeaderColWidth), (o2 = e3.Ut.getActualSize(false, n3, t4)) || 0 === o2 ? o2 : Z(r2);
          }, t3.prototype.setColumnWidth = function(t4, n3, e3) {
            this.qL(t4, n3, q, false, e3) && (this.Zw = true, this.zw());
          }, t3.prototype.getColumnVisible = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            if (T(n3) && (n3 = 3), 3 === n3 || 1 === n3) {
              for (e3 = o2.nF, i3 = 0; i3 < e3.length; i3++) if (!(r2 = e3[i3]).tF(t4)) return false;
            }
            return o2.Ut.getVisible(false, n3, t4);
          }, t3.prototype.Iao = function(t4, n3, e3, i3) {
            return n3 ? this.getRowVisible(t4, e3, i3) : this.getColumnVisible(t4, e3);
          }, t3.prototype.bao = function() {
            return false;
          }, t3.prototype.setColumnVisible = function(t4, n3, e3) {
            var i3 = this;
            i3.qL(t4, n3, at, false, e3) && (i3.Zw = true, i3.zw());
          }, t3.prototype.zoom = function(t4) {
            var n3, e3 = this;
            if (0 === arguments.length) return e3.Ut.getZoomFactor();
            if (t4 = G(t4), !U(t4) && isFinite(t4)) {
              if (t4 = r.util.age(t4), (n3 = e3.Ut.getZoomFactor()) === t4) return e3;
              e3.g8(t4), e3.my = e3.my / n3 * t4, e3.ly = e3.ly / n3 * t4, e3.Zw = true, e3.Ww = true, e3.zw();
            }
            return e3;
          }, t3.prototype.g8 = function(n3) {
            var e3, i3, r2, o2;
            this.Ut.do("setZoomFactor", n3), null === (i3 = null === (e3 = this.parent) || void 0 === e3 ? void 0 : e3.suspendOp) || void 0 === i3 || i3.call(e3), t3.et(this, it, { changeType: "zoomSheet" }), null === (o2 = null === (r2 = this.parent) || void 0 === r2 ? void 0 : r2.resumeOp) || void 0 === o2 || o2.call(r2);
          }, t3.prototype.n3 = function() {
            var t4 = this;
            t4.eF = H, t4.N8 = { colHeader: H, viewport: H }, t4.iF = { rowHeader: H, viewport: H, colHeader: H };
          }, t3.prototype.invalidateLayout = function() {
            var n3, e3, i3 = this, o2 = i3.rt;
            i3.Ut.hj(), i3.n3(), t3.et(i3, rt, { changeType: "invalidateLayout" }), i3.Zw && (i3.aw(), i3.Zw = false, i3.uYr = null), i3.Ww && (i3.ew(), i3.Ww = false, i3.cYr = null), i3.n3(), t3.et(i3, it, { changeType: "invalidateLayout" }), o2 && o2.PA && r.hi.A1(i3) && !o2.M_(i3) && o2.PA(i3.ui, i3.ci), i3.k1 = true, (n3 = i3.parent) && n3.options.enableAccessibility && (e3 = i3.t2(), n3.n2(e3));
          }, t3.prototype.zw = function() {
            var t4 = this;
            t4.My <= 0 && (t4.invalidateLayout(), t4.repaint());
          }, t3.prototype.getViewportHeight = function(t4) {
            var n3 = this, e3 = n3.Fi();
            return 0 === t4 ? e3.L6 : 1 === t4 ? n3.Sy(e3) : 2 === t4 ? e3.Iy : 0;
          }, t3.prototype.getViewportWidth = function(t4) {
            var n3 = this.Fi();
            return 0 === t4 ? n3.F6 : 1 === t4 ? this.Gy(n3) : 2 === t4 ? n3.zy : 0;
          }, t3.prototype.getViewportTopRow = function(t4) {
            var n3 = this, e3 = zt(n3);
            return 0 === t4 ? n3._ve || 0 : 1 === t4 ? Y(e3, n3.Tb) : 2 === t4 ? Y(e3, Bt(n3) - Gt(n3)) : -1;
          }, t3.prototype.getViewportTopRowOffset = function() {
            return this.ly;
          }, t3.prototype.getViewportBottomRow = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this;
            if (2 === t4) return Bt(u2) - 1;
            for (n3 = u2.getViewportTopRow(t4), e3 = u2.getViewportHeight(t4), i3 = 1 === t4 ? u2.ly : 0, r2 = 0, o2 = Bt(u2) - Gt(u2), 0 === t4 && (o2 = z(zt(u2), o2)), a2 = n3; a2 < o2 && i3 < e3; a2++, r2++) i3 += u2.Gt(a2);
            return n3 + r2 - 1;
          }, t3.prototype.H7 = function(t4) {
            var n3, e3, i3 = this, r2 = i3.dw(t4);
            for (n3 = 0; n3 < r2.length; n3++) if ((e3 = r2[n3]).height > 0) return e3.row;
            return -1;
          }, t3.prototype.getViewportLeftColumn = function(t4) {
            var n3 = this, e3 = Vt(n3);
            return 0 === t4 ? n3.Dve || 0 : 1 === t4 ? Y(e3, n3.Ab) : 2 === t4 ? Y(e3, Ft(n3) - Pt(n3)) : -1;
          }, t3.prototype.getViewportLeftColumnOffset = function() {
            return this.my;
          }, t3.prototype.getViewportRightColumn = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this;
            if (2 === t4) return Ft(u2) - 1;
            for (n3 = u2.getViewportLeftColumn(t4), e3 = u2.getViewportWidth(t4), i3 = 0, r2 = 1 === t4 ? u2.my : 0, o2 = Ft(u2) - Pt(u2), 0 === t4 && (o2 = z(Vt(u2), o2)), a2 = n3; a2 < o2 && r2 < e3; a2++, i3++) r2 += u2.nn(a2);
            return n3 + i3 - 1;
          }, t3.prototype.z7 = function(t4) {
            var n3, e3, i3 = this, r2 = i3.yw(t4);
            for (n3 = 0; n3 < r2.length; n3++) if ((e3 = r2[n3]).width > 0) return e3.col;
            return -1;
          }, t3.prototype.showCell = function(t4, n3, e3, i3) {
            this.rF(t4, n3, e3, i3);
          }, t3.prototype.rF = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this;
            t4 < 0 || t4 >= Bt(M2) || n3 < 0 || n3 >= Ft(M2) || (c2 = M2.parent && M2.parent.options.scrollByPixel, f2 = M2.parent && M2.parent.options.scrollbarMaxAlign, l2 = M2.S0(n3), h2 = M2.C0(t4), d2 = M2.getViewportTopRow(h2), v2 = M2.ly, p2 = M2.getViewportLeftColumn(l2), g2 = M2.my, 1 === l2 && T(a2) && (n3 = (u2 = M2.rB(n3, i3, c2, f2)).col, a2 = u2.offset), 1 === h2 && T(o2) && (t4 = (s2 = M2.oF(t4, e3, c2, f2)).row, o2 = s2.offset), m2 = false, b2 = false, 1 !== h2 || t4 === d2 && o2 === v2 || (t4 = z(t4, M2.mw().Ky), M2.Tb = t4, M2.ly = o2, M2.tw(), m2 = true), 1 !== l2 || n3 === p2 && a2 === g2 || (n3 = z(n3, M2.Mw().iw), M2.Ab = n3, M2.my = a2, M2.ow(), b2 = true), (m2 || b2) && ((y2 = M2.parent) && !y2.options.scrollbarShowMax && (M2.Zw = true, M2.Ww = true), M2.zw(), w2 = M2.zoom(), m2 && M2.ki(r.Events.TopRowChanged, { sheet: M2, sheetName: M2.name(), oldTopRow: d2, newTopRow: t4, oldOffset: Q(v2 / w2), newOffset: Q(o2 / w2) }), b2 && M2.ki(r.Events.LeftColumnChanged, { sheet: M2, sheetName: M2.name(), oldLeftCol: p2, newLeftCol: n3, oldOffset: Q(g2 / w2), newOffset: Q(a2 / w2) }), M2.$Dr({ type: "updateTopLeftPosition", leftCol: M2.Ab, topRow: M2.Tb })));
          }, t3.prototype.C0 = function(t4, n3) {
            var e3 = this;
            return x(n3) ? 3 : t4 < zt(e3) ? 0 : t4 >= Bt(e3) - Gt(e3) ? 2 : 1;
          }, t3.prototype.S0 = function(t4) {
            var n3 = this;
            return t4 < Vt(n3) ? 0 : t4 >= Ft(n3) - Pt(n3) ? 2 : 1;
          }, t3.prototype.oF = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Jt, g2 = v2.C0(t4), m2 = v2.getViewportTopRow(g2), b2 = v2.ly, y2 = zt(v2), w2 = v2.P6();
            if (0 === n3) if (i3) {
              for (o2 = w2, r2 = v2.getViewportHeight(g2); y2 <= o2; o2--) if ((r2 -= p2.Gt(o2)) < 0) {
                t4 < o2 ? e3 || (b2 = 0) : t4 === o2 ? b2 = e3 ? r2 : 0 : (t4 = o2, b2 = r2);
                break;
              }
            } else b2 = 0;
            else if (1 === n3) {
              if (a2 = false, u2 = false, i3) {
                for (o2 = w2, r2 = s2 = Z(v2.getViewportHeight(g2) / 2); y2 <= o2; o2--) if ((r2 -= p2.Gt(o2)) < 0) {
                  t4 >= o2 && (o2--, r2 += s2, u2 = true);
                  break;
                }
                if (u2) {
                  for (; y2 <= o2; o2--) if ((r2 -= p2.Gt(o2)) < 0) {
                    t4 = o2, b2 = r2, a2 = true;
                    break;
                  }
                }
              }
              if (!a2) {
                for (r2 = Z((v2.getViewportHeight(g2) - p2.Gt(t4)) / 2); y2 < t4; t4--) if ((r2 -= p2.Gt(t4 - 1)) < 0) {
                  t4 -= 1, b2 = r2;
                  break;
                }
                r2 > 0 && t4 === y2 && (b2 = 0);
              }
            } else if (2 === n3) {
              for (r2 = v2.getViewportHeight(g2) - p2.Gt(t4); y2 < t4; t4--) if ((r2 -= p2.Gt(t4 - 1)) < 0) {
                t4 -= 1, b2 = r2;
                break;
              }
              r2 > 0 && t4 === y2 && (b2 = 0);
            } else if (3 === n3) if (t4 > m2) {
              if (c2 = v2.Fi(), f2 = v2.getCellRect(t4, v2.ci), l2 = c2.c9(1, 1), h2 = c2.c9(1, 0), d2 = c2.c9(1, 2), l2.containsRect(f2, true) || h2.containsRect(f2, true) || d2.containsRect(f2, true)) t4 = m2;
              else for (r2 = v2.getViewportHeight(g2) - p2.Gt(t4); m2 < t4; t4--) if ((r2 -= p2.Gt(t4 - 1)) < 0) {
                t4 -= 1, b2 = r2;
                break;
              }
            } else b2 = 0;
            return !e3 && b2 < 0 && (b2 = 0, t4 < w2 && (t4 += 1)), { row: t4, offset: b2 };
          }, t3.prototype.rB = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Jt, y2 = m2.S0(t4), w2 = m2.getViewportLeftColumn(y2), M2 = m2.my, C2 = Vt(m2), S2 = m2.G6();
            if (0 === n3) if (i3) {
              for (o2 = m2.getViewportWidth(y2), a2 = S2; C2 <= a2; a2--) if ((o2 -= b2.Kt(a2)) < 0) {
                t4 < a2 ? e3 || (M2 = 0) : t4 === a2 ? M2 = e3 ? o2 : 0 : (t4 = a2, M2 = o2);
                break;
              }
            } else M2 = 0;
            else if (1 === n3) {
              if (u2 = false, s2 = false, i3) {
                for (o2 = c2 = Z(m2.getViewportWidth(y2) / 2), a2 = S2; C2 <= a2; a2--) if ((o2 -= b2.Kt(a2)) < 0) {
                  t4 >= a2 && (a2--, o2 += c2, s2 = true);
                  break;
                }
                if (s2) {
                  for (; C2 <= a2; a2--) if ((o2 -= b2.Kt(a2)) < 0) {
                    t4 = a2, M2 = o2, u2 = true;
                    break;
                  }
                }
              }
              if (!u2) {
                for (o2 = Z((m2.getViewportWidth(y2) - b2.Kt(t4)) / 2); C2 < t4; t4--) if ((o2 -= b2.Kt(t4 - 1)) < 0) {
                  t4 -= 1, M2 = o2;
                  break;
                }
                o2 > 0 && t4 === C2 && (M2 = 0);
              }
            } else if (2 === n3) {
              for (o2 = m2.getViewportWidth(y2) - b2.Kt(t4); C2 < t4; t4--) if ((o2 -= b2.Kt(t4 - 1)) < 0) {
                t4 -= 1, M2 = o2;
                break;
              }
              o2 > 0 && t4 === C2 && (M2 = 0);
            } else if (3 === n3) if (t4 > w2) {
              if (l2 = (f2 = m2.Fi()).Py, h2 = f2.Cy, d2 = f2.hL, v2 = f2.A6, p2 = m2.getCellRect(m2.ui, t4), (g2 = new r.Rect(l2, h2, d2, v2)).containsRect(p2, true)) t4 = w2;
              else for (o2 = m2.getViewportWidth(y2) - b2.Kt(t4); w2 < t4; t4--) if ((o2 -= b2.Kt(t4 - 1)) < 0) {
                t4 -= 1, M2 = o2;
                break;
              }
            } else M2 = 0;
            return !e3 && M2 < 0 && (M2 = 0, t4 < S2 && (t4 += 1)), { col: t4, offset: M2 };
          }, t3.prototype.Jy = function(t4, n3) {
            var e3 = this, i3 = e3.Jt, r2 = e3.C0(t4), o2 = e3.getViewportTopRow(r2), a2;
            if (0 !== n3) {
              if (1 === n3) for (a2 = Z((e3.getViewportHeight(r2) - i3.Gt(t4)) / 2); 0 < t4 && !((a2 -= i3.Gt(t4 - 1)) < 0); t4--) ;
              else if (2 === n3) for (a2 = e3.getViewportHeight(r2) - i3.Gt(t4); 0 < t4 && !((a2 -= i3.Gt(t4 - 1)) < 0); t4--) ;
              else if (3 === n3 && !(t4 < o2 || -1 === o2)) for (a2 = e3.getViewportHeight(r2) - i3.Gt(t4); o2 < t4 && !((a2 -= i3.Gt(t4 - 1)) < 0); t4--) ;
            }
            return t4;
          }, t3.prototype.showColumn = function(t4, n3) {
            this.showCell(this.Tb, t4, 0, n3);
          }, t3.prototype.showRow = function(t4, n3) {
            this.showCell(t4, this.Ab, n3, 0);
          }, t3.prototype.suspendEvent = function() {
            this.vf++;
          }, t3.prototype.resumeEvent = function() {
            this.vf--, this.vf < 0 && (this.vf = 0);
          }, t3.prototype.isEventSuspended = function() {
            return this.vf > 0;
          }, t3.prototype.currentTheme = function(n3) {
            var e3, i3 = this;
            return 0 === arguments.length ? (i3.hl || i3.aF(), i3.hl) : (typeof n3 === X && (n3 = m.Themes[n3] ? m.Themes[n3] : new m.Theme(n3)), e3 = i3.THr({ type: "setCurrentTheme" }), i3.hl = n3, i3.Dn.O7(), i3.r3(), i3.$Dr({ type: "setCurrentTheme", currentTheme: i3.hl }, e3), t3.et(i3, "onThemeChanged", { value: n3 }), i3.zw(), i3);
          }, t3.prototype.uF = function() {
            var t4 = r.I.fl(""), n3 = P(t4.zIndex), e3 = m.Themes.Office2007;
            return n3 > 2007 && (e3 = m.Themes.Office), e3;
          }, t3.prototype.aF = function() {
            this.hl = this.uF(), this.r3();
          }, t3.prototype.reset = function() {
            var t4 = this;
            t4.sF(), t4.zw();
          }, t3.prototype.sF = function() {
            var n3, e3, i3, o2 = this, a2 = o2.b2();
            o2.cF(), o2.R9 = 0, o2.B9 = 0, o2.Zp(), o2.eF = H, o2.N8 = { colHeader: H, viewport: H }, o2.iF = { rowHeader: H, viewport: H, colHeader: H }, o2.Tb = 0, o2.ly = 0, o2.Ab = 0, o2.my = 0, o2.frozenRowCount(0), o2.frozenColumnCount(0), o2.frozenTrailingRowCount(0), o2.frozenTrailingColumnCount(0), t3.et(o2, "beforeSetHost"), (n3 = o2.parent) && (e3 = n3.getActiveSheet(), i3 = n3.getActiveSheetTab(), (e3 && o2.name() === e3.name() || i3 && o2.name() === i3.name()) && o2.hg(n3._vp)), o2.r3(), o2.Jt = new r.Ff(o2), o2.Sj = {}, p && o2.resetCalc(), o2.Ut && o2.Ut.L0(true), o2.Ut = new s.Y8(o2, t3.n8, t3.e8, t3.o8, t3.r8, o2.name()), o2.defaults = o2.Ut.defaults, o2.b2(a2), o2.aF(), o2.Hp = {}, o2.Zw = true, o2.Ww = true, o2.parent && o2.parent.sg ? o2.My = o2.parent.sg : o2.My = 0, o2.parent && o2.parent.vf ? o2.vf = o2.parent.vf : o2.vf = 0, o2.lE = 0, o2.xT = false, o2.fF = H, o2.$L = [], o2.nF = [], o2.Nj = false, o2.hA = h.ClipboardPasteOptions.all, o2.lF = h.CopyToOptions.all, o2.JT = true, o2.UB = true, o2.vuo = H, t3.et(o2, "init");
          }, t3.prototype.Zp = function() {
            var t4 = this;
            j(Nt, (function(n3, e3) {
              if (!T(e3)) {
                var i3 = e3;
                "gridline" === n3 ? i3 = { color: r.I.fl("gc-gridlineColor").borderTopColor, showVerticalGridline: true, showHorizontalGridline: true } : "object" == typeof i3 && (i3 = c.GC$.extend({}, e3)), t4.options[n3] = i3;
              }
            }));
          }, t3.prototype.pM = function(n3) {
            var e3, i3 = this;
            for (i3.parent = n3, e3 = i3.My; e3 < n3.sg; e3++) i3.suspendPaint();
            i3.vf = n3.vf, t3.et(i3, "attach", n3);
          }, t3.prototype.hF = function(t4, n3) {
            return t4.row === n3.row && t4.col === n3.col && t4.rowCount === n3.rowCount && t4.colCount === n3.colCount;
          }, t3.prototype.dF = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = this.iT(n3, e3, i3, r2).ranges;
            for (o2 = 0; o2 < u2.length; o2++) for (a2 = 0; a2 < t4.length; a2++) if (this.hF(t4[o2], u2[a2])) return true;
            return false;
          }, t3.prototype.vF = function(t4, n3, e3, i3, r2) {
            var o2, a2 = false;
            return void 0 !== r2 ? 0 === r2 ? (o2 = this.iT(t4, n3, e3, this.getColumnCount() - n3).ranges).length > 0 && (t4 - 1 > 0 && (a2 = this.dF(o2, t4 - 1, n3, 1, this.getColumnCount() - n3)), a2 || (a2 = this.dF(o2, t4 + e3, n3, 1, this.getColumnCount() - n3)), a2 || (a2 = this.dF(o2, t4, n3, e3, 1))) : (o2 = this.iT(t4, n3, this.getRowCount() - t4, i3).ranges).length > 0 && (t4 - 1 > 0 && (a2 = this.dF(o2, t4 - 1, n3, this.getRowCount() - t4, 1)), a2 || (a2 = this.dF(o2, t4 + e3, n3, this.getRowCount() - t4, 1)), a2 || (a2 = this.dF(o2, t4, n3, 1, i3))) : a2 = true, a2;
          }, t3.prototype.PT = function(t4, n3, e3, i3, o2) {
            var a2, u2, s2 = o2.invalidType, c2 = o2.lockErrorMsg, f2 = o2.arrayFormulaErrorMsg, l2 = o2.isAllowDragInsert, h2 = o2.shiftCells, d2 = o2.isIgnoreFilterOutRow, v2 = o2.sheetArea, g2 = this;
            return T(s2) && (s2 = 1), (a2 = g2.isActualProtected()) || (a2 = fn(this, new r.Range(t4, n3, e3, i3))), !l2 && a2 && g2.dA((0, r.Ec)(t4, n3, e3, i3), d2, v2) ? (c2 && g2.jT(s2, c2), false) : (u2 = this.vF(t4, n3, e3, i3, h2), !(p && u2 && !g2.mT(t4, n3, e3, i3)) || (f2 && g2.jT(s2, f2), false));
          }, t3.prototype.clear = function(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            0 !== r2 && this.KI(t4, n3, e3, i3, r2, o2, a2, u2, s2);
          }, t3.prototype.KI = function(n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2 = this, N2 = p;
            try {
              if (N2 && k2.suspendCalcService(), k2.suspendPaint(), l2 = k2.defaults, h2 = void 0, d2 = void 0, v2 = void 0, g2 = void 0, m2 = 3, b2 = { changeType: "clear", row: n3, col: e3, rowCount: i3, colCount: r2, sheetArea: o2, type: a2, ignoreTable: s2, ignorePivotTable: c2, canClear: true }, t3.et(k2, it, b2), !b2.canClear) return;
              if (T(o2) || o2 === m2) {
                if (N2 && !k2.mT(n3, e3, i3, r2)) return false;
                if (1 & a2 && k2.getDataSource && k2.getDataSource()) {
                  for (k2.suspendEvent(), h2 = n3; h2 < n3 + i3; h2++) if (!(u2 && k2.XT && k2.XT(h2))) for (d2 = e3; d2 < e3 + r2; d2++) k2.setValue(h2, d2, H, o2);
                  k2.resumeEvent();
                }
              }
              if (y2 = k2.Ut, w2 = N2 && k2.b3(), h2 = -1 === n3 ? 0 : n3, M2 = -1 === n3 ? y2.getRowCount(o2) : i3, d2 = -1 === e3 ? 0 : e3, C2 = -1 === e3 ? y2.getColumnCount(o2) : r2, S2 = [], u2 && k2.XT) for (x2 = h2; x2 < M2 + h2; x2++) k2.XT(x2) && S2.push(x2);
              if (y2.do("clear", h2, d2, M2, C2, a2, S2, o2), w2 && 1 & a2 && !f2 && (w2.mF(h2, d2, M2, C2, true), w2.clear(h2, d2, M2, C2, y2.pj(), true)), 8 & a2 && !(n3 >= 0 && e3 >= 0)) if (e3 >= 0) for (g2 = 0; g2 < C2; g2++) k2.setTag(-1, d2 + g2, H, o2);
              else if (n3 >= 0) for (v2 = 0; v2 < M2; v2++) u2 && k2.XT && k2.XT(h2 + v2) || k2.setTag(h2 + v2, -1, H, o2);
              else k2.setTag(-1, -1, H, o2);
              if (256 & a2 && !(n3 >= 0 && e3 >= 0)) {
                if (e3 >= 0) for (g2 = 0; g2 < C2; g2++) k2.setHyperlink(-1, d2 + g2, H, o2);
                else if (n3 >= 0) for (v2 = 0; v2 < M2; v2++) u2 && k2.XT && k2.XT(h2 + v2) || k2.setHyperlink(-1, -1, H);
              }
              if (2 & a2 && !(n3 >= 0 && e3 >= 0)) if (e3 >= 0) for (g2 = 0; g2 < C2; g2++) k2.setStyle(-1, d2 + g2, H, o2);
              else if (n3 >= 0) for (v2 = 0; v2 < M2; v2++) u2 && k2.XT && k2.XT(h2 + v2) || k2.setStyle(h2 + v2, -1, H, o2);
              else k2.setStyle(-1, -1, H, o2);
              if (32 & a2) {
                if (n3 < 0) for (g2 = 0; g2 < C2; g2++) k2.setColumnVisible(d2 + g2, true, o2), k2.setColumnResizable(d2 + g2, true, o2), k2.setColumnWidth(d2 + g2, 2 === o2 ? l2.rowHeaderColWidth : l2.colWidth, o2);
                if (e3 < 0) for (v2 = 0; v2 < M2; v2++) u2 && k2.XT && k2.XT(h2 + v2) || (k2.setRowVisible(h2 + v2, true, o2), k2.setRowResizable(h2 + v2, true, o2), k2.setRowHeight(h2 + v2, 1 === o2 ? l2.colHeaderRowHeight : l2.rowHeight, o2));
              }
              for (!T(o2) && o2 !== m2 || !N2 || 1 & ~a2 || (A2 = k2.b3()) && A2.gF(n3, e3, i3, r2), I2 = [], v2 = 0; v2 < M2; v2++) for (g2 = 0; g2 < C2; g2++) I2.push({ row: h2 + v2, col: d2 + g2 });
              k2.SI(n3, e3, M2, C2, I2, 2, o2);
            } finally {
              k2.resumePaint(), N2 && k2.resumeCalcService(false);
            }
          }, t3.prototype.uL = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.options, a2 = o2.protectionOptions;
            r2.isActualProtected() && a2 && (t4 = a2.allowSelectLockedCells, n3 = a2.allowSelectUnlockedCells, (false === t4 && false !== n3 || false !== t4 && false === n3) && (e3 = r2.ui, i3 = r2.ci, r2.JA(e3, i3) || (r2.IA(), r2.gA(e3, i3, false), r2.MA(4, e3, i3))));
          }, t3.prototype.setArray = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, f2, l2 = this, h2 = p;
            if (i3 = h2 && i3, a2 = Bt(l2), u2 = Ft(l2), e3 && 0 <= t4 && t4 < a2 && 0 <= n3 && n3 < u2) {
              h2 && l2.suspendCalcService(), l2.suspendPaint(), null === (r2 = l2.startBatchOp) || void 0 === r2 || r2.call(l2);
              try {
                j(e3, (function(e4, r3) {
                  c.GC$.isArray(r3) ? j(r3, (function(r4, o3) {
                    f2 = n3 + r4, (s2 = t4 + e4) < a2 && f2 < u2 && (i3 ? l2.setFormula(s2, f2, o3) : l2.setValue(s2, f2, o3, 3));
                  })) : (f2 = n3, (s2 = t4 + e4) < a2 && f2 < u2 && (i3 ? l2.setFormula(s2, f2, r3) : l2.setValue(s2, f2, r3, 3)));
                }));
              } finally {
                h2 && l2.resumeCalcService(false), null === (o2 = l2.endBatchOp) || void 0 === o2 || o2.call(l2), l2.resumePaint();
              }
            }
          }, t3.prototype.getArray = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = this, s2 = [], c2 = Bt(u2), f2 = Ft(u2);
            if (r2 = r2 && p, 0 <= t4 && t4 < c2 && 0 <= n3 && n3 < f2) for (t4 + e3 > c2 && (e3 = c2 - t4), n3 + i3 > f2 && (i3 = f2 - n3), o2 = 0; o2 < e3; o2++) for (s2[o2] = [], a2 = 0; a2 < i3; a2++) s2[o2][a2] = r2 ? u2.getFormula(t4 + o2, n3 + a2) : u2.getValue(t4 + o2, n3 + a2);
            return s2;
          }, t3.prototype.setTag = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (T(i3) && (i3 = 3), r2 = this, 0 !== i3) {
              if (a2 = (o2 = r2.Ut).getRowCount(i3), u2 = o2.getColumnCount(i3), t4 < -1 || t4 >= a2 || n3 < -1 || n3 >= u2) return;
              e3 = O(e3), s2 = void 0, (c2 = r2.vf > 0) || (s2 = r2.getTag(t4, n3, i3)), o2.do("setValueForKey", t4, n3, nt, e3, i3), s2 !== e3 && (-1 !== t4 && -1 !== n3 ? c2 ? r2.Lj(r2, [{ row: t4, col: n3 }], 0) : r2.Rj(nt, t4, n3, i3, s2, e3) : -1 !== t4 && -1 === n3 ? r2.dj(t4, i3, nt, e3, s2) : -1 === t4 && -1 !== n3 && r2.vj(n3, i3, nt, e3, s2));
            }
          }, t3.prototype.getTag = function(t4, n3, e3) {
            var i3, r2 = this;
            return T(e3) && (e3 = 3), 0 !== e3 ? (i3 = r2.Ut.getValueForKey(t4, n3, nt, e3), E(i3)) : H;
          }, t3.prototype.tag = function(t4) {
            var n3, e3 = this;
            return 0 === arguments.length ? (n3 = e3.Ut.getValueForKey(-1, -1, nt, 3), E(n3)) : (e3.Ut.do("setValueForKey", -1, -1, nt, O(t4), 3), e3);
          }, t3.prototype.setAltText = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (T(i3) && (i3 = 3), r2 = this, 0 !== i3) {
              if (a2 = (o2 = r2.Ut).getRowCount(i3), u2 = o2.getColumnCount(i3), t4 < -1 || t4 >= a2 || n3 < -1 || n3 >= u2) return;
              s2 = void 0, (c2 = r2.vf > 0) || (s2 = r2.getAltText(t4, n3, i3)), o2.do("setValueForKey", t4, n3, et, e3, i3), s2 !== e3 && -1 !== t4 && -1 !== n3 && (c2 ? r2.Lj(r2, [{ row: t4, col: n3 }], 0) : r2.Rj(et, t4, n3, i3, s2, e3));
            }
          }, t3.prototype.getAltText = function(t4, n3, e3) {
            var i3 = this;
            return T(e3) && (e3 = 3), 0 !== e3 ? i3.Ut.getValueForKey(t4, n3, et, e3) : H;
          }, t3.prototype.getParent = function() {
            return this.parent;
          }, t3.prototype.getDirtyRows = function() {
            return Ot(this, true);
          }, t3.prototype.getInsertRows = function() {
            return Ot(this, false);
          }, t3.prototype.getDeletedRows = function() {
            var t4 = [], n3 = this.aj;
            return n3 && j(n3, (function(n4, e3) {
              e3 && !c.GC$.isFunction(e3) && t4.push({ row: e3.row, originalItem: e3.data });
            })), t4;
          }, t3.prototype.hasPendingChanges = function() {
            var t4, n3 = this, e3 = n3.aj;
            return !!(e3 && e3.length > 0) || !sn(t4 = n3.Ut.Fj());
          }, t3.prototype.backgroundImage = function(t4, n3) {
            var e3, i3 = this;
            if (arguments.length < 1) return null === (e3 = i3.eYr) || void 0 === e3 ? void 0 : e3.src;
            i3.oKr(t4, n3);
          }, t3.prototype.oKr = function(t4, n3, e3) {
            var i3 = this, o2 = n3 || {}, a2 = i3.eYr, u2 = t4 ? _t(_t({}, o2), { src: t4 }) : V;
            i3.eYr = u2, i3.Ut.P8 > 0 && i3.Ut.G8.push({ oldImage: a2, type: "setBackImage" }), i3.sYr(t4, null == a2 ? void 0 : a2.src), (null == u2 ? void 0 : u2.src) === (null == a2 ? void 0 : a2.src) && (null == u2 ? void 0 : u2.layout) === (null == a2 ? void 0 : a2.layout) && u2.fitScreenDPI === (null == a2 ? void 0 : a2.fitScreenDPI) || (i3.Lj(i3, [{ row: 0, col: 0, rowCount: i3.getRowCount(), colCount: i3.getColumnCount() }], 0), i3.ki(r.Events.SheetBackgroundChangedInternal, _t({}, u2)), e3 || i3.$Dr({ type: "setSheetBackgroundImage", newImage: u2, oldValue: a2 }));
          }, t3.prototype.gYr = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            if (t4) for (e3 = t4.length - 1; e3 >= 0; e3--) "setBackImage" === (r2 = (i3 = t4[e3]).type) && o2.backgroundImage(null === (n3 = i3.oldImage) || void 0 === n3 ? void 0 : n3.src, i3.oldImage);
          }, t3.prototype.clearPendingChanges = function(n3) {
            var e3, i3, r2, o2, a2, u2 = this;
            if (T(n3) || D(n3)) return u2.Ut.Hj(), u2.aj = [], void t3.et(u2, "clearPendingChanges");
            e3 = n3.row, i3 = n3.col, r2 = n3.rowCount, o2 = n3.colCount, (1 & (a2 = (a2 = n3.clearType) || It.dirty)) === It.dirty && u2.pF(e3, i3, r2, o2), (2 & a2) === It.insert && u2.bF(e3, i3, r2, o2), (4 & a2) === It.delete && u2.yF(e3, i3, r2, o2);
          }, t3.prototype.pF = function(n3, e3, i3, r2) {
            var o2 = this, a2 = o2.Ut, u2 = o2.wF(n3, e3, i3, r2), s2 = o2.MF(e3, r2);
            u2 ? (a2.Qj(), t3.et(o2, "clearPendingChanges")) : a2.Vj(s2, n3, e3, i3, r2);
          }, t3.prototype.bF = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.Ut, a2 = r2.wF(t4, n3, e3, i3), u2 = r2.MF(n3, i3);
            o2.zj(a2, u2, t4, e3);
          }, t3.prototype.yF = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this;
            if (s2.wF(t4, n3, e3, i3)) s2.aj = [];
            else if (s2.MF(n3, i3) && (r2 = s2.aj)) for (o2 = [], j(r2, (function(n4, i4) {
              if (i4) {
                var r3 = i4.row;
                t4 <= r3 && r3 < t4 + e3 && o2.push(n4);
              }
            })), u2 = (a2 = o2.length) - 1; u2 >= 0; u2--) s2.aj.splice(o2[u2], 1);
          }, t3.prototype.MF = function(t4, n3) {
            return T(t4) || -1 === t4 || 0 === t4 && this.getColumnCount() === n3;
          }, t3.prototype.SF = function(t4, n3) {
            return T(t4) || -1 === t4 || 0 === t4 && n3 === this.getRowCount();
          }, t3.prototype.wF = function(t4, n3, e3, i3) {
            return this.MF(t4, e3) && this.MF(n3, i3);
          }, t3.prototype.getDirtyCells = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2 = this;
            if (T(t4) && (t4 = -1), T(n3) && (n3 = -1), (T(e3) || e3 <= 0) && (e3 = 1), (T(i3) || i3 <= 0) && (i3 = 1), r2 = [], o2 = l2.Ut.Fj(), !D(o2)) {
              if (a2 = [], t4 >= 0) for (u2 = t4; u2 < t4 + e3; u2++) a2.push(u2);
              else for (s2 in o2) _(o2, s2) && a2.push(P(s2));
              j(a2, (function(t5, e4) {
                var a3, u3;
                if ((c2 = o2[e4]) && "e" === c2.rs) if (n3 >= 0) for (a3 = n3; a3 < n3 + i3; a3++) (f2 = c2[a3]) && r2.push(an(l2, e4, a3, f2.oldValue));
                else for (u3 in c2) U(u3) || (f2 = c2[u3]) && r2.push(an(l2, e4, P(u3), f2.oldValue));
              }));
            }
            return r2;
          }, t3.prototype.suspendDirty = function() {
            this.lE++, this.Ut.Kj();
          }, t3.prototype.resumeDirty = function() {
            var t4 = this;
            t4.lE--, t4.lE < 0 && (t4.lE = 0), t4.Ut.Jj();
          }, t3.prototype.isDirtySuspended = function() {
            return this.lE > 0;
          }, t3.prototype.Hc = function(t4) {
            this.cg(new r.Rect(0, 0, 0, 0)), this.sF(), this.ub(t4);
          }, t3.prototype.TF = function() {
            return this;
          }, t3.prototype.uw = function() {
            var t4, n3 = this, e3 = n3.Dg(), i3 = { top: 0, left: 0 };
            return e3 && e3.parentElement && (i3 = (0, c.GC$)(e3).offset()) && (i3.top += B.body.clientTop || 0, i3.left += B.body.clientLeft || 0), (t4 = e3 && e3.canvasOffset) && (i3 = t4), i3;
          }, t3.prototype.hg = function(n3) {
            var e3, i3, o2, a2, u2, s2;
            n3 && ((e3 = this).xT = false, (i3 = e3.fg) && e3.L0(false), o2 = A("canvas"), u2 = (a2 = e3.parent && e3.parent.options.enableAccessibility) ? "" : xt().NeedCanvasSupport, (0, c.GC$)(o2).attr("id", n3.getAttribute("id") + "_vp").attr("gcUIElement", "gcWorksheetCanvas").html(u2).appendTo(n3), r.Bf.Wl(o2, H, e3), e3.fg = o2, (s2 = e3.parent) && s2.sdr && (s2.jM(), s2.Uur(e3.options.rightToLeft), s2.sC(), s2.iM()), e3.Cg(), e3.repaint(), e3.parent && e3.parent.nb(), t3.et(e3, "setHost", (0, c.GC$)(o2)));
          }, t3.prototype.AF = function(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2 = this, h2 = l2.getActiveRowIndex(), d2 = l2.getActiveColumnIndex(), v2 = function(t5, e4) {
              return h2 === n3 && e4 === d2 ? l2._ue(t5) : t5;
            };
            for (c2 = e3; c2 < i3; c2++) f2 = v2(l2.getText(n3, c2, s2), c2), t4.push('"' + f2 + '"');
            for (c2 = r2; c2 < o2; c2++) f2 = v2(l2.getText(n3, c2, s2), c2), t4.push('"' + f2 + '"');
            for (c2 = a2; c2 < u2; c2++) f2 = v2(l2.getText(n3, c2, s2), c2), t4.push('"' + f2 + '"');
          }, t3.prototype.t2 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.ui, f2 = s2.ci, l2 = h.SheetArea.viewport;
            if (!t4 || T(t4.row) || T(t4.col) || (c2 = t4.row, f2 = t4.col, l2 = t4.hitTestType), n3 = xt(), t4 && t4.outlineHitInfo) {
              if (e3 = t4.outlineHitInfo.what, i3 = t4.outlineHitInfo.info, e3 === mt || e3 === bt) return i3.isExpanded ? n3.ARIA_OutlineGroupCollapsed : n3.ARIA_OutlineGroupExpanded;
              if (e3 === pt || e3 === gt) return i3.index + 1 + "";
            }
            return r2 = "", o2 = s2.getText(c2, f2, l2), l2 === h.SheetArea.rowHeader ? r2 = n3.ARIA_RowHeader + " " : l2 === h.SheetArea.colHeader ? r2 = n3.ARIA_ColumnHeader + " " : (T(l2) || l2 === h.SheetArea.viewport) && (a2 = s2.getFormula(c2, f2), u2 = s2.comments && s2.comments.get(c2, f2)), r2 + s2.N6(c2, f2, l2, o2, a2, u2 && u2.text());
          }, t3.prototype.N6 = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2 = xt(), v2 = d2.ARIA_Cell + " " + r.util.Vf(n3 + 1) + (t4 + 1) + " ", p2 = this.getAltText(t4, n3, e3);
            return p2 ? (u2 = "{value}", p2.indexOf(u2) >= 0 && ((s2 = this.getValue(t4, n3, e3)) instanceof Date && (s2 = s2.toLocaleString()), p2 = p2.replace(/\{value\}/g, s2)), c2 = "{formatted}", p2.indexOf(c2) >= 0 && (p2 = p2.replace(/\{formatted\}/g, i3)), v2 += p2) : (f2 = "", T(i3) || "" === i3 || (f2 = F.I5(d2.ARIA_HasValue, [i3]) + ", "), h2 = void 0, (l2 = this.l0(t4, n3, "cellType", e3)) && ("5" === l2.typeName ? (h2 = l2.SG(this.getValue(t4, n3, e3)), f2 = F.I5(d2.ARIA_HasCheckbox, [h2]) + ", ") : "6" === l2.typeName ? (h2 = l2.text(), f2 = F.I5(d2.ARIA_HasButton, [h2]) + ", ") : "8" === l2.typeName && (h2 = l2.text(), f2 = F.I5(d2.ARIA_HasHyperlink, [h2]) + ", ")), v2 += f2, T(o2) || (v2 += F.I5(d2.ARIA_HasFormula, [o2]) + ", "), T(a2) || (v2 += F.I5(d2.ARIA_HasComment, [a2]))), this.rowOutlines && this.rowOutlines.npt(t4) ? this.rowOutlines.isCollapsed(t4) || (this.rowOutlines.isCollapsed(t4 - 1) ? v2 += d2.ARIA_OutlineGroupCollapsedGroup : v2 += d2.ARIA_OutlineGroupExpandedGroup) : this.columnOutlines && this.columnOutlines.npt(n3) && (this.columnOutlines.isCollapsed(n3) || (this.columnOutlines.isCollapsed(n3 - 1) ? v2 += d2.ARIA_OutlineGroupCollapsedGroup : v2 += d2.ARIA_OutlineGroupExpandedGroup)), this._ue(v2);
          }, t3.prototype._ue = function(t4) {
            return this.Eue && (t4 = this.Eue + " " + t4), this.jue && (t4 = t4 + " " + this.jue), t4;
          }, t3.prototype.setAccessibilityPrefixSuffixContent = function(t4, n3) {
            this.Eue = t4, this.jue = n3;
          }, t3.prototype.Cg = function() {
            var t4, n3, e3, i3, o2, a2, u2, s2, f2 = this, l2 = f2.Dg();
            l2 && l2.parentNode && (n3 = (t4 = getComputedStyle(l2.parentNode)).width, e3 = t4.height, (i3 = n3.indexOf("px")) > 0 && (n3 = n3.substring(0, i3)), (i3 = e3.indexOf("px")) > 0 && (e3 = e3.substring(0, i3)), o2 = P(n3), a2 = P(e3), U(o2) && (o2 = (0, c.GC$)(l2.parentNode).width()), U(a2) && (a2 = (0, c.GC$)(l2.parentNode).height()), 0 !== o2 && 0 !== a2 && (u2 = Y(o2, 0), s2 = Y(a2, 0), l2.style.display = "none", l2.style.display = "", l2.width = u2, l2.height = s2, l2.style.width = u2 + "px", l2.style.height = s2 + "px", u2 = l2.clientWidth || l2.width, s2 = l2.clientHeight || l2.height, f2.kg.width = u2, f2.kg.height = s2, r.Bf.$l(l2, u2, s2), f2.invalidateLayout()));
          }, t3.prototype.destroy = function() {
            this.L0(true);
          }, t3.prototype.L0 = function(t4, n3) {
            this.fAn(t4, n3);
          }, t3.prototype.fAn = function(n3, e3, i3) {
            var o2, a2, u2, s2 = this;
            true !== s2.xT && (r.Bf.eh(s2), s2.isEditing && s2.isEditing() && s2.l6(s2.ui, s2.ci, h.SheetArea.viewport, void 0, void 0, void 0, void 0, false), t3.et(s2, "dispose", { clearCache: n3, isSheetDestroy: true, hasActiveSheet: e3 }), (o2 = s2.fg) && ((a2 = o2.parentNode) && a2.removeChild(o2), r.Lf.d5(o2), s2.fg = H), s2.NF(), s2.Ut && s2.Ut.L0(n3), (false !== n3 || i3) && s2.GRe().d5(), false !== n3 && (s2.xT = true, (u2 = s2.lA) && u2.L0(), s2.parent = H, s2.Ut = H, s2.Jt && (s2.Jt.L0(), s2.Jt = H), s2.MC && (s2.MC.L0(), s2.MC = H), s2.dCn && (s2.dCn.L0(), s2.dCn = H), r.hi.A1(s2) && r.hi.F1(H, true), s2.bM && (s2.bM.c5(), s2.bM = H), s2.$L = H, s2.nF = H, s2.pYr = H, s2.Cao = H, s2.cYr = H, s2.uYr = H), false !== n3 && (s2.vuo = H));
          }, t3.prototype.NF = function() {
            var t4 = this.kF;
            t4 && ((0, c.GC$)(t4).remove(), this.kF = V);
          }, t3.prototype.mL = function(t4, n3, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, g2, m2, b2, y2, w2, M2, C2, S2, A2, I2, k2, N2, j2, D2, _2, O2;
            return void 0 === o2 && (o2 = {}), f2 = (c2 = this).options, l2 = c2.Ut, 0 === e3 ? H : (T(e3) && (e3 = 3), !(h2 = x(o2.rowSpacingIndex)) && 3 === e3 && this.S6 && (m2 = (g2 = this.Uw && this.Uw(e3)) && g2.t8.getAnchorInfo(t4, n3)) && m2.isValid && (t4 !== m2.row || n3 !== m2.col) ? H : (h2 || this.loading || !(b2 = p && this.Lp) || !b2.calcOnDemand || b2.xgr || b2.incrementalCalculation || b2.IsSuspended() || 0 !== b2.calculationMode || (w2 = (y2 = this.b3(e3)).oT(t4, n3)) && (true === w2.k1 && (b2.b_t(w2, 0), (null === (a2 = w2.node) || void 0 === a2 ? void 0 : a2.WK) && y2.recalculateCell(w2), this.Uw()._F()), (null === (u2 = w2.node) || void 0 === u2 ? void 0 : u2.WK) || (m2 = null == (M2 = null === (s2 = y2.rT) || void 0 === s2 ? void 0 : s2.t8) ? void 0 : M2.getAnchorInfo(t4, n3)) && m2.isValid && c2.mL(m2.row, m2.col, e3)), C2 = l2.getValue(t4, n3, e3, this.loading, i3, o2), C2 = E(C2), h2 || (S2 = void 0, 1 === e3 ? (A2 = l2.getRowCount(e3), T(C2) && ((I2 = c2.H3) && I2._dataSource && (k2 = c2.Ut.q_(false, 3, n3), N2 = f2.colHeaderAutoTextIndex, k2 && (N2 >= 0 && t4 === N2 || -1 === N2 && t4 === A2 - 1) && (C2 = k2.displayName || k2.name)), T(C2) && (((S2 = f2.colHeaderAutoTextIndex) < 0 || S2 >= A2) && (S2 = A2 - 1), t4 === S2 && (2 === (j2 = f2.colHeaderAutoText) ? C2 = r.util.Vf(n3 + 1) : 1 === j2 && (C2 = n3 + 1))))) : 2 === e3 && T(C2) && (D2 = l2.getColumnCount(e3), ((S2 = f2.rowHeaderAutoTextIndex) < 0 || S2 >= D2) && (S2 = D2 - 1), n3 === S2 && (2 === (_2 = f2.rowHeaderAutoText) ? C2 = r.util.Vf(t4 + 1) : 1 === _2 && (C2 = t4 + 1))), !(O2 = o2.realValue) && "number" == typeof C2 && v && v.ExcelCompatibleCalcMode && (C2 = d.Common.st.E8(C2, 15))), C2));
          }, t3.prototype.JS = function(t4, n3) {
            var e3, i3, o2, a2, u2, s2, c2, f2;
            return T(n3) && (n3 = 3), e3 = (0, r.Ec)(-1, -1, -1, -1), t4 && (i3 = this, o2 = t4.row, a2 = t4.col, u2 = t4.rowCount, s2 = t4.colCount, c2 = i3.getRowCount(n3), f2 = i3.getColumnCount(n3), -1 === a2 && (a2 = 0, s2 = f2), -1 === o2 && (o2 = 0, u2 = c2), e3.col = a2, e3.row = o2, e3.colCount = z(Y(f2 - a2, 0), s2), e3.rowCount = z(Y(c2 - o2, 0), u2)), e3;
          }, t3.prototype.getRangeRect = function(t4, n3, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = new r.Rect(-1, -1, -1, -1), S2 = this, T2 = S2.Fi(), x2 = S2.C6(t4, n3);
            if (0 === T2.width || 0 === T2.height) return C2;
            if (i3 = S2._y(t4, x2), !(o2 = S2.Yy(n3, x2)) || 0 === o2.length || !i3 || 0 === i3.length) return C2;
            function A2(t5, n4) {
              for (; t5 > n4; ) if (t5--, S2.getColumnVisible(t5)) return t5;
              return t5;
            }
            function I2(t5, n4) {
              for (; t5 < n4; ) if (t5++, S2.getColumnVisible(t5)) return t5;
              return t5;
            }
            function k2(t5, n4) {
              for (; t5 > n4; ) if (t5--, S2.getRowVisible(t5)) return t5;
              return t5;
            }
            function N2(t5, n4) {
              for (; t5 < n4; ) if (t5++, S2.getRowVisible(t5)) return t5;
              return t5;
            }
            return a2 = S2.JS(e3), u2 = S2.Jt, s2 = a2.row, c2 = a2.row + a2.rowCount - 1, f2 = a2.col, l2 = a2.col + a2.colCount - 1, d2 = zt(S2), v2 = Bt(S2) - Gt(S2) - 1, p2 = Vt(S2), g2 = Ft(S2) - Pt(S2) - 1, m2 = o2[0].col, b2 = o2[o2.length - 1].col, y2 = i3[0].row, w2 = i3[i3.length - 1].row, M2 = S2.options.rightToLeft, f2 < m2 && x2 === h.SheetArea.viewport && (f2 = A2(m2, f2), M2 && (f2 = Y(f2, S2.getViewportLeftColumn(n3)))), l2 > b2 && x2 === h.SheetArea.viewport && (l2 = I2(b2, l2), M2 && (l2 = z(l2, S2.getViewportRightColumn(n3)))), s2 < y2 && (s2 = k2(y2, s2)), c2 > w2 && (c2 = N2(w2, c2)), l2 < f2 || c2 < s2 || (0 === n3 ? f2 < p2 && (M2 ? (C2.x = T2.b6 + T2.F6 - Et(u2, S2.jve(), f2 - 1), C2.width = Et(u2, f2, l2), C2.x -= C2.width) : (C2.x = T2.b6 + Et(u2, S2.jve(), f2 - 1), C2.width = Et(u2, f2, l2))) : 1 === n3 || -1 === n3 ? f2 <= g2 && l2 >= p2 && (M2 ? (C2.x = f2 < m2 ? o2[0].x + o2[0].width + Et(u2, f2, m2 - 1, x2) : o2[0].x + o2[0].width - Et(u2, m2, f2 - 1, x2), C2.width = Et(u2, f2, l2, x2), C2.x -= C2.width) : (C2.x = f2 < m2 ? o2[0].x - Et(u2, f2, m2 - 1, x2) : o2[0].x + Et(u2, m2, f2 - 1, x2), C2.width = Et(u2, f2, l2, x2))) : 2 === n3 && l2 > g2 && (M2 ? (C2.x = f2 < m2 ? T2.Hy + T2.zy + Et(u2, f2, m2 - 1) : T2.Hy + T2.zy - Et(u2, m2, f2 - 1), C2.width = Et(u2, f2, l2), C2.x -= C2.width) : (C2.x = f2 < m2 ? T2.Hy - Et(u2, f2, m2 - 1) : T2.Hy + Et(u2, m2, f2 - 1), C2.width = Et(u2, f2, l2))), 0 === t4 ? s2 < d2 && (C2.y = T2.T6 + Rt(u2, S2.Eve(), s2 - 1), C2.height = Rt(u2, s2, c2)) : 1 === t4 || -1 === t4 ? s2 <= v2 && c2 >= d2 && (s2 < y2 ? (C2.y = i3[0].y - Rt(u2, s2, y2 - 1, x2), S2.Csr && (C2.y -= Lt(u2, s2, y2 - 1), C2.y += u2.Mf.Msr(s2), C2.y -= u2.Mf.Msr(y2))) : (C2.y = i3[0].y + Rt(u2, y2, s2 - 1, x2), S2.Csr && (C2.y += Lt(u2, y2, s2 - 1), s2 > y2 && (C2.y -= u2.Mf.Msr(y2), C2.y += u2.Mf.Msr(s2)))), C2.height = Rt(u2, s2, c2, x2), S2.Csr && (C2.height += Lt(u2, s2, c2), C2.height -= u2.Mf.Msr(s2), C2.height -= u2.Mf.Msr(c2, true))) : 2 === t4 && c2 > v2 && (C2.y = s2 < y2 ? T2.Ay - Rt(u2, s2, y2 - 1) : T2.Ay + Rt(u2, y2, s2 - 1), C2.height = Rt(u2, s2, c2))), C2;
          }, t3.prototype.isIntersectWithArrayFormula = function(t4) {
            var n3, e3, i3 = p && this.b3();
            if (i3) {
              for (n3 = t4.row; n3 < t4.row + t4.rowCount; n3++) for (e3 = t4.col; e3 < t4.col + t4.colCount; e3++) if (i3.EF(n3, e3, 1, 1)) return true;
            }
            return false;
          }, t3.prototype.setRangeActiveCells = function(t4, n3, e3) {
            this.XA(t4, n3, e3), this.repaint();
          }, t3.prototype.j1 = function(t4, n3) {
            var e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = new r.Rect(-1, -1, -1, -1), C2 = w2.Fi();
            if (0 === C2.width || 0 === C2.height) return M2;
            if (e3 = w2.JS(t4, n3), i3 = Vt(w2), o2 = zt(w2), a2 = Pt(w2), u2 = Gt(w2), s2 = w2.Jt, c2 = e3.row, f2 = e3.row + e3.rowCount - 1, l2 = e3.col, h2 = e3.col + e3.colCount - 1, d2 = Bt(w2, n3), v2 = Ft(w2, n3), m2 = w2.options.rightToLeft, l2 < i3) M2.x = m2 ? C2.b6 + C2.F6 - Et(s2, w2.jve(), l2 - 1, n3) : C2.b6 + Et(s2, w2.jve(), l2 - 1, n3), M2.width = Et(s2, l2, z(h2, i3 - 1), n3), i3 <= h2 && h2 < v2 - a2 ? (p2 = w2.yw(1)) && p2.length > 0 && (M2.width += Et(s2, p2[0].col, z(h2, p2[p2.length - 1].col), n3) + w2.my) : h2 >= v2 - a2 && (p2 = w2.yw(2)) && p2.length > 0 && (M2.width = m2 ? M2.x - (p2[0].x + p2[0].width) : p2[0].x - M2.x, M2.width += Et(s2, v2 - a2, z(h2, v2 - 1), n3)), m2 && (M2.x -= M2.width);
            else if (l2 < v2 - a2) {
              if (!(p2 = w2.yw(1)) || 0 === p2.length || l2 > p2[p2.length - 1].col || h2 < p2[0].col) return M2;
              M2.x = m2 ? C2.b6 - Et(s2, p2[0].col, l2 - 1, n3) - w2.my : C2.Py + Et(s2, p2[0].col, l2 - 1, n3) + w2.my, i3 <= h2 && h2 < v2 - a2 ? M2.width = Et(s2, Y(l2, p2[0].col), z(h2, p2[p2.length - 1].col), n3) : h2 >= v2 - a2 && (p2 = w2.yw(2)) && p2.length > 0 && (M2.width = m2 ? M2.x - (p2[0].x + p2[0].width) : p2[0].x - M2.x, M2.width += Et(s2, v2 - a2, z(h2, v2 - 1), n3)), m2 && (M2.x -= M2.width);
            } else l2 < v2 && ((p2 = w2.yw(2)) && p2.length > 0 && (M2.x = m2 ? C2.Hy + C2.zy - Et(s2, p2[0].col, l2 - 1, n3) : C2.Hy + Et(s2, p2[0].col, l2 - 1, n3), M2.width = Et(s2, l2, z(h2, v2 - 1), n3)), m2 && (M2.x -= M2.width));
            if (c2 < o2) M2.y = C2.T6 + Rt(s2, w2.Eve(), c2 - 1, n3), M2.height = Rt(s2, c2, z(f2, o2 - 1), n3), o2 <= f2 && f2 < d2 - u2 ? (g2 = w2.dw(1)) && g2.length > 0 && (M2.height += Rt(s2, g2[0].row, z(f2, g2[g2.length - 1].row), n3) + w2.ly) : f2 >= d2 - u2 && (g2 = w2.dw(2)) && g2.length > 0 && (M2.height = g2[0].y - M2.y, M2.height += Rt(s2, d2 - u2, z(f2, d2 - 1), n3));
            else if (c2 < d2 - u2) {
              if (!(g2 = w2.dw(1)) || 0 === g2.length || c2 > g2[g2.length - 1].row || f2 < g2[0].row) return M2;
              M2.y = C2.Cy + Rt(s2, g2[0].row, c2 - 1, n3) + w2.ly, w2.Csr && (M2.y += Lt(s2, g2[0].row, c2 - 1), c2 > g2[0].row ? M2.y += s2.Mf.Msr(c2) : c2 === g2[0].row && (M2.y += s2.Mf.Msr(g2[0].row))), o2 <= f2 && f2 < d2 - u2 ? (b2 = Y(c2, g2[0].row), y2 = z(f2, g2[g2.length - 1].row), M2.height = Rt(s2, b2, y2, n3), w2.Csr && (M2.height += Lt(s2, b2, y2), c2 > g2[0].row && (M2.height -= s2.Mf.Msr(b2)), f2 < g2[g2.length - 1].row && (M2.height -= s2.Mf.Msr(y2, true)))) : f2 >= d2 - u2 && (g2 = w2.dw(2)) && g2.length > 0 && (M2.height = g2[0].y - M2.y, M2.height += Rt(s2, d2 - u2, z(f2, d2 - 1), n3));
            } else c2 < d2 && (g2 = w2.dw(2)) && g2.length > 0 && (M2.y = C2.Ay + Rt(s2, g2[0].row, c2 - 1, n3), M2.height += Rt(s2, c2, z(f2, d2 - 1), n3));
            return M2;
          }, t3.prototype.Dg = function() {
            return this.fg;
          }, t3.prototype.Gi = function(t4, n3) {
            return this.Qt(t4, n3) + 1;
          }, t3.prototype.Qt = function(t4, n3) {
            var e3 = "", i3 = this.Dn;
            return e3 = n3 || i3._n(i3.Nn()), r.q.Wt(t4, e3);
          }, t3.prototype.PL = function(t4) {
            var n3 = this, e3 = n3.Fi(), i3 = H, r2 = e3.Py, o2 = n3.Gy(e3), a2 = e3.Hy, u2 = e3.zy;
            return e3.BA < t4 && t4 < e3.BA + e3.XC ? i3 = -1 : e3.b6 < t4 && t4 < e3.b6 + e3.F6 ? i3 = 0 : r2 < t4 && t4 < r2 + o2 ? i3 = 1 : a2 < t4 && t4 < a2 + u2 && (i3 = 2), i3;
          }, t3.prototype.FL = function(t4) {
            var n3 = this, e3 = n3.Fi(), i3 = H, r2 = e3.Cy, o2 = n3.Sy(e3), a2 = e3.Ay, u2 = e3.Iy;
            return n3.Dsr && n3.Dsr(t4) ? i3 = 3 : e3.LA < t4 && t4 < e3.LA + e3.qC ? i3 = -1 : e3.T6 < t4 && t4 < e3.T6 + e3.L6 ? i3 = 0 : r2 < t4 && t4 < r2 + o2 ? i3 = 1 : a2 < t4 && t4 < a2 + u2 && (i3 = 2), i3;
          }, t3.prototype.Osr = function(t4, n3) {
            var e3;
            if (e3 = -1 === n3 ? this.jF() : this.dw(n3)) return e3.findY(t4);
          }, t3.prototype.GL = function(t4, n3) {
            var e3 = this.Osr(t4, n3);
            if (e3) return e3.row;
          }, t3.prototype.UL = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2;
            if (o2 = -1 === n3 ? this.OF() : -1 === i3 ? this.BF(n3) : this.yw(n3)) {
              if (u2 = void 0, -1 !== i3 || T(r2) ? u2 = o2.findX(t4) : (a2 = this.jF().findRow(r2), u2 = o2.findXByExactY(t4, e3, a2)), u2) return u2.col;
              if (o2[0] && ((o2 = this.Dn.VO(o2[0].col, o2[0].x)) && (u2 = -1 !== i3 || T(r2) ? o2.findX(t4) : o2.findXByExactY(t4, e3, a2)), u2)) return u2.col;
            }
          }, t3.prototype.pD = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = t4.YL;
            return c2 !== t4.col || (e3 = this, o2 = t4.colViewportIndex, a2 = t4.y, u2 = t4.row, r2 = this.BF(o2), i3 = this.jF().findRow(u2), n3 === c2 && (c2 = e3.O5(c2, 1)), (s2 = r2.findCol(c2)) && a2 < s2.y * i3.height + i3.y);
          }, t3.prototype.HO = function(t4, n3) {
            var e3 = this;
            return e3.ui <= t4 && t4 < e3.ui + e3.H5 && e3.ci <= n3 && n3 < e3.ci + e3.z5;
          }, t3.prototype.T9 = function(t4) {
            return this.Ut.T9(t4);
          }, t3.prototype.S9 = function(t4) {
            return this.Ut.S9(t4);
          }, t3.prototype.ni = function(t4, n3, e3, i3) {
            var r2 = this, o2 = Bt(r2), a2 = Ft(r2);
            return this.Ut.ni(t4, n3, e3, o2, a2, i3);
          }, t3.prototype.ei = function(t4, n3, e3) {
            var i3 = this, r2 = Bt(i3), o2 = Ft(i3);
            return this.Ut.ei(t4, n3, e3, r2, o2);
          }, t3.prototype.zO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.sw;
            if (f2 && !f2.resizeInfo && !T(e3)) {
              if (a2 = f2.hitTestType, u2 = f2.row, s2 = f2.col, 1 === e3) return i3 = false, !(r2 = c2.Ut.findSpan(u2, s2, 1)) && c2.Cb && (r2 = c2.Cb.D7(u2, s2, 1)), r2 && (i3 = r2.contains(t4, n3, 1, 1)), o2 = t4 === u2 && n3 === s2 || i3, a2 === e3 && o2;
              if (2 === e3) return i3 = false, !(r2 = c2.Ut.findSpan(u2, s2, 2)) && c2.Cb && (r2 = c2.Cb.D7(u2, s2, 2)), r2 && (i3 = r2.contains(t4, n3, 1, 1)), o2 = t4 === u2 && n3 === s2 || i3, a2 === e3 && o2;
              if (3 === e3) return a2 === e3 && t4 === u2 && n3 === s2;
              if (0 === e3) return a2 === e3;
            }
            return false;
          }, t3.prototype.C6 = function(t4, n3) {
            return t4 >= 0 && t4 <= 2 && n3 >= 0 ? 3 : (t4 >= 0 && t4 <= 2 || 3 === t4) && n3 < 0 ? 2 : t4 < 0 && n3 >= 0 ? 1 : t4 < 0 && n3 < 0 ? 0 : H;
          }, t3.prototype.Zg = function(t4) {
            var n3 = this.rt;
            n3 && n3.Zg(t4);
          }, t3.prototype.qc = function() {
            var t4, n3 = this, e3 = n3.parent, i3 = e3 && e3.Ti;
            return i3 || (i3 = (t4 = n3.fg) && t4.parentElement), i3;
          }, t3.prototype.cF = function() {
            var t4 = this, n3 = 0, e3 = 0, i3 = 1, r2 = 1;
            t4.ui = n3, t4.ci = e3, t4.H5 = i3, t4.z5 = r2, t4.qA = n3, t4.hR = e3;
          }, t3.prototype.Gt = function(t4, n3, e3) {
            !T(n3) && isNaN(n3) && (n3 = V);
            var i3 = this, r2 = i3.getRowHeight(t4, n3), o2 = i3.zoom();
            return 1 !== o2 && (r2 *= o2), e3 ? r2 : W(r2);
          }, t3.prototype.nn = function(t4, n3, e3) {
            !T(n3) && isNaN(n3) && (n3 = V);
            var i3 = this, r2 = i3.getColumnWidth(t4, n3), o2 = i3.zoom();
            return 1 !== o2 && (r2 *= o2), e3 ? r2 : W(r2);
          }, t3.prototype.LF = function() {
            var t4, n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.options.rightToLeft, S2 = M2.ot(), T2 = M2.options, x2 = T2.sheetAreaOffset.left, A2 = T2.sheetAreaOffset.top, I2 = new r.Rect(S2.x + x2, S2.y + A2, Y(0, S2.width - x2), Y(0, S2.height - A2)), k2 = I2.width, N2 = I2.height, j2 = Ut(M2), D2 = Ht(M2), _2 = { x: I2.x, y: I2.y, width: I2.width, height: I2.height, XC: 0, qC: 0, F6: 0, L6: 0, zy: 0, Iy: 0, D6: 0, FF: 0, PF: 0, GF: 0, b6: 0, T6: 0, Hy: 0, Ay: 0, Py: 0, Cy: 0, A6: 0, hL: 0, J7: 0, X7: 0, Ty: 0, Uy: 0, BA: 0, LA: 0, lEe: I2.y, hEe: I2.x, Z_e: function() {
              var t5, n4, e4 = this;
              return Qt(T2) ? (t5 = Kt(M2), (n4 = Pt(M2) > 0) ? C2 ? new r.Rect(e4.Hy - t5, e4.lEe, t5, e4.qC - e4.lEe) : new r.Rect(e4.Hy + e4.zy, e4.lEe, t5, e4.y + e4.qC - e4.lEe) : C2 ? new r.Rect(e4.Py - t5, e4.lEe, t5, e4.qC - e4.lEe) : new r.Rect(e4.Py + e4.hL, e4.lEe, t5, e4.y + e4.qC - e4.lEe)) : H;
            }, eEe: function() {
              var t5, n4, e4 = this;
              return Qt(T2) ? (t5 = Kt(M2), (n4 = Pt(M2) > 0) ? C2 ? new r.Rect(e4.Hy - t5, e4.y, t5, e4.qC) : new r.Rect(e4.Hy + e4.zy, e4.y, t5, e4.qC) : C2 ? new r.Rect(e4.Py - t5, e4.y, t5, e4.qC) : new r.Rect(e4.Py + e4.hL, e4.y, t5, e4.qC)) : H;
            }, W_e: function() {
              var t5, n4, e4 = this;
              return Jt(T2) ? (t5 = Xt(M2), (n4 = Gt(M2) > 0) ? C2 ? new r.Rect(e4.hEe, e4.Ay + e4.Iy, e4.XC, t5) : new r.Rect(e4.hEe, e4.Ay + e4.Iy, e4.x + e4.XC - e4.hEe, t5) : C2 ? new r.Rect(e4.hEe, e4.Cy + e4.A6, e4.XC, t5) : new r.Rect(e4.hEe, e4.Cy + e4.A6, e4.x + e4.XC - e4.hEe, t5)) : H;
            }, iEe: function() {
              var t5, n4, e4 = this;
              return Jt(T2) ? (t5 = Xt(M2), (n4 = Gt(M2) > 0) ? C2 ? new r.Rect(e4.hEe, e4.Ay + e4.Iy, e4.XC, t5) : new r.Rect(e4.x, e4.Ay + e4.Iy, e4.XC, t5) : C2 ? new r.Rect(e4.hEe, e4.Cy + e4.A6, e4.XC, t5) : new r.Rect(e4.x, e4.Cy + e4.A6, e4.XC, t5)) : H;
            }, R1: function() {
              var t5 = this;
              return C2 ? new r.Rect(t5.x + t5.width - t5.XC, t5.y, t5.XC, t5.qC) : new r.Rect(t5.x, t5.y, t5.XC, t5.qC);
            }, L1: function(t5) {
              var n4 = this;
              return 0 === t5 ? new r.Rect(n4.b6, n4.y, n4.F6, n4.qC) : 1 === t5 ? new r.Rect(n4.Py, n4.y, M2.Gy(n4), n4.qC) : 2 === t5 ? new r.Rect(n4.Hy, n4.y, n4.zy, n4.qC) : H;
            }, B1: function(t5) {
              var n4 = this;
              return 0 === t5 ? C2 ? new r.Rect(n4.x + n4.width - n4.XC, n4.T6, n4.XC, n4.L6) : new r.Rect(n4.x, n4.T6, n4.XC, n4.L6) : 1 === t5 || 3 === t5 ? C2 ? new r.Rect(n4.x + n4.width - n4.XC, n4.Cy, n4.XC, M2.Sy(n4)) : new r.Rect(n4.x, n4.Cy, n4.XC, M2.Sy(n4)) : 2 === t5 ? C2 ? new r.Rect(n4.x + n4.width - n4.XC, n4.Ay, n4.XC, n4.Iy) : new r.Rect(n4.x, n4.Ay, n4.XC, n4.Iy) : H;
            }, c9: function(t5, n4) {
              var e4 = this;
              if (0 === t5) {
                if (0 === n4) return new r.Rect(e4.b6, e4.T6, e4.F6, e4.L6);
                if (1 === n4) return new r.Rect(e4.Py, e4.T6, M2.Gy(e4), e4.L6);
                if (2 === n4) return new r.Rect(e4.Hy, e4.T6, e4.zy, e4.L6);
              } else if (1 === t5 || 3 === t5) {
                if (0 === n4) return new r.Rect(e4.b6, e4.Cy, e4.F6, M2.Sy(e4));
                if (1 === n4) return new r.Rect(e4.Py, e4.Cy, M2.Gy(e4), M2.Sy(e4));
                if (2 === n4) return new r.Rect(e4.Hy, e4.Cy, e4.zy, M2.Sy(e4));
              } else if (2 === t5) {
                if (0 === n4) return new r.Rect(e4.b6, e4.Ay, e4.F6, e4.Iy);
                if (1 === n4) return new r.Rect(e4.Py, e4.Ay, M2.Gy(e4), e4.Iy);
                if (2 === n4) return new r.Rect(e4.Hy, e4.Ay, e4.zy, e4.Iy);
              }
              return H;
            } };
            if (M2.gj && (n3 = 0, (t4 = M2.gj()).width > 0 && (C2 ? (_2.width -= t4.width + n3, k2 -= t4.width + n3) : (_2.x += t4.width + n3, k2 -= t4.width + n3)), t4.height > 0 && (_2.y += t4.height + n3, N2 -= t4.height + n3)), T2.rowHeaderVisible) {
              for (a2 = M2.getColumnCount(2), u2 = 0, o2 = 0; o2 < a2; o2++) u2 = M2.nn(o2, 2), _2.XC += u2;
              _2.hEe = C2 ? _2.x + _2.width - u2 : _2.x + _2.XC - u2;
            } else C2 && (_2.hEe = _2.x + _2.width - _2.XC);
            if (T2.colHeaderVisible) {
              for (i3 = M2.getRowCount(1), s2 = 0, e3 = 0; e3 < i3; e3++) s2 = M2.Gt(e3, 1), _2.qC += s2;
              _2.lEe = _2.y + _2.qC - s2;
            }
            if ((c2 = Vt(M2)) > 0) for (a2 = Ft(M2), o2 = M2.jve(); o2 < c2 && o2 < a2; o2++) M2.getColumnVisible(o2) && (_2.F6 += M2.nn(o2));
            if ((f2 = zt(M2)) > 0) for (i3 = Bt(M2), e3 = M2.Eve(); e3 < f2 && e3 < i3; e3++) M2.getRowVisible(e3) && (_2.L6 += M2.Gt(e3));
            if ((l2 = Pt(M2)) > 0) {
              for (a2 = Ft(M2), o2 = Y(c2, a2 - l2); o2 < a2; o2++) _2.zy += M2.nn(o2);
              D2 && Qt(T2) && (k2 -= Kt(M2));
            }
            if ((h2 = Gt(M2)) > 0) {
              for (i3 = Bt(M2), e3 = Y(f2, i3 - h2); e3 < i3; e3++) _2.Iy += M2.Gt(e3);
              j2 && Jt(T2) && (N2 -= Xt(M2));
            }
            if (_2.BA = C2 ? _2.x + _2.width - _2.XC : _2.x, _2.LA = _2.y, _2.b6 = C2 ? _2.x + _2.width - _2.XC - _2.F6 : _2.BA + _2.XC, _2.T6 = _2.LA + _2.qC, _2.Py = C2 ? _2.x + _2.zy : _2.b6 + _2.F6, _2.Cy = _2.T6 + _2.L6, k2 -= _2.XC, N2 -= _2.qC, k2 -= _2.F6, N2 -= _2.L6, k2 -= _2.zy, N2 -= _2.Iy, k2 -= _2.Uy, N2 -= _2.Ty, N2 -= _2.D6, i3 = Bt(M2), d2 = 0, (v2 = (a2 = Ft(M2)) - l2) > 0) for (d2 += M2.my, o2 = Y(c2, M2.Ab); o2 < v2 && d2 < k2; o2++) d2 += M2.nn(o2);
            if (d2 < (p2 = Y(0, k2)) ? (_2.Uy = p2 - d2, _2.hL = d2, p2 = d2) : _2.hL = p2, g2 = 0, (m2 = i3 - h2) > 0) for (g2 += M2.ly, e3 = Y(f2, M2.Tb); e3 < m2 && g2 < N2; e3++) (b2 = this.Csr && this.Csr(e3)) && (g2 += M2.Msr(e3)), g2 += M2.Gt(e3), (y2 = this.Csr && this.Csr(e3, true)) && (g2 += M2.Msr(e3, true));
            return g2 < (w2 = Y(0, N2)) ? (_2.Ty = w2 - g2, _2.A6 = g2, w2 = g2) : _2.A6 = w2, _2.Hy = C2 ? _2.x : _2.Py + p2, _2.Ay = _2.Cy + w2, D2 ? C2 ? (_2.J7 = _2.x + _2.width - _2.XC - _2.F6 - _2.hL - _2.Uy, _2.Py += _2.Uy, Qt(T2) && (_2.zy > 0 && (_2.Py += Kt(M2)), _2.Hy += Kt(M2))) : (_2.J7 = _2.Py + _2.hL, _2.Hy += _2.Uy) : C2 ? (_2.J7 = _2.x, _2.Hy = _2.J7 + _2.Uy, _2.Py += _2.Uy) : _2.J7 = _2.Hy + _2.zy, j2 ? (_2.X7 = _2.Cy + _2.A6, _2.Ay += _2.Ty) : _2.X7 = _2.Ay + _2.Iy, _2.PF = _2.BA, _2.GF = _2.y + _2.height - _2.D6, _2;
          }, t3.prototype.Fi = function() {
            var t4 = this;
            return t4.eF || (t4.eF = t4.LF()), t4.eF;
          }, t3.prototype.Yy = function(t4, n3) {
            return T(n3) || 3 === n3 ? this.yw(t4) : 2 === n3 ? this.OF() : 1 === n3 ? 1 !== this.getRowCount(h.SheetArea.colHeader) ? this.yw(t4) : this.BF(t4) : H;
          }, t3.prototype.yfe = function(t4, n3) {
            return T(n3) || 3 === n3 ? this.yw(t4) : 2 === n3 ? this.OF() : 1 === n3 ? 1 !== this.getRowCount(h.SheetArea.colHeader) ? this.yw(t4) : this.wfe(t4) : H;
          }, t3.prototype.OF = function() {
            var t4 = this;
            return t4.iF.rowHeader || (t4.iF.rowHeader = t4.UF()), t4.iF.rowHeader;
          }, t3.prototype.yw = function(t4) {
            var n3 = this;
            return n3.iF.viewport || (n3.iF.viewport = {}), n3.iF.viewport[t4] || (n3.iF.viewport[t4] = n3.HF(t4)), n3.iF.viewport[t4];
          }, t3.prototype.BF = function(t4) {
            var n3 = this;
            return n3.iF.colHeader || (n3.iF.colHeader = {}), n3.iF.colHeader[t4] || (n3.iF.colHeader[t4] = n3.zF(t4)), n3.iF.colHeader[t4];
          }, t3.prototype.wfe = function(t4) {
            var n3 = this;
            return n3.iF.colHeaderWithStack || (n3.iF.colHeaderWithStack = {}), n3.iF.colHeaderWithStack[t4] || (n3.iF.colHeaderWithStack[t4] = n3.Mfe(t4)), n3.iF.colHeaderWithStack[t4];
          }, t3.prototype.UF = function() {
            var t4, n3, e3 = new s.h9(), i3 = this.Fi(), r2 = this.options.rightToLeft, o2 = r2 ? i3.x + i3.width - i3.XC : i3.BA, a2 = this.getColumnCount(2);
            for (n3 = 0; n3 < a2; n3++) t4 = this.nn(n3, 2), e3.push(new s.W8(-1, n3, o2, -1, t4, -1)), o2 += t4;
            return e3;
          }, t3.prototype.HF = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = this.options.rightToLeft, m2 = new s.h9();
            if (m2.sE(), n3 = p2.Fi(), e3 = Ft(p2), a2 = p2.Jt, u2 = Vt(p2), c2 = Pt(p2), 0 === t4) for (r2 = g2 ? n3.BA : n3.b6, e3 = z(u2, e3), i3 = p2.jve(); i3 < e3; i3++) o2 = a2.Kt(i3), (f2 = new s.W8(-1, i3, r2, -1, o2, -1)).offsetX = p2.getColumnScrollOffsetX(i3), m2.push(f2), m2.aHr(i3, f2), g2 ? (f2.x -= o2, r2 -= o2) : r2 += o2;
            else if (1 === t4) for (l2 = Ht(p2), h2 = p2.my, r2 = g2 ? n3.x + n3.width - n3.XC - n3.F6 - h2 : n3.Py + h2, e3 = l2 ? e3 - c2 : e3, d2 = p2.Gy(n3) - h2, i3 = v2 = Y(u2, p2.Ab); d2 > 0 && i3 < e3; i3++) o2 = a2.Kt(i3), (f2 = new s.W8(-1, i3, r2, -1, o2, -1)).offsetX = p2.getColumnScrollOffsetX(i3), m2.push(f2), m2.aHr(i3, f2), g2 ? (f2.x -= o2, r2 -= o2) : r2 += o2, d2 -= o2;
            else if (2 === t4) for (r2 = g2 ? n3.Hy + n3.zy : n3.Hy, i3 = Y(u2, e3 - c2); i3 < e3; i3++) o2 = a2.Kt(i3), (f2 = new s.W8(-1, i3, r2, -1, o2, -1)).offsetX = p2.getColumnScrollOffsetX(i3), m2.push(f2), m2.aHr(i3, f2), g2 ? (f2.x -= o2, r2 -= o2) : r2 += o2;
            return m2;
          }, t3.prototype.zF = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2 = this, j2 = this.options.rightToLeft, D2 = new s.h9();
            if (D2.sE(), n3 = N2.Fi(), e3 = Ft(N2), a2 = N2.Jt, u2 = Vt(N2), c2 = Pt(N2), f2 = N2.Ut, l2 = {}, d2 = [], v2 = [], p2 = [], g2 = [], m2 = -1, b2 = function(t5, n4) {
              0 !== n4 && (l2[t5] || (l2[t5] = m2), m2 = t5);
            }, 0 === t4) for (r2 = j2 ? n3.BA : n3.b6, e3 = z(u2, e3), i3 = N2.jve(); i3 < e3; i3++) d2[i3] = o2 = a2.Kt(i3), b2(i3, o2), v2[i3] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, i3), p2[i3] = f2.eE(-1, i3, -1, 1, h.SheetArea.colHeader), y2 = N2.ZO(i3, r2, e3, 0, d2, v2, p2, g2, l2), g2[i3] = y2, D2.push(y2), D2.aHr(i3, y2), j2 ? (y2.x -= o2, r2 -= o2) : r2 += o2;
            else if (1 === t4) {
              for (w2 = Ht(N2), M2 = N2.my, r2 = j2 ? n3.x + n3.width - n3.XC - n3.F6 - M2 : n3.Py + M2, e3 = w2 ? e3 - c2 : e3, C2 = N2.Gy(n3) - M2, x2 = S2 = Y(u2, N2.Ab), A2 = void 0, I2 = S2 - 1; I2 >= 0; I2--) if (d2[I2] = A2 = a2.Kt(I2), A2) {
                if (v2[I2] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, I2), v2[I2] === h.ColumnHeaderFitMode.normal) break;
                x2 = I2;
              }
              for (i3 = x2; C2 > 0 && i3 < e3; i3++) void 0 === (o2 = d2[i3]) && (d2[i3] = o2 = a2.Kt(i3)), b2(i3, o2), T(v2[i3]) && (v2[i3] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, i3)), p2[i3] = f2.eE(-1, i3, -1, 1, h.SheetArea.colHeader), y2 = N2.ZO(i3, r2, e3, S2, d2, v2, p2, g2, l2), g2[i3] = y2, i3 >= S2 && (D2.push(y2), D2.aHr(i3, y2), j2 ? (y2.x -= o2, r2 -= o2) : r2 += o2, C2 -= o2);
              C2 <= 0 && i3 < e3 && 2 === f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, i3 - 1) && (k2 = N2.ZO(i3, r2, e3, S2, d2, v2, p2, g2, l2), g2[i3] = k2, D2.push(k2), D2.aHr(i3, k2));
            } else if (2 === t4) for (r2 = j2 ? n3.Hy + n3.zy : n3.Hy, i3 = S2 = Y(u2, e3 - c2); i3 < e3; i3++) d2[i3] = o2 = a2.Kt(i3), b2(i3, o2), v2[i3] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, i3), p2[i3] = f2.eE(-1, i3, -1, 1, h.SheetArea.colHeader), y2 = N2.ZO(i3, r2, e3, S2, d2, v2, p2, g2, l2), g2[i3] = y2, D2.push(y2), D2.aHr(i3, y2), j2 ? (y2.x -= o2, r2 -= o2) : r2 += o2;
            return D2;
          }, t3.prototype.Mfe = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2 = this, G2 = this.options.rightToLeft, U2 = new s.h9();
            if (U2.sE(), n3 = false, e3 = P2.Fi(), i3 = Ft(P2), a2 = P2.Jt, u2 = Vt(P2), c2 = Pt(P2), f2 = P2.Ut, l2 = {}, d2 = [], v2 = [], p2 = [], g2 = [], m2 = -1, b2 = function(t5) {
              var n4, e4, i4, r3, o3 = 0, u3 = t5;
              for (e4 = t5 - 1; e4 >= 0; e4--) if (d2[e4] = n4 = a2.Kt(e4), n4) {
                if (v2[e4] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, e4), (i4 = v2[e4] !== h.ColumnHeaderFitMode.normal) || (v2[r3 = e4 - 1] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, r3), i4 = v2[r3] !== h.ColumnHeaderFitMode.normal), !i4) break;
                u3 = e4, o3 += d2[e4];
              }
              return { leftOutsideWidth: o3, Cfe: u3 };
            }, y2 = function(t5, n4, e4, i4) {
              var r3, o3;
              return d2[n4] || (d2[n4] = a2.Kt(n4)), 0 !== (r3 = d2[n4]) && (l2[n4] || (l2[n4] = m2), m2 = n4), p2[n4] = f2.eE(-1, n4, -1, 1, h.SheetArea.colHeader), o3 = P2.ZO(n4, e4, i4, t5, d2, v2, p2, g2, l2), g2[n4] = o3, { colLayout: o3, colWidth: r3 };
            }, 0 === t4) for (o2 = G2 ? e3.BA : e3.b6, w2 = z(u2, i3), r2 = P2.jve(); r2 < i3 && (v2[r2] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, r2), !(w2 <= r2 && 2 !== v2[r2] && 2 !== v2[r2 - 1])); r2++) C2 = (M2 = y2(0, r2, o2, i3)).colLayout, S2 = M2.colWidth, w2 > r2 ? (U2.push(C2), U2.aHr(r2, C2), G2 ? (C2.x -= C2.width, C2.x < e3.b6 && (C2.x = e3.b6), o2 -= S2) : o2 += S2) : (C2.isOutside = true, n3 = true, U2.push(C2), U2.aHr(r2, C2), G2 ? (C2.x -= C2.width, C2.x < e3.b6 && (C2.x = e3.b6), o2 -= S2) : o2 += S2);
            else if (1 === t4) {
              for (x2 = Ht(P2), A2 = P2.my, o2 = G2 ? e3.x + e3.width - e3.XC - e3.F6 - A2 : e3.Py + A2, w2 = x2 ? i3 - c2 : i3, I2 = P2.Gy(e3) - A2, o2 -= j2 = (N2 = b2(k2 = Y(u2, P2.Ab))).leftOutsideWidth, r2 = D2 = N2.Cfe; r2 < i3 && (T(v2[r2]) && (v2[r2] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, r2)), !(I2 <= 0 || w2 <= r2) || 2 === v2[r2] || 2 === v2[r2 - 1]); r2++) C2 = (_2 = y2(k2, r2, o2, i3)).colLayout, S2 = _2.colWidth, r2 >= k2 && I2 > 0 ? (U2.push(C2), U2.aHr(r2, C2), G2 ? (C2.x -= C2.width, o2 -= S2) : o2 += S2, I2 -= S2) : (C2.isOutside = true, n3 = true, U2.push(C2), U2.aHr(r2, C2), o2 += S2);
              I2 <= 0 && r2 < i3 && 2 === f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, r2 - 1) && (O2 = P2.ZO(r2, o2, i3, k2, d2, v2, p2, g2, l2), g2[r2] = O2, U2.push(O2), U2.aHr(r2, O2));
            } else if (2 === t4) for (o2 = G2 ? e3.Hy + e3.zy : e3.Hy, o2 -= j2 = (E2 = b2(k2 = Y(u2, i3 - c2))).leftOutsideWidth, r2 = D2 = E2.Cfe; r2 < i3; r2++) v2[r2] = f2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, r2), C2 = (R2 = y2(k2, r2, o2, i3)).colLayout, S2 = R2.colWidth, r2 >= k2 ? (U2.push(C2), U2.aHr(r2, C2), G2 ? (C2.x -= C2.width, o2 -= S2) : o2 += S2) : (C2.isOutside = true, n3 = true, U2.push(C2), U2.aHr(r2, C2), G2 ? (C2.x -= C2.width, o2 -= S2) : o2 += S2);
            if (n3) {
              for (L2 = new s.h9(), F2 = U2.length, B2 = 0; B2 < F2; B2++) U2[B2].isOutside || L2.push(U2[B2]);
              U2.Dh = L2;
            }
            return U2;
          }, t3.prototype.ZO = function(t4, n3, e3, i3, r2, o2, a2, u2, c2) {
            var f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2, k2, N2 = this, j2 = N2.Ut, D2 = N2.Jt, _2 = t4, O2 = -1, E2 = -1, R2 = o2[t4], L2 = r2[t4], F2 = L2 > 0, B2 = a2[t4], P2 = N2.NMi, G2 = P2 && P2.options && P2.options.defaultStackRowHeight;
            if (R2 !== h.ColumnHeaderFitMode.normal && !j2.e7(t4) && !B2 && !j2.eE(-1, t4 + 1, -1, 1, h.SheetArea.colHeader)) for (R2 === h.ColumnHeaderFitMode.stack && (_2 = t4 + 1, L2 += D2.Kt(_2)); (j2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, _2) !== h.ColumnHeaderFitMode.normal || !D2.Kt(_2)) && _2 < e3 - 1 && !j2.eE(-1, _2 + 1, -1, 1, h.SheetArea.colHeader); ) if ((f2 = j2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, _2)) === h.ColumnHeaderFitMode.vertical && D2.Kt(_2)) {
              if (R2 === h.ColumnHeaderFitMode.vertical) break;
              if (l2 = N2.O5(_2, h.SheetArea.viewport), d2 = N2.r6(_2, h.SheetArea.viewport, true), v2 = j2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, d2), p2 = j2.getColumnHeaderFitMode(false, h.SheetArea.colHeader, l2), !(v2 !== h.ColumnHeaderFitMode.normal && p2 !== h.ColumnHeaderFitMode.normal && l2 < e3) || j2.eE(-1, l2 + 1, -1, 1, h.SheetArea.colHeader)) break;
              _2++, L2 += D2.Kt(_2);
            } else _2++, L2 += D2.Kt(_2);
            if (_2 = t4 - 1, F2) if (void 0 !== (g2 = c2[t4])) _2 = g2;
            else for (; _2 >= i3 && !r2[_2] && !a2[_2]; ) _2--;
            return m2 = N2.Ut.o7(t4), (b2 = o2[_2]) !== h.ColumnHeaderFitMode.normal && r2[_2] && !a2[_2] && !a2[t4] && _2 >= m2 ? ((y2 = u2[_2]) === V && (w2 = n3 - N2.nn(_2), y2 = u2[_2] = N2.ZO(_2, w2, e3, i3, r2, o2, a2, u2, c2)), b2 === h.ColumnHeaderFitMode.stack ? (C2 = (M2 = function(t5) {
              for (var n4 = N2.r6(t5, h.SheetArea.viewport, true); n4 >= m2 && N2.Lt(n4) === h.ColumnHeaderFitMode.stack; ) n4 = N2.r6(n4, h.SheetArea.viewport, true);
              return !!(n4 >= m2 && N2.Lt(n4) !== h.ColumnHeaderFitMode.normal && u2[n4 || 0] && -1 !== u2[n4 || 0].y) && u2[n4 || 0];
            })(t4), T(G2) ? O2 = (x2 = j2.r7(t4)) / (A2 = j2.n7(t4)) : (O2 = G2 * (S2 = j2.r7(t4, V, true)) / N2.defaults.colHeaderRowHeight, O2 = z(O2, 1)), C2 && T(G2) ? O2 = 1 - (E2 = (1 - O2) * (I2 = C2.height > 0 ? C2.height : 1)) : E2 = 1 - O2) : b2 === h.ColumnHeaderFitMode.vertical && (R2 !== h.ColumnHeaderFitMode.normal ? (O2 = y2.y, E2 = y2.height) : (E2 = -1, O2 = -1))) : (E2 = -1, O2 = -1), (k2 = new s.W8(-1, t4, n3, O2, L2, E2)).offsetX = N2.getColumnScrollOffsetX(t4), k2;
          }, t3.prototype._y = function(t4, n3) {
            return T(n3) || 3 === n3 || 2 === n3 ? this.dw(t4) : 1 === n3 ? this.jF() : H;
          }, t3.prototype.d9 = function(t4) {
            var n3, e3, i3 = new s.h9();
            for (n3 = 0; n3 < 3; n3++) (e3 = this._y(n3, t4)) && e3.length > 0 && (i3 = c.GC$.merge(i3, e3));
            return i3;
          }, t3.prototype.m9 = function(t4) {
            var n3, e3, i3 = new s.h9();
            for (n3 = 0; n3 < 3; n3++) (e3 = this.Yy(n3, t4)) && e3.length > 0 && (i3 = c.GC$.merge(i3, e3));
            return i3;
          }, t3.prototype.jF = function() {
            var t4 = this;
            return t4.N8.colHeader || (t4.N8.colHeader = t4.VF()), t4.N8.colHeader;
          }, t3.prototype.dw = function(t4) {
            var n3 = this;
            return n3.N8.viewport || (n3.N8.viewport = {}), n3.N8.viewport[t4] || (n3.N8.viewport[t4] = n3.YF(t4)), n3.N8.viewport[t4];
          }, t3.prototype.rYr = function(t4) {
            var n3 = this;
            return n3.cYr || (n3.cYr = [0]), t4 >= n3.cYr.length && n3.fYr(t4), n3.cYr[t4];
          }, t3.prototype.fYr = function(t4) {
            var n3, e3, i3 = this, r2 = Bt(i3), o2 = i3.Jt, a2 = z(t4 + 50, r2 + 1), u2 = i3.cYr;
            for (e3 = u2[(n3 = u2.length) - 1]; n3 < a2; n3++) e3 += o2.Gt(n3 - 1), u2[n3] = e3;
          }, t3.prototype.oYr = function(t4) {
            var n3 = this;
            return n3.uYr || (n3.uYr = [0]), t4 >= n3.uYr.length && n3.lYr(t4), n3.uYr[t4];
          }, t3.prototype.lYr = function(t4) {
            var n3, e3, i3 = this, r2 = Ft(i3), o2 = i3.Jt, a2 = z(t4 + 50, r2 + 1), u2 = i3.uYr;
            for (e3 = u2[(n3 = u2.length) - 1]; n3 < a2; n3++) e3 += o2.Kt(n3 - 1), u2[n3] = e3;
          }, t3.prototype.VF = function() {
            var t4, n3, e3 = new s.h9(), i3 = this.Fi(), r2 = i3.LA, o2 = this.getRowCount(1);
            for (n3 = 0; n3 < o2; n3++) t4 = this.Gt(n3, 1), e3.push(new s.W8(n3, -1, -1, r2, -1, t4)), r2 += t4;
            return e3;
          }, t3.prototype.YF = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2, l2 = this, h2 = new s.h9();
            if (h2.sE(), n3 = zt(l2), e3 = Gt(l2), i3 = l2.Fi(), r2 = Bt(l2), c2 = l2.Jt, 0 === t4) for (a2 = i3.T6, r2 = z(n3, r2), o2 = l2.Eve(); o2 < r2; o2++) u2 = c2.Gt(o2), f2 = new s.W8(o2, -1, -1, a2, -1, u2), h2.push(f2), h2.fE(o2, f2), a2 += u2;
            else if (1 === t4) this.Esr(h2);
            else if (2 === t4) for (a2 = i3.Ay, o2 = Y(n3, r2 - e3); o2 < r2; o2++) u2 = c2.Gt(o2), f2 = new s.W8(o2, -1, -1, a2, -1, u2), h2.push(f2), h2.fE(o2, f2), a2 += u2;
            else 3 === t4 && this.Esr(h2, true);
            return h2;
          }, t3.prototype.Esr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Jt, g2 = v2.Fi(), m2 = Ut(v2), b2 = v2.ly, y2 = Bt(v2), w2 = zt(v2), M2 = Gt(v2), C2 = g2.Cy + b2;
            for (y2 = m2 ? y2 - M2 : y2, e3 = v2.Sy(g2) - b2, r2 = i3 = Y(w2, v2.Tb); e3 > 0 && r2 < y2; r2++) {
              if (o2 = v2.Csr && v2.Csr(r2)) for (a2 = v2.Rsr(r2), u2 = 0; u2 < a2 && (c2 = v2.Asr(r2, u2), n3 && ((f2 = new s.W8(r2, -1, -1, C2, -1, c2)).spacingIndex = u2, f2.isAfterSpacing = false, t4.push(f2)), C2 += c2, !((e3 -= c2) <= 0)); u2++) ;
              if (e3 <= 0) break;
              if (l2 = p2.Gt(r2), n3 || (h2 = new s.W8(r2, -1, -1, C2, -1, l2), t4.push(h2), t4.fE(r2, h2)), C2 += l2, (e3 -= l2) <= 0) break;
              if (d2 = v2.Csr && v2.Csr(r2, true)) for (a2 = v2.Rsr(r2, true), u2 = 0; u2 < a2 && (c2 = v2.Asr(r2, u2, true), n3 && ((f2 = new s.W8(r2, -1, -1, C2, -1, c2)).spacingIndex = u2, f2.isAfterSpacing = true, t4.push(f2)), C2 += c2, !((e3 -= c2) <= 0)); u2++) ;
            }
          }, t3.prototype.s7 = function(t4, n3, e3, i3) {
            var o2, a2, u2, c2, f2, l2, h2 = this, d2 = h2.getRowCount(e3), v2 = h2.getColumnCount(e3), p2 = h2._y(t4, e3), g2 = h2.Yy(n3, e3), m2 = new s.h9();
            return p2 && p2.length > 0 && g2 && g2.length > 0 && (o2 = p2[0].row, a2 = g2[0].col, u2 = p2[p2.length - 1].row, c2 = g2[g2.length - 1].col, f2 = h2.Ut.getSpans((0, r.Ec)(o2, a2, u2 - o2 + 1, c2 - a2 + 1), e3), i3 && h2.Cb && (l2 = h2.Cb.ZF(e3), f2 = f2.concat(l2)), f2.length > 0 && h2.WF(f2, o2, a2, u2, c2, m2, d2, v2, e3, p2, g2)), m2;
          }, t3.prototype.O_ = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, c2, f2, l2 = this, h2 = l2.getRowCount(e3), d2 = l2.getColumnCount(e3), v2 = l2._y(t4, e3), p2 = l2.Yy(n3, e3), g2 = new s.h9();
            return v2 && v2.length > 0 && p2 && p2.length > 0 ? (a2 = v2[0].row, u2 = p2[0].col, (c2 = l2.getSpan(i3, r2, e3) || o2 && l2.Cb && l2.Cb.D7(i3, r2, e3)) && ((f2 = []).push(c2), l2.WF(f2, a2, u2, c2.row + c2.rowCount, c2.col + c2.colCount, g2, h2, d2, e3, v2, p2)), g2.length > 0 ? g2[0] : H) : H;
          }, t3.prototype.WF = function(t4, n3, e3, i3, r2, o2, a2, u2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2 = t4.length;
            if (!(E2 <= 0)) {
              for (h2 = this, v2 = i3 + 1, p2 = r2 + 1, g2 = [], m2 = [], b2 = [], y2 = [], w2 = 0, M2 = 0, d2 = n3 - 1; d2 >= 0; d2--) g2[d2] = h2.Gt(d2, c2), M2 -= g2[d2], y2[d2] = M2;
              for (M2 = 0, d2 = n3; d2 < v2; d2++) y2[d2] = M2, g2[d2] = h2.Gt(d2, c2), M2 += g2[d2];
              for (d2 = e3 - 1; d2 >= 0; d2--) m2[d2] = h2.nn(d2, c2), w2 -= m2[d2], b2[d2] = w2;
              for (w2 = 0, d2 = e3; d2 < p2; d2++) b2[d2] = w2, m2[d2] = h2.nn(d2, c2), w2 += m2[d2];
              for (C2 = h2.options.rightToLeft, S2 = 0; S2 < E2; S2++) if ((T2 = t4[S2]).intersect(n3, e3, i3 - n3 + 1, r2 - e3 + 1)) {
                if ((x2 = T2.row + T2.rowCount) > v2) {
                  for (d2 = v2; d2 < x2; d2++) g2.push(h2.Gt(d2, c2)), y2.push(y2[d2 - 1] + g2[d2]);
                  v2 = x2;
                }
                if ((A2 = T2.col + T2.colCount) > p2) {
                  for (d2 = p2; d2 < A2; d2++) m2.push(h2.nn(d2, c2)), b2.push(b2[d2 - 1] + m2[d2]);
                  p2 = A2;
                }
                for (I2 = b2[T2.col], k2 = y2[T2.row], N2 = 0, j2 = 0, D2 = void 0, _2 = void 0, _2 = T2.col; _2 < T2.col + T2.colCount && _2 < u2; _2++) N2 += m2[_2];
                for (D2 = T2.row; D2 < T2.row + T2.rowCount && D2 < a2; D2++) j2 += g2[D2];
                O2 = C2 ? l2[0].x + l2[0].width - I2 - N2 : l2[0].x + I2, o2.push(new s.W8(T2.row, T2.col, O2, f2[0].y + k2, N2, j2, T2.rowCount, T2.colCount, T2.isAutoMerge));
              }
            }
          }, t3.prototype.ow = function() {
            var t4, n3, e3, i3 = this, r2 = i3.parent, o2 = i3.ww(i3.Ab), a2 = i3.my;
            -1 !== o2 && o2 !== i3.Ab && (i3.Ab = o2, i3.$Dr({ type: "updateTopLeftPosition", leftCol: i3.Ab, topRow: i3.Tb })), (t4 = r2 && r2._hScrollbar) && (e3 = (n3 = t4.g4 === h.ScrollType.pixels) ? i3.QF(o2) - a2 : i3.KF(o2), t4.value(e3));
          }, t3.prototype.JF = function() {
            var t4, n3, e3 = this, i3 = e3.parent, r2 = i3 && i3.Xw;
            r2 && (t4 = this.getDockScrollbarAttachedIndex(), T(t4) || (n3 = -this.getColumnScrollOffsetX(t4), r2.value(n3)));
          }, t3.prototype.tw = function() {
            var t4, n3, e3, i3 = this, r2 = i3.parent, o2 = i3.vw(i3.Tb), a2 = i3.ly;
            -1 !== o2 && o2 !== i3.Tb && (i3.Tb = o2, i3.$Dr({ type: "updateTopLeftPosition", leftCol: i3.Ab, topRow: i3.Tb })), (t4 = r2 && r2._vScrollbar) && (e3 = (n3 = t4.g4 === h.ScrollType.pixels) ? i3.XF(o2) - a2 : i3.qF(o2), t4.value(e3));
          }, t3.prototype.aw = function() {
            var t4, n3 = this, e3 = n3.parent;
            e3 && e3._hScrollbar && (t4 = e3.options.scrollByPixel, e3._hScrollbar.g4 = t4 ? h.ScrollType.pixels : h.ScrollType.continuous), e3 && e3.Xg && (e3.options.scrollbarAppearance === h.ScrollbarAppearance.mobile && e3.kC(), e3.options.scrollIgnoreHidden && !n3.bao() && (n3.$F = n3.tP(true)), e3.Xg());
          }, t3.prototype.ew = function() {
            var t4, n3 = this, e3 = n3.parent;
            e3 && e3._vScrollbar && (t4 = e3.options.scrollByPixel, e3._vScrollbar.g4 = t4 ? h.ScrollType.pixels : h.ScrollType.continuous), e3 && e3.QC && (e3.options.scrollbarAppearance === h.ScrollbarAppearance.mobile && e3.kC(), e3.options.scrollIgnoreHidden && !n3.bao() && (n3.nP = n3.eP(true)), e3.QC());
          }, t3.prototype.Sw = function() {
            var t4 = this, n3 = 0, e3 = Vt(t4);
            return n3 = e3 > 0 ? t4.O5(e3 - 1) : t4.k9();
          }, t3.prototype.pw = function() {
            var t4 = this, n3 = 0, e3 = zt(t4);
            return n3 = e3 > 0 ? t4.j5(e3 - 1) : t4.N9();
          }, t3.prototype.k9 = function(t4) {
            return this.O5(-1, t4);
          }, t3.prototype.Pye = function(t4, n3) {
            var e3 = this, i3 = e3.getColumnCount(t4);
            return n3 ? i3 - 1 : i3 - 1 - Pt(e3);
          }, t3.prototype.O5 = function(t4, n3, e3) {
            for (var i3 = this, r2 = i3.Pye(n3, e3); t4 < r2; ) if (t4++, i3.getColumnVisible(t4, n3) && i3.nn(t4, n3) > 0) return t4;
            return H;
          }, t3.prototype.r6 = function(t4, n3, e3) {
            for (var i3 = this, r2 = e3 ? 0 : Vt(i3); t4 > r2; ) if (t4--, i3.getColumnVisible(t4, n3) && i3.nn(t4, n3) > 0) return t4;
            return H;
          }, t3.prototype.N9 = function(t4) {
            return this.j5(-1, t4);
          }, t3.prototype.Fye = function(t4, n3) {
            var e3 = this, i3 = e3.getRowCount(t4);
            return n3 ? i3 - 1 : i3 - 1 - Gt(e3);
          }, t3.prototype.j5 = function(t4, n3, e3) {
            for (var i3 = this, r2 = i3.Fye(n3, e3); t4 < r2; ) if (t4++, i3.Fsr(t4, n3)) return t4;
            return H;
          }, t3.prototype.Fsr = function(t4, n3) {
            var e3 = this, i3 = e3.Csr, r2 = i3 && e3.Csr(t4) && e3.Bsr(t4, false, n3), o2 = !r2 && e3.getRowVisible(t4, n3) && e3.Gt(t4, n3) > 0, a2 = !o2 && i3 && e3.Csr(t4, true) && e3.Bsr(t4, true, n3);
            return r2 || o2 || a2;
          }, t3.prototype.nI = function(t4, n3, e3) {
            for (var i3 = this, r2 = e3 ? 0 : zt(i3); t4 > r2; ) if (t4--, i3.Fsr(t4, n3)) return t4;
            return H;
          }, t3.prototype.iP = function() {
            this.Ww = true, this.tw();
          }, t3.prototype.rP = function() {
            this.Zw = true, this.ow();
          }, t3.prototype.XF = function(t4) {
            var n3, e3, i3 = this, r2 = zt(i3), o2 = Bt(i3) - Gt(i3) - r2, a2 = r2, u2 = a2 + o2 - 1, s2 = 0, c2 = i3.Csr;
            if (t4 <= a2) return s2;
            for (t4 > u2 && (t4 = u2), n3 = a2; n3 < t4; n3++) c2 && i3.Csr(n3) && (s2 += i3.Msr(n3)), s2 += e3 = i3.Gt(n3), c2 && i3.Csr(n3, true) && (s2 += i3.Msr(n3, true));
            return s2;
          }, t3.prototype.QF = function(t4) {
            var n3, e3, i3 = this, r2 = Vt(i3), o2 = Ft(i3) - Pt(i3) - r2, a2 = r2, u2 = a2 + o2 - 1, s2 = 0;
            if (t4 <= a2) return s2;
            for (t4 > u2 && (t4 = u2), n3 = a2; n3 < t4; n3++) s2 += e3 = i3.nn(n3);
            return s2;
          }, t3.prototype.qF = function(t4) {
            var n3, e3 = this.parent;
            return e3 && e3.options.scrollIgnoreHidden && !this.bao() ? (n3 = this.eP().visibleIndex)[t4] : t4;
          }, t3.prototype.oP = function(t4) {
            var n3, e3 = this.parent;
            return e3 && e3.options.scrollIgnoreHidden && !this.bao() ? (n3 = this.eP().originalIndex)[t4] : t4;
          }, t3.prototype.KF = function(t4) {
            var n3, e3 = this.parent;
            return e3 && e3.options.scrollIgnoreHidden && !this.bao() ? (n3 = this.tP().visibleIndex)[t4] : t4;
          }, t3.prototype.aP = function(t4) {
            var n3, e3 = this.parent;
            return e3 && e3.options.scrollIgnoreHidden && !this.bao() ? (n3 = this.tP().originalIndex)[t4] : t4;
          }, t3.prototype.tP = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this;
            if (c2.$F && !t4) return c2.$F;
            if (r2 = (i3 = n3 = Vt(c2)) + (e3 = Ft(c2) - Pt(c2) - n3) - 1, o2 = c2.Jt, a2 = { visibleIndex: {}, originalIndex: {} }, r2 - i3 + 1 <= 0) return a2;
            for (u2 = 0, s2 = i3; s2 <= r2; s2++) a2.originalIndex[u2] = s2, a2.visibleIndex[s2] = u2, o2.Kt(s2) > 0 && u2++;
            for (s2--, u2--; o2.Kt(s2) <= 0 && s2 >= i3; ) a2.originalIndex[u2] = s2, a2.visibleIndex[s2] = u2, s2--;
            return a2;
          }, t3.prototype.eP = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this;
            if (c2.nP && !t4) return c2.nP;
            if (r2 = (i3 = n3 = zt(c2)) + (e3 = Bt(c2) - Gt(c2) - n3) - 1, o2 = c2.Jt, a2 = { visibleIndex: {}, originalIndex: {} }, r2 - i3 + 1 <= 0) return a2;
            for (u2 = 0, s2 = i3; s2 <= r2; s2++) a2.originalIndex[u2] = s2, a2.visibleIndex[s2] = u2, o2.Gt(s2) > 0 && u2++;
            for (s2--, u2--; o2.Gt(s2) <= 0 && s2 >= i3; ) a2.originalIndex[u2] = s2, a2.visibleIndex[s2] = u2, s2--;
            return a2;
          }, t3.prototype.vw = function(t4, n3) {
            var e3, i3 = this, r2 = zt(i3), o2 = Bt(i3) - Gt(i3) - 1;
            if (n3) {
              if (t4 > o2 && (t4 = o2), (e3 = i3.nI(t4 + 1)) !== H && e3 >= r2) return e3;
            } else if (t4 < r2 && (t4 = r2), (e3 = i3.j5(t4 - 1)) !== H && e3 <= o2) return e3;
            return -1;
          }, t3.prototype.ww = function(t4, n3) {
            var e3, i3 = this, r2 = Vt(i3), o2 = Ft(i3) - Pt(i3) - 1;
            if (n3) {
              if (t4 > o2 && (t4 = o2), (e3 = i3.r6(t4 + 1)) !== H && e3 >= r2) return e3;
            } else if (t4 < r2 && (t4 = r2), (e3 = i3.O5(t4 - 1)) !== H && e3 <= o2) return e3;
            return -1;
          }, t3.prototype.uP = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            if (e3 < n3) return e3;
            for (i3 = Wt(this, h.SheetArea.rowHeader) && this.getRowCount() - 1 === e3 ? Xt(this) : 0, r2 = this.Jt, o2 = e3, a2 = this.Csr, u2 = e3; u2 >= n3; u2--) if (s2 = r2.Gt(u2), a2 && (this.Csr(u2) && (s2 += this.Msr(u2)), this.Csr(u2, true) && (s2 += this.Msr(u2, true))), !(s2 <= 0)) {
              if ((i3 += s2) > t4) break;
              o2 = u2;
            }
            return o2;
          }, t3.prototype.gw = function(t4, n3, e3) {
            var i3, r2, o2 = Wt(this, h.SheetArea.rowHeader) && this.getRowCount() - 1 === e3 ? Xt(this) : 0, a2 = e3, u2 = 0, s2 = this.Csr;
            for (i3 = e3; i3 >= n3; i3--) if (r2 = this.Gt(i3), s2 && (this.Csr(i3) && (r2 += this.Msr(i3)), this.Csr(i3, true) && (r2 += this.Msr(i3, true))), !(r2 <= 0) && (a2 = i3, (o2 += r2) >= t4)) {
              u2 = t4 - o2;
              break;
            }
            return { Ky: a2, Xy: u2 };
          }, t3.prototype.sP = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2;
            if (e3 < n3) return e3;
            for (i3 = Wt(this, h.SheetArea.colHeader) && this.getColumnCount() - 1 === e3 ? Kt(this) : 0, r2 = this.Jt, o2 = e3, a2 = e3; a2 >= n3; a2--) if (!((u2 = r2.Kt(a2)) <= 0)) {
              if ((i3 += u2) > t4) break;
              o2 = a2;
            }
            return o2;
          }, t3.prototype.Cw = function(t4, n3, e3) {
            var i3, r2, o2 = Wt(this, h.SheetArea.colHeader) && this.getColumnCount() - 1 === e3 ? Kt(this) : 0, a2 = e3, u2 = 0;
            for (i3 = e3; i3 >= n3; i3--) if (!((r2 = this.nn(i3)) <= 0) && (a2 = i3, (o2 += r2) >= t4)) {
              u2 = t4 - o2;
              break;
            }
            return { iw: a2, Xy: u2 };
          }, t3.prototype.cP = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Fi(), o2 = i3.Yy(1, 3), a2 = 0, u2 = 0;
            if (o2) for (t4 = 0; t4 < o2.length; t4++) a2 += n3 = o2[t4].width, n3 > 0 && u2++;
            return 0 === (e3 = a2 / (u2 = 0 === u2 ? 1 : u2)) ? 1 : Z(i3.Gy(r2) / e3);
          }, t3.prototype.fP = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Fi(), u2 = o2._y(1, 3), s2 = 0, c2 = 0;
            if (u2) for (t4 = 0; t4 < u2.length; t4++) s2 += n3 = u2[t4].height, n3 > 0 && c2++;
            if (o2.Csr && (e3 = o2._y(3))) for (t4 = 0; t4 < e3.length; t4++) s2 += i3 = e3[t4].height, i3 > 0 && c2++;
            return 0 === (r2 = s2 / (c2 = 0 === c2 ? 1 : c2)) ? 1 : Z(o2.Sy(a2) / r2);
          }, t3.prototype.mw = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2;
            return T(t4) && (t4 = 3), e3 = (n3 = this).parent, i3 = zt(n3), r2 = Gt(n3), e3 && e3.options.scrollbarMaxAlign ? (o2 = n3.Fi(), e3.options.scrollByPixel ? n3.gw(n3.Sy(o2), i3, Bt(n3) - r2 - 1) : { Ky: a2 = n3.uP(n3.Sy(o2), i3, Bt(n3) - r2 - 1), Xy: 0 }) : (u2 = n3.getRowCount(t4), 3 !== t4 && 2 !== t4 || (u2 -= r2), (s2 = n3.nI(u2, t4)) === H && (s2 = i3), { Ky: s2, Xy: 0 });
          }, t3.prototype.Mw = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            return T(t4) && (t4 = 3), e3 = (n3 = this).parent, i3 = Vt(n3), e3 && e3.options.scrollbarMaxAlign ? (r2 = n3.Fi(), e3.options.scrollByPixel ? n3.Cw(n3.Gy(r2), i3, Ft(n3) - Pt(n3) - 1) : { iw: o2 = n3.sP(n3.Gy(r2), i3, Ft(n3) - Pt(n3) - 1), Xy: 0 }) : (a2 = n3.getColumnCount(t4), 3 !== t4 && 1 !== t4 || (a2 -= Pt(n3)), (u2 = n3.r6(a2, t4)) === H && (u2 = i3), { iw: u2, Xy: 0 });
          }, t3.prototype.lP = function() {
            var n3, e3, i3, r2, o2 = this, a2 = zt(o2), u2 = Vt(o2), s2 = Bt(o2) - Gt(o2) - 1, c2 = Ft(o2) - Pt(o2) - 1, f2 = o2.Ut, l2 = f2.getLastNonNullRow(3);
            return l2 > a2 && (a2 = l2), (n3 = f2.getLastNonNullCol(3)) > u2 && (u2 = n3), (e3 = f2.getLastNonNullRow(2)) > a2 && (a2 = e3), (i3 = f2.getLastNonNullCol(1)) > u2 && (u2 = i3), (r2 = t3.fh) && j(r2, (function(t4, n4) {
              var e4, i4 = n4.lastNonNullRowAndCol;
              i4 && (e4 = i4.call(o2), a2 = Y(a2, e4.lastNonNullRow), u2 = Y(u2, e4.lastNonNullCol));
            })), a2 > s2 && (a2 = s2), u2 > c2 && (u2 = c2), { lastNonNullRow: a2, lastNonNullCol: u2 };
          }, t3.prototype.getLastNonNullRow = function() {
            return this.lP().lastNonNullRow;
          }, t3.prototype.getLastNonNullColumn = function() {
            return this.lP().lastNonNullCol;
          }, t3.prototype.$A = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.Tb, a2 = r2.ly, u2 = r2.mw(), s2 = u2.Ky, c2 = u2.Xy, f2 = !T(e3);
            o2 >= r2.getRowCount() && t4 > s2 && (t4 = s2), t4 >= r2.pw() && t4 <= s2 && (f2 || t4 !== o2 || n3 !== a2) && ((i3 = r2.parent) && (n3 || t4 !== s2 || (n3 = c2), i3.ib && i3.ib.yy(r2, t4, n3 || 0, e3), r2.tw()), i3 && !i3.options.scrollbarShowMax && r2.ew(), r2.invalidateLayout());
          }, t3.prototype.o9 = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.Ab, a2 = r2.my, u2 = r2.Mw(), s2 = u2.iw, c2 = u2.Xy, f2 = !T(e3);
            o2 >= r2.getColumnCount() && t4 > s2 && (t4 = s2), t4 >= r2.Sw() && t4 <= s2 && (f2 || t4 !== o2 || n3 !== a2) && ((i3 = r2.parent) && (n3 || t4 !== s2 || (n3 = c2), i3.ib && i3.ib.wy(r2, t4, n3 || 0, e3), r2.ow()), i3 && !i3.options.scrollbarShowMax && r2.aw(), r2.invalidateLayout());
          }, t3.prototype.JL = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = t4.row, S2 = t4.col, x2 = t4.hitTestType;
            return T(C2) || T(S2) ? (r2 = false, o2 = (i3 = M2.Fi()).Z_e(), !T(o2) && o2.contains(n3, e3, true) ? r2 = true : (o2 = i3.W_e(), !T(o2) && o2.contains(n3, e3, true) && (r2 = true)), !r2 || (a2 = M2.J_e(x2), T(a2) || (u2 = M2.K_e(x2), T(u2))) ? H : u2.Bn(n3, e3, a2, o2, { sheet: M2, row: C2, col: S2, sheetArea: x2 })) : ((s2 = 3 === t4.rowViewportIndex) || ((c2 = M2.getSpan(C2, S2, x2)) && (C2 = c2.row, S2 = c2.col), M2.Cb && (f2 = M2.Cb.D7(C2, S2, x2)) && (C2 = f2.row, S2 = f2.col)), l2 = {}, s2 && (l2.rowSpacingIndex = t4.rowSpacingIndex, l2.isAfterRowSpacing = t4.isAfterRowSpacing), d2 = M2.Il(C2, S2, x2, V, l2), v2 = 1 === x2 ? -1 : V, p2 = 2 === x2 ? -1 : V, g2 = { needAutoMerge: true }, s2 && (g2.rowSpacingIndex = t4.rowSpacingIndex, g2.isAfterRowSpacing = t4.isAfterRowSpacing), m2 = M2.getCellRect(C2, S2, v2, p2, g2), b2 = { sheet: M2, row: C2, col: S2, sheetArea: x2, rowSpacingIndex: t4.rowSpacingIndex, isAfterRowSpacing: t4.isAfterRowSpacing, dataRange: V }, x2 === h.SheetArea.viewport && M2.dataRanges && M2.dataRanges.all().length > 0 && (y2 = M2.dataRanges.getByPosition(C2, S2)) && (b2.dataRange = y2), (w2 = d2.cellType || M2.$f(x2)).Bn(n3, e3, d2, m2, b2));
          }, t3.prototype.bC = function() {
            this.unbindAll(), this.E3();
          }, t3.prototype.dA = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this.JS(t4), l2 = f2.row, h2 = f2.col, d2 = l2 + f2.rowCount, v2 = h2 + f2.colCount;
            for (r2 = l2; r2 < d2; r2++) for (o2 = h2; o2 < v2; o2++) if (u2 = (a2 = this.getSpan(r2, o2, e3)) ? a2.row : r2, s2 = a2 ? a2.col : o2, i3 = this.getActualStyle(u2, s2, e3), c2 = n3 && this.XT(r2, e3), true === i3.locked && !c2) return true;
            return false;
          }, t3.prototype.zT = function(t4, n3, e3, i3, r2, o2) {
            if (-1 <= t4 && t4 < r2 && -1 <= n3 && n3 < o2) {
              if (-1 === t4 && -1 === n3) return true;
              if (-1 === t4) {
                if (0 !== i3 && n3 + i3 <= o2) return true;
              } else if (-1 === n3) {
                if (0 !== e3 && t4 + e3 <= r2) return true;
              } else if (0 !== i3 && n3 + i3 <= o2 && 0 !== e3 && t4 + e3 <= r2) return true;
            }
            return false;
          }, t3.prototype.GT = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this;
            return !(t4 < 0 && n3 < 0) && (t4 < 0 && (r2 = u2.Ut.K_(1)) && r2.spans && r2.spans.length > 0 ? u2.Ut.GT(-1, n3, -1, i3, 1) : n3 < 0 && (o2 = u2.Ut.K_(2)) && o2.spans && o2.spans.length > 0 ? u2.Ut.GT(t4, -1, e3, -1, 2) : !!((a2 = u2.Ut.K_(3)) && a2.spans && a2.spans.length > 0) && u2.Ut.GT(t4, n3, e3, i3, 3));
          }, t3.prototype.suspendPaint = function() {
            var n3 = this, e3 = n3.My;
            n3.My++, 0 === e3 && t3.et(n3, ot, { suspend: true });
          }, t3.prototype.resumePaint = function() {
            var n3 = this;
            n3.My--, n3.My <= 0 && (n3.My = 0, t3.et(n3, ot, { suspend: false }), n3.hP() && n3.zw());
          }, t3.prototype.hP = function() {
            var t4 = this.parent;
            return !t4 || t4.getActiveSheet() === this;
          }, t3.prototype.isPaintSuspended = function() {
            return this.My > 0;
          }, t3.prototype.nR = function(t4, n3) {
            var e3, i3, r2 = this, o2 = t4 && t4.length;
            for (e3 = 0; e3 < o2; e3++) if (i3 = t4[e3], n3.intersect(i3.row, i3.col, i3.rowCount, i3.colCount)) return t4.splice(e3, 1), r2.nR(t4, n3.union(i3));
            return n3;
          }, t3.prototype.getClipboardHelperObj = function() {
            var t4 = this.ST();
            return { isCutting: t4.ES, ranges: t4._S, showInsertCopyPasteCells: t4.TT, fromSheet: t4.DS };
          }, t3.prototype.resetFloatingObjectHelperData = function(t4) {
            this.dP && this.dP.remove(t4);
          }, t3.prototype.ST = function() {
            var t4 = this, n3 = t4.parent;
            return t4.bM || (t4.bM = n3 && n3.bM), t4.bM;
          }, t3.prototype.BO = function() {
            if (!this.MC) {
              var n3 = this;
              n3.MC = new o.Wh((function() {
                var e3, i3;
                n3.MC && ((i3 = (e3 = n3.parent && n3.parent.Vp && n3.parent.Vp.endingCallback) && n3.parent.Vp.hasPendingTask) || (t3.et(n3, "onImageLoaded"), n3.repaint()));
              }));
            }
            return this.MC;
          }, t3.prototype.Qy = function() {
            var t4, n3 = this.parent;
            if (n3) return n3.commandManager();
          }, t3.prototype.jT = function(t4, n3, e3) {
            var i3 = { sheet: this, sheetName: this.name(), invalidType: t4, message: n3 };
            this.ki(r.Events.InvalidOperation, _t(_t({}, i3), e3));
          }, t3.prototype.Rj = function(t4, n3, e3, i3, o2, a2) {
            var u2, s2;
            0 === this.vf && (u2 = { sheet: this, sheetName: this.name(), row: n3, col: e3, sheetArea: i3, propertyName: t4, oldValue: o2, newValue: a2, isUndo: this.Nj }, this.ki(r.Events.CellChanged, u2), (s2 = this.Ut).ZI(["cellChanged", t4, n3, e3, i3, a2, o2]));
          }, t3.prototype.eT = function(t4, n3, e3, i3) {
            this.ki(r.Events.ValueChanged, { sheet: this, sheetName: this.name(), row: t4, col: n3, oldValue: e3, newValue: i3 });
          }, t3.prototype.Dj = function(t4, n3, e3, i3, o2) {
            var a2, u2, s2;
            if (0 === this.vf) {
              if (a2 = { sheet: this, sheetName: this.name(), col: t4, sheetArea: n3, propertyName: e3, newValue: i3, oldValue: o2, cancel: false }, "addColumns" !== e3 && "deleteColumns" !== e3 || (a2.count = i3), this.ki(r.Events.ColumnChanging, a2), true === a2.cancel) return false;
              (u2 = this.Ut).ZI(["columnChanging", t4, n3, e3, o2, i3]);
            }
            return s2 = this.getDockScrollbarAttachedIndex(), T(s2) || this.vP(), true;
          }, t3.prototype.vj = function(n3, e3, i3, o2, a2) {
            var u2, s2, c2 = { sheet: this, sheetName: this.name(), col: n3, sheetArea: e3, propertyName: i3, newValue: o2, oldValue: a2, isUndo: this.Nj };
            "addColumns" !== i3 && "deleteColumns" !== i3 || (c2.count = o2), t3.et(this, "onRowColInfoChanged", c2), 0 === this.vf && (this.ki(r.Events.ColumnChanged, c2), (u2 = this.Ut).ZI(["columnChanged", n3, e3, i3, a2, o2])), s2 = this.mP, T(s2) || this.gP();
          }, t3.prototype._j = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2, c2 = [];
            if (this.tables) {
              for (o2 = this.tables.pP(t4, n3, e3, i3), a2 = 0; a2 < o2.length; a2++) c2.push(o2[a2].name());
              c2.length > 0 && (u2 = { isUndo: this.Nj, sheet: this, sheetName: this.name(), row: t4, col: e3, rowCount: n3, colCount: i3, tableNames: c2, action: 2 }, this.ki(r.Events.RangeChanged, u2), (s2 = this.Ut).ZI(["rangeChanged", t4, n3, e3, i3]));
            }
          }, t3.prototype.kj = function(t4, n3, e3, i3, o2) {
            var a2, u2;
            if (0 === this.vf) {
              if (a2 = { sheet: this, sheetName: this.name(), row: t4, sheetArea: n3, propertyName: e3, newValue: i3, oldValue: o2, cancel: false }, "addRows" !== e3 && "deleteRows" !== e3 || (a2.count = i3), this.ki(r.Events.RowChanging, a2), true === a2.cancel) return false;
              (u2 = this.Ut).ZI(["rowChanging", t4, n3, e3, o2, i3]);
            }
            return true;
          }, t3.prototype.dj = function(n3, e3, i3, o2, a2) {
            var u2, s2 = { sheet: this, sheetName: this.name(), row: n3, sheetArea: e3, propertyName: i3, newValue: o2, oldValue: a2, isUndo: this.Nj };
            "addRows" !== i3 && "deleteRows" !== i3 || (s2.count = o2), t3.et(this, "onRowColInfoChanged", s2), 0 === this.vf && (this.ki(r.Events.RowChanged, s2), (u2 = this.Ut).ZI(["rowChanged", n3, e3, i3, a2, o2]));
          }, t3.prototype.Oj = function(t4, n3) {
            n3 !== t4 && (this.ki(r.Events.ViewZoomed, { sheet: this, sheetName: this.name(), oldZoomFactor: n3, newZoomFactor: t4 }), this.ki(r.Events.UserZooming, { sheet: this, sheetName: this.name(), oldZoomFactor: n3, newZoomFactor: t4 }));
          }, t3.prototype.EA = function(t4, n3) {
            return !(this.O9 || !this.rt._A(t4, n3)) && (this.ki(r.Events.SelectionChanging, { sheet: this, sheetName: this.name(), oldSelections: t4, newSelections: n3 }), true);
          }, t3.prototype.jA = function(t4, n3) {
            this.ki(r.Events.SelectionChanged, { sheet: this, sheetName: this.name(), oldSelections: t4, newSelections: this.getSelections(), shiftKey: n3 });
          }, t3.prototype.SI = function(t4, n3, e3, i3, o2, a2, u2, s2, c2, f2, l2) {
            var h2 = { sheet: this, sheetName: this.name(), row: t4, col: n3, rowCount: e3, colCount: i3, changedCells: o2, action: a2 }, d2 = { sheet: this, sheetName: this.name(), row: t4, col: n3, rowCount: e3, colCount: i3, changedCells: o2, isUndo: !!f2, action: a2 };
            u2 && (h2.sheetArea = u2, d2.sheetArea = u2), s2 && (h2.value = s2), (o2 && o2.length > 0 || l2 !== V) && (c2 && c2.length > 0 && (d2.tableNames = c2), this.ki(r.Events.RangeChanged, d2), this.ki(r.Events.RangeChangedInternal, h2));
          }, t3.prototype._i = function(t4, n3) {
            var e3 = { sheet: this, sheetName: this.name(), oldStatus: t4, newStatus: n3 };
            this.ki(r.Events.EditorStatusChanged, e3);
          }, t3.prototype.bP = function() {
            return this.yP || (this.yP = (0, c.GC$)(A("input"))), this.yP;
          }, t3.prototype.o5 = function() {
            var t4 = this;
            return t4.parent && t4.parent.options.pasteSkipInvisibleRange;
          }, t3.prototype.lT = function(t4, n3, e3) {
            var i3, r2 = this, o2 = 0, a2 = r2.getColumnWidth, u2 = r2.getColumnCount();
            for (e3 && (a2 = r2.getRowHeight, u2 = r2.getRowCount()), i3 = t4 = t4 < 0 ? 0 : t4; i3 < t4 + n3; i3++) i3 < u2 && 0 === a2.call(r2, i3) && (o2++, n3++);
            return o2;
          }, t3.prototype.ox = function(t4, n3, e3) {
            var i3, r2 = this, o2 = 0, a2 = r2.getColumnWidth;
            for (e3 && (a2 = r2.getRowHeight), i3 = t4 = t4 < 0 ? 0 : t4; i3 > t4 - n3 && i3 > 0; i3--) 0 === a2.call(r2, i3) && (o2++, n3++);
            return o2;
          }, t3.prototype.ix = function(t4, n3, e3) {
            var i3, r2 = this, o2 = 0, a2 = r2.getColumnWidth;
            for (e3 && (a2 = r2.getRowHeight), i3 = t4 = t4 < 0 ? 0 : t4; i3 < t4 + n3; i3++) 0 === a2.call(r2, i3) && o2++;
            return o2;
          }, t3.prototype.bind = function(t4, n3, e3) {
            this.bP().bind(t4 + ft, n3, e3);
          }, t3.prototype.unbind = function(t4, n3) {
            this.bP().unbind(t4 + ft, n3);
          }, t3.prototype.ki = function(t4, n3, e3) {
            this.updateEventsData && this.updateEventsData(t4, n3), (0 === this.vf || e3) && this.bP().trigger(t4, n3);
          }, t3.prototype.unbindAll = function() {
            this.unbind("");
          }, t3.prototype.D3 = function(t4, n3, e3) {
            t4.indexOf(".") >= 0 ? this.bind(t4, n3, e3) : this.bind(t4 + lt, n3, e3);
          }, t3.prototype._3 = function(t4, n3) {
            t4.indexOf(".") >= 0 ? this.unbind(t4, n3) : this.unbind(t4 + lt, n3);
          }, t3.prototype.E3 = function() {
            this.unbind(lt);
          }, t3.prototype.ot = function() {
            var t4 = this.kg;
            return new r.Rect(t4.x, t4.y, t4.width, t4.height);
          }, t3.prototype.cg = function(t4) {
            this.kg = new r.Rect(t4.x, t4.y, t4.width, t4.height);
          }, t3.prototype.scroll = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.parent;
            v2 && (i3 = (e3 = v2.options).scrollByPixel, r2 = e3.scrollPixel, o2 = v2.ib, a2 = e3.scrollbarShowMax, u2 = e3.showHorizontalScrollbar, s2 = e3.showVerticalScrollbar, 0 !== n3 && (f2 = (c2 = o2.bw(d2, Math.round(n3) / r2)).iw, l2 = i3 ? c2.Xy : 0, f2 === d2.Ab && l2 === d2.my || (o2.wy(d2, f2, l2), u2 && (d2.ow(), a2 || (d2.Zw = true)))), 0 !== t4 && (f2 = (h2 = o2.hw(d2, Math.round(t4) / r2)).Ky, l2 = i3 ? h2.Xy : 0, f2 === d2.Tb && l2 === d2.ly || (o2.yy(d2, f2, l2), s2 && (d2.tw(), a2 || (d2.Ww = true)))));
          }, t3.prototype.isCtrlPressed = function(t4) {
            return this.rt && this.rt.ctrl;
          }, t3.prototype.deselectIgnoreSpan = function() {
            return false;
          }, t3.prototype.Wb = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = this, S2 = C2.zoom(), x2 = n3.newValue, A2 = n3.oldValue, I2 = n3.scrollEventType, k2 = t4.options.scrollByPixel, N2 = t4.options.scrollPixel;
            if (A2 = n3.oldValue = T(A2) ? 0 : k2 ? K(A2) : P(A2 + "", 10), C2.Ww = false, r2 = C2.pw(), o2 = C2.mw().Ky, a2 = t4.options.scrollbarShowMax, u2 = 0, k2) {
              for (s2 = (x2 = K(x2)) - A2, I2 !== h.Zi.thumbTrack && (x2 = A2 + (s2 *= N2 * S2), c2 = t4._vScrollbar._maximum(), x2 < 0 ? x2 = 0 : x2 > c2 && (x2 = c2)), a2 || (C2.Ww = true, I2 === h.Zi.smallIncrement && x2 === A2 ? x2 += N2 * S2 : n3.ignoreUpdatePosition = true), v2 = (d2 = f2 = C2.frozenRowCount()) + (l2 = C2.getRowCount() - C2.frozenTrailingRowCount() - f2) - 1, p2 = 0, g2 = 0, m2 = C2.Csr, b2 = d2; b2 <= v2; b2++) if (g2 = C2.Gt(b2), m2 && (C2.Csr(b2) && (g2 += C2.Msr(b2)), C2.Csr(b2, true) && (g2 += C2.Msr(b2, true))), (p2 += g2) >= x2) {
                u2 = p2 - x2 - g2, e3 = b2;
                break;
              }
              T(e3) && (e3 = v2, u2 = -C2.Gt(v2), x2 = p2);
            } else e3 = P(x2 + "", 10), e3 = C2.oP(e3), I2 === h.Zi.largeDecrement || I2 === h.Zi.smallDecrement ? (I2 === h.Zi.largeDecrement && (e3 = C2.QA()), -1 !== (i3 = C2.vw(e3, true)) && i3 !== e3 && (e3 = i3), a2 || (C2.Ww = true, n3.ignoreUpdatePosition = true)) : I2 !== h.Zi.largeIncrement && I2 !== h.Zi.smallIncrement || (I2 === h.Zi.largeIncrement && (e3 = C2.sB()) === C2.Tb && e3++, a2 || (C2.Ww = true, I2 === h.Zi.smallIncrement && x2 === A2 && e3++), -1 !== (i3 = C2.vw(e3)) && i3 !== e3 && (e3 = i3)), e3 < r2 && (e3 = r2), e3 > o2 && (e3 = o2);
            y2 = k2 ? K(x2) : C2.qF(e3), n3.newValue !== y2 && (n3.newValue = y2), w2 = y2, 0 !== (M2 = C2.Gt(e3)) && (w2 += Q(u2) / M2), n3.newValueWithOffset = k2 ? y2 : w2, (A2 !== y2 || k2) && t4.ib.ay(C2, e3, u2);
          }, t3.prototype.Kb = function(t4) {
            var n3, e3, i3, r2 = this, o2 = t4._vScrollbar, a2 = o2.g4 === h.ScrollType.pixels;
            a2 || (n3 = r2.oP(o2.value()), e3 = r2.pw(), i3 = r2.mw().Ky, n3 < e3 ? o2.value(r2.qF(e3)) : n3 > i3 && o2.value(r2.qF(i3))), t4.iy(), t4.options.scrollbarShowMax || (t4.ib.scrolling ? r2.Ww = true : t4.QC());
          }, t3.prototype.Fb = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.zoom(), S2 = n3.newValue, x2 = n3.oldValue, A2 = n3.scrollEventType, I2 = t4.options.scrollByPixel, k2 = t4.options.scrollPixel;
            if (x2 = n3.oldValue = T(x2) ? 0 : I2 ? K(x2) : P(x2 + "", 10), M2.Zw = false, r2 = M2.Sw(), o2 = M2.Mw().iw, a2 = t4.options.scrollbarShowMax, u2 = 0, I2) {
              for (s2 = (S2 = K(S2)) - x2, A2 !== h.Zi.thumbTrack && (S2 = x2 + (s2 *= k2 * C2), c2 = t4._hScrollbar._maximum(), S2 < 0 ? S2 = 0 : S2 > c2 && (S2 = c2)), a2 || (M2.Zw = true, A2 === h.Zi.smallIncrement && S2 === x2 ? S2 += k2 * C2 : n3.ignoreUpdatePosition = true), v2 = (d2 = f2 = M2.frozenColumnCount()) + (l2 = M2.getColumnCount() - M2.frozenTrailingColumnCount() - f2) - 1, p2 = 0, g2 = 0, m2 = d2; m2 <= v2; m2++) if ((p2 += g2 = M2.nn(m2)) >= S2) {
                u2 = p2 - S2 - g2, e3 = m2;
                break;
              }
              T(e3) && (e3 = v2, u2 = -M2.nn(v2), S2 = p2);
            } else e3 = P(S2 + "", 10), e3 = M2.aP(e3), A2 === h.Zi.largeDecrement || A2 === h.Zi.smallDecrement ? (A2 === h.Zi.largeDecrement && (e3 = M2.fB()), -1 !== (i3 = M2.ww(e3, true)) && i3 !== e3 && (e3 = i3), a2 || (M2.Zw = true, n3.ignoreUpdatePosition = true)) : A2 !== h.Zi.largeIncrement && A2 !== h.Zi.smallIncrement || (A2 === h.Zi.largeIncrement && (e3 = M2.oB()) === M2.Ab && e3++, a2 || (M2.Zw = true, A2 === h.Zi.smallIncrement && S2 === x2 && e3++), -1 !== (i3 = M2.ww(e3)) && i3 !== e3 && (e3 = i3)), e3 < r2 && (e3 = r2), e3 > o2 && (e3 = o2);
            b2 = I2 ? K(S2) : M2.KF(e3), n3.newValue !== b2 && (n3.newValue = b2), y2 = b2, 0 !== (w2 = M2.nn(e3)) && (y2 += Q(u2) / w2), n3.newValueWithOffset = I2 ? b2 : y2, (x2 !== b2 || I2) && t4.ib.ay(M2, e3, u2, true);
          }, t3.prototype.Gb = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = t4._hScrollbar;
            o2 && a2 && ((n3 = a2.g4 === h.ScrollType.pixels) || (e3 = o2.aP(a2.value()), i3 = o2.Sw(), r2 = o2.Mw().iw, e3 < i3 ? a2.value(o2.KF(i3)) : e3 > r2 && a2.value(o2.KF(r2))), t4.iy(), t4.options.scrollbarShowMax || (t4.ib.scrolling ? o2.Zw = true : t4.WC()));
          }, t3.prototype.onHorizontalDockScroll = function(t4, n3) {
            var e3, i3, r2, o2 = this.wP;
            T(o2) || (e3 = n3.oldValue, r2 = (i3 = n3.newValue) - e3, this.scrollColumnView(o2, -r2));
          }, t3.prototype.WC = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2 = this, m2 = e3 && e3.g4 === h.ScrollType.pixels, b2 = g2.frozenColumnCount(), y2 = g2.getColumnCount() - g2.frozenTrailingColumnCount() - b2, w2 = b2, M2 = g2.Fi(), C2 = g2.Gy(M2), S2 = 0 === y2 ? w2 : w2 + y2 - 1, T2 = g2.Ab, x2 = g2.my, A2 = 0;
            t4 ? (m2 ? (i3 = o2 = (r2 = g2.Cw(C2, w2, S2)).iw, A2 = a2 = r2.Xy) : i3 = g2.sP(C2, w2, S2), S2 = i3) : m2 && (A2 = -g2.nn(S2)), n3 ? m2 && !t4 && (A2 = -g2.nn(S2)) : (s2 = (u2 = g2.lP()).lastNonNullCol, (c2 = g2.sP(C2, w2, s2)) === w2 && ++c2 > S2 && (c2 = S2), S2 = T2 > c2 ? T2 < S2 ? T2 : S2 : c2, A2 = x2), T2 > S2 ? (g2.Ab = S2, g2.my = m2 ? A2 : 0) : T2 === S2 && A2 > x2 && (g2.my = m2 ? A2 : 0), -1 !== (f2 = g2.ww(g2.Ab)) && f2 !== g2.Ab && (g2.Ab = f2), e3 && (l2 = 0, d2 = 0, v2 = 0, p2 = 0, m2 ? (l2 = g2.QF(w2), d2 = g2.QF(S2) - A2, v2 = C2, p2 = g2.QF(g2.Ab) - g2.my) : (l2 = g2.KF(w2), d2 = g2.KF(S2), v2 = g2.cP(), p2 = g2.KF(g2.Ab) || 0, v2 < 1 && (v2 = 1)), e3._minimum(l2), e3._maximum(d2), e3.d4(v2), e3.w4(), e3.value(p2));
          }, t3.prototype.$C = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            t4 && (n3 = this.getDockScrollbarAttachedIndex(), T(n3) || (e3 = this.getColumnWidth(n3), r2 = 0, o2 = (i3 = this.getColumnScrollWidth(n3)) - e3, a2 = e3, u2 = -this.getColumnScrollOffsetX(n3), t4._minimum(r2), t4._maximum(o2), t4.d4(a2), t4.w4(), t4.value(u2)));
          }, t3.prototype.QC = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2 = this, m2 = e3 && e3.g4 === h.ScrollType.pixels, b2 = g2.frozenRowCount(), y2 = g2.getRowCount() - g2.frozenTrailingRowCount() - b2, w2 = b2, M2 = g2.Fi(), C2 = 0 === y2 ? w2 : w2 + y2 - 1, S2 = g2.Tb, T2 = g2.ly, x2 = 0, A2 = g2.Sy(M2), I2 = g2.Csr;
            t4 ? (m2 ? (i3 = o2 = (r2 = g2.gw(A2, w2, C2)).Ky, x2 = a2 = r2.Xy) : i3 = g2.uP(A2, w2, C2), C2 = i3) : m2 && (x2 = -g2.Gt(C2), I2 && g2.Csr(C2) && (x2 -= g2.Msr(C2)), I2 && g2.Csr(C2, true) && (x2 -= g2.Msr(C2, true))), n3 ? m2 && !t4 && (x2 = -g2.Gt(C2), I2 && g2.Csr(C2) && (x2 -= g2.Msr(C2)), I2 && g2.Csr(C2, true) && (x2 -= g2.Msr(C2, true))) : (s2 = (u2 = g2.lP()).lastNonNullRow, (c2 = g2.uP(A2, w2, s2)) === w2 && ++c2 > C2 && (c2 = C2), C2 = S2 > c2 ? S2 < C2 ? S2 : C2 : c2, x2 = T2), S2 > C2 ? (g2.Tb = C2, g2.ly = m2 ? x2 : 0) : S2 === C2 && x2 > T2 && !(g2.Csr && g2.parent && g2.parent.Gie) && (g2.ly = m2 ? x2 : 0), -1 !== (f2 = g2.vw(g2.Tb)) && f2 !== g2.Tb && (g2.Tb = f2), e3 && (l2 = 0, d2 = 0, v2 = 0, p2 = 0, m2 ? (l2 = g2.XF(w2), d2 = g2.XF(C2) - x2, v2 = A2, p2 = g2.XF(g2.Tb) - g2.ly) : (l2 = g2.qF(w2), d2 = g2.qF(C2), v2 = g2.fP(), p2 = g2.qF(g2.Tb) || 0, v2 < 1 && (v2 = 1)), e3._minimum(l2), e3._maximum(d2), e3.d4(v2), e3.w4(), e3.value(p2));
          }, t3.prototype.FM = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.getUsedRange(h.UsedRangeType.data);
            if (c2) {
              for (t4 = c2.row, n3 = c2.col, e3 = c2.rowCount, i3 = c2.colCount, -1 === c2.rowCount && (e3 = s2.getRowCount() - t4), -1 === c2.colCount && (i3 = s2.getColumnCount() - n3), r2 = t4; r2 < t4 + e3; r2++) for (o2 = n3; o2 < n3 + i3; o2++) a2 = s2.getValue(r2, o2), T(a2) || a2 instanceof Date && ((u2 = s2.Z_(r2, o2)) && u2.g5(a2), s2.CL(r2, o2, u2));
              this.r3();
            }
          }, t3.prototype.GB = function(t4, n3) {
            var e3 = this;
            1 === e3.getRowCount(h.SheetArea.colHeader) && (e3.qL(t4, n3, ht, false, h.SheetArea.colHeader), e3.Zw = true, e3.zw());
          }, t3.prototype.Lt = function(t4) {
            var n3;
            return this.Ut.getColumnHeaderFitMode(false, 1, t4);
          }, t3.prototype.vL = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2;
            return T(i3) && (i3 = 3), o2 = this, r2 || (a2 = o2.t0(t4, n3, i3), T(a2)) ? (u2 = o2.getCellType(t4, n3, i3), s2 = e3, (c2 = o2.l0(t4, n3, "formatter", i3)) && "General" !== c2 || (c2 = o2.l0(t4, n3, "_autoFormatter", i3)), "General" === c2 && (c2 = V), f2 = {}, l2 = o2.l0(t4, n3, "quotePrefix", i3), (s2 = u2.format(s2, c2, f2, { sheet: o2, row: t4, col: n3, sheetArea: i3, quotePrefix: l2 })) && "string" == typeof s2 && (s2 = s2.replace(/\r\n?/g, "\n")), s2) : a2;
          }, t3.prototype.isRowFilterOut = function(t4) {
            return this.XT(t4);
          }, t3.prototype.getHDockScrollbarWidth = function() {
            var t4, n3, e3, i3, r2, o2 = this.getDockScrollbarAttachedIndex(), a2 = this.Vy, u2 = 0;
            return a2 && !T(o2) && (t4 = this.frozenTrailingColumnCount(), (o2 >= (e3 = (n3 = this.getColumnCount()) - t4) || o2 <= (i3 = n3 - 1)) && (u2 = (r2 = this.Fi()).zy)), u2;
          }, t3.prototype.getDockScrollbarAttachedIndex = function() {
            return this.wP;
          }, t3.prototype.setDockScrollbarAttachedIndex = function(t4) {
            this.wP = t4, this.Zw = true, this.zw();
          }, t3.prototype.vP = function() {
            var t4 = this.getDockScrollbarAttachedIndex(), n3 = this.Ut, e3 = n3.Q_(false, h.SheetArea.viewport), i3 = e3.NE(t4);
            this.mP = i3;
          }, t3.prototype.gP = function() {
            var t4 = this.Ut, n3 = t4.Q_(false, h.SheetArea.viewport), e3 = n3.EE(), i3 = this.mP, r2 = e3.indexOf(i3);
            -1 === r2 && (r2 = H), this.setDockScrollbarAttachedIndex(r2);
          }, t3.prototype.setScrollableColumnIndexInFrozenTrailingColumnArea = function(t4) {
            var n3, e3, i3, r2;
            t4 >= 0 && (t4 += i3 = (n3 = this.getColumnCount()) - (e3 = this.frozenTrailingColumnCount())) <= (r2 = n3 - 1) && this.setDockScrollbarAttachedIndex(t4);
          }, t3.prototype.getColumnScrollWidth = function(t4) {
            var n3 = this.Ut, e3 = n3.Q_(false, h.SheetArea.viewport);
            return e3.getScrollContentWidth(t4);
          }, t3.prototype.setColumnScrollWidth = function(t4, n3) {
            var e3 = this.Ut, i3 = e3.Q_(false, h.SheetArea.viewport);
            i3.setScrollContentWidth(t4, n3), this.Zw = true, this.zw();
          }, t3.prototype.getColumnScrollOffsetX = function(t4) {
            var n3 = this.Ut, e3 = n3.Q_(false, h.SheetArea.viewport);
            return e3.getScrollOffsetX(t4);
          }, t3.prototype.setColumnScrollOffsetX = function(t4, n3) {
            var e3 = this.Ut, i3 = e3.Q_(false, h.SheetArea.viewport);
            i3.setScrollOffsetX(t4, n3), this.JF(), this.n3(), this.LL(t4);
          }, t3.prototype.scrollColumnView = function(t4, n3) {
            var e3 = this.Ut, i3 = e3.Q_(false, h.SheetArea.viewport), r2 = this.getColumnWidth(t4), o2 = this.getColumnScrollWidth(t4), a2 = this.getColumnScrollOffsetX(t4), u2 = a2 + n3;
            u2 > 0 ? n3 = -a2 : u2 < r2 - o2 && (n3 = r2 - o2 - a2), i3.setScrollOffsetX(t4, n3, true), this.JF(), this.n3(), this.LL(t4);
          }, t3.prototype.getScrollTooltipContent = function(t4, n3) {
            var e3, i3, o2 = "", a2 = this.Ab + 1;
            return t4 ? o2 = xt().Tip_Row + (this.Tb + 1) : (e3 = this.getDockScrollbarAttachedIndex(), n3 && !T(e3) && (a2 = this.getDockScrollbarAttachedIndex() + 1), 1 !== this.options.colHeaderAutoText && (a2 = r.util.Vf(a2)), o2 = xt().Tip_Column + a2, n3 && !T(e3) && (i3 = K(this.getColumnScrollOffsetX(e3)), o2 += " ".concat(xt().Tip_Column_Offset, ": ").concat(i3))), o2;
          }, t3.prototype.expandSelection = function(t4, n3) {
            for (var e3 = new r.Range(n3.row, n3.col, n3.rowCount, n3.colCount), i3 = new r.Range(n3.row, n3.col, n3.rowCount, n3.colCount), o2 = true, a2 = true, u2 = true, s2 = true; o2 || a2 || u2 || s2; ) o2 && r.util.X0(t4, e3.row - 1, e3.col - 1, e3.colCount + 2) && (e3.row = e3.row - 1, e3.rowCount = e3.rowCount + 1), a2 && r.util.X0(t4, e3.row + e3.rowCount, e3.col - 1, e3.colCount + 2) && (e3.rowCount = e3.rowCount + 1), u2 && r.util.q0(t4, e3.row - 1, e3.col - 1, e3.rowCount + 2) && (e3.col = e3.col - 1, e3.colCount = e3.colCount + 1), s2 && r.util.q0(t4, e3.row - 1, e3.col + e3.colCount, e3.rowCount + 2) && (e3.colCount = e3.colCount + 1), o2 = false, a2 = false, u2 = false, s2 = false, t4.getText(e3.row - 1, e3.col - 1) && (u2 = true, o2 = true), t4.getText(e3.row - 1, e3.col + e3.colCount) && (s2 = true, o2 = true), t4.getText(e3.row + e3.rowCount, e3.col - 1) && (a2 = true, u2 = true), t4.getText(e3.row + e3.rowCount, e3.col + e3.colCount) && (a2 = true, s2 = true), i3.row === e3.row ? i3.rowCount === e3.rowCount - 1 && (a2 = true) : (o2 = true, i3.rowCount === e3.rowCount - 2 && (a2 = true)), i3.col === e3.col ? i3.colCount === e3.colCount - 1 && (s2 = true) : (u2 = true, i3.colCount === e3.colCount - 2 && (s2 = true)), i3.row = e3.row, i3.col = e3.col, i3.rowCount = e3.rowCount, i3.colCount = e3.colCount;
            return e3;
          }, t3.prototype.deleteBlankContent = function(t4, n3) {
            1 === n3.rowCount && 1 === n3.colCount || (r.util.X0(t4, n3.row, n3.col, n3.colCount) || (n3.row = n3.row + 1, n3.rowCount = n3.rowCount - 1), r.util.X0(t4, n3.row + n3.rowCount - 1, n3.col, n3.colCount) || (n3.rowCount = n3.rowCount - 1), r.util.q0(t4, n3.row, n3.col, n3.rowCount) || (n3.col = n3.col + 1, n3.colCount = n3.colCount - 1), r.util.q0(t4, n3.row, n3.col + n3.colCount - 1, n3.rowCount) || (n3.colCount = n3.colCount - 1));
          }, t3.prototype.MP = function() {
            return false;
          }, t3.prototype.FT = function() {
            return xt().Exp_InvalidOperationInProtect;
          }, t3.prototype._An = function() {
            return xt().Exp_InvalidOperationSizeLimitExceeded;
          }, t3.prototype.Ci = function(t4, n3, e3) {
            return this.CP(t4, n3, e3);
          }, t3.prototype.CP = function(t4, n3, e3) {
            return this.Ut.Ci(t4, n3, e3);
          }, t3.prototype.e1e = function() {
            return this.options.sheetTabColor;
          }, t3.prototype.parameter = function(t4) {
            var n3, e3, i3, r2;
            if (0 === arguments.length) {
              for (i3 in e3 = {}, n3 = this.o1e) n3.hasOwnProperty(i3) && (e3[i3] = E(n3[i3]));
              return e3;
            }
            if (t4) {
              for (i3 in r2 = {}, t4) t4.hasOwnProperty(i3) && (r2[i3] = O(t4[i3]));
              this.o1e = r2;
            }
          }, t3.prototype.continuousPaginateLargeColumn = function() {
            return false;
          }, t3.prototype.$t = function(t4, n3, e3, i3, r2) {
            return void 0 === r2 && (r2 = {}), this.getValue(t4, n3, e3, i3, r2);
          }, t3.prototype.MAe = function(t4, n3, e3, i3, r2) {
            return void 0 === r2 && (r2 = {}), this.getActualStyle(t4, n3, e3, i3, r2);
          }, t3.prototype.Hao = function(t4, n3, e3, i3, r2) {
            return this.Il(t4, n3, e3, i3, r2);
          }, t3.prototype.isActualProtected = function() {
            return this.options.isProtected;
          }, t3.prototype.getAutoFormatter = function(t4, n3) {
            var e3;
            return null === (e3 = this.getStyle(t4, n3)) || void 0 === e3 ? void 0 : e3._autoFormatter;
          }, t3.prototype.GRe = function() {
            var t4, n3, e3, i3;
            return this.dCn || (e3 = function(e4) {
              n3 = t4.THr({ type: "setFileInfo", fileGUID: e4.fileGUID, oldValue: e4.oldValue });
            }, i3 = function(e4) {
              t4.$Dr({ type: "setFileInfo", fileGUID: e4.fileGUID, fileInfo: e4.fileInfo }, n3);
            }, (t4 = this).dCn = new y.AttachmentsManager(i3, e3)), this.dCn;
          }, t3.prototype.$Dr = function(n3, e3) {
            n3.sheetId = this.jKe(), e3 && (n3.changingContext = e3), t3.et(this, "modelChanged", n3);
          }, t3.prototype.THr = function(n3) {
            return n3.sheetId = this.jKe(), n3.changingContext = {}, t3.et(this, "modelChanging", n3), n3.changingContext;
          }, t3.prototype.Dao = function() {
            var t4 = this;
            t4.Cao && (t4.Cao(), t4.Cao = H);
          }, t3.prototype.Mao = function(t4, n3) {
            var e3, i3, r2 = this;
            n3 && (null === (e3 = r2.eYr) || void 0 === e3 ? void 0 : e3.src) && !r2.pYr && (i3 = new Promise((function(t5) {
              r2.Cao = t5;
            })), t4.push(i3));
          }, t3.prototype.sYr = function(t4, n3) {
            var e3, i3, r2 = this;
            if (!t4) return r2.pYr && (r2.pYr = H, r2.repaint()), void r2.Dao();
            t4 !== n3 ? (i3 = function() {
              var n4, i4 = e3.qh(t4), o2 = r2.pYr, a2 = H;
              i4 && (0 !== (a2 = e3.getImage(t4)).width && 0 !== a2.height || ((n4 = wt(t4)) ? "svg+xml" === n4.type && Mt(a2) : Ct(a2.src) && yt(a2.src).then((function(n5) {
                n5 ? ((a2 = e3.getImage(t4)).width = n5.width, a2.height = n5.height, r2.pYr = a2) : r2.pYr = null;
              })).catch((function() {
                r2.pYr = H;
              })).finally((function() {
                o2 !== r2.pYr && r2.repaint();
              }))), 0 !== a2.width && 0 !== a2.height || (a2 = H)), r2.pYr = a2, o2 !== r2.pYr && r2.repaint(), r2.Dao();
            }, (e3 = r2.BO()) ? e3.addImage(t4, "Anonymous", { loadCallback: i3 }) : (e3 = new o.Wh((function() {
              i3(), e3.L0();
            }))).addImage(t4, "Anonymous")) : r2.Dao();
          }, t3._ID = 1, t3.Pp = Nt, t3.n8 = 200, t3.e8 = 20, t3.r8 = 1, t3.o8 = 1, t3;
        })(), n2.Worksheet = jt, (0, r.$e)(jt), (0, w.qDr)(jt), (Dt = jt.prototype).visible = I("visible", h.SheetTabVisible.visible, (function(t3) {
          var n3, e3 = this, i3 = e3.parent, r2 = i3.sheets, o2 = r2.length, a2 = c.GC$.inArray(e3, r2), u2 = i3.getActiveSheetIndex(), s2 = "visible";
          if (true !== t3 && false !== t3 && t3 !== h.SheetTabVisible.visible && t3 !== h.SheetTabVisible.hidden && t3 !== h.SheetTabVisible.veryHidden && (e3._ps[s2] = h.SheetTabVisible.visible), true === t3 ? e3._ps[s2] = h.SheetTabVisible.visible : false === t3 && (e3._ps[s2] = h.SheetTabVisible.hidden), t3 === h.SheetTabVisible.visible || true === t3) u2 < 0 ? (i3.tb(a2, 1), i3.w2 && i3.w2.om < 0 && (i3.w2.om = a2)) : i3.Xg();
          else if (a2 === u2) {
            for (n3 = a2 + 1; n3 < o2 && r2[n3].visible() !== h.SheetTabVisible.visible; ) n3++;
            if (n3 >= o2) for (n3 = a2 - 1; n3 >= 0 && r2[n3].visible() !== h.SheetTabVisible.visible; ) n3--;
            i3.w2 && n3 < i3.w2.om && (i3.w2.om = n3), n3 < 0 ? (e3.L0(false), i3.d_r(n3), i3.Cg()) : (i3.tb(n3, 1), t3 === h.SheetTabVisible.veryHidden && r2[u2] && i3.a3(r2[u2]));
          } else i3.Xg();
        }), void 0, (function() {
          var t3 = this;
          t3.$Dr({ type: "setSheetVisible", visible: t3.visible() });
        })), n2.Wmr = hn;
      }, "./dist/plugins/autoMerge/autoMerge.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y = this && this.qKr || (w = function(t3, n3) {
          return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, w(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          w(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), w;
        function M(t3, n3, e3) {
          return e3 + "_" + t3 + "_" + n3;
        }
        function C(t3, n3, e3) {
          return n3 === t3 || (n3 === i2.SheetArea.viewport ? e3 && t3 === i2.SheetArea.rowHeader || !e3 && t3 === i2.SheetArea.colHeader : n3 === i2.SheetArea.rowHeader ? e3 && t3 === i2.SheetArea.viewport : n3 === i2.SheetArea.colHeader && (!e3 && t3 === i2.SheetArea.viewport));
        }
        function S(t3, n3, e3) {
          t3.clearSpan(n3.row, n3.col, n3.rowCount, n3.colCount, e3);
        }
        function T(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3.frozenRowCount(), d2 = t3.frozenColumnCount(), v2 = t3.frozenTrailingRowCount(), p2 = t3.frozenTrailingColumnCount(), g2 = t3.getRowCount(), m2 = t3.getColumnCount(), b2 = t3.getViewportTopRow(1), y2 = t3.getViewportBottomRow(1), w2 = t3.getViewportLeftColumn(1), M2 = t3.getViewportRightColumn(1), C2 = [];
          return h2 > 0 && d2 > 0 && (e3 = n3.getIntersect((0, i2.Ec)(0, 0, h2, d2))) && C2.push(e3), h2 > 0 && (r2 = n3.getIntersect((0, i2.Ec)(0, w2, h2, M2 - w2 + 1))) && C2.push(r2), h2 > 0 && p2 > 0 && (o2 = n3.getIntersect((0, i2.Ec)(0, m2 - p2 + 1, h2, p2))) && C2.push(o2), h2 > 0 && d2 > 0 && (a2 = n3.getIntersect((0, i2.Ec)(b2, 0, y2 - b2 + 1, d2))) && C2.push(a2), (u2 = n3.getIntersect((0, i2.Ec)(b2, w2, y2 - b2 + 1, M2 - w2 + 1))) && C2.push(u2), h2 > 0 && p2 > 0 && (s2 = n3.getIntersect((0, i2.Ec)(b2, m2 - p2 + 1, y2 - b2 + 1, p2))) && C2.push(s2), v2 > 0 && d2 > 0 && (c2 = n3.getIntersect((0, i2.Ec)(g2 - v2 + 1, 0, v2, d2))) && C2.push(c2), v2 > 0 && (f2 = n3.getIntersect((0, i2.Ec)(g2 - v2 + 1, w2, v2, M2 - w2 + 1))) && C2.push(f2), v2 > 0 && p2 > 0 && (l2 = n3.getIntersect((0, i2.Ec)(g2 - v2 + 1, m2 - p2 + 1, v2, p2))) && C2.push(l2), C2;
        }
        function x(t3, n3) {
          var e3 = t3.Ut;
          return n3.map((function(t4) {
            var n4 = e3.getSpans(t4), r2 = t4.row, o2 = t4.col, a2 = t4.row + t4.rowCount - 1, u2 = t4.col + t4.colCount - 1;
            return n4.forEach((function(t5) {
              r2 = Math.min(t5.row, r2), o2 = Math.min(t5.col, o2), a2 = Math.max(t5.row + t5.rowCount - 1, a2), u2 = Math.max(t5.col + t5.colCount - 1, u2);
            })), (0, i2.Ec)(r2, o2, a2 - r2 + 1, u2 - o2 + 1);
          }));
        }
        function A(t3, n3, e3) {
          var r2, o2 = t3.JS(n3, e3);
          return e3 !== i2.SheetArea.viewport || t3.options.allowCellOverflow ? [o2] : x(t3, r2 = T(t3, o2));
        }
        function I(t3, n3) {
          var e3, r2, o2, c2 = [], f2 = t3.spans;
          if (f2) for (e3 = 0; e3 < f2.length; e3++) (r2 = f2[e3]) && c2.push({ n_: i2.XFileConstants.xu, ref: u(r2) });
          o2 = a(n3, s), c2.length > 0 && (o2 ? o2.c_ = o2.c_.concat(c2) : (n3.c_.push({ n_: s, c_: c2 }), i2.util.Pr(n3, [i2.XFileConstants.Su, i2.XFileConstants.Tu, i2.XFileConstants.Du, i2.XFileConstants._u, i2.XFileConstants.Eu, i2.XFileConstants.bo, "sheetProtection", "autoFilter", s, i2.XFileConstants.ju, i2.XFileConstants.Ou, i2.XFileConstants.ku, "printOptions", "pageMargins", "pageSetup", "headerFooter", "rowBreaks", "colBreaks", "picture", "drawing", "legacyDrawing", i2.XFileConstants.Fo, i2.XFileConstants.Bo, i2.XFileConstants.Bu, i2.XFileConstants.Au])));
        }
        function k(t3, n3, e3) {
          var r2, o2, a2 = t3.ZF(i2.SheetArea.viewport);
          a2.length > 0 && (n3.spans ? n3.spans = n3.spans.concat(a2) : n3.spans = a2), e3 || ((r2 = t3.ZF(i2.SheetArea.rowHeader)).length > 0 && (n3.rowHeaderSpan ? n3.rowHeaderSpan = n3.rowHeaderSpan.concat(r2) : n3.rowHeaderSpan = r2), (o2 = t3.ZF(i2.SheetArea.colHeader)).length > 0 && (n3.colHeaderSpan ? n3.colHeaderSpan = n3.colHeaderSpan.concat(o2) : n3.colHeaderSpan = o2));
        }
        function N(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, h2, d2, m2 = {}, b2 = [], y2 = e3.row, w2 = e3.row + e3.rowCount - 1, M2 = e3.col, C2 = e3.col + e3.colCount - 1;
          for (o2 = M2; o2 <= C2; o2++) if (t3.getColumnVisible(o2, r2) && !(t3.getColumnWidth(o2, r2) <= 0)) {
            for (u2 = (a2 = n3 === l.restricted) && o2 > M2, s2 = void 0, c2 = y2; c2 <= w2; ) if (!t3.getRowVisible(c2, r2) || t3.getRowHeight(c2, r2) <= 0) c2++;
            else {
              if ((f2 = t3.j5(c2, r2, true)) === g || f2 > w2) break;
              if (O(t3, c2, o2, f2, o2, r2)) {
                if (u2 && !j(t3, m2, c2, o2, f2, o2, r2)) {
                  s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p), c2 = f2;
                  continue;
                }
                d2 = f2 - c2 + 1, s2 ? s2.rowCount += d2 - 1 : s2 = (0, i2.Ec)(c2, o2, d2, 1);
              } else s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p);
              c2 = f2;
            }
            s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p);
          }
          return { cache: m2, spans: b2 };
        }
        function j(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = t3.r6(i3, a2, true), s2 = n3[M(e3, u2, a2)];
          return s2 && s2.sheetArea === a2 && s2.row <= e3 && r2 <= s2.row + s2.rowCount - 1;
        }
        function D(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, h2, d2, m2 = {}, b2 = [], y2 = e3.row, w2 = e3.row + e3.rowCount - 1, M2 = e3.col, C2 = e3.col + e3.colCount - 1;
          for (o2 = y2; o2 <= w2; o2++) if (t3.getRowVisible(o2, r2) && !(t3.getRowHeight(o2, r2) <= 0)) {
            for (u2 = (a2 = n3 === l.restricted) && o2 > y2, s2 = void 0, c2 = M2; c2 <= C2; ) if (!t3.getColumnVisible(c2, r2) || t3.getColumnWidth(c2, r2) <= 0) c2++;
            else {
              if ((f2 = t3.O5(c2, r2, true)) === g || f2 > C2) break;
              if (O(t3, o2, c2, o2, f2, r2)) {
                if (u2 && !_(t3, m2, o2, c2, o2, f2, r2)) {
                  s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p), c2 = f2;
                  continue;
                }
                d2 = f2 - c2 + 1, s2 ? s2.colCount += d2 - 1 : s2 = (0, i2.Ec)(o2, c2, 1, d2);
              } else s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p);
              c2 = f2;
            }
            s2 && (h2 = new v(s2, r2), b2.push(h2), L(m2, s2, h2), s2 = p);
          }
          return { cache: m2, spans: b2 };
        }
        function _(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = t3.nI(e3, a2, true), s2 = n3[M(u2, i3, a2)];
          return s2 && s2.sheetArea === a2 && s2.col <= i3 && o2 <= s2.col + s2.colCount - 1;
        }
        function O(t3, n3, e3, i3, r2, o2) {
          var a2 = t3.Ut, u2 = t3.getText(n3, e3, o2), s2 = t3.getText(i3, r2, o2), c2 = "[object Object]", f2 = "" === u2 && "" === s2 && !t3.NMi, l2 = u2 === c2 && s2 === c2;
          return !f2 && !l2 && (u2 === s2 && (!a2.findSpan(n3, e3, o2) && !a2.findSpan(i3, r2, o2)));
        }
        function E(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2 = N(t3, n3, e3, r2), d2 = h2.cache, p2 = h2.spans, m2 = e3.row, b2 = e3.row + e3.rowCount - 1, y2 = e3.col, w2 = e3.col + e3.colCount - 1;
          for (o2 = m2; o2 <= b2; o2++) if (t3.getRowVisible(o2, r2) && !(t3.getRowHeight(o2, r2) <= 0)) {
            for (a2 = y2; a2 <= w2; a2++) if (t3.getColumnVisible(a2, r2) && !(t3.getColumnWidth(a2, r2) <= 0)) {
              if ((u2 = t3.O5(a2, r2, true)) === g || u2 > w2) break;
              O(t3, o2, a2, o2, u2, r2) && (s2 = d2[M(o2, a2, r2)], c2 = d2[M(o2, u2, r2)], s2 && c2 ? s2.row === o2 && c2.row === o2 && s2.rowCount === c2.rowCount && (s2.colCount += u2 - a2, R(p2, c2), L(d2, c2, s2)) : s2 ? 1 === s2.rowCount && (s2.colCount += u2 - a2, L(d2, new i2.Range(o2, u2, 1, 1), s2)) : c2 ? 1 === c2.rowCount && (c2.col = a2, c2.colCount += u2 - a2, L(d2, new i2.Range(o2, a2, 1, 1), c2)) : (f2 = new i2.Range(o2, a2, 1, u2 - a2 + 1), l2 = new v(f2, r2), p2.push(l2), L(d2, f2, l2)));
            }
          }
          return { cache: d2, spans: p2 };
        }
        function R(t3, n3) {
          var e3, i3;
          for (e3 = 0; e3 < t3.length; e3++) if ((i3 = t3[e3]).sheetArea === n3.sheetArea && i3.equals(n3)) {
            t3.splice(e3, 1);
            break;
          }
        }
        function L(t3, n3, e3) {
          var i3, r2, o2 = e3.sheetArea;
          for (i3 = 0; i3 < n3.rowCount; i3++) for (r2 = 0; r2 < n3.colCount; r2++) t3[M(n3.row + i3, n3.col + r2, o2)] = e3;
        }
        function F(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2 = D(t3, n3, e3, r2), d2 = h2.cache, p2 = h2.spans, m2 = e3.row, b2 = e3.row + e3.rowCount - 1, y2 = e3.col, w2 = e3.col + e3.colCount - 1;
          for (o2 = y2; o2 <= w2; o2++) if (t3.getColumnVisible(o2, r2) && !(t3.getColumnWidth(o2, r2) <= 0)) {
            for (a2 = m2; a2 <= b2; a2++) if (t3.getRowVisible(a2, r2) && !(t3.getRowHeight(a2, r2) <= 0)) {
              if ((u2 = t3.j5(a2, r2, true)) === g || u2 > b2) break;
              O(t3, a2, o2, u2, o2, r2) && (s2 = d2[M(a2, o2, r2)], c2 = d2[M(u2, o2, r2)], s2 && c2 ? s2.col === o2 && c2.col === o2 && s2.colCount === c2.colCount && (s2.rowCount += u2 - a2, R(p2, c2), L(d2, c2, s2)) : s2 ? 1 === s2.colCount && (s2.rowCount += u2 - a2, L(d2, new i2.Range(u2, o2, 1, 1), s2)) : c2 ? 1 === c2.colCount && (c2.row = a2, c2.rowCount += u2 - a2, L(d2, new i2.Range(a2, o2, 1, 1), c2)) : (f2 = new i2.Range(a2, o2, u2 - a2 + 1, 1), l2 = new v(f2, r2), p2.push(l2), L(d2, f2, l2)));
            }
          }
          return { cache: d2, spans: p2 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SelectionMode = n2.AutoMergeDirection = n2.AutoMergeMode = n2.SR = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/autoMerge/autoMerge.res.en.js"), n2.SR = { en: o }, a = i2.util.xr, u = i2.range_parser.jc, s = i2.XFileConstants.Iu, c = new r.Common.ResourceManager(n2.SR, "AutoMerge"), f = c.getResource.bind(c), (function(t3) {
          t3[t3.free = 0] = "free", t3[t3.restricted = 1] = "restricted";
        })(l = n2.AutoMergeMode || (n2.AutoMergeMode = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.column = 1] = "column", t3[t3.row = 2] = "row", t3[t3.columnRow = 3] = "columnRow", t3[t3.rowColumn = 4] = "rowColumn";
        })(h = n2.AutoMergeDirection || (n2.AutoMergeDirection = {})), (function(t3) {
          t3[t3.source = 0] = "source", t3[t3.merged = 1] = "merged";
        })(d = n2.SelectionMode || (n2.SelectionMode = {})), v = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4.row, n4.col, n4.rowCount, n4.colCount) || this;
            return i3.sheetArea = e3, i3.isAutoMerge = true, i3;
          }
          return y(n3, t3), n3;
        })(i2.Range), p = void 0, g = null, m = (function() {
          function t3(t4) {
            this.Mf = t4, this.SP = [], this.cE = {}, this.TP = [];
          }
          return t3.prototype.L0 = function() {
            this.Mf = g;
          }, t3.prototype.add = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, l2, h2;
            for (void 0 === r2 && (r2 = i2.SheetArea.viewport), void 0 === o2 && (o2 = d.source), a2 = this.all(), u2 = this.Mf, s2 = 0, c2 = a2; s2 < c2.length; s2++) if ((l2 = c2[s2]).sheetArea === r2 && l2.range.intersect(t4.row, t4.col, t4.rowCount, t4.colCount)) throw new Error(f().Exp_RangeIsIntersected);
            h2 = u2.THr({ type: "addAutoMerge", range: t4, mode: e3, direction: n3, sheetArea: r2, selectionMode: o2 }), this._Qt(t4, n3, e3, r2, o2), u2.$Dr({ type: "addAutoMerge", range: t4, mode: e3, direction: n3, sheetArea: r2, selectionMode: o2 }, h2);
          }, t3.prototype._Qt = function(t4, n3, e3, r2, o2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport), void 0 === o2 && (o2 = d.source);
            var a2 = { range: t4, direction: n3, mode: e3, sheetArea: r2, selectionMode: o2 };
            this.SP.push(a2);
          }, t3.prototype.remove = function(t4, n3) {
            var e3, r2, o2;
            void 0 === n3 && (n3 = i2.SheetArea.viewport), e3 = this.Mf, (r2 = this.Hq(t4, n3)) && (o2 = e3.THr({ type: "removeAutoMerge", range: t4, sheetArea: n3 }), S(e3.Ut, t4, n3), this.SP.splice(r2.index, 1), e3.$Dr({ type: "removeAutoMerge", range: t4, sheetArea: n3 }, o2));
          }, t3.prototype.__r = function(t4, n3) {
            var e3, r2, o2, a2;
            for (void 0 === n3 && (n3 = i2.SheetArea.viewport), e3 = this.SP, r2 = this.Mf.Ut, o2 = 0; o2 < e3.length; o2++) if ((a2 = e3[o2]).sheetArea === n3 && a2.range.equals(t4)) return S(r2, t4, n3), e3.splice(o2, 1);
          }, t3.prototype.Hq = function(t4, n3) {
            var e3, r2, o2;
            for (void 0 === n3 && (n3 = i2.SheetArea.viewport), e3 = this.SP, r2 = 0; r2 < e3.length; r2++) if ((o2 = e3[r2]).sheetArea === n3 && o2.range.equals(t4)) return { range: o2, index: r2 };
          }, t3.prototype.clear = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this.SP, l2 = this.Mf, h2 = l2.Ut;
            for (n3 = 0; n3 < f2.length; n3++) e3 = f2[n3], t4 !== p && t4 !== e3.sheetArea || S(h2, e3.range, e3.sheetArea);
            if (t4 === p) this.SP = [], this.cE = {}, this.TP = [];
            else {
              for (n3 = (i3 = this.SP).length - 1; n3 >= 0; n3--) i3[n3].sheetArea === t4 && i3.splice(n3, 1);
              for (a2 in o2 = [], r2 = this.cE) r2[a2].sheetArea === t4 && o2.push(a2);
              for (u2 = 0, s2 = o2; u2 < s2.length; u2++) delete r2[a2 = s2[u2]];
              for (n3 = (c2 = this.TP).length - 1; n3 >= 0; n3--) c2[n3].sheetArea === t4 && c2.splice(n3, 1);
            }
            l2.$Dr({ type: "setSheetAreaAutoMerge", sheetArea: t4, rangeInfos: [] });
          }, t3.prototype.all = function() {
            return this.SP;
          }, t3.prototype.Sb = function(t4) {
            return this.SP.some((function(n3) {
              return n3.range.containsRange(t4);
            }));
          }, t3.prototype.AP = function(t4) {
            this.SP = t4, this.IP();
          }, t3.prototype.D7 = function(t4, n3, e3) {
            void 0 === e3 && (e3 = i2.SheetArea.viewport);
            var r2 = this.cE[M(t4, n3, e3)];
            return r2 ? (0, i2.Ec)(r2.row, r2.col, r2.rowCount, r2.colCount) : g;
          }, t3.prototype.ZF = function(t4) {
            return void 0 === t4 && (t4 = i2.SheetArea.viewport), this.TP.filter((function(n3) {
              return n3.sheetArea === t4;
            }));
          }, t3.prototype.IP = function(n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, v2, p2, m2;
            if (this.cE = {}, this.TP = [], o2 = this.SP, a2 = this.Mf, u2 = a2.Ut, s2 = r2 && a2.NMi) {
              if (!o2.some((function(t4) {
                return t4.sheetArea === i2.SheetArea.colHeader;
              }))) return;
              (c2 = new t3(g)).fromJSON(this.toJSON()), (o2 = c2.SP.filter((function(t4) {
                return t4.sheetArea === i2.SheetArea.colHeader;
              }))).forEach((function(t4) {
                t4.sheetArea = i2.SheetArea.viewport;
              }));
            }
            for (f2 = function(t4) {
              var r3, o3, s3, c3, f3, v3 = t4.direction, p3 = t4.mode, g2 = t4.sheetArea, m3 = e3 ? [a2.JS(t4.range, g2)] : A(a2, t4.range, g2);
              for (r3 = 0, o3 = m3.length; r3 < o3; r3++) s3 = m3[r3], ((c3 = t4.selectionMode === d.merged) || n3) && S(u2, s3, g2), f3 = void 0, v3 === h.column ? f3 = N(a2, p3, s3, g2) : v3 === h.row ? f3 = D(a2, p3, s3, g2) : v3 === h.columnRow ? f3 = E(a2, p3, s3, g2) : v3 === h.rowColumn && (f3 = F(a2, p3, s3, g2)), f3 && (i2.GC$.extend(l2.cE, f3.cache), l2.TP = l2.TP.concat(f3.spans), c3 && f3.spans.forEach((function(t5) {
                u2.addSpan(t5, g2);
              })));
            }, l2 = this, v2 = 0, p2 = o2; v2 < p2.length; v2++) f2(m2 = p2[v2]);
          }, t3.prototype.JO = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2;
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !(t4 < 0 || n3 <= 0)) for (o2 = 0, a2 = r2 = this.SP; o2 < a2.length; o2++) C((u2 = a2[o2]).sheetArea, e3, true) && (t4 <= (c2 = (s2 = u2.range).row) ? s2.row += n3 : c2 < t4 && t4 < c2 + s2.rowCount && (s2.rowCount += n3));
          }, t3.prototype.qO = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2;
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !(t4 < 0 || n3 <= 0)) for (o2 = 0, a2 = r2 = this.SP; o2 < a2.length; o2++) C((u2 = a2[o2]).sheetArea, e3, false) && (t4 <= (c2 = (s2 = u2.range).col) ? s2.col += n3 : c2 < t4 && t4 < c2 + s2.colCount && (s2.colCount += n3));
          }, t3.prototype.xP = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2;
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !(t4 < 0 || n3 <= 0)) {
              for (r2 = this.SP, o2 = [], a2 = 0; a2 < r2.length; a2++) C((u2 = r2[a2]).sheetArea, e3, true) && (s2 = u2.range, (0, i2.ukr)(s2, t4, n3), 0 === s2.rowCount && o2.push(a2));
              for (c2 = o2.length - 1; c2 >= 0; c2--) r2.splice(o2[c2], 1);
            }
          }, t3.prototype.NP = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2;
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !(t4 < 0 || n3 <= 0)) {
              for (r2 = this.SP, o2 = [], a2 = 0; a2 < r2.length; a2++) C((u2 = r2[a2]).sheetArea, e3, false) && (s2 = u2.range, (0, i2.akr)(s2, t4, n3), 0 === s2.colCount && o2.push(a2));
              for (c2 = o2.length - 1; c2 >= 0; c2--) r2.splice(o2[c2], 1);
            }
          }, t3.prototype.kP = function(t4, n3) {
            var e3, r2, o2;
            for (void 0 === n3 && (n3 = i2.SheetArea.viewport), r2 = (e3 = this.SP).length - 1; r2 >= 0; r2--) -1 !== (o2 = e3[r2].range).row && C(e3[r2].sheetArea, n3, true) && (o2.row > t4 - 1 ? e3.splice(r2, 1) : o2.row + o2.rowCount - 1 > t4 - 1 && (o2.rowCount = t4 - 1 - o2.row + 1));
          }, t3.prototype.DP = function(t4, n3) {
            var e3, r2, o2;
            for (void 0 === n3 && (n3 = i2.SheetArea.viewport), r2 = (e3 = this.SP).length - 1; r2 >= 0; r2--) -1 !== (o2 = e3[r2].range).col && C(e3[r2].sheetArea, n3, false) && (o2.col > t4 - 1 ? e3.splice(r2, 1) : o2.col + o2.colCount - 1 > t4 - 1 && (o2.colCount = t4 - 1 - o2.col + 1));
          }, t3.prototype.toJSON = function() {
            return this.SP.map((function(t4) {
              var n3 = t4.range;
              return { range: { row: n3.row, col: n3.col, rowCount: n3.rowCount, colCount: n3.colCount }, direction: t4.direction, mode: t4.mode, sheetArea: t4.sheetArea, selectionMode: t4.selectionMode };
            }));
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, r2, o2, a2, u2;
            if (t4) for (n3 = this.SP, e3 = 0, r2 = t4; e3 < r2.length; e3++) a2 = (o2 = r2[e3]).range, (u2 = o2.selectionMode) === p && (u2 = d.source), n3.push({ range: (0, i2.Ec)(a2.row, a2.col, a2.rowCount, a2.colCount), direction: o2.direction, mode: o2.mode, sheetArea: o2.sheetArea, selectionMode: u2 });
          }, t3;
        })(), i2.GC$.extend(i2.Y8.prototype, { _P: function(t3) {
          var n3, e3 = this, r2 = e3.G8;
          !r2 || !t3 && r2.originalAutoMerge || (n3 = e3.Cb.all().map((function(t4) {
            var n4 = t4.range;
            return { range: (0, i2.Ec)(n4.row, n4.col, n4.rowCount, n4.colCount), direction: t4.direction, mode: t4.mode, sheetArea: t4.sheetArea, selectionMode: t4.selectionMode };
          })), t3 ? r2.currentAutoMerge = n3 : r2.originalAutoMerge = n3);
        }, EP: function(t3) {
          t3 && this.Cb.AP(t3);
        }, jP: function(t3, n3, e3) {
          this._P(), this.Cb.JO(t3, n3, e3), this._P(true);
        }, OP: function(t3, n3, e3) {
          this._P(), this.Cb.xP(t3, n3, e3), this._P(true);
        }, RP: function(t3, n3, e3) {
          this._P(), this.Cb.qO(t3, n3, e3), this._P(true);
        }, BP: function(t3, n3, e3) {
          this._P(), this.Cb.NP(t3, n3, e3), this._P(true);
        }, LP: function(t3, n3) {
          this._P(), this.Cb.kP(t3, n3), this._P(true);
        }, FP: function(t3, n3) {
          this._P(), this.Cb.DP(t3, n3), this._P(true);
        } }), b = "autoMerge", i2.Y8.ch(b, { init: function() {
          var t3 = this, n3 = t3.Mf;
          t3.Cb = new m(n3);
        }, applyChanges: function(t3) {
          var n3, e3 = t3.changes, i3 = t3.isUndo;
          e3 && (n3 = i3 ? e3.originalAutoMerge : e3.currentAutoMerge) && this.EP(n3);
        }, undo: function(t3) {
          var n3 = t3.originalAutoMerge;
          n3 && this.EP(n3);
        }, dispose: function(t3) {
          var n3 = this, e3;
          false !== (t3 && t3.clearCache) && n3.Cb && (n3.Cb.L0(), n3.Cb = g);
        } }), i2.Worksheet.ch(b, { init: function() {
          var t3 = this, n3 = t3.Cb = t3.Ut.Cb;
          t3.unbind(i2.Events.TopRowChanged + "." + b), t3.unbind(i2.Events.LeftColumnChanged + "." + b), t3.bind(i2.Events.TopRowChanged + "." + b, (function() {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2 = n3.all();
            if (l2.length > 0) for (e3 = t3.frozenColumnCount(), r2 = t3.getColumnCount() - t3.frozenTrailingColumnCount() - 1, o2 = 0, a2 = l2; o2 < a2.length; o2++) s2 = (u2 = a2[o2]).sheetArea, c2 = u2.range, s2 === i2.SheetArea.viewport ? ((-1 === c2.col || c2.col < e3) && t3.repaint(t3.getRangeRect(1, 0, c2)), (-1 === c2.col || c2.col <= r2 && c2.col + c2.colCount >= e3) && t3.repaint(t3.getRangeRect(1, 1, c2)), (-1 === c2.col || c2.col + c2.colCount > r2) && t3.repaint(t3.getRangeRect(1, 2, c2))) : s2 === i2.SheetArea.rowHeader && (f2 = t3.Fi(), t3.repaint(f2.B1(1)));
          })), t3.bind(i2.Events.LeftColumnChanged + "." + b, (function() {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2 = n3.all();
            if (l2.length > 0) for (e3 = t3.frozenRowCount(), r2 = t3.getRowCount() - t3.frozenTrailingRowCount() - 1, o2 = 0, a2 = l2; o2 < a2.length; o2++) s2 = (u2 = a2[o2]).sheetArea, c2 = u2.range, s2 === i2.SheetArea.viewport ? ((-1 === c2.row || c2.row < e3) && t3.repaint(t3.getRangeRect(0, 1, c2)), (-1 === c2.row || c2.row <= r2 && c2.row + c2.rowCount >= e3) && t3.repaint(t3.getRangeRect(1, 1, c2)), (-1 === c2.row || c2.row + c2.rowCount > r2) && t3.repaint(t3.getRangeRect(2, 1, c2))) : s2 === i2.SheetArea.colHeader && (f2 = t3.Fi(), t3.repaint(f2.L1(1)));
          }));
        }, dispose: function(t3) {
          false !== t3.clearCache && (this.Cb = g, this.unbind(i2.Events.TopRowChanged + "." + b), this.unbind(i2.Events.LeftColumnChanged + "." + b));
        }, onLayoutChanged: function(t3) {
          var n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = t3.sheetArea, u2 = this.Ut;
          "addRows" === n3 ? u2.jP(e3, i3, a2) : "deleteRows" === n3 ? u2.OP(e3, i3, a2) : "addColumns" === n3 ? u2.RP(r2, o2, a2) : "deleteColumns" === n3 ? u2.BP(r2, o2, a2) : "setRowCount" === n3 ? u2.LP(i3, a2) : "setColumnCount" === n3 && u2.FP(o2, a2), "invalidateLayout" === n3 && this.My <= 0 && this.Cb.IP();
        }, toJson: function(t3, n3) {
          var e3, i3 = n3 && n3.ignoreStyle;
          i3 || (e3 = this.Cb, t3.autoMergeRangeInfos = e3.toJSON(), n3 && n3.includeAutoMergedCells && (e3.IP(!n3.gp, true), k(e3, t3)));
        }, fromJson: function(t3, n3, e3) {
          var i3;
          e3 && e3.ignoreStyle || this.Cb.fromJSON(t3.autoMergeRangeInfos);
        }, wh: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = e3 && false === e3.includeStyles;
          u2 || (t3.lossless.autoMerge = {}, i3 = this.Cb, t3.lossless.autoMerge.autoMergeRangeInfos = i3.toJSON(), r2 = i3.Mf.NMi, e3 && e3.includeAutoMergedCells && (o2 = {}, a2 = r2 && 0 === e3.fileType, i3.IP(!e3.gp, true, a2), k(i3, o2, a2), I(o2, t3)));
        }, yh: function(t3, n3, e3) {
          var i3;
          !(e3 && false === e3.includeStyles) && t3.lossless && t3.lossless.autoMerge && this.Cb.fromJSON(t3.lossless.autoMerge.autoMergeRangeInfos);
        } }), i2.Workbook.ch(b, { onCultureChanged: function() {
          f();
        } }), i2.GC$.extend(i2.Worksheet.prototype, { autoMerge: function(t3, n3, e3, r2, o2) {
          void 0 === n3 && (n3 = h.column), void 0 === e3 && (e3 = l.free), void 0 === r2 && (r2 = i2.SheetArea.viewport), void 0 === o2 && (o2 = d.source);
          var a2 = this.Cb;
          if (0 === arguments.length) return a2.all();
          t3 && (this.Ut._P(), n3 === h.none ? a2.remove(t3, r2) : a2.add(t3, n3, e3, r2, o2), this.zw());
        } });
      }, "./dist/plugins/autoMerge/autoMerge.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_RangeIsIntersected = void 0, n2.Exp_RangeIsIntersected = "The range should not intersect with exsit ranges.";
      }, "./dist/plugins/cellState/cellStateManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v = this && this.nJr || function() {
          return v = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, v.apply(this, arguments);
        }, p = this && this.sJr || function(t3, n3) {
          var e3, i3, r2 = {};
          for (e3 in t3) Object.prototype.hasOwnProperty.call(t3, e3) && n3.indexOf(e3) < 0 && (r2[e3] = t3[e3]);
          if (null != t3 && "function" == typeof Object.getOwnPropertySymbols) for (i3 = 0, e3 = Object.getOwnPropertySymbols(t3); i3 < e3.length; i3++) n3.indexOf(e3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(t3, e3[i3]) && (r2[e3[i3]] = t3[e3[i3]]);
          return r2;
        };
        function g(t3) {
          var n3 = t3.row, e3 = t3.col, i3 = t3.rowCount, o2 = t3.colCount;
          return new r.Range(n3, e3, i3, o2);
        }
        function m(t3, n3, e3) {
          var i3 = [], r2 = t3.getRowCount(3), o2 = t3.getColumnCount(3);
          return n3.forEach((function(n4) {
            i3 = i3.concat(w(t3, n4.style, n4.range, e3, r2, o2));
          })), i3;
        }
        function b(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = [];
          for (e3 = 0, i3 = t3.length; e3 < i3; e3++) r2 = (n3 = t3[e3]).style, f2 = { range: { row: a2 = (o2 = n3.range).row, col: u2 = o2.col, colCount: s2 = o2.colCount, rowCount: c2 = o2.rowCount }, style: r2.toJSON() }, l2.push(f2);
          return l2;
        }
        function y(t3, n3, e3, i3) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
          for (u2 = 0, s2 = n3.length; u2 < s2; u2++) f2 = (c2 = (a2 = n3[u2]).range).row, l2 = c2.col, h2 = c2.rowCount, d2 = c2.colCount, v2 = a2.style, (p2 = new r.Style()).fromJSON(v2, e3, i3), o2 = { style: p2, range: new r.Range(f2, l2, h2, d2) }, t3.push(o2);
        }
        function w(t3, n3, e3, i3, r2, o2) {
          var a2;
          return t3.BR(e3, i3, r2, o2).map((function(t4) {
            return { range: t4, style: n3 };
          }));
        }
        function M(t3, n3, e3) {
          return e3.contains(t3, n3);
        }
        function C(t3) {
          var n3 = t3.range, e3 = t3.style;
          return n3.constructor.name === Object && ((n3 = new r.Range(0, 0, 1, 1)).fromJSON(t3.range), (e3 = new r.Style()).fromJSON(t3.style)), { range: n3, style: e3 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CellStateManager = void 0, i2 = e2("Common"), r = e2("Core"), o = i2.Common.lt.ht, a = r.GC$.extend, u = void 0, s = "cellState", c = [r.CellStatesType.readonly, r.CellStatesType.invalid, r.CellStatesType.dirty, r.CellStatesType.invalidFormula, r.CellStatesType.selected, r.CellStatesType.active, r.CellStatesType.hover, r.CellStatesType.edit], f = (function() {
          function t3(t4, n3) {
            this.Mf = t4, this.Kh = n3, this.cE = [];
            for (var e3 = 1; e3 <= 3; e3++) this.PP(e3);
          }
          return t3.prototype.PP = function(t4) {
            this.cE[t4] = [];
          }, t3.prototype.UP = function(t4) {
            return this.cE[t4];
          }, t3.prototype.HP = function(t4, n3) {
            var e3 = this.Mf.THr({ type: "setCellState", list: this.cE[n3], state: this.Kh });
            this.cE[n3] = t4, this.Mf.$Dr({ type: "setCellState", list: t4, sheetArea: n3, state: this.Kh }, e3);
          }, t3.prototype.zP = function(t4, n3) {
            var e3, i3, r2;
            for (e3 = 0, i3 = t4.length; e3 < i3; e3++) if ((r2 = t4[e3]).range.equals(n3)) return e3;
            return -1;
          }, t3.prototype.VP = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.UP(n3), a2 = r2.Mf, u2 = r2.Kh, s2 = this.zP(o2, t4);
            s2 > -1 && (e3 = o2[s2], r2.YP(s2, e3.range, e3.style, o2, n3), i3 = a2.THr({ type: "removeCellState", range: e3.range, style: e3.style, state: u2, index: s2 }), o2.splice(s2, 1), a2.$Dr({ type: "removeCellState", range: t4, sheetArea: n3, state: u2, index: s2 }, i3));
          }, t3.prototype.ZP = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.Mf, c2 = u2.UP(e3), f2 = u2.Kh, l2 = u2.zP(c2, t4);
            u2.WP({ index: l2, cache: c2, range: t4, style: n3, sheetArea: e3 }), i3 = c2[l2], r2 = -1 === l2 ? c2.length : l2, o2 = -1 === l2 ? "addCellState" : "updateCellState", a2 = s2.THr({ type: o2, range: t4, style: null == i3 ? void 0 : i3.style, state: f2, index: r2 }), u2._Qt(t4, n3, e3, l2), s2.$Dr({ type: o2, range: t4, style: n3, sheetArea: e3, state: f2, index: r2 }, a2);
          }, t3.prototype._Qt = function(t4, n3, e3, i3) {
            var r2 = { range: t4, style: n3 }, o2 = this.UP(e3);
            -1 === i3 ? o2.push(r2) : o2[i3] = r2;
          }, t3.prototype.QP = function(t4) {
            var n3 = this.UP(t4), e3 = this.Kh;
            return n3.map((function(t5) {
              var n4 = t5.range, i3 = t5.style;
              return { range: g(n4), style: i3.clone(), state: e3 };
            }));
          }, t3.prototype.ML = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this.UP(e3), u2 = [];
            for (r2 = a2.length, o2 = 0; o2 < r2; o2++) M(t4, n3, (i3 = a2[o2]).range) && u2.push(i3);
            return u2.length > 0 ? u2 : null;
          }, t3.prototype.KP = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.UP(e3);
            if (u2 && u2.length > 0) {
              for (i3 = 0, r2 = u2; i3 < r2.length; i3++) if (M(t4, n3, o2 = r2[i3].range)) return true;
            }
            return false;
          }, t3.prototype.JP = function(t4, n3, e3, i3, a2, u2) {
            var s2, c2, f2, l2, h2 = this, d2 = h2.Mf, v2 = h2.UP(a2);
            if (v2 && 0 === v2.length) return false;
            if (h2.Kh === r.CellStatesType.dirty && (o(i3) || (i3 & h2.Kh) > 0)) return d2.isReportWorkSheet ? !!d2.isDirtyCell(n3, e3) : d2.XP(n3, e3, a2);
            if (h2.Kh === r.CellStatesType.selected && (o(i3) || (i3 & h2.Kh) > 0)) {
              for (c2 = 0, f2 = s2 = h2.Mf.getSelections(); c2 < f2.length; c2++) if (M(n3, e3, l2 = f2[c2])) return true;
              return false;
            }
            return h2.Kh === r.CellStatesType.invalid ? !(!d2.isValid || !(o(i3) || (i3 & h2.Kh) > 0)) && !d2.isValid(n3, e3, d2.getValue(n3, e3, a2)) : h2.Kh === r.CellStatesType.readonly ? u2 && h2.Mf.isActualProtected() : (h2.Kh & t4) > 0;
          }, t3.prototype.qP = function(t4, n3) {
            var e3 = this, i3 = this.UP(n3);
            this.$P({ cache: i3, sheetArea: n3, collection: e3, state: e3.Kh, range: t4 }), this.HP(m(this.Mf, i3, t4), n3);
          }, t3.prototype.toJSON = function() {
            var t4, n3, e3 = this, i3 = {};
            for (n3 = 0; n3 <= 3; n3++) (t4 = e3.UP(n3)) && t4.length > 0 && (i3[n3] = b(t4));
            return i3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this;
            for (a2.cE = [], r2 = 1; r2 <= 3; r2++) a2.PP(r2);
            for (o2 in t4) t4.hasOwnProperty(o2) && y(i3 = a2.UP(o2), t4[o2], n3, e3);
          }, t3.prototype.tG = function(t4) {
            var n3 = p(t4, []), e3 = this, i3 = e3.Mf.Ut;
            i3.nG(v({ type: "rangeChange", state: e3.Kh }, n3));
          }, t3.prototype.WP = function(t4) {
            var n3 = t4.index, e3 = t4.cache, i3 = t4.range, r2 = t4.style, o2 = t4.sheetArea, a2 = this, u2 = a2.Mf.Ut;
            -1 !== n3 && (r2 = e3[n3].style), u2.nG({ type: "add", index: n3, cache: e3, state: a2.Kh, range: i3, style: r2, sheetArea: o2 });
          }, t3.prototype.YP = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2;
            o2.Mf.Ut.nG({ type: "remove", index: t4, range: n3, style: e3, cache: i3, state: o2.Kh, sheetArea: r2 });
          }, t3.prototype.$P = function(t4) {
            var n3 = p(t4, []), e3 = this, i3 = e3.Mf.Ut;
            i3.nG(v({ type: "clear", state: e3.Kh }, n3));
          }, t3.prototype.JO = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            for (void 0 === e3 && (e3 = true), i3 = this, o2 = function(o3) {
              (r2 = i3.UP(o3)) && r2.length > 0 && r2.forEach((function(a3, u2) {
                var s2 = a3.range, c2 = s2.row, f2 = s2.rowCount;
                t4 <= c2 ? (s2.row = c2 + n3, e3 && i3.tG({ cache: r2, range: s2, row: c2, index: u2, sheetArea: o3 })) : c2 < t4 && t4 < c2 + f2 && (s2.rowCount = s2.rowCount + n3, e3 && i3.tG({ cache: r2, range: s2, rowCount: f2, index: u2, sheetArea: o3 }));
              }));
            }, a2 = 0; a2 <= 3; a2++) o2(a2);
          }, t3.prototype.xP = function(t4, n3, e3) {
            var i3, o2, a2, u2;
            for (void 0 === e3 && (e3 = true), i3 = this, a2 = function(e4) {
              var a3, u3;
              if ((o2 = i3.UP(e4)) && o2.length > 0) for (a3 = [], o2.forEach((function(u4, s2) {
                var c2 = u4.range, f2 = c2.row, l2 = c2.rowCount;
                (0, r.ukr)(c2, t4, n3), i3.tG({ cache: o2, range: c2, row: f2, rowCount: l2, index: s2, sheetArea: e4 }), c2.rowCount <= 0 && -1 !== c2.row && a3.push(c2);
              })), u3 = a3.length - 1; u3 >= 0; u3--) a3.splice(a3[u3], 1);
            }, u2 = 0; u2 <= 3; u2++) a2(u2);
          }, t3.prototype.qO = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            for (void 0 === e3 && (e3 = true), i3 = this, o2 = function(o3) {
              (r2 = i3.UP(o3)) && r2.length > 0 && r2.forEach((function(a3, u2) {
                var s2 = a3.range, c2 = s2.col, f2 = s2.colCount;
                t4 <= c2 ? (s2.col = c2 + n3, e3 && i3.tG({ cache: r2, range: s2, col: c2, index: u2, sheetArea: o3 })) : c2 < t4 && t4 < c2 + s2.colCount && (s2.colCount = f2 + n3, e3 && i3.tG({ cache: r2, range: s2, colCount: f2, index: u2, sheetArea: o3 }));
              }));
            }, a2 = 0; a2 <= 3; a2++) o2(a2);
          }, t3.prototype.NP = function(t4, n3, e3) {
            var i3, o2, a2, u2;
            for (void 0 === e3 && (e3 = true), i3 = this, a2 = function(e4) {
              var a3, u3;
              if ((o2 = i3.UP(e4)) && o2.length > 0) for (a3 = [], o2.forEach((function(u4, s2) {
                var c2 = u4.range, f2 = c2.col, l2 = c2.colCount;
                (0, r.akr)(c2, t4, n3), i3.tG({ cache: o2, range: c2, col: f2, colCount: l2, index: s2, sheetArea: e4 }), c2.colCount <= 0 && -1 !== c2.col && a3.push(c2);
              })), u3 = a3.length - 1; u3 >= 0; u3--) a3.splice(a3[u3], 1);
            }, u2 = 0; u2 <= 3; u2++) a2(u2);
          }, t3.prototype.eG = function() {
            this.cE = [], this.Mf = null;
          }, t3;
        })(), l = (function() {
          function t3(t4) {
            this.Mf = t4, this.GP = {};
          }
          return t3.prototype.getCollection = function(t4, n3) {
            var e3 = this;
            return !e3.GP[t4] && n3 && (e3.GP[t4] = new f(e3.Mf, t4)), e3.GP[t4];
          }, t3.prototype.hasIntersectInSelectionState = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2, c2 = this, f2 = c2.GP[r.CellStatesType.selected];
            if (f2 && (o2 = f2.UP(r.SheetArea.viewport)) && o2.length > 0) {
              for (a2 = 0, u2 = o2; a2 < u2.length; a2++) if ((s2 = u2[a2].range).intersect(t4, n3, e3, i3)) return true;
            }
            return false;
          }, t3.prototype.getState = function(t4, n3, e3) {
            var i3;
            return this.Mf.Ut.W_(e3).getCellState(t4, n3) || 0;
          }, t3.prototype.remove = function(t4, n3, e3) {
            var i3;
            void 0 === e3 && (e3 = r.SheetArea.viewport), this.GP[n3].VP(t4, e3);
          }, t3.prototype.all = function(t4, n3) {
            var e3, i3;
            if (void 0 === n3 && (n3 = r.SheetArea.viewport), e3 = [], o(t4)) for (i3 in this.GP) this.GP.hasOwnProperty(i3) && (e3 = e3.concat(this.GP[i3].QP(n3)));
            else e3 = this.GP[t4].QP(n3);
            return e3;
          }, t3.prototype.add = function(t4, n3, e3, i3) {
            var a2, s2, c2;
            if (r.CellStatesType[n3] === u) throw new Error("Unmatched Cell State Type");
            o(i3) && (i3 = 3), (a2 = this.getCollection(n3, true)).ZP(g(t4), e3, i3), s2 = this.Mf, i3 === r.SheetArea.viewport ? s2.repaint(s2.j1(t4)) : (c2 = s2.Fi(), i3 === r.SheetArea.colHeader && s2.repaint(new r.Rect(c2.Py, c2.LA, s2.Gy(c2), c2.qC)), i3 === r.SheetArea.rowHeader && s2.repaint(new r.Rect(c2.BA, c2.Cy, c2.XC, s2.Sy(c2))));
          }, t3.prototype.clear = function(t4, n3) {
            this.iG(t4, n3);
          }, t3.prototype.iG = function(t4, n3) {
            for (var e3 in this.GP) this.GP.hasOwnProperty(e3) && this.GP[e3].qP(t4, n3);
          }, t3.prototype.rG = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this, u2 = a2.Mf, s2 = a2.GP[t4];
            s2 && s2.KP(n3, e3, i3) && -1 !== r2 && -1 !== o2 && u2.repaint(u2.XL(u2, n3, e3, r2, o2));
          }, t3.prototype.getStyle = function(t4, n3, e3, i3, a2) {
            var u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2;
            if (o(e3) && (e3 = 3), u2 = new r.Style(), s2 = [], p2 = (v2 = (d2 = (h2 = this).Mf).Ut).getSpan(t4, n3, e3), o(p2) || (t4 = p2.row, n3 = p2.col), g2 = o(i3) ? h2.getState(t4, n3, e3) : h2.getState(t4, n3, e3) & i3, !o(g2)) {
              for (m2 = 0, b2 = c; m2 < b2.length; m2++) y2 = b2[m2], (l2 = h2.GP[y2]) && l2.JP(g2, t4, n3, i3, e3, a2) && (f2 = l2.ML(t4, n3, e3)) && f2.length > 0 && (s2 = s2.concat(f2));
              if (s2.length > 0) {
                for (M2 = (w2 = s2.length) - 1; M2 >= 0; M2--) u2.h5(s2[M2].style);
                return u2;
              }
            }
            return null;
          }, t3.prototype.destroy = function() {
            for (var t4 in this.GP) this.GP.hasOwnProperty(t4) && this.GP[t4].eG();
            delete this.GP, delete this.Mf;
          }, t3.prototype.reset = function(t4) {
            this.GP = {}, this.Mf = t4;
          }, t3.prototype.toJSON = function() {
            var t4, n3, e3 = {};
            for (n3 in this.GP) this.GP.hasOwnProperty(n3) && (t4 = this.GP[n3], e3[n3] = t4.toJSON());
            return e3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this;
            for (r2 in t4) t4.hasOwnProperty(r2) && (o2 = parseInt(r2, 10), (i3 = a2.getCollection(o2, true)).fromJSON(t4[o2], n3, e3));
          }, t3.prototype.JO = function(t4, n3, e3) {
            for (var i3 in void 0 === e3 && (e3 = true), this.GP) this.GP.hasOwnProperty(i3) && this.GP[i3].JO(t4, n3, e3);
          }, t3.prototype.xP = function(t4, n3, e3) {
            for (var i3 in void 0 === e3 && (e3 = true), this.GP) this.GP.hasOwnProperty(i3) && this.GP[i3].xP(t4, n3, e3);
          }, t3.prototype.qO = function(t4, n3, e3) {
            for (var i3 in void 0 === e3 && (e3 = true), this.GP) this.GP.hasOwnProperty(i3) && this.GP[i3].qO(t4, n3, e3);
          }, t3.prototype.NP = function(t4, n3, e3) {
            for (var i3 in void 0 === e3 && (e3 = true), this.GP) this.GP.hasOwnProperty(i3) && this.GP[i3].NP(t4, n3, e3);
          }, t3;
        })(), n2.CellStateManager = l, h = { init: function() {
          this.cellStates = new l(this);
        }, dispose: function(t3) {
          var n3 = this;
          n3.cellStates && false !== t3.clearCache && (n3.cellStates.destroy(), n3.cellStates = null);
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, a2 = t3.changeType, u2 = t3.row, s2 = t3.rowCount, c2 = t3.col, f2 = t3.colCount, l2 = t3.sheetArea;
          if (o(l2) || l2 === r.SheetArea.viewport) {
            if (n3 = this.cellStates, "addRows" === a2) n3.JO(u2, s2);
            else if ("deleteRows" === a2) n3.xP(u2, s2);
            else if ("addColumns" === a2) n3.qO(c2, f2);
            else if ("deleteColumns" === a2) n3.NP(c2, f2);
            else if ("clear" === a2 && (3 !== l2 || 2 & ~t3.type || n3.iG(new r.Range(u2, c2, s2, f2), l2), 3 === l2 && !(1 & ~t3.type))) for (e3 = u2; e3 < u2 + s2; e3++) for (i3 = c2; i3 < c2 + f2; i3++) this.Ut.W_(l2).setCellState(e3, i3, r.CellStatesType.invalid, false);
          }
        }, onLayoutChangedFromOp: function(t3) {
          var n3, e3, i3, r2, a2, u2;
          (o(t3.sheetArea) || 3 === t3.sheetArea) && (n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, a2 = t3.colCount, u2 = this.cellStates, "addRows" === n3 ? u2.JO(e3, i3, false) : "deleteRows" === n3 ? u2.xP(e3, i3, false) : "addColumns" === n3 ? u2.qO(r2, a2, false) : "deleteColumns" === n3 && u2.NP(r2, a2, false));
        }, toJson: function(t3, n3) {
          (!n3 || n3 && !n3.ignoreStyle) && (t3.cellStates = this.cellStates.toJSON());
        }, fromJson: function(t3, n3, e3) {
          var i3 = this, r2 = e3 && !e3.ignoreStyle || !e3;
          t3 && t3.cellStates && r2 && (i3.cellStates = new l(i3), i3.cellStates.fromJSON(t3.cellStates, n3, e3));
        }, wh: function(t3, n3, e3) {
          var i3;
          e3 && false === e3.includeStyles || (t3.lossless.cellStates = this.cellStates.toJSON());
        }, yh: function(t3, n3, e3) {
          var i3;
          !(e3 && false === e3.includeStyles) && t3.lossless && t3.lossless.cellStates && this.cellStates.fromJSON(t3.lossless.cellStates, u, e3);
        } }, d = { k_: function(t3, n3, e3, i3, r2, o2) {
          i3 && i3 <= 3 && i3 > 0 && this.cellStates.rG(t3, n3, e3, i3, r2, o2);
        }, XP: function(t3, n3, e3) {
          var i3, r2 = this.Ut.Fj(e3);
          return r2 && r2[t3] && r2[t3][n3];
        } }, a(r.Worksheet.prototype, d), r.Worksheet.ch(s, h), a(r.Y8.prototype, { nG: function(t3) {
          var n3, e3 = this, i3 = e3.G8;
          i3 && (n3 = void 0, (n3 = i3.originalCellStates ? i3.originalCellStates : []).push(t3), i3.originalCellStates = n3);
        }, oG: function(t3, n3) {
          var e3 = this;
          t3 && t3.length > 0 && t3.forEach((function(t4) {
            var i3 = t4.type, r2 = p(t4, ["type"]);
            switch (i3) {
              case "rangeChange":
                e3.aG(v({}, r2), n3);
                break;
              case "add":
                e3.uG(v({}, r2), n3);
                break;
              case "clear":
                e3.sG(v({}, r2), n3);
                break;
              case "remove":
                e3.cG(v({}, r2), n3);
            }
          }));
        }, sG: function(t3, n3) {
          var e3 = t3.cache, i3 = t3.sheetArea, r2 = t3.collection, o2 = t3.state, a2 = t3.range;
          "Object" === r2.constructor.name && (r2 = this.Mf.cellStates.getCollection(o2, true), e3 = e3.map((function(t4) {
            return C(t4);
          }))), n3 ? r2.HP(m(this.Mf, e3, a2), i3) : r2.HP(e3, i3);
        }, cG: function(t3, n3) {
          var e3, i3 = t3.cache, r2 = t3.range, o2 = t3.sheetArea, a2 = t3.state, u2 = t3.style, s2 = t3.index;
          "Object" === r2.constructor.name && (i3 = this.Mf.cellStates.getCollection(a2, true).UP(o2)), n3 ? i3.splice(s2, 1) : (e3 = C({ range: r2, style: u2 }), i3.splice(s2, 0, e3));
        }, uG: function(t3, n3) {
          var e3, i3, r2 = t3.cache, o2 = t3.range, a2 = t3.sheetArea, u2 = t3.state, s2 = t3.style, c2 = t3.index;
          "Object" === o2.constructor.name && (r2 = this.Mf.cellStates.getCollection(u2, true).UP(a2)), e3 = C({ range: o2, style: s2 }), n3 ? -1 === c2 ? r2.push(e3) : r2[c2] = e3 : -1 === c2 ? (r2.forEach((function(t4, n4) {
            var r3 = t4.range, o3 = t4.style;
            r3 === e3.range && o3 === e3.style && (i3 = n4);
          })), r2.splice(i3, 1)) : r2[c2].style = e3.style;
        }, aG: function(t3, n3) {
          var e3, i3 = t3.cache, o2 = t3.range, a2 = t3.state, s2 = t3.sheetArea, c2 = t3.index, f2 = t3.row, l2 = t3.col, h2 = t3.rowCount, d2 = t3.colCount;
          "Object" === o2.constructor.name && (i3 = this.Mf.cellStates.getCollection(a2, true).UP(s2), (e3 = new r.Range(0, 0, 0, 0)).fromJSON(o2), o2 = e3), n3 ? i3[c2].range = o2 : (o2 = i3[c2].range, f2 !== u && (o2.row = f2), l2 !== u && (o2.col = l2), h2 !== u && (o2.rowCount = h2), d2 !== u && (o2.colCount = d2));
        } }), r.Y8.ch(s, { applyChanges: function(t3) {
          var n3 = t3.changes, e3 = t3.isUndo, i3 = n3 && n3.originalCellStates;
          i3 && this.oG(i3, !e3);
        }, undo: function(t3) {
          var n3 = t3.originalCellStates;
          n3 && this.oG(n3);
        } });
      }, "./dist/plugins/cellState/cellstate.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/cellState/cellStateManager.js"), n2), r(e2("./dist/plugins/cellState/stateManager.js"), n2);
      }, "./dist/plugins/cellState/stateManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3, n3) {
          if (n3) {
            var e3 = new l(t3);
            return e3.fromJSON(n3), e3;
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.lG = void 0, r = e2("Common"), o = e2("Core"), a = r.Common.lt.ht, u = r.Common.lt.q8, s = o.GC$.extend, c = "states", (i2 = {})[o.RowColumnStates.hover] = function(t3, n3, e3, i3) {
          var r2, a2, u2 = this, s2 = e3 ? t3 === u2.A_ : n3 === u2.I_;
          return !!s2 && (r2 = u2.zO(u2.A_, u2.I_, o.SheetArea.viewport), !!(a2 = i3 && i3.some((function(t4) {
            return !(!t4.contains(u2.A_, u2.I_) || !r2);
          }))));
        }, i2[o.RowColumnStates.active] = function(t3, n3, e3, i3) {
          var r2, o2 = this, a2 = e3 ? t3 === o2.ui : n3 === o2.ci;
          return !!a2 && !!(r2 = u(o2.ui) && u(o2.ci) && i3 && i3.some((function(t4) {
            return !!t4.contains(o2.ui, o2.ci);
          })));
        }, i2[o.RowColumnStates.selected] = function(t3, n3, e3, i3) {
          var r2, a2, u2, s2, c2, f2, l2, h2, d2, v, p, g, m, b = this, y = !this.parent || this.parent.options.hideSelection;
          if (y && !(r2 = o.hi.ai() === this)) return false;
          for (u2 = false, s2 = 0, c2 = a2 = b.getSelections(); s2 < c2.length; s2++) for (f2 = c2[s2], l2 = 0, h2 = i3; l2 < h2.length; l2++) d2 = h2[l2], f2.intersect(d2.row, d2.col, d2.rowCount, d2.colCount) && (v = -1 === f2.row ? 0 : f2.row, p = -1 === f2.rowCount ? b.getRowCount() : f2.rowCount, g = -1 === f2.col ? 0 : f2.col, m = -1 === f2.colCount ? b.getColumnCount() : f2.colCount, (e3 && t3 >= v && t3 < v + p || !e3 && n3 >= g && n3 < g + m) && (u2 = true));
          return u2;
        }, i2[4] = function(t3, n3, e3, i3) {
          return false;
        }, i2[o.RowColumnStates.edit] = function(t3, n3, e3, i3) {
          var r2, a2, s2, c2 = this, f2 = c2.ui, l2 = c2.ci, h2 = e3 ? t3 === f2 : n3 === l2;
          return !!h2 && (!!(a2 = ((r2 = c2.cellStates).getState(f2, l2, o.SheetArea.viewport) & o.RowColumnStates.edit) === o.RowColumnStates.edit) && !!(s2 = u(f2) && u(l2) && i3 && i3.some((function(t4) {
            return !!t4.contains(f2, l2);
          }))));
        }, i2[o.RowColumnStates.invalid] = function(t3, n3, e3, i3) {
          var r2, a2, u2, s2, c2, f2, l2, h2, d2, v, p = this, g = e3 ? p.hG(t3, -1) : p.hG(-1, n3);
          if (g && g.length > 0 && i3) {
            for (r2 = 0, a2 = i3; r2 < a2.length; r2++) if (u2 = a2[r2], e3) {
              for (s2 = -1 === u2.col ? 0 : u2.col, c2 = -1 === u2.colCount ? p.getColumnCount() : u2.colCount, f2 = s2; f2 < s2 + c2; f2++) if (!(l2 = p.isValid(t3, f2, p.getValue(t3, f2, o.SheetArea.viewport)))) return true;
            } else for (h2 = -1 === u2.row ? 0 : u2.row, d2 = -1 === u2.rowCount ? p.getRowCount() : u2.rowCount, v = h2; v < h2 + d2; v++) if (!(l2 = p.isValid(v, n3, p.getValue(v, n3, o.SheetArea.viewport)))) return true;
          }
          return false;
        }, i2[o.RowColumnStates.dirty] = function(t3, n3, e3, i3) {
          var r2, a2, u2, s2, c2, f2, l2, h2, d2, v, p, g, m, b = this;
          if (!i3 || 0 === i3.length) return false;
          for (r2 = b.Ut.Fj(), a2 = 0, u2 = i3; a2 < u2.length; a2++) for (c2 in s2 = u2[a2], r2) if (r2[c2]) {
            for (h2 in f2 = Number(c2), l2 = r2[c2]) if (l2[h2] && (d2 = Number(h2), v = -1 === s2.row ? 0 : s2.row, p = -1 === s2.rowCount ? this.getRowCount(o.SheetArea.viewport) : s2.rowCount, g = -1 === s2.col ? 0 : s2.col, m = -1 === s2.colCount ? this.getColumnCount(o.SheetArea.viewport) : s2.colCount, e3 && f2 === t3 && (d2 >= g && d2 < g + m || "n" === l2[h2]) || !e3 && d2 === n3 && (f2 >= v && f2 < v + p || "n" === l2[h2]))) return true;
          }
          return false;
        }, i2[o.RowColumnStates.inserted] = function(t3) {
          var n3, e3, i3, r2 = this.getInsertRows();
          for (n3 = 0, e3 = r2; n3 < e3.length; n3++) if ((i3 = e3[n3]).row === t3) return true;
        }, i2[256] = function(t3) {
          return false;
        }, i2[o.RowColumnStates.invalidFormula] = function(t3, n3, e3, i3) {
          var r2, a2, u2, s2, c2, f2 = this;
          if (!i3 || 0 === i3.length) return false;
          for (r2 = f2.cellStates, a2 = function(i4, a3, u3) {
            return !!((e3 ? t3 === a3 : n3 === u3) && r2.getState(a3, u3) & o.CellStatesType.invalidFormula);
          }, u2 = 0; u2 < i3.length; u2++) if (s2 = i3[u2], c2 = f2.findSpecialNonNullCellInRange(s2, a2)) return true;
          return false;
        }, f = i2, l = (function() {
          function t3(t4) {
            this.fG = {}, this.getStateMethods = {}, this.context = t4, s(this.getStateMethods, f);
          }
          return t3.prototype.enableState = function(t4, n3) {
            var e3 = this.fG;
            a(e3[t4]) && (e3[t4] = { row: false, column: false }), n3 ? e3[t4].row = true : e3[t4].column = true;
          }, t3.prototype.disableState = function(t4, n3) {
            var e3 = this.fG;
            a(e3[t4]) || (n3 ? e3[t4].row = false : e3[t4].column = false);
          }, t3.prototype.isEnable = function(t4, n3) {
            var e3 = this.fG;
            return !a(e3[t4]) && (n3 ? e3[t4].row : e3[t4].column);
          }, t3.prototype.getState = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this.context, u2 = this.getStateMethods[e3];
            if ("function" == typeof u2) return u2.call(a2, t4, n3, i3, r2, o2) ? e3 : 0;
          }, t3.prototype.destroy = function() {
            delete this.context, delete this.fG;
          }, t3.prototype.fromJSON = function(t4) {
            this.fG = s({}, t4);
          }, t3.prototype.toJSON = function() {
            return s({}, this.fG);
          }, t3;
        })(), n2.lG = l, h = { init: function() {
          this._1 = new l(this);
        }, dispose: function(t3) {
          var n3 = this;
          n3._1 && false !== t3.clearCache && (n3._1.destroy(), n3._1 = null);
        }, toJson: function(t3) {
          t3.states = this._1.toJSON();
        }, fromJson: function(t3) {
          var n3 = d(this, t3 && t3.states);
          n3 && (this._1 = n3);
        }, yh: function(t3) {
          var n3 = d(this, t3 && t3.lossless && t3.lossless.states);
          n3 && (this._1 = n3);
        }, wh: function(t3) {
          t3.lossless || (t3.lossless = {}), t3.lossless.states = this._1.toJSON();
        } }, o.Worksheet.ch(c, h);
      }, "./dist/plugins/celltype/actionUtils.js": function(t2, n2) {
        "use strict";
        function e2(t3, n3) {
          t3 && t3.suspendCalcService(n3);
        }
        function i2(t3, n3) {
          t3 && t3.resumeCalcService(n3);
        }
        function r(t3, n3) {
          var e3, i3 = t3._f(n3);
          return i3 || (e3 = t3.Ofe(n3)) && (i3 = e3.Mf), i3;
        }
        function o(t3, n3) {
          if (t3.sheets) {
            var e3 = r(t3, n3.sheetName);
            if (e3) return e3;
          }
          return t3;
        }
        function a(t3, n3, e3, i3) {
          var r2 = o(t3, e3), a2 = new n3(r2, e3, i3);
          return i3 ? a2.undo(r2) : a2.execute(r2);
        }
        function u(t3, n3) {
          t3.suspendPaint(), n3 || t3.suspendEvent();
        }
        function s(t3, n3) {
          n3 || t3.resumeEvent(), t3.resumePaint();
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.afterAction = n2.beforeAction = n2.executeCommand = n2.getWorksheet = n2.resumeCalcService = n2.suspendCalcService = void 0, n2.suspendCalcService = e2, n2.resumeCalcService = i2, n2.getWorksheet = o, n2.executeCommand = a, n2.beforeAction = u, n2.afterAction = s;
      }, "./dist/plugins/celltype/addrowcolumnbuttoncelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h = this && this.qKr || (d = function(t3, n3) {
          return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, d(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          d(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), d;
        function v(t3) {
          return o(t3) || "string" == typeof t3 && "" === t3.trim();
        }
        function p(t3) {
          var n3, e3 = t3.sheet.Dg();
          return e3 && (e3.style.cursor = "pointer"), true;
        }
        function g(t3) {
          var n3 = t3.sheet;
          return n3.isEditing() && n3.endEdit(), true;
        }
        function m(t3, n3) {
          var e3, i3, a2, u2, s2, c2, f2 = t3.sheet;
          return !o(f2) && (i3 = (e3 = n3(f2)).cmd, a2 = e3.selection, !v(i3) && (u2 = { r: null }, r.CellTypes.Base.et(f2, "beforeAddRowOrColumnByCellType", u2), u2.r ? void 0 : (s2 = f2.rt, f2.Qy().execute({ cmd: i3, sheetName: f2.name(), selections: [a2], hitInfo: { x: t3.x, y: t3.y, row: t3.row, col: t3.col, cellRect: t3.cellRect, sheetArea: t3.sheetArea, cellStyle: t3.cellStyle } }), (c2 = f2.hitTest(s2.fk ? s2.fk.x : t3.x, s2.fk ? s2.fk.y : t3.y)) && (s2.cw(c2), s2.fw(c2)), true)));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.AddRowButton = n2.AddColumnButton = void 0, i2 = e2("Common"), r = e2("Core"), o = i2.Common.lt.ht, a = r.CellTypes.ti, u = r.CellTypes.ColumnHeader, s = r.CellTypes.RowHeader, c = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.typeName = "96", n4.Y_e = "add-column-button", n4;
          }
          return h(n3, t3), n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            return { x: t4, y: n4, row: r2.row, col: r2.col, sheet: r2.sheet, cellRect: i3, sheetArea: r2.sheetArea, isReservedLocation: true, cellStyle: e3, addRowColumnButtonHitInfo: { addRowColumnButtonType: 1 } };
          }, n3.prototype.processMouseMove = function(t4) {
            return p(t4);
          }, n3.prototype.processMouseDown = function(t4) {
            return g(t4);
          }, n3.prototype.processMouseUp = function(t4) {
            return m(t4, (function(t5) {
              return { cmd: t5.uEe(), selection: { row: -1, rowCount: t5.getRowCount(), col: t5.getColumnCount(), colCount: 1 } };
            }));
          }, n3;
        })(u), n2.AddColumnButton = c, a[96] = c, f = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.typeName = "97", n4.Y_e = "add-row-button", n4;
          }
          return h(n3, t3), n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            return { x: t4, y: n4, row: r2.row, col: r2.col, sheet: r2.sheet, cellRect: i3, sheetArea: r2.sheetArea, isReservedLocation: true, cellStyle: e3, addRowColumnButtonHitInfo: { addRowColumnButtonType: 2 } };
          }, n3.prototype.processMouseMove = function(t4) {
            return p(t4);
          }, n3.prototype.processMouseDown = function(t4) {
            return g(t4);
          }, n3.prototype.processMouseUp = function(t4) {
            return m(t4, (function(t5) {
              return { cmd: t5.aEe(), selection: { row: t5.getRowCount(), rowCount: 1, col: -1, colCount: t5.getColumnCount() } };
            }));
          }, n3;
        })(s), n2.AddRowButton = f, a[97] = f, l = "addRowColumnButton", r.Worksheet.ch(l, { init: function() {
          var t3 = this;
          t3.cEe = new c(), t3.fEe = new f();
        } });
      }, "./dist/plugins/celltype/buttoncelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S = this && this.qKr || (T = function(t3, n3) {
          return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, T(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          T(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), T;
        function x(t3, n3, e3, i3) {
          var r2, o2 = t3.Ut;
          o2 && (o2.do("setValueForKey", n3, e3, g, p, i3), (r2 = o2.getValueForKey(n3, e3, m, i3)) && (clearTimeout(r2), o2.do("setValueForKey", n3, e3, m, p, i3)));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Button = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/celltype/cellbuttons.js"), a = r.Events.SelectionChanged, u = i2.Common.lt.ht, s = r.mt.vi, c = r.CellTypes.Context, f = r.CellTypes.Text, l = r.CellTypes.Base, h = r.GC$, d = h.each, p = void 0, g = "_isFirstMouseUp", m = "_mouseupToken", b = "#707070", y = "#34B4E3", w = ".buttonCellType", M = { marginTop: 2, marginRight: 2, marginBottom: 2, marginLeft: 2, text: "", buttonBackColor: v = null, buttonClickColor: v, buttonState: 0 }, C = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "6", n4 = e3, d(M, (function(t4, e4) {
              n4["_" + t4] = e4;
            })), e3;
          }
          return S(n3, t3), n3.prototype.paintValue = function(t4, n4, e3, i3, o2, a2, u2, s2) {
            var c2, l2, h2, d2, v2, p2, g2, m2, w2, M2, C2, S2;
            t4 && (l2 = (c2 = this)._marginLeft, h2 = c2._marginTop, d2 = e3 + l2, v2 = i3 + h2, p2 = o2 - l2 - c2._marginRight, g2 = a2 - h2 - c2._marginBottom, p2 - 2 > 0 && g2 - 2 > 0 && (m2 = d2 + p2 > e3 && d2 < e3 + o2 && v2 + g2 > i3 && v2 < i3 + a2) && (t4.save(), (d2 < e3 || d2 + p2 > e3 + o2 || v2 < i3 || v2 + g2 > i3 + a2) && (t4.rect(e3, i3, o2, a2), t4.clip()), t4.beginPath(), (w2 = b) && t4.strokeStyle !== w2 && (t4.strokeStyle = w2), t4.strokeRect(d2 + 0.5, v2 + 0.5, p2 - 1, g2 - 1), M2 = void 0, C2 = c2._buttonState, S2 = c2._text, 2 === C2 ? M2 = c2.fJr || y : (M2 = c2._buttonBackColor) || (M2 = { degree: 90, stops: [{ position: 0, color: "#F6FAFB" }, { position: 0.125, color: "#F6FAFB" }, { position: 1, color: "#D2DBEB" }] }), t4.fillStyle !== M2 && (t4.fillStyle = M2), r.W.setFillStyle(t4, M2, e3, i3, o2, a2, (function() {
              t4.fillRect(d2 + 1, v2 + 1, p2 - 2, g2 - 2);
            })), t4.restore(), S2 && f.prototype.paintValue.call(c2, t4, S2, d2, v2, p2, g2, u2, s2)));
          }, n3.prototype.getText = function(t4, n4) {
            return t4;
          }, n3.prototype.j3 = function(t4, n4, e3, i3) {
            var r2 = t4.parent;
            r2 && r2.j3(t4, n4, e3, i3);
          }, n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            var o2, a2, s2, c2, f2, l2, h2 = this;
            return r2 && (o2 = r2.sheetArea, (u(o2) || 3 === o2) && i3) ? (a2 = i3.x + h2._marginLeft, s2 = i3.x + i3.width - h2._marginRight, c2 = i3.y + h2._marginTop, f2 = i3.y + i3.height - h2._marginBottom, l2 = { x: t4, y: n4, row: r2.row, col: r2.col, cellRect: i3, sheetArea: o2, sheet: r2.sheet, cellStyle: e3 }, a2 <= t4 && t4 <= s2 && c2 <= n4 && n4 <= f2 && (l2.isReservedLocation = true), l2) : v;
          }, n3.prototype.processMouseDown = function(t4) {
            var n4 = this, e3 = t4 && t4.sheet;
            return !(!e3 || !t4.isReservedLocation || n4.pG) && (n4.pG = true, n4._buttonState = 2, (0, o.G_e)(e3, t4.cellRect), true);
          }, n3.prototype.processMouseUp = function(t4) {
            var n4, e3, i3, r2, a2, u2 = this, s2 = t4 && t4.sheet;
            if (u2.pG && s2 && t4.isReservedLocation) {
              if (u2._buttonState = 0, (0, o.G_e)(s2, t4.cellRect), u2.pG = false, n4 = t4.row, e3 = t4.col, i3 = t4.sheetArea, !(r2 = s2.Ut.getValueForKey(n4, e3, g, i3))) return u2.j3(s2, n4, e3, i3), s2.Ut.do("setValueForKey", n4, e3, g, true, i3), a2 = setTimeout((function() {
                x(s2, n4, e3, i3);
              }), 250), s2.Ut.do("setValueForKey", n4, e3, m, a2, i3), true;
              x(s2, n4, e3, i3);
            }
            return false;
          }, n3.prototype.processMouseLeave = function(t4) {
            var n4 = this, e3 = t4 && t4.sheet;
            e3 && n4.pG && (n4._buttonState = 0, (0, o.G_e)(e3, t4.cellRect), n4.pG = false);
          }, n3.prototype.processKeyDown = function(t4, n4) {
            var e3, i3 = n4.sheet, r2 = this;
            return !(!i3 || r2.bG) && (e3 = i3.getCellRect(n4.row, n4.col), r2._buttonState = 2, i3.repaint(e3), i3.D3(a + w, (function() {
              i3._3(a + w), r2.bG = false, r2._buttonState = 0, i3.repaint(e3);
            })), r2.bG = true, true);
          }, n3.prototype.processKeyUp = function(t4, n4) {
            var e3, i3, r2, o2 = n4.sheet, u2 = this;
            return !(!o2 || !u2.bG) && (e3 = n4.row, i3 = n4.col, r2 = o2.getCellRect(e3, i3), u2._buttonState = 0, o2.repaint(r2), o2._3(a + w), u2.j3(o2, e3, i3, n4.sheetArea), u2.bG = false, true);
          }, n3.prototype.isReservedKey = function(t4, n4) {
            return 32 === t4.keyCode && !t4.ctrlKey && !t4.shiftKey && !t4.altKey;
          }, n3.prototype.getAutoFitWidth = function(t4, n4, e3, i3, r2) {
            var o2 = this, a2 = c.Bt(t4, o2._text, e3, i3, r2);
            return a2 + o2._marginLeft + o2._marginRight;
          }, n3.prototype.getAutoFitHeight = function(t4, n4, e3, i3, r2) {
            var o2 = this, a2 = c.tn(t4, o2._text, e3, i3, r2);
            return a2 + o2._marginTop + o2._marginBottom;
          }, n3.prototype.QD = function(t4) {
            this.isReservedKey(t4) && s(t4);
          }, n3.prototype.isImeAware = function(t4) {
            return false;
          }, n3.prototype.toJSON = function() {
            var t4, n4 = this, e3 = { typeName: n4.typeName };
            return d(M, (function(i3, r2) {
              "buttonState" !== i3 && (t4 = n4["_" + i3]) !== r2 && (e3[i3] = t4);
            })), e3;
          }, n3.prototype.fromJSON = function(t4) {
            var n4 = this;
            d(M, (function(e3) {
              var i3 = t4[e3];
              u(i3) || (n4["_" + e3] = i3);
            }));
          }, n3.prototype.jn = function(t4) {
          }, n3.prototype.Ke = function() {
          }, n3;
        })(l), n2.Button = C, d(M, (function(t3) {
          C.prototype[t3] = function(n3) {
            return 0 === arguments.length ? this["_" + t3] : (this["_" + t3] = n3, this);
          };
        })), r.CellTypes.ti[6] = C;
      }, "./dist/plugins/celltype/cellbuttons.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z;
        function Y(t3) {
          switch (t3) {
            case O:
              return i2.ButtonPosition.left;
            case E:
              return i2.ButtonPosition.right;
            case R:
              return i2.ButtonPosition.leftOfText;
            case L:
              return i2.ButtonPosition.rightOfText;
          }
        }
        function Z(t3) {
          switch (t3) {
            case i2.ButtonPosition.left:
              return O;
            case i2.ButtonPosition.right:
              return E;
            case i2.ButtonPosition.leftOfText:
              return R;
            case i2.ButtonPosition.rightOfText:
              return L;
          }
        }
        function W(t3) {
          var n3, e3, i3 = t3.split(" ");
          for (e3 = 0; e3 < i3.length; e3++) if (i3[e3].indexOf(k) >= 0) {
            n3 = i3[e3];
            break;
          }
          switch (n3) {
            case N:
              return O;
            case j:
              return E;
            case D:
              return R;
            case _:
              return L;
          }
        }
        function Q(t3) {
          switch (t3) {
            case O:
              return N;
            case E:
              return j;
            case R:
              return D;
            case L:
              return _;
          }
        }
        function K(t3, n3, e3, i3) {
          var r2, o2 = t3.Ut;
          o2 && (o2.do("setValueForKey", n3, e3, m, s, i3), (r2 = o2.getValueForKey(n3, e3, b, i3)) && (clearTimeout(r2), o2.do("setValueForKey", n3, e3, b, s, i3)));
        }
        function J(t3, n3, e3) {
          var r2, o2;
          switch (e3) {
            case V.topLeft:
              return new i2.Rect(t3.x, t3.y, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.topCenter:
              return r2 = (t3.width - n3.width) / 2, r2 = Math.max(0, r2), new i2.Rect(t3.x + r2, t3.y, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.topRight:
              return r2 = t3.width - n3.width, r2 = Math.max(0, r2), new i2.Rect(t3.x + r2, t3.y, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.MiddleLeft:
              return o2 = (t3.height - n3.height) / 2, o2 = Math.max(0, o2), new i2.Rect(t3.x, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.MiddleCenter:
              return r2 = (t3.width - n3.width) / 2, r2 = Math.max(0, r2), o2 = (t3.height - n3.height) / 2, o2 = Math.max(0, o2), new i2.Rect(t3.x + r2, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.MiddleRight:
              return r2 = t3.width - n3.width, r2 = Math.max(0, r2), o2 = (t3.height - n3.height) / 2, o2 = Math.max(0, o2), new i2.Rect(t3.x + r2, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.bottomLeft:
              return o2 = t3.height - n3.height, o2 = Math.max(0, o2), new i2.Rect(t3.x, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.bottomCenter:
              return r2 = (t3.width - n3.width) / 2, r2 = Math.max(0, r2), o2 = t3.height - n3.height, o2 = Math.max(0, o2), new i2.Rect(t3.x + r2, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
            case V.bottomRight:
              return r2 = t3.width - n3.width, r2 = Math.max(0, r2), o2 = t3.height - n3.height, o2 = Math.max(0, o2), new i2.Rect(t3.x + r2, t3.y + o2, Math.min(n3.width, t3.width), Math.min(n3.height, t3.height));
          }
        }
        function X(t3, n3, e3) {
          var i3, r2 = [];
          for (i3 = 0; i3 < t3.length; i3++) r2.push({ width: bt(t3[i3].button, n3, e3), height: yt(t3[i3].button, e3), isStick: t3[i3].button.Ltr });
          return r2;
        }
        function q(t3, n3, e3, i3, r2, o2) {
          var u2, s2, c2, f2, l2, h2 = [], d2 = [];
          for (u2 = 0; u2 < t3.length; u2++) s2 = n3[t3[u2].index], a(s2) ? d2.push(t3[u2]) : h2.push(s2);
          for (c2 = nt(h2), u2 = 0; u2 < d2.length; u2++) f2 = bt(d2[u2].button, e3, i3), (l2 = !o2 || c2.width + f2 <= o2.width) && (c2.width += f2);
          return c2.height = c2.height ? c2.height : o2 ? o2.height : 0, c2;
        }
        function $(t3, n3, e3, r2, o2, s2, c2, f2, l2, h2, d2, v2) {
          var p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = wt(n3, e3, c2, f2, true, [t3]);
          if (A2.length > 0) {
            switch (ct(A2, n3, c2), t3) {
              case i2.ButtonPosition.left:
                p2 = N;
                break;
              case i2.ButtonPosition.right:
                p2 = j;
                break;
              case i2.ButtonPosition.leftOfText:
                p2 = D;
                break;
              case i2.ButtonPosition.rightOfText:
                p2 = _;
                break;
              default:
                return;
            }
            switch (g2 = q(A2, h2, o2, r2, true, s2), m2 = "0", b2 = u(), ((y2 = i2.mt.Tt).mozilla || b2 > 1) && (m2 = "1px"), w2 = g2.width, M2 = g2.height, C2 = Z(t3), a(l2.canvasSizes) && (l2.canvasSizes = {}), (S2 = l2.canvasSizes)[C2] = { width: w2, height: M2 }, x2 = tt(p2, w2, M2, T2 = { width: w2 + "px", height: M2 + "px", display: "block", position: "absolute", bottom: m2, overflow: "hidden", paddingTop: "0" }), t3) {
              case i2.ButtonPosition.left:
                x2.style.left = "0";
                break;
              case i2.ButtonPosition.right:
                x2.style.right = "0";
                break;
              case i2.ButtonPosition.leftOfText:
                x2.style.left = "0";
                break;
              case i2.ButtonPosition.rightOfText:
                x2.style.right = "0";
                break;
              default:
                return;
            }
            d2.appendChild(x2);
          }
        }
        function tt(t3, n3, e3, i3) {
          var r2, o2 = document.createElement("canvas");
          for (r2 in o2.className = t3 + " " + I, i3) i3.hasOwnProperty(r2) && (o2.style[r2] = i3[r2]);
          return o2.width = n3, o2.height = e3, o2;
        }
        function nt(t3) {
          var n3, e3, r2, o2, a2;
          if (t3.length <= 0) return new i2.Rect(0, 0, 0, 0);
          for (n3 = t3[0].x, e3 = t3[0].y, r2 = t3[0].x + t3[0].width, o2 = t3[0].y + t3[0].height, a2 = 1; a2 < t3.length; a2++) n3 = Math.min(n3, t3[a2].x), e3 = Math.min(e3, t3[a2].y), r2 = Math.max(r2, t3[a2].x + t3[a2].width), o2 = Math.max(o2, t3[a2].y + t3[a2].height);
          return new i2.Rect(n3, e3, r2 - n3, o2 - e3);
        }
        function et(t3, n3, e3, r2, o2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, p2, g2;
          if (!a(t3)) for (a(c2[e3]) && (c2[e3] = {}), ct(n3, r2.sheet, r2.row), f2 = t3.getContext("2d"), l2 = q(n3, s2, o2, r2, true), f2.setTransform(parseFloat(t3.style.width) / l2.width, 0, 0, parseFloat(t3.style.height) / l2.height, 0, 0), h2 = 0, d2 = 0, v2 = new i2.Rect(0, 0, parseFloat(t3.style.width), parseFloat(t3.style.height)), p2 = 0; p2 < n3.length && (g2 = pt(f2, h2, d2, bt(n3[p2].button, o2, r2), r2.sheet.getRowHeight(r2.row), n3[p2].button, o2, r2, u2, c2[e3], n3[p2].index, v2), !a(g2)); p2++) h2 += g2.width;
        }
        function it(t3, n3, e3, i3, r2, o2) {
          var u2, s2, c2, f2, l2;
          a(o2.eventListeners) && (o2.eventListeners = {}), a(o2.eventListeners[n3]) && (o2.eventListeners[n3] = {}), s2 = (u2 = o2.eventListeners[n3]).mouseDownListener = function(o3) {
            var a2;
            At(xt({ x: o3.offsetX, y: o3.offsetY, context: e3, cellRect: r2, cellStyle: i3, buttonArea: n3 }, true), true, t3);
          }, t3.addEventListener("mousedown", s2), c2 = u2.mouseUpListener = function(o3) {
            var a2;
            It(xt({ x: o3.offsetX, y: o3.offsetY, context: e3, cellRect: r2, cellStyle: i3, buttonArea: n3 }, true), true, t3);
          }, t3.addEventListener("mouseup", c2), f2 = u2.mouseMoveListener = function(o3) {
            var a2;
            kt(xt({ x: o3.offsetX, y: o3.offsetY, context: e3, cellRect: r2, cellStyle: i3, buttonArea: n3 }, true), true, t3);
          }, t3.addEventListener("mousemove", f2), l2 = u2.mouseLeaveListener = function(o3) {
            var a2 = { x: o3.offsetX, y: o3.offsetY, context: e3, cellRect: r2, cellStyle: i3, buttonArea: n3 };
            a2.x < 0 && (a2.x = 0), a2.x >= parseFloat(t3.style.width) && (a2.x = parseFloat(t3.style.width) - 1), jt(xt(a2, true), true, t3);
          }, t3.addEventListener("mouseleave", l2);
        }
        function rt(t3, n3, e3, r2, o2, u2, s2, c2, f2, l2, h2, d2) {
          var v2, p2, g2, m2, b2, y2, w2, M2 = wt(n3, e3, s2, c2, true, [t3]);
          if (M2.length > 0) {
            switch (v2 = void 0, p2 = void 0, t3) {
              case i2.ButtonPosition.left:
                v2 = N, p2 = O;
                break;
              case i2.ButtonPosition.right:
                v2 = j, p2 = E;
                break;
              case i2.ButtonPosition.leftOfText:
                v2 = D, p2 = R;
                break;
              case i2.ButtonPosition.rightOfText:
                v2 = _, p2 = L;
                break;
              default:
                return;
            }
            if (g2 = d2.querySelector("." + v2), a(g2)) return;
            switch (m2 = parseFloat(g2.style.width), b2 = u2.options.contentRect, y2 = u2.options.leftExternalRect, w2 = u2.options.rightExternalRect, t3) {
              case i2.ButtonPosition.left:
                b2.x += m2, b2.width -= m2;
                break;
              case i2.ButtonPosition.right:
                b2.width -= m2;
                break;
              case i2.ButtonPosition.leftOfText:
                y2.width += m2;
                break;
              case i2.ButtonPosition.rightOfText:
                w2.width += m2;
            }
            et(g2, M2, p2, r2, o2, f2, l2, h2), it(g2, p2, r2, o2, u2.options.cellRect, f2);
          }
        }
        function ot(t3, n3, e3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, v2 = wt(n3, e3, r2, o2, true, [t3]);
          if (v2 && v2.length > 0) switch (s2 = Z(t3), c2 = a2 && a2[s2] && a2[s2].width || 0, f2 = u2.contentContainer, l2 = u2.contentRect, h2 = u2.leftExternalRect, d2 = u2.rightExternalRect, t3) {
            case i2.ButtonPosition.left:
              ut(f2, "left", c2), l2.x += c2, l2.width -= c2;
              break;
            case i2.ButtonPosition.leftOfText:
              ut(f2, "left", c2), h2.width += c2;
              break;
            case i2.ButtonPosition.right:
              l2.width -= c2;
              break;
            case i2.ButtonPosition.rightOfText:
              d2.width += c2;
              break;
            default:
              return;
          }
        }
        function at(t3) {
          return +t3.replace("px", "") || 0;
        }
        function ut(t3, n3, e3) {
          var i3 = 0;
          t3.style[n3] && (i3 = at(t3.style[n3])), i3 += e3, t3.style[n3] = "".concat(i3 - 1, "px");
        }
        function st(t3, n3) {
          a(n3.mouseDownListener) || t3.removeEventListener("mousedown", n3.mouseDownListener), a(n3.mouseUpListener) || t3.removeEventListener("mouseup", n3.mouseUpListener), a(n3.mouseMoveListener) || t3.removeEventListener("mousemove", n3.mouseMoveListener), a(n3.mouseLeaveListener) || t3.removeEventListener("mouseleave", n3.mouseLeaveListener);
        }
        function ct(t3, n3, e3) {
          var i3, r2, o2 = n3.BO();
          for (i3 = 0; i3 < t3.length; i3++) (r2 = Rt(t3[i3].button, e3)) && o2.addImage(r2);
        }
        function ft(t3) {
          var n3 = t3.isPrinting, e3 = t3.printZoomFactor;
          return n3 && "number" == typeof e3 && 1 !== e3;
        }
        function lt(t3, n3) {
          return 2 === n3.columnHeaderFitMode && n3.cornerX && (t3.width = n3.cornerX - t3.x, t3.height = t3.height - (n3.cornerY - t3.y) - 1, t3.y = n3.cornerY - 1), t3;
        }
        function ht(t3, n3, e3) {
          switch (e3) {
            case i2.ButtonPosition.leftOfText:
              return new i2.Rect(t3.x, t3.y, n3.x - t3.x, t3.height);
            case i2.ButtonPosition.rightOfText:
              return new i2.Rect(n3.x + n3.width, t3.y, t3.x + t3.width - n3.x - n3.width, t3.height);
          }
        }
        function dt(t3, n3, e3, r2, o2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2;
          if (t3 && !(n3.length <= 0)) {
            if (o2 = _t(o2), ct(n3, c2 = u2.sheet, u2.row), 2 === u2.columnHeaderFitMode && u2.cornerX && (f2 = u2.cellRect.x + u2.cellRect.width - (e3.x + e3.width), (e3 = e3.clone()).width = u2.cornerX - e3.x - f2, e3.height = e3.height - (u2.cornerY - e3.y) - 1, e3.y = u2.cornerY - 1), l2 = ht(e3, r2, s2 ? i2.ButtonPosition.leftOfText : i2.ButtonPosition.rightOfText), t3.save(), t3.rect(l2.x, l2.y, l2.width, l2.height), t3.clip(), t3.beginPath(), h2 = St(c2, u2.row, u2.col, u2.sheetArea), d2 = _t(o2), a(h2.layout) && (h2.layout = {}), s2) {
              for (v2 = l2.x + l2.width, p2 = n3.length - 1; p2 >= 0 && (m2 = pt(t3, v2 -= g2 = bt(n3[p2].button, d2, u2), e3.y, bt(n3[p2].button, d2, u2), l2.height, n3[p2].button, d2, u2, h2, h2.layout, n3[p2].index, e3), !a(m2)); p2--) ;
              r2.x = v2;
            } else {
              for (v2 = l2.x, p2 = 0; p2 < n3.length && (m2 = pt(t3, v2, e3.y, bt(n3[p2].button, d2, u2), l2.height, n3[p2].button, d2, u2, h2, h2.layout, n3[p2].index, e3), !a(m2)); p2++) v2 += m2.width;
              r2.width = v2 - r2.x;
            }
            t3.restore();
          }
        }
        function vt(t3, n3, e3, r2, o2) {
          if (!(t3 + e3 < o2.x || t3 > o2.x + o2.width || n3 + r2 < o2.y || n3 > o2.y + o2.height)) return t3 + e3 > o2.x + o2.width && (e3 = o2.x + o2.width - t3), n3 + r2 > o2.y + o2.height && (r2 = o2.y + o2.height - n3), t3 < o2.x && (t3 = o2.x), n3 < o2.y && (n3 = o2.y), new i2.Rect(t3, n3, e3, r2);
        }
        function pt(t3, n3, e3, r2, o2, u2, s2, c2, f2, l2, h2, d2) {
          var v2, p2 = C;
          if (f2.buttonDownIndex === h2 ? p2 = S : f2.buttonHoverIndex === h2 && (p2 = T), s2.vAlign === i2.VerticalAlign.center && (o2 = d2.height), v2 = vt(n3, e3, r2, o2, d2), !a(v2)) return gt(t3, v2.x, v2.y, v2.width, v2.height, u2, s2, c2, p2, d2), l2[h2] = new i2.Rect(v2.x, v2.y, v2.width, v2.height), l2[h2].offsetX = v2.x - d2.x, l2[h2].offsetY = v2.y - d2.y, c2.cornerY && (l2[h2].offsetY += c2.cornerY), l2[h2];
        }
        function gt(t3, n3, e3, r2, o2, u2, f2, l2, m2, b2) {
          var y2, C2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, z2, Y2, Z2, W2, Q2, K2, X2, q2;
          t3.save(), t3.beginPath(), y2 = u2.useButtonStyle, C2 = ft(l2), I2 = l2.printZoomFactor, k2 = C2 ? I2 : l2.sheet.zoom(), n3 += N2 = y2 ? M * k2 : 0, e3 += N2, r2 -= 2 * N2, o2 -= 2 * N2, j2 = h, D2 = u2.hoverBackColor || p, j2 && t3.strokeStyle !== j2 && (t3.strokeStyle = j2), y2 && t3.strokeRect(n3 + 0.5, e3 + 0.5, r2 - 1, o2 - 1), _2 = Lt(u2.enabled, l2.row), y2 ? false === u2.enabled ? O2 = u2.buttonBackColor || v : m2 === S ? O2 = d : m2 === T || l2.visualState === i2.VisualState.hover ? O2 = D2 : ((E2 = t3.createLinearGradient(n3 + r2 / 2, e3, n3 + r2 / 2, e3 + o2)).addColorStop(0.125, "#F6FAFB"), E2.addColorStop(1, "#D2DBEB"), O2 = u2.buttonBackColor || E2) : (O2 = u2.buttonBackColor || "white", m2 === T && (u2.enabled || a(u2.enabled)) && (O2 = D2)), (R2 = f2.font) && t3.font !== R2 && (t3.font = R2), t3.fillStyle !== O2 && (t3.fillStyle = O2), n3 += 1, e3 += 1, r2 -= 2, o2 -= 2, t3.rect(n3, e3, r2, o2), t3.clip(), t3.beginPath(), t3.fillRect(n3, e3, r2, o2), L2 = new i2.Rect(n3, e3, r2, o2), F2 = new i2.Rect(n3, e3, r2, o2), B2 = w * k2, P2 = Rt(u2, l2.row), u2.caption && P2 && (G2 = (A.Bt(c, u2.caption, f2, k2, l2) + 2 * M) * k2, U2 = Mt(u2) * k2, H2 = new i2.Rect(0, 0, G2 + U2 + B2, o2), Y2 = J(z2 = new i2.Rect(n3, e3, r2, o2), H2, V.MiddleCenter), u2.captionAlign === i2.CaptionAlignment.left ? (F2 = new i2.Rect(Y2.x, e3, G2, o2), L2 = Y2.x + G2 + B2 < n3 + r2 - 2 ? new i2.Rect(Y2.x + G2 + B2, e3, Math.max(0, U2), o2) : new i2.Rect(0, 0, 0, 0)) : (L2 = new i2.Rect(Y2.x, e3, Math.min(U2, r2), o2), F2 = Y2.x + U2 + B2 < n3 + r2 - 2 ? new i2.Rect(Y2.x + U2 + B2, e3, Math.min(r2 - 2 - U2 - B2, G2), o2) : new i2.Rect(0, 0, 0, 0))), u2.caption && (Z2 = (A.Bt(c, u2.caption, f2, k2, l2) + 2 * M) * k2, W2 = (A.tn(c, u2.caption, f2, k2, l2) + 2 * M) * k2, K2 = J(F2, Q2 = new i2.Rect(0, 0, Z2, W2), V.MiddleCenter), X2 = new x(), f2 = f2.clone(), false === _2 && (f2.foreColor = g), f2.cellButtons = s, f2.decoration = s, q2 = C2 ? 0 : 2, X2.paintValue(t3, u2.caption, K2.x, K2.y - q2, K2.width, K2.height, f2, l2)), P2 && mt(t3, u2, L2.x, L2.y, L2.width, L2.height, P2, l2, b2), t3.restore();
        }
        function mt(t3, n3, e3, r2, o2, a2, u2, s2, c2) {
          var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2;
          t3.save(), t3.rect(e3 + 2, r2 + 2, o2 - 4, a2 - 4), t3.clip(), t3.beginPath(), (h2 = (l2 = s2.sheet).BO()).getState(u2) ? h2.qh(u2) && (d2 = ft(s2) ? s2.printZoomFactor : l2.zoom(), v2 = new i2.Rect(e3, r2, o2, a2), p2 = Mt(n3) - 2, g2 = Ct(n3) - 2, b2 = J(v2, m2 = new i2.Rect(0, 0, p2 * d2, g2 * d2), V.MiddleCenter), n3.position !== i2.ButtonPosition.leftOfText && n3.position !== i2.ButtonPosition.rightOfText || ((y2 = s2.textRect) && (b2.y = f(y2.y - y2.height / 2 - m2.height / 2, r2 + 4)), b2.y + b2.height > v2.y + v2.height && (b2.y = f(b2.y - (b2.y + b2.height - v2.y - v2.height), v2.y))), M2 = (w2 = h2.getImage(u2)).width, C2 = w2.height, i2.mt.Tt.msie && n3.imageType && (n3.imageType === i2.ButtonImageType.custom ? (B[u2] || (w2.style.position = "absolute", w2.style.left = "-10000px", w2.style.top = "-100000px", document.body.appendChild(w2), B[u2] = { width: w2.width, height: w2.height }, document.body.removeChild(w2)), M2 = B[u2].width, C2 = B[u2].height) : (M2 = 12, C2 = 12)), c2 && i2.mt.Tt.msie && b2.x + b2.width > c2.x + c2.width ? (S2 = c2.x + c2.width - b2.x) > 0 && (T2 = M2 / (p2 * d2), t3.drawImage(w2, 0, 0, S2 * T2, C2, b2.x, b2.y, S2, g2 * d2)) : t3.drawImage(w2, 0, 0, M2, C2, b2.x, b2.y, p2 * d2, g2 * d2)) : h2.addImage(u2), t3.restore();
        }
        function bt(t3, n3, e3, i3) {
          var r2, o2, u2, s2, l2, h2;
          return void 0 === i3 && (i3 = true), r2 = ft(e3) ? e3.printZoomFactor : e3.sheet.zoom(), o2 = 2 * M + 3, a(t3.width) ? (u2 = A.Bt(c, t3.caption, n3, r2, e3), s2 = t3.useButtonStyle, (l2 = Rt(t3, e3.row)) && (u2 = Mt(t3) + u2, o2 = (s2 ? o2 : 0) + w), i3 ? (u2 + o2 + 7) * r2 : u2 + o2 + 7) : (h2 = f(1, t3.width), isNaN(h2) && (h2 = 1), i3 ? h2 * r2 : h2);
        }
        function yt(t3, n3, e3) {
          var i3, r2, o2, a2, u2;
          return void 0 === e3 && (e3 = true), i3 = n3.sheet, r2 = ft(n3) ? n3.printZoomFactor : i3.zoom(), o2 = i3.getRowHeight(n3.row), a2 = t3.imageSize ? t3.imageSize.height : c, u2 = f(1, a2 || o2), isNaN(u2) && (u2 = 1), e3 ? u2 * r2 : u2;
        }
        function wt(t3, n3, e3, r2, o2, u2) {
          var s2, c2, f2, l2, h2, d2 = [];
          if (!n3 || 0 === n3.length) return [];
          for (s2 = false, c2 = t3.Ut.getValueForKey(e3, r2, y), t3.getActiveRowIndex() === e3 && t3.getActiveColumnIndex() === r2 && true !== c2 && (s2 = true), f2 = 0; f2 < n3.length; f2++) if (l2 = n3[f2].visible, !o2 || !n3[f2].iMe) for (h2 = 0; h2 < u2.length; h2++) (n3[f2].position === u2[h2] || a(n3[f2].position) && u2[h2] === i2.ButtonPosition.right) && (l2 && "function" == typeof l2 && l2(e3) || n3[f2].visibility === i2.ButtonVisibility.onEditing && o2 || n3[f2].visibility !== i2.ButtonVisibility.onEditing && s2 || n3[f2].visibility === i2.ButtonVisibility.always || a(n3[f2].visibility)) && d2.push({ index: f2, button: n3[f2] });
          return d2;
        }
        function Mt(t3) {
          var n3;
          return t3.imageSize && ("string" == typeof t3.imageSize.width && (n3 = l(t3.imageSize.width)), "number" == typeof t3.imageSize.width && (n3 = t3.imageSize.width)), (n3 === c || isNaN(n3) || n3 < 0) && (n3 = 16), n3;
        }
        function Ct(t3) {
          var n3;
          return t3.imageSize && ("string" == typeof t3.imageSize.height && (n3 = l(t3.imageSize.height)), "number" == typeof t3.imageSize.height && (n3 = t3.imageSize.height)), (n3 === c || isNaN(n3) || n3 < 0) && (n3 = 16), n3;
        }
        function St(t3, n3, e3, r2, o2) {
          var a2, u2 = { isMouseDownReservedLocation: false };
          return r2 === i2.SheetArea.corner ? u2 : ((a2 = t3.Ut.getValueForKey(n3, e3, F, r2)) || o2 || Tt(t3, n3, e3, r2, a2 = u2), a2);
        }
        function Tt(t3, n3, e3, i3, r2) {
          t3.Ut.setValueForKey(n3, e3, F, r2, i3);
        }
        function xt(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2;
          if (void 0 === n3 && (n3 = false), e3 = t3.context.row, r2 = t3.context.col, o2 = t3.cellRect, a2 = t3.cellStyle, u2 = t3.context, c2 = (s2 = { x: t3.x, y: t3.y, row: e3, col: r2, cellRect: o2, cellStyle: a2, sheetArea: t3.context.sheetArea, sheet: t3.context.sheet, context: u2 }).sheet, false !== t3.cellStyle.locked && c2.isActualProtected() && !c2.NMi && (f2 = { row: e3, col: r2, sheetArea: t3.context.sheetArea, isLocked: true }, i2.Worksheet.et(c2, "getCellActualLockedInfo", f2), f2.isLocked)) return null;
          if (l2 = St(c2, s2.row, s2.col, s2.sheetArea, true), h2 = t3.cellStyle.cellButtons, !l2 || !h2 || h2.length <= 0) return null;
          if (d2 = l2.layout, n3 && (d2 = l2.editorLayout[t3.buttonArea]), !d2) return null;
          for (m2 in v2 = -1, p2 = s2.x, g2 = s2.y, d2) if (d2.hasOwnProperty(m2)) {
            if (b2 = void 0, y2 = d2[m2], n3) b2 = new i2.Rect(y2.x, y2.y, y2.width, y2.height);
            else {
              if (w2 = y2.offsetX, c2.parent && !c2.parent.options.scrollByPixel && (M2 = c2.frozenColumnCount()) > 0 && M2 < (C2 = c2.getViewportLeftColumn(1)) && (S2 = c2.getSpan(e3, r2, s2.sheetArea)) && S2.col <= C2 && C2 < S2.col + S2.colCount) for (T2 = C2 - M2, x2 = 0; x2 < T2; x2++) w2 -= c2.getColumnWidth(M2 + x2 + 1, s2.sheetArea);
              b2 = new i2.Rect(o2.x + w2, o2.y + y2.offsetY, y2.width, y2.height);
            }
            if (b2 && b2.contains(p2, g2)) {
              v2 = +m2;
              break;
            }
          }
          return -1 !== v2 ? s2.cellButtonHitInfo = { hitButtonIndex: v2, buttonConfig: h2[v2], buttonArea: t3.buttonArea } : (A2 = c2.getCellType(s2.row, s2.col)) && (I2 = q(wt(c2, h2, e3, r2, n3, [i2.ButtonPosition.left]), d2, a2, u2, false), k2 = q(wt(c2, h2, e3, r2, n3, [i2.ButtonPosition.right]), d2, a2, u2, false), N2 = new i2.Rect(o2.x + I2.width, o2.y, o2.width - I2.width - k2.width, o2.height), (j2 = A2.getHitInfo(s2.x, s2.y, a2, N2, u2)) && j2.isReservedLocation && (s2.isReservedLocation = true)), s2;
        }
        function At(t3, n3, e3) {
          var r2, o2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2;
          return void 0 === n3 && (n3 = false), !(!t3 || !t3.cellButtonHitInfo) && (r2 = t3.sheet, u2 = { r: c }, i2.CellTypes.Base.et(r2, "preProcessCellButtonMouseDown", u2), !u2.r && (s2 = t3.row, f2 = t3.col, l2 = t3.sheetArea, s2 === r2.ui && f2 === r2.ci || l2 !== i2.SheetArea.viewport || r2.endEdit()) ? (t3.cellButtonHitInfo.buttonConfig && (o2 = t3.cellButtonHitInfo.buttonConfig.hasOverLay), h2 = St(r2, s2, f2, t3.sheetArea), t3.cellButtonHitInfo && (v2 = t3.cellButtonHitInfo.hitButtonIndex, d2 = t3.cellButtonHitInfo.buttonConfig), p2 = Lt(d2 && d2.enabled, t3.row), !!(r2 && (!h2.isMouseDownReservedLocation || o2) && d2 && (p2 || a(p2)) && v2 >= 0) && (h2.buttonDownIndex = v2, h2.isMouseDownReservedLocation = true, n3 && e3 ? (g2 = t3.cellStyle, m2 = h2.layout, b2 = t3.context, y2 = h2.editorLayout, w2 = t3.cellButtonHitInfo && t3.cellButtonHitInfo.buttonArea, M2 = g2.cellButtons, w2 && et(e3, C2 = wt(r2, M2, s2, f2, true, [Y(w2)]), w2, b2, g2, h2, m2, y2)) : Nt(r2, t3.cellRect), true)) : void 0);
        }
        function It(t3, n3, e3) {
          var r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, y2, w2, M2, C2, S2;
          if (void 0 === n3 && (n3 = false), t3 && (r2 = t3 && t3.sheet, o2 = t3.row, a2 = t3.col, u2 = { r: c }, i2.CellTypes.Base.et(r2, "preProcessCellButtonMouseUp", u2), !u2.r)) {
            if (s2 = St(r2, t3.row, t3.col, t3.sheetArea), f2 = t3.cellButtonHitInfo, s2.isMouseDownReservedLocation && r2) {
              if (f2 && f2.hitButtonIndex >= 0 && f2.buttonConfig.command && (l2 = f2.buttonConfig.command, n3 || r2.getActiveRowIndex() === o2 && r2.getActiveColumnIndex() === a2 || r2.eR(o2, a2, 1, 1, 2), "string" == typeof l2 ? r2.getParent().commandManager().execute({ cmd: l2, row: o2, col: a2, sheetName: r2.name(), sheetArea: t3.sheetArea }) : "function" == typeof l2 && l2.call(c, r2, o2, a2, t3.sheetArea)), n3 && s2.buttonDownIndex >= 0 && e3 && (s2.buttonDownIndex = -1, h2 = t3.cellStyle, d2 = s2.layout, v2 = t3.context, p2 = s2.editorLayout, g2 = f2 && f2.buttonArea, y2 = h2.cellButtons, g2 && et(e3, w2 = wt(r2, y2, o2, a2, true, [Y(g2)]), g2, v2, h2, s2, d2, p2)), s2.buttonDownIndex = -1, n3 || Nt(r2, t3.cellRect), s2.isMouseDownReservedLocation = false, M2 = t3.sheetArea, !(C2 = r2.Ut.getValueForKey(o2, a2, m, M2))) return Ot(r2, o2, a2, M2), r2.Ut.do("setValueForKey", o2, a2, m, true, M2), S2 = setTimeout((function() {
                K(r2, o2, a2, M2);
              }), 250), r2.Ut.do("setValueForKey", o2, a2, b, S2, M2), true;
              K(r2, o2, a2, M2);
            }
            return false;
          }
        }
        function kt(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2;
          if (void 0 === n3 && (n3 = false), t3) return r2 = St(i3 = t3 && t3.sheet, t3.row, t3.col, t3.sheetArea), o2 = -1, t3.cellButtonHitInfo && (o2 = t3.cellButtonHitInfo.hitButtonIndex), o2 !== (a(r2.buttonHoverIndex) ? -1 : r2.buttonHoverIndex) ? (r2.buttonHoverIndex = o2, n3 ? (u2 = t3.cellStyle, s2 = r2.layout, c2 = t3.context, f2 = r2.editorLayout, l2 = u2.cellButtons, h2 = t3.row, d2 = t3.col, e3 && Dt(l2, i3, h2, d2, v2 = e3.parentElement, c2, u2, r2, s2, f2)) : Nt(i3, t3.cellRect), true) : void 0;
        }
        function Nt(t3, n3) {
          var e3 = n3.x - (n3.x > 0 ? 2 : 0), r2 = n3.y - (n3.y > 0 ? 2 : 0), o2 = n3.width + 4, a2 = n3.height + 4, u2 = new i2.Rect(e3, r2, o2, a2);
          t3.repaint(u2);
        }
        function jt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
          void 0 === n3 && (n3 = false), t3 && t3.cellButtonHitInfo && (r2 = St(i3 = t3 && t3.sheet, t3.row, t3.col, t3.sheetArea), n3 ? (r2.buttonHoverIndex = -1, t3.cellButtonHitInfo.hitButtonIndex >= 0 && (o2 = t3.cellStyle, a2 = r2.layout, u2 = t3.context, s2 = r2.editorLayout, c2 = o2.cellButtons, f2 = t3.row, l2 = t3.col, e3 && Dt(c2, i3, f2, l2, h2 = e3.parentElement, u2, o2, r2, a2, s2))) : (i3 && (r2.buttonHoverIndex = -1, r2.buttonDownIndex = -1, r2.isMouseDownReservedLocation = false), Nt(i3, t3.cellRect)));
        }
        function Dt(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2, d2;
          for (f2 = 0; f2 < G.length; f2++) l2 = Z(G[f2]), et(h2 = r2.querySelector("." + Q(l2)), d2 = wt(n3, t3, e3, i3, true, [Y(l2)]), l2, o2, a2, u2, s2, c2);
        }
        function _t(t3) {
          var n3 = t3.clone(true);
          return n3.hAlign = i2.HorizontalAlign.left, n3.vAlign = i2.VerticalAlign.center, n3.wordWrap = false, n3.isVerticalText = false, n3.shrinkToFit = false, n3.formatter = "General", n3.textIndent = 0, n3;
        }
        function Ot(t3, n3, e3, i3) {
          var r2 = t3.parent;
          r2 && r2.j3(t3, n3, e3, i3);
        }
        function Et(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = t3.Il(n3, e3, r2);
          if (u2 && u2.cellButtons && u2.cellButtons.length > 0 && (o2 = u2.cellButtons.filter((function(t4) {
            return 1 === t4.visibility;
          }))).length > 0) {
            i3 && t3.Ut.do("setValueForKey", n3, e3, y, true, r2);
            try {
              a2 = t3.getCellRect(n3, e3, 1 === r2 ? -1 : void 0, 2 === r2 ? -1 : void 0), t3.repaint(a2);
            } finally {
              i3 && t3.Ut.do("setValueForKey", n3, e3, y, s, r2);
            }
          }
        }
        function Rt(t3, n3) {
          var e3, r2, o2 = null, u2 = t3.imageType;
          if (a(t3.imageType)) return null;
          switch (r2 = (e3 = Lt(t3.enabled, n3)) || a(e3), u2) {
            case i2.ButtonImageType.dropdown:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZHJvcGRvd248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZHJvcGRvd24iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIHBvaW50cz0iMyA0IDEwIDQgNi41IDkiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZHJvcGRvd248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZHJvcGRvd24iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiNDQUNBQ0EiIHBvaW50cz0iMyA0IDEwIDQgNi41IDkiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.left:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bGVmdDwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJsZWZ0IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cG9seWdvbiBmaWxsPSIjNkU2RTZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHBvaW50cz0iNS4zNTE1MjcxMiA2LjUgOCA5LjI4ODYzMDM2IDcuMzI0MzU0MDMgMTAgNCA2LjUgNy4zMjQzNTQwMyAzIDggMy43MTEzNjk2NCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bGVmdDwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJsZWZ0IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cG9seWdvbiBmaWxsPSIjQ0FDQUNBIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHBvaW50cz0iNS4zNTE1MjcxMiA2LjUgOCA5LjI4ODYzMDM2IDcuMzI0MzU0MDMgMTAgNCA2LjUgNy4zMjQzNTQwMyAzIDggMy43MTEzNjk2NCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=";
              break;
            case i2.ButtonImageType.right:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cmlnaHQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0icmlnaHQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNi4wMDAwMDAsIDYuNTAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC02LjAwMDAwMCwgLTYuNTAwMDAwKSAiIHBvaW50cz0iNS4zNTE1MjcxMiA2LjUgOCA5LjI4ODYzMDM2IDcuMzI0MzU0MDMgMTAgNCA2LjUgNy4zMjQzNTQwMyAzIDggMy43MTEzNjk2NCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cmlnaHQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0icmlnaHQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiNDQUNBQ0EiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNi4wMDAwMDAsIDYuNTAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC02LjAwMDAwMCwgLTYuNTAwMDAwKSAiIHBvaW50cz0iNS4zNTE1MjcxMiA2LjUgOCA5LjI4ODYzMDM2IDcuMzI0MzU0MDMgMTAgNCA2LjUgNy4zMjQzNTQwMyAzIDggMy43MTEzNjk2NCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=";
              break;
            case i2.ButtonImageType.clear:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+Y2xlYXI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iY2xlYXIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIGZpbGwtcnVsZT0ibm9uemVybyIgcG9pbnRzPSI4Ljg3NTQ2MzkgMyAxMCA0LjEyNDUzNjEgNy42MjQ1MzYxIDYuNSAxMCA4Ljg3NTQ2MzkgOC44NzU0NjM5IDEwIDYuNSA3LjYyNDUzNjEgNC4xMjQ1MzYxIDEwIDMgOC44NzU0NjM5IDUuMzc1NDYzOSA2LjUgMyA0LjEyNDUzNjEgNC4xMjQ1MzYxIDMgNi41IDUuMzc1NDYzOSI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+Y2xlYXI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iY2xlYXIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiNDQUNBQ0EiIGZpbGwtcnVsZT0ibm9uemVybyIgcG9pbnRzPSI4Ljg3NTQ2MzkgMyAxMCA0LjEyNDUzNjEgNy42MjQ1MzYxIDYuNSAxMCA4Ljg3NTQ2MzkgOC44NzU0NjM5IDEwIDYuNSA3LjYyNDUzNjEgNC4xMjQ1MzYxIDEwIDMgOC44NzU0NjM5IDUuMzc1NDYzOSA2LjUgMyA0LjEyNDUzNjEgNC4xMjQ1MzYxIDMgNi41IDUuMzc1NDYzOSI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=";
              break;
            case 3:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+Y2FuY2VsPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9ImNhbmNlbCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTYsMSBDOC43NjE0MzE3MSwxIDExLDMuMjM4NTgxMzIgMTEsNiBDMTEsOC43NjE0MzE3MSA4Ljc2MTQzMTcxLDExLjAwMDAxMyA2LjAwMDAwNjUyLDExLjAwMDAxMyBDMy4yMzg1ODEzMiwxMS4wMDAwMTMgMSw4Ljc2MTQ0NDc0IDEsNiBDMSwzLjIzODU2ODI5IDMuMjM4NTgxMzIsMSA2LDEgWiBNOC41MTgwNTU5NiwzLjQ4MTk0NDA0IEM4LjI1MTg4NTYxLDMuMjE1NzczNyA3LjgyMDMzODIyLDMuMjE1NzczNyA3LjU1NDE2Nzg4LDMuNDgxOTQ0MDQgTDYsNS4wMzYxMTE5MiBMNC40NDU4MzIxMiwzLjQ4MTk0NDA0IEM0LjE3OTY2MTc4LDMuMjE1NzczNyAzLjc0ODExNDM5LDMuMjE1NzczNyAzLjQ4MTk0NDA0LDMuNDgxOTQ0MDQgQzMuMjE1NzczNywzLjc0ODExNDM5IDMuMjE1NzczNyw0LjE3OTY2MTc4IDMuNDgxOTQ0MDQsNC40NDU4MzIxMiBMNS4wMzYxMTE5Miw2IEwzLjQ4MTk0NDA0LDcuNTU0MTY3ODggQzMuMjE1NzczNyw3LjgyMDMzODIyIDMuMjE1NzczNyw4LjI1MTg4NTYxIDMuNDgxOTQ0MDQsOC41MTgwNTU5NiBDMy43NDgxMTQzOSw4Ljc4NDIyNjMgNC4xNzk2NjE3OCw4Ljc4NDIyNjMgNC40NDU4MzIxMiw4LjUxODA1NTk2IEw2LDYuOTYzODg4MDggTDcuNTU0MTY3ODgsOC41MTgwNTU5NiBDNy44MjAzMzgyMiw4Ljc4NDIyNjMgOC4yNTE4ODU2MSw4Ljc4NDIyNjMgOC41MTgwNTU5Niw4LjUxODA1NTk2IEM4Ljc4NDIyNjMsOC4yNTE4ODU2MSA4Ljc4NDIyNjMsNy44MjAzMzgyMiA4LjUxODA1NTk2LDcuNTU0MTY3ODggTDYuOTYzODg4MDgsNiBMOC41MTgwNTU5Niw0LjQ0NTgzMjEyIEM4Ljc4NDIyNjMsNC4xNzk2NjE3OCA4Ljc4NDIyNjMsMy43NDgxMTQzOSA4LjUxODA1NTk2LDMuNDgxOTQ0MDQgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzZFNkU2RSIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+Y2FuY2VsPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9ImNhbmNlbCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTYsMSBDOC43NjE0MzE3MSwxIDExLDMuMjM4NTgxMzIgMTEsNiBDMTEsOC43NjE0MzE3MSA4Ljc2MTQzMTcxLDExLjAwMDAxMyA2LjAwMDAwNjUyLDExLjAwMDAxMyBDMy4yMzg1ODEzMiwxMS4wMDAwMTMgMSw4Ljc2MTQ0NDc0IDEsNiBDMSwzLjIzODU2ODI5IDMuMjM4NTgxMzIsMSA2LDEgWiBNOC41MTgwNTU5NiwzLjQ4MTk0NDA0IEM4LjI1MTg4NTYxLDMuMjE1NzczNyA3LjgyMDMzODIyLDMuMjE1NzczNyA3LjU1NDE2Nzg4LDMuNDgxOTQ0MDQgTDYsNS4wMzYxMTE5MiBMNC40NDU4MzIxMiwzLjQ4MTk0NDA0IEM0LjE3OTY2MTc4LDMuMjE1NzczNyAzLjc0ODExNDM5LDMuMjE1NzczNyAzLjQ4MTk0NDA0LDMuNDgxOTQ0MDQgQzMuMjE1NzczNywzLjc0ODExNDM5IDMuMjE1NzczNyw0LjE3OTY2MTc4IDMuNDgxOTQ0MDQsNC40NDU4MzIxMiBMNS4wMzYxMTE5Miw2IEwzLjQ4MTk0NDA0LDcuNTU0MTY3ODggQzMuMjE1NzczNyw3LjgyMDMzODIyIDMuMjE1NzczNyw4LjI1MTg4NTYxIDMuNDgxOTQ0MDQsOC41MTgwNTU5NiBDMy43NDgxMTQzOSw4Ljc4NDIyNjMgNC4xNzk2NjE3OCw4Ljc4NDIyNjMgNC40NDU4MzIxMiw4LjUxODA1NTk2IEw2LDYuOTYzODg4MDggTDcuNTU0MTY3ODgsOC41MTgwNTU5NiBDNy44MjAzMzgyMiw4Ljc4NDIyNjMgOC4yNTE4ODU2MSw4Ljc4NDIyNjMgOC41MTgwNTU5Niw4LjUxODA1NTk2IEM4Ljc4NDIyNjMsOC4yNTE4ODU2MSA4Ljc4NDIyNjMsNy44MjAzMzgyMiA4LjUxODA1NTk2LDcuNTU0MTY3ODggTDYuOTYzODg4MDgsNiBMOC41MTgwNTU5Niw0LjQ0NTgzMjEyIEM4Ljc4NDIyNjMsNC4xNzk2NjE3OCA4Ljc4NDIyNjMsMy43NDgxMTQzOSA4LjUxODA1NTk2LDMuNDgxOTQ0MDQgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0NBQ0FDQSIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==";
              break;
            case i2.ButtonImageType.ok:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+b2s8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ib2siIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik01LjY3NjUyMjQsMTAgQzUuNjc2NTIyNCwxMCA2LjkxNzAzMjUzLDcuMzM0ODI5MDcgOC40MTk2ODA3OSw1LjMyNjE2ODAyIEM5LjU4MDA5Mzk2LDMuNzc2MzU0NDYgMTEsMi43MTg3NTQxMSAxMSwyLjcxODc1NDExIEwxMC41MTYxMDg0LDIgQzEwLjUxNjEwODQsMiA4Ljk2NzEyNTYsMi43MDIwNjg3NSA3LjU3NzY3MjIzLDQuMDUwMzc0NDYgQzYuMTY4MzYwMTEsNS40MTcyOTA3NiA1LjM0NDg4MTIxLDYuOTQ2NTczNSA1LjM0NDg4MTIxLDYuOTQ2NTczNSBMMy4yOTc0Mzg1Niw1LjAxMTcxMzA5IEwyLDYuNDYwMTI1OTcgTDUuNjc2NTE5ODEsOS45OTk5ODc0NyBMNS42NzY1MTk4MSw5Ljk5OTk4NzQ3IEw1LjY3NjUyMjQsMTAgWiIgaWQ9Ik9LIiBmaWxsPSIjNkU2RTZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+b2s8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ib2siIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik01LjY3NjUyMjQsMTAgQzUuNjc2NTIyNCwxMCA2LjkxNzAzMjUzLDcuMzM0ODI5MDcgOC40MTk2ODA3OSw1LjMyNjE2ODAyIEM5LjU4MDA5Mzk2LDMuNzc2MzU0NDYgMTEsMi43MTg3NTQxMSAxMSwyLjcxODc1NDExIEwxMC41MTYxMDg0LDIgQzEwLjUxNjEwODQsMiA4Ljk2NzEyNTYsMi43MDIwNjg3NSA3LjU3NzY3MjIzLDQuMDUwMzc0NDYgQzYuMTY4MzYwMTEsNS40MTcyOTA3NiA1LjM0NDg4MTIxLDYuOTQ2NTczNSA1LjM0NDg4MTIxLDYuOTQ2NTczNSBMMy4yOTc0Mzg1Niw1LjAxMTcxMzA5IEwyLDYuNDYwMTI1OTcgTDUuNjc2NTE5ODEsOS45OTk5ODc0NyBMNS42NzY1MTk4MSw5Ljk5OTk4NzQ3IEw1LjY3NjUyMjQsMTAgWiIgaWQ9Ik9LIiBmaWxsPSIjQ0FDQUNBIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.plus:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cGx1czwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJwbHVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNSw1IEw1LDMgTDcsMyBMNyw1IEw5LDUgTDksNyBMNyw3IEw3LDkgTDUsOSBMNSw3IEwzLDcgTDMsNSBMNSw1IFoiIGZpbGw9IiM2RTZFNkUiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cGx1czwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJwbHVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNSw1IEw1LDMgTDcsMyBMNyw1IEw5LDUgTDksNyBMNyw3IEw3LDkgTDUsOSBMNSw3IEwzLDcgTDMsNSBMNSw1IFoiIGZpbGw9IiNDQUNBQ0EiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.minus:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bWludXM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ibWludXMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxyZWN0IGZpbGw9IiM2RTZFNkUiIHg9IjMiIHk9IjUiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiPjwvcmVjdD4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bWludXM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ibWludXMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxyZWN0IGZpbGw9IiNDQUNBQ0EiIHg9IjMiIHk9IjUiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiPjwvcmVjdD4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.redo:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cmVkbzwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJyZWRvIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNi43NDY0OTIwNSwzLjc5NjM1NTEyIEM4LjUzNjk1MDQyLDMuNzk2MzU1MTIgMTAsNS4xNzQ5NDI4NyAxMCw2Ljg5NzczMTcxIEMxMCw4LjYyMDUyMDU0IDguNTM2OTUwNDIsMTAgNi43NDY0OTIwNSwxMCBMNS4zMzQ4OTI0MiwxMCBDNS4xOTczODA3MywxMCA1LjExMTMxODk5LDkuOTAxOTExNjEgNS4xMTEzMTg5OSw5Ljc2OTkzODE0IEw1LjExMTMxODk5LDkuMjQ0NzE5MzkgQzUuMTExMzE4OTksOS4xMTM2Mzc2MyA1LjIxNDIxODksOC45OTg2MDY3IDUuMzUyNjY2MDQsOC45OTg2MDY3IEw2Ljc0NzQyNzUsOC45OTg2MDY3IEM3Ljk3MDA2NTQ4LDguOTk4NjA2NyA4Ljk1MTM1NjQxLDguMDYzMjAwMTMgOC45NTEzNTY0MSw2Ljg5NzczMTcxIEM4Ljk1MTM1NjQxLDUuNzMyMjYzMjggNy45NjkxMzAwMyw0Ljc5Nzc0ODQzIDYuNzQ2NDkyMDUsNC43OTc3NDg0MyBMNC4zNTM2MDE1LDQuNzk3NzQ4NDMgQzQuMzUzNjAxNSw0Ljc5Nzc0ODQzIDQuMjE2MDg5OCw0Ljc5Nzc0ODQzIDQuMTY0NjM5ODUsNC44MTM3OTkyNSBDNC4wMjcxMjgxNiw0Ljg3OTc4NTk5IDQuMDYxNzM5OTQsNC45Nzc4NzQzOCA0LjE4MTQ3ODAyLDUuMDkyOTA1MzEgTDUuMDI1MjU3MjUsNS44OTcyMzAxMiBDNS4xMjgxNTcxNiw1Ljk5NTMxODUxIDUuMTExMzE4OTksNi4xNDMzNDI4MSA1LjAwODQxOTA4LDYuMjQxNDMxMiBMNC42Mjk1NjAzNCw2LjYwMjU3NDgyIEM0LjUyNjY2MDQzLDYuNzAwNjYzMjEgNC40MDU5ODY5LDYuNzAwNjYzMjEgNC4zMDIxNTE1NCw2LjYxODYyNTY1IEwyLjA2NDU0NjMsNC40ODU2NDkgQzEuOTc4NDg0NTcsNC40MDM2MTE0NCAxLjk3ODQ4NDU3LDQuMjcyNTI5NjggMi4wNjQ1NDYzLDQuMTkwNDkyMTEgTDQuMjg1MzEzMzgsMi4wNzM1NjYyOSBDNC4zODgyMTMyOCwxLjk3NTQ3NzkgNC41NjAzMzY3NiwxLjk3NTQ3NzkgNC42NDYzOTg1LDIuMDczNTY2MjkgTDUuMDA3NDgzNjMsMi40MTc3NjczNyBDNS4xMTAzODM1NCwyLjUxNTg1NTc3IDUuMTEwMzgzNTQsMi42Nzk5MzA4OSA1LjAwNzQ4MzYzLDIuNzYxOTY4NDYgTDQuMTYzNzA0NCwzLjU2NjI5MzI2IEM0LjA2MDgwNDQ5LDMuNjY0MzgxNjUgNC4wNjA4MDQ0OSwzLjc3OTQxMjU4IDQuMjMyOTI3OTcsMy43Nzk0MTI1OCBMNC4zNTM2MDE1LDMuNzc5NDEyNTggTDYuNzQ2NDkyMDUsMy43OTYzNTUxMiBaIiBmaWxsPSIjNkU2RTZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYuMDAwMDAwLCA2LjAwMDAwMCkgc2NhbGUoLTEsIDEpIHRyYW5zbGF0ZSgtNi4wMDAwMDAsIC02LjAwMDAwMCkgIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+cmVkbzwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJyZWRvIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNi43NDY0OTIwNSwzLjc5NjM1NTEyIEM4LjUzNjk1MDQyLDMuNzk2MzU1MTIgMTAsNS4xNzQ5NDI4NyAxMCw2Ljg5NzczMTcxIEMxMCw4LjYyMDUyMDU0IDguNTM2OTUwNDIsMTAgNi43NDY0OTIwNSwxMCBMNS4zMzQ4OTI0MiwxMCBDNS4xOTczODA3MywxMCA1LjExMTMxODk5LDkuOTAxOTExNjEgNS4xMTEzMTg5OSw5Ljc2OTkzODE0IEw1LjExMTMxODk5LDkuMjQ0NzE5MzkgQzUuMTExMzE4OTksOS4xMTM2Mzc2MyA1LjIxNDIxODksOC45OTg2MDY3IDUuMzUyNjY2MDQsOC45OTg2MDY3IEw2Ljc0NzQyNzUsOC45OTg2MDY3IEM3Ljk3MDA2NTQ4LDguOTk4NjA2NyA4Ljk1MTM1NjQxLDguMDYzMjAwMTMgOC45NTEzNTY0MSw2Ljg5NzczMTcxIEM4Ljk1MTM1NjQxLDUuNzMyMjYzMjggNy45NjkxMzAwMyw0Ljc5Nzc0ODQzIDYuNzQ2NDkyMDUsNC43OTc3NDg0MyBMNC4zNTM2MDE1LDQuNzk3NzQ4NDMgQzQuMzUzNjAxNSw0Ljc5Nzc0ODQzIDQuMjE2MDg5OCw0Ljc5Nzc0ODQzIDQuMTY0NjM5ODUsNC44MTM3OTkyNSBDNC4wMjcxMjgxNiw0Ljg3OTc4NTk5IDQuMDYxNzM5OTQsNC45Nzc4NzQzOCA0LjE4MTQ3ODAyLDUuMDkyOTA1MzEgTDUuMDI1MjU3MjUsNS44OTcyMzAxMiBDNS4xMjgxNTcxNiw1Ljk5NTMxODUxIDUuMTExMzE4OTksNi4xNDMzNDI4MSA1LjAwODQxOTA4LDYuMjQxNDMxMiBMNC42Mjk1NjAzNCw2LjYwMjU3NDgyIEM0LjUyNjY2MDQzLDYuNzAwNjYzMjEgNC40MDU5ODY5LDYuNzAwNjYzMjEgNC4zMDIxNTE1NCw2LjYxODYyNTY1IEwyLjA2NDU0NjMsNC40ODU2NDkgQzEuOTc4NDg0NTcsNC40MDM2MTE0NCAxLjk3ODQ4NDU3LDQuMjcyNTI5NjggMi4wNjQ1NDYzLDQuMTkwNDkyMTEgTDQuMjg1MzEzMzgsMi4wNzM1NjYyOSBDNC4zODgyMTMyOCwxLjk3NTQ3NzkgNC41NjAzMzY3NiwxLjk3NTQ3NzkgNC42NDYzOTg1LDIuMDczNTY2MjkgTDUuMDA3NDgzNjMsMi40MTc3NjczNyBDNS4xMTAzODM1NCwyLjUxNTg1NTc3IDUuMTEwMzgzNTQsMi42Nzk5MzA4OSA1LjAwNzQ4MzYzLDIuNzYxOTY4NDYgTDQuMTYzNzA0NCwzLjU2NjI5MzI2IEM0LjA2MDgwNDQ5LDMuNjY0MzgxNjUgNC4wNjA4MDQ0OSwzLjc3OTQxMjU4IDQuMjMyOTI3OTcsMy43Nzk0MTI1OCBMNC4zNTM2MDE1LDMuNzc5NDEyNTggTDYuNzQ2NDkyMDUsMy43OTYzNTUxMiBaIiBmaWxsPSIjQ0FDQUNBIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYuMDAwMDAwLCA2LjAwMDAwMCkgc2NhbGUoLTEsIDEpIHRyYW5zbGF0ZSgtNi4wMDAwMDAsIC02LjAwMDAwMCkgIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==";
              break;
            case i2.ButtonImageType.undo:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+dW5kbzwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJ1bmRvIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNi43NDY0OTIwNSwzLjc5NjM1NTEyIEM4LjUzNjk1MDQyLDMuNzk2MzU1MTIgMTAsNS4xNzQ5NDI4NyAxMCw2Ljg5NzczMTcxIEMxMCw4LjYyMDUyMDU0IDguNTM2OTUwNDIsMTAgNi43NDY0OTIwNSwxMCBMNS4zMzQ4OTI0MiwxMCBDNS4xOTczODA3MywxMCA1LjExMTMxODk5LDkuOTAxOTExNjEgNS4xMTEzMTg5OSw5Ljc2OTkzODE0IEw1LjExMTMxODk5LDkuMjQ0NzE5MzkgQzUuMTExMzE4OTksOS4xMTM2Mzc2MyA1LjIxNDIxODksOC45OTg2MDY3IDUuMzUyNjY2MDQsOC45OTg2MDY3IEw2Ljc0NzQyNzUsOC45OTg2MDY3IEM3Ljk3MDA2NTQ4LDguOTk4NjA2NyA4Ljk1MTM1NjQxLDguMDYzMjAwMTMgOC45NTEzNTY0MSw2Ljg5NzczMTcxIEM4Ljk1MTM1NjQxLDUuNzMyMjYzMjggNy45NjkxMzAwMyw0Ljc5Nzc0ODQzIDYuNzQ2NDkyMDUsNC43OTc3NDg0MyBMNC4zNTM2MDE1LDQuNzk3NzQ4NDMgQzQuMzUzNjAxNSw0Ljc5Nzc0ODQzIDQuMjE2MDg5OCw0Ljc5Nzc0ODQzIDQuMTY0NjM5ODUsNC44MTM3OTkyNSBDNC4wMjcxMjgxNiw0Ljg3OTc4NTk5IDQuMDYxNzM5OTQsNC45Nzc4NzQzOCA0LjE4MTQ3ODAyLDUuMDkyOTA1MzEgTDUuMDI1MjU3MjUsNS44OTcyMzAxMiBDNS4xMjgxNTcxNiw1Ljk5NTMxODUxIDUuMTExMzE4OTksNi4xNDMzNDI4MSA1LjAwODQxOTA4LDYuMjQxNDMxMiBMNC42Mjk1NjAzNCw2LjYwMjU3NDgyIEM0LjUyNjY2MDQzLDYuNzAwNjYzMjEgNC40MDU5ODY5LDYuNzAwNjYzMjEgNC4zMDIxNTE1NCw2LjYxODYyNTY1IEwyLjA2NDU0NjMsNC40ODU2NDkgQzEuOTc4NDg0NTcsNC40MDM2MTE0NCAxLjk3ODQ4NDU3LDQuMjcyNTI5NjggMi4wNjQ1NDYzLDQuMTkwNDkyMTEgTDQuMjg1MzEzMzgsMi4wNzM1NjYyOSBDNC4zODgyMTMyOCwxLjk3NTQ3NzkgNC41NjAzMzY3NiwxLjk3NTQ3NzkgNC42NDYzOTg1LDIuMDczNTY2MjkgTDUuMDA3NDgzNjMsMi40MTc3NjczNyBDNS4xMTAzODM1NCwyLjUxNTg1NTc3IDUuMTEwMzgzNTQsMi42Nzk5MzA4OSA1LjAwNzQ4MzYzLDIuNzYxOTY4NDYgTDQuMTYzNzA0NCwzLjU2NjI5MzI2IEM0LjA2MDgwNDQ5LDMuNjY0MzgxNjUgNC4wNjA4MDQ0OSwzLjc3OTQxMjU4IDQuMjMyOTI3OTcsMy43Nzk0MTI1OCBMNC4zNTM2MDE1LDMuNzc5NDEyNTggTDYuNzQ2NDkyMDUsMy43OTYzNTUxMiBaIiBmaWxsPSIjNkU2RTZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+dW5kbzwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJ1bmRvIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNi43NDY0OTIwNSwzLjc5NjM1NTEyIEM4LjUzNjk1MDQyLDMuNzk2MzU1MTIgMTAsNS4xNzQ5NDI4NyAxMCw2Ljg5NzczMTcxIEMxMCw4LjYyMDUyMDU0IDguNTM2OTUwNDIsMTAgNi43NDY0OTIwNSwxMCBMNS4zMzQ4OTI0MiwxMCBDNS4xOTczODA3MywxMCA1LjExMTMxODk5LDkuOTAxOTExNjEgNS4xMTEzMTg5OSw5Ljc2OTkzODE0IEw1LjExMTMxODk5LDkuMjQ0NzE5MzkgQzUuMTExMzE4OTksOS4xMTM2Mzc2MyA1LjIxNDIxODksOC45OTg2MDY3IDUuMzUyNjY2MDQsOC45OTg2MDY3IEw2Ljc0NzQyNzUsOC45OTg2MDY3IEM3Ljk3MDA2NTQ4LDguOTk4NjA2NyA4Ljk1MTM1NjQxLDguMDYzMjAwMTMgOC45NTEzNTY0MSw2Ljg5NzczMTcxIEM4Ljk1MTM1NjQxLDUuNzMyMjYzMjggNy45NjkxMzAwMyw0Ljc5Nzc0ODQzIDYuNzQ2NDkyMDUsNC43OTc3NDg0MyBMNC4zNTM2MDE1LDQuNzk3NzQ4NDMgQzQuMzUzNjAxNSw0Ljc5Nzc0ODQzIDQuMjE2MDg5OCw0Ljc5Nzc0ODQzIDQuMTY0NjM5ODUsNC44MTM3OTkyNSBDNC4wMjcxMjgxNiw0Ljg3OTc4NTk5IDQuMDYxNzM5OTQsNC45Nzc4NzQzOCA0LjE4MTQ3ODAyLDUuMDkyOTA1MzEgTDUuMDI1MjU3MjUsNS44OTcyMzAxMiBDNS4xMjgxNTcxNiw1Ljk5NTMxODUxIDUuMTExMzE4OTksNi4xNDMzNDI4MSA1LjAwODQxOTA4LDYuMjQxNDMxMiBMNC42Mjk1NjAzNCw2LjYwMjU3NDgyIEM0LjUyNjY2MDQzLDYuNzAwNjYzMjEgNC40MDU5ODY5LDYuNzAwNjYzMjEgNC4zMDIxNTE1NCw2LjYxODYyNTY1IEwyLjA2NDU0NjMsNC40ODU2NDkgQzEuOTc4NDg0NTcsNC40MDM2MTE0NCAxLjk3ODQ4NDU3LDQuMjcyNTI5NjggMi4wNjQ1NDYzLDQuMTkwNDkyMTEgTDQuMjg1MzEzMzgsMi4wNzM1NjYyOSBDNC4zODgyMTMyOCwxLjk3NTQ3NzkgNC41NjAzMzY3NiwxLjk3NTQ3NzkgNC42NDYzOTg1LDIuMDczNTY2MjkgTDUuMDA3NDgzNjMsMi40MTc3NjczNyBDNS4xMTAzODM1NCwyLjUxNTg1NTc3IDUuMTEwMzgzNTQsMi42Nzk5MzA4OSA1LjAwNzQ4MzYzLDIuNzYxOTY4NDYgTDQuMTYzNzA0NCwzLjU2NjI5MzI2IEM0LjA2MDgwNDQ5LDMuNjY0MzgxNjUgNC4wNjA4MDQ0OSwzLjc3OTQxMjU4IDQuMjMyOTI3OTcsMy43Nzk0MTI1OCBMNC4zNTM2MDE1LDMuNzc5NDEyNTggTDYuNzQ2NDkyMDUsMy43OTYzNTUxMiBaIiBmaWxsPSIjQ0FDQUNBIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.search:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c2VhcmNoPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNlYXJjaCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTcuNDQ1MzczOTYsNi43MzgyNjcxOCBMMTAuMDM1NTMzOSw5LjMyODQyNzEyIEw5LjMyODQyNzEyLDEwLjAzNTUzMzkgTDYuNzM4MjY3MTgsNy40NDUzNzM5NiBDNi4yNDc4NTc3NCw3Ljc5NDYwNDUyIDUuNjQ3OTE1MjIsOCA1LDggQzMuMzQzMTQ1NzUsOCAyLDYuNjU2ODU0MjUgMiw1IEMyLDMuMzQzMTQ1NzUgMy4zNDMxNDU3NSwyIDUsMiBDNi42NTY4NTQyNSwyIDgsMy4zNDMxNDU3NSA4LDUgQzgsNS42NDc5MTUyMiA3Ljc5NDYwNDUyLDYuMjQ3ODU3NzQgNy40NDUzNzM5Niw2LjczODI2NzE4IFogTTUuMDAwNTI2MTYsMyBDMy44OTYyNTEzMSwzIDMuMDAxMDUyNDgsMy44OTU0MzQ1NiAzLDUgQzMuMDAxMTYyODYsNi4xMDM2NzQ4NCAzLjg5NTAyNzk5LDYuOTk4MjUxNzQgNS4wMDA1MjYxNiw3IEM2LjEwNDgwMTAxLDcgNi45OTk5OTk4Myw2LjEwNDU2NTQ0IDcsNSBDNywzLjg5NTQzNDU2IDYuMTA0ODAxMDEsMy4wMDAwMDAxNyA1LjAwMDUyNjE2LDMgWiIgZmlsbD0iIzZFNkU2RSIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c2VhcmNoPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNlYXJjaCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTcuNDQ1MzczOTYsNi43MzgyNjcxOCBMMTAuMDM1NTMzOSw5LjMyODQyNzEyIEw5LjMyODQyNzEyLDEwLjAzNTUzMzkgTDYuNzM4MjY3MTgsNy40NDUzNzM5NiBDNi4yNDc4NTc3NCw3Ljc5NDYwNDUyIDUuNjQ3OTE1MjIsOCA1LDggQzMuMzQzMTQ1NzUsOCAyLDYuNjU2ODU0MjUgMiw1IEMyLDMuMzQzMTQ1NzUgMy4zNDMxNDU3NSwyIDUsMiBDNi42NTY4NTQyNSwyIDgsMy4zNDMxNDU3NSA4LDUgQzgsNS42NDc5MTUyMiA3Ljc5NDYwNDUyLDYuMjQ3ODU3NzQgNy40NDUzNzM5Niw2LjczODI2NzE4IFogTTUuMDAwNTI2MTYsMyBDMy44OTYyNTEzMSwzIDMuMDAxMDUyNDgsMy44OTU0MzQ1NiAzLDUgQzMuMDAxMTYyODYsNi4xMDM2NzQ4NCAzLjg5NTAyNzk5LDYuOTk4MjUxNzQgNS4wMDA1MjYxNiw3IEM2LjEwNDgwMTAxLDcgNi45OTk5OTk4Myw2LjEwNDU2NTQ0IDcsNSBDNywzLjg5NTQzNDU2IDYuMTA0ODAxMDEsMy4wMDAwMDAxNyA1LjAwMDUyNjE2LDMgWiIgZmlsbD0iI0NBQ0FDQSIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==";
              break;
            case i2.ButtonImageType.separator:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c2VwYXJhdG9yPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNlcGFyYXRvciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTExLDQgTDEwLDQgTDEwLDggTDExLDggTDExLDkgTDksOSBMOSwzIEwxMSwzIEwxMSw0IFogTTIsNCBMMiwzIEw0LDMgTDQsOSBMMiw5IEwyLDggTDMsOCBMMyw0IEwyLDQgWiBNNiwxIEw3LDEgTDcsMTEgTDYsMTEgTDYsMSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjNkU2RTZFIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c2VwYXJhdG9yPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNlcGFyYXRvciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTExLDQgTDEwLDQgTDEwLDggTDExLDggTDExLDkgTDksOSBMOSwzIEwxMSwzIEwxMSw0IFogTTIsNCBMMiwzIEw0LDMgTDQsOSBMMiw5IEwyLDggTDMsOCBMMyw0IEwyLDQgWiBNNiwxIEw3LDEgTDcsMTEgTDYsMTEgTDYsMSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjQ0FDQUNBIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==";
              break;
            case i2.ButtonImageType.spinLeft:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c3BpbmxlZnQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ic3BpbmxlZnQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIHBvaW50cz0iOCAzIDQgNi41IDggMTAiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c3BpbmxlZnQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ic3BpbmxlZnQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiNDQUNBQ0EiIHBvaW50cz0iOCAzIDQgNi41IDggMTAiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+";
              break;
            case i2.ButtonImageType.spinRight:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c3BpbnJpZ2h0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNwaW5yaWdodCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBvbHlnb24gZmlsbD0iIzZFNkU2RSIgcG9pbnRzPSI0IDMgOCA2LjUgNCAxMCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+c3BpbnJpZ2h0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InNwaW5yaWdodCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBvbHlnb24gZmlsbD0iI0NBQ0FDQSIgcG9pbnRzPSI0IDMgOCA2LjUgNCAxMCI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=";
              break;
            case i2.ButtonImageType.ellipsis:
              o2 = r2 ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZWxsaXBzaXM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZWxsaXBzaXMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0yLDcgQzEuNDQ3NzE1MjUsNyAxLDYuNTUyMjg0NzUgMSw2IEMxLDUuNDQ3NzE1MjUgMS40NDc3MTUyNSw1IDIsNSBDMi41NTIyODQ3NSw1IDMsNS40NDc3MTUyNSAzLDYgQzMsNi41NTIyODQ3NSAyLjU1MjI4NDc1LDcgMiw3IFogTTYsNyBDNS40NDc3MTUyNSw3IDUsNi41NTIyODQ3NSA1LDYgQzUsNS40NDc3MTUyNSA1LjQ0NzcxNTI1LDUgNiw1IEM2LjU1MjI4NDc1LDUgNyw1LjQ0NzcxNTI1IDcsNiBDNyw2LjU1MjI4NDc1IDYuNTUyMjg0NzUsNyA2LDcgWiBNMTAsNyBDOS40NDc3MTUyNSw3IDksNi41NTIyODQ3NSA5LDYgQzksNS40NDc3MTUyNSA5LjQ0NzcxNTI1LDUgMTAsNSBDMTAuNTUyMjg0Nyw1IDExLDUuNDQ3NzE1MjUgMTEsNiBDMTEsNi41NTIyODQ3NSAxMC41NTIyODQ3LDcgMTAsNyBaIiBmaWxsPSIjNkU2RTZFIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==" : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZWxsaXBzaXM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZWxsaXBzaXMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0yLDcgQzEuNDQ3NzE1MjUsNyAxLDYuNTUyMjg0NzUgMSw2IEMxLDUuNDQ3NzE1MjUgMS40NDc3MTUyNSw1IDIsNSBDMi41NTIyODQ3NSw1IDMsNS40NDc3MTUyNSAzLDYgQzMsNi41NTIyODQ3NSAyLjU1MjI4NDc1LDcgMiw3IFogTTYsNyBDNS40NDc3MTUyNSw3IDUsNi41NTIyODQ3NSA1LDYgQzUsNS40NDc3MTUyNSA1LjQ0NzcxNTI1LDUgNiw1IEM2LjU1MjI4NDc1LDUgNyw1LjQ0NzcxNTI1IDcsNiBDNyw2LjU1MjI4NDc1IDYuNTUyMjg0NzUsNyA2LDcgWiBNMTAsNyBDOS40NDc3MTUyNSw3IDksNi41NTIyODQ3NSA5LDYgQzksNS40NDc3MTUyNSA5LjQ0NzcxNTI1LDUgMTAsNSBDMTAuNTUyMjg0Nyw1IDExLDUuNDQ3NzE1MjUgMTEsNiBDMTEsNi41NTIyODQ3NSAxMC41NTIyODQ3LDcgMTAsNyBaIiBmaWxsPSIjQ0FDQUNBIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==";
              break;
            case i2.ButtonImageType.expand:
              o2 = r2 ? "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJjb2xsYXBzZSIgd2lkdGg9IjEycHgiIGhlaWdodD0iMTJweCI+CiAgICAgICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEycHgiIGhlaWdodD0iMTJweCIgcng9IjRweCIgcnk9IjRweCIgc3R5bGU9InN0cm9rZTogIzZlNmU2ZTsgc3Ryb2tlLXdpZHRoOjFweDsgZmlsbDogbm9uZTsiLz4KICAgICAgICA8bGluZSB4MT0iMnB4IiB5MT0iNnB4IiB4Mj0iMTBweCIgeTI9IjZweCIgc3R5bGU9InN0cm9rZTogIzZlNmU2ZTsgc3Ryb2tlLXdpZHRoOjFweDsiLz4KICAgIDwvc3ZnPg==" : "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJjb2xsYXBzZSIgd2lkdGg9IjEycHgiIGhlaWdodD0iMTJweCI+CiAgICAgICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEycHgiIGhlaWdodD0iMTJweCIgcng9IjRweCIgcnk9IjRweCIgc3R5bGU9InN0cm9rZTogI2NhY2FjYTsgc3Ryb2tlLXdpZHRoOjFweDsgZmlsbDogbm9uZTsiLz4KICAgICAgICA8bGluZSB4MT0iMnB4IiB5MT0iNnB4IiB4Mj0iMTBweCIgeTI9IjZweCIgc3R5bGU9InN0cm9rZTogI2NhY2FjYTsgc3Ryb2tlLXdpZHRoOjFweDsiLz4KICAgIDwvc3ZnPg==";
              break;
            case i2.ButtonImageType.collapse:
              o2 = r2 ? "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJleHBhbmQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiPgogICAgICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=" : "data:image/svg+xml;PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJleHBhbmQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiPgogICAgICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=";
              break;
            case i2.ButtonImageType.custom:
              o2 = t3.imageSrc;
          }
          return o2;
        }
        function Lt(t3, n3) {
          return "function" == typeof t3 ? t3(n3) : t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.G_e = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/celltype/celltypes.ns.js"), a = r.Common.lt.ht, u = i2.Bf.Zl, s = void 0, c = null, f = Math.max, l = parseInt, h = "#707070", d = "#34B4E3", v = "#e6e6e6", p = "lightgray", g = "#CACACA", m = "_isFirstMouseUp", b = "_mouseupToken", y = "_leaveCell", w = 0, M = 2, C = 0, S = 2, T = 3, x = i2.CellTypes.Base, A = i2.CellTypes.Context, I = "gc-cell-button-canvas", N = (k = "gc-editor-") + "left-cellbuttons", j = k + "right-cellbuttons", D = k + "left-of-text-cellbuttons", _ = k + "right-of-text-cellbuttons", O = "leftButtonArea", E = "rightButtonArea", R = "leftOfTextButtonArea", L = "rightOfTextButtonArea", F = "_cellButtonParam", B = {}, P = i2.GC$, G = [i2.ButtonPosition.left, i2.ButtonPosition.right, i2.ButtonPosition.leftOfText, i2.ButtonPosition.rightOfText], U = new r.Common.ResourceManager(o.SR, "CellTypes"), H = U.getResource.bind(U), (function(t3) {
          t3[t3.topLeft = 0] = "topLeft", t3[t3.topCenter = 1] = "topCenter", t3[t3.topRight = 2] = "topRight", t3[t3.MiddleLeft = 3] = "MiddleLeft", t3[t3.MiddleCenter = 4] = "MiddleCenter", t3[t3.MiddleRight = 5] = "MiddleRight", t3[t3.bottomLeft = 6] = "bottomLeft", t3[t3.bottomCenter = 7] = "bottomCenter", t3[t3.bottomRight = 8] = "bottomRight";
        })(V || (V = {})), i2.CellTypes.Base.ch("cellButton", { beforePaintLabel: function(t3) {
          var n3, e3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = t3.options.context, M2 = t3.options.style;
          if (!w2.cellOverflowLayout && M2.cellButtons && M2.cellButtons.length > 0 && (n3 = t3.options.context.sheet, e3 = w2.row, r2 = w2.col, (o2 = wt(n3, M2.cellButtons, e3, r2, false, [i2.ButtonPosition.left, i2.ButtonPosition.right])) && o2.length > 0)) {
            if (u2 = _t(M2), ct(o2, n3, t3.options.context.row), !(s2 = t3.ctx)) return;
            for (c2 = lt(t3.options.rect.clone(), w2), s2.save(), s2.rect(c2.x, c2.y, c2.width, c2.height), s2.clip(), s2.beginPath(), f2 = c2.x, l2 = c2.x + c2.width, (h2 = St(n3, w2.row, w2.col, w2.sheetArea)).layout = {}, d2 = h2.layout, v2 = wt(n3, M2.cellButtons, e3, r2, false, [i2.ButtonPosition.left]), p2 = 0; p2 < v2.length && (g2 = pt(s2, f2, c2.y, bt(v2[p2].button, u2, w2), c2.height, v2[p2].button, u2, w2, h2, d2, v2[p2].index, c2), !a(g2)); p2++) f2 += g2.width;
            for (m2 = f2, f2 = l2, p2 = (b2 = wt(n3, M2.cellButtons, e3, r2, false, [i2.ButtonPosition.right])).length - 1; p2 >= 0 && (g2 = pt(s2, f2 -= y2 = bt(b2[p2].button, u2, w2), c2.y, y2, c2.height, b2[p2].button, u2, w2, h2, d2, b2[p2].index, c2), !a(g2)); p2--) ;
            s2.restore(), (c2 = t3.options.rect).width = c2.x + c2.width - (l2 - f2) - m2, c2.x = m2;
          }
        }, beforePaintText: function(t3) {
          var n3, e3, r2, o2, a2 = t3.context, u2 = t3.style;
          !a2.cellOverflowLayout && u2.cellButtons && u2.cellButtons.length > 0 && (n3 = t3.context.sheet, e3 = a2.row, r2 = a2.col, (o2 = t3.externals).left = o2.left.concat(X(wt(n3, u2.cellButtons, e3, r2, false, [i2.ButtonPosition.leftOfText]), u2, a2)), o2.right = o2.right.concat(X(wt(n3, u2.cellButtons, e3, r2, false, [i2.ButtonPosition.rightOfText]), u2, a2)));
        }, beforeFillTextArea: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2 = t3.style, l2 = f2.cellButtons;
          f2.cellButtons && f2.cellButtons.length > 0 && (n3 = t3.ctx, e3 = t3.availRect, r2 = t3.textRect, dt(n3, c2 = wt(a2 = (o2 = t3.context).sheet, l2, u2 = o2.row, s2 = o2.col, false, [i2.ButtonPosition.leftOfText]), e3, r2, f2, o2, true));
        }, afterFillTextArea: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2 = t3.style, l2 = f2.cellButtons;
          f2.cellButtons && f2.cellButtons.length > 0 && (n3 = t3.ctx, e3 = t3.availRect, r2 = t3.textRect, dt(n3, c2 = wt(a2 = (o2 = t3.context).sheet, l2, u2 = o2.row, s2 = o2.col, false, [i2.ButtonPosition.rightOfText]), e3, r2, f2, o2, false));
        }, onCreateCellEditor: function(t3) {
          var n3, e3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = t3.options.dom;
          if (m2 && m2.children && (n3 = m2.children[0]) && n3.children && (e3 = n3.children[0])) {
            if (o2 = (r2 = t3.context).sheet, u2 = r2.row, s2 = r2.col, c2 = t3.options.cellStyle, a(c2) && (c2 = o2.getActualStyle(u2, s2)), f2 = c2.cellButtons, a(f2) || f2 && f2.length <= 0) return;
            for (l2 = t3.options.cellRect, h2 = new i2.Rect(l2.x, l2.y, l2.width, l2.height), d2 = St(o2, u2, s2, r2.sheetArea), a(d2.layout) && (d2.layout = {}), v2 = d2.layout, p2 = false, g2 = 0; g2 < f2.length; g2++) f2[g2].position !== i2.ButtonPosition.leftOfText && f2[g2].position !== i2.ButtonPosition.rightOfText || (p2 = true);
            for (p2 && (n3.style.overflow = "hidden"), g2 = 0; g2 < G.length; g2++) $(G[g2], o2, f2, r2, c2, h2, u2, s2, d2, v2, m2, n3);
          }
        }, onActivateCellEditor: function(t3) {
          var n3, e3, i3, r2, o2, u2, s2 = t3.context, c2 = s2.sheet, f2 = s2.row, l2 = s2.col, h2 = t3.options.cellStyle, d2 = h2.cellButtons;
          if (!(a(d2) || d2.length <= 0)) for (n3 = St(c2, f2, l2, s2.sheetArea), a(n3.editorLayout) && (n3.editorLayout = {}), e3 = n3.layout, i3 = n3.editorLayout, r2 = _t(h2), o2 = t3.options.dom, u2 = 0; u2 < G.length; u2++) rt(G[u2], c2, d2, s2, r2, t3, f2, l2, n3, e3, i3, o2);
        }, onDeactivateCellEditor: function(t3) {
          var n3, e3, i3, r2, o2, u2, s2, c2 = t3.context, f2 = c2.sheet, l2 = c2.row, h2 = c2.col, d2 = f2.getActualStyle(l2, h2, c2.sheetArea), v2 = d2.cellButtons;
          if (v2 && v2.length > 0) for (e3 = (n3 = St(c2.sheet, l2, h2, c2.sheetArea, true)) && n3.eventListeners, r2 = (i3 = t3.options.dom).querySelectorAll("." + I), o2 = 0; o2 < r2.length; o2++) s2 = W((u2 = r2[o2]).className), a(s2) || a(e3) || a(e3[s2]) || (st(u2, e3[s2]), delete n3.eventListeners[s2]);
        }, onUpdateContainer: function(t3) {
          var n3, e3 = t3.context, i3 = e3.sheet, r2 = e3.row, o2 = e3.col, u2 = St(e3.sheet, r2, o2, e3.sheetArea, true), s2 = u2 && u2.canvasSizes, c2 = t3.cellStyle.cellButtons;
          if (!(a(c2) || c2.length <= 0)) for (t3.context.preventOverflow = !c2.every((function(t4) {
            return t4.iMe;
          })), n3 = 0; n3 < G.length; n3++) ot(G[n3], i3, c2, r2, o2, s2, t3);
        }, getCellButtonHitInfo: function(t3) {
          t3.paddingHitInfo = xt(t3);
        }, processMouseDownOnCellPadding: function(t3) {
          At(t3);
        }, processMouseUpOnCellPadding: function(t3) {
          It(t3);
        }, processMouseMoveOnCellPadding: function(t3) {
          kt(t3);
        }, processMouseLeaveOnCellPadding: function(t3) {
          jt(t3);
        }, getCellButtonAutoHeight: function(t3) {
          var n3, e3, r2 = t3.context.sheet, o2 = t3.context.row, a2 = t3.context.col, u2 = t3.cellStyle;
          u2.cellButtons && 0 !== u2.cellButtons.length && (n3 = wt(r2, u2.cellButtons, o2, a2, false, [i2.ButtonPosition.left, i2.ButtonPosition.right]), e3 = 0, n3.forEach((function(n4) {
            var i3 = A.tn(c, n4.button.caption, u2, r2.zoom(), t3.context) - 2, a3 = Rt(n4.button, o2);
            a3 && (i3 = f(i3, Mt(n4.button))), e3 = f(i3, e3);
          })), t3.value = e3 + 1 * M);
        }, getCellButtonAutoWidth: function(t3) {
          var n3, e3, r2 = t3.context.sheet, o2 = t3.context.row, a2 = t3.context.col, u2 = t3.cellStyle;
          u2.cellButtons && 0 !== u2.cellButtons.length && (n3 = wt(r2, u2.cellButtons, o2, a2, false, [i2.ButtonPosition.left, i2.ButtonPosition.right, i2.ButtonPosition.leftOfText, i2.ButtonPosition.rightOfText]), e3 = 0, n3.forEach((function(n4) {
            e3 += bt(n4.button, u2, t3.context, false);
          })), t3.value = e3);
        } }), n2.G_e = Nt, z = "cellButtons", i2.Worksheet.ch(z, { setHost: function() {
          var t3 = this;
          t3.bind(i2.Events.EnterCell + "." + z, (function(n3, e3) {
            Et(t3, e3.row, e3.col, false, e3.sheetArea);
          })), t3.bind(i2.Events.LeaveCell + "." + z, (function(n3, e3) {
            Et(t3, e3.row, e3.col, true, e3.sheetArea);
          })), t3.bind(i2.Events.TopRowChanged + "." + z, (function(n3, e3) {
            Et(t3, e3.row, e3.col, true, e3.sheetArea);
          }));
        }, dispose: function(t3) {
          var n3 = this;
          n3.unbind(i2.Events.EnterCell + "." + z), n3.unbind(i2.Events.LeaveCell + "." + z), n3.unbind(i2.Events.TopRowChanged + "." + z);
        }, processMouseDown: function(t3) {
          var n3 = t3.hitInfo.cellTypeHitInfo;
          n3 && n3.cellButtonHitInfo && At(n3) && (t3.r = true);
        } }), i2.Workbook.ch(z, { onCultureChanged: function() {
          H();
        } });
      }, "./dist/plugins/celltype/celltypes.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), f = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || c(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.fur = n2.ti = n2.EditorType = n2.Context = n2.Base = void 0, r = (i2 = e2("Core")).CellTypes.Base, o = i2.CellTypes.Context, a = i2.CellTypes.EditorType, u = i2.CellTypes.ti, n2.Base = r, n2.Context = o, n2.EditorType = a, n2.ti = u, n2.Hi = i2.CellTypes.Hi, n2.zi = i2.CellTypes.zi, Object.defineProperty(n2, "Corner", { set: function(t3) {
          t3 !== n2.Hi.Corner && (n2.Hi.Corner = t3);
        }, get: function() {
          return n2.Hi.Corner;
        } }), Object.defineProperty(n2, "ColumnHeader", { set: function(t3) {
          t3 !== n2.Hi.ColumnHeader && (n2.Hi.ColumnHeader = t3);
        }, get: function() {
          return n2.Hi.ColumnHeader;
        } }), Object.defineProperty(n2, "RowHeader", { set: function(t3) {
          t3 !== n2.Hi.RowHeader && (n2.Hi.RowHeader = t3);
        }, get: function() {
          return n2.Hi.RowHeader;
        } }), Object.defineProperty(n2, "Text", { set: function(t3) {
          t3 !== n2.zi.Text && (n2.zi.Text = t3);
        }, get: function() {
          return n2.zi.Text;
        } }), f(e2("./dist/plugins/celltype/checkboxcelltype.js"), n2), f(e2("./dist/plugins/celltype/buttoncelltype.js"), n2), f(e2("./dist/plugins/celltype/hyperlinkcelltype.js"), n2), f(e2("./dist/plugins/celltype/data-binding.js"), n2), f(e2("./dist/plugins/celltype/comboboxcelltype.js"), n2), f(e2("./dist/plugins/celltype/addrowcolumnbuttoncelltype.js"), n2), e2("./dist/plugins/celltype/cellbuttons.js"), f(e2("./dist/plugins/celltype/editor/colorpicker.js"), n2), f(e2("./dist/plugins/celltype/editor/timepicker.js"), n2), f(e2("./dist/plugins/celltype/editor/calendar.js"), n2), f(e2("./dist/plugins/celltype/editor/calculator.js"), n2), f(e2("./dist/plugins/celltype/editor/monthPicker.js"), n2), f(e2("./dist/plugins/celltype/editor/listControl.js"), n2), f(e2("./dist/plugins/celltype/dropdown-action.js"), n2), f(e2("./dist/plugins/celltype/radiochecklistcelltype.js"), n2), f(e2("./dist/plugins/celltype/celltypes.ns.js"), n2), f(e2("./dist/plugins/celltype/rangecelltype.js"), n2), f(e2("./dist/plugins/celltype/dataobjectcelltype.js"), n2), f(e2("./dist/plugins/celltype/editor/popupControl.js"), n2), f(e2("./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js"), n2), f(e2("./dist/plugins/celltype/diagonalCellType/index.js"), n2), s = e2("./dist/plugins/celltype/fileUploadCellType/utils.js"), Object.defineProperty(n2, "fur", { enumerable: true, get: function() {
          return s.fur;
        } });
      }, "./dist/plugins/celltype/celltypes.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/celltype/celltypes.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/celltype/celltypes.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Calendar_BuiltIn_Yesterday = n2.Calendar_BuiltIn_Today = n2.Calendar_Today = n2.Calendar_FirstYear = n2.Calendar_EraName_4 = n2.Calendar_EraName_3 = n2.Calendar_EraName_2 = n2.Calendar_EraName_1 = n2.Calendar_Time_PM = n2.Calendar_Time_AM = n2.Calendar_Months_12 = n2.Calendar_Months_11 = n2.Calendar_Months_10 = n2.Calendar_Months_9 = n2.Calendar_Months_8 = n2.Calendar_Months_7 = n2.Calendar_Months_6 = n2.Calendar_Months_5 = n2.Calendar_Months_4 = n2.Calendar_Months_3 = n2.Calendar_Months_2 = n2.Calendar_Months_1 = n2.Calendar_ShortMonths_12 = n2.Calendar_ShortMonths_11 = n2.Calendar_ShortMonths_10 = n2.Calendar_ShortMonths_9 = n2.Calendar_ShortMonths_8 = n2.Calendar_ShortMonths_7 = n2.Calendar_ShortMonths_6 = n2.Calendar_ShortMonths_5 = n2.Calendar_ShortMonths_4 = n2.Calendar_ShortMonths_3 = n2.Calendar_ShortMonths_2 = n2.Calendar_ShortMonths_1 = n2.Calendar_Weeks_7 = n2.Calendar_Weeks_6 = n2.Calendar_Weeks_5 = n2.Calendar_Weeks_4 = n2.Calendar_Weeks_3 = n2.Calendar_Weeks_2 = n2.Calendar_Weeks_1 = n2.Calendar_ShortWeeks_7 = n2.Calendar_ShortWeeks_6 = n2.Calendar_ShortWeeks_5 = n2.Calendar_ShortWeeks_4 = n2.Calendar_ShortWeeks_3 = n2.Calendar_ShortWeeks_2 = n2.Calendar_ShortWeeks_1 = n2.Cancel = n2.OK = void 0, n2.FileUpload_Title = n2.DataObject_MeetTable = n2.DataObject_MeetSpan = n2.DataObject_MeetLock = n2.MultiColumn_InvalidDataSource = n2.Calculator_OverFlowInfo = n2.Calculator_SqrtParameterException = n2.Calculator_InvalidInputInfo = n2.Calculator_DivideByZeroInfo = n2.StandardColor = n2.ThemeColor = n2.Quarter_Format_4 = n2.Quarter_Format_3 = n2.Quarter_Format_2 = n2.Quarter_Format_1 = n2.Calendar_NextTenYear = n2.Calendar_LastTenYear = n2.Calendar_NextYear = n2.Calendar_LastYear = n2.Calendar_NextMonth = n2.Calendar_LastMonth = n2.Calendar_BuiltIn_LastMonth = n2.Calendar_BuiltIn_ThisMonth = n2.Calendar_BuiltIn_Last7Days = void 0, n2.OK = "OK", n2.Cancel = "Cancel", n2.Calendar_ShortWeeks_1 = "MON", n2.Calendar_ShortWeeks_2 = "TUE", n2.Calendar_ShortWeeks_3 = "WED", n2.Calendar_ShortWeeks_4 = "THU", n2.Calendar_ShortWeeks_5 = "FRI", n2.Calendar_ShortWeeks_6 = "SAT", n2.Calendar_ShortWeeks_7 = "SUN", n2.Calendar_Weeks_1 = "Monday", n2.Calendar_Weeks_2 = "Tuesday", n2.Calendar_Weeks_3 = "Wednesday", n2.Calendar_Weeks_4 = "Thursday", n2.Calendar_Weeks_5 = "Friday", n2.Calendar_Weeks_6 = "Saturday", n2.Calendar_Weeks_7 = "Sunday", n2.Calendar_ShortMonths_1 = "JAN", n2.Calendar_ShortMonths_2 = "FEB", n2.Calendar_ShortMonths_3 = "MAR", n2.Calendar_ShortMonths_4 = "APR", n2.Calendar_ShortMonths_5 = "MAY", n2.Calendar_ShortMonths_6 = "JUN", n2.Calendar_ShortMonths_7 = "JUL", n2.Calendar_ShortMonths_8 = "AUG", n2.Calendar_ShortMonths_9 = "SEP", n2.Calendar_ShortMonths_10 = "OCT", n2.Calendar_ShortMonths_11 = "NOV", n2.Calendar_ShortMonths_12 = "DEC", n2.Calendar_Months_1 = "JANUARY", n2.Calendar_Months_2 = "FEBRUARY", n2.Calendar_Months_3 = "MARCH", n2.Calendar_Months_4 = "APRIL", n2.Calendar_Months_5 = "MAY", n2.Calendar_Months_6 = "JUNE", n2.Calendar_Months_7 = "JULY", n2.Calendar_Months_8 = "AUGUST", n2.Calendar_Months_9 = "SEPTEMBER", n2.Calendar_Months_10 = "OCTOBER", n2.Calendar_Months_11 = "NOVEMBER", n2.Calendar_Months_12 = "DECEMBER", n2.Calendar_Time_AM = "AM", n2.Calendar_Time_PM = "PM", n2.Calendar_EraName_1 = "M", n2.Calendar_EraName_2 = "T", n2.Calendar_EraName_3 = "S", n2.Calendar_EraName_4 = "H", n2.Calendar_FirstYear = "1", n2.Calendar_Today = "Today", n2.Calendar_BuiltIn_Today = "Today", n2.Calendar_BuiltIn_Yesterday = "Yesterday", n2.Calendar_BuiltIn_Last7Days = "Last 7 Days", n2.Calendar_BuiltIn_ThisMonth = "This Month", n2.Calendar_BuiltIn_LastMonth = "Last Month", n2.Calendar_LastMonth = "Go to previous month", n2.Calendar_NextMonth = "Go to next month", n2.Calendar_LastYear = "Go to previous year", n2.Calendar_NextYear = "Go to next year", n2.Calendar_LastTenYear = "Go to previous ten years", n2.Calendar_NextTenYear = "Go to next ten years", n2.Quarter_Format_1 = "Q1", n2.Quarter_Format_2 = "Q2", n2.Quarter_Format_3 = "Q3", n2.Quarter_Format_4 = "Q4", n2.ThemeColor = "Theme Colors", n2.StandardColor = "Standard Colors", n2.Calculator_DivideByZeroInfo = "Cannot divide by zero.", n2.Calculator_InvalidInputInfo = "Invalid Input.", n2.Calculator_SqrtParameterException = "Invalid input for function.", n2.Calculator_OverFlowInfo = "Arithmetic operation resulted in an overflow.", n2.MultiColumn_InvalidDataSource = "Invalid data source. The formula should return an array.", n2.DataObject_MeetLock = "Cannot insert data because there's a locked cell in the way.", n2.DataObject_MeetSpan = "Cannot insert data because there's a merged cell in the way.", n2.DataObject_MeetTable = "Cannot insert data because a table in the way.", n2.FileUpload_Title = "+ Upload";
      }, "./dist/plugins/celltype/checkboxcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V = this && this.qKr || (Y = function(t3, n3) {
          return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), z = this && this.nJr || function() {
          return z = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, z.apply(this, arguments);
        }, Y;
        function Z(t3, n3, e3, i3) {
          var r2, o2 = t3.Ut;
          o2 && (o2.do("setValueForKey", n3, e3, L, y, i3), (r2 = o2.getValueForKey(n3, e3, F, i3)) && (clearTimeout(r2), o2.do("setValueForKey", n3, e3, F, y, i3)));
        }
        function W(t3, n3) {
          return "".concat(t3, "-").concat(n3);
        }
        function Q(t3) {
          return 5 * t3;
        }
        function K(t3, n3, e3, i3, r2, o2, a2) {
          t3.save(), t3.fillStyle = a2, t3.beginPath(), 0 === o2 ? t3.rect(n3, e3, i3, r2) : t3.roundRect ? t3.roundRect(n3, e3, i3, r2, o2) : (t3.moveTo(n3 + o2, e3), t3.lineTo(n3 + i3 - o2, e3), t3.quadraticCurveTo(n3 + i3, e3, n3 + i3, e3 + o2), t3.lineTo(n3 + i3, e3 + r2 - o2), t3.quadraticCurveTo(n3 + i3, e3 + r2, n3 + i3 - o2, e3 + r2), t3.lineTo(n3 + o2, e3 + r2), t3.quadraticCurveTo(n3, e3 + r2, n3, e3 + r2 - o2), t3.lineTo(n3, e3 + o2), t3.quadraticCurveTo(n3, e3, n3 + o2, e3)), t3.closePath(), t3.fill(), t3.restore();
        }
        function J(t3, n3, e3, i3, r2, o2) {
          var a2, u2;
          t3.save(), t3.shadowColor = "rgba(0,0,0,0.2)", t3.shadowBlur = 4, t3.fillStyle = o2, t3.beginPath(), a2 = n3 - i3 / 2, u2 = e3, 0 === r2 ? t3.rect(a2, u2, i3, i3) : t3.roundRect ? t3.roundRect(a2, u2, i3, i3, r2) : (t3.moveTo(a2 + r2, u2), t3.lineTo(a2 + i3 - r2, u2), t3.quadraticCurveTo(a2 + i3, u2, a2 + i3, u2 + r2), t3.lineTo(a2 + i3, u2 + i3 - r2), t3.quadraticCurveTo(a2 + i3, u2 + i3, a2 + i3 - r2, u2 + i3), t3.lineTo(a2 + r2, u2 + i3), t3.quadraticCurveTo(a2, u2 + i3, a2, u2 + i3 - r2), t3.lineTo(a2, u2 + r2), t3.quadraticCurveTo(a2, u2, a2 + r2, u2)), t3.closePath(), t3.fill(), t3.restore();
        }
        function X(t3, n3, e3) {
          var i3, r2, o2, a2 = g._(t3), u2 = g._(n3);
          return a2 && u2 ? (i3 = Math.round(a2.r + (u2.r - a2.r) * e3), r2 = Math.round(a2.g + (u2.g - a2.g) * e3), o2 = Math.round(a2.b + (u2.b - a2.b) * e3), "rgb(".concat(i3, ", ").concat(r2, ", ").concat(o2, ")")) : t3;
        }
        function q(t3, e3, i3, r2, o2, u2, s2, c2) {
          var f2, l2, h2, d2, v2, g2 = u2.width, m2 = u2.height, b2 = u2.trackColorOn, y2 = u2.trackColorOff, w2 = u2.sliderColorOn, M2 = u2.sliderColorOff, C2 = u2.sliderMargin, S2 = u2.animationDuration, T2 = u2.trackRadius, x2 = u2.sliderRadius, A2 = { width: g2, height: m2, animationDuration: S2, text: o2 };
          return A2.isChecked = e3, A2.trackRadius = a(T2) ? m2 / 2 : T2 * c2, l2 = m2 - 2 * (f2 = m2 < 2 * C2 ? n2.DEFAULT_TOGGLE_OPTIONS.sliderMargin : C2) * c2, A2.sliderRadius = a(x2) ? Math.max(2, l2 / 2) : x2 * c2, A2.sliderSize = l2, A2.trackColor = p(t3, e3 ? b2 : y2), A2.sliderColor = p(t3, e3 ? w2 : M2), d2 = i3 + g2 - (h2 = l2 / 2 + f2 * c2), v2 = i3 + h2, A2.sliderX = e3 ? d2 : v2, A2.sliderY = r2 + (m2 - l2) / 2, A2.style = s2, A2;
        }
        function $(t3, n3, e3, i3, r2, o2, u2, s2) {
          t3.save(), t3.strokeStyle = u2 ? "black" : "#B3B3B3", t3.strokeRect(n3 + 0.5, e3 + 0.5, 2 * i3 + 0.05, 2 * i3 + 0.05), t3.fillStyle = D, t3.fillRect(n3 + 1, e3 + 1, 2 * i3 - 1, 2 * i3 - 1), s2 && a(o2) ? (t3.beginPath(), t3.fillStyle = _, t3.rect(n3 + 3 * r2, e3 + 3 * r2, 2 * (i3 - 2.5 * r2), 2 * (i3 - 2.5 * r2)), t3.fill()) : true == !!o2 && (t3.beginPath(), t3.lineWidth = 2.5 * r2, t3.moveTo(n3 + 3 * r2, e3 + i3), t3.lineTo(n3 + i3, e3 + 2 * i3 - 3.5 * r2), t3.lineTo(n3 + 2 * i3 - 1.5 * r2, e3 + 3 * r2), t3.stroke()), t3.restore();
        }
        function tt(t3) {
          var e3 = t3.sheet, i3 = t3.isChecked, r2 = t3.startX, o2 = t3.startY, a2 = t3.width, u2 = t3.height, s2 = t3.trackColorOn, c2 = t3.trackColorOff, f2 = t3.sliderColorOn, l2 = t3.sliderColorOff, h2 = t3.sliderMargin, d2 = t3.progress, v2 = t3.targetIsChecked, g2 = t3.zoomFactor, m2 = u2 < 2 * h2 ? n2.DEFAULT_TOGGLE_OPTIONS.sliderMargin : h2, b2 = u2 - 2 * m2 * g2, y2 = b2 / 2 + m2 * g2, w2 = a2 - y2, M2 = y2, C2 = i3 ? w2 : M2, S2 = v2 ? w2 : M2, T2 = r2 + C2 + (S2 - C2) * d2, x2 = o2 + (u2 - b2) / 2, A2 = p(e3, i3 ? s2 : c2), I2 = p(e3, v2 ? s2 : c2), k2 = p(e3, i3 ? f2 : l2), N2 = p(e3, v2 ? f2 : l2), j2 = X(A2, I2, d2), D2 = X(k2, N2, d2);
          return { sliderX: T2, sliderY: x2, trackColor: j2, sliderColor: D2 };
        }
        function nt(t3) {
          var n3, e3, i3, o2, a2, u2 = t3.width, s2 = t3.height, c2 = t3.textAlign, f2 = t3.textWidth, l2 = t3.textHeight, h2 = t3.zoomFactor, d2 = t3.scaleFactor, v2 = t3.fontSize, p2 = t3.style, g2 = t3.cellRect, m2 = t3.text, b2 = Q(h2 * d2), y2 = p2.hAlign, w2 = g2.x, C2 = g2.width, S2 = 0, T2 = p2.vAlign, x2 = g2.y, A2 = g2.height, I2 = 0, k2 = 0, N2 = m2.split("\n").length > 1, j2 = w2, D2 = x2, _2 = C2, O2 = A2;
          return 0 === c2 || 1 === c2 ? (1 === y2 ? S2 = w2 + C2 / 2 - u2 / 2 : 2 === y2 ? (S2 = w2 + C2 - b2 - u2, _2 = C2 - b2 + 2) : (S2 = w2 + b2, j2 = w2 + b2 - 1, _2 = C2 - b2 + 1), n3 = _2 - 3 - 1, O2 = (e3 = r.q.un(m2, n3, p2.font)).length * l2, N2 = N2 || e3.length > 1, I2 = s2 + O2, 0 === c2 ? (1 === T2 ? (k2 = x2 + A2 / 2 - I2 / 2 + O2 - 3, O2 += 6) : k2 = 2 === T2 ? x2 + A2 - b2 - I2 + O2 : x2 + b2 + O2, D2 = k2 - O2) : (1 === T2 ? (k2 = x2 + A2 / 2 - I2 / 2 - 3, O2 += 6) : k2 = 2 === T2 ? x2 + A2 - b2 - I2 : x2 + b2, D2 = k2 + s2)) : (k2 = 1 === T2 ? x2 + A2 / 2 - s2 / 2 : 2 === T2 ? x2 + A2 - b2 - s2 : x2 + b2, a2 = l2 / 2 - (i3 = M(v2)) / 2 + (o2 = i3 > 8 ? Math.floor((i3 - 8) / 5 + 2) : 1) - 1, N2 = N2 || f2 > C2 - u2 - b2 - 4, _2 = C2 - u2 - b2, 2 === T2 ? O2 = A2 + a2 + 2 - b2 : 0 === T2 && (O2 = A2 - ((D2 = x2 - (a2 + 2) + b2) - x2)), 2 === c2 ? (S2 = w2 + C2 - b2 - u2, _2 = C2 - u2) : (S2 = w2 + b2, j2 = w2 + b2 + u2 + 1)), { multiLine: N2, startX: S2, startY: k2, textX: j2, textY: D2, textW: _2, textH: O2 };
        }
        function et(t3, n3, e3, i3, r2, o2) {
          var a2 = Q(r2), u2 = n3.hAlign, s2 = e3.x - 1, c2 = e3.width + 1, f2 = 0, l2 = 0;
          return 0 === t3 || 1 === t3 ? (l2 = s2 + a2, 1 === u2 ? l2 = s2 + c2 / 2 - o2 / 2 : 2 === u2 && (l2 = s2 + c2 - a2 - o2)) : 2 === t3 ? (f2 = o2 + i3, l2 = s2 + a2 + i3, 1 === u2 ? l2 = s2 + c2 / 2 - f2 / 2 + i3 : 2 === u2 && (l2 = s2 + c2 - a2 - f2 + i3)) : 4 === t3 ? (f2 = o2, l2 = s2 + a2, 1 === u2 ? l2 = s2 + c2 / 2 - f2 / 2 : 2 === u2 && (l2 = s2 + c2 - a2 - f2)) : (f2 = o2 + i3, l2 = s2 + a2, 1 === u2 ? l2 = s2 + c2 / 2 - f2 / 2 : 2 === u2 && (l2 = s2 + c2 - a2 - f2)), l2 - s2;
        }
        function it(t3, n3, e3, i3, r2, o2) {
          var a2 = Q(r2), u2 = n3.vAlign, s2 = e3.y - 1, c2 = e3.height + 1, f2 = 0, l2 = 0;
          return 0 === t3 ? (f2 = o2 + i3, l2 = s2 + a2 + i3, 1 === u2 ? l2 = s2 + c2 / 2 - f2 / 2 + i3 : 2 === u2 && (l2 = s2 + c2 - a2 - f2 + i3)) : 1 === t3 ? (f2 = o2 + i3, l2 = s2 + a2, 1 === u2 ? l2 = s2 + c2 / 2 - f2 / 2 : 2 === u2 && (l2 = s2 + c2 - a2 - f2)) : (l2 = s2 + a2, 1 === u2 ? l2 = s2 + c2 / 2 - o2 / 2 : 2 === u2 && (l2 = s2 + c2 - a2 - o2)), l2 - s2;
        }
        function rt(t3, n3, e3, i3, r2, o2) {
          var u2, s2, c2, f2, l2;
          t3.enable() && (a(u2 = o2) && (s2 = n3.getValue(e3, i3, r2), u2 = t3.wG(s2)), c2 = { cmd: "editCell", sheetName: n3.name(), row: e3, col: i3, newValue: null != o2 ? o2 : u2, autoFormat: true }, n3.dataRanges && (f2 = n3.dataRanges.getByPosition(e3, i3)) && (l2 = f2.convertContext({ sheet: n3, row: e3, col: i3, sheetArea: r2 })) && l2.sheet !== n3 && (c2.sheetName = l2.sheet.name(), c2.row = l2.row, c2.col = l2.col), n3.Qy().execute(c2), t3.j3(n3, e3, i3, r2));
        }
        function ot(t3, n3, e3, i3, r2) {
          var o2, a2;
          false !== t3.enable() && (o2 = r2 && r2.sheet, a2 = t3.getEditorValue(n3, r2), t3.setEditorValue(n3, a2, r2), t3.updateEditor(n3, e3, i3, r2), t3.j3(o2, o2.ui, o2.ci, r2.sheetArea));
        }
        function at(t3) {
          var e3 = z({}, n2.DEFAULT_TOGGLE_OPTIONS);
          return "number" == typeof t3.width && t3.width > 0 && (e3.width = t3.width), "number" == typeof t3.height && t3.height > 0 && (t3.height <= e3.width ? e3.height = t3.height : n2.DEFAULT_TOGGLE_OPTIONS.height > e3.width && (e3.height = e3.width)), "string" == typeof t3.trackColorOn && (e3.trackColorOn = t3.trackColorOn), "string" == typeof t3.trackColorOff && (e3.trackColorOff = t3.trackColorOff), "string" == typeof t3.sliderColorOn && (e3.sliderColorOn = t3.sliderColorOn), "string" == typeof t3.sliderColorOff && (e3.sliderColorOff = t3.sliderColorOff), "number" == typeof t3.sliderMargin && t3.sliderMargin >= 0 && (t3.sliderMargin < e3.height / 2 ? e3.sliderMargin = t3.sliderMargin : n2.DEFAULT_TOGGLE_OPTIONS.sliderMargin > e3.height / 2 && (e3.sliderMargin = 0)), "number" == typeof t3.animationDuration && t3.animationDuration >= 0 && (e3.animationDuration = t3.animationDuration), "number" == typeof t3.trackRadius && t3.trackRadius >= 0 && t3.trackRadius < e3.height / 2 && (e3.trackRadius = t3.trackRadius), "number" == typeof t3.sliderRadius && t3.sliderRadius >= 0 && t3.sliderRadius < e3.height / 2 && (e3.sliderRadius = t3.sliderRadius), "boolean" == typeof t3.autoSize && (e3.autoSize = t3.autoSize), e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CheckBox = n2.validateToggleOptions = n2.calculateToggleButtonPositionAndColor = n2.paintCheckBox = n2.calculateToggleButtonState = n2.interpolateColor = n2.paintSlider = n2.paintTrack = n2.DEFAULT_TOGGLE_OPTIONS = n2.animationKey = n2.Bqu = n2.CheckBoxTextAlign = void 0, i2 = e2("Common"), r = e2("Core"), o = r.mt.En, a = i2.Common.lt.ht, u = r.mt.vt, s = r.mt.vi, c = r.CellTypes.Context, f = r.CellTypes.Base, l = r.GC$, h = l.each, d = c.gn, v = r.mt.yt, p = r.I.m, g = i2.Common.ft, m = r.W.x2e, b = null, y = void 0, w = Math.max, M = parseInt, C = "position", S = "absolute", T = "font", x = "left", A = "right", I = "top", k = "alphabetic", N = ".gcEditingInput", j = "background-color", D = "white", _ = "green", O = "div", E = "normal 11pt calibri", R = "white-space", L = "_isFirstMouseUp", F = "_mouseupToken", (function(t3) {
          t3[t3.top = 0] = "top", t3[t3.bottom = 1] = "bottom", t3[t3.left = 2] = "left", t3[t3.right = 3] = "right", t3[t3.inside = 4] = "inside";
        })(B = n2.CheckBoxTextAlign || (n2.CheckBoxTextAlign = {})), P = (function() {
          function t3(t4, n3, e3) {
            this.lJr = null, this.$Un = null, this.hJr = false, this.r6u = 0, this.dJr = 0, this.vJr = 0, this.GIu = 0, this.GIu = t4, this.n3t = n3, this.pJr = e3;
          }
          return t3.prototype.start = function(t4, n3) {
            this.hJr = true, this.r6u = Date.now(), this.vJr = 0, this.$Un = { row: t4, col: n3 }, this.gJr();
          }, t3.prototype.stop = function() {
            this.lJr && (cancelAnimationFrame(this.lJr), this.lJr = null), this.hJr = false, this.vJr = 0;
          }, t3.prototype.getCurrentProgress = function() {
            return this.mJr(this.vJr + this.dJr);
          }, t3.prototype.setBaseProgress = function(t4) {
            this.dJr = t4;
          }, t3.prototype.setDuration = function(t4) {
            this.GIu = t4;
          }, t3.prototype.isAnimating = function(t4, n3) {
            return this.hJr && this.$Un.row === t4 && this.$Un.col === n3;
          }, t3.prototype.mJr = function(t4) {
            return t4 < 0.5 ? 2 * t4 * t4 : 1 - Math.pow(-2 * t4 + 2, 2) / 2;
          }, t3.prototype.gJr = function() {
            var t4, n3, e3, i3 = this;
            this.hJr && (n3 = (t4 = Date.now()) - this.r6u, e3 = Math.min(n3 / this.GIu, 1), this.vJr = e3, this.n3t(), this.vJr + this.dJr >= 1 ? (this.hJr = false, this.pJr(), this.stop()) : this.lJr = requestAnimationFrame((function() {
              i3.gJr();
            })));
          }, t3;
        })(), n2.Bqu = P, n2.animationKey = W, G = 12, n2.DEFAULT_TOGGLE_OPTIONS = { width: 30, height: 15, trackColorOn: "#4CAF50", trackColorOff: "#bfbfbf", sliderColorOn: "#ffffff", sliderColorOff: "#ffffff", sliderMargin: 2, animationDuration: 100, trackRadius: void 0, sliderRadius: void 0, autoSize: false }, U = { caption: "", textTrue: "", textIndeterminate: "", textFalse: "", textAlign: 3, isThreeState: false, boxSize: G, mode: "checkbox", toggleOptions: n2.DEFAULT_TOGGLE_OPTIONS }, H = (function(t3) {
          function e3() {
            var e4, i3 = t3.call(this) || this;
            return i3.typeName = "5", i3._boxSize = G, i3.aQi = true, i3._toggleOptions = n2.DEFAULT_TOGGLE_OPTIONS, i3._mode = "checkbox", i3.G$r = {}, e4 = i3, h(U, (function(t4, n3) {
              e4["_" + t4] = n3;
            })), i3;
          }
          return V(e3, t3), e3.prototype.Poe = function(t4, n3, e4, i3, r2, o2, a2, u2, s2) {
            var c2 = this, f2 = M(e4.startX), l2 = M(e4.startY), h2 = M(e4.textX), d2 = M(e4.textY), v2 = M(e4.textW), p2 = M(e4.textH);
            "toggle" === this._mode ? c2.SJr(t4, f2, l2, i3, a2, n3, u2, o2, s2) : c2.Goe(t4, f2, l2, r2, o2, a2), c2.paintText(t4, n3, h2, d2, v2, p2, u2, i3, n3, null);
          }, e3.prototype.Goe = function(t4, n3, e4, i3, r2, o2) {
            $(t4, n3, e4, i3, r2, o2, this.aQi, this._isThreeState);
          }, e3.prototype.paintValue = function(t4, n3, e4, i3, o2, a2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2, S2, T2, I2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2;
            if (t4) {
              if (t4.save(), t4.rect(e4, i3, o2, a2), t4.clip(), t4.beginPath(), f2 = s2.hAlign, l2 = s2.font, h2 = s2.foreColor, v2 = (d2 = this)._textAlign, p2 = d2.getText(n3, c2), g2 = 0, m2 = 0, (b2 = c2.sheet) && (g2 = b2.Qt(p2, l2), m2 = u(l2)), y2 = b2.zoom(), w2 = c2.isPrinting, C2 = c2.printZoomFactor, w2 && "number" == typeof C2 && 1 !== C2 && (y2 = C2), ++e4, ++i3, --o2, --a2, S2 = this.TJr(b2, s2), I2 = (T2 = this.xJr(S2, m2, y2)).width, N2 = T2.height, j2 = T2.scaleFactor, D2 = new r.Rect(e4, i3, o2, a2), s2.wordWrap && (_2 = void 0, (_2 = nt(O2 = { width: I2, height: N2, textAlign: v2, textWidth: g2, textHeight: m2, zoomFactor: y2, scaleFactor: j2, fontSize: c2.fontInfo.fontSize, style: s2, cellRect: D2, text: p2 })).multiLine)) return d2.Poe(t4, p2, _2, c2, I2 / 2, y2, n3, s2, S2), void t4.restore();
              E2 = et(v2, s2, D2, g2, y2 * j2, I2), R2 = it(v2, s2, D2, m2, y2 * j2, N2), L2 = M((e4 + E2).toString()), F2 = M((i3 + R2).toString()), B2 = x, P2 = L2 + 1, 1 === f2 ? (B2 = "center", P2 += I2 / 2) : 2 === f2 && (B2 = A, P2 += I2), l2 && t4.font !== l2 && r.mt.bt(t4, l2), h2 && (t4.fillStyle = h2), G2 = s2.textDecoration, V2 = m2 / 2 - (U2 = parseInt(c2.fontInfo.fontSize, 10)) / 2 + (H2 = U2 > 8 ? Math.floor((U2 - 8) / 5 + 2) : 1) - 1, t4.textBaseline !== k && (t4.textBaseline = k), 2 === v2 ? (t4.textAlign = A, t4.fillText(p2, L2 + 1 - 2, F2 + N2 / 2 + m2 / 2 - V2), G2 && d2.le(t4, G2, L2 + 1 - 2, F2 + N2 / 2 + m2 / 2 - V2, g2, U2, H2)) : 0 === v2 && (t4.textAlign = B2, t4.fillText(p2, P2, F2 - 2 - V2), G2 && d2.le(t4, G2, P2, F2 - 2 - V2, g2, m2)), "toggle" === this._mode ? d2.SJr(t4, L2, F2, c2, n3, p2, s2, y2, S2) : d2.Goe(t4, L2, F2, I2 / 2, y2, n3), h2 && (t4.fillStyle = h2), 3 === v2 ? (t4.textAlign = x, t4.fillText(p2, L2 + 1 + I2 + 2, F2 + N2 / 2 + m2 / 2 - V2), G2 && d2.le(t4, G2, L2 + 1 + I2 + 2, F2 + N2 / 2 + m2 / 2 - V2, g2, U2, H2)) : 1 === v2 && (t4.textAlign = B2, t4.fillText(p2, P2, F2 + N2 + 2 + m2 - V2), G2 && d2.le(t4, G2, P2, F2 + N2 + 2 + m2 - V2, g2, U2, H2)), t4.restore();
            }
          }, e3.prototype.TJr = function(t4, n3) {
            var e4 = t4.Qt(this._caption, n3.font), i3 = this._textTrue ? t4.Qt(this._textTrue, n3.font) : e4, r2 = this._textFalse ? t4.Qt(this._textFalse, n3.font) : e4;
            return Math.max(i3, r2);
          }, e3.prototype.xJr = function(t4, n3, e4) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this;
            return "toggle" === this._mode ? i3 = (r2 = this._toggleOptions.autoSize) ? (o2 = this._textAlign === B.inside) ? { width: u2 = t4 + 1.5 * (a2 = n3 + 4 * e4), height: a2, scaleFactor: 1 } : { width: u2 = 2 * (a2 = Math.round(0.8 * n3)), height: a2, scaleFactor: 1 } : { width: this._toggleOptions.width * e4, height: this._toggleOptions.height * e4, scaleFactor: 1 } : (s2 = f2._boxSize, u2 = G, c2 = 1, "auto" === s2 && (u2 = n3 / 2, c2 = n3 / 2 / G), "number" == typeof s2 && s2 > 0 && (u2 = e4 * s2, c2 = s2 / G), i3 = { width: u2, height: u2, scaleFactor: c2 }), i3;
          }, e3.prototype.bi = function(t4, n3, e4) {
            var i3, r2 = this, o2 = n3.font, a2 = r2.getText(t4, e4), s2 = 0, c2 = e4.sheet;
            return c2 && (s2 = u(o2), a2 && (s2 *= (i3 = a2.split(/\r\n|\r|\n/)).length)), s2;
          }, e3.prototype.getText = function(t4, n3) {
            return this.SG(t4);
          }, e3.prototype.focus = function(t4, n3) {
            t4 && t4.parentNode.focus();
          }, e3.prototype.createEditorElement = function(t4, n3) {
            var e4, i3, a2, u2, s2, c2, f2, h2;
            return "toggle" === this._mode || (e4 = t4 && t4.sheet && t4.sheet.parent && t4.sheet.parent.Ti, i3 = r.mt.gi(e4) + 1e3, l(n3).css("z-index", i3).attr("tabindex", 1).attr("gcUIElement", "gcEditingInput"), (a2 = l(n3.firstChild)).css("overflow", "hidden"), (u2 = l(o("input"))).attr("type", "checkbox"), u2.attr("class", "gc-checkbox-cell-type-input"), c2 = (s2 = this.TG(t4)) / G, u2.css("transform", "scale(" + c2 + ")"), a2.append(u2), (f2 = l(o("span"))).css(C, S).css(T, v(E)).css("cursor", "default").css(R, "nowrap").css("word-break", "break-all"), a2.append(f2), (h2 = l(o(O))).css(C, S).css(j, _).css("width", 2 * (s2 / 2 - 2.5)).css("height", 2 * (s2 / 2 - 2.5)), a2.append(h2)), b;
          }, e3.prototype.TG = function(t4) {
            var n3, e4, i3 = t4.sheet, r2 = i3.zoom();
            return "number" == typeof this._boxSize && this._boxSize > 0 ? this._boxSize * r2 : "auto" === this._boxSize ? (e4 = "", e4 = (n3 = i3.Z_(t4.row, t4.col)) && n3.font ? n3.font : E, r2 * u(e4) / 2) : G / 2;
          }, e3.prototype.wG = function(t4) {
            var n3;
            return n3 = this._isThreeState ? !a(t4) && (true != !!t4 || b) : !t4;
          }, e3.prototype.setEditorValue = function(t4, n3, e4) {
            var i3, r2, o2, u2, s2, c2, f2, h2, d2, v2;
            t4 && this.aQi && (r2 = (i3 = t4.parentNode.children)[0], o2 = i3[1], u2 = i3[2], r2 && o2 && u2 && (s2 = this, f2 = (c2 = e4 && e4.sheet) && c2.Ai, d2 = void 0, v2 = void 0, (h2 = c2 && c2.Pgr) ? (v2 = n3, d2 = !!n3, s2._isThreeState && (a(v2) ? l(u2).show() : l(u2).hide())) : (f2 || (v2 = s2.wG(n3)), s2._isThreeState ? a(v2) ? (d2 = false, l(u2).show()) : (d2 = !!v2, l(u2).hide()) : d2 = !!v2), r2.checked = d2, l(o2).text(s2.SG(v2))));
          }, e3.prototype.getEditorValue = function(t4, n3) {
            if (t4) {
              var e4 = t4.parentNode.children, i3 = e4[0], r2 = e4[1], o2 = e4[2];
              if (i3 && r2 && o2 && (!this._isThreeState || !l(o2).isVisible())) return i3.checked;
            }
            return b;
          }, e3.prototype.j3 = function(t4, n3, e4, i3) {
            var r2 = t4.parent;
            r2 && r2.j3(t4, n3, e4, i3);
          }, e3.prototype.activateEditor = function(t4, n3, e4, i3) {
            var r2, o2, a2 = i3 && i3.sheet;
            t4 && a2 && (r2 = l(t4.parentNode.parentNode), o2 = this, r2.bind("mousedown" + N, (function(t5) {
              s(t5);
            })), r2.bind("mouseup" + N, (function() {
              ot(o2, t4, n3, e4, i3);
            })), r2.bind("keydown" + N, (function(t5) {
              var n4 = t5.keyCode;
              if (!t5.ctrlKey && !t5.shiftKey && !t5.altKey) {
                if (32 === n4) return o2.AG = true, s(t5), false;
                8 === n4 && s(t5);
              }
            })), r2.bind("keyup" + N, (function(r3) {
              !o2.AG || 32 !== r3.keyCode || r3.ctrlKey || r3.shiftKey || r3.altKey || (o2.AG = false, ot(o2, t4, n3, e4, i3));
            })), l(t4).bind("click", (function(t5) {
              s(t5);
            })));
          }, e3.prototype.updateEditor = function(t4, n3, e4, i3) {
            var r2, o2, a2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2, A2, k2, N2, j2, D2, _2, O2, E2, L2, F2, B2, P2, U2, H2, V2 = i3 && i3.sheet;
            t4 && V2 && (r2 = V2.Dn, s2 = (a2 = (o2 = t4.parentNode).children)[0], c2 = a2[1], f2 = a2[2], s2 && c2 && f2 && (l(o2).width(e4.width).height(e4.height), d2 = (h2 = l(c2)).text(), p2 = n3.foreColor, g2 = n3.font, m2 = n3.hAlign, b2 = n3.textDecoration, p2 && h2.css("color", p2), y2 = void 0, y2 = g2 || r2.Nn(), (w2 = V2.zoom()) > 1 && (y2 = r2._n(y2)), h2.css(T, v(y2)), M2 = V2.Gi(d2, y2), C2 = u(y2), d2 && (C2 *= (S2 = d2.split(/\r\n|\r|\n/)).length), D2 = et(k2 = (A2 = this)._textAlign, n3, e4, M2, w2 * (j2 = (N2 = this.TG(i3)) / G), N2), _2 = it(k2, n3, e4, C2, w2 * j2, N2), l(s2).css("margin-left", D2).css("margin-top", _2), O2 = s2.offsetLeft, E2 = s2.offsetTop, L2 = s2.offsetWidth, F2 = s2.offsetHeight, B2 = 0, P2 = 0, 0 === k2 ? (B2 = O2, 1 === m2 ? B2 = O2 + N2 / 2 - M2 / 2 : 2 === m2 && (B2 = O2 + N2 - M2), P2 = E2 - C2, B2 -= (j2 - 1) * G / 2, P2 -= (j2 - 1) * G / 2) : 1 === k2 ? (B2 = O2, 1 === m2 ? B2 = O2 + N2 / 2 - M2 / 2 : 2 === m2 && (B2 = O2 + N2 - M2), P2 = E2 + F2, B2 -= (j2 - 1) * G / 2, P2 += (j2 - 1) * G / 2) : 2 === k2 ? (B2 = O2 - M2 - 2, P2 = E2 + N2 / 2 - C2 / 2, B2 -= (j2 - 1) * G / 2, P2 -= (j2 - 1) * G / 2) : (B2 = O2 + L2 + 2, P2 = E2 + N2 / 2 - C2 / 2, B2 += (j2 - 1) * G / 2, P2 -= (j2 - 1) * G / 2), h2.css(x, B2).css(I, P2), n3.wordWrap ? h2.css(R, "normal") : h2.css(R, "nowrap"), A2._isThreeState ? (U2 = O2 + (L2 - f2.offsetWidth) / 2, H2 = E2 + (F2 - f2.offsetHeight) / 2, l(f2).css(x, U2).css(I, H2).toggle().toggle()) : l(f2).hide(), b2 && A2.Qe(h2, b2)));
          }, e3.prototype.SG = function(t4) {
            var n3 = this, e4 = n3._caption;
            return n3._isThreeState && a(t4) ? n3._textIndeterminate || e4 : true == !!t4 ? n3._textTrue || e4 : n3._textFalse || e4;
          }, e3.prototype.getHitInfo = function(t4, n3, e4, i3, r2) {
            var o2, u2, s2, c2, f2, l2;
            return r2 && this.aQi && (o2 = r2.sheetArea, a(o2) || 3 === o2) ? (u2 = { x: t4, y: n3, row: r2.row, col: r2.col, cellRect: i3, sheetArea: 3, sheet: r2.sheet, cellStyle: e4 }, "toggle" === this._mode ? (s2 = u2.sheet.getValue(u2.row, u2.col, u2.sheetArea), f2 = (c2 = this.getInnerRect(u2, s2)).boxRect, l2 = c2.textRect, u2.isReservedLocation = f2.contains(t4, n3) || l2.contains(t4, n3)) : u2.isReservedLocation = true, u2) : b;
          }, e3.prototype.processMouseDown = function(t4) {
            if (!t4) return false;
            t4.isReservedLocation && (this.pG = true);
          }, e3.prototype.getInnerRect = function(t4, n3) {
            var e4, i3, o2, a2, s2, c2, f2, l2, h2, v2, p2, g2, b2, y2, w2, C2, S2, T2, I2, k2, N2, j2, D2, _2, O2, E2, R2 = new r.Rect(0, 0, 0, 0), L2 = new r.Rect(0, 0, 0, 0), F2 = t4.sheet, B2 = t4.cellStyle, P2 = t4.cellRect, G2 = P2.x, U2 = P2.y, H2 = P2.width, V2 = P2.height, z2 = B2.hAlign, Y2 = this, Z2 = Y2._textAlign, W2 = Y2.getText(n3), Q2 = 0, K2 = 0;
            return F2 ? (e4 = F2.zoom(), B2.font = m(B2, e4).font, Q2 = F2.Qt(W2, B2.font), K2 = u(B2.font), ++G2, ++U2, --H2, --V2, i3 = d(B2, 0, false, e4), o2 = d(B2, 1, false, e4), a2 = d(B2, 2, false, e4), G2 += s2 = d(B2, 3, false, e4), U2 += i3, H2 -= s2 + o2, V2 -= i3 + a2, c2 = this.TJr(F2, B2), l2 = (f2 = this.xJr(c2, K2, e4)).width, h2 = f2.height, v2 = f2.scaleFactor, p2 = new r.Rect(G2, U2, H2, V2), g2 = 0, b2 = 0, B2.wordWrap && (y2 = void 0, (y2 = nt(w2 = { width: l2, height: h2, textAlign: Z2, textWidth: Q2, textHeight: K2, zoomFactor: e4, scaleFactor: v2, fontSize: B2.fontSize, style: B2, cellRect: p2, text: W2 })).multiLine) ? (g2 = M(y2.startX), b2 = M(y2.startY), C2 = M(y2.textX), S2 = M(y2.textY), T2 = M(y2.textW), I2 = M(y2.textH), { boxRect: L2 = new r.Rect(g2, b2, l2, h2), textRect: R2 = new r.Rect(C2, S2, T2, I2) }) : (k2 = et(Z2, B2, p2, Q2, e4 * v2, l2), N2 = it(Z2, B2, p2, K2, e4 * v2, h2), g2 = M((G2 + k2).toString()), b2 = M((U2 + N2).toString()), j2 = x, D2 = g2 + 1, 1 === z2 ? (j2 = "center", D2 += l2 / 2) : 2 === z2 && (j2 = A, D2 += l2), E2 = K2 / 2 - (_2 = parseInt(B2.fontSize, 10)) / 2 + (O2 = _2 > 8 ? Math.floor((_2 - 8) / 5 + 2) : 1) - 1, 2 === Z2 ? R2 = new r.Rect(g2 + 1 - 2 - Q2, b2, Q2, K2) : 0 === Z2 ? R2 = "left" === j2 ? new r.Rect(D2, b2 - 2 - E2 - K2 / 2, Q2, K2) : "right" === j2 ? new r.Rect(D2 - Q2, b2 - 2 - E2 - K2 / 2, Q2, K2) : new r.Rect(D2 - Q2 / 2, b2 - 2 - E2 - K2 / 2, Q2, K2) : 3 === Z2 ? R2 = new r.Rect(g2 + 1 + l2 + 2, b2 + h2 / 2 + K2 / 2 - E2 - K2, Q2, K2) : 1 === Z2 && (R2 = "left" === j2 ? new r.Rect(D2, b2 + h2 + 2 - E2, Q2, K2) : "right" === j2 ? new r.Rect(D2 - Q2, b2 + h2 + 2 - E2, Q2, K2) : new r.Rect(D2 - Q2 / 2, b2 + h2 + 2 - E2, Q2, K2)), { boxRect: L2 = new r.Rect(g2, b2, l2, h2), textRect: R2 })) : { boxRect: L2, textRect: R2 };
          }, e3.prototype.processMouseUp = function(t4) {
            var n3, e4, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, y2 = t4 && t4.sheet;
            if (y2 && m2.pG && t4.isReservedLocation) {
              if (e4 = { r: b }, r.CellTypes.Base.et(y2, "beforeEditCheckboxCellType", e4), e4.r) return;
              if (m2.pG = false, i3 = t4.row, o2 = t4.col, a2 = t4.sheetArea, "toggle" === this._mode) {
                if (u2 = y2.getValue(i3, o2, a2), c2 = (s2 = this.getInnerRect(t4, u2)).boxRect, f2 = s2.textRect, l2 = c2.contains(t4.x, t4.y), h2 = f2.contains(t4.x, t4.y), !l2 && !h2) return false;
                if (this._toggleOptions.animationDuration > 0 && (!y2.isActualProtected() || false === (null === (n3 = t4.cellStyle) || void 0 === n3 ? void 0 : n3.locked))) return (null == (d2 = this.G$r[W(i3, o2)]) ? void 0 : d2.isAnimating(i3, o2)) ? (v2 = 1 - d2.getCurrentProgress(), this.AJr(i3, o2), this.IJr(y2, i3, o2, a2, t4.cellRect, v2), true) : (this.IJr(y2, i3, o2, a2, t4.cellRect, 0), true);
              }
              if (!(p2 = y2.Ut.getValueForKey(i3, o2, L, a2))) return rt(m2, y2, i3, o2, a2), y2.Ut.do("setValueForKey", i3, o2, L, true, a2), g2 = setTimeout((function() {
                Z(y2, i3, o2, a2);
              }), 250), y2.Ut.do("setValueForKey", i3, o2, F, g2, a2), true;
              Z(y2, i3, o2, a2);
            }
            return false;
          }, e3.prototype.processMouseLeave = function(t4) {
            if (!t4) return false;
            this.pG = false;
          }, e3.prototype.isReservedKey = function(t4, n3) {
            return 32 === t4.keyCode && !t4.ctrlKey && !t4.shiftKey && !t4.altKey;
          }, e3.prototype.processKeyUp = function(t4, n3) {
            var e4 = n3.sheet, i3 = { r: b };
            if (r.CellTypes.Base.et(e4, "beforeEditCheckboxCellType", i3), !i3.r) return rt(this, e4, n3.row, n3.col, n3.sheetArea), true;
          }, e3.prototype.getAutoFitWidth = function(t4, n3, e4, i3, r2) {
            var o2 = this, a2 = o2._textAlign, u2 = r2.sheet, s2 = c.Bt(t4, o2.SG(t4), e4, i3, r2), f2 = this.TJr(u2, e4), l2 = o2.bi(t4, e4, r2), h2 = this.xJr(f2, l2, 1).width;
            return a2 === B.top || a2 === B.bottom ? s2 = w(s2, h2) : a2 === B.inside ? s2 = h2 : s2 += h2, s2 + 5 + 2;
          }, e3.prototype.getAutoFitHeight = function(t4, n3, e4, i3, r2) {
            var o2 = this, a2 = o2._textAlign, u2 = o2.SG(t4), s2 = r2.sheet, f2 = c.tn(u2, u2, e4, i3, r2), l2 = this.TJr(s2, e4), h2 = o2.bi(t4, e4, r2), d2 = this.xJr(l2, h2, 1).height;
            return a2 === B.top || a2 === B.bottom ? f2 += d2 : f2 = a2 === B.inside ? d2 : w(f2, d2), f2 + 5;
          }, e3.prototype.QD = function(t4) {
            this.isReservedKey(t4) && s(t4);
          }, e3.prototype.isImeAware = function(t4) {
            return false;
          }, e3.prototype.Ke = function() {
          }, e3.prototype.Je = function(t4) {
            var n3 = { caption: t4.caption, textTrue: t4.textTrue, textIndeterminate: t4.textIndeterminate, textFalse: t4.textFalse, textAlign: t4.textAlign && B[t4.textAlign], isThreeState: t4.isThreeState, boxSize: t4.boxSize, toggleOptions: t4.toggleOptions, mode: t4.mode };
            this.fromJSON(n3);
          }, e3.prototype.toJSON = function() {
            var t4, n3 = this, e4 = { typeName: n3.typeName };
            return h(U, (function(i3, r2) {
              (t4 = n3["_" + i3]) !== r2 && (e4[i3] = t4);
            })), e4;
          }, e3.prototype.fromJSON = function(t4) {
            var n3 = this;
            h(U, (function(e4) {
              var i3 = t4[e4];
              a(i3) || (n3["_" + e4] = i3);
            }));
          }, e3.prototype.Tfe = function(t4) {
            var n3, e4 = this._textAlign;
            return 2 === e4 || 3 === e4 ? G * t4 + Q(t4) : 0;
          }, e3.prototype.enable = function(t4) {
            if (!(arguments.length > 0)) return this.aQi;
            this.aQi = Boolean(t4);
          }, e3.prototype.lfe = function(n3, e4) {
            var i3 = t3.prototype.lfe.call(this, n3, e4);
            return n3.readonly || "toggle" !== this._mode || (i3.readonly = true), i3;
          }, e3.prototype.SJr = function(t4, n3, e4, i3, r2, o2, a2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this, I2 = this.xJr(c2, u(a2.font), s2), k2 = I2.width, N2 = I2.height, j2 = i3.sheet, D2 = i3.row, _2 = i3.col, O2 = q(j2, true == !!r2, n3, e4, o2, z(z({}, this._toggleOptions), { width: k2, height: N2 }), a2, s2), E2 = function(i4) {
              var r3, o3 = i4.width, a3 = i4.height, u2 = i4.trackColor, s3 = i4.trackRadius, c3 = i4.sliderColor, f3 = i4.sliderX, l3 = i4.sliderY, h3 = i4.sliderSize, d3 = i4.sliderRadius;
              K(t4, n3, e4, o3, a3, s3, u2), (null === (r3 = A2.G$r[W(D2, _2)]) || void 0 === r3 ? void 0 : r3.isAnimating(D2, _2)) || A2._textAlign !== B.inside || A2.RY(t4, n3, e4, i4), J(t4, f3, l3, h3, d3, c3);
            }, R2 = z({}, O2);
            (null === (f2 = this.G$r[W(D2, _2)]) || void 0 === f2 ? void 0 : f2.isAnimating(D2, _2)) && (h2 = null === (l2 = this.G$r[W(D2, _2)]) || void 0 === l2 ? void 0 : l2.getCurrentProgress(), d2 = !r2, v2 = !!r2, g2 = (p2 = this._toggleOptions).trackColorOn, m2 = p2.trackColorOff, b2 = p2.sliderColorOn, y2 = p2.sliderColorOff, w2 = p2.sliderMargin, C2 = (M2 = tt({ sheet: j2, isChecked: d2, startX: n3, startY: e4, width: k2, height: N2, trackColorOn: g2, trackColorOff: m2, sliderColorOn: b2, sliderColorOff: y2, sliderMargin: w2, progress: h2, targetIsChecked: v2, zoomFactor: s2 })).sliderX, S2 = M2.sliderY, T2 = M2.trackColor, x2 = M2.sliderColor, R2.sliderX = C2, R2.sliderY = S2, R2.trackColor = T2, R2.sliderColor = x2), E2(R2);
          }, e3.prototype.RY = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = i3.text;
            v2 && (t4.font = i3.style.font, t4.fillStyle = i3.style.foreColor, r2 = i3.width, u2 = n3 + (o2 = i3.height), (s2 = r2 - o2 - (a2 = t4.measureText(v2).width) - o2 / 2) > 0 && (u2 += s2), c2 = n3 + o2 / 2, f2 = i3.isChecked ? c2 : u2, l2 = e4 + i3.height / 2, h2 = "left", d2 = "middle", t4.textAlign = h2, t4.textBaseline = d2, t4.fillText(v2, f2, l2));
          }, e3.prototype.IJr = function(t4, n3, e4, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this;
            void 0 === o2 && (o2 = 0), this.G$r[W(n3, e4)] && (null === (a2 = this.G$r[W(n3, e4)]) || void 0 === a2 || a2.stop()), f2 = function() {
              t4.Lj(t4, [{ row: n3, col: e4 }], 0), t4.repaint(r2);
            }, l2 = function() {
              t4.Lj(t4, [{ row: n3, col: e4 }], 0), t4.repaint(r2), v2.AJr(n3, e4);
            }, this.G$r[W(n3, e4)] ? null === (u2 = this.G$r[W(n3, e4)]) || void 0 === u2 || u2.setDuration(this._toggleOptions.animationDuration) : this.G$r[W(n3, e4)] = new P(this._toggleOptions.animationDuration, f2, l2), null === (s2 = this.G$r[W(n3, e4)]) || void 0 === s2 || s2.setBaseProgress(o2), null === (c2 = this.G$r[W(n3, e4)]) || void 0 === c2 || c2.start(n3, e4), h2 = t4.getValue(n3, e4, i3), d2 = this.wG(h2), rt(this, t4, n3, e4, i3, d2);
          }, e3.prototype.AJr = function(t4, n3) {
            var e4 = W(t4, n3), i3 = this.G$r[e4];
            i3 && (i3.stop(), delete this.G$r[e4]);
          }, e3;
        })(f), n2.CheckBox = H, n2.paintTrack = K, n2.paintSlider = J, n2.interpolateColor = X, n2.calculateToggleButtonState = q, n2.paintCheckBox = $, n2.calculateToggleButtonPositionAndColor = tt, n2.validateToggleOptions = at, h(U, (function(t3) {
          H.prototype[t3] = function(n3) {
            return 0 === arguments.length ? this["_" + t3] : ("boxSize" === t3 ? ("number" == typeof n3 && n3 > 0 && (this["_" + t3] = n3), "auto" === n3 && (this["_" + t3] = n3)) : "textAlign" === t3 ? n3 === B.inside && "checkbox" === this._mode ? this["_" + t3] = B.right : this["_" + t3] = n3 : "toggleOptions" === t3 ? "object" == typeof n3 && (this["_" + t3] = at(n3)) : "mode" !== t3 || "toggle" !== n3 && "checkbox" !== n3 ? this["_" + t3] = n3 : (this["_" + t3] = n3, "checkbox" === n3 && this._textAlign === B.inside && (this._textAlign = B.right)), this);
          };
        })), r.CellTypes.ti[5] = H;
      }, "./dist/plugins/celltype/comboboxcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt = this && this.qKr || (Mt = function(t3, n3) {
          return Mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Mt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Mt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), yt = this && this.$Kr || function(t3, n3, e3, i3) {
          function r2(t4) {
            return t4 instanceof e3 ? t4 : new e3((function(n4) {
              n4(t4);
            }));
          }
          return new (e3 || (e3 = Promise))((function(e4, o2) {
            function a2(t4) {
              try {
                s2(i3.next(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function u2(t4) {
              try {
                s2(i3.throw(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function s2(t4) {
              t4.done ? e4(t4.value) : r2(t4.value).then(a2, u2);
            }
            s2((i3 = i3.apply(t3, n3 || [])).next());
          }));
        }, wt = this && this.tJr || function(t3, n3) {
          var e3 = { label: 0, sent: function() {
            if (1 & o2[0]) throw o2[1];
            return o2[1];
          }, trys: [], ops: [] }, i3, r2, o2, a2;
          return a2 = { next: u2(0), throw: u2(1), return: u2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
            return this;
          }), a2;
          function u2(t4) {
            return function(n4) {
              return s2([t4, n4]);
            };
          }
          function s2(u3) {
            if (i3) throw new TypeError("Generator is already executing.");
            for (; a2 && (a2 = 0, u3[0] && (e3 = 0)), e3; ) try {
              if (i3 = 1, r2 && (o2 = 2 & u3[0] ? r2.return : u3[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, u3[1])).done) return o2;
              switch (r2 = 0, o2 && (u3 = [2 & u3[0], o2.value]), u3[0]) {
                case 0:
                case 1:
                  o2 = u3;
                  break;
                case 4:
                  return e3.label++, { value: u3[1], done: false };
                case 5:
                  e3.label++, r2 = u3[1], u3 = [0];
                  continue;
                case 7:
                  u3 = e3.ops.pop(), e3.trys.pop();
                  continue;
                default:
                  if (!(o2 = e3.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== u3[0] && 2 !== u3[0])) {
                    e3 = 0;
                    continue;
                  }
                  if (3 === u3[0] && (!o2 || u3[1] > o2[0] && u3[1] < o2[3])) {
                    e3.label = u3[1];
                    break;
                  }
                  if (6 === u3[0] && e3.label < o2[1]) {
                    e3.label = o2[1], o2 = u3;
                    break;
                  }
                  if (o2 && e3.label < o2[2]) {
                    e3.label = o2[2], e3.ops.push(u3);
                    break;
                  }
                  o2[2] && e3.ops.pop(), e3.trys.pop();
                  continue;
              }
              u3 = n3.call(t3, e3);
            } catch (t4) {
              u3 = [6, t4], r2 = 0;
            } finally {
              i3 = o2 = 0;
            }
            if (5 & u3[0]) throw u3[1];
            return { value: u3[0] ? u3[1] : void 0, done: true };
          }
        }, Mt;
        function Ct(t3, n3) {
          t3.appendChild(n3);
        }
        function St(t3, n3) {
          t3.insertBefore(n3, t3.firstChild);
        }
        function Tt(t3, n3) {
          t3.removeChild(n3);
        }
        function xt(t3) {
          return t3 && t3.parentNode.parentNode.comboBox;
        }
        function At(t3, n3, e3, i3) {
          var r2 = t3.cellPadding, o2 = 0, a2 = t3.labelOptions;
          return e3 && (r2 = a2 ? a2.margin : "0"), r2 && (o2 = typeof (o2 = parseInt(kt(r2)[n3], 10)) === I && o2 > 0 ? o2 : 0), i3 === y ? o2 : o2 * i3;
        }
        function It(t3) {
          h(t3).css(["margin", "overflow", "resize", k, "padding", B, U, "white-space", P, q], [0, "hidden", R, N, ct + "px 0px 0px " + st + tt, R, Y, "nowrap", z, R]).attr(O, "gcComboBoxEditor").attr(E, -1);
        }
        function kt(t3) {
          var n3, e3, i3, r2, o2 = ["0", "0", "0", "0"];
          return typeof t3 === A && (i3 = void 0, r2 = void 0, 1 === (e3 = (n3 = t3.split(" ", 4)).length) ? o2 = [i3 = n3[0], i3, i3, i3] : 2 === e3 ? o2 = [i3 = n3[0], r2 = n3[1], i3, r2] : 3 === e3 ? (r2 = n3[1], o2 = [n3[0], r2, n3[2], r2]) : 4 === e3 && (o2 = [n3[0], n3[1], n3[2], n3[3]])), o2;
        }
        function Nt(t3, n3) {
          return t3.hasOwnProperty(n3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ComboBox = n2.EditorValueType = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/celltype/data-binding.js"), a = r.CellTypes.Base, u = r.mt.En, s = i2.Common.lt.ht, c = i2.Common.ft, f = r.mt, l = f.vi, h = r.GC$, d = h.each, v = f.yt, p = f.Ct, g = f.M0, m = document, b = null, y = void 0, w = Math.max, M = parseInt, C = "click", S = "keydown", T = "mouseover", x = "mouseout", A = "string", I = "number", k = "position", N = "absolute", j = "font", D = "left", _ = "top", O = "gcUIElement", E = "tabindex", R = "none", L = "width", F = "height", B = "outline", P = "box-sizing", G = "color", U = "background-color", H = "z-index", V = "display", z = "content-box", Y = "white", Z = "black", W = "title", Q = "div", K = "span", J = "text", X = "value", q = "border", $ = "min-width", tt = "px", nt = f.wt, et = "dataBinding", it = "items", (function(t3) {
          t3[t3.text = 0] = "text", t3[t3.index = 1] = "index", t3[t3.value = 2] = "value";
        })(rt = n2.EditorValueType || (n2.EditorValueType = {})), ot = 17, ut = 0, ct = 1, ft = st = 1, lt = 18, ht = "EndEdit.gcEditingInput", dt = "lightgrey", vt = "#1E90FF", pt = { editorValueType: 0, items: b, itemHeight: 22, editable: false, maxDropDownItems: at = 20, allowFloat: true }, gt = (function() {
          function t3(t4, n3, e3, i3, o2, a2, c2, f2, l2) {
            var d2, v2, p2, g2, m2, b2, M2, A2, I2 = this;
            I2.xG = t4, I2.sfe = n3, I2.dfe = l2, d2 = t4.firstChild, h(d2).css(["overflow"], "visible"), h(t4).bind(S, (function(t5) {
              I2.NG(t5);
            })).css([H, D, _, L, F, "overflow"], [c2 || 0, e3, i3, o2, a2, "visible"]).attr([O], ["gcComboBox"]), v2 = w(0, o2 - ot), I2._editable = false, I2.DG = p2 = u(Q), I2._G = g2 = u("textarea"), I2.EG = p2, Ct(d2, p2), It(p2), It(g2), h(g2).bind("keyup", (function() {
              var t5, n4 = I2.EG.value;
              I2._text = n4, t5 = I2.jG(n4), I2.editorValue(t5), I2.OG(n4, true, t5), I2.RG();
            })).bind(T, (function() {
              I2.BG();
            })).bind(x, (function() {
              I2.RG();
            })), h(p2).bind(C, (function() {
              I2.LG ? I2.ki(ht, { isMouse: true }) : I2.PG();
            })).bind(T, (function() {
              I2.BG();
            })).bind(x, (function() {
              I2.RG();
            })), I2.GG(0, 0, v2, a2), Ct(d2, m2 = I2.UG = u(Q)), h(m2).css([q, k, U, P], [R, N, Y, z]).attr(O, "gcDropDownButton").bind(C, (function() {
              var t5, n4;
              !s(I2.HG) && (t5 = I2.HG, I2.HG = y, (n4 = (/* @__PURE__ */ new Date()).valueOf()) - t5 < 100) || (I2.LG ? I2.ki(ht, { isMouse: true }) : I2.PG());
            })), b2 = u("canvas"), I2.fg = b2, I2.zG(v2, 0, o2 - v2, a2), Ct(m2, b2), Ct(d2, M2 = I2.VG = u(Q)), I2.YG = false, I2.ZG = f2 || o2, h(M2).css([k, q, U, H, B, V, "cursor", P, F, $], [N, "1px solid", Y, c2 || 0, R, R, "default", z, a2, I2.ZG + tt]), h(M2).attr(O, "gcDropDownWindow").attr(E, -1), I2.WG(0, a2 - 2 * ut), I2.QG = 0, Ct(M2, A2 = I2.KG = u(Q)), I2.JG = new r.x4(M2, A2), I2._itemHeight = 22, I2.qG = at, I2.$G = -1, I2._editorValueType = 0, I2._items = [], I2.eU = dt, I2.iU = "";
          }
          return t3.prototype.getComboBox = function() {
            return this.xG;
          }, t3.prototype.dispose = function() {
            var t4 = this;
            h(t4.xG).unbind(S), h(t4._G).unbind("keyup").unbind(T).unbind(x), h(t4.DG).unbind(C).unbind(T).unbind(x), h(t4.UG).unbind(C), h(t4.KG).find("div").forEach((function(t5) {
              h(t5).unbind(T).unbind(x).unbind(C);
            })), t4.JG.dispose();
          }, t3.prototype.updateLocationAndSize = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = w(0, e3 - ot);
            o2.GG(0, 0, a2, i3), o2.zG(a2, 0, e3 - a2, i3), o2.WG(0, i3 - 2 * ut + (r2 || 0));
          }, t3.prototype.updateStyle = function(t4, n3, e3) {
            var i3 = this;
            e3 = v(e3), t4 = t4 || y, h(i3.EG).css(U, t4).css(G, n3).css(j, e3), h(i3.UG).css(U, t4).css(G, n3).css(j, e3), h(i3.VG).css(U, t4).css(G, n3).css(j, e3), i3.iU = n3, h(i3.xG).css(U, "transparent"), i3.eU = c.Tv(c._(t4), c._(dt)) ? Y : dt;
          }, t3.prototype.updateImeMode = function(t4) {
            h(this.EG).css("ime-mode", t4);
          }, t3.prototype.editorValueType = function(t4) {
            return 0 === arguments.length ? this._editorValueType : (this._editorValueType = t4, this);
          }, t3.prototype.editorValue = function(t4) {
            var n3, e3 = this;
            return 0 === arguments.length ? e3.oU : (t4 !== e3.oU && (e3.oU = t4, n3 = e3.aU(t4), e3.text(n3), e3.OG(n3, true, t4)), e3);
          }, t3.prototype.aU = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this, c2 = u2._items, f2 = c2.length, l2 = u2._editorValueType;
            if (u2.uU = true, 1 === l2) (e3 = (i3 = c2[t4]) && Nt(i3, J) ? i3.text : i3) === y && (e3 = t4, u2.uU = false);
            else if (0 === l2) {
              for (e3 = t4, o2 = 0; o2 < f2 && !((i3 = c2[o2]) && Nt(i3, J) && i3.text === t4 || i3 === t4); o2++) ;
              o2 >= f2 && (u2.uU = false);
            } else if (2 === l2) {
              for (a2 = null == t4 ? void 0 : t4.toString(), r2 = 0; r2 < f2; r2++) if ((i3 = c2[r2]) && Nt(i3, X) && (null === (n3 = i3.value) || void 0 === n3 ? void 0 : n3.toString()) === a2) {
                e3 = i3.text;
                break;
              }
              r2 >= f2 && (e3 = t4, u2.uU = false);
            }
            return s(t4) && (e3 = ""), e3;
          }, t3.prototype.jG = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2._items, a2 = o2.length, u2 = r2._editorValueType, s2 = t4;
            if (1 === u2) for (e3 = 0; e3 < a2; e3++) ((n3 = o2[e3]) && Nt(n3, J) && n3.text === t4 || n3 === t4) && (s2 = e3);
            else if (2 === u2) for (i3 = 0; i3 < a2; i3++) (n3 = o2[i3]) && Nt(n3, J) && n3.text === t4 ? s2 = n3.value : n3 === t4 && (s2 = y);
            return s2;
          }, t3.prototype.OG = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, c2, f2, l2 = -1;
            if (!s(t4) && "" !== t4) {
              for (o2 = (r2 = this._items).length, i3 = 0; i3 < o2; i3++) if (u2 = void 0, c2 = void 0, u2 = Nt(a2 = r2[i3], J) ? a2.text : a2, Nt(a2, X) && (c2 = a2.value), (f2 = n3 ? u2 : u2.toString().substr(0, t4.length)) === t4) {
                if (l2 = i3, s(e3)) break;
                if (!s(c2) && c2 === e3) break;
              }
            }
            this.sU(l2);
          }, t3.prototype.RG = function() {
            h(this.EG).removeAttr(W);
          }, t3.prototype.BG = function() {
            var t4 = this, n3 = t4.Wt(t4._text), e3 = h(t4.EG), i3 = e3.width();
            n3 > i3 + st ? e3.attr(W, t4._text) : e3.removeAttr(W);
          }, t3.prototype.GG = function(t4, n3, e3, i3) {
            e3 -= ut, i3 -= 2 * ut, h(this.EG).css(D, t4).css(_, n3).css(L, e3 - st).css(F, i3 - ct);
          }, t3.prototype.editable = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this;
            return 0 === arguments.length ? a2._editable : a2._editable !== t4 ? (a2._editable = t4, n3 = a2.xG.firstChild, e3 = a2.EG, i3 = h(e3), r2 = { left: M(i3.css(D)), top: M(i3.css(_)), width: M(i3.css(L)), height: M(i3.css(F)) }, o2 = { backColor: i3.css(U), foreColor: i3.css(G), font: e3.style.font }, Tt(n3, e3), a2.EG = t4 ? a2._G : a2.DG, St(n3, a2.EG), h(a2.EG).css(U, o2.backColor).css(G, o2.foreColor).css(j, o2.font), a2.GG(r2.left, r2.top, r2.width, r2.height), a2) : void 0;
          }, t3.prototype.text = function(t4) {
            var n3 = this, e3 = n3.EG;
            if (0 === arguments.length) return n3._text;
            t4 !== n3._text && (n3._text = t4, n3._editable ? e3.value = t4 : e3.textContent = t4);
          }, t3.prototype.focus = function() {
            var t4 = this, n3 = t4.EG;
            n3.focus(), t4._editable && (n3.selectionStart = n3.value.length);
          }, t3.prototype.selectAll = function() {
            var t4 = this;
            t4._editable && t4.EG.select();
          }, t3.prototype.zG = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            e3 -= ut, i3 -= 2 * ut, o2 = (r2 = this).fg, h(r2.UG).css(D, t4).css(_, n3).css(L, e3).css(F, i3), h(o2).attr(L, e3).attr(F, i3), a2 = o2.width, u2 = o2.height, (s2 = o2.getContext("2d")) && (s2.beginPath(), s2.lineWidth = 2, s2.fillStyle = Z, s2.moveTo(a2 - ot + 4, (u2 - 2) / 2 - 2.5), s2.lineTo(a2 - ot + 7, (u2 - 2) / 2 + 3.5), s2.lineTo(a2 - ot + 10, (u2 - 2) / 2 - 2.5), s2.fill());
          }, t3.prototype.showDropDownList = function() {
            var t4 = this;
            t4.XIr ? t4.XIr().then((function(n3) {
              var e3, i3, r2 = n3.isSuccess, o2 = n3.items;
              r2 && (t4.items(o2), e3 = t4.oU, i3 = t4.aU(e3), t4.text(i3), t4.OG(i3, true, e3)), t4.$Ir();
            })) : t4.$Ir();
          }, t3.prototype.$Ir = function() {
            var t4 = this, n3 = t4.JG;
            t4.YG = true, h(t4.VG).bind(S, (function(n4) {
              t4.NG(n4);
            })).show(), t4.cU = false, t4.fU(), this.adjustPosition(), t4.cU && n3.pS(h(t4.KG.children).height()), n3.w4(false), t4.lU(vt, Y), t4.hU(t4.$G), t4.focus();
          }, t3.prototype.adjustPosition = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2 = this, g2 = h(p2.VG);
            if (g2) {
              if (t4 = parseInt(g2.css("left"), 10), n3 = parseInt(g2.css("top"), 10), e3 = g2.width(), i3 = g2.height(), isNaN(t4) || isNaN(n3) || isNaN(e3) || isNaN(i3)) return;
              r2 = 0, o2 = 0, a2 = 0.8, false !== this.dfe ? (s2 = (u2 = m.documentElement).clientWidth, c2 = u2.clientHeight, f2 = g2[0].getBoundingClientRect(), i3 > c2 && (g2.css("max-height", Math.round(c2 * a2) + tt), i3 = Math.round(c2 * a2)), e3 > s2 && (g2.css("max-width", Math.round(s2 * a2) + tt), e3 = Math.round(s2 * a2)), f2.left + e3 > s2 && (o2 = f2.left + e3 - s2), f2.top + i3 > c2 && (r2 = f2.top + i3 - c2)) : (c2 = (l2 = p2.sfe).clientHeight, s2 = l2.clientWidth, i3 > c2 && (i3 = Math.round(c2 * a2), g2.css("max-height", i3 + tt)), e3 > s2 && (e3 = Math.round(s2 * a2), g2.css("max-width", e3 + tt)), d2 = g2[0].getBoundingClientRect(), v2 = p2.sfe.getBoundingClientRect(), r2 = w(0, d2.bottom - v2.bottom), o2 = w(0, d2.right - v2.right)), (t4 < 0 || n3 < 0 || r2 > 0 || o2 > 0) && (n3 -= r2 + 5, (t4 -= o2) < 0 && (t4 -= 22), g2.css({ left: t4 + tt, top: n3 + tt }));
            }
          }, t3.prototype.shiftPadding = function(t4, n3) {
            var e3 = this.xG.firstChild;
            t4 === D ? h(e3).css({ left: (+h(e3).css(D).replace(tt, "") || 0) - n3 }) : t4 === _ && h(e3).css({ top: (+h(e3).css(_).replace(tt, "") || 0) - n3 });
          }, t3.prototype.closeDropDownList = function() {
            var t4 = this;
            t4.YG = false, h(t4.VG).unbind(S).hide(), t4.lU("", t4.iU), t4.focus();
          }, t3.prototype.PG = function() {
            this.YG ? this.closeDropDownList() : this.showDropDownList();
          }, t3.prototype.listHeight = function(t4) {
            var n3 = this, e3 = h(n3.VG);
            if (0 === arguments.length) return e3.height();
            t4 > 0 && (e3.height(t4), n3.JG.w4(false));
          }, t3.prototype.WG = function(t4, n3) {
            h(this.VG).css(D, t4).css(_, n3);
          }, t3.prototype.items = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this;
            if (0 === arguments.length) return a2._items;
            if (t4) {
              for (a2._items = t4, n3 = a2.KG, e3 = void 0, h(n3).find("div").forEach((function(t5) {
                h(t5).unbind(T).unbind(x).unbind(C);
              })), e3 = n3.firstChild; e3; ) Tt(n3, e3), e3 = n3.firstChild;
              for (a2.QG = 0, i3 = 0, r2 = t4.length; i3 < r2; i3++) o2 = t4[i3], a2.dU(Nt(o2, J) ? o2.text : o2);
              return a2;
            }
          }, t3.prototype.dU = function(t4) {
            var n3 = this, e3 = u(Q), i3 = u(K);
            i3.textContent = t4.toString(), i3.style.padding = "0 " + lt + "px 0 " + ft + tt, i3.style.textOverflow = "ellipsis", i3.style.whiteSpace = "nowrap", Ct(e3, i3), Ct(n3.KG, e3), n3.QG++, h(e3).bind(C, (function() {
              var t5 = h(e3).index();
              n3.selectedIndex(t5), n3.closeDropDownList(), n3.ki(ht, { isMouse: true });
            })).bind(T, (function() {
              var t5 = h(e3);
              e3.oldBackColor = t5.css(U), t5.css(U, n3.eU);
            })).bind(x, (function() {
              h(e3).css(U, e3.oldBackColor || "");
            })).css($, n3.ZG + "px");
          }, t3.prototype.vU = function() {
            var t4 = this;
            t4.S5 = u(K), h(t4.S5).css([V, j], [R, t4.VG.style.font]).appendTo(m.body);
          }, t3.prototype.mU = function() {
            Tt(m.body, this.S5);
          }, t3.prototype.Mt = function(t4) {
            return this.S5.textContent = t4, h(this.S5).width() + 2 + ft;
          }, t3.prototype.lU = function(t4, n3) {
            var e3 = this, i3 = e3.$G;
            0 <= i3 && i3 < e3.QG && h(e3.KG.children[i3]).css([U, G], [t4, n3]);
          }, t3.prototype.NG = function(t4) {
            var n3, e3, i3, r2 = this, o2 = t4.keyCode, a2 = t4.which;
            (t4.ctrlKey || t4.shiftKey || t4.altKey || t4.metaKey || 37 === a2 || 39 === a2) && 9 !== a2 && r2.editable() || (n3 = r2.QG, e3 = r2.$G, i3 = 0, 38 === a2 || 40 === a2 ? (e3 >= 0 && e3 < n3 && (i3 = e3 + (38 === a2 ? -1 : 1)), i3 >= 0 && i3 < n3 && r2.selectedIndex(i3), r2.YG && r2.hU(i3), l(t4)) : 13 === a2 || 37 === a2 || 39 === a2 || 9 === a2 ? (r2.selectedIndex(r2.$G), (r2.YG || r2.editable()) && r2.closeDropDownList(), r2.ki(ht, { keyCode: o2, shiftKey: t4.shiftKey }), (r2.YG || r2.editable()) && l(t4)) : 27 === a2 ? (r2.closeDropDownList(), r2.ki(ht, { keyCode: o2 }), l(t4)) : r2.editable() || 32 !== a2 || l(t4));
          }, t3.prototype.getSelectedValue = function(t4, n3, e3) {
            var i3, r2 = n3[t4];
            return s(r2) || (1 === e3 ? i3 = t4 : 0 === e3 ? i3 = Nt(r2, J) ? r2.text : r2 : 2 === e3 && Nt(r2, X) && (i3 = r2.value)), i3;
          }, t3.prototype.sU = function(t4) {
            var n3 = this;
            n3.lU("", n3.iU), n3.$G = t4, n3.lU(vt, Y), n3.hU(t4);
          }, t3.prototype.selectedIndex = function(t4) {
            var n3, e3 = this;
            if (0 === arguments.length) return e3.$G;
            0 <= t4 && t4 < e3.QG && (e3.sU(t4), n3 = e3.getSelectedValue(e3.$G, e3._items, e3._editorValueType), s(n3) || e3.editorValue(n3));
          }, t3.prototype.itemCountPerPage = function(t4) {
            if (0 === arguments.length) return this.qG;
            t4 > 0 && (this.qG = t4);
          }, t3.prototype.allowFloat = function(t4) {
            var n3 = this;
            if (0 === arguments.length) return n3.dfe;
            n3.dfe = t4;
          }, t3.prototype.Wt = function(t4) {
            this.vU();
            var n3 = this.Mt(t4);
            return this.mU(), n3;
          }, t3.prototype.itemHeight = function(t4) {
            if (0 === arguments.length) return this._itemHeight;
            t4 > 0 && (this._itemHeight = t4);
          }, t3.prototype.fU = function() {
            var t4, n3, e3, i3, r2, o2 = this;
            o2.vU(), t4 = o2._items[0], n3 = w(o2._itemHeight, h(o2.S5).text(s(t4) ? "" : t4).height()), h(o2.KG.children).css(F, n3), (i3 = o2.QG) <= (r2 = o2.qG) ? e3 = i3 * n3 : (e3 = r2 * n3, o2.cU = true), o2.listHeight(e3), o2.mU();
          }, t3.prototype.hU = function(t4) {
            if (t4 >= 0 && t4 < this.QG) {
              var n3 = this.KG.children[t4];
              this.JG.xS(n3);
            }
          }, t3.prototype.bind = function(t4, n3, e3) {
            h(this.xG).bind(t4, n3, e3);
          }, t3.prototype.unbind = function(t4, n3) {
            h(this.xG).unbind(t4, n3);
          }, t3.prototype.ki = function(t4, n3) {
            h(this.xG).trigger(t4, n3);
          }, t3.prototype.tkr = function(t4) {
            this.XIr = t4;
          }, t3;
        })(), mt = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "7", e3.v6 = false, e3.rU = false, n4 = e3, d(pt, (function(t4, e4) {
              "items" === t4 && (e4 = []), n4["_" + t4] = e4;
            })), n4.jGr = function(t4, e4) {
              return a.prototype.format.call(n4, t4, e4);
            }, n4._dataSource = new o.DataBindingSource(n4.jGr), e3;
          }
          return bt(n3, t3), n3.prototype.isReservedKey = function(t4, n4) {
            return this.rU;
          }, n3.prototype.eUr = function() {
            var t4;
            return null !== (t4 = this._dataSource._items()) && void 0 !== t4 ? t4 : this.DGr;
          }, n3.prototype.qe = function(n4, e3, i3, r2, o2) {
            t3.prototype.qe.call(this, n4, e3, i3, r2, o2), this._dataSource.ICr(n4, false, null == r2 ? void 0 : r2.formatter), this._Gr(r2);
          }, n3.prototype._Gr = function(t4) {
            var n4 = this;
            s(null == t4 ? void 0 : t4.formatter) ? this.DGr = this._items : this.DGr = this._items.map((function(e3) {
              if ("object" != typeof e3 || e3 instanceof Date) {
                var i3 = n4.jGr(e3, t4.formatter);
                return { text: i3, value: i3 };
              }
              return { text: n4.jGr(e3.text, t4.formatter), value: e3.value };
            }));
          }, n3.prototype.je = function(t4, n4, e3, i3) {
            return this._editorValueType === rt.text ? n4.formatter ? this.jGr(e3, n4.formatter) : e3 : this.getItemValue(e3);
          }, n3.prototype.paintValue = function(n4, e3, i3, o2, a2, u2, c2, f2) {
            var l2, h2, d2, v2, g2, m2, b2, y2, M2, C2, S2, T2, x2 = this, A2 = f2.sheet, I2 = A2.zoom ? A2.zoom() : 1, k2 = ot, N2 = w(0, a2 - k2 - 1);
            x2._dataSource.iUr() && x2._dataSource.ICr(A2, true, null == c2 ? void 0 : c2.formatter), s(x2.DGr) && x2._Gr(c2), 3 === c2.hAlign && (c2.hAlign = 0), c2.wordWrap && (c2.wordWrap = false), l2 = f2.isPrinting, h2 = f2.printZoomFactor, l2 && "number" == typeof h2 && 1 !== h2 && (I2 = h2), N2 > 0 && u2 > 0 && (d2 = {}, v2 = void 0, f2.quotePrefix = c2.quotePrefix, g2 = c2.formatter && "General" !== c2.formatter, m2 = c2._autoFormatter && c2._autoFormatter.formatCached && "General" !== c2._autoFormatter.formatCached, b2 = void 0, y2 = this.getItemValue(e3), b2 = g2 ? c2.formatter : m2 ? c2._autoFormatter : r.CellTypes.Context.Nt(n4, y2, N2 + 1, c2, I2), (v2 = x2.getText(x2.format(nt(e3), b2, d2, f2), f2)) && (M2 = new r.Rect(i3, o2, a2, u2), t3.prototype.adjustRectForIconSet.call(this, c2.hAlign, f2.sheet, f2.row, f2.col, f2.sheetArea, M2, d2.content && t3.prototype.hasInfilling.call(this, d2.content)), i3 = M2.x, a2 = M2.width, C2 = c2.isVerticalText, p(y2) && !C2 && true !== c2.shrinkToFit && (v2 !== (S2 = r.CellTypes.Context.Et(n4, v2, N2 + 1, c2, I2)) && (delete d2.content, c2.textIndent = 0), v2 = S2), T2 = x2.Pn(n4, v2, c2, f2, i3, o2, a2, u2), this.paintText(n4, e3, i3, o2, N2, u2, c2, f2, v2, d2, void 0, T2.externals))), n4.save(), (k2 > a2 || k2 > u2) && (n4.rect(i3, o2, a2, u2), n4.clip()), n4.beginPath(), n4.lineWidth = 2, n4.fillStyle = Z, n4.moveTo(i3 + a2 - k2 + 3, o2 + (u2 - 2) / 2 - 2.5), n4.lineTo(i3 + a2 - k2 + 6, o2 + (u2 - 2) / 2 + 3.5), n4.lineTo(i3 + a2 - k2 + 9, o2 + (u2 - 2) / 2 - 2.5), n4.fill(), n4.restore();
          }, n3.prototype.getText = function(t4, n4) {
            return t4;
          }, n3.prototype.getEditingElement = function() {
            return this._editingElement;
          }, n3.prototype.createEditorElement = function(t4, n4) {
            var e3, i3, r2, o2, a2 = this, u2 = t4 && t4.sheet, s2 = t4.row, c2 = t4.col, l2 = u2 && u2.parent, h2 = l2 && l2.Ti, d2 = f.gi(h2) + 1e3, v2 = u2.defaults, p2 = this, m2 = u2.getActualStyle(t4.row, t4.col), y2 = m2.cellPadding, w2 = 0;
            return y2 && (w2 = parseFloat(kt(y2)[3]) || 0), e3 = 0, e3 = (i3 = u2.getSpan(s2, c2)) ? g(u2, i3.col, i3.col + i3.colCount, false) : u2.nn(t4.col) - w2, (r2 = new gt(n4, u2.qc(), 0, 0, v2.colWidth, v2.rowHeight, d2, e3)).editorValueType(p2._editorValueType), this._Gr(m2), r2.items(p2.eUr()), r2.itemHeight(p2._itemHeight), r2.itemCountPerPage(p2._maxDropDownItems), r2.editable(p2._editable), r2.allowFloat(p2.allowFloat()), this._dataSource.Wgr() || r2.tkr((function() {
              return yt(a2, void 0, void 0, (function() {
                var n5, e4, i4, r3;
                return wt(this, (function(o3) {
                  switch (o3.label) {
                    case 0:
                      return u2.reportDataModel && (n5 = u2.reportDataModel.mji.POt) && n5.setContext && (e4 = null === (r3 = p2._dataSource.u8r()) || void 0 === r3 ? void 0 : r3.dataSource, n5.setContext({ row: s2, col: c2, formula: e4, triggerUpdatePrecedents: true })), [4, p2._dataSource.ICr(t4.sheet, false, m2.formatter)];
                    case 1:
                      return [2, { isSuccess: i4 = o3.sent(), items: p2._dataSource._items() }];
                  }
                }));
              }));
            })), o2 = r2.getComboBox(), Object.defineProperty(o2, "comboBox", { get: function() {
              return this.gU;
            }, set: function(t5) {
              this.gU !== t5 && (this.gU && this.gU.dispose(), this.gU = t5);
            } }), o2.comboBox = r2, b;
          }, n3.prototype.CUr = function(t4, n4) {
            var e3;
            if (null === (e3 = this._dataSource) || void 0 === e3 ? void 0 : e3.iUr()) return this._dataSource.ICr(t4, false, n4);
          }, n3.prototype.dataBinding = function(t4) {
            var n4 = this;
            return 0 === arguments.length ? n4._dataSource.u8r() : (n4._dataSource.u8r(t4), n4);
          }, n3.prototype.clearBindingItems = function() {
            this._dataSource.ouo();
          }, n3.prototype.getEditorValue = function(t4, n4) {
            var e3 = xt(t4);
            return e3 && (this.v6 = !e3.uU), e3 && e3.editorValue();
          }, n3.prototype.setEditorValue = function(t4, n4, e3) {
            var i3 = xt(t4);
            i3 && i3.editorValue(n4);
          }, n3.prototype.focus = function(t4, n4) {
            var e3 = xt(t4);
            e3 && e3.focus();
          }, n3.prototype.selectAll = function(t4, n4) {
            var e3 = xt(t4);
            e3 && e3.selectAll();
          }, n3.prototype.activateEditor = function(t4, n4, e3, i3) {
            var o2, a2 = this, u2 = i3.sheet, s2 = xt(t4);
            if (s2) {
              if (a2._editingElement = t4, o2 = { r: b }, r.CellTypes.Base.et(u2, "beforeActivateComboboxCellTypeEditor", o2), o2.r) return;
              s2.editorValueType(a2._editorValueType), s2.items(a2.eUr()), s2.itemHeight(a2._itemHeight), s2.itemCountPerPage(a2._maxDropDownItems), s2.editable(a2._editable), s2.bind(ht, (function(t5, n5) {
                var e4, i4, r2, o3, a3, c2 = n5.keyCode, f2 = n5.shiftKey;
                if (c2) {
                  if (i4 = (e4 = u2.Qy()).getShortcutKey(c2, false, f2 || false, false, false), r2 = e4.getCommands(i4)) {
                    for (o3 = 0, a3 = r2.length; o3 < a3; o3++) if ("navigationLeft" !== r2[o3].Zc && "navigationRight" !== r2[o3].Zc || (u2.Di = 1), r2[o3].execute(u2.parent, { sheetName: u2.name() })) return true;
                  }
                } else n5.isMouse && s2.LG && u2.endEdit();
              }));
            }
            a2.rU = true;
          }, n3.prototype.deactivateEditor = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2;
            if (t4 && (e3 = xt(t4))) {
              if (i3 = n4.sheet.getActualStyle(n4.row, n4.col, n4.sheetArea).cellPadding) for (r2 = [D, _], o2 = [3, 0], a2 = 0; a2 < r2.length; a2++) u2 = typeof (u2 = parseInt(kt(i3)[o2[a2]], 10)) === I && u2 > 0 ? u2 : 0, e3.shiftPadding(r2[a2], u2);
              e3.unbind(ht), e3.closeDropDownList(), e3.LG = false;
            }
            this.rU = false, this._editingElement = b;
          }, n3.prototype.updateImeMode = function(t4, n4) {
            if (this.isImeAware()) {
              var e3 = xt(t4);
              e3 && e3.updateImeMode(n4);
            }
          }, n3.prototype.updateEditor = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2 = t4 && i3 && i3.sheet;
            s2 && (r2 = xt(t4), n4 && r2 && (o2 = s2.Dn, r2.updateStyle(n4.backColor, n4.foreColor || Z, o2._n(n4.font || o2.Nn()))), e3 && r2 && (a2 = 0, n4 && i3 && i3.sheet && i3.sheet.NMi && (a2 = At(n4, 0, false, u2 = i3.sheet.zoom())), r2.updateLocationAndSize(e3.x, e3.y, e3.width, e3.height, a2)));
          }, n3.prototype.format = function(t4, n4, e3, i3) {
            var r2, o2;
            return s(t4) ? "" : (s((r2 = this).DGr) && r2._Gr({ formatter: n4 }), o2 = r2.getItemValue(t4), a.prototype.format.call(r2, o2, n4, e3));
          }, n3.prototype.getItemValue = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2._editorValueType, f2 = s2.eUr();
            if (f2) {
              if (r2 = f2.length, 1 === c2) {
                if (0 <= (o2 = M(t4)) && o2 < r2 && (e3 = f2[o2]) !== y && e3 !== b) return i3 = Nt(e3, J) ? e3.text : e3;
              } else if (2 === c2) {
                for (a2 = null == t4 ? void 0 : t4.toString(), u2 = 0; u2 < r2; u2++) if ((e3 = f2[u2]) && Nt(e3, X) && (null === (n4 = e3.value) || void 0 === n4 ? void 0 : n4.toString()) === a2) return i3 = e3.text;
              }
            }
            return t4;
          }, n3.prototype.parse = function(t4, n4, e3) {
            var i3, r2, o2, u2 = this, s2 = u2._editorValueType, c2 = u2.eUr(), f2 = a.prototype.parse.call(u2, t4, n4);
            if (c2) {
              if (o2 = c2.length, 0 === s2) return f2;
              if (1 === s2) {
                for (r2 = 0; r2 < o2; r2++) if ((i3 = c2[r2]) && Nt(i3, J) && i3.text === f2 || i3 === f2) return r2;
              } else if (2 === s2) {
                for (r2 = 0; r2 < o2; r2++) if ((i3 = c2[r2]) && Nt(i3, J) && i3.text === f2) return i3.value;
              }
            }
            return f2;
          }, n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2, c2, f2, l2;
            return r2 ? (o2 = r2.sheetArea, a2 = r2.sheet, (s(o2) || 3 === o2) && i3 && (u2 = kt(e3.cellPadding), c2 = parseInt(u2[1], 10) || 0, f2 = i3.x + i3.width - c2, l2 = { x: t4, y: n4, row: r2.row, col: r2.col, cellStyle: e3, cellRect: i3, sheetArea: o2, sheet: a2 }, f2 - ot <= t4 && t4 < f2) ? (l2.isReservedLocation = true, l2) : b) : b;
          }, n3.prototype.processMouseDown = function(t4) {
            var n4, e3 = t4.sheet, i3 = t4.sheetArea;
            (s(i3) || 3 === i3) && t4.isReservedLocation && e3 && (t4.row === e3.ui && t4.col === e3.ci || e3.setActiveCell(t4.row, t4.col), e3.startEdit(), (n4 = xt(e3.li)) && (f.Tt.mozilla && (n4.HG = (/* @__PURE__ */ new Date()).valueOf()), n4.showDropDownList(), n4.LG = true));
          }, n3.prototype.getAutoFitWidth = function(t4, n4, e3, i3, o2) {
            var a2;
            return e3 && e3.wordWrap && (e3.wordWrap = false), r.CellTypes.Context.Bt(t4, n4, e3, i3, o2) + ot;
          }, n3.prototype.getAutoFitHeight = function(t4, n4, e3, i3, o2) {
            return e3 && e3.wordWrap && (e3.wordWrap = false), r.CellTypes.Context.tn(t4, n4, e3, i3, o2);
          }, n3.prototype.isImeAware = function(t4) {
            return true;
          }, n3.prototype.lfe = function(n4, e3) {
            var i3 = t3.prototype.lfe.call(this, n4, e3);
            return n4.readonly || this._editable || (i3.readonly = true), i3;
          }, n3.prototype.Ke = function() {
          }, n3.prototype.Je = function(t4) {
            var n4 = { editorValueType: t4.editorValueType && rt[t4.editorValueType], items: t4.items, itemHeight: t4.itemHeight, maxDropDownItems: t4.maxDropDownItems, editable: t4.editable };
            this.fromJSON(n4);
          }, n3.prototype.toJSON = function(t4) {
            var n4, e3, i3 = this, r2 = { typeName: i3.typeName };
            return d(pt, (function(t5, e4) {
              var o2;
              n4 = i3["_" + t5], ("items" === t5 ? n4 && n4.length > 0 : n4 !== e4) && (r2[t5] = n4);
            })), e3 = i3.dataBinding(), s(e3) || (t4 && t4.gp ? r2[it] = i3._dataSource._items() : r2[et] = e3), r2;
          }, n3.prototype.fromJSON = function(t4) {
            var n4, e3 = this;
            d(pt, (function(n5) {
              var i3 = t4[n5];
              s(i3) || (e3["_" + n5] = i3);
            })), n4 = t4[et], s(n4) || e3.dataBinding(n4);
          }, n3;
        })(a), n2.ComboBox = mt, d(pt, (function(t3) {
          mt.prototype[t3] = function(n3) {
            return 0 === arguments.length ? this["_" + t3] : (this["_" + t3] = n3, this);
          };
        })), r.CellTypes.ti[7] = mt;
      }, "./dist/plugins/celltype/data-binding.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d = this && this.$Kr || function(t3, n3, e3, i3) {
          function r2(t4) {
            return t4 instanceof e3 ? t4 : new e3((function(n4) {
              n4(t4);
            }));
          }
          return new (e3 || (e3 = Promise))((function(e4, o2) {
            function a2(t4) {
              try {
                s2(i3.next(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function u2(t4) {
              try {
                s2(i3.throw(t4));
              } catch (t5) {
                o2(t5);
              }
            }
            function s2(t4) {
              t4.done ? e4(t4.value) : r2(t4.value).then(a2, u2);
            }
            s2((i3 = i3.apply(t3, n3 || [])).next());
          }));
        }, v = this && this.tJr || function(t3, n3) {
          var e3 = { label: 0, sent: function() {
            if (1 & o2[0]) throw o2[1];
            return o2[1];
          }, trys: [], ops: [] }, i3, r2, o2, a2;
          return a2 = { next: u2(0), throw: u2(1), return: u2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
            return this;
          }), a2;
          function u2(t4) {
            return function(n4) {
              return s2([t4, n4]);
            };
          }
          function s2(u3) {
            if (i3) throw new TypeError("Generator is already executing.");
            for (; a2 && (a2 = 0, u3[0] && (e3 = 0)), e3; ) try {
              if (i3 = 1, r2 && (o2 = 2 & u3[0] ? r2.return : u3[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, u3[1])).done) return o2;
              switch (r2 = 0, o2 && (u3 = [2 & u3[0], o2.value]), u3[0]) {
                case 0:
                case 1:
                  o2 = u3;
                  break;
                case 4:
                  return e3.label++, { value: u3[1], done: false };
                case 5:
                  e3.label++, r2 = u3[1], u3 = [0];
                  continue;
                case 7:
                  u3 = e3.ops.pop(), e3.trys.pop();
                  continue;
                default:
                  if (!(o2 = e3.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== u3[0] && 2 !== u3[0])) {
                    e3 = 0;
                    continue;
                  }
                  if (3 === u3[0] && (!o2 || u3[1] > o2[0] && u3[1] < o2[3])) {
                    e3.label = u3[1];
                    break;
                  }
                  if (6 === u3[0] && e3.label < o2[1]) {
                    e3.label = o2[1], o2 = u3;
                    break;
                  }
                  if (o2 && e3.label < o2[2]) {
                    e3.label = o2[2], e3.ops.push(u3);
                    break;
                  }
                  o2[2] && e3.ops.pop(), e3.trys.pop();
                  continue;
              }
              u3 = n3.call(t3, e3);
            } catch (t4) {
              u3 = [6, t4], r2 = 0;
            } finally {
              i3 = o2 = 0;
            }
            if (5 & u3[0]) throw u3[1];
            return { value: u3[0] ? u3[1] : void 0, done: true };
          }
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataBindingSource = void 0, i2 = e2("CalcEngine"), r = e2("Common"), o = e2("SheetsCalc"), a = e2("CalcEngine"), u = r.Common.lt.ht, s = !!i2, c = void 0, f = r.Common.lt.Nh, l = function(t3) {
          return !!u(t3) || "string" == typeof t3 && "" === t3.trim();
        }, h = (function() {
          function t3(t4) {
            this.bbt = t4;
          }
          return t3.prototype.u8r = function(t4) {
            return 0 === arguments.length ? this.Zgr : (this.Zgr = t4, this.rUr = c, t4);
          }, t3.prototype.ICr = function(t4, n3, e3) {
            var i3, r2 = this;
            return this.Hmr = n3, this.FIr ? this.FIr : this.Wgr() ? Promise.resolve(false) : (i3 = this.Qgr(t4, e3), this.FIr = i3, this.FIr.then((function() {
              r2.FIr = null;
            })), i3);
          }, t3.prototype.ouo = function() {
            this.rUr = c;
          }, t3.prototype._items = function() {
            return this.rUr;
          }, t3.prototype.iUr = function() {
            return u(this.rUr) && !this.Wgr();
          }, t3.prototype.Wgr = function() {
            return !s || (!!u(this.Zgr) || !this.Zgr.dataSource);
            var t4;
          }, t3.prototype.Jgr = function(t4, n3) {
            var e3, i3, r2, o2 = null === (i3 = null === (e3 = t4.parent) || void 0 === e3 ? void 0 : e3.dataManager()) || void 0 === i3 ? void 0 : i3.tables;
            return !u(o2) && (r2 = Object.keys(o2), n3 = n3.toLowerCase(), r2.some((function(t5) {
              return t5.toLowerCase() === n3;
            })));
          }, t3.prototype.Qgr = function(t4, n3) {
            var e3, i3, r2 = this.Zgr, o2 = r2.dataSource, a2 = r2.text, u2 = r2.value;
            return this.Jgr(t4, o2) ? a2 || u2 ? (a2 || (a2 = u2), u2 || (u2 = a2), a2 === u2 ? (o2 = 'SORT(UNIQUE(QUERY("'.concat(o2, '", "').concat(a2, '")))'), e3 = 0, i3 = 0) : (o2 = 'SORT(UNIQUE(QUERY("'.concat(o2, '", {"').concat(a2, '","').concat(u2, '"})))'), e3 = 0, i3 = 1)) : (o2 = 'SORT(UNIQUE(QUERY("'.concat(o2, '")))'), e3 = 0, i3 = 0) : l(a2) && l(u2) ? (e3 = 0, i3 = 0) : (l(a2) && (a2 = u2), l(u2) && (u2 = a2), e3 = Number(a2), i3 = Number(u2)), this.auo(t4, o2, e3, i3, n3);
          }, t3.prototype.auo = function(t4, n3, e3, i3, r2) {
            var s2;
            return d(this, void 0, void 0, (function() {
              var l2, h2, d2, p, g, m, b, y, w, M = this;
              return v(this, (function(v2) {
                switch (v2.label) {
                  case 0:
                    l2 = t4, h2 = false, p = false, v2.label = 1;
                  case 1:
                    return v2.trys.push([1, 3, , 4]), n3 = n3.trimStart(), g = (0, o.formulaToExpression)(l2, n3), [4, (0, o.xbt)(l2, g, 0, 0)];
                  case 2:
                    return (m = v2.sent()) instanceof a.CalcError ? p = true : (b = a.Convert.LE(m) || a.Convert.Nh(m)) ? ((d2 = a.Convert.iV(m, 0, false, false, false)).isError || d2.isConvertError || (h2 = true), !d2[0] || !d2[0][0] || "object" != typeof d2[0][0] || d2[0][0] instanceof Date || (d2 = d2.map((function(t5) {
                      return Object.values(t5[0]);
                    })))) : ("string" == typeof m && (m = JSON.parse(m)), f(m) && m.length > 0 && ("object" == typeof m[0] ? f(m[0]) && m[0].length < 1 || (d2 = m.map((function(t5) {
                      return Object.values(t5);
                    })), h2 = true) : (d2 = m.map((function(t5) {
                      return [t5];
                    })), h2 = true))), [3, 4];
                  case 3:
                    return y = v2.sent(), p = true, [3, 4];
                  case 4:
                    return w = function(t5) {
                      return u(t5) ? "" : M.bbt ? M.bbt(t5, r2) : t5;
                    }, p || !h2 ? p && (this.rUr = null !== (s2 = this.rUr) && void 0 !== s2 ? s2 : []) : (this.rUr = d2.map((function(t5) {
                      var n4;
                      return { text: w(t5[e3]), value: null !== (n4 = t5[i3]) && void 0 !== n4 ? n4 : "" };
                    })), this.Hmr && (this.Hmr = false, u(l2.Emr) && (l2.Emr = window.setTimeout((function() {
                      l2.repaint(), l2.Emr = c;
                    }), 50)))), [2, h2];
                }
              }));
            }));
          }, t3;
        })(), n2.DataBindingSource = h;
      }, "./dist/plugins/celltype/dataobjectcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v = this && this.qKr || (p = function(t3, n3) {
          return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, p(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          p(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), p;
        function g(t3) {
          return t3 && "object" == typeof t3 && !(t3 instanceof i2.CalcError) && !(t3 instanceof Date) && !Array.isArray(t3);
        }
        function m(t3) {
          return g(t3) ? b(t3, "") : [];
        }
        function b(t3, n3) {
          var e3, i3, r2, a2, u2, s2, c2 = [], f2 = Object.keys(t3);
          for (e3 = 0, i3 = f2; e3 < i3.length; e3++) r2 = i3[e3], u2 = n3 ? n3 + "." + r2 : r2, "function" != typeof (a2 = t3[r2]) && (g(a2) ? (s2 = b(a2, u2), c2.push({ text: r2, value: a2, path: u2, layout: { displayAs: o.LayoutDisplayAs.popup }, items: s2 })) : c2.push({ text: r2, value: a2, path: u2 }));
          return c2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataObject = void 0, i2 = e2("CalcEngine"), r = e2("Common"), o = e2("Core"), a = e2("./dist/plugins/celltype/celltypes.ns.js"), u = new r.Common.ResourceManager(a.SR, "CellTypes"), s = u.getResource.bind(u), c = "vc", f = o.CellTypes.Text, l = r.Common.lt.ht, h = void 0, d = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.typeName = "18", e3.pU = n4, e3;
          }
          return v(n3, t3), n3.prototype.Xe = function(t4, n4, e3, i3, r2) {
            var a2 = t4.Z_(n4, e3, r2, true);
            a2 || ((a2 = new o.Style()).cellType = this), t4.Ut.do("setStyle", n4, e3, a2, r2);
          }, n3.prototype.qe = function(t4, n4, i3, r2, a2) {
            var u2 = t4.getValue(n4, i3, a2), c2 = m(u2);
            c2.length > 0 ? (r2.formatter = this.pU, r2.cellButtons = [{ command: "openList", imageType: o.ButtonImageType.custom, imageSrc: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+RGF0YSBvYmplY3QgY2VsbCB0eXBlPC90aXRsZT4KICAgIDxnIGlkPSJEYXRhLW9iamVjdC1jZWxsLXR5cGUiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xMyw4LjcxNDI4NTcxIEwxMywxMS41NzE0Mjg2IEMxMywxMi4zNjA0OTExIDEwLjk4NTgxNzMsMTMgOC41LDEzIEM2LjAxNDE4MjY5LDEzIDQsMTIuMzYwNDkxMSA0LDExLjU3MTQyODYgTDQsOC43MTQyODU3MSBDNCw5LjUwMzM0ODIxIDYuMDE0MTgyNjksMTAuMTQyODU3MSA4LjUsMTAuMTQyODU3MSBDMTAuOTg1ODE3MywxMC4xNDI4NTcxIDEzLDkuNTAzMzQ4MjEgMTMsOC43MTQyODU3MSBaIE0xMyw1LjE0Mjg1NzE0IEwxMyw4IEMxMyw4Ljc4OTA2MjUgMTAuOTg1ODE3Myw5LjQyODU3MTQzIDguNSw5LjQyODU3MTQzIEM2LjAxNDE4MjY5LDkuNDI4NTcxNDMgNCw4Ljc4OTA2MjUgNCw4IEw0LDUuMTQyODU3MTQgQzQsNS45MzE5MTk2NCA2LjAxNDE4MjY5LDYuNTcxNDI4NTcgOC41LDYuNTcxNDI4NTcgQzEwLjk4NTgxNzMsNi41NzE0Mjg1NyAxMyw1LjkzMTkxOTY0IDEzLDUuMTQyODU3MTQgWiBNOC41LDMgQzEwLjk4NTgxNzMsMyAxMywzLjYzOTUwODkzIDEzLDQuNDI4NTcxNDMgQzEzLDUuMjE3NjMzOTMgMTAuOTg1ODE3Myw1Ljg1NzE0Mjg2IDguNSw1Ljg1NzE0Mjg2IEM2LjAxNDE4MjY5LDUuODU3MTQyODYgNCw1LjIxNzYzMzkzIDQsNC40Mjg1NzE0MyBDNCwzLjYzOTUwODkzIDYuMDE0MTgyNjksMyA4LjUsMyBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjMzY3RkNBIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+" }], r2.dropDowns = [{ type: o.DropDownType.list, option: { items: c2, dropDownAlignment: 0, dropDownDirection: 3 }, submitCommand: function(i4, r3, u3) {
              var c3, f2, h2, d2, v2, p2, g2, m2 = e2("SheetsCalc"), b2 = u3.sheetArea;
              for (c3 = u3.col + 1; c3 < i4.getColumnCount(b2); c3++) {
                if (i4.isActualProtected() && i4.getCell(u3.row, c3, b2).locked()) {
                  i4.jT(16, s().DataObject_MeetLock);
                  break;
                }
                if (i4.Ut.findSpan(u3.row, c3, b2)) {
                  i4.jT(16, s().DataObject_MeetSpan);
                  break;
                }
                if (3 === b2 && i4.tables && i4.tables.find(u3.row, c3) || i4.pivotTables && i4.pivotTables.findPivotTable(u3.row, c3)) {
                  i4.jT(16, s().DataObject_MeetTable);
                  break;
                }
                if (l(i4.getValue(u3.row, c3, b2))) {
                  if (f2 = { r: null }, o.CellTypes.Base.et(t4, "beforeEditDataObjectCellType", f2), f2.r) return;
                  h2 = m2.rangesToFormula([new o.Range(u3.row, u3.col, 1, 1)], n4, c3, 15, 1 === t4.parent.options.referenceStyle), d2 = u3.path, v2 = { cmd: "editCell", sheetName: i4.name(), row: u3.row, col: c3, sheetArea: b2, newValue: "=" + h2 + '."' + d2 + '"', autoFormat: false }, t4.dataRanges && (p2 = t4.dataRanges.getByPosition(u3.row, c3)) && (g2 = p2.convertContext({ sheet: t4, row: u3.row, col: c3, sheetArea: a2 })) && g2.sheet !== t4 && (v2.sheetName = g2.sheet.name(), v2.row = g2.row, v2.col = g2.col, v2.sheetArea = g2.sheetArea), i4.Qy().execute(v2);
                  break;
                }
              }
            } }]) : (r2.cellButtons = h, r2.dropDowns = h), r2.formatter && o.util.St(r2.formatter) && t4.SL(n4, i3, r2.formatter);
          }, n3.prototype.paint = function(n4, e3, i3, r2, o2, a2, u2, s2) {
            this.pU !== u2.formatter || this.bU ? (this.Xe(s2.sheet, s2.row, s2.col, e3, s2.sheetArea), this.bU = false) : s2.sheet.Ut.W_(s2.sheetArea).getValueForKey(s2.row, s2.col, c) && (this.Xe(s2.sheet, s2.row, s2.col, e3, s2.sheetArea), s2.sheet.Ut.W_(s2.sheetArea).setValueForKey(s2.row, s2.col, c, h)), t3.prototype.paint.call(this, n4, e3, i3, r2, o2, a2, u2, s2);
          }, n3.prototype.toJSON = function() {
            return { typeName: this.typeName, format: this.pU };
          }, n3.prototype.fromJSON = function(t4) {
            this.pU = t4.format, this.bU = true;
          }, n3;
        })(f), n2.DataObject = d, o.CellTypes.ti[18] = d;
      }, "./dist/plugins/celltype/diagonalCellType/autoFitCell.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.AutoFitCell = void 0, i2 = e2("./dist/plugins/celltype/diagonalCellType/geometry.js"), r = Math.max, o = Math.abs, a = 1, u = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2) {
            this.YC = t4, this.ZC = n3, this.YSr = e3, this._lineHeight = i3, this.QSr = o2, this.Hur = a2, this.JSr = r2;
          }
          return t3.prototype.getAutoFitWidth = function() {
            var t4, n3, e3, i3 = this, o2 = i3.YSr, a2 = o2.length, u2 = i3.Hur, s = i3.YC, c = i3.ZC, f = i3.QSr, l = i3.lGr(s, c, a2);
            if (2 === a2) return u2 ? f ? r(i3.KSr(o2[0], l[0]), i3.XSr(o2[1], l[1])) : r(i3.qSr(o2[0], l[0]), i3.$Sr(o2[1], l[1])) : f ? r(i3.qSr(o2[0], l[0]), i3.$Sr(o2[1], l[1])) : r(i3.KSr(o2[0], l[0]), i3.XSr(o2[1], l[1]));
            if (3 === a2) return t4 = 1.5, u2 ? f ? r(i3.KSr(o2[0], l[0]) * t4, i3.hGr(s, c, o2, l, 1), i3.XSr(o2[2], l[2])) : r(i3.qSr(o2[0], l[0]), i3.hGr(s, c, o2, l, 1), i3.$Sr(o2[2], l[2]) * t4) : f ? r(i3.qSr(o2[0], l[0]) * t4, i3.hGr(s, c, o2, l, 1), i3.$Sr(o2[2], l[2])) : r(i3.KSr(o2[0], l[0]), i3.hGr(s, c, o2, l, 1), i3.XSr(o2[2], l[2]) * t4);
            for (n3 = [], e3 = 0; e3 < a2; e3++) n3.push(i3.tTr(o2[e3], l[e3]).width);
            return r.apply(r, n3);
          }, t3.prototype.getAutoFitHeight = function() {
            var t4, n3, e3, i3 = this, o2 = i3.YSr, a2 = o2.length, u2 = i3.Hur, s = i3.YC, c = i3.ZC, f = i3.QSr, l = i3.lGr(s, c, a2);
            if (2 === a2) return u2 ? f ? r(i3.nTr(o2[0], l[0]), i3.eTr(o2[1], l[1])) : r(i3.iTr(o2[0], l[0]), i3.rTr(o2[1], l[1])) : f ? r(i3.iTr(o2[0], l[0]), i3.rTr(o2[1], l[1])) : r(i3.nTr(o2[0], l[0]), i3.eTr(o2[1], l[1]));
            if (3 === a2) return t4 = 1.5, u2 ? f ? r(i3.nTr(o2[0], l[0]), i3.dGr(s, c, o2, l, 1), i3.eTr(o2[2], l[2]) * t4) : r(i3.iTr(o2[0], l[0]) * t4, i3.dGr(s, c, o2, l, 1), i3.rTr(o2[2], l[2])) : f ? r(i3.iTr(o2[0], l[0]), i3.dGr(s, c, o2, l, 1), i3.rTr(o2[2], l[2]) * t4) : r(i3.nTr(o2[0], l[0]) * t4, i3.dGr(s, c, o2, l, 1), i3.eTr(o2[2], l[2]));
            for (n3 = [], e3 = 0; e3 < a2; e3++) n3.push(i3.tTr(o2[e3], l[e3]).height);
            return r.apply(r, n3);
          }, t3.prototype.hGr = function(t4, n3, e3, i3, r2, u2) {
            var s, c, f, l, h;
            for (void 0 === u2 && (u2 = 10), s = this, c = 0, f = 1 / 0; ; ) {
              if (l = s.tTr(e3[r2], i3[r2]).width, (h = o(l - t4)) > f) return t4;
              if (h < a || ++c >= u2) return l;
              f = h, t4 = l, i3 = s.lGr(t4, n3, e3.length);
            }
          }, t3.prototype.dGr = function(t4, n3, e3, i3, r2, u2) {
            var s, c, f, l, h;
            for (void 0 === u2 && (u2 = 10), s = this, c = 0, f = 1 / 0; ; ) {
              if (l = s.tTr(e3[r2], i3[r2]).height, (h = o(l - n3)) > f) return n3;
              if (h < a || ++c >= u2) return l;
              f = h, n3 = l, i3 = s.lGr(t4, n3, e3.length);
            }
          }, t3.prototype.lGr = function(t4, n3, e3) {
            var r2 = this, o2 = r2.Hur, a2 = r2.QSr, u2 = (0, i2.divideAreas)(0, 0, t4, n3, e3, a2, o2);
            return o2 && (u2 = (0, i2.convertRightToLeftAreasToStandardAreas)(u2)), u2;
          }, t3.prototype.KSr = function(t4, n3) {
            var e3 = this, r2 = e3._lineHeight, o2 = e3.JSr, a2 = (0, i2.getDistance)(n3.vertexes[1], n3.vertexes[2]), u2 = t4 + 2 * o2, s = r2 * u2 / (a2 - r2);
            return s + u2;
          }, t3.prototype.XSr = function(t4, n3) {
            var e3 = this, r2 = e3._lineHeight, o2 = e3.JSr, a2 = (0, i2.getDistance)(n3.vertexes[0], n3.vertexes[2]), u2 = t4 + 2 * o2, s = r2 * u2 / (a2 - r2);
            return s + u2;
          }, t3.prototype.qSr = function(t4, n3) {
            var e3 = this, r2 = e3._lineHeight, o2 = e3.JSr, a2 = (0, i2.getDistance)(n3.vertexes[0], n3.vertexes[1]), u2 = t4 + 2 * o2, s = r2 * u2 / (a2 - r2);
            return s + u2;
          }, t3.prototype.$Sr = function(t4, n3) {
            var e3 = this, r2 = e3._lineHeight, o2 = e3.JSr, a2 = (0, i2.getDistance)(n3.vertexes[2], n3.vertexes[1]), u2 = t4 + 2 * o2, s = r2 * u2 / (a2 - r2);
            return s + u2;
          }, t3.prototype.nTr = function(t4, n3) {
            var e3 = this, r2 = (0, i2.getDistance)(n3.vertexes[0], n3.vertexes[1]);
            return e3.getMinAreaHeight(r2, t4);
          }, t3.prototype.eTr = function(t4, n3) {
            var e3 = this, r2 = (0, i2.getDistance)(n3.vertexes[2], n3.vertexes[1]);
            return e3.getMinAreaHeight(r2, t4);
          }, t3.prototype.iTr = function(t4, n3) {
            var e3 = this, r2 = (0, i2.getDistance)(n3.vertexes[1], n3.vertexes[2]);
            return e3.getMinAreaHeight(r2, t4);
          }, t3.prototype.rTr = function(t4, n3) {
            var e3 = this, r2 = (0, i2.getDistance)(n3.vertexes[0], n3.vertexes[2]);
            return e3.getMinAreaHeight(r2, t4);
          }, t3.prototype.tTr = function(t4, n3) {
            var e3 = this, r2 = e3._lineHeight, a2 = e3.JSr, u2 = e3.QSr, s = n3.angle, c = n3.mainDirection, f = c.start, l = 0.5 * r2 / Math.tan(0.5 * s), h = (0, i2.getPointOnLineByDistance)(c, l + t4 + 2 * a2), d = u2 ? 0 : 0.5 * r2;
            return { width: o(h.x - f.x), height: o(h.y - f.y) + d };
          }, t3.prototype.getMinAreaHeight = function(t4, n3) {
            for (var e3, i3 = this, r2 = i3._lineHeight, o2 = i3.JSr, a2 = 2; !(t4 * a2 - a2 * (2 * o2) - (1 + a2) * a2 / 2 * (e3 = t4 / a2) > n3); ) a2 += 1;
            return a2 * r2;
          }, t3;
        })(), n2.AutoFitCell = u;
      }, "./dist/plugins/celltype/diagonalCellType/diagonal-spread.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        function s(t3, n3) {
          var e3, i3 = n3.row, r2 = n3.col, s2 = n3.sheetArea, c2 = t3.getCellType(i3, r2, s2);
          return !!c2 && ("20" === c2.typeName && (e3 = t3.getValue(i3, r2, s2), !a(e3) && !!(u(e3) || o.Convert.LE(e3) || o.Convert.Nh(e3))));
        }
        function c() {
          return "pic-".concat(Math.ceil(1e9 * Math.random()).toString());
        }
        function f(t3, n3) {
          var e3, i3, o2, a2, u2 = [], s2 = t3.getUsedRange(r.UsedRangeType.style);
          return s2 && u2.push({ minRow: s2.row, maxRow: s2.row + s2.rowCount, minCol: s2.col, maxCol: s2.col + s2.colCount }), e3 = t3.getRowCount(), i3 = t3.getColumnCount(), o2 = n3.columnHeadersAsFrozenRows ? t3.getRowCount(r.SheetArea.colHeader) : 0, a2 = n3.rowHeadersAsFrozenColumns ? t3.getColumnCount(r.SheetArea.rowHeader) : 0, n3.columnHeadersAsFrozenRows && u2.push({ minRow: 0, maxRow: o2 + 1, minCol: a2, maxCol: i3 }), n3.rowHeadersAsFrozenColumns && u2.push({ minRow: o2, maxRow: e3, minCol: 0, maxCol: a2 + 1 }), u2;
        }
        function l(t3, n3) {
          var e3, i3, r2 = { width: 0, height: 0 };
          for (e3 = 0; e3 < n3.rowCount; e3++) r2.height += +t3.getRowHeight(e3 + n3.row);
          for (i3 = 0; i3 < n3.colCount; i3++) r2.width += +t3.getColumnWidth(i3 + n3.col);
          return r2;
        }
        function h(t3, n3) {
          return t3.some((function(t4) {
            return t4.row === n3.row && t4.col === n3.col && t4.rowCount === n3.rowCount && t4.colCount === n3.colCount;
          }));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.skr = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("CalcEngine"), a = i2.Common.lt.ht, u = i2.Common.lt.Nh, n2.skr = s, r.Worksheet.ch("diagonalCellType", { allowStartEdit: function(t3) {
          false !== t3.isAllow && s(this, t3) && (t3.isAllow = false);
        }, getExtraExportShapes: function(t3) {
          var n3, e3, i3, o2, a2, u2, s2 = t3.saveOptions, d = t3.shapes, v = this;
          if ((null == s2 ? void 0 : s2.fileType) === r.OpenSaveFileType.excel && s2.saveAsView) {
            for (n3 = [], i3 = function(t4) {
              var e4, i4, o3, a3, u3, s3, f2, p, g, m, b, y, w, M, C, S, T = t4.maxRow, x = t4.maxCol;
              for (i4 = t4.minRow; i4 < T; i4++) for (o3 = t4.minCol; o3 < x; o3++) if ((a3 = v.getStyle(i4, o3)) && a3.cellType && "20" === a3.cellType.typeName && (u3 = a3.cellType, s3 = v.getValue(i4, o3), !((f2 = u3.EE(s3)).length < 2))) {
                if (p = v.getSpan(i4, o3)) {
                  if (h(n3, p)) continue;
                  n3.push(p);
                } else p = new r.Range(i4, o3, 1, 1);
                m = (g = l(v, p)).width, b = g.height, y = "";
                try {
                  (w = document.createElement("canvas")).width = m, w.height = b, M = w.getContext("2d"), C = { sheet: v, row: i4, col: o3, sheetArea: 3 }, M.fillStyle = (null === (e4 = v.currentTheme()) || void 0 === e4 ? void 0 : e4.getColor(a3.backColor)) || "white", M.fillRect(0, 0, m, b), a3.cellType.paintValue(M, s3, 0, 0, m, b, a3, C), y = w.toDataURL();
                } catch (t5) {
                  continue;
                }
                S = { name: c(), x: 0, y: 0, width: m, height: b, startRow: i4, startColumn: o3, endRow: i4 + p.rowCount, endColumn: o3 + p.colCount, startRowOffset: 2, startColumnOffset: 2, endRowOffset: -2, endColumnOffset: -2, shapeBase64Data: y }, d.push(S);
              }
            }, o2 = 0, a2 = e3 = f(v, t3.saveOptions); o2 < a2.length; o2++) i3(u2 = a2[o2]);
            return d;
          }
        } });
      }, "./dist/plugins/celltype/diagonalCellType/geometry.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o;
        function a(t3, n3) {
          var e3 = t3.start, i3 = t3.end, r2 = { x: e3.x, y: e3.y + n3 }, o2 = { x: i3.x, y: i3.y + n3 };
          return { start: r2, end: o2 };
        }
        function u(t3, n3) {
          var e3 = n3.x - t3.x, i3 = n3.y - t3.y;
          return Math.sqrt(e3 * e3 + i3 * i3);
        }
        function s(t3) {
          var n3 = t3.end.x - t3.start.x, e3 = t3.end.y - t3.start.y;
          return Math.sqrt(n3 * n3 + e3 * e3);
        }
        function c(t3, n3) {
          var e3 = t3.start, i3 = t3.end, r2 = i3.x - e3.x, o2 = i3.y - e3.y, a2 = Math.sqrt(r2 * r2 + o2 * o2), u2 = r2 / a2, s2 = o2 / a2, c2 = e3.x + u2 * n3, f2 = e3.y + s2 * n3;
          return { x: c2, y: f2 };
        }
        function f(t3, n3) {
          var e3 = t3.start, i3 = t3.end, r2 = i3.x - e3.x, o2 = i3.y - e3.y, a2 = r2 * Math.cos(n3) - o2 * Math.sin(n3), u2 = r2 * Math.sin(n3) + o2 * Math.cos(n3), s2 = { x: e3.x + a2, y: e3.y + u2 };
          return { start: e3, end: s2 };
        }
        function l(t3, n3) {
          var i3, r2, o2, a2, u2, s2, c2 = t3.start, f2 = t3.end, l2 = n3.start, h2 = n3.end, d2 = f2.x - c2.x, v2 = f2.y - c2.y, p2 = h2.x - l2.x, g2 = h2.y - l2.y, m2 = d2 * g2 - v2 * p2;
          return Math.abs(m2) < e2 ? null : (a2 = ((i3 = l2.x - c2.x) * v2 - (r2 = l2.y - c2.y) * d2) / m2, (o2 = (i3 * g2 - r2 * p2) / m2) >= 0 && a2 >= 0 && a2 <= 1 ? { x: u2 = c2.x + o2 * d2, y: s2 = c2.y + o2 * v2 } : null);
        }
        function h(t3, n3) {
          var i3 = n3.x - t3.x, r2 = n3.y - t3.y;
          return Math.sqrt(i3 * i3 + r2 * r2) < e2;
        }
        function d(t3) {
          return { x: t3.end.x - t3.start.x, y: t3.end.y - t3.start.y };
        }
        function v(t3) {
          return { x: -1 * t3.x, y: -1 * t3.y };
        }
        function p(t3, n3) {
          var e3 = t3.x * n3.x + t3.y * n3.y, i3 = Math.sqrt(t3.x * t3.x + t3.y * t3.y), r2 = Math.sqrt(n3.x * n3.x + n3.y * n3.y), o2 = e3 / (i3 * r2);
          return Math.acos(o2);
        }
        function g(t3, n3) {
          return { x: n3.x - t3.x, y: n3.y - t3.y };
        }
        function m(t3, n3, e3, i3, r2, a2, u2) {
          var s2 = { x: t3, y: n3 }, c2 = { x: t3 + e3, y: n3 }, f2 = { x: t3, y: n3 + i3 }, l2 = { x: t3 + e3, y: n3 + i3 }, h2 = new o([s2, c2, l2, f2]);
          return h2.divideAreas(r2, a2, u2);
        }
        function b(t3) {
          var n3 = function(t4) {
            var n4 = t4.vertexes;
            return new i2([n4[1], n4[2], n4[0]], t4.mainDirection);
          }, e3 = function(t4) {
            var n4 = t4.vertexes;
            return new i2([n4[2], n4[0], n4[1]], t4.mainDirection);
          }, r2 = Array.from(t3);
          return (r2 = r2.reverse()).length > 3 || (r2[0] = n3(r2[0]), r2[r2.length - 1] = e3(r2[r2.length - 1])), r2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.convertRightToLeftAreasToStandardAreas = n2.divideAreas = n2.getVector = n2.angleBetweenVectors = n2.reverseDirection = n2.getLineDirection = n2.isEqual = n2.intersectRayAndLineSeg = n2.rotateLine = n2.getPointOnLineByDistance = n2.getLineLength = n2.getDistance = n2.moveLineY = n2.Polygon = void 0, e2 = 1e-3, i2 = (function() {
          function t3(t4, n3) {
            this.wSu = t4, this.oTr = n3;
          }
          return Object.defineProperty(t3.prototype, "diagonal", { get: function() {
            return { start: this.wSu[0], end: this.wSu[this.wSu.length - 1] };
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "vertexes", { get: function() {
            return this.wSu;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "mainDirection", { get: function() {
            return this.oTr;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "textLine", { get: function() {
            var t4, n3, e3 = this, i3 = e3.wSu, r2 = i3.length, o2 = e3.oTr;
            for (n3 = 1; n3 < r2 - 1 && !(t4 = l(o2, { start: i3[n3], end: i3[n3 + 1] })); n3++) ;
            if (t4) return { start: o2.start, end: t4 };
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "angle", { get: function() {
            var t4 = this, n3 = t4.vertexes, e3 = g(n3[0], n3[1]), i3 = g(n3[0], n3[n3.length - 1]);
            return p(e3, i3);
          }, enumerable: false, configurable: true }), t3;
        })(), n2.Polygon = i2, (function(t3) {
          t3[t3.topLeft = 0] = "topLeft", t3[t3.topRight = 1] = "topRight", t3[t3.bottomRight = 2] = "bottomRight", t3[t3.bottomLeft = 3] = "bottomLeft";
        })(r || (r = {})), o = (function() {
          function t3(t4) {
            this.wSu = t4;
          }
          return t3.prototype.divideAreas = function(t4, n3, e3) {
            var o2, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
            return t4 < 2 ? [] : (o2 = this, a2 = n3 ? e3 ? r.bottomRight : r.bottomLeft : e3 ? r.topRight : r.topLeft, u2 = o2.aTr(a2), 2 === t4 ? [f2 = new i2([u2[0].start, u2[0].end, u2[1].end], null), l2 = new i2([u2[0].start, u2[2].start, u2[2].end], null)] : (h2 = u2[0], d2 = u2[1], v2 = u2[2], 3 === t4 ? (g2 = c(d2, 2 * (p2 = s(d2)) / 3), f2 = new i2([h2.start, h2.end, g2], null), m2 = c(v2, (p2 = s(v2)) / 3), [f2, l2 = new i2([h2.start, g2, d2.end, m2], { start: h2.start, end: d2.end }), b2 = new i2([h2.start, m2, v2.end], null)]) : o2.uTr(h2, [d2, v2], t4)));
          }, t3.prototype.uTr = function(t4, n3, e3) {
            for (var r2, o2, a2, u2, s2, c2, d2 = [], v2 = Math.PI / 2 / e3, p2 = v2 / 2, g2 = 0, m2 = 0, b2 = false; m2 < e3 - 1; ) (a2 = l(r2 = f(t4, v2), o2 = n3[g2])) ? (u2 = [t4.start, t4.end], b2 && !h(t4.end, n3[g2 - 1].end) && u2.push(n3[g2 - 1].end), u2.push(a2), s2 = f(t4, p2), d2.push(new i2(u2, s2)), b2 = false, m2++, t4 = { start: t4.start, end: a2 }) : (g2++, b2 = true);
            return c2 = [t4.start, t4.end], 0 !== g2 || h(t4.end, n3[g2].end) || c2.push(n3[g2].end), c2.push(n3[1].end), d2.push(new i2(c2, f(t4, p2))), d2;
          }, t3.prototype.aTr = function(t4) {
            var n3, e3, i3, r2 = this, o2 = [], a2 = 4;
            for (n3 = 0; n3 < a2; n3++) e3 = r2.wSu[(t4 + n3) % a2], i3 = r2.wSu[(t4 + n3 + 1) % a2], o2.push({ start: e3, end: i3 });
            return o2;
          }, t3;
        })(), n2.moveLineY = a, n2.getDistance = u, n2.getLineLength = s, n2.getPointOnLineByDistance = c, n2.rotateLine = f, n2.intersectRayAndLineSeg = l, n2.isEqual = h, n2.getLineDirection = d, n2.reverseDirection = v, n2.angleBetweenVectors = p, n2.getVector = g, n2.divideAreas = m, n2.convertRightToLeftAreasToStandardAreas = b;
      }, "./dist/plugins/celltype/diagonalCellType/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T = this && this.qKr || (x = function(t3, n3) {
          return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, x(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          x(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), x;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Diagonal = n2.DivergeDirection = void 0, i2 = e2("CalcEngine"), r = e2("Common"), o = e2("Core"), a = e2("CalcEngine"), u = e2("./dist/plugins/celltype/diagonalCellType/geometry.js"), s = e2("./dist/plugins/celltype/diagonalCellType/autoFitCell.js"), c = e2("./dist/plugins/celltype/diagonalCellType/diagonal-spread.js"), f = !!i2, l = r.Common.lt.ht, h = o.CellTypes.TextCellType, d = new o.LineBorder("black", o.LineStyle.thin), v = "_divergeDirection", p = "_lineBorder", g = r.Common.lt.Nh, m = o.mt.vt, b = o.W.x2e, y = ",", w = 10, M = 4, (function(t3) {
          t3[t3.topLeftToBottomRight = 0] = "topLeftToBottomRight", t3[t3.bottomLeftToTopRight = 1] = "bottomLeftToTopRight";
        })(C = n2.DivergeDirection || (n2.DivergeDirection = {})), S = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.allowOverflow = false, n4.typeName = "20", n4.sTr = C.topLeftToBottomRight, n4.cTr = d, n4;
          }
          return T(n3, t3), n3.prototype.paintValue = function(n4, e3, i3, r2, o2, a2, s2, c2) {
            var f2, h2, d2 = this, v2 = d2.EE(e3), p2 = c2.sheet, g2 = p2.options.rightToLeft;
            v2.length <= 1 ? t3.prototype.paintValue.call(this, n4, e3, i3, r2, o2, a2, s2, c2) : (l(c2.fontInfo) && (c2.fontInfo = b(s2, p2.zoom())), l(c2.lineHeight) && (c2.lineHeight = m(c2.fontInfo.font)), v2.length > w && (v2.length = w), f2 = (0, u.divideAreas)(i3, r2, o2, a2, v2.length, d2.sTr === C.bottomLeftToTopRight, g2), d2.lTr(n4, f2.slice(0, f2.length - 1).map((function(t4) {
              return t4.diagonal;
            })), d2.sTr === C.bottomLeftToTopRight, g2), n4.save(), this.pe(n4, c2.sheet, s2), h2 = f2, g2 && (h2 = (0, u.convertRightToLeftAreasToStandardAreas)(f2)), this.dTr(n4, c2, v2, h2, g2), n4.restore());
          }, n3.prototype.divergeDirection = function(t4) {
            var n4 = this;
            return 0 === arguments.length ? n4.sTr : (l(t4) || (n4.sTr = t4), n4);
          }, n3.prototype.lineBorder = function(t4) {
            var n4 = this;
            return 0 === arguments.length ? n4.cTr : (l(t4) || (n4.cTr = t4), n4);
          }, n3.prototype.toJSON = function() {
            var t4 = this, n4 = { typeName: t4.typeName };
            return t4.sTr !== C.topLeftToBottomRight && (n4[v] = t4.sTr), t4.cTr !== d && (n4[p] = t4.cTr.toJSON()), n4;
          }, n3.prototype.fromJSON = function(t4) {
            var n4, e3, i3 = this;
            i3.sTr !== t4[v] && (i3.sTr = t4[v]), n4 = t4[p], l(n4) || ((e3 = new o.LineBorder()).fromJSON(n4), e3.color === d.color && e3.style === d.style || (i3.cTr = e3));
          }, n3.prototype.getAutoFitWidth = function(n4, e3, i3, r2, a2) {
            var u2, s2 = this, c2 = s2.EE(n4);
            return c2.length < 2 ? t3.prototype.getAutoFitWidth.call(this, n4, e3, i3, r2, a2) : l(o.q.J()) ? 0 : (u2 = s2.vGr(c2, i3, r2, a2)).getAutoFitWidth();
          }, n3.prototype.getAutoFitHeight = function(n4, e3, i3, r2, a2) {
            var u2, s2 = this, c2 = s2.EE(n4);
            return c2.length < 2 ? t3.prototype.getAutoFitHeight.call(this, n4, e3, i3, r2, a2) : l(o.q.J()) ? 0 : (u2 = s2.vGr(c2, i3, r2, a2)).getAutoFitHeight();
          }, n3.prototype.vGr = function(t4, n4, e3, i3) {
            var r2, a2, u2, c2, f2, l2, h2 = this, d2 = i3.sheet, v2 = i3.row, p2 = i3.col, g2 = i3.sheetArea, b2 = null !== (r2 = i3.lineHeight) && void 0 !== r2 ? r2 : m(n4.font) / e3;
            return h2.pe(o.q.J(), d2, n4), u2 = t4.map((function(t5) {
              return o.q.Wt(t5) / e3;
            })), c2 = d2.Gt(v2, g2), f2 = d2.nn(p2, g2), l2 = null === (a2 = d2.options) || void 0 === a2 ? void 0 : a2.rightToLeft, new s.AutoFitCell(f2, c2, u2, b2, M, h2.sTr === C.bottomLeftToTopRight, l2);
          }, n3.prototype.lfe = function(t4, n4) {
            var e3;
            return (0, c.skr)(t4.sheet, t4) && (t4.readonly = true), t4;
          }, n3.prototype.wkr = function(n4) {
            var e3, i3, r2, o2, a2, u2;
            return !!t3.prototype.wkr.call(this, n4) && (e3 = this, i3 = n4.sheet, r2 = n4.row, o2 = n4.col, a2 = n4.sheetArea, u2 = { sheet: i3, sheetName: i3.name(), sheetArea: a2, readonly: false, row: r2, col: o2 }, !e3.isReadonly(u2));
          }, n3.prototype.dTr = function(t4, n4, e3, i3, r2) {
            var o2, a2 = this, u2 = e3.length;
            if (2 === u2) r2 ? a2.sTr === C.bottomLeftToTopRight ? (a2.vTr(t4, n4, e3[0], i3[0]), a2.gTr(t4, n4, e3[1], i3[1])) : (a2.mTr(t4, n4, e3[0], i3[0]), a2.pTr(t4, n4, e3[1], i3[1])) : a2.sTr === C.bottomLeftToTopRight ? (a2.mTr(t4, n4, e3[0], i3[0]), a2.pTr(t4, n4, e3[1], i3[1])) : (a2.vTr(t4, n4, e3[0], i3[0]), a2.gTr(t4, n4, e3[1], i3[1]));
            else if (3 === u2) r2 ? a2.sTr === C.bottomLeftToTopRight ? (a2.vTr(t4, n4, e3[0], i3[0]), a2.bTr(t4, n4, e3[1], i3[1], r2), a2.gTr(t4, n4, e3[2], i3[2])) : (a2.mTr(t4, n4, e3[0], i3[0]), a2.bTr(t4, n4, e3[1], i3[1], r2), a2.pTr(t4, n4, e3[2], i3[2])) : a2.sTr === C.bottomLeftToTopRight ? (a2.mTr(t4, n4, e3[0], i3[0]), a2.bTr(t4, n4, e3[1], i3[1], r2), a2.pTr(t4, n4, e3[2], i3[2])) : (a2.vTr(t4, n4, e3[0], i3[0]), a2.bTr(t4, n4, e3[1], i3[1], r2), a2.gTr(t4, n4, e3[2], i3[2]));
            else for (o2 = 0; o2 < u2; o2++) a2.bTr(t4, n4, e3[o2], i3[o2], r2);
          }, n3.prototype.vTr = function(t4, n4, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (e3 && (r2 = this, !((o2 = n4.lineHeight) > (a2 = (0, u.getDistance)(i3.vertexes[1], i3.vertexes[2]))))) {
              for (s2 = r2.wTr(n4), c2 = { start: i3.vertexes[2], end: i3.vertexes[0] }, f2 = { start: i3.vertexes[1], end: i3.vertexes[0] }, f2 = (0, u.moveLineY)(f2, o2), l2 = r2.yTr(t4, e3, o2, a2, f2, c2, false), t4.save(), r2.MTr(t4, i3), t4.beginPath(), h2 = 0, d2 = l2; h2 < d2.length; h2++) p2 = (v2 = d2[h2]).text, g2 = v2.position, t4.fillText(p2, g2.x + M, g2.y - o2 + s2);
              t4.restore();
            }
          }, n3.prototype.gTr = function(t4, n4, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (e3 && (r2 = this, !((o2 = n4.lineHeight) > (a2 = (0, u.getDistance)(i3.vertexes[2], i3.vertexes[0]))))) {
              for (s2 = r2.CTr(n4), c2 = { start: i3.vertexes[0], end: i3.vertexes[1] }, f2 = { start: i3.vertexes[2], end: i3.vertexes[1] }, f2 = (0, u.moveLineY)(f2, -o2), l2 = r2.yTr(t4, e3, -o2, a2, f2, c2, true), t4.save(), r2.MTr(t4, i3), t4.beginPath(), h2 = 0, d2 = l2; h2 < d2.length; h2++) p2 = (v2 = d2[h2]).text, g2 = v2.position, t4.fillText(p2, g2.x + M, g2.y + o2 - s2);
              t4.restore();
            }
          }, n3.prototype.mTr = function(t4, n4, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (e3 && (r2 = this, !((o2 = n4.lineHeight) > (a2 = (0, u.getDistance)(i3.vertexes[1], i3.vertexes[0]))))) {
              for (s2 = r2.wTr(n4), c2 = { start: i3.vertexes[2], end: i3.vertexes[0] }, f2 = { start: i3.vertexes[1], end: i3.vertexes[2] }, f2 = (0, u.moveLineY)(f2, o2), l2 = r2.yTr(t4, e3, o2, a2, f2, c2, true), t4.save(), r2.MTr(t4, i3), t4.beginPath(), h2 = 0, d2 = l2; h2 < d2.length; h2++) p2 = (v2 = d2[h2]).text, g2 = v2.position, t4.fillText(p2, g2.x + M, g2.y - o2 + s2);
              t4.restore();
            }
          }, n3.prototype.pTr = function(t4, n4, e3, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (e3 && (r2 = this, !((o2 = n4.lineHeight) > (a2 = (0, u.getDistance)(i3.vertexes[1], i3.vertexes[2]))))) {
              for (s2 = r2.CTr(n4), c2 = { start: i3.vertexes[0], end: i3.vertexes[1] }, f2 = { start: i3.vertexes[2], end: i3.vertexes[0] }, f2 = (0, u.moveLineY)(f2, -o2), l2 = r2.yTr(t4, e3, -o2, a2, f2, c2, false), t4.save(), r2.MTr(t4, i3), t4.beginPath(), h2 = 0, d2 = l2; h2 < d2.length; h2++) p2 = (v2 = d2[h2]).text, g2 = v2.position, t4.fillText(p2, g2.x + M, g2.y + o2 - s2);
              t4.restore();
            }
          }, n3.prototype.bTr = function(t4, n4, e3, i3, r2) {
            var o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            e3 && (a2 = this, s2 = n4.lineHeight, c2 = null !== (o2 = i3.textLine) && void 0 !== o2 ? o2 : i3.mainDirection, f2 = (0, u.getLineDirection)(c2), l2 = { x: 100, y: 0 }, v2 = i3.angle, p2 = 0.5 * s2 / Math.tan(0.5 * v2), r2 ? (d2 = p2 + (g2 = t4.measureText(e3).width) > (m2 = (0, u.getLineLength)(c2)) ? c2.end : (0, u.getPointOnLineByDistance)(c2, p2 + g2), h2 = (0, u.angleBetweenVectors)(l2, (0, u.reverseDirection)(f2)), a2.sTr !== C.bottomLeftToTopRight && (h2 *= -1)) : (d2 = (0, u.getPointOnLineByDistance)(c2, p2), h2 = (0, u.angleBetweenVectors)(l2, f2), a2.sTr === C.bottomLeftToTopRight && (h2 *= -1)), t4.save(), a2.MTr(t4, i3), t4.translate(d2.x, d2.y + s2 / 2), t4.rotate(h2), t4.fillText(e3, 0, 0), t4.restore());
          }, n3.prototype.STr = function(t4, n4, e3, i3, r2) {
            for (var o2, a2 = Math.abs(n4), s2 = 0, c2 = a2; (o2 = (0, u.intersectRayAndLineSeg)(i3, r2)) && !((s2 += (0, u.getDistance)(i3.start, o2) - 2 * M) > t4) && !((c2 += a2) > e3); ) i3 = (0, u.moveLineY)(i3, n4);
            return i3;
          }, n3.prototype.yTr = function(t4, n4, e3, i3, r2, o2, a2) {
            var s2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = Math.abs(e3), m2 = [], b2 = 0, y2 = t4.measureText(n4).width;
            for (e3 < 0 && (r2 = p2.STr(y2, e3, i3, r2, o2)), s2 = y2 / n4.length; b2 < n4.length && m2.length * g2 < i3 && (c2 = (0, u.intersectRayAndLineSeg)(r2, o2)); ) {
              if (f2 = (0, u.getDistance)(c2, r2.start) - 2 * M, l2 = Math.floor(f2 / s2), h2 = n4.substring(b2, b2 + l2), v2 = l2, (d2 = t4.measureText(h2).width) < f2) for (; b2 + v2 < n4.length && t4.measureText(n4.substring(b2, b2 + v2 + 1)).width < f2; ) v2++;
              else if (d2 > f2) {
                for (; v2 > 0 && t4.measureText(n4.substring(b2, b2 + v2 - 1)).width > f2; ) v2--;
                v2--;
              }
              m2.push({ position: a2 ? r2.start : c2, text: v2 === l2 ? h2 : n4.substring(b2, b2 + v2) }), b2 += v2, r2 = (0, u.moveLineY)(r2, g2);
            }
            return m2;
          }, n3.prototype.MTr = function(t4, n4) {
            var e3, i3 = n4.vertexes;
            for (t4.beginPath(), t4.moveTo(i3[0].x, i3[0].y), e3 = 1; e3 < i3.length; e3++) t4.lineTo(i3[e3].x, i3[e3].y);
            t4.closePath(), t4.clip();
          }, n3.prototype.wTr = function(t4) {
            var n4 = t4.lineHeight, e3 = parseInt(t4.fontInfo.fontSize.toString(), 10), i3 = e3 > 8 ? Math.floor((e3 - 8) / 5 + 2) : 1, r2 = n4 / 2 - e3 / 2 + i3 - 1;
            return n4 - r2;
          }, n3.prototype.CTr = function(t4) {
            var n4 = t4.lineHeight, e3 = parseInt(t4.fontInfo.fontSize.toString(), 10), i3 = e3 > 8 ? Math.floor((e3 - 8) / 5 + 2) : 1, r2 = n4 / 2 - e3 / 2 + i3 - 1;
            return 2 + r2;
          }, n3.prototype.lTr = function(t4, n4, e3, i3) {
            var r2, a2, u2, s2, c2, f2, h2, v2 = null !== (r2 = this.cTr) && void 0 !== r2 ? r2 : d, p2 = v2.color, g2 = v2.style;
            if (e3) for (a2 = 0, u2 = n4; a2 < u2.length; a2++) s2 = u2[a2], c2 = (0, o.Zx)(s2.end.x, s2.end.y, s2.start.x, s2.start.y, p2, g2, void 0, void 0, i3), l(c2) || c2._e(t4);
            else for (f2 = 0, h2 = n4; f2 < h2.length; f2++) s2 = h2[f2], c2 = (0, o.Zx)(s2.start.x, s2.start.y, s2.end.x, s2.end.y, p2, g2, void 0, void 0, i3), l(c2) || c2._e(t4);
          }, n3.prototype.EE = function(t4) {
            var n4, e3, i3, r2;
            return l(t4) ? [] : (n4 = function(t5) {
              return t5.map((function(t6) {
                return l(t6) ? "" : t6.toString();
              }));
            }, g(t4) ? n4(t4) : f && (a.Convert.LE(t4) || a.Convert.Nh(t4)) ? (i3 = !((e3 = a.Convert.iV(t4, 0, false, false, false)).isError || e3.isConvertError)) ? (e3[0] && e3[0][0] && "object" == typeof e3[0][0] && (e3 = e3.map((function(t5) {
              return Object.values(t5[0]);
            }))), e3.reduce((function(t5, e4) {
              return t5.concat(n4(e4));
            }), [])) : [] : (r2 = t4.toString()).split(y));
          }, n3;
        })(h), n2.Diagonal = S, o.CellTypes.ti[20] = S;
      }, "./dist/plugins/celltype/dropdown-action.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L = this && this.nJr || function() {
          return L = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, L.apply(this, arguments);
        };
        function F(t3, n3) {
          return _.createElement(t3, n3);
        }
        function B(t3) {
          return { canUndo: false, execute: function(n3, e3, f2) {
            var h2, d2, m2, b2, y2, M2, C2, _2, O2, E2, R2, B2, U2, V2, Y2, Z2, W, Q, K, J, X, q, $, tt, nt, et, it, rt = (0, i2._f)(n3, e3.sheetName);
            if (!rt || n3.jg().name() !== e3.sheetName) return false;
            if (h2 = e3.row, d2 = e3.col, (g(h2) || g(d2)) && (h2 = rt.getActiveRowIndex(), d2 = rt.getActiveColumnIndex()), m2 = e3.sheetArea, g(m2) && (m2 = 3), h2 < 0 || h2 >= rt.getRowCount(m2) || d2 < 0 || d2 >= rt.getColumnCount(m2)) return false;
            if (rt.showCell(h2, d2, i2.VerticalPosition.nearest, i2.HorizontalPosition.nearest), b2 = 1 === m2 ? -1 : void 0, y2 = 2 === m2 ? -1 : void 0, M2 = rt.getCellRect(h2, d2, b2, y2), rt.parent && !rt.parent.options.scrollByPixel && !rt.isEditing()) {
              if ((C2 = rt.frozenColumnCount()) > 0 && C2 < (_2 = rt.getViewportLeftColumn(1)) && (O2 = rt.getSpan(h2, d2, m2)) && O2.col <= _2 && _2 < O2.col + O2.colCount && (E2 = _2 - C2) > 0) for (R2 = 0; R2 < E2; R2++) M2.width = M2.width - rt.getColumnWidth(C2 + R2 + 1, m2);
              if ((B2 = rt.frozenRowCount()) > 0 && B2 < (U2 = rt.getViewportTopRow(1)) && (O2 = rt.getSpan(h2, d2, m2)) && O2.row <= U2 && (V2 = (U2 < O2.row + O2.rowCount ? U2 : O2.rowCount) - B2) > 0) for (R2 = 0; R2 < V2; R2++) M2.height = M2.height - rt.getRowHeight(B2 + R2 + 1, m2);
            }
            switch (Y2 = F("div"), Z2 = P(rt, h2, d2, m2), (g(e3.row) || g(e3.col)) && (e3.row = rt.getActiveRowIndex(), e3.col = rt.getActiveColumnIndex()), K = e3.row, J = e3.col, X = rt.Il(K, J, m2), q = H(t3), (nt = ($ = X.dropDowns) && $.length > 0) && (et = $.filter((function(t4) {
              return t4.type === q;
            }))[0]) && (void 0 !== et.option && null !== et.option && (Q = et.option), tt = et), t3) {
              case S:
                W = new c.ColorPicker(Y2);
                break;
              case T:
                Q && Q.showDateRange ? (Z2 = G(Z2, "dateRange"), W = new l.RangeCalendar(Y2, L(L({}, Q), { calendarPage: i2.CalendarPage.day, showTime: false }))) : (Z2 = G(Z2, "dateTime"), W = new l.Calendar(Y2));
                break;
              case x:
                Z2 = G(Z2, "date"), W = new u.TimePicker(Y2);
                break;
              case A:
                Z2 = (Z2 = G(Z2, "number")).toString(), W = new r.Calculator(Y2);
                break;
              case I:
                Z2 = G(Z2, "date"), W = new s.MonthPicker(Y2);
                break;
              case k:
                (W = new o.List(Y2)).formula = rt.getFormula(e3.row, e3.col);
                break;
              case N:
                Z2 = Q && Q.showNumberRange ? G(Z2, "numberRange") : G(Z2, "number"), W = new a.Slider(Y2);
                break;
              case j:
                W = new v.WorkFlow(Y2), "string" != typeof Z2 && Z2 !== w && (Z2 = Z2.toString());
                break;
              case D:
                W = new p.MultiColumn(Y2, w, rt);
            }
            return it = { r: w }, i2.CellTypes.Base.et(rt, "beforePopupDropdownCellType", it), it.r ? void 0 : (z(W, Z2, M2, rt, e3, X, nt, tt, Q), true);
          } };
        }
        function P(t3, n3, e3, i3) {
          return t3.getValue(n3, e3, i3);
        }
        function G(t3, n3) {
          if ("date" === n3) "string" == typeof t3 ? (t3 = b.yU(t3)) === w && (t3 = /* @__PURE__ */ new Date()) : t3 instanceof Date || (t3 = /* @__PURE__ */ new Date());
          else if ("dateTime" === n3) "string" == typeof t3 ? t3 = b.yU(t3) : t3 && !(0, l.isValidDate)(t3) && (t3 = w);
          else if ("dateRange" === n3) t3 && "object" == typeof t3 && (t3 = { start: y(t3.start), end: y(t3.end) }), (0, l.isValidDateRange)(t3) || (t3 = w);
          else if ("number" === n3) "string" == typeof t3 ? t3 = m.yU(t3) : "number" != typeof t3 && (t3 = 0);
          else if ("numberRange" === n3) {
            var e3 = 0, i3 = 0;
            t3 && "object" == typeof t3 && ("string" === t3.start ? e3 = m.yU(t3.start) : isNaN(t3.start) || (e3 = t3.start), "string" === t3.end ? i3 = m.yU(t3.end) : isNaN(t3.end) || (i3 = t3.end)), t3 = { start: e3, end: i3 };
          }
          return t3;
        }
        function U(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2 = e3.row, b2 = e3.col;
          (g(m2) || g(b2)) && (m2 = t3.getActiveRowIndex(), b2 = t3.getActiveColumnIndex()), o2 = e3.sheetArea, g(o2) && (o2 = 3), n3 && n3.submitCommand ? "string" == typeof n3.submitCommand ? t3.getParent().commandManager().execute({ cmd: n3.submitCommand, sheetName: t3.name(), row: m2, col: b2, newValue: r2.value }) : "function" == typeof n3.submitCommand && ((a2 = {}).row = e3.row, a2.col = e3.col, a2.sheetArea = o2, a2.path = r2.path, n3.submitCommand.call(null, t3, r2.value, a2)) : (u2 = { cmd: "editCell", sheetName: t3.name(), row: m2, col: b2, newValue: r2.text, autoFormat: !r2.noAutoFormat, sheetArea: o2, isUndo: false }, t3.dataRanges && (s2 = t3.dataRanges.getByPosition(m2, b2)) && (c2 = s2.convertContext({ sheet: t3, row: m2, col: b2, sheetArea: o2 })) && c2.sheet !== t3 && (u2.sheetName = c2.sheet.name(), u2.row = c2.row, u2.col = c2.col, u2.sheetArea = c2.sheetArea), t3.getParent().commandManager().execute(u2), t3.ci === b2 && t3.ui === m2 && (f2 = t3.getCellType(m2, b2), l2 = { sheet: t3, row: m2, col: b2, sheetArea: i2.SheetArea.viewport }, h2 = f2.isImeAware(l2), t3.isEditing() ? (d2 = t3.Il(m2, b2, o2), v2 = t3.getCellRect(m2, b2), t3.li.Li = r2.value, p2 = f2.je(t3.li, d2, r2.value, l2), f2.updateEditor(t3.li, d2, v2, l2), f2.setEditorValue(t3.li, p2 || r2.text, l2)) : h2 && t3.rt.JBe(f2, m2, b2, r2.text)));
        }
        function H(t3) {
          var n3 = -1;
          switch (t3) {
            case S:
              n3 = i2.DropDownType.colorPicker;
              break;
            case T:
              n3 = i2.DropDownType.dateTimePicker;
              break;
            case x:
              n3 = i2.DropDownType.timePicker;
              break;
            case A:
              n3 = i2.DropDownType.calculator;
              break;
            case I:
              n3 = i2.DropDownType.monthPicker;
              break;
            case k:
              n3 = i2.DropDownType.list;
              break;
            case N:
              n3 = i2.DropDownType.slider;
              break;
            case j:
              n3 = i2.DropDownType.workflowList;
              break;
            case D:
              n3 = i2.DropDownType.multiColumn;
          }
          return n3;
        }
        function V(t3, n3, e3, i3, r2) {
          var o2, a2 = n3.cellButtons;
          t3 && a2 && a2.length > 0 && (o2 = t3.Ut.getValueForKey(e3, i3, O, r2)) && o2.isMouseDownReservedLocation && (o2.buttonDownIndex = -1, o2.isMouseDownReservedLocation = false, t3.repaint(t3.getCellRect(e3, i3)));
        }
        function z(t3, n3, e3, r2, o2, a2, u2, s2, c2) {
          var l2, h2, v2, p2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2;
          C.ef(), l2 = r2.parent, h2 = r2.qc(), v2 = o2.row, p2 = o2.col, m2 = o2.sheetArea, t3.setOptions(c2 && L(L({}, c2), { row: v2, col: p2 })), t3.setValue(n3), b2 = h2.getBoundingClientRect(), y2 = e3.x + b2.left, w2 = e3.y + b2.top, (M2 = Y(l2)) && (y2 += M2.x, w2 += M2.y), S2 = new f.Rectangle(y2, w2, e3.width, e3.height), x2 = (T2 = t3.getOptions()) && !g(T2.dropDownAlignment) ? T2.dropDownAlignment : i2.DropDownAlignment.Far, A2 = T2 && !g(T2.dropDownDirection) ? T2.dropDownDirection : void 0, I2 = new f.PopupControl(t3.getContainer(), S2, { align: x2, hostElement: h2, direction: A2, allowFloat: null == c2 ? void 0 : c2.allowFloat }), E += 1, u2 && t3.wU(), I2.open(), t3.scrollToSelect(), u2 && t3.refresh(), t3.on(d.BaseDropdown.Event_ValueChanged, (function(t4) {
            t4.notCloseDropDown || I2.close(), Z(o2, t4) && U(r2, s2, o2, t4);
          })), l2 && (l2.CC = l2.CC || [], l2.CC.push(I2)), t3.getContainer().addEventListener("contextmenu", (function(t4) {
            t4.stopPropagation(), t4.preventDefault();
          })), I2.on("close", (function() {
            V(r2, a2, v2, p2, m2), t3 && t3.dispose(), E -= 1, I2 = null;
            var n4 = l2.CC.indexOf(I2);
            l2.CC.splice(n4, 1), C.cf();
          }));
        }
        function Y(t3) {
          var n3, e3, i3, r2;
          if (t3 && (n3 = t3.options.tabStripVisible) && 0 !== (e3 = t3.options.tabStripPosition)) {
            switch (i3 = { x: 0, y: 0 }, r2 = t3.w2.ot(), e3) {
              case 1:
                i3.y = r2.height;
                break;
              case 2:
                i3.x = r2.width;
            }
            return i3;
          }
        }
        function Z(t3, n3) {
          return true !== n3.notSubmit && (3 === t3.sheetArea || t3.cmd !== A || !isNaN(n3.value));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.commands = void 0, i2 = e2("Core"), Object.defineProperty(n2, "commands", { enumerable: true, get: function() {
          return i2.Commands;
        } }), r = e2("./dist/plugins/celltype/editor/calculator.js"), o = e2("./dist/plugins/celltype/editor/listControl.js"), a = e2("./dist/plugins/celltype/editor/slider.js"), u = e2("./dist/plugins/celltype/editor/timepicker.js"), s = e2("./dist/plugins/celltype/editor/monthPicker.js"), c = e2("./dist/plugins/celltype/editor/colorpicker.js"), f = e2("./dist/plugins/celltype/editor/popupControl.js"), l = e2("./dist/plugins/celltype/editor/calendar.js"), h = e2("Common"), d = e2("./dist/plugins/celltype/editor/baseControl.js"), v = e2("./dist/plugins/celltype/editor/workflowPicker.js"), p = e2("./dist/plugins/celltype/editor/multiColumnPicker.js"), g = h.Common.lt.ht, m = h.Common.st, b = h.Common.ct, y = i2.mt.Bve, w = null, M = window, C = M.gcGlobal, S = "openColorPicker", T = "openDateTimePicker", x = "openTimePicker", A = "openCalculator", I = "openMonthPicker", k = "openList", N = "openSlider", j = "openWorkflowList", D = "openMultiColumn", _ = document, O = "_cellButtonParam", i2.Commands[S] = B(S), i2.Commands[T] = B(T), i2.Commands[x] = B(x), i2.Commands[A] = B(A), i2.Commands[I] = B(I), i2.Commands[k] = B(k), i2.Commands[N] = B(N), i2.Commands[j] = B(j), i2.Commands[D] = B(D), E = 0, R = { init: function() {
          this.commandManager().register(S, i2.Commands[S]), this.commandManager().register(T, i2.Commands[T]), this.commandManager().register(x, i2.Commands[x]), this.commandManager().register(A, i2.Commands[A]), this.commandManager().register(I, i2.Commands[I]), this.commandManager().register(k, i2.Commands[k]), this.commandManager().register(N, i2.Commands[N]), this.commandManager().register(j, i2.Commands[j]), this.commandManager().register(D, i2.Commands[D]);
        } }, i2.Workbook.ch("registerOpendropdownCommand", R), i2.Worksheet.ch("registerOpendropdownCommand", { preProcessMouseWheel: function(t3) {
          E > 0 && !this.RD && (t3.r = true);
        } });
      }, "./dist/plugins/celltype/editor/baseControl.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a = this && this.qKr || (u = function(t3, n3) {
          return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, u(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          u(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), u;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.BaseDropdown = n2.BaseControl = void 0, r = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.Wc = n4, e3;
          }
          return a(n3, t3), n3.prototype.init = function(t4, n4, e3) {
            this.Ti = this.Wc.querySelector("." + n4), this.Ti ? this.RemoveChilds(this.Ti) : (this.Ti = this.CreateElement(t4, n4, e3), this.Wc.appendChild(this.Ti));
          }, n3.prototype.GetContainer = function() {
            return this.Wc;
          }, n3.prototype.RemoveChilds = function(t4) {
            for (; t4.firstChild; ) t4.removeChild(t4.firstChild);
          }, n3.prototype.CreateElement = function(t4, n4, e3, i3) {
            var r2, o2 = document.createElement(t4);
            if (n4 && (o2.className = n4), e3) for (r2 in e3) e3[r2] && o2.setAttribute(r2, e3[r2]);
            return i3 && i3.appendChild(o2), o2;
          }, n3;
        })((i2 = e2("./dist/plugins/celltype/editor/eventbase.js")).EventBase), n2.BaseControl = r, o = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.Ti = n4, e3;
          }
          return a(n3, t3), n3.prototype.getOptions = function() {
            return this.MU;
          }, n3.prototype.updateStyle = function(t4, n4, e3) {
          }, n3.prototype.scrollToSelect = function() {
          }, n3.prototype.getContainer = function() {
            return this.Ti;
          }, n3.prototype.refresh = function() {
          }, n3.prototype.wU = function() {
          }, n3.prototype.dispose = function() {
          }, n3.Event_ValueChanged = "ValueChangedEvent", n3;
        })(i2.EventBase), n2.BaseDropdown = o;
      }, "./dist/plugins/celltype/editor/baseSpreadPicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.qKr || (g = function(t3, n3) {
          return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, g(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          g(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), g;
        function m(t3, n3, e3) {
          var i3 = { sheet: t3 };
          a(e3) || (i3.isEsc = e3), t3.ki(n3, i3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.BaseSpreadPicker = void 0, i2 = e2("./dist/plugins/celltype/editor/baseControl.js"), r = e2("Core"), o = e2("Common"), a = o.Common.lt.ht, u = Math.min, s = Math.max, c = null, f = ".baseSpreadNS", l = 800, h = 400, d = 100, v = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4) || this;
            return r2.setOptions(e3), r2.CU = i3, r2;
          }
          return p(n3, t3), n3.prototype.setOptions = function(t4) {
            var n4, e3, i3 = this;
            i3.MU = t4, t4 && (n4 = i3.Ti, (e3 = document.createElement("div")).setAttribute("class", "gc-base-spread-div"), n4.appendChild(e3), this.SU = e3, this.TU = this.AU(e3));
          }, n3.prototype.setValue = function(t4) {
            var n4, e3 = this;
            e3.MU && (n4 = e3.TU, setTimeout((function() {
              var t5;
              window.gcGlobal.cf(), n4 && n4.focus(true);
            }), 1e3));
          }, n3.prototype.wU = function() {
            var t4, n4, e3, i3, o2, u2 = this;
            u2.SU && (t4 = u2.Ti, (n4 = u2.MU) && (e3 = n4.width, i3 = n4.height), o2 = u2.IU(e3, i3), a(e3) && (e3 = o2.width), a(i3) && (i3 = o2.height), (0, r.GC$)(t4).width(e3).height(i3));
          }, n3.prototype.refresh = function() {
            this.TU && this.TU.refresh();
          }, n3.prototype.dispose = function() {
            var t4 = this;
            t4.CU && (t4.CU.Zg(), t4.CU = c), t4.SU && (t4.SU = c), t4.TU && (t4.TU.unbind(r.Events.DropdownSpreadMouseClick + f), t4.TU.unbind(r.Events.DropdownSpreadKeyboardEnter + f), t4.TU.unbind(r.Events.DropdownSpreadTouchTap + f), t4.TU.L0(), t4.TU = c);
          }, n3.prototype.IU = function(t4, n4) {
            var e3, i3, r2, o2, c2, f2, v2, p2, g2 = this, m2 = g2.TU, b = m2.getActiveSheet(), y = b.getColumnCount(), w = 0;
            for (e3 = 0; e3 < y; e3++) w += b.getColumnWidth(e3, 3);
            return i3 = w, r2 = b.getRowCount(3) + b.getRowCount(1), o2 = b.getRowHeight(0, 3) * r2, i3 < l && a(t4) || i3 <= t4 ? m2.options.showHorizontalScrollbar = false : (c2 = 0, m2._hScrollbar && (c2 = m2._hScrollbar.ZC()), o2 += c2), o2 < h && a(n4) || o2 < n4 ? m2.options.showVerticalScrollbar = false : (f2 = 0, (v2 = m2._vScrollbar) && (f2 = (p2 = v2.lS(false)) || m2.NC()), i3 += f2), { width: u(i3, l), height: u(s(o2, d), h) };
          }, n3.prototype.AU = function(t4) {
            var n4, e3, i3, o2 = new r.Workbook(t4, { sheetCount: 1 });
            return o2.xU = true, (n4 = o2.options).allowUserDragDrop = false, n4.allowDragHeaderToMove = r.AllowDragHeaderToMove.none, n4.allowUserDragFill = false, n4.allowUserResize = false, n4.allowUserZoom = false, n4.tabStripVisible = false, n4.allowContextMenu = false, n4.allowUserDeselect = false, n4.scrollbarMaxAlign = true, (e3 = o2.getActiveSheet()).RD = true, i3 = this, o2.bind(r.Events.DropdownSpreadMouseClick + f, (function(t5, n5) {
              i3.submitData(n5);
            })), o2.bind(r.Events.DropdownSpreadKeyboardEnter + f, (function(t5, n5) {
              i3.submitData(n5);
            })), o2.bind(r.Events.DropdownSpreadTouchTap + f, (function(t5, n5) {
              i3.submitData(n5);
            })), o2;
          }, n3.prototype.submitData = function(t4) {
          }, n3;
        })(i2.BaseDropdown), n2.BaseSpreadPicker = v, r.GC$.extend(r.Worksheet.prototype, { BD: function() {
          m(this, r.Events.DropdownSpreadMouseClick);
        }, GD: function(t3) {
          m(this, r.Events.DropdownSpreadKeyboardEnter, t3);
        }, huo: function() {
          m(this, r.Events.DropdownSpreadTouchTap);
        }, Mhe: function(t3, n3, e3) {
          var i3 = this, o2 = i3.whe(), a2 = o2 && o2[t3] && o2[t3][n3];
          a2 && (i3.suspendPaint(), a2.forEach((function(t4) {
            var n4, e4, o3, a3 = t4.row, u2 = t4.col, s2 = t4.dataSource, c2 = t4.dependSheetName, f2 = t4.targetSheetName;
            c2 === i3.name() && ((e4 = (n4 = i3.getParent()).Gm(f2))._gi === r.SheetType.reportSheet && e4.getSheet && (e4 = e4.getSheet()), e4 && (o3 = e4.getStyle(a3, u2)) && o3.dropDowns && o3.dropDowns.some((function(t5) {
              return t5.type === r.DropDownType.multiColumn && t5.option.dataSource === s2;
            })) && e4.YI(t4.row, t4.col, null));
          })), i3.resumePaint());
        }, whe: function() {
          var t3 = this, n3 = t3.Che;
          return n3 || (n3 = t3.Che = []), n3;
        } });
      }, "./dist/plugins/celltype/editor/calculator.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C = this && this.qKr || (S = function(t3, n3) {
          return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, S(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          S(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), S;
        function T(t3) {
          var n3 = parseInt(window.getComputedStyle(t3)["font-size"].replace("px", ""), 0);
          return isNaN(n3) && (n3 = 0), n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Calculator = n2.CalculatorErrorInfo = void 0, i2 = e2("./dist/plugins/celltype/editor/baseControl.js"), r = e2("./dist/plugins/celltype/celltypes.ns.js"), o = e2("Common"), a = e2("Core"), u = new o.Common.ResourceManager(r.SR, "CellTypes"), s = u.getResource.bind(u), c = '\n<div class="gc-calculator">\n    <header class="gc-top-part">\n        <div class="gc-screen">\n            <div class="gc-main-screen">\n                <input class="gc-main" value="" type="text" disabled readonly="readonly"></div>\n        </div>\n    </header>\n    <section class="gc-bottom-part">\n        <div class="gc-features">\n            <div class="gc-sub-menu">\n                <div class="gc-row">\n                    <div class="percentage button image icon-group1" data-value="%" role="button">\n                        <img class="icon icons8-Percentage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABK0lEQVRYR+2WYQ3CMBCFvznAAgrAAeAAHOAACYADHCABJIACcAA4wAHkkpYM6K7XZs3+rAnZYNf169u7Nyo6HlXH69MD9ArEFJgDK2AKnICtO2re3bk5D2AMPLViDUAWPwQmzxQIWfDi5iyAY6zLNIArMHK73gDyWQNnp0jo3qLSJFLzNU8DeLnKek3oN3/DJbB3X4bAPbZ7ud4WwAC4AXIUn4haptEWQJLx6mRtACQbzwrgTShyellDJkw2nhXA0oZZxrMCSJ0EkCjgW0vOZccyso2XApCTeEnpGYviJoAm41kemzmItN03GS85PXMU0IyXmp7J/4hixisOEEu8ogCWxCsKYEk8a3p+DG41oTXxirRhzHi/7aql519rWxUwvdtzinqAXoHOFXgD+J9gIZOwvCMAAAAASUVORK5CYII="></div>\n                    <div class="sqrt button image icon-group1" data-value="sqrt" role="button">\n                        <img class="icon icons8-Square-Root" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABP0lEQVRYR+3V4S0FQRQF4O9VgApQATrQASpABXSAClABOqCCRwWoABWgAnKTnWSzeV5mdkf2z55fm83sPWfPuXfuzMiYjcxvEjA5UNuBd6z/0dgLuWoK2MV8yVT9u4BbHOIC57njXcuBVXw2pJuIKLJQS8ARbvCA/Szm5lAtAS/YwjEiimzUELCNZ3wjoihCDQFXOME1TovYqbILvrCCHUQURRjqQGq+V0QUxVgm4KdVLcYqxquLe+z1ab5UKFdAnO92+AbemkJriCiKkRNBsrnrQjTcJe4QZ3ohR0AUTkum7UJ6d4CIohdyBXRdSIvnAxFFb+QKaLsQfxzXbfHiWaSyREBy4bEZubj1ihbPUAFBGLnHpRN4QkQxCCUOBFHs+bOGsXjxDHUgvk8upOdBfx8flzowmLBbYBIwOTC6A7+1/zEhMa617wAAAABJRU5ErkJggg=="></div>\n                    <div class="sqr button icon-group1" data-value="pow" role="button">\n                        <span class="x-sign">\n                            <sub>x</sub></span>\n                        <span>\n                            <sup>2</sup></span>\n                    </div>\n                    <div class="fraction button icon-group1" data-value="1/x" role="button">\n                        <span>\n                            <sup>1</sup></span>\n                        <span>&frasl;</span>\n                        <span class="x-sign">\n                            <sub>\n                                <em>x</em></sub>\n                        </span>\n                    </div>\n                </div>\n            </div>\n            <div class="gc-main-menu">\n                <div class="gc-row">\n                    <div class="clear-entry button icon-group1" data-value="CE" role="button">CE</div>\n                    <div class="clear button icon-group1" data-value="C" role="button">C</div>\n                    <div class="clear-element button image icon-group1" data-value="BS" role="button">BS</div>\n                    <div class="divide button image operation icon-group1" data-value="/" role="button">\n                        <img class="icon icons8-Divide" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAo0lEQVRYR+2VSxGDMBRFTxTUAkioklrAQSVAHSChjmqhdYCDMm8mCz7DIp/yurisQ+6Zk5u8gPMXnPMRgAyUGBiBWyzxE3jkFDoXwMLvm0ADGFIhcgEm4AJcY+ALeAOtJ8AHaM4CMNW95xFYtkF0ixImn7/9m9uBVNOH6wVwZOBbzfF6o13e3wL8SMB+W5WwxICmoaahpmGVx6rkGgpABqoYmAH2Lh4hfK3KfwAAAABJRU5ErkJggg=="></div>\n                </div>\n                <div class="gc-row">\n                    <div class="button number icon-group2" role="button" data-value="7">7</div>\n                    <div class="button number icon-group2" role="button" data-value="8">8</div>\n                    <div class="button number icon-group2" role="button" data-value="9">9</div>\n                    <div class="multiply button image operation icon-group1" data-value="*" role="button">\n                        <img class="icon icons8-Multiply" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABBUlEQVRYR+2W6w3CMAyErxuwCYwAG7AJjAATMQKMUDZhBHQSQaFqYp8DqpDSn2nj+3J+NAMWfoaF9dEBugN/4cAewA3AQ+yYFYADgHNtn+UAxS8ARgA7AYLiVwCbF8CpBGEBMBBPvxYgcvE7gG0N3AIguAIhiTO4B8ALIYsrABZESFwFKEFwPRWcmfNpMXpTkO+b1gTfsdpl8YgDCSSH4FpIvBUg2c446px4OxpNQZ5zBlPmxEcZqABz1c6A6rAKOVBrNWVYhRzw9HkIwpMCj/hcd7gK0wJQxEMQFkD6Hat9nqeD94Hw75inarmQHGviLYNIvByVP7dS8DWh6I2oA3QHfu7AEzfHWCF+OOmJAAAAAElFTkSuQmCC"></div>\n                </div>\n                <div class="gc-row">\n                    <div class="button number icon-group2" role="button" data-value="4">4</div>\n                    <div class="button number icon-group2" role="button" data-value="5">5</div>\n                    <div class="button number icon-group2" role="button" data-value="6">6</div>\n                    <div class="minus button image operation icon-group1" data-value="-" role="button">\n                        <img class="icon icons8-Minus-Math-" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAARElEQVRYR+3V0Q0AMAQFQPYfuh1A+ql8nAF4LhIZw5XD80MAAgQIECCwVuA0fcmy8EtgPEATQG279gYIECBAgACBbwIXi38CITaYSB4AAAAASUVORK5CYII="></div>\n                </div>\n                <div class="gc-row">\n                    <div class="button number icon-group2" role="button" data-value="1">1</div>\n                    <div class="button number icon-group2" role="button" data-value="2">2</div>\n                    <div class="button number icon-group2" role="button" data-value="3">3</div>\n                    <div class="plus button image operation icon-group1" data-value="+" role="button">\n                        <img class="icon icons8-Plus-Math" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAWUlEQVRYR+2WMQoAIAgA9f+PrsWmEMQSEa7Z8rzEUmle2pxfABhvYFkPpQtJb7TEAGAAAxgoM3AO/v1YXoPPm4TtANHKy64AAAxgAANjDERB3bjXXzEA8w1s3k4WIU0YaEoAAAAASUVORK5CYII="></div>\n                </div>\n                <div class="gc-row">\n                    <div class="plus-minus button image icon-group1" data-value="+/-" role="button">\n                        <img class="icon icons8-Plus-Minus" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAYUlEQVRYR+2VMQ4AIAgD4f+P1gUdCakx1VB3pL0UcCM/J/c3CfiewIgMwUbgwmgsASLQg8ByiW7tdNIqY0gXkDnvkQEREIGnCaDLaddVFtFxk+wDCagQoN8CugCFUASuEpjXIBIhP3OSdgAAAABJRU5ErkJggg=="></div>\n                    <div class="button number icon-group2" role="button" data-value="0">0</div>\n                    <div class="dot button icon-group1" data-value="." role="button">.</div>\n                    <div class="equal button image operation icon-group1" data-value="=" role="button">\n                        <img class="icon icons8-Equal-Sign" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAQ0lEQVRYR+3U0Q0AMAQFQPYfuh1A+ikkPQMgF0/GcOXw/LAAAQIECLwETtOLLvPWLtAEUNs6wrUCUiAFBAgQIPCPwAX8vwQhcNJI5wAAAABJRU5ErkJggg==" width="32" height="32"></div>\n                </div>\n                <div class="gc-row">\n                    <div class="button okbtn icon-group1" role="button">OK</div>\n                </div>\n            </div>\n        </div>\n    </section>\n</div>\n', f = Math.floor, l = Math.abs, h = Math.pow, d = Math.round, v = Math.sqrt, p = Math.max, g = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+/-", ".", "+", "-", "*", "/", "SQRT", "%", "1/x", "=", "MC", "MR", "MS", "M+", "BS", "CE", "C", "POW"), (m = (function() {
          function t3() {
          }
          return t3.Init = function() {
            t3.GetBrowserType();
            var n3 = void 0 !== t3.edge;
            t3.IsIE = void 0 !== t3.ie || n3;
          }, t3.GetBrowserType = function() {
            try {
              var n3 = navigator.userAgent.toLowerCase();
              window.ActiveXObject ? t3.ie = n3.match(/msie ([\d.]+)/)[1] : -1 !== n3.indexOf("edge") ? t3.edge = n3.match(/edge\/([\d.]+)/)[1] : -1 !== n3.indexOf("firefox") && (t3.firefox = n3.match(/firefox\/([\d.]+)/)[1]), -1 !== n3.indexOf("rv:") && -1 === n3.indexOf("firefox") && (t3.ie = n3.match(/rv:([\d.]+)/)[1]);
            } catch (t4) {
            }
          }, t3;
        })()).Init(), b = (function() {
          function t3() {
          }
          return t3.IsErrorText = function(t4) {
            return t4 === s().Calculator_DivideByZeroInfo || t4 === s().Calculator_InvalidInputInfo || t4 === s().Calculator_SqrtParameterException || t4 === s().Calculator_OverFlowInfo;
          }, t3;
        })(), n2.CalculatorErrorInfo = b, y = (function() {
          function t3() {
          }
          return t3.IsDotContained = function(t4) {
            var n3;
            return -1 !== (t4 + "").indexOf(".");
          }, t3.GetDotPosition = function(t4) {
            var n3 = t4 + "", e3 = 0, i3 = 0;
            for (i3 = n3.length; i3 > 0; i3--) {
              if ("." === n3.substring(i3 - 1, i3)) return e3;
              e3++;
            }
            return 0 === i3 ? 0 : e3;
          }, t3.FormatOutput = function(n3) {
            var e3, i3, r2;
            if (null == n3) return null;
            if (i3 = 0, r2 = (e3 = n3 + "").length, t3.IsDotContained(e3)) for (; "0" === e3.substring(r2 - 1, r2) && "" !== e3 && -1 === e3.indexOf("e"); ) e3 = e3.substring(i3, r2 - 1), r2--;
            return e3;
          }, t3.FormatResult = function(n3) {
            var e3, i3, r2, o2, a2, u2, c2;
            return isNaN(n3) && (n3 = 0), e3 = n3 + "", i3 = "", n3 < 0 && (i3 = "-", e3 = e3.substring(1, e3.length)), r2 = e3.length, o2 = "", -1 !== (a2 = e3.indexOf("e")) && (o2 = e3.substring(a2, r2), r2 = (e3 = e3.substring(0, a2)).length), t3.IsDotContained(e3) && r2 > 16 && (u2 = 0, parseFloat(e3) > 1 ? (u2 = t3.GetDotPosition(e3) - (r2 - 16), e3 = e3.toString().substring(0, 17)) : (u2 = t3.GetDotPosition(e3) - (r2 - 17), e3 = e3.toString().substring(0, 18)), e3 = u2 > 0 ? (d(parseFloat(e3) * h(10, u2)) / h(10, u2)).toString() : d(parseFloat(e3)).toString()), r2 = e3.length, !t3.IsDotContained(e3) && r2 > 15 && (u2 = r2 - 15, e3 = (d(parseFloat(e3) / h(10, u2)) * h(10, u2)).toString()), e3 = i3 + e3 + o2, c2 = parseFloat(e3), t3.IsOverFlow(c2.toString()) ? s().Calculator_OverFlowInfo : c2;
          }, t3.SingleMathOperation = function(n3, e3) {
            var i3, r2 = parseFloat(n3);
            if (isNaN(r2) && (r2 = 0), "SQRT" === e3) {
              if (r2 < 0) return s().Calculator_InvalidInputInfo;
              r2 = v(r2);
            }
            if ("POW" === e3 && (r2 = h(r2, 2)), "1/x" === e3) {
              if (0 === r2) return s().Calculator_DivideByZeroInfo;
              i3 = t3.GetDotPosition(r2.toString()), r2 = h(10, i3) / (h(10, i3) * r2);
            }
            return t3.FormatResult(r2);
          }, t3.DoubleMathOperation = function(n3, e3, i3) {
            var r2, o2, a2, u2, c2 = parseFloat(n3), f2 = parseFloat(e3);
            if (t3.IsDotContained(c2.toString()) || t3.IsDotContained(f2.toString())) {
              if (o2 = 0, a2 = 0, t3.IsDotContained(c2.toString()) && (o2 = t3.GetDotPosition(c2.toString())), t3.IsDotContained(f2.toString()) && (a2 = t3.GetDotPosition(f2.toString())), u2 = p(o2, a2), "+" === i3 && (r2 = ((c2 *= h(10, u2)) + (f2 *= h(10, u2))) / h(10, u2)), "-" === i3 && (r2 = ((c2 *= h(10, u2)) - (f2 *= h(10, u2))) / h(10, u2)), "*" === i3 && (r2 = (c2 *= h(10, o2)) * (f2 *= h(10, a2)) / h(10, o2 + a2)), "/" === i3) {
                if (c2 *= h(10, u2), 0 === (f2 *= h(10, u2))) return s().Calculator_DivideByZeroInfo;
                r2 = c2 / f2;
              }
              "%" === i3 && (r2 = (c2 *= h(10, o2)) * (f2 *= h(10, a2)) / h(10, o2 + a2 + 2));
            } else {
              if ("+" === i3 && (r2 = c2 + f2), "-" === i3 && (r2 = c2 - f2), "*" === i3 && (r2 = c2 * f2), "/" === i3) {
                if (0 === f2) return s().Calculator_DivideByZeroInfo;
                r2 = c2 / f2;
              }
              "%" === i3 && (r2 = c2 * f2 / 100);
            }
            return t3.FormatResult(r2);
          }, t3.IsOverFlow = function(t4) {
            var n3 = parseFloat(t4);
            if (0 !== n3) {
              if (n3 > 79e27) return true;
              if (n3 < 1e-28 && n3 > -1e-28) return true;
              if (n3 < -79e27) return true;
            }
            return false;
          }, t3;
        })(), w = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2 = this;
            l2.Y6 = t4, l2._x = n3, l2._y = e3, l2.NU = i3, l2.kU = r2, l2.DU = o2, l2._U = a2, l2.EU = u2, l2.jU = s2, l2.OU = c2, l2.RU = f2, l2.BU = g;
          }
          return t3.prototype.HU = function() {
            var t4 = this;
            t4.Y6 = "", t4._x = null, t4._y = null, t4.NU = null, t4.kU = 0, t4.EU = false, t4.jU = false;
          }, t3.prototype.Click = function(t4) {
            var n3, e3 = this;
            return t4 >= 0 && t4 <= 11 && (e3.OU && (e3.zU(t4), e3.OU = false), e3.VU(t4), 10 !== t4 && (e3.RU = "ClickNumericButton")), (t4 >= 12 && t4 <= 19 || 27 === t4) && (e3.OU ? (e3.zU(t4), e3.OU = false) : (e3.YU(t4), e3.RU = "ClickMathButton")), 24 === t4 && (e3.OU && (e3.zU(t4), e3.OU = false), e3.ZU()), 25 !== t4 && 26 !== t4 || (e3.zU(t4), e3.OU = false), e3.OU ? null : ((n3 = {}).outputText = e3.WU(), b.IsErrorText(e3.Y6) && (e3.OU = true), n3.result = void 0 === e3.Y6 || null === e3.Y6 ? "" : e3.Y6, n3.x = e3._x, n3.y = e3._y, n3.operation = e3.NU, n3.token = e3.kU, n3.count = e3.DU, n3.memoryNumber = e3._U, n3.isBSCanUse = e3.EU, n3.isEqualClicked = e3.jU, n3.isOperationInvalid = e3.OU, n3.lastOperation = e3.RU, n3);
          }, t3.prototype.VU = function(t4) {
            var n3 = this;
            if (null !== n3.Y6 && void 0 !== n3.Y6 || (n3.Y6 = ""), !(n3.DU > 14 && 10 !== t4)) switch (11 !== t4 && 10 !== t4 && (0 !== t4 || n3.Y6 + "" != "0" && "" !== n3.Y6) && n3.DU++, 10 !== t4 && (n3.EU = true), n3.kU) {
              case 0:
                t4 >= 0 && t4 <= 9 && ("ClickNumericButton" !== n3.RU && void 0 !== n3.RU && null !== n3.RU && (n3.Y6 = "0"), "0" === n3.Y6 && 0 !== t4 ? n3.Y6 = "" + t4 : "0" !== n3.Y6 && (n3.Y6 = n3.Y6 + "" + t4)), 10 === t4 && (-1 === n3.Y6.toString().indexOf("e") ? "" !== n3.Y6 && "0" !== n3.Y6 && (-1 === n3.Y6.toString().indexOf("-") ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.toString().substring(1, n3.Y6.toString().length)) : n3.Y6 - 0 > 0 ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.substring(1, n3.Y6.length)), 11 === t4 && ("ClickNumericButton" !== n3.RU && void 0 !== n3.RU && null !== n3.RU && (n3.Y6 = "0."), "" === n3.Y6 || y.IsDotContained(n3.Y6) ? "" !== n3.Y6 && y.IsDotContained(n3.Y6) || (n3.Y6 = "0.") : n3.Y6 = n3.Y6 + "."), n3.kU = 1;
                break;
              case 1:
                t4 >= 0 && t4 <= 9 && ("ClickNumericButton" !== n3.RU && void 0 !== n3.RU && null !== n3.RU && (n3.Y6 = "0"), "0" === n3.Y6 && 0 === t4 || ("0" === n3.Y6 && 0 !== t4 ? n3.Y6 = "" + t4 : n3.Y6 = n3.Y6 + "" + t4)), 10 === t4 && (-1 === n3.Y6.toString().indexOf("e") ? "" !== n3.Y6 && "0" !== n3.Y6 && (-1 === n3.Y6.toString().indexOf("-") ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.toString().substring(1, n3.Y6.toString().length)) : n3.Y6 - 0 > 0 ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.substring(1, n3.Y6.length)), 11 === t4 && ("ClickNumericButton" !== n3.RU && void 0 !== n3.RU && null !== n3.RU ? n3.Y6 = "0." : y.IsDotContained(n3.Y6) || ("" === n3.Y6 ? n3.Y6 = "0." : n3.Y6 = n3.Y6 + ".")), n3.jU || (n3._y = n3.Y6);
                break;
              case 2:
                t4 >= 0 && t4 <= 9 && (n3.Y6 = "", n3.Y6 = n3.Y6 + t4), 11 === t4 && (n3.Y6 = "0."), 10 === t4 && (n3.Y6 = "0"), n3.kU = 3, n3._y = n3.Y6;
                break;
              case 3:
                t4 >= 0 && t4 <= 9 && ("ClickNumericButton" !== n3.RU && void 0 !== n3.RU && null !== n3.RU && (n3.Y6 = "0"), "0" === n3.Y6 && 0 === t4 || ("0" === n3.Y6 && 0 !== t4 ? n3.Y6 = "" + t4 : n3.Y6 = n3.Y6 + "" + t4)), 10 === t4 && (-1 === n3.Y6.toString().indexOf("e") ? "" !== n3.Y6 && "0" !== n3.Y6 && (-1 === n3.Y6.toString().indexOf("-") ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.toString().substring(1, n3.Y6.toString().length)) : n3.Y6 - 0 > 0 ? n3.Y6 = "-" + n3.Y6 : n3.Y6 = n3.Y6.substring(1, n3.Y6.length)), 11 === t4 && ("ClickNumericButton" !== n3.RU && null !== n3.RU ? n3.Y6 = "0." : y.IsDotContained(n3.Y6) || ("" === n3.Y6 ? n3.Y6 = "0." : n3.Y6 = n3.Y6 + ".")), n3._y = n3.Y6;
            }
          }, t3.prototype.YU = function(t4) {
            var n3 = this;
            switch (n3.DU = 0, n3.EU = false, n3.jU && (n3.jU = false), n3.Y6 = y.FormatOutput(n3.Y6), n3.kU) {
              case 0:
                "" === n3.Y6 && (n3.Y6 = 0), (t4 >= 16 && t4 <= 18 && 17 !== t4 || 27 === t4) && (n3.Y6 = y.SingleMathOperation(n3.Y6, n3.BU[t4]).toString(), b.IsErrorText(n3.Y6) || (n3._x = n3.Y6), n3.kU = 1), t4 >= 12 && t4 <= 15 && (n3.NU = t4, n3._x = n3.Y6, n3.kU = 2), 17 === t4 && n3.HU();
                break;
              case 1:
                (t4 >= 16 && t4 <= 18 && 17 !== t4 || 27 === t4) && (n3.Y6 = y.SingleMathOperation(n3.Y6, n3.BU[t4]).toString(), b.IsErrorText(n3.Y6) || (null !== n3.NU && void 0 !== n3.NU && null !== n3._y && void 0 !== n3._y ? n3._y = n3.Y6 : n3._x = n3.Y6)), 19 === t4 && (null !== n3.NU && void 0 !== n3.NU && null !== n3._y && void 0 !== n3._y ? (n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._y.toString(), n3.BU[n3.NU]).toString(), b.IsErrorText(n3.Y6) || (n3._x = n3.Y6)) : "-0." === n3.Y6 && (n3.Y6 = "0."), n3.jU = true, n3.EU = false), t4 >= 12 && t4 <= 15 && (n3.NU = t4, n3._x = n3.Y6, n3.kU = 2), 17 === t4 && (null !== n3.NU && void 0 !== n3.NU ? (n3._y = n3.Y6, n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._y.toString(), n3.BU[17]).toString(), n3._y = n3.Y6) : n3.HU());
                break;
              case 2:
                (t4 >= 16 && t4 <= 18 && 17 !== t4 || 27 === t4) && (n3.Y6 = y.SingleMathOperation(n3.Y6, n3.BU[t4]).toString(), b.IsErrorText(n3.Y6) || (n3.kU = 3, n3._y = n3.Y6)), 19 === t4 && (n3._y = n3._x, n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._x.toString(), n3.BU[n3.NU]).toString(), b.IsErrorText(n3.Y6) || (n3._x = n3.Y6, n3.kU = 1, n3.EU = false), n3.jU = true), t4 >= 12 && t4 <= 15 && (n3.NU = t4, n3._y = n3.Y6), 17 === t4 && (n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._x.toString(), n3.BU[17]), b.IsErrorText(n3.Y6) || (n3._y = n3.Y6, n3.kU = 3));
                break;
              case 3:
                t4 >= 16 && t4 <= 18 && 17 !== t4 && (n3.Y6 = y.SingleMathOperation(n3.Y6, n3.BU[t4]).toString(), b.IsErrorText(n3.Y6) || (n3._y = n3.Y6)), t4 >= 12 && t4 <= 15 && (n3._y = n3.Y6, n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._y.toString(), n3.BU[n3.NU]).toString(), b.IsErrorText(n3.Y6) || (n3._x = n3.Y6, n3._y = null, n3.NU = t4, n3.kU = 2)), 17 === t4 && (n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._y.toString(), n3.BU[17]), b.IsErrorText(n3.Y6) || (n3._y = n3.Y6)), 19 === t4 && (n3._y = n3.Y6, n3.Y6 = y.DoubleMathOperation(n3._x.toString(), n3._y.toString(), n3.BU[n3.NU]).toString(), b.IsErrorText(n3.Y6) || (n3._x = n3.Y6, n3.kU = 1, n3.EU = false), n3.jU = true);
            }
            n3.Y6 += "";
          }, t3.prototype.ZU = function() {
            var t4, n3, e3 = this;
            if (e3.DU > 0 && e3.DU--, (0 === e3.kU || 1 === e3.kU || 3 === e3.kU) && true === e3.EU) switch (e3.Y6 += "", t4 = 0, (n3 = e3.Y6.length) > 0 && (e3.Y6 = e3.Y6.substring(t4, n3 - 1)), "-0" === e3.Y6 && (e3.Y6 = "0"), "-" === e3.Y6 && (e3.Y6 = ""), "" === e3.Y6 && (e3.EU = false), e3.kU) {
              case 0:
              case 1:
                e3._x = e3.Y6;
                break;
              case 3:
                e3._y = e3.Y6;
            }
          }, t3.prototype.zU = function(t4) {
            var n3 = this;
            n3.DU = 0, n3.EU = false, n3.Y6 = "", 25 === t4 && (1 === n3.kU && (null === n3.NU || void 0 === n3.NU || n3.jU || (n3._y = 0)), 2 === n3.kU && (n3.kU = 3)), 26 === t4 && n3.HU();
          }, t3.prototype.WU = function() {
            var t4 = this, n3 = "";
            return n3 = "" === t4.Y6 || null === t4.Y6 || void 0 === t4.Y6 ? "0" : t4.Y6;
          }, t3.prototype.mf = function(t4) {
            var n3 = t4.keyCode;
            switch (t4.shiftKey && (n3 |= 65536), t4.ctrlKey && (n3 |= 131072), t4.altKey && (n3 |= 262144), n3) {
              case 131138:
              case 131140:
              case 131141:
              case 131144:
              case 131145:
              case 131148:
              case 131150:
              case 131154:
              case 131159:
              case 131188:
              case 262181:
              case 262183:
              case 117:
              case 65657:
              case 131081:
              case 196617:
              case 9:
              case 65545:
              case 121:
              case 123:
                return null;
              case 48:
              case 96:
                return 0;
              case 49:
              case 97:
                return 1;
              case 50:
              case 98:
                return 2;
              case 51:
              case 99:
                return 3;
              case 52:
              case 100:
                return 4;
              case 53:
              case 101:
                return 5;
              case 54:
              case 102:
                return 6;
              case 55:
              case 103:
                return 7;
              case 56:
              case 104:
                return 8;
              case 57:
              case 105:
                return 9;
              case 120:
                return 10;
              case 190:
              case 188:
              case 110:
                return 11;
              case 65723:
              case 107:
                return 12;
              case 65643:
                if (!m.IsIE) return 12;
                break;
              case 189:
              case 109:
                return 13;
              case 65592:
              case 106:
              case 65722:
                return 14;
              case 191:
              case 111:
                return 15;
              case 65586:
              case 192:
                return 16;
              case 65589:
                return 17;
              case 82:
                return 18;
              case 13:
                return 19;
              case 393292:
                return 20;
              case 393298:
                return 21;
              case 393293:
                return 22;
              case 393296:
                return 23;
              case 8:
                return 24;
              case 46:
                return 25;
              case 27:
              case 131118:
                return 26;
              default:
                return 61 === n3 && m.firefox || 187 === n3 && !m.firefox ? 19 : -1;
            }
          }, t3;
        })(), M = (function(t3) {
          function n3(n4) {
            var e3, i3 = t3.call(this, n4) || this, r2 = i3;
            return r2.Ti = document.createElement("div"), r2.Ti.classList.add("gc-calculator-container"), r2.Ti.innerHTML = c, (e3 = r2.Ti.querySelector(".okbtn")).textContent = s().OK, n4.appendChild(i3.Ti), r2.LU(), r2.FU(), r2.PU(), r2.GU(), r2.UU("0"), i3;
          }
          return C(n3, t3), n3.prototype.setValue = function(t4) {
            var n4, e3 = this;
            t4 = e3.QU(t4);
            try {
              if (!e3.q8(t4)) throw new Error(s().Calculator_InvalidInputInfo);
              t4 = "" === t4 ? "0" : t4, e3.Y6 = e3.KU(t4), e3._text = e3.JU(t4), e3._x = parseFloat(e3.Y6), e3._y = null, e3.NU = null, e3.kU = 0, e3.DU = e3.XU(parseFloat(e3.Y6)), e3.DU > 0 ? e3.EU = true : e3.EU = false, e3.jU = false, e3.OU = false, e3.RU = null;
            } catch (t5) {
              e3._text = s().Calculator_InvalidInputInfo, e3.Y6 = "", e3._x = null, e3._y = null, e3.OU = true;
            }
            return e3.qU(e3.OU), e3.UU(e3._text), (n4 = {}).outputText = e3._text, n4.result = e3.Y6, n4.x = e3._x, n4.y = e3._y, n4.operation = e3.NU, n4.token = e3.kU, n4.count = e3.DU, n4.memoryNumber = e3._U, n4.isBSCanUse = e3.EU, n4.isEqualClicked = e3.jU, n4.isOperationInvalid = e3.OU, n4.lastOperation = e3.RU, e3.$U = new w(e3.Y6, e3._x, e3._y, e3.NU, e3.kU, e3.DU, e3._U, e3.EU, e3.jU, e3.OU, e3.RU), e3;
          }, n3.prototype.setOptions = function() {
          }, n3.prototype.scrollToSelect = function() {
            var t4 = this.Ti.querySelector(".gc-main-screen .gc-main");
            this.tH(t4);
          }, n3.prototype.LU = function() {
            var t4 = this;
            t4.nH = "0", t4._text = t4.nH, t4.Y6 = "", t4._x = 0, t4._y = 0, t4.NU = null, t4.kU = 0, t4.DU = 0, t4._U = null, t4.EU = false, t4.jU = false, t4.OU = false, t4.RU = null;
          }, n3.prototype.FU = function() {
            var t4 = this;
            t4.$U = new w(this.Y6, t4._x, t4._y, t4.NU, t4.kU, t4.DU, t4._U, t4.EU, t4.jU, t4.OU, t4.RU);
          }, n3.prototype.PU = function() {
            var t4 = this;
            t4.qU(t4.OU);
          }, n3.prototype.GU = function() {
            var t4 = this, e3 = this, r2 = e3.Ti, o2 = function(o3) {
              for (var a3, u2, s2 = o3.srcElement || o3.target; s2 && !s2.classList.contains("button"); ) s2 = s2.parentElement;
              s2 && (s2.getAttribute("data-value") ? (a3 = s2.getAttribute("data-value"), u2 = n3.eH(a3), r2.focus(), -1 !== u2 && e3.iH(u2)) : s2.classList.contains("okbtn") && ("ClickNumericButton" === e3.RU && e3.iH(19), t4.fire(i2.BaseDropdown.Event_ValueChanged, { value: e3._text, text: e3._text })));
            }, a2 = function(t5) {
              true !== e3.mf(t5) && (t5.preventDefault(), t5.stopPropagation());
            };
            r2.addEventListener("click", o2), r2.addEventListener("keydown", a2), r2.addEventListener("contextmenu", (function(t5) {
              t5.preventDefault(), t5.stopPropagation();
            }));
          }, n3.prototype.UU = function(t4) {
            var n4 = this.Ti.querySelector(".gc-main-screen .gc-main"), e3 = n4.value;
            null != e3 && e3.toString().replace(/\r\n/g, "\n") !== t4.toString().replace(/\r\n/g, "\n") && (n4.value = t4, this.tH(n4));
          }, n3.prototype.tH = function(t4) {
            var n4 = this;
            if (null !== n4.rH && void 0 !== n4.rH || (n4.rH = T(t4)), n4.oH(t4)) for (; n4.oH(t4); ) n4.aH(t4);
            else n4.uH(t4);
          }, n3.prototype.oH = function(t4) {
            var n4, e3, i3, r2, o2, u2;
            return t4.scrollWidth - t4.clientWidth > 1 || !(!a.mt.Tt.edge && !a.mt.Tt.msie) && (!(t4.clientWidth <= 0) && (o2 = (e3 = (n4 = window.getComputedStyle(t4)).fontWeight) + " " + (i3 = n4.fontSize) + " " + (r2 = n4.fontFamily), (u2 = a.q.Wt(t4.value, o2)) + 40 > t4.clientWidth));
          }, n3.prototype.aH = function(t4) {
            var n4 = T(t4);
            t4.style.fontSize = "".concat(n4 - 1, "px");
          }, n3.prototype.uH = function(t4) {
            for (var n4 = this, e3 = T(t4); !n4.oH(t4) && e3 < n4.rH; ) if (++e3, t4.style.fontSize = "".concat(e3, "px"), n4.oH(t4)) {
              for (; n4.oH(t4); ) n4.aH(t4);
              break;
            }
          }, n3.prototype.QU = function(t4) {
            if (void 0 === t4 || "string" != typeof t4 && !(t4 instanceof String)) throw new Error(t4 + " type is not a string.");
            return null == t4 && (t4 = ""), t4.toString();
          }, n3.prototype.sH = function(t4, n4) {
            var e3, i3, r2, o2;
            if (0 === n4.length) return "";
            for (e3 = "", i3 = 0, r2 = 0; i3 < n4.length; i3++) {
              for (o2 = false, r2 = 0; r2 < t4.length; r2++) n4.substring(i3, i3 + 1) === t4.substring(r2, r2 + 1) && (o2 = true);
              true === o2 && (e3 += n4.substring(i3, i3 + 1));
            }
            return e3;
          }, n3.prototype.q8 = function(t4) {
            if (this.sH("-.0123456789", t4) !== t4) return false;
            var n4 = t4.indexOf("-");
            return (-1 === n4 || 0 === n4) && (t4.indexOf("-") === t4.lastIndexOf("-") && t4.indexOf(".") === t4.lastIndexOf("."));
          }, n3.prototype.KU = function(t4) {
            var n4, e3, i3, r2, o2, a2 = parseFloat(t4), u2 = false;
            if (a2 < 0 && (u2 = true), n4 = l(a2), e3 = f(n4), i3 = y.GetDotPosition(n4.toString()), r2 = (n4 * h(10, i3) - e3 * h(10, i3)) / h(10, i3), e3 > 999999999999999) throw new Error(s().Calculator_InvalidInputInfo);
            if (999999999999999 === e3) {
              if (0 === r2) return e3;
              throw new Error(s().Calculator_InvalidInputInfo);
            }
            return o2 = 0 === e3 ? 15 : 15 - e3.toString().length, r2 = d(r2 * h(10, o2)) / h(10, o2), i3 = y.GetDotPosition(r2.toString()), n4 = (e3 * h(10, i3) + r2 * h(10, i3)) / h(10, i3), e3 = f(n4), i3 = y.GetDotPosition(n4.toString()), 0 === (r2 = (n4 * h(10, i3) - e3 * h(10, i3)) / h(10, i3)) && (n4 = e3), u2 ? "-" + n4 : "" + n4;
          }, n3.prototype.JU = function(t4) {
            var n4 = t4.toString();
            return "" === n4 && (n4 = "0"), n4;
          }, n3.prototype.XU = function(t4) {
            var n4 = l(t4), e3 = f(n4), i3 = y.GetDotPosition(n4.toString()), r2 = (n4 * h(10, i3) - e3 * h(10, i3)) / h(10, i3), o2 = 0 === e3 ? 0 : e3.toString().length, a2 = 0 === r2 ? 0 : i3;
            return o2 + a2;
          }, n3.prototype.qU = function(t4) {
            for (var n4 = 10; n4 <= 18; n4++) this.cH(n4, t4);
            this.cH(27, t4);
          }, n3.prototype.cH = function(t4, n4) {
            var e3 = g[t4], i3 = this.Ti.querySelector('[data-value="' + e3.toLowerCase() + '"]');
            i3 && (n4 ? i3.classList.add("disabled") : i3.classList.remove("disabled"));
          }, n3.eH = function(t4) {
            var n4 = -1;
            switch (t4) {
              case "0":
              case "1":
              case "2":
              case "3":
              case "4":
              case "5":
              case "6":
              case "7":
              case "8":
              case "9":
                n4 = parseInt(t4, 10);
                break;
              case "+/-":
                n4 = 10;
                break;
              case ".":
                n4 = 11;
                break;
              case "+":
                n4 = 12;
                break;
              case "-":
                n4 = 13;
                break;
              case "*":
                n4 = 14;
                break;
              case "/":
                n4 = 15;
                break;
              case "sqrt":
                n4 = 16;
                break;
              case "%":
                n4 = 17;
                break;
              case "1/x":
                n4 = 18;
                break;
              case "=":
                n4 = 19;
                break;
              case "MC":
                n4 = 20;
                break;
              case "MR":
                n4 = 21;
                break;
              case "MS":
                n4 = 22;
                break;
              case "M+":
                n4 = 23;
                break;
              case "BS":
                n4 = 24;
                break;
              case "CE":
                n4 = 25;
                break;
              case "C":
                n4 = 26;
                break;
              case "pow":
                n4 = 27;
                break;
              default:
                n4 = -1;
            }
            return n4;
          }, n3.prototype.iH = function(t4) {
            var n4 = this, e3 = n4.$U.Click(t4);
            null != e3 && (null !== e3.result && void 0 !== e3.result && (n4.Y6 = e3.result), null !== e3.outputText && void 0 !== e3.outputText && (n4.nH = e3.outputText, n4._text = n4.nH, n4.UU(n4.nH)), null !== e3.isOperationInvalid && void 0 !== e3.isOperationInvalid && e3.isOperationInvalid !== n4.OU && (n4.OU = e3.isOperationInvalid, n4.qU(n4.OU)), e3.memoryNumber !== n4._U && (n4._U = e3.memoryNumber), e3.lastOperation !== n4.RU && (n4.RU = e3.lastOperation));
          }, n3.prototype.mf = function(t4) {
            var n4 = this.$U.mf(t4);
            return null == n4 || -1 !== n4 && void this.iH(n4);
          }, n3;
        })(i2.BaseDropdown), n2.Calculator = M;
      }, "./dist/plugins/celltype/editor/calendar.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft = this && this.qKr || (Pt = function(t3, n3) {
          return Pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Pt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Pt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), Bt = this && this.nJr || function() {
          return Bt = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, Bt.apply(this, arguments);
        }, Pt;
        function Gt(t3) {
          return d.createElement(t3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.RangeCalendar = n2.Calendar = n2.isValidDateRange = n2.isValidDate = void 0, i2 = e2("./dist/plugins/celltype/editor/eventbase.js"), r = e2("./dist/plugins/celltype/editor/timepicker.js"), o = e2("./dist/plugins/celltype/editor/baseControl.js"), a = e2("./dist/plugins/celltype/celltypes.ns.js"), u = e2("Common"), s = e2("Core"), c = new u.Common.ResourceManager(a.SR, "CellTypes"), f = c.getResource.bind(c), l = u.Common.lt, h = l.ht, d = document, v = "gc-calendar-container", p = "gc-date-ranges-calendar", g = "gc-range-calendar-container", m = "gc-date-range-container", b = "gc-date-time-container", y = "gc-date-part-container", w = "gc-time-part-container", M = "gc-ok-button-container", C = "gc-date-container", S = "gc-week-container", T = "gc-today-container", x = "gc-content-container", A = "gc-header-container", I = "gc-header-title", k = "gc-content-td-date", N = "gc-content-td-time", j = "gc-date-time-vertical-partline", D = "gc-date-time-horizontal-partline", _ = "gc-year-page", O = "gc-year-select-div", E = "gc-month-page", R = "gc-day-page", L = "gc-left-arrow", F = "gc-right-arrow", B = "gc-arrow-disable", P = "gc-is-focused", G = "gc-cl-select", U = "gc-cl-is-selected", H = "gc-cl-disabled-text", V = "gc-cl-select-container", z = "gc-focus-part-indicator", Y = "gc-cl-datepicker", Z = "gc-cl-dropdown", W = "gc-cl-datepicker-filter", Q = "gc-cl-datepicker-filter-month", K = "gc-cl-grid-align-spread", J = "gc-cl-align-middle", X = "gc-cl-button-icon-container", q = "gc-cl-datepicker-month", $ = "gc-cl-day", tt = "gc-cl-week", nt = "gc-cl-show-inline-block", et = "gc-builtIn-date-Range-child-div", it = "gc-builtIn-date-ranges-div", rt = "gc-date-ranges-result-div", ot = "gc-date-ranges-result-button", at = "gc-builtIn-date-range-childDiv-select", ut = "gc-date-ranges-result-buttonDiv", st = "gc-date-ranges-result-input", ct = "gc-cl-p-bottom-x-small", ft = "gc-cl-shrink-none", lt = "gc-cl-grow", ht = "gc-cl-grid", dt = "gc-uiButton", vt = "gc-cl-button", pt = "gc-cl-button-brand", gt = "year-index", mt = "month-index", bt = "week-index", yt = "day-index", wt = "dateRange-index", (function(t3) {
          t3[t3.Date = 1] = "Date", t3[t3.Time = 2] = "Time";
        })(Mt || (Mt = {})), Ct = (function() {
          function t3() {
          }
          return t3.initResource = function() {
            t3.resource = { shortWeeks: [f().Calendar_ShortWeeks_1, f().Calendar_ShortWeeks_2, f().Calendar_ShortWeeks_3, f().Calendar_ShortWeeks_4, f().Calendar_ShortWeeks_5, f().Calendar_ShortWeeks_6, f().Calendar_ShortWeeks_7], shortMonths: [f().Calendar_ShortMonths_1, f().Calendar_ShortMonths_2, f().Calendar_ShortMonths_3, f().Calendar_ShortMonths_4, f().Calendar_ShortMonths_5, f().Calendar_ShortMonths_6, f().Calendar_ShortMonths_7, f().Calendar_ShortMonths_8, f().Calendar_ShortMonths_9, f().Calendar_ShortMonths_10, f().Calendar_ShortMonths_11, f().Calendar_ShortMonths_12], weeks: [f().Calendar_Weeks_7, f().Calendar_Weeks_1, f().Calendar_Weeks_2, f().Calendar_Weeks_3, f().Calendar_Weeks_4, f().Calendar_Weeks_5, f().Calendar_Weeks_6], months: [f().Calendar_Months_1, f().Calendar_Months_2, f().Calendar_Months_3, f().Calendar_Months_4, f().Calendar_Months_5, f().Calendar_Months_6, f().Calendar_Months_7, f().Calendar_Months_8, f().Calendar_Months_9, f().Calendar_Months_10, f().Calendar_Months_11, f().Calendar_Months_12], timePrefix: [f().Calendar_Time_AM, f().Calendar_Time_PM], eraNames: [f().Calendar_EraName_1, f().Calendar_EraName_2, f().Calendar_EraName_3, f().Calendar_EraName_4], earFirstYear: f().Calendar_FirstYear, today: f().Calendar_Today, lastMonth: f().Calendar_LastMonth, nextMonth: f().Calendar_NextMonth, lastYear: f().Calendar_LastYear, nextYear: f().Calendar_NextYear, lastTenYears: f().Calendar_LastTenYear, nextTenYears: f().Calendar_NextTenYear };
          }, t3.resource = { shortWeeks: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], shortMonths: ["Jan", "Feb", "Mar", "Api", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], weeks: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], months: ["January", "February", "March", "Apirl", "May", "June", "July", "August", "September", "October", "November", "December"], timePrefix: ["AM", "PM"], eraNames: ["M", "T", "S", "H"], earFirstYear: "1", today: "Today", lastMonth: "Go to previous month", nextMonth: "Go to next month", lastYear: "Go to previous year", nextYear: "Go to next year", lastTenYears: "Go to previous ten years", nextTenYears: "Go to next ten years" }, t3;
        })(), St = /* @__PURE__ */ (function() {
          function t3() {
            this.yearTds = [];
          }
          return t3;
        })(), Tt = /* @__PURE__ */ (function() {
          function t3() {
            this.monthTds = [];
          }
          return t3;
        })(), xt = /* @__PURE__ */ (function() {
          function t3() {
            this.weekThs = [], this.dayTds = [];
          }
          return t3;
        })(), At = /* @__PURE__ */ (function() {
          function t3() {
            this.calendarYearSection = new St(), this.calendarMonthSection = new Tt(), this.calendarDaySection = new xt(), this.timeItemLIs = [];
          }
          return t3;
        })(), It = (function() {
          function t3() {
          }
          return t3.dateEqual = function(t4, n3, e3) {
            if (!t4 && !n3) return true;
            if (!t4) return false;
            if (!n3) return false;
            try {
              return e3 ? t4.getFullYear() === n3.getFullYear() && t4.getMonth() === n3.getMonth() && t4.getDate() === n3.getDate() && t4.getHours() === n3.getHours() && t4.getMinutes() === n3.getMinutes() && t4.getSeconds() === n3.getSeconds() : t4.getFullYear() === n3.getFullYear() && t4.getMonth() === n3.getMonth() && t4.getDate() === n3.getDate();
            } catch (t5) {
              return false;
            }
          }, t3.getMonthMaxDay = function(t4, n3) {
            return -1 !== [1, 3, 5, 7, 8, 10, 12].indexOf(n3) ? 31 : -1 !== [4, 6, 9, 11].indexOf(n3) ? 30 : t4 % 4 == 0 && t4 % 100 != 0 ? 29 : 28;
          }, t3.isValidEraDate = function(t4) {
            return !(t4 < this.eraMin || t4 > this.eraMax);
          }, t3.addMilliseconds = function(t4, n3) {
            var e3 = new Date(t4.getFullYear(), t4.getMonth(), t4.getDate(), t4.getHours(), t4.getMinutes(), t4.getSeconds());
            return e3.setMilliseconds(e3.getMilliseconds() + n3), new Date(e3.valueOf());
          }, t3.getEraDate = function(n3) {
            var e3, i3, r2 = { era: -1, eraYear: -1 };
            if (!t3.isValidEraDate(n3)) return r2;
            for (e3 = 0; e3 < t3.eraCount; e3++) if (n3 < (i3 = e3 + 1 !== t3.eraCount ? t3.eraDates[e3 + 1] : t3.addMilliseconds(t3.eraMax, 1))) {
              r2.era = e3, r2.eraYear = n3.getFullYear() - t3.eraDates[e3].getFullYear() + 1;
              break;
            }
            return r2;
          }, t3.getEraYearString = function(n3) {
            var e3 = new Date(n3, 5, 30), i3 = t3.getEraDate(e3);
            return -1 === i3.era || -1 === i3.eraYear ? n3.toString() : n3.toString() + "年";
          }, t3.getShortEraYearString = function(n3) {
            var e3, i3 = new Date(n3, 11, 31), r2 = t3.getEraDate(i3);
            return -1 === r2.era || -1 === r2.eraYear ? "" : (e3 = 1 === r2.eraYear ? Ct.resource.earFirstYear : r2.eraYear, Ct.resource.eraNames[r2.era] + e3 + "年");
          }, t3.getDateLocaleLabel = function(t4) {
            var n3 = t4.getHours(), e3 = t4.getMinutes(), i3 = n3 < 12 ? Ct.resource.timePrefix[0] : Ct.resource.timePrefix[1], r2 = 0 === n3 || 12 === n3 ? "12" : (n3 % 12).toString(), o2 = e3 < 10 ? "0" + e3.toString() : e3.toString();
            return i3 + " " + r2 + ":" + o2;
          }, t3.getBuiltInDateRanges = function() {
            var t4, n3, e3, i3, r2, o2, a2 = /* @__PURE__ */ new Date(), u2 = new Date(a2.getFullYear(), a2.getMonth(), a2.getDate());
            return u2.setDate(a2.getDate() - 1), (t4 = new Date(a2)).setDate(a2.getDate() - 6), n3 = a2.getFullYear(), e3 = a2.getMonth(), i3 = new Date(n3, e3, 1), r2 = new Date(n3, e3 - 1, 1), o2 = new Date(n3, e3 + 1, 0), [[f().Calendar_BuiltIn_Today, { start: new Date(a2.getFullYear(), a2.getMonth(), a2.getDate()), end: new Date(a2.getFullYear(), a2.getMonth(), a2.getDate()) }], [f().Calendar_BuiltIn_Yesterday, { start: new Date(u2.getFullYear(), u2.getMonth(), u2.getDate()), end: u2 }], [f().Calendar_BuiltIn_Last7Days, { start: new Date(t4.getFullYear(), t4.getMonth(), t4.getDate()), end: new Date(a2.getFullYear(), a2.getMonth(), a2.getDate()) }], [f().Calendar_BuiltIn_ThisMonth, { start: new Date(i3.getFullYear(), i3.getMonth(), 1), end: new Date(i3.getFullYear(), i3.getMonth(), o2.getDate()) }], [f().Calendar_BuiltIn_LastMonth, { start: new Date(r2.getFullYear(), r2.getMonth(), 1), end: new Date(i3.getFullYear(), i3.getMonth(), 0) }]];
          }, t3.getDefaultDate = function() {
            var t4 = /* @__PURE__ */ new Date();
            return new Date(t4.getFullYear(), t4.getMonth(), t4.getDate());
          }, t3.getNextMonth = function(t4) {
            var n3 = t4.getFullYear(), e3 = t4.getMonth() + 1, i3 = new Date(n3, e3, 1);
            return 12 === e3 && (i3.setFullYear(n3 + 1), i3.setMonth(0)), i3;
          }, t3.getPreviousMonth = function(t4) {
            var n3 = t4.getFullYear(), e3 = t4.getMonth() - 1, i3 = new Date(n3, e3, 1);
            return -1 === e3 && (i3.setFullYear(n3 - 1), i3.setMonth(11)), i3;
          }, t3.getFirstDayOfMonth = function(t4) {
            var n3 = t4.getFullYear(), e3 = t4.getMonth();
            return new Date(n3, e3, 1);
          }, t3.getShortDate = function(t4) {
            if (h(t4)) return t4;
            var n3 = t4.start, e3 = t4.end;
            return { start: new Date(n3.getFullYear(), n3.getMonth(), n3.getDate()), end: new Date(e3.getFullYear(), e3.getMonth(), e3.getDate()) };
          }, t3.eraCount = 4, t3.eraMax = new Date(2087, 11, 31, 23, 59, 59), t3.eraMin = new Date(1868, 8, 8), t3.eraDates = new Array(new Date(1868, 8, 8), new Date(1912, 6, 30), new Date(1926, 11, 25), new Date(1989, 0, 8)), t3;
        })(), kt = (function() {
          function t3(t4, n3, e3, i3) {
            this.year = t4, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          return t3.prototype.getLabel = function() {
            return this.year.toString();
          }, t3;
        })(), Nt = (function() {
          function t3(t4, n3, e3, i3) {
            this.month = t4, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          return t3.prototype.getLabel = function() {
            return Ct.resource.shortMonths[this.month];
          }, t3;
        })(), jt = (function() {
          function t3(t4, n3, e3, i3) {
            this.date = t4, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          return t3.prototype.getLabel = function() {
            return this.date.getDate().toString();
          }, t3;
        })(), Dt = function(t3) {
          return t3 instanceof Date && !isNaN(t3.getTime());
        }, n2.isValidDate = Dt, _t = function(t3) {
          return t3 instanceof Object && (0, n2.isValidDate)(t3.start) && (0, n2.isValidDate)(t3.end) && t3.start <= t3.end;
        }, n2.isValidDateRange = _t, Ot = (function() {
          function t3(t4) {
            var n3;
            this.fH = 40, this.lH = 100, this.owner = t4, this.calendarPage = s.CalendarPage.month, this.the = null, this.Ggr = { start: It.getDefaultDate(), end: It.getDefaultDate() }, this.selectedDate = null !== (n3 = null == t4 ? void 0 : t4.Ugr) && void 0 !== n3 ? n3 : /* @__PURE__ */ new Date(), this.updateDayFocusDate(), this.focusDateTimeIndex = -1, Ct.initResource();
          }
          return t3.getMonthName = function(t4) {
            return Ct.resource.months[t4];
          }, t3.getShortMonthName = function(t4) {
            return Ct.resource.shortMonths[t4];
          }, Object.defineProperty(t3.prototype, "RangeCalendar", { get: function() {
            return this.owner && this.owner.parent;
          }, enumerable: false, configurable: true }), t3.prototype.updateDayFocusDate = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this.owner;
            l2.nhe ? (u2 = null !== (e3 = null !== (t4 = this.the) && void 0 !== t4 ? t4 : null === (n3 = l2.parent) || void 0 === n3 ? void 0 : n3.Zmr) && void 0 !== e3 ? e3 : this.Ggr, l2.isDateOrDateRangeOutOfRange(u2) && (u2 = { start: s2 = new Date(null !== (i3 = l2.$gr) && void 0 !== i3 ? i3 : l2.qgr), end: s2 }), 1 === l2.ehe ? this.focusDate = It.getFirstDayOfMonth(u2.start) : 2 === l2.ehe && (c2 = void 0, c2 = u2.end.getFullYear() === u2.start.getFullYear() && u2.end.getMonth() === u2.start.getMonth() ? It.getNextMonth(u2.start) : It.getFirstDayOfMonth(u2.end), this.focusDate = c2)) : (f2 = null !== (o2 = null !== (r2 = this.selectedDate) && void 0 !== r2 ? r2 : l2.Ugr) && void 0 !== o2 ? o2 : It.getDefaultDate(), l2.isDateOrDateRangeOutOfRange(f2) && (f2 = new Date(null !== (a2 = l2.$gr) && void 0 !== a2 ? a2 : l2.qgr)), this.focusDate = new Date(f2.valueOf()));
          }, t3.prototype.updateDayItems = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2;
            for (this.dayItems = [], n3 = this.focusDate.getFullYear(), e3 = this.focusDate.getMonth(), s2 = u2 = ((a2 = (r2 = (i3 = new Date(n3, e3, 1)).getDay()) - (o2 = this.owner.dH)) < 0 ? a2 + 7 : a2) % 7; s2 > 0; s2--) (c2 = new Date(n3, e3, 1)).setDate(c2.getDate() - s2), f2 = new jt(c2, false, true, false), this.dayItems.push(f2);
            for (h2 = (l2 = this.Xgr(n3, e3))[0], d2 = l2[1], s2 = 1; s2 <= 42 - u2; s2++) c2 = new Date(n3, e3, s2), f2 = new jt(c2), this.owner.nhe ? (v2 = null !== (t4 = this.the) && void 0 !== t4 ? t4 : this.Ggr, (It.dateEqual(c2, v2.start) || It.dateEqual(c2, v2.end)) && (f2.selected = true), c2 > v2.start && (c2 < v2.end || this.ohe && c2 <= this.ohe) && !f2.disabled && (f2.focused = true), p2 = this.owner.qgr && this.owner.qgr.getFullYear(), g2 = this.owner.$gr && this.owner.$gr.getFullYear(), b2 = (m2 = this.Mmr(n3))[0], y2 = m2[1], w2 = g2 && n3 < g2 || p2 && n3 > p2, (n3 === p2 && (c2.getMonth() > y2 || c2.getMonth() === y2 && s2 > d2) || n3 === g2 && (c2.getMonth() < b2 || c2.getMonth() === b2 && s2 < h2) || w2 || c2.getMonth() !== e3) && (f2.disabled = true)) : (It.dateEqual(c2, this.selectedDate) && (f2.selected = true), It.dateEqual(c2, this.focusDate) && (f2.focused = true), (c2.getMonth() !== e3 || s2 < h2 || s2 > d2) && (f2.disabled = true)), this.dayItems.push(f2);
          }, t3.prototype.updateMonthItems = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2;
            for (this.monthItems = [], n3 = 0; n3 < 12; n3++) e3 = new Nt(n3), this.owner.nhe ? (i3 = null !== (t4 = this.the) && void 0 !== t4 ? t4 : this.Ggr, e3.selected = i3.start.getMonth() === n3 || i3.end.getMonth() === n3, e3.focused = i3.start.getMonth() < n3 && i3.end.getMonth() > n3) : (r2 = this.selectedDate, a2 = (o2 = this.focusDate) && o2.getFullYear(), u2 = o2 && o2.getMonth(), e3.selected = r2 && r2.getMonth() === n3 && r2.getFullYear() === a2, e3.focused = u2 === n3, c2 = (s2 = this.Mmr(a2))[0], f2 = s2[1], e3.disabled = n3 > f2 || n3 < c2), this.monthItems.push(e3);
          }, t3.prototype.updateYearItems = function() {
            var t4, n3, e3, i3, r2, o2;
            for (this.yearItems = [], n3 = this.owner.qgr && this.owner.qgr.getFullYear(), e3 = this.owner.$gr && this.owner.$gr.getFullYear(), i3 = this.focusDateYearRangeStart - 1; i3 <= this.focusDateYearRangeEnd + 1; i3++) r2 = new kt(i3), this.owner.nhe ? (o2 = null !== (t4 = this.the) && void 0 !== t4 ? t4 : this.Ggr, r2.selected = o2.start.getFullYear() === i3 || o2.end.getFullYear() === i3, r2.focused = o2.start.getFullYear() < i3 && o2.end.getFullYear() > i3) : (r2.selected = this.selectedDate && this.selectedDate.getFullYear() === i3, r2.focused = this.focusDate && this.focusDate.getFullYear() === i3, r2.disabled = i3 < this.focusDateYearRangeStart || i3 < e3 || i3 > this.focusDateYearRangeEnd || i3 > n3), this.yearItems.push(r2);
          }, t3.prototype.updateYearRange = function() {
            this.focusDateYearRangeStart = 10 * Math.floor(this.focusDate.getFullYear() / 10), this.focusDateYearRangeEnd = this.focusDateYearRangeStart + 9;
          }, t3.prototype.getShortWeekName = function(t4) {
            var n3 = Ct.resource.shortWeeks, e3 = this.owner.dH;
            return n3[t4 = (e3 + t4 - 1) % 7];
          }, t3.prototype.getCurrentMonthName = function() {
            var n3 = this.focusDate.getMonth();
            return t3.getMonthName(n3);
          }, t3.prototype.updateCalendarData = function(t4, n3) {
            t4 ? (this.the = t4.selectedDateRange, this.ohe = t4.hoverDate) : !n3 && this.RangeCalendar.notifyCalendarData({ selectedDateRange: this.the, hoverDate: this.ohe });
          }, t3.prototype.Jmr = function(t4) {
            var e3, i3 = this.owner, r2 = i3.$gr, o2 = i3.qgr, a2 = [void 0, void 0];
            return r2 && (0, n2.isValidDate)(r2) && (a2[0] = r2.getFullYear(), a2[1] = r2.getFullYear() + this.fH), o2 && (0, n2.isValidDate)(o2) && (h(a2[0]) ? (a2[0] = o2.getFullYear() - this.lH, a2[1] = o2.getFullYear()) : a2[1] = o2.getFullYear()), h(a2[0]) && h(a2[1]) && (e3 = null != t4 ? t4 : (/* @__PURE__ */ new Date()).getFullYear(), a2[0] = e3 - this.lH, a2[1] = e3 + this.fH), a2;
          }, t3.prototype.Mmr = function(t4) {
            var e3 = this.owner, i3 = [-1, 12], r2 = e3.$gr && (0, n2.isValidDate)(e3.$gr) ? e3.$gr.getFullYear() : void 0, o2 = e3.qgr && (0, n2.isValidDate)(e3.qgr) ? e3.qgr.getFullYear() : void 0;
            return r2 === t4 && (i3[0] = e3.$gr.getMonth()), o2 === t4 && (i3[1] = e3.qgr.getMonth()), (t4 < r2 || t4 > o2) && (i3 = [void 0, void 0]), i3;
          }, t3.prototype.Xgr = function(t4, e3) {
            var i3 = this.owner, r2 = i3.$gr, o2 = i3.qgr, a2 = [void 0, void 0];
            return r2 && (0, n2.isValidDate)(r2) && r2.getFullYear() === t4 && r2.getMonth() === e3 && (a2[0] = r2.getDate()), o2 && (0, n2.isValidDate)(o2) && o2.getFullYear() === t4 && o2.getMonth() === e3 && (a2[1] = o2.getDate()), a2;
          }, t3;
        })(), Et = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.hH = false, e3.jS = n4, e3;
          }
          return Ft(n3, t3), Object.defineProperty(n3.prototype, "host", { get: function() {
            return this.jS.getContainer();
          }, enumerable: false, configurable: true }), n3.prototype.createCalendarDom = function() {
            var t4, n4, e3, i3, r2, o2, a2 = this.jS;
            return this.mH = new At(), t4 = Gt("div"), this.jS.nhe ? t4.className = v + " " + m : t4.classList.add(v), a2.HG ? t4.classList.add(b) : t4.classList.add(C), n4 = Gt("table"), e3 = Gt("tr"), (i3 = Gt("td")).classList.add(k), a2.HG && i3.classList.add(N), i3.appendChild(this.gH()), e3.appendChild(i3), n4.appendChild(e3), t4.appendChild(n4), a2.HG && (r2 = Gt("tr"), o2 = Gt("td"), i3.appendChild(this.pH()), i3.appendChild(this.bH()), o2.appendChild(this.yH()), o2.appendChild(this.wH()), r2.appendChild(o2), n4.appendChild(r2)), this.mH.outerContainerDiv = t4, t4;
          }, n3.prototype.wH = function() {
            var t4, n4 = Gt("div");
            return n4.classList.add(M), (t4 = Gt("button")).textContent = f().OK, t4.className = vt + " " + pt + " " + dt, n4.appendChild(t4), this.mH.okButton = t4, n4;
          }, n3.prototype.pH = function() {
            var t4 = Gt("div");
            return t4.classList.add(j), t4;
          }, n3.prototype.yH = function() {
            var t4 = Gt("div");
            return t4.classList.add(D), t4;
          }, n3.prototype.gH = function() {
            var t4 = Gt("div");
            return t4.className = y + " " + Y + " " + Z, t4.tabIndex = 0, t4.appendChild(this.MH()), t4.appendChild(this.CH()), t4.appendChild(this.SH()), this.mH.dateContainerDiv = t4, t4;
          }, n3.prototype.MH = function() {
            var t4 = Gt("div");
            return t4.classList.add(_), t4.appendChild(this.TH()), t4.appendChild(this.AH()), t4;
          }, n3.prototype.TH = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2 = Gt("div");
            return s2.className = A + " " + W + " " + ht, (t4 = Gt("div")).className = Q + " " + ht + " " + K + " " + lt, (n4 = Gt("div")).classList.add(J), (e3 = Gt("button")).className = vt + " " + X, e3.title = f().Calendar_LastTenYear, e3.setAttribute("type", "button"), (i3 = Gt("div")).classList.add(L), e3.appendChild(i3), (r2 = Gt("span")).classList.add(J), (o2 = Gt("button")).className = vt + " " + X, o2.title = f().Calendar_NextTenYear, o2.setAttribute("type", "button"), (a2 = Gt("div")).classList.add(F), o2.appendChild(a2), t4.appendChild(e3), t4.appendChild(r2), t4.appendChild(o2), (u2 = this.mH.calendarYearSection).headerDiv = s2, u2.lastYearRangeButton = e3, u2.focusDateYearRangeName = r2, u2.nextYearRangeButton = o2, s2.appendChild(t4), s2;
          }, n3.prototype.AH = function() {
            var t4, n4 = Gt("table");
            return n4.className = x + " " + q, (t4 = Gt("div")).appendChild(n4), this.mH.calendarYearSection.currentYearRangeTable = n4, this.IH(), t4;
          }, n3.prototype.IH = function() {
            var t4, n4, e3, i3, r2, o2 = this.mH.calendarYearSection, a2 = Gt("tbody");
            for (t4 = 0; t4 < 3; t4++) {
              for (n4 = Gt("tr"), e3 = 0; e3 < 4; e3++) (i3 = Gt("td")).setAttribute(gt, (4 * t4 + e3).toString()), (r2 = Gt("span")).classList.add($), r2.setAttribute(gt, (4 * t4 + e3).toString()), r2.innerText = (4 * t4 + e3 + 1).toString(), i3.appendChild(r2), n4.appendChild(i3), o2.yearTds.push(i3);
              a2.appendChild(n4);
            }
            o2.currentYearRangeTable.appendChild(a2);
          }, n3.prototype.CH = function() {
            var t4 = Gt("div");
            return t4.classList.add(E), t4.appendChild(this.xH()), t4.appendChild(this.NH()), t4;
          }, n3.prototype.xH = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2 = Gt("div");
            return s2.className = A + " " + W + " " + ht, (t4 = Gt("div")).className = Q + " " + ht + " " + K + " " + lt, (n4 = Gt("div")).classList.add(J), (e3 = Gt("button")).className = vt + " " + X, e3.title = f().Calendar_LastYear, e3.setAttribute("type", "button"), (i3 = Gt("div")).classList.add(L), e3.appendChild(i3), (r2 = Gt("span")).className = I + " " + J, (o2 = Gt("button")).className = vt + " " + X, o2.title = f().Calendar_NextYear, o2.setAttribute("type", "button"), (a2 = Gt("div")).classList.add(F), o2.appendChild(a2), t4.appendChild(e3), t4.appendChild(r2), t4.appendChild(o2), (u2 = this.mH.calendarMonthSection).headerDiv = s2, u2.lastYearButton = e3, u2.currentYearName = r2, u2.nextYearButton = o2, s2.appendChild(t4), s2;
          }, n3.prototype.NH = function() {
            var t4, n4 = Gt("table");
            return n4.className = x + " " + q, (t4 = Gt("div")).appendChild(n4), this.mH.calendarMonthSection.currentYearTable = n4, this.kH(), t4;
          }, n3.prototype.kH = function() {
            var t4, n4, e3, i3, r2, o2 = this.mH.calendarMonthSection, a2 = Gt("tbody");
            for (t4 = 0; t4 < 3; t4++) {
              for (n4 = Gt("tr"), e3 = 0; e3 < 4; e3++) (i3 = Gt("td")).setAttribute(mt, (4 * t4 + e3 + 1).toString()), (r2 = Gt("span")).classList.add($), r2.setAttribute(mt, (4 * t4 + e3 + 1).toString()), r2.innerText = (4 * t4 + e3 + 1).toString(), i3.appendChild(r2), n4.appendChild(i3), o2.monthTds.push(i3);
              a2.appendChild(n4);
            }
            o2.currentYearTable.appendChild(a2);
          }, n3.prototype.SH = function() {
            var t4 = Gt("div");
            return t4.classList.add(R), t4.appendChild(this._H()), t4.appendChild(this.EH()), t4.appendChild(this.jH()), this.jS.nhe || t4.appendChild(this.OH()), t4;
          }, n3.prototype._H = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = Gt("div");
            for (y2.className = A + " " + W + " " + ht, (t4 = Gt("div")).className = Q + " " + ht + " " + K + " " + lt, (n4 = Gt("div")).classList.add(J), (e3 = Gt("button")).className = vt + " " + X, e3.title = f().Calendar_LastMonth, e3.setAttribute("type", "button"), (i3 = Gt("div")).classList.add(L), e3.appendChild(i3), (r2 = Gt("span")).className = I + " " + J, (o2 = Gt("button")).className = vt + " " + X, o2.title = f().Calendar_NextMonth, o2.setAttribute("type", "button"), (a2 = Gt("div")).classList.add(F), o2.appendChild(a2), t4.appendChild(e3), t4.appendChild(r2), t4.appendChild(o2), (u2 = Gt("div")).className = O + " " + ft, (s2 = Gt("div")).classList.add(V), (c2 = Gt("select")).classList.add(G), l2 = /* @__PURE__ */ new Date(), d2 = (h2 = this.jS._data.Jmr(l2.getFullYear()))[0], v2 = h2[1], p2 = d2; p2 <= v2; p2++) (g2 = Gt("option")).text = p2.toString(), g2.value = p2.toString(), c2.options.add(g2);
            return (m2 = Gt("div")).classList.add(V), s2.appendChild(c2), u2.appendChild(s2), y2.appendChild(u2), y2.appendChild(t4), (b2 = this.mH.calendarDaySection).headerDiv = y2, b2.lastMonthButton = e3, b2.currentMonthName = r2, b2.nextMonthButton = o2, b2.yearSelect = c2, y2;
          }, n3.prototype.EH = function() {
            var t4, n4, e3, i3, r2, o2, a2 = Gt("div");
            for (a2.className = S + " " + W + " " + ht, (t4 = Gt("table")).className = x + " " + q, n4 = Gt("thead"), e3 = Gt("tr"), i3 = 0; i3 < 7; i3++) (r2 = Gt("th")).setAttribute(bt, i3.toString()), (o2 = Gt("span")).classList.add(tt), o2.setAttribute(bt, i3.toString()), o2.innerText = this.jS._data.getShortWeekName(i3), r2.appendChild(o2), e3.appendChild(r2), this.mH.calendarDaySection.weekThs.push(r2);
            return n4.appendChild(e3), t4.appendChild(n4), a2.appendChild(t4), a2;
          }, n3.prototype.jH = function() {
            var t4, n4, e3, i3, r2, o2, a2 = this.mH.calendarDaySection, u2 = Gt("div"), s2 = Gt("div"), c2 = Gt("table");
            for (c2.className = x + " " + q, t4 = Gt("tbody"), n4 = 0; n4 < 6; n4++) {
              for (e3 = Gt("tr"), i3 = 0; i3 < 7; i3++) (r2 = Gt("td")).setAttribute(yt, (7 * n4 + i3).toString()), (o2 = Gt("span")).classList.add($), o2.setAttribute(yt, (7 * n4 + i3).toString()), r2.appendChild(o2), e3.appendChild(r2), a2.dayTds.push(r2);
              t4.appendChild(e3);
            }
            return c2.appendChild(t4), s2.appendChild(c2), u2.appendChild(s2), a2.dayContentTable = c2, u2;
          }, n3.prototype.OH = function() {
            var t4, n4, e3, i3, r2, o2 = Gt("div");
            return o2.classList.add(T), (t4 = Gt("table")).classList.add(x), n4 = Gt("tbody"), e3 = Gt("tr"), i3 = Gt("td"), (r2 = Gt("i")).className = nt + " " + ct, r2.innerText = Ct.resource.today, i3.appendChild(r2), e3.appendChild(i3), n4.appendChild(e3), t4.appendChild(n4), o2.appendChild(t4), this.mH.calendarDaySection.todayTd = i3, this.mH.calendarDaySection.todayTable = t4, o2;
          }, n3.prototype.bH = function() {
            var t4 = this, n4 = Gt("div");
            return n4.className = w + " " + Y + " " + Z, n4.tabIndex = 0, this.mH.timeContainerDiv = n4, this.RH = new r.TimePicker(n4), this.RH.setOptions({ step: { minute: 30 }, height: 260 }), this.RH.on(o.BaseDropdown.Event_ValueChanged, (function(n5) {
              t4.BH(n5);
            })), n4;
          }, n3.prototype.updateCalendarDom = function() {
            this.LH(), this.jS.HG && this.FH();
          }, n3.prototype.LH = function() {
            switch (this.jS._data.calendarPage) {
              case s.CalendarPage.year:
                this.PH();
                break;
              case s.CalendarPage.month:
                this.GH();
                break;
              case s.CalendarPage.day:
                this.UH();
            }
          }, n3.prototype.jmr = function(t4, n4) {
            var e3, i3, r2, o2, a2 = this.mH.calendarDaySection, u2 = a2.yearSelect;
            for (u2.innerHTML = "", e3 = document.createDocumentFragment(), i3 = 0; i3 < n4 - t4 + 1; i3++) r2 = t4 + i3, (o2 = Gt("option")).text = r2.toString(), o2.value = r2.toString(), e3.appendChild(o2);
            u2.appendChild(e3);
          }, n3.prototype.Dmr = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this.jS._data, v2 = this.mH.calendarDaySection;
            v2.currentMonthName.innerText = d2.getCurrentMonthName(), n4 = d2.focusDate.getFullYear(), e3 = v2.yearSelect, r2 = (i3 = d2.Jmr())[0], o2 = i3[1], a2 = parseInt(e3.options[0].value, 10), u2 = parseInt(e3.options[e3.options.length - 1].value, 10), s2 = o2 - r2 + 1, r2 === a2 && o2 === u2 || this.jmr(r2, o2), c2 = n4 >= r2 && n4 <= o2, f2 = e3.options.length !== s2 && (null === (t4 = e3.options[e3.options.length - 1]) || void 0 === t4 ? void 0 : t4.value) === n4.toString(), (l2 = c2 || f2) ? (e3.selectedIndex = f2 ? s2 : n4 - r2, e3.options[s2] && e3.selectedIndex <= s2 - 1 && e3.options[s2].remove()) : ((h2 = Gt("option")).text = n4.toString(), h2.value = n4.toString(), e3.options.add(h2, s2), e3.selectedIndex = s2);
          }, n3.prototype._mr = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this.jS._data, m2 = this.mH.calendarDaySection;
            if (m2.currentMonthName.innerText = g2.getCurrentMonthName(), t4 = g2.focusDate.getFullYear(), n4 = m2.yearSelect, r2 = (e3 = g2.focusDate.getMonth()) > (i3 = g2.Mmr(t4))[0], m2.lastMonthButton.disabled = !r2, m2.lastMonthButton.classList.toggle(B, !r2), o2 = e3 < i3[1], m2.nextMonthButton.disabled = !o2, m2.nextMonthButton.classList.toggle(B, !o2), this.jS.nhe && (a2 = this.jS.parent).she && a2.che) {
              if (u2 = m2.lastMonthButton, s2 = m2.nextMonthButton, c2 = this.jS.ehe, f2 = a2.she._data.focusDate, l2 = a2.che._data.focusDate, 1 === c2) {
                for (h2 = 0; h2 < n4.options.length; h2++) d2 = parseInt(n4.options[h2].value, 10), n4.options[h2].disabled = d2 > l2.getFullYear() || d2 === l2.getFullYear() && 0 === l2.getMonth();
                f2.getFullYear() === l2.getFullYear() ? f2.getMonth() >= l2.getMonth() - 1 ? (s2.disabled = true, s2.classList.add(B)) : (s2.disabled = false, s2.classList.remove(B)) : (v2 = f2.getFullYear() + 1 === l2.getFullYear() && 11 === f2.getMonth() && 0 === l2.getMonth(), s2.disabled = v2, s2.classList.toggle(B, v2));
              } else if (2 === c2) {
                for (h2 = 0; h2 < n4.options.length; h2++) (d2 = parseInt(n4.options[h2].value, 10)) < f2.getFullYear() || d2 === f2.getFullYear() && 11 === f2.getMonth() ? n4.options[h2].disabled = true : n4.options[h2].disabled = false;
                f2.getFullYear() === l2.getFullYear() ? l2.getMonth() <= f2.getMonth() + 1 ? (u2.disabled = true, u2.classList.add(B)) : (u2.disabled = false, u2.classList.remove(B)) : (p2 = f2.getFullYear() + 1 === l2.getFullYear() && 11 === f2.getMonth() && 0 === l2.getMonth(), u2.disabled = p2, u2.classList.toggle(B, p2));
              }
            }
          }, n3.prototype.HH = function() {
            this.Dmr(), this._mr();
          }, n3.prototype.PH = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this.jS._data, d2 = this.mH.calendarYearSection;
            if (h2.updateYearRange(), h2.updateYearItems(), d2.focusDateYearRangeName.innerText = h2.focusDateYearRangeStart.toString() + " - " + h2.focusDateYearRangeEnd.toString(), t4 = d2.yearTds, 0 !== (n4 = h2.yearItems).length) {
              for (e3 = 0; e3 < 3; e3++) for (i3 = 0; i3 < 4; i3++) o2 = n4[r2 = 4 * e3 + i3], (u2 = (a2 = t4[r2]).querySelector("span")).innerText = o2.getLabel(), o2.disabled ? a2.classList.add(H) : a2.classList.remove(H), o2.selected ? a2.classList.add(U) : a2.classList.remove(U), o2.focused ? u2.classList.add(P) : u2.classList.remove(P);
              s2 = this.jS.$gr && this.jS.$gr.getFullYear(), c2 = this.jS.qgr && this.jS.qgr.getFullYear(), f2 = s2 >= h2.focusDateYearRangeStart, d2.lastYearRangeButton.disabled = f2, d2.lastYearRangeButton.classList.toggle(B, f2), l2 = c2 <= h2.focusDateYearRangeEnd, d2.nextYearRangeButton.disabled = l2, d2.nextYearRangeButton.classList.toggle(B, l2);
            }
          }, n3.prototype.GH = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this.jS._data, p2 = this.mH.calendarMonthSection;
            for (v2.updateMonthItems(), t4 = v2.focusDate.getFullYear(), n4 = v2.monthItems, e3 = p2.monthTds, p2.currentYearName.innerText = t4.toString(), i3 = 0; i3 < 3; i3++) for (r2 = 0; r2 < 4; r2++) a2 = n4[o2 = 4 * i3 + r2], (s2 = (u2 = e3[o2]).querySelector("span")).innerText = a2.getLabel(), c2 = a2.disabled, u2.classList.toggle(H, c2), a2.selected ? u2.classList.add(U) : u2.classList.remove(U), a2.focused ? s2.classList.add(P) : s2.classList.remove(P);
            f2 = this.jS.$gr && this.jS.$gr.getFullYear(), l2 = this.jS.qgr && this.jS.qgr.getFullYear(), h2 = t4 <= f2, p2.lastYearButton.disabled = h2, p2.lastYearButton.classList.toggle(B, h2), d2 = t4 >= l2, p2.nextYearButton.disabled = d2, p2.nextYearButton.classList.toggle(B, d2);
          }, n3.prototype.UH = function() {
            this.HH(), this.zH();
          }, Object.defineProperty(n3.prototype, "RangeCalendar", { get: function() {
            return this.jS && this.jS.parent;
          }, enumerable: false, configurable: true }), n3.prototype.zH = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this.jS._data;
            if (l2.updateDayItems(), 0 !== (t4 = l2.dayItems).length) {
              for (n4 = this.mH.calendarDaySection.dayTds, e3 = 0; e3 < 6; e3++) for (i3 = 0; i3 < 7; i3++) o2 = t4[r2 = 7 * e3 + i3], (u2 = (a2 = n4[r2]).querySelector("span")).innerText = o2.getLabel(), o2.disabled ? a2.classList.add(H) : a2.classList.remove(H), o2.focused ? u2.classList.add(P) : u2.classList.remove(P), o2.selected ? a2.classList.add(U) : a2.classList.remove(U);
              (s2 = this.mH.calendarDaySection.todayTable) && (f2 = (c2 = /* @__PURE__ */ new Date()) > this.jS.qgr || c2 < this.jS.$gr, s2.style.display = f2 ? "none" : "");
            }
          }, n3.prototype.FH = function() {
            var t4, n4;
            this.RH.setValue(this.jS._data.selectedDate), (t4 = this.mH.okButton) && (n4 = !this.jS._data.selectedDate, t4.disabled = n4, t4.classList.toggle(B, n4));
          }, n3.prototype.attachEvent = function() {
            this.VH(), this.attachDateEvent(), this.jS.HG && this.attachTimeEvent();
          }, n3.prototype.VH = function() {
            var t4 = this;
            this.mH.outerContainerDiv.addEventListener("keydown", (function(n4) {
              t4.YH(n4);
            }));
          }, n3.prototype.YH = function(t4) {
            if ("Tab" === t4.key) return this.jS.HG && (this.jS._data.calendarActivePart === Mt.Date ? this.setCalendarActivePart(Mt.Time) : this.setCalendarActivePart(Mt.Date)), void t4.preventDefault();
            this.jS._data.calendarActivePart !== Mt.Date || this.jS.nhe || this.ZH(t4);
          }, n3.prototype.ZH = function(t4) {
            switch (this.jS._data.calendarPage) {
              case s.CalendarPage.year:
                this.WH(t4);
                break;
              case s.CalendarPage.month:
                this.QH(t4);
                break;
              case s.CalendarPage.day:
                this.KH(t4);
            }
          }, n3.prototype.WH = function(t4) {
            var n4 = this.jS._data, e3 = n4.focusDate;
            switch (t4.keyCode) {
              case 13:
                n4.selectedDate = new Date(e3.valueOf()), this.showCalendarPage(s.CalendarPage.month);
                break;
              case 32:
                n4.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                this.JH();
                break;
              case 39:
                this.XH();
                break;
              case 38:
                this.JH(4);
                break;
              case 40:
                t4.ctrlKey || t4.metaKey ? this.qH() : this.XH(4);
                break;
              case 36:
                e3.setFullYear(n4.focusDateYearRangeStart);
                break;
              case 35:
                e3.setFullYear(n4.focusDateYearRangeEnd);
                break;
              case 33:
                this.$H();
                break;
              case 34:
                this.tz();
            }
            n4.updateYearRange(), this.LH();
          }, n3.prototype.QH = function(t4) {
            var n4 = this.jS._data, e3 = n4.focusDate;
            switch (t4.keyCode) {
              case 13:
                n4.selectedDate = new Date(e3.valueOf()), this.showCalendarPage(s.CalendarPage.day);
                break;
              case 32:
                n4.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                this.nz();
                break;
              case 39:
                this.ez();
                break;
              case 38:
                t4.ctrlKey || t4.metaKey ? this.iz() : this.nz(4);
                break;
              case 40:
                t4.ctrlKey || t4.metaKey ? this.rz() : this.ez(4);
                break;
              case 36:
                e3.setMonth(0);
                break;
              case 35:
                e3.setMonth(11);
                break;
              case 33:
                this.JH();
                break;
              case 34:
                this.XH();
            }
            this.LH();
          }, n3.prototype.KH = function(t4) {
            var n4 = this.jS._data, e3 = n4.focusDate, i3 = e3.getFullYear(), r2 = e3.getMonth(), o2 = e3.getDate(), a2 = It.getMonthMaxDay(i3, r2 + 1);
            switch (t4.keyCode) {
              case 13:
                return n4.selectedDate = new Date(e3.valueOf()), void this.oz();
              case 32:
                n4.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                e3.setDate(o2 - 1);
                break;
              case 39:
                e3.setDate(o2 + 1);
                break;
              case 38:
                e3.setDate(o2 - 7);
                break;
              case 40:
                e3.setDate(o2 + 7);
                break;
              case 36:
                e3.setDate(1);
                break;
              case 35:
                e3.setDate(a2);
                break;
              case 33:
                t4.shiftKey ? this.nz(12) : this.nz();
                break;
              case 34:
                t4.shiftKey ? this.ez(12) : this.ez();
            }
            n4.selectedDate = new Date(e3.valueOf()), this.updateCalendarDom();
          }, n3.prototype.attachDateEvent = function() {
            var t4 = this;
            this.mH.dateContainerDiv.addEventListener("click", (function(n4) {
              var e3 = n4.target;
              (!e3 || e3 !== t4.mH.calendarDaySection.yearSelect && e3.parentElement !== t4.mH.calendarDaySection.yearSelect) && t4.setCalendarActivePart(Mt.Date);
            })), this.attachYearEvent(), this.attachMonthEvent(), this.attachDayEvent();
          }, n3.prototype.attachYearEvent = function() {
            var t4 = this;
            this.mH.calendarYearSection.lastYearRangeButton.addEventListener("click", (function(n4) {
              t4.$H(), t4.LH();
            })), this.mH.calendarYearSection.nextYearRangeButton.addEventListener("click", (function(n4) {
              t4.tz(), t4.LH();
            })), this.mH.calendarYearSection.currentYearRangeTable.addEventListener("click", (function(n4) {
              t4.az(n4);
            }));
          }, n3.prototype.$H = function() {
            var t4 = this.jS._data;
            t4.focusDateYearRangeStart -= 10, t4.focusDateYearRangeEnd = t4.focusDateYearRangeStart + 9, t4.focusDate.setFullYear(t4.focusDate.getFullYear() - 10);
          }, n3.prototype.tz = function() {
            var t4 = this.jS._data;
            t4.focusDateYearRangeStart += 10, t4.focusDateYearRangeEnd = t4.focusDateYearRangeStart + 9, t4.focusDate.setFullYear(t4.focusDate.getFullYear() + 10);
          }, n3.prototype.qH = function() {
            this.showCalendarPage(s.CalendarPage.month);
          }, n3.prototype.az = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = t4.srcElement || t4.target;
            if (u2) {
              if (n4 = +u2.getAttribute(gt), i3 = (e3 = this.jS._data.yearItems)[n4], r2 = this.jS.qgr && this.jS.qgr.getFullYear(), o2 = this.jS.$gr && this.jS.$gr.getFullYear(), a2 = i3.year < o2 || i3.year > r2, 0 === e3.length || a2) return;
              this.jS._data.focusDate.setFullYear(i3.year), this.qH();
            }
          }, n3.prototype.attachMonthEvent = function() {
            var t4 = this;
            this.mH.calendarMonthSection.lastYearButton.addEventListener("click", (function(n4) {
              t4.JH(), t4.LH();
            })), this.mH.calendarMonthSection.nextYearButton.addEventListener("click", (function(n4) {
              t4.XH(), t4.LH();
            })), this.jS.nhe || this.mH.calendarMonthSection.currentYearName.addEventListener("click", (function(n4) {
              t4.iz();
            })), this.mH.calendarMonthSection.currentYearTable.addEventListener("click", (function(n4) {
              t4.uz(n4);
            }));
          }, n3.prototype.JH = function(t4) {
            var n4 = t4 || 1, e3 = Math.max(this.jS._data.focusDate.getFullYear() - n4, 0);
            this.jS._data.focusDate.setFullYear(e3);
          }, n3.prototype.XH = function(t4) {
            var n4 = t4 || 1, e3 = Math.min(this.jS._data.focusDate.getFullYear() + n4, 9999);
            this.jS._data.focusDate.setFullYear(e3);
          }, n3.prototype.iz = function() {
            this.jS._data.updateYearRange(), this.showCalendarPage(s.CalendarPage.year);
          }, n3.prototype.rz = function() {
            this.showCalendarPage(s.CalendarPage.day);
          }, n3.prototype.uz = function(t4) {
            var n4, e3, i3 = t4.srcElement || t4.target;
            if (i3) {
              if (n4 = +i3.getAttribute(mt), e3 = i3.classList.contains(H) || "TD" === i3.parentElement.tagName && +i3.parentElement.classList.contains(H)) return;
              this.jS._data.focusDate.setMonth(n4 - 1), this.rz();
            }
          }, n3.prototype.attachDayEvent = function() {
            var t4 = this, n4 = this.mH.calendarDaySection;
            n4.lastMonthButton.addEventListener("click", (function(n5) {
              t4.nz(), t4.hH || (t4.jS.nhe ? (t4.RangeCalendar.checkFocusDateValid(), t4.RangeCalendar.updateRangeCalendarDom()) : t4.LH());
            })), n4.nextMonthButton.addEventListener("click", (function(n5) {
              t4.ez(), t4.hH || (t4.jS.nhe ? (t4.RangeCalendar.checkFocusDateValid(), t4.RangeCalendar.updateRangeCalendarDom()) : t4.LH());
            })), n4.todayTable && n4.todayTable.addEventListener("click", (function(n5) {
              t4.fz();
            })), this.jS.nhe ? n4.dayContentTable.addEventListener("mouseover", (function(n5) {
              t4.ahe(n5);
            })) : n4.currentMonthName.addEventListener("click", (function(n5) {
              t4.cz();
            })), n4.dayContentTable.addEventListener("click", (function(n5) {
              t4.jS.nhe ? t4.uhe(n5) : t4.lz(n5);
            })), n4.yearSelect.addEventListener("change", (function(n5) {
              t4.hz(n5);
            })), this.mH.calendarDaySection.yearSelect.addEventListener("keydown", (function(t5) {
              t5.stopPropagation();
            }));
          }, n3.prototype.nz = function(t4) {
            var n4, e3, i3 = this.jS._data, r2 = t4 || 1, o2 = i3.focusDate.getFullYear(), a2 = i3.focusDate.getMonth() - r2, u2 = i3.focusDate.getDate();
            a2 < 0 && (a2 += 12, o2 -= 1), n4 = It.getMonthMaxDay(o2, a2 + 1), e3 = new Date(o2, a2, Math.min(u2, n4)), i3.focusDate = e3;
          }, n3.prototype.ez = function(t4) {
            var n4, e3, i3 = this.jS._data, r2 = t4 || 1, o2 = i3.focusDate.getFullYear(), a2 = i3.focusDate.getMonth() + r2, u2 = i3.focusDate.getDate();
            a2 > 11 && (a2 -= 12, o2 += 1), n4 = It.getMonthMaxDay(o2, a2 + 1), e3 = new Date(o2, a2, Math.min(u2, n4), i3.focusDate.getHours(), i3.focusDate.getMinutes(), i3.focusDate.getSeconds()), i3.focusDate = e3;
          }, n3.prototype.cz = function() {
            this.showCalendarPage(s.CalendarPage.month);
          }, n3.prototype.lz = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = this.jS._data, s2 = t4.srcElement || t4.target;
            if (s2) {
              if (n4 = s2.getAttribute(yt), h(n4)) return;
              if (0 === (e3 = u2.dayItems).length) return;
              if ((r2 = (i3 = e3[+n4]).date) < this.jS.$gr || r2 > this.jS.qgr) return;
              a2 = (o2 = u2.selectedDate) ? new Date(o2.valueOf()) : /* @__PURE__ */ new Date(), u2.selectedDate = new Date(r2.getFullYear(), r2.getMonth(), r2.getDate(), a2.getHours(), a2.getMinutes(), a2.getSeconds(), a2.getMilliseconds()), u2.focusDate = new Date(u2.selectedDate.valueOf()), this.updateCalendarDom(), this.jS.HG || this.oz();
            }
            this.mH.dateContainerDiv.focus();
          }, n3.prototype.uhe = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2 = this.jS._data, g2 = t4.srcElement || t4.target;
            if (g2) {
              if (e3 = g2.getAttribute(yt), h(e3)) return;
              if (0 === (i3 = p2.dayItems).length) return;
              if ((o2 = (r2 = i3[+e3]).date) < this.jS.$gr || o2 > this.jS.qgr) return;
              a2 = r2.disabled, s2 = (u2 = Bt({}, null !== (n4 = p2.the) && void 0 !== n4 ? n4 : p2.Ggr)) ? new Date(u2.start.valueOf()) : It.getDefaultDate(), 0 === this.RangeCalendar.ihe ? (u2.start = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), s2.getHours(), s2.getMinutes(), s2.getSeconds(), s2.getMilliseconds()), u2.end = u2.start, this.RangeCalendar.ihe++) : 1 === this.RangeCalendar.ihe && (c2 = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), s2.getHours(), s2.getMinutes(), s2.getSeconds(), s2.getMilliseconds()), u2.start <= c2 ? (u2.end = c2, this.RangeCalendar.ihe = 0) : (u2.end = u2.start = c2, this.RangeCalendar.ihe = 1)), p2.the = u2, p2.updateCalendarData(), a2 && (f2 = this.jS._data.focusDate, l2 = this.jS.parent, d2 = It.getFirstDayOfMonth(o2), 1 === this.jS.ehe ? o2 > f2 ? l2.che._data.focusDate = d2 : o2 < this.jS._data.focusDate && (this.jS._data.focusDate = d2) : 2 === this.jS.ehe && (v2 = l2.she, o2 > f2 ? (v2._data.focusDate = It.getPreviousMonth(o2), this.jS._data.focusDate = d2) : o2 < this.jS._data.focusDate && (v2._data.focusDate = d2))), this.RangeCalendar.updateRangeCalendarDom();
            }
          }, n3.prototype.ahe = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2 = this.jS._data, f2 = t4.srcElement || t4.target;
            if (f2) {
              if (e3 = f2.getAttribute(yt), h(e3)) return;
              if (0 === (i3 = c2.dayItems).length) return;
              o2 = (r2 = i3[+e3]).date, a2 = null !== (n4 = c2.the) && void 0 !== n4 ? n4 : c2.Ggr, c2.ohe = null, a2.start && 1 === this.RangeCalendar.ihe && (u2 = a2 ? new Date(a2.start.valueOf()) : It.getDefaultDate(), (s2 = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), u2.getHours(), u2.getMinutes(), u2.getSeconds(), u2.getMilliseconds())) > a2.start && (c2.ohe = s2)), c2.updateCalendarData(), this.RangeCalendar.updateRangeCalendarDom();
            }
          }, n3.prototype.fz = function() {
            var t4 = this.jS, n4 = t4._data.selectedDate, e3 = n4 ? new Date(n4.valueOf()) : null, i3 = /* @__PURE__ */ new Date();
            e3 && (i3.setHours(e3.getHours()), i3.setMinutes(e3.getMinutes()), i3.setSeconds(0)), t4._data.selectedDate = i3, t4._data.focusDate = new Date(i3.valueOf()), this.updateCalendarDom(), t4.HG || this.oz();
          }, n3.prototype.hz = function(t4) {
            var n4, e3, i3, r2, o2 = t4.srcElement || t4.target;
            o2 && (n4 = +o2.value, e3 = this.jS.$gr, i3 = this.jS.qgr, r2 = this.jS._data.focusDate, n4 === (e3 && e3.getFullYear()) && e3.getMonth() > r2.getMonth() ? (this.jS._data.focusDate.setFullYear(+o2.value), this.jS._data.focusDate.setMonth(e3.getMonth())) : n4 === (i3 && i3.getFullYear()) && i3.getMonth() < r2.getMonth() ? (this.jS._data.focusDate.setFullYear(+o2.value), this.jS._data.focusDate.setMonth(i3.getMonth())) : this.jS._data.focusDate.setFullYear(+o2.value), this.jS.nhe ? (this.RangeCalendar.checkFocusDateValid(), this.RangeCalendar.updateRangeCalendarDom()) : this.LH());
          }, n3.prototype.attachTimeEvent = function() {
            var t4 = this;
            this.mH.timeContainerDiv.addEventListener("click", (function(n4) {
              t4.setCalendarActivePart(Mt.Time);
            })), this.mH.okButton.addEventListener("click", (function(n4) {
              t4.oz();
            }));
          }, n3.prototype.BH = function(t4) {
            var n4 = this.jS._data, e3 = n4.selectedDate ? new Date(n4.selectedDate.valueOf()) : /* @__PURE__ */ new Date(), i3 = t4.value;
            e3.setHours(i3.getHours()), e3.setMinutes(i3.getMinutes()), e3.setSeconds(i3.getSeconds()), n4.selectedDate = e3, n4.focusDate = new Date(e3.valueOf());
          }, n3.prototype.oz = function() {
            var t4 = this.jS._data;
            this.fire(o.BaseDropdown.Event_ValueChanged, { value: t4.selectedDate });
          }, n3.prototype.showCalendarPage = function(t4) {
            var n4 = this.host.querySelector("." + _), e3 = this.host.querySelector("." + E), i3 = this.host.querySelector("." + R);
            switch (n4.style.display = "none", e3.style.display = "none", i3.style.display = "none", t4) {
              case s.CalendarPage.year:
                n4.style.display = "";
                break;
              case s.CalendarPage.month:
                e3.style.display = "";
                break;
              case s.CalendarPage.day:
                i3.style.display = "";
            }
            this.jS._data.calendarPage = t4, this.updateCalendarDom();
          }, n3.prototype.setCalendarActivePart = function(t4) {
            switch (this.jS._data.calendarActivePart = t4, this.mH.dateContainerDiv.classList.remove(z), this.jS.HG && this.mH.timeContainerDiv.classList.remove(z), t4) {
              case Mt.Date:
                this.jS.HG && this.mH.dateContainerDiv.classList.add(z), this.mH.outerContainerDiv.focus();
                break;
              case Mt.Time:
                this.jS.HG && this.mH.timeContainerDiv.classList.add(z), this.mH.outerContainerDiv.focus();
            }
          }, n3.Event_GetHost = "GetHost", n3;
        })(i2.EventBase), Rt = (function(t3) {
          function e3(n3, e4, i3, r2) {
            var a2 = t3.call(this, n3) || this;
            return a2.dH = 7, a2.HG = true, i3 && (a2.parent = i3, a2.nhe = true, a2.HG = false, a2.ehe = r2), a2._data = new Ot(a2), a2.Dn = new Et(a2), a2.Dn.on(o.BaseDropdown.Event_ValueChanged, (function(t4) {
              var n4, e5 = u.Common.CultureManager.getCultureInfo().DateTimeFormat, i4 = e5.defaultDatePattern;
              a2.HG || (i4 = e5.shortDatePattern), n4 = new u.Formatter.GeneralFormatter(i4).format(t4.value), a2.fire(o.BaseDropdown.Event_ValueChanged, { text: n4, value: t4.value });
            })), a2.Dn.on(Et.Event_GetHost, (function(t4) {
              t4.host = a2.Ti;
            })), a2.nhe || (a2.Ti.innerHTML = ""), a2.Ti.appendChild(a2.Dn.createCalendarDom()), a2.Dn.attachEvent(), a2.nhe || a2.setValue(/* @__PURE__ */ new Date()), a2.Dn.showCalendarPage(s.CalendarPage.day), a2.Dn.setCalendarActivePart(Mt.Date), e4 && a2.setOptions(e4), a2;
          }
          return Ft(e3, t3), e3.prototype.setOptions = function(t4) {
            var e4, i3, r2, o2, a2, u2, c2;
            t4 && (e4 = t4.minDate, i3 = t4.maxDate, e4 && (0, n2.isValidDate)(e4) && (this.$gr = new Date(e4.getFullYear(), e4.getMonth(), e4.getDate())), i3 && (0, n2.isValidDate)(i3) && (this.qgr = new Date(i3.getFullYear(), i3.getMonth(), i3.getDate(), 23, 59, 59, 999)), i3 && e4 && i3 < e4 && (this.$gr = void 0, this.qgr = void 0), (0, n2.isValidDate)(t4.defaultDateTime) && !this.isDateOrDateRangeOutOfRange(t4.defaultDateTime) ? this.Ugr = t4.defaultDateTime : (0, n2.isValidDateRange)(t4.defaultDateTime) && !this.isDateOrDateRangeOutOfRange(t4.defaultDateTime) ? this.Ugr = t4.defaultDateTime[this.ehe && 1 !== this.ehe ? "end" : "start"] : this.nhe ? (r2 = this._data.Ggr, this.isDateOrDateRangeOutOfRange(r2) ? (o2 = new Date(null != e4 ? e4 : i3), this._data.selectedDate = null, this._data.focusDate = 1 === this.ehe ? o2 : It.getNextMonth(o2), this._data.the = null, this.parent.the = null) : (a2 = r2.start, this._data.focusDate = 1 === this.ehe ? a2 : It.getNextMonth(a2), this._data.the = r2, this.parent.the = r2)) : !this.nhe && this.isDateOrDateRangeOutOfRange(this._data.selectedDate) && (this._data.selectedDate = null, this._data.focusDate = new Date(null != e4 ? e4 : i3)), t4.showTime || this.nhe || (this.HG = t4.showTime, this.Ti.innerHTML = "", this.Ti.appendChild(this.Dn.createCalendarDom()), this.Dn.attachEvent()), u2 = t4 && t4.calendarPage ? t4.calendarPage : s.CalendarPage.day, (c2 = t4 && t4.startDay ? t4.startDay : s.CalendarStartDay.saturday) !== this.dH && (this.dH = c2, this.Ti.innerHTML = "", this.Ti.appendChild(this.Dn.createCalendarDom()), this.Dn.attachEvent()), this.Dn.showCalendarPage(u2), this.Dn.setCalendarActivePart(Mt.Date));
          }, e3.prototype.setValue = function(t4, n3) {
            var e4, i3 = this._data, r2 = null != t4 ? t4 : this.Ugr;
            r2 && (t4 && this.isDateOrDateRangeOutOfRange(t4) ? r2 = null : this.Ugr && this.isDateOrDateRangeOutOfRange(t4) && (r2 = this.nhe ? i3.the : i3.selectedDate), this.nhe ? (e4 = r2, i3.the = e4 && { start: e4.start, end: e4.end }, i3.updateCalendarData(void 0, n3), i3.updateDayFocusDate()) : this.nhe || (i3.selectedDate = r2, i3.updateDayFocusDate(), i3.updateYearRange()));
          }, e3.prototype.scrollToSelect = function() {
            this.Dn.updateCalendarDom();
          }, e3.prototype.isDateOrDateRangeOutOfRange = function(t4) {
            if ((0, n2.isValidDate)(t4)) return t4 < this.$gr || t4 > this.qgr;
            if ((0, n2.isValidDateRange)(t4)) {
              var e4 = t4;
              return e4.start < this.$gr || e4.end > this.qgr;
            }
            return false;
          }, e3;
        })(o.BaseDropdown), n2.Calendar = Rt, Lt = (function(t3) {
          function e3(n3, e4) {
            var i3 = t3.call(this, n3) || this;
            return i3.ihe = 0, i3.Zmr = i3.Hgr(e4.defaultDateTime), i3.the = i3.Zmr, i3.rhe(e4), i3.aY(), i3;
          }
          return Ft(e3, t3), e3.prototype.Hgr = function(t4) {
            return (0, n2.isValidDate)(t4) ? { start: t4, end: t4 } : (0, n2.isValidDateRange)(t4) ? t4 : null;
          }, e3.prototype.pkr = function(t4) {
            var n3 = { showTime: false, calendarPage: s.CalendarPage.day };
            return h(t4.showBuiltInDateRange) && (n3.showBuiltInDateRange = true), Bt(Bt({}, t4), n3);
          }, e3.prototype.setOptions = function(t4) {
            var n3 = this.pkr(t4);
            this.she.setOptions(n3), this.che.setOptions(n3);
          }, e3.prototype.setValue = function(t4) {
            var n3 = false, e4 = t4;
            e4 || (e4 = this.the, n3 = true), this.she.setValue(e4, n3), this.che.setValue(e4, n3), this.updateRangeCalendarDom();
          }, e3.prototype.updateRangeCalendarDom = function() {
            var t4, n3, e4;
            this.she.Dn.updateCalendarDom(), this.che.Dn.updateCalendarDom(), n3 = this.she._data.Ggr, e4 = null !== (t4 = this.the) && void 0 !== t4 ? t4 : this.she.isDateOrDateRangeOutOfRange(n3) ? null : n3, this.updateDataRangeResult(e4);
          }, e3.prototype.fhe = function() {
            var t4 = It.getBuiltInDateRanges(), n3 = Gt("div");
            return n3.className = v + " " + it, t4.forEach((function(t5, e4) {
              var i3, r2 = Gt("div");
              r2.className = et, r2.setAttribute(wt, e4 + ""), i3 = d.createTextNode(t5[0]), r2.appendChild(i3), n3.appendChild(r2);
            })), this.lhe = n3, n3;
          }, e3.prototype.rhe = function(t4) {
            var n3, e4, i3;
            this.Ti.innerHTML = "", (n3 = Gt("div")).className = v + " " + g, t4 && false === t4.showBuiltInDateRange || n3.appendChild(this.fhe()), (e4 = Gt("div")).classList.add(p), this.she = new Rt(e4, t4, this, 1), n3.appendChild(e4), (i3 = Gt("div")).classList.add(p), this.che = new Rt(i3, t4, this, 2), n3.appendChild(i3), this.Ti.appendChild(n3), this.Ti.appendChild(this.hhe());
          }, e3.prototype.aY = function() {
            var t4 = this;
            this.lhe && this.lhe.addEventListener("click", (function(n3) {
              t4.dhe(n3);
            })), this.vhe.addEventListener("click", (function(n3) {
              t4.onOkButtonClick(n3);
            })), this.mhe.addEventListener("click", (function(n3) {
              t4.onCancelButtonClick(n3);
            })), this.on(Et.Event_GetHost, (function(n3) {
              n3.host = t4.Ti;
            }));
          }, e3.prototype.hhe = function() {
            var t4, n3, e4, i3, r2, o2 = Gt("div");
            return o2.className = rt, (t4 = Gt("div")).classList.add(st), o2.appendChild(t4), this.ghe = t4, this.updateDataRangeResult(this.the), (n3 = Gt("div")).className = ut, (e4 = Gt("button")).textContent = f().Cancel, e4.className = ot, n3.appendChild(e4), o2.appendChild(n3), this.mhe = e4, (i3 = Gt("div")).className = ut, (r2 = Gt("button")).textContent = f().OK, r2.className = ot, i3.appendChild(r2), o2.appendChild(i3), this.vhe = r2, o2;
          }, e3.prototype.dhe = function(t4) {
            var n3, e4, i3, r2 = t4.srcElement || t4.target;
            if (r2) {
              if (n3 = r2.getAttribute(wt), h(n3)) return;
              if (i3 = (e4 = It.getBuiltInDateRanges())[n3], !this.isDateRangeAllowed(i3[1])) return;
              this.the = { start: i3[1].start, end: i3[1].end }, this.notifyCalendarData(), this.fire(o.BaseDropdown.Event_ValueChanged, { text: It.getShortDate(this.the) });
            }
          }, e3.prototype.updateDataRangeResult = function(t4) {
            var e4, i3, r2, o2, a2, u2;
            if (t4 && (0, n2.isValidDateRange)(t4) && (this.ghe.innerHTML = "".concat(t4.start.toLocaleDateString("en-US"), "-").concat(t4.end.toLocaleDateString("en-US"))), this.lhe) {
              for (e4 = It.getBuiltInDateRanges(), i3 = true, r2 = 0; r2 < this.lhe.children.length; r2++) o2 = this.lhe.children[r2], a2 = parseInt(o2.getAttribute(wt), 10), o2.className = et, u2 = e4[a2] && e4[a2][1], It.dateEqual(u2.start, null == t4 ? void 0 : t4.start) && It.dateEqual(u2.end, null == t4 ? void 0 : t4.end) && (o2.className = et + " " + at), this.isDateRangeAllowed(u2) ? (i3 = false, o2.classList.remove(H)) : o2.classList.add(H);
              this.lhe.style.display = i3 ? "none" : "";
            }
            this.vhe && (this.vhe.disabled = !(0, n2.isValidDateRange)(t4), this.vhe.classList.toggle(B, !(0, n2.isValidDateRange)(t4)));
          }, e3.prototype.onOkButtonClick = function(t4) {
            this.fire(o.BaseDropdown.Event_ValueChanged, { text: It.getShortDate(this.the) });
          }, e3.prototype.onCancelButtonClick = function(t4) {
            this.fire(o.BaseDropdown.Event_ValueChanged, { notSubmit: true });
          }, e3.prototype.isDateRangeAllowed = function(t4) {
            var n3 = t4.start, e4 = t4.end;
            return (!this.she.$gr || n3 >= this.she.$gr) && (!this.she.qgr || e4 <= this.che.qgr) && n3 <= e4;
          }, e3.prototype.checkFocusDateValid = function() {
            var t4, n3 = this.she._data.focusDate, e4 = this.che._data.focusDate;
            n3 >= e4 && (t4 = It.getNextMonth(n3), this.che._data.focusDate = t4);
          }, e3.prototype.notifyCalendarData = function(t4) {
            t4 ? (this.the = t4.selectedDateRange, this.ohe = t4.hoverDate) : t4 = { selectedDateRange: this.the, hoverDate: this.ohe }, this.she && this.she._data.updateCalendarData(t4), this.che && this.che._data.updateCalendarData(t4);
          }, e3;
        })(o.BaseDropdown), n2.RangeCalendar = Lt;
      }, "./dist/plugins/celltype/editor/colorpicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d = this && this.qKr || (v = function(t3, n3) {
          return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, v(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          v(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), v;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ColorPicker = void 0, i2 = e2("./dist/plugins/celltype/editor/listControl.js"), r = e2("Core"), o = e2("./dist/plugins/celltype/editor/baseControl.js"), a = e2("./dist/plugins/celltype/celltypes.ns.js"), u = e2("Common"), s = u.Common.lt.ht, c = "group-name", f = new u.Common.ResourceManager(a.SR, "CellTypes"), l = f.getResource.bind(f), h = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.Hc(), i3.setOptions(e3), i3;
          }
          return d(n3, t3), n3.prototype.setOptions = function(t4) {
            if (t4) {
              if (this.options = this.options || {}, !s(t4.colorBlockSize)) {
                var n4 = parseInt(t4.colorBlockSize, 10);
                !isNaN(n4) && n4 >= 0 && (this.options.colorBlockSize = t4.colorBlockSize);
              }
              s(t4.groups) || (this.options.groups = t4.groups), this._6();
            } else this._6();
          }, n3.prototype.setValue = function(t4) {
            s(t4) || (this.vz = t4, this.mz = null, this._6());
          }, n3.prototype.Hc = function() {
            var t4, e3 = this, i3 = n3.DefaultColorGroup(), r2 = [];
            for (t4 = 0; t4 < i3.length; t4++) r2.push({ name: i3[t4].name, colors: i3[t4].colors, needScaleColor: i3[t4].needScaleColor });
            this.options = { colorBlockSize: n3.DefaultCellWidth, groups: r2 }, this.gz = document.createElement("div"), this.gz.classList.add("gc-color-picker-outer-div"), this.gz.addEventListener("click", (function(t5) {
              e3.pz(t5);
            })), this.Ti.appendChild(this.gz);
          }, n3.prototype._6 = function() {
            this.gz.innerHTML = "", new i2.List(this.gz, this.bz()), this.yz();
          }, n3.prototype.yz = function() {
            var t4, n4, e3, i3 = this.gz.querySelectorAll(".gc-color-picker-color-cell");
            if (i3.length > 0) for (t4 = 0; t4 < i3.length; t4++) i3[t4].classList.remove("selected"), n4 = i3[t4].getAttribute("color"), e3 = i3[t4].getAttribute(c), this.vz === n4 && (!this.mz || this.mz && this.mz === e3) && i3[t4].classList.add("selected");
          }, n3.prototype.wz = function() {
            var t4, n4, e3, i3, r2 = 0, o2 = this.options.groups;
            for (t4 = 0; t4 < o2.length; t4++) for (n4 = o2[t4], e3 = 0; e3 < n4.colors.length; e3++) i3 = n4.colors[e3], r2 = Math.max(r2, i3.length);
            return r2;
          }, n3.prototype.bz = function() {
            var t4, e3, i3, r2 = [], o2 = this.options.colorBlockSize || n3.DefaultCellWidth, a2 = this.wz(), u2 = this.options.groups;
            for (t4 = 0; t4 < u2.length; t4++) e3 = this.Mz(u2[t4], o2, a2), r2.push(e3), u2[t4].needScaleColor && (i3 = this.Cz(u2[t4].colors[0]), r2.push(this.Mz(i3, o2, a2)));
            return { items: r2 };
          }, n3.prototype.Cz = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p = {}, g = [];
            g.length = 5, n4 = 5, e3 = [-5, -15, -25, -35, -50], i3 = [-10, -25, -50, -75, -90], r2 = [80, 60, 40, -25, -50], o2 = document.createElement("span"), a2 = t4.length, o2.style.display = "none", document.body.appendChild(o2);
            try {
              for (u2 = 0; u2 < a2; u2++) for (c2 = (s2 = this.Sz(t4[u2], o2))[0], f2 = s2[1], l2 = s2[2], h2 = this.Tz(c2, f2, l2), d2 = 0; d2 < 5; d2++) g[d2] || ((v2 = []).length = a2, g[d2] = v2), g[d2][u2] = 1 === h2 ? this.Az(c2, f2, l2, e3[d2]) : h2 >= 0.8 ? this.Az(c2, f2, l2, i3[d2]) : 0 === h2 ? this.Az(c2, f2, l2, Math.abs(e3[n4 - d2 - 1])) : h2 <= 0.2 ? this.Az(c2, f2, l2, Math.abs(i3[n4 - d2 - 1])) : this.Az(c2, f2, l2, r2[d2]);
              p.colors = g;
            } finally {
              document.body.removeChild(o2);
            }
            return p;
          }, n3.prototype.Sz = function(t4, n4) {
            var e3, i3, r2, o2, a2;
            return n4.style.color = t4, a2 = (o2 = window.getComputedStyle(n4).color).replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g, "").split(","), [e3 = parseInt(a2[0], 10), i3 = parseInt(a2[1], 10), r2 = parseInt(a2[2], 10)];
          }, n3.prototype.Az = function(t4, n4, e3, i3) {
            var r2, o2, a2;
            return i3 /= 100, r2 = this.Iz(t4, n4, e3), o2 = parseInt((i3 > 0 ? (240 - r2.luminosity) * i3 : r2.luminosity * i3).toString(), 10), a2 = this.xz(r2.hue, r2.luminosity + o2, r2.saturation), this.Nz(a2.r, a2.g, a2.b);
          }, n3.prototype.kz = function(t4) {
            var n4 = t4.toString(16);
            return 1 === n4.length ? "0" + n4 : n4;
          }, n3.prototype.Nz = function(t4, n4, e3) {
            return "#" + this.kz(t4) + this.kz(n4) + this.kz(e3);
          }, n3.prototype.xz = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2;
            return 0 === e3 ? i3 = r2 = o2 = parseInt((255 * n4 / 240).toString(), 10) : (a2 = void 0, u2 = void 0, a2 = 2 * n4 - (u2 = n4 <= 120 ? (n4 * (240 + e3) + 120) / 240 : n4 + e3 - (n4 * e3 + 120) / 240), i3 = parseInt(((255 * this.Dz(a2, u2, t4 + 80) + 120) / 240).toString(), 10), r2 = parseInt(((255 * this.Dz(a2, u2, t4) + 120) / 240).toString(), 10), o2 = parseInt(((255 * this.Dz(a2, u2, t4 - 80) + 120) / 240).toString(), 10)), { a: 255, r: i3, g: r2, b: o2 };
          }, n3.prototype.Dz = function(t4, n4, e3) {
            return e3 < 0 && (e3 += 240), e3 > 240 && (e3 -= 240), e3 < 40 ? t4 + ((n4 - t4) * e3 + 20) / 40 : e3 < 120 ? n4 : e3 < 160 ? t4 + ((n4 - t4) * (160 - e3) + 20) / 40 : t4;
          }, n3.prototype.Tz = function(t4, n4, e3) {
            var i3;
            return this.Iz(t4, n4, e3).luminosity / 240;
          }, n3.prototype.Iz = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2 = Math.max(Math.max(t4, n4), e3), c2 = Math.min(Math.min(t4, n4), e3), f2 = s2 + c2, l2 = parseInt(((240 * f2 + 255) / 510).toString(), 10), h2 = s2 - c2;
            return 0 === h2 ? (i3 = 0, r2 = 160) : (i3 = l2 <= 120 ? parseInt(((240 * h2 + f2 / 2) / f2).toString(), 10) : parseInt(((240 * h2 + (510 - f2) / 2) / (510 - f2)).toString(), 10), o2 = (40 * (s2 - t4) + h2 / 2) / h2, a2 = (40 * (s2 - n4) + h2 / 2) / h2, u2 = (40 * (s2 - e3) + h2 / 2) / h2, (r2 = t4 === s2 ? parseInt((u2 - a2).toString(), 10) : n4 === s2 ? parseInt((80 + o2 - u2).toString(), 10) : parseInt((160 + a2 - o2).toString(), 10)) < 0 && (r2 += 240), r2 > 240 && (r2 -= 240)), { luminosity: l2, saturation: i3, hue: r2 };
          }, n3.prototype.Mz = function(t4, n4, e3) {
            var i3 = this, o2 = { items: function() {
              var r2, o3, a2, u2, s2, f2 = document.createElement("div");
              for (f2.classList.add("gc-color-picker-group-row"), f2.style.width = (n4 + 7) * e3 + "px", r2 = 0; r2 < t4.colors.length; r2++) {
                for ((o3 = document.createElement("div")).classList.add("gc-color-picker-color-row"), a2 = t4.colors[r2], u2 = 0; u2 < a2.length; u2++) (s2 = document.createElement("div")).setAttribute(c, t4.name), s2.setAttribute("color", a2[u2]), s2.style.backgroundColor = a2[u2], s2.style.width = n4 + "px", s2.style.height = n4 + "px", s2.classList.add("gc-color-picker-color-cell"), i3.vz === a2[u2] && i3.mz === t4.name && s2.classList.add("selected"), o3.appendChild(s2);
                f2.appendChild(o3);
              }
              return f2;
            }, layout: { direction: r.LayoutDirection.horizontal, displayAs: r.LayoutDisplayAs.inline } };
            return t4.name && (o2.text = t4.name), o2;
          }, n3.prototype.pz = function(t4) {
            var n4, e3, i3 = t4.srcElement || t4.target;
            i3 && (n4 = i3.getAttribute("color"), e3 = i3.getAttribute(c), n4 && e3 && (this.vz = n4, this.mz = e3, this._z(n4), this.yz()));
          }, n3.prototype._z = function(t4) {
            this.fire(o.BaseDropdown.Event_ValueChanged, { value: t4, text: t4 });
          }, n3.DefaultCellWidth = 10, n3.DefaultColorGroup = function() {
            return [{ name: l().ThemeColor, colors: [["#ffffff", "#000000", "#e7e6e6", "#44546a", "#5b9bd5", "#ed7d31", "#a5a5a5", "#ffc000", "#4472c4", "#70ad47"]], needScaleColor: true }, { name: l().StandardColor, colors: [["#C00000", "#FF0000", "#FFC000", "#FFFF00", "#92D050", "#00B050", "#00B0F0", "#0070C0", "#002060", "#7030A0"]] }];
          }, n3;
        })(o.BaseDropdown), n2.ColorPicker = h;
      }, "./dist/plugins/celltype/editor/eventbase.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.EventBase = void 0;
        var e2 = (function() {
          function t3() {
            this.Ez = {};
          }
          return t3.prototype.on = function(t4, n3) {
            var e3 = this.Ez[t4];
            null == e3 && (e3 = this.Ez[t4] = []), e3.push(n3);
          }, t3.prototype.off = function(t4, n3) {
            var e3, i2;
            if (t4) {
              if (null == (e3 = this.Ez[t4])) return;
              n3 ? (i2 = e3.indexOf(n3), e3.splice(i2, 1)) : e3 = [], this.Ez[t4] = e3;
            } else this.Ez = {};
          }, t3.prototype.fire = function(t4, n3) {
            var e3 = this, i2 = this.Ez[t4];
            null != i2 && i2.forEach((function(t5) {
              try {
                t5.call(e3, n3);
              } catch (t6) {
              }
            }));
          }, t3;
        })();
        n2.EventBase = e2;
      }, "./dist/plugins/celltype/editor/listControl.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O = this && this.qKr || (E = function(t3, n3) {
          return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, E(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          E(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), E;
        function R(t3) {
          return c.createElement(t3);
        }
        function L(t3, n3) {
          return t3.substring(0, n3) + t3.substring(n3 + 1, t3.length);
        }
        function F(t3, n3) {
          if (o.Common.Uf.OS(t3, n3)) return true;
          if (o.Common.ct.W0(n3)) {
            for (var e3 = 0; e3 < t3.length; e3++) if (t3[e3] - n3 === 0) return true;
          }
          return false;
        }
        function B(t3, n3) {
          var e3, i3 = o.Common.ct.W0(n3);
          for (e3 = t3.length - 1; e3 >= 0; e3--) (t3[e3] === n3 || i3 && t3[e3] - n3 === 0) && t3.splice(e3, 1);
        }
        function P(t3) {
          var n3, e3, i3, r2, o2;
          if (u(t3) || 0 === t3.length) return [];
          for (n3 = [], e3 = 0, i3 = 0; i3 < t3.length; i3++) "\\" === (r2 = t3.charAt(i3)) ? "," !== (o2 = t3.charAt(i3 + 1)) && "\\" !== o2 || (t3 = L(t3, i3)) : "," === r2 && (n3.push(t3.substring(e3, i3)), e3 = i3 + 1);
          return n3.push(t3.substring(e3, t3.length)), n3;
        }
        function G(t3) {
          var n3, e3, i3 = [];
          for (n3 = 0; n3 < t3.length; n3++) (e3 = t3[n3]) && "string" == typeof e3 && (e3 = e3.replace(/\\/g, "\\\\").replace(/,/g, "\\,")), i3[n3] = e3;
          return i3.join(",");
        }
        function U(t3) {
          if (t3.hasOwnProperty("items")) U(t3.items);
          else if (Array.isArray(t3)) for (var n3 = 0; n3 < t3.length; n3++) t3[n3].hasOwnProperty("items") ? U(t3[n3]) : t3[n3].hasOwnProperty("text") && !t3[n3].hasOwnProperty("value") && (t3[n3].value = t3[n3].text);
          return t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.List = void 0, i2 = e2("./dist/plugins/celltype/editor/popupControl.js"), r = e2("./dist/plugins/celltype/editor/baseControl.js"), o = e2("Common"), a = e2("Core"), u = o.Common.lt.ht, s = o.Common.Uf.hD, c = document, f = (function() {
          function t3() {
            this.jz = /* @__PURE__ */ new WeakMap();
          }
          return t3.prototype.set = function(t4, n3, e3) {
            var i3 = this.jz.get(t4);
            i3 || (i3 = {}, this.jz.set(t4, i3)), i3[n3] = e3;
          }, t3.prototype.get = function(t4, n3) {
            var e3 = this.jz.get(t4);
            return e3 && e3[n3];
          }, t3.prototype.clear = function() {
            this.jz = /* @__PURE__ */ new WeakMap();
          }, t3;
        })(), l = "gc-list-control", h = "gc-list-control-container", d = "gc-list-control-group", v = "gc-list-control-group-text", p = "gc-list-control-item", g = "gc-list-control-hassubitem", m = "gc-list-control-selected-item", b = "gc-list-control-item-text", y = "gc-list-control-item-text-ellipsis", w = "gc-list-control-item-ellipsis", M = "gc-list-control-item-icon", C = "gc-list-control-emptyicon", S = "gc-list-control-subitem", T = "gc-list-alignment-horizontal", x = "gc-list-alignment-vertical", A = "gc-list-control-noitem", I = "gc-list-control-listseparator", k = "hide-children", N = "gc-list-control-tree", j = "gc-list-control-tree-text", D = "gc-list-control-tree-content", _ = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4) || this;
            return r2.Ti = R("div"), r2.Ti.classList.add(l), n4.appendChild(r2.Ti), r2.cE = new f(), r2.Oz = i3 && i3.Oz || { y4: void 0 }, r2.Rz = { items: [], doms: [] }, r2.setOptions(e3), r2;
          }
          return O(n3, t3), n3.prototype.setOptions = function(t4) {
            u(t4) || (this.MU = U(t4), this.Ti.innerHTML = "", this.Dn());
          }, n3.prototype.setValue = function(t4) {
            if (this.MU && this.MU.multiSelect) if ("string" == typeof t4) t4 = P(t4);
            else if (u(t4)) t4 = [];
            else if (o.Common.lt.Nh(t4)) {
              if (1 !== this.MU.valueType) {
                t4 = t4.slice(0);
                for (var n4 = 0; n4 < t4.length; n4++) t4[n4] = "" + t4[n4];
              }
            } else t4 = [t4];
            this.Oz.y4 = t4, this.Bz();
          }, n3.prototype.scrollToSelect = function() {
          }, n3.prototype.updateStyle = function(t4, n4, e3) {
            this.Ti.style.font = e3;
          }, n3.prototype.Dn = function() {
            var t4 = R("div");
            t4.classList.add(h), this.MU.Oue && (t4.setAttribute("role", "listbox"), t4.setAttribute("tabindex", "-1")), this.Lz(t4, this.MU), this.Ti.appendChild(t4), this.Fz();
          }, n3.prototype.Lz = function(t4, n4) {
            if (n4 && (this.Pz(t4, n4.layout), n4.items)) if (Array.isArray(n4.items)) this.Gz(t4, n4.items);
            else {
              var e3 = n4.items();
              e3 instanceof HTMLElement && (t4.appendChild(e3), t4.classList.add(p), this.Pz(e3, n4.layout));
            }
          }, n3.prototype.Pz = function(t4, n4) {
            n4 && n4.direction === a.LayoutDirection.horizontal ? t4.classList.add(T) : t4.classList.add(x);
          }, n3.prototype.Gz = function(t4, n4) {
            var e3, i3, r2, o2, s2, c2, f2, l2, h2, m2, b2 = n4.some((function(t5) {
              return !!t5.icon;
            }));
            for (e3 = 0; e3 < n4.length; e3++) n4[e3].items ? (i3 = n4[e3]).layout && i3.layout.displayAs === a.LayoutDisplayAs.inline ? ((r2 = R("div")).classList.add(d), (o2 = R("span")).innerText = i3.text, (u(i3.text) || "" === i3.text) && o2.classList.add(k), o2.classList.add(v), r2.appendChild(o2), Array.isArray(i3.items) ? this.Lz(r2, i3) : (s2 = i3.items()) instanceof HTMLElement && ((c2 = R("div")).classList.add(p), this.Pz(s2, i3.layout), c2.appendChild(s2), r2.appendChild(c2)), t4.appendChild(r2)) : i3.layout && i3.layout.displayAs === a.LayoutDisplayAs.tree ? ((f2 = R("div")).classList.add(N), (l2 = R("div")).classList.add(p), l2.classList.add(g), (o2 = R("span")).innerText = i3.text, o2.classList.add(j), l2.appendChild(o2), i3.layout.collapsible && ((h2 = R("span")).classList.add(S), l2.appendChild(h2), this.Uz(l2)), f2.appendChild(l2), (m2 = R("div")).classList.add(D), Array.isArray(i3.items) ? this.Lz(m2, i3) : (s2 = i3.items()) instanceof HTMLElement && ((c2 = R("div")).classList.add(p), this.Pz(s2, i3.layout), c2.appendChild(s2), m2.appendChild(c2)), f2.appendChild(m2), t4.appendChild(f2)) : this.Hz(t4, n4[e3], false, true) : this.Hz(t4, n4[e3], b2);
          }, n3.prototype.Hz = function(t4, n4, e3, i3) {
            var r2, o2, a2, c2, f2, l2, h2, d2, v2;
            void 0 === i3 && (i3 = false), (r2 = R("div")).classList.add(p), this.MU.textEllipsis && r2.classList.add(w), "-" === n4.text ? (r2.classList.add(A), (o2 = R("div")).classList.add(I), r2.appendChild(o2)) : (e3 && ((a2 = R("div")).classList.add(M), n4.icon ? a2.style.backgroundImage = "url(".concat(n4.icon, ")") : a2.classList.add(C), r2.appendChild(a2)), (c2 = R("span")).classList.add(b), this.MU.textEllipsis && c2.classList.add(y), f2 = n4.text, u(n4.text) && (f2 = u(n4.value) ? "" : n4.value), c2.innerText = f2, r2.appendChild(c2), r2.setAttribute("text", f2), l2 = u(n4.value) ? null : n4.value, (h2 = s(this.Rz.items, l2)) < 0 && (h2 = this.Rz.items.length, this.Rz.doms.push([]), this.Rz.items.push(l2)), this.Rz.doms[h2].push(r2), this.cE.set(r2, "items", n4), i3 && ((d2 = R("span")).classList.add(S), r2.classList.add(g), this.cE.set(r2, "sub-items", n4), r2.appendChild(d2), this.zz(r2))), this.MU.Oue && (r2.setAttribute("role", "option"), r2.setAttribute("tabindex", "0"), v2 = n4.text || n4.value, u(v2) || r2.setAttribute("aria-label", v2)), t4.appendChild(r2);
          }, n3.prototype.qj = function(t4, n4) {
            var e3, i3 = this.Rz.doms[t4];
            if (n4) for (e3 = 0; e3 < i3.length; e3++) i3[e3].classList.contains(g) || i3[e3].classList.add(m);
            else for (e3 = 0; e3 < i3.length; e3++) i3[e3].classList.contains(m) && i3[e3].classList.remove(m);
          }, n3.prototype.Bz = function() {
            var t4, n4, e3, i3, r2 = this, o2 = r2.MU;
            for (t4 = u(r2.formula) ? o2 && o2.multiSelect ? n4 = r2.Oz.y4 : [r2.Oz.y4] : ["=" + r2.formula], e3 = 0; e3 < r2.Rz.items.length; e3++) i3 = r2.Rz.items[e3], o2 && o2.multiSelect && 1 !== o2.valueType && (i3 = "" + i3), F(t4, i3) ? r2.qj(e3, true) : r2.qj(e3, false);
          }, n3.prototype.Fz = function() {
            var t4 = this;
            this.Ti.querySelector("." + h).addEventListener("click", (function(n4) {
              var e3, i3, a2, s2, c2, f2 = t4.Vz(n4.target, ".".concat(p));
              f2 && (f2.classList.contains(g) ? t4.Yz(n4) : (e3 = t4.cE.get(f2, "items"), i3 = t4.MU, !e3 && o.Common.lt.Eh(i3 && i3.onItemSelected) && (e3 = { value: i3.onItemSelected(n4) }), u(e3) || (a2 = e3.value, s2 = e3.path, i3 && i3.multiSelect && (c2 = (c2 = t4.Oz.y4).slice(0), i3.multiSelect && 1 !== i3.valueType && (a2 = "" + a2), F(c2, a2) ? B(c2, a2) : o.Common.Uf.ZP(c2, a2), t4.Oz.y4 = a2 = c2, t4.Bz(), 1 !== i3.valueType && (a2 = G(a2))), t4.fire(r.BaseDropdown.Event_ValueChanged, { path: s2, value: a2, text: a2, notCloseDropDown: i3 && i3.multiSelect, noAutoFormat: true }))));
            }));
          }, n3.prototype.Vz = function(t4, n4) {
            Element.prototype.matches || (Element.prototype.matches = Element.prototype.webkitMatchesSelector || function(t5) {
              for (var n5 = (this.document || this.ownerDocument).querySelectorAll(t5), e4 = n5.length; e4 >= 0 && n5.item(e4) !== this; ) --e4;
              return e4 > -1;
            });
            for (var e3 = t4; e3 && !e3.matches(n4); ) e3 = e3.parentElement;
            return e3;
          }, n3.prototype.Yz = function(t4) {
            var e3, o2, u2, s2, c2, f2 = this, l2 = this.Vz(t4.target, ".".concat(p));
            l2.classList.contains(g) && (e3 = this.cE.get(l2, "sub-items")) && e3.items && (o2 = R("div"), u2 = this.MU, e3.multiSelect = u2 && u2.multiSelect, e3.valueType = u2 && u2.valueType, e3.onItemSelected = u2 && u2.onItemSelected, (s2 = new n3(o2, e3, this)).Bz(), (c2 = new i2.PopupControl(o2, l2, { align: a.DropDownAlignment.Near, hostElement: l2, direction: a.DropDownDirection.Right })).open(), s2.on(r.BaseDropdown.Event_ValueChanged, (function(t5) {
              f2.fire(r.BaseDropdown.Event_ValueChanged, t5), f2.MU && f2.MU.multiSelect ? f2.Bz() : c2.close();
            })), this.cE.set(l2, "sub-items-popup", c2), t4.stopPropagation(), t4.preventDefault());
          }, n3.prototype.zz = function(t4) {
            var n4 = this;
            t4.addEventListener("mouseenter", (function(t5) {
              n4.Yz(t5);
            })), t4.addEventListener("mouseleave", (function(t5) {
              var e3, i3 = t5.target;
              i3.classList.contains(g) && (e3 = n4.cE.get(i3, "sub-items-popup")) && (e3.close(), n4.cE.set(i3, "sub-items-pop", void 0));
            }));
          }, n3.prototype.Uz = function(t4) {
            var n4 = this;
            t4.addEventListener("click", (function(t5) {
              var e3, i3 = t5.target, r2 = n4.Vz(i3, ".".concat(g));
              r2 && (e3 = r2.parentElement.querySelector("." + D)) && (r2.parentElement.classList.contains(k) ? r2.parentElement.classList.remove(k) : r2.parentElement.classList.add(k), t5.stopPropagation(), t5.preventDefault());
            }));
          }, n3;
        })(r.BaseDropdown), n2.List = _;
      }, "./dist/plugins/celltype/editor/monthPicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b = this && this.qKr || (y = function(t3, n3) {
          return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), y;
        function w(t3) {
          return c.createElement(t3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.MonthPicker = void 0, i2 = e2("./dist/plugins/celltype/editor/baseControl.js"), r = e2("./dist/plugins/celltype/celltypes.ns.js"), o = e2("Common"), a = o.Common.lt.ht, u = new o.Common.ResourceManager(r.SR, "CellTypes"), s = u.getResource.bind(u), c = document, f = "gc-month-picker-separator", l = "gc-month-picker-year-item", h = "gc-month-picker-month-item", d = "gc-month-picker-qtr-item", v = "selected", p = "data-month", g = "data-qtr", m = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.setOptions(e3), i3.Fz(), i3;
          }
          return b(n3, t3), n3.prototype.setOptions = function(t4) {
            var n4, e3, i3, r2 = this, o2 = /* @__PURE__ */ new Date(), u2 = { startYear: o2.getFullYear() - 10, stopYear: o2.getFullYear(), height: 300 };
            t4 && (a(t4.startYear) || (n4 = parseInt(t4.startYear, 10), isNaN(n4) || (u2.startYear = n4)), !a(t4.stopYear) && t4.stopYear > 0 && (e3 = parseInt(t4.stopYear, 10), isNaN(e3) || (u2.stopYear = e3)), u2.stopYear < u2.startYear && (u2.stopYear = t4.startYear), a(t4.height) || (i3 = parseInt(t4.height, 10), isNaN(i3) || (u2.height = i3))), u2.height = Math.max(1, u2.height), r2.MU = u2, r2.Ti.innerHTML = "", r2.Zz();
          }, n3.prototype.setValue = function(t4) {
            var n4, e3, i3, r2, o2, a2 = this;
            t4 && (n4 = t4.getMonth() + 1, e3 = t4.getFullYear()), this.MU.startYear && this.MU.stopYear && this.MU.startYear < this.MU.stopYear && e3 > this.MU.stopYear && (e3 = this.MU.stopYear), "number" == typeof n4 && (r2 = a2.Ti.querySelector("[".concat(p, "='").concat(e3, "-").concat(n4, "']"))) && (r2.classList.add(v), a2.Wz && a2.Wz.classList.remove(v), a2.Wz = r2);
          }, n3.prototype.scrollToSelect = function() {
            var t4, n4 = this.Wz;
            n4 && (t4 = n4.offsetTop, this.Ti.scrollTop = t4);
          }, n3.prototype.Qz = function(t4, n4) {
            Element.prototype.matches || (Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function(t5) {
              for (var n5 = (this.document || this.ownerDocument).querySelectorAll(t5), e4 = n5.length; e4 >= 0 && n5.item(e4) !== this; ) --e4;
              return e4 > -1;
            });
            for (var e3 = t4; e3 && !e3.matches(n4); ) e3 = e3.parentElement;
            return e3;
          }, n3.prototype.Fz = function() {
            var t4 = this;
            this.Ti.addEventListener("click", (function(n4) {
              var e3, r2, a2, u2, s2, c2, f2, l2, m2 = t4, b2 = m2.Qz(n4.target, ".".concat(h, ",.").concat(d));
              b2 && (b2.getAttribute(g) || (b2.classList.add(v), m2.Wz && m2.Wz.classList.remove(v), m2.Wz = b2, e3 = null, r2 = null, b2.getAttribute(p) && (e3 = +(u2 = (a2 = b2.getAttribute(p)).split("-"))[1], r2 = +u2[0]), s2 = new Date(r2, e3 - 1, 1, 0, 0, 0, 0), c2 = o.Common.CultureManager.Fe().DateTimeFormat, l2 = (f2 = new o.Formatter.GeneralFormatter(c2.shortDatePattern)).format(s2), m2.fire(i2.BaseDropdown.Event_ValueChanged, { text: l2, value: s2 })));
            }));
          }, n3.prototype.Zz = function() {
            var t4, n4, e3, i3, r2 = this;
            for (this.MU.height >= 0 ? r2.Ti.style.maxHeight = this.MU.height + "px" : r2.Ti.style.height = "auto", r2.Ti.classList.add("gc-month-picker-container"), t4 = r2.MU.startYear; t4 <= r2.MU.stopYear; t4++) n4 = document.createElement("div"), r2.Jz(n4), (e3 = document.createElement("div")).classList.add("gc-month-picker-year-container"), r2.Xz(t4, e3), (i3 = document.createElement("div")).classList.add("gc-month-picker-month-container"), r2.qz(t4, 1, i3), r2.qz(t4, 2, i3), r2.qz(t4, 3, i3), r2.qz(t4, 4, i3), n4.appendChild(e3), n4.appendChild(i3), this.Ti.appendChild(n4);
          }, n3.prototype.Jz = function(t4) {
            var n4 = w("div");
            n4.classList.add(f), t4.appendChild(n4);
          }, n3.prototype.Xz = function(t4, n4) {
            var e3 = w("div");
            e3.classList.add(l), e3.innerText = "".concat(t4), n4.appendChild(e3);
          }, n3.prototype.qz = function(t4, n4, e3) {
            var i3 = document.createElement("div"), r2 = w("div"), o2 = w("div"), a2 = w("div"), u2 = w("div");
            switch (r2.classList.add(h), o2.classList.add(h), a2.classList.add(h), u2.classList.add(d), n4) {
              case 1:
                r2.innerText = s().Calendar_ShortMonths_1, r2.setAttribute(p, "".concat(t4, "-").concat(1)), o2.innerText = s().Calendar_ShortMonths_2, o2.setAttribute(p, "".concat(t4, "-").concat(2)), a2.innerText = s().Calendar_ShortMonths_3, a2.setAttribute(p, "".concat(t4, "-").concat(3)), u2.innerText = s().Quarter_Format_1, u2.setAttribute(g, "".concat(t4, "-").concat(1));
                break;
              case 2:
                r2.innerText = s().Calendar_ShortMonths_4, r2.setAttribute(p, "".concat(t4, "-").concat(4)), o2.innerText = s().Calendar_ShortMonths_5, o2.setAttribute(p, "".concat(t4, "-").concat(5)), a2.innerText = s().Calendar_ShortMonths_6, a2.setAttribute(p, "".concat(t4, "-").concat(6)), u2.innerText = s().Quarter_Format_2, u2.setAttribute(g, "".concat(t4, "-").concat(2));
                break;
              case 3:
                r2.innerText = s().Calendar_ShortMonths_7, r2.setAttribute(p, "".concat(t4, "-").concat(7)), o2.innerText = s().Calendar_ShortMonths_8, o2.setAttribute(p, "".concat(t4, "-").concat(8)), a2.innerText = s().Calendar_ShortMonths_9, a2.setAttribute(p, "".concat(t4, "-").concat(9)), u2.innerText = s().Quarter_Format_3, u2.setAttribute(g, "".concat(t4, "-").concat(3));
                break;
              case 4:
                r2.innerText = s().Calendar_ShortMonths_10, r2.setAttribute(p, "".concat(t4, "-").concat(10)), o2.innerText = s().Calendar_ShortMonths_11, o2.setAttribute(p, "".concat(t4, "-").concat(11)), a2.innerText = s().Calendar_ShortMonths_12, a2.setAttribute(p, "".concat(t4, "-").concat(12)), u2.innerText = s().Quarter_Format_4, u2.setAttribute(g, "".concat(t4, "-").concat(4));
            }
            i3.appendChild(r2), i3.appendChild(o2), i3.appendChild(a2), i3.appendChild(u2), e3.appendChild(i3), n4 < 4 && this.Jz(e3);
          }, n3;
        })(i2.BaseDropdown), n2.MonthPicker = m;
      }, "./dist/plugins/celltype/editor/multiColumnPicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m = this && this.qKr || (b = function(t3, n3) {
          return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, b(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          b(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), b;
        function y(t3) {
          return Array.isArray(t3);
        }
        function w(t3) {
          return "string" == typeof t3;
        }
        function M(t3) {
          t3.suspendPaint(), t3.suspendEvent(), t3.suspendCalcService();
        }
        function C(t3) {
          t3.resumeCalcService(false), t3.resumeEvent(), t3.resumePaint();
        }
        function S(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = t3[0], s2 = [];
          if (y(u2)) for (e3 = t3, i3 = T(t3, n3), r2 = function(t4, n4) {
            var r3 = e3[t4], o3 = {};
            i3.forEach((function(t5, n5) {
              o3[t5] = r3[n5];
            })), s2.push(o3);
          }, o2 = 0, a2 = e3.length; o2 < a2; o2++) r2(o2, a2);
          else s2 = t3;
          return s2;
        }
        function T(t3, n3) {
          var e3 = [];
          return n3 && n3.length > 0 ? n3.forEach((function(t4) {
            e3.push(t4.name);
          })) : e3 = t3.shift(), e3;
        }
        function x(t3, n3) {
          var e3 = [];
          return t3.yMt(n3, 0, 0, e3), e3 = A(e3);
        }
        function A(t3) {
          var n3, e3, i3, r2 = [], o2 = [];
          for (n3 = 0; n3 < t3.length; n3++) i3 = "" + (e3 = t3[n3]).row + e3.col + e3.rowCount + e3.colCount + e3.sheetName, r2.indexOf(i3) < 0 && (r2.push(i3), o2.push(e3));
          return o2;
        }
        function I(t3, n3, e3, i3, r2, o2) {
          var a2 = { row: e3, col: i3, dataSource: r2, dependSheetName: void 0, targetSheetName: o2.name() };
          n3.forEach((function(n4) {
            var u2, s2 = n4.row, c2 = n4.col, f2 = null !== (u2 = n4.sheetName) && void 0 !== u2 ? u2 : o2.name();
            void 0 === t3[s2] && (t3[s2] = []), void 0 === t3[s2][c2] && (t3[s2][c2] = []), t3[s2][c2].some((function(t4) {
              return t4.row === e3 && t4.col === i3 && t4.dataSource === r2 && t4.dependSheetName === f2;
            })) || (a2.dependSheetName = f2, t3[s2][c2].push(a2));
          }));
        }
        function k(t3, n3, e3) {
          var i3 = e3.row, r2 = e3.rowCount, o2 = e3.col, a2 = e3.colCount;
          "addRows" === t3 ? N(n3, i3, r2) : "deletingRows" === t3 ? j(n3, i3, r2) : "addColumns" === t3 ? D(n3, o2, a2) : "deletingColumns" === t3 && _(n3, o2, a2);
        }
        function N(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2;
          if (t3) {
            for (i3 in t3) if (t3.hasOwnProperty(i3)) {
              if (!(r2 = t3[i3])) continue;
              for (o2 in r2) if (r2.hasOwnProperty(o2)) {
                if (!(a2 = r2[o2])) continue;
                for (u2 = 0, s2 = a2; u2 < s2.length; u2++) (c2 = s2[u2]).row >= n3 && (c2.row += e3);
              }
            }
          }
        }
        function j(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2;
          if (t3) {
            for (i3 in t3) if (t3.hasOwnProperty(i3)) {
              if (!(r2 = t3[i3])) continue;
              for (o2 in r2) if (r2.hasOwnProperty(o2)) {
                if (!(a2 = r2[o2])) continue;
                for (u2 = [], s2 = 0, c2 = a2; s2 < c2.length; s2++) (f2 = c2[s2]).row < n3 ? u2.push(f2) : f2.row < n3 + e3 || (f2.row -= e3, u2.push(f2));
                r2[o2] = u2;
              }
            }
          }
        }
        function D(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2;
          if (t3) {
            for (i3 in t3) if (t3.hasOwnProperty(i3)) {
              if (!(r2 = t3[i3])) continue;
              for (o2 in r2) if (r2.hasOwnProperty(o2)) {
                if (!(a2 = r2[o2])) continue;
                for (u2 = 0, s2 = a2; u2 < s2.length; u2++) (c2 = s2[u2]).col >= n3 && (c2.col += e3);
              }
            }
          }
        }
        function _(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2;
          if (t3) {
            for (i3 in t3) if (t3.hasOwnProperty(i3)) {
              if (!(r2 = t3[i3])) continue;
              for (o2 in r2) if (r2.hasOwnProperty(o2)) {
                if (!(a2 = r2[o2])) continue;
                for (u2 = [], s2 = 0, c2 = a2; s2 < c2.length; s2++) (f2 = c2[s2]).col < n3 ? u2.push(f2) : f2.col < n3 + e3 || (f2.col -= e3, u2.push(f2));
                r2[o2] = u2;
              }
            }
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.MultiColumn = void 0, i2 = e2("Core"), r = e2("SheetsCalc"), o = e2("CalcEngine"), a = e2("CalcEngine"), u = e2("Common"), s = e2("./dist/plugins/celltype/editor/baseControl.js"), c = e2("./dist/plugins/celltype/editor/baseSpreadPicker.js"), f = e2("./dist/plugins/celltype/celltypes.ns.js"), l = u.Common.lt.ht, h = new u.Common.ResourceManager(f.SR, "CellTypes"), d = h.getResource.bind(h), v = !!o, p = ".multiColumnNS", g = (function(t3) {
          function n3(n4, e3, i3) {
            return t3.call(this, n4, e3, i3) || this;
          }
          return m(n3, t3), n3.prototype.setOptions = function(n4) {
            var e3, r2, o2, a2, u2, s2, c2, f2, h2;
            if (t3.prototype.setOptions.call(this, n4), (e3 = this).MU = n4, n4) {
              if (r2 = e3.TU, o2 = n4.dataSource, a2 = n4.bindingInfos, u2 = n4.border, s2 = e3.SU, c2 = r2.getActiveSheet(), o2) {
                f2 = true, M(c2), c2.options.isProtected = true, c2.options.rowHeaderVisible = false, c2.selectionPolicy(i2.SelectionPolicy.single), c2.selectionUnit(i2.SelectionUnit.row);
                try {
                  e3.$z(c2, o2, a2);
                } catch (t4) {
                  f2 = false, e3.dispose();
                } finally {
                  f2 && c2 && ((h2 = new i2.Style())._showTip = false, c2.setStyle(-1, -1, h2, i2.SheetArea.viewport), C(c2));
                }
              }
              l(u2) || (s2.style.border = u2);
            }
          }, n3.prototype.setValue = function(n4) {
            var e3, r2, o2, a2, u2 = this;
            u2.MU && (t3.prototype.setValue.call(this, n4), e3 = u2.TU, r2 = e3.getActiveSheet(), o2 = u2.tV(n4), r2.suspendPaint(), -1 !== o2 ? (r2.clear(0, -1, -1, -1, i2.SheetArea.colHeader, i2.StorageType.style), r2.setSelection(o2, -1, 1, -1)) : (r2.clearSelection(), (a2 = new i2.Style()).backColor = "rgb(225, 225, 225)", a2.foreColor = "rgb(33, 115, 70)", a2.font = "bold 11pt Calibri", a2.borderBottom = new i2.LineBorder("rgb(33, 115, 70)", i2.LineStyle.medium), r2.setStyle(0, -1, a2, i2.SheetArea.colHeader), r2.D3(i2.Events.ActiveCellChanged + p, (function(t4, n5) {
              r2.setSelection(0, -1, 1, -1), r2._3(i2.Events.ActiveCellChanged + p);
            }))), r2.resumePaint());
          }, n3.prototype.dispose = function() {
            var n4 = this, e3 = n4.TU, r2 = e3.getActiveSheet();
            r2._3(i2.Events.ActiveCellChanged + p), t3.prototype.dispose.call(this);
          }, n3.prototype.$z = function(t4, n4, e3) {
            if (n4) {
              var i3, r2 = this.nV(n4);
              r2 && (t4.setDataSource(S(r2, e3)), e3 && t4.bindColumns(e3));
            }
          }, n3.prototype.nV = function(t4) {
            var n4, e3, o2, u2, s2, c2, f2, l2, h2, p2, g2, m2, b2, M2, C2, S2 = t4, T2 = this.CU;
            if (w(S2)) {
              if (v) {
                if (o2 = (e3 = this.MU).row, u2 = e3.col, s2 = (0, r.formulaToExpression)(T2, S2), c2 = void 0, T2.reportDataModel ? (c2 = T2.reportDataModel.mji.POt) && c2.setContext && c2.setContext({ row: o2, col: u2, formula: S2, triggerUpdatePrecedents: true }) : (c2 = T2.Uw(), I(f2 = T2.whe(), l2 = x(T2, s2), o2, u2, S2, T2)), h2 = T2.getCalcService().evaluateParsedFormula(c2, s2, (0, a.eV)(0, 0), true), g2 = false, m2 = void 0, (p2 = a.Convert.LE(h2) || a.Convert.Nh(h2)) && ((m2 = a.Convert.iV(h2, 0, false, false, false)).isError || m2.isConvertError || (g2 = true)), !g2) throw new Error(d().MultiColumn_InvalidDataSource);
                n4 = m2;
              }
            } else S2 instanceof i2.Range ? n4 = T2.getArray(S2.row, S2.col, S2.rowCount, S2.colCount) : y(S2) ? n4 = S2 : S2.viewName && (n4 = (C2 = (M2 = (b2 = T2.parent) && b2.dataManager().rV) && M2[S2.viewName]) && C2.oV());
            return n4;
          }, n3.prototype.tV = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = this, b2 = -1;
            if (t4) {
              if (e3 = (n4 = m2.TU).getActiveSheet(), r2 = (i3 = Object.keys(t4)).length, a2 = (o2 = e3.getDataSource()).length, u2 = false, s2 = m2.MU.valuePath, l(s2)) for (c2 = 0; c2 < a2; c2++) {
                for (f2 = o2[c2], u2 = true, h2 = 0; h2 < r2; h2++) if (f2[s2 = i3[h2]] !== t4[s2] && void 0 !== f2[s2]) {
                  u2 = false;
                  break;
                }
                if (u2) {
                  b2 = c2;
                  break;
                }
              }
              else for (v2 = (d2 = t4 instanceof Date) ? t4 + "" : t4, c2 = 0; c2 < a2; c2++) if (p2 = o2[c2][s2], (g2 = d2 && p2 instanceof Date ? p2 + "" : p2) === v2) {
                b2 = c2;
                break;
              }
            }
            return b2;
          }, n3.prototype.submitData = function(t4) {
            var n4, e3, i3, r2, o2, a2 = this, u2 = t4.sheet, c2 = t4.isEsc;
            c2 ? n4 = { notSubmit: true } : (i3 = (e3 = u2.getSelections()[0]).row) > -1 && (r2 = u2.getDataItem(i3), o2 = a2.MU.valuePath, l(o2) || (r2 = r2[o2]), n4 = { value: r2, text: r2 }), l(n4) || a2.fire(s.BaseDropdown.Event_ValueChanged, n4);
          }, n3;
        })(c.BaseSpreadPicker), n2.MultiColumn = g, i2.Worksheet.ch("dropDowns", { onLayoutChanged: function(t3) {
          var n3, e3, i3;
          (l(t3.sheetArea) || 3 === t3.sheetArea) && (e3 = (n3 = this).whe(), k(i3 = t3.changeType, e3, t3));
        }, onLayoutChangedFromOp: function(t3) {
          k(t3.changeType, this.whe(), t3);
        }, updatePrecedents: function(t3) {
          var n3 = this, e3 = n3.whe(), r2 = t3.row, o2 = t3.col, a2 = t3.cells, u2 = t3.formula, s2 = n3.getStyle(r2, o2);
          s2 && s2.dropDowns && s2.dropDowns.some((function(t4) {
            return t4.type === i2.DropDownType.multiColumn && t4.option.dataSource === u2;
          })) && I(e3, a2, r2, o2, u2, n3);
        } });
      }, "./dist/plugins/celltype/editor/popupControl.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c = this && this.qKr || (f = function(t3, n3) {
          return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, f(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          f(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), f;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.PopupControl = n2.Rectangle = n2.DropDownAdjustment = void 0, i2 = e2("Core"), r = e2("./dist/plugins/celltype/editor/baseControl.js"), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Flip = 1] = "Flip", t3[t3.Slide = 2] = "Slide";
        })(o = n2.DropDownAdjustment || (n2.DropDownAdjustment = {})), a = (function() {
          function t3(t4, n3, e3, i3) {
            this._x = t4, this._y = n3, this.YC = e3, this.ZC = i3;
          }
          return t3.CreateFromDom = function(n3) {
            return new t3(n3.left, n3.top, n3.width, n3.height);
          }, Object.defineProperty(t3.prototype, "x", { get: function() {
            return this._x;
          }, set: function(t4) {
            this._x = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "y", { get: function() {
            return this._y;
          }, set: function(t4) {
            this._y = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "width", { get: function() {
            return this.YC;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "height", { get: function() {
            return this.ZC;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "left", { get: function() {
            return this._x;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "right", { get: function() {
            return this._x + this.YC;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "top", { get: function() {
            return this._y;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "bottom", { get: function() {
            return this._y + this.ZC;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Location", { get: function() {
            return { X: this._x, Y: this._y };
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Size", { get: function() {
            return { width: this.YC, height: this.ZC };
          }, enumerable: false, configurable: true }), t3.prototype.Offset = function() {
            var t4, n3 = [];
            for (t4 = 0; t4 < arguments.length; t4++) n3[t4] = arguments[t4];
            1 === n3.length && "number" == typeof n3[0].X && "number" == typeof n3[0].X ? (this._x += n3[0].X, this._y += n3[0].Y) : 2 === n3.length && "number" == typeof n3[0] && "number" == typeof n3[1] && (this._x += n3[0], this._y += n3[1]);
          }, t3;
        })(), n2.Rectangle = a, u = "ribbon-dropdowngroup-popup", s = (function(t3) {
          function n3(n4, e3, r2) {
            var a2 = t3.call(this, null) || this;
            return a2.sourceElement = n4, a2.target = e3, a2.defaultOption = { closeAfterResize: true, closeAfterClickOutside: true, direction: i2.DropDownDirection.Down, align: i2.DropDownAlignment.Near, horAdj: o.Flip | o.Slide, verAdj: o.Flip | o.Slide }, a2.globalMousedownEventHandler = function(t4) {
              var n5, e4;
              if (a2.rf) {
                for (e4 = n5 = t4.target; e4 && e4 !== a2.sourceElement; ) e4 = e4.parentElement;
                e4 || (a2.close(), t4.stopPropagation(), t4.preventDefault());
              }
            }, a2.windowResizeEventHandler = function() {
              a2.rf && a2.close();
            }, a2.MU = a2.defaultOption, a2.rf = false, r2 && a2.mergeOption(r2), a2.aV = null === a2.MU.hostElement || void 0 === a2.MU.hostElement || !(a2.MU.hostElement instanceof HTMLElement), a2;
          }
          return c(n3, t3), n3.prototype.open = function() {
            this.rf || (this.MU.Oue && this.target.setAttribute && this.target.setAttribute("aria-expanded", "true"), this.beforeOpen(), this.render(), this.clearPosition(), this.calcPosition(), this.rf = true, this.sourceElement.tabIndex = -1, this.sourceElement.style.cssText += "outline:none", this.sourceElement.focus());
          }, n3.prototype.beforeOpen = function() {
            this.bindEvent();
          }, n3.prototype.dispose = function() {
            var t4 = this;
            this.MU.closeAfterResize && document.removeEventListener("resize", this.windowResizeEventHandler), this.MU.closeAfterClickOutside && (document.removeEventListener("mousedown", this.globalMousedownEventHandler, true), "touchstart MSPointerDown pointerdown".split(" ").forEach((function(n4) {
              document.removeEventListener(n4, t4.globalMousedownEventHandler, true);
            }))), this.aV ? (this.sourceElement.classList.remove(u), this.sourceElement.style.display = this.uV, this.sourceElement.style.position = this._oldPosition) : this.sV && this.sV.parentNode && (this.MU.hostElement.removeChild(this.sV), this.sV = null);
          }, n3.prototype.close = function() {
            if (this.rf) {
              if (this.rf = false, this.MU.Oue) {
                var t4 = this.target;
                t4.setAttribute && (t4.setAttribute("aria-expanded", "false"), setTimeout((function() {
                  t4.focus();
                })));
              }
              this.dispose(), this.fire("close");
            }
          }, n3.prototype.mergeOption = function(t4) {
            for (var n4 in t4) void 0 !== t4[n4] && (this.MU[n4] = t4[n4]);
          }, n3.prototype.clearPosition = function() {
            this.cV.style.top = this.cV.style.bottom = this.cV.style.left = this.cV.style.right = "";
          }, n3.prototype.calcPosition = function() {
            var t4, n4, e3, i3, r2, o2, u2, s2, c2, f2, l, h, d, v, p, g = this.target instanceof a;
            i3 = g ? this.target : a.CreateFromDom(this.target.getBoundingClientRect()), o2 = (r2 = false === (null === (t4 = this.MU) || void 0 === t4 ? void 0 : t4.allowFloat) ? null === (e3 = null === (n4 = this.cV) || void 0 === n4 ? void 0 : n4.closest('[gcuielement="gcSpread"]')) || void 0 === e3 ? void 0 : e3.getBoundingClientRect() : null) ? new a(0, 0, Math.min(window.innerWidth, r2.right), Math.min(window.innerHeight, r2.bottom)) : new a(0, 0, window.innerWidth, window.innerHeight), u2 = this.calculateDropDownLocation(o2, i3, { width: this.sourceElement.offsetWidth, height: this.sourceElement.offsetHeight }, this.MU.direction, this.MU.align, this.MU.horAdj, this.MU.verAdj), c2 = (s2 = this.cV.offsetParent).getBoundingClientRect(), f2 = s2 === document.body, l = document.documentElement, h = (window.pageXOffset || l.scrollLeft) - (l.clientLeft || 0), d = (window.pageYOffset || l.scrollTop) - (l.clientTop || 0), v = u2.X - (f2 ? -h : c2.left - s2.scrollLeft), p = u2.Y - (f2 ? -d : c2.top - s2.scrollTop), g && (v < 0 && (v = 0), p < 0 && (p = 0)), this.cV.style.left = "".concat(v, "px"), this.cV.style.top = "".concat(p, "px");
          }, n3.prototype.calculateDropDownLocation = function(t4, n4, e3, r2, u2, s2, c2) {
            var f2, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x = { X: t4.x, Y: t4.y };
            switch (t4.Offset(-x.X, -x.Y), n4.Offset(-x.X, -x.Y), f2 = n4.left, l = n4.right, h = n4.top, d = n4.bottom, v = h, p = t4.height - d, g = f2, m = t4.width - l, b = (c2 & o.Flip) === o.Flip, y = (s2 & o.Flip) === o.Flip, w = (c2 & o.Slide) === o.Slide, M = (s2 & o.Slide) === o.Slide, r2) {
              case i2.DropDownDirection.Up:
                e3.height > v && b && (r2 = i2.DropDownDirection.Down);
                break;
              case i2.DropDownDirection.Down:
                e3.height > p && b && (r2 = i2.DropDownDirection.Up);
                break;
              case i2.DropDownDirection.Left:
                e3.width > g && y && (r2 = i2.DropDownDirection.Right);
                break;
              case i2.DropDownDirection.Right:
                e3.width > m && y && (r2 = i2.DropDownDirection.Left);
            }
            switch (C = 0, S = 0, r2) {
              case i2.DropDownDirection.Up:
                S = h - e3.height;
                break;
              case i2.DropDownDirection.Down:
                S = d;
                break;
              case i2.DropDownDirection.Left:
                C = f2 - e3.width;
                break;
              case i2.DropDownDirection.Right:
                C = l;
            }
            return r2 === i2.DropDownDirection.Up || r2 === i2.DropDownDirection.Down ? u2 === i2.DropDownAlignment.Near ? C = f2 : u2 === i2.DropDownAlignment.Center ? C = f2 - (e3.width - n4.width) / 2 : u2 === i2.DropDownAlignment.Far && (C = l - e3.width) : r2 !== i2.DropDownDirection.Right && r2 !== i2.DropDownDirection.Left || (u2 === i2.DropDownAlignment.Near ? S = h : u2 === i2.DropDownAlignment.Center ? S = h - (e3.height - n4.height) / 2 : u2 === i2.DropDownAlignment.Far && (S = d - e3.height)), T = new a(C, S, e3.width, e3.height), M && (T.width > t4.width ? T.x = 0 : (T.x = Math.max(T.x, 0), T.x = Math.min(T.x, t4.width - T.width))), w && (T.height > t4.height ? T.y = 0 : (T.y = Math.max(T.y, 0), T.y = Math.min(T.y, t4.height - T.height))), T.Offset(x), T.Location;
          }, n3.prototype.render = function() {
            var t4 = this;
            this.aV ? (this._oldPosition = this.sourceElement.style.position, this.sourceElement.style.position = "absolute", this.uV = this.sourceElement.style.display, this.sourceElement.style.display = "", this.sourceElement.style.zIndex = "10000", this.sourceElement.classList.add(u), this.cV = this.sourceElement) : (this.sV = document.createElement("div"), this.sV.style.cssText = "position:absolute; z-index:10000; box-shadow:rgba(0, 0, 0, 0.4) 2px 4px 5px; outline:none", this.sV.classList.add(u), this.sV.appendChild(this.sourceElement), this.MU.hostElement.appendChild(this.sV), this.cV = this.sV), this.MU.Oue && setTimeout((function() {
              if (t4.cV) {
                var n4 = t4.cV.querySelector("[role=menu],[role=listbox]");
                n4 && n4.focus();
              }
            }), 500);
          }, n3.prototype.bindEvent = function() {
            var t4 = this;
            this.MU.closeAfterClickOutside && (document.addEventListener("mousedown", this.globalMousedownEventHandler, true), "touchstart MSPointerDown pointerdown".split(" ").forEach((function(n4) {
              document.addEventListener(n4, t4.globalMousedownEventHandler, true);
            }))), this.MU.closeAfterResize && document.addEventListener("resize", this.windowResizeEventHandler);
          }, n3;
        })(r.BaseControl), n2.PopupControl = s;
      }, "./dist/plugins/celltype/editor/slider.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w = this && this.qKr || (M = function(t3, n3) {
          return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, M(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          M(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), M;
        function C(t3) {
          return document.createElement(t3);
        }
        function S(t3) {
          var n3 = t3.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/);
          return t3.toFixed(c(0, (n3[1] || "").length - parseInt(n3[2], 10)));
        }
        function T(t3) {
          var n3 = S(t3 || 0), e3 = 0;
          return n3.indexOf(".") >= 0 && (e3 = n3.length - n3.indexOf(".") - 1), e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Slider = void 0, i2 = e2("./dist/plugins/celltype/editor/baseControl.js"), r = e2("Common"), o = e2("Core"), a = r.Common.lt.ht, u = r.Common.zf.j0, s = null, c = Math.max, f = Math.min, l = Math.abs, h = (function() {
          function t3() {
          }
          return t3.isEmpty = function(t4) {
            return void 0 === t4 || t4 === s || "" === t4 || Array.isArray(t4) && 0 === t4.length;
          }, t3.isEmptyObject = function(t4) {
            var n3, e3 = true;
            for (n3 in t4) if (n3) {
              e3 = false;
              break;
            }
            return e3;
          }, t3.pauseEvent = function(t4) {
            t4.stopPropagation(), t4.preventDefault();
          }, t3.isObject = function(t4) {
            var n3 = typeof t4;
            return "function" === n3 || "object" === n3 && !!t4;
          }, t3.allKeys = function(n3) {
            var e3, i3 = [];
            if (!t3.isObject(n3)) return [];
            for (e3 in n3) n3.hasOwnProperty(e3) && i3.push(e3);
            return i3;
          }, t3.parseStyleObject = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2;
            if (!t3.isObject(n3)) return "";
            for (e3 = "", r2 = 0, o2 = (i3 = t3.allKeys(n3)).length; r2 < o2; r2++) u2 = n3[a2 = i3[r2]], s2 = a2.replace(/([A-Z])/g, "-$1"), e3 += "".concat(s2.toLowerCase(), ": ").concat(u2, "; ");
            return e3.trim();
          }, t3.extend = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            for (void 0 === i3 && (i3 = {}), r2 = t3.allKeys(n3), a2 = 0, u2 = (o2 = t3.allKeys(e3)).length; a2 < u2; a2++) i3[s2 = o2[a2]] = e3[s2];
            for (a2 = 0, u2 = r2.length; a2 < u2; a2++) void 0 === i3[s2 = r2[a2]] && (i3[s2] = n3[s2]);
            return i3;
          }, t3.noop = function() {
          }, t3.measureWidth = function(t4, n3) {
            var e3 = 0, i3 = C("span");
            i3.classList.add(n3);
            try {
              i3.innerText = t4, i3.style.display = "none", document.body.appendChild(i3), e3 = (0, o.GC$)(i3).width();
            } finally {
              document.body.removeChild(i3);
            }
            return e3;
          }, t3;
        })(), d = (function() {
          function t3(t4, n3) {
            this.Wc = n3, this.fV = {}, this.fV = h.extend(this.fV, t4);
          }
          return t3.prototype.render = function() {
            var t4, n3;
            if (!this.fV.included) return s;
            t4 = this.RV(), (n3 = this.Wc.querySelector(".".concat(this.fV.className))) === s && ((n3 = C("div")).classList.add("".concat(this.fV.className)), this.Wc.appendChild(n3)), n3.setAttribute("style", h.parseStyleObject(t4));
          }, t3.prototype.setLength = function(t4, n3) {
            this.fV.length = t4, a(n3) || (this.fV.offset = n3), this.render();
          }, t3.prototype.RV = function() {
            return this.fV.direction === o.LayoutDirection.vertical ? { bottom: "".concat(this.fV.offset, "%"), height: "".concat(this.fV.length, "%") } : { left: "".concat(this.fV.offset, "%"), width: "".concat(this.fV.length, "%") };
          }, t3;
        })(), v = (function() {
          function t3(t4, n3) {
            this.Wc = n3, this.lV = {}, this.lV = h.extend(this.lV, t4);
          }
          return t3.prototype.render = function() {
            var t4, n3, e3, i3, r2 = this.Wc.querySelector(".".concat(this.lV.className));
            if (r2 === s) {
              for ((r2 = C("div")).className = "".concat(this.lV.className), n3 = 0, e3 = (t4 = this.BV()).length; n3 < e3; n3++) i3 = this.LV(t4[n3]), r2.appendChild(i3);
              this.Wc.appendChild(r2);
            }
          }, t3.prototype.LV = function(t4) {
            var n3 = C("span"), e3 = this.lV.max - this.lV.min, i3 = l(t4 - this.lV.min) / e3 * 100 + "%", r2 = this.lV.direction === o.LayoutDirection.vertical ? { bottom: i3 } : { left: i3 };
            return n3.classList.add("".concat(this.lV.prefixCls, "-dot")), n3.setAttribute("style", h.parseStyleObject(r2)), n3.setAttribute("key", t4.toString()), n3;
          }, t3.prototype.BV = function() {
            var t4, n3, e3 = Object.keys(this.lV.marks).map((function(t5) {
              return Number(t5);
            }));
            if (e3.sort((function(t5, n4) {
              return t5 - n4;
            })), t4 = e3, this.lV.dots) for (n3 = this.lV.min; n3 <= this.lV.max; n3 += this.lV.step) -1 === t4.indexOf(n3) && t4.push(n3);
            return t4;
          }, t3;
        })(), p = (function() {
          function t3(t4, n3) {
            this.Wc = t4, this.hV = {}, this.dV = "", this.hV = h.extend(this.hV, n3), this.dV = '\n        <div class="'.concat(this.hV.prefixCls, "-tooltip ").concat(this.hV.prefixCls, '-tooltip-placement-top">\n            <div class="').concat(this.hV.prefixCls, '-tooltip-content">\n                <div class="').concat(this.hV.prefixCls, '-tooltip-arrow"></div>\n                <div class="').concat(this.hV.prefixCls, '-tooltip-inner">{{value}}</div>\n            </div>\n        </div>\n        ');
          }
          return t3.prototype.render = function(t4, n3) {
            var e3, i3, o2, a2, s2, c2;
            this.hV.offset = t4, e3 = this.Wc.querySelector(".".concat(this.hV.prefixCls, "-tooltip")), i3 = new r.Formatter.GeneralFormatter(this.hV.formatString).format(n3), h.isEmpty(e3) && (o2 = u(i3), this.dV = this.dV.replace(/{{value}}/, o2), (a2 = C("div")).innerHTML = this.dV, this.Wc.appendChild(a2.firstElementChild), e3 = this.Wc.querySelector(".".concat(this.hV.prefixCls, "-tooltip"))), (s2 = e3.querySelector(".".concat(this.hV.prefixCls, "-tooltip-inner"))).textContent = i3, c2 = this.GV(i3), e3.setAttribute("style", h.parseStyleObject(c2)), this.hV.tooltipVisible ? this.show() : this.hide();
          }, t3.prototype.show = function() {
            var t4 = this.Wc.querySelector(".".concat(this.hV.prefixCls, "-tooltip"));
            h.isEmpty(t4) || (t4.style.display = "inline-block");
          }, t3.prototype.hide = function() {
            var t4 = this.Wc.querySelector(".".concat(this.hV.prefixCls, "-tooltip"));
            h.isEmpty(t4) || (t4.style.display = "none");
          }, t3.prototype.GV = function(t4) {
            var n3 = h.measureWidth(t4, "".concat(this.hV.prefixCls, "-tooltip"));
            return n3 = 0 === n3 ? 12 : n3 / 2 + 4, this.hV.direction === o.LayoutDirection.vertical ? { left: "-".concat(n3, "px"), bottom: "calc(".concat(this.hV.offset, "% + 10px)") } : { top: "-28px", left: "calc(".concat(this.hV.offset, "% - ").concat(n3 + 4, "px)") };
          }, t3;
        })(), g = (function() {
          function t3(t4, n3) {
            this.Wc = n3, this.vV = {}, this.mV = false, this.gV = s, this.isSelected = false, this.Ame = s, this.vV = h.extend(this.vV, t4), this.gV = new p(this.Wc, this.pV());
          }
          return t3.prototype.render = function() {
            var t4, n3 = this.UV(), e3 = this.GV(), i3 = this.vV.tabIndex || 0;
            (this.vV.disabled || i3 === s) && (i3 = s), (t4 = this.Wc.querySelector(".".concat(this.vV.className))) === s && ((t4 = C("div")).className = n3, this.Wc.appendChild(t4), t4.setAttribute("role", "slider"), t4.setAttribute("aria-valuemin", this.vV.min.toString()), t4.setAttribute("aria-valuemax", this.vV.max.toString()), t4.setAttribute("aria-valuenow", this.vV.value.toString()), t4.setAttribute("aria-disabled", String(this.vV.disabled)), t4.addEventListener("blur", this.xme.bind(this)), t4.addEventListener("mouseenter", this.Nme.bind(this)), t4.addEventListener("keydown", this.xme.bind(this)), t4.addEventListener("mousedown", this._me.bind(this)), t4.addEventListener("touchstart", this._me.bind(this)), document.addEventListener("touchend", this.Dme.bind(this)), document.addEventListener("mouseup", this.Dme.bind(this))), t4.tabIndex = i3, t4.setAttribute("style", h.parseStyleObject(e3)), this.Ame = t4;
          }, t3.prototype._me = function(t4) {
            this.Ame.focus(), this.isSelected = true, this.gV.show();
          }, t3.prototype.Dme = function(t4) {
            var n3 = this.Ame;
            document.activeElement === n3 && (this.HV(false), n3.blur(), this.isSelected = false);
          }, t3.prototype.xme = function() {
            this.HV(false);
          }, t3.prototype.Nme = function() {
            this.gV.show();
          }, t3.prototype.isSelectedByMouse = function(t4) {
            return a(t4) || (this.isSelected = t4), this.isSelected;
          }, t3.prototype.setOffset = function(t4, n3) {
            this.vV.offset = t4, this.render(), this.gV.render(t4, n3);
          }, t3.prototype.HV = function(t4) {
            this.mV = t4;
          }, t3.prototype.UV = function() {
            return this.mV ? "".concat(this.vV.className, " ").concat(this.vV.prefixCls, "-handle-click-focused") : "".concat(this.vV.className);
          }, t3.prototype.GV = function() {
            return this.vV.direction === o.LayoutDirection.vertical ? { bottom: "".concat(this.vV.offset, "%") } : { left: "".concat(this.vV.offset, "%") };
          }, t3.prototype.pV = function() {
            return { prefixCls: "gc-slider", tooltipVisible: this.vV.tooltipVisible, direction: this.vV.direction, offset: this.vV.offset, formatString: this.vV.formatString };
          }, t3.prototype.dispose = function() {
            this.Ame && (this.Ame.removeEventListener("blur", this.xme.bind(this)), this.Ame.removeEventListener("mouseenter", this.Nme.bind(this)), this.Ame.removeEventListener("keydown", this.xme.bind(this)), this.Ame.removeEventListener("mousedown", this._me.bind(this)), this.Ame.removeEventListener("touchstart", this._me.bind(this))), this.Ame = s, document.removeEventListener("touchend", this.Dme.bind(this)), document.removeEventListener("mouseup", this.Dme.bind(this));
          }, t3;
        })(), m = (function() {
          function t3(t4, n3) {
            this.Wc = n3, this.bV = {}, this.bV = h.extend(this.bV, t4);
          }
          return t3.prototype.render = function() {
            var t4, n3, e3, i3, r2, o2 = this.Wc.querySelector(".".concat(this.bV.className));
            if (o2 === s) {
              for ((o2 = C("div")).className = "".concat(this.bV.className), t4 = this.zV(), this.VV(t4), n3 = 0, e3 = t4.length; n3 < e3; n3++) i3 = t4[n3], (r2 = this.YV(i3)) !== s && o2.appendChild(r2);
              this.Wc.appendChild(o2);
            }
          }, t3.prototype.VV = function(t4) {
            var n3, e3, i3, r2;
            for (this.ZV = 0, n3 = 1, e3 = t4.length; n3 < e3; n3++) (i3 = this.bV.marks[t4[0]]) && (r2 = h.measureWidth(i3.label, "".concat(this.bV.className, "-text")), (!this.ZV || this.ZV < r2) && (this.ZV = r2));
          }, Object.defineProperty(t3.prototype, "maxWidth", { get: function() {
            return this.ZV;
          }, enumerable: false, configurable: true }), t3.prototype.zV = function() {
            var t4;
            return h.allKeys(this.bV.marks).sort((function(t5, n3) {
              return t5 - n3;
            }));
          }, t3.prototype.YV = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = this.bV.marks[t4], c2 = h.isObject(a2) ? a2.label : a2;
            return h.isEmptyObject(c2) ? s : (n3 = "".concat(this.bV.className, "-text"), e3 = this.WV(t4), i3 = h.extend(e3, a2.style), (r2 = C("span")).classList.add(n3), r2.setAttribute("style", h.parseStyleObject(i3)), r2.setAttribute("key", t4.toString()), r2.addEventListener("mousedown", (function(n4) {
              o2.bV.onClickLabel(n4, t4);
            })), r2.innerHTML = u(c2), r2);
          }, t3.prototype.WV = function(t4) {
            var n3 = this.bV.max - this.bV.min;
            return this.bV.direction === o.LayoutDirection.vertical ? { "margin-bottom": "-50%", bottom: (t4 - this.bV.min) / n3 * 100 + "%" } : { left: (t4 - this.bV.min) / n3 * 100 + "%", transform: "translateX(-50%)" };
          }, t3;
        })(), b = (function() {
          function t3(t4, n3, e3, i3, r2) {
            this.Wc = t4, this.yV = n3, this.wV = e3, this.endHandle = i3, this.MU = r2, this.MV = s, this.CV = s, this.MV = new v(this.SV(), this.Wc), this.CV = new m(this.TV(), this.Wc);
          }
          return t3.prototype.render = function() {
            var t4 = C("div");
            t4.className = "".concat(this.MU.prefixCls, "-rail"), this.Wc.appendChild(t4), this.yV.render(), this.MV.render(), this.wV.render(), this.endHandle && this.endHandle.render(), this.CV.render(), this.CV.maxWidth && this.MU.direction === o.LayoutDirection.vertical && (this.Wc.style.paddingRight = this.CV.maxWidth + "px");
          }, t3.prototype.calcValueByPosition = function(t4, n3) {
            var e3 = t4 - this.QV(), i3 = this.KV(e3);
            return n3 ? i3 : this.trimAlignValue(i3);
          }, t3.prototype.trimAlignValue = function(t4) {
            return h.isEmpty(t4) ? s : this.JV(t4);
          }, t3.prototype.calcOffset = function() {
            var t4;
            return 100 * (c(this.MU.value - this.MU.min, 0) / (this.MU.max - this.MU.min));
          }, t3.prototype.getKeyboardValueMutator = function(t4) {
            var n3 = this;
            switch (t4.keyCode) {
              case 38:
              case 39:
                return function(t5) {
                  return n3.calculateNextValue("increase", t5);
                };
              case 40:
              case 37:
                return function(t5) {
                  return n3.calculateNextValue("decrease", t5);
                };
              case 35:
                return function(t5) {
                  return n3.MU.max;
                };
              case 36:
                return function(t5) {
                  return n3.MU.min;
                };
            }
          }, t3.prototype.calculateNextValue = function(t4, n3) {
            var e3 = { increase: function t5(n4, e4) {
              return n4 + e4;
            }, decrease: function t5(n4, e4) {
              return n4 - e4;
            } }, i3 = Object.keys(this.MU.marks).indexOf(String(n3)), r2 = e3[t4](i3, 1), o2 = Object.keys(this.MU.marks)[r2];
            return this.MU.step ? e3[t4](n3, this.MU.step) : !h.isEmptyObject(this.MU.marks) && this.MU.marks[o2] ? this.MU.marks[o2] : n3;
          }, t3.prototype.JV = function(t4) {
            var n3 = isFinite(this.XV(t4)) ? this.XV(t4) : 0;
            return this.MU.step === s ? n3 : parseFloat(n3.toFixed(this.qV()));
          }, t3.prototype.qV = function() {
            var t4, n3;
            if (a(this.MU.precision)) {
              for (n3 in t4 = c(T(this.MU.max), T(this.MU.min), T(this.MU.step)), this.MU.marks) t4 = c(T(parseFloat(n3)), t4);
              this.MU.precision = t4;
            }
            return this.MU.precision;
          }, t3.prototype.XV = function(t4) {
            var n3, e3, i3, r2, o2 = Object.keys(this.MU.marks).map(parseFloat);
            return this.MU.step !== s && (n3 = Math.ceil((this.MU.max - this.MU.min) / this.MU.step), e3 = f((t4 - this.MU.min) / this.MU.step, n3), i3 = Math.round(e3) * this.MU.step + this.MU.min, o2.push(f(i3, this.MU.max))), r2 = o2.map((function(n4) {
              return l(t4 - n4);
            })), o2[r2.indexOf(f.apply(void 0, r2))];
          }, t3.prototype.SV = function() {
            return { prefixCls: this.MU.prefixCls, className: "".concat(this.MU.prefixCls, "-step"), direction: this.MU.direction, marks: this.MU.marks, dots: this.MU.dots, step: this.MU.step, included: this.MU.included, max: this.MU.max, min: this.MU.min };
          }, t3.prototype.TV = function() {
            var t4 = this;
            return { className: "".concat(this.MU.prefixCls, "-mark"), onClickLabel: this.MU.disabled ? h.noop : function(n3, e3) {
              t4.$V(n3, e3);
            }, direction: this.MU.direction, marks: this.MU.marks, included: this.MU.included, max: this.MU.max, min: this.MU.min };
          }, t3.prototype.$V = function(t4, n3) {
          }, t3.prototype.QV = function() {
            var t4 = this.Wc.getBoundingClientRect();
            return this.MU.direction === o.LayoutDirection.vertical ? t4.top : t4.left;
          }, t3.prototype.tY = function() {
            var t4 = this.Wc.getBoundingClientRect();
            return this.MU.direction === o.LayoutDirection.vertical ? t4.height : t4.width;
          }, t3.prototype.KV = function(t4) {
            var n3 = this.MU.min, e3 = this.MU.max, i3 = l(c(t4, 0) / this.tY());
            return this.MU.direction === o.LayoutDirection.vertical && (i3 = c(1 - i3, 0)), i3 * (e3 - n3) + n3;
          }, t3;
        })(), y = (function(t3) {
          function n3(n4, e3) {
            var r2 = t3.call(this, n4) || this;
            return r2.yV = s, r2.wV = s, r2.phe = s, r2.bhe = s, r2.AV = s, r2.Ime = function(t4) {
              var n5, e4, o2;
              if (h.pauseEvent(t4), n5 = r2.AV.getKeyboardValueMutator(t4), !h.isEmpty(n5)) {
                if (e4 = n5(r2._V.value), (o2 = r2.AV.trimAlignValue(e4)) === r2._V.value) return;
                r2.setValue(o2), r2._V.onChange(o2), r2._V.onAfterChange(o2), r2.fire(i2.BaseDropdown.Event_ValueChanged, { value: o2, text: o2.toString(), notCloseDropDown: true });
              }
            }, r2.IV = function(t4) {
              0 === t4.button && (document.addEventListener("mouseup", r2.xV, false), document.addEventListener("pointerup", r2.xV, false), document.addEventListener("MSPointerUp", r2.xV, false), document.addEventListener("mousemove", r2.NV, false), document.addEventListener("pointermove", r2.NV, false), document.addEventListener("MSPointerMove", r2.NV, false), r2.NV(t4));
            }, r2.NV = function(t4) {
              var n5 = r2.kV(t4, true), e4 = r2.AV.trimAlignValue(n5);
              r2._V.showNumberRange ? r2.Sme(e4, n5) : r2._startValue !== e4 && (r2.setValue(e4), r2._V.onChange(e4));
            }, r2.xV = function(t4) {
              var n5, e4;
              r2.NV(t4), document.removeEventListener("mousemove", r2.NV), document.removeEventListener("mouseup", r2.xV), document.removeEventListener("pointermove", r2.NV), document.removeEventListener("pointerup", r2.xV), document.removeEventListener("MSPointerMove", r2.NV), document.removeEventListener("MSPointerUp", r2.xV), n5 = r2.kV(t4, true), e4 = r2.AV.trimAlignValue(n5), r2._V.showNumberRange ? (r2.Sme(e4, n5), r2._V.onAfterChange(r2._V.numberRange), r2.fire(i2.BaseDropdown.Event_ValueChanged, { value: r2._V.numberRange, text: r2._V.numberRange, notCloseDropDown: true })) : (r2._startValue = e4, r2._V.onAfterChange(r2._V.value), r2.fire(i2.BaseDropdown.Event_ValueChanged, { value: e4, text: e4.toString(), notCloseDropDown: true })), h.pauseEvent(t4);
            }, r2.EV = function(t4) {
              var n5 = t4.target || t4.srcElement;
              document.addEventListener("touchend", r2.jV, false), n5.classList.contains("".concat(r2._V.prefixCls, "-handle")) ? document.addEventListener("touchmove", r2.OV, false) : r2.OV(t4);
            }, r2.OV = function(t4) {
              var n5 = t4.targetTouches[0], e4 = r2.kV(n5, true), i3 = r2.AV.trimAlignValue(e4);
              r2._V.showNumberRange ? r2.Sme(i3, e4) : r2._startValue !== i3 && (r2.setValue(i3), r2._V.onChange(i3));
            }, r2.jV = function(t4) {
              var n5, e4, o2;
              document.removeEventListener("touchmove", r2.OV), document.removeEventListener("touchend", r2.jV), n5 = t4.changedTouches[0], e4 = r2.kV(n5, true), o2 = r2.AV.trimAlignValue(e4), r2._V.showNumberRange ? (r2.Sme(o2, e4), r2._V.onAfterChange(r2._V.numberRange), r2.fire(i2.BaseDropdown.Event_ValueChanged, { value: r2._V.numberRange, text: r2._V.numberRange, notCloseDropDown: true })) : (r2._startValue = o2, r2._V.onAfterChange(r2._V.value), r2.fire(i2.BaseDropdown.Event_ValueChanged, { value: o2, text: o2.toString(), notCloseDropDown: true })), h.pauseEvent(t4);
            }, r2.init(e3), r2;
          }
          return w(n3, t3), n3.prototype.setValue = function(t4) {
            var n4, e3, i3;
            this._V.disabled || (this._V.showNumberRange ? (a(this.yhe) && (this.yhe = {}), n4 = t4.start, e3 = t4.end, n4 = parseFloat(n4), isNaN(n4) ? n4 = this._V.min : (n4 = c(this._V.min, n4), n4 = f(this._V.max, n4)), this._V.numberRange.start = n4, this.yhe.start = n4, this.phe.setOffset(this.calcOffset(n4), n4), e3 = parseFloat(e3), isNaN(e3) ? e3 = this._V.max : (e3 = c(this._V.min, e3), e3 = f(this._V.max, e3)), e3 = c(n4, e3), this._V.numberRange.end = e3, this.yhe.end = e3, this.yV.setLength(this.calcRangeOffset(), this.calcOffset(n4)), this.bhe.setOffset(this.calcOffset(e3), e3)) : (i3 = parseFloat(t4), isNaN(i3) ? i3 = this._V.min : (i3 = c(this._V.min, i3), i3 = f(this._V.max, i3)), this._V.value = i3, this._startValue = this._V.value, this.yV.setLength(this.calcOffset()), this.wV.setOffset(this.calcOffset(), i3)));
          }, n3.prototype.calcOffset = function(t4) {
            var n4 = a(t4) ? this._V.value : t4, e3 = c(n4 - this._V.min, 0) / (this._V.max - this._V.min);
            return 100 * (e3 = f(e3, 1));
          }, n3.prototype.calcRangeOffset = function() {
            var t4 = this._V.numberRange.end - this._V.numberRange.start, n4 = c(t4, 0) / (this._V.max - this._V.min);
            return 100 * (n4 = f(n4, 1));
          }, n3.prototype.setOptions = function(t4) {
            this.init(t4);
          }, n3.prototype.init = function(t4) {
            var n4, e3, i3, r2, a2;
            this.nY(t4), this.eY(), this.Ti.innerHTML = "", (n4 = C("div")).className = "gc-slider-container", this.Ti.appendChild(n4), this._V.direction === o.LayoutDirection.vertical ? (n4.classList.add("".concat(this._V.prefixCls, "-vertical")), n4.style.height = this._V.height + "px") : n4.style.width = this._V.width + "px", (e3 = C("div")).className = this.UV(), n4.appendChild(e3), this.yV = new d(this.iY(), e3), this._V.showNumberRange ? ((i3 = this.rY()).value = this._V.numberRange.start, r2 = C("div"), e3.appendChild(r2), this.phe = new g(i3, r2), i3.tabIndex++, i3.value = this._V.numberRange.end, a2 = C("div"), e3.appendChild(a2), this.bhe = new g(i3, a2), this.AV = new b(e3, this.yV, this.phe, this.bhe, this.oY())) : (this.wV = new g(this.rY(), e3), this.AV = new b(e3, this.yV, this.wV, s, this.oY())), this.AV.render(), this.aY(e3);
          }, n3.prototype.aY = function(t4) {
            this._V.disabled || (t4.addEventListener("mousedown", this.IV), t4.addEventListener("pointerdown", this.IV), t4.addEventListener("MSPointerDown", this.IV), t4.addEventListener("touchstart", this.EV), t4.addEventListener("keyup", this.Ime));
          }, n3.prototype.Sme = function(t4, n4) {
            var e3, i3, r2 = this._V.numberRange, o2 = r2.start, a2 = r2.end, u2 = l(n4 - o2), s2 = l(a2 - n4), c2 = this.phe, f2 = this.bhe;
            o2 === a2 ? (t4 > a2 ? (this.setValue({ start: o2, end: t4 }), this._V.onChange({ start: o2, end: t4 })) : t4 < o2 && (this.setValue({ start: t4, end: a2 }), this._V.onChange({ start: t4, end: a2 })), c2.isSelectedByMouse(false), f2.isSelectedByMouse(false)) : (e3 = this.bhe.isSelectedByMouse(), i3 = this.phe.isSelectedByMouse(), (e3 && u2 < s2 || u2 > s2 && !i3) && a2 !== t4 && (this.setValue({ start: o2, end: t4 }), this._V.onChange({ start: o2, end: t4 })), (i3 && u2 > s2 || u2 < s2 && !e3) && o2 !== t4 && (this.setValue({ start: t4, end: a2 }), this._V.onChange({ start: t4, end: a2 })));
          }, n3.prototype.kV = function(t4, n4) {
            var e3 = 0;
            return e3 = this._V.direction === o.LayoutDirection.vertical ? this.AV.calcValueByPosition(t4.clientY, n4) : this.AV.calcValueByPosition(t4.clientX, n4);
          }, n3.prototype.uY = function() {
            var t4 = function(t5) {
            };
            return { prefixCls: "gc-slider", dots: false, range: false, disabled: false, max: 100, min: 0, step: 1, value: 0, direction: o.LayoutDirection.horizontal, included: true, width: 350, height: 350, marks: {}, tooltipVisible: false, onChange: t4, onAfterChange: t4, formatString: "General", showNumberRange: false, numberRange: { start: 0, end: 100 } };
          }, n3.prototype.eY = function() {
            (h.isEmpty(this._V) || h.isEmptyObject(this._V)) && (this._V = {}), this._V = h.extend(this.uY(), this._V);
          }, n3.prototype.nY = function(t4) {
            var n4 = this;
            t4 && (a(t4.scaleVisible) || (this._V.dots = t4.scaleVisible), a(t4.direction) || (this._V.direction = t4.direction), a(t4.formatString) || (this._V.formatString = t4.formatString), this.sY(t4.min, "min"), this.sY(t4.max, "max"), this.sY(t4.step, "step"), this.sY(t4.width, "width"), this.sY(t4.height, "height"), this._V.step <= 0 && (this._V.step = 1), this._V.min > this._V.max && (this._V.max = this._V.min), a(t4.tooltipVisible) || (this._V.tooltipVisible = t4.tooltipVisible), a(t4.showNumberRange) || (this._V.showNumberRange = !!t4.showNumberRange), this._V.marks = {}, t4.marks && t4.marks.forEach((function(t5) {
              var e3, i3 = parseFloat(t5);
              isNaN(i3) || i3 >= n4._V.min && i3 <= n4._V.max && (e3 = new r.Formatter.GeneralFormatter(n4._V.formatString), n4._V.marks[i3] = { label: e3.format(i3) });
            })));
          }, n3.prototype.sY = function(t4, n4) {
            if (!a(t4)) {
              var e3 = parseFloat(t4);
              isNaN(e3) || (this._V[n4] = e3);
            }
          }, n3.prototype.iY = function() {
            return { className: "".concat(this._V.prefixCls, "-track"), included: this._V.included, direction: this._V.direction, offset: 0, length: 0 };
          }, n3.prototype.rY = function() {
            return { prefixCls: this._V.prefixCls, className: "".concat(this._V.prefixCls, "-handle"), direction: this._V.direction, disabled: this._V.disabled, min: this._V.min, max: this._V.max, value: this._V.value, offset: 0, tabIndex: 0, tooltipVisible: this._V.tooltipVisible, formatString: this._V.formatString, showNumberRange: this._V.showNumberRange, numberRange: this._V.numberRange };
          }, n3.prototype.oY = function() {
            return { prefixCls: this._V.prefixCls, min: this._V.min, max: this._V.max, value: this._V.value, disabled: this._V.disabled, direction: this._V.direction, dots: this._V.dots, step: this._V.step, included: this._V.included, marks: this._V.marks, showNumberRange: this._V.showNumberRange };
          }, n3.prototype.UV = function() {
            var t4 = "".concat(this._V.prefixCls);
            return this._V.direction === o.LayoutDirection.vertical && (t4 += "  ".concat(this._V.prefixCls, "-vertical")), h.isEmptyObject(this._V.marks) || (t4 += " ".concat(this._V.prefixCls, "-with-marks")), this._V.disabled && (t4 += " ".concat(this._V.prefixCls, "-disabled")), t4;
          }, n3.prototype.dispose = function() {
            var n4 = this.yV.Wc;
            n4 && (n4.removeEventListener("mousedown", this.IV), n4.removeEventListener("pointerdown", this.IV), n4.removeEventListener("MSPointerDown", this.IV), n4.removeEventListener("touchstart", this.EV), n4.removeEventListener("keyup", this.Ime)), this.yV.Wc = s, this.wV && this.wV.dispose(), this.wV = s, this.phe && this.phe.dispose(), this.phe = s, this.bhe && this.bhe.dispose(), this.bhe = s, t3.prototype.dispose.call(this);
          }, n3;
        })(i2.BaseDropdown), n2.Slider = y;
      }, "./dist/plugins/celltype/editor/timepicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c = this && this.qKr || (f = function(t3, n3) {
          return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, f(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          f(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), f;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TimePicker = void 0, i2 = e2("./dist/plugins/celltype/editor/listControl.js"), r = e2("./dist/plugins/celltype/editor/baseControl.js"), o = "undefined", a = e2("Common"), u = a.Common.lt.ht, s = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.Hc(), i3.setOptions(e3), i3;
          }
          return c(n3, t3), n3.prototype.setOptions = function(t4) {
            var n4, e3, i3, r2;
            t4 ? (null !== (n4 = this.cY(t4.min)) && (this.MU.min = n4), null !== (e3 = this.cY(t4.max)) && (this.MU.max = e3), null !== (i3 = this.cY(t4.step)) && (this.MU.step = i3), u(t4.formatString) || (this.MU.formatString = t4.formatString), u(t4.height) || (r2 = parseInt(t4.height, 10), isNaN(r2) || (this.MU.height = r2)), this.MU.height = Math.max(1, this.MU.height), this._6()) : this._6();
          }, n3.prototype.setValue = function(t4) {
            u(t4) || (this.Bz = { hour: t4.getHours(), minute: t4.getMinutes(), second: t4.getSeconds() }, this.fY = t4, this.yz(), this.scrollToSelect());
          }, n3.prototype.scrollToSelect = function() {
            var t4, n4 = this.gz.querySelector(".selected");
            null !== n4 && (t4 = n4.offsetTop, this.Wc.scrollTop = t4);
          }, n3.prototype.Hc = function() {
            var t4 = this;
            this.MU = { min: {}, max: { hour: 23, minute: 59, second: 59 }, step: { hour: 1 }, formatString: "hh:mm", height: 200 }, this.gz = document.createElement("div"), this.gz.classList.add("gc-time-picker-outer-div"), this.gz.addEventListener("click", (function(n4) {
              t4.pz(n4);
            })), this.Ti.appendChild(this.gz);
          }, n3.prototype.cY = function(t4) {
            var n4, e3, i3, r2 = null;
            return u(t4) || (r2 = {}, u(t4.hour) || (n4 = parseInt(t4.hour, 10), isNaN(n4) || (r2.hour = n4)), u(t4.minute) || (e3 = parseInt(t4.minute, 10), isNaN(e3) || (r2.minute = e3)), u(t4.second) || (i3 = parseInt(t4.second, 10), isNaN(i3) || (r2.second = i3))), r2;
          }, n3.prototype._6 = function() {
            this.gz.innerHTML = "", new i2.List(this.gz, this.lY()), this.yz();
          }, n3.prototype.yz = function() {
            var t4, n4, e3, i3, r2 = this.gz.querySelectorAll(".gc-time-picker-li");
            if (r2.length > 0) for (t4 = 0; t4 < r2.length; t4++) r2[t4].classList.remove("selected"), n4 = +r2[t4].getAttribute("hour"), e3 = +r2[t4].getAttribute("minute"), i3 = +r2[t4].getAttribute("second"), this.hY(this.Bz, { hour: n4, minute: e3, second: i3 }) && r2[t4].classList.add("selected");
          }, n3.prototype.lY = function() {
            var t4 = this;
            return { items: function() {
              var n4, e3, i3 = t4.dY(), r2 = document.createElement("div");
              for (r2.classList.add("gc-time-picker-container"), t4.Wc = r2, t4.MU.height < 0 ? r2.style.height = "auto" : r2.style.maxHeight = t4.MU.height + "px", (n4 = document.createElement("ul")).classList.add("gc-time-picker-ul"), e3 = 0; e3 < i3.length; e3++) n4.appendChild(t4.vY(i3[e3]));
              return 24 * i3.length > t4.MU.height && t4.MU.height >= 0 ? r2.style.overflowY = "scroll" : r2.style.overflowY = "hidden", r2.appendChild(n4), r2;
            } };
          }, n3.prototype.vY = function(t4) {
            var n4 = document.createElement("li");
            return n4.classList.add("gc-time-picker-li"), n4.setAttribute("hour", t4.hour.toString()), n4.setAttribute("minute", t4.minute.toString()), n4.setAttribute("second", t4.second.toString()), n4.innerText = this.mY(t4), n4;
          }, n3.prototype.dY = function() {
            for (var t4 = this.gY(this.MU.min), n4 = this.gY(this.MU.max), e3 = []; t4 <= n4; ) e3.push({ hour: t4.getHours(), minute: t4.getMinutes(), second: t4.getSeconds() }), t4 = this.pY(t4, this.MU.step);
            return e3;
          }, n3.prototype.pY = function(t4, n4) {
            return typeof n4.hour !== o && t4.setHours(t4.getHours() + n4.hour), typeof n4.minute !== o && t4.setMinutes(t4.getMinutes() + n4.minute), typeof n4.second !== o && t4.setSeconds(t4.getSeconds() + n4.second), t4;
          }, n3.prototype.mY = function(t4) {
            var n4, e3, i3 = /* @__PURE__ */ new Date();
            return i3.setHours(t4.hour), i3.setMinutes(t4.minute), i3.setSeconds(t4.second), (e3 = (n4 = new a.Formatter.GeneralFormatter(this.MU.formatString)).format(i3)) && "" !== e3 && null !== e3 ? e3 : this.bY(i3);
          }, n3.prototype.bY = function(t4) {
            var n4 = t4.getHours(), e3 = t4.getMinutes(), i3 = n4 < 12 ? "AM" : "PM", r2 = 0 === n4 || 12 === n4 ? "12" : (n4 % 12).toString(), o2 = e3 < 10 ? "0" + e3.toString() : e3.toString();
            return i3 + " " + r2 + ":" + o2;
          }, n3.prototype.gY = function(t4) {
            var n4 = /* @__PURE__ */ new Date();
            return n4.setHours(t4.hour || 0), n4.setMinutes(t4.minute || 0), n4.setSeconds(t4.second || 0), n4;
          }, n3.prototype.hY = function(t4, n4) {
            return !(!t4 || !n4) && (t4 = this.yY(t4), n4 = this.yY(n4), t4.hour === n4.hour && t4.minute === n4.minute && t4.second === n4.second);
          }, n3.prototype.yY = function(t4) {
            return { hour: t4.hour || 0, minute: t4.minute || 0, second: t4.second || 0 };
          }, n3.prototype.pz = function(t4) {
            var n4, e3, i3, o2, u2, s2, c2 = t4.target;
            c2 && (n4 = +c2.getAttribute("hour"), e3 = +c2.getAttribute("minute"), i3 = +c2.getAttribute("second"), (o2 = this.fY || /* @__PURE__ */ new Date()).setHours(n4), o2.setMinutes(e3), o2.setSeconds(i3), o2.setMilliseconds(0), u2 = new a.Common.CultureInfo().DateTimeFormat, s2 = new a.Formatter.GeneralFormatter(u2.defaultDatePattern).format(o2), this.fire(r.BaseDropdown.Event_ValueChanged, { value: o2, text: s2 }), this.Bz = { hour: n4, minute: e3, second: i3 }, this.yz());
          }, n3;
        })(r.BaseDropdown), n2.TimePicker = s;
      }, "./dist/plugins/celltype/editor/workflowPicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s = this && this.qKr || (c = function(t3, n3) {
          return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, c(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          c(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), c;
        function f(t3, n3) {
          var e3, i3, r2, o2 = { items: [] }, u2 = t3.items, s2 = u2.filter((function(t4) {
            return t4.value === n3;
          }))[0];
          if (a(s2) && u2 && u2.length > 0) (e3 = o2.items).push({ text: u2[0].value, value: u2[0].value });
          else if (s2 && s2.transitions && s2.transitions.length > 0) for (i3 = function(t4) {
            var n4, e4, i4 = s2.transitions[t4];
            "number" == typeof i4 && u2[i4] && (i4 = u2[i4].value), (n4 = u2.filter((function(t5) {
              return t5.value === i4;
            }))[0]) && (e4 = o2.items).push({ text: n4.value, value: n4.value });
          }, r2 = 0; r2 < s2.transitions.length; r2++) i3(r2);
          return o2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.WorkFlow = void 0, i2 = e2("./dist/plugins/celltype/editor/baseControl.js"), r = e2("./dist/plugins/celltype/editor/listControl.js"), o = e2("Common"), a = o.Common.lt.ht, u = (function(t3) {
          function n3(n4, e3) {
            var o2 = t3.call(this, n4) || this;
            return o2.wY = new r.List(n4), o2.wY.on(i2.BaseDropdown.Event_ValueChanged, (function(t4) {
              o2.fire(i2.BaseDropdown.Event_ValueChanged, t4);
            })), o2.setOptions(e3), o2;
          }
          return s(n3, t3), n3.prototype.setOptions = function(t4) {
            this.MU = t4;
          }, n3.prototype.setValue = function(t4) {
            if (this.MU) {
              var n4 = f(this.MU, t4);
              this.wY.setOptions(n4);
            }
          }, n3.prototype.updateStyle = function(t4, n4, e3) {
            this.wY.updateStyle(t4, n4, e3);
          }, n3;
        })(i2.BaseDropdown), n2.WorkFlow = u;
      }, "./dist/plugins/celltype/fileUploadCellType/action.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.UPLOAD_FILE = void 0, i2 = e2("Core"), r = e2("./dist/plugins/celltype/actionUtils.js"), o = e2("./dist/plugins/celltype/fileUploadCellType/utils.js"), a = (function() {
          function t3(t4, n3) {
            this.X5 = r.beforeAction, this.q5 = r.afterAction;
            var e3 = this;
            e3.Mf = t4, e3.tT = n3;
          }
          return t3.prototype.execute = function() {
            var t4, n3, e3, a2, u, s, c, f, l, h = this, d = h.Mf, v = h.tT, p = d.parent.i4(), g = true;
            i2.Commands.II(p), h.X5(d, true), (0, r.suspendCalcService)(d);
            try {
              t4 = v.row, n3 = v.col, e3 = v.newValue, a2 = v.fileGUID, u = v.newFileWrapper, s = v.oldFileWrapper, c = v.valuePath, f = d.getValue(t4, n3), (l = (0, o.getValueByValuePath)(e3, c)) ? (u.id = a2, d.Ut.setFileGUID(t4, n3, a2), d.setValue(t4, n3, l), d.Ut.L0r(u)) : (d.setValue(t4, n3, l), d.Ut.setFileGUID(t4, n3, void 0), d.Ut.R0r(s)), d.eT(v.row, v.col, f, l);
            } catch (t5) {
              g = false;
            } finally {
              i2.Commands.xI(p, v), (0, r.resumeCalcService)(d, false), h.q5(d, true);
            }
            return g;
          }, t3.prototype.undo = function() {
            var t4, n3 = this, e3 = n3.Mf, o2 = n3.tT, a2 = true;
            n3.X5(e3, true), (0, r.suspendCalcService)(e3);
            try {
              t4 = i2.Commands.TI(e3.name()), e3.Ut.undo(o2[t4]), e3.eT(o2.row, o2.col, o2.newValue, o2.oldValue);
            } catch (t5) {
              a2 = false;
            } finally {
              (0, r.resumeCalcService)(e3, false), n3.q5(e3, true);
            }
            return a2;
          }, t3.prototype.canExecute = function() {
            return true;
          }, t3.prototype.canUndo = function() {
            return true;
          }, t3;
        })(), n2.UPLOAD_FILE = "uploadFile", i2.Commands[n2.UPLOAD_FILE] = { canUndo: true, execute: function(t3, n3, e3) {
          return (0, r.executeCommand)(t3, a, n3, e3);
        } };
      }, "./dist/plugins/celltype/fileUploadCellType/definition-comments.js": function() {
      }, "./dist/plugins/celltype/fileUploadCellType/feature-register.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        function o() {
          i2.Worksheet.ch("fileUploadCellType", { preUploadFile: function(t3) {
            var n3, e3, i3, r2 = t3.sheet.isReportTemplateSheet, o2 = "19" === (null === (i3 = null === (e3 = null === (n3 = t3.sheet.sw.cellTypeHitInfo) || void 0 === n3 ? void 0 : n3.cellStyle) || void 0 === e3 ? void 0 : e3.cellType) || void 0 === i3 ? void 0 : i3.typeName);
            t3.cancel = r2 && o2;
          } }), i2.Workbook.ch("registerUploadFileCommand", { init: function() {
            this.commandManager().register(r.UPLOAD_FILE, i2.Commands[r.UPLOAD_FILE]);
          } });
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.registerFeatures = void 0, i2 = e2("Core"), r = e2("./dist/plugins/celltype/fileUploadCellType/action.js"), n2.registerFeatures = o;
      }, "./dist/plugins/celltype/fileUploadCellType/filePreviewDialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o = this && this.qKr || (a = function(t3, n3) {
          return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, a(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          a(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Uxn = void 0, r = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return o(n3, t3), n3.prototype.rQ = function(t4, n4) {
            this.Dn(), this.vRe(t4, n4), this.Nye(), this.kye(n4);
          }, n3.prototype.Dn = function() {
            this.Wc.html(this.Hxn());
          }, n3.prototype.vRe = function(n4, e3) {
            var i3, r2, o2, a2;
            t3.prototype.$c.call(this), r2 = (i3 = this.Wc.get(0)).querySelector(".gc-sjs-file-preview-dialog-title-text"), o2 = i3.querySelector(".gc-sjs-file-preview-dialog-image"), a2 = i3.querySelector(".gc-sjs-file-preview-dialog-container"), r2.textContent = n4, o2.src = e3, o2.alt = e3, a2.style.maxHeight = this.Fc.height() - 50 + "px";
          }, n3.prototype.jye = function(t4) {
            var n4 = t4.target, e3 = n4.dataset.cmd;
            e3 && "close" === e3 && this.close();
          }, n3.prototype.Nye = function() {
            var t4, n4 = this, e3 = function(t5) {
              n4.jye(t5);
            }, i3 = function(t5) {
              "Escape" !== t5.key && 27 !== t5.keyCode || n4.close();
            };
            this.Wc.bind("click", e3), document.addEventListener("keyup", i3), t4 = this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-file-preview-dialog-title")), this.wpt = function() {
              n4.Wc.unbind("click", e3), document.removeEventListener("keyup", i3), t4();
            };
          }, n3.prototype.kye = function(t4) {
            var n4 = this, e3 = new Image();
            n4.Wc.css(["display"], ["none"]), e3.onload = function() {
              var t5 = e3.width, i3 = e3.height, r2 = n4.Wc.width(), o2 = i3 / t5 * r2, a2 = n4.Fc.width(), u = n4.Fc.height(), s = (a2 - r2) / 2, c = (u - o2) / 2;
              n4.Wc.css(["position", "left", "top", "display"], ["absolute", s + "px", (c > 0 ? c : 20) + "px", "block"]);
            }, e3.src = t4;
          }, n3.prototype.close = function() {
            this.wpt && this.wpt(), t3.prototype.close.call(this);
          }, n3.prototype.Hxn = function() {
            return '\n<div class="gc-sjs-file-preview-dialog-container">\n  <div class="gc-sjs-file-preview-dialog-title">\n      <span class="gc-sjs-file-preview-dialog-title-text"></span>\n      <span class="sjs-cancel-icon" data-cmd="close">×</span>\n  </div>\n  <div class="gc-sjs-file-preview-dialog-content">\n        <img class="gc-sjs-file-preview-dialog-image" src="#" alt="#" width="100%" />\n  </div>\n</div>\n      ';
          }, n3;
        })((i2 = e2("Core")).Ase), n2.Uxn = r;
      }, "./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.qKr || (m = function(t3, n3) {
          return m = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, m(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          m(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), g = this && this.nJr || function() {
          return g = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, g.apply(this, arguments);
        }, m;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FileUpload = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/celltype/fileUploadCellType/filePreviewDialog.js"), a = e2("./dist/plugins/celltype/fileUploadCellType/feature-register.js"), u = e2("./dist/plugins/celltype/fileUploadCellType/utils.js"), e2("./dist/plugins/celltype/fileUploadCellType/definition-comments.js"), s = i2.Common.lt.ht, c = r.CellTypes.Text, f = r.CellTypes.Base, l = r.GC$, h = l.each, d = null, v = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.typeName = "19", n4._text = (0, u.getSR)().FileUpload_Title, n4.zxn = d, n4.Wxn = d, n4.$xn = 22, n4.Hc(), n4;
          }
          return p(n3, t3), n3.prototype.fur = function(t4, n4) {
            (0, u.fur)(t4, n4);
          }, n3.prototype.thumbnailSize = function(t4) {
            return t4 ? (t4.width ? this._thumbnailSize.width = t4.width : delete this._thumbnailSize.width, t4.height ? this._thumbnailSize.height = t4.height : delete this._thumbnailSize.height, this._thumbnailSize) : this._thumbnailSize;
          }, n3.prototype.Hc = function() {
            var t4 = this;
            h(u.defaultFileUploadProps, (function(n4, e3) {
              t4["_" + n4] = e3;
            })), t4._thumbnailSize = {};
          }, n3.prototype.TRe = function(t4, n4, e3) {
            var i3;
            return this.Ile(this.UBe(t4, n4, e3)) && (this._isPreviewEnabled || this._isDownloadEnabled || this._isClearEnabled);
          }, n3.prototype.Hne = function(t4, n4, e3) {
            var i3, r2, o2 = t4.Oi, a2 = o2 && t4.HO(n4, e3), u2 = (null === (i3 = this.zxn) || void 0 === i3 ? void 0 : i3.row) === n4 && (null === (r2 = this.zxn) || void 0 === r2 ? void 0 : r2.col) === e3;
            return (u2 || a2) && this.TRe(t4, n4, e3);
          }, n3.prototype.i2e = function(t4, n4) {
            var e3, i3 = "", r2 = null == t4 ? void 0 : t4.split(".");
            return (i3 = r2 && r2.length > 1 ? r2.pop() : null !== (e3 = u.MIMETYPE_TO_FILE_EXTENSION_MAP[n4]) && void 0 !== e3 ? e3 : "").toLowerCase();
          }, n3.prototype.o2e = function(t4, n4, e3) {
            var i3, r2, o2, a2, s2 = null !== (o2 = null === (r2 = null === (i3 = t4.getParent()) || void 0 === i3 ? void 0 : i3.options) || void 0 === r2 ? void 0 : r2.builtInFileIcons) && void 0 !== o2 ? o2 : e3;
            return null !== (a2 = null == s2 ? void 0 : s2[n4]) && void 0 !== a2 ? a2 : u.ICON_MAP.commonFile;
          }, n3.prototype.Ile = function(t4) {
            return (0, u.Ile)(t4);
          }, n3.prototype.dEe = function(t4, n4, e3) {
            var i3, r2, o2, a2, s2 = [], c2 = this.UBe(t4, n4, e3, true);
            return c2 ? (i3 = this.i2e(c2.name, c2.type), r2 = -1 !== u.IMAGE_FILE_EXTENSIONS.findIndex((function(t5) {
              return i3 === t5;
            })), a2 = (o2 = t4.BO()).getState(c2.dataUrl) && !o2.qh(c2.dataUrl), this._isPreviewEnabled && (r2 && !a2 || this.previewCommand) && s2.push("preview"), !this._isDownloadEnabled || r2 && a2 || s2.push("download"), s2) : [];
          }, n3.prototype.vEe = function(t4, n4, e3) {
            return this.dEe(t4, n4, e3).map((function(t5) {
              return u.ICON_MAP[t5];
            }));
          }, n3.prototype.mEe = function(t4, n4, e3, i3) {
            var r2 = this.vEe(t4, n4, e3).length, o2 = 0.2 * i3 > this.$xn ? this.$xn : 0.2 * i3, a2 = (i3 - o2 * r2) / (r2 + 1);
            return { iconSize: o2, space: a2 };
          }, n3.prototype.gEe = function(t4) {
            var n4 = t4.BO();
            Object.values(u.ICON_MAP).forEach((function(t5) {
              n4.addImage(t5, "anonymous");
            }));
          }, n3.prototype.UBe = function(t4, n4, e3, i3, r2) {
            var o2, a2, s2 = t4.Ut.getFileGUID(n4, e3), c2 = t4.GRe(), f2 = t4.getValue(n4, e3), l2 = c2.Mdt(s2, true), h2 = c2._0r(s2), d2 = this._valuePath;
            if (h2 || !f2) return l2 ? i3 ? l2 : (o2 = { dataUrl: l2.dataUrl, blob: l2.blob, name: l2.name }, a2 = (0, u.getValueByValuePath)(o2, d2, l2), (0, u.isFileInfoEqual)(a2, f2) || r2 ? o2 : void (0, u.fur)({ row: n4, col: e3, value: f2, valuePath: d2, fileGUID: s2 }, t4, void 0, true)) : l2;
            (0, u.fur)({ row: n4, col: e3, value: f2, fileGUID: s2, valuePath: d2 }, t4, void 0, true);
          }, n3.prototype.kfr = function(t4, n4, e3, i3) {
            var r2 = (0, u.jfr)(n4), o2 = { width: e3, height: i3 };
            return !r2 || r2.hasAttribute("width") || r2.hasAttribute("height") ? o2 : (0, u.EJi)(o2.width, o2.height, t4.canvas.width, t4.canvas.height);
          }, n3.prototype.paintValue = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2 = this;
            t4 && (s2 = e3 + g2._marginLeft, c2 = i3 + g2._marginTop, f2 = r2 - g2._marginLeft - g2._marginRight, l2 = o2 - g2._marginTop - g2._marginBottom, h2 = s2 + f2 > e3 && s2 < e3 + r2 && c2 + l2 > i3 && c2 < i3 + o2, d2 = g2._text, v2 = g2.UBe(u2.sheet, u2.row, u2.col, void 0, u2.isPrinting), p2 = g2.Ile(v2), f2 - 2 > 0 && l2 - 2 > 0 && h2 && (t4.save(), (s2 < e3 || s2 + f2 > e3 + r2 || c2 < i3 || c2 + l2 > i3 + o2) && (t4.rect(e3, i3, r2, o2), t4.clip()), t4.beginPath(), p2 ? (g2.pEe(t4, s2, c2, f2, l2, a2, u2), this.Hne(u2.sheet, u2.row, u2.col) && g2.bEe(t4, e3, i3, r2, o2, a2, u2)) : g2.ORe(t4, d2, s2, c2, f2, l2, a2, u2), t4.restore()));
          }, n3.prototype.getText = function(t4) {
            return t4;
          }, n3.prototype.Fn = function(n4, e3, i3, o2, a2) {
            var s2, c2, f2, l2, h2 = a2.sheet, d2 = a2.row, v2 = a2.col, p2 = this.UBe(h2, d2, v2, true), g2 = this.marginTop() + this.marginBottom(), m2 = t3.prototype.Fn.call(this, n4, p2 && n4 ? p2.name : (0, u.getSR)().FileUpload_Title, i3, o2, a2) + g2;
            return p2 && n4 && (s2 = 3, c2 = parseFloat(h2.getRowHeight(d2, r.SheetArea.viewport) + "") - s2, f2 = this.i2e(p2.name, p2.type), (l2 = -1 !== u.IMAGE_FILE_EXTENSIONS.findIndex((function(t4) {
              return f2 === t4;
            }))) ? m2 = c2 : m2 *= 2.5), m2;
          }, n3.prototype.Ln = function(n4, e3, i3, o2, a2) {
            var s2, c2, f2, l2, h2 = a2.sheet, d2 = a2.row, v2 = a2.col, p2 = this.UBe(h2, d2, v2, true), g2 = this.marginTop() + this.marginBottom(), m2 = t3.prototype.Ln.call(this, n4, p2 && n4 ? p2.name : (0, u.getSR)().FileUpload_Title, i3, o2, a2) + g2;
            return p2 && n4 && (s2 = 3, c2 = parseFloat(h2.getColumnWidth(v2, r.SheetArea.viewport) + "") - s2, f2 = this.i2e(p2.name, p2.type), (l2 = -1 !== u.IMAGE_FILE_EXTENSIONS.findIndex((function(t4) {
              return f2 === t4;
            }))) && (m2 = c2)), m2;
          }, n3.prototype.ORe = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = 3, b = (null === (s2 = g2.zxn) || void 0 === s2 ? void 0 : s2.row) === u2.row && (null === (f2 = g2.zxn) || void 0 === f2 ? void 0 : f2.col) === u2.col, y = u2.sheet.currentTheme().colors().accent1(), w = y.r, M = y.g, C = y.b, S = y.a, T = b ? "rgba(".concat(w, ",").concat(M, ",").concat(C, ",").concat(S, ")") : "rgb(217,217,217)", x = e3 + 1, A = i3 + 1, I = r2 - 2, k = o2 - 2;
            t4.setLineDash([3, 2]), t4.moveTo(x + m2, A), t4.lineTo(x + I - m2, A), t4.arc(x + I - m2, A + m2, m2, 1.5 * Math.PI, 2 * Math.PI), t4.lineTo(x + I, A + k - m2), t4.arc(x + I - m2, A + k - m2, m2, 0, 0.5 * Math.PI), t4.lineTo(x + m2, A + k), t4.arc(x + m2, A + k - m2, m2, 0.5 * Math.PI, Math.PI), t4.lineTo(x, A + m2), t4.arc(x + m2, A + m2, m2, Math.PI, 1.5 * Math.PI), t4.lineTo(x, A + m2), t4.closePath(), T && t4.strokeStyle !== T && (t4.strokeStyle = T), t4.lineWidth = 2, t4.stroke(), h2 = (l2 = u2.sheet.currentTheme().colors().background2()).r, d2 = l2.g, v2 = l2.b, p2 = l2.a, t4.fillStyle = "rgba(".concat(h2, ", ").concat(d2, ", ").concat(v2, ", ").concat(p2, ")"), t4.fill(), c.prototype.paintValue.call(g2, t4, n4, e3, i3, r2, o2, a2, u2);
          }, n3.prototype.pEe = function(t4, n4, e3, i3, r2, o2, a2) {
            var s2, f2, l2, h2, d2, v2, p2, g2, m2, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L = this, F = a2.sheet, B = a2.row, P = a2.col;
            this.gEe(F), p2 = L.thumbnailSize(), (g2 = this.UBe(F, B, P, true)) && (m2 = g2.dataUrl, y = (b = L.i2e(g2.name, g2.type)) && u.IMAGE_FILE_EXTENSIONS.indexOf(b) > -1, w = L.o2e(F, b, a2.builtInFileIcons), M = y ? m2 : w, (S = (C = a2.imageLoader).getImage(M)) || C.addImage(M, "anonymous"), T = C.getState(M), "string" != typeof M && M && M.toString && !T && (M = M.toString(), y = true, T = true), T && (y ? C.qh(M) ? (x = null !== (s2 = p2.width) && void 0 !== s2 ? s2 : i3 - 2, A = null !== (f2 = p2.height) && void 0 !== f2 ? f2 : r2 - 2, I = L.kfr(t4, S.src, S.width, S.height), t4.drawImage(S, 0, 0, I.width, I.height, n4 + 1, e3 + 1, x, A)) : (k = C.getImage(u.ICON_MAP.errorFile)) && t4.drawImage(k, 0, 0, k.width, k.height, n4 + 1, e3 + 1, null !== (l2 = p2.width) && void 0 !== l2 ? l2 : i3 - 2, null !== (h2 = p2.height) && void 0 !== h2 ? h2 : r2 - 2) : (j = i3 < 0.6 * (r2 - 2) ? 0.6 * (i3 - 2) : 0.6 * (r2 - 2) - 2 * (N = 4), D = (i3 - 2 - (x = null !== (d2 = p2.width) && void 0 !== d2 ? d2 : j)) / 2 + 1, _ = (0.6 * (r2 - 2) - (A = null !== (v2 = p2.height) && void 0 !== v2 ? v2 : j)) / 2 + 1, C.qh(M) ? (I = L.kfr(t4, S.src, S.width, S.height), t4.drawImage(S, 0, 0, I.width, I.height, n4 + D, e3 + _, x, A)) : (O = C.getImage(u.ICON_MAP.commonFile), t4.drawImage(O, 0, 0, O.width, O.height, n4 + D, e3 + _, x, A)), E = n4, R = e3 + 0.6 * (r2 - 2), c.prototype.paintValue.call(L, t4, g2.name, E, R, i3, 0.4 * (r2 - 2), o2, a2))));
          }, n3.prototype.bEe = function(t4, n4, e3, i3, r2, o2, a2) {
            this.wEe(t4, n4, e3, i3, r2), this.yEe(t4, n4, e3, i3, r2, o2, a2);
          }, n3.prototype.wEe = function(t4, n4, e3, i3, r2) {
            t4.save(), t4.beginPath(), t4.rect(n4, e3, i3, r2), t4.fillStyle = "rgba(0, 0, 0, 0.3)", t4.fillRect(n4, e3, i3, r2), t4.restore();
          }, n3.prototype.yEe = function(t4, n4, e3, i3, r2, o2, a2) {
            this.FBe(t4, n4, e3, i3, r2, a2), this.LBe(t4, n4, e3, i3, r2, a2);
          }, n3.prototype.FBe = function(t4, n4, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = o2.sheet.BO();
            t4.save(), t4.beginPath(), a2 = this.mEe(o2.sheet, o2.row, o2.col, i3), u2 = a2.iconSize, s2 = a2.space, c2 = e3 + (r2 - u2) / 2, f2 = this.dEe(o2.sheet, o2.row, o2.col), this.vEe(o2.sheet, o2.row, o2.col).forEach((function(e4, r3) {
              var a3, d2, v2;
              h2.getImage(e4) || l2.gEe(o2.sheet), h2.getState(e4) && h2.qh(e4) && (a3 = h2.getImage(e4), d2 = n4 + (r3 + 1) * s2 + r3 * u2, f2[r3] === l2.Wxn && (t4.fillStyle = "rgba(255, 255, 255, 0.3)", v2 = 0.2 * i3 > l2.$xn ? 4 : 2, t4.fillRect(d2 - v2, c2 - v2, u2 + 2 * v2, u2 + 2 * v2)), t4.drawImage(a3, d2, c2, u2, u2));
            })), t4.restore();
          }, n3.prototype.LBe = function(t4, n4, e3, i3, r2, o2) {
            var a2, s2, c2, f2, l2, h2, d2, v2;
            this.isClearEnabled() && (a2 = o2.sheet.BO(), t4.save(), t4.beginPath(), l2 = n4 + i3 - (s2 = this.mEe(o2.sheet, o2.row, o2.col, i3).iconSize) - 2 * (c2 = 2), h2 = e3 + c2 + (f2 = 2), d2 = u.ICON_MAP.clear, a2.getImage(d2) || this.gEe(o2.sheet), a2.getState(d2) && a2.qh(d2) && (v2 = a2.getImage(d2), "clear" === this.Wxn && (t4.fillStyle = "rgba(255, 255, 255, 0.3)", t4.fillRect(l2 - c2, h2 - c2, s2 + 2 * c2, s2 + 2 * c2)), t4.drawImage(v2, l2, h2, s2, s2)), t4.restore());
          }, n3.prototype.processMouseUp = function(t4) {
            var n4, e3, i3, o2, a2 = { cancel: false, sheet: t4.sheet };
            if (r.Worksheet.et(t4.sheet, "preUploadFile", a2), !a2.cancel && this.MEe(t4)) return n4 = t4.sheet, e3 = t4.row, i3 = t4.col, this.Hne(n4, e3, i3) ? (this.CEe(t4), true) : !(this.TRe(n4, e3, i3) || (this.gEe(n4), !n4 || !t4.isReservedLocation)) && ((o2 = this.SEe(t4)).click(), true);
          }, n3.prototype.processMouseEnter = function(t4) {
            if (!this.MEe(t4)) return false;
            var n4 = t4.sheet, e3 = t4.row, i3 = t4.col;
            return this.zxn = { row: e3, col: i3 }, n4.zw(), true;
          }, n3.prototype.processMouseLeave = function(t4) {
            return this.MEe(t4) && (this.zxn = d, t4.sheet.zw()), false;
          }, n3.prototype.processMouseMove = function(t4) {
            var n4, e3, i3, r2, o2, a2;
            return !!this.MEe(t4) && (i3 = t4.sheet, r2 = t4.row, o2 = t4.col, this.zxn && (null === (n4 = this.zxn) || void 0 === n4 ? void 0 : n4.col) === o2 && (null === (e3 = this.zxn) || void 0 === e3 ? void 0 : e3.row) === r2 || (this.zxn = { row: r2, col: o2 }), !!this.Hne(i3, r2, o2) && ((a2 = this.AEe(t4)) !== this.Wxn && (this.Wxn = a2, i3.zw()), true));
          }, n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2, c2, f2, l2, h2 = this;
            return r2 && (o2 = r2.sheetArea, (s(o2) || 3 === o2) && i3) ? (a2 = i3.x + h2._marginLeft, u2 = i3.x + i3.width - h2._marginRight, c2 = i3.y + h2._marginTop, f2 = i3.y + i3.height - h2._marginBottom, l2 = { x: t4, y: n4, row: r2.row, col: r2.col, cellRect: i3, sheetArea: o2, sheet: r2.sheet, cellStyle: e3 }, a2 <= t4 && t4 <= u2 && c2 <= n4 && n4 <= f2 && (l2.isReservedLocation = true), l2) : d;
          }, n3.prototype.getOperationRects = function(t4) {
            var n4, e3 = {}, i3 = t4.sheet, r2 = t4.row, o2 = t4.col, a2 = this.dEe(i3, r2, o2), u2 = this.mEe(i3, r2, o2, t4.cellRect.width), s2 = u2.iconSize, c2 = u2.space, f2 = t4.cellRect.y + (t4.cellRect.height - s2) / 2, l2 = { x: t4.cellRect.x + c2 - 2, y: f2 - 2, width: s2 + 4, height: s2 + 4 }, h2 = { x: t4.cellRect.x + s2 + 2 * c2 - 2, y: f2 - 2, width: s2 + 4, height: s2 + 4 };
            return 2 === a2.length ? (e3[a2[0]] = l2, e3[a2[1]] = h2) : 1 === a2.length && (e3[a2[0]] = l2), this.isClearEnabled() && (n4 = { x: t4.cellRect.x + t4.cellRect.width - s2 - 6, y: t4.cellRect.y - 2, width: s2 + 4, height: s2 + 8 }, e3.clear = n4), e3;
          }, n3.prototype.AEe = function(t4) {
            var n4, e3 = t4.sheet, i3 = t4.row, r2 = t4.col, o2 = this.mEe(e3, i3, r2, t4.cellRect.width), a2 = o2.iconSize, u2 = o2.space, s2 = this.dEe(e3, i3, r2), c2 = t4.cellRect.y + (t4.cellRect.height - a2) / 2, f2 = t4.x >= t4.cellRect.x + u2 - 2 && t4.x <= t4.cellRect.x + a2 + u2 + 2, l2 = t4.x >= t4.cellRect.x + a2 + 2 * u2 - 2 && t4.x <= t4.cellRect.x + 2 * a2 + 2 * u2 + 2, h2 = t4.y >= c2 - 2 && t4.y <= c2 + a2 + 2, v2 = t4.x >= t4.cellRect.x + t4.cellRect.width - a2 - 6 && t4.x <= t4.cellRect.x + t4.cellRect.width - 2 && t4.y >= t4.cellRect.y - 2 && t4.y <= t4.cellRect.y + a2 + 6 && this.isClearEnabled();
            return n4 = f2 && h2 ? s2[0] : l2 && h2 ? s2[1] : v2 ? "clear" : d;
          }, n3.prototype.SEe = function(t4) {
            var n4, e3 = this, i3 = "sjs-fake-file-upload-dom";
            return document.getElementById(i3) && document.getElementById(i3).remove(), (n4 = document.createElement("input")).type = "file", n4.style.display = "none", n4.accept = e3.accept(), n4.id = i3, n4.addEventListener("change", (function() {
              e3.TEe(t4, n4), n4.remove();
            })), document.body.appendChild(n4), n4;
          }, n3.prototype.IEe = function(t4, n4, e3, i3) {
            var r2 = this.UBe(t4, n4, e3);
            (0, u.fur)({ row: n4, col: e3, value: i3, oldValue: r2, valuePath: this._valuePath }, t4, true);
          }, n3.prototype.TEe = function(t4, n4) {
            var e3, i3, o2 = t4.sheet, a2 = t4.row, u2 = t4.col, s2 = n4.files[0];
            if (s2) {
              if (s2.size > 1024 * this.maxSize()) return e3 = { row: a2, col: u2, maxSize: this.maxSize(), fileSize: s2.size }, void o2.jT(r.InvalidOperationType.sizeLimitExceeded, o2._An(), e3);
              i3 = { name: s2.name, blob: s2 }, this.IEe(o2, a2, u2, i3);
            }
          }, n3.prototype.xEe = function(t4, n4) {
            var e3 = t4.sheet, i3 = t4.col, r2 = t4.row, o2 = this.UBe(e3, r2, i3);
            if (this.Ile(o2)) {
              switch (n4) {
                case "preview":
                  this.NEe(o2, t4);
                  break;
                case "download":
                  this.kEe(e3, r2, i3);
                  break;
                case "clear":
                  this._Ee(e3, r2, i3);
              }
              this.zxn = d, this.Wxn = d;
            }
          }, n3.prototype.MEe = function(t4) {
            var n4 = t4.sheet, e3 = t4.col, i3 = t4.row;
            return !(n4.isActualProtected() && n4.getCell(i3, e3).locked());
          }, n3.prototype.DEe = function(t4) {
            var n4;
            new o.Uxn(document.body, 2e3, true).rQ(t4.name, t4.dataUrl);
          }, n3.prototype.NEe = function(t4, n4) {
            var e3, i3, r2, o2, a2;
            if (this.previewCommand) return e3 = n4.sheet, i3 = n4.col, r2 = n4.row, o2 = g(g({}, t4), { sheetName: e3.name(), row: r2, col: i3 }), void ("function" == typeof this.previewCommand ? this.previewCommand(o2) : "string" == typeof this.previewCommand && (null == (a2 = e3.getParent()) || a2.commandManager().execute(g({ cmd: this.previewCommand }, o2))));
            this.DEe(t4);
          }, n3.prototype.kEe = function(t4, n4, e3) {
            var i3, r2, o2 = this.UBe(t4, n4, e3, true);
            o2 && (i3 = window.URL.createObjectURL(o2.blob), (r2 = document.createElement("a")).href = i3, r2.download = o2.name, r2.type = o2.type, r2.click(), setTimeout((function() {
              window.URL.revokeObjectURL(i3);
            })));
          }, n3.prototype._Ee = function(t4, n4, e3) {
            this.IEe(t4, n4, e3);
          }, n3.prototype.CEe = function(t4) {
            this.Wxn === d && (this.Wxn = this.AEe(t4)), this.xEe(t4, this.Wxn);
          }, n3.prototype.Je = function(t4) {
            var n4, e3 = { marginTop: t4.marginTop, marginRight: t4.marginRight, marginBottom: t4.marginBottom, marginLeft: t4.marginLeft, maxSize: t4.maxSize, accept: t4.accept, isPreviewEnabled: t4.isPreviewEnabled, isDownloadEnabled: t4.isDownloadEnabled, isClearEnabled: t4.isClearEnabled };
            t4.hasOwnProperty("valuePath") && (e3.valuePath = null !== (n4 = t4.valuePath) && void 0 !== n4 ? n4 : null), this.fromJSON(e3);
          }, n3.prototype.toJSON = function() {
            var t4, n4 = this, e3 = { typeName: n4.typeName };
            return h(u.defaultFileUploadProps, (function(i3, r2) {
              (t4 = n4["_" + i3]) !== r2 && (e3[i3] = t4);
            })), e3;
          }, n3.prototype.fromJSON = function(t4) {
            var n4 = this;
            h(u.defaultFileUploadProps, (function(e3) {
              var i3 = t4[e3];
              void 0 !== i3 && (n4["_" + e3] = i3);
            }));
          }, n3;
        })(f), n2.FileUpload = v, h(u.defaultFileUploadProps, (function(t3) {
          v.prototype[t3] = function(n3) {
            return 0 === arguments.length ? this["_" + t3] : ("valuePath" === t3 && void 0 === n3 && (n3 = null), this["_" + t3] = n3, this);
          };
        })), (0, a.registerFeatures)(), r.CellTypes.ti[19] = v;
      }, "./dist/plugins/celltype/fileUploadCellType/utils.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3, n3, e3) {
          if (e3 || t3) {
            if ("string" == typeof n3) return e3 ? e3[n3] : t3[n3];
            if (e3 && e3.hasOwnProperty(n3)) return e3[n3];
            if (a(n3) && e3) return e3.cellValue;
          }
          return t3;
        }
        function v(t3, n3) {
          var e3, i3, r2 = typeof t3, o2 = typeof n3;
          if (r2 !== o2) return false;
          if ("string" === r2) return t3 === n3;
          if ("object" === r2) {
            if (t3 instanceof Blob || n3 instanceof Blob) return t3 === n3;
            if (t3 && n3) return i3 = n3, (e3 = t3).blob === i3.blob && e3.dataUrl === i3.dataUrl && e3.name === i3.name;
          }
          return true;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.EJi = n2.jfr = n2.isFileInfoEqual = n2.getValueByValuePath = n2.fur = n2.Wgt = n2.Ile = n2.defaultFileUploadProps = n2.MIMETYPE_TO_FILE_EXTENSION_MAP = n2.IMAGE_FILE_EXTENSIONS = n2.ICON_MAP = n2.getSR = void 0, i2 = e2("Common"), r = e2("./dist/plugins/celltype/celltypes.ns.js"), o = new i2.Common.ResourceManager(r.SR, "CellTypes"), a = i2.Common.lt.ht, n2.getSR = o.getResource.bind(o), n2.ICON_MAP = { commonFile: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y29tbW9uIGZpbGUgaW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImNvbW1vbi1maWxlLWltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNTAsMiBDNTIuMjA5MTM5LDIgNTQsMy43OTA4NjEgNTQsNiBMNTQsNTggQzU0LDYwLjIwOTEzOSA1Mi4yMDkxMzksNjIgNTAsNjIgTDE0LDYyIEMxMS43OTA4NjEsNjIgMTAsNjAuMjA5MTM5IDEwLDU4IEwxMCwxOC4xMDEwNzQyIEwyMS45NjMzNzg5LDE4LjEwMTA3NDIgQzI0LjE3MjUxNzksMTguMTAxMDc0MiAyNS45NjMzNzg5LDE2LjMxMDIxMzIgMjUuOTYzMzc4OSwxNC4xMDEwNzQyIEwyNS45NjMzNzg5LDIgTDUwLDIgWiBNMjMsMiBMMjMsMTUgTDEwLDE1IEwyMywyIFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70iIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+", errorFile: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZXJyb3IgSW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImVycm9yLUltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgOC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0i5b2i54q257uT5ZCILXBhdGjlpIfku70tMiIgZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSI2MCA0LjI2MzI1NjQxZS0xNCAwIDQuMjYzMjU2NDFlLTE0IDAgNDguOTQ3MzY4NCA2MCA0OC45NDczNjg0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNi44MjYsMCBMMzIsMTEuMzMwMDc4MSBMMjIsMjMuMTIxMDkzNyBMMjksMzguODQzNzUgTDI0LjEyOCw0OCBMNCw0OCBDMS43OTA4NjEsNDggLTEuMTk2OTk2ODhlLTE1LDQ2LjIwOTEzOSAwLDQ0IEwwLDQgQy0yLjcwNTQxNWUtMTYsMS43OTA4NjEgMS43OTA4NjEsLTEuMDYxNzI2MTNlLTE1IDQsMCBMMjYuODI2LDAgWiBNNTYsMCBDNTguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiA2MCwxLjc5MDg2MSA2MCw0IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDk0LDQ4IEwzNiwzOC42MjY5NTMxIEwyOSwyMy40OTgwNDY5IEwzOSwxMS4yNTM5MDYyIEwzMy44MzYsMCBMNTYsMCBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRTVFNUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNi4zNjU2ODUxLDE1IEwyMy4wMzEsMjIuMDA3IEwyMiwyMy4xMjEwOTM3IEwyOSwzOC44NDM3NSBMMjQuMTI3LDQ4IEw0LDQ4IEMxLjc5MDg2MSw0OCAyLjc2Njg4MDE4ZS0xNCw0Ni4yMDkxMzkgMi44NDIxNzA5NGUtMTQsNDQgTDIuODQyMTcwOTRlLTE0LDMxLjIxMTA3MTIgTDE2LjM2NTY4NTEsMTUgWiBNNDguMzkxNjc2OCwyNi4wMTg3NTQyIEw2MCwzNS42NDIyNzM1IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDkzLDQ4IEwzNiwzOC42MjY5NTMxIEwzMy4zMDcsMzIuODA4IEwzNy44MjA3NjkyLDM3LjU1MjcyODggTDM3LjgyMjI2NTUsMzcuMDA5MzkxNCBMNDguMzkxNjc2OCwyNi4wMTg3NTQyIFogTTQ4LDcgQzUwLjIwOTEzOSw3IDUyLDguNzkwODYxIDUyLDExIEM1MiwxMy4yMDkxMzkgNTAuMjA5MTM5LDE1IDQ4LDE1IEM0NS43OTA4NjEsMTUgNDQsMTMuMjA5MTM5IDQ0LDExIEM0NCw4Ljc5MDg2MSA0NS43OTA4NjEsNyA0OCw3IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNEM0QzRDMiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==", preview: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+cHJldmlldyBpbWFnZTwvdGl0bGU+CiAgICA8ZyBpZD0icHJldmlldy1pbWFnZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEwLjAwMDE0NzMsMyBDMTIuMjM1MDA1NSwzIDE0LjI1ODM2MzUsMy45OTU2OCAxNS44Njk3MjE0LDUuMTYyMDIgQzE3LjQ4NzcyMjEsNi4zMzMyNiAxOC43NTY4NjU1LDcuNzI0NTggMTkuNDk4NTA4Nyw4LjYyNjYgTDE5LjMxMiw4Ljc3MyBMMTkuNDk4OTM3Myw4LjYyNzE2IEMyMC4xMjc1NzYyLDkuMzkzMjQgMjAuMTY0OTM0NiwxMC40MjkxMTIxIDE5LjYwOTY0MjgsMTEuMjI2Njk4OSBMMTkuNDk4NTgwMSwxMS4zNzMzMyBMMTkuMzQzMTk5NywxMS41NjAxMTc4IEMxOC41ODYwOTU5LDEyLjQ1OTk1MTIgMTcuMzc5ODU1NCwxMy43NDQ4MjI3IDE1Ljg2OTcyMTQsMTQuODM3OTggQzE0LjI1ODM2MzUsMTYuMDA0MzIgMTIuMjM1MDA1NSwxNyAxMC4wMDAxNDczLDE3IEM3Ljc2NTI4OTE4LDE3IDUuNzQxOTMxMTMsMTYuMDA0MzIgNC4xMzA2NDQ3LDE0LjgzNzk4IEMyLjUxMzU3MjU1LDEzLjY2NzQ0IDEuMjQ1MDAwNTYsMTIuMjc3MSAwLjUwMzE0MzA4MiwxMS4zNzUwOCBDMC4xNzk1MDAwOCwxMC45ODU5NSAwLDEwLjUwMjMyIDAsMTAgQzAsOS40OTc2OCAwLjE3OTUwMDA4LDkuMDE0MDUgMC41MDMyMTQ1MSw4LjYyNDkyIEMxLjI0NTAwMDU2LDcuNzIyODMgMi41MTM2NDM5OCw2LjMzMjU2IDQuMTMwNjQ0Nyw1LjE2MjAyIEM1Ljc0MTkzMTEzLDMuOTk1NjggNy43NjUyODkxOCwzIDEwLjAwMDE0NzMsMyBaIE0xMC4wMDAxNTQ3LDQgQzguMTA1MDUzNyw0IDYuMjkyMDc3NzYsNC44NjgwNSA0LjcyODMyNjk0LDYuMDIzMDUgQzMuMTcxNjI2MTMsNy4xNzI4NzUgMS45MzA1MjU0OCw4LjU1NjcgMS4xOTQ5MjUxLDkuNDY5Njc1IEMxLjA2NDgwMDAzLDkuNjI4ODI1IDEsOS44MTQxNSAxLDEwIEMxLDEwLjE4NTg1IDEuMDY0ODAwMDMsMTAuMzcxMTc1IDEuMTkxNjI1MSwxMC41MjYzNSBDMS45MzA1MjU0OCwxMS40NDMzIDMuMTcxNjI2MTMsMTIuODI3MTI1IDQuNzI4MzI2OTQsMTMuOTc2OTUgQzYuMjkyMDc3NzYsMTUuMTMxOTUgOC4xMDUwNTM3LDE2IDEwLjAwMDE1NDcsMTYgQzExLjg5NTMzMDcsMTYgMTMuNzA4MjMxNiwxNS4xMzE5NSAxNS4yNzE5ODI0LDEzLjk3Njk1IEMxNi44Mjg2MDgyLDEyLjgyNzIgMTguMDY5NzA4OSwxMS40NDM0NSAxOC44MDUzMDkzLDEwLjUzMDQ3NSBDMTkuMDY0NzM0NCwxMC4yMDg0MjUgMTkuMDY1MTg0NCw5Ljc5MjcgMTguODA0OTM0Myw5LjQ2OTA3NSBDMTguMDY5MjU4OSw4LjU1NjEgMTYuODI4MzgzMiw3LjE3MjY1IDE1LjI3MTk4MjQsNi4wMjMwNSBDMTMuNzA4MjMxNiw0Ljg2ODA1IDExLjg5NTMzMDcsNCAxMC4wMDAxNTQ3LDQgWiBNOS45OTk5NjA0NSw2IEMxMi4xNzA5ODU2LDYgMTQsNy43NTIwNzQyOCAxNCwxMCBDMTQsMTIuMjQ3OTI1NyAxMi4xNzA5ODU2LDE0IDkuOTk5OTYwNDUsMTQgQzcuODI5MDE0MzcsMTQgNiwxMi4yNDc5MjU3IDYsMTAgQzYsNy43NTIwNzQyOCA3LjgyOTAxNDM3LDYgOS45OTk5NjA0NSw2IFogTTkuOTk5OTUwOTMsNyBDOC4yOTU3MTY2LDcgNyw4LjM5MjUzMDg5IDcsMTAgQzcsMTEuNjA3NDY5MSA4LjI5NTcxNjYsMTMgOS45OTk5NTA5MywxMyBDMTEuNzA0MTg1MywxMyAxMywxMS42MDc0NjkxIDEzLDEwIEMxMyw4LjM5MjUzMDg5IDExLjcwNDE4NTMsNyA5Ljk5OTk1MDkzLDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=", download: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZG93bmxvYWQgZmlsZXM8L3RpdGxlPgogICAgPGcgaWQ9ImRvd25sb2FkLWZpbGVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTEuMDg4Nzc5NSwyLjM3ODY0NTkgTDE1Ljk2NTI4NTUsNyBMMTUuOTY1Mjg1NSw3IEwxNS45NjUyODU1LDggTDExLjA4ODc3OTUsMTIuNjIxMzU0MSBDMTAuODg2Nzg2NiwxMi44MTI3NzgxIDEwLjU2OTA4NTEsMTIuODA4NTExNSAxMC4zNzIzMDU3LDEyLjYxMTczMjEgQzEwLjE4MDkxNTIsMTIuNDIwMzQxNiAxMC4xODA5MTUyLDEyLjExMDAzNjQgMTAuMzcyMzA1NywxMS45MTg2NDU5IEMxMC4zNzQ2MTksMTEuOTE2MzMyNiAxMC4zNzY5NTU0LDExLjkxNDA0MjUgMTAuMzc5MzE0NiwxMS45MTE3NzYgTDE0LjQ1MTI4NTUsNy45OTk3MTQ1IEwxNC40NTEyODU1LDcuOTk5NzE0NSBMNS40NjUyODU1LDcuOTk5OTg0OTUgQzUuMTg5MTUxNDQsNy45OTk5OTMyNiA0Ljk2NTI5MzgxLDcuNzc2MTQ5MTEgNC45NjUyODU1LDcuNTAwMDE1MDUgQzQuOTY1Mjg1NSw3LjUwMDAxMDAzIDQuOTY1Mjg1NSw3LjUwMDAwNTAyIDQuOTY1Mjg1NSw3LjUgQzQuOTY1Mjg1NSw3LjIyMzg1NTE5IDUuMTg5MTQwNjksNi45OTk5OTMyNiA1LjQ2NTI4NTUsNi45OTk5ODQ5NSBMMTQuNDUxMjg1NSw2Ljk5OTcxNDUgTDE0LjQ1MTI4NTUsNi45OTk3MTQ1IEwxMC4zNzkzMzc4LDMuMDg4MTk5ODcgQzEwLjE4NDE1MzcsMi45MDA3MDU5NCAxMC4xNzc5MTk2LDIuNTkwNDg0MDkgMTAuMzY1NDEzNSwyLjM5NTI5OTk5IEMxMC4zNjc2ODczLDIuMzkyOTMyOTQgMTAuMzY5OTg0OCwyLjM5MDU4ODc5IDEwLjM3MjMwNTcsMi4zODgyNjc5IEMxMC41NjkwODUxLDIuMTkxNDg4NDcgMTAuODg2Nzg2NiwyLjE4NzIyMTg1IDExLjA4ODc3OTUsMi4zNzg2NDU5IFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70tM+Wkh+S7vSIgZmlsbD0iI0ZGRkZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuNDY1Mjg1LCA3LjUwMDAwMCkgc2NhbGUoLTEsIC0xKSByb3RhdGUoLTkwLjAwMDAwMCkgdHJhbnNsYXRlKC0xMC40NjUyODUsIC03LjUwMDAwMCkgIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTE3LjE0NjM2MzYsMTEuMTQ2MzYzNSBDMTcuMDUyNTc5MSwxMS4yNDAxNDggMTYuOTk5OTI0OSwxMS4zNjczNjg2IDE3LDExLjQ5OTk5OSBMMTcsMTUuOTk5OTk5IEw0LDE1Ljk5OTk5OSBMNCwxMS40OTk5OTkgQzQsMTEuMjIzODU3NSAzLjc3NjE0MjQ2LDEwLjk5OTk5OSAzLjUsMTAuOTk5OTk5IEMzLjIyMzg1NzcxLDEwLjk5OTk5OSAzLDExLjIyMzg1NzUgMywxMS40OTk5OTkgTDMsMTYuNDk5OTk5IEMzLDE2LjYzMjYzMTIgMy4wNTI1NzkxMiwxNi43NTk4NTE5IDMuMTQ2MzYzNjIsMTYuODUzNjM2NCBDMy4yNDAxNDgxMiwxNi45NDc0MjA5IDMuMzY3MzY4NzksMTcuMDAwMDc1MSAzLjUsMTYuOTk5OTk5IEwxNy41LDE2Ljk5OTk5OSBDMTcuNjMyNjMxNCwxNy4wMDAwNzUxIDE3Ljc1OTg1MiwxNi45NDc0MjA5IDE3Ljg1MzYzNjUsMTYuODUzNjM2NCBDMTcuOTQ3NDIxLDE2Ljc1OTg1MTkgMTgsMTYuNjMyNjMxMiAxOCwxNi40OTk5OTkgTDE4LDExLjQ5OTk5OSBDMTgsMTEuMzY3MzY4NiAxNy45NDc0MjEsMTEuMjQwMTQ4IDE3Ljg1MzYzNjUsMTEuMTQ2MzYzNSBDMTcuNzU5ODUyLDExLjA1MjU3OSAxNy42MzI2MzE0LDEwLjk5OTkyNDcgMTcuNSwxMC45OTk5OTkgQzE3LjM2NzM2ODgsMTAuOTk5OTI0NyAxNy4yNDAxNDgxLDExLjA1MjU3OSAxNy4xNDYzNjM2LDExLjE0NjM2MzUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==", clear: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2xlYXIgdXBsb2FkZWQgZmlsZTwvdGl0bGU+CiAgICA8ZyBpZD0iY2xlYXItdXBsb2FkZWQtZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTE2LjgyNTEzNjUsNC4wMTU0OCBDMTcuMDU4Mjg3OCwzLjc4MzE4NTQgMTcuMDU4Mjg3OCwzLjQwNjUxODQzIDE2LjgyNTEzNjUsMy4xNzQyMjA5NSBDMTYuNTkzMzMyLDIuOTQxOTI2MzUgMTYuMjE3MTU1MSwyLjk0MTkyNjM1IDE1Ljk4NDQ5NDUsMy4xNzQyMjA5NSBMMTAuMDAwMjM0OCw5LjE1ODcyNDYyIEw0LjAxNTQ4LDMuMTc0MjIwOTUgQzMuNzgzMTg1NCwyLjk0MTkyNjM1IDMuNDA2NTE4NDMsMi45NDE5MjYzNSAzLjE3NDIyMDk1LDMuMTc0MjIwOTUgQzIuOTQxOTI2MzUsMy40MDY1MTU1NiAyLjk0MTkyNjM1LDMuNzgzMTgyNTMgMy4xNzQyMjA5NSw0LjAxNTQ4IEw5LjE1ODg1Mzc4LDEwLjAwMDExMjggTDMuMTc0MjIwOTUsMTUuOTg1MTExNiBDMi45NDE5MjYzNSwxNi4yMTc1MjgyIDIuOTQxOTI2MzUsMTYuNTkzNDYwNCAzLjE3NDIyMDk1LDE2LjgyNTg3NTYgQzMuNDA2NTE1NTYsMTcuMDU4MjkyMiAzLjc4MzE4MjUzLDE3LjA1ODI5MjIgNC4wMTU0OCwxNi44MjU4NzU2IEwxMC4wMDAyMzQ4LDEwLjg0MTM3MTkgTDE1Ljk4NDQ5NDUsMTYuODI1ODc1NiBDMTYuMjE3MTU2NSwxNy4wNTgyOTIyIDE2LjU5MzQ1NjEsMTcuMDU4MjkyMiAxNi44MjUxMzY1LDE2LjgyNTg3NTYgQzE3LjA1ODI4NzgsMTYuNTkzODI2MyAxNy4wNTgyODc4LDE2LjIxNzUyNjcgMTYuODI1MTM2NSwxNS45ODUxMTE2IEwxMC44NDEzNjQ3LDEwLjAwMDExMjggTDE2LjgyNTEzNjUsNC4wMTU0OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+" }, n2.IMAGE_FILE_EXTENSIONS = ["jpg", "jpeg", "png", "gif", "bmp", "svg", "ico", "webp"], n2.MIMETYPE_TO_FILE_EXTENSION_MAP = { "image/jpeg": n2.IMAGE_FILE_EXTENSIONS[1], "image/jpg": n2.IMAGE_FILE_EXTENSIONS[0], "image/png": n2.IMAGE_FILE_EXTENSIONS[2], "image/gif": n2.IMAGE_FILE_EXTENSIONS[3], "image/bmp": n2.IMAGE_FILE_EXTENSIONS[4], "image/svg+xml": n2.IMAGE_FILE_EXTENSIONS[5], "image/x-icon": n2.IMAGE_FILE_EXTENSIONS[6], "image/webp": n2.IMAGE_FILE_EXTENSIONS[7] }, n2.defaultFileUploadProps = { marginTop: 2, marginRight: 2, marginBottom: 2, marginLeft: 2, maxSize: 2048, accept: "", isPreviewEnabled: true, isDownloadEnabled: true, isClearEnabled: true, valuePath: "dataUrl" }, u = function(t3) {
          return t3 && "string" == typeof t3.name && (t3.blob && t3.blob instanceof Blob || t3.dataUrl && "string" == typeof t3.dataUrl);
        }, n2.Ile = u, s = function(t3) {
          var e3, i3, r2 = { name: "" };
          return "string" == typeof t3 ? r2.dataUrl = t3 : t3 instanceof Blob ? (r2.blob = t3, r2.name = null !== (e3 = t3.name) && void 0 !== e3 ? e3 : "") : t3 instanceof Object && (r2 = t3, t3 && t3.hasOwnProperty("blob") && t3.blob instanceof Blob && !t3.hasOwnProperty("name") && (t3.name = null !== (i3 = t3.blob.name) && void 0 !== i3 ? i3 : "")), (0, n2.Ile)(r2) ? r2 : void 0;
        }, c = function(t3) {
          var n3 = crypto && crypto.randomUUID && crypto.randomUUID();
          return i2.Common.lt.ht(n3) && (n3 = "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (function(t4) {
            return (t4 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t4 / 4).toString(16);
          }))), 32 === t3 && (n3 = n3.split("-").join("")), n3;
        }, n2.Wgt = c, f = function(t3, e3, i3, r2) {
          var o2, a2, u2, c2, f2, l2 = t3.row, h2 = t3.col, d2 = t3.value, v2 = t3.oldValue, p = t3.valuePath, g = t3.fileGUID, m = e3.GRe(), b = e3.Ut.getFileGUID(l2, h2), y = m.Mdt(b);
          if (y && m.iPt([b]), o2 = s(d2)) if (a2 = null != g ? g : (0, n2.Wgt)(), u2 = function(t4) {
            var n3, o3, a3, u3, s2, c3, f3, g2, m2, b2 = t4.name, y2 = t4.dataUrl;
            r2 && (a3 = p, null === p && (a3 = "cellValue"), t4[a3] = d2), u3 = false, s2 = e3.BO(), t4.type.indexOf("image") > -1 ? (s2.getImage(y2) && (u3 = true), s2.addImage(y2, "anonymous")) : (u3 = true, c3 = null === (o3 = null === (n3 = e3.getParent()) || void 0 === n3 ? void 0 : n3.options) || void 0 === o3 ? void 0 : o3.builtInFileIcons, f3 = b2.split(".").pop(), (g2 = null == c3 ? void 0 : c3[f3]) && (s2.getImage(g2) || (u3 = false), s2.addImage(g2, "anonymous"))), i3 && (m2 = { name: t4.name, blob: t4.blob, dataUrl: y2 }, e3.getParent().commandManager().execute({ cmd: "uploadFile", sheetName: e3.name(), row: l2, col: h2, newValue: m2, oldValue: v2, fileGUID: t4.id, oldFileWrapper: null, newFileWrapper: t4, valuePath: p })), u3 && s2.Zh();
          }, o2.blob && o2.dataUrl) c2 = m.MRe(o2.name, o2.blob, o2.dataUrl, a2), i3 || e3.Ut.setFileGUID(l2, h2, a2), u2(c2);
          else {
            if (f2 = m.Bdt({ id: a2, name: o2.name, dataUrl: o2.dataUrl, blob: o2.blob, postCreateFile: function(t4) {
              r2 && (t4.cellValue = d2);
            } }), !f2) return;
            i3 || e3.Ut.setFileGUID(l2, h2, a2), f2.then((function(t4) {
              u2(t4);
            }));
          }
          else i3 ? e3.getParent().commandManager().execute({ cmd: "uploadFile", sheetName: e3.name(), row: l2, col: h2, newValue: void 0, oldValue: v2, fileGUID: b, oldFileWrapper: y, newFileWrapper: null, valuePath: p }) : e3.Ut.setFileGUID(l2, h2, void 0);
        }, n2.fur = f, n2.getValueByValuePath = d, n2.isFileInfoEqual = v, l = function(t3) {
          var n3, e3, i3, r2 = t3.startsWith("data:image/svg+xml");
          if (r2) return n3 = atob(t3.split(",")[1]), (i3 = (e3 = new DOMParser()).parseFromString(n3, "image/svg+xml")).documentElement;
        }, n2.jfr = l, h = function(t3, n3, e3, i3) {
          var r2 = Math.min(e3 / t3, i3 / n3), o2 = t3 * r2, a2 = n3 * r2;
          return { width: o2, height: a2 };
        }, n2.EJi = h;
      }, "./dist/plugins/celltype/hyperlinkcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G = this && this.qKr || (U = function(t3, n3) {
          return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, U(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          U(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), U;
        function H(t3, n3) {
          t3.removeChild(n3);
        }
        function V(t3) {
          return ["_blank", "_self", "_parent", "_top"][t3];
        }
        function z(t3, n3, e3, i3, r2, o2) {
          var a2 = 0, u2 = 0, s2 = t3.width, c2 = t3.height;
          return a2 = o2 = o2 || 0, 1 === i3 ? a2 = (s2 - n3) / 2 : 2 === i3 ? a2 = s2 - n3 - o2 : 5 === i3 && (a2 = (s2 - n3) / 2), 1 === r2 ? u2 = (c2 - e3) / 2 : 2 === r2 && (u2 = c2 - e3), { x: a2, y: u2 };
        }
        function Y(t3, n3, e3, i3) {
          var r2 = K(t3, e3, n3), o2 = r2.width;
          return o2 += true == (1 !== n3.hAlign && !c(i3)) ? i3 : 0, r2.width = o2, r2;
        }
        function Z(t3, n3, e3, i3, r2) {
          var o2 = K(t3, e3, n3, i3.width), a2 = z(i3, o2.width, o2.height, n3.hAlign, n3.vAlign, r2);
          return o2.x = a2.x, o2.y = a2.y, o2;
        }
        function W(t3, n3) {
          var e3 = X(n3), i3 = t3 - 3 - e3;
          return 5 === n3.hAlign && (i3 -= e3), i3 -= 1;
        }
        function Q(t3, n3, e3, i3) {
          var o2 = W(n3, e3), a2 = r.q.Q3e(t3);
          return 1 === a2.length && 0 === a2[0].prefixSpaceCount ? m(0, r.q.Wt(a2[0].word, i3, true)) : o2;
        }
        function K(t3, n3, e3, i3) {
          var o2, a2 = l(n3), u2 = 5 === e3.hAlign && i3 ? Q(t3, i3, e3, n3) : Math.max(0, r.q.Wt(t3, n3, true)), s2 = 1;
          return t3 && (s2 = t3.split(L).length), { x: 0, y: 0, width: u2, height: o2 = s2 * a2 };
        }
        function J(t3, n3, e3, i3, o2, a2, u2) {
          var s2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2 = a2.sheet, S2 = C2.Dn;
          if (c(i3)) return false;
          if (u2 || (s2 = t3.getText(C2.getValue(a2.row, a2.col, a2.sheetArea), a2), c(s2) || (u2 = s2 + "")), !u2) return false;
          for (o2 = i3.cellType.An(o2, i3, C2.zoom()), u2 = u2.replace(/\s+/g, " "), f2 = i3 && i3.font ? i3.font : S2.Nn(), f2 = S2._n(f2), l2 = [u2], h2 = X(i3), (i3.wordWrap || 5 === i3.hAlign) && (d2 = o2.width - 3 - h2, 5 === i3.hAlign && (d2 -= h2), u2 = (l2 = r.q.un(u2, d2, f2)).join("\r\n")), v2 = Z(u2, i3, f2, o2, h2), p2 = o2.y + v2.y, g2 = 0; g2 < l2.length; g2++) if (m2 = Z(l2[g2], i3, f2, o2, h2), y2 = o2.x + m2.x, w2 = b(y2 + m2.width, o2.x + o2.width), p2 = b((M2 = p2) + m2.height, o2.y + o2.height), y2 <= n3 && n3 < w2 && M2 <= e3 && e3 < p2) return true;
          return false;
        }
        function X(t3) {
          return 8 * (t3.textIndent || 0);
        }
        function q(t3, n3, e3, i3, o2) {
          var u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
          if (c(t3) && (t3 = ""), u2 = i3 && i3.sheet) {
            if (l2 = u2.Dn, h2 = n3.font || l2.Nn(), e3 > 1 && (h2 = l2._n(h2)), d2 = X(n3), n3.wordWrap || o2) {
              if (n3.wordWrap) {
                if (v2 = i3.row, p2 = i3.col, g2 = i3.sheetArea, m2 = 0, b2 = u2.Ut.findSpan(v2, p2, g2)) {
                  if (b2.row >= v2 && b2.rowCount <= 1 && b2.col >= p2 && p2 === b2.col && (m2 = u2.nn(p2, g2), b2.colCount > 1)) for (y2 = p2 + 1; y2 < p2 + b2.colCount; y2++) m2 += u2.nn(y2, g2);
                } else m2 = u2.nn(p2, g2);
                if (s2 = a(n3, 1), (f2 = a(n3, 3)) > 0 && (m2 -= f2), s2 > 0 && (m2 -= s2), w2 = r.q.un(t3, m2 - 3 - d2, h2), o2 && t3.split(L).length > 1) {
                  for (M2 = 0, C2 = 0; C2 < w2.length; C2++) M2 = Math.max(M2, Y(w2[C2], n3, h2, X(n3)).width);
                  return M2;
                }
                o2 || (t3 = w2.join("\r\n"));
              }
            } else t3 = t3.replace(/\s+/g, " ");
            return S2 = Y(t3, n3, h2, X(n3)), o2 ? S2.width : S2.height;
          }
          return 0;
        }
        function $(t3, n3) {
          var e3, i3, r2 = t3.replace(/:\/*/, "://");
          return r2.endsWith("://") || (r2 = r2.replace(/\/+$/, "")), e3 = r2.endsWith("/") ? "" : "/", i3 = n3.replace(/^\/+/, ""), "".concat(r2).concat(e3).concat(i3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.HyperLink = n2.HyperLinkTargetType = void 0, i2 = e2("Common"), o = (r = e2("Core")).CellTypes.Context, a = o.gn, u = r.CellTypes.Text, s = r.mt.En, c = i2.Common.lt.ht, f = i2.Common.zf.TY, l = r.mt.vt, h = r.mt.Tt, d = h.mozilla, v = r.GC$, p = v.each, g = null, m = Math.max, b = Math.min, y = Math.floor, w = window.open, M = "position", C = "absolute", S = "margin", T = "font", x = "left", A = "top", I = "padding", k = "border", N = "box-sizing", j = "background-color", D = "content-box", _ = "default", O = "white", E = "div", R = "hyperlinkInfo", L = /\r\n|\r|\n/, (function(t3) {
          t3[t3.blank = 0] = "blank", t3[t3.self = 1] = "self", t3[t3.parent = 2] = "parent", t3[t3.top = 3] = "top";
        })(F = n2.HyperLinkTargetType || (n2.HyperLinkTargetType = {})), B = { linkColor: "#0066cc", visitedLinkColor: "#3399ff", text: "", linkToolTip: "", target: 0, activeOnClick: true }, P = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "8", e3.AQe = false, e3.allowOverflow = false, n4 = e3, e3._id = e3.MY(), p(B, (function(t4, e4) {
              n4["_" + t4] = e4;
            })), e3._onAction = function(t4) {
              var n5, e4, i3 = t4 && t4.sheet, r2 = i3 && i3.getParent(), o2 = t4.row, a2 = t4.col, u2 = t4.sheetArea, s2 = i3.getValue(o2, a2, u2), c2 = V(this._target);
              s2 && (s2 = "" + s2, r2 && (null === (e4 = null === (n5 = r2.docProps) || void 0 === n5 ? void 0 : n5.appDocProps) || void 0 === e4 ? void 0 : e4.hyperlinkBase) && (s2 = $(r2.docProps.appDocProps.hyperlinkBase, s2)), w(f(s2), c2));
            }, e3;
          }
          return G(n3, t3), n3.prototype.MY = function() {
            var t4, n4;
            return c(this._id) && (this._id = "0"), n4 = "id_" + (t4 = parseInt(this._id, 10)), t4++, this._id = t4 + "", n4;
          }, n3.prototype.AY = function(n4, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2, A2 = 1, I2 = x, k2 = u2.hAlign, N2 = u2.vAlign, j2 = s2.lineHeight, D2 = c2.length;
            if (A2 += e3, 1 === k2 ? (A2 = o2 / 2, I2 = "center") : 2 === k2 && (A2 = o2 - 1, A2 -= e3, I2 = "right"), n4.textAlign !== I2 && (n4.textAlign = I2), v2 = 1, p2 = "alphabetic", v2 += j2 - (b2 = j2 / 2 - (g2 = parseInt(s2.fontInfo.fontSize, 10)) / 2 + (m2 = g2 > 8 ? y((g2 - 8) / 5 + 2) : 1) - 1), 1 === N2 ? j2 < a2 && (v2 = d ? (a2 - f2) / 2 + 1 : h.msie ? (a2 - f2) / 2 + 0.5 : (a2 - f2) / 2, y(v2) !== v2 && (v2 += 0.5), v2 += j2 / 2 - b2) : 2 === N2 && (v2 = a2 - f2 - 2.5 - b2), n4.textBaseline !== p2 && (n4.textBaseline = p2), w2 = r2 + v2, 5 === k2) u2.textDecoration = null !== (l2 = u2.textDecoration) && void 0 !== l2 ? l2 : 1, M2 = o2 - 3 - 2 * e3, M2 -= 1, t3.prototype.Z3e.call(this, n4, c2, i3, w2, M2, o2 / 2, 1 + e3, j2, u2, g2, m2);
            else for (C2 = 0; C2 < D2; C2++) n4.fillText(c2[C2], i3 + A2, w2), S2 = n4.measureText(c2[C2]).width, (T2 = u2.textDecoration) && this.le(n4, T2, i3 + A2, w2, S2, g2, m2), w2 += j2;
          }, n3.prototype.IY = function(t4, n4, e3, i3, o2, a2, u2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, b2 = u2.hAlign, w2 = u2.vAlign, M2 = s2.lineHeight, C2 = c2.length, S2 = 0, T2 = 0, x2 = 0, A2 = 0;
            for (2 !== b2 && (x2 = 1), 2 === u2.vAlign && (A2 = -2.5), A2 -= m(0, Math.round(M2 / 9) - 1), t4.strokeStyle !== t4.fillStyle && (t4.strokeStyle = t4.fillStyle), v2 = s2.fontInfo.fontSize, p2 = y((v2 - 12) / 21 + 1), t4.lineWidth = p2, t4.beginPath(), g2 = 0; g2 < C2; g2++) f2 = t4.measureText(c2[g2]).width, h2 = (l2 = x2 + e3 + (d2 = z(new r.Rect(e3, i3, o2, a2), f2, M2 * C2, b2, w2, n4)).x) + f2, S2 = A2 + i3 + d2.y + M2, y(S2) === S2 && (S2 += 0.5), T2 = S2, t4.moveTo(l2, S2), t4.lineTo(h2, T2), t4.stroke(), A2 += M2;
          }, n3.prototype.paintValue = function(t4, n4, e3, i3, o2, a2, u2, s2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = this;
            if (t4 && (f2 = k2.getText(n4, s2), !c(f2))) {
              for (l2 = (f2 += "").split(L), h2 = 0; h2 < l2.length; ) l2[h2] = l2[h2].replace(/\s+/g, " "), h2++;
              f2 = l2.join("\r\n"), d2 = false, v2 = s2.sheet.Ut, p2 = s2.row, g2 = s2.col, m2 = s2.sheetArea, (b2 = k2.AQe ? k2._Qe(s2.sheet, p2, g2, m2) : v2.getValueForKey(p2, g2, R, m2)) && (k2._id === b2.id ? d2 = b2.visited : v2.do("setValueForKey", p2, g2, R, void 0, m2)), t4.save(), t4.beginPath(), (y2 = d2 ? k2._visitedLinkColor : k2._linkColor) && t4.fillStyle !== y2 && (t4.fillStyle = y2), (w2 = u2.font) && t4.font !== w2 && r.mt.bt(t4, w2), M2 = X(u2), s2.sheet.outlineColumn && s2.sheet.outlineColumn.Un(s2.col) && (M2 = 0), S2 = [], T2 = 0, x2 = 0, (C2 = u2.wordWrap) || 5 === u2.hAlign ? (A2 = o2 - 3 - M2, 5 === u2.hAlign && (A2 -= M2), A2 -= 1, (T2 = (S2 = r.q.un(f2, A2, w2)).length) > 1 && 0 !== u2.vAlign && (x2 = (T2 - 1) * (I2 = s2.lineHeight))) : S2.push(f2), t4.rect(e3, i3, o2, a2), t4.clip(), t4.beginPath(), k2.AY(t4, M2, e3, i3, o2, a2, u2, s2, S2, x2), 5 !== u2.hAlign && k2.IY(t4, M2, e3, i3, o2, a2, u2, s2, S2), t4.restore();
            }
          }, n3.prototype.Rn = function(n4, e3, i3, r2) {
            this.Bto && (c(e3.textDecoration) ? e3.textDecoration = 1 : 2 !== e3.textDecoration && 4 !== e3.textDecoration || (e3.textDecoration += 1), t3.prototype.Rn.call(this, n4, e3, i3, r2));
          }, n3.prototype.getText = function(t4, n4) {
            var e3, i3 = this._text || t4;
            return (c(i3) || "" === i3) && n4.sheet && n4.sheet.getActualText ? n4.sheet.getActualText(t4, n4) : this._text || (null === (e3 = n4.sheet) || void 0 === e3 ? void 0 : e3.getText(n4.row, n4.col)) || t4;
          }, n3.prototype.j3 = function(t4, n4, e3, i3) {
            if (!t4.Ai) {
              var r2 = t4.parent;
              r2 && r2.j3(t4, n4, e3, i3);
            }
          }, n3.prototype.getHitInfo = function(t4, n4, e3, i3, r2) {
            var o2, a2 = this;
            return r2 && (o2 = r2.sheetArea, c(o2) && (o2 = 3), e3 && i3) ? { x: t4, y: n4, row: r2.row, col: r2.col, cellStyle: e3, cellRect: i3, sheetArea: o2, isFocusAware: true, sheet: r2.sheet, isReservedLocation: J(a2, t4, n4, e3, i3, r2, a2._text) } : g;
          }, n3.prototype.processMouseDown = function(t4) {
            var n4 = t4 && t4.sheet, e3 = this;
            n4 && !n4.isEditing() && t4.isReservedLocation && (e3.xY = true);
          }, n3.prototype.processMouseUp = function(t4) {
            var n4, e3 = t4 && t4.sheet;
            e3 && !e3.isEditing() && (n4 = this, t4.isReservedLocation && n4.xY && n4.NY(t4), n4.xY = false);
          }, n3.prototype.processMouseMove = function(t4) {
            var n4, e3 = t4.row, i3 = t4.col, r2 = t4.sheet, o2 = this;
            !r2 || r2.isEditing() && r2.getActiveRowIndex() === e3 && r2.getActiveColumnIndex() === i3 || (n4 = r2.Dg(), t4.isReservedLocation ? n4 && (o2.kY(r2, t4), n4.style.cursor = "pointer") : (o2.DY(r2), n4 && (n4.style.cursor = _)));
          }, n3.prototype.processMouseLeave = function(t4) {
            var n4, e3 = t4.sheet, i3 = this;
            i3.xY = false, i3.DY(e3), e3 && (n4 = e3.Dg()) && (n4.style.cursor = _);
          }, n3.prototype.kY = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2 = this;
            s2._linkToolTip && ((e3 = s2._Y()).className = "gc-spread-hyperlink-celltype-tooltip", (i3 = v(e3)).text(s2._linkToolTip), o2 = (r2 = t4.rt.it()).left + n4.x, a2 = r2.top + n4.y + 20, 0 === i3.parent().length && ((u2 = t4 && t4.qc()) && u2.insertBefore(e3, g), i3.css(A, a2).css(x, o2)));
          }, n3.prototype.DY = function(t4) {
            var n4, e3 = this;
            e3.EY && ((n4 = t4 && t4.qc()) && e3.EY.parentElement === n4 && H(n4, e3.EY), e3.EY = g);
          }, n3.prototype._Y = function() {
            var t4, n4 = this;
            return n4.EY || (t4 = s(E), v(t4).css(M, C).css(S, 0).css(I, 2).css(k, "1px #c0c0c0 solid").css("box-shadow", "1px 2px 5px rgba(0,0,0,0.4)").css(N, D).css(j, O).css(T, "9pt Arial"), n4.EY = t4), n4.EY;
          }, n3.prototype.isReservedKey = function(t4, n4) {
            return 32 === t4.keyCode && !t4.ctrlKey && !t4.shiftKey && !t4.altKey;
          }, n3.prototype.processKeyUp = function(t4, n4) {
            var e3, i3;
            return !!n4.sheet && (this.NY(n4), true);
          }, n3.prototype.getAutoFitWidth = function(t4, n4, e3, i3, r2) {
            return q(this._text || n4, e3, i3, r2, true);
          }, n3.prototype.getAutoFitHeight = function(t4, n4, e3, i3, r2) {
            return q(this._text || n4, e3, i3, r2);
          }, n3.prototype.isImeAware = function(n4) {
            return !!this.Bto && t3.prototype.isImeAware.call(this, n4);
          }, n3.prototype.NY = function(t4) {
            var n4 = t4 && t4.sheet, e3 = this, i3 = t4.row, r2 = t4.col, o2 = t4.sheetArea, a2 = e3.onClickAction();
            a2.call(this, t4), this.AQe ? e3.DQe(n4, i3, r2, o2) : n4.Ut.do("setValueForKey", i3, r2, R, { id: e3._id, visited: true }, o2), n4.repaint(n4.getCellRect(i3, r2, 1 === o2 ? -1 : g, 2 === o2 ? -1 : g)), e3.j3(n4, i3, r2, o2);
          }, n3.prototype._Qe = function(t4, n4, e3, i3) {
            return g;
          }, n3.prototype.DQe = function(t4, n4, e3, i3) {
          }, n3.prototype.onClickAction = function(t4) {
            return 0 === arguments.length ? this._onAction : (t4 && (this._onAction = t4), this);
          }, n3.prototype.Je = function(t4) {
            var n4 = { linkColor: t4.linkColor, visitedLinkColor: t4.visitedLinkColor, text: t4.text, linkToolTip: t4.linkToolTip, target: t4.target && F[t4.target], activeOnClick: t4.activeOnClick };
            this.fromJSON(n4);
          }, n3.prototype.toJSON = function() {
            var t4, n4 = this, e3 = { typeName: n4.typeName };
            return p(B, (function(i3, r2) {
              (t4 = n4["_" + i3]) !== r2 && (e3[i3] = t4);
            })), e3;
          }, n3.prototype.fromJSON = function(t4) {
            var n4 = this;
            p(B, (function(e3) {
              var i3 = t4[e3];
              c(i3) || (n4["_" + e3] = i3);
            }));
          }, n3.prototype.jn = function(n4) {
            if (this.Bto) return t3.prototype.jn.call(this, n4);
          }, n3.prototype.Ke = function() {
            var t4, e3 = this, i3 = new n3();
            return p(B, (function(n4, r2) {
              (t4 = e3["_" + n4]) !== r2 && (i3["_" + n4] = t4);
            })), i3._onAction = e3._onAction, i3;
          }, n3;
        })(u), n2.HyperLink = P, p(B, (function(t3) {
          P.prototype[t3] = function(n3) {
            return 0 === arguments.length ? this["_" + t3] : (this["_" + t3] = n3, this);
          };
        })), r.CellTypes.ti[8] = P;
      }, "./dist/plugins/celltype/radiochecklistcelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L = this && this.qKr || (B = function(t3, n3) {
          return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, B(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          B(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), F = this && this.nJr || function() {
          return F = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, F.apply(this, arguments);
        }, B;
        function P(t3, n3) {
          return t3.hasOwnProperty(n3);
        }
        function G(t3, n3) {
          return t3 instanceof Date && n3 instanceof Date ? u(t3) === u(n3) : !p(t3) && !p(n3) && t3.toString && n3.toString ? t3.toString() === n3.toString() : t3 === n3;
        }
        function U(t3) {
          var n3, e3, i3, r2, o2 = ["0", "0", "0", "0"];
          return typeof t3 === S && (i3 = void 0, r2 = void 0, 1 === (e3 = (n3 = t3.split(" ", 4)).length) ? o2 = [i3 = n3[0], i3, i3, i3] : 2 === e3 ? o2 = [i3 = n3[0], r2 = n3[1], i3, r2] : 3 === e3 ? (r2 = n3[1], o2 = [n3[0], r2, n3[2], r2]) : 4 === e3 && (o2 = [n3[0], n3[1], n3[2], n3[3]])), o2;
        }
        function H(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = n3.getValue(e3, i3, o2), c2 = t3.wG(s2, r2), f2 = { cmd: "editCell", sheetName: n3.name(), row: e3, col: i3, newValue: c2, autoFormat: false };
          n3.dataRanges && (a2 = n3.dataRanges.getByPosition(e3, i3)) && (u2 = a2.convertContext({ sheet: n3, row: e3, col: i3, sheetArea: o2 })) && u2.sheet !== n3 && (f2.sheetName = u2.sheet.name(), f2.row = u2.row, f2.col = u2.col), n3.Qy().execute(f2), t3.triggerButtonClicked(n3, e3, i3, o2);
        }
        function V(t3, n3, e3, i3, r2, o2) {
          var a2 = n3.zoom(), u2 = W(t3, e3), s2 = c(u2, o2), f2 = i3;
          return t3._items.length < i3 && (f2 = t3._items.length), s2 * f2 + t3._itemSpacing.vertical * a2 * (f2 - 1);
        }
        function z(t3, n3, e3, i3, r2, o2) {
          var a2 = 0, u2 = n3.zoom(), s2 = t3._textAlign === I.inside && "toggle" === t3._mode, c2 = s2 ? 0 : t3.defaultPadding * u2, f2 = Y(t3, n3, e3, i3, r2);
          return s2 || f2.forEach((function(t4) {
            a2 += t4;
          })), a2 += r2 * (o2 + c2) + (r2 - 1) * t3._itemSpacing.horizontal * u2;
        }
        function Y(t3, n3, e3, i3, r2) {
          var o2, a2, u2, f2, l2 = [], h2 = t3._Jr(e3.font, n3), d2 = c.apply(void 0, h2), p2 = t3._textAlign === I.inside && "toggle" === t3._mode;
          for (o2 = 0; o2 < t3._items.length; o2++) a2 = p2 ? d2 : h2[o2], (u2 = t3.jY()).hasMargin && (a2 = a2 + u2.paddingLeft + u2.paddingRight), f2 = s(o2 % r2), t3._direction === A.vertical && (f2 = s(o2 / i3)), l2[f2] === v ? l2[f2] = a2 : l2[f2] = Math.max(l2[f2], a2);
          return l2;
        }
        function Z(t3, n3, e3) {
          var i3 = x * e3;
          return "number" == typeof t3 && t3 >= 0 ? i3 = t3 * e3 : "auto" === t3 && (i3 = w(n3) / 2), i3;
        }
        function W(t3, n3) {
          var e3 = w(n3.font), i3 = t3.jY();
          return i3.hasMargin && (e3 = e3 + i3.paddingTop + i3.paddingBottom), e3;
        }
        function Q(t3, n3, e3, i3) {
          var r2 = X(t3) * e3, o2 = r2;
          return 1 === t3.hAlign ? o2 = (n3.width - i3) / 2 : 2 === t3.hAlign && (o2 = n3.width - r2 - i3), o2;
        }
        function K(t3, n3, e3, i3) {
          var r2 = 2 * e3, o2 = r2;
          return 1 === t3.vAlign ? n3.height - r2 > i3 && (o2 = (n3.height - i3 - r2) / 2 + r2) : 2 === t3.vAlign && (o2 = n3.height - i3 - r2), o2;
        }
        function J(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, l2, h2;
          if (t3._direction === A.vertical) {
            if (t3._isFlowLayout) {
              if (r2 !== v) for (u2 = t3._items.length; u2 > 0; ) {
                if (!((s2 = V(t3, n3, e3, u2, f(t3._items.length / u2), a2)) > r2)) return [u2 = c(u2, 1), f(t3._items.length / u2)];
                u2 -= 1;
              }
              return [t3._items.length, 1];
            }
            return [u2 = c(1, t3._maxRowCount), f(t3._items.length / u2)];
          }
          if (t3._isFlowLayout) {
            if (i3 !== v) for (l2 = t3._items.length; l2 > 0; ) {
              if (!((h2 = z(t3, n3, e3, f(t3._items.length / l2), l2, o2)) > i3)) return l2 = c(l2, 1), [f(t3._items.length / l2), l2];
              l2 -= 1;
            }
            return [1, t3._items.length];
          }
          return l2 = c(1, t3._maxColumnCount), [f(t3._items.length / l2), l2];
        }
        function X(t3) {
          var n3 = t3.textIndent;
          return 1 === t3.hAlign || 0 === n3 || n3 === d || n3 === v ? 2 : 8 * n3;
        }
        function q(t3, n3, e3, r2) {
          var o2, a2, u2 = n3.cellRect.width, f2 = n3.cellRect.height, l2 = n3.sheet, h2 = l2.zoom(), d2 = J(t3, l2, n3.cellStyle, u2 - 1, f2, e3, r2), v2 = d2[0], p2 = d2[1], g2 = Y(t3, l2, n3.cellStyle, v2, p2), m2 = t3._textAlign === I.inside && "toggle" === t3._mode, b2 = m2 ? 0 : t3.defaultPadding * h2, y2 = c(W(t3, n3.cellStyle), r2), w2 = z(t3, l2, n3.cellStyle, v2, p2, e3), M2 = V(t3, l2, n3.cellStyle, v2, p2, r2), S2 = Q(n3.cellStyle, n3.cellRect, h2, w2), T2 = K(n3.cellStyle, n3.cellRect, h2, M2), x2 = t3._Jr(n3.cellStyle.font, l2), k2 = c.apply(void 0, x2), N2 = function(r3) {
            var o3, a3, u3, c2, f3, l3, d3, w3 = m2 ? k2 : x2[r3], M3 = s(r3 / p2), N3 = r3 % p2;
            if (t3._direction === A.vertical && (M3 = r3 % v2, N3 = s(r3 / v2)), o3 = new i2.Rect(), a3 = 0, m2 || (u3 = g2.filter((function(t4, n4) {
              return n4 < N3;
            }))).forEach((function(t4) {
              a3 += t4;
            })), o3.x = S2 + a3 + N3 * (e3 + b2 + t3._itemSpacing.horizontal * h2), o3.y = T2 + M3 * y2 + t3._itemSpacing.vertical * h2 * M3, c2 = t3.jY(), f3 = e3 + b2, m2 ? f3 += 0 : t3._textAlign !== I.right || c2.hasMargin ? f3 += g2[N3] : f3 += w3, o3.width = f3, o3.height = y2, l3 = n3.x - n3.cellRect.x, d3 = n3.y - n3.cellRect.y, o3 && o3.contains(l3, d3)) return { value: { value: P(t3._items[r3], C) ? t3._items[r3].value : t3._items[r3] } };
          };
          for (o2 = 0; o2 < t3._items.length; o2++) if ("object" == typeof (a2 = N2(o2))) return a2.value;
        }
        function $(t3, n3) {
          var e3, i3 = false, r2 = P(t3, C) ? t3.value : t3;
          if (n3 !== d) if (Array.isArray(n3)) {
            for (e3 = 0; e3 < n3.length; e3++) if (G(n3[e3], r2)) {
              i3 = true;
              break;
            }
          } else i3 = G(n3, r2);
          return i3;
        }
        function tt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2;
          if (i3) return n3;
          for (t3 === d && (t3 = []), Array.isArray(t3) || (t3 = [t3]), r2 = {}, e3.forEach((function(t4) {
            r2[P(t4, C) ? t4.value : t4] = true;
          })), o2 = t3.length - 1; o2 >= 0; o2--) r2[t3[o2]] || t3.splice(o2, 1);
          if (-1 === (u2 = (a2 = t3.slice()).indexOf(n3))) a2.push(n3);
          else for (o2 = a2.length - 1; o2 >= 0; o2--) G(a2[o2], n3) && a2.splice(o2, 1);
          return s2 = [], e3.forEach((function(t4) {
            -1 !== a2.indexOf(t4.value) && s2.push(t4.value);
          })), s2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ButtonList = n2.CheckBoxList = n2.RadioButtonList = n2.SelectionMode = n2.TextAlign = n2.Direction = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/celltype/checkboxcelltype.js"), a = r.Common.lt.tv, u = r.Common.ct.o0, s = Math.floor, c = Math.max, f = Math.ceil, l = "left", h = "alphabetic", d = null, v = void 0, p = r.Common.lt.ht, g = i2.mt.bt, m = i2.CellTypes.Base, b = i2.GC$, y = b.each, w = i2.mt.vt, M = "text", C = "value", S = "string", T = "number", x = 12, (function(t3) {
          t3[t3.horizontal = 0] = "horizontal", t3[t3.vertical = 1] = "vertical";
        })(A = n2.Direction || (n2.Direction = {})), (function(t3) {
          t3[t3.left = 2] = "left", t3[t3.right = 3] = "right", t3[t3.inside = 4] = "inside";
        })(I = n2.TextAlign || (n2.TextAlign = {})), k = { items: d, direction: A.horizontal, maxColumnCount: 1, maxRowCount: 1, isFlowLayout: true, itemSpacing: { horizontal: 20, vertical: 5 }, textAlign: I.right, boxSize: x }, N = { mode: "checkbox", toggleOptions: o.DEFAULT_TOGGLE_OPTIONS }, D = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return L(n3, t3), n3.prototype.BY = function(t4, n4, e3, i3, r2, o2, a2, u2, s2) {
            var f2 = P(e3, C) ? e3.value : e3, l2 = this._Jr(u2.font, o2.sheet), h2 = this.OJr(u2.font, s2, c.apply(void 0, l2)).width, v2 = h2 / 2;
            t4.beginPath(), t4.fillStyle = "white", t4.arc(i3 + v2, r2 + v2, v2, 0, 2 * Math.PI), t4.fill(), t4.beginPath(), t4.strokeStyle = "black", t4.arc(i3 + v2, r2 + v2, v2, 0, 2 * Math.PI), t4.stroke(), n4 !== d && G(n4, f2) && (t4.beginPath(), t4.strokeStyle = "black", t4.arc(i3 + v2, r2 + v2, 0.5 * v2, 0, 2 * Math.PI), t4.fillStyle = "black", t4.fill(), t4.stroke());
          }, n3;
        })(j = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "11", e3.defaultPadding = 5, n4 = e3, y(k, (function(t4, e4) {
              "items" === t4 && (e4 = []), n4["_" + t4] = e4;
            })), e3;
          }
          return L(n3, t3), n3.prototype.OJr = function(t4, n4, e3) {
            var i3 = Z(this._boxSize, t4, n4);
            return { width: i3, height: i3 };
          }, n3.prototype._Jr = function(t4, n4) {
            return this._items.map((function(e3) {
              var i3 = P(e3, M) ? e3.text : e3;
              return n4.Qt(i3, t4);
            }));
          }, n3.prototype.EJr = function() {
            return x;
          }, n3.prototype.paintValue = function(t4, n4, e3, r2, o2, a2, u2, f2) {
            var h2, d2, v2, p2, m2, b2, y2, M2, C2, S2, T2, x2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, Z2, X2, q2, $2, tt2, nt, et, it, rt, ot = this;
            if (t4) {
              for (t4.save(), t4.rect(e3 + 1, r2 + 1, o2 - 2, a2 - 2), t4.clip(), t4.beginPath(), h2 = 0, d2 = 0, p2 = (v2 = f2.sheet).zoom(), m2 = u2.font, b2 = f2.isPrinting, y2 = f2.printZoomFactor, b2 && "number" == typeof y2 && 1 !== y2 && (p2 = y2), M2 = this._Jr(m2, v2), S2 = (C2 = this.OJr(m2, p2, c.apply(void 0, M2))).width, T2 = C2.height, x2 = ot.defaultPadding * p2, k2 = new i2.Rect(e3 + 1, r2 + 1, o2 - 2, a2 - 2), _2 = z(ot, v2, u2, j2 = (N2 = J(ot, v2, u2, o2 - 2, a2 - 2, S2, T2))[0], D2 = N2[1], S2), O2 = V(ot, v2, u2, j2, D2, T2), E2 = Y(ot, v2, u2, j2, D2), R2 = W(ot, u2), L2 = e3 + Q(u2, k2, p2, _2), F2 = r2 + K(u2, k2, p2, O2), (B2 = u2.font) && t4.font !== B2 && g(t4, f2.fontInfo.font), u2.foreColor && (t4.fillStyle = u2.foreColor), P2 = u2.textDecoration, U2 = (G2 = f2.fontInfo.fontSize) > 8 ? s((G2 - 8) / 5 + 2) : 1, H2 = 0, H2 = (d2 = w(u2.font)) / 2 - G2 / 2 + U2 - 1, Z2 = L2, X2 = F2, q2 = 0, $2 = 0, G2 > T2 && (q2 = ot.OY(T2), $2 = (R2 - H2 - this.EJr()) / 2 + 1), tt2 = 0; tt2 < ot._items.length; tt2++) L2 > e3 + o2 || F2 > r2 + a2 || (h2 = M2[tt2], t4.textAlign = l, nt = ot._direction === A.vertical ? E2[s(tt2 / j2)] : E2[tt2 % D2], et = 0, ot._textAlign === I.left ? (ot.RY(t4, ot._items[tt2], n4, h2, L2, F2 + q2, nt, R2, H2), L2 = L2 + nt + x2, t4.save(), ot.BY(t4, n4, ot._items[tt2], L2, F2 + $2, f2, tt2, u2, p2), t4.restore(), et = S2) : ot._textAlign === I.inside ? (t4.save(), ot.BY(t4, n4, ot._items[tt2], L2, F2 + $2, f2, tt2, u2, p2), t4.restore(), L2 += S2) : (t4.save(), ot.BY(t4, n4, ot._items[tt2], L2, F2 + $2, f2, tt2, u2, p2), L2 = L2 + S2 + x2, t4.restore(), ot.RY(t4, ot._items[tt2], n4, h2, L2, F2 + q2, nt, R2, H2), et = nt), P2 && (it = this.jY(), rt = ot._textAlign !== I.left ? 0 : nt + x2, ot.le(t4, P2, L2 - rt + it.paddingLeft, F2 + R2 - H2 - it.paddingBottom, h2, G2, U2)), ot._direction === A.vertical ? (F2 += c(R2, T2) + ot._itemSpacing.vertical * p2, (tt2 + 1) % j2 === 0 && (Z2 = Z2 + (ot._textAlign === I.inside ? 0 : nt) + S2 + (ot._textAlign === I.inside ? 0 : x2) + ot._itemSpacing.horizontal * p2, F2 = r2 + K(u2, k2, p2, O2)), L2 = Z2) : (L2 = L2 + et + ot._itemSpacing.horizontal * p2, (tt2 + 1) % D2 === 0 && (L2 = e3 + Q(u2, k2, p2, _2), X2 = X2 + c(R2, T2) + ot._itemSpacing.vertical * p2), F2 = X2));
              t4.restore();
            }
          }, n3.prototype.OY = function(t4) {
            return (t4 - x) / 2;
          }, n3.prototype.getText = function(t4, n4) {
            return t4;
          }, n3.prototype.RY = function(t4, n4, e3, i3, r2, o2, a2, u2, s2) {
            var c2 = P(n4, M) ? n4.text : n4;
            t4.textBaseline !== h && (t4.textBaseline = h), t4.fillText(c2, r2, o2 + u2 - s2);
          }, n3.prototype.getItemsBound = function(t4, n4, e3, r2) {
            var o2, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, k2, N2, j2, D2 = this, _2 = t4.zoom(), O2 = t4.getActualStyle(n4, e3, r2), E2 = i2.W.V("11pt " + t4.currentTheme().bodyFont(), _2), R2 = E2;
            for (O2.font && (R2 = i2.W.x2e(O2, _2)), O2.font = R2.font, o2 = 1 === r2 ? -1 : void 0, a2 = 2 === r2 ? -1 : void 0, f2 = (u2 = t4.getCellRect(n4, e3, o2, a2)).width, l2 = u2.height, h2 = this._Jr(R2.font, t4), d2 = this.OJr(R2.font, _2, c.apply(void 0, h2)), v2 = d2.width, p2 = d2.height, g2 = J(D2, t4, O2, f2 - 1, l2, v2, p2), m2 = g2[0], b2 = g2[1], y2 = Y(D2, t4, O2, m2, b2), w2 = D2.defaultPadding * _2, M2 = c(W(D2, O2), p2), C2 = z(D2, t4, O2, m2, b2, v2), S2 = V(D2, t4, O2, m2, b2, p2), T2 = Q(O2, u2, _2, C2), x2 = K(O2, u2, _2, S2), k2 = [], N2 = function(t5) {
              var n5, e4, r3, o3, a3, c2 = h2[t5], f3 = s(t5 / b2), l3 = t5 % b2;
              D2._direction === A.vertical && (f3 = t5 % m2, l3 = s(t5 / m2)), n5 = new i2.Rect(), e4 = 0, (r3 = D2._textAlign === I.inside && "toggle" === D2._mode) || (o3 = y2.filter((function(t6, n6) {
                return n6 < l3;
              }))).forEach((function(t6) {
                e4 += t6;
              })), n5.x = T2 + e4 + l3 * (v2 + w2 + D2._itemSpacing.horizontal * _2) + u2.x, n5.y = x2 + f3 * M2 + D2._itemSpacing.vertical * _2 * f3 + u2.y, a3 = D2.jY(), n5.width = (D2._textAlign !== I.right || a3.hasMargin ? y2[l3] : c2) + v2 + w2, n5.height = M2, n5.x > u2.x + u2.width || n5.y > u2.y + u2.height ? k2[t5] = null : k2[t5] = n5;
            }, j2 = 0; j2 < D2._items.length; j2++) N2(j2);
            return k2;
          }, n3.prototype.BY = function(t4, n4, e3, i3, r2, o2, a2, u2, s2) {
          }, n3.prototype.jY = function() {
            return { hasMargin: false, paddingTop: 0, paddingBottom: 0, paddingLeft: 0, paddingRight: 0 };
          }, n3.prototype.getAutoFitWidth = function(t4, n4, e3, i3, r2) {
            var o2 = r2 && r2.sheet, a2 = X(e3), u2 = J(this, o2, e3), s2 = u2[0], f2 = u2[1], l2 = c.apply(void 0, this._Jr(e3.font, o2)), h2 = this.OJr(e3.font, i3, l2).width;
            return (z(this, o2, e3, s2, f2, h2) + a2) / i3;
          }, n3.prototype.getAutoFitHeight = function(t4, n4, e3, i3, r2) {
            var o2 = r2 && r2.sheet, a2 = c.apply(void 0, this._Jr(e3.font, o2)), u2 = this.OJr(e3.font, i3, a2), s2 = u2.height, f2 = u2.width, l2 = J(this, o2, e3, +o2.getColumnWidth(r2.col) * i3, void 0, f2, s2), h2 = l2[0], d2 = l2[1];
            return V(this, o2, e3, h2, d2, s2) / i3;
          }, n3.prototype.getHitInfo = function(t4, n4, e3, r2, o2) {
            var a2, u2, s2, f2, l2, h2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = this;
            return o2 ? (a2 = o2.sheetArea, u2 = o2.sheet, r2 = e3.cellType.An(r2, e3, u2.zoom()), (p(a2) || 3 === a2) && r2 ? (s2 = { x: t4, y: n4, row: o2.row, col: o2.col, cellStyle: e3, cellRect: r2, sheetArea: a2, sheet: u2 }, f2 = u2.zoom(), e3.font && (e3.font = i2.W.x2e(e3, f2).font), l2 = this._Jr(e3.font, u2), v2 = (h2 = this.OJr(e3.font, f2, c.apply(void 0, l2))).width, g2 = h2.height, w2 = z(x2, u2, e3, b2 = (m2 = J(x2, u2, e3, r2.width - 1, r2.height - 2, v2, g2))[0], y2 = m2[1], v2), M2 = V(x2, u2, e3, b2, y2, g2), C2 = r2.x + Q(e3, r2, f2, w2), S2 = r2.y + K(e3, r2, f2, M2), (T2 = new i2.Rect(C2, S2, w2, M2)).contains(s2.x, s2.y) && (s2.isReservedLocation = true), s2) : d) : d;
          }, n3.prototype.processMouseDown = function(t4) {
            if (!t4) return false;
            t4.isReservedLocation && (this.pG = true);
          }, n3.prototype.processMouseLeave = function(n4) {
            if (t3.prototype.processMouseLeave.call(this, n4), !n4) return false;
            this.pG = false;
          }, n3.prototype.Q$r = function(t4) {
            return false;
          }, n3.prototype.RJr = function(t4) {
          }, n3.prototype.processMouseUp = function(t4) {
            var n4, e3, r2, o2, a2, u2, s2, f2, l2, h2, v2, p2, g2, m2, b2, y2;
            if (!t4) return false;
            if (n4 = this, e3 = t4.sheet, n4.pG && e3 && t4.isReservedLocation) {
              if (r2 = { r: d }, i2.CellTypes.Base.et(e3, "beforeEditRadioCheckListCellType", r2), r2.r) return;
              if (n4.pG = false, o2 = t4.row, a2 = t4.col, u2 = t4.sheetArea, s2 = this._Jr(t4.cellStyle.font, e3), l2 = (f2 = this.OJr(t4.cellStyle.font, e3.zoom(), c.apply(void 0, s2))).width, h2 = f2.height, v2 = q(n4, t4, l2, h2)) {
                if (this.Q$r(t4)) {
                  for (p2 = [], g2 = 0; g2 < n4._items.length; g2++) n4._items[g2].value === (null == v2 ? void 0 : v2.value) && p2.push(g2);
                  if (p2.length > 0) return b2 = !!(m2 = e3.getValue(o2, a2, u2)) && m2.findIndex((function(t5) {
                    return t5 === n4._items[p2[0]].value;
                  })) > -1, y2 = { sheet: e3, row: o2, col: a2, sheetArea: u2, rect: t4.cellRect, style: t4.cellStyle, newValue: v2.value, checked: b2, itemsIndex: p2, baseProgress: 0 }, this.RJr(y2), true;
                }
                return H(n4, e3, o2, a2, v2.value, u2), true;
              }
            }
            return false;
          }, n3.prototype.wG = function(t4, n4) {
            return tt(t4, n4, this._items, true);
          }, n3.prototype.triggerButtonClicked = function(t4, n4, e3, i3) {
            var r2 = t4.parent;
            r2 && r2.j3(t4, n4, e3, i3);
          }, n3.prototype.Je = function(t4) {
            var n4 = { items: t4.items, direction: t4.direction && A[t4.direction], maxColumnCount: t4.maxColumnCount, maxRowCount: t4.maxRowCount, isFlowLayout: t4.isFlowLayout, itemSpacing: t4.itemSpacing, textAlign: t4.textAlign && I[t4.textAlign], boxSize: t4.boxSize };
            this.fromJSON(n4);
          }, n3.prototype.toJSON = function() {
            var t4, n4 = this, e3 = { typeName: n4.typeName };
            return y(k, (function(i3, r2) {
              var o2;
              t4 = n4["_" + i3], ("items" === i3 ? t4 && t4.length > 0 : t4 !== r2) && (e3[i3] = "object" == typeof t4 ? a(t4, false) : t4);
            })), e3;
          }, n3.prototype.fromJSON = function(t4) {
            var n4 = this;
            y(k, (function(e3) {
              var i3 = t4[e3];
              p(i3) || (n4["_" + e3] = i3);
            }));
          }, n3;
        })(m)), n2.RadioButtonList = D, _ = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "12", e3._mode = "checkbox", e3._toggleOptions = o.DEFAULT_TOGGLE_OPTIONS, e3.FJr = {}, n4 = e3, y(N, (function(t4, e4) {
              n4["_" + t4] = e4;
            })), e3;
          }
          return L(n3, t3), n3.prototype.BY = function(t4, n4, e3, i3, r2, a2, u2, s2, c2) {
            var f2, l2 = this.BJr(n4, e3);
            "toggle" === this._mode ? this.SJr(t4, i3, r2, a2, l2, e3.text, u2, s2, c2) : (f2 = Z(this._boxSize, s2.font, c2), (0, o.paintCheckBox)(t4, i3, r2, 0.5 * f2, 1, l2, true, false));
          }, n3.prototype.wG = function(t4, n4) {
            return tt(t4, n4, this._items, false);
          }, n3.prototype.OJr = function(t4, n4, e3) {
            var i3, r2, o2, a2;
            return "toggle" === this._mode ? (i3 = this._toggleOptions.width * n4, r2 = this._toggleOptions.height * n4, this._toggleOptions.autoSize && (o2 = f(2 * Z("auto", t4, n4)), i3 = this._textAlign === I.inside ? e3 + 1.5 * (r2 = o2 + 4 * n4) : 2 * (r2 = o2)), { width: i3, height: r2 }) : { width: a2 = Z(this._boxSize, t4, n4), height: a2 };
          }, n3.prototype.PJr = function() {
            return { width: this._toggleOptions.width, height: this._toggleOptions.height };
          }, n3.prototype.EJr = function() {
            return "toggle" === this._mode ? o.DEFAULT_TOGGLE_OPTIONS.height : x;
          }, n3.prototype.Q$r = function(t4) {
            var n4;
            return "toggle" === this._mode && !(t4.sheet.isActualProtected() && false !== (null === (n4 = t4.cellStyle) || void 0 === n4 ? void 0 : n4.locked));
          }, n3.prototype.RJr = function(t4) {
            var n4 = this, e3 = t4.itemsIndex, i3 = t4.row, r2 = t4.col, a2 = t4.sheet, u2 = t4.sheetArea, s2 = t4.rect, c2 = t4.newValue, f2 = t4.baseProgress;
            return e3.forEach((function(t5, e4) {
              var l2, h2, d2 = null === (l2 = n4.FJr[(0, o.animationKey)(i3, r2)]) || void 0 === l2 ? void 0 : l2[t5], v2 = 0 === e4;
              if (null == d2 ? void 0 : d2.isAnimating(i3, r2)) return h2 = 1 - d2.getCurrentProgress(), n4.IJr(t5, a2, i3, r2, u2, s2, v2 ? c2 : void 0, h2), true;
              n4.IJr(t5, a2, i3, r2, u2, s2, v2 ? c2 : void 0, f2);
            })), true;
          }, n3.prototype.BJr = function(t4, n4) {
            var e3 = $(n4, t4);
            return !(t4 === d || !e3);
          }, n3.prototype.GJr = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2;
            o2 && (t4.font = a2.font, t4.fillStyle = a2.foreColor, c2 = n4 + r2, (f2 = i3 - r2 - (s2 = t4.measureText(o2).width) - r2 / 2) > 0 && (c2 += f2), h2 = u2 ? l2 = n4 + r2 / 2 : c2, d2 = e3 + r2 / 2, v2 = "left", p2 = "middle", t4.textAlign = v2, t4.textBaseline = p2, t4.fillText(o2, h2, d2));
          }, n3.prototype.SJr = function(t4, n4, e3, i3, r2, a2, u2, s2, f2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this, k2 = i3.sheet, N2 = i3.row, j2 = i3.col, D2 = c.apply(void 0, this._Jr(s2.font, k2)), _2 = this.OJr(s2.font, f2, D2), O2 = _2.width, E2 = _2.height, R2 = (0, o.calculateToggleButtonState)(k2, r2, n4, e3, a2, F(F({}, this._toggleOptions), { width: O2, height: E2 }), s2, f2), L2 = null === (l2 = this.FJr[(0, o.animationKey)(N2, j2)]) || void 0 === l2 ? void 0 : l2[u2], B2 = function(i4) {
              var u3 = i4.width, c2 = i4.height, f3 = i4.trackColor, l3 = i4.trackRadius, h3 = i4.sliderX, d3 = i4.sliderY, v3 = i4.sliderSize, p3 = i4.sliderRadius, g3 = i4.sliderColor;
              (0, o.paintTrack)(t4, n4, e3, u3, c2, l3, f3), A2._textAlign !== I.inside || (null == L2 ? void 0 : L2.isAnimating(N2, j2)) || A2.GJr(t4, n4, e3, u3, c2, a2, s2, r2), (0, o.paintSlider)(t4, h3, d3, v3, p3, g3);
            }, P2 = F({}, R2);
            (null == L2 ? void 0 : L2.isAnimating(N2, j2)) && (h2 = L2.getCurrentProgress(), d2 = !r2, v2 = !!r2, g2 = (p2 = this._toggleOptions).trackColorOn, m2 = p2.trackColorOff, b2 = p2.sliderColorOn, y2 = p2.sliderColorOff, w2 = p2.sliderMargin, C2 = (M2 = (0, o.calculateToggleButtonPositionAndColor)({ sheet: k2, isChecked: d2, startX: n4, startY: e3, width: O2, height: E2, trackColorOn: g2, trackColorOff: m2, sliderColorOn: b2, sliderColorOff: y2, sliderMargin: w2, progress: h2, targetIsChecked: v2, zoomFactor: f2 })).sliderX, S2 = M2.sliderY, T2 = M2.trackColor, x2 = M2.sliderColor, P2.sliderX = C2, P2.sliderY = S2, P2.trackColor = T2, P2.sliderColor = x2), B2(P2);
          }, n3.prototype.IJr = function(t4, n4, e3, i3, r2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2 = this;
            void 0 === s2 && (s2 = 0), f2 = (0, o.animationKey)(e3, i3), (l2 = null === (c2 = this.FJr[f2]) || void 0 === c2 ? void 0 : c2[t4]) && l2.stop(), h2 = function() {
              n4.Lj(n4, [{ row: e3, col: i3 }], 0), n4.repaint(a2);
            }, d2 = function() {
              n4.Lj(n4, [{ row: e3, col: i3 }], 0), n4.repaint(a2), v2.AJr(e3, i3, t4);
            }, l2 ? l2.setDuration(this._toggleOptions.animationDuration) : l2 = new o.Bqu(this._toggleOptions.animationDuration, h2, d2), l2.setBaseProgress(s2), this.FJr[f2] || (this.FJr[f2] = {}), this.FJr[f2][t4] = l2, l2.start(e3, i3), p(u2) || H(this, n4, e3, i3, u2, r2);
          }, n3.prototype.AJr = function(t4, n4, e3) {
            var i3 = (0, o.animationKey)(t4, n4), r2 = this.FJr[i3], a2 = null == r2 ? void 0 : r2[e3];
            a2 && (a2.stop(), delete r2[e3], 0 === Object.keys(r2).length && delete this.FJr[i3]);
          }, n3.prototype.Je = function(t4) {
            var n4 = { items: t4.items, direction: t4.direction && A[t4.direction], maxColumnCount: t4.maxColumnCount, maxRowCount: t4.maxRowCount, isFlowLayout: t4.isFlowLayout, itemSpacing: t4.itemSpacing, textAlign: t4.textAlign && I[t4.textAlign], boxSize: t4.boxSize, mode: t4.mode, toggleOptions: t4.toggleOptions };
            this.fromJSON(n4);
          }, n3.prototype.toJSON = function() {
            var t4, n4 = this, e3 = { typeName: n4.typeName };
            return y(F(F({}, k), N), (function(i3, r2) {
              var o2;
              t4 = n4["_" + i3], ("items" === i3 ? t4 && t4.length > 0 : t4 !== r2) && (e3[i3] = "object" == typeof t4 ? a(t4, false) : t4);
            })), e3;
          }, n3.prototype.fromJSON = function(t4) {
            var n4 = this;
            y(F(F({}, k), N), (function(e3) {
              var i3 = t4[e3];
              p(i3) || (n4["_" + e3] = i3);
            }));
          }, n3;
        })(j), n2.CheckBoxList = _, (function(t3) {
          t3[t3.single = 0] = "single", t3[t3.multiple = 1] = "multiple";
        })(O = n2.SelectionMode || (n2.SelectionMode = {})), E = { selectedBackColor: "rgb(227,119,0)", selectedForeColor: "white", padding: "5", items: d, itemSpacing: { horizontal: 5, vertical: 5 }, selectionMode: O.multiple }, R = (function(t3) {
          function n3() {
            var n4, e3 = t3.call(this) || this;
            return e3.typeName = "13", e3.defaultPadding = 0, n4 = e3, y(E, (function(t4, e4) {
              "items" === t4 && (e4 = []), n4["_" + t4] = e4;
            })), n4._boxSize = 0, delete n4.boxSize, e3;
          }
          return L(n3, t3), n3.prototype.RY = function(t4, n4, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, d2, v2;
            t4.save(), t4.beginPath(), c2 = $(n4, e3), f2 = P(n4, M) ? n4.text : n4, l2 = this._selectedBackColor, d2 = this._selectedForeColor, c2 && (t4.fillStyle = l2, t4.fillRect(r2 + 1, o2 + 1, a2 - 1, u2 - 1), t4.fillStyle = d2), t4.textAlign = "center", t4.textBaseline !== h && (t4.textBaseline = h), v2 = this.jY(), t4.fillText(f2, r2 + v2.paddingLeft + (a2 - v2.paddingLeft - v2.paddingRight) / 2, o2 + v2.paddingTop + u2 - v2.paddingTop - v2.paddingBottom - s2), t4.restore();
          }, n3.prototype.wG = function(t4, n4) {
            return tt(t4, n4, this._items, this._selectionMode === O.single);
          }, n3.prototype.jY = function() {
            var t4, n4 = 0, e3 = 0, i3 = 0, r2 = 0;
            return this._padding && (t4 = U(this._padding), n4 = typeof (n4 = parseInt(t4[0], 10)) === T && n4 > 0 ? n4 : 0, r2 = typeof (r2 = parseInt(t4[1], 10)) === T && r2 > 0 ? r2 : 0, e3 = typeof (e3 = parseInt(t4[2], 10)) === T && e3 > 0 ? e3 : 0, i3 = typeof (i3 = parseInt(t4[3], 10)) === T && i3 > 0 ? i3 : 0), { hasMargin: true, paddingTop: n4, paddingBottom: e3, paddingLeft: i3, paddingRight: r2 };
          }, n3.prototype.OY = function(t4) {
            return 0;
          }, n3.prototype.toJSON = function() {
            var n4, e3 = this, i3 = t3.prototype.toJSON.call(this);
            return y(E, (function(t4, r2) {
              var o2;
              n4 = e3["_" + t4], ("items" === t4 ? n4 && n4.length > 0 : n4 !== r2) && (i3[t4] = "object" == typeof n4 ? a(n4) : n4);
            })), i3;
          }, n3.prototype.fromJSON = function(n4) {
            t3.prototype.fromJSON.call(this, n4);
            var e3 = this;
            y(E, (function(t4) {
              var i3 = n4[t4];
              p(i3) || (e3["_" + t4] = i3);
            }));
          }, n3;
        })(j), n2.ButtonList = R, y(k, (function(t3) {
          j.prototype[t3] = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2 = "_" + t3, c2 = this;
            if (0 === arguments.length) return c2[s2];
            if ("items" === t3) {
              for (e3 = [], i3 = 0; i3 < n3.length; i3++) r2 = n3[i3], p(r2.text) || p(r2.value) ? p(r2.text) ? p(r2.value) ? p(r2) || "object" == typeof r2 || e3.push({ text: r2, value: r2 }) : (r2.text = r2.value, e3.push(r2)) : (r2.value = r2.text, e3.push(r2)) : e3.push(r2);
              n3 = e3;
            }
            if ("itemSpacing" === t3) o2 = c2[s2], c2[s2] = { horizontal: o2.horizontal, vertical: o2.vertical }, p(n3.horizontal) || (a2 = parseInt(n3.horizontal, 10), isNaN(a2) || (c2[s2].horizontal = a2)), p(n3.vertical) || (u2 = parseInt(n3.vertical, 10), isNaN(u2) || (c2[s2].vertical = u2));
            else if ("boxSize" === t3) {
              if (p(n3)) return c2[s2];
              "number" == typeof n3 && n3 >= 0 && (c2[s2] = n3), "auto" === n3 && (c2[s2] = n3);
            } else "textAlign" === t3 && n3 === I.inside && "checkbox" === c2._mode ? c2[s2] = I.right : c2[s2] = n3;
            return c2;
          };
        })), i2.CellTypes.ti[11] = D, y(N, (function(t3) {
          _.prototype[t3] = function(n3) {
            var e3 = "_" + t3, i3 = this;
            return 0 === arguments.length ? i3[e3] : ("mode" === t3 ? "toggle" !== n3 && "checkbox" !== n3 || (i3[e3] = n3, "checkbox" === n3 && i3._textAlign === I.inside && (i3._textAlign = I.right)) : "toggleOptions" === t3 ? "object" == typeof n3 && (i3[e3] = (0, o.validateToggleOptions)(n3)) : i3[e3] = n3, i3);
          };
        })), i2.CellTypes.ti[12] = _, y(E, (function(t3) {
          R.prototype[t3] = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2 = "_" + t3, c2 = this;
            if (0 === arguments.length) return c2[s2];
            if ("items" === t3) {
              for (e3 = [], i3 = 0; i3 < n3.length; i3++) r2 = n3[i3], p(r2.text) || p(r2.value) ? p(r2.text) ? p(r2.value) ? p(r2) || "object" == typeof r2 || e3.push({ text: r2, value: r2 }) : (r2.text = r2.value, e3.push(r2)) : (r2.value = r2.text, e3.push(r2)) : e3.push(r2);
              n3 = e3;
            }
            return "itemSpacing" === t3 ? (o2 = c2[s2], c2[s2] = { horizontal: o2.horizontal, vertical: o2.vertical }, p(n3.horizontal) || (a2 = parseInt(n3.horizontal, 10), isNaN(a2) || (c2[s2].horizontal = a2)), p(n3.vertical) || (u2 = parseInt(n3.vertical, 10), isNaN(u2) || (c2[s2].vertical = u2))) : c2[s2] = n3, c2;
          };
        })), i2.CellTypes.ti[13] = R;
      }, "./dist/plugins/celltype/rangecelltype.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p = this && this.qKr || (g = function(t3, n3) {
          return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, g(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          g(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), g;
        function m(t3) {
          return t3.map((function(t4) {
            return { start: t4.start, size: t4.size };
          }));
        }
        function b(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w, M, C, S, T, x, A, I = null == e3 ? void 0 : e3.Mf, k = null == e3 ? void 0 : e3.Z5;
          if (I && I.Dn && I.pYr && k) {
            for (u2 = I.ot(), (s2 = document.createElement("canvas")).width = u2.width, s2.height = u2.height, c2 = s2.getContext("2d"), h2 = (l2 = null !== (o2 = (f2 = I.Yy(I.S0(k.col))).findCol(k.col)) && void 0 !== o2 ? o2 : f2[0].x).x, p2 = (v2 = null !== (a2 = (d2 = I._y(I.C0(k.row))).findRow(k.row)) && void 0 !== a2 ? a2 : d2[0].y).y, m2 = (g2 = k.row) + k.rowCount; g2 < m2; g2++) if (b2 = I.C0(g2), w = (y2 = I._y(b2)).findRow(g2)) for (C = (M = k.col) + k.colCount; M < C; M++) S = I.S0(M), (x = (T = I.Yy(S)).findCol(M)) && (A = new i2.Rect(x.x, w.y, x.width, w.height), I.Dn.wm(c2, u2, A, r2), t3.drawImage(s2, A.x, A.y, A.width, A.height, n3.x + A.x - h2, n3.y + A.y - p2, A.width, A.height));
          }
        }
        function y(t3, n3, e3, r2, o2, s2, h2) {
          var d2, v2, p2, g2, m2, y2, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut;
          if (void 0 === h2 && (h2 = 1), d2 = n3.x, v2 = n3.y, p2 = n3.width, g2 = n3.height, m2 = r2.sheet, y2 = r2.sheetArea, w = r2.isPrinting, M = r2.needTopGridline, C = r2.needLeftGridline, S = null != (S = r2.printZoomFactor) ? S : 1, T = [], x = [], A = [], I = true, k = [], N = m2.BO(), j = s2.rowCount, D = s2.colCount, _ = s2.rowSize, O = s2.colSize, E = s2.cellStyleList, R = s2.sparklines, o2.HY(e3), F = (L = o2.zY()).baseRow, B = L.baseCol, G = (P = o2.VY).hl, P.cg(new i2.Rect(0, 0, p2, g2)), (U = new i2.Yx(P, P._y(1, 3), P.Yy(1, 3), 3)).L_e.Nx(true), H = o2.YY(I), v2 += 1, g2 -= 1, d2 += 1, p2 -= 1, V = 0, z = 0, _ = _.map((function(t4) {
            var n4 = t4.size * g2, e4 = l(n4);
            return (z += n4 - e4) >= 1 && (e4++, z--), { start: l(t4.start * g2), size: e4 };
          })), O = O.map((function(t4) {
            var n4 = t4.size * p2, e4 = l(n4);
            return (V += n4 - e4) >= 1 && (e4++, V--), { start: l(t4.start * p2), size: e4 };
          })), Y = P.options.rightToLeft) {
            for (Z = [], W = 0, Q = D - 1; Q >= 0; Q--) Z.push({ start: W, size: O[Q].size }), W += O[Q].size;
            Z.reverse(), O = Z;
          }
          for (K = P.conditionalFormats, J = 0; J < j; J++) {
            for (X = { row: J + F, y: v2, height: g2 }, q = [], $ = 0; $ < D; $++) if (E[J][$]) {
              if (nt = (tt = E[J][$]).style, et = tt.isSpan, it = tt.span, rt = false, ot = H[J][$], et && !it) continue;
              if (nt = nt.clone(true), at = l(d2 + O[$].start), ut = l(v2 + _[J].start), st = void 0, ct = void 0, ft = et ? it.colCount : 1, lt = et ? it.rowCount : 1, st = O[ht = Y ? $ - ft : $ + ft] ? O[ht].start : p2, dt = l(st - O[$].start), ct = _[J + lt] ? _[J + lt].start : g2, vt = l(ct - _[J].start), X.y = ut, X.height = vt, ot.formatStyle && (ot.formatStyle.h5(nt), nt = ot.formatStyle), nt.v5(G), pt = f, et) {
                for (pt = { row: J, col: $, x: l(at), y: l(ut), width: l(dt), height: l(vt), rowCount: lt, colCount: ft }, gt = {}, mt = {}, bt = [], yt = void 0, wt = void 0, Mt = 0, Ct = 0, yt = 0; yt < ft - 1; yt++) Tt = (St = O[$ + yt]) ? St.size : 0, mt[yt] = Tt, Mt += Tt;
                for (mt[yt] = l(dt) - Mt, wt = 0; wt < lt - 1; wt++) Tt = (xt = _[J + wt]) ? xt.size : 0, gt[wt] = Tt, Ct += Tt;
                for (gt[wt] = l(vt) - Ct, wt = 0; wt < lt; wt++) {
                  for (At = [], It = 0; It < ft; It++) E[wt + J] && E[wt + J][$ + It] && At.push(E[wt + J][$ + It].style);
                  bt.push(At);
                }
                pt.spanSizeInfo = { styleList: bt, rowSizes: gt, colSizes: mt };
              }
              U.PN(J, $, l(at), l(ut), l(dt), l(vt), nt, pt, M && 0 === J, C && 0 === $), (kt = nt.formatter) && (i2.util.St(kt) ? (Nt = m2.parent && m2.parent.xO(kt)) && (jt = Nt.getExpression()) && (Dt = (0, u.formulaToExpression)(m2, kt.replace("@", JSON.stringify(ot.value)), 0, 0, void 0, false), (_t = (0, u.evaluateExpression)(m2, Dt, 0, 0)) instanceof a.CalcError || (ot.value = _t)) : (Ot = (0, i2.Wmr)(kt, ot.value)) && (nt.foreColor = Ot)), Et = null, R[J][$] && (Et = R[J][$].clone()) && (Et.ZY = P.name(), Et.WY = Et.QY(P), Et.KY = Et.JY(P), Et.O_r = P), ot && ot.value && "SparklineExValue" === ot.value.typeName && (k.push({ value: ot.value, x: at, y: ut, width: dt, height: vt, option: r2 }), rt = true), ot.validStyle && x.push({ style: ot.validStyle, x: at, y: ut, width: dt, height: vt }), q.push({ col: $ + B, x: at, y: ut, width: dt, height: vt }), T.push({ data: rt ? null : ot.value, row: J, col: $, x: at, y: ut, width: dt, height: vt, style: nt, sparkline: Et, baseRow: J + F, baseCol: $ + B, conditionalFormats: K, imageLoader: N, cellLayout: { row: J, col: $, x: at, y: ut, width: dt, height: vt } }), nt && nt.decoration && nt.decoration.icons && nt.decoration.icons.length > 0 && A.push({ style: nt, x: at, y: ut, width: dt, height: vt });
            }
            q.length > 0 && P.Dn.mfe(A, q, X, w, m2, y2);
          }
          for (t3.save(), M && (v2 -= 2, g2 += 4), C && (d2 -= 2, p2 += 4), t3.rect(d2, v2, p2, g2), t3.clip(), b(t3, new i2.Rect(n3.x, n3.y, n3.width, n3.height), o2, w), T.length > 0 && P.Dn.eO(t3, T, y2, w, S, m2, F, B, h2), U.paint(t3, S, w), x.length > 0 && P.Dn.EO(t3, x), A.length > 0 && P.Dn.que(t3, A, { isPrinting: w, printZoomFactor: S, sheet: m2, imageLoader: N }), t3.restore(), J = 0; J < k.length; J++) Lt = (Rt = k[J]).value, Ft = Rt.x, Bt = Rt.y, Pt = Rt.width, Gt = Rt.height, Ut = Rt.option, c.dn(t3, Lt, Ft, Bt, Pt, Gt, Ut);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.paintRangeTemplate = n2.RangeTemplate = n2.qY = n2.$Y = void 0, i2 = e2("Core"), r = e2("Bindings"), o = e2("Sparkline"), a = e2("CalcEngine"), u = e2("SheetsCalc"), s = i2.CellTypes.Base, c = i2.CellTypes.Context, f = null, l = Math.floor, h = (function() {
          function t3() {
            this.FY = 0, this.PY = 0, this.Sx = 0, this.Tx = 0;
          }
          return t3.prototype.yN = function(t4, n3) {
            var e3 = this, i3 = n3.row, r2 = n3.col, o2 = n3.rowCount, a2 = n3.colCount;
            return e3.FY = i3, e3.PY = r2, e3.Sx = o2, e3.Tx = a2, e3.TP = e3.ZF(t4, n3), e3.tZ = e3.nZ(t4, n3), e3;
          }, t3.prototype.eZ = function() {
            return this.tZ;
          }, t3.prototype.nZ = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = n3.row, l2 = n3.col, h2 = n3.rowCount, d2 = n3.colCount, v2 = 0, p2 = [], g2 = 0, m2 = [], b2 = 0, y2 = f2 + h2, w = l2 + d2;
            for (e3 = f2; e3 < y2; e3++) b2 = t4.getRowHeight(e3), g2 += b2, m2.push(b2);
            for (i3 = l2; i3 < w; i3++) b2 = t4.getColumnWidth(i3), v2 += b2, p2.push(b2);
            return b2 = 0, r2 = m2.map((function(t5) {
              var n4 = b2 / g2, e4;
              return b2 += t5, { start: n4, size: t5 / g2 };
            })), b2 = 0, o2 = p2.map((function(t5) {
              var n4 = b2 / v2, e4;
              return b2 += t5, { start: n4, size: t5 / v2 };
            })), a2 = c2.ZF(t4, n3), { rowCount: h2, colCount: d2, rowSize: r2, colSize: o2, cellStyleList: u2 = c2.iZ(t4, n3, a2, r2, o2), sparklines: s2 = c2.rZ(t4, n3), totalHeight: g2, totalWidth: v2 };
          }, t3.prototype.oZ = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = null;
            for (a2 = 0, u2 = o2; a2 < u2.length; a2++) if (c2 = (s2 = u2[a2]).rowOffset, f2 = s2.colOffset, l2 = s2.rowCount, h2 = s2.colCount, (d2 = new i2.Range(c2 + e3, f2 + r2, l2, h2)).contains(t4, n3)) {
              v2 = s2;
              break;
            }
            return v2;
          }, t3.prototype.aZ = function(t4, n3, e3) {
            var i3, r2 = [0, 0], o2 = r2[0], a2 = r2[1], u2 = t4.rowOffset, s2 = t4.colOffset, c2 = t4.rowCount, f2 = t4.colCount, l2 = u2 + c2, h2 = s2 + f2;
            for (i3 = u2; i3 < l2; i3++) a2 += n3[i3] ? n3[i3].size : 0;
            for (i3 = s2; i3 < h2; i3++) o2 += e3[i3] ? e3[i3].size : 0;
            return { width: o2, height: a2 };
          }, t3.prototype.iZ = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2 = n3.row, l2 = n3.col, h2 = n3.rowCount, d2 = n3.colCount, v2 = [];
            for (o2 = f2; o2 < f2 + h2; o2++) {
              for (a2 = [], u2 = l2; u2 < l2 + d2; u2++) (s2 = this.oZ(o2, u2, f2, l2, e3)) && s2.rowOffset + f2 === o2 && s2.colOffset + l2 === u2 ? (c2 = this.aZ(s2, i3, r2), a2.push({ style: t4.getActualStyle(o2, u2, 3, true), spanWidth: c2.width, spanHeight: c2.height, isSpan: true, span: s2 })) : s2 ? a2.push({ style: t4.getActualStyle(o2, u2, 3, true), isSpan: true }) : a2.push({ style: t4.getActualStyle(o2, u2, 3, true) });
              v2.push(a2);
            }
            return v2;
          }, t3.prototype.ZF = function(t4, n3) {
            var e3, i3, r2, o2 = t4.Ut.getSpans(), a2 = [], u2 = n3.row, s2 = n3.col, c2 = n3.rowCount, f2 = n3.colCount;
            for (e3 = 0, i3 = o2; e3 < i3.length; e3++) (r2 = i3[e3]).intersect(u2, s2, c2, f2) && a2.push({ rowOffset: r2.row - u2, colOffset: r2.col - s2, rowCount: r2.rowCount, colCount: r2.colCount });
            return a2;
          }, t3.prototype.rZ = function(t4, n3) {
            var e3, i3, r2, o2, a2 = n3.row, u2 = n3.col, s2 = n3.colCount, c2 = n3.rowCount, f2 = [];
            for (e3 = a2; e3 < a2 + c2; e3++) {
              for (i3 = [], r2 = u2; r2 < u2 + s2; r2++) (o2 = t4.getSparkline(e3, r2)) ? i3.push(o2.clone()) : i3.push(null);
              f2.push(i3);
            }
            return f2;
          }, t3.prototype.toJSON = function() {
            var t4 = this.eZ(), n3 = t4.rowCount, e3 = t4.colCount, i3 = t4.rowSize, r2 = t4.colSize, o2 = t4.cellStyleList, a2 = t4.sparklines, u2 = t4.totalWidth, s2 = t4.totalHeight, c2 = m(i3), f2 = m(r2), l2 = o2.map((function(t5) {
              return t5.map((function(t6) {
                if (t6) {
                  var n4 = t6.style, e4 = t6.spanWidth, i4 = t6.spanHeight, r3 = t6.isSpan, o3 = t6.span;
                  return { style: n4.toJSON(), spanWidth: e4, spanHeight: i4, isSpan: r3, span: o3 };
                }
                return null;
              }));
            })), h2 = a2.map((function(t5) {
              return t5.map((function(t6) {
                if (t6) return { sparklineType: t6.sparklineType(), sp: t6.toJSON(), setting: t6.setting().toJSON() };
              }));
            }));
            return { rowCount: n3, colCount: e3, rowSize: c2, colSize: f2, cellStyleList: l2, sparklines: h2, totalWidth: u2, totalHeight: s2 };
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
            t4 && (n3 = t4.rowCount, e3 = t4.colCount, r2 = t4.rowSize, a2 = t4.colSize, u2 = t4.cellStyleList, s2 = t4.sparklines, c2 = t4.totalWidth, f2 = t4.totalHeight, l2 = m(r2), h2 = m(a2), d2 = u2.map((function(t5) {
              return t5.map((function(t6) {
                var n4, e4, r3, o2, a3, u3;
                return t6 ? (n4 = t6.style, e4 = t6.spanWidth, r3 = t6.spanHeight, o2 = t6.isSpan, a3 = t6.span, u3 = null, n4 && (u3 = new i2.Style()).fromJSON(n4), { style: u3, spanWidth: e4, spanHeight: r3, span: a3, isSpan: o2 }) : null;
              }));
            })), v2 = s2.map((function(t5) {
              return t5.map((function(t6) {
                if (t6 && o.SparklineSetting) {
                  var n4 = new o.Sparkline(), e4 = new o.SparklineSetting(t6.setting);
                  return n4.fromJSON(t6.sp), n4.setting(e4), n4.sparklineType(t6.sparklineType), n4;
                }
              }));
            })), this.tZ = { rowCount: n3, colCount: e3, rowSize: l2, colSize: h2, cellStyleList: d2, sparklines: v2, totalWidth: c2, totalHeight: f2 });
          }, t3.prototype.L0 = function() {
            this.tZ = null;
          }, t3;
        })(), n2.$Y = h, d = (function() {
          function t3() {
          }
          return t3.prototype.yN = function(t4, n3, e3) {
            var r2 = this;
            return r2.Z5 = n3, r2.VY = new i2.Worksheet(), r2.uZ = t4.parent && t4.parent.options.allowDynamicArray, r2.VY.getCalcService && (r2.VY.getCalcService().allowDynamicArray = r2.uZ, r2.sZ = r2.cZ(t4)), r2.fZ(t4, e3), r2;
          }, t3.prototype.cZ = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this.Z5, f2 = c2.row, l2 = c2.col, h2 = c2.colCount, d2 = c2.rowCount, v2 = [], p2 = t4.b3 && t4.b3();
            for (n3 = f2; n3 < f2 + d2; n3++) for (e3 = l2; e3 < l2 + h2; e3++) (i3 = t4.getFormula(n3, e3)) && (r2 = p2 && p2.sT(n3, e3)) && r2.isDynamicArray && (o2 = r2.row, a2 = r2.col, u2 = r2.rowCount, s2 = r2.colCount, u2 > 1 && v2.push({ row: o2 + 1, col: a2, rowCount: u2 - 1, colCount: s2 }), s2 > 1 && v2.push({ row: o2, col: a2 + 1, rowCount: 1, colCount: s2 - 1 }));
            return v2;
          }, t3.prototype.lZ = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.sZ, c2 = this.VY;
            if (s2) for (t4 = 0, n3 = s2; t4 < n3.length; t4++) i3 = (e3 = n3[t4]).row, r2 = e3.col, o2 = e3.rowCount, a2 = e3.colCount, c2.clear(i3, r2, o2, a2, 3, 1);
          }, t3.prototype.HY = function(t4) {
            var n3, e3;
            r.CellBindingSource && ((n3 = this.VY).suspendEvent(), e3 = new r.CellBindingSource(t4), this.lZ(), n3.setDataSource(e3), n3.resumeEvent());
          }, t3.prototype.fZ = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = u2.VY, c2 = t4.toJSON({ includeBindingSource: true, ignoreFormula: !!n3, mOi: true });
            if (delete c2.charts, delete c2.shapes, s2.suspendCalcService(), s2.fromJSON(JSON.parse(JSON.stringify(c2)), void 0, void 0, { mOi: true }), s2.dataRanges && !s2.dataRanges.isEmpty()) for (e3 = s2.dataRanges.all(), i3 = t4.parent, r2 = 0, o2 = e3; r2 < o2.length; r2++) (a2 = o2[r2]).afterFromJSON(i3);
            s2.resumeCalcService(), this.hZ();
          }, t3.prototype.hZ = function() {
            var t4, n3, e3 = this, i3 = e3.Z5, r2 = i3.row, o2 = i3.col, a2 = i3.colCount, u2 = i3.rowCount, s2 = [], c2 = [];
            for (t4 = r2; t4 < r2 + u2; t4++) {
              for (c2 = [], n3 = o2; n3 < o2 + a2; n3++) c2.push(e3.dZ(t4, n3, 3));
              s2.push(c2);
            }
            this.vZ = s2;
          }, t3.prototype.zY = function() {
            var t4 = this.Z5, n3, e3;
            return { baseRow: t4.row, baseCol: t4.col };
          }, t3.prototype.YY = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this.VY, l2 = this.Z5, h2 = l2.row, d2 = l2.col, v2 = l2.colCount, p2 = l2.rowCount, g2 = [];
            for (n3 = h2; n3 < h2 + p2; n3++) {
              for (e3 = [], i3 = void 0, r2 = void 0, o2 = d2; o2 < d2 + v2; o2++) a2 = f2.getText(n3, o2), u2 = f2.getValue(n3, o2, 3, 1), s2 = f2.Jt.$t(n3, o2, 3, 1), c2 = f2.getBindingPath(n3, o2), i3 = this.mZ(n3, o2, 3), r2 = this.gZ(f2, n3, o2, u2, t4), e3.push({ value: s2, formatStyle: i3, text: a2, validStyle: r2, bindingPath: c2 });
              g2.push(e3);
            }
            return g2;
          }, t3.prototype.dZ = function(t4, n3, e3) {
            var i3, r2 = this.VY.b8;
            return r2 && (i3 = this.VY.getDataValidator(t4, n3, e3)) ? i3.highlightStyle() : null;
          }, t3.prototype.gZ = function(t4, n3, e3, i3, r2) {
            if (r2 && t4.isValid && !t4.isValid(n3, e3, i3)) {
              var o2 = this.Z5, a2 = o2.row, u2 = o2.col;
              return this.vZ[n3 - a2][e3 - u2];
            }
            return null;
          }, t3.prototype.mZ = function(t4, n3, e3) {
            var r2 = this.VY.conditionalFormats;
            return r2 ? r2.bL(new i2.Style(), t4, n3, e3) : null;
          }, t3.prototype.getCellValueInfo = function(t4) {
            var n3, e3, i3, r2 = this.Z5, o2 = r2.row, a2 = r2.col, u2 = r2.colCount, s2 = r2.rowCount, c2 = [], l2 = t4.Ut;
            for (n3 = o2; n3 < o2 + s2; n3++) {
              for (e3 = [], i3 = a2; i3 < a2 + u2; i3++) e3.push({ bindPath: t4.getBindingPath(n3, i3), formula: t4.getFormula(n3, i3), value: l2.getValue(n3, i3, 3, f, 1) });
              c2.push(e3);
            }
            return c2;
          }, t3.prototype.setValueToDataStruct = function(t4, n3, e3, i3) {
            i3[t4] || (i3[t4] = {}), i3[t4][n3] = e3;
          }, t3.prototype.toJSON = function() {
            var t4 = this.VY, n3 = this.uZ, e3 = this.sZ.map((function(t5) {
              var n4, e4, i4, r3;
              return { row: t5.row, col: t5.col, rowCount: t5.rowCount, colCount: t5.colCount };
            })), i3 = this.Z5, r2 = i3.row, o2 = i3.col, a2 = i3.rowCount, u2 = i3.colCount;
            return { spillRanges: e3, allowDynamicArray: n3, range: { row: r2, col: o2, rowCount: a2, colCount: u2 }, templatejson: JSON.stringify(t4.toJSON({ includeBindingSource: true })) };
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2;
            t4 && ((e3 = (n3 = this).VY = new i2.Worksheet()).suspendCalcService && e3.suspendCalcService(), n3.sZ = t4.spillRanges || t4.spillRangs, n3.uZ = t4.allowDynamicArray, e3.getCalcService && (e3.getCalcService().allowDynamicArray = n3.uZ), e3.fromJSON(JSON.parse(t4.templatejson)), n3.lZ(), o2 = (r2 = t4.range).row, a2 = r2.col, u2 = r2.rowCount, s2 = r2.colCount, n3.Z5 = new i2.Range(o2, a2, u2, s2), this.hZ(), e3.resumeCalcService && e3.resumeCalcService());
          }, t3.prototype.L0 = function() {
            this.VY.L0(), this.VY = null, this.Z5 = null;
          }, t3;
        })(), n2.qY = d, v = (function(t3) {
          function n3(n4, e3, r2, o2, a2) {
            var u2, s2 = t3.call(this) || this;
            return s2.allowOverflow = false, s2.typeName = "16", u2 = 1 === arguments.length ? new i2.Range(0, 0, n4.getRowCount(), n4.getColumnCount()) : new i2.Range(e3, r2, o2, a2), n4 && u2 && (s2.GY = new h().yN(n4, u2), s2.UY = new d().yN(n4, u2)), s2;
          }
          return p(n3, t3), n3.prototype.getAutoFitWidth = function() {
            return this.GY.tZ.totalWidth;
          }, n3.prototype.getAutoFitHeight = function() {
            return this.GY.tZ.totalHeight;
          }, n3.prototype.updateTemplate = function(t4, n4) {
            t4 && n4 && (this.GY.yN(t4, n4), this.UY.yN(t4, n4));
          }, n3.prototype.paintContent = function(t4, n4, e3, i3, r2, o2, a2, u2) {
            var s2, c2 = this.UY, f2 = this.GY;
            c2 && f2 && (s2 = this.GY.eZ(), a2.cellPadding && (u2.needTopGridline = true, u2.needLeftGridline = true), y(t4, { x: e3, y: i3, width: r2, height: o2 }, n4, u2, c2, s2));
          }, n3.prototype.toJSON = function() {
            return { typeName: this.typeName, layout: this.GY.toJSON(), resolver: this.UY.toJSON() };
          }, n3.prototype.fromJSON = function(t4) {
            t4.layout && (this.GY = new h(), this.GY.fromJSON(t4.layout)), t4.resolver && (this.UY = new d(), this.UY.fromJSON(t4.resolver));
          }, n3;
        })(s), n2.RangeTemplate = v, i2.CellTypes.ti[16] = v, n2.paintRangeTemplate = y;
      }, "./dist/plugins/comment/comment-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I = this && this.qKr || (k = function(t3, n3) {
          return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, k(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          k(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), k;
        function N(t3, n3, e3) {
          var i3, o2 = false, a2 = t3.Ut.pI.pZ();
          return a2 ? (i3 = a2.location(), t3.Qy().execute({ cmd: v, sheetName: t3.name(), row: a2.bZ, col: a2.yZ, oldValue: i3.clone(), newValue: new r.Point(i3.x + n3, i3.y + e3), propertyName: "location" })) : o2;
        }
        function j(t3) {
          var n3 = t3.comment;
          n3 && (s(t3.row) || s(t3.col)) && (t3.row = n3.bZ, t3.col = n3.yZ);
        }
        function D(t3, n3) {
          var e3, i3, r2;
          if ((n3 ? t3.canUndo() : t3.canExecute()) && (e3 = t3.wZ)) {
            for (i3 = 0; i3 < e3.length; i3++) (r2 = e3[i3]) && (n3 ? r2.undo() : r2.execute());
            return true;
          }
          return false;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CommentPropertyUndoAction = n2.CommentDeleteUndoAction = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("Core"), a = r.GC$, u = r.Events, s = i2.Common.lt.ht, c = o.Commands.ActionBase, f = "deleteComment", l = "deleteCommentByKey", h = "deleteCommentByBackspaceKey", d = "deactivateComment", v = "moveComment", p = "moveCommentUp", g = "moveCommentDown", m = "moveCommentLeft", b = "moveCommentRight", y = "changeComment", w = "changeCommentTransaction", M = null, C = o.Commands.zA, S = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this;
            return j(e3), i3.Mf = n4, i3.tT = e3, i3;
          }
          return I(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, a2 = this;
            return !!a2.canExecute() && (t4 = a2.Mf, a2.X5(t4, true), n4 = t4.comments.get(a2.tT.row, a2.tT.col), i3 = (e3 = t4.Ut).pI, r2 = { sheet: t4, sheetName: t4.name(), comment: n4, cancel: false, row: null == n4 ? void 0 : n4.bZ, col: null == n4 ? void 0 : n4.yZ }, t4.ki(u.CommentRemoving, r2), r2.cancel || (o.Commands.startTransaction(t4.getParent(), a2.tT), i3.remove(n4.bZ, n4.yZ), i3.MZ = M, t4.cR(), o.Commands.endTransaction(t4.getParent(), a2.tT)), a2.q5(t4, true), true);
          }, n3.prototype.undo = function() {
            var t4, n4 = this, e3 = n4.Mf;
            return n4.X5(e3, true), t4 = o.Commands.TI(e3.name()), e3.Ut.undo(n4.tT[t4]), e3.e4(), n4.q5(e3, true), true;
          }, n3;
        })(c), n2.CommentDeleteUndoAction = S, T = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this;
            return j(e3), i3.Mf = n4, i3.tT = e3, i3;
          }
          return I(n3, t3), n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.tT, i3 = n4.Mf, r2 = i3.comments.get(e3.row, e3.col);
            return !(!n4.canExecute() || !r2) && (o.Commands.startTransaction(i3.getParent(), e3), n4.X5(i3, true), r2[t4 = e3.propertyName](e3.newValue), "location" === t4 && (e3.displayMode ? r2.displayMode(e3.displayMode) : e3.displayMode = r2.displayMode()), n4.q5(i3, true), o.Commands.endTransaction(i3.getParent(), e3), true);
          }, n3.prototype.undo = function() {
            var t4, n4 = this, e3 = n4.tT, i3 = n4.Mf;
            return n4.X5(i3, true), !!(t4 = i3.comments.get(e3.row, e3.col)) && (t4[e3.propertyName](e3.oldValue), n4.q5(i3, true), true);
          }, n3.prototype.toJSON = function() {
            return this.tT;
          }, n3;
        })(c), n2.CommentPropertyUndoAction = T, o.Commands.ChangeComment = T, x = (function(t3) {
          function n3(n4, e3) {
            var i3, r2, o2 = t3.call(this) || this, a2 = o2;
            if (a2.wZ = [], a2.Mf = n4, a2.tT = e3, i3 = e3.commands) for (r2 = 0; r2 < i3.length; r2++) a2.add(i3[r2]);
            return o2;
          }
          return I(n3, t3), n3.prototype.execute = function() {
            o.Commands.startTransaction(this.Mf.getParent(), this.tT);
            var t4 = D(this, false);
            return o.Commands.endTransaction(this.Mf.getParent(), this.tT), t4;
          }, n3.prototype.undo = function() {
            return D(this, true);
          }, n3.prototype.add = function(t4) {
            this.wZ.push(t4);
          }, n3;
        })(c), o.Commands[l] = { canUndo: false, execute: function(t3, n3) {
          var e3 = o.Commands.Tp(t3, n3), i3 = e3.Ut.pI.pZ();
          return !!i3 && e3.Qy().execute({ cmd: f, sheetName: e3.name(), row: i3.bZ, col: i3.yZ });
        } }, o.Commands[d] = { canUndo: false, execute: function(t3, n3) {
          var e3 = o.Commands.Tp(t3, n3), i3 = e3.Ut.pI;
          return !!i3.pZ() && (i3.CZ(), e3.cR(), e3.repaint(), true);
        } }, o.Commands[p] = { canUndo: false, execute: function(t3, n3) {
          var e3;
          return N(o.Commands.Tp(t3, n3), 0, -1);
        } }, o.Commands[g] = { canUndo: false, execute: function(t3, n3) {
          var e3;
          return N(o.Commands.Tp(t3, n3), 0, 1);
        } }, o.Commands[m] = { canUndo: false, execute: function(t3, n3) {
          var e3 = o.Commands.Tp(t3, n3);
          return N(e3, e3.options.rightToLeft ? 1 : -1, 0);
        } }, o.Commands[b] = { canUndo: false, execute: function(t3, n3) {
          var e3 = o.Commands.Tp(t3, n3);
          return N(e3, e3.options.rightToLeft ? -1 : 1, 0);
        } }, o.Commands[f] = { canUndo: true, execute: function(t3, n3, e3) {
          return C(t3, S, n3, e3);
        } }, o.Commands[v] = { canUndo: true, execute: function(t3, n3, e3) {
          return C(t3, T, n3, e3);
        } }, o.Commands[y] = { canUndo: true, execute: function(t3, n3, e3) {
          return C(t3, T, n3, e3);
        } }, o.Commands[w] = { canUndo: true, execute: function(t3, n3, e3) {
          return C(t3, x, n3, e3);
        } }, A = function(t3) {
          t3.register(l, o.Commands[l], 46, false, false, false, false), t3.register(h, o.Commands[l], 8, false, false, false, false), t3.register(d, o.Commands[d], 27, false, false, false, false), t3.register(p, o.Commands[p], 38, false, false, false, false), t3.register(g, o.Commands[g], 40, false, false, false, false), t3.register(m, o.Commands[m], 37, false, false, false, false), t3.register(b, o.Commands[b], 39, false, false, false, false), t3.register(f, o.Commands[f]), t3.register(y, o.Commands[y]), t3.register(w, o.Commands[w]), t3.register(v, o.Commands[v]);
        }, o.Commands.SZ = A;
      }, "./dist/plugins/comment/comment-touch.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d = this && this.qKr || (v = function(t3, n3) {
          return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, v(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          v(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), v;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("./dist/plugins/comment/comment.js"), o = e2("Touch"), i2.Of.touch && (a = i2.GC$, u = i2.mt.vi, s = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.zZ = t4, e3.VZ = n3, e3.TZ = n3.TZ, e3.Mf = e3.TZ.Mf, e3.YZ = new o.ZZ(e3.Mf);
          }
          return t3.prototype.WZ = function(t4) {
            var n3, e3 = new o.QZ(t4.X, t4.Y), i3 = a(this.zZ).offset();
            return i3 && (n3 = document.body, e3.X += i3.left + n3.clientLeft || 0, e3.Y += i3.top + n3.clientTop || 0), e3;
          }, t3.prototype.OZ = function(t4) {
            t4.KZ = 35;
          }, t3.prototype.BZ = function(t4) {
            var n3 = this, e3 = n3.WZ(t4.JZ);
            n3.VZ.XZ({ target: t4.qZ, isTouch: true, button: 0, pageX: e3.X, pageY: e3.Y, stopPropagation: function() {
            } }), n3.YZ.$Z();
          }, t3.prototype.FZ = function(t4) {
            var n3, e3, i3 = this, r2 = t4.nW.tW, o2 = i3.Mf, u2 = o2.parent;
            1 !== r2 && u2 && u2.options.allowUserZoom ? (o2.rt.s9 = false, n3 = i3.VZ, a(n3.eW).remove(), i3.YZ.iW(r2)) : (e3 = i3.WZ(t4.JZ), i3.VZ.pg({ target: t4.qZ, isTouch: true, button: 0, pageX: e3.X, pageY: e3.Y, stopPropagation: function() {
            } }));
          }, t3.prototype.GZ = function(t4) {
            var n3, e3 = this, i3 = t4.nW.tW, r2 = e3.Mf, o2 = r2.parent;
            1 !== i3 && o2 && o2.options.allowUserZoom ? e3.YZ.rW(i3) : (n3 = e3.WZ(t4.JZ), e3.VZ.bg({ target: t4.qZ, isTouch: true, button: 0, pageX: n3.X, pageY: n3.Y, stopPropagation: function() {
            } }));
          }, t3.prototype.HZ = function(t4) {
            var n3 = this, e3 = n3.TZ, i3 = n3.Mf;
            try {
              i3.suspendPaint(), 3 === e3.commentState() ? e3.commentState(1) : 1 === e3.commentState() && e3.commentState(2);
            } finally {
              i3.resumePaint();
            }
          }, t3;
        })(), c = (function() {
          function t3(t4, n3, e3, i3) {
            var r2, a2 = this, u2 = a2.TZ = n3.TZ;
            a2.AZ = new o.IZ(a2), a2.xZ = new o.NZ(t4, "Comment" + u2.bZ + u2.yZ, a2.AZ, 2, 200), a2.kZ = e3, a2.DZ = i3, (r2 = a2.xZ)._Z = function() {
              return 3 !== u2.commentState();
            }, r2.EZ = function() {
              return true;
            }, r2.jZ = function(t5) {
              return i3.OZ(t5);
            }, r2.RZ = function(t5) {
              return i3.BZ(t5);
            }, r2.LZ = function(t5) {
              return i3.FZ(t5);
            }, r2.PZ = function(t5) {
              return i3.GZ(t5);
            }, r2.UZ = function(t5) {
              return i3.HZ(t5);
            };
          }
          return t3.prototype.oW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, true);
          }, t3.prototype.uW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, false);
          }, t3.prototype.sW = function(t4) {
            return this.AZ.sW();
          }, t3.prototype.cW = function(t4) {
            return this.AZ.cW();
          }, t3.prototype.fW = function(t4) {
            return this.AZ.fW();
          }, t3;
        })(), f = (function(t3) {
          function n3(n4, e3, i3) {
            return t3.call(this, n4, e3, i3, new s(n4, e3)) || this;
          }
          return d(n3, t3), n3;
        })(c), l = (function(t3) {
          function n3(n4, e3, i3) {
            return t3.call(this, n4, e3, i3, new h(n4, e3)) || this;
          }
          return d(n3, t3), n3;
        })(c), h = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return d(n3, t3), n3.prototype.BZ = function(t4) {
            var n4 = this, e3 = n4.WZ(t4.JZ);
            n4.VZ.lW({ target: t4.qZ, isTouch: true, button: 0, pageX: e3.X, pageY: e3.Y, stopPropagation: function() {
            } }), n4.YZ.$Z();
          }, n3;
        })(s), r.hW.ch("touch", { init: function(t3) {
          var n3 = this, e3 = n3.TZ.Mf, i3 = e3.parent.kZ;
          n3.dW = new f(t3[0], n3, i3), n3.dW.oW(), n3.vW = new l(t3[1], n3, i3), n3.vW.oW();
        }, detachEditor: function(t3) {
          var n3 = this, e3 = n3.TZ.Mf;
          n3.vW = new l(t3, n3, e3.parent.kZ), n3.vW.oW();
        }, preProcessMouseDownEdit: function(t3) {
          var n3 = t3.e, e3 = this.vW;
          e3 && !n3.isTouch && e3.sW(n3) && (u(n3), t3.r = true);
        }, preProcessMouseDownDragResize: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          e3 && !n3.isTouch && e3.sW(n3) && (u(n3), t3.r = true);
        }, preProcessMouseMove: function(t3) {
          var n3 = t3.e, e3 = n3.isTouch, i3 = this.dW, r2 = this.vW;
          i3 && !e3 && i3.fW(n3) && (u(n3), t3.r = true), r2 && !e3 && r2.fW(n3) && (u(n3), t3.r = true);
        }, preProcessMouseUp: function(t3) {
          var n3 = t3.e, e3 = n3.isTouch, i3 = this.dW, r2 = this.vW;
          i3 && !e3 && i3.cW(n3) && (u(n3), t3.r = true), r2 && !e3 && r2.cW(n3) && (u(n3), t3.r = true);
        }, dispose: function() {
          var t3 = this;
          t3.dW.uW(), t3.dW = null, t3.vW.uW(), t3.vW = null;
        } }));
      }, "./dist/plugins/comment/comment.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/comment/comment.js"), n2), r(e2("./dist/plugins/comment/comment-actions.js"), n2), e2("./dist/plugins/comment/comment-touch.js");
      }, "./dist/plugins/comment/comment.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn;
        function An(t3, n3) {
          return new o.Point(t3, n3);
        }
        function In(t3, n3, e3, i3) {
          return new o.Rect(t3, n3, e3, i3);
        }
        function kn(t3) {
          return t3.height;
        }
        function Nn(t3) {
          return t3.width;
        }
        function jn(t3, n3) {
          var e3 = t3.options;
          return !t3.isActualProtected() || e3.protectionOptions.allowEditObjects || n3 && !n3.locked();
        }
        function Dn(t3) {
          return Math.abs(t3 - 9) < 1e-3;
        }
        function _n(t3, n3) {
          var e3 = t3.options;
          return !t3.isActualProtected() || e3.protectionOptions.allowEditObjects || n3 && !n3.lockText();
        }
        function On(t3) {
          var n3 = 96, e3 = 72, i3 = 37.7952755905512;
          try {
            return -1 !== t3.indexOf("pt") ? parseFloat(t3.replace("pt", "")) : -1 !== t3.indexOf("in") ? parseFloat(t3.replace("in", "")) * e3 : -1 !== t3.indexOf("cm") ? parseFloat(t3.replace("cm", "")) * i3 * e3 / n3 : parseFloat(t3);
          } catch (t4) {
            return 0;
          }
        }
        function En(t3) {
          var n3 = B(t3, "ClientData");
          return n3 && "Note" === n3.ObjectType;
        }
        function Rn(t3) {
          return t3 && t3.c_ ? t3.c_.filter(En) : [];
        }
        function Ln(t3, n3) {
          for (var e3, i3, r2 = t3.defaults.rowHeight, a2 = 0, u2 = 0, s2 = t3.getRowCount() || o.XmlConstants.Io; a2 < n3 && u2 < s2; ) a2 += e3 = t3.Ut.getSize(true, 3, u2) || r2, u2++;
          return (i3 = a2 - n3) > 0 ? (u2--, (i3 = e3 - i3) < 0 && (u2 += 1)) : (i3 = n3 - a2, u2 += 1), { row: u2, rowOffset: i3 };
        }
        function Fn(t3, n3) {
          for (var e3, i3, r2 = t3.defaults.colWidth, a2 = 0, u2 = 0, s2 = t3.getColumnCount() || o.XmlConstants.xo; a2 < n3 && u2 < s2; ) a2 += e3 = t3.Ut.getSize(false, 3, u2) || r2, u2++;
          return (i3 = a2 - n3) > 0 ? (u2--, (i3 = e3 - i3) < 0 && (u2 += 1)) : (i3 = n3 - a2, u2 += 1), { col: u2, colOffset: i3 };
        }
        function Bn(t3, n3) {
          if (!F(n3)) return "double";
          if (t3) switch (t3.toLowerCase()) {
            case "solid":
              return "solid";
            case "1 1":
              return "dotted";
            case "dash":
            case "dashdot":
            case "longdash":
            case "longdashdot":
            case "longdashdotdot":
              return "dashed";
          }
          return "solid";
        }
        function Pn(t3) {
          var n3, e3;
          if (t3) switch (t3.toLowerCase()) {
            case "solid":
              n3 = "solid";
              break;
            case "dotted":
              n3 = "1 1";
              break;
            case "dashed":
              n3 = "dash";
              break;
            case "double":
              e3 = "thinThin";
          }
          return { dashStyle: n3, lineStyle: e3 };
        }
        function Gn(t3, n3) {
          var e3 = n3.location() || { x: 9, y: -18 }, i3 = Un(t3, n3), r2 = ["position:absolute"], o2 = R(i3.x + e3.x + W);
          return o2 >= 0 && r2.push("margin-left:" + o2 + "pt"), (o2 = R(i3.y + e3.y + W)) >= 0 && r2.push("margin-top:" + o2 + "pt"), (o2 = R(n3.width() - 2 * W) + "pt") && r2.push("width:" + o2), (o2 = R(n3.height() - 2 * W) + "pt") && r2.push("height:" + o2), r2.push("z-index:" + n3.zIndex()), r2.push("visibility:" + (1 === n3.displayMode() ? "visible" : "hidden")), r2.join(";");
        }
        function Un(t3, n3) {
          var e3, i3, r2 = n3.bZ, o2 = n3.yZ, a2 = t3.getSpan(r2, o2);
          return a2 && (o2 = a2.col + a2.colCount - 1), { x: e3 = O(t3, 0, o2 + 1), y: i3 = L(t3, 0, r2) };
        }
        function Hn(t3) {
          var n3 = o.ColorHelper.convertColorToHex(t3);
          return n3 && "string" == typeof n3 && n3.length > 2 ? "#" + n3.substring(2).toLowerCase() : t3;
        }
        function Vn(t3) {
          return t3.indexOf("none") > -1;
        }
        function zn(t3, n3) {
          var e3 = (t3 || "").trim().split(n3);
          return { key: e3[0], value: e3[1] };
        }
        function Yn(t3, n3, e3) {
          t3 && t3.$Dr(n3, e3);
        }
        function Zn(t3, n3) {
          if (t3) return t3.THr(n3);
        }
        function Wn(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Ut.pI;
          if (t3 && h2) for (a2 = h2.all(), u2 = 0; u2 < a2.length; u2++) s2 = (o2 = a2[u2]).bZ, c2 = o2.yZ, s2 === n3 && c2 === e3 || s2 >= n3 && s2 < n3 + i3 && c2 >= e3 && c2 < e3 + r2 && h2.remove(s2, c2);
          (o2 = h2.get(n3, e3)) && (f2 = h2.mW(o2)) && f2.gW();
        }
        function Qn() {
          var t3 = this, n3 = t3.pW && t3.pW();
          n3 && n3.bW(t3);
        }
        function Kn(t3, n3, e3) {
          var i3 = this, r2 = i3.pW && i3.pW();
          r2 && r2.yW(t3, n3, e3);
        }
        function Jn(t3, n3) {
          var e3, i3 = -1, r2 = -1;
          if (n3 && n3.rowViewportIndex >= 0 && n3.colViewportIndex >= 0 && (i3 = n3.row, r2 = n3.col), t3.parent) {
            if (i3 < 0 || r2 < 0) return;
            e3 = t3.Ut.pI.get(i3, r2), t3.Ut.pI.wW(e3);
          }
        }
        function Xn(t3, n3) {
          return t3 && t3.getRowHeight(n3);
        }
        function qn(t3, n3) {
          return t3 && t3.getColumnWidth(n3);
        }
        function $n(t3, n3) {
          return t3 && t3.getViewportLeftColumn(n3);
        }
        function te(t3, n3) {
          return t3 && t3.getViewportTopRow(n3);
        }
        function ne(t3, n3, e3) {
          return gn.push(t3), r.mt.p0(t3, n3, ie(t3), e3, ee(t3));
        }
        function ee(t3) {
          return function(n3, e3) {
            var i3, r2 = this;
            "commentState" !== t3 && (i3 = { type: "updateComment", id: r2.jKe(), propName: t3, value: n3, old: e3 }, r2.$Dr(i3));
          };
        }
        function ie(t3) {
          var n3 = t3;
          return function(t4, e3) {
            var i3 = this, r2 = i3.Mf;
            r2 && (r2.Ut.MW({ type: "property", comment: i3, name: n3, value: e3, newValue: t4 }), r2.hP() && r2.My <= 0 && (r2.CW(), "indicatorColor" !== n3 && "indicatorSize" !== n3 || r2.repaint(r2.getCellRect(i3.bZ, i3.yZ))), r2.ki(T.CommentChanged, { sheet: r2, sheetName: r2.name(), comment: i3, propertyName: n3, row: i3.bZ, col: i3.yZ }));
          };
        }
        function re(t3, n3) {
          return t3 === n3 || (null == t3 ? void 0 : t3.x) === (null == n3 ? void 0 : n3.x) && (null == t3 ? void 0 : t3.y) === (null == n3 ? void 0 : n3.y);
        }
        function oe(t3, n3, e3, i3, r2) {
          var o2 = In(n3, e3, i3, i3);
          o2.cursor = r2, t3.push(o2);
        }
        function ae(t3, n3, e3, i3) {
          (0, o.GC$)(t3.SW).css(n3, e3), (0, o.GC$)(t3.TW).css(n3, i3);
        }
        function ue(t3, n3) {
          var e3, i3 = t3.length, r2 = 0;
          for (e3 = 0; e3 < i3; e3++) r2 += k(t3[e3], n3);
          return r2;
        }
        function se(t3, n3) {
          t3 && t3.P_(n3);
        }
        function ce(t3) {
          var n3 = t3;
          if (n3) {
            if ("number" == typeof n3) return n3 > 400;
            if ("string" == typeof n3) return -1 !== n3.toLowerCase().indexOf("bold") || parseInt(n3, 10) > 400;
          }
          return false;
        }
        function fe(t3) {
          var n3 = t3;
          return !!t3 && -1 !== ["italic", "oblique"].indexOf(t3.toLowerCase().trim());
        }
        function le(t3, n3) {
          if (t3) {
            var e3 = t3.trim().toLowerCase();
            if (-1 !== ["false"].indexOf(e3)) return false;
            if (-1 !== ["true"].indexOf(e3)) return true;
          }
          return n3;
        }
        function he(t3, n3, e3) {
          return !(t3 > on * e3) && t3 <= n3 / 2 * e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.hW = n2.Comment = n2.Padding = n2.DisplayMode = n2.CommentState = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("Core"), a = r.Commands, u = null, s = void 0, c = Math.max, f = Math.min, l = Math.floor, h = Math.ceil, d = Math.atan2, v = Math.abs, p = "default", g = r.GC$.extend, m = r.mt.En, b = r.mt.Tt, y = i2.Common.Uf, w = "comment", M = r.hi, C = r.Bf, S = r.mt, T = r.Events, x = S.vi, A = S.w0, I = S.M0, k = S.bi, N = S.r0r, j = parseFloat, D = i2.Common.zf, _ = r.Lf, O = o.ExcelHelper.getActualColumnWidth, E = o.ExcelHelper.pointToPixel, R = o.ExcelHelper.pixelToPoint, L = o.ExcelHelper.getActualRowHeight, F = i2.Common.lt.ht, B = o.mt.xr, P = o.mt.c1, G = o.mt.n1, U = o.mt.vo, H = o.mt.d1, V = o.mt.h1, z = o.IndexHelper.nr, Y = o.Util.wr, Z = o.Util.ho, W = 7, Q = document, K = window, J = o.UsedRangeUtil.vh, X = o.XFileConstants.Rr, q = o.XFileConstants.Lr, $ = o.XFileConstants.ou, tt = "mouse", nt = "move", et = "DOMMouseScroll", it = "left", rt = "top", ot = "right", at = "bottom", ut = "width", st = "height", ct = "position", ft = "absolute", lt = "overflow", ht = "visible", dt = "z-index", vt = "hidden", pt = "box-sizing", gt = "content-box", mt = "padding", bt = "px", yt = "div", wt = ".comment", Mt = ".floatBlockCanvas", Ct = ".hostContainer", St = ".lineCanvasContainer", Tt = ".host", xt = ".editor", At = "gc-spread-", It = "className", kt = "cursor", Nt = "text", jt = 701, Dt = 898, _t = "gc-no-user-select", Ot = " ", Et = "unselectable", Rt = "on", Lt = "comment_editor", Ft = "comment_indicator", Bt = "font-family", Pt = "font-style", Gt = "font-size", Ut = "font-weight", Ht = "color", Vt = "textArea", zt = ".lineCanvas", Yt = ".commentDocument", Zt = "-resize", Wt = "line-height", Qt = "background-color", Kt = "text-align", Jt = "mousedown", Xt = "mousemove", qt = "mouseup", $t = "mousewheel", tn = "text-decoration", nn = "black", en = "wheel", rn = 1e4, on = 50, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.single = 1] = "single", t3[t3.double = 2] = "double", t3[t3.singleaccounting = 3] = "singleaccounting", t3[t3.doubleaccounting = 4] = "doubleaccounting";
        })(an || (an = {})), r.GC$.extend(o.Worksheet.prototype, { CW: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = a2.pW && a2.pW();
          if (a2.hP() && !a2.D_) for (n3 = a2.Fi(), e3 = void 0, i3 = 0; i3 <= 2; i3++) for (r2 = 0; r2 <= 2; r2++) (e3 = n3.c9(i3, r2)) && 0 !== Nn(e3) && 0 !== kn(e3) && (t3 && !e3.intersectRect(t3) || (o2 = a2.Ut.pI, u2 && o2 && u2.WW(o2)));
        } }), (un = r.CellRange).prototype.comment = function(t3) {
          var n3 = this, e3 = n3.sheet, i3 = n3.row, r2 = n3.col;
          return 0 === arguments.length ? e3.Ut.pI.get(i3, r2) : (t3 instanceof vn && e3.Ut.pI.WB(i3, r2, t3), n3);
        }, sn = function(t3, n3) {
          var e3, i3;
          t3.Ut.pI.Oy() || (e3 = t3.uw(), (i3 = t3.hitTest(n3.pageX - e3.left, n3.pageY - e3.top)) && Jn(t3, i3));
        }, cn = function(t3, n3) {
          n3.bind(T.FloatingElementSelected + wt, (function(t4, e3) {
            if ("comments" !== e3.type) {
              var i3 = n3.Ut.pI;
              i3.CZ(), i3.wW(u);
            }
          })), t3.bind(Jt + wt, (function(t4) {
            n3.Ut.pI.CZ(), sn(n3, t4);
          })).bind($t + wt, (function(t4) {
            sn(n3, t4);
          })).bind(Xt + wt, (function(t4) {
            sn(n3, t4);
          })), b.mozilla && t3.bind(en + wt, (function(t4) {
            sn(n3, t4);
          }));
        }, fn = function(t3, n3) {
          n3.unbind(wt), t3.unbind(wt);
        }, T.CommentChanged = "CommentChanged", (function(t3) {
          t3[t3.active = 1] = "active", t3[t3.edit = 2] = "edit", t3[t3.normal = 3] = "normal";
        })(ln = n2.CommentState || (n2.CommentState = {})), (function(t3) {
          t3[t3.alwaysShown = 1] = "alwaysShown", t3[t3.hoverShown = 2] = "hoverShown";
        })(hn = n2.DisplayMode || (n2.DisplayMode = {})), dn = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            arguments.length <= 1 ? r2.top = r2.right = r2.bottom = r2.left = t4 || 0 : (r2.top = t4, r2.right = n3, r2.bottom = e3, r2.left = i3);
          }
          return t3.prototype.clone = function() {
            var n3 = this;
            return new t3(n3.top, n3.right, n3.bottom, n3.left);
          }, t3.prototype.toString = function() {
            var t4 = this, n3 = "", e3;
            return [rt, ot, at, it].forEach((function(e4) {
              n3 += t4[e4] + bt + Ot;
            })), n3.trim();
          }, t3;
        })(), n2.Padding = dn, vn = (function() {
          function t3(t4) {
            var n3 = this;
            n3.assignId(), n3.bZ = -1, n3.yZ = -1, n3.text(t4 || ""), n3.zIndex(Dt);
          }
          return t3.prototype.H$r = function() {
            var t4;
            return o.ColorHelper.convertSystemColor(null === (t4 = this.Mf) || void 0 === t4 ? void 0 : t4.parent, this.backColor());
          }, t3.prototype.clone = function() {
            var n3 = this, e3 = new t3();
            return gn.forEach((function(t4) {
              var i3 = n3[t4]();
              n3[t4].isDefault && n3[t4].isDefault(i3) || e3[t4](i3 && i3.clone ? i3.clone() : i3);
            })), e3.Mf = n3.Mf, e3.bZ = n3.bZ, e3.yZ = n3.yZ, e3;
          }, t3.prototype.toJSON = function(t4) {
            var n3 = this, e3 = { rowIndex: n3.bZ, colIndex: n3.yZ };
            return gn.forEach((function(t5) {
              var i3 = n3[t5]();
              n3[t5].isDefault && n3[t5].isDefault(i3) || (e3[t5] = i3 && i3.clone ? i3.clone() : i3);
            })), (null == t4 ? void 0 : t4.isServer) && (e3[o.ID_SYMBOL] = n3.jKe(), delete e3.commentState), e3;
          }, t3.prototype.wh = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Mf, y2 = { n_: "fill", color2: "#ffffe1" }, w2 = { n_: "stroke" }, M2 = Pn(m2.borderStyle());
            return M2.dashStyle ? w2.dashStyle = M2.dashStyle : M2.lineStyle && (w2.lineStyle = M2.lineStyle), n3 = m2.opacity(), F(n3) || 1 === n3 || (y2.opacity = Math.floor(65535 * n3) + "f"), e3 = ["Left", "Center", "Right"][m2.horizontalAlign() || 0] || "Left", i3 = { n_: "ClientData", ObjectType: "Note", c_: [{ n_: "Row", c_: [m2.bZ] }, { n_: "Column", c_: [m2.yZ] }, { n_: "AutoFill", c_: ["False"] }] }, false === m2.dynamicMove() && i3.c_.push({ n_: "MoveWithCells" }), false === m2.dynamicSize() && i3.c_.push({ n_: "SizeWithCells" }), false === m2.locked() && i3.c_.push({ n_: "Locked", c_: ["False"] }), false === m2.lockText() && i3.c_.push({ n_: "LockText", c_: ["False"] }), "Left" !== e3 && i3.c_.push({ n_: "TextHAlign", c_: [e3] }), 1 === m2.displayMode() && i3.c_.push({ n_: "Visible" }), (r2 = m2.padding()) && (o2 = [R(r2.left) + "pt", R(r2.top) + "pt", R(r2.right) + "pt", R(r2.bottom) + "pt"].join(",")), a2 = { n_: "textbox", style: "mso-direction-alt:auto" + (m2.autoSize() ? ";mso-fit-shape-to-text:t" : ""), c_: [{ n_: "div", style: "text-align:" + e3 }] }, u2 = { n_: "shape", id: "_x0000_s" + t4, type: "#_x0000_t202", style: Gn(b2, m2), fillcolor: Hn(m2.backColor()), strokecolor: Hn(m2.borderColor()), strokeweight: R(m2.borderWidth() || 1) + "pt", c_: [w2, y2, { n_: "shadow", color: "black", obscured: "t" }, { n_: "path", "o:connecttype": "none" }, a2, i3] }, o2 ? a2.inset = o2 : u2["o:insetmode"] = "auto", s2 = [], ce(m2.fontWeight()) && s2.push({ n_: "b" }), fe(m2.fontStyle()) && s2.push({ n_: "i" }), 1 & (c2 = m2.textDecoration()) ? s2.push({ n_: "u" }) : 8 & c2 ? s2.push({ n_: "u", val: "double" }) : 2 & c2 && s2.push({ n_: "strike" }), (f2 = -1 !== (f2 = m2.fontSize() || "9pt").indexOf("px") ? R(parseFloat(f2)) : f2.replace("pt", "")) && s2.push({ n_: "sz", val: f2 }), (l2 = m2.foreColor()) ? (l2 = V(l2), s2.push(l2)) : s2.push({ n_: "color", indexed: "81" }), m2.fontFamily() && s2.push({ n_: "rFont", val: m2.fontFamily() }), s2.push({ n_: "family", val: "2" }), h2 = { n_: "t" }, d2 = m2.text(), (p2 = (v2 = F(d2) ? "" : d2).length !== v2.trim().length) && (h2["xml:space"] = "preserve"), h2.c_ = [U(v2)], { vmlDrawingData: u2, commentData: g2 = { n_: "comment", ref: z(m2.yZ) + (m2.bZ + 1), authorId: "0", c_: [{ n_: "text", c_: [{ n_: "r", c_: [{ n_: "rPr", c_: s2 }, h2] }] }] } };
          }, t3.prototype.fromJSON = function(t4, n3) {
            if (t4) {
              var e3 = this;
              gn.forEach((function(n4) {
                var i3 = t4[n4];
                i3 !== s && ("location" === n4 ? e3.location(new o.Point(i3.x, i3.y), false) : "padding" === n4 ? e3.padding(new dn(i3.top, i3.right, i3.bottom, i3.left), false) : e3[n4](i3, false));
              })), t4.rowIndex !== s && (e3.bZ = t4.rowIndex), t4.colIndex !== s && (e3.yZ = t4.colIndex), t4[o.ID_SYMBOL] && e3.UKn(t4[o.ID_SYMBOL]);
            }
          }, t3.prototype.yh = function(t4, n3, e3, i3, r2) {
            var a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2;
            n3 && e3 && (u2 = Un(t4, a2 = this), s2 = u2.x, c2 = u2.y, (h2 = (l2 = B(n3, "text")).c_) || (h2 = [{}]), d2 = 1 === h2.length, v2 = [], h2.forEach((function(n4) {
              var u3, l3, h3, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, R2, G2, U2, V2, z2, Y2, Z2, Q2 = B(n4, "rPr");
              Q2 && d2 && ((l3 = B(Q2, "rFont")) && (u3 = l3.val), u3 && a2.fontFamily(u3), h3 = 0, (y2 = B(Q2, "u")) && (M2 = 1, (w2 = y2.val) && (M2 = an[w2]), h3 |= 2 === M2 ? 8 : 1), B(Q2, "strike") && (h3 |= 2), h3 && a2.textDecoration(h3), B(Q2, "b") && a2.fontWeight("bold"), B(Q2, "i") && a2.fontStyle("italic"), (u3 = B(Q2, "color")) && (C2 = H(u3), a2.foreColor(C2)), (u3 = (S2 = B(Q2, "sz")) && S2.val) ? a2.fontSize(u3 + "pt") : a2.fontSize("9pt")), (T2 = B(n4, "t")) ? T2.c_ && v2.push(T2.c_[0]) : "t" === n4.n_ && n4.c_ && v2.push(n4.c_[0]), (u3 = e3.fillcolor) && a2.backColor(o.ColorHelper.isSystemColor(u3) ? u3 : u3.split(" ")[0]), (u3 = e3.strokecolor) && a2.borderColor(Vn(u3) ? u3 : u3.split(" ")[0]), (u3 = e3.strokeweight) && a2.borderWidth(E(parseFloat(u3.replace("pt", "")))), (u3 = e3.style) && (x2 = u3.split(";")).forEach((function(t5) {
                var n5 = zn(t5, ":"), e4 = n5.key, i4 = n5.value;
                if (!F(i4)) switch (e4) {
                  case "margin-left":
                    p2 = On(i4);
                    break;
                  case "margin-top":
                    g2 = On(i4);
                    break;
                  case "width":
                    m2 = i4;
                    break;
                  case "height":
                    b2 = i4;
                    break;
                  case "z-index":
                    a2.zIndex(parseInt(i4, 10));
                }
              })), (u3 = B(e3, "fill")) && (A2 = u3.opacity) && ("f" === A2.substr(-1) ? a2.opacity(parseFloat(A2.substr(0, A2.length - 1)) / 65535) : a2.opacity(parseFloat(A2))), (u3 = B(e3, "stroke")) && a2.borderStyle(Bn(u3.dashStyle, u3.lineStyle)), (u3 = B(e3, "textbox")) && ((I2 = u3.style) && -1 !== I2.indexOf("mso-fit-shape-to-text:t") && a2.autoSize(true), k2 = [0, 0, 0, 0], u3.inset && u3.inset.trim().split(",").forEach((function(t5, n5) {
                var e4 = t5 || ["0.1in", "0.05in"][n5 % 2];
                k2[n5] = E(parseFloat(e4.replace("pt", "")));
              })), a2.padding(new dn(k2[1], k2[2], k2[3], k2[0]))), N2 = B(e3, "ClientData"), B(N2, "SizeWithCells") && a2.dynamicSize(false), B(N2, "MoveWithCells") && a2.dynamicMove(false), (u3 = B(N2, "Locked")) && a2.locked(le(u3.c_[0], true)), (u3 = B(N2, "LockText")) && a2.lockText(le(u3.c_[0], true)), (u3 = P(B(N2, "TextHAlign"))) && -1 !== (j2 = ["left", "center", "right"].indexOf(u3.toLowerCase())) && a2.horizontalAlign(j2), B(N2, "Visible") && a2.displayMode(1), (u3 = P(B(N2, "Anchor"))) ? (R2 = u3.split(",").map((function(t5) {
                return parseInt(t5, 10);
              })), G2 = O(t4, 0, R2[0]) + f(R2[1], t4.Do(R2[0], 3)) - W, U2 = L(t4, 0, R2[2]) + f(R2[3], t4._o(R2[2], 3)) - W, V2 = O(t4, 0, R2[4]) + f(R2[5], t4.Do(R2[4], 3)) + W, z2 = L(t4, 0, R2[6]) + +f(R2[7], t4._o(R2[6], 3)) + W, a2.location(new o.Point(G2 - s2, U2 - c2), false), a2.width(V2 - G2), a2.height(z2 - U2), R2 && (D2 = R2[6] + 1, _2 = R2[4] + 1)) : (Y2 = E(p2) - s2 - W, Z2 = E(g2) - c2 - W, a2.location(new o.Point(Y2, Z2)), a2.width(E(parseFloat(m2.replace("pt", ""))) + 2 * W), a2.height(E(parseFloat(b2.replace("pt", ""))) + 2 * W), D2 = Ln(t4, a2.location().y + c2 + a2.height()).row + 1, _2 = Fn(t4, a2.location().x + s2 + a2.width()).col + 1), o.Util.Co(i3) && o.Util.So(t4, D2, _2, r2);
            })), a2.text(G(v2.join(""))));
          }, t3.prototype.$Dr = function(t4, n3) {
            Yn(this.Mf, t4, n3);
          }, t3.prototype.THr = function(t4) {
            return Zn(this.Mf, t4);
          }, t3;
        })(), n2.Comment = vn, pn = {}, gn = [], (mn = [[Nt, ""], ["location", An(9, -18)], [ut, 160, function(t3) {
          return t3 > 0;
        }], [st, 100, function(t3) {
          return t3 > 0;
        }], ["fontFamily", "Arial"], ["fontStyle", "normal"], ["fontSize", "9pt", function(t3) {
          return /^\d+pt$/.test(t3) && parseInt(t3, 10) > 0;
        }], ["fontWeight", "normal"], ["textDecoration", 0], ["foreColor", "black"], ["locked", true], ["lockText", true], ["horizontalAlign", 0], ["autoSize", false], ["dynamicSize", true, function(t3) {
          return "boolean" == typeof t3 && this.dynamicMove();
        }], ["dynamicMove", true, function(t3) {
          return t3 || this.dynamicSize(false), true;
        }], ["backColor", "#FFFFE1"], ["opacity", 1, function(t3) {
          return t3 >= 0 && t3 <= 1;
        }], ["borderWidth", 1, function(t3) {
          return t3 >= 1;
        }], ["borderStyle", "solid"], ["borderColor", "black"], ["padding"], ["showShadow", false], ["displayMode", 2], ["commentState", 3], ["zIndex", -1], ["ignoreDefaultLocation", false], ["indicatorColor", "red", function(t3) {
          return "string" == typeof t3;
        }], ["indicatorSize", 6, function(t3) {
          return "number" == typeof t3 && t3 > 1;
        }]]).forEach((function(t3) {
          pn[t3[0]] = ne(t3[0], t3[1], t3[2]);
        })), bn = pn.zIndex, pn.zIndex = function() {
          var t3, n3, e3 = bn.apply(this, arguments);
          return 0 === arguments.length && e3 === Dt && (t3 = this.Mf.comments.GW, n3 = this.lp, e3 = Dt - (t3 - 1 - n3)), e3;
        }, yn = pn.commentState, pn.commentState = function(t3, n3) {
          var e3, i3 = yn.apply(this, arguments);
          return n3 && (e3 = this.Mf).Rj("comment", null, null, o.SheetArea.viewport, this, this), i3;
        }, g(vn.prototype, pn), (0, o.qDr)(vn), wn = (function() {
          function t3(t4, n3) {
            var e3, i3 = this, r2 = t4 && t4.Mf;
            i3.AW = 1, i3.IW = 1, i3.TZ = t4, i3.xW(), i3._zoomFactor = r2.zoom(), i3.NW = n3, i3.li = n3.kW, i3.Hc(), 2 === i3.TZ.displayMode() ? i3.EW = i3._W() : (e3 = i3.DW(i3._W()), i3.EW = An(e3.x, e3.y)), i3.jW(), i3.OW();
          }
          return t3.prototype.Hc = function() {
            var n3 = this, e3 = n3.TZ.Mf;
            n3.QW = At + "floatBlockCanvas", n3.KW = At + "host-container", n3.JW = At + "host", n3.XW = At + "lineCanvas", n3.qW = m(yt), (0, o.GC$)(n3.qW).addClass(At + "floatBlockCanvas-container").css([ct, lt, pt], [ft, vt, gt]), n3.SW = m("canvas"), C.Wl(n3.SW, null, e3), (0, o.GC$)(n3.SW).addClass(n3.QW).css([it, rt, ct], [0, 0, ft]), n3.TW = m(yt), (0, o.GC$)(n3.TW).addClass(n3.KW).css([ct, pt, lt], [ft, gt, vt]), n3.Ti = m(yt), (0, o.GC$)(n3.Ti).addClass(n3.JW + Ot + _t).css([it, rt, ut, st, ct, "word-wrap", "word-break", "white-space", lt, pt, Et, Wt], [0, 0, "100%", "100%", ft, "break-word", "normal", "pre-wrap", vt, gt, Rt, "normal"]), (0, o.GC$)(n3.TW).append(n3.Ti), (0, o.GC$)(n3.qW).append(n3.SW).append(n3.TW), n3.$W = m(yt), (0, o.GC$)(n3.$W).addClass(At + "lineCanvas-container").css([ct, lt, "pointer-events"], [ft, vt, "none"]), n3.tQ = m("canvas"), C.Wl(n3.tQ, u, e3), (0, o.GC$)(n3.tQ).addClass(n3.XW).css([it, ot, ct], [0, 0, ft]), (0, o.GC$)(n3.$W).append(n3.tQ), n3.nQ = [], n3.eQ = 7, n3.iQ = false, n3.Eb = false, t3.et(n3, "init", [n3.SW, n3.Ti]);
          }, t3.prototype.rQ = function() {
            var t4 = this, n3 = t4.TZ.Mf;
            !t4.YW && n3 && n3.pW && (t4.YW = n3.pW().YW), t4.YW && (t4.YW.appendChild(t4.$W), t4.oQ(), t4.YW.appendChild(t4.qW), t4.aQ(t4.SW, Mt), t4.aQ(t4.TW, Ct), t4.uQ() ? t4.sQ() : t4.cQ(), t4.EW = t4._W(), t4.fQ());
          }, t3.prototype.lQ = function() {
            var t4 = this;
            t4.qW && t4.$W && t4.YW && (t4.hQ(t4.SW, Mt), t4.hQ(t4.TW, Ct), t4.dQ(), t4.vQ(), t4.mQ(), (0, o.GC$)(t4.qW).remove(), (0, o.GC$)(t4.$W).remove());
          }, t3.prototype.gQ = function() {
            return this.TZ.width() * this._zoomFactor;
          }, t3.prototype.pQ = function() {
            return this.TZ.height() * this._zoomFactor;
          }, t3.prototype._W = function() {
            var t4 = this, n3 = t4.TZ;
            return n3 !== t4.NW.PW || n3.commentState() !== ln.normal || n3.ignoreDefaultLocation() ? t4.bQ(n3.location()) : (n3.yQ = t4.bQ(An(9, -18)), n3.yQ);
          }, t3.prototype.bQ = function(t4) {
            var n3, e3, i3 = this, r2 = i3.TZ, o2 = r2 && r2.Mf, a2 = i3._zoomFactor, s2 = An(0, 0);
            return o2 && (n3 = i3.wQ(o2, r2.bZ, r2.yZ, i3.AW, i3.IW)).x !== u && void 0 !== n3.x && n3.y !== u && void 0 !== n3.y && Nn(n3) && kn(n3) && (e3 = o2.Fi(), s2.x = n3.x + Nn(n3) + t4.x * a2 - e3.XC, s2.y = n3.y + t4.y * a2 - e3.qC), s2;
          }, t3.prototype.wQ = function(t4, n3, e3, i3, r2) {
            var o2, a2, c2, f2, l2 = this, h2 = In(0, 0, 0, 0), d2 = t4.Fi(), v2 = te(t4, i3), p2 = $n(t4, r2), g2 = l2._zoomFactor, m2 = A(t4, p2, e3, false);
            return p2 === t4.Ab && (m2 += t4.my), o2 = A(t4, v2, n3, true), v2 === t4.Tb && (o2 += t4.ly), h2.y = n3 >= v2 ? o2 : -o2, h2.x = e3 >= p2 ? m2 : -m2, (a2 = t4.getSpan(n3, e3)) !== s && a2 !== u ? (h2.height = 0 === i3 && I(t4, n3, n3 + a2.rowCount, true) || A(t4, n3, n3 + a2.rowCount, true), h2.width = 0 === r2 && I(t4, e3, e3 + a2.colCount, false) || A(t4, e3, e3 + a2.colCount, false)) : (h2[st] = Xn(t4, n3) * g2, h2[ut] = qn(t4, e3) * g2), h2.x += d2.XC, h2.y += d2.qC, c2 = d2.F6, f2 = d2.L6, 1 === i3 ? h2.y += f2 : 2 === i3 && (h2.y += f2 + t4.Sy(d2)), 1 === r2 ? h2.x += c2 : 2 === r2 && (h2.x += c2 + t4.Gy(d2)), h2;
          }, t3.prototype.MQ = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.TZ, a2 = o2 && o2.Mf, c2 = r2._zoomFactor, f2 = An(0, 0);
            return a2 && (n3 = r2.wQ(a2, o2.bZ, o2.yZ, r2.AW, r2.IW)).x !== u && n3.x !== s && n3.y !== u && n3.y !== s && Nn(n3) && kn(n3) && (e3 = a2.Fi(), i3 = n3.x + Nn(n3) - e3.XC, f2.x = (t4.x - i3) / c2, f2.y = (t4.y - (n3.y - e3.qC)) / c2), f2;
          }, t3.prototype.CQ = function(t4) {
            void 0 === t4 && (t4 = true);
            var n3 = this;
            n3.EW = n3._W(), n3.jW(), n3.OW(), t4 && n3.fQ();
          }, t3.prototype.SQ = function() {
            var t4 = this, n3 = t4.DW(t4._W());
            t4.EW = An(n3.x, n3.y), t4.OW();
          }, t3.prototype.TQ = function() {
            var t4, n3 = this, e3 = n3.TZ;
            e3.dynamicMove() ? e3.dynamicSize() ? n3.AQ() : (n3.IQ(), n3.OW()) : (n3.jW(), n3.OW(), t4 = n3.MQ(n3.EW === e3.yQ ? n3._W() : n3.EW), re(e3.location(), t4) || e3.location(An(t4.x, t4.y)));
          }, t3.prototype.gW = function() {
            var t4 = this;
            t4.EW = t4._W(), t4.fQ();
          }, t3.prototype.IQ = function() {
            var t4, n3 = this, e3 = n3.TZ, i3 = n3.xQ();
            i3 && (n3.EW = i3, t4 = n3.MQ(i3), re(e3.location(), t4) || e3.location(An(t4.x, t4.y), false), n3.fQ());
          }, t3.prototype.xQ = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, c2, f2, l2 = this, h2 = l2.TZ, d2 = h2 && h2.Mf, v2 = l2._zoomFactor;
            if (!F(l2.NQ) && !F(l2.DQ)) {
              for (t4 = $n(d2, l2.IW), n3 = te(d2, l2.AW), e3 = 0, i3 = 0; i3 < l2.IW; i3++) e3 += d2.getViewportWidth(i3);
              for (r2 = A(d2, t4, l2.NQ, false, s, s, true), t4 < l2.NQ ? e3 += r2 : e3 -= r2, (o2 = qn(d2, l2.NQ)) < l2.kQ && (l2.kQ = o2), e3 += l2.kQ * v2, a2 = 0, u2 = 0; u2 < l2.AW; u2++) a2 += d2.getViewportHeight(u2);
              return c2 = A(d2, n3, l2.DQ, true, s, s, true), n3 < l2.DQ ? a2 += c2 : a2 -= c2, (f2 = Xn(d2, l2.DQ)) < l2._Q && (l2._Q = f2), An(e3, a2 += l2._Q * v2);
            }
          }, t3.prototype.EQ = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.TZ, a2 = o2 && o2.Mf, u2 = A(a2, r2.NQ, r2.jQ, false, s, true), c2 = qn(a2, r2.NQ);
            c2 < r2.kQ && (r2.kQ = c2), (t4 = qn(a2, r2.jQ)) < r2.OQ && (r2.OQ = t4), u2 = u2 - r2.kQ + r2.OQ, n3 = A(a2, r2.DQ, r2.RQ, true, s, true), (e3 = Xn(a2, r2.DQ)) < r2._Q && (r2._Q = e3), (i3 = Xn(a2, r2.RQ)) < r2.BQ && (r2.BQ = i3), n3 = n3 - r2._Q + r2.BQ, o2.width(u2), o2.height(n3);
          }, t3.prototype.AQ = function() {
            var t4 = this;
            t4.EQ(), t4.IQ();
          }, t3.prototype.jW = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.TZ, d2 = h2 && h2.Mf, v2 = l2._zoomFactor;
            if (l2.EW) {
              for (t4 = $n(d2, l2.IW), n3 = te(d2, l2.AW), 0 === l2.IW ? e3 = l2.EW.x : 1 === l2.IW ? e3 = l2.EW.x - d2.getViewportWidth(0) : 2 === l2.IW && (e3 = l2.EW.x - (d2.getViewportWidth(0) + d2.getViewportWidth(1))), 0 === l2.AW ? i3 = l2.EW.y : 1 === l2.AW ? i3 = l2.EW.y - d2.getViewportHeight(0) : 2 === l2.AW && (i3 = l2.EW.y - (d2.getViewportHeight(0) + d2.getViewportHeight(1))), r2 = An(e3, i3), o2 = 0, a2 = 0, u2 = t4; u2 < d2.getColumnCount(); u2++) {
                if (!(o2 + (s2 = qn(d2, u2) * v2) < r2.x)) {
                  l2.NQ = u2, l2.kQ = (r2.x - o2) / v2;
                  break;
                }
                o2 += s2;
              }
              for (c2 = n3; c2 < d2.getRowCount(); c2++) {
                if (!(a2 + (f2 = Xn(d2, c2) * v2) < r2.y)) {
                  l2.DQ = c2, l2._Q = (r2.y - a2) / v2;
                  break;
                }
                a2 += f2;
              }
            }
          }, t3.prototype.OW = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.TZ, d2 = h2 && h2.Mf, v2 = l2._zoomFactor;
            if (l2.EW) {
              for (t4 = $n(d2, l2.IW), n3 = te(d2, l2.AW), 0 === l2.IW ? e3 = l2.EW.x + l2.gQ() : 1 === l2.IW ? e3 = l2.EW.x + l2.gQ() - d2.getViewportWidth(0) : 2 === l2.IW && (e3 = l2.EW.x + l2.gQ() - (d2.getViewportWidth(0) + d2.getViewportWidth(1))), 0 === l2.AW ? i3 = l2.EW.y + l2.pQ() : 1 === l2.AW ? i3 = l2.EW.y + l2.pQ() - d2.getViewportHeight(0) : 2 === l2.AW && (i3 = l2.EW.y + l2.pQ() - (d2.getViewportHeight(0) + d2.getViewportHeight(1))), r2 = An(e3, i3), o2 = 0, a2 = 0, u2 = t4; u2 < d2.getColumnCount(); u2++) {
                if (!(o2 + (s2 = qn(d2, u2) * v2) < r2.x)) {
                  l2.jQ = u2, l2.OQ = (r2.x - o2) / v2;
                  break;
                }
                o2 += s2;
              }
              for (c2 = n3; c2 < d2.getRowCount(); c2++) {
                if (!(a2 + (f2 = Xn(d2, c2) * v2) < r2.y)) {
                  l2.RQ = c2, l2.BQ = (r2.y - a2) / v2;
                  break;
                }
                a2 += f2;
              }
            }
          }, t3.prototype.JO = function(t4, n3) {
            var e3 = this, i3 = e3.TZ;
            t4 <= e3.DQ ? i3.dynamicMove() && (e3.DQ += n3, e3.RQ += n3) : t4 > e3.DQ && t4 <= e3.RQ && i3.dynamicSize() && (e3.RQ += n3), e3.AQ();
          }, t3.prototype.qO = function(t4, n3) {
            var e3 = this, i3 = e3.TZ;
            t4 <= e3.NQ ? i3.dynamicMove() && (e3.NQ += n3, e3.jQ += n3) : t4 > e3.NQ && t4 <= e3.jQ && i3.dynamicSize() && (e3.jQ += n3), e3.AQ();
          }, t3.prototype.xP = function(t4, n3) {
            var e3 = this, i3 = e3.TZ, r2 = t4 + n3 - 1;
            t4 < e3.DQ ? r2 < e3.DQ ? i3.dynamicMove() && (e3.DQ -= n3, e3.RQ -= n3) : r2 < e3.RQ && i3.dynamicMove() && (i3.dynamicSize() ? e3.RQ -= n3 : e3.RQ -= e3.DQ - t4 + 1, e3.DQ = t4, e3._Q = 0) : t4 <= e3.RQ && (r2 < e3.RQ ? i3.dynamicSize() && (e3.RQ -= n3) : i3.dynamicSize() && (e3.RQ = t4, e3.BQ = 0)), e3.AQ();
          }, t3.prototype.NP = function(t4, n3) {
            var e3 = this, i3 = e3.TZ, r2 = t4 + n3 - 1;
            t4 < e3.NQ ? r2 < e3.NQ ? i3.dynamicMove() && (e3.NQ -= n3, e3.jQ -= n3) : r2 < e3.jQ && i3.dynamicMove() && (i3.dynamicSize() ? e3.jQ -= n3 : e3.jQ -= e3.NQ - t4 + 1, e3.NQ = t4, e3.kQ = 0) : t4 <= e3.jQ && (r2 < e3.jQ ? i3.dynamicSize() && (e3.jQ -= n3) : i3.dynamicSize() && (e3.jQ = t4, e3.OQ = 0)), e3.AQ();
          }, t3.prototype.fQ = function() {
            var t4, n3, e3 = this, i3 = e3.TZ, r2 = i3.Mf;
            e3.LQ() && (t4 = r2.zoom(), e3._zoomFactor !== t4 ? (e3._zoomFactor = t4, (n3 = e3.xQ()) && (e3.EW = n3)) : (e3._zoomFactor = t4, e3.EW !== i3.yQ || 1 !== i3.displayMode() && 2 !== i3.commentState() || (e3.EW = e3._W())), e3.xW(), e3.FQ(), e3.PQ(), e3.GQ(), e3.UQ(), S.Tt.chrome && e3.HQ());
          }, t3.prototype.FQ = function() {
            var t4 = this, n3 = t4.TZ.Mf, e3 = n3.parent && n3.parent.options.useTouchLayout;
            t4.eQ = e3 ? 11 : 7;
          }, t3.prototype.xW = function() {
            var t4 = this, n3 = t4.TZ, e3 = n3.Mf;
            t4.AW = e3.C0(n3.bZ), t4.IW = e3.S0(n3.yZ);
          }, t3.prototype.PQ = function() {
            var t4 = this, n3 = t4.TZ, e3 = 2 === n3.commentState() ? t4.li : t4.Ti;
            t4.zQ(), t4.VQ(e3), t4.YQ(e3), t4.ZQ(e3), t4.WQ();
          }, t3.prototype.YQ = function(t4) {
            var n3 = this, e3 = n3.TZ;
            t4 === n3.Ti && (t4.innerHTML = D.j0(e3.text()));
          }, t3.prototype.ZQ = function(t4, n3) {
            var e3, i3, r2, a2, u2, s2, l2, d2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2 = this, V2 = H2.TZ, z2 = n3 || 2 === V2.commentState() || 1 === V2.displayMode() ? H2._W() : H2.EW, Y2 = H2._zoomFactor, Z2 = 2 === V2.displayMode();
            z2 && (e3 = this.Hur, (r2 = H2.Kmr(rn)) ? (a2 = r2.width, u2 = r2.height, i3 = H2.DW(z2, a2, u2)) : i3 = H2.DW(z2), Z2 || H2.QQ(i3), l2 = 2 * ((s2 = H2.eQ) + V2.borderWidth()), d2 = h((Nn(i3) - l2) * Y2 + l2), p2 = h((kn(i3) - l2) * Y2 + l2), b2 = (g2 = i3.x) + d2, y2 = (m2 = i3.y) + p2, w2 = H2.KQ(H2.AW, H2.IW), M2 = d2, Z2 ? ae(H2, it, 0, s2) : g2 < w2.x ? (S2 = g2 - w2.x, e3 ? ae(H2, it, 0, s2) : ae(H2, it, S2, S2 + s2), M2 += S2, g2 = w2.x + 1) : (ae(H2, it, 0, s2), b2 > w2.x + Nn(w2) && (M2 += S2 = w2.x + Nn(w2) - 1 - b2, e3 && ae(H2, it, S2, S2 + s2))), Z2 ? d2 = f(Nn(w2) - 1 + s2, d2) : M2 = f(Nn(w2) - 1 + s2, M2), T2 = p2, Z2 ? ae(H2, rt, 0, s2) : m2 < w2.y ? (ae(H2, rt, m2 - w2.y, m2 + s2 - w2.y), T2 += m2 - w2.y, m2 = w2.y) : (ae(H2, rt, 0, s2), y2 > w2.y + kn(w2) && (T2 += w2.y + kn(w2) - 1 - y2)), Z2 ? p2 = f(kn(w2) - 1 + s2, p2) : T2 = f(kn(w2) - 1 + s2, T2), x2 = (0, o.GC$)(H2.qW), A2 = Z2 ? d2 : M2, I2 = Z2 ? p2 : T2, g2 = H2.TTr(g2, A2), x2.css({ left: g2, top: m2 }), k2 = x2.height(), N2 = x2.width(), I2 <= 0 && k2 <= 0 || A2 <= 0 && N2 <= 0 || ((v(I2 - k2) > 1 || v(A2 - N2) > 1) && x2.css({ width: A2, height: I2 }), C.$l(H2.SW, d2, p2), _2 = (D2 = (0, o.GC$)(H2.TW)).width(), O2 = D2.height(), E2 = c(0, d2 - l2), R2 = c(0, p2 - l2), (v(O2 - R2) > 1 || v(_2 - E2) > 1) && (0, o.GC$)(H2.TW).css({ width: E2, height: R2 }), F2 = (L2 = (0, o.GC$)(t4)).width(), B2 = L2.height(), P2 = E2, G2 = R2, (U2 = V2.padding()) && (P2 -= h(j(U2.left) + j(U2.right)), G2 -= h(j(U2.top) + j(U2.bottom))), (v(B2 - G2) > 1 || v(F2 - P2) > 1) && (0, o.GC$)(t4).css({ width: c(0, P2), height: c(0, G2) })));
          }, t3.prototype.QQ = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.TZ, u2 = o2.EW;
            t4.x === u2.x && t4.y === u2.y && Nn(t4) === a2.width() && kn(t4) === a2.height() || (n3 = o2.MQ(An(t4.x, t4.y)), e3 = Nn(t4), i3 = kn(t4), r2 = a2.location(), n3.x === r2.x && n3.y === r2.y || (a2.location(n3, false), o2.CQ(false)), e3 !== a2.width() && a2.width(e3, false), i3 !== a2.height() && a2.height(i3, false), a2.dynamicMove() && (o2.EW = An(t4.x, t4.y)));
          }, t3.prototype.WQ = function() {
            var t4 = this, n3 = t4.TZ, e3;
            jn(n3 && n3.Mf) ? (t4.aQ(t4.SW, Mt), t4.aQ(t4.TW, Ct), t4.oQ(), t4.cQ(), t4.sQ()) : (n3.locked() ? (t4.hQ(t4.SW, Mt), t4.XQ(t4.SW), t4.hQ(t4.TW, Ct), t4.XQ(t4.TW), t4.SW.style.cursor = p, t4.TW.style.cursor = p) : (t4.aQ(t4.SW, Mt), t4.aQ(t4.TW, Ct)), n3.lockText() ? (t4.dQ(), t4.XQ(t4.Ti), t4.mQ(), t4.XQ(t4.li), (n3.locked() || n3.commentState() !== ln.active) && n3.commentState(3), t4.Ti.style.cursor = n3.locked() ? p : nt) : (t4.cQ(), t4.sQ()), t4.oQ());
          }, t3.prototype.zQ = function() {
            var t4 = this, n3 = t4.TZ, e3 = t4.NW, i3 = n3 && n3.Mf;
            switch (n3.commentState()) {
              case ln.active:
                e3.qQ(n3), t4.uQ() && t4.$Q(), i3.getSelections().length > 0 && i3.e4(), M.F1(i3);
                break;
              case ln.edit:
                e3.qQ(n3), t4.uQ() || t4.tK(), i3.getSelections().length > 0 && i3.e4(), M.F1(u);
                break;
              case ln.normal:
                n3 === e3.pZ() && (e3.CZ(), 0 === i3.getSelections().length && i3.cR());
            }
          }, t3.prototype.VQ = function(t4) {
            var n3, e3, a2, u2, s2;
            function c2(t5, n4, e4) {
              var r2, o2;
              return !e4 || F(t5) || "" === t5 ? t5 : ((o2 = (r2 = i2.Common.ft)._(t5)).a = n4, r2.j(o2));
            }
            e3 = (n3 = this).TZ, (a2 = (0, o.GC$)(t4)).css("font-family", e3.fontFamily()).css("font-style", e3.fontStyle()).css("font-size", parseInt(e3.fontSize(), 10) * n3._zoomFactor + "pt").css("font-weight", e3.fontWeight()), a2.css("text-decoration", r.W.A5(e3.textDecoration())), u2 = { 0: "left", 1: "center", 2: "right", 3: "general" }, a2.css("text-align", u2[e3.horizontalAlign()]), e3.padding() ? a2.css(mt, e3.padding().toString()) : a2.css(mt, "0px"), a2.css("background-color", c2(e3.H$r(), e3.opacity(), t4 === n3.Ti)).css("color", e3.foreColor()), (0, o.GC$)(n3.TW).css("border-width", e3.borderWidth()).css("border-style", e3.borderStyle()).css("border-color", e3.borderColor()), s2 = n3.NW.nK(e3), (0, o.GC$)(n3.$W).css(dt, s2), (0, o.GC$)(n3.qW).css(dt, s2);
          }, t3.prototype.HQ = function() {
            var t4, n3, e3, i3 = this, r2 = this.TZ.Mf, a2 = (0, o.GC$)(i3.TW);
            r2 && a2 && (n3 = (t4 = r2.uw()).left - l(t4.left) >= 0.5 ? 0.5 : 0, e3 = t4.top - l(t4.top) >= 0.5 ? 0.5 : 0, a2.css(it, j(a2.css(it)) + n3), a2.css(rt, j(a2.css(rt)) + e3));
          }, t3.prototype.TTr = function(t4, n3, e3, i3) {
            void 0 === n3 && (n3 = 0);
            var r2 = this.TZ.Mf, o2 = r2.Fi();
            return r2.options.rightToLeft ? (e3 || (e3 = o2.width - o2.XC), F(i3) && (i3 = o2.XC), e3 - t4 - n3 - i3) : t4;
          }, t3.prototype.GQ = function() {
            var t4, n3, e3, i3, r2, a2, u2, s2, c2, l2, h2, d2, p2, g2, m2, b2, y2, w2 = this, M2 = w2.TZ, S2 = M2.Mf, T2 = w2.wQ(S2, M2.bZ, M2.yZ, w2.AW, w2.IW), x2 = S2.Fi(), A2 = T2.x + Nn(T2) - x2.XC;
            n3 = An(A2 = w2.TTr(A2, 0), t4 = T2.y - x2.qC), i3 = (0, o.GC$)(w2.qW).position(), r2 = (0, o.GC$)(w2.TW).position(), a2 = (0, o.GC$)(w2.TW), e3 = i3.left + r2.left > n3.x ? An(i3.left + r2.left, i3.top + r2.top) : i3.top + r2.top + a2.height() < n3.y ? An(i3.left + r2.left + a2.width(), i3.top + r2.top + a2.height()) : An(i3.left + r2.left + a2.width(), i3.top + r2.top), u2 = w2.eQ, s2 = v(n3.x - e3.x) + 2 * u2, c2 = v(n3.y - e3.y) + 2 * u2, d2 = (l2 = f(n3.x, e3.x) - u2) + s2, p2 = (h2 = f(n3.y, e3.y) - u2) + c2, g2 = w2.KQ(w2.AW, w2.IW, true), m2 = S2.Fi(), b2 = S2.options.rightToLeft ? m2.XC : 0, l2 < (y2 = g2.x - b2) && (s2 -= y2 - l2, l2 = y2), d2 > y2 + Nn(g2) && (s2 -= d2 - (y2 + Nn(g2))), s2 = f(Nn(g2), s2), h2 < g2.y && (c2 -= g2.y - h2, h2 = g2.y), p2 > g2.y + kn(g2) && (c2 -= p2 - (g2.y + kn(g2))), c2 = f(kn(g2), c2), (0, o.GC$)(w2.$W).css(it, l2).css(rt, h2).css(ut, s2).css(st, c2), C.$l(w2.tQ, s2, c2), n3.x = n3.x - l2, n3.y = n3.y - h2, e3.x = e3.x - l2, e3.y = e3.y - h2, w2.eK(n3, e3);
          }, t3.prototype.eK = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            o2.iK || (o2.iK = o2.tQ.getContext("2d")), e3 = o2.iK, i3 = o2.TZ.borderColor(), e3.strokeStyle = i3, e3.clearRect(0, 0, C.Xl(o2.tQ), C.ql(o2.tQ)), e3.beginPath(), e3.moveTo(t4.x, t4.y), e3.lineTo(n3.x, n3.y), e3.stroke(), e3.save(), _.Yl(e3, t4.x, t4.y), e3.fillStyle = i3, e3.beginPath(), r2 = d(n3.y - t4.y, n3.x - t4.x), e3.rotate(r2), e3.moveTo(0, 0), e3.lineTo(7, -4), e3.lineTo(7, 4), e3.lineTo(0, 0), e3.fill(), _.Yl(e3, -t4.x, -t4.y), e3.closePath(), e3.restore();
          }, t3.prototype.UQ = function() {
            var t4, n3, e3, i3, r2, a2, u2, s2 = this, c2 = s2.TZ, f2 = c2.Mf;
            s2.rK = s2.TZ.commentState(), s2.oK || (s2.oK = s2.SW.getContext("2d")), t4 = s2.oK, n3 = C.Xl(s2.SW), e3 = C.ql(s2.SW), i3 = (0, o.GC$)(s2.TW).outerWidth(), r2 = (0, o.GC$)(s2.TW).outerHeight(), a2 = s2.eQ, t4.clearRect(0, 0, n3, e3), s2.TZ.showShadow() && (s2.aK(t4, n3, e3), u2 = 2 * (a2 + 2), t4.clearRect(a2, a2, n3 - u2, e3 - u2), s2.uK(t4, a2, i3, r2)), jn(f2, c2) && s2.sK(t4, a2, n3, e3, i3, r2), t4.restore();
          }, t3.prototype.uK = function(t4, n3, e3, i3) {
            t4.save(), t4.fillStyle = nn, t4.fillRect(n3 + 2, i3 + n3, e3, 2), t4.fillRect(e3 + n3, n3 + 2, 2, i3), t4.restore();
          }, t3.prototype.aK = function(t4, n3, e3) {
            var i3, r2, o2;
            switch (t4.save(), t4.strokeStyle = nn, this.rK) {
              case ln.active:
                for (t4.beginPath(), r2 = 0; r2 < e3; r2++) for (i3 = r2 % 2 == 0 ? 1 : 3; i3 < n3; ) t4.moveTo(i3, r2), t4.lineTo(i3 + 1, r2 + 1), i3 += 4;
                t4.stroke(), t4.closePath();
                break;
              case ln.edit:
                for (t4.beginPath(), i3 = 0, r2 = 0, o2 = 4; i3 < n3 + e3; ) t4.moveTo(i3 + o2, 0), t4.lineTo(0, r2 + o2), i3 += o2, r2 += o2;
                t4.stroke(), t4.closePath();
            }
            t4.restore();
          }, t3.prototype.sK = function(t4, n3, e3, i3, r2, a2) {
            var s2 = this, c2 = s2.nQ;
            s2.rK !== ln.active && s2.rK !== ln.edit || (c2.splice(0, c2.length), oe(c2, 0, 0, n3, "nw" + Zt), oe(c2, e3 - n3, 0, n3, "ne" + Zt), oe(c2, 0, i3 - n3, n3, "sw" + Zt), oe(c2, e3 - n3, i3 - n3, n3, "se" + Zt), a2 >= 3 * n3 ? (oe(c2, 0, l(i3 / 2 - n3 / 2), n3, "w" + Zt), oe(c2, e3 - n3, l(i3 / 2 - n3 / 2), n3, "e" + Zt)) : (c2.push(u), c2.push(u)), r2 >= 3 * n3 ? (oe(c2, l(e3 / 2 - n3 / 2), 0, n3, "n" + Zt), oe(c2, l(e3 / 2 - n3 / 2), i3 - n3, n3, "s" + Zt)) : (c2.push(u), c2.push(u)), t4.restore(), t4.fillStyle = "white", t4.strokeStyle = "#939393", t4.lineWidth = 1, _.Yl(t4, 0.5, 0.5), o.GC$.each(c2, (function(n4, e4) {
              if (e4) {
                var i4 = e4.x, r3 = e4.y, o2 = Nn(e4), a3 = kn(e4);
                t4.beginPath(), t4.fillRect(i4, r3, o2 - 1, a3 - 1), t4.strokeRect(i4, r3, o2 - 1, a3 - 1), t4.stroke(), t4.closePath();
              }
            })), _.Yl(t4, -0.5, -0.5));
          }, t3.prototype.ATr = function(t4, n3, e3) {
            var i3, r2;
            return this.Hur ? (i3 = t4.width(), r2 = this.TTr(n3, i3, e3, 0), t4.css(it, r2)) : t4.css(it, n3);
          }, t3.prototype.cK = function() {
            var t4, n3, e3, i3 = this, r2 = i3.KQ(i3.AW, i3.IW);
            i3.eW ? (0, o.GC$)(i3.eW).remove() : i3.eW = m(yt), t4 = (0, o.GC$)(i3.eW), n3 = (0, o.GC$)(i3.TW), t4.addClass("gc-spread-moveResizeContainer").css([ct, rt, ut, st, "border"], [ft, i3.EW.y + i3.eQ - r2.y, n3.outerWidth() - 2, n3.outerHeight() - 2, "gray solid thin"]), i3.ATr(t4, i3.EW.x + i3.eQ - r2.x, Nn(r2)), i3.fK ? (0, o.GC$)(i3.fK).remove() : i3.fK = m(yt), (e3 = (0, o.GC$)(i3.fK)).bind("mousemove", (function(t5) {
              i3.pg(t5);
            })).bind(qt, (function(t5) {
              i3.bg(t5);
            })).css([ct, lt, rt, it, ut, st, "background", dt], [ft, vt, r2.y, i3.TTr(r2.x, Nn(r2)), Nn(r2), kn(r2), "rgba(255,255,255,0.01)", 901]), e3.append(i3.eW), i3.YW && i3.YW.appendChild(i3.fK);
          }, t3.prototype.lK = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.eQ, d2 = l2._zoomFactor, v2 = l2.NW, p2 = v2.RW;
            if (p2.BW) {
              if (n3 = l2.hK(), e3 = t4.pageX / d2 - p2.x + n3.x, i3 = t4.pageY / d2 - p2.y + n3.y, 0 === e3 && 0 === i3) return;
              l2.Hur && (e3 = -e3), r2 = l2.KQ(l2.AW, l2.IW), u2 = (0, o.GC$)(l2.eW), p2.FW < 0 ? (s2 = p2.LW.x + e3, c2 = p2.LW.y + i3, a2 = l2.bQ(An(s2, c2)), u2.css([rt], [a2.y + h2 - r2.y])) : (f2 = l2.dK(e3, i3, p2.FW), a2 = l2.bQ(An(f2.x, f2.y)), u2.css([rt, ut, st], [a2.y + h2 - r2.y, Nn(f2) * d2 - 2 * h2 - 2, kn(f2) * d2 - 2 * h2 - 2])), l2.ATr(u2, a2.x + h2 - r2.x, r2.width);
            }
          }, t3.prototype.tK = function() {
            var t4, n3 = this, e3 = n3.TZ;
            n3.uQ() || (t4 = n3.NW.kW, (0, o.GC$)(n3.Ti).remove(), n3.dQ(), (0, o.GC$)(t4).remove(), (0, o.GC$)(n3.TW).append(t4), n3.vK(t4), n3.ZQ(t4), (0, o.GC$)(t4).focus(), t4.selectionStart = t4.value.length, n3.sQ(), 2 !== e3.commentState() && e3.commentState(2, true));
          }, t3.prototype.$Q = function() {
            var n3, e3 = this, i3 = e3.TZ, r2 = i3.Mf;
            e3.uQ() && (n3 = e3.NW.kW, e3.mQ(), (0, o.GC$)(n3).remove(), (0, o.GC$)(e3.TW).append(e3.Ti), e3.vK(e3.Ti), e3.cQ(), t3.et(e3, "detachEditor", e3.Ti), 2 === i3.commentState() && i3.commentState(3), (0, o.GC$)(n3).val() !== i3.text() && r2.Qy().execute({ cmd: "changeComment", sheetName: r2.name(), row: i3.bZ, col: i3.yZ, oldValue: i3.text(), newValue: (0, o.GC$)(n3).val(), propertyName: Nt }));
          }, t3.prototype.mK = function(t4) {
            var n3, e3;
            return this.TZ.Mf.getViewportHeight(t4);
          }, t3.prototype.gK = function(t4) {
            var n3, e3;
            return this.TZ.Mf.getViewportWidth(t4);
          }, t3.prototype.KQ = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2;
            return void 0 === e3 && (e3 = false), o2 = (r2 = (i3 = this).TZ.Mf).Fi(), a2 = e3 && r2.options.rightToLeft, u2 = o2.c9(t4, n3), s2 = true === r2.Vy, c2 = o2.width, f2 = o2.height, l2 = r2.Gy(o2), h2 = r2.Sy(o2), d2 = a2 ? s2 ? o2.zy : o2.Py : o2.F6, 0 === t4 && 0 === n3 || 0 === t4 && 2 === n3 || 2 === t4 && 0 === n3 || 2 === t4 && 2 === n3 ? u2 = In(0, 0, c2, f2) : 0 === t4 && 1 === n3 || 2 === t4 && 1 === n3 ? u2 = In(d2, 0, l2, f2) : 1 === t4 && 0 === n3 || 1 === t4 && 2 === n3 ? u2 = In(0, o2.L6, c2, h2) : 1 === t4 && 1 === n3 && (u2 = In(d2, o2.L6, l2, h2)), u2;
          }, t3.prototype.vK = function(t4) {
            var n3 = this, e3 = n3.TZ, i3 = (0, o.GC$)(t4);
            t4 !== n3.li && t4 !== n3.Ti || (t4 === n3.li ? t4.value = e3.text() : t4.innerHTML = D.j0(e3.text()), i3.css([Bt, Pt, Gt, Ut, Ht, Qt, Kt, tn], [e3.fontFamily(), e3.fontStyle(), e3.fontSize(), e3.fontWeight(), e3.foreColor(), e3.H$r(), e3.horizontalAlign(), e3.textDecoration()]), e3.padding() ? i3.css(mt, e3.padding().toString()) : i3.css(mt, "0px"));
          }, t3.prototype.LQ = function() {
            return !(!this.qW || !this.qW.parentNode);
          }, t3.prototype.uQ = function() {
            var t4 = this;
            return t4.LQ() && t4.TZ === t4.NW.pZ() && (0, o.GC$)(t4.TW).find(Vt).length > 0;
          }, t3.prototype.pK = function() {
            var t4, n3 = this, e3 = n3.TZ.Mf, i3 = u;
            return n3.LQ() && (t4 = e3.Fi(), i3 = In(n3.EW.x + (t4.BA + t4.XC), n3.EW.y + t4.LA + t4.qC, n3.gQ(), n3.pQ())), i3;
          }, t3.prototype.bK = function() {
            var t4, n3, e3, i3, r2, o2, a2, s2 = this, c2 = s2.TZ, f2 = s2._zoomFactor;
            return s2.LQ() && (t4 = s2.pK()) ? (n3 = void 0, e3 = void 0, i3 = void 0, r2 = void 0, a2 = o2 = (s2.eQ + c2.borderWidth()) * f2, In(n3 = t4.x + o2, e3 = t4.y + a2, i3 = Nn(t4) - 2 * o2, r2 = kn(t4) - 2 * a2)) : u;
          }, t3.prototype.yK = function(t4) {
            var n3, e3 = this, i3 = e3.TZ, r2 = i3.Mf, o2 = t4.target, a2 = e3.NW.RW, u2 = o2.style, s2 = p;
            a2.BW ? o2[It] !== e3.JW && o2[It] !== e3.QW && o2[It] !== e3.XW && o2[It] !== At + "floatPanel" || (s2 = a2.FW >= 0 ? "crosshair" : nt) : o2[It] === e3.JW ? !jn(r2) && i3.lockText() ? i3.locked() || (s2 = nt) : s2 = Nt : o2[It] !== e3.QW && o2[It] !== e3.KW || jn(r2, i3) && (s2 = (n3 = e3.wK(t4)) >= 0 && n3 < e3.nQ.length ? e3.nQ[n3].cursor : nt), u2[kt] = s2;
          }, t3.prototype.lW = function(n3) {
            var e3, i3 = this, r2 = i3.TZ, o2 = r2 && r2.Mf;
            if (o2 && o2.endEdit() && r2 && o2.comments.get(r2.bZ, r2.yZ) && (e3 = { e: n3, r: u }, t3.et(i3, "preProcessMouseDownEdit", e3), !e3.r)) return o2.ki(T.FloatingElementSelected, { type: "comments" }), i3.NW.qQ(r2), r2.commentState(2, true), i3.bg(n3), x(n3);
          }, t3.prototype.XZ = function(n3) {
            var e3, i3, r2, o2, a2, s2 = this, c2 = s2.TZ, f2 = c2 && c2.Mf, l2 = s2._zoomFactor, h2 = s2.NW, d2 = h2.RW;
            f2.endEdit() && (e3 = { e: n3, r: u }, t3.et(s2, "preProcessMouseDownDragResize", e3), e3.r || (f2.ki(T.FloatingElementSelected, { type: "comments" }), d2.x = n3.pageX / l2, d2.y = n3.pageY / l2, d2.LW = In(c2.location().x, c2.location().y, c2.width(), c2.height()), d2.FW = s2.wK(n3), s2.Fg(), d2.BW = true, s2.yK(n3), h2.qQ(c2), c2.commentState(ln.active, true), jn(f2, c2) && (s2.CK = {}, s2.CK.SK = te(f2, s2.AW), s2.CK.TK = $n(f2, s2.IW), s2.cK(), d2.FW < 0 ? s2.iQ = true : s2.Eb = true), i3 = f2.rt, r2 = f2.uw(), o2 = An(n3.pageX - r2.left, n3.pageY - r2.top), a2 = f2.hitTest(o2.x, o2.y), i3.Rk = { e9: a2.rowViewportIndex, r9: a2.colViewportIndex, Bk: a2.hitTestType }, i3.fk = o2, i3.Ok(), i3.s9 = true, n3.stopPropagation()));
          }, t3.prototype.DW = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this, c2 = s2._zoomFactor, f2 = s2.TZ, l2 = void 0 !== n3 ? n3 * c2 : s2.gQ(), h2 = s2.Xmr(t4, n3), d2 = h2.left, v2 = h2.actualWidth, p2 = h2.isCommentHorizontalCoverCell;
            return f2.autoSize() && v2 !== l2 && (e3 = null !== (r2 = null === (i3 = s2.Kmr(v2)) || void 0 === i3 ? void 0 : i3.height) && void 0 !== r2 ? r2 : e3), In(d2, a2 = (o2 = s2.qmr(t4, e3, p2)).top, v2 / c2, (u2 = o2.actualHeight) / c2);
          }, t3.prototype.Xmr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.TZ, d2 = h2 && h2.Mf, p2 = l2.eQ, g2 = l2._zoomFactor, m2 = l2.IW, b2 = l2.AW, y2 = l2.KQ(b2, m2), w2 = void 0 !== n3 ? n3 * g2 : l2.gQ(), M2 = qn(d2, h2.yZ) * g2, C2 = 2 === h2.displayMode(), S2 = t4.x, T2 = S2 + w2, x2 = 0, I2 = 0, k2 = false, N2 = d2.getFrozenTrailingState(true), j2 = d2.Fi(), D2 = j2.Uy, _2 = l2.gK(0), O2 = l2.gK(1), E2 = l2.gK(2);
            return false === N2 && C2 && (E2 += D2), 0 === m2 || 2 === m2 ? (x2 = 0 - p2, I2 = _2 + O2 + E2) : 1 === m2 && (x2 = y2.x - p2, C2 || (x2 -= i3 = A(d2, d2.getViewportRightColumn(0) + 1, $n(d2, 1), false)), I2 = x2 + (r2 = C2 ? O2 : A(d2, d2.getViewportRightColumn(0) + 1, $n(d2, 2), false))), S2 < x2 && (l2.Eb ? w2 -= x2 - S2 : T2 += x2 - S2, S2 = x2), T2 > I2 && (l2.Eb ? w2 -= T2 - I2 : l2.iQ ? S2 -= T2 - I2 : C2 ? (o2 = l2.NW.PW && !h2.ignoreDefaultLocation() ? 9 : h2.location().x, s2 = false, (u2 = S2 - (a2 = 2 * v(o2) + M2 + w2)) > x2 ? (S2 = u2, s2 = true) : (c2 = T2 - I2, f2 = x2 - u2, he(w2 - Math.min(f2, c2), M2, g2) || (c2 > f2 ? (w2 -= f2, S2 = x2, s2 = true) : (w2 -= c2, s2 = true))), s2 || ((u2 = S2 - (T2 - I2)) < x2 ? (w2 -= x2 - u2, S2 = x2) : S2 = x2, k2 = true)) : (Dn(null === (e3 = h2.location()) || void 0 === e3 ? void 0 : e3.x) && (o2 = h2.location().x, (u2 = S2 - (a2 = 2 * v(o2) + M2 + w2)) > x2 && (T2 = (S2 = u2) + w2)), T2 > I2 && (S2 -= T2 - I2) < x2 && (w2 -= x2 - S2, S2 = x2))), { left: S2, actualWidth: w2, isCommentHorizontalCoverCell: k2 };
          }, t3.prototype.qmr = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.TZ, h2 = l2 && l2.Mf, d2 = f2.eQ, v2 = f2._zoomFactor, p2 = f2.IW, g2 = f2.AW, m2 = f2.KQ(g2, p2), b2 = 2 === l2.displayMode(), y2 = void 0 !== n3 ? n3 * v2 : f2.pQ(), w2 = t4.y, M2 = h2.Fi(), C2 = M2.qC, S2 = w2 + y2, T2 = 0, x2 = 0, I2 = h2.getFrozenTrailingState(false), k2 = M2.Ty, N2 = f2.mK(0), j2 = f2.mK(1), D2 = f2.mK(2);
            return false === I2 && b2 && (D2 += k2), 0 === g2 || 2 === g2 ? (T2 = 0 - d2, x2 = N2 + j2 + D2) : 1 === g2 && (T2 = m2.y - d2, b2 || (T2 -= i3 = A(h2, h2.getViewportBottomRow(0) + 1, te(h2, 1), true)), x2 = T2 + (r2 = b2 ? j2 : A(h2, h2.getViewportBottomRow(0) + 1, te(h2, 2), true))), w2 < T2 && (f2.Eb ? y2 -= T2 - w2 : S2 += T2 - w2, w2 = T2), S2 > x2 && (f2.Eb ? y2 -= S2 - x2 : f2.iQ ? w2 -= S2 - x2 : (a2 = w2 - (o2 = S2 - x2)) < T2 ? (y2 -= T2 - a2, w2 = T2) : w2 = a2), e3 && (S2 = w2 + y2 - d2, (s2 = (u2 = f2.wQ(h2, l2.bZ, l2.yZ, g2, p2)).y + u2.height - C2 - w2) > 0 && S2 + s2 < x2 ? w2 += s2 : (c2 = S2 - (u2.y - C2) + d2) > 0 && w2 - c2 > T2 && (w2 -= c2)), { top: w2, actualHeight: y2 };
          }, t3.prototype.hK = function() {
            var t4 = this, n3 = t4.TZ.Mf, e3 = t4.CK, i3 = e3.SK, r2 = e3.TK, o2 = te(n3, t4.AW), a2 = $n(n3, t4.IW), u2 = A(n3, i3, o2, true), s2 = A(n3, r2, a2, false), c2 = r2 < a2 ? s2 : -s2, f2 = i3 < o2 ? u2 : -u2;
            return An(c2, f2);
          }, Object.defineProperty(t3.prototype, "Hur", { get: function() {
            return this.TZ.Mf.options.rightToLeft;
          }, enumerable: false, configurable: true }), t3.prototype.AK = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.TZ, v2 = d2 && d2.Mf, p2 = h2._zoomFactor, g2 = h2.NW, m2 = g2.RW, b2 = a.ChangeComment;
            if (m2.BW) {
              if (n3 = h2.hK(), e3 = t4.pageX / p2 - m2.x + n3.x, i3 = t4.pageY / p2 - m2.y + n3.y, 0 === e3 && 0 === i3) return;
              h2.Hur && (e3 = -e3), r2 = void 0, o2 = void 0, m2.FW < 0 ? (s2 = m2.LW.x + e3, c2 = m2.LW.y + i3, r2 = h2.bQ(An(s2, c2)), o2 = h2.DW(r2), (u2 = h2.MQ(An(o2.x, o2.y))).x === d2.location().x && u2.x === d2.location().y || v2.Qy().execute({ cmd: "moveComment", sheetName: v2.name(), row: d2.bZ, col: d2.yZ, oldValue: d2.location().clone(), newValue: u2, propertyName: "location" })) : (d2.autoSize(false), f2 = h2.dK(e3, i3, m2.FW), r2 = h2.bQ(An(f2.x, f2.y)), o2 = h2.DW(r2, Nn(f2), kn(f2)), l2 = [], (u2 = h2.MQ(An(o2.x, o2.y))).x === d2.location().x && u2.y === d2.location().y || l2.push(new b2(v2, { cmd: "changeComment", sheetName: v2.name(), row: d2.bZ, col: d2.yZ, oldValue: d2.location().clone(), newValue: u2, propertyName: "location" })), Nn(o2) !== d2.width() && l2.push(new b2(v2, { cmd: "changeComment", sheetName: v2.name(), row: d2.bZ, col: d2.yZ, oldValue: d2.width(), newValue: o2.width, propertyName: ut })), kn(o2) !== d2.height() && l2.push(new b2(v2, { cmd: "changeComment", sheetName: v2.name(), row: d2.bZ, col: d2.yZ, oldValue: d2.height(), newValue: o2.height, propertyName: st })), l2.length > 0 && v2.Qy().execute({ cmd: "changeCommentTransaction", sheetName: v2.name(), commands: l2 }));
            }
          }, t3.prototype.pg = function(n3) {
            var e3, i3, r2, o2, a2, s2 = this, c2 = s2.TZ.Mf, f2 = { e: n3, r: u };
            if (t3.et(s2, "preProcessMouseMove", f2), !(f2.r || (this.yK(n3), c2.getSelections() && c2.getSelections().length > 0))) return e3 = s2.NW, i3 = n3.target, r2 = c2.rt, o2 = c2.uw(), a2 = An(n3.pageX - o2.left, n3.pageY - o2.top), i3 && e3.RW.BW && (s2.eW && s2.lK(n3), 1 === s2.AW && (r2.fk.y = a2.y), 1 === s2.IW && (r2.fk.x = a2.x), r2.a9()), x(n3);
          }, t3.prototype.bg = function(n3) {
            var e3, i3, r2, a2 = this, s2 = a2.TZ.Mf, c2 = { e: n3, r: u };
            if (t3.et(a2, "preProcessMouseUp", c2), !(c2.r || s2.getSelections() && s2.getSelections().length > 0)) return e3 = n3.target, i3 = a2.NW, (r2 = s2.rt).s9 = false, r2.l9(), e3 && (a2.AK(n3), a2.fK && ((0, o.GC$)(a2.fK).remove(), a2.fK = null, a2.iQ = false, a2.Eb = false), a2.u2(), i3.RW.BW = false, a2.yK(n3)), x(n3);
          }, t3.prototype.wK = function(t4) {
            var n3, e3, i3, r2, a2, u2 = this, s2 = u2.nQ;
            if (s2.length > 0 && (u2.rK === ln.active || u2.rK === ln.edit)) {
              for (n3 = u2.SW, e3 = t4.pageX - (0, o.GC$)(n3).offset().left, i3 = t4.pageY - (0, o.GC$)(n3).offset().top, r2 = 0; r2 < s2.length; r2++) if ((a2 = s2[r2]) && a2.contains(e3, i3)) return r2;
            }
            return -1;
          }, t3.prototype.dK = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = -1, u2 = -1;
            switch (e3) {
              case 0:
                a2 = 0, u2 = 0;
                break;
              case 1:
                a2 = 2, u2 = 0;
                break;
              case 2:
                a2 = 0, u2 = 2;
                break;
              case 3:
                a2 = 2, u2 = 2;
                break;
              case 4:
                a2 = 0, u2 = 1;
                break;
              case 5:
                a2 = 2, u2 = 1;
                break;
              case 6:
                a2 = 1, u2 = 0;
                break;
              case 7:
                a2 = 1, u2 = 2;
            }
            return o2.Hur && (0 === a2 ? a2 = 2 : 2 === a2 && (a2 = 0)), i3 = o2.IK(t4, a2), r2 = o2.oh(n3, u2), In(i3.x, r2.y, i3.w, r2.h);
          }, t3.prototype.IK = function(t4, n3) {
            var e3, i3, r2 = this, o2 = 2 * r2.eQ, a2 = r2.NW.RW, u2 = Nn(a2.LW) - o2;
            return 0 === n3 ? u2 -= t4 : 2 === n3 && (u2 += t4), e3 = a2.LW.x, u2 >= 0 ? 0 === n3 && (e3 += t4) : 0 === n3 ? e3 += Nn(a2.LW) - o2 : 2 === n3 && (e3 += u2), i3 = Nn(a2.LW), 1 !== n3 && (i3 = v(u2) + o2), { x: e3, w: i3 };
          }, t3.prototype.oh = function(t4, n3) {
            var e3, i3, r2 = this, o2 = 2 * r2.eQ, a2 = r2.NW.RW, u2 = kn(a2.LW) - o2;
            return 0 === n3 ? u2 -= t4 : 2 === n3 && (u2 += t4), e3 = a2.LW.y, u2 >= 0 ? 0 === n3 && (e3 += t4) : 0 === n3 ? e3 = kn(a2.LW) - o2 : 2 === n3 && (e3 += u2), i3 = kn(a2.LW), 1 !== n3 && (i3 = v(u2) + o2), { y: e3, h: i3 };
          }, t3.prototype.XQ = function(t4) {
            var n3, e3, i3 = this, r2 = i3.TZ.Mf;
            if (t4) {
              switch (n3 = s, t4) {
                case i3.SW:
                  n3 = Mt;
                  break;
                case i3.TW:
                  n3 = Ct;
                  break;
                case i3.$W:
                  n3 = St;
                  break;
                case i3.Ti:
                  n3 = Tt;
                  break;
                case i3.li:
                  n3 = xt;
              }
              n3 && ((0, o.GC$)(t4).unbind($t + n3).unbind(et + n3), e3 = function(t5) {
                r2.P_(t5), x(t5);
              }, (0, o.GC$)(t4).bind($t + n3, e3).bind(et + n3, e3));
            }
          }, t3.prototype.aQ = function(t4, n3) {
            var e3, i3 = this, r2 = i3.TZ, a2 = r2 && r2.Mf;
            i3.hQ(t4, n3), e3 = function(t5) {
              se(a2, t5);
            }, (0, o.GC$)(t4).bind(Jt + n3, (function(t5) {
              i3.XZ(t5);
            })).bind(Xt + n3, (function(t5) {
              i3.pg(t5);
            })).bind(qt + n3, (function(t5) {
              i3.bg(t5);
            })).bind($t + n3, e3).bind(et + n3, e3);
          }, t3.prototype.hQ = function(t4, n3) {
            (0, o.GC$)(t4).unbind(n3);
          }, t3.prototype.oQ = function() {
            var t4, n3, e3 = this, i3 = e3.TZ, r2 = i3 && i3.Mf, a2 = e3.NW;
            e3.vQ(), r2 && (t4 = r2.uw(), n3 = function(t5) {
              r2.P_(t5);
            }, (0, o.GC$)(e3.tQ).bind(Jt + zt, (function(n4) {
              var i4, u2, s2 = r2.Ut.pI.hitTest(n4.pageX - t4.left, n4.pageY - t4.top);
              s2 ? (i4 = s2.comment, u2 = a2.mW(i4), s2.area === Lt ? u2.lW(n4) : s2.area === Ft && u2.XZ(n4), (0, o.GC$)(u2.qW).css(dt, parseInt((0, o.GC$)(e3.$W).css(dt) + 1, 10))) : r2.B_(n4);
            })).bind(Xt + zt, (function(n4) {
              var i4, o2, s2, c2 = r2.Ut.pI.hitTest(n4.pageX - t4.left, n4.pageY - t4.top), f2 = e3.tQ.style;
              c2 ? (i4 = c2.comment, (o2 = a2.mW(i4)).pg(n4), c2.area === Lt ? f2.cursor = Nt : c2.area === Ft && (f2.cursor = nt)) : (r2.L_(n4), e3.NW.wW(u), (s2 = r2.Dg()) && (f2.cursor = s2.style.cursor));
            })).bind(qt + zt, (function(n4) {
              var e4, i4, o2 = r2.Ut.pI.hitTest(n4.pageX - t4.left, n4.pageY - t4.top);
              o2 ? (e4 = o2.comment, (i4 = a2.mW(e4)).bg(n4)) : r2.F_(n4);
            })).bind("dblclick" + zt, (function(t5) {
              r2.U_(t5);
            })).bind($t + zt, n3).bind(et + zt, n3));
          }, t3.prototype.vQ = function() {
            var t4 = this;
            (0, o.GC$)(t4.tQ).unbind(zt);
          }, t3.prototype.cQ = function() {
            var t4, n3 = this, e3 = n3.TZ, i3 = e3 && e3.Mf;
            e3.commentState() !== ln.edit && n3.Ti && (n3.dQ(), t4 = function(t5) {
              se(i3, t5);
            }, (0, o.GC$)(n3.Ti).bind(Jt + Tt, (function(t5) {
              n3.lW(t5);
            })).bind(Xt + Tt, (function(t5) {
              n3.pg(t5);
            })).bind(qt + Tt, (function(t5) {
              n3.bg(t5);
            })).bind($t + Tt, t4).bind(et + Tt, t4));
          }, t3.prototype.dQ = function() {
            var t4 = this, n3;
            t4.TZ.commentState() !== ln.edit && t4.Ti && (0, o.GC$)(t4.Ti).unbind(Tt);
          }, t3.prototype.sQ = function() {
            var t4 = this, n3 = t4.TZ, e3 = n3 && n3.Mf, i3 = t4.li;
            n3.commentState() === ln.edit && i3 && (this.mQ(), (0, o.GC$)(i3).bind(Jt + xt, (function(t5) {
              t5.stopPropagation();
            })).bind(Xt + xt, (function(t5) {
              t5.stopPropagation();
            })).bind(qt + xt, (function(t5) {
              t5.stopPropagation();
            })).bind("keydown" + xt, (function(t5) {
              27 !== t5.keyCode && 9 !== t5.keyCode || (n3.commentState(ln.active, true), x(t5), M.F1(e3));
            })).bind("focusout" + xt, (function() {
              (0, o.GC$)(i3).val() !== n3.text() && e3.Qy().execute({ cmd: "changeComment", sheetName: e3.name(), row: n3.bZ, col: n3.yZ, oldValue: n3.text(), newValue: (0, o.GC$)(i3).val(), propertyName: Nt });
            })));
          }, t3.prototype.Kmr = function(t4) {
            var n3, e3, i3, r2, a2, u2, s2, f2, l2, d2, v2, p2, g2 = this, m2 = g2.TZ, b2 = g2.eQ, y2 = m2.padding(), w2 = 2 * (b2 + m2.borderWidth());
            if (m2.autoSize() && !g2.Eb && !g2.iQ) {
              if (e3 = (n3 = g2.$mr()).targetDOM, i3 = n3.domValue, r2 = g2.ml(e3.style), a2 = 5, u2 = k("M", r2), s2 = a2, (f2 = o.q.un(i3, t4 - w2, r2)) && f2.length > 0) {
                for (l2 = 0, d2 = 0; d2 < f2.length; d2++) l2 = Math.max(l2, N(f2[d2], r2));
                v2 = ue(f2, r2), y2 && (l2 += (y2.left || 0) + (y2.right || 0), v2 += (y2.top || 0) + (y2.bottom || 0)), p2 = g2._zoomFactor, s2 = h(c(l2, a2) / p2), u2 = h(v2 / p2);
              }
              return 2 === m2.commentState() && m2.text(e3.value), { width: s2 + w2, height: u2 + w2 };
            }
          }, t3.prototype.$mr = function() {
            var t4, n3, e3 = this, i3 = e3.TZ;
            return i3.commentState() === ln.edit ? n3 = (t4 = e3.li).value : (t4 = e3.Ti, n3 = D.dI(t4.innerHTML)), { targetDOM: t4, domValue: n3 };
          }, t3.prototype.ml = function(t4) {
            var n3 = this, e3 = n3.TZ, i3 = "";
            return t4.font ? i3 += t4.font : (e3.fontStyle() && (i3 += Ot + e3.fontStyle()), e3.fontWeight() && (i3 += Ot + e3.fontWeight()), e3.fontSize() && (i3 += Ot + parseInt(e3.fontSize(), 10) * n3._zoomFactor + "pt"), e3.fontFamily() && (i3 += Ot + e3.fontFamily())), i3;
          }, t3.prototype.mQ = function() {
            var t4, n3 = this.li;
            n3 && (0, o.GC$)(n3).unbind(xt);
          }, t3.prototype.Fg = function() {
            var t4 = this, n3 = t4.NW.RW;
            n3.BW || ((0, o.GC$)(Q).bind(Xt + Yt, (function(n4) {
              t4.pg(n4);
            })).bind(qt + Yt, (function(n4) {
              t4.bg(n4);
            })), n3.BW = true);
          }, t3.prototype.u2 = function() {
            var t4 = this.NW.RW;
            t4.BW && (t4.BW = false, (0, o.GC$)(Q).unbind(Yt));
          }, t3;
        })(), n2.hW = wn, r.$e(wn), Mn = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Mf = t4, n3.RW = { BW: false, x: 0, y: 0, LW: u, FW: -1 }, n3.kW = u, n3.PW = u, n3.MZ = u, n3.wB = [], n3.GW = 0, n3.UW = [], n3.HW(), n3.zW(), n3.cE = {}, n3.E_r = {};
          }
          return t3.prototype.getUsedRange = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.all(), u2 = {};
            if (a2) for (t4 = void 0, n3 = void 0, e3 = 0, i3 = a2; e3 < i3.length; e3++) t4 = (r2 = i3[e3]).bZ, n3 = r2.yZ, J(u2, { minRow: t4, minCol: n3, maxRow: t4, maxCol: n3 });
            return u2;
          }, t3.prototype.dispose = function(t4) {
            var n3, e3 = this;
            e3.E_r = {}, (n3 = e3.all()).forEach((function(t5) {
              e3.NK(t5);
            })), e3.kK(), false !== t4 && (e3.Mf = u);
          }, t3.prototype.add = function(t4, n3, e3) {
            var i3, r2, a2 = this, s2 = a2.Mf, c2 = s2.getSpan(t4, n3);
            return !c2 || c2.row === t4 && c2.col === n3 ? (i3 = a2.get(t4, n3), r2 = "string" == typeof e3 ? new vn(e3) : e3, a2.WB(t4, n3, r2), s2.Rj("comment", t4, n3, o.SheetArea.viewport, i3, r2), r2) : u;
          }, t3.prototype.$Dr = function(t4, n3) {
            Yn(this.Mf, t4, n3);
          }, t3.prototype.THr = function(t4) {
            return Zn(this.Mf, t4);
          }, t3.prototype.WB = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.wB;
            a2.DK(t4, n3), e3 && (e3.bZ = t4, e3.yZ = n3, e3.Mf = u2, r2 = { type: "addComment", row: t4, col: n3, comment: e3 }, o2 = this.THr(r2), s2.push(e3), e3.lp = a2.GW, a2.GW++, this.$Dr(r2, o2), u2.Ut.MW({ type: "add", row: t4, col: n3, comment: e3 }), a2.E_r[e3.jKe()] = e3, a2._K(t4, n3, e3), i3 || u2.zw());
          }, t3.prototype.get = function(t4, n3) {
            return this.cE[t4 + "_" + n3] || u;
          }, t3.prototype._K = function(t4, n3, e3) {
            this.cE[t4 + "_" + n3] = e3;
          }, t3.prototype.EK = function(t4, n3, e3) {
            var i3 = t4.bZ, r2 = t4.yZ;
            this.get(i3, r2) === t4 && this._K(i3, r2, s), this.Mf.Ut.MW({ type: "rowcol", comment: t4, row: i3, col: r2, newRow: n3, newCol: e3 }), t4.bZ = n3, t4.yZ = e3, this._K(n3, e3, t4);
          }, t3.prototype.remove = function(t4, n3) {
            var e3 = this, i3 = e3.DK(t4, n3), r2 = e3.Mf;
            i3 && (r2.Rj(w, t4, n3, o.SheetArea.viewport, i3, s), r2.zw());
          }, t3.prototype.DK = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.get(t4, n3);
            return u2 && (a2.Ut.MW({ type: "remove", row: t4, col: n3, comment: u2 }), o2.NK(u2), e3 = { type: "removeComment", id: u2.jKe() }, i3 = this.THr(e3), y.VP(o2.wB, u2), a2.ki(T.CommentRemoved, { sheet: a2, sheetName: a2.name(), comment: u2, row: t4, col: n3 }), this.$Dr(e3, i3), (r2 = o2.mW(u2)) && (wn.et(r2, "dispose"), y.VP(o2.UW, r2)), o2.E_r[u2.jKe()] = s, o2._K(t4, n3, s)), u2;
          }, t3.prototype.clear = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.wB;
            for (a2.suspendPaint(), n3 = u2.length - 1; n3 >= 0; n3--) i3 = (e3 = u2[n3]).bZ, r2 = e3.yZ, (!t4 || i3 >= t4.row && i3 < t4.row + t4.rowCount && r2 >= t4.col && r2 < t4.col + t4.colCount) && o2.remove(i3, r2);
            a2.resumePaint();
          }, t3.prototype.qYr = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.Mf, a2 = r2.wB;
            for (o2.suspendPaint(), t4 = a2.length - 1; t4 >= 0; t4--) e3 = (n3 = a2[t4]).bZ, i3 = n3.yZ, r2.remove(e3, i3);
            o2.resumePaint();
          }, t3.prototype.all = function() {
            return this.wB.concat();
          }, t3.prototype.CB = function(t4, n3, e3, i3, r2, o2, a2) {
            if (void 0 === a2 && (a2 = true), (t4 || i3) && (t4 && this.EK(t4, r2, o2), i3 && this.EK(i3, n3, e3), a2)) {
              var u2 = { type: "sortSwap", sortType: "comment", fromRow: n3, fromCol: e3, toRow: r2, toCol: o2 };
              this.$Dr(u2, {});
            }
          }, t3.prototype.getOuterContainer = function(t4) {
            var n3 = this.mW(t4);
            return n3 ? n3.qW : u;
          }, t3.prototype.HW = function() {
            var t4 = m(Vt);
            (0, o.GC$)(t4).addClass("gc-comment-editor").css(it, 0).css(rt, 0).css(ct, ft).css("margin", 0).css(mt, 0).css("word-wrap", "break-word").css("word-break", "normal").css(lt, vt).css("resize", "none").css("outline", "none").css("border", "0px").css(pt, gt).css(Wt, "normal").attr("autocomplete", "off").attr("gcUIElement", "gcEditingInput"), this.kW = t4;
          }, t3.prototype.zW = function() {
            var t4 = this, n3 = t4.Mf;
            n3 && (n3.D3(T.ColumnChanged + wt, (function(n4, e3) {
              var i3 = e3.propertyName;
              i3 !== ut && "isVisible" !== i3 || t4.jK();
            })), n3.D3(T.RowChanged + wt, (function(n4, e3) {
              var i3 = e3.propertyName;
              i3 !== st && "isVisible" !== i3 || t4.jK();
            })), n3.D3(T.ColumnWidthChanged + wt, (function() {
              t4.jK();
            })), n3.D3(T.RowHeightChanged + wt, (function() {
              t4.jK();
            })), n3.D3(T.CommentChanged + wt, (function(n4, e3) {
              if (e3) {
                var i3 = e3.propertyName, r2 = e3.comment, o2 = t4.mW(r2);
                o2 && ("location" === i3 ? o2.CQ() : i3 !== ut && i3 !== st || o2.SQ());
              }
            })));
          }, t3.prototype.kK = function() {
            var t4, n3 = this.Mf;
            n3 && n3._3(wt);
          }, t3.prototype.mW = function(t4) {
            var n3, e3, i3 = this, r2 = i3.UW;
            if (t4) {
              for (n3 = 0; n3 < r2.length; n3++) if ((e3 = r2[n3]).TZ === t4) return e3;
            }
            return u;
          }, t3.prototype.Oy = function() {
            return 0 === this.wB.length;
          }, t3.prototype.RK = function() {
            var t4, n3, e3, i3 = this, r2 = i3.wB;
            if (r2.length > 0) {
              for (t4 = r2[0].zIndex(), n3 = 1; n3 < r2.length; n3++) t4 < (e3 = r2[n3]).zIndex() && (t4 = e3.zIndex());
              return t4;
            }
            return 0;
          }, t3.prototype.JO = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.wB, s2 = a2.UW;
            for (e3 = 0; e3 < u2.length; e3++) t4 <= (i3 = u2[e3]).bZ && a2.EK(i3, i3.bZ + n3, i3.yZ);
            for (r2 = 0; r2 < s2.length; r2++) (o2 = s2[r2]).LQ() && o2.JO(t4, n3);
          }, t3.prototype.qO = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.wB, s2 = a2.UW;
            for (e3 = 0; e3 < u2.length; e3++) t4 <= (i3 = u2[e3]).yZ && a2.EK(i3, i3.bZ, i3.yZ + n3);
            for (r2 = 0; r2 < s2.length; r2++) (o2 = s2[r2]).LQ() && o2.qO(t4, n3);
          }, t3.prototype.xP = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.wB, d2 = l2.UW;
            for (a2 = h2.length - 1; a2 >= 0; a2--) s2 = (u2 = h2[a2]).bZ, c2 = u2.yZ, s2 >= t4 && s2 < t4 + n3 && l2.remove(s2, c2);
            for (l2.Mf.parent && (null === (i3 = (e3 = l2.Mf.parent).suspendOp) || void 0 === i3 || i3.call(e3)), a2 = 0; a2 < h2.length; a2++) t4 < (u2 = h2[a2]).bZ && l2.EK(u2, u2.bZ - n3, u2.yZ);
            for (a2 = 0; a2 < d2.length; a2++) (f2 = d2[a2]).LQ() && f2.xP(t4, n3);
            l2.Mf.parent && (null === (o2 = (r2 = l2.Mf.parent).resumeOp) || void 0 === o2 || o2.call(r2));
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.wB, d2 = l2.UW;
            for (a2 = h2.length - 1; a2 >= 0; a2--) s2 = (u2 = h2[a2]).bZ, (c2 = u2.yZ) >= t4 && c2 < t4 + n3 && l2.remove(s2, c2);
            for (l2.Mf.parent && (null === (i3 = (e3 = l2.Mf.parent).suspendOp) || void 0 === i3 || i3.call(e3)), a2 = 0; a2 < h2.length; a2++) t4 < (u2 = h2[a2]).yZ && l2.EK(u2, u2.bZ, u2.yZ - n3);
            for (a2 = 0; a2 < d2.length; a2++) (f2 = d2[a2]).LQ() && f2.NP(t4, n3);
            l2.Mf.parent && (null === (o2 = (r2 = l2.Mf.parent).resumeOp) || void 0 === o2 || o2.call(r2));
          }, t3.prototype.pZ = function() {
            return this.MZ;
          }, t3.prototype.qQ = function(t4) {
            var n3 = this;
            t4 && t4 !== n3.MZ && (n3.CZ(), n3.MZ = t4);
          }, t3.prototype.CZ = function() {
            var t4, n3 = this, e3 = n3.MZ;
            e3 && (!(t4 = n3.mW(e3)) || t4.iQ || t4.Eb || (t4.uQ() && t4.$Q(), e3.commentState(ln.normal), n3.MZ = u));
          }, t3.prototype.$c = function(t4) {
            var n3 = this, e3 = n3.mW(t4);
            e3 || (e3 = new wn(t4, n3), n3.UW.push(e3)), e3.rQ();
          }, t3.prototype.wW = function(t4) {
            var n3 = this, e3 = n3.MZ;
            if (e3) {
              if (1 === e3.displayMode()) {
                if (e3.commentState() === ln.edit) return;
              } else if (e3.commentState() === ln.edit || e3.commentState() === ln.active) return;
            }
            t4 !== n3.PW && (n3.PW && n3.NK(n3.PW), t4 && 2 === t4.displayMode() ? n3.RW.BW || t4.BK || (n3.PW = t4, t4.BK = K.setTimeout((function() {
              n3.$c(t4);
            }), 200)) : n3.PW = u);
          }, t3.prototype.NK = function(t4) {
            var n3 = this, e3 = n3.mW(t4);
            e3 && e3.LQ() && (e3.lQ(), t4 === n3.MZ && n3.Mf.cR()), clearTimeout(t4.BK), delete t4.BK;
          }, t3.prototype.LK = function() {
            var t4 = this.Mf.pW && this.Mf.pW();
            t4 && (0, o.GC$)(t4.YW).show();
          }, t3.prototype.FK = function() {
            var t4 = this.Mf.pW && this.Mf.pW();
            t4 && (0, o.GC$)(t4.YW).hide();
          }, t3.prototype.PK = function(t4, n3, e3) {
            var i3, r2 = this.mW(t4);
            return !(!r2 || !(i3 = r2.pK())) && i3.contains(n3, e3);
          }, t3.prototype.GK = function(t4, n3, e3) {
            var i3, r2 = this.mW(t4);
            return !(!r2 || !(i3 = r2.bK())) && i3.contains(n3, e3);
          }, t3.prototype.hitTest = function(t4, n3) {
            var e3, i3, r2 = this, o2 = u;
            for (e3 = 0; e3 < r2.wB.length; e3++) i3 = r2.wB[e3], jn(r2.Mf, i3) && r2.PK(i3, t4, n3) && (o2 ? i3.zIndex() > o2.zIndex() && (o2 = i3) : o2 = i3);
            return o2 ? { x: t4, y: n3, comment: o2, area: r2.GK(o2, t4, n3) ? Lt : Ft } : u;
          }, t3.prototype.nK = function(t4) {
            var n3 = this, e3 = n3.RK();
            return t4 === n3.PW ? e3 + 2 : t4 === n3.MZ ? e3 + 1 : t4.zIndex();
          }, t3.prototype.jK = function() {
            this.UW.forEach((function(t4) {
              t4.TQ();
            }));
          }, t3.prototype.R_r = function(t4) {
            return this.E_r[t4];
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            if (t4 && 0 !== t4.length) {
              for (o2.GW = 0, e3 = 0; e3 < t4.length; e3++) i3 = t4[e3], (r2 = new vn()).fromJSON(i3, n3), 3 !== r2.commentState() && (o2.MZ = r2), o2.Mf.Ut.pI.WB(r2.bZ, r2.yZ, r2, true);
              o2.Mf.zw();
            }
          }, t3.prototype.yh = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = this;
            if (t4 && n3) {
              if (p2.GW = 0, (a2 = (a2 = B(t4, "commentList")).c_).length > 0) for (u2 = Rn(n3), s2 = this.Wro(u2), c2 = 0; c2 < a2.length; c2++) f2 = a2[c2], h2 = (l2 = new vn()).bZ = o.IndexHelper.qi(f2.ref), d2 = l2.yZ = o.IndexHelper.$i(f2.ref), v2 = null === (r2 = s2[h2]) || void 0 === r2 ? void 0 : r2[d2], f2.lossless && (l2.showShadow(f2.lossless.showShadow), l2.indicatorSize(f2.lossless.indicatorSize), l2.indicatorColor(f2.lossless.indicatorColor), l2.ignoreDefaultLocation(f2.lossless.ignoreDefaultLocation), l2.commentState(f2.lossless.commentState)), l2.yh(p2.Mf, f2, v2, e3, i3), 3 !== l2.commentState() && (p2.MZ = l2), p2.Mf.Ut.pI.WB(l2.bZ, l2.yZ, l2, true);
              p2.Mf.zw(), p2.Pfe = B(t4, "authors");
            }
          }, t3.prototype.Wro = function(t4) {
            var n3 = {};
            return t4.forEach((function(t5) {
              var e3, i3 = B(t5, "ClientData"), r2 = parseInt(B(i3, "Row").c_[0], 10), o2 = parseInt(B(i3, "Column").c_[0], 10);
              n3[r2] = null !== (e3 = n3[r2]) && void 0 !== e3 ? e3 : {}, n3[r2][o2] = t5;
            })), n3;
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3 = this.wB;
            if (!i3 || 0 === i3.length) return s;
            for (n3 = [], e3 = 0; e3 < i3.length; e3++) n3.push(i3[e3].toJSON(t4));
            return 0 === n3.length ? s : n3;
          }, t3;
        })(), Cn = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Mf = u, n3.VW = true, n3.YW = n3.ZW(), t4.appendChild(n3.YW);
          }
          return t3.prototype.L0 = function() {
            this.Mf = u;
          }, t3.prototype.ZW = function() {
            var t4 = m(yt);
            return (0, o.GC$)(t4).addClass("gc-comment-layoutPanel" + Ot + _t).css([ct, it, rt, st, ut, lt, dt, Et], [ft, 0, 0, 0, 0, ht, jt, Rt]), t4;
          }, t3.prototype.bW = function(t4) {
            var n3, e3, i3, r2 = this;
            t4.Ut.pI.Oy() || (n3 = t4.Fi(), (0, o.GC$)(r2.YW).css(it, n3.x + n3.XC).css(rt, n3.y + n3.qC), r2.Mf !== t4 && (r2.Mf && (i3 = (e3 = r2.Mf.Ut).pI.pZ()) && i3.commentState() === ln.edit && i3.commentState(ln.active, true), r2.Mf = t4));
          }, t3.prototype.yW = function(t4, n3, e3) {
            var i3, r2, a2, u2 = e3.row, s2 = e3.col, c2 = e3.x, f2 = e3.y, l2 = Nn(e3), h2 = kn(e3), d2 = this;
            n3 === o.SheetArea.viewport && d2.Mf && (i3 = d2.Mf.Ut.pI.get(u2, s2)) && (r2 = this.Mf, a2 = (i3.indicatorSize() || 6) * (r2 ? r2.zoom() : 1), t4 && l2 > 0 && h2 > 0 && (t4.save(), t4.rect(c2, f2, l2, h2), t4.clip(), t4.fillStyle = i3.indicatorColor() || "red", t4.beginPath(), r2.options.rightToLeft ? (t4.moveTo(c2 + a2, f2), t4.lineTo(c2, f2), t4.lineTo(c2, f2 + a2), t4.lineTo(c2 + a2, f2)) : (t4.moveTo(c2 + l2 - a2, f2), t4.lineTo(c2 + l2, f2), t4.lineTo(c2 + l2, f2 + a2), t4.lineTo(c2 + l2 - a2, f2)), t4.fill(), t4.restore()));
          }, t3.prototype.WW = function(t4) {
            var n3, e3, i3, r2, o2, a2, s2;
            if (this.VW) {
              for (t4.LK(), n3 = this.Mf, e3 = t4.all(), i3 = 0; i3 < e3.length; i3++) r2 = e3[i3], o2 = t4.mW(r2), this.UK(t4, r2) ? (1 === r2.displayMode() && r2 === t4.PW && (t4.PW = u), o2 && o2.LQ() ? o2.fQ() : t4.$c(r2)) : o2 && o2.LQ() && t4.NK(r2);
              (a2 = t4.pZ()) && (s2 = t4.mW(a2)) && s2.LQ() && n3.getSelections().length > 0 && n3.Ut.do("clearSelection");
            } else t4.FK();
          }, t3.prototype.UK = function(t4, n3) {
            var e3 = t4.Mf;
            if (e3 && qn(e3, n3.yZ) && Xn(e3, n3.bZ)) switch (n3.displayMode()) {
              case 1:
                return true;
              case 2:
                if (3 !== n3.commentState()) return t4 && n3 !== t4.PW && (t4.PW = n3), true;
                if (n3 === t4.PW) return true;
            }
            return false;
          }, t3;
        })(), Sn = r.Y8, r.GC$.extend(Sn.prototype, { MW: function(t3) {
          var n3, e3 = this.G8;
          e3 && ((n3 = e3.commentChanges) || (n3 = e3.commentChanges = []), n3.push(t3));
        }, HK: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.pI;
          if (t3) for (e3 = 0; e3 < t3.length; e3++) r2 = (i3 = t3[e3]).comment, "add" === i3.type ? ((o2 = new vn()).fromJSON(r2), (r2 = o2).commentState(3)) : r2 = c2.get(r2.rowIndex, r2.colIndex), "add" === i3.type ? c2.WB(i3.row, i3.col, r2) : "remove" === i3.type ? c2.DK(i3.row, i3.col) : "property" === i3.type ? (a2 = i3.name, u2 = i3.newValue, "commentState" !== a2 && r2[a2](u2)) : "rowcol" === i3.type && c2.EK(r2, i3.newRow, i3.newCol);
          else n3 && "changeComment" === n3.cmd && "commentState" !== n3.propertyName && (r2 = c2.get(n3.row, n3.col))[n3.propertyName](n3.newValue);
        }, zK: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2;
          if (t3) for (e3 = (n3 = this).pI, i3 = t3.length - 1; i3 >= 0; i3--) o2 = (r2 = t3[i3]).comment, "add" === r2.type ? e3.DK(r2.row, r2.col) : "remove" === r2.type ? e3.WB(r2.row, r2.col, r2.comment) : "property" === r2.type ? (a2 = r2.name, u2 = r2.value, o2[a2](u2)) : "rowcol" === r2.type && e3.EK(o2, r2.row, r2.col);
        }, OL: function(t3, n3, e3, i3) {
          var r2, o2, a2 = this;
          for (r2 = 0; r2 < e3; r2++) for (o2 = 0; o2 < i3; o2++) 0 === r2 && 0 === o2 || a2.getCell(t3 + r2, n3 + o2).comment() && a2.comments.remove(t3 + r2, n3 + o2);
        } }), Sn.ch("comments", { init: function() {
          this.pI = new Mn(this.Mf);
        }, applyChanges: function(t3) {
          var n3 = this, e3 = t3.command, i3 = t3.changes, r2 = t3.isUndo, o2 = i3 && i3.commentChanges;
          (o2 || e3) && (r2 ? n3.zK(o2) : n3.HK(o2, e3));
        }, undo: function(t3) {
          var n3 = t3.commentChanges;
          n3 && this.zK(n3);
        }, dispose: function(t3) {
          var n3 = this, e3 = t3 && t3.clearCache;
          n3.pI && n3.pI.dispose(e3), false !== e3 && (n3.pI = u);
        } }), Tn = { getUsedRange: function(t3) {
          var n3, e3, i3;
          t3.type & o.UsedRangeType.comment && (i3 = (e3 = (n3 = this).comments).getUsedRange(), J(t3.range, i3));
        }, init: function() {
          var t3 = this;
          t3.comments = t3.Ut.pI, t3.pW = function() {
            var n3 = t3.parent;
            if (n3 && n3.VK) return n3.VK.Mf = t3, t3.parent.VK;
          };
        }, dispose: function(t3) {
          false !== t3.clearCache && (this.pW = u, this.comments = u), fn(this, (0, o.GC$)(this.Dg()));
        }, setHost: function(t3) {
          if (t3) {
            var n3 = this.Ut.pI;
            n3 && n3.zW(), cn(t3, this);
          }
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, a2, u2, s2, c2;
          (F(t3.sheetArea) || 3 === t3.sheetArea) && (e3 = (n3 = this).Ut.pI, i3 = t3.changeType, a2 = t3.row, u2 = t3.rowCount, s2 = t3.col, c2 = t3.colCount, "addRows" === i3 ? e3.JO(a2, u2) : "deletingRows" === i3 ? e3.xP(a2, u2) : "addColumns" === i3 ? e3.qO(s2, c2) : "deletingColumns" === i3 ? e3.NP(s2, c2) : t3.sheetArea === o.SheetArea.viewport && ("clear" === i3 ? 4 & ~t3.type || e3.clear(new r.Range(a2, s2, u2, c2)) : "addSpan" === i3 ? Wn.call(n3, true, a2, s2, u2, c2) : "removeSpan" === i3 && Wn.call(n3, false, a2, s2)));
        }, onLayoutChangedFromOp: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2;
          (F(t3.sheetArea) || 3 === t3.sheetArea) && (e3 = (n3 = this).Ut.pI, i3 = t3.changeType, r2 = t3.row, o2 = t3.rowCount, a2 = t3.col, u2 = t3.colCount, "addRows" === i3 ? e3.JO(r2, o2) : "deleteRows" === i3 ? e3.xP(r2, o2) : "addColumns" === i3 ? e3.qO(a2, u2) : "deleteColumns" === i3 && e3.NP(a2, u2));
        }, paint: function(t3) {
          this.Ut.pI.Oy() || (Qn.call(this), this.CW(t3.clipRect));
        }, paintCell: function(t3) {
          t3.isPrinting || t3.sheetArea !== o.SheetArea.viewport || Kn.call(this, t3.ctx, t3.sheetArea, t3.cell);
        }, toJson: function(t3, n3) {
          var e3;
          n3 && n3.ignoreStyle || (t3.comments = this.Ut.pI.toJSON(n3));
        }, fromJson: function(t3, n3, e3) {
          var i3, r2 = e3 && e3.ignoreStyle;
          r2 || t3 && (i3 = n3 ? t3.commentManager : t3.comments, this.Ut.pI.qYr(), i3 && this.Ut.pI.fromJSON(i3, n3));
        }, lastNonNullRowAndCol: function() {
          var t3, n3, e3, i3, r2 = 0, o2 = 0, a2 = this.Ut.pI;
          if (a2 && (t3 = a2.UW) && t3.length > 0) for (n3 = 0, e3 = t3.length; n3 < e3; n3++) (i3 = t3[n3]) && i3.TZ && (i3.RQ > r2 && (r2 = i3.RQ), i3.jQ > o2 && (o2 = i3.jQ));
          return { lastNonNullRow: r2, lastNonNullCol: o2 };
        }, clearSelection: function() {
          this.Ut.pI.CZ();
        }, processKeyDown: function(t3) {
          var n3 = this, e3 = n3.Ut.pI.pZ();
          e3 && n3.rt.Pi(t3.e) && _n(n3, e3) && (e3.commentState(2, true), t3.r = true);
        }, yh: function(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = B(t3, "legacyDrawing"), g2 = t3.rels, m2 = e3 && false === e3.includeStyles;
          if (p2 && !m2) {
            for (i3 = this, r2 = g2.c_, a2 = p2 && p2["r:id"], s2 = 0, c2 = r2; s2 < c2.length; s2++) if ((l2 = (f2 = c2[s2]).Target).indexOf($) > 0) {
              u2 = l2.split("/").pop().slice(0, -4), u2 = o.Util.Kuo(u2);
              break;
            }
            h2 = o.Util.Gr(g2, a2, n3), d2 = n3.comments && n3.comments[u2], (v2 = i3.comments).yh(d2, h2, e3, n3);
          }
        }, wh: function(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2;
          !t3 || e3 && false === e3.includeStyles || (i3 = t3.rels, r2 = this.comments && this.comments.all(), a2 = this.parent.Cp, i3 && r2 && r2.length > 0 && (u2 = Y(i3), s2 = X + u2, c2 = this.wp, i3.c_.push({ n_: q, Id: s2, Type: o.RelationshipConstants.hc, Target: "../" + o.XFileConstants.ou + c2 + "." + o.XFileConstants.Cr }), o.Util.Hr(t3, a2)));
        } }, o.Worksheet.ch("comments", Tn), xn = { init: function() {
          a.SZ(this.commandManager());
        }, setHost: function() {
          this.VK || (this.VK = new Cn(this.j2()));
        }, dispose: function() {
          this.VK && (this.VK.L0(), this.VK = u);
        }, wh: function(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.sheets;
          if (!e3 || false !== e3.includeStyles) {
            for (i3 = 0; i3 < m2.length; i3++) if (r2 = m2[i3], a2 = Z(t3, r2.name()), (s2 = (u2 = r2.comments) && u2.all()) && s2.length > 0) for ((c2 = o.Util.Ur(t3, a2)).c_.push({ n_: "shapetype", id: "_x0000_t202", coordsize: "21600,21600", "o:spt": "202", path: "m,l,21600r21600,l21600,xe", c_: [{ n_: "stroke", joinstyle: "miter" }, { n_: "path", gradientshapeok: "t", "o:connecttype": "rect" }] }), f2 = u2.Pfe || { n_: "authors", c_: [{ n_: "author", c_: ["Author"] }] }, l2 = t3[$ + r2.wp] = { n_: $, r_: [13, 14, 15, 16], c_: [f2, { n_: "commentList", c_: [] }] }, h2 = o.Util.qr(r2.wp, c2), d2 = 0; d2 < s2.length; d2++) (p2 = (v2 = s2[d2]).wh(h2)).commentData && (p2.commentData.lossless = { showShadow: v2.showShadow(), indicatorSize: v2.indicatorSize(), indicatorColor: v2.indicatorColor(), ignoreDefaultLocation: v2.ignoreDefaultLocation(), commentState: v2.commentState() }), h2++, c2.c_.push(p2.vmlDrawingData), l2.c_[1].c_.push(p2.commentData);
          }
        } }, r.Workbook.ch("comments", xn);
      }, "./dist/plugins/components/common/base/component-base.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { ComponentBase: function() {
          return i2;
        } });
        class i2 extends HTMLElement {
          constructor() {
            super(), this.Lsr = false, this.Psr = "1", this.Gsr = "auto", this.attachShadow({ mode: "open" });
          }
          Kbt(t3) {
            this.y4 = t3;
          }
          Sl() {
            return this.y4;
          }
          bur(t3) {
            t3 && !this.Lsr && (this.Psr = this.style.opacity, this.Gsr = this.style.pointerEvents), t3 ? (this.style.opacity = "0.6", this.style.pointerEvents = "none") : (this.style.opacity = this.Psr, this.style.pointerEvents = this.Gsr), this.Lsr = t3;
            const n3 = this.shadowRoot.querySelector(".container");
            n3 && (n3.ariaDisabled = t3 ? "true" : "false");
          }
          Usr() {
            return this.Lsr;
          }
          aer() {
            this.dispatchEvent(new CustomEvent("sjs-value-change", { bubbles: true, detail: this.y4 }));
          }
        }
      }, "./dist/plugins/components/common/base/dropdown-base.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { DropdownBase: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/component-base.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.uer = (t3) => false, this.ser = () => false, this.cer = () => false, this.fer = (t3) => {
              this.uer(t3) || (this.ler ? this.her() : this.der());
            }, this.ver = () => {
              this.ler = this.ger();
              const t3 = document.createElement("div");
              this.ler.appendChild(t3), t3.classList.add("dp-panel"), t3.style.position = "fixed", t3.style.boxShadow = i2.CSSUtils.boxShadow.replace("box-shadow:", "").replace(";", ""), t3.style.background = i2.CSSVariables.background, t3.style.color = i2.CSSVariables.color, t3.style.width = `${this.mer.getBoundingClientRect().width}px`, t3.style.border = `1px solid ${i2.CSSVariables.borderColor}`, this.shadowRoot.querySelector(".container").appendChild(this.ler), window.addEventListener("resize", this.dC), window.addEventListener("mousedown", this.per, true), window.addEventListener("wheel", this.ber);
            }, this.wer = () => {
              window.removeEventListener("resize", this.dC), window.removeEventListener("mousedown", this.per, true), window.removeEventListener("wheel", this.ber), this.ler.remove(), this.ler = void 0;
            }, this.ger = () => {
              const t3 = document.createElement("div");
              return t3.style.zIndex = "1024", t3.style.position = "fixed", t3.style.left = "0", t3.style.top = "0", t3.style.background = "transparent", t3.classList.add("dp-panel-root"), t3;
            }, this.dC = () => {
              this.yer();
            }, this.per = (t3) => {
              if (!this.ler) return;
              if (t3.target.closest(".sjs-dp-panel-sub-content")) return;
              const n3 = this.mer.getBoundingClientRect(), e3 = this.Mer().getBoundingClientRect();
              this.Cer(n3, t3.clientX, t3.clientY) || this.Cer(e3, t3.clientX, t3.clientY) || this.her();
            }, this.ber = (t3) => {
              const n3 = this.Mer().getBoundingClientRect();
              this.Cer(n3, t3.clientX, t3.clientY) || this.her();
            }, this.Cer = (t3, n3, e3) => n3 >= t3.left && n3 <= t3.right && e3 >= t3.top && e3 <= t3.bottom, this.Mer = () => this.ler.querySelector(".dp-panel");
          }
          connectedCallback() {
            this.y4 = this.Ser(this.getAttribute("value"));
            const t3 = this.getAttribute("label"), n3 = this.ser(), e3 = this.cer();
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".label", { width: `var(--sjs-label-width, ${i2.CSSVariables.labelWidth})` })}
                .dp-root { ${i2.CSSUtils.rowFlex("space-between")} ${i2.CSSUtils.border} }
                .dp-root.invalid {${i2.CSSUtils.invalidBorder}}
                ${i2.CSSUtils.generateCss(".dp-root", { width: i2.CSSUtils.editorWidth(!!t3, true), height: "var(--sjs-dp-root-height, 30px)", cursor: "pointer" })}
                ${i2.CSSUtils.generateCss(".dp-value-root", { width: "calc(100% - 30px)", overflow: "hidden", textOverflow: "ellipsis", height: "var(--sjs-dp-value-root-height, 28px)" })}
                .dp-expand-btn { ${i2.CSSUtils.noBorderNoOutline} ${i2.CSSUtils.rowFlex()}  width: 30px; cursor: pointer; }
                ${i2.CSSUtils.generateCss(".dp-icon", { height: "100%", width: "100%", transition: "transform 0.2s" })}
                ${i2.CSSUtils.generateCss(".dp-root.no-border", { border: "none" })}
                ${i2.CSSUtils.generateCss(".dp-value-root.full", { width: "100%" })}
                .dp-root, .dp-value-root { ${i2.CSSUtils.borderRadius} }
            </style>
            <div class="container" part="container">
                ${t3 ? `<div class="label" ${(0, i2.sHr)(t3)}>${t3}</div>` : ""}
                <div class="dp-root ${n3 ? "no-border" : ""}" >
                    <div class="dp-value-root ${e3 ? "full" : ""}" ></div>
                    ${e3 ? "" : `<button class="dp-expand-btn">${i2.Icons.dropdown}</button>`}
                </div>
            </div>
        `, this.mer = this.shadowRoot.querySelector(".dp-root"), this.Aer = this.shadowRoot.querySelector(".dp-value-root"), this.xer(this.Aer), this.mer.addEventListener("click", this.fer);
          }
          disconnectedCallback() {
            this.her(), this.mer.removeEventListener("click", this.fer);
          }
          Kbt(t3) {
            if (this.y4 !== t3) {
              if (this.y4 = t3, !this.Aer) return;
              this.xer(this.Aer);
            }
          }
          der() {
            this.ler || (this.ver(), this.Ter(this.Mer(), "opening"), this.yer());
          }
          her() {
            this.ler && (this.Ter(this.Mer(), "closing"), this.wer());
          }
          Jet() {
            return !!this.ler;
          }
          Ter(t3, n3) {
          }
          xer(t3) {
          }
          yer() {
            const t3 = this.Mer(), n3 = this.mer.getBoundingClientRect(), e3 = document.body.getBoundingClientRect(), i3 = t3.getBoundingClientRect();
            t3.style.left = n3.right - i3.width + "px";
            const r2 = 2;
            n3.bottom + i3.height + 2 < e3.bottom ? t3.style.top = `${n3.bottom + 2}px` : n3.top - i3.height >= 2 && n3.bottom < e3.bottom ? t3.style.top = n3.top - i3.height - 2 + "px" : t3.style.top = `${Math.max(e3.height - i3.height - 2, 0)}px`;
          }
          Ser(t3) {
            return t3;
          }
          Ier(t3) {
            t3 ? this.mer.classList.add("invalid") : this.mer.classList.remove("invalid");
          }
        }
      }, "./dist/plugins/components/common/base/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { ComponentBase: function() {
          return i2.ComponentBase;
        }, DropdownBase: function() {
          return r.DropdownBase;
        } }), i2 = e2("./dist/plugins/components/common/base/component-base.js"), r = e2("./dist/plugins/components/common/base/dropdown-base.js");
      }, "./dist/plugins/components/common/button.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { Button: function() {
          return r;
        } });
        var i2 = e2("./dist/plugins/components/utils/index.js");
        class r extends HTMLElement {
          constructor() {
            super(), this.attachShadow({ mode: "open" });
          }
          connectedCallback() {
            const t3 = this.getAttribute("type") || "text", n3 = this.getAttribute("btn-style") || "normal", e3 = this.getAttribute("disabled"), r2 = e3 ? `disabled="${e3}"` : "";
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                button {
                    ${i2.CSSUtils.buttonBase}
                    height: 30px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    padding: 0 10px;
                    ${i2.CSSUtils.borderRadius}
                }
                button.normal {
                    background: ${i2.CSSVariables.lightGrayBg};
                }
                button.no-bg,button.accent-icon { background: transparent; }
                button.accent-icon svg * { fill: ${i2.CSSVariables.accent} }
                button.normal * { background: transparent; }
                ${i2.CSSUtils.hoverBackground("button.normal:not([disabled])")}
                ${i2.CSSUtils.hoverBackground("button.no-bg:not([disabled])")}
                ${i2.CSSUtils.hoverBackground("button.accent-icon:not([disabled])")}
                button.accent {
                    background: ${i2.CSSVariables.accent};
                    color: ${i2.CSSVariables.accentColor};
                }
                button.accent:not([disabled]):hover {
                    filter: brightness(95%);
                }
                button[disabled] {opacity:.45;}
                button.icon, button.icon-sm, button.icon-text {
                    justify-content: center;
                    height: 30px;
                    width: 30px;
                    padding: 0;
                }
                button.icon-text {
                    width: 100%;
                }
                button.icon-sm {
                    height: 20px;
                }
                button.round-icon {
                    border-radius: 50%;
                    height: 24px;
                    width: 24px;
                    padding: 0;
                }
                button.round-icon *, button.icon *, button.icon-sm *, button.icon-text * {
                    background: transparent;
                    color: ${i2.CSSVariables.color};
                }
                button.round-icon *, button.icon *, button.icon-sm svg, button.icon-text * {
                    fill: ${i2.CSSVariables.color};
                }
                button.round-icon.accent *, button.icon.accent *,button.icon-sm.accent *, button.icon-text.accent * {
                    background: ${i2.CSSVariables.accent};
                    color: ${i2.CSSVariables.accentColor};
                    fill: ${i2.CSSVariables.accentColor};
                }
            </style>
            <button type="button" class="${t3} ${n3}" ${r2}>
                ${this.innerHTML}
            </button>
        `, this.mur = this.shadowRoot.querySelector("button"), "text" === t3 && this.innerHTML.length < 20 && (this.mur.ariaLabel = this.innerHTML);
          }
          bur(t3) {
            this.mur && (this.mur.disabled = t3, this.mur.ariaDisabled = t3 ? "true" : "false");
          }
          qWt(t3) {
            ["normal", "accent", "no-bg", "accent-icon"].forEach(((n3) => {
              n3 !== t3 && this.mur.classList.remove(n3);
            })), this.mur.classList.add(t3);
          }
        }
        (0, i2.s0r)("sjs-button", r);
      }, "./dist/plugins/components/common/checkbox.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Checkbox: function() {
          return a;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        const o = "true";
        class a extends r.ComponentBase {
          constructor() {
            super(...arguments), this.ker = (t3) => {
              this.Ner && this._er(false), this.y4 = t3.target.checked, this.aer();
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            const r2 = this.getAttribute("label"), a2 = (null === (t3 = this.getAttribute("value")) || void 0 === t3 ? void 0 : t3.toLocaleLowerCase()) === o, u = this.getAttribute("indeterminate") === o, s = this.getAttribute("text") || this.getAttribute("name"), c = null !== (n3 = this.getAttribute("width")) && void 0 !== n3 ? n3 : "18px", f = null !== (e3 = this.getAttribute("height")) && void 0 !== e3 ? e3 : "18px", l = this.getAttribute("margin"), h = l ? `margin: ${l};` : "";
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                    background-color: transparent;
                    ${h}
                }
                ${i2.CSSUtils.generateCss(".label", { width: i2.CSSVariables.labelWidth })}
                .container .input-container {
                    ${i2.CSSUtils.noBorderNoOutline}
                    ${i2.CSSUtils.rowFlex(this.getAttribute("reverse-direction") ? "" : "flex-end")}
                    width: ${r2 ? `calc(100% - ${i2.CSSVariables.labelWidth})` : "100%"};
                    height: 100%;
                    background-color: transparent;
                }
                .input-container .checkbox-container {
                    display: flex;
                    align-self: center;
                }
                .input-container .checkbox-container input {
                    display: none;
                    transition: background-color 0.3s;
                    background-color: transparent;
                }
                .input-container .checkbox-container input + label {
                    cursor: pointer;
                    display: inline-flex;
                    align-items: center;
                    user-select: none;
                    background-color: transparent;
                  }
                .input-container .checkbox-container input + label::before {
                    content: '';
                    display: inline-block;
                    box-sizing: border-box;
                    width: ${c};
                    height: ${f};
                    flex-shrink: 0;
                    flex-grow: 0;
                    border: 1px solid ${i2.CSSVariables.accent};
                    border-radius: 0.25em;
                    background-repeat: no-repeat;
                    background-size: 100%;
                    transition: background-color 0.3s;
                }
                .input-container .checkbox-container input:checked + label::before {
                    background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.checkbox)});
                    background-color: ${i2.CSSVariables.accent};
                }
                .input-container .checkbox-container input.indeterminate + label::before {
                    background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.indeterminateCheckbox)});
                    background-color: ${i2.CSSVariables.accent};
                }
                .value-text {padding-left: 10px;display: none;background-color: transparent;white-space: nowrap;overflow:hidden;text-overflow: ellipsis;}
            </style>
            <div class="container" part="container" >
                ${r2 ? `<div class="label" ${(0, i2.sHr)(r2)}>${r2}</div>` : ""}
                <div class="input-container">
                    <div class="checkbox-container">
                        <input id="check" type="checkbox" />
                        <label for="check" />
                    </div>
                    <span class="value-text"></span>
                </div>
            </div>
        `, this.jer = this.shadowRoot.querySelector("input"), this.jer.addEventListener("change", this.ker), this.DLn(s), this.Kbt(a2), this._er(u);
          }
          disconnectedCallback() {
            this.jer.removeEventListener("change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.jer.checked = t3, this.shadowRoot.querySelector(".checkbox-container").ariaChecked = t3 ? "true" : "false";
          }
          _er(t3) {
            this.Ner = t3, this.jer.classList.toggle("indeterminate", t3);
          }
          o0r() {
            return this.Ner;
          }
          DLn(t3) {
            const n3 = this.shadowRoot.querySelector(".value-text");
            n3 && (t3 = "" + t3, n3.title = t3, n3.textContent = t3, n3.style.display = t3 ? "block" : "none");
          }
        }
        (0, i2.s0r)("sjs-checkbox", a);
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/baseControl.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { BaseDropdown: function() {
          return r;
        } });
        var i2 = e2("./dist/plugins/components/common/dropdowns/calendar-utils/eventbase.js");
        class r extends i2.EventBase {
          getOptions() {
            return this.MU;
          }
          updateStyle(t3, n3, e3) {
          }
          scrollToSelect() {
          }
          getContainer() {
            return this.Ti;
          }
          refresh() {
          }
          wU() {
          }
          dispose() {
          }
          constructor(t3) {
            super(), this.Ti = t3;
          }
        }
        r.Event_ValueChanged = "ValueChangedEvent";
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/calendar.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        e2.r(n2), e2.d(n2, { Calendar: function() {
          return Rt;
        }, RangeCalendar: function() {
          return Lt;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/calendar-utils/eventbase.js"), r = e2("./dist/plugins/components/common/dropdowns/calendar-utils/timepicker.js"), o = e2("./dist/plugins/components/common/dropdowns/calendar-utils/baseControl.js"), a = e2("./dist/plugins/components/resource/component.ns.js"), u = e2("Common"), s = e2.n(u), c = e2("./dist/plugins/components/common/dropdowns/calendar-utils/interface.js");
        const l = new u.Common.ResourceManager(a.SR, "Component"), h = l.getResource.bind(l), d = void 0, v = u.Common.lt.ht, p = document;
        function g(t3) {
          return p.createElement(t3);
        }
        const m = "gc-calendar-container", b = "gc-date-ranges-calendar", y = "gc-range-calendar-container", w = "gc-date-range-container", M = "gc-date-time-container", C = "gc-date-part-container", S = "gc-time-part-container", T = "gc-ok-button-container", x = "gc-date-container", A = "gc-week-container", I = "gc-today-container", k = "gc-content-container", N = "gc-header-container", j = "gc-header-title", D = "gc-content-td-date", _ = "gc-content-td-time", O = "gc-date-time-vertical-partline", E = "gc-date-time-horizontal-partline", R = "gc-year-page", L = "gc-year-select-div", F = "gc-month-page", B = "gc-day-page", P = "gc-left-arrow", G = "gc-right-arrow", U = "gc-arrow-disable", H = "gc-is-focused", V = "gc-cl-select", z = "gc-cl-is-selected", Y = "gc-cl-disabled-text", Z = "gc-cl-select-container", W = "gc-focus-part-indicator", Q = "gc-cl-datepicker", K = "gc-cl-dropdown", J = "gc-cl-datepicker-filter", X = "gc-cl-datepicker-filter-month", q = "gc-cl-grid-align-spread", $ = "gc-cl-align-middle", tt = "gc-cl-button-icon-container", nt = "gc-cl-datepicker-month", et = "gc-cl-day", it = "gc-cl-week", rt = "gc-cl-show-inline-block", ot = "gc-builtIn-date-Range-child-div", at = "gc-builtIn-date-ranges-div", ut = "gc-date-ranges-result-div", st = "gc-date-ranges-result-button", ct = "gc-builtIn-date-range-childDiv-select", ft = "gc-date-ranges-result-buttonDiv", lt = "gc-date-ranges-result-input", ht = "gc-cl-p-bottom-x-small", dt = "gc-cl-shrink-none", vt = "gc-cl-grow", pt = "gc-cl-grid", gt = "gc-uiButton", mt = "gc-cl-button", bt = "gc-cl-button-brand", yt = "year-index", wt = "month-index", Mt = "week-index", Ct = "day-index", St = "dateRange-index";
        !(function(t3) {
          t3[t3.Date = 1] = "Date", t3[t3.Time = 2] = "Time";
        })(f || (f = {}));
        class Tt {
          static initResource() {
            Tt.resource = { shortWeeks: [h().Calendar_ShortWeeks_1, h().Calendar_ShortWeeks_2, h().Calendar_ShortWeeks_3, h().Calendar_ShortWeeks_4, h().Calendar_ShortWeeks_5, h().Calendar_ShortWeeks_6, h().Calendar_ShortWeeks_7], shortMonths: [h().Calendar_ShortMonths_1, h().Calendar_ShortMonths_2, h().Calendar_ShortMonths_3, h().Calendar_ShortMonths_4, h().Calendar_ShortMonths_5, h().Calendar_ShortMonths_6, h().Calendar_ShortMonths_7, h().Calendar_ShortMonths_8, h().Calendar_ShortMonths_9, h().Calendar_ShortMonths_10, h().Calendar_ShortMonths_11, h().Calendar_ShortMonths_12], weeks: [h().Calendar_Weeks_7, h().Calendar_Weeks_1, h().Calendar_Weeks_2, h().Calendar_Weeks_3, h().Calendar_Weeks_4, h().Calendar_Weeks_5, h().Calendar_Weeks_6], months: [h().Calendar_Months_1, h().Calendar_Months_2, h().Calendar_Months_3, h().Calendar_Months_4, h().Calendar_Months_5, h().Calendar_Months_6, h().Calendar_Months_7, h().Calendar_Months_8, h().Calendar_Months_9, h().Calendar_Months_10, h().Calendar_Months_11, h().Calendar_Months_12], timePrefix: [h().Calendar_Time_AM, h().Calendar_Time_PM], eraNames: [h().Calendar_EraName_1, h().Calendar_EraName_2, h().Calendar_EraName_3, h().Calendar_EraName_4], earFirstYear: h().Calendar_FirstYear, today: h().Calendar_Today, lastMonth: h().Calendar_LastMonth, nextMonth: h().Calendar_NextMonth, lastYear: h().Calendar_LastYear, nextYear: h().Calendar_NextYear, lastTenYears: h().Calendar_LastTenYear, nextTenYears: h().Calendar_NextTenYear };
          }
        }
        Tt.resource = { shortWeeks: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], shortMonths: ["Jan", "Feb", "Mar", "Api", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], weeks: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], months: ["January", "February", "March", "Apirl", "May", "June", "July", "August", "September", "October", "November", "December"], timePrefix: ["AM", "PM"], eraNames: ["M", "T", "S", "H"], earFirstYear: "1", today: "Today", lastMonth: "Go to previous month", nextMonth: "Go to next month", lastYear: "Go to previous year", nextYear: "Go to next year", lastTenYears: "Go to previous ten years", nextTenYears: "Go to next ten years" };
        class xt {
          constructor() {
            this.yearTds = [];
          }
        }
        class At {
          constructor() {
            this.monthTds = [];
          }
        }
        class It {
          constructor() {
            this.weekThs = [], this.dayTds = [];
          }
        }
        class kt {
          constructor() {
            this.calendarYearSection = new xt(), this.calendarMonthSection = new At(), this.calendarDaySection = new It(), this.timeItemLIs = [];
          }
        }
        class Nt {
          static dateEqual(t3, n3, e3) {
            if (!t3 && !n3) return true;
            if (!t3) return false;
            if (!n3) return false;
            try {
              return e3 ? t3.getFullYear() === n3.getFullYear() && t3.getMonth() === n3.getMonth() && t3.getDate() === n3.getDate() && t3.getHours() === n3.getHours() && t3.getMinutes() === n3.getMinutes() && t3.getSeconds() === n3.getSeconds() : t3.getFullYear() === n3.getFullYear() && t3.getMonth() === n3.getMonth() && t3.getDate() === n3.getDate();
            } catch (t4) {
              return false;
            }
          }
          static getMonthMaxDay(t3, n3) {
            return -1 !== [1, 3, 5, 7, 8, 10, 12].indexOf(n3) ? 31 : -1 !== [4, 6, 9, 11].indexOf(n3) ? 30 : t3 % 4 == 0 && t3 % 100 != 0 ? 29 : 28;
          }
          static isValidEraDate(t3) {
            return !(t3 < this.eraMin || t3 > this.eraMax);
          }
          static addMilliseconds(t3, n3) {
            let e3 = new Date(t3.getFullYear(), t3.getMonth(), t3.getDate(), t3.getHours(), t3.getMinutes(), t3.getSeconds());
            return e3.setMilliseconds(e3.getMilliseconds() + n3), new Date(e3.valueOf());
          }
          static getEraDate(t3) {
            let n3 = { era: -1, eraYear: -1 };
            if (!Nt.isValidEraDate(t3)) return n3;
            for (let e3 = 0; e3 < Nt.eraCount; e3++) {
              let i3;
              if (t3 < (e3 + 1 !== Nt.eraCount ? Nt.eraDates[e3 + 1] : Nt.addMilliseconds(Nt.eraMax, 1))) {
                n3.era = e3, n3.eraYear = t3.getFullYear() - Nt.eraDates[e3].getFullYear() + 1;
                break;
              }
            }
            return n3;
          }
          static getEraYearString(t3) {
            let n3 = new Date(t3, 5, 30), e3 = Nt.getEraDate(n3);
            return -1 === e3.era || -1 === e3.eraYear ? t3.toString() : t3.toString() + "年";
          }
          static getShortEraYearString(t3) {
            let n3 = new Date(t3, 11, 31), e3 = Nt.getEraDate(n3);
            if (-1 === e3.era || -1 === e3.eraYear) return "";
            let i3 = 1 === e3.eraYear ? Tt.resource.earFirstYear : e3.eraYear;
            return Tt.resource.eraNames[e3.era] + i3 + "年";
          }
          static getDateLocaleLabel(t3) {
            let n3 = t3.getHours(), e3 = t3.getMinutes(), i3, r2, o2;
            return (n3 < 12 ? Tt.resource.timePrefix[0] : Tt.resource.timePrefix[1]) + " " + (0 === n3 || 12 === n3 ? "12" : (n3 % 12).toString()) + ":" + (e3 < 10 ? "0" + e3.toString() : e3.toString());
          }
          static getBuiltInDateRanges() {
            let t3 = /* @__PURE__ */ new Date(), n3 = new Date(t3.getFullYear(), t3.getMonth(), t3.getDate());
            n3.setDate(t3.getDate() - 1);
            let e3 = new Date(t3);
            e3.setDate(t3.getDate() - 6);
            let i3 = t3.getFullYear(), r2 = t3.getMonth(), o2 = new Date(i3, r2, 1), a2 = new Date(i3, r2 - 1, 1), u2 = new Date(i3, r2 + 1, 0);
            return [[h().Calendar_BuiltIn_Today, { start: new Date(t3.getFullYear(), t3.getMonth(), t3.getDate()), end: new Date(t3.getFullYear(), t3.getMonth(), t3.getDate()) }], [h().Calendar_BuiltIn_Yesterday, { start: new Date(n3.getFullYear(), n3.getMonth(), n3.getDate()), end: n3 }], [h().Calendar_BuiltIn_Last7Days, { start: new Date(e3.getFullYear(), e3.getMonth(), e3.getDate()), end: new Date(t3.getFullYear(), t3.getMonth(), t3.getDate()) }], [h().Calendar_BuiltIn_ThisMonth, { start: new Date(o2.getFullYear(), o2.getMonth(), 1), end: new Date(o2.getFullYear(), o2.getMonth(), u2.getDate()) }], [h().Calendar_BuiltIn_LastMonth, { start: new Date(a2.getFullYear(), a2.getMonth(), 1), end: new Date(o2.getFullYear(), o2.getMonth(), 0) }]];
          }
          static getDefaultDate() {
            let t3 = /* @__PURE__ */ new Date();
            return new Date(t3.getFullYear(), t3.getMonth(), t3.getDate());
          }
          static getNextMonth(t3) {
            let n3 = t3.getFullYear(), e3 = t3.getMonth() + 1, i3 = new Date(n3, e3, 1);
            return 12 === e3 && (i3.setFullYear(n3 + 1), i3.setMonth(0)), i3;
          }
          static getPreviousMonth(t3) {
            let n3 = t3.getFullYear(), e3 = t3.getMonth() - 1, i3 = new Date(n3, e3, 1);
            return -1 === e3 && (i3.setFullYear(n3 - 1), i3.setMonth(11)), i3;
          }
          static getFirstDayOfMonth(t3) {
            let n3 = t3.getFullYear(), e3 = t3.getMonth();
            return new Date(n3, e3, 1);
          }
          static getShortDate(t3) {
            if (v(t3)) return t3;
            let { start: n3, end: e3 } = t3;
            return { start: new Date(n3.getFullYear(), n3.getMonth(), n3.getDate()), end: new Date(e3.getFullYear(), e3.getMonth(), e3.getDate()) };
          }
        }
        Nt.eraCount = 4, Nt.eraMax = new Date(2087, 11, 31, 23, 59, 59), Nt.eraMin = new Date(1868, 8, 8), Nt.eraDates = new Array(new Date(1868, 8, 8), new Date(1912, 6, 30), new Date(1926, 11, 25), new Date(1989, 0, 8));
        class jt {
          constructor(t3, n3, e3, i3) {
            this.year = t3, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          getLabel() {
            return this.year.toString();
          }
        }
        class Dt {
          constructor(t3, n3, e3, i3) {
            this.month = t3, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          getLabel() {
            return Tt.resource.shortMonths[this.month];
          }
        }
        class _t {
          constructor(t3, n3, e3, i3) {
            this.date = t3, this.selected = !!n3, this.disabled = !!e3, this.focused = !!i3;
          }
          getLabel() {
            return this.date.getDate().toString();
          }
        }
        class Ot {
          constructor(t3) {
            this.owner = t3, this.calendarPage = c.CalendarPage.month, this.oldSelectedData = null, this.$le = null, this.the = { start: Nt.getDefaultDate(), end: Nt.getDefaultDate() }, this.selectedDate = /* @__PURE__ */ new Date(), this.updateDayFocusDate(), this.focusDateTimeIndex = -1, Tt.initResource();
          }
          static getMonthName(t3) {
            return Tt.resource.months[t3];
          }
          static getShortMonthName(t3) {
            return Tt.resource.shortMonths[t3];
          }
          get RangeCalendar() {
            return this.owner && this.owner.parent;
          }
          updateDayFocusDate() {
            if (this.owner.nhe) {
              let t3 = this.the;
              if (1 === this.owner.ehe) this.focusDate = Nt.getFirstDayOfMonth(t3.start);
              else if (2 === this.owner.ehe) {
                let n3;
                n3 = t3.end.getFullYear() === t3.start.getFullYear() && t3.end.getMonth() === t3.start.getMonth() ? Nt.getNextMonth(t3.start) : Nt.getFirstDayOfMonth(t3.end), this.focusDate = n3;
              }
            } else this.focusDate = new Date(this.selectedDate.valueOf());
          }
          updateDayItems() {
            this.dayItems = [];
            let t3 = this.focusDate.getFullYear(), n3 = this.focusDate.getMonth(), e3, i3, r2, o2 = new Date(t3, n3, 1).getDay() - this.owner.dH, a2 = (o2 < 0 ? o2 + 7 : o2) % 7;
            for (let e4 = a2; e4 > 0; e4--) {
              let i4 = new Date(t3, n3, 1);
              i4.setDate(i4.getDate() - e4);
              let r3 = new _t(i4, false, true, false);
              this.dayItems.push(r3);
            }
            for (let e4 = 1; e4 <= 42 - a2; e4++) {
              let i4 = new Date(t3, n3, e4), r3 = new _t(i4);
              if (i4.getMonth() !== n3 && (r3.disabled = true), this.owner.nhe) {
                let t4 = this.the;
                (Nt.dateEqual(i4, t4.start) || Nt.dateEqual(i4, t4.end)) && (r3.selected = true), i4 > t4.start && (i4 < t4.end || this.ohe && i4 <= this.ohe) && !r3.disabled && (r3.focused = true);
              } else Nt.dateEqual(i4, this.selectedDate) && (r3.selected = true), Nt.dateEqual(i4, this.focusDate) && (r3.focused = true);
              this.dayItems.push(r3);
            }
          }
          updateMonthItems() {
            this.monthItems = [];
            for (let t3 = 0; t3 < 12; t3++) {
              let n3 = new Dt(t3);
              if (this.owner.nhe) {
                let e3 = this.the;
                n3.selected = e3.start.getMonth() === t3 || e3.end.getMonth() === t3, n3.focused = e3.start.getMonth() < t3 && e3.end.getMonth() > t3;
              } else {
                let e3 = this.selectedDate, i3 = this.focusDate;
                n3.selected = e3 && e3.getMonth() === t3 && e3.getFullYear() === i3.getFullYear(), n3.focused = i3 && i3.getMonth() === t3;
              }
              this.monthItems.push(n3);
            }
          }
          updateYearItems() {
            this.yearItems = [];
            for (let t3 = this.focusDateYearRangeStart - 1; t3 <= this.focusDateYearRangeEnd + 1; t3++) {
              let n3 = new jt(t3);
              if (this.owner.nhe) {
                let e3 = this.the;
                n3.selected = e3.start.getFullYear() === t3 || e3.end.getFullYear() === t3, n3.focused = e3.start.getFullYear() < t3 && e3.end.getFullYear() > t3;
              } else n3.selected = this.selectedDate && this.selectedDate.getFullYear() === t3, n3.focused = this.focusDate && this.focusDate.getFullYear() === t3, n3.disabled = t3 < this.focusDateYearRangeStart || t3 > this.focusDateYearRangeEnd;
              this.yearItems.push(n3);
            }
          }
          updateYearRange() {
            this.focusDateYearRangeStart = 10 * Math.floor(this.focusDate.getFullYear() / 10), this.focusDateYearRangeEnd = this.focusDateYearRangeStart + 9;
          }
          getShortWeekName(t3) {
            let n3, e3;
            return Tt.resource.shortWeeks[t3 = (this.owner.dH + t3 - 1) % 7];
          }
          getCurrentMonthName() {
            let t3 = this.focusDate.getMonth();
            return Ot.getMonthName(t3);
          }
          updateCalendarData(t3) {
            t3 ? (this.the = t3.selectedDateRange, this.$le = t3.oldSelectedDateRange, this.ohe = t3.hoverDate) : this.RangeCalendar.notifyCalendarData({ selectedDateRange: this.the, oldSelectedDateRange: this.$le, hoverDate: this.ohe });
          }
        }
        class Et extends i2.EventBase {
          constructor(t3) {
            super(), this.fH = 40, this.lH = 100, this.hH = false, this.jS = t3;
          }
          get host() {
            return this.jS.getContainer();
          }
          createCalendarDom() {
            let t3 = this.jS;
            this.mH = new kt();
            let n3 = g("div");
            this.jS.nhe ? n3.className = m + " " + w : n3.classList.add(m), t3.HG ? n3.classList.add(M) : n3.classList.add(x);
            let e3 = g("table"), i3 = g("tr"), r2 = g("td");
            if (r2.classList.add(D), t3.HG && r2.classList.add(_), r2.appendChild(this.gH()), i3.appendChild(r2), e3.appendChild(i3), n3.appendChild(e3), t3.HG) {
              let t4 = g("tr"), n4 = g("td");
              r2.appendChild(this.pH()), r2.appendChild(this.bH()), n4.appendChild(this.yH()), n4.appendChild(this.wH()), t4.appendChild(n4), e3.appendChild(t4);
            }
            return this.mH.outerContainerDiv = n3, n3;
          }
          wH() {
            let t3 = g("div");
            t3.classList.add(T);
            let n3 = g("button");
            return n3.textContent = h().OK, n3.className = mt + " " + bt + " " + gt, t3.appendChild(n3), this.mH.okButton = n3, t3;
          }
          pH() {
            let t3 = g("div");
            return t3.classList.add(O), t3;
          }
          yH() {
            let t3 = g("div");
            return t3.classList.add(E), t3;
          }
          gH() {
            let t3 = g("div");
            return t3.className = C + " " + Q + " " + K, t3.tabIndex = 0, t3.appendChild(this.MH()), t3.appendChild(this.CH()), t3.appendChild(this.SH()), this.mH.dateContainerDiv = t3, t3;
          }
          MH() {
            let t3 = g("div");
            return t3.classList.add(R), t3.appendChild(this.TH()), t3.appendChild(this.AH()), t3;
          }
          TH() {
            let t3 = g("div");
            t3.className = N + " " + J + " " + pt;
            let n3 = g("div"), e3;
            n3.className = X + " " + pt + " " + q + " " + vt, g("div").classList.add($);
            let i3 = g("button");
            i3.className = mt + " " + tt, i3.title = h().Calendar_LastTenYear, i3.setAttribute("type", "button");
            let r2 = g("div");
            r2.classList.add(P), i3.appendChild(r2);
            let o2 = g("span");
            o2.classList.add($);
            let a2 = g("button");
            a2.className = mt + " " + tt, a2.title = h().Calendar_NextTenYear, a2.setAttribute("type", "button");
            let u2 = g("div");
            u2.classList.add(G), a2.appendChild(u2), n3.appendChild(i3), n3.appendChild(o2), n3.appendChild(a2);
            let s2 = this.mH.calendarYearSection;
            return s2.headerDiv = t3, s2.lastYearRangeButton = i3, s2.focusDateYearRangeName = o2, s2.nextYearRangeButton = a2, t3.appendChild(n3), t3;
          }
          AH() {
            let t3 = g("table");
            t3.className = k + " " + nt;
            let n3 = g("div");
            return n3.appendChild(t3), this.mH.calendarYearSection.currentYearRangeTable = t3, this.IH(), n3;
          }
          IH() {
            let t3 = this.mH.calendarYearSection, n3 = g("tbody");
            for (let e3 = 0; e3 < 3; e3++) {
              let i3 = g("tr");
              for (let n4 = 0; n4 < 4; n4++) {
                let r2 = g("td");
                r2.setAttribute(yt, (4 * e3 + n4).toString());
                let o2 = g("span");
                o2.classList.add(et), o2.setAttribute(yt, (4 * e3 + n4).toString()), o2.innerText = (4 * e3 + n4 + 1).toString(), r2.appendChild(o2), i3.appendChild(r2), t3.yearTds.push(r2);
              }
              n3.appendChild(i3);
            }
            t3.currentYearRangeTable.appendChild(n3);
          }
          CH() {
            let t3 = g("div");
            return t3.classList.add(F), t3.appendChild(this.xH()), t3.appendChild(this.NH()), t3;
          }
          xH() {
            let t3 = g("div");
            t3.className = N + " " + J + " " + pt;
            let n3 = g("div"), e3;
            n3.className = X + " " + pt + " " + q + " " + vt, g("div").classList.add($);
            let i3 = g("button");
            i3.className = mt + " " + tt, i3.title = h().Calendar_LastYear, i3.setAttribute("type", "button");
            let r2 = g("div");
            r2.classList.add(P), i3.appendChild(r2);
            let o2 = g("span");
            o2.className = j + " " + $;
            let a2 = g("button");
            a2.className = mt + " " + tt, a2.title = h().Calendar_NextYear, a2.setAttribute("type", "button");
            let u2 = g("div");
            u2.classList.add(G), a2.appendChild(u2), n3.appendChild(i3), n3.appendChild(o2), n3.appendChild(a2);
            let s2 = this.mH.calendarMonthSection;
            return s2.headerDiv = t3, s2.lastYearButton = i3, s2.currentYearName = o2, s2.nextYearButton = a2, t3.appendChild(n3), t3;
          }
          NH() {
            let t3 = g("table");
            t3.className = k + " " + nt;
            let n3 = g("div");
            return n3.appendChild(t3), this.mH.calendarMonthSection.currentYearTable = t3, this.kH(), n3;
          }
          kH() {
            let t3 = this.mH.calendarMonthSection, n3 = g("tbody");
            for (let e3 = 0; e3 < 3; e3++) {
              let i3 = g("tr");
              for (let n4 = 0; n4 < 4; n4++) {
                let r2 = g("td");
                r2.setAttribute(wt, (4 * e3 + n4 + 1).toString());
                let o2 = g("span");
                o2.classList.add(et), o2.setAttribute(wt, (4 * e3 + n4 + 1).toString()), o2.innerText = (4 * e3 + n4 + 1).toString(), r2.appendChild(o2), i3.appendChild(r2), t3.monthTds.push(r2);
              }
              n3.appendChild(i3);
            }
            t3.currentYearTable.appendChild(n3);
          }
          SH() {
            let t3 = g("div");
            return t3.classList.add(B), t3.appendChild(this._H()), t3.appendChild(this.EH()), t3.appendChild(this.jH()), this.jS.nhe || t3.appendChild(this.OH()), t3;
          }
          _H() {
            let t3 = g("div");
            t3.className = N + " " + J + " " + pt;
            let n3 = g("div"), e3;
            n3.className = X + " " + pt + " " + q + " " + vt, g("div").classList.add($);
            let i3 = g("button");
            i3.className = mt + " " + tt, i3.title = h().Calendar_LastMonth, i3.setAttribute("type", "button");
            let r2 = g("div");
            r2.classList.add(P), i3.appendChild(r2);
            let o2 = g("span");
            o2.className = j + " " + $;
            let a2 = g("button");
            a2.className = mt + " " + tt, a2.title = h().Calendar_NextMonth, a2.setAttribute("type", "button");
            let u2 = g("div");
            u2.classList.add(G), a2.appendChild(u2), n3.appendChild(i3), n3.appendChild(o2), n3.appendChild(a2);
            let s2 = g("div");
            s2.className = L + " " + dt;
            let c2 = g("div");
            c2.classList.add(Z);
            let f2 = g("select");
            f2.classList.add(V);
            let l2 = /* @__PURE__ */ new Date(), d2 = l2.getFullYear() - this.lH, v2 = l2.getFullYear() + this.fH, p2;
            for (let t4 = d2; t4 <= v2; t4++) {
              let n4 = g("option");
              n4.text = t4.toString(), n4.value = t4.toString(), f2.options.add(n4);
            }
            g("div").classList.add(Z), c2.appendChild(f2), s2.appendChild(c2), t3.appendChild(s2), t3.appendChild(n3);
            let m2 = this.mH.calendarDaySection;
            return m2.headerDiv = t3, m2.lastMonthButton = i3, m2.currentMonthName = o2, m2.nextMonthButton = a2, m2.yearSelect = f2, t3;
          }
          EH() {
            let t3 = g("div");
            t3.className = A + " " + J + " " + pt;
            let n3 = g("table");
            n3.className = k + " " + nt;
            let e3 = g("thead"), i3 = g("tr");
            for (let t4 = 0; t4 < 7; t4++) {
              let n4 = g("th");
              n4.setAttribute(Mt, t4.toString());
              let e4 = g("span");
              e4.classList.add(it), e4.setAttribute(Mt, t4.toString()), e4.innerText = this.jS._data.getShortWeekName(t4), n4.appendChild(e4), i3.appendChild(n4), this.mH.calendarDaySection.weekThs.push(n4);
            }
            return e3.appendChild(i3), n3.appendChild(e3), t3.appendChild(n3), t3;
          }
          jH() {
            let t3 = this.mH.calendarDaySection, n3 = g("div"), e3 = g("div"), i3 = g("table");
            i3.className = k + " " + nt;
            let r2 = g("tbody");
            for (let n4 = 0; n4 < 6; n4++) {
              let e4 = g("tr");
              for (let i4 = 0; i4 < 7; i4++) {
                let r3 = g("td");
                r3.setAttribute(Ct, (7 * n4 + i4).toString());
                let o2 = g("span");
                o2.classList.add(et), o2.setAttribute(Ct, (7 * n4 + i4).toString()), r3.appendChild(o2), e4.appendChild(r3), t3.dayTds.push(r3);
              }
              r2.appendChild(e4);
            }
            return i3.appendChild(r2), e3.appendChild(i3), n3.appendChild(e3), t3.dayContentTable = i3, n3;
          }
          OH() {
            let t3 = g("div");
            t3.classList.add(I);
            let n3 = g("table");
            n3.classList.add(k);
            let e3 = g("tbody"), i3 = g("tr"), r2 = g("td"), o2 = g("i");
            return o2.className = rt + " " + ht, o2.innerText = Tt.resource.today, r2.appendChild(o2), i3.appendChild(r2), e3.appendChild(i3), n3.appendChild(e3), t3.appendChild(n3), this.mH.calendarDaySection.todayTd = r2, this.mH.calendarDaySection.todayTable = n3, t3;
          }
          bH() {
            let t3 = g("div");
            return t3.className = S + " " + Q + " " + K, t3.tabIndex = 0, this.mH.timeContainerDiv = t3, this.RH = new r.TimePicker(t3), this.RH.setOptions({ step: { minute: 30 }, height: 260 }), this.RH.on(o.BaseDropdown.Event_ValueChanged, ((t4) => {
              this.BH(t4);
            })), t3;
          }
          updateCalendarDom() {
            this.LH(), this.jS.HG && this.FH();
          }
          LH() {
            switch (this.jS._data.calendarPage) {
              case c.CalendarPage.year:
                this.PH();
                break;
              case c.CalendarPage.month:
                this.GH();
                break;
              case c.CalendarPage.day:
                this.UH();
            }
          }
          HH() {
            let t3 = this.jS._data, n3 = this.mH.calendarDaySection, e3 = false;
            n3.currentMonthName.innerText = t3.getCurrentMonthName();
            let i3 = t3.focusDate.getFullYear(), r2 = n3.yearSelect;
            for (let t4 = 0; t4 < r2.options.length; t4++) if (i3.toString() === r2.options[t4].value) {
              r2.selectedIndex = t4, e3 = true;
              break;
            }
            let o2 = this.fH + this.lH + 1;
            if (e3) r2.options[o2] && r2.selectedIndex <= o2 - 1 && r2.options[o2].remove();
            else {
              let t4 = g("option");
              t4.text = i3.toString(), t4.value = i3.toString(), r2.options[o2] = t4, r2.selectedIndex = o2;
            }
            if (this.jS.nhe) {
              let t4 = this.jS.parent;
              if (t4.she && t4.che) {
                let e4 = n3.lastMonthButton, i4 = n3.nextMonthButton, o3 = this.jS.ehe, a2 = t4.she._data.focusDate, u2 = t4.che._data.focusDate;
                if (1 === o3) {
                  for (let t5 = 0; t5 < r2.options.length; t5++) {
                    let n4;
                    parseInt(r2.options[t5].value, 10) > u2.getFullYear() ? r2.options[t5].disabled = true : r2.options[t5].disabled = false;
                  }
                  a2.getFullYear() === u2.getFullYear() && a2.getMonth() >= u2.getMonth() - 1 ? (i4.disabled = true, i4.classList.add(U)) : (i4.disabled = false, i4.classList.remove(U));
                } else if (2 === o3) {
                  for (let t5 = 0; t5 < r2.options.length; t5++) {
                    let n4;
                    parseInt(r2.options[t5].value, 10) < a2.getFullYear() ? r2.options[t5].disabled = true : r2.options[t5].disabled = false;
                  }
                  a2.getFullYear() === u2.getFullYear() && u2.getMonth() <= a2.getMonth() + 1 ? (e4.disabled = true, e4.classList.add(U)) : (e4.disabled = false, e4.classList.remove(U));
                }
              }
            }
          }
          PH() {
            let t3 = this.jS._data, n3 = this.mH.calendarYearSection;
            t3.updateYearItems(), n3.focusDateYearRangeName.innerText = t3.focusDateYearRangeStart.toString() + " - " + t3.focusDateYearRangeEnd.toString();
            let e3 = n3.yearTds, i3 = t3.yearItems;
            if (0 !== i3.length) for (let t4 = 0; t4 < 3; t4++) for (let n4 = 0; n4 < 4; n4++) {
              let r2 = 4 * t4 + n4, o2 = i3[r2], a2 = e3[r2], u2 = a2.querySelector("span");
              u2.innerText = o2.getLabel(), o2.disabled ? a2.classList.add(Y) : a2.classList.remove(Y), o2.selected ? a2.classList.add(z) : a2.classList.remove(z), o2.focused ? u2.classList.add(H) : u2.classList.remove(H);
            }
          }
          GH() {
            let t3 = this.jS._data, n3 = this.mH.calendarMonthSection;
            t3.updateMonthItems();
            let e3 = t3.focusDate.getFullYear(), i3 = t3.monthItems, r2 = n3.monthTds;
            n3.currentYearName.innerText = e3.toString();
            for (let t4 = 0; t4 < 3; t4++) for (let n4 = 0; n4 < 4; n4++) {
              let e4 = 4 * t4 + n4, o2 = i3[e4], a2 = r2[e4], u2 = a2.querySelector("span");
              u2.innerText = o2.getLabel(), o2.selected ? a2.classList.add(z) : a2.classList.remove(z), o2.focused ? u2.classList.add(H) : u2.classList.remove(H);
            }
          }
          UH() {
            this.HH(), this.zH();
          }
          get RangeCalendar() {
            return this.jS && this.jS.parent;
          }
          zH() {
            let t3 = this.jS._data;
            t3.updateDayItems();
            let n3 = t3.dayItems;
            if (0 === n3.length) return;
            let e3 = this.mH.calendarDaySection.dayTds;
            for (let t4 = 0; t4 < 6; t4++) for (let i3 = 0; i3 < 7; i3++) {
              let r2 = 7 * t4 + i3, o2 = n3[r2], a2 = e3[r2], u2 = a2.querySelector("span");
              u2.innerText = o2.getLabel(), o2.disabled ? a2.classList.add(Y) : a2.classList.remove(Y), o2.focused ? u2.classList.add(H) : u2.classList.remove(H), o2.selected ? a2.classList.add(z) : a2.classList.remove(z);
            }
          }
          FH() {
            this.RH.setValue(this.jS._data.selectedDate);
          }
          attachEvent() {
            this.VH(), this.attachDateEvent(), this.jS.HG && this.attachTimeEvent();
          }
          VH() {
            this.mH.outerContainerDiv.addEventListener("keydown", ((t3) => {
              this.YH(t3);
            }));
          }
          YH(t3) {
            if (9 === t3.keyCode) return this.jS.HG && (this.jS._data.calendarActivePart === f.Date ? this.setCalendarActivePart(f.Time) : this.setCalendarActivePart(f.Date)), void t3.preventDefault();
            this.jS._data.calendarActivePart !== f.Date || this.jS.nhe || this.ZH(t3);
          }
          ZH(t3) {
            switch (this.jS._data.calendarPage) {
              case c.CalendarPage.year:
                this.WH(t3);
                break;
              case c.CalendarPage.month:
                this.QH(t3);
                break;
              case c.CalendarPage.day:
                this.KH(t3);
            }
          }
          WH(t3) {
            let n3 = this.jS._data, e3 = n3.focusDate;
            switch (t3.keyCode) {
              case 13:
                n3.selectedDate = new Date(e3.valueOf()), this.showCalendarPage(c.CalendarPage.month);
                break;
              case 32:
                n3.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                this.JH();
                break;
              case 39:
                this.XH();
                break;
              case 38:
                this.JH(4);
                break;
              case 40:
                t3.ctrlKey || t3.metaKey ? this.qH() : this.XH(4);
                break;
              case 36:
                e3.setFullYear(n3.focusDateYearRangeStart);
                break;
              case 35:
                e3.setFullYear(n3.focusDateYearRangeEnd);
                break;
              case 33:
                this.$H();
                break;
              case 34:
                this.tz();
            }
            n3.updateYearRange(), this.LH();
          }
          QH(t3) {
            let n3 = this.jS._data, e3 = n3.focusDate;
            switch (t3.keyCode) {
              case 13:
                n3.selectedDate = new Date(e3.valueOf()), this.showCalendarPage(c.CalendarPage.day);
                break;
              case 32:
                n3.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                this.nz();
                break;
              case 39:
                this.ez();
                break;
              case 38:
                t3.ctrlKey || t3.metaKey ? this.iz() : this.nz(4);
                break;
              case 40:
                t3.ctrlKey || t3.metaKey ? this.rz() : this.ez(4);
                break;
              case 36:
                e3.setMonth(0);
                break;
              case 35:
                e3.setMonth(11);
                break;
              case 33:
                this.JH();
                break;
              case 34:
                this.XH();
            }
            this.LH();
          }
          KH(t3) {
            let n3 = this.jS._data, e3 = n3.focusDate, i3 = e3.getFullYear(), r2 = e3.getMonth(), o2 = e3.getDate(), a2 = Nt.getMonthMaxDay(i3, r2 + 1);
            switch (t3.keyCode) {
              case 13:
                return n3.selectedDate = new Date(e3.valueOf()), void this.oz();
              case 32:
                n3.selectedDate = new Date(e3.valueOf());
                break;
              case 37:
                e3.setDate(o2 - 1);
                break;
              case 39:
                e3.setDate(o2 + 1);
                break;
              case 38:
                e3.setDate(o2 - 7);
                break;
              case 40:
                e3.setDate(o2 + 7);
                break;
              case 36:
                e3.setDate(1);
                break;
              case 35:
                e3.setDate(a2);
                break;
              case 33:
                t3.shiftKey ? this.nz(12) : this.nz();
                break;
              case 34:
                t3.shiftKey ? this.ez(12) : this.ez();
            }
            n3.selectedDate = new Date(e3.valueOf()), this.LH();
          }
          attachDateEvent() {
            let t3 = this;
            this.mH.dateContainerDiv.addEventListener("click", ((n3) => {
              let e3 = n3.target;
              (!e3 || e3 !== t3.mH.calendarDaySection.yearSelect && e3.parentElement !== t3.mH.calendarDaySection.yearSelect) && t3.setCalendarActivePart(f.Date);
            })), this.attachYearEvent(), this.attachMonthEvent(), this.attachDayEvent();
          }
          attachYearEvent() {
            this.mH.calendarYearSection.lastYearRangeButton.addEventListener("click", ((t3) => {
              this.$H(), this.LH();
            })), this.mH.calendarYearSection.nextYearRangeButton.addEventListener("click", ((t3) => {
              this.tz(), this.LH();
            })), this.mH.calendarYearSection.currentYearRangeTable.addEventListener("click", ((t3) => {
              this.az(t3);
            }));
          }
          $H() {
            let t3 = this.jS._data;
            t3.focusDateYearRangeStart -= 10, t3.focusDateYearRangeEnd = t3.focusDateYearRangeStart + 9, t3.focusDate.setFullYear(t3.focusDate.getFullYear() - 10);
          }
          tz() {
            let t3 = this.jS._data;
            t3.focusDateYearRangeStart += 10, t3.focusDateYearRangeEnd = t3.focusDateYearRangeStart + 9, t3.focusDate.setFullYear(t3.focusDate.getFullYear() + 10);
          }
          qH() {
            this.showCalendarPage(c.CalendarPage.month);
          }
          az(t3) {
            let n3 = t3.srcElement || t3.target;
            if (n3) {
              let t4 = +n3.getAttribute(yt), e3 = this.jS._data.yearItems;
              if (0 === e3.length) return;
              let i3 = e3[t4];
              this.jS._data.focusDate.setFullYear(i3.year), this.qH();
            }
          }
          attachMonthEvent() {
            this.mH.calendarMonthSection.lastYearButton.addEventListener("click", ((t3) => {
              this.JH(), this.LH();
            })), this.mH.calendarMonthSection.nextYearButton.addEventListener("click", ((t3) => {
              this.XH(), this.LH();
            })), this.jS.nhe || this.mH.calendarMonthSection.currentYearName.addEventListener("click", ((t3) => {
              this.iz();
            })), this.mH.calendarMonthSection.currentYearTable.addEventListener("click", ((t3) => {
              this.uz(t3);
            }));
          }
          JH(t3) {
            let n3 = t3 || 1, e3 = Math.max(this.jS._data.focusDate.getFullYear() - n3, 0);
            this.jS._data.focusDate.setFullYear(e3);
          }
          XH(t3) {
            let n3 = t3 || 1, e3 = Math.min(this.jS._data.focusDate.getFullYear() + n3, 9999);
            this.jS._data.focusDate.setFullYear(e3);
          }
          iz() {
            this.jS._data.updateYearRange(), this.showCalendarPage(c.CalendarPage.year);
          }
          rz() {
            this.showCalendarPage(c.CalendarPage.day);
          }
          uz(t3) {
            let n3 = t3.srcElement || t3.target;
            if (n3) {
              let t4 = +n3.getAttribute(wt);
              this.jS._data.focusDate.setMonth(t4 - 1), this.rz();
            }
          }
          attachDayEvent() {
            let t3 = this.mH.calendarDaySection;
            t3.lastMonthButton.addEventListener("click", ((t4) => {
              this.nz(), this.hH || (this.jS.nhe ? (this.RangeCalendar.checkFocusDateValid(), this.RangeCalendar.updateRangeCalendarDom()) : this.LH());
            })), t3.nextMonthButton.addEventListener("click", ((t4) => {
              this.ez(), this.hH || (this.jS.nhe ? (this.RangeCalendar.checkFocusDateValid(), this.RangeCalendar.updateRangeCalendarDom()) : this.LH());
            })), t3.todayTable && t3.todayTable.addEventListener("click", ((t4) => {
              this.fz();
            })), this.jS.nhe ? t3.dayContentTable.addEventListener("mouseover", ((t4) => {
              this.ahe(t4);
            })) : t3.currentMonthName.addEventListener("click", ((t4) => {
              this.cz();
            })), t3.dayContentTable.addEventListener("click", ((t4) => {
              this.jS.nhe ? this.uhe(t4) : this.lz(t4);
            })), t3.yearSelect.addEventListener("change", ((t4) => {
              this.hz(t4);
            })), this.mH.calendarDaySection.yearSelect.addEventListener("keydown", ((t4) => {
              t4.stopPropagation();
            }));
          }
          nz(t3) {
            let n3 = this.jS._data, e3 = t3 || 1, i3 = n3.focusDate.getFullYear(), r2 = n3.focusDate.getMonth() - e3, o2 = n3.focusDate.getDate();
            r2 < 0 && (r2 += 12, i3 -= 1);
            let a2 = Nt.getMonthMaxDay(i3, r2 + 1), u2 = new Date(i3, r2, Math.min(o2, a2));
            n3.focusDate = u2;
          }
          ez(t3) {
            let n3 = this.jS._data, e3 = t3 || 1, i3 = n3.focusDate.getFullYear(), r2 = n3.focusDate.getMonth() + e3, o2 = n3.focusDate.getDate();
            r2 > 11 && (r2 -= 12, i3 += 1);
            let a2 = Nt.getMonthMaxDay(i3, r2 + 1), u2 = new Date(i3, r2, Math.min(o2, a2), n3.focusDate.getHours(), n3.focusDate.getMinutes(), n3.focusDate.getSeconds());
            n3.focusDate = u2;
          }
          cz() {
            this.showCalendarPage(c.CalendarPage.month);
          }
          lz(t3) {
            let n3 = this.jS._data, e3 = t3.srcElement || t3.target;
            if (e3) {
              let t4 = e3.getAttribute(Ct);
              if (v(t4)) return;
              let i3 = n3.dayItems;
              if (0 === i3.length) return;
              let r2, o2 = i3[+t4].date, a2 = n3.selectedDate, u2 = a2 ? new Date(a2.valueOf()) : /* @__PURE__ */ new Date();
              n3.selectedDate = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), u2.getHours(), u2.getMinutes(), u2.getSeconds(), u2.getMilliseconds()), n3.focusDate = new Date(n3.selectedDate.valueOf()), this.LH(), this.jS.HG || this.oz();
            }
            this.mH.dateContainerDiv.focus();
          }
          uhe(t3) {
            let n3 = this.jS._data, e3 = t3.srcElement || t3.target;
            if (e3) {
              let t4 = e3.getAttribute(Ct);
              if (v(t4)) return;
              let i3 = n3.dayItems;
              if (0 === i3.length) return;
              let r2 = i3[+t4], o2 = r2.date, a2 = r2.disabled, u2 = n3.the, s2 = u2 ? new Date(u2.start.valueOf()) : Nt.getDefaultDate();
              if (0 === this.RangeCalendar.ihe) u2.start = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), s2.getHours(), s2.getMinutes(), s2.getSeconds(), s2.getMilliseconds()), u2.end = u2.start, this.RangeCalendar.ihe++;
              else if (1 === this.RangeCalendar.ihe) {
                let t5 = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), s2.getHours(), s2.getMinutes(), s2.getSeconds(), s2.getMilliseconds());
                u2.start <= t5 ? (u2.end = t5, this.RangeCalendar.ihe = 0) : (u2.end = u2.start = t5, this.RangeCalendar.ihe = 1);
              }
              if (n3.updateCalendarData(), a2) {
                let t5 = this.jS._data.focusDate, n4 = this.jS.parent, e4 = Nt.getFirstDayOfMonth(o2);
                if (1 === this.jS.ehe) o2 > t5 ? n4.che._data.focusDate = e4 : o2 < this.jS._data.focusDate && (this.jS._data.focusDate = e4);
                else if (2 === this.jS.ehe) {
                  let i4 = n4.she;
                  o2 > t5 ? (i4._data.focusDate = Nt.getPreviousMonth(o2), this.jS._data.focusDate = e4) : o2 < this.jS._data.focusDate && (i4._data.focusDate = e4);
                }
              }
              this.RangeCalendar.updateRangeCalendarDom();
            }
          }
          ahe(t3) {
            let n3 = this.jS._data, e3 = t3.srcElement || t3.target;
            if (e3) {
              let t4 = e3.getAttribute(Ct);
              if (v(t4)) return;
              let i3 = n3.dayItems;
              if (0 === i3.length) return;
              let r2, o2 = i3[+t4].date, a2 = n3.the;
              if (n3.ohe = null, a2.start && 1 === this.RangeCalendar.ihe) {
                let t5 = a2 ? new Date(a2.start.valueOf()) : Nt.getDefaultDate(), e4 = new Date(o2.getFullYear(), o2.getMonth(), o2.getDate(), t5.getHours(), t5.getMinutes(), t5.getSeconds(), t5.getMilliseconds());
                e4 > a2.start && (n3.ohe = e4);
              }
              n3.updateCalendarData(), this.RangeCalendar.updateRangeCalendarDom();
            }
          }
          fz() {
            let t3 = this.jS, n3 = t3._data.selectedDate, e3 = n3 ? new Date(n3.valueOf()) : null, i3 = /* @__PURE__ */ new Date();
            e3 && (i3.setHours(e3.getHours()), i3.setMinutes(e3.getMinutes()), i3.setSeconds(0)), t3._data.selectedDate = i3, t3._data.focusDate = new Date(i3.valueOf()), this.LH(), t3.HG || this.oz();
          }
          hz(t3) {
            let n3 = t3.srcElement || t3.target;
            n3 && (this.jS._data.focusDate.setFullYear(+n3.value), this.jS.nhe ? (this.RangeCalendar.checkFocusDateValid(), this.RangeCalendar.updateRangeCalendarDom()) : this.LH());
          }
          attachTimeEvent() {
            this.mH.timeContainerDiv.addEventListener("click", ((t3) => {
              this.setCalendarActivePart(f.Time);
            })), this.mH.okButton.addEventListener("click", ((t3) => {
              this.oz();
            }));
          }
          BH(t3) {
            let n3 = this.jS._data, e3 = n3.selectedDate ? new Date(n3.selectedDate.valueOf()) : /* @__PURE__ */ new Date(), i3 = t3.value;
            e3.setHours(i3.getHours()), e3.setMinutes(i3.getMinutes()), e3.setSeconds(i3.getSeconds()), n3.selectedDate = e3, n3.focusDate = new Date(e3.valueOf());
          }
          oz() {
            let t3 = this.jS._data;
            this.fire(o.BaseDropdown.Event_ValueChanged, { oldValue: t3.oldSelectedData, newValue: t3.selectedDate }), t3.oldSelectedData = t3.selectedDate;
          }
          showCalendarPage(t3) {
            let n3 = this.host.querySelector("." + R), e3 = this.host.querySelector("." + F), i3 = this.host.querySelector("." + B);
            switch (n3.style.display = "none", e3.style.display = "none", i3.style.display = "none", t3) {
              case c.CalendarPage.year:
                n3.style.display = "";
                break;
              case c.CalendarPage.month:
                e3.style.display = "";
                break;
              case c.CalendarPage.day:
                i3.style.display = "";
            }
            this.jS._data.calendarPage = t3, this.updateCalendarDom();
          }
          setCalendarActivePart(t3) {
            switch (this.jS._data.calendarActivePart = t3, this.mH.dateContainerDiv.classList.remove(W), this.jS.HG && this.mH.timeContainerDiv.classList.remove(W), t3) {
              case f.Date:
                this.jS.HG && this.mH.dateContainerDiv.classList.add(W), this.mH.outerContainerDiv.focus();
                break;
              case f.Time:
                this.jS.HG && this.mH.timeContainerDiv.classList.add(W), this.mH.outerContainerDiv.focus();
            }
          }
        }
        Et.Event_GetHost = "GetHost";
        class Rt extends o.BaseDropdown {
          constructor(t3, n3, e3, i3) {
            super(t3), this.dH = 7, this.HG = true, e3 && (this.parent = e3, this.nhe = true, this.HG = false, this.ehe = i3), this._data = new Ot(this), this.Dn = new Et(this), this.Dn.on(o.BaseDropdown.Event_ValueChanged, ((t4) => {
              let n4 = u.Common.CultureManager.getCultureInfo().DateTimeFormat, e4 = n4.defaultDatePattern;
              this.HG || (e4 = n4.shortDatePattern);
              let i4 = new u.Formatter.GeneralFormatter(e4).format(t4.newValue);
              this.fire(o.BaseDropdown.Event_ValueChanged, { text: i4, value: t4.newValue });
            })), this.Dn.on(Et.Event_GetHost, ((t4) => {
              t4.host = this.Ti;
            })), this.nhe || (this.Ti.innerHTML = ""), this.Ti.appendChild(this.Dn.createCalendarDom()), this.Dn.attachEvent(), this.nhe || this.setValue(/* @__PURE__ */ new Date()), this.Dn.showCalendarPage(c.CalendarPage.day), this.Dn.setCalendarActivePart(f.Date), n3 && this.setOptions(n3);
          }
          setOptions(t3) {
            if (!t3) return;
            t3.showTime || this.nhe || (this.HG = t3.showTime, this.Ti.innerHTML = "", this.Ti.appendChild(this.Dn.createCalendarDom()), this.Dn.attachEvent());
            let n3 = t3 && t3.calendarPage ? t3.calendarPage : c.CalendarPage.day, e3 = t3 && t3.startDay ? t3.startDay : c.CalendarStartDay.saturday;
            e3 !== this.dH && (this.dH = e3, this.Ti.innerHTML = "", this.Ti.appendChild(this.Dn.createCalendarDom()), this.Dn.attachEvent()), this.Dn.showCalendarPage(n3), this.Dn.setCalendarActivePart(f.Date);
          }
          setValue(t3) {
            let n3 = this._data;
            if (t3) {
              if (this.nhe && t3 instanceof Object) {
                if (!t3.start || !t3.end) return;
                n3.$le = { start: t3.start, end: t3.end }, n3.the = { start: t3.start, end: t3.end }, n3.updateCalendarData();
              } else t3 instanceof Date && (n3.selectedDate = t3, n3.oldSelectedData = new Date(t3.valueOf()), n3.focusDate = new Date(t3.valueOf()), n3.updateYearRange());
              n3.updateDayFocusDate();
            }
          }
          scrollToSelect() {
            this.Dn.updateCalendarDom();
          }
        }
        class Lt extends o.BaseDropdown {
          constructor(t3, n3) {
            super(t3), this.ihe = 0, this.$le = null, this.the = { start: Nt.getDefaultDate(), end: Nt.getDefaultDate() }, this.rhe(n3), this.aY();
          }
          setOptions(t3) {
            v(t3.showBuiltInDateRange) && (t3.showBuiltInDateRange = true), t3.showTime = false, t3.calendarPage = c.CalendarPage.day, this.she.setOptions(t3), this.che.setOptions(t3);
          }
          setValue(t3) {
            this.she.setValue(t3), this.che.setValue(t3), this.updateRangeCalendarDom();
          }
          updateRangeCalendarDom() {
            this.she.Dn.updateCalendarDom(), this.che.Dn.updateCalendarDom(), this.updateDataRangeResult(this.the);
          }
          fhe() {
            let t3 = Nt.getBuiltInDateRanges(), n3 = g("div");
            return n3.className = m + " " + at, t3.forEach(((t4, e3) => {
              let i3 = g("div");
              i3.className = ot, i3.setAttribute(St, e3 + "");
              let r2 = p.createTextNode(t4[0]);
              i3.appendChild(r2), n3.appendChild(i3);
            })), this.lhe = n3, n3;
          }
          rhe(t3) {
            this.Ti.innerHTML = "";
            let n3 = g("div");
            n3.className = m + " " + y, t3 && false === t3.showBuiltInDateRange || n3.appendChild(this.fhe());
            let e3 = g("div");
            e3.classList.add(b), this.she = new Rt(e3, t3, this, 1), n3.appendChild(e3);
            let i3 = g("div");
            i3.classList.add(b), this.che = new Rt(i3, t3, this, 2), n3.appendChild(i3), this.Ti.appendChild(n3), this.Ti.appendChild(this.hhe());
          }
          aY() {
            this.lhe && this.lhe.addEventListener("click", ((t3) => {
              this.dhe(t3);
            })), this.vhe.addEventListener("click", ((t3) => {
              this.onOkButtonClick(t3);
            })), this.mhe.addEventListener("click", ((t3) => {
              this.onCancelButtonClick(t3);
            })), this.on(Et.Event_GetHost, ((t3) => {
              t3.host = this.Ti;
            }));
          }
          hhe() {
            let t3 = g("div");
            t3.className = ut;
            let n3 = g("div");
            n3.classList.add(lt), t3.appendChild(n3), this.ghe = n3, this.updateDataRangeResult(this.the);
            let e3 = g("div");
            e3.className = ft;
            let i3 = g("button");
            i3.textContent = h().Cancel, i3.className = st, e3.appendChild(i3), t3.appendChild(e3), this.mhe = i3;
            let r2 = g("div");
            r2.className = ft;
            let o2 = g("button");
            return o2.textContent = h().OK, o2.className = st, r2.appendChild(o2), t3.appendChild(r2), this.vhe = o2, t3;
          }
          dhe(t3) {
            let n3 = t3.srcElement || t3.target;
            if (n3) {
              let t4 = n3.getAttribute(St);
              if (v(t4)) return;
              let e3, i3 = Nt.getBuiltInDateRanges()[t4];
              this.the = { start: i3[1].start, end: i3[1].end }, this.notifyCalendarData(), this.fire(o.BaseDropdown.Event_ValueChanged, { text: Nt.getShortDate(this.the) });
            }
          }
          updateDataRangeResult(t3) {
            if (t3 && t3.start instanceof Date && t3.end instanceof Date && (this.ghe.innerHTML = `${t3.start.toLocaleDateString("en-US")}-${t3.end.toLocaleDateString("en-US")}`), this.lhe) {
              let n3 = Nt.getBuiltInDateRanges();
              for (let e3 = 0; e3 < this.lhe.children.length; e3++) {
                let i3 = this.lhe.children[e3], r2 = parseInt(i3.getAttribute(St), 10);
                i3.className = ot;
                let o2 = n3[r2] && n3[r2][1];
                Nt.dateEqual(o2.start, t3.start) && Nt.dateEqual(o2.end, t3.end) && (i3.className = ot + " " + ct);
              }
            }
          }
          onOkButtonClick(t3) {
            this.fire(o.BaseDropdown.Event_ValueChanged, { text: Nt.getShortDate(this.the) });
          }
          onCancelButtonClick(t3) {
            this.fire(o.BaseDropdown.Event_ValueChanged, { text: Nt.getShortDate(this.$le) });
          }
          checkFocusDateValid() {
            let t3 = this.she._data.focusDate, n3;
            if (t3 >= this.che._data.focusDate) {
              let n4 = Nt.getNextMonth(t3);
              this.che._data.focusDate = n4;
            }
          }
          notifyCalendarData(t3) {
            t3 ? (this.the = t3.selectedDateRange, this.$le = t3.oldSelectedDateRange, this.ohe = t3.hoverDate) : t3 = { selectedDateRange: this.the, oldSelectedDateRange: this.$le, hoverDate: this.ohe }, this.she && this.she._data.updateCalendarData(t3), this.che && this.che._data.updateCalendarData(t3);
          }
        }
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/eventbase.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { EventBase: function() {
          return i2;
        } });
        class i2 {
          constructor() {
            this.Ez = {};
          }
          on(t3, n3) {
            let e3 = this.Ez[t3];
            null == e3 && (e3 = this.Ez[t3] = []), e3.push(n3);
          }
          off(t3, n3) {
            if (t3) {
              let e3 = this.Ez[t3];
              if (null == e3) return;
              if (n3) {
                let t4 = e3.indexOf(n3);
                e3.splice(t4, 1);
              } else e3 = [];
              this.Ez[t3] = e3;
            } else this.Ez = {};
          }
          fire(t3, n3) {
            let e3 = this.Ez[t3];
            null != e3 && e3.forEach(((t4) => {
              try {
                t4.call(this, n3);
              } catch (t5) {
              }
            }));
          }
        }
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/interface.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { CalendarPage: function() {
          return i2;
        }, CalendarStartDay: function() {
          return r;
        } }), (function(t3) {
          t3[t3.year = 1] = "year", t3[t3.month = 2] = "month", t3[t3.day = 3] = "day";
        })(i2 || (i2 = {})), (function(t3) {
          t3[t3.monday = 1] = "monday", t3[t3.tuesday = 2] = "tuesday", t3[t3.wednesday = 3] = "wednesday", t3[t3.thursday = 4] = "thursday", t3[t3.friday = 5] = "friday", t3[t3.saturday = 6] = "saturday", t3[t3.sunday = 7] = "sunday";
        })(r || (r = {}));
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/timepicker.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        e2.r(n2), e2.d(n2, { TimePicker: function() {
          return s;
        } }), i2 = e2("Common"), r = e2.n(i2), o = e2("./dist/plugins/components/common/dropdowns/calendar-utils/baseControl.js");
        const a = "undefined", u = i2.Common.lt.ht;
        class s extends o.BaseDropdown {
          constructor(t3, n3) {
            super(t3), this.Hc(), this.setOptions(n3);
          }
          setOptions(t3) {
            if (!t3) return void this._6();
            let n3 = this.cY(t3.min);
            null !== n3 && (this.MU.min = n3);
            let e3 = this.cY(t3.max);
            null !== e3 && (this.MU.max = e3);
            let i3 = this.cY(t3.step);
            if (null !== i3 && (this.MU.step = i3), u(t3.formatString) || (this.MU.formatString = t3.formatString), !u(t3.height)) {
              let n4 = parseInt(t3.height, 10);
              isNaN(n4) || (this.MU.height = n4);
            }
            this.MU.height = Math.max(1, this.MU.height), this._6();
          }
          setValue(t3) {
            void 0 !== t3 && (this.Bz = { hour: t3.getHours(), minute: t3.getMinutes(), second: t3.getSeconds() }, this.fY = t3, this.yz(), this.scrollToSelect());
          }
          scrollToSelect() {
            let t3 = this.gz.querySelector(".selected");
            if (null !== t3) {
              const n3 = t3.offsetTop;
              this.Wc.scrollTop = n3;
            }
          }
          Hc() {
            this.MU = { min: {}, max: { hour: 23, minute: 59, second: 59 }, step: { hour: 1 }, formatString: "hh:mm", height: 200 }, this.gz = document.createElement("div"), this.gz.classList.add("gc-time-picker-outer-div"), this.gz.addEventListener("click", ((t3) => {
              this.pz(t3);
            })), this.Ti.appendChild(this.gz);
          }
          cY(t3) {
            let n3 = null;
            if (!u(t3)) {
              if (n3 = {}, !u(t3.hour)) {
                let e3 = parseInt(t3.hour, 10);
                isNaN(e3) || (n3.hour = e3);
              }
              if (!u(t3.minute)) {
                let e3 = parseInt(t3.minute, 10);
                isNaN(e3) || (n3.minute = e3);
              }
              if (!u(t3.second)) {
                let e3 = parseInt(t3.second, 10);
                isNaN(e3) || (n3.second = e3);
              }
            }
            return n3;
          }
          _6() {
            this.gz.innerHTML = "", this.gz.appendChild(this.lY()), this.yz();
          }
          yz() {
            let t3 = this.gz.querySelectorAll(".gc-time-picker-li");
            if (t3.length > 0) for (let n3 = 0; n3 < t3.length; n3++) {
              t3[n3].classList.remove("selected");
              let e3 = +t3[n3].getAttribute("hour"), i3 = +t3[n3].getAttribute("minute"), r2 = +t3[n3].getAttribute("second");
              this.hY(this.Bz, { hour: e3, minute: i3, second: r2 }) && t3[n3].classList.add("selected");
            }
          }
          lY() {
            let t3 = this.dY(), n3 = document.createElement("div");
            n3.classList.add("gc-time-picker-container"), this.Wc = n3, this.MU.height < 0 ? n3.style.height = "auto" : n3.style.maxHeight = this.MU.height + "px";
            let e3 = document.createElement("ul");
            e3.classList.add("gc-time-picker-ul");
            for (let n4 = 0; n4 < t3.length; n4++) e3.appendChild(this.vY(t3[n4]));
            return 24 * t3.length > this.MU.height && this.MU.height >= 0 ? n3.style.overflowY = "scroll" : n3.style.overflowY = "hidden", n3.appendChild(e3), n3;
          }
          vY(t3) {
            let n3 = document.createElement("li");
            return n3.classList.add("gc-time-picker-li"), n3.setAttribute("hour", t3.hour.toString()), n3.setAttribute("minute", t3.minute.toString()), n3.setAttribute("second", t3.second.toString()), n3.innerText = this.mY(t3), n3;
          }
          dY() {
            let t3 = this.gY(this.MU.min), n3 = this.gY(this.MU.max), e3 = [];
            for (; t3 <= n3; ) e3.push({ hour: t3.getHours(), minute: t3.getMinutes(), second: t3.getSeconds() }), t3 = this.pY(t3, this.MU.step);
            return e3;
          }
          pY(t3, n3) {
            return typeof n3.hour !== a && t3.setHours(t3.getHours() + n3.hour), typeof n3.minute !== a && t3.setMinutes(t3.getMinutes() + n3.minute), typeof n3.second !== a && t3.setSeconds(t3.getSeconds() + n3.second), t3;
          }
          mY(t3) {
            let n3 = /* @__PURE__ */ new Date();
            n3.setHours(t3.hour), n3.setMinutes(t3.minute), n3.setSeconds(t3.second);
            let e3, r2 = new i2.Formatter.GeneralFormatter(this.MU.formatString).format(n3);
            return r2 && "" !== r2 && null !== r2 ? r2 : this.bY(n3);
          }
          bY(t3) {
            let n3 = t3.getHours(), e3 = t3.getMinutes(), i3, r2, o2;
            return (n3 < 12 ? "AM" : "PM") + " " + (0 === n3 || 12 === n3 ? "12" : (n3 % 12).toString()) + ":" + (e3 < 10 ? "0" + e3.toString() : e3.toString());
          }
          gY(t3) {
            let n3 = /* @__PURE__ */ new Date();
            return n3.setHours(t3.hour || 0), n3.setMinutes(t3.minute || 0), n3.setSeconds(t3.second || 0), n3;
          }
          hY(t3, n3) {
            return !(!t3 || !n3) && (t3 = this.yY(t3), n3 = this.yY(n3), t3.hour === n3.hour && t3.minute === n3.minute && t3.second === n3.second);
          }
          yY(t3) {
            return { hour: t3.hour || 0, minute: t3.minute || 0, second: t3.second || 0 };
          }
          pz(t3) {
            let n3 = t3.target;
            if (n3) {
              let t4 = +n3.getAttribute("hour"), e3 = +n3.getAttribute("minute"), r2 = +n3.getAttribute("second"), a2 = this.fY || /* @__PURE__ */ new Date();
              a2.setHours(t4), a2.setMinutes(e3), a2.setSeconds(r2), a2.setMilliseconds(0);
              let u2 = new i2.Common.CultureInfo().DateTimeFormat, s2 = new i2.Formatter.GeneralFormatter(u2.defaultDatePattern).format(a2);
              this.fire(o.BaseDropdown.Event_ValueChanged, { value: a2, text: s2 }), this.Bz = { hour: t4, minute: e3, second: r2 }, this.yz();
            }
          }
        }
      }, "./dist/plugins/components/common/dropdowns/calendar-utils/utils.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Ewr: function() {
          return s;
        }, Rwr: function() {
          return u;
        }, Lwr: function() {
          return c;
        }, ht: function() {
          return a;
        } }), i2 = e2("Common"), r = e2.n(i2);
        const o = i2.Common.CultureManager, a = i2.Common.lt.ht;
        function u(t3) {
          if (a(t3)) return "";
          const n3 = o.Fe(o.culture()).DateTimeFormat, e3 = void 0;
          return new i2.Formatter.GeneralFormatter(n3.defaultDatePattern).format(t3);
        }
        function s(t3) {
          if (a(t3)) return "";
          const n3 = o.Fe(o.culture()).DateTimeFormat, e3 = void 0;
          return new i2.Formatter.GeneralFormatter(n3.shortDatePattern).format(t3);
        }
        function c(t3) {
          if (a(t3)) return "";
          const n3 = o.Fe(o.culture()).DateTimeFormat, e3 = void 0;
          return new i2.Formatter.GeneralFormatter(n3.shortTimePattern).format(t3);
        }
      }, "./dist/plugins/components/common/dropdowns/calendar/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        e2.r(n2), e2.d(n2, { Calendar: function() {
          return s;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/calendar-utils/calendar.js"), r = e2("./dist/plugins/components/common/base/index.js"), o = e2("./dist/plugins/components/utils/index.js"), a = e2("./dist/plugins/components/common/dropdowns/calendar-utils/utils.js"), u = e2("./dist/plugins/components/common/dropdowns/calendar-utils/interface.js");
        class s extends r.DropdownBase {
          constructor() {
            super(...arguments), this.Fwr = { startDay: u.CalendarStartDay.sunday, showTime: false }, this.Kbt = (t3) => {
              (0, a.ht)(t3) ? super.Kbt(null) : super.Kbt(t3), this.Bwr(t3), this.Pwr && (this.Pwr.setValue(t3 ? new Date(t3) : null), this.Pwr.Dn.updateCalendarDom());
            }, this.Gwr = (t3) => {
              (0, a.ht)(t3) || (this.Fwr = Object.assign(Object.assign({}, this.Fwr), t3));
            }, this.uer = (t3) => this.Jet() && this._editable && !(0, a.ht)(this.Uwr) && t3.target.closest("#date-input") === this.Uwr, this.Hwr = (t3) => {
              var n3;
              if (t3.target.value.trim().length < 1) return;
              const e3 = new Date(t3.target.value);
              isNaN(e3.valueOf()) ? this.Bwr(this.y4) : e3.valueOf() !== (null === (n3 = this.y4) || void 0 === n3 ? void 0 : n3.valueOf()) && (this.Kbt(e3), this.aer());
            };
          }
          connectedCallback() {
            const t3 = this.hasAttribute("show-time");
            this._editable = this.hasAttribute("editable"), super.connectedCallback(), t3 && (this.Fwr.showTime = true), this.y4 && this.Kbt(this.y4);
          }
          disconnectedCallback() {
            var t3;
            super.disconnectedCallback(), null === (t3 = this.Uwr) || void 0 === t3 || t3.removeEventListener("change", this.Hwr);
          }
          Ser(t3) {
            return (0, a.ht)(t3) || !t3 ? null : new Date(t3);
          }
          Ter(t3, n3) {
            var e3;
            if ("closing" === n3) {
              const t4 = this.Pwr._data.selectedDate;
              t4 && t4.valueOf() !== (null === (e3 = this.y4) || void 0 === e3 ? void 0 : e3.valueOf()) && (this.Kbt(t4), this.aer()), this.Pwr.dispose(), this.Pwr = null;
            } else {
              t3.style.width = this.HG() ? "322px" : "240px", t3.innerHTML = `
            <style>
                ${o.CSSUtils.base()}
                ${o.CSSUtils.generateCss(".calendar-container", { width: "100%", height: "100%" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container", { border: "solid 1px gray", outline: "none", lineHeight: "1", webkitTapHighlightColor: "transparent", borderCollapse: "separate", borderSpacing: "2px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container td", { padding: "0px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container input, .gc-calendar-container textarea", { outline: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container", { position: "static !important", transform: "none !important", overflow: "hidden", maxWidth: "30rem", height: "auto", outline: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-header-container .gc-header-title", { width: "75px", height: "22px", display: "inline-block", lineHeight: "22px", textAlign: "center" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-year-page .gc-content-container, .gc-calendar-container .gc-date-part-container .gc-month-page .gc-content-container", { marginTop: "2px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-year-page .gc-content-container td, .gc-calendar-container .gc-date-part-container .gc-month-page .gc-content-container td ", { padding: "19px 7px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-year-page .gc-content-container td .gc-cl-day, .gc-calendar-container .gc-date-part-container .gc-month-page .gc-content-container td .gc-cl-day", { width: "40px", height: "40px", lineHeight: "40px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-year-page .gc-content-container td .gc-japan-cl-day, .gc-calendar-container .gc-date-part-container .gc-month-page .gc-content-container td .gc-japan-cl-day", { width: "54px !important", height: "54px !important", paddingTop: "14px !important", lineHeight: "16px !important" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-day-page .gc-header-container .gc-year-select-div", { display: "inline-flex", padding: "0px 5px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-day-page .gc-header-container .gc-year-select-div .gc-cl-select-container", { marginLeft: "0px", width: "68px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-day-page .gc-header-container .gc-year-select-div .gc-cl-select-container .gc-cl-select", { height: "22px", minWidth: "68px !important" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-day-page .gc-today-container tr", { height: "20px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-day-page .gc-today-container i", { paddingBottom: "0", color: `${o.CSSVariables.accent}`, textDecoration: "none", cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-cl-button", { cursor: "pointer", border: "0px", outline: "none", boxShadow: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-cl-button .gc-left-arrow", { position: "absolute", top: "5px", left: "7px", borderTop: "5px solid transparent", borderBottom: "5px solid transparent", borderRight: `8px solid ${o.CSSVariables.accent}` })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-cl-button .gc-right-arrow", { position: "absolute", top: "5px", left: "7px", borderTop: "5px solid transparent", borderBottom: "5px solid transparent", borderLeft: `8px solid ${o.CSSVariables.accent}` })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-cl-disabled-text .gc-cl-day", { cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-part-container .gc-is-focused", { background: `${o.CSSVariables.accent}` })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-time-vertical-partline", { width: "1px", height: "auto", margin: "-1px 3px -3px", background: "#d8dde6" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-time-part-container", { position: "static !important", transform: "none !important", overflow: "hidden", width: "75px", maxHeight: "265px", overflowY: "auto", outline: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-time-part-container .gc-list-control", { border: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-time-part-container .gc-time-picker-li", { textAlign: "center !important", cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-time-horizontal-partline", { display: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-ok-button-container", { display: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-content-td-date", { display: "inline-flex", background: "#fff", padding: "1px 3px 3px 3px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container *", { boxSizing: "border-box" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container *:before", { boxSizing: "border-box" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container *:after", { boxSizing: "border-box" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container table", { width: "100%", borderCollapse: "separate", borderSpacing: "2px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container table td", { textAlign: "left" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container table th", { textAlign: "left" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker", { padding: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker td", { padding: "0px", textAlign: "center" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker td:hover:not(.gc-cl-disabled-text) > .gc-cl-day", { background: `${o.CSSVariables.grayBg}`, cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker td > .gc-cl-day", { width: "30px", height: "28px", display: "block", position: "relative", lineHeight: "28px", margin: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker td.gc-cl-is-selected:not(.gc-cl-disabled-text) > .gc-cl-day", { background: `${o.CSSVariables.accent}`, color: "#fff" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker th", { textAlign: "center", padding: "3px 0px", fontWeight: "400" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker th > .gc-cl-week", { width: "30px", height: "28px", display: "block", position: "relative", lineHeight: "28px", margin: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker", { padding: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker td", { padding: "0px", textAlign: "center" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker td > .gc-cl-day", { width: "30px", height: "28px", display: "block", position: "relative", lineHeight: "28px", margin: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker td.gc-cl-is-selected:not(.gc-cl-disabled-text) > .gc-cl-day", { background: "#3498db", color: "#fff" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker th", { textAlign: "center", padding: "3px 0px", fontWeight: "400" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dateRangepicker th > .gc-cl-week", { width: "30px", height: "28px", display: "block", position: "relative", lineHeight: "28px", margin: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker-filter", { padding: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-datepicker-filter-month", { padding: "0 0.25rem 0 0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-dropdown", { position: "absolute", zIndex: "7000", left: "50%", float: "left", marginTop: "0.125rem", background: "#fff" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-grid", { display: "flex", alignItems: "center" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-grid-align-spread", { justifyContent: "space-between" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-grow", { flexGrow: "1" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-button", { position: "relative", display: "inline-block", padding: "0", background: "transparent", border: "1px solid transparent", lineHeight: "22px", textDecoration: "none", color: "#fff", WebkitAppearance: "none", whiteSpace: "normal", userSelect: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-button-brand", { textAlign: "center", verticalAlign: "middle", color: "#fff", backgroundColor: "#3498db" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-button-icon-container", { lineHeight: "1", verticalAlign: "middle", width: "22px", height: "22px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-arrow-disable", { opacity: "0.5" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-align-middle", { verticalAlign: "middle", alignSelf: "center", cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-shrink-none", { flexShrink: "0" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select", { backgroundColor: "#fff", border: "1px solid #d8dde6", borderRadius: "0.25rem", width: "100%", transition: "border 0.1s linear, background-color 0.1s linear", height: "1.75rem", cursor: "pointer", fontFamily: '"Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"', fontSize: "12px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select > option", { cursor: "pointer", fontFamily: '"Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"', fontSize: "12px" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select-container", { position: "relative" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select-container:after", { position: "absolute", content: '""', display: "block", right: "6px", width: "0", height: "0", borderLeft: "3px solid transparent", borderRight: "3px solid transparent", bottom: "10px", borderLeftWidth: "4px", borderRightWidth: "4px", pointerEvents: "none", borderTop: `5px solid ${o.CSSVariables.accent}` })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select-container .gc-cl-select", { overflow: "hidden", MozAppearance: "none", WebkitAppearance: "none", padding: "0 10%" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-select-container .gc-cl-select::-ms-expand", { display: "none" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-disabled-text .gc-cl-day", { color: "#d8dde6" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-show-inline-block", { display: "inline-block" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-cl-p-bottom-x-small", { paddingBottom: "0.5rem" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-container", { zIndex: "9999" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-time-container", { zIndex: "9999" })}
                ${o.CSSUtils.generateCss(".gc-calendar-container .gc-date-range-container", { border: "none" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-date-Range-child-div", { margin: "5px 2px", height: "22px", textAlign: "center", lineHeight: "22px" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-date-Range-child-div:not(.gc-builtIn-date-range-childDiv-select):hover", { backgroundColor: `${o.CSSVariables.grayBg}` })}
                ${o.CSSUtils.generateCss(".gc-builtIn-DateRangeChildDiv", { margin: "5px 2px", height: "22px", textAlign: "center", lineHeight: "22px" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-DateRangeChildDiv:hover", { backgroundColor: `${o.CSSVariables.grayBg}`, color: "#16325c" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-date-range-childDiv-select", { backgroundColor: "#3498db", color: "#fff" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-date-ranges-div", { float: "left", height: "253px", width: "80px", textAlign: "center", borderTop: "none", borderBottom: "none", borderRight: "solid 1px gray", borderLeft: "none" })}
                ${o.CSSUtils.generateCss(".gc-builtIn-date-ranges-div:hover:not(.gc-cl-disabled-text) > .gc-cl-day", { background: `${o.CSSVariables.grayBg}`, cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-div", { height: "30px", display: "flex", justifyContent: "flex-end", alignItems: "center", whiteSpace: "nowrap", textAlign: "center", border: "solid 1px gray", backgroundColor: "white" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-div > *", { display: "inline-block", verticalAlign: "middle" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-buttonDiv", { position: "static !important", transform: "none !important", overflow: "hidden", padding: "1px", border: "none !important", background: "#fff", textAlign: "center", margin: "0 8px" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-buttonDiv button", { width: "80px" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-button", { position: "relative", display: "inline-block", padding: "0", background: "transparent", border: "1px solid transparent", lineHeight: "22px", textDecoration: "none", WebkitAppearance: "none", whiteSpace: "nowrap", userSelect: "none", textAlign: "center", verticalAlign: "middle", color: "#fff", backgroundColor: "#3498db" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-result-input", { marginRight: "10px", display: "inline-block", width: "60%", height: "22px", fontSize: "12px", whiteSpace: "normal", lineHeight: "20px" })}
                ${o.CSSUtils.generateCss(".gc-date-ranges-calendar", { display: "inline-block" })}
                ${o.CSSUtils.generateCss(".gc-range-calendar-container", { display: "flex", borderBottom: "none" })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div", { width: "100%", height: "100%", overflow: "hidden", backgroundColor: "white" })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container ", { width: "100%", height: "100%", overflowY: "auto", overflowX: "hidden" })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul", { margin: "0", padding: "0", width: "100%", listStyle: "none" })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li", { width: "100%", height: "24px", lineHeight: "24px", padding: "0 12px", textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", cursor: "pointer" })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li:hover", { backgroundColor: `${o.CSSVariables.grayBg}` })}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li.selected", { color: `${o.CSSVariables.accentColor}`, backgroundColor: `${o.CSSVariables.accent}` })}
            </style>
            <div class="calendar-container"></div>
            `;
              const n4 = t3.querySelector(".calendar-container");
              this.Pwr = new i2.Calendar(n4, this.Fwr), this.Pwr.setValue(this.y4 ? new Date(this.y4) : null), this.Pwr.Dn.updateCalendarDom();
            }
          }
          xer(t3) {
            this.Uwr = t3.querySelector("#date-input"), this.Uwr || (t3.innerHTML = `
            <style>${o.CSSUtils.generateCss("#date-input", { width: "100%", height: "30px", padding: "0 10px", boxSizing: "border-box", border: "none", outline: "none", fontSize: "12px", cursor: this._editable ? "text" : "pointer", backgroundColor: `${o.CSSVariables.background}`, color: `${o.CSSVariables.color}` })}</style>
            <input type='text' id='date-input' ${this._editable ? "" : "readonly"}></input>
            `, this.Uwr = t3.querySelector("#date-input"), this.Uwr.addEventListener("change", this.Hwr));
          }
          Ewr(t3) {
            return this.HG() ? (0, a.Rwr)(t3) : (0, a.Ewr)(t3);
          }
          HG() {
            var t3;
            return null === (t3 = this.Fwr) || void 0 === t3 ? void 0 : t3.showTime;
          }
          Bwr(t3) {
            (0, a.ht)(t3) ? this.Uwr.value = "" : this.Uwr.value = this.Ewr(t3);
          }
        }
        (0, o.s0r)("sjs-calendar-picker", s);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/alpha.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        e2.r(n2), e2.d(n2, { Alpha: function() {
          return f;
        } }), i2 = e2("./dist/plugins/components/common/base/index.js"), r = e2("./dist/plugins/components/common/dropdowns/color-picker/components/checkboard.js"), o = e2("./dist/plugins/components/utils/index.js");
        const a = 8, u = "transparent", s = "rgba(0,0,0,.08)", c = 4;
        class f extends i2.ComponentBase {
          constructor() {
            super(...arguments), this.Der = (t3) => {
              const n3 = void 0 === t3.a || null === t3.a ? 1 : t3.a;
              let e3;
              e3 = "vertical" === this._direction ? `linear-gradient(to bottom, rgba(${t3.r},${t3.g},${t3.b}, 0) 0%,
            rgba(${t3.r},${t3.g},${t3.b}, 1) 100%)` : `linear-gradient(to right, rgba(${t3.r},${t3.g},${t3.b}, 0) 0%,
            rgba(${t3.r},${t3.g},${t3.b}, 1) 100%)`, this.Oer.style.background = e3, this.Kbt(n3);
            }, this.Eer = (t3, n3, e3) => {
              const i3 = e3.clientWidth, r2 = e3.clientHeight, { left: o2, top: a2 } = e3.getBoundingClientRect(), u2 = "number" == typeof t3.pageX ? t3.pageX : t3.touches[0].pageX, s2 = "number" == typeof t3.pageY ? t3.pageY : t3.touches[0].pageY, c2 = u2 - (o2 + window.pageXOffset), f2 = s2 - (a2 + window.pageYOffset);
              if ("vertical" === n3) {
                let t4;
                return t4 = f2 < 0 ? 0 : f2 > r2 ? 1 : f2 / r2, t4;
              }
              {
                let t4;
                return t4 = c2 < 0 ? 0 : c2 > i3 ? 1 : c2 / i3, t4;
              }
            }, this.Wc = () => this.Rer, this.WZe = (t3) => {
              const n3 = this.Eer(t3, this._direction, this.Wc());
              n3 !== this.Sl() && (this.Kbt(n3), this.aer());
            }, this.Ber = (t3) => {
              this.WZe(t3), window.addEventListener("mousemove", this.WZe), window.addEventListener("mouseup", this.Ler);
            }, this.Ler = () => {
              this.Fer();
            }, this.Fer = () => {
              window.removeEventListener("mousemove", this.WZe), window.removeEventListener("mouseup", this.Ler);
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            const i3 = null !== (t3 = JSON.parse(this.getAttribute("rgb"))) && void 0 !== t3 ? t3 : { r: 255, g: 0, b: 0, a: 1, source: "rgb" }, c2 = null !== (n3 = this.getAttribute("radius")) && void 0 !== n3 ? n3 : "0", f2 = null !== (e3 = this.getAttribute("shadow")) && void 0 !== e3 ? e3 : "none", l = this.getAttribute("grid-size"), h = l ? Number(l) : a;
            this._direction = "vertical" === this.getAttribute("direction") ? "vertical" : "horizontal", this.shadowRoot.innerHTML = `
        <style>
            ${o.CSSUtils.base()}
            ${o.CSSUtils.generateCss(".container", { position: "relative", width: "100%", height: "100%" })}
            ${o.CSSUtils.generateCss(".alpha", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: `${c2}` })}
            ${o.CSSUtils.generateCss(".checkboard", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", overflow: "hidden", borderRadius: `${c2}` })}
            ${o.CSSUtils.generateCss(".grid", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: `${c2}`, boxShadow: `${f2}`, background: `url(${r.ev(u, s, h)}) left center` })}
            ${o.CSSUtils.generateCss(".gradient", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", background: `linear-gradient(to right, rgba(${i3.r},${i3.g},${i3.b}, 0) 0%,
                    rgba(${i3.r},${i3.g},${i3.b}, 1) 100%)`, boxShadow: `${f2}`, borderRadius: `${c2}` })}
            ${o.CSSUtils.generateCss(".gradient.vertical", { background: `linear-gradient(to bottom, rgba(${i3.r},${i3.g},${i3.b}, 0) 0%,
                    rgba(${i3.r},${i3.g},${i3.b}, 1) 100%)` })}
            ${o.CSSUtils.generateCss(".slider-container", { position: "relative", height: "100%", backgroundColor: "transparent" })}
            ${o.CSSUtils.generateCss(".pointer", { position: "absolute", left: 100 * i3.a + "%" })}
            ${o.CSSUtils.generateCss(".pointer.vertical", { left: "0", top: 100 * i3.a + "%" })}
            ${o.CSSUtils.generateCss(".slider", { width: "4px", borderRadius: "1px", height: "8px", background: "#fff", boxShadow: "0 0 2px rgba(0, 0, 0, .6)" })}
        </style>
        <div class="container">
            <div class="alpha">
                <div class="checkboard">
                    <div class="grid"></div>
                </div>
                <div class="gradient ${this._direction}"></div>
                <div class="slider-container">
                    <div class="pointer ${this._direction}" >
                        <div class="slider"></div>
                    </div>
                </div>
            </div>
        </div>`, this.Rer = this.shadowRoot.querySelector(".slider-container"), this.Rer.addEventListener("mousedown", this.Ber), this.Rer.addEventListener("touchmove", this.WZe), this.Rer.addEventListener("touchstart", this.WZe), this.Per = this.shadowRoot.querySelector(".pointer"), this.Oer = this.shadowRoot.querySelector(".gradient");
            const d = this.shadowRoot.querySelector(".slider"), { width: v, height: p } = this.Wc().getBoundingClientRect();
            "vertical" === this._direction ? (d.style.width = v - 2 + "px", d.style.height = "4px", this.Ger = 4 / p, this.Per.style.left = "1px") : (d.style.width = "4px", d.style.height = p - 2 + "px", this.Ger = 4 / v, this.Per.style.top = "1px"), this.Kbt(i3.a);
          }
          disconnectedCallback() {
            this.Fer(), this.Rer.removeEventListener("mousedown", this.Ber), this.Rer.removeEventListener("touchmove", this.WZe), this.Rer.removeEventListener("touchstart", this.WZe);
          }
          Kbt(t3) {
            super.Kbt(t3);
            let n3 = t3;
            n3 < 0 ? n3 = 0 : n3 > 1 - this.Ger && (n3 = 1 - this.Ger), "vertical" === this._direction ? this.Per.style.top = 100 * n3 + "%" : this.Per.style.left = 100 * n3 + "%";
            const e3 = void 0;
            this.shadowRoot.querySelector(".slider").title = `${Math.round(100 * t3)}%`;
          }
        }
        (0, o.s0r)("sjs-color-alpha", f);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/checkboard.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { ev: function() {
          return o;
        } });
        const i2 = {}, r = (t3, n3, e3) => {
          if ("undefined" == typeof document) return null;
          const i3 = document.createElement("canvas");
          i3.width = 2 * e3, i3.height = 2 * e3;
          const r2 = i3.getContext("2d");
          return r2 ? (r2.fillStyle = t3, r2.fillRect(0, 0, i3.width, i3.height), r2.fillStyle = n3, r2.fillRect(0, 0, e3, e3), r2.translate(e3, e3), r2.fillRect(0, 0, e3, e3), i3.toDataURL()) : null;
        }, o = (t3, n3, e3) => {
          const o2 = `${t3}-${n3}-${e3}`;
          if (i2[o2]) return i2[o2];
          const a = r(t3, n3, e3);
          return i2[o2] = a, a;
        };
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/color-picker-panel.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        e2.r(n2), e2.d(n2, { ColorPickerPanel: function() {
          return f;
        } }), i2 = e2("./dist/plugins/components/common/base/index.js"), r = e2("./dist/plugins/components/common/dropdowns/color-picker/components/checkboard.js"), o = e2("./dist/plugins/components/common/dropdowns/color-picker/components/utils.js"), a = e2("./dist/plugins/components/utils/index.js");
        const u = 8, s = "transparent", c = "rgba(0,0,0,.08)";
        class f extends i2.ComponentBase {
          constructor() {
            super(...arguments), this.Yrr = (t3) => {
              this.Zrr && this.Zrr.Uer(t3);
            }, this.Kbt = (t3) => {
              if (t3) {
                const n3 = (0, o.tinycolor)(t3);
                this.Ver(n3), this.wv.Kbt(n3.toHsl()), this.zGt.Kbt(n3.toHsv());
                const e3 = n3.toRgb();
                this.StV.Der(e3), this.StV.Kbt(e3.a), this.Pq.Kbt(n3), this.Zrr.Kbt(n3.toHex8String());
                const i3 = n3.toHex8String();
                this.Qrr.style.backgroundColor = i3, this.Qrr.title = i3.toUpperCase();
              } else this.Ver(null), this.Zrr.KQr && this.Zrr.Kbt(""), this.Qrr.style.backgroundColor = "transparent", this.Qrr.title = (0, a.getSR)().NoColor;
            }, this.Ver = (t3) => {
              this._x = t3;
              const n3 = null == t3 ? void 0 : t3.toHex8String();
              t3 && this.y4 === n3 || (this.y4 = n3);
            }, this.Krr = () => {
              this.zGt.addEventListener("sjs-value-change", this.Xrr), this.wv.addEventListener("sjs-value-change", this.Xrr), this.StV.addEventListener("sjs-value-change", this.Xrr), this.Pq.addEventListener("sjs-value-change", this.Xrr), this.Zrr.addEventListener("sjs-value-change", this.Xrr);
            }, this.qrr = () => {
              this.zGt.removeEventListener("sjs-value-change", this.Xrr), this.wv.removeEventListener("sjs-value-change", this.Xrr), this.StV.removeEventListener("sjs-value-change", this.Xrr), this.Pq.removeEventListener("sjs-value-change", this.Xrr), this.Zrr.removeEventListener("sjs-value-change", this.Xrr), this.zGt = null, this.wv = null, this.StV = null, this.Pq = null, this.Zrr = null, this.Qrr = null;
            }, this.Xrr = (t3) => {
              const n3 = t3.detail;
              let e3 = "", i3, r2, u2, s2;
              (0, a.ht)(n3) ? (s2 = (0, o.tinycolor)("#00000000"), i3 = s2.toHsl(), r2 = s2.toHsv(), u2 = s2.toRgb(), e3 = s2.toHex8String().toUpperCase()) : (this.jgr = n3.h || this.jgr, t3.target === this.StV ? (s2 = (0, o.tinycolor)(this._x), s2.setAlpha(n3)) : (s2 = n3.hex ? (0, o.tinycolor)(n3.hex) : (0, o.tinycolor)(n3), t3.target !== this.zGt && t3.target !== this.wv || this._x || s2.setAlpha(1)), i3 = s2.toHsl(), r2 = s2.toHsv(), u2 = s2.toRgb(), e3 = s2.toHex8String().toUpperCase(), 0 === i3.s && (i3.h = this.jgr || 0, r2.h = this.jgr || 0), this.jgr = n3.h || this.jgr || i3.h);
              const c2 = void 0;
              "#00000000" === e3 && 0 === u2.a && (e3 = "transparent"), t3.target === this.zGt ? (this.wv.Kbt(i3), this.StV.Der(u2), this.Pq.Kbt(s2), this.Zrr.Kbt(e3), this._x || this.zGt.Kbt(r2)) : t3.target === this.wv ? (this.zGt.Kbt(r2), this.StV.Der(u2), this.Pq.Kbt(s2), this.Zrr.Kbt(e3), this._x || this.wv.Kbt(i3)) : t3.target === this.StV ? (this.wv.Kbt(i3), this.zGt.Kbt(r2), this.Pq.Kbt(s2), this.Zrr.Kbt(e3)) : t3.target === this.Pq ? (this.wv.Kbt(i3), this.zGt.Kbt(r2), this.StV.Der(u2), this.Zrr.Kbt(e3)) : t3.target === this.Zrr && (this.wv.Kbt(i3), this.zGt.Kbt(r2), this.StV.Der(u2), this.Pq.Kbt(s2)), this.Qrr.style.backgroundColor = e3, this.Qrr.title = "transparent" === e3 ? (0, a.getSR)().NoColor : e3.toUpperCase(), this.Ver((0, a.ht)(n3) ? void 0 : s2), this.aer();
            };
          }
          connectedCallback() {
            this.y4 = this.Ser(this.getAttribute("value")), this.jgr = 0, this.shadowRoot.innerHTML = `
            <style>
                ${a.CSSUtils.base()}
                ${a.CSSUtils.generateCss(".color-picker-panel", { display: "flex", flexDirection: "column", width: "100%", height: "100%", padding: "10px 10px 0", background: a.CSSVariables.background, borderRadius: a.CSSVariables.borderRadius, marginBottom: "0" })}
                ${a.CSSUtils.generateCss(".saturation", { flex: "1 1 120px", overflow: "hidden", height: "120px" })}
                ${a.CSSUtils.generateCss(".controls", { display: "flex" })}
                ${a.CSSUtils.generateCss(".sliders", { padding: "4px 0", flex: "1" })}
                ${a.CSSUtils.generateCss(".preview-color-container", { position: "relative", width: "24px", height: "24px", marginTop: "4px", marginLeft: "8px", borderRadius: "3px" })}
                ${a.CSSUtils.generateCss(".preview-transparent-background", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", background: `url(${r.ev(s, c, 6)}) left center` })}
                ${a.CSSUtils.generateCss(".preview-color", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: "2px", background: "rgba(128,255,0,0.2)", boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" })}
                ${a.CSSUtils.generateCss(".hue", { height: "10px", overflow: "hidden" })}
                ${a.CSSUtils.generateCss(".alpha", { height: "10px", marginTop: "4px", overflow: "hidden" })}
            </style>
            <div class="container color-picker-panel">
                <div class="saturation">
                    <sjs-color-saturation radius="3px" shadow="inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"></sjs-color-saturation>
                </div>
                <div class="controls">
                    <div class="sliders">
                        <div class="hue">
                            <sjs-color-hue radius="2px" shadow="inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"></sjs-color-hue>
                        </div>
                        <div class="alpha">
                            <sjs-color-alpha radius="2px" shadow="inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" grid-size="5"></sjs-color-alpha>
                        </div>
                    </div>
                    <div class="preview-color-container">
                        <div class="preview-transparent-background">
                        </div><div class="preview-color"></div>
                    </div>
                </div>
                <div class="color-fields">
                    <sjs-color-fields></sjs-color-fields>
                </div>
                <div class="color-sets">
                    <sjs-color-sets enable-clear=${"true" === this.getAttribute("enable-clear")}></sjs-color-sets>
                </div>
            </div>
        `, this.zGt = this.shadowRoot.querySelector("sjs-color-saturation"), this.wv = this.shadowRoot.querySelector("sjs-color-hue"), this.StV = this.shadowRoot.querySelector("sjs-color-alpha"), this.Pq = this.shadowRoot.querySelector("sjs-color-fields"), this.Zrr = this.shadowRoot.querySelector("sjs-color-sets"), this.Qrr = this.shadowRoot.querySelector(".preview-color"), this._x = (0, o.tinycolor)(this.y4), this.Kbt(this.y4), this.Krr();
          }
          disconnectedCallback() {
            this.qrr();
          }
          Ser(t3) {
            return t3 ? (0, o.tinycolor)(t3).toHex8String() : "#00000000";
          }
        }
        (0, a.s0r)("sjs-color-picker-panel", f);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/color-sets.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        e2.r(n2), e2.d(n2, { ColorSets: function() {
          return l;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js"), o = e2("./dist/plugins/components/common/dropdowns/color-picker/components/checkboard.js"), a = e2("./dist/plugins/components/common/dropdowns/color-picker/components/utils.js");
        const u = (t3) => ["#D0021BFF", "#EC407AFF", "#F5A623FF", "#F8E71CFF", "#8B572AFF", "#7ED321FF", "#417505FF", "#BD10E0FF", "#9013FEFF", "#4A90E2FF", "#50E3C2FF", "#B8E986FF", "#000000FF", "#4A4A4AFF", ...t3 ? ["#FFFFFFFF", ""] : ["#9B9B9BFF", "#FFFFFFFF"]], s = 8, c = "transparent", f = "rgba(0,0,0,.08)";
        class l extends r.ComponentBase {
          constructor() {
            super(...arguments), this.Uer = (t3) => {
              if (!t3 || !t3.length) return void (this.zer.style.display = "none");
              this.zer.style.display = "flex";
              const n3 = t3.map(((t4) => {
                const n4 = t4.toUpperCase();
                return `<div class="swatchWrap">
                <div class="swatch" title="${n4 || (0, i2.getSR)().NoColor}" style="${n4 && `background: ${n4}`};" data-color="${n4}">
                    ${n4 ? "" : '<div class="preview-transparent-background"></div><div class="preview-color"></div>'}
                </div>
            </div>`;
              })).join("");
              this.zer.innerHTML = n3;
            }, this.JQr = (t3) => t3 ? (0, a.tinycolor)(t3).toHex8String().toUpperCase() : "", this.XQr = (t3) => {
              if (!t3) return "rgb(155,155,155)";
              const n3 = (0, a.tinycolor)(t3);
              return "#FFFFFFFF" === n3.toHex8String().toUpperCase() ? "rgb(205,205,205)" : n3.toRgbString();
            }, this.Kbt = (t3) => {
              const n3 = this.shadowRoot.querySelector(`div[data-color="${this.JQr(this.y4)}"]`);
              n3 && (n3.style.boxShadow = "inset 0 0 0 1px rgba(0,0,0,.15)"), super.Kbt(t3);
              const e3 = this.shadowRoot.querySelector(`div[data-color="${this.JQr(t3)}"]`);
              e3 && (e3.style.boxShadow = `inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ${this.XQr(t3)}`);
            }, this.jye = (t3) => {
              const n3 = t3.target.closest(".swatch");
              n3 && (this.Kbt(n3.dataset.color || void 0), this.aer());
            };
          }
          connectedCallback() {
            this.shadowRoot.innerHTML = `
        <style>
            ${i2.CSSUtils.base()}
            ${i2.CSSUtils.generateCss(".container", { width: "100%", height: "100%", marginBottom: "10px" })}
            ${i2.CSSUtils.generateCss(".colors", { margin: "0 -10px", paddingLeft: "10px", borderTop: `1px solid ${i2.CSSVariables.borderColor}`, display: "flex", flexWrap: "wrap", position: "relative" })}
            ${i2.CSSUtils.generateCss(".swatchWrap", { width: "16px", height: "16px", margin: "10px 10px 0 0" })}
            ${i2.CSSUtils.generateCss(".swatch", { height: "100%", width: "100%", cursor: "pointer", position: "relative", outline: "none", borderRadius: "3px", boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15)" })}
            ${i2.CSSUtils.generateCss(".preview-transparent-background", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", background: `url(${o.ev(c, f, 4)}) left center` })}
            ${i2.CSSUtils.generateCss(".preview-color", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: "2px", background: "rgba(0,0,0,0)", boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)" })}
        </style>
        <div class="container">
            <div class="colors">
            </div>
        </div>`, this.zer = this.shadowRoot.querySelector(".colors"), this.zer.addEventListener("click", this.jye), this.Uer(u("true" === this.getAttribute("enable-clear")));
          }
          disconnectedCallback() {
            this.zer.removeEventListener("click", this.jye);
          }
          get KQr() {
            return "true" === this.getAttribute("enable-clear");
          }
        }
        (0, i2.s0r)("sjs-color-sets", l);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/fields.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        e2.r(n2), e2.d(n2, { Fields: function() {
          return a;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js"), o = e2("./dist/plugins/components/common/dropdowns/color-picker/components/utils.js");
        class a extends r.ComponentBase {
          constructor() {
            super(...arguments), this.Kbt = (t3) => {
              this.Ver(t3), this.Qer();
            }, this.Wer = (t3) => {
              this.Jer.forEach(((t4) => {
                t4.style.display = "none";
              })), this.Jer.get(t3).style.display = "flex", this.zQt = t3;
            }, this.Qer = () => {
              this.shadowRoot.querySelector('input[data-label="hex"]').value = this.Ker();
              const t3 = this.Xer();
              this.shadowRoot.querySelector('input[data-label="r"]').value = `${t3.r}`, this.shadowRoot.querySelector('input[data-label="g"]').value = `${t3.g}`, this.shadowRoot.querySelector('input[data-label="b"]').value = `${t3.b}`;
              const n3 = this.qer();
              this.shadowRoot.querySelector('input[data-label="h"]').value = `${Math.round(n3.h)}`, this.shadowRoot.querySelector('input[data-label="s"]').value = `${Math.round(100 * n3.s)}%`, this.shadowRoot.querySelector('input[data-label="l"]').value = `${Math.round(100 * n3.l)}%`, this.shadowRoot.querySelectorAll('input[data-label="a"]').forEach(((t4) => {
                t4.value = `${this.$er(n3.a)}`;
              }));
            }, this.$er = (t3) => 0 === t3 ? "0" : 1 === t3 ? "1" : t3.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 }), this.Ver = (t3) => {
              this._x = t3, super.Kbt(t3);
            }, this.xrr = (t3) => {
              const n3 = t3.target, e3 = n3.getAttribute("data-label"), i3 = { [e3]: n3.value };
              this.WZe(i3);
            }, this.WZe = (t3) => {
              let n3 = null;
              if (t3.hex) (0, o.cur)(t3.hex) && (n3 = (0, o.tinycolor)(t3.hex));
              else if (t3.r || t3.g || t3.b) {
                const e3 = this.Xer();
                n3 = (0, o.tinycolor)({ r: t3.r || e3.r, g: t3.g || e3.g, b: t3.b || e3.b, a: e3.a });
              } else if (t3.a) {
                let e3 = Number(t3.a);
                e3 < 0 ? e3 = 0 : e3 > 1 && (e3 = 1);
                const i3 = this.qer();
                n3 = (0, o.tinycolor)({ h: i3.h, s: i3.s, l: i3.l, a: Math.round(100 * e3) / 100 });
              } else if (t3.h || t3.s || t3.l) {
                "string" == typeof t3.s && t3.s.includes("%") && (t3.s = t3.s.replace("%", "")), "string" == typeof t3.l && t3.l.includes("%") && (t3.l = t3.l.replace("%", ""));
                let e3 = Number(t3.s);
                1 === e3 && (e3 = 0.01);
                let r2 = Number(t3.l);
                1 === r2 && (r2 = 0.01);
                const a2 = this.qer();
                n3 = (0, o.tinycolor)({ h: t3.h || a2.h, s: Number((0, i2.ht)(t3.s) ? a2.s : e3), l: Number((0, i2.ht)(t3.l) ? a2.l : r2), a: a2.a });
              }
              n3 && n3.isValid() && (this.Ver(n3), this.aer()), this.Qer();
            }, this.krr = (t3) => {
              if (!t3) return "hex";
              const n3 = void 0, e3 = ["hex", "hsl", "rgb"].find(((n4) => n4 === t3.toLowerCase()));
              return e3 || "hex";
            }, this._rr = () => {
              let t3;
              return "hex" === this.zQt ? t3 = "rgb" : "rgb" === this.zQt ? t3 = "hsl" : "hsl" === this.zQt && (t3 = "hex"), this.Wer(t3), t3;
            }, this.Rrr = (t3) => {
              t3.currentTarget.style.background = i2.CSSVariables.grayBg;
            }, this.Brr = (t3) => {
              t3.currentTarget.style.background = "transparent";
            }, this.Xer = () => this._x.toRgb(), this.qer = () => this._x.toHsl(), this.Ker = () => this._x.toHex8String();
          }
          connectedCallback() {
            var t3;
            const n3 = (0, o.tinycolor)(null !== (t3 = this.getAttribute("color")) && void 0 !== t3 ? t3 : "red"), e3 = this.krr(this.getAttribute("view"));
            this.shadowRoot.innerHTML = `
        <style>
            ${i2.CSSUtils.base()}
            input { outline: none; }
            ${i2.CSSUtils.generateCss(".container", { width: "100%", height: "100%" })}
            ${i2.CSSUtils.generateCss(".wrap", { display: "flex" })}
            ${i2.CSSUtils.generateCss(".fields", { flex: "1", display: "flex", marginLeft: "-6px" })}
            ${i2.CSSUtils.generateCss(".field", { paddingLeft: "6px", width: "100%" })}
            ${i2.CSSUtils.generateCss(".alpha", { paddingLeft: "6px", width: "100%" })}
            ${i2.CSSUtils.generateCss(".toggle", { width: "32px", textAlign: "right", position: "relative" })}
            ${i2.CSSUtils.generateCss(".icon", { marginTop: "8px", cursor: "pointer", position: "relative" })}
            ${i2.CSSUtils.generateCss(".iconHighlight", { position: "absolute", width: "24px", height: "28px", background: "#eee", borderRadius: "4px", top: "10px", left: "12px", display: "none" })}
            ${i2.CSSUtils.generateCss("input", { textTransform: "uppercase", fontSize: "11px", color: i2.CSSVariables.color, width: "100%", borderRadius: "2px", border: `1px solid ${i2.CSSVariables.borderColor}`, height: "21px", textAlign: "center" })}
            ${i2.CSSUtils.generateCss("label", { textTransform: "uppercase", fontSize: "11px", lineHeight: "11px", color: i2.CSSVariables.color, textAlign: "center", display: "block", marginTop: "5px" })}
            ${i2.CSSUtils.generateCss(".toggle .icon svg", { fill: i2.CSSVariables.color, width: "24px", height: "24px", border: "1px transparent solid", borderRadius: "5px" })}
        </style>
        <div class="container">
            <div class="wrap">
                <div class="fields hex">
                    <div class="field">
                        <input id="id-hex" data-label="hex"></input><label for="id-hex">HEX</label>
                    </div>
                </div>
                <div class="fields rgb">
                    <div class="field">
                        <input id="id-rgb-r" data-label="r"></input><label for="id-rgb-r">R</label>
                    </div>
                    <div class="field">
                        <input id="id-rgb-g" data-label="g"></input><label for="id-rgb-g">G</label>
                    </div>
                    <div class="field">
                        <input id="id-rgb-b" data-label="b"></input><label for="id-rgb-b">B</label>
                    </div>
                    <div class="field alpha">
                        <input id="id-rgb-a" data-label="a"></input><label for="id-rgb-a">A</label>
                    </div>
                </div>
                <div class="fields hsl">
                    <div class="field">
                        <input id="id-hsl-h" data-label="h"></input><label for="id-hsl-h">H</label>
                    </div>
                    <div class="field">
                        <input id="id-hsl-s" data-label="s"></input><label for="id-hsl-s">S</label>
                    </div>
                    <div class="field">
                        <input id="id-hsl-l" data-label="l"></input><label for="id-hsl-l">L</label>
                    </div>
                    <div class="field alpha">
                        <input id="id-hsl-a" data-label="a"></input><label for="id-hsl-a">A</label>
                    </div>
                </div>
                <div class="toggle">
                    <div class="icon">${i2.Icons.unfoldMore}</div>
                </div>
            </div>
        </div>`, this.Lrr = this.shadowRoot.querySelector(".toggle"), this.Lrr.addEventListener("click", this._rr), this.Frr = this.shadowRoot.querySelector("svg"), this.Frr.addEventListener("mousemove", this.Rrr), this.Frr.addEventListener("mouseenter", this.Rrr), this.Frr.addEventListener("mouseout", this.Brr);
            const r2 = this.shadowRoot.querySelector(".hex"), a2 = this.shadowRoot.querySelector(".rgb"), u = this.shadowRoot.querySelector(".hsl");
            this.Jer = /* @__PURE__ */ new Map([["hex", r2], ["rgb", a2], ["hsl", u]]), this.Wer(e3), this.Kbt(n3), this.shadowRoot.querySelectorAll("input[data-label]").forEach(((t4) => {
              t4.addEventListener("change", this.xrr);
            }));
          }
          disconnectedCallback() {
            this.Lrr.removeEventListener("click", this._rr), this.Frr.removeEventListener("mousemove", this.Rrr), this.Frr.removeEventListener("mouseenter", this.Rrr), this.Frr.removeEventListener("mouseout", this.Brr), this.shadowRoot.querySelectorAll("input[data-label]").forEach(((t3) => {
              t3.removeEventListener("change", this.xrr);
            }));
          }
        }
        (0, i2.s0r)("sjs-color-fields", a);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/hue.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Hue: function() {
          return a;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        const o = 4;
        class a extends r.ComponentBase {
          constructor() {
            super(...arguments), this.Eer = (t3, n3, e3, i3) => {
              const { left: r2, top: o2, width: a2, height: u } = i3.getBoundingClientRect(), s = "number" == typeof t3.pageX ? t3.pageX : t3.touches[0].pageX, c = "number" == typeof t3.pageY ? t3.pageY : t3.touches[0].pageY, f = s - (r2 + window.pageXOffset), l = c - (o2 + window.pageYOffset);
              if ("vertical" === n3) {
                let t4;
                if (l < 0) t4 = 359;
                else if (l > u) t4 = 0;
                else {
                  const n4 = void 0;
                  t4 = 360 * (-100 * l / u + 100) / 100;
                }
                if (e3.h !== t4) return { h: t4, s: e3.s, l: e3.l, a: e3.a };
              } else {
                let t4;
                if (f < 0) t4 = 0;
                else if (f > a2) t4 = 359;
                else {
                  const n4 = void 0;
                  t4 = 360 * (100 * f / a2) / 100;
                }
                if (e3.h !== t4) return { h: t4, s: e3.s, l: e3.l, a: e3.a };
              }
              return null;
            }, this.Wc = () => this.Prr, this.WZe = (t3) => {
              const n3 = this.Eer(t3, this._direction, this.Grr, this.Wc());
              n3 && (this.Kbt(n3), this.aer());
            }, this.Ber = (t3) => {
              this.WZe(t3), window.addEventListener("mousemove", this.WZe), window.addEventListener("mouseup", this.Ler);
            }, this.Ler = () => {
              this.Fer();
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            this.Grr = null !== (t3 = JSON.parse(this.getAttribute("hsl"))) && void 0 !== t3 ? t3 : { h: 0, s: 1, l: 1 };
            const r2 = null !== (n3 = this.getAttribute("radius")) && void 0 !== n3 ? n3 : "0", o2 = null !== (e3 = this.getAttribute("shadow")) && void 0 !== e3 ? e3 : "none";
            this._direction = "vertical" === this.getAttribute("direction") ? "vertical" : "horizontal", this.shadowRoot.innerHTML = `
        <style>
            ${i2.CSSUtils.base()}
            ${i2.CSSUtils.generateCss(".container", { position: "relative", width: "100%", height: "100%" })}
            ${i2.CSSUtils.generateCss(".hue", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: r2, boxShadow: o2 })}
            ${i2.CSSUtils.generateCss(".hue-slider-container", { position: "relative", padding: "0 2px", height: "100%", borderRadius: r2 })}
            ${i2.CSSUtils.generateCss(".pointer-horizontal", { position: "absolute", left: 100 * this.Grr.h / 360 + "%" })}
            ${i2.CSSUtils.generateCss(".pointer-vertical", { position: "absolute", left: "0px", top: -100 * this.Grr.h / 360 + 100 + "%" })}
            ${i2.CSSUtils.generateCss(".slider", { width: "4px", borderRadius: "1px", height: "8px", boxShadow: "0 0 2px rgba(0, 0, 0, .6)", background: "#fff" })}
            .hue-horizontal {
                background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
                  33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
                background: -webkit-linear-gradient(to right, #f00 0%, #ff0
                  17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              }
              .hue-vertical {
                background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
                  #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
                background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
                  #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              }
        </style>
        <div class="container">
            <div class="hue">
                <div class="hue-slider-container hue-${this._direction}">
                    <div class="pointer-${this._direction}" id="pointer">
                        <div class="slider" />
                    </div>
                </div>
            </div>
        </div>`, this.Prr = this.shadowRoot.querySelector(".hue-slider-container"), this.Prr.addEventListener("mousedown", this.Ber), this.Prr.addEventListener("touchmove", this.WZe), this.Prr.addEventListener("touchstart", this.WZe), this.Per = this.shadowRoot.querySelector("#pointer");
            const a2 = this.shadowRoot.querySelector(".slider"), { width: u, height: s } = this.Wc().getBoundingClientRect();
            "vertical" === this._direction ? (a2.style.width = u - 2 + "px", a2.style.height = "4px", this.Ger = 4 / s, this.Per.style.left = "1px") : (a2.style.width = "4px", a2.style.height = s - 2 + "px", this.Ger = 4 / u, this.Per.style.top = "1px"), this.Kbt(this.Grr);
          }
          disconnectedCallback() {
            this.Fer(), this.Prr.removeEventListener("mousedown", this.Ber), this.Prr.removeEventListener("touchmove", this.WZe), this.Prr.removeEventListener("touchstart", this.WZe);
          }
          Kbt(t3) {
            if (super.Kbt(t3), this.Grr = t3, "vertical" === this._direction) {
              let t4 = this.Grr.h / 360;
              t4 < this.Ger ? t4 = this.Ger : t4 > 1 && (t4 = 1), t4 = 1 - t4, this.Per.style.top = 100 * t4 + "%";
            } else {
              let t4 = this.Grr.h / 360;
              t4 < 0 ? t4 = 0 : t4 > 1 - this.Ger && (t4 = 1 - this.Ger), this.Per.style.left = 100 * t4 + "%";
            }
          }
          Fer() {
            window.removeEventListener("mousemove", this.WZe), window.removeEventListener("mouseup", this.Ler);
          }
        }
        (0, i2.s0r)("sjs-color-hue", a);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        e2.r(n2), e2.d(n2, { Alpha: function() {
          return o.Alpha;
        }, ColorPickerPanel: function() {
          return s.ColorPickerPanel;
        }, ColorSets: function() {
          return u.ColorSets;
        }, Fields: function() {
          return a.Fields;
        }, Hue: function() {
          return r.Hue;
        }, Saturation: function() {
          return i2.Saturation;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/color-picker/components/saturation.js"), r = e2("./dist/plugins/components/common/dropdowns/color-picker/components/hue.js"), o = e2("./dist/plugins/components/common/dropdowns/color-picker/components/alpha.js"), a = e2("./dist/plugins/components/common/dropdowns/color-picker/components/fields.js"), u = e2("./dist/plugins/components/common/dropdowns/color-picker/components/color-sets.js"), s = e2("./dist/plugins/components/common/dropdowns/color-picker/components/color-picker-panel.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/saturation.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/hue.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/alpha.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/fields.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/color-sets.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/color-picker-panel.js");
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/saturation.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Saturation: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.Eer = (t3, n3, e3) => {
              const { left: i3, top: r2, width: o2, height: a } = e3.getBoundingClientRect(), u = "number" == typeof t3.pageX ? t3.pageX : t3.touches[0].pageX, s = "number" == typeof t3.pageY ? t3.pageY : t3.touches[0].pageY;
              let c = u - (i3 + window.pageXOffset), f = s - (r2 + window.pageYOffset);
              c < 0 ? c = 0 : c > o2 && (c = o2), f < 0 ? f = 0 : f > a && (f = a);
              const l = c / o2, h = 1 - f / a;
              return { h: n3.h, s: l, v: h, a: n3.a };
            }, this.WZe = (t3) => {
              const n3 = this.Eer(t3, this.Urr, this.Hrr);
              this.Kbt(n3), this.aer();
            }, this.Vrr = (t3) => ({ position: "absolute", top: -100 * Number(t3.v) + 100 + "%", left: 100 * Number(t3.s) + "%", cursor: "default", backgroundColor: "transparent" }), this.Ber = (t3) => {
              this.WZe(t3), window.addEventListener("mousemove", this.WZe), window.addEventListener("mouseup", this.Ler);
            }, this.Ler = () => {
              this.Fer();
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            const r2 = null !== (t3 = this.getAttribute("radius")) && void 0 !== t3 ? t3 : "0", o2 = null !== (n3 = this.getAttribute("shadow")) && void 0 !== n3 ? n3 : "none";
            this.Urr = null !== (e3 = JSON.parse(this.getAttribute("hsv"))) && void 0 !== e3 ? e3 : { h: 0, s: 1, v: 1 }, this.shadowRoot.innerHTML = `
        <style>
            ${i2.CSSUtils.base()}
            ${i2.CSSUtils.generateCss(".container", { position: "relative", width: "100%", height: "100%" })}
            ${i2.CSSUtils.generateCss(".color-container", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", background: `hsl(${this.Urr.h},100%, 50%)`, borderRadius: `${r2}` })}
            ${i2.CSSUtils.generateCss(".white", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", borderRadius: `${r2}` })}
            ${i2.CSSUtils.generateCss(".black", { position: "absolute", left: "0", right: "0", top: "0", bottom: "0", boxShadow: `${o2}`, borderRadius: `${r2}` })}
            ${i2.CSSUtils.generateCss(".pointer", this.Vrr(this.Urr))}
            ${i2.CSSUtils.generateCss(".circle", { width: "4px", height: "4px", boxShadow: "0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n                        0 0 1px 2px rgba(0,0,0,.4)", borderRadius: "50%", cursor: "default", transform: "translate(-2px, -2px)" })}
            .saturation-white {
                background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
                background: linear-gradient(to right, #fff, rgba(255,255,255,0));
            }
            .saturation-black {
                background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
                background: linear-gradient(to top, #000, rgba(0,0,0,0));
            }
        </style>
        <div class="container">
           <div class="color-container">
             <div class="saturation-white white">
                <div class="saturation-black black" />
                <div class="pointer">
                    <div class="circle"/>
                </div>
             </div>
           </div>
        </div>
        `, this.Hrr = this.shadowRoot.querySelector(".color-container"), this.Hrr.addEventListener("mousedown", this.Ber), this.Hrr.addEventListener("touchmove", this.WZe), this.Hrr.addEventListener("touchstart", this.WZe), this.zrr = this.shadowRoot.querySelector(".pointer"), this.Kbt(this.Urr);
          }
          disconnectedCallback() {
            this.Fer(), this.Hrr.removeEventListener("mousedown", this.Ber), this.Hrr.removeEventListener("touchmove", this.WZe), this.Hrr.removeEventListener("touchstart", this.WZe);
          }
          Kbt(t3) {
            super.Kbt(t3), this.Urr = t3;
            const n3 = this.Vrr(t3);
            this.zrr.style.top = n3.top, this.zrr.style.left = n3.left, this.Hrr.style.background = `hsl(${this.Urr.h},100%, 50%)`;
          }
          Fer() {
            window.removeEventListener("mousemove", this.WZe), window.removeEventListener("mouseup", this.Ler);
          }
        }
        (0, i2.s0r)("sjs-color-saturation", o);
      }, "./dist/plugins/components/common/dropdowns/color-picker/components/utils.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { cur: function() {
          return o;
        }, tinycolor: function() {
          return r;
        } });
        const i2 = e2("./dist/plugins/components/common/dropdowns/color-picker/lib/tinycolor.js");
        function r(t3, n3) {
          return i2(t3, n3);
        }
        function o(t3) {
          if ("transparent" === t3) return true;
          const n3 = "#" === String(t3).charAt(0) ? 1 : 0;
          return t3.length === 3 + n3 || t3.length === 6 + n3 || t3.length === 8 + n3;
        }
      }, "./dist/plugins/components/common/dropdowns/color-picker/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        e2.r(n2), e2.d(n2, { ColorPicker: function() {
          return f;
        } }), i2 = e2("./dist/plugins/components/common/base/index.js"), r = e2("./dist/plugins/components/common/dropdowns/color-picker/components/checkboard.js"), o = e2("./dist/plugins/components/utils/index.js"), a = e2("./dist/plugins/components/common/dropdowns/color-picker/components/utils.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/components/index.js");
        const u = 8, s = "transparent", c = "rgba(0,0,0,.15)";
        class f extends i2.DropdownBase {
          constructor() {
            super(...arguments), this.Yrr = (t3) => {
              this.yur && this.yur.Yrr(t3);
            }, this.Kbt = (t3) => {
              this._x !== t3 && (this._x = t3, this.Ver(t3), this.yur && this.yur.Kbt(t3), this.Wrr && (this.Wrr.style.backgroundColor = t3 || "transparent", this.Wrr.title = this.qQr(t3)));
            }, this.uer = (t3) => !this.Jet() && t3.target.closest(".color-value-container") !== this.Jrr, this.ser = () => true, this.cer = () => true, this.Ver = (t3) => {
              this.y4 !== t3 && (this.y4 = t3);
            }, this.Krr = () => {
              var t3;
              null === (t3 = this.yur) || void 0 === t3 || t3.addEventListener("sjs-value-change", this.Xrr);
            }, this.qrr = () => {
              var t3;
              null === (t3 = this.yur) || void 0 === t3 || t3.removeEventListener("sjs-value-change", this.Xrr), this.yur = null;
            }, this.Xrr = (t3) => {
              this._x = t3.detail, this.zwr() && this.Vwr();
            }, this.Vwr = () => {
              this._x !== this.y4 && (this.Wrr.style.backgroundColor = this._x, this.Wrr.title = this.qQr(this._x), this.Ver(this._x), this.aer());
            }, this.zwr = () => "true" === this.getAttribute("enable-every-change"), this.qQr = (t3) => {
              if (!t3) return (0, o.getSR)().NoColor;
              const n3 = (0, a.tinycolor)(t3);
              return "transparent" === t3 || 0 === n3.getAlpha() ? (0, o.getSR)().NoColor : n3.toHex8String().toUpperCase();
            };
          }
          Ter(t3, n3) {
            "closing" === n3 ? (this._x && this.Vwr(), this.qrr()) : (t3.style.width = "220px", t3.style.borderRadius = "4px", t3.innerHTML = `
            <sjs-color-picker-panel enable-clear=${this.getAttribute("enable-clear")}></sjs-color-picker-panel>
            `, this.yur = t3.querySelector("sjs-color-picker-panel"), this.yur.Kbt(this.y4), this.Krr());
          }
          xer(t3) {
            const n3 = t3.querySelector(".color-value");
            if (n3) this.Wrr = n3;
            else if (t3.innerHTML = `
            <style>
                ${o.CSSUtils.generateCss(".color-value-panel", { width: "100%", height: "100%", cursor: "default" })}
                ${o.CSSUtils.generateCss(".color-value-panel::after", { display: "block", content: '""', clear: "both" })}
                ${o.CSSUtils.generateCss(".color-value-container", { position: "relative", float: "right", width: "54px", height: "24px", marginTop: "3px", padding: "1px", border: "1px solid #b2b2b2", cursor: "pointer", borderRadius: o.CSSVariables.borderRadius })}
                ${o.CSSUtils.generateCss(".color-value-container div", { width: "var(--sjs-color-value-container-sub-width, 50px)", height: "var(--sjs-color-value-container-sub-height, 20px)", position: "absolute" })}
                ${o.CSSUtils.generateCss(".transparent-background", { left: "0", right: "0", top: "0", bottom: "0", margin: "auto", backgroundSize: "50px 20px", background: `url(${r.ev(s, c, 5)}) left center`, borderRadius: o.CSSVariables.borderRadius })}
                ${o.CSSUtils.generateCss(".color-value", { left: "0", right: "0", top: "0", bottom: "0", margin: "auto", backgroundColor: "rgba(255, 255, 255, 0.7)", backgroundSize: "50px 20px", borderRadius: o.CSSVariables.borderRadius })}
            </style>
            <div class="color-value-panel">
                    <div class="color-value-container" part="color-value-container">
                        <div class="transparent-background">
                        </div>
                        <div class="color-value">
                        </div>
                    </div>
            </div>`, this.Jrr = t3.querySelector(".color-value-container"), this.Wrr = t3.querySelector(".color-value"), !this._x) {
              const t4 = this.Sl();
              t4 && (this._x = t4);
            }
            this._x ? (this.Wrr.style.backgroundColor = this._x, this.Wrr.title = this.qQr(this._x)) : (this.Wrr.style.backgroundColor = "transparent", this.Wrr.title = (0, o.getSR)().NoColor);
          }
          Ser(t3) {
            return t3 || "#00000000";
          }
        }
        (0, o.s0r)("sjs-color-picker", f);
      }, "./dist/plugins/components/common/dropdowns/color-picker/lib/tinycolor.js": function(t2) {
        !(function(n2, e2) {
          t2.exports = e2();
        })(this, (function() {
          "use strict";
          var t3, n2, e2, i2, r, o, a, u, s, c;
          function f(t4) {
            return f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t5) {
              return typeof t5;
            } : function(t5) {
              return t5 && "function" == typeof Symbol && t5.constructor === Symbol && t5 !== Symbol.prototype ? "symbol" : typeof t5;
            }, f(t4);
          }
          function l(t4, n3) {
            if (n3 = n3 || {}, (t4 = t4 || "") instanceof l) return t4;
            if (!(this instanceof l)) return new l(t4, n3);
            var e3 = h(t4);
            this.$rr = t4, this._r = e3.r, this._g = e3.g, this._b = e3.b, this._a = e3.a, this.tor = Math.round(100 * this._a) / 100, this.I5 = n3.format || e3.format, this.nor = n3.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = e3.ok;
          }
          function h(t4) {
            var n3 = { r: 0, g: 0, b: 0 }, e3 = 1, i3 = null, r2 = null, o2 = null, a2 = false, u2 = false;
            return "string" == typeof t4 && (t4 = Y(t4)), "object" == f(t4) && (z(t4.r) && z(t4.g) && z(t4.b) ? (n3 = d(t4.r, t4.g, t4.b), a2 = true, u2 = "%" === String(t4.r).substr(-1) ? "prgb" : "rgb") : z(t4.h) && z(t4.s) && z(t4.v) ? (i3 = U(t4.s), r2 = U(t4.v), n3 = m(t4.h, i3, r2), a2 = true, u2 = "hsv") : z(t4.h) && z(t4.s) && z(t4.l) && (i3 = U(t4.s), o2 = U(t4.l), n3 = p(t4.h, i3, o2), a2 = true, u2 = "hsl"), t4.hasOwnProperty("a") && (e3 = t4.a)), e3 = E(e3), { ok: a2, format: t4.format || u2, r: Math.min(255, Math.max(n3.r, 0)), g: Math.min(255, Math.max(n3.g, 0)), b: Math.min(255, Math.max(n3.b, 0)), a: e3 };
          }
          function d(t4, n3, e3) {
            return { r: 255 * R(t4, 255), g: 255 * R(n3, 255), b: 255 * R(e3, 255) };
          }
          function v(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            if (t4 = R(t4, 255), n3 = R(n3, 255), e3 = R(e3, 255), u2 = ((i3 = Math.max(t4, n3, e3)) + (r2 = Math.min(t4, n3, e3))) / 2, i3 == r2) o2 = a2 = 0;
            else {
              switch (s2 = i3 - r2, a2 = u2 > 0.5 ? s2 / (2 - i3 - r2) : s2 / (i3 + r2), i3) {
                case t4:
                  o2 = (n3 - e3) / s2 + (n3 < e3 ? 6 : 0);
                  break;
                case n3:
                  o2 = (e3 - t4) / s2 + 2;
                  break;
                case e3:
                  o2 = (t4 - n3) / s2 + 4;
              }
              o2 /= 6;
            }
            return { h: o2, s: a2, l: u2 };
          }
          function p(t4, n3, e3) {
            var i3, r2, o2, a2, u2;
            function s2(t5, n4, e4) {
              return e4 < 0 && (e4 += 1), e4 > 1 && (e4 -= 1), e4 < 1 / 6 ? t5 + 6 * (n4 - t5) * e4 : e4 < 0.5 ? n4 : e4 < 2 / 3 ? t5 + (n4 - t5) * (2 / 3 - e4) * 6 : t5;
            }
            return t4 = R(t4, 360), n3 = R(n3, 100), e3 = R(e3, 100), 0 === n3 ? i3 = r2 = o2 = e3 : (i3 = s2(u2 = 2 * e3 - (a2 = e3 < 0.5 ? e3 * (1 + n3) : e3 + n3 - e3 * n3), a2, t4 + 1 / 3), r2 = s2(u2, a2, t4), o2 = s2(u2, a2, t4 - 1 / 3)), { r: 255 * i3, g: 255 * r2, b: 255 * o2 };
          }
          function g(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            if (t4 = R(t4, 255), n3 = R(n3, 255), e3 = R(e3, 255), u2 = i3 = Math.max(t4, n3, e3), s2 = i3 - (r2 = Math.min(t4, n3, e3)), a2 = 0 === i3 ? 0 : s2 / i3, i3 == r2) o2 = 0;
            else {
              switch (i3) {
                case t4:
                  o2 = (n3 - e3) / s2 + (n3 < e3 ? 6 : 0);
                  break;
                case n3:
                  o2 = (e3 - t4) / s2 + 2;
                  break;
                case e3:
                  o2 = (t4 - n3) / s2 + 4;
              }
              o2 /= 6;
            }
            return { h: o2, s: a2, v: u2 };
          }
          function m(t4, n3, e3) {
            t4 = 6 * R(t4, 360), n3 = R(n3, 100), e3 = R(e3, 100);
            var i3 = Math.floor(t4), r2 = t4 - i3, o2 = e3 * (1 - n3), a2 = e3 * (1 - r2 * n3), u2 = e3 * (1 - (1 - r2) * n3), s2 = i3 % 6, c2, f2, l2;
            return { r: 255 * [e3, a2, o2, o2, u2, e3][s2], g: 255 * [u2, e3, e3, a2, o2, o2][s2], b: 255 * [o2, o2, u2, e3, e3, a2][s2] };
          }
          function b(t4, n3, e3, i3) {
            var r2 = [G(Math.round(t4).toString(16)), G(Math.round(n3).toString(16)), G(Math.round(e3).toString(16))];
            return i3 && r2[0].charAt(0) == r2[0].charAt(1) && r2[1].charAt(0) == r2[1].charAt(1) && r2[2].charAt(0) == r2[2].charAt(1) ? r2[0].charAt(0) + r2[1].charAt(0) + r2[2].charAt(0) : r2.join("");
          }
          function y(t4, n3, e3, i3, r2) {
            var o2 = [G(Math.round(t4).toString(16)), G(Math.round(n3).toString(16)), G(Math.round(e3).toString(16)), G(H(i3))];
            return r2 && o2[0].charAt(0) == o2[0].charAt(1) && o2[1].charAt(0) == o2[1].charAt(1) && o2[2].charAt(0) == o2[2].charAt(1) && o2[3].charAt(0) == o2[3].charAt(1) ? o2[0].charAt(0) + o2[1].charAt(0) + o2[2].charAt(0) + o2[3].charAt(0) : o2.join("");
          }
          function w(t4, n3, e3, i3) {
            var r2;
            return [G(H(i3)), G(Math.round(t4).toString(16)), G(Math.round(n3).toString(16)), G(Math.round(e3).toString(16))].join("");
          }
          function M(t4, n3) {
            n3 = 0 === n3 ? 0 : n3 || 10;
            var e3 = l(t4).toHsl();
            return e3.s -= n3 / 100, e3.s = L(e3.s), l(e3);
          }
          function C(t4, n3) {
            n3 = 0 === n3 ? 0 : n3 || 10;
            var e3 = l(t4).toHsl();
            return e3.s += n3 / 100, e3.s = L(e3.s), l(e3);
          }
          function S(t4) {
            return l(t4).desaturate(100);
          }
          function T(t4, n3) {
            n3 = 0 === n3 ? 0 : n3 || 10;
            var e3 = l(t4).toHsl();
            return e3.l += n3 / 100, e3.l = L(e3.l), l(e3);
          }
          function x(t4, n3) {
            n3 = 0 === n3 ? 0 : n3 || 10;
            var e3 = l(t4).toRgb();
            return e3.r = Math.max(0, Math.min(255, e3.r - Math.round(-n3 / 100 * 255))), e3.g = Math.max(0, Math.min(255, e3.g - Math.round(-n3 / 100 * 255))), e3.b = Math.max(0, Math.min(255, e3.b - Math.round(-n3 / 100 * 255))), l(e3);
          }
          function A(t4, n3) {
            n3 = 0 === n3 ? 0 : n3 || 10;
            var e3 = l(t4).toHsl();
            return e3.l -= n3 / 100, e3.l = L(e3.l), l(e3);
          }
          function I(t4, n3) {
            var e3 = l(t4).toHsl(), i3 = (e3.h + n3) % 360;
            return e3.h = i3 < 0 ? 360 + i3 : i3, l(e3);
          }
          function k(t4) {
            var n3 = l(t4).toHsl();
            return n3.h = (n3.h + 180) % 360, l(n3);
          }
          function N(t4, n3) {
            var e3, i3, r2, o2;
            if (isNaN(n3) || n3 <= 0) throw new Error("Argument to polyad must be a positive number");
            for (e3 = l(t4).toHsl(), i3 = [l(t4)], r2 = 360 / n3, o2 = 1; o2 < n3; o2++) i3.push(l({ h: (e3.h + o2 * r2) % 360, s: e3.s, l: e3.l }));
            return i3;
          }
          function j(t4) {
            var n3 = l(t4).toHsl(), e3 = n3.h;
            return [l(t4), l({ h: (e3 + 72) % 360, s: n3.s, l: n3.l }), l({ h: (e3 + 216) % 360, s: n3.s, l: n3.l })];
          }
          function D(t4, n3, e3) {
            var i3, r2, o2;
            for (n3 = n3 || 6, e3 = e3 || 30, i3 = l(t4).toHsl(), r2 = 360 / e3, o2 = [l(t4)], i3.h = (i3.h - (r2 * n3 >> 1) + 720) % 360; --n3; ) i3.h = (i3.h + r2) % 360, o2.push(l(i3));
            return o2;
          }
          function _(t4, n3) {
            var e3, i3, r2, o2, a2, u2;
            for (n3 = n3 || 6, i3 = (e3 = l(t4).toHsv()).h, r2 = e3.s, o2 = e3.v, a2 = [], u2 = 1 / n3; n3--; ) a2.push(l({ h: i3, s: r2, v: o2 })), o2 = (o2 + u2) % 1;
            return a2;
          }
          function O(t4) {
            var n3, e3 = {};
            for (n3 in t4) t4.hasOwnProperty(n3) && (e3[t4[n3]] = n3);
            return e3;
          }
          function E(t4) {
            return t4 = parseFloat(t4), (isNaN(t4) || t4 < 0 || t4 > 1) && (t4 = 1), t4;
          }
          function R(t4, n3) {
            B(t4) && (t4 = "100%");
            var e3 = P(t4);
            return t4 = Math.min(n3, Math.max(0, parseFloat(t4))), e3 && (t4 = parseInt(t4 * n3, 10) / 100), Math.abs(t4 - n3) < 1e-6 ? 1 : t4 % n3 / parseFloat(n3);
          }
          function L(t4) {
            return Math.min(1, Math.max(0, t4));
          }
          function F(t4) {
            return parseInt(t4, 16);
          }
          function B(t4) {
            return "string" == typeof t4 && -1 != t4.indexOf(".") && 1 === parseFloat(t4);
          }
          function P(t4) {
            return "string" == typeof t4 && -1 != t4.indexOf("%");
          }
          function G(t4) {
            return 1 == t4.length ? "0" + t4 : "" + t4;
          }
          function U(t4) {
            return t4 <= 1 && (t4 = 100 * t4 + "%"), t4;
          }
          function H(t4) {
            return Math.round(255 * parseFloat(t4)).toString(16);
          }
          function V(t4) {
            return F(t4) / 255;
          }
          function z(t4) {
            return !!r.CSS_UNIT.exec(t4);
          }
          function Y(i3) {
            var o2, a2;
            if (i3 = i3.replace(t3, "").replace(n2, "").toLowerCase(), o2 = false, e2[i3]) i3 = e2[i3], o2 = true;
            else if ("transparent" == i3) return { r: 0, g: 0, b: 0, a: 0, format: "name" };
            return (a2 = r.rgb.exec(i3)) ? { r: a2[1], g: a2[2], b: a2[3] } : (a2 = r.rgba.exec(i3)) ? { r: a2[1], g: a2[2], b: a2[3], a: a2[4] } : (a2 = r.hsl.exec(i3)) ? { h: a2[1], s: a2[2], l: a2[3] } : (a2 = r.hsla.exec(i3)) ? { h: a2[1], s: a2[2], l: a2[3], a: a2[4] } : (a2 = r.hsv.exec(i3)) ? { h: a2[1], s: a2[2], v: a2[3] } : (a2 = r.hsva.exec(i3)) ? { h: a2[1], s: a2[2], v: a2[3], a: a2[4] } : (a2 = r.hex8.exec(i3)) ? { r: F(a2[1]), g: F(a2[2]), b: F(a2[3]), a: V(a2[4]), format: o2 ? "name" : "hex8" } : (a2 = r.hex6.exec(i3)) ? { r: F(a2[1]), g: F(a2[2]), b: F(a2[3]), format: o2 ? "name" : "hex" } : (a2 = r.hex4.exec(i3)) ? { r: F(a2[1] + "" + a2[1]), g: F(a2[2] + "" + a2[2]), b: F(a2[3] + "" + a2[3]), a: V(a2[4] + "" + a2[4]), format: o2 ? "name" : "hex8" } : !!(a2 = r.hex3.exec(i3)) && { r: F(a2[1] + "" + a2[1]), g: F(a2[2] + "" + a2[2]), b: F(a2[3] + "" + a2[3]), format: o2 ? "name" : "hex" };
          }
          function Z(t4) {
            var n3, e3;
            return "AA" !== (n3 = ((t4 = t4 || { level: "AA", size: "small" }).level || "AA").toUpperCase()) && "AAA" !== n3 && (n3 = "AA"), "small" !== (e3 = (t4.size || "small").toLowerCase()) && "large" !== e3 && (e3 = "small"), { level: n3, size: e3 };
          }
          return t3 = /^\s+/, n2 = /\s+$/, l.prototype = { isDark: function t4() {
            return this.getBrightness() < 128;
          }, isLight: function t4() {
            return !this.isDark();
          }, isValid: function t4() {
            return this._ok;
          }, getOriginalInput: function t4() {
            return this.$rr;
          }, getFormat: function t4() {
            return this.I5;
          }, getAlpha: function t4() {
            return this._a;
          }, getBrightness: function t4() {
            var n3 = this.toRgb();
            return (299 * n3.r + 587 * n3.g + 114 * n3.b) / 1e3;
          }, getLuminance: function t4() {
            var n3, e3, i3, r2 = this.toRgb(), o2 = r2.r / 255, a2 = r2.g / 255, u2 = r2.b / 255;
            return 0.2126 * (n3 = o2 <= 0.03928 ? o2 / 12.92 : Math.pow((o2 + 0.055) / 1.055, 2.4)) + 0.7152 * (e3 = a2 <= 0.03928 ? a2 / 12.92 : Math.pow((a2 + 0.055) / 1.055, 2.4)) + 0.0722 * (i3 = u2 <= 0.03928 ? u2 / 12.92 : Math.pow((u2 + 0.055) / 1.055, 2.4));
          }, setAlpha: function t4(n3) {
            return this._a = E(n3), this.tor = Math.round(100 * this._a) / 100, this;
          }, toHsv: function t4() {
            var n3 = g(this._r, this._g, this._b);
            return { h: 360 * n3.h, s: n3.s, v: n3.v, a: this._a };
          }, toHsvString: function t4() {
            var n3 = g(this._r, this._g, this._b), e3 = Math.round(360 * n3.h), i3 = Math.round(100 * n3.s), r2 = Math.round(100 * n3.v);
            return 1 == this._a ? "hsv(" + e3 + ", " + i3 + "%, " + r2 + "%)" : "hsva(" + e3 + ", " + i3 + "%, " + r2 + "%, " + this.tor + ")";
          }, toHsl: function t4() {
            var n3 = v(this._r, this._g, this._b);
            return { h: 360 * n3.h, s: n3.s, l: n3.l, a: this._a };
          }, toHslString: function t4() {
            var n3 = v(this._r, this._g, this._b), e3 = Math.round(360 * n3.h), i3 = Math.round(100 * n3.s), r2 = Math.round(100 * n3.l);
            return 1 == this._a ? "hsl(" + e3 + ", " + i3 + "%, " + r2 + "%)" : "hsla(" + e3 + ", " + i3 + "%, " + r2 + "%, " + this.tor + ")";
          }, toHex: function t4(n3) {
            return b(this._r, this._g, this._b, n3);
          }, toHexString: function t4(n3) {
            return "#" + this.toHex(n3);
          }, toHex8: function t4(n3) {
            return y(this._r, this._g, this._b, this._a, n3);
          }, toHex8String: function t4(n3) {
            return "#" + this.toHex8(n3);
          }, toRgb: function t4() {
            return { r: Math.round(this._r), g: Math.round(this._g), b: Math.round(this._b), a: this._a };
          }, toRgbString: function t4() {
            return 1 == this._a ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this.tor + ")";
          }, toPercentageRgb: function t4() {
            return { r: Math.round(100 * R(this._r, 255)) + "%", g: Math.round(100 * R(this._g, 255)) + "%", b: Math.round(100 * R(this._b, 255)) + "%", a: this._a };
          }, toPercentageRgbString: function t4() {
            return 1 == this._a ? "rgb(" + Math.round(100 * R(this._r, 255)) + "%, " + Math.round(100 * R(this._g, 255)) + "%, " + Math.round(100 * R(this._b, 255)) + "%)" : "rgba(" + Math.round(100 * R(this._r, 255)) + "%, " + Math.round(100 * R(this._g, 255)) + "%, " + Math.round(100 * R(this._b, 255)) + "%, " + this.tor + ")";
          }, toName: function t4() {
            return 0 === this._a ? "transparent" : !(this._a < 1) && (i2[b(this._r, this._g, this._b, true)] || false);
          }, toFilter: function t4(n3) {
            var e3, i3 = "#" + w(this._r, this._g, this._b, this._a), r2 = i3, o2 = this.nor ? "GradientType = 1, " : "";
            return n3 && (r2 = "#" + w((e3 = l(n3))._r, e3._g, e3._b, e3._a)), "progid:DXImageTransform.Microsoft.gradient(" + o2 + "startColorstr=" + i3 + ",endColorstr=" + r2 + ")";
          }, toString: function t4(n3) {
            var e3, i3, r2, o2 = !!n3;
            return n3 = n3 || this.I5, e3 = false, i3 = this._a < 1 && this._a >= 0, (r2 = !o2 && i3 && ("hex" === n3 || "hex6" === n3 || "hex3" === n3 || "hex4" === n3 || "hex8" === n3 || "name" === n3)) ? "name" === n3 && 0 === this._a ? this.toName() : this.toRgbString() : ("rgb" === n3 && (e3 = this.toRgbString()), "prgb" === n3 && (e3 = this.toPercentageRgbString()), "hex" !== n3 && "hex6" !== n3 || (e3 = this.toHexString()), "hex3" === n3 && (e3 = this.toHexString(true)), "hex4" === n3 && (e3 = this.toHex8String(true)), "hex8" === n3 && (e3 = this.toHex8String()), "name" === n3 && (e3 = this.toName()), "hsl" === n3 && (e3 = this.toHslString()), "hsv" === n3 && (e3 = this.toHsvString()), e3 || this.toHexString());
          }, clone: function t4() {
            return l(this.toString());
          }, eor: function t4(n3, e3) {
            var i3 = n3.apply(null, [this].concat([].slice.call(e3)));
            return this._r = i3._r, this._g = i3._g, this._b = i3._b, this.setAlpha(i3._a), this;
          }, lighten: function t4() {
            return this.eor(T, arguments);
          }, brighten: function t4() {
            return this.eor(x, arguments);
          }, darken: function t4() {
            return this.eor(A, arguments);
          }, desaturate: function t4() {
            return this.eor(M, arguments);
          }, saturate: function t4() {
            return this.eor(C, arguments);
          }, greyscale: function t4() {
            return this.eor(S, arguments);
          }, spin: function t4() {
            return this.eor(I, arguments);
          }, ior: function t4(n3, e3) {
            return n3.apply(null, [this].concat([].slice.call(e3)));
          }, analogous: function t4() {
            return this.ior(D, arguments);
          }, complement: function t4() {
            return this.ior(k, arguments);
          }, monochromatic: function t4() {
            return this.ior(_, arguments);
          }, splitcomplement: function t4() {
            return this.ior(j, arguments);
          }, triad: function t4() {
            return this.ior(N, [3]);
          }, tetrad: function t4() {
            return this.ior(N, [4]);
          } }, l.fromRatio = function(t4, n3) {
            var e3, i3;
            if ("object" == f(t4)) {
              for (i3 in e3 = {}, t4) t4.hasOwnProperty(i3) && (e3[i3] = "a" === i3 ? t4[i3] : U(t4[i3]));
              t4 = e3;
            }
            return l(t4, n3);
          }, l.equals = function(t4, n3) {
            return !(!t4 || !n3) && l(t4).toRgbString() == l(n3).toRgbString();
          }, l.random = function() {
            return l.fromRatio({ r: Math.random(), g: Math.random(), b: Math.random() });
          }, l.mix = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            return e3 = 0 === e3 ? 0 : e3 || 50, i3 = l(t4).toRgb(), r2 = l(n3).toRgb(), o2 = e3 / 100, l(a2 = { r: (r2.r - i3.r) * o2 + i3.r, g: (r2.g - i3.g) * o2 + i3.g, b: (r2.b - i3.b) * o2 + i3.b, a: (r2.a - i3.a) * o2 + i3.a });
          }, l.readability = function(t4, n3) {
            var e3 = l(t4), i3 = l(n3);
            return (Math.max(e3.getLuminance(), i3.getLuminance()) + 0.05) / (Math.min(e3.getLuminance(), i3.getLuminance()) + 0.05);
          }, l.isReadable = function(t4, n3, e3) {
            var i3 = l.readability(t4, n3), r2 = false, o2 = Z(e3);
            switch (o2.level + o2.size) {
              case "AAsmall":
              case "AAAlarge":
                r2 = i3 >= 4.5;
                break;
              case "AAlarge":
                r2 = i3 >= 3;
                break;
              case "AAAsmall":
                r2 = i3 >= 7;
            }
            return r2;
          }, l.mostReadable = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = null, c2 = 0;
            for (r2 = (e3 = e3 || {}).includeFallbackColors, o2 = e3.level, a2 = e3.size, u2 = 0; u2 < n3.length; u2++) (i3 = l.readability(t4, n3[u2])) > c2 && (c2 = i3, s2 = l(n3[u2]));
            return l.isReadable(t4, s2, { level: o2, size: a2 }) || !r2 ? s2 : (e3.includeFallbackColors = false, l.mostReadable(t4, ["#fff", "#000"], e3));
          }, e2 = l.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, i2 = l.hexNames = O(e2), s = "[\\s|\\(]+(" + (u = "(?:" + (a = "[-\\+]?\\d*\\.\\d+%?") + ")|(?:" + (o = "[-\\+]?\\d+%?") + ")") + ")[,|\\s]+(" + u + ")[,|\\s]+(" + u + ")\\s*\\)?", c = "[\\s|\\(]+(" + u + ")[,|\\s]+(" + u + ")[,|\\s]+(" + u + ")[,|\\s]+(" + u + ")\\s*\\)?", r = { CSS_UNIT: new RegExp(u), rgb: new RegExp("rgb" + s), rgba: new RegExp("rgba" + c), hsl: new RegExp("hsl" + s), hsla: new RegExp("hsla" + c), hsv: new RegExp("hsv" + s), hsva: new RegExp("hsva" + c), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }, l;
        }));
      }, "./dist/plugins/components/common/dropdowns/font-selectors/font-family-selector.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { FontFamilySelector: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.our = () => {
              const t3 = o._fontFamily || (0, i2.getSR)().FontFamily;
              return Object.keys(t3).map(((n3) => ({ label: t3[n3], value: n3, style: { fontFamily: "Wingdings" !== n3 ? n3 : void 0 } })));
            }, this.ker = (t3) => {
              t3.detail !== this.y4 && (this.y4 = t3.detail, this.aer());
            };
          }
          static setAvailableFontFamily(t3) {
            o._fontFamily = t3;
          }
          connectedCallback() {
            const t3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <div class="container">
                <sjs-select label="${t3}" editable="true" no-result-tip="${(0, i2.getSR)().Empty}"></sjs-select>
            </div>
        `, this.WS = this.shadowRoot.querySelector("sjs-select"), this.WS.Cor(this.our()), this.WS.setDataValidator((() => true)), this.WS.addEventListener("sjs-value-change", this.ker), this.Kbt(this.getAttribute("value"));
          }
          disconnectedCallback() {
            this.WS.removeEventListener("sjs-value-change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.WS.Kbt(t3);
          }
        }
        o._fontFamily = null, (0, i2.s0r)("sjs-font-family-selector", o);
      }, "./dist/plugins/components/common/dropdowns/font-selectors/font-size-selector.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { FontSizeSelector: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.our = () => [8, 9, 10, 11, 12, 14, 16, 18, 20, 24, 26, 28, 36, 48, 72].map(((t3) => ({ label: t3.toString(), value: t3 }))), this.ker = (t3) => {
              t3.detail !== this.y4 && (this.y4 = t3.detail, this.aer());
            };
          }
          connectedCallback() {
            const t3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <div class="container">
                <sjs-select label="${t3}" editable="true" no-result-tip="${(0, i2.getSR)().Empty}"></sjs-select>
            </div>
        `, this.WS = this.shadowRoot.querySelector("sjs-select"), this.WS.Cor(this.our()), this.WS.setDataValidator(((t4) => /\d+/g.test(t4))), this.WS.addEventListener("sjs-value-change", this.ker), this.getAttribute("value") && this.Kbt(parseInt(this.getAttribute("value"), 10));
          }
          disconnectedCallback() {
            this.WS.removeEventListener("sjs-value-change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.WS.Kbt(t3);
          }
        }
        (0, i2.s0r)("sjs-font-size-selector", o);
      }, "./dist/plugins/components/common/dropdowns/font-selectors/font-style-selector.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { FontStyleSelector: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.our = () => ["Normal", "Italic"].map(((t3) => ({ label: (0, i2.getSR)()[t3], value: t3, style: { fontStyle: t3 } }))), this.ker = (t3) => {
              t3.detail !== this.y4 && (this.y4 = t3.detail, this.aer());
            };
          }
          connectedCallback() {
            const t3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <div class="container">
                <sjs-select label="${t3}" no-result-tip="${(0, i2.getSR)().Empty}"></sjs-select>
            </div>
        `, this.WS = this.shadowRoot.querySelector("sjs-select"), this.WS.Cor(this.our()), this.WS.addEventListener("sjs-value-change", this.ker), this.Kbt(this.getAttribute("value"));
          }
          disconnectedCallback() {
            this.WS.removeEventListener("sjs-value-change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.WS.Kbt(t3);
          }
        }
        (0, i2.s0r)("sjs-font-style-selector", o);
      }, "./dist/plugins/components/common/dropdowns/font-selectors/font-weight-selector.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { FontWeightSelector: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.our = () => ["Lighter", "Normal", "Bold"].map(((t3) => ({ label: (0, i2.getSR)()[t3], value: t3, style: { fontWeight: t3 } }))), this.ker = (t3) => {
              t3.detail !== this.y4 && (this.y4 = t3.detail, this.aer());
            };
          }
          connectedCallback() {
            const t3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <div class="container">
                <sjs-select label="${t3}" no-result-tip="${(0, i2.getSR)().Empty}"></sjs-select>
            </div>
        `, this.WS = this.shadowRoot.querySelector("sjs-select"), this.WS.Cor(this.our()), this.WS.setDataValidator((() => true)), this.WS.addEventListener("sjs-value-change", this.ker), this.Kbt(this.getAttribute("value"));
          }
          disconnectedCallback() {
            this.WS.removeEventListener("sjs-value-change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.WS.Kbt(t3);
          }
        }
        (0, i2.s0r)("sjs-font-weight-selector", o);
      }, "./dist/plugins/components/common/dropdowns/font-selectors/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        e2.r(n2), e2.d(n2, { FontFamilySelector: function() {
          return r.FontFamilySelector;
        }, FontSizeSelector: function() {
          return i2.FontSizeSelector;
        }, FontStyleSelector: function() {
          return o.FontStyleSelector;
        }, FontWeightSelector: function() {
          return a.FontWeightSelector;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/font-selectors/font-size-selector.js"), r = e2("./dist/plugins/components/common/dropdowns/font-selectors/font-family-selector.js"), o = e2("./dist/plugins/components/common/dropdowns/font-selectors/font-style-selector.js"), a = e2("./dist/plugins/components/common/dropdowns/font-selectors/font-weight-selector.js"), e2("./dist/plugins/components/common/dropdowns/font-selectors/font-size-selector.js"), e2("./dist/plugins/components/common/dropdowns/font-selectors/font-family-selector.js"), e2("./dist/plugins/components/common/dropdowns/font-selectors/font-style-selector.js"), e2("./dist/plugins/components/common/dropdowns/font-selectors/font-weight-selector.js");
      }, "./dist/plugins/components/common/dropdowns/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c;
        e2.r(n2), e2.d(n2, { Calendar: function() {
          return c.Calendar;
        }, ColorPicker: function() {
          return r.ColorPicker;
        }, ColorPickerPanel: function() {
          return o.ColorPickerPanel;
        }, FontFamilySelector: function() {
          return u.FontFamilySelector;
        }, FontSizeSelector: function() {
          return u.FontSizeSelector;
        }, FontStyleSelector: function() {
          return u.FontStyleSelector;
        }, FontWeightSelector: function() {
          return u.FontWeightSelector;
        }, Select: function() {
          return i2.Select;
        }, TimePicker: function() {
          return s.TimePicker;
        }, tinycolor: function() {
          return a.tinycolor;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/select.js"), r = e2("./dist/plugins/components/common/dropdowns/color-picker/index.js"), o = e2("./dist/plugins/components/common/dropdowns/color-picker/components/index.js"), a = e2("./dist/plugins/components/common/dropdowns/color-picker/components/utils.js"), u = e2("./dist/plugins/components/common/dropdowns/font-selectors/index.js"), s = e2("./dist/plugins/components/common/dropdowns/time-picker/index.js"), c = e2("./dist/plugins/components/common/dropdowns/calendar/index.js"), e2("./dist/plugins/components/common/dropdowns/select.js"), e2("./dist/plugins/components/common/dropdowns/color-picker/index.js"), e2("./dist/plugins/components/common/dropdowns/font-selectors/index.js");
      }, "./dist/plugins/components/common/dropdowns/select.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Select: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.DropdownBase {
          constructor() {
            super(...arguments), this.ror = (t3) => this.wY.some(((n3) => n3.label === t3)), this.aur = (t3) => {
              const n3 = this.uur(t3.target);
              if (!n3) return;
              const e3 = parseInt(n3.dataset.id, 10);
              "checkbox" === this.bor ? (t3.preventDefault(), this.uor(e3)) : this.oor(e3);
            }, this.oor = (t3) => {
              const n3 = this.wY.find(((n4) => n4.index === t3));
              if (!n3) return;
              const e3 = n3.value, i3 = void 0, r2 = void 0;
              this.y4 !== e3 && (this.Kbt(e3), this.aer()), this.her();
            }, this.uor = (t3) => {
              const n3 = this.wY.find(((n4) => n4.index === t3));
              if (!n3) return;
              const e3 = void 0, i3 = Array.from(this.hor.querySelectorAll(".list-item")).map(((t4) => t4.querySelector("sjs-checkbox"))), r2 = i3[t3];
              r2.Kbt(!r2.Sl());
              const o2 = this.y4;
              if (n3.checkAll) {
                const t4 = [];
                return i3 && i3.forEach(((n4, e4) => {
                  this.wY[e4].checkAll ? n4._er(false) : (n4.Kbt(r2.Sl()), t4.push(this.wY[e4].value));
                })), void this.Kbt(true === r2.Sl() ? t4 : []);
              }
              const a = void 0, u = i3[this.wY.findIndex(((t4) => t4.checkAll))];
              i3 && i3.every(((t4, n4) => this.wY[n4].checkAll || t4.Sl() === r2.Sl())) ? (u._er(false), u.Kbt(r2.Sl())) : (u._er(true), u.Kbt(true)), true === r2.Sl() ? o2 ? this.Kbt([...o2, n3.value]) : this.Kbt([n3.value]) : (null == o2 ? void 0 : o2.length) > 0 && this.Kbt(o2.filter(((t4) => t4 !== n3.value))), this.aer();
            }, this.cor = (t3) => {
              var n3;
              this.Jet() || this.der();
              const e3 = null !== (n3 = t3.target.value) && void 0 !== n3 ? n3 : "";
              this.Ier(!this.ror(e3));
              const i3 = this.wY.filter(((t4) => t4.label.toLocaleLowerCase().indexOf(e3.toLocaleLowerCase()) > -1));
              if (this.hor) {
                if (i3.length > 0) this.hor.innerHTML = "", i3.forEach(((t4) => {
                  const n4 = this.dor(t4);
                  this.hor.appendChild(n4);
                }));
                else {
                  const t4 = this.getAttribute("no-result-tip");
                  this.hor.innerHTML = t4 ? `<div class="no-result-tip">${t4}</div>` : "";
                }
                this.yer();
              }
            }, this.vor = (t3) => {
              t3.stopPropagation(), this.der();
            }, this.TEe = (t3) => {
              const n3 = this.gor;
              this.Ier(false);
              const e3 = this.y4;
              let i3 = t3.target.value;
              if (typeof i3 != typeof e3 && "number" == typeof i3) {
                const t4 = parseInt(i3, 10);
                i3 = isNaN(t4) ? e3 : t4;
              }
              this.Kbt(this.ror(i3) ? i3 : this.y4), this.mor(n3);
              const r2 = void 0;
              e3 !== i3 && (this.Kbt(i3), this.aer());
            }, this.rur = (t3) => {
              "Enter" === t3.key ? this.Jet() ? this.her() : this.der() : "Escape" === t3.key && this.Jet() && this.her();
            };
          }
          connectedCallback() {
            var t3;
            const n3 = JSON.parse(this.getAttribute("items"));
            n3 && Array.isArray(n3) ? this.wY = n3.map(((t4, n4) => {
              var e3;
              return Object.assign(Object.assign({}, t4), { index: null !== (e3 = t4.index) && void 0 !== e3 ? e3 : n4 });
            })) : this.wY = [], this.bor = null !== (t3 = this.getAttribute("list-item-type")) && void 0 !== t3 ? t3 : "text", this.wor = JSON.parse(this.getAttribute("container-style")), this.yor = JSON.parse(this.getAttribute("list-item-style")), this._editable = "true" === this.getAttribute("editable"), this.Mor = this.getAttribute("placeholder"), super.connectedCallback(), this.shadowRoot.querySelector(".container").role = "select";
          }
          setDataValidator(t3) {
            "function" == typeof t3 && (this.ror = t3);
          }
          Cor(t3) {
            this.wY = t3.map(((t4, n3) => {
              var e3;
              return Object.assign(Object.assign({}, t4), { index: null !== (e3 = t4.index) && void 0 !== e3 ? e3 : n3 });
            })), this.y4 = void 0, this.Kbt(t3.length > 0 ? t3[0].value : void 0);
          }
          Ser(t3) {
            var n3;
            if ((null === (n3 = this.wY) || void 0 === n3 ? void 0 : n3.length) > 0 && (null == t3 ? void 0 : t3.length) > 0) {
              if ("checkbox" === this.bor) return JSON.parse(t3);
              if ("number" == typeof this.wY[0].value && !isNaN(Number(t3))) return Number(t3);
            }
            return t3;
          }
          xer(t3) {
            var n3, e3, r2;
            if (this.gor = t3, this.wY) {
              "checkbox" === this.bor ? this.Sor(t3) : this.mor(t3);
              const o2 = document.createElement("style");
              o2.innerText = `
                .dp-root, .dp-value-root, .dp-panel, .list-container {
                    ${i2.CSSUtils.borderRadius}
                }
                .list-container {
                    width: 100%;
                    height: 100%;
                    overflow-y: auto;
                    overflow-x: hidden;
                    box-sizing: border-box;
                    max-height: 200px;
                    font-family: Open Sans, Segoe UI, Geneva, Verdana, sans-serif;
                    font-size: 12px;
                    user-select: none;
                    background-color: ${i2.CSSVariables.background};
                    ${i2.CSSUtils.objToCss(null !== (n3 = this.wor) && void 0 !== n3 ? n3 : {})}
                }
                .list-item {
                    width: 100%;
                    height: 30px;
                    padding: 0 10px;
                    overflow: hidden;
                    display: flex;
                    transition: background-color .1s;
                    align-items: center;
                    cursor: pointer;
                    ${i2.CSSUtils.objToCss(null !== (e3 = this.yor) && void 0 !== e3 ? e3 : {})}
                }
                .list-item .list-item-icon {
                    flex: 0 0 22px;
                    display: flex;
                    align-items: center;
                    background-color: transparent;
                }
                .list-item .list-item-label {
                    flex: 1 1 auto;
                    max-width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    background-color: transparent;
                    height: 100%;
                    display: flex;
                    align-items: center;
                }
                .list-item:hover {
                    background: ${i2.CSSVariables.grayBg};
                }
                .checkbox-value-container {
                    height: 100%;
                    line-height: 100%;
                    width: 100%;
                    padding: 0 10px;
                    overflow: hidden;
                    display: flex;
                    transition: background-color .1s;
                    align-items: center;
                    cursor: pointer;
                    ${i2.CSSUtils.objToCss(null !== (r2 = this.yor) && void 0 !== r2 ? r2 : {})}
                }
                .search-input {
                    width: 100%;
                    height: 30px;
                    padding: 0 10px;
                    box-sizing: border-box;
                    border: none;
                    outline: none;
                    font-size: 12px;
                    background-color: ${i2.CSSVariables.background};
                    color: ${i2.CSSVariables.color};
                }
                .value-content {
                    width: 100%;
                    line-height: 100%;
                    width: 100%;
                    padding: 0 10px;
                    overflow: hidden;
                }
                .value-content:hover {
                    background: transparent;
                }
                .no-result-tip {
                    ${i2.CSSUtils.rowFlex("center")}
                    font-style: italic;
                    font-size: 11px;
                    height: 50px;
                }
            `, t3.appendChild(o2);
            }
          }
          Ter(t3, n3) {
            if ("opening" === n3) {
              const n4 = this.Aor();
              t3.style.height = "auto", t3.appendChild(n4);
              const e3 = n4.querySelector(".list-item.selected");
              null == e3 || e3.scrollIntoView(true);
            } else this.af(), this.hor = null;
          }
          Sor(t3) {
            var n3;
            const e3 = document.createElement("span");
            e3.classList.add("checkbox-value-container");
            const i3 = this.y4;
            i3 && 0 !== i3.length ? i3.length === this.wY.length - 1 ? e3.innerHTML = this.wY.find(((t4) => t4.checkAll)).label : e3.innerHTML = this.wY.filter(((t4) => i3.findIndex(((n4) => n4 === t4.value)) > -1)).map(((t4) => t4.label)).join(", ") : e3.innerHTML = null !== (n3 = this.UJr) && void 0 !== n3 ? n3 : "", t3.innerHTML = "", t3.appendChild(e3);
          }
          mor(t3) {
            var n3, e3, i3;
            const r2 = null !== (n3 = this.wY.find(((t4) => {
              var n4;
              return t4.value === (null !== (n4 = this.y4) && void 0 !== n4 ? n4 : this.wY[0].value);
            }))) && void 0 !== n3 ? n3 : { label: this.y4, value: this.y4 };
            if (this._editable) {
              const n4 = document.createElement("input");
              n4.setAttribute("id", "search-input"), n4.setAttribute("type", "text"), n4.setAttribute("placeholder", null !== (e3 = this.Mor) && void 0 !== e3 ? e3 : ""), n4.setAttribute("value", null !== (i3 = null == r2 ? void 0 : r2.label) && void 0 !== i3 ? i3 : ""), n4.classList.add("search-input");
              const o3 = t3.querySelector("#search-input");
              return o3 && (this.Ior(o3), t3.removeChild(o3)), this.kor(n4, t3), this.Nor = n4, void t3.appendChild(n4);
            }
            const o2 = this.dor(r2, true);
            o2.classList.add("value-content"), o2.setAttribute("style", ""), t3.innerHTML = o2.outerHTML;
          }
          Aor() {
            const t3 = document.createElement("div");
            if (t3.innerHTML = `
            <style>
                .list-item.selected .list-item-icon svg, .list-item.selected .list-item-icon svg * { fill: ${i2.CSSVariables.accentColor} }
            </style>
        `, t3.classList.add("list-container"), this.hor = t3, this.wY.length > 0) this.wY.forEach(((n3) => {
              const e3 = "checkbox" === this.bor ? this._or(n3) : this.dor(n3);
              t3.appendChild(e3);
            }));
            else {
              const t4 = this.getAttribute("no-result-tip");
              this.hor.innerHTML = t4 ? `<div class="no-result-tip">${t4}</div>` : "";
            }
            return t3.addEventListener("click", this.aur), t3;
          }
          dor(t3, n3 = false) {
            const e3 = document.createElement("div");
            if (e3.classList.add("list-item"), !n3 && this.Eor(null == t3 ? void 0 : t3.value) ? (e3.classList.add("selected"), e3.ariaSelected = "true") : e3.ariaSelected = "false", e3.setAttribute("style", this.Tor(null == t3 ? void 0 : t3.value, null == t3 ? void 0 : t3.style, n3)), t3.icon) {
              const n4 = document.createElement("div");
              n4.classList.add("list-item-icon"), n4.innerHTML = t3.icon, n4.setAttribute("style", this.Dor()), e3.appendChild(n4);
            }
            if (t3.label) {
              const i3 = document.createElement("span");
              i3.classList.add("list-item-label"), i3.setAttribute("style", this.Oor(null == t3 ? void 0 : t3.value, n3)), i3.innerHTML = t3.label, i3.title = t3.label, i3.ariaLabel = t3.label, e3.appendChild(i3);
            }
            return n3 || e3.setAttribute("data-id", t3.index + ""), e3;
          }
          _or(t3) {
            const n3 = document.createElement("div");
            n3.role = "option", n3.classList.add("list-item"), n3.setAttribute("style", this.Tor(void 0, t3.style));
            const e3 = document.createElement("sjs-checkbox");
            return e3.setAttribute("name", t3.label), e3.setAttribute("value", this.y4.findIndex(((n4) => n4 === t3.value)) > -1 ? "true" : "false"), e3.setAttribute("width", "16px"), e3.setAttribute("height", "16px"), e3.setAttribute("margin", "0"), e3.setAttribute("style", "background-color: transparent;"), t3.checkAll && (e3.setAttribute("indeterminate", (this.y4.length !== this.wY.length - 1).toString()), e3.setAttribute("value", (this.y4.length === this.wY.length - 1).toString())), n3.appendChild(e3), n3.setAttribute("data-id", t3.index + ""), n3;
          }
          Eor(t3) {
            var n3;
            return this._editable ? this.Nor.value === (null === (n3 = this.wY.find(((n4) => n4.value === t3))) || void 0 === n3 ? void 0 : n3.label) : this.y4 === t3;
          }
          Tor(t3, n3, e3) {
            let r2 = {};
            return e3 || (0, i2.ht)(t3) || !this.Eor(t3) || (r2 = { backgroundColor: i2.CSSVariables.accent }), i2.CSSUtils.objToCss(Object.assign(Object.assign({}, null != n3 ? n3 : {}), r2));
          }
          Oor(t3, n3) {
            return i2.CSSUtils.objToCss(!n3 && this.Eor(t3) ? { color: i2.CSSVariables.accentColor } : {});
          }
          Dor() {
            return i2.CSSUtils.objToCss({});
          }
          uur(t3) {
            let n3 = t3;
            for (; n3 && !n3.classList.contains("list-item") && "BODY" !== n3.tagName; ) n3 = n3.parentElement;
            return n3;
          }
          kor(t3, n3) {
            t3.addEventListener("input", this.cor), t3.addEventListener("click", this.vor), t3.addEventListener("change", this.TEe), t3.addEventListener("keyup", this.rur);
          }
          Ior(t3) {
            t3.removeEventListener("input", this.cor), t3.removeEventListener("click", this.vor), t3.removeEventListener("change", this.TEe), t3.removeEventListener("keyup", this.rur);
          }
          af() {
            var t3;
            null === (t3 = this.hor) || void 0 === t3 || t3.removeEventListener("click", this.aur);
          }
        }
        (0, i2.s0r)("sjs-select", o);
      }, "./dist/plugins/components/common/dropdowns/time-picker/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        e2.r(n2), e2.d(n2, { TimePicker: function() {
          return u;
        } }), i2 = e2("./dist/plugins/components/common/dropdowns/calendar-utils/timepicker.js"), r = e2("./dist/plugins/components/common/base/index.js"), o = e2("./dist/plugins/components/utils/index.js"), a = e2("./dist/plugins/components/common/dropdowns/calendar-utils/utils.js");
        class u extends r.DropdownBase {
          constructor() {
            super(...arguments), this.Ywr = { step: { minute: 30 } }, this.Kbt = (t3) => {
              (0, a.ht)(t3) ? (super.Kbt(null), this.Zwr = null, this.Uwr && (this.Uwr.value = "")) : (super.Kbt(new Date(t3.valueOf())), this.Zwr = new Date(t3.valueOf()), this.Uwr && (this.Uwr.value = this.Lwr(t3)));
            }, this.Gwr = (t3) => {
              (0, a.ht)(t3) || (this.Ywr = Object.assign(Object.assign({}, this.Ywr), t3));
            }, this.uer = (t3) => this.Jet() && this._editable && !(0, a.ht)(this.Uwr) && t3.target.closest("#date-input") === this.Uwr, this.Hwr = (t3) => {
              var n3;
              if (t3.target.value.trim().length < 1) return;
              const e3 = new Date(t3.target.value);
              isNaN(e3.valueOf()) ? this.Uwr.value = this.Lwr(this.y4) : e3.valueOf() !== (null === (n3 = this.y4) || void 0 === n3 ? void 0 : n3.valueOf()) && (this.Kbt(e3), this.RH && this.RH.setValue(new Date(e3)), this.aer());
            };
          }
          connectedCallback() {
            this._editable = this.hasAttribute("editable"), super.connectedCallback(), this.y4 && this.Kbt(this.y4);
          }
          Ser(t3) {
            return (0, a.ht)(t3) || !t3 ? null : new Date(t3);
          }
          Ter(t3, n3) {
            "closing" === n3 ? (this.Zwr && this.Zwr !== this.y4 && (this.Kbt(this.Zwr), this.aer()), this.RH.dispose(), this.RH = null) : (t3.innerHTML = `
            <style>
                ${o.CSSUtils.base()}
                ${o.CSSUtils.generateCss(".gc-time-picker-outer-div", { width: "100%", height: "100%", overflow: "hidden", backgroundColor: "white" })}
            ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container ", { width: "100%", height: "100%", overflowY: "auto", overflowX: "hidden" })}
            ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul", { margin: "0", padding: "0", width: "100%", listStyle: "none" })}
            ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li", { width: "100%", height: "24px", lineHeight: "24px", padding: "0 12px", textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", cursor: "pointer" })}
            ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li:hover", { backgroundColor: `${o.CSSVariables.grayBg}` })}
            ${o.CSSUtils.generateCss(".gc-time-picker-outer-div .gc-time-picker-container .gc-time-picker-ul .gc-time-picker-li.selected", { color: `${o.CSSVariables.accentColor}`, backgroundColor: `${o.CSSVariables.accent}` })}
            </style>
            `, this.RH = new i2.TimePicker(t3, this.Ywr), this.y4 && this.RH.setValue(new Date(this.y4)), this.RH.on("ValueChangedEvent", ((t4) => {
              this.Zwr = t4.value;
            })));
          }
          xer(t3) {
            this.Uwr = t3.querySelector("#date-input"), this.Uwr || (t3.innerHTML = `
            <style>${o.CSSUtils.generateCss("#date-input", { width: "100%", height: "30px", padding: "0 10px", boxSizing: "border-box", border: "none", outline: "none", fontSize: "12px", cursor: this._editable ? "text" : "pointer", backgroundColor: `${o.CSSVariables.background}`, color: `${o.CSSVariables.color}` })}</style>
            <input type='text' id='date-input' ${this._editable ? "" : "readonly"}></input>
            `, this.Uwr = t3.querySelector("#date-input"), this.Uwr.addEventListener("change", this.Hwr));
          }
          Lwr(t3) {
            return (0, a.ht)(t3) ? "" : this._editable ? (0, a.Rwr)(t3) : (0, a.Lwr)(t3);
          }
        }
        (0, o.s0r)("sjs-time-picker", u);
      }, "./dist/plugins/components/common/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g;
        e2.r(n2), e2.d(n2, { Button: function() {
          return r.Button;
        }, Calendar: function() {
          return o.Calendar;
        }, Checkbox: function() {
          return f.Checkbox;
        }, ColorPicker: function() {
          return o.ColorPicker;
        }, ColorPickerPanel: function() {
          return o.ColorPickerPanel;
        }, ComponentBase: function() {
          return i2.ComponentBase;
        }, DropdownBase: function() {
          return i2.DropdownBase;
        }, FontFamilySelector: function() {
          return o.FontFamilySelector;
        }, FontSizeSelector: function() {
          return o.FontSizeSelector;
        }, FontStyleSelector: function() {
          return o.FontStyleSelector;
        }, FontWeightSelector: function() {
          return o.FontWeightSelector;
        }, List: function() {
          return g.List;
        }, MultiValueEditor: function() {
          return h.MultiValueEditor;
        }, NumberEditor: function() {
          return u.NumberEditor;
        }, SearchInput: function() {
          return p.SearchInput;
        }, Section: function() {
          return a.Section;
        }, Select: function() {
          return o.Select;
        }, Slider: function() {
          return l.Slider;
        }, Tabs: function() {
          return v.Tabs;
        }, TextEditor: function() {
          return s.TextEditor;
        }, TimePicker: function() {
          return o.TimePicker;
        }, Toggle: function() {
          return c.Toggle;
        }, Tree: function() {
          return d.Tree;
        }, tinycolor: function() {
          return o.tinycolor;
        } }), i2 = e2("./dist/plugins/components/common/base/index.js"), r = e2("./dist/plugins/components/common/button.js"), o = e2("./dist/plugins/components/common/dropdowns/index.js"), a = e2("./dist/plugins/components/common/section.js"), u = e2("./dist/plugins/components/common/number-editor.js"), s = e2("./dist/plugins/components/common/text-editor.js"), c = e2("./dist/plugins/components/common/toggle.js"), f = e2("./dist/plugins/components/common/checkbox.js"), l = e2("./dist/plugins/components/common/slider.js"), h = e2("./dist/plugins/components/common/multi-value-editor.js"), d = e2("./dist/plugins/components/common/tree.js"), v = e2("./dist/plugins/components/common/tabs.js"), p = e2("./dist/plugins/components/common/search-input.js"), g = e2("./dist/plugins/components/common/list.js"), e2("./dist/plugins/components/common/base/index.js"), e2("./dist/plugins/components/common/button.js"), e2("./dist/plugins/components/common/dropdowns/index.js"), e2("./dist/plugins/components/common/section.js"), e2("./dist/plugins/components/common/number-editor.js"), e2("./dist/plugins/components/common/text-editor.js"), e2("./dist/plugins/components/common/toggle.js"), e2("./dist/plugins/components/common/checkbox.js"), e2("./dist/plugins/components/common/slider.js"), e2("./dist/plugins/components/common/multi-value-editor.js"), e2("./dist/plugins/components/common/tree.js"), e2("./dist/plugins/components/common/tabs.js"), e2("./dist/plugins/components/common/search-input.js"), e2("./dist/plugins/components/common/list.js");
      }, "./dist/plugins/components/common/list.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { List: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.tgr = (t3) => {
              let n3, e3 = t3.target.closest(".list-item-container");
              if (e3) {
                let t4 = e3.getAttribute("attr-value"), n4 = e3.getAttribute("index"), i3 = this._items[n4];
                this.y4[0] = t4, i3.subItems && 0 !== i3.subItems.length || this.aer();
              }
            }, this.ngr = (t3) => {
              let n3, e3 = t3.target.closest(".list-item-container");
              if (e3) {
                this.igr && (this.igr.classList.remove("list-item-container-hover"), this.igr = null);
                let t4 = +e3.getAttribute("index"), n4 = this._items[t4];
                this.y4[0] = n4.value, this.igr = e3, e3.classList.add("list-item-container-hover");
                let i3 = this.shadowRoot.querySelector(".sub-list");
                i3 && this.Yqt(i3);
              }
            }, this.rgr = () => {
              this.igr.classList.remove("list-item-container-hover"), this.igr = null;
            }, this.Wwr = (t3) => {
              this.y4 = [this.y4[0]].concat(t3.detail), this.aer();
            };
          }
          connectedCallback() {
            this._items = JSON.parse(this.getAttribute("items") || "[]"), this.y4 = JSON.parse(this.getAttribute("value") || "[]"), this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    align-items: start;
                    user-select: none;
                    height: 100%;
                    margin-bottom: 0;
                }
                ${i2.CSSUtils.generateCss(".list-container", { width: "100%", minWidth: "200px", backgroundColor: i2.CSSVariables.background, overflow: "auto" })}
                ${i2.CSSUtils.generateCss(".list-item-container", { height: "28px", textAlign: "left", fontSize: "12px", lineHeight: "28px", width: "100%", paddingLeft: "10px" })}
                .right-arrow::after { content:"▶";font-size:8px;position:absolute;right:5px; }
                .list-item-container-hover {
                    background-color: ${i2.CSSVariables.lightGrayBg};
                }
                .list-item-container.selected {
                    background-color: ${i2.CSSVariables.accent};
                    color: ${i2.CSSVariables.accentColor};
                }
                .hidden {
                    display: none;
                }
                .sub-list {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 100%;
                }
                .list-item-container-hover .sub-list {
                    display: block;
                }

            </style>
            <div class="container">
                <div class="list-container">
                    ${this.ogr(this._items)}
                </div>
            </div>
        `, this.hor = this.shadowRoot.querySelector(".list-container"), this.hor.addEventListener("click", this.tgr), this.hor.addEventListener("mouseenter", this.ngr, true), this.hor.addEventListener("mouseleave", this.rgr), this.hor.addEventListener("sjs-value-change", this.Wwr), this.iM();
          }
          disconnectedCallback() {
            this.hor.removeEventListener("click", this.tgr), this.hor.removeEventListener("mouseenter", this.ngr, true), this.hor.removeEventListener("mouseleave", this.rgr), this.hor.addEventListener("sjs-value-change", this.Wwr);
          }
          iM() {
          }
          Kbt(t3) {
            this.y4 = t3, this.iM();
          }
          Cor(t3) {
            this._items = t3, this.hor.innerHTML = this.ogr(t3), this.iM();
          }
          ogr(t3) {
            let n3 = "", e3 = false;
            for (let r2 = 0; r2 < t3.length; r2++) {
              let o2 = t3[r2], a;
              e3 = o2.subItems && 0 !== o2.subItems.length, e3 && (a = `<sjs-list class="sub-list" items='${JSON.stringify(o2.subItems)}' style="${i2.CSSUtils.boxShadow}"></sjs-list>`), n3 += `<div ${(0, i2.sHr)(o2.text)} class="list-item-container${e3 ? " right-arrow" : ""}${o2.selected ? " selected" : ""}${false === o2.visible ? " hidden" : ""}" attr-value="${o2.value}" index=${r2}>
                                ${o2.text}
                                ${e3 ? a : ""}
                              </div>`;
            }
            return n3;
          }
          Yqt(t3) {
            const n3 = this.igr, e3 = document.documentElement.clientHeight, i3 = document.documentElement.clientWidth, r2 = t3.getBoundingClientRect(), o2 = n3.getBoundingClientRect();
            let a, u;
            t3.style.position = "fixed", a = i3 < o2.x + o2.width + r2.width ? o2.x > r2.width ? o2.x - r2.width : i3 - r2.width : o2.x + o2.width, u = e3 < o2.y + r2.height ? o2.y + o2.height > r2.height ? o2.y + o2.height - r2.height : e3 - r2.height : o2.y, t3.style.left = `${a}px`, t3.style.top = `${u}px`;
          }
        }
        (0, i2.s0r)("sjs-list", o);
      }, "./dist/plugins/components/common/multi-value-editor.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { MultiValueEditor: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.Ror = false, this.Kbt = (t3) => {
              super.Kbt(t3), this.Bor(), this.Lor();
            }, this.UYr = (t3) => {
              if (this.HYr = t3, t3) {
                const n3 = void 0;
                this.shadowRoot.querySelector(".arrow1").toggleAttribute("disabled", t3[0]), this.Gor.bur(t3[0]);
                const e3 = void 0;
                this.shadowRoot.querySelector(".arrow2").toggleAttribute("disabled", t3[1]), this.Uor.bur(t3[1]);
                const i3 = void 0;
                this.shadowRoot.querySelector(".arrow3").toggleAttribute("disabled", t3[2]), this.Hor.bur(t3[2]);
                const r2 = void 0;
                this.shadowRoot.querySelector(".arrow4").toggleAttribute("disabled", t3[3]), this.Vor.bur(t3[3]);
              }
            }, this.For = (t3) => {
              super.Kbt(t3);
            }, this.Por = (t3) => {
              const n3 = { parsed: false, value: Object.assign({}, this.bkt) };
              if (!t3) return n3;
              const e3 = t3.split(/\s+/).map(((t4) => this.E8(Number(t4)))), i3 = void 0;
              if (e3.some(((t4) => isNaN(t4)))) return n3;
              if (1 !== e3.length && 4 !== e3.length) return n3;
              const r2 = (t4) => this.HYr[t4] ? 0 : 1 === e3.length ? e3[0] : e3[t4];
              return { parsed: true, value: { value1: r2(0), value2: r2(1), value3: r2(2), value4: r2(3) } };
            }, this.kSt = (t3, n3) => {
              const e3 = Number(n3);
              return isNaN(e3) ? "" : `${t3}="${e3}"`;
            }, this.E8 = (t3) => isNaN(t3) ? t3 : t3 < this.jce ? this.jce : t3 > this.Oce ? this.Oce : t3, this.Bor = () => {
              this.Gor.Kbt(this.y4.value1), this.Uor.Kbt(this.y4.value2), this.Hor.Kbt(this.y4.value3), this.Vor.Kbt(this.y4.value4);
            }, this.zor = (t3, n3) => !(0, i2.ht)(t3) && !(0, i2.ht)(n3) && (t3.value1 === n3.value1 && t3.value2 === n3.value2 && t3.value3 === n3.value3 && t3.value4 === n3.value4), this.Yor = () => {
              const { parsed: t3, value: n3 } = this.Por(this.DZe.value);
              t3 && !this.zor(n3, this.Sl()) && (this.For(n3), this.Bor(), this.aer()), this.Lor();
            }, this.Zor = () => {
              this.Ror = !this.Ror, this.Ror ? (this.Qor.style.display = "block", this.Wor.innerHTML = i2.Icons.expand) : (this.Wor.innerHTML = i2.Icons.shrink, this.Qor.style.display = "none");
            }, this.Jor = (t3, n3) => {
              if (isNaN(n3)) return;
              const e3 = Object.assign({}, this.Sl());
              1 === t3 ? e3.value1 = n3 : 2 === t3 ? e3.value2 = n3 : 3 === t3 ? e3.value3 = n3 : 4 === t3 && (e3.value4 = n3), this.For(e3), this.aer(), this.Lor();
            }, this.Lor = () => {
              this.y4.value1 === this.y4.value2 && this.y4.value1 === this.y4.value3 && this.y4.value1 === this.y4.value4 ? this.DZe.value = `${this.y4.value1}` : this.DZe.value = `${this.y4.value1} ${this.y4.value2} ${this.y4.value3} ${this.y4.value4}`;
            }, this.Kor = (t3) => {
              this.Jor(1, Number(t3.detail));
            }, this.Xor = (t3) => {
              this.Jor(2, Number(t3.detail));
            }, this.qor = (t3) => {
              this.Jor(3, Number(t3.detail));
            }, this.$or = (t3) => {
              this.Jor(4, Number(t3.detail));
            };
          }
          connectedCallback() {
            var t3;
            const n3 = this.getAttribute("label"), e3 = this.getAttribute("value"), r2 = this.hasAttribute("rotate-icon"), o2 = null !== (t3 = JSON.parse(this.getAttribute("disabled-editors"))) && void 0 !== t3 ? t3 : [false, false, false, false];
            this.jce = this.getAttribute("min") ? parseInt(this.getAttribute("min"), 10) : Number.MIN_SAFE_INTEGER, this.Oce = this.getAttribute("max") ? parseInt(this.getAttribute("max"), 10) : Number.MAX_SAFE_INTEGER;
            const a = this.E8(0);
            this.bkt = { value1: a, value2: a, value3: a, value4: a }, this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .multi-value-input {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                    margin-bottom: 5px;
                }
                ${i2.CSSUtils.generateCss(".label", { width: i2.CSSVariables.labelWidth })}
                .input-container {
                    ${i2.CSSUtils.border}
                    ${i2.CSSUtils.rowFlex("space-between")}
                    ${i2.CSSUtils.editorWidth(!!n3)}
                    overflow: hidden;
                    ${i2.CSSUtils.borderRadius}
                }
                .input-container input {
                    ${i2.CSSUtils.noBorderNoOutline}
                    ${i2.CSSUtils.objToCss({ width: "calc(100% - 60px)", height: "30px", padding: "0 5px" })}
                }
                .input-container button {
                    ${i2.CSSUtils.buttonBase}
                    ${i2.CSSUtils.rowFlex("center")}
                    ${i2.CSSUtils.objToCss({ width: "30px", height: "30px", fontSize: "15px", padding: "7px" })}
                    background-color:${i2.CSSVariables.lightGrayBg};
                }
                .input-container button[disabled] {opacity:.45;}
                ${i2.CSSUtils.hoverBackground(".input-container button:not([disabled])")}
                ${i2.CSSUtils.generateCss(".value-container::after", { display: "block", content: '""', clear: "both" })}
                ${i2.CSSUtils.generateCss(".value-container .value-row", { display: "flex", float: "right", width: "calc(100% - 60px)" })}
                .arrow {
                    ${i2.CSSUtils.rowFlex("center")}
                    ${i2.CSSUtils.objToCss({ width: "30px", height: "30px", padding: "7px", margin: "0 5px" })}
                }
                .arrow1 {transform: rotate(${r2 ? 45 : 0}deg);}
                .arrow2 {transform: rotate(${r2 ? 135 : 90}deg);}
                .arrow3 {transform: rotate(${r2 ? 315 : 180}deg);}
                .arrow4 {transform: rotate(${r2 ? 225 : 270}deg);}
                .arrow[disabled] {opacity:.45;}
            </style>
            <div class="container">
                <div class="multi-value-input">
                    ${n3 ? `<div class="label" ${(0, i2.sHr)(n3)}>${n3}</div>` : ""}
                    <div class="input-container">
                        <input class="input"></input>
                        <button class="toggle">${i2.Icons.shrink}</button>
                    </div>
                </div>
                <div class="value-container">
                    <div class="value-row">
                        <div class="arrow arrow1">${i2.Icons.arrow}</div><sjs-number-editor class="value1" ${this.kSt("min", this.jce)} ${this.kSt("max", this.Oce)}></sjs-number-editor>
                        <div class="arrow arrow2">${i2.Icons.arrow}</div><sjs-number-editor class="value2" ${this.kSt("min", this.jce)} ${this.kSt("max", this.Oce)}></sjs-number-editor>
                    </div>
                    <div class="value-row">
                        <div class="arrow arrow3">${i2.Icons.arrow}</div><sjs-number-editor class="value3" ${this.kSt("min", this.jce)} ${this.kSt("max", this.Oce)}></sjs-number-editor>
                        <div class="arrow arrow4">${i2.Icons.arrow}</div><sjs-number-editor class="value4" ${this.kSt("min", this.jce)} ${this.kSt("max", this.Oce)}></sjs-number-editor>
                    </div>
                </div>
            </div>`, this.Wor = this.shadowRoot.querySelector(".toggle"), this.Qor = this.shadowRoot.querySelector(".value-container"), this.Qor.style.display = "none", this.Wor.addEventListener("click", this.Zor), this.DZe = this.shadowRoot.querySelector(".input"), this.DZe.addEventListener("change", this.Yor), this.Gor = this.shadowRoot.querySelector(".value1"), this.Gor.addEventListener("sjs-value-change", this.Kor), this.Uor = this.shadowRoot.querySelector(".value2"), this.Uor.addEventListener("sjs-value-change", this.Xor), this.Hor = this.shadowRoot.querySelector(".value3"), this.Hor.addEventListener("sjs-value-change", this.qor), this.Vor = this.shadowRoot.querySelector(".value4"), this.Vor.addEventListener("sjs-value-change", this.$or), this.UYr(o2);
            const { value: u } = this.Por(e3);
            this.Kbt(u);
          }
          disconnectedCallback() {
            this.Wor.removeEventListener("click", this.Zor), this.DZe.removeEventListener("change", this.Yor), this.Gor.removeEventListener("sjs-value-change", this.Kor), this.Uor.removeEventListener("sjs-value-change", this.Xor), this.Hor.removeEventListener("sjs-value-change", this.qor), this.Vor.removeEventListener("sjs-value-change", this.$or);
          }
        }
        (0, i2.s0r)("sjs-multi-value-editor", o);
      }, "./dist/plugins/components/common/number-editor.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { NumberEditor: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.tar = () => {
              let t3 = this.y4;
              this.Sur && (0, i2.ht)(t3) && (t3 = 0), this.nar(t3 - 1);
            }, this.ear = () => {
              let t3 = this.y4;
              this.Sur && (0, i2.ht)(t3) && (t3 = 0), this.nar(t3 + 1);
            }, this.ker = (t3) => {
              this.nar(this.nur(t3.target.value));
            }, this.nur = (t3) => {
              if (!(t3 = t3.trim())) return this.Sur ? this.scr : 0;
              const n3 = this.dfe ? parseFloat(t3) : parseInt(t3, 10);
              return isNaN(n3) ? 0 : n3;
            }, this.nar = (t3) => {
              const n3 = this.y4;
              this.Kbt(t3), n3 !== this.y4 && this.aer();
            }, this.iar = () => {
              this.rar && (this.Sur && (0, i2.ht)(this.y4) ? (this.rar.bur(false), this.oar.bur(false)) : (this.rar.bur(this.y4 <= this.jce), this.oar.bur(this.y4 >= this.Oce)));
            };
          }
          connectedCallback() {
            var t3, n3;
            this.y4 = parseInt(this.getAttribute("value"), 10) || 0, this.jce = this.getAttribute("min") ? parseInt(this.getAttribute("min"), 10) : Number.MIN_SAFE_INTEGER, this.Oce = this.getAttribute("max") ? parseInt(this.getAttribute("max"), 10) : Number.MAX_SAFE_INTEGER, this.Sur = "TRUE" === (null === (t3 = this.getAttribute("allow-empty")) || void 0 === t3 ? void 0 : t3.toUpperCase()), this.dfe = "TRUE" === (null === (n3 = this.getAttribute("allow-float")) || void 0 === n3 ? void 0 : n3.toUpperCase()), this.scr = this.getAttribute("empty-value") ? parseInt(this.getAttribute("empty-value"), 10) : void 0;
            const e3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".label", { width: `var(--sjs-label-width, ${i2.CSSVariables.labelWidth})` })}
                .input-container {
                    ${i2.CSSUtils.border}
                    ${i2.CSSUtils.rowFlex("space-between")}
                    ${i2.CSSUtils.editorWidth(!!e3)}
                    overflow: hidden;
                    ${i2.CSSUtils.borderRadius}
                }
                input {
                    ${i2.CSSUtils.noBorderNoOutline}
                    padding: 0 5px;
                    text-align: center;
                    width: calc(100% - 60px);
                    height: 30px;
                }
            </style>
            <div class="container">
                ${e3 ? `<div class="label" ${(0, i2.sHr)(e3)}>${e3}</div>` : ""}
                <div class="input-container">
                    <sjs-button role="spinbutton" type="icon" class="dec">${i2.Icons.minus}</sjs-button>
                    <input></input>
                    <sjs-button role="spinbutton" type="icon" class="inc">${i2.Icons.plus}</sjs-button>
                </div>
            </div>
        `, this.DZe = this.shadowRoot.querySelector("input"), this.DZe.addEventListener("change", this.ker), this.rar = this.shadowRoot.querySelector("sjs-button.dec"), this.oar = this.shadowRoot.querySelector("sjs-button.inc"), this.rar.addEventListener("click", this.tar), this.oar.addEventListener("click", this.ear), this.Kbt(this.y4), this.getAttribute("min") && (this.shadowRoot.querySelector(".input-container").role = "range", this.shadowRoot.querySelector(".input-container").ariaValueMin = this.getAttribute("min")), this.getAttribute("max") && (this.shadowRoot.querySelector(".input-container").role = "range", this.shadowRoot.querySelector(".input-container").ariaValueMax = this.getAttribute("max"));
          }
          disconnectedCallback() {
            this.DZe.removeEventListener("change", this.ker), this.rar.removeEventListener("click", this.tar), this.oar.removeEventListener("click", this.ear);
          }
          Kbt(t3) {
            this.DZe && (this.Sur && (0, i2.ht)(t3) || ((0, i2.ht)(t3) && (t3 = 0), t3 < this.jce ? t3 = this.jce : t3 > this.Oce && (t3 = this.Oce)), this.y4 = t3, this.DZe.value = this.Sur && ((0, i2.ht)(t3) || t3 === this.scr) ? "" : t3.toString(), this.iar(), this.shadowRoot.querySelector(".input-container").ariaValueNow = this.DZe.value);
          }
          ZS() {
            var t3;
            null === (t3 = this.DZe) || void 0 === t3 || t3.focus();
          }
        }
        (0, i2.s0r)("sjs-number-editor", o);
      }, "./dist/plugins/components/common/search-input.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { SearchInput: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.eur = (t3) => {
              this.Kbt(t3.target.value), this.aer();
            };
          }
          connectedCallback() {
            var t3;
            const n3 = null !== (t3 = this.getAttribute("place-holder")) && void 0 !== t3 ? t3 : "";
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".search-input", { width: "100%", height: i2.CSSVariables.controlHeight, border: "none", background: i2.CSSVariables.lightGrayBg, outline: "none", paddingLeft: "25px" })}
                ${i2.CSSUtils.generateCss(".search-container", { position: "relative", width: "100%", borderRadius: i2.CSSVariables.borderRadius, overflow: "hidden" })}
                .search-icon {
                    width: 16px;
                    height: 16px;
                    background-position: center;
                    position: absolute;
                    background-color: transparent !important;
                    top: 7px;
                    left: 5px;
                }
            </style>
            <div class="container">
                <div class="search-container"><span class="search-icon">${i2.Icons.search}</span><input type="search" role="searchbox" class="search-input" placeholder="${n3}" ${(0, i2.sHr)(n3)}></input></div>
            </div>
        `, this.DZe = this.shadowRoot.querySelector("input"), this.DZe.addEventListener("input", this.eur), this.Kbt(this.getAttribute("value"));
          }
          disconnectedCallback() {
            this.DZe.removeEventListener("input", this.eur);
          }
          Kbt(t3) {
            this.y4 = t3, this.DZe.value = t3;
          }
        }
        (0, i2.s0r)("sjs-search-input", o);
      }, "./dist/plugins/components/common/section.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { Section: function() {
          return r;
        } });
        var i2 = e2("./dist/plugins/components/utils/index.js");
        class r extends HTMLElement {
          constructor() {
            super(), this.aar = true, this.uar = "collapse", this.sar = "", this.car = "", this.far = () => {
              this.PMn(!this.aar);
            }, this.attachShadow({ mode: "open" });
          }
          connectedCallback() {
            this.sar = `#${this.getAttribute("setting-group-id")}`;
            const t3 = this.getAttribute("label");
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex()}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".label", { color: i2.CSSVariables.accent })}
                ${i2.CSSUtils.generateCss(".line", { background: i2.CSSVariables.accent, height: "1px", flex: "1", margin: "0 5px" })}
                .container button {
                    ${i2.CSSUtils.noBorderNoOutline}
                    width: 30px; height: 30px; line-height: 30px; border-radius: 15px; cursor: pointer; color: ${i2.CSSVariables.accent};
                }
                button.${this.uar} { transform: rotate(180deg); }
                button:hover { background: ${i2.CSSVariables.grayBg} }
            </style>
            <div class="container">
                ${t3 ? `<div class="label" ${(0, i2.sHr)(t3)}>${t3}</div>` : ""}
                <div class="line"></div>
                <button class="expand-">▼</button>
            </div>
        `, this.lar = this.shadowRoot.querySelector("button"), this.lar.addEventListener("click", this.far);
          }
          disconnectedCallback() {
            this.lar.removeEventListener("click", this.far);
          }
          PMn(t3) {
            if (this.aar !== t3) {
              this.aar = t3;
              const n3 = this.parentElement.querySelector(this.sar);
              if (this.aar) this.lar.classList.remove(this.uar), n3 && (n3.style.display = this.car);
              else if (this.lar.classList.add(this.uar), n3) {
                const t4 = window.getComputedStyle(n3);
                this.car = t4.display, n3.style.display = "none";
              }
            }
          }
        }
        (0, i2.s0r)("sjs-section", r);
      }, "./dist/plugins/components/common/slider.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Slider: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.har = (t3) => {
              let n3 = t3.target;
              this.dar = n3, n3.style.cursor = "grabbing";
              let e3 = n3.querySelector(".gc-slider-tip-container");
              e3 && (e3.style.display = "block"), document.body.style.cursor = "grabbing", this.var.style.cursor = "grabbing", document.addEventListener("mousemove", this.gar), document.addEventListener("mouseup", this.mar);
            }, this.gar = (t3) => {
              let { start: n3, end: e3 } = this.par(), i3 = this.dar, r2 = this.bar(t3.clientX - this.QV()), o2 = false;
              if (i3 === this.war && r2 > e3 ? (this.war = this.yar, this.yar = this.dar, o2 = true) : i3 === this.yar && r2 < n3 && (this.yar = this.war, this.war = this.dar, o2 = true), i3 === this.war) {
                let t4 = this.Car ? this.y4 : n3;
                this.Sar && r2 > e3 && (r2 = e3), Array.isArray(t4) ? (t4[0] = r2, o2 && (t4[1] = n3)) : t4 = r2, this.Kbt(t4, true), this.Qwr && this.aer();
              } else if (i3 === this.yar) {
                let t4 = this.Car ? this.y4 : e3;
                this.Aar && r2 < n3 && (r2 = n3), Array.isArray(t4) ? (t4[1] = r2, o2 && (t4[0] = e3)) : t4 = r2, this.Kbt(t4, true), this.Qwr && this.aer();
              }
            }, this.mar = () => {
              document.removeEventListener("mouseup", this.mar), document.removeEventListener("mousemove", this.gar), document.body.style.cursor = "default", this.dar.style.cursor = "grab", this.var.style.cursor = "pointer";
              let t3 = this.dar.querySelector(".gc-slider-tip-container");
              t3 && (t3.style.display = "none"), this.Qwr || (this.Kbt(this.y4), this.aer());
            }, this.xar = (t3) => {
              let n3 = t3.target, e3 = parseFloat(n3.value), { start: i3, end: r2 } = this.par();
              if (isNaN(e3) || e3 > this.Oce || e3 < this.jce) return n3.value = (n3 === this.Tar ? i3 : r2).toFixed(this._ar), void n3.blur();
              if (n3 === this.Tar && i3 !== e3) {
                let t4 = this.Car ? this.y4 : e3;
                this.Sar && e3 > r2 && (e3 = r2), this.Car && (t4[0] = e3), this.Kbt(t4), this.aer();
              } else if (n3 === this.Iar && r2 !== e3) {
                let t4 = this.Car ? this.y4 : e3;
                this.Aar && e3 < i3 && (e3 = i3), this.Car && (t4[1] = e3), this.Kbt(t4), this.aer();
              }
              n3.blur();
            }, this.kar = (t3) => {
              let n3 = t3.target;
              if (n3 === this.war || n3 === this.yar) return;
              let e3 = t3.clientX, i3 = this.war, r2 = this.yar, o2 = (null == i3 ? void 0 : i3.getBoundingClientRect().x) || 0, a = (null == r2 ? void 0 : r2.getBoundingClientRect().x) || this.tY();
              if (Math.abs(a - e3) <= Math.abs(e3 - o2) && this.yar) {
                let n4 = this.bar(e3 - this.QV());
                this.Nar(this.yar, n4), this.har({ target: this.yar }), this.gar(t3);
              } else if (this.Tar) {
                let n4 = this.bar(e3 - this.QV());
                this.Nar(this.war, n4), this.har({ target: this.war }), this.gar(t3);
              }
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            this.jce = parseInt(null !== (t3 = this.getAttribute("min")) && void 0 !== t3 ? t3 : Number.MIN_SAFE_INTEGER + "", 10), this.Oce = parseInt(null !== (n3 = this.getAttribute("max")) && void 0 !== n3 ? n3 : Number.MAX_SAFE_INTEGER + "", 10);
            let r2 = null !== (e3 = this.getAttribute("value")) && void 0 !== e3 ? e3 : this.Oce + "";
            this.y4 = JSON.parse(r2), this.Car = Array.isArray(this.y4);
            let { start: o2, end: a } = this.par(this.y4);
            this.Aar = void 0 !== o2, this.Sar = void 0 !== a, this.jar = this.getAttribute("input-label"), this._ar = parseInt(this.getAttribute("fixed") || "0", 10), this.Qwr = "TRUE" === (this.getAttribute("immediately") || "FALSE").toUpperCase();
            const u = this.getAttribute("label"), s = this.Aar && this.Sar;
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    align-items: start;
                    height: ${s ? "60px" : "30px"};
                    user-select: none;
                }
                ${i2.CSSUtils.generateCss(".label", { width: i2.CSSVariables.labelWidth, height: "30px", lineHeight: "30px" })}
                .gc-slider-container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    ${i2.CSSUtils.editorWidth(!!u)}
                    flex-wrap: wrap;
                    ${s ? "padding-right: 20px" : ""};
                }
                .gc-slider-body-container {
                    ${i2.CSSUtils.rowFlex()}
                    position: relative;
                    width: ${s ? "100%" : "calc(100% - 80px)"};
                    height: ${i2.CSSVariables.controlHeight};
                    cursor: pointer;
                }
                ${i2.CSSUtils.generateCss(".gc-slider-rail, .gc-slider-track", { width: "100%", height: "2px", position: "absolute" })}
                .gc-slider-point {
                    position: absolute;
                    border: 2px solid ${i2.CSSVariables.accent};
                    border-radius: 50%;
                    cursor: grab;
                    height: 10px;
                    width: 10px;
                    margin-left: -5px;
                    background: ${i2.CSSVariables.accent};
                }
                .gc-slider-point:hover .gc-slider-tip-container {
                    display: block !important;
                }
                .gc-slider-input-container {
                    width: ${s ? "100%" : ""};
                    height: 30px;
                    ${i2.CSSUtils.rowFlex("space-between")}
                }
                .gc-slider-input-item-container {
                    display: flex;
                    ${i2.CSSUtils.rowFlex("space-between")}
                }
                .gc-slider-input {
                    ${i2.CSSUtils.noBorderNoOutline}
                    ${i2.CSSUtils.border}
                    padding: 0 5px;
                    text-align: center;
                    width: 50px;
                    height: 30px;
                }
                .gc-slider-input-tail {
                    ${this.jar ? "" : "margin-right: 20px"}
                    ${i2.CSSUtils.borderRadius}
                }
                ${i2.CSSUtils.generateCss(".gc-slider-input-span", { width: "20px", height: "30px", lineHeight: "30px", textAlign: "center", fontSize: "14px" })}
                ${i2.CSSUtils.generateCss(".gc-slider-tip-container", { height: "30px", position: "absolute", display: "none", top: "-37px", translate: "calc(-50% + 2px)", backgroundColor: "transparent" })}
                ${i2.CSSUtils.generateCss(".gc-slider-tip-arrow", { left: "50%", bottom: "2px", position: "absolute", marginLeft: "-3px", borderColor: "transparent", borderWidth: "4px 4px 0", borderTopColor: "#6c6c6c", borderStyle: "solid" })}
                ${i2.CSSUtils.generateCss(".gc-slider-tip-inner", { height: "24px", minWidth: "24px", lineHeight: "1", fontSize: "12px", color: "#fff", backgroundColor: "#6c6c6c", borderRadius: "6px", boxShadow: "0 0 4px #d9d9d9", padding: "6px 2px", textAlign: "center" })}
            </style>
            <div class="container">
                ${u ? `<div class="label" ${(0, i2.sHr)(u)}>${u}</div>` : ""}
                <div class="gc-slider-container" role="slider">
                    <div class="gc-slider-body-container">
                        <div class="gc-slider-rail" style="background-color: rgb(211, 211, 211);"></div>
                        <div class="gc-slider-track" style="background-color: ${i2.CSSVariables.accent};left: 0%; width:100%"></div>
                        ${this.Aar ? '<div class="gc-slider-point gc-slider-head-point"><div class="gc-slider-tip-container"><div class="gc-slider-tip-arrow"></div><div class="gc-slider-tip-inner"></div></div></div>' : ""}
                        ${this.Sar ? '<div class="gc-slider-point gc-slider-tail-point"><div class="gc-slider-tip-container"><div class="gc-slider-tip-arrow"></div><div class="gc-slider-tip-inner"></div></div></div>' : ""}
                    </div>
                    <div class="gc-slider-input-container">
                        ${this.Aar ? '<div class="gc-slider-input-item-container"><input type="text" class="gc-slider-input gc-slider-input-head"></input>' + (this.jar ? '<span class="gc-slider-input-span">' + this.jar + "</span>" : "") + "</div>" : ""}
                        ${this.Sar ? '<div class="gc-slider-input-item-container"><input type="text" class="gc-slider-input gc-slider-input-tail"></input>' + (this.jar ? '<span class="gc-slider-input-span">' + this.jar + "</span>" : "") + "</div>" : ""}
                    </div>
                </div>
            </div>
        `, this.shadowRoot.querySelector(".gc-slider-container").ariaValueMin = this.jce.toString(), this.shadowRoot.querySelector(".gc-slider-container").ariaValueMax = this.Oce.toString(), this.Tar = this.shadowRoot.querySelector(".gc-slider-input-head"), this.Iar = this.shadowRoot.querySelector(".gc-slider-input-tail"), this.war = this.shadowRoot.querySelector(".gc-slider-head-point"), this.yar = this.shadowRoot.querySelector(".gc-slider-tail-point"), this.var = this.shadowRoot.querySelector(".gc-slider-body-container"), this.Dar = this.shadowRoot.querySelector(".gc-slider-track"), this.Oar = this.shadowRoot.querySelector(".gc-slider-rail"), this.Ear = this.shadowRoot.querySelector(".gc-slider-input-container"), this.var.addEventListener("mousedown", this.kar), this.Aar && this.war.addEventListener("mousedown", this.har), this.Sar && this.yar.addEventListener("mousedown", this.har), this.Ear.addEventListener("change", this.xar), this.Kbt(this.y4);
          }
          disconnectedCallback() {
            this.var.removeEventListener("mousedown", this.kar), this.Aar && this.war.removeEventListener("mousedown", this.har), this.Sar && this.yar.removeEventListener("mousedown", this.har), this.Ear.removeEventListener("change", this.xar);
          }
          Kbt(t3, n3) {
            let { start: e3, end: i3 } = this.par(t3);
            this.Aar && (e3 < this.jce || e3 > this.Oce) && (e3 = this.jce), this.Sar && (i3 > this.Oce || i3 < this.jce) && (i3 = this.Oce), this.y4 = t3, this.Tar && (n3 || (this.Tar.value = e3.toFixed(this._ar)), this.Nar(this.war, e3)), this.Iar && (n3 || (this.Iar.value = i3.toFixed(this._ar)), this.Nar(this.yar, i3)), this.Rar();
          }
          QV() {
            return this.Oar.getBoundingClientRect().x;
          }
          bar(t3) {
            const n3 = this.jce, e3 = this.Oce;
            let i3;
            return +(Math.min(Math.abs(Math.max(t3, 0) / this.tY()), 1) * (e3 - n3) + n3).toFixed(this._ar);
          }
          tY() {
            return this.Oar.clientWidth;
          }
          Nar(t3, n3) {
            let e3 = this.jce, i3, r2 = ((n3 - e3) / (this.Oce - e3) * 100).toFixed(this._ar);
            t3.style.left = r2 + "%", this.Bar(t3, n3), this.Rar();
          }
          Bar(t3, n3) {
            let e3;
            t3.querySelector(".gc-slider-tip-inner").innerHTML = n3.toFixed(this._ar) + "";
          }
          Rar() {
            var t3, n3;
            let e3 = this.Dar, i3 = parseInt((null === (t3 = this.war) || void 0 === t3 ? void 0 : t3.style.left) || "0%", 10), r2 = parseInt((null === (n3 = this.yar) || void 0 === n3 ? void 0 : n3.style.left) || "0%", 10);
            e3.style.left = i3 + "%", e3.style.width = r2 - i3 + "%";
          }
          par(t3) {
            0 === arguments.length && (t3 = this.y4);
            let n3, e3, i3 = Array.isArray(t3);
            return i3 && 2 === t3.length ? (n3 = t3[0], e3 = t3[1]) : e3 = i3 ? t3[0] : t3, { start: n3, end: e3 };
          }
        }
        (0, i2.s0r)("sjs-slider", o);
      }, "./dist/plugins/components/common/tabs.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Tabs: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.far = (t3) => {
              const n3 = t3.target.closest(".tab-item");
              if (n3) {
                const t4 = n3.getAttribute("value");
                t4 !== this.y4 && (this.Kbt(t4), this.aer());
              }
            };
          }
          connectedCallback() {
            this.y4 = this.getAttribute("value");
            const t3 = this.getAttribute("label"), n3 = this.getAttribute("width");
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                    margin-bottom: 10px;
                }
                ${i2.CSSUtils.generateCss(".label", { width: i2.CSSVariables.labelWidth })}
                .tabs-container {
                    ${i2.CSSUtils.rowFlex("left")}
                    height:30px;
                    ${n3 ? `width: ${n3};` : ""}
                }
                .tab-item {
                    display: flex;
                    justify-content: center;
                    flex: 1;
                    text-align: center;
                    user-select: none;
                    padding: 10px 5px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    position: relative;
                    cursor: pointer;
                    margin: 0 5px;
                    transition: background-color 0.3s ease;
                }
                .tab-item::after {
                    content: '';
                    position: absolute;
                    bottom: 0px;
                    left: 50%;
                    width: 0;
                    height: 1px;
                    background-color: ${i2.CSSVariables.accent};
                    transition: width 0.3s ease, left 0.3s ease;
                  }
                  .tab-item:hover::after {
                    width: 100%;
                    left: 0;
                  }
                  .tab-item.selected::after {
                    content: '';
                    position: absolute;
                    bottom: 0px;
                    left: 0;
                    width: 100%;
                    height: 2px;
                    background-color: ${i2.CSSVariables.accent};
                    transition: width 0.3s ease, left 0.3s ease;
                  }
                  .tab-item.selected {
                    color: ${i2.CSSVariables.accent};
                  }
                  .tab-item.selected .tab-icon svg {
                    fill: ${i2.CSSVariables.accent};
                  }
                  .tab-item.selected .tab-icon svg path {
                    fill: ${i2.CSSVariables.accent};
                  }
                  .tab-icon {
                    background-repeat: no-repeat;
                    background-size: 16px;
                    background-position: center;
                    width: 16px;
                    height: 16px;
                    margin-right: 5px;
                  }
            </style>
            <div class="container">
                ${t3 ? `<div class="label" ${(0, i2.sHr)(t3)}>${t3}</div>` : ""}
                <div class="tabs-container"></div>
            </div>
        `, this.Lar = this.shadowRoot.querySelector(".tabs-container"), this.Lar.addEventListener("click", this.far), this.Kbt(this.y4);
          }
          disconnectedCallback() {
            this.Lar.removeEventListener("click", this.far);
          }
          Kbt(t3) {
            const n3 = this.Lar.querySelector(".tab-item.selected");
            n3 && (n3.classList.remove("selected"), n3.ariaSelected = "false");
            const e3 = this.Lar.querySelector(`[value="${t3 || ""}"]`);
            e3 && (e3.classList.add("selected"), e3.ariaSelected = "true"), this.y4 = t3;
          }
          Par(t3) {
            this.Lar.innerHTML = t3.map(((t4) => `<div class="tab-item" role="tab" ${(0, i2.sHr)(t4.display || t4.value)} value="${t4.value}">${t4.icon ? `<div class="tab-icon">${t4.icon}</div>` : ""}${t4.display || t4.value}</div>`)).join(""), this.Kbt(t3[0].value);
          }
        }
        (0, i2.s0r)("sjs-tabs", o);
      }, "./dist/plugins/components/common/text-editor.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { TextEditor: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.ker = (t3) => {
              this.Kbt(t3.target.value), this.aer();
            };
          }
          connectedCallback() {
            const t3 = this.getAttribute("label"), n3 = this.getAttribute("placeholder"), e3 = this.getAttribute("maxlength") || this.getAttribute("max-length");
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".label", { width: `var(--sjs-label-width, ${i2.CSSVariables.labelWidth})` })}
                .input-container {
                    ${i2.CSSUtils.border}
                    ${i2.CSSUtils.rowFlex("space-between")}
                    ${i2.CSSUtils.editorWidth(!!t3)}
                    ${i2.CSSUtils.borderRadius}
                    overflow: hidden;
                }
                input {
                    ${i2.CSSUtils.noBorderNoOutline}
                    padding: 0 5px;
                    width: 100%;
                    height: 28px;
                }
            </style>
            <div class="container">
                ${t3 ? `<div class="label" ${(0, i2.sHr)(t3)}>${t3}</div>` : ""}
                <div class="input-container">
                    <input type="text" ${(0, i2.kSt)("placeholder", n3)} ${(0, i2.kSt)("maxlength", e3)}></input>
                </div>
            </div>
        `, this.DZe = this.shadowRoot.querySelector("input"), this.DZe.addEventListener("change", this.ker), this.Kbt(this.getAttribute("value"));
          }
          disconnectedCallback() {
            this.DZe.removeEventListener("change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.DZe.value = t3;
          }
          Hsr() {
            return this.DZe;
          }
          ZS() {
            var t3;
            null === (t3 = this.DZe) || void 0 === t3 || t3.focus();
          }
        }
        (0, i2.s0r)("sjs-text-editor", o);
      }, "./dist/plugins/components/common/toggle.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Toggle: function() {
          return a;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        const o = "true";
        class a extends r.ComponentBase {
          constructor() {
            super(...arguments), this.ker = (t3) => {
              const n3 = t3.target.checked, e3 = void 0;
              this.y4 !== n3 && (this.Kbt(n3), this.aer());
            };
          }
          connectedCallback() {
            var t3, n3, e3;
            const r2 = this.getAttribute("label"), a2 = (null === (t3 = this.getAttribute("value")) || void 0 === t3 ? void 0 : t3.toLocaleLowerCase()) === o;
            this.Gar = null !== (n3 = this.getAttribute("true-text")) && void 0 !== n3 ? n3 : "", this.Uar = null !== (e3 = this.getAttribute("false-text")) && void 0 !== e3 ? e3 : "", this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base()}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    height: ${i2.CSSVariables.controlHeight};
                }
                ${i2.CSSUtils.generateCss(".label", { width: this.getAttribute("label-width") || i2.CSSVariables.labelWidth })}
                .input-container {
                    ${i2.CSSUtils.noBorderNoOutline}
                    ${i2.CSSUtils.rowFlex()}
                    ${i2.CSSUtils.editorWidth(!!r2)}
                    flex-direction: row-reverse;
                }
                ${i2.CSSUtils.generateCss(".toggle", { position: "relative", display: "inline-block", width: "40px", height: "20px" })}
                ${i2.CSSUtils.generateCss(".toggle input", { opacity: "0", width: "0", height: "0" })}
                ${i2.CSSUtils.generateCss(".slider", { position: "absolute", cursor: "pointer", top: "0", left: "0", right: "0", bottom: "0", backgroundColor: i2.CSSVariables.grayBg, transition: ".2s" })}
                ${i2.CSSUtils.generateCss(".slider:before", { position: "absolute", content: "''", height: "10px", width: "10px", left: "5px", bottom: "5px", backgroundColor: i2.CSSVariables.color, transition: ".2s" })}
                ${i2.CSSUtils.generateCss("input:checked + .slider", { backgroundColor: i2.CSSVariables.accent })}
                input:focus + .slider{box-shadow: 0 0 1px ${i2.CSSVariables.accent};}
                ${i2.CSSUtils.generateCss("input:checked + .slider:before", { transform: "translateX(20px)", backgroundColor: "white" })}
                .slider.round{border-radius: 20px;}
                .slider.round:before{border-radius: 50%;}
                .value-text{text-align: right;margin-right: 15px;}
            </style>
            <div class="container">
                ${r2 ? `<div class="label" ${(0, i2.sHr)(r2)}>${r2}</div>` : ""}
                <div class="input-container" role="switch">
                    <label class="toggle">
                        <input type="checkbox" >
                        <span class="slider round"></span>
                    </label>
                    <label class="value-text">
                    </label>
                </div>
            </div>
        `, this.jer = this.shadowRoot.querySelector("input"), this.jer.addEventListener("change", this.ker), this._rn = this.shadowRoot.querySelector(".value-text"), this.Kbt(a2);
          }
          disconnectedCallback() {
            this.jer.removeEventListener("change", this.ker);
          }
          Kbt(t3) {
            this.y4 = t3, this.jer.checked = t3, this._rn.textContent = t3 ? this.Gar : this.Uar, this.shadowRoot.querySelector(".input-container").ariaChecked = t3 ? "true" : "false";
          }
        }
        (0, i2.s0r)("sjs-toggle", a);
      }, "./dist/plugins/components/common/tree.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        e2.r(n2), e2.d(n2, { Tree: function() {
          return o;
        } }), i2 = e2("./dist/plugins/components/utils/index.js"), r = e2("./dist/plugins/components/common/base/index.js");
        class o extends r.ComponentBase {
          constructor() {
            super(...arguments), this.agr = {}, this.ugr = (t3, n3) => {
              let e3 = n3.find(((n4) => n4.value === t3));
              if (e3) return e3;
              for (let i3 = 0; i3 < n3.length; i3++) if (n3[i3].children && (e3 = this.ugr(t3, n3[i3].children), e3)) return e3;
            }, this.sgr = (t3) => {
              var n3;
              const e3 = t3.target, i3 = e3.closest(".gc-tree-node-self");
              if (e3.classList.contains("gc-tree-collapse-button") || i3 && (null === (n3 = this.agr[i3.dataset.id].children) || void 0 === n3 ? void 0 : n3.length)) {
                const t4 = e3.closest(".gc-tree-container");
                if (t4) {
                  let n4;
                  if (t4.classList.contains("collapsed") ? (t4.classList.remove("collapsed"), n4 = false) : (t4.classList.add("collapsed"), n4 = true), i3) {
                    let t5 = this.agr[i3.dataset.id];
                    t5 && (t5.collapsed = n4);
                  }
                }
              } else if (this.cgr && i3) {
                const t4 = this.Zar.querySelector(".gc-tree-node-self.selected");
                t4 && t4 !== i3 && t4.classList.remove("selected"), i3.classList.add("selected"), this.y4 = this.agr[i3.dataset.id].value, this.aer();
              }
            }, this.Kut = (t3) => {
              let n3 = t3.detail, e3 = [];
              this.Var(this._items, n3.toUpperCase(), e3), this.zar(e3, false);
            }, this.Yar = (t3) => {
              let n3 = t3.target, e3 = [];
              for (; n3 && n3 !== this.Zar; ) {
                if (n3.classList.contains("gc-tree-container")) {
                  let t4 = n3.querySelector(".gc-tree-node-self");
                  if (t4) {
                    let n4 = t4.querySelector(".gc-tree-node-content-text");
                    n4 && e3.unshift(n4.innerHTML);
                  }
                }
                n3 = n3.parentElement;
              }
              this.Jwr = e3, t3.dataTransfer.setData("text", JSON.stringify(e3));
            };
          }
          connectedCallback() {
            var t3;
            this.y4 = this.getAttribute("value") || "", this._items = JSON.parse(this.getAttribute("items") || "[]"), this.War = "TRUE" === (this.getAttribute("allow-search") || "TRUE").toUpperCase(), this.Jar = "TRUE" === (this.getAttribute("allow-drag") || "FALSE").toUpperCase(), this.cgr = "TRUE" === (null === (t3 = this.getAttribute("allow-select")) || void 0 === t3 ? void 0 : t3.toUpperCase());
            const n3 = this.getAttribute("search-placeholder") || "";
            this.shadowRoot.innerHTML = `
            <style>
                ${i2.CSSUtils.base(true)}
                .container {
                    ${i2.CSSUtils.rowFlex("space-between")}
                    flex-direction: column;
                    user-select: none;
                    height: 100%;
                }
                .collapsed {
                    .gc-tree-node-child-container {
                        display: none;
                    }
                    .gc-tree-collapse-button {
                        transform: rotate(0deg);
                    }
                }
                ${i2.CSSUtils.generateCss(".gc-tree-container", { width: "100%" })}
                ${i2.CSSUtils.generateCss(".gc-tree-container-header", { width: "100%", height: i2.CSSVariables.controlHeight, background: i2.CSSVariables.background })}
                ${i2.CSSUtils.generateCss(".gc-tree-container-content", { width: "100%", height: `calc(100% - ${i2.CSSVariables.controlHeight})`, marginTop: "5px", overflow: "auto" })}
                .gc-tree-node-self {
                    ${i2.CSSUtils.rowFlex("flex-start")}
                    height: 25px;
                    width: 100%;
                    ${this.Jar ? "cursor: move" : ""}
                }
                .gc-tree-root-default-cursor {
                    cursor: default !important;
                }
                .gc-tree-node-self:hover,
                .gc-tree-node-self.selected {
                    background-color: ${i2.CSSVariables.lightGrayBg} !important;
                }
                .gc-tree-collapse-button {
                    transform: rotate(90deg);
                    width: 16px;
                    height: 16px;
                    background: transparent;
                }
                .gc-tree-collapse-button-icon {
                    background: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.collapseButton)});;
                    background-position: center;
                    background-repeat: no-repeat;
                    background-size: 8px;
                    cursor: pointer;
                }
                .gc-tree-node-content-container {
                    ${i2.CSSUtils.rowFlex("flex-start")}
                    padding-left: 5px;
                    background-color: transparent;
                    width: 100%;
                }
                .gc-tree-node-content-icon {
                    background-color: transparent;
                    background-position: center;
                    background-repeat: no-repeat;
                    background-size: 16px;
                    width: 16px;
                    height: 16px;
                }
                .gc-tree-node-content-icon.table {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.table)})}
                .gc-tree-node-content-icon.string {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.string)})}
                .gc-tree-node-content-icon.number {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.number)})}
                .gc-tree-node-content-icon.date {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.date)})}
                .gc-tree-node-content-icon.boolean {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.boolean)})}
                .gc-tree-node-content-icon.array {background-image: url(data:image/svg+xml;utf8,${encodeURIComponent(i2.Icons.array)})}
                .gc-tree-node-content-text {
                    background-color: transparent !important;
                    margin-left: 5px;
                    width: 110px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

            </style>
            <div class="container">
                ${this.War ? '<div class="gc-tree-container-header"><sjs-search-input place-holder="' + n3 + '"></sjs-search-input></div>' : ""}
                <div class="gc-tree-container-content">
                    <div class="gc-trees-container">
                    </div>
                </div>
            </div>
        `, this.Nor = this.shadowRoot.querySelector("sjs-search-input"), this.Zar = this.shadowRoot.querySelector(".gc-trees-container"), this.Zar.addEventListener("click", this.sgr), this.Nor && this.Nor.addEventListener("sjs-value-change", this.Kut), this.Zar.addEventListener("dragstart", this.Yar), this.Cor(this._items);
          }
          disconnectedCallback() {
            this.Zar.removeEventListener("click", this.sgr), this.Nor && this.Nor.removeEventListener("sjs-value-change", this.Kut);
          }
          Kbt(t3) {
            const n3 = this.ugr(t3, this._items), e3 = this.Zar.querySelector(`[data-id="${null == n3 ? void 0 : n3.id}"]`), i3 = this.Zar.querySelector(".gc-tree-node-self.selected");
            i3 && i3 !== e3 && i3.classList.remove("selected"), null == e3 || e3.classList.add("selected"), super.Kbt(t3);
          }
          Cor(t3) {
            this.agr = {}, this._items = JSON.parse(JSON.stringify(t3)), this.zar(this._items);
          }
          EE() {
            return this._items;
          }
          Kar(t3) {
            return 0 !== arguments.length && (this.Jwr = t3), this.Jwr;
          }
          zar(t3, n3) {
            if (!this.Zar) return;
            t3 || (t3 = this._items), this.Zar.innerHTML = "";
            const e3 = document.createDocumentFragment();
            for (let i3 of t3) {
              n3 = null != n3 ? n3 : i3.collapsed;
              let t4 = document.createElement("div");
              t4.className = "gc-tree-container gc-tree-root-node" + (n3 ? " collapsed" : ""), t4.innerHTML = this.Xar(i3, 0, n3, true), e3.appendChild(t4);
            }
            this.Zar.appendChild(e3);
          }
          Xar(t3, n3, e3, r2) {
            var o2, a;
            let u = "";
            if (null === (o2 = t3.children) || void 0 === o2 ? void 0 : o2.length) for (let i3 of t3.children) {
              let t4;
              u += `<div class="gc-tree-container${(null != e3 ? e3 : i3.collapsed) ? " collapsed" : ""}">
                        ${this.Xar(i3, n3 + 1)}
                    </div>`;
            }
            const s = t3.value === this.y4 ? "selected" : "", c = t3;
            c.id || (c.id = (1e10 * Math.random()).toString()), this.agr[c.id] = c;
            const f = void 0;
            let l = `
            <div ${`data-id=${c.id}`} class="${s} gc-tree-node-self${r2 ? " gc-tree-root-default-cursor" : ""}" draggable="${this.Jar && !r2}" style="${n3 ? `padding-left: ${10 * n3}px;` : ""}">
                <div class="gc-tree-collapse-button ${u ? "gc-tree-collapse-button-icon" : ""}"></div>
                <div class="gc-tree-node-content-container" title="${t3.title}">
                    <div class="gc-tree-node-content-icon ${null !== (a = t3.iconType) && void 0 !== a ? a : "string"}"></div>
                    <div class="gc-tree-node-content-text" ${(0, i2.sHr)(t3.name)}>${t3.name}</div>
                </div>
            </div>
        `;
            return u && (l += `
                <div class="gc-tree-node-child-container">
                    ${u}
                </div>
            `), l;
          }
          Var(t3, n3, e3) {
            t3 && ("" !== n3 ? t3.forEach(((t4) => {
              if (t4.name.toUpperCase().indexOf(n3) > -1) e3.push(t4);
              else {
                let i3 = Object.assign(Object.assign({}, t4), { children: [] });
                this.Var(t4.children, n3, i3.children), i3.children.length && e3.push(i3);
              }
            })) : t3.forEach(((t4) => e3.push(t4))));
          }
        }
        (0, i2.s0r)("sjs-tree", o);
      }, "./dist/plugins/components/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        e2.r(n2), e2.d(n2, { Button: function() {
          return i2.Button;
        }, CSSUtils: function() {
          return r.CSSUtils;
        }, CSSVariables: function() {
          return r.CSSVariables;
        }, Calendar: function() {
          return i2.Calendar;
        }, Checkbox: function() {
          return i2.Checkbox;
        }, ColorPicker: function() {
          return i2.ColorPicker;
        }, ColorPickerPanel: function() {
          return i2.ColorPickerPanel;
        }, ComponentBase: function() {
          return i2.ComponentBase;
        }, DropdownBase: function() {
          return i2.DropdownBase;
        }, FontFamilySelector: function() {
          return i2.FontFamilySelector;
        }, FontSizeSelector: function() {
          return i2.FontSizeSelector;
        }, FontStyleSelector: function() {
          return i2.FontStyleSelector;
        }, FontWeightSelector: function() {
          return i2.FontWeightSelector;
        }, Icons: function() {
          return r.Icons;
        }, List: function() {
          return i2.List;
        }, MultiValueEditor: function() {
          return i2.MultiValueEditor;
        }, NumberEditor: function() {
          return i2.NumberEditor;
        }, SR: function() {
          return o.SR;
        }, SearchInput: function() {
          return i2.SearchInput;
        }, Section: function() {
          return i2.Section;
        }, Select: function() {
          return i2.Select;
        }, Slider: function() {
          return i2.Slider;
        }, Tabs: function() {
          return i2.Tabs;
        }, TextEditor: function() {
          return i2.TextEditor;
        }, TimePicker: function() {
          return i2.TimePicker;
        }, Toggle: function() {
          return i2.Toggle;
        }, Tree: function() {
          return i2.Tree;
        }, sHr: function() {
          return r.sHr;
        }, kSt: function() {
          return r.kSt;
        }, s0r: function() {
          return r.s0r;
        }, ht: function() {
          return r.ht;
        }, getSR: function() {
          return r.getSR;
        }, showPopover: function() {
          return r.showPopover;
        }, tinycolor: function() {
          return i2.tinycolor;
        } }), i2 = e2("./dist/plugins/components/common/index.js"), r = e2("./dist/plugins/components/utils/index.js"), o = e2("./dist/plugins/components/resource/component.ns.js"), e2("./dist/plugins/components/common/index.js");
      }, "./dist/plugins/components/resource/component.ns.js": function(t2, n2, e2) {
        "use strict";
        var i2;
        e2.r(n2), e2.d(n2, { SR: function() {
          return r;
        } });
        const r = { en: e2("./dist/plugins/components/resource/component.res.en.js") };
      }, "./dist/plugins/components/resource/component.res.en.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { Bold: function() {
          return ht;
        }, Calendar_BuiltIn_Last7Days: function() {
          return nt;
        }, Calendar_BuiltIn_LastMonth: function() {
          return it;
        }, Calendar_BuiltIn_ThisMonth: function() {
          return et;
        }, Calendar_BuiltIn_Today: function() {
          return $;
        }, Calendar_BuiltIn_Yesterday: function() {
          return tt;
        }, Calendar_EraName_1: function() {
          return W;
        }, Calendar_EraName_2: function() {
          return Q;
        }, Calendar_EraName_3: function() {
          return K;
        }, Calendar_EraName_4: function() {
          return J;
        }, Calendar_FirstYear: function() {
          return X;
        }, Calendar_LastMonth: function() {
          return rt;
        }, Calendar_LastTenYear: function() {
          return st;
        }, Calendar_LastYear: function() {
          return at;
        }, Calendar_Months_1: function() {
          return O;
        }, Calendar_Months_10: function() {
          return H;
        }, Calendar_Months_11: function() {
          return V;
        }, Calendar_Months_12: function() {
          return z;
        }, Calendar_Months_2: function() {
          return E;
        }, Calendar_Months_3: function() {
          return R;
        }, Calendar_Months_4: function() {
          return L;
        }, Calendar_Months_5: function() {
          return F;
        }, Calendar_Months_6: function() {
          return B;
        }, Calendar_Months_7: function() {
          return P;
        }, Calendar_Months_8: function() {
          return G;
        }, Calendar_Months_9: function() {
          return U;
        }, Calendar_NextMonth: function() {
          return ot;
        }, Calendar_NextTenYear: function() {
          return ct;
        }, Calendar_NextYear: function() {
          return ut;
        }, Calendar_ShortMonths_1: function() {
          return M;
        }, Calendar_ShortMonths_10: function() {
          return j;
        }, Calendar_ShortMonths_11: function() {
          return D;
        }, Calendar_ShortMonths_12: function() {
          return _;
        }, Calendar_ShortMonths_2: function() {
          return C;
        }, Calendar_ShortMonths_3: function() {
          return S;
        }, Calendar_ShortMonths_4: function() {
          return T;
        }, Calendar_ShortMonths_5: function() {
          return x;
        }, Calendar_ShortMonths_6: function() {
          return A;
        }, Calendar_ShortMonths_7: function() {
          return I;
        }, Calendar_ShortMonths_8: function() {
          return k;
        }, Calendar_ShortMonths_9: function() {
          return N;
        }, Calendar_ShortWeeks_1: function() {
          return u;
        }, Calendar_ShortWeeks_2: function() {
          return s;
        }, Calendar_ShortWeeks_3: function() {
          return c;
        }, Calendar_ShortWeeks_4: function() {
          return f;
        }, Calendar_ShortWeeks_5: function() {
          return l;
        }, Calendar_ShortWeeks_6: function() {
          return h;
        }, Calendar_ShortWeeks_7: function() {
          return d;
        }, Calendar_Time_AM: function() {
          return Y;
        }, Calendar_Time_PM: function() {
          return Z;
        }, Calendar_Today: function() {
          return q;
        }, Calendar_Weeks_1: function() {
          return v;
        }, Calendar_Weeks_2: function() {
          return p;
        }, Calendar_Weeks_3: function() {
          return g;
        }, Calendar_Weeks_4: function() {
          return m;
        }, Calendar_Weeks_5: function() {
          return b;
        }, Calendar_Weeks_6: function() {
          return y;
        }, Calendar_Weeks_7: function() {
          return w;
        }, Cancel: function() {
          return o;
        }, Empty: function() {
          return i2;
        }, FontFamily: function() {
          return vt;
        }, Italic: function() {
          return lt;
        }, Lighter: function() {
          return dt;
        }, NoColor: function() {
          return a;
        }, Normal: function() {
          return ft;
        }, OK: function() {
          return r;
        } });
        const i2 = "empty", r = "OK", o = "Cancel", a = "No Color", u = "MON", s = "TUE", c = "WED", f = "THU", l = "FRI", h = "SAT", d = "SUN", v = "Monday", p = "Tuesday", g = "Wednesday", m = "Thursday", b = "Friday", y = "Saturday", w = "Sunday", M = "JAN", C = "FEB", S = "MAR", T = "APR", x = "MAY", A = "JUN", I = "JUL", k = "AUG", N = "SEP", j = "OCT", D = "NOV", _ = "DEC", O = "JANUARY", E = "FEBRUARY", R = "MARCH", L = "APRIL", F = "MAY", B = "JUNE", P = "JULY", G = "AUGUST", U = "SEPTEMBER", H = "OCTOBER", V = "NOVEMBER", z = "DECEMBER", Y = "AM", Z = "PM", W = "M", Q = "T", K = "S", J = "H", X = "1", q = "Today", $ = "Today", tt = "Yesterday", nt = "Last 7 Days", et = "This Month", it = "Last Month", rt = "Go to previous month", ot = "Go to next month", at = "Go to previous year", ut = "Go to next year", st = "Go to previous ten years", ct = "Go to next ten years", ft = "Normal", lt = "Italic", ht = "Bold", dt = "Lighter", vt = { Arial: "Arial", "Arial Black": "Arial Black", Calibri: "Calibri", Cambria: "Cambria", Candara: "Candara", Century: "Century", "Courier New": "Courier New", "Comic Sans MS": "Comic Sans MS", Garamond: "Garamond", Georgia: "Georgia", "Malgun Gothic": "Malgun Gothic", Mangal: "Mangal", Tahoma: "Tahoma", Times: "Times", "Times New Roman": "Times New Roman", "Trebuchet MS": "Trebuchet MS", Verdana: "Verdana", Meiryo: "Meiryo", "MS Gothic": "MS Gothic", "MS Mincho": "MS Mincho", "MS PGothic": "MS PGothic", "MS PMincho": "MS PMincho" };
      }, "./dist/plugins/components/utils/common.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        e2.r(n2), e2.d(n2, { sHr: function() {
          return h;
        }, kSt: function() {
          return l;
        }, s0r: function() {
          return d;
        }, ht: function() {
          return f;
        }, getSR: function() {
          return c;
        } }), i2 = e2("Core"), r = e2.n(i2), o = e2("Common"), a = e2.n(o), u = e2("./dist/plugins/components/resource/component.ns.js");
        const s = new o.Common.ResourceManager(u.SR, "Component"), c = s.getResource.bind(s);
        function f(t3) {
          return null == t3;
        }
        function l(t3, n3) {
          return f(n3) ? "" : ` ${t3}="${n3}" `;
        }
        function h(t3) {
          return ` aria-label="${t3}" `;
        }
        function d(t3, n3) {
          "undefined" != typeof customElements && customElements && "function" == typeof customElements.get && "function" == typeof customElements.define && !customElements.get(t3) && customElements.define(t3, n3);
        }
        i2.Workbook.ch("Component", { onCultureChanged: function() {
          c();
        } });
      }, "./dist/plugins/components/utils/css.js": function(t2, n2, e2) {
        "use strict";
        e2.r(n2), e2.d(n2, { CSSUtils: function() {
          return r;
        }, CSSVariables: function() {
          return i2;
        }, Icons: function() {
          return a;
        } });
        const i2 = { fontFamily: 'var(--sjs-theme-font-family, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text")', fontSize: "var(--sjs-theme-font-size, 12px)", accent: "var(--sjs-theme-accent, #26A69A)", accentColor: "var(--sjs-theme-accent-color, white)", background: "var(--sjs-theme-background, white)", color: "var(--sjs-theme-color, #333)", lightGrayBg: "var(--sjs-theme-light-gray-bg, rgba(51,51,51,0.05))", grayBg: "var(--sjs-theme-gray-bg, rgba(51,51,51,.1))", borderColor: "var(--sjs-theme-border-color, #DAE2ED)", errorColor: "var(--sjs-theme-error-color, #BE1F1F)", borderRadius: "var(--sjs-theme-border-radius, 0)", marginBottom: "var(--sjs-components-margin-bottom, 5px)", controlHeight: "30px", labelWidth: "140px" }, r = { noBorderNoOutline: "outline:none;border:none;", buttonBase: "outline:none;padding:0;border:none;cursor:pointer;", border: `border:1px solid ${i2.borderColor};`, borderRadius: `border-radius:${i2.borderRadius};`, invalidBorder: `border:1px solid ${i2.errorColor};`, boxShadow: "box-shadow:rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;", textEllipsis: "text-overflow: ellipsis;overflow: hidden;white-space: nowrap;", base: (t3 = false, n3 = false) => o(t3, n3), hoverBackground: (t3) => `${t3}:hover{background:${i2.grayBg};}`, rowFlex: (t3) => `display:flex;${t3 ? `justify-content:${t3};` : ""}align-items:center;`, columnFlex: (t3) => `display:flex;${t3 ? `justify-content:${t3};` : ""}align-items:center;flex-direction:column;`, generateCss: (t3, n3) => `${t3}{${r.objToCss(n3)}}`, objToCss: (t3) => Object.keys(t3).map(((n3) => `${n3.replace(/([A-Z])/g, "-$1").toLowerCase()}:${t3[n3]};`)).join(""), editorWidth: (t3, n3 = false) => `${n3 ? "" : "width:"}${t3 ? `calc(100% - var(--sjs-label-width, ${i2.labelWidth}))` : "100%"}${n3 ? "" : ";"}` };
        function o(t3, n3) {
          return `.container { font-family:${i2.fontFamily}; margin-bottom:${i2.marginBottom}; user-select: none; }* { box-sizing:border-box; ${t3 ? "" : `background-color:${i2.background};`} color:${i2.color}; font-size:${i2.fontSize}; }input { font-family:${i2.fontFamily}; }.label,label { user-select: none; cursor:default; }.container svg { background:transparent; fill:${i2.color}; height:16px; width:16px; }` + (n3 ? "" : ` .container svg * { fill:${i2.color}; }`);
        }
        const a = { minus: '<svg height="16" width="16" viewBox="0 -960 960 960"><path d="M232-444v-72h496v72H232Z"/></svg>', plus: '<svg height="16" width="16" viewBox="0 -960 960 960"><path d="M444-444H240v-72h204v-204h72v204h204v72H516v204h-72v-204Z"/></svg>', dropdown: '<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M480-333 240-573l51-51 189 189 189-189 51 51-240 240Z"/></svg>', checkbox: '<svg t="1712135700213" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2295" width="16" height="16"><path d="M863.576287 208.933543 426.318572 673.529907 128.084167 464.780559 64.132646 496.746598 447.865307 848.494801 959.52557 208.933543Z" fill="#ffffff" p-id="2296"></path></svg>', indeterminateCheckbox: '<svg t="1712136898670" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8402" width="16" height="16"><path d="M962 962H62V62h900v900zM162 862h700V162H162v700z" p-id="8403" fill="#ffffff"></path></svg>', expand: '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 13.09l1.41 1.41-4.5 4.5H10v2H3v-7h2v3.59l4.5-4.5m1.41-3.59L9.5 10.91 5 6.41V10H3V3h7v2H6.41l4.5 4.5m3.59 3.59l4.5 4.5V14h2v7h-7v-2h3.59l-4.5-4.5 1.41-1.41M13.09 9.5l4.5-4.5H14V3h7v7h-2V6.41l-4.5 4.5-1.41-1.41z"></path></svg>', shrink: '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5 3.09l1.41 1.41-4.5 4.5H20v2h-7V4h2v3.59l4.5-4.5m1.41 16.41l-1.41 1.41-4.5-4.5V20h-2v-7h7v2h-3.59l4.5 4.5M4.5 3.09L9 7.59V4h2v7H4V9h3.59l-4.5-4.5L4.5 3.09M3.09 19.5l4.5-4.5H4v-2h7v7H9v-3.59l-4.5 4.5-1.41-1.41z"></path></svg>', arrow: '<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="m330-444 201 201-51 51-288-288 288-288 51 51-201 201h438v72H330Z"/></svg>', search: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16" version="1.1"><!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch --><title>find2</title><desc>Created with Sketch.</desc><g id="find2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(1.000000, 1.000000)" fill="#666" fill-rule="nonzero" id="形状"><path d="M13.8218438,13.1143911 C14.040984,13.3335313 14.0599962,13.6692462 13.8648713,13.8648713 C13.6692462,14.0604965 13.3335313,14.0414843 13.1143911,13.8223441 L9.87832056,10.5862735 C8.8326515,11.4713398 7.48178716,12.007683 6.00384151,12.007683 C2.68822004,12.007683 -4.79616347e-14,9.31946298 -4.79616347e-14,6.00384151 C-4.79616347e-14,2.68822004 2.68822004,0 6.00384151,0 C9.31946298,0 12.007683,2.68822004 12.007683,6.00384151 C12.007683,7.48178716 11.4713398,8.8326515 10.5857732,9.87832056 L13.8218438,13.1143911 Z M6.00384151,11.0070428 C8.76710956,11.0070428 11.0070428,8.76710956 11.0070428,6.00384151 C11.0070428,3.24057345 8.76710956,1.00064025 6.00384151,1.00064025 C3.24057345,1.00064025 1.00064025,3.24057345 1.00064025,6.00384151 C1.00064025,8.76710956 3.24057345,11.0070428 6.00384151,11.0070428 Z"/></g></g></svg>', collapseButton: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><rect width="32" height="32" fill="transparent"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.58579 0.585786C8.36683 -0.195262 9.63317 -0.195262 10.4142 0.585786L24.4142 14.5858C25.1953 15.3668 25.1953 16.6332 24.4142 17.4142L10.4142 31.4142C9.63317 32.1953 8.36683 32.1953 7.58579 31.4142C6.80474 30.6332 6.80474 29.3668 7.58579 28.5858L20.1716 16L7.58579 3.41421C6.80474 2.63317 6.80474 1.36683 7.58579 0.585786Z" fill="#666666"/></svg>', table: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><rect width="32" height="32" fill="transparent"/><path d="M0 6.18182C0 4.97683 0.895431 4 2 4H30C31.1046 4 32 4.97683 32 6.18182V25.8182C32 27.0232 31.1046 28 30 28H2C0.895431 28 0 27.0232 0 25.8182V6.18182Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1 10V15H10V10H1ZM11 10V15H20V10H11ZM11 16H20V21H11V16ZM10 21V16H1V21H10ZM1 22V25.8182C1 26.4207 1.44772 26.9091 2 26.9091H10V22H1ZM11 22H20V26.9091H11V22ZM21 22V26.9091H30C30.5523 26.9091 31 26.4207 31 25.8182V22H21ZM31 21V16H21V21H31ZM21 10V15H31V10H21ZM0 6.18182C0 4.97683 0.895431 4 2 4H30C31.1046 4 32 4.97683 32 6.18182V25.8182C32 27.0232 31.1046 28 30 28H2C0.895431 28 0 27.0232 0 25.8182V6.18182Z" fill="#666666"/></svg>', string: '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" fill="transparent"/><path d="M6.87668 17.3807L5.13407 10.6684L3.28205 17.3807H6.87668ZM4.32137 8.4137H6.07961L10.2447 23.607H8.54115L7.3768 19.0562H2.83663L1.59414 23.607H0L4.32137 8.4137Z" fill="#666666"/><path d="M15.9726 14.8365C16.6291 14.8365 17.1396 14.7158 17.5043 14.4745C18.0773 14.0952 18.3639 13.4126 18.3639 12.4266C18.3639 11.4337 18.0591 10.7649 17.4496 10.4202C17.1057 10.2271 16.5952 10.1306 15.9179 10.1306H13.1438V14.8365H15.9726ZM16.4962 21.8487C17.4496 21.8487 18.1294 21.4833 18.5358 20.7524C18.791 20.2905 18.9187 19.732 18.9187 19.0769C18.9187 17.9737 18.5462 17.2222 17.8012 16.8222C17.4053 16.6085 16.8817 16.5016 16.2305 16.5016H13.1438V21.8487H16.4962ZM11.62 8.4137H16.5509C17.895 8.4137 18.851 8.94462 19.4188 10.0065C19.7522 10.6339 19.9189 11.3579 19.9189 12.1784C19.9189 13.1368 19.7131 13.9229 19.3016 14.5365C19.088 14.8606 18.7806 15.1571 18.3795 15.426C18.9682 15.7225 19.4084 16.0569 19.7001 16.4292C20.2159 17.0911 20.4737 18.0047 20.4737 19.17C20.4737 20.1491 20.2419 21.0351 19.7783 21.8281C19.0854 23.014 17.9836 23.607 16.4728 23.607H11.62V8.4137Z" fill="#666666"/><path d="M27.1707 8C28.6242 8 29.7521 8.50679 30.5543 9.52036C31.3566 10.5339 31.802 11.6854 31.8906 12.9748H30.3746C30.2027 11.9957 29.8589 11.22 29.3431 10.6477C28.8326 10.0754 28.1136 9.78927 27.1863 9.78927C26.0558 9.78927 25.1416 10.3167 24.4435 11.3717C23.7506 12.4197 23.4042 14.0297 23.4042 16.2017C23.4042 17.9806 23.7167 19.4251 24.3419 20.5352C24.9722 21.6384 25.91 22.19 27.1551 22.19C28.3012 22.19 29.1738 21.6074 29.7729 20.4421C30.0907 19.8285 30.3277 19.0218 30.484 18.022H32C31.8646 19.6216 31.4165 20.9627 30.6559 22.0452C29.7442 23.3484 28.5148 24 26.9675 24C25.6339 24 24.5138 23.4656 23.6073 22.3969C22.4143 20.9834 21.8178 18.8011 21.8178 15.85C21.8178 13.6091 22.2659 11.7716 23.1619 10.3374C24.1309 8.77914 25.4672 8 27.1707 8Z" fill="#666666"/></svg>', number: '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" fill="transparent"/><path d="M28 11.2542L27.5086 13.3729H22.1229L20.8452 18.7458H26.5258L26.0344 20.8305H20.3145L18.5455 28H15.6953L17.4644 20.8305H12.2359L10.4668 28H7.61671L9.38575 20.8305H4L4.4914 18.7458H9.91646L11.1941 13.3729H5.4742L5.9656 11.2542H11.6855L13.4349 4H16.285L14.5356 11.2542H19.7641L21.5135 4H24.3636L22.6143 11.2542H28ZM19.2727 13.3729H14.0442L12.7666 18.7458H17.9951L19.2727 13.3729Z" fill="#666666"/></svg>', date: '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" fill="transparent"/><path d="M0 2H32V32H0V2Z" fill="transparent"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 0H8V2H24V0H26V2H32V32H0V2H6V0ZM24 4V6H26V4H30V8H2V4H6V6H8V4H24ZM2 10V30H30V10H2ZM10 14V18H6V14H10ZM10 26V22H6V26H10ZM14 14H18V18H14V14ZM18 22H14V26H18V22ZM26 14V18H22V14H26ZM26 26V22H22V26H26Z" fill="#666666"/></svg>', boolean: '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" fill="transparent"/><path d="M6 6.10648V5.44951L8.11074 5.34578C10.3527 5.23052 12.1414 5.14984 13.477 5.10373C14.8126 5.03458 15.6712 5 16.0529 5C18.6525 5 20.6798 5.42646 22.1346 6.27937C23.5895 7.13229 24.3169 8.43471 24.3169 10.1866C24.3169 11.0626 23.9711 11.8579 23.2795 12.5725C22.6116 13.2871 21.6338 13.9095 20.3459 14.4397C22.2062 14.9007 23.6134 15.6269 24.5674 16.6181C25.5214 17.5862 25.9984 18.8541 25.9984 20.4216C26.0222 21.3898 25.7837 22.2888 25.2829 23.1187C24.782 23.9255 24.0904 24.6286 23.2079 25.2279C22.3493 25.8042 21.3357 26.2537 20.167 26.5764C19.0222 26.8992 17.7939 27.0375 16.4822 26.9914C15.2181 26.9914 13.966 26.9914 12.7258 26.9914C11.4855 26.9683 10.2334 26.9568 8.96935 26.9568H6.39353V26.3344L8.61159 25.9195C9.06475 25.8272 9.38673 25.6659 9.57753 25.4354C9.76833 25.1818 9.86373 24.7208 9.86373 24.0523V7.45501C9.86373 7.2706 9.8518 7.12076 9.82795 7.0055C9.82795 6.86719 9.76833 6.75193 9.64908 6.65973C9.55368 6.56752 9.39865 6.49836 9.184 6.45226C8.96935 6.40616 8.65929 6.36005 8.25384 6.31395L6 6.10648ZM12.9762 14.6126C13.3578 14.6817 14.3356 14.7163 15.9097 14.7163C16.673 14.7163 17.3765 14.601 18.0205 14.3705C18.6644 14.14 19.213 13.8173 19.6662 13.4024C20.1432 12.9874 20.5009 12.4918 20.7394 11.9155C21.0018 11.3392 21.1329 10.7053 21.1329 10.0138C21.1329 8.63065 20.6559 7.60485 19.7019 6.93635C18.7718 6.24479 17.4242 5.89902 15.6593 5.89902C14.7292 5.89902 13.8348 6.00275 12.9762 6.21022V14.6126ZM12.9762 15.7191V23.3953C12.9762 25.1472 14.3476 26.0232 17.0903 26.0232C17.8297 26.0232 18.5333 25.8849 19.2011 25.6083C19.8927 25.3316 20.5009 24.9628 21.0256 24.5018C21.5503 24.0407 21.9558 23.5105 22.242 22.9112C22.552 22.2888 22.707 21.6434 22.707 20.9749C22.707 19.1307 22.1346 17.7707 20.9898 16.8947C19.845 16.0187 18.0801 15.5807 15.6951 15.5807C15.2896 15.5807 14.8484 15.5923 14.3714 15.6153C13.9183 15.6384 13.4532 15.673 12.9762 15.7191Z" fill="#666666"/></svg>', array: '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g><rect width="32" height="32" fill="transparent"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 30H0V2H10V4H2V28H10V30ZM22 2H32L32 30H22V28H30L30 4L22 4V2Z" fill="#666666"/></g><defs><clipPath id="clip0_19_1877"><rect width="32" height="32" fill="transparent"/></clipPath></defs></svg>', delete: '<svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 32 32" width="16px" height="16px"><path d="M 15 4 C 14.476563 4 13.941406 4.183594 13.5625 4.5625 C 13.183594 4.941406 13 5.476563 13 6 L 13 7 L 7 7 L 7 9 L 8 9 L 8 25 C 8 26.644531 9.355469 28 11 28 L 23 28 C 24.644531 28 26 26.644531 26 25 L 26 9 L 27 9 L 27 7 L 21 7 L 21 6 C 21 5.476563 20.816406 4.941406 20.4375 4.5625 C 20.058594 4.183594 19.523438 4 19 4 Z M 15 6 L 19 6 L 19 7 L 15 7 Z M 10 9 L 24 9 L 24 25 C 24 25.554688 23.554688 26 23 26 L 11 26 C 10.445313 26 10 25.554688 10 25 Z M 12 12 L 12 23 L 14 23 L 14 12 Z M 16 12 L 16 23 L 18 23 L 18 12 Z M 20 12 L 20 23 L 22 23 L 22 12 Z"/></svg>', setting: '<svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 50 50" width="16px" height="16px"><path d="M 22.205078 2 A 1.0001 1.0001 0 0 0 21.21875 2.8378906 L 20.246094 8.7929688 C 19.076509 9.1331971 17.961243 9.5922728 16.910156 10.164062 L 11.996094 6.6542969 A 1.0001 1.0001 0 0 0 10.708984 6.7597656 L 6.8183594 10.646484 A 1.0001 1.0001 0 0 0 6.7070312 11.927734 L 10.164062 16.873047 C 9.583454 17.930271 9.1142098 19.051824 8.765625 20.232422 L 2.8359375 21.21875 A 1.0001 1.0001 0 0 0 2.0019531 22.205078 L 2.0019531 27.705078 A 1.0001 1.0001 0 0 0 2.8261719 28.691406 L 8.7597656 29.742188 C 9.1064607 30.920739 9.5727226 32.043065 10.154297 33.101562 L 6.6542969 37.998047 A 1.0001 1.0001 0 0 0 6.7597656 39.285156 L 10.648438 43.175781 A 1.0001 1.0001 0 0 0 11.927734 43.289062 L 16.882812 39.820312 C 17.936999 40.39548 19.054994 40.857928 20.228516 41.201172 L 21.21875 47.164062 A 1.0001 1.0001 0 0 0 22.205078 48 L 27.705078 48 A 1.0001 1.0001 0 0 0 28.691406 47.173828 L 29.751953 41.1875 C 30.920633 40.838997 32.033372 40.369697 33.082031 39.791016 L 38.070312 43.291016 A 1.0001 1.0001 0 0 0 39.351562 43.179688 L 43.240234 39.287109 A 1.0001 1.0001 0 0 0 43.34375 37.996094 L 39.787109 33.058594 C 40.355783 32.014958 40.813915 30.908875 41.154297 29.748047 L 47.171875 28.693359 A 1.0001 1.0001 0 0 0 47.998047 27.707031 L 47.998047 22.207031 A 1.0001 1.0001 0 0 0 47.160156 21.220703 L 41.152344 20.238281 C 40.80968 19.078827 40.350281 17.974723 39.78125 16.931641 L 43.289062 11.933594 A 1.0001 1.0001 0 0 0 43.177734 10.652344 L 39.287109 6.7636719 A 1.0001 1.0001 0 0 0 37.996094 6.6601562 L 33.072266 10.201172 C 32.023186 9.6248101 30.909713 9.1579916 29.738281 8.8125 L 28.691406 2.828125 A 1.0001 1.0001 0 0 0 27.705078 2 L 22.205078 2 z M 23.056641 4 L 26.865234 4 L 27.861328 9.6855469 A 1.0001 1.0001 0 0 0 28.603516 10.484375 C 30.066026 10.848832 31.439607 11.426549 32.693359 12.185547 A 1.0001 1.0001 0 0 0 33.794922 12.142578 L 38.474609 8.7792969 L 41.167969 11.472656 L 37.835938 16.220703 A 1.0001 1.0001 0 0 0 37.796875 17.310547 C 38.548366 18.561471 39.118333 19.926379 39.482422 21.380859 A 1.0001 1.0001 0 0 0 40.291016 22.125 L 45.998047 23.058594 L 45.998047 26.867188 L 40.279297 27.871094 A 1.0001 1.0001 0 0 0 39.482422 28.617188 C 39.122545 30.069817 38.552234 31.434687 37.800781 32.685547 A 1.0001 1.0001 0 0 0 37.845703 33.785156 L 41.224609 38.474609 L 38.53125 41.169922 L 33.791016 37.84375 A 1.0001 1.0001 0 0 0 32.697266 37.808594 C 31.44975 38.567585 30.074755 39.148028 28.617188 39.517578 A 1.0001 1.0001 0 0 0 27.876953 40.3125 L 26.867188 46 L 23.052734 46 L 22.111328 40.337891 A 1.0001 1.0001 0 0 0 21.365234 39.53125 C 19.90185 39.170557 18.522094 38.59371 17.259766 37.835938 A 1.0001 1.0001 0 0 0 16.171875 37.875 L 11.46875 41.169922 L 8.7734375 38.470703 L 12.097656 33.824219 A 1.0001 1.0001 0 0 0 12.138672 32.724609 C 11.372652 31.458855 10.793319 30.079213 10.427734 28.609375 A 1.0001 1.0001 0 0 0 9.6328125 27.867188 L 4.0019531 26.867188 L 4.0019531 23.052734 L 9.6289062 22.117188 A 1.0001 1.0001 0 0 0 10.435547 21.373047 C 10.804273 19.898143 11.383325 18.518729 12.146484 17.255859 A 1.0001 1.0001 0 0 0 12.111328 16.164062 L 8.8261719 11.46875 L 11.523438 8.7734375 L 16.185547 12.105469 A 1.0001 1.0001 0 0 0 17.28125 12.148438 C 18.536908 11.394293 19.919867 10.822081 21.384766 10.462891 A 1.0001 1.0001 0 0 0 22.132812 9.6523438 L 23.056641 4 z M 25 17 C 20.593567 17 17 20.593567 17 25 C 17 29.406433 20.593567 33 25 33 C 29.406433 33 33 29.406433 33 25 C 33 20.593567 29.406433 17 25 17 z M 25 19 C 28.325553 19 31 21.674447 31 25 C 31 28.325553 28.325553 31 25 31 C 21.674447 31 19 28.325553 19 25 C 19 21.674447 21.674447 19 25 19 z"/></svg>', database: '<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512" version="1.1"><path d="" stroke="none" fill="#080404" fill-rule="evenodd"/><path d="M 218 0.587 C 215.525 0.785, 207.425 1.431, 200 2.022 C 112.593 8.974, 45.124 36.178, 27.444 71.598 L 23.500 79.500 23.225 254.500 L 22.951 429.500 25.084 435.400 C 28.149 443.880, 32.818 450.665, 40.586 457.932 C 68.262 483.821, 123.001 501.908, 197 509.615 C 217.137 511.712, 272.042 512.543, 294.832 511.096 C 355.427 507.248, 408.030 495.173, 443.433 476.984 C 467.046 464.852, 481.142 451.372, 486.916 435.400 L 489.049 429.500 488.775 254.500 L 488.500 79.500 484.556 71.598 C 467.248 36.923, 406.592 11.716, 318 2.383 C 304.445 0.955, 230.056 -0.381, 218 0.587 M 227 19.586 C 194.129 21.766, 171.237 24.548, 148.549 29.120 C 93.872 40.138, 55.350 58.712, 44.968 79.064 C 30.449 107.523, 86.291 139.400, 172.669 151.961 C 201.240 156.116, 219.895 157.314, 256 157.314 C 292.105 157.314, 310.760 156.116, 339.331 151.961 C 415.003 140.957, 469.286 114.488, 469.286 88.592 C 469.286 65.495, 427.450 41.983, 363.500 29.140 C 330.835 22.580, 304.440 20.045, 264 19.582 C 246.675 19.384, 230.025 19.386, 227 19.586 M 42.177 164.579 L 42.500 204.500 44.926 209.430 C 58.821 237.663, 127.205 261.439, 213.500 268.041 C 231.756 269.438, 279.437 269.437, 298.500 268.039 C 383.802 261.784, 453.351 237.631, 467.063 209.500 L 469.500 204.500 469.823 164.579 C 470.144 124.915, 470.134 124.668, 468.161 126.079 C 467.069 126.861, 463.098 129.743, 459.338 132.485 C 439.974 146.602, 406.055 159.501, 368.881 166.884 C 331.034 174.400, 306.382 176.500, 256 176.500 C 205.618 176.500, 180.966 174.400, 143.119 166.884 C 105.945 159.501, 72.026 146.602, 52.662 132.485 C 48.902 129.743, 44.931 126.861, 43.839 126.079 C 41.866 124.668, 41.856 124.915, 42.177 164.579 M 42.191 276.124 C 42.591 322.355, 42.208 320.173, 51.680 330.104 C 69.337 348.615, 109.755 364.636, 161 373.438 C 195.438 379.353, 226.647 381.453, 268.500 380.672 C 313.174 379.838, 342.621 376.385, 378 367.829 C 399.497 362.630, 415.596 357.175, 430.831 349.926 C 449.717 340.941, 462.333 330.929, 467.219 321.047 C 469.419 316.599, 469.475 315.623, 469.813 276.124 L 470.158 235.748 465.329 239.768 C 436.264 263.969, 378.472 281.098, 305.500 287.141 C 286.119 288.746, 224.742 288.739, 206 287.130 C 132.365 280.809, 75.749 263.980, 46.671 239.768 L 41.842 235.748 42.191 276.124 M 42.207 388.094 C 42.538 433.721, 42.186 431.542, 50.764 441.083 C 68.048 460.306, 110.606 476.930, 165.500 485.902 C 196.815 491.020, 216.590 492.451, 256 492.451 C 295.410 492.451, 315.185 491.020, 346.500 485.902 C 401.394 476.930, 443.952 460.306, 461.236 441.083 C 469.814 431.542, 469.462 433.721, 469.793 388.094 L 470.086 347.688 465.793 351.204 C 440.945 371.554, 395.664 387.471, 341.375 394.939 C 289.084 402.132, 223.061 402.129, 170.500 394.931 C 116.810 387.579, 70.901 371.428, 46.207 351.204 L 41.914 347.688 42.207 388.094" stroke="none" fill="#040404" fill-rule="evenodd"/></svg>', unfoldMore: '<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M480-144 318-306l51-51 111 111 111-111 51 51-162 162ZM369-603l-51-51 162-162 162 162-51 51-111-111-111 111Z"/></svg>', filter: '<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path d="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z" /></svg>', sort: '<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">    <!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch --><desc>Created with Sketch.</desc>    <g id="sort-a-to-z" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">        <g id="Sort-A-to-Z" transform="translate(1.000000, 1.000000)">            <polygon id="Shape" fill="#666666" fill-rule="nonzero" points="11 13.9939004 14 11 12 11 12 0 10 0 10 11 8 11"></polygon>            <g id="Group">                <polygon id="Z" fill="#FA7541" points="0.805602716 8 6.25551783 8 6.25551783 8.78151261 2.05857385 13.1596639 6.5 13.1596639 6.5 14 0.5 14 0.5 13.2268908 4.70713073 8.84033613 0.805602716 8.84033613"></polygon>                <path d="M2.81443299,0 L4.18556701,0 L7,7 L5.71134021,7 L5.04123711,5.24509804 L1.95876289,5.24509804 L1.28865979,7 L0,7 L2.81443299,0 Z M2.31958763,4.30392157 L4.68041237,4.30392157 L3.5257732,1.23529412 L3.48453608,1.23529412 L2.31958763,4.30392157 Z" id="A" fill="#367FC9"></path>            </g>        </g>    </g></svg>', conditionalFormat: '<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">    <!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch --><desc>Created with Sketch.</desc>    <g id="conditional-format" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">        <g id="Condition-Format" transform="translate(1.000000, 2.000000)">            <path d="M21,25 L14,25 L14,14 L28,14 L28,25 L21,25 L0,25 L0,0 L28,0 L28,25 L21,25 Z" id="Combined-Shape" fill="#666666"></path>            <path d="M27,14 L14,14 L14,24 L1,24 L1,1 L27,1 L27,14 Z" id="Combined-Shape" fill="#FFFFFF"></path>            <path d="M14,19 L8,19 L8,24 L7,24 L7,19 L1,19 L1,18 L7,18 L7,13 L1,13 L1,12 L7,12 L7,7 L1,7 L1,6 L7,6 L7,1 L8,1 L8,6 L20,6 L20,1 L21,1 L21,6 L27,6 L27,7 L21,7 L21,12 L27,12 L27,13 L21,13 L21,14 L20,14 L20,13 L8,13 L8,18 L14,18 L14,19 Z M20,12 L20,7 L8,7 L8,12 L20,12 Z" id="Combined-Shape" fill="#BBBBBB"></path>            <rect id="Rectangle-5" fill="#FFCA00" x="8" y="1" width="8" height="5"></rect>            <path d="M20,14 L14,14 L14,18 L8,18 L8,13 L20,13 L20,14 Z" id="Combined-Shape" fill="#FFCA00"></path>            <rect id="Rectangle-5" fill="#367FC9" x="8" y="7" width="11" height="5"></rect>            <rect id="Rectangle-5" fill="#367FC9" x="8" y="19" width="3" height="5"></rect>            <rect id="Rectangle-2" fill="#666666" x="15" y="15" width="15" height="13"></rect>            <rect id="Rectangle-2" fill="#FFFFFF" x="16" y="16" width="13" height="11"></rect>            <path d="M22.7465887,20 L23.8634331,18 L24.75,18.5292094 L23.9286779,20 L26,20 L26,20.9915826 L23.3749562,20.9915826 L22.8130681,21.9977891 L26,21.9977891 L26,22.9937935 L22.2568771,22.9937935 L21.1365669,25 L20.25,24.4707906 L21.074788,22.9937935 L19,22.9937935 L19,21.9977891 L21.630979,21.9977891 L22.192867,20.9915826 L19,20.9915826 L19,20 L22.7465887,20 Z" id="Combined-Shape" fill="#333333"></path>        </g>    </g></svg>' };
      }, "./dist/plugins/components/utils/index.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        e2.r(n2), e2.d(n2, { CSSUtils: function() {
          return i2.CSSUtils;
        }, CSSVariables: function() {
          return i2.CSSVariables;
        }, Icons: function() {
          return i2.Icons;
        }, sHr: function() {
          return r.sHr;
        }, kSt: function() {
          return r.kSt;
        }, s0r: function() {
          return r.s0r;
        }, ht: function() {
          return r.ht;
        }, getSR: function() {
          return r.getSR;
        }, showPopover: function() {
          return o.showPopover;
        } }), i2 = e2("./dist/plugins/components/utils/css.js"), r = e2("./dist/plugins/components/utils/common.js"), o = e2("./dist/plugins/components/utils/popover.js");
      }, "./dist/plugins/components/utils/popover.js": function(t2, n2, e2) {
        "use strict";
        function i2(t3, n3, e3, i3, u = 2) {
          const s = r(), c = o();
          c.id = `popover-${(/* @__PURE__ */ new Date()).getTime()}`, s.appendChild(c), c.innerHTML = n3(), document.body.appendChild(s), e3 && e3(c), a(t3, c, u);
          const f = () => {
            a(t3, c, u);
          };
          return window.addEventListener("resize", f), s.onclick = (t4) => {
            const n4 = void 0;
            t4.target.closest(`#${c.id}`) !== c && (window.removeEventListener("resize", f), i3 && i3(c), s.remove());
          }, s;
        }
        function r() {
          const t3 = document.createElement("div");
          return t3.classList.add("sjs-popover-root"), t3.style.position = "fixed", t3.style.left = "0", t3.style.right = "0", t3.style.top = "0", t3.style.bottom = "0", t3.style.zIndex = "100000000", t3;
        }
        function o() {
          const t3 = document.createElement("div");
          return t3.style.position = "fixed", t3;
        }
        function a(t3, n3, e3) {
          const i3 = t3.getBoundingClientRect(), r2 = document.body.getBoundingClientRect(), o2 = n3.getBoundingClientRect(), a2 = r2.right - i3.right, u = i3.left - r2.left;
          u >= o2.width ? n3.style.right = `${a2}px` : a2 >= o2.width && (n3.style.left = `${u}px`), i3.bottom + o2.height + e3 < r2.bottom ? n3.style.top = `${i3.bottom + e3}px` : i3.top - o2.height >= e3 && i3.bottom < r2.bottom ? n3.style.top = i3.top - o2.height - e3 + "px" : n3.style.top = `${Math.max(r2.height - o2.height - e3, 0)}px`;
        }
        e2.r(n2), e2.d(n2, { showPopover: function() {
          return i2;
        } });
      }, "./dist/plugins/conditional/conditional.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/conditional/conditional.js"), n2), r(e2("./dist/plugins/conditional/conditional.ns.js"), n2);
      }, "./dist/plugins/conditional/conditional.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn, Pn, Gn = this && this.qKr || (Hn = function(t3, n3) {
          return Hn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Hn(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Hn(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), Un = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, Hn;
        function Vn(t3) {
          return K(J(t3));
        }
        function zn(t3) {
          return t3.rowCount;
        }
        function Yn(t3) {
          return t3.colCount;
        }
        function Zn(t3) {
          return "" === t3.trim();
        }
        function Wn(t3) {
          return "" === t3;
        }
        function Qn(t3) {
          return B(t3) ? s.SheetArea.viewport : t3;
        }
        function Kn(t3, n3) {
          return B(t3) || B(n3);
        }
        function Jn(t3, n3) {
          return !!Kn(t3, n3) || (t3.length !== n3.length || t3.some((function(t4, e3) {
            return !t4.equals(n3[e3]);
          })));
        }
        function Xn(t3, n3, e3) {
          return n3 !== e3 && ("ranges" !== t3 || Jn(n3, e3));
        }
        function qn(t3, n3, e3, i3) {
          switch (i3 && "string" == typeof n3 && "string" == typeof e3 && (n3 = n3.toLowerCase(), e3 = e3.toLowerCase()), t3) {
            case Ot.equalsTo:
              return n3 === e3;
            case Ot.notEqualsTo:
              return n3 !== e3;
            case Ot.greaterThan:
              return n3 > e3;
            case Ot.greaterThanOrEqualsTo:
              return n3 >= e3;
            case Ot.lessThan:
              return n3 < e3;
            case Ot.lessThanOrEqualsTo:
              return n3 <= e3;
            default:
              return false;
          }
        }
        function $n(t3) {
          return (null == t3 ? void 0 : t3.fileType) === s.OpenSaveFileType.excel;
        }
        function te(t3, n3) {
          B(t3.rJ) || n3.set(t3.rJ, t3);
        }
        function ne(t3, n3) {
          if (n3 instanceof i2.Common.ft) return n3;
          var e3 = s.I.m(t3, n3);
          return ut._(e3);
        }
        function ee(t3) {
          var n3, e3, i3, r2, o2, a2;
          if (!t3) return t3;
          for (n3 = /* @__PURE__ */ new Map(), e3 = [], i3 = 0, r2 = t3; i3 < r2.length; i3++) o2 = r2[i3], a2 = "".concat(o2.row, ",").concat(o2.col, ",").concat(o2.rowCount, ",").concat(o2.colCount), n3.has(a2) || (n3.set(a2, true), e3.push(o2));
          return e3;
        }
        function ie(t3) {
          var n3;
          return ee($(t3));
        }
        function re(t3) {
          var n3 = {}, e3 = N.YK(t3, n3);
          return e3 ? n3.value : typeof t3 === C && t3.toLowerCase() === S;
        }
        function oe(t3) {
          var n3 = this;
          t3 && t3.F_r((function(t4) {
            var e3;
            null === (e3 = n3.L_r) || void 0 === e3 || e3.notify(t4);
          }));
        }
        function ae(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2 = Math.round;
          switch (t3.lineWidth = 1, t3.rect(o2, a2, u2, s2), e3 = c2(++e3), i3 = c2(i3), t3.clip(), n3.iconSetType) {
            case 10:
            case 15:
            case 1:
            case 11:
            case 16:
            case 0:
              f.drawArrows(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 2:
              f.drawIconTypeIsTwo(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 3:
              f.drawStar(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 14:
            case 12:
            case 5:
              f.drawCircle(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 4:
              f.drawFlag(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 6:
              f.drawTrafficLight(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 7:
              f.drawIconTypeIsSen(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 8:
              f.drawIconTypeIsEight(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 9:
              f.drawIconTypeIsNine(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 18:
              f.drawSector(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 17:
            case 13:
              f.drawSignal(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
              break;
            case 19:
              f.drawMagicCube(t3, n3.iconSetType, n3.iconIndex, e3, i3, r2);
          }
        }
        function ue(t3, n3, e3) {
          var i3 = [], r2 = t3.row, o2 = t3.rowCount, a2 = t3.col, u2 = t3.col + t3.colCount - 1;
          return a2 < n3 ? n3 <= u2 && u2 <= e3 ? (i3[0] = ct(r2, a2, o2, n3 - a2), i3[1] = ct(r2, n3, o2, u2 - n3 + 1)) : u2 > e3 && (i3[0] = ct(r2, a2, o2, n3 - a2), i3[1] = ct(r2, n3, o2, e3 - n3 + 1), i3[2] = ct(r2, e3 + 1, o2, u2 - e3)) : a2 <= e3 && (n3 <= u2 && u2 <= e3 ? i3[1] = t3 : u2 > e3 && (i3[1] = ct(r2, a2, o2, e3 - a2 + 1), i3[2] = ct(r2, e3 + 1, o2, u2 - e3))), i3;
        }
        function se(t3, n3, e3) {
          var i3 = [], r2 = t3.col, o2 = t3.colCount, a2 = t3.row, u2 = t3.row + t3.rowCount - 1;
          return a2 < n3 ? n3 <= u2 && u2 <= e3 ? (i3[0] = ct(a2, r2, n3 - a2, o2), i3[1] = ct(n3, r2, u2 - n3 + 1, o2)) : u2 > e3 && (i3[0] = ct(a2, r2, n3 - a2, o2), i3[1] = ct(n3, r2, e3 - n3 + 1, o2), i3[2] = ct(e3 + 1, r2, u2 - e3, o2)) : a2 <= e3 && (n3 <= u2 && u2 <= e3 ? i3[1] = t3 : u2 > e3 && (i3[1] = ct(a2, r2, e3 - a2 + 1, o2), i3[2] = ct(e3 + 1, r2, u2 - e3, o2))), i3;
        }
        function ce(t3, n3) {
          return t3 === _t.cellValueRule && (n3 === Lt.between || n3 === Lt.notBetween);
        }
        function fe(t3) {
          var n3, e3 = n3 = Number.MAX_VALUE;
          return t3.forEach((function(t4) {
            t4.row < e3 && (e3 = t4.row), t4.col < n3 && (n3 = t4.col);
          })), { row: e3, col: n3 };
        }
        function le(t3, n3, e3) {
          var i3, r2, o2, a2, u2, c2;
          if (!t3 || !n3) return null;
          if (!(i3 = n3[0]) || i3.row < 0 || i3.col < 0) return null;
          if (r2 = s.IndexHelper.nr(i3.col) + (i3.row + 1), o2 = "", o2 = i3.rowCount === s.XmlConstants.Io ? g("${0}:${1}", [s.IndexHelper.nr(i3.col), s.IndexHelper.nr(i3.col + i3.colCount - 1)]) : i3.colCount === s.XmlConstants.xo ? g("${0}:${1}", [i3.row + 1, i3.row + i3.rowCount]) : g("${0}${1}:${2}${3}", [s.IndexHelper.nr(i3.col), i3.row + 1, s.IndexHelper.nr(i3.col + i3.colCount - 1), i3.row + i3.rowCount]), a2 = xe(e3), "top10" === t3.type) return t3.bottom ? t3.percent ? g("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}", [o2, t3.rank, r2]) : g("SMALL(({0}),MIN({1},COUNT({0})))>={2}", [o2, t3.rank, r2]) : t3.percent ? g("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}", [o2, t3.rank, r2]) : g("LARGE(({0}),MIN({1},COUNT({0})))<={2}", [o2, t3.rank, r2]);
          if ("duplicateValues" === t3.type) return g("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))", [o2, r2]);
          if ("uniqueValues" === t3.type) return g("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))", [o2, r2]);
          if ("aboveAverage" === t3.type || "belowAverage" === t3.type || "aboveOrEqualToAverage" === t3.type || "belowOrEqualToAverage" === t3.type) {
            if ("aboveAverage" === t3.type && B(t3.stdDev)) return g("{0}>AVERAGE({1})", [r2, o2]);
            if (!B(t3.aboveAverage)) {
              if (!(B(t3.equalAverage) || t3.aboveAverage || B(t3.equalAverage)) && t3.equalAverage && B(t3.stdDev)) return g("{0}<=AVERAGE({1})", [r2, o2]);
              if (!t3.aboveAverage && B(t3.stdDev)) return g("{0}<AVERAGE({1})", [r2, o2]);
            }
            if (!B(t3.equalAverage) && t3.equalAverage && B(t3.stdDev)) return g("{0}>=AVERAGE({1})", [r2, o2]);
            if (!B(t3.stdDev)) return B(t3.aboveAverage) || t3.aboveAverage ? g("({0}-AVERAGE({1}))>=STDEVP({1})*({2})", [r2, o2, t3.stdDev]) : g("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})", [r2, o2, t3.stdDev]);
          } else {
            if (u2 = fe(n3), c2 = s.IndexHelper.nr(u2.col) + (u2.row + 1), "containsText" === t3.type) return g('NOT(ISERROR(SEARCH("{0}",{1})))', [a2, c2]);
            if ("notContainsText" === t3.type) return g('ISERROR(SEARCH("{0}",{1}))', [a2, c2]);
            if ("beginsWith" === t3.type) return g('LEFT({0},{1}) = "{2}"', [c2, e3.length, a2]);
            if ("endsWith" === t3.type) return g('RIGHT({0},{1}) = "{2}"', [c2, e3.length, a2]);
          }
          return null;
        }
        function he(t3) {
          return t3.c_[0] && t3.c_[0].c_[0] && t3.c_[0].c_[0].c_[0];
        }
        function de(t3) {
          return "string" == typeof t3 && "=" !== t3[0] && (t3 = '="' + b.Vi(t3, '"', '""') + '"'), t3;
        }
        function ve(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          if (!wt(n3)) return n3[t3];
          for (o2 = T(n3.length, e3.length), a2 = 0; a2 < o2; a2++) if ((u2 = e3[a2]).contains(i3, r2, 1, 1)) return (s2 = n3[a2])[t3];
        }
        function pe(t3, n3) {
          if (n3) for (var e3 = 0; e3 < n3.length; e3++) t3.push(n3[e3]);
        }
        function ge(t3) {
          var n3, e3, i3, r2, o2, a2 = pt(t3);
          for (n3 = 0; n3 < a2; n3++) if (i3 = (e3 = t3[n3]).ranges) {
            for (r2 = 0; r2 < i3.length; r2++) if ((o2 = i3[r2]).rowCount > 1e3) return true;
          }
          return false;
        }
        function me(t3) {
          var n3, e3, i3, r2, o2, a2 = pt(t3);
          for (n3 = 0; n3 < a2; n3++) if (i3 = (e3 = t3[n3]).ranges()) {
            for (r2 = 0; r2 < i3.length; r2++) if ((o2 = i3[r2]).rowCount > 1e3) return true;
          }
          return false;
        }
        function be(t3) {
          var n3, e3, i3 = [], r2 = pt(t3);
          for (e3 = 0; e3 < r2; e3++) n3 = t3[e3], i3.push(ct(n3.row, n3.col, zn(n3), Yn(n3)));
          return i3;
        }
        function ye(t3, n3) {
          var e3, i3;
          for (e3 = 0; e3 < t3.length; e3++) if ((i3 = t3[e3]) && i3.equals(n3)) return true;
          return false;
        }
        function we(t3, n3) {
          var e3, i3 = true, r2 = true, o2 = true, a2 = n3.iJ;
          for (e3 = 0; e3 < a2.length; e3++) if (a2[e3].iconSetType !== t3) {
            i3 = false;
            break;
          }
          for (e3 = 0; e3 < a2.length; e3++) if (a2[e3].iconIndex !== e3) {
            r2 = false;
            break;
          }
          for (e3 = 0; e3 < a2.length; e3++) if (a2[e3].iconIndex !== a2.length - 1 - e3) {
            o2 = false;
            break;
          }
          return !i3 || !r2 && !o2 || !r2 && !n3.reverseIconOrder();
        }
        function Me(t3) {
          return !(!t3.ruleType || t3.ruleType() !== _t.dataBarRule);
        }
        function Ce(t3) {
          if (t3.ruleType() === _t.iconSetRule) {
            var n3 = t3.iconSetType();
            return 3 === n3 || 2 === n3 || 19 === n3 || we(n3, t3);
          }
        }
        function Se(t3) {
          return t3.ruleType() === _t.rowStateRule || t3.ruleType() === _t.columnStateRule;
        }
        function Te(t3) {
          var n3 = /&/g, e3 = /</g, i3 = />/g;
          return "string" == typeof t3 ? t3.replace(n3, "&amp;").replace(e3, "&lt;").replace(i3, "&gt;") : B(t3) ? t3 : "" + t3;
        }
        function xe(t3) {
          return "string" == typeof t3 ? t3.startsWith('="') && t3.endsWith('"') ? t3.slice(2, -1) : t3.replace(/"/g, '""') : B(t3) ? t3 : "" + t3;
        }
        function Ae(t3) {
          var n3 = t3.c_ && t3.c_[0];
          if (n3) return Y(n3, "cfvo");
        }
        function Ie(t3) {
          var n3, e3 = t3.c_ && t3.c_[0];
          return e3 && (n3 = Y(e3, "color")) && n3.length > 0 ? n3.map((function(t4) {
            return W(t4);
          })) : [];
        }
        function ke(t3, n3, e3) {
          switch (t3) {
            case "cellIs":
              return Sn[n3];
            case "containsText":
              return Ft.contains;
            case "beginsWith":
              return Ft.beginsWith;
            case "endsWith":
              return Ft.endsWith;
            case "notContainsText":
              return Ft.doesNotContain;
            case "timePeriod":
              return zt[e3];
          }
        }
        function Ne(t3, n3, e3) {
          var i3, r2, o2;
          switch (t3) {
            case _t.cellValueRule:
              return i3 = { type: "cellIs" }, B(e3) || (i3.operator = Sn[e3]), i3;
            case _t.specificTextRule:
              return r2 = "containsText", o2 = "contains", 2 === e3 ? (r2 = "beginsWith", o2 = "beginsWith") : 3 === e3 ? (r2 = "endsWith", o2 = "endsWith") : 1 === e3 ? (r2 = "notContainsText", o2 = "notContains") : 0 === e3 && (o2 = "containsText"), i3 = { type: r2, operator: o2 };
            case _t.formulaRule:
              return i3 = { type: "expression" }, B(e3) || (i3.operator = e3), i3;
            case _t.dateOccurringRule:
              return i3 = { type: "timePeriod" }, B(n3) || (i3.timePeriod = Cn[n3]), i3;
            case _t.top10Rule:
              return i3 = { type: "top10" }, B(e3) || (i3.operator = e3), i3;
            case _t.uniqueRule:
              return i3 = { type: "uniqueValues" }, B(e3) || (i3.operator = e3), i3;
            case _t.duplicateRule:
              return i3 = { type: "duplicateValues" }, B(e3) || (i3.operator = e3), i3;
            case _t.averageRule:
              return i3 = { type: "aboveAverage" }, B(e3) || (i3.operator = e3), i3;
            case _t.twoScaleRule:
              return i3 = { type: "colorScale" }, B(e3) || (i3.operator = e3), i3;
            default:
              return;
          }
        }
        function je(t3) {
          var n3;
          return { num: 0, min: 1, max: 2, percent: 3, percentile: 4, formula: 6, autoMin: 5, autoMax: 7 }[t3];
        }
        function De(t3) {
          var n3;
          return { 0: "num", 1: "min", 2: "max", 3: "percent", 4: "percentile", 6: "formula", 5: "autoMin", 7: "autoMax" }[t3];
        }
        function _e(t3) {
          var n3;
          return { "3Arrows": 0, "3ArrowsGray": 1, "3Flags": 4, "3TrafficLights1": 5, "3TrafficLights2": 6, "3Signs": 7, "3Symbols": 8, "3Symbols2": 9, "4Arrows": 10, "4ArrowsGray": 11, "4RedToBlack": 12, "4Rating": 13, "4TrafficLights": 14, "5Arrows": 15, "5ArrowsGray": 16, "5Rating": 17, "5Quarters": 18, "3Stars": 3, "3Triangles": 2, "5Boxes": 19, NoIcons: 20 }[t3];
        }
        function Oe(t3) {
          var n3;
          return { 0: "3Arrows", 1: "3ArrowsGray", 4: "3Flags", 5: "3TrafficLights1", 6: "3TrafficLights2", 7: "3Signs", 8: "3Symbols", 9: "3Symbols2", 10: "4Arrows", 11: "4ArrowsGray", 12: "4RedToBlack", 13: "4Rating", 14: "4TrafficLights", 15: "5Arrows", 16: "5ArrowsGray", 17: "5Rating", 18: "5Quarters", 3: "3Stars", 2: "3Triangles", 19: "5Boxes", 20: "NoIcons" }[t3];
        }
        function Ee(t3) {
          var n3 = { beginsWith: 2, endsWith: 2, notContainsText: 2, containsText: 2, expression: 3, containsBlanks: 3, notContainsBlanks: 3, containsErrors: 3, notContainsErrors: 3, timePeriod: 4, today: 4, tomorrow: 4, yesterday: 4, last7Days: 4, lastMonth: 4, nextMonth: 4, thisWeek: 4, nextWeek: 4, lastWeek: 4, thisMonth: 4, top10: 5, uniqueValues: 6, duplicateValues: 7, aboveAverage: 8, belowAverage: 8, aboveOrEqualToAverage: 8, belowOrEqualToAverage: 8 }, e3 = n3[t3];
          return e3 !== w ? e3 : 1;
        }
        function Re(t3) {
          var n3;
          return { 1: "num", 4: "percent", 5: "percentile", 7: "formula" }[t3];
        }
        function Le(t3) {
          var n3;
          return { num: 1, percent: 4, percentile: 5, formula: 7 }[t3];
        }
        function Fe(t3) {
          return "lowestValue" === t3 || "highestValue" === t3;
        }
        function Be(t3) {
          return "string" == typeof (t3 = J(t3)) && "=" !== t3.charAt(0) ? "=" + t3 : t3;
        }
        function Pe(t3, n3) {
          var e3;
          return B(t3.val) ? B(n3) || (e3 = p(J(n3.c_ && n3.c_[0]))) : e3 = t3.val, e3;
        }
        function Ge(t3, n3, e3) {
          var i3, r2, o2;
          for (i3 = 0, r2 = t3; i3 < r2.length; i3++) if ((o2 = r2[i3]).rule === e3) return void (ye(o2.ranges, n3) || o2.ranges.push(n3));
          t3.push({ rule: e3, ranges: [n3] });
        }
        function Ue(t3, n3, e3) {
          var i3, r2, o2;
          for (i3 = 0, r2 = t3; i3 < r2.length; i3++) if ((o2 = r2[i3]).rule === n3) return void (o2.rule = e3);
        }
        function He(t3, n3, e3) {
          var i3, r2, o2;
          for (i3 = 0, r2 = t3; i3 < r2.length; i3++) if ((o2 = r2[i3]).rule === e3 && ye(o2.ranges, n3)) return true;
        }
        function Ve(t3, n3) {
          if (10 === t3) {
            if (3 === n3) return { iconSetType: 0, iconIndex: 2 };
            if (0 === n3) return { iconSetType: 0, iconIndex: 0 };
          } else if (15 === t3) {
            if (4 === n3) return { iconSetType: 0, iconIndex: 2 };
            if (0 === n3) return { iconSetType: 0, iconIndex: 0 };
            if (2 === n3) return { iconSetType: 0, iconIndex: 1 };
            if (3 === n3) return { iconSetType: 10, iconIndex: 2 };
            if (1 === n3) return { iconSetType: 10, iconIndex: 1 };
          } else if (11 === t3) {
            if (3 === n3) return { iconSetType: 1, iconIndex: 2 };
            if (0 === n3) return { iconSetType: 1, iconIndex: 0 };
          } else if (16 === t3) {
            if (4 === n3) return { iconSetType: 1, iconIndex: 2 };
            if (0 === n3) return { iconSetType: 1, iconIndex: 0 };
            if (2 === n3) return { iconSetType: 1, iconIndex: 1 };
            if (3 === n3) return { iconSetType: 11, iconIndex: 2 };
            if (1 === n3) return { iconSetType: 11, iconIndex: 1 };
          } else if (14 === t3) {
            if (3 === n3) return { iconSetType: 5, iconIndex: 2 };
            if (2 === n3) return { iconSetType: 5, iconIndex: 1 };
            if (1 === n3) return { iconSetType: 5, iconIndex: 0 };
          } else if (13 === t3) {
            if (0 === n3) return { iconSetType: 17, iconIndex: 1 };
            if (1 === n3) return { iconSetType: 17, iconIndex: 2 };
            if (2 === n3) return { iconSetType: 17, iconIndex: 3 };
            if (3 === n3) return { iconSetType: 17, iconIndex: 4 };
          }
          return { iconSetType: t3, iconIndex: n3 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ConditionalFormats = n2.StateRule = n2.IconSetRule = n2.IconCriterion = n2.DataBarRule = n2.ScaleRule = n2.ScaleValue = n2.NormalConditionRule = n2.ConditionRuleBase = n2.Condition = n2.oJ = n2.aJ = n2.ConditionParentType = n2.ConditionType = n2.IconValueType = n2.IconSetType = n2.DataBarAxisPosition = n2.BarDirection = n2.ScaleValueType = n2.AverageConditionType = n2.QuarterType = n2.DateOccurringType = n2.Top10ConditionType = n2.DateExConditionExpectType = n2.DateCompareType = n2.CustomValueType = n2.ColorCompareType = n2.TextCompareType = n2.TextComparisonOperators = n2.ComparisonOperators = n2.LogicalOperators = n2.GeneralComparisonOperators = n2.RuleType = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("CalcEngine"), a = e2("./dist/plugins/conditional/conditional.ns.js"), u = e2("CalcEngine"), s = e2("Core"), c = e2("SheetsCalc"), f = e2("./dist/plugins/conditional/conditionalFormatIcon.js"), l = s.UsedRangeUtil.vh, h = s.UsedRangeUtil.hh, d = s.XFileConstants.Au, v = s.XFileConstants.ju, p = s.Util.mr, g = i2.Common.zf.I5, m = r.GC$, b = i2.Common.zf, y = null, w = void 0, M = "undefined", C = "string", S = "true", T = Math.min, x = Math.max, A = Math.abs, I = Math.floor, k = Math.ceil, N = o.Convert, j = N.q8, D = N.uJ, _ = N.sJ, O = i2.Common.zf, E = O.cJ, R = O.fJ, L = O.dT, F = O.OS, B = i2.Common.lt.ht, P = i2.Common.$T, G = i2.Common.ut, U = r.mt, H = U.t1, V = s.mt.getFormulaString, z = U.vo, Y = U.go, Z = U.h1, W = U.d1, Q = U.xr, K = U.g1, J = U.n1, X = U.Hue, q = U.c1, $ = s.range_parser.Dc, tt = s.range_parser.getRangeString, nt = r.$e, et = U.G0, it = U.C1, rt = U.z0, ot = !!o, at = r.Style, ut = i2.Common.ft, st = ut.j, ct = r.Ec, ft = r.Range, lt = i2.Common.ct, ht = i2.Common.Uf, dt = ht.VP, vt = ht.hD, pt = ht.tR, gt = o.Functions, mt = o.evaluateOperator, bt = r.Pf, yt = s.Util.no, wt = Array.isArray, Mt = s.NodeHelper.ur, Ct = new i2.Common.ResourceManager(a.SR, "ConditionalFormatting"), St = Ct.getResource.bind(Ct), Tt = function(t3) {
          return /[\f\n\r\t\v]/.test(t3);
        }, xt = function(t3) {
          var n3 = t3.row < 0 ? c.BAND_INDEX_CONST : t3.row, e3 = t3.col < 0 ? c.BAND_INDEX_CONST : t3.col;
          return (0, u.lJ)(y, y, n3, e3, n3 + t3.rowCount - 1, e3 + t3.colCount - 1);
        }, At = function(t3) {
          var n3;
          if (t3 instanceof o.Expression) n3 = t3;
          else if (t3 instanceof ft) n3 = xt(t3);
          else {
            if (!j(t3)) throw St().Exp_NotSupport;
            t3 = D(t3), isNaN(t3) || ((n3 = new o.Expression(2)).value = t3);
          }
          return n3;
        }, It = function(t3, n3, e3, i3) {
          var r2 = t3, o2 = n3, a2 = function(t4, n4, a3) {
            var u2, s2, c2 = this;
            return c2.hasOwnProperty("_ps") || (c2._ps = {}), u2 = c2._ps, 0 === arguments.length ? u2[r2] !== w ? i3 ? i3.call(c2, u2[r2]) : u2[r2] : o2 : (u2[r2] !== t4 && (s2 = u2[r2] !== w ? u2[r2] : o2, u2[r2] = t4, false !== n4 && e3 && e3.call(c2, t4, s2, a3), false !== a3 && Xn(r2, t4, s2) && c2.$Dr(r2, t4, s2)), c2);
          };
          return a2.isDefault = function(t4) {
            return t4 === o2;
          }, a2;
        }, kt = function(t3, n3, e3, i3) {
          var r2 = this;
          return e3 || (e3 = {}), n3 || (n3 = r2), B(r2.pivotTableName) || (e3.pivot = true), m.each(n3, (function(n4, o2) {
            var a2, u2, s2 = r2[o2];
            B(s2) || (a2 = s2.call(r2), "formula" === o2 ? (r2.getFormulaString ? a2 = r2.getFormulaString(t3, w, w, true) : r2.condition() && r2.condition().getFormulaString && (a2 = r2.condition().getFormulaString(t3, w, w, true)), a2 && (e3[o2] = a2)) : "style" === o2 && wt(a2) ? (u2 = a2.map((function(t4) {
              return t4.toJSON();
            })), e3[o2] = u2) : "iconCriteria" === o2 || "icons" === o2 ? e3[o2] = a2 : lt.W0(a2) ? e3[o2] = lt.Q0(a2) : a2 && a2.toJSON ? e3[o2] = a2.toJSON(t3, i3) : "priority" === o2 && (null == i3 ? void 0 : i3.isServer) ? B(a2) || (e3[o2] = a2) : "ranges" === o2 && a2 ? e3[o2] = a2.map((function(t4) {
              var n5;
              return null === (n5 = t4.toJSON) || void 0 === n5 ? void 0 : n5.call(t4);
            })) : B(a2) || s2.isDefault(a2) || (e3[o2] = a2));
          })), (null == i3 ? void 0 : i3.isServer) && (e3[s.ID_SYMBOL] = r2.jKe()), e3;
        }, Nt = function(t3, e3, i3, r2) {
          if (i3) {
            var o2 = this, a2;
            i3[s.ID_SYMBOL] && o2.assignId(i3[s.ID_SYMBOL]), e3 || (e3 = o2), m.each(e3, (function(e4, u2) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2;
              if (a2 = i3[u2], !B(a2)) if ("ranges" === u2) {
                for (a2 = ee(a2), s2 = [], c2 = 0; c2 < a2.length; c2++) f2 = a2[c2], s2.push(ct(f2.row, f2.col, zn(f2), Yn(f2)));
                o2.ranges(s2, false);
              } else if ("style" === u2) wt(a2) ? (l2 = a2.map((function(t4) {
                var n3 = new at();
                return n3.fromJSON(t4, r2), n3;
              })), o2.style(l2)) : ((h2 = new at()).fromJSON(a2, r2), o2.style(h2, false));
              else if ("iconCriteria" === u2) for (d2 = a2.length, v2 = 0; v2 < d2; v2++) p2 = a2[v2], o2.hJ[v2] = new On(p2.isGreaterThanOrEqualTo, p2.iconValueType, p2.iconValue);
              else if ("icons" === u2) for (g2 = a2.length, b2 = 0; b2 < g2; b2++) y2 = a2[b2], o2.iJ[b2] = { iconSetType: y2.iconSetType, iconIndex: y2.iconIndex };
              else "iconSetType" === u2 ? o2[u2](a2, true) : "item1" === u2 || "item2" === u2 ? (o2[u2]((0, n2.aJ)()), o2[u2]().fromJSON(a2, t3)) : "expected" === u2 ? m.getType(a2) !== C || 5 !== i3.conType && 13 !== i3.conType ? o2[u2](a2, false) : "/OADate(" === a2.substr(0, 8) ? o2[u2](lt.dJ(a2), false) : o2[u2](new Date(a2)) : "condition" === u2 ? ((w2 = new mn()).fromJSON(a2, t3), o2.condition(w2)) : m.getType(a2) === C && "/OADate(" === a2.substr(0, 8) ? o2[u2](lt.dJ(a2), false) : o2[u2](a2, false);
            }));
          }
        }, jt = r.Y8, m.extend(jt.prototype, { vJ: function(t3) {
          var n3, e3 = this, i3 = e3.G8;
          !i3 || !t3 && i3.originalConditionalRules || (n3 = e3.mJ.qK.map((function(t4) {
            return { rule: t4, ranges: t4.ranges().slice() };
          })), t3 ? i3.currentConditionalRules = n3 : i3.originalConditionalRules = n3);
        }, gJ: function(t3) {
          var n3 = this.mJ, e3 = this.Mf;
          e3.suspendPaint(), t3 && (0 === t3.length && n3.qK && 1 === n3.qK.length && n3.constructor.et(e3, "onRuleUpdated", { ranges: n3.qK[0].ranges() }), n3.qK = t3.map((function(t4) {
            var i3 = t4.rule, r2 = t4.ranges;
            return "Object" === i3.constructor.name && (i3 = n3.pJ(t4.rule, e3, false), r2 = r2.map((function(t5) {
              return new ft(t5.row, t5.col, t5.rowCount, t5.colCount);
            }))), i3.ranges(r2), n3.constructor.et(e3, "onRuleUpdated", { ranges: be(i3.ranges()) }), i3;
          })), n3.C8()), e3.resumePaint();
        }, bJ: function(t3, n3, e3) {
          this.vJ();
          var i3 = e3.affectRanges, r2 = e3.isFromTable, o2 = e3.ignoreExpand;
          this.mJ.JO(t3, n3, i3, r2, o2), this.vJ(true);
        }, yJ: function(t3, n3, e3, i3) {
          this.vJ(), this.mJ.xP(t3, n3, e3, i3), this.vJ(true);
        }, wJ: function(t3, n3, e3) {
          this.vJ();
          var i3 = e3.affectRanges, r2 = e3.isFromTable, o2 = e3.ignoreExpand;
          this.mJ.qO(t3, n3, i3, r2, o2), this.vJ(true);
        }, MJ: function(t3, n3, e3, i3) {
          this.vJ(), this.mJ.NP(t3, n3, e3, i3), this.vJ(true);
        }, CJ: function() {
          this.vJ(), this.mJ.dl(), this.vJ(true);
        }, SJ: function() {
          this.vJ(), this.mJ.C8();
        } }), jt.ch("conditionalFormat", { init: function() {
          this.mJ = new Pn(this.Mf);
        }, applyChanges: function(t3) {
          var n3, e3 = t3.changes, i3 = t3.isUndo;
          e3 && (n3 = i3 ? e3.originalConditionalRules : e3.currentConditionalRules) && this.gJ(n3);
        }, undo: function(t3) {
          var n3 = t3.originalConditionalRules;
          n3 && this.gJ(n3);
        }, dispose: function(t3) {
          var n3 = this, e3;
          false !== (t3 && t3.clearCache) && n3.mJ && (n3.mJ.L0(), n3.mJ = y);
        } }), Dt = { init: function() {
          this.conditionalFormats = this.Ut.mJ;
        }, getUsedRange: function(t3) {
          var n3, e3, i3;
          t3.type & s.UsedRangeType.conditionFormat && (i3 = (e3 = (n3 = this).conditionalFormats).getUsedRange(), l(t3.range, i3));
        }, dispose: function(t3) {
          if (false !== t3.clearCache) {
            var n3 = this.conditionalFormats;
            n3 && n3.TJ();
          }
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = t3.changeType, c2 = t3.row, f2 = zn(t3), l2 = t3.col, h2 = Yn(t3), d2 = t3.sheetArea, v2 = B(d2) || d2 === s.SheetArea.viewport, p2 = t3.ignoreExpand;
          null === (e3 = null === (n3 = this.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), o2 = this.Ut, a2 = this.tables, "addRows" === u2 && v2 ? o2.bJ(c2, f2, { affectRanges: a2 && a2.AJ(c2, -1, f2, -1, true), isFromTable: false, ignoreExpand: p2 }) : "deleteRows" === u2 && v2 ? o2.yJ(c2, f2) : "addColumns" === u2 && v2 ? o2.wJ(l2, h2, { ignoreExpand: p2 }) : "deleteColumns" === u2 && v2 && o2.MJ(l2, h2), null === (r2 = null === (i3 = this.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3), "clear" === u2 ? o2.CJ() : "setColumnCount" !== u2 && "setRowCount" !== u2 || 3 !== d2 && 1 !== d2 || o2.SJ();
        }, onLayoutChangedFromOp: function(t3) {
          var n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = t3.sheetArea, u2 = B(a2) || a2 === s.SheetArea.viewport, c2 = t3.ignoreExpand, f2 = this.Ut, l2 = this.tables;
          "addRows" === n3 && u2 ? f2.bJ(e3, i3, { affectRanges: l2 && l2.AJ(e3, -1, i3, -1, true), isFromTable: false, ignoreExpand: c2 }) : "deleteRows" === n3 && u2 ? f2.yJ(e3, i3) : "addColumns" === n3 && u2 ? f2.wJ(r2, o2, { ignoreExpand: c2 }) : "deleteColumns" === n3 && u2 && f2.MJ(r2, o2);
        }, toJson: function(t3, n3) {
          var e3 = this.conditionalFormats, i3 = n3 && n3.ignoreStyle;
          e3 && !i3 && (this.lyt = true, t3.conditionalFormats = e3.toJSON(this, n3), delete this.lyt);
        }, fromJson: function(t3, n3, e3) {
          var i3 = e3 && e3.ignoreStyle;
          t3 && t3.conditionalFormats && !i3 && this.conditionalFormats.fromJSON(t3.conditionalFormats, this, n3, true);
        }, wh: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, f2, l2, h2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = e3 && false === e3.includeStyles, S2 = M2.conditionalFormats;
          if (!C2 && S2 && c && !M2.NMi && (i3 = S2.qK) && i3.length > 0) {
            for (M2.lyt = true, r2 = n3.styleManager, o2 = t3.c_, a2 = [], u2 = void 0, f2 = void 0, l2 = void 0, h2 = 0, v2 = i3.length; h2 < v2; h2++) g2 = (p2 = i3[h2]).ruleType(), m2 = true, Ce(p2) || Me(p2) ? (a2.push(p2.IJ()), Ce(p2) && (m2 = false)) : g2 === _t.formulaRule && U.e1(p2.D5, M2.name(), M2.parent && M2.parent.r4()) && (u2 || (f2 = new s.SimpleSharedStrings(), l2 = new s.SimpleSharedStrings(), u2 = new s.SharedDxfs(f2, l2)), a2.push(p2.IJ(u2)), m2 = false), Se(p2) ? (t3.lossless || (t3.lossless = {}), t3.lossless.stateRules || (t3.lossless.stateRules = []), t3.lossless.stateRules.push(p2.toJSON())) : m2 && (b2 = p2.wh(r2, void 0, void 0, e3, M2)) && (b2.lossless ? (t3.lossless.dateOccurringRules || (t3.lossless.dateOccurringRules = []), t3.lossless.dateOccurringRules.push(b2.lossless)) : o2.push(b2));
            a2.length > 0 && (w2 = { n_: "ext", r_: [1, 3], c_: [{ n_: "conditionalFormattings", c_: a2 }] }, (y2 = Q(t3, d)).c_.push(w2), u2 && (y2.lossless = { sharedDxfs: u2.iv(), sharedColors: f2.wh(), commonSharedStrings: l2.wh() })), delete M2.lyt;
          }
        }, yh: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, f2 = this, l2 = e3 && false === e3.includeStyles, h2 = this.conditionalFormats, p2 = h2.qK, g2 = s.Util.Co(e3), m2 = /* @__PURE__ */ new Map();
          if (c && h2 && !l2) {
            for (h2.cao(), i3 = Y(t3, v), r2 = Q(t3, d), o2 = X(r2, "conditionalFormattings"), a2 = n3.styleManager, i3 && i3.length > 0 && i3.forEach((function(t4) {
              var i4, r3 = s.NodeHelper.ur(t4.pivot), o3 = ie(t4.sqref);
              g2 && s.Util.Ao(f2, o3, true, n3), (i4 = t4.c_).forEach((function(t5) {
                var n4 = o3.map((function(t6) {
                  return new ft(t6.row, t6.col, t6.rowCount, t6.colCount);
                })), i5 = h2.xJ(t5, n4, a2, f2, e3);
                i5 && (i5.pivot = r3, B(t5.priority) || i5.priority(+t5.priority), p2.push(i5), h2._Jt[i5.jKe()] = i5, te(i5, m2));
              }));
            })), h2.NJ(o2, n3, f2, p2, r2, m2, g2, e3.fileType), m2.clear(), u2 = p2.length - 1; u2 > -1; u2--) p2[u2].pivot && p2.splice(u2, 1);
            t3.lossless && t3.lossless.stateRules && t3.lossless.stateRules.length > 0 && t3.lossless.stateRules.forEach((function(t4) {
              var n4 = new Bn();
              n4.fromJSON(t4, f2), h2.qK.push(n4), h2._Jt[n4.jKe()] = n4;
            })), t3.lossless && t3.lossless.dateOccurringRules && t3.lossless.dateOccurringRules.length > 0 && t3.lossless.dateOccurringRules.forEach((function(t4) {
              var n4 = new Tn();
              n4.fromJSON(t4, f2), h2.qK.push(n4), h2._Jt[n4.jKe()] = n4;
            })), h2.nJ = !me(h2.qK), h2.fao();
          }
        }, fromJsonAfterSJSFormula: function() {
          this.conditionalFormats.dl();
        } }, r.Worksheet.ch("conditionalFormat", Dt), r.Workbook.ch("conditionalFormat", { fromJson: function(t3, n3, e3) {
          this.sheets.forEach((function(t4) {
            t4.conditionalFormats && t4.conditionalFormats.getRules().forEach((function(t5) {
              t5.kJ();
            }));
          }));
        }, yh: function(t3, n3, e3) {
          this.sheets.forEach((function(t4) {
            t4.conditionalFormats && t4.conditionalFormats.getRules().forEach((function(t5) {
              t5.kJ();
            }));
          }));
        }, onCultureChanged: function() {
          St();
        } }), (function(t3) {
          t3[t3.conditionRuleBase = 0] = "conditionRuleBase", t3[t3.cellValueRule = 1] = "cellValueRule", t3[t3.specificTextRule = 2] = "specificTextRule", t3[t3.formulaRule = 3] = "formulaRule", t3[t3.dateOccurringRule = 4] = "dateOccurringRule", t3[t3.top10Rule = 5] = "top10Rule", t3[t3.uniqueRule = 6] = "uniqueRule", t3[t3.duplicateRule = 7] = "duplicateRule", t3[t3.averageRule = 8] = "averageRule", t3[t3.twoScaleRule = 10] = "twoScaleRule", t3[t3.threeScaleRule = 11] = "threeScaleRule", t3[t3.dataBarRule = 12] = "dataBarRule", t3[t3.iconSetRule = 13] = "iconSetRule", t3[t3.rowStateRule = 14] = "rowStateRule", t3[t3.columnStateRule = 15] = "columnStateRule";
        })(_t = n2.RuleType || (n2.RuleType = {})), (function(t3) {
          t3[t3.equalsTo = 0] = "equalsTo", t3[t3.notEqualsTo = 1] = "notEqualsTo", t3[t3.greaterThan = 2] = "greaterThan", t3[t3.greaterThanOrEqualsTo = 3] = "greaterThanOrEqualsTo", t3[t3.lessThan = 4] = "lessThan", t3[t3.lessThanOrEqualsTo = 5] = "lessThanOrEqualsTo";
        })(Ot = n2.GeneralComparisonOperators || (n2.GeneralComparisonOperators = {})), Et = [9, 10, 13, 14, 11, 12], (function(t3) {
          t3[t3.or = 0] = "or", t3[t3.and = 1] = "and";
        })(Rt = n2.LogicalOperators || (n2.LogicalOperators = {})), (function(t3) {
          t3[t3.equalsTo = 0] = "equalsTo", t3[t3.notEqualsTo = 1] = "notEqualsTo", t3[t3.greaterThan = 2] = "greaterThan", t3[t3.greaterThanOrEqualsTo = 3] = "greaterThanOrEqualsTo", t3[t3.lessThan = 4] = "lessThan", t3[t3.lessThanOrEqualsTo = 5] = "lessThanOrEqualsTo", t3[t3.between = 6] = "between", t3[t3.notBetween = 7] = "notBetween";
        })(Lt = n2.ComparisonOperators || (n2.ComparisonOperators = {})), (function(t3) {
          t3[t3.contains = 0] = "contains", t3[t3.doesNotContain = 1] = "doesNotContain", t3[t3.beginsWith = 2] = "beginsWith", t3[t3.endsWith = 3] = "endsWith";
        })(Ft = n2.TextComparisonOperators || (n2.TextComparisonOperators = {})), (function(t3) {
          t3[t3.equalsTo = 0] = "equalsTo", t3[t3.notEqualsTo = 1] = "notEqualsTo", t3[t3.beginsWith = 2] = "beginsWith", t3[t3.doesNotBeginWith = 3] = "doesNotBeginWith", t3[t3.endsWith = 4] = "endsWith", t3[t3.doesNotEndWith = 5] = "doesNotEndWith", t3[t3.contains = 6] = "contains", t3[t3.doesNotContain = 7] = "doesNotContain";
        })(Bt = n2.TextCompareType || (n2.TextCompareType = {})), (function(t3) {
          t3[t3.backgroundColor = 0] = "backgroundColor", t3[t3.foregroundColor = 1] = "foregroundColor";
        })(Pt = n2.ColorCompareType || (n2.ColorCompareType = {})), (function(t3) {
          t3[t3.empty = 0] = "empty", t3[t3.nonEmpty = 1] = "nonEmpty", t3[t3.error = 2] = "error", t3[t3.nonError = 3] = "nonError", t3[t3.formula = 4] = "formula";
        })(Gt = n2.CustomValueType || (n2.CustomValueType = {})), (function(t3) {
          t3[t3.equalsTo = 0] = "equalsTo", t3[t3.notEqualsTo = 1] = "notEqualsTo", t3[t3.before = 2] = "before", t3[t3.beforeEqualsTo = 3] = "beforeEqualsTo", t3[t3.after = 4] = "after", t3[t3.afterEqualsTo = 5] = "afterEqualsTo";
        })(Ut = n2.DateCompareType || (n2.DateCompareType = {})), (function(t3) {
          t3[t3.dateOccurring = 0] = "dateOccurring", t3[t3.yearOccurring = 1] = "yearOccurring", t3[t3.quarterOccurring = 2] = "quarterOccurring", t3[t3.monthOccurring = 3] = "monthOccurring", t3[t3.weekOccurring = 4] = "weekOccurring", t3[t3.dayOccurring = 5] = "dayOccurring", t3[t3.yearToDate = 6] = "yearToDate";
        })(Ht = n2.DateExConditionExpectType || (n2.DateExConditionExpectType = {})), (function(t3) {
          t3[t3.top = 0] = "top", t3[t3.bottom = 1] = "bottom";
        })(Vt = n2.Top10ConditionType || (n2.Top10ConditionType = {})), (function(t3) {
          t3[t3.today = 0] = "today", t3[t3.yesterday = 1] = "yesterday", t3[t3.tomorrow = 2] = "tomorrow", t3[t3.last7Days = 3] = "last7Days", t3[t3.thisMonth = 4] = "thisMonth", t3[t3.lastMonth = 5] = "lastMonth", t3[t3.nextMonth = 6] = "nextMonth", t3[t3.thisWeek = 7] = "thisWeek", t3[t3.lastWeek = 8] = "lastWeek", t3[t3.nextWeek = 9] = "nextWeek", t3[t3.nextQuarter = 10] = "nextQuarter", t3[t3.thisQuarter = 11] = "thisQuarter", t3[t3.lastQuarter = 12] = "lastQuarter", t3[t3.nextYear = 13] = "nextYear", t3[t3.thisYear = 14] = "thisYear", t3[t3.lastYear = 15] = "lastYear";
        })(zt = n2.DateOccurringType || (n2.DateOccurringType = {})), (function(t3) {
          t3[t3.quarter1 = 0] = "quarter1", t3[t3.quarter2 = 1] = "quarter2", t3[t3.quarter3 = 2] = "quarter3", t3[t3.quarter4 = 3] = "quarter4";
        })(Yt = n2.QuarterType || (n2.QuarterType = {})), (function(t3) {
          t3[t3.above = 0] = "above", t3[t3.below = 1] = "below", t3[t3.equalOrAbove = 2] = "equalOrAbove", t3[t3.equalOrBelow = 3] = "equalOrBelow", t3[t3.above1StdDev = 4] = "above1StdDev", t3[t3.below1StdDev = 5] = "below1StdDev", t3[t3.above2StdDev = 6] = "above2StdDev", t3[t3.below2StdDev = 7] = "below2StdDev", t3[t3.above3StdDev = 8] = "above3StdDev", t3[t3.below3StdDev = 9] = "below3StdDev";
        })(Zt = n2.AverageConditionType || (n2.AverageConditionType = {})), (function(t3) {
          t3[t3.number = 0] = "number", t3[t3.lowestValue = 1] = "lowestValue", t3[t3.highestValue = 2] = "highestValue", t3[t3.percent = 3] = "percent", t3[t3.percentile = 4] = "percentile", t3[t3.automin = 5] = "automin", t3[t3.formula = 6] = "formula", t3[t3.automax = 7] = "automax";
        })(Wt = n2.ScaleValueType || (n2.ScaleValueType = {})), (function(t3) {
          t3[t3.leftToRight = 0] = "leftToRight", t3[t3.rightToLeft = 1] = "rightToLeft";
        })(Qt = n2.BarDirection || (n2.BarDirection = {})), (function(t3) {
          t3[t3.automatic = 0] = "automatic", t3[t3.cellMidPoint = 1] = "cellMidPoint", t3[t3.none = 2] = "none";
        })(Kt = n2.DataBarAxisPosition || (n2.DataBarAxisPosition = {})), (function(t3) {
          t3[t3.threeArrowsColored = 0] = "threeArrowsColored", t3[t3.threeArrowsGray = 1] = "threeArrowsGray", t3[t3.threeTriangles = 2] = "threeTriangles", t3[t3.threeStars = 3] = "threeStars", t3[t3.threeFlags = 4] = "threeFlags", t3[t3.threeTrafficLightsUnrimmed = 5] = "threeTrafficLightsUnrimmed", t3[t3.threeTrafficLightsRimmed = 6] = "threeTrafficLightsRimmed", t3[t3.threeSigns = 7] = "threeSigns", t3[t3.threeSymbolsCircled = 8] = "threeSymbolsCircled", t3[t3.threeSymbolsUncircled = 9] = "threeSymbolsUncircled", t3[t3.fourArrowsColored = 10] = "fourArrowsColored", t3[t3.fourArrowsGray = 11] = "fourArrowsGray", t3[t3.fourRedToBlack = 12] = "fourRedToBlack", t3[t3.fourRatings = 13] = "fourRatings", t3[t3.fourTrafficLights = 14] = "fourTrafficLights", t3[t3.fiveArrowsColored = 15] = "fiveArrowsColored", t3[t3.fiveArrowsGray = 16] = "fiveArrowsGray", t3[t3.fiveRatings = 17] = "fiveRatings", t3[t3.fiveQuarters = 18] = "fiveQuarters", t3[t3.fiveBoxes = 19] = "fiveBoxes", t3[t3.noIcons = 20] = "noIcons";
        })(Jt = n2.IconSetType || (n2.IconSetType = {})), (function(t3) {
          t3[t3.number = 1] = "number", t3[t3.percent = 4] = "percent", t3[t3.formula = 7] = "formula", t3[t3.percentile = 5] = "percentile";
        })(Xt = n2.IconValueType || (n2.IconValueType = {})), (function(t3) {
          t3[t3.contains = 0] = "contains";
        })(qt || (qt = {})), (function(t3) {
          t3[t3.relationCondition = 0] = "relationCondition", t3[t3.numberCondition = 1] = "numberCondition", t3[t3.textCondition = 2] = "textCondition", t3[t3.colorCondition = 3] = "colorCondition", t3[t3.formulaCondition = 4] = "formulaCondition", t3[t3.dateCondition = 5] = "dateCondition", t3[t3.dateExCondition = 6] = "dateExCondition", t3[t3.textLengthCondition = 7] = "textLengthCondition", t3[t3.top10Condition = 8] = "top10Condition", t3[t3.uniqueCondition = 9] = "uniqueCondition", t3[t3.averageCondition = 10] = "averageCondition", t3[t3.cellValueCondition = 11] = "cellValueCondition", t3[t3.areaCondition = 12] = "areaCondition", t3[t3.timeCondition = 13] = "timeCondition", t3[t3.stateCondition = 14] = "stateCondition";
        })($t = n2.ConditionType || (n2.ConditionType = {})), (function(t3) {
          t3[t3.automatic = 0] = "automatic", t3[t3.middle = 1] = "middle", t3[t3.none = 2] = "none";
        })(tn || (tn = {})), (function(t3) {
          t3[t3.rule = 0] = "rule", t3[t3.validation = 1] = "validation", t3[t3.filter = 2] = "filter";
        })(nn = n2.ConditionParentType || (n2.ConditionParentType = {})), en = function(t3) {
          return new Date(t3.getFullYear(), t3.getMonth(), t3.getDate(), 0, 0, 0, 0);
        }, rn = function(t3) {
          return new Date(t3.getFullYear(), t3.getMonth(), t3.getDate(), 23, 59, 59, 999);
        }, on = function(t3, n3) {
          t3.setDate(n3);
        }, an = function(t3) {
          return t3.getDate();
        }, un = function(t3, n3) {
          return t3.getFullYear() === n3.getFullYear() && t3.getMonth() === n3.getMonth() && t3.getDate() === n3.getDate();
        }, sn = function(t3, n3) {
          var e3;
          return n3 > rn(t3);
        }, cn = function(t3, n3) {
          return n3 > t3;
        }, fn = function(t3, n3) {
          var e3;
          return n3 < en(t3);
        }, ln = function(t3, n3) {
          return n3 < t3;
        }, hn = function(t3, n3) {
          return t3.getHours() === n3.getHours() && t3.getMinutes() === n3.getMinutes() && t3.getSeconds() === n3.getSeconds() && t3.getMilliseconds() === n3.getMilliseconds();
        }, dn = function(t3, n3) {
          var e3 = new Date(1899, 11, 30, t3.getHours(), t3.getMinutes(), t3.getSeconds(), t3.getMilliseconds()), i3 = new Date(1899, 11, 30, n3.getHours(), n3.getMinutes(), n3.getSeconds(), n3.getMilliseconds());
          return i3 > e3;
        }, vn = function(t3, n3) {
          return !dn(t3, n3) && !hn(t3, n3);
        }, pn = function(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
          return new mn(t3, { compareType: n3, expected: e3, formula: i3, customValueType: r2, type: o2, ranges: a2, item1: u2, item2: s2 });
        }, n2.aJ = pn, n2.oJ = new at(), gn = ["conType", "compareType", "item1", "item2", "ignoreBlank", "preciseCompareDate", "expected", "formula", "treatNullValueAsZero", "integerValue", "forceValue2Text", "useWildCards", "ignoreCase", "customValueType", "expectTypeId", "type", "ranges", "isPercent", "regex"], mn = (function() {
          function t3(t4, n3) {
            var e3, i3;
            n3 || (n3 = {}), e3 = n3.formula, (i3 = this).assignId(), i3.L_r = new s.EventNotifier(), i3.offsetRow = 0, i3.offsetCol = 0, i3.conType("string" == typeof t4 ? $t[t4] : t4), B(n3.compareType) || i3.ZK(n3.compareType), B(n3.expected) || i3.expected(n3.expected), B(e3) || i3.formula("string" == typeof e3 ? E(m.trim(e3), "=") : e3), B(n3.item1) || i3.item1(n3.item1), B(n3.item2) || i3.item2(n3.item2), B(n3.customValueType) || i3.customValueType(n3.customValueType), B(n3.type) || i3.type(n3.type), i3.ranges(n3.ranges), i3.WK = y, i3.QK = y;
          }
          return t3.prototype.context = function(t4) {
            if (1 === arguments.length) {
              this.DJ = t4;
              var n3 = this.item1(), e3 = this.item2();
              n3 && n3.context && n3.context(t4), e3 && e3.context && e3.context(t4);
            }
            return this.DJ;
          }, t3.prototype.U0 = function(t4) {
            var n3 = this, e3 = n3.item1(), i3 = n3.item2();
            t4 ? n3.G3 = true : n3._J = true, e3 && e3.U0(t4), i3 && i3.U0(t4);
          }, t3.prototype.H0 = function() {
            var t4 = this, n3 = t4.item1(), e3 = t4.item2();
            delete t4.G3, delete t4._J, n3 && n3.H0(), e3 && e3.H0();
          }, t3.prototype.initExpression = function(n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2 = this.item1(), l2 = this.item2();
            f2 && f2.initExpression && f2.initExpression(), l2 && l2.initExpression && l2.initExpression(), n3 = n3 || this.DJ, r2 = this.D5, n3 && r2 && !this.WK && (this.ranges() ? (e3 = (o2 = rt(this.ranges())).r, i3 = o2.c) : (e3 = e3 || 0, i3 = i3 || 0), a2 = n3.getCalcService(), u2 = n3.Uw(), a2 && u2 && (s2 = false, this.G3 && (s2 = !this._J), this.WK = a2.parse(u2, r2, e3, i3, false, true, s2), c2 = { expr: this.WK, baseRow: e3, baseCol: i3 }, t3.et(u2.getSheet(), "initConditionExpression", c2)));
          }, t3.prototype.expression = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            return 1 === arguments.length ? (this.WK = t4, n3 = n3 || this.DJ, r2 = this.D5, t4 ? n3 && (this.ranges() ? (e3 = (o2 = rt(this.ranges())).r, i3 = o2.c) : (e3 = e3 || 0, i3 = i3 || 0), a2 = n3.getCalcService(), u2 = n3.Uw(), a2 && u2 && (this.D5 = a2.unparse(u2, t4, e3, i3))) : this.D5 = t4, this.D5 !== r2 && this.$Dr("formula", this.D5, r2), this.WK) : (this.WK || this.initExpression(n3, e3, i3), this.WK);
          }, t3.prototype.getFormulaString = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2;
            return t4 = t4 || this.DJ, r2 = this.WK, o2 = this.D5, t4 && o2 ? (r2 || (this.initExpression(t4, n3, e3), r2 = this.WK), o2 && (r2.value && 14 === r2.value.type || r2.value2 && 14 === r2.value2.type) ? o2 : (a2 = rt(this.ranges()), n3 = B(n3) ? a2.r : n3, e3 = B(e3) ? a2.c : e3, u2 = t4.lyt, c2 = t4.getCalcService().unparse(t4.Uw(), r2, n3, e3, w, !!i3 || u2), u2 && (c2 = s.Util.addXLFNPrefix(c2)), c2)) : o2;
          }, t3.prototype.formula = function(t4, n3, e3) {
            var i3, r2, o2;
            if ("string" != typeof t4) return r2 = this.item1(), o2 = this.item2(), 0 === e3 && r2 && r2.formula ? r2.formula(t4, n3, e3) : 1 === e3 && o2 && o2.formula ? o2.formula(t4, n3, e3) : this.getFormulaString(w, t4, n3);
            i3 = this.D5, this.D5 = t4, this.WK = y, this.D5 !== i3 && this.$Dr("formula", this.D5, i3);
          }, t3.prototype.adjustOffset = function(t4, n3) {
            var e3 = this, i3 = e3.item1();
            i3 && i3.adjustOffset && i3.adjustOffset(t4, n3), (i3 = e3.item2()) && i3.adjustOffset && i3.adjustOffset(t4, n3), e3.offsetRow = t4, e3.offsetCol = n3;
          }, t3.prototype.relationConditionEvaluate = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2 = this;
            function f2(i4, r3) {
              if (t4 && i4 && 3 === i4.conType()) {
                var o3 = t4.getActualStyle(n3, e3, 3, true);
                o3 && (0 === i4.ZK() ? r3 = o3.backColor : 1 === i4.ZK() && (r3 = o3.foreColor));
              }
              return r3;
            }
            function l2(t5, n4) {
              if (t5) return t5.ignoreBlank(c2.ignoreBlank()), arguments.length < 5 ? f2(t5, i3) : n4;
            }
            function h2(i4, r3) {
              return !B(i4) && i4.evaluate(t4, n3, e3, r3);
            }
            return o2 = l2(c2.item1(), i3), a2 = l2(c2.item2(), r2), (u2 = h2(c2.item1(), o2) ? 1 : 0) + (s2 = h2(c2.item2(), a2) ? 1 : 0) > c2.ZK();
          }, t3.prototype.cellValueConditionEvaluate = function(t4, n3, e3, i3) {
            var r2 = this.getExpected(t4, n3, e3);
            return !(r2 !== y || !t4 || !t4.EJ) || this.cellValueConditionCheckCondition(r2, i3);
          }, t3.prototype.cellValueConditionCheckCondition = function(t4, n3) {
            var e3, i3, r2, a2, u2 = this, s2 = 0, c2 = false, f2 = u2.ZK();
            if (B(n3) && B(t4)) switch (f2) {
              case Ot.equalsTo:
              case Ot.greaterThanOrEqualsTo:
              case Ot.lessThanOrEqualsTo:
                return true;
              case Ot.notEqualsTo:
              case Ot.greaterThan:
              case Ot.lessThan:
              default:
                return false;
            }
            if (e3 = Et[f2], o.ExcelCompatibleCalcMode) return mt(e3, n3, t4);
            if ("boolean" == typeof t4 || "boolean" == typeof n3) return qn(f2, n3, t4);
            if (i3 = {}, B(n3)) u2.treatNullValueAsZero() ? c2 = true : s2 = n3;
            else {
              if (typeof n3 === C && "number" == typeof t4) return qn(f2, 1, 0);
              "boolean" != typeof n3 && _(n3, i3) && (s2 = i3.value, c2 = !isNaN(s2));
            }
            return r2 = 0, a2 = false, ("number" == typeof t4 || t4 && "string" == typeof t4 && !Zn(t4)) && _(t4, i3) && (r2 = i3.value, a2 = true), c2 ? a2 ? qn(f2, s2, r2) : mt(e3, n3, t4) : "string" == typeof n3 ? a2 ? mt(e3, n3, r2) : "string" == typeof t4 ? mt(e3, n3, t4) : 1 === f2 : !!B(n3) && f2 === Ot.notEqualsTo;
          }, t3.prototype.numberConditionEvaluate = function(t4, n3, e3, i3) {
            var r2 = this.numberConditionGetExpected(t4, n3, e3);
            return !(r2 !== y || !t4 || !t4.EJ) || (this.integerValue() && (r2 = isNaN(r2) ? y : r2 > 0 ? I(r2) : k(r2)), this.numberConditionCheckCondition(r2, i3));
          }, t3.prototype.numberConditionCheckCondition = function(t4, n3) {
            var e3, i3, r2 = this;
            if ((B(n3) || "" === n3) && r2.ignoreBlank()) return true;
            if (B(t4)) {
              if (r2.ignoreBlank()) return true;
              t4 = 0;
            }
            try {
              e3 = B(n3) ? 0 : "string" == typeof n3 ? s.mt.Xf(y, n3, true) : parseFloat(n3);
            } catch (t5) {
              return false;
            }
            return "number" == typeof e3 && ((!r2.integerValue() || (i3 = e3 - I(e3) === 0)) && qn(r2.ZK(), e3, t4));
          }, t3.prototype.numberConditionGetExpected = function(t4, n3, e3) {
            var i3, r2 = this;
            return r2.D5 && r2.D5.length > 0 && (i3 = t4.op()) ? i3.evaluate(t4.Uw(), r2.expression(y, t4), n3, e3) : r2.expected();
          }, t3.prototype.textConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this, s2 = u2.compareType(), c2 = u2.ignoreCase();
            function f2(t5, n4) {
              return u2.testTextByCondition(n4, t5, "^", "$", (function() {
                return c2 ? t5.toLowerCase() === n4.toLowerCase() : t5 === n4;
              }));
            }
            function l2(t5, n4) {
              return u2.testTextByCondition(n4, t5, "^", "", (function() {
                return R(n4, t5, c2);
              }));
            }
            function h2(t5, n4) {
              return u2.testTextByCondition(n4, t5, "", "$", (function() {
                return L(n4, t5, c2);
              }));
            }
            function d2(t5, n4) {
              return u2.testTextByCondition(n4, t5, "", "", (function() {
                return F(n4, t5 === w || t5 === y ? "" : t5, c2);
              }));
            }
            if (!u2.forceValue2Text() && G(i3, Date)) return s2 !== Bt.beginsWith && s2 !== Bt.endsWith && s2 !== Bt.contains && (s2 === Bt.doesNotBeginWith || s2 === Bt.doesNotEndWith || s2 === Bt.doesNotContain);
            if (r2 = B(i3) ? "" : i3.toString(), u2.ignoreBlank() && "" === r2) return true;
            if (o2 = this.getExpected(t4, n3, e3), a2 = B(o2) ? "" : o2.toString(), u2.hasWildcard(a2) && "number" == typeof i3) return s2 === Bt.doesNotBeginWith || s2 === Bt.doesNotContain || s2 === Bt.doesNotEndWith || s2 === Bt.notEqualsTo;
            switch (s2) {
              case Bt.equalsTo:
                return f2(a2, r2);
              case Bt.notEqualsTo:
                return !f2(a2, r2);
              case Bt.beginsWith:
                return l2(a2, r2);
              case Bt.doesNotBeginWith:
                return !l2(a2, r2);
              case Bt.endsWith:
                return h2(a2, r2);
              case Bt.doesNotEndWith:
                return !h2(a2, r2);
              case Bt.contains:
                return d2(a2, r2);
              case Bt.doesNotContain:
                return !d2(a2, r2);
              default:
                return false;
            }
          }, t3.prototype.hasWildcard = function(t4) {
            return t4.indexOf("*") > -1 || t4.indexOf("?") > -1;
          }, t3.prototype.testTextByCondition = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this.useWildCards();
            return a2 ? this.regex() ? P.qT(this.regex()).test(t4) : (o2 = P.jJ(n3)) ? (o2 = e3 + o2 + i3, this.ignoreCase() ? P.OJ(o2).test(t4) : P.qT(o2).test(t4)) : r2() : r2();
          }, t3.prototype.colorConditionEvaluate = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2;
            function c2(n4) {
              return B(n4) || "" === n4 ? y : ne(t4, n4);
            }
            if (a2 = c2((o2 = this).expected()), B(a2) || "" === a2) {
              if (o2.ignoreBlank() || B(a2) && B(r2)) return true;
            } else if (u2 = c2(r2), (B(u2) || "" === u2) && t4 && t4.getDefaultStyle && (s2 = t4.getDefaultStyle(), o2.ZK() === Pt.backgroundColor ? u2 = s2.backColor : o2.ZK() === Pt.foregroundColor && (u2 = s2.foreColor)), !B(u2) && "" !== u2) return i2.Common.ft.Tv(u2, a2);
            return false;
          }, t3.prototype.formulaConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2;
            if (!ot) return false;
            if ((r2 = this).customValueType() === Gt.formula) return (a2 = r2.DJ && r2.DJ.getDataSource && r2.DJ.getDataSource()) && a2.RJ && (t4.Uw().DJ = a2.RJ(n3)), u2 = r2.getExpected(t4, n3, e3), !(!r2.ignoreBlank() || !B(u2) && "" !== u2) || (!o.ExcelCompatibleCalcMode || "0" !== u2) && re(u2);
            switch (s2 = N.BJ, r2.customValueType()) {
              case Gt.empty:
                return B(i3) || "" === i3;
              case Gt.nonEmpty:
                return !B(i3) && "" !== i3;
              case Gt.error:
                return s2(i3);
              case Gt.nonError:
                return !s2(i3);
              default:
                return false;
            }
          }, t3.prototype.formulaConditionGetExpected = function(t4, n3, e3) {
            var i3, r2, o2, a2, s2, c2, f2, l2, h2 = this;
            if (h2.D5 && h2.D5.length > 0) {
              if (!(i3 = t4.op())) return h2.expected();
              if (r2 = t4.Uw(), o2 = i3.evaluateParsedFormula(r2, h2.expression(w, t4), (0, u.eV)(n3, e3), true), a2 = void 0, s2 = void 0, c2 = void 0, f2 = void 0, l2 = void 0, N.LE(o2)) {
                for (a2 = o2.getRowCount(0), s2 = o2.getColumnCount(0), c2 = [], f2 = 0; f2 < a2; f2++) for (c2[f2] = [], l2 = 0; l2 < s2; l2++) c2[f2][l2] = o2.getValue(0, f2, l2);
                o2 = c2;
              } else if (N.Nh(o2)) {
                for (a2 = o2.getRowCount(), s2 = o2.getColumnCount(), c2 = [], f2 = 0; f2 < a2; f2++) for (c2[f2] = [], l2 = 0; l2 < s2; l2++) c2[f2][l2] = o2.getValue(f2, l2);
                o2 = c2;
              }
              return G(o2, Array) ? o2[0][0] : o2;
            }
            return h2.expected();
          }, t3.prototype.dateOrTimeEvaluate = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2 = this;
            if ((B(i3) || "" === i3) && f2.ignoreBlank()) return true;
            if (u2 = i3, !G(i3, Date)) {
              if (f2.ZK() === Ut.notEqualsTo) return true;
              if (!B(i3)) return false;
              u2 = lt.Y0(0);
            }
            if (s2 = y, c2 = this.getExpected(t4, n3, e3), G(c2, Date) ? s2 = c2 : "string" == typeof c2 ? s2 = lt.yU(c2) : "number" == typeof c2 && (s2 = lt.Y0(c2)), B(s2)) return !!f2.ignoreBlank();
            switch (f2.ZK()) {
              case Ut.equalsTo:
                return r2(s2, u2);
              case Ut.notEqualsTo:
                return !r2(s2, u2);
              case Ut.after:
                return a2(s2, u2);
              case Ut.afterEqualsTo:
                return a2(s2, u2) || r2(s2, u2);
              case Ut.before:
                return o2(s2, u2);
              case Ut.beforeEqualsTo:
                return o2(s2, u2) || r2(s2, u2);
              default:
                return false;
            }
          }, t3.prototype.dateConditionEvaluate = function(t4, n3, e3, i3) {
            var r2 = this.preciseCompareDate();
            return this.dateOrTimeEvaluate(t4, n3, e3, i3, un, r2 ? ln : fn, r2 ? cn : sn);
          }, t3.prototype.timeConditionEvaluate = function(t4, n3, e3, i3) {
            return this.dateOrTimeEvaluate(t4, n3, e3, i3, hn, vn, dn);
          }, t3.prototype.dateExConditionEvaluate = function(t4, n3, e3, i3) {
            var r2 = this.LJ(t4, n3, e3);
            return !B(r2) && this.dateExConditionCheckCondition(r2, i3);
          }, t3.prototype.getExConditionDateScope = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2 = y, L2 = y, F2 = /* @__PURE__ */ new Date(), B2 = new Date(F2.getFullYear(), F2.getMonth(), F2.getDate(), F2.getHours(), F2.getMinutes(), F2.getSeconds(), F2.getMilliseconds());
            switch (t4) {
              case zt.last7Days:
                on(B2, an(B2) - 6), R2 = en(B2), L2 = rn(F2);
                break;
              case zt.yesterday:
                on(B2, an(B2) - 1), R2 = en(B2), L2 = rn(B2);
                break;
              case zt.today:
                R2 = en(F2), L2 = rn(F2);
                break;
              case zt.tomorrow:
                on(B2, an(B2) + 1), R2 = en(B2), L2 = rn(B2);
                break;
              case zt.lastWeek:
                on(n3 = F2, an(F2) - F2.getDay() - 7), (e3 = B2).setDate(an(B2) - B2.getDay() - 1), R2 = en(n3), L2 = rn(e3);
                break;
              case zt.thisWeek:
                on(i3 = F2, an(F2) - F2.getDay()), on(r2 = B2, an(B2) - B2.getDay() + 6), R2 = en(i3), L2 = rn(r2);
                break;
              case zt.nextWeek:
                on(o2 = F2, an(F2) - F2.getDay() + 7), on(a2 = B2, an(B2) - B2.getDay() + 13), R2 = en(o2), L2 = rn(a2);
                break;
              case zt.lastMonth:
                on(u2 = F2, 1), u2.setMonth(F2.getMonth() - 1), on(s2 = B2, 0), R2 = en(u2), L2 = rn(s2);
                break;
              case zt.thisMonth:
                on(c2 = F2, 1), on(f2 = B2, 1), f2.setMonth(B2.getMonth() + 1), on(f2, 0), R2 = en(c2), L2 = rn(f2);
                break;
              case zt.nextMonth:
                on(l2 = F2, 1), l2.setMonth(F2.getMonth() + 1), on(h2 = B2, 1), h2.setMonth(B2.getMonth() + 2), on(h2, 0), R2 = en(l2), L2 = rn(h2);
                break;
              case zt.nextQuarter:
                p2 = (v2 = (d2 = F2).getMonth()) % 3, d2.setDate(1), d2.setMonth(v2 - p2 + 3), m2 = void 0, (g2 = B2).setDate(1), g2.setMonth(v2 - p2 + 3 + 2), m2 = 2 === g2.getMonth() || 11 === g2.getMonth() ? 31 : 30, g2.setDate(m2), R2 = en(d2), L2 = rn(g2);
                break;
              case zt.thisQuarter:
                M2 = (w2 = (b2 = F2).getMonth()) % 3, b2.setDate(1), b2.setMonth(w2 - M2), S2 = void 0, (C2 = B2).setDate(1), C2.setMonth(w2 - M2 + 2), S2 = 2 === C2.getMonth() || 11 === C2.getMonth() ? 31 : 30, C2.setDate(S2), R2 = en(b2), L2 = rn(C2);
                break;
              case zt.lastQuarter:
                A2 = (x2 = (T2 = F2).getMonth()) % 3, T2.setDate(1), T2.setMonth(x2 - A2 - 3), k2 = void 0, (I2 = B2).setDate(1), I2.setMonth(x2 - A2 - 3 + 2), k2 = 2 === I2.getMonth() || 11 === I2.getMonth() ? 31 : 30, I2.setDate(k2), R2 = en(T2), L2 = rn(I2);
                break;
              case zt.nextYear:
                (N2 = F2).setDate(1), N2.setFullYear(N2.getFullYear() + 1), N2.setMonth(0), (j2 = B2).setFullYear(j2.getFullYear() + 1), j2.setMonth(11), j2.setDate(31), R2 = en(N2), L2 = rn(j2);
                break;
              case zt.thisYear:
                (D2 = F2).setDate(1), D2.setMonth(0), (_2 = B2).setMonth(11), _2.setDate(31), R2 = en(D2), L2 = rn(_2);
                break;
              case zt.lastYear:
                (O2 = F2).setFullYear(O2.getFullYear() - 1), O2.setDate(1), O2.setMonth(0), (E2 = B2).setFullYear(E2.getFullYear() - 1), E2.setMonth(11), E2.setDate(31), R2 = en(O2), L2 = rn(E2);
            }
            return { from: R2, to: L2 };
          }, t3.prototype.dateExConditionCheckCondition = function(t4, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
            function p2(t5, n3) {
              switch (t5) {
                case Yt.quarter1:
                  return n3.getMonth() >= 0 && n3.getMonth() <= 2;
                case Yt.quarter2:
                  return n3.getMonth() >= 3 && n3.getMonth() <= 5;
                case Yt.quarter3:
                  return n3.getMonth() >= 6 && n3.getMonth() <= 8;
                case Yt.quarter4:
                  return n3.getMonth() >= 9 && n3.getMonth() <= 11;
                default:
                  return false;
              }
            }
            if (r2 = e3, (i3 = this).ignoreBlank() && (B(r2) || "" === r2)) return true;
            try {
              if (B(r2) && !i3.treatNullValueAsZero()) return false;
              r2 = N.r0(r2);
            } catch (t5) {
              return false;
            }
            if ((a2 = i3.expectTypeId()) === Ht.dateOccurring) {
              if (s2 = (u2 = this.getExConditionDateScope(t4)).from, c2 = u2.to, !B(s2) && !B(c2)) return f2 = (0, n2.aJ)($t.dateCondition, Ut.afterEqualsTo, s2, y), l2 = (0, n2.aJ)($t.dateCondition, Ut.beforeEqualsTo, c2, y), (h2 = (0, n2.aJ)($t.relationCondition, Rt.and, y, y, y, y, y, f2, l2)).evaluate(y, 0, 0, r2);
            } else if (o2 = i3.LJ(y, 0, 0), !B(o2)) {
              if (a2 === Ht.yearOccurring) return o2 === r2.getFullYear();
              if (a2 === Ht.quarterOccurring) return p2(o2, r2);
              if (a2 === Ht.monthOccurring) return o2 === r2.getMonth();
              if (a2 === Ht.weekOccurring) return o2 === r2.getDay();
              if (a2 === Ht.dayOccurring) return o2 === an(r2);
              if (a2 === Ht.yearToDate) return d2 = /* @__PURE__ */ new Date(), v2 = /* @__PURE__ */ new Date(), d2.setMonth(0, 1), d2.setHours(0, 0, 0, 0), v2.setHours(23, 59, 59, 999), d2 <= r2 && r2 <= v2;
            }
            return false;
          }, t3.prototype.textLengthConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2;
            return !(!B(i3) && "" !== i3 || !this.ignoreBlank()) || (r2 = B(i3) ? 0 : i3.toString().length, "number" == typeof (o2 = this.LJ(t4, n3, e3)) && qn(this.ZK(), r2, o2));
          }, t3.prototype.top10ConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this;
            if (B(i3) || "" === i3) return u2.ignoreBlank();
            if (r2 = u2.LJ(t4, n3, e3), !B(r2) && (o2 = void 0, u2.FJ ? (B(u2.PJ) && (u2.PJ = u2.getTopValues(t4, r2, u2.ranges())), o2 = u2.PJ) : o2 = u2.getTopValues(t4, r2, u2.ranges()), o2)) {
              a2 = 0;
              try {
                a2 = u2.uJ(i3);
              } catch (t5) {
                return false;
              }
              if (ht.OS(o2, a2)) return true;
            }
            return false;
          }, t3.prototype.LJ = function(t4, n3, e3) {
            var i3 = this.getExpected(t4, n3, e3);
            return i3 = parseInt(i3, 10), isNaN(i3) || !isFinite(i3) ? y : i3;
          }, t3.prototype.adjustRange = function(t4, n3) {
            return ct(t4.row, t4.col, Math.min(zn(t4), n3.getRowCount()), Math.min(Yn(t4), n3.getColumnCount()));
          }, t3.prototype.getTopValues = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = 0 === this.type() ? 1 : -1, d2 = [];
            if (!e3) return d2;
            for (i3 = this.GJ(t4, e3), r2 = pt(i3), c2 = 0; c2 < r2; c2++) for (o2 = this.adjustRange(i3[c2], t4), f2 = 0; f2 < zn(o2); f2++) for (a2 = f2 + o2.row, l2 = 0; l2 < Yn(o2); l2++) u2 = l2 + o2.col, s2 = this.uJ(t4.getValue(a2, u2)), B(s2) || d2.push(s2);
            return d2.sort((function(t5, n4) {
              return (n4 - t5) * h2;
            })), pt(d2) > n3 && (d2 = d2.slice(0, n3)), d2;
          }, t3.prototype.uJ = function(t4) {
            return ("number" == typeof t4 || G(t4, Date)) && ot ? D(t4) : y;
          }, t3.prototype.uniqueConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2 = this, f2 = i3;
            return B(f2) || "" === f2 ? c2.ignoreBlank() : (ot && j(f2) && !Tt(f2) && !s.mt.isInfinityNumberString(f2) && (f2 = D(f2)), r2 = this.getExpected(t4, n3, e3), o2 = {}, N.YK(r2, o2), a2 = o2.value, !B(a2) && (u2 = c2.duplicatedArrayCached || c2.getDuplicated(t4, c2.ranges()), !B(u2) && ht.OS(u2, f2) ? true === a2 : true !== a2));
          }, t3.prototype.getDuplicated = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2 = [], p2 = {}, g2 = this.GJ(t4, n3);
            if (g2) for (e3 = pt(g2), i3 = 0; i3 < e3; i3++) for (r2 = g2[i3], o2 = zn(r2 = this.adjustRange(r2, t4)), a2 = Yn(r2), u2 = 0; u2 < o2; u2++) for (c2 = u2 + r2.row, f2 = 0; f2 < a2; f2++) l2 = f2 + r2.col, h2 = t4.getValue(c2, l2, 3), B(h2) || !ot || !j(h2) || Tt(h2) || s.mt.isInfinityNumberString(h2) || (h2 = D(h2)), (d2 = p2[h2]) ? 1 === d2 && v2.push(h2) : p2[h2] = 1;
            return v2;
          }, t3.prototype.UJ = function(t4, n3) {
            var e3, i3 = t4.length;
            for (e3 = 0; e3 < i3; e3++) if (t4[e3].key === n3) return true;
            return false;
          }, t3.prototype.averageConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2;
            if (!ot) return false;
            if ((r2 = this).ignoreBlank() && (B(i3) || "" === i3)) return true;
            if (r2.HJ(), r2.FJ ? (B(r2.PJ) && (r2.PJ = r2.getExpected(t4, n3, e3)), o2 = r2.PJ) : o2 = r2.getExpected(t4, n3, e3), u2 = _(o2, a2 = {}) ? a2.value : NaN, s2 = y, c2 = r2.QK ? r2.zJ(t4, r2.QK, n3, e3) : y, B(c2) || (s2 = _(c2, a2 = {}) ? a2.value : NaN), isNaN(u2) || !j(i3, true)) return false;
            switch (f2 = D(i3), l2 = isNaN(s2), r2.type()) {
              case Zt.above:
                return f2 > u2;
              case Zt.below:
                return f2 < u2;
              case Zt.equalOrAbove:
                return f2 >= u2;
              case Zt.equalOrBelow:
                return f2 <= u2;
              case Zt.above1StdDev:
                return !l2 && f2 > u2 + s2;
              case Zt.below1StdDev:
                return !l2 && f2 < u2 - s2;
              case Zt.above2StdDev:
                return !l2 && f2 > u2 + 2 * s2;
              case Zt.below2StdDev:
                return !l2 && f2 < u2 - 2 * s2;
              case Zt.above3StdDev:
                return !l2 && f2 > u2 + 3 * s2;
              case Zt.below3StdDev:
                return !l2 && f2 < u2 - 3 * s2;
              default:
                return false;
            }
          }, t3.prototype.HJ = function() {
            var t4 = this;
            t4.ranges() && (t4.WK = t4.VJ("AVERAGE", t4.ranges()), t4.type() >= 4 && t4.type() <= 9 && (t4.QK = t4.VJ("STDEV", t4.ranges())));
          }, t3.prototype.VJ = function(t4, n3) {
            var e3, i3, r2, a2;
            if (!ot) return y;
            if (e3 = gt.findGlobalFunction(t4)) {
              for (i3 = [], r2 = pt(n3), a2 = 0; a2 < r2; a2++) i3[a2] = At(n3[a2]);
              return o.YJ(e3, i3);
            }
            return y;
          }, t3.prototype.averageConditionGetExpected = function(t4, n3, e3) {
            var i3 = t4.op();
            return i3 ? i3.evaluateParsedFormula(t4.Uw(), this.expression(w, t4), (0, u.eV)(n3, e3), false) : y;
          }, t3.prototype.ZJ = function() {
            var t4 = this.conType();
            t4 !== $t.averageCondition && t4 !== $t.top10Condition || (this.FJ = true);
          }, t3.prototype.WJ = function() {
            var t4 = this;
            t4.FJ = false, t4.PJ = w;
          }, t3.prototype.zJ = function(t4, n3, e3, i3) {
            var r2 = t4.op();
            return r2 ? r2.evaluateParsedFormula(t4.Uw(), n3, (0, u.eV)(e3, i3), false) : y;
          }, t3.prototype.QJ = function(t4, n3) {
            var e3, i3;
            for (i3 = 0; i3 < pt(n3); i3++) e3 = n3[i3], G(e3, Array) && pt(e3) > 0 ? pt(n3) > 1 ? t4.push(e3[0]) : t4.push.apply(t4, e3) : t4.push(e3);
          }, t3.prototype.getValidList = function(t4, n3, e3) {
            var i3, r2, o2 = [], a2 = this.getValidListImp(t4, n3, e3);
            for (i3 = 0, r2 = pt(a2); i3 < r2; i3++) o2.push(a2[i3].value);
            return o2;
          }, t3.prototype.KJ = function() {
            return this.D5 && this.D5.length > 0;
          }, t3.prototype.getValidListImp = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = [];
            if (l2.D5 && l2.D5.length > 0) i3 = l2.getExpected(t4, n3, e3), G(i3, Array) ? l2.QJ(h2, i3) : h2.push(i3);
            else if (l2.expected() && l2.expected().length > 0 && (a2 = (o2 = (r2 = l2.expected()).replace(/\\,/g, String.fromCharCode(206))).split(","))) for (u2 = 0; u2 < pt(a2); u2++) s2 = a2[u2], B(s2) || (c2 = new RegExp(String.fromCharCode(206), "g"), "" !== (f2 = m.trim(s2).replace(c2, ",")) && h2.push({ text: f2, value: f2 }));
            return h2;
          }, t3.prototype.areaConditionEvaluate = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            function f2(t5, n4, e4) {
              return G(t5, Date) && G(n4, Date) ? t5.valueOf() === n4.valueOf() : e4 || "string" != typeof t5 || "string" != typeof n4 ? t5 === n4 : t5.toLowerCase() === n4.toLowerCase();
            }
            if (r2 = this, B(i3) || "" === i3) return true === r2.ignoreBlank();
            for (o2 = r2.getValidList(t4, n3, e3), a2 = 0; a2 < pt(o2); a2++) {
              if (u2 = o2[a2], B(u2) && B(i3)) return true;
              if (r2.D5) {
                if (f2(u2, i3, false)) return true;
              } else if (s2 = t4.getActualStyle(n3, e3, 3, true), f2(c2 = U.Xf(s2, u2, true), i3, true)) return true;
            }
            return false;
          }, t3.prototype.areaConditionGetExpected = function(t4, n3, e3) {
            var i3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = [];
            if (m2.D5) {
              if (i3 = void 0, r2 = void 0, o2 = void 0, a2 = void 0, s2 = void 0, c2 = void 0, !(f2 = t4.op())) return b2;
              if (l2 = f2.evaluateParsedFormula(t4.Uw(), m2.expression(w, t4), (0, u.eV)(n3, e3), true), N.LE(l2)) for (i3 = l2.getRowCount(0), r2 = l2.getColumnCount(0), h2 = l2.getRow(0), d2 = l2.getColumn(0), (v2 = l2.rT && l2.rT.Mf) && (v2.nre && v2.nre(), p2 = v2.getRowCount(), g2 = v2.getColumnCount(), i3 = i3 > p2 ? x(p2 - h2, 0) : i3, r2 = r2 > g2 ? x(g2 - d2, 0) : r2), o2 = 0; o2 < i3; o2++) for (b2[o2] = [], a2 = 0; a2 < r2; a2++) s2 = l2.getValue(0, o2, a2), c2 = v2 ? v2.getText(h2 + o2, d2 + a2) : "" + s2, b2[o2][a2] = { value: s2, text: c2 };
              else if (N.Nh(l2)) for (i3 = l2.getRowCount(), r2 = l2.getColumnCount(), o2 = 0; o2 < i3; o2++) for (b2[o2] = [], a2 = 0; a2 < r2; a2++) s2 = l2.getValue(o2, a2), b2[o2][a2] = { value: s2, text: s2 };
            } else b2.push({ value: m2.expected(), text: m2.expected() });
            return b2;
          }, t3.prototype.stateConditionEvaluate = function(t4, n3, e3, i3) {
            var r2 = this.expected();
            return !(B(i3) || B(r2) || isNaN(i3) || isNaN(i3)) && (i3 & r2) > 0;
          }, t3.prototype.reset = function() {
            var t4 = this;
            switch (t4.ignoreBlank(false), t4.preciseCompareDate(false), t4.ZK(1), t4.item1(y), t4.item2(y), t4.value1 = y, t4.value2 = y, t4.expected(y), t4.ZK(0), t4.integerValue(false), t4.operator = 0, t4.text = "", t4.ZK(0), t4.useWildCards(true), t4.ignoreCase(false), t4.forceValue2Text(false), t4.customValueType(0), t4.WK = y, t4.type(0), this.expectTypeId(0), t4.ranges(y), t4.isPercent(false), t4.regex(y), t4.conType()) {
              case $t.relationCondition:
                t4.ignoreBlank(false), t4.ZK(1);
                break;
              case $t.numberCondition:
                t4.ZK(0), t4.integerValue(false);
                break;
              case $t.textCondition:
                t4.ZK(0), t4.useWildCards(true), t4.forceValue2Text(false);
                break;
              case $t.colorCondition:
                t4.ZK(0);
                break;
              case $t.formulaCondition:
                t4.customValueType(0), t4.QK = y;
                break;
              case $t.dateCondition:
              case $t.timeCondition:
                t4.ZK(0);
                break;
              case $t.dateExCondition:
                t4.expectTypeId(0);
                break;
              case $t.textLengthCondition:
                t4.ZK(0);
                break;
              case $t.top10Condition:
              case $t.averageCondition:
                t4.type(0);
                break;
              case $t.cellValueCondition:
                t4.operator = 6;
              case $t.areaCondition:
            }
          }, t3.prototype.evaluate = function(t4, n3, e3, i3) {
            var r2 = this.conType();
            return !B(r2) && this[$t[r2] + "Evaluate"](t4, n3, e3, i3);
          }, t3.prototype.getExpectedNormal = function(t4, n3, e3, i3, r2, o2) {
            var a2, s2 = this, c2 = s2.D5, f2 = s2.expected();
            return c2 && (a2 = t4.op()) ? a2.evaluateParsedFormula(t4.Uw(), s2.expression(w, t4), (0, u.eV)(n3, e3), false, o2) : f2;
          }, t3.prototype.getExpected = function(t4, n3, e3) {
            var i3 = this;
            switch (i3.conType()) {
              case 2:
              case 5:
              case 6:
              case 7:
              case 9:
              case 11:
              case 13:
                return i3.getExpectedNormal(t4, n3, e3, n3 - i3.offsetRow, e3 - i3.offsetCol, false);
              case 8:
                return i3.getExpectedNormal(t4, n3, e3, n3, e3);
              case 0:
              case 3:
              default:
                return y;
              case 1:
                return i3.numberConditionGetExpected(t4, n3, e3);
              case 4:
                return i3.formulaConditionGetExpected(t4, n3, e3);
              case 10:
                return i3.averageConditionGetExpected(t4, n3, e3);
              case 12:
                return i3.areaConditionGetExpected(t4, n3, e3);
            }
          }, t3.prototype.GJ = function(t4, n3) {
            var e3, i3, r2, o2 = [];
            for (e3 = 0, i3 = pt(n3); e3 < i3; e3++) r2 = t4.JS(n3[e3]), o2.push(r2);
            return o2;
          }, t3.prototype.getExpressions = function() {
            var t4 = [], n3 = this;
            return 0 === n3.conType() ? (n3.item1() && n3.item1().getExpressions && (t4 = n3.item1().getExpressions()), n3.item2() && n3.item2().getExpressions && (t4 = t4.concat(n3.item2().getExpressions())), t4) : (n3.WK || n3.initExpression(), n3.WK ? [n3.WK] : []);
          }, t3.prototype.setExpressions = function(t4, n3) {
            var e3 = this, i3;
            if (n3 && n3.push({ type: "condition", condition: this, expressions: e3.getExpressions(), newExpressions: t4 }), 0 === e3.conType()) return e3.item1() && e3.item1().setExpressions && (i3 = e3.item1().getExpressions().length, e3.item1().setExpressions(t4.slice(0, i3))), void (e3.item2() && e3.item2().setExpressions && e3.item2().setExpressions(t4.slice(i3)));
            e3.expression(t4[0]);
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3 = kt.call(this, t4, gn, w, n3);
            return e3.ignoreBlank && !isNaN(e3.ignoreBlank) && (e3.ignoreBlank = 0 !== parseInt(e3.ignoreBlank, 10)), e3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2;
            t4 && (i3 = this, Nt.call(i3, n3, gn, t4, e3), (r2 = n3 && n3.Lp && n3.Lp.useR1C1) && n3 instanceof s.Worksheet && (i3.context(n3), et(i3)), i3.U0(true), i3.initExpression(), i3.H0());
          }, t3.prototype.$Dr = function(t4, n3, e3) {
            var i3 = this, r2 = i3.L_r;
            null == r2 || r2.notify({ id: i3.jKe(), propName: t4, value: n3, old: e3 });
          }, t3.prototype.F_r = function(t4) {
            var n3;
            this.L_r.addListener(t4);
          }, t3.prototype.dEr = function() {
            var t4;
            this.L_r.destroy();
          }, t3.fromSource = function(t4) {
            return (0, n2.aJ)(12, y, t4, y);
          }, t3.fromFormula = function(t4) {
            return (0, n2.aJ)(12, y, "", t4);
          }, t3.fromDay = function(t4) {
            var e3 = (0, n2.aJ)(6, y, t4);
            return e3.expectTypeId(5), e3;
          }, t3.fromMonth = function(t4) {
            var e3 = (0, n2.aJ)(6, y, t4);
            return e3.expectTypeId(3), e3;
          }, t3.fromQuarter = function(t4) {
            var e3 = (0, n2.aJ)(6, y, t4);
            return e3.expectTypeId(2), e3;
          }, t3.fromWeek = function(t4) {
            var e3 = (0, n2.aJ)(6, y, t4);
            return e3.expectTypeId(4), e3;
          }, t3.fromYear = function(t4) {
            var e3 = (0, n2.aJ)(6, y, t4);
            return e3.expectTypeId(1), e3;
          }, t3;
        })(), n2.Condition = mn, nt(mn), (0, s.qDr)(mn), mn.prototype.conType = It("conType", y), mn.prototype.ranges = It("ranges", y, (function(t3) {
          var n3 = this.item1(), e3 = this.item2();
          n3 && n3.ranges && n3.ranges(t3), e3 && e3.ranges && e3.ranges(t3);
        })), mn.prototype.ignoreBlank = It("ignoreBlank", false), mn.prototype.preciseCompareDate = It("preciseCompareDate", false), mn.prototype.compareType = It("compareType", w), mn.prototype.ZK = mn.prototype.compareType, mn.prototype.expected = It("expected", w), mn.prototype.item1 = It("item1", y, oe), mn.prototype.item2 = It("item2", y, oe), mn.prototype.treatNullValueAsZero = It("treatNullValueAsZero", false), mn.prototype.integerValue = It("integerValue", false), mn.prototype.forceValue2Text = It("forceValue2Text", false), mn.prototype.useWildCards = It("useWildCards", true), mn.prototype.regex = It("regex", y), mn.prototype.ignoreCase = It("ignoreCase", false), mn.prototype.customValueType = It("customValueType", w), mn.prototype.expectTypeId = It("expectTypeId", 0), mn.prototype.type = It("type", y), mn.prototype.isPercent = It("isPercent", false), bn = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.assignId(), i3.KK = true, i3.ruleType(t4), i3.style(n3), i3.ranges(e3);
          }
          return t3.prototype.stopIfTrue = function(t4, n3, e3) {
          }, t3.prototype.$Dr = function(t4, n3, e3) {
            var i3 = this, r2 = i3.context();
            r2 && r2.$Dr({ type: "updateRule", id: i3.jKe(), propName: t4, value: n3, old: e3 });
          }, t3.prototype.evaluate = function(t4, e3, i3, r2) {
            var o2, a2, u2, s2, c2 = this, f2 = c2.JJ(e3, i3);
            return c2.zT(f2) ? (c2.initCondition(), o2 = { baseRow: 0, baseCol: 0 }, c2.getBaseCoordinate(o2), c2.condition().adjustOffset(e3 - o2.baseRow, i3 - o2.baseCol), a2 = y, u2 = N.BJ, (s2 = c2.condition().evaluate(t4, e3, i3, r2)) && !u2(s2) && (a2 = c2.getExpected(f2) || n2.oJ), c2.condition().adjustOffset(0, 0), a2) : y;
          }, t3.prototype.JJ = function(t4, n3) {
            return this.contains(t4, n3);
          }, t3.prototype.zT = function(t4) {
            return t4;
          }, t3.prototype.contains = function(t4, n3) {
            var e3, i3, r2, o2 = this.ranges();
            if (o2) {
              for (e3 = pt(o2), i3 = void 0, r2 = 0; r2 < e3; r2++) if ((i3 = o2[r2]).contains(t4, n3)) return true;
            }
            return false;
          }, t3.prototype.createCondition = function() {
            return this.KK = false, null;
          }, t3.prototype.initCondition = function(t4) {
            var n3 = this.condition();
            n3 || ((n3 = this.createCondition()) && (n3.ranges(this.ranges()), this.condition(n3)), t4 && this.context(t4), this.context() && n3 && n3.context(this.context()));
          }, t3.prototype.XJ = function() {
            var t4, n3 = this;
            n3.KK && ((t4 = n3.condition()) || (n3.initCondition(), t4 = n3.condition()), t4 && !t4.WK && t4.initExpression());
          }, t3.prototype.context = function(t4) {
            return 1 === arguments.length && (this.DJ = t4, this.condition() && this.condition().context(t4)), this.DJ;
          }, t3.prototype.getExpected = function(t4) {
            return this.style();
          }, t3.prototype.reset = function() {
            var t4 = this;
            t4.ranges(y), t4.condition(y), t4.style(y), t4.stopIfTrue(false), t4.priority(1);
          }, t3.prototype.intersects = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this.ranges();
            if (u2) {
              for (r2 = pt(u2), o2 = void 0, a2 = 0; a2 < r2; a2++) if ((o2 = u2[a2]).intersect(t4, n3, e3, i3)) return true;
            }
            return false;
          }, t3.prototype.isScaleRule = function() {
            return false;
          }, t3.prototype.isStateRule = function() {
            return false;
          }, t3.prototype.getBaseCoordinate = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            if (t4.baseRow = Number.MAX_VALUE, t4.baseCol = Number.MAX_VALUE, (i3 = (e3 = (n3 = this).ranges()) ? e3.length : 0) > 0) for (r2 = 0; r2 < i3; r2++) a2 = -1 === (a2 = (o2 = e3[r2]).row) ? 0 : a2, u2 = -1 === (u2 = o2.col) ? 0 : u2, t4.baseRow = T(a2, t4.baseRow), t4.baseCol = T(u2, t4.baseCol);
            else t4.baseRow = 0, t4.baseCol = 0;
          }, t3.prototype.qJ = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = false;
            if (v2.XJ(), i3 = be(v2.ranges())) {
              for (r2 = pt(i3), o2 = 0; o2 < r2; o2++) u2 = (a2 = i3[o2]).row, s2 = zn(a2), c2 = a2.col, f2 = Yn(a2), l2 = u2 === t4.row && s2 === t4.rowCount && t4.col <= c2 && f2 <= t4.colCount, h2 = u2 === n3.row && s2 === n3.rowCount && n3.col <= c2 && f2 <= n3.colCount, (d2 = l2 || h2) && (i3[o2] = ct(u2, c2, s2 + e3, f2), p2 = true);
              p2 && v2.ranges(i3);
            }
            return p2;
          }, t3.prototype.$J = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2 = this, k2 = e3 ? n3 : 0, N2 = e3 ? 0 : n3;
            if (I2.XJ(), a2 = be(I2.ranges())) {
              for (u2 = [], s2 = pt(a2), c2 = 0; c2 < s2; c2++) if (f2 = a2[c2], l2 = e3 ? f2.row : f2.col, h2 = e3 ? zn(f2) : Yn(f2), -1 !== l2) {
                if (i3 && i3.length > 0) {
                  for (d2 = false, v2 = 0, p2 = i3.length; v2 < p2; v2++) if ((g2 = i3[v2]) && (m2 = !e3 && g2.col === t4 && g2.col === f2.col && g2.colCount - n3 === f2.colCount, b2 = !e3 && g2.col === t4 && g2.row === f2.row && g2.rowCount === f2.rowCount && f2.col >= g2.col && f2.col + f2.colCount <= g2.col + g2.colCount, y2 = e3 && g2.row === t4 && g2.row === f2.row && g2.rowCount - n3 === f2.rowCount, m2 || b2 || y2)) {
                    a2[c2] = ct(f2.row, f2.col, zn(f2) + k2, Yn(f2) + N2), d2 = true;
                    break;
                  }
                  if (d2) break;
                }
                if (M2 = f2, C2 = r2 && i3 && i3[0]) {
                  if ((S2 = e3 ? ue(f2, C2.col, C2.col + C2.colCount - 1) : se(f2, C2.row, C2.row + C2.rowCount - 1))[0] && u2.push(S2[0]), S2[2] && u2.push(S2[2]), !S2[1]) continue;
                  M2 = S2[1];
                }
                l2 >= t4 ? a2[c2] = ct(M2.row + k2, M2.col + N2, zn(M2), Yn(M2)) : t4 < l2 + h2 ? a2[c2] = ct(M2.row, M2.col, zn(M2) + k2, Yn(M2) + N2) : t4 === l2 + h2 && (a2[c2] = ct(M2.row, M2.col, zn(M2) + (o2 ? 0 : k2), Yn(M2) + (o2 ? 0 : N2)));
              }
              for (T2 = 0, x2 = u2; T2 < x2.length; T2++) A2 = x2[T2], a2.push(A2);
              I2.ranges(a2, w, true);
            }
          }, t3.prototype.JO = function(t4, n3, e3, i3, r2) {
            this.$J(t4, n3, true, e3, i3, r2);
          }, t3.prototype.qO = function(t4, n3, e3, i3, r2) {
            this.$J(t4, n3, false, e3, i3, r2);
          }, t3.prototype.tX = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, x2 = this, A2 = e3 ? t4 : 0, I2 = e3 ? 0 : t4, k2 = e3 ? n3 : 0, N2 = e3 ? 0 : n3;
            if (x2.XJ(), o2 = be(x2.ranges())) {
              for (a2 = [], u2 = [], s2 = pt(o2), c2 = 0; c2 < s2; c2++) if (f2 = o2[c2], l2 = e3 ? f2.row : f2.col, h2 = e3 ? zn(f2) : Yn(f2), -1 !== l2) {
                if (d2 = f2, v2 = r2 && i3 && i3[0]) {
                  if ((p2 = e3 ? ue(f2, v2.col, v2.col + v2.colCount - 1) : se(f2, v2.row, v2.row + v2.rowCount - 1))[0] && a2.push(p2[0]), p2[2] && a2.push(p2[2]), !p2[1]) continue;
                  d2 = p2[1];
                }
                l2 > t4 ? l2 + h2 <= t4 + n3 ? u2.push(d2) : o2[c2] = ct(d2.row - k2, d2.col - N2, zn(d2), Yn(d2)) : t4 < l2 + h2 && (g2 = ct(d2.row, d2.col, zn(d2) - T(d2.row + zn(d2) - A2, k2), Yn(d2) - T(d2.col + Yn(d2) - I2, N2)), 0 === Yn(g2) || 0 === zn(g2) ? u2.push(d2) : o2[c2] = g2);
              }
              for (m2 = 0, b2 = a2; m2 < b2.length; m2++) y2 = b2[m2], o2.push(y2);
              for (M2 = pt(u2), C2 = 0; C2 < M2; C2++) S2 = u2[C2], dt(o2, S2);
              x2.ranges(o2, w, true);
            }
          }, t3.prototype.xP = function(t4, n3, e3, i3) {
            this.tX(t4, n3, true, e3, i3);
          }, t3.prototype.NP = function(t4, n3, e3, i3) {
            this.tX(t4, n3, false, e3, i3);
          }, t3.prototype.toJSON = function(t4, n3) {
            return kt.call(this, t4, w, w, n3);
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            t4 && (Nt.call(this, n3, y, t4, e3), this.initCondition(n3));
          }, t3.prototype.kJ = function() {
            var t4 = this.condition();
            t4 && et(t4);
          }, t3.prototype.nX = function() {
            var t4, n3, e3, i3 = this.JK, r2 = this.ranges();
            if (!i3) return this.JK = be(r2), false;
            if ((t4 = pt(i3)) !== (n3 = pt(r2))) return true;
            for (e3 = 0; e3 < n3; e3++) if (!i3[e3].equals(r2[e3])) return true;
            return false;
          }, t3;
        })(), n2.ConditionRuleBase = bn, (yn = bn.prototype).ruleType = It("ruleType", y), yn.ranges = It("ranges", y, (function(t3, n3, e3) {
          var i3, r2, o2 = this.DJ;
          o2 && o2.conditionalFormats.EHr(this, n3), (i3 = this.condition()) && (r2 = i3.ranges()) && Jn(t3, r2) && ((o2 = i3.DJ) && o2.Ut.vJ(), i3.ranges(t3, w, e3), o2 && o2.Ut.vJ(true));
        })), yn.condition = It("condition", y, (function(t3, n3) {
          if (n3 && n3.dEr(), t3) {
            var e3 = this;
            t3.F_r((function(t4) {
              e3.$Dr("conditionChange", t4);
            }));
          }
        })), yn.style = It("style", y, w), yn.priority = It("priority", 1), yn.stopIfTrue = It("stopIfTrue", false), (0, s.qDr)(bn), wn = ["ruleType", "style", "operator", "text", "formula", "type", "rank", "priority", "stopIfTrue", "ranges"], Mn = { today: 0, yesterday: 1, tomorrow: 2, last7Days: 3, thisMonth: 4, lastMonth: 5, nextMonth: 6, thisWeek: 7, lastWeek: 8, nextWeek: 9 }, Cn = { 0: "today", 1: "yesterday", 2: "tomorrow", 3: "last7Days", 4: "thisMonth", 5: "lastMonth", 6: "nextMonth", 7: "thisWeek", 8: "lastWeek", 9: "nextWeek" }, (function(t3) {
          t3[t3.equal = 0] = "equal", t3[t3.notEqual = 1] = "notEqual", t3[t3.greaterThan = 2] = "greaterThan", t3[t3.greaterThanOrEqual = 3] = "greaterThanOrEqual", t3[t3.lessThan = 4] = "lessThan", t3[t3.lessThanOrEqual = 5] = "lessThanOrEqual", t3[t3.between = 6] = "between", t3[t3.notBetween = 7] = "notBetween";
        })(Sn || (Sn = {})), Tn = (function(t3) {
          function e3(n3, e4, i3, r2, o2, a2, u2, s2, c2, f2) {
            var l2 = t3.call(this, n3, i3) || this, h2 = l2;
            return h2.ranges(e4), h2.operator(r2), h2.value1("string" == typeof o2 ? m.trim(o2) : o2), h2.value2("string" == typeof a2 ? m.trim(a2) : a2), h2.text(u2), h2.formula(s2), h2.type(c2), h2.rank(f2), h2.cached = false, h2.JK = y, l2;
          }
          return Gn(e3, t3), e3.prototype.value1 = function(t4, n3) {
            var e4, i3;
            if (1 !== arguments.length) return (e4 = this.condition()) && (i3 = e4.formula(t4, n3, 0)) && i3.length > 0 ? "=" + E(m.trim(i3.toString()), "=") : this.eX;
            this.eX = t4;
          }, e3.prototype.value2 = function(t4, n3) {
            var e4, i3;
            if (1 !== arguments.length) return (e4 = this.condition()) && (i3 = e4.formula(t4, n3, 1)) && i3.length > 0 ? "=" + E(m.trim(i3.toString()), "=") : this.iX;
            this.iX = t4;
          }, e3.prototype.formula = function(t4, n3) {
            var e4 = this, i3 = e4.condition();
            if ("string" != typeof t4) return i3 && i3.formula(t4, n3) || e4.D5;
            e4.D5 = t4, i3 && i3.formula(t4);
          }, e3.prototype.cellValueRuleCreateCondition = function() {
            var t4, e4, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.value1(), l2 = c2.value2(), h2 = c2.ranges(), d2 = c2.kf(f2) ? E(f2, "=") : y, v2 = c2.kf(l2) ? E(l2, "=") : y, p2 = c2.operator();
            return p2 === Lt.between ? ((t4 = (0, n2.aJ)($t.cellValueCondition, 3, f2, d2, w, w, h2)).treatNullValueAsZero(true), (e4 = (0, n2.aJ)($t.cellValueCondition, 5, l2, v2, w, w, h2)).treatNullValueAsZero(true), o2 = (0, n2.aJ)($t.relationCondition, 1, y, y, y, y, h2, t4, e4), (i3 = (0, n2.aJ)($t.cellValueCondition, 5, f2, d2, w, w, h2)).treatNullValueAsZero(true), (r2 = (0, n2.aJ)($t.cellValueCondition, 3, l2, v2, w, w, h2)).treatNullValueAsZero(true), a2 = (0, n2.aJ)($t.relationCondition, 1, y, y, y, y, h2, i3, r2), (0, n2.aJ)($t.relationCondition, 0, y, y, y, y, h2, o2, a2)) : p2 === Lt.notBetween ? ((t4 = (0, n2.aJ)($t.cellValueCondition, 4, f2, d2, w, w, h2)).treatNullValueAsZero(true), e4 = (0, n2.aJ)($t.cellValueCondition, 2, l2, v2, w, w, h2), t4.treatNullValueAsZero(true), o2 = (0, n2.aJ)($t.relationCondition, 0, y, y, y, y, h2, t4, e4), (i3 = (0, n2.aJ)($t.cellValueCondition, 2, f2, d2, w, w, h2)).treatNullValueAsZero(true), (r2 = (0, n2.aJ)($t.cellValueCondition, 4, l2, v2, w, w, h2)).treatNullValueAsZero(true), a2 = (0, n2.aJ)($t.relationCondition, 0, y, y, y, y, h2, i3, r2), (0, n2.aJ)($t.relationCondition, 1, y, y, y, y, h2, o2, a2)) : (u2 = p2, (s2 = (0, n2.aJ)(11, u2, f2, d2, w, w, h2)).treatNullValueAsZero(true), s2);
          }, e3.prototype.kf = function(t4) {
            return !B(t4) && "=" === t4[0];
          }, e3.prototype.specificTextRuleCreateCondition = function() {
            var t4, e4, i3, r2, o2 = this.operator();
            switch (o2) {
              case 2:
                t4 = 2;
                break;
              case 3:
                t4 = 4;
                break;
              case 0:
                t4 = 6;
                break;
              case 1:
                t4 = 7;
                break;
              default:
                t4 = 0;
            }
            return e4 = this.text(), i3 = y, e4 && "=" === e4[0] && (i3 = e4), (r2 = (0, n2.aJ)(2, t4, e4, i3, w, w, this.ranges())).ignoreCase(true), r2.useWildCards(2 !== o2 && 3 !== o2), r2;
          }, e3.prototype.formulaRuleCreateCondition = function() {
            var t4 = this, e4 = t4.ranges();
            return (0, n2.aJ)(4, y, y, t4.D5, 4, y, e4);
          }, e3.prototype.dateOccurringRuleCreateCondition = function() {
            return (0, n2.aJ)(6, y, this.type(), y, y, w, this.ranges());
          }, e3.prototype.top10RuleCreateCondition = function() {
            return (0, n2.aJ)(8, y, this.rank(), y, y, this.type(), this.ranges());
          }, e3.prototype.uniqueRuleCreateCondition = function() {
            return (0, n2.aJ)(9, y, false, y, y, y, this.ranges());
          }, e3.prototype.duplicateRuleCreateCondition = function() {
            return (0, n2.aJ)(9, y, true, y, y, y, this.ranges());
          }, e3.prototype.averageRuleCreateCondition = function() {
            return (0, n2.aJ)(10, y, y, y, y, this.type(), this.ranges());
          }, e3.prototype.createCondition = function() {
            return this[_t[this.ruleType()] + "CreateCondition"]();
          }, e3.prototype.reset = function() {
            var t4 = this;
            switch (t4.ranges(y), t4.condition(y), t4.style(y), t4.stopIfTrue(false), t4.priority(1), t4.operator(6), t4.value1(y), t4.value2(y), t4.text(""), t4.formula(y), t4.type(0), t4.rank(10), t4.ruleType()) {
              case 1:
                t4.operator(6);
                break;
              case 2:
                t4.operator(0);
                break;
              case 4:
                t4.style(y);
                break;
              case 5:
                t4.type(0), t4.rank(10);
                break;
              case 8:
                t4.type(0);
            }
          }, e3.prototype.evaluate = function(n3, e4, i3, r2) {
            return this.rX(n3), t3.prototype.evaluate.call(this, n3, e4, i3, r2);
          }, e3.prototype.rX = function(t4) {
            var n3, e4 = this;
            e4.initCondition(), 9 === (n3 = e4.condition()).conType() && (e4.nX() && (e4.dl(), e4.JK = be(e4.ranges())), false === e4.cached && (n3.duplicatedArrayCached = n3.getDuplicated(t4, e4.ranges()), e4.cached = true));
          }, e3.prototype.dl = function() {
            this.cached = false;
          }, e3.prototype.JO = function(n3, e4, i3, r2, o2) {
            t3.prototype.JO.call(this, n3, e4, i3, r2, o2), this.dl();
          }, e3.prototype.qO = function(n3, e4, i3, r2, o2) {
            t3.prototype.qO.call(this, n3, e4, i3, r2, o2), this.dl();
          }, e3.prototype.xP = function(n3, e4, i3, r2) {
            t3.prototype.xP.call(this, n3, e4, i3, r2), this.dl();
          }, e3.prototype.NP = function(n3, e4, i3, r2) {
            t3.prototype.NP.call(this, n3, e4, i3, r2), this.dl();
          }, e3.prototype.toJSON = function(t4, n3) {
            var e4, i3, r2, o2, a2;
            return (null == n3 ? void 0 : n3.isServer) ? this.toSnapshot(t4, n3) : (B((e4 = this).condition()) && this.initCondition(), i3 = kt.call(e4, t4, wn, w, n3), r2 = e4.value1(), ce(i3.ruleType, i3.operator) && (o2 = e4.value2()), B(r2) || (i3.value1 = r2), B(o2) || (i3.value2 = o2), (a2 = e4.ruleType()) === _t.conditionRuleBase && (i3.condition = e4.condition().toJSON(e4.DJ, n3)), i3);
          }, e3.prototype.toSnapshot = function(t4, n3) {
            var e4, i3 = this;
            return B(i3.condition()) && this.initCondition(), (e4 = kt.call(i3, t4, wn, w, n3)).condition = i3.condition().toJSON(t4, n3), e4;
          }, e3.prototype.fromJSON = function(t4, n3, e4) {
            var i3 = wn;
            B(t4.condition) || (i3 = wn.concat(["condition"])), Nt.call(this, n3, i3, t4, e4), B(t4.value1) || this.value1(t4.value1), B(t4.value2) || this.value2(t4.value2), this.initCondition(n3);
          }, e3.prototype.oX = function(t4, n3, e4) {
            var i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2 = this, _2 = D2.ruleType(), O2 = s.Util.ko(n3), E2 = { n_: v, sqref: tt(D2.ranges()) };
            return E2.pivot = B(D2.pivotTableName) ? w : "1", i3 = t4.getDxfIndex(D2.style(), true), r2 = D2.operator && D2.operator(), o2 = D2.type && D2.type(), a2 = [zt.nextQuarter, zt.thisQuarter, zt.lastQuarter, zt.nextYear, zt.thisYear, zt.lastYear], _2 === _t.dateOccurringRule && a2.indexOf(o2) > -1 ? E2.lossless = D2.toJSON(e4) : (c2 = (u2 = Ne(_2, o2, r2)).type, f2 = u2.operator, l2 = D2.condition(), h2 = u2.timePeriod, d2 = D2.priority() ? "" + D2.priority() : "1", p2 = D2.stopIfTrue() ? 1 : w, g2 = 1 === o2 ? 1 : w, b2 = (m2 = l2 && l2.isPercent()) ? 1 : w, y2 = D2.rank && D2.rank() || w, M2 = D2.text && D2.text(), C2 = void 0, S2 = void 0, T2 = void 0, _2 === _t.averageRule && (T2 = 0, o2 !== Zt.equalOrAbove && o2 !== Zt.equalOrBelow || (S2 = 1), o2 !== Zt.above1StdDev && o2 !== Zt.below1StdDev || (T2 = 1), o2 !== Zt.above2StdDev && o2 !== Zt.below2StdDev || (T2 = 2), o2 !== Zt.above3StdDev && o2 !== Zt.below3StdDev || (T2 = 3), o2 !== Zt.below && o2 !== Zt.equalOrBelow && o2 !== Zt.below1StdDev && o2 !== Zt.below2StdDev && o2 !== Zt.below3StdDev || (C2 = 0)), x2 = [], A2 = B(D2.value1()) ? D2.D5 : D2.value1(), I2 = D2.value2(), B(A2) || x2.push({ n_: "formula", c_: [Te(O2 ? A2 : H(A2))] }), ce(_2, r2) && !B(I2) && x2.push({ n_: "formula", c_: [Te(O2 ? I2 : H(I2))] }), k2 = { n_: "cfRule", type: c2, dxfId: i3 !== w ? +i3 : i3, priority: d2, stopIfTrue: p2, aboveAverage: C2, equalAverage: S2, bottom: g2, percent: b2, rank: y2, operator: f2, text: z(M2), stdDev: T2, timePeriod: h2 }, _2 === _t.specificTextRule || _2 === _t.dateOccurringRule || _2 === _t.top10Rule || _2 === _t.uniqueRule || _2 === _t.duplicateRule || _2 === _t.averageRule ? (N2 = le(k2, D2.ranges(), M2)) && (j2 = [{ n_: "formula", c_: [Te(U.getFormulaString(N2))] }], k2.c_ = j2) : k2.c_ = x2, E2.c_ = [k2]), E2;
          }, e3.prototype.IJ = function(t4) {
            var n3, e4, i3 = this, r2 = { n_: "conditionalFormatting", "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }, o2 = yt(), a2 = { n_: "cfRule", type: "expression", id: o2 };
            return i3.rJ = o2, B(i3.priority()) || (a2.priority = i3.priority()), n3 = { n_: "f", c_: [z(V(i3.D5))] }, i3.style() && (e4 = { n_: "dxf", v: t4.cv(i3.style(), true) }, a2.c_ = [n3, e4]), r2.c_ = [a2, { n_: "sqref", c_: [tt(i3.ranges())] }], r2;
          }, e3.prototype.aX = function() {
            var t4 = this;
            if (it(t4.value1()) || it(t4.value2()) || it(t4.text()) || it(t4.D5)) return true;
          }, e3.prototype.wh = function(t4, n3, e4, i3, r2) {
            var o2 = this;
            if (!$n(i3) || !o2.aX()) return B(o2.condition()) && o2.initCondition(), n3 ? o2.IJ(e4) : o2.oX(t4, i3, r2);
          }, e3.prototype.uX = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, c2, f2, l2, h2 = this, d2 = t4.type, v2 = s.Util.ko(i3), g2 = e4.getDxf(t4.dxfId, void 0, true, true), m2 = Y(t4, "formula"), b2 = p(m2 && q(m2[0])), y2 = p(m2 && q(m2[1]));
            switch ("cellIs" === d2 ? (h2.eX = (v2 ? "" : "=") + J(b2), y2 && (h2.iX = (v2 ? "" : "=") + J(y2))) : h2.D5 = J(b2), B(t4.stopIfTrue) || h2.stopIfTrue(1 === +t4.stopIfTrue), r2 = t4.rank, o2 = Ee(d2)) {
              case 8:
                u2 = true, 0 === +t4.aboveAverage && (u2 = false), a2 = (c2 = 1 === +t4.equalAverage) ? u2 ? 2 : 3 : u2 ? 0 : 1, B(t4.stdDev) || (f2 = +t4.stdDev, u2 ? 1 === f2 ? a2 = 4 : 2 === f2 ? a2 = 6 : 3 === f2 && (a2 = 8) : 1 === f2 ? a2 = 5 : 2 === f2 ? a2 = 7 : 3 === f2 && (a2 = 9));
                break;
              case 5:
                a2 = 0, t4.bottom && (a2 = 1), t4.percent && n3[0] && 0 === (r2 = Math.floor(n3[0].rowCount * n3[0].colCount * r2 / 100)) && (r2 = 1);
                break;
              case 4:
                a2 = 0, "timePeriod" === t4.type && t4.timePeriod && (a2 = Mn[t4.timePeriod]);
            }
            h2.type(a2), B(r2) || h2.rank(+r2), l2 = ke(d2, t4.operator, t4.timePeriod), h2.operator(l2), h2.text(J(t4.text)), h2.ranges(n3), h2.ruleType(o2), h2.style(g2), B(t4.priority) || h2.priority(+t4.priority);
          }, e3.prototype.sX = function(t4, n3, e4) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, g2 = t4.type, m2 = Ee(g2);
            switch (B(t4.stopIfTrue) || v2.stopIfTrue(1 === +t4.stopIfTrue), r2 = t4.rank, m2) {
              case 8:
                o2 = true, 0 === +t4.aboveAverage && (o2 = false), i3 = (a2 = 1 === +t4.equalAverage) ? o2 ? 2 : 3 : o2 ? 0 : 1, B(t4.stdDev) || (u2 = +t4.stdDev, o2 ? 1 === u2 ? i3 = 4 : 2 === u2 ? i3 = 6 : 3 === u2 && (i3 = 8) : 1 === u2 ? i3 = 5 : 2 === u2 ? i3 = 7 : 3 === u2 && (i3 = 9));
                break;
              case 5:
                i3 = 0, t4.bottom && (i3 = 1), t4.percent && n3[0] && 0 === (r2 = Math.floor(n3[0].rowCount * n3[0].colCount * r2 / 100)) && (r2 = 1);
                break;
              case 4:
                i3 = 0, "timePeriod" === t4.type && t4.timePeriod && (i3 = Mn[t4.timePeriod]);
            }
            v2.type(i3), B(r2) || v2.rank(+r2), s2 = ke(g2, t4.operator, t4.timePeriod), v2.operator(s2), v2.ruleType(m2), f2 = (c2 = Y(t4, "f")) && J(K(p(q(c2[0])))), l2 = c2 && J(K(p(q(c2[1])))), "cellIs" === g2 ? (v2.eX = f2, v2.iX = l2) : v2.D5 = f2, m2 === _t.specificTextRule && v2.text(l2), (h2 = Q(t4, "dxf")) && (d2 = h2.v, v2.style(e4.fv(d2, w, w, true))), v2.ranges(n3);
          }, e3.prototype.yh = function(t4, n3, e4, i3, r2, o2, a2) {
            var u2 = this;
            r2 ? u2.sX(t4, n3, o2) : u2.uX(t4, n3, e4, a2), u2.initCondition(i3);
          }, e3;
        })(bn), n2.NormalConditionRule = Tn, xn = { operator: It("operator", y), text: It("text", y), type: It("type", y), rank: It("rank", y), priority: It("priority", 1) }, m.extend(Tn.prototype, xn), An = /* @__PURE__ */ (function() {
          function t3(t4, n3) {
            this.type = t4, this.value = n3;
          }
          return t3;
        })(), n2.ScaleValue = An, In = ["ruleType", "ranges", "minType", "minValue", "minColor", "maxType", "maxValue", "maxColor", "midType", "midValue", "midColor", "priority"], kn = (function(t3) {
          function e3(n3, e4, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, w2, M2, C2 = t3.call(this, n3, y, l2) || this, S2 = C2;
            return S2.KK = false, S2.lowestValueCached = y, S2.highestValueCached = y, S2.XK = {}, S2.cached = false, S2.JK = y, h2 = e4, d2 = i3, v2 = r2, p2 = o2, g2 = a2, m2 = u2, b2 = s2, w2 = c2, M2 = f2, arguments.length <= 1 && (h2 = 1, d2 = y, v2 = st(255, 248, 105, 107), n3 !== _t.twoScaleRule && (p2 = 4, g2 = 50, m2 = st(255, 255, 235, 132)), b2 = 2, w2 = y, M2 = st(255, 99, 190, 123)), S2.minColor(v2), S2.minValue(d2), S2.minType(h2), n3 !== _t.twoScaleRule && (S2.midColor(m2), S2.midValue(g2), S2.midType(p2)), S2.maxColor(M2), S2.maxValue(w2), S2.maxType(b2), C2;
          }
          return Gn(e3, t3), e3.prototype.stopIfTrue = function(t4) {
            return false;
          }, e3.prototype.isScaleRule = function() {
            return true;
          }, e3.prototype.createCondition = function() {
            return y;
          }, e3.prototype.cX = function(t4) {
            var e4 = (0, n2.aJ)(8, y, y, y, y, 1).getTopValues(t4, 1, this.ranges());
            return pt(e4) > 0 ? e4[0] : y;
          }, e3.prototype.fX = function(t4) {
            var e4 = (0, n2.aJ)(8, y, y, y, y, 0).getTopValues(t4, 1, this.ranges());
            return pt(e4) > 0 ? e4[0] : y;
          }, e3.prototype.rX = function(t4) {
            var n3 = this;
            n3.nX() && (n3.dl(), n3.JK = be(n3.ranges())), false === n3.cached && (n3.lowestValueCached = n3.cX(t4), n3.highestValueCached = n3.fX(t4), n3.cached = true);
          }, e3.prototype.dl = function() {
            this.lowestValueCached = y, this.highestValueCached = y, this.XK = {}, this.cached = false;
          }, e3.prototype.lX = function(t4, n3, e4, i3) {
            var r2, o2;
            return i3 && (r2 = t4.op()) ? (o2 = r2.parse(t4.Uw(), i3, n3, e4), r2.evaluateParsedFormula(t4.Uw(), o2, (0, u.eV)(n3, e4), false)) : y;
          }, e3.prototype.kf = function(t4) {
            return t4 && "=" === t4[0];
          }, e3.prototype.hX = function(t4) {
            return B(t4) || "" === t4 ? y : "=" === t4[0] ? t4.substr(1) : t4;
          }, e3.prototype.dX = function(t4, n3, e4, i3) {
            if (this.kf(i3)) return this.lX(t4, n3, e4, this.hX(i3.toString()));
            var r2 = {};
            return _(i3, r2) ? r2.value : NaN;
          }, e3.prototype.vX = function(t4) {
            return this.rX(t4), this.highestValueCached;
          }, e3.prototype.mX = function(t4) {
            return this.rX(t4), this.lowestValueCached;
          }, e3.prototype.gX = function(t4, n3, e4, i3) {
            var r2, o2, a2 = this.dX(t4, n3, e4, i3);
            return !isNaN(a2) && 0 <= a2 && a2 <= 100 && (r2 = this.mX(t4), o2 = this.vX(t4), typeof r2 !== M && r2 !== y && typeof o2 !== M && o2 !== y) ? r2 + (o2 - r2) * a2 / 100 : y;
          }, e3.prototype.pX = function(t4, n3, e4, i3) {
            var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this.XK;
            if (void 0 !== m2[i3]) return m2[i3];
            if (r2 = this.dX(t4, n3, e4, i3), !isNaN(r2) && 0 <= r2 && r2 <= 100) {
              for (o2 = 0, a2 = this.ranges(), s2 = pt(a2), c2 = 0; c2 < s2; c2++) f2 = this.VJ("PERCENTILE", [t4.JS(a2[c2]), r2 / 100]), l2 = t4.op(), h2 = t4.Uw(), d2 = l2.unparse(h2, f2, n3, e4), v2 = l2.parse(h2, d2, n3, e4), p2 = l2.evaluateParsedFormula(h2, v2, (0, u.eV)(n3, e4), false), o2 += _(p2, g2 = {}) ? g2.value : 0;
              return m2[i3] = o2 / s2, m2[i3];
            }
            return m2[i3] = y, m2[i3];
          }, e3.prototype.bX = function(t4, n3, e4, i3, r2) {
            var o2, a2, u2 = this;
            switch (i3) {
              case Wt.formula:
                return u2.kf(r2) || (r2 = "=" + r2), u2.dX(t4, n3, e4, r2);
              case Wt.highestValue:
                return u2.vX(t4);
              case Wt.lowestValue:
                return u2.mX(t4);
              case Wt.number:
                return u2.dX(t4, n3, e4, r2);
              case Wt.percent:
                return u2.gX(t4, n3, e4, r2);
              case Wt.percentile:
                return u2.pX(t4, n3, e4, r2);
              case Wt.automax:
                return (o2 = u2.vX(t4)) < 0 ? 0 : o2;
              case Wt.automin:
                return (a2 = u2.mX(t4)) > 0 ? 0 : a2;
              default:
                return y;
            }
          }, e3.prototype.yX = function(t4, n3, e4) {
            return t4 === n3 && t4 === e4 ? 1 : t4 <= n3 ? 0 : t4 >= e4 ? 1 : (t4 - n3) / (e4 - n3);
          }, e3.prototype.wX = function(t4, n3, e4) {
            var i3, r2, o2, a2, u2, s2;
            return 0 <= t4 && t4 <= 1 ? (i3 = ne(this.DJ, n3), r2 = ne(this.DJ, e4), o2 = i3.a * (1 - t4) + r2.a * t4, a2 = i3.r * (1 - t4) + r2.r * t4, u2 = i3.g * (1 - t4) + r2.g * t4, s2 = i3.b * (1 - t4) + r2.b * t4, st(parseFloat(o2 / 255 + ""), parseInt(a2 + "", 10), parseInt(u2 + "", 10), parseInt(s2 + "", 10))) : y;
          }, e3.prototype.VJ = function(t4, n3) {
            var e4, i3, r2, a2;
            if (!ot) return y;
            if (e4 = gt.findGlobalFunction(t4)) {
              for (i3 = [], r2 = pt(n3), a2 = 0; a2 < r2; a2++) i3[a2] = At(n3[a2]);
              return o.YJ(e4, i3);
            }
            return y;
          }, e3.prototype.JO = function(n3, e4, i3, r2, o2) {
            t3.prototype.JO.call(this, n3, e4, i3, r2, o2), this.dl();
          }, e3.prototype.qO = function(n3, e4, i3, r2, o2) {
            t3.prototype.qO.call(this, n3, e4, i3, r2, o2), this.dl();
          }, e3.prototype.xP = function(n3, e4, i3, r2) {
            t3.prototype.xP.call(this, n3, e4, i3, r2), this.dl();
          }, e3.prototype.NP = function(n3, e4, i3, r2) {
            t3.prototype.NP.call(this, n3, e4, i3, r2), this.dl();
          }, e3.prototype.scaleEvaluate = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, s2 = this;
            if (s2.rX(t4), s2.contains(n3, e4)) {
              if (B(i3)) return y;
              try {
                if (r2 = D(i3), o2 = s2.bX(t4, n3, e4, s2.minType(), s2.minValue()), a2 = s2.bX(t4, n3, e4, s2.midType(), s2.midValue()), o2 > (u2 = s2.bX(t4, n3, e4, s2.maxType(), s2.maxValue()))) return y;
                if (isNaN(a2)) {
                  if (!isNaN(o2) && !isNaN(u2)) return s2.yX(r2, o2, u2);
                } else if (!isNaN(o2) && !isNaN(u2)) return r2 < o2 ? 0 : r2 >= u2 ? 2 : o2 <= r2 && r2 <= a2 ? s2.yX(r2, o2, a2) : 1 + s2.yX(r2, o2, u2);
              } catch (t5) {
                return y;
              }
            }
            return y;
          }, e3.prototype.twoScaleRuleEvaluate = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (!B(i3)) {
              if (r2 = {}, o2 = j(i3) && _(i3, r2) ? r2.value : NaN, isNaN(o2)) return y;
              if (u2 = (a2 = this).bX(t4, n3, e4, a2.minType(), a2.minValue()), s2 = a2.bX(t4, n3, e4, a2.maxType(), a2.maxValue()), !B(u2) && !B(s2)) return c2 = a2.yX(o2, u2, s2), a2.wX(c2, a2.minColor(), a2.maxColor());
            }
            return y;
          }, e3.prototype.threeScaleRuleEvaluate = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, s2, c2, f2 = this;
            if (f2.MX = t4, !B(i3)) {
              if (r2 = {}, o2 = j(i3) && _(i3, r2) ? r2.value : NaN, isNaN(o2)) return y;
              if (a2 = f2.bX(t4, n3, e4, f2.minType(), f2.minValue()), u2 = f2.bX(t4, n3, e4, f2.midType(), f2.midValue()), s2 = f2.bX(t4, n3, e4, f2.maxType(), f2.maxValue()), !B(a2) && !B(s2) && !B(u2)) return c2 = void 0, a2 > s2 ? y : o2 <= a2 || a2 === s2 ? o2 >= s2 ? f2.maxColor() : f2.minColor() : o2 >= s2 ? f2.maxColor() : o2 <= u2 ? (c2 = f2.yX(o2, a2, u2), f2.wX(c2, f2.minColor(), f2.midColor())) : (c2 = f2.yX(o2, u2, s2), f2.wX(c2, f2.midColor(), f2.maxColor()));
            }
            return y;
          }, e3.prototype.evaluate = function(t4, n3, e4, i3) {
            return this[_t[this.ruleType()] + "Evaluate"](t4, n3, e4, i3);
          }, e3.prototype.Hc = function() {
            var t4 = this;
            t4.minValue(y), t4.minType(1), t4.midValue(50), t4.midType(4), t4.maxValue(y), t4.maxType(2), 10 === t4.ruleType() && (t4.minColor(st(0, 255, 255, 255)), t4.maxColor(st(255, 99, 190, 123))), 11 === t4.ruleType() && (t4.midValue(50), t4.midType(4), t4.minColor(st(255, 248, 105, 107)), t4.midColor(st(255, 255, 235, 132)), t4.maxColor(st(255, 99, 190, 123)));
          }, e3.prototype.reset = function() {
            var t4 = this;
            t4.ranges(y), t4.condition(y), t4.style(y), t4.Hc(), t4.MX = y, t4.stopIfTrue(false), t4.priority(1);
          }, e3.prototype.toJSON = function(t4, n3) {
            return kt.call(this, t4, In, w, n3);
          }, e3.prototype.fromJSON = function(t4, n3, e4) {
            var i3 = this;
            Nt.call(this, n3, In, t4, e4), i3.ruleType() === _t.twoScaleRule && (i3.midColor(y), i3.midValue(y), i3.midType(y)), this.initCondition(n3);
          }, e3.prototype.aX = function() {
            var t4 = this;
            if (it(t4.minValue()) || it(t4.midValue()) || it(t4.maxValue())) return true;
          }, e3.prototype.wh = function(t4, n3, e4, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2 = this;
            if (!$n(i3) || !m2.aX()) return B(m2.condition()) && m2.initCondition(), o2 = m2.ruleType(), (a2 = { n_: v, sqref: tt(m2.ranges()) }).pivot = B(m2.pivotTableName) ? w : "1", u2 = De(m2.minType()), s2 = m2.minValue(), c2 = De(m2.maxType()), f2 = m2.maxValue(), l2 = m2.minColor(), h2 = m2.maxColor(), (B(u2) || "autoMin" === u2) && (u2 = "min"), (B(c2) || "autoMax" === c2) && (c2 = "max"), a2.c_ = [{ n_: "cfRule", type: "colorScale", priority: m2.priority() ? "" + m2.priority() : "1", c_: [{ n_: "colorScale", c_: [{ n_: "cfvo", type: u2, val: B(s2) || Fe(u2) ? w : z(H(s2)) }, { n_: "cfvo", type: c2, val: B(f2) || Fe(c2) ? w : z(H(f2)) }] }] }], B(l2) || a2.c_[0].c_[0].c_.push(Z(l2)), B(h2) || a2.c_[0].c_[0].c_.push(Z(h2)), 11 === o2 && (d2 = De(m2.midType()), p2 = m2.midValue(), g2 = m2.midColor(), a2.c_[0].c_[0].c_.splice(1, 0, { n_: "cfvo", type: d2, val: B(p2) ? 50 : z(H(p2)) }), B(g2) || a2.c_[0].c_[0].c_.splice(4, 0, Z(g2))), a2;
          }, e3.prototype.yh = function(t4, n3, e4, i3) {
            var r2, o2, a2, u2, s2, c2 = this, f2 = Ae(t4), l2 = Ie(t4), h2 = f2[0];
            2 === f2.length ? a2 = f2[1] : (r2 = f2[1], a2 = f2[2]), s2 = l2[0], r2 ? (o2 = l2[1], u2 = l2[2]) : u2 = l2[1], r2 ? c2.ruleType(_t.threeScaleRule) : c2.ruleType(_t.twoScaleRule), c2.minColor(s2), c2.minValue(Be(h2.val)), c2.minType(je(h2.type)), c2.midColor(o2), r2 && !B(r2.val) && c2.midValue(Be(r2.val)), c2.midType(je(r2 && r2.type)), c2.maxColor(u2), c2.maxValue(Be(a2.val)), c2.maxType(je(a2.type)), c2.ranges(n3), c2.initCondition(i3), B(t4.priority) || c2.priority(+t4.priority);
          }, e3;
        })(bn), n2.ScaleRule = kn, Nn = { minValue: It("minValue", y), minType: It("minType", 5), minColor: It("minColor", y), midValue: It("midValue", 50, y, (function(t3) {
          var n3 = this;
          if (n3.MX) {
            if (2 === n3.midType()) return n3.vX(n3.MX);
            if (1 === n3.midType()) return n3.mX(n3.MX);
          }
          return t3;
        })), midType: It("midType", y), midColor: It("midColor", y), maxType: It("maxType", 7), maxValue: It("maxValue", y), maxColor: It("maxColor", y) }, m.extend(kn.prototype, Nn), jn = ["ruleType", "ranges", "gradient", "color", "showBorder", "borderColor", "dataBarDirection", "negativeFillColor", "useNegativeFillColor", "negativeBorderColor", "useNegativeBorderColor", "axisPosition", "axisColor", "showBarOnly", "minType", "minValue", "maxType", "maxValue", "priority"], Dn = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = this, s2 = n4, c2 = e3, f2 = i3, l2 = r2, h2 = o2;
            return 0 === arguments.length && (s2 = 5, c2 = y, f2 = 7, l2 = y, h2 = st(255, 99, 142, 198)), (u2 = t3.call(this, 12, s2, c2, y, y, y, y, f2, l2, y, a2) || this).KK = false, u2.Hc(h2), u2;
          }
          return Gn(n3, t3), n3.prototype.Hc = function(t4) {
            var n4 = this;
            n4.gradient(true), n4.color(t4), n4.showBorder(false), n4.borderColor("black"), n4.dataBarDirection(0), n4.negativeFillColor("red"), n4.useNegativeFillColor(true), n4.negativeBorderColor("black"), n4.useNegativeBorderColor(false), n4.axisPosition(0), n4.axisColor("black"), n4.showBarOnly(false);
          }, n3.prototype.reset = function() {
            var t4 = this;
            t4.ranges(y), t4.condition(y), t4.style(y), t4.Hc(st(255, 99, 142, 198)), t4.stopIfTrue(false), t4.priority(1), t4.minValue(y), t4.minType(5), t4.midValue(y), t4.midType(y), t4.maxValue(y), t4.maxType(7), t4.minColor(y), t4.midColor(y), t4.maxColor(y);
          }, n3.prototype.CX = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2 = this, c2 = i3 ? s2.maxType() : s2.minType(), f2 = i3 ? s2.maxValue() : s2.minValue();
            if (6 !== c2 && 4 !== c2) return s2.bX(t4, n4, e3, c2, f2);
            for (o2 = 0; o2 < pt(s2.ranges()); o2++) if (s2.ranges()[o2].intersect(n4, -1, 1, -1) && (r2 = s2.ranges()[o2])) return a2 = -1 === (a2 = r2.row) ? 0 : a2, u2 = -1 === (u2 = r2.col) ? 0 : u2, s2.bX(t4, a2, u2, c2, f2);
          }, n3.prototype.SX = function(t4, n4, e3) {
            var i3 = 0;
            return t4 >= e3 && t4 > n4 ? [1, 0] : t4 <= n4 && t4 < e3 ? [0, 0] : e3 === n4 ? [0.5, 0] : [(t4 - n4) / (e3 - n4), 0];
          }, n3.prototype.TX = function(t4, n4, e3) {
            var i3, r2, o2 = 0.5, a2 = A(e3 - n4);
            return e3 > 0 && n4 >= 0 ? e3 === n4 || t4 >= e3 ? [0.5, o2] : t4 <= n4 ? [n4 / e3 * 0.5, o2] : [0.5 * A(t4 / e3), o2] : e3 > 0 && n4 < 0 ? (i3 = e3 > A(n4) ? 0.5 : e3 / a2, r2 = e3 > A(n4) ? n4 / a2 : -0.5, t4 > 0 ? t4 >= e3 ? [i3, o2] : [t4 / e3 * i3, o2] : t4 < 0 ? t4 <= n4 ? [r2, o2] : [t4 / n4 * r2, o2] : [0, o2]) : e3 <= 0 && n4 < 0 ? e3 === n4 ? [-0.5, o2] : t4 >= e3 ? [-e3 / n4 * 0.5, o2] : t4 <= n4 ? [-0.5, o2] : [-t4 / n4 * 0.5, o2] : 0 === e3 && 0 === n4 ? [0, o2] : [-1, o2 = -1];
          }, n3.prototype.AX = function(t4, n4, e3) {
            var i3, r2, o2, a2 = -1, u2 = A(n4), s2 = A(e3), c2 = A(e3 - n4), f2 = n4 < 0 ? -1 : 1;
            return e3 > 0 && n4 >= 0 || e3 <= 0 && n4 < 0 ? (i3 = x(u2, s2), r2 = T(u2, s2), a2 = n4 < 0 ? 1 : 0, (o2 = A(t4)) <= r2 && o2 < i3 ? [0, a2] : o2 >= i3 && o2 > r2 ? [f2, a2] : r2 === i3 ? [0.5 * f2, a2] : [f2 * (A(t4) - r2) / c2, a2]) : e3 > 0 && n4 < 0 ? (a2 = A(n4) / c2, 0 === t4 ? [0, a2] : t4 >= e3 ? [1 - a2, a2] : [x(t4, n4) / c2, a2]) : 0 === e3 && 0 === n4 ? (a2 = 0.5, 0 === t4 ? [0, a2] : [0.5 * f2, a2]) : [-1, a2];
          }, n3.prototype.IX = function(t4, n4, e3) {
            var i3 = this;
            return 0 === i3.axisPosition() ? i3.AX(t4, n4, e3) : 1 === i3.axisPosition() ? i3.TX(t4, n4, e3) : i3.SX(t4, n4, e3);
          }, n3.prototype.evaluate = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            if (!B(i3)) {
              if (r2 = {}, o2 = j(i3, true) && _(i3, r2) ? r2.value : NaN, isNaN(o2)) return y;
              if (u2 = (a2 = this).CX(t4, n4, e3, false), s2 = a2.CX(t4, n4, e3, true), G(u2, Date) && (u2 = lt.o0(u2)), G(s2, Date) && (s2 = lt.o0(s2)), !B(u2) && !B(s2)) return u2 > s2 && (c2 = s2, s2 = u2, u2 = c2), f2 = void 0, !(l2 = a2.IX(o2, u2, s2)) || pt(l2) < 2 ? y : (h2 = l2[0], f2 = l2[1], d2 = o2 < 0 && a2.useNegativeFillColor() ? a2.negativeFillColor() : a2.color(), v2 = o2 < 0 && a2.useNegativeBorderColor() ? a2.negativeBorderColor() : a2.borderColor(), p2 = a2.axisColor(), d2 = bt.vl(t4, d2), v2 = bt.vl(t4, v2), p2 = bt.vl(t4, p2), { fillColor: d2, borderColor: v2, showBorder: a2.showBorder(), axisColor: p2, isGradient: a2.gradient(), direction: a2.dataBarDirection(), axisLocation: f2, scale: h2, showBarOnly: a2.showBarOnly() });
            }
            return y;
          }, n3.prototype.toJSON = function(t4, n4) {
            return kt.call(this, t4, jn, w, n4);
          }, n3.prototype.fromJSON = function(t4, n4, e3) {
            Nt.call(this, n4, jn, t4, e3), this.initCondition(n4);
          }, n3.paintDataBar = function(t4, n4, e3, i3, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = new r.Rect(e3 + 2, i3 + 2, o2 - 4, a2 - 4), S2 = C2.x, T2 = C2.y, x2 = I(A(C2.width * n4.scale)), k2 = C2.height;
            if (0 === n4.axisLocation) n4.scale <= 0 && (x2 = 0);
            else if (1 === n4.axisLocation) n4.scale < 0 ? S2 = S2 + C2.width - x2 : x2 = 0;
            else {
              for (s2 = I(C2.width * n4.axisLocation + S2) + 0.5, c2 = C2.y, f2 = 1, l2 = a2 - 2, t4.lineWidth = f2, t4.strokeStyle = n4.axisColor, t4.beginPath(), h2 = 0; h2 <= l2; h2 += 2) 1 === n4.direction ? (t4.moveTo(2 * e3 + o2 - s2, c2 + h2), t4.lineTo(2 * e3 + o2 - s2, c2 + h2 + 1)) : (t4.moveTo(s2, c2 + h2), t4.lineTo(s2, c2 + h2 + 1));
              t4.stroke(), n4.scale > 0 ? S2 = s2 + f2 : n4.scale < 0 ? S2 = s2 - x2 : x2 = 0;
            }
            n4.showBorder && (S2 = I(S2) + 0.5, x2 -= 1, T2 += 0.5, k2 -= 1), d2 = S2, v2 = S2 + x2, 1 === n4.direction && (d2 = 2 * e3 + o2 - S2 - x2, v2 = 2 * e3 + o2 - S2), x2 >= 0 && k2 >= 0 && (p2 = n4.fillColor, n4.isGradient && (g2 = 0.9, p2 = t4.createLinearGradient(d2, T2, v2, T2), m2 = ne(u2, n4.fillColor), b2 = st(m2.a, I(255 * g2 + m2.r * (1 - g2)), I(255 * g2 + m2.g * (1 - g2)), I(255 * g2 + m2.b * (1 - g2))), y2 = n4.scale < 0 ? 1 - g2 : g2, w2 = n4.fillColor, M2 = n4.scale < 0 ? 1 : 0, 1 === n4.direction ? (p2.addColorStop(y2, w2), p2.addColorStop(M2, b2)) : (p2.addColorStop(y2, b2), p2.addColorStop(M2, w2))), t4.fillStyle = p2, t4.fillRect(d2, T2, x2, k2), n4.showBorder && x2 > 0 && k2 > 0 && (t4.strokeStyle = n4.borderColor, t4.strokeRect(d2, T2, x2, k2)));
          }, n3.prototype.oX = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = { n_: v, sqref: tt(u2.ranges()) };
            return s2.pivot = B(u2.pivotTableName) ? w : "1", t4 = u2.showBarOnly() ? 0 : w, n4 = De(u2.minType()), e3 = u2.minValue(), i3 = De(u2.maxType()), r2 = u2.maxValue(), o2 = u2.color(), (B(n4) || "autoMin" === n4) && (n4 = "min"), (B(i3) || "autoMax" === i3) && (i3 = "max"), (a2 = []).push({ n_: "cfvo", type: n4, val: B(e3) || Wn(e3) || Fe(n4) ? w : z(H(e3)) }), a2.push({ n_: "cfvo", type: i3, val: B(r2) || Wn(r2) || Fe(i3) ? w : z(H(r2)) }), o2 && a2.push(Z(o2)), s2.c_ = [{ n_: "cfRule", type: "dataBar", priority: u2.priority() ? "" + u2.priority() : "1", c_: [{ n_: "dataBar", showValue: t4, c_: a2 }] }], u2.rJ && s2.c_[0].c_.push({ n_: d, c_: [{ n_: "ext", r_: [1, 17], c_: [{ n_: "id", c_: [u2.rJ] }] }] }), s2;
          }, n3.prototype.IJ = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = { n_: "conditionalFormatting", r_: [2] };
            return l2.pivot = B(f2.pivotTableName) ? w : "1", n4 = { n_: "cfRule", type: "dataBar", id: t4 = yt() }, f2.rJ = t4, e3 = { n_: "dataBar", minLength: 0, maxLength: 100 }, f2.showBarOnly() && (e3.showValue = "0"), f2.showBorder() && (e3.border = "1"), false === f2.gradient() && (e3.gradient = "0"), false === f2.useNegativeFillColor() && (e3.negativeBarColorSameAsPositive = "1"), f2.useNegativeBorderColor() && (e3.negativeBarBorderColorSameAsPositive = "0"), e3.direction = 1 === f2.dataBarDirection() ? "rightToLeft" : "leftToRight", 1 === (i3 = f2.axisPosition()) ? e3.axisPosition = "middle" : 2 === i3 && (e3.axisPosition = "none"), r2 = [], (o2 = f2.color()) && r2.push(Z(o2)), a2 = f2.minType(), u2 = f2.minValue(), s2 = f2.maxType(), c2 = f2.maxValue(), B(a2) || 5 === a2 ? r2.push({ n_: "cfvo", type: "autoMin" }) : B(u2) || Wn(u2) ? r2.push({ n_: "cfvo", type: De(a2) }) : r2.push({ n_: "cfvo", type: De(a2), c_: [{ n_: "f", c_: [z(V(u2))] }] }), B(s2) || 7 === s2 ? r2.push({ n_: "cfvo", type: "autoMax" }) : B(c2) || Wn(c2) ? r2.push({ n_: "cfvo", type: De(s2) }) : r2.push({ n_: "cfvo", type: De(s2), c_: [{ n_: "f", c_: [z(V(c2))] }] }), f2.showBorder() && f2.borderColor() && r2.push(Z(f2.borderColor(), w, "borderColor")), B(f2.negativeFillColor()) ? r2.push(Z("red", w, "negativeFillColor")) : r2.push(Z(f2.negativeFillColor(), w, "negativeFillColor")), B(f2.negativeBorderColor()) ? r2.push(Z("black", w, "negativeBorderColor")) : r2.push(Z(f2.negativeBorderColor(), w, "negativeBorderColor")), 2 !== f2.axisPosition() && r2.push(Z(f2.axisColor(), w, "axisColor")), e3.c_ = r2, n4.c_ = [e3], l2.c_ = [n4, { n_: "sqref", c_: [tt(f2.ranges())] }], l2;
          }, n3.prototype.wh = function(t4, n4, e3, i3, r2) {
            var o2 = this;
            if (!$n(i3) || !o2.aX()) return n4 ? o2.IJ() : o2.oX();
          }, n3.prototype.uX = function(t4, n4) {
            var e3, i3, r2, o2 = this, a2 = Ae(t4), u2 = Ie(t4);
            o2.color(u2[0]), e3 = a2[0], i3 = a2[1], o2.minType(je(e3.type)), o2.minValue(Be(e3.val)), o2.maxType(je(i3.type)), o2.maxValue(Be(i3.val)), o2.priority(+t4.priority), o2.ranges(n4), r2 = Q(t4, "dataBar"), B(r2.showValue) || o2.showBarOnly(!Mt(r2.showValue, true)), t4.c_[1] && t4.c_[1].n_ === d && (o2.rJ = he(t4.c_[1]));
          }, n3.prototype.sX = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = Q(t4, "dataBar");
            B(d2.showValue) || h2.showBarOnly(!Mt(d2.showValue, true)), B(d2.border) || h2.showBorder(Mt(d2.border, false)), B(d2.gradient) || h2.gradient(Mt(d2.gradient, true)), B(d2.direction) || h2.dataBarDirection("rightToLeft" === d2.direction ? 1 : 0), B(d2.axisPosition) || h2.axisPosition(+tn[d2.axisPosition]), B(d2.negativeBarColorSameAsPositive) || h2.useNegativeFillColor(!Mt(d2.negativeBarColorSameAsPositive, false)), B(d2.negativeBarBorderColorSameAsPositive) || h2.useNegativeBorderColor(!Mt(d2.negativeBarBorderColorSameAsPositive, true)), 2 === (e3 = Y(d2, "cfvo")).length && (h2.minType(je(e3[0].type)), i3 = Y(e3[0], "f"), r2 = Pe(e3[0], i3 && i3[0]), B(r2) || h2.minValue(Be(r2)), h2.maxType(je(e3[1].type)), i3 = Y(e3[1], "f"), o2 = Pe(e3[1], i3 && i3[0]), B(o2) || h2.maxValue(Be(o2))), (a2 = Q(d2, "fillColor")) && h2.color(W(a2)), (u2 = Q(d2, "borderColor")) && h2.borderColor(W(u2)), (s2 = Q(d2, "negativeFillColor")) && h2.negativeFillColor(W(s2)), (c2 = Q(d2, "negativeBorderColor")) && h2.negativeBorderColor(W(c2)), (f2 = Q(d2, "axisColor")) && h2.axisColor(W(f2)), (l2 = Ie(t4)) && l2.length > 0 && h2.color(l2[0]), h2.ranges(n4);
          }, n3.prototype.yh = function(t4, n4, e3, i3, r2, o2) {
            var a2 = this;
            r2 ? a2.sX(t4, n4) : a2.uX(t4, n4), a2.initCondition(i3);
          }, n3;
        })(kn), n2.DataBarRule = Dn, _n = { gradient: It("gradient", true), color: It("color", y), showBorder: It("showBorder", false), borderColor: It("borderColor", "black"), dataBarDirection: It("dataBarDirection", 0), negativeFillColor: It("negativeFillColor", "red"), useNegativeFillColor: It("useNegativeFillColor", true), negativeBorderColor: It("negativeBorderColor", "black"), useNegativeBorderColor: It("useNegativeBorderColor", false), axisPosition: It("axisPosition", 0), axisColor: It("axisColor", "black"), showBarOnly: It("showBarOnly", false) }, m.extend(Dn.prototype, _n), On = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3) {
            this.isGreaterThanOrEqualTo = t4, this.iconValueType = n3, this.iconValue = e3;
          }
          return t3;
        })(), n2.IconCriterion = On, En = ["ruleType", "ranges", "iconSetType", "iconCriteria", "showIconOnly", "reverseIconOrder", "priority", "icons"], Rn = (function(t3) {
          function n3(n4, e3) {
            var i3 = this, r2 = null != n4 ? n4 : 0;
            return (i3 = t3.call(this, 13, y, y, y) || this).KK = false, i3.ranges(e3), i3.Hc(r2), i3;
          }
          return Gn(n3, t3), n3.prototype.xX = function(t4) {
            var n4 = this;
            n4.iconSetType(t4, false), n4.iconSetType() >= Jt.threeArrowsColored && n4.iconSetType() <= Jt.threeSymbolsUncircled ? (n4.hJ = [], n4.hJ[0] = new On(true, Xt.percent, 33), n4.hJ[1] = new On(true, Xt.percent, 67), n4.iJ = [], n4.iJ[0] = { iconSetType: t4, iconIndex: 0 }, n4.iJ[1] = { iconSetType: t4, iconIndex: 1 }, n4.iJ[2] = { iconSetType: t4, iconIndex: 2 }) : n4.iconSetType() >= Jt.fourArrowsColored && n4.iconSetType() <= Jt.fourTrafficLights ? (n4.hJ = [], n4.hJ[0] = new On(true, Xt.percent, 25), n4.hJ[1] = new On(true, Xt.percent, 50), n4.hJ[2] = new On(true, Xt.percent, 75), n4.iJ = [], n4.iJ[0] = { iconSetType: t4, iconIndex: 0 }, n4.iJ[1] = { iconSetType: t4, iconIndex: 1 }, n4.iJ[2] = { iconSetType: t4, iconIndex: 2 }, n4.iJ[3] = { iconSetType: t4, iconIndex: 3 }) : n4.iconSetType() >= Jt.fiveArrowsColored && n4.iconSetType() <= Jt.fiveBoxes ? (n4.hJ = [], n4.hJ[0] = new On(true, Xt.percent, 20), n4.hJ[1] = new On(true, Xt.percent, 40), n4.hJ[2] = new On(true, Xt.percent, 60), n4.hJ[3] = new On(true, Xt.percent, 80), n4.iJ = [], n4.iJ[0] = { iconSetType: t4, iconIndex: 0 }, n4.iJ[1] = { iconSetType: t4, iconIndex: 1 }, n4.iJ[2] = { iconSetType: t4, iconIndex: 2 }, n4.iJ[3] = { iconSetType: t4, iconIndex: 3 }, n4.iJ[4] = { iconSetType: t4, iconIndex: 4 }) : n4.iconSetType() > Jt.fiveBoxes && (n4.hJ = [], n4.iJ = []);
          }, n3.prototype.Hc = function(t4) {
            this.showIconOnly(false), this.reverseIconOrder(false), this.xX(t4);
          }, n3.prototype.NX = function(t4) {
            var n4 = pt(this.hJ) + 1;
            return this.reverseIconOrder() && n4 > 2 ? n4 - 1 - t4 : t4;
          }, n3.prototype.bX = function(t4, n4, e3, i3) {
            var r2 = this, o2 = r2.hJ[i3];
            if (o2) switch (o2.iconValueType) {
              case Xt.formula:
              case Xt.number:
                return r2.dX(t4, n4, e3, o2.iconValue);
              case Xt.percent:
                return r2.gX(t4, n4, e3, o2.iconValue);
              case Xt.percentile:
                return r2.pX(t4, n4, e3, o2.iconValue);
              default:
                return y;
            }
          }, n3.prototype.evaluate = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = i3;
            if (B(m2)) return y;
            if (r2 = {}, o2 = j(i3, true) && "boolean" != typeof m2 && _(i3, r2) ? r2.value : NaN, isNaN(o2)) return y;
            if (a2 = 0, u2 = g2.iconSetType(), s2 = g2.hJ, u2 >= Jt.fiveArrowsColored ? a2 = 5 : u2 >= Jt.fourArrowsColored ? a2 = 4 : u2 >= Jt.threeArrowsColored && (a2 = 3), !s2) return 0;
            for (f2 = 0, l2 = a2 - 1; l2 > 0; l2--) if (l2 < pt(s2) + 1 && (c2 = s2[l2 - 1], !B(c2 && c2.iconValue) && (h2 = g2.bX(t4, n4, e3, l2 - 1), !B(h2) && (d2 = c2.isGreaterThanOrEqualTo ? o2 >= h2 : o2 > h2, o2 < Number.MAX_VALUE && d2)))) {
              f2 = l2;
              break;
            }
            return v2 = g2.NX(f2), (p2 = g2.iJ) ? { iconSetType: p2[v2] ? p2[v2].iconSetType : Jt.noIcons, iconIndex: p2[v2] ? p2[v2].iconIndex : 0, showIconOnly: g2.showIconOnly() } : { iconSetType: Jt.noIcons, iconIndex: 0, showIconOnly: g2.showIconOnly() };
          }, n3.prototype.reset = function() {
            var t4 = this;
            t4.ranges(y), t4.condition(y), t4.style(y), t4.showIconOnly(false), t4.reverseIconOrder(false), t4.iconSetType(0, y), t4.hJ = y, t4.stopIfTrue(false), t4.priority(1), t4.minColor(y), t4.minValue(y), t4.minType(5), t4.midColor(y), t4.midValue(y), t4.midType(y), t4.maxColor(y), t4.maxValue(y), t4.maxType(7), t4.iJ = y;
          }, n3.prototype.icons = function(t4) {
            return 1 === arguments.length && (this.iJ = t4), this.iJ;
          }, n3.prototype.iconCriteria = function() {
            return this.hJ;
          }, n3.prototype.toJSON = function(t4, n4) {
            return kt.call(this, t4, En, w, n4);
          }, n3.prototype.fromJSON = function(t4, n4, e3) {
            Nt.call(this, n4, En, t4, e3), this.initCondition(n4);
          }, n3.prototype.aX = function() {
            var t4, n4, e3 = this, i3 = e3.hJ;
            if (i3 && i3.length > 0) {
              for (t4 = 0; t4 < i3.length; t4++) if (n4 = i3[t4].iconValue, it(n4)) return true;
            }
          }, n3.prototype.oX = function() {
            var t4, n4, e3, i3, r2, o2, a2 = this, u2 = { n_: v, sqref: tt(a2.ranges()) };
            for (u2.pivot = B(a2.pivotTableName) ? w : "1", t4 = a2.iconSetType(), B(t4) && (t4 = 0), u2.c_ = [{ n_: "cfRule", type: "iconSet", priority: a2.priority() ? "" + a2.priority() : "1", c_: [{ n_: "iconSet", iconSet: Oe(t4), reverse: a2.reverseIconOrder() ? "1" : w, showValue: a2.showIconOnly() ? "0" : w, c_: [{ n_: "cfvo", type: "percent", val: "0" }] }] }], n4 = u2.c_[0].c_[0].c_, i3 = 0, r2 = (e3 = a2.hJ).length; i3 < r2; i3++) o2 = e3[i3], n4.push({ n_: "cfvo", type: Re(o2.iconValueType), val: z(V(o2.iconValue)), gte: false === o2.isGreaterThanOrEqualTo ? "0" : w });
            return a2.rJ && u2.c_[0].c_.push({ n_: d, c_: [{ n_: "ext", r_: [1, 17], c_: [{ n_: "id", c_: [a2.rJ] }] }] }), u2;
          }, n3.prototype.IJ = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = { n_: "conditionalFormatting", r_: [2] };
            for (b2.pivot = B(m2.pivotTableName) ? w : "1", n4 = { n_: "cfRule", type: "iconSet", id: t4 = yt() }, m2.rJ = t4, B(m2.priority()) || (n4.priority = m2.priority()), i3 = { n_: "iconSet", iconSet: Oe(e3 = m2.iconSetType()) }, (r2 = we(e3, m2)) && (i3.custom = "1"), m2.showIconOnly() && (i3.showValue = "0"), m2.reverseIconOrder() && (r2 || (i3.reverse = "1")), o2 = [{ n_: "cfvo", type: "percent", c_: [{ n_: "f", c_: ["0"] }] }], a2 = m2.hJ, r2 && m2.reverseIconOrder() && (a2 = a2.concat([]).reverse()), u2 = 0; u2 < a2.length; u2++) c2 = { n_: "cfvo", type: Re((s2 = a2[u2]).iconValueType), c_: [{ n_: "f", c_: [z(H(s2.iconValue))] }] }, false === s2.isGreaterThanOrEqualTo && (c2.gte = "0"), o2.push(c2);
            for (f2 = m2.iJ, l2 = 0; l2 < f2.length; l2++) g2 = { n_: "cfIcon", iconSet: Oe((p2 = Ve(d2 = (h2 = f2[l2]).iconSetType, v2 = h2.iconIndex)).iconSetType), iconId: p2.iconIndex }, o2.push(g2);
            return i3.c_ = o2, n4.c_ = [i3], b2.c_ = [n4, { n_: "sqref", c_: [tt(m2.ranges())] }], b2;
          }, n3.prototype.wh = function(t4, n4, e3, i3, r2) {
            var o2 = this;
            if (!$n(i3) || !o2.aX()) return B(o2.condition()) && o2.initCondition(), n4 ? o2.IJ() : o2.oX();
          }, n3.prototype.uX = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.c_[0];
            if (c2) for (e3 = _e(c2.iconSet || "3TrafficLights1"), s2.showIconOnly(!Mt(c2.showValue, true)), s2.reverseIconOrder(Mt(c2.reverse, false)), s2.iconSetType(e3), s2.ranges(n4), r2 = 1, o2 = (i3 = Ae(t4)).length; r2 < o2; r2++) a2 = s2.hJ[r2 - 1], u2 = i3[r2], a2 ? (u2.type && (a2.iconValueType = Le(u2.type)), B(u2.val) || (a2.iconValue = Vn(u2.val)), B(u2.gte) || (a2.isGreaterThanOrEqualTo = Mt(u2.gte))) : (a2 = new On(Mt(u2.gte), Le(u2.type), Vn(u2.val)), s2.hJ[r2 - 1] = a2);
            t4.c_[1] && t4.c_[1].n_ === d && (s2.rJ = he(t4.c_[1]));
          }, n3.prototype.sX = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = Q(t4, "iconSet");
            for (h2.iconSetType(_e(d2.iconSet)), h2.ranges(n4), B(d2.showValue) || h2.showIconOnly(!Mt(d2.showValue, true)), B(d2.reverse) || h2.reverseIconOrder(Mt(d2.reverse, false)), i3 = 1, r2 = (e3 = Y(d2, "cfvo")).length; i3 < r2; i3++) o2 = h2.hJ[i3 - 1], u2 = (a2 = e3[i3]).val, B(u2) && (s2 = Q(a2, "f"), u2 = p(s2 && s2.c_ && s2.c_[0])), o2 ? (a2.type && (o2.iconValueType = Le(a2.type)), B(u2) || (o2.iconValue = 0 === u2 ? "=0" : Vn(u2)), B(a2.gte) || (o2.isGreaterThanOrEqualTo = Mt(a2.gte))) : (o2 = new On(Mt(a2.gte), Le(a2.type), Vn(u2)), h2.hJ[i3 - 1] = o2);
            for (i3 = 0, r2 = (c2 = Y(d2, "cfIcon")).length; i3 < r2; i3++) f2 = h2.iJ[i3], l2 = c2[i3], f2 && (B(l2.iconSet) || (f2.iconSetType = _e(l2.iconSet)), B(l2.iconId) || (f2.iconIndex = +l2.iconId));
            B(t4.priority) || h2.priority(+t4.priority);
          }, n3.prototype.yh = function(t4, n4, e3, i3, r2, o2) {
            var a2 = this;
            r2 ? a2.sX(t4, n4) : a2.uX(t4, n4), a2.initCondition(i3);
          }, n3.getIcon = function(t4, n4) {
            return y;
          }, n3.kX = function(t4, n4, e3, i3, r2, o2, a2) {
            if (a2.getState(n4)) {
              var u2 = a2.getImage(n4);
              t4.drawImage(u2, e3, i3, r2, o2);
            } else a2.addImage(n4);
          }, n3.paintIconSet = function(t4, e3, i3, r2, o2, a2, u2, c2, f2, l2) {
            var h2, d2, v2 = s.W.x2e(u2, 1).fontSize, p2 = v2, g2 = 2, b2 = 2, y2 = i3 + g2;
            if (e3.showIconOnly && (1 === u2.hAlign ? y2 = i3 + o2 / 2 - p2 / 2 : 2 === u2.hAlign && (y2 = i3 + o2 - g2 - p2 - 2)), h2 = 1 === u2.vAlign ? r2 + a2 / 2 - p2 / 2 : 2 === u2.vAlign ? r2 + a2 - b2 - c2 / 2 - p2 / 2 : r2 + b2 + c2 / 2 - p2 / 2, e3.iconSetType !== Jt.noIcons) if ((d2 = n3.getIcon(e3.iconSetType, e3.iconIndex)) && "string" === m.getType(d2) && l2) try {
              n3.kX(t4, d2, y2, h2, p2, p2, l2);
            } catch (t5) {
            }
            else ae(t4, e3, y2, h2, p2, i3, r2, o2, a2);
          }, n3;
        })(kn), n2.IconSetRule = Rn, Ln = { iconSetType: It("iconSetType", Jt.threeArrowsColored, (function(t3) {
          this.xX(t3);
        })), reverseIconOrder: It("reverseIconOrder", false), showIconOnly: It("showIconOnly", false) }, m.extend(Rn.prototype, Ln), Fn = ["ruleType", "state", "style", "priority", "stopIfTrue", "ranges"], Bn = (function(t3) {
          function e3(n3, e4, i3, r2) {
            var o2 = t3.call(this, n3, w, r2) || this, a2 = o2;
            return a2.style(i3), a2.state(e4), o2;
          }
          return Gn(e3, t3), e3.prototype.JJ = function(t4, n3) {
            var e4, i3, r2, o2 = this.ranges();
            if (o2) {
              for (e4 = pt(o2), i3 = void 0, r2 = 0; r2 < e4; r2++) if ((i3 = o2[r2]).contains(t4, n3)) return r2;
            }
            return -1;
          }, e3.prototype.zT = function(t4) {
            return t4 > -1;
          }, e3.prototype.getExpected = function(t4) {
            void 0 === t4 && (t4 = 0);
            var n3 = this.style();
            return wt(n3) ? n3[t4] : n3;
          }, e3.prototype.isRow = function() {
            var t4 = this, n3 = t4.ruleType();
            return B(t4.DX) && (n3 === _t.rowStateRule ? t4.DX = true : n3 === _t.columnStateRule && (t4.DX = false)), this.DX;
          }, e3.prototype.isStateRule = function() {
            return true;
          }, e3.prototype._X = function() {
            var t4 = this, e4 = t4.state(), i3 = t4.ranges();
            return (0, n2.aJ)($t.stateCondition, qt.contains, e4, w, w, w, i3);
          }, e3.prototype.rowStateRuleCreateCondition = function() {
            return this._X();
          }, e3.prototype.columnStateRuleCreateCondition = function() {
            return this._X();
          }, e3.prototype.createCondition = function() {
            return this[_t[this.ruleType()] + "CreateCondition"]();
          }, e3.prototype.EX = function(t4) {
            var n3 = this;
            return e3.StatesPriority.indexOf(n3.state()) < e3.StatesPriority.indexOf(t4.state());
          }, e3.prototype.fromJSON = function(t4, n3, e4) {
            var i3 = Fn;
            B(t4.condition) || (i3 = Fn.concat(["condition"])), Nt.call(this, n3, i3, t4, e4), this.initCondition(n3);
          }, e3.prototype.toJSON = function(t4, n3) {
            var e4, i3, r2 = this;
            return B(r2.condition()) && this.initCondition(), e4 = kt.call(r2, t4, Fn, w, n3), (i3 = r2.ruleType()) === _t.conditionRuleBase && (e4.condition = r2.condition().toJSON()), e4;
          }, e3.StatesPriority = [4, s.RowColumnStates.invalid, s.RowColumnStates.dirty, s.RowColumnStates.invalidFormula, s.RowColumnStates.inserted, 256, s.RowColumnStates.selected, s.RowColumnStates.active, s.RowColumnStates.hover, s.RowColumnStates.edit], e3;
        })(bn), n2.StateRule = Bn, Bn.prototype.state = It("state", y), Pn = (function() {
          function t3(t4) {
            this.qK = [], this._Jt = {}, this.$K = y, this.sE(), this.nJ = true, this.lao = 0, this.eJ = t4;
          }
          return t3.prototype.getUsedRange = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.getRules(), c2 = {};
            if (s2) for (t4 = void 0, n3 = 0, e3 = s2; n3 < e3.length; n3++) for (r2 = 0, o2 = t4 = (i3 = e3[n3]).ranges(); r2 < o2.length; r2++) a2 = o2[r2], l(c2, h(a2));
            return c2;
          }, t3.prototype.L0 = function() {
            this.eJ = y, this._Jt = {};
          }, t3.prototype.getRule = function(t4) {
            return this.qK[t4];
          }, t3.prototype.B_r = function(t4) {
            return this._Jt[t4];
          }, t3.prototype.count = function(t4) {
            var n3, e3, i3, r2, o2;
            if (B(t4)) return pt(this.qK);
            for (e3 = 0, i3 = 0, r2 = (n3 = this.qK).length; i3 < r2; i3++) Qn((o2 = n3[i3]).nT) === t4 && e3++;
            return e3;
          }, t3.prototype.ome = function(t4) {
            var n3, e3, i3, r2;
            if (B(t4)) return pt(this.qK) > 0;
            for (e3 = 0, i3 = (n3 = this.qK).length; e3 < i3; e3++) if (Qn((r2 = n3[e3]).nT) === t4) return true;
            return false;
          }, t3.prototype.jX = function() {
            return this.qK;
          }, t3.prototype.GJ = function(t4) {
            var n3, e3, i3 = [], r2 = this.eJ, o2 = pt(t4);
            for (n3 = 0; n3 < o2; n3++) e3 = r2.JS(t4[n3]), i3.push(e3);
            return i3;
          }, t3.prototype.OX = function(t4) {
            var n3, e3, i3, r2, o2 = [], a2 = this.eJ;
            for (n3 = 0, e3 = pt(t4); n3 < e3; n3++) i3 = t4[n3], r2 = new ft(i3.row, i3.col, zn(i3), Yn(i3)), 0 === i3.row && zn(i3) === a2.getRowCount() && (r2.row = -1), 0 === i3.col && Yn(i3) === a2.getColumnCount() && (r2.col = -1), o2.push(r2);
            return o2;
          }, t3.prototype.YSe = function(t4, n3, e3) {
            var i3, r2, o2 = this;
            -1 !== e3 && (i3 = o2.ZSe[e3]) && pe(t4, i3), -1 !== n3 && (r2 = o2.WSe[n3]) && pe(t4, r2), o2.QSe.length > 0 && pe(t4, o2.QSe);
          }, t3.prototype.KSe = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.ZSe, d2 = l2.WSe, v2 = function(t5) {
              var n4 = t5.indexOf(r2);
              n4 > -1 && t5.splice(n4, 1);
            };
            if (-1 === t4 && -1 !== n3 && i3 > 0) for (a2 = (o2 = n3) + i3; o2 < a2; o2++) (u2 = h2[o2]) && (r2 ? v2(u2) : delete h2[o2]);
            if (-1 !== t4 && -1 === n3 && e3 > 0) for (a2 = (s2 = t4) + e3; s2 < a2; s2++) (c2 = d2[s2]) && (r2 ? v2(c2) : delete d2[s2]);
            if (-1 === t4 && -1 === n3) if (r2) {
              for (f2 in v2(l2.QSe), h2) h2.hasOwnProperty(f2) && v2(h2[f2]);
              for (f2 in d2) d2.hasOwnProperty(f2) && v2(d2[f2]);
            } else l2.QSe = [], l2.ZSe = {}, l2.WSe = {};
          }, t3.prototype.sE = function() {
            this.tJ = {}, this.QSe = [], this.WSe = {}, this.ZSe = {};
          }, t3.prototype.C8 = function() {
            if (this.nJ && !this.hao() && (this.sE(), this.qK)) for (var t4 = 0; t4 < pt(this.qK); t4++) this.fE(this.qK[t4]);
          }, t3.prototype.cao = function() {
            this.lao++;
          }, t3.prototype.fao = function() {
            this.lao--, this.hao() || this.C8();
          }, t3.prototype.hao = function() {
            return this.lao > 0;
          }, t3.prototype.TJ = function() {
            this.nJ && (this.tJ = {});
          }, t3.prototype.fE = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2;
            if (this.nJ) {
              for (e3 = (n3 = this).tJ, u2 = t4.ranges(), s2 = [], c2 = 0; c2 < pt(u2); c2++) if (l2 = -1 === (f2 = u2[c2]).col, (h2 = -1 === f2.row) && l2) n3.QSe.push(t4);
              else if (h2) {
                if (f2.colCount > 0) for (v2 = (d2 = f2.col) + f2.colCount; d2 < v2; d2++) (p2 = n3.ZSe[d2]) || (n3.ZSe[d2] = p2 = []), p2.push(t4);
              } else if (l2) {
                if (f2.rowCount > 0) for (v2 = (g2 = f2.row) + f2.rowCount; g2 < v2; g2++) (m2 = n3.WSe[g2]) || (n3.WSe[g2] = m2 = []), m2.push(t4);
              } else s2.push(f2);
              for (s2 = n3.GJ(s2), y2 = (b2 = n3.eJ).getRowCount(), w2 = b2.getColumnCount(), c2 = 0; c2 < pt(s2); c2++) for (M2 = (f2 = s2[c2]).row, C2 = f2.col, M2 + (S2 = zn(f2)) - 1 >= y2 && (S2 = y2 - M2), C2 + (T2 = Yn(f2)) - 1 >= w2 && (T2 = w2 - C2), x2 = 0; x2 < S2; x2++) for ((i3 = e3[o2 = x2 + M2]) || (e3[o2] = i3 = []), A2 = 0; A2 < T2; A2++) (r2 = i3[a2 = A2 + C2]) || (i3[a2] = r2 = []), r2.push(t4);
            }
          }, t3.prototype.RX = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            if (this.nJ && t4) {
              for (e3 = n3 || t4.ranges(), i3 = 0, r2 = pt(e3); i3 < r2; i3++) o2 = e3[i3], this.KSe(o2.row, o2.col, o2.rowCount, o2.colCount, t4);
              for (a2 = this.tJ, l2 = this.GJ(n3 || t4.ranges()), h2 = 0; h2 < pt(l2); h2++) for (d2 = l2[h2], v2 = 0; v2 < zn(d2); v2++) if (u2 = a2[c2 = v2 + d2.row]) {
                for (p2 = 0; p2 < Yn(d2); p2++) if (s2 = u2[f2 = p2 + d2.col]) {
                  for (g2 = [], m2 = 0; m2 < pt(s2); m2++) s2[m2] !== t4 && g2.push(s2[m2]);
                  0 === pt(g2) && (g2 = w), u2[f2] = g2;
                }
              }
            }
          }, t3.prototype.BX = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (this.nJ) {
              for (this.KSe(t4, n3, e3, i3), -1 === n3 && (n3 = 0, i3 = this.eJ.getColumnCount()), -1 === t4 && (t4 = 0, e3 = this.eJ.getRowCount()), a2 = this.tJ, s2 = 0; s2 < e3; s2++) if (u2 = a2[r2 = s2 + t4]) for (c2 = 0; c2 < i3; c2++) u2[o2 = c2 + n3] = w;
            }
          }, t3.prototype.EHr = function(t4, n3) {
            this.nJ && t4 && (this.RX(t4, n3), this.fE(t4));
          }, t3.prototype.LX = function(t4, n3) {
            var e3, i3, r2, o2 = this.qK;
            return -1 === t4 && -1 === n3 ? Un([], o2, true) : (e3 = this.eJ, i3 = 1, r2 = 1, -1 === t4 ? i3 = e3.getRowCount() : -1 === n3 && (r2 = e3.getColumnCount()), o2.filter((function(e4) {
              return e4.intersects(t4, n3, i3, r2);
            })));
          }, t3.prototype.addSpecificTextRule = function(t4, n3, e3, i3) {
            var r2 = new Tn(2, i3, e3, t4, y, y, n3);
            return this.addRule(r2);
          }, t3.prototype.addCellValueRule = function(t4, n3, e3, i3, r2) {
            var o2 = new Tn(1, r2, i3, t4, de(n3), de(e3));
            return this.addRule(o2);
          }, t3.prototype.addDateOccurringRule = function(t4, n3, e3) {
            var i3 = new Tn(4, e3, n3, y, y, y, y, y, t4);
            return this.addRule(i3);
          }, t3.prototype.addFormulaRule = function(t4, n3, e3) {
            var i3 = new Tn(3, e3, n3, y, y, y, y, t4);
            return this.addRule(i3);
          }, t3.prototype.addTop10Rule = function(t4, n3, e3, i3) {
            var r2 = new Tn(5, i3, e3, y, y, y, y, y, t4, n3);
            return this.addRule(r2);
          }, t3.prototype.addUniqueRule = function(t4, n3) {
            var e3 = new Tn(6, n3, t4);
            return this.addRule(e3);
          }, t3.prototype.addDuplicateRule = function(t4, n3) {
            var e3 = new Tn(7, n3, t4);
            return this.addRule(e3);
          }, t3.prototype.addAverageRule = function(t4, n3, e3) {
            var i3 = new Tn(8, e3, n3, y, y, y, y, y, t4);
            return this.addRule(i3);
          }, t3.prototype.add3ScaleRule = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2;
            return f2 = 0 === arguments.length ? new kn(11) : new kn(11, t4, n3, e3, i3, r2, o2, a2, u2, s2, c2), this.addRule(f2);
          }, t3.prototype.add2ScaleRule = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2;
            return u2 = 0 === arguments.length ? new kn(10) : new kn(10, t4, n3, e3, y, y, y, i3, r2, o2, a2), this.addRule(u2);
          }, t3.prototype.addDataBarRule = function(t4, n3, e3, i3, r2, o2) {
            var a2;
            return a2 = 0 === arguments.length ? new Dn() : new Dn(t4, n3, e3, i3, r2, o2), this.addRule(a2);
          }, t3.prototype.addIconSetRule = function(t4, n3) {
            var e3 = new Rn(t4, n3);
            return this.addRule(e3);
          }, t3.prototype.addRowStateRule = function(t4, n3, e3) {
            var i3 = this, r2 = new Bn(_t.rowStateRule, t4, n3, e3);
            return i3.addRule(r2);
          }, t3.prototype.addColumnStateRule = function(t4, n3, e3) {
            var i3 = this, r2 = new Bn(_t.columnStateRule, t4, n3, e3);
            return i3.addRule(r2);
          }, t3.prototype.addRule = function(n3) {
            var e3, i3 = this, r2 = i3.eJ;
            if (r2) {
              if (!n3) throw new Error(St().Exp_RuleIsNull);
              return e3 = n3.ranges(), r2.Ut.vJ(), i3.qK.push(n3), i3.P_r(r2, n3), i3.G_r(n3, true), i3._Jt[n3.jKe()] = n3, t3.et(r2, "onRuleAdded", { ranges: e3 }), n3.context(r2), r2.$Dr({ type: "addRule", value: n3 }), i3.fE(n3), r2.Ut.vJ(true), r2.zw(), n3;
            }
          }, t3.prototype.P_r = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2 = n3.ranges();
            c2 && (e3 = (r2 = rt(c2)).r, i3 = r2.c, n3.ranges(c2.slice(0))), (a2 = (o2 = n3.getExpected()) && o2.formatter) && "string" == typeof a2 && t4.SL(e3 || 0, i3 || 0, a2), n3.isStateRule() && (u2 = n3.state(), s2 = n3.isRow(), t4._1 && t4._1.enableState(u2, s2));
          }, t3.prototype.G_r = function(t4, n3) {
            var e3 = this, i3 = e3.bUr(t4, n3);
            t4.priority(i3, w, false);
          }, t3.prototype.bUr = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = 1, u2 = pt(o2.qK);
            for (e3 = 0; e3 < u2; e3++) (i3 = o2.qK[e3]) !== t4 && (r2 = i3.priority() || 1, i3.priority(r2 + 1, w, false), t4.isStateRule() && i3.isStateRule() && t4.EX(i3) && (a2 = x(a2, i3.priority()), i3.priority(i3.priority() - 1, w, false), n3 && i3.$Dr("deltaPriority", -1, 0)));
            return a2;
          }, t3.prototype.removeRule = function(t4) {
            this.RHr(t4, true);
          }, t3.prototype.RHr = function(n3, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.eJ;
            s2 && n3 && (r2 = (i3 = u2.qK).indexOf(n3)) > -1 && (s2.Ut.vJ(), o2 = { type: "removeRule", value: n3.jKe() }, a2 = s2.THr(o2), e3 && u2.RX(n3), i3.splice(r2, 1), u2._Jt[n3.jKe()] = w, s2.$Dr(o2, a2), s2.Ut.vJ(true), t3.et(s2, "onRuleRemoved", { priority: n3.priority(), ranges: n3.ranges() }), u2.U_r(n3), s2.zw());
          }, t3.prototype.U_r = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.eJ;
            if (l2 && (n3 = l2.parent, (i3 = (e3 = t4.getExpected()) && e3.formatter) && "string" == typeof i3 && n3.bp[i3] && n3.o3(i3), t4.isStateRule())) {
              for (r2 = t4.state(), o2 = t4.isRow(), a2 = false, u2 = 0, s2 = f2.qK; u2 < s2.length; u2++) if ((c2 = s2[u2]).isStateRule() && c2.state() === r2) {
                a2 = true;
                break;
              }
              a2 || l2._1.disableState(r2, o2);
            }
          }, t3.prototype.FX = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            return t4.intersect(n3, e3, i3, r2) ? (o2 = t4.row, a2 = t4.row + zn(t4) - 1, u2 = t4.col, s2 = t4.col + Yn(t4) - 1, c2 = n3, f2 = n3 + i3 - 1, l2 = e3, h2 = e3 + r2 - 1, d2 = [], -1 !== o2 && -1 !== u2 && -1 !== c2 && -1 !== l2 && (l2 - u2 > 0 && (v2 = ct(o2, u2, zn(t4), l2 - u2), d2.push(v2)), s2 - h2 > 0 && (p2 = ct(o2, h2 + 1, zn(t4), s2 - h2), d2.push(p2)), c2 - o2 > 0 && (g2 = ct(o2, x(l2, u2), c2 - o2, T(h2, s2) - x(l2, u2) + 1), d2.push(g2)), a2 - f2 > 0 && (m2 = ct(f2 + 1, x(l2, u2), a2 - f2, T(h2, s2) - x(l2, u2) + 1), d2.push(m2))), pt(d2) > 0 ? d2 : y) : [t4];
          }, t3.prototype.removeRuleByRange = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.eJ;
            if (v2) {
              if (d2.qK) {
                for (v2.Ut.vJ(), d2.BX(t4, n3, e3, i3), r2 = 0, o2 = pt(d2.qK); r2 < o2; r2++) if ((a2 = d2.qK[r2]) && a2.ranges() && a2.intersects(t4, n3, e3, i3)) if (v2.pivotTables && a2.pivotTableName) (u2 = v2.pivotTables.get(a2.pivotTableName)).tqt(a2, t4, n3, e3, i3);
                else {
                  for (s2 = [], c2 = d2.GJ(a2.ranges()), f2 = 0, l2 = pt(c2); f2 < l2; f2++) (h2 = d2.FX(c2[f2], t4, n3, e3, i3)) && (s2 = s2.concat(h2));
                  pt(s2) > 0 ? a2.ranges(s2) : d2.RHr(a2, false);
                }
              }
              v2.Ut.vJ(true), v2.zw();
            }
          }, t3.prototype.removeRuleById = function(t4) {
            var n3, e3 = this, i3 = e3.eJ;
            i3 && e3.qK && (n3 = e3.qK.find((function(n4) {
              return (null == n4 ? void 0 : n4.jKe()) === t4;
            }))) && e3.removeRule(n3);
          }, t3.prototype.clearRule = function() {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.eJ, h2 = l2.parent;
            if (l2) {
              for (n3 = f2.qK, l2.Ut.vJ(), e3 = { type: "clearRule" }, i3 = l2.THr(e3), r2 = 0; r2 < n3.length; r2++) u2 = (a2 = (o2 = n3[r2]).getExpected()) && a2.formatter, t3.et(l2, "onRuleRemoved", { ranges: o2.ranges() }), u2 && "string" == typeof u2 && h2.bp[u2] && h2.o3(u2);
              if (l2.pivotTables) for (s2 = l2.pivotTables.all(), r2 = 0; r2 < s2.length; r2++) (c2 = s2[r2]).iqt();
              f2.qK.length = 0, f2.C8(), l2.$Dr(e3, i3), l2.Ut.vJ(true), l2.zw();
            }
          }, t3.prototype.getRules = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.qK;
            return 0 === arguments.length || 0 === pt(u2) ? u2 : (t4 = t4 === w ? -1 : t4, n3 = n3 === w ? -1 : n3, e3 = [], a2.nJ ? (i3 = a2.tJ, o2 = void 0, -1 !== t4 && -1 !== n3 ? (o2 = i3[t4]) && (r2 = o2[n3], pe(e3, r2)) : -1 === t4 ? m.each(i3, (function(t5, i4) {
              r2 = i4[n3], pe(e3, r2);
            })) : (o2 = i3[t4]) && m.each(o2, (function(t5, n4) {
              pe(e3, n4);
            })), a2.YSe(e3, t4, n3), e3) : a2.LX(t4, n3));
          }, t3.prototype.containsRule = function(t4, n3, e3) {
            return !(!t4 || !ht.OS(this.qK, t4)) && t4.contains(n3, e3);
          }, t3.prototype.PX = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.eJ;
            if (d2) {
              if (!t4) throw new Error(St().Exp_RuleIsNull);
              for (i3 = void 0, r2 = void 0, (e3 = t4.ranges()) && (i3 = (o2 = rt(e3)).r, r2 = o2.c), (u2 = (a2 = t4.getExpected()) && a2.formatter) && "string" == typeof u2 && d2.SL(i3 || 0, r2 || 0, u2), d2.Ut.vJ(), s2 = 0, c2 = pt(h2.qK); s2 < c2; s2++) n3 <= (l2 = (f2 = h2.qK[s2]._ps).priority || 1) && (f2.priority = l2 + 1);
              return t4.priority(n3), h2.qK[n3] = t4, t4.context(d2), h2.fE(t4), d2.zw(), t4;
            }
          }, t3.prototype.qJ = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.eJ, u2 = a2.Ut, s2 = o2.qK, c2 = pt(s2), f2 = false;
            for (u2.vJ(), i3 = 0; i3 < c2; i3++) (r2 = s2[i3]) && r2.qJ(t4, n3, e3) && (f2 = true);
            f2 && o2.C8();
          }, t3.prototype.$J = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2 = this;
            if (c2.qK && c2.eJ) for (a2 = pt(c2.qK), u2 = 0; u2 < a2; u2++) (s2 = c2.qK[u2]) && (e3 ? s2.JO(t4, n3, i3, r2, o2) : s2.qO(t4, n3, i3, r2, o2));
            c2.C8();
          }, t3.prototype.JO = function(t4, n3, e3, i3, r2) {
            this.$J(t4, n3, true, e3, i3, r2);
          }, t3.prototype.qO = function(t4, n3, e3, i3, r2) {
            this.$J(t4, n3, false, e3, i3, r2);
          }, t3.prototype.tX = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this;
            if (s2.qK && s2.eJ) for (a2 = (o2 = pt(s2.qK)) - 1; a2 >= 0; a2--) (u2 = s2.qK[a2]) && (e3 ? u2.xP(t4, n3, i3, r2) : u2.NP(t4, n3, i3, r2), u2.ranges().length <= 0 && (s2.RX(u2), s2.qK.splice(a2, 1)));
            s2.C8();
          }, t3.prototype.xP = function(t4, n3, e3, i3) {
            this.tX(t4, n3, true, e3, i3);
          }, t3.prototype.NP = function(t4, n3, e3, i3) {
            this.tX(t4, n3, false, e3, i3);
          }, t3.prototype.dl = function() {
            var t4, n3, e3, i3 = this.qK;
            if (i3 !== y && pt(i3) > 0) for (n3 = 0, e3 = pt(i3); n3 < e3; n3++) (t4 = i3[n3]).dl && t4.dl();
          }, t3.prototype.jB = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, f2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2 = [], H2 = [], V2 = [], z2 = [], Y2 = [], Z2 = this, W2 = Z2.eJ, Q2 = !s2 && W2.o5();
            for (f2 && (o2 = (l2 = [a2, o2])[0], a2 = l2[1]), -1 === t4 && (t4 = 0, i3 = 0, o2 = W2.getRowCount()), -1 === n3 && (n3 = 0, r2 = 0, a2 = W2.getColumnCount()), h2 = 0; h2 < o2; h2++) for (d2 = 0; d2 < a2; d2++) for (v2 = Z2.getRules(t4 + h2, n3 + d2), p2 = 0; p2 < pt(v2); p2++) if (g2 = v2[p2], m2 = g2.ranges(), !g2.isStateRule()) {
              for (b2 = [], y2 = function(s3) {
                var c2, l3, v3 = m2[s3], p3 = W2.JS(v3), y3 = p3.row, w2 = p3.col, M3 = zn(p3), C3 = Yn(p3), S3 = vt(V2, v3) <= -1 || vt(V2, v3) > -1 && vt(z2, g2) <= -1;
                S3 && v3.contains(t4 + h2, n3 + d2) && (V2.push(v3), z2.push(g2), l3 = ct(i3 + h2, r2 + d2, -1, -1), f2 && (l3 = ct(i3 + d2, r2 + h2, -1, -1)), l3.rowCount = y3 + M3 >= o2 + t4 ? o2 - h2 : t4 < y3 ? M3 : y3 + M3 - t4, l3.colCount = w2 + C3 >= a2 + n3 ? a2 - d2 : n3 < w2 ? C3 : w2 + C3 - n3, f2 && (c2 = [l3.colCount, l3.rowCount], l3.rowCount = c2[0], l3.colCount = c2[1]), Z2 === e3 && m2.some((function(t5) {
                  return t5.containsRange(l3);
                })) || b2.push(l3), u2 && Ge(Y2, l3, g2));
              }, M2 = 0; M2 < pt(m2); M2++) y2(M2);
              b2.length > 0 && ((C2 = U2.indexOf(g2)) < 0 ? (Q2 && (b2 = Z2.GX(b2)), U2.push(g2), H2.push(b2)) : (Q2 && (S2 = void 0, T2 = void 0, x2 = void 0, A2 = void 0, I2 = H2[C2][0].row, k2 = H2[C2][0].col, S2 = (N2 = b2[0]).row - I2, T2 = N2.col - k2, x2 = W2.lT(I2, S2, true), A2 = W2.lT(k2, T2), N2.row += x2, N2.col += A2, b2 = Z2.GX(b2)), H2[C2] = H2[C2].concat(b2)));
            }
            for (j2 = 0, D2 = U2.length; j2 < D2; j2++) _2 = U2[j2], E2 = (O2 = Z2.pJ(_2.toJSON(), _2.context())).ranges(), Ue(Y2, _2, O2), O2.ranges(H2[j2], w, false), (R2 = O2.D5) && (L2 = 1 === W2.parent.options.referenceStyle, F2 = rt(E2), B2 = c.formulaToExpression(W2, R2, F2.r, F2.c, L2), P2 = rt(H2[j2]), G2 = c.expressionToFormula(W2, B2, P2.r, P2.c, L2), O2.formula(G2, w, false)), e3.addRule(O2);
            return Z2.C8(), Y2;
          }, t3.prototype.GX = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.eJ, d2 = [];
            if (t4.length > 0) {
              for (e3 = (n3 = t4[0]).row, i3 = n3.col, r2 = n3.rowCount, o2 = n3.colCount, r2 += h2.lT(e3, r2, true), o2 += h2.lT(i3, o2), a2 = [], u2 = void 0, s2 = 0; s2 < o2; s2++) 0 !== s2 ? 0 !== h2.getColumnWidth(i3 + s2) ? u2.colCount++ : (a2.push(u2), s2 = h2.O5(i3 + s2 - 1) - 1 - i3, u2 = new ft(e3, i3 + s2 + 1, 1, 0)) : u2 = new ft(e3, i3, 1, 1);
              for (a2.push(u2), c2 = 0; c2 < r2; c2++) if (0 !== c2) if (0 !== h2.getRowHeight(e3 + c2)) for (f2 = 0; f2 < a2.length; f2++) a2[f2].rowCount++;
              else for (d2 = d2.concat(be(a2)), c2 = h2.j5(e3 + c2 - 1) - 1 - e3, f2 = 0; f2 < a2.length; f2++) a2[f2].rowCount = 0, a2[f2].row = e3 + c2 + 1;
              d2 = d2.concat(a2);
            }
            return d2;
          }, t3.prototype.OB = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, A2, I2, k2, N2, j2, D2, _2 = this, O2 = _2.eJ, E2 = O2.getRowCount(3), R2 = O2.getColumnCount(3);
            for (-1 === t4 && (t4 = 0, e3 = O2.getRowCount()), -1 === n3 && (n3 = 0, i3 = O2.getColumnCount()), a2 = [], u2 = [], s2 = 0, c2 = r2; s2 < c2.length; s2++) for (l2 = 0, h2 = (f2 = c2[s2]).ranges; l2 < h2.length; l2++) ye(a2, d2 = h2[l2]) || a2.push(d2), u2.push({ range: d2, rule: f2.rule });
            for (v2 = 0; v2 < e3; v2++) for (p2 = 0; p2 < i3; p2++) for (g2 = _2.getRules(t4 + v2, n3 + p2), m2 = 0; m2 < pt(g2); m2++) if (b2 = g2[m2], y2 = [].concat(b2.ranges()), w2 = [], !b2.isStateRule()) {
              for (M2 = [], C2 = false, S2 = 0; S2 < pt(y2); S2++) d2 = y2[S2], I2 = (A2 = O2.JS(d2)).row, k2 = A2.col, N2 = zn(A2), j2 = Yn(A2), He(r2, d2, b2) || vt(w2, d2) <= -1 && d2.contains(t4 + v2, n3 + p2) && (w2.push(d2), t4 > I2 && M2.push(ct(I2, k2, t4 - I2, j2)), n3 > k2 && M2.push(ct(x(t4, I2), k2, T(t4 + e3, I2 + N2) - x(t4, I2), n3 - k2)), n3 + i3 < k2 + j2 && M2.push(ct(x(t4, I2), n3 + i3, T(t4 + e3, I2 + N2) - x(t4, I2), k2 + j2 - (n3 + i3))), t4 + e3 < I2 + N2 && M2.push(ct(t4 + e3, k2, I2 + N2 - (t4 + e3), j2)), C2 = true);
              O2 && O2.Ut.vJ(), _2.UX(O2, w2, u2, y2, E2, R2, o2, new ft(t4, n3, e3, i3), b2), (D2 = y2.concat(M2)).length > 0 ? C2 && (b2.XJ(), b2.ranges(D2)) : _2.removeRule(b2);
            }
            _2.C8();
          }, t3.prototype.UX = function(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p2, g2;
            for (c2 = 0; c2 < pt(n3); c2++) {
              if (l2 = [f2 = n3[c2]], a2) for (h2 = 0; h2 < pt(e3); h2++) d2 = e3[h2].range, v2 = e3[h2].rule, f2.intersect(d2.row, d2.col, d2.rowCount, d2.colCount) && (l2 = l2.concat(t4.BR(f2, d2, r2, o2)), v2 === s2 && (p2 = u2.getIntersect(d2, r2, o2)) && i3.push(p2));
              for (g2 = 0; g2 < pt(l2); g2++) dt(i3, l2[g2]);
            }
          }, t3.prototype._e = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2 = 16, c2 = false, f2 = false, l2 = u2.sheet, h2 = u2.row, d2 = u2.col, v2 = l2.zoom(), p2 = this.U(l2, h2, d2, n3, u2.sheetArea), g2 = p2 && p2.iconSet, m2 = p2 && p2.dataBar;
            return (m2 || g2) && (t4.save(), t4.beginPath(), m2 && (Dn.paintDataBar(t4, m2, e3, i3, r2, o2, l2), c2 = m2.showBarOnly), g2 && ((r2 < (s2 = parseInt(s2 * v2 + "", 10)) || o2 < s2) && (t4.rect(e3, i3, r2, o2), t4.clip(), t4.beginPath()), Rn.paintIconSet(t4, g2, e3, i3, r2, o2, a2, u2.lineHeight, v2, u2.imageLoader), f2 = g2.showIconOnly), t4.restore()), c2 || f2;
          }, t3.prototype.U = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (B(r2) || 3 === r2) {
              if (o2 = this, c2 = (a2 = t4.Jt).yl(n3, e3)) u2 = c2.i, s2 = c2.d;
              else {
                if (f2 = o2.getRules(n3, e3), (l2 = pt(f2)) > 0) {
                  for (f2.sort((function(t5, n4) {
                    return t5.priority() - n4.priority();
                  })), h2 = y, d2 = y, v2 = void 0, p2 = void 0, g2 = void 0, g2 = 0; g2 < l2 && (!h2 || !d2); g2++) (v2 = f2[g2]) && (G(v2, Dn) && (h2 = v2), G(v2, Rn) && (d2 = v2));
                  if (h2 || d2) for (h2 = d2 = y, g2 = 0; g2 < l2 && (!h2 || !d2) && !((v2 = f2[g2]) && (!h2 && G(v2, Dn) && (h2 = v2), !d2 && G(v2, Rn) && (d2 = v2), v2.stopIfTrue() && (p2 = v2.evaluate(t4, n3, e3, i3)))); g2++) ;
                  h2 && (s2 = h2.evaluate(t4, n3, e3, i3)), d2 && (u2 = d2.evaluate(t4, n3, e3, i3));
                }
                a2.Ml(n3, e3, s2, u2);
              }
              return { dataBar: s2, iconSet: u2 };
            }
          }, t3.prototype.O = function(t4, n3, e3) {
            var i3, r2, o2;
            if (B(e3) || 3 === e3) {
              for (i3 = this.getRules(t4, n3), r2 = 0, o2 = pt(i3); r2 < o2; r2++) if (i3[r2] instanceof Rn) return true;
            }
            return false;
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3, i3, r2 = [];
            for (e3 = 0; e3 < pt(this.qK); e3++) i3 = this.qK[e3], r2.push(i3 ? i3.toJSON(t4, n3) : y);
            return 0 === pt(r2) ? w : { rules: r2 };
          }, t3.prototype.fromJSON = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2;
            if (t4 && (r2 = t4.rules)) {
              for (this.qK = [], o2 = pt(r2), a2 = 0; a2 < o2; a2++) (u2 = r2[a2]).pivot && i3 || (s2 = this.pJ(u2, n3, e3)) && (this.qK.push(s2), this._Jt[s2.jKe()] = s2);
              this.nJ = !ge(r2), this.C8();
            }
          }, t3.prototype.xJ = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2;
            switch (t4.type) {
              case "dataBar":
                u2 = new Dn();
                break;
              case "iconSet":
                u2 = new Rn();
                break;
              case "colorScale":
                u2 = new kn();
                break;
              default:
                u2 = new Tn();
            }
            return u2 && u2.yh(t4, n3, e3, i3, o2, void 0, r2), u2;
          }, t3.prototype.pJ = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = y;
            return t4 && (r2 = (i3 = this.HX())[t4.ruleType]) && (u2 = new r2()).fromJSON(t4, n3, e3), u2.isStateRule() && (o2 = u2.state(), a2 = u2.isRow(), n3 && n3._1 && n3._1.enableState(o2, a2)), u2;
          }, t3.prototype.HX = function() {
            if (!this.$K) {
              var t4 = {};
              t4[0] = Tn, t4[1] = Tn, t4[2] = Tn, t4[3] = Tn, t4[4] = Tn, t4[5] = Tn, t4[6] = Tn, t4[7] = Tn, t4[8] = Tn, t4[9] = kn, t4[10] = kn, t4[11] = kn, t4[12] = Dn, t4[13] = Rn, t4[14] = Bn, t4[15] = Bn, this.$K = t4;
            }
            return this.$K;
          }, t3.prototype.NJ = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2;
            if (t4 && t4.c_ && !(t4.c_.length <= 0)) for (l2 = 0, h2 = (c2 = t4.c_).length; l2 < h2; l2++) for (d2 = c2[l2], v2 = s.NodeHelper.ur(d2.pivot), g2 = void 0, (p2 = Q(d2, "sqref")) && (g2 = ie(p2.c_[0]), a2 && s.Util.Ao(e3, g2, true, n3)), m2 = Y(d2, "cfRule"), b2 = 0; b2 < m2.length; b2++) M2 = void 0, "dataBar" === (w2 = (y2 = m2[b2]).type) ? (M2 = o2.get(y2.id)) || (M2 = new Dn(), this.qK.push(M2), this._Jt[M2.jKe()] = M2, te(M2, o2)) : "iconSet" === w2 ? (M2 = o2.get(y2.id)) || (M2 = new Rn(), this.qK.push(M2), this._Jt[M2.jKe()] = M2, te(M2, o2)) : (C2 = "expression" === w2 || "cellIs" === w2, S2 = Ee(w2) === _t.specificTextRule, (C2 || S2) && (!f2 && r2.lossless && ((T2 = new s.SimpleSharedStrings()).yh(r2.lossless.sharedColors), (x2 = new s.SimpleSharedStrings()).yh(r2.lossless.commonSharedStrings), (f2 = new s.SharedDxfs(T2, x2)).rv(r2.lossless.sharedDxfs)), M2 = C2 ? new Tn(3) : new Tn(_t.specificTextRule, g2, void 0), this.qK.push(M2), te(M2, o2), this._Jt[M2.jKe()] = M2)), M2 && (M2.pivot = v2, M2.yh(y2, g2, n3.styleManager, e3, true, f2), B(y2.priority) || M2.priority(+y2.priority));
          }, t3.prototype.bL = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2 = this;
            if (g2 && g2.ome(i3) && (r2 = g2.getRules(n3, e3), o2 = pt(r2), a2 = void 0, u2 = y, o2 > 0)) for (i3 = Qn(i3), r2.sort((function(t5, n4) {
              return t5.priority() - n4.priority();
            })), c2 = 0; c2 < o2 && !((a2 = r2[c2]) && i3 === Qn(a2.nT) && (f2 = g2.eJ, a2.isScaleRule() ? 10 !== a2.ruleType() && 11 !== a2.ruleType() || (u2 = a2.evaluate(f2, n3, e3, f2.getValue(n3, e3, i3))) && (t4 || (t4 = new at()), t4.backColor === w && (t4.backColor = u2)) : a2.isStateRule() ? (l2 = a2.state(), h2 = a2.isRow(), d2 = a2.ranges(), v2 = f2._1.getState(n3, e3, l2, h2, d2, i3), (u2 = a2.evaluate(f2, n3, e3, v2)) && (t4 || (t4 = new at()), p2 = f2.NMi && i3 === s.SheetArea.colHeader, t4.h5(u2, false, 1, w, p2))) : (u2 = a2.evaluate(f2, n3, e3, f2.getValue(n3, e3, i3))) && (t4 || (t4 = new at()), t4.h5(u2, false, 1)), a2.stopIfTrue() && u2)); c2++) ;
            return t4;
          }, t3.prototype.wL = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = { yL: false }, m2 = this;
            if (m2 && m2.ome(i3) && (r2 = m2.getRules(t4, n3), o2 = pt(r2), a2 = void 0, u2 = y, o2 > 0)) {
              for (i3 = Qn(i3), r2.sort((function(t5, n4) {
                return t5.priority() - n4.priority();
              })), s2 = 0; s2 < o2; s2++) if ((a2 = r2[s2]) && i3 === Qn(a2.nT)) {
                if (c2 = m2.eJ, a2.isScaleRule()) {
                  if (f2 = a2.ruleType(), "backColor" === e3 && (10 === f2 || 11 === f2) && (u2 = a2.evaluate(c2, t4, n3, c2.getValue(t4, n3, i3)))) {
                    g2.Y6 = u2, g2.yL = true;
                    break;
                  }
                } else if (a2.isStateRule()) {
                  if (l2 = a2.state(), h2 = a2.isRow(), d2 = a2.ranges(), v2 = c2._1.getState(t4, n3, l2, h2, d2, i3), !((p2 = a2.style()) && void 0 !== ve(e3, p2, d2, t4, n3) || a2.stopIfTrue())) continue;
                  if ((u2 = a2.evaluate(c2, t4, n3, v2)) && u2[e3] !== w) {
                    g2.Y6 = u2[e3], g2.yL = true;
                    break;
                  }
                } else {
                  if (!((p2 = a2.style()) && void 0 !== p2[e3] || a2.stopIfTrue())) continue;
                  if ((u2 = a2.evaluate(c2, t4, n3, c2.getValue(t4, n3, i3))) && u2[e3] !== w) {
                    g2.Y6 = u2[e3], g2.yL = true;
                    break;
                  }
                }
                if (a2.stopIfTrue() && u2) break;
              }
            }
            return g2;
          }, t3;
        })(), n2.ConditionalFormats = Pn, nt(Pn);
      }, "./dist/plugins/conditional/conditional.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/conditional/conditional.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/conditional/conditional.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_NotSupported = n2.Exp_RuleIsNull = void 0, n2.Exp_RuleIsNull = "The argument 'rule' is null", n2.Exp_NotSupported = "Not supported exception";
      }, "./dist/plugins/conditional/conditionalFormatIcon.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y;
        function w(t3, n3, e3, i3, r2) {
          t3.beginPath(), t3.moveTo(n3, e3), t3.lineTo(n3 + i3, e3), t3.lineTo(n3 + i3, e3 + r2), t3.lineTo(n3, e3 + r2), t3.lineTo(n3, e3), t3.closePath(), t3.fill(), t3.stroke();
        }
        function M(t3, n3, e3, r2, o2, a2) {
          var u2, s2;
          t3.translate(r2, o2), t3.strokeStyle = y[n3][e3].strokeStyle, u2 = y[n3][e3].fillColor.split(" "), s2 = i2(0.2 * a2), t3.fillStyle = u2[0], w(t3, s2 + 0.5, 3 * s2 + 0.5, s2, 2 * s2), t3.fillStyle = u2[1], w(t3, 2 * s2 + 0.5, 2 * s2 + 0.5, s2, 3 * s2), t3.fillStyle = u2[2], w(t3, 3 * s2 + 0.5, s2 + 0.5, s2, 4 * s2), t3.fillStyle = u2[3], w(t3, 4 * s2 + 0.5, 0.5, s2, 5 * s2);
        }
        function C(t3, n3, e3, r2, o2, a2) {
          var u2, s2;
          t3.translate(r2, o2), t3.strokeStyle = y[n3][e3].strokeStyle, u2 = y[n3][e3].fillColor.split(" "), t3.fillStyle = y[n3][e3].strokeStyle, s2 = i2(a2 / 2), t3.fillStyle = u2[0], w(t3, 0.5, 0.5, s2, s2), t3.fillStyle = u2[1], w(t3, s2 + 0.5, 0.5, s2, s2), t3.fillStyle = u2[2], w(t3, 0.5, s2 + 0.5, s2, s2), t3.fillStyle = u2[3], w(t3, s2 + 0.5, s2 + 0.5, s2, s2);
        }
        function S(t3, n3, i3, r2, o2, a2) {
          t3.translate(r2 + a2 / 2, o2 + a2 / 2), t3.strokeStyle = y[n3][i3].strokeStyle, 4 === i3 ? (t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, y[n3][i3].rotate), t3.closePath(), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, y[n3][i3].rotate), t3.closePath(), t3.stroke()) : 0 === i3 ? (t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.closePath(), t3.fillStyle = "white", t3.fill(), t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, y[n3][i3].rotate), t3.stroke(), t3.closePath()) : 1 === i3 ? (t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.closePath(), t3.fillStyle = "white", t3.fill(), t3.beginPath(), t3.moveTo(0, 0), t3.lineTo(0, -a2 / 2), t3.arc(0, 0, a2 / 2, 0.5 * -e2, 0), t3.lineTo(0, 0), t3.closePath(), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.stroke()) : 2 === i3 ? (t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.closePath(), t3.fillStyle = "white", t3.fill(), t3.beginPath(), t3.moveTo(0, 0), t3.lineTo(0, -a2 / 2), t3.arc(0, 0, a2 / 2, 0.5 * -e2, 0.5 * e2), t3.moveTo(0, 0), t3.closePath(), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.stroke()) : 3 === i3 && (t3.beginPath(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.closePath(), t3.fillStyle = "white", t3.fill(), t3.beginPath(), t3.moveTo(0, 0), t3.lineTo(0, -a2 / 2), t3.arc(0, 0, a2 / 2, 0.5 * -e2, e2), t3.lineTo(0, 0), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.arc(0, 0, a2 / 2, 0, 2 * e2), t3.stroke(), t3.closePath());
        }
        function T(t3, n3, i3) {
          t3.moveTo(r(0.1 * e2) * n3, -o(0.1 * e2) * n3), t3.lineTo(r(0.3 * e2) * i3, -o(0.3 * e2) * i3), t3.lineTo(0 * n3, -o(0.5 * e2) * n3), t3.lineTo(r(0.7 * e2) * i3, -o(0.7 * e2) * i3), t3.lineTo(r(0.9 * e2) * n3, -o(0.9 * e2) * n3), t3.lineTo(r(1.1 * e2) * i3, -o(1.1 * e2) * i3), t3.lineTo(r(1.3 * e2) * n3, -o(1.3 * e2) * n3), t3.lineTo(0 * i3, -o(1.5 * e2) * i3), t3.lineTo(r(1.7 * e2) * n3, -o(1.7 * e2) * n3), t3.lineTo(r(1.9 * e2) * i3, -o(1.9 * e2) * i3), t3.lineTo(r(0.1 * e2) * n3, -o(0.1 * e2) * n3);
        }
        function x(t3, n3, i3, a2, u2, s2) {
          var c2 = s2, f2 = c2 / 1.8, l2 = f2 / 2.5;
          t3.translate(f2 + a2, f2 + u2), t3.strokeStyle = "#727272", t3.fillStyle = y[n3][i3].fillColor, t3.beginPath(), 2 === i3 && (t3.strokeStyle = "#727272", T(t3, f2, l2), t3.fill(), t3.stroke(), t3.strokeStyle = y[n3][i3].strokeStyle, T(t3, f2, l2), t3.stroke(), t3.closePath()), 0 === i3 && (t3.fillStyle = "white", T(t3, f2, l2), t3.fill(), t3.stroke(), t3.strokeStyle = "#727272", T(t3, f2, l2), t3.stroke(), t3.closePath()), 1 === i3 && (t3.strokeStyle = y[n3][i3].fillColor, t3.moveTo(0 * f2, -o(0.5 * e2) * f2), t3.lineTo(r(0.7 * e2) * l2, -o(0.7 * e2) * l2), t3.lineTo(r(0.9 * e2) * f2, -o(0.9 * e2) * f2), t3.lineTo(r(1.1 * e2) * l2, -o(1.1 * e2) * l2), t3.lineTo(r(1.3 * e2) * f2, -o(1.3 * e2) * f2), t3.lineTo(0 * l2, -o(1.5 * e2) * l2), t3.fill(), t3.stroke(), t3.closePath(), t3.beginPath(), t3.moveTo(0 * f2, -o(0.5 * e2) * f2), t3.lineTo(-r(0.7 * e2) * l2, -o(0.7 * e2) * l2), t3.lineTo(-r(0.9 * e2) * f2, -o(0.9 * e2) * f2), t3.lineTo(-r(1.1 * e2) * l2, -o(1.1 * e2) * l2), t3.lineTo(-r(1.3 * e2) * f2, -o(1.3 * e2) * f2), t3.lineTo(0 * l2, -o(1.5 * e2) * l2), t3.fillStyle = "white", t3.fill(), t3.closePath(), t3.beginPath(), t3.strokeStyle = "#727272", T(t3, f2, l2), t3.stroke(), t3.closePath());
        }
        function A(t3, n3, e3, i3, r2, o2) {
          2 === e3 ? N(t3, n3, e3, i3, r2, o2) : 0 === e3 ? I(t3, n3, e3, i3, r2, o2) : 1 === e3 && k(t3, n3, e3, i3, r2, o2);
        }
        function I(t3, n3, r2, o2, a2, u2) {
          var s2 = u2, c2 = i2(s2 / 2);
          t3.translate(o2 + c2, a2 + c2), t3.strokeStyle = y[n3][r2].strokeStyle, t3.rotate(y[n3][r2].rotate), t3.beginPath(), t3.arc(0, 0, c2, 0, 2 * e2), t3.closePath(), t3.fillStyle = y[n3][r2].fillColor, t3.fill(), t3.beginPath(), t3.arc(0, 0, c2, 0, 2 * e2), t3.closePath(), t3.stroke(), t3.beginPath(), t3.fillStyle = y[n3][r2].fillColor2, t3.fillRect(0.375 * -s2, 0.1 * -s2, 0.75 * s2, 0.2 * s2), t3.closePath(), t3.fill(), t3.beginPath(), t3.fillStyle = y[n3][r2].fillColor2, t3.fillRect(0.1 * -s2, 0.375 * -s2, 0.2 * s2, 0.75 * s2), t3.closePath(), t3.fill(), t3.stroke();
        }
        function k(t3, n3, i3, r2, o2, a2) {
          var u2 = a2;
          t3.translate(r2, o2), t3.strokeStyle = y[n3][i3].strokeStyle, t3.beginPath(), t3.arc(0.5 * u2, 0.5 * u2, 0.5 * u2, 0, 2 * e2), t3.closePath(), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.beginPath(), t3.arc(0.5 * u2, 0.5 * u2, 0.5 * u2, 0, 2 * e2), t3.stroke(), t3.closePath(), t3.beginPath(), t3.moveTo(u2 / 3, 0.1 * u2), t3.lineTo(u2 / 1.5, 0.1 * u2), t3.lineTo(0.625 * u2, 0.6 * u2), t3.lineTo(0.375 * u2, 0.6 * u2), t3.lineTo(u2 / 3, 0.1 * u2), t3.moveTo(0.625 * u2, 0.85 * u2), t3.arc(0.5 * u2, 0.8 * u2, 0.15 * u2, 0, 2 * e2), t3.fillStyle = y[n3][i3].fillColor2, t3.fill(), t3.closePath();
        }
        function N(t3, n3, r2, o2, a2, u2) {
          var s2 = u2;
          t3.translate(i2(o2 + s2 / 2), i2(s2 / 2 + a2)), t3.strokeStyle = y[n3][r2].strokeStyle, t3.rotate(y[n3][r2].rotate), t3.beginPath(), t3.arc(0, 0, s2 / 2, 0, 2 * e2), t3.closePath(), t3.fillStyle = y[n3][r2].fillColor, t3.fill(), t3.beginPath(), t3.arc(0, 0, s2 / 2, 0, 2 * e2), t3.stroke(), t3.closePath(), t3.beginPath(), t3.fillStyle = y[n3][r2].fillColor2, t3.fillRect(0.325 * -s2, 0.25 * -s2, 0.2 * s2, 0.5 * s2), t3.closePath(), t3.fill(), t3.beginPath(), t3.fillStyle = y[n3][r2].fillColor2, t3.fillRect(0.325 * -s2, 0.05 * s2, 0.65 * s2, 0.2 * s2), t3.closePath(), t3.fill(), t3.stroke();
        }
        function j(t3, n3, e3, i3, r2, o2) {
          2 === e3 ? O(t3, n3, e3, i3, r2, o2) : 0 === e3 ? _(t3, n3, e3, i3, r2, o2) : 1 === e3 && D(t3, n3, e3, i3, r2, o2);
        }
        function D(t3, n3, i3, r2, o2, a2) {
          var u2 = a2;
          t3.translate(r2, o2), t3.beginPath(), t3.strokeStyle = y[n3][i3].strokeStyle, t3.moveTo(u2 / 3, 0.5), t3.lineTo(u2 / 1.5, 0.5), t3.lineTo(0.625 * u2, 0.65 * u2), t3.lineTo(0.375 * u2, 0.65 * u2), t3.lineTo(u2 / 3, 0.5), t3.moveTo(0.65 * u2, 0.85 * u2), t3.arc(0.5 * u2, 0.85 * u2, 0.15 * u2, 0, 2 * e2), t3.fillStyle = y[n3][i3].fillColor, t3.fill(), t3.stroke();
        }
        function _(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2 = a2;
          t3.translate(i2(r2 + c2 / 2), i2(o2 + c2 / 2)), t3.strokeStyle = y[n3][e3].strokeStyle, t3.rotate(y[n3][e3].rotate), t3.beginPath(), Z(t3, -(u2 = 0.5 * c2), -(s2 = 0.075 * c2)), Y(t3, -u2, s2), Y(t3, -s2, s2), Y(t3, -s2, u2), Y(t3, s2, u2), Y(t3, s2, s2), Y(t3, u2, s2), Y(t3, u2, -s2), Y(t3, s2, -s2), Y(t3, s2, -u2), Y(t3, -s2, -u2), Y(t3, -s2, -s2), Y(t3, -u2, -s2), t3.fillStyle = y[n3][e3].fillColor, t3.fill(), t3.stroke();
        }
        function O(t3, n3, e3, r2, o2, a2) {
          var u2 = a2;
          t3.translate(i2(r2 + u2 / 2), i2(o2 + u2 / 2)), t3.strokeStyle = y[n3][e3].strokeStyle, t3.rotate(y[n3][e3].rotate), t3.beginPath(), t3.fillStyle = y[n3][e3].fillColor, t3.fillRect(0.375 * -u2, 0.25 * -u2, 0.2 * u2, 0.5 * u2), t3.closePath(), t3.fill(), t3.beginPath(), t3.fillStyle = y[n3][e3].fillColor, t3.fillRect(0.375 * -u2, 0.05 * u2, 0.75 * u2, 0.2 * u2), t3.closePath(), t3.fill(), t3.stroke();
        }
        function E(t3, n3, e3, r2, o2, a2) {
          var u2 = 1.2 * a2;
          t3.translate(r2, o2), t3.strokeStyle = v, t3.fillStyle = v, w(t3, i2(0.2 * u2) + 0.5, 0.5, i2(0.06 * u2), i2(0.8 * u2)), t3.strokeStyle = y[n3][e3].strokeStyle, t3.beginPath(), Z(t3, 0.4 * u2, 0.5), Y(t3, 0.4 * u2, 0.5 * u2), Y(t3, 0.9 * u2, 0.25 * u2), Y(t3, 0.4 * u2, 0.5), t3.fillStyle = y[n3][e3].fillColor, t3.fill(), t3.stroke();
        }
        function R(t3, n3, e3, i3, r2, o2) {
          2 === e3 ? F(t3, n3, e3, i3, r2, o2) : 1 === e3 ? G(t3, n3, e3, i3, r2, o2) : P(t3, n3, e3, i3, r2, o2);
        }
        function L(t3, n3, r2, o2, a2, u2) {
          var s2 = i2(u2);
          t3.strokeStyle = y[n3][r2].strokeStyle, t3.fillStyle = y[n3][r2].fillColor, w(t3, o2 + 0.5, a2 + 0.5, s2, s2), t3.beginPath(), t3.arc(s2 / 2 + o2 + 0.5, s2 / 2 + a2 + 0.5, 0.375 * s2, 0, 2 * e2), t3.fillStyle = y[n3][r2].fillColor2, t3.fill(), t3.stroke();
        }
        function F(t3, n3, i3, r2, o2, a2) {
          var u2 = a2;
          t3.strokeStyle = y[n3][i3].strokeStyle, t3.beginPath(), t3.arc(u2 / 2 + r2, u2 / 2 + o2, u2 / 2, 0, 2 * e2), t3.fillStyle = y[n3][i3].fillColor, t3.closePath(), t3.fill(), t3.stroke();
        }
        function B(t3, n3, e3, i3, r2, o2) {
          1 === e3 ? U(t3, n3, e3, i3, r2, o2) : 0 === e3 ? H(t3, n3, e3, i3, r2, o2) : 2 === e3 && V(t3, n3, e3, i3, r2, o2);
        }
        function P(t3, n3, e3, r2, o2, a2) {
          var u2 = a2;
          t3.strokeStyle = y[n3][e3].strokeStyle, t3.beginPath(), t3.translate(r2 + i2(u2 / 2), o2 + i2(u2 / 2)), t3.beginPath(), Z(t3, 0, -u2 / 2), Y(t3, u2 / 2, 0), Y(t3, 0, u2 / 2), Y(t3, -u2 / 2, 0), Y(t3, 0, -u2 / 2), t3.fillStyle = y[n3][e3].fillColor, t3.closePath(), t3.fill(), t3.stroke();
        }
        function G(t3, n3, e3, r2, o2, a2) {
          var u2 = i2(a2);
          t3.translate(r2, o2), t3.strokeStyle = y[n3][e3].strokeStyle, t3.beginPath(), Z(t3, 0, u2), Y(t3, u2 / 2, u2 - u2 / 2 * Math.sqrt(3)), Y(t3, u2, u2), Y(t3, 0, u2), t3.fillStyle = y[n3][e3].fillColor, t3.closePath(), t3.fill(), t3.stroke();
        }
        function U(t3, n3, e3, r2, o2, a2) {
          var u2 = a2;
          t3.strokeStyle = y[n3][e3].strokeStyle, t3.translate(i2(u2 / 2 + r2), i2(u2 / 2 + o2)), t3.beginPath(), t3.rotate(y[n3][e3].rotate), Z(t3, -u2 / 2, -u2 / 5.4), Y(t3, u2 / 2, -u2 / 5.4), Y(t3, u2 / 2, u2 / 5.4), Y(t3, -u2 / 2, u2 / 5.4), Y(t3, -u2 / 2, -u2 / 5.4), t3.fillStyle = y[n3][e3].fillColor, t3.fill(), t3.stroke();
        }
        function H(t3, n3, e3, r2, o2, a2) {
          t3.strokeStyle = y[n3][e3].strokeStyle;
          var u2 = a2;
          t3.translate(i2(u2 / 2 + r2), i2(u2 / 2 + o2)), t3.beginPath(), Z(t3, -u2 / 2, -u2 / 3), Y(t3, u2 / 2, -u2 / 3), Y(t3, 0, u2 / 3), Y(t3, -u2 / 2, -u2 / 3), t3.fillStyle = y[n3][e3].fillColor, t3.fill(), t3.stroke();
        }
        function V(t3, n3, e3, r2, o2, a2) {
          t3.strokeStyle = y[n3][e3].strokeStyle;
          var u2 = a2;
          t3.translate(i2(u2 / 2 + r2), i2(u2 / 2 + o2)), t3.beginPath(), Z(t3, -u2 / 2, u2 / 3), Y(t3, u2 / 2, u2 / 3), Y(t3, 0, -u2 / 3), Y(t3, -u2 / 2, u2 / 3), t3.fillStyle = y[n3][e3].fillColor, t3.fill(), t3.stroke();
        }
        function z(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2 = a2 / 3.5, h2 = y[n3].length - 1;
          t3.strokeStyle = y[n3][h2 - e3].strokeStyle, t3.translate(i2(1.75 * l2 + r2), i2(1.75 * l2 + o2)), t3.rotate(y[n3][h2 - e3].rotate), t3.beginPath(), u2 = 0.25 * l2, s2 = 1.25 * l2, Z(t3, -(c2 = 0.75 * l2), -(f2 = 1.75 * l2)), Y(t3, u2, -f2), Y(t3, u2, u2), Y(t3, s2, -c2), Y(t3, s2, u2), Y(t3, -u2, f2), Y(t3, -f2, u2), Y(t3, -f2, -c2), Y(t3, -c2, u2), Y(t3, -c2, -f2), t3.fillStyle = y[n3][h2 - e3].fillColor, t3.fill(), t3.stroke();
        }
        function Y(t3, n3, e3) {
          t3.lineTo(i2(n3) + 0.5, i2(e3) + 0.5);
        }
        function Z(t3, n3, e3) {
          t3.moveTo(i2(n3) + 0.5, i2(e3) + 0.5);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.drawArrows = n2.drawIconTypeIsTwo = n2.drawCircle = n2.drawTrafficLight = n2.drawIconTypeIsSen = n2.drawFlag = n2.drawIconTypeIsNine = n2.drawIconTypeIsEight = n2.drawStar = n2.drawSector = n2.drawMagicCube = n2.drawSignal = void 0, e2 = Math.PI, i2 = Math.round, r = Math.cos, o = Math.sin, y = [[{ strokeStyle: u = "#326f5b", fillColor: s = "#76a797", fillColor2: "", rotate: e2 }, { strokeStyle: c = "#A4802b", fillColor: f = "#EAC282", fillColor2: "", rotate: -0.5 * e2 }, { strokeStyle: l = "#9E381C", fillColor: h = "#D86344", fillColor2: "", rotate: 0 }], [{ strokeStyle: d = "#646262", fillColor: v = "#808080", fillColor2: "", rotate: e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.5 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: 0 }], [{ strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: e2 }], [{ strokeStyle: c, fillColor: "#FFFFFF", fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }], [{ strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: 0 }], [{ strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: 0 }], [{ strokeStyle: g = "#303030", fillColor: m = "#505050", fillColor2: "#d86344", rotate: 0 }, { strokeStyle: g, fillColor: m, fillColor2: "#eac282", rotate: 0 }, { strokeStyle: g, fillColor: m, fillColor2: s, rotate: 0 }], [{ strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: 0 }], [{ strokeStyle: l, fillColor: h, fillColor2: "white", rotate: 0.25 * e2 }, { strokeStyle: c, fillColor: f, fillColor2: "white", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "white", rotate: -0.25 * e2 }], [{ strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0.25 * e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: -0.25 * e2 }], [{ strokeStyle: u, fillColor: s, fillColor2: "", rotate: e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: -0.75 * e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: -0.25 * e2 }, { strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }], [{ strokeStyle: d, fillColor: v, fillColor2: "", rotate: e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.75 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.25 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: 0 }], [{ strokeStyle: p = "#353535", fillColor: m, fillColor2: "", rotate: 0 }, { strokeStyle: v, fillColor: "#b1b1b1", fillColor2: "", rotate: 0 }, { strokeStyle: "#b28578", fillColor: "#edb9ab", fillColor2: "", rotate: 0 }, { strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }], [{ strokeStyle: b = "#727272", fillColor: "#4d82b8 #b3b3b3 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #4d82b8 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #4d82b8 #4d82b8 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: a = "#4d82b8 #4d82b8 #4d82b8 #4d82b8", fillColor2: "", rotate: 0 }], [{ strokeStyle: p, fillColor: m, fillColor2: "", rotate: 0 }, { strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: 0 }, { strokeStyle: u, fillColor: s, fillColor2: "", rotate: 0 }], [{ strokeStyle: u, fillColor: s, fillColor2: "", rotate: e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: -0.75 * e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: -0.5 * e2 }, { strokeStyle: c, fillColor: f, fillColor2: "", rotate: -0.25 * e2 }, { strokeStyle: l, fillColor: h, fillColor2: "", rotate: 0 }], [{ strokeStyle: d, fillColor: v, fillColor2: "", rotate: e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.75 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.5 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: -0.25 * e2 }, { strokeStyle: d, fillColor: v, fillColor2: "", rotate: 0 }], [{ strokeStyle: b, fillColor: "#b3b3b3 #b3b3b3 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #b3b3b3 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #4d82b8 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #4d82b8 #4d82b8 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: a, fillColor2: "", rotate: 0 }], [{ strokeStyle: m, fillColor: m, fillColor2: "", rotate: 2 * e2 }, { strokeStyle: m, fillColor: m, fillColor2: "", rotate: 0.5 * e2 }, { strokeStyle: m, fillColor: m, fillColor2: "", rotate: 0.5 * e2 }, { strokeStyle: m, fillColor: m, fillColor2: "", rotate: 1 * e2 }, { strokeStyle: m, fillColor: m, fillColor2: "", rotate: 2 * e2 }], [{ strokeStyle: b, fillColor: "#b3b3b3 #b3b3b3 #b3b3b3 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#b3b3b3 #b3b3b3 #4d82b8 #b3b3b3", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#b3b3b3 #b3b3b3 #4d82b8 #4d82b8", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: "#4d82b8 #b3b3b3 #4d82b8 #4d82b8", fillColor2: "", rotate: 0 }, { strokeStyle: b, fillColor: a, fillColor2: "", rotate: 0 }]], n2.drawSignal = M, n2.drawMagicCube = C, n2.drawSector = S, n2.drawStar = x, n2.drawIconTypeIsEight = A, n2.drawIconTypeIsNine = j, n2.drawFlag = E, n2.drawIconTypeIsSen = R, n2.drawTrafficLight = L, n2.drawCircle = F, n2.drawIconTypeIsTwo = B, n2.drawArrows = z;
      }, "./dist/plugins/contextMenu/context-menu-dialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l = this && this.qKr || (h = function(t3, n3) {
          return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, h(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          h(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), h;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ContextMenuViewDialog = void 0, i2 = e2("Core"), r = i2.mt.gi, o = i2.zc, a = i2.GC$, u = "gc.command.executed", s = "left", c = "top", f = (function(t3) {
          function n3(n4, e3) {
            var o2, a2 = t3.call(this, n4, r(n4)) || this;
            return a2.ter = i2.DialogFeatureType.contextMenu, (o2 = a2).zX = e3, a2;
          }
          return l(n3, t3), n3.prototype.VX = function(t4, n4, e3) {
            var i3 = this, r2 = t4[0];
            i3.YX && i3.YX.ZX && i3.YX.ZX(r2, n4, e3, i3.zX);
          }, n3.prototype.rQ = function(t4, n4, e3, i3, r2) {
            var o2 = this, a2 = o2.WX(e3, i3);
            o2.YX = t4, o2.VX(a2, n4, r2);
          }, n3.prototype.WX = function(n4, e3) {
            var i3 = this, r2 = i3.Xc();
            return r2.css([s, c], [n4, e3]), r2.empty(), t3.prototype.$c.call(this), i3.aY(), r2;
          }, n3.prototype.QX = function(t4) {
            var n4, e3, i3, r2 = this, o2 = r2.Xc();
            return "block" !== o2.css("display") || ((n4 = o2.offset()).top += document.body.clientTop || 0, n4.left += document.body.clientLeft || 0, e3 = t4.x, i3 = t4.y, e3 < n4.left || e3 > o2.width() + n4.left || i3 < n4.top || i3 > o2.height() + n4.top);
          }, n3.prototype.aY = function() {
            var t4 = this;
            t4.zX.bind(u, (function() {
              t4.close();
            }));
          }, n3.prototype.KX = function() {
            var t4;
            this.zX.unbind(u);
          }, n3.prototype.close = function() {
            var n4, e3, i3 = this, r2 = i3.YX;
            r2 && r2.DJ && ((n4 = r2.JX) && n4.menuItemData.needKeepFocus || (e3 = r2.DJ.getActiveSheet()) && e3.rt && !e3.il && e3.rt.aA(), i3.YX.L0()), i3.KX(), i3.Yc(i3.Zc) && a("#" + i3.Zc).remove(), t3.prototype.close.call(this);
          }, n3;
        })(o), n2.ContextMenuViewDialog = f;
      }, "./dist/plugins/contextMenu/context-menu.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), o = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || r(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.XX = void 0, o(e2("./dist/plugins/contextMenu/context-menu.js"), n2), o(e2("./dist/plugins/contextMenu/menu-view.js"), n2), o(e2("./dist/plugins/contextMenu/context-menu.ns.js"), n2), i2 = e2("./dist/plugins/contextMenu/context-menu-dialog.js"), n2.XX = i2.ContextMenuViewDialog;
      }, "./dist/plugins/contextMenu/context-menu.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn, Pn, Gn, Un, Hn, Vn, zn, Yn, Zn, Wn, Qn, Kn, Jn, Xn, qn, $n, te, ne, ee, ie, re, oe, ae, ue, se, ce, fe, le, he, de, ve, pe, ge, me, be, ye, we, Me, Ce, Se, Te, xe, Ae, Ie, ke, Ne, je, De, _e, Oe, Ee, Re, Le, Fe, Be, Pe, Ge, Ue, He = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function Ve(t3) {
          var n3, e3;
          if (t3.slicers) {
            if (!(n3 = t3.slicers.all()) || l(n3)) return null;
            for (e3 in n3) if (n3[e3].isSelected()) return true;
            return false;
          }
        }
        function ze(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = n3 === Ae ? "rowCount" : "colCount";
          for (i3 = 0; i3 < t3.length; i3++) for (o2 = -1 === (r2 = t3[i3])[n3] ? 0 : r2[n3], a2 = 0; a2 < r2[u2]; a2++) e3(o2 + a2);
        }
        function Ye(t3, n3) {
          var e3 = [], i3 = -1, r2;
          for (r2 = t3.row; r2 < t3.row + t3.rowCount; r2++) false !== n3[r2] && -1 === i3 && (i3 = r2), false === n3[r2] && -1 !== i3 && (e3.push([i3, r2 - i3]), i3 = -1);
          return -1 !== i3 && e3.push([i3, r2 - i3]), e3;
        }
        function Ze(t3, n3) {
          var e3, i3, r2, o2;
          if (1 === n3.colCount && -1 === n3.row) {
            if ((e3 = n3.col) === t3.k9() && (i3 = e3 - 1) >= 0 && !t3.getColumnVisible(i3)) return true;
          } else if (1 === n3.rowCount && -1 === n3.col && (r2 = n3.row) === t3.N9() && (o2 = r2 - 1) >= 0 && !t3.getRowVisible(o2)) return true;
        }
        function We(t3) {
          var n3, e3, i3;
          if (t3.slicers) {
            if (!(n3 = t3.slicers.all()) || l(n3)) return null;
            for (i3 in e3 = [], n3) n3[i3].isSelected() && e3.push(n3[i3]);
            return e3;
          }
        }
        function Qe(t3, n3, e3) {
          var i3, r2, o2 = n3.name, u2 = n3.group;
          if ([v + Pn, v + Bn, v + _n].indexOf(o2) < 0 && v + _n !== u2 && o2 !== Re(Ne)) return true;
          if ((r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) && r2.NMi && (v + _n === o2 || v + _n === u2)) return false;
          if (o2 === Re(Ne) && !a.mt.isEnablePasteSpecial(r2)) return false;
          switch (o2) {
            case v + Ln:
            case v + On:
            case v + Un:
            case v + En:
            case v + Gn:
              if (r2 && true === r2.ST().ES) return false;
          }
          return true;
        }
        function Ke(t3, n3, e3) {
          var i3, r2;
          return [v + Nn].indexOf(n3.name) < 0 || (!(r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) || !r2.NMi);
        }
        function Je(t3, n3, e3) {
          var i3, r2;
          return [v + An, v + kn, v + xn, v + In].indexOf(n3.name) < 0 || (!(r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) || !r2.NMi);
        }
        function Xe(t3, n3, e3) {
          var i3, r2, o2 = n3.name;
          return [v + gn, v + Ut, v + Ht, v + Gt].indexOf(o2) < 0 || (!(r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) || !r2.NMi || o2 !== v + Ht && o2 !== v + Gt);
        }
        function qe(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2, l2, h2 = [v + Cn, v + Ft, v + Rt, v + Lt], d2 = n3.name;
          if (h2.indexOf(d2) < 0) return true;
          if (o2 = (r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)).getActiveRowIndex(), u2 = r2.getActiveColumnIndex(), r2 && r2.comments) {
            if (s2 = r2.comments.get(o2, u2)) return d2 !== v + Cn;
            if (d2 === v + Ft || d2 === v + Rt) return false;
            if (d2 === v + Cn) return true;
            for (c2 = r2.getSelections(), f2 = 0; f2 < c2.length; f2++) if (ti(l2 = c2[f2], r2)) return true;
            return false;
          }
        }
        function $e(t3, n3) {
          var e3, i3, r2, o2, a2, u2;
          if (n3.comments) {
            for (e3 = n3.comments.all(), i3 = void 0, r2 = void 0, o2 = 0; o2 < t3.length; o2++) for (a2 = t3[o2], u2 = 0; u2 < e3.length; u2++) if (!e3[u2].locked() && (r2 = e3[u2].bZ, i3 = e3[u2].yZ, r2 >= a2.row && r2 < a2.row + a2.rowCount && i3 >= a2.col && i3 < a2.col + a2.colCount)) return true;
          }
          return false;
        }
        function ti(t3, n3) {
          var e3, i3, r2, o2;
          if (n3.comments) {
            for (e3 = n3.comments.all(), i3 = void 0, r2 = void 0, o2 = 0; o2 < e3.length; o2++) if (r2 = e3[o2].bZ, i3 = e3[o2].yZ, r2 >= t3.row && r2 < t3.row + t3.rowCount && i3 >= t3.col && i3 < t3.col + t3.colCount) return true;
          }
          return false;
        }
        function ni(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2;
          return [v + wn, v + Mn].indexOf(n3.name) < 0 || (!(r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) || !r2.NMi) && (!(!(o2 = r2.getSelections()) || 1 !== o2.length) && !((s2 = fi(r2, u2 = o2[0])) && (c2 = s2.range(), u2.row < c2.row || u2.col < c2.col || u2.row + u2.rowCount > c2.row + c2.rowCount || u2.col + u2.colCount > c2.col + c2.colCount)));
        }
        function ei(t3, n3, e3) {
          var i3, r2, o2;
          return [v + ie].indexOf(n3.name) < 0 || (o2 = (r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) && r2.ST()) && !o2.ES && o2._S && 1 === o2._S.length && 1 === r2.getSelections().length && ri(r2);
        }
        function ii(t3, n3, e3) {
          var i3, r2, o2;
          return [v + re].indexOf(n3.name) < 0 || (o2 = (r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) && r2.ST()) && o2.ES && o2._S && 1 === o2._S.length && 1 === r2.getSelections().length && ri(r2);
        }
        function ri(t3) {
          var n3, e3, i3, r2, o2, a2;
          if (t3.NMi) return false;
          if (n3 = t3.getActiveRowIndex(), e3 = t3.getActiveColumnIndex(), !(i3 = t3.ST()).TT) return false;
          if (t3.tables && t3.tables.find(n3, e3)) return false;
          for (r2 = t3.Ut.getSpans(), o2 = 0; o2 < r2.length; o2++) if (n3 >= (a2 = r2[o2]).row && n3 < a2.row + a2.rowCount && e3 >= a2.col && e3 < a2.col + a2.colCount) return false;
          return true;
        }
        function oi(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3), l2 = [v + M + Yt, v + M + Zt].indexOf(n3.name), h2 = [v + M + Kt, v + M + Wt, v + M + Qt, v + M + Jt, v + M + Xt, v + M + qt].indexOf(n3.name), d2 = l2 > -1, p2 = h2 > -1;
          return f2 && f2.NMi && (r2 = f2.NMi, d2 || p2) ? ((o2 = r2.qNi()) && (s2 = [(u2 = r2.options.menuItemVisibility).promoteMenuItemVisible, u2.demoteMenuItemVisible], c2 = [u2.addAboveMenuItemVisible, u2.addAfterMenuItemVisible, u2.addBeforeMenuItemVisible, u2.addBelowMenuItemVisible, u2.moveUpMenuItemVisible, u2.moveDownMenuItemVisible], !(o2 = d2 && s2[l2]) && r2.qX() && (o2 = p2 && c2[h2])), o2) : !(d2 || p2);
        }
        function ai(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2 = (0, a.jf)(t3), l2 = 9, h2 = v + w, d2 = [dn, vn, pn].map((function(t4) {
            return h2 + t4;
          })).indexOf(n3.name), p2 = d2 > -1, g2 = [$t, tn].map((function(t4) {
            return h2 + t4;
          })).indexOf(n3.name), m2 = ui(l2, (function(t4) {
            return h2 + nn + (t4 + 1);
          })).indexOf(n3.name), b2 = g2 > -1, y2 = m2 > -1;
          if (f2 && f2.NMi) {
            if ((i3 = f2.NMi).qNi() && (y2 || b2)) return o2 = [(r2 = i3.options.menuItemVisibility).expandAllLevelMenuItemVisible, r2.collapseAllLevelMenuItemVisible], y2 ? (u2 = e3.$X = e3.$X ? e3.$X : i3.MDi() + 1, (s2 = parseInt(n3.name.charAt((h2 + nn).length), 10)) <= Math.min(l2, u2) && r2.expandToLevelMenuItemVisible) : b2 && o2[g2];
            if (p2 && i3.options.enableDefineColumn) return (c2 = f2.getSelections()).length > 0 && 1 === c2[0].colCount;
          }
          return !(y2 || b2 || p2);
        }
        function ui(t3, n3) {
          var e3, i3 = [];
          for (e3 = 0; e3 < t3; e3++) i3.push(n3(e3, i3));
          return i3;
        }
        function si(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2, l2, h2, d2;
          if ([v + M + ie, v + M + re].indexOf(n3.name) < 0) return true;
          if ((r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) && r2.NMi) return false;
          if (o2 = r2.ST(), u2 = r2.getActiveRowIndex(), s2 = false, r2.tables) {
            for (c2 = r2.tables.all(), f2 = 0; f2 < c2.length; f2++) if (u2 >= (l2 = c2[f2]).Ky && u2 < l2.Ky + l2.Sx) {
              s2 = true;
              break;
            }
          }
          for (h2 = r2.Ut.getSpans(), f2 = 0; f2 < h2.length; f2++) if (u2 > (d2 = h2[f2]).row && u2 < d2.row + d2.rowCount) return false;
          if (!o2.TT || o2._S && 1 !== o2._S.length || 1 !== r2.getSelections().length) return false;
          if (n3.name === v + M + re) {
            if (o2.ES && (s2 || o2._S && r2.getColumnCount() % o2._S[0].colCount === 0)) return true;
          } else if (n3.name === v + M + ie && !o2.ES && (s2 || o2._S && r2.getColumnCount() % o2._S[0].colCount === 0)) return true;
          return false;
        }
        function ci(t3, n3, e3) {
          var i3, r2, o2, u2, s2, c2, f2, l2, h2, d2;
          if ([v + w + ie, v + w + re].indexOf(n3.name) < 0) return true;
          if ((r2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(t3)) && r2.NMi) return false;
          if (o2 = r2.ST(), u2 = r2.getActiveColumnIndex(), s2 = false, r2.tables) {
            for (c2 = r2.tables.all(), f2 = 0; f2 < c2.length; f2++) if (u2 >= (l2 = c2[f2]).iw && u2 < l2.iw + l2.Tx) {
              s2 = true;
              break;
            }
          }
          for (h2 = r2.Ut.getSpans(), f2 = 0; f2 < h2.length; f2++) if (u2 > (d2 = h2[f2]).col && u2 < d2.col + d2.colCount) return false;
          if (!o2.TT || o2._S && 1 !== o2._S.length || 1 !== r2.getSelections().length) return false;
          if (n3.name === v + w + ie) {
            if (!o2.ES && (s2 || o2._S && r2.getRowCount() % o2._S[0].rowCount === 0)) return true;
          } else if (n3.name === v + w + re && o2.ES && (s2 || o2._S && r2.getRowCount() % o2._S[0].rowCount === 0)) return true;
          return false;
        }
        function fi(t3, n3) {
          var e3, i3, r2;
          if (!n3) return null;
          for (a.mt.J0(n3, t3.getRowCount(), t3.getColumnCount()), e3 = n3.row; e3 < n3.row + n3.rowCount; e3++) for (i3 = n3.col; i3 < n3.col + n3.colCount; i3++) if (t3.tables && (r2 = t3.tables.find(e3, i3))) return r2;
          return null;
        }
        function li(t3, n3, e3, i3) {
          var r2, o2;
          for (r2 = 0; r2 < n3.length; r2++) (o2 = n3[r2]).jj(e3, i3, true, ke, o2.tq());
        }
        function hi(t3) {
          var n3, e3, i3, r2 = t3;
          for (n3 = 0; n3 < r2.length - 1; n3++) for (e3 = n3 + 1; e3 < r2.length; e3++) r2[n3].row < r2[e3].row && (i3 = r2[n3], r2[n3] = r2[e3], r2[e3] = i3);
          return r2;
        }
        function di(t3) {
          var n3, e3, i3, r2 = t3;
          for (n3 = 0; n3 < r2.length - 1; n3++) for (e3 = n3 + 1; e3 < r2.length; e3++) r2[n3].col < r2[e3].col && (i3 = r2[n3], r2[n3] = r2[e3], r2[e3] = i3);
          return r2;
        }
        function vi(t3, n3, e3, i3) {
          var r2 = t3.Ut.getSpans(ke, 3);
          n3 >= 0 ? (mi(t3, r2, n3, i3, 3), mi(t3, t3.Ut.getSpans(ke, 2), n3, i3, 2)) : e3 >= 0 && (pi(t3, r2, e3, i3, 3), pi(t3, t3.Ut.getSpans(ke, 1), e3, i3, 1));
        }
        function pi(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2;
          for (o2 = 0, a2 = n3.length; o2 < a2; o2++) if (e3 > (u2 = n3[o2]).col && e3 < u2.col + u2.colCount) {
            for (s2 = u2.row; s2 < u2.row + u2.rowCount; s2++) if (c2 = bi(t3, s2, e3, i3, r2, true)) for (f2 = e3; f2 < e3 + i3; f2++) t3.setStyle(s2, f2, c2, r2);
          }
        }
        function gi(t3, n3) {
          return t3.style === n3.style && t3.color === n3.color;
        }
        function mi(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2;
          for (o2 = 0, a2 = n3.length; o2 < a2; o2++) if (e3 > (u2 = n3[o2]).row && e3 < u2.row + u2.rowCount) {
            for (s2 = u2.col; s2 < u2.col + u2.colCount; s2++) if (c2 = bi(t3, e3, s2, i3, r2, false)) for (f2 = e3; f2 < e3 + i3; f2++) t3.setStyle(f2, s2, c2, r2);
          }
        }
        function bi(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = ["borderLeft", "borderTop", "borderRight", "borderBottom", "diagonalDown", "diagonalUp"];
          if (o2) {
            if (a2 = t3.Z_(n3, e3 - 1, r2), !(u2 = t3.Z_(n3, e3 + i3, r2)) || !a2) return;
            for (a2 = a2.clone(), f2 = 0, l2 = p2; f2 < l2.length; f2++) a2[h2 = l2[f2]] && u2[h2] && gi(a2[h2], u2[h2]) || (a2[h2] = void 0);
            return a2;
          }
          if (s2 = t3.Z_(n3 - 1, e3, r2), c2 = t3.Z_(n3 + i3, e3, r2), s2 && c2) {
            for (s2 = s2.clone(), d2 = 0, v2 = p2; d2 < v2.length; d2++) s2[h2 = v2[d2]] && c2[h2] && gi(s2[h2], c2[h2]) || (s2[h2] = void 0);
            return s2;
          }
        }
        function yi(t3, n3, e3, i3, r2, o2) {
          var u2, s2, c2, f2, l2, h2, d2 = (0, a._f)(t3, n3.sheetName);
          return !!d2 && (u2 = n3.considerAllSheets, s2 = t3.i4(), d2.suspendPaint(), c2 = a.Commands.TI(d2.name()), e3 ? (l2 = void 0, r2 && (l2 = r2(d2, n3)), l2 && l2.cancel || (u2 ? a.Commands.NI(s2, n3) : d2.Mtt(n3[c2]), o2 && o2(d2, n3, l2))) : (u2 ? a.Commands.II(s2) : a.Commands.startTransaction(d2.getParent(), n3), f2 = i3(d2, n3), u2 ? a.Commands.xI(s2, n3) : a.Commands.endTransaction(d2.getParent(), n3)), d2.resumePaint(), u2 && (h2 = (0, a.jf)(t3)) && d2 !== h2 && h2.repaint(), f2);
        }
        function wi(t3, n3, e3) {
          var i3;
          if (e3 > 0) {
            for (i3 = n3 + 1; i3 < t3.getRowCount(); i3++) if ((e3 -= t3.getRowHeight(i3)) <= 0) return i3 - n3;
          } else if (e3 < 0) {
            for (i3 = n3 - 1; i3 >= 0; i3--) if ((e3 += t3.getRowHeight(i3)) >= 0) return i3 - n3;
          }
          return 0;
        }
        function Mi(t3, n3, e3) {
          var i3;
          if (e3 > 0) {
            for (i3 = n3 + 1; i3 < t3.getColumnCount(); i3++) if ((e3 -= t3.getColumnWidth(i3)) <= 0) return i3 - n3;
          } else if (e3 < 0) {
            for (i3 = n3 - 1; i3 >= 0; i3--) if ((e3 += t3.getColumnWidth(i3)) >= 0) return i3 - n3;
          }
          return 0;
        }
        function Ci(t3, n3, e3, i3, r2) {
          var o2 = (0, a._f)(t3, n3.sheetName);
          o2 && e3.execute({ cmd: jn, sheetName: o2.name(), pasteOption: i3, pasteSpecialOptions: r2 });
        }
        function Si(t3, n3, e3, i3) {
          return yi(t3, n3, e3, (function(e4) {
            var r2, o2 = We(e4);
            if (o2 && 0 !== o2.length) {
              for (r2 in o2) o2.hasOwnProperty(r2) && o2[r2].sortState(i3);
              t3.changeSelectionInCommandExecuting(n3, null, null, [], o2);
            }
          }));
        }
        function Ti(t3) {
          t3.jT(8, Be().hideSheetFailureInfo);
        }
        function xi(t3, n3) {
          var e3 = n3.name(), i3 = t3.Ese(e3), r2 = { sheetName: e3, propertyName: "isVisible", cancel: false, sheetIndex: i3, sheetPosition: t3.getSheetPosition(e3), oldValue: false, newValue: true };
          if (t3.ki(a.Events.SheetChanging, r2), r2.cancel) return false;
          n3.visible(true), t3.ki(a.Events.SheetChanged, { sheetName: e3, propertyName: "isVisible", sheetIndex: i3, sheetPosition: t3.getSheetPosition(e3), oldValue: false, newValue: true });
        }
        function Ai(t3, n3, e3) {
          var i3, r2 = { oldSheet: n3, newSheet: e3, cancel: false };
          return t3.ki(a.Events.ActiveSheetChanging, r2), !r2.cancel && (i3 = { oldValue: true, newValue: false, sheetName: n3.name(), propertyName: "isSelected", cancel: false, sheetIndex: t3.Ese(n3.name()), sheetPosition: t3.getSheetPosition(n3.name()) }, t3.ki(a.Events.SheetChanging, i3), !i3.cancel && (i3 = { oldValue: false, newValue: true, sheetName: e3.name(), propertyName: "isSelected", cancel: false, sheetIndex: t3.Ese(e3.name()), sheetPosition: t3.getSheetPosition(e3.name()) }, t3.ki(a.Events.SheetChanging, i3), !i3.cancel && void 0));
        }
        function Ii(t3, n3) {
          var e3, i3 = (0, a.jf)(t3);
          t3.ki(a.Events.ActiveSheetChanged, { oldSheet: n3, newSheet: i3 }), e3 = { oldValue: true, newValue: false, sheetName: n3.name(), propertyName: "isSelected", sheetIndex: t3.Ese(n3.name()), sheetPosition: t3.getSheetPosition(n3.name()) }, t3.ki(a.Events.SheetChanged, e3), e3 = { oldValue: false, newValue: true, sheetName: i3.name(), propertyName: "isSelected", sheetIndex: t3.Ese(i3.name()), sheetPosition: t3.getSheetPosition(i3.name()) }, t3.ki(a.Events.SheetChanged, e3);
        }
        function ki(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
          if (void 0 === e3 && (e3 = false), (i3 = t3.selections).length > 0) {
            if (r2 = n3.NMi, a2 = (o2 = i3[0]).col, u2 = o2.colCount, f2 = (c2 = (s2 = r2.getDataView()).getColumnInfos()).filter((function(t4) {
              return !t4.isFreeColumn;
            })).length, a2 < 0 || a2 >= f2) return;
            if ((u2 = Math.min(u2, f2 - a2)) <= 0) return;
            for (l2 = a2; l2 < a2 + u2; l2++) (h2 = c2[l2]).visible = e3;
            try {
              s2.setColumnInfos(c2), r2.setDataView(s2);
            } catch (t4) {
              return false;
            }
          }
        }
        function Ni(t3) {
          var n3 = t3.slice(t3.lastIndexOf(".") + 1);
          return n3 === M + re || n3 === M + ie || n3 === w + re || n3 === w + ie;
        }
        function ji(t3) {
          var n3 = function(n4, e3) {
            return { canUndo: false, execute: function(i3, r2, o2) {
              Ci(i3, r2, t3, n4, e3);
            } };
          };
          t3.register(Ee.pasteFormulaAndNumberFormat, n3(a.ClipboardPasteOptions.formulasAndNumberFormatting), null, false, false, false, false), t3.register(Ee.pasteKeepSourceFormatting, n3(a.ClipboardPasteOptions.usingSourceTheme), null, false, false, false, false), t3.register(Ee.pasteNoBorders, n3(a.ClipboardPasteOptions.noBorder), null, false, false, false, false), t3.register(Ee.pasteColumnWidth, n3(a.ClipboardPasteOptions.allAndColumnWidth), null, false, false, false, false), t3.register(Ee.pasteTranspose, n3(a.ClipboardPasteOptions.all, { transpose: true }), null, false, false, false, false), t3.register(Ee.pasteValueAndNumberFormats, n3(a.ClipboardPasteOptions.valuesAndNumberFormatting), null, false, false, false, false), t3.register(Ee.pasteValueAndSourceFormats, n3(a.ClipboardPasteOptions.valuesAndSourceFormatting), null, false, false, false, false), t3.register(Ee.pasteLink, n3(a.ClipboardPasteOptions.all, { pasteLink: true }), null, false, false, false, false);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ContextMenu = void 0, i2 = e2("Common"), r = e2("./dist/plugins/contextMenu/context-menu-dialog.js"), o = e2("./dist/plugins/contextMenu/menu-view.js"), a = e2("Core"), u = e2("./dist/plugins/contextMenu/context-menu.ns.js"), s = e2("./dist/plugins/contextMenu/menuItems/index.js"), c = a.GC$, f = i2.Common.lt.ht, l = i2.Common.lt._h, h = a.mt.vi, p = "gc-spread-", g = "gc.spread.pivot", m = "gc-spread-pivot-selected", b = "gc-spread-pivotShowSubtotal", y = "viewport", w = "colHeader", M = "rowHeader", C = "slicer", S = "timeline", T = "sheetTab", x = "corner", A = "pivotPageFilter", I = "pivotTopLeft", k = "pivotHeader", N = "pivotEmptyLabel", j = "pivotContent", D = "pivotGrandTotal", _ = "FieldName", O = "SortType", E = "pivotSummarizeValuesBy", R = "pivotExpandOrCollapse", L = "pivotTableGroup", F = "OpenPivotGroupDialog", B = "pivotTableUnGroup", P = "pivotShowValueAs", G = "pivotShowDetails", U = "pivotRefresh", H = "pivotShowSubtotal", V = "removeField", z = "pivotTable", Y = "removePivotGrandTotal", Z = "openValueFieldSettingDialogCmd", W = "pivotSum", Q = "UpdatePivotValueFieldCmd", K = "pivotCount", J = "pivotAverage", X = "pivotMax", q = "pivotMin", $ = "pivotProduct", tt = "pivotNoCalculation", nt = "pivotGrandtotal", et = "pivotColumnTotal", it = "pivotRowTotal", rt = "pivotOf", ot = "pivotParentRowTotal", at = "pivotDifferenceFrom", ut = "pivotPercentDifferenceFro", st = "pivotRunningTotalIn", ct = "pivotPercentRunningTotalIn", ft = "pivotRankSmallestToLargest", lt = "pivotOfParentTotal", ht = "pivotParentColumnTotal", dt = "pivotRankLargestToSmallest", vt = "pivotIndex", pt = "pivotFilter", gt = "pivotClearFilterFrom", mt = "pivotKeepOnlySelectedItems", bt = "pivotHideSelectedItems", yt = "pivotTop10", wt = "pivotLabelFilters", Mt = "pivotValueFilters", Ct = "pivotExpand", St = "pivotCollapse", Tt = "pivotExpandEntireField", xt = "pivotCollapseEntireField", At = "createDialogForValueFilter", It = "createDialogForLabelFilter", kt = "OpenPivotShowValueAsDialog", Nt = "filterFieldLabelValue", jt = "ClearCommand", Dt = "pivotSort", _t = "createDialogForPivotSort", Ot = "openPasteSpecialDialog", Et = "removeSlicer", Rt = "toggleComment", Lt = "deleteComment", Ft = "editComment", Bt = "unhideSheet", Pt = "hideSheet", Gt = "unhideRows", Ut = "unhideColumns", Ht = "hideRows", Vt = "pinRows", zt = "pinColumns", Yt = "promote", Zt = "demote", Wt = "addAfter", Qt = "addBefore", Kt = "addAbove", Jt = "addBelow", Xt = "moveUp", qt = "moveDown", $t = "expandAllLevels", tn = "collapseAllLevels", nn = "expandLevel", en = "expandLevel1", rn = "expandLevel2", on = "expandLevel3", an = "expandLevel4", un = "expandLevel5", sn = "expandLevel6", cn = "expandLevel7", fn = "expandLevel8", ln = "expandLevel9", hn = "defineColumn", dn = "modifyColumn", vn = "removeColumn", pn = "setPrimaryKey", gn = "hideColumns", mn = "sortAscend", bn = "sortDescend", yn = "sortMoreOptions", wn = "sort", Mn = "filter", Cn = "insertComment", Sn = "deleteSheet", Tn = "insertSheet", xn = "insertRows", An = "insertColumns", In = "deleteRows", kn = "deleteColumns", Nn = "clearContents", jn = "paste", Dn = "ganttSheetPaste", _n = "pasteOptions", On = "pasteFormatting", En = "pasteValues", Rn = "pasteGanttValues", Ln = "pasteFormula", Fn = "pasteAll", Bn = "cut", Pn = "copy", Gn = "pasteValuesFormatting", Un = "pasteFormulaFormatting", Hn = "separator", Vn = "groupHeader", zn = "slicerSortAscend", Yn = "slicerSortDescend", Zn = "table", Wn = "tableInsert", Qn = "tableDelete", Kn = "tableInsertRowsAbove", Jn = "tableInsertRowsBelow", Xn = "tableInsertColumnsLeft", qn = "tableInsertColumnsRight", $n = "tableDeleteRows", te = "tableDeleteEntireSheetRows", ne = "tableInsertEntireSheetRows", ee = "tableDeleteColumns", ie = "insertCopiedCells", re = "insertCutCells", oe = "shiftCellsDown", ae = "shiftCellsRight", ue = "allSheets", se = "tableInsertRowsAboveForContextMenu", ce = "tableInsertRowsBelowForContextMenu", fe = "tableDeleteRowsForContextMenu", le = "tableInsertColumnsLeftForContextMenu", he = "tableInsertColumnsRightForContextMenu", de = "tableDeleteColumnsForContextMenu", ve = "GanttRowHeader", pe = "GanttField", ge = "insertTask", me = "deleteTask", be = "scrollToTask", ye = "manuallySchedule", we = "autoSchedule", Me = "GanttColumn", Ce = "hideGanttColumn", Se = "unHideGanttColumn", Te = "indentGanttTask", xe = "outdentGanttTask", Ae = "row", Ie = "col", ke = void 0, Ne = "pasteSpecial", je = (v = "gc.spread.") + "pasteSpecialPasteGroup", De = v + "pasteSpecialPasteValueGroup", _e = v + "pasteSpecialOtherOptionsGroup", Oe = "emptyCommand", Ee = { pasteFormulaAndNumberFormat: (d = "gc.spread.contextMenu.") + "pasteFormulaAndNumberFormat", pasteKeepSourceFormatting: d + "pasteKeepSourceFormatting", pasteNoBorders: d + "pasteNoBorders", pasteColumnWidth: d + "pasteColumnWidth", pasteTranspose: d + "pasteTranspose", pasteValueAndNumberFormats: d + "pasteValueAndNumberFormats", pasteValueAndSourceFormats: d + "pasteValueAndSourceFormats", pasteLink: d + "pasteLink" }, Re = function(t3) {
          return v + t3;
        }, Le = function(t3) {
          return p + t3;
        }, Fe = new i2.Common.ResourceManager(u.SR, "ContextMenu"), Be = Fe.getResource.bind(Fe), Pe = { sheetTab: function(t3, n3, e3) {
          return new RegExp("sheetTab", "i").test(e3.workArea) && t3.tabStripHitInfo && t3.tabStripHitInfo.sheetTab && "newSheet" !== t3.tabStripHitInfo.sheetTab.sheetName && "allSheets" !== t3.tabStripHitInfo.sheetTab.sheetName;
        }, outline: function(t3, n3, e3) {
          return !!(new RegExp("outline", "i").test(e3.workArea) && t3.worksheetHitInfo && t3.worksheetHitInfo.outlineHitInfo);
        }, viewport: function(t3, n3, e3) {
          if (new RegExp("viewport", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && !t3.worksheetHitInfo.floatingObjectHitInfo && !t3.worksheetHitInfo.shapeHitInfo && !t3.worksheetHitInfo.pivotTableInfo && !t3.worksheetHitInfo.commentHitInfo) return Qe(n3, e3, t3) && Ke(n3, e3, t3) && qe(n3, e3, t3) && ni(n3, e3, t3) && ei(n3, e3, t3) && ii(n3, e3, t3);
        }, rowHeader: function(t3, n3, e3) {
          if (new RegExp("rowHeader", "i").test(e3.workArea) && t3.worksheetHitInfo && 2 === t3.worksheetHitInfo.hitTestType) return Qe(n3, e3, t3) && Ke(n3, e3, t3) && Je(n3, e3, t3) && Xe(n3, e3, t3) && si(n3, e3, t3) && oi(n3, e3, t3);
        }, colHeader: function(t3, n3, e3) {
          var i3, r2, o2, u2, s2 = t3.worksheetHitInfo;
          if (new RegExp("colHeader", "i").test(e3.workArea) && s2 && 1 === s2.hitTestType && (o2 = (r2 = (null === (i3 = t3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3)) && r2.Ut.getFreeAreaRowCount(1), !(u2 = s2.row < o2))) return Qe(n3, e3, t3) && Ke(n3, e3, t3) && Je(n3, e3, t3) && Xe(n3, e3, t3) && ci(n3, e3, t3) && ai(n3, e3, t3);
        }, corner: function(t3, n3, e3) {
          if (new RegExp("corner", "i").test(e3.workArea) && t3.worksheetHitInfo && 0 === t3.worksheetHitInfo.hitTestType) return Qe(n3, e3, t3) && Ke(n3, e3, t3) && qe(n3, e3, t3) && ni(n3, e3, t3);
        }, slicer: function(t3, n3, e3) {
          return new RegExp("slicer", "i").test(e3.workArea) && t3.worksheetHitInfo && t3.worksheetHitInfo.shapeHitInfo && t3.worksheetHitInfo.shapeHitInfo.shape && "Slicer" === t3.worksheetHitInfo.shapeHitInfo.shape.drawingType;
        }, timeline: function(t3, n3, e3) {
          var i3 = new RegExp("timeline", "i").test(e3.workArea), r2 = t3.worksheetHitInfo && t3.worksheetHitInfo.shapeHitInfo && t3.worksheetHitInfo.shapeHitInfo.shape && "Timeline" === t3.worksheetHitInfo.shapeHitInfo.shape.drawingType;
          return i3 && r2;
        }, chart: function(t3, n3, e3) {
          return new RegExp("chart", "i").test(e3.workArea) && t3.worksheetHitInfo && t3.worksheetHitInfo.floatingObjectHitInfo && t3.worksheetHitInfo.floatingObjectHitInfo.floatingObject && "2" === t3.worksheetHitInfo.floatingObjectHitInfo.floatingObject.typeName;
        }, shape: function(t3, n3, e3) {
          return new RegExp("shape", "i").test(e3.workArea) && t3.worksheetHitInfo && t3.worksheetHitInfo.shapeHitInfo;
        }, table: function(t3, n3, e3) {
          var i3, r2 = (null === (i3 = t3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3), o2 = r2 && r2.tables;
          return new RegExp("table", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && !t3.worksheetHitInfo.floatingObjectHitInfo && !t3.worksheetHitInfo.shapeHitInfo && !t3.worksheetHitInfo.pivotTableInfo && !t3.worksheetHitInfo.commentHitInfo && o2 && o2.eq();
        }, vpWithoutTb: function(t3, n3, e3) {
          var i3, r2, o2, u2;
          if (new RegExp("vpWithoutTb", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && !t3.worksheetHitInfo.floatingObjectHitInfo && !t3.worksheetHitInfo.shapeHitInfo && !t3.worksheetHitInfo.pivotTableInfo && !t3.worksheetHitInfo.commentHitInfo) return !(u2 = (o2 = (r2 = (null === (i3 = t3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3)).tables) && o2.eq()) && Qe(n3, e3, t3) && Ke(n3, e3, t3) && qe(n3, e3, t3) && ni(n3, e3, t3);
        }, pivotTablePageFilterArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotPageFilter", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 0 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTableCornerArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotTopLeft", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 1 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTableEmptyLabelArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotEmptyLabel", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 3 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTableHeaderArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotHeader", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 2 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTableGrandTotalArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotGrandTotal", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 5 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTableContentArea: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotContent", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo && 4 === t3.worksheetHitInfo.pivotTableCellInfo.menuArea;
        }, pivotTable: function(t3, n3, e3) {
          var i3 = (0, a.jf)(n3), r2 = i3 && i3.pivotTables;
          return new RegExp("pivotTable", "i").test(e3.workArea) && t3.worksheetHitInfo && 3 === t3.worksheetHitInfo.hitTestType && r2 && t3.worksheetHitInfo.pivotTableCellInfo;
        } }, Ge = [], Ue = (function() {
          function t3() {
            var t4 = this;
            t4.menuView = new o.MenuView(), t4.menuData = t4.nq();
          }
          return t3.prototype.nq = function() {
            var t4 = Be();
            return He(He([], (0, s.createReportSheetMenuItems)(t4), true), [{ text: Be().copy, name: v + Pn, command: d + Pn, iconClass: p + Pn, workArea: y + w + M + C + x + z + S, metaData: { viewModePermissions: 31 } }, { text: Be().cut, name: v + Bn, command: d + Bn, iconClass: p + Bn, workArea: y + w + M + C + x + S }, { text: Be().pasteOptions, name: v + _n, iconClass: p + _n, type: Vn, workArea: y + w + M + C + x + S }, { command: d + Fn, name: v + Fn, iconClass: p + Fn, group: v + _n, text: Be().pasteAll, workArea: y + w + M + C + x + S }, { command: d + Ln, name: v + Ln, iconClass: p + Ln, group: v + _n, text: Be().pasteFormula, workArea: y + w + M + x }, { command: d + En, name: v + En, iconClass: p + En, group: v + _n, text: Be().pasteValues, workArea: y + w + M + x }, { command: d + On, name: v + On, iconClass: p + On, group: v + _n, text: Be().pasteFormatting, workArea: y + w + M + x }, { command: d + Gn, name: v + Gn, iconClass: p + Gn, group: v + _n, text: Be().pasteValuesFormatting, workArea: y + w + M + x }, { command: d + Un, name: v + Un, iconClass: p + Un, group: v + _n, text: Be().pasteFormulaFormatting, workArea: y + w + M + x }, { text: Be().pasteSpecial.title, name: Re(Ne), command: Ot, workArea: y + w + M + x, type: "splitSubMenu", subMenu: [{ text: Be().paste, name: je, type: "groupHeader" }, { command: d + Fn, name: Re("pasteSpecial.pasteAll"), iconClass: Le(Fn), group: je, text: Be().pasteAll }, { command: d + Ln, name: Re("pasteSpecial.pasteFormula"), iconClass: Le("pasteFormula"), group: je, text: Be().pasteFormula }, { command: Ee.pasteFormulaAndNumberFormat, name: Re("formulaAndNumberFormat"), iconClass: Le("pasteFormulaAndNumberFormat"), group: je, text: Be().pasteSpecial.formulaAndNumberFormat }, { command: Ee.pasteKeepSourceFormatting, name: Re("keepSourceFormatting"), iconClass: Le("pasteKeepSourceFormat"), group: je, text: Be().pasteSpecial.keepSourceFormatting }, { command: Ee.pasteNoBorders, name: Re("noBorders"), iconClass: Le("pasteNoBorders"), group: je, text: Be().pasteSpecial.noBorders }, { command: Ee.pasteColumnWidth, name: Re("keepSourceColumnWidth"), iconClass: Le("pasteColumnWidth"), group: je, text: Be().pasteSpecial.columnWidth }, { command: Ee.pasteTranspose, name: Re("transpose"), iconClass: Le("pasteTranspose"), group: je, text: Be().pasteSpecial.transpose }, { text: Be().pasteValues, name: De, type: "groupHeader" }, { command: d + En, name: Re("pasteSpecial.pasteValues"), iconClass: Le("pasteValues"), group: De, text: Be().pasteValues }, { command: Ee.pasteValueAndNumberFormats, name: Re("pasteValueAndNumberFormat"), iconClass: Le("pasteValueAndNumberFormats"), group: De, text: Be().pasteSpecial.valuesAndNumberFormat }, { command: Ee.pasteValueAndSourceFormats, name: Re("pasteValueAndSourceFormat"), iconClass: Le("valueAndSourceFormats"), group: De, text: Be().pasteSpecial.valueAndSourceFormat }, { text: Be().pasteSpecial.otherPasteOptions, name: _e, type: "groupHeader" }, { command: d + On, name: Re("pasteSpecial.pasteFormatting"), iconClass: Le("pasteValuesFormatting"), group: _e, text: Be().pasteFormatting }, { command: Ee.pasteLink, name: Re("pasteLink"), iconClass: Le("pasteLink"), group: _e, text: Be().pasteSpecial.pasteLink }, { type: "separator" }, { command: Ot, name: Re("pasteSpecial.pasteSpecial"), text: Be().pasteSpecial.title }] }, { text: Be().paste, name: v + jn, command: d + En, iconClass: p + _n, workArea: y + w + M + x }, { text: Be().paste, name: v + Dn, command: d + Rn, iconClass: p + _n, workArea: y + w + M + x }, { type: Hn }, { text: Be().pinRows, name: v + Vt, command: d + Vt, workArea: M }, { text: Be().pinColumns, name: v + zt, command: d + zt, workArea: w }, { type: Hn }, { text: Be().modifyColumn, name: v + w + dn, command: d + dn, workArea: w }, { text: Be().removeColumn, name: v + w + vn, command: d + vn, workArea: w }, { text: Be().setPrimaryKey, name: v + w + pn, command: d + pn, workArea: w }, { type: Hn }, { text: Be().scrollToTasks, name: v + be, command: d + be, workArea: ve + pe }, { type: Hn }, { text: Be().insertTasks, name: v + ge, command: d + ge, workArea: ve + pe }, { text: Be().deleteTasks, name: v + me, command: d + me, workArea: ve + pe }, { type: Hn }, { text: Be().indentTasks, name: v + Te, command: d + Te, workArea: ve + pe }, { text: Be().outdentTasks, name: v + xe, command: d + xe, workArea: ve + pe }, { type: Hn }, { text: Be().manuallySchedule, name: v + ye, command: d + ye, workArea: ve + pe }, { text: Be().autoSchedule, name: v + we, command: d + we, workArea: ve + pe }, { type: Hn }, { text: Be().hideColumn, name: v + Ce, command: d + Ce, workArea: Me }, { text: Be().unhideColumn, name: v + Se, command: d + Se, workArea: Me }, { type: Hn }, { text: Be().promote, name: v + M + Yt, command: d + Yt, workArea: M }, { text: Be().demote, name: v + M + Zt, command: d + Zt, workArea: M }, { type: Hn }, { text: Be().moveUp, name: v + M + Xt, command: d + Xt, workArea: M }, { text: Be().moveDown, name: v + M + qt, command: d + qt, workArea: M }, { type: Hn }, { text: Be().addAfter, name: v + M + Wt, command: d + Wt, workArea: M }, { text: Be().addBefore, name: v + M + Qt, command: d + Qt, workArea: M }, { text: Be().addAbove, name: v + M + Kt, command: d + Kt, workArea: M }, { text: Be().addBelow, name: v + M + Jt, command: d + Jt, workArea: M }, { type: Hn }, { text: Be().expandAllLevels, name: v + w + $t, command: d + $t, workArea: w }, { text: Be().collapseAllLevels, name: v + w + tn, command: d + tn, workArea: w }, { text: Be().expandLevel1, name: v + w + en, command: d + en, workArea: w }, { text: Be().expandLevel2, name: v + w + rn, command: d + rn, workArea: w }, { text: Be().expandLevel3, name: v + w + on, command: d + on, workArea: w }, { text: Be().expandLevel4, name: v + w + an, command: d + an, workArea: w }, { text: Be().expandLevel5, name: v + w + un, command: d + un, workArea: w }, { text: Be().expandLevel6, name: v + w + sn, command: d + sn, workArea: w }, { text: Be().expandLevel7, name: v + w + cn, command: d + cn, workArea: w }, { text: Be().expandLevel8, name: v + w + fn, command: d + fn, workArea: w }, { text: Be().expandLevel9, name: v + w + ln, command: d + ln, workArea: w }, { type: Hn }, { text: Be().clearContents, command: d + Nn, name: v + Nn, workArea: y + w + M + x }, { type: Hn }, { text: Be().headerInsertCopiedCells, name: v + M + ie, command: d + M + ie, workArea: M }, { text: Be().headerInsertCutCells, name: v + M + re, command: d + M + re, workArea: M }, { text: Be().headerInsertCopiedCells, name: v + w + ie, command: d + w + ie, workArea: w }, { text: Be().headerInsertCutCells, name: v + w + re, command: d + w + re, workArea: w }, { text: Be().insertCopiedCells, name: v + ie, subMenu: [{ text: Be().shiftCellsRight, name: v + ie + ae, command: d + ie + ae, iconClass: p + ae }, { text: Be().shiftCellsDown, name: v + ie + oe, command: d + ie + oe, iconClass: p + oe }], workArea: y }, { text: Be().insertCutCells, name: v + re, subMenu: [{ text: Be().shiftCellsRight, name: v + re + ae, command: d + re + ae, iconClass: p + ae }, { text: Be().shiftCellsDown, name: v + re + oe, command: d + re + oe, iconClass: p + oe }], workArea: y }, { text: Be().insertRows, name: v + xn, command: d + xn, workArea: M }, { text: Be().insertColumns, name: v + An, command: d + An, workArea: w }, { text: Be().deleteRows, name: v + In, command: d + In, workArea: M }, { text: Be().deleteColumns, name: v + kn, command: d + kn, workArea: w }, { type: Hn }, { text: Be().tableInsert, name: v + Wn, subMenu: [{ text: Be().tableInsertColumnsLeft, name: v + Xn, command: le, iconClass: p + Xn }, { text: Be().tableInsertColumnsRight, name: v + qn, command: he, iconClass: p + qn }, { text: Be().tableInsertRowsAbove, name: v + Kn, command: se, iconClass: p + Kn }, { text: Be().tableInsertRowsBelow, name: v + Jn, command: ce, iconClass: p + Jn }, { text: Be().tableDeleteOrInsertEntireSheetRow, name: v + ne, command: d + xn, iconClass: p + Kn }], workArea: Zn }, { text: Be().tableDelete, name: v + Qn, subMenu: [{ text: Be().tableDeleteColumns, name: v + ee, command: de, iconClass: p + ee }, { text: Be().tableDeleteRows, name: v + $n, command: fe, iconClass: p + $n }, { text: Be().tableDeleteOrInsertEntireSheetRow, name: v + te, command: d + In, iconClass: p + $n }], workArea: Zn }, { type: Hn }, { text: Be().insertSheet, name: v + Tn, command: d + Tn, workArea: T }, { text: Be().deleteSheet, name: v + Sn, command: d + Sn, workArea: T }, { type: Hn }, { text: Be().filter, name: v + Mn, command: d + Mn, workArea: y + x, metaData: { viewModePermissions: 8 } }, { text: Be().sort, name: v + wn, subMenu: [{ text: Be().sortAscend, name: v + mn, command: d + mn, iconClass: p + mn }, { text: Be().sortDescend, name: v + bn, command: d + bn, iconClass: p + bn }], metaData: { viewModePermissions: 16 }, workArea: y + x }, { text: Be().slicerSortAscend, name: v + zn, command: d + zn, iconClass: p + mn, workArea: C, metaData: { viewModePermissions: 16 } }, { text: Be().slicerSortDescend, name: v + Yn, command: d + Yn, iconClass: p + bn, workArea: C, metaData: { viewModePermissions: 16 } }, { type: Hn }, { text: Be().insertComment, name: v + Cn, command: d + Cn, iconClass: p + Cn, workArea: y + x, needKeepFocus: true }, { text: Be().editComment, name: v + Ft, command: d + Ft, iconClass: p + Ft, workArea: y + x, needKeepFocus: true }, { text: Be().deleteComment, name: v + Lt, command: d + Lt, iconClass: p + Lt, workArea: y + x }, { text: Be().toggleComment, name: v + Rt, command: d + Rt, workArea: y + x }, { type: Hn }, { text: Be().hideRows, name: v + Ht, command: d + Ht, workArea: M, metaData: { viewModePermissions: 2 } }, { text: Be().unhideRows, name: v + Gt, command: d + Gt, workArea: M, metaData: { viewModePermissions: 2 } }, { text: Be().hideColumns, name: v + gn, command: d + gn, workArea: w, metaData: { viewModePermissions: 2 } }, { text: Be().unhideColumns, name: v + Ut, command: d + Ut, workArea: w, metaData: { viewModePermissions: 2 } }, { type: Hn }, { text: Be().hideSheet, name: v + Pt, command: d + Pt, workArea: T }, { text: Be().unhideSheet, name: v + Bt, command: d + Bt, workArea: T }, { type: Hn }, { text: Be().removeSlicer, name: v + Et, command: d + Et, workArea: C + S }, { type: Hn }, { text: Be().sort, name: v + wn, subMenu: [{ text: Be().sortAscend, name: v + mn, command: Dt, iconClass: p + mn, commandOptions: { subType: 0 }, placeholder: O }, { text: Be().sortDescend, name: v + bn, command: Dt, iconClass: p + bn, commandOptions: { subType: 1 }, placeholder: O }, { text: Be().pivotTableSortMoreOptions, name: v + yn, command: _t }], workArea: k + j }, { text: Be().pivotTableRefresh, name: g + U, command: U, iconClass: p + U, workArea: A + I + j + k + D + N }, { text: Be().pivotTableRemove_, name: g + V, command: V, iconClass: p + V, workArea: A + I + j + k, placeholder: _ }, { text: Be().pivotTableRemoveGrandTotal, name: g + Y, command: Y, workArea: D }, { text: Be().pivotTableSummarizeValuesBy, name: g + E, command: Oe, subMenu: [{ text: Be().pivotTableSum, name: v + W, command: Q, commandOptions: { subTotalType: 8 } }, { text: Be().pivotTableCount, name: v + K, command: Q, commandOptions: { subTotalType: 1 } }, { text: Be().pivotTableAverage, name: v + J, command: Q, commandOptions: { subTotalType: 0 } }, { text: Be().pivotTableMax, name: v + X, command: Q, commandOptions: { subTotalType: 3 } }, { text: Be().pivotTableMin, name: v + q, command: Q, commandOptions: { subTotalType: 4 } }, { text: Be().pivotTableProduct, name: v + $, command: Q, commandOptions: { subTotalType: 5 } }], workArea: I + j + D }, { text: Be().pivotTableShowValueAs, name: g + P, command: Oe, subMenu: [{ text: Be().pivotTableNoCalculation, name: v + tt, command: Q, commandOptions: { showValueAsType: 0 } }, { text: Be().pivotTableGrandTotal, name: v + nt, command: Q, commandOptions: { showValueAsType: 1 } }, { text: Be().pivotTableColumnTotal, name: v + et, command: Q, commandOptions: { showValueAsType: 3 } }, { text: Be().pivotTableRowTotal, name: v + it, command: Q, commandOptions: { showValueAsType: 2 } }, { text: Be().pivotTableOf, name: v + rt, command: kt, commandOptions: { showValueAsType: 4 } }, { text: Be().pivotTableParentRowTotal, name: v + ot, command: Q, commandOptions: { showValueAsType: 5 } }, { text: Be().pivotTableParentColumnTotal, name: v + ht, command: Q, commandOptions: { showValueAsType: 6 } }, { text: Be().pivotTableOfParentTotal, name: v + lt, command: kt, commandOptions: { showValueAsType: 7 } }, { text: Be().pivotTableDifferenceFrom, name: v + at, command: kt, commandOptions: { showValueAsType: 8 } }, { text: Be().pivotTablePercentDifferenceFrom, name: v + ut, command: kt, commandOptions: { showValueAsType: 9 } }, { text: Be().pivotTableRunningTotalIN, name: v + st, command: kt, commandOptions: { showValueAsType: 10 } }, { text: Be().pivotTablePercentRunningTotalIn, name: v + ct, command: kt, commandOptions: { showValueAsType: 11 } }, { text: Be().pivotTableRankSmallestToLargest, name: v + ft, command: kt, commandOptions: { showValueAsType: 12 } }, { text: Be().pivotTableRankLargestToSmallest, name: v + dt, command: kt, commandOptions: { showValueAsType: 13 } }, { text: Be().pivotTableIndex, name: v + vt, command: Q, commandOptions: { showValueAsType: 14 } }], workArea: I + j }, { text: Be().pivotTableFilter, name: g + pt, iconClass: p + pt, command: Oe, subMenu: [{ text: Be().pivotTableClearFilterFrom_, name: v + gt, command: jt, iconClass: p + gt, placeholder: _, commandOptions: { clearType: 0 } }, { text: Be().pivotTableKeepOnlySelectedItems, name: v + mt, command: Nt, commandOptions: { subType: 1 } }, { text: Be().pivotTableHideSelectedItems, name: v + bt, command: Nt, commandOptions: { subType: 2 } }, { text: Be().pivotTableTop10, name: v + yt, command: At, commandOptions: { isTop10: true } }, { text: Be().pivotTableLabelFilters, name: v + wt, command: It }, { text: Be().pivotTableValueFilters, name: v + Mt, command: At }], workArea: k }, { text: Be().pivotTableSubtotal_, name: g + H, command: H, workArea: I + k, placeholder: _ }, { text: Be().pivotTableExpandOrCollapse, name: g + R, command: Oe, subMenu: [{ text: Be().pivotTableExpand, name: v + Ct, command: Ct, iconClass: p + Ct }, { text: Be().pivotTableCollapse, name: v + St, command: St, iconClass: p + St }, { text: Be().pivotTableExpandEntireField, name: v + Tt, command: Tt, iconClass: p + Tt }, { text: Be().pivotTableCollapseEntireField, name: v + xt, command: xt, iconClass: p + xt }], workArea: k }, { text: Be().pivotTableGroup, name: g + L, command: F, iconClass: p + L, workArea: k }, { text: Be().pivotTableUnGroup, name: g + B, command: B, iconClass: p + B, workArea: k }, { text: Be().pivotTableShowDetails, name: g + G, command: G, iconClass: p + G, workArea: j }, { text: Be().pivotTableValueFieldSettings, name: g + Z, command: Z, iconClass: p + Z, workArea: I + j + D }], false);
          }, t3.prototype.Hc = function(t4) {
            var n3 = this;
            n3.iq || (n3.Qy = t4.commandManager(), f(n3.rq) && (n3.rq = new r.ContextMenuViewDialog(t4.j2(), c(t4.oM))), n3.oq(t4), n3.aq = { filter: { menuDataDict: [v + Mn], checkFunction: function(t5) {
              if (t5 && t5.rowFilter) return true;
            } }, sort: { menuDataDict: [v + wn], checkFunction: function(t5, n4) {
              var e3;
              return !(null === (e3 = null == n4 ? void 0 : n4.worksheetHitInfo) || void 0 === e3 ? void 0 : e3.dataRange);
            } }, comments: { menuDataDict: [v + Cn, v + Ft, v + Lt, v + Rt], checkFunction: function(t5) {
              if (t5 && t5.comments) return true;
            } }, slicer: { menuDataDict: [v + zn, v + Yn, v + Et], checkFunction: function(t5) {
              if (t5 && t5.slicers) return true;
            } }, floatingObject: { menuDataDict: [v + En, v + On, v + Ln], checkFunction: function(t5) {
              var n4, e3, i3;
              return !t5 || !t5.uq || (!(i3 = (e3 = (n4 = t5.uq()).fromSheet) && e3.dP) || void 0);
            } }, table: { menuDataDict: [v + Wn, v + Qn], checkFunction: function(t5) {
              if (t5 && t5.tables) return true;
            } }, tableSheet: { menuDataDict: [v + jn, v + Vt, v + zt, v + dn, v + vn, v + pn, v + Yt, v + Zt, v + Kt, v + Wt, v + Qt, v + Jt, v + Xt, v + qt, v + $t, v + tn, v + en, v + rn, v + on, v + an, v + un, v + sn, v + cn, v + fn, v + ln], checkFunction: function(t5) {
              if (t5 && t5.NMi && 0 === t5.NMi._gi) return true;
            } }, ganttSheet: { menuDataDict: [v + Dn, v + ge, v + me, v + Te, v + xe, v + be, v + ye, v + we], checkFunction: function(t5) {
              if (t5 && t5.NMi && 1 === t5.NMi._gi) return true;
            } } }, n3.iq = true);
          }, t3.prototype.cq = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, l2, d2, v2, p2, g2, m2, b2, y2 = this;
            if (n3.focus(), e3 = y2.fq(t4, n3), f(e3)) h(t4);
            else if ((i3 = (0, a.jf)(n3)) && i3.options.disableContextMenu && e3.worksheetHitInfo) h(t4);
            else {
              if (i3) {
                if (r2 = { row: i3.getActiveRowIndex(), col: i3.getActiveColumnIndex() }, o2 = { r: false, hitInfo: e3, e: t4 }, a.Worksheet.et(i3, "preProcessContextMenu", o2), o2.r) return;
                if (i3.isEditing() && e3.worksheetHitInfo && e3.worksheetHitInfo.col === r2.col && e3.worksheetHitInfo.row === r2.row || n3.getTab() && n3.getTab().Og) return;
              }
              y2.Hc(n3), y2.lq(e3, n3), (i3 = (0, a.jf)(n3)) && (u2 = i3.getSelections()[0], f(u2) || f(i3.pivotTables) || (s2 = i3.floatingObjects && i3.floatingObjects.all().some((function(t5) {
                return t5.isSelected();
              })), c2 = i3.shapes && i3.shapes.all().some((function(t5) {
                return t5.isSelected();
              })), s2 || c2 || (l2 = i3.getActiveRowIndex(), d2 = i3.getActiveColumnIndex(), v2 = i3.pivotTables.findPivotTable(l2, d2), !f(v2) && e3.worksheetHitInfo && (e3.worksheetHitInfo.pivotTableInfo = v2, p2 = v2.getPivotInfoImp(l2, d2, false, false, true), f(p2) || (e3.worksheetHitInfo.pivotTableCellInfo = p2))))), y2.$di = e3, m2 = { itemsDataForShown: g2 = y2.hq(y2.menuData, e3, n3) }, a.Workbook.et(n3, "beforeOpenContextMenu", m2), g2 = m2.itemsDataForShown, (b2 = y2.onOpenMenu(y2.menuData, g2, e3, n3)) || (h(t4), g2.length && y2.dq(g2, e3, n3), y2.onMenuOpened());
            }
          }, t3.prototype.lq = function(t4, n3) {
            var e3 = this;
            e3.rq.QX(t4) && e3.vq(t4, n3);
          }, t3.prototype.vq = function(t4, n3) {
            var e3 = this, i3 = (0, a.jf)(n3);
            i3 && i3.isEditing() && i3.endEdit(void 0, false), e3.mq(t4) ? e3.gq(t4, n3) : e3.pq(t4) && e3.bq(t4, n3);
          }, t3.prototype.pq = function(t4) {
            return !!t4.worksheetHitInfo;
          }, t3.prototype.yq = function(t4, n3, e3, i3) {
            var r2, o2, a2 = true, u2 = (null == t4 ? void 0 : t4.length) > 0 && -1 === t4[0].col && -1 === t4[0].row;
            if (u2) return false;
            if (1 === i3) {
              for (r2 = 0; r2 < t4.length; r2++) -1 === (o2 = t4[r2]).row && e3 >= o2.col && e3 < o2.col + o2.colCount && (a2 = false);
              return a2;
            }
            if (2 === i3) {
              for (r2 = 0; r2 < t4.length; r2++) -1 === (o2 = t4[r2]).col && n3 >= o2.row && n3 < o2.row + o2.rowCount && (a2 = false);
              return a2;
            }
            for (r2 = 0; r2 < t4.length; r2++) if ((o2 = t4[r2]).contains(n3, e3)) return false;
            return true;
          }, t3.prototype.mq = function(t4) {
            return !(!t4.tabStripHitInfo || !t4.tabStripHitInfo.sheetTab);
          }, t3.prototype.wq = function(t4) {
            return t4.tabStripHitInfo.sheetTab.sheetName;
          }, t3.prototype.Mq = function(t4) {
            return t4.tabStripHitInfo.sheetTab.sheetIndex;
          }, t3.prototype.bq = function(t4, n3) {
            var e3 = this, i3 = (0, a.jf)(n3), r2 = t4.worksheetHitInfo;
            r2.floatingObjectHitInfo || r2.commentHitInfo || r2.shapeHitInfo || (e3.kk(i3, r2), e3.Cq(i3));
          }, t3.prototype.Cq = function(t4) {
            var n3, e3 = t4.getActiveRowIndex(), i3 = t4.getActiveColumnIndex(), r2 = t4.comments;
            r2 && (n3 = r2.get(e3, i3)) && r2.PW === n3 && r2.NK(n3);
          }, t3.prototype.Sq = function(t4) {
            return 3 === t4.hitTestType;
          }, t3.prototype.PA = function(t4, n3, e3) {
            t4.PA && t4.PA(n3, e3);
          }, t3.prototype.kk = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.Ut.getSelections(), f2 = n3.row, l2 = n3.col;
            t4.JA(n3.rowViewportIndex < 0 ? -1 : n3.row, n3.colViewportIndex < 0 ? -1 : n3.col) && (e3 = false, s2.yq(c2, f2, l2, n3.hitTestType) ? e3 = true : (r2 = (i3 = t4.shapes && t4.shapes.all() || []).filter((function(t5) {
              return t5.isSelected();
            }))).length > 0 && (r2.forEach((function(t5) {
              return t5.isSelected(false);
            })), e3 = true), e3 && (n3.dataRange && (o2 = n3.dataRange.convertContext({ sheet: t4, row: f2, col: l2, sheetArea: n3.hitTestType })) && o2.sheet !== t4 && (a2 = { sheet: o2.sheet, row: o2.row, col: o2.col, hitTestType: o2.sheetArea, rowViewportIndex: o2.sheet.C0(o2.row), colViewportIndex: o2.sheet.S0(o2.col) }, o2.sheet.rt && o2.sheet.rt.kk(o2.sheet, a2, o2.row, o2.col)), (u2 = t4.rt).kk(t4, n3, f2, l2), u2.X9()));
          }, t3.prototype.gq = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, l2, h2 = this.Mq(t4), d2 = n3.e2(h2);
            if (d2) {
              if (d2.b2()) {
                for (i3 = 0, r2 = [], o2 = 0, a2 = (e3 = n3.qv()).length; o2 < a2; o2++) (u2 = e3[o2]).b2() && (i3++, f(u2._gi) || r2.push(u2));
                if (i3 > 1) for (s2 = 0, c2 = r2.length; s2 < c2; s2++) (l2 = r2[s2]).b2(false, true);
              } else (e3 = n3.qv()).forEach((function(t5) {
                t5.b2() && t5.b2(false, true);
              })), d2.b2(true, true);
              n3.I2(h2, 2, false, true), this.Tq(this.menuData, t4, n3);
            }
          }, t3.prototype.fq = function(t4, n3) {
            var e3 = n3.wM(), i3 = t4.pageX - e3.left, r2 = t4.pageY - e3.top;
            return i3 = i3 >= 0 ? i3 : 1, r2 = r2 >= 0 ? r2 : 1, n3.hitTest(i3, r2, true);
          }, t3.prototype.onOpenMenu = function(t4, n3, e3, i3) {
          }, t3.prototype.onMenuOpened = function() {
          }, t3.prototype.dq = function(t4, n3, e3) {
            var i3 = this;
            i3.rq.QX(n3) && (i3.Aq(), e3.iy(), i3.Iq(t4, n3, e3));
          }, t3.prototype.Aq = function() {
            this.rq.close();
          }, t3.prototype.Iq = function(t4, n3, e3) {
            var i3 = this, r2 = e3.uC(), o2 = n3.x, a2 = n3.y;
            o2 -= r2.left, a2 -= r2.top, i3.rq.rQ(i3.menuView, t4, o2, a2, e3);
          }, t3.prototype.hq = function(t4, n3, e3) {
            var i3, r2, o2, u2, f2, l2 = this, h2 = {}, d2 = (0, a.jf)(e3);
            return c.extend(true, h2, t4), r2 = {}, c.extend(true, r2, n3), (o2 = null === (i3 = n3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.dataRange) && (u2 = o2.convertContext({ sheet: d2, row: n3.worksheetHitInfo.row, col: n3.worksheetHitInfo.col, sheetArea: n3.worksheetHitInfo.hitTestType })) && u2.sheet !== d2 && (r2.worksheetHitInfo.row = u2.row, r2.worksheetHitInfo.col = u2.col, r2.worksheetHitInfo.hitTestType = u2.sheetArea, r2.worksheetHitInfo.rowViewportIndex = u2.sheet.C0(u2.row), r2.worksheetHitInfo.colViewportIndex = u2.sheet.S0(u2.col), r2.worksheetHitInfo.sheet = u2.sheet), f2 = l2.xq(h2, r2, e3), l2.Nq(f2, r2), l2.kq(f2, e3, r2), l2.Dq(f2, e3), l2._q(f2, e3, r2), l2.Eq(f2), l2.Oq(f2), f2 = (0, s.filterReportSheetMenuItems)(f2, e3, n3), f2 = l2.jq(f2);
          }, t3.prototype.xq = function(t4, n3, e3) {
            var i3 = this, r2 = [], o2 = Object.keys(Pe);
            return c.each(t4, (function(t5, a2) {
              var u2, s2, c2, l2;
              if (!f(a2)) {
                for (a2.type === Hn && r2.push(a2), u2 = 0; u2 < o2.length; u2++) if (s2 = o2[u2], (c2 = Pe[s2])(n3, e3, a2) && (l2 = i3.Rq(a2, n3))) return void r2.push(a2);
              }
            })), r2;
          }, t3.prototype.Bq = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = e3.placeholder, l2 = e3.name, h2 = n3.area, d2 = n3.value, p2 = n3.menuArea, m2 = n3.colHeadFieldInfo, b2 = n3.rowInfos, y2 = n3.colInfos, w2 = n3.cornerFieldInfo, M2 = n3.activeRowFieldInfo, C2 = n3.activeColFieldInfo;
            if (f(c2)) l2 === v + wt && (a2 = M2 && M2.name || C2 && C2.name || m2 && m2.fieldName || w2 && w2.fieldName, u2 = t4.dh, (s2 = a2 && u2.getFieldInfoByName(a2) && 2 === u2.getFieldInfoByName(a2).W5) && (e3.text = Be().pivotTableLabelFilters_Date));
            else if (c2 === _) {
              if (i3 = void 0, 0 === p2) i3 = n3.pageFieldInfo.fieldName;
              else if (2 === h2 && 2 === p2) {
                if (m2) i3 = m2.fieldName;
                else if (i3 = C2 && C2.name, f(i3)) {
                  for (r2 = C2.index; r2 >= 0 && y2[r2] && f(y2[r2].itemName); ) r2 -= 1;
                  i3 = y2[r2].fieldName;
                }
              } else if (3 === h2 && 2 === p2) {
                if (i3 = M2 && M2.name, M2 && f(i3)) {
                  for (r2 = M2.index; r2 >= 0 && b2[r2] && f(b2[r2].itemName); ) r2 -= 1;
                  i3 = b2[r2].fieldName;
                }
              } else 1 === h2 ? 1 === p2 ? i3 = n3.value : 2 === p2 && w2 && (i3 = w2.fieldName) : 4 === p2 && (i3 = n3.valueFieldName, 2 === h2 ? i3 = C2 && C2.name || d2 : 3 === h2 && (i3 = M2 && M2.name || d2));
              if (void 0 === i3) return false;
              if (e3.name === g + H && (i3 === Be().sigmaValueTemp || 0 === h2)) return false;
              e3.text = e3.text.replace("{0}", '"' + i3 + '"');
            } else c2 === O && 4 === p2 && (i3 = void 0, 0 === (o2 = e3.commandOptions.subType) ? i3 = Be().pivotTableSortAscend : 1 === o2 && (i3 = Be().pivotTableSortDescend), e3.text = i3);
            return f(e3.commandOptions) && (e3.commandOptions = {}), e3.commandOptions.pivotTableName = t4.name(), e3.commandOptions.pivotTableCellInfo = n3, true;
          }, t3.prototype.Oq = function(t4) {
            var n3, e3, i3 = 0, r2 = false;
            for (n3 = 0; n3 < t4.length && ((e3 = t4[n3].name) !== v + M + ie && e3 !== v + M + re && e3 !== v + w + ie && e3 !== v + w + re || (r2 = true), e3 !== v + xn && e3 !== v + An || (i3 = n3, !r2)); n3++) ;
            r2 && t4.splice(i3, 1);
          }, t3.prototype.Nq = function(t4, n3) {
            var e3 = n3.worksheetHitInfo, i3 = e3 && (e3.row === ke || e3.col === ke);
            i3 && t4.splice(0, t4.length);
          }, t3.prototype.kq = function(t4, n3, e3) {
            var i3, r2 = this, o2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3), u2 = r2.aq;
            return c.each(u2, (function(n4, i4) {
              var a2, u3, s2;
              if (!i4.checkFunction(o2, e3)) for (u3 = 0, s2 = (a2 = i4.menuDataDict).length; u3 < s2; u3++) r2.Lq(t4, a2[u3], (function(t5, n5) {
                t5[n5] = null;
              }));
            })), t4;
          }, t3.prototype.Rq = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, m2, b2, y2, w2 = this, M2 = n3.worksheetHitInfo && n3.worksheetHitInfo.pivotTableInfo;
            if (M2 && (e3 = n3.worksheetHitInfo && n3.worksheetHitInfo.pivotTableCellInfo)) {
              if (i3 = M2.options.subtotalsPosition, r2 = e3.value, o2 = e3.area, a2 = e3.menuArea, u2 = e3.cornerFieldInfo, s2 = e3.colHeadFieldInfo, c2 = e3.activeRowFieldInfo, l2 = e3.activeColFieldInfo, h2 = e3.rowInfos, d2 = e3.colInfos, v2 = e3.valueFieldName, (p2 = [g + R, g + pt, g + G]).indexOf(t4.name) > -1 && ((2 === o2 || 3 === o2) && 4 === a2 || (!f(u2) || !f(s2)) && r2 === Be().sigmaValueTemp || 3 === o2 && c2 && h2[c2.index].isSubtotal && void 0 === h2[c2.index].collapseIndex && 1 !== i3 || 2 === o2 && l2 && d2[l2.index].isSubtotal && void 0 === d2[l2.index].collapseIndex && 1 !== i3)) return false;
              if ((m2 = [g + L, g + B]).indexOf(t4.name) > -1 && (!f(u2) || !f(s2))) return false;
              if ((b2 = [g + Z, g + V, g + E, g + P, g + H]).indexOf(t4.name) > -1 && f(v2) && 4 === a2 && 4 === o2) return false;
              if (w2.updateIconClass(M2, e3, t4), t4 && t4.subMenu) t4.subMenu.forEach((function(t5) {
                w2.Bq(M2, e3, t5), w2.Fq(M2, e3, t5);
              }));
              else if (!(y2 = w2.Bq(M2, e3, t4))) return false;
            }
            return true;
          }, t3.prototype.updateIconClass = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2;
            e3.name === g + H && (i3 = n3.activeRowFieldInfo, r2 = n3.activeColFieldInfo, o2 = n3.cornerFieldInfo, a2 = n3.colHeadFieldInfo, u2 = n3.valueFieldName, s2 = i3 && i3.name || r2 && r2.name || a2 && a2.fieldName || o2 && o2.fieldName || u2, c2 = t4.dh, (f2 = s2 && c2.getFieldInfoByName(s2)) && t4.subtotalVisible(f2.Zc) && (e3.iconClass = b));
          }, t3.prototype.Fq = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, l2 = n3.activeRowFieldInfo, h2 = n3.activeColFieldInfo, d2 = n3.cornerFieldInfo, p2 = n3.colHeadFieldInfo, g2 = n3.valueFieldName, b2 = l2 && l2.name || h2 && h2.name || p2 && p2.fieldName || d2 && d2.fieldName || g2, y2 = t4.dh, w2 = b2 && y2.getFieldInfoByName(b2), M2 = y2.K;
            switch (e3.commandOptions && w2 && (i3 = e3.commandOptions.showValueAsType, r2 = e3.commandOptions.subTotalType, f(i3) || (o2 = w2.Or && w2.Or.showDataAs || 0) === i3 && (e3.iconClass = m), f(r2) || (a2 = w2.getSubTotalType()) === r2 && (e3.iconClass = m)), e3.name) {
              case v + gt:
                s2 = false, (u2 = w2 && M2.Pq[w2.a]) && u2.C() && (s2 = true), c2 = !!u2 && u2.on(), s2 || c2 || (e3.disable = true);
                break;
              case v + mt:
              case v + bt:
                f(d2) && f(p2) || (e3.disable = true);
            }
          }, t3.prototype.Dq = function(t4, n3) {
            var e3, i3, r2, o2 = (0, a.jf)(n3), u2 = o2 && o2.getSelections();
            u2 && u2.length > 0 && (e3 = fi(o2, u2[0]), i3 = o2.getActiveRowIndex(), r2 = o2.getActiveColumnIndex(), e3 && c.each(t4, (function(t5, n4) {
              var o3, a2;
              f(n4) || (n4.name === v + Wn ? (o3 = n4.subMenu, (a2 = e3.rowFilter()).isFiltered() ? e3.checkTableLastRow(i3) ? o3.splice(2, 2) : o3.splice(2, 1) : (o3.splice(4, 1), e3.checkTableLastRow(i3) && o3.splice(3, 1)), e3.checkTableLastCol(r2) && o3.splice(1, 1)) : n4.name === v + Qn && (o3 = n4.subMenu, (a2 = e3.rowFilter()).isFiltered() ? o3.splice(1, 1) : o3.splice(2, 1)));
            })));
          }, t3.prototype.Eq = function(t4) {
            var n3, e3 = this, i3 = t4.length;
            for (n3 = i3 - 1; n3 >= 0; n3--) t4[n3] ? t4[n3].subMenu && e3.Eq(t4[n3].subMenu) : t4.splice(n3, 1);
            return t4;
          }, t3.prototype.jq = function(t4) {
            var n3, e3, i3, r2, o2, a2 = [], u2 = t4.length;
            for (n3 = 0; n3 < u2; n3++) t4[n3] && t4[n3].type === Hn && t4[n3 + 1] && t4[n3 + 1].type === Hn || a2.push(t4[n3]);
            for (u2 = a2.length, e3 = 0, i3 = 0, r2 = true, o2 = true, n3 = 0; n3 < u2 && (r2 && a2[n3].type === Hn ? e3++ : r2 = false, o2 && a2[u2 - 1 - n3].type === Hn ? i3++ : o2 = false, r2 || o2); n3++) ;
            return a2.splice(u2 - i3, i3), a2.splice(0, e3), a2;
          }, t3.prototype._q = function(t4, n3, e3) {
            var i3 = this;
            i3.Gq(t4, n3, e3), i3.Uq(t4, n3, e3);
          }, t3.prototype.Gq = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2 = this, c2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3), f2 = c2 && c2.tables, l2 = c2 && c2.NMi;
            for (o2 = 0; o2 < t4.length; o2++) if (t4[o2]) {
              switch (t4[o2].name) {
                case v + xn:
                  c2.rR() || (t4[o2].disable = true), c2.isActualProtected() && !c2.options.protectionOptions.allowInsertRows && (t4[o2].disable = true);
                  break;
                case v + In:
                  c2.rR() || (t4[o2].disable = true), c2.isActualProtected() && !c2.options.protectionOptions.allowDeleteRows && (t4[o2].disable = true), f2 && f2.containTableHeaderTotalRowForSheet() && (t4[o2].disable = true);
                  break;
                case v + An:
                  c2.oR() || (t4[o2].disable = true), c2.isActualProtected() && !c2.options.protectionOptions.allowInsertColumns && (t4[o2].disable = true);
                  break;
                case v + kn:
                  c2.oR() || (t4[o2].disable = true), c2.isActualProtected() && !c2.options.protectionOptions.allowDeleteColumns && (t4[o2].disable = true);
                  break;
                case v + Kn:
                  f2 && (f2.isAcrossTables() || f2.containTableHeader() || f2.noRoomToInsertRow()) && (t4[o2].disable = true);
                  break;
                case v + Jn:
                  f2 && (f2.isAcrossTables() || f2.noRoomToInsertRow()) && (t4[o2].disable = true);
                  break;
                case v + $n:
                  f2 && (f2.checkTableRow() || f2.isAcrossTables() || f2.containTableHeaderTotalRow()) && (t4[o2].disable = true);
                  break;
                case v + Xn:
                case v + qn:
                  f2 && (f2.isAcrossTables() || f2.noRoomToInsertColumn()) && (t4[o2].disable = true);
                  break;
                case v + ee:
                  f2 && (f2.checkTableCol() || f2.isAcrossTables() || f2.isWholeTableCol()) && (t4[o2].disable = true);
                  break;
                case v + w + dn:
                case v + w + vn:
                case v + w + pn:
                  l2 && (u2 = null === (r2 = null == e3 ? void 0 : e3.worksheetHitInfo) || void 0 === r2 ? void 0 : r2.col, t4[o2].disable = l2.UFe(u2));
                  break;
                case v + zt:
                  l2 && (t4[o2].disable = !l2.enablePinColumn());
                  break;
                case v + Vt:
                  l2 && (t4[o2].disable = !l2.enablePinRow());
              }
              t4[o2] && t4[o2].subMenu && s2.Gq(t4[o2].subMenu, n3, e3);
            }
          }, t3.prototype.Uq = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2 = this, f2 = (null === (i3 = e3.worksheetHitInfo) || void 0 === i3 ? void 0 : i3.sheet) || (0, a.jf)(n3), l2 = f2 && f2.isActualProtected(), h2 = f2 && f2.options.protectionOptions;
            if (l2 && h2) {
              for (r2 = void 0, o2 = 0; o2 < t4.length; o2++) if (t4[o2]) {
                switch (t4[o2].name) {
                  case v + xn:
                    h2.allowInsertRows || (t4[o2].disable = true);
                    break;
                  case v + An:
                    h2.allowInsertColumns || (t4[o2].disable = true);
                    break;
                  case v + In:
                    h2.allowDeleteRows || (t4[o2].disable = true);
                    break;
                  case v + kn:
                    h2.allowDeleteColumns || (t4[o2].disable = true);
                    break;
                  case v + Mn:
                    h2.allowFilter || (t4[o2].disable = true);
                    break;
                  case v + mn:
                  case v + bn:
                  case v + yn:
                    h2.allowSort || (t4[o2].disable = true);
                    break;
                  case v + Ht:
                  case v + Gt:
                  case v + gn:
                  case v + Ut:
                    f2.NMi || (t4[o2].disable = true);
                    break;
                  case v + zn:
                  case v + Yn:
                    h2.allowEditObjects || t4.splice(0, t4.length);
                    break;
                  case v + Cn:
                    h2.allowEditObjects || (t4[o2] = null);
                    break;
                  case v + Ft:
                    u2 = void 0, f2.comments && (u2 = (r2 = f2.comments.get(f2.getActiveRowIndex(), f2.getActiveColumnIndex())) && r2.lockText()), !h2.allowEditObjects && u2 && (t4[o2] = null);
                    break;
                  case v + Lt:
                    s2 = void 0, f2.comments && (s2 = !$e(f2.getSelections(), f2)), !h2.allowEditObjects && s2 && (t4[o2] = null);
                    break;
                  case v + Kn:
                  case v + Jn:
                  case v + Xn:
                  case v + qn:
                  case v + $n:
                  case v + ee:
                  case g + G:
                  case g + pt:
                  case v + gt:
                  case v + mt:
                  case v + bt:
                  case v + yt:
                  case v + wt:
                  case v + Mt:
                  case g + R:
                  case v + Ct:
                  case v + St:
                  case v + Tt:
                  case v + xt:
                  case g + L:
                  case g + B:
                  case g + Z:
                  case g + U:
                  case g + V:
                  case g + H:
                  case g + Y:
                  case g + E:
                  case v + W:
                  case v + K:
                  case v + J:
                  case v + X:
                  case v + q:
                  case v + $:
                  case v + tt:
                  case v + nt:
                  case v + et:
                  case v + it:
                  case v + rt:
                  case v + ot:
                  case v + ht:
                  case v + lt:
                  case v + at:
                  case v + ut:
                  case v + st:
                  case v + ct:
                  case v + ft:
                  case v + dt:
                  case v + vt:
                  case g + P:
                    t4[o2].disable = true;
                }
                t4[o2] && t4[o2].subMenu && c2.Uq(t4[o2].subMenu, n3, e3);
              }
            }
          }, t3.prototype.Tq = function(t4, n3, e3) {
            var i3, r2, o2, u2;
            if (n3.tabStripHitInfo && (i3 = this, r2 = e3.qv(), o2 = i3.Hq(v + Bt))) {
              for (u2 = 0; u2 < r2.length; u2++) if (r2[u2].visible() === a.SheetTabVisible.hidden) return void (o2.disable = false);
              o2.disable = true;
            }
          }, t3.prototype.Hq = function(t4) {
            var n3 = this;
            return n3.zq(n3.menuData, t4);
          }, t3.prototype.zq = function(t4, n3) {
            var e3, i3 = this;
            return i3.Lq(t4, n3, (function(t5, n4) {
              e3 = t5[n4];
            })), e3;
          }, t3.prototype.Lq = function(t4, n3, e3) {
            for (var i3 = this, r2 = t4.length, o2 = 0; o2 < r2; o2++) if (!f(t4[o2])) {
              if (n3 === t4[o2].name) return void e3(t4, o2);
              t4[o2].subMenu && i3.Lq(t4[o2].subMenu, n3, e3);
            }
          }, t3.prototype.Vq = function(t4, n3) {
            for (var e3, i3 = this, r2 = t4.length, o2 = 0; o2 < r2; o2++) e3 = t4[o2], f(e3) || (n3(e3), e3.subMenu && i3.Vq(e3.subMenu, n3));
          }, t3.prototype.oq = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, h2, v2, p2, g2, m2, b2, y2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2, vt2;
            function pt2(t5, n4, e4) {
              var i4, r3;
              for (i4 = 0; i4 < e4; i4++) r3 = n4 + i4, -1 === t5.indexOf(r3) && t5.push(r3);
              return t5;
            }
            this.Yq || (e3 = { canUndo: false, metaData: { viewModePermissions: 31 }, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && (Ve(i4) ? n3.execute({ cmd: "copyShapes", sheetName: i4.name() }) : n3.execute({ cmd: Pn, sheetName: i4.name(), ignoreClipboard: true }));
            } }, (n3 = t4.commandManager()).register(d + Pn, e3, null, false, false, false, false), i3 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && (Ve(i4) ? n3.execute({ cmd: "cutShapes", sheetName: i4.name() }) : n3.execute({ cmd: Bn, sheetName: i4.name(), ignoreClipboard: true }));
            } }, n3.register(d + Bn, i3, null, false, false, false, false), r2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && (i4.isPasteFloatingObject && i4.isPasteFloatingObject() ? n3.execute({ cmd: "pasteFloatingObjects", sheetName: i4.name() }) : i4.isPasteShapes && i4.isPasteShapes() ? n3.execute({ cmd: "pasteShapes", sheetName: i4.name() }) : n3.execute({ cmd: jn, sheetName: i4.name(), pasteOption: 0 }));
            } }, n3.register(d + Fn, r2, null, false, false, false, false), o2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && n3.execute({ cmd: jn, sheetName: i4.name(), pasteOption: 0, shiftCells: a.InsertShiftCell.right, isHeaderPaste: Ni(e4.itemName) });
            } }, n3.register(d + ie + ae, o2, null, false, false, false, false), n3.register(d + re + ae, o2, null, false, false, false, false), n3.register(d + w + ie, o2, null, false, false, false, false), n3.register(d + w + re, o2, null, false, false, false, false), u2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && n3.execute({ cmd: jn, sheetName: i4.name(), pasteOption: 0, shiftCells: a.InsertShiftCell.down, isHeaderPaste: Ni(e4.itemName) });
            } }, n3.register(d + ie + oe, u2, null, false, false, false, false), n3.register(d + re + oe, u2, null, false, false, false, false), n3.register(d + M + ie, u2, null, false, false, false, false), n3.register(d + M + re, u2, null, false, false, false, false), s2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = 3;
              Ci(t5, e4, n3, 3);
            } }, n3.register(d + Ln, s2, null, false, false, false, false), c2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = 1;
              Ci(t5, e4, n3, 1);
            } }, n3.register(d + En, c2, null, false, false, false, false), h2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = 1;
              Ci(t5, e4, n3, 1);
            } }, n3.register(d + Rn, h2, null, false, false, false, false), v2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && n3.execute({ cmd: jn, sheetName: i4.name(), pasteOption: 2 });
            } }, n3.register(d + On, v2, null, false, false, false, false), p2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = 4;
              Ci(t5, e4, n3, 4);
            } }, n3.register(d + Gn, p2, null, false, false, false, false), g2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = 5;
              Ci(t5, e4, n3, 5);
            } }, n3.register(d + Un, g2, null, false, false, false, false), m2 = { canUndo: false, execute: function(t5, e4) {
              var i4 = (0, a._f)(t5, e4.sheetName);
              i4 && n3.execute({ cmd: "clear", sheetName: i4.name() });
            } }, n3.register(d + Nn, m2, null, false, false, false, false), b2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(n5, e5) {
                var i4, r3, o3, a2, u3, s3, c3, f2, l2, h3, d2, v3, p3, g3 = e5.commentState || 2, m3 = e5.displayMode, b3 = e5.activeRow, y3 = e5.activeCol, w2 = n5.comments.add(b3, y3, "");
                w2 && (w2.commentState(g3), m3 && w2.displayMode(m3), i4 = n5.C0(b3), r3 = n5.S0(y3), o3 = n5.getCellRect(b3, y3, i4, r3), u3 = (a2 = n5.Fi()).c9(i4, r3), s3 = w2.location(), c3 = w2.width(), f2 = w2.height(), l2 = void 0, h3 = void 0, d2 = void 0, v3 = void 0, p3 = t5.ib, o3.y + s3.y < u3.y ? (d2 = wi(n5, b3, o3.y + s3.y - u3.y), l2 = p3.Jy(n5, d2), p3.yy(n5, l2.Ky, 0), n5.tw()) : o3.y + s3.y + f2 > u3.y + u3.height && (d2 = wi(n5, b3, o3.y + s3.y + f2 - (u3.y + u3.height)), l2 = p3.Jy(n5, d2), p3.yy(n5, l2.Ky, 0), n5.tw()), o3.x + s3.x + c3 > u3.x + u3.width && (v3 = Mi(n5, y3, o3.x + s3.x + c3 - (u3.x + u3.width)), h3 = p3.rw(n5, v3), p3.wy(n5, h3.iw, 0), n5.ow()));
              }), (function(t6, n5) {
                var e5, i4 = n5.activeRow, r3 = n5.activeCol, o3 = t6.comments.get(i4, r3);
                if (o3) return n5.displayMode = o3.displayMode(), n5.commentState = o3.commentState(), e5 = { sheet: t6, sheetName: t6.name(), comment: o3, cancel: false, row: i4, col: r3 }, t6.ki(a.Events.CommentRemoving, e5), { cancel: e5.cancel, comment: o3 };
              }));
            } }, n3.register(d + Cn, b2, null, false, false, false, false), y2 = { canUndo: false, execute: function(t5, n4) {
              var e4, i4, r3, o3 = (0, a._f)(t5, n4.sheetName);
              o3 && (e4 = n4.activeRow, i4 = n4.activeCol, (r3 = o3.comments.get(e4, i4)) && r3.commentState(2, true));
            } }, n3.register(d + Ft, y2, null, false, false, false, false), C2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                var i5, r3, o3, a2, u3, s3 = e4.selections, c3 = s3.length;
                if (!(c3 <= 0)) for (i5 = 0; i5 < c3; i5++) for (o3 = (r3 = s3[i5]).row; o3 < r3.row + r3.rowCount; o3++) for (a2 = r3.col; a2 < r3.col + r3.colCount; a2++) !(u3 = t6.comments.get(o3, a2)) || t6.isActualProtected() && !t6.options.protectionOptions.allowEditObjects && u3.locked() || n3.execute({ cmd: Lt, sheetName: t6.name(), row: u3.bZ, col: u3.yZ });
              }));
            } }, n3.register(d + Lt, C2, null, false, false, false, false), S2 = { canUndo: false, execute: function(t5, n4) {
              var e4, i4, r3, o3 = (0, a._f)(t5, n4.sheetName);
              o3 && (e4 = n4.activeRow, i4 = n4.activeCol, (r3 = o3.comments.get(e4, i4)) && (2 === r3.displayMode() ? r3.displayMode(1) : r3.displayMode(2)));
            } }, n3.register(d + Rt, S2, null, false, false, false, false), T2 = { canUndo: true, execute: function(t5, n4, e4) {
              return n4.considerAllSheets = true, yi(t5, n4, e4, (function(t6) {
                var e5, i4, r3, o3, a2, u3, s3, c3, f2, l2, h3, d2, v3 = hi(n4.selections);
                for (i4 = 0; i4 < v3.length; i4++) {
                  for (e5 = v3[i4], r3 = t6.getRange(e5.row - 1, 0, 1, e5.colCount), o3 = [], a2 = 0; a2 < r3.colCount; a2++) t6.getCell(r3.row, a2).locked() || o3.push(a2);
                  for (u3 = e5.row, s3 = e5.rowCount, t6.addRows(u3, s3), c3 = 0; c3 < o3.length; c3++) for (f2 = v3[i4].row; f2 < v3[i4].row + v3[i4].rowCount; f2++) t6.getCell(f2, o3[c3]).locked(false);
                  if (t6.tables && s3 > 0) for (l2 = t6.tables.AB(u3, -1, s3, -1), h3 = 0; h3 < l2.length; h3++) (d2 = l2[h3]).jj(u3, s3, false, false);
                  vi(t6, u3, -1, s3);
                }
              }), ke, (function(t6) {
                t6.Ww = true;
              }));
            } }, n3.register(d + xn, T2, null, false, false, false, false), n3.register(d + "insertEntireSheetRows", T2, null, false, false, false, false), x2 = { canUndo: true, execute: function(t5, n4, e4) {
              return n4.considerAllSheets = true, yi(t5, n4, e4, (function(t6) {
                var e5, i4, r3, o3, a2, u3, s3, c3, f2, l2, h3, d2, v3 = di(n4.selections);
                for (i4 = 0; i4 < v3.length; i4++) {
                  for (e5 = v3[i4], r3 = t6.getRange(0, e5.col - 1, e5.rowCount, 1), o3 = [], a2 = 0; a2 < r3.rowCount; a2++) t6.getCell(a2, r3.col).locked() || o3.push(a2);
                  for (u3 = e5.col, s3 = e5.colCount, t6.addColumns(u3, s3), c3 = 0; c3 < o3.length; c3++) for (f2 = u3; f2 < u3 + s3; f2++) t6.getCell(o3[c3], f2).locked(false);
                  if (t6.tables && s3 > 0) for (l2 = t6.tables.AB(-1, u3, -1, s3), h3 = 0; h3 < l2.length; h3++) (d2 = l2[h3]).Ej(u3, s3, false, false);
                  vi(t6, -1, u3, s3);
                }
              }), ke, (function(t6) {
                t6.Zw = true;
              }));
            } }, n3.register(d + An, x2, null, false, false, false, false), A2 = { canUndo: true, execute: function(t5, n4, e4) {
              if (!e4) {
                var i4 = (0, a._f)(t5, n4.sheetName);
                if (i4.isActualProtected() && a.mt.Cme(i4)) return i4.jT(a.InvalidOperationType.editProtected, i4.FT()), false;
              }
              return n4.considerAllSheets = true, yi(t5, n4, e4, (function(t6) {
                var e5, i5, r3, o3, a2, u3, s3, c3, f2 = hi(n4.selections), l2 = t6.filterRowsVisibleInfo && t6.filterRowsVisibleInfo.rowsVisibleInfo, h3 = l2 && Object.keys(l2).length > 0;
                for (e5 = 0; e5 < f2.length; e5++) if (r3 = (i5 = f2[e5]).row, o3 = i5.rowCount, a2 = t6.getRowCount(), h3) for (s3 = (u3 = Ye(i5, l2)).length - 1; s3 >= 0; s3--) r3 = u3[s3][0], o3 = u3[s3][1], c3 = t6.tables && t6.tables.AB(r3, -1, o3, -1), t6.deleteRows(r3, o3), c3.length > 0 && a2 - t6.getRowCount() > 0 && (a2 = t6.getRowCount(), li(t6, c3, r3, o3));
                else c3 = t6.tables && t6.tables.AB(r3, -1, o3, -1), t6.deleteRows(r3, o3), c3.length > 0 && a2 - t6.getRowCount() > 0 && li(t6, c3, r3, o3);
              }), ke, (function(t6) {
                t6.Ww = true;
              }));
            } }, n3.register(d + In, A2, null, false, false, false, false), n3.register(d + "deleteEntireSheetRows", A2, null, false, false, false, false), I2 = { canUndo: true, execute: function(t5, n4, e4) {
              if (!e4) {
                var i4 = (0, a._f)(t5, n4.sheetName);
                if (i4.isActualProtected() && a.mt.Cme(i4)) return i4.jT(a.InvalidOperationType.editProtected, i4.FT()), false;
              }
              return n4.considerAllSheets = true, yi(t5, n4, e4, (function(t6) {
                var e5, i5, r3, o3, a2, u3, s3, c3 = di(n4.selections);
                for (e5 = 0; e5 < c3.length; e5++) if (i5 = t6.getColumnCount(), r3 = c3[e5].col, o3 = c3[e5].colCount, a2 = void 0, t6.tables && (a2 = t6.tables.AB(-1, r3, -1, o3)), t6.deleteColumns(r3, o3), t6.tables && i5 - t6.getColumnCount() > 0) for (u3 = 0; u3 < a2.length; u3++) (s3 = a2[u3]).Ej(r3, o3, true);
              }), ke, (function(t6) {
                t6.Zw = true;
              }));
            } }, n3.register(d + kn, I2, null, false, false, false, false), k2 = { canUndo: false, execute: function(t5) {
              var n4, e4, i4, r3, o3 = t5.getActiveSheetIndex(), u3 = t5.getActiveSheetTabIndex(), s3 = t5.getActiveSheetTab(), c3 = [], f2 = (0, a.jf)(t5);
              n4 = s3 ? t5.bb("", s3._gi) : t5.S2(t5.T2(o3)), (e4 = t5.qv()).forEach((function(t6) {
                t6.b2() && c3.push(t6);
              })), c3.forEach((function(t6) {
                t6.b2(false, true);
              })), i4 = { sheetName: n4.name(), propertyName: "insertSheet", cancel: false, sheetIndex: -1 !== o3 ? o3 : u3, sheetPosition: t5.getSheetPosition(n4.name()) }, t5.ki(a.Events.SheetChanging, i4), i4.cancel || (r3 = { oldSheet: f2, newSheet: n4 }, t5.ki(a.Events.ActiveSheetChanging, r3), u3 >= 0 ? (t5.yb(u3, 2, n4), t5.setActiveSheetTab(u3)) : t5.A2(Math.max(0, o3), 2, n4), n4.b2(true, true), a.Workbook.et(t5, "afterContextMenuInsertSheet", { sheetOrSheetTab: n4 }), t5.ki(a.Events.SheetChanged, { sheetName: n4.name(), propertyName: "insertSheet", sheetIndex: -1 !== o3 ? o3 : u3, sheetPosition: t5.getSheetPosition(n4.name()) }), t5.ki(a.Events.ActiveSheetChanged, { oldSheet: f2, newSheet: n4 }));
            } }, n3.register(d + Tn, k2, null, false, false, false, false), N2 = { canUndo: false, execute: function(t5, n4) {
              var e4, i4, r3, o3, u3, s3, c3 = (0, a.jf)(t5), l2 = t5.qv();
              l2.length > 1 ? (e4 = [], i4 = [], l2.forEach((function(n5, r4) {
                var o4, a2;
                n5.b2() && (o4 = n5.name(), e4.push(o4), a2 = t5.Ese(o4), i4.push(a2));
              })), e4.length !== l2.length ? e4.length >= 1 && (t5.suspendPaint(), t5.suspendCalcService(), r3 = { oldSheet: c3, cancel: false }, o3 = t5.i4(), t5.options && t5.options.saveChangesForSheet && a.Commands.II(o3), u3 = [], e4.forEach((function(n5, e5) {
                var o4, s4, l3 = i4[e5], h3 = (0, a._f)(t5, n5), d2 = { sheetName: n5, propertyName: "deleteSheet", cancel: false, sheetIndex: l3, sheetPosition: t5.getSheetPosition(n5) };
                h3 === c3 && t5.ki(a.Events.ActiveSheetChanging, r3), t5.ki(a.Events.SheetChanging, d2), r3.cancel || d2.cancel || (o4 = t5.getSheetIndex(n5), !f(o4) && o4 >= 0 ? (t5.m3(o4, 2), -1 === t5.getActiveSheetIndex() && t5.setActiveSheetTab(0)) : (o4 = t5.getSheetTabIndex(n5), !f(o4) && o4 >= 0 && (t5.g3(o4, 2), -1 === t5.getActiveSheetTabIndex() && t5.setActiveSheetIndex(0))), u3.push(n5), t5.ki(a.Events.SheetChanged, { sheetName: n5, propertyName: "deleteSheet", sheetIndex: l3, sheetPosition: t5.getSheetPosition(n5) }), s4 = (0, a.jf)(t5), h3 === c3 && t5.ki(a.Events.ActiveSheetChanged, { oldSheet: h3, newSheet: s4 }));
              })), n4.deletedSheets = u3, t5.options && t5.options.saveChangesForSheet && a.Commands.xI(o3, n4), (s3 = (0, a.jf)(t5)) && !s3.isSelected() && s3.b2(true, true), t5.resumeCalcService(false), t5.resumePaint()) : Ti(c3)) : Ti(c3), t5.undoManager().clear();
            } }, n3.register(d + Sn, N2, null, false, false, false, false), j2 = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                var i5, r3, o3 = e4.selections, a2 = o3[0], u3 = fi(t6, a2), s3 = e4.activeRow, c3 = e4.activeCol;
                u3 ? (i5 = u3.range()).contains(s3, c3, 1, 1) && (r3 = u3.name(), n3.execute({ cmd: "contextmenuFilterForTable", sheetName: t6.name(), cmdOption: { tableName: r3, activeRow: s3, activeCol: c3, expectedText: t6.getText(s3, c3) } })) : t6.rowFilter && n3.execute({ cmd: "contextmenuFilterForSheet", sheetName: t6.name(), cmdOption: { activeRow: s3, activeCol: c3, selection: a2, expectedText: t6.getText(s3, c3) } });
              }));
            } }, n3.register(d + Mn, j2, null, false, false, false, false), D2 = { canUndo: true, metaData: { viewModePermissions: 16 }, execute: function(t5, n4, e4) {
              if (!e4) {
                var i4 = (0, a._f)(t5, n4.sheetName);
                if (i4.isActualProtected() && a.mt.Cme(i4)) return i4.jT(a.InvalidOperationType.sort, i4.FT()), false;
              }
              return yi(t5, n4, e4, (function(t6) {
                var e5 = n4.activeCol, i5 = n4.selections, r3 = fi(t6, i5[0]), o3 = r3 ? r3.dataRange() : i5[0], u3 = t6.TB(o3, true, null), s3 = { sheet: t6, sheetName: t6.name(), col: e5, ascending: true, range: o3, compareFunction: ke, groupSort: u3.groupSort, ignoreHidden: u3.ignoreHidden, cancel: false };
                t6.ki(a.Events.RangeSorting, s3), false === s3.cancel && (t6.sortRange(o3.row, o3.col, o3.rowCount, o3.colCount, true, [{ index: e5, ascending: true, compareFunction: s3.compareFunction }], { groupSort: s3.groupSort, ignoreHidden: s3.ignoreHidden }, ke, !!r3), t6.ki(a.Events.RangeSorted, s3));
              }));
            } }, n3.register(d + mn, D2, null, false, false, false, false), _2 = { canUndo: true, metaData: { viewModePermissions: 16 }, execute: function(t5, n4, e4) {
              if (!e4) {
                var i4 = (0, a._f)(t5, n4.sheetName);
                if (i4.isActualProtected() && a.mt.Cme(i4)) return i4.jT(a.InvalidOperationType.sort, i4.FT()), false;
              }
              return yi(t5, n4, e4, (function(t6) {
                var e5 = n4.activeCol, i5 = n4.selections, r3 = fi(t6, i5[0]), o3 = r3 ? r3.dataRange() : i5[0], u3 = t6.TB(o3, true, null), s3 = { sheet: t6, sheetName: t6.name(), col: e5, ascending: false, range: o3, compareFunction: ke, groupSort: u3.groupSort, ignoreHidden: u3.ignoreHidden, cancel: false };
                t6.ki(a.Events.RangeSorting, s3), false === s3.cancel && (t6.sortRange(o3.row, o3.col, o3.rowCount, o3.colCount, true, [{ index: e5, ascending: false, compareFunction: s3.compareFunction }], { groupSort: s3.groupSort, ignoreHidden: s3.ignoreHidden }, ke, !!r3), t6.ki(a.Events.RangeSorted, s3));
              }));
            } }, n3.register(d + bn, _2, null, false, false, false, false), O2 = { canUndo: true, metaData: { viewModePermissions: 16 }, execute: function(t5, n4, e4) {
              return Si(t5, n4, e4, 1);
            } }, n3.register(d + zn, O2, null, false, false, false, false), E2 = { canUndo: true, metaData: { viewModePermissions: 16 }, execute: function(t5, n4, e4) {
              return Si(t5, n4, e4, 2);
            } }, n3.register(d + Yn, E2, null, false, false, false, false), R2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                var e5, i4, r3, o3, a2 = n4.selections;
                if (a2.length > 0) {
                  for (e5 = [], i4 = 0, r3 = a2; i4 < r3.length; i4++) pt2(e5, (o3 = r3[i4]).row, o3.rowCount);
                  try {
                    t6.NMi.togglePinnedRows(e5);
                  } catch (t7) {
                    return false;
                  }
                }
              }));
            } }, n3.register(d + Vt, R2, null, false, false, false, false), L2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                var e5, i4, r3, o3, a2 = n4.selections;
                if (a2.length > 0) {
                  for (e5 = [], i4 = 0, r3 = a2; i4 < r3.length; i4++) pt2(e5, (o3 = r3[i4]).col, o3.colCount);
                  try {
                    t6.NMi.togglePinnedColumns(e5);
                  } catch (t7) {
                    return false;
                  }
                }
              }));
            } }, n3.register(d + zt, L2, null, false, false, false, false), F2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  var e5 = n4.hitInfo.cellRect, i4 = e5.x, r3 = e5.y + e5.height;
                  t6.NMi.Eze(i4, r3);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + hn, F2, null, false, false, false, false), B2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                var e5, i4, r3, o3, u3 = n4.selections;
                if (u3.length > 0) try {
                  e5 = u3[0].col, r3 = (i4 = t6.getCellRect(t6.getRowCount(a.SheetArea.colHeader) - 1, e5, -1)).x, o3 = i4.y + i4.height, t6.NMi.Eze(r3, o3, e5);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + dn, B2, null, false, false, false, false), P2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                var e5 = n4.selections;
                if (e5.length > 0) try {
                  return t6.NMi.zA({ cmd: "RemoveColumn", col: e5[0].col });
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + vn, P2, null, false, false, false, false), G2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                var e5, i4 = n4.selections;
                if (i4.length > 0) try {
                  return e5 = i4[0].col, t6.NMi.zA({ cmd: "ModifyColumn", col: e5, column: { isPrimaryKey: !t6.NMi.jOt(e5) } });
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + pn, G2, null, false, false, false, false), U2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetInsertTask" });
              }));
            } }, n3.register(d + ge, U2, null, false, false, false, false), H2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function() {
                return yi(t5, e4, i4, (function() {
                  n3.execute({ cmd: "ganttSheetDeleteTask" });
                }));
              }));
            } }, n3.register(d + me, H2, null, false, false, false, false), V2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetScrollToTask" });
              }));
            } }, n3.register(d + be, V2, null, false, false, false, false), z2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetChangeTaskMode", taskMode: "Manual" });
              }));
            } }, n3.register(d + ye, z2, null, false, false, false, false), Y2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetChangeTaskMode", taskMode: "Auto" });
              }));
            } }, n3.register(d + we, Y2, null, false, false, false, false), Z2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                return ki(n4, t6);
              }));
            } }, n3.register(d + Ce, Z2, null, false, false, false, false), W2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                return ki(n4, t6, true);
              }));
            } }, n3.register(d + Se, W2, null, false, false, false, false), Q2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetIndentTasks" });
              }));
            } }, n3.register(d + Te, Q2, null, false, false, false, false), K2 = { canUndo: true, execute: function(t5, e4, i4) {
              return yi(t5, e4, i4, (function(t6) {
                n3.execute({ cmd: "ganttSheetOutdentTasks" });
              }));
            } }, n3.register(d + xe, K2, null, false, false, false, false), J2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.promoteHierarchyLevel(n4.activeRow);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Yt, J2, null, false, false, false, false), X2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.demoteHierarchyLevel(n4.activeRow, n4.commandOptions && n4.commandOptions.withChildren);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Zt, X2, null, false, false, false, false), q2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.addHierarchyItemAfter(n4.activeRow, n4.commandOptions && n4.commandOptions.rowData);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Wt, q2, null, false, false, false, false), $2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.addHierarchyItemBefore(n4.activeRow, n4.commandOptions && n4.commandOptions.rowData);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Qt, $2, null, false, false, false, false), tt2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.addHierarchyItemAbove(n4.activeRow, n4.commandOptions && n4.commandOptions.rowData);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Kt, tt2, null, false, false, false, false), nt2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.addHierarchyItemBelow(n4.activeRow, n4.commandOptions && n4.commandOptions.rowData);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Jt, nt2, null, false, false, false, false), et2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.moveUp(n4.activeRow);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + Xt, et2, null, false, false, false, false), it2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.moveDown(n4.activeRow);
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + qt, it2, null, false, false, false, false), rt2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.expandAllHierarchyLevels();
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + $t, rt2, null, false, false, false, false), ot2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  t6.NMi.collapseAllHierarchyLevels();
                } catch (t7) {
                  return false;
                }
              }));
            } }, n3.register(d + tn, ot2, null, false, false, false, false), at2 = { canUndo: true, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(t6) {
                try {
                  var e5 = n4.commandOptions && !f(n4.commandOptions.level) ? n4.commandOptions.level : parseInt(n4.cmd.charAt((d + nn).length), 10) - 1;
                  t6.NMi.expandHierarchyLevel(e5);
                } catch (t7) {
                  return false;
                }
              }));
            } }, ui(9, (function(t5) {
              n3.register(d + nn + (t5 + 1), at2, null, false, false, false, false);
            })), ut2 = { canUndo: false, execute: function(t5, n4) {
              var e4, i4 = n4.itemName.substr(10), r3 = t5.ep(), o3 = t5.getSheetPosition(i4);
              t5.w2.g2(o3), (e4 = t5.getTab()).scrollTabToActive(r3, o3);
            } }, n3.register(d + ue, ut2, null, false, false, false, false), st2 = { canUndo: true, metaData: { viewModePermissions: 2 }, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(e5) {
                t5.suspendCalcService(), ze(n4.selections, Ae, (function(t6) {
                  e5.setRowVisible(t6, false);
                })), t5.resumeCalcService(false);
              }), ke, (function(n5) {
                (null == t5 ? void 0 : t5.options.scrollIgnoreHidden) && !n5.bao() && n5.ew();
              }));
            } }, n3.register(d + Ht, st2, null, false, false, false, false), ct2 = { canUndo: true, metaData: { viewModePermissions: 2 }, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(e5) {
                t5.suspendCalcService(), ze(n4.selections, Ie, (function(t6) {
                  e5.setColumnVisible(t6, false);
                })), t5.resumeCalcService(false);
              }), ke, (function(n5) {
                (null == t5 ? void 0 : t5.options.scrollIgnoreHidden) && !n5.bao() && n5.aw();
              }));
            } }, n3.register(d + gn, ct2, null, false, false, false, false), ft2 = { canUndo: false, execute: function(n4) {
              var e4, i4, r3, o3, u3, s3, c3, f2, l2, h3, d2, v3, p3, g3, m3 = 0, b3 = n4.qv();
              if (b3.forEach((function(t5) {
                t5.visible() === a.SheetTabVisible.visible && (m3 += 1);
              })), e4 = (0, a.jf)(n4), m3 <= 1) Ti(e4);
              else {
                if (r3 = [], b3.forEach((function(t5) {
                  t5.b2() && r3.push(t5);
                })), m3 !== r3.length) {
                  for (o3 = 0; o3 < r3.length; o3++) f2 = { sheetName: s3 = (u3 = r3[o3]).name(), propertyName: "isVisible", cancel: false, sheetIndex: c3 = n4.Ese(s3), sheetPosition: n4.getSheetPosition(s3), oldValue: true, newValue: false }, n4.ki(a.Events.SheetChanging, f2), l2 = { cancel: false, oldSheet: u3 }, s3 === e4.name() && n4.ki(a.Events.ActiveSheetChanging, l2), f2.cancel || l2.cancel || (u3.b2(false, true), Ge.push(u3), u3.visible(false), h3 = (0, a.jf)(n4), o3 === r3.length - 1 && h3 && !h3.isSelected() && (i4 = { oldValue: false, newValue: true, sheetName: d2 = h3.name(), propertyName: "isSelected", cancel: false, sheetIndex: n4.Ese(d2), sheetPosition: t4.getSheetPosition(d2) }, n4.ki(a.Events.SheetChanging, i4)), n4.ki(a.Events.SheetChanged, { sheetName: s3, propertyName: "isVisible", sheetIndex: c3, sheetPosition: n4.getSheetPosition(s3), oldValue: true, newValue: false }));
                  p3 = (v3 = (0, a.jf)(n4)) && v3.name(), i4 && (i4.cancel ? v3.Ut.qj(false) : (v3.Ut.qj(true), n4 && n4.w2 && n4.w2.repaint(), g3 = { oldValue: false, newValue: true, sheetName: p3, propertyName: "isSelected", sheetIndex: n4.Ese(p3), sheetPosition: n4.getSheetPosition(p3) }, n4.ki(a.Events.SheetChanged, g3))), e4 !== v3 && n4.ki(a.Events.ActiveSheetChanged, { oldSheet: e4, newSheet: v3 });
                } else Ti(e4);
                n4.undoManager().clear();
              }
            } }, n3.register(d + Pt, ft2, null, false, false, false, false), lt2 = { canUndo: true, metaData: { viewModePermissions: 2 }, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(e5) {
                var i4 = n4.selections, r3 = n4.isAnyHiddenRowOrColBeforeFirstVisibleRowOrCol;
                f(r3) && (r3 = n4.isAnyHiddenRowOrColBeforeFirstVisibleRowOrCol = Ze(e5, i4[0])), 1 === i4.length && r3 ? (e5.setRowVisible(i4[0].row - 1, true), e5.$A(i4[0].row - 1)) : (t5.suspendCalcService(), ze(i4, Ae, (function(t6) {
                  e5.setRowVisible(t6, true), t6 === e5.pw() && (e5.Tb = 0, e5.tw());
                })), t5.resumeCalcService(false));
              }));
            } }, n3.register(d + Gt, lt2, null, false, false, false, false), ht2 = { canUndo: true, metaData: { viewModePermissions: 2 }, execute: function(t5, n4, e4) {
              return yi(t5, n4, e4, (function(e5) {
                var i4 = n4.selections, r3 = n4.isAnyHiddenRowOrColBeforeFirstVisibleRowOrCol;
                f(r3) && (r3 = n4.isAnyHiddenRowOrColBeforeFirstVisibleRowOrCol = Ze(e5, i4[0])), 1 === i4.length && r3 ? (e5.setColumnVisible(i4[0].col - 1, true), e5.o9(i4[0].col - 1)) : (t5.suspendCalcService(), ze(i4, Ie, (function(t6) {
                  e5.setColumnVisible(t6, true), t6 === e5.Sw() && (e5.Ab = 0, e5.ow());
                })), t5.resumeCalcService(false));
              }));
            } }, n3.register(d + Ut, ht2, null, false, false, false, false), dt2 = { canUndo: false, execute: function(t5, n4) {
              var e4, i4, r3, o3, u3, s3, c3 = t5.qv();
              if (0 === Ge.length) for (e4 = 0; e4 < c3.length; e4++) c3[e4].visible() === a.SheetTabVisible.hidden && (Ge.push(c3[e4]), c3[e4].b2(false));
              if (i4 = (0, a.jf)(t5), Ge.length > 0) {
                if (c3.forEach((function(t6) {
                  t6 !== i4 && t6.b2(false, true);
                })), r3 = void 0, n4 && !f(n4.activeSheetIndex) && (r3 = c3[n4.activeSheetIndex]), n4 && n4.unhideSheetIndexes && n4.unhideSheetIndexes.length > 0 && ((u3 = n4.unhideSheetIndexes).forEach((function(n5) {
                  var e5, i5 = c3[n5];
                  false !== (o3 = xi(t5, i5)) && (e5 = Ge.indexOf(c3[n5])) > -1 && Ge.splice(e5, 1);
                })), r3 || (r3 = c3[u3[u3.length - 1]])), !r3) {
                  if (!(r3 = Ge.pop())) return;
                  if (false === (o3 = xi(t5, r3))) return;
                }
                if (!r3) return;
                if (false === (s3 = Ai(t5, i4, r3))) return;
                t5.setActiveSheet(r3.name());
              }
              (0, a.jf)(t5) !== i4 && Ii(t5, i4);
            } }, n3.register(d + Bt, dt2, null, false, false, false, false), vt2 = { canUndo: false, execute: function(t5, e4) {
              var i4, r3, o3, u3, s3 = (0, a._f)(t5, e4.sheetName);
              if (s3 && (t5.suspendPaint(), i4 = [], (r3 = s3.slicers.all()) && !l(r3))) {
                for (o3 in r3) r3.hasOwnProperty(o3) && (u3 = r3[o3]).isSelected() && i4.push(u3.name());
                n3.execute({ cmd: "deleteSlicers", sheetName: s3.name(), slicerNames: i4 }), t5.resumePaint();
              }
            } }, n3.register(d + Et, vt2, null, false, false, false, false), ji(n3), this.Yq = true);
          }, t3.prototype.openAllSheetsListContextMenu = function(t4, n3, e3, i3) {
            var r2, o2 = this.menuView.maxHeight();
            (f(o2) || -1 === o2) && this.menuView.maxHeight(400), r2 = this.Zq(n3, e3), this.Hc(n3), this.lq(r2, n3), this.rq.ter = a.DialogFeatureType.sheetList, this.menuView.searchable(true), this.menuView.selectedIndex(i3), this.dq(t4, r2, n3), this.rq.ter = a.DialogFeatureType.contextMenu, f(o2) ? this.menuView.maxHeight(-1) : this.menuView.maxHeight(o2), this.menuView.Wq && this.menuView.Wq.hU(i3);
          }, t3.prototype.Zq = function(t4, n3) {
            var e3 = this.fq(n3, t4), i3 = 2;
            return 0 === t4.options.tabStripPosition && (e3.x = e3.x + i3, e3.y = e3.y - i3), e3;
          }, t3;
        })(), n2.ContextMenu = Ue, a.Workbook.ch("contextmenu", { init: function() {
          var t3 = this;
          t3.contextMenu || (t3.contextMenu = new Ue()), t3.contextMenu.oq(this);
        }, setHost: function() {
          var t3 = this, n3 = t3.Ti;
          t3.contextMenu || (t3.contextMenu = new Ue()), c(n3).bind("contextmenu.gcSheet", (function(n4) {
            if ("touch" !== n4.pointerType) return t3.options.allowContextMenu ? t3.contextMenu.cq(n4, t3) : void 0;
          }));
        }, dispose: function() {
          c(this.Ti).unbind("contextmenu.gcSheet");
        }, onCultureChanged: function() {
          var t3, n3, e3, i3 = this.contextMenu;
          i3 && (t3 = i3.menuData, n3 = i3.nq(), e3 = {}, i3.Vq(n3, (function(t4) {
            f(t4.name) || (e3[t4.name] = t4.text);
          })), i3.Vq(t3, (function(t4) {
            f(t4.name) || f(e3[t4.name]) || (t4.text = e3[t4.name]);
          })));
        }, fromJson: function(t3) {
          var n3 = this.contextMenu && this.contextMenu.menuView, e3 = t3.contextMenu;
          n3 && !f(e3) && (n3.Qq = t3.scrollable, n3.Kq = t3.maxHeight);
        }, toJson: function(t3) {
          var n3 = this.contextMenu && this.contextMenu.menuView;
          !n3 || f(n3.Qq) && f(n3.Kq) || (t3.contextMenu = {}, t3.contextMenu.scrollable = n3.Qq, t3.contextMenu.maxHeight = n3.Kq);
        } });
      }, "./dist/plugins/contextMenu/context-menu.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/contextMenu/context-menu.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/contextMenu/context-menu.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.tableDeleteColumns = n2.tableDeleteOrInsertEntireSheetRow = n2.tableDeleteRows = n2.tableDelete = n2.tableInsertColumnsRight = n2.tableInsertColumnsLeft = n2.tableInsertRowsBelow = n2.tableInsertRowsAbove = n2.tableInsert = n2.removeFloatingObject = n2.removeSlicer = n2.toggleComment = n2.deleteComment = n2.editComment = n2.unhideRows = n2.unhideColumns = n2.unhideSheet = n2.hideSheet = n2.hideColumns = n2.hideRows = n2.sortDescend = n2.sortAscend = n2.slicerSortDescend = n2.slicerSortAscend = n2.headerInsertCutCells = n2.headerInsertCopiedCells = n2.shiftCellsDown = n2.shiftCellsRight = n2.insertCutCells = n2.insertCopiedCells = n2.sort = n2.filter = n2.insertComment = n2.deleteSheet = n2.insertSheet = n2.deleteColumns = n2.deleteRows = n2.insertColumns = n2.insertRows = n2.clearContents = n2.pasteSpecial = n2.pasteFormulaFormatting = n2.pasteValuesFormatting = n2.pasteFormatting = n2.pasteValues = n2.pasteFormula = n2.pasteAll = n2.pasteOptions = n2.cut = n2.copy = void 0, n2.pivotTableExpand = n2.pivotTableValueFilters = n2.pivotTableLabelFilters_Date = n2.pivotTableLabelFilters = n2.pivotTableTop10 = n2.pivotTableHideSelectedItems = n2.pivotTableKeepOnlySelectedItems = n2.pivotTableClearFilterFrom_ = n2.pivotTableFieldSettings = n2.pivotTableHideFieldList = n2.pivotTableSubtotal_ = n2.pivotTableFilter = n2.pivotTableExpandOrCollapse = n2.pivotTableUnGroup = n2.pivotTableGroup = n2.pivotTableShowDetails = n2.pivotTableIndex = n2.pivotTableRankLargestToSmallest = n2.pivotTableRankSmallestToLargest = n2.pivotTablePercentRunningTotalIn = n2.pivotTableRunningTotalIN = n2.pivotTablePercentDifferenceFrom = n2.pivotTableDifferenceFrom = n2.pivotTableOfParentTotal = n2.pivotTableParentColumnTotal = n2.pivotTableParentRowTotal = n2.pivotTableOf = n2.pivotTableRowTotal = n2.pivotTableColumnTotal = n2.pivotTableGrandTotal = n2.pivotTableNoCalculation = n2.pivotTableShowValueAs = n2.pivotTableMoreOptions = n2.pivotTableDistinctCount = n2.pivotTableProduct = n2.pivotTableMin = n2.pivotTableMax = n2.pivotTableAverage = n2.pivotTableCount = n2.pivotTableSum = n2.pivotTableSummarizeValuesBy = n2.pivotTableSort = n2.pivotTableNumberFormat = n2.pivotTableOptions = n2.pivotTableValueFieldSettings = n2.pivotTableRemoveGrandTotal = n2.pivotTableRemove_ = n2.pivotTableMove = n2.pivotTableRefresh = n2.hideSheetFailureInfo = void 0, n2.scrollToTasks = n2.reportSheetExpandAll = n2.reportSheetCollapseAll = n2.reportSheetResetCellValue = n2.reportSheetSubmit = n2.reportSheetDeleteRecord = n2.reportSheetAddRecord = n2.paste = n2.expandLevel9 = n2.expandLevel8 = n2.expandLevel7 = n2.expandLevel6 = n2.expandLevel5 = n2.expandLevel4 = n2.expandLevel3 = n2.expandLevel2 = n2.expandLevel1 = n2.collapseAllLevels = n2.expandAllLevels = n2.addBelow = n2.addAbove = n2.addBefore = n2.addAfter = n2.moveDown = n2.moveUp = n2.demote = n2.promote = n2.setPrimaryKey = n2.removeColumn = n2.modifyColumn = n2.defineColumn = n2.pinColumns = n2.pinRows = n2.pivotTableSortMoreOptions = n2.pivotTableSortDescend = n2.pivotTableSortAscend = n2.sigmaValueTemp = n2.sigmaValue = n2.pivotTableMove_ToColumns = n2.pivotTableMove_ToRight = n2.pivotTableMove_ToLeft = n2.pivotTableMove_ToEnd = n2.pivotTableMove_Down = n2.pivotTableMove_Up = n2.pivotTableMove_ToBeginning = n2.pivotTableExpandTo_ = n2.pivotTableCollapseTo_ = n2.pivotTableCollapseEntireField = n2.pivotTableExpandEntireField = n2.pivotTableCollapse = void 0, n2.searchWorkSheetBoxPlaceholder = n2.activeSheet = n2.unhideColumn = n2.hideColumn = n2.autoSchedule = n2.manuallySchedule = n2.outdentTasks = n2.indentTasks = n2.deleteTasks = n2.insertTasks = void 0, n2.copy = "Copy", n2.cut = "Cut", n2.pasteOptions = "Paste Options:", n2.pasteAll = "All", n2.pasteFormula = "Formulas", n2.pasteValues = "Values", n2.pasteFormatting = "Formatting", n2.pasteValuesFormatting = "Values&Formatting", n2.pasteFormulaFormatting = "Formula&Formatting", n2.pasteSpecial = { title: "Paste Special...", formulaAndNumberFormat: "Formula & Number Formatting", keepSourceFormatting: "Keep Source Formatting", noBorders: "No Borders", columnWidth: "Keep Source Column Widths", transpose: "Transpose", valuesAndNumberFormat: "Values & Number Formatting", valueAndSourceFormat: "Values & Source Formatting", pasteLink: "Paste Link", otherPasteOptions: "Other Paste Options" }, n2.clearContents = "Clear Contents", n2.insertRows = "Insert", n2.insertColumns = "Insert", n2.deleteRows = "Delete", n2.deleteColumns = "Delete", n2.insertSheet = "Insert", n2.deleteSheet = "Delete", n2.insertComment = "Insert Comment", n2.filter = "Filter", n2.sort = "Sort", n2.insertCopiedCells = "Insert Copied Cells...", n2.insertCutCells = "Insert Cut Cells...", n2.shiftCellsRight = "Shift Cells Right", n2.shiftCellsDown = "Shift Cells Down", n2.headerInsertCopiedCells = "Insert Copied Cells", n2.headerInsertCutCells = "Insert Cut Cells", n2.slicerSortAscend = "Sort A to Z", n2.slicerSortDescend = "Sort Z to A", n2.sortAscend = "Sort A to Z", n2.sortDescend = "Sort Z to A", n2.hideRows = "Hide", n2.hideColumns = "Hide", n2.hideSheet = "Hide", n2.unhideSheet = "Unhide", n2.unhideColumns = "Unhide", n2.unhideRows = "Unhide", n2.editComment = "Edit Comment", n2.deleteComment = "Delete Comment", n2.toggleComment = "Show/Hide Comment", n2.removeSlicer = "Remove", n2.removeFloatingObject = "Remove", n2.tableInsert = "Insert", n2.tableInsertRowsAbove = "Table Rows Above", n2.tableInsertRowsBelow = "Table Row Below", n2.tableInsertColumnsLeft = "Table Columns to the Left", n2.tableInsertColumnsRight = "Table Columns to the Right", n2.tableDelete = "Delete", n2.tableDeleteRows = "Table Rows", n2.tableDeleteOrInsertEntireSheetRow = "Entire Sheet Row", n2.tableDeleteColumns = "Table Columns", n2.hideSheetFailureInfo = "A workbook must contain at least one visible worksheet.\nTo hide, delete or move the selected sheet(s), you must first insert a new sheet or unhide a sheet that is already hidden.", n2.pivotTableRefresh = "Refresh", n2.pivotTableMove = "Move", n2.pivotTableRemove_ = "Remove {0}", n2.pivotTableRemoveGrandTotal = "Remove GrandTotal", n2.pivotTableValueFieldSettings = "Value Field Settings...", n2.pivotTableOptions = "PivotTable Options...", n2.pivotTableNumberFormat = "Number Format...", n2.pivotTableSort = "Sort", n2.pivotTableSummarizeValuesBy = "Summarize Values By", n2.pivotTableSum = "Sum", n2.pivotTableCount = "Count", n2.pivotTableAverage = "Average", n2.pivotTableMax = "Max", n2.pivotTableMin = "Min", n2.pivotTableProduct = "Product", n2.pivotTableDistinctCount = "Distinct Count", n2.pivotTableMoreOptions = "More Options", n2.pivotTableShowValueAs = "Show Value As", n2.pivotTableNoCalculation = "No Calculation", n2.pivotTableGrandTotal = "% of Grand Total", n2.pivotTableColumnTotal = "% of Column Total", n2.pivotTableRowTotal = "% of Row Total", n2.pivotTableOf = "% Of...", n2.pivotTableParentRowTotal = "% of Parent Row Total", n2.pivotTableParentColumnTotal = "% of Parent Column Total", n2.pivotTableOfParentTotal = "% of Parent Total...", n2.pivotTableDifferenceFrom = "Difference From...", n2.pivotTablePercentDifferenceFrom = "% Difference From...", n2.pivotTableRunningTotalIN = "Running Total In...", n2.pivotTablePercentRunningTotalIn = "% Running Total In...", n2.pivotTableRankSmallestToLargest = "Rank Smallest to Largest...", n2.pivotTableRankLargestToSmallest = "Rank Largest to Smallest...", n2.pivotTableIndex = "Index", n2.pivotTableShowDetails = "Show Details", n2.pivotTableGroup = "Group...", n2.pivotTableUnGroup = "Ungroup...", n2.pivotTableExpandOrCollapse = "Expand/Collapse", n2.pivotTableFilter = "Filter", n2.pivotTableSubtotal_ = "Subtotal {0}", n2.pivotTableHideFieldList = "Hide Field List", n2.pivotTableFieldSettings = "Field Settings...", n2.pivotTableClearFilterFrom_ = "Clear Filter From {0}", n2.pivotTableKeepOnlySelectedItems = "Keep Only Selected Items", n2.pivotTableHideSelectedItems = "Hide Selected Items", n2.pivotTableTop10 = "Top 10...", n2.pivotTableLabelFilters = "Label Filters...", n2.pivotTableLabelFilters_Date = "Date Filters...", n2.pivotTableValueFilters = "Value Filters...", n2.pivotTableExpand = "Expand", n2.pivotTableCollapse = "Collapse", n2.pivotTableExpandEntireField = "Expand Entire Field", n2.pivotTableCollapseEntireField = "Collapse Entire Field", n2.pivotTableCollapseTo_ = "Collapse to {0}", n2.pivotTableExpandTo_ = "Expand to {0}", n2.pivotTableMove_ToBeginning = "Move {0} to Beginning", n2.pivotTableMove_Up = "Move {0} Up", n2.pivotTableMove_Down = "Move {0} Down", n2.pivotTableMove_ToEnd = "Move {0} to end", n2.pivotTableMove_ToLeft = "Move {0} to left", n2.pivotTableMove_ToRight = "Move {0} to Right", n2.pivotTableMove_ToColumns = "Move {0} to columns", n2.sigmaValue = "∑ Values", n2.sigmaValueTemp = "Values", n2.pivotTableSortAscend = "Sort Smallest to Largest", n2.pivotTableSortDescend = "Sort Largest to Smallest", n2.pivotTableSortMoreOptions = "More Sort Options...", n2.pinRows = "Pin/Unpin Rows", n2.pinColumns = "Pin/Unpin Columns", n2.defineColumn = "Define Column", n2.modifyColumn = "Modify Column", n2.removeColumn = "Remove Column", n2.setPrimaryKey = "Set/Unset Primary Key", n2.promote = "Promote", n2.demote = "Demote", n2.moveUp = "Move Up", n2.moveDown = "Move Down", n2.addAfter = "Add After", n2.addBefore = "Add Before", n2.addAbove = "Add Above", n2.addBelow = "Add Below", n2.expandAllLevels = "Expand All Levels", n2.collapseAllLevels = "Collapse All Levels", n2.expandLevel1 = "Expand to Level 1", n2.expandLevel2 = "Expand to Level 2", n2.expandLevel3 = "Expand to Level 3", n2.expandLevel4 = "Expand to Level 4", n2.expandLevel5 = "Expand to Level 5", n2.expandLevel6 = "Expand to Level 6", n2.expandLevel7 = "Expand to Level 7", n2.expandLevel8 = "Expand to Level 8", n2.expandLevel9 = "Expand to Level 9", n2.paste = "Paste", n2.reportSheetAddRecord = "Add Record", n2.reportSheetDeleteRecord = "Delete Record", n2.reportSheetSubmit = "Submit", n2.reportSheetResetCellValue = "Reset Current Cell", n2.reportSheetCollapseAll = "Collapse All", n2.reportSheetExpandAll = "Expand All", n2.scrollToTasks = "Scroll To Task", n2.insertTasks = "Insert Task", n2.deleteTasks = "Delete Task", n2.indentTasks = "Indent Task", n2.outdentTasks = "Outdent Task", n2.manuallySchedule = "Manually Schedule", n2.autoSchedule = "Auto Schedule", n2.hideColumn = "Hide Column", n2.unhideColumn = "Unhide Column", n2.activeSheet = "Active Sheet:", n2.searchWorkSheetBoxPlaceholder = "Search";
      }, "./dist/plugins/contextMenu/menu-view.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt;
        function Lt(t3) {
          if (t3 instanceof Object) return true;
        }
        function Ft(t3, n3, e3, i3, r2) {
          var o2, a2, u2;
          "object" == typeof n3 && (f(n3.pivotTableName) && (n3.pivotTableName = t3.name()), f(n3.pivotTableCellInfo) && (n3.pivotTableCellInfo = t3.getPivotInfoImp(e3, i3, false, false, true)), "gc.spread.sortAscend" !== r2 && "gc.spread.sortDescend" !== r2 || !t3.isSortValueField(n3.pivotTableCellInfo) || (o2 = "gc.spread.sortAscend" === r2 ? 0 : 1, (u2 = (a2 = t3.dh).Q.map((function(t4) {
            return t4.Zc;
          }))).sort((function(t4, n4) {
            var e4 = t4.localeCompare(n4);
            return 1 === o2 ? -1 * e4 : e4;
          })), n3.sortValueInfo = { sortedFieldNames: u2, sortType: o2 }));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.MenuView = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/contextMenu/context-menu.ns.js"), a = r.GC$, u = r.mt.En, s = r.mt.gi, c = i2.Common.lt, f = c.ht, l = c.Eh, h = void 0, d = null, v = document, p = window, g = Math.max, m = Math.min, b = Math.floor, y = new i2.Common.ResourceManager(o.SR, "ContextMenu"), w = y.getResource.bind(y), M = "mouseenter", C = "mouseleave", S = "click", T = "mousewheel", x = "input", A = "DOMMouseScroll", I = "gc.command.executed", k = ".", N = "gc-ui-contextmenu", j = ".gcScrollWrapper", D = "-", _ = "container", E = "disable-hover", R = "text", L = "icon", F = "menuitem", B = "nonselective-menuitem", P = "menuitem-content", G = "sup-container", U = "separator", H = "sup-indicator", V = "subitems-container", z = "group-container", Y = "title", Z = "group-header", W = "groupitems-container", Q = "groupitem", K = "nonexecutable", J = "executable", X = "disable", q = "gcUIElement", $ = "gcContextMenu", tt = "gc-statusbar-contextmenu", nt = " ui-widget", et = " ui-state-hover", it = " ui-icon ui-icon-triangle-1-e", rt = "DIV", ot = "SPAN", at = "keydown.ctx.gcSheet", ut = "none", st = "inline-block", ct = "visible", ft = "hidden", lt = "block", ht = "none", dt = "overflow", vt = "split-item-container", pt = "splitMenu-content", gt = 65, mt = "overflow-y", bt = "auto", wt = (yt = function(t3) {
          return N + D + t3;
        })(O = "hover"), Mt = yt(F), Ct = yt(B), St = yt(P), Tt = yt(J), xt = yt(G), At = yt(V), It = tt + D + "check", kt = tt + D + "check-container", Nt = tt + D + "content", jt = tt + D + "status", Dt = 12, _t = "splitSubMenu", (function(t3) {
          t3[t3.up = 0] = "up", t3[t3.down = 1] = "down";
        })(Ot || (Ot = {})), Et = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.Ti = t4, i3.Jq = n3, i3.Xq(t4, n3, e3);
          }
          return t3.prototype.Xq = function(t4, n3, e3) {
            var i3 = this, r2 = i3.qq = a(document.createElement("DIV")), o2 = i3.$q = document.createElement("DIV"), u2 = i3.t$ = document.createElement("DIV");
            r2[0].className = "gc-ui-contextmenu-scroll-wrapper", o2.className = "gc-ui-contextmenu-scroll-indicator", o2.innerText = String.fromCharCode(708), u2.className = "gc-ui-contextmenu-scroll-indicator", u2.innerText = String.fromCharCode(709), t4.append(a(o2)), t4.append(r2), r2.append(n3), r2.height(e3.height - 12), t4.append(a(u2)), i3.n$ = r2.height() + Dt, i3.e$ = i3.i$(n3), i3.NK(Ot.up), i3.aY();
          }, t3.prototype.i$ = function(t4) {
            var n3 = 0;
            return t4[0].childNodes.forEach((function(t5) {
              n3 += t5.offsetHeight;
            })), n3;
          }, t3.prototype.r$ = function() {
            return this.qq;
          }, t3.prototype.o$ = function(t4) {
            var n3 = this;
            if (f(t4)) return n3.qq.scrollTop();
            n3.qq.scrollTop(t4), n3.a$(t4);
          }, t3.prototype.hU = function(t4) {
            var n3, e3 = this.Jq[0], i3 = e3.childNodes, r2 = 0;
            for (n3 = 0; n3 < t4; n3++) r2 += i3[n3].offsetHeight;
            this.o$(r2 - Dt);
          }, t3.prototype.aY = function() {
            var t4 = this, n3 = t4.$q, e3 = t4.t$, i3 = t4.qq, r2 = t4.n$, o2 = t4.e$;
            a(n3).bind(M + j, (function() {
              t4.u$ = p.setInterval((function() {
                var n4 = i3.scrollTop(), e4 = n4 <= 10 ? 0 : n4 - 10;
                t4.o$(b(e4));
              }), 100);
            })), a(n3).bind(C + j, (function() {
              p.clearInterval(t4.u$);
            })), a(n3).bind(S + j, (function() {
              t4.o$(0);
            })), a(e3).bind(M + j, (function() {
              t4.u$ = p.setInterval((function() {
                var n4 = i3.scrollTop(), e4 = n4 >= o2 - r2 - 10 ? o2 - r2 + 2 : n4 + 10;
                t4.o$(e4);
              }), 100);
            })), a(e3).bind(C + j, (function() {
              p.clearInterval(t4.u$);
            })), a(e3).bind(S + j, (function() {
              t4.o$(o2 - r2);
            })), i3.bind(T + j, (function(n4) {
              t4.a$(i3.scrollTop() + (n4.deltaY || -n4.wheelDelta || 0));
            })).bind(A + j, (function(n4) {
              t4.a$(i3.scrollTop() + (n4.deltaY || -n4.wheelDelta || 0));
            }));
          }, t3.prototype.KX = function() {
            var t4 = this, n3 = t4.$q, e3 = t4.t$, i3 = t4.qq;
            a(n3).unbind(j), a(e3).unbind(j), i3.unbind(j);
          }, t3.prototype.eG = function() {
            var t4 = this;
            t4.KX(), t4.Ti.append(t4.Jq), a(t4.qq).remove(), a(t4.$q).remove(), a(t4.t$).remove(), t4.Ti = h, t4.Jq = h, t4.qq = h, t4.$q = h, t4.t$ = h;
          }, t3.prototype.$c = function(t4) {
            switch (t4) {
              case Ot.up:
                this.$q.style.display = lt;
                break;
              case Ot.down:
                this.t$.style.display = lt;
            }
          }, t3.prototype.NK = function(t4) {
            switch (t4) {
              case Ot.up:
                this.$q.style.display = ht;
                break;
              case Ot.down:
                this.t$.style.display = ht;
            }
          }, t3.prototype.a$ = function(t4) {
            var n3 = this, e3 = n3.n$, i3 = n3.e$;
            t4 < 1 ? (n3.$c(Ot.down), n3.NK(Ot.up), n3.s$(true)) : t4 > i3 - e3 - 1 ? (n3.$c(Ot.up), n3.NK(Ot.down), n3.s$(false)) : (n3.$c(Ot.up), n3.$c(Ot.down), n3.s$(true));
          }, t3.prototype.s$ = function(t4) {
            var n3 = this, e3 = n3.qq, i3 = n3.n$;
            t4 && (i3 -= Dt), e3.height(i3);
          }, t3;
        })(), Rt = (function() {
          function t3() {
            var t4 = this;
            this.JUe = function(n3) {
              var e3, i3, r2, o2, a2, u2 = t4, s2 = null === (e3 = n3.target.value) || void 0 === e3 ? void 0 : e3.toString().toUpperCase();
              u2.XKt = s2, o2 = u2.Z$(false), s2 ? (a2 = [], o2.forEach((function(t5) {
                var n4 = (t5.menuItemData.title || t5.menuItemData.text || "").toUpperCase(), e4 = n4.indexOf(s2) >= 0, i4 = e4 ? "block" : "none";
                t5.host.css("display", i4), t5.host.removeClass("gc-ui-contextmenu-hover ui-state-hover"), e4 && a2.push(t5);
              })), null === (r2 = null === (i3 = a2[0]) || void 0 === i3 ? void 0 : i3.host) || void 0 === r2 || r2.addClass("gc-ui-contextmenu-hover ui-state-hover"), u2.JX = a2[0], u2.Qro(a2, 0)) : (o2.forEach((function(t5) {
                t5.host.css("display", "block"), t5.host.removeClass("gc-ui-contextmenu-hover ui-state-hover");
              })), u2.Qro(o2, u2.$G), u2.JX = d);
            };
          }
          return t3.prototype.ZX = function(t4, n3, e3, i3) {
            var r2 = this;
            r2.Ti = a(t4), r2.c$ = a.extend(true, [], n3), r2.Qy = e3.commandManager(), r2.DJ = e3, r2.zX = i3, r2.f$ = [], r2.l$ = {}, r2.h$ = [], r2.d$ = {}, r2.JX = d, r2.v$();
          }, t3.prototype.m$ = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = this, k2 = I2.g$, N2 = I2.Ti, j2 = I2.hostInfo;
            k2[0].style.maxHeight = "", t4 = parseInt(N2.css("left"), 10), n3 = parseInt(N2.css("top"), 10), e3 = N2.width(), i3 = N2.height(), (r2 = I2.U2(i3) && !I2.searchable()) && (o2 = I2.Wq = I2.p$(N2, k2), i3 = I2.b$()), "number" == typeof I2.Kq && (r2 ? ((a2 = o2.r$())[0].style.maxHeight = I2.Kq + "px", k2.css(dt, d)) : (k2[0].style.maxHeight = I2.Kq + "px", k2.css(dt, ft), i3 = k2.height() + 2, I2.searchable() && (i3 = I2.eao(), k2[0].style.maxHeight = i3 + "px", k2[0].style.height = i3 + "px", i3 += gt, k2.css(mt, bt)))), s2 = (u2 = I2.y$()).windowTop, c2 = u2.windowLeft, l2 = u2.windowWidth, h2 = u2.windowHeight, f(j2) ? (y2 = (b2 = I2.w$()).contextTop, w2 = b2.contextLeft, M2 = b2.contextWidth, C2 = b2.contextHeight, S2 = y2 + n3 - Math.max(s2, y2), T2 = m(s2 + h2, y2 + C2) - (y2 + n3), x2 = s2 + h2 - y2 + n3, A2 = m(c2 + l2, w2 + M2) - (w2 + t4), t4 + e3 > M2 ? (t4 = t4 - e3 > 0 ? t4 - e3 : t4, N2.css("left", t4)) : e3 > A2 && N2.css("left", t4 - e3), i3 > T2 && (i3 <= S2 ? N2.css("top", n3 - i3) : S2 + T2 >= i3 ? N2.css("top", n3 + T2 - i3) : x2 < i3 ? N2.css("top", s2 + h2 - y2 - i3) : N2.css("top", y2 > s2 ? 0 : s2 - y2))) : (j2.left + t4 + e3 > c2 + l2 && (t4 = t4 - e3 > 0 ? t4 - e3 : t4, N2.css("left", t4)), p2 = ((v2 = I2.DJ && I2.DJ.getHost()) && v2.getBoundingClientRect().top) < j2.top, g2 = j2.top, p2 ? g2 + n3 >= i3 ? N2.css("top", n3 - i3) : N2.css("top", -g2) : h2 - g2 - n3 < i3 && N2.css("top", h2 - g2 - i3));
          }, t3.prototype.y$ = function() {
            return { windowTop: p.scrollY || p.pageYOffset, windowLeft: p.scrollX || p.pageXOffset, windowWidth: p.clientWidth || p.innerWidth, windowHeight: p.clientHeight || p.innerHeight };
          }, t3.prototype.w$ = function() {
            var t4, n3, e3, i3, r2, o2, u2 = this;
            return u2.DJ && (t4 = (o2 = (r2 = a(u2.DJ.getHost())).offset()).top, n3 = o2.left, e3 = r2.width(), i3 = r2.height()), { contextTop: t4, contextLeft: n3, contextWidth: e3, contextHeight: i3 };
          }, t3.prototype.p$ = function(t4, n3) {
            return new Et(t4, n3, { height: this.b$() });
          }, t3.prototype.M$ = function() {
            var t4 = this, n3 = t4.g$;
            "number" == typeof t4.Kq && (n3[0].style.maxHeight = t4.Kq + "px", n3.css(dt, ft));
          }, t3.prototype.Xro = function() {
            var t4;
            null === (t4 = this.qro) || void 0 === t4 || t4.focus();
          }, t3.prototype.selectedIndex = function(t4) {
            var n3 = this;
            if (f(t4)) return n3.$G;
            n3.$G = t4;
          }, t3.prototype.searchable = function(t4) {
            var n3 = this;
            if (f(t4)) return n3.Kro && n3.w$().contextHeight >= 2 * gt;
            n3.Kro = t4;
          }, t3.prototype.$ro = function(t4) {
            var n3, e3, i3 = this;
            i3.searchable() && ((n3 = i3.qro = document.createElement("input")).className = "gc-ui-contextmenu-search-box", n3.placeholder = w().searchWorkSheetBoxPlaceholder, n3.focus(), a(n3).attr("id", "search-box").attr("autocomplete", "off"), t4.prepend(n3), (e3 = document.createElement("label")).textContent = w().activeSheet, e3.className = "gc-ui-contextmenu-search-label", a(e3).attr("id", "lb-search-box").attr("for", "search-box"), t4.prepend(e3));
          }, t3.prototype.Qro = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = t4.length, c2 = t4[n3];
            c2 && (o2 = (r2 = (i3 = (e3 = u2.g$).scrollTop()) + c2.host.position().top - gt) + c2.host.height() + 2, a2 = e3.height(), r2 < i3 ? 0 === n3 ? e3.scrollTop(0) : e3.scrollTop(r2) : o2 > i3 + a2 && (n3 === s2 - 1 ? e3.scrollTop(a2) : e3.scrollTop(r2), e3.scrollTop(o2 - a2)));
          }, t3.prototype.tao = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Z$(t4), o2 = null === (e3 = null === (n3 = i3.qro) || void 0 === n3 ? void 0 : n3.value) || void 0 === e3 ? void 0 : e3.toUpperCase();
            return o2 ? r2.filter((function(t5) {
              var n4;
              return (t5.menuItemData.title || t5.menuItemData.text || "").toUpperCase().indexOf(o2) >= 0;
            })) : r2;
          }, t3.prototype.eao = function() {
            var t4 = this, n3 = t4.l$.menuView[0].host.outerHeight(), e3 = Math.min(t4.Kq, t4.w$().contextHeight - gt), i3 = Math.min(t4.l$.menuView.length, Math.floor(e3 / n3));
            return i3 * n3;
          }, t3.prototype.v$ = function() {
            var t4, n3, e3, i3, r2, o2 = this, u2 = o2.c$;
            f(u2) || !Lt(u2) || u2.length < 1 || (u2 instanceof Array || (u2 = [u2]), t4 = "menuView", n3 = o2.S$(t4, u2), o2.l$.menuView = n3, e3 = o2.A$(o2.c$), o2.g$ = e3, o2.M$(), o2.searchable() ? ((i3 = o2.nao = a(document.createElement("div"))).addClass("gc-ui-search-contextmenu-container"), o2.Ti.append(i3), o2.$ro(i3), e3.addClass("gc-ui-search-contextmenu-items-container"), (r2 = u2.some((function(t5) {
              return t5.iconClass;
            }))) || e3.addClass("gc-ui-none-icon-contextmenu-container"), e3.appendTo(i3)) : (e3.removeClass("gc-ui-search-contextmenu-items-container gc-ui-none-icon-contextmenu-container"), e3.appendTo(o2.Ti)), o2.n3e(n3), o2.m$(), o2.aY(), o2.h$.push({ name: t4, menuView: e3 }), o2.searchable() && (o2.Xro(), o2.Qro(n3, o2.$G)));
          }, t3.prototype.n3e = function(t4) {
            t4.forEach((function(t5) {
              t5.menuItemData.type === _t && (t5.host = t5.host.find("." + yt(pt)));
            }));
          }, t3.prototype.S$ = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = n3.length, u2 = [];
            for (e3 = 0; e3 < a2; e3++) i3 = n3[e3], f(i3) || "separator" === i3.type || (i3.type === _t ? (r2 = this.convertSplitSubMenuIconData(i3), o2.l$[r2.name] = o2.S$(r2.name, r2.subMenu), o2.l$[r2.name].push(o2.x$(t4, r2))) : i3.subMenu ? o2.l$[i3.name] = o2.S$(i3.name, i3.subMenu) : "groupHeader" === i3.type && (o2.I$(i3, n3), o2.l$[i3.name] = o2.S$(t4, i3.groups)), u2.push(o2.x$(t4, i3)));
            return u2;
          }, t3.prototype.convertSplitSubMenuIconData = function(t4) {
            var n3 = { name: t4.name + "-sub", subMenu: t4.subMenu, type: "splitSubMenuIcon" };
            return t4.subMenuIcon = n3, t4.subMenu = void 0, n3;
          }, t3.prototype.x$ = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            if (e3 = "groupHeader" === n3.type || n3.type === _t ? o2.N$() : o2.k$(), i3 = o2.createMenuItemElement(n3), !f(i3)) return i3 instanceof HTMLElement && (i3 = a(i3)), f(n3.itemClass) || e3.addClass(n3.itemClass), f(n3.title) || e3.attr("title", n3.title), i3.appendTo(e3), r2 = { name: n3.name, host: e3, menuItemData: n3, menuName: t4 }, this.SpreadJSDesignerAutoTest && this.SpreadJSDesignerAutoTest(r2.host, r2.menuItemData), o2.f$.push(r2), r2;
          }, t3.prototype.k$ = function() {
            var t4 = a(u(rt));
            return t4.addClass(Mt), t4;
          }, t3.prototype.N$ = function() {
            var t4 = a(u(rt));
            return t4.addClass(Ct), t4;
          }, t3.prototype.createMenuItemElement = function(t4) {
            var n3 = this;
            switch (t4.type) {
              case "groupHeader":
                return n3.D$(t4);
              case "groupItem":
                return n3._$(t4);
              case "statusBar":
                return n3.E$(t4);
              case _t:
                return n3.e3e(t4);
              case "splitSubMenuIcon":
                return this.i3e(t4);
            }
            return t4.subMenu ? n3.j$(t4) : n3.O$(t4);
          }, t3.prototype.O$ = function(t4) {
            var n3, e3, r2 = a(u(rt)).addClass(St);
            return t4.command ? t4.disable ? r2.addClass(yt(X)) : r2.addClass(Tt) : r2.addClass(yt(K)), n3 = a(u(ot)).addClass(yt(L)), t4.iconClass && n3.addClass(t4.iconClass), n3.appendTo(r2), t4.text && ((e3 = a(u(ot)).addClass(yt(R)))[0].innerHTML = i2.Common.zf.j0(t4.text), e3.appendTo(r2)), r2;
          }, t3.prototype.B$ = function(t4) {
            return a(u(rt)).addClass(yt(U));
          }, t3.prototype.D$ = function(t4) {
            var n3, e3, i3, r2, o2, s2, c2, f2 = this, l2 = a(u(rt)).addClass(yt(z));
            if (t4.groups.length <= 0) return l2;
            for ((n3 = f2.O$(t4)).addClass(yt(Z)), n3.appendTo(l2), e3 = a(u(rt)).addClass(yt(W)), r2 = (i3 = t4.groups).length, o2 = 0; o2 < r2; o2++) (c2 = (s2 = f2.L$("name", i3[o2].name)).host).addClass(yt(Q)), c2.appendTo(e3);
            return e3.appendTo(l2), l2;
          }, t3.prototype._$ = function(t4) {
            var n3 = this, e3 = n3.O$(t4), i3 = e3.find(k + yt(R));
            return i3.remove(), e3.attr(Y, t4.text), e3;
          }, t3.prototype.E$ = function(t4) {
            var n3, e3, i3, r2 = u("div"), o2 = a(r2).addClass(St), s2 = t4.visible, c2 = t4.menuContent, f2 = t4.status, l2 = u("div");
            return a(l2).addClass(It), n3 = u("div"), a(n3).addClass(kt), n3.appendChild(l2), n3.style.visibility = s2 ? ct : ft, (e3 = u("div")).innerText = c2, a(e3).addClass(Nt), i3 = u("div"), a(i3).addClass(jt), f2 ? (i3.innerText = f2, i3.style.display = st) : i3.style.display = ut, r2.appendChild(n3), r2.appendChild(e3), r2.appendChild(i3), o2;
          }, t3.prototype.j$ = function(t4, n3) {
            var e3, i3, r2, o2 = this, s2 = a(u(rt)).addClass(xt), c2 = o2.O$(t4);
            return t4.subMenu.length > 0 && ((e3 = a(u(ot)).addClass(yt(H + it))).appendTo(c2), i3 = o2.A$(t4.subMenu), r2 = a(u(rt)).addClass(At), n3 && r2.addClass(n3), i3.appendTo(r2), r2.appendTo(o2.Ti), o2.d$[t4.name] = r2), c2.appendTo(s2), s2;
          }, t3.prototype.i3e = function(t4) {
            var n3 = this, e3 = n3.j$(t4, yt("split-sub-menu"));
            return e3.addClass(yt("splitMenu-icon")), e3.find("." + yt(L)).remove(), e3;
          }, t3.prototype.e3e = function(t4) {
            var n3, e3, i3 = this, r2 = a(u(rt)).addClass(yt("splitMenu-container"));
            return t4.subMenuIcon ? ((n3 = i3.O$(t4)).addClass(yt(pt)).addClass(Mt), n3.appendTo(r2), (e3 = i3.L$("name", t4.subMenuIcon.name)).host.appendTo(r2), r2) : r2;
          }, t3.prototype.A$ = function(t4) {
            for (var n3, e3, i3, r2, o2 = this, s2 = a(u(rt)).addClass(yt(_ + nt)), c2 = t4.length, l2 = 0; l2 < c2; l2++) f(t4[l2]) || (n3 = t4[l2].name, f(n3) ? "separator" === t4[l2].type && (i3 = o2.N$(), (r2 = o2.B$(t4[l2])).appendTo(i3), i3.appendTo(s2)) : (e3 = o2.L$("name", n3), f(e3) || e3.host.appendTo(s2)));
            return s2;
          }, t3.prototype.L$ = function(t4, n3) {
            for (var e3 = this, i3 = e3.f$, r2 = i3.length, o2 = 0; o2 < r2; o2++) if (n3 instanceof a ? n3[0] === i3[o2][t4][0] : i3[o2][t4] === n3) return i3[o2];
          }, t3.prototype.I$ = function(t4, n3) {
            var e3, i3, r2;
            for (t4.groups = [], e3 = n3.length, i3 = 0; i3 < e3; i3++) (r2 = n3[i3]) && r2.group && r2.group === t4.name && (r2.type = "groupItem", t4.groups.push(r2), n3.splice(i3, 1), i3--);
          }, t3.prototype.aY = function() {
            var t4 = this;
            a(k + Mt).bind(M, (function() {
              var n3, e3, i3, r2 = a(this), o2 = t4.L$("host", r2);
              for (t4.JX = o2, e3 = 0, i3 = (n3 = t4.h$).length; e3 < i3 && o2.menuName !== t4.h$[i3 - e3 - 1].name; e3++) t4.F$();
              t4.P$(), t4.G$(false);
            })).bind(C, (function() {
              t4.JX = d, t4.P$();
            })).bind(S, (function(n3) {
              var e3, i3 = a(this), r2 = t4.L$("host", i3);
              t4.JX = r2, (e3 = t4.U$(false, n3)) && t4.lQ();
            })), a(v).bind(at, (function(n3) {
              var e3, i3, r2, o2;
              if (!n3.target || a(n3.target).attr(q) !== $) {
                switch (n3.keyCode) {
                  case 27:
                    (e3 = t4.F$()) || t4.lQ();
                    break;
                  case 32:
                    if (document.activeElement === t4.qro) return;
                    (e3 = t4.U$(true, n3)) && t4.lQ();
                    break;
                  case 13:
                    (e3 = t4.U$(true, n3)) && t4.lQ();
                    break;
                  case 9:
                    n3.shiftKey ? t4.H$(false, true) : t4.H$(true, true);
                    break;
                  case 37:
                    i3 = t4.F$(), (r2 = t4.L$("name", i3)) && (t4.JX = r2), t4.JX && t4.JX.menuItemData.group && t4.H$(false, true);
                    break;
                  case 38:
                    t4.H$(false, false);
                    break;
                  case 39:
                    t4.JX && t4.JX.menuItemData.group && t4.H$(true, true), t4.G$(true);
                    break;
                  case 40:
                    t4.H$(true, false);
                }
                o2 = n3.target !== t4.qro || ["ArrowUp", "ArrowDown", "Enter"].includes(n3.key), n3.preventDefault ? o2 && n3.preventDefault() : o2 && (n3.returnValue = false);
              }
            })), a(t4.qro).bind(x, t4.JUe);
          }, t3.prototype.z$ = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, b2 = g2.w$(), y2 = b2.contextTop, w2 = b2.contextLeft, M2 = b2.contextWidth, C2 = b2.contextHeight, S2 = g2.y$(), T2 = S2.windowTop, x2 = S2.windowLeft, A2 = S2.windowWidth, I2 = S2.windowHeight, k2 = n3.parentRelatedLeft, N2 = n3.parentRelatedTop, j2 = n3.parentAbsoluteLeft, D2 = n3.parentWidth;
            return t4.css("top", N2 + 2), e3 = t4.width(), i3 = t4.height(), r2 = t4.position(), u2 = (o2 = t4.offset()).top, s2 = r2.top, j2 + D2 + e3 > m(x2 + A2, w2 + M2) ? t4.css("left", k2 - e3 - 1) : t4.css("left", k2 + D2), f2 = g2.V$(), (l2 = g2.U2(i3)) && (h2 = a(t4[0].firstChild), c2 = g2.p$(t4, h2), i3 = g2.b$()), "number" == typeof g2.Kq && (l2 ? (d2 = c2.r$())[0].style.maxHeight = g2.Kq + "px" : (t4[0].style.maxHeight = g2.Kq + "px", t4.css(dt, ft), i3 = t4.height())), i3 > (p2 = (v2 = m(T2 + I2, y2 + C2)) - u2) && (i3 > f2 ? t4.css("top", y2 > T2 ? 0 : T2 - y2) : t4.css("top", s2 + v2 - u2 - i3)), c2;
          }, t3.prototype.Y$ = function(t4) {
            return t4.command;
          }, t3.prototype.getCommandOptions = function(t4, n3, e3) {
          }, t3.prototype.U$ = function(t4, n3) {
            var e3, i3 = this, r2 = i3.JX;
            if (r2 && !r2.menuItemData.disable) {
              if (!(e3 = r2.menuItemData).subMenu) return i3.zA(n3), true;
              e3.subMenu.length > 0 && i3.G$(t4);
            }
          }, t3.prototype.zA = function(t4) {
            var n3, e3, i3, o2, a2, u2, s2, c2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = y2.JX, M2 = y2.Y$(w2.menuItemData);
            f(M2) || (i3 = y2.getCommandOptions(w2.menuItemData, w2.host[0], t4), o2 = y2.Qy, l(M2) ? M2(y2.DJ, i3) : (u2 = (a2 = (0, r.jf)(y2.DJ)) && a2.getActiveColumnIndex(), s2 = a2 && a2.getActiveRowIndex(), (null == a2 ? void 0 : a2.dataRanges) && (c2 = a2.dataRanges.getByPosition(s2, u2)) && (h2 = c2.convertContext({ sheet: a2, row: s2, col: u2, sheetArea: r.SheetArea.viewport })) && h2.sheet !== a2 && (a2 = h2.sheet, s2 = h2.row, u2 = h2.col), d2 = a2 && a2.tables && a2.tables.find(s2, u2), v2 = a2 && a2.pivotTables && a2.pivotTables.findPivotTable(s2, u2), p2 = w2.menuItemData.name, g2 = y2.DJ.contextMenu.$di, m2 = null === (n3 = y2.FYr(M2, y2.c$)) || void 0 === n3 ? void 0 : n3.workArea, f(v2) || g2 && !(null === (e3 = g2.worksheetHitInfo) || void 0 === e3 ? void 0 : e3.pivotTableInfo) || m2 && -1 === m2.indexOf("pivot") ? o2.execute({ cmd: M2, sheetName: a2 && a2.name(), selections: a2 && a2.getSelections(), activeRow: s2, activeCol: u2, commandOptions: i3, tableName: d2 ? d2.name() : "", itemName: p2 }) : (b2 = i3 || w2.menuItemData.commandOptions, f(b2) && (b2 = {}), Ft(v2, b2, s2, u2, p2), o2.execute({ cmd: M2, sheetName: a2.name(), selections: a2.getSelections(), activeRow: s2, activeCol: u2, commandOptions: b2, itemName: p2 }))));
          }, t3.prototype.FYr = function(t4, n3) {
            var e3, i3, r2, o2;
            if (n3) for (e3 = 0, i3 = n3; e3 < i3.length; e3++) {
              if ((r2 = i3[e3]).command === t4) return { command: true, workArea: r2.workArea };
              if (r2.subMenu && (null == (o2 = this.FYr(t4, r2.subMenu)) ? void 0 : o2.command)) return o2.workArea = o2.workArea || r2.workArea, o2;
              if (r2.groups && (null == (o2 = this.FYr(t4, r2.groups)) ? void 0 : o2.command)) return o2.workArea = o2.workArea || r2.workArea, o2;
            }
          }, t3.prototype.KX = function() {
            a(k + Mt).unbind(M).unbind(C).unbind(S), a(v).unbind(at), a(this.qro).unbind(x);
          }, t3.prototype.L0 = function() {
            var t4 = this;
            t4.Ti = d, t4.c$ = d, t4.Qy = d, t4.DJ = d, t4.zX = d, t4.f$ = d, t4.l$ = d, t4.JX = d, t4.g$ = d, t4.d$ = d, t4.Wq && (t4.Wq.eG(), t4.Wq = h), t4.KX(), t4.searchable() && t4.nao.remove(), t4.Kro = false;
          }, t3.prototype.F$ = function() {
            var t4, n3, e3, i3 = this;
            if (i3.h$.length > 1) return (e3 = (n3 = (t4 = i3.h$.pop()).menuView).find(k + Mt)).removeClass(wt + et), t4.menuView.hide(), t4.subMenuWrapper && (t4.subMenuWrapper.eG(), t4.subMenuWrapper = h), t4.name;
          }, t3.prototype.P$ = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Z$(true);
            if (r2) {
              for (t4 = 0, n3 = r2.length; t4 < n3; t4++) r2[t4].host.removeClass(wt + et);
              i3.JX && ((e3 = i3.JX.menuItemData).disable ? i3.JX.host.addClass(yt(E + et)) : i3.JX.host.addClass(wt + et));
            }
          }, t3.prototype.lQ = function() {
            var t4 = this;
            t4.zX.trigger(I), t4.L0();
          }, t3.prototype.H$ = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2 = this, v2 = d2.tao(n3);
            d2.JX && ((e3 = d2.W$(d2.JX, v2)) || (i3 = d2.l$[d2.JX.menuItemData.group]) && (r2 = i3[0], e3 = d2.W$(r2, v2))), t4 ? (e3 !== h && e3 !== v2.length - 1 || (e3 = -1), e3 = "number" == typeof e3 ? e3 + 1 : 0) : (e3 !== h && 0 !== e3 || (e3 = v2.length), e3 = "number" == typeof e3 ? e3 - 1 : 0), d2.JX = v2[e3], d2.P$(), o2 = d2.h$[d2.h$.length - 1], a2 = v2.length, (u2 = o2 && ("menuView" === o2.name ? d2.Wq : o2.subMenuWrapper)) ? (f2 = (c2 = (s2 = u2.o$()) + d2.JX.host.position().top) + v2[e3].host.height() + 2, l2 = u2.r$().height(), c2 < s2 + Dt ? 0 === e3 ? u2.o$(0) : u2.o$(c2 - Dt) : f2 > s2 + l2 && (e3 === a2 - 1 ? u2.o$(u2.r$().height()) : u2.o$(c2 - Dt), u2.o$(f2 - l2))) : d2.searchable() && d2.Qro(v2, e3);
          }, t3.prototype.Z$ = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.h$[r2.h$.length - 1].name, a2 = r2.l$[o2], u2 = [];
            for (n3 = 0; n3 < a2.length; n3++) if ("groupHeader" !== a2[n3].menuItemData.type) u2.push(a2[n3]);
            else if (e3 = r2.l$[a2[n3].menuItemData.name], t4) for (i3 = 0; i3 < e3.length; i3++) u2.push(e3[i3]);
            else u2.push(e3[0]);
            return u2;
          }, t3.prototype.W$ = function(t4, n3) {
            var e3, i3 = n3.length;
            for (e3 = 0; e3 < i3; e3++) if (t4.name === n3[e3].name) return e3;
          }, t3.prototype.G$ = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, f2 = this, l2 = f2.JX;
            l2 && (n3 = l2.menuItemData).subMenu && n3.subMenu.length > 0 && (n3.name !== f2.h$[f2.h$.length - 1].name && ((e3 = f2.d$[n3.name]).show(), i3 = l2.host, r2 = f2.d$[l2.menuName], o2 = i3.offset(), a2 = i3.position(), u2 = r2 && r2.position(), c2 = f2.z$(e3, { parentRelatedLeft: u2 ? u2.left : a2.left, parentRelatedTop: u2 ? a2.top + u2.top : a2.top, parentAbsoluteLeft: o2.left, parentWidth: r2 ? r2.width() : i3.width() + 3 }), e3.css("z-index", s(e3[0]) + 1 + f2.h$.length), f2.h$.push({ name: n3.name, menuView: e3, subMenuWrapper: c2 })), f2.JX = d, t4 && f2.H$(true, false));
          }, t3.prototype.b$ = function() {
            var t4 = this, n3 = t4.V$();
            return "number" == typeof t4.Kq && false !== t4.Qq && (n3 = m(n3, t4.Kq)), n3;
          }, t3.prototype.V$ = function() {
            var t4 = this, n3 = t4.hostInfo, e3 = t4.w$(), i3 = e3.contextTop, r2 = e3.contextHeight, o2 = t4.y$(), a2 = o2.windowTop, u2 = o2.windowHeight;
            return n3 ? u2 : m(a2 + u2, i3 + r2) - g(a2, i3);
          }, t3.prototype.U2 = function(t4) {
            var n3, e3 = this;
            return false !== e3.Qq && (t4 > (n3 = e3.b$()) || void 0);
          }, t3.prototype.scrollable = function(t4) {
            var n3 = this;
            if (f(t4)) return n3.Qq;
            n3.Qq = t4;
          }, t3.prototype.maxHeight = function(t4) {
            var n3 = this;
            if (f(t4)) return n3.Kq;
            n3.Kq = t4, t4 < 0 && (n3.Kq = void 0);
          }, t3.prototype.getHost = function() {
            return this.Ti;
          }, t3;
        })(), n2.MenuView = Rt;
      }, "./dist/plugins/contextMenu/menuItems/helpers/utils.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.VIEWPORT = n2.ICON_CLASS_PREFIX = void 0, n2.ICON_CLASS_PREFIX = "gc-spread-", n2.VIEWPORT = "viewport";
      }, "./dist/plugins/contextMenu/menuItems/index.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/contextMenu/menuItems/report-sheet.js"), n2);
      }, "./dist/plugins/contextMenu/menuItems/report-sheet.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        function a(t3) {
          return ["".concat(o, "AddRecord"), "".concat(o, "DeleteRecord"), "".concat(o, "Submit"), "".concat(o, "ResetCellValue"), "".concat(o, "CollapseAll"), "".concat(o, "ExpandAll")].map((function(n3) {
            return { text: t3[n3], name: n3, command: n3, iconClass: r.ICON_CLASS_PREFIX + n3, workArea: r.VIEWPORT };
          }));
        }
        function u(t3, n3, e3) {
          var r2, a2, u2, c, f, l, h, d, v, p, g, m, b, y, w, M, C = n3.getActiveSheetTab(), S = C && C._gi === i2.SheetType.reportSheet;
          if (S) {
            if (r2 = void 0, a2 = void 0, u2 = void 0, c = void 0, f = void 0, l = false, e3.worksheetHitInfo && (r2 = C.isExpandable(e3.worksheetHitInfo.row, e3.worksheetHitInfo.col), a2 = C.internalIsDirtyCell(e3.worksheetHitInfo.row, e3.worksheetHitInfo.col), f = C.internalCellIsProtected(e3.worksheetHitInfo.row, e3.worksheetHitInfo.col), u2 = (h = C.getTemplate().getDataEntrySetting()) && h.length, (c = -1 === e3.worksheetHitInfo.rowViewportIndex ? i2.SheetArea.colHeader : -1 === e3.worksheetHitInfo.colViewportIndex ? i2.SheetArea.rowHeader : i2.SheetArea.viewport) === i2.SheetArea.viewport && (l = s(C))), r2) {
              if (f) for (d = 0, v = t3; d < v.length; d++) (p = v[d]).name !== "".concat(o, "AddRecord") && p.name !== "".concat(o, "DeleteRecord") || (p.disable = true);
            } else t3 = t3.filter((function(t4) {
              return !t4.name || !["AddRecord", "DeleteRecord"].find((function(n4) {
                return t4.name === "".concat(o).concat(n4);
              }));
            }));
            return a2 || (g = t3.find((function(t4) {
              return t4.name === "".concat(o, "ResetCellValue");
            }))) && (g.disable = true), u2 && C.isDirty() || (m = t3.find((function(t4) {
              return t4.name === "".concat(o, "Submit");
            }))) && (m.disable = true), b = ["gc.spread.filter", "gc.spread.sort", "gc.spread.insertComment"], y = t3.filter((function(t4) {
              return !t4.name || !b.includes(t4.name);
            })), c !== i2.SheetArea.rowHeader && c !== i2.SheetArea.colHeader || (w = ["gc.spread.insertRows", "gc.spread.deleteRows", "gc.spread.hideRows", "gc.spread.unhideRows", "gc.spread.insertColumns", "gc.spread.deleteColumns", "gc.spread.hideColumns", "gc.spread.unhideColumns", "gc.spread.colHeaderinsertCopiedCells", "gc.spread.rowHeaderinsertCopiedCells", "gc.spread.colHeaderinsertCutCells", "gc.spread.rowHeaderinsertCutCells"], y = y.filter((function(t4) {
              return !t4.name || !w.includes(t4.name);
            }))), l || (M = ["".concat(o, "CollapseAll"), "".concat(o, "ExpandAll")], y = y.filter((function(t4) {
              return !M.includes(t4.name);
            }))), y;
          }
          return t3.filter((function(t4) {
            return !t4.name || 0 !== t4.name.indexOf(o);
          }));
        }
        function s(t3) {
          var n3 = t3.getSheet().getSelections();
          return !(!n3 || 0 === n3.length) && n3.some((function(n4) {
            var e3, i3, r2, o2 = n4.row, a2 = n4.rowCount, u2 = n4.col, s2 = n4.colCount, c = o2 + a2 - 1, f = u2 + s2 - 1;
            for (e3 = o2; e3 <= c; e3++) for (i3 = u2; i3 <= f; i3++) if ((!(r2 = t3.getSpan(e3, i3)) || r2.row === e3 && r2.col === i3) && t3.internalCanCollapse(e3, i3)) return true;
            return false;
          }));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.filterReportSheetMenuItems = n2.createReportSheetMenuItems = void 0, i2 = e2("Core"), r = e2("./dist/plugins/contextMenu/menuItems/helpers/utils.js"), o = "reportSheet", n2.createReportSheetMenuItems = a, n2.filterReportSheetMenuItems = u;
      }, "./dist/plugins/data/binding.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w;
        function M(t3) {
          var n3 = t3 && t3.H3;
          n3 && n3.Q$() && i2.Worksheet.et(t3, "resetBinding", { sheet: t3 });
        }
        function C(t3, n3) {
          var e3 = t3 && t3.H3;
          return !(!e3 || !e3.Q$(n3)) && (t3.clearPendingChanges(), i2.Worksheet.et(t3, "initBinding", { sheet: t3, data: n3 }), true);
        }
        function S(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, h2, d2, g2, m2 = t3, b2 = m2._dataSource, y2 = { value: f, hasBinding: false };
          if (!b2) return y2;
          if (i3 = m2.Mf, (r2 = m2.K$) === p) {
            if ((u2 = i3 ? i3.getBindingPath(n3, e3) : f) && "object" != typeof u2) return { value: b2.getValue(u2), hasBinding: true };
          } else {
            if (n3 < 0 || t3.getRowCount() <= n3) return y2;
            if (s2 = i3 ? i3.getColumnCount() : t3.getColumnCount(), e3 < 0 || s2 <= e3) return y2;
            if (i3 ? (m2.J$ || m2.IBe(i3.Ut.EE(false, 3)), (o2 = m2.J$[e3]) && (a2 = o2.name)) : t3.Pq && (m2.J$ ? (o2 = m2.J$[e3]) && (a2 = o2.dataField) : a2 = t3.Pq[e3]), r2) return c2 = v[r2], d2 = k(h2 = o2 && o2.value) ? h2 : f, g2 = i3 && i3.onItemGotten ? i3.onItemGotten.bind(i3) : l, c2.getValue(b2, d2, a2, n3, e3, g2);
          }
          return y2;
        }
        function T(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, h2, d2, g2, m2 = t3, b2 = m2._dataSource, y2 = false;
          if (!b2) return y2;
          if (r2 = m2.Mf, (o2 = m2.K$) === p) (s2 = r2 ? r2.getBindingPath(n3, e3) : f) && "object" != typeof s2 && (b2.setValue(s2, i3), y2 = true);
          else {
            if (n3 < 0 || t3.getRowCount() <= n3) return y2;
            if (c2 = r2 ? r2.getColumnCount() : t3.getColumnCount(), e3 < 0 || c2 <= e3) return y2;
            r2 ? (m2.J$ || m2.IBe(r2.Ut.EE(false, 3)), (a2 = m2.J$[e3]) && (u2 = a2.name)) : t3.Pq && (m2.J$ ? (a2 = m2.J$[e3]) && (u2 = a2.dataField) : u2 = t3.Pq[e3]), o2 && (h2 = v[o2], g2 = k(d2 = a2 && a2.value) ? d2 : f, y2 = h2.setValue(b2, g2, u2, n3, e3, i3, l));
          }
          return y2;
        }
        function x(t3) {
          var n3 = f;
          return t3 && (I(t3) ? n3 = p : o.each(v, (function(e3, i3) {
            if (i3.isDataSource(t3)) return n3 = e3, false;
          }))), n3;
        }
        function A(t3, n3) {
          return t3 && n3 && n3 !== p ? v[n3].getProperties(t3) : f;
        }
        function I(t3) {
          return b && t3 instanceof b;
        }
        function k(t3) {
          return "function" == typeof t3;
        }
        function N(t3, n3, e3) {
          var i3, r2, o2, a2, u2;
          if (t3 && n3) if (i3 = t3[n3], c(i3)) for (o2 = (r2 = n3.split(".")).length, a2 = 0; a2 < o2 && (u2 = r2[a2], t3); a2++) a2 === o2 - 1 ? k(t3[u2]) ? t3[u2](e3) : t3[u2] = e3 : k(t3[u2]) ? (c(t3[u2]()) && t3[u2]({}), t3 = t3[u2]()) : (c(t3[u2]) && (t3[u2] = {}), t3 = t3[u2]);
          else k(i3) ? t3[n3](e3) : t3[n3] = e3;
        }
        function j(t3, n3, e3) {
          var i3, r2, o2, a2, u2;
          if (!t3 || !n3) return f;
          if (i3 = t3[n3], !c(i3)) return k(i3) ? i3() : i3;
          r2 = null, e3 ? (r2 = e3[n3]) || (r2 = n3.split("."), e3[n3] = r2) : r2 = n3.split("."), o2 = r2.length, a2 = 0;
          do {
            if (t3 = k(t3[u2 = r2[a2]]) ? t3[u2]() : t3[u2], c(t3)) return f;
            ++a2;
          } while (a2 < o2);
          return t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.X$ = n2.q$ = n2.setValueByPath = n2.$$ = n2.CellBindingSource = void 0, i2 = e2("Core"), r = e2("Core"), o = r.GC$, a = e2("Common"), u = e2("./dist/plugins/data/data.ns.js"), s = o.isNumeric, c = a.Common.lt.ht, f = null, l = void 0, h = "string", n2.X$ = d, v = n2.X$ = d = {}, p = "cellBinding", g = new a.Common.ResourceManager(u.SR, "Bindings"), m = g.getResource.bind(g), i2.Workbook.ch("binding", { onCultureChanged: function() {
          m();
        } }), b = (function() {
          function t3(t4) {
            this.rT = t4;
          }
          return t3.prototype.setValue = function(t4, n3) {
            N(this.rT, t4, n3);
          }, t3.prototype.getValue = function(t4) {
            return j(this.rT, t4);
          }, t3.prototype.getSource = function() {
            return this.rT;
          }, t3;
        })(), n2.CellBindingSource = b, y = (function() {
          function t3(t4) {
            this.Hc(t4);
          }
          return t3.prototype.bind = function(t4, n3) {
            var e3, i3, r2, a2, u2 = this, s2 = u2.Mf, c2 = u2._dataSource;
            if (n3 && u2.ttt(n3, { type: "bind", oldDataSource: c2 }), c2 && (c2.ntt && (c2.subscribe = c2.ntt, delete c2.ett, delete c2.ntt), k(c2.dispose) && c2.dispose()), u2.itt(u2.rtt), u2.itt(u2.ott), u2.Hc(s2), u2._dataSource = t4, t4) {
              if (!(e3 = u2.K$ = x(t4))) throw new Error(m().Exp_NotSupportedDataSource);
              u2.att = u2.utt(), s2 && o[o.sd]({ jS: s2.parent }), s2 && (i3 = u2.rtt, r2 = t4.currentPosition, t4.subscribe && i3.push(t4.subscribe(u2.stt, u2)), r2 && r2.subscribe && i3.push(r2.subscribe(u2.ctt, u2)), k(t4.subscribe) && !t4.ntt && (a2 = t4.ntt = t4.subscribe, t4.ett = false, t4.subscribe = function(n4, e4) {
                var i4 = [].concat.apply([], arguments), r3 = function() {
                  if (!t4.ett && k(n4)) return n4.apply(e4, arguments);
                };
                return i4[0] = r3, a2.apply(t4, i4);
              }), u2.RA(), u2.Mf.Ut.L5e()), u2.Pq = A(t4, e3);
            }
            return C(s2, t4);
          }, t3.prototype.RA = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2._dataSource;
            if (a2 && u2 && (t4 = o2.K$, o2.itt(o2.ott), n3 = f, t4 !== p && (e3 = a2.getActiveRowIndex(), u2.currentPosition ? (-1 <= e3 && e3 < u2.count() && u2.currentPosition(e3), n3 = u2.currentItem()) : n3 = o2.ftt(e3)), n3)) for (r2 in i3 = function() {
              a2 && a2.repaint();
            }, n3) n3[r2] && k(n3[r2].subscribe) && o2.ott.push(n3[r2].subscribe(i3, f, f));
          }, t3.prototype.itt = function(t4) {
            var n3, e3;
            if (t4) for (n3 = 0; n3 < t4.length; n3++) (e3 = t4[n3]) && k(e3.dispose) && e3.dispose();
          }, t3.prototype.getRowCount = function() {
            var t4 = this, n3 = t4._dataSource, e3 = t4.K$, i3 = 0;
            return n3 && e3 && e3 !== p && (i3 = v[e3].getDataLength(n3)), i3;
          }, t3.prototype.getColumnCount = function() {
            var t4, n3, e3, i3 = this.Pq;
            return i3 ? i3.length : (t4 = this._dataSource) && (n3 = t4[0], "null" === (e3 = o.getType(n3)) || e3 === h || "number" === e3) ? 1 : 0;
          }, t3.prototype.getSource = function() {
            return this._dataSource;
          }, t3.prototype.ltt = function() {
            return this.Pq;
          }, t3.prototype.htt = function(t4) {
            this.NTr() || (this.Pq = t4);
          }, t3.prototype.ftt = function(t4) {
            var n3 = this._dataSource, e3 = this.K$, i3 = f;
            return n3 && e3 && e3 !== p && (i3 = v[e3].getDataItem(n3, t4)), i3;
          }, t3.prototype.utt = function() {
            var t4, n3, e3, i3 = this;
            if (!i3.att && !i3.NTr()) {
              for (t4 = i3.getRowCount(), n3 = 0; n3 < t4; n3++) if (e3 = i3.ftt(n3)) {
                i3.att = e3.entityAspect && e3.entityType || e3.constructor;
                break;
              }
            }
            return i3.att;
          }, t3.prototype.getValue = function(t4, n3) {
            return S(this, t4, n3);
          }, t3.prototype.setValue = function(t4, n3, e3, i3) {
            var r2, o2 = this;
            return i3 && (r2 = S(o2, t4, n3).value, o2.ttt(i3, { type: "setValue", row: t4, col: n3, oldValue: r2 })), T(o2, t4, n3, e3);
          }, t3.prototype.xBe = function() {
            return this.J$;
          }, t3.prototype.IBe = function(t4, n3) {
            var e3, i3 = this;
            i3.NTr() || (n3 && (e3 = i3.J$, i3.ttt(n3, { type: "setColumnBindingInfo", oldColumnBindingInfo: e3, columnBindingInfo: t4 })), i3.J$ = t4);
          }, t3.prototype.dtt = function() {
            var t4 = v[this.K$];
            return t4 && t4.canAdd && t4.canAdd();
          }, t3.prototype.vtt = function() {
            var t4 = v[this.K$];
            return t4 && t4.canInsert && t4.canInsert();
          }, t3.prototype.mtt = function() {
            var t4 = v[this.K$];
            return t4 && t4.canRemove && t4.canRemove();
          }, t3.prototype.allowSetCount = function() {
            var t4, n3 = this.K$;
            return n3 === p || (t4 = v[n3]) && t4.allowSetCount && t4.allowSetCount();
          }, t3.prototype.kE = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2._dataSource;
            !a2 || t4 > o2.getRowCount() || (i3 = o2.K$, r2 = o2.utt(), i3 && i3 !== p && !o2.gtt && (o2.ptt = true, o2.jTr(e3), v[i3].addItems(a2, t4, n3, r2, l), e3 && o2.ttt(e3, { type: "addItems", row: t4, rowCount: n3 }), o2.ptt = false));
          }, t3.prototype.btt = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this, c2 = s2.K$, f2 = s2.getRowCount(), h2 = s2._dataSource;
            if (h2 && !(t4 >= f2) && c2 && c2 !== p && !s2.gtt) {
              if (s2.ptt = true, s2.jTr(e3), i3 = s2.Mf, r2 = [], s2.NTr()) for (o2 = 0; o2 < n3; o2++) r2.push(v[c2].getDataItem(h2, t4 + o2));
              a2 = i3 && i3.onItemRemoved ? i3.onItemRemoved.bind(i3) : l, u2 = v[c2].removeItems(h2, t4, n3, a2), r2.length > 0 && (u2 = r2), e3 && u2 && u2.length > 0 && s2.ttt(e3, { type: "removeItems", row: t4, removedItems: u2 }), s2.ptt = false;
            }
          }, t3.prototype.ytt = function(t4, n3) {
            var e3 = this, i3 = e3._dataSource, r2 = e3.K$;
            v[r2].undoRemoveItems(i3, t4, n3);
          }, t3.prototype.kve = function(t4) {
            var n3, e3 = this, i3 = e3._dataSource, r2 = e3.K$;
            if (i3 && (t4 = t4 < 0 || t4 > e3.getColumnCount() ? e3.getColumnCount() : t4, r2 && r2 !== p)) {
              if (n3 = v[r2], c(n3.kve)) return;
              return n3.kve(i3, t4);
            }
          }, t3.prototype.zEr = function() {
            var t4 = this, n3 = t4._dataSource, e3 = t4.K$;
            t4.Pq = A(n3, e3);
          }, t3.prototype.DTr = function() {
            var t4, n3 = v[this.K$];
            return n3 && n3.canAddColumn && n3.canAddColumn() && !c(n3.qFe);
          }, t3.prototype.qFe = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2._dataSource, a2 = r2.K$;
            if (o2 && (n3 = n3 < 0 || n3 > r2.getColumnCount() ? r2.getColumnCount() : n3, a2 && a2 !== p && !r2.gtt)) {
              if (i3 = v[a2], c(i3.qFe)) return;
              r2.jTr(e3), r2.ptt = true, i3.qFe(o2, t4, n3), r2.Pq = A(o2, a2), e3 && r2.ttt(e3, { type: "addColumn", col: null != n3 ? n3 : r2.getColumnCount(), columnInfo: t4 }), r2.ptt = false;
            }
          }, t3.prototype._Tr = function() {
            var t4, n3 = v[this.K$];
            return n3 && n3.canRemoveColumn && n3.canRemoveColumn() && !c(n3.iGe);
          }, t3.prototype.iGe = function(t4, n3) {
            var e3, i3 = this, r2 = i3._dataSource, o2 = i3.K$;
            if (!(!r2 || t4 < 0 || t4 > i3.getColumnCount()) && o2 && o2 !== p && !i3.gtt) {
              if (e3 = v[o2], c(e3.iGe)) return;
              i3.jTr(n3), i3.ptt = true, e3.iGe(r2, t4), i3.Pq = A(r2, o2), n3 && i3.ttt(n3, { type: "removeColumn", col: t4 }), i3.ptt = false;
            }
          }, t3.prototype.OTr = function() {
            var t4, n3 = v[this.K$];
            return n3 && n3.canUpdateColumn && n3.canUpdateColumn() && !c(n3.JEe);
          }, t3.prototype.JEe = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2._dataSource, a2 = r2.K$;
            if (o2 && (t4 = t4 < 0 || t4 > r2.getColumnCount() ? r2.getColumnCount() : t4, a2 && a2 !== p && !r2.gtt)) {
              if (i3 = v[a2], c(i3.JEe)) return;
              r2.jTr(e3), r2.ptt = true, i3.JEe(o2, t4, n3), r2.Pq = A(o2, a2), e3 && r2.ttt(e3, { type: "updateColumn", col: t4, columnInfo: n3 }), r2.ptt = false;
            }
          }, t3.prototype.NTr = function() {
            var t4 = this, n3 = t4.K$, e3 = v[n3];
            return e3 && e3.isDataDrivenMode && e3.isDataDrivenMode();
          }, t3.prototype.e5t = function(t4, n3) {
            var e3, i3 = this, r2 = i3._dataSource, o2 = i3.K$;
            if (r2 && o2) {
              if (e3 = v[o2], c(e3.hasValue)) return;
              return e3.hasValue(r2, t4, n3);
            }
          }, t3.prototype.nln = function() {
            var t4, n3 = v[this.K$];
            return n3 && n3.canFilter && n3.canFilter() && !c(n3.Irn);
          }, t3.prototype.Irn = function(t4, n3) {
            var e3, i3 = this, r2 = i3._dataSource, o2 = i3.K$;
            if (r2 && o2 && o2 !== p && !i3.gtt) {
              if (e3 = v[o2], c(e3.Irn)) return;
              i3.ptt = true, e3.Irn(r2, t4), n3 && i3.ttt(n3, { type: "filterItems", conditions: t4 }), i3.ptt = false;
            }
          }, t3.prototype.ETr = function(t4, n3) {
            var e3, i3 = this, r2 = i3._dataSource, o2 = i3.K$;
            return !r2 || t4 < 0 || t4 > i3.getColumnCount() ? [] : o2 && o2 !== p ? (e3 = v[o2], c(e3.ETr) ? [] : e3.ETr(r2, t4, n3)) : [];
          }, t3.prototype.eln = function() {
            var t4, n3 = v[this.K$];
            return n3 && n3.canSort && n3.canSort() && !c(n3.POn);
          }, t3.prototype.POn = function(t4, n3) {
            var e3, i3 = this, r2 = i3._dataSource, o2 = i3.K$;
            if (r2 && o2 && o2 !== p && !i3.gtt) {
              if (e3 = v[o2], c(e3.POn)) return;
              i3.jTr(n3), i3.ptt = true, e3.POn(r2, t4), n3 && i3.ttt(n3, { type: "sortItems", sortInfos: t4 }), i3.ptt = false;
            }
          }, t3.prototype.Q$ = function(t4) {
            return I(t4 || this._dataSource);
          }, t3.prototype.Hc = function(t4) {
            var n3 = this;
            n3._dataSource = f, n3.K$ = "", n3.att = f, n3.Pq = f, n3.rtt = [], n3.ott = [], n3.J$ = f, n3.Mf = t4, M(t4);
          }, t3.prototype.stt = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Mf;
            if (a2 && !o2.ptt) {
              if (t4) {
                if (o2.gtt = true, !isNaN(t4.length) && (a2.setRowCountCore(t4.length), n3 = a2.Ut, c(o2.Pq) && 0 === n3._E(false, 3) && (o2.Pq = A(o2._dataSource), a2.setColumnCount(o2.getColumnCount()), e3 = o2.ltt()))) for (i3 = 0, r2 = e3.length; i3 < r2; i3++) n3.do("setItem", false, 3, i3, { name: e3[i3] });
                o2.gtt = false;
              }
              a2.zw();
            }
          }, t3.prototype.ctt = function() {
            var t4, n3 = this, e3 = n3.Mf, i3 = n3._dataSource;
            e3 && i3 && i3.currentPosition && (t4 = i3.currentPosition(), e3.ui !== t4 && (e3.t4(t4, e3.ci, l, l, 2), e3.zw()));
          }, t3.prototype.RTr = function(t4) {
            var n3, e3;
            return !!t4 && (n3 = this.K$, e3 = v[n3], !(c(e3) || c(e3.vCn) || c(e3.FCn) || this.Mf && this.Mf.Ut && !c(this.Mf.Ut.P8) && this.Mf.Ut.P8 <= 0));
          }, t3.prototype.jTr = function(t4) {
            if (this.RTr(t4)) {
              var n3 = this._dataSource, e3 = this.K$;
              v[e3].vCn(n3);
            }
          }, t3.prototype.LTr = function(t4) {
            if (this.RTr(t4)) {
              var n3 = this._dataSource, e3 = this.K$;
              return v[e3].FCn(n3);
            }
          }, t3.prototype.ttt = function(t4, n3) {
            var e3, i3;
            this.Mf && this.Mf.Ut && !c(this.Mf.Ut.P8) && this.Mf.Ut.P8 <= 0 || ((e3 = this.LTr(t4)) && (n3.FTr = e3), (i3 = t4.bindingChanges) || (i3 = t4.bindingChanges = []), n3.bindingManager = this, i3.push(n3));
          }, t3.prototype.wtt = function(t4) {
            var n3 = this, e3 = t4.type, i3 = t4.row;
            "bind" === e3 ? n3.bind(t4.dataSource) : "setValue" === e3 ? n3.setValue(i3, t4.col, t4.value) : "addItems" === e3 ? n3.kE(i3, t4.rowCount) : "removeItems" === e3 ? n3.btt(i3, t4.rowCount) : "setColumnBindingInfo" === e3 && n3.IBe(t4.columnBindingInfo);
          }, t3.prototype.Mtt = function(t4) {
            var n3 = this, e3 = t4.type, i3 = t4.row;
            if ("bind" === e3) n3.bind(t4.oldDataSource);
            else if ("setValue" === e3) n3.setValue(i3, t4.col, t4.oldValue);
            else if ("addItems" === e3) {
              if (n3.NTr()) return n3.BTr(t4);
              n3.btt(i3, t4.rowCount);
            } else if ("removeItems" === e3) {
              if (n3.NTr()) return n3.BTr(t4);
              n3.ytt(i3, t4.removedItems);
            } else if ("setColumnBindingInfo" === e3) n3.IBe(t4.oldColumnBindingInfo);
            else if (n3.NTr() && ("addColumn" === e3 || "removeColumn" === e3 || "updateColumn" === e3 || "sortItems" === e3)) return n3.BTr(t4, (function(t5, e4) {
              n3.Pq = A(t5, e4);
            }));
          }, t3.prototype.BTr = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = t4.FTr;
            if (!c(a2) && a2.length > 0 && (e3 = o2._dataSource, i3 = o2.K$, r2 = v[i3], !c(e3) && !c(r2.Mtt))) return r2.Mtt(e3, a2).then((function() {
              return n3 && n3(e3, i3);
            }));
          }, t3.prototype.toJSON = function() {
            var t4, n3 = this._dataSource;
            return n3 ? { type: t4 = this.K$, source: n3 = t4 === p ? n3.getSource() : v[t4].toJSON(n3) } : f;
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, i3 = t4 && t4.source;
            i3 && (e3 = void 0, (e3 = (n3 = t4.type) === p ? new b(i3) : v[n3].fromJSON(i3)) && this.bind(e3));
          }, t3;
        })(), n2.$$ = y, n2.setValueByPath = N, n2.q$ = j, w = (function() {
          function t3() {
            this.pathCache = {};
          }
          return t3.prototype.isDataSource = function(t4) {
            return o.isArray(t4);
          }, t3.prototype.getDataLength = function(t4) {
            return t4.length;
          }, t3.prototype.getDataItem = function(t4, n3) {
            return t4[n3];
          }, t3.prototype.addItems = function(t4, n3, e3, i3) {
            var r2, o2;
            for (r2 = 0; r2 < e3; r2++) o2 = {}, i3 && (o2 = i3.createEntity ? i3.createEntity() : new i3()), t4.splice(n3, 0, o2);
          }, t3.prototype.removeItems = function(t4, n3, e3) {
            var i3 = this.getDataLength(t4);
            if (n3 < i3) return t4.splice(n3, Math.min(e3, i3 - n3));
          }, t3.prototype.undoRemoveItems = function(t4, n3, e3) {
            for (var i3 = 0, r2 = e3.length; i3 < r2; i3++) t4.splice(n3 + i3, 0, e3[i3]);
          }, t3.prototype.getProperties = function(t4) {
            var n3, e3, i3 = t4.length, r2 = f;
            if (i3 > 0) for (e3 in r2 = [], n3 = t4[0]) k(n3[e3]) || r2.push(e3);
            return r2;
          }, t3.prototype.getValue = function(t4, n3, e3, i3, r2) {
            var a2 = f, u2 = false, l2 = this.getDataItem(t4, i3);
            return c(l2) || (n3 ? o.isEmptyObject(l2) || (a2 = n3(l2), u2 = true) : e3 ? (a2 = j(l2, e3, this.pathCache), u2 = true) : (typeof l2 === h || s(l2)) && 0 === r2 && (a2 = l2, u2 = true)), { value: a2, hasBinding: u2 };
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, o2) {
            var a2 = false, u2 = this.getDataItem(t4, i3);
            return c(u2) || (n3 ? (u2[e3] = o2, n3(u2, o2), a2 = true) : e3 ? (N(u2, e3, o2), a2 = true) : (typeof u2 === h || s(u2)) && 0 === r2 && (t4[i3] = o2, a2 = true)), a2;
          }, t3.prototype.fromJSON = function(t4) {
            return t4;
          }, t3.prototype.toJSON = function(t4) {
            return t4;
          }, t3;
        })(), v.defaultBindingSource = new w();
      }, "./dist/plugins/data/data.dataview.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.X$ = void 0, i2 = e2("Common"), r = e2("./dist/plugins/data/binding.js"), Object.defineProperty(n2, "X$", { enumerable: true, get: function() {
          return r.X$;
        } }), o = i2.Common.lt.ht, a = null, u = (function() {
          function t3() {
          }
          return t3.prototype.isDataSource = function(t4) {
            var n3 = window.wijmo;
            return n3 && n3.data && n3.data.isDataView && n3.data.isDataView(t4);
          }, t3.prototype.getDataLength = function(t4) {
            return t4.count();
          }, t3.prototype.getDataItem = function(t4, n3) {
            return t4.item(n3);
          }, t3.prototype.addItems = function(t4, n3, e3, i3) {
            if (i3) for (var r2 = 0; r2 < e3; r2++) t4.ett = true, t4.add(i3.createEntity ? i3.createEntity() : new i3()), t4.ett = false, t4.commitEdit();
          }, t3.prototype.removeItems = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this.getDataLength(t4);
            if (n3 < u2) {
              for (i3 = [], r2 = Math.min(e3, u2 - n3), o2 = 0; o2 < r2; o2++) a2 = t4.item(n3), t4.remove(a2), i3.push(a2);
              return i3;
            }
          }, t3.prototype.undoRemoveItems = function(t4, n3, e3) {
            var i3, r2, o2 = t4.getSource();
            for (i3 = 0, r2 = e3.length; i3 < r2; i3++) o2.splice(n3 + i3, 0, e3[i3]);
            t4.refresh();
          }, t3.prototype.getProperties = function(t4) {
            var n3, e3 = 0, i3 = a, r2 = t4.getProperties();
            if (r2 && r2.length > 0) for (e3 = r2.length, i3 = [], n3 = 0; n3 < e3; n3++) i3.push(r2[n3].name);
            return i3;
          }, t3.prototype.canInsert = function() {
            return false;
          }, t3.prototype.getValue = function(t4, n3, e3, i3, r2) {
            var u2 = a, s = false, c = this.getDataItem(t4, i3);
            return o(c) || (n3 ? (u2 = n3(c), s = true) : e3 && (u2 = t4.getProperty(c, e3), s = true)), { value: u2, hasBinding: s };
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, a2) {
            var u2 = false, s = this.getDataItem(t4, i3);
            return o(s) || (n3 ? (n3(s, a2), u2 = true) : e3 && (t4.setProperty(s, e3, a2), u2 = true)), u2;
          }, t3.prototype.fromJSON = function(t4) {
            return t4;
          }, t3.prototype.toJSON = function(t4) {
            return t4.local;
          }, t3;
        })(), r.X$.dataViewBinding = new u();
      }, "./dist/plugins/data/data.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), o = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || r(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.q$ = n2.setValueByPath = n2.$$ = n2.CellBindingSource = void 0, e2("./dist/plugins/data/worksheet-databind.js"), i2 = e2("./dist/plugins/data/binding.js"), Object.defineProperty(n2, "CellBindingSource", { enumerable: true, get: function() {
          return i2.CellBindingSource;
        } }), Object.defineProperty(n2, "$$", { enumerable: true, get: function() {
          return i2.$$;
        } }), Object.defineProperty(n2, "setValueByPath", { enumerable: true, get: function() {
          return i2.setValueByPath;
        } }), Object.defineProperty(n2, "q$", { enumerable: true, get: function() {
          return i2.q$;
        } }), o(e2("./dist/plugins/data/data.ko.js"), n2), o(e2("./dist/plugins/data/data.dataview.js"), n2), o(e2("./dist/plugins/data/data.ns.js"), n2);
      }, "./dist/plugins/data/data.ko.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.X$ = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/data/binding.js"), Object.defineProperty(n2, "X$", { enumerable: true, get: function() {
          return o.X$;
        } }), a = r.Common.lt.ht, u = i2.GC$, s = u.isFunction, c = u.getType, f = u.isNumeric, l = null, h = "string", d = window.ko, v = (function() {
          function t3() {
          }
          return t3.prototype.isDataSource = function(t4) {
            return d && d.isObservable(t4);
          }, t3.prototype.getDataLength = function(t4) {
            return t4().length;
          }, t3.prototype.getDataItem = function(t4, n3) {
            return t4()[n3];
          }, t3.prototype.addItems = function(t4, n3, e3, i3) {
            var r2, o2;
            for (r2 = 0; r2 < e3; r2++) o2 = {}, i3 && (o2 = i3.createEntity ? i3.createEntity() : new i3()), t4.splice(n3, 0, o2);
          }, t3.prototype.removeItems = function(t4, n3, e3) {
            var i3 = this.getDataLength(t4);
            if (n3 < i3) return t4.splice(n3, Math.min(e3, i3 - n3));
          }, t3.prototype.undoRemoveItems = function(t4, n3, e3) {
            for (var i3 = 0, r2 = e3.length; i3 < r2; i3++) t4.splice(n3 + i3, 0, e3[i3]);
          }, t3.prototype.getProperties = function(t4) {
            var n3, e3, i3 = t4(), r2 = i3.length, o2 = [];
            if (r2 > 0) for (e3 in n3 = i3[0]) (!s(n3[e3]) || d && d.isObservable(n3[e3])) && o2.push(e3);
            return o2;
          }, t3.prototype.getValue = function(t4, n3, e3, i3, r2) {
            var u2 = l, s2 = false, d2 = this.getDataItem(t4, i3);
            return a(d2) || (n3 ? (u2 = n3(d2), s2 = true) : e3 ? (u2 = (0, o.q$)(d2, e3), s2 = true) : (c(d2) === h || f(d2)) && 0 === r2 && (u2 = d2, s2 = true)), { value: u2, hasBinding: s2 };
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, u2) {
            var s2 = false, l2 = this.getDataItem(t4, i3);
            return a(l2) || (n3 ? (n3(l2, u2), s2 = true) : e3 ? ((0, o.setValueByPath)(l2, e3, u2), s2 = true) : (c(l2) === h || f(l2)) && 0 === r2 && (t4()[i3] = u2, s2 = true)), s2;
          }, t3.prototype.fromJSON = function(t4) {
            return d ? d.observableArray(t4) : l;
          }, t3.prototype.toJSON = function(t4) {
            return t4();
          }, t3;
        })(), o.X$.koBinding = new v(), d && ((p = d.bindingHandlers)["gc-spread-sheets"] = p["gcspread-sheets"] = p.wijspread = { init: function(t3, n3, e3, r2) {
          var o2, a2, s2, c2, f2, l2, d2, v2, p2, g, m, b;
          if (!u(t3).data("workbook") && (a2 = (o2 = n3()) && o2.sheets, s2 = new i2.Workbook(u("#" + t3.id)[0], o2), a2)) {
            for (c2 = void 0, f2 = void 0, l2 = a2.length, d2 = s2.getSheetCount(); d2 < l2; ) c2 = s2.S2(s2.T2(d2)), s2.A2(d2, 0, c2), d2 = s2.getSheetCount();
            for (v2 = 0; v2 < l2; v2++) c2 = s2.getSheet(v2), p2 = (f2 = a2[v2]).name, g = f2.autoGenerateColumns, m = f2.data, b = f2.columns, typeof p2 === h && p2.length > 0 && c2.ub(p2), "boolean" == typeof g && (c2.autoGenerateColumns = g), m && c2.setDataSource(m), b && b.length > 0 && (c2.autoGenerateColumns = false, c2.bindColumns(b));
          }
        }, update: function(t3, n3, e3, i3) {
        } });
      }, "./dist/plugins/data/data.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/data/data.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/data/data.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_NotSupportedDataSource = void 0, n2.Exp_NotSupportedDataSource = "The data source is not supported!";
      }, "./dist/plugins/data/worksheet-databind.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v;
        function p(t3, n3, e3) {
          "string" == typeof e3 && (e3 = { name: e3 }), t3.Ut.do("setItem", false, 3, n3, e3);
          var i3 = e3 && e3.formatter, r2 = e3 && e3.cellType;
          i3 && t3.setFormatter && t3.setFormatter(-1, n3, i3), r2 && t3.setCellType(-1, n3, r2), e3 && !a(e3.width) && t3.setColumnWidth(n3, e3.width);
        }
        function g(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, v2, p2, g2, m2, b2, y2 = t3.H3, w = "dataManagerBindingSource" === y2.K$, M = t3.NMi, C = null == o2 ? void 0 : o2.sharedStrings, S = null == o2 ? void 0 : o2.styleManager;
          if (M && M._gi === i2.SheetType.ganttSheet) {
            for (c2 = 0; c2 < e3; c2++) if (!M.zDi(c2)) for (f2 = 0; f2 < r2; f2++) l2 = M.Rpi(c2, f2), a2 ? t3.c8(n3, c2, f2, l2, C) : t3.s8(n3, c2, f2, l2, w);
          } else for (c2 = 0; c2 < e3; c2++) for (f2 = 0; f2 < r2; f2++) v2 = (h2 = y2.getValue(c2, f2)).value, h2 && h2.hasBinding && (p2 = v2, d.W0(v2) && (p2 = d.Q0(v2)), g2 = void 0, m2 = void 0, (b2 = null === (s2 = null === (u2 = y2.xBe()) || void 0 === u2 ? void 0 : u2[f2]) || void 0 === s2 ? void 0 : s2.formatter) && S && ((g2 = t3.getStyle(c2, f2)) ? "string" == typeof g2 && (g2 = t3.u8(g2)) : g2 = new i2.Style(), g2.formatter = b2, m2 = S.getStyleIndex(g2, 3, t3.name())), a2 ? t3.c8(n3, c2, f2, p2, C, m2) : t3.s8(n3, c2, f2, p2, w, g2));
        }
        function m(t3, n3, e3, i3) {
          var r2 = t3.getSpan(n3, e3, i3);
          return !(!r2 || r2.row === n3 && r2.col === e3);
        }
        function b(t3, n3, e3, i3) {
          var r2, o2, u2, s2, c2, f2 = t3.options.colHeaderAutoTextIndex;
          for (r2 = 0; r2 < e3; r2++) if (f2 >= 0 && r2 === f2 || -1 === f2 && r2 === e3 - 1) for (o2 = 0; o2 < i3; o2++) u2 = n3[r2] && n3[r2][o2] && n3[r2][o2].value, s2 = t3.Ut.q_(false, 3, o2), a(u2) && s2 && !m(t3, r2, o2, 1) && (c2 = s2.displayName || s2.name) && t3.s8(n3, r2, o2, c2);
        }
        function y(t3, n3) {
          var e3, i3;
          return "Object" === n3.constructor.name && (e3 = t3.findByName(n3.tableName)) && (e3.H3 ? n3 = e3.H3 : ((i3 = new o.$$()).fromJSON(n3), e3.H3 = n3 = i3)), n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/data/binding.js"), a = r.Common.lt.ht, u = i2.GC$.isEmptyObject, s = i2.GC$.extend, c = i2.Worksheet.prototype, f = null, l = "bindingPath", h = new RegExp("^\\d*(\\.\\d+)?\\*$"), d = r.Common.ct, s(c, v = { getDataSource: function() {
          var t3 = this.H3;
          return t3 ? t3.getSource() : f;
        }, setDataSource: function(t3, n3) {
          var e3, i3, r2, a2, u2, s2, c2, f2 = this, h2 = f2.H3;
          if (h2 && (h2.getSource() !== t3 || f2.NMi)) {
            if (f2.suspendPaint(), n3 && f2.sF(), f2.suspendCalcService && f2.suspendCalcService(), t3) if (i3 = f2.Ut, (h2 = f2.H3).Ctt = true, r2 = h2.bind(t3, i3.G8)) i3.wKr(l, 3, (function(t4, n4, e4) {
              var i4;
              null === (i4 = f2.oMt) || void 0 === i4 || i4.Mde(n4, e4);
            }));
            else {
              if (f2.setRowCountCore(h2.getRowCount()), f2.autoGenerateColumns && (f2.setColumnCount(h2.getColumnCount()), a2 = h2.ltt())) for (u2 = 0, s2 = a2.length; u2 < s2; u2++) i3.do("setItem", false, 3, u2, { name: a2[u2] });
              i3.d3e(0, 0, f2.getRowCount(), f2.getColumnCount()), null === (e3 = f2.oMt) || void 0 === e3 || e3.gF(0, 0, f2.getRowCount(), f2.getColumnCount());
            }
            else f2.H3 = new o.$$(f2);
            f2.clearPendingChanges(), h2 && h2.Ctt && (delete h2.Stt, delete h2.Ctt), f2.resumeCalcService && f2.resumeCalcService(false), (c2 = f2.ST()) && c2.DS === f2 && c2.c5(), f2.resumePaint();
          }
        }, bindColumn: function(t3, n3) {
          var e3 = this;
          e3.suspendPaint();
          try {
            p(e3, t3, n3);
          } finally {
            e3.resumePaint();
          }
        }, bindColumns: function(t3) {
          var n3, e3, i3, r2, o2 = this;
          o2.suspendPaint();
          try {
            if (t3) for (n3 = t3.length, isNaN(n3) || o2.setColumnCount(n3), e3 = 0; e3 < n3; e3++) r2 = (i3 = t3[e3]).size, h.test(r2) && (i3.starSize = r2), p(o2, e3, i3);
          } finally {
            o2.resumePaint();
          }
        }, getDataItem: function(t3) {
          var n3, e3, i3, r2, o2, u2, s2 = this, c2 = s2.H3;
          if (!c2 || 0 === c2.getRowCount()) return f;
          if (n3 = s2.getColumnCount(), e3 = {}, i3 = c2.ftt(t3)) for (r2 in i3) i3.hasOwnProperty(r2) && "function" != typeof r2 && (e3[r2] = i3[r2]);
          for (o2 = 0; o2 < n3; o2++) (u2 = s2.Ut.q_(false, 3, o2)) && u2.name && u2.name.length > 0 && a(e3[u2.name]) && (e3[u2.name] = s2.getValue(t3, o2));
          return e3;
        }, getDataColumnName: function(t3) {
          var n3, e3 = this;
          return 0 <= t3 && t3 < e3.getColumnCount() && e3.getDataSource() ? (n3 = e3.Ut.q_(false, 3, t3)) && (n3.displayName || n3.name) : f;
        }, getBindingPath: function(t3, n3) {
          return this.Ut.getValueForKey(t3, n3, l);
        }, setBindingPath: function(t3, n3, e3) {
          var r2 = this, o2 = r2.Ut;
          return o2.do("setValueForKey", t3, n3, l, e3), o2.t3e(t3, n3, !e3), r2.ki(i2.Events.WorksheetDataChanged, { type: "bindingPath" }), r2.zw(), r2;
        } }), i2.CellRange.prototype.bindingPath = i2.CellRange.p0(c.getBindingPath, c.setBindingPath), i2.Worksheet.ch("binding", { init: function() {
          var t3 = this;
          t3.autoGenerateColumns = true, t3.H3 = new o.$$(t3);
        }, dispose: function(t3) {
          var n3 = this;
          false !== t3.clearCache && (n3.H3 = f);
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, u2, s2 = this, c2 = t3.changeType, l2 = t3.row, h2 = t3.rowCount, d2 = t3.sheetArea;
          if (a(d2) || 3 === d2 || 2 === d2) if (n3 = s2.H3, "addingRows" === c2) n3 && false === n3.dtt() ? t3.canAdd = false : n3 && false === n3.vtt() && (t3.newRow = s2.getRowCount());
          else if ("addRows" === c2) n3 && n3.kE(l2, h2, s2.Ut.G8);
          else if ("deletingRows" === c2) {
            if (n3) if (false === n3.mtt()) t3.canDelete = false;
            else for (s2.aj || (s2.aj = []), e3 = s2.aj, i3 = s2.Ut, r2 = n3.getRowCount(), o2 = 0; o2 < h2 && l2 + o2 < i3.getRowCount(); o2++) u2 = f, l2 + o2 < r2 && (u2 = n3.ftt(l2 + o2)), e3.push({ row: l2 + o2, data: u2 });
          } else "deleteRows" === c2 ? n3 && n3.btt(l2, h2, s2.Ut.G8) : "settingRowCount" === c2 && (!n3.getSource() || n3.allowSetCount() || 3 !== d2 && 2 !== d2 || (t3.canSet = false));
        }, toJson: function(t3, n3) {
          var e3, i3, r2, o2 = this, a2 = o2.getColumnCount(), s2 = o2.getDataSource();
          n3 && n3.includeBindingSource && s2 && (g(o2, e3 = t3.data.dataTable || {}, o2.getRowCount(), a2), u(e3) || (t3.data.dataTable = e3), b(o2, i3 = t3.colHeaderData.dataTable || {}, o2.getRowCount(1), a2), u(i3) || (t3.colHeaderData.dataTable = i3)), true !== (r2 = o2.autoGenerateColumns) && (t3.autoGenerateColumns = o2.autoGenerateColumns);
        }, fromJson: function(t3, n3) {
          var e3, i3, r2, u2, s2 = this;
          s2.H3 = new o.$$(s2), n3 && (e3 = s2.H3, i3 = t3.dataSource, r2 = t3.dataBinding, i3 && e3.bind(i3), r2 && e3.fromJSON(r2, n3)), u2 = t3.autoGenerateColumns, a(u2) || (s2.autoGenerateColumns = u2);
        }, preFromJson: function() {
          this.H3 = new o.$$(this);
        }, wh: function(t3, n3, e3) {
          var i3, r2, o2 = this, a2 = o2.getColumnCount(), s2 = o2.getDataSource(), c2 = t3.lossless;
          c2 || (c2 = t3.lossless = {}), e3 && e3.includeBindingSource && s2 && (g(o2, t3, o2.getRowCount(), a2, n3, true), b(o2, i3 = c2.colHeaderData.dataTable || {}, o2.getRowCount(1), a2), u(i3) || (c2.colHeaderData.dataTable = i3)), true !== (r2 = o2.autoGenerateColumns) && (c2.autoGenerateColumns = o2.autoGenerateColumns);
        }, yh: function(t3) {
          var n3, e3 = this;
          e3.H3 = new o.$$(e3), n3 = t3.lossless && t3.lossless.autoGenerateColumns, a(n3) || (e3.autoGenerateColumns = n3);
        } }), i2.Y8.ch("binding", { priority: 6e3, isValid: function(t3) {
          var n3, e3 = ["getValue", "setValue"].indexOf(t3) > -1, i3 = null === (n3 = this.Mf.H3) || void 0 === n3 ? void 0 : n3._dataSource;
          return !e3 || i3;
        }, getValue: function(t3) {
          var n3, e3, r2 = t3.row, o2 = t3.col, a2 = t3.sheetArea, u2 = this.Mf.H3;
          3 === a2 && u2 && u2._dataSource && (n3 = u2.getValue(r2, o2), t3.isValueGet = n3.hasBinding, e3 = n3.value, 1 !== t3.valueType && (e3 = i2.mt.wt(e3)), t3.value = e3);
        }, setValue: function(t3) {
          var n3, e3, i3, r2 = t3.row, o2 = t3.col, a2 = t3.value, u2 = t3.sheetArea, s2 = this.Mf, c2 = s2.H3;
          3 === u2 && c2 && c2._dataSource && (n3 = c2.getValue(r2, o2)).hasBinding && (a2 !== (e3 = n3.value) ? (s2.isDirtySuspended() || (i3 = s2.getDataItem(r2), this.dE(r2, o2, { gE: i3, d6: e3 }, u2)), t3.isValueSet = c2.setValue(r2, o2, a2, s2.Ut.G8)) : t3.isValueSet = "dataManagerBindingSource" !== c2.K$);
        }, applyChanges: function(t3) {
          var n3, e3, i3, r2 = t3.changes, o2 = t3.isUndo, a2 = r2 && r2.HJr;
          if (a2) if (o2) for (n3 = a2.length - 1; n3 >= 0; n3--) (e3 = a2[n3]).bindingManager && (i3 = y(this.Mf.tables, e3.bindingManager)).Mtt(e3);
          else for (n3 = 0; n3 < a2.length; n3++) e3 = a2[n3], (i3 = y(this.Mf.tables, e3.bindingManager)).wtt && i3.wtt(e3);
        }, undoValue: function(t3) {
          var n3, e3, i3 = null == t3 ? void 0 : t3.bindingChanges;
          if (i3) for (n3 = i3.length - 1; n3 >= 0; n3--) (e3 = i3[n3]).bindingManager.Mtt(e3);
        } });
      }, "./dist/plugins/dataRange/dataRange.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/dataRange/dataRangeManager.js"), n2), r(e2("./dist/plugins/dataRange/dataRangeMixin.js"), n2), r(e2("./dist/plugins/dataRange/providers/tablesheet-data-provider.js"), n2);
      }, "./dist/plugins/dataRange/dataRange.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataRange = void 0, i2 = e2("Core"), r = e2("./dist/plugins/dataRange/dataRangeSticky.js"), o = e2("./dist/plugins/dataRange/providers/tablesheet-data-provider.js"), a = function(t3) {
          return "function" == typeof t3;
        }, u = function(t3) {
          return "string" == typeof t3;
        }, s = (function() {
          function t3(t4, n3, e3, i3) {
            void 0 === i3 && (i3 = {}), this.xGr = false, this.Zc = t4, this.Z5 = e3, n3 && this.en(n3), this.Hc(i3);
          }
          return t3.prototype.name = function(t4) {
            var n3, e3;
            return u(t4) && ((e3 = (n3 = this.ayt.getNewUniqueName(t4)) !== t4) || (this.Zc = t4)), this.Zc;
          }, t3.prototype.range = function(t4) {
            var n3, e3, r2, a2, u2;
            if (!t4) return new i2.Range(this.Z5.row, this.Z5.col, this.Z5.rowCount, this.Z5.colCount);
            t4.equals(this.Z5) || ((n3 = t4.row) < 0 && (n3 = 0), (e3 = t4.col) < 0 && (e3 = 0), this.dataProvider && this.dataProvider instanceof o.TableSheetDataProvider ? (a2 = (r2 = this.dataProvider.Ats()).rowCount, u2 = r2.colCount, t4 = new i2.Range(n3, e3, a2, u2)) : t4 = new i2.Range(n3, e3, t4.rowCount, t4.colCount), this.its = this.Z5, this.Z5 = t4, this.repaint());
          }, t3.prototype.paintingRange = function() {
            return this.its ? this.Z5.union(this.its) : this.Z5;
          }, t3.prototype.repaint = function() {
            this.ayt && this.ayt.repaint(this);
          }, t3.prototype.getValue = function(t4, n3) {
            if (a(this.dataProvider.getValue)) {
              var e3 = this.Djn(t4, n3), i3 = e3.r, r2 = e3.c;
              return this.dataProvider.getValue(i3, r2);
            }
          }, t3.prototype.setValue = function(t4, n3, e3, i3) {
            if (a(this.dataProvider.setValue)) {
              var r2 = this.Djn(t4, n3), o2 = r2.r, u2 = r2.c;
              return this.dataProvider.setValue(o2, u2, e3, i3);
            }
          }, t3.prototype.getStyle = function(t4, n3) {
            if (a(this.dataProvider.getStyle)) {
              var e3 = this.Djn(t4, n3), i3 = e3.r, r2 = e3.c;
              return this.dataProvider.getStyle(i3, r2);
            }
          }, t3.prototype.setStyle = function(t4, n3, e3, i3) {
            if (a(this.dataProvider.setStyle)) {
              var r2 = this.Djn(t4, n3), o2 = r2.r, u2 = r2.c;
              return this.dataProvider.setStyle(o2, u2, e3, i3);
            }
          }, t3.prototype.getSpans = function(t4, n3, e3, i3) {
            if (a(this.dataProvider.getSpans)) {
              var r2 = this.Djn(t4, n3), o2 = r2.r, u2 = r2.c;
              return this.dataProvider.getSpans(o2, u2, e3, i3);
            }
          }, t3.prototype.addRows = function(t4, n3, e3) {
            if (a(this.dataProvider.onRowChange)) {
              var i3 = this.Djn(t4, void 0).r;
              this.dataProvider.onRowChange(i3, n3, "add", e3);
            }
          }, t3.prototype.deleteRows = function(t4, n3, e3) {
            if (a(this.dataProvider.onRowChange)) {
              var i3 = this.Djn(t4, void 0).r;
              this.dataProvider.onRowChange(i3, n3, "delete", e3);
            }
          }, t3.prototype.addColumns = function(t4, n3, e3) {
            if (a(this.dataProvider.onColumnChange)) {
              var i3 = this.Djn(void 0, t4).c;
              this.dataProvider.onColumnChange(i3, n3, "add", e3);
            }
          }, t3.prototype.deleteColumns = function(t4, n3, e3) {
            if (a(this.dataProvider.onColumnChange)) {
              var i3 = this.Djn(void 0, t4).c;
              this.dataProvider.onColumnChange(i3, n3, "delete", e3);
            }
          }, t3.prototype.onMove = function() {
            return true;
          }, t3.prototype.onCopy = function(t4) {
            return !!a(this.dataProvider.onCopy) && this.dataProvider.onCopy(t4);
          }, t3.prototype.onClear = function(t4, n3) {
            if (a(this.dataProvider.onClear)) {
              var e3 = this.Djn(t4.row, t4.col), i3 = e3.r, r2 = e3.c;
              return this.dataProvider.onClear(i3, r2, t4.rowCount, t4.colCount, n3);
            }
            return false;
          }, t3.prototype.onKeyDown = function(t4, n3, e3) {
            if (a(this.dataProvider.onKeyDown)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onKeyDown(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onKeyUp = function(t4, n3, e3) {
            if (a(this.dataProvider.onKeyUp)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onKeyUp(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onMouseDown = function(t4, n3, e3) {
            if (a(this.dataProvider.onMouseDown)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onMouseDown(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onMouseMove = function(t4, n3, e3) {
            if (a(this.dataProvider.onMouseMove)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onMouseMove(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onMouseUp = function(t4, n3, e3) {
            if (a(this.dataProvider.onMouseUp)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onMouseUp(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onDoubleClick = function(t4, n3, e3) {
            if (a(this.dataProvider.onDoubleClick)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onDoubleClick(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onContextMenu = function(t4, n3, e3) {
            if (a(this.dataProvider.onContextMenu)) {
              var i3 = this.Djn(t4, n3), r2 = i3.r, o2 = i3.c;
              return this.dataProvider.onContextMenu(r2, o2, e3);
            }
            return false;
          }, t3.prototype.onMouseWheel = function(t4, n3, e3) {
            return !!a(this.dataProvider.onMouseWheel) && this.dataProvider.onMouseWheel(t4, n3, e3);
          }, t3.prototype.undo = function(t4) {
            a(this.dataProvider.undo) && this.dataProvider.undo(t4);
          }, t3.prototype.onLayoutChanged = function(t4) {
            a(this.dataProvider.onHostLayoutChanged) && this.dataProvider.onHostLayoutChanged(t4);
          }, t3.prototype.dispose = function(t4) {
            t4 ? this.ayt.remove(this.Zc, true) : (a(this.dataProvider.onDestroy) && this.dataProvider.onDestroy(), this.dataProvider = null);
          }, t3.prototype.getCurrentTopRow = function() {
            return this.ayt.getSheetTopRow();
          }, t3.prototype.isSticky = function(t4) {
            return this.nts.isSticky(t4);
          }, t3.prototype.getStickyTopRowCount = function() {
            return this.nts.bLe();
          }, t3.prototype.convertContext = function(t4) {
            var n3, e3, i3, r2, o2 = t4.sheet, u2 = t4.row, s2 = t4.col, c = t4.sheetArea, f = { sheet: o2, row: u2, col: s2, sheetArea: c };
            return a(this.dataProvider.getSheet) && (f.sheet = this.dataProvider.getSheet()), e3 = (n3 = this.Djn(t4.row, t4.col)).r, i3 = n3.c, f.row = e3, f.col = i3, a(this.dataProvider.getAxis) && (r2 = this.dataProvider.getAxis(e3, i3)) && (f.row = r2.r, f.col = r2.c, f.sheetArea = r2.sheetArea, f.rowSpacingIndex = r2.rowSpacingIndex, f.isAfterRowSpacing = r2.isAfterRowSpacing), f;
          }, t3.prototype.updateSticky = function(t4) {
            this.options.sticky = t4;
          }, t3.prototype.getTableRange = function() {
            var t4, n3, e3, r2;
            return a(this.dataProvider.getTableRange) ? (t4 = this.dataProvider.getTableRange(), e3 = (n3 = this.Djn(t4.row, t4.col, true)).r, r2 = n3.c, new i2.Range(e3, r2, t4.rowCount, t4.colCount)) : this.Z5;
          }, t3.prototype.attachHost = function(t4) {
            this.ayt !== t4 && (this.ayt = t4);
          }, t3.prototype.toJSON = function(t4) {
            var n3 = this.Zc, e3 = this.Z5.toJSON(), i3 = this.PGr(), r2 = a(this.dataProvider.toJSON) ? this.dataProvider.toJSON(t4) : { typeName: this.dataProvider.typeName };
            return { name: n3, range: e3, dataProvider: r2, options: i3 };
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, r2 = t4.name, o2 = t4.range, a2 = t4.dataProvider, u2 = t4.options;
            return this.ayt && r2 && (r2 = this.ayt.getNewUniqueName(r2)), this.Zc = r2, this.Z5 = new i2.Range(o2.row, o2.col, o2.rowCount, o2.colCount), this.options = (0, i2.RF)(u2), !!(e3 = this.sts(a2, n3)) && (this.dataProvider = e3, true);
          }, t3.prototype.afterFromJSON = function(t4) {
            a(this.dataProvider.afterFromJSON) && this.dataProvider.afterFromJSON(t4);
          }, t3.prototype.manager = function() {
            return this.ayt;
          }, t3.prototype.switchToPrintContext = function() {
            a(this.dataProvider.switchToPrintContext) && this.dataProvider.switchToPrintContext();
          }, t3.prototype.isCustomDataRange = function() {
            return this.dataProvider && !(this.dataProvider instanceof o.TableSheetDataProvider);
          }, t3.prototype.ignoreSticky = function() {
            return this.ayt.ignoreSticky();
          }, t3.prototype.Hc = function(t4) {
            this.G8 = [], this.rts(), this.Zp(t4);
          }, t3.prototype.Zp = function(t4) {
            var n3, e3 = this, r2 = this.Fpt();
            for (n3 in t4 = Object.assign(r2, t4), e3.options = i2.mt.b0(t4, (function(t5, n4, i3) {
              e3.Ob(t5, n4, i3);
            })), t4) t4.hasOwnProperty(n3) && (e3.options[n3] = t4[n3]);
          }, t3.prototype.Ob = function(t4, n3, e3) {
            this.repaint();
          }, t3.prototype.Fpt = function() {
            return { sticky: r.StickyHelper.DefaultOptions() };
          }, t3.prototype.en = function(t4) {
            this.dataProvider = t4, t4.host = this;
          }, t3.prototype.rts = function() {
            this.nts = new r.StickyHelper(this);
          }, t3.prototype.Djn = function(t4, n3, e3) {
            var i3, r2, o2 = this.ignoreSticky(), a2 = this.Z5, u2 = a2.row, s2 = a2.col, c = !o2 && this.nts.transformCoordinate(t4, n3, e3);
            return c && (t4 = c.r, n3 = c.c), { r: i3 = e3 ? t4 + u2 : t4 - u2, c: r2 = e3 ? n3 + s2 : n3 - s2 };
          }, t3.prototype.sts = function(t4, n3) {
            var e3, r2, u2, s2 = t4.typeName;
            if (s2) return "TableSheetDataProvider" === s2 && (r2 = o.TableSheetDataProvider), (u2 = r2 || (0, i2.getTypeFromString)(s2)) && (e3 = new u2(), this.en(e3), a(e3.fromJSON) && e3.fromJSON(t4, n3)), e3;
          }, t3.prototype.PGr = function() {
            var t4 = (0, i2.RF)(this.options);
            return delete t4._ps, t4;
          }, t3;
        })(), n2.DataRange = s;
      }, "./dist/plugins/dataRange/dataRangeManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l;
        function h(t3, n3) {
          var e3 = t3.ot();
          return new i2.Rect(Math.max(n3.x - 2, 0), Math.max(n3.y - 2, 0), Math.min(n3.width + 4, e3.width), Math.min(n3.height + 4, e3.height));
        }
        function d(t3, n3) {
          var e3 = t3.getSheetTab(n3);
          return e3._gi === i2.SheetType.tableSheet && e3;
        }
        function v(t3) {
          if (!t3 || "object" != typeof t3) return true;
          for (var n3 in t3) if (t3.hasOwnProperty(n3)) return false;
          return true;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataRangeManager = void 0, i2 = e2("Core"), r = e2("./dist/plugins/dataRange/dataRange.js"), o = e2("./dist/plugins/dataRange/dataRangeMixin.js"), a = e2("./dist/plugins/dataRange/providers/tablesheet-data-provider.js"), u = Object.keys, s = Object.assign, c = function(t3) {
          return "string" == typeof t3;
        }, f = function(t3) {
          return "number" == typeof t3;
        }, l = (function() {
          function t3(t4) {
            this.Mf = t4, this.ots = {};
          }
          return t3.prototype.add = function(t4, n3, e3, o2) {
            var u2, s2, f2, l2, h2;
            if (!this.hts(e3) && this.getNewUniqueName(t4) === t4) {
              if (c(n3)) {
                if (!(u2 = d(this.Mf.getParent(), n3))) return;
                f2 = (s2 = (n3 = new a.TableSheetDataProvider(u2, t4)).Ats()).rowCount, l2 = s2.colCount, e3 = new i2.Range(e3.row, e3.col, f2, l2), o2 && o2.sticky && o2.sticky.top && (o2.sticky.top = n3.rnr(i2.SheetArea.colHeader));
              }
              return h2 = new r.DataRange(t4, n3, e3, o2), this.ZP(h2), this.repaint(h2), h2;
            }
          }, t3.prototype.get = function(t4) {
            return this.ots[t4];
          }, t3.prototype.remove = function(t4, n3) {
            var e3, i3, r2;
            void 0 === n3 && (n3 = true), (r2 = this.ots[t4]) && (n3 && r2.dispose(), delete this.ots[t4], this.aKr() && (null === (i3 = null === (e3 = this.Mf) || void 0 === e3 ? void 0 : e3.Ut) || void 0 === i3 || i3.L5e()), this.repaintSheet());
          }, t3.prototype.all = function() {
            var t4, n3, e3, i3, r2 = [], o2 = this.uts();
            for (t4 = 0, n3 = o2; t4 < n3.length; t4++) e3 = n3[t4], (i3 = this.ots[e3]) && r2.push(i3);
            return r2;
          }, t3.prototype.clear = function() {
            var t4, n3, e3, i3 = this.uts();
            for (t4 = 0, n3 = i3; t4 < n3.length; t4++) e3 = n3[t4], this.remove(e3, true);
            i3.length > 0 && this.repaintSheet();
          }, t3.prototype.isEmpty = function() {
            return !this.rKr;
          }, t3.prototype.aKr = function() {
            var t4 = v(this.ots);
            return this.rKr = !t4, t4;
          }, t3.prototype.map = function() {
            return this.ots;
          }, t3.prototype.getByPosition = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this.uts();
            for (e3 = 0, i3 = u2; e3 < i3.length; e3++) if (r2 = i3[e3], (o2 = this.ots[r2]) && (a2 = o2.range()).contains(t4, n3)) return o2;
          }, t3.prototype.getByRange = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2 = [], f2 = this.uts();
            for (r2 = 0, o2 = f2; r2 < o2.length; r2++) a2 = o2[r2], (u2 = this.ots[a2]) && (s2 = u2.range()).intersect(t4, n3, e3, i3) && c2.push(u2);
            return c2;
          }, t3.prototype.dispose = function() {
            this.clear(), this.ots = null;
          }, t3.prototype.repaint = function(t4) {
            var n3, e3, i3, r2, o2 = this.Mf;
            !o2.hP() || o2.My > 0 || (n3 = t4.paintingRange(), e3 = 1, i3 = 1, (r2 = o2.getRangeRect(e3, i3, n3)) && o2.repaint(h(o2, r2)));
          }, t3.prototype.repaintSheet = function() {
            this.Mf.repaint();
          }, t3.prototype.onCopyOrMoving = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = [], d2 = this.uts();
            for (e3 = 0, i3 = d2; e3 < i3.length; e3++) r2 = i3[e3], (o2 = this.ots[r2]) && (u2 = (a2 = o2.range()).row, s2 = a2.col, c2 = a2.rowCount, f2 = a2.colCount, t4.contains(u2, s2, c2, f2) && (n3 && (l2 = o2.name(), this.remove(l2, false)), h2.push(o2)));
            return h2;
          }, t3.prototype.dKr = function(t4) {
            var n3, e3, i3, r2, o2, a2;
            if (t4) {
              for (n3 = [], e3 = 0, i3 = t4; e3 < i3.length; e3++) o2 = (r2 = i3[e3]).name(), a2 = r2.onCopy(o2), n3.push(a2);
              return n3;
            }
          }, t3.prototype.onCopyOrMoved = function(t4, n3, e3, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p, g, m, b, y, w;
            if (t4) for (c2 = 0, f2 = t4.length; c2 < f2; c2++) {
              if (h2 = l2 = t4[c2], u2) {
                if (!(d2 = l2.onMove())) {
                  this.ZP(h2);
                  continue;
                }
                this.ats(l2.name(), l2.range());
              } else {
                if (v2 = l2.name(), !(p = s2[c2]) || "boolean" == typeof p) continue;
                if (g = p.name, !(m = p.dataProvider)) continue;
                g || (g = this.getNewUniqueName(v2)), b = l2.PGr(), (h2 = new r.DataRange(g, m, l2.range(), b)).attachHost(this), this.fts(g), l2.xGr = true, h2.xGr = true;
              }
              h2.xGr = true, y = h2.range(), w = new i2.Range(o2 + y.row - n3, a2 + y.col - e3, y.rowCount, y.colCount), h2.range(w), this.ZP(h2);
            }
          }, t3.prototype.getNewUniqueName = function(t4) {
            var n3, e3, i3, r2 = this.cts();
            if (!r2[t4]) return t4;
            for (n3 = 1, e3 = true, i3 = t4; e3; ) i3 = t4 + (t4.length > 3 ? "" : "_") + n3, n3++, e3 = !!r2[i3];
            return i3;
          }, t3.prototype.getSheetTopRow = function() {
            return this.Mf.Tb;
          }, t3.prototype.getStickyTopRowCount = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this.all(), h2 = 0;
            for (e3 = 0, i3 = l2; e3 < i3.length; e3++) if ((r2 = i3[e3]).isSticky(t4) && (o2 = r2.getStickyTopRowCount(), h2 = Math.max(h2, o2), n3 && (a2 = r2.range(), (u2 = r2.getSpans(a2.row, a2.col, a2.rowCount, a2.colCount)) && u2.length > 0))) for (s2 = 0, c2 = u2; s2 < c2.length; s2++) f2 = c2[s2], h2 = Math.max(h2, f2.row + f2.rowCount);
            return h2;
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2;
            if (!this.isEmpty()) {
              for (n3 = [], e3 = this.uts(), i3 = t4 && t4.gp, r2 = 0, o2 = e3; r2 < o2.length; r2++) if (a2 = o2[r2], u2 = this.ots[a2]) {
                if (i3 && u2.isCustomDataRange()) continue;
                (s2 = u2.toJSON(t4)) && n3.push(s2);
              }
              return n3;
            }
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, o2, a2, u2;
            if (t4.length > 0) for (this.clear(), e3 = 0, i3 = t4; e3 < i3.length; e3++) o2 = i3[e3], (a2 = new r.DataRange()).attachHost(this), (u2 = a2.fromJSON(o2, n3)) && this.ZP(a2);
          }, t3.prototype.getUsedRange = function(t4) {
            var n3, e3, r2, o2, a2 = this.all(), u2 = {};
            if (a2) for (e3 = 0, r2 = a2; e3 < r2.length; e3++) n3 = (o2 = r2[e3]).range(), t4 && (n3 = t4.getIntersect(n3)), i2.UsedRangeUtil.vh(u2, i2.UsedRangeUtil.hh(n3));
            return u2;
          }, t3.prototype.onAddRows = function(t4, n3, e3, r2) {
            var a2, u2, s2, c2, f2, l2;
            if (e3 === i2.SheetArea.viewport && (a2 = this.all()) && a2.length > 0) for (u2 = 0, s2 = a2; u2 < s2.length; u2++) t4 >= (f2 = (c2 = s2[u2]).range()).row + f2.rowCount || (t4 + n3 <= f2.row ? (this.ats(c2.name(), c2.range()), c2.range(new i2.Range(f2.row + n3, f2.col, f2.rowCount, f2.colCount))) : (l2 = r2 && [], c2.addRows(t4, n3, l2), l2 && l2.length > 0 && (0, o.vts)(r2, l2, c2.name(), i2.DataRangeChangeType.rowCount)));
          }, t3.prototype.onDeleteRows = function(t4, n3, e3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p, g;
            if (e3 === i2.SheetArea.viewport && (a2 = this.all()) && a2.length > 0) for (u2 = 0, s2 = a2; u2 < s2.length; u2++) f2 = (c2 = s2[u2]).name(), t4 >= (l2 = c2.range()).row + l2.rowCount || (t4 + n3 <= l2.row ? (this.ats(f2, c2.range()), c2.range(new i2.Range(l2.row - n3, l2.col, l2.rowCount, l2.colCount))) : (h2 = r2 && [], v2 = (d2 = this.gGr(t4, n3, void 0, void 0, l2)).row, p = d2.rowCount, v2 === l2.row && p === l2.rowCount ? (h2 && this.TGr(f2), g = !h2, this.remove(f2, g)) : (c2.deleteRows(v2, p, h2), h2 && h2.length > 0 && (0, o.vts)(r2, h2, f2, i2.DataRangeChangeType.rowCount))));
          }, t3.prototype.onAddColumns = function(t4, n3, e3, r2) {
            var a2, u2, s2, c2, f2, l2;
            if (e3 === i2.SheetArea.viewport && (a2 = this.all()) && a2.length > 0) for (u2 = 0, s2 = a2; u2 < s2.length; u2++) t4 >= (f2 = (c2 = s2[u2]).range()).col + f2.colCount || (t4 + n3 <= f2.col ? (this.ats(c2.name(), c2.range()), c2.range(new i2.Range(f2.row, f2.col + n3, f2.rowCount, f2.colCount))) : (l2 = r2 && [], c2.addColumns(t4, n3, l2), l2 && l2.length > 0 && (0, o.vts)(r2, l2, c2.name(), i2.DataRangeChangeType.colCount)));
          }, t3.prototype.onDeleteColumns = function(t4, n3, e3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p, g;
            if (e3 === i2.SheetArea.viewport && (a2 = this.all()) && a2.length > 0) for (u2 = 0, s2 = a2; u2 < s2.length; u2++) f2 = (c2 = s2[u2]).name(), t4 >= (l2 = c2.range()).col + l2.colCount || (t4 + n3 <= l2.col ? (this.ats(f2, c2.range()), c2.range(new i2.Range(l2.row, l2.col - n3, l2.rowCount, l2.colCount))) : (h2 = r2 && [], v2 = (d2 = this.gGr(void 0, void 0, t4, n3, l2)).col, p = d2.colCount, v2 === l2.col && p === l2.colCount ? (h2 && this.TGr(f2), g = !h2, this.remove(f2, g)) : (c2.deleteColumns(v2, p, h2), h2 && h2.length > 0 && (0, o.vts)(r2, h2, f2, i2.DataRangeChangeType.colCount))));
          }, t3.prototype.switchToPrintContext = function() {
            var t4, n3, e3, i3 = this.all();
            if (i3.length > 0) for (t4 = 0, n3 = i3; t4 < n3.length; t4++) (e3 = n3[t4]).switchToPrintContext();
          }, t3.prototype.startPasteChecking = function() {
            this.HGr = true;
          }, t3.prototype.endPasteChecking = function() {
            this.HGr = false;
          }, t3.prototype.ignoreSticky = function() {
            var t4, n3 = null === (t4 = this.Mf) || void 0 === t4 ? void 0 : t4.parent;
            return this.HGr || (null == n3 ? void 0 : n3.Gie);
          }, t3.prototype.ZP = function(t4) {
            var n3, e3, i3 = t4.name();
            this.ots[i3] = t4, t4.attachHost(this), this.aKr(), null === (e3 = null === (n3 = this.Mf) || void 0 === n3 ? void 0 : n3.Ut) || void 0 === e3 || e3.L5e();
          }, t3.prototype.uts = function() {
            return this.ots ? u(this.ots) : [];
          }, t3.prototype.hts = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2;
            if (t4 instanceof i2.Range) {
              for (e3 = 0, r2 = n3 = this.uts(); e3 < r2.length; e3++) if (o2 = r2[e3], s2 = (u2 = (a2 = this.ots[o2]).range()).row, c2 = u2.col, f2 = u2.rowCount, l2 = u2.colCount, t4.intersect(s2, c2, f2, l2)) return true;
            }
            return false;
          }, t3.prototype.cts = function() {
            var t4, n3, e3, i3, r2 = this.Mf.parent, o2 = {};
            if (r2) for (t4 = 0, n3 = r2.sheets; t4 < n3.length; t4++) i3 = (e3 = n3[t4]).dataRanges.map(), s(o2, i3);
            return o2;
          }, t3.prototype.ats = function(t4, n3) {
            var e3, r2, a2 = this.Mf, u2 = a2.Ut;
            u2 && (e3 = u2.G8) && (r2 = [{ range: n3 }], (0, o.vts)(e3, r2, t4, i2.DataRangeChangeType.move));
          }, t3.prototype.dts = function(t4, n3) {
            var e3 = this.get(t4);
            e3 && e3.range(n3);
          }, t3.prototype.fts = function(t4) {
            var n3, e3, r2 = this.Mf, a2 = r2.Ut;
            a2 && (n3 = a2.G8) && (e3 = [{}], (0, o.vts)(n3, e3, t4, i2.DataRangeChangeType.copy));
          }, t3.prototype.lts = function(t4) {
            this.remove(t4, false);
          }, t3.prototype.TGr = function(t4) {
            var n3, e3, r2 = this.Mf, a2 = r2.Ut;
            a2 && (n3 = a2.G8) && (e3 = [{ dataRange: this.get(t4) }], (0, o.vts)(n3, e3, t4, i2.DataRangeChangeType.remove));
          }, t3.prototype.AGr = function(t4) {
            this.ZP(t4);
          }, t3.prototype.gGr = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = t4, s2 = n3;
            return f(t4) && f(n3) && (t4 < r2.row && (u2 = r2.row), u2 + n3 > r2.row + r2.rowCount && (s2 = r2.row + r2.rowCount - u2)), o2 = e3, a2 = i3, f(e3) && f(i3) && (e3 < r2.col && (o2 = r2.col), o2 + i3 > r2.col + r2.colCount && (a2 = r2.col + r2.colCount - o2)), { row: u2, rowCount: s2, col: o2, colCount: a2 };
          }, t3;
        })(), n2.DataRangeManager = l;
      }, "./dist/plugins/dataRange/dataRangeMixin.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b;
        function y(t3, n3) {
          return t3.getRowCount(n3);
        }
        function w(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function M(t3) {
          return { row: t3.getActiveRowIndex(), col: t3.getActiveColumnIndex() };
        }
        function C(t3, n3, e3) {
          var i3 = t3.Mf.dataRanges;
          if (i3 && !i3.isEmpty()) return i3.getByPosition(n3, e3);
        }
        function S(t3, n3, e3, i3, r2) {
          var o2 = t3.Mf.dataRanges;
          if (o2 && !o2.isEmpty()) return -1 === n3 && -1 === e3 && -1 === i3 && -1 === r2 ? o2.all() : o2.getByRange(n3, e3, i3, r2);
        }
        function T(t3, n3, e3, r2, o2) {
          return t3 + e3 > o2.row + o2.rowCount && (e3 += o2.row + o2.rowCount - (t3 + e3)), n3 + r2 > o2.col + o2.colCount && (r2 += o2.col + o2.colCount - (n3 + r2)), new i2.Range(t3, n3, e3, r2);
        }
        function x(t3) {
          return t3.dataRangeChanges || (t3.dataRangeChanges = []), t3.dataRangeChanges;
        }
        function A(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          if (0 !== n3.length) for (r2 = x(t3), o2 = 0, a2 = n3; o2 < a2.length; o2++) (u2 = a2[o2])[s] = e3, u2[c] = i3, r2.push(u2);
        }
        function I(t3, n3) {
          var e3, i3, r2, o2, s2, c2, f2, l2, h2 = t3.Mf, d2 = t3.all();
          if (d2.length > 0) for (e3 = 0, i3 = d2; e3 < i3.length; e3++) (r2 = i3[e3]).dataProvider && r2.dataProvider instanceof u.TableSheetDataProvider && !n3 && (o2 = r2.name().replace(/ /g, "") + "Table", s2 = r2.getTableRange(), c2 = h2.hl, (f2 = r2.convertContext({ sheet: h2 })).sheet !== h2 && f2.sheet.NMi && (c2 = f2.sheet.NMi.hl), (l2 = new a.Table(o2, s2.row, s2.col, s2.rowCount, s2.colCount, c2, { showHeader: false })).FGr = true, h2.tables.WB(l2));
        }
        function k(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2;
          for (e3 = 0, i3 = t3; e3 < i3.length; e3++) if ((r2 = i3[e3]).tables && (o2 = r2.tables.all()).length > 0) for (a2 = 0, u2 = o2; a2 < u2.length; a2++) s2 = u2[a2], !n3 && s2.FGr && r2.tables.DK(s2);
        }
        function N(t3, n3, e3) {
          var r2, o2, a2, s2, c2, l2, h2, v2, g2, m2, b2, y2, w2, M2, C2, S2 = t3.Mf, T2 = t3.all();
          if (T2.length > 0) {
            for (r2 = 0, o2 = T2; r2 < o2.length; r2++) if (s2 = (a2 = o2[r2]).range(), l2 = (c2 = a2.dataProvider instanceof u.TableSheetDataProvider) && !e3 || !c2 && e3) for (!e3 && c2 && (h2 = a2.dataProvider.Sts(i2.SheetArea.rowHeader, true), s2.col += h2, s2.colCount += h2), v2 = c2 && _(a2), g2 = s2.row; g2 < s2.row + s2.rowCount; g2++) for (m2 = s2.col; m2 < s2.col + s2.colCount; m2++) b2 = S2.getValue(g2, m2), y2 = S2.getActualStyle(g2, m2), v2 && (C2 = (M2 = (w2 = a2.convertContext({ sheet: S2, row: g2, col: m2, sheetArea: i2.SheetArea.viewport })).sheet).NMi, f(w2.rowSpacingIndex) && (d(C2.getValueInOneCell) && (b2 = C2.getValueInOneCell({ row: w2.row, col: w2.col, rowSpacingIndex: w2.rowSpacingIndex, isAfterRowSpacing: w2.isAfterRowSpacing })), y2 = M2.getActualStyle(w2.row, w2.col, i2.SheetArea.viewport, void 0, { rowSpacingIndex: w2.rowSpacingIndex, isAfterRowSpacing: w2.isAfterRowSpacing }))), b2 && p.W0(b2) && (b2 = p.Q0(b2)), S2.s8(n3, g2, m2, b2, false, y2);
          }
        }
        function j(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t3.Mf, l2 = t3.all();
          if (l2.length > 0) {
            for (e3 = 0, i3 = l2; e3 < i3.length; e3++) if (o2 = (r2 = i3[e3]).range(), (a2 = f2.getSpans(o2)).length > 0) for (u2 = 0, s2 = a2; u2 < s2.length; u2++) c2 = s2[u2], n3.push(c2);
          }
        }
        function D(t3) {
          var n3, e3;
          return !!t3 && (n3 = t3.includeBindingSource && t3.cb === i2.OpenSaveFileType.excel, e3 = t3.gp, n3 || e3);
        }
        function _(t3) {
          var n3 = t3.dataProvider.vMi;
          return n3 && n3.lMi && n3.isGroupOutlineCondensedLayout();
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.KGr = n2.vts = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/dataRange/dataRangeManager.js"), a = e2("Tables"), u = e2("./dist/plugins/dataRange/providers/tablesheet-data-provider.js"), s = "_dataRangeName", c = "_dataRangeChangeType", f = function(t3) {
          return "number" == typeof t3;
        }, l = function(t3) {
          return void 0 === t3;
        }, h = function(t3) {
          return t3 instanceof i2.Style;
        }, d = function(t3) {
          return "function" == typeof t3;
        }, v = "dataRange", p = r.Common.ct, g = Math.min, m = Math.max, b = function(t3, n3, e3, r2, o2) {
          return new i2.Range(t3, n3, o2 ? r2 : e3, o2 ? e3 : r2);
        }, n2.vts = A, n2.KGr = D, i2.Worksheet.ch(v, { priority: 9001, init: function() {
          this.dataRanges = new o.DataRangeManager(this);
        }, processKeyDown: function(t3) {
          var n3 = M(this), e3 = n3.row, i3 = n3.col, r2 = C(this.Ut, e3, i3);
          r2 && (t3.r = r2.onKeyDown(e3, i3, t3.e));
        }, processKeyUp: function(t3) {
          var n3 = M(this), e3 = n3.row, i3 = n3.col, r2 = C(this.Ut, e3, i3);
          r2 && (t3.r = r2.onKeyUp(e3, i3, t3.e));
        }, processMouseDown: function(t3) {
          var n3, e3, r2, o2, a2 = t3.hitInfo, u2 = t3.e;
          a2 && (n3 = a2.row, e3 = a2.col, (r2 = a2.hitTestType) === i2.SheetArea.viewport && (o2 = C(this.Ut, n3, e3)) && (t3.r = o2.onMouseDown(n3, e3, u2)));
        }, processMouseMove: function(t3) {
          var n3, e3, r2, o2, a2 = t3.hitInfo, u2 = t3.e;
          a2 && (n3 = a2.row, e3 = a2.col, (r2 = a2.hitTestType) === i2.SheetArea.viewport && (o2 = C(this.Ut, n3, e3)) && (t3.r = o2.onMouseMove(n3, e3, u2)));
        }, processMouseUp: function(t3) {
          var n3, e3, r2, o2, a2 = t3.hitInfo, u2 = t3.e;
          a2 && (n3 = a2.row, e3 = a2.col, (r2 = a2.hitTestType) === i2.SheetArea.viewport && (o2 = C(this.Ut, n3, e3)) && (t3.r = o2.onMouseUp(n3, e3, u2)));
        }, preProcessMouseDbClick: function(t3) {
          var n3, e3, r2, o2, a2 = t3.target, u2 = t3.e;
          a2 && (n3 = a2.row, e3 = a2.col, (r2 = a2.hitTestType) === i2.SheetArea.viewport && (o2 = C(this.Ut, n3, e3)) && (t3.r = o2.onDoubleClick(n3, e3, u2)));
        }, preProcessContextMenu: function(t3) {
          var n3, e3, r2, o2, a2, u2 = t3.hitInfo, s2 = t3.e;
          u2 && u2.worksheetHitInfo && (e3 = (n3 = u2.worksheetHitInfo).row, r2 = n3.col, (o2 = n3.hitTestType) === i2.SheetArea.viewport && (a2 = C(this.Ut, e3, r2)) && (t3.r = a2.onContextMenu(e3, r2, s2)));
        }, processMouseWheel: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2;
          this.sw && (e3 = (n3 = this.sw).row, r2 = n3.col, o2 = n3.hitTestType, a2 = t3.detailX, u2 = t3.detailY, s2 = t3.e, o2 === i2.SheetArea.viewport && (c2 = C(this.Ut, e3, r2)) && (t3.r = c2.onMouseWheel(a2, u2, s2)));
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this.dataRanges;
          if (h2) if ("addRows" === (n3 = t3.changeType)) e3 = t3.row, i3 = t3.rowCount, r2 = t3.sheetArea, o2 = t3.G8, h2.onAddRows(e3, i3, r2, o2);
          else if ("deleteRows" === n3) e3 = t3.row, i3 = t3.rowCount, r2 = t3.sheetArea, o2 = t3.G8, h2.onDeleteRows(e3, i3, r2, o2);
          else if ("addColumns" === n3) a2 = t3.col, u2 = t3.colCount, r2 = t3.sheetArea, o2 = t3.G8, h2.onAddColumns(a2, u2, r2, o2);
          else if ("deleteColumns" === n3) a2 = t3.col, u2 = t3.colCount, r2 = t3.sheetArea, o2 = t3.G8, h2.onDeleteColumns(a2, u2, r2, o2);
          else for (c2 = 0, f2 = s2 = h2.all(); c2 < f2.length; c2++) (l2 = f2[c2]).onLayoutChanged(t3);
        }, dispose: function(t3) {
          var n3 = this.dataRanges;
          n3 && t3.clearCache && (n3.dispose(), this.dataRanges = null);
        }, toJson: function(t3, n3) {
          var e3, i3, r2, o2 = this.dataRanges;
          o2 && !o2.isEmpty() && (e3 = D(n3), (i3 = o2.toJSON(n3)) && (t3.dataRanges = i3), e3 && (r2 = n3 && n3.gp, t3.data.dataTable || (t3.data.dataTable = {}), N(o2, t3.data.dataTable, r2), t3.spans || (t3.spans = []), j(o2, t3.spans), I(o2, r2)));
        }, fromJson: function(t3, n3, e3) {
          var i3, r2 = this.dataRanges;
          r2 && (i3 = t3.dataRanges) && r2.fromJSON(i3, e3);
        }, wh: function(t3) {
          var n3, e3 = this.dataRanges;
          e3 && (n3 = t3.lossless) && (n3.dataRanges = e3.toJSON());
        }, yh: function(t3) {
          var n3, e3, i3 = this.dataRanges;
          i3 && (e3 = null === (n3 = null == t3 ? void 0 : t3.lossless) || void 0 === n3 ? void 0 : n3.dataRanges) && i3.fromJSON(e3);
        }, lastNonNullRowAndCol: function() {
          var t3, n3, e3, i3, r2, o2 = -1, a2 = -1, u2 = this.dataRanges;
          if (u2 && (t3 = u2.all()).length > 0) for (n3 = 0, e3 = t3; n3 < e3.length; n3++) r2 = (i3 = e3[n3]).range(), o2 = Math.max(o2, r2.row + r2.rowCount - 1), a2 = Math.max(a2, r2.col + r2.colCount - 1);
          return { lastNonNullRow: o2, lastNonNullCol: a2 };
        }, getUsedRange: function(t3) {
          if (t3.type & i2.UsedRangeType.dataRange) {
            var n3 = this.dataRanges.getUsedRange(t3.maxRange);
            i2.UsedRangeUtil.vh(t3.range, n3);
          }
        }, beforeExecuteShortcut: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2 = M(this), f2 = c2.row, l2 = c2.col, h2 = this.dataRanges.getByPosition(f2, l2);
          if (h2 && (e3 = h2.convertContext({ sheet: this, row: f2, col: l2, sheetArea: i2.SheetArea.viewport })) && e3.sheet !== this && (n3 = e3.sheet), r2 = { clear: true }, t3 && t3.cmds && t3.cmds.length > 0) for (o2 = 0, a2 = t3.cmds; o2 < a2.length; o2++) r2[s2 = (u2 = a2[o2]).Zc] && n3 && (t3.convertedSheets[s2] = n3);
        }, copyOrMoveTo: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = t3.copyToOption, s2 = t3.src, c2 = t3.dest, f2 = t3.isMove, l2 = !f2, h2 = t3.srcRow, d2 = t3.srcColumn, v2 = t3.rowCount, p2 = t3.columnCount;
          if (l2 && (1 & u2) > 0 && ((e3 = s2.dataRanges) && !e3.isEmpty() && (n3 = e3.onCopyOrMoving(b(m(0, h2), m(0, d2), h2 < 0 ? g(y(s2), y(c2)) : v2, d2 < 0 ? g(w(s2), w(c2)) : p2), f2)), (i3 = c2.dataRanges) && (r2 = i3.dKr(n3)))) {
            for (o2 = 0; o2 < r2.length; o2++) if (true === (a2 = r2[o2])) {
              t3.cancel = true;
              break;
            }
            t3.dataRangeCopyResults = r2;
          }
        }, onCopyOrMoveRange: function() {
          var t3, n3, e3, i3 = this.dataRanges && this.dataRanges.all();
          if (i3 && i3.length > 0) for (t3 = 0, n3 = i3; t3 < n3.length; t3++) (e3 = n3[t3]).xGr = false;
        }, checkingPastedRange: function() {
          var t3 = this.dataRanges;
          !t3 && t3.isEmpty() || t3.startPasteChecking();
        }, checkedPastedRange: function() {
          var t3 = this.dataRanges;
          !t3 && t3.isEmpty() || t3.endPasteChecking();
        } }), i2.Y8.ch(v, { priority: 8e3, isValid: function(t3) {
          var n3 = ["getValue", "setValue", "getStyle", "beforeSetStyle"].indexOf(t3) > -1, e3 = !this.Mf.dataRanges.isEmpty();
          return !n3 || e3;
        }, getValue: function(t3) {
          var n3, e3, r2 = t3.row, o2 = t3.col, a2 = t3.sheetArea, u2 = t3.isCopy;
          if (a2 === i2.SheetArea.viewport && (n3 = C(this, r2, o2))) {
            if (u2 && n3.xGr) return;
            e3 = n3.getValue(r2, o2), l(e3) || (t3.value = e3, t3.isValueGet = true);
          }
        }, setValue: function(t3) {
          var n3, e3, r2, o2 = t3.row, a2 = t3.col, u2 = t3.value, s2 = t3.sheetArea, c2 = t3.changes, f2 = t3.isCopy;
          if (s2 === i2.SheetArea.viewport && (n3 = C(this, o2, a2))) {
            if (f2 && n3.xGr) return;
            e3 = c2 && [], (r2 = n3.setValue(o2, a2, u2, e3)) && (t3.value = u2, t3.isValueSet = true), e3 && e3.length > 0 && A(c2, e3, n3.name(), i2.DataRangeChangeType.value);
          }
        }, getStyle: function(t3) {
          var n3, e3, r2 = t3.row, o2 = t3.col, a2 = t3.sheetArea, u2 = t3.isCopy;
          if (a2 === i2.SheetArea.viewport && (n3 = C(this, r2, o2))) {
            if (u2 && n3.xGr) return;
            e3 = n3.getStyle(r2, o2), h(e3) && (t3.style = e3, t3.isStyleGet = true);
          }
        }, beforeSetStyle: function(t3) {
          var n3 = t3.row, e3 = t3.col, r2 = t3.sheetArea, o2 = C(this, n3, e3);
          r2 === i2.SheetArea.viewport && o2 && (t3.isStyleSet = true);
        }, getSpans: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2 = t3.row, b2 = t3.col, y2 = t3.rowCount, w2 = t3.colCount, M2 = t3.sheetArea;
          if (f(y2) && -1 !== y2 || (y2 = 1), f(w2) && -1 !== w2 || (w2 = 1), M2 === i2.SheetArea.viewport && (n3 = S(this, m2, b2, y2, w2)) && n3.length > 0) {
            for (e3 = t3.isSpansGet, r2 = 0, o2 = n3; r2 < o2.length; r2++) if ((u2 = (a2 = o2[r2]).range().getIntersect(new i2.Range(m2, b2, y2, w2), this.getRowCount(), this.getColumnCount())) && (s2 = a2.getSpans(u2.row, u2.col, u2.rowCount, u2.colCount)) && s2.length > 0) {
              for (c2 = 0, l2 = s2; c2 < l2.length; c2++) h2 = l2[c2], g2 = T(v2 = (d2 = a2.Djn(h2.row, h2.col, true)).r, p2 = d2.c, h2.rowCount, h2.colCount, a2.range()), t3.spans.push(g2);
              e3 = true;
            }
            t3.mergeSpanModel = true, t3.isSpansGet = e3;
          }
        }, preClear: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3.row, d2 = t3.col, v2 = t3.rowCount, p2 = t3.colCount, g2 = t3.sheetArea, m2 = t3.changes;
          if (g2 === i2.SheetArea.viewport && (n3 = S(this, h2, d2, v2, p2)) && n3.length > 0) for (e3 = 0, r2 = n3; e3 < r2.length; e3++) (a2 = (o2 = r2[e3]).range().getIntersect(new i2.Range(h2, d2, v2, p2), this.getRowCount(), this.getColumnCount())) && (u2 = m2 && [], a2.equals(o2.range()) ? (s2 = o2.ayt, c2 = o2.name(), u2 && s2.TGr(c2), f2 = !u2, s2.remove(c2, f2)) : (true === (l2 = o2.onClear(a2, u2)) && (t3.isClearStop = true), u2 && u2.length > 0 && A(m2, u2, o2.name(), i2.DataRangeChangeType.clear)));
        }, undo: function(t3) {
          var n3, e3, r2, o2, a2, u2, f2, l2, h2, d2, v2 = x(t3);
          if (v2 && 0 !== v2.length) for (n3 = this.Mf.dataRanges, e3 = 0, r2 = v2; e3 < r2.length; e3++) f2 = (a2 = o2 = r2[e3])[u2 = s], (h2 = a2[l2 = c]) === i2.DataRangeChangeType.move ? n3.dts(f2, o2.range) : h2 === i2.DataRangeChangeType.copy ? n3.lts(f2) : h2 === i2.DataRangeChangeType.remove ? n3.AGr(o2.dataRange) : (d2 = n3.get(f2)) && d2.undo(o2);
        } }), i2.Workbook.ch(v, { fromJson: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2, s2 = this.sheets;
          if (s2.length > 0) {
            for (t3 = 0, n3 = s2; t3 < n3.length; t3++) if ((i3 = (e3 = n3[t3]).dataRanges) && (r2 = i3.all()).length > 0) for (o2 = 0, a2 = r2; o2 < a2.length; o2++) (u2 = a2[o2]).afterFromJSON(this);
          }
        }, toJson: function(t3, n3) {
          var e3, i3 = n3 && n3.gp;
          D(n3) && k(e3 = this.sheets, i3);
        } });
      }, "./dist/plugins/dataRange/dataRangeSticky.js": function(t2, n2) {
        "use strict";
        var e2, i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.StickyHelper = void 0, e2 = 0, i2 = function(t3) {
          return "number" == typeof t3;
        }, r = (function() {
          function t3(t4) {
            this._dataRange = t4;
          }
          return t3.prototype.isSticky = function(t4) {
            var n3, e3, r2 = this.bLe();
            return 0 !== r2 && ((n3 = i2(t4) ? t4 : this._dataRange.getCurrentTopRow()) > (e3 = this._dataRange.range()).row && n3 < e3.row + e3.rowCount);
          }, t3.prototype.transformCoordinate = function(t4, n3, e3) {
            var i3, r2, o, a;
            return this.isSticky() && (i3 = this._dataRange.getCurrentTopRow(), r2 = this.bLe(), o = this._dataRange.range(), !e3 && t4 >= i3 ? (a = t4 - i3, t4 < i3 + r2 && (t4 = o.row + a)) : e3 && t4 < i3 && (t4 += i3 - o.row)), { r: t4, c: n3 };
          }, t3.prototype.bLe = function() {
            return this._dataRange.options.sticky.top || e2;
          }, t3.DefaultOptions = function() {
            return { top: e2 };
          }, t3;
        })(), n2.StickyHelper = r;
      }, "./dist/plugins/dataRange/providers/tablesheet-data-provider.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        function a(t3) {
          var n3 = new i2.Range(t3.row, t3.col, t3.rowCount, t3.colCount);
          return n3.sheetArea = t3.sheetArea, n3.isAutoMerge = t3.isAutoMerge, n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TableSheetDataProvider = void 0, i2 = e2("Core"), r = function(t3) {
          return null == t3;
        }, o = (function() {
          function t3(t4, n3) {
            this.gp = false, this.typeName = "TableSheetDataProvider", this.uGr(t4, n3), this.Hc();
          }
          return t3.prototype.getSheet = function() {
            return this.vMi.getSheet();
          }, t3.prototype.getSource = function() {
            return this.vMi;
          }, t3.prototype.getAxis = function(t4, n3) {
            var e3, i3, r2, o2, a2, u, s, c, f;
            if (this.Rts || (this.Rts = this.jts()), this.bts || (this.bts = this.jts(true)), this.Rts[t4] && this.bts[n3]) return i3 = (e3 = this.Rts[t4]).index, r2 = e3.sheetArea, o2 = e3.rowSpacingIndex, a2 = e3.isAfterRowSpacing, s = (u = this.bts[n3]).index, c = u.sheetArea, { r: i3, c: s, sheetArea: f = this.Mts(r2, c), rowSpacingIndex: o2, isAfterRowSpacing: a2 };
          }, t3.prototype.getValue = function(t4, n3) {
            var e3, i3, r2, o2, a2, u = this.getAxis(t4, n3);
            if (u) return e3 = u.r, i3 = u.c, r2 = u.sheetArea, o2 = u.rowSpacingIndex, a2 = u.isAfterRowSpacing, this.getSheet().getValue(e3, i3, r2, void 0, { rowSpacingIndex: o2, isAfterRowSpacing: a2 });
          }, t3.prototype.setValue = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this.getAxis(t4, n3);
            if (a2) return i3 = a2.r, r2 = a2.c, o2 = a2.sheetArea, this.getSheet().setValue(i3, r2, e3, o2), true;
          }, t3.prototype.getStyle = function(t4, n3) {
            var e3, r2, o2, a2, u, s, c, f, l = this.getAxis(t4, n3);
            if (l) return e3 = l.r, r2 = l.c, o2 = l.sheetArea, a2 = l.rowSpacingIndex, u = l.isAfterRowSpacing, (s = this.getSheet().getActualStyle(e3, r2, o2, void 0, { rowSpacingIndex: a2, isAfterRowSpacing: u })).cellType || o2 === i2.SheetArea.viewport || (s.cellType = this.getSheet().getCellType(-1, -1, o2), s.cellType.fGr = true), this.gp && (o2 === i2.SheetArea.corner ? s = new i2.Style() : o2 === i2.SheetArea.rowHeader && (c = 1 === this.vMi.getSheet().getColumnCount(i2.SheetArea.rowHeader), f = r2 < this.vMi.getSheet().getColumnCount(i2.SheetArea.rowHeader) - 1, (!c || c && f) && (s = new i2.Style()))), s;
          }, t3.prototype.getSpans = function(t4, n3, e3, r2) {
            var o2, u, s, c, f, l, h, d = this, v = new i2.Range(t4, n3, e3, r2), p = this.rnr(i2.SheetArea.colHeader, true), g = this.Sts(i2.SheetArea.rowHeader, true), m = this.rnr(i2.SheetArea.viewport, true), b = this.Sts(i2.SheetArea.viewport, true), y = 1 === e3 && 1 === r2, w = [];
            return g > 0 && p > 0 && (o2 = new i2.Range(0, 0, p, g), v.contains(o2.row, o2.col, o2.rowCount, o2.colCount) && (o2.col = this.Cts(o2.col, i2.SheetArea.rowHeader, true), w.push(o2))), p > 0 && (u = new i2.Range(0, g, p, b), (s = this.mts(v, u, i2.SheetArea.colHeader, y)).length > 0 && s.forEach((function(t5) {
              var n4 = a(t5);
              n4.col = d.Cts(n4.col, i2.SheetArea.viewport, true), w.push(n4);
            }))), g > 0 && (c = new i2.Range(p, 0, m, g), (f = this.mts(v, c, i2.SheetArea.rowHeader, y)).length > 0 && f.forEach((function(t5) {
              var n4 = a(t5);
              n4.row = d.Cts(n4.row, i2.SheetArea.viewport), n4.col = d.Cts(n4.col, i2.SheetArea.rowHeader, true), w.push(n4);
            }))), l = new i2.Range(p, g, m, b), (h = this.mts(v, l, i2.SheetArea.viewport, y)).length > 0 && h.forEach((function(t5) {
              var n4 = a(t5);
              n4.row = d.Cts(n4.row, i2.SheetArea.viewport), n4.col = d.Cts(n4.col, i2.SheetArea.viewport, true), w.push(n4);
            })), w.length > 0 && w;
          }, t3.prototype.onCopy = function(n3) {
            var e3, i3, r2 = null === (e3 = this.host) || void 0 === e3 ? void 0 : e3.manager();
            return r2 && (i3 = null == r2 ? void 0 : r2.getNewUniqueName(n3)) !== n3 && (n3 = i3), { name: n3, dataProvider: new t3(this.vMi, n3) };
          }, t3.prototype.onClear = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this.getSheet();
            for (a2.suspendPaint(), a2.mno && a2.mno(), r2 = t4; r2 < t4 + e3; r2++) for (o2 = n3; o2 < n3 + i3; o2++) this.setValue(r2, o2, null);
            a2.Nno && a2.Nno(), a2.resumePaint();
          }, t3.prototype.onKeyDown = function(t4, n3, e3) {
            return this.getSheet().rt.yk(e3), false;
          }, t3.prototype.onKeyUp = function(t4, n3, e3) {
            return this.getSheet().rt.yk(e3), false;
          }, t3.prototype.toJSON = function(t4) {
            var n3 = { typeName: this.typeName, tableSheet: this.vMi.name() };
            return (null == t4 ? void 0 : t4.gp) && (n3.XGr = this.Sts(i2.SheetArea.rowHeader, true)), n3;
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2 = t4.tableSheet;
            (null == n3 ? void 0 : n3.gp) && (this.XGr = t4.XGr), (e3 = this.host.ayt.Mf.getParent()) && (i3 = e3.getSheetTab(r2)) ? this.uGr(i3, this.host.name()) : this.iGr = r2;
          }, t3.prototype.afterFromJSON = function(t4) {
            var n3, e3, r2, o2, a2, u = this.iGr;
            u && !this.vMi && (n3 = t4.getSheetTab(u)) && (this.uGr(n3, this.host.name()), t4.Gie && (e3 = this.XGr, (r2 = n3.getSheet().getColumnCount(i2.SheetArea.rowHeader)) !== e3 && (o2 = this.host.range(), a2 = e3 - r2, this.host.range(new i2.Range(o2.row, o2.col + a2, o2.rowCount, o2.colCount - a2)))));
          }, t3.prototype.repaintHost = function() {
            this.host && this.host.repaint();
          }, t3.prototype.clearCache = function() {
            this.xts();
          }, t3.prototype.updateRange = function() {
            var t4 = this.host.range(), n3 = this.Ats(), e3 = n3.rowCount, r2 = n3.colCount;
            this.host.range(new i2.Range(t4.row, t4.col, e3, r2));
          }, t3.prototype.updateSticky = function() {
            if (this.Ltr()) {
              var t4 = this.rnr(i2.SheetArea.colHeader);
              this.host.updateSticky({ top: t4 });
            }
          }, t3.prototype.getTableRange = function() {
            var t4 = this.rnr(i2.SheetArea.colHeader, true), n3 = this.rnr(i2.SheetArea.viewport, true), e3 = this.Sts(i2.SheetArea.rowHeader, true), r2 = this.Sts(i2.SheetArea.viewport, true);
            return new i2.Range(t4, e3, n3, r2);
          }, t3.prototype.onDestroy = function(t4) {
            t4 && this.host && this.host.dispose(true), this.vMi && this.host && this.vMi.unregisterDataProvider(this.host.name()), this.name = null, this.host = null, this.vMi = null, this.iGr = null, this.Rts = null, this.bts = null;
          }, t3.prototype.switchToPrintContext = function() {
            this.gp = true;
          }, t3.prototype.Hc = function() {
            this.xts();
          }, t3.prototype.xts = function() {
            this.Rts = null, this.bts = null;
          }, t3.prototype.Csr = function(t4, n3) {
            return this.vMi.lMi && this.vMi.isGroupOutlineCondensedLayout() && this.vMi.getSheet().Csr && this.vMi.getSheet().Csr(t4, n3);
          }, t3.prototype.kno = function(t4, n3) {
            var e3 = this.getSheet();
            return e3.getRowVisible(t4, n3) && e3.getRowHeight(t4, n3) > 0;
          }, t3.prototype.Ono = function(t4, n3) {
            var e3 = this.getSheet();
            return e3.getColumnVisible(t4, n3) && e3.getColumnWidth(t4, n3) > 0;
          }, t3.prototype.jts = function(t4) {
            var n3, e3, r2, o2, a2, u, s, c, f = [], l = t4 ? this.Sts(i2.SheetArea.rowHeader) : this.rnr(i2.SheetArea.colHeader), h = this.vMi.getSheet();
            for (n3 = 0; n3 < l; n3++) (t4 ? this.Ono(n3, i2.SheetArea.rowHeader) : this.kno(n3, i2.SheetArea.colHeader)) && f.push({ index: n3, sheetArea: t4 ? i2.SheetArea.rowHeader : i2.SheetArea.colHeader });
            for (e3 = t4 ? this.Sts(i2.SheetArea.viewport) : this.rnr(i2.SheetArea.viewport), r2 = 0; r2 < e3; r2++) {
              if (o2 = !t4 && this.Csr(r2)) for (a2 = h.Rsr(r2), u = 0; u < a2; u++) (s = h.Asr(r2, u)) > 0 && f.push({ index: r2, sheetArea: i2.SheetArea.viewport, rowSpacingIndex: u, isAfterRowSpacing: false });
              if ((t4 ? this.Ono(r2, i2.SheetArea.viewport) : this.kno(r2, i2.SheetArea.viewport)) && f.push({ index: r2, sheetArea: i2.SheetArea.viewport }), c = !t4 && this.Csr(r2, true)) for (a2 = h.Rsr(r2, true), u = 0; u < a2; u++) (s = h.Asr(r2, u, true)) > 0 && f.push({ index: r2, sheetArea: i2.SheetArea.viewport, rowSpacingIndex: u, isAfterRowSpacing: true });
            }
            return f;
          }, t3.prototype.rnr = function(t4, n3) {
            return n3 ? (this.Rts || (this.Rts = this.jts()), this.Rts.filter((function(n4) {
              return n4.sheetArea === t4;
            })).length) : this.getSheet().getRowCount(t4);
          }, t3.prototype.Sts = function(t4, n3) {
            return n3 ? (this.bts || (this.bts = this.jts(true)), this.bts.filter((function(n4) {
              return n4.sheetArea === t4;
            })).length) : this.getSheet().getColumnCount(t4);
          }, t3.prototype.Mts = function(t4, n3) {
            var e3 = i2.SheetArea.viewport;
            return t4 === i2.SheetArea.colHeader && n3 === i2.SheetArea.rowHeader ? e3 = i2.SheetArea.corner : t4 === i2.SheetArea.colHeader && n3 === i2.SheetArea.viewport ? e3 = i2.SheetArea.colHeader : t4 === i2.SheetArea.viewport && n3 === i2.SheetArea.rowHeader && (e3 = i2.SheetArea.rowHeader), e3;
          }, t3.prototype.mts = function(t4, n3, e3, i3) {
            var r2, o2 = i3 ? "contains" : "intersect";
            return t4[o2](n3.row, n3.col, n3.rowCount, n3.colCount) && (r2 = this.getSheet().Cb.ZF(e3)).length > 0 ? r2 : [];
          }, t3.prototype.Cts = function(t4, n3, e3) {
            var i3, r2, o2 = e3 ? this.bts : this.Rts;
            for (i3 = 0; i3 < o2.length; i3++) if ((r2 = o2[i3]).index === t4 && r2.sheetArea === n3) return i3;
            return t4;
          }, t3.prototype.Ats = function() {
            var t4 = this.rnr(i2.SheetArea.colHeader, true) + this.rnr(i2.SheetArea.viewport, true), n3 = this.Sts(i2.SheetArea.rowHeader, true) + this.Sts(i2.SheetArea.viewport, true);
            return { rowCount: t4, colCount: n3 };
          }, t3.prototype.Zno = function() {
            var t4 = this.getSheet();
            r(t4.Tb) && (t4.Tb = 0), r(t4.ly) && (t4.ly = 0), r(t4.Ab) && (t4.Ab = 0), r(t4.my) && (t4.my = 0);
          }, t3.prototype.uGr = function(t4, n3) {
            t4 && (this.vMi = t4, n3 && t4.registerDataProvider(n3, this), this.Zno());
          }, t3.prototype.Ltr = function() {
            return this.host.getStickyTopRowCount() > 0;
          }, t3;
        })(), n2.TableSheetDataProvider = o;
      }, "./dist/plugins/dragMerge/dragMerge-action.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c = this && this.qKr || (f = function(t3, n3) {
          return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, f(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          f(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), f;
        function l(t3, n3) {
          return t3.JS(n3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Commands = void 0, i2 = e2("Core"), Object.defineProperty(n2, "Commands", { enumerable: true, get: function() {
          return i2.Commands;
        } }), r = i2.Commands.ActionBase, o = i2.Commands.zA, a = "dragMerge", u = Math.max, s = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return c(n3, t3), n3.prototype.canExecute = function() {
            var t4, n4 = this.Mf, e3 = this.tT, i3 = l(n4, e3.oldSelection), r2 = l(n4, e3.newSelection);
            if (i3.equals(r2)) {
              if ((t4 = n4.getSpan(i3.row, i3.col)) && i3.equals(t4)) return false;
              if (1 === i3.rowCount && 1 === i3.colCount) return false;
            }
            return true;
          }, n3.prototype.canUndo = function() {
            var t4 = i2.Commands.TI(this.Mf.name()), n4 = this.tT[t4];
            return i2.Commands.AI(n4);
          }, n3.prototype.undo = function() {
            var t4, n4, e3 = this;
            if (!e3.canUndo()) return false;
            t4 = e3.Mf, e3.X5(t4, true), n4 = i2.Commands.TI(t4.name()), t4.Ut.undo(e3.tT[n4]), e3.q5(t4, true);
          }, n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2.Mf, s2 = o2.tT, c2 = s2.oldSelection, f2 = s2.newSelection;
            if (!o2.canExecute()) return false;
            i2.Commands.startTransaction(this.Mf.getParent(), this.tT), o2.X5(a2, true), a2.Ut.do("clearSpan", c2.row, c2.col, c2.rowCount, c2.colCount), t4 = f2.row, n4 = f2.col, e3 = f2.rowCount, r2 = f2.colCount, a2.addSpan(t4, n4, e3, r2), a2.setSelection(t4, n4, u(e3, 1), u(r2, 1)), o2.q5(a2, true), i2.Commands.endTransaction(this.Mf.getParent(), this.tT);
          }, n3;
        })(r), i2.Commands[a] = { canUndo: true, execute: function(t3, n3, e3) {
          return o(t3, s, n3, e3);
        } }, i2.Commands.Ttt = function(t3) {
          t3.register(a, i2.Commands[a]);
        };
      }, "./dist/plugins/dragMerge/dragMerge-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        function c(t3, n3) {
          t3.ki(i2.Events.DragMerging, n3);
        }
        function f(t3, n3) {
          t3.ki(i2.Events.DragMerged, n3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), r = (i2 = e2("Core")).GC$, o = null, a = void 0, u = Math.abs, s = i2.Ec, r.extend(i2.nk.prototype, { Att: function(t3) {
          var n3 = this, e3 = n3.Mf, i3 = t3, r2 = e3.Ut.findSpan(t3.row, t3.col);
          return r2 && r2.containsRange(t3) && (i3 = r2), i3;
        }, zL: function(t3, n3, e3) {
          var i3, r2, a2, s2, c2, f2 = this.Mf, l = f2.options.rightToLeft, h = f2.parent, d = f2.U5(), v = f2.Dn, p = 4, g = 8, m = p / 2, b = g / 2;
          if (h && h.options.allowUserDragMerge && d && !f2.Oi && v.Itt) {
            if (r2 = (i3 = v.Itt).x, a2 = i3.y, s2 = i3.width, c2 = i3.height, !l && u(r2 + s2 - n3) <= m && u(a2 + c2 / 2 - e3) <= b || l && u(r2 - n3) <= m && u(a2 + c2 / 2 - e3) <= b) return { right: true };
            if (u(r2 + s2 / 2 - n3) <= b && u(a2 + c2 - e3) <= m) return { bottom: true };
          }
          return o;
        }, pk: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this;
          if (c2.ab = true, c2.rb = true, c2.Uk = true, c2.Rk = { e9: t3.rowViewportIndex, r9: t3.colViewportIndex, Bk: t3.hitTestType }, c2.xtt = t3.dragMergeInfo, e3 = (n3 = c2.Mf).Ut, i3 = n3.U5(), c2.Ntt = c2.Att(i3), o2 = (r2 = n3.JS(c2.Ntt)).row, a2 = r2.col, u2 = r2.rowCount, s2 = r2.colCount, e3.GT(o2, a2, u2, s2)) return c2.rb = false, void (c2.Uk = false);
          c2.ktt = n3.Ut.getSpans(r2), n3.suspendPaint(), e3.do("clearSpan", o2, a2, u2, s2), n3.resumePaint(), c2.Dtt = r2, c2._tt(), c2.Ett(r2), c2.Ok();
        }, Hk: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = c2.parent;
          !f2 || f2.options.allowUserDragMerge ? (t3 = s2.Q9(), n3 = s2.K9(), e3 = s2.Dtt || s2.Ntt, i3 = c2.JS(e3), t3 >= 0 && n3 >= 0 && (r2 = s2.xtt, o2 = s2.jtt(i3, t3, n3, r2), s2.Ott = o2, a2 = o2.rowCount, u2 = o2.colCount, a2 > 0 && u2 > 0 && (s2._tt(), s2.Ett(o2), s2.Dtt = o2, s2.a9()))) : s2.ND();
        }, _tt: function() {
          var t3, n3 = this.Mf, e3 = this.Dtt;
          e3 && ((t3 = n3.j1(e3)).x -= 2, t3.y -= 2, t3.width += 4, t3.height += 4, n3.Dn.O1(t3));
        }, jtt: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, c2, f2, l, h, d = this, v = d.Mf, p = t3.row, g = t3.col, m = t3.rowCount, b = t3.colCount;
          return i3.right ? (o2 = g, u2 = e3 - g + 1, c2 = r2 = p, f2 = g + b, l = a2 = m, h = e3 - g - b + 1) : i3.bottom && (r2 = p, a2 = n3 - p + 1, c2 = p + m, f2 = o2 = g, l = n3 - p - m + 1, h = u2 = b), v.Ut.eE(c2, f2, l, h) && (r2 = p, o2 = g, a2 = m, u2 = b), s(r2, o2, a2, u2);
        }, ND: function() {
          var t3, n3, e3, i3 = this, r2 = i3.Mf, o2 = r2.parent, u2 = i3.ktt, s2 = i3.Ntt, l = i3.Ott || s2;
          i3.ab = false, i3.rb = false, i3.Uk = false, i3.Ott = a, i3.ktt = a, i3.Dtt = a, i3.Ntt = a, i3.l9(), o2 && o2.options.allowUserDragMerge && (t3 = r2.Ut, r2.suspendPaint(), u2.length > 0 && u2.forEach((function(n4) {
            t3.do("addSpan", n4);
          })), r2.resumePaint(), n3 = { sheetName: r2.name(), sheet: r2, mergeRange: l, cancel: false }, c(r2, n3), n3.cancel || (e3 = { cmd: "dragMerge", sheetName: r2.name(), oldSelection: s2, newSelection: l }, r2.Qy().execute(e3), f(r2, { sheetName: r2.name(), sheet: r2, mergeRange: l })));
        }, Ett: function(t3) {
          var n3, e3, i3 = this.Mf.Dn, r2;
          (0, i3.Rtt)(i3, t3);
        } });
      }, "./dist/plugins/dragMerge/dragMerge.entry.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), e2("./dist/plugins/dragMerge/dragMerge-action.js"), e2("./dist/plugins/dragMerge/dragMerge.js"), e2("./dist/plugins/dragMerge/dragMerge-event.js");
      }, "./dist/plugins/dragMerge/dragMerge.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        function l(t3) {
          var n3 = t3.parent;
          return n3 && n3.options.backColor || s;
        }
        function h(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = t3.C0(e3.row);
          if ((1 === u2 || u2 !== t3.C0(e3.row + e3.rowCount - 1)) && (i3 = t3.dw(1)).length > 0) {
            if (r2 = n3.y + n3.height / 2, o2 = i3[0], a2 = i3[i3.length - 1], o2.y <= r2 && r2 <= o2.y + o2.height) return 1;
            if (a2.y <= r2 && r2 <= a2.y + a2.height) return 1;
          }
        }
        function d(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = t3.S0(e3.col);
          if ((1 === u2 || u2 !== t3.S0(e3.col + e3.colCount - 1)) && (i3 = t3.yw(1)).length > 0) {
            if (r2 = n3.x + n3.width / 2, o2 = i3[0], a2 = i3[i3.length - 1], o2.x <= r2 && r2 <= o2.x + o2.width) return 1;
            if (a2.x <= r2 && r2 <= a2.x + a2.width) return 1;
          }
        }
        function v(t3, n3, e3) {
          var r2, o2 = t3.Fi(), a2 = t3.Gy(o2), u2 = t3.Sy(o2), s2 = h(t3, n3, e3), c2 = d(t3, n3, e3), f2 = t3.options.rightToLeft;
          return r2 = 1 === s2 && 1 === c2 ? o2.c9(s2, c2) : 1 === s2 ? new i2.Rect(o2.b6, o2.Cy, o2.F6 + a2 + o2.zy, u2) : 1 === c2 ? new i2.Rect(o2.Py, o2.T6, a2, o2.L6 + u2 + o2.Iy) : f2 ? new i2.Rect(o2.Hy, o2.T6, o2.F6 + a2 + o2.zy, o2.L6 + u2 + o2.Iy) : new i2.Rect(o2.b6, o2.T6, o2.F6 + a2 + o2.zy, o2.L6 + u2 + o2.Iy);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/dragMerge/dragMerge-action.js"), a = r.Common.ft, u = i2.GC$, s = "white", u.extend(i2.g7.prototype, { Btt: function(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, p, g, m, b, y, w, M = this, C = M.Mf, S = C.rt;
          (0, i2.needPaintSelection)(C) && (a2 = (r2 = 4) / 2, u2 = (o2 = 8) / 2, s2 = (e3 = C.j1(S.Att(n3))).x, c2 = e3.y, f2 = e3.width, l2 = e3.height, h2 = C.options.rightToLeft ? s2 - a2 : s2 + f2 - a2, d2 = c2 + l2 / 2 - u2, p = r2, g = o2, b = v(C, m = new i2.Rect(h2, d2, p, g), n3), h2 = s2 + f2 / 2 - u2, d2 = c2 + l2 - a2, p = o2, g = r2, w = v(C, y = new i2.Rect(h2, d2, p, g), n3), M.Itt = e3, M.Ltt(t3, m, y, b, w));
        }, Ltt: function(t3, n3, e3, r2, o2) {
          var a2, u2 = this.Mf, s2 = i2.Pf.vl(u2, u2.getSelectionBorderColor());
          t3.save(), t3.fillStyle = s2, r2 && (t3.rect(r2.x, r2.y, r2.width, r2.height), t3.clip()), t3.beginPath(), t3.rect(n3.x, n3.y, n3.width, n3.height), t3.fill(), t3.restore(), t3.save(), t3.fillStyle = s2, o2 && (t3.rect(o2.x, o2.y, o2.width, o2.height), t3.clip()), t3.beginPath(), t3.rect(e3.x, e3.y, e3.width, e3.height), t3.fill(), t3.restore();
        }, Rtt: function(t3, n3) {
          var e3, r2, o2, u2, s2, c2, f2, h2, d2, v2, p, g, m = t3, b = m.Mf, y = b.parent, w = b.rt, M = t3.J(), C = 2, S = C / 2;
          y && y.options.allowUserDragMerge && w.Uk && (e3 = b.getActiveRowIndex(), r2 = b.getActiveColumnIndex(), u2 = (o2 = b.getActualStyle(e3, r2)) && o2.backColor, s2 = l(b), (c2 = a._(i2.Pf.vl(b, u2 || s2))).a *= 0.6 / 255, M.fillStyle = a.j(c2), M.strokeStyle = i2.Pf.vl(b, b.getSelectionBorderColor()), M.lineWidth = 2, M.beginPath(), f2 = y.SC, d2 = (h2 = b.j1(n3)).x, v2 = h2.y, p = h2.width, g = h2.height, f2 > 2007 ? (M.rect(d2, v2, p - S, g - S), M.strokeRect(d2 - 1, v2 - 1, p + 1, g + 1)) : (M.rect(d2 + 1, v2 + 1, p - C - 0.5, g - C - 0.5), M.strokeRect(d2 - 0.5, v2 - 0.5, p, g)), M.fill(), M.restore(), m.Btt(M, n3));
        } }), c = { init: function() {
          o.Commands.Ttt(this.commandManager());
        } }, i2.Workbook.ch("dragMerge", c), f = { paintAdornment: function(t3) {
          var n3, e3 = t3.ctx, i3 = this, r2 = i3.Dn, o2 = i3.Ut.getSelections();
          i3.parent && i3.parent.options.allowUserDragMerge && 1 === o2.length && !i3.Oi && (n3 = i3.U5(), r2.Btt(e3, n3));
        } }, i2.Worksheet.ch("dragMerge", f);
      }, "./dist/plugins/fill/drag-fill.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P = this && this.qKr || (G = function(t3, n3) {
          return G = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, G(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          G(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), G;
        function U(t3, n3, e3, i3, o2, a2, u2, s2, c2, f2, l2) {
          var h2 = n3 ? r.Events.DragDropBlock : r.Events.DragDropBlockCompleted, d2 = { sheet: t3, sheetName: t3.name(), fromRow: e3, fromCol: i3, toRow: o2, toCol: a2, rowCount: u2, colCount: s2, copy: c2, insert: f2, copyOption: l2 };
          return n3 && (d2.cancel = false), t3.ki(h2, d2), d2;
        }
        function H(t3, n3, e3, i3) {
          return !!(t3 && n3 && n3.containsRange(t3)) && (!l(e3) && (1 === e3 && t3.row === n3.row && (0, c.getRowCount)(t3) === (0, c.getRowCount)(n3) || 0 === e3 && t3.col === n3.col && (0, c.getColCount)(t3) === (0, c.getColCount)(n3)) || !(l(i3) || (2 !== i3 && 3 !== i3 || t3.col !== n3.col || (0, c.getColCount)(t3) !== (0, c.getColCount)(n3)) && (0 !== i3 && 1 !== i3 || t3.row !== n3.row || (0, c.getRowCount)(t3) !== (0, c.getRowCount)(n3))));
        }
        function V(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2 = t3.getSelections();
          t3.IA(), t3.n4(n3, e3, i3, r2, true), a2 = t3.getSelections(), u2 = n3 > 0 ? n3 : t3.N9(), s2 = e3 > 0 ? e3 : t3.k9(), t3.O6(u2, s2, t3.R9, t3.B9), t3.jA(c2), t3.parent && o2._oldPosition && t3.parent.changeSelectionInCommandExecuting(o2, null, null, a2);
        }
        function z(t3) {
          var n3;
          t3.parent.repaint();
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/fill/fill.js"), a = e2("./dist/plugins/fill/fill.ns.js"), u = e2("CalcEngine"), s = e2("Touch"), c = e2("./dist/plugins/fill/utils.js"), f = !!u, l = i2.Common.lt.ht, h = null, d = void 0, v = r.Ec, p = r.GC$, g = Math.max, m = Math.floor, b = r.Commands.ActionBase, y = r.Commands.CI, w = r.Commands.SI, M = r.CopyToOptions.all, C = "startRange", S = "fillRange", T = "autoFillType", x = "fillDirection", A = "cancel", I = "fill", k = "dragDrop", N = p.isEmptyObject, j = "onLayoutChanged", D = new i2.Common.ResourceManager(a.SR, "Fill"), _ = D.getResource.bind(D), O = "gc-drag-header-mask", E = "gc-drag-header-indicator", R = { fillAuto: function(t3, n3, e3) {
          if (!n3) throw new Error(_().Exp_RangeIsNull);
          var r2 = this, a2 = e3.fillType, u2 = e3.series, s2 = e3.direction, c2 = e3.step, f2 = e3.stop, d2 = new o.Wtt(r2), v2 = e3.Qtt;
          if (H(t3, n3, s2 ? h : u2, s2)) {
            r2.suspendPaint(), t3 && (r2.rt.Ktt = t3);
            try {
              4 === a2 ? d2.Jtt(n3, u2, false, e3.withTag, e3.withoutStyle, v2) : 0 === a2 ? d2.Xtt(n3, s2) : 1 === a2 || 2 === a2 ? d2.qtt(1 === a2, n3, u2, c2, f2) : 3 === a2 && d2.$tt(n3, u2, 3, c2, l(f2) ? h : i2.Common.ct.o0(f2), e3.unit);
            } finally {
              r2.resumePaint();
            }
          }
        }, tBe: function() {
          var t3, n3;
          return (null === (n3 = null === (t3 = null == this ? void 0 : this.parent) || void 0 === t3 ? void 0 : t3.options) || void 0 === n3 ? void 0 : n3.dragHeaderMaskBackColor) || r.I.fl(O).backgroundColor;
        }, nBe: function() {
          var t3, n3;
          return (null === (n3 = null === (t3 = null == this ? void 0 : this.parent) || void 0 === t3 ? void 0 : t3.options) || void 0 === n3 ? void 0 : n3.dragHeaderIndicatorColor) || r.I.fl(E).borderTopColor;
        } }, p.extend(r.Worksheet.prototype, R), r.Worksheet.ch(I, { init: function() {
          this.tnt = new o.nnt(this);
        }, setHost: function(t3) {
          if (t3) {
            var n3 = this.Qy();
            n3[I] || n3.register(I, r.Commands[I]), n3[k] || n3.register(k, r.Commands[k]), this.D3(r.Events.TopRowChanged + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.RRe();
            })), this.D3(r.Events.LeftColumnChanged + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.RRe();
            })), this.D3(r.Events.ViewZoomed + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.close();
            })), this.D3(r.Events.EditStarted + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.close();
            })), this.D3(r.Events.FloatingObjectSelectionChanged + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.close();
            })), this.D3(r.Events.ShapeSelectionChanged + "." + I, (function(t4, n4) {
              var e3 = n4.sheet.R_;
              e3 && e3.close();
            }));
          }
        }, dispose: function(t3) {
          if (false !== t3.clearCache) {
            var n3 = this;
            n3.tnt && (n3.tnt.L0(), n3.tnt = h);
          }
          this._3(r.Events.TopRowChanged + "." + I), this._3(r.Events.LeftColumnChanged + "." + I), this._3(r.Events.ViewZoomed + "." + I), this._3(r.Events.EditStarted + "." + I), this._3(r.Events.FloatingObjectSelectionChanged + "." + I), this._3(r.Events.ShapeSelectionChanged + "." + I);
        }, preProcessKeyDown: function(t3) {
          var n3 = this.R_;
          n3 && n3.close();
        }, preProcessMouseDown: function(t3) {
          var n3 = this.R_;
          n3 && n3.close();
        }, preProcessContextMenu: function(t3) {
          var n3 = this.R_;
          n3 && n3.close();
        } }), r.Workbook.ch(I, { onCultureChanged: function() {
          _();
        } }), r.Hv.ch(I, { preProcessMouseDown: function(t3) {
          var n3 = (0, r.jf)(this.Vv), e3 = n3 && n3.R_;
          e3 && e3.close();
        } }), r.Of.touch && s.TouchEventHandler.ch(I, { preProcessManipulationStarted: function(t3) {
          var n3 = this.Mf.R_;
          n3 && n3.close();
        }, preProcessTapped: function(t3) {
          var n3 = this.Mf.R_;
          n3 && n3.close();
        }, preProcessDoubleTapped: function(t3) {
          var n3 = this.Mf.R_;
          n3 && n3.close();
        } }), window.gcGlobal.wf.push((function(t3, n3) {
          var e3;
          n3 && !r.util.jBe(n3, t3) || null === (e3 = t3.R_) || void 0 === e3 || e3.close();
        })), L = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, o2 = i3, a2 = e3[x], u2 = 0 === a2, s2 = u2 || 1 === a2, f2 = e3[S], l2 = e3[C], h2 = l2.row, d2 = l2.col, p2 = (0, c.getRowCount)(l2), g2 = (0, c.getColCount)(l2);
            return o2.Mf = n4, o2.Ftt = e3, 4 === e3[T] ? o2.Ptt = new r.Commands.JI(n4, { ranges: [e3[S]] }) : o2.Gtt = s2 ? v(h2, u2 ? f2.col : d2, p2, g2 + (0, c.getColCount)(f2)) : v(2 === a2 ? f2.row : h2, d2, p2 + (0, c.getRowCount)(f2), g2), o2.Utt = s2 ? 1 : 0, i3;
          }
          return P(n3, t3), n3.prototype.canExecute = function() {
            var t4 = this, n4 = t4.Mf, e3 = t4.Ftt, i3 = e3[C], o2 = e3[S];
            return !!n4.PT(o2.row, o2.col, (0, c.getRowCount)(o2), (0, c.getColCount)(o2), { isIgnoreFilterOutRow: true, sheetArea: r.SheetArea.viewport }) && (4 === e3[T] || !o2.intersect(i3.row, i3.col, (0, c.getRowCount)(i3), (0, c.getColCount)(i3)));
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2 = this;
            if (u2.canExecute()) {
              n4 = (t4 = u2.Ftt)[S], i3 = (e3 = u2.Mf).parent.i4(), r.Commands.II(i3), u2.X5(e3, true);
              try {
                f && e3.suspendCalcService(), o2 = e3.getSelections(), e3.isDirtySuspended() || (u2.ent = new y(e3, t4[S], M)), 4 === t4[T] ? u2.int(e3) : u2.rnt(e3), e3.EA(o2, e3.getSelections()) && e3.jA(o2);
              } finally {
                u2.q5(e3, true), f && e3.resumeCalcService(false), r.Commands.xI(i3, t4), e3.Q1i && e3.Q1i(n4.row, n4.col, (0, c.getRowCount)(n4), (0, c.getColCount)(n4)), a2 = [], e3.isDirtySuspended() || (u2.ont = new y(e3, n4, M), u2.ont.yI(u2.ent.bI()), a2 = u2.ont.MI()), w(e3, n4.row, n4.col, (0, c.getRowCount)(n4), (0, c.getColCount)(n4), a2, 1);
              }
            }
          }, n3.prototype.int = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, f2, l2 = this;
            l2.Ptt.execute(t4), e3 = (n4 = l2.Ftt)[C], i3 = n4[S], r2 = 0 === l2.Utt, a2 = (0, c.getRowCount)(e3), u2 = (0, c.getColCount)(e3), s2 = r2 ? g(1, a2 - (0, c.getRowCount)(i3)) : a2, f2 = r2 ? u2 : g(1, u2 - (0, c.getColCount)(i3)), e3.equals(i3) || (o2 = v(e3.row, e3.col, s2, f2), t4.O6(g(t4.N9(), o2.row), g(t4.k9(), o2.col), t4.R9, t4.B9), t4.IA(), t4.n4(o2.row, o2.col, (0, c.getRowCount)(o2), (0, c.getColCount)(o2)));
          }, n3.prototype.rnt = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2, f2, l2, v2, p2, b2, y2, w2, M2, A2, I2, k2, N2, j2 = this, D2 = j2.Mf, _2 = j2.Ftt, O2 = _2[C], E2 = _2[S], R2 = _2[T], L2 = j2.Gtt, F2 = { fillType: 4, series: j2.Utt, withTag: true, withoutStyle: !(D2.lF & r.CopyToOptions.style) }, B2 = D2.tables, P2 = false, G2 = new r.Range(L2.row, L2.col, L2.rowCount, L2.colCount);
            if (B2) try {
              u2 = 0 === (o2 = _2[x]), s2 = 3 === o2, (a2 = 2 === o2) && (f2 = O2.rowCount, (l2 = 0 === B2.AB(O2.row, O2.col, f2, O2.colCount).length) && (P2 = true, G2.rowCount -= f2)), u2 && (v2 = O2.colCount, (l2 = 0 === B2.AB(O2.row, O2.col, O2.rowCount, v2).length) && (P2 = true, G2.colCount -= v2)), s2 && (v2 = O2.colCount, 1 === (p2 = B2.AB(O2.row, O2.col, O2.rowCount, v2)).length && (y2 = (b2 = p2[0]).dataRange(), b2.showFooter() && E2.row + E2.rowCount - 1 >= b2.footerIndex() && (E2.rowCount = y2.rowCount - (E2.row - y2.row), L2.rowCount = y2.rowCount - (L2.row - y2.row)))), w2 = [], M2 = [], B2.yx(h, G2, d, d, d, w2, { applyDragFillAfterTableExpand: P2, backupTableResizedArgs: M2, needCheckProtectionWhenSheetProtected: true }), w2.length > 0 && (F2.Qtt = w2), j2.eke = M2;
            } catch (t5) {
              return D2.jT(6, t5.message), void D2.resumePaint();
            }
            if (1 === R2) {
              if (D2.fillAuto(O2, L2, F2), D2.lF & r.CopyToOptions.style && D2.Ut.eE(O2.row, O2.col, O2.rowCount, O2.colCount)) for (e3 = 0; e3 < E2.rowCount; e3++) for (i3 = 0; i3 < E2.colCount; i3++) (A2 = D2.vI(O2.row + m(e3 % O2.rowCount), O2.col + m(i3 % O2.colCount))) && A2.clone && (A2 = A2.clone()), D2.CL(E2.row + e3, E2.col + i3, A2);
            } else 0 === R2 ? (I2 = D2.lF & ~r.CopyToOptions.comment, j2.ant(O2, E2, I2)) : 2 === R2 ? j2.ant(O2, E2, 4320) : 3 === R2 && ((k2 = !(1 !== (0, c.getRowCount)(O2) || 1 !== (0, c.getColCount)(O2) || -1 === O2.row && -1 !== O2.col || -1 === O2.col && -1 !== O2.row)) ? (N2 = 4251, j2.ant(O2, E2, N2)) : (F2.withoutStyle = true, D2.fillAuto(O2, L2, F2)));
            D2.O6(g(t4.N9(), L2.row), g(t4.k9(), L2.col), t4.R9, t4.B9), t4.IA && t4.IA(), D2.n4(L2.row, L2.col, (0, c.getRowCount)(L2), (0, c.getColCount)(L2)), null === (n4 = D2.tables) || void 0 === n4 || n4.Fuo();
          }, n3.prototype.ant = function(t4, n4, e3) {
            var i3, o2, a2, u2, s2, f2, l2 = this, h2 = l2.Mf, d2 = h2.JS(t4), v2 = h2.JS(n4), p2 = d2.row, g2 = d2.col, b2 = (0, c.getRowCount)(d2), y2 = (0, c.getColCount)(d2), w2 = v2.row, M2 = v2.col, C2 = (0, c.getRowCount)(v2), S2 = (0, c.getColCount)(v2), T2 = l2.Ftt[x], A2 = 3 === T2, I2 = 1 === T2, k2 = m(C2 / b2), N2 = C2 % b2, j2 = m(S2 / y2), D2 = S2 % y2;
            if (h2.HB = true, f2 = function(t5, n5) {
              return h2.isActualProtected() && h2.getCell(t5, n5).hidden();
            }, 0 === l2.Utt) {
              for (i3 = 0; i3 < k2; i3++) u2 = A2 ? w2 + i3 * b2 : w2 + C2 - (i3 + 1) * b2, f2(p2, g2) && (e3 &= ~r.CopyToOptions.formula), h2.vT(p2, g2, u2, M2, b2, y2, e3, true, true);
              0 !== N2 && (u2 = A2 ? w2 + b2 * k2 : w2 + C2 - k2 * b2 - N2, f2(o2 = A2 ? p2 : p2 + (k2 + 1) * b2 - C2, g2) && (e3 &= ~r.CopyToOptions.formula), h2.vT(o2, g2, u2, M2, N2, y2, e3, true, true));
            } else {
              for (i3 = 0; i3 < j2; i3++) s2 = I2 ? M2 + i3 * y2 : M2 + S2 - (i3 + 1) * y2, f2(p2, g2) && (e3 &= ~r.CopyToOptions.formula), h2.Y1r = s2 - g2, h2.vT(p2, g2, w2, s2, b2, y2, e3, true, true), delete h2.Y1r;
              0 !== D2 && (s2 = I2 ? M2 + y2 * j2 : M2 + S2 - j2 * y2 - D2, f2(p2, a2 = I2 ? g2 : g2 + (j2 + 1) * y2 - S2) && (e3 &= ~r.CopyToOptions.formula), h2.vT(p2, a2, w2, s2, b2, D2, e3, true, true));
            }
            delete h2.HB, h2.recalcRange(w2, M2, C2, S2);
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, r2 = this, o2 = r2.Mf, a2 = false;
            if (r2.canUndo()) {
              r2.X5(o2, true);
              try {
                f && o2.suspendCalcService(), t4 = o2.getSelections(), n4 = r2.Ftt, e3 = o2.R_, i3 = n4[S], a2 = 4 === n4[T] ? r2.unt(o2) : r2.snt(o2), !o2.cnt && e3 && e3.close(), w(o2, i3.row, i3.col, (0, c.getRowCount)(i3), (0, c.getColCount)(i3), r2.ont ? r2.ont.MI() : [], 1, d, true), o2.EA(t4, o2.getSelections()) && o2.jA(t4);
              } finally {
                r2.q5(o2, true), f && o2.resumeCalcService(false);
              }
            }
            return a2;
          }, n3.prototype.unt = function(t4) {
            var n4 = this, e3 = n4.Ftt[C], i3 = e3.row, o2 = e3.col, a2 = r.Commands.TI(t4.name());
            return t4.Ut.undo(n4.Ftt[a2]), t4.O6(g(t4.N9(), i3), g(t4.k9(), o2), t4.R9, t4.B9), true;
          }, n3.prototype.snt = function(t4) {
            var n4, e3 = this, i3 = e3.Ftt, o2 = i3[C], a2 = o2.row, u2 = o2.col;
            f && t4.suspendCalcService();
            try {
              n4 = r.Commands.TI(t4.name()), t4.Ut.undo(i3[n4]), t4.O6(g(t4.N9(), a2), g(t4.k9(), u2), t4.R9, t4.B9);
            } finally {
              f && t4.resumeCalcService(false);
            }
            return t4.invalidateLayout(), true;
          }, n3;
        })(b), F = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Mf = n4, r2.Htt = e3, r2.ztt = e3[C], r2.Vtt = e3[S], r2.Ytt = e3[T], r2.Ztt = e3[x], i3;
          }
          return P(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2, f2 = this, l2 = false;
            if (f2.canExecute()) {
              n4 = (t4 = f2.Mf).parent, e3 = f2.Vtt, i3 = f2.Htt, o2 = t4.parent.i4(), r.Commands.II(o2), f2.XI(), f2.X5(t4, true), t4.QI = true;
              try {
                a2 = t4.getSelections(), u2 = void 0, s2 = t4.rt, (c2 = { sheet: t4, sheetName: t4.name() })[A] = false, c2[S] = e3, c2[T] = f2.Ytt, c2[x] = f2.Ztt, t4.ki(r.Events.DragFillBlock, c2), s2.fnt = c2[T], s2.lnt = c2[A], c2[A] || (f2.hnt(c2), t4.ki(r.Events.DragFillBlockCompleted, c2)), l2 = true, u2 = t4.getSelections(), t4.EA(a2, u2) && t4.jA(a2), n4 && i3._oldPosition && n4.changeSelectionInCommandExecuting(i3, null, null, u2);
              } finally {
                f2.dnt(t4, e3), f2.q5(t4, true), t4.QI = false, r.Commands.xI(o2, f2.Htt);
              }
            }
            return l2;
          }, n3.prototype.hnt = function(t4) {
            var n4, e3, i3 = this, r2 = i3.Mf, o2 = r2.rt, a2 = i3.Vtt, u2 = i3.Ytt;
            o2.fnt = u2, o2.lnt || ((n4 = {})[C] = i3.ztt, n4[S] = a2, n4[T] = 5 === t4[T] ? u2 : t4[T], n4[x] = i3.Ztt, e3 = new L(r2, n4), r2.suspendEvent(), e3.execute(), r2.resumeEvent(), i3.Htt.vnt = e3);
          }, n3.prototype.XI = function() {
            var t4 = this;
            t4.Mf.isDirtySuspended() || (t4.ent = new y(t4.Mf, t4.Vtt, M));
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2 = this;
            if (c2.canUndo()) {
              n4 = c2.Mf, e3 = c2.Vtt, i3 = n4.parent, o2 = c2.Htt, c2.XI(), c2.X5(n4, true);
              try {
                a2 = n4.getSelections(), n4.suspendEvent(), n4.Nj = true, u2 = n4.parent.i4(), r.Commands.NI(u2, o2), n4.Nj = false, n4.resumeEvent(), s2 = o2[C], n4.EA(a2, [s2]) && n4.jA(a2), i3 && o2._oldPosition && i3.changeSelectionInCommandExecuting(o2, null, null, [s2]), (0, r.handleRestoredTableResizedArgs)(null === (t4 = o2.vnt) || void 0 === t4 ? void 0 : t4.eke);
              } finally {
                c2.dnt(n4, e3, true), c2.q5(n4, true);
              }
            }
            return true;
          }, n3.prototype.dnt = function(t4, n4, e3) {
            var i3, r2 = this, o2 = [];
            t4.isDirtySuspended() || ((i3 = new y(t4, n4, M)).yI(r2.ent.bI()), o2 = i3.MI());
            try {
              w(t4, n4.row, n4.col, (0, c.getRowCount)(n4), (0, c.getColCount)(n4), o2, 1, d, e3);
            } catch (t5) {
            }
          }, n3;
        })(b), B = (function(t3) {
          function n3(n4, e3) {
            var i3, r2 = this;
            return (r2 = t3.call(this, n4, e3) || this).MU = null !== (i3 = e3.option) && void 0 !== i3 ? i3 : n4.lF, r2;
          }
          return P(n3, t3), n3.prototype.Spn = function() {
            return this.MU;
          }, n3.prototype.PBe = function(t4) {
            this.MU = t4;
          }, n3.prototype.canExecute = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2 = this, f2 = s2.Mf, l2 = s2.tT, h2 = l2.fromRow, d2 = l2.fromColumn, v2 = (0, c.getRowCount)(l2), p2 = l2.columnCount, g2 = l2.toRow, m2 = l2.toColumn, b2 = !l2.copy, y2 = { row: h2, col: d2, rowCount: v2, colCount: p2 }, w2 = { row: g2, col: m2, rowCount: v2, colCount: p2 };
            if (f2.tables && f2.tables.mx(f2, y2, f2, w2, b2)) return false;
            if (!f2.zT(h2, d2, v2, p2, (0, c.getSheetRowCount)(f2), (0, c.getSheetColumnCount)(f2))) return false;
            if (!l2.insert && !f2.zT(g2, m2, v2, p2, (0, c.getSheetRowCount)(f2), (0, c.getSheetColumnCount)(f2))) return false;
            if (l2.cmd === r.RangeChangedAction[0] && f2.tables && (t4 = false, (n4 = f2.tables.AB(h2, d2, v2, p2)).length > 0)) {
              for (i3 = (e3 = n4[0].range()).row; i3 < e3.row + e3.rowCount; i3++) if (f2.isRowFilterOut(i3)) {
                t4 = true;
                break;
              }
              return !(t4 && e3.contains(l2.mouseTargetRow, l2.mouseTargetCol, 1, 1));
            }
            return o2 = g2 >= 0 && m2 < 0 && h2 >= 0 && d2 < 0 && v2 > 0 && p2 < 0, a2 = g2 < 0 && m2 >= 0 && h2 < 0 && d2 >= 0 && v2 < 0 && p2 > 0, u2 = s2.mnt(o2, a2), f2.PT(g2, m2, v2, p2, { isAllowDragInsert: u2, sheetArea: r.SheetArea.viewport }) && f2.PT(h2, d2, v2, p2, { isAllowDragInsert: u2, sheetArea: r.SheetArea.viewport });
          }, n3.prototype.mnt = function(t4, n4) {
            var e3, i3, r2 = this, o2 = r2.tT, a2 = r2.Mf, u2 = o2.insert, s2 = a2.isActualProtected(), c2 = a2.options.protectionOptions;
            return !(!s2 || N(c2) || (e3 = c2.allowDragInsertRows, i3 = c2.allowDragInsertColumns, !u2 || !(e3 && t4 || i3 && n4)));
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, f2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2 = this, R2 = false;
            if (E2.canExecute()) {
              if (n4 = E2.Mf, e3 = E2.tT, i3 = n4.parent.i4(), o2 = e3.fromRow, a2 = e3.fromColumn, u2 = e3.toRow, s2 = e3.toColumn, f2 = e3.columnCount, v2 = e3.insert, p2 = e3.copy, g2 = e3.rowCount, r.Commands.II(i3), (m2 = U(n4, true, o2, a2, u2, s2, g2, f2, p2, v2, n4.lF)).cancel) return void r.Commands.xI(i3, e3);
              E2.XI(), b2 = void 0, y2 = void 0, w2 = void 0, M2 = g2, C2 = f2, (S2 = n4.o5()) && (M2 += n4.lT(u2, g2, true), C2 += n4.lT(s2, f2)), E2.X5(n4, true), n4.QI = true, T2 = void 0;
              try {
                this.PBe(m2.copyOption);
                try {
                  x2 = [], T2 = { shiftCells: e3.insert && e3.shiftCells === r.InsertShiftCell.down, isCopy: e3.copy, isFirst: true }, n4.tables && n4.tables.yx(n4, new r.Range(u2, s2, M2, C2), new r.Range(o2, a2, g2, f2), h, h, h, { shiftInfo: T2, backupTableResizedArgs: x2 }), e3.Kh.eke = x2;
                } catch (t5) {
                  return n4.jT(6, t5.message), void n4.resumePaint();
                }
                e3.insert ? a2 >= 0 && o2 < 0 ? (b2 = a2, y2 = s2, w2 = f2, A2 = s2, this.Jcr(n4, b2, y2, w2) && (n4.WBe(y2, w2, d, { ignoreExpand: true }), e3.copy ? n4.copyTo(-1, y2 <= b2 ? b2 + w2 : b2, -1, y2, -1, w2, this.Spn()) : (n4.moveTo(-1, y2 <= b2 ? b2 + w2 : b2, -1, y2, -1, w2, this.Spn(), void 0, n4.getRowCount() < 1), n4.deleteColumns(y2 <= b2 ? b2 + w2 : b2, w2), b2 < y2 && (A2 = y2 - w2)), V(n4, -1, A2, (0, c.getSheetRowCount)(n4), w2, e3))) : o2 >= 0 && a2 < 0 ? (b2 = o2, y2 = u2, w2 = g2, I2 = u2, this.Kcr(n4, b2, y2, w2) && (n4.ffe(y2, w2, d, { ignoreExpand: true }), e3.copy ? n4.copyTo(y2 <= b2 ? b2 + w2 : b2, -1, y2, -1, w2, -1, this.Spn()) : (n4.moveTo(y2 <= b2 ? b2 + w2 : b2, -1, y2, -1, w2, -1, this.Spn(), void 0, n4.getColumnCount() < 1), n4.deleteRows(y2 <= b2 ? b2 + w2 : b2, w2), b2 < y2 && (I2 = y2 - w2)), V(n4, I2, -1, w2, (0, c.getSheetColumnCount)(n4), e3))) : o2 >= 0 && a2 >= 0 && (k2 = e3.shiftCells, N2 = new r.Range(u2, s2, 1, 1), j2 = [new r.Range(o2, a2, g2, f2)], l(k2) || (D2 = { cmd: "clipboardPaste", sheetName: n4.name(), clipboardHtml: "", clipboardImage: "", clipboardText: "", fromRanges: j2, fromSheet: n4, isCutting: !e3.copy, pasteOption: 0, pastedRanges: [new r.Range(u2, s2, g2, f2)], _acCell: N2, _dataRange: j2, _shiftCells: k2, _fromDragFill: true, _ignoreTableFooterShiftIndex: T2 && T2.ignoreFooterShiftIndex }, n4.Qy().execute(D2), _2 = n4.getSelections()[0], k2 === r.InsertShiftCell.down && u2 > o2 && !e3.copy && a2 === s2 ? n4.setSelection(_2.row - g2, _2.col, _2.rowCount, _2.colCount) : k2 === r.InsertShiftCell.right && s2 > a2 && !e3.copy && o2 === u2 && n4.setSelection(_2.row, _2.col - f2, _2.rowCount, _2.colCount))) : (e3.copy ? n4.copyTo(o2, a2, u2, s2, g2, f2, this.Spn()) : n4.moveTo(o2, a2, u2, s2, g2, f2, this.Spn()), n4 && (V(n4, u2, s2, M2, C2, e3), O2 = e3.Kh, e3.copy || n4.isDirtySuspended() || (O2.wx = E2.gnt(n4, O2.qI, o2, a2, g2, f2)), n4.isDirtySuspended() || (O2.Mx = E2.gnt(n4, O2.$I, u2, s2, g2, f2)))), R2 = true, null === (t4 = n4.tables) || void 0 === t4 || t4.Fuo();
              } finally {
                n4.rt.q6 = {}, E2.q5(n4, true), n4.QI = false, U(n4, false, o2, a2, u2, s2, g2, f2, p2, v2, this.Spn()), r.Commands.xI(i3, e3);
              }
              z(n4);
            }
            return R2;
          }, n3.prototype.gnt = function(t4, n4, e3, i3, r2, o2) {
            var a2 = new y(t4, v(e3, i3, r2, o2), this.Spn()), u2 = t4.tables && t4.tables.WI && t4.tables.WI(e3, i3, r2, o2);
            return u2 && u2.length > 0 && (this.tT.tableNamesObj = { r: e3, c: i3, rc: r2, cc: o2, tableNames: u2 }), a2.yI(n4.bI()), w(t4, e3, i3, r2, o2, a2.MI(), 0, u2), a2;
          }, n3.prototype.XI = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, f2, l2 = this, h2 = l2.Mf, d2 = l2.tT, p2 = d2.Kh;
            p2 || (p2 = d2.Kh = {}), r2 = (t4 = d2.fromRow) < 0 ? 0 : t4, o2 = (n4 = d2.fromColumn) < 0 ? 0 : n4, a2 = (e3 = d2.toRow) < 0 ? 0 : e3, u2 = (i3 = d2.toColumn) < 0 ? 0 : i3, s2 = t4 < 0 ? (0, c.getSheetRowCount)(h2) : (0, c.getRowCount)(d2), f2 = n4 < 0 ? (0, c.getSheetColumnCount)(h2) : d2.columnCount, d2.insert || h2.isDirtySuspended() || (d2.copy || (p2.qI = new y(h2, v(r2, o2, s2, f2), this.Spn())), p2.$I = new y(h2, v(a2, u2, s2, f2), this.Spn())), p2.pnt = h2.R9, p2.bnt = h2.B9, p2.ynt = h2.ui, p2.wnt = h2.ci;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2 = this;
            if (A2.canUndo()) {
              if (t4 = A2.Mf, e3 = (n4 = A2.tT).fromRow, i3 = n4.fromColumn, o2 = n4.toRow, a2 = n4.toColumn, u2 = (0, c.getRowCount)(n4), s2 = n4.columnCount, !t4.zT(e3, i3, u2, s2, (0, c.getSheetRowCount)(t4), (0, c.getSheetColumnCount)(t4))) return false;
              if (!n4.insert && !t4.zT(o2, a2, u2, s2, (0, c.getSheetRowCount)(t4), (0, c.getSheetColumnCount)(t4))) return false;
              f2 = void 0, l2 = n4.Kh, A2.X5(t4, true), h2 = t4.parent.i4(), r.Commands.NI(h2, n4);
              try {
                n4.insert ? i3 >= 0 && e3 >= 0 || (i3 >= 0 ? (f2 = s2, t4 && V(t4, -1, d2 = i3, (0, c.getSheetRowCount)(t4), f2, n4)) : e3 >= 0 && (f2 = u2, t4 && V(t4, v2 = e3, -1, f2, (0, c.getSheetColumnCount)(t4), n4))) : (p2 = e3 < 0 ? 0 : e3, g2 = i3 < 0 ? 0 : i3, m2 = o2 < 0 ? 0 : o2, b2 = a2 < 0 ? 0 : a2, y2 = e3 < 0 ? (0, c.getSheetRowCount)(t4) : u2, M2 = i3 < 0 ? (0, c.getSheetColumnCount)(t4) : s2, t4 && (V(t4, e3, i3, u2, s2, n4), C2 = n4.tableNamesObj, S2 = [], T2 = [], C2 && (C2.r === m2 && C2.c === b2 && C2.rc === y2 && C2.cc === M2 ? T2 = C2.tableNames : S2 = C2.tableNames), w(t4, m2, b2, y2, M2, l2.Mx ? l2.Mx.MI() : [], 0, S2, true), w(t4, p2, g2, y2, M2, l2.wx ? l2.wx.MI() : [], 0, T2, true))), t4 && (-1 !== l2.ynt && -1 !== l2.wnt && ((x2 = t4.getSelections()[0]).contains(l2.ynt, l2.wnt) ? t4.XA(l2.ynt, l2.wnt) : t4.XA(x2.row, x2.col)), -2 !== l2.pnt && -2 !== l2.bnt && -1 !== l2.ynt && -1 !== l2.wnt && t4.showCell(l2.ynt, l2.wnt, 3, 3), (0, r.handleRestoredTableResizedArgs)(l2.eke));
              } finally {
                A2.q5(t4, true);
              }
              z(t4);
            }
            return true;
          }, n3.prototype.Jcr = function(t4, n4, e3, i3) {
            var o2 = { changeType: "addingColumns", col: e3, colCount: i3, canAdd: true, onlyCheck: true, sheetArea: r.SheetArea.viewport };
            return r.Worksheet.et(t4, j, o2), !!o2.canAdd && (o2 = { changeType: "deletingColumns", col: n4, colCount: i3, canDelete: true, onlyCheck: true, sheetArea: r.SheetArea.viewport }, r.Worksheet.et(t4, j, o2), o2.canDelete);
          }, n3.prototype.Kcr = function(t4, n4, e3, i3) {
            var o2 = { changeType: "addingRows", row: e3, rowCount: i3, canAdd: true, onlyCheck: true, sheetArea: r.SheetArea.viewport };
            return r.Worksheet.et(t4, j, o2), !!o2.canAdd && (o2 = { changeType: "deletingRows", row: n4, rowCount: i3, canDelete: true, onlyCheck: true, sheetArea: r.SheetArea.viewport }, r.Worksheet.et(t4, j, o2), o2.canDelete);
          }, n3;
        })(b), r.Commands[I] = { canUndo: true, execute: function(t3, n3, e3) {
          return r.Commands.zA(t3, F, n3, e3);
        } }, r.Commands[k] = { canUndo: true, execute: function(t3, n3, e3) {
          return r.Commands.zA(t3, B, n3, e3);
        } };
      }, "./dist/plugins/fill/drag-header-to-move/event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        function l(t3, n3) {
          var e3, i3 = t3.getColumnCount();
          if (0 === n3.col && n3.colCount === i3) return true;
          for (e3 = 0; e3 < n3.col; e3++) if (t3.getColumnVisible(e3)) return false;
          for (e3 = n3.col + n3.colCount; e3 < i3; e3++) if (t3.getColumnVisible(e3)) return false;
          return true;
        }
        function h(t3) {
          var n3;
          return !!t3 && (null === (n3 = t3.NMi) || void 0 === n3 ? void 0 : n3._gi) !== r.SheetType.ganttSheet;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/fill/utils.js"), a = i2.Common.zf, u = r.GC$, s = null, c = 5, f = { QRe: function(t3, n3, e3) {
          var i3, o2, a2, u2, c2, f2, d, v, p, g, m, b, y, w, M, C, S, T, x = this;
          if (x.a_) return s;
          if (1 !== t3.hitTestType && 2 !== t3.hitTestType) return s;
          if (!h(a2 = x.Mf)) return s;
          if (!(u2 = null === (o2 = null === (i3 = a2.parent) || void 0 === i3 ? void 0 : i3.options) || void 0 === o2 ? void 0 : o2.allowDragHeaderToMove)) return s;
          if (!(0, r.needPaintSelection)(a2)) return s;
          if (!(c2 = a2.getSelections()) || 1 !== c2.length) return s;
          if (f2 = c2[0], v = (d = a2.options).colHeaderVisible, p = d.rowHeaderVisible, (u2 & r.AllowDragHeaderToMove.column) === r.AllowDragHeaderToMove.column && 1 === t3.hitTestType && f2.row < 0 && f2.col >= 0 && v && t3.row >= a2.getFreeAreaRowCount(1)) {
            if (l(a2, f2)) return s;
            if (g = f2.col + f2.colCount, t3.col < f2.col || t3.col >= g) return s;
            for (m = a2.Yy(t3.colViewportIndex, 1), b = f2.col; b < g; b++) if ((y = null == m ? void 0 : m.findCol(b)) && (w = y.width, y.x <= n3 && n3 <= y.x + w)) return { action: "dragHeader", dragColumn: true, selectRange: f2 };
          } else if ((u2 & r.AllowDragHeaderToMove.row) === r.AllowDragHeaderToMove.row && 2 === t3.hitTestType && f2.row >= 0 && f2.col < 0 && p && t3.col >= a2.getFreeAreaRowCount(2)) {
            if (f2.rowCount === a2.getRowCount()) return s;
            for (M = a2._y(t3.rowViewportIndex, 2), C = f2.row + f2.rowCount, S = f2.row; S < C; S++) if ((T = null == M ? void 0 : M.findRow(S)) && T.y <= e3 && e3 <= T.y + T.height) return { action: "dragHeader", dragColumn: false, selectRange: f2 };
          }
          return s;
        }, VRe: function(t3) {
          var n3, e3, i3, a2, u2, s2, c2, f2, l2, h2, d = this;
          d.eBe || t3 && t3.dragHeaderToMoveInfo && 1 === (e3 = (n3 = d.Mf).Ut.getSelections()).length && (d.rb = true, d.eBe = true, d.cw(t3), i3 = e3[0], a2 = n3.Fi(), u2 = n3.options.rightToLeft ? new r.Rect(a2.Hy, a2.T6, a2.b6 + a2.F6, a2.Ay + a2.Iy) : new r.Rect(a2.b6, a2.T6, a2.Hy + a2.zy, a2.Ay + a2.Iy), s2 = n3.getRangeRect((0, o.getRowViewportIndex)(t3), (0, o.getColViewportIndex)(t3), i3), t3.dragHeaderToMoveInfo.dragColumn ? s2.height = (0, o.getHeight)(u2) : (n3.options.rightToLeft && (s2.x = u2.x), s2.width = (0, o.getWidth)(u2)), t3.dragHeaderToMoveInfo.selectionRect = s2, (c2 = d.q6).x = s2.x, c2.y = s2.y, c2.width = s2.width - 1, c2.height = s2.height - 1, c2.row = i3.row, c2.col = i3.col, c2.rowCount = (0, o.getRowCount)(i3), c2.colCount = (0, o.getColCount)(i3), f2 = n3.JS(i3), l2 = t3.row, h2 = t3.col, l2 < f2.row && (l2 = f2.row), l2 >= f2.row + (0, o.getRowCount)(f2) && (l2 = f2.row + (0, o.getRowCount)(f2) - 1), h2 < f2.col && (h2 = f2.col), h2 >= f2.col + (0, o.getColCount)(f2) && (h2 = f2.col + (0, o.getColCount)(f2) - 1), c2.hitRow = l2, c2.hitCol = h2, c2.rowOffset = l2 - f2.row, c2.colOffset = h2 - f2.col, d.Rk = { e9: (0, o.getRowViewportIndex)(t3), r9: (0, o.getColViewportIndex)(t3), Bk: (0, o.getHitTestType)(t3) }, d.Ok());
        }, YRe: function() {
          var t3, n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d = this, v = d.Mf;
          d.eBe && d.rb && (t3 = d.WRe(), d.q6.hitTarget = d.fk, d.q6.x = t3.x, d.q6.y = t3.y, d.q6.width = t3.width, d.q6.height = t3.height, n3 = d.fk.x, e3 = d.fk.y, a2 = (r2 = (i3 = (0, o.getSheetVPortBoundary)(v)).minPoint).x, u2 = r2.y, c2 = (s2 = i3.maxPoint).x, f2 = s2.y, d.fk.x <= a2 ? d.fk.x = a2 + 1 : d.fk.x >= c2 && (d.fk.x = c2 - 1), d.fk.y <= u2 ? d.fk.y = u2 + 1 : d.fk.y >= f2 && (d.fk.y = f2 - 1), l2 = (0, o.getHitColumnIndex)(v, d.fk.x), h2 = (0, o.getHitRowIndex)(v, d.fk.y), d.KRe(h2, l2), d.fk.x = n3, d.fk.y = e3, d.a9());
        }, ZRe: function() {
          var t3, n3 = this, e3 = n3.Mf;
          n3.eBe = false, n3.i_ = true, n3.zk = true, n3.t_ = false, t3 = e3.sw, (0, o.fixHitTestInfo)(t3), n3.kD && n3.kD(), n3.rb = false, n3.ab = false, n3.Rk = s, e3.Uet = s, e3.JRe = s, e3.Pet = s, n3.cw && n3.cw(e3.sw);
        }, KRe: function(t3, n3) {
          var e3, i3, r2, o2, u2, s2, f2, l2, h2, d, v = this;
          v.eBe && (i3 = v.Mf, (r2 = v.q6).hitRow = t3, r2.hitCol = n3, o2 = null !== (e3 = v.Int) && void 0 !== e3 ? e3 : i3.JS(r2), v.xnt = o2, u2 = i3.Dn.XRe(), v.Int = o2, (s2 = i3.parent) && s2.options.showDragDropTip && (u2 ? (f2 = i3.Uet.x + i3.Uet.width + c, l2 = i3.Uet.y + i3.Uet.height + c, h2 = i3.sw, d = i3.U5(), h2.dragHeaderToMoveInfo.dragColumn ? r2.col > d.col ? o2.col = r2.col - d.colCount : o2.col = r2.col : r2.row > d.row ? o2.row = r2.row - d.rowCount : o2.row = r2.row, s2.Tw(a.j0(v.Nnt(o2)), f2, l2)) : s2.iy()));
        }, WRe: function() {
          var t3, n3, e3, i3, r2 = this, a2 = r2.Mf, u2 = a2.sw, s2 = r2.fk, c2 = u2.dragHeaderToMoveInfo.selectionRect.clone(), f2 = (0, o.getSheetVPortBoundary)(a2), l2 = f2.minPoint, h2 = l2.x, d = l2.y, v = f2.maxPoint, p = v.x, g = v.y;
          return u2.dragHeaderToMoveInfo.dragColumn ? (t3 = u2.x - c2.x, c2.x = s2.x - t3, c2.x < h2 ? c2.x = h2 : (n3 = (0, o.getEndX)(c2)) > p && (c2.x = p - c2.width), (e3 = (0, o.getEndY)(c2)) > g && (c2.height = g - c2.y)) : (i3 = u2.y - c2.y, c2.y = s2.y - i3, c2.y < d ? c2.y = d : (e3 = (0, o.getEndY)(c2)) > g && (c2.y = g - c2.height), (n3 = (0, o.getEndX)(c2)) > p && (c2.width = p - c2.x)), c2;
        } }, u.extend(r.nk.prototype, f);
      }, "./dist/plugins/fill/drag-header-to-move/index.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), e2("./dist/plugins/fill/drag-header-to-move/event.js"), e2("./dist/plugins/fill/drag-header-to-move/render.js");
      }, "./dist/plugins/fill/drag-header-to-move/render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("./dist/plugins/fill/utils.js"), o = i2.GC$, a = "black", u = { qRe: function(t3, n3, e3) {
          t3.save(), t3.fillStyle = e3 || a, t3.fillRect(n3.x, n3.y, n3.width, n3.height), t3.restore();
        }, $Re: function(t3, n3) {
          var e3, o2, a2, u2, s, c, f, l, h = this, d = h.Mf, v = d.rt, p = d.sw, g = v.q6, m = g.hitTarget;
          if (g && m) return e3 = g.hitCol, o2 = g.hitRow, a2 = d.nBe(), u2 = (0, r.getLineStyle)(d), s = 8, t3.save(), (c = (0, r.mergeRect)(d.Pet, d.JRe)) && (f = new i2.Rect(c.x - s, c.y - s, (0, r.getWidth)(c) + 2 * s, (0, r.getHeight)(c) + 2 * s), h.O1(f, n3), h.E1(d.U5(), n3)), y(), l = b(), t3.beginPath(), t3.restore(), l;
          function b() {
            var c2, f2, l2, h2, v2, b2, y2 = d.Yy(0).findCol(e3) || d.Yy(1).findCol(e3) || d.Yy(2).findCol(e3), w = d._y(0).findRow(o2) || d._y(1).findRow(o2) || d._y(2).findRow(o2), M = false;
            return p.dragHeaderToMoveInfo.dragColumn ? y2 && (c2 = y2.x, f2 = (0, r.getWidth)(y2), g.col = e3, m.x > c2 + f2 / 2 && (c2 = y2.x + (0, r.getWidth)(y2), g.col++), (g.col < p.dragHeaderToMoveInfo.selectRange.col || g.col > p.dragHeaderToMoveInfo.selectRange.col + p.dragHeaderToMoveInfo.selectRange.colCount) && (d.Uet = new i2.Rect(c2, g.y, 0, (0, r.getHeight)(g)), t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), l2 = n3.y + 1, (0, r.paintDragLine)(t3, c2 - s, l2, c2 + s, l2, a2, u2), (0, r.paintDragLine)(t3, c2, g.y, c2, g.y + (0, r.getHeight)(g), a2, u2), (0, r.paintDragLine)(t3, c2 - s, g.y + (0, r.getHeight)(g), c2 + s, g.y + (0, r.getHeight)(g), a2, u2), M = true)) : w && (h2 = w.y, v2 = (0, r.getHeight)(w), g.row = o2, m.y > h2 + v2 / 2 && (h2 = w.y + (0, r.getHeight)(w), g.row++), (g.row < p.dragHeaderToMoveInfo.selectRange.row || g.row > p.dragHeaderToMoveInfo.selectRange.row + p.dragHeaderToMoveInfo.selectRange.rowCount) && (d.Uet = new i2.Rect(g.x, h2, (0, r.getWidth)(g), 0), t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), b2 = n3.x + 1, (0, r.paintDragLine)(t3, b2, h2 - s, b2, h2 + s, a2, u2), (0, r.paintDragLine)(t3, g.x, h2, g.x + (0, r.getWidth)(g), h2, a2, u2), (0, r.paintDragLine)(t3, g.x + (0, r.getWidth)(g), h2 - s, g.x + (0, r.getWidth)(g), h2 + s, a2, u2), M = true)), M;
          }
          function y() {
            t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), h.qRe(t3, g, d.tBe());
          }
        }, XRe: function() {
          var t3, n3, e3, o2, a2, u2 = this, s = u2.Mf, c = s.sw, f = s.rt.xnt;
          if (c && c.dragHeaderToMoveInfo && f) return t3 = u2.J(), n3 = s.Fi(), e3 = s.rt.q6, o2 = s.options.rightToLeft ? new i2.Rect(n3.Hy, n3.T6, n3.b6 + n3.F6, n3.Ay + n3.Iy) : new i2.Rect(n3.b6, n3.T6, n3.Hy + n3.zy, n3.Ay + n3.Iy), a2 = u2.$Re(t3, o2), s.JRe = s.Uet, s.Pet = new i2.Rect(e3.x, e3.y, (0, r.getWidth)(e3), (0, r.getHeight)(e3)), a2;
        } }, o.extend(i2.g7.prototype, u);
      }, "./dist/plugins/fill/fill-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FillAction = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("SheetsCalc"), a = e2("./dist/plugins/fill/fill-ui.js"), u = e2("./dist/plugins/fill/fill.js"), s = e2("./dist/plugins/fill/fill.ns.js"), c = e2("CalcEngine"), f = e2("./dist/plugins/fill/utils.js"), l = !!c, h = r.GC$, d = r.Ec, v = i2.Common.lt.ht, p = null, g = void 0, m = Math.min, b = Math.abs, y = Math.max, w = 5, M = 3, C = "drag", S = "corner", T = i2.Common.zf, x = new i2.Common.ResourceManager(s.SR, "Fill"), A = x.getResource.bind(x), (function(t3) {
          t3[t3.smartMenuCopyCells = 1] = "smartMenuCopyCells", t3[t3.smartMenuFillSeries = 2] = "smartMenuFillSeries", t3[t3.smartMenuFillFormattingOnly = 4] = "smartMenuFillFormattingOnly", t3[t3.smartMenuFillWithoutFormatting = 8] = "smartMenuFillWithoutFormatting", t3[t3.all = 1023] = "all";
        })(I = n2.FillAction || (n2.FillAction = {})), h.extend(r.nk.prototype, { bk: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2 = this;
          d2.zk || (n3 = d2.Mf, e3 = p, 1 === (i3 = n3.Ut.getSelections()).length ? e3 = i3[0] : i3.length < 1 && (e3 = n3.Ut.getSpan(n3.ui, n3.ci)), e3 && (d2.zk = true, d2.rb = true, d2.Mnt = e3, (r2 = n3.tables && n3.tables.find(e3.row, e3.col)) && (d2.Cnt = true, o2 = true, a2 = r2.range(), (r2.showHeader() && e3.row === a2.row || r2.showFooter() && e3.row === a2.row + a2.rowCount - 1 || e3.col !== a2.col || e3.colCount !== a2.colCount) && (o2 = false), o2 && (d2.Snt = true, d2.e_ = true, d2.Tnt = r2.name())), u2 = n3.getRangeRect((0, f.getRowViewportIndex)(t3), (0, f.getColViewportIndex)(t3), e3), (s2 = d2.q6).x = u2.x, s2.y = u2.y, s2.width = u2.width - 1, s2.height = u2.height - 1, s2.row = e3.row, s2.col = e3.col, s2.rowCount = (0, f.getRowCount)(e3), s2.colCount = (0, f.getColCount)(e3), c2 = n3.JS(e3), l2 = t3.row, h2 = t3.col, l2 < c2.row && (l2 = c2.row), l2 >= c2.row + (0, f.getRowCount)(c2) && (l2 = c2.row + (0, f.getRowCount)(c2) - 1), h2 < c2.col && (h2 = c2.col), h2 >= c2.col + (0, f.getColCount)(c2) && (h2 = c2.col + (0, f.getColCount)(c2) - 1), s2.hitRow = l2, s2.hitCol = h2, s2.rowOffset = l2 - c2.row, s2.colOffset = h2 - c2.col, d2.Rk = { e9: (0, f.getRowViewportIndex)(t3), r9: (0, f.getColViewportIndex)(t3), Bk: (0, f.getHitTestType)(t3) }, d2.Ok()));
        }, Vk: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = this;
          f2.Rk && f2.rb && f2.zk && f2.Mnt && (t3 = f2.fk, n3 = f2.q6, i3 = (e3 = f2.Mf.getCellRect(n3.hitRow, n3.hitCol)).width / 2, r2 = e3.x + i3, o2 = e3.height / 2, a2 = e3.y + o2, n3.hitTarget = { x: t3.x, y: t3.y }, u2 = f2.Q9(), s2 = f2.K9(), c2 = false, (b(r2 - t3.x) > i3 + 5 || b(a2 - t3.y) > o2 + 5) && (c2 = true), u2 >= 0 && s2 >= 0 && c2 && f2.Ant(u2, s2), f2.a9());
        }, Ant: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, b2, M2, C2, S2, x2, A2 = this;
          A2.zk && A2.Mnt && (e3 = A2.Mf, i3 = A2.q6, r2 = e3.o5(), o2 = e3.U5(), a2 = (0, f.getSheetRowCount)(e3), u2 = (0, f.getSheetColumnCount)(e3), s2 = m(u2 - (0, f.getColCount)(i3), n3 - i3.colOffset), c2 = m(a2 - (0, f.getRowCount)(i3), t3 - i3.rowOffset), r2 && (s2 -= l2 = e3.ox(n3, i3.colOffset + 1), c2 -= h2 = e3.ox(t3, i3.rowOffset + 1, true), 0 === e3.getColumnWidth(s2) && (s2 = e3.r6(s2)), 0 === e3.getRowHeight(c2) && (c2 = e3.nI(c2))), -1 === o2.row && -1 !== o2.col ? (i3.row = -1, i3.col = y(0, s2)) : -1 !== o2.row && -1 === o2.col ? (i3.row = y(0, c2), i3.col = -1) : (i3.row = i3.row < 0 ? -1 : y(0, c2), i3.col = i3.col < 0 ? -1 : y(0, s2)), A2.Snt && (v2 = (d2 = e3.tables && e3.tables.find(t3, n3)) && d2.range(), !d2 || d2.name() !== A2.Tnt || t3 === v2.row || d2.showFooter() && t3 === v2.row + v2.rowCount ? A2.e_ = false : A2.e_ = true, A2.e_ ? (i3.col = v2.col, A2.i_ = !A2.isPressShiftKey) : A2.i_ = A2.isPressShiftKey), i3.hitRow = t3, i3.hitCol = n3, p2 = e3.JS(i3), r2 && (g2 = e3.lT(p2.row, p2.rowCount, true), b2 = e3.lT(p2.col, p2.colCount), p2.rowCount += g2, p2.colCount += b2, p2.rowCount = m(a2, p2.rowCount), p2.colCount = m(u2, p2.colCount), p2.row + p2.rowCount > a2 || p2.col + p2.colCount > u2) || (M2 = A2.Int) && p2.row === M2.row && p2.col === M2.col && (0, f.getRowCount)(p2) === (0, f.getRowCount)(M2) && (0, f.getColCount)(p2) === (0, f.getColCount)(M2) && p2.row > e3.N9() && p2.col > e3.k9() && p2.row + (0, f.getRowCount)(p2) - 1 < e3.P6() && p2.col + (0, f.getColCount)(p2) - 1 < e3.G6() || (A2.xnt = p2, e3.Dn.o_(), A2.Int = p2, (C2 = e3.parent) && C2.options.showDragDropTip && (S2 = i3.x + i3.width + w, x2 = i3.y + i3.height + w, C2.Tw(T.j0(A2.Nnt(p2)), S2, x2))));
        }, Nnt: function(t3) {
          var n3, e3, i3, r2, a2, u2, s2, h2, d2, v2, m2, b2, y2, w2;
          return t3 && l ? (e3 = (n3 = this.Mf).U5(), i3 = (0, f.getRowCount)(e3), r2 = (0, f.getColCount)(e3), a2 = n3.getActiveRowIndex(), u2 = n3.getActiveColumnIndex(), s2 = void 0, h2 = n3.o5(), a2 = a2 < 0 ? 0 : a2, u2 = u2 < 0 ? 0 : u2, 1 === i3 && 1 === r2 ? s2 = c.knt(p, p, t3.row - a2, t3.col - u2, true, true) : (d2 = void 0, v2 = void 0, m2 = void 0, b2 = void 0, y2 = 0, w2 = 0, -1 === e3.row && e3.col >= 0 ? (d2 = m2 = o.BAND_INDEX_CONST, v2 = t3.col - u2, b2 = t3.col - u2 + r2 - 1, w2 = r2) : -1 === e3.col && e3.row >= 0 ? (v2 = b2 = o.BAND_INDEX_CONST, d2 = t3.row - a2, m2 = t3.row - a2 + i3 - 1, y2 = i3) : e3.row >= 0 && e3.col >= 0 && (d2 = t3.row - a2, m2 = t3.row - a2 + i3 - 1, v2 = t3.col - u2, b2 = t3.col - u2 + r2 - 1, y2 = i3, w2 = r2), h2 && (m2 += n3.lT(t3.row, y2, true), b2 += n3.lT(t3.col, w2)), s2 = c.lJ(p, p, d2, v2, m2, b2, true, true, true, true, a2, u2)), n3.op().unparse(n3.Uw(), s2, a2, u2)) : g;
        }, kD: function(t3) {
          var n3, e3, i3, o2, a2, u2, s2, c2, h2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, I2 = this, k = false, N = "", j = false, D = I2.Mf;
          I2.Rk = p, I2.l9(), e3 = D.U5(), i3 = I2.q6.row, o2 = I2.q6.col, a2 = I2.q6.hitRow, u2 = I2.q6.hitCol, I2.i_ && e3.contains(a2, u2) || (n3 = e3 && ((0, f.getRowCount)(e3) > 0 || (0, f.getColCount)(e3) > 0) ? { r: e3.row, c: e3.col, rc: (0, f.getRowCount)(e3), cc: (0, f.getColCount)(e3) } : { r: D.ui, c: D.ci, rc: 1, cc: 1 }, true === I2.zk && true === I2.rb && (s2 = n3.r, c2 = n3.c, h2 = n3.rc, v2 = n3.cc, g2 = D.options.protectionOptions, m2 = D.lF, I2.shiftCells = null, I2.i_ && (I2.shiftCells = I2.Dnt ? r.InsertShiftCell.right : r.InsertShiftCell.down), b2 = { fromRow: s2, fromColumn: c2, rowCount: h2, columnCount: v2, toRow: i3, toColumn: o2, isDragInsert: I2.i_, isDragCopy: I2.t_ }, D.ki(r.Events.BeforeDragDrop, b2), (N = b2.invalidMessage) && 0 !== N.length ? k = true : !I2.i_ || -1 !== s2 && -1 !== c2 ? i3 === s2 && o2 === c2 || (M2 = D.GT(s2, c2, h2, v2), C2 = D.GT(i3, o2, h2, v2), (M2 || C2) && (S2 = false, M2 || I2.shiftCells !== r.InsertShiftCell.right && I2.shiftCells !== r.InsertShiftCell.down || (S2 = true), S2 || (k = true, N = A().Exp_ChangeMergedCell)), k || l && (D.KT(s2, c2, h2, v2) || D.KT(i3, o2, h2, v2)) && (k = true, N = A().Exp_ChangePartOfArray), k || I2.t_ || ((T2 = D.isActualProtected()) || (T2 = (0, r.isAnyCellProtectedInDataRange)(D, new r.Range(s2, c2, h2, v2))), T2 && (T2 = D.dA(d(s2, c2, h2, v2), false, r.SheetArea.viewport)), (x2 = D.isActualProtected()) || (x2 = (0, r.isAnyCellProtectedInDataRange)(D, new r.Range(i3, o2, h2, v2))), x2 && (x2 = D.dA(d(i3, o2, h2, v2), false, r.SheetArea.viewport)), (T2 || x2) && (k = true, N = D.FT())), k || (I2.i_ && (I2.Dnt ? o2 = I2.q6.hitCol : i3 = I2.q6.hitRow), j = D.Qy().execute({ cmd: "dragDrop", sheetName: D.name(), fromRow: s2, fromColumn: c2, toRow: i3, toColumn: o2, rowCount: h2, columnCount: v2, copy: I2.t_, insert: I2.i_, shiftCells: I2.shiftCells, option: m2, mouseTargetRow: a2, mouseTargetCol: u2 }))) : c2 >= 0 ? (I2.t_ && (o2 <= c2 || o2 >= c2 + v2) || !I2.t_ && (o2 < c2 || o2 > c2 + v2)) && ((D.GT(-1, c2, -1, v2) || D.GT(-1, o2, -1, 0)) && (k = true, N = A().Exp_ChangeMergedCell), y2 = g2 && g2.allowDragInsertColumns, !k && D.isActualProtected() && true !== y2 && (k = true, N = A().Exp_ColumnReadOnly), k || (j = D.Qy().execute({ cmd: "dragDrop", sheetName: D.name(), fromRow: -1, fromColumn: c2, toRow: -1, toColumn: o2, rowCount: -1, columnCount: v2, copy: I2.t_, insert: true, option: m2, mouseTargetRow: a2, mouseTargetCol: u2 }))) : s2 >= 0 && c2 < 0 && (I2.t_ && (i3 <= s2 || i3 >= s2 + h2) || !I2.t_ && (i3 < s2 || i3 > s2 + h2)) && ((D.GT(s2, -1, h2, -1) || D.GT(i3, -1, 0, -1)) && (k = true, N = A().Exp_ChangeMergedCell), k || l && (D.KT(s2, -1, h2, -1) || D.KT(i3, -1, 0, -1)) && (k = true, N = A().Exp_ChangePartOfArray), w2 = g2 && g2.allowDragInsertRows, !k && D.isActualProtected() && true !== w2 && (k = true, N = A().Exp_RowReadOnly), k || (j = D.Qy().execute({ cmd: "dragDrop", sheetName: D.name(), fromRow: s2, fromColumn: -1, toRow: i3, toColumn: -1, rowCount: h2, columnCount: -1, copy: I2.t_, insert: true, option: m2, mouseTargetRow: a2, mouseTargetCol: u2 }))))), I2.rb = false, I2.zk = false, I2.Snt = false, I2.Cnt = false, I2.e_ = false, I2.Tnt = p, I2.Mnt = p, I2.i_ = false, I2.t_ = false, I2.Int = p, I2.xnt = p, I2.iy(), j || (I2.q6 = {}, D.repaint()), k && D.jT(3, N);
        }, wk: function(t3) {
          var n3 = this;
          true !== n3.Yk && true !== n3.rb && (n3._nt(), n3.Ktt && (n3.rb = true, n3.Yk = true, n3.hO = true, n3.Ent = (0, f.getRowViewportIndex)(t3), n3.jnt = (0, f.getColViewportIndex)(t3), n3.Ont = (0, f.getRowViewportIndex)(t3), n3.Rnt = (0, f.getColViewportIndex)(t3), n3.Bnt(), n3.Rk = { e9: (0, f.getRowViewportIndex)(t3), r9: (0, f.getColViewportIndex)(t3), Bk: (0, f.getHitTestType)(t3) }, n3.Ok()));
        }, Bnt: function() {
          var t3, n3 = this, e3 = (0, f.getFrozenRowCount)(n3.Mf), i3 = (0, f.getFrozenColumnCount)(n3.Mf), r2 = n3.Lnt();
          r2 >= 0 && r2 < e3 ? n3.Fnt = 0 : r2 >= e3 && r2 <= (0, f.getSheetRowCount)(n3.Mf) && (n3.Fnt = 1), n3.Pnt() ? n3.Gnt = 1 : n3.Gnt = n3.Ent, (t3 = n3.Unt()) >= 0 && t3 < i3 ? n3.Hnt = 0 : t3 >= i3 && t3 <= (0, f.getSheetColumnCount)(n3.Mf) && (n3.Hnt = 1), n3.znt() ? n3.Vnt = 1 : n3.Vnt = n3.jnt;
        }, Zk: function() {
          var t3, n3, e3, i3 = this;
          i3.Rk && i3.Yk && i3.rb && i3.Ktt && (i3.Ont = i3.nD(), i3.Rnt = i3.eD(), i3.Ynt = i3.Q9(), i3.Znt = i3.K9(), i3.Ynt >= 0 && i3.Znt >= 0 && (i3.Wnt(), i3.Qnt(), t3 = i3.Mf.parent, n3 = false, (e3 = i3.Knt()) && (n3 = i3.Jnt(i3.Ktt, i3.Xnt, true)), t3 && t3.options.showDragFillTip && n3 && i3.qnt(), i3.$nt()), i3.a9());
        }, tet: function() {
          var t3, n3, e3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, g2 = this, m2 = g2.Mf, b2 = g2.Ktt, y2 = g2.Xnt, w2 = m2.parent.options.defaultDragFillType, M2 = g2.net(3 === w2 ? 5 : w2, 3 === w2), C2 = g2.eet(), S2 = g2.Knt();
          return 1 === M2 ? (t3 = 0 === C2 || 1 === C2 ? 1 : 0, r2 = (e3 = new u.Wtt(m2)).Jtt(S2, t3, true), n3 = g2.iet(C2, y2, b2), a2 = (o2 = m2.getActualStyle(n3.row, n3.col)).cellType || m2.$f(), s2 = o2.formatter ? o2.formatter : o2._autoFormatter, c2 = i2.Formatter && i2.Formatter.GeneralFormatter, r2 instanceof Date && c2 && (s2 = new c2(i2.Common.CultureManager.Fe().DateTimeFormat.shortDatePattern + " hh:mm:ss AM/PM;@", "0")), l2 = 3, (f2 = g2.Rk) && (l2 = f2.Bk), h2 = { sheet: m2, row: n3.row, col: n3.col, sheetArea: l2, quotePrefix: o2.quotePrefix }, d2 = {}, a2.format(r2, s2, d2, h2)) : 0 === M2 ? (n3 = g2.iet(C2, y2, b2), (v2 = m2.getFormula(n3.row, n3.col)) ? p : m2.getText(n3.row, n3.col)) : p;
        }, iet: function(t3, n3, e3) {
          var i3, r2 = e3.row, o2 = e3.col, a2 = (0, f.getRowCount)(e3), u2 = (0, f.getColCount)(e3), s2 = d(r2, o2, 1, 1);
          return 3 === t3 ? (i3 = 0 === (i3 = (0, f.getRowCount)(n3) % a2) ? r2 + a2 - 1 : r2 + i3 - 1, s2.row = i3, s2.col = o2) : 1 === t3 ? (i3 = 0 === (i3 = (0, f.getColCount)(n3) % u2) ? o2 + u2 - 1 : o2 + i3 - 1, s2.row = r2, s2.col = i3) : 0 === t3 ? (i3 = 0 === (i3 = (0, f.getColCount)(n3) % u2) ? o2 : o2 + u2 - i3, s2.row = r2, s2.col = i3) : 2 === t3 && (i3 = 0 === (i3 = (0, f.getRowCount)(n3) % a2) ? r2 : r2 + a2 - i3, s2.row = i3, s2.col = o2), s2;
        }, qnt: function() {
          var t3, n3, e3, i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.net();
          if (4 === s2 || a2.znt() || a2.Pnt()) return a2.iy(), p;
          i3 = a2.eet(), r2 = a2.Knt(), o2 = u2.j1(r2), e3 = a2.tet(), 3 === i3 || 1 === i3 ? (t3 = o2.x + o2.width + M, n3 = o2.y + o2.height + M) : 0 === i3 ? (t3 = o2.x + M, n3 = o2.y + o2.height + M) : 2 === i3 && (t3 = o2.x + o2.width + M, n3 = o2.y + M), a2.Tw(e3, t3, n3);
        }, $nt: function() {
          var t3 = this;
          t3.ret(), t3.oet(), t3.aet(), t3.uet = t3.Knt();
        }, ret: function() {
          var t3, n3 = this.Mf;
          this.uet && ((t3 = n3.j1(this.uet)).x -= 2, t3.y -= 2, t3.width += 4, t3.height += 4, n3.Dn.O1(t3));
        }, oet: function(t3) {
          var n3;
          this.Mf.Dn.E1(this.Ktt, p, t3);
        }, aet: function() {
          var t3, n3, e3, i3, r2, o2, a2 = this.Mf, u2 = a2.Dn, s2 = this.Knt();
          s2 && (n3 = this.cHr(), e3 = null !== (t3 = (e3 = a2.j1(s2)).getIntersectRect(n3)) && void 0 !== t3 ? t3 : e3, i3 = a2.getSelectionBorderColor(), r2 = (0, f.getLineStyle)(a2), (o2 = u2.J()).save(), o2.beginPath(), u2.cet(o2, e3, i3, r2), o2.restore());
        }, cHr: function() {
          var t3 = this.Mf, n3 = t3.Fi(), e3 = n3.c9(this.Ent, this.jnt), i3 = this.Iet() ? n3.c9(this.Ont, this.jnt) : n3.c9(this.Ent, this.Rnt), r2 = n3.c9(t3.C0(this.Ktt.row), t3.S0(this.Ktt.col)), o2 = n3.c9(t3.C0(this.Ktt.row + this.Ktt.rowCount - 1), t3.S0(this.Ktt.col + this.Ktt.colCount - 1)), a2 = (0, f.mergeRect)(e3, i3);
          return a2 = (0, f.mergeRect)(a2, r2), (0, f.mergeRect)(a2, o2);
        }, Qnt: function() {
          this.Xnt = this.dO();
        }, znt: function() {
          return -1 === this.Ktt.col && -1 !== this.Ktt.row;
        }, Pnt: function() {
          return -1 === this.Ktt.row && -1 !== this.Ktt.col;
        }, lO: function() {
          return 4 === this.bO || 5 === this.bO;
        }, dO: function() {
          var t3 = this, n3 = -1, e3 = -1, i3 = -1, r2 = -1;
          switch (t3.bO) {
            case 0:
              t3.Pnt() ? (n3 = -1, i3 = -1) : (n3 = t3.Lnt(), i3 = (0, f.getRowCount)(t3.Ktt)), e3 = t3.Znt, r2 = t3.Unt() - e3;
              break;
            case 1:
              t3.Pnt() ? (n3 = -1, i3 = -1) : (n3 = t3.Lnt(), i3 = (0, f.getRowCount)(t3.Ktt)), e3 = t3.fet() + 1, r2 = t3.Znt - e3 + 1;
              break;
            case 2:
              n3 = t3.Ynt, i3 = t3.Lnt() - n3, t3.znt() ? (e3 = -1, r2 = -1) : (e3 = t3.Unt(), r2 = (0, f.getColCount)(t3.Ktt));
              break;
            case 3:
              n3 = t3.let() + 1, i3 = t3.Ynt - n3 + 1, t3.znt() ? (e3 = -1, r2 = -1) : (e3 = t3.Unt(), r2 = (0, f.getColCount)(t3.Ktt));
              break;
            case 5:
              n3 = t3.Ynt, i3 = t3.let() - n3 + 1, t3.znt() ? (e3 = -1, r2 = -1) : (e3 = t3.Unt(), r2 = (0, f.getColCount)(t3.Ktt));
              break;
            case 4:
              t3.Pnt() ? (n3 = -1, i3 = -1) : (n3 = t3.Ktt.row, i3 = (0, f.getRowCount)(t3.Ktt)), e3 = t3.Znt, r2 = t3.fet() - e3 + 1;
          }
          return d(n3, e3, i3, r2);
        }, het: function() {
          var t3 = this.let();
          return -1 !== t3 ? this.Mf._y(this.Gnt).findRow(t3) : p;
        }, det: function() {
          return this.Mf._y(this.Ont).findRow(this.vet());
        }, vet: function() {
          return this.Mf.getViewportBottomRow(this.Ont);
        }, met: function() {
          var t3 = this.fet();
          return -1 !== t3 ? this.Mf.Yy(this.Vnt).findCol(t3) : p;
        }, pet: function() {
          return this.Mf.Yy(this.Rnt).findCol(this.bet());
        }, bet: function() {
          return this.Mf.getViewportRightColumn(this.Rnt);
        }, Wnt: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, y2, w2, M2, C2, S2 = this, T2 = S2.znt(), x2 = S2.Pnt(), A2 = h(S2.Mf.Dg()).offset(), I2 = S2.fk.e, k = S2.fk.x, N = S2.fk.y, j = I2.pageX - A2.left, D = I2.pageY - A2.top, _ = false;
          T2 || x2 ? x2 ? S2.Znt >= S2.Unt() && S2.Znt <= S2.fet() ? S2.bO = 4 : S2.Znt < S2.Unt() ? S2.bO = 0 : S2.Znt > S2.fet() && (S2.bO = 1) : T2 && (S2.Ynt >= S2.Lnt() && S2.Ynt <= S2.let() ? S2.bO = 5 : S2.Ynt < S2.Lnt() ? S2.bO = 2 : S2.Ynt > S2.let() && (S2.bO = 3)) : S2.Ynt >= S2.Lnt() && S2.Ynt <= S2.let() ? S2.Znt >= S2.Unt() && S2.Znt <= S2.fet() ? (t3 = b(S2.Znt - S2.fet()), (n3 = b(S2.Ynt - S2.let())) > t3 ? S2.bO = 5 : n3 < t3 ? S2.bO = 4 : ((e3 = S2.het()) || (e3 = S2.det()), e3 ? N > e3.y + e3.height ? S2.bO = 3 : ((i3 = S2.met()) || (i3 = S2.pet()), r2 = i3.x + i3.width - k, o2 = e3.y + e3.height - N, j >= i3.x && j <= i3.x + i3.width && D >= e3.y && D <= e3.y + e3.height ? S2.bO = r2 >= o2 ? 4 : 5 : _ = true) : _ = true)) : S2.Znt < S2.Unt() ? S2.bO = 0 : S2.Znt > S2.fet() && (S2.bO = 1) : S2.Ynt < S2.Lnt() ? S2.Znt >= S2.Unt() && S2.Znt <= S2.fet() ? S2.bO = 2 : S2.Znt < S2.Unt() ? (t3 = b(S2.Znt - S2.Unt()), n3 = b(S2.Ynt - S2.Lnt()), S2.bO = n3 >= t3 ? 2 : 0) : S2.Znt > S2.fet() && (t3 = b(S2.Znt - S2.fet()), n3 = b(S2.Ynt - S2.Lnt()), S2.bO = n3 >= t3 ? 2 : 1) : S2.Ynt > S2.let() && (S2.Znt >= S2.Unt() && S2.Znt <= S2.fet() ? S2.bO = 3 : S2.Znt < S2.Unt() ? (t3 = b(S2.Znt - S2.Unt()), n3 = b(S2.Ynt - S2.let()), S2.bO = n3 >= t3 ? 3 : 0) : S2.Znt > S2.fet() && (t3 = b(S2.Znt - S2.fet()), n3 = b(S2.Ynt - S2.let()), S2.bO = n3 >= t3 ? 3 : 1)), (a2 = S2.Mf.Dn.yet) && (c2 = (u2 = S2.let()) + 1, f2 = (s2 = S2.fet()) + 1, l2 = S2.Mf.getRowHeight(u2, 3), d2 = S2.Mf.getColumnWidth(s2, 3), v2 = S2.Mf.getRowHeight(c2, 3), p2 = S2.Mf.getColumnWidth(f2, 3), g2 = a2.x + a2.width / 2 - m(10, d2 / 2), y2 = a2.x + a2.width / 2 + m(10, p2 / 2), w2 = a2.y + a2.height / 2 - m(10, l2 / 2), M2 = a2.y + a2.height / 2 + m(10, v2 / 2), C2 = false, (C2 = T2 || x2 ? x2 ? g2 <= j && j <= y2 : w2 <= D && D <= M2 : g2 <= j && j <= y2 && w2 <= D && D <= M2) || _ ? (S2.hO = true, S2.bO = 4) : S2.hO = false);
        }, Lnt: function() {
          return this.Ktt ? -1 === this.Ktt.row ? 0 : this.Ktt.row : -1;
        }, let: function() {
          var t3 = this;
          return t3.Ktt ? -1 === t3.Ktt.row ? (0, f.getSheetRowCount)(t3.Mf) - 1 : t3.Ktt.row + (0, f.getRowCount)(t3.Ktt) - 1 : -1;
        }, Unt: function() {
          return this.Ktt ? -1 === this.Ktt.col ? 0 : this.Ktt.col : -1;
        }, fet: function() {
          var t3 = this;
          return t3.Ktt ? -1 === t3.Ktt.col ? (0, f.getSheetColumnCount)(t3.Mf) - 1 : t3.Ktt.col + (0, f.getColCount)(t3.Ktt) - 1 : -1;
        }, wet: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2 = d(n3.row, n3.col, n3.rowCount, n3.colCount), c2 = this.Mf;
          return c2.Ut.findSpan(t3.row, t3.col) && (e3 = t3.rowCount, i3 = s2.rowCount, 0 !== Math.floor(i3 % e3) && (r2 = Math.ceil(i3 / e3) * e3, s2.row + r2 <= c2.getRowCount() && (s2.rowCount = r2)), o2 = t3.colCount, a2 = s2.colCount, 0 !== Math.floor(a2 % o2) && (u2 = Math.ceil(a2 / o2) * o2, s2.col + u2 <= c2.getColumnCount() && (s2.colCount = u2))), s2;
        }, DD: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.Mf;
          u2.Rk = p, u2.l9(), u2.iy(), u2.Yk && u2.rb ? (u2.Yk = false, u2.rb = false, (t3 = u2.Knt()) && (!(n3 = u2.Jnt(u2.Ktt, u2.Xnt)) || u2.hO ? (u2.Met(), u2.Ax(t3)) : (e3 = s2.rt.Ktt, i3 = u2.wet(e3, u2.Xnt), r2 = u2.net(), s2.Qy().execute({ cmd: "fill", sheetName: s2.name(), startRange: e3, fillRange: i3, autoFillType: r2, fillDirection: s2.rt.eet() }), o2 = u2.lnt, a2 = s2.getSelections(), !o2 && u2.Cet() && s2.parent.options.showDragFillSmartTag && 1 === a2.length && a2[0].equals(t3) && 4 !== u2.fnt ? u2.Tet(u2.fnt) : u2.Ax(t3), u2.Met()))) : u2.Met();
        }, IRe: function() {
          var t3 = this.Mf, n3 = I.all, e3 = t3.getCellType(t3.getActiveRowIndex(), t3.getActiveColumnIndex());
          return "19" === (null == e3 ? void 0 : e3.typeName) && (n3 &= ~I.smartMenuFillSeries), t3.NMi && (n3 &= ~I.smartMenuFillFormattingOnly, n3 &= ~I.smartMenuFillWithoutFormatting), n3;
        }, Tet: function(t3) {
          var n3 = this.Mf, e3 = n3.Dn.yet, i3 = { x: e3.x + e3.width, y: e3.y + e3.height, fillType: t3, availableFillAction: this.IRe() };
          n3.R_ = new a.Aet(n3.parent.j2(), n3, i3), n3.R_.rQ();
        }, _nt: function() {
          var t3, n3, e3 = this.Mf, i3 = e3.Ut.getSelections();
          1 === i3.length ? (t3 = i3[0], (n3 = e3.Ut.getSpans(t3)) && n3.length > 0 && (t3 = e3.kR(n3, t3)), this.Ktt = t3) : e3.ui >= 0 && e3.ci >= 0 && (this.Ktt = d(e3.ui, e3.ci, 1, 1));
        }, Met: function() {
          this.rb = false, this.Yk = false;
        }, Ax: function(t3) {
          this.Mf.Dn.E1(t3);
        }, net: function(t3, n3) {
          var e3, i3 = this, r2 = i3.Mf, o2 = t3 !== g ? t3 : r2.parent.options.defaultDragFillType;
          return i3.lO() ? 4 : 5 !== o2 ? o2 : (e3 = 1 === (0, f.getRowCount)(i3.Ktt) && 1 === (0, f.getColCount)(i3.Ktt) && !i3.Pnt() && !i3.znt()) ? i3.a_ && !n3 ? 1 : 0 : i3.a_ && !n3 ? 0 : 1;
        }, Knt: function() {
          var t3, n3, e3, i3, r2 = this;
          return r2.Ktt ? r2.lO() ? r2.Ktt : r2.Xnt ? (t3 = 0, n3 = 0, e3 = 0, i3 = 0, r2.Iet() ? (t3 = 2 === r2.bO ? r2.Xnt.row : r2.Ktt.row, n3 = (0, f.getRowCount)(r2.Ktt) + (0, f.getRowCount)(r2.Xnt), e3 = r2.Ktt.col, i3 = (0, f.getColCount)(r2.Ktt)) : (t3 = r2.Ktt.row, n3 = (0, f.getRowCount)(r2.Ktt), e3 = 0 === r2.bO ? r2.Xnt.col : r2.Ktt.col, i3 = (0, f.getColCount)(r2.Ktt) + (0, f.getColCount)(r2.Xnt)), d(t3, e3, n3, i3)) : p : p;
        }, Jnt: function(t3, n3, e3) {
          var i3, o2 = this.Mf, a2 = true, u2 = "";
          return o2.Ut.eE(n3.row, n3.col, (0, f.getRowCount)(n3), (0, f.getColCount)(n3)) && !(0, f.canDragFillSpan)(o2, t3, n3) && (a2 = false, u2 = A().Exp_FillRangeContainsMergedCell), !(i3 = o2.isActualProtected()) && o2.dataRanges && (i3 = (0, r.isAnyCellProtectedInDataRange)(o2, n3)), a2 && i3 && o2.dA(n3, true, r.SheetArea.viewport) && (a2 = false, u2 = o2.FT()), a2 || e3 || o2.ki(r.Events.InvalidOperation, { sheet: o2, sheetName: o2.name(), invalidType: r.InvalidOperationType.dragFill, message: u2, fillRange: n3 }), a2;
        }, Cet: function() {
          return this.xet() || this.Net();
        }, xet: function() {
          return 3 === this.bO || 1 === this.bO;
        }, Net: function() {
          return 0 === this.bO || 2 === this.bO;
        }, Iet: function() {
          return 2 === this.bO || 3 === this.bO || 5 === this.bO;
        }, eet: function() {
          var t3 = this.bO;
          return t3 >= 0 && t3 <= 3 ? t3 : 4 === t3 ? 0 : 5 === t3 ? 2 : 3;
        }, VL: function(t3, n3, e3) {
          var i3, r2, o2, a2 = this, u2 = p, s2 = (0, f.getRowViewportIndex)(t3), c2 = (0, f.getColViewportIndex)(t3), l2 = a2.Mf, h2 = l2.parent, d2 = l2.options.rightToLeft;
          if (v(s2) || v(c2) || !h2.options.allowUserDragDrop && !h2.options.allowUserDragFill) return u2;
          if (-1 === (i3 = l2.U5()).row && -1 === i3.col) return u2;
          if (s2 >= 0 && c2 >= 0 && 1 === l2.Ut.getSelections().length) {
            if (a2.yD(s2, c2, n3, e3)) return u2;
            d2 && (r2 = a2.Mf.Dn.yet) && r2.x <= n3 && n3 <= r2.x + r2.width && r2.y <= e3 && e3 <= r2.y + r2.height && (u2 = { action: C, side: S }), o2 = l2.getRangeRect(s2, c2, i3), u2 || o2.x - 4 < n3 && n3 < o2.x + 4 && o2.y <= e3 && e3 < o2.y + o2.height && (u2 = { action: C, side: "left" }), u2 || d2 || (r2 = a2.Mf.Dn.yet) && r2.x <= n3 && n3 <= r2.x + r2.width && r2.y <= e3 && e3 <= r2.y + r2.height && (u2 = { action: C, side: S }), u2 || o2.x + o2.width - 4 < n3 && n3 < o2.x + o2.width + 4 && o2.y <= e3 && e3 < o2.y + o2.height && (u2 = { action: C, side: "right" }), u2 || o2.y - 4 < e3 && e3 < o2.y + 4 && o2.x <= n3 && n3 < o2.x + o2.width && (u2 = { action: C, side: "top" }), u2 || o2.y + o2.height - 4 < e3 && e3 < o2.y + o2.height + 4 && o2.x <= n3 && n3 < o2.x + o2.width && (u2 = { action: C, side: "bottom" }), u2 && (n3 < o2.x || n3 > o2.x + o2.width || e3 < o2.y || e3 > o2.y + o2.height) && (u2.outside = true);
          }
          return h2 && h2.options.allowUserDragDrop || u2 && u2.side !== S && (u2.side = p), h2 && h2.options.allowUserDragFill || u2 && u2.side === S && (u2.side = p), u2;
        }, ket: function(t3, n3) {
          var e3 = this, i3 = e3.Mf, r2 = i3.getSpan(t3, n3, 3);
          return r2 ? !v(e3.Mf.getValue(r2.row, r2.col, 3, 0)) : !v(e3.Mf.getValue(t3, n3, 3, 0));
        }, Det: function(t3, n3) {
          var e3, i3 = this, r2 = i3.Mf, o2 = r2.tables;
          return !(!o2 || 0 === o2.all().length) && ((e3 = o2.AB(t3, n3, 1, 1)[0]) && e3.footerIndex() === t3);
        }, _et: function(t3, n3, e3, i3) {
          var r2, o2 = this;
          for (r2 = n3; r2 < n3 + i3; r2++) if (!o2.ket(t3, r2) || o2.Det(t3, r2)) return false;
          return true;
        }, Eet: function(t3, n3, e3, i3) {
          var r2, o2 = this;
          for (r2 = n3; r2 < n3 + i3; r2++) if (o2.ket(t3, r2)) return false;
          return true;
        }, jet: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf;
          if ("left" === i3) {
            for (r2 = 0; r2 < n3; r2++) l2.ket(t3, r2) && (e3.searchArray[r2] = true);
            for (o2 = n3 - 1, a2 = 1; e3.searchArray[o2]; ) o2--, a2++;
            e3.searchLength = a2;
          }
          if ("right" === i3) {
            for (u2 = h2.getColumnCount(), s2 = n3; s2 < u2; s2++) l2.ket(t3, s2) && (e3.searchArray[s2 - n3] = true);
            for (c2 = 0, f2 = 1; e3.searchArray[c2]; ) c2++, f2++;
            e3.searchLength = f2;
          }
          return e3;
        }, Oet: function(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = this, l2 = f2.Mf, h2 = 0, d2 = { searchArray: new Array(i3), searchLength: 1 }, v2 = { searchArray: new Array(l2.getColumnCount() - r2), searchLength: 1 };
          for (o2 = e3 - 1; o2 >= n3 && !f2.Eet(o2, t3.col, 1, t3.colCount); o2--) d2 = f2.jet(o2, t3.col, d2, "left"), v2 = f2.jet(o2, t3.col + t3.colCount - 1, v2, "right");
          for (; f2.Eet(e3 + h2, t3.col, 1, t3.colCount); ) {
            for (a2 = true, u2 = false, d2 = f2.jet(e3 + h2, i3, d2, "left"), v2 = f2.jet(e3 + h2, r2, v2, "right"), s2 = i3 - 1; s2 >= i3 - d2.searchLength; s2--) if (f2.ket(e3 + h2, s2)) {
              h2++, a2 = false;
              break;
            }
            if (a2) {
              for (c2 = r2 + 1; c2 <= r2 + v2.searchLength; c2++) if (f2.ket(e3 + h2, c2)) {
                h2++, u2 = true;
                break;
              }
              if (!u2) return h2;
            }
          }
          return h2;
        }, Ret: function(t3) {
          for (var n3 = this, e3 = 0; n3._et(t3.row + t3.rowCount + e3, t3.col, 1, t3.colCount); ) e3++;
          return e3;
        }, Bet: function(t3) {
          var n3, e3, i3, r2, o2 = this;
          return o2._et(t3.row + t3.rowCount, t3.col, 1, t3.colCount) ? o2.Ret(t3) : (i3 = 0, r2 = t3.row + t3.rowCount, 1 === t3.colCount ? e3 = n3 = t3.col : (n3 = t3.col, e3 = t3.col + t3.colCount - 1), o2.Oet(t3, 0, r2, n3, e3));
        }, H_: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = a2.rt.Ktt, s2 = o2.Bet(u2);
          0 !== s2 && (t3 = d(u2.row + u2.rowCount, u2.col, s2, u2.colCount), o2.bO = 3, o2.Xnt = t3, n3 = o2.net(), e3 = o2.lnt, a2.Qy().execute({ cmd: "fill", sheetName: a2.name(), startRange: u2, fillRange: t3, autoFillType: n3, fillDirection: o2.bO }), i3 = o2.Knt(), r2 = a2.getSelections(), !e3 && a2.parent.options.showDragFillSmartTag && 1 === r2.length && r2[0].equals(i3) && 4 !== o2.fnt && o2.Tet(o2.fnt));
        } });
      }, "./dist/plugins/fill/fill-render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("./dist/plugins/fill/utils.js"), o = i2.GC$, a = Math.min, u = Math.max, o.extend(i2.g7.prototype, { Let: function(t3, n3) {
          var e3, o2 = this.Mf, a2 = o2.options.rightToLeft, u2 = t3.x, s = t3.y, c = (0, r.getWidth)(t3), f = (0, r.getHeight)(t3), l = o2.U5(), h = o2.Fi(), d = 4, v = -2.5;
          return n3 > 2007 && (d = 5, v = -3), e3 = new i2.Rect(-4, -4, d, d), -1 === l.col ? (e3.x = a2 ? h.BA + v : h.b6, e3.y = s + f + v) : -1 === l.row ? (e3.x = a2 ? u2 + v : u2 + c + v, e3.y = h.T6) : (e3.x = a2 ? u2 + v : u2 + c + v, e3.y = s + f + v), e3;
        }, yO: function(t3, n3, e3, o2, a2) {
          var s, c, f = this, l = f.Mf, h = l.Fi(), d = l.parent, v = d && d.SC, p = f.Let(o2, v), g = p.x, m = p.y, b = (0, r.getWidth)(p), y = (0, r.getHeight)(p), w = h.c9(n3, e3);
          a2 && !p.intersectRect(a2) || p.intersectRect(w) && (s = -1.5, v > 2007 && (s = -1), (c = new i2.Rect(g + s, m + s, b + 2, y + 2)).x < w.x && (c.width -= w.x - c.x, c.x = w.x), c.y = u(c.y, w.y), f.O1(c), t3.save(), a2 && !a2.containsRect(p) && (t3.rect(a2.x, a2.y, (0, r.getWidth)(a2), (0, r.getHeight)(a2)), t3.clip()), t3.beginPath(), t3.fillStyle = i2.Pf.vl(l, l.getSelectionBorderColor()), t3.fillRect(g, m, b, y), f.yet = new i2.Rect(p.x, p.y, 4, 4), t3.beginPath(), t3.restore());
        }, cet: function(t3, n3, e3, i3) {
          var o2 = n3.x, a2 = n3.y, u2 = o2 + (0, r.getWidth)(n3), s = a2 + (0, r.getHeight)(n3);
          (0, r.paintDragLine)(t3, o2 - 2, a2, u2 + 1, a2, e3, i3), (0, r.paintDragLine)(t3, o2 - 1, s, u2 + 1, s, e3, i3), (0, r.paintDragLine)(t3, o2, a2 - 1, o2, s + 1, e3, i3), (0, r.paintDragLine)(t3, u2, a2 - 1, u2, s + 1, e3, i3);
        }, Fet: function(t3, n3) {
          var e3, o2, u2, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j = this, D = j.Mf, _ = D.rt, O = _.q6, E = O.hitTarget;
          O && E && (e3 = O.hitCol, o2 = O.hitRow, u2 = O.row, s = O.col, c = _.i_, f = D.Pet, h = D.getSelectionBorderColor(), d = (0, r.getLineStyle)(D), v = 8, t3.save(), true === c ? (p = D.Yy(0).findCol(e3) || D.Yy(1).findCol(e3) || D.Yy(2).findCol(e3), g = D._y(0).findRow(o2) || D._y(1).findRow(o2) || D._y(2).findRow(o2), -1 === O.row && -1 !== O.col ? p && (m = p.x, b = (0, r.getWidth)(p), O.col = e3, E.x > m + b / 2 && (O.col < D.getLastFullyVisibleColumn() || O.col === D.G6()) && (m = p.x + (0, r.getWidth)(p), O.col++), f && 0 === (0, r.getWidth)(f) || (f = _.q6), f && (l = new i2.Rect(f.x - v, f.y - v, (0, r.getWidth)(f) + 2 * v, (0, r.getHeight)(f) + 2 * v), j.O1(l, n3), j.E1(D.U5(), n3)), D.Uet = new i2.Rect(m, O.y, 0, (0, r.getHeight)(O)), t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), (0, r.paintDragLine)(t3, m - v, O.y, m + v, O.y, h, d), (0, r.paintDragLine)(t3, m, O.y, m, O.y + (0, r.getHeight)(O), h, d), (0, r.paintDragLine)(t3, m - v, O.y + (0, r.getHeight)(O), m + v, O.y + (0, r.getHeight)(O), h, d)) : -1 !== O.row && -1 === O.col ? g && (y = g.y, w = (0, r.getHeight)(g), O.row = o2, E.y > y + w / 2 && (O.row < D.getLastFullyVisibleRow() || O.row === D.P6()) && (y = g.y + (0, r.getHeight)(g), O.row++), f && 0 === (0, r.getHeight)(f) || (f = _.q6), f && (l = new i2.Rect(f.x - v, f.y - v, (0, r.getWidth)(f) + 2 * v, (0, r.getHeight)(f) + 2 * v), j.O1(l, n3), j.E1(D.U5(), n3)), D.Uet = new i2.Rect(O.x, y, (0, r.getWidth)(O), 0), t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), (0, r.paintDragLine)(t3, O.x, y - v, O.x, y + v, h, d), (0, r.paintDragLine)(t3, O.x, y, O.x + (0, r.getWidth)(O), y, h, d), (0, r.paintDragLine)(t3, O.x + (0, r.getWidth)(O), y - v, O.x + (0, r.getWidth)(O), y + v, h, d)) : -1 !== O.row && -1 !== O.col && (M = D.Yy(0).findCol(s) || D.Yy(1).findCol(s) || D.Yy(2).findCol(s), C = D._y(0).findRow(u2) || D._y(1).findRow(u2) || D._y(2).findRow(u2), g && p && C && M && (m = M.x, y = C.y, f && (l = new i2.Rect(f.x - v, f.y - v, (0, r.getWidth)(f) + 2 * v, (0, r.getHeight)(f) + 2 * v), j.O1(l, n3), j.E1(D.U5(), n3)), S = false, T = D.getCellRect(o2, e3), !_.Cnt && T && (S = (x = O.hitTarget.x - T.x) < a(16, D.nn(e3) / 4)), S ? m = p.x : y = g.y, D.Uet = new i2.Rect(m, y, (0, r.getWidth)(O), (0, r.getHeight)(O)), D.U5().contains(o2, e3) || (t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), S ? ((0, r.paintDragLine)(t3, m - v, y, m + v, y, h, d), (0, r.paintDragLine)(t3, m, y, m, y + (0, r.getHeight)(O), h, d), (0, r.paintDragLine)(t3, m - v, y + (0, r.getHeight)(O), m + v, y + (0, r.getHeight)(O), h, d), _.Dnt = true) : ((0, r.paintDragLine)(t3, m, y - v, m, y + v, h, d), (0, r.paintDragLine)(t3, m, y, m + (0, r.getWidth)(O), y, h, d), (0, r.paintDragLine)(t3, m + (0, r.getWidth)(O), y - v, m + (0, r.getWidth)(O), y + v, h, d), _.Dnt = false))))) : (f && (l = new i2.Rect(f.x - v, f.y - v, (0, r.getWidth)(f) + 2 * v, (0, r.getHeight)(f) + 2 * v), j.O1(l, n3), A = D.U5(), N = (k = (I = (0, i2.Ec)(O.row, O.col, O.rowCount, O.colCount)).union(A)).row, k.row > 2 && (k.row -= 3), N + k.rowCount + 2 < D.getRowCount() && (k.rowCount += 3 + N - k.row), j.E1(k, n3)), t3.rect(n3.x, n3.y, (0, r.getWidth)(n3), (0, r.getHeight)(n3)), t3.clip(), t3.beginPath(), j.cet(t3, O, h, d)), t3.beginPath(), t3.restore());
        }, o_: function() {
          var t3, n3, e3, o2, a2, u2, s, c, f, l, h, d = this, v = d.Mf, p = v.sw, g = v.rt.xnt;
          p && p.dragInfo && g && (t3 = d.J(), n3 = v.Fi(), e3 = v.rt.q6, o2 = v.j1(g), a2 = v.frozenTrailingColumnCount(), u2 = v.frozenTrailingRowCount(), s = v.getColumnCount() - a2, c = v.getRowCount() - u2, f = n3.c9(1, 1), a2 > 0 && g.col + g.colCount <= s && o2.x + (0, r.getWidth)(o2) > f.x + (0, r.getWidth)(f) && o2.intersectRect(f) && (o2 = o2.getIntersectRect(f)), u2 > 0 && g.row + g.rowCount <= c && o2.y + (0, r.getHeight)(o2) > f.y + (0, r.getHeight)(f) && o2.intersectRect(f) && (o2 = o2.getIntersectRect(f)), l = v.options.rightToLeft ? new i2.Rect(n3.Hy, n3.T6, n3.b6 + n3.F6, n3.Ay + n3.Iy) : new i2.Rect(n3.b6, n3.T6, n3.Hy + n3.zy, n3.Ay + n3.Iy), (0, r.getWidth)(o2) >= 0 && (0, r.getHeight)(o2) >= 0 && (e3.x = o2.x, e3.y = o2.y, e3.width = (0, r.getWidth)(o2), e3.height = (0, r.getHeight)(o2), d.Fet(t3, l)), h = v.rt.i_, v.Pet = true === h ? v.Uet : new i2.Rect(e3.x, e3.y, (0, r.getWidth)(e3), (0, r.getHeight)(e3)));
        } });
      }, "./dist/plugins/fill/fill-ui.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G = this && this.qKr || (U = function(t3, n3) {
          return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, U(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          U(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), U;
        function H(t3, n3, e3, i3, r2, o2) {
          var a2 = t3.Oi, c2 = a2 ? "160px" : "150px", f2 = a2 ? "25px" : "20px", h2 = u(s("div")).css([T, A, I, "padding", k], ["block", c2, f2, 0, 0]).addClass("gc-smartMenu-item-default " + e3 + " ui-state-default" + l), d2 = u(s("div")).addClass(b).appendTo(h2), v2 = u(s("div")).addClass("gc-menu-item-text").appendTo(h2), p2 = u(s("input")).attr({ id: n3, value: r2, type: "radio", name: "fill-group", style: "display:none" }).appendTo(d2);
          return u(s("span")).text(i3).appendTo(v2), o2 ? (d2.addClass(m), p2.prop("checked", "checked")) : p2.prop("checked", ""), h2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Aet = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/fill/fill.ns.js"), a = e2("./dist/plugins/fill/fill-event.js"), u = r.GC$, s = r.mt.En, c = r.mt.gi, f = u(document), l = " btn btn-default", d = "gc-fill-type-item", v = "gc-fill-menu-container", p = (h = "ui-state-hover ") + "gc-smartMenu-item-hover", g = h + "gc-smart-tag-hover", m = "ui-icon ui-icon-check gc-check-image", b = "gc-menu-item-input", y = "ui-state-active gc-smart-tag-active", w = "gc-tag-container", M = "float", C = "left", S = "top", T = "display", x = "width", A = "min-width", I = "height", k = "margin", N = "change", j = "input[type=radio]", D = "mouseover", _ = "mouseout", O = "click", E = "fillTypeChanged", R = "keydown.ui-fill", L = new i2.Common.ResourceManager(o.SR, "Fill"), F = L.getResource.bind(L), B = (function(t3) {
          function n3(n4, e3, i3) {
            var o2, s2 = t3.call(this, n4, c(e3.parent.Ti), void 0, true) || this;
            return s2.ter = r.DialogFeatureType.fill, s2.Mf = e3, s2.Het = u("." + w), (o2 = s2.g$ = s2.Xc()).addClass(v), i3 & a.FillAction.smartMenuCopyCells && H(e3, "smartMenuCopyCells", d, F().CopyCells, "0", true).appendTo(o2), i3 & a.FillAction.smartMenuFillSeries && H(e3, "smartMenuFillSeries", d, F().FillSeries, "1").appendTo(o2), i3 & a.FillAction.smartMenuFillFormattingOnly && H(e3, "smartMenuFillFormattingOnly", d, F().FillFormattingOnly, "2").appendTo(o2), i3 & a.FillAction.smartMenuFillWithoutFormatting && H(e3, "smartMenuFillWithoutFormatting", d, F().FillWithoutFormatting, "3").appendTo(o2), s2;
          }
          return G(n3, t3), n3.prototype.$c = function() {
            t3.prototype.$c.call(this);
          }, n3.prototype.aY = function() {
            var t4, n4 = this, e3 = u("." + d);
            e3.bind(D, (function() {
              u(this).addClass(p);
            })).bind(_, (function() {
              u(this).removeClass(p);
            })).bind(O, (function() {
              var t5, e4 = u(this), i3 = n4.Het, r2 = e4.find(j), o2 = r2[0];
              o2.checked = true, r2.trigger(N), i3.trigger(O), i3.trigger(_), e4.removeClass(p), t5 = parseInt(u(o2).attr("value"), 10), n4.Wet(t5);
            })), (t4 = n4.g$.find(j)).bind(N, (function() {
              u("." + b).removeClass(m), u(this).parent().addClass(m);
            }));
          }, n3.prototype.Qet = function() {
            u("." + d).unbind(D).unbind(_).unbind(O), this.g$.find(j).unbind(N);
          }, n3.prototype.Wet = function(t4) {
            var n4 = this, e3 = n4.Mf, i3 = e3.rt;
            if (n4.Ket !== t4) {
              n4.Ket = t4, e3.cnt = true, e3.suspendEvent();
              try {
                r.Commands.undo.execute(e3.parent, { sheetName: e3.name() });
              } finally {
                e3.resumeEvent();
              }
              e3.cnt = false, e3.Qy().execute({ cmd: "fill", sheetName: e3.name(), startRange: i3.Ktt, fillRange: i3.Xnt, autoFillType: t4, fillDirection: i3.bO }), n4.Het.trigger(E, t4);
            }
          }, n3.prototype.Jet = function() {
            return !!u("." + v).length;
          }, n3;
        })(r.zc), P = (function(t3) {
          function n3(n4, e3, i3) {
            var r2, o2 = t3.call(this, n4, c(e3.parent.Ti), void 0, true) || this;
            return o2.Mf = e3, o2.zet = i3, r2 = o2.Vet = o2.Xc().addClass("gc-smart-tag-default " + w + " gc-no-user-select ui-widget-header" + l), o2.Yet = u(s("div")).attr("class", "fillSmartTag").css(M, C).appendTo(r2), o2.Zet = u(s("div")).attr("class", "fillSmartTagDown").css([M, T], [C, "none"]).appendTo(r2), o2;
          }
          return G(n3, t3), n3.prototype.Xet = function(t4, n4, e3) {
            var i3 = this, r2 = i3.Mf.Oi, o2 = u(n4), a2 = i3.qet, s2 = i3.Zet, c2 = r2 ? "38px" : "32px", f2 = r2 ? "24px" : "18px";
            a2 && a2.Jet() || (t4 ? o2.addClass(g) : o2.removeClass(g), o2.css([x, I], [t4 ? c2 : f2, f2]), e3 || (t4 ? s2.show() : s2.hide()));
          }, n3.prototype.$et = function() {
            var t4 = this, n4 = t4.Vet, e3 = r.mt.pi(), i3 = r.mt.Tt.safari && (e3.ipad || e3.iphone);
            n4.bind(D, (function() {
              t4.Xet(true, this, i3);
            })).bind(_, (function() {
              t4.Xet(false, this, i3);
            })), n4.bind(O, (function() {
              var n5, e4, r2 = u(this), o2 = t4.qet, a2 = t4.Zet, s2 = o2 && o2.Jet();
              s2 ? (i3 && a2.hide(), r2.removeClass(y), t4.tit()) : (i3 && a2.show(), r2.addClass(y), t4.nit(), (e4 = (n5 = t4.g$) && n5.find(j)[t4.zet.fillType]) && !e4.checked && (e4.checked = true, u(e4).trigger(N)));
            })), f.bind(R, (function(n5) {
              27 === n5.keyCode && (t4.qet && t4.qet.Jet() ? t4.tit() : t4.close(), r.mt.vi(n5));
            }));
          }, n3.prototype.rQ = function() {
            var t4 = this, n4 = t4.Vet, e3 = t4.zet, i3 = t4.Mf.Oi, r2 = i3 ? "3px" : "0px", o2 = i3 ? "24px" : "18px";
            n4 && (n4.css([C, S], [e3.x, e3.y]), t4.$c(), t4.$et(), t4.Yet.css(k, r2), t4.Zet.css(I, o2), t4.c5());
          }, n3.prototype.nit = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = u2.Mf;
            u2.qet || (u2.qet = new B(s2.parent.j2(), s2, this.zet.availableFillAction), u2.g$ = u2.qet.Xc()), n4 = (t4 = u2.Vet).css(C), e3 = t4.css(S), i3 = parseFloat(e3), o2 = u2.qet, a2 = u2.zet, o2.Ket = a2.fillType, isNaN(i3) || (r2 = i3 + t4.height() + 2), u2.g$.css([C, S], [n4, r2]), o2.$c(), o2.aY(), o2.Het.unbind(E).bind(E, (function(t5, n5) {
              a2.fillType = n5;
            }));
          }, n3.prototype.RRe = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2;
            this.rf() && (-1 === (e3 = (n4 = this.Mf).U5()).col ? (i3 = n4.C0(e3.row + e3.rowCount - 1), r2 = n4.S0(0)) : -1 === e3.row ? (i3 = n4.C0(0), r2 = n4.S0(e3.col + e3.colCount - 1)) : (i3 = n4.C0(e3.row + e3.rowCount - 1), r2 = n4.S0(e3.col + e3.colCount - 1)), o2 = n4.getRangeRect(i3, r2, e3), a2 = null === (t4 = n4.parent) || void 0 === t4 ? void 0 : t4.SC, u2 = n4.Dn.Let(o2, a2), c2 = (s2 = n4.Fi()).c9(i3, r2), f2 = 3, u2.intersectRect(c2) ? this.Vet.css([C, S], [u2.x + f2, u2.y + f2]) : this.Vet.css(T, "none"), this.Vet.removeClass(y), (l2 = this.qet) && l2.rf() && l2.close());
          }, n3.prototype.tit = function() {
            var t4 = this.qet;
            t4 && (t4.Qet(), t4.close());
          }, n3.prototype.c5 = function() {
            var t4 = this, n4 = t4.qet, e3 = t4.Vet;
            n4 && (n4.Jet() && e3.trigger(O), e3.trigger(_));
          }, n3.prototype.close = function() {
            var n4, e3 = this, i3 = e3.Mf;
            e3.c5(), f.unbind(R), t3.prototype.close.call(this), (n4 = i3.fg) && (n4.style.cursor = "default"), !i3 || i3.il && i3.il.XD || i3.Zg();
          }, n3.prototype.lf = function(n4) {
            var e3;
            return !(!this.Wc || !t3.prototype.hf.call(this, this.Wc.get(0), n4)) || this.g$ && t3.prototype.hf.call(this, this.g$.get(0), n4);
          }, n3;
        })(r.zc), n2.Aet = P;
      }, "./dist/plugins/fill/fill.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), e2("./dist/plugins/fill/drag-fill.js"), e2("./dist/plugins/fill/fill-event.js"), e2("./dist/plugins/fill/fill-render.js"), e2("./dist/plugins/fill/drag-header-to-move/index.js"), r(e2("./dist/plugins/fill/fill-ui.js"), n2), r(e2("./dist/plugins/fill/fill.js"), n2), r(e2("./dist/plugins/fill/fill.ns.js"), n2);
      }, "./dist/plugins/fill/fill.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt = this && this.qKr || (nt = function(t3, n3) {
          return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, nt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          nt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), nt;
        function et(t3) {
          return !it(t3) && c.q8(t3);
        }
        function it(t3) {
          return "string" == typeof t3;
        }
        function rt(t3, n3) {
          return -1 !== t3.lastIndexOf(n3);
        }
        function ot(t3) {
          var n3 = [t3];
          return n3.rowCount = 1, n3.colCount = b(t3), n3;
        }
        function at(t3) {
          return t3;
        }
        function ut(t3, n3, e3, r2) {
          var o2 = ot(n3), a2 = ot(e3), u2 = ot([r2]), s2 = t3 ? i2.Common.eit(o2, a2, u2, true, at, f, f, f) : i2.Common.iit(o2, a2, u2, true, f, f, f), c2 = s2 && s2[0][0];
          return typeof c2 === C ? i2.Common.st.E8(c2, 13) : c2;
        }
        function st(t3) {
          return t3.toLowerCase();
        }
        function ct(t3) {
          var n3, e3, i3 = t3.length, r2 = 1;
          if (i3 > 1) {
            for (r2 = t3[1] - t3[0], e3 = 2; e3 < i3; e3++) if (r2 !== (n3 = t3[e3] - t3[e3 - 1])) {
              r2 = 0;
              break;
            }
          }
          return r2;
        }
        function ft(t3, n3) {
          return t3 > 0 ? (t3 - 1) % n3 : n3 - Math.abs(t3) % n3 - 1;
        }
        function lt(t3) {
          for (var n3 = "", e3 = 0; e3 < t3; ) n3 += "0", e3++;
          return n3;
        }
        function ht(t3, n3) {
          return 12 * (n3.getFullYear() - t3.getFullYear()) + (n3.getMonth() - t3.getMonth());
        }
        function dt(t3) {
          return t3.every((function(t4) {
            var n3;
            return 1 === t4.getDate();
          }));
        }
        function vt(t3) {
          return t3.every((function(t4) {
            var n3 = t4.getFullYear(), e3 = t4.getMonth(), i3 = t4.getDate(), r2 = new Date(n3, e3 + 1, 0).getDate();
            return i3 === r2;
          }));
        }
        function pt(t3) {
          var n3 = 0, e3 = t3.every((function(t4) {
            var e4 = t4.getDate();
            return n3 || (n3 = e4), n3 === e4;
          }));
          return e3 ? n3 : 0;
        }
        function gt(t3, n3) {
          var e3, i3, r2 = t3.length, o2 = true;
          for (i3 = 2; i3 < r2 && (o2 = n3 === (e3 = ht(t3[i3 - 1], t3[i3]))); i3++) ;
          return o2;
        }
        function mt(t3) {
          return t3.every((function(t4) {
            var n3 = t4.getHours(), e3 = t4.getMinutes(), i3 = t4.getSeconds();
            return 0 !== n3 || 0 !== e3 || 0 !== i3;
          }));
        }
        function bt(t3, n3) {
          return new Date(t3, n3 + 1, 0).getDate();
        }
        function yt(t3) {
          return "0" === t3[0];
        }
        function wt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = e3 ? 1 : 2, c2 = e3 ? 2 : 1;
          return n3.every((function(n4) {
            return !!(i3 = n4.match(t3.pit)) && (r2 = i3[s2], (u2 = r2.length) > t3.yit && yt(r2) && (t3.yit = u2), o2 = parseInt(r2, 10), a2 = i3[c2], v(t3.cit) && (t3.cit = a2), a2 !== t3.cit ? (t3.wit = true, t3.cit = f, t3.sit = []) : t3.sit.push(o2), true);
          }));
        }
        function Mt(t3) {
          t3.forEach((function(t4) {
            t4 && t4.dispose();
          }));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Wtt = n2.nnt = n2.FillDateUnit = n2.FillType = n2.FillSeries = n2.FillDirection = n2.AutoFillType = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("CalcEngine"), a = e2("SheetsCalc"), u = e2("./dist/plugins/fill/fill.ns.js"), s = !!o, c = i2.Common.lt, f = null, l = void 0, h = Math.floor, d = r.Ec, v = c.ht, p = c.uJ, g = i2.Common.Uf, m = g.Eit, b = g.tR, y = i2.Common.ct, w = y.o0, M = y.Y0, C = "number", S = "date", T = "string", x = "default", A = new i2.Common.ResourceManager(u.SR, "Fill"), I = A.getResource.bind(A), k = i2.Common.CultureManager, (function(t3) {
          t3[t3.copyCells = 0] = "copyCells", t3[t3.fillSeries = 1] = "fillSeries", t3[t3.fillFormattingOnly = 2] = "fillFormattingOnly", t3[t3.fillWithoutFormatting = 3] = "fillWithoutFormatting", t3[t3.clearValues = 4] = "clearValues", t3[t3.auto = 5] = "auto";
        })(N = n2.AutoFillType || (n2.AutoFillType = {})), (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.right = 1] = "right", t3[t3.up = 2] = "up", t3[t3.down = 3] = "down";
        })(j = n2.FillDirection || (n2.FillDirection = {})), (function(t3) {
          t3[t3.column = 0] = "column", t3[t3.row = 1] = "row";
        })(D = n2.FillSeries || (n2.FillSeries = {})), (function(t3) {
          t3[t3.direction = 0] = "direction", t3[t3.linear = 1] = "linear", t3[t3.growth = 2] = "growth", t3[t3.date = 3] = "date", t3[t3.auto = 4] = "auto";
        })(_ = n2.FillType || (n2.FillType = {})), (function(t3) {
          t3[t3.day = 0] = "day", t3[t3.weekday = 1] = "weekday", t3[t3.month = 2] = "month", t3[t3.year = 3] = "year";
        })(O = n2.FillDateUnit || (n2.FillDateUnit = {})), E = (function() {
          function t3(t4) {
            this._indexes = [], this.oit = [], this.ait = [], this._type = f, this.sit = [], this.cit = f, this.lit = v(t4) ? -1 : t4;
          }
          return t3.prototype.jit = function() {
            return b(this._indexes);
          }, t3.prototype.Oit = function() {
            var t4 = this, n3 = [], e3 = t4.oit, i3, r2;
            for (i3 = 0; i3 < b(e3); i3++) r2 = e3[i3], n3.push("object" === t4._type ? t4.r0(r2) : r2);
            return n3;
          }, t3.prototype.Rit = function() {
            var t4, n3, e3, i3 = this, r2 = i3._indexes;
            if (b(r2) > 0) {
              for (n3 = [], e3 = void 0, -1 === (t4 = i3.lit) && (t4 = r2[0]), e3 = 0; e3 < b(r2); e3++) n3[e3] = r2[e3] - t4 + 1;
              return n3;
            }
            return f;
          }, t3.prototype.Bit = function() {
            var t4 = this.oit;
            return b(t4) ? t4 : f;
          }, t3.prototype.Eit = function(t4, n3, e3) {
            if (!et(e3)) throw new Error(I().Exp_NumberOnly);
            var i3 = this;
            v(i3._type) && (i3._type = e3 instanceof Date ? S : C), m(i3._indexes, t4, n3), m(i3.oit, t4, p(e3));
          }, t3.prototype.ZP = function(t4, n3) {
            var e3 = this, i3 = v(e3._type);
            et(n3) ? (i3 && (n3 instanceof Date ? e3._type = S : e3._type = C), e3.oit.push(p(n3))) : i3 && (e3._type = it(n3) ? T : x), e3._indexes.push(t4), e3.ait.push(n3);
          }, t3.prototype.Lit = function(t4) {
            return this._type === S ? this.r0(t4) : t4;
          }, t3.prototype.r0 = function(t4) {
            var n3 = f;
            if (t4 instanceof Date) n3 = t4;
            else if (o) try {
              n3 = o.Convert.r0(t4);
            } catch (e3) {
              n3 = t4;
            }
            return n3;
          }, t3;
        })(), R = (function() {
          function t3(t4) {
            this.hit = -1, this.dit = [], this.MV = -1, this.Mf = t4;
          }
          return t3.prototype.L0 = function() {
            this.Mf = f;
          }, t3.prototype.Fit = function() {
            var t4 = this.Mf;
            return t4.parent && t4.parent.Ow() || [];
          }, t3.prototype.Pit = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = t4.length, g2 = false;
            if (t4 && p2 > 0) {
              for (n3 = st(t4[0]), e3 = this.Fit(), i3 = void 0, r2 = void 0, o2 = void 0, a2 = void 0, u2 = void 0, s2 = void 0, i3 = 0; i3 < e3.length; i3++) if ((a2 = (o2 = (r2 = e3[i3]).map((function(t5) {
                return st(t5);
              }))).indexOf(n3)) >= 0) {
                for (u2 = a2, c2 = o2.length, f2 = void 0, l2 = void 0, h2 = void 0, d2 = 1; d2 < p2; d2++) {
                  if (l2 = st(t4[d2]), !((f2 = o2.indexOf(l2)) >= 0)) {
                    g2 = false;
                    break;
                  }
                  if (h2 = f2 - u2 + c2, s2) {
                    if (s2 !== h2) {
                      g2 = false;
                      break;
                    }
                  } else g2 = true, s2 = h2, u2 = f2;
                }
                if (v2 = 1 === p2, g2 || v2) {
                  g2 = true, this.hit = a2, this.dit = r2, this.MV = v2 ? 1 : s2;
                  break;
                }
              }
            }
            return g2;
          }, t3.prototype.Sl = function(t4) {
            var n3 = this.dit, e3 = this.hit, i3 = this.MV, r2 = n3.length, o2, a2;
            return n3[a2 = (e3 + i3 * ft(t4, r2)) % r2];
          }, t3;
        })(), L = (function() {
          function t3() {
            this.vit = "", this.mit = "", this.MV = 0, this.git = 1, this._padding = "";
          }
          return t3.prototype.Sl = function(t4) {
            var n3 = this.MV * (t4 - 1) + this.git, e3 = this._padding.length, i3 = "" + Math.abs(n3), r2 = i3.length, o2 = this._padding + i3, a2 = o2.length;
            return i3 = r2 > e3 ? i3 : o2.substr(a2 - e3), this.vit + i3 + this.mit;
          }, t3;
        })(), B = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.Mit = 0, n4._type = S, n4;
          }
          return tt(n3, t3), n3;
        })(F = (function() {
          function t3() {
          }
          return t3.prototype.match = function(t4) {
            return false;
          }, t3.prototype.getTargetValue = function(t4, n3, e3, i3, r2) {
          }, t3.prototype.resetProp = function() {
          }, t3.prototype.Git = function(t4, n3) {
            return t4.indexOf(n3 + 1);
          }, t3.prototype.dispose = function() {
          }, t3;
        })()), P = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            var n4 = this.Mit = ht(t4[0], t4[1]), e3 = dt(t4), i3 = t4.length, r2 = true;
            return e3 && i3 > 2 && (r2 = gt(t4, n4)), e3 && r2;
          }, n3.prototype.getTargetValue = function(t4, n4) {
            var e3, i3 = t4.ait[0], r2 = i3.getFullYear(), o2, a2 = n4 - 1, u2, s2 = i3.getMonth() + this.Mit * a2;
            return new Date(r2 + parseInt(s2 / 12, 10), s2 % 12, 1);
          }, n3;
        })(B), G = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            var n4 = this.Mit = ht(t4[0], t4[1]), e3 = vt(t4), i3 = t4.length, r2 = true;
            return e3 && i3 > 2 && (r2 = gt(t4, n4)), e3 && r2;
          }, n3.prototype.getTargetValue = function(t4, n4) {
            var e3, i3 = t4.ait[0], r2 = i3.getFullYear(), o2, a2 = n4 - 1, u2, s2 = i3.getMonth() + this.Mit * a2, c2 = r2 + parseInt(s2 / 12, 10), f2 = s2 % 12;
            return new Date(c2, f2, bt(c2, f2));
          }, n3;
        })(B), U = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            var n4, e3, i3, r2, o2, a2 = false;
            return mt(t4) || (n4 = this.Mit = ht(t4[0], t4[1]), i3 = (e3 = pt(t4)) > 0, r2 = t4.length, o2 = true, this.Uit = e3, i3 && r2 > 2 && (o2 = gt(t4, n4)), a2 = i3 && o2), a2;
          }, n3.prototype.getTargetValue = function(t4, n4) {
            var e3, i3 = t4.ait[0], r2 = i3.getFullYear(), o2, a2 = n4 - 1, u2, s2 = i3.getMonth() + this.Mit * a2, c2 = r2 + parseInt(s2 / 12, 10), f2;
            return new Date(c2, s2 % 12, this.Uit);
          }, n3;
        })(B), H = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.pit = f, n4.sit = [], n4.cit = f, n4.wit = false, n4.yit = 0, n4._type = T, n4.Cit = false, n4.Sit = false, n4.Tit = new L(), n4;
          }
          return tt(n3, t3), n3.prototype.resetProp = function() {
            this.sit = [], this.yit = 0, this.cit = f, this.wit = false, this.Cit = false, this.Sit = false;
          }, n3.prototype.getInternal = function(t4) {
            var n4, e3, i3 = false, r2 = t4[0];
            for (e3 = 1; e3 < t4.length; e3++) if (n4 = t4[e3], 1 !== Math.abs(n4 - r2)) {
              i3 = true;
              break;
            }
            return i3;
          }, n3;
        })(F), V = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.Ait = new R(n4), e3;
          }
          return tt(n3, t3), n3.prototype.dispose = function() {
            var t4 = this;
            t4.Ait && (t4.Ait.L0(), t4.Ait = f);
          }, n3.prototype.match = function(t4) {
            return this.Ait.Pit(t4);
          }, n3.prototype.getTargetValue = function(t4, n4, e3, i3, r2) {
            var o2, a2 = t4.ait.length, u2 = this.Git(e3, i3), s2 = f, c2;
            return -1 !== u2 && (c2 = a2 * r2 + u2 + 1, s2 = this.Ait.Sl(c2)), s2;
          }, n3;
        })(H), z = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.pit = /^\d+$/, n4;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            var n4 = this, e3, i3, r2;
            return t4.every((function(t5) {
              return !!(e3 = t5.match(n4.pit)) && ((r2 = t5.length) > n4.yit && yt(t5) && (n4.yit = r2), i3 = parseInt(t5, 10), n4.sit.push(i3), true);
            }));
          }, n3.prototype.getTargetValue = function(t4, n4, e3, i3, r2) {
            var o2 = t4.ait, a2 = this.Tit, u2 = ct(this.sit), s2 = o2.length, c2 = 0 !== u2, l2 = c2 ? 0 : ft(n4, s2), h2 = this.Git(e3, i3), d2 = f, v2;
            return this.Cit = c2, this.Sit = this.getInternal(t4._indexes), -1 !== h2 && (a2.MV = u2, a2.git = this.sit[l2], a2._padding = lt(this.yit), v2 = s2 * r2 + h2 + 1, d2 = a2.Sl(v2)), d2;
          }, n3;
        })(H), Y = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.pit = /^(.*\D+)(\d+)$/, n4;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            return wt(this, t4, false);
          }, n3.prototype.getTargetValue = function(t4, n4, e3, i3, r2) {
            var o2 = t4.ait, a2 = this.Tit, u2 = ct(this.sit), s2 = o2.length, c2 = 0 !== u2, l2 = c2 ? 0 : ft(n4, s2), h2 = this.Git(e3, i3), d2 = f, v2;
            return this.Cit = c2, this.Sit = this.getInternal(t4._indexes), -1 !== h2 && (a2.vit = this.cit, a2.MV = u2, a2.git = this.sit[l2], a2._padding = lt(this.yit), v2 = s2 * r2 + h2 + 1, d2 = a2.Sl(v2)), d2;
          }, n3;
        })(H), Z = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.pit = /^(\d+)(\D+.*)$/, n4;
          }
          return tt(n3, t3), n3.prototype.match = function(t4) {
            return wt(this, t4, true);
          }, n3.prototype.getTargetValue = function(t4, n4, e3, i3, r2) {
            var o2 = t4.ait, a2 = this.Tit, u2 = ct(this.sit), s2 = o2.length, c2 = 0 !== u2, l2 = c2 ? 0 : ft(n4, s2), h2 = this.Git(e3, i3), d2 = f, v2;
            return this.Cit = c2, this.Sit = this.getInternal(t4._indexes), -1 !== h2 && (a2.mit = this.cit, a2.MV = u2, a2.git = this.sit[l2], a2._padding = lt(this.yit), v2 = s2 * r2 + h2 + 1, d2 = a2.Sl(v2)), d2;
          }, n3;
        })(H), W = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.pit = /^(.*\D+)(\d+)(\D+.*)$/, n4;
          }
          return tt(n3, t3), n3.prototype.resetProp = function() {
            t3.prototype.resetProp.call(this), this.Hit = f;
          }, n3.prototype.match = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2 = this;
            return t4.every((function(t5) {
              return !!(n4 = t5.match(u2.pit)) && (e3 = n4[2], (a2 = e3.length) > u2.yit && yt(e3) && (u2.yit = a2), i3 = parseInt(e3, 10), r2 = n4[1], v(u2.cit) && (u2.cit = r2), o2 = n4[3], v(u2.Hit) && (u2.Hit = o2), r2 !== u2.cit || o2 !== u2.Hit ? (u2.wit = true, u2.cit = f, u2.Hit = f, u2.sit = []) : u2.sit.push(i3), true);
            }));
          }, n3.prototype.getTargetValue = function(t4, n4, e3, i3, r2) {
            var o2 = this, a2 = t4.ait, u2 = o2.Tit, s2 = ct(o2.sit), c2 = a2.length, l2 = 0 !== s2, h2 = l2 ? 0 : ft(n4, c2), d2 = o2.Git(e3, i3), v2 = f, p2;
            return o2.Cit = l2, o2.Sit = o2.getInternal(t4._indexes), -1 !== d2 && (u2.vit = o2.cit, u2.mit = o2.Hit, u2.MV = s2, u2.git = o2.sit[h2], u2._padding = lt(o2.yit), p2 = c2 * r2 + d2 + 1, v2 = u2.Sl(p2)), v2;
          }, n3;
        })(H), Q = ["-", "_", ":", ".", ","], K = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return tt(n3, t3), n3.prototype.resetProp = function() {
            t3.prototype.resetProp.call(this), this.zit = f;
          }, n3.prototype.match = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2 = this;
            return t4.every((function(t5) {
              var c2, l2, h2, d2 = s2.zit;
              if (u2 = v(d2) ? Q.some((function(n5) {
                if (rt(t5, n5)) return s2.zit = n5, true;
              })) : rt(t5, d2)) {
                if (d2 = s2.zit, c2 = t5.lastIndexOf(d2), r2 = t5.substring(0, c2 + 1), v(s2.cit)) s2.cit = r2;
                else if (s2.cit !== r2) return false;
                if (l2 = t5.substr(c2 + 1), h2 = /^(\d+)(\D+.*)$/, n4 = l2.match(h2)) return e3 = n4[1], (a2 = e3.length) > s2.yit && yt(e3) && (s2.yit = a2), i3 = parseInt(e3, 10), o2 = n4[2], v(s2.Hit) && (s2.Hit = o2), o2 !== s2.Hit ? (s2.cit = f, s2.Hit = f, s2.sit = [], false) : (s2.sit.push(i3), true);
              }
              return false;
            }));
          }, n3;
        })(W), J = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return tt(n3, t3), n3.prototype.getTargetValue = function(t4, n4, e3) {
            return ut(true, t4.Bit(), e3, n4);
          }, n3;
        })(F), X = (function(t3) {
          function n3() {
            var n4 = null !== t3 && t3.apply(this, arguments) || this;
            return n4.Cit = true, n4;
          }
          return tt(n3, t3), n3.prototype.getTargetValue = function(t4, n4, e3, i3) {
            var r2 = t4.ait, o2, a2;
            return r2[ft(n4, r2.length)];
          }, n3;
        })(F), q = (function() {
          function t3(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this;
            u2.Iit = [new P(), new G(), new U()], u2.xit = new J(), u2.Nit = new X(), n3 = k.culture(), e3 = k.Fe(n3).isJCKCulture, i3 = new V(t4), r2 = new z(), o2 = new Y(), a2 = new Z(), u2.kit = e3 ? [i3, r2, new K(), o2, a2, new W()] : [i3, r2, o2, a2];
          }
          return t3.prototype.getRule = function(t4, n3) {
            var e3, i3, r2, o2 = [], a2 = this.Nit;
            for (t4 === S ? (o2 = this.Iit, a2 = this.xit) : t4 === T ? o2 = this.kit : t4 === C && (a2 = this.xit), e3 = 0; e3 < o2.length; e3++) if (r2 = void 0, (i3 = o2[e3]).resetProp(), i3.match(n3)) {
              if (r2 = i3.wit, v(r2) || false === r2) return i3;
              if (true === r2) return a2;
            }
            return a2;
          }, t3.prototype.L0 = function() {
            var t4 = this;
            t4.Iit && (Mt(t4.Iit), t4.Iit = f), t4.kit && (Mt(t4.kit), t4.kit = f), t4.xit && (t4.xit.dispose(), t4.xit = f), t4.Nit && (t4.Nit.dispose(), t4.Nit = f);
          }, t3;
        })(), n2.nnt = q, $ = (function() {
          function t3(t4) {
            this.Mf = t4, this.Dit = false, this._it = [];
          }
          return t3.prototype.qtt = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = t4 ? 1 : 2;
            v(i3) && v(r2) ? o2.$tt(n3, e3, a2) : o2.$tt(n3, e3, a2, i3, r2, f);
          }, t3.prototype.$tt = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2 = this, A2 = x2.Mf, k2 = A2.JS(t4), N2 = k2.row, j2 = k2.col, D2 = k2.rowCount, _2 = k2.colCount;
            if (A2.Ut.eE(N2, j2, D2, _2)) throw new Error(I().Exp_RangeContainsMergedCell);
            for (h2 = 0, v2 = (d2 = 1 === n3) ? _2 : D2, p2 = d2 ? N2 : j2, g2 = d2 ? N2 + D2 : j2 + _2, m2 = (l2 = arguments.length > 3) ? 1 : v2, w2 = (y2 = this.Mf.rt.Ktt).row === N2 && y2.rowCount === D2 && y2.col > j2 || y2.col === j2 && y2.colCount === _2 && y2.row > N2, a2 = p2; a2 < g2; a2++) if (M2 = w2 && l2 ? j2 + _2 - 1 : j2, C2 = w2 && l2 ? N2 + D2 - 1 : N2, (S2 = d2 ? x2.Vit(a2, M2, 1, m2, n3) : x2.Vit(C2, a2, m2, 1, n3)) && S2.jit()) for (c2 = S2._indexes[0], l2 ? (f2 = w2 ? S2.oit[b(S2.oit) - 1] : S2.oit[0], u2 = x2.Yit(w2, f2, v2, e3, i3, r2, o2), w2 && (h2 = v2 - b(u2), c2 = S2._indexes[b(S2._indexes) - 1])) : u2 = x2.Zit(S2, v2, e3), s2 = 0; s2 < b(u2); s2++) T2 = S2.Lit(u2[s2]), d2 ? x2.Wit(A2, a2, c2, a2, j2 + h2 + s2, T2, e3) : x2.Wit(A2, c2, a2, N2 + h2 + s2, a2, T2, e3);
          }, t3.prototype.Vit = function(t4, n3, e3, i3, r2) {
            for (var o2 = f, a2 = this.Mf, u2, s2 = 1 === r2, c2 = s2 ? n3 + i3 - 1 : t4 + e3 - 1, l2 = s2 ? n3 : t4; c2 >= l2; ) et(u2 = s2 ? a2.getValue(t4, c2) : a2.getValue(c2, n3)) && (o2 || (o2 = new E(l2)), o2.Eit(0, c2, u2)), c2--;
            return o2;
          }, t3.prototype.Yit = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2 = [], l2 = n3, h2 = r2 >= 0, d2 = v(o2);
            for (u2 = 0; u2 < e3; u2++) s2 = l2 >= o2, c2 = l2 <= o2, t4 && (d2 || h2 && s2 || !h2 && c2) ? (f2.unshift(l2), 1 === i3 ? l2 -= r2 : 2 === i3 ? l2 /= r2 : 3 !== i3 || v(a2) || (l2 = this.Qit(true, a2, n3, l2, r2, u2 + 1))) : !t4 && (d2 || h2 && c2 || !h2 && s2) && (f2.push(l2), 1 === i3 ? l2 += r2 : 2 === i3 ? l2 *= r2 : 3 !== i3 || v(a2) || (l2 = this.Qit(false, a2, n3, l2, r2, u2 + 1)));
            return f2;
          }, t3.prototype.Zit = function(t4, n3, e3) {
            var i3 = [], r2, o2 = 1 === e3;
            if (o2 || 2 === e3) {
              for (1 === t4.jit() && t4.ZP(t4._indexes[0] + 1, o2 ? t4.Lit(t4.oit[0] + 1) : t4.Oit()[0]), r2 = 0; r2 < n3; r2++) i3.push(ut(!!o2, t4.Bit(), t4.Rit(), r2 + 1));
              return i3;
            }
            return f;
          }, t3.prototype.Jtt = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2 = this, s2 = u2.Mf, c2 = s2.Ut, f2 = s2.JS(t4), l2 = f2.row, h2 = f2.col, d2 = f2.rowCount, v2 = f2.colCount, p2 = s2.JS(s2.rt.Ktt), g2 = p2.row, m2 = p2.col;
            if (c2.GT(g2, m2, p2.rowCount, p2.colCount) || c2.GT(l2, h2, d2, v2)) throw new Error(I().Exp_ChangeMergedCell);
            return a2 = u2.Kit(p2, d2, v2, n3, e3, !(l2 < g2 || h2 < m2), i3, r2, o2), u2.Jit && u2.Jit.IB && (u2.Jit.IB.reFilter(), delete u2.Jit), a2;
          }, t3.prototype.Kit = function(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2 = this, v2 = o2 ? 1 : -1, p2, g2, m2, b2, y2 = t4.row, w2 = t4.col, M2 = t4.rowCount, C2 = t4.colCount;
            if (1 === i3) {
              if (p2 = h(e3 / C2), g2 = e3 % C2, !r2) for (b2 = 1; b2 < p2; b2++) c2.Mf.Y1r = b2 * v2, m2 = d(y2, w2 + b2 * v2 * C2, M2, C2), c2.Fhe(t4, m2, i3, 4, r2, o2, l, l, true, a2, u2), c2.Xit(t4, m2, i3, 4, r2, o2, l, l, true, a2, u2), delete c2.Mf.Y1r;
              if (r2 && p2 > 1 && 0 === g2 && (p2 -= 1, g2 = C2), p2 > 0 && g2 > 0) return m2 = d(y2, o2 ? w2 + p2 * C2 : w2 - p2 * C2 + C2 - g2, M2, g2), c2.Fhe(t4, m2, i3, 4, r2, o2, f, o2 ? 0 : C2 - g2, l, a2, u2), c2.Xit(t4, m2, i3, 4, r2, o2, f, o2 ? 0 : C2 - g2, l, a2, u2);
            } else {
              if (p2 = h(n3 / M2), g2 = n3 % M2, c2.Dit || (m2 = d(y2 + v2 * M2, w2, n3 - M2, e3), c2.qit(t4, m2, v2, s2)), !r2) for (b2 = 1; b2 < p2; b2++) m2 = d(y2 + b2 * v2 * M2, w2, M2, C2), c2.Fhe(t4, m2, i3, 4, r2, o2, f, f, true, a2, u2), c2.Xit(t4, m2, i3, 4, r2, o2, f, f, true, a2, u2);
              if (r2 && p2 > 1 && 0 === g2 && (p2 -= 1, g2 = M2), p2 > 0 && g2 > 0) return m2 = d(o2 ? y2 + p2 * M2 : y2 - p2 * M2 + M2 - g2, w2, g2, C2), c2.Fhe(t4, m2, i3, 4, r2, o2, o2 ? 0 : M2 - g2, f, true, a2, u2), c2.Xit(t4, m2, i3, 4, r2, o2, o2 ? 0 : M2 - g2, f, true, a2, u2);
            }
          }, t3.prototype.Xit = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, l2) {
            var h2, d2, p2, g2, m2, b2, y2, w2, M2, x2, A2, I2, k2, N2, j2, D2, _2, O2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2 = this, X2 = J2.Mf, q2 = X2.Ut, $2 = 1 === e3, tt2 = $2 ? t4.row : t4.col, nt2 = $2 ? t4.col : t4.row, rt2 = $2 ? n3.row : n3.col, ot2 = $2 ? n3.col : n3.row, at2 = $2 ? t4.rowCount : t4.colCount, ut2 = $2 ? t4.colCount : t4.rowCount, st2 = $2 ? n3.colCount : n3.rowCount;
            for (p2 = 0; p2 < at2; p2++) {
              for (m2 = f, b2 = f, y2 = 0, x2 = w2 = tt2 + p2, A2 = M2 = rt2 + p2, I2 = ($2 ? u2 : a2) || 0, k2 = $2 ? 0 : I2, N2 = $2 ? f : s2, j2 = f; y2 < ut2; ) if (O2 = void 0, R2 = D2 = nt2 + y2, L2 = _2 = ot2 + y2 - I2, $2 || (w2 = D2, D2 = x2, M2 = _2, _2 = A2), d2 = q2.findSpan(w2, D2), O2 = X2.getValue(w2, D2), (F2 = J2.Dit) && v(j2) && (j2 = false === o2 ? X2.getValue(nt2 + ut2 - 1, D2) : X2.getValue(w2, D2)), F2 || 4 !== i3 || !et(O2) && !it(O2) || X2.hasFormula(w2, D2) || (m2 || (m2 = new E()), h2 = et(O2) ? O2 instanceof Date ? S : C : T, b2 || (b2 = h2), b2 !== h2)) if (!F2 && O2 && m2 && m2.jit()) {
                if (g2 = J2.$it($2, t4, n3, x2, A2, m2, r2, o2, k2, N2, c2, l2), r2 && g2) return g2;
                m2 = f, b2 = f;
              } else {
                if (F2 || !d2 || d2 && ($2 ? d2.row : d2.col) === x2) if (B2 = L2 === ot2 + st2 - 1, P2 = F2 ? j2 : O2, r2) {
                  if (F2) return P2;
                  if (d2 && B2 || !d2 && (B2 && o2 || !o2 && L2 === ot2)) return O2;
                } else L2 < ot2 + st2 && L2 >= ot2 && (F2 || $2 || !$2 && !(s2 && X2.XT && X2.XT(L2))) && (F2 && -1 !== J2._it.indexOf(M2) || J2.Wit(X2, w2, D2, M2, _2, P2, i3, c2, l2));
                d2 ? y2 += $2 ? d2.colCount : d2.rowCount : y2++;
              }
              else m2.ZP(R2, O2), d2 ? y2 += $2 ? d2.colCount : d2.rowCount : y2++;
              if (J2.Dit) for (G2 = t4.row, U2 = t4.col, H2 = t4.rowCount, V2 = t4.colCount, z2 = void 0, Y2 = void 0, Z2 = false === o2 ? -1 : 1, W2 = 1; W2 < H2; W2++) for (z2 = G2 + Z2 * W2, Q2 = 0; Q2 < V2; ) Y2 = U2 + Q2, K2 = false === o2 ? X2.getValue(nt2 + ut2 - 1, Y2) : X2.getValue(G2, Y2), -1 === J2._it.indexOf(z2) && J2.Wit(X2, G2, U2, z2, Y2, K2, i3, c2, l2), Q2++;
              if (m2 && m2.jit() && (g2 = J2.$it($2, t4, n3, x2, A2, m2, r2, o2, k2, s2, c2, l2), r2 && !v(g2))) return g2;
            }
            return f;
          }, t3.prototype.Fhe = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, l2) {
            var h2, d2, p2, g2, m2, b2, y2, w2, M2, x2, A2, I2, k2, N2, j2, D2, _2, O2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, rt2, ot2, at2, ut2, st2, ct2;
            if (!r2) {
              for (g2 = (p2 = (d2 = (h2 = this).Mf).Ut).Ehe(), x2 = (m2 = 1 === e3) ? t4.row : t4.col, A2 = m2 ? t4.col : t4.row, I2 = m2 ? n3.row : n3.col, k2 = m2 ? n3.col : n3.row, N2 = m2 ? t4.rowCount : t4.colCount, j2 = m2 ? t4.colCount : t4.rowCount, D2 = m2 ? n3.colCount : n3.rowCount, M2 = 0; M2 < N2; M2++) {
                for (_2 = f, O2 = f, R2 = 0, B2 = L2 = x2 + M2, P2 = F2 = I2 + M2, G2 = (m2 ? u2 : a2) || 0, U2 = m2 ? 0 : G2, H2 = m2 ? f : s2, V2 = f; R2 < j2; ) Z2 = f, W2 = z2 = A2 + R2, Q2 = Y2 = k2 + R2 - G2, m2 || (L2 = z2, z2 = B2, F2 = Y2, Y2 = P2), w2 = p2.findSpan(L2, z2), K2 = d2.getValueIgnoreDefault(L2, z2), v(K2) ? R2++ : ((b2 = g2.getFormula(L2, z2)) && "" !== b2 || (Z2 = g2.getValue(L2, z2)), (J2 = h2.Dit) && v(V2) && (V2 = false === o2 ? g2.getValue(A2 + j2 - 1, z2) : g2.getValue(L2, z2)), J2 || 4 !== i3 || !et(Z2) && !it(Z2) || (_2 || (_2 = new E()), y2 = et(Z2) ? Z2 instanceof Date ? S : C : T, O2 || (O2 = y2), O2 !== y2) ? !J2 && Z2 && _2 && _2.jit() ? (h2.$it(m2, t4, n3, B2, P2, _2, r2, o2, U2, H2, c2, l2, true), _2 = f, O2 = f) : ((J2 || !w2 || w2 && (m2 ? w2.row : w2.col) === B2) && (X2 = J2 ? V2 : Z2, Q2 < k2 + D2 && Q2 >= k2 && (J2 || m2 || !m2 && !(s2 && d2.XT && d2.XT(Q2))) && (J2 && -1 !== h2._it.indexOf(F2) || h2.Wit(d2, L2, z2, F2, Y2, X2, i3, c2, l2, true))), w2 ? R2 += m2 ? w2.colCount : w2.rowCount : R2++) : (_2.ZP(W2, Z2), w2 ? R2 += m2 ? w2.colCount : w2.rowCount : R2++));
                if (h2.Dit) for (q2 = t4.row, $2 = t4.col, tt2 = t4.rowCount, nt2 = t4.colCount, rt2 = void 0, ot2 = void 0, at2 = false === o2 ? -1 : 1, ut2 = 1; ut2 < tt2; ut2++) for (rt2 = q2 + at2 * ut2, st2 = 0; st2 < nt2; ) ct2 = false === o2 ? g2.getValue(A2 + j2 - 1, ot2) : g2.getValue(q2, ot2), ot2 = $2 + st2, -1 === h2._it.indexOf(rt2) && h2.Wit(d2, q2, $2, rt2, ot2, ct2, i3, c2, l2, true), st2++;
                _2 && _2.jit() && h2.$it(m2, t4, n3, B2, P2, _2, r2, o2, U2, H2, c2, l2, true);
              }
              return f;
            }
          }, t3.prototype.qit = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = y2.Mf, M2 = w2.tables, C2 = t4.union(n3), S2 = C2.row, T2 = C2.rowCount, x2 = t4.row, A2 = t4.col, I2 = t4.rowCount, k2 = t4.colCount;
            if (M2) for (o2 = 0, a2 = r2 = M2.AB(x2, A2, I2, k2); o2 < a2.length; o2++) {
              if (s2 = (u2 = a2[o2]).Ky, c2 = u2.iw, f2 = T2, i3) {
                for (l2 = 0, h2 = i3; l2 < h2.length; l2++) if ((d2 = h2[l2]).row === s2 && d2.col === c2) {
                  f2 = d2.rowCount, y2.Jit = u2;
                  break;
                }
              }
              if (v2 = u2.IB, p2 = y2._it, g2 = void 0, v2 && v2.isFiltered && v2.isFiltered()) {
                for (m2 = 0; m2 < f2; m2++) g2 = S2 + e3 * m2, v2.isRowFilteredOut(g2) && y2._it.push(g2);
                if (p2.length > 0) {
                  y2.Dit = true;
                  break;
                }
              }
            }
            if (b2 = w2.IB, true !== y2.Dit && b2 && b2.isFiltered && b2.isFiltered()) {
              for (p2 = y2._it, g2 = void 0, m2 = 0; m2 < T2; m2++) g2 = S2 + e3 * m2, b2.isRowFilteredOut(g2) && y2._it.push(g2);
              p2.length > 0 && (y2.Dit = true);
            }
          }, t3.prototype.Wit = function(t4, n3, e3, i3, o2, u2, c2, h2, d2, p2) {
            var g2, m2, b2, y2 = t4.Ut, w2 = t4.isActualProtected() && t4.getCell(n3, e3).hidden();
            s && !w2 && (p2 ? ((g2 = y2.Ehe().getExpression(n3, e3)) && t4.hasFormula(n3, e3, 3, true) || !v(t4.getValueIgnoreDefault(n3, e3))) && (0, r.copyDefaultFormula)(t4, t4, i3, o2, g2) : (t4.hasFormula(n3, e3, 3) || t4.hasFormula(i3, o2, 3)) && (t4.setFormula(i3, o2, f), 0 !== c2 && 4 !== c2 || (t4.getFormula(n3, e3) || y2.getDefaultValue(n3, e3, f, r.DefaultChangeValueType.Expression)) && a.CalcOperatorAdjustor.copyFormula(t4, n3, e3, t4, i3, o2, 1, 1, l, true))), p2 || v(t4.getValueIgnoreDefault(n3, e3)) && !v(y2.getDefaultValue(n3, e3, f, r.DefaultChangeValueType.Value)) ? y2.getDefaultValue(n3, e3, f, r.DefaultChangeValueType.Expression) || y2.setDefaultValue(i3, o2, u2, l, r.DefaultChangeValueType.Value) : t4.setValue(i3, o2, u2), p2 || (m2 = d2 ? 0 : 64, h2 && (m2 |= 128, m2 |= 4096), m2 |= 1024, m2 |= 256, t4.vT(n3, e3, i3, o2, 1, 1, m2, l, true), d2 || (t4.removeSpan(i3, o2, 3), (b2 = y2.findSpan(n3, e3)) && n3 === b2.row && e3 === b2.col && t4.EL(i3, o2, b2.rowCount, b2.colCount, 3)));
          }, t3.prototype.$it = function(t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, l2, h2, d2) {
            var v2, p2, g2, m2, b2, y2, w2, M2, C2, x2, A2, I2, k2, N2, j2, D2, _2 = this, O2 = _2.Mf, E2 = t4 ? e3.col : e3.row, R2 = t4 ? n3.col : n3.row, L2 = t4 ? e3.colCount : e3.rowCount, F2 = t4 ? n3.colCount : n3.rowCount;
            if (s2 = s2 || 0, b2 = o2.jit(), y2 = (E2 - R2 - s2) / F2, w2 = _2.Cit(o2._indexes, o2.oit), M2 = o2._type, w2) {
              for (g2 = [], p2 = 0; p2 < b2; p2++) g2[p2] = p2 + 1;
              v2 = b2;
            } else m2 = o2._indexes[0], v2 = o2._indexes[b2 - 1] - m2 + 1, 1 === b2 && M2 !== T && o2.ZP(o2._indexes[0] + 1, o2.Lit(o2.oit[0] + 1)), g2 = o2.Rit();
            for (p2 = 0; p2 < v2; p2++) if (C2 = o2.ait, x2 = void 0, A2 = void 0, I2 = void 0, M2 !== S && M2 !== T || (x2 = O2.tnt && O2.tnt.getRule(M2, C2)), x2 ? (A2 = x2.getTargetValue(o2, v2 * y2 + p2 + 1, g2, p2, y2), w2 = x2.Cit ? x2.Cit : w2, k2 = !!x2.Sit && x2.Sit, I2 = w2 && !k2) : (A2 = ut(true, o2.Bit(), g2, v2 * y2 + p2 + 1), I2 = w2), N2 = E2 + L2 - 1, D2 = (j2 = I2 ? o2._indexes[p2] : m2 + p2) + y2 * F2, a2) {
              if (w2 && (u2 && D2 === N2 || !u2 && D2 === E2) || !w2 && D2 + s2 === N2) return o2.Lit(A2);
            } else D2 < E2 + L2 && D2 >= E2 && (t4 ? c2 && O2.XT && O2.XT(i3) || _2.Wit(O2, i3, j2, r2, D2, o2.Lit(A2), 4, l2, h2, d2) : c2 && O2.XT && O2.XT(D2) || _2.Wit(O2, j2, i3, D2, r2, o2.Lit(A2), 4, l2, h2, d2));
            return f;
          }, t3.prototype.Cit = function(t4, n3) {
            var e3, i3, r2, o2 = b(n3);
            if (o2 <= 1 || b(t4) !== o2) return false;
            for (e3 = t4[1] - t4[0], i3 = n3[1] - n3[0], r2 = 2; r2 < o2; r2++) if (t4[r2] - t4[r2 - 1] !== e3 || n3[r2] - n3[r2 - 1] !== i3) return false;
            return true;
          }, t3.prototype.Xtt = function(t4, n3) {
            var e3 = this, i3 = this.Mf, r2 = i3.Ut.getSpans(), o2 = i3.JS(t4), a2 = o2.row, u2 = o2.col, s2 = o2.rowCount, c2 = o2.colCount, f2;
            f2 = 0 === n3 ? d(a2, u2 + c2 - 1, s2, 1) : 1 === n3 ? d(a2, u2, s2, 1) : d(2 === n3 ? a2 + s2 - 1 : a2, u2, 1, c2), (f2 = i3.nR(r2, f2)) && e3.trt(f2, a2, u2, s2, c2, n3);
          }, t3.prototype.trt = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this, u2 = t4.row, s2 = t4.col, c2 = t4.rowCount, f2 = t4.colCount, v2, p2, g2, m2, b2, y2, w2, M2 = a2.Mf.Ut, C2;
            if (0 === o2 ? (C2 = M2.eE(n3, e3, i3, r2 - f2), y2 = 0, w2 = -1 * f2, g2 = r2, m2 = f2, b2 = 1) : 1 === o2 ? (C2 = M2.eE(n3, e3 + f2, i3, r2 - f2), y2 = 0, w2 = f2, g2 = r2, m2 = f2, b2 = 1) : 2 === o2 ? (C2 = M2.eE(n3, e3, i3 - c2, r2), y2 = -1 * c2, w2 = 0, g2 = i3, m2 = c2, b2 = 0) : (C2 = M2.eE(n3 + c2, e3, i3 - c2, r2), y2 = c2, w2 = 0, g2 = i3, m2 = c2, b2 = 0), C2) throw new Error(I().Exp_TargetContainsMergedCells);
            if (g2 % m2 !== 0) throw new Error(I().Exp_MergedCellsIdentical);
            for (v2 = h(g2 / m2), p2 = 1; p2 < v2; p2++) a2.Xit(t4, d(u2 + p2 * y2, s2 + p2 * w2, c2, f2), b2, 0, l, l, l, l, true);
          }, t3.prototype.Qit = function(t4, n3, e3, i3, r2, o2) {
            var a2 = t4 ? -1 : 1, u2 = h(o2 * r2), s2 = Math.abs(r2), c2 = M(n3 > 1 ? e3 : i3);
            if (0 === n3) c2.setDate(c2.getDate() + a2 * r2);
            else if (1 === n3) for (; s2 > 0; ) c2.setDate(c2.getDate() + a2 * (r2 > 0 ? 1 : -1)), 6 !== c2.getDay() && 0 !== c2.getDay() && s2--;
            else 2 === n3 ? c2.setMonth(c2.getMonth() + a2 * u2) : c2.setFullYear(c2.getFullYear() + a2 * u2);
            return w(c2);
          }, t3;
        })(), n2.Wtt = $;
      }, "./dist/plugins/fill/fill.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/fill/fill.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/fill/fill.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_ChangePartOfArray = n2.Exp_RangeIsNull = n2.Exp_CellReadOnly = n2.Exp_RowReadOnly = n2.Exp_ColumnReadOnly = n2.Exp_ChangeMergedCell = n2.Exp_FillCellsReadOnly = n2.Exp_FillRangeContainsMergedCell = n2.Exp_MergedCellsIdentical = n2.Exp_TargetContainsMergedCells = n2.Exp_RangeContainsMergedCell = n2.Exp_NumberOnly = n2.FillWithoutFormatting = n2.FillFormattingOnly = n2.FillSeries = n2.CopyCells = void 0, n2.CopyCells = "Copy Cells", n2.FillSeries = "Fill Series", n2.FillFormattingOnly = "Fill Formatting Only", n2.FillWithoutFormatting = "Fill Without Formatting", n2.Exp_NumberOnly = "Only works for Numbers", n2.Exp_RangeContainsMergedCell = "Range should not have merged cells.", n2.Exp_TargetContainsMergedCells = "Target range should not have merged cells.", n2.Exp_MergedCellsIdentical = "This operation requires the merged cells to be identically sized.", n2.Exp_FillRangeContainsMergedCell = "Cannot fill range that contains a merged cell.", n2.Exp_FillCellsReadOnly = "The cells you are trying to fill are protected and therefore read-only.", n2.Exp_ChangeMergedCell = "Cannot change part of merged cell.", n2.Exp_ColumnReadOnly = "The column you are trying to change is protected and therefore read-only.", n2.Exp_RowReadOnly = "The row you are trying to change is protected and therefore read-only.", n2.Exp_CellReadOnly = "The cell you are trying to change is protected and therefore read-only.", n2.Exp_RangeIsNull = "range is null", n2.Exp_ChangePartOfArray = "Cannot change part of an array.";
      }, "./dist/plugins/fill/utils.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        function c(t3) {
          return t3.rowViewportIndex;
        }
        function f(t3) {
          return t3.colViewportIndex;
        }
        function l(t3) {
          return t3.frozenRowCount();
        }
        function h(t3) {
          return t3.frozenColumnCount();
        }
        function d(t3) {
          return t3.hitTestType;
        }
        function v(t3, n3) {
          return t3.getRowCount(n3);
        }
        function p(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function g(t3) {
          return t3.colCount;
        }
        function m(t3) {
          return t3.rowCount;
        }
        function b(t3) {
          return t3.height;
        }
        function y(t3) {
          return t3.width;
        }
        function w(t3) {
          var n3 = 7, e3 = t3.parent;
          return e3 && (n3 = e3.SC > 2007 ? 2 : 7), n3;
        }
        function M(t3, n3, e3, r2, o2, u2, c2) {
          var f2, l2, h2;
          t3.save(), u2 = u2 || s, c2 = c2 || 2, n3 === r2 ? (t3.rect(n3 - 2, e3, 7, a(o2 - e3)), t3.clip(), t3.beginPath(), e3 < o2 ? (e3 -= 3, o2 += 3) : (e3 += 3, o2 -= 3), f2 = (0, i2.Zx)(n3 - 1, e3 - 1, r2 - 1, o2 + 1, u2, c2), l2 = (0, i2.Zx)(n3, e3, r2, o2, u2, c2), h2 = (0, i2.Zx)(n3 + 1, e3 - 1, r2 + 1, o2 + 1, u2, c2)) : e3 === o2 && (t3.rect(n3, e3 - 2, a(r2 - n3), 7), t3.clip(), t3.beginPath(), n3 < r2 ? (n3 -= 3, r2 += 3) : (n3 += 3, r2 -= 3), f2 = (0, i2.Zx)(n3 - 1, e3 - 1, r2 + 1, o2 - 1, u2, c2), l2 = (0, i2.Zx)(n3, e3, r2, o2, u2, c2), h2 = (0, i2.Zx)(n3 - 1, e3 + 1, r2 + 1, o2 + 1, u2, c2)), f2 && f2.qx(t3), l2 && l2.qx(t3), h2 && h2.qx(t3), t3.strokeStyle = u2, t3.stroke(), t3.beginPath(), t3.restore();
        }
        function C(t3, n3, e3, i3, r2) {
          var o2, a2, u2;
          for (o2 = 0; o2 < e3.rowCount; o2++) {
            for (a2 = 0; a2 < e3.colCount; a2++) {
              if (!(u2 = t3.getSpan(e3.row + o2, e3.col + a2)) || u2.rowCount !== n3.rowCount || u2.colCount !== n3.colCount) return false;
              i3 && (a2 += n3.colCount);
            }
            r2 && (o2 += n3.rowCount);
          }
          return true;
        }
        function S(t3, n3, e3) {
          var i3, r2 = n3.row, o2 = n3.rowCount, a2 = n3.col, u2 = n3.colCount, s2 = e3.row, c2 = e3.rowCount, f2 = e3.col, l2 = e3.colCount, h2 = r2 === s2 && o2 === c2, d2 = a2 === f2 && u2 === l2;
          return !(!h2 && !d2) && (!(!(i3 = t3.getSpan(r2, a2)) || !C(t3, i3, n3, h2, d2)) && (!t3.Ut.GT(s2, f2, c2, l2) && C(t3, i3, e3, h2, d2)));
        }
        function T(t3) {
          return t3.x + t3.width;
        }
        function x(t3) {
          return t3.y + t3.height;
        }
        function A(t3, n3) {
          var e3, i3, r2, o2, a2 = t3.rt.eD(), u2 = t3.Yy(a2);
          return u2 && (e3 = u2.findNearX(n3, t3.options.rightToLeft)) ? (i3 = t3.Fi(), r2 = e3.col, 1 === a2 && n3 < i3.Py && r2 > (o2 = t3.Sw()) && t3.O5(r2 - 1) || r2) : -1;
        }
        function I(t3, n3) {
          var e3, i3, r2, o2, a2 = t3.rt.nD(), u2 = t3._y(a2);
          return u2 && (e3 = u2.findNearY(n3, t3.options.rightToLeft)) ? (i3 = t3.Fi(), r2 = e3.row, n3 < i3.Cy && r2 > (o2 = t3.pw()) && t3.j5(r2 - 1) || r2) : -1;
        }
        function k(t3) {
          t3.dragHeaderToMoveInfo && (t3.dragHeaderToMoveInfo.dragColumn ? t3.rowViewportIndex < 0 && (t3.rowViewportIndex = 0) : t3.colViewportIndex < 0 && (t3.colViewportIndex = 0), t3.hitTestType = 3);
        }
        function N(t3, n3) {
          if (!t3 && !n3) return r;
          if (!t3 && n3) return n3;
          if (t3 && !n3) return t3;
          var e3 = t3.x, a2 = t3.y, s2 = T(t3), c2 = x(t3);
          return e3 = o(e3, n3.x), a2 = o(a2, n3.y), s2 = u(s2, T(n3)), c2 = u(c2, x(n3)), new i2.Rect(e3, a2, s2 - e3, c2 - a2);
        }
        function j(t3) {
          return t3.frozenColumnCount() >= t3.getColumnCount() ? 0 : t3.frozenTrailingColumnCount() > 0 ? 2 : 1;
        }
        function D(t3) {
          return t3.frozenRowCount() >= t3.getRowCount() ? 0 : t3.frozenTrailingRowCount() > 0 ? 2 : 1;
        }
        function _(t3) {
          var n3 = t3.Fi(), e3 = t3.options.rightToLeft, i3 = e3 ? n3.c9(0, 2) : n3.c9(0, 0), r2 = i3.x, o2 = i3.y, a2 = j(t3), u2 = D(t3), s2 = t3.Dn.uO(u2, a2), c2 = T(s2), f2 = x(s2);
          return { minPoint: { x: r2, y: o2 }, maxPoint: { x: c2, y: f2 } };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.getSheetVPortBoundary = n2.mergeRect = n2.fixHitTestInfo = n2.getHitRowIndex = n2.getHitColumnIndex = n2.getEndY = n2.getEndX = n2.canDragFillSpan = n2.hasSameSpan = n2.paintDragLine = n2.getLineStyle = n2.getWidth = n2.getHeight = n2.getRowCount = n2.getColCount = n2.getSheetColumnCount = n2.getSheetRowCount = n2.getHitTestType = n2.getFrozenColumnCount = n2.getFrozenRowCount = n2.getColViewportIndex = n2.getRowViewportIndex = void 0, i2 = e2("Core"), r = null, o = Math.min, a = Math.abs, u = Math.max, s = "black", n2.getRowViewportIndex = c, n2.getColViewportIndex = f, n2.getFrozenRowCount = l, n2.getFrozenColumnCount = h, n2.getHitTestType = d, n2.getSheetRowCount = v, n2.getSheetColumnCount = p, n2.getColCount = g, n2.getRowCount = m, n2.getHeight = b, n2.getWidth = y, n2.getLineStyle = w, n2.paintDragLine = M, n2.hasSameSpan = C, n2.canDragFillSpan = S, n2.getEndX = T, n2.getEndY = x, n2.getHitColumnIndex = A, n2.getHitRowIndex = I, n2.fixHitTestInfo = k, n2.mergeRect = N, n2.getSheetVPortBoundary = _;
      }, "./dist/plugins/filter/filter-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k = this && this.qKr || (N = function(t3, n3) {
          return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, N(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          N(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), N;
        function j(t3, n3) {
          var e3, i3;
          return t3 ? (i3 = n3.tables.findByName(t3)) && (e3 = i3.rowFilter()) : e3 = n3.rowFilter(), e3;
        }
        function D(t3, n3, e3, i3, r2) {
          return { sheet: t3, sheetName: t3.name(), table: n3, tableCol: e3, filterValues: i3, conditionInfo: 0 === m(i3) && r2 ? r2.toJSON() : b };
        }
        function _(t3, n3, e3, i3) {
          return { sheet: t3, sheetName: t3.name(), col: n3, filterValues: e3, conditionInfo: 0 === m(e3) && i3 ? i3.toJSON() : b };
        }
        function O(t3, n3, e3, i3, o2) {
          var a2 = e3 ? t3 - e3.range().col : -1;
          e3 ? n3.ki(r.Events.TableFiltering, D(n3, e3, a2, i3, o2)) : n3.ki(r.Events.RangeFiltering, _(n3, t3, i3, o2));
        }
        function E(t3, n3, e3) {
          var i3, o2;
          e3 ? (o2 = t3 - e3.range().col, i3 = { sheet: n3, sheetName: n3.name(), table: e3, tableCol: o2 }, n3.ki(r.Events.TableFilterClearing, i3)) : (i3 = { sheet: n3, sheetName: n3.name(), col: t3 }, n3.ki(r.Events.RangeFilterClearing, i3));
        }
        function R(t3, n3, e3) {
          var i3, o2;
          e3 ? (o2 = t3 - e3.range().col, i3 = { sheet: n3, sheetName: n3.name(), table: e3, tableCol: o2 }, n3.ki(r.Events.TableFilterCleared, i3)) : (i3 = { sheet: n3, sheetName: n3.name(), col: t3 }, n3.ki(r.Events.RangeFilterCleared, i3));
        }
        function L(t3, n3, e3, i3, o2, a2) {
          var u2 = i3 ? n3 - i3.range().col : -1;
          t3.filter(n3), i3 ? e3.ki(r.Events.TableFiltered, D(e3, i3, u2, o2, a2)) : e3.ki(r.Events.RangeFiltered, _(e3, n3, o2, a2));
        }
        function F(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2, f2;
          return t3.suspendPaint(), i3 = n3[e3 = r.Commands.TI(t3.name())], t3.Mtt(i3), t3.resumePaint(), o2 = n3.cmdOption, i3 && o2 && !t3.NMi && (a2 = o2.colIndex, u2 = o2.tableName, s2 = i3.originalFilter, c2 = void 0, f2 = void 0, u2 && (f2 = (c2 = t3.tables.findByName(u2)) ? a2 - c2.range().col : -1), c2 ? t3.ki(r.Events.TableFiltered, D(t3, c2, f2, s2, y)) : t3.ki(r.Events.RangeFiltered, _(t3, a2, s2, y))), true;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("./dist/plugins/filter/filter-ns.js"), r = e2("Core"), o = e2("Common"), a = e2("./dist/plugins/filter/filter.js"), u = e2("ConditionalFormatting"), s = o.Common.lt.ht, c = r.Commands.ActionBase, f = "sortFilter", l = "filterTextSelectAction", h = "filterByCondition", d = "clearFilter", v = "contextmenuFilterForSheet", p = "contextmenuFilterForTable", g = r.Commands.zA, m = o.Common.Uf.tR, b = void 0, y = null, w = new o.Common.ResourceManager(i2.SR, "Filter"), M = w.getResource.bind(w), C = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this, r2 = i3;
            return r2.nrt = r2.tT.cmdOption, r2.OBe = e3.cmdOption.eventArgs, r2.nrt.rowFilter = j(r2.nrt.tableName, r2.Mf), i3;
          }
          return k(n3, t3), n3.prototype.EBe = function() {
            var t4, n4, e3 = this;
            return null !== (n4 = null === (t4 = e3.OBe) || void 0 === t4 ? void 0 : t4.compareFunction) && void 0 !== n4 ? n4 : e3.nrt.compareFunction;
          }, n3.prototype.RBe = function() {
            var t4, n4, e3 = this;
            return null !== (n4 = null === (t4 = e3.OBe) || void 0 === t4 ? void 0 : t4.groupSort) && void 0 !== n4 ? n4 : e3.nrt.groupSort;
          }, n3.prototype.BBe = function() {
            var t4, n4, e3 = this;
            return null !== (n4 = null === (t4 = e3.OBe) || void 0 === t4 ? void 0 : t4.ignoreHidden) && void 0 !== n4 ? n4 : e3.nrt.ignoreHidden;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, c2, f2, l2 = this;
            if (this.OBe && l2.Mf.ki(r.Events.RangeSorting, this.OBe), !this.OBe || false === (null === (t4 = this.OBe) || void 0 === t4 ? void 0 : t4.cancel)) {
              n4 = l2.nrt.rowFilter, e3 = l2.nrt.colIndex, i3 = l2.EBe(), o2 = l2.nrt.isAsc, a2 = !s(l2.nrt.tableName), u2 = l2.nrt.color, c2 = l2.nrt.isBackColor, f2 = { groupSort: l2.RBe(), ignoreHidden: l2.BBe() }, l2.Mf.suspendPaint(), r.Commands.startTransaction(l2.Mf.getParent(), l2.tT);
              try {
                u2 !== b ? n4.sortColumnByColor(e3, o2, u2, c2, f2, a2) : n4.ert(e3, o2, i3, f2, a2);
              } finally {
                this.OBe && l2.Mf.ki(r.Events.RangeSorted, this.OBe), r.Commands.endTransaction(l2.Mf.getParent(), l2.tT), l2.Mf.resumePaint();
              }
            }
          }, n3.prototype.undo = function() {
            var t4, n4 = this.Mf;
            return n4.suspendPaint(), this.OBe && n4.ki(r.Events.RangeSorting, this.OBe), t4 = r.Commands.TI(n4.name()), n4.Mtt(this.tT[t4]), this.OBe && n4.ki(r.Events.RangeSorted, this.OBe), n4.resumePaint(), true;
          }, n3;
        })(c), r.Commands[f] = { canUndo: true, metaData: { viewModePermissions: 16 }, execute: function(t3, n3, e3) {
          return g(t3, C, n3, e3);
        } }, S = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this, r2 = i3;
            return r2.nrt = r2.tT.cmdOption, i3;
          }
          return k(n3, t3), n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.nrt.colIndex, i3 = n4.tT.cmdOption.tableName, o2 = j(i3, n4.Mf);
            o2 && (i3 && (t4 = n4.Mf.tables.findByName(i3)), n4.Mf.suspendPaint(), n4.Mf.suspendCalcService(), r.Commands.startTransaction(n4.Mf.getParent(), n4.tT), E(e3, n4.Mf, t4), o2.removeFilterItems(e3), R(e3, n4.Mf, t4), r.Commands.endTransaction(n4.Mf.getParent(), n4.tT), n4.Mf.resumeCalcService(false), n4.Mf.resumePaint());
          }, n3.prototype.undo = function() {
            return F(this.Mf, this.tT);
          }, n3;
        })(c), r.Commands[d] = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t3, n3, e3) {
          return g(t3, S, n3, e3);
        } }, T = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return k(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, s2, c2, f2, l2, h2 = this, d2 = h2.tT.cmdOption.colIndex, v2 = h2.tT.cmdOption.checkedValues, p2 = h2.tT.cmdOption.allValuesLength, g2 = m(v2), w2 = M().Blanks, C2 = h2.tT.cmdOption.tableName, S2 = h2.Mf, T2 = j(C2, S2);
            if (T2) {
              if (C2 && (t4 = S2.tables.findByName(C2)), S2.suspendPaint(), S2.suspendCalcService(), r.Commands.startTransaction(h2.Mf.getParent(), h2.tT), O(d2, S2, t4, v2, y), T2.removeFilterItems(d2), g2 !== p2) if (T2.irt || h2.tT.cmdOption.irt) h2.tT.cmdOption.irt = true, T2.setFilterItemMap(d2, v2);
              else {
                for (n4 = [], e3 = T2.sKr(d2), i3 = 0; i3 < g2; i3++) a2 = void 0, s2 = (o2 = v2[i3]).text, c2 = o2.value, f2 = o2.type, l2 = o2.Ky, s2 === w2 && (s2 = ""), e3 && l2 !== b ? (a2 = new u.Condition(4, { formula: "=ROW() = " + l2, customValueType: 4 }), n4.push(a2)) : ((a2 = new u.Condition(2))._ps.expected = s2, a2._ps.compareType = 0, a2._ps.useWildCards = false, ("date" === f2 || "blank" === f2 && T2.ort) && (a2.art = true, a2.urt = c2), n4.push(a2));
                T2.addFilterItem(d2, n4);
              }
              L(T2, d2, S2, t4, v2, y), r.Commands.endTransaction(h2.Mf.getParent(), h2.tT), S2.resumeCalcService(false), S2.resumePaint();
            }
          }, n3.prototype.undo = function() {
            return F(this.Mf, this.tT);
          }, n3;
        })(c), r.Commands[l] = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t3, n3, e3) {
          return g(t3, T, n3, e3);
        } }, x = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return k(n3, t3), n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.tT.cmdOption.colIndex, i3 = n4.tT.cmdOption.condition, o2 = n4.tT.cmdOption.tableName, a2 = n4.Mf, u2 = j(o2, n4.Mf);
            if (s(i3)) return a2.jT(7, M().invalidCondition), false;
            u2 && (o2 && (t4 = n4.Mf.tables.findByName(o2)), n4.Mf.suspendPaint(), r.Commands.startTransaction(n4.Mf.getParent(), n4.tT), O(e3, n4.Mf, t4, [], i3), u2.removeFilterItems(e3), u2.addFilterItem(e3, i3), L(u2, e3, n4.Mf, t4, [], i3), r.Commands.endTransaction(n4.Mf.getParent(), n4.tT), n4.Mf.resumePaint());
          }, n3.prototype.undo = function() {
            return F(this.Mf, this.tT);
          }, n3;
        })(c), r.Commands[h] = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t3, n3, e3) {
          return g(t3, x, n3, e3);
        } }, A = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return k(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2 = this, c2 = o2.Mf, f2 = o2.tT.cmdOption, l2 = f2.selection, h2 = f2.activeRow, d2 = f2.activeCol, v2 = f2.expectedText;
            r.Commands.startTransaction(this.Mf.getParent(), this.tT), 1 === l2.rowCount && 1 === l2.colCount && (l2 = this.Mf.expandSelection(c2, l2), this.Mf.deleteBlankContent(c2, l2)), c2.rowFilter() ? (t4 = void 0, (e3 = (n4 = c2.rowFilter()).extendedRange || n4.range).contains(h2, d2, 1, 1) ? (O(d2, c2, b, [v2], y), t4 = new u.Condition(u.ConditionType.textCondition, { compareType: 0, expected: v2 }), n4.removeFilterItems(d2), n4.addFilterItem(d2, t4), L(n4, d2, c2, b, [v2], y)) : e3.row - 1 !== h2 || s(n4.srt[d2]) ? (c2.rowFilter().unfilter(), c2.rowFilter(new a.HideRowFilter(l2))) : (i3 = c2.getText(e3.row, d2), O(d2, c2, b, [v2], y), t4 = new u.Condition(u.ConditionType.textCondition, { compareType: 0, expected: i3 }), n4.removeFilterItems(d2), n4.addFilterItem(d2, t4), L(n4, d2, c2, b, [v2], y))) : c2.rowFilter(new a.HideRowFilter(l2)), r.Commands.endTransaction(this.Mf.getParent(), this.tT);
          }, n3.prototype.undo = function() {
            return F(this.Mf, this.tT);
          }, n3;
        })(c), r.Commands[v] = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t3, n3, e3) {
          return g(t3, A, n3, e3);
        } }, I = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return k(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2 = this, a2 = o2.Mf, c2 = o2.tT.cmdOption, f2 = c2.tableName, l2 = c2.expectedText, h2 = c2.activeCol, d2 = c2.activeRow;
            r.Commands.startTransaction(this.Mf.getParent(), this.tT), t4 = j(f2, a2), n4 = a2.tables.findByName(f2), t4 && n4 && (e3 = n4.range(), n4.showHeader() && e3.row === d2 && !s(t4.srt[h2 - e3.col]) && (l2 = a2.getText(d2 + 1, h2)), O(h2, a2, n4, [l2], y), i3 = new u.Condition(u.ConditionType.textCondition, { compareType: 0, expected: l2 }), t4.removeFilterItems(h2), t4.addFilterItem(h2, i3), L(t4, h2, a2, n4, [l2], y), r.Commands.endTransaction(this.Mf.getParent(), this.tT));
          }, n3.prototype.undo = function() {
            return F(this.Mf, this.tT);
          }, n3;
        })(c), r.Commands[p] = { canUndo: true, metaData: { viewModePermissions: 8 }, execute: function(t3, n3, e3) {
          return g(t3, I, n3, e3);
        } }, r.Commands.crt = function(t3) {
          t3.register(f, r.Commands[f]), t3.register(l, r.Commands[l]), t3.register(h, r.Commands[h]), t3.register(d, r.Commands[d]), t3.register(v, r.Commands[v]), t3.register(p, r.Commands[p]);
        };
      }, "./dist/plugins/filter/filter-button-images.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.getFilterButtonImageSrc = void 0;
        var e2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8c";
        function i2(t3) {
          return 0 === t3 ? "data:image/png;base64, " : 1 === t3 ? "data:image/png;base64, " : 2 === t3 ? e2 + "fvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAJKSURBVHjanJJfSJNhFMaf9/02R9MFCVZLUOgfpLMCmwrd7KIIm6X4fXoTY1oXltaN86oEi4xodtNNeNMHJZQ0gpDQmUKEyUAiyKCFW4PNtSFMoyKJSp4uputbJIUX5+K855zfe85zDkhiza4u2+HXn4M64dcBvw5BTotLtyDJ49KvI2fapK/Q/8qkwAjYiEHj4rrBG+ft4p+AB51f8pKazxxDY/djhLYj95bJLKG5fR+w5whUVxNUtR6qOiHUrmABNH3AkgcoqsBM11O56gvVUy2GV6CQNA/WjFdkMpnyhYV0NjZOAf6ksQMZCGQL3e526fUWm0kKrlAJRT7CUXeac+Gp3bRTaJpHXsReoLl3yGQAKPUtlaJh8yHxKI0s+C3xLHHXwjIqlbXtTKc/lKTScaRSFItMAWReB4WtdfdMJCVJTI18xihLNzFCyWXC4WxjMpksjiOK5BytjXIGUH0XCowjkFsESeF27BQLSy9F/2FK0ip6wa2VtV7OxxNF8XgciUQCKpMCZFoaRdQ6PXIHshvQDtACUJDARA/tVTVe6rHrSs97mMPh16j3vQECvpKc4iSLWzrGqXWMrahnx6h1jP5oPRf8Ho1FLA5nG/c7vayq8TIajdoikRi0nqCEdn9gDaCQLNVOXZOuk310nbhCV0Mvhx+OWlbhykGnh+Hou20sy2rUdLtbAJxUfs9PwW9PQM4qjuqjfDEd6ssX+VP56kdZ/+s80H9nZJcBYDxT6x8b+vspDw4Fbf+TuC7gpn7ZtoFCSdJE0vxrAN8Jcr/DWZzEAAAAAElFTkSuQmCC" : 3 === t3 ? e2 + "fvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAMuSURBVHjaZJN/aNR1GMefz+f7/d6P3aZGDGVKERLDbXdMJAQhlr+ujWo62g5DpUBiEyJjpxi0ZRtyDSQvV0cDd2uw213b1EHiFjbGZq5bIbc5dTuyybRyK+ZCDrG0evWHdwfWHx8+PDwPz/vzeb2fR451DGvpQB2ODJvnP24zDkewD7Zct6h9qD1j4TzPWNgsip80isbCxuS7vzinGm5aZwcwbwVPGoAhgAIEsAAN2NKxSscmYKRvE1iRPrY3Vt7Ski4WQKaJOmbjyF3WS//3jfr4hVXGEA55J5aXc+ZMdF0yOZWbFtCAKtx5zCUQLQBk32svPFJ8eHN16u+fCn6fv+MErKWlRWdvPzr9QpUVnIroxravlYz0tTvWdi9XRFGA6ugKOMPh7qHu7u5Ue3s7ra2tBIMnaG4+Sl1dHTU1NZSXl7P42x39zRxKYl82mYD8Q0wA8bjFmv855Xqzdu/swsICDx78xfz8r0xMXKa+/iBer5fx8W+PDi22PjH43pKSoi2bzIS+reVlUYCVn18q11hl9vb2GIFAgFQqxczMDKFQCK/Xy8WLF4ozkN2e00o8O07YA1KpxCUCyKYSUX1fxDQgc3NzRjAY/DMej+Pz+ejpiTkzAAEpqfpEJHeP2PZJXO32VBsbKryydY3IPZB1a3IVIH6/n1AoREVFBWmQjzknK7aLHm4bWXs5cel48uq0ziQGolE9e/uG8vsPceDttygrK8s2cBfkZ9zQ8syGbeaVyQmp3v8VNXWDvFo3SPX+8/hqzxEPjqiD9X5eqqoiN8fFjzeu5wHidh9xZTjIgZr1BqAaWi6Zm3e8z/OVDZS90kBv74AdUH7/IbZu3oJps0h8N7N62IXpLt2VnVbZWfKc+jTx+aM/3bti85RuZ3RsvBjQxFgWO9VnTSebzB+SMyvhtMMTFsv9+l4r26Czq0sxcV9F+3eprnOJwumr14ozpMMfnLV/duQjPdeDmiTiaGrutLs3Nhjujc86sxD/uHs/DxCPjFrbXly0N7ZEbR9GcPb0jz4NS/q/1P/nwlOFlYpOrZ4UkeUiOt8nRk6xyGNzT3YXTGBZeqEcgP53ACxeTBjELwuFAAAAAElFTkSuQmCC" : 4 === t3 ? e2 + "fvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAMNSURBVHjalJNfaFt1FMfP796bm9hublCwa93AVd3W5d67ddisFFw1lovUl7r0jx2rWWW6prpCkzfrUwjVFx0LwSrYPtiO0YJPDsuwIOJKq1PL0q43iZ3OuUp04p8owmbl40PXMgaCPnzhcPjCOef7PV8BxD6WETrKjXcviUbjTlW870/ta9mqfiqv1kuRQePjk68pkj4FSfX66HRA8ujfDPapvveWN4n1xKAC5H9CB3SRo767m9uhvRxQUGXAEXOt3uCodViWpT4Yi+tC1Rrhj99/luV8QQ43unrkxWaNVSqvXSNgHSeQSqU2A4Zt2xUdHR3bp6amwp8uTNU91jRgij2PAWg1da+sTwmeGTv768TExN8jIyOk0xlOnTpNMpkiFovR3t6O67rcuPHDJkCtr6U7zVH/gffPKrwravLzC75EIkGxWOTWrVWKxR+Zn79EPB7HdV3m5uYaAK12/xfmxm0P1uwW62D36p77nzdXVr4Txwn5h4aGVkqlEp6XJ5PJ4LouMzMzDYAGiPXkGwGJLGIAyqmPYod6sEM9vziRF0xALMvS0+n0zdnZWTo7O5mcnNwHaNevi27bqN0v+w1pWyj5AOUEjygn1I3VeLzaund/xfj4uAASi8WWM5kMLS0tAAYgV69+K5cvvyq/zZ7TpG1hzZaqbZbsDR3DPnSi2n6ka0uhUJB8Pt+QSCTo7++nqamJ204YXV1PG5aF2nFxUgn7PlGAWIefVXYoihVufcBWorLZrOTz+YMDAwN/tba2UlZWRi6Xq7itmQbb9JnU25qMvvmRAKrmoafEqY/edOqf2bljV/iebDYrgPT29q6Ew2FM06RQKFQMDw+L4ziabaP3nXwpIBy9oACVnBblHOh52N4Vqaxr7jYAFQwGty4uLm72PE/3PK8yt+QZuawnjgSN0TOiDj36nCmP9364pjiY1hJ67RX8F5dMBUjtW7Xav+Xh3PRnIiK6CF/qd/66886YHvW3Sfh8lQHfy11Z2MCegBgioknbCZQTPr1l71di/IcUqjsgLfHzvn8GACNDKumTxWELAAAAAElFTkSuQmCC" : 5 === t3 ? e2 + "fvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAANBSURBVHjaXJNfSGR1HMXP73fvdcYdo7Vy1KRlZ9DdnOvv5uTODK0s1mxDyKIYSRYoUwQikkgzPUS0RuW6QRCEuIiM/XuxNdiH6m17WnZFCMSHtjuOszONf0ZnGgW1iLbw9DBl0sPhy3k5HDjfD0h6w/VvSJJC8a5sOPeUYQ1TIjAuPOc+kN6Kae2JthodGBCVrSEdpmXAd8pJUrb2julgiWgJ9MMXABIXYADApQA0ACLc8Jjg9bAkKbhbD5LimDTgNQn15sc6SZD1onyPZIAUSyQOSS124oLzDxL7hwRJjaTIFbYcUJ5xB0lYp29oZ8+OypZnPhfvkXiHdGz8nHHs7++6e+vede6UiiiVio69vR2v1+2S5slqQRJ4XvdXkBS7O+uuUv43bO79UvPZp4nfr8/N/Tk7O8urVz9cu3x5zH6x76Xvuru7f+zq6joIhUKFYrHYSBJA4yVBUm5sbWPm15nqH1bvOpRScnBwcL1QKPD+/b+4vV3k0tIy4/E4I5EIFxcXu0nKckDwWUlSV6peqGCUW/mvJUmoNr82MTHBg4MD2rbNqakpRiIR3r59a5ykzOc3QBJob5txkZSbuQ00h/q5ub7htZSJ9NYmlDLF5OQkFxYW2NfXx/n5+YskhWk2G0p9IV5BXgDBAZ1k5Z07tx6wAlHmcjlHjrUim13D8vIaYrEYr12bZmdnJ0k6ygvVHi0GOD2SpHGPhApGmclkKjKZ15HJpHHzJrV4PM6RkRF2dHQwm83WeTweMTw8cCwA1YKkUwWjVMEofaFXeS99w1CksKwWIxaLsaenh1VVVUyn0yf8fmBoKCpIoqeBAr3n50DywdXVlWorEGUqufp0imnpM8eEaZpaPB5nOBymrutMpVKuM2dGdQvjGh+icfFxCCA0YJB0tKC9Mpn8qTKZhLSS0BOJUWmaprBtu8K2bW1lZeVR27alUq3SwpDBh2t1fAUN/eepkYfCOvW26/grWxNB6XukvYJJwgKE+c1zUs270TQdkmq4WeKtTwS+hETiCgUJafrb/89CWTU9/8JT9k2UnP7HN1Ag+OQV8Ps6Yb78vigj/a08ahGCaGzql/zIrbmhy/9IzAmSztMvzJz8ewAvdf7cUVI5hQAAAABJRU5ErkJggg==" : 6 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAeBJREFUOBGtkj1oU1EUx8+5fSC00VZoCwpOtUOcBMHFdhA0g5ODg0HSDg0EuoibOrTRodBdhWIMlCAFFTMphCqVakgGcS2InSoiQQ22SUxe373H+7+ax2uJkz3w7rnn6/fOvecSHaQsfqjNLLyvCXQvbrValUqlItGYihrNts50ds0b6Ki/uw+CgLTWXdPpEHC7/Pl0xzenuE8lfd/EYe/JtAaK/wlotnSm7QdPs2dHv/7yg2ew9wN6dcBIml2rxYLG9hdi3mShLWE6QSJjXuzI8QfnRxtdUKlUEmamRCLh6uD3sLTq9aSQqnl96jr+4nkeBYHO+9Zvww+RAzHGWO6eO/wL8E1GickvJ8fX/6QSXV3ZyBsmHCMEAP5fUiwWBV8U4o7QWb0Q175+7gK2RVE8SEaOseKJ/ktr5W7B/gnA7wCHLr7asPs4HPJycqTR0utM6snAlXdhMWIA9LwDBCHyeOLozvf2KrF6G7tWvkEUXraL9wKEGfLo3OGfuvnajvDjUPryFHPWuCq7FAqFeTuBLGyMEV0opbKpVOqOe4mydKa/3vjxQrc6W0OD49PRYhQhEQB0gElgD58DYvm2ePKWpS64h2Ro13WOu2a6N3zz033kQHK53Bx0Op2+C30g8htq3/HPc2QfaQAAAABJRU5ErkJggg==" : 7 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAdVJREFUOBFjYKAQMIL0/9ztovn31991YLP+/2f4z8TIz/DvvyQjE6MNl9f+ozA7Tpw48R8IGCwtLcH6QOIsIILddc91IKUJYv/fZiv65dvfQ4wMTKu4Q47ANYPk/vz5A6JQANgAmMj/pTaCn9/+2M3AyHSYJ/poIQMD3CKwkr9//8KUwmm4Af/nWvN+/Ppl539GhisCKQEZjIyM/+GqoAyQC4DiKMJgA/7PNOZ6/+XdVqD3HgtJ6cQzMjb8Q1FFyIC3Hz7mAwPHFmj83bd3z19506ECDAygLkaGKSIVd6bCDPv37x8DKBCRAdgFIuV32oGCIIwXYAtEJmQdnedeJbedefUfRCOLw9ggA9ANQTHg64+/6T9//zsAomGakGlQLKDHBNyAqqNPDH7++qfFyMwU+evXP00QH1kziA3SjNMFX7/9Tf/x68/qBjOxF99//VkD4mMzAN0F4EjN2v+K58+XT89AsQCM/cfAtCALDG5lFh4+qWmOYl8WL15cD4yBBpCBoHQAigkmJqaG2NjYRrAXvr1/H/nz9/9Xf/8y5v/49bcHRAO98wokDtIEUggyAOYFEBskBpIDg7AV189ELL9eBeODaBAfJI4sNmfOnDoQRhajmA0AtPr0ppdKGGIAAAAASUVORK5CYII=" : 8 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAO5JREFUOBFjYBgFRIfAjRs3eI8dO7bz+PHjRsiaWJA5uNhnzpxhffny5dr///+7MjExgfQ4w9QywRggev/+/Rx79+6NRBYDamJ8//79/J8/f7r+/v373q9fv6KQ5VEM+Pbt24rv378v27ZtWwFMEZDdCdQUDdT8+u/fv+4uLi4vYXIgmhGZs3HjRr9///6tBYoxA3EqEPMAXTCBkZHxKzMzs6Ofn99pZPUgNooBIIGVK1eCvLAEqJEB6F9GIP0XSPuFhoZuB8mjAwwDQAoWL16cAtQ4G6o4MS4ubgGUTTw1b968wrlz51YRr2PkqgQA82JlH8nI1QYAAAAASUVORK5CYII=" : 9 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAPlJREFUOBHtULkNg0AQPJBBogVyKICE1CSkxIgCqMkFUAApiQlISCiAAlwABIjfM2dZOnwteKXTfjNzuyvE34zfE7Rt65/n+bBtOwuC4MV+13XuPM+FaZp5GIa9yrmpCeNpmh5wdxCeTdNErI3jWEPUgwB7ssY6TRNYliUzDOMJgk9PEMmIe/iMuWraCmxWVeWu6ypFmJNsWVYUx7FcibWvaROwgTXEvu8Sg18FRhfbtn05F69NUJalC4EaKA9PHgwiXKd3HCdKkuQyhTbBMAwFCJLMsfkd14HzcZ8C/nJEkwDVjuPIAaxBitI0ffExZg3CuYr9x58LvAEtbX2YkfGdBQAAAABJRU5ErkJggg==" : 11 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAO5JREFUOBFjYBgFRIfAjRs3eI8dO7bz+PHjRsiaWJA5uNhnzpxhffny5dr///+7MjExgfQ4w9QywRggev/+/Rx79+6NRBYDamJ8//79/J8/f7r+/v373q9fv6KQ5VEM+Pbt24rv378v27ZtWwFMEZDdCdQUDdT8+u/fv+4uLi4vYXIgmhGZs3HjRr9///6tBYoxA3EqEPMAXTCBkZHxKzMzs6Ofn99pZPUgNooBIIGVK1eCvLAEqJEB6F9GIP0XSPuFhoZuB8mjAwwDQAoWL16cAtQ4G6o4MS4ubgGUTTw1b968wrlz51YRr2PkqgQA82JlH8nI1QYAAAAASUVORK5CYII=" : 12 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAgRJREFUOBFjYKAQMIL0nzx5cs6/f/+SCZnFyMh4kpeX105bW/sXTC0TiCEmJpbz58+fc0DMgAe/YWJiCkXWDNILNkBRUfEHUGPw379/3/3+/RtsCIhGwv+A8pFmZmaPQZqQAdgAkICjo+MDoAExQPwPpBFIgzHIRUDv1QLl9yBrhLHBYQDjgOjt27fXAzU0AP0LFgbSmzw8PAKA9H9kdTA2hgH///9n2gIEQEO+mpzfvp2FmfWgeO3kuzAN6DTcCzAJoE0g/zZoXj+8h+Pti7lMLx5deJHpmwKTB9H/09JY74XamoHYGAaABIFh8PemhAb//3//1wBN4/r769fsRwmu0x8luUrdjXRov/v++sM/f/5a4DOA4RMrZ+dOq7C1QC8Z/P/7/8K/P38z/nz/+fjfn98+QDf4qq0/NgmvAaCYAHrlpziDzI0/f//e+AuMjb9//jH9+8dQrrL6yFmQZhDA6gWQBDAaG+Pu79/+8OudjX9//4kAeqcLKLbm7+9fHf8bGuD64AyQJhj4+fPnpaTHj5se3Xm08d/fv57AGJmgsupwubqIbtSP778enNm/IhymFqsB6enpvx/fO+IL9ILbn39/L6oIaJaBNDDOmvVb8Ldg2I9vv2yAYQNOAlgNACn+zfD/+r+//+4x/mMoAGkEiYGA4oEDP1iZmCp3a4mpQEQoJAFYGTPePuR04gAAAABJRU5ErkJggg==" : 13 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjlBNDZFRkFFMDUxMTFFOTkyRTA4QkVCNjlCMDYwMEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjlBNDZFRkJFMDUxMTFFOTkyRTA4QkVCNjlCMDYwMEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2OUE0NkVGOEUwNTExMUU5OTJFMDhCRUI2OUIwNjAwQSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2OUE0NkVGOUUwNTExMUU5OTJFMDhCRUI2OUIwNjAwQSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Poa+1GoAAAE5SURBVHjapJO/SgNBEIdzS6x9CR8gEIjNYSkISWNI1BCw0MLCQCqDhWC0SGIltpo3SIrY2NgI1ygoJo1WIZBW0gn+Qc9vYC8sS+5OyMB3c7v3m7mZnTvH9/3EPJaUi+d5V7idf+jvYcV13a9gQ2m/D08xwW9QMIOnCdj8wOVhEhL8C1voxvaDoAJJMsKVtdi2I57fzsqszAWiG9yJpbmGRuQhWnYKy/AOkvCOxKGjUvYGYmnhGKTkNjwzpV1Tw3oBMmEViP3AInRgHS4JSOvqKrANTXhQEWNrQRdSUgXsgUwhCzkqvZjZgmWf8KoJ9DWCH0PPwLC6PsQebMKZbqlJOyouwUCPU4LX4Jy31vAlkO9lIzIB4m/pE1ahDwfGflFuqcKJa+EFhlDVgQnjsz+EJVk78/7OfwIMAP6mWr/ROcXGAAAAAElFTkSuQmCC" : 14 === t3 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAGBJREFUGBljYCAHzJo1a8L///+ZsOlFEQQqygcqXr1q1SpOdMUoCqGSQe/fv987c+ZMEWTF2BSC5C0ZGRkXEaPwONAZccgKWZA5UPY6QUHBmLCwsO9Y5CBC+HyNUxPZEgCPEyCkHm49GwAAAABJRU5ErkJggg==" : "";
        }
        n2.getFilterButtonImageSrc = i2;
      }, "./dist/plugins/filter/filter-dialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn = this && this.qKr || (Pn = function(t3, n3) {
          return Pn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Pn(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Pn(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), Pn;
        function Gn(t3) {
          return typeof t3 === Bt ? JSON.stringify(t3) : r.Common.ft.j(r.Common.ft._(t3));
        }
        function Un(t3, n3, e3, i3) {
          var r2, o2;
          try {
            if (e3.suspendPaint(), !i3) return;
            o2 = { tableName: r2 = i3.nM ? i3.nM.name() : b, colIndex: t3, condition: n3 }, (0, a.zA)("filterByCondition", o2, e3);
          } finally {
            e3.resumePaint();
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Brt = n2.Lrt = n2.Frt = n2.Prt = n2.Grt = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("ConditionalFormatting"), a = e2("./dist/plugins/filter/filter.js"), u = e2("CellTypes"), s = e2("./dist/plugins/filter/filter-button-images.js"), c = e2("./dist/plugins/filter/filter-ns.js"), f = r.Formatter.GeneralFormatter, l = i2.mt.jse, h = r.Common.CultureManager, d = r.Common.ct, v = r.Common.lt.Oh, p = r.Common.zf.j0, g = r.Common.zf.dI, m = null, b = void 0, y = i2.mt.En, w = i2.mt, M = r.Common.Uf.tR, C = w.vi, S = "left", T = "top", x = "float", A = "relative", I = "gc-ui-filter-subitems-container", k = "gc-no-user-select", N = "gc-filter-dialog-style", j = "position", D = "gc-ui-filter-subitem-item", _ = "gc-ui-filter-allDate-item", O = "gc-filter-alldates-arrow", B = (F = "gc-filter-hover") + " form-control well " + (L = (R = "ui-state-hover ") + (E = "gc-filter-item-hover")), P = "gc-filter-button-hover " + R, G = "gc-filter-submenu-check", U = "gc-filter-submenu-check-img", H = "gc-filter-allDate-check-img", V = "gc-filter-alldates-list", z = "gc-filter-addDates-container", Y = "gc-filter-subMenu-wrap", Z = "top10_dialog", W = "custom_dialog", Q = "gc-sub-color-sort", K = "gc-sub-color-filter", J = "automatic", X = "more_color", q = "gc-filter-dialog-color-title", $ = "gc-color-item", tt = "color-checked-wrap", nt = "gc-color-item-list", et = "gc-filter-sort", it = "gc-filter-color-dialog-background", rt = "gc-filter-color-dialog-font", ot = "gc-filter-color-dialog-style", at = "TextFilter", ut = "NumberFilter", st = "DateFilter", ct = "#D3F0E0", ft = "#86BFA0", lt = "#000000", ht = "#FFFFFF", dt = "transparent", vt = "border-box", pt = "data-isCheck", gt = "inline-block", mt = "content-box", bt = "#top10-item", yt = "#gc-color-dialog-selected", wt = "#gc-color-dialog-noFill", Mt = "thin solid rgb(160,160,160)", Ct = "data-checked", St = "gc-filter-dialog-close", Tt = "1px solid #c2c2c2", xt = "gc-filter-top10-rank-illegal", At = "1px solid #e0e0e0", It = "data-isNeedDialog", kt = "data-isCustom", Nt = "data-conditionType", jt = "data-operatorType", Dt = "data-colIndex", _t = "data-colorType", Ot = "data-color", Et = "<div class=", Rt = "<span class=", Lt = "<img class=", Ft = "<li class=", Bt = "object", Pt = "</span><span>", Gt = "</div></div>", Ut = ".filter-custom-select-input", Ht = "gc-spread-filter-dialog-title", Vt = "display", zt = "box-sizing", Yt = "none", Zt = "width", Wt = "height", Qt = "padding", Kt = "border", Jt = "click", Xt = "mouseover", qt = "mouseout", $t = "resize", tn = "inherit", nn = "#E81123", en = "white", rn = "backgroundColor", on = "#f0f0f0", un = (an = "margin") + "Left", sn = an + "Top", cn = an + "Right", fn = "font-size", ln = 188, hn = 16, dn = 1e4, vn = [[1, "Equal", "E", 1, 0], [1, "NotEqual", "N", 1, 1], [1, "GreaterThan", "G", 1, 2], [1, "GreaterOrEquals", "O", 1, 3], [1, "LessThan", "L", 1, 4], [1, "LessThanOrEquals", "Q", 1, 5], [1, "Between", "W", 0, 1], [1, "Top10", "T", 8, 0], [0, "AboveAverage", "A", 10, 0], [0, "BelowAverage", "O", 10, 1], [1, "Custom", "F", 1, 0]], pn = [[1, "Equal", "E", 2, 0], [1, "NotEqual", "N", 2, 1], [1, "Begin", "I", 2, 2], [1, "End", "T", 2, 4], [1, "Contain", "A", 2, 6], [1, "NotContain", "D", 2, 7], [1, "Custom", "F", 2, 0]], gn = [[1, "Equal", "E", 5, 0], [1, "Before", "B", 5, 2], [1, "After", "A", 5, 4], [1, "Between", "W", 0, 1], [0, "Tomorrow", "T", 6, 2], [0, "Today", "O", 6, 0], [0, "Yesterday", "D", 6, 1], [0, "NextWeek", "K", 6, 9], [0, "ThisWeek", "H", 6, 7], [0, "LastWeek", "L", 6, 8], [0, "NextMonth", "M", 6, 6], [0, "ThisMonth", "S", 6, 4], [0, "LastMonth", "N", 6, 5], [0, "NextQuarter", "N", 6, 10], [0, "ThisQuarter", "N", 6, 11], [0, "LastQuarter", "N", 6, 12], [0, "NextYear", "N", 6, 13], [0, "ThisYear", "N", 6, 14], [0, "LastYear", "N", 6, 15], [0, "YearToDate", "A", 6, 0, 6], [0, "AllDates", "P", 6, 1], [1, "Custom", "F", 6, 0]], Cn = [["Q1", "1", 6, 0, 2], ["Q2", "B", 6, 1, 2], ["Q3", "A", 6, 2, 2], ["Q4", "4", 6, 3, 2], ["Jan", "J", 6, 0, 3], ["Feb", "F", 6, 1, 3], ["Mar", "M", 6, 2, 3], ["Apr", "A", 6, 3, 3], ["May", "Y", 6, 4, 3], ["Jun", "U", 6, 5, 3], ["Jul", "L", 6, 6, 3], ["Aug", "T", 6, 7, 3], ["Sep", "S", 6, 8, 3], ["Oct", "O", 6, 9, 3], ["Nov", "N", 6, 10, 3], ["Dec", "D", 6, 11, 3]], Sn = ["IsEquals-0-1", "NotEquals-1-11", "IsGreaterThan-2-11", "IsGreaterOrEqual-3-11", "IsLess-4-11", "LessOrEqual-5-11", mn = "IsBeginWith-2-2", "NotBeginWith-3-2", bn = "IsEndWith-4-2", yn = "NotEndWith-5-2", wn = "IsContain-6-2", Mn = "NotContains-7-2"], Tn = ["IsEquals-0-2-11", "NotEquals-1-2-11", "IsGreaterThan-2-11", "IsGreaterOrEqual-3-11", "IsLess-4-11", "LessOrEqual-5-11", mn, "NotBeginWith-3-2", bn, yn, wn, Mn], xn = ["IsEquals-0-5", "NotEquals-1-5", "IsAfter-4-5", "AfterOrEqual-5-5", "IsBefore-2-5", "BeforeOrEqual-3-5", mn, "NotBeginWith-4-2", bn, yn, wn, Mn], An = new r.Common.ResourceManager(c.SR, "Filter"), In = An.getResource.bind(An), jn = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = t3.call(this, n4, e3, i3, r2, o2, a2) || this, s2 = vn;
            return r2.VJr && (s2 = s2.slice(0, 7).concat(s2.slice(s2.length - 1))), u2.Lz = s2, u2;
          }
          return Bn(n3, t3), n3.prototype.$rt = function() {
            this.sot(this.Lz);
          }, n3;
        })(Nn = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            return t3.call(this, n4, e3, i3, r2, o2, a2) || this;
          }
          return Bn(n3, t3), n3.prototype.Dn = function(t4) {
            this.$rt();
          }, n3.prototype.Fz = function() {
            var t4 = this;
            t4.grt.bind(Xt, (function(t5) {
              C(t5);
            })).bind(qt, (function(t5) {
              C(t5);
            })), (0, i2.GC$)("." + D, t4.grt[0]).bind(Xt, (function(t5) {
              (0, i2.GC$)("." + D).removeClass(B), (0, i2.GC$)(this).addClass(B), C(t5);
            })).bind(qt, (function(t5) {
              (0, i2.GC$)(this).removeClass(B), C(t5);
            })).bind(Jt, (function(n4) {
              (0, i2.GC$)(this).attr("id") !== z && t4.tot((0, i2.GC$)(this)), C(n4);
            })), this.not && this.not();
          }, n3.prototype.eot = function(t4) {
            return t4 !== b && "TRUE" === t4 || "FALSE" === t4;
          }, n3.prototype.iot = function() {
            var t4, n4, e3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this.IB.rrt[this.vrt.col], p2 = this.Lz, g2 = false;
            if (v2 && v2.length > 0 && v2[0] instanceof o.Condition) for (u2 = (v2 = v2[0]).compareType(), s2 = v2.expected(), r2 = v2.expectTypeId(), 10 === (a2 = v2.conType()) && (u2 = v2.type()), 8 === a2 && (u2 = 0), this.eot(s2) && (a2 = 11), 0 === a2 && (c2 = v2.item1().compareType(), f2 = v2.item2().compareType(), 5 === Math.max(c2, f2) && 3 === Math.min(c2, f2) && (g2 = true)), l2 = 0, h2 = M(p2); l2 < h2; l2++) {
              if ((n4 = 0 === a2 && p2[l2][3] === a2 && g2 || p2[l2][3] === a2 && 0 !== a2 || 11 === a2 && (0 === p2[l2][3] || 1 === p2[l2][3])) && 8 === a2) {
                t4 = l2;
                break;
              }
              if (e3 = p2[l2][4] === u2 && !g2 || 6 === p2[l2][3] && s2 === p2[l2][4] || g2, n4 && e3 && (isNaN(r2) || 0 === r2)) {
                t4 = l2;
                break;
              }
            }
            isNaN(r2) || 6 !== r2 || (t4 = 19), isNaN(r2) || 2 !== r2 && 3 !== r2 || (t4 = 20, this.oot && this.oot(Cn, s2, r2)), t4 !== b && 0 !== t4 ? d2 = (0, i2.GC$)("." + D)[t4] : !v2 || 3 === a2 || t4 !== b || 2 === a2 && 0 === u2 ? 0 === t4 && 5 === a2 && (d2 = (0, i2.GC$)("." + D)[t4]) : d2 = (0, i2.GC$)("." + D)[M(p2) - 1], (0, i2.GC$)(d2).attr(pt, 1), (0, i2.GC$)(d2).find("." + U).css([Vt], [gt]);
          }, n3.prototype.Jrt = function() {
            var t4 = (0, i2.GC$)("." + D).removeClass(B)[0];
            (0, i2.GC$)(t4).addClass(B);
          }, n3.prototype.aot = function(t4) {
            var n4;
            if (0 !== t4) n4 = t4;
            else switch (this._type) {
              case ut:
                n4 = 1;
                break;
              case at:
                n4 = 2;
                break;
              case st:
                n4 = 5;
            }
            return n4;
          }, n3.prototype.uot = function(t4, n4, e3, i3) {
            var r2 = this.Mf, o2;
            switch (t4) {
              case Z:
                o2 = new Rn(r2.parent.j2(), r2, this.vrt, Z);
                break;
              case W:
                o2 = new Fn(r2.parent.j2(), r2, this.vrt, W, this.mrt._rt, i3, n4, e3, this.aot(n4));
            }
            o2 && o2.rQ();
          }, n3.prototype.tot = function(t4) {
            var n4, e3, i3 = this.vrt.col, r2 = parseInt(t4.attr(It), 10), a2 = parseInt(t4.attr(Nt), 10), u2 = parseInt(t4.attr(jt), 10), s2 = parseInt(t4.attr("data-expectTypeId"), 10), c2 = parseInt(t4.attr(kt), 10), f2 = parseInt(t4.attr(pt), 10);
            return isNaN(s2) || (r2 = 0, c2 = 0), 0 === r2 && 1 === f2 ? (this.Wrt(), void this.mrt.close()) : 1 === r2 ? (this.mrt.close(), n4 = 8 === a2 && 0 === u2 ? Z : W, void this.uot(n4, a2, u2, c2)) : (e3 = new o.Condition(a2), 10 === a2 ? e3.type(u2) : e3.compareType(u2), 6 !== a2 || isNaN(s2) ? 6 === a2 && (e3 = new o.Condition(a2)).expected(u2) : ((e3 = new o.Condition(a2)).expectTypeId(s2), e3.expected(u2)), void this.Yrt(i3, e3));
          }, n3.prototype.$rt = function() {
          }, n3.prototype.sot = function(t4) {
            var n4, e3, r2 = "";
            for (n4 = 0, e3 = t4.length; n4 < e3; n4++) r2 += n4 === e3 - 1 ? this.cot(t4[n4], 1) : this.cot(t4[n4], 0);
            this.grt.html(r2), (0, i2.GC$)(this.lrt).append(this.grt), this.fot(), this.iot();
          }, n3.prototype.fot = function() {
            var t4 = this.lrt.offsetHeight - 2, n4 = this.lrt.offsetTop;
            (0, i2.GC$)("." + D + ",." + _).css([Qt, Wt, "line-height", "white-space", "clear", Kt, Zt, Wt, fn, an], ["0 10px 0 0", t4, t4, "nowrap", "both", Yt, "auto", "auto", "12px", 0]), this.grt.css([S, T], ["100%", n4]), (0, i2.GC$)(".gc-filter-hotkey").css(["text-decoration"], ["underline"]), (0, i2.GC$)("." + G).css([Vt, Zt, "textAlign"], [gt, "24px", "center"]), (0, i2.GC$)("." + G + " img").css([Vt, "verticalAlign"], [gt, "text-bottom"]), (0, i2.GC$)("." + U + ",." + H).hide(), (0, i2.GC$)("#" + z).css([j], [A]), (0, i2.GC$)("." + O).css([un, Zt, Wt, "background-position"], ["5px", "16px", "16px", "center bottom"]), (0, i2.GC$)("#" + V).css([j, Vt, Zt], ["absolute", "none", "auto"]);
          }, n3.prototype.cot = function(t4, n4) {
            var e3 = "", i3 = t4[0], r2 = In()[t4[1]], o2 = t4[3], a2 = t4[4];
            return e3 = Et + '"' + D + '" ' + kt + '="' + n4 + '" ' + It + ' ="' + i3 + '" ' + Nt + '="' + o2 + '" ' + jt + '="' + a2 + '">' + Et + '"' + et + '">' + Rt + '"' + G + '">' + Lt + '"' + U + '" src="' + this.Hrt(11) + '">' + Pt + r2 + "</span>" + Gt;
          }, n3.prototype.qrt = function() {
            var t4 = (0, i2.GC$)("." + E, this.grt[0]).removeClass(B), n4 = (0, i2.GC$)("." + D);
            0 === t4.index() ? (0, i2.GC$)(n4[n4.length - 1]).addClass(B) : (0, i2.GC$)(n4[t4.index() - 1]).addClass(B);
          }, n3.prototype.Xrt = function() {
            var t4 = (0, i2.GC$)("." + E, this.grt[0]);
            t4.length > 0 && t4[0].nextSibling ? (t4.removeClass(B), (0, i2.GC$)(t4[0].nextSibling).addClass(B)) : this.Jrt();
          }, n3;
        })(kn = (function() {
          function t3(t4, n3, e3, r2, o2, a2) {
            var u2 = this;
            u2._type = b, u2.frt = a2, u2.lrt = t4, u2.Mf = r2, u2.hrt = (0, i2.GC$)(t4), u2.Wc = n3, u2.drt = false, u2.vrt = e3, u2.IB = e3.rowFilter, u2.mrt = o2, u2.grt = m;
          }
          return t3.prototype.Hc = function() {
            this.Dn(this.Urt()), this.Fz();
          }, t3.prototype.Hrt = function(t4) {
            return (0, s.getFilterButtonImageSrc)(t4);
          }, t3.prototype.Urt = function() {
            var t4 = (0, i2.GC$)(y("div")).attr("id", I + "_" + this.frt);
            return t4.addClass(N + " " + k + " " + Y), t4.css([j, Vt, zt], ["fixed", Yt, vt]), this.grt = t4, (0, i2.GC$)(this.lrt).append(this.grt), t4;
          }, t3.prototype.rf = function() {
            return "none" !== this.grt[0].style.display;
          }, t3.prototype.$c = function() {
            (0, i2.GC$)("." + Y).hide(), this.grt.show(), this.zrt();
          }, t3.prototype.NK = function() {
            this.grt.hide(), this.grt.find("." + B).removeClass(B);
          }, t3.prototype.Vrt = function(t4) {
            return this._type = t4, this;
          }, t3.prototype.zrt = function(t4) {
            var n3, e3, i3, r2, o2 = this.hrt.offset(), a2 = this.mrt.Fc.offset(), u2 = document.documentElement, s2 = a2.left, c2 = a2.top, f2 = u2.clientWidth, l2 = u2.clientHeight, h2 = this.grt.width(), d2 = this.grt.height(), v2 = this.hrt.parent().parent(), p2 = v2.offset(), g2 = p2.top, m2 = this.Wc.offset(), b2 = this.Wc[0].getBoundingClientRect();
            m2.left + this.Wc.width() + h2 - s2 > f2 ? (n3 = -1 * (h2 + 2) + b2.left + "px", i3 = false) : (n3 = this.Wc.width() + b2.left + "px", i3 = true), e3 = g2 + (r2 = o2.top - m2.top) + d2 - c2 > l2 ? c2 + l2 - d2 - p2.top - 6 + b2.top : r2 + b2.top, e3 += "px", this.grt.css([S, T], [n3, e3]), t4 && t4.call(this, i3);
          }, t3.prototype.Yrt = function(t4, n3) {
            var e3 = this, i3, r2;
            Un(t4, n3, e3.Mf, e3.IB), this.mrt.close();
          }, t3.prototype.Zrt = function() {
            var t4;
            (0, i2.GC$)("." + E, this.grt[0]).trigger(Jt);
          }, t3.prototype.Wrt = function() {
            var t4, n3 = this, e3 = n3.vrt, i3 = this.Mf, r2 = e3.col, o2 = e3.rowFilter;
            o2 && (t4 = { rowFilter: o2, colIndex: r2 }, i3.Qy().execute({ cmd: "clearFilter", sheetName: i3.name(), cmdOption: t4 }));
          }, t3.prototype.Qrt = function() {
            return this.NK(), m;
          }, t3.prototype.Krt = function() {
            this.rf() || (this.$c(), this.Jrt());
          }, t3.prototype.Dn = function(t4) {
          }, t3.prototype.Fz = function() {
          }, t3.prototype.Jrt = function() {
          }, t3.prototype.Xrt = function() {
          }, t3.prototype.qrt = function() {
          }, t3;
        })())), n2.Grt = jn, Dn = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = t3.call(this, n4, e3, i3, r2, o2, a2) || this;
            return u2.Lz = pn, u2;
          }
          return Bn(n3, t3), n3.prototype.$rt = function() {
            this.sot(pn);
          }, n3;
        })(Nn), n2.Prt = Dn, _n = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = t3.call(this, n4, e3, i3, r2, o2, a2) || this, s2 = gn;
            return r2.VJr && (s2 = s2.slice(0, 4).concat(s2.slice(s2.length - 1))), u2.Lz = s2, u2;
          }
          return Bn(n3, t3), n3.prototype.$rt = function() {
            this.sot(this.Lz);
          }, n3.prototype.cot = function(t4, n4) {
            var e3 = "", i3 = t4[0], r2 = In()[t4[1]], o2 = t4[3], a2 = t4[4];
            return e3 = "AllDates" === t4[1] ? '<div id="' + z + '" class="' + D + '" ' + kt + '="' + n4 + '" ' + It + ' ="' + i3 + '" ' + Nt + '="' + o2 + '" ' + jt + '="' + a2 + '">' + Et + '"' + et + '">' + Rt + '"' + G + '">' + Lt + '"' + U + '" src="' + this.Hrt(11) + '">' + Pt + r2 + "</span>" + Rt + '"' + O + ' gc-filterDialog-rightArrow"></span></div>' + this.lot() + "</div>" : "YearToDate" === t4[1] ? Et + '"' + D + '" data-expectTypeId="' + t4[5] + '" ' + kt + '="' + n4 + '" ' + It + ' ="' + i3 + '" ' + Nt + '="' + o2 + '" ' + jt + '="' + a2 + '">' + Et + '"' + et + '">' + Rt + '"' + G + '">' + Lt + '"' + U + '" src="' + this.Hrt(11) + '">' + Pt + r2 + "</span>" + Gt : Et + '"' + D + '" ' + kt + '="' + n4 + '" ' + It + ' ="' + i3 + '" ' + Nt + '="' + o2 + '" ' + jt + '="' + a2 + '">' + Et + '"' + et + '">' + Rt + '"' + G + '">' + Lt + '"' + U + '" src="' + this.Hrt(11) + '">' + Pt + r2 + "</span>" + Gt;
          }, n3.prototype.$c = function() {
            (0, i2.GC$)("." + Y).hide(), this.grt.show(), this.zrt(this.hot);
          }, n3.prototype.hot = function(t4) {
            var n4, e3, r2, o2, a2, u2, s2, c2, f2, l2;
            this.grt.show(), n4 = (0, i2.GC$)("#" + V), e3 = (0, i2.GC$)("#" + z), r2 = this.grt, n4.length <= 0 || (s2 = (u2 = document.documentElement).clientWidth, c2 = u2.clientHeight, l2 = (f2 = this.mrt.Fc.offset()).top, o2 = r2.offset().left + r2.width() + n4.width() > s2 ? -1 * n4.width() + "px" : t4 ? r2.width() + "px" : -1 * n4.width() + "px", a2 = e3.offset().top + n4.height() - l2 > c2 ? l2 + c2 - n4.height() - e3.offset().top - 5 : 0, a2 += "px", n4.css([S, T], [o2, a2]));
          }, n3.prototype.lot = function() {
            var t4, n4 = '<div id="' + V + '" class="' + N + '">';
            for (t4 = 0; t4 < M(Cn); t4++) n4 += Et + '"' + _ + '" data-expectTypeId="' + Cn[t4][4] + '" ' + Nt + '="6"  ' + jt + '="' + Cn[t4][3] + '">' + Et + '"' + et + '">' + Rt + '"' + G + '">' + Lt + '"' + H + '" src="' + this.Hrt(11) + '">' + Pt + In()[Cn[t4][0]] + "</span>" + Gt;
            return n4 += "</div>";
          }, n3.prototype.Jrt = function() {
            var t4, n4;
            this.vot() ? (t4 = (0, i2.GC$)("." + _).removeClass(B), (0, i2.GC$)(t4[0]).addClass(B)) : (n4 = (0, i2.GC$)("." + D).removeClass(B)[0], (0, i2.GC$)(n4).addClass(B));
          }, n3.prototype.vot = function() {
            var t4 = false, n4 = (0, i2.GC$)("#" + V);
            return 0 !== n4.length && (t4 = n4.css(Vt) !== Yt), t4;
          }, n3.prototype.mot = function() {
            (0, i2.GC$)("#" + V).hide(), (0, i2.GC$)("." + _).removeClass(B);
          }, n3.prototype.not = function() {
            var t4 = this;
            (0, i2.GC$)("." + _, t4.grt[0]).bind(Xt, (function() {
              (0, i2.GC$)(this).addClass(B), (0, i2.GC$)("#" + z).addClass(B);
            })).bind(qt, (function() {
              (0, i2.GC$)(this).removeClass(B);
            })).bind(Jt, (function(n4) {
              t4.tot((0, i2.GC$)(this)), C(n4);
            })), (0, i2.GC$)("#" + z, t4.grt[0]).bind(Xt, (function() {
              (0, i2.GC$)("#" + V).show();
            })).bind(qt, (function() {
              t4.mot();
            })).bind(Jt, (function(n4) {
              (0, i2.GC$)("#" + V).show(), t4.Jrt(), C(n4);
            }));
          }, n3.prototype.got = function() {
            var t4 = false, n4 = (0, i2.GC$)("#" + z);
            return 0 !== n4.length && (t4 = n4.hasClass(B)), t4;
          }, n3.prototype.oot = function(t4, n4, e3) {
            var r2, o2, a2;
            for (o2 = 0; o2 < M(t4); o2++) if (t4[o2][3] === n4 && t4[o2][4] === e3) {
              r2 = o2;
              break;
            }
            a2 = (0, i2.GC$)("." + _)[r2], (0, i2.GC$)(a2).attr(pt, 1), (0, i2.GC$)(a2).find("." + H).css([Vt], [gt]).attr(pt, 1);
          }, n3.prototype.Zrt = function() {
            var t4;
            (t4 = this.vot() ? (0, i2.GC$)("." + E, (0, i2.GC$)("#" + V)[0]) : (0, i2.GC$)("." + E, this.grt[0])).trigger(Jt);
          }, n3.prototype.Qrt = function() {
            var t4 = m;
            return this.vot() ? (this.mot(), t4 = this) : this.NK(), t4;
          }, n3.prototype.Krt = function() {
            var t4 = this.rf(), n4 = this.vot();
            t4 ? !n4 && this.got() && ((0, i2.GC$)("#" + V).show(), this.Jrt()) : (this.$c(), this.Jrt());
          }, n3.prototype.qrt = function() {
            var t4, n4, e3, r2;
            this.vot() ? (t4 = (0, i2.GC$)("." + E, (0, i2.GC$)("#" + V)[0]).removeClass(B), n4 = (0, i2.GC$)("." + _), 0 === t4.index() ? (0, i2.GC$)(n4[n4.length - 1]).addClass(B) : (0, i2.GC$)(n4[t4.index() - 1]).addClass(B)) : (e3 = (0, i2.GC$)("." + E, this.grt[0]).removeClass(B), r2 = (0, i2.GC$)("." + D), 0 === e3.index() ? (0, i2.GC$)(r2[r2.length - 1]).addClass(B) : (0, i2.GC$)(r2[e3.index() - 1]).addClass(B));
          }, n3.prototype.Xrt = function() {
            var t4, n4, e3;
            this.vot() ? (t4 = (0, i2.GC$)("." + E, (0, i2.GC$)("#" + V)[0]).removeClass(B), n4 = (0, i2.GC$)("." + _), t4.index() === n4.length - 1 ? (0, i2.GC$)(n4[0]).addClass(B) : (0, i2.GC$)(n4[t4.index() + 1]).addClass(B)) : (e3 = (0, i2.GC$)("." + E, this.grt[0])).length > 0 && e3[0].nextSibling ? (e3.removeClass(B), (0, i2.GC$)(e3[0].nextSibling).addClass(B)) : this.Jrt();
          }, n3;
        })(Nn), n2.Frt = _n, On = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            return t3.call(this, n4, e3, i3, r2, o2, a2) || this;
          }
          return Bn(n3, t3), n3.prototype.Dn = function() {
            this.pot(this.mrt.bot, this.mrt.yot);
          }, n3.prototype.wot = function() {
            var t4, n4, e3, i3, r2, o2 = this.IB.nrt;
            if (o2 && o2.color !== b) {
              if (n4 = o2.isBackColor ? 0 : 1, e3 = o2.color, i3 = this.mrt.bot, r2 = this.mrt.yot, "{" === e3[0] ? e3 = JSON.parse(e3) : "" !== e3 && (e3 = Gn(e3)), "" === e3 && 0 === n4 && i3[J] === b || "" === e3 && 0 !== n4 && r2[J] === b) return b;
              t4 = { colorType: n4, color: e3 };
            }
            return t4;
          }, n3.prototype.Mot = function() {
            var t4 = this.IB.rrt[this.vrt.col], n4;
            return t4 && t4.length > 0 && t4[0] instanceof o.Condition && 3 === t4[0].conType() && (n4 = { colorType: t4[0].compareType(), color: t4[0].expected() }), n4;
          }, n3.prototype.pot = function(t4, n4) {
            this.Cot(t4, n4), this.Sot();
          }, n3.prototype.Tot = function(t4, n4) {
            this.mrt.Aot(t4, n4), this.mrt.close();
          }, n3.prototype.Iot = function(t4) {
            var n4, e3, i3, r2, o2;
            this.mrt.close(), e3 = (n4 = this).Mf, r2 = t4 ? this.mrt.bot : this.mrt.yot, this.xot && (i3 = this.xot.color), (o2 = new Ln(e3.parent.j2(), e3, this.vrt, this.frt, r2, t4, i3)).rQ();
          }, n3.prototype.Not = function(t4, n4) {
            var e3 = new o.Condition(3), i3 = this.vrt.col, r2 = n4 ? 0 : 1, a2 = this.Mot();
            if (a2 && a2.colorType === r2 && a2.color === t4) return this.Wrt(), void this.mrt.close();
            e3.compareType(r2), e3.expected(t4), this.Yrt(i3, e3);
          }, n3.prototype.Sot = function() {
            (0, i2.GC$)("." + q, this.grt[0]).css([Wt, "line-height", "textIndent", "whiteSpace"], ["32px", "32px", "8px", "nowrap"]), (0, i2.GC$)("." + nt, this.grt[0]).css(["listStyle", "padding", Wt, "lineHeight", Kt, "whiteSpace", Zt, an, fn, zt], [Yt, "2px 0", "23px", "23px", "1px solid transparent", "nowrap", "140px", 0, "12px", "content-box"]), (0, i2.GC$)("." + $, this.grt[0]).css([Zt, Kt, cn, Wt, zt, "whiteSpace", x], ["75px", "1px solid rgb(130,130,130)", "24px", "22px", vt, "nowrap", S]), (0, i2.GC$)("." + tt, this.grt[0]).css([Vt, Zt, Wt, "verticalAlign", an, "textAlign", x], [gt, "22px", "22px", "middle", "0 3px 0 2px", "center", S]), (0, i2.GC$)("." + tt + " img", this.grt[0]).css([sn, Vt], ["3px", Yt]), (0, i2.GC$)(".gc-color-dialog-more-color", this.grt[0]).css([Qt], ["0 5px 0 0"]), (0, i2.GC$)("." + tt + " img.checked", this.grt[0]).css([sn, Vt], ["3px", "block"]);
          }, n3.prototype.Cot = function(t4, n4) {
            var e3, r2, o2, a2;
            this.frt === Q ? (e3 = In().SortCellTitle, r2 = In().SortFontTitle, o2 = this.wot()) : this.frt === K && (e3 = In().FilterCellTitle, r2 = In().FilterFontTitle, o2 = this.Mot()), this.xot = o2, a2 = this.kot(e3, t4[J], t4.data, 0, o2), "" !== (a2 += this.kot(r2, n4[J], n4.data, 1, o2)) ? this.grt.html(a2) : this.drt = true, (0, i2.GC$)(this.lrt).append(this.grt), this.grt.find("canvas").forEach((function(t5, n5, e4) {
              var r3, o3, a3, u2, s2, c2 = t5;
              r3 = "{" === c2.textContent[0] ? JSON.parse(c2.textContent) : c2.textContent, o3 = 73, a3 = 20, c2.width = o3, c2.height = a3, u2 = c2.getContext("2d"), s2 = function() {
                u2.fillRect(0, 0, o3, a3);
              }, i2.W.setFillStyle(u2, r3, 0, 0, o3, a3, s2);
            }));
          }, n3.prototype.kot = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = false, g2 = "checked";
            for (c2 in r2 && i3 === r2.colorType && "" !== r2.color ? a2 = Gn(r2.color) : r2 && "" === r2.color && i3 === r2.colorType && (a2 = r2.color), u2 = Et + "'" + q + "'>" + t4 + "</div><ul class='" + (o2 = 0 === i3 ? it : rt) + "' style='padding: 7px 0 0 0;margin:0'>", s2 = 0, e3) e3.hasOwnProperty(c2) && s2 < 5 && (f2 = "", a2 !== b && a2 === c2 && (f2 = g2, p2 = true), u2 += Ft + '"' + nt + '" ' + Dt + '="' + e3[c2] + '" ' + _t + '="' + i3 + '">' + Rt + '"' + tt + '">' + Lt + '"' + f2 + '" src="' + this.Hrt(11) + '"></span>' + Et + '"' + $ + '"><canvas>' + c2 + "</canvas></div></li>", s2++);
            return 0 === s2 && a2 === b || n4 === b && 1 === s2 ? u2 = "" : (n4 !== b && (l2 = 0 === i3 ? In().NoFill : In().Automatic, h2 = "", a2 !== b && "" === a2 && (h2 = g2, p2 = true), u2 += Ft + '"' + nt + '" ' + Dt + '="' + J + '" ' + _t + '="' + i3 + '" ' + Ot + ' = "">' + Rt + '"' + tt + '"><img  class="' + h2 + '" src="' + this.Hrt(11) + '"></span>' + Et + '"' + et + '">' + l2 + "</div></li>"), 5 === s2 && (d2 = "", p2 || a2 === b || (d2 = g2), v2 = 0 === i3 ? In().CellColor : In().FontColor, u2 += Ft + '"' + nt + '" ' + Dt + '="' + X + '" ' + _t + '="' + i3 + '" >' + Rt + '"' + tt + '">' + Lt + '"' + d2 + '" src="' + this.Hrt(11) + '"></span>' + Et + '"' + et + ' gc-color-dialog-more-color">' + v2 + "</div></li>"), u2 += "</ul>");
          }, n3.prototype.Jrt = function() {
            var t4 = (0, i2.GC$)("." + nt, this.grt[0]).removeClass(B)[0];
            (0, i2.GC$)(t4).addClass(B);
          }, n3.prototype.Fz = function() {
            var t4 = this;
            t4.grt.bind(Xt, (function(t5) {
              C(t5);
            })).bind(qt, (function(t5) {
              C(t5);
            })), (0, i2.GC$)("." + nt, t4.grt[0]).bind(Jt, (function() {
              var n4, e3 = (0, i2.GC$)(this).find("canvas"), r2 = (0, i2.GC$)(this).attr(Dt), o2 = (0, i2.GC$)(this).attr(_t), a2 = false;
              e3 && e3.length > 0 ? "{" === (n4 = e3.text())[0] && (n4 = JSON.parse(n4)) : n4 = (0, i2.GC$)(this).attr(Ot), 0 === (o2 = parseInt(o2, 10)) && (a2 = true), "more_color" !== r2 ? t4.frt === Q ? t4.Tot(n4, a2) : t4.frt === K && t4.Not(n4, a2) : t4.Iot(a2);
            })).bind(Xt, (function(n4) {
              (0, i2.GC$)("." + nt, t4.grt[0]).removeClass(B), (0, i2.GC$)(this).addClass(B), C(n4);
            })).bind(qt, (function(t5) {
              (0, i2.GC$)(this).removeClass(B), C(t5);
            }));
          }, n3.prototype.Dot = function(t4) {
            var n4 = 0;
            return t4.forEach((function(t5, e3) {
              (0, i2.GC$)(t5).hasClass(E) && (n4 = e3);
            })), n4;
          }, n3.prototype.qrt = function() {
            var t4, n4 = (0, i2.GC$)("." + nt, this.grt[0]), e3 = this.Dot(n4);
            0 === e3 ? (0, i2.GC$)(n4.removeClass(B)[n4.length - 1]).addClass(B) : (t4 = n4.removeClass(B)[e3 - 1], (0, i2.GC$)(t4).addClass(B));
          }, n3.prototype.Xrt = function() {
            var t4, n4 = (0, i2.GC$)("." + nt, this.grt[0]), e3 = this.Dot(n4);
            e3 === n4.length - 1 ? this.Jrt() : (t4 = n4.removeClass(B)[e3 + 1], (0, i2.GC$)(t4).addClass(B));
          }, n3;
        })(kn), n2.Lrt = On, En = (function(t3) {
          function n3(n4, e3, i3, r2) {
            var o2, a2 = this, u2 = e3.parent;
            return (o2 = a2 = t3.call(this, n4, w.gi(u2 && u2.Ti), true) || this).Mf = e3, o2.prt = o2.Zc + "_OK", o2.brt = o2.Zc + "_Cancel", o2.yrt = o2.Zc + "_Close", o2.vrt = i3, o2.IB = i3.rowFilter, o2.frt = r2, o2.Wc = o2.Xc(), a2;
          }
          return Bn(n3, t3), n3.prototype.rQ = function() {
            this.Wc.focus();
          }, n3.prototype.Mrt = function() {
            this.$c(), this.Dn(), this._ot(), this.Eot();
          }, n3.prototype.Dn = function() {
          }, n3.prototype.Eot = function() {
            var t4 = this, n4 = t4.Wc.width(), e3 = t4.Wc.height(), i3 = t4.Fc.width(), r2 = t4.Fc.height();
            this.Wc.css([j, S, T], ["fixed", (i3 - n4) / 2 + "px", (r2 - e3) / 2 + "px"]);
          }, n3.prototype._ot = function() {
            var t4 = this, n4 = function(n5) {
              n5.stopPropagation(), t4.jot(), t4.Oot(), t4.close();
            };
            (0, i2.GC$)("#" + t4.prt).bind(Jt, (function(n5) {
              var e3;
              n5.stopPropagation(), t4.Rot() && (t4.Oot(), t4.close());
            })), (0, i2.GC$)("#" + t4.brt).bind(Jt, n4), (0, i2.GC$)("#" + t4.yrt).bind(Jt, n4).bind(Xt, (function() {
              this.style.backgroundColor = nn, this.style.color = en;
            })).bind(qt, (function() {
              this.style.backgroundColor = tn, this.style.color = tn;
            })), (0, i2.GC$)("#" + t4.prt + ", #" + t4.brt).bind(Xt, (function() {
              (0, i2.GC$)(this).addClass(P);
            })).bind(qt, (function() {
              (0, i2.GC$)(this).removeClass(P);
            })), (0, i2.GC$)(document).bind($t, (function() {
              t4.Eot();
            }));
          }, n3.prototype.tot = function(t4) {
            var n4 = this.vrt, e3, i3, r2;
            Un(n4.col, t4, this.Mf, n4.rowFilter);
          }, n3.prototype.Rot = function() {
            return true;
          }, n3.prototype.jot = function() {
          }, n3.prototype.Oot = function() {
          }, n3;
        })(i2.Ase), n2.Brt = En, Rn = (function(t3) {
          function n3(n4, e3, i3, r2) {
            var o2 = t3.call(this, n4, e3, i3, r2) || this, a2 = o2;
            return a2.YC = 230, a2.ZC = 140, a2.vrt = i3, a2.IB = a2.vrt.rowFilter, a2.frt = r2, a2.uY = a2.wrt(), a2.Mrt(), o2;
          }
          return Bn(n3, t3), n3.prototype.wrt = function() {
            var t4, n4, e3 = { rank: 0, item: 10 }, i3 = this, r2 = i3.IB.rrt[i3.vrt.col];
            return r2 && r2.length > 0 && r2[0] instanceof o.Condition && 8 === r2[0].conType() && (e3 = { rank: t4 = r2[0].type(), item: n4 = r2[0].expected() }), e3;
          }, n3.prototype.Dn = function() {
            var t4 = this.Bot();
            this.Xc().html(t4), this.setStyle(), this.Fz();
          }, n3.prototype.Lot = function(t4) {
            1 === t4.value.length ? t4.value = t4.value.replace(/[^1-9]/g, "") : t4.value = t4.value.replace(/\D/g, "");
          }, n3.prototype.Fz = function() {
            var t4 = this;
            (0, i2.GC$)(bt).bind("keyup", (function() {
              (0, i2.GC$)(this).removeClass(xt), t4.Lot(this);
            })).bind("paste", (function() {
              (0, i2.GC$)(this).removeClass(xt), t4.Lot(this);
            })), t4.bindMoveEvent((0, i2.GC$)("." + Ht, t4.Wc[0])[0]);
          }, n3.prototype.Rot = function() {
            var t4 = this, n4 = parseInt((0, i2.GC$)("#top10-rank").val(), 10), e3 = parseInt((0, i2.GC$)(bt).val(), 10), r2 = new o.Condition(8), a2 = false;
            return e3 ? (a2 = true, r2.type(n4), r2.expected(e3), t4.tot(r2)) : (0, i2.GC$)(bt).addClass(xt).focus(), a2;
          }, n3.prototype.Bot = function() {
            var t4 = "", n4 = "";
            return n4 = 1 === this.uY.rank ? '<select id="top10-rank"><option value="0">' + In().top + '</option><option value="1" selected = "selected">' + In().bottom + "</option></select>" : '<select id="top10-rank"><option value="0" selected="selected">' + In().top + '</option><option value="1">' + In().bottom + "</option></select>", t4 += '<div class="gc-popup ui-widget ' + N + '"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix gc-spread-filter-dialog-title"><span class="gc-filter-dialog-title">' + In().Top10Filter + '</span><span id="' + this.yrt + '" class="gc-filter-dialog-close">×</span></div><div id="top10-desc"><div class="top10-show-text">' + In().Show + '</div><div class="ui-dialog-hr"></div></div><div class="top10-wrap">' + n4 + '<input id="top10-item" class="gc-filter-top10-rank" type="text"  value="' + this.uY.item + '" /></div><div class="top10-footer top10-wrap"><input type="button" id="' + this.prt + '" value="' + In().OK + '"><input id="' + this.brt + '" type="button" class="gc-filter-dialog-close" value="' + In().Cancel + '"/></div></div>';
          }, n3.prototype.setStyle = function() {
            (0, i2.GC$)(".gc-popup", this.Wc[0]).css([rn, Zt, Wt], [on, this.YC, this.ZC]), (0, i2.GC$)(".ui-dialog-titlebar", this.Wc[0]).css({ height: "34px", background: "white", fontSize: "12px", fontWeight: "normal", color: "#222", border: "none", borderRadius: "0" }), (0, i2.GC$)(".gc-filter-dialog-title", this.Wc[0]).css({ float: "left", height: "34px", lineHeight: "34px", display: gt, marginLeft: "15px" }), (0, i2.GC$)(".top10-show-text", this.Wc[0]).css({ float: "left" }), (0, i2.GC$)(".ui-dialog-hr", this.Wc[0]).css({ position: "absolute", left: "24px", right: "0", margin: "0 5px", height: "12px", borderBottom: At, borderWidth: "thin" }), (0, i2.GC$)("#top10-desc", this.Wc[0]).css({ height: "24px", lineHeight: "24px", marginLeft: "15px", position: A, fontSize: "10px" }), (0, i2.GC$)("#" + this.yrt, this.Wc[0]).css({ float: "right", fontSize: "18px", width: "36px", height: "34px", lineHeight: "34px", textAlign: "center" }), (0, i2.GC$)("#top10-rank", this.Wc[0]).css({ width: "120px", marginRight: "20px", height: "21px", textIndent: "5px", fontSize: "inherit", padding: "0", marginBottom: 0 }), (0, i2.GC$)(bt, this.Wc[0]).css({ width: "60px", textIndent: "5px", padding: 0, height: "21px", margin: 0, fontSize: "inherit", display: gt }), (0, i2.GC$)(".top10-wrap", this.Wc[0]).css({ padding: "0px 12px", textAlign: "right", color: "#9B9C9C", fontSize: "13px" }), (0, i2.GC$)(".top10-footer", this.Wc[0]).css({ padding: "20px 12px 12px" }), (0, i2.GC$)("#" + this.prt + ", #" + this.brt).css({ width: "75px", height: "23px", lineHeight: "21px", fontSize: "12px", backgroundColor: "#E1E1E1", border: Tt, padding: 0, display: gt }), (0, i2.GC$)("#" + this.prt, this.Wc[0]).css({ marginRight: "12px" });
          }, n3;
        })(En), Ln = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2) {
            var s2 = t3.call(this, n4, e3, i3, r2) || this, c2 = s2;
            return c2.YC = 416, c2.ZC = 100, c2.Crt = 36, c2.Srt = 24, c2.Trt = 8, c2.Art = 7, c2.frt = r2, c2.Irt = o2, c2.xrt = a2 ? 0 : 1, c2.vz = typeof u2 !== Bt && u2 ? Gn(u2) : u2, c2.Nrt = m, c2.krt = m, c2.Mrt(), s2;
          }
          return Bn(n3, t3), n3.prototype.Dn = function() {
            var t4, n4, e3 = this.Fot();
            this.Wc.append(e3), t4 = (0, i2.GC$)("#color-spread-wrap", this.Wc[0])[0], this.eU = this.Pot(), n4 = this.Got(t4), this.Uot(t4, n4), this.Fz(this.Nrt, this.krt);
          }, n3.prototype.Pot = function() {
            return ct;
          }, n3.prototype.Got = function(t4) {
            var n4 = this.Irt.colorNumber, e3, r2, o2 = false;
            return r2 = this.Crt * this.Art + 4, Math.ceil(n4 / this.Art) > this.Trt ? (e3 = this.Srt * this.Art, o2 = true, r2 += 20) : e3 = this.Srt * Math.ceil(n4 / this.Art), (0, i2.GC$)(t4).height(e3), (0, i2.GC$)(t4).width(r2), o2;
          }, n3.prototype.Hot = function(t4, n4, e3) {
            var r2, o2, a2;
            t4.suspendPaint(), r2 = t4.options, o2 = n4.options, r2.showHorizontalScrollbar = false, r2.allowContextMenu = false, r2.showVerticalScrollbar = e3, r2.scrollbarMaxAlign = true, r2.tabStripVisible = false, r2.allowUserResize = false, r2.allowUserDragDrop = false, r2.allowDragHeaderToMove = i2.AllowDragHeaderToMove.none, r2.allowUserDragFill = false, r2.allowUserZoom = false, r2.grayAreaBackColor = "#fff", o2.colHeaderVisible = false, o2.rowHeaderVisible = false, o2.selectionBackColor = dt, o2.selectionBorderColor = dt, o2.gridline = { showVerticalGridline: false, showHorizontalGridline: false }, o2.isProtected = true, n4.setColumnCount(this.Art + 2), a2 = this.Irt.colorNumber, n4.setRowCount(Math.ceil(a2 / this.Art) + 1), n4.defaults.rowHeight = 21, n4.defaults.colWidth = 36, n4.setColumnWidth(0, 2), n4.setColumnWidth(this.Art + 1, 2), n4.setRowHeight(0, 2), t4.resumePaint();
          }, n3.prototype.zot = function(t4, n4) {
            var e3, i3, r2, o2, a2;
            for (a2 in n4.suspendPaint(), e3 = (this.Art - this.Irt.colorNumber) * this.Crt / 2, n4.setColumnWidth(0, e3), this.Irt.data) this.Irt.data.hasOwnProperty(a2) && (i3 = (o2 = this.Vot(i3, r2)).row, r2 = o2.col, this.Yot(i3, r2, a2, n4));
            n4.resumePaint();
          }, n3.prototype.Yot = function(t4, n4, e3, i3) {
            var r2 = new u.Button();
            r2.buttonBackColor("{" === e3[0] ? JSON.parse(e3) : e3), r2.marginLeft(3), r2.marginTop(3), r2.marginRight(3), r2.marginBottom(3), i3.setCellType(t4, n4, r2, 3), e3 === this.vz && this.Zot(i3, t4, n4, this.eU);
          }, n3.prototype.Vot = function(t4, n4) {
            return t4 === b && n4 === b ? (t4 = 1, n4 = 1) : n4 < this.Art ? n4 += 1 : (t4 += 1, n4 = 1), { row: t4, col: n4 };
          }, n3.prototype.Wot = function(t4, n4) {
            var e3, i3, r2, o2;
            for (o2 in n4.suspendPaint(), e3 = b, i3 = b, this.Irt.data) this.Irt.data.hasOwnProperty(o2) && (e3 = (r2 = this.Vot(e3, i3)).row, i3 = r2.col, this.Yot(e3, i3, o2, n4));
            n4.resumePaint();
          }, n3.prototype.Zot = function(t4, n4, e3, r2) {
            var o2, a2;
            t4.suspendPaint(), this.Qot && ((o2 = t4.Z_(this.Qot.row, this.Qot.col, 3)).backColor = "#ffffff", o2.borderLeft = new i2.LineBorder(ft, i2.LineStyle.empty), o2.borderTop = new i2.LineBorder(ft, i2.LineStyle.empty), o2.borderRight = new i2.LineBorder(ft, i2.LineStyle.empty), o2.borderBottom = new i2.LineBorder(ft, i2.LineStyle.empty), t4.setStyle(this.Qot.row, this.Qot.col, o2, 3)), this.Qot = { row: n4, col: e3 }, (a2 = t4.Z_(n4, e3, 3)).backColor = r2, a2.borderLeft = new i2.LineBorder(ft, i2.LineStyle.thin), a2.borderTop = new i2.LineBorder(ft, i2.LineStyle.thin), a2.borderRight = new i2.LineBorder(ft, i2.LineStyle.thin), a2.borderBottom = new i2.LineBorder(ft, i2.LineStyle.thin), t4.setStyle(n4, e3, a2, 3), t4.resumePaint();
          }, n3.prototype.Uot = function(t4, n4) {
            var e3, r2 = new i2.Workbook(t4);
            r2.xU = true, e3 = r2.getActiveSheet(), this.Nrt = r2, this.krt = e3, this.Hot(r2, e3, n4), this.Irt.colorNumber < this.Art ? this.zot(r2, e3) : this.Wot(r2, e3);
          }, n3.prototype.Kot = function() {
            var t4, n4 = b;
            for (t4 in this.Irt.data) if (this.Irt.data.hasOwnProperty(t4)) {
              n4 = t4;
              break;
            }
            return "{" === n4[0] ? JSON.parse(n4) : n4;
          }, n3.prototype.Fot = function() {
            var t4, n4, e3, r2, o2, a2, u2 = (0, i2.GC$)(y("div")).addClass("gc-popup ui-widget " + ot + " " + N + " " + k);
            return u2.css({ backgroundColor: "#f0f0f0" }), t4 = this.Jot(), u2.append(t4), n4 = this.Xot(), u2.append(n4), e3 = (0, i2.GC$)(y("div")).css([Qt], ["0 12px"]), (r2 = this.qot()) !== b && e3.append(r2), o2 = this.$ot(), e3.append(o2), a2 = this.tat(), e3.append(a2), u2.append(e3), u2.append(this.nat()), u2;
          }, n3.prototype.Jot = function() {
            var t4 = (0, i2.GC$)(y("div")), n4 = (0, i2.GC$)(y("span")), e3 = (0, i2.GC$)(y("span")).attr("id", this.yrt);
            return t4.css([Zt, Wt, rn, Qt, zt], ["100%", "34px", "#fff", "0 0 0 12px", vt]), n4.css(["float", Wt, "lineHeight", Vt], [S, "34px", "34px", gt]).html(In().ColorTitle), e3.css(["float", Wt, "lineHeight", Vt, fn, Zt, "textAlign"], ["right", "34px", "34px", gt, "18px", "36px", "center"]).html("×").addClass(St), t4.append(n4), t4.append(e3), t4.addClass(Ht), t4;
          }, n3.prototype.Xot = function() {
            var t4 = (0, i2.GC$)(y("div")), n4 = (0, i2.GC$)(y("div")), e3;
            return 0 === this.xrt && this.frt === Q ? e3 = In().SortCell : 0 === this.xrt && this.frt === K ? e3 = In().FilterCell : 1 === this.xrt && this.frt === Q ? e3 = In().SortFont : 1 === this.xrt && this.frt === K && (e3 = In().FilterFont), t4.css(Qt, "0 12px"), n4.css([Wt, "lineHeight"], ["24px", "24px"]).html(e3), t4.append(n4), t4;
          }, n3.prototype.qot = function() {
            var t4, n4, e3, r2 = b;
            return this.Irt[J] !== b && (t4 = "" === this.vz, n4 = 1 === this.xrt ? In().Automatic : In().NoFill, (e3 = (0, i2.GC$)(y("div")).html(n4)).attr("id", "gc-color-dialog-noFill"), t4 ? (e3.attr(Ct, "checked"), e3.css([rn, Qt, Kt, "textAlign", "margin"], ["rgb(134,191,160)", "0 12px", Mt, "center", "5px 0"])) : e3.css([rn, Qt, Kt, "textAlign", "margin"], [dt, "0 12px", Mt, "center", "5px 0"]), r2 = e3), r2;
          }, n3.prototype.$ot = function() {
            var t4 = (0, i2.GC$)(y("div")).attr("id", "color-spread-wrap");
            return t4.css([rn, Qt, Kt, Zt, "box-sizing"], ["#fff", "6px", "1px solid rgb(160,160,160)", "288px", mt]), t4;
          }, n3.prototype.tat = function() {
            var t4, n4 = this, e3 = (0, i2.GC$)(y("div")), r2 = (0, i2.GC$)(y("div")).html(In().Selected), o2 = y("canvas"), a2 = (0, i2.GC$)(o2).attr("id", "gc-color-dialog-selected");
            return e3.css([j, Qt, zt, an, Wt], [A, "0 12px", mt, "12px 0", "16px"]), r2.css([x, Zt, "text-align"], [S, "60px", "center"]), t4 = 1 === n4.xrt ? lt : ht, n4.vz === b && (n4.vz = n4.Kot()), "" !== n4.vz && (t4 = n4.vz), a2.css([j, S, Kt], ["absolute", "70px", Mt]), o2.width = ln, o2.height = hn, n4.eat(a2, t4), e3.append(r2), e3.append(a2), e3;
          }, n3.prototype.eat = function(t4, n4) {
            var e3, r2, o2 = typeof n4 === Bt ? JSON.stringify(n4) : n4;
            t4.text(o2), e3 = t4[0].getContext("2d"), r2 = function() {
              e3.fillRect(0, 0, ln, hn);
            }, i2.W.setFillStyle(e3, "{" === o2[0] ? JSON.parse(o2) : o2, 0, 0, ln, hn, r2);
          }, n3.prototype.Rot = function() {
            var t4, n4 = (0, i2.GC$)(wt);
            return t4 = 1 === n4.length && "checked" === n4.attr(Ct) ? "" : this.vz, this.iat(t4), true;
          }, n3.prototype.iat = function(t4) {
            var n4 = 0 === this.xrt;
            this.frt === Q ? this.rat(t4, n4) : this.frt === K && this.oat(t4, n4);
          }, n3.prototype.rat = function(t4, n4, e3) {
            var r2, o2, a2 = this, u2 = a2.vrt, s2 = u2.rowFilter, c2 = a2.Mf;
            s2 && c2 && c2._B() && (e3 = e3 !== b && e3, r2 = u2.col, o2 = { sheet: c2, sheetName: c2.Zc, col: r2, ascending: e3, color: t4, isBackColor: n4, cancel: false }, c2.ki(i2.Events.RangeSorting, o2), false === o2.cancel && (c2.suspendPaint(), s2.sortColumnByColor(r2, e3, t4, n4), c2.resumePaint(), c2.ki(i2.Events.RangeSorted, o2)));
          }, n3.prototype.oat = function(t4, n4) {
            var e3 = new o.Condition(3), i3 = n4 ? 0 : 1;
            e3.compareType(i3), e3.expected(t4), this.tot(e3);
          }, n3.prototype.Fz = function(t4, n4) {
            var e3 = this;
            (0, i2.GC$)(wt).bind(Jt, (function() {
              var t5 = 1 === e3.xrt ? lt : ht;
              e3.eat((0, i2.GC$)(yt), t5), (0, i2.GC$)(this).css(rn, "rgb(134,191,160)"), (0, i2.GC$)(this).attr(Ct, "checked");
            })), t4.bind(i2.Events.ButtonClicked, (function(t5, r2) {
              var o2, a2 = r2.row, u2 = r2.col, s2 = n4.getCellType(a2, u2);
              e3.Zot(n4, a2, u2, e3.eU), o2 = s2.buttonBackColor(), e3.eat((0, i2.GC$)(yt), o2), (0, i2.GC$)(wt).css(rn, dt).attr(Ct, ""), e3.vz = o2;
            })), t4.bind(i2.Events.TouchToolStripOpening, (function(t5, n5) {
              n5.handled = true;
            })), e3.bindMoveEvent((0, i2.GC$)("." + Ht, e3.Wc[0])[0]);
          }, n3.prototype.nat = function() {
            var t4 = (0, i2.GC$)(y("div")), n4 = (0, i2.GC$)(y("input")).attr({ type: "button", value: In().OK, id: this.prt }), e3 = (0, i2.GC$)(y("input")).attr({ type: "button", value: In().Cancel, id: this.brt }).addClass(St), r2 = { width: "75px", height: "23px", lineHeight: "21px", fontSize: "12px", backgroundColor: "#E1E1E1", border: Tt, padding: "0", display: gt, margin: "0" };
            return t4.addClass("color-custom-footer").css({ textAlign: "right", padding: "10px 12px 12px" }), n4.css(r2).css({ marginRight: "12px" }), e3.css(r2), t4.append(n4[0]), t4.append(e3[0]), t4;
          }, n3;
        })(En), Fn = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2, s2, c2) {
            var f2 = t3.call(this, n4, e3, i3, r2) || this, l2 = f2;
            return l2.vrt = i3, l2.IB = l2.vrt.rowFilter, l2.frt = r2, l2.Drt = a2, l2._rt = o2, l2.Ert = u2, l2.jrt = c2, l2.Ort = s2, l2.Rrt(a2), l2.Mrt(), f2;
          }
          return Bn(n3, t3), n3.prototype.Dn = function() {
            var t4 = this, n4 = t4.aat(this.uY);
            t4.Wc.append(n4), (0, i2.GC$)(".gc-popup", this.Wc[0]).addClass("gc-spread-filter-custom-dialog"), t4.Fz();
          }, n3.prototype.Fz = function() {
            var t4 = this;
            (0, i2.GC$)(Ut).bind("change", (function() {
              var t5 = (0, i2.GC$)(this).find("option")[this.selectedIndex];
              (0, i2.GC$)(this).parent().find("input").val((0, i2.GC$)(t5).text()).attr("gc-data", (0, i2.GC$)(this).val());
            })), t4._rt.length > dn && (t4.Oot = function() {
              var n4, e3 = t4.uat;
              if (e3) for (n4 = 0; n4 < e3.length; n4++) e3[n4].workbook.destroy();
              t4.uat = null, (0, i2.GC$)("#first-condition-expected input, #sec-condition-expected input").remove(), (0, i2.GC$)(Ut).remove(), (0, i2.GC$)(".gc-filter-dialog-style").remove(), (0, i2.GC$)(".filter-custom-select-first-option").remove();
            }, (0, i2.GC$)(Ut).bind("mousedown", (function(n4) {
              var e3, r2, o2, a2;
              if (n4.preventDefault(), n4.stopPropagation(), e3 = (0, i2.GC$)(this).parent().find("div")[0], r2 = t4.uat, e3 && r2) for (o2 = "none" === e3.style.display, a2 = 0; a2 < r2.length; a2++) r2[a2].container === e3 ? (r2[a2].container.style.display = o2 ? "block" : "none", o2 && r2[a2].workbook.refresh()) : r2[a2].container.style.display = "none";
            })), (0, i2.GC$)(".gc-filter-dialog-style").bind("mousedown", (function(n4) {
              var e3, i3, r2 = t4.uat;
              for (i3 = 0; i3 < r2.length; i3++) (e3 = r2[i3].container).contains(n4.target) || (e3.style.display = "none");
            }))), (0, i2.GC$)(".filter-custom-select-first-option").bind("click", (function(t5) {
              t5.stopPropagation(), t5.preventDefault(), (0, i2.GC$)(this).parent().trigger("change");
            })), (0, i2.GC$)("#first-condition-expected input, #sec-condition-expected input").bind("change", (function() {
              var n4 = (0, i2.GC$)(this).val(), e3 = -1;
              t4._rt.forEach((function(t5, i3) {
                t5.text === n4 && (e3 = i3);
              })), "" === n4 && ((0, i2.GC$)(this).parent().find("select")[0].value = ""), (0, i2.GC$)(this).attr("gc-data", e3);
            })), t4.bindMoveEvent((0, i2.GC$)("." + Ht, t4.Wc[0])[0]), t4.Xc().bind("keydown", (function(n4) {
              "Escape" === n4.key && t4.close();
            }));
          }, n3.prototype.cat = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2 = t4.val(), s2 = t4.attr("gc-data");
            return 2 === n4 && -1 === Number(s2) ? u2 : ((r2 = this._rt[s2]) ? i3 = 2 === n4 ? r2.text : r2.value : 11 !== n4 || isNaN(Number(u2)) ? (o2 = {}, (a2 = new f()).getPreferredDisplayFormatter(u2, o2), i3 = o2.value) : i3 = parseFloat(u2), i3);
          }, n3.prototype.Rot = function() {
            var t4 = this, n4 = parseInt((0, i2.GC$)("#filter-logical-wrap input:checked").val(), 10), e3 = t4.fat(n4), r2 = false;
            return t4.tot(e3), e3 ? r2 = true : (0, i2.GC$)("#first-condition-type").focus(), r2;
          }, n3.prototype.aJ = function(t4, n4) {
            var e3, i3, r2, a2, u2 = t4.val().trim();
            return u2 ? (i3 = parseInt(u2.split("-")[0], 10), e3 = parseInt(u2.split("-")[1], 10), r2 = this.cat(n4, e3, i3), a2 = new o.Condition(e3), this.eot(r2) && a2.conType(2), a2.compareType(i3), "string" === v(r2) && (r2 = g(r2)), a2.expected(r2), a2.treatNullValueAsZero(false), a2.ignoreCase(true), "string" === v(r2) && -1 === r2.indexOf("*") && -1 === r2.indexOf("?") ? a2.useWildCards(false) : "string" !== v(r2) || -1 === r2.indexOf("*") && -1 === r2.indexOf("?") || (a2.conType(2), a2.useWildCards(true)), a2) : m;
          }, n3.prototype.fat = function(t4) {
            var n4, e3 = this.aJ((0, i2.GC$)("#first-condition-type"), (0, i2.GC$)("#first-condition-expected input")), r2 = this.aJ((0, i2.GC$)("#sec-condition-type"), (0, i2.GC$)("#sec-condition-expected input"));
            return e3 ? (r2 ? ((n4 = new o.Condition(0)).compareType(t4), n4.item1(e3), n4.item2(r2)) : n4 = e3, n4) : null;
          }, n3.prototype.hat = function() {
            var t4 = this.vrt, n4 = t4.rowFilter, e3 = this.Mf.getText(t4.row, t4.col);
            return n4 && n4.range.row <= 0 && (e3 = this.Mf.getText(t4.row, t4.col, t4.sheetArea)), e3;
          }, n3.prototype.aat = function(t4) {
            var n4, e3, r2, o2, a2, u2, s2;
            return this.uat = [], n4 = this.hat(), (e3 = (0, i2.GC$)(y("div")).addClass("gc-popup ui-widget " + N)).css({ backgroundColor: "#f0f0f0" }), e3.append(this.dat()), e3.append(this.vat(n4)), r2 = this.mat("first-condition-type", "first-condition-expected", t4.compareType1 || 0, t4.expected1, t4.conType1, true), e3.append(r2), e3.append(this.gat(t4.logic)), o2 = this.mat("sec-condition-type", "sec-condition-expected", t4.compareType2, t4.expected2, t4.conType2), e3.append(o2), a2 = (0, i2.GC$)(y("div")), u2 = (0, i2.GC$)(y("p")).html(In().Explain1).css({ margin: "0", lineHeight: "initial", backgroundColor: dt }), s2 = (0, i2.GC$)(y("p")).html(In().Explain2).css({ margin: "0", lineHeight: "initial", backgroundColor: dt }), a2.append(u2), a2.append(s2), a2.css({ fontSize: "10px", textIndent: "12px" }), e3.append(a2), e3.append(this.pat()), e3;
          }, n3.prototype.mat = function(t4, n4, e3, r2, o2, a2) {
            var u2 = (0, i2.GC$)(y("div")), s2;
            return u2.addClass("gc-spread-filter-dialog-condition"), u2.append(this.bat(e3, o2, a2).attr("id", t4)), s2 = this._rt.length > dn ? this.yat(this._rt, r2).attr("id", n4) : this.wat(this._rt, r2).attr("id", n4), u2.append(s2), u2;
          }, n3.prototype.dat = function() {
            var t4 = '\n            <div class="gc-spread-filter-dialog-title">\n                <span class="gc-spread-filter-dialog-title-text">'.concat(In().CustomTitle, '</span>\n                <span id="').concat(this.yrt, '" class="gc-spread-filter-dialog-title-close ').concat(St, '">').concat("×", "</span>\n            </div>\n        ");
            return (0, i2.GC$)(l(t4));
          }, n3.prototype.gat = function(t4) {
            var n4 = (0, i2.GC$)(y("div")), e3 = (0, i2.GC$)(y("input")).attr({ name: "filter-logical", id: "filter-dialog-and", type: "radio" }).val(1).css([Zt, Vt], ["unset", gt]), r2 = (0, i2.GC$)(y("input")).attr({ name: "filter-logical", id: "filter-dialog-or", type: "radio" }).val(0).css([Zt, Vt], ["unset", gt]), o2 = (0, i2.GC$)(y("label")).attr({ for: "filter-dialog-and" }).html(In().And).css([cn, "font-weight", fn, Vt, "margin-bottom", Qt], ["10px", "inherit", "13px", gt, "0", "0"]), a2 = (0, i2.GC$)(y("label")).attr({ for: "filter-dialog-or" }).html(In().Or).css([cn, "font-weight", fn, Vt, "margin-bottom", Qt], ["10px", "inherit", "13px", gt, "0", "0"]);
            return n4.attr("id", "filter-logical-wrap"), n4.css({ padding: "0 0 0 40px", height: "30px" }), 0 === t4 ? (r2.prop("checked", true), e3.prop("checked", false)) : (r2.prop("checked", false), e3.prop("checked", true)), n4.append(e3), n4.append(o2), n4.append(r2), n4.append(a2), n4;
          }, n3.prototype.vat = function(t4) {
            var n4, e3, r2, o2 = (0, i2.GC$)(y("div")), a2 = (0, i2.GC$)(y("div")).html(In().ShowRows);
            return o2.css(Qt, "0 12px"), a2.css([Wt, "lineHeight"], ["24px", "24px"]), o2.append(a2), n4 = (0, i2.GC$)(y("div")), e3 = (0, i2.GC$)(y("div")), t4 ? ((r2 = (0, i2.GC$)(y("div")).html(p(t4))).css([x, "maxWidth", "textOverflow", "whiteSpace", "overflow"], [S, "300px", "ellipsis", "nowrap", "hidden"]), n4.css({ height: "24px", lineHeight: "24px", marginLeft: "15px", fontSize: "10px" }), e3.css({ overflow: "hidden", margin: "0 5px", height: "12px", borderBottom: At, borderWidth: "thin" }), n4.append(r2)) : (n4.css({ height: "12px", lineHeight: "2px", marginLeft: "15px", fontSize: "10px" }), e3.css({ margin: "0 5px", height: "2px", borderBottom: At, borderWidth: "thin" })), n4.append(e3), o2.append(n4), o2;
          }, n3.prototype.bat = function(t4, n4, e3) {
            var r2, o2, a2, u2, s2, c2, f2 = [], l2 = false;
            for (f2 = 6 === this.Ert || 5 === this.Ert ? xn : 1 === this.Ert ? Sn : Tn, r2 = t4 === b ? '<option selected="selected" >&nbsp;</option>' : "<option>&nbsp;</option>", u2 = false, s2 = 0; s2 < f2.length; s2++) a2 = false, (o2 = f2[s2].split("-"))[2] && (u2 = false, (n4 === parseInt(o2[2], 10) || 6 === this.jrt && 5 === parseInt(o2[2], 10) || 11 === parseInt(o2[2], 10) || n4 === parseInt(o2[3], 10)) && (u2 = true), u2 && t4 === parseInt(o2[1], 10) && (a2 = true)), a2 && (l2 = true), r2 += "<option ".concat(a2 ? 'selected="selected"' : "", ' value="').concat(o2[1] + "-" + o2[2], '" style="height:20px">').concat(In()[o2[0]], "</option>");
            return (c2 = (0, i2.GC$)(y("select"))).addClass("gc-spread-filter-dialog-custom-select"), c2[0].innerHTML = r2, !l2 && e3 && (0, i2.GC$)((0, i2.GC$)("option", c2[0])[1]).attr("selected", "selected"), c2;
          }, n3.prototype.Mat = function(t4) {
            var n4 = p(t4);
            return n4 && n4.length > 100 && (n4 = n4.substr(0, 100) + "..."), n4;
          }, n3.prototype.wat = function(t4, n4) {
            var e3, r2, o2, a2, u2, s2 = -1, c2 = n4, f2 = "", p2 = true, g2 = In().Blanks;
            for (r2 = 0; r2 < t4.length; r2++) t4[r2].text === g2 && t4[r2].value === m || (o2 = this.Mat(t4[r2].text), "date" === v(t4[r2].value) && (e3 || (e3 = h.Fe(h.culture()).DateTimeFormat), o2 = d.Pe(t4[r2].value, e3.shortDatePattern)), t4[r2].value + "" == n4 + "" && (s2 = r2, c2 = o2), o2 = o2.replace(/\s/g, "&nbsp;"), p2 ? (f2 += '<option class="filter-custom-select-first-option" value="' + r2 + '">' + o2 + "</option>", p2 = !p2) : f2 += '<option value="' + r2 + '">' + o2 + "</option>");
            return "date" === v(c2) && (e3 || (e3 = h.Fe(h.culture()).DateTimeFormat), c2 = d.Pe(c2, e3.shortDatePattern)), a2 = '\n            <div class="gc-spread-filter-dialog-value-select-wrap">\n                <select class="filter-custom-select-input gc-spread-filter-dialog-value-select">'.concat(f2, '</select>\n                <input class="gc-spread-filter-dialog-value-select-input" gc-data=').concat(s2, "></input>\n            </div>\n        "), (u2 = (0, i2.GC$)(l(a2))).find(".gc-spread-filter-dialog-value-select-input").val(c2), u2.find(".gc-spread-filter-dialog-value-select")[0].selectedIndex = -1, u2;
          }, n3.prototype.yat = function(t4, n4) {
            var e3, r2, o2 = n4, a2 = '\n            <div class="gc-spread-filter-dialog-value-select-wrap">\n                <div class="gc-spread-filter-dialog-value-select-spread"></div>\n                <select class="filter-custom-select-input gc-spread-filter-dialog-value-select">\n                    <option value="0">0</option>\n                </select>\n                <input class="gc-spread-filter-dialog-value-select-input"></input>\n            </div>\n        ', u2 = (0, i2.GC$)(l(a2)), s2 = u2.find(".gc-spread-filter-dialog-value-select-input"), c2 = u2.find(".gc-spread-filter-dialog-value-select-spread");
            return c2.css(Vt, Yt), r2 = function(t5) {
              s2.val(t5);
            }, this.Cat(c2[0], t4, n4, r2), "date" === v(o2) && (e3 || (e3 = h.Fe(h.culture()).DateTimeFormat), o2 = d.Pe(o2, e3.shortDatePattern)), r2(o2), u2;
          }, n3.prototype.Cat = function(t4, n4, e3, r2) {
            var o2, a2, u2, s2, c2, f2 = new i2.Workbook(t4, { allowContextMenu: false, showHorizontalScrollbar: false, showVerticalScrollbar: true, scrollbarMaxAlign: true, tabStripVisible: false, allowUserResize: false, allowUserDragDrop: false, allowDragHeaderToMove: i2.AllowDragHeaderToMove.none, allowUserDragFill: false, allowUserZoom: false, grayAreaBackColor: "white", sheetCount: 1 });
            this.uat.push({ container: t4, workbook: f2 }), a2 = (o2 = f2.getActiveSheet()).options, o2.suspendPaint(), a2.colHeaderVisible = false, a2.rowHeaderVisible = false, a2.selectionBackColor = "transparent", a2.selectionBorderColor = "transparent", a2.gridline = { showVerticalGridline: false, showHorizontalGridline: false }, a2.isProtected = true, o2.defaults.rowHeight = 17, o2.defaults.colWidth = 540, o2.setRowCount(n4.length), (u2 = new i2.Style()).foreColor = "white", u2.backColor = "#1E90FF", s2 = new i2.Range(-1, 0, -1, 1), o2.cellStates.add(s2, 1, u2), o2.autoGenerateColumns = false, o2.bindColumn(0, "text"), o2.setDataSource(n4), o2.setColumnCount(1), o2.bind(i2.Events.CellClick, (function(n5, e4) {
              t4.style.display = "none";
              var i3 = e4.sheet.getValue(e4.row, e4.col);
              r2(i3);
            })), (c2 = new i2.Style()).vAlign = 1, o2.setStyle(-1, 0, c2), o2.resumePaint();
          }, n3.prototype.pat = function() {
            var t4 = (0, i2.GC$)(y("div")), n4 = (0, i2.GC$)(y("input")).attr({ type: "button", value: In().OK, id: this.prt }), e3 = (0, i2.GC$)(y("input")).attr({ type: "button", value: In().Cancel, id: this.brt }).addClass(St), r2 = { width: "75px", height: "23px", lineHeight: "21px", fontSize: "12px", backgroundColor: "#E1E1E1", border: Tt, padding: 0, display: gt };
            return t4.addClass("custom-footer").css({ textAlign: "right", padding: "10px 12px 12px" }), n4.css(r2).css({ marginRight: "12px" }), e3.css(r2), t4.append(n4[0]), t4.append(e3[0]), t4;
          }, n3.prototype.Rrt = function(t4) {
            var n4 = this, e3 = n4.IB.rrt[n4.vrt.col], i3 = { conType1: 2, conType2: b, compareType1: 0, compareType2: b, expected1: b, expected2: b, logic: 1 };
            e3 = e3 && e3.length && e3[0] instanceof o.Condition ? e3[0] : m, n4.uY = n4.Sat(i3, t4, e3);
          }, n3.prototype.Tat = function(t4, n4) {
            var e3, i3, r2 = h.Fe(h.culture()).DateTimeFormat, o2 = {}, a2 = t4.expectTypeId();
            if (0 === a2) o2 = t4.getExConditionDateScope(t4.expected());
            else if (6 === a2) e3 = /* @__PURE__ */ new Date(), i3 = /* @__PURE__ */ new Date(), e3.setMonth(0, 1), e3.setHours(0, 0, 0, 0), i3.setHours(23, 59, 59, 999), o2 = { from: e3, to: i3 };
            else if (3 === a2) return n4.conType1 = this.jrt, n4.compareType1 = this.Ort, n4.expected1 = b, n4;
            return n4.conType1 = 5, n4.conType2 = 5, n4.compareType1 = 5, n4.compareType2 = 2, n4.expected1 = d.Pe(o2.from, r2.shortDatePattern), n4.expected2 = d.Pe(o2.to, r2.shortDatePattern), n4;
          }, n3.prototype.Sat = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2 = e3 && (e3.conType() === this.Ert || 11 === e3.conType() && (1 === this.Ert || 2 === this.Ert)), c2 = e3 && (e3.compareType() === this.Ort || 0 === e3.conType());
            return !e3 || 1 !== n4 || 6 !== e3.conType() || 0 !== e3.expectTypeId() && 6 !== e3.expectTypeId() && 3 !== e3.expectTypeId() ? (i3 = true, 1 === this.jrt && e3 && 0 === e3.conType() && (r2 = e3.item1().compareType(), o2 = e3.item2().compareType(), 5 === Math.max(r2, o2) && 3 === Math.min(r2, o2) || (i3 = false)), 1 === n4 || s2 && c2 && i3 ? e3 && 0 === e3.conType() ? (this.Ert = this.jrt, t4.conType1 = e3.item1().conType(), t4.conType2 = e3.item2().conType(), t4.compareType1 = e3.item1().compareType(), t4.compareType2 = e3.item2().compareType(), t4.expected1 = e3.item1().expected(), t4.expected2 = e3.item2().expected(), t4.logic = e3.compareType()) : e3 && 0 !== e3.conType() && 3 !== e3.conType() && (a2 = e3.compareType(), u2 = e3.conType(), t4.conType1 = u2, t4.expected1 = e3.expected(), t4.compareType1 = a2) : 0 === this.Ert ? (this.Ert = this.jrt, 1 === this.jrt ? (t4.conType1 = 1, t4.conType2 = 1, t4.compareType1 = 3, t4.compareType2 = 5) : 5 === this.jrt && (t4.conType1 = 5, t4.compareType1 = 5, t4.conType2 = 5, t4.compareType2 = 3)) : 1 === this.Ert && this.Aat(e3) ? (t4.conType1 = this.jrt, t4.compareType1 = this.Ort, t4.expected1 = e3.expected()) : (t4.conType1 = this.jrt, t4.compareType1 = this.Ort, t4.expected1 = b), t4) : this.Tat(e3, t4);
          }, n3.prototype.eot = function(t4) {
            return t4 !== b && "TRUE" === t4 || "FALSE" === t4;
          }, n3.prototype.Aat = function(t4) {
            if (!t4) return false;
            var n4 = false, e3 = t4.expected();
            return 1 === t4.conType() && this.eot(e3) && (n4 = true), n4;
          }, n3;
        })(En);
      }, "./dist/plugins/filter/filter-ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/filter/filter.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/filter/filter-ui.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn = this && this.qKr || (xn = function(t3, n3) {
          return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, xn(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          xn(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), xn;
        function An(t3, n3) {
          (0, r.GC$)(t3).addClass(n3);
        }
        function In(t3, n3) {
          return "object" == typeof t3 ? JSON.stringify(t3) : (t3 = n3.getColor(t3), i2.Common.ft.j(i2.Common.ft._(t3)));
        }
        function kn(t3, n3, e3, i3, r2) {
          if (t3) {
            var o2 = void 0;
            "string" == typeof t3 ? (o2 = r2[t3]) === Zt && (o2 = r2[t3] = In(t3, e3)) : o2 = JSON.stringify(t3), n3.data[o2] === Zt && n3.colorNumber++, n3.data[o2] = i3;
          } else n3[Wt] = Wt;
        }
        function Nn(t3, n3) {
          (0, r.GC$)(t3).removeClass(n3);
        }
        function jn(t3, n3, e3) {
          t3.css([Ct, St], [n3 + q, e3 + q]);
        }
        function Dn(t3) {
          (0, r.GC$)(t3).css([Tt, pt, bt, "outline"], [0, 0, 0, Mt]);
        }
        function _n(t3) {
          return t3.concat([]);
        }
        function On(t3, n3) {
          var e3, o2, a2, u2, s2, c2, f2;
          if (w(t3) || "" === t3 || "number" == typeof t3 && isNaN(t3)) return "blank";
          if (e3 = Ft(t3), o2 = "number" == typeof t3, "General" === n3 || w(n3)) {
            if (e3) return "date";
          } else {
            if (!h(n3) && (e3 || o2)) return a2 = /d|D|m|M|y|Y|z|Z|g|G|e/, s2 = (u2 = n3 instanceof i2.Formatter.FormatterBase) ? n3 : new i2.Formatter.GeneralFormatter(n3), c2 = En(c2 = u2 ? n3.formatString() : n3), (f2 = a2.test(c2) && !(s2.hasFormattedColor && s2.hasFormattedColor()) && !("General" === c2 || "" === c2 || void 0 === c2)) ? "date" : "number";
            if (r.mt.VYr(t3)) return "calc_error";
          }
          return Rt(t3);
        }
        function En(t3) {
          var n3, e3;
          return t3 ? (n3 = /AM\/PM/gi, e3 = /:mm|:m|mm:|m:/gi, t3 = (t3 = t3.replace(n3, "")).replace(e3, "")) : t3;
        }
        function Rn(t3) {
          var n3, e3, i3, r2 = "", o2 = false;
          for (n3 = 0, e3 = t3.length; n3 < e3; n3++) '"' === (i3 = t3[n3]) && (o2 = !o2), "E" === i3 || o2 || (r2 += i3.toLowerCase());
          return r2;
        }
        function Ln(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2;
          if (n3 && t3) return c2 = [], (o2 = t3.format(e3)) && (a2 = (f2 = o2.split("/"))[0] || "", u2 = f2[1] || "", s2 = f2[2] || ""), c2.push({ value: a2, level: 0, status: i3 }), c2.push({ value: u2, level: 1, status: i3 }), c2.push({ value: s2, level: 2, status: i3 }), { key: n3, value: e3, children: c2, status: i3, type: r2 };
        }
        function Fn(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2;
          if (n3) return (s2 = []).push({ value: n3, level: t3.outlineColumn && t3.outlineColumn.Un(r2) ? t3.getCell(i3, r2).textIndent() : 0, status: o2 }), (c2 = t3.NMi) && c2._Ni && t3.outlineColumn && t3.outlineColumn.Un(r2) && (s2[0].level = c2._Ni(i3, r2), w(u2) || (s2[0].status = o2 = bn[!u2])), { key: n3, value: e3, children: s2, status: o2, type: a2 };
        }
        function Bn(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
          if (w(t3) && (t3 = ""), (e3 = (n3 = new i2.Formatter.GeneralFormatter(t3)).formatters) && !(e3.length <= 0) && (r2 = e3[0])) return a2 = (o2 = i2.Common.CultureManager.getCultureInfo()) && o2.id, u2 = r2.localeIDFormatPart, s2 = r2.dbNumberFormatPart, c2 = u2 && u2.Iat || a2, f2 = i2.Common.CultureManager.xat(c2, Rn(t3)), l2 = u2 && u2.Nat || "", h2 = s2 && s2.Nat || "", new i2.Formatter.GeneralFormatter(h2 + l2 + f2);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.iut = n2.rut = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/filter/filter-dialog.js"), a = e2("ConditionalFormatting"), u = e2("CellTypes"), s = e2("./dist/plugins/filter/filter.js"), c = e2("./dist/plugins/filter/filter-button-images.js"), f = e2("./dist/plugins/filter/filter-ns.js"), l = i2.Common.$T, h = r.mt.St, d = i2.Common.zf.j0, v = i2.Formatter.Hf, p = r.mt.En, g = r.mt, m = g.vi, b = i2.Common.Uf.tR, y = null, w = i2.Common.lt.ht, M = parseFloat, C = r.GC$.inArray, S = "gc-sortASC", T = "gc-sortDES", x = "gc-filterOK", A = "gc-filterCancel", I = "gc-filterSearch", k = "gc-filterCheckAll", N = "gc-filterUnCheckAll", j = "gc-filter-item-container", _ = "gc-filter-button", O = "gc-filter-item-link ", E = "gc-filter-sort", L = "gc-filter-button-hover " + (R = "ui-state-hover "), P = (D = "gc-filter-hover") + " form-control well " + (B = R + (F = "gc-filter-item-hover")), G = " ui-corner-all ", U = "ui-button-disabled", H = " ui-state-disabled", V = "gc-filter-button-disable", z = "gc-sub-color-filter", Y = "gc-sub-content-flter", Z = "gc-sub-color-sort", W = "gc-no-user-select", Q = " gc-filter-check", K = "gc-filter-check-outerDiv", J = "gc-filter-button-active", X = ".ui-filter-dialog", q = "px", $ = "font-size", tt = "string", nt = "mouseout", et = "click", it = "keydown", rt = "keyup", ot = "search", at = "input", ut = "span", st = "div", ct = "button", ft = "DOMMouseScroll", lt = "mousewheel", ht = "mousedown", dt = "mouseover", vt = "mouseup", gt = (pt = "margin") + "Left", mt = pt + "Top", yt = (bt = "padding") + "Top", wt = "display", Mt = "none", Ct = "width", St = "height", Tt = "border", xt = "position", At = "absolute", It = "background-color", kt = "left", Nt = "top", jt = "box-sizing", Dt = "content-box", _t = "block", Ot = "gc-filter-button-container", Et = "gc-filter-dialog-resizable", Rt = i2.Common.lt.Oh, Lt = i2.Common.ct.Y0, Ft = i2.Common.ct.W0, Bt = "gc-sortASC-tr", Pt = "gc-sortDEC-tr", Gt = "gc-sort-color-tr", Ut = "clear_filter", Ht = "gc-color-filter", Vt = "gc-major_filter", zt = "gc-search-tr", Yt = "gc-filter-function-tr", Zt = void 0, Wt = "automatic", Qt = "gc-async-process-tr", Kt = "TextFilter", Jt = "NumberFilter", Xt = "DateFilter", qt = "gc-filter-choose-area", $t = "filter-button-tr", tn = "gc-filter-dialog-style", nn = "gc-sortColor", en = "gc-filter-color", rn = "gc-clearFilter", on = "gc-majorFilter", an = "gc-filterDialog-rightArrow", un = "gc-filter-disable-item", sn = 500, cn = 100, fn = 20, ln = 10, hn = 30, dn = 5e4, vn = 237, pn = 410, gn = 191, mn = 150, (function(t3) {
          t3[t3.true = 1] = "true", t3[t3.false = 2] = "false", t3[t3[void 0] = 2] = "undefined", t3[t3.null = 3] = "null";
        })(bn || (bn = {})), (function(t3) {
          t3[t3.false = 0] = "false", t3[t3.true = 1] = "true";
        })(yn || (yn = {})), wn = new i2.Common.ResourceManager(f.SR, "Filter"), Mn = wn.getResource.bind(wn), Cn = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2 = this;
            s2.rowFilter = t4, s2.row = n3, s2.col = e3, s2.sheetArea = i3, s2.x = r2, s2.y = o2, s2.width = a2, s2.height = u2;
          }
          return t3.prototype.jt = function() {
            var t4 = this, n3 = t4.rowFilter, e3 = t4.col, i3 = n3.getSortState(e3);
            return n3 ? n3.isFiltered(e3) ? [3, 4, 5][i3] : i3 : 0;
          }, t3;
        })(), n2.rut = Cn, Sn = (function(t3) {
          function n3(n4, e3, i3, o2, a2) {
            var u2, s2 = this, c2 = e3.parent;
            return (s2 = t3.call(this, n4, g.gi(c2 && c2.Ti)) || this).ter = r.DialogFeatureType.filter, (u2 = s2).kat = {}, u2._rt = [], u2.Dat = [], u2._at = [], u2.Eat = [], u2.jat = [], u2.Oat = [], u2.Rat = [], u2.Bat = false, u2.Lat = 0, u2.Fat = false, u2.Pat = { Number: 0, Text: 0, Date: 0 }, u2.Gat = "", u2.Uat = y, u2.sheet = e3, u2.filterButtonInfo = i3, u2.Vat = 26, u2.Yat = gn, u2.Zat = mn, u2.Wat = 1.2, u2.Hat = vn, u2.zat = pn, a2 && (u2.Zue = g.w1({}, a2)), u2.rEscape = /[\-\[\]{}()+.,\\\^$|#\s]/g, u2.elementList = [], u2.activeItemIndex = y, u2.Wc = u2.Xc(), u2.Qat = u2.Kat(), u2.Jat = u2.Xat(), u2.qat = o2, u2.$at = u2.tut(), u2.nut(), u2.eut(), s2;
          }
          return Tn(n3, t3), n3.prototype.tut = function() {
            var t4 = this, n4 = [], e3 = this.qat, i3 = t4.zat, r2 = t4.Vat;
            return e3.sortByValue ? n4 = n4.concat([1, 1]) : (n4 = n4.concat([0, 0]), i3 -= 2 * r2), e3.sortByColor ? n4 = n4.concat([1]) : (n4 = n4.concat([0]), i3 -= r2), true === e3.filterByValue || true === e3.filterByColor ? n4 = n4.concat([1]) : (n4 = n4.concat([0]), i3 -= r2), true === e3.filterByColor ? n4 = n4.concat([1]) : (n4 = n4.concat([0]), i3 -= r2), true === e3.filterByValue ? n4 = n4.concat([1]) : (n4 = n4.concat([0]), i3 -= r2), true === e3.listFilterArea ? n4 = n4.concat([1, 1, 1, 1]) : (n4 = n4.concat([0, 0, 0, 0]), i3 -= 254), t4.zat = i3, n4;
          }, n3.prototype.rQ = function(t4) {
            var n4, e3 = this, i3 = e3.sheet.parent, o2 = e3.filterButtonInfo, a2 = e3.qat, u2 = e3.Wc;
            e3.aut = !!i3 && i3.options.useTouchLayout, (a2.filterByValue || a2.listFilterArea || a2.sortByColor || a2.filterByColor) && (e3.uut(o2.col), e3.sut(), e3.fut(), e3.lut()), 1 === (0, r.GC$)("#" + Vt).length && (e3.hut = e3.dut((0, r.GC$)("#" + Vt)[0].children[2]), e3.hut.Vrt(e3.Gat).Hc()), 1 === (0, r.GC$)("#" + Ht).length && (e3.vut = e3.mut((0, r.GC$)("#" + Ht)[0].children[2], z), e3.vut.Hc()), 1 === (0, r.GC$)("#" + Gt).length && (e3.gut = e3.mut((0, r.GC$)("#" + Gt)[0].children[2], Z), e3.gut.Hc()), u2.hide(), e3.$c((function() {
              e3.elementList.length > 0 && (0, r.GC$)(e3.elementList[0]).focus();
            })), e3.put(e3.aut), (n4 = o2.x + o2.width - vn - 6) < 5 && (n4 = 5), u2.css([kt, Nt], [n4, o2.y + o2.height]), e3.if(t4), e3.use(), e3.aY(), e3.but(), setTimeout((function() {
              e3.Wc.focus();
            })), e3.sheet.rt.u2();
          }, n3.prototype.if = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Wc;
            0 !== p2.length && (n4 = v2.sheet.parent, e3 = v2.filterButtonInfo, i3 = n4.getHost().getBoundingClientRect(), r2 = p2[0].getBoundingClientRect(), o2 = parseInt(p2.css("left"), 10), a2 = parseInt(p2.css("top"), 10), u2 = r2.width, s2 = r2.height, isNaN(o2) || isNaN(a2) || isNaN(u2) || isNaN(s2) || (c2 = 0, f2 = i3.height, l2 = false, h2 = g.T0(p2[0], document.documentElement).A0, "number" == typeof t4 && (d2 = h2 + s2) > t4 && (a2 + s2 > f2 && (c2 = a2 + s2 - f2), c2 > 0 && (e3.y - s2 > 0 ? a2 = e3.y - s2 : (a2 -= c2, l2 = true))), a2 < 0 && !l2 && (a2 = 0), p2.css({ left: o2 + "px", top: a2 + "px" })));
          }, n3.prototype.yut = function() {
            if (1 === (0, r.GC$)("#" + Vt).length) {
              var t4 = (0, r.GC$)("#" + Vt)[0];
              (0, r.GC$)(t4).addClass(un + H);
            }
          }, n3.prototype.sut = function() {
            var t4 = this;
            t4.itemList && t4.itemList.length > 0 ? t4.wut(t4.dataSource) : t4.sheet.endEdit();
          }, n3.prototype.put = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this;
            t4 && (n4 = w2.Hat * w2.Wat, e3 = w2.zat * w2.Wat, i3 = n4 - w2.Hat, o2 = e3 - w2.zat, jn(w2.Wc, n4, e3), a2 = (0, r.GC$)("." + E), u2 = M(a2.css(yt)) + o2 / 30, a2.css(bt, u2 + q + " 6px"), w2.qat.listFilterArea && (s2 = (0, r.GC$)("." + _), c2 = M(s2.css(Ct)) + i3 / 4, f2 = M(s2.css(St)) + o2 / 8, l2 = (0, r.GC$)("#" + x), h2 = M(l2.css(gt)) + i3 / 2, d2 = (0, r.GC$)("#" + I), v2 = M(d2.css(Ct)) + i3, p2 = M(d2.css(St)) + o2 / 8, g2 = (0, r.GC$)("." + K), m2 = M(g2.css(mt)) + o2 / 10, b2 = (0, r.GC$)("#" + N), y2 = M(b2.css(gt)) + i3, jn(s2, c2, f2), l2.css(gt, h2 + q), jn(d2, v2, p2), g2.css(mt, m2 + q), b2.css(gt, y2 + q)));
          }, n3.prototype.close = function() {
            var n4, e3 = this, i3 = e3.sheet;
            e3.Wue && e3.Wue.disconnect(), e3.Wue = y, (null === (n4 = e3.Zue) || void 0 === n4 ? void 0 : n4.keepDialogSize) && e3.qat.listFilterArea && (e3.filterButtonInfo.rowFilter.dialogOptions = g.w1({}, g.w1(e3.Zue, { dialogWidth: e3.Wc[0].clientWidth, dialogHeight: e3.Wc[0].clientHeight }))), e3.Wc.hide(), e3.Mut && (e3.Mut.L0(), e3.Mut = null), t3.prototype.close.call(e3), (0, r.GC$)(e3.zJr).remove(), (0, r.GC$)(e3.YJr).remove(), i3.Cut = null, i3 && i3.rt && i3.rt.aA();
          }, n3.prototype.Sut = function() {
            1 === (0, r.GC$)("#" + Bt).length && this.Tut(), 1 === (0, r.GC$)("#" + Gt).length && this.Aut();
          }, n3.prototype.Tut = function() {
            var t4 = this, n4 = t4.elementList, e3 = t4.Iut(S, Mn().SortAscending), i3 = t4.Iut(T, Mn().SortDescending), o2 = (0, r.GC$)("#" + Bt)[0], a2 = (0, r.GC$)("#" + Pt)[0];
            (0, r.GC$)(o2.children[0]).append((0, r.GC$)(p("img")).attr("src", (0, c.getFilterButtonImageSrc)(6))), (0, r.GC$)(a2.children[0]).append((0, r.GC$)(p("img")).attr("src", (0, c.getFilterButtonImageSrc)(7))), (0, r.GC$)(o2.children[1]).append(e3), (0, r.GC$)(a2.children[1]).append(i3), n4.push(o2), n4.push(a2);
          }, n3.prototype.Aut = function() {
            var t4 = this, n4 = t4.elementList, e3 = t4.Iut(nn, Mn().SortColor), i3 = (0, r.GC$)("#" + Gt)[0], o2 = t4.xut(), a2 = this.Nut(o2), u2 = (0, r.GC$)(p("span"));
            u2.addClass(an), (0, r.GC$)(i3.children[0]).append(a2), (0, r.GC$)(i3.children[1]).append(e3), (0, r.GC$)(i3.children[2]).append(u2), n4.push(i3);
          }, n3.prototype.kut = function(t4) {
            var n4, e3 = this, i3 = e3.elementList, o2 = e3.Iut(en, Mn().FilterColor), a2 = (0, r.GC$)("#" + Ht)[0], u2 = (0, r.GC$)(p("span"));
            u2.addClass(an), n4 = this.Nut(t4.isShowColorFilterSelect), (0, r.GC$)(a2.children[0]).append(n4), (0, r.GC$)(a2.children[1]).append(o2), (0, r.GC$)(a2.children[2]).append(u2), i3.push(a2);
          }, n3.prototype.Dut = function(t4) {
            var n4, e3, i3 = this, o2 = i3.sheet, a2 = i3.filterButtonInfo.col, u2 = i3.Nut(t4.isShowMajorCheck), s2 = (0, r.GC$)("#" + Vt)[0], c2 = o2.outlineColumn && o2.outlineColumn.Un(a2);
            c2 && (0, r.GC$)(s2).addClass(un + H), (0, r.GC$)(s2.children[0]).append(u2), (n4 = i3.Iut(on, "")).appendTo(s2.children[1]), (e3 = (0, r.GC$)(p("span"))).addClass(an), (0, r.GC$)(s2.children[2]).append(e3), i3.elementList.push(s2);
          }, n3.prototype._ut = function() {
            var t4, n4, e3, i3, o2 = 1 === (0, r.GC$)("#" + Ht).length, a2 = 1 === (0, r.GC$)("#" + Vt).length;
            (o2 || a2) && (n4 = (t4 = this).elementList, e3 = (0, r.GC$)("#" + Ut)[0], t4.Eut(e3), n4.push(e3), i3 = t4.jut(), o2 && t4.kut(i3), a2 && t4.Dut(i3));
          }, n3.prototype.Out = function() {
            var t4 = this;
            t4.qat.listFilterArea && (t4.Rut(), t4.But(), t4.Lut(), t4.Fut());
          }, n3.prototype.Fut = function() {
            var t4 = _ + " gc-filter-button-default ui-button ui-state-default" + G + "btn btn-default", n4 = (0, r.GC$)("#" + $t)[0], e3 = p(ct), i3 = p(ct), o2 = (0, r.GC$)(e3).text(Mn().OK).css($, "1em").attr("id", x), a2 = (0, r.GC$)(i3).text(Mn().Cancel).css($, "1em").attr("id", A);
            An(e3, t4), An(i3, t4), (0, r.GC$)(n4.children[1]).append(o2).append(a2).addClass(Ot), this.elementList.push(e3), this.elementList.push(i3);
          }, n3.prototype.But = function() {
            var t4, n4, e3 = this, i3 = (0, r.GC$)("#" + Qt), o2 = i3[0].children[1];
            i3.css([wt, xt], [Mt, At]), t4 = (0, r.GC$)(p(ut)).css([Ct, St, pt, Tt, wt], [e3.Yat, 2, "-5px 0 0 4px", "solid 1px #A7ABB0", _t]), n4 = e3.Put = (0, r.GC$)(p(ut)).css([Ct, St, It, wt], [0, 2, "#A7ABB0", _t]), (0, r.GC$)(t4).append(n4), (0, r.GC$)(o2).append(t4);
          }, n3.prototype.Lut = function() {
            var t4, n4 = this, e3 = n4.jut(), i3 = (0, r.GC$)("#" + qt)[0], o2 = (0, r.GC$)(p("img")).attr("src", (0, c.getFilterButtonImageSrc)(11)).addClass("gc-filter-checked");
            o2.css(["verticalAlign", "margin-top"], ["top", "4px"]), e3.isShowSelectCheck || o2.css([wt], [Mt]), An((t4 = n4.itemList = (0, r.GC$)(p(st)).css([Ct, St, jt], [n4.Yat, n4.Zat, Dt]))[0], j), (0, r.GC$)(i3.children[0]).append(o2).css([wt], ["inline-block"]), (0, r.GC$)(i3.children[1]).append(t4);
          }, n3.prototype.Rut = function() {
            var t4, n4, e3, i3 = this, o2 = (0, r.GC$)(p(st)).css([pt, bt], [0, 0]), a2 = (0, r.GC$)(p(st)).appendTo(o2), u2 = (0, r.GC$)("#" + zt)[0], s2 = (0, r.GC$)(p(at)).attr({ type: ot, placeholder: Mn().Search, id: I }).appendTo(a2);
            i3.sKr() && (s2.attr({ disabled: true }), a2.addClass(un + H)), An(o2[0], "gc-search-outer-div ui-widget-header" + G + "ui-multiselect-header ui-helper-clearfix"), i3.elementList.push(s2[0]), t4 = (0, r.GC$)(p(st)).appendTo(o2), n4 = i3.Gut(k, Mn().CheckAll, "gc-check-image ui-icon ui-icon-check"), e3 = i3.Gut(N, Mn().UncheckAll, "gc-uncheck-image ui-icon ui-icon-closethick"), An(t4[0], K), t4.append(n4).append(e3), (0, r.GC$)(u2.children[1]).append(o2), i3.elementList.push(n4[0]), i3.elementList.push(e3[0]);
          }, n3.prototype.eut = function() {
            var t4 = this;
            t4.Sut(), t4._ut(), t4.Out();
          }, n3.prototype.use = function() {
            var t4, n4, e3, i3 = this, r2 = this.Zue, o2 = this.Wc, a2 = this.itemList;
            o2.css(["min-width", "min-height"], [o2.width() + q, o2.height() + q]), t4 = o2[0].getBoundingClientRect(), r2 && i3.qat.listFilterArea && (n4 = r2.dialogWidth, e3 = r2.dialogHeight, n4 && n4 > i3.Hat && (n4 = Math.min(n4, document.body.clientWidth - t4.left - 20), o2.css(Ct, n4), a2 && a2.css(Ct, i3.Yat + (n4 - i3.Hat))), e3 && e3 > i3.zat && (e3 = Math.min(e3, document.body.clientHeight - t4.top - 20), o2.css(St, e3), a2 && a2.css(St, i3.Zat + (e3 - i3.zat))));
          }, n3.prototype.dut = function(t4) {
            var n4 = this, e3 = y;
            switch (this.Gat) {
              case Jt:
                e3 = new o.Grt(t4, n4.Wc, n4.filterButtonInfo, n4.sheet, n4, Y);
                break;
              case Kt:
                e3 = new o.Prt(t4, n4.Wc, n4.filterButtonInfo, n4.sheet, n4, Y);
                break;
              case Xt:
                e3 = new o.Frt(t4, n4.Wc, n4.filterButtonInfo, n4.sheet, n4, Y);
            }
            return e3;
          }, n3.prototype.mut = function(t4, n4) {
            var e3 = this, i3 = y;
            return n4 === z ? i3 = new o.Lrt(t4, e3.Wc, e3.filterButtonInfo, e3.sheet, e3, z) : n4 === Z && (i3 = new o.Lrt(t4, e3.Wc, e3.filterButtonInfo, e3.sheet, e3, Z)), i3;
          }, n3.prototype.xut = function() {
            var t4, n4 = this.filterButtonInfo, e3, i3 = false, r2 = n4.rowFilter.nrt;
            return r2 !== y && r2.color !== Zt && n4.col === r2.index && (i3 = true), i3;
          }, n3.prototype.Nut = function(t4) {
            var n4 = (0, r.GC$)(p("div")), e3 = (0, r.GC$)(p("img")).attr("src", (0, c.getFilterButtonImageSrc)(11)).addClass("gc-filter-checked");
            return t4 || e3.css([wt], [Mt]), n4.append(e3), n4;
          }, n3.prototype.Kat = function() {
            var t4 = this, n4 = t4.filterButtonInfo, e3 = n4.rowFilter, i3 = n4.col, r2 = t4.sheet.getText(t4.filterButtonInfo.row, i3, n4.sheetArea), o2 = e3 && e3.Uoe();
            return o2 && o2.row <= 0 ? r2 = t4.sheet.getText(n4.row, i3, n4.sheetArea) : r2 || (r2 = t4.sheet.getText(0, i3, 1)), "" === r2 && 1 === t4.sheet.options.colHeaderAutoText ? r2 = "(Column " + (i3 + 1) + ")" : "" === r2 && (r2 = "(Column " + g.Vf(i3 + 1) + ")"), r2 = '"' + r2;
          }, n3.prototype.Eut = function(t4) {
            var n4 = this, e3;
            n4.Jat ? (e3 = (0, c.getFilterButtonImageSrc)(12), (0, r.GC$)(t4).addClass("gc-filter-item")) : (e3 = (0, c.getFilterButtonImageSrc)(13), (0, r.GC$)(t4).addClass(un + H)), (0, r.GC$)(t4.children[0]).append((0, r.GC$)(p("img")).attr("src", e3).css([Ct], ["18px"])), n4.Uut(rn, n4.Qat, (0, r.GC$)(t4.children[1]));
          }, n3.prototype.Hut = function(t4) {
            var n4;
            return 0 === t4.conType() && 0 === t4.item1().compareType() && 0 === t4.item2().compareType() && 5 === t4.item1().conType() && 5 === t4.item2().conType();
          }, n3.prototype.jut = function() {
            var t4, n4, e3, i3 = this, r2 = false, o2 = false, u2 = false, s2 = i3.filterButtonInfo, c2 = s2.col, f2 = s2.rowFilter, l2 = f2.rrt[c2];
            return l2 && l2.length > 0 && ((l2 = l2[0]) instanceof a.Condition ? (t4 = l2.conType(), 0 === (n4 = l2.compareType()) && 3 !== t4 && i3.qat.listFilterArea ? u2 = true : 0 !== n4 || 3 === t4 || i3.qat.listFilterArea ? 0 !== n4 && 3 !== t4 ? r2 = true : 3 === t4 && (o2 = true) : r2 = true, e3 = this.Hut(l2), (5 === t4 && 0 === n4 || e3) && (u2 = false, r2 = true)) : u2 = i3.qat.listFilterArea), { isShowColorFilterSelect: o2, isShowMajorCheck: r2, isShowSelectCheck: u2 };
          }, n3.prototype.Xat = function() {
            var t4, n4 = false, e3 = this.filterButtonInfo, i3 = e3.col, r2, o2 = e3.rowFilter.rrt[i3];
            return o2 && o2.length > 0 && (n4 = true), n4;
          }, n3.prototype.zut = function() {
            var t4 = Math.max(this.Pat.Date, this.Pat.Number, this.Pat.Text);
            return t4 === this.Pat.Text ? Kt : t4 === this.Pat.Number ? Jt : t4 === this.Pat.Date ? Xt : void 0;
          }, n3.prototype.fut = function() {
            var t4, n4, e3 = this.zut();
            this.Gat = e3, t4 = Mn()[e3], (n4 = (0, r.GC$)("#" + on)).text(t4);
          }, n3.prototype.Vut = function(t4) {
            var n4 = this, e3 = n4.Yat * t4, i3 = (0, r.GC$)(n4.Put);
            i3.css([Ct], [e3]);
          }, n3.prototype.Yut = function(t4) {
            var n4;
            (0, r.GC$)("#" + Qt).css([wt], [t4 ? _t : Mt]);
          }, n3.prototype.Wrt = function() {
            var t4, n4, e3 = this, i3 = e3.filterButtonInfo, r2 = this.sheet, o2 = i3.col, a2 = i3.rowFilter;
            a2 && (n4 = { tableName: t4 = a2.nM ? a2.nM.name() : Zt, colIndex: o2 }, r2.Qy().execute({ cmd: "clearFilter", sheetName: r2.name(), cmdOption: n4 }), e3.close());
          }, n3.prototype.lut = function() {
            var t4, n4 = false, e3 = this.bot, i3 = this.yot, r2 = e3.colorNumber, o2 = i3.colorNumber;
            e3.automatic && r2++, i3.automatic && o2++, (r2 !== Zt && r2 > 1 || o2 !== Zt && o2 > 1) && (n4 = true), t4 = this.jut(), n4 || (!t4.isShowColorFilterSelect && this.Zut(Ht), !this.xut() && this.Zut(Gt));
          }, n3.prototype.Zut = function(t4) {
            var n4;
            (0, r.GC$)("#" + t4).addClass(un + H).find("." + an);
          }, n3.prototype.nut = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Wc, h2 = " gc-sort-container ui-menu-item", d2 = f2.table = (0, r.GC$)(p("table")).css([bt, wt], [0, "table"]).attr({ cellspacing: 0, cellpadding: 0 });
            for (An(d2[0], "gc-layout-table"), i3 = [Bt, Pt, Gt, Ut, Ht, Vt, zt], o2 = f2.$at, n4 = 0; n4 < 10; n4++) if (1 === o2[n4]) for (a2 = p("tr"), u2 = (0, r.GC$)(a2).appendTo(d2), n4 < 6 && ((0, r.GC$)(a2).attr("id", i3[n4]).css([wt, St, $], ["table-row", "26px", "9pt"]), (0, r.GC$)(a2).addClass(Yt)), 6 === n4 && (0, r.GC$)(a2).attr("id", i3[n4]), 7 === n4 && (0, r.GC$)(a2).attr("tabindex", 0).attr("id", qt), 8 === n4 && (0, r.GC$)(a2).attr("id", Qt), 9 === n4 && (0, r.GC$)(a2).attr("id", $t), Dn(a2), e3 = 0; e3 < 3; e3++) s2 = p("td"), (0, r.GC$)(s2).appendTo(u2), Dn(s2), 0 === e3 ? An(s2, "gc-layout-table-first-column") : 2 === e3 ? An(s2, "gc-layout-table-last-column") : 1 === e3 && (0 === n4 ? An(s2, "gc-filter-sort-asc-container" + h2 + "gc-layout-table-middle-column") : 1 === n4 && An(s2, "gc-filter-sort-desc-container" + h2 + "gc-layout-table-middle-column"));
            f2.table.appendTo(l2), l2.css(["box-shadow", Ct, St, jt], ["rgba(0, 0, 0, 0.15) 2px 4px 5px", f2.Hat + q, f2.zat + q, Dt]), An(l2[0], tn + " " + W), l2.appendTo(f2.qc()), (null === (t4 = f2.Zue) || void 0 === t4 ? void 0 : t4.allowResize) && (l2.addClass(Et), c2 = l2[0], f2.Wue = new r.Ose(c2, (function() {
              var t5, n5 = c2.getBoundingClientRect();
              l2.css(["max-width", "max-height"], [document.body.clientWidth - n5.left - 10 + q, document.body.clientHeight - n5.top - 10 + q]), (t5 = (0, r.GC$)("." + j)[0]) && (t5.style.height = c2.clientHeight - (f2.zat - f2.Zat) + q, t5.style.width = c2.clientWidth - (f2.Hat - f2.Yat) + q, f2.Mut.Cg(), f2.Rfe());
            }), 40));
          }, n3.prototype.Yfe = function(t4) {
            var n4 = this;
            n4.hut && (0, r.GC$)(t4).attr("id") !== Vt && n4.hut.rf() && (n4.hut.NK(), n4.Uat = y, Nn((0, r.GC$)("#" + Vt)[0], P)), n4.vut && (0, r.GC$)(t4).attr("id") !== Ht && n4.vut.rf() && (n4.vut.NK(), n4.Uat = y, Nn((0, r.GC$)("#" + Ht)[0], P)), n4.gut && (0, r.GC$)(t4).attr("id") !== Gt && n4.gut.rf() && (n4.gut.NK(), n4.Uat = y, Nn((0, r.GC$)("#" + Gt)[0], P));
          }, n3.prototype.aY = function() {
            var t4, n4, e3, i3, o2 = this, a2 = false, u2 = false, s2 = (0, r.GC$)("." + _);
            (0, r.GC$)("#" + Bt).bind(vt, (function(t5) {
              a2 && (a2 = false, o2.Wut(true), o2.close(), m(t5));
            })).bind(ht, (function(t5) {
              m(t5), a2 = true;
            })), (0, r.GC$)("#" + Pt).bind(vt, (function(t5) {
              u2 && (u2 = false, o2.Wut(false), o2.close(), m(t5));
            })).bind(ht, (function(t5) {
              m(t5), u2 = true;
            })), (0, r.GC$)("." + Yt).bind(dt, (function() {
              o2.Yfe(this), !(0, r.GC$)(this).hasClass(H.trim()) && (0, r.GC$)(this).index() < 6 && An(this, P);
            })).bind(nt, (function() {
              o2.hut && (0, r.GC$)(this).attr("id") === Vt && (clearTimeout(t4), o2.hut.rf()) || o2.vut && (0, r.GC$)(this).attr("id") === Ht && (clearTimeout(n4), o2.vut.rf()) || o2.gut && (0, r.GC$)(this).attr("id") === Gt && (clearTimeout(e3), o2.gut.rf()) || Nn(this, P);
            })), (0, r.GC$)("#" + Ut).bind(et, (function() {
              o2.Jat && o2.Wrt();
            })), (0, r.GC$)("#" + Vt).bind(dt, (function() {
              (0, r.GC$)(this).hasClass(un) || (t4 = setTimeout((function() {
                o2.Uat = o2.hut, o2.Uat.$c();
              }), sn));
            })), (0, r.GC$)("#" + Ht).bind(dt, (function() {
              (0, r.GC$)(this).hasClass(un) || (n4 = setTimeout((function() {
                o2.Uat = o2.vut, o2.Uat.$c();
              }), sn));
            })), (0, r.GC$)("#" + Gt).bind(dt, (function() {
              (0, r.GC$)(this).hasClass(un) || (e3 = setTimeout((function() {
                o2.Uat = o2.gut, o2.Uat.$c();
              }), sn));
            })), (0, r.GC$)("#" + k).bind(et, (function(t5) {
              o2.Qut(t5, true);
            })), (0, r.GC$)("#" + N).bind(et, (function(t5) {
              o2.Qut(t5, false);
            })), (0, r.GC$)("#" + I).bind(it, (function(t5) {
              13 === (t5.which || t5.keyCode) && t5.preventDefault();
            })).bind(rt, (function(t5) {
              C(t5.keyCode, [9, 37, 38, 39, 40]) < 0 && (o2.Kut(), o2.but());
            })).bind(ot, (function(t5) {
              o2.Kut(), o2.but();
            })), s2.bind(dt, (function() {
              An(this, L);
            })).bind(nt, (function() {
              Nn(this, L);
            })), s2.bind(ht, (function() {
              Nn(this, L), An(this, J);
            })).bind(nt, (function() {
              Nn(this, J);
            })), (0, r.GC$)("#" + x).bind(et, (function() {
              o2.spr();
            })), (0, r.GC$)("#" + A).bind(et, (function() {
              o2.close();
            })), (0, r.GC$)("#" + zt).bind(dt, (function(t5) {
              o2.Yfe(t5.currentTarget);
            })), (0, r.GC$)("#" + qt).bind(dt, (function(t5) {
              o2.Yfe(t5.currentTarget);
            })), (0, r.GC$)("#" + $t).bind(dt, (function(t5) {
              o2.Yfe(t5.currentTarget);
            })), o2.Wc.bind(lt, (function(t5) {
              m(t5);
            })).bind(ft, (function(t5) {
              m(t5);
            })).bind(it + X, (function(t5) {
              o2.$ut(t5);
            })).bind(rt + X, (function(t5) {
              m(t5);
            })).bind(ht, (function() {
              w(o2.activeItemIndex) || (o2.activeItemIndex = Zt, o2.cst(o2.ast));
            })), o2.itemList && o2.itemList.length > 0 && (o2.Mut.bind(r.Events.TopRowChanged, (function(t5, n5) {
              o2.Bfe(n5);
            })), i3 = function(t5, n5) {
              false === o2.Jut ? o2.nst(n5) : o2.est(n5);
            }, o2.Mut.bind(r.Events.CellClick, i3), o2.Mut.bind(r.Events.CellChanged, i3), o2.Mut.bind(r.Events.TouchToolStripOpening, (function(t5, n5) {
              n5.handled = true;
            })));
          }, n3.prototype.spr = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2, f2;
            if (!(0, r.GC$)("#" + x)[0].disabled) {
              if (e3 = (n4 = (t4 = this).filterButtonInfo).rowFilter, false === t4.Jut ? (e3.irt = true, t4.Xut()) : (t4.qut(), true === t4.Jut ? e3.ort = true : (t4.sheet.NMi && t4.sheet.NMi._gi === r.SheetType.tableSheet || e3.nM && e3.nM.NTr()) && (e3.irt = true)), i3 = t4.Oat, o2 = [], a2 = t4.Dat, u2 = i3.length, s2 = a2.length, t4.Bat) {
                for (c2 = 0; c2 < (u2 > s2 ? u2 : s2); c2++) a2[c2] && o2.push(a2[c2]), !i3[c2] || i3[c2].repeat || i3[c2].noCheck || o2.push(i3[c2]);
                t4.Dat = o2;
              }
              0 !== (f2 = t4.Dat).length && (t4.sheet.suspendPaint(), t4.aL(f2), t4.sheet.resumePaint(), t4.close(), e3.irt = false, e3.ort = false);
            }
          }, n3.prototype.Bfe = function(t4) {
            var n4, e3, i3, r2, o2, a2;
            t4.oldTopRow > t4.newTopRow || (n4 = this, e3 = t4.sheet, i3 = t4.newTopRow, r2 = e3.dw(1).length, o2 = n4.ist, a2 = e3.getColumnWidth(o2), n4.rst(e3, a2, i3, r2));
          }, n3.prototype.rst = function(t4, n4, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = t4.parent, g2 = v2.ist, m2 = e3 + i3, b2 = v2.Jut, y2 = v2.itemList.width() - (p2.options.showVerticalScrollbar ? 22 : 0), w2 = 0;
            for (false !== b2 && (u2 = t4.outlineColumn.ost()), s2 = Math.min(m2, t4.getRowCount()), c2 = e3; c2 < s2; c2++) f2 = (null === (a2 = null == o2 ? void 0 : o2[c2]) || void 0 === a2 ? void 0 : a2.name) || t4.getText(c2, g2), l2 = false === b2 ? hn : u2[c2].cellContent.left, h2 = r.q.Wt(f2), w2 = Math.max(h2 + l2, w2);
            (d2 = Math.ceil(Math.max(y2, w2) / n4)) !== t4.getColumnCount() && t4.setColumnCount(d2), w2 > y2 && (p2.options.showHorizontalScrollbar = true);
          }, n3.prototype.zce = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.dataSource[n4].name, p2 = d2.dataSource[n4].level, g2 = [], m2 = [{ name: v2, level: p2 }];
            for (e3 = n4 - 1; e3 >= 0; e3--) (i3 = d2.dataSource[e3].level) < p2 && (p2 = i3, m2.push({ name: d2.dataSource[e3].name, level: p2 }));
            for (r2 = 0, o2 = (m2 = m2.reverse()).length - 1, a2 = false, u2 = 0, s2 = d2.dataSource.length; u2 < s2; u2++) c2 = m2[r2], f2 = d2.dataSource[u2], a2 && f2.level < c2.level && (c2 = m2[r2 = f2.level], a2 = false), c2.level === f2.level && c2.name === f2.name && (r2 === o2 ? (g2.push(u2), a2 = true) : r2++);
            for (l2 = d2.ust(d2.dataSource[n4].status), h2 = 0; h2 < g2.length; h2++) t4.outlineColumn.setCheckStatus(g2[h2], l2);
          }, n3.prototype.est = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, g2 = t4.sheet, m2 = t4.row, y2 = t4.sheetArea, M2 = v2.ist;
            v2.activeItemIndex = m2, n4 = v2.ast.outlineColumn.getCheckStatus(), "add_current" === v2.dataSource[0].key && 0 === m2 && (v2.Bat = 1 === n4[0]), g2.suspendPaint(), !t4.ignoreClick && g2.sw && ((o2 = (i3 = (e3 = g2.sw.cellTypeHitInfo) && e3.outlineColumnHitInfo) && i3.indicator) || (g2.outlineColumn.getCheckStatus(m2, M2) === v2.dataSource[m2].status && (w(v2.dataSource[m2].MKr) || v2.dataSource[m2].MKr && v2.CKr()) && (a2 = g2.outlineColumn).setCheckStatus(m2, v2.ust(v2.dataSource[m2].status)), (u2 = v2.sheet.NMi) && u2.qNi && u2.qNi() && v2.zce(g2, m2), v2.sst())), g2.Oi && g2.aR("transparent"), s2 = (0, r.GC$)("." + F, this.Wc[0]), b(s2) > 0 ? Nn(s2, B) : v2.cst(g2), f2 = (c2 = g2.Z_(m2, M2, y2)) && c2.clone() || new r.Style(), An(l2 = (0, r.GC$)(p(st)), P), this.Wc.append(l2), h2 = l2.css("backgroundColor"), d2 = l2.css("color"), l2.remove(), f2.backColor = h2, f2.foreColor = d2, g2.setStyle(m2, -1, f2), g2.resumePaint(), v2.qut(), v2.but();
          }, n3.prototype.nst = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = t4.sheet, g2 = t4.row, m2 = t4.sheetArea, y2 = d2.ist, w2 = t4.col;
            d2.activeItemIndex = g2, n4 = d2.Eat, (i3 = (e3 = "add_current" === d2.dataSource[0].key) && 0 === g2) && (0 === w2 ? d2.Bat = Boolean(this.dataSource[0].status) : (d2.Bat = !Boolean(this.dataSource[0].status), this.dataSource[0].status = d2.Bat ? 1 : 0)), o2 = e3 ? g2 - 1 : g2, v2.suspendPaint(), !t4.ignoreClick && v2.sw && (a2 = void 0, 0 === w2 ? a2 = t4.newValue ? 1 : 0 : i3 || (a2 = n4[o2].status ? 0 : 1, this.dataSource[g2].status = a2), i3 || (n4[o2].status = a2, d2.Lat += a2 ? 1 : -1)), v2.Oi && v2.aR("transparent"), u2 = (0, r.GC$)("." + F, this.Wc[0]), b(u2) > 0 ? Nn(u2, B) : d2.cst(v2), c2 = (s2 = v2.Z_(g2, y2, m2)) && s2.clone() || new r.Style(), An(f2 = (0, r.GC$)(p(st)), P), this.Wc.append(f2), l2 = f2.css("backgroundColor"), h2 = f2.css("color"), f2.remove(), c2.backColor = l2, c2.foreColor = h2, v2.setStyle(g2, -1, c2), v2.resumePaint(), d2.but();
          }, n3.prototype.sst = function() {
            for (var t4 = this, n4 = t4.ast, e3 = n4.outlineColumn, i3 = e3.getCheckStatus(), r2 = 0; r2 < i3.length; ) t4.dataSource[r2].status = i3[r2], r2++;
          }, n3.prototype.ust = function(t4) {
            return 1 === t4 ? 2 : 1;
          }, n3.prototype.cst = function(t4) {
            var n4, e3, i3 = t4.getRowCount();
            for (n4 = 0; n4 < i3; n4++) if ((e3 = t4.Z_(n4, -1)) && (e3.backColor || e3.foreColor)) {
              e3.foreColor = e3.backColor = void 0, t4.setStyle(n4, -1, e3);
              break;
            }
          }, n3.prototype.fst = function(t4) {
            for (var n4 = this, e3 = n4.dataSource, i3 = 0, r2 = n4.Eat, o2 = e3[0] && "add_current" === e3[0].key ? 1 : 0; i3 < r2.length; ) e3[i3 + o2].status = t4, r2[i3].status = t4, i3++;
          }, n3.prototype.qut = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = u2.ast.outlineColumn.getCheckStatus(), c2 = 0, f2 = u2._at || u2.Dat, l2 = u2.Eat, h2 = 0, d2 = u2.sKr();
            for (u2.Bat = 1 === s2[0], "add_current" === u2.dataSource[0].key && (c2 = 1), u2.Dat = [], n4 = 0; n4 < l2.length && (t4 = l2[n4], !(h2 >= f2.length)); n4++) if (t4.key === f2[h2].text) {
              for (h2++, e3 = t4.children, i3 = Zt, r2 = 0; r2 < e3.length; r2++) o2 = e3[r2], a2 = s2[c2], false !== o2.show && (c2 += 1), i3 = a2 || i3, 3 !== a2 && (o2.status = a2);
              2 !== i3 ? u2.Dat.push({ text: t4.key, value: t4.value, type: t4.type, Ky: d2 ? n4 + 1 : Zt }) : u2.lst(n4, t4);
            }
          }, n3.prototype.Xut = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = u2._at || u2.Dat, c2 = u2.Eat, f2 = 0;
            for ("add_current" === u2.dataSource[0].key && (u2.Bat = Boolean(u2.dataSource[0].status)), u2.Dat = [], e3 = (n4 = u2.filterButtonInfo).col, (r2 = (i3 = n4.rowFilter).hst)[e3] = [], o2 = 0; o2 < c2.length && (t4 = c2[o2], !(f2 >= s2.length)); o2++) t4.key === s2[f2].text && (f2++, (a2 = t4.status) ? u2.Dat.push({ text: t4.key, value: t4.value, type: t4.type }) : (u2.lst(o2, t4), r2[e3].push(t4.key)));
          }, n3.prototype.lst = function(t4, n4) {
            var e3, i3 = this, r2 = i3.Rat;
            if (r2[t4]) if (r2[t4].value === n4.value) i3.Rat[t4] = null;
            else for (e3 = t4 + 1; e3 < r2.length; ) {
              if (r2[e3] && r2[e3].value === n4.value) {
                i3.Rat[e3] = null;
                break;
              }
              e3++;
            }
          }, n3.prototype.Qut = function(t4, n4) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.ast, s2 = a2._at;
            u2.suspendPaint(), a2.Dat = n4 ? _n(s2) : [], !n4 && a2.Bat && (a2.Bat = false), i3 = bn[n4], false === a2.Jut ? (e3 = yn[n4], a2.fst(e3), a2.Lat = n4 ? s2.length : 0) : (r2 = u2.outlineColumn) && (r2.dst(i3), a2.sst(), n4 && a2.Fat && ((o2 = r2.mst.vst[0]) && o2.checkBox && (r2.mst.vst[0].checkBox.checkStatus = 0), r2.refresh())), u2.resumePaint(), a2.but(), m(t4);
          }, n3.prototype.gst = function(t4) {
            switch (t4) {
              case Vt:
                this.Uat = this.hut;
                break;
              case Ht:
                this.Uat = this.vut;
                break;
              case Gt:
                this.Uat = this.gut;
            }
          }, n3.prototype.pst = function(t4) {
            var n4 = this;
            n4.Uat = t4, n4.Uat.$c(), n4.Uat.Jrt();
          }, n3.prototype.bst = function(t4) {
            var n4, e3, i3, o2 = this, a2 = b(t4);
            0 !== a2 ? (i3 = (e3 = t4.attr("id")) === Bt, 1 === a2 ? i3 || e3 === Pt ? (o2.Wut(i3), o2.close()) : e3 === A ? o2.close() : e3 === Vt ? o2.Uat !== y ? o2.Uat.Zrt() : o2.pst(o2.hut) : e3 === Ht ? o2.pst(o2.vut) : e3 === Gt ? o2.pst(o2.gut) : e3 === Ut ? o2.Wrt() : (0, r.GC$)("#" + x).trigger(et) : 2 === b(t4) || 3 === b(t4) ? o2.Uat && o2.Uat.Zrt() : (0, r.GC$)("#" + x).trigger(et)) : w(this.activeItemIndex) && (null === (n4 = document.activeElement) || void 0 === n4 ? void 0 : n4.id) !== I || o2.spr();
          }, n3.prototype.yst = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this;
            if (e3 === I) return false;
            if (b(t4)) h2.Uat === y && h2.gst(n4), h2.Uat === y || h2.Uat.drt || h2.Uat.Krt(), t4.trigger(ht), t4.trigger(vt), t4.trigger(et);
            else {
              if (w(h2.activeItemIndex)) return false;
              i3 = h2.ast, false === h2.Jut ? (i3.suspendPaint(), r2 = void 0, o2 = h2.activeItemIndex, a2 = h2.ist, s2 = (u2 = "add_current" === h2.dataSource[0].key && 0 === o2) ? 0 : o2, 0 === a2 ? r2 = i3.getValue(o2, 0) ? 1 : 0 : u2 || (r2 = h2.Eat[s2].status ? 0 : 1, this.dataSource[o2].status = r2), u2 || (h2.Eat[s2].status = r2, h2.Lat += r2 ? 1 : -1), i3.resumePaint()) : (o2 = this.activeItemIndex, c2 = 0, i3.outlineColumn.getCheckStatus(o2, c2) === h2.dataSource[o2].status && (f2 = i3.outlineColumn).setCheckStatus(o2, h2.ust(h2.dataSource[o2].status)), (l2 = h2.sheet.NMi) && l2.qNi && l2.qNi() && h2.zce(i3, o2), h2.sst()), h2.qut(), h2.but();
            }
            return true;
          }, n3.prototype.wst = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2 = this, s2 = u2.qat, c2 = [];
            if (!s2.listFilterArea) return c2;
            for (t4 = u2.Eat, n4 = u2._at, e3 = 0, i3 = 0; i3 < t4.length; i3++) if (!w(n4[e3]) && t4[i3].key === n4[e3].text) for (e3++, r2 = t4[i3].children, o2 = 0; o2 < r2.length; o2++) false !== (a2 = r2[o2]).show && c2.push(a2.value || t4[i3].key);
            return c2;
          }, n3.prototype.Mst = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.elementList;
            return !b(n4) && w(u2.activeItemIndex) ? o2 = s2[0] : (b(n4) ? Nn(n4, B) : u2.cst(u2.ast), a2 = u2.wst(), o2 = 4 === t4 ? u2.Cst(a2, n4, e3) : u2.Sst(a2, n4, t4), (null === (i3 = n4[0]) || void 0 === i3 ? void 0 : i3.id) === I && (null === (r2 = n4[0]) || void 0 === r2 || r2.blur(), u2.Wc[0].focus())), o2;
          }, n3.prototype.Sst = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2 = this, c2 = s2.elementList, f2 = n4[0], l2 = c2.length - 2, h2 = _n(c2), d2 = s2.activeItemIndex || 0, v2 = 0;
            for (o2 = 0; o2 < b(t4); o2++) h2.splice(-2, 0, t4[o2]);
            if (u2 = 3 === e3, (a2 = f2 ? C(f2, h2) : l2 + d2) >= 0) {
              for (r2 = u2 ? h2[a2 + 1] : h2[a2 - 1], d2 = d2 || 0, v2 = u2 ? a2 + 1 : a2 - 1, C(r2, t4) >= 0 && b(n4) > 0 && (a2 = u2 ? a2 + d2 : d2 + (c2.length - 2), r2 = u2 ? h2[a2 + 1] : h2[a2], v2 = u2 ? a2 + 1 : a2); u2 && a2 < b(h2) && s2.Tst(r2); ) v2 = a2 + 1, r2 = h2[(a2 += 1) + 1];
              if (!u2) {
                for (; a2 > 0 && s2.Tst(r2); ) {
                  if (r2.id === x && t4.length > 0) return null !== (i3 = this.activeItemIndex) && void 0 !== i3 ? i3 : 0;
                  v2 = a2 - 1, r2 = h2[(a2 -= 1) - 1];
                }
                r2 || (r2 = h2[b(h2) - 1]);
              }
              r2 || (r2 = h2[0]);
            }
            return typeof r2 === tt ? v2 - l2 : r2;
          }, n3.prototype.Cst = function(t4, n4, e3) {
            var i3, r2, o2 = this, a2 = o2.elementList, u2 = n4[0], s2 = _n(a2), c2 = o2.activeItemIndex || 0;
            if (t4.length > 0 && s2.splice(-2, 0, t4[c2]), b(n4)) {
              if ((r2 = C(u2, s2)) >= 0) {
                for (i3 = e3 ? s2[r2 - 1] || s2[b(s2) - 1] : s2[r2 + 1]; e3 && r2 > 0 && o2.Tst(i3); ) i3 = s2[(r2 -= 1) - 1];
                for (; !e3 && o2.Tst(i3) && r2 < b(s2); ) i3 = s2[(r2 += 1) + 1];
              }
            } else i3 = e3 ? a2[a2.length - 3] : o2.Tst(a2[a2.length - 2]) ? a2[a2.length - 1] : a2[a2.length - 2];
            return i3 || (i3 = s2[0]), typeof i3 === tt ? c2 : i3;
          }, n3.prototype.$ut = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2 = this, c2 = (0, r.GC$)("." + F, s2.Wc[0]), f2 = t4.which || t4.keyCode, l2 = C(f2, [27, 13, 38, 40, 9, 37, 39, 32]);
            if (c2.length > 0 && (e3 = c2.attr("id")), 0 === l2) s2.close(), m(t4);
            else if (1 === l2) this.bst(c2), g.vi(t4);
            else if (l2 > 4) {
              if (5 === l2) i3 = s2.activeItemIndex, s2.Uat !== y || e3 || w(i3) ? (s2.Uat === y && s2.gst(e3), s2.Uat !== y && (s2.Uat = s2.Uat.Qrt())) : (o2 = s2.Mut.getActiveSheet(), a2 = i3 !== this.dataSource.length - 1 && s2.dataSource[i3].level < s2.dataSource[i3 + 1].level, u2 = 0 === i3 || 0 === s2.dataSource[i3].level, !o2.outlineColumn.getCollapsed()[i3] && a2 ? o2.outlineColumn.setCollapsed(s2.activeItemIndex, true) : u2 || s2.Dgr(t4));
              else if (6 === l2) i3 = s2.activeItemIndex, s2.Uat !== y || e3 || w(i3) ? (s2.Uat === y && s2.gst(e3), s2.Uat === y || s2.Uat.drt || s2.Uat.Krt()) : (o2 = s2.Mut.getActiveSheet(), (a2 = i3 !== this.dataSource.length - 1 && s2.dataSource[i3].level < s2.dataSource[i3 + 1].level) && !o2.outlineColumn.getCollapsed()[i3] ? s2.kgr(t4, 3, c2) : a2 && o2.outlineColumn.setCollapsed(i3, false));
              else if (7 === l2 && !this.yst(c2, e3, null === (n4 = t4.target) || void 0 === n4 ? void 0 : n4.id)) return;
              m(t4);
            } else l2 > 1 && s2.Uat !== y && s2.Uat.rf() ? (2 === l2 || 4 === l2 && t4.shiftKey ? s2.Uat.qrt() : (3 === l2 || 4 === l2 && !t4.shiftKey) && s2.Uat.Xrt(), m(t4)) : l2 > 1 && s2.kgr(t4, l2, c2);
          }, n3.prototype.kgr = function(t4, n4, e3) {
            var i3, o2, a2 = this, u2 = a2.activeItemIndex;
            "number" == typeof (i3 = w(u2) || e3.length > 0 || 4 === n4 || 2 === n4 && 0 === u2 ? a2.Mst(n4, e3, t4.shiftKey) : 3 === n4 && a2._gr(u2) ? a2.Mst(4, e3, t4.shiftKey) : a2.Ogr(n4)) ? (e3 = i3, a2.est({ sheet: a2.ast, row: e3, sheetArea: 3, ignoreClick: true }), a2.ast.OA(e3, a2.ist), (0, r.GC$)("#" + qt).focus(), m(t4)) : ((o2 = (e3 = (0, r.GC$)(i3)).attr("id")) !== I && o2 !== x && o2 !== A && o2 !== k && o2 !== N ? e3.find("i").focus() : e3.focus(), An(e3, D + " " + B), m(t4));
          }, n3.prototype.Dgr = function(t4) {
            var n4, e3, i3 = this, o2 = i3.ast, a2 = i3.activeItemIndex;
            if (0 !== a2) {
              for (n4 = i3.dataSource[a2].level, e3 = a2 - 1; e3 >= 0 && !(i3.dataSource[e3].level < n4); ) e3--;
              e3 >= 0 && (i3.est({ sheet: o2, row: e3, sheetArea: 3, ignoreClick: true }), o2.OA(e3, i3.ist), (0, r.GC$)("#" + qt).focus(), m(t4));
            }
          }, n3.prototype.Ogr = function(t4) {
            var n4 = this.activeItemIndex;
            return 2 === t4 ? false === this.Jut ? 0 === n4 ? n4 : n4 - 1 : this.Egr(this.activeItemIndex) : 3 === t4 ? false === this.Jut ? n4 === this.dataSource.length - 1 ? n4 : n4 + 1 : this.Rgr(this.activeItemIndex) : void 0;
          }, n3.prototype.Egr = function(t4) {
            for (var n4, e3, i3, r2, o2 = this, a2 = o2.dataSource, u2 = a2[t4].level, s2 = t4 - 1; s2 >= 0; ) {
              if (a2[s2].level === u2) {
                for (n4 = s2, e3 = void 0, i3 = s2; i3 < t4; i3++) !w(e3) && a2[i3].level > e3 || (!(r2 = o2.ast.outlineColumn.getCollapsed()[i3]) && a2[i3].level <= e3 ? e3 = void 0 : r2 && (e3 = a2[i3].level), n4 = i3);
                return n4;
              }
              if (a2[s2].level < u2) return s2;
              s2--;
            }
            return t4;
          }, n3.prototype.Rgr = function(t4) {
            var n4, e3 = this, i3 = e3.dataSource, r2 = i3[t4].level, o2 = e3.ast.outlineColumn.getCollapsed()[t4];
            if (!o2) return t4 + 1;
            for (n4 = t4 + 1; n4 < i3.length; ) {
              if (i3[n4].level <= r2) return n4;
              n4++;
            }
            return t4;
          }, n3.prototype._gr = function(t4) {
            return t4 === this.dataSource.length - 1 || this.Rgr(t4) === t4;
          }, n3.prototype.Tst = function(t4) {
            return typeof t4 !== tt && (t4 = (0, r.GC$)(t4), 0 !== b(t4) && !!(t4.hasClass(U) || t4.hasClass(H) || t4.hasClass(V)));
          }, n3.prototype.aL = function(t4) {
            var n4, e3, i3, r2, o2, a2 = this, u2 = a2.sheet;
            if (u2) try {
              if (u2.suspendPaint(), !(e3 = (n4 = a2.filterButtonInfo).rowFilter)) return;
              i3 = n4.col, o2 = { tableName: r2 = e3.nM ? e3.nM.name() : Zt, colIndex: i3, checkedValues: t4, allValuesLength: b(a2._rt) }, u2.Qy().execute({ cmd: "filterTextSelectAction", sheetName: u2.name(), cmdOption: o2 });
            } finally {
              u2.resumePaint();
            }
          }, n3.prototype.Kut = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = this, y2 = r.GC$.trim((0, r.GC$)("#" + I).val().toLowerCase()), w2 = false === m2.Jut ? m2.Ast : m2.Eat, M2 = m2.jat, C2 = {}, S2 = m2.Rat;
            if (S2.forEach((function(t5) {
              t5 && t5.repeat && delete t5.repeat;
            })), y2) {
              for (e3 = [], i3 = void 0, (n4 = l.jJ(y2)) || (i3 = new RegExp(y2.replace(m2.rEscape, "\\$&"), "gi")), t4 = 0; t4 < w2.length; t4++) for (a2 = (o2 = w2[t4]).children, u2 = 0; u2 < a2.length; u2++) {
                if (s2 = a2[u2], c2 = o2.key, f2 = o2.type, h2 = s2.value || c2, (d2 = n4 && l.OJ(n4).exec(h2)) && 0 === d2.index || !n4 && -1 !== h2.search(i3)) {
                  if (C2[c2]) break;
                  if (e3.push({ text: c2, value: o2.value, type: f2 }), (v2 = S2[t4]) && v2.value === o2.value) v2.repeat = true;
                  else for (p2 = t4 + 1; p2 < S2.length; ) {
                    if ((g2 = S2[p2]) && g2.value === o2.value) {
                      g2.repeat = true;
                      break;
                    }
                    p2++;
                  }
                  C2[c2] = true;
                  break;
                }
                S2[t4] && S2[t4].repeat && delete S2[t4].repeat;
              }
              m2.Ist = true, m2._at = _n(e3), m2.Oat = S2, m2.Dat = _n(e3), m2.Lat = m2._at.length, m2.xst(C2);
            } else if (b(M2)) {
              for (this.Fat = false, t4 = 0; t4 < M2.length; t4++) 1 !== M2[t4].status && (M2[t4].status = 1);
              m2._at = _n(m2._rt), m2.Dat = _n(m2._rt), false === m2.Jut ? (m2.Nst(M2, false), m2.Eat = m2.Ast) : m2.kst(M2), m2.dataSource = M2, m2.Lat = M2.length;
            } else this.Fat = false, m2.jat = _n(m2.dataSource);
          }, n3.prototype.Iut = function(t4, n4) {
            var e3 = (0, r.GC$)(p("i"));
            return e3.attr({ id: t4 }).text(n4).css([wt, bt, "cursor", pt, "text-decoration", "text-align", $, "outline", St], [_t, "0 6px", "default", "0px 0 1px 2px", Mt, kt, "12px", Mt, "inherit"]), An(e3[0], O + E + G), e3;
          }, n3.prototype.Uut = function(t4, n4, e3) {
            var i3, o2, a2, u2 = Mn().Clear, s2 = (0, r.GC$)(p("i")).html(u2.replace("{0}", '"'));
            s2.attr({ id: t4 }).css([wt, bt, "cursor", pt, "text-decoration", "text-align", $, "outline", St, "white-space"], ["inline", "0 6px", "default", "0px 0 1px 2px", Mt, kt, "12px", Mt, "inherit", "nowrap"]), e3.append(s2), i3 = e3.width() - s2[0].offsetWidth, a2 = '<span class="filterName">' + d(n4) + '</span><span style="vertical-align: top">"</span>', o2 = u2.replace("{0}", a2), s2.html(o2), (0, r.GC$)(".filterName", s2[0]).css(["max-width", "overflow", "text-overflow", wt, "vertical-align"], [i3 + "px", "hidden", "ellipsis", "inline-block", "text-bottom"]), An(s2[0], O + E + G);
          }, n3.prototype.Gut = function(t4, n4, e3) {
            var i3 = p(ut), o2 = (0, r.GC$)(p(ut)).text(n4), a2 = p("i"), u2 = (0, r.GC$)(a2);
            return An(i3, "gc-check-uncheck-all " + e3), u2.attr({ id: t4 }).css(["float", gt, bt, $, St], [kt, "7px", "0", "12px", "16px"]).append((0, r.GC$)(i3)).append(o2), An(a2, Q + Q + "-style"), u2;
          }, n3.prototype.Dst = function(t4) {
            "date" !== t4 ? "number" !== t4 && "boolean" !== t4 ? "string" === t4 && this.Pat.Text++ : this.Pat.Number++ : this.Pat.Date++;
          }, n3.prototype._st = function() {
            var t4 = this.Pat.Date, n4 = this.Pat.Number, e3 = this.Pat.Text, i3 = t4 + n4 + e3;
            return i3 > t4 && i3 > n4 && i3 > e3 ? "mix" : i3 === t4 ? "type" : i3 === n4 ? "number" : i3 === e3 ? "text" : void 0;
          }, n3.prototype.Est = function(t4) {
            var n4, e3 = true, i3 = t4.rrt[this.filterButtonInfo.col];
            return i3 && i3.length > 0 && i3[0] instanceof a.Condition && !this.sKr() && (i3 = i3[0], n4 = this.Hut(i3), (0 !== i3.compareType() || n4 || 0 === i3.compareType() && 5 === i3.conType()) && (e3 = false)), e3;
          }, n3.prototype.jst = function(t4) {
            var n4, e3 = this, i3 = e3.kat[t4];
            return w(i3) && (n4 = t4.replace(/(\[[^hms]+\])|(General)/gi, ""), i3 = v.a0(n4), e3.kat[t4] = i3), i3;
          }, n3.prototype.Ost = function(t4, n4) {
            return "number" === Rt(n4) && "string" === Rt(t4) && this.jst(t4) ? Lt(n4) : n4;
          }, n3.prototype.Rst = function(t4, n4, e3, i3, r2, o2) {
            kn(t4 !== y && t4.backColor, e3, i3, r2, o2), kn(t4 !== y && t4.foreColor, n4, i3, r2, o2);
          }, n3.prototype.uut = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.filterButtonInfo.rowFilter;
            h2 && (i3 = (e3 = (n4 = l2.sheet).JS(h2.extendedRange || h2.range)).col, r2 = {}, o2 = [], a2 = {}, u2 = [], s2 = { data: {}, colorNumber: 0 }, c2 = { data: {}, colorNumber: 0 }, f2 = n4.outlineColumn && n4.outlineColumn.Un(t4), l2.hasBlank = false, t4 >= i3 && t4 < i3 + e3.colCount && l2.Bst(t4, s2, c2, r2, a2, o2, u2), l2.Lst(s2, c2, f2, o2, u2, a2, t4));
          }, n3.prototype.Bst = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = b2.filterButtonInfo.rowFilter;
            if (y2) for (c2 = (u2 = b2.sheet).currentTheme(), f2 = {}, l2 = u2.JS(y2.extendedRange || y2.range), h2 = b2.qat.sortByColor || b2.qat.filterByColor, d2 = l2.rowCount, u2.VJr && (d2 = Math.min(d2, cn)), v2 = 0; v2 < d2; v2++) p2 = l2.row + v2, (m2 = (g2 = u2.getRowHeight(p2) > 0) && y2.Fst(p2, t4) || 1 === y2.Mct.length && y2.isFiltered(t4)) && h2 && (s2 = u2.getActualStyle(p2, t4, 3, false, { notClone: false, isForFilter: true }), this.Rst(s2, e3, n4, c2, p2, f2)), b2.Pst(i3, r2, o2, p2, t4, a2);
          }, n3.prototype.Lst = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, c2 = this;
            function f2(t5, n5) {
              var e4 = { colIndex: a2, sheet: c2.sheet, rowFilter: c2.filterButtonInfo.rowFilter };
              return s.HideRowFilter.ListValueCompareFn(t5, n5, e4);
            }
            c2.bot = t4, c2.yot = n4, e3 || (u2 = i3.length) <= dn && (i3.sort(f2), r2.sort(f2)), c2._rt = i3, c2.Rat = r2, c2._at = _n(i3), false === c2.Jut ? (c2.Eat = c2.Gst(a2, o2, i3), c2.Ast = _n(c2.Eat), c2.Lat = c2.Dat.length) : (c2.Eat = c2.Ust(a2, o2, i3), c2.Lat = c2.Eat.length), c2.jat = c2.dataSource;
          }, n3.prototype.Hst = function(t4, n4, e3) {
            var i3, r2 = this, o2 = r2.sheet;
            return e3 || ((i3 = o2.l0(t4, n4, "_autoFormatter")) && i3.formatCached ? i3.formatCached : void 0);
          }, n3.prototype.zst = function(t4) {
            var n4, e3;
            return this.sheet.l0(-1, t4, "formatter");
          }, n3.prototype.B3 = function() {
            return Mn();
          }, n3.prototype.PTr = function(t4) {
            return Bn(t4);
          }, n3.prototype.Pst = function(t4, n4, e3, i3, o2, a2, u2, c2, f2, l2, d2, v2) {
            var p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2 = this, P2 = B2.sheet, G2 = B2.filterButtonInfo.rowFilter, U2 = u2 ? c2 : P2.getValue(i3, o2), H2 = u2 ? f2 : P2.vL(i3, o2, U2);
            if (p2 = H2 = H2 ? (0, s.trimHalfSpace)(H2) : H2, g2 = Mn().Blanks, m2 = B2.Est(G2), b2 = P2.NMi && P2.NMi._gi === r.SheetType.tableSheet, B2.Vst || (B2.Vst = []), B2.Vst.hasOwnProperty(o2) ? C2 = B2.Vst[o2] : B2.Vst[o2] = C2 = G2.isFiltered(o2), B2.Yst || (B2.Yst = []), B2.Yst.hasOwnProperty(o2) ? S2 = B2.Yst[o2] : B2.Yst[o2] = S2 = P2.outlineColumn && P2.outlineColumn.Un(o2), b2) {
              if (T2 = false, x2 = true, G2.hst || (G2.hst = {}), B2.Zst || (B2.Zst = []), B2.Zst.hasOwnProperty(o2) ? y2 = B2.Zst[o2] : B2.Zst[o2] = y2 = B2.zst(o2), y2 && !h(y2) && (U2 = B2.Ost(y2, U2)), I2 = "date" === (A2 = l2), B2.Dst(A2), 1 === B2.Pat.Date && (B2.Wst = Bn(y2)), I2 && (p2 = G2.Qst.format(U2)), (k2 = P2.NMi).qNi && k2.qNi()) return N2 = d2, ("" === H2 || w(H2)) && (A2 = "blank", B2.hasBlank = true, H2 = g2), N2 ? (n4[H2] = true, B2.Dat.push({ text: H2, value: U2, type: A2 }), a2.push({ text: H2, value: U2, type: A2 })) : a2.push({ text: H2, value: U2, noCheck: true, type: A2 }), void (false !== v2 && e3.push({ text: H2, value: U2, type: A2, noCheck: !N2 }));
              j2 = G2.isFiltered(), D2 = true, "" !== H2 || !x2 && j2 && !D2 ? t4[p2] || x2 && (d2 ? (n4[H2] = true, T2 = true, B2.Dat.push({ text: H2, value: U2, type: A2 }), a2.push({ text: H2, value: U2, type: A2 })) : a2.push({ text: H2, value: U2, noCheck: true, type: A2 }), false !== v2 && (e3.push({ text: H2, value: U2, type: A2, noCheck: !T2 }), t4[p2] = true)) : B2.hasBlank || (A2 = "blank", B2.hasBlank = true, d2 ? (n4[g2] = true, T2 = true, B2.Dat.push({ text: g2, value: U2, type: A2 }), a2.push({ text: g2, value: U2, type: A2 })) : a2.push({ text: g2, value: U2, noCheck: true, type: A2 }), false !== v2 && e3.push({ text: g2, value: U2, type: A2, noCheck: !T2 }));
            } else x2 = P2.getRowHeight(i3) > 0, (y2 = P2.getFormatter(i3, o2)) && !h(y2) && (U2 = B2.Ost(y2, U2)), I2 = "date" === (A2 = On(U2, M2 = B2.Hst(i3, o2, y2))), B2.Dst(A2), 1 === B2.Pat.Date && (B2.Wst = Bn(y2)), I2 && (p2 = G2.Qst.format(U2), "object" == typeof U2 && U2.getFullYear || (_2 = Date.parse(p2), isNaN(_2) || (U2 = new Date(p2)))), O2 = P2.getRowVisible(i3, 3, true), E2 = G2.Kst(i3, o2), D2 = G2.Fst(i3, o2), R2 = P2._o(i3), L2 = C2 && 1 === G2.Mct.length, F2 = m2 && (x2 && !C2 || S2 && O2 && !E2 || C2 && !E2), "" === H2 && (x2 || L2 || D2) ? B2.hasBlank || (B2.hasBlank = true, e3.push({ text: g2, value: U2, type: A2 }), F2 ? (n4[g2] = true, B2.Dat.push({ text: g2, value: U2, type: A2 }), a2.push({ text: g2, value: U2, type: A2 })) : a2.push({ text: g2, value: U2, noCheck: true, type: A2 })) : t4[p2] && !S2 || (O2 && R2 || L2) && (F2 ? (S2 ? (n4[H2] || (n4[H2] = {}), n4[H2][i3] = true) : n4[H2] = true, B2.Dat.push({ text: H2, value: U2, type: A2 }), a2.push({ text: H2, value: U2, type: A2 })) : a2.push({ text: H2, value: U2, noCheck: true, type: A2 }), (x2 || S2 || L2 || D2) && (e3.push({ text: H2, value: U2, type: A2, MKr: S2 && B2.CKr() ? D2 : Zt }), t4[p2] = true));
          }, n3.prototype.Ust = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = [], C2 = [], S2 = w2.sheet, T2 = S2.JS(w2.filterButtonInfo.rowFilter.extendedRange || w2.filterButtonInfo.rowFilter.range), x2 = S2.outlineColumn;
            if (x2 && x2.Un(t4)) for (d2 = S2.NMi, c2 = 0; c2 < e3.length; c2++) v2 = e3[c2].text, p2 = e3[c2].value, g2 = e3[c2].type, m2 = e3[c2].noCheck, b2 = e3[c2].MKr, s2 = bn[!!(d2 ? n4[v2] : null === (i3 = n4[v2]) || void 0 === i3 ? void 0 : i3[c2])], f2 = Fn(S2, v2, p2, T2.row + c2, t4, s2, g2, m2), M2.push(f2), (h2 = f2.children[0]) && false !== h2.show && C2.push({ name: h2.value || f2.key, level: w2.Ist ? 0 : h2.level, status: h2.status, MKr: b2 });
            else for (c2 = 0; c2 < e3.length; c2++) switch (v2 = e3[c2].text, p2 = e3[c2].value, g2 = e3[c2].type) {
              case "date":
                for (s2 = bn[!!n4[v2]], r2 = (l2 = (f2 = Ln(w2.Wst, v2, p2, s2, g2)).children)[0].value, o2 = l2[1].value || l2[0].value, l2[0].show = l2[1].show = true, r2 === a2 && (l2[0].show = false, o2 === u2 && (l2[1].show = false)), a2 = r2, u2 = o2, M2.push(f2), h2 = f2.children, y2 = 0; y2 < 3; y2++) h2[y2] && false !== h2[y2].show && C2.push({ name: h2[y2].value || f2.key, level: h2[y2].level, status: h2[y2].status });
                break;
              case "number":
              case "string":
              case "boolean":
              case "blank":
              case "array":
              case "calc_error":
              case "object":
                s2 = bn[!!n4[v2]], f2 = Fn(S2, v2, p2, T2.row + c2, t4, s2, g2), M2.push(f2), (h2 = f2.children[0]) && false !== h2.show && C2.push({ name: h2.value || f2.key, level: h2.level, status: h2.status });
            }
            return w2.dataSource = C2, M2;
          }, n3.prototype.Gst = function(t4, n4, e3, i3) {
            var r2 = this, o2 = [], a2 = [], u2, s2, c2, f2, l2, h2, d2, v2;
            for (i3 && (o2 = [], a2 = []), f2 = 0; f2 < e3.length; f2++) l2 = e3[f2].text, h2 = e3[f2].value, d2 = e3[f2].type, u2 = void 0 === (v2 = e3[f2].noCheck) ? n4[l2] : !v2, c2 = { key: l2, value: h2, children: [{ value: l2, level: 0, status: s2 = yn[u2] }], status: s2, type: d2, checked: u2 }, o2.push(c2), a2.push({ name: c2.children[0].value || c2.key, level: 0, status: s2 });
            return r2.dataSource = a2, o2;
          }, n3.prototype.wut = function(t4) {
            var n4 = this, e3 = 0, i3 = n4.itemList, o2 = false, a2 = n4.Mut;
            a2 || (a2 = new r.Workbook(i3[0], { allowContextMenu: false, showHorizontalScrollbar: false, showVerticalScrollbar: false, scrollbarMaxAlign: true, tabStripVisible: false, allowUserResize: false, allowUserDragDrop: false, allowDragHeaderToMove: r.AllowDragHeaderToMove.none, allowUserDragFill: false, allowUserZoom: false, grayAreaBackColor: "white", sheetCount: 1 }), o2 = true), a2.xU = true, n4.Mut = a2, n4.ast = a2.getActiveSheet(), n4.ist = e3, false === n4.Jut ? (n4.ist = 1, n4.Nst(t4, o2)) : (n4.kst(t4), n4.sst());
          }, n3.prototype.kst = function(t4) {
            var n4, e3, i3, o2 = this, a2 = o2.Mut;
            o2.Mut.sheets.length > 0 && (o2.Mut.removeSheet(0), o2.ast = Zt), a2.addSheet(0, new r.Worksheet("sheet1")), n4 = o2.ast = a2.sheets[0], a2.suspendEvent(), n4.suspendPaint(), (e3 = n4.options).colHeaderVisible = false, e3.rowHeaderVisible = false, e3.selectionBackColor = "transparent", e3.selectionBorderColor = "transparent", e3.gridline = { showVerticalGridline: false, showHorizontalGridline: false }, e3.protectionOptions.allowOutlineRows = true, e3.isProtected = true, n4.defaults.rowHeight = fn, n4.defaults.colWidth = ln, n4.setRowCount(0 === t4.length ? 0 : t4.length + 1), (i3 = new r.Style()).font = '12px "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"', n4.setDefaultStyle(i3), n4.Jst = true, n4.outlineColumn.options({ columnIndex: o2.ist, showIndicator: true, showCheckBox: true, Jut: this.Jut }), n4.outlineColumn.Xst(), n4.showRowOutline(false), n4.setColumnCount(1), t4.length > 0 && o2.Ist ? (o2.Ist = false, t4.unshift({ name: Mn().add_current_filter, level: 0, status: 0, key: "add_current", value: "add_current", children: [] }), o2.Fat = true) : 0 === t4.length && (o2.Ist = false), o2.qst(n4, t4), o2.Rfe(), n4.outlineColumn.$st(), this.tct(t4), o2.SKr(t4), n4.resumePaint(), a2.resumeEvent();
          }, n3.prototype.SKr = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2 = this;
            if (s2.CKr() && 0 !== t4.length) for ((n4 = {})[e3 = t4[t4.length - 1].level] = false, i3 = n4, r2 = s2.ast.rowOutlines, o2 = t4.length - 1; o2 > -1; o2--) e3 > (a2 = t4[o2].level) ? (i3[e3] || r2.setCollapsed(o2, true), i3[e3] = false, i3[a2] || (i3[a2] = false)) : e3 < a2 && (i3[a2] || (i3[a2] = false)), e3 = a2, (u2 = t4[o2].MKr) && (i3[a2] = true);
          }, n3.prototype.Rfe = function() {
            var t4, n4, e3 = this, i3 = e3.ast, r2 = e3.Mut, o2 = e3.dataSource, a2 = e3.itemList, u2 = a2.height();
            r2.suspendPaint(), r2.options.showHorizontalScrollbar = false, r2.options.showVerticalScrollbar = false, fn * o2.length > u2 && (r2.options.showVerticalScrollbar = true), t4 = i3.dw(1).length, n4 = i3.getViewportTopRow(1), e3.rst(i3, ln, n4, t4, o2), !r2.options.showVerticalScrollbar && r2.options.showHorizontalScrollbar && (u2 -= 22, fn * o2.length > u2 && (r2.options.showVerticalScrollbar = true)), r2.resumePaint();
          }, n3.prototype.tct = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2;
            if (!this.sKr()) {
              for (e3 = (n4 = this).Mut, i3 = n4.ast = e3.sheets[0], r2 = i3.rowOutlines, a2 = [], u2 = [], s2 = 0; s2 < t4.length; s2++) o2 = t4[s2].level, t4[s2 + 1] && t4[s2 + 1].level === o2 + 1 && (0 === o2 ? a2.push(s2) : 1 === o2 && u2.push(s2));
              1 === a2.length ? 1 !== u2.length && u2.forEach((function(t5) {
                r2.setCollapsed(t5, true);
              })) : (a2.forEach((function(t5) {
                r2.setCollapsed(t5, true);
              })), u2.forEach((function(t5) {
                r2.setCollapsed(t5, true);
              }))), i3.$A(0);
            }
          }, n3.prototype.Nst = function(t4, n4) {
            var e3, i3, o2, a2, u2 = this, s2 = u2.Mut, c2 = u2.sheet, f2 = u2.itemList, l2 = f2.height(), h2 = u2.ast = s2.sheets[0];
            s2.suspendEvent(), h2.suspendPaint(), c2.endEdit(), n4 || h2.reset(), e3 = s2.options, i3 = h2.options, e3.showHorizontalScrollbar = false, e3.showVerticalScrollbar = false, i3.colHeaderVisible = false, i3.rowHeaderVisible = false, i3.selectionBackColor = "transparent", i3.selectionBorderColor = "transparent", i3.gridline = { showVerticalGridline: false, showHorizontalGridline: false }, i3.isProtected = true, h2.defaults.rowHeight = fn, h2.defaults.colWidth = hn, h2.setRowCount(0 === t4.length ? 0 : t4.length + 1), (o2 = new r.Style()).font = '12px "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"', o2.vAlign = 2, h2.setDefaultStyle(o2), h2.Jst = true, t4.length > 0 && u2.Ist ? (u2.Ist = false, t4.unshift({ name: Mn().add_current_filter, level: 0, status: 0, key: "add_current", value: "add_current", children: [] }), u2.Fat = true) : 0 === t4.length && (u2.Ist = false), u2.nct(h2, t4, s2), 20 * t4.length > l2 && (s2.options.showVerticalScrollbar = true), a2 = h2.dw(1).length, u2.rst(h2, hn, 0, a2, t4), h2.resumePaint(), s2.resumeEvent();
          }, n3.prototype.qst = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2;
            if (0 !== n4.length) {
              if (e3 = this, i3 = 0, o2 = 0, a2 = t4.outlineColumn, u2 = e3.ist, t4.suspendPaint(), t4.autoGenerateColumns = false, t4.bindColumn(0, "name"), t4.setDataSource(n4), "text" !== (s2 = e3._st()) && "number" !== s2 || e3.sheet.outlineColumn && e3.sheet.outlineColumn.Un(e3.filterButtonInfo.col)) for (c2 = e3.CKr(); o2 < n4.length; o2++) i3 = n4[o2].level, t4.getCell(o2, u2).textIndent(i3);
              else t4.getCell(-1, u2).textIndent(i3);
              for (t4.getCell(-1, u2).hAlign(GC.Spread.Sheets.HorizontalAlign.left), a2.refresh(), o2 = 0; o2 < n4.length; o2++) r2 = n4[o2].status, c2 && !n4[o2].MKr && a2.TKr(o2, true), a2.ect(o2, r2);
              t4.resumePaint();
            }
          }, n3.prototype.sKr = function() {
            var t4, n4 = this, e3 = n4.filterButtonInfo || {};
            return null === (t4 = e3.rowFilter) || void 0 === t4 ? void 0 : t4.sKr(e3.col);
          }, n3.prototype.CKr = function() {
            var t4, n4, e3, i3, r2, o2 = this;
            return !!o2.sKr() && (e3 = (null === (t4 = o2.sheet.rowFilter()) || void 0 === t4 ? void 0 : t4.Mct) || [], i3 = null === (n4 = o2.filterButtonInfo) || void 0 === n4 ? void 0 : n4.col, r2 = function(t5) {
              return (t5 = t5.filter((function(t6) {
                return !w(t6);
              }))).length > 0 && (1 === t5.length ? t5[0] !== i3 : t5.length > 1 || r2(t5));
            }, o2.xKr = r2(e3), o2.xKr);
          }, n3.prototype.nct = function(t4, n4, e3) {
            var i3, o2;
            0 !== n4.length && (t4.suspendPaint(), t4.autoGenerateColumns = false, t4.bindColumn(1, "name"), t4.bindColumn(0, "status"), t4.setDataSource(n4), t4.setColumnCount(2), (i3 = new r.Style()).locked = false, t4.setStyle(-1, 0, i3), (o2 = new u.CheckBox())._caption = "  ", o2._textAlign = 2, t4.setCellType(-1, 0, o2), e3.bind(r.Events.EditStarting, (function(t5, n5) {
              n5.cancel = true;
            })), t4.resumePaint());
          }, n3.prototype.xst = function(t4) {
            var n4 = this;
            false === n4.Jut ? (n4.Eat = n4.Gst(n4.filterButtonInfo.col, t4, n4._at, true), n4.Lat = n4.Dat.length, n4.Nst(n4.dataSource, false)) : (n4.Ust(n4.filterButtonInfo.col, t4, n4._at), n4.kst(n4.dataSource));
          }, n3.prototype.Wut = function(t4) {
            var n4, e3, i3, r2, o2, a2 = this, u2 = a2.filterButtonInfo, c2 = u2.rowFilter, f2 = a2.sheet, l2 = c2.Uoe(), h2 = f2.JS(l2);
            c2 && f2 && f2._B() && (n4 = f2.TB(h2, true, null), e3 = u2.col, i3 = { sheet: f2, sheetName: f2.name(), col: e3, ascending: t4, range: h2, compareFunction: Zt, groupSort: n4.groupSort, ignoreHidden: n4.ignoreHidden, cancel: false }, o2 = { tableName: r2 = c2.nM ? c2.nM.name() : Zt, colIndex: e3, compareFunction: i3.compareFunction, groupSort: i3.groupSort, ignoreHidden: i3.ignoreHidden, isAsc: t4, eventArgs: i3 }, (0, s.zA)("sortFilter", o2, f2));
          }, n3.prototype.Aot = function(t4, n4, e3) {
            var i3, r2, o2, a2, u2 = this, c2 = u2.filterButtonInfo, f2 = c2.rowFilter, l2 = u2.sheet;
            f2 && l2 && l2._B() && (e3 = e3 !== Zt && e3, i3 = c2.col, r2 = { sheet: l2, sheetName: l2.Zc, col: i3, ascending: e3, color: t4, isBackColor: n4, cancel: false }, a2 = { tableName: o2 = f2.nM ? f2.nM.name() : Zt, colIndex: i3, isAsc: e3, color: t4, isBackColor: n4, eventArgs: r2 }, (0, s.zA)("sortFilter", a2, l2));
          }, n3.prototype.but = function() {
            var t4 = (0, r.GC$)("#" + x), n4 = U + H + " " + V, e3 = false === this.Jut ? this.Lat : b(this.Dat) > 0;
            this.Bat || e3 ? (t4.prop("disabled", false), Nn(t4[0], n4)) : (t4.prop("disabled", true), An(t4[0], n4));
          }, n3;
        })(r.zc), n2.iut = Sn;
      }, "./dist/plugins/filter/filter.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/filter/filter-ns.js"), n2), e2("./dist/plugins/filter/filter-actions.js"), r(e2("./dist/plugins/filter/filter-ui.js"), n2), r(e2("./dist/plugins/filter/filter.js"), n2);
      }, "./dist/plugins/filter/filter.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $ = this && this.qKr || (et = function(t3, n3) {
          return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, et(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          et(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), tt = this && this.nJr || function() {
          return tt = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, tt.apply(this, arguments);
        }, nt = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, et;
        function it(t3) {
          var n3 = {};
          return t3.forEach((function(t4) {
            var e3 = t4.col, i3 = t4.visibleIndex;
            i3.forEach((function(t5) {
              n3[t5] ? n3[t5].push(e3) : n3[t5] = [e3];
            }));
          })), n3;
        }
        function rt(t3, n3, e3) {
          var r2, o2 = { cmd: t3, sheetName: e3.name(), cmdOption: n3 };
          e3.VJr ? (r2 = i2.Commands[o2.cmd]) && r2.execute(e3.parent, o2, 0) : e3.Qy().execute(o2);
        }
        function ot(t3, n3, e3, i3) {
          var r2, o2;
          for (o2 = 0; o2 < D(t3); o2++) if ((r2 = t3[o2]) && r2.row === n3 && r2.col === e3 && r2.sheetArea === i3) return r2;
          return b;
        }
        function at(t3, n3) {
          var e3, i3 = ft(t3), r2 = t3.compareType();
          2 === i3 || 7 === i3 ? (e3 = t3.art, -1 !== A(n3, "T") || e3 ? -1 === A(n3, "DT") && e3 && n3.push("DT") : n3.push("T")) : 3 === i3 ? 0 === r2 && -1 === A(n3, "BC") ? n3.push("BC") : 1 === r2 && -1 === A(n3, "FC") && n3.push("FC") : -1 === A(n3, "V") && n3.push("V");
        }
        function ut(t3) {
          var n3, e3, i3, r2, o2 = [];
          for (n3 = 0; n3 < D(t3); n3++) 0 === ft(e3 = t3[n3]) ? (i3 = e3.item1(), r2 = e3.item2(), i3 && at(i3, o2), r2 && at(r2, o2)) : at(e3, o2);
          return o2;
        }
        function st(t3) {
          return t3.getColumnCount();
        }
        function ct(t3, n3) {
          return t3.getRowCount(n3);
        }
        function ft(t3) {
          return t3.conType();
        }
        function lt(t3, n3, e3, i3) {
          var r2 = t3.getSpan(n3, e3, i3);
          return !r2 && t3.Cb && (r2 = t3.Cb.D7(n3, e3, i3)), r2;
        }
        function ht(t3) {
          return C(t3) ? t3 : t3.length >= 2 && "=" === t3[0] ? t3.substring(1) : "=" === t3 ? "" : t3;
        }
        function dt(t3) {
          return "number" == typeof t3 ? "number" : t3 instanceof Date || "string" == typeof t3 && 0 === t3.indexOf("/OADate(") && t3.indexOf(")") === t3.length - 2 ? "date" : "boolean" == typeof t3 ? "boolean" : "";
        }
        function vt(t3) {
          var n3 = t3.formula();
          return C(n3) && ("string" == typeof (n3 = t3.expected()) && (n3 = '"' + n3 + '"'), n3 instanceof Date && (n3 = m(n3) + "")), n3;
        }
        function pt(t3, n3, e3) {
          var i3, r2, o2, a2 = f(t3, "colorFilter");
          a2 && (i3 = h(a2.dxfId, 0), r2 = e3.getDxf(i3), o2 = l(a2.cellColor, true), n3.push(w(3, o2 ? 0 : 1, r2 && r2.backColor)));
        }
        function gt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, l2, d2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2 = f(t3, "filters");
          if (x2) {
            if (i3 = "1" === x2.blank, r2 = c(x2, "filter"), o2 = c(x2, "dateGroupItem"), i3 && (r2 || (r2 = []), r2.push({ n_: "filter", val: "" })), r2) for (a2 = 0, u2 = r2; a2 < u2.length; a2++) s2 = u2[a2], (l2 = w(2, 0, v(s2.val))).ignoreCase(false), l2.useWildCards(false), l2.ignoreBlank(i3), n3.push(l2);
            if (o2) for (d2 = 0, p2 = o2; d2 < p2.length; d2++) g2 = p2[d2], m2 = h(g2.day, 1), b2 = h(g2.hour, 0), y2 = h(g2.minute, 0), M2 = h(g2.month, 0), C2 = h(g2.second, 0), S2 = h(g2.year, 0), T2 = new Date(S2, M2 > 0 ? M2 - 1 : M2, m2, b2, y2, C2), (l2 = w(2, 0, e3.format(T2))).art = true, l2.urt = T2, l2.useWildCards(false), l2.ignoreBlank(false), n3.push(l2);
          }
        }
        function mt(t3, n3, e3) {
          var i3, r2, o2, a2 = { none: 0, equal: 0, lessThan: 4, lessThanOrEqual: 5, notEqual: 1, greaterThan: 2, greaterThanOrEqual: 3 };
          switch (t3) {
            case "string":
              i3 = 2;
              break;
            case "number":
              i3 = 1, r2 = parseFloat(e3), isNaN(r2) || (e3 = r2);
              break;
            case "date":
              i3 = 5, "string" == typeof e3 && 0 === e3.indexOf("/OADate(") ? (o2 = parseInt(e3.replace("/OADate(", ""), 10), e3 = g(o2)) : e3 = g(parseInt(e3, 10)), a2 = { none: 0, equal: 0, lessThan: 2, lessThanOrEqual: 3, notEqual: 1, greaterThan: 4, greaterThanOrEqual: 5 };
              break;
            default:
              i3 = 11;
          }
          return w(i3, a2[n3], e3);
        }
        function bt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, l2;
          function h2(t4, n4) {
            var i4, r3, o3, a3, u3 = "notEqual" === t4, s3 = n4.indexOf("*"), c2 = n4.lastIndexOf("*");
            return -1 !== s3 ? (s3 === n4.length - 1 && 0 !== s3 ? i4 = w(2, r3 = u3 ? 3 : 2, n4.substring(0, n4.length - 1)) : 0 === s3 && s3 === c2 ? i4 = w(2, r3 = u3 ? 5 : 4, n4.substring(1)) : (o3 = u3 ? 7 : 6, -1 !== s3 && -1 !== c2 && (n4 = n4.substr(1, n4.length - 2)), i4 = w(2, o3, n4)), i4.ignoreCase(true)) : i4 = mt(a3 = dt(e3), t4 || "none", n4), i4;
          }
          (i3 = f(t3, "customFilters")) && (r2 = i3.and, a2 = (o2 = c(i3, "customFilter"))[0], u2 = o2[1], s2 = void 0, a2 && (s2 = h2(a2.operator, a2.val)), u2 ? (l2 = "1" === r2 ? 1 : 0, n3.push(w(0, l2, b, b, b, b, b, s2, h2(u2.operator, u2.val)))) : n3.push(s2));
        }
        function yt(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2 = f(t3, "dynamicFilter");
          c2 && (r2 = z[c2.type], o2 = c2.val, a2 = c2.maxVal, u2 = new i2.Range(e3.row, e3.col, e3.rowCount, 1), s2 = void 0, 100 === r2 || 101 === r2 ? s2 = w(10, b, b, b, b, r2 - 100, [u2]) : 16 === r2 ? (s2 = w(6, b, 0)).expectTypeId(6) : r2 >= 17 && r2 <= 20 ? (s2 = w(6, b, r2 - 17)).expectTypeId(2) : r2 >= 21 && r2 <= 32 ? (s2 = w(6, b, r2 - 21)).expectTypeId(3) : r2 >= 0 && r2 <= 15 && (s2 = w(6, b, r2)), s2 && (C(o2) || (s2.value = o2), C(a2) || (s2.maxValue = a2), n3.push(s2)));
        }
        function wt(t3, n3) {
          var e3, i3, r2, o2, a2 = f(t3, "top10");
          a2 && (e3 = d(a2.val, NaN), i3 = l(a2.percent, false), r2 = l(a2.top, true) ? 0 : 1, (o2 = w(8, b, e3, b, b, r2)).isPercent(i3), n3.push(o2));
        }
        function Mt(t3, n3, e3, i3) {
          var r2, o2, a2;
          if (1 === e3.colCount) {
            for (r2 = [], a2 = e3.row; a2 < e3.row + e3.rowCount; a2++) o2 = t3.getValue(a2, e3.col), C(o2) || r2.push(o2);
            return r2.sort((function(t4, n4) {
              return i3 ? n4 - t4 : t4 - n4;
            })), r2[n3 - 1];
          }
        }
        function Ct(t3) {
          var n3, e3, i3, r2, a2, u2 = [], s2 = [];
          for (s2.push(t3); s2.length > 0; ) 0 === (i3 = (e3 = (n3 = s2.shift()) instanceof o.Condition) ? n3.conType() : n3.conType) ? (r2 = e3 ? n3.item1() : n3.item1, a2 = e3 ? n3.item2() : n3.item2, C(r2) || s2.push(r2), C(a2) || s2.push(a2)) : u2.push(n3);
          return u2;
        }
        function St(t3, n3) {
          var e3 = t3.expected(), i3 = 0 === t3.compareType(), r2 = i3 ? { backColor: e3 } : { backColor: { type: 1, patternColor: e3 } }, o2 = { n_: "colorFilter", dxfId: n3.getDxfIndex(r2) };
          return i3 || (o2.cellColor = "0"), o2;
        }
        function Tt(t3, n3, e3) {
          var i3 = { n_: "top10" }, r2 = 1 === n3.type(), o2 = n3.isPercent(), a2 = n3.expected(), u2 = NaN;
          return r2 && (i3.top = "0"), o2 && (i3.percent = "1"), C(a2) || (o2 && (a2 = Math.ceil(e3.rowCount % a2 / 100)), C(e3) || (u2 = Mt(t3, a2, e3, !r2))), isNaN(a2) || (i3.val = a2), isNaN(u2) || (i3.filterVal = u2), i3;
        }
        function xt(t3, n3, e3, i3, r2) {
          var o2, a2;
          return C(t3) ? b : (o2 = V[t3], 6 === n3 && (o2 = Y[e3][t3]), (a2 = { n_: "dynamicFilter" }).type = o2 && "null" !== o2 ? o2 : "null", o2 && "Q" !== o2[0] && "M" !== o2[0] && (C(i3) || (a2.val = i3), C(r2) || (a2.maxVal = r2)), a2);
        }
        function At(t3, n3, e3) {
          var i3, r2, o2, a2 = n3.type(), u2 = n3.conType(), s2 = n3.expectTypeId() || 0, c2 = 0, f2 = 0;
          for (r2 = 0; r2 < e3.rowCount; r2++) o2 = parseFloat(t3.getValue(e3.row + r2, e3.col)), isNaN(o2) || (c2 += o2, f2++);
          return f2 > 0 && (i3 = c2 / f2), xt(a2, u2, s2, i3);
        }
        function It(t3) {
          var n3 = /* @__PURE__ */ new Date(), e3 = n3.getDay(), i3 = n3.getDate(), r2 = new Date(n3), o2 = new Date(n3);
          switch (t3) {
            case 3:
              r2.setDate(i3 - 6);
              break;
            case 1:
              r2.setDate(i3 - 1);
              break;
            case 0:
              break;
            case 2:
              r2.setDate(i3 + 1);
              break;
            case 8:
              r2.setDate(i3 - e3 - 7), o2.setDate(i3 - e3 - 1);
              break;
            case 7:
              r2.setDate(i3 - e3), o2.setDate(i3 - e3 + 6);
              break;
            case 9:
              r2.setDate(i3 - e3 + 7), o2.setDate(i3 - e3 + 13);
              break;
            case 5:
              r2.setDate(1), r2.setMonth(r2.getMonth() - 1), o2.setDate(0);
              break;
            case 4:
              r2.setDate(1), o2.setMonth(o2.getMonth() + 1), o2.setDate(0);
              break;
            case 6:
              r2.setDate(1), r2.setMonth(r2.getMonth() + 1), o2.setMonth(o2.getMonth() + 2), o2.setDate(0);
          }
          return r2.setHours(0), r2.setMinutes(0), r2.setSeconds(0), o2.setHours(23), o2.setMinutes(59), o2.setSeconds(59), { from: r2, to: o2 };
        }
        function kt(t3) {
          var n3, e3, i3, r2 = t3.expected(), o2 = t3.conType(), a2 = t3.expectTypeId();
          return r2 >= 0 && r2 <= 15 || r2 >= 21 && r2 <= 32 ? (i3 = It(r2)).from && i3.to && (n3 = i3.from, e3 = i3.to) : r2 = -1, xt(r2, o2, a2, n3, e3);
        }
        function Nt(t3, n3) {
          var e3 = { n_: "customFilter" }, i3 = { "-1": "none", 0: "equal", 4: "lessThan", 5: "lessThanOrEqual", 1: "notEqual", 2: "greaterThan", 3: "greaterThanOrEqual" };
          return "none" !== (t3 = i3[t3]) && (e3.operator = t3), e3.val = "" + n3, e3;
        }
        function jt(t3, n3, e3) {
          if (C(t3) && C(e3)) return b;
          var i3 = { n_: "customFilters" };
          return n3 && (i3.and = "1"), C(t3) || (i3.c_ || (i3.c_ = []), i3.c_.push(t3)), C(e3) || (i3.c_ || (i3.c_ = []), i3.c_.push(e3)), i3;
        }
        function Dt(t3, n3, e3) {
          var i3, r2, o2, a2 = { n_: "filters", c_: [] };
          return e3 && (a2.blank = "1"), (t3 = [].concat(t3)) && t3.length > 0 && (i3 = [], r2 = [], n3 || t3.forEach((function(t4) {
            var n4, e4 = t4.expected();
            C(e4) || ("" !== e4 ? (n4 = { n_: "filter", val: p(e4) }, i3.push(n4)) : a2.blank = "1");
          })), i3.length > 0 && (r2 = r2.concat(i3)), o2 = [], n3 && (t3.forEach((function(t4) {
            o2.push(Et(t4.expected()));
          })), o2.length > 0 && (r2 = r2.concat(o2))), r2.length > 0 && (a2.c_ = r2)), a2;
        }
        function _t(t3, n3) {
          var e3, i3, r2, o2 = t3.compareType();
          if (!C(o2)) return e3 = t3.expected(), i3 = void 0, r2 = Nt(o2, i3 = C(e3) ? ht(t3.D5) + "" : e3 + ""), n3 ? r2 : jt(r2);
        }
        function Ot(t3, n3) {
          var e3, i3 = t3.expected(), r2 = -1;
          switch (t3.compareType()) {
            case 0:
              return Dt(t3);
            case 1:
              r2 = 1;
              break;
            case 2:
              i3 += "*";
              break;
            case 3:
              r2 = 1, i3 += "*";
              break;
            case 4:
              i3 = "*" + i3;
              break;
            case 5:
              r2 = 1, i3 = "*" + i3;
              break;
            case 6:
              i3 = "*" + i3 + "*";
              break;
            case 7:
              r2 = 1, i3 = "*" + i3 + "*";
          }
          return e3 = Nt("" + r2, i3), n3 ? e3 : jt(e3);
        }
        function Et(t3, n3) {
          var e3 = { n_: "dateGroupItem" }, i3 = t3.getFullYear(), r2 = t3.getMonth() + 1, o2 = t3.getDate(), a2 = t3.getHours(), u2 = t3.getMinutes(), s2 = t3.getSeconds();
          return i3 > 0 && (e3.year = i3), r2 >= 0 && r2 < 12 && (e3.month = r2), o2 > 0 && o2 < 32 && (e3.day = o2), a2 < 24 && (e3.hour = a2), u2 < 60 && (e3.minute = u2), s2 < 60 && (e3.second = s2), e3.dateTimeGrouping = "day", e3;
        }
        function Rt(t3, n3) {
          var e3, i3, r2, o2 = t3.compareType();
          if (0 === o2) return Dt(t3, n3);
          switch (e3 = -1, o2) {
            case 0:
            default:
              break;
            case 1:
              e3 = 1;
              break;
            case 2:
              e3 = 4;
              break;
            case 3:
              e3 = 5;
              break;
            case 4:
              e3 = 2;
              break;
            case 5:
              e3 = 3;
          }
          return -1 !== e3 ? (r2 = Nt("" + e3, i3 = vt(t3)), n3 ? r2 : jt(r2)) : void 0;
        }
        function Lt(t3, n3) {
          return t3.every((function(t4) {
            return t4.conType() === n3;
          }));
        }
        function Ft(t3) {
          var n3 = -1;
          switch (t3) {
            case 0:
            case 2:
            case 4:
            case 6:
            default:
              n3 = 0;
              break;
            case 1:
            case 3:
            case 5:
            case 7:
              n3 = 1;
          }
          return "" + n3;
        }
        function Bt(t3, n3) {
          switch (n3) {
            case 0:
            case 1:
            default:
              return t3;
            case 2:
            case 3:
              return t3.concat("*");
            case 4:
            case 5:
              return "*".concat(t3);
            case 6:
            case 7:
              return "*".concat(t3).concat("*");
          }
        }
        function Pt(t3, n3, e3, i3, r2) {
          if (!C(n3)) {
            var o2 = n3.conType();
            if (3 === o2) return St(n3, i3);
            if (8 === o2) return Tt(t3, n3, e3);
            if (10 === o2) return At(t3, n3, e3);
            if (6 === o2) return kt(n3);
            if (11 === o2 || 1 === o2) return _t(n3, r2);
            if (2 === o2) return Ot(n3, r2);
            if (5 === o2) return Rt(n3, r2);
          }
        }
        function Gt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2 = Ct(t3), w2 = y2.length, M2 = t3.compareType();
          if (0 === M2) {
            if (Lt(y2, 5)) return Dt(y2, true);
            if (Lt(y2, 2)) {
              if (r2 = false, w2 <= 2) {
                for (o2 = 0, a2 = y2; o2 < a2.length; o2++) if (0 !== (u2 = a2[o2]).compareType()) {
                  r2 = true;
                  break;
                }
              }
              return r2 ? (c2 = (s2 = y2[0]).compareType(), f2 = s2.expected(), l2 = Nt(Ft(c2), C(f2) ? ht(s2.D5) : Bt(f2, c2)), h2 = void 0, 2 === w2 && (c2 = (s2 = y2[1]).compareType(), f2 = s2.expected(), h2 = Nt(Ft(c2), C(f2) ? ht(s2.D5) : Bt(f2, c2))), jt(l2, false, h2)) : Dt(y2);
            }
            if (Lt(y2, 11)) {
              if (d2 = true, y2.length <= 2 && (d2 = false), d2) return Dt(y2);
              if (y2.length > 0) return p2 = (v2 = y2[0]).compareType(), f2 = v2.expected(), l2 = void 0, h2 = void 0, l2 = Nt(p2, C(f2) ? ht(v2.D5) : f2), 2 === w2 && (p2 = (v2 = y2[1]).compareType(), f2 = v2.expected(), h2 = Nt(p2, C(f2) ? ht(v2.D5) : f2)), jt(l2, false, h2);
            }
            return g2 = Pt(n3, y2[0], e3, i3, true), m2 = void 0, w2 > 1 && (m2 = Pt(n3, y2[1], e3, i3, true)), jt(g2, false, m2);
          }
          if (2 === w2) return l2 = Pt(n3, y2[0], e3, i3, true), C(l2) ? b : (h2 = Pt(n3, y2[1], e3, i3, true), C(h2) ? b : jt(l2, true, h2));
        }
        function Ut(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2;
          if (t3 && !C(t3.ascending) && !C(t3.index)) return o2 = { n_: "sortState", ref: r2 = i2.range_parser.getRangeString([new i2.Range(n3.row, t3.index, n3.rowCount, 1)]) }, a2 = { n_: "sortCondition", ref: r2 }, t3.ascending || (a2.descending = 1), (u2 = t3.color) !== y && (s2 = t3.isBackColor, "{" === u2[0] && (u2 = JSON.parse(u2)), c2 = s2 ? { backColor: u2 } : { foreColor: u2 }, a2.sortBy = s2 ? i2.SortBy.cellColor : i2.SortBy.fontColor, a2.dxfId = e3.getDxfIndex(c2)), o2.c_ || (o2.c_ = []), o2.c_.push(a2), o2;
        }
        function Ht(t3) {
          for (var n3 in t3) if (t3.hasOwnProperty(n3) && !t3[n3]) return false;
          return true;
        }
        function Vt(t3, e3, i3) {
          var r2, o2, a2, u2;
          for (r2 = 0; r2 < D(e3); r2++) C(e3[r2]) || (a2 = (o2 = e3[r2]).conditions, t3[u2 = o2.index] = (0, n2.fromConditions)(a2, i3));
        }
        function zt(t3, e3) {
          var i3 = [];
          return t3.forEach((function(t4, r2) {
            t4 && i3.push({ index: r2, conditions: (0, n2.toConditions)(t4, e3) });
          })), i3;
        }
        function Yt(t3, n3, e3) {
          var i3, r2, o2;
          return !t3 || (i3 = t3.Mct, !D(i3) || (r2 = t3._ct[n3] || [], (o2 = i3.filter((function(t4) {
            return t4 !== e3;
          }))).every((function(t4) {
            return r2.some((function(n4) {
              return n4 === t4;
            }));
          }))));
        }
        function Zt(t3) {
          var n3, e3, i3;
          if (!t3) return t3;
          for (n3 = " ", e3 = 0; e3 < t3.length && t3[e3] === n3; ) e3++;
          for (i3 = t3.length - 1; i3 >= 0 && t3[i3] === n3; ) i3--;
          return e3 > i3 ? "" : t3.slice(e3, i3 + 1);
        }
        function Wt(t3) {
          return t3.lossless || (t3.lossless = {}), t3.lossless.definedNames || (t3.lossless.definedNames = []), t3.lossless.definedNames;
        }
        function Qt(t3, n3) {
          var e3, r2, o2, a2, u2, s2 = n3.IB;
          n3 && s2 && s2.range && (e3 = n3.name(), r2 = Wt(t3), o2 = s2.f8 ? n3.frozenRowCount() : 0, a2 = on(n3, s2.range, o2), (u2 = (0, i2.getAbsoluteRangeText)(a2.row, a2.row + a2.rowCount, a2.col, a2.col + a2.colCount, e3)) && r2.push({ name: "_xlnm._FilterDatabase", formula: u2 }));
        }
        function Kt(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
          if (!n3) return null;
          if (e3 = t3.getRowCount(), i3 = t3.getColumnCount(), o2 = (r2 = Jt(t3, n3, e3, i3)).row, a2 = r2.col, u2 = r2.rowCount, s2 = r2.colCount, c2 = t3.tables, C(c2)) return null;
          for (f2 = o2; f2 < o2 + u2; f2++) for (l2 = a2; l2 < a2 + s2; l2++) if (h2 = c2.find(f2, l2)) return h2;
          return null;
        }
        function Jt(t3, n3, e3, r2) {
          var o2 = n3.row, a2 = n3.col, u2 = n3.rowCount, s2 = n3.colCount;
          return e3 || (e3 = t3.getRowCount()), r2 || (r2 = t3.getColumnCount()), -1 === o2 && (o2 = 0, u2 = e3), -1 === a2 && (a2 = 0, s2 = r2), u2 = o2 + u2 > e3 ? e3 - o2 : u2, s2 = a2 + s2 > r2 ? r2 - a2 : s2, new i2.Range(o2, a2, u2, s2);
        }
        function Xt(t3) {
          return t3 instanceof o.Condition;
        }
        function qt(t3, n3, e3) {
          var i3, r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = t3.expected(), m2 = t3.conType(), b2 = e3 && e3.isDateFieldListFilter;
          if ("string" == typeof g2 && (g2 = g2.split(String.fromCharCode(160)).join(" ")), t3.art && m2 === o.ConditionType.textCondition && (g2 = t3.urt, C(t3.urt) || (m2 = o.ConditionType.dateCondition, b2 = true)), m2 === o.ConditionType.numberCondition) return [{ col: n3, operator: (i3 = { 0: "eq", 1: "neq", 2: "gt", 3: "gte", 4: "lt", 5: "lte" })[t3.compareType()], value: g2, ort: b2 }];
          if (m2 === o.ConditionType.cellValueCondition) return [{ col: n3, operator: (i3 = { 0: "eq", 1: "neq", 2: "gt", 3: "gte", 4: "lt", 5: "lte" })[t3.compareType()], value: g2, ort: b2 }];
          if (m2 === o.ConditionType.relationCondition) return r2 = qt(t3.item1(), n3), i3 = { 0: "or", 1: "and" }, (a2 = qt(t3.item2(), n3))[0].relation = i3[t3.compareType()], r2.concat(a2);
          if (m2 === o.ConditionType.textCondition) return [{ col: n3, operator: (i3 = { 0: "eq", 1: "neq", 2: "startswith", 3: "doesnotstartwith", 4: "endswith", 5: "doesnotendwith", 6: "contains", 7: "doesnotcontain" })[t3.compareType()], value: g2, ort: b2 }];
          if (m2 === o.ConditionType.dateCondition) switch (u2 = t3.compareType(), s2 = void 0, c2 = void 0, r2 = void 0, a2 = void 0, f2 = g2.setHours(0, 0, 0, 0), l2 = g2.setHours(23, 59, 59, 999), u2) {
            case 0:
              return s2 = new o.Condition(o.ConditionType.numberCondition, { compareType: o.GeneralComparisonOperators.greaterThanOrEqualsTo, expected: f2 }), c2 = new o.Condition(o.ConditionType.numberCondition, { compareType: o.GeneralComparisonOperators.lessThanOrEqualsTo, expected: l2 }), r2 = qt(s2, n3, { isDateFieldListFilter: b2 }), (a2 = qt(c2, n3, { isDateFieldListFilter: b2 }))[0].relation = "and", r2.concat(a2);
            case 1:
              return s2 = new o.Condition(o.ConditionType.numberCondition, { compareType: o.GeneralComparisonOperators.greaterThan, expected: l2 }), c2 = new o.Condition(o.ConditionType.numberCondition, { compareType: o.GeneralComparisonOperators.lessThan, expected: f2 }), r2 = qt(s2, n3, { isDateFieldListFilter: b2 }), (a2 = qt(c2, n3, { isDateFieldListFilter: b2 }))[0].relation = "or", r2.concat(a2);
            case 2:
              return [{ col: n3, operator: "lt", value: f2, ort: b2 }];
            case 3:
              return [{ col: n3, operator: "lte", value: l2, ort: b2 }];
            case 4:
              return [{ col: n3, operator: "gt", value: l2, ort: b2 }];
            case 5:
              return [{ col: n3, operator: "gte", value: f2, ort: b2 }];
            default:
              return [];
          }
          else {
            if (m2 === o.ConditionType.top10Condition) return [{ col: n3, operator: (i3 = { 0: "top", 1: "bottom" })[t3.type()], value: g2, ort: b2 }];
            if (m2 === o.ConditionType.averageCondition) return [{ col: n3, operator: (i3 = { 0: "above", 1: "below" })[t3.type()], value: g2, ort: b2 }];
            if (m2 === o.ConditionType.dateExCondition) return (h2 = t3.expectTypeId()) === o.DateExConditionExpectType.dateOccurring || h2 === o.DateExConditionExpectType.yearToDate ? (f2 = void 0, l2 = void 0, h2 === o.DateExConditionExpectType.dateOccurring ? (f2 = (d2 = t3.getExConditionDateScope(g2)).from, l2 = d2.to) : (f2 = /* @__PURE__ */ new Date(), l2 = /* @__PURE__ */ new Date(), f2.setMonth(0, 1), f2.setHours(0, 0, 0, 0), l2.setHours(23, 59, 59, 999)), v2 = new o.Condition(o.ConditionType.dateCondition, { compareType: o.DateCompareType.afterEqualsTo, expected: f2 }), p2 = new o.Condition(o.ConditionType.dateCondition, { compareType: o.DateCompareType.beforeEqualsTo, expected: l2 }), r2 = qt(v2, n3), (a2 = qt(p2, n3))[0].relation = "and", r2.concat(a2)) : [{ col: n3, operator: (i3 = { 0: "date", 1: "year", 2: "quarter", 3: "month", 4: "week", 5: "day", 6: "yearToDate" })[h2], value: g2, ort: b2 }];
          }
          return [];
        }
        function $t(t3, n3, e3, r2) {
          var o2 = t3.typeName, a2, u2;
          o2 && o2 !== _ ? (a2 = (0, i2.getTypeFromString)(o2)) && (u2 = new a2()) : u2 = new K(), u2 && (n3.IB = u2, u2.Mf = n3, u2.fromJSON(t3, e3), u2.sct = !!r2, r2 ? u2.reFilter() : u2.Mke());
        }
        function tn(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2 = t3.lossless && t3.lossless.typeName;
          f2 && f2 !== _ ? (u2 = (0, i2.getTypeFromString)(f2)) && (s2 = new u2()) : s2 = new K(), s2 && (n3.IB = s2, s2.Mf = n3, s2.yh(t3, void 0, e3, o2, a2), (c2 = n3.parent) && true !== c2.options.allowAutoExtendFilterRange && (c2.options.allowAutoExtendFilterRange = true), s2.sct = !!r2, r2 ? s2.reFilter() : s2.Mke());
        }
        function nn(t3) {
          t3 && (t3.bind("shiftCellsDown" + O, (function(n3, e3) {
            var i3, r2, o2, a2, u2 = t3.rowFilter();
            u2 && u2.range && (i3 = e3.row, r2 = e3.col, o2 = e3.changedRowCount, a2 = e3.changedColCount, u2.range.row + u2.range.rowCount === i3 && (i3 -= 1), u2.range.col + u2.range.colCount === r2 && 1 !== u2.range.colCount && (r2 -= 1), -1 !== r2 && u2.range.contains(i3, r2, 1, 1) && (o2 > 0 ? u2.JO(i3, o2) : o2 < 0 && u2.xP(i3, o2), a2 > 0 ? u2.qO(r2, a2) : a2 < 0 && u2.NP(r2, a2)));
          })), t3.bind(i2.Events.CellChanged + O, (function() {
            en(t3, true);
          })), t3.bind(i2.Events.RangeChanged + O, (function() {
            en(t3, true);
          })), t3.bind(i2.Events.RowChanged + O, (function() {
            en(t3, true);
          })), t3.bind(i2.Events.ColumnChanged + O, (function() {
            en(t3, true);
          })));
        }
        function en(t3, n3) {
          var e3 = t3.rowFilter();
          e3 && (e3.ict = n3);
        }
        function rn(t3) {
          t3 && (t3.unbind("shiftCellsDown" + O), t3.unbind(i2.Events.CellChanged + O), t3.unbind(i2.Events.RangeChanged + O), t3.unbind(i2.Events.RowChanged + O), t3.unbind(i2.Events.ColumnChanged + O));
        }
        function on(t3, n3, e3) {
          void 0 === e3 && (e3 = 0);
          var i3 = n3.row, r2 = n3.col, o2 = n3.rowCount, a2 = n3.colCount;
          return -1 === i3 && (i3 = e3, o2 = t3.getRowCount()), -1 === r2 && (r2 = 0, a2 = t3.getColumnCount()), i3 <= 0 ? i3 = 0 : (i3--, o2 += 1), M(i3, r2, o2, a2);
        }
        function an(t3) {
          var n3, e3 = null === (n3 = t3.rowFilter()) || void 0 === n3 ? void 0 : n3.range;
          return e3 ? new i2.Range(e3.row, e3.col, e3.rowCount, e3.colCount) : b;
        }
        function un(t3, n3) {
          n3 && (t3.filterRowsVisibleInfo = n3);
        }
        function sn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = -1, l2 = null === (e3 = t3.filterRowsVisibleInfo) || void 0 === e3 ? void 0 : e3.rowsVisibleInfo, h2 = null == n3 ? void 0 : n3.rowsVisibleInfo;
          if (l2 && h2) {
            for (i3 = Object.keys(l2), r2 = Object.keys(h2), o2 = 0, a2 = i3; o2 < a2.length; o2++) if (l2[u2 = a2[o2]] !== r2[u2]) {
              f2 = +u2;
              break;
            }
            for (s2 = 0, c2 = r2; s2 < c2.length; s2++) if (r2[u2 = c2[s2]] !== l2[u2]) {
              (f2 < 0 || f2 > +u2) && (f2 = +u2);
              break;
            }
          }
          return f2;
        }
        function cn(t3, n3) {
          var e3 = t3.vw(n3);
          -1 !== e3 && e3 < t3.Tb && (t3.Tb = e3, t3.ly = 0);
        }
        function fn(t3) {
          var n3, e3, i3;
          return !C(t3) && (n3 = t3.type(), 10 !== (e3 = t3.conType()) || (i3 = V[n3], !C(i3)));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.HideRowFilter = n2.RowFilterBase = n2.trimHalfSpace = n2.H_r = n2.toConditions = n2.z_r = n2.fromConditions = n2.FilterActionType = n2.zA = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("ConditionalFormatting"), a = e2("./dist/plugins/filter/filter-ui.js"), u = e2("./dist/plugins/filter/filter-ns.js"), s = e2("./dist/plugins/filter/filter-button-images.js"), c = i2.mt.go, f = i2.mt.xr, l = i2.NodeHelper.ur, h = i2.NodeHelper.sr, d = i2.NodeHelper.ar, v = i2.mt.n1, p = i2.mt.vo, g = r.Common.ct.Y0, m = r.Common.ct.o0, b = null, y = void 0, w = o.aJ, M = i2.Ec, C = r.Common.lt.ht, S = r.Common.lt.Nh, T = parseInt, x = r.Common.Uf, A = x.hD, I = x.OS, k = Math.max, N = Math.min, j = x.VP, D = x.tR, _ = "HideRowFilter", O = ".filter", E = i2.GC$, R = E.each, L = new r.Common.ResourceManager(u.SR, "Filter"), F = L.getResource.bind(L), B = i2.UsedRangeUtil.vh, P = i2.UsedRangeUtil.hh, n2.zA = rt, G = { rowFilter: function(t3) {
          var n3, e3 = this, r2 = e3.IB;
          return D(arguments) ? t3 && Kt(e3, t3.range) ? r2 : (e3.Ut.cct(r2, 0), n3 = e3.THr({ type: "setFilter" }), r2 && r2.reset(), (r2 = e3.IB = t3) ? e3.IB.Mf = e3 : i2.Worksheet.et(e3, "onLayoutChanged", { changeType: "rowFilterCleared" }), (null == r2 ? void 0 : r2.$Dr) ? null == r2 || r2.$Dr({ type: "setFilter", filter: r2 }, n3) : e3.$Dr({ type: "setFilter", filter: r2 }, n3), e3.zw(), e3.Ut.cct(r2, 0, y, true), e3) : r2;
        }, fct: function() {
          var t3, n3, e3, i3, r2, o2, u2, s2, c2, f2 = this, l2 = [], h2 = f2.rowFilter(), d2 = h2 && h2.range, v2 = f2.tables;
          if (d2 && (i3 = d2.row, o2 = void 0, u2 = (r2 = d2.col) < 0 ? st(f2) : r2 + d2.colCount, n3 = r2 < 0 ? 0 : r2, i3 < 1 ? (t3 = ct(f2, 1) - 1, o2 = 1) : (t3 = i3 - 1, o2 = 3), t3 >= 0)) for (; n3 < u2; ) h2.filterButtonVisible(n3) ? ((e3 = new a.rut(h2)).sheetArea = o2, e3.row = t3, (s2 = lt(f2, t3, n3, o2)) ? (e3.row = s2.row, e3.col = s2.col, n3 += s2.colCount) : (e3.col = n3, n3++), l2.push(e3)) : n3++;
          return v2 && (c2 = v2.all(), R(c2, (function(i4, r3) {
            if (t3 = r3.headerIndex(), r3 && r3.showHeader() && t3 >= 0) {
              var o3 = r3.range(), u3 = void 0;
              for (u3 = 0; u3 < o3.colCount; u3++) n3 = o3.col + u3, r3.filterButtonVisible(u3) && (e3 = new a.rut(r3.rowFilter(), t3, n3, 3), l2.push(e3));
            }
          }))), l2;
        }, AO: function() {
          var t3 = this, n3 = t3.lct;
          return n3 || (n3 = t3.lct = t3.fct()), n3;
        }, XT: function(t3, n3) {
          var e3 = this.filterRowsVisibleInfo;
          return C(n3) && (n3 = 3), !(3 !== n3 && 2 !== n3 || !e3 || e3.hct(t3));
        }, iA: function() {
          return this.filterRowsVisibleInfo.dct();
        }, an: function(t3, n3, e3) {
          var i3, r2, o2 = this, a2 = o2.zoom(), u2 = o2.parent, s2 = a2 > 1 ? 1 : a2, c2 = 3 === n3 || n3 === y ? o2.defaults.rowHeight : o2.defaults.colHeaderRowHeight, f2 = T((Math.min(20, c2) * s2).toString());
          return u2 && u2.options.useTouchLayout && (f2 = T((c2 * a2).toString())), i3 = { x: o2.options.rightToLeft ? t3.x : t3.x + t3.width - f2, y: t3.y + t3.height - f2, width: f2, height: f2 }, e3 && 0 !== e3.columnHeaderFitMode && (r2 = e3.cellWidth) && (i3.x = t3.x + r2 - f2), i3;
        } }, E.extend(i2.Worksheet.prototype, G), (function(t3) {
          t3[t3.filter = 0] = "filter", t3[t3.unfilter = 1] = "unfilter";
        })(U = n2.FilterActionType || (n2.FilterActionType = {})), H = { sortByValue: true, sortByColor: true, filterByColor: true, filterByValue: true, listFilterArea: true }, V = { "-1": "null", 0: "aboveAverage", 1: "belowAverage" }, z = { null: -1, aboveAverage: 100, belowAverage: 101, tomorrow: 2, today: 0, yesterday: 1, nextWeek: 9, thisWeek: 7, lastWeek: 8, nextMonth: 6, thisMonth: 4, lastMonth: 5, nextQuarter: 10, thisQuarter: 11, lastQuarter: 12, nextYear: 13, thisYear: 14, lastYear: 15, yearToDate: 16, Q1: 17, Q2: 18, Q3: 19, Q4: 20, M1: 21, M2: 22, M3: 23, M4: 24, M5: 25, M6: 26, M7: 27, M8: 28, M9: 29, M10: 30, M11: 31, M12: 32 }, Y = [["today", "yesterday", "tomorrow", "lastWeek", "thisMonth", "lastMonth", "nextMonth", "thisWeek", "lastWeek", "nextWeek", "nextQuarter", "thisQuarter", "lastQuarter", "nextYear", "thisYear", "lastYear"], [], ["Q1", "Q2", "Q3", "Q4"], ["M1", "M2", "M3", "M4", "M5", "M6", "M7", "M8", "M9", "M10", "M11", "M12"], [], [], ["yearToDate"]], Z = function(t3, n3) {
          var e3, i3, r2, o2 = [];
          for (e3 = 0; e3 < D(t3); e3++) (i3 = t3[e3]) && (r2 = void 0, false === i3.isCondition ? r2 = i3 : (r2 = w()).fromJSON(i3, n3), o2.push(r2));
          return o2;
        }, n2.fromConditions = Z, n2.z_r = Vt, W = function(t3, n3) {
          var e3 = [], i3;
          for (i3 = 0; i3 < D(t3); i3++) e3.push(t3[i3] instanceof o.Condition ? t3[i3].toJSON(y, n3) : tt(tt({}, t3[i3]), { isCondition: false }));
          return e3;
        }, n2.toConditions = W, n2.H_r = zt, n2.trimHalfSpace = Zt, Q = (function() {
          function t3(t4) {
            var n3 = this;
            n3.range = t4, n3.ict = true, t4 && (n3.rct = new i2.Range(t4.row, t4.col, t4.rowCount, t4.colCount)), n3.reset(), n3.typeName = "", n3.filterHandler = b, n3.oct();
          }
          return t3.prototype.getUsedRange = function() {
            var t4 = this, n3 = t4.extendedRange;
            return P(n3);
          }, t3.prototype.oct = function() {
            var t4 = this;
            Object.defineProperty(t4, "extendedRange", { get: function() {
              return t4.vct() ? (t4.ict && t4.mct(), t4.rct) : t4.range;
            }, set: function(n3) {
              t4.rct = n3, t4.vct() && t4.mct();
            } });
          }, t3.prototype.vct = function() {
            var t4 = this, n3 = t4.Mf, e3 = n3 && n3.parent;
            return e3 && e3.options.allowAutoExtendFilterRange && t4.act;
          }, t3.prototype.Ahe = function() {
            var t4, n3, e3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.Mf, l2 = null == f2 ? void 0 : f2.Ut, h2 = c2.range;
            if (h2 && l2) {
              for (n3 = (t4 = new i2.Range(h2.row, h2.col, h2.rowCount, h2.colCount)).row, e3 = t4.col, r2 = t4.colCount, u2 = a2 = n3 + (o2 = h2.rowCount), s2 = -1; c2.gct(l2, u2, e3, 1, r2); ) u2++;
              return s2 = k(a2, u2), t4.rowCount = s2 - n3, t4;
            }
          }, t3.prototype.mct = function() {
            var t4, n3 = this, e3 = n3.Mf, i3 = null == e3 ? void 0 : e3.Ut, r2 = n3.range;
            r2 && i3 && (t4 = n3.rct, n3.rct = n3.Ahe(), n3.Zuo(t4), n3.ict = false);
          }, t3.prototype.Zuo = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.rct;
            if (r2.isFiltered() && o2 && t4) {
              if (n3 = t4.row + t4.rowCount, (e3 = o2.row + o2.rowCount) > n3) for (i3 = n3; i3 < e3; i3++) r2._ct[i3] = [].concat(r2.Mct);
              else if (e3 < n3) for (i3 = e3; i3 < n3; i3++) delete r2._ct[i3];
            }
          }, t3.prototype.L0 = function() {
            this.Mf = b, this.nM = b;
          }, t3.prototype.gct = function(t4, n3, e3, r2, o2) {
            var a2, u2;
            for (a2 = n3; a2 < n3 + r2; a2++) for (u2 = e3; u2 < e3 + o2; u2++) if (!C(t4.getValue(a2, u2, i2.SheetArea.viewport))) return true;
            return false;
          }, t3.prototype.filterButtonVisible = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2 = this, M2 = w2.Uoe();
            if (!C(M2)) {
              if (a2 = w2.Mf, u2 = w2.KUr(M2), s2 = w2.bct(M2, a2), c2 = arguments, f2 = w2.srt, l2 = D(c2), d2 = typeof (h2 = c2[0]), 0 === l2) {
                for (v2 = u2; v2 < s2; v2++) if (f2[v2] || f2[v2] === y) return true;
                return false;
              }
              if (p2 = t4, 1 === l2) {
                if ("number" === d2) return (g2 = p2 >= u2 && p2 < s2) && f2[p2] === y && (f2[p2] = true, w2.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "update", updateItems: (e3 = {}, e3[p2] = true, e3), oldValue: (i3 = {}, i3[p2] = y, i3) })), f2[p2];
                if ("boolean" === d2) {
                  for (a2 && a2.Ut.cct(w2, 3), m2 = w2.THr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: w2.srt }), v2 = u2; v2 < s2; v2++) f2[v2] = h2;
                  w2.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: w2.srt }, m2), a2 && a2.Ut.cct(w2, 3, y, true);
                }
              } else 2 === l2 && p2 >= u2 && p2 < s2 && (a2 && a2.Ut.cct(w2, 4, t4), b2 = f2[p2], f2[p2] = n3, b2 !== n3 && w2.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "update", updateItems: (r2 = {}, r2[p2] = n3, r2), oldValue: (o2 = {}, o2[p2] = b2, o2) }), a2 && a2.Ut.cct(w2, 4, t4, true));
              return a2 && a2.zw(), w2;
            }
          }, t3.prototype.KUr = function(t4) {
            return t4.col < 0 ? 0 : t4.col;
          }, t3.prototype.bct = function(t4, n3) {
            return n3 && t4.col < 0 ? st(n3) : t4.col + t4.colCount;
          }, t3.prototype.V_r = function() {
            return "base";
          }, t3.prototype.THr = function(t4) {
            var n3, e3;
            return t4.tableId = null === (n3 = this.nM) || void 0 === n3 ? void 0 : n3.jKe(), t4.filter = this, null === (e3 = this.Mf) || void 0 === e3 ? void 0 : e3.THr(t4);
          }, t3.prototype.$Dr = function(t4, n3) {
            var e3, i3;
            t4.tableId = null === (e3 = this.nM) || void 0 === e3 ? void 0 : e3.jKe(), null === (i3 = this.Mf) || void 0 === i3 || i3.$Dr(t4, n3);
          }, t3.prototype.addFilterItem = function(t4, n3) {
            var e3, i3, r2 = this, a2 = r2.Mf, u2 = r2.Uoe(), s2 = r2.rrt, c2 = s2[t4];
            if (C(n3)) throw new Error(F().Exp_FilterItemIsNull);
            if (t4 < -1 || t4 >= st(a2)) throw new Error(F().Exp_InvalidColumnIndex);
            if (u2) {
              if (e3 = r2.THr({ type: "updateFilterData", data: { filterItemMap: r2.rrt } }), a2.Ut.cct(r2, 5), t4 < (u2 = a2.JS(u2)).col || t4 >= u2.col + u2.colCount) return;
              if (c2 || (c2 = []), n3 instanceof o.Condition) c2.push(n3);
              else if (S(n3)) for (i3 = 0; i3 < n3.length; i3++) c2.push(n3[i3]);
              s2[t4] = c2, a2.Ut.cct(r2, 5, y, true), r2.$Dr({ type: "updateFilterData", data: { filterItemMap: r2.rrt } }, e3);
            }
          }, t3.prototype.removeFilterItems = function(t4, n3) {
            this.Mf.Ut.cct(this, 6), this.yct(t4), this.unfilter(t4, n3), this.Mf.Ut.cct(this, 6, y, true);
          }, t3.prototype.yct = function(t4) {
            var n3, e3 = this, i3 = e3.rrt, r2 = false;
            e3.wct(t4), n3 = e3.THr({ type: "updateFilterData", data: { filterItemMap: e3.rrt } }), C(t4) ? (e3.rrt = [], r2 = true) : i3[t4] && (i3.splice(t4, 1, b), r2 = true), r2 && e3.$Dr({ type: "updateFilterData", data: { filterItemMap: e3.rrt } }, n3);
          }, t3.prototype.unfilter = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf;
            if (a2) {
              if (a2.Ut.cct(o2, 2), e3 = [], i3 = o2.Mct, r2 = void 0, C(t4)) for (r2 = D(i3) - 1; r2 >= 0; r2--) e3.push(i3[r2]), o2.Cct(i3[r2]);
              else e3.push(t4), o2.Cct(t4), o2.reFilter(n3);
              n3 || o2.Sct(a2, 1, e3), a2.Ut.cct(o2, 2, y, true);
            }
          }, t3.prototype.Tct = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Uoe();
            if (d2.Cct(t4), d2.rrt[t4] && v2) {
              if (-1 !== (o2 = v2.col) && (t4 < o2 || t4 >= o2 + v2.colCount)) return;
              v2 = d2.Mf.JS(v2), a2 = v2.row, u2 = v2.rowCount, s2 = d2.Act(t4, a2, u2), f2 = d2.Ict(a2, u2, t4, s2), l2 = f2.otherConditionals, h2 = f2.filterData, null === (e3 = null === (n3 = d2.Mf.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), h2.forEach((function(t5) {
                var n4, e4 = t5.row, i4 = t5.col, r3 = t5.condition;
                d2.jct(e4, i4), (n4 = d2.isRowFilteredOut(e4)) || d2.Rct(r3);
              })), null === (r2 = null === (i3 = d2.Mf.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3), d2.Cke(l2, (function() {
                for (c2 = a2; c2 < a2 + u2; c2++) d2.isRowFilteredOut(c2) || d2.xct(l2, c2, t4, s2);
              })), d2.Nct(t4, true);
            }
          }, t3.prototype.Ske = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.Uoe();
            if (s2) {
              for (t4 = s2.row, n3 = s2.col, e3 = s2.rowCount, i3 = s2.colCount, -1 === t4 && (t4 = 0, e3 = u2.Mf.getRowCount()), e3 = N(e3, u2.Mf.getRowCount()), -1 === n3 && (n3 = 0, i3 = u2.Mf.getColumnCount()), i3 = N(i3, u2.Mf.getColumnCount()), r2 = [], o2 = n3; o2 < n3 + i3; o2++) (a2 = u2.Tke(o2, t4, e3)) && r2.push({ col: o2, visibleIndex: a2 });
              return r2 = r2.sort((function(t5, n4) {
                return n4.visibleIndex.length - t5.visibleIndex.length;
              }));
            }
          }, t3.prototype.Tke = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Act(t4, n3, e3), s2 = a2.rrt[t4], c2 = a2.isFiltered(t4), f2 = [];
            if (s2 && !(s2.length < 1) && c2) return i3 = a2.Ict(n3, e3, t4, u2), r2 = i3.otherConditionals, (o2 = i3.filterData).forEach((function(t5) {
              return f2.push(t5.row);
            })), a2.Cke(r2, (function() {
              var i4, o3;
              for (i4 = n3; i4 < n3 + e3; i4++) (o3 = a2.xke(r2, i4, t4, u2)) && f2.push(i4);
            })), f2;
          }, t3.prototype.Act = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf, d2 = ut(l2.rrt[t4]), v2 = {}, p2 = D(d2);
            for (i3 = n3; i3 < n3 + e3; i3++) {
              for (u2 = {}, r2 = 0; r2 < p2; r2++) "T" === (o2 = d2[r2]) ? (s2 = h2.getValue(i3, t4), c2 = h2.getText(i3, t4), ("number" == typeof s2 || s2 instanceof Date) && (u2.V = s2), u2[o2] = c2 ? Zt(c2) : c2) : "DT" === o2 ? (s2 = h2.getValue(i3, t4), f2 = l2.Qst, u2[o2] = f2.format(s2)) : "BC" === o2 ? (a2 = h2.getActualStyle(i3, t4, 3, false, { notClone: false, isForFilter: true })) && (u2[o2] = a2.backColor) : "FC" === o2 ? (a2 = h2.getActualStyle(i3, t4, 3, false, { notClone: false, isForFilter: true })) && (u2[o2] = a2.foreColor) : "V" === o2 && (u2[o2] = h2.getValue(i3, t4));
              v2[i3] = u2;
            }
            return v2;
          }, t3.prototype.filter = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.rrt;
            if (a2) {
              if (a2.Ut.cct(o2, 7), i3 = [], false === o2.sct && (delete o2.sct, r2 = o2.THr({ type: "updateFilterData", data: { filteredColumns: o2.Mct } }), o2.Mct = [], o2.$Dr({ type: "updateFilterData", data: { filteredColumns: o2.Mct } }, r2)), C(t4)) for (e3 = 0; e3 < D(u2); e3++) u2[e3] && (i3.push(e3), o2.Tct(e3));
              else {
                if (!u2[t4]) return;
                i3.push(t4), o2.Tct(t4);
              }
              n3 || o2.Sct(a2, 0, i3), a2.Ut.cct(o2, 7, y, true);
            }
          }, t3.prototype.Sct = function(t4, n3, e3) {
            var r2, o2 = this;
            i2.Worksheet.et(t4, "onFilterChanged"), r2 = o2.Dct(n3, e3), o2.filterHandler && o2.filterHandler(r2), o2.onFilter(r2), t4.zw();
          }, t3.prototype.Dct = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.Uoe(), s2 = [], c2 = [];
            if (u2) for (r2 = void 0, r2 = i3 = (e3 = a2.JS(u2)).row; r2 < i3 + e3.rowCount; r2++) o2.isRowFilteredOut(r2) ? c2.push(r2) : s2.push(r2);
            return { action: t4, sheet: a2, range: u2, filteredRows: s2, filteredOutRows: c2, columns: n3 };
          }, t3.prototype.onFilter = function(t4) {
          }, t3.prototype.isFiltered = function(t4) {
            var n3 = this.Mct;
            return arguments.length ? I(n3, t4) : n3.length > 0;
          }, t3.prototype.isRowFilteredOut = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Uoe();
            return !(!i3.isFiltered() || !r2) && (n3 = r2.row, e3 = i3._ct[t4], !(-1 !== n3 && (t4 < n3 || t4 >= n3 + r2.rowCount) || D(e3) >= D(i3.Mct)));
          }, t3.prototype.reset = function() {
            var t4, n3, e3 = this, i3 = e3.Mf;
            i3 && i3.Ut.cct(e3, 8), e3.nrt = b, e3.unfilter(), t4 = e3.THr({ type: "updateFilterData", data: { filteredColumns: e3.Mct, filterItemMap: e3.rrt } }), e3.rrt = [], e3.Mct = [], e3.$Dr({ type: "updateFilterData", data: { filteredColumns: e3.Mct, filterItemMap: e3.rrt } }, t4), e3.Ect = [], e3._ct = {}, n3 = e3.THr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: e3.srt }), e3.srt = {}, e3.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: e3.srt }, n3);
          }, t3.prototype.rn = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = false, s2 = a2.Mf, c2 = a2.Uoe();
            return c2 && (i3 = (c2 = s2.JS(c2, e3)).row, o2 = n3 >= (r2 = c2.col) && n3 < r2 + c2.colCount, (1 === e3 && t4 === ct(s2, e3) - 1 && i3 - 1 < 0 && o2 || 3 === e3 && t4 === i3 - 1 && o2) && (u2 = true)), u2;
          }, t3.prototype.getFilterItems = function(t4) {
            var n3;
            return this.rrt[t4] || [];
          }, t3.prototype.getFilteredItems = function() {
            return this.Ect;
          }, t3.prototype.sortColumn = function(t4, n3) {
            this.ert(t4, n3, null);
          }, t3.prototype.ert = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.Mf;
            if (d2) {
              a2 = h2.Uoe(), u2 = d2.JS(a2), null == (s2 = null === (o2 = d2.parent) || void 0 === o2 ? void 0 : o2.collaboration) || s2.startBatchOp(), d2.suspendPaint();
              try {
                d2.Ut.cct(h2, 1, t4), c2 = { index: t4, ascending: n3, compareFunction: e3 }, f2 = void 0;
                try {
                  h2.LAe = true, f2 = d2.sortRange(u2.row, u2.col, u2.rowCount, u2.colCount, true, [c2], i3, b, r2);
                } catch (t5) {
                } finally {
                  this.LAe = false;
                }
                f2 && (l2 = h2.THr({ type: "updateFilterSortInfo" }), h2.nrt = c2, h2.$Dr({ type: "updateFilterSortInfo", sortInfo: c2 }, l2), h2.isFiltered(t4) && h2.reFilter()), d2.Ut.cct(h2, 1, t4, true);
              } finally {
                d2.resumePaint(), null == s2 || s2.endBatchOp();
              }
            }
          }, t3.prototype.sortColumnByColor = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf;
            if (h2) {
              a2 = l2.Uoe(), u2 = h2.JS(a2), h2.suspendPaint(), h2.Ut.cct(l2, 1, t4), s2 = { index: t4, ascending: n3, color: e3, isBackColor: i3 }, c2 = void 0;
              try {
                l2.LAe = true, c2 = h2.sortRange(u2.row, u2.col, u2.rowCount, u2.colCount, true, [s2], r2, b, o2);
              } catch (t5) {
              } finally {
                this.LAe = false;
              }
              c2 && (f2 = l2.THr({ type: "updateFilterSortInfo" }), l2.nrt = s2, l2.$Dr({ type: "updateFilterSortInfo", sortInfo: s2 }, f2), l2.isFiltered(t4) && l2.reFilter()), h2.Ut.cct(l2, 1, t4, true), h2.resumePaint();
            }
          }, t3.prototype.getSortState = function(t4) {
            var n3 = this.nrt, e3 = 0;
            return n3 && n3.index === t4 && (e3 = n3.ascending ? 1 : 2), e3;
          }, t3.prototype.reFilter = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.Mf, l2 = c2.Mct, h2 = D(l2);
            if (f2) {
              for (a2 = f2.filterRowsVisibleInfo, c2.Mf.Ut.cct(c2, 13), c2._ct = {}, c2.Ect = [], c2.Mct = [], u2 = c2.THr({ type: "updateFilterData", data: { filteredColumns: c2.Mct } }), s2 = c2.THr({ type: "updateFilterData", data: { rowVisibleInfo: a2.rowsVisibleInfo } }), null === (e3 = null === (n3 = c2.Mf.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), o2 = 0; o2 < h2; o2++) c2.filter(l2[o2], t4);
              null === (r2 = null === (i3 = c2.Mf.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3), c2.$Dr({ type: "updateFilterData", data: { filteredColumns: c2.Mct } }, u2), c2.$Dr({ type: "updateFilterData", data: { rowVisibleInfo: a2.rowsVisibleInfo } }, s2), c2.Mf.Ut.cct(c2, 13, y, true);
            }
          }, t3.prototype.openFilterDialog = function() {
          }, t3.prototype.jct = function(t4, n3) {
            var e3 = this._ct, i3 = e3[t4];
            C(i3) ? i3 = [n3] : (I(i3, n3) && j(i3, n3), i3.push(n3)), e3[t4] = i3;
          }, t3.prototype.Rct = function(t4) {
            var n3 = this.Ect;
            I(n3, t4) || n3.push(t4);
          }, t3.prototype.Cct = function(t4) {
            var n3, e3, i3 = this, r2 = i3._ct, o2 = i3.Uoe();
            if (o2 && i3.isFiltered(t4)) {
              for (e3 in i3.Nct(t4, false), r2) e3 && (n3 = r2[e3]) && I(n3, t4) && (j(n3, t4), D(n3) || (r2[e3] = y));
              i3.wct(t4);
            }
          }, t3.prototype.Nct = function(t4, n3) {
            var e3 = this, i3 = this.Mct, r2 = this.THr({ type: "updateFilterData", data: { filteredColumns: e3.Mct } });
            if (n3) {
              if (D(i3)) {
                if (i3[D(i3) - 1] === t4) return;
                j(i3, t4);
              }
              i3.push(t4);
            } else j(i3, t4);
            e3.$Dr({ type: "updateFilterData", data: { filteredColumns: e3.Mct } }, r2);
          }, t3.prototype.wct = function(t4) {
            var n3, e3, i3 = this, r2 = i3.rrt, o2 = r2.length, a2 = [], u2 = [];
            for (n3 = 0; n3 < o2; n3++) n3 === t4 ? a2 = a2.concat(r2[n3]) : u2 = u2.concat(r2[n3]);
            for (e3 = a2.length, n3 = 0; n3 < e3; n3++) I(u2, a2[n3]) || j(i3.Ect, a2[n3]);
          }, t3.prototype.Ict = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2 = this, f2 = c2.rrt[e3], l2 = {}, h2 = [], d2 = [];
            for (r2 = 0; r2 < D(f2); r2++) 2 !== ft(o2 = f2[r2]) || 0 !== o2.compareType() || o2.forceValue2Text() || o2.useWildCards() || o2.ignoreCase() || o2.ignoreBlank() ? h2.push(o2) : o2.art ? l2[(a2 = c2.Qst).format(o2.urt)] = o2 : l2[o2.expected()] = o2;
            for (r2 = t4; r2 < t4 + n3; r2++) l2[(u2 = i3[r2]).T] === y && l2[u2.DT] === y || (s2 = l2[u2.T] || l2[u2.DT], d2.push({ row: r2, col: e3, condition: s2 }));
            return { otherConditionals: h2, filterData: d2 };
          }, t3.prototype.Cke = function(t4, n3) {
            t4.forEach((function(t5) {
              t5.ZJ();
            })), n3(), t4.forEach((function(t5) {
              t5.WJ();
            }));
          }, t3.prototype.Ike = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Uoe(), h2 = t4.item1(), d2 = t4.item2();
            if (0 === ft(t4) ? (h2 && (r2 = f2.Bct(h2, n3, e3, l2, i3)), d2 && (o2 = f2.Bct(d2, n3, e3, l2, i3))) : r2 = f2.Bct(t4, n3, e3, l2, i3), a2 = i3[n3].V, !C(a2)) {
              if (u2 = t4.conType(), s2 = t4.compareType(), c2 = t4.expected(), "number" == typeof a2 || a2 instanceof Date) {
                if (2 === u2) {
                  if ([6, 2, 4].includes(s2)) return false;
                  if ([7, 3, 5].includes(s2)) return true;
                }
                if (11 === u2 && "string" == typeof c2 && [2, 3, 4, 5].includes(s2)) return false;
              }
              if ("string" == typeof a2 && 11 === u2 && "number" == typeof c2 && [2, 3, 4, 5].includes(s2)) return false;
            }
            return t4.evaluate(f2.Mf, n3, e3, r2, o2);
          }, t3.prototype.xke = function(t4, n3, e3, i3) {
            var r2, o2, a2;
            for (r2 = 0; r2 < D(t4); r2++) if (o2 = t4[r2], a2 = this.Ike(o2, n3, e3, i3)) return true;
            return false;
          }, t3.prototype.xct = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this;
            for (r2 = 0; r2 < D(t4); r2++) o2 = t4[r2], (a2 = u2.Ike(o2, n3, e3, i3)) && (u2.jct(n3, e3), u2.Rct(o2));
          }, t3.prototype.Bct = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this, c2 = b, f2 = ft(t4), l2 = t4.compareType(), h2 = r2[n3];
            return 8 !== f2 && 10 !== f2 || (o2 = [], (u2 = (a2 = s2.Mf.JS(i3)).col) <= e3 && e3 < u2 + a2.colCount && o2.push(M(a2.row, e3, a2.rowCount, 1)), t4.ranges(o2)), 2 === f2 || 7 === f2 ? c2 = h2.T : 3 === f2 ? 0 === l2 ? c2 = h2.BC : 1 === l2 && (c2 = h2.FC) : c2 = h2.V, c2;
          }, t3.prototype.Lct = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mct;
            return !!D(u2) && (i3 = a2._ct[t4], r2 = D(i3), e3 = !!(C(i3) || r2 < 0) || (o2 = A(i3, n3)) < 0);
          }, t3.prototype.Kst = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.Mct;
            return !!D(o2) && (e3 = r2._ct[t4], i3 = D(e3), !e3 || i3 < 1 || A(e3, n3) < 0);
          }, t3.prototype.Fst = function(t4, n3) {
            var e3, i3;
            return Yt(this.Mf.IB, t4, n3) && this.h0r(t4, n3);
          }, t3.prototype.h0r = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.Mf, a2 = null === (e3 = o2.tables) || void 0 === e3 ? void 0 : e3.all(), u2 = true;
            return (null == a2 ? void 0 : a2.length) && (i3 = a2.filter((function(n4) {
              var e4, i4 = null === (e4 = n4.IB) || void 0 === e4 ? void 0 : e4.range;
              return !!i4 && (i4.row <= t4 && i4.row + i4.rowCount >= t4);
            })), u2 = i3.every((function(e4) {
              return Yt(e4.IB, t4, n3);
            }))), u2;
          }, t3.prototype.JO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.range;
            if (m2 && (i3 = ct(g2.Mf) - n3 - 1, r2 = m2.row, o2 = m2.col, a2 = m2.rowCount, u2 = m2.colCount, r2 > -1 && (i3 = r2 + a2 - 1, t4 < r2 || e3 && t4 === r2 && 0 === t4 ? g2.Fct(M(r2 + n3, o2, a2, u2)) : t4 < r2 + a2 && g2.Fct(M(r2, o2, a2 + n3, u2))), s2 = g2._ct, g2.isFiltered() && s2)) {
              for (c2 = [], f2 = void 0, Object.keys(s2).forEach((function(t5) {
                c2.push(+t5);
              })), c2.sort((function(t5, n4) {
                return n4 - t5;
              })), l2 = {}, h2 = [], f2 = 0; f2 < D(c2); f2++) (d2 = c2[f2]) >= t4 && d2 <= i3 ? l2[d2 + n3] = s2[d2] : d2 < t4 && (l2[d2] = s2[d2]);
              for (-1 !== o2 && -1 !== u2 || (o2 = 0, u2 = g2.Mf.getColumnCount()), v2 = 0; v2 < u2; v2++) h2.push(v2 + o2);
              for (p2 = 0; p2 < n3; p2++) l2[p2 + t4] = nt([], h2, true);
              g2._ct = l2;
            }
          }, t3.prototype.qO = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, C2, S2, T2, x2, I2, k2, N2, j2, _2, O2, E2, R2, L2, F2 = this, B2 = F2.range, P2 = B2;
            if (F2.nM && (e3 || t4 > B2.col && t4 <= B2.col + B2.colCount) && (B2 = F2.nM.dataRange()), B2) {
              if (f2 = B2.row, l2 = B2.col, h2 = B2.rowCount, d2 = B2.colCount, v2 = 0, p2 = -1, g2 = 0, t4 >= 0 && F2.Pct()) {
                for (m2 = 0; m2 < n3; m2++) m2 + t4 <= F2.Gct() && v2++;
                F2.Gct(F2.Gct() + v2);
              }
              for (l2 > -1 && (t4 <= l2 && !e3 ? (p2 = l2, g2 = d2, F2.Fct(M(f2, l2 + n3, h2, d2))) : t4 < l2 + d2 && (p2 = t4, g2 = d2 - (t4 - l2), b2 = e3 ? 0 : n3, F2.Fct(M(f2, l2, h2, d2 + b2)))), p2 < 0 && (p2 = 0, g2 = st(F2.Mf) - n3), w2 = P2.colCount !== (null === (i3 = F2.range) || void 0 === i3 ? void 0 : i3.colCount), C2 = -1 === (null === (r2 = F2.range) || void 0 === r2 ? void 0 : r2.colCount), S2 = F2.THr({ type: "updateFilterData", data: { filteredColumns: F2.Mct, filterItemMap: F2.rrt } }), m2 = p2 + g2 - 1; m2 >= p2; m2--) m2 >= t4 && (T2 = m2 + n3, (x2 = A(F2.Mct, m2)) >= 0 && (F2.Mct[x2] = T2), I2 = F2.rrt[m2], D(I2) && (F2.rrt[m2] = y, F2.vno && F2.vno(m2), F2.rrt[T2] = I2));
              if ((w2 || C2) && F2.$Dr({ type: "updateFilterData", data: { filterItemMap: F2.rrt, filteredColumns: F2.Mct } }, S2), (N2 = (k2 = F2.srt) && Object.keys(k2)) && N2.length > 0) {
                if ((j2 = F2.Mf.Ut).cct(F2, 3), _2 = F2.THr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: F2.srt }), (O2 = F2.XUr(t4)) >= 0) for (E2 = null !== (o2 = k2[O2 - 1]) && void 0 !== o2 ? o2 : k2[O2], R2 = N2.length - 1; R2 >= 0; R2--) (L2 = +N2[R2]) >= O2 && (k2[L2 + n3] = k2[L2], k2[L2] = E2);
                null === (u2 = null === (a2 = F2.Mf.parent) || void 0 === a2 ? void 0 : a2.suspendOp) || void 0 === u2 || u2.call(a2), F2.uHr(B2), null === (c2 = null === (s2 = F2.Mf.parent) || void 0 === s2 ? void 0 : s2.resumeOp) || void 0 === c2 || c2.call(s2), F2.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: F2.srt }, _2), j2.cct(F2, 3, y, true);
              }
              F2.reFilter();
            }
          }, t3.prototype.XUr = function(t4) {
            return t4 - this.range.col + this.KUr(this.range);
          }, t3.prototype.xP = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.range, v2 = h2.Mf, p2 = v2 && v2.parent;
            if (d2 && (e3 = 0, i3 = ct(v2) + n3 - 1, r2 = d2.row, o2 = d2.col, a2 = d2.rowCount, u2 = d2.colCount, r2 > -1 && (e3 = r2, i3 = r2 + a2 - 1, t4 <= r2 ? v2.cp ? (h2.Fct(M(t4, o2, a2, u2)), delete v2.cp) : r2 === t4 + 1 || r2 + a2 <= t4 + n3 ? p2 && !p2.options.allowAutoExtendFilterRange && 0 !== a2 && h2.Fct(b) : r2 < t4 + n3 ? h2.Fct(M(t4, o2, r2 + a2 - (t4 + n3), u2)) : h2.Fct(M(r2 - n3, o2, a2, u2)) : t4 < r2 + a2 && h2.Fct(M(r2, o2, a2 - Math.min(r2 + a2 - t4, n3), u2))), s2 = h2._ct, h2.isFiltered() && s2)) for (c2 = e3; c2 <= i3; c2++) c2 >= t4 && c2 < t4 + n3 ? s2[c2] = y : c2 >= t4 + n3 && (l2 = s2[f2 = c2]) && (s2[f2 - n3] = l2, s2[f2] = y);
          }, t3.prototype.Fct = function(t4) {
            this.Mf.Ut.cct(this, 14);
            var n3 = this.THr({ type: "updateFilterRange" });
            this.range = t4, this.$Dr({ type: "updateFilterRange", range: t4 }, n3), this.ict = true, this.Mf.Ut.cct(this, 14, y, true), this.range || this.GFe();
          }, t3.prototype.uHr = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if (this.range && (r2 = (i3 = this).range, o2 = i3.Mf.Ut, a2 = r2.col, u2 = r2.colCount, c2 = (s2 = null != t4 ? t4 : {}).col, f2 = s2.colCount, -1 === u2 && (u2 = i3.Mf.getColumnCount()), a2 !== c2 || u2 !== f2)) {
              for (l2 = f2 !== u2, h2 = {}, d2 = 0; d2 < u2; d2++) v2 = a2 + d2, h2[p2 = i3.XUr(v2)] = null === (e3 = null !== (n3 = i3.srt[p2]) && void 0 !== n3 ? n3 : h2[p2 - 1]) || void 0 === e3 || e3;
              o2.cct(i3, 3), g2 = i3.THr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: i3.srt }), i3.srt = h2, l2 && i3.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: i3.srt }, g2), o2.cct(i3, 3, y, true);
            }
          }, t3.prototype.GFe = function() {
          }, t3.prototype.Uct = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf, g2 = v2.range;
            if (g2) if (t4) {
              if (!t4.equals(g2)) {
                if (i3 = g2.col, r2 = g2.colCount, o2 = t4.col, a2 = t4.colCount, u2 = st(p2), v2.isFiltered() && !(i3 < 0 && o2 < 0)) for (i3 < 0 && (i3 = 0, r2 = u2), o2 < 0 && (o2 = 0, a2 = u2), n3 = 0; n3 < r2; n3++) (o2 > (e3 = i3 + n3) || e3 >= o2 + a2) && v2.removeFilterItems(e3);
                if (s2 = g2.row, c2 = g2.rowCount, f2 = t4.row, l2 = t4.rowCount, h2 = ct(p2), v2.isFiltered() && v2._ct && !(s2 < 0 && f2 < 0)) for (s2 < 0 && (s2 = 0, c2 = h2), f2 < 0 && (f2 = 0, l2 = h2), n3 = 0; n3 < c2; n3++) (f2 > (e3 = s2 + n3) || e3 >= f2 + l2) && (v2._ct[e3] = y);
              }
            } else v2.reset();
            !v2.Pct() || t4 && t4.contains(-1, v2.Gct()) || (d2 = v2.THr({ type: "updateFilterSortInfo" }), v2.nrt = b, v2.$Dr({ type: "updateFilterSortInfo", sortInfo: b }, d2)), v2.Fct(t4), v2.uHr(g2);
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, w2, C2, S2, T2, x2, I2, k2, N2 = this, j2 = N2.range, _2 = N2.Gct(), O2 = t4 + n3;
            if (j2) {
              for (t4 >= 0 && N2.Pct() && (_2 >= t4 && _2 < O2 ? N2.Gct(-1) : _2 >= O2 && N2.Gct(_2 - n3)), a2 = j2.row, u2 = j2.col, s2 = j2.rowCount, u2 < 0 ? (u2 = 0, c2 = st(N2.Mf) + n3) : c2 = j2.colCount, u2 >= 0 && (t4 < u2 ? l2 = O2 <= u2 ? M(a2, u2 - n3, s2, c2) : O2 <= u2 + c2 ? M(a2, t4, s2, u2 + c2 - O2) : b : t4 < u2 + c2 && (l2 = M(a2, u2, s2, O2 <= u2 + c2 ? c2 - n3 : t4 - u2))), h2 = N2.XUr(O2), d2 = c2 !== (null == l2 ? void 0 : l2.colCount), v2 = N2.THr({ type: "updateFilterData", data: { filteredColumns: N2.Mct, filterItemMap: N2.rrt } }), f2 = u2; f2 < u2 + c2; f2++) f2 >= t4 && (f2 < O2 ? N2.removeFilterItems(f2) : (p2 = f2 - n3, g2 = A(N2.Mct, f2), m2 = N2.rrt[f2], g2 >= 0 && (N2.Mct[g2] = p2), D(m2) && (N2.rrt[f2] = y, N2.vno && N2.vno(f2), N2.rrt[p2] = m2)));
              if (d2 && N2.$Dr({ type: "updateFilterData", data: { filteredColumns: N2.Mct, filterItemMap: N2.rrt } }, v2), l2 && N2.Fct(l2), (C2 = (w2 = N2.srt) && Object.keys(w2)) && C2.length > 0 && ((S2 = N2.Mf.Ut).cct(N2, 3), h2 >= 0)) {
                if (T2 = N2.THr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: N2.srt }), (x2 = N2.nM ? c2 - N2.range.colCount : n3) > 0) for (I2 = 0; I2 < C2.length; I2++) (k2 = +C2[I2]) >= h2 && (w2[k2 - x2] = w2[k2], delete w2[k2]);
                null === (i3 = null === (e3 = N2.Mf.parent) || void 0 === e3 ? void 0 : e3.suspendOp) || void 0 === i3 || i3.call(e3), N2.uHr(j2), null === (o2 = null === (r2 = N2.Mf.parent) || void 0 === r2 ? void 0 : r2.resumeOp) || void 0 === o2 || o2.call(r2), N2.$Dr({ type: "updateFilterButtonVisibleInfo", changedType: "updateAll", updateItems: N2.srt }, T2), S2.cct(N2, 3, y, true);
              }
              N2.reFilter();
            }
          }, t3.prototype.Pct = function() {
            var t4 = this, n3 = t4.nrt;
            return !!n3 && (n3.index > -1 && 0 !== t4.getSortState(n3.index));
          }, t3.prototype.Gct = function(t4) {
            var n3, e3, i3 = this, r2 = i3.nrt;
            return D(arguments) ? (e3 = i3.THr({ type: "updateFilterSortInfo" }), r2 ? r2.index = t4 : i3.nrt = { index: t4, ascending: false }, i3.$Dr({ type: "updateFilterSortInfo", sortInfo: i3.nrt }, e3), n3 = i3) : n3 = r2 ? r2.index : -1, n3;
          }, t3.prototype.d5 = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this, s2 = u2.range;
            s2 && (r2 = M(t4, n3, e3, i3), u2.filterButtonVisible() ? (o2 = s2.row - 1, a2 = s2.rowCount + 1, o2 < 0 && (o2 = -1, a2 = -1), r2.containsRange(M(o2, s2.col, a2, s2.colCount)) && u2.unfilter()) : r2.containsRange(s2) && u2.unfilter());
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
            if (t4) {
              for (e3 = this, i3 = t4.range, r2 = t4.filterItemMap, o2 = e3.rrt, a2 = t4.sortInfo, u2 = t4.showFilterButton, s2 = t4.filterButtonVisibleInfo, l2 = e3.Mf, i3 && (e3.range = M(i3.row, i3.col, i3.rowCount, i3.colCount)), t4.dialogVisibleInfo && (e3.uct = E.extend({}, H, t4.dialogVisibleInfo)), Vt(o2, r2, n3), f2 = t4.filteredColumns || t4.filteredColMap, c2 = 0; c2 < D(f2); c2++) C(f2[c2]) || e3.Mct.push(f2[c2]);
              if (a2 && a2.color === y ? e3.nrt = { index: a2.index, ascending: a2.ascending } : a2 && a2.color !== y && (e3.nrt = { index: a2.index, ascending: a2.ascending, color: a2.color, isBackColor: a2.isBackColor }), u2 !== y) {
                if (h2 = e3.range, s2) e3.srt = s2;
                else if (h2) for (c2 = e3.KUr(h2); c2 < e3.bct(h2, l2); c2++) e3.srt[c2] = u2;
              }
            }
          }, t3.prototype.yh = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, d2, v2, p2, g2, m2, b2, y2, w2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, R2, L2, F2, B2, P2, G2, U2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2;
            if (t4 && (d2 = t4.ref && t4.ref.toUpperCase(), p2 = (v2 = t4.lossless) && v2.range, g2 = (null == r2 ? void 0 : r2.fileType) === i2.OpenSaveFileType.excel, d2 && "#REF!" !== d2 || p2)) {
              if (b2 = (m2 = this).Mf, p2 ? y2 = p2 : (y2 = i2.range_parser.Dc(d2)[0], !(w2 = v2 && v2.isSJSFilter) && y2 && (y2.row >= 0 && (y2.row = y2.row + 1), y2.rowCount >= 0 && (y2.rowCount = y2.rowCount - 1))), S2 = c(t4, "filterColumn"), T2 = f(t4, "sortState") || n3, y2 && (m2.range = M(y2.row, y2.col, y2.rowCount, y2.colCount)), v2 && v2.dialogVisibleInfo && (m2.uct = E.extend({}, H, v2.dialogVisibleInfo)), x2 = m2.range, A2 = m2.rrt, I2 = x2 && x2.col, S2) for (N2 = 0, j2 = S2; N2 < j2.length; N2++) _2 = (D2 = j2[N2]).colId, C(_2) || C(I2) || (O2 = parseInt(_2, 10) + I2, (R2 = A2[O2]) || (R2 = []), pt(D2, R2, e3), gt(D2, R2, m2.Qst), bt(D2, R2, b2.getValue(x2.row, O2)), yt(D2, R2, x2), wt(D2, R2), R2.length > 0 && (m2.rrt[O2] = R2, m2.Mct.push(O2)), !k2 && R2.length > 0 && (k2 = true));
              if (L2 = null === (u2 = null === (a2 = null == o2 ? void 0 : o2.lossless) || void 0 === a2 ? void 0 : a2.outlineColumnOptions) || void 0 === u2 ? void 0 : u2.columnIndex, (F2 = v2 && v2.filterItemMap) && (Vt(A2, F2), !k2 && (m2.nM && m2.nM.NTr() || !C(L2) && !C(A2[L2])) && A2 && Object.keys(A2).some((function(t5) {
                var n4 = A2[t5];
                return n4 && n4.length > 0;
              })) && (k2 = true)), (B2 = v2 && v2.filterColumns) && B2.length > 0) {
                for (P2 = 0; P2 < B2.length; P2++) -1 === m2.Mct.indexOf(B2[P2]) && m2.Mct.push(B2[P2]);
                !k2 || S2 && 0 !== S2.length || !(m2.nM && m2.nM.NTr() || !C(L2) && m2.Mct.indexOf(L2) > -1) || (S2 = [{}]);
              }
              if ((null == v2 ? void 0 : v2.filteredInRowsWithColIndices) && (this._ct = v2.filteredInRowsWithColIndices), T2 && (U2 = (G2 = f(T2, "sortCondition")).sortBy, V2 = !G2.descending, z2 = null === (s2 = i2.range_parser.Dc(G2.ref)[0]) || void 0 === s2 ? void 0 : s2.col, m2.nrt = { index: z2, ascending: V2 }, U2 !== i2.SortBy.fontColor && U2 !== i2.SortBy.cellColor || (Y2 = h(f(G2, "dxfId"), 0), W2 = void 0, (Z2 = e3.getDxf(Y2)) && (W2 = Z2.backColor), m2.nrt.color = W2 || "", m2.nrt.isBackColor = U2 === i2.SortBy.cellColor)), Q2 = m2.Uoe(), g2 && !m2.vct() && (Q2 = m2.Ahe()), Q2 && (J2 = (K2 = b2.Ut.Q_(true, 3)).getHiddenRows(), X2 = K2.infos, k2 && J2 && J2.length > 0 && S2 && S2.length > 0 && b2.filterRowsVisibleInfo)) {
                for (q2 = b2.filterRowsVisibleInfo.rowsVisibleInfo || {}, $2 = true, tt2 = Q2.row + Q2.rowCount, -1 === Q2.row && (tt2 = b2.getRowCount()), nt2 = Q2.row; nt2 < tt2; nt2++) J2.indexOf(nt2) >= 0 && (q2[nt2] = false, $2 = false, X2[nt2] && false === X2[nt2].visible && (X2[nt2].visible = true));
                false === $2 && (b2.filterRowsVisibleInfo.rowsVisibleInfo = q2, b2.filterRowsVisibleInfo.empty = false);
              }
              for (et2 = true, (v2 && (false === v2.showTableHeader || false === v2.showFilterButton) || !x2 && !n3 || S2 && S2.length > 0 && true === l(S2[0].hiddenButton, false)) && (et2 = false), !x2 && v2 && (m2.range = x2 = v2.filterRange), it2 = v2 && v2.filterButtonVisibleInfo, nt2 = m2.KUr(x2); nt2 < m2.bct(x2, b2); nt2++) m2.srt[nt2] = it2 ? it2[nt2] : et2;
            }
          }, t3.prototype.Mke = function(t4, n3) {
            void 0 === t4 && (t4 = false), void 0 === n3 && (n3 = false);
            var e3 = this.Ske();
            e3 && (this.Mct = n3 ? this.Mct : e3.map((function(t5) {
              return t5.col;
            })), (t4 || Object.keys(this._ct).length < 1) && (this._ct = it(e3)));
          }, t3.prototype.getToJsonRowFilter = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = [], c2 = this.Mf, f2 = this.range, l2 = c2.parent && c2.parent.options.saveChangesForSheet;
            if (l2 && this.extendedRange && (f2 = this.extendedRange), t4 = 0, n3 = 0, f2 && (t4 = f2.row, n3 = Math.min(c2.getRowCount() - 1, f2.row + f2.rowCount - 1)), c2 && (e3 = c2.filterRowsVisibleInfo && c2.filterRowsVisibleInfo.rowsVisibleInfo, !C(e3))) for (r2 = void 0, o2 = 0, a2 = i3 = Object.keys(e3); o2 < a2.length; o2++) (r2 = +(u2 = a2[o2])) >= t4 && r2 <= n3 && false === e3[r2] && s2.push(r2);
            return s2;
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = {}, s2 = a2.range, c2 = a2.srt, f2 = a2.rrt, l2 = a2.Mct, h2 = a2.nrt, d2 = [], v2 = a2.typeName, p2 = a2.f8;
            if (p2 && (u2.adjustRangeForFrozen = p2), s2 && (u2.range = s2.toJSON ? s2.toJSON() : s2), v2 && (u2.typeName = v2), a2.uct) {
              for (i3 in e3 = {}, a2.uct) a2.uct.hasOwnProperty(i3) && false === a2.uct[i3] && (e3[i3] = false);
              u2.dialogVisibleInfo = e3;
            }
            if (d2 = zt(f2, t4), D(d2) && (u2.filterItemMap = d2), D(l2) && (u2.filteredColumns = l2), h2 && (u2.sortInfo = h2), c2) if (E.isEmptyObject(c2)) if (null == t4 ? void 0 : t4.isServer) {
              for (r2 = {}, n3 = a2.KUr(s2); n3 < a2.bct(s2, a2.Mf); n3++) r2[n3] = true;
              u2.filterButtonVisibleInfo = r2, u2.showFilterButton = true;
            } else u2.showFilterButton = true;
            else {
              for (n3 in u2.filterButtonVisibleInfo = E.extend({}, c2), o2 = false, c2) if (c2[n3]) {
                o2 = true;
                break;
              }
              u2.showFilterButton = o2;
            }
            return true !== (null == t4 ? void 0 : t4.isServer) && (u2.filteredOutRows = a2.getToJsonRowFilter()), u2;
          }, t3.prototype.wh = function(t4, n3, e3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, O2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, nt2, et2, it2 = t4.c_, rt2 = this, ot2 = rt2.Mf, at2 = rt2.f8 ? ot2.frozenRowCount() : 0, ut2 = e3 && i2.OpenSaveFileType.excel === e3.fileType, st2 = rt2.range && ut2 ? on(ot2, rt2.range, at2) : rt2.range, ct2 = rt2.rrt, ft2 = rt2.Mct, lt2 = [], ht2 = st2 && st2.col, dt2 = rt2.nM, vt2 = 1, pt2 = false, gt2 = false;
            if (dt2 && (false === (a2 = dt2.jO) && (vt2 = 0), pt2 = true, (gt2 = dt2.NTr()) && (r2 = function(t5) {
              return u2 = dt2.GTr(t5), function(t6) {
                var n4;
                return null !== (n4 = u2[t6]) && void 0 !== n4 ? n4 : t6;
              };
            })), ct2 && ct2.length > 0 && ft2 && ft2.length > 0) {
              for (c2 = 0; c2 < D(ft2); c2++) if (l2 = ct2[f2 = ft2[c2]]) {
                if (ut2 && (!st2 || f2 < ht2 || f2 >= ht2 + st2.colCount)) continue;
                if (gt2) {
                  if (!ut2) {
                    for (h2 = [], d2 = 0; d2 < l2.length; d2++) v2 = l2[d2], h2.push(v2 instanceof o.Condition ? v2.toJSON() : tt(tt({}, v2), { isCondition: false }));
                    C(s2) && (s2 = []), s2.push({ index: f2, conditions: h2 });
                    continue;
                  }
                  l2 = rt2.Zao(f2, r2);
                } else if (rt2.sKr(f2)) {
                  for (h2 = [], p2 = false, d2 = 0; d2 < l2.length; d2++) (v2 = l2[d2]).conType() === o.ConditionType.formulaCondition && (p2 = true), h2.push(v2.toJSON());
                  if (p2) {
                    C(s2) && (s2 = []), s2.push({ index: f2, conditions: h2 });
                    continue;
                  }
                }
                if (m2 = void 0, (g2 = l2[0]) instanceof o.Condition) for (m2 = g2, d2 = 1; d2 < l2.length; d2++) m2 = (0, o.aJ)(0, 0, y, y, y, y, y, m2, l2[d2]);
                m2 && (fn(m2) ? (b2 = { n_: "filterColumn", colId: (dt2 ? f2 - dt2.iw : f2 - ht2) + "" }, st2 && (w2 = new i2.Range(st2.row + (ut2 ? 1 : 0), ht2, (st2.rowCount < 0 ? ot2.getRowCount() : st2.rowCount) - (ut2 ? 1 : 0), st2.colCount < 0 ? ot2.getColumnCount() : st2.colCount), M2 = void 0, 1 === D(l2) ? (M2 = Pt(ot2, m2, w2, n3), C(M2) && (M2 = Gt(m2, ot2, w2, n3))) : M2 = Gt(m2, ot2, w2, n3), C(M2) || (b2.c_ = [M2])), lt2.push(b2)) : ut2 || (C(s2) && (s2 = []), s2.push({ index: f2, conditions: [m2 instanceof o.Condition ? m2.toJSON() : tt(tt({}, m2), { isCondition: false })] })));
              }
            }
            if (S2 = ot2.getSpans(), T2 = [], st2 && S2 && S2.length > 0) {
              for (x2 = st2.row, A2 = lt2.length > 0, I2 = st2.colCount, k2 = 0, N2 = S2; k2 < N2.length; k2++) if (O2 = (j2 = N2[k2]).row, R2 = j2.rowCount, L2 = j2.col, F2 = j2.colCount, L2 >= ht2 && L2 + F2 <= I2 && (x2 === O2 || x2 === O2 + R2 - 1)) for (B2 = L2; B2 < L2 + F2 - 1; B2++) P2 = B2 - ht2, (A2 || true === pt2) && (G2 = lt2[B2]) && +G2.colId === P2 ? lt2[B2].showButton = 0 : T2.push({ n_: "filterColumn", colId: P2, showButton: 0 });
              lt2 = lt2.concat(T2);
            }
            if ((U2 = rt2.nrt) && st2 && (pt2 ? H2 = Ut(U2, st2, n3) : lt2.push(Ut(U2, st2, n3))), z2 = true, V2 = rt2.srt) {
              if (Y2 = false, E.isEmptyObject(V2)) Y2 = true;
              else for (c2 in V2) if (V2[c2]) {
                Y2 = true;
                break;
              }
              if (0 !== vt2) {
                if (dt2 && (!Y2 || !Ht(V2))) if (0 === lt2.length) {
                  if (ut2 && st2) for (c2 = 0; c2 < st2.colCount; c2++) lt2.push({ n_: "filterColumn", colId: c2 + "", hiddenButton: "1" });
                } else for (Z2 = void 0, W2 = 0, Q2 = lt2; W2 < Q2.length; W2++) V2[(Z2 = Q2[W2]).colId] || (Z2.hiddenButton = "1");
              } else z2 = false;
            }
            if (st2 && z2) {
              if (K2 = !(e3 && e3.fileType === i2.OpenSaveFileType.excel), J2 = { n_: "autoFilter", ref: i2.range_parser.jc(st2) }, K2 && (J2.lossless || (J2.lossless = {}), J2.lossless.isSJSFilter = K2, J2.lossless.filterButtonVisibleInfo = V2, (q2 = (X2 = rt2.typeName) && X2 !== _) ? (J2.lossless.typeName = X2, J2.lossless.filterItemMap = zt(ct2)) : (C(s2) || (J2.lossless.filterItemMap = s2, J2.lossless.filterColumns = rt2.Mct), C(rt2._ct) || (J2.lossless.filteredInRowsWithColIndices = rt2._ct)), $2 = rt2.uct)) {
                for (et2 in nt2 = {}, $2) $2.hasOwnProperty(et2) && false === $2[et2] && (nt2[et2] = false);
                J2.lossless.dialogVisibleInfo = nt2;
              }
              lt2.length > 0 && (J2.c_ = lt2), it2 || (it2 = t4.c_ = []), it2.push(J2), H2 && it2.push(H2);
            }
          }, t3.prototype.Wao = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.nM, a2 = function(n4) {
              return t4 = o2.GTr(n4), function(n5) {
                var e4;
                return null !== (e4 = t4[n5]) && void 0 !== e4 ? e4 : n5;
              };
            }, u2 = r2.rrt, s2 = r2.Mct;
            if (u2 && u2.length > 0 && s2 && s2.length > 0) for (n3 = 0; n3 < D(s2); n3++) (i3 = u2[e3 = s2[n3]]) && r2.Zao(e3, a2, true);
          }, t3.prototype.Zao = function(t4, n3, e3) {
            var i3, r2, a2, u2, s2, c2, f2 = this, l2 = f2.rrt[t4], h2 = [], d2 = n3(t4);
            for (a2 = 0; a2 < l2.length; a2++) {
              if ((u2 = l2[a2]) instanceof o.Condition) {
                if (s2 = u2.expected(), u2.conType() === o.ConditionType.relationCondition || s2 === y) {
                  h2.push(u2);
                  continue;
                }
                if (i3 = d2(s2), r2 = u2.compareType(), e3 && i3 !== s2) continue;
              } else i3 = d2(u2.value), r2 = o.TextCompareType.equalsTo;
              c2 = (0, o.aJ)(o.ConditionType.textCondition, r2, i3), e3 ? l2[a2] = c2 : h2.push(c2);
            }
            return h2;
          }, t3.prototype.sKr = function(t4) {
            var n3 = this.Mf;
            return n3 && n3.outlineColumn && n3.outlineColumn.Un(t4) && !n3.NMi;
          }, t3.prototype.Hct = function(t4) {
            var n3 = t4.options;
            return !t4.isActualProtected() || n3.protectionOptions.allowFilter;
          }, t3.prototype.hitTest = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2 = t4.dataRange ? t4.dataRange.ayt.Mf : this.Mf;
            if (N2) {
              if (i3 = t4.rowViewportIndex, r2 = t4.colViewportIndex, o2 = t4.hitTestType, u2 = N2.yw(r2), 1 === o2 ? (s2 = N2.jF().findY(e3), c2 = u2.findX(n3), f2 = 1) : 3 === o2 && (s2 = N2.dw(i3).findY(e3), c2 = u2.findX(n3), f2 = 3), !s2 || !c2) return b;
              if (l2 = t4.dataRange, h2 = N2, p2 = d2 = s2.row, g2 = v2 = c2.col, m2 = false, y2 = f2, l2 && (w2 = l2.convertContext({ sheet: N2, row: d2, col: v2, sheetArea: t4.hitTestType })) && w2.sheet !== N2 && (m2 = true, h2 = w2.sheet, p2 = w2.row, g2 = w2.col, y2 = w2.sheetArea), M2 = lt(h2, p2, g2, y2), C2 = h2.AO(), M2) {
                if (S2 = M2.row, T2 = M2.col, !M2.contains(p2, g2, 1, 1)) return b;
                m2 || (d2 = S2, v2 = T2), p2 = S2, g2 = T2;
              }
              return C2 && (x2 = ot(C2, p2, g2, y2)) && (A2 = N2.getCellRect(d2, v2, i3, r2, { needAutoMerge: true }), I2 = N2.Lt(v2), (k2 = N2.an(A2, f2, { columnHeaderFitMode: I2, cellWidth: N2.getColumnWidth(v2) })).x <= n3 && n3 <= k2.x + k2.width - (v2 === N2.getColumnCount() - N2.frozenTrailingColumnCount() - 1 ? 2 : 0) && k2.y <= e3 && e3 <= k2.y + k2.height) ? new a.rut(x2.rowFilter, x2.row, x2.col, x2.sheetArea, k2.x, k2.y, k2.width, k2.height) : b;
            }
          }, t3.prototype.Uoe = function() {
            return this.extendedRange || this.range;
          }, t3;
        })(), n2.RowFilterBase = Q, K = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, n4) || this;
            return e3.dialogOptions = { allowResize: true, keepDialogSize: true }, e3.act = true, e3.typeName = _, e3.uct = E.extend({}, H), e3.Qst = new r.Formatter.GeneralFormatter("yyyy/mm/dd"), e3;
          }
          return $(n3, t3), n3.ListValueCompareFn = function(t4, n4, e3) {
            var i3, r2, o2 = { date: 0, number: 1, string: 2, boolean: 3, calc_error: 4, object: 5, blank: 6 }, a2 = t4.value, u2 = n4.value, s2 = t4.type, c2 = n4.type;
            if (s2 !== c2) return o2[s2] < o2[c2] ? -1 : 1;
            if ("date" === s2 && "date" === c2) {
              if ((i3 = a2.getFullYear ? a2.getFullYear() : a2) < (r2 = u2.getFullYear ? u2.getFullYear() : u2)) return 1;
              if (i3 > r2) return -1;
            }
            return "string" === s2 && "string" === c2 && (a2 = a2.toLowerCase(), u2 = u2.toLowerCase()), a2 > u2 ? 1 : a2 < u2 ? -1 : 0;
          }, n3.prototype.V_r = function() {
            return "hideRow";
          }, n3.prototype.onFilter = function(t4) {
            var n4, e3 = this, i3 = e3.Mf;
            i3 && ((n4 = e3.zct(i3, t4.filteredRows, t4.filteredOutRows)) && n4.length > 0 && cn(i3, n4[0]), i3.iP());
          }, n3.prototype.filterDialogVisibleInfo = function(t4) {
            var n4, e3, i3, r2, o2;
            return 0 === arguments.length ? (this.uct || (this.uct = E.extend({}, H)), e3 = this.uct, (null === (n4 = null == (i3 = this.Mf) ? void 0 : i3.sw) || void 0 === n4 ? void 0 : n4.dataRange) ? ((r2 = E.extend({}, e3)).sortByValue = false, r2.sortByColor = false, r2) : e3) : t4 ? (o2 = {}, t4.sortByValue !== y && (o2.sortByValue = !!t4.sortByValue), t4.sortByColor !== y && (o2.sortByColor = !!t4.sortByColor), t4.filterByColor !== y && (o2.filterByColor = !!t4.filterByColor), t4.filterByValue !== y && (o2.filterByValue = !!t4.filterByValue), t4.listFilterArea !== y && (o2.listFilterArea = !!t4.listFilterArea), E.extend(this.uct, o2), this) : void 0;
          }, n3.prototype.zct = function(t4, n4, e3) {
            var i3, r2, o2, a2 = this, u2 = t4.filterRowsVisibleInfo;
            if (u2) return (i3 = t4.getCalcService()).suspend(), i3.Vct = 4, r2 = a2.THr({ type: "updateFilterData", data: { rowVisibleInfo: u2.rowsVisibleInfo } }), o2 = u2.Yct(n4, e3), a2.$Dr({ type: "updateFilterData", data: { rowVisibleInfo: u2.rowsVisibleInfo } }, r2), t4.recalcRows && t4.recalcRows(o2), delete i3.Vct, i3.resume(false), i3.Zct(), o2;
          }, n3.prototype.openFilterDialog = function(t4) {
            var e3, i3, r2, o2 = this, u2 = o2.Mf;
            if (o2.Hct(u2)) {
              if (e3 = { r: b }, n3.et(o2, "beforeOpenFilterDialog", e3), e3.r) return;
              i3 = document.documentElement.scrollHeight, r2 = new a.iut(u2.parent.j2(), u2, t4, o2.filterDialogVisibleInfo(), o2.dialogOptions), u2.Cut = r2, r2.rQ(i3);
            }
          }, n3.prototype.GFe = function() {
            this.Mf.rowFilter(null);
          }, n3.prototype.aze = function(t4, n4) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.rrt[t4];
            if (u2 && u2.length > 0) {
              if (e3 = [], !n4 || !n4(e3, u2)) for (i3 = 0; i3 < u2.length; i3++) o2 = qt(r2 = u2[i3], t4), 0 === i3 ? e3 = o2 : (o2[0].relation = "or", e3 = e3.concat(o2));
              return e3;
            }
            return [];
          }, n3.prototype.ikr = function(t4) {
            return Xt(t4);
          }, n3;
        })(Q), n2.HideRowFilter = K, (0, i2.$e)(K), J = (function() {
          function t3() {
            this.c5();
          }
          return t3.prototype.hct = function(t4) {
            if (this.empty) return true;
            var n3 = this.rowsVisibleInfo[t4];
            return !!C(n3) || n3;
          }, t3.prototype.Yct = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2 = [], h2 = this.rowsVisibleInfo;
            for (e3 = 0, r2 = t4.length; e3 < r2; e3++) (a2 = h2[o2 = t4[e3]]) !== y && a2 !== b && l2.push(o2), delete h2[o2];
            for (u2 = 0, s2 = n3.length; u2 < s2; u2++) (f2 = h2[c2 = n3[u2]]) !== y && f2 !== b || l2.push(c2), h2[c2] = false;
            return this.empty = 0 === n3.length && i2.GC$.isEmptyObject(h2), l2;
          }, t3.prototype.c5 = function() {
            this.rowsVisibleInfo = {}, this.empty = true;
          }, t3.prototype.rE = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this.rowsVisibleInfo, u2 = {}, s2 = Object.keys(a2);
            for (i3 = 0, r2 = s2; i3 < r2.length; i3++) (e3 = +(o2 = r2[i3])) >= t4 ? u2[e3 + n3] = a2[e3] : u2[e3] = a2[e3];
            this.rowsVisibleInfo = u2;
          }, t3.prototype.aE = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this.rowsVisibleInfo, u2 = {}, s2 = Object.keys(a2), c2 = t4 + n3;
            for (i3 = 0, r2 = s2; i3 < r2.length; i3++) (e3 = +(o2 = r2[i3])) >= t4 && e3 < c2 ? delete a2[e3] : e3 >= c2 ? u2[e3 - n3] = a2[e3] : u2[e3] = a2[e3];
            this.rowsVisibleInfo = u2;
          }, t3.prototype.dct = function() {
            return !this.empty;
          }, t3.prototype.clone = function() {
            var n3 = new t3();
            return n3.rowsVisibleInfo = E.extend({}, this.rowsVisibleInfo), n3.empty = this.empty, n3;
          }, t3;
        })(), X = { init: function() {
          var t3 = this;
          t3.IB = b, t3.filterRowsVisibleInfo = new J(), t3.$L.push({ tF: function(n3) {
            return t3.filterRowsVisibleInfo.hct(n3);
          } }), nn(t3);
        }, getUsedRange: function(t3) {
          var n3, e3, r2;
          t3.type & i2.UsedRangeType.filter && (r2 = (e3 = (n3 = this).IB) && e3.getUsedRange(), B(t3.range, r2));
        }, processMouseDown: function(t3) {
          var n3 = t3.hitInfo.filterButtonHitInfo;
          n3 && (n3.rowFilter.openFilterDialog(n3), t3.r = true);
        }, onLayoutChanged: function(t3) {
          var n3, e3, r2 = this, o2 = t3.changeType, a2 = t3.row, u2 = t3.rowCount, s2 = t3.col, c2 = t3.colCount, f2 = r2.IB;
          "invalidateLayout" !== o2 ? (n3 = C(t3.sheetArea) || t3.sheetArea === i2.SheetArea.viewport, f2 && (e3 = r2.Ut, "addRows" === o2 && n3 ? e3.Qct(a2, u2, t3.rowExpand) : "deleteRows" === o2 && n3 ? e3.Kct(a2, u2) : "addColumns" === o2 && n3 ? e3.Jct(s2, c2) : "deleteColumns" === o2 && n3 ? e3.Xct(s2, c2) : "clear" === o2 && f2.range ? e3.qct(a2, s2, u2, c2) : "setRowCount" === o2 && n3 && f2.range && en(r2, true))) : r2.lct = b;
        }, onLayoutChangedFromOp: function(t3) {
          var n3 = this, e3 = t3.changeType, r2 = n3.IB, o2 = C(t3.sheetArea) || t3.sheetArea === i2.SheetArea.viewport;
          r2 && o2 && ("addRows" !== e3 && "deleteRows" !== e3 && "addColumns" !== e3 && "deleteColumns" !== e3 || r2.Mke(true));
        }, onCopyOrMoveRange: function(t3) {
          var n3, e3, r2, o2, a2 = this, u2 = t3.srcSheet, s2 = t3.isMove, c2 = t3.fromRow, f2 = t3.fromCol, l2 = t3.toRow, h2 = t3.toCol, d2 = t3.rowCount, v2 = t3.colCount;
          s2 && (n3 = an(u2)) && (c2 < 0 && f2 >= 0 && n3.col >= f2 && n3.col + n3.colCount <= f2 + v2 ? (e3 = h2 + n3.col - f2, r2 = new i2.Range(n3.row, e3, n3.rowCount, n3.colCount), a2.rowFilter(new K(r2))) : f2 < 0 && c2 >= 0 && n3.row >= c2 && n3.row + n3.rowCount <= c2 + d2 ? (o2 = l2 + n3.row - c2, r2 = new i2.Range(o2, n3.col, n3.rowCount, n3.colCount), a2.rowFilter(new K(r2))) : f2 >= 0 && n3.col >= f2 && n3.col + n3.colCount <= f2 + v2 && c2 >= 0 && n3.row >= c2 && n3.row + n3.rowCount <= c2 + d2 && (e3 = h2 + n3.col - f2, o2 = l2 + n3.row - c2, r2 = new i2.Range(o2, e3, n3.rowCount, n3.colCount), a2.rowFilter(new K(r2))));
        }, dispose: function(t3) {
          var n3 = this, e3 = n3.Cut, i3 = t3 && t3.clearCache;
          e3 && e3.close(), false !== i3 && rn(n3);
        }, toJson: function(t3, n3) {
          var e3 = this.IB, i3 = n3 && n3.ignoreStyle;
          e3 && !i3 && (t3.rowFilter = e3.toJSON(n3));
        }, wh: function(t3, n3, e3) {
          var r2 = this.IB, o2 = e3 && false === e3.includeStyles, a2 = e3 && i2.OpenSaveFileType.excel === e3.fileType;
          a2 && !o2 && Qt(t3, this), !r2 || o2 || this.NMi || r2.wh(t3, n3.styleManager, e3);
        }, yh: function(t3, n3, e3) {
          var i3, r2 = e3 && false === e3.includeStyles, o2 = e3 && e3.isApplyRefilter;
          r2 || (i3 = f(t3, "autoFilter"), C(i3) || tn(i3, this, n3.styleManager, o2, e3, t3));
        }, fromJson: function(t3, n3, e3) {
          var i3 = t3.rowFilter, r2 = t3.isApplyRefilter, o2 = e3 && e3.ignoreStyle;
          i3 && !o2 && $t(i3, this, n3, r2);
        }, paintCell: function(t3) {
          var n3, e3, r2, o2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = t3.cell, S2 = C2.width, T2 = C2.height, x2 = C2.cellLayout, A2 = M2.BO(), k2 = t3.sheetArea, N2 = C2.row, j2 = C2.col;
          if (M2.dataRanges && (e3 = M2.dataRanges.getByPosition(C2.row, C2.col)) && (r2 = e3.convertContext({ sheet: M2, row: N2, col: j2, sheetArea: k2 })) && r2.sheet !== M2 && (n3 = r2.sheet, N2 = r2.row, j2 = r2.col, k2 = r2.sheetArea), o2 = n3 ? n3.AO() : M2.AO(), u2 = [], c2 = t3.ctx, C2 && C2.cornerX && 0 !== C2.columnHeaderFitMode && (f2 = C2.columnHeaderFitMode, h2 = (l2 = C2.cornerX) - C2.x), (!x2 || !I(u2, x2)) && o2 && S2 > 0 && T2 > 0 && (d2 = ot(o2, N2 = C2.baseRow || N2, j2 = C2.baseCol || j2, k2))) {
            v2 = new a.rut(d2.rowFilter, d2.row, d2.col, d2.sheetArea, C2.x, C2.y, S2, T2), g2 = (p2 = M2.an(new i2.Rect(v2.x, v2.y, v2.width, v2.height), v2.sheetArea, { cellWidth: h2, columnHeaderFitMode: f2 })).width, m2 = p2.height, b2 = p2.x, y2 = p2.y, w2 = (0, s.getFilterButtonImageSrc)(v2.jt()), c2.save(), c2.rect(v2.x, v2.y, v2.width, v2.height), c2.clip(), c2.beginPath(), c2.lineWidth = 1, c2.fillStyle = "#FFFFFF", c2.strokeStyle = "#CCCCCC", c2.fillRect(b2 + 1, y2 + 1, g2 - 3, m2 - 3), c2.strokeRect(b2 + 1 - 0.5, y2 + 2 - 0.5, g2 - 3, m2 - 4);
            try {
              A2.getState(w2) ? c2.drawImage(A2.getImage(w2), b2, y2 + 1, g2 - 3, m2 - 3) : A2.addImage(w2);
            } catch (t4) {
            }
            c2.beginPath(), c2.restore();
          }
        } }, i2.Worksheet.ch("filter", X), q = { init: function() {
          i2.Commands.crt(this.commandManager());
        }, onCultureChanged: function() {
          F();
        } }, i2.Workbook.ch("filter", q), E.extend(i2.Y8.prototype, { cct: function(t3, n3, e3, r2) {
          var o2, a2, u2, s2 = this, c2 = s2.G8;
          if (c2) {
            switch (c2.originalFilter || (c2.originalFilter = []), o2 = { type: n3, newState: r2, rowFilter: t3 }, n3) {
              case 0:
                a2 = void 0, a2 = t3 ? { range: t3.range, typeName: t3.typeName, filteredColumns: t3.Mct.concat([]), filteredItems: t3.Ect.concat([]), filterItemMap: t3.rrt.concat([]), filteredInRowsWithColIndexs: (0, i2.RF)(t3._ct), filterButtonVisibleInfo: E.extend({}, t3.srt), sortInfo: E.extend({}, t3.nrt) } : b, u2 = s2.Mf.filterRowsVisibleInfo.clone(), o2.changeInfo = { rowFilter: a2, filterRowsVisibleInfo: u2 };
                break;
              case 2:
              case 7:
              case 5:
              case 6:
                o2.changeInfo = { filterItemMap: t3.rrt.concat([]), filteredColumns: t3.Mct.concat([]), filteredItems: t3.Ect.concat([]), filteredInRowsWithColIndexs: (0, i2.RF)(t3._ct), filterRowsVisibleInfo: s2.Mf.filterRowsVisibleInfo.clone() };
                break;
              case 1:
                o2.changeInfo = t3.nrt;
                break;
              case 3:
                o2.changeInfo = E.extend({}, t3.srt);
                break;
              case 4:
                o2.changeInfo = { col: e3, val: t3.srt[e3] };
                break;
              case 8:
                o2.changeInfo = { range: t3.range, filteredColumns: t3.Mct.concat([]), filteredItems: t3.Ect.concat([]), filteredInRowsWithColIndexs: (0, i2.RF)(t3._ct), filterButtonVisibleInfo: E.extend({}, t3.srt), sortInfo: E.extend({}, t3.nrt), filterRowsVisibleInfo: s2.Mf.filterRowsVisibleInfo.clone() };
                break;
              case 9:
              case 10:
                o2.changeInfo = { range: t3.range, filteredInRowsWithColIndexs: (0, i2.RF)(t3._ct), filteredColumns: t3.Mct.concat([]), filterRowsVisibleInfo: s2.Mf.filterRowsVisibleInfo.clone() };
                break;
              case 11:
              case 12:
                o2.changeInfo = { range: t3.range, sortInfo: E.extend({}, t3.nrt), filterItemMap: t3.rrt.concat([]), filteredColumns: t3.Mct.concat([]), filterRowsVisibleInfo: s2.Mf.filterRowsVisibleInfo.clone() };
                break;
              case 13:
                o2.changeInfo = { filterItemMap: t3.rrt.concat([]), filteredColumns: t3.Mct.concat([]), filteredItems: t3.Ect.concat([]), filteredInRowsWithColIndexs: (0, i2.RF)(t3._ct) };
                break;
              case 14:
                o2.changeInfo = { range: t3.range };
            }
            c2.originalFilter.push(o2);
          }
        }, $ct: function(t3) {
          var n3, e3, o2, a2, u2 = this, s2 = u2.Mf, c2 = t3.rowFilter, f2 = t3.changeInfo;
          if (c2 || 0 === t3.type) {
            if (c2 && "Object" === c2.constructor.name) {
              if (!c2.range) return;
              c2.tableName ? (n3 = s2.tables.findByName(c2.tableName)) && (c2 = n3.rowFilter()) : f2 && f2.rowFilter ? $t(t3.rowFilter, s2, false) : c2 = s2.rowFilter();
            }
            switch (f2 && f2.filterRowsVisibleInfo && "Object" === f2.filterRowsVisibleInfo.constructor.name && ((e3 = new J()).rowsVisibleInfo = r.Common.lt.Dh({}, f2.filterRowsVisibleInfo.rowsVisibleInfo), e3.empty = f2.filterRowsVisibleInfo.empty, f2.filterRowsVisibleInfo = e3), o2 = c2 && c2.wtt && { filterItemMap: c2.rrt, filteredColumns: c2.Mct }, t3.type) {
              case 0:
                f2.rowFilter ? s2.IB = E.extend(c2, f2.rowFilter) : s2.IB = f2.rowFilter, un(s2, f2.filterRowsVisibleInfo);
                break;
              case 1:
                c2.nrt = f2;
                break;
              case 3:
                c2.srt = f2;
                break;
              case 4:
                c2.srt[f2.col] = f2.val;
                break;
              case 5:
              case 6:
                c2.rrt = f2.filterItemMap.concat([]), c2.Mct = f2.filteredColumns.concat([]), c2._ct = (0, i2.RF)(f2.filteredInRowsWithColIndexs), c2.Ect = f2.filteredItems.concat([]), un(s2, f2.filterRowsVisibleInfo);
                break;
              case 2:
              case 7:
                c2.rrt = f2.filterItemMap.concat([]), c2.Mct = f2.filteredColumns.concat([]), c2._ct = (0, i2.RF)(f2.filteredInRowsWithColIndexs), c2.Ect = f2.filteredItems.concat([]), a2 = sn(s2, f2.filterRowsVisibleInfo), un(s2, f2.filterRowsVisibleInfo), a2 > -1 && cn(s2, a2);
                break;
              case 8:
                E.extend(c2, f2), un(s2, f2.filterRowsVisibleInfo);
                break;
              case 9:
              case 10:
                c2.range = f2.range, c2._ct = (0, i2.RF)(f2.filteredInRowsWithColIndexs), c2.Mct = f2.filteredColumns, un(s2, f2.filterRowsVisibleInfo);
                break;
              case 11:
              case 12:
                c2.range = f2.range, c2.nrt = f2.sortInfo, c2.rrt = f2.filterItemMap, c2.Mct = f2.filteredColumns, un(s2, f2.filterRowsVisibleInfo);
                break;
              case 13:
                c2.rrt = f2.filterItemMap.concat([]), c2.Mct = f2.filteredColumns.concat([]), c2._ct = (0, i2.RF)(f2.filteredInRowsWithColIndexs), c2.Ect = f2.filteredItems.concat([]);
                break;
              case 14:
                c2.range = f2.range, c2.reFilter();
            }
            c2 && c2.wtt && c2.wtt(t3.type, t3.newState, f2, o2);
          }
        }, tft: function(t3, n3) {
          var e3, i3, r2 = D(t3);
          if (n3) for (e3 = 0; e3 < r2; e3++) (i3 = t3[e3]).newState && this.$ct(i3);
          else for (e3 = r2 - 1; e3 >= 0; e3--) (i3 = t3[e3]).newState || this.$ct(i3);
        }, Qct: function(t3, n3, e3) {
          var i3 = this.Mf.IB;
          i3 && (this.cct(i3, 9), i3.JO(t3, n3, e3), this.cct(i3, 9, y, true));
        }, Kct: function(t3, n3) {
          var e3 = this.Mf.IB;
          e3 && (this.cct(e3, 10), e3.xP(t3, n3), this.cct(e3, 10, y, true));
        }, Jct: function(t3, n3) {
          var e3 = this.Mf.IB;
          e3 && (this.cct(e3, 11), e3.qO(t3, n3), this.cct(e3, 11, y, true));
        }, Xct: function(t3, n3) {
          var e3 = this.Mf.IB;
          e3 && (this.cct(e3, 12), e3.NP(t3, n3), this.cct(e3, 12, y, true));
        }, qct: function(t3, n3, e3, i3) {
          var r2 = this.Mf.IB;
          r2 && r2.d5(t3, n3, e3, i3);
        } }), i2.Y8.ch("filter", { applyChanges: function(t3) {
          var n3 = t3.changes, e3 = t3.isUndo, i3 = n3 && n3.originalFilter;
          i3 && D(i3) && this.tft(i3, !e3);
        }, undo: function(t3) {
          var n3 = t3.originalFilter;
          D(n3) && this.tft(n3);
        } });
      }, "./dist/plugins/filter/filter.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ThisWeek = n2.NextWeek = n2.Yesterday = n2.Today = n2.Tomorrow = n2.After = n2.Before = n2.NotContain = n2.Contain = n2.End = n2.Begin = n2.BelowAverage = n2.AboveAverage = n2.Top10 = n2.Between = n2.LessThanOrEquals = n2.LessThan = n2.GreaterOrEquals = n2.GreaterThan = n2.NotEqual = n2.Equal = n2.Custom = n2.NumberFilter = n2.DateFilter = n2.TextFilter = n2.Clear = n2.Automatic = n2.NoFill = n2.CellColor = n2.FontColor = n2.SortFontTitle = n2.SortCellTitle = n2.FilterFontTitle = n2.FilterCellTitle = n2.FilterColor = n2.SortColor = n2.Or = n2.And = n2.ShowRows = n2.Show = n2.Exp_FilterItemIsNull = n2.Blanks = n2.UncheckAll = n2.CheckAll = n2.Search = n2.Cancel = n2.OK = n2.SortDescending = n2.SortAscending = n2.Exp_InvalidColumnIndex = void 0, n2.Aug = n2.Jul = n2.Jun = n2.May = n2.Apr = n2.Mar = n2.Feb = n2.Jan = n2.Q4 = n2.Q3 = n2.Q2 = n2.Q1 = n2.BeforeOrEqual = n2.IsBefore = n2.AfterOrEqual = n2.IsAfter = n2.NotContains = n2.IsContain = n2.NotEndWith = n2.IsEndWith = n2.NotBeginWith = n2.IsBeginWith = n2.LessOrEqual = n2.IsLess = n2.IsGreaterOrEqual = n2.IsGreaterThan = n2.NotEquals = n2.IsEquals = n2.Selected = n2.FilterFont = n2.FilterCell = n2.SortFont = n2.SortCell = n2.bottom = n2.top = n2.ColorTitle = n2.CustomTitle = n2.Top10Filter = n2.AllDates = n2.YearToDate = n2.LastYear = n2.ThisYear = n2.NextYear = n2.LastQuarter = n2.ThisQuarter = n2.NextQuarter = n2.LastMonth = n2.ThisMonth = n2.NextMonth = n2.LastWeek = void 0, n2.invalidCondition = n2.add_current_filter = n2.Day = n2.Year = n2.Explain2 = n2.Explain1 = n2.Dec = n2.Nov = n2.Oct = n2.Sep = void 0, n2.Exp_InvalidColumnIndex = "Invalid column index.", n2.SortAscending = "Sort Ascending", n2.SortDescending = "Sort Descending", n2.OK = "OK", n2.Cancel = "Cancel", n2.Search = "Search", n2.CheckAll = "Check all", n2.UncheckAll = "Uncheck all", n2.Blanks = "(Blanks)", n2.Exp_FilterItemIsNull = "FilterItem is null.", n2.Show = "Show", n2.ShowRows = "Show rows where:", n2.And = "And", n2.Or = "Or", n2.SortColor = "Sort By Color", n2.FilterColor = "Filter By Color", n2.FilterCellTitle = "Filter By Cell Color", n2.FilterFontTitle = "Filter By Font Color", n2.SortCellTitle = "Sort By Cell Color", n2.SortFontTitle = "Sort By Font Color", n2.FontColor = "More Font Colors...", n2.CellColor = "More Cell Colors...", n2.NoFill = "No Fill", n2.Automatic = "Automatic", n2.Clear = "Clear Filter From {0}", n2.TextFilter = "Text Filters", n2.DateFilter = "Date Filters", n2.NumberFilter = "Number Filters", n2.Custom = "Custom Filter...", n2.Equal = "Equals...", n2.NotEqual = "Does Not Equal...", n2.GreaterThan = "Greater Than...", n2.GreaterOrEquals = "Greater Than Or Equal To...", n2.LessThan = "Less Than...", n2.LessThanOrEquals = "Less Than Or Equal To...", n2.Between = "Between...", n2.Top10 = "Top 10...", n2.AboveAverage = "Above Average", n2.BelowAverage = "Below Average", n2.Begin = "Begins With...", n2.End = "Ends With...", n2.Contain = "Contains...", n2.NotContain = "Does Not Contain...", n2.Before = "Before...", n2.After = "After...", n2.Tomorrow = "Tomorrow", n2.Today = "Today", n2.Yesterday = "Yesterday", n2.NextWeek = "Next Week", n2.ThisWeek = "This Week", n2.LastWeek = "Last Week", n2.NextMonth = "Next Month", n2.ThisMonth = "This Month", n2.LastMonth = "Last Month", n2.NextQuarter = "Next Quarter", n2.ThisQuarter = "This Quarter", n2.LastQuarter = "Last Quarter", n2.NextYear = "Next Year", n2.ThisYear = "This Year", n2.LastYear = "Last Year", n2.YearToDate = "Year To Date", n2.AllDates = "All Dates in Period", n2.Top10Filter = "Top 10 Auto Filter", n2.CustomTitle = "Custom AutoFilter", n2.ColorTitle = "Available Cell Colors", n2.top = "top", n2.bottom = "bottom", n2.SortCell = "Select a cell color to sort by:", n2.SortFont = "Select a font color to sort by:", n2.FilterCell = "Select a cell color to filter by:", n2.FilterFont = "Select a font color to filter by:", n2.Selected = "Selected:", n2.IsEquals = "equals", n2.NotEquals = "does not equal", n2.IsGreaterThan = "is greater than", n2.IsGreaterOrEqual = "is greater than or equal to", n2.IsLess = "is less than", n2.LessOrEqual = "is less than or equal to", n2.IsBeginWith = "begins with", n2.NotBeginWith = "does not begin with", n2.IsEndWith = "ends with", n2.NotEndWith = "does not end with", n2.IsContain = "contains", n2.NotContains = "does not contain", n2.IsAfter = "is after", n2.AfterOrEqual = "is after or equal to", n2.IsBefore = "is before", n2.BeforeOrEqual = "is before or equal to", n2.Q1 = "Quarter 1", n2.Q2 = "Quarter 2", n2.Q3 = "Quarter 3", n2.Q4 = "Quarter 4", n2.Jan = "January", n2.Feb = "February", n2.Mar = "March", n2.Apr = "April", n2.May = "May", n2.Jun = "June", n2.Jul = "July", n2.Aug = "August", n2.Sep = "September", n2.Oct = "October", n2.Nov = "November", n2.Dec = "December", n2.Explain1 = "Use ? to represent any single character", n2.Explain2 = "Use * to represent any series of characters", n2.Year = "", n2.Day = "", n2.add_current_filter = "Add current selection to filter", n2.invalidCondition = "Error in parse line";
      }, "./dist/plugins/floatingObject/drawing/chart.ns.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/stateful.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/common.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/color.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/colorData.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/colorFormat.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/effects.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/fillFormat.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/fontData.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/fontFormat.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/gradient.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/lineFormat.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/picture.js"), n2), r(e2("./dist/plugins/floatingObject/drawing/threeDFormat.js"), n2);
      }, "./dist/plugins/floatingObject/drawing/color.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DrawingColorHelper = n2.ColorParse = n2.KnownColorTable = n2.KnownColor = n2.ARGBColor = void 0, i2 = e2("Common"), r = e2("./dist/plugins/floatingObject/drawing/common.js"), o = i2.Common.ft, a = r.UnitHelper.isNullOrUndefined, u = void 0, s = null, c = Math.min, f = Math.max, l = Math.round, h = Math.pow, d = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.value = t4, r2.state = n3, r2.name = e3, r2.knownColor = i3;
          }
          return t3.FromKnownColor = function(n3) {
            return new t3(0, t3.StateKnownColorValid, s, n3);
          }, t3.FromIndexedColor = function(n3, e3) {
            var i3 = t3.IndexedColors;
            return i3 || (i3 = t3.IndexedColors = [4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4278190080, 4294967295, 4294901760, 4278255360, 4278190335, 4294967040, 4294902015, 4278255615, 4286578688, 4278222848, 4278190208, 4286611456, 4286578816, 4278222976, 4290822336, 4286611584, 4288256511, 4288230246, 4294967244, 4291624959, 4284874854, 4294934656, 4278216396, 4291611903, 4278190208, 4294902015, 4294967040, 4278255615, 4286578816, 4286578688, 4278222976, 4278190335, 4278242559, 4291624959, 4291624908, 4294967193, 4288269567, 4294941132, 4291598847, 4294954137, 4281558783, 4281584844, 4288269312, 4294953984, 4294940928, 4294927872, 4284901017, 4288059030, 4278203238, 4281571686, 4278203136, 4281545472, 4288230144, 4288230246, 4281545625, 4281545523, t3.FromKnownColor(v.WindowText).ToArgb(), t3.FromKnownColor(v.Window).ToArgb()]), t3.FromArgb(i3[n3]).GetTintColor(e3);
          }, t3.FromArgb = function(n3) {
            return new t3(n3, t3.StateARGBValueValid, s, 0);
          }, t3.FromArgbs = function(n3, e3, i3, r2) {
            return t3.CheckByte(n3, "alpha"), t3.CheckByte(e3, "red"), t3.CheckByte(i3, "green"), t3.CheckByte(r2, "blue"), new t3(t3.MakeArgb(n3, e3, i3, r2), t3.StateARGBValueValid, s, 0);
          }, t3.FromBaseColor = function(n3, e3) {
            return t3.CheckByte(n3, "alpha"), new t3(t3.MakeArgb(n3, e3.R, e3.G, e3.B), t3.StateARGBValueValid, s, 0);
          }, t3.FromRgb = function(n3, e3, i3) {
            return t3.FromArgbs(255, n3, e3, i3);
          }, t3.CheckByte = function(t4, n3) {
            if (t4 < 0 || t4 > 255) throw new Error("InvalidEx2BoundArgument");
          }, t3.MakeArgb = function(t4, n3, e3, i3) {
            var r2;
            return Math.pow(2, 24) * t4 + (n3 << 16 | e3 << 8 | i3);
          }, Object.defineProperty(t3.prototype, "Transparent", { get: function() {
            return t3.FromKnownColor(v.Transparent);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "R", { get: function() {
            return this.Value >> 16 & 255;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "G", { get: function() {
            return this.Value >> 8 & 255;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "B", { get: function() {
            return 255 & this.Value;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "A", { get: function() {
            return this.Value >> 24 & 255;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsKnownColor", { get: function() {
            return 0 !== (this.state & t3.StateKnownColorValid);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsEmpty", { get: function() {
            return 0 === this.state;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsNamedColor", { get: function() {
            return 0 !== (this.state & t3.StateNameValid) || this.IsKnownColor;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsSystemColor", { get: function() {
            return !!this.IsKnownColor && (!(this.knownColor > 26) || this.knownColor > 167);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Name", { get: function() {
            var n3, e3 = this;
            return 0 !== (e3.state & t3.StateNameValid) ? e3.name : e3.IsKnownColor ? (n3 = g.KnownColorToName(e3.knownColor), a(n3) ? "" : n3) : e3.value.toString(16);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Value", { get: function() {
            var n3 = this;
            return 0 !== (n3.state & t3.StateValueMask) ? n3.value : n3.IsKnownColor ? g.KnownColorToArgb(n3.knownColor) : t3.NotDefinedValue;
          }, enumerable: false, configurable: true }), t3.prototype.Equals = function(n3) {
            return n3 instanceof t3 && this.Value === n3.Value;
          }, t3.prototype.GetTintColor = function(n3) {
            var e3, i3 = this;
            return 0 === n3 || a(n3) ? i3 : (e3 = o.Cv({ r: i3.R, g: i3.G, b: i3.B }, n3), t3.FromArgbs(e3.a, e3.r, e3.g, e3.b));
          }, t3.prototype.GetBrightness = function() {
            var t4 = this.R / 255, n3 = this.G / 255, e3 = this.B / 255, i3 = t4, r2 = t4;
            return n3 > i3 && (i3 = n3), e3 > i3 && (i3 = e3), n3 < r2 && (r2 = n3), e3 < r2 && (r2 = e3), (i3 + r2) / 2;
          }, t3.prototype.GetHue = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this;
            return u2.R === u2.G && u2.G === u2.B ? 0 : (t4 = u2.R / 255, i3 = 0, (n3 = u2.G / 255) > (r2 = t4) && (r2 = n3), (e3 = u2.B / 255) > r2 && (r2 = e3), n3 < (o2 = t4) && (o2 = n3), e3 < o2 && (o2 = e3), a2 = r2 - o2, t4 === r2 ? i3 = (n3 - e3) / a2 : n3 === r2 ? i3 = 2 + (e3 - t4) / a2 : e3 === r2 && (i3 = 4 + (t4 - n3) / a2), (i3 *= 60) < 0 && (i3 += 360), i3);
          }, t3.prototype.GetSaturation = function() {
            var t4, n3 = this.R / 255, e3 = this.G / 255, i3 = this.B / 255, r2 = 0, o2 = n3, a2 = n3;
            return e3 > o2 && (o2 = e3), i3 > o2 && (o2 = i3), e3 < a2 && (a2 = e3), i3 < a2 && (a2 = i3), o2 === a2 ? r2 : (t4 = (o2 + a2) / 2) <= 0.5 ? (o2 - a2) / (o2 + a2) : (o2 - a2) / (2 - o2 - a2);
          }, t3.prototype.ToArgb = function() {
            return this.Value;
          }, t3.prototype.ToKnownColor = function() {
            return this.knownColor;
          }, t3.prototype.ToString = function() {
            var n3 = this, e3 = "ARGBColor";
            return e3 += " [", 0 !== (n3.state & t3.StateNameValid) || 0 !== (n3.state & t3.StateKnownColorValid) ? e3 += n3.Name : 0 !== (n3.state & t3.StateValueMask) ? (e3 += "A=", e3 += n3.A, e3 += ", R=", e3 += n3.R, e3 += ", G=", e3 += n3.G, e3 += ", B=", e3 += n3.B) : e3 += "Empty", e3 += "]";
          }, t3.StateKnownColorValid = 1, t3.StateARGBValueValid = 2, t3.StateValueMask = 2, t3.StateNameValid = 8, t3.NotDefinedValue = 0, t3;
        })(), n2.ARGBColor = d, (function(t3) {
          t3[t3.ActiveBorder = 1] = "ActiveBorder", t3[t3.ActiveCaption = 2] = "ActiveCaption", t3[t3.ActiveCaptionText = 3] = "ActiveCaptionText", t3[t3.AliceBlue = 28] = "AliceBlue", t3[t3.AntiqueWhite = 29] = "AntiqueWhite", t3[t3.AppWorkspace = 4] = "AppWorkspace", t3[t3.Aqua = 30] = "Aqua", t3[t3.Aquamarine = 31] = "Aquamarine", t3[t3.Azure = 32] = "Azure", t3[t3.Beige = 33] = "Beige", t3[t3.Bisque = 34] = "Bisque", t3[t3.Black = 35] = "Black", t3[t3.BlanchedAlmond = 36] = "BlanchedAlmond", t3[t3.Blue = 37] = "Blue", t3[t3.BlueViolet = 38] = "BlueViolet", t3[t3.Brown = 39] = "Brown", t3[t3.BurlyWood = 40] = "BurlyWood", t3[t3.ButtonFace = 168] = "ButtonFace", t3[t3.ButtonHighlight = 169] = "ButtonHighlight", t3[t3.ButtonShadow = 170] = "ButtonShadow", t3[t3.CadetBlue = 41] = "CadetBlue", t3[t3.Chartreuse = 42] = "Chartreuse", t3[t3.Chocolate = 43] = "Chocolate", t3[t3.Control = 5] = "Control", t3[t3.ControlDark = 6] = "ControlDark", t3[t3.ControlDarkDark = 7] = "ControlDarkDark", t3[t3.ControlLight = 8] = "ControlLight", t3[t3.ControlLightLight = 9] = "ControlLightLight", t3[t3.ControlText = 10] = "ControlText", t3[t3.Coral = 44] = "Coral", t3[t3.CornflowerBlue = 45] = "CornflowerBlue", t3[t3.Cornsilk = 46] = "Cornsilk", t3[t3.Crimson = 47] = "Crimson", t3[t3.Cyan = 48] = "Cyan", t3[t3.DarkBlue = 49] = "DarkBlue", t3[t3.DarkCyan = 50] = "DarkCyan", t3[t3.DarkGoldenrod = 51] = "DarkGoldenrod", t3[t3.DarkGray = 52] = "DarkGray", t3[t3.DarkGreen = 53] = "DarkGreen", t3[t3.DarkKhaki = 54] = "DarkKhaki", t3[t3.DarkMagenta = 55] = "DarkMagenta", t3[t3.DarkOliveGreen = 56] = "DarkOliveGreen", t3[t3.DarkOrange = 57] = "DarkOrange", t3[t3.DarkOrchid = 58] = "DarkOrchid", t3[t3.DarkRed = 59] = "DarkRed", t3[t3.DarkSalmon = 60] = "DarkSalmon", t3[t3.DarkSeaGreen = 61] = "DarkSeaGreen", t3[t3.DarkSlateBlue = 62] = "DarkSlateBlue", t3[t3.DarkSlateGray = 63] = "DarkSlateGray", t3[t3.DarkTurquoise = 64] = "DarkTurquoise", t3[t3.DarkViolet = 65] = "DarkViolet", t3[t3.DeepPink = 66] = "DeepPink", t3[t3.DeepSkyBlue = 67] = "DeepSkyBlue", t3[t3.Desktop = 11] = "Desktop", t3[t3.DimGray = 68] = "DimGray", t3[t3.DodgerBlue = 69] = "DodgerBlue", t3[t3.Firebrick = 70] = "Firebrick", t3[t3.FloralWhite = 71] = "FloralWhite", t3[t3.ForestGreen = 72] = "ForestGreen", t3[t3.Fuchsia = 73] = "Fuchsia", t3[t3.Gainsboro = 74] = "Gainsboro", t3[t3.GhostWhite = 75] = "GhostWhite", t3[t3.Gold = 76] = "Gold", t3[t3.Goldenrod = 77] = "Goldenrod", t3[t3.GradientActiveCaption = 171] = "GradientActiveCaption", t3[t3.GradientInactiveCaption = 172] = "GradientInactiveCaption", t3[t3.Gray = 78] = "Gray", t3[t3.GrayText = 12] = "GrayText", t3[t3.Green = 79] = "Green", t3[t3.GreenYellow = 80] = "GreenYellow", t3[t3.Highlight = 13] = "Highlight", t3[t3.HighlightText = 14] = "HighlightText", t3[t3.Honeydew = 81] = "Honeydew", t3[t3.HotPink = 82] = "HotPink", t3[t3.HotTrack = 15] = "HotTrack", t3[t3.InactiveBorder = 16] = "InactiveBorder", t3[t3.InactiveCaption = 17] = "InactiveCaption", t3[t3.InactiveCaptionText = 18] = "InactiveCaptionText", t3[t3.IndianRed = 83] = "IndianRed", t3[t3.Indigo = 84] = "Indigo", t3[t3.Info = 19] = "Info", t3[t3.InfoText = 20] = "InfoText", t3[t3.Ivory = 85] = "Ivory", t3[t3.Khaki = 86] = "Khaki", t3[t3.Lavender = 87] = "Lavender", t3[t3.LavenderBlush = 88] = "LavenderBlush", t3[t3.LawnGreen = 89] = "LawnGreen", t3[t3.LemonChiffon = 90] = "LemonChiffon", t3[t3.LightBlue = 91] = "LightBlue", t3[t3.LightCoral = 92] = "LightCoral", t3[t3.LightCyan = 93] = "LightCyan", t3[t3.LightGoldenrodYellow = 94] = "LightGoldenrodYellow", t3[t3.LightGray = 95] = "LightGray", t3[t3.LightGreen = 96] = "LightGreen", t3[t3.LightPink = 97] = "LightPink", t3[t3.LightSalmon = 98] = "LightSalmon", t3[t3.LightSeaGreen = 99] = "LightSeaGreen", t3[t3.LightSkyBlue = 100] = "LightSkyBlue", t3[t3.LightSlateGray = 101] = "LightSlateGray", t3[t3.LightSteelBlue = 102] = "LightSteelBlue", t3[t3.LightYellow = 103] = "LightYellow", t3[t3.Lime = 104] = "Lime", t3[t3.LimeGreen = 105] = "LimeGreen", t3[t3.Linen = 106] = "Linen", t3[t3.Magenta = 107] = "Magenta", t3[t3.Maroon = 108] = "Maroon", t3[t3.MediumAquamarine = 109] = "MediumAquamarine", t3[t3.MediumBlue = 110] = "MediumBlue", t3[t3.MediumOrchid = 111] = "MediumOrchid", t3[t3.MediumPurple = 112] = "MediumPurple", t3[t3.MediumSeaGreen = 113] = "MediumSeaGreen", t3[t3.MediumSlateBlue = 114] = "MediumSlateBlue", t3[t3.MediumSpringGreen = 115] = "MediumSpringGreen", t3[t3.MediumTurquoise = 116] = "MediumTurquoise", t3[t3.MediumVioletRed = 117] = "MediumVioletRed", t3[t3.Menu = 21] = "Menu", t3[t3.MenuBar = 173] = "MenuBar", t3[t3.MenuHighlight = 174] = "MenuHighlight", t3[t3.MenuText = 22] = "MenuText", t3[t3.MidnightBlue = 118] = "MidnightBlue", t3[t3.MintCream = 119] = "MintCream", t3[t3.MistyRose = 120] = "MistyRose", t3[t3.Moccasin = 121] = "Moccasin", t3[t3.NavajoWhite = 122] = "NavajoWhite", t3[t3.Navy = 123] = "Navy", t3[t3.OldLace = 124] = "OldLace", t3[t3.Olive = 125] = "Olive", t3[t3.OliveDrab = 126] = "OliveDrab", t3[t3.Orange = 127] = "Orange", t3[t3.OrangeRed = 128] = "OrangeRed", t3[t3.Orchid = 129] = "Orchid", t3[t3.PaleGoldenrod = 130] = "PaleGoldenrod", t3[t3.PaleGreen = 131] = "PaleGreen", t3[t3.PaleTurquoise = 132] = "PaleTurquoise", t3[t3.PaleVioletRed = 133] = "PaleVioletRed", t3[t3.PapayaWhip = 134] = "PapayaWhip", t3[t3.PeachPuff = 135] = "PeachPuff", t3[t3.Peru = 136] = "Peru", t3[t3.Pink = 137] = "Pink", t3[t3.Plum = 138] = "Plum", t3[t3.PowderBlue = 139] = "PowderBlue", t3[t3.Purple = 140] = "Purple", t3[t3.Red = 141] = "Red", t3[t3.RosyBrown = 142] = "RosyBrown", t3[t3.RoyalBlue = 143] = "RoyalBlue", t3[t3.SaddleBrown = 144] = "SaddleBrown", t3[t3.Salmon = 145] = "Salmon", t3[t3.SandyBrown = 146] = "SandyBrown", t3[t3.ScrollBar = 23] = "ScrollBar", t3[t3.SeaGreen = 147] = "SeaGreen", t3[t3.SeaShell = 148] = "SeaShell", t3[t3.Sienna = 149] = "Sienna", t3[t3.Silver = 150] = "Silver", t3[t3.SkyBlue = 151] = "SkyBlue", t3[t3.SlateBlue = 152] = "SlateBlue", t3[t3.SlateGray = 153] = "SlateGray", t3[t3.Snow = 154] = "Snow", t3[t3.SpringGreen = 155] = "SpringGreen", t3[t3.SteelBlue = 156] = "SteelBlue", t3[t3.Tan = 157] = "Tan", t3[t3.Teal = 158] = "Teal", t3[t3.Thistle = 159] = "Thistle", t3[t3.Tomato = 160] = "Tomato", t3[t3.Transparent = 27] = "Transparent", t3[t3.Turquoise = 161] = "Turquoise", t3[t3.Violet = 162] = "Violet", t3[t3.Wheat = 163] = "Wheat", t3[t3.White = 164] = "White", t3[t3.WhiteSmoke = 165] = "WhiteSmoke", t3[t3.Window = 24] = "Window", t3[t3.WindowFrame = 25] = "WindowFrame", t3[t3.WindowText = 26] = "WindowText", t3[t3.Yellow = 166] = "Yellow", t3[t3.YellowGreen = 167] = "YellowGreen";
        })(v = n2.KnownColor || (n2.KnownColor = {})), p = function(t3) {
          t3[1] = 4290032820, t3[2] = 4288263377, t3[3] = 4278190080, t3[4] = 4289440683, t3[5] = 4293980400, t3[6] = 4288716960, t3[7] = 4285098345, t3[8] = 4293125091, t3[9] = 4294967295, t3[10] = 4278190080, t3[11] = 4278190080, t3[12] = 4285361517, t3[13] = 4281571839, t3[14] = 4294967295, t3[15] = 4278216396, t3[16] = 4294244348, t3[17] = 4290760155, t3[18] = 4278190080, t3[19] = 4294967265, t3[20] = 4278190080, t3[21] = 4293980400, t3[22] = 4278190080, t3[23] = 4291348680, t3[24] = 4294967295, t3[25] = 4284769380, t3[26] = 4278190080, t3[168] = 4293980400, t3[169] = 4294967295, t3[170] = 4288716960, t3[171] = 4290367978, t3[172] = 4292338930, t3[173] = 4293980400, t3[174] = 4281571839;
        }, g = (function() {
          function t3() {
          }
          return t3.ArgbToKnownColor = function(n3) {
            var e3, i3, r2;
            for (this.EnsureColorTable(), e3 = 0; e3 < t3.colorTable.length; e3++) if ((i3 = t3.colorTable[e3]) === n3 && !(r2 = d.FromArgb(e3)).IsSystemColor) return r2;
            return d.FromArgb(n3);
          }, t3.Encode = function(t4, n3, e3, i3) {
            return n3 << 16 | e3 << 8 | i3 | t4 << 24;
          }, t3.EnsureColorNameTable = function() {
            a(t3.colorNameTable) && t3.InitColorNameTable();
          }, t3.EnsureColorTable = function() {
            a(t3.colorTable) && this.InitColorTable();
          }, t3.InitColorNameTable = function() {
            var n3, e3 = [];
            for (n3 in v) v.hasOwnProperty(n3) && (e3[v[n3]] = n3);
            t3.colorNameTable = e3;
          }, t3.InitColorTable = function() {
            var n3 = [];
            p(n3), n3[27] = 16777215, n3[28] = -984833, n3[29] = -332841, n3[30] = -16711681, n3[31] = -8388652, n3[32] = -983041, n3[33] = -657956, n3[34] = -6972, n3[35] = -16777216, n3[36] = -5171, n3[37] = -16776961, n3[38] = -7722014, n3[39] = -5952982, n3[40] = -2180985, n3[41] = -10510688, n3[42] = -8388864, n3[43] = -2987746, n3[44] = -32944, n3[45] = -10185235, n3[46] = -1828, n3[47] = -2354116, n3[48] = -16711681, n3[49] = -16777077, n3[50] = -16741493, n3[51] = -4684277, n3[52] = -5658199, n3[53] = -16751616, n3[54] = -4343957, n3[55] = -7667573, n3[56] = -11179217, n3[57] = -29696, n3[58] = -6737204, n3[59] = -7667712, n3[60] = -1468806, n3[61] = -7357301, n3[62] = -12042869, n3[63] = -13676721, n3[64] = -16724271, n3[65] = -7077677, n3[66] = -60269, n3[67] = -16728065, n3[68] = -9868951, n3[69] = -14774017, n3[70] = -5103070, n3[71] = -1296, n3[72] = -14513374, n3[73] = -65281, n3[74] = -2302756, n3[75] = -460545, n3[76] = -10496, n3[77] = -2448096, n3[78] = -8355712, n3[79] = -16744448, n3[80] = -5374161, n3[81] = -983056, n3[82] = -38476, n3[83] = -3318692, n3[84] = -11861886, n3[85] = -16, n3[86] = -989556, n3[87] = -1644806, n3[88] = -3851, n3[89] = -8586240, n3[90] = -1331, n3[91] = -5383962, n3[92] = -1015680, n3[93] = -2031617, n3[94] = -329006, n3[95] = -2894893, n3[96] = -7278960, n3[97] = -18751, n3[98] = -24454, n3[99] = -14634326, n3[100] = -7876870, n3[101] = -8943463, n3[102] = -5192482, n3[103] = -32, n3[104] = -16711936, n3[105] = -13447886, n3[106] = -331546, n3[107] = -65281, n3[108] = -8388608, n3[109] = -10039894, n3[110] = -16777011, n3[111] = -4565549, n3[112] = -7114533, n3[113] = -12799119, n3[114] = -8689426, n3[115] = -16713062, n3[116] = -12004916, n3[117] = -3730043, n3[118] = -15132304, n3[119] = -655366, n3[120] = -6943, n3[121] = -6987, n3[122] = -8531, n3[123] = -16777088, n3[124] = -133658, n3[125] = -8355840, n3[126] = -9728477, n3[127] = -23296, n3[128] = -47872, n3[129] = -2461482, n3[130] = -1120086, n3[131] = -6751336, n3[132] = -5247250, n3[133] = -2396013, n3[134] = -4139, n3[135] = -9543, n3[136] = -3308225, n3[137] = -16181, n3[138] = -2252579, n3[139] = -5185306, n3[140] = -8388480, n3[141] = -65536, n3[142] = -4419697, n3[143] = -12490271, n3[144] = -7650029, n3[145] = -360334, n3[146] = -744352, n3[147] = -13726889, n3[148] = -2578, n3[149] = -6270419, n3[150] = -4144960, n3[151] = -7876885, n3[152] = -9807155, n3[153] = -9404272, n3[154] = -1286, n3[155] = -16711809, n3[156] = -12156236, n3[157] = -2968436, n3[158] = -16744320, n3[159] = -2572328, n3[160] = -40121, n3[161] = -12525360, n3[162] = -1146130, n3[163] = -663885, n3[164] = -1, n3[165] = -657931, n3[166] = -256, n3[167] = -6632142, t3.colorTable = n3;
          }, t3.KnownColorToArgb = function(t4) {
            return this.EnsureColorTable(), t4 <= v.MenuHighlight ? this.colorTable[t4] : 0;
          }, t3.KnownColorToName = function(n3) {
            return this.EnsureColorNameTable(), n3 <= v.MenuHighlight ? t3.colorNameTable[n3] : s;
          }, t3.IsKnowColor = function(n3) {
            return t3.EnsureColorTable(), -1 !== t3.colorTable.indexOf(n3);
          }, t3;
        })(), n2.KnownColorTable = g, m = (function() {
          function t3() {
          }
          return t3.parse = function(n3) {
            var e3 = t3.fastParse(n3);
            return e3 || (e3 = o._(n3)), e3;
          }, t3.fastParse = function(n3) {
            var e3, i3 = t3.COLOR_REG, r2 = function(t4) {
              return parseInt(t4, 16);
            };
            return n3 = n3.trim().toLowerCase(), (e3 = i3.rgb.exec(n3)) ? { r: +e3[1], g: +e3[2], b: +e3[3], a: 255 } : (e3 = i3.rgba.exec(n3)) ? { r: +e3[1], g: +e3[2], b: +e3[3], a: 255 * +e3[4] } : (e3 = i3.hex8.exec(n3)) ? { r: r2(e3[1]), g: r2(e3[2]), b: r2(e3[3]), a: r2(e3[4]) } : (e3 = i3.hex6.exec(n3)) ? { r: r2(e3[1]), g: r2(e3[2]), b: r2(e3[3]), a: 255 } : (e3 = i3.hex4.exec(n3)) ? { r: r2(e3[1] + "" + e3[1]), g: r2(e3[2] + "" + e3[2]), b: r2(e3[3] + "" + e3[3]), a: r2(e3[4] + "" + e3[4]) } : (e3 = i3.hex3.exec(n3)) ? { r: r2(e3[1] + "" + e3[1]), g: r2(e3[2] + "" + e3[2]), b: r2(e3[3] + "" + e3[3]), a: 255 } : void 0;
          }, t3.COLOR_REG = { rgb: /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/, rgba: /^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d*\.?\d+)\s*\)$/, hex3: /^#([0-9a-f]{1})([0-9a-f]{1})([0-9a-f]{1})$/, hex6: /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/, hex4: /^#([0-9a-f]{1})([0-9a-f]{1})([0-9a-f]{1})([0-9a-f]{1})$/, hex8: /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/ }, t3;
        })(), n2.ColorParse = m, b = (function() {
          function t3(t4) {
            this._tV = 0, this.EtV = 0, this.FtV = 0, this.StV = 255, this.setColor(t4 || { r: 0, g: 0, b: 0, a: 255 });
          }
          return t3.fromString = function(n3) {
            return new t3(m.parse(n3));
          }, t3.fromARGBColor = function(n3) {
            return new t3({ r: n3.R, g: n3.G, b: n3.B, a: n3.A });
          }, Object.defineProperty(t3.prototype, "red", { get: function() {
            return this._tV;
          }, set: function(t4) {
            this._tV = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "green", { get: function() {
            return this.EtV;
          }, set: function(t4) {
            this.EtV = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "blue", { get: function() {
            return this.FtV;
          }, set: function(t4) {
            this.FtV = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "alpha", { get: function() {
            return this.StV;
          }, set: function(t4) {
            this.StV = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "transparency", { get: function() {
            return 1 - this.alpha / 255;
          }, set: function(t4) {
            this.alpha = 255 * (1 - t4);
          }, enumerable: false, configurable: true }), t3.prototype.applyTint = function(n3) {
            var e3, i3 = this;
            n3 = t3.boundValue(n3, 0, 1), e3 = i3.toIColor(), t3.sRgbToLinearRgb(e3), e3.r = t3.boundValue(1 - (1 - e3.r) * n3, 0, 1), e3.g = t3.boundValue(1 - (1 - e3.g) * n3, 0, 1), e3.b = t3.boundValue(1 - (1 - e3.b) * n3, 0, 1), t3.linearRgbToSRgb(e3), i3.setColor(e3);
          }, t3.prototype.applyShade = function(n3) {
            var e3, i3 = this;
            n3 = t3.boundValue(n3, 0, 1), e3 = i3.toIColor(), t3.sRgbToLinearRgb(e3), e3.r *= n3, e3.g *= n3, e3.b *= n3, t3.linearRgbToSRgb(e3), i3.setColor(e3);
          }, t3.prototype.applyBrightness = function(n3) {
            var e3 = this, i3 = n3 > 0 ? 1 - n3 : 1 + n3, r2 = n3 > 0 ? n3 : 0, o2 = t3.rgbToHsl([e3.red, e3.green, e3.blue]);
            o2[2] *= i3, o2[2] += 100 * r2, o2[2] = t3.boundValue(o2[2], 0, 100), e3.setHsl(o2);
          }, t3.prototype.applySatMod = function(n3) {
            var e3 = this, i3 = t3.rgbToHsl([e3.red, e3.green, e3.blue]);
            i3[1] *= n3, e3.setHsl(i3);
          }, t3.prototype.toIColor = function() {
            return { r: this.red, g: this.green, b: this.blue, a: this.alpha };
          }, t3.prototype.toRgbString = function() {
            var t4 = this.red, n3 = this.green, e3 = this.blue;
            return "rgb(".concat(t4, ",").concat(n3, ",").concat(e3, ")");
          }, t3.prototype.toRgbaString = function() {
            var t4 = this.red, n3 = this.green, e3 = this.blue, i3 = Math.round(100 * this.alpha / 255) / 100;
            return "rgba(".concat(t4, ",").concat(n3, ",").concat(e3, ",").concat(i3, ")");
          }, t3.prototype.toHexString = function() {
            return "#" + this.toHexValueString();
          }, t3.prototype.toHexValueString = function() {
            var t4 = function(t5) {
              var n4 = t5.toString(16);
              return 1 === n4.length ? "0" + n4 : n4;
            }, n3 = this.red, e3 = this.green, i3 = this.blue;
            return "".concat(t4(n3)).concat(t4(e3)).concat(t4(i3));
          }, t3.prototype.toARGBColor = function() {
            var t4 = this;
            return d.FromArgbs(t4.alpha, t4.red, t4.green, t4.blue);
          }, t3.rgbToHsl = function(t4) {
            var n3, e3, i3, r2 = t4[0] / 255, o2 = t4[1] / 255, a2 = t4[2] / 255, u2 = c(r2, o2, a2), s2 = f(r2, o2, a2), l2 = s2 - u2;
            return (n3 = c(60 * (n3 = s2 === u2 ? 0 : r2 === s2 ? (o2 - a2) / l2 : o2 === s2 ? 2 + (a2 - r2) / l2 : a2 === s2 ? 4 + (r2 - o2) / l2 : 0), 360)) < 0 && (n3 += 360), i3 = (u2 + s2) / 2, [n3, 100 * (e3 = s2 === u2 ? 0 : i3 <= 0.5 ? l2 / (s2 + u2) : l2 / (2 - s2 - u2)), 100 * i3];
          }, t3.hslToRgb = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = t4[0] / 360, s2 = t4[1] / 100, c2 = t4[2] / 100;
            if (0 === s2) return [i3 = 255 * c2, i3, i3];
            for (r2 = 2 * c2 - (n3 = c2 < 0.5 ? c2 * (1 + s2) : c2 + s2 - c2 * s2), o2 = [0, 0, 0], a2 = 0; a2 < 3; a2++) (e3 = u2 + 1 / 3 * -(a2 - 1)) < 0 && e3++, e3 > 1 && e3--, i3 = 6 * e3 < 1 ? r2 + 6 * (n3 - r2) * e3 : 2 * e3 < 1 ? n3 : 3 * e3 < 2 ? r2 + (n3 - r2) * (2 / 3 - e3) * 6 : r2, o2[a2] = 255 * i3;
            return o2;
          }, t3.sRgbToLinearRgb = function(t4) {
            var n3 = function(t5) {
              return t5 <= 0.04045 ? t5 / 12.92 : h((t5 + 0.055) / 1.055, 2.4);
            };
            t4.r = n3(t4.r / 255), t4.g = n3(t4.g / 255), t4.b = n3(t4.b / 255);
          }, t3.linearRgbToSRgb = function(t4) {
            var n3 = function(t5) {
              return t5 <= 31308e-7 ? 12.92 * t5 : 1.055 * h(t5, 1 / 2.4) - 0.055;
            };
            t4.r = 255 * n3(t4.r), t4.g = 255 * n3(t4.g), t4.b = 255 * n3(t4.b);
          }, t3.prototype.setColor = function(n3) {
            var e3 = this;
            e3._tV = t3.boundRgbComponent(n3.r), e3.EtV = t3.boundRgbComponent(n3.g), e3.FtV = t3.boundRgbComponent(n3.b), e3.StV = n3.a === u ? 255 : t3.boundRgbComponent(n3.a);
          }, t3.prototype.setHsl = function(n3) {
            this.setRgb(t3.hslToRgb(n3));
          }, t3.prototype.setRgb = function(n3) {
            var e3 = this;
            e3.red = t3.boundRgbComponent(n3[0]), e3.green = t3.boundRgbComponent(n3[1]), e3.blue = t3.boundRgbComponent(n3[2]);
          }, t3.boundRgbComponent = function(n3) {
            return t3.boundValue(l(n3), 0, 255);
          }, t3.boundValue = function(t4, n3, e3) {
            return f(n3, c(t4, e3));
          }, t3;
        })(), n2.DrawingColorHelper = b;
      }, "./dist/plugins/floatingObject/drawing/colorData.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ColorData = n2.ColorDataFlag = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.ColorType = 1] = "ColorType", t3[t3.Value = 2] = "Value", t3[t3.Tint = 4] = "Tint", t3[t3.All = 7] = "All";
        })(r = n2.ColorDataFlag || (n2.ColorDataFlag = {})), o = (function() {
          function t3() {
          }
          return t3.ConvertHexStringToInt = function(t4) {
            return parseInt(t4, 16);
          }, t3.prototype.Equals = function(t4) {
            return this.ColorType === t4.ColorType && this.Value === t4.Value && this.Tint === t4.Tint;
          }, t3.prototype.Clone = function() {
            return this;
          }, t3.prototype.Compose = function(t4, n3) {
            void 0 === n3 && (n3 = true), t4.Flag !== r.None && (n3 ? this.ConflictCompose(t4) : this.NonConflictCompose(t4));
          }, t3.prototype.ConflictCompose = function(t4) {
            var n3 = this;
            (t4.Flag & r.ColorType) === r.ColorType && n3.ColorType !== t4.ColorType && (n3.ColorType = t4.ColorType, n3.Value = 0, n3.Tint = 0), (t4.Flag & r.Value) === r.Value && (n3.Value = t4.Value), (t4.Flag & r.Tint) === r.Tint && (n3.Tint = t4.Tint), n3.Flag |= t4.Flag;
          }, t3.prototype.NonConflictCompose = function(t4) {
            var n3 = this;
            (n3.Flag & r.ColorType) !== r.ColorType && (t4.Flag & r.ColorType) === r.ColorType && (n3.ColorType = t4.ColorType, n3.Value = t4.Value, n3.Tint = t4.Tint, n3.Flag = t4.Flag);
          }, t3.prototype.RemoveDuplicateStyle = function(t4) {
            return this.Compare(t4, false);
          }, t3.prototype.RemoveDifferentStyle = function(t4) {
            return this.Compare(t4, true);
          }, t3.prototype.Compare = function(t4, n3) {
            var e3, i3, o2, a = this, u = false;
            return (a.Flag & r.ColorType) === r.ColorType && (o2 = (t4.Flag & r.ColorType) !== r.ColorType || a.ColorType !== t4.ColorType, n3 ? o2 ? (a.Flag = r.None, u = true) : ((a.Flag & r.Value) === r.Value && (e3 = (t4.Flag & r.Value) !== r.Value || a.Value !== t4.Value) && (a.Flag = r.None, u = true), (a.Flag & r.Tint) === r.Tint && (i3 = (t4.Flag & r.Tint) !== r.Tint || a.Tint !== t4.Tint) && (a.Flag = r.None, u = true)) : o2 || ((a.Flag & r.Value) === r.Value && ((e3 = (t4.Flag & r.Value) !== r.Value || a.Value !== t4.Value) || (a.Flag &= ~r.Value, u = true)), (a.Flag & r.Tint) === r.Tint && ((i3 = (t4.Flag & r.Tint) !== r.Tint || a.Tint !== t4.Tint) || (a.Flag &= ~r.Tint, u = true)), a.Flag === r.ColorType && (a.Flag = r.None, u = true))), u;
          }, t3.prototype.UpdateDefaultValueFlag = function() {
            this.ColorType === i2.ColorType.None ? this.Flag = r.None : this.Flag = r.All;
          }, t3.prototype.UpdateFlagFromBottom = function() {
          }, t3.prototype.ClearFlag = function() {
            this.Flag = r.None;
          }, t3.prototype.SetFullFlag = function() {
            this.Flag = r.All;
          }, t3.prototype.IsFullFlag = function() {
            return this.Flag === r.All;
          }, t3;
        })(), n2.ColorData = o;
      }, "./dist/plugins/floatingObject/drawing/colorFormat.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D = this && this.qKr || (_ = function(t3, n3) {
          return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, _(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          _(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), _;
        function O(t3, n3, e3) {
          t3.push({ n_: n3, val: e3 });
        }
        function E(t3, n3) {
          var e3 = a.DrawingColorHelper.fromARGBColor(t3), i3 = n3.Transparency, r2 = n3.Tint, o2 = n3.Shade, u2 = n3.Brightness, s2 = n3.SatMod, c2 = n3.ApplyBrightness;
          return d(i3) || 0 === i3 || (e3.alpha = y(255 * (1 - i3))), d(r2) || 0 === r2 || e3.applyTint(r2), d(o2) || 0 === o2 || e3.applyShade(o2), d(u2) || 0 === u2 || false === c2 || e3.applyBrightness(u2), d(s2) || 1 === s2 || e3.applySatMod(s2), e3.toARGBColor();
        }
        function R(t3) {
          delete t3.hslClr, delete t3.prstClr, delete t3.scrgbClr, delete t3.srgbClr, delete t3.sysClr;
        }
        function L(t3) {
          var n3 = null;
          switch (t3) {
            case c.ST_SystemColorVal.scrollBar:
              n3 = 23;
              break;
            case c.ST_SystemColorVal.activeCaption:
              n3 = 2;
              break;
            case c.ST_SystemColorVal.inactiveCaption:
              n3 = 17;
              break;
            case c.ST_SystemColorVal.menu:
              n3 = 21;
              break;
            case c.ST_SystemColorVal.window:
              n3 = 24;
              break;
            case c.ST_SystemColorVal.windowFrame:
              n3 = 25;
              break;
            case c.ST_SystemColorVal.menuText:
              n3 = 22;
              break;
            case c.ST_SystemColorVal.windowText:
              n3 = 26;
              break;
            case c.ST_SystemColorVal.activeBorder:
              n3 = 1;
              break;
            case c.ST_SystemColorVal.inactiveBorder:
              n3 = 16;
              break;
            case c.ST_SystemColorVal.appWorkspace:
              n3 = 4;
              break;
            case c.ST_SystemColorVal.highlight:
              n3 = 13;
              break;
            case c.ST_SystemColorVal.highlightText:
              n3 = 14;
              break;
            case c.ST_SystemColorVal.btnFace:
              n3 = 168;
              break;
            case c.ST_SystemColorVal.btnShadow:
              n3 = 170;
              break;
            case c.ST_SystemColorVal.grayText:
              n3 = 12;
              break;
            case c.ST_SystemColorVal.inactiveCaptionText:
              n3 = 18;
              break;
            case c.ST_SystemColorVal.btnHighlight:
              n3 = 169;
              break;
            case c.ST_SystemColorVal.infoText:
              n3 = 20;
              break;
            case c.ST_SystemColorVal.infoBk:
              n3 = 19;
              break;
            case c.ST_SystemColorVal.gradientActiveCaption:
              n3 = 171;
              break;
            case c.ST_SystemColorVal.gradientInactiveCaption:
              n3 = 172;
              break;
            case c.ST_SystemColorVal.menuHighlight:
              n3 = 174;
              break;
            case c.ST_SystemColorVal.menuBar:
              n3 = 173;
          }
          return n3;
        }
        function F(t3) {
          var n3 = null;
          switch (t3) {
            case 1:
              n3 = c.ST_SystemColorVal.activeBorder;
              break;
            case 2:
              n3 = c.ST_SystemColorVal.activeCaption;
              break;
            case 168:
              n3 = c.ST_SystemColorVal.btnFace;
              break;
            case 169:
              n3 = c.ST_SystemColorVal.btnHighlight;
              break;
            case 170:
              n3 = c.ST_SystemColorVal.btnShadow;
              break;
            case 171:
              n3 = c.ST_SystemColorVal.gradientActiveCaption;
              break;
            case 172:
              n3 = c.ST_SystemColorVal.gradientInactiveCaption;
              break;
            case 12:
              n3 = c.ST_SystemColorVal.grayText;
              break;
            case 13:
              n3 = c.ST_SystemColorVal.highlight;
              break;
            case 14:
              n3 = c.ST_SystemColorVal.highlightText;
              break;
            case 16:
              n3 = c.ST_SystemColorVal.inactiveBorder;
              break;
            case 17:
              n3 = c.ST_SystemColorVal.inactiveCaption;
              break;
            case 18:
              n3 = c.ST_SystemColorVal.inactiveCaptionText;
              break;
            case 20:
              n3 = c.ST_SystemColorVal.infoText;
              break;
            case 21:
              n3 = c.ST_SystemColorVal.menu;
              break;
            case 173:
              n3 = c.ST_SystemColorVal.menuBar;
              break;
            case 174:
              n3 = c.ST_SystemColorVal.menuHighlight;
              break;
            case 22:
              n3 = c.ST_SystemColorVal.menuText;
              break;
            case 24:
              n3 = c.ST_SystemColorVal.window;
              break;
            case 25:
              n3 = c.ST_SystemColorVal.windowFrame;
              break;
            case 26:
              n3 = c.ST_SystemColorVal.windowText;
          }
          return n3;
        }
        function B(t3) {
          var n3 = c.ST_SchemeColorVal.accent1;
          switch (t3) {
            case 4:
              n3 = c.ST_SchemeColorVal.accent1;
              break;
            case 5:
              n3 = c.ST_SchemeColorVal.accent2;
              break;
            case 6:
              n3 = c.ST_SchemeColorVal.accent3;
              break;
            case 7:
              n3 = c.ST_SchemeColorVal.accent4;
              break;
            case 8:
              n3 = c.ST_SchemeColorVal.accent5;
              break;
            case 9:
              n3 = c.ST_SchemeColorVal.accent6;
              break;
            case 0:
              n3 = c.ST_SchemeColorVal.bg1;
              break;
            case 2:
              n3 = c.ST_SchemeColorVal.bg2;
              break;
            case 11:
              n3 = c.ST_SchemeColorVal.folHlink;
              break;
            case 10:
              n3 = c.ST_SchemeColorVal.hlink;
              break;
            case 12:
              n3 = c.ST_SchemeColorVal.phClr;
              break;
            case 13:
              n3 = c.ST_SchemeColorVal.dk1;
              break;
            case 14:
              n3 = c.ST_SchemeColorVal.lt1;
              break;
            case 15:
              n3 = c.ST_SchemeColorVal.dk2;
              break;
            case 16:
              n3 = c.ST_SchemeColorVal.lt2;
              break;
            case 1:
              n3 = c.ST_SchemeColorVal.tx1;
              break;
            case 3:
              n3 = c.ST_SchemeColorVal.tx2;
          }
          return n3;
        }
        function P(t3) {
          var n3 = 4;
          switch (t3) {
            case c.ST_SchemeColorVal.bg1:
              n3 = 0;
              break;
            case c.ST_SchemeColorVal.tx1:
              n3 = 1;
              break;
            case c.ST_SchemeColorVal.bg2:
              n3 = 2;
              break;
            case c.ST_SchemeColorVal.tx2:
              n3 = 3;
              break;
            case c.ST_SchemeColorVal.accent2:
              n3 = 5;
              break;
            case c.ST_SchemeColorVal.accent3:
              n3 = 6;
              break;
            case c.ST_SchemeColorVal.accent4:
              n3 = 7;
              break;
            case c.ST_SchemeColorVal.accent5:
              n3 = 8;
              break;
            case c.ST_SchemeColorVal.accent6:
              n3 = 9;
              break;
            case c.ST_SchemeColorVal.hlink:
              n3 = 10;
              break;
            case c.ST_SchemeColorVal.folHlink:
              n3 = 11;
              break;
            case c.ST_SchemeColorVal.phClr:
              n3 = 12;
              break;
            case c.ST_SchemeColorVal.dk1:
              n3 = 13;
              break;
            case c.ST_SchemeColorVal.lt1:
              n3 = 14;
              break;
            case c.ST_SchemeColorVal.dk2:
              n3 = 15;
              break;
            case c.ST_SchemeColorVal.lt2:
              n3 = 16;
          }
          return n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.transformColor = n2.ColorFormat = n2.createColorFormat = n2.createColorFormatFromRGB = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/floatingObject/drawing/colorData.js"), a = e2("./dist/plugins/floatingObject/drawing/color.js"), u = e2("./dist/plugins/floatingObject/drawing/common.js"), s = e2("./dist/plugins/floatingObject/drawing/stateful.js"), c = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), f = r.Util.StringToByteArray, l = r.NodeHelper.sr, h = i2.Common.ft, d = u.UnitHelper.isNullOrUndefined, v = u.DrawingConstants.DefaultTransparent, p = u.DrawingConstants.DefaultSatMod, g = u.DrawingConstants.PositionConver, m = null, b = Math.abs, y = Math.floor, w = Math.max, M = Math.min, C = "lumMod", S = "lumOff", T = "alpha", x = "tint", A = "shade", I = "satMod", k = function(t3, n3, e3) {
          var i3 = new j(t3);
          return i3.ColorType = n3, i3.RGB = e3, i3;
        }, n2.createColorFormatFromRGB = k, N = function(t3, n3, e3, i3) {
          var r2 = new j(t3);
          return r2.ColorType = n3, r2.ObjectThemeColor = e3, i3 && (r2.TintAndShade = i3), r2;
        }, n2.createColorFormat = N, j = (function(t3) {
          function n3(n4, e3) {
            var i3, r2, o2 = t3.call(this, e3) || this;
            return void 0 === e3 && (e3 = m), (i3 = o2).eft = c.ColorSchemeIndex.None, i3.ift = m, i3.rft = 0, i3.Zfe = 0, i3.oft = 0, i3.aft = v, i3.uft = p, i3.DJ = n4, i3.sft = e3, (r2 = i3.DJ.DrawingType) === c.DrawingType.Shape ? (i3.xrt = c.SolidColorType.Theme, i3.eft = c.ColorSchemeIndex.Accent1) : r2 === c.DrawingType.Chart ? i3.xrt = c.SolidColorType.Automatic : r2 === c.DrawingType.Picture && (i3.xrt = c.SolidColorType.None), i3;
          }
          return D(n3, t3), n3.prototype.isThemeColor = function(t4, n4) {
            return t4.getColor(n4) !== n4;
          }, n3.prototype.setColor = function(t4, n4) {
            var e3, i3, o2 = this;
            t4 && o2.isThemeColor(t4.currentTheme(), n4) || r.util.isThemeColor(n4) ? (e3 = u.DrawingUtility.fromThemeColorString(n4)) && (o2.ObjectThemeColor = e3.index, o2.Ome(), void 0 !== e3.tint && (o2.Brightness = e3.tint)) : n4 === u.AUTO_COLOR ? o2.ColorType = c.SolidColorType.Automatic : (i3 = h._(n4), o2.RGB = a.ARGBColor.FromArgbs(i3.a, i3.r, i3.g, i3.b));
          }, n3.prototype.GetColorData = function() {
            var t4, n4, e3, i3, r2 = this, u2 = new o.ColorData();
            if (u2.ColorType = c.ColorType.RGB, (t4 = r2.xrt) === c.SolidColorType.None) u2.ColorType = c.ColorType.None;
            else if (t4 === c.SolidColorType.Automatic) {
              if (u2.ColorType = c.ColorType.Auto, n4 = r2.GetAutoColorFormat(), !d(n4)) return n4.GetColorData();
            } else t4 === c.SolidColorType.RGB ? d(r2.ift) || (u2.ColorType = c.ColorType.RGB, e3 = this.ift, 1 !== (i3 = 1 - r2.aft) && (e3 = a.ARGBColor.FromArgbs(parseInt(255 * i3, 10), e3.R, e3.G, e3.B)), u2.Value = e3.ToArgb(), u2.Tint = r2.TintAndShade, u2.Transparency = r2.Transparency, u2.Shade = r2.Shade, u2.Brightness = r2.Brightness, u2.SatMod = r2.SatMod) : t4 === c.SolidColorType.Theme && (u2.ColorType = c.ColorType.Theme, u2.Value = r2.eft, u2.Tint = r2.TintAndShade, u2.Transparency = r2.Transparency, u2.Shade = r2.Shade, u2.Brightness = r2.Brightness, u2.SatMod = r2.SatMod);
            return u2;
          }, n3.prototype.HasOwnColor = function() {
            return this.GetState(c.ColorFormatStates.ObjectThemeColor) || this.GetState(c.ColorFormatStates.RGB) || this.GetAutoColorFormat() !== m;
          }, n3.prototype.GetAutoColorFormat = function() {
            if (this.ColorType === c.SolidColorType.Automatic && !d(this.AutoColorFormat)) {
              var t4 = this.AutoColorFormat();
              if (!d(t4) && t4.ColorType !== c.SolidColorType.Automatic) return t4;
            }
            return m;
          }, n3.prototype.OnParentChanged = function(t4) {
            this.sft = t4;
          }, n3.prototype.ClearModel = function() {
            var t4, n4, e3;
            for (this.cft = m, this.fft = m, t4 = 0, n4 = this.Children; t4 < n4.length; t4++) (e3 = n4[t4]).ClearModel();
          }, n3.prototype.CalcBrightness = function(t4, n4) {
            return t4 && t4.length > 0 && n4 && n4.length > 0 ? n4[0] / g : t4 && t4.length > 0 ? (t4[0] - g) / g : 0;
          }, n3.prototype.CalcLumModeOff = function(t4, n4) {
            var e3 = this;
            e3.Brightness > 0 ? (t4.push(y((1 - e3.Brightness) * g)), n4.push(y(e3.Brightness * g))) : e3.Brightness < 0 && t4.push(y((1 + e3.Brightness) * g));
          }, n3.prototype.Wfe = function(t4) {
            var n4 = [], e3 = [];
            this.CalcLumModeOff(n4, e3), n4.length > 0 && (t4.lumMod = n4), e3.length > 0 && (t4.lumOff = e3);
          }, n3.prototype.lft = function(t4) {
            var n4 = this;
            n4.Brightness > 0 ? (t4.lumMod = { val: String(y((1 - n4.Brightness) * g)) }, t4.lumOff = { val: String(y(n4.Brightness * g)) }) : n4.Brightness < 0 && (t4.lumMod = { val: String(y((1 + n4.Brightness) * g)) }, delete t4.lumOff);
          }, n3.prototype.FromCT_ColorProperties = function(t4) {
            var n4, e3, i3, r2, o2, s2, f2, l2 = this;
            l2.cft = t4, d(t4) ? l2.ColorType = c.SolidColorType.None : d(t4.schemeClr) ? d(t4.srgbClr) || d(t4.srgbClr.val) || 3 !== t4.srgbClr.val.length ? d(t4.scrgbClr) ? d(t4.sysClr) ? d(t4.prstClr) || (s2 = t4.prstClr, f2 = u.DrawingUtility.GetPresetColorRGB(s2.val), l2.RGB = a.ARGBColor.FromRgb(f2[0], f2[1], f2[2]), l2.Qfe(s2)) : (o2 = (r2 = t4.sysClr).val, d(o2) ? d(r2.lastClr) || 3 !== r2.lastClr.length || (l2.RGB = a.ARGBColor.FromRgb(r2.lastClr[0], r2.lastClr[1], r2.lastClr[2])) : l2.RGB = a.ARGBColor.FromKnownColor(o2), l2.Qfe(r2)) : (i3 = t4.scrgbClr, l2.RGB = a.ARGBColor.FromRgb(i3.r, i3.g, i3.b)) : (e3 = t4.srgbClr, l2.RGB = a.ARGBColor.FromRgb(e3.val[0], e3.val[1], e3.val[2]), l2.Qfe(e3)) : (n4 = t4.schemeClr, l2.ObjectThemeColor = n4.val, l2.Qfe(n4));
          }, n3.prototype.Qfe = function(t4) {
            var n4, e3 = this;
            e3.Brightness = e3.CalcBrightness(t4.lumMod, t4.lumOff), e3.aft = v, !d(t4.alpha) && t4.alpha.length > 0 && e3.FromTransparency(t4.alpha[0]), e3.rft = 0, !d(t4.tint) && t4.tint.length > 0 && e3.FromTint(t4.tint[0]), e3.Zfe = 0, (n4 = t4.shade) && n4.length && e3.FromShade(n4[0]), e3.uft = p, !d(t4.satMod) && t4.satMod.length > 0 && e3.FromSatMod(t4.satMod[0]);
          }, n3.prototype.hft = function(t4) {
            var n4, e3, i3, r2, o2 = this, a2 = t4.lumMod, u2 = t4.lumOff;
            a2 && (a2 = [l(a2.val)]), u2 && (u2 = [l(u2.val)]), o2.Brightness = o2.CalcBrightness(a2, u2), o2.aft = v, n4 = t4.alpha, d(n4) || o2.FromTransparency(l(n4.val, v)), o2.rft = 0, e3 = t4.tint, d(e3) || o2.FromTint(l(e3.val, 0)), o2.Zfe = 0, i3 = t4.shade, d(i3) || o2.FromShade(l(i3.val, 0)), o2.uft = p, r2 = t4.satMod, d(r2) || o2.FromSatMod(l(r2.val, p));
          }, n3.prototype.Kfe = function(t4) {
            t4 = t4 || {};
            var n4 = this;
            n4.Wfe(t4), n4.Transparency !== v && (t4.alpha = [n4.ToTransparency()]), 0 !== n4.TintAndShade && (t4.tint = [n4.ToTint()]), 0 !== n4.Shade && (t4.shade = [n4.ToShade()]), n4.SatMod !== p && (t4.satMod = [n4.ToSatMod()]);
          }, n3.prototype.dft = function(t4) {
            t4 = t4 || {};
            var n4 = this;
            n4.lft(t4), n4.Transparency !== v && (t4.alpha = { val: String(n4.ToTransparency()) }), 0 !== n4.TintAndShade && (t4.tint = { val: String(n4.ToTint()) }), 0 !== n4.Shade && (t4.shade = { val: String(n4.ToShade()) }), n4.SatMod !== p && (t4.satMod = { val: String(n4.ToSatMod()) });
          }, n3.prototype.U_e = function(t4) {
            var n4, e3;
            t4 = t4 || {}, n4 = [], (e3 = this).Brightness > 0 ? (O(n4, C, String(y((1 - e3.Brightness) * g))), O(n4, S, String(y(e3.Brightness * g)))) : e3.Brightness < 0 && O(n4, C, String(y((1 + e3.Brightness) * g))), e3.Transparency !== v && O(n4, T, String(e3.ToTransparency())), 0 !== e3.TintAndShade && O(n4, x, String(e3.ToTint())), 0 !== e3.Shade && O(n4, A, String(e3.ToShade())), e3.SatMod !== p && O(n4, I, String(e3.ToSatMod())), t4.c_ = n4;
          }, n3.prototype.FromSJSCT_ColorProperties = function(t4) {
            var n4, e3, i3, r2, o2, s2, l2, h2, v2, p2 = this;
            p2.fft = t4, d(t4) ? p2.ColorType = c.SolidColorType.None : d(t4.schemeClr) ? d(t4.srgbClr) ? d(t4.scrgbClr) ? d(t4.sysClr) ? d(t4.prstClr) || (h2 = t4.prstClr, v2 = u.DrawingUtility.GetPresetColorRGB(+c.ST_PresetColorVal[h2.val]), p2.RGB = a.ARGBColor.FromRgb(v2[0], v2[1], v2[2]), p2.hft(h2)) : (s2 = (o2 = t4.sysClr).val, d(s2) ? d(o2.lastClr) || (l2 = f(o2.lastClr), p2.RGB = a.ARGBColor.FromRgb(l2[0], l2[1], l2[2])) : p2.RGB = a.ARGBColor.FromKnownColor(L(+c.ST_SystemColorVal[s2])), p2.hft(o2)) : (r2 = t4.scrgbClr, p2.RGB = a.ARGBColor.FromRgb(+r2.r, +r2.g, +r2.b), p2.hft(r2)) : (e3 = t4.srgbClr, (i3 = f(e3.val || e3)) && 3 === i3.length && (p2.RGB = a.ARGBColor.FromRgb(i3[0], i3[1], i3[2]), p2.hft(e3))) : (n4 = t4.schemeClr, p2.ObjectThemeColor = P(c.ST_SchemeColorVal[n4.val || n4]), p2.hft(n4));
          }, n3.prototype.ToCT_ColorProperties = function(t4) {
            var n4, e3, i3, r2, o2, a2 = this, s2 = a2.cft || t4, f2 = s2.schemeClr;
            return f2 && u.DrawingUtility.removeEmptyArrayProperties(f2), a2.ColorType === c.SolidColorType.Theme ? (R(s2), f2 || (f2 = s2.schemeClr = {}), f2.val = a2.ObjectThemeColor, a2.Kfe(f2)) : a2.ColorType === c.SolidColorType.RGB && (R(s2), delete s2.schemeClr, n4 = m, a2.ift && a2.ift.IsKnownColor && (n4 = a2.ift.ToKnownColor()), e3 = a2.NoTransformedRGB, d(n4) ? ((r2 = s2.srgbClr = {}).val = [e3.R, e3.G, e3.B], a2.Kfe(r2)) : ((i3 = s2.sysClr = {}).val = n4, i3.lastClr = [e3.R, e3.G, e3.B], a2.Kfe(i3))), o2 = t4 && t4.colorFillType, d(o2) || (s2.colorFillType = o2), s2;
          }, n3.prototype.ToSJSCT_ColorProperties = function(t4) {
            var n4, e3, i3, r2, o2, s2, f2 = this, l2 = f2.fft || t4, h2 = l2.schemeClr;
            return h2 && u.DrawingUtility.removeEmptyArrayProperties(h2), f2.ColorType === c.SolidColorType.Theme ? (R(l2), h2 || (h2 = l2.schemeClr = {}), h2.val = c.ST_SchemeColorVal[B(f2.ObjectThemeColor)], f2.dft(h2)) : f2.ColorType === c.SolidColorType.RGB && (R(l2), delete l2.schemeClr, n4 = m, f2.ift && f2.ift.IsKnownColor && (n4 = f2.ift.ToKnownColor()), e3 = f2.NoTransformedRGB, i3 = a.DrawingColorHelper.fromARGBColor(e3).toHexValueString(), d(n4) ? (o2 = l2.srgbClr = { val: i3 }, f2.dft(o2)) : ((r2 = l2.sysClr = {}).val = c.ST_SystemColorVal[F(n4)], r2.lastClr = i3, f2.dft(r2))), s2 = t4 && t4.colorFillType, d(s2) || (l2.colorFillType = s2), l2;
          }, n3.prototype.ToSJSCT_ColorNonCompactProperties = function() {
            var t4, n4, e3, i3 = this, r2 = {};
            return i3.ColorType === c.SolidColorType.Theme ? (r2.n_ = "schemeClr", r2.val = c.ST_SchemeColorVal[B(i3.ObjectThemeColor)], i3.U_e(r2)) : i3.ColorType === c.SolidColorType.RGB && (t4 = m, i3.ift && i3.ift.IsKnownColor && (t4 = i3.ift.ToKnownColor()), n4 = i3.NoTransformedRGB, e3 = a.DrawingColorHelper.fromARGBColor(n4).toHexValueString(), d(t4) ? (r2.n_ = "srgbClr", r2.val = e3, i3.U_e(r2)) : (r2.n_ = "sysClr", r2.val = c.ST_SystemColorVal[F(t4)], r2.lastClr = e3, i3.U_e(r2))), r2;
          }, n3.prototype.FromTint = function(t4) {
            this.TintAndShade = t4 / g;
          }, n3.prototype.FromShade = function(t4) {
            this.Shade = t4 / g;
          }, n3.prototype.ToTint = function() {
            return y(b(this.TintAndShade * g));
          }, n3.prototype.ToShade = function() {
            return y(b(this.Shade * g));
          }, n3.prototype.FromTransparency = function(t4) {
            this.Transparency = 1 - t4 / g;
          }, n3.prototype.ToTransparency = function() {
            return y((1 - this.Transparency) * g);
          }, n3.prototype.FromSatMod = function(t4) {
            this.SatMod = t4 / g;
          }, n3.prototype.ToSatMod = function() {
            return y(this.SatMod * g);
          }, n3.prototype.Clone = function() {
            var t4 = this, e3 = new n3(t4.DJ);
            return e3.oft = t4.oft, e3.xrt = t4.xrt, e3.DJ = t4.DJ, e3.ift = t4.ift, e3.eft = t4.eft, e3.rft = t4.rft, e3.Zfe = t4.Zfe, e3.AutoColorFormat = t4.AutoColorFormat, e3;
          }, n3.prototype.FromOOModel = function(t4) {
            this.FromCT_ColorProperties(t4);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.FromSJSCT_ColorProperties(t4);
          }, n3.prototype.ToOOModel = function() {
            var t4 = this.ColorType;
            return t4 === c.SolidColorType.Automatic ? {} : t4 === c.SolidColorType.None ? { colorFillType: c.ColorFillType.NoFillProperties } : this.ToCT_ColorProperties({ colorFillType: 0 });
          }, n3.prototype.ToSJSOOModel = function() {
            var t4 = this.ColorType;
            return t4 === c.SolidColorType.Automatic ? {} : t4 === c.SolidColorType.None ? { colorFillType: c.ColorFillType.NoFillProperties } : this.ToSJSCT_ColorProperties({ colorFillType: 0 });
          }, n3.prototype.Color_FromOOModel = function(t4) {
            this.FromCT_ColorProperties(t4);
          }, n3.prototype.Color_ToOOModel = function() {
            return this.ToCT_ColorProperties({});
          }, n3.prototype.Color_ToSJSOOModel = function() {
            return this.ToSJSCT_ColorProperties({});
          }, n3.prototype.GradientStop_FromOOModel = function(t4) {
            this.FromCT_ColorProperties(t4);
          }, n3.prototype.GradientStop_ToOOModel = function() {
            return this.ToCT_ColorProperties({});
          }, n3.prototype.ColorData_FromOOModel = function(t4) {
            t4.ColorType === c.ColorType.Index ? this.RGB = a.ARGBColor.FromArgb(t4.Value) : t4.ColorType === c.ColorType.Theme && (this.ObjectThemeColor = t4.Value, this.TintAndShade = t4.Tint);
          }, n3.prototype.ColorData_ToOOModel = function() {
            var t4 = this, n4 = new o.ColorData();
            return t4.ColorType === c.SolidColorType.RGB ? (n4.Value = t4.RGB.Value, n4.ColorType = c.ColorType.RGB) : t4.ColorType === c.SolidColorType.Theme && (n4.Value = t4.ObjectThemeColor, n4.Tint = t4.TintAndShade, n4.ColorType = c.ColorType.Theme), n4;
          }, n3.prototype.nft = function(t4) {
            var n4, e3, i3, r2 = this, o2 = r2.DJ.sheet();
            if (o2) return n4 = o2.currentTheme(), e3 = r2.GetColorData(), i3 = r2.Xfe(n4, e3), t4 && (i3 = E(i3, e3)), i3;
          }, n3.prototype.Xfe = function(t4, n4) {
            var e3, i3, r2 = n4.ColorType, o2 = a.ARGBColor.FromArgb(n4.Value);
            return r2 === c.ColorType.Index ? o2 = a.ARGBColor.FromIndexedColor(n4.Value, 0) : r2 === c.ColorType.Theme ? (e3 = u.DrawingUtility.toThemeColorString(n4.Value, 0), i3 = a.ColorParse.parse(t4.getColor(e3)), o2 = a.ARGBColor.FromArgbs(i3.a, i3.r, i3.g, i3.b)) : r2 === c.ColorType.Auto ? o2 = a.ARGBColor.FromKnownColor(a.KnownColor.WindowText) : r2 === c.ColorType.None && (o2 = new a.ARGBColor()), o2;
          }, n3.prototype.Ome = function() {
            var t4 = this;
            t4.oft = 0, t4.rft = 0, t4.Zfe = 0, t4.uft = 1;
          }, Object.defineProperty(n3.prototype, "Brightness", { get: function() {
            return this.GetState(c.ColorFormatStates.Brightness) || d(this.sft) ? this.oft : this.sft.Brightness;
          }, set: function(t4) {
            if (t4 < -1 || t4 > 1) throw new Error();
            this.oft = t4, this.Dirty(c.ColorFormatStates.Brightness);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ObjectThemeColor", { get: function() {
            return this.GetState(c.ColorFormatStates.ObjectThemeColor) || d(this.sft) ? this.eft : this.sft.ObjectThemeColor;
          }, set: function(t4) {
            var n4 = this, e3 = { 13: 1, 14: 0, 15: 3, 16: 2 };
            d(e3[t4]) || (t4 = e3[t4]), n4.eft = t4, n4.Dirty(c.ColorFormatStates.ObjectThemeColor), n4.ColorType = c.SolidColorType.Theme, n4.ift = m, n4.UnDirty(c.ColorFormatStates.RGB), n4.oft = 0, n4.Dirty(c.ColorFormatStates.Brightness);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "NoTransformedRGB", { get: function() {
            var t4 = this;
            return t4.HasOwnColor() || d(t4.sft) ? t4.nft(false) : t4.sft.RGB;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RGB", { get: function() {
            var t4 = this;
            return t4.HasOwnColor() || d(t4.sft) ? t4.nft(true) : t4.sft.RGB;
          }, set: function(t4) {
            var n4 = this;
            n4.ift = t4, n4.Transparency = 1 - t4.A / 255, n4.Dirty(c.ColorFormatStates.RGB), n4.ColorType = c.SolidColorType.RGB, n4.eft = c.ColorSchemeIndex.None, n4.Dirty(c.ColorFormatStates.ObjectThemeColor), n4.Ome(), n4.Dirty(c.ColorFormatStates.Brightness), n4.Dirty(c.ColorFormatStates.TintAndShade);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TintAndShade", { get: function() {
            var t4;
            return this.rft;
          }, set: function(t4) {
            this.rft = t4, this.Dirty(c.ColorFormatStates.TintAndShade);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Shade", { get: function() {
            var t4;
            return this.Zfe;
          }, set: function(t4) {
            this.Zfe = t4, this.Dirty(c.ColorFormatStates.TintAndShade);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            var t4 = this;
            return t4.GetState(c.ColorFormatStates.Transparency) || d(t4.sft) ? t4.aft : t4.sft.Transparency;
          }, set: function(t4) {
            t4 = w(0, M(1, t4)), this.aft = t4, this.Dirty(c.ColorFormatStates.Transparency);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "SatMod", { get: function() {
            var t4 = this;
            return t4.GetState(c.ColorFormatStates.SatMod) || d(t4.sft) ? t4.uft : t4.sft.SatMod;
          }, set: function(t4) {
            this.uft = t4, this.Dirty(c.ColorFormatStates.SatMod);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ColorType", { get: function() {
            var t4 = this;
            return t4.GetState(c.ColorFormatStates.ColorType) || d(t4.sft) ? t4.xrt : t4.sft.ColorType;
          }, set: function(t4) {
            this.xrt = t4, this.Dirty(c.ColorFormatStates.ColorType);
          }, enumerable: false, configurable: true }), n3;
        })(s.StatefulBase), n2.ColorFormat = j, n2.transformColor = E;
      }, "./dist/plugins/floatingObject/drawing/common.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b;
        function y(t3, n3) {
          var e3 = Math.pow(10, n3);
          return Math.round(t3 * e3) / e3;
        }
        function w(t3) {
          delete t3.solidFill, delete t3.pattFill, delete t3.blipFill, delete t3.gradFill, delete t3.noFill, delete t3.grpFill, delete t3.uFill, delete t3.uFillTx;
        }
        function M(t3) {
          return parseFloat(t3 || "0") / 1e5;
        }
        function C(t3) {
          var n3 = null;
          switch (t3) {
            case i2.ST_SystemColorVal.scrollBar:
              n3 = 23;
              break;
            case i2.ST_SystemColorVal.activeCaption:
              n3 = 2;
              break;
            case i2.ST_SystemColorVal.inactiveCaption:
              n3 = 17;
              break;
            case i2.ST_SystemColorVal.menu:
              n3 = 21;
              break;
            case i2.ST_SystemColorVal.window:
              n3 = 24;
              break;
            case i2.ST_SystemColorVal.windowFrame:
              n3 = 25;
              break;
            case i2.ST_SystemColorVal.menuText:
              n3 = 22;
              break;
            case i2.ST_SystemColorVal.windowText:
              n3 = 26;
              break;
            case i2.ST_SystemColorVal.activeBorder:
              n3 = 1;
              break;
            case i2.ST_SystemColorVal.inactiveBorder:
              n3 = 16;
              break;
            case i2.ST_SystemColorVal.appWorkspace:
              n3 = 4;
              break;
            case i2.ST_SystemColorVal.highlight:
              n3 = 13;
              break;
            case i2.ST_SystemColorVal.highlightText:
              n3 = 14;
              break;
            case i2.ST_SystemColorVal.btnFace:
              n3 = 168;
              break;
            case i2.ST_SystemColorVal.btnShadow:
              n3 = 170;
              break;
            case i2.ST_SystemColorVal.grayText:
              n3 = 12;
              break;
            case i2.ST_SystemColorVal.inactiveCaptionText:
              n3 = 18;
              break;
            case i2.ST_SystemColorVal.btnHighlight:
              n3 = 169;
              break;
            case i2.ST_SystemColorVal.infoText:
              n3 = 20;
              break;
            case i2.ST_SystemColorVal.infoBk:
              n3 = 19;
              break;
            case i2.ST_SystemColorVal.gradientActiveCaption:
              n3 = 171;
              break;
            case i2.ST_SystemColorVal.gradientInactiveCaption:
              n3 = 172;
              break;
            case i2.ST_SystemColorVal.menuHighlight:
              n3 = 174;
              break;
            case i2.ST_SystemColorVal.menuBar:
              n3 = 173;
          }
          return n3;
        }
        function S(t3) {
          return t3 && (t3 instanceof Array || (t3 = [t3])), t3;
        }
        function T(t3) {
          var n3 = 4;
          switch (t3) {
            case i2.ST_SchemeColorVal.bg1:
              n3 = 0;
              break;
            case i2.ST_SchemeColorVal.tx1:
              n3 = 1;
              break;
            case i2.ST_SchemeColorVal.bg2:
              n3 = 2;
              break;
            case i2.ST_SchemeColorVal.tx2:
              n3 = 3;
              break;
            case i2.ST_SchemeColorVal.accent2:
              n3 = 5;
              break;
            case i2.ST_SchemeColorVal.accent3:
              n3 = 6;
              break;
            case i2.ST_SchemeColorVal.accent4:
              n3 = 7;
              break;
            case i2.ST_SchemeColorVal.accent5:
              n3 = 8;
              break;
            case i2.ST_SchemeColorVal.accent6:
              n3 = 9;
              break;
            case i2.ST_SchemeColorVal.hlink:
              n3 = 10;
              break;
            case i2.ST_SchemeColorVal.folHlink:
              n3 = 11;
              break;
            case i2.ST_SchemeColorVal.phClr:
              n3 = 12;
              break;
            case i2.ST_SchemeColorVal.dk1:
              n3 = 13;
              break;
            case i2.ST_SchemeColorVal.lt1:
              n3 = 14;
              break;
            case i2.ST_SchemeColorVal.dk2:
              n3 = 15;
              break;
            case i2.ST_SchemeColorVal.lt2:
              n3 = 16;
          }
          return n3;
        }
        function x(t3) {
          return t3 ? "1" : "0";
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.mft = n2.toColorSchemeIndex = n2.gft = n2.toKnownColor = n2.pft = n2.DrawingUtility = n2.ThemeColorDict = n2.DrawingConstants = n2.ChartConstants = n2.Reference = n2.CellRect = n2.UnitHelper = n2.NumberExtension = n2.AUTO_COLOR = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), r = null, o = void 0, a = Math.max, u = Math.min, s = Math.floor, c = Math.log, f = Math.pow, l = Math.abs, n2.AUTO_COLOR = "auto", h = (function() {
          function t3() {
          }
          return t3.log = function(t4, n3) {
            return c(t4) / c(n3);
          }, t3.round = function(t4, n3) {
            var e3 = f(10, n3);
            return Math.round(t4 * e3) / e3;
          }, t3.isNaNOrInfinite = function(t4) {
            return isNaN(t4) || !isFinite(t4);
          }, t3.GetTriangleAngle = function(t4, n3, e3) {
            var i3, r2;
            return 0 === t4 && 0 === n3 ? 0 : (i3 = (t4 * t4 + e3 * e3 - n3 * n3) / l(2 * t4 * e3), r2 = 0, t4 < 0 && n3 > 0 ? r2 = 90 : t4 < 0 && n3 < 0 ? r2 = 180 : t4 > 0 && n3 < 0 && (r2 = 270), 180 * Math.acos(i3) / Math.PI + r2);
          }, t3.INT32_MAX_VALUE = 2147483647, t3.DOUBLE_MAX_VALUE = Number.MAX_VALUE, t3.DOUBLE_MIN_VALUE = -Number.MAX_VALUE, t3;
        })(), n2.NumberExtension = h, d = (function() {
          function t3() {
          }
          return t3.pointToPixel = function(t4) {
            return y(96 * t4 / 72, 2);
          }, t3.IsNullOrEmpty = function(n3) {
            return t3.isNullOrUndefined(n3) || "" === n3;
          }, t3.IsNegativeInfinity = function(t4) {
            return t4 === Number.NEGATIVE_INFINITY;
          }, t3.IsPositiveInfinity = function(t4) {
            return t4 === Number.POSITIVE_INFINITY;
          }, t3.isNullOrUndefined = function(t4) {
            return t4 === o || t4 === r;
          }, t3;
        })(), n2.UnitHelper = d, v = (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.Row = t4, o2.Column = n3, o2.RowCount = e3, o2.ColumnCount = i3, o2.Worksheet = r2;
          }
          return Object.defineProperty(t3.prototype, "Left", { get: function() {
            return this.Column;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Top", { get: function() {
            return this.Row;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Right", { get: function() {
            return this.Column + this.ColumnCount;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Bottom", { get: function() {
            return this.Row + this.RowCount;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsFullColumn", { get: function() {
            return 0 === this.Row && this.RowCount === h.INT32_MAX_VALUE;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsFullRow", { get: function() {
            return 0 === this.Column && this.ColumnCount === h.INT32_MAX_VALUE;
          }, enumerable: false, configurable: true }), t3.prototype.Intersect = function(t4) {
            var n3 = this, e3 = t4, i3 = a(n3.Column, e3.Column), r2 = a(n3.Row, e3.Row), o2 = u(n3.Right, e3.Right), s2 = u(n3.Bottom, e3.Bottom);
            i3 >= o2 || r2 >= s2 ? (n3.Column = 0, n3.Row = 0, n3.ColumnCount = 0, n3.RowCount = 0) : (n3.Column = i3, n3.Row = r2, n3.ColumnCount = o2 - i3, n3.RowCount = s2 - r2);
          }, t3.prototype.IntersectsWith = function(t4) {
            var n3 = this, e3 = t4;
            return !(n3.Left >= e3.Right || n3.Right <= e3.Left || n3.Top >= e3.Bottom || n3.Bottom <= e3.Top);
          }, t3;
        })(), n2.CellRect = v, (function(t3) {
          t3[t3.Row = 1] = "Row", t3[t3.Column = 2] = "Column", t3[t3.RowIsRelative = 4] = "RowIsRelative", t3[t3.ColumnIsRelative = 8] = "ColumnIsRelative", t3[t3.LastRowIsRelative = 16] = "LastRowIsRelative", t3[t3.LastColumnIsRelative = 32] = "LastColumnIsRelative", t3[t3.Range = 64] = "Range", t3[t3.Error = 128] = "Error";
        })(p || (p = {})), g = (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.WorksheetName = t4, o2.Row = n3, o2.Column = e3, void 0 !== i3 && (o2.LastRow = i3), void 0 !== r2 && (o2.LastColumn = r2);
          }
          return Object.defineProperty(t3.prototype, "Row", { get: function() {
            return (this.Kind & p.Row) === p.Row ? this.Ky : 0;
          }, set: function(t4) {
            this.Ky = t4, this.Kind |= p.Row;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Column", { get: function() {
            return (this.Kind & p.Column) === p.Column ? this.yft : 0;
          }, set: function(t4) {
            this.yft = t4, this.Kind |= p.Column;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "RowCount", { get: function() {
            var t4, n3, e3 = this;
            return e3.IsRange ? (e3.Kind & p.Row) === p.Row ? e3.RowIsRelative && e3.LastRowIsRelative || !e3.RowIsRelative && !e3.LastRowIsRelative ? e3.LastRow - e3.Row + 1 : -1 : n3 = (t4 = e3.Worksheet).getRowCount() : 1;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ColumnCount", { get: function() {
            var t4 = this;
            return t4.IsRange ? (t4.Kind & p.Column) === p.Column ? t4.ColumnIsRelative && t4.LastColumnIsRelative || !t4.ColumnIsRelative && !t4.LastColumnIsRelative ? t4.LastColumn - t4.Column + 1 : -1 : t4.Worksheet.getColumnCount() : 1;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "LastColumn", { get: function() {
            var t4, n3, e3 = this;
            return e3.IsRange ? (e3.Kind & p.Column) === p.Column ? e3.wft : (n3 = (t4 = e3.Worksheet).getColumnCount()) - 1 : e3.Column;
          }, set: function(t4) {
            this.wft = t4, this.Kind |= p.Column | p.Range;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "LastRow", { get: function() {
            var t4, n3, e3 = this;
            return e3.IsRange ? (e3.Kind & p.Row) === p.Row ? e3.Mft : (n3 = (t4 = e3.Worksheet).getRowCount()) - 1 : e3.Row;
          }, set: function(t4) {
            this.Mft = t4, this.Kind |= p.Row | p.Range;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "RowIsRelative", { get: function() {
            return (this.Kind & (p.Row | p.RowIsRelative)) === (p.Row | p.RowIsRelative);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ColumnIsRelative", { get: function() {
            return (this.Kind & (p.Column | p.ColumnIsRelative)) === (p.Column | p.ColumnIsRelative);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "LastRowIsRelative", { get: function() {
            return this.IsRange ? (this.Kind & (p.Row | p.LastRowIsRelative)) === (p.Row | p.LastRowIsRelative) : this.RowIsRelative;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "LastColumnIsRelative", { get: function() {
            return this.IsRange ? (this.Kind & (p.Column | p.LastColumnIsRelative)) === (p.Column | p.LastColumnIsRelative) : this.ColumnIsRelative;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsRange", { get: function() {
            return (this.Kind & p.Range) === p.Range;
          }, set: function(t4) {
            t4 ? this.Kind |= p.Range : this.Kind &= ~p.Range;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsError", { get: function() {
            return "#REF" === this.WorksheetName;
          }, enumerable: false, configurable: true }), t3.prototype.GetSourceRange = function(t4, n3) {
            var e3 = this, i3 = e3.Row, r2 = e3.Column, o2 = e3.LastRow, a2 = e3.LastColumn;
            return new v(i3, r2, o2 - i3 + 1, a2 - r2 + 1);
          }, t3.prototype.ToR1C1Text = function(t4) {
            var n3, e3, i3, a2, u2, s2;
            return t4 === o && (t4 = r), e3 = (n3 = this).D5, !d.isNullOrUndefined(e3) && n3.Lnn && 13 !== n3.Lnn.type ? e3 : (n3.Kind & p.Error) === p.Error ? n3.GetPrevText(t4) + "#REF!" : (i3 = "", (n3.Kind & p.Row) === p.Row && (a2 = n3.Row, n3.RowIsRelative ? i3 += 0 === a2 ? "R" : "R[" + a2.toString() + "]" : i3 += "R" + (a2 + 1).toString()), (n3.Kind & p.Column) === p.Column && (u2 = n3.Column, n3.ColumnIsRelative ? i3 += 0 === u2 ? "C" : "C[" + u2.toString() + "]" : i3 += "C" + (u2 + 1).toString()), n3.IsRange && (s2 = false, (n3.Kind & (p.Row | p.Column)) !== (p.Row | p.Column) && ((n3.Kind & p.Row) === p.Row ? n3.RowIsRelative === n3.LastRowIsRelative && n3.Row === n3.LastRow && (s2 = true) : n3.ColumnIsRelative === n3.LastColumnIsRelative && n3.Column === n3.LastColumn && (s2 = true)), s2 || (i3 += ":", (n3.Kind & p.Row) === p.Row && (a2 = n3.LastRow, n3.LastRowIsRelative ? i3 += 0 === a2 ? "R" : "R[" + a2.toString() + "]" : i3 += "R" + (a2 + 1).toString()), (n3.Kind & p.Column) === p.Column && (u2 = n3.LastColumn, n3.LastColumnIsRelative ? i3 += 0 === u2 ? "C" : "C[" + u2.toString() + "]" : i3 += "C" + (u2 + 1).toString()))), n3.GetPrevText(t4) + i3);
          }, t3.prototype.ToA1Text = function(t4, n3, e3) {
            var i3, a2, u2, s2, c2;
            return e3 === o && (e3 = r), a2 = (i3 = this).D5, !d.isNullOrUndefined(a2) && i3.Lnn && 13 !== i3.Lnn.type ? a2 : (i3.Kind & p.Error) === p.Error ? i3.GetPrevText(e3) + "#REF!" : (u2 = "", (i3.Kind & p.Column) === p.Column && (c2 = i3.Column, i3.ColumnIsRelative ? c2 += n3 : u2 += "$", isNaN(c2) || (u2 += i3.GetColumnIndexInA1Letter(c2))), (i3.Kind & p.Row) === p.Row && (s2 = i3.Row, i3.RowIsRelative ? s2 += t4 : u2 += "$", u2 += (s2 + 1).toString()), i3.IsRange && (u2 += ":", (i3.Kind & p.Column) === p.Column && (c2 = i3.LastColumn, i3.LastColumnIsRelative ? c2 += n3 : u2 += "$", isNaN(c2) || (u2 += i3.GetColumnIndexInA1Letter(c2))), (i3.Kind & p.Row) === p.Row && (s2 = i3.LastRow, i3.LastRowIsRelative ? s2 += t4 : u2 += "$", u2 += (s2 + 1).toString())), i3.GetPrevText(e3) + u2);
          }, t3.prototype.GetPrevText = function(t4) {
            var n3, e3 = this, i3 = "";
            return e3.Workbook > 0 && (i3 = "[" + e3.Workbook.toString() + "]"), n3 = e3.WorksheetName, d.isNullOrUndefined(n3) && (n3 = t4), n3 && (d.isNullOrUndefined(e3.LastWorksheetName) ? i3 += n3 : i3 += n3 + ":" + e3.LastWorksheetName), i3 ? ((e3.IsSpecialSheetName(n3) || e3.IsSpecialSheetName(e3.LastWorksheetName)) && (i3 = "'" + i3.replace("'", "''") + "'"), i3 += "!") : "" === n3 && (i3 = "!"), i3;
          }, t3.prototype.IsSpecialSheetName = function(n3) {
            var e3, i3;
            if (!d.isNullOrUndefined(n3)) {
              if (n3 === t3.ErrorWorksheetName) return false;
              for (e3 = 0; e3 < n3.length; e3++) if (!((i3 = n3[e3]) >= "A" && i3 <= "Z" || i3 >= "a" && i3 <= "z" || i3 >= "0" && i3 <= "9" || "_" === i3)) return true;
            }
            return false;
          }, t3.prototype.GetColumnIndexInA1Letter = function(t4) {
            for (var n3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", e3 = [], i3 = 0; i3 = t4 % 26, !isNaN(i3) && (e3.unshift(n3[i3]), 0 !== (t4 = parseInt(t4 / 26 + "", 10))); ) t4--;
            return e3.join("");
          }, t3.ErrorWorksheetName = "#REF", t3;
        })(), n2.Reference = g, n2.ChartConstants = { XValuesMinMax: "XValuesMinMax", ValuesMinMax: "ValuesMinMax", PrimaryValuesMinMax: "PrimaryValuesMinMax", SecondaryValuesMinMax: "SecondaryValuesMinMax", PrimaryXValuesMinMax: "PrimaryXValuesMinMax", SecondaryXValuesMinMax: "SecondaryXValuesMinMax", Collection: "Collection", Restore: "Restore", ChartType: "ChartType", AxisGroup: "AxisGroup", AreAllXValuesDateTime: "AreAllXValuesDateTime", XValuesFormula: "XValuesFormula", XValues: "XValues", CategoryNames: "CategoryNames", CategoryType: "CategoryType", SecondaryPlot: "SecondaryPlot", SplitType: "SplitType", SplitValue: "SplitValue", IsMultiLevelXValues: "IsMultiLevelXValues", PlotOrder: "PlotOrder", FIELD_TYPE_CELLRANGE: "CELLRANGE", FIELD_TYPE_SERIESNAME: "SERIESNAME", FIELD_TYPE_CATEGORYNAME: "CATEGORYNAME", FIELD_TYPE_VALUE: "VALUE", FIELD_TYPE_XVALUE: "XVALUE", FIELD_TYPE_YVALUE: "YVALUE", FIELD_TYPE_BUBBLESIZE: "BUBBLESIZE", FIELD_TYPE_PERCENTAGE: "PERCENTAGE", FIELD_TYPE_TXLINK: "TxLink", FIELD_TEXT_CELLRANGE: "[CELLRANGE]", FIELD_TEXT_SERIESNAME: "[SERIES NAME]", FIELD_TEXT_CATEGORYNAME: "[CATEGORY NAME]", FIELD_TEXT_VALUE: "[VALUE]", FIELD_TEXT_XVALUE: "[XVALUE]", FIELD_TEXT_YVALUE: "[YVALUE]", FIELD_TEXT_BUBBLESIZE: "[BUBBLE SIZE]", CHART_LATIN_HEAD_FONT: "+mj-lt", CHART_LATIN_BODY_FONT: "+mn-lt", CHART_EA_HEAD_FONT: "+mj-ea", CHART_EA_BODY_FONT: "+mn-ea", CHART_CS_HEAD_FONT: "+mj-cs", CHART_CS_BODY_FONT: "+mn-cs", DefaultLineColorBrightness: 0.85, DefaultMarkerSize: 7 }, n2.DrawingConstants = { ShapeTypePrefix: "Shape", PositiveFixedAngleConvert: 6e4, PositionConver: 1e5, CropPositionConver: 1e3, ShadeConver: 2e5, DefaultBrightness: 0.5, RelativeRectConver: 1e3, DefaultTransparent: 0, PositiveFixedPercentageConvert: 1e5, DefaultOffset: 2.07995176, DefaultSatMod: 1 }, (function(t3) {
          t3[t3["background 1"] = 0] = "background 1", t3[t3["background 2"] = 2] = "background 2", t3[t3["text 1"] = 1] = "text 1", t3[t3["text 2"] = 3] = "text 2", t3[t3["accent 1"] = 4] = "accent 1", t3[t3["accent 2"] = 5] = "accent 2", t3[t3["accent 3"] = 6] = "accent 3", t3[t3["accent 4"] = 7] = "accent 4", t3[t3["accent 5"] = 8] = "accent 5", t3[t3["accent 6"] = 9] = "accent 6", t3[t3.hyperlink = 10] = "hyperlink", t3[t3.followedhyperlink = 11] = "followedhyperlink";
        })(m = n2.ThemeColorDict || (n2.ThemeColorDict = {})), b = (function() {
          function t3() {
          }
          return t3.Cft = function(t4, n3) {
            return n3 === i2.ThemeFont.Major ? t4.getFont("Headings") : n3 === i2.ThemeFont.Minor ? t4.getFont("Body") : "";
          }, t3.InitPresetColors = function() {
            var n3 = t3.presetColors;
            n3[i2.ST_PresetColorVal.aliceBlue] = [240, 248, 255], n3[i2.ST_PresetColorVal.antiqueWhite] = [250, 235, 215], n3[i2.ST_PresetColorVal.aqua] = [0, 255, 255], n3[i2.ST_PresetColorVal.aquamarine] = [127, 255, 212], n3[i2.ST_PresetColorVal.azure] = [240, 255, 255], n3[i2.ST_PresetColorVal.beige] = [245, 245, 220], n3[i2.ST_PresetColorVal.bisque] = [255, 228, 196], n3[i2.ST_PresetColorVal.black] = [0, 0, 0], n3[i2.ST_PresetColorVal.blanchedAlmond] = [255, 235, 205], n3[i2.ST_PresetColorVal.blue] = [0, 0, 255], n3[i2.ST_PresetColorVal.blueViolet] = [138, 43, 226], n3[i2.ST_PresetColorVal.brown] = [165, 42, 42], n3[i2.ST_PresetColorVal.burlyWood] = [222, 184, 135], n3[i2.ST_PresetColorVal.cadetBlue] = [95, 158, 160], n3[i2.ST_PresetColorVal.chartreuse] = [127, 255, 0], n3[i2.ST_PresetColorVal.chocolate] = [210, 105, 30], n3[i2.ST_PresetColorVal.coral] = [255, 127, 80], n3[i2.ST_PresetColorVal.cornflowerBlue] = [100, 149, 237], n3[i2.ST_PresetColorVal.cornsilk] = [255, 248, 220], n3[i2.ST_PresetColorVal.crimson] = [220, 20, 60], n3[i2.ST_PresetColorVal.cyan] = [0, 255, 255], n3[i2.ST_PresetColorVal.darkBlue] = [0, 0, 139], n3[i2.ST_PresetColorVal.darkCyan] = [0, 139, 139], n3[i2.ST_PresetColorVal.darkGoldenrod] = [184, 134, 11], n3[i2.ST_PresetColorVal.darkGray] = [169, 169, 169], n3[i2.ST_PresetColorVal.darkGreen] = [0, 100, 0], n3[i2.ST_PresetColorVal.darkGrey] = [169, 169, 169], n3[i2.ST_PresetColorVal.darkKhaki] = [189, 183, 107], n3[i2.ST_PresetColorVal.darkMagenta] = [139, 0, 139], n3[i2.ST_PresetColorVal.darkOliveGreen] = [85, 107, 47], n3[i2.ST_PresetColorVal.darkOrange] = [255, 140, 0], n3[i2.ST_PresetColorVal.darkOrchid] = [153, 50, 204], n3[i2.ST_PresetColorVal.darkRed] = [139, 0, 0], n3[i2.ST_PresetColorVal.darkSalmon] = [233, 150, 122], n3[i2.ST_PresetColorVal.darkSeaGreen] = [143, 188, 143], n3[i2.ST_PresetColorVal.darkSlateBlue] = [72, 61, 139], n3[i2.ST_PresetColorVal.darkSlateGray] = [47, 79, 79], n3[i2.ST_PresetColorVal.darkSlateGrey] = [47, 79, 79], n3[i2.ST_PresetColorVal.darkTurquoise] = [0, 206, 209], n3[i2.ST_PresetColorVal.darkViolet] = [148, 0, 211], n3[i2.ST_PresetColorVal.deepPink] = [255, 20, 147], n3[i2.ST_PresetColorVal.deepSkyBlue] = [0, 191, 255], n3[i2.ST_PresetColorVal.dimGray] = [105, 105, 105], n3[i2.ST_PresetColorVal.dimGrey] = [105, 105, 105], n3[i2.ST_PresetColorVal.dkBlue] = [0, 0, 139], n3[i2.ST_PresetColorVal.dkCyan] = [0, 139, 139], n3[i2.ST_PresetColorVal.dkGoldenrod] = [184, 134, 11], n3[i2.ST_PresetColorVal.dkGray] = [169, 169, 169], n3[i2.ST_PresetColorVal.dkGreen] = [0, 100, 0], n3[i2.ST_PresetColorVal.dkGrey] = [169, 169, 169], n3[i2.ST_PresetColorVal.dkKhaki] = [189, 183, 107], n3[i2.ST_PresetColorVal.dkMagenta] = [139, 0, 139], n3[i2.ST_PresetColorVal.dkOliveGreen] = [85, 107, 47], n3[i2.ST_PresetColorVal.dkOrange] = [255, 140, 0], n3[i2.ST_PresetColorVal.dkOrchid] = [153, 50, 204], n3[i2.ST_PresetColorVal.dkRed] = [139, 0, 0], n3[i2.ST_PresetColorVal.dkSalmon] = [233, 150, 122], n3[i2.ST_PresetColorVal.dkSeaGreen] = [143, 188, 139], n3[i2.ST_PresetColorVal.dkSlateBlue] = [72, 61, 139], n3[i2.ST_PresetColorVal.dkSlateGray] = [47, 79, 79], n3[i2.ST_PresetColorVal.dkSlateGrey] = [47, 79, 79], n3[i2.ST_PresetColorVal.dkTurquoise] = [0, 206, 209], n3[i2.ST_PresetColorVal.dkViolet] = [148, 0, 211], n3[i2.ST_PresetColorVal.dodgerBlue] = [30, 144, 255], n3[i2.ST_PresetColorVal.firebrick] = [178, 34, 34], n3[i2.ST_PresetColorVal.floralWhite] = [255, 250, 240], n3[i2.ST_PresetColorVal.forestGreen] = [34, 139, 34], n3[i2.ST_PresetColorVal.fuchsia] = [255, 0, 255], n3[i2.ST_PresetColorVal.gainsboro] = [220, 220, 220], n3[i2.ST_PresetColorVal.ghostWhite] = [248, 248, 255], n3[i2.ST_PresetColorVal.gold] = [255, 215, 0], n3[i2.ST_PresetColorVal.goldenrod] = [218, 165, 32], n3[i2.ST_PresetColorVal.gray] = [128, 128, 128], n3[i2.ST_PresetColorVal.green] = [0, 128, 0], n3[i2.ST_PresetColorVal.greenYellow] = [173, 255, 47], n3[i2.ST_PresetColorVal.grey] = [128, 128, 128], n3[i2.ST_PresetColorVal.honeydew] = [240, 255, 240], n3[i2.ST_PresetColorVal.hotPink] = [255, 105, 180], n3[i2.ST_PresetColorVal.indianRed] = [205, 92, 92], n3[i2.ST_PresetColorVal.indigo] = [75, 0, 130], n3[i2.ST_PresetColorVal.ivory] = [255, 255, 240], n3[i2.ST_PresetColorVal.khaki] = [240, 230, 140], n3[i2.ST_PresetColorVal.lavender] = [230, 230, 250], n3[i2.ST_PresetColorVal.lavenderBlush] = [255, 240, 245], n3[i2.ST_PresetColorVal.lawnGreen] = [124, 252, 0], n3[i2.ST_PresetColorVal.lemonChiffon] = [255, 250, 205], n3[i2.ST_PresetColorVal.lightBlue] = [173, 216, 230], n3[i2.ST_PresetColorVal.lightCoral] = [240, 128, 128], n3[i2.ST_PresetColorVal.lightCyan] = [224, 255, 255], n3[i2.ST_PresetColorVal.lightGoldenrodYellow] = [250, 250, 210], n3[i2.ST_PresetColorVal.lightGray] = [211, 211, 211], n3[i2.ST_PresetColorVal.lightGreen] = [144, 238, 144], n3[i2.ST_PresetColorVal.lightGrey] = [211, 211, 211], n3[i2.ST_PresetColorVal.lightPink] = [255, 182, 193], n3[i2.ST_PresetColorVal.lightSalmon] = [255, 160, 122], n3[i2.ST_PresetColorVal.lightSeaGreen] = [32, 178, 170], n3[i2.ST_PresetColorVal.lightSkyBlue] = [135, 206, 250], n3[i2.ST_PresetColorVal.lightSlateGray] = [119, 136, 153], n3[i2.ST_PresetColorVal.lightSlateGrey] = [119, 136, 153], n3[i2.ST_PresetColorVal.lightSteelBlue] = [176, 196, 222], n3[i2.ST_PresetColorVal.lightYellow] = [255, 255, 224], n3[i2.ST_PresetColorVal.lime] = [0, 255, 0], n3[i2.ST_PresetColorVal.limeGreen] = [50, 205, 50], n3[i2.ST_PresetColorVal.linen] = [250, 240, 230], n3[i2.ST_PresetColorVal.ltBlue] = [173, 216, 230], n3[i2.ST_PresetColorVal.ltCoral] = [240, 128, 128], n3[i2.ST_PresetColorVal.ltCyan] = [224, 255, 255], n3[i2.ST_PresetColorVal.ltGoldenrodYellow] = [250, 250, 120], n3[i2.ST_PresetColorVal.ltGray] = [211, 211, 211], n3[i2.ST_PresetColorVal.ltGreen] = [144, 238, 144], n3[i2.ST_PresetColorVal.ltGrey] = [211, 211, 211], n3[i2.ST_PresetColorVal.ltPink] = [255, 182, 193], n3[i2.ST_PresetColorVal.ltSalmon] = [255, 160, 122], n3[i2.ST_PresetColorVal.ltSeaGreen] = [32, 178, 170], n3[i2.ST_PresetColorVal.ltSkyBlue] = [135, 206, 250], n3[i2.ST_PresetColorVal.ltSlateGray] = [119, 136, 153], n3[i2.ST_PresetColorVal.ltSlateGrey] = [119, 136, 153], n3[i2.ST_PresetColorVal.ltSteelBlue] = [176, 196, 222], n3[i2.ST_PresetColorVal.ltYellow] = [255, 255, 224], n3[i2.ST_PresetColorVal.magenta] = [255, 0, 255], n3[i2.ST_PresetColorVal.maroon] = [128, 0, 0], n3[i2.ST_PresetColorVal.medAquamarine] = [102, 205, 170], n3[i2.ST_PresetColorVal.medBlue] = [0, 0, 205], n3[i2.ST_PresetColorVal.mediumAquamarine] = [102, 205, 170], n3[i2.ST_PresetColorVal.mediumBlue] = [0, 0, 205], n3[i2.ST_PresetColorVal.mediumOrchid] = [186, 85, 211], n3[i2.ST_PresetColorVal.mediumPurple] = [147, 112, 219], n3[i2.ST_PresetColorVal.mediumSeaGreen] = [60, 179, 113], n3[i2.ST_PresetColorVal.mediumSlateBlue] = [123, 104, 238], n3[i2.ST_PresetColorVal.mediumSpringGreen] = [0, 250, 154], n3[i2.ST_PresetColorVal.mediumTurquoise] = [72, 209, 204], n3[i2.ST_PresetColorVal.mediumVioletRed] = [199, 21, 133], n3[i2.ST_PresetColorVal.medOrchid] = [186, 85, 211], n3[i2.ST_PresetColorVal.medPurple] = [147, 112, 219], n3[i2.ST_PresetColorVal.medSeaGreen] = [60, 179, 113], n3[i2.ST_PresetColorVal.medSlateBlue] = [123, 104, 238], n3[i2.ST_PresetColorVal.medSpringGreen] = [0, 250, 154], n3[i2.ST_PresetColorVal.medTurquoise] = [72, 209, 204], n3[i2.ST_PresetColorVal.medVioletRed] = [199, 21, 133], n3[i2.ST_PresetColorVal.midnightBlue] = [25, 25, 112], n3[i2.ST_PresetColorVal.mintCream] = [245, 255, 250], n3[i2.ST_PresetColorVal.mistyRose] = [255, 228, 225], n3[i2.ST_PresetColorVal.moccasin] = [255, 228, 181], n3[i2.ST_PresetColorVal.navajoWhite] = [255, 222, 173], n3[i2.ST_PresetColorVal.navy] = [0, 0, 128], n3[i2.ST_PresetColorVal.oldLace] = [253, 245, 230], n3[i2.ST_PresetColorVal.olive] = [128, 128, 0], n3[i2.ST_PresetColorVal.oliveDrab] = [107, 142, 35], n3[i2.ST_PresetColorVal.orange] = [255, 165, 0], n3[i2.ST_PresetColorVal.orangeRed] = [255, 69, 0], n3[i2.ST_PresetColorVal.orchid] = [218, 112, 214], n3[i2.ST_PresetColorVal.paleGoldenrod] = [238, 232, 170], n3[i2.ST_PresetColorVal.paleGreen] = [152, 251, 152], n3[i2.ST_PresetColorVal.paleTurquoise] = [175, 238, 238], n3[i2.ST_PresetColorVal.paleVioletRed] = [219, 112, 147], n3[i2.ST_PresetColorVal.papayaWhip] = [255, 239, 213], n3[i2.ST_PresetColorVal.peachPuff] = [255, 218, 185], n3[i2.ST_PresetColorVal.peru] = [205, 133, 63], n3[i2.ST_PresetColorVal.pink] = [255, 192, 203], n3[i2.ST_PresetColorVal.plum] = [221, 160, 221], n3[i2.ST_PresetColorVal.powderBlue] = [176, 224, 230], n3[i2.ST_PresetColorVal.purple] = [128, 0, 128], n3[i2.ST_PresetColorVal.red] = [255, 0, 0], n3[i2.ST_PresetColorVal.rosyBrown] = [188, 143, 143], n3[i2.ST_PresetColorVal.royalBlue] = [65, 105, 225], n3[i2.ST_PresetColorVal.saddleBrown] = [139, 69, 19], n3[i2.ST_PresetColorVal.salmon] = [250, 128, 114], n3[i2.ST_PresetColorVal.sandyBrown] = [244, 164, 96], n3[i2.ST_PresetColorVal.seaGreen] = [46, 139, 87], n3[i2.ST_PresetColorVal.seaShell] = [255, 245, 238], n3[i2.ST_PresetColorVal.sienna] = [160, 82, 45], n3[i2.ST_PresetColorVal.silver] = [192, 192, 192], n3[i2.ST_PresetColorVal.skyBlue] = [135, 206, 235], n3[i2.ST_PresetColorVal.slateBlue] = [106, 90, 205], n3[i2.ST_PresetColorVal.slateGray] = [112, 128, 144], n3[i2.ST_PresetColorVal.slateGrey] = [112, 128, 144], n3[i2.ST_PresetColorVal.snow] = [255, 250, 250], n3[i2.ST_PresetColorVal.springGreen] = [0, 255, 127], n3[i2.ST_PresetColorVal.steelBlue] = [70, 130, 180], n3[i2.ST_PresetColorVal.tan] = [210, 180, 140], n3[i2.ST_PresetColorVal.teal] = [0, 128, 128], n3[i2.ST_PresetColorVal.thistle] = [216, 191, 216], n3[i2.ST_PresetColorVal.tomato] = [255, 99, 71], n3[i2.ST_PresetColorVal.turquoise] = [64, 224, 208], n3[i2.ST_PresetColorVal.violet] = [238, 130, 238], n3[i2.ST_PresetColorVal.wheat] = [245, 222, 179], n3[i2.ST_PresetColorVal.white] = [255, 255, 255], n3[i2.ST_PresetColorVal.whiteSmoke] = [245, 245, 245], n3[i2.ST_PresetColorVal.yellow] = [255, 255, 0], n3[i2.ST_PresetColorVal.yellowGreen] = [154, 205, 50];
          }, t3.GetPresetColorRGB = function(n3) {
            return t3.presetColors[n3];
          }, t3.GetTextFieldTypeString = function(t4) {
            var e3;
            return { 0: n2.ChartConstants.FIELD_TYPE_CELLRANGE, 1: n2.ChartConstants.FIELD_TYPE_SERIESNAME, 2: n2.ChartConstants.FIELD_TYPE_CATEGORYNAME, 3: n2.ChartConstants.FIELD_TYPE_VALUE, 4: n2.ChartConstants.FIELD_TYPE_XVALUE, 5: n2.ChartConstants.FIELD_TYPE_YVALUE, 6: n2.ChartConstants.FIELD_TYPE_BUBBLESIZE, 7: n2.ChartConstants.FIELD_TYPE_PERCENTAGE, 8: n2.ChartConstants.FIELD_TYPE_TXLINK }[t4] || "";
          }, t3.GetTextFieldTypeText = function(t4) {
            var e3;
            return { 0: n2.ChartConstants.FIELD_TEXT_CELLRANGE, 1: n2.ChartConstants.FIELD_TEXT_SERIESNAME, 2: n2.ChartConstants.FIELD_TEXT_CATEGORYNAME, 3: n2.ChartConstants.FIELD_TEXT_VALUE, 4: n2.ChartConstants.FIELD_TEXT_XVALUE, 5: n2.ChartConstants.FIELD_TEXT_YVALUE, 6: n2.ChartConstants.FIELD_TEXT_BUBBLESIZE }[t4] || "";
          }, t3.GetTextFieldType = function(t4) {
            var e3 = i2.TextFieldType.CellRange;
            switch (t4) {
              case n2.ChartConstants.FIELD_TYPE_CELLRANGE:
                e3 = i2.TextFieldType.CellRange;
                break;
              case n2.ChartConstants.FIELD_TYPE_SERIESNAME:
                e3 = i2.TextFieldType.SeriesName;
                break;
              case n2.ChartConstants.FIELD_TYPE_CATEGORYNAME:
                e3 = i2.TextFieldType.CategoryName;
                break;
              case n2.ChartConstants.FIELD_TYPE_VALUE:
                e3 = i2.TextFieldType.Value;
                break;
              case n2.ChartConstants.FIELD_TYPE_XVALUE:
                e3 = i2.TextFieldType.XValue;
                break;
              case n2.ChartConstants.FIELD_TYPE_YVALUE:
                e3 = i2.TextFieldType.YValue;
                break;
              case n2.ChartConstants.FIELD_TYPE_BUBBLESIZE:
                e3 = i2.TextFieldType.BubbleSize;
                break;
              case n2.ChartConstants.FIELD_TYPE_PERCENTAGE:
                e3 = i2.TextFieldType.Percentage;
                break;
              case n2.ChartConstants.FIELD_TYPE_TXLINK:
                e3 = i2.TextFieldType.TxLink;
            }
            return e3;
          }, t3.toThemeColorString = function(t4, n3) {
            return m[t4] + (n3 !== o ? " " + parseInt(100 * n3 + "", 10) : "");
          }, t3.fromThemeColorString = function(t4) {
            var n3, e3 = t4.split(" "), i3 = e3.length, r2 = e3[0].toLowerCase(), a2 = e3[1], u2 = e3[2];
            if ("hyperlink" === r2 || "followedhyperlink" === r2) {
              if (1 === i3) return { index: m[r2], tint: 0 };
              if (2 === i3) return { index: m[r2], tint: parseInt(a2, 10) / 100 };
            }
            if (i3 >= 2 && (n3 = m[r2 + " " + a2]) !== o) {
              if (2 === i3) return { index: n3, tint: 0 };
              if (3 === i3) return { index: n3, tint: parseInt(u2, 10) / 100 };
            }
          }, t3.ToPatternType = function(t4) {
            var n3 = 0;
            switch (t4) {
              case 0:
                n3 = 1;
                break;
              case 1:
                n3 = 2;
                break;
              case 2:
                n3 = 3;
                break;
              case 3:
                n3 = 4;
                break;
              case 4:
                n3 = 5;
                break;
              case 5:
                n3 = 6;
                break;
              case 6:
                n3 = 7;
                break;
              case 7:
                n3 = 8;
                break;
              case 8:
                n3 = 9;
                break;
              case 9:
                n3 = 10;
                break;
              case 10:
                n3 = 11;
                break;
              case 11:
                n3 = 12;
                break;
              case 16:
                n3 = 13;
                break;
              case 17:
                n3 = 14;
                break;
              case 27:
                n3 = 15;
                break;
              case 28:
                n3 = 16;
                break;
              case 34:
                n3 = 17;
                break;
              case 52:
                n3 = 18;
                break;
              case 14:
                n3 = 19;
                break;
              case 15:
                n3 = 20;
                break;
              case 25:
                n3 = 21;
                break;
              case 26:
                n3 = 22;
                break;
              case 36:
                n3 = 23;
                break;
              case 45:
                n3 = 24;
                break;
              case 29:
                n3 = 25;
                break;
              case 30:
                n3 = 26;
                break;
              case 32:
                n3 = 27;
                break;
              case 31:
                n3 = 28;
                break;
              case 19:
                n3 = 29;
                break;
              case 18:
                n3 = 30;
                break;
              case 21:
                n3 = 31;
                break;
              case 20:
                n3 = 32;
                break;
              case 40:
                n3 = 33;
                break;
              case 37:
                n3 = 34;
                break;
              case 41:
                n3 = 35;
                break;
              case 35:
                n3 = 36;
                break;
              case 39:
                n3 = 37;
                break;
              case 53:
                n3 = 38;
                break;
              case 43:
                n3 = 39;
                break;
              case 42:
                n3 = 40;
                break;
              case 44:
                n3 = 41;
                break;
              case 46:
                n3 = 42;
                break;
              case 47:
                n3 = 43;
                break;
              case 48:
                n3 = 44;
                break;
              case 38:
                n3 = 45;
                break;
              case 49:
                n3 = 46;
                break;
              case 50:
                n3 = 47;
                break;
              case 51:
                n3 = 48;
                break;
              case 12:
                n3 = 49;
                break;
              case 13:
                n3 = 50;
                break;
              case 22:
                n3 = 51;
                break;
              case 23:
                n3 = 52;
                break;
              case 24:
                n3 = 53;
                break;
              case 33:
                n3 = 54;
            }
            return n3;
          }, t3.ToST_PresetPatternVal = function(t4) {
            var n3 = 0;
            switch (t4) {
              case 2:
                n3 = 1;
                break;
              case 3:
                n3 = 2;
                break;
              case 4:
                n3 = 3;
                break;
              case 5:
                n3 = 4;
                break;
              case 6:
                n3 = 5;
                break;
              case 7:
                n3 = 6;
                break;
              case 8:
                n3 = 7;
                break;
              case 9:
                n3 = 8;
                break;
              case 10:
                n3 = 9;
                break;
              case 11:
                n3 = 10;
                break;
              case 12:
                n3 = 11;
                break;
              case 13:
                n3 = 16;
                break;
              case 14:
                n3 = 17;
                break;
              case 15:
                n3 = 27;
                break;
              case 16:
                n3 = 28;
                break;
              case 17:
                n3 = 34;
                break;
              case 18:
                n3 = 52;
                break;
              case 19:
                n3 = 14;
                break;
              case 20:
                n3 = 15;
                break;
              case 21:
                n3 = 25;
                break;
              case 22:
                n3 = 26;
                break;
              case 23:
                n3 = 36;
                break;
              case 24:
                n3 = 45;
                break;
              case 25:
                n3 = 29;
                break;
              case 26:
                n3 = 30;
                break;
              case 27:
                n3 = 32;
                break;
              case 28:
                n3 = 31;
                break;
              case 29:
                n3 = 19;
                break;
              case 30:
                n3 = 18;
                break;
              case 31:
                n3 = 21;
                break;
              case 32:
                n3 = 20;
                break;
              case 33:
                n3 = 40;
                break;
              case 34:
                n3 = 37;
                break;
              case 35:
                n3 = 41;
                break;
              case 36:
                n3 = 35;
                break;
              case 37:
                n3 = 39;
                break;
              case 38:
                n3 = 53;
                break;
              case 39:
                n3 = 43;
                break;
              case 40:
                n3 = 42;
                break;
              case 41:
                n3 = 44;
                break;
              case 42:
                n3 = 46;
                break;
              case 43:
                n3 = 47;
                break;
              case 44:
                n3 = 48;
                break;
              case 45:
                n3 = 38;
                break;
              case 46:
                n3 = 49;
                break;
              case 47:
                n3 = 50;
                break;
              case 48:
                n3 = 51;
                break;
              case 49:
                n3 = 12;
                break;
              case 50:
                n3 = 13;
                break;
              case 51:
                n3 = 22;
                break;
              case 52:
                n3 = 23;
                break;
              case 53:
                n3 = 24;
                break;
              case 54:
                n3 = 33;
            }
            return n3;
          }, t3.ConvertToTextUnderlineType = function(t4) {
            var n3 = i2.TextUnderlineType.None;
            return t4 === i2.UnderlineType.Single ? n3 = i2.TextUnderlineType.Single : t4 === i2.UnderlineType.Double && (n3 = i2.TextUnderlineType.Double), n3;
          }, t3.ToUnderlineType = function(t4) {
            var n3 = i2.UnderlineType.None;
            return t4 === i2.TextUnderlineType.Single ? n3 = i2.UnderlineType.Single : t4 === i2.TextUnderlineType.Double && (n3 = i2.UnderlineType.Double), n3;
          }, t3.ToLum = function(t4) {
            return 1e5 - s(2e5 * (1 - t4));
          }, t3.FromLum = function(t4) {
            return 1 - (1e5 - t4) / 2e5;
          }, t3.removeEmptyArrayProperties = function(t4) {
            var n3, e3;
            for (n3 in t4) t4.hasOwnProperty(n3) && (void 0 === (e3 = t4[n3]) || Array.isArray(e3) && 0 === e3.length) && delete t4[n3];
          }, t3.CreateReference = function(t4, n3, e3, i3, r2) {
            return 1 === i3 && 1 === r2 ? new g(t4, n3, e3) : new g(t4, n3, e3, n3 + i3 - 1, e3 + r2 - 1);
          }, t3.presetColors = {}, t3.Aft = w, t3;
        })(), n2.DrawingUtility = b, b.InitPresetColors(), n2.pft = M, n2.toKnownColor = C, n2.gft = S, n2.toColorSchemeIndex = T, n2.mft = x;
      }, "./dist/plugins/floatingObject/drawing/drawingInterface.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ArrowheadStyle = n2.ArrowheadLength = n2.GradientStyle = n2.PatternType = n2.GradientColorType = n2.PresetTexture = n2.PresetGradientType = n2.FillType = n2.TextureType = n2.TextureFlipType = n2.TextureAlignment = n2.DrawingType = n2.ST_TextHorzOverflowType = n2.ST_TextAnchoringType = n2.ReferenceKind = n2.ThemeFont = n2.ColorSchemeIndex = n2.ST_CompoundLine = n2.ST_SchemeColorVal = n2.ST_SystemColorVal = n2.ST_RectAlignment = n2.ST_LightRigDirection = n2.ST_TextTabAlignType = n2.ST_TextShapeType = n2.ST_TextWrappingType = n2.ST_TextVerticalType = n2.ST_TextVertOverflowType = n2.ST_TextAutonumberScheme = n2.ST_TextAlignType = n2.ST_TextFontAlignType = n2.ST_PresetShadowVal = n2.ST_EffectContainerType = n2.ST_LightRigType = n2.ST_BlendMode = n2.ST_TileFlipMode = n2.StyleDataFlag = n2.TextParagraphElementType = n2.ST_PresetColorVal = n2.ST_FontCollectionIndex = n2.ColorFillType = n2.ST_BevelPresetType = n2.ST_PresetMaterialType = n2.ST_PathShadeType = n2.ST_BlipCompression = n2.ST_LineCap = n2.ST_PresetPatternVal = n2.ST_TextUnderlineType = n2.OOXMLFileHelper = n2.ST_TextCapsType = n2.ST_TextStrikeType = void 0, n2.BevelType = n2.ST_TimeUnit = n2.PictureFormatType = n2.ColorFormatStates = n2.LineFormatStates = n2.ST_AnchorType = n2.ST_LineEndLength = n2.ST_LineEndType = n2.ST_LineEndWidth = n2.ST_PresetLineDashVal = n2.ST_PresetCameraType = n2.ColorType = n2.UnderlineType = n2.TextFieldType = n2.ReflectionType = n2.TextUnderlineType = n2.SolidColorType = n2.ImageType = n2.Placement = n2.VertAlignType = n2.LineType = n2.LightRigDirection = n2.LightRigType = n2.PresetLightingDirection = n2.PresetCamera = n2.SoftEdgeType = n2.ShadowStyle = n2.ShadowType = n2.PictureColorType = n2.LineStyle = n2.LineJoinStyle = n2.LineCapStyle = n2.LineDashStyle = n2.ArrowheadWidth = void 0, (function(t3) {
          t3[t3.noStrike = 0] = "noStrike", t3[t3.sngStrike = 1] = "sngStrike", t3[t3.dblStrike = 2] = "dblStrike";
        })(e2 = n2.ST_TextStrikeType || (n2.ST_TextStrikeType = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.small = 1] = "small", t3[t3.all = 2] = "all";
        })(i2 = n2.ST_TextCapsType || (n2.ST_TextCapsType = {})), r = (function() {
          function t3() {
          }
          return t3.HiddenScene3dUri = "{31F19639-BCED-4A60-ADC4-E9642A236FB7}", t3.HiddenSp3dUri = "{E45631CC-5BF2-4C18-A39C-3461C7D3F71A}", t3.HiddenFillUri = "{909E8E84-426E-40DD-AFC4-6F175D3DCCD1}", t3.HiddenLineUri = "{91240B29-F687-4F45-9708-019B960494DF}", t3;
        })(), n2.OOXMLFileHelper = r, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.words = 1] = "words", t3[t3.sng = 2] = "sng", t3[t3.dbl = 3] = "dbl", t3[t3.heavy = 4] = "heavy", t3[t3.dotted = 5] = "dotted", t3[t3.dottedHeavy = 6] = "dottedHeavy", t3[t3.dash = 7] = "dash", t3[t3.dashHeavy = 8] = "dashHeavy", t3[t3.dashLong = 9] = "dashLong", t3[t3.dashLongHeavy = 10] = "dashLongHeavy", t3[t3.dotDash = 11] = "dotDash", t3[t3.dotDashHeavy = 12] = "dotDashHeavy", t3[t3.dotDotDash = 13] = "dotDotDash", t3[t3.dotDotDashHeavy = 14] = "dotDotDashHeavy", t3[t3.wavy = 15] = "wavy", t3[t3.wavyHeavy = 16] = "wavyHeavy", t3[t3.wavyDb = 17] = "wavyDb";
        })(o = n2.ST_TextUnderlineType || (n2.ST_TextUnderlineType = {})), (function(t3) {
          t3[t3.pct5 = 0] = "pct5", t3[t3.pct10 = 1] = "pct10", t3[t3.pct20 = 2] = "pct20", t3[t3.pct25 = 3] = "pct25", t3[t3.pct30 = 4] = "pct30", t3[t3.pct40 = 5] = "pct40", t3[t3.pct50 = 6] = "pct50", t3[t3.pct60 = 7] = "pct60", t3[t3.pct70 = 8] = "pct70", t3[t3.pct75 = 9] = "pct75", t3[t3.pct80 = 10] = "pct80", t3[t3.pct90 = 11] = "pct90", t3[t3.horz = 12] = "horz", t3[t3.vert = 13] = "vert", t3[t3.ltHorz = 14] = "ltHorz", t3[t3.ltVert = 15] = "ltVert", t3[t3.dkHorz = 16] = "dkHorz", t3[t3.dkVert = 17] = "dkVert", t3[t3.narHorz = 18] = "narHorz", t3[t3.narVert = 19] = "narVert", t3[t3.dashHorz = 20] = "dashHorz", t3[t3.dashVert = 21] = "dashVert", t3[t3.cross = 22] = "cross", t3[t3.dnDiag = 23] = "dnDiag", t3[t3.upDiag = 24] = "upDiag", t3[t3.ltDnDiag = 25] = "ltDnDiag", t3[t3.ltUpDiag = 26] = "ltUpDiag", t3[t3.dkDnDiag = 27] = "dkDnDiag", t3[t3.dkUpDiag = 28] = "dkUpDiag", t3[t3.wdDnDiag = 29] = "wdDnDiag", t3[t3.wdUpDiag = 30] = "wdUpDiag", t3[t3.dashDnDiag = 31] = "dashDnDiag", t3[t3.dashUpDiag = 32] = "dashUpDiag", t3[t3.diagCross = 33] = "diagCross", t3[t3.smCheck = 34] = "smCheck", t3[t3.lgCheck = 35] = "lgCheck", t3[t3.smGrid = 36] = "smGrid", t3[t3.lgGrid = 37] = "lgGrid", t3[t3.dotGrid = 38] = "dotGrid", t3[t3.smConfetti = 39] = "smConfetti", t3[t3.lgConfetti = 40] = "lgConfetti", t3[t3.horzBrick = 41] = "horzBrick", t3[t3.diagBrick = 42] = "diagBrick", t3[t3.solidDmnd = 43] = "solidDmnd", t3[t3.openDmnd = 44] = "openDmnd", t3[t3.dotDmnd = 45] = "dotDmnd", t3[t3.plaid = 46] = "plaid", t3[t3.sphere = 47] = "sphere", t3[t3.weave = 48] = "weave", t3[t3.divot = 49] = "divot", t3[t3.shingle = 50] = "shingle", t3[t3.wave = 51] = "wave", t3[t3.trellis = 52] = "trellis", t3[t3.zigZag = 53] = "zigZag";
        })(a = n2.ST_PresetPatternVal || (n2.ST_PresetPatternVal = {})), (function(t3) {
          t3[t3.rnd = 0] = "rnd", t3[t3.sq = 1] = "sq", t3[t3.flat = 2] = "flat";
        })(u = n2.ST_LineCap || (n2.ST_LineCap = {})), (function(t3) {
          t3[t3.email = 0] = "email", t3[t3.screen = 1] = "screen", t3[t3.print = 2] = "print", t3[t3.hqprint = 3] = "hqprint", t3[t3.none = 4] = "none";
        })(s = n2.ST_BlipCompression || (n2.ST_BlipCompression = {})), (function(t3) {
          t3[t3.shape = 0] = "shape", t3[t3.circle = 1] = "circle", t3[t3.rect = 2] = "rect";
        })(c = n2.ST_PathShadeType || (n2.ST_PathShadeType = {})), (function(t3) {
          t3[t3.legacyMatte = 0] = "legacyMatte", t3[t3.legacyPlastic = 1] = "legacyPlastic", t3[t3.legacyMetal = 2] = "legacyMetal", t3[t3.legacyWireframe = 3] = "legacyWireframe", t3[t3.matte = 4] = "matte", t3[t3.plastic = 5] = "plastic", t3[t3.metal = 6] = "metal", t3[t3.warmMatte = 7] = "warmMatte", t3[t3.translucentPowder = 8] = "translucentPowder", t3[t3.powder = 9] = "powder", t3[t3.dkEdge = 10] = "dkEdge", t3[t3.softEdge = 11] = "softEdge", t3[t3.clear = 12] = "clear", t3[t3.flat = 13] = "flat", t3[t3.softmetal = 14] = "softmetal";
        })(f = n2.ST_PresetMaterialType || (n2.ST_PresetMaterialType = {})), (function(t3) {
          t3[t3.relaxedInset = 0] = "relaxedInset", t3[t3.circle = 1] = "circle", t3[t3.slope = 2] = "slope", t3[t3.cross = 3] = "cross", t3[t3.angle = 4] = "angle", t3[t3.softRound = 5] = "softRound", t3[t3.convex = 6] = "convex", t3[t3.coolSlant = 7] = "coolSlant", t3[t3.divot = 8] = "divot", t3[t3.riblet = 9] = "riblet", t3[t3.hardEdge = 10] = "hardEdge", t3[t3.artDeco = 11] = "artDeco";
        })(l = n2.ST_BevelPresetType || (n2.ST_BevelPresetType = {})), (function(t3) {
          t3[t3.SolidColorFillProperties = 0] = "SolidColorFillProperties", t3[t3.PatternFillProperties = 1] = "PatternFillProperties", t3[t3.GradientFillProperties = 2] = "GradientFillProperties", t3[t3.BlipFillProperties = 3] = "BlipFillProperties", t3[t3.GroupFillProperties = 4] = "GroupFillProperties", t3[t3.NoFillProperties = 5] = "NoFillProperties";
        })(h = n2.ColorFillType || (n2.ColorFillType = {})), (function(t3) {
          t3[t3.major = 0] = "major", t3[t3.minor = 1] = "minor", t3[t3.none = 2] = "none";
        })(d = n2.ST_FontCollectionIndex || (n2.ST_FontCollectionIndex = {})), (function(t3) {
          t3[t3.aliceBlue = 0] = "aliceBlue", t3[t3.antiqueWhite = 1] = "antiqueWhite", t3[t3.aqua = 2] = "aqua", t3[t3.aquamarine = 3] = "aquamarine", t3[t3.azure = 4] = "azure", t3[t3.beige = 5] = "beige", t3[t3.bisque = 6] = "bisque", t3[t3.black = 7] = "black", t3[t3.blanchedAlmond = 8] = "blanchedAlmond", t3[t3.blue = 9] = "blue", t3[t3.blueViolet = 10] = "blueViolet", t3[t3.brown = 11] = "brown", t3[t3.burlyWood = 12] = "burlyWood", t3[t3.cadetBlue = 13] = "cadetBlue", t3[t3.chartreuse = 14] = "chartreuse", t3[t3.chocolate = 15] = "chocolate", t3[t3.coral = 16] = "coral", t3[t3.cornflowerBlue = 17] = "cornflowerBlue", t3[t3.cornsilk = 18] = "cornsilk", t3[t3.crimson = 19] = "crimson", t3[t3.cyan = 20] = "cyan", t3[t3.darkBlue = 21] = "darkBlue", t3[t3.darkCyan = 22] = "darkCyan", t3[t3.darkGoldenrod = 23] = "darkGoldenrod", t3[t3.darkGray = 24] = "darkGray", t3[t3.darkGreen = 25] = "darkGreen", t3[t3.darkGrey = 26] = "darkGrey", t3[t3.darkKhaki = 27] = "darkKhaki", t3[t3.darkMagenta = 28] = "darkMagenta", t3[t3.darkOliveGreen = 29] = "darkOliveGreen", t3[t3.darkOrange = 30] = "darkOrange", t3[t3.darkOrchid = 31] = "darkOrchid", t3[t3.darkRed = 32] = "darkRed", t3[t3.darkSalmon = 33] = "darkSalmon", t3[t3.darkSeaGreen = 34] = "darkSeaGreen", t3[t3.darkSlateBlue = 35] = "darkSlateBlue", t3[t3.darkSlateGray = 36] = "darkSlateGray", t3[t3.darkSlateGrey = 37] = "darkSlateGrey", t3[t3.darkTurquoise = 38] = "darkTurquoise", t3[t3.darkViolet = 39] = "darkViolet", t3[t3.deepPink = 40] = "deepPink", t3[t3.deepSkyBlue = 41] = "deepSkyBlue", t3[t3.dimGray = 42] = "dimGray", t3[t3.dimGrey = 43] = "dimGrey", t3[t3.dkBlue = 44] = "dkBlue", t3[t3.dkCyan = 45] = "dkCyan", t3[t3.dkGoldenrod = 46] = "dkGoldenrod", t3[t3.dkGray = 47] = "dkGray", t3[t3.dkGreen = 48] = "dkGreen", t3[t3.dkGrey = 49] = "dkGrey", t3[t3.dkKhaki = 50] = "dkKhaki", t3[t3.dkMagenta = 51] = "dkMagenta", t3[t3.dkOliveGreen = 52] = "dkOliveGreen", t3[t3.dkOrange = 53] = "dkOrange", t3[t3.dkOrchid = 54] = "dkOrchid", t3[t3.dkRed = 55] = "dkRed", t3[t3.dkSalmon = 56] = "dkSalmon", t3[t3.dkSeaGreen = 57] = "dkSeaGreen", t3[t3.dkSlateBlue = 58] = "dkSlateBlue", t3[t3.dkSlateGray = 59] = "dkSlateGray", t3[t3.dkSlateGrey = 60] = "dkSlateGrey", t3[t3.dkTurquoise = 61] = "dkTurquoise", t3[t3.dkViolet = 62] = "dkViolet", t3[t3.dodgerBlue = 63] = "dodgerBlue", t3[t3.firebrick = 64] = "firebrick", t3[t3.floralWhite = 65] = "floralWhite", t3[t3.forestGreen = 66] = "forestGreen", t3[t3.fuchsia = 67] = "fuchsia", t3[t3.gainsboro = 68] = "gainsboro", t3[t3.ghostWhite = 69] = "ghostWhite", t3[t3.gold = 70] = "gold", t3[t3.goldenrod = 71] = "goldenrod", t3[t3.gray = 72] = "gray", t3[t3.green = 73] = "green", t3[t3.greenYellow = 74] = "greenYellow", t3[t3.grey = 75] = "grey", t3[t3.honeydew = 76] = "honeydew", t3[t3.hotPink = 77] = "hotPink", t3[t3.indianRed = 78] = "indianRed", t3[t3.indigo = 79] = "indigo", t3[t3.ivory = 80] = "ivory", t3[t3.khaki = 81] = "khaki", t3[t3.lavender = 82] = "lavender", t3[t3.lavenderBlush = 83] = "lavenderBlush", t3[t3.lawnGreen = 84] = "lawnGreen", t3[t3.lemonChiffon = 85] = "lemonChiffon", t3[t3.lightBlue = 86] = "lightBlue", t3[t3.lightCoral = 87] = "lightCoral", t3[t3.lightCyan = 88] = "lightCyan", t3[t3.lightGoldenrodYellow = 89] = "lightGoldenrodYellow", t3[t3.lightGray = 90] = "lightGray", t3[t3.lightGreen = 91] = "lightGreen", t3[t3.lightGrey = 92] = "lightGrey", t3[t3.lightPink = 93] = "lightPink", t3[t3.lightSalmon = 94] = "lightSalmon", t3[t3.lightSeaGreen = 95] = "lightSeaGreen", t3[t3.lightSkyBlue = 96] = "lightSkyBlue", t3[t3.lightSlateGray = 97] = "lightSlateGray", t3[t3.lightSlateGrey = 98] = "lightSlateGrey", t3[t3.lightSteelBlue = 99] = "lightSteelBlue", t3[t3.lightYellow = 100] = "lightYellow", t3[t3.lime = 101] = "lime", t3[t3.limeGreen = 102] = "limeGreen", t3[t3.linen = 103] = "linen", t3[t3.ltBlue = 104] = "ltBlue", t3[t3.ltCoral = 105] = "ltCoral", t3[t3.ltCyan = 106] = "ltCyan", t3[t3.ltGoldenrodYellow = 107] = "ltGoldenrodYellow", t3[t3.ltGray = 108] = "ltGray", t3[t3.ltGreen = 109] = "ltGreen", t3[t3.ltGrey = 110] = "ltGrey", t3[t3.ltPink = 111] = "ltPink", t3[t3.ltSalmon = 112] = "ltSalmon", t3[t3.ltSeaGreen = 113] = "ltSeaGreen", t3[t3.ltSkyBlue = 114] = "ltSkyBlue", t3[t3.ltSlateGray = 115] = "ltSlateGray", t3[t3.ltSlateGrey = 116] = "ltSlateGrey", t3[t3.ltSteelBlue = 117] = "ltSteelBlue", t3[t3.ltYellow = 118] = "ltYellow", t3[t3.magenta = 119] = "magenta", t3[t3.maroon = 120] = "maroon", t3[t3.medAquamarine = 121] = "medAquamarine", t3[t3.medBlue = 122] = "medBlue", t3[t3.mediumAquamarine = 123] = "mediumAquamarine", t3[t3.mediumBlue = 124] = "mediumBlue", t3[t3.mediumOrchid = 125] = "mediumOrchid", t3[t3.mediumPurple = 126] = "mediumPurple", t3[t3.mediumSeaGreen = 127] = "mediumSeaGreen", t3[t3.mediumSlateBlue = 128] = "mediumSlateBlue", t3[t3.mediumSpringGreen = 129] = "mediumSpringGreen", t3[t3.mediumTurquoise = 130] = "mediumTurquoise", t3[t3.mediumVioletRed = 131] = "mediumVioletRed", t3[t3.medOrchid = 132] = "medOrchid", t3[t3.medPurple = 133] = "medPurple", t3[t3.medSeaGreen = 134] = "medSeaGreen", t3[t3.medSlateBlue = 135] = "medSlateBlue", t3[t3.medSpringGreen = 136] = "medSpringGreen", t3[t3.medTurquoise = 137] = "medTurquoise", t3[t3.medVioletRed = 138] = "medVioletRed", t3[t3.midnightBlue = 139] = "midnightBlue", t3[t3.mintCream = 140] = "mintCream", t3[t3.mistyRose = 141] = "mistyRose", t3[t3.moccasin = 142] = "moccasin", t3[t3.navajoWhite = 143] = "navajoWhite", t3[t3.navy = 144] = "navy", t3[t3.oldLace = 145] = "oldLace", t3[t3.olive = 146] = "olive", t3[t3.oliveDrab = 147] = "oliveDrab", t3[t3.orange = 148] = "orange", t3[t3.orangeRed = 149] = "orangeRed", t3[t3.orchid = 150] = "orchid", t3[t3.paleGoldenrod = 151] = "paleGoldenrod", t3[t3.paleGreen = 152] = "paleGreen", t3[t3.paleTurquoise = 153] = "paleTurquoise", t3[t3.paleVioletRed = 154] = "paleVioletRed", t3[t3.papayaWhip = 155] = "papayaWhip", t3[t3.peachPuff = 156] = "peachPuff", t3[t3.peru = 157] = "peru", t3[t3.pink = 158] = "pink", t3[t3.plum = 159] = "plum", t3[t3.powderBlue = 160] = "powderBlue", t3[t3.purple = 161] = "purple", t3[t3.red = 162] = "red", t3[t3.rosyBrown = 163] = "rosyBrown", t3[t3.royalBlue = 164] = "royalBlue", t3[t3.saddleBrown = 165] = "saddleBrown", t3[t3.salmon = 166] = "salmon", t3[t3.sandyBrown = 167] = "sandyBrown", t3[t3.seaGreen = 168] = "seaGreen", t3[t3.seaShell = 169] = "seaShell", t3[t3.sienna = 170] = "sienna", t3[t3.silver = 171] = "silver", t3[t3.skyBlue = 172] = "skyBlue", t3[t3.slateBlue = 173] = "slateBlue", t3[t3.slateGray = 174] = "slateGray", t3[t3.slateGrey = 175] = "slateGrey", t3[t3.snow = 176] = "snow", t3[t3.springGreen = 177] = "springGreen", t3[t3.steelBlue = 178] = "steelBlue", t3[t3.tan = 179] = "tan", t3[t3.teal = 180] = "teal", t3[t3.thistle = 181] = "thistle", t3[t3.tomato = 182] = "tomato", t3[t3.turquoise = 183] = "turquoise", t3[t3.violet = 184] = "violet", t3[t3.wheat = 185] = "wheat", t3[t3.white = 186] = "white", t3[t3.whiteSmoke = 187] = "whiteSmoke", t3[t3.yellow = 188] = "yellow", t3[t3.yellowGreen = 189] = "yellowGreen";
        })(v = n2.ST_PresetColorVal || (n2.ST_PresetColorVal = {})), (function(t3) {
          t3[t3.RegularTextRun = 0] = "RegularTextRun", t3[t3.TextLineBreak = 1] = "TextLineBreak", t3[t3.TextField = 2] = "TextField";
        })(p = n2.TextParagraphElementType || (n2.TextParagraphElementType = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Font = 1] = "Font", t3[t3.Fill = 2] = "Fill", t3[t3.Border = 4] = "Border", t3[t3.Alignment = 8] = "Alignment", t3[t3.Protection = 16] = "Protection", t3[t3.FormatCode = 32] = "FormatCode", t3[t3.All = 63] = "All";
        })(g = n2.StyleDataFlag || (n2.StyleDataFlag = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.x = 1] = "x", t3[t3.y = 2] = "y", t3[t3.xy = 3] = "xy";
        })(m = n2.ST_TileFlipMode || (n2.ST_TileFlipMode = {})), (function(t3) {
          t3[t3.over = 0] = "over", t3[t3.mult = 1] = "mult", t3[t3.screen = 2] = "screen", t3[t3.darken = 3] = "darken", t3[t3.lighten = 4] = "lighten";
        })(b = n2.ST_BlendMode || (n2.ST_BlendMode = {})), (function(t3) {
          t3[t3.legacyFlat1 = 0] = "legacyFlat1", t3[t3.legacyFlat2 = 1] = "legacyFlat2", t3[t3.legacyFlat3 = 2] = "legacyFlat3", t3[t3.legacyFlat4 = 3] = "legacyFlat4", t3[t3.legacyNormal1 = 4] = "legacyNormal1", t3[t3.legacyNormal2 = 5] = "legacyNormal2", t3[t3.legacyNormal3 = 6] = "legacyNormal3", t3[t3.legacyNormal4 = 7] = "legacyNormal4", t3[t3.legacyHarsh1 = 8] = "legacyHarsh1", t3[t3.legacyHarsh2 = 9] = "legacyHarsh2", t3[t3.legacyHarsh3 = 10] = "legacyHarsh3", t3[t3.legacyHarsh4 = 11] = "legacyHarsh4", t3[t3.threePt = 12] = "threePt", t3[t3.balanced = 13] = "balanced", t3[t3.soft = 14] = "soft", t3[t3.harsh = 15] = "harsh", t3[t3.flood = 16] = "flood", t3[t3.contrasting = 17] = "contrasting", t3[t3.morning = 18] = "morning", t3[t3.sunrise = 19] = "sunrise", t3[t3.sunset = 20] = "sunset", t3[t3.chilly = 21] = "chilly", t3[t3.freezing = 22] = "freezing", t3[t3.flat = 23] = "flat", t3[t3.twoPt = 24] = "twoPt", t3[t3.glow = 25] = "glow", t3[t3.brightRoom = 26] = "brightRoom";
        })(y = n2.ST_LightRigType || (n2.ST_LightRigType = {})), (function(t3) {
          t3[t3.sib = 0] = "sib", t3[t3.tree = 1] = "tree";
        })(w = n2.ST_EffectContainerType || (n2.ST_EffectContainerType = {})), (function(t3) {
          t3[t3.shdw1 = 0] = "shdw1", t3[t3.shdw2 = 1] = "shdw2", t3[t3.shdw3 = 2] = "shdw3", t3[t3.shdw4 = 3] = "shdw4", t3[t3.shdw5 = 4] = "shdw5", t3[t3.shdw6 = 5] = "shdw6", t3[t3.shdw7 = 6] = "shdw7", t3[t3.shdw8 = 7] = "shdw8", t3[t3.shdw9 = 8] = "shdw9", t3[t3.shdw10 = 9] = "shdw10", t3[t3.shdw11 = 10] = "shdw11", t3[t3.shdw12 = 11] = "shdw12", t3[t3.shdw13 = 12] = "shdw13", t3[t3.shdw14 = 13] = "shdw14", t3[t3.shdw15 = 14] = "shdw15", t3[t3.shdw16 = 15] = "shdw16", t3[t3.shdw17 = 16] = "shdw17", t3[t3.shdw18 = 17] = "shdw18", t3[t3.shdw19 = 18] = "shdw19", t3[t3.shdw20 = 19] = "shdw20";
        })(M = n2.ST_PresetShadowVal || (n2.ST_PresetShadowVal = {})), (function(t3) {
          t3[t3.auto = 0] = "auto", t3[t3.t = 1] = "t", t3[t3.ctr = 2] = "ctr", t3[t3.base = 3] = "base", t3[t3.b = 4] = "b";
        })(C = n2.ST_TextFontAlignType || (n2.ST_TextFontAlignType = {})), (function(t3) {
          t3[t3.l = 0] = "l", t3[t3.ctr = 1] = "ctr", t3[t3.r = 2] = "r", t3[t3.just = 3] = "just", t3[t3.justLow = 4] = "justLow", t3[t3.dist = 5] = "dist", t3[t3.thaiDist = 6] = "thaiDist";
        })(S = n2.ST_TextAlignType || (n2.ST_TextAlignType = {})), (function(t3) {
          t3[t3.alphaLcParenBoth = 0] = "alphaLcParenBoth", t3[t3.alphaUcParenBoth = 1] = "alphaUcParenBoth", t3[t3.alphaLcParenR = 2] = "alphaLcParenR", t3[t3.alphaUcParenR = 3] = "alphaUcParenR", t3[t3.alphaLcPeriod = 4] = "alphaLcPeriod", t3[t3.alphaUcPeriod = 5] = "alphaUcPeriod", t3[t3.arabicParenBoth = 6] = "arabicParenBoth", t3[t3.arabicParenR = 7] = "arabicParenR", t3[t3.arabicPeriod = 8] = "arabicPeriod", t3[t3.arabicPlain = 9] = "arabicPlain", t3[t3.romanLcParenBoth = 10] = "romanLcParenBoth", t3[t3.romanUcParenBoth = 11] = "romanUcParenBoth", t3[t3.romanLcParenR = 12] = "romanLcParenR", t3[t3.romanUcParenR = 13] = "romanUcParenR", t3[t3.romanLcPeriod = 14] = "romanLcPeriod", t3[t3.romanUcPeriod = 15] = "romanUcPeriod", t3[t3.circleNumDbPlain = 16] = "circleNumDbPlain", t3[t3.circleNumWdBlackPlain = 17] = "circleNumWdBlackPlain", t3[t3.circleNumWdWhitePlain = 18] = "circleNumWdWhitePlain", t3[t3.arabicDbPeriod = 19] = "arabicDbPeriod", t3[t3.arabicDbPlain = 20] = "arabicDbPlain", t3[t3.ea1ChsPeriod = 21] = "ea1ChsPeriod", t3[t3.ea1ChsPlain = 22] = "ea1ChsPlain", t3[t3.ea1ChtPeriod = 23] = "ea1ChtPeriod", t3[t3.ea1ChtPlain = 24] = "ea1ChtPlain", t3[t3.ea1JpnChsDbPeriod = 25] = "ea1JpnChsDbPeriod", t3[t3.ea1JpnKorPlain = 26] = "ea1JpnKorPlain", t3[t3.ea1JpnKorPeriod = 27] = "ea1JpnKorPeriod", t3[t3.arabic1Minus = 28] = "arabic1Minus", t3[t3.arabic2Minus = 29] = "arabic2Minus", t3[t3.hebrew2Minus = 30] = "hebrew2Minus", t3[t3.thaiAlphaPeriod = 31] = "thaiAlphaPeriod", t3[t3.thaiAlphaParenR = 32] = "thaiAlphaParenR", t3[t3.thaiAlphaParenBoth = 33] = "thaiAlphaParenBoth", t3[t3.thaiNumPeriod = 34] = "thaiNumPeriod", t3[t3.thaiNumParenR = 35] = "thaiNumParenR", t3[t3.thaiNumParenBoth = 36] = "thaiNumParenBoth", t3[t3.hindiAlphaPeriod = 37] = "hindiAlphaPeriod", t3[t3.hindiNumPeriod = 38] = "hindiNumPeriod", t3[t3.hindiNumParenR = 39] = "hindiNumParenR", t3[t3.hindiAlpha1Period = 40] = "hindiAlpha1Period";
        })(T = n2.ST_TextAutonumberScheme || (n2.ST_TextAutonumberScheme = {})), (function(t3) {
          t3[t3.overflow = 0] = "overflow", t3[t3.ellipsis = 1] = "ellipsis", t3[t3.clip = 2] = "clip";
        })(x = n2.ST_TextVertOverflowType || (n2.ST_TextVertOverflowType = {})), (function(t3) {
          t3[t3.horz = 0] = "horz", t3[t3.vert = 1] = "vert", t3[t3.vert270 = 2] = "vert270", t3[t3.wordArtVert = 3] = "wordArtVert", t3[t3.eaVert = 4] = "eaVert", t3[t3.mongolianVert = 5] = "mongolianVert", t3[t3.wordArtVertRtl = 6] = "wordArtVertRtl";
        })(A = n2.ST_TextVerticalType || (n2.ST_TextVerticalType = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.square = 1] = "square";
        })(I = n2.ST_TextWrappingType || (n2.ST_TextWrappingType = {})), (function(t3) {
          t3[t3.textNoShape = 0] = "textNoShape", t3[t3.textPlain = 1] = "textPlain", t3[t3.textStop = 2] = "textStop", t3[t3.textTriangle = 3] = "textTriangle", t3[t3.textTriangleInverted = 4] = "textTriangleInverted", t3[t3.textChevron = 5] = "textChevron", t3[t3.textChevronInverted = 6] = "textChevronInverted", t3[t3.textRingInside = 7] = "textRingInside", t3[t3.textRingOutside = 8] = "textRingOutside", t3[t3.textArchUp = 9] = "textArchUp", t3[t3.textArchDown = 10] = "textArchDown", t3[t3.textCircle = 11] = "textCircle", t3[t3.textButton = 12] = "textButton", t3[t3.textArchUpPour = 13] = "textArchUpPour", t3[t3.textArchDownPour = 14] = "textArchDownPour", t3[t3.textCirclePour = 15] = "textCirclePour", t3[t3.textButtonPour = 16] = "textButtonPour", t3[t3.textCurveUp = 17] = "textCurveUp", t3[t3.textCurveDown = 18] = "textCurveDown", t3[t3.textCanUp = 19] = "textCanUp", t3[t3.textCanDown = 20] = "textCanDown", t3[t3.textWave1 = 21] = "textWave1", t3[t3.textWave2 = 22] = "textWave2", t3[t3.textDoubleWave1 = 23] = "textDoubleWave1", t3[t3.textWave4 = 24] = "textWave4", t3[t3.textInflate = 25] = "textInflate", t3[t3.textDeflate = 26] = "textDeflate", t3[t3.textInflateBottom = 27] = "textInflateBottom", t3[t3.textDeflateBottom = 28] = "textDeflateBottom", t3[t3.textInflateTop = 29] = "textInflateTop", t3[t3.textDeflateTop = 30] = "textDeflateTop", t3[t3.textDeflateInflate = 31] = "textDeflateInflate", t3[t3.textDeflateInflateDeflate = 32] = "textDeflateInflateDeflate", t3[t3.textFadeRight = 33] = "textFadeRight", t3[t3.textFadeLeft = 34] = "textFadeLeft", t3[t3.textFadeUp = 35] = "textFadeUp", t3[t3.textFadeDown = 36] = "textFadeDown", t3[t3.textSlantUp = 37] = "textSlantUp", t3[t3.textSlantDown = 38] = "textSlantDown", t3[t3.textCascadeUp = 39] = "textCascadeUp", t3[t3.textCascadeDown = 40] = "textCascadeDown";
        })(k = n2.ST_TextShapeType || (n2.ST_TextShapeType = {})), (function(t3) {
          t3[t3.l = 0] = "l", t3[t3.ctr = 1] = "ctr", t3[t3.r = 2] = "r", t3[t3.dec = 3] = "dec";
        })(N = n2.ST_TextTabAlignType || (n2.ST_TextTabAlignType = {})), (function(t3) {
          t3[t3.tl = 0] = "tl", t3[t3.t = 1] = "t", t3[t3.tr = 2] = "tr", t3[t3.l = 3] = "l", t3[t3.r = 4] = "r", t3[t3.bl = 5] = "bl", t3[t3.b = 6] = "b", t3[t3.br = 7] = "br";
        })(j = n2.ST_LightRigDirection || (n2.ST_LightRigDirection = {})), (function(t3) {
          t3[t3.tl = 0] = "tl", t3[t3.t = 1] = "t", t3[t3.tr = 2] = "tr", t3[t3.l = 3] = "l", t3[t3.ctr = 4] = "ctr", t3[t3.r = 5] = "r", t3[t3.bl = 6] = "bl", t3[t3.b = 7] = "b", t3[t3.br = 8] = "br";
        })(D = n2.ST_RectAlignment || (n2.ST_RectAlignment = {})), (function(t3) {
          t3[t3.scrollBar = 0] = "scrollBar", t3[t3.background = 1] = "background", t3[t3.activeCaption = 2] = "activeCaption", t3[t3.inactiveCaption = 3] = "inactiveCaption", t3[t3.menu = 4] = "menu", t3[t3.window = 5] = "window", t3[t3.windowFrame = 6] = "windowFrame", t3[t3.menuText = 7] = "menuText", t3[t3.windowText = 8] = "windowText", t3[t3.captionText = 9] = "captionText", t3[t3.activeBorder = 10] = "activeBorder", t3[t3.inactiveBorder = 11] = "inactiveBorder", t3[t3.appWorkspace = 12] = "appWorkspace", t3[t3.highlight = 13] = "highlight", t3[t3.highlightText = 14] = "highlightText", t3[t3.btnFace = 15] = "btnFace", t3[t3.btnShadow = 16] = "btnShadow", t3[t3.grayText = 17] = "grayText", t3[t3.btnText = 18] = "btnText", t3[t3.inactiveCaptionText = 19] = "inactiveCaptionText", t3[t3.btnHighlight = 20] = "btnHighlight", t3[t3.Item3dDkShadow = 21] = "Item3dDkShadow", t3[t3.Item3dLight = 22] = "Item3dLight", t3[t3.infoText = 23] = "infoText", t3[t3.infoBk = 24] = "infoBk", t3[t3.hotLight = 25] = "hotLight", t3[t3.gradientActiveCaption = 26] = "gradientActiveCaption", t3[t3.gradientInactiveCaption = 27] = "gradientInactiveCaption", t3[t3.menuHighlight = 28] = "menuHighlight", t3[t3.menuBar = 29] = "menuBar";
        })(_ = n2.ST_SystemColorVal || (n2.ST_SystemColorVal = {})), (function(t3) {
          t3[t3.bg1 = 0] = "bg1", t3[t3.tx1 = 1] = "tx1", t3[t3.bg2 = 2] = "bg2", t3[t3.tx2 = 3] = "tx2", t3[t3.accent1 = 4] = "accent1", t3[t3.accent2 = 5] = "accent2", t3[t3.accent3 = 6] = "accent3", t3[t3.accent4 = 7] = "accent4", t3[t3.accent5 = 8] = "accent5", t3[t3.accent6 = 9] = "accent6", t3[t3.hlink = 10] = "hlink", t3[t3.folHlink = 11] = "folHlink", t3[t3.phClr = 12] = "phClr", t3[t3.dk1 = 13] = "dk1", t3[t3.lt1 = 14] = "lt1", t3[t3.dk2 = 15] = "dk2", t3[t3.lt2 = 16] = "lt2";
        })(O = n2.ST_SchemeColorVal || (n2.ST_SchemeColorVal = {})), (function(t3) {
          t3[t3.sng = 0] = "sng", t3[t3.dbl = 1] = "dbl", t3[t3.thickThin = 2] = "thickThin", t3[t3.thinThick = 3] = "thinThick", t3[t3.tri = 4] = "tri";
        })(E = n2.ST_CompoundLine || (n2.ST_CompoundLine = {})), (function(t3) {
          t3[t3.None = -4142] = "None", t3[t3.LT1 = 0] = "LT1", t3[t3.DK1 = 1] = "DK1", t3[t3.LT2 = 2] = "LT2", t3[t3.DK2 = 3] = "DK2", t3[t3.Accent1 = 4] = "Accent1", t3[t3.Accent2 = 5] = "Accent2", t3[t3.Accent3 = 6] = "Accent3", t3[t3.Accent4 = 7] = "Accent4", t3[t3.Accent5 = 8] = "Accent5", t3[t3.Accent6 = 9] = "Accent6", t3[t3.Hlink = 10] = "Hlink", t3[t3.FolHlink = 11] = "FolHlink";
        })(R = n2.ColorSchemeIndex || (n2.ColorSchemeIndex = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Major = 1] = "Major", t3[t3.Minor = 2] = "Minor";
        })(L = n2.ThemeFont || (n2.ThemeFont = {})), (function(t3) {
          t3[t3.Empty = 0] = "Empty", t3[t3.Row = 1] = "Row", t3[t3.Column = 2] = "Column", t3[t3.RowIsRelative = 4] = "RowIsRelative", t3[t3.ColumnIsRelative = 8] = "ColumnIsRelative", t3[t3.LastRowIsRelative = 16] = "LastRowIsRelative", t3[t3.LastColumnIsRelative = 32] = "LastColumnIsRelative", t3[t3.Range = 64] = "Range", t3[t3.Error = 128] = "Error";
        })(F = n2.ReferenceKind || (n2.ReferenceKind = {})), (function(t3) {
          t3[t3.t = 0] = "t", t3[t3.ctr = 1] = "ctr", t3[t3.b = 2] = "b", t3[t3.just = 3] = "just", t3[t3.dist = 4] = "dist";
        })(B = n2.ST_TextAnchoringType || (n2.ST_TextAnchoringType = {})), (function(t3) {
          t3[t3.overflow = 0] = "overflow", t3[t3.clip = 1] = "clip";
        })(P = n2.ST_TextHorzOverflowType || (n2.ST_TextHorzOverflowType = {})), (function(t3) {
          t3[t3.Shape = 0] = "Shape", t3[t3.Chart = 1] = "Chart", t3[t3.Picture = 2] = "Picture", t3[t3.Connector = 3] = "Connector", t3[t3.GroupShape = 4] = "GroupShape";
        })(G = n2.DrawingType || (n2.DrawingType = {})), (function(t3) {
          t3[t3.TextureTopLeft = 0] = "TextureTopLeft", t3[t3.TextureTop = 1] = "TextureTop", t3[t3.TextureTopRight = 2] = "TextureTopRight", t3[t3.TextureLeft = 3] = "TextureLeft", t3[t3.TextureCenter = 4] = "TextureCenter", t3[t3.TextureRight = 5] = "TextureRight", t3[t3.TextureBottomLeft = 6] = "TextureBottomLeft", t3[t3.TextureBottom = 7] = "TextureBottom", t3[t3.TextureBottomRight = 8] = "TextureBottomRight";
        })(U = n2.TextureAlignment || (n2.TextureAlignment = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Horizontal = 1] = "Horizontal", t3[t3.Vertical = 2] = "Vertical", t3[t3.Both = 3] = "Both";
        })(H = n2.TextureFlipType || (n2.TextureFlipType = {})), (function(t3) {
          t3[t3.TextureTypeNone = 0] = "TextureTypeNone", t3[t3.TexturePreset = 1] = "TexturePreset", t3[t3.TextureUserDefined = 2] = "TextureUserDefined";
        })(V = n2.TextureType || (n2.TextureType = {})), (function(t3) {
          t3[t3.Solid = 0] = "Solid", t3[t3.Patterned = 1] = "Patterned", t3[t3.Gradient = 2] = "Gradient", t3[t3.Textured = 3] = "Textured", t3[t3.Background = 4] = "Background", t3[t3.Picture = 5] = "Picture", t3[t3.Group = 6] = "Group";
        })(z = n2.FillType || (n2.FillType = {})), (function(t3) {
          t3[t3.GradientEarlySunset = 0] = "GradientEarlySunset", t3[t3.GradientLateSunset = 1] = "GradientLateSunset", t3[t3.GradientNightfall = 2] = "GradientNightfall", t3[t3.GradientDaybreak = 3] = "GradientDaybreak", t3[t3.GradientHorizon = 4] = "GradientHorizon", t3[t3.GradientDesert = 5] = "GradientDesert", t3[t3.GradientOcean = 6] = "GradientOcean", t3[t3.GradientCalmWater = 7] = "GradientCalmWater", t3[t3.GradientFire = 8] = "GradientFire", t3[t3.GradientFog = 9] = "GradientFog", t3[t3.GradientMoss = 10] = "GradientMoss", t3[t3.GradientPeacock = 11] = "GradientPeacock", t3[t3.GradientWheat = 12] = "GradientWheat", t3[t3.GradientParchment = 13] = "GradientParchment", t3[t3.GradientMahogany = 14] = "GradientMahogany", t3[t3.GradientRainbow = 15] = "GradientRainbow", t3[t3.GradientRainbowII = 16] = "GradientRainbowII", t3[t3.GradientGold = 17] = "GradientGold", t3[t3.GradientGoldII = 18] = "GradientGoldII", t3[t3.GradientBrass = 19] = "GradientBrass", t3[t3.GradientChrome = 20] = "GradientChrome", t3[t3.GradientChromeII = 21] = "GradientChromeII", t3[t3.GradientSilver = 22] = "GradientSilver", t3[t3.GradientSapphire = 23] = "GradientSapphire";
        })(Y = n2.PresetGradientType || (n2.PresetGradientType = {})), (function(t3) {
          t3[t3.TexturePapyrus = 0] = "TexturePapyrus", t3[t3.TextureCanvas = 1] = "TextureCanvas", t3[t3.TextureDenim = 2] = "TextureDenim", t3[t3.TextureWovenMat = 3] = "TextureWovenMat", t3[t3.TextureWaterDroplets = 4] = "TextureWaterDroplets", t3[t3.TexturePaperBag = 5] = "TexturePaperBag", t3[t3.TextureFishFossil = 6] = "TextureFishFossil", t3[t3.TextureSand = 7] = "TextureSand", t3[t3.TextureGreenMarble = 8] = "TextureGreenMarble", t3[t3.TextureWhiteMarble = 9] = "TextureWhiteMarble", t3[t3.TextureBrownMarble = 10] = "TextureBrownMarble", t3[t3.TextureGranite = 11] = "TextureGranite", t3[t3.TextureNewsprint = 12] = "TextureNewsprint", t3[t3.TextureRecycledPaper = 13] = "TextureRecycledPaper", t3[t3.TextureParchment = 14] = "TextureParchment", t3[t3.TextureStationery = 15] = "TextureStationery", t3[t3.TextureBlueTissuePaper = 16] = "TextureBlueTissuePaper", t3[t3.TexturePinkTissuePaper = 17] = "TexturePinkTissuePaper", t3[t3.TexturePurpleMesh = 18] = "TexturePurpleMesh", t3[t3.TextureBouquet = 19] = "TextureBouquet", t3[t3.TextureCork = 20] = "TextureCork", t3[t3.TextureWalnut = 21] = "TextureWalnut", t3[t3.TextureOak = 22] = "TextureOak", t3[t3.TextureMediumWood = 23] = "TextureMediumWood";
        })(Z = n2.PresetTexture || (n2.PresetTexture = {})), (function(t3) {
          t3[t3.GradientColorNone = 0] = "GradientColorNone", t3[t3.GradientOneColor = 1] = "GradientOneColor", t3[t3.GradientTwoColors = 2] = "GradientTwoColors", t3[t3.GradientPresetColors = 3] = "GradientPresetColors", t3[t3.GradientMultiColor = 4] = "GradientMultiColor";
        })(W = n2.GradientColorType || (n2.GradientColorType = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.dottedPercent5 = 1] = "dottedPercent5", t3[t3.dottedPercent10 = 2] = "dottedPercent10", t3[t3.dottedPercent20 = 3] = "dottedPercent20", t3[t3.dottedPercent25 = 4] = "dottedPercent25", t3[t3.dottedPercent30 = 5] = "dottedPercent30", t3[t3.dottedPercent40 = 6] = "dottedPercent40", t3[t3.dottedPercent50 = 7] = "dottedPercent50", t3[t3.dottedPercent60 = 8] = "dottedPercent60", t3[t3.dottedPercent70 = 9] = "dottedPercent70", t3[t3.dottedPercent75 = 10] = "dottedPercent75", t3[t3.dottedPercent80 = 11] = "dottedPercent80", t3[t3.dottedPercent90 = 12] = "dottedPercent90", t3[t3.darkHorizontal = 13] = "darkHorizontal", t3[t3.darkVertical = 14] = "darkVertical", t3[t3.darkDownwardDiagonal = 15] = "darkDownwardDiagonal", t3[t3.darkUpwardDiagonal = 16] = "darkUpwardDiagonal", t3[t3.smallCheckerBoard = 17] = "smallCheckerBoard", t3[t3.trellis = 18] = "trellis", t3[t3.lightHorizontal = 19] = "lightHorizontal", t3[t3.lightVertical = 20] = "lightVertical", t3[t3.lightDownwardDiagonal = 21] = "lightDownwardDiagonal", t3[t3.lightUpwardDiagonal = 22] = "lightUpwardDiagonal", t3[t3.smallGrid = 23] = "smallGrid", t3[t3.dottedDiamond = 24] = "dottedDiamond", t3[t3.wideDownwardDiagonal = 25] = "wideDownwardDiagonal", t3[t3.wideUpwardDiagonal = 26] = "wideUpwardDiagonal", t3[t3.dashedUpwardDiagonal = 27] = "dashedUpwardDiagonal", t3[t3.dashedDownwardDiagonal = 28] = "dashedDownwardDiagonal", t3[t3.narrowVertical = 29] = "narrowVertical", t3[t3.narrowHorizontal = 30] = "narrowHorizontal", t3[t3.dashedVertical = 31] = "dashedVertical", t3[t3.dashedHorizontal = 32] = "dashedHorizontal", t3[t3.largeConfetti = 33] = "largeConfetti", t3[t3.largeGrid = 34] = "largeGrid", t3[t3.horizontalBrick = 35] = "horizontalBrick", t3[t3.largeCheckerBoard = 36] = "largeCheckerBoard", t3[t3.smallConfetti = 37] = "smallConfetti", t3[t3.zigZag = 38] = "zigZag", t3[t3.solidDiamond = 39] = "solidDiamond", t3[t3.diagonalBrick = 40] = "diagonalBrick", t3[t3.outlinedDiamond = 41] = "outlinedDiamond", t3[t3.plaid = 42] = "plaid", t3[t3.sphere = 43] = "sphere", t3[t3.weave = 44] = "weave", t3[t3.dottedGrid = 45] = "dottedGrid", t3[t3.divot = 46] = "divot", t3[t3.shingle = 47] = "shingle", t3[t3.wave = 48] = "wave";
        })(Q = n2.PatternType || (n2.PatternType = {})), (function(t3) {
          t3[t3.GradientHorizontal = 0] = "GradientHorizontal", t3[t3.GradientVertical = 1] = "GradientVertical", t3[t3.GradientDiagonalUp = 2] = "GradientDiagonalUp", t3[t3.GradientDiagonalDown = 3] = "GradientDiagonalDown", t3[t3.GradientFromCorner = 4] = "GradientFromCorner", t3[t3.GradientFromTitle = 5] = "GradientFromTitle", t3[t3.GradientFromCenter = 6] = "GradientFromCenter", t3[t3.GradientTopSpotlight = 7] = "GradientTopSpotlight", t3[t3.GradientBottomSpotlight = 8] = "GradientBottomSpotlight";
        })(K = n2.GradientStyle || (n2.GradientStyle = {})), (function(t3) {
          t3[t3.short = 0] = "short", t3[t3.medium = 1] = "medium", t3[t3.long = 2] = "long";
        })(J = n2.ArrowheadLength || (n2.ArrowheadLength = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.triangle = 1] = "triangle", t3[t3.stealth = 2] = "stealth", t3[t3.diamond = 3] = "diamond", t3[t3.oval = 4] = "oval", t3[t3.open = 5] = "open";
        })(X = n2.ArrowheadStyle || (n2.ArrowheadStyle = {})), (function(t3) {
          t3[t3.narrow = 0] = "narrow", t3[t3.medium = 1] = "medium", t3[t3.wide = 2] = "wide";
        })(q = n2.ArrowheadWidth || (n2.ArrowheadWidth = {})), (function(t3) {
          t3[t3.solid = 0] = "solid", t3[t3.squareDot = 1] = "squareDot", t3[t3.dash = 2] = "dash", t3[t3.longDash = 3] = "longDash", t3[t3.dashDot = 4] = "dashDot", t3[t3.longDashDot = 5] = "longDashDot", t3[t3.longDashDotDot = 6] = "longDashDotDot", t3[t3.sysDash = 7] = "sysDash", t3[t3.sysDot = 8] = "sysDot", t3[t3.sysDashDot = 9] = "sysDashDot", t3[t3.dashDotDot = 10] = "dashDotDot", t3[t3.roundDot = 11] = "roundDot";
        })($ = n2.LineDashStyle || (n2.LineDashStyle = {})), (function(t3) {
          t3[t3.flat = 2] = "flat", t3[t3.square = 1] = "square", t3[t3.round = 0] = "round";
        })(tt = n2.LineCapStyle || (n2.LineCapStyle = {})), (function(t3) {
          t3[t3.round = 0] = "round", t3[t3.miter = 1] = "miter", t3[t3.bevel = 2] = "bevel";
        })(nt = n2.LineJoinStyle || (n2.LineJoinStyle = {})), (function(t3) {
          t3[t3.LineSingle = 0] = "LineSingle", t3[t3.LineThinThin = 1] = "LineThinThin", t3[t3.LineThinThick = 2] = "LineThinThick", t3[t3.LineThickThin = 3] = "LineThickThin", t3[t3.LineThickBetweenThin = 4] = "LineThickBetweenThin";
        })(et = n2.LineStyle || (n2.LineStyle = {})), (function(t3) {
          t3[t3.PictureAutomatic = 0] = "PictureAutomatic", t3[t3.PictureGrayscale = 1] = "PictureGrayscale", t3[t3.PictureBlackAndWhite = 2] = "PictureBlackAndWhite", t3[t3.PictureWatermark = 3] = "PictureWatermark";
        })(it = n2.PictureColorType || (n2.PictureColorType = {})), (function(t3) {
          t3[t3.Shadow1 = 0] = "Shadow1", t3[t3.Shadow2 = 1] = "Shadow2", t3[t3.Shadow3 = 2] = "Shadow3", t3[t3.Shadow4 = 3] = "Shadow4", t3[t3.Shadow5 = 4] = "Shadow5", t3[t3.Shadow6 = 5] = "Shadow6", t3[t3.Shadow7 = 6] = "Shadow7", t3[t3.Shadow8 = 7] = "Shadow8", t3[t3.Shadow9 = 8] = "Shadow9", t3[t3.Shadow10 = 9] = "Shadow10", t3[t3.Shadow11 = 10] = "Shadow11", t3[t3.Shadow12 = 11] = "Shadow12", t3[t3.Shadow13 = 12] = "Shadow13", t3[t3.Shadow14 = 13] = "Shadow14", t3[t3.Shadow15 = 14] = "Shadow15", t3[t3.Shadow16 = 15] = "Shadow16", t3[t3.Shadow17 = 16] = "Shadow17", t3[t3.Shadow18 = 17] = "Shadow18", t3[t3.Shadow19 = 18] = "Shadow19", t3[t3.Shadow20 = 19] = "Shadow20", t3[t3.Shadow21 = 20] = "Shadow21", t3[t3.Shadow22 = 21] = "Shadow22", t3[t3.Shadow23 = 22] = "Shadow23", t3[t3.Shadow24 = 23] = "Shadow24", t3[t3.Shadow25 = 24] = "Shadow25", t3[t3.Shadow26 = 25] = "Shadow26", t3[t3.Shadow27 = 26] = "Shadow27", t3[t3.Shadow28 = 27] = "Shadow28", t3[t3.Shadow29 = 28] = "Shadow29", t3[t3.Shadow30 = 29] = "Shadow30", t3[t3.Shadow31 = 30] = "Shadow31", t3[t3.Shadow32 = 31] = "Shadow32", t3[t3.Shadow33 = 32] = "Shadow33", t3[t3.Shadow34 = 33] = "Shadow34", t3[t3.Shadow35 = 34] = "Shadow35", t3[t3.Shadow36 = 35] = "Shadow36", t3[t3.Shadow37 = 36] = "Shadow37", t3[t3.Shadow38 = 37] = "Shadow38", t3[t3.Shadow39 = 38] = "Shadow39", t3[t3.Shadow40 = 39] = "Shadow40", t3[t3.Shadow41 = 40] = "Shadow41", t3[t3.Shadow42 = 41] = "Shadow42", t3[t3.Shadow43 = 42] = "Shadow43";
        })(rt = n2.ShadowType || (n2.ShadowType = {})), (function(t3) {
          t3[t3.ShadowStyleInnerShadow = 0] = "ShadowStyleInnerShadow", t3[t3.ShadowStyleOuterShadow = 1] = "ShadowStyleOuterShadow";
        })(ot = n2.ShadowStyle || (n2.ShadowStyle = {})), (function(t3) {
          t3[t3.SoftEdgeTypeNone = 0] = "SoftEdgeTypeNone", t3[t3.SoftEdgeType1 = 1] = "SoftEdgeType1", t3[t3.SoftEdgeType2 = 2] = "SoftEdgeType2", t3[t3.SoftEdgeType3 = 3] = "SoftEdgeType3", t3[t3.SoftEdgeType4 = 4] = "SoftEdgeType4", t3[t3.SoftEdgeType5 = 5] = "SoftEdgeType5", t3[t3.SoftEdgeType6 = 6] = "SoftEdgeType6";
        })(at = n2.SoftEdgeType || (n2.SoftEdgeType = {})), (function(t3) {
          t3[t3.CameraLegacyObliqueTopLeft = 0] = "CameraLegacyObliqueTopLeft", t3[t3.CameraLegacyObliqueTop = 1] = "CameraLegacyObliqueTop", t3[t3.CameraLegacyObliqueTopRight = 2] = "CameraLegacyObliqueTopRight", t3[t3.CameraLegacyObliqueLeft = 3] = "CameraLegacyObliqueLeft", t3[t3.CameraLegacyObliqueFront = 4] = "CameraLegacyObliqueFront", t3[t3.CameraLegacyObliqueRight = 5] = "CameraLegacyObliqueRight", t3[t3.CameraLegacyObliqueBottomLeft = 6] = "CameraLegacyObliqueBottomLeft", t3[t3.CameraLegacyObliqueBottom = 7] = "CameraLegacyObliqueBottom", t3[t3.CameraLegacyObliqueBottomRight = 8] = "CameraLegacyObliqueBottomRight", t3[t3.CameraLegacyPerspectiveTopLeft = 9] = "CameraLegacyPerspectiveTopLeft", t3[t3.CameraLegacyPerspectiveTop = 10] = "CameraLegacyPerspectiveTop", t3[t3.CameraLegacyPerspectiveTopRight = 11] = "CameraLegacyPerspectiveTopRight", t3[t3.CameraLegacyPerspectiveLeft = 12] = "CameraLegacyPerspectiveLeft", t3[t3.CameraLegacyPerspectiveFront = 13] = "CameraLegacyPerspectiveFront", t3[t3.CameraLegacyPerspectiveRight = 14] = "CameraLegacyPerspectiveRight", t3[t3.CameraLegacyPerspectiveBottomLeft = 15] = "CameraLegacyPerspectiveBottomLeft", t3[t3.CameraLegacyPerspectiveBottom = 16] = "CameraLegacyPerspectiveBottom", t3[t3.CameraLegacyPerspectiveBottomRight = 17] = "CameraLegacyPerspectiveBottomRight", t3[t3.CameraOrthographicFront = 18] = "CameraOrthographicFront", t3[t3.CameraIsometricTopUp = 19] = "CameraIsometricTopUp", t3[t3.CameraIsometricTopDown = 20] = "CameraIsometricTopDown", t3[t3.CameraIsometricBottomUp = 21] = "CameraIsometricBottomUp", t3[t3.CameraIsometricBottomDown = 22] = "CameraIsometricBottomDown", t3[t3.CameraIsometricLeftUp = 23] = "CameraIsometricLeftUp", t3[t3.CameraIsometricLeftDown = 24] = "CameraIsometricLeftDown", t3[t3.CameraIsometricRightUp = 25] = "CameraIsometricRightUp", t3[t3.CameraIsometricRightDown = 26] = "CameraIsometricRightDown", t3[t3.CameraIsometricOffAxis1Left = 27] = "CameraIsometricOffAxis1Left", t3[t3.CameraIsometricOffAxis1Right = 28] = "CameraIsometricOffAxis1Right", t3[t3.CameraIsometricOffAxis1Top = 29] = "CameraIsometricOffAxis1Top", t3[t3.CameraIsometricOffAxis2Left = 30] = "CameraIsometricOffAxis2Left", t3[t3.CameraIsometricOffAxis2Right = 31] = "CameraIsometricOffAxis2Right", t3[t3.CameraIsometricOffAxis2Top = 32] = "CameraIsometricOffAxis2Top", t3[t3.CameraIsometricOffAxis3Left = 33] = "CameraIsometricOffAxis3Left", t3[t3.CameraIsometricOffAxis3Right = 34] = "CameraIsometricOffAxis3Right", t3[t3.CameraIsometricOffAxis3Bottom = 35] = "CameraIsometricOffAxis3Bottom", t3[t3.CameraIsometricOffAxis4Left = 36] = "CameraIsometricOffAxis4Left", t3[t3.CameraIsometricOffAxis4Right = 37] = "CameraIsometricOffAxis4Right", t3[t3.CameraIsometricOffAxis4Bottom = 38] = "CameraIsometricOffAxis4Bottom", t3[t3.CameraObliqueTopLeft = 39] = "CameraObliqueTopLeft", t3[t3.CameraObliqueTop = 40] = "CameraObliqueTop", t3[t3.CameraObliqueTopRight = 41] = "CameraObliqueTopRight", t3[t3.CameraObliqueLeft = 42] = "CameraObliqueLeft", t3[t3.CameraObliqueRight = 43] = "CameraObliqueRight", t3[t3.CameraObliqueBottomLeft = 44] = "CameraObliqueBottomLeft", t3[t3.CameraObliqueBottom = 45] = "CameraObliqueBottom", t3[t3.CameraObliqueBottomRight = 46] = "CameraObliqueBottomRight", t3[t3.CameraPerspectiveFront = 47] = "CameraPerspectiveFront", t3[t3.CameraPerspectiveLeft = 48] = "CameraPerspectiveLeft", t3[t3.CameraPerspectiveRight = 49] = "CameraPerspectiveRight", t3[t3.CameraPerspectiveAbove = 50] = "CameraPerspectiveAbove", t3[t3.CameraPerspectiveBelow = 51] = "CameraPerspectiveBelow", t3[t3.CameraPerspectiveAboveLeftFacing = 52] = "CameraPerspectiveAboveLeftFacing", t3[t3.CameraPerspectiveAboveRightFacing = 53] = "CameraPerspectiveAboveRightFacing", t3[t3.CameraPerspectiveContrastingLeftFacing = 54] = "CameraPerspectiveContrastingLeftFacing", t3[t3.CameraPerspectiveContrastingRightFacing = 55] = "CameraPerspectiveContrastingRightFacing", t3[t3.CameraPerspectiveHeroicLeftFacing = 56] = "CameraPerspectiveHeroicLeftFacing", t3[t3.CameraPerspectiveHeroicRightFacing = 57] = "CameraPerspectiveHeroicRightFacing", t3[t3.CameraPerspectiveHeroicExtremeLeftFacing = 58] = "CameraPerspectiveHeroicExtremeLeftFacing", t3[t3.CameraPerspectiveHeroicExtremeRightFacing = 59] = "CameraPerspectiveHeroicExtremeRightFacing", t3[t3.CameraPerspectiveRelaxed = 60] = "CameraPerspectiveRelaxed", t3[t3.CameraPerspectiveRelaxedModerately = 61] = "CameraPerspectiveRelaxedModerately", t3[t3.PresetCameraNone = 62] = "PresetCameraNone";
        })(ut = n2.PresetCamera || (n2.PresetCamera = {})), (function(t3) {
          t3[t3.LightingTopLeft = 0] = "LightingTopLeft", t3[t3.LightingTop = 1] = "LightingTop", t3[t3.LightingTopRight = 2] = "LightingTopRight", t3[t3.LightingLeft = 3] = "LightingLeft", t3[t3.LightingNone = 4] = "LightingNone", t3[t3.LightingRight = 5] = "LightingRight", t3[t3.LightingBottomLeft = 6] = "LightingBottomLeft", t3[t3.LightingBottom = 7] = "LightingBottom", t3[t3.LightingBottomRight = 8] = "LightingBottomRight";
        })(st = n2.PresetLightingDirection || (n2.PresetLightingDirection = {})), (function(t3) {
          t3[t3.LightRigLegacyFlat1 = 0] = "LightRigLegacyFlat1", t3[t3.LightRigLegacyFlat2 = 1] = "LightRigLegacyFlat2", t3[t3.LightRigLegacyFlat3 = 2] = "LightRigLegacyFlat3", t3[t3.LightRigLegacyFlat4 = 3] = "LightRigLegacyFlat4", t3[t3.LightRigLegacyNormal1 = 4] = "LightRigLegacyNormal1", t3[t3.LightRigLegacyNormal2 = 5] = "LightRigLegacyNormal2", t3[t3.LightRigLegacyNormal3 = 6] = "LightRigLegacyNormal3", t3[t3.LightRigLegacyNormal4 = 7] = "LightRigLegacyNormal4", t3[t3.LightRigLegacyHarsh1 = 8] = "LightRigLegacyHarsh1", t3[t3.LightRigLegacyHarsh2 = 9] = "LightRigLegacyHarsh2", t3[t3.LightRigLegacyHarsh3 = 10] = "LightRigLegacyHarsh3", t3[t3.LightRigLegacyHarsh4 = 11] = "LightRigLegacyHarsh4", t3[t3.LightRigThreePoint = 12] = "LightRigThreePoint", t3[t3.LightRigBalanced = 13] = "LightRigBalanced", t3[t3.LightRigSoft = 14] = "LightRigSoft", t3[t3.LightRigHarsh = 15] = "LightRigHarsh", t3[t3.LightRigFlood = 16] = "LightRigFlood", t3[t3.LightRigContrasting = 17] = "LightRigContrasting", t3[t3.LightRigMorning = 18] = "LightRigMorning", t3[t3.LightRigSunrise = 19] = "LightRigSunrise", t3[t3.LightRigSunset = 20] = "LightRigSunset", t3[t3.LightRigChilly = 21] = "LightRigChilly", t3[t3.LightRigFreezing = 22] = "LightRigFreezing", t3[t3.LightRigFlat = 23] = "LightRigFlat", t3[t3.LightRigTwoPoint = 24] = "LightRigTwoPoint", t3[t3.LightRigGlow = 25] = "LightRigGlow", t3[t3.LightRigBrightRoom = 26] = "LightRigBrightRoom";
        })(ct = n2.LightRigType || (n2.LightRigType = {})), (function(t3) {
          t3[t3.tl = 0] = "tl", t3[t3.t = 1] = "t", t3[t3.tr = 2] = "tr", t3[t3.l = 3] = "l", t3[t3.r = 4] = "r", t3[t3.bl = 5] = "bl", t3[t3.b = 6] = "b", t3[t3.br = 7] = "br";
        })(ft = n2.LightRigDirection || (n2.LightRigDirection = {})), (function(t3) {
          t3[t3.solid = 0] = "solid", t3[t3.dot = 1] = "dot", t3[t3.dash = 2] = "dash", t3[t3.lgDash = 3] = "lgDash", t3[t3.dashDot = 4] = "dashDot", t3[t3.lgDashDot = 5] = "lgDashDot", t3[t3.lgDashDotDot = 6] = "lgDashDotDot", t3[t3.sysDash = 7] = "sysDash", t3[t3.sysDot = 8] = "sysDot", t3[t3.sysDashDot = 9] = "sysDashDot", t3[t3.sysDashDotDot = 10] = "sysDashDotDot";
        })(lt = n2.LineType || (n2.LineType = {})), (function(t3) {
          t3[t3.Baseline = 0] = "Baseline", t3[t3.Superscript = 1] = "Superscript", t3[t3.Subscript = 2] = "Subscript";
        })(ht = n2.VertAlignType || (n2.VertAlignType = {})), (function(t3) {
          t3[t3.MoveAndSize = 0] = "MoveAndSize", t3[t3.Move = 1] = "Move", t3[t3.FreeFloating = 2] = "FreeFloating";
        })(dt = n2.Placement || (n2.Placement = {})), (function(t3) {
          t3[t3.PNG = 0] = "PNG", t3[t3.JPG = 1] = "JPG", t3[t3.JPEG = 2] = "JPEG", t3[t3.EMF = 3] = "EMF";
        })(vt = n2.ImageType || (n2.ImageType = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Automatic = 1] = "Automatic", t3[t3.RGB = 2] = "RGB", t3[t3.Theme = 3] = "Theme";
        })(pt = n2.SolidColorType || (n2.SolidColorType = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Words = 1] = "Words", t3[t3.Single = 2] = "Single", t3[t3.Double = 3] = "Double", t3[t3.Heavy = 4] = "Heavy", t3[t3.Dotted = 5] = "Dotted", t3[t3.DottedHeavy = 6] = "DottedHeavy", t3[t3.Dash = 7] = "Dash", t3[t3.DashHeavy = 8] = "DashHeavy", t3[t3.DashLong = 9] = "DashLong", t3[t3.DashLongHeavy = 10] = "DashLongHeavy", t3[t3.DotDash = 11] = "DotDash", t3[t3.DotDashHeavy = 12] = "DotDashHeavy", t3[t3.DotDotDash = 13] = "DotDotDash", t3[t3.DotDotDashHeavy = 14] = "DotDotDashHeavy", t3[t3.Wavy = 15] = "Wavy", t3[t3.WavyHeavy = 16] = "WavyHeavy", t3[t3.WavyDouble = 17] = "WavyDouble";
        })(gt = n2.TextUnderlineType || (n2.TextUnderlineType = {})), (function(t3) {
          t3[t3.ReflectionTypeNone = 0] = "ReflectionTypeNone", t3[t3.ReflectionType1 = 1] = "ReflectionType1", t3[t3.ReflectionType2 = 2] = "ReflectionType2", t3[t3.ReflectionType3 = 3] = "ReflectionType3", t3[t3.ReflectionType4 = 4] = "ReflectionType4", t3[t3.ReflectionType5 = 5] = "ReflectionType5", t3[t3.ReflectionType6 = 6] = "ReflectionType6", t3[t3.ReflectionType7 = 7] = "ReflectionType7", t3[t3.ReflectionType8 = 8] = "ReflectionType8", t3[t3.ReflectionType9 = 9] = "ReflectionType9";
        })(mt = n2.ReflectionType || (n2.ReflectionType = {})), (function(t3) {
          t3[t3.CellRange = 0] = "CellRange", t3[t3.SeriesName = 1] = "SeriesName", t3[t3.CategoryName = 2] = "CategoryName", t3[t3.Value = 3] = "Value", t3[t3.XValue = 4] = "XValue", t3[t3.YValue = 5] = "YValue", t3[t3.BubbleSize = 6] = "BubbleSize", t3[t3.Percentage = 7] = "Percentage", t3[t3.TxLink = 8] = "TxLink";
        })(bt = n2.TextFieldType || (n2.TextFieldType = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Single = 1] = "Single", t3[t3.Double = 2] = "Double", t3[t3.SingleAccounting = 3] = "SingleAccounting", t3[t3.DoubleAccounting = 4] = "DoubleAccounting";
        })(yt = n2.UnderlineType || (n2.UnderlineType = {})), (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Auto = 1] = "Auto", t3[t3.RGB = 2] = "RGB", t3[t3.Index = 3] = "Index", t3[t3.Theme = 4] = "Theme";
        })(wt = n2.ColorType || (n2.ColorType = {})), (function(t3) {
          t3[t3.legacyObliqueTopLeft = 0] = "legacyObliqueTopLeft", t3[t3.legacyObliqueTop = 1] = "legacyObliqueTop", t3[t3.legacyObliqueTopRight = 2] = "legacyObliqueTopRight", t3[t3.legacyObliqueLeft = 3] = "legacyObliqueLeft", t3[t3.legacyObliqueFront = 4] = "legacyObliqueFront", t3[t3.legacyObliqueRight = 5] = "legacyObliqueRight", t3[t3.legacyObliqueBottomLeft = 6] = "legacyObliqueBottomLeft", t3[t3.legacyObliqueBottom = 7] = "legacyObliqueBottom", t3[t3.legacyObliqueBottomRight = 8] = "legacyObliqueBottomRight", t3[t3.legacyPerspectiveTopLeft = 9] = "legacyPerspectiveTopLeft", t3[t3.legacyPerspectiveTop = 10] = "legacyPerspectiveTop", t3[t3.legacyPerspectiveTopRight = 11] = "legacyPerspectiveTopRight", t3[t3.legacyPerspectiveLeft = 12] = "legacyPerspectiveLeft", t3[t3.legacyPerspectiveFront = 13] = "legacyPerspectiveFront", t3[t3.legacyPerspectiveRight = 14] = "legacyPerspectiveRight", t3[t3.legacyPerspectiveBottomLeft = 15] = "legacyPerspectiveBottomLeft", t3[t3.legacyPerspectiveBottom = 16] = "legacyPerspectiveBottom", t3[t3.legacyPerspectiveBottomRight = 17] = "legacyPerspectiveBottomRight", t3[t3.orthographicFront = 18] = "orthographicFront", t3[t3.isometricTopUp = 19] = "isometricTopUp", t3[t3.isometricTopDown = 20] = "isometricTopDown", t3[t3.isometricBottomUp = 21] = "isometricBottomUp", t3[t3.isometricBottomDown = 22] = "isometricBottomDown", t3[t3.isometricLeftUp = 23] = "isometricLeftUp", t3[t3.isometricLeftDown = 24] = "isometricLeftDown", t3[t3.isometricRightUp = 25] = "isometricRightUp", t3[t3.isometricRightDown = 26] = "isometricRightDown", t3[t3.isometricOffAxis1Left = 27] = "isometricOffAxis1Left", t3[t3.isometricOffAxis1Right = 28] = "isometricOffAxis1Right", t3[t3.isometricOffAxis1Top = 29] = "isometricOffAxis1Top", t3[t3.isometricOffAxis2Left = 30] = "isometricOffAxis2Left", t3[t3.isometricOffAxis2Right = 31] = "isometricOffAxis2Right", t3[t3.isometricOffAxis2Top = 32] = "isometricOffAxis2Top", t3[t3.isometricOffAxis3Left = 33] = "isometricOffAxis3Left", t3[t3.isometricOffAxis3Right = 34] = "isometricOffAxis3Right", t3[t3.isometricOffAxis3Bottom = 35] = "isometricOffAxis3Bottom", t3[t3.isometricOffAxis4Left = 36] = "isometricOffAxis4Left", t3[t3.isometricOffAxis4Right = 37] = "isometricOffAxis4Right", t3[t3.isometricOffAxis4Bottom = 38] = "isometricOffAxis4Bottom", t3[t3.obliqueTopLeft = 39] = "obliqueTopLeft", t3[t3.obliqueTop = 40] = "obliqueTop", t3[t3.obliqueTopRight = 41] = "obliqueTopRight", t3[t3.obliqueLeft = 42] = "obliqueLeft", t3[t3.obliqueRight = 43] = "obliqueRight", t3[t3.obliqueBottomLeft = 44] = "obliqueBottomLeft", t3[t3.obliqueBottom = 45] = "obliqueBottom", t3[t3.obliqueBottomRight = 46] = "obliqueBottomRight", t3[t3.perspectiveFront = 47] = "perspectiveFront", t3[t3.perspectiveLeft = 48] = "perspectiveLeft", t3[t3.perspectiveRight = 49] = "perspectiveRight", t3[t3.perspectiveAbove = 50] = "perspectiveAbove", t3[t3.perspectiveBelow = 51] = "perspectiveBelow", t3[t3.perspectiveAboveLeftFacing = 52] = "perspectiveAboveLeftFacing", t3[t3.perspectiveAboveRightFacing = 53] = "perspectiveAboveRightFacing", t3[t3.perspectiveContrastingLeftFacing = 54] = "perspectiveContrastingLeftFacing", t3[t3.perspectiveContrastingRightFacing = 55] = "perspectiveContrastingRightFacing", t3[t3.perspectiveHeroicLeftFacing = 56] = "perspectiveHeroicLeftFacing", t3[t3.perspectiveHeroicRightFacing = 57] = "perspectiveHeroicRightFacing", t3[t3.perspectiveHeroicExtremeLeftFacing = 58] = "perspectiveHeroicExtremeLeftFacing", t3[t3.perspectiveHeroicExtremeRightFacing = 59] = "perspectiveHeroicExtremeRightFacing", t3[t3.perspectiveRelaxed = 60] = "perspectiveRelaxed", t3[t3.perspectiveRelaxedModeratel = 61] = "perspectiveRelaxedModeratel";
        })(Mt = n2.ST_PresetCameraType || (n2.ST_PresetCameraType = {})), (function(t3) {
          t3[t3.solid = 0] = "solid", t3[t3.dot = 1] = "dot", t3[t3.dash = 2] = "dash", t3[t3.lgDash = 3] = "lgDash", t3[t3.dashDot = 4] = "dashDot", t3[t3.lgDashDot = 5] = "lgDashDot", t3[t3.lgDashDotDot = 6] = "lgDashDotDot", t3[t3.sysDash = 7] = "sysDash", t3[t3.sysDot = 8] = "sysDot", t3[t3.sysDashDot = 9] = "sysDashDot", t3[t3.sysDashDotDot = 10] = "sysDashDotDot";
        })(Ct = n2.ST_PresetLineDashVal || (n2.ST_PresetLineDashVal = {})), (function(t3) {
          t3[t3.sm = 0] = "sm", t3[t3.med = 1] = "med", t3[t3.lg = 2] = "lg";
        })(St = n2.ST_LineEndWidth || (n2.ST_LineEndWidth = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.triangle = 1] = "triangle", t3[t3.stealth = 2] = "stealth", t3[t3.diamond = 3] = "diamond", t3[t3.oval = 4] = "oval", t3[t3.arrow = 5] = "arrow";
        })(Tt = n2.ST_LineEndType || (n2.ST_LineEndType = {})), (function(t3) {
          t3[t3.sm = 0] = "sm", t3[t3.med = 1] = "med", t3[t3.lg = 2] = "lg";
        })(xt = n2.ST_LineEndLength || (n2.ST_LineEndLength = {})), (function(t3) {
          t3[t3.twoCellAnchor = 0] = "twoCellAnchor", t3[t3.oneCellAnchor = 1] = "oneCellAnchor", t3[t3.absoluteAnchor = 2] = "absoluteAnchor", t3[t3.groupShapeAnchor = 3] = "groupShapeAnchor";
        })(At = n2.ST_AnchorType || (n2.ST_AnchorType = {})), (function(t3) {
          t3[t3.Color = 1] = "Color", t3[t3.PatternColor = 2] = "PatternColor", t3[t3.BeginArrowheadLength = 4] = "BeginArrowheadLength", t3[t3.BeginArrowheadStyle = 8] = "BeginArrowheadStyle", t3[t3.BeginArrowheadWidth = 16] = "BeginArrowheadWidth", t3[t3.DashStyle = 32] = "DashStyle", t3[t3.EndArrowheadLength = 64] = "EndArrowheadLength", t3[t3.EndArrowheadStyle = 128] = "EndArrowheadStyle", t3[t3.EndArrowheadWidth = 256] = "EndArrowheadWidth", t3[t3.InsetPen = 512] = "InsetPen", t3[t3.Pattern = 1024] = "Pattern", t3[t3.Style = 2048] = "Style", t3[t3.Transparency = 4096] = "Transparency", t3[t3.Visible = 8192] = "Visible", t3[t3.Weight = 16384] = "Weight", t3[t3.CapStyle = 32768] = "CapStyle", t3[t3.JoinStyle = 65536] = "JoinStyle";
        })(It = n2.LineFormatStates || (n2.LineFormatStates = {})), (function(t3) {
          t3[t3.Brightness = 1] = "Brightness", t3[t3.ObjectThemeColor = 2] = "ObjectThemeColor", t3[t3.RGB = 4] = "RGB", t3[t3.TintAndShade = 8] = "TintAndShade", t3[t3.ColorType = 16] = "ColorType", t3[t3.Transparency = 32] = "Transparency", t3[t3.SatMod = 64] = "SatMod";
        })(kt = n2.ColorFormatStates || (n2.ColorFormatStates = {})), (function(t3) {
          t3[t3.PictureShape = 0] = "PictureShape", t3[t3.PictureFill = 1] = "PictureFill", t3[t3.TextureFill = 2] = "TextureFill";
        })(Nt = n2.PictureFormatType || (n2.PictureFormatType = {})), (function(t3) {
          t3[t3.days = 0] = "days", t3[t3.months = 1] = "months", t3[t3.years = 2] = "years";
        })(jt = n2.ST_TimeUnit || (n2.ST_TimeUnit = {})), (function(t3) {
          t3[t3.BevelNone = 0] = "BevelNone", t3[t3.BevelRelaxedInset = 1] = "BevelRelaxedInset", t3[t3.BevelCircle = 2] = "BevelCircle", t3[t3.BevelSlope = 3] = "BevelSlope", t3[t3.BevelCross = 4] = "BevelCross", t3[t3.BevelAngle = 5] = "BevelAngle", t3[t3.BevelSoftRound = 6] = "BevelSoftRound", t3[t3.BevelConvex = 7] = "BevelConvex", t3[t3.BevelCoolSlant = 8] = "BevelCoolSlant", t3[t3.BevelDivot = 9] = "BevelDivot", t3[t3.BevelRiblet = 10] = "BevelRiblet", t3[t3.BevelHardEdge = 11] = "BevelHardEdge", t3[t3.BevelArtDeco = 12] = "BevelArtDeco";
        })(Dt = n2.BevelType || (n2.BevelType = {}));
      }, "./dist/plugins/floatingObject/drawing/effects.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m = this && this.qKr || (b = function(t3, n3) {
          return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, b(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          b(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), b;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.GlowFormat = n2.ReflectionFormat = n2.SoftEdgeFormat = n2.ShadowFormat = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/stateful.js"), r = e2("./dist/plugins/floatingObject/drawing/common.js"), o = e2("./dist/plugins/floatingObject/drawing/colorFormat.js"), a = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), (function(t3) {
          t3[t3.Blur = 1] = "Blur", t3[t3.Offset = 2] = "Offset", t3[t3.Size = 4] = "Size", t3[t3.Transparency = 8] = "Transparency", t3[t3.Type = 16] = "Type";
        })(u || (u = {})), s = r.UnitHelper.isNullOrUndefined, c = Math.floor, f = Math.sqrt, (function(t3) {
          t3[t3.Blur = 1] = "Blur", t3[t3.Obscured = 2] = "Obscured", t3[t3.OffsetX = 4] = "OffsetX", t3[t3.OffsetY = 8] = "OffsetY", t3[t3.RotateWithShape = 16] = "RotateWithShape", t3[t3.Size = 32] = "Size", t3[t3.Style = 64] = "Style", t3[t3.Transparency = 128] = "Transparency", t3[t3.Type = 256] = "Type", t3[t3.Visible = 512] = "Visible";
        })(l || (l = {})), h = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, e3) || this, o2 = i3;
            return o2.xft = 5, o2.Nft = false, o2.kft = r.DrawingConstants.DefaultOffset, o2.Dft = r.DrawingConstants.DefaultOffset, o2._ft = false, o2._size = 100, o2.aft = 0, o2.jft = false, o2.presetShadowOffset = -6, o2.DJ = n4, o2.sft = e3, i3;
          }
          return m(n3, t3), n3.prototype.OnStyleChange = function() {
            var t4 = this;
            t4.xft = 0, t4.kft = 0, t4.Dft = 0, t4._size = 100, t4.aft = 0, t4.UnDirty(l.Type), t4.Style === a.ShadowStyle.ShadowStyleInnerShadow ? t4._ft = false : t4.Style === a.ShadowStyle.ShadowStyleOuterShadow && (t4._ft = true);
          }, n3.prototype.OnTypeChange = function() {
            var t4 = this;
            t4.xft = 5, t4.kft = t4.presetShadowOffset, t4.Dft = t4.presetShadowOffset, t4._size = 100, t4.aft = 0.5, t4.UnDirty(l.Style);
          }, n3.prototype.GetDefaultColor = function() {
            var t4 = new o.ColorFormat(this.DJ, this.sft && this.sft.Oft);
            return t4.ColorType = a.SolidColorType.None, t4;
          }, n3.prototype.IncrementOffsetX = function(t4) {
            this.OffsetX += t4;
          }, n3.prototype.IncrementOffsetY = function(t4) {
            this.OffsetY += t4;
          }, n3.prototype.FromOOModel = function(t4) {
            this.cft = t4;
          }, n3.prototype.ToOOModel = function() {
            return this.cft;
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.Xnn = t4;
          }, n3.prototype.ToSJSOOModel = function() {
            return this.Xnn;
          }, n3.prototype.ToCT_PresetShadowEffect = function() {
            var t4 = this, n4 = t4.OffsetX, e3 = t4.OffsetY, i3 = f(n4 * n4 + e3 * e3), o2 = { dist: 0, dir: 0 };
            return o2.dist = i3, o2.dir = c(r.NumberExtension.GetTriangleAngle(n4, e3, i3) * r.DrawingConstants.PositiveFixedAngleConvert), o2.prst = t4.Type, t4.ToCT_Color(o2), o2;
          }, n3.prototype.ToCT_InnerShadowEffect = function() {
            var t4 = this, n4 = t4.OffsetX, e3 = t4.OffsetY, i3 = f(n4 * n4 + e3 * e3), o2 = { blurRad: 0, dist: 0, dir: 0 };
            return o2.blurRad = t4.Blur, o2.dist = i3, 0 === n4 && 0 === e3 || (o2.dir = c(r.NumberExtension.GetTriangleAngle(n4, e3, i3) * r.DrawingConstants.PositiveFixedAngleConvert)), o2.scrgbClr = t4.ToCT_ScRgbColor(), o2;
          }, n3.prototype.ToCT_OuterShadowEffect = function() {
            var t4 = this, n4 = t4.OffsetX, e3 = t4.OffsetY, i3 = f(n4 * n4 + e3 * e3), o2 = { blurRad: 0, dist: 0, dir: 0, sx: 1e5, sy: 1e5, kx: 0, ky: 0, algn: a.TextureAlignment.TextureBottom, rotWithShape: true };
            return o2.blurRad = t4.Blur, o2.dist = i3, 0 === n4 && 0 === e3 || (o2.dir = c(r.NumberExtension.GetTriangleAngle(n4, e3, i3) * r.DrawingConstants.PositiveFixedAngleConvert)), o2.rotWithShape = true === t4.RotateWithShape, o2.sx = c(t4.Size * r.DrawingConstants.RelativeRectConver), o2.sy = c(t4.Size * r.DrawingConstants.RelativeRectConver), o2.scrgbClr = t4.ToCT_ScRgbColor(), o2;
          }, n3.prototype.ToCT_Color = function(t4) {
            var n4, e3, i3, o2, u2, f2 = this;
            s(f2.Oft) || (f2.Oft.ColorType === a.SolidColorType.Theme ? ((o2 = {}).val = f2.Oft.ObjectThemeColor, 0 !== f2.Oft.Brightness && (n4 = c(1e5 * f2.Oft.Brightness), o2.lumMod = [n4], e3 = c(1e5 * (1 - f2.Oft.Brightness)), o2.lumOff = [e3]), f2.Oft.TintAndShade > 0 && f2.Oft.TintAndShade < 1 && (i3 = c(f2.Oft.TintAndShade * r.DrawingConstants.ShadeConver), o2.shade = [i3]), t4.schemeClr = o2) : f2.Oft.ColorType === a.SolidColorType.RGB && ((u2 = {}).val = [f2.Oft.RGB.R, f2.Oft.RGB.G, f2.Oft.RGB.B], 0 !== f2.Oft.Brightness && (n4 = c(1e5 * f2.Oft.Brightness), u2.lumMod = [n4], e3 = c(1e5 * (1 - f2.Oft.Brightness)), u2.lumOff = [e3]), 0 !== f2.Transparency && (i3 = c(f2.Transparency * r.DrawingConstants.PositiveFixedPercentageConvert), u2.alpha = [i3]), t4.srgbClr = u2));
          }, n3.prototype.ToCT_ScRgbColor = function() {
            var t4, n4 = {};
            return 0 !== this.Transparency && (t4 = c(this.Transparency * r.DrawingConstants.PositiveFixedPercentageConvert), n4.alpha = [t4]), n4;
          }, n3.prototype.SetState = function(n4, e3) {
            t3.prototype.SetState.call(this, n4, e3), n4 !== l.Blur && n4 !== l.OffsetX && n4 !== l.OffsetY && n4 !== l.RotateWithShape && n4 !== l.Size && n4 !== l.Transparency || this.GetState(l.Style) || (this.RN = a.ShadowStyle.ShadowStyleOuterShadow);
          }, Object.defineProperty(n3.prototype, "ForeColor", { get: function() {
            var t4 = this;
            return s(t4.Oft) && (t4.Oft = t4.GetDefaultColor()), t4.Oft;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Obscured", { get: function() {
            var t4 = this;
            return t4.GetState(l.Obscured) || s(t4.sft) ? t4.Nft : t4.sft.Obscured;
          }, set: function(t4) {
            this.Nft = t4, this.SetState(l.Obscured, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Blur", { get: function() {
            var t4 = this;
            return t4.GetState(l.Blur) || s(t4.sft) ? t4.xft : t4.sft.Blur;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Blue", { set: function(t4) {
            this.xft = t4, this.SetState(l.Blur, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "OffsetX", { get: function() {
            var t4 = this;
            return t4.GetState(l.OffsetX) || s(t4.sft) ? t4.kft : t4.sft.OffsetX;
          }, set: function(t4) {
            this.kft = t4, this.SetState(l.OffsetX, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "OffsetY", { get: function() {
            var t4 = this;
            return t4.GetState(l.OffsetY) || s(t4.sft) ? t4.Dft : t4.sft.OffsetY;
          }, set: function(t4) {
            this.Dft = t4, this.SetState(l.OffsetY, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RotateWithShape", { get: function() {
            var t4 = this;
            return t4.GetState(l.RotateWithShape) || s(t4.sft) ? t4._ft : t4.sft.RotateWithShape;
          }, set: function(t4) {
            var n4 = this;
            n4.Style === a.ShadowStyle.ShadowStyleInnerShadow || n4.GetState(l.Type) || (n4._ft = t4, n4.SetState(l.RotateWithShape, true));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Size", { get: function() {
            var t4 = this;
            return t4.GetState(l.Size) || s(t4.sft) ? t4._size : t4.sft.Size;
          }, set: function(t4) {
            this._size = t4, this.SetState(l.Size, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Style", { get: function() {
            var t4 = this;
            return t4.GetState(l.Style) || s(t4.sft) ? t4.RN : t4.sft.Style;
          }, set: function(t4) {
            var n4 = this;
            n4.Style !== t4 && n4.OnStyleChange(), n4.RN = t4, n4.SetState(l.Style, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            var t4 = this;
            return t4.GetState(l.Transparency) || s(t4.sft) ? t4.aft : t4.sft.Transparency;
          }, set: function(t4) {
            this.aft = t4, this.SetState(l.Transparency, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Type", { get: function() {
            var t4 = this;
            return t4.GetState(l.Type) || s(t4.sft) ? t4._type : t4.sft.Type;
          }, set: function(t4) {
            this._type = t4, this.SetState(l.Type, true), this.OnTypeChange();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Visible", { get: function() {
            var t4 = this;
            return t4.GetState(l.Visible) || s(t4.sft) ? t4.jft : t4.sft.Visible;
          }, set: function(t4) {
            var n4 = this;
            n4.jft = t4, n4.SetState(l.Visible, true), false === t4 || n4.GetState(l.Style) || (n4.RN = a.ShadowStyle.ShadowStyleOuterShadow);
          }, enumerable: false, configurable: true }), n3;
        })(i2.StatefulBase), n2.ShadowFormat = h, d = (function(t3) {
          function n3(n4) {
            return t3.call(this, n4) || this;
          }
          return m(n3, t3), n3.prototype.FromOOModel = function(t4) {
            this.cft = t4;
          }, n3.prototype.ToOOModel = function() {
            return this.cft;
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.Xnn = t4;
          }, n3.prototype.ToSJSOOModel = function() {
            return this.Xnn;
          }, n3;
        })(i2.StatefulBase), n2.SoftEdgeFormat = d, v = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, e3) || this, r2 = i3;
            return r2._size = 100, r2._type = a.ReflectionType.ReflectionType1, r2.presetShadowOffset = -6, r2.DJ = n4, r2.sft = e3, i3;
          }
          return m(n3, t3), Object.defineProperty(n3.prototype, "Blur", { get: function() {
            var t4 = this;
            return t4.GetState(u.Blur) || s(t4.sft) ? t4.xft : t4.sft.Blur;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Blue", { set: function(t4) {
            this.xft = t4, this.SetState(u.Blur, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Offset", { get: function() {
            var t4 = this;
            return t4.GetState(u.Offset) || s(t4.sft) ? t4.Xy : t4.sft.Offset;
          }, set: function(t4) {
            this.Xy = t4, this.SetState(u.Offset, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Size", { get: function() {
            var t4 = this;
            return t4.GetState(u.Size) || s(t4.sft) ? t4._size : t4.sft.Size;
          }, set: function(t4) {
            this._size = t4, this.SetState(u.Size, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            var t4 = this;
            return t4.GetState(u.Transparency) || s(t4.sft) ? t4.aft : t4.sft.Transparency;
          }, set: function(t4) {
            this.aft = t4, this.SetState(u.Transparency, true);
          }, enumerable: false, configurable: true }), n3.prototype.FromOOModel = function(t4) {
            this.cft = t4;
          }, n3.prototype.ToOOModel = function() {
            return this.cft;
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.Xnn = t4;
          }, n3.prototype.ToSJSOOModel = function() {
            return this.Xnn;
          }, n3.prototype.OnTypeChange = function() {
            var t4 = this;
            t4.xft = 5, t4.Xy = t4.presetShadowOffset, t4._size = 100, t4.aft = 0.5;
          }, n3;
        })(i2.StatefulBase), n2.ReflectionFormat = v, (function(t3) {
          t3[t3.Color = 1] = "Color", t3[t3.Radius = 2] = "Radius", t3[t3.Transparency = 4] = "Transparency";
        })(p || (p = {})), g = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, e3) || this;
            return i3.DJ = n4, i3.sft = e3, i3;
          }
          return m(n3, t3), Object.defineProperty(n3.prototype, "Color", { get: function() {
            var t4 = this;
            return s(t4._x) && (t4._x = t4.GetDefaultColor()), t4._x;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Radius", { get: function() {
            var t4 = this;
            return t4.GetState(p.Radius) || s(t4.sft) ? t4.radius : t4.sft.Radius;
          }, set: function(t4) {
            this.radius = t4, this.Dirty(p.Radius);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            var t4 = this;
            return t4.GetState(p.Transparency) || s(t4.sft) ? t4.aft : t4.sft.Transparency;
          }, set: function(t4) {
            this.aft = t4, this.Dirty(p.Transparency);
          }, enumerable: false, configurable: true }), n3.prototype.FromOOModel = function(t4) {
            this.cft = t4;
          }, n3.prototype.ToOOModel = function() {
            return this.cft;
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.Xnn = t4;
          }, n3.prototype.ToSJSOOModel = function() {
            return this.Xnn;
          }, n3.prototype.GetDefaultColor = function() {
            var t4 = new o.ColorFormat(this.DJ, this.sft && this.sft.Color);
            return t4.ColorType = a.SolidColorType.None, t4;
          }, n3.prototype.SetState = function(n4, e3) {
            var i3 = this;
            t3.prototype.SetState.call(i3, n4, e3), n4 !== p.Radius && n4 !== p.Transparency || i3._x && i3._x.ColorType === a.SolidColorType.None && (i3._x.ColorType = a.SolidColorType.RGB);
          }, n3.prototype.ToCT_Color = function(t4) {
            var n4, e3, i3, o2, u2, f2, l2, h2 = this, d2 = h2._x;
            s(d2) || (o2 = d2.ColorType, u2 = d2.Brightness, o2 === a.SolidColorType.Theme ? ((f2 = {}).val = d2.ObjectThemeColor, 0 !== u2 && (n4 = c(1e5 * u2), f2.lumMod = [n4], e3 = c(1e5 * (1 - u2)), f2.lumOff = [e3]), d2.TintAndShade > 0 && d2.TintAndShade < 1 && (i3 = c(d2.TintAndShade * r.DrawingConstants.ShadeConver), f2.shade = [i3]), t4.schemeClr = f2) : o2 === a.SolidColorType.RGB && ((l2 = {}).val = [d2.RGB.R, d2.RGB.G, d2.RGB.B], 0 !== u2 && (n4 = c(1e5 * u2), l2.lumMod = [n4], e3 = c(1e5 * (1 - u2)), l2.lumOff = [e3]), 0 !== h2.Transparency && (i3 = c(h2.Transparency * r.DrawingConstants.PositiveFixedPercentageConvert), l2.alpha = [i3]), t4.srgbClr = l2));
          }, n3;
        })(i2.StatefulBase), n2.GlowFormat = g;
      }, "./dist/plugins/floatingObject/drawing/fillFormat.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k = this && this.qKr || (N = function(t3, n3) {
          return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, N(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          N(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), N;
        function j(t3) {
          return { l: String(t3.l), t: String(t3.t), r: String(t3.r), b: String(t3.b) };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FillFormat = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/stateful.js"), r = e2("./dist/plugins/floatingObject/drawing/common.js"), o = e2("./dist/plugins/floatingObject/drawing/colorFormat.js"), a = e2("./dist/plugins/floatingObject/drawing/gradient.js"), u = e2("./dist/plugins/floatingObject/drawing/picture.js"), s = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), c = e2("Core"), f = c.ExcelHelper.pixelToEMU, l = r.DrawingConstants, h = l.PositiveFixedPercentageConvert, d = l.PositiveFixedAngleConvert, v = l.PositionConver, p = r.UnitHelper, g = r.pft, m = r.DrawingUtility, b = r.mft, y = c.NodeHelper.sr, w = c.NodeHelper.ur, M = p.isNullOrUndefined, C = null, S = void 0, T = Math.floor, x = "The specified value is out of range", (function(t3) {
          t3[t3.GradientStops = 1] = "GradientStops", t3[t3.GradientStyle = 2] = "GradientStyle", t3[t3.GradientColorType = 4] = "GradientColorType", t3[t3.Pattern = 8] = "Pattern", t3[t3.PresetTexture = 16] = "PresetTexture", t3[t3.RotateWithObject = 32] = "RotateWithObject", t3[t3.TextureAlignment = 64] = "TextureAlignment", t3[t3.TextureHorizontalScale = 128] = "TextureHorizontalScale", t3[t3.TextureName = 256] = "TextureName", t3[t3.TextureOffsetX = 512] = "TextureOffsetX", t3[t3.TextureOffsetY = 1024] = "TextureOffsetY", t3[t3.TextureTile = 2048] = "TextureTile", t3[t3.TextureType = 4096] = "TextureType", t3[t3.TextureVerticalScale = 8192] = "TextureVerticalScale", t3[t3.Transparency = 16384] = "Transparency", t3[t3.Type = 32768] = "Type", t3[t3.Visible = 65536] = "Visible", t3[t3.Color = 131072] = "Color", t3[t3.PatternColor = 262144] = "PatternColor", t3[t3.PictureFormat = 524288] = "PictureFormat", t3[t3.GradientDegree = 1048576] = "GradientDegree", t3[t3.GradientAngle = 2097152] = "GradientAngle", t3[t3.GradientVariant = 4194304] = "GradientVariant", t3[t3.PresetGradientType = 8388608] = "PresetGradientType";
        })(A || (A = {})), I = (function(t3) {
          function n3(n4, e3, i3, r2) {
            var o2 = t3.call(this, e3) || this, c2 = o2;
            return c2.Rft = true, c2.Bft = s.ST_PathShadeType.rect, c2.Ox = s.PatternType.none, c2.Lft = true, c2.jft = true, c2.Fft = C, c2.DJ = n4, c2._type = s.FillType.Solid, c2.sft = e3, c2.Pft = i3, c2.Wc = r2, c2.Gft = new u.PictureFormat(s.PictureFormatType.PictureFill, e3 && e3.PictureFormat), c2.Gft.Container = r2, c2.Uft = 1, c2.Hft = 1, c2.zft = new a.GradientStops(c2.DJ), o2;
          }
          return k(n3, t3), Object.defineProperty(n3.prototype, "Parent", { get: function() {
            return this.sft;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PictureFormat", { get: function() {
            return this.Gft;
          }, set: function(t4) {
            var n4, e3 = this;
            M(e3.Gft) || e3.Gft.SetParentForChildren(t4), n4 = e3.Gft, e3.Gft = t4, M(n4) || (e3.Gft.ParentStateful = n4.ParentStateful);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PatternColor", { get: function() {
            return this.PatternColorInternal;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Color", { get: function() {
            return this.ColorInternal;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientAngle", { get: function() {
            var t4 = this;
            if (!t4.IsDirty(A.GradientAngle) && !M(t4.sft)) return t4.sft.GradientAngle;
            if (t4.GradientStyle === s.GradientStyle.GradientFromCenter || t4.GradientStyle === s.GradientStyle.GradientFromCorner) throw new Error();
            return t4.Vft;
          }, set: function(t4) {
            this.Vft = t4, this.Dirty(A.GradientAngle);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientColorType", { get: function() {
            return this.GetGradientColorType();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientDegree", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.GradientDegree) || M(t4.sft) ? t4.Yft : t4.sft.GradientDegree;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientStops", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.GradientStops) || M(t4.sft) ? t4.zft : t4.sft.GradientStops;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientStyle", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.GradientStyle) || M(t4.sft) ? t4.Zft : t4.sft.GradientStyle;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientVariant", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.GradientVariant) || M(t4.sft) ? t4.Wft : t4.sft.GradientVariant;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Pattern", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.Pattern) || M(t4.sft) ? t4.Ox : t4.sft.Pattern;
          }, set: function(t4) {
            this.Ox = t4, this.Dirty(A.Pattern);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PresetGradientType", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.PresetGradientType) || M(t4.sft) ? t4.Qft : t4.sft.PresetGradientType;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RotateWithObject", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.RotateWithObject) || M(t4.sft) ? t4.Lft : t4.sft.RotateWithObject;
          }, set: function(t4) {
            this.Lft = t4, this.Dirty(A.RotateWithObject);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TextureAlignment", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.TextureAlignment) || M(t4.sft) ? t4.Kft : t4.sft.TextureAlignment;
          }, set: function(t4) {
            this.Kft = t4, this.Dirty(A.TextureAlignment);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TextureHorizontalScale", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.TextureHorizontalScale) || M(t4.sft) ? t4.Uft : t4.sft.TextureHorizontalScale;
          }, set: function(t4) {
            this.Uft = t4, this.Dirty(A.TextureHorizontalScale);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TextureOffsetX", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.TextureOffsetX) || M(t4.sft) ? t4.Jft : t4.sft.TextureOffsetX;
          }, set: function(t4) {
            this.Jft = t4, this.Dirty(A.TextureOffsetX);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TextureOffsetY", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.TextureOffsetY) || M(t4.sft) ? t4.Xft : t4.sft.TextureOffsetY;
          }, set: function(t4) {
            this.Xft = t4, this.Dirty(A.TextureOffsetY);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TextureVerticalScale", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.TextureVerticalScale) || M(t4.sft) ? t4.Hft : t4.sft.TextureVerticalScale;
          }, set: function(t4) {
            this.Hft = t4, this.Dirty(A.TextureVerticalScale);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.Transparency) || M(t4.sft) ? t4.ColorInternal.Transparency : t4.sft.Transparency;
          }, set: function(t4) {
            this.ColorInternal.Transparency = t4, this.Dirty(A.Transparency);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Type", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.Type) || M(t4.sft) ? t4._type : t4.sft.Type;
          }, set: function(t4) {
            this._type = t4, this.Dirty(A.Type);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Visible", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.Visible) || M(t4.sft) ? t4.jft : t4.sft.Visible;
          }, set: function(t4) {
            this.jft = t4, this.Dirty(A.Visible);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ColorInternal", { get: function() {
            var t4 = this;
            return M(t4._x) && (t4._x = new o.ColorFormat(t4.DJ, M(t4.sft) ? C : t4.sft.Color), t4._x.AutoColorFormat = t4.Pft), t4._x;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PatternColorInternal", { get: function() {
            var t4 = this;
            return M(t4.qft) && (t4.qft = new o.ColorFormat(t4.DJ, M(t4.sft) ? C : t4.sft.PatternColor)), t4.qft;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PresetTexture", { get: function() {
            var t4 = this;
            return t4.IsDirty(A.PresetTexture) || M(t4.sft) ? t4.$ft : t4.sft.PresetTexture;
          }, set: function(t4) {
            this.$ft = t4, this.Dirty(A.PresetTexture);
          }, enumerable: false, configurable: true }), n3.prototype.GetGradientColorType = function() {
            var t4, n4, e3, i3, r2 = [];
            for (t4 = 0, n4 = this.zft.GradientStopList; t4 < n4.length; t4++) e3 = n4[t4], this.FindInColorStops(e3.Color, r2) || r2.push(e3.Color);
            return 0 === (i3 = r2.length) ? s.GradientColorType.GradientColorNone : 1 === i3 ? s.GradientColorType.GradientOneColor : 2 === i3 ? s.GradientColorType.GradientTwoColors : s.GradientColorType.GradientMultiColor;
          }, n3.prototype.FindInColorStops = function(t4, n4) {
            var e3, i3, r2, o2;
            for (e3 = 0, i3 = n4; e3 < i3.length; e3++) if ((o2 = (r2 = i3[e3]).ColorType) === t4.ColorType) {
              if (o2 === s.SolidColorType.Theme) {
                if (r2.ObjectThemeColor === t4.ObjectThemeColor && r2.TintAndShade === t4.TintAndShade) return true;
              } else if (o2 === s.SolidColorType.RGB && r2.RGB.Equals(t4.RGB) && r2.TintAndShade === t4.TintAndShade) return true;
            }
            return false;
          }, n3.prototype.t0t = function(t4) {
            this.Yft = t4, this.Dirty(A.GradientDegree);
          }, n3.prototype.n0t = function(t4) {
            this.zft = t4, this.Dirty(A.GradientStops);
          }, n3.prototype.e0t = function(t4) {
            this.Zft = t4, this.Dirty(A.GradientStyle);
          }, n3.prototype.i0t = function(t4) {
            this.Wft = t4, this.Dirty(A.GradientVariant);
          }, n3.prototype.r0t = function(t4) {
            if (t4 === s.PatternType.none) throw new Error(x);
            var n4 = this;
            n4.Pattern === s.PatternType.none && n4.o0t(s.FillType.Patterned), n4.Ox = t4, n4.Dirty(A.Pattern);
          }, n3.prototype.a0t = function(t4) {
            this.Qft = t4, this.Dirty(A.PresetGradientType);
          }, n3.prototype.o0t = function(t4) {
            this._type = t4, this.Dirty(A.Type);
          }, n3.prototype.InitGradientInfo = function(t4, n4, e3) {
            if (t4 === s.GradientStyle.GradientFromTitle) throw new Error(x);
            var i3 = this;
            i3.e0t(t4), i3.i0t(n4), i3.o0t(s.FillType.Gradient), i3.a0t(e3);
          }, n3.prototype.OneColorGradient = function(t4, n4, e3) {
            if (e3 < 0 || e3 > 1) throw new Error(x);
            var i3 = this;
            i3.InitGradientInfo(t4, n4, s.PresetGradientType.GradientEarlySunset), i3.t0t(e3), a.PresetGradientUtility.InitGradientStops(i3.DJ, i3, s.GradientColorType.GradientOneColor);
          }, n3.prototype.TwoColorGradient = function(t4, n4) {
            this.InitGradientInfo(t4, n4, s.PresetGradientType.GradientEarlySunset), a.PresetGradientUtility.InitGradientStops(this.DJ, this, s.GradientColorType.GradientTwoColors);
          }, n3.prototype.PresetGradient = function(t4, n4, e3) {
            this.InitGradientInfo(t4, n4, e3), a.PresetGradientUtility.InitGradientStops(this.DJ, this, s.GradientColorType.GradientPresetColors);
          }, n3.prototype.Patterned = function(t4) {
            this.SetPatternColor(), this.o0t(s.FillType.Patterned), this.r0t(t4);
          }, n3.prototype.SetPatternColor = function() {
            var t4 = this;
            t4.Color.ObjectThemeColor = s.ColorSchemeIndex.LT1, t4.PatternColor.ObjectThemeColor = s.ColorSchemeIndex.Accent1, t4.Color.ClearModel(), t4.PatternColor.ClearModel();
          }, n3.prototype.Solid = function() {
            this.o0t(s.FillType.Solid), M(this._x) || this._x.ClearModel();
          }, n3.prototype.ClearColor = function() {
            this._x = C;
          }, n3.prototype.GetState = function(n4, e3) {
            var i3 = this;
            return e3 === S && (e3 = false), n4 !== A.Color || M(i3._x) ? n4 !== A.PatternColor || M(i3.qft) ? t3.prototype.GetState.call(i3, n4, e3) : i3.qft.IsDirtyIncludingParent(e3) : i3._x.IsDirtyIncludingParent(e3);
          }, n3.prototype.IsDirtyIncludingParent = function(n4) {
            void 0 === n4 && (n4 = false);
            var e3 = this;
            return !(M(e3.qft) || !e3.qft.IsDirtyIncludingParent()) || (!(M(e3._x) || !e3._x.IsDirtyIncludingParent()) || (!M(e3.zft) && e3.zft.Count > 0 || (!(M(e3.Gft) || !e3.Gft.IsDirtyIncludingParent()) || t3.prototype.IsDirtyIncludingParent.call(e3, n4))));
          }, n3.prototype.OnParentChanged = function(t4) {
            var n4 = this;
            n4.sft = t4, M(n4.sft) ? (M(n4._x) || (n4._x.ParentStateful = C), M(n4.qft) || (n4.qft.ParentStateful = C)) : (M(n4._x) || (n4._x.ParentStateful = n4.sft.Color), M(n4.qft) || (n4.qft.ParentStateful = n4.sft.PatternColor));
          }, n3.prototype.FromOOModel = function(t4, n4) {
            if (M(n4)) throw new Error("colorFillType not provided!");
            var e3 = this;
            e3.Fft = t4, n4 === s.ColorFillType.SolidColorFillProperties ? (e3.ColorInternal.FromOOModel(e3.Fft), e3._type = s.FillType.Solid, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.PatternFillProperties ? (e3.FromCT_PatternFillProperties(t4), e3._type = s.FillType.Patterned, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.GradientFillProperties ? (e3.FromCT_GradientFillProperties(t4), e3._type = s.FillType.Gradient, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.BlipFillProperties ? (e3.Gft.FromOOModel(t4), e3._type = s.FillType.Picture, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.GroupFillProperties ? (e3._type = s.FillType.Group, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.NoFillProperties && (e3._type = s.FillType.Solid, e3.SetState(A.Type, true));
          }, n3.prototype.FromSJSOOModel = function(t4, n4) {
            if (M(n4)) throw new Error("colorFillType not provided!");
            var e3 = this;
            n4 === s.ColorFillType.SolidColorFillProperties ? (e3.ColorInternal.FromSJSOOModel(t4), e3._type = s.FillType.Solid, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.PatternFillProperties ? (e3.FromSJSCT_PatternFillProperties(t4), e3._type = s.FillType.Patterned, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.GradientFillProperties ? (e3.FromSJSCT_GradientFillProperties(t4), e3._type = s.FillType.Gradient, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.BlipFillProperties ? (e3.Gft.FromSJSOOModel(t4), e3._type = s.FillType.Picture, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.GroupFillProperties ? (e3._type = s.FillType.Group, e3.SetState(A.Type, true)) : n4 === s.ColorFillType.NoFillProperties && (e3._type = s.FillType.Solid, e3.SetState(A.Type, true));
          }, n3.prototype.ToOOModel = function(t4) {
            var n4;
            if (this.Visible) switch (this.Type) {
              case s.FillType.Solid:
                n4 = this.ToCT_SolidColorFillProperties();
                break;
              case s.FillType.Patterned:
                n4 = this.ToCT_PatternFillProperties();
                break;
              case s.FillType.Gradient:
                n4 = this.ToCT_GradientFillProperties();
                break;
              case s.FillType.Textured:
                n4 = this.ToCT_TileFillProperties();
                break;
              case s.FillType.Background:
                break;
              case s.FillType.Picture:
                n4 = this.ToCT_PictureFillProperties();
                break;
              case s.FillType.Group:
                n4 = { colorFillType: s.ColorFillType.GroupFillProperties };
            }
            else n4 = { colorFillType: s.ColorFillType.NoFillProperties };
            return n4;
          }, n3.prototype.ToSJSOOModel = function(t4) {
            var n4;
            if (this.Visible) switch (this.Type) {
              case s.FillType.Solid:
                n4 = this.ToSJSCT_SolidColorFillProperties();
                break;
              case s.FillType.Patterned:
                n4 = this.ToSJSCT_PatternFillProperties();
                break;
              case s.FillType.Gradient:
                n4 = this.ToSJSCT_GradientFillProperties();
                break;
              case s.FillType.Textured:
                n4 = this.ToSJSCT_TileFillProperties();
                break;
              case s.FillType.Background:
                break;
              case s.FillType.Picture:
                n4 = this.ToSJSCT_PictureFillProperties();
                break;
              case s.FillType.Group:
                n4 = { colorFillType: s.ColorFillType.GroupFillProperties };
            }
            else n4 = { colorFillType: s.ColorFillType.NoFillProperties };
            return n4;
          }, n3.prototype.ToSJS_FillGroup = function(t4) {
            var n4, e3, i3 = this;
            m.Aft(t4), (e3 = (n4 = i3.ToSJSOOModel()).colorFillType) === s.ColorFillType.SolidColorFillProperties ? t4.solidFill = n4 : e3 === s.ColorFillType.PatternFillProperties ? t4.pattFill = n4 : e3 === s.ColorFillType.GradientFillProperties ? t4.gradFill = n4 : e3 === s.ColorFillType.BlipFillProperties ? t4.blipFill = n4 : e3 === s.ColorFillType.NoFillProperties && (t4.noFill = {}), delete n4.colorFillType;
          }, n3.prototype.FromCT_PatternFillProperties = function(t4) {
            this.r0t(t4.prst), this.ColorInternal.FromOOModel(t4.bgClr), this.PatternColorInternal.FromOOModel(t4.fgClr);
          }, n3.prototype.FromSJSCT_PatternFillProperties = function(t4) {
            this.r0t(m.ToPatternType(s.ST_PresetPatternVal[t4.prst])), this.ColorInternal.FromSJSOOModel(t4.bgClr), this.PatternColorInternal.FromSJSOOModel(t4.fgClr);
          }, n3.prototype.ToCT_PatternFillProperties = function() {
            var t4, n4 = this;
            return n4.DJ.DrawingType === s.DrawingType.GroupShape ? C : ((t4 = { colorFillType: s.ColorFillType.PatternFillProperties }).prst = n4.Pattern, n4.PatternColorInternal.ColorType !== s.SolidColorType.None && (t4.fgClr = n4.PatternColorInternal.Color_ToOOModel()), n4.Color.ColorType !== s.SolidColorType.None && (t4.bgClr = n4.Color.Color_ToOOModel()), t4);
          }, n3.prototype.ToSJSCT_PatternFillProperties = function() {
            var t4, n4 = this;
            return n4.DJ.DrawingType === s.DrawingType.GroupShape ? C : ((t4 = { colorFillType: s.ColorFillType.PatternFillProperties }).prst = s.ST_PresetPatternVal[m.ToST_PresetPatternVal(+n4.Pattern)], n4.PatternColorInternal.ColorType !== s.SolidColorType.None && (t4.fgClr = n4.PatternColorInternal.Color_ToSJSOOModel()), n4.Color.ColorType !== s.SolidColorType.None && (t4.bgClr = n4.Color.Color_ToSJSOOModel()), t4);
          }, n3.prototype.FromCT_GradientFillProperties = function(t4) {
            var n4 = this;
            n4.n0t(new a.GradientStops(n4.DJ)), n4.zft.FromOOModel(t4.gsLst), n4.RotateWithObject = t4.rotWithShape, M(t4.path) ? M(t4.lin) || (n4.FromCT_LinearShadeProperties(t4.lin), n4.FromTitleCT_RelativeRect(t4.tileRect)) : n4.FromCT_PathShadeProperties(t4.path);
          }, n3.prototype.FromSJSCT_GradientFillProperties = function(t4) {
            var n4, e3, i3 = this;
            i3.n0t(new a.GradientStops(i3.DJ)), i3.zft.FromSJSOOModel(t4.gsLst), i3.RotateWithObject = w(t4.rotWithShape, false), n4 = t4.path, e3 = t4.lin, M(n4) ? M(e3) || (i3.FromSJSCT_LinearShadeProperties(e3), i3.FromTitleSJSCT_RelativeRect(t4.tileRect)) : i3.FromSJSCT_PathShadeProperties(n4);
          }, n3.prototype.ToCT_GradientFillProperties = function() {
            var t4 = this, n4 = { colorFillType: s.ColorFillType.GradientFillProperties };
            return n4.rotWithShape = t4.RotateWithObject, !M(t4.GradientStops) && t4.GradientStops.Count > 0 && (n4.gsLst = t4.GradientStops.ToOOModel()), t4.GradientStyle === s.GradientStyle.GradientFromCenter || t4.GradientStyle === s.GradientStyle.GradientFromCorner || t4.GradientStyle === s.GradientStyle.GradientTopSpotlight || t4.GradientStyle === s.GradientStyle.GradientBottomSpotlight ? n4.path = t4.ToCT_PathShadeProperties() : n4.lin = t4.ToCT_LinearShadeProperties(), n4.tileRect = t4.ToTitleCT_RelativeRect(), n4;
          }, n3.prototype.ToSJSCT_GradientFillProperties = function() {
            var t4 = this, n4 = {};
            return n4.rotWithShape = b(t4.RotateWithObject), !M(t4.GradientStops) && t4.GradientStops.Count > 0 && (n4.gsLst = t4.GradientStops.ToSJSOOModel()), t4.GradientStyle === s.GradientStyle.GradientFromCenter || t4.GradientStyle === s.GradientStyle.GradientFromCorner || t4.GradientStyle === s.GradientStyle.GradientTopSpotlight || t4.GradientStyle === s.GradientStyle.GradientBottomSpotlight ? n4.path = t4.ToSJSCT_PathShadeProperties() : n4.lin = t4.ToSJSCT_LinearShadeProperties(), n4.tileRect = t4.ToSJSTitleCT_RelativeRect(), n4.colorFillType = s.ColorFillType.GradientFillProperties, n4;
          }, n3.prototype.ToCT_PictureFillProperties = function() {
            return this.Gft.ToOOModel();
          }, n3.prototype.ToSJSCT_PictureFillProperties = function() {
            return this.Gft.ToSJSOOModel();
          }, n3.prototype.FromTitleCT_RelativeRect = function(t4) {
            var n4 = this;
            M(t4) || (t4.l === -h && t4.t === -h ? n4.i0t(1) : t4.t === -h && t4.r === -h ? n4.i0t(2) : t4.l === -h && t4.b === -h ? n4.i0t(3) : t4.r === -h && t4.b === -h && n4.i0t(4));
          }, n3.prototype.FromTitleSJSCT_RelativeRect = function(t4) {
            var n4, e3, i3, r2, o2 = this;
            M(t4) || (n4 = g(t4.l), e3 = g(t4.t), i3 = g(t4.r), r2 = g(t4.b), n4 === -h && e3 === -h ? o2.i0t(1) : e3 === -h && i3 === -h ? o2.i0t(2) : n4 === -h && r2 === -h ? o2.i0t(3) : i3 === -h && r2 === -h && o2.i0t(4));
          }, n3.prototype.ToTitleCT_RelativeRect = function() {
            var t4 = { l: 0, r: 0, t: 0, b: 0 }, n4 = this.GradientVariant;
            return this.GradientStyle === s.GradientStyle.GradientFromCorner && (1 === n4 ? (t4.l = -h, t4.t = -h) : 2 === n4 ? (t4.t = -h, t4.r = -h) : 3 === n4 ? (t4.l = -h, t4.b = -h) : 4 === n4 && (t4.r = -h, t4.b = -h)), t4;
          }, n3.prototype.ToSJSTitleCT_RelativeRect = function() {
            return j(this.ToTitleCT_RelativeRect());
          }, n3.prototype.FromCT_LinearShadeProperties = function(t4) {
            this.GradientAngle = (t4.ang || 0) / d, this.u0t = true, this.Rft = t4.scaled;
          }, n3.prototype.FromSJSCT_LinearShadeProperties = function(t4) {
            this.GradientAngle = parseFloat(t4.ang || "0") / d, this.u0t = true, this.Rft = c.NodeHelper.ur(t4.scaled, false);
          }, n3.prototype.ToCT_LinearShadeProperties = function() {
            return { ang: T(this.GradientAngle * d), scaled: this.Rft };
          }, n3.prototype.ToSJSCT_LinearShadeProperties = function() {
            return { ang: String(T(this.GradientAngle * d)), scaled: b(this.Rft) };
          }, n3.prototype.FromCT_PathShadeProperties = function(t4) {
            M(t4) || (this.Bft = t4.path, this.FromCT_RelativeRect(t4.fillToRect));
          }, n3.prototype.FromSJSCT_PathShadeProperties = function(t4) {
            M(t4) || (this.Bft = s.ST_PathShadeType[t4.path], this.FromSJSCT_RelativeRect(t4.fillToRect));
          }, n3.prototype.ToCT_PathShadeProperties = function() {
            return { path: this.Bft, fillToRect: this.ToCT_RelativeRect() };
          }, n3.prototype.ToSJSCT_PathShadeProperties = function() {
            return { path: s.ST_PathShadeType[this.Bft], fillToRect: this.ToSJSCT_RelativeRect() };
          }, n3.prototype.FromCT_RelativeRect = function(t4) {
            var n4, e3;
            M(t4) || (n4 = 0.5 * h, e3 = this, t4.l === n4 && t4.t === n4 && t4.r === n4 && t4.b === n4 ? e3.e0t(s.GradientStyle.GradientFromCenter) : t4.r === h && t4.b === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(1)) : t4.l === h && t4.b === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(2)) : t4.r === h && t4.t === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(3)) : t4.l === h && t4.t === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(4)) : t4.l === n4 && t4.t === 0.8 * -h ? e3.e0t(s.GradientStyle.GradientTopSpotlight) : t4.l === n4 && t4.t === 1.3 * h && e3.e0t(s.GradientStyle.GradientBottomSpotlight));
          }, n3.prototype.FromSJSCT_RelativeRect = function(t4) {
            var n4, e3, i3, r2, o2, a2;
            M(t4) || (n4 = 0.5 * h, e3 = this, i3 = y(t4.l), r2 = y(t4.r), o2 = y(t4.t), a2 = y(t4.b), i3 === n4 && o2 === n4 && r2 === n4 && a2 === n4 ? e3.e0t(s.GradientStyle.GradientFromCenter) : r2 === h && a2 === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(1)) : i3 === h && a2 === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(2)) : r2 === h && o2 === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(3)) : i3 === h && o2 === h ? (e3.e0t(s.GradientStyle.GradientFromCorner), e3.i0t(4)) : i3 === n4 && o2 === 0.8 * -h ? e3.e0t(s.GradientStyle.GradientTopSpotlight) : i3 === n4 && o2 === 1.3 * h && e3.e0t(s.GradientStyle.GradientBottomSpotlight));
          }, n3.prototype.ToCT_RelativeRect = function() {
            var t4, n4 = { l: 0, r: 0, t: 0, b: 0 }, e3 = 0.5 * h;
            return this.GradientStyle === s.GradientStyle.GradientFromCenter ? (n4.l = e3, n4.t = e3, n4.r = e3, n4.b = e3) : this.GradientStyle === s.GradientStyle.GradientFromCorner ? 1 === (t4 = this.GradientVariant) ? (n4.r = h, n4.b = h) : 2 === t4 ? (n4.l = h, n4.b = h) : 3 === t4 ? (n4.t = h, n4.r = h) : 4 === t4 && (n4.l = h, n4.t = h) : this.GradientStyle === s.GradientStyle.GradientTopSpotlight ? (n4.l = e3, n4.r = e3, n4.t = 0.8 * -d, n4.b = 1.8 * h) : this.GradientStyle === s.GradientStyle.GradientBottomSpotlight && (n4.l = e3, n4.r = e3, n4.t = 1.3 * h, n4.b = 0.3 * -d), n4;
          }, n3.prototype.ToSJSCT_RelativeRect = function() {
            return j(this.ToCT_RelativeRect());
          }, n3.prototype.ToCT_SolidColorFillProperties = function() {
            return this.ColorInternal.ToOOModel();
          }, n3.prototype.ToSJSCT_SolidColorFillProperties = function() {
            return this.ColorInternal.ToSJSOOModel();
          }, n3.prototype.ToCT_TileFillProperties = function() {
            var t4 = this.Gft.ToOOModel();
            return t4.tile = this.ToCT_TileInfoProperties(), t4;
          }, n3.prototype.ToSJSCT_TileFillProperties = function() {
            var t4 = this.Gft.ToSJSOOModel();
            return t4.tile = this.ToSJSCT_TileInfoProperties(), t4;
          }, n3.prototype.ToCT_TileInfoProperties = function() {
            var t4 = this;
            return { algn: t4.TextureAlignment, tx: t4.TextureOffsetX, ty: t4.TextureOffsetY, sx: T(t4.TextureHorizontalScale * v), sy: T(t4.TextureVerticalScale * v) };
          }, n3.prototype.ToSJSCT_TileInfoProperties = function() {
            var t4 = this;
            return { algn: s.ST_RectAlignment[t4.TextureAlignment], tx: f(t4.TextureOffsetX), ty: f(t4.TextureOffsetY), sx: T(t4.TextureHorizontalScale * v), sy: T(t4.TextureVerticalScale * v) };
          }, n3.prototype.Clone = function() {
            var t4 = this, e3 = new n3(t4.DJ, t4.sft, t4.Pft, t4.Wc);
            return M(t4.qft) || (e3.qft = t4.qft.Clone()), M(t4._x) || (e3._x = t4._x.Clone()), e3.Yft = t4.Yft, e3.Rft = t4.Rft, e3.zft = t4.zft, e3.Wft = t4.Wft, e3.Ox = t4.Ox, e3.Qft = t4.Qft, e3.$ft = t4.$ft, e3.s0t = t4.s0t, e3.c0t = t4.c0t, e3._type = t4._type, e3.Vft = t4.Vft, e3.Lft = t4.Lft, e3.Kft = t4.Kft, e3.Uft = t4.Uft, e3.Jft = t4.Jft, e3.Xft = t4.Xft, e3.f0t = t4.f0t, e3.Hft = t4.Hft, e3.aft = t4.aft, e3.jft = t4.jft, e3.l0t = t4.l0t, e3.sft = t4.sft, e3;
          }, n3;
        })(i2.StatefulBase), n2.FillFormat = I;
      }, "./dist/plugins/floatingObject/drawing/fontData.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FontData = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/common.js"), r = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), o = e2("./dist/plugins/floatingObject/drawing/colorData.js"), a = i2.UnitHelper.isNullOrUndefined, (function(t3) {
          t3[t3.None = 0] = "None", t3[t3.Color = 1] = "Color", t3[t3.Size = 2] = "Size", t3[t3.Name = 4] = "Name", t3[t3.Family = 8] = "Family", t3[t3.CharSet = 16] = "CharSet", t3[t3.Scheme = 32] = "Scheme", t3[t3.Bold = 64] = "Bold", t3[t3.Italic = 128] = "Italic", t3[t3.Underline = 256] = "Underline", t3[t3.Strike = 512] = "Strike", t3[t3.VertAlign = 1024] = "VertAlign", t3[t3.Shadow = 2048] = "Shadow", t3[t3.Outline = 4096] = "Outline", t3[t3.Condense = 8192] = "Condense", t3[t3.Extend = 16384] = "Extend", t3[t3.All = 32767] = "All";
        })(u || (u = {})), s = (function() {
          function t3() {
            var t4 = this;
            t4.Flag = u.None, t4.Size = 0, t4.Family = 0, t4.CharSet = 0, t4.Scheme = r.ThemeFont.None, t4.Underline = r.UnderlineType.None, t4.VertAlign = r.VertAlignType.Baseline;
          }
          return t3.prototype.Equals = function(t4) {
            if (a(t4)) return false;
            var n3 = this;
            return n3.Size === t4.Size && n3.Color.Equals(t4.Color) && n3.Name === t4.Name && n3.Family === t4.Family && n3.CharSet === t4.CharSet && n3.Scheme === t4.Scheme && n3.Bold === t4.Bold && n3.Italic === t4.Italic && n3.Underline === t4.Underline && n3.Strike === t4.Strike && n3.VertAlign === t4.VertAlign && n3.Shadow === t4.Shadow && n3.Outline === t4.Outline && n3.Condense === t4.Condense && n3.Extend === t4.Extend && n3.NotUsed === t4.NotUsed;
          }, t3.prototype.Clone = function() {
            var n3 = new t3(), e3 = this;
            return n3.Color = e3.Color, n3.Size = e3.Size, n3.Name = e3.Name, n3.Family = e3.Family, n3.CharSet = e3.CharSet, n3.Scheme = e3.Scheme, n3.Bold = e3.Bold, n3.Italic = e3.Italic, n3.Underline = e3.Underline, n3.Strike = e3.Strike, n3.VertAlign = e3.VertAlign, n3.Shadow = e3.Shadow, n3.Outline = e3.Outline, n3.Condense = e3.Condense, n3.Extend = e3.Extend, n3.Flag = e3.Flag, n3.NotUsed = e3.NotUsed, n3;
          }, t3.prototype.UpdateDefaultValueFlag = function() {
            var t4 = this, n3 = u.None;
            t4.Color.UpdateDefaultValueFlag(), t4.Color.Flag !== o.ColorDataFlag.None && (n3 |= u.Color), 0 !== t4.Size && (n3 |= u.Size), a(t4.Name) || (n3 |= u.Name), 0 !== t4.Family && (n3 |= u.Family), 0 !== t4.CharSet && (n3 |= u.CharSet), t4.Scheme !== r.ThemeFont.None && (n3 |= u.Scheme), t4.Bold && (n3 |= u.Bold), t4.Italic && (n3 |= u.Italic), t4.Underline !== r.UnderlineType.None && (n3 |= u.Underline), t4.Strike && (n3 |= u.Strike), t4.VertAlign !== r.VertAlignType.Baseline && (n3 |= u.VertAlign), t4.Shadow && (n3 |= u.Shadow), t4.Outline && (n3 |= u.Outline), t4.Condense && (n3 |= u.Condense), t4.Extend && (n3 |= u.Extend), t4.Flag = n3;
          }, t3.prototype.UpdateFlagFromBottom = function() {
            var t4 = this;
            t4.Color.UpdateFlagFromBottom(), t4.Color.Flag === o.ColorDataFlag.None ? t4.Flag &= ~u.Color : t4.Flag |= u.Color;
          }, t3.prototype.UpdateDefaultValueFlagForDxf = function() {
            var t4 = this, n3 = t4.Flag, e3 = u.None;
            (n3 & u.Bold) === u.Bold && (e3 |= u.Bold), (n3 & u.Italic) === u.Italic && (e3 |= u.Italic), t4.Color.UpdateDefaultValueFlag(), t4.Color.Flag !== o.ColorDataFlag.None && (e3 |= u.Color), 0 !== t4.Size && (e3 |= u.Size), a(t4.Name) || (e3 |= u.Name), 0 !== t4.Family && (e3 |= u.Family), 0 !== t4.CharSet && (e3 |= u.CharSet), t4.Scheme !== r.ThemeFont.None && (e3 |= u.Scheme), t4.Underline !== r.UnderlineType.None && (e3 |= u.Underline), t4.Strike && (e3 |= u.Strike), t4.VertAlign !== r.VertAlignType.Baseline && (e3 |= u.VertAlign), t4.Shadow && (e3 |= u.Shadow), t4.Outline && (e3 |= u.Outline), t4.Condense && (e3 |= u.Condense), t4.Extend && (e3 |= u.Extend), t4.Flag = e3;
          }, t3.prototype.Compose = function(t4, n3) {
            void 0 === n3 && (n3 = true), t4.Flag !== u.None && (n3 ? this.ConflictCompose(t4) : this.NonConflictCompose(t4));
          }, t3.prototype.ConflictCompose = function(t4) {
            var n3 = this, e3 = t4.Flag;
            (e3 & u.Color) === u.Color && n3.Color.Compose(t4.Color), (e3 & u.Size) === u.Size && (n3.Size = t4.Size), (e3 & u.Name) === u.Name && (n3.Name = t4.Name), (e3 & u.Family) === u.Family && (n3.Family = t4.Family), (e3 & u.CharSet) === u.CharSet && (n3.CharSet = t4.CharSet), (e3 & u.Scheme) === u.Scheme ? n3.Scheme = t4.Scheme : (e3 & u.Name) === u.Name && (n3.Scheme = r.ThemeFont.None, e3 &= ~u.Scheme), (e3 & u.Bold) === u.Bold && (n3.Bold = t4.Bold), (e3 & u.Italic) === u.Italic && (n3.Italic = t4.Italic), (e3 & u.Underline) === u.Underline && (n3.Underline = t4.Underline), (e3 & u.Strike) === u.Strike && (n3.Strike = t4.Strike), (e3 & u.VertAlign) === u.VertAlign && (n3.VertAlign = t4.VertAlign), (e3 & u.Shadow) === u.Shadow && (n3.Shadow = t4.Shadow), (e3 & u.Outline) === u.Outline && (n3.Outline = t4.Outline), (e3 & u.Condense) === u.Condense && (n3.Condense = t4.Condense), (e3 & u.Extend) === u.Extend && (n3.Extend = t4.Extend), n3.Flag |= e3;
          }, t3.prototype.NonConflictCompose = function(t4) {
            var n3 = this, e3 = n3.Flag;
            n3.Color.Compose(t4.Color, false), (e3 & u.Size) !== u.Size && (n3.Size = t4.Size), (e3 & u.Name) !== u.Name && (n3.Name = t4.Name), (e3 & u.Family) !== u.Family && (n3.Family = t4.Family), (e3 & u.CharSet) !== u.CharSet && (n3.CharSet = t4.CharSet), (e3 & u.Scheme) !== u.Scheme && (n3.Scheme = t4.Scheme), (e3 & u.Bold) !== u.Bold && (n3.Bold = t4.Bold), (e3 & u.Italic) !== u.Italic && (n3.Italic = t4.Italic), (e3 & u.Underline) !== u.Underline && (n3.Underline = t4.Underline), (e3 & u.Strike) !== u.Strike && (n3.Strike = t4.Strike), (e3 & u.VertAlign) !== u.VertAlign && (n3.VertAlign = t4.VertAlign), (e3 & u.Shadow) !== u.Shadow && (n3.Shadow = t4.Shadow), (e3 & u.Outline) !== u.Outline && (n3.Outline = t4.Outline), (e3 & u.Condense) !== u.Condense && (n3.Condense = t4.Condense), (e3 & u.Extend) !== u.Extend && (n3.Extend = t4.Extend), n3.Flag |= t4.Flag;
          }, t3.prototype.RemoveDuplicateStyle = function(t4) {
            return this.Compare(t4, false);
          }, t3.prototype.RemoveDifferentStyle = function(t4) {
            return this.Compare(t4, true);
          }, t3.prototype.Compare = function(t4, n3) {
            var e3, i3, r2, a2, s2 = this, c = s2.Flag, f = t4.Flag, l = [], h = false;
            if ((c & u.Color) === u.Color && ((e3 = (f & u.Color) !== u.Color) || (n3 ? (h = s2.Color.RemoveDifferentStyle(t4.Color), e3 = s2.Color.Flag === o.ColorDataFlag.None) : (h = s2.Color.RemoveDuplicateStyle(t4.Color), e3 = s2.Color.Flag !== o.ColorDataFlag.None)), (i3 = n3 ? e3 : !e3) && l.push(u.Color)), (c & u.Size) === u.Size && (e3 = (f & u.Size) !== u.Size || s2.Size !== t4.Size, (i3 = n3 ? e3 : !e3) && l.push(u.Size)), (c & u.Name) === u.Name && (e3 = (f & u.Name) !== u.Name || s2.Name !== t4.Name, (i3 = n3 ? e3 : !e3) && l.push(u.Name)), (c & u.Family) === u.Family && (e3 = (f & u.Family) !== u.Family || s2.Family !== t4.Family, (i3 = n3 ? e3 : !e3) && l.push(u.Family)), (c & u.CharSet) === u.CharSet && (e3 = (f & u.CharSet) !== u.CharSet || s2.CharSet !== t4.CharSet, (i3 = n3 ? e3 : !e3) && l.push(u.CharSet)), (c & u.Scheme) === u.Scheme && (e3 = (f & u.Scheme) !== u.Scheme || s2.Scheme !== t4.Scheme, (i3 = n3 ? e3 : !e3) && l.push(u.Scheme)), (c & u.Bold) === u.Bold && (e3 = (f & u.Bold) !== u.Bold || s2.Bold !== t4.Bold, (i3 = n3 ? e3 : !e3) && l.push(u.Bold)), (c & u.Italic) === u.Italic && (e3 = (f & u.Italic) !== u.Italic || s2.Italic !== t4.Italic, (i3 = n3 ? e3 : !e3) && l.push(u.Italic)), (c & u.Underline) === u.Underline && (e3 = (f & u.Underline) !== u.Underline || s2.Underline !== t4.Underline, (i3 = n3 ? e3 : !e3) && l.push(u.Underline)), (c & u.Strike) === u.Strike && (e3 = (f & u.Strike) !== u.Strike || s2.Strike !== t4.Strike, (i3 = n3 ? e3 : !e3) && l.push(u.Strike)), (c & u.VertAlign) === u.VertAlign && (e3 = (f & u.VertAlign) !== u.VertAlign || s2.VertAlign !== t4.VertAlign, (i3 = n3 ? e3 : !e3) && l.push(u.VertAlign)), (c & u.Shadow) === u.Shadow && (e3 = (f & u.Shadow) !== u.Shadow || s2.Shadow !== t4.Shadow, (i3 = n3 ? e3 : !e3) && l.push(~u.Shadow)), (c & u.Outline) === u.Outline && (e3 = (f & u.Outline) !== u.Outline || s2.Outline !== t4.Outline, (i3 = n3 ? e3 : !e3) && l.push(u.Outline)), (c & u.Condense) === u.Condense && (e3 = (f & u.Condense) !== u.Condense || s2.Condense !== t4.Condense, (i3 = n3 ? e3 : !e3) && l.push(u.Condense)), (c & u.Extend) === u.Extend && (e3 = (f & u.Extend) !== u.Extend || s2.Extend !== t4.Extend, (i3 = n3 ? e3 : !e3) && l.push(u.Extend)), (r2 = l.length) > 0) for (h = true, a2 = 0; a2 < r2; a2++) c &= ~l[a2];
            return s2.Flag = c, h;
          }, t3.prototype.ClearFlag = function() {
            this.Color.ClearFlag(), this.Flag = u.None;
          }, t3.prototype.SetFullFlag = function() {
            this.Color.SetFullFlag(), this.Flag = u.All;
          }, t3.prototype.IsFullFlag = function() {
            return this.Flag === u.All && this.Color.IsFullFlag();
          }, t3;
        })(), n2.FontData = s;
      }, "./dist/plugins/floatingObject/drawing/fontFormat.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V = this && this.qKr || (Y = function(t3, n3) {
          return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), z = this && this.nJr || function() {
          return z = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, z.apply(this, arguments);
        }, Y;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ComboFontFormat = n2.ComboColorFormat = n2.DrawingTextBody = n2.DrawingTextParagraph = n2.DrawingLineBreak = n2.DrawingTextField = n2.DrawingTextRun = n2.DrawingTextElement = n2.FontFormat = n2.DrawingText = n2.ReferenceText = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/floatingObject/drawing/stateful.js"), a = e2("./dist/plugins/floatingObject/drawing/common.js"), u = e2("./dist/plugins/floatingObject/drawing/fillFormat.js"), s = e2("./dist/plugins/floatingObject/drawing/fontData.js"), c = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), f = r.NodeHelper.sr, l = r.NodeHelper.ur, h = r.ExcelHelper.pointToPixel, d = r.ExcelHelper.emuToPixles, v = r.ExcelHelper.pixelToEMU, p = r.mt.u1, g = r.mt.n1, m = r.mt.vo, b = r.mt.cuo, y = r.mt.r1, w = 45720, M = 91440, C = i2.Common.lt, S = C._h, T = a.DrawingUtility, x = T.Aft, A = a.ChartConstants, I = a.UnitHelper, k = I.isNullOrUndefined, N = null, j = void 0, D = (function() {
          function t3(t4) {
            this.d0t = t4;
          }
          return Object.defineProperty(t3.prototype, "Formula", { get: function() {
            return this.GetFormula(false);
          }, set: function(t4) {
            t4 !== this.Formula && this.UpdateTextByFormulas(t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "FormulaR1C1", { get: function() {
            return this.GetFormula(true);
          }, set: function(t4) {
            t4 !== this.Formula && this.UpdateTextByFormulas(t4, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Parent", { get: function() {
            return this.d0t;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ReferingText", { get: function() {
            return this.GetReferingText();
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Worksheet", { get: function() {
            return this.d0t.sheet();
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "TextRefer", { get: function() {
            return this.Y0t;
          }, set: function(t4) {
            this.SetTextRefer(t4);
          }, enumerable: false, configurable: true }), t3.prototype.SetTextRefer = function(t4, n3) {
            n3 === j && (n3 = true), this.SetTextReferInternal(t4, n3), this.OnSetTextRefer(t4);
          }, t3.prototype.OnSetTextRefer = function(t4) {
          }, t3.prototype.GetReferingText = function() {
            var t4 = "";
            return this.Y0t && this.Y0t.length > 0 && (t4 = this.GetFirstCellText(this.Y0t[0])), t4;
          }, t3.prototype.GetFirstCellText = function(t4) {
            var n3, e3, i3, r2 = this.Worksheet;
            return k(t4.WorksheetName) && (t4.WorksheetName = r2.name()), i3 = (e3 = (n3 = r2.parent) && n3.getSheetFromName(t4.WorksheetName)) && e3.getText(t4.Row, t4.Column), k(i3) ? "" : i3;
          }, t3.prototype.GetTextList = function(t4) {
            var n3, e3 = this.Worksheet;
            return this.TextRefer && this.TextRefer.length > 0 ? (n3 = [], this.TextRefer.forEach((function(i3) {
              var r2, o2, a2, u2, s2;
              for (k(i3.WorksheetName) && (i3.WorksheetName = e3.name()), r2 = e3.Mnn(i3.WorksheetName), o2 = i3.Row; o2 <= i3.LastRow; o2++) for (a2 = i3.Column; a2 <= i3.LastColumn; a2++) s2 = (u2 = r2.Snn(o2, a2)).Text, t4 && (u2.EntireRow.Hidden || u2.EntireColumn.Hidden) || n3.push(k(s2) ? "" : s2);
            })), n3) : this.GBe && this.GBe.length > 0 ? this.GBe : [];
          }, t3.prototype.SetTextReferInternal = function(t4, n3) {
            this.Y0t = t4;
          }, t3.prototype.GetFormula = function(t4) {
            var n3, e3, i3 = this;
            return t4 === j && (t4 = false), n3 = this.Y0t, e3 = [], n3 && n3.length > 0 ? (n3.forEach((function(n4) {
              var r2 = i3.Worksheet.name();
              t4 ? e3.push(n4.ToR1C1Text(r2)) : e3.push(n4.ToA1Text(0, 0, r2));
            })), e3.join(",")) : this.GBe && this.GBe.length > 0 ? (this.GBe.forEach((function(t5) {
              e3.push('"'.concat(t5, '"'));
            })), "{".concat(e3.join(","), "}")) : "";
          }, t3.prototype.UpdateTextByFormulas = function(t4, n3) {
            var e3, i3, r2;
            n3 === j && (n3 = false), i3 = (e3 = this.Worksheet.knn(t4, 0, 0, n3)).references, r2 = e3.values, i3.length > 0 ? (this.Y0t = i3, this.GBe = []) : r2.length > 0 && (this.GBe = r2, this.Y0t = []);
          }, t3;
        })(), n2.ReferenceText = D, _ = (function(t3) {
          function n3(n4, e3, i3, r2) {
            var o2, a2 = t3.call(this, n4) || this;
            return e3 === j && (e3 = N), i3 === j && (i3 = N), r2 === j && (r2 = N), (o2 = a2).v0t = N, o2.m0t = N, o2.g0t = N, o2.p0t = i3 || "", o2.b0t = r2, o2.InitRichTextFields(e3), a2;
          }
          return V(n3, t3), n3.prototype.InitRichTextFields = function(t4) {
            var n4 = this, e3 = n4.CreateDrawingTextBody(n4.d0t, n4.b0t);
            k(n4.v0t) || n4.v0t.Font.SetParentForChildren(e3.Font), n4.v0t = e3, n4.v0t.Font.ParentStateful = t4, k(n4.p0t) || n4.v0t.AddParagraph(n4.p0t);
          }, Object.defineProperty(n3.prototype, "TextBody", { get: function() {
            return this.v0t;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Font", { get: function() {
            return this.v0t.Font;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Text", { get: function() {
            return k(this.TextRefer) ? this.v0t.Text : this.ReferingText;
          }, set: function(t4) {
            this.SetTextInternal(t4);
          }, enumerable: false, configurable: true }), n3.prototype.SetTextInternal = function(t4) {
            this.SetTextReferInternal(N), this.UpdateTextBody(t4);
          }, n3.prototype.UpdateTextBody = function(t4) {
            this.v0t.Clear();
            var n4 = k(t4) ? this.p0t : t4;
            k(n4) || this.v0t.AddParagraph(n4);
          }, n3.prototype.OnSetTextRefer = function(n4) {
            t3.prototype.OnSetTextRefer.call(this, n4), this.UpdateTextBody(N);
          }, n3.prototype.FromOOModel = function(t4) {
            var n4 = this;
            n4.m0t = t4, n4.InitRichTextFields(n4.v0t.Font.ParentStateful), k(t4.rich) || n4.v0t.FromOOModel(t4.rich), !k(t4.strRef) && t4.strRef.f && n4.UpdateTextByFormulas(t4.strRef.f);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            var n4 = this;
            n4.g0t = t4, n4.InitRichTextFields(n4.v0t.Font.ParentStateful), k(t4.rich) || n4.v0t.FromSJSOOModel(t4.rich), !k(t4.strRef) && t4.strRef.f && t4.strRef.f.v_ && n4.UpdateTextByFormulas(t4.strRef.f.v_);
          }, n3.prototype.ToOOModel = function(t4) {
            var n4 = this, e3 = k(n4.m0t) ? {} : n4.m0t;
            return k(n4.Y0t) || (e3.strRef = { f: n4.Formula }), e3.rich = n4.v0t.ToOOModel(t4), e3;
          }, n3.prototype.ToSJSOOModel = function(t4, n4) {
            var e3 = this, i3 = k(e3.g0t) ? {} : e3.g0t;
            return k(e3.Y0t) || (i3.strRef = { f: { v_: e3.Formula } }), i3.rich = e3.v0t.ToSJSOOModel(t4, n4), i3;
          }, n3.prototype.SetParagraphSplitFlag = function(t4) {
            var n4, e3, i3 = this.v0t;
            for (n4 = 0, e3 = i3.Count; n4 < e3; n4++) i3.Get(n4).SplitSpaceFlag = t4;
          }, n3.prototype.CreateDrawingTextBody = function(t4, n4) {
            return new G(t4, n4);
          }, n3;
        })(D), n2.DrawingText = _, O = { Bold: 1, Color: 2, Italic: 4, Name: 8, OutlineFont: 16, Shadow: 32, Size: 64, Strikethrough: 128, Subscript: 256, Superscript: 512, ThemeFont: 1024, Underline: 2048 }, E = (function(t3) {
          function n3(n4, e3, i3) {
            var r2, o2 = this;
            return e3 === j && (e3 = N), i3 === j && (i3 = N), (r2 = o2 = t3.call(this, e3) || this).y0t = c.ThemeFont.None, r2.w0t = N, r2.M0t = N, r2.C0t = N, r2.DJ = n4, r2.S0t = new u.FillFormat(n4, e3 && e3.FillInternal), r2.sft = e3, i3 && (k(i3.Size) || (r2._size = i3.Size), k(i3.Bold) || (r2.T0t = i3.Bold)), r2;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Bold", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Bold) ? t4.Bold : this.T0t;
          }, set: function(t4) {
            this.T0t = t4, this.SetState(O.Bold, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Color", { get: function() {
            return this.FillInternal.Color;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Italic", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Italic) ? t4.Italic : this.Z0t;
          }, set: function(t4) {
            this.Z0t = t4, this.SetState(O.Italic, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Name", { get: function() {
            var t4 = this.sft;
            return t4 && !this.HasOwnFont() ? t4.Name : this.GetOwnFont();
          }, set: function(t4) {
            this.SetFont(t4), this.ClearOOFontNames();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Size", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Size) ? t4.Size : this._size;
          }, set: function(t4) {
            this._size = t4, this.SetState(O.Size, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Strikethrough", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Strikethrough) ? t4.Strikethrough : this.W0t;
          }, set: function(t4) {
            this.W0t = t4, this.SetState(O.Strikethrough, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Subscript", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Subscript) ? t4.Subscript : this.Q0t;
          }, set: function(t4) {
            this.Q0t = t4, this.SetState(O.Subscript, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Superscript", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Superscript) ? t4.Superscript : this.K0t;
          }, set: function(t4) {
            this.K0t = t4, this.SetState(O.Superscript, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Underline", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.Underline) ? t4.Underline : this.J0t;
          }, set: function(t4) {
            this.J0t = t4, this.SetState(O.Underline, true);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ThemeFont", { get: function() {
            var t4 = this.sft;
            return t4 && !this.GetState(O.ThemeFont) ? t4.ThemeFont : this.y0t;
          }, set: function(t4) {
            this.SetThemeFont(t4), this.ClearOOFontNames();
          }, enumerable: false, configurable: true }), n3.prototype.IsDirtyIncludingParent = function(n4) {
            return !(!this.S0t || !this.S0t.IsDirtyIncludingParent(n4)) || t3.prototype.IsDirtyIncludingParent.call(this, n4);
          }, n3.prototype.HasOwnFont = function() {
            return this.IsDirty(O.Name) || this.IsDirty(O.ThemeFont);
          }, n3.prototype.OnParentChanged = function(t4) {
            this.sft = t4, this.S0t && (this.S0t.ParentStateful = t4 && t4.FillInternal);
          }, n3.prototype.GetOwnFont = function() {
            return this.y0t === c.ThemeFont.None ? this.Zc : this.DJ.Cft(this.y0t);
          }, n3.prototype.SetFont = function(t4) {
            var n4 = this;
            t4 === A.CHART_CS_HEAD_FONT || t4 === A.CHART_EA_HEAD_FONT || t4 === A.CHART_LATIN_HEAD_FONT ? n4.SetThemeFont(c.ThemeFont.Major) : t4 === A.CHART_CS_BODY_FONT || t4 === A.CHART_EA_BODY_FONT || t4 === A.CHART_LATIN_BODY_FONT ? n4.SetThemeFont(c.ThemeFont.Minor) : (n4.Zc = t4, n4.SetState(O.Name, true), n4.y0t = c.ThemeFont.None, n4.SetState(O.ThemeFont, false));
          }, n3.prototype.SetThemeFont = function(t4) {
            var n4 = this;
            n4.y0t = t4, n4.SetState(O.ThemeFont, true), n4.Zc = N, n4.SetState(O.Name, false);
          }, n3.prototype.ClearOOFontNames = function() {
            this.M0t = N, this.C0t = N, this.w0t = N;
          }, n3.prototype.GetActualFormat = function() {
            var t4, e3, i3 = this, r2 = new n3(i3.DJ);
            for (t4 in O) if (e3 = O[t4], this.IsDirty(e3)) switch (e3) {
              case O.Bold:
                r2.Bold = this.Bold;
                break;
              case O.Italic:
                r2.Italic = this.Italic;
                break;
              case O.Name:
                r2.Name = this.Name;
                break;
              case O.Size:
                r2.Size = this.Size;
                break;
              case O.Strikethrough:
                r2.Strikethrough = this.Strikethrough;
                break;
              case O.Subscript:
                r2.Superscript = this.Superscript;
                break;
              case O.Superscript:
                r2.Subscript = this.Subscript;
                break;
              case O.ThemeFont:
                r2.ThemeFont = this.ThemeFont;
                break;
              case O.Underline:
                r2.Underline = this.Underline;
            }
            return r2;
          }, Object.defineProperty(n3.prototype, "FillInternal", { get: function() {
            var t4 = this;
            return t4.S0t || (t4.S0t = new u.FillFormat(t4.DJ, t4.sft && t4.sft.FillInternal)), t4.S0t;
          }, enumerable: false, configurable: true }), n3.prototype.TextCharacterProperties_FromOOModel = function(t4) {
            var n4, e3 = this;
            e3.SuspendClearChildrenState(), e3.X0t = t4, k(t4.latin) || (e3.M0t = t4.latin.typeface), k(t4.ea) || (e3.w0t = t4.ea.typeface), k(t4.cs) || (e3.C0t = t4.cs.typeface), e3.M0t ? e3.SetFont(e3.M0t) : e3.w0t ? e3.SetFont(e3.w0t) : e3.C0t && e3.SetFont(e3.C0t), k(t4.sz) || (n4 = t4.sz, e3._size !== n4 && (e3.Size = n4)), k(t4.b) || (e3.Bold = t4.b), k(t4.i) || (e3.Italic = t4.i), k(t4.strike) || (e3.Strikethrough = t4.strike === c.ST_TextStrikeType.sngStrike || t4.strike === c.ST_TextStrikeType.dblStrike), k(t4.u) || (e3.Underline = t4.u), k(t4.baseline) || 0 === t4.baseline ? e3.Subscript = false : e3.Subscript = true, k(t4.solidFill) ? k(t4.noFill) ? k(t4.blipFill) ? k(t4.gradFill) ? k(t4.pattFill) ? e3.SetFillField(N) : e3.FillInternal.FromOOModel(t4.pattFill, c.ColorFillType.PatternFillProperties) : e3.FillInternal.FromOOModel(t4.gradFill, c.ColorFillType.GradientFillProperties) : e3.FillInternal.FromOOModel(t4.blipFill, c.ColorFillType.BlipFillProperties) : e3.FillInternal.Color.ColorType = c.SolidColorType.None : e3.FillInternal.FromOOModel(t4.solidFill, c.ColorFillType.SolidColorFillProperties), e3.ResumeClearChilrenState();
          }, n3.prototype.TextCharacterProperties_FromSJSOOModel = function(t4) {
            var n4, e3, i3 = this;
            i3.SuspendClearChildrenState(), k(t4.latin) || (i3.M0t = t4.latin.typeface), k(t4.ea) || (i3.w0t = t4.ea.typeface), k(t4.cs) || (i3.C0t = t4.cs.typeface), i3.M0t ? i3.SetFont(i3.M0t) : i3.w0t ? i3.SetFont(i3.w0t) : i3.C0t && i3.SetFont(i3.C0t), k(t4.sz) || (n4 = h(f(t4.sz) / 100), i3._size !== n4 && (i3.Size = n4)), k(t4.b) || (i3.Bold = l(t4.b)), k(t4.i) || (i3.Italic = l(t4.i)), k(t4.strike) || (i3.Strikethrough = c.ST_TextStrikeType[t4.strike] === c.ST_TextStrikeType.sngStrike || c.ST_TextStrikeType[t4.strike] === c.ST_TextStrikeType.dblStrike), k(t4.u) || (i3.Underline = c.ST_TextUnderlineType[t4.u]), i3.Subscript = false, e3 = t4.solidFill, k(e3) ? k(t4.noFill) ? k(t4.blipFill) ? k(t4.gradFill) ? k(t4.pattFill) ? i3.SetFillField(N) : i3.FillInternal.FromSJSOOModel(t4.pattFill, c.ColorFillType.PatternFillProperties) : i3.FillInternal.FromSJSOOModel(t4.gradFill, c.ColorFillType.GradientFillProperties) : i3.FillInternal.FromSJSOOModel(t4.blipFill, c.ColorFillType.BlipFillProperties) : i3.FillInternal.Color.ColorType = c.SolidColorType.None : i3.FillInternal.FromSJSOOModel(e3, c.ColorFillType.SolidColorFillProperties), i3.ResumeClearChilrenState();
          }, n3.prototype.AdjustStateful = function(t4, n4) {
            k(t4) || (t4.SetParentForChildren(n4), k(n4) || (n4.ParentStateful = t4.ParentStateful), t4.ParentStateful = N);
          }, n3.prototype.SetFillField = function(t4) {
            this.AdjustStateful(this.S0t, t4), this.S0t = t4;
          }, n3.prototype.TextCharacterProperties_ToOOModel = function() {
            var t4, n4, e3, i3, r2 = this;
            return r2.IsDirtyIncludingParent(true) ? (t4 = r2.X0t || {}, r2.IsPropDirtyIncludingParent(O.Name, true) ? (n4 = r2.Name, k(t4.latin) && (t4.latin = {}), t4.latin.typeface = n4) : r2.IsPropDirtyIncludingParent(O.ThemeFont, true) && r2.ThemeFont !== c.ThemeFont.None ? (k(t4.latin) && (t4.latin = {}), t4.latin.typeface = r2.ThemeFont === c.ThemeFont.Major ? A.CHART_LATIN_HEAD_FONT : A.CHART_LATIN_BODY_FONT) : (r2.M0t || r2.w0t || r2.C0t) && (r2.M0t && (k(t4.latin) && (t4.latin = {}), t4.latin.typeface = r2.M0t), r2.w0t && (k(t4.ea) && (t4.ea = {}), t4.ea.typeface = r2.w0t), r2.C0t && (k(t4.cs) && (t4.cs = {}), t4.cs.typeface = r2.C0t)), r2.IsPropDirtyIncludingParent(O.Size, true) && r2.Size > 1 ? t4.sz = r2.Size : delete t4.sz, r2.IsPropDirtyIncludingParent(O.Bold, true) && (t4.b = r2.Bold), r2.IsPropDirtyIncludingParent(O.Italic, true) && (t4.i = r2.Italic), r2.IsPropDirtyIncludingParent(O.Strikethrough, true) && (t4.strike = r2.Strikethrough ? c.ST_TextStrikeType.sngStrike : c.ST_TextStrikeType.noStrike), r2.IsPropDirtyIncludingParent(O.Underline, true) && (t4.u = r2.Underline), r2.Subscript && k(t4.baseline) ? t4.baseline = -25e3 : r2.Superscript && k(t4.baseline) ? t4.baseline = 3e4 : r2.Subscript || r2.Superscript || delete t4.baseline, x(t4), !k(r2.S0t) && r2.S0t.IsDirtyIncludingParent(true) && ((i3 = (e3 = r2.S0t.ToOOModel()).colorFillType) === c.ColorFillType.SolidColorFillProperties ? t4.solidFill = e3 : i3 === c.ColorFillType.PatternFillProperties ? t4.pattFill = e3 : i3 === c.ColorFillType.GradientFillProperties ? t4.gradFill = e3 : i3 === c.ColorFillType.BlipFillProperties ? t4.blipFill = e3 : i3 === c.ColorFillType.NoFillProperties && (t4.noFill = true), delete e3.colorFillType), t4) : {};
          }, n3.prototype.TextCharacterProperties_ToSJSOOModel = function() {
            var t4, n4, e3 = this;
            return e3.IsDirtyIncludingParent(true) ? (t4 = {}, !k(e3.S0t) && e3.S0t.IsDirtyIncludingParent(true) && e3.S0t.ToSJS_FillGroup(t4), e3.IsPropDirtyIncludingParent(O.Name, true) ? (n4 = e3.Name, k(t4.latin) && (t4.latin = {}), t4.latin.typeface = y(n4)) : e3.IsPropDirtyIncludingParent(O.ThemeFont, true) && e3.ThemeFont !== c.ThemeFont.None ? (k(t4.latin) && (t4.latin = {}), t4.latin.typeface = y(e3.ThemeFont === c.ThemeFont.Major ? A.CHART_LATIN_HEAD_FONT : A.CHART_LATIN_BODY_FONT)) : (e3.M0t || e3.w0t || e3.C0t) && (e3.M0t && (k(t4.latin) && (t4.latin = {}), t4.latin.typeface = y(e3.M0t)), e3.w0t && (k(t4.ea) && (t4.ea = {}), t4.ea.typeface = y(e3.w0t)), e3.C0t && (k(t4.cs) && (t4.cs = {}), t4.cs.typeface = y(e3.C0t))), e3.IsPropDirtyIncludingParent(O.Size, true) && e3.Size > 1 ? t4.sz = Math.round(100 * r.ExcelHelper.pixelToPoint(e3.Size)) + "" : delete t4.sz, e3.IsPropDirtyIncludingParent(O.Bold, true) && (t4.b = e3.Bold ? "1" : "0"), e3.IsPropDirtyIncludingParent(O.Italic, true) && (t4.i = e3.Italic ? "1" : "0"), e3.IsPropDirtyIncludingParent(O.Strikethrough, true) && (t4.strike = e3.Strikethrough ? c.ST_TextStrikeType[1] : c.ST_TextStrikeType[0]), e3.IsPropDirtyIncludingParent(O.Underline, true) && (t4.u = c.ST_TextUnderlineType[e3.Underline]), e3.Subscript && k(t4.baseline) ? t4.baseline = -25e3 : e3.Superscript && k(t4.baseline) ? t4.baseline = 3e4 : e3.Subscript || e3.Superscript || delete t4.baseline, t4) : {};
          }, n3.prototype.FromOOModel = function(t4) {
            var n4 = this;
            n4.Bold = t4.Bold, n4.Italic = t4.Italic, n4.Name = t4.Name, t4.Scheme !== c.ThemeFont.None && (n4.ThemeFont = t4.Scheme), n4.Size = t4.Size, n4.Underline = T.ConvertToTextUnderlineType(t4.Underline), n4.Strikethrough = t4.Strike, n4.Subscript = (t4.VertAlign & c.VertAlignType.Subscript) === c.VertAlignType.Subscript, n4.Superscript = (t4.VertAlign & c.VertAlignType.Superscript) === c.VertAlignType.Superscript, n4.FillInternal.ColorInternal.ColorData_FromOOModel(t4.Color);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.FromOOModel(t4);
          }, n3.prototype.ToOOModel = function() {
            var t4, n4 = this, e3 = new s.FontData();
            return e3.Bold = n4.Bold, e3.Italic = n4.Italic, e3.Name = n4.Name, e3.Scheme = n4.ThemeFont, e3.Size = n4.Size, e3.Underline = T.ToUnderlineType(n4.Underline), e3.Strike = n4.Strikethrough, n4.Subscript ? e3.VertAlign = c.VertAlignType.Subscript : n4.Superscript && (e3.VertAlign = c.VertAlignType.Superscript), (t4 = n4.S0t) && t4.ColorInternal.IsDirtyIncludingParent(true) && t4.ColorInternal.ColorType !== c.SolidColorType.None && (e3.Color = t4.ColorInternal.ColorData_ToOOModel()), e3;
          }, n3.prototype.ToSJSOOModel = function() {
            this.ToOOModel();
          }, n3;
        })(o.StatefulBase), n2.FontFormat = E, R = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.DJ = t4, e3.A0t = n3, e3._font = new E(t4), e3._font.ParentStateful = n3.Font;
          }
          return Object.defineProperty(t3.prototype, "Font", { get: function() {
            return this._font;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Text", { get: function() {
            return "";
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsCustomText", { get: function() {
            return false;
          }, enumerable: false, configurable: true }), t3.prototype.Delete = function() {
            this.A0t.DeleteElement(this), this.A0t = N;
          }, t3.prototype.FromOOModel = function(t4) {
          }, t3.prototype.ToOOModel = function() {
          }, t3.prototype.ToSJSOOModel = function(t4) {
          }, t3;
        })(), n2.DrawingTextElement = R, L = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, i3) || this, o2 = r2;
            return o2.I0t = N, o2.x0t = N, o2._text = e3, o2.DJ = n4, o2.elementType = c.TextParagraphElementType.RegularTextRun, r2;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Text", { get: function() {
            return this._text;
          }, set: function(t4) {
            this._text = t4;
          }, enumerable: false, configurable: true }), n3.prototype.FromOOModel = function(t4) {
            var n4 = this;
            n4.I0t = t4, n4._text = t4.t, k(t4.rPr) ? n4._font = new E(n4.DJ, n4._font.ParentStateful) : n4._font.TextCharacterProperties_FromOOModel(t4.rPr);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            var n4, e3 = this;
            e3.x0t = t4, e3._text = null !== (n4 = g(t4.t.v_)) && void 0 !== n4 ? n4 : "", k(t4.rPr) ? e3._font = new E(e3.DJ, e3._font.ParentStateful) : e3._font.TextCharacterProperties_FromSJSOOModel(t4.rPr);
          }, n3.prototype.ToOOModel = function() {
            var t4 = this.I0t || { elementType: c.TextParagraphElementType.RegularTextRun };
            return t4.t = this.Text, t4.rPr = this._font.TextCharacterProperties_ToOOModel(), t4;
          }, n3.prototype.ToSJSOOModel = function(t4) {
            var n4, e3 = this.x0t || {};
            return e3.rPr = this._font.TextCharacterProperties_ToSJSOOModel(), n4 = t4 ? b(this.Text) : this.Text, e3.t = { v_: m(n4) }, e3;
          }, n3;
        })(R), n2.DrawingTextRun = L, F = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, i3) || this, o2 = r2;
            return o2._type = e3, o2.d0t = n4, o2.N0t = new D(o2.d0t), o2.elementType = c.TextParagraphElementType.TextField, r2;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Type", { get: function() {
            return this._type;
          }, set: function(t4) {
            this._type = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Text", { get: function() {
            return this.Type === c.TextFieldType.TxLink ? this.N0t.ReferingText : T.GetTextFieldTypeText(this.Type);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Worksheet", { get: function() {
            return this.d0t && this.d0t.Parent;
          }, enumerable: false, configurable: true }), n3.prototype.FromOOModel = function(t4) {
            var n4 = this;
            n4.cft = t4, n4.Type = T.GetTextFieldType(t4.type), k(t4.rPr) ? n4._font = new E(n4.DJ, n4._font.ParentStateful) : n4._font.TextCharacterProperties_FromOOModel(t4.rPr);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            var n4 = this;
            n4.fft = t4, n4.Type = T.GetTextFieldType(t4.type), k(t4.rPr) ? n4._font = new E(n4.DJ, n4._font.ParentStateful) : n4._font.TextCharacterProperties_FromSJSOOModel(t4.rPr);
          }, n3.prototype.q0t = function() {
            var t4;
            return ("{" + this.$0t(8) + "-" + this.$0t(4) + "-" + this.$0t(4) + "-" + this.$0t(4) + "-" + this.$0t(12) + "}").toUpperCase();
          }, n3.prototype.$0t = function(t4) {
            return Math.random().toString(16).slice(-t4);
          }, n3.prototype.ToOOModel = function() {
            var t4 = this, n4 = t4.cft || { elementType: c.TextParagraphElementType.TextField }, e3 = /{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}/;
            return (k(n4.id) || n4.id && !e3.test(n4.id)) && (n4.id = this.q0t()), n4.type = T.GetTextFieldTypeString(t4.Type), k(n4.rPr) && (n4.rPr = {}), n4.rPr = t4._font.TextCharacterProperties_ToOOModel(), n4.t = t4.Text, n4;
          }, n3.prototype.ToSJSOOModel = function() {
            var t4 = this, n4 = t4.fft || {}, e3 = /{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}/;
            return (k(n4.id) || n4.id && !e3.test(n4.id)) && (n4.id = this.q0t()), n4.type = T.GetTextFieldTypeString(t4.Type), k(n4.rPr) && (n4.rPr = {}), n4.rPr = t4._font.TextCharacterProperties_ToSJSOOModel(), n4.t = { v_: m(t4.Text) }, n4;
          }, n3.prototype.UpdateTextByFormulas = function(t4, n4) {
            this.N0t.UpdateTextByFormulas(t4, n4);
          }, n3;
        })(R), n2.DrawingTextField = F, B = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.elementType = c.TextParagraphElementType.TextLineBreak, i3;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Text", { get: function() {
            return "\r\n";
          }, enumerable: false, configurable: true }), n3.prototype.FromOOModel = function(t4) {
            this.cft = t4;
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.fft = t4;
          }, n3.prototype.ToOOModel = function() {
            return this.cft || { elementType: c.TextParagraphElementType.TextLineBreak };
          }, n3.prototype.ToSJSOOModel = function() {
            return this.fft || {};
          }, n3;
        })(R), n2.DrawingLineBreak = B, P = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.k0t = N, e3.D0t = N, e3._0t = " ", e3.DJ = t4, e3.v0t = n3, e3._font = new E(t4), e3._font.ParentStateful = e3.v0t.Font, e3.j0t = [];
          }
          return Object.defineProperty(t3.prototype, "SplitSpaceFlag", { get: function() {
            return this._0t;
          }, set: function(t4) {
            this._0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Algn", { get: function() {
            return this.E0t;
          }, set: function(t4) {
            this.E0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Text", { get: function() {
            var t4, n3, e3, i3 = "";
            for (t4 = 0, n3 = this.j0t; t4 < n3.length; t4++) e3 = n3[t4], k(e3.Text) || (i3 += e3.Text);
            return i3;
          }, set: function(t4) {
            this.Clear(), this.AddRun(t4);
          }, enumerable: false, configurable: true }), t3.prototype.Get = function(t4) {
            return this.j0t[t4];
          }, Object.defineProperty(t3.prototype, "Count", { get: function() {
            return this.j0t.length;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Font", { get: function() {
            return this._font;
          }, enumerable: false, configurable: true }), t3.prototype.AddRun = function(t4, n3) {
            return this.AddRunInternal(t4, n3);
          }, t3.prototype.AddField = function(t4) {
            return this.AddFieldInternal(t4);
          }, t3.prototype.Clear = function() {
            var t4, n3, e3;
            for (t4 = 0, n3 = this.j0t; t4 < n3.length; t4++) (e3 = n3[t4]).Font.ParentStateful = N;
            this.j0t.length = 0;
          }, t3.prototype.FromOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this;
            if (s2.k0t = t4, t4.pPr && s2.FromParagraphProperties(t4.pPr), t4.elements) for (n3 = t4.elements.length, e3 = s2.j0t = [], i3 = s2.DJ, r2 = 0; r2 < n3; r2++) u2 = void 0, (a2 = (o2 = t4.elements[r2]).elementType) === c.TextParagraphElementType.RegularTextRun ? u2 = s2.CreateDrawingTextRun(i3, o2.t) : a2 === c.TextParagraphElementType.TextLineBreak ? u2 = s2.CreateDrawingLineBreak(i3) : a2 === c.TextParagraphElementType.TextField && (u2 = s2.CreateDrawingTextField(i3, T.GetTextFieldType(o2.type))), u2 && (u2.FromOOModel(o2), e3.push(u2));
          }, t3.prototype.FromSJSOOModel = function(t4) {
            var n3, e3, i3 = this;
            i3.D0t = t4, n3 = i3.j0t = [], e3 = i3.DJ, t4.c_ && t4.c_.forEach((function(t5) {
              var r2, o2;
              t5.pPr ? i3.FromSJSParagraphProperties(t5.pPr) : t5.r ? (r2 = i3.CreateDrawingTextRun(e3, t5.r.t ? t5.r.t.v_ : ""), o2 = t5.r) : t5.br ? (r2 = i3.CreateDrawingLineBreak(e3), o2 = t5.br) : t5.fld && (r2 = i3.CreateDrawingTextField(e3, T.GetTextFieldType(t5.fld.type)), o2 = t5.fld), r2 && (r2.FromSJSOOModel(o2), n3.push(r2));
            }));
          }, t3.prototype.FromParagraphProperties = function(t4) {
            if (t4) {
              var n3 = this;
              k(t4.algn) || (n3.E0t = t4.algn), t4.defRPr && n3._font.TextCharacterProperties_FromOOModel(t4.defRPr);
            }
          }, t3.prototype.FromSJSParagraphProperties = function(t4) {
            if (t4) {
              var n3 = this;
              k(t4.algn) || (n3.E0t = c.ST_TextAlignType[t4.algn]), t4.defRPr && n3._font.TextCharacterProperties_FromSJSOOModel(t4.defRPr);
            }
          }, t3.prototype.ToParagraphProperties = function(t4) {
            var n3 = this;
            return k(n3.E0t) || (t4.algn = n3.E0t), k(n3._font) || (t4.defRPr = n3._font.TextCharacterProperties_ToOOModel()), t4;
          }, t3.prototype.ToSJSParagraphProperties = function(t4) {
            var n3 = this;
            return k(n3.E0t) || 0 === n3.E0t || (t4.algn = c.ST_TextAlignType[n3.E0t]), k(n3._font) || (t4.defRPr = n3._font.TextCharacterProperties_ToSJSOOModel()), t4;
          }, t3.prototype.AddRunInternal = function(t4, n3) {
            var e3, i3, r2 = this;
            return n3 === j && (n3 = -1), e3 = r2.CreateDrawingTextRun(r2.DJ, t4), i3 = this.j0t, n3 < 0 || n3 >= i3.length ? i3.push(e3) : i3.splice(n3, 0, e3), e3;
          }, t3.prototype.AddFieldInternal = function(t4) {
            var n3 = this.CreateDrawingTextField(this.DJ, t4);
            return this.j0t.push(n3), n3;
          }, t3.prototype.ToOOModel = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.k0t || { elements: [] };
            for (o2.pPr = r2.ToParagraphProperties(o2.pPr || {}), t4 = o2.elements = [], n3 = 0, i3 = (e3 = r2.j0t).length; n3 < i3; n3++) t4.push(e3[n3].ToOOModel());
            return (r2.DJ.DrawingType === c.DrawingType.Chart || k(r2.k0t)) && k(o2.endParaRPr) && (o2.endParaRPr = {}), o2;
          }, t3.prototype.ToSJSOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.D0t || { n_: "p", c_: [] }, s2 = p(u2, "pPr") || {}, f2 = p(u2, "endParaRPr") || {};
            for (u2.c_ = [], a2.ToSJSParagraphProperties(s2), u2.c_.push({ pPr: s2 }), n3 = 0, i3 = (e3 = a2.j0t).length; n3 < i3; n3++) r2 = e3[n3].elementType, o2 = e3[n3].ToSJSOOModel(t4), r2 === c.TextParagraphElementType.RegularTextRun ? u2.c_.push({ r: o2 }) : r2 === c.TextParagraphElementType.TextLineBreak ? u2.c_.push({ br: o2 }) : r2 === c.TextParagraphElementType.TextField && u2.c_.push({ fld: o2 });
            return u2.c_.push({ endParaRPr: f2 }), u2;
          }, t3.prototype.To2016ChartOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.k0t || { elements: [] };
            for (u2.pPr || (u2.pPr = {}), n3 = u2.pPr, k(a2._font) || (n3.defRPr = a2._font.TextCharacterProperties_ToOOModel()), e3 = u2.elements = [], i3 = 0, o2 = (r2 = a2.j0t).length; i3 < o2; i3++) e3.push(r2[i3].ToOOModel());
            return k(a2._font) || (u2.endParaRPr = a2._font.TextCharacterProperties_ToOOModel()), u2;
          }, t3.prototype.To2016ChartSJSOOModel = function() {
            var t4 = this, n3 = t4.ToSJSOOModel();
            return k(t4._font) || (n3.c_[n3.c_.length - 1].endParaRPr = t4._font.TextCharacterProperties_ToSJSOOModel()), n3;
          }, t3.prototype.Delete = function() {
            var t4, n3 = this;
            for (t4 = n3.j0t.length - 1; t4 >= 0; t4--) n3.DeleteElement(n3.j0t[t4]);
            n3.v0t.DeleteParagraph(n3), n3.v0t = N;
          }, t3.prototype.DeleteElement = function(t4) {
            t4.Font.ParentStateful = N;
            var n3 = this.j0t.indexOf(t4);
            n3 >= 0 && this.j0t.splice(n3, 1);
          }, t3.prototype.CreateDrawingTextRun = function(t4, n3) {
            return new L(t4, n3, this);
          }, t3.prototype.CreateDrawingLineBreak = function(t4) {
            return new B(t4, this);
          }, t3.prototype.CreateDrawingTextField = function(t4, n3) {
            return new F(t4, n3, this);
          }, t3;
        })(), n2.DrawingTextParagraph = P, G = (function() {
          function t3(t4, n3) {
            this.O0t = [], this.R0t = N, this.B0t = N, this.DJ = t4, this.b0t = n3, this._font = new E(t4, N, n3), this.L0t = void 0, this.F0t = { top: void 0, bottom: void 0, left: void 0, right: void 0 }, this.P0t = void 0, this.G0t = void 0, this.U0t = void 0, this.lrt = void 0, this.H0t = void 0, this.z0t = void 0;
          }
          return Object.defineProperty(t3.prototype, "Text", { get: function() {
            var t4, n3, e3, i3 = "";
            for (t4 = 0, n3 = this.O0t; t4 < n3.length; t4++) "" !== i3 && (i3 += "\r\n"), i3 += (e3 = n3[t4]).Text;
            return i3;
          }, set: function(t4) {
            this.Clear(), this.AddParagraph(t4);
          }, enumerable: false, configurable: true }), t3.prototype.Get = function(t4) {
            return this.O0t[t4];
          }, Object.defineProperty(t3.prototype, "Count", { get: function() {
            return this.O0t.length;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Font", { get: function() {
            return this._font;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Rotation", { get: function() {
            return this.L0t;
          }, set: function(t4) {
            this.L0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Inset", { get: function() {
            return this.F0t;
          }, set: function(t4) {
            this.F0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "anchorCtr", { get: function() {
            return this.P0t;
          }, set: function(t4) {
            this.P0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "anchor", { get: function() {
            return this.G0t;
          }, set: function(t4) {
            this.G0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "vert", { get: function() {
            return this.U0t;
          }, set: function(t4) {
            this.U0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "wrap", { get: function() {
            return this.lrt;
          }, set: function(t4) {
            this.lrt = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "horzOverflow", { get: function() {
            return this.H0t;
          }, set: function(t4) {
            this.H0t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "vertOverflow", { get: function() {
            return this.z0t;
          }, set: function(t4) {
            this.z0t = t4;
          }, enumerable: false, configurable: true }), t3.prototype.setFontColor = function(t4, n3) {
            var e3, i3 = this, r2 = i3.O0t.length;
            for (i3._font && i3._font.Color.setColor(t4, n3), e3 = 0; e3 < r2; e3++) i3.O0t[e3].Font.Color.setColor(t4, n3);
          }, t3.prototype.setFontTransparency = function(t4) {
            var n3, e3 = this, i3 = e3.O0t.length;
            for (e3._font && (e3._font.Color.Transparency = t4), n3 = 0; n3 < i3; n3++) e3.O0t[n3].Font.Color.Transparency = t4;
          }, t3.prototype.updateFont = function(t4, n3, e3, i3) {
            var r2 = this, o2 = [r2._font];
            r2.O0t.forEach((function(t5) {
              o2.push(t5.Font);
            })), o2.forEach((function(r3) {
              r3 && (r3.Name = t4, r3.Size = n3, r3.Bold = e3, r3.Italic = i3);
            }));
          }, t3.prototype.AddParagraph = function(t4, n3) {
            var e3, i3;
            return n3 === j && (n3 = -1), e3 = this.CreateDrawingTextParagraph(this.DJ), k(t4) || e3.AddRun(t4), i3 = this.O0t, n3 < 0 || n3 >= i3.length ? i3.push(e3) : i3.splice(n3, 0, e3), e3;
          }, t3.prototype.Clear = function() {
            var t4, n3, e3;
            for (t4 = 0, n3 = this.O0t; t4 < n3.length; t4++) (e3 = n3[t4]).Font.ParentStateful = N;
            this.O0t.length = 0;
          }, t3.prototype.ToOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.R0t || { p: [] }, s2 = this.O0t, c2 = s2.length;
            if (0 === c2 && !this._font.IsDirtyIncludingParent()) return N;
            if (n3 = u2.p = [], c2 > 0) for (e3 = 0; e3 < c2; e3++) i3 = s2[e3], n3.push(t4 ? i3.To2016ChartOOModel() : i3.ToOOModel());
            else (o2 = (r2 = a2.CreateDrawingTextParagraph(a2.DJ)).ToOOModel()).pPr.defRPr = a2._font.TextCharacterProperties_ToOOModel(), n3.push(o2);
            return u2.bodyPr = a2.t1t(u2.bodyPr || {}), k(u2.lstStyle) && (u2.lstStyle = {}), u2;
          }, t3.prototype.ToSJSOOModel = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = u2.B0t || { bodyPr: {}, p: [] }, c2 = this.O0t, f2 = c2.length;
            if (0 === f2 && !this._font.IsDirtyIncludingParent()) return N;
            if (s2.bodyPr = u2.n1t(s2.bodyPr || {}), e3 = s2.p = [], f2 > 0) for (i3 = 0; i3 < f2; i3++) r2 = c2[i3], e3.push(t4 ? r2.To2016ChartSJSOOModel() : r2.ToSJSOOModel(n3));
            else (a2 = (o2 = u2.CreateDrawingTextParagraph(u2.DJ)).ToSJSOOModel()).c_[0].pPr.defRPr = u2._font.TextCharacterProperties_ToSJSOOModel(), e3.push(a2);
            return s2;
          }, t3.prototype.FromOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this;
            for (v2.R0t = t4, n3 = 0, e3 = v2.O0t; n3 < e3.length; n3++) (i3 = e3[n3]).Clear();
            if (v2.O0t.length = 0, r2 = new E(v2.DJ, N, v2.b0t), (o2 = v2._font) && (o2.SetParentForChildren(r2), r2.ParentStateful = o2.ParentStateful, o2.ParentStateful = N), v2._font = r2, t4.p && t4.p.length) for (a2 = t4.p[0].pPr, u2 = t4.p[0].elements && t4.p[0].elements[0] && t4.p[0].elements[0].rPr, s2 = t4.p[0].endParaRPr, c2 = void 0, a2 && a2.defRPr && !S(a2.defRPr) ? c2 = z(z({}, a2.defRPr), u2) : s2 && !S(s2) ? c2 = s2 : u2 && !S(u2) && (c2 = u2), c2 && v2._font.TextCharacterProperties_FromOOModel(c2), f2 = 0, l2 = t4.p; f2 < l2.length; f2++) h2 = l2[f2], (d2 = v2.CreateDrawingTextParagraph(v2.DJ)).FromOOModel(h2), v2.O0t.push(d2);
            v2.e1t(t4.bodyPr);
          }, t3.prototype.FromSJSOOModel = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2 = this;
            for (m2.B0t = t4, n3 = 0, e3 = m2.O0t; n3 < e3.length; n3++) (i3 = e3[n3]).Clear();
            if (m2.O0t.length = 0, r2 = new E(m2.DJ, N, m2.b0t), (o2 = m2._font) && (o2.SetParentForChildren(r2), r2.ParentStateful = o2.ParentStateful, o2.ParentStateful = N), m2._font = r2, t4.p = t4.p && [].concat(t4.p), t4.p && t4.p.length) for (a2 = t4.p[0], u2 = p(a2, "pPr"), c2 = (s2 = p(a2, "r") || p(a2, "br") || p(a2, "fld")) && s2.rPr, f2 = p(a2, "endParaRPr"), l2 = void 0, u2 && u2.defRPr && !S(u2.defRPr) ? l2 = z(z({}, u2.defRPr), c2) : f2 && !S(f2) ? l2 = f2 : c2 && !S(c2) && (l2 = c2), l2 && m2._font.TextCharacterProperties_FromSJSOOModel(l2), h2 = 0, d2 = t4.p; h2 < d2.length; h2++) v2 = d2[h2], (g2 = m2.CreateDrawingTextParagraph(m2.DJ)).FromSJSOOModel(v2), m2.O0t.push(g2);
            m2.i1t(t4.bodyPr);
          }, t3.prototype.e1t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2;
            t4 && (n3 = this, e3 = t4.rot, k(e3) || (n3.L0t = e3), i3 = t4.anchorCtr, k(i3) || (n3.P0t = i3), r2 = t4.anchor, k(r2) || (n3.G0t = r2), o2 = t4.vert, k(o2) || (n3.U0t = o2), a2 = t4.wrap, k(a2) || (n3.lrt = a2), u2 = t4.horzOverflow, k(u2) || (n3.H0t = u2), s2 = t4.vertOverflow, k(s2) || (n3.z0t = s2), c2 = n3.F0t, k(t4.tIns) || (c2.top = d(t4.tIns, 6)), k(t4.bIns) || (c2.bottom = d(t4.bIns, 6)), k(t4.lIns) || (c2.left = d(t4.lIns, 6)), k(t4.rIns) || (c2.right = d(t4.rIns, 6)));
          }, t3.prototype.t1t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.Rotation;
            return k(c2) || (t4.rot = c2), n3 = s2.P0t, k(n3) || (t4.anchorCtr = n3), e3 = s2.G0t, k(e3) || (t4.anchor = e3), i3 = s2.U0t, k(i3) || (t4.vert = i3), r2 = s2.lrt, k(r2) || (t4.wrap = r2), o2 = s2.H0t, k(o2) || (t4.horzOverflow = o2), a2 = s2.z0t, k(a2) || (t4.vertOverflow = a2), u2 = s2.F0t, k(u2.top) || (t4.tIns = v(u2.top)), k(u2.bottom) || (t4.bIns = v(u2.bottom)), k(u2.left) || (t4.lIns = v(u2.left)), k(u2.right) || (t4.rIns = v(u2.right)), t4;
          }, t3.prototype.i1t = function(t4) {
            var n3, e3, i3 = this;
            t4.rot ? (n3 = f(t4.rot), k(n3) || -6e7 === n3 || (i3.L0t = n3 / 6e4)) : c.ST_TextVerticalType[t4.vert] === c.ST_TextVerticalType.horz && (i3.L0t = 0), k(t4.anchorCtr) || (i3.P0t = l(t4.anchorCtr)), k(t4.anchor) || (i3.G0t = c.ST_TextAnchoringType[t4.anchor]), k(t4.vert) || (i3.U0t = c.ST_TextVerticalType[t4.vert]), k(t4.wrap) || (i3.lrt = c.ST_TextWrappingType[t4.wrap]), k(t4.horzOverflow) || (i3.H0t = c.ST_TextHorzOverflowType[t4.horzOverflow]), k(t4.vertOverflow) || (i3.z0t = c.ST_TextVertOverflowType[t4.vertOverflow]), e3 = i3.F0t, k(t4.tIns) || (e3.top = d(f(t4.tIns), 6)), k(t4.bIns) || (e3.bottom = d(f(t4.bIns), 6)), k(t4.lIns) || (e3.left = d(f(t4.lIns), 6)), k(t4.rIns) || (e3.right = d(f(t4.rIns), 6));
          }, t3.prototype.n1t = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.Rotation;
            return k(u2) || 0 === u2 || (t4.rot = 6e4 * parseInt(u2 + "", 10)), n3 = a2.F0t, k(n3.top) || (e3 = v(n3.top)) !== w && (t4.tIns = e3), k(n3.bottom) || (i3 = v(n3.bottom)) !== w && (t4.bIns = i3), k(n3.left) || (r2 = v(n3.left)) !== M && (t4.lIns = r2), k(n3.right) || (o2 = v(n3.right)) !== M && (t4.rIns = o2), true === a2.P0t && (t4.anchorCtr = "1"), k(a2.G0t) || 0 === a2.G0t || (t4.anchor = c.ST_TextAnchoringType[a2.G0t]), k(a2.U0t) || (t4.vert = c.ST_TextVerticalType[a2.U0t]), k(a2.lrt) || 0 === a2.lrt || (t4.wrap = c.ST_TextWrappingType[a2.lrt]), k(a2.horzOverflow) || 0 === a2.horzOverflow || (t4.horzOverflow = c.ST_TextHorzOverflowType[a2.horzOverflow]), k(a2.vertOverflow) || 0 === a2.vertOverflow || (t4.vertOverflow = c.ST_TextVertOverflowType[a2.vertOverflow]), t4;
          }, t3.prototype.Delete = function() {
            for (var t4 = this.O0t, n3 = t4.length - 1; n3 >= 0; n3--) this.DeleteParagraph(t4[n3]);
          }, t3.prototype.DeleteParagraph = function(t4) {
            t4.Font.ParentStateful = N;
            var n3 = this.O0t.indexOf(t4);
            n3 >= 0 && this.O0t.splice(n3, 1);
          }, t3.prototype.CreateDrawingTextParagraph = function(t4) {
            return new P(t4, this);
          }, t3;
        })(), n2.DrawingTextBody = G, U = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Format1 = n4, r2.Format2 = e3, i3;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Stateful1", { get: function() {
            return this.Format1;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Stateful2", { get: function() {
            return this.Format2;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Brightness", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(c.ColorFormatStates.Brightness, false) ? t4.Format2.Brightness : t4.Format1.Brightness;
          }, set: function(t4) {
            this.Format1.Brightness = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ColorType", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(c.ColorFormatStates.ColorType, false) ? t4.Format2.ColorType : t4.Format1.ColorType;
          }, set: function(t4) {
            this.Format1.ColorType = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ObjectThemeColor", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(c.ColorFormatStates.ObjectThemeColor, false) ? t4.Format2.ObjectThemeColor : t4.Format1.ObjectThemeColor;
          }, set: function(t4) {
            this.Format1.ObjectThemeColor = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RGB", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(c.ColorFormatStates.RGB, false) ? t4.Format2.RGB : t4.Format1.RGB;
          }, set: function(t4) {
            this.Format1.RGB = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TintAndShade", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(c.ColorFormatStates.TintAndShade, false) ? t4.Format2.TintAndShade : t4.Format1.TintAndShade;
          }, set: function(t4) {
            this.Format1.TintAndShade = t4;
          }, enumerable: false, configurable: true }), n3.prototype.GetState = function() {
          }, n3.prototype.SetState = function() {
          }, n3.prototype.IsDirtyIncludingParent = function() {
          }, n3.prototype.IsPropDirtyIncludingParent = function(t4, n4) {
            return this.Stateful1.IsPropDirtyIncludingParent(t4, n4) || this.Stateful2.IsPropDirtyIncludingParent(t4, n4);
          }, n3.prototype.Dirty = function() {
          }, n3.prototype.UnDirty = function() {
          }, n3.prototype.SuspendClearChildrenState = function() {
          }, n3.prototype.ResumeClearChilrenState = function() {
          }, n3.prototype.AddChildInternal = function() {
          }, n3.prototype.RemoveChildInternal = function() {
          }, n3;
        })(o.StatefulBase), n2.ComboColorFormat = U, H = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Format1 = n4, r2.Format2 = e3, i3;
          }
          return V(n3, t3), Object.defineProperty(n3.prototype, "Stateful1", { get: function() {
            return this.Format1;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Stateful2", { get: function() {
            return this.Format2;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Bold", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Bold, false) ? t4.Format2.Bold : t4.Format1.Bold;
          }, set: function(t4) {
            this.Format1.Bold = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Color", { get: function() {
            return new U(this.Format1.Color, this.Format2.Color);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Italic", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Italic, false) ? t4.Format2.Bold : t4.Format1.Bold;
          }, set: function(t4) {
            this.Format1.Bold = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Name", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Name, false) ? t4.Format2.Name : t4.Format1.Name;
          }, set: function(t4) {
            this.Format1.Name = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Size", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Size, false) ? t4.Format2.Size : t4.Format1.Size;
          }, set: function(t4) {
            this.Format1.Size = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Strikethrough", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Strikethrough, false) ? t4.Format2.Strikethrough : t4.Format1.Strikethrough;
          }, set: function(t4) {
            this.Format1.Strikethrough = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Subscript", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Subscript, false) ? t4.Format2.Subscript : t4.Format1.Subscript;
          }, set: function(t4) {
            this.Format1.Subscript = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Superscript", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Superscript, false) ? t4.Format2.Superscript : t4.Format1.Superscript;
          }, set: function(t4) {
            this.Format1.Superscript = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ThemeFont", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.ThemeFont, false) ? t4.Format2.ThemeFont : t4.Format1.ThemeFont;
          }, set: function(t4) {
            this.Format1.ThemeFont = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Underline", { get: function() {
            var t4 = this;
            return !k(t4.Format2) && t4.Stateful2.IsPropDirtyIncludingParent(O.Underline, false) ? t4.Format2.Underline : t4.Format1.Underline;
          }, set: function(t4) {
            this.Format1.Underline = t4;
          }, enumerable: false, configurable: true }), n3.prototype.GetState = function() {
          }, n3.prototype.SetState = function() {
          }, n3.prototype.IsDirtyIncludingParent = function() {
          }, n3.prototype.IsPropDirtyIncludingParent = function(t4, n4) {
            return this.Stateful1.IsPropDirtyIncludingParent(t4, n4) || this.Stateful2.IsPropDirtyIncludingParent(t4, n4);
          }, n3.prototype.Dirty = function() {
          }, n3.prototype.UnDirty = function() {
          }, n3.prototype.SuspendClearChildrenState = function() {
          }, n3.prototype.ResumeClearChilrenState = function() {
          }, n3.prototype.AddChildInternal = function() {
          }, n3.prototype.RemoveChildInternal = function() {
          }, n3;
        })(o.StatefulBase), n2.ComboFontFormat = H;
      }, "./dist/plugins/floatingObject/drawing/gradient.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d;
        function v(t3, n3, e3) {
          var i3 = new l(t3);
          return i3.Position = n3, i3.Color = e3, i3;
        }
        function p(t3) {
          return r.ARGBColor.FromArgb(t3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.PresetGradientUtility = n2.GradientStops = n2.GradientStop = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/common.js"), r = e2("./dist/plugins/floatingObject/drawing/color.js"), o = e2("./dist/plugins/floatingObject/drawing/colorFormat.js"), a = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), u = e2("Core"), s = i2.DrawingConstants.PositionConver, c = i2.gft, f = void 0, l = (function() {
          function t3(t4) {
            this.r1t = t4, this._x = new o.ColorFormat(this.r1t);
          }
          return Object.defineProperty(t3.prototype, "Color", { get: function() {
            return this._x;
          }, set: function(t4) {
            this._x = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Position", { get: function() {
            return this.u_;
          }, set: function(t4) {
            this.u_ = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Transparency", { get: function() {
            return this._x.Transparency;
          }, set: function(t4) {
            this._x.Transparency = t4;
          }, enumerable: false, configurable: true }), t3.prototype.FromOOModel = function(t4) {
            this.Position = t4.pos / s, this._x.FromOOModel(t4);
          }, t3.prototype.FromSJSOOModel = function(t4) {
            var n3 = u.NodeHelper.sr(t4.pos, s);
            this.Position = n3 / s, this._x.FromSJSOOModel(t4);
          }, t3.prototype.ToOOModel = function() {
            var t4 = this._x.ToOOModel();
            return t4.pos = Math.round(this.Position * s), t4;
          }, t3.prototype.ToSJSOOModel = function() {
            var t4 = this._x.ToSJSOOModel();
            return delete t4.colorFillType, t4.pos = Math.round(this.Position * s), t4;
          }, t3;
        })(), n2.GradientStop = l, h = (function() {
          function t3(t4) {
            this.o1t = t4, this.a1t = [];
          }
          return t3.prototype.Item = function(t4) {
            return this.a1t[t4];
          }, Object.defineProperty(t3.prototype, "Count", { get: function() {
            return this.a1t.length;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "GradientStopList", { get: function() {
            return this.a1t;
          }, enumerable: false, configurable: true }), t3.prototype.Delete = function(t4) {
            -1 === t4 && (t4 = this.Count - 1), this.a1t.splice(t4, 1);
          }, t3.prototype.Insert = function(t4, n3, e3, i3, o2) {
            e3 === f && (e3 = 0), i3 === f && (i3 = -1), o2 === f && (o2 = 0);
            var a2 = new l(this.o1t);
            a2.Color.RGB = r.ARGBColor.FromArgb(t4), a2.Position = n3, a2.Transparency = e3, a2.Color.Brightness = o2, i3 < 0 ? this.a1t.push(a2) : this.a1t.splice(i3, 0, a2);
          }, t3.prototype.FromOOModel = function(t4) {
            var n3, e3, i3, r2;
            for (n3 = 0, e3 = t4.gs; n3 < e3.length; n3++) i3 = e3[n3], (r2 = new l(this.o1t)).FromOOModel(i3), this.GradientStopList.push(r2);
          }, t3.prototype.FromSJSOOModel = function(t4) {
            var n3, e3, i3, r2, o2 = c(t4.gs);
            for (n3 = 0, e3 = o2; n3 < e3.length; n3++) i3 = e3[n3], (r2 = new l(this.o1t)).FromSJSOOModel(i3), this.GradientStopList.push(r2);
          }, t3.prototype.ToOOModel = function() {
            var t4, n3, e3, i3 = { gs: [] };
            for (t4 = 0, n3 = this.a1t; t4 < n3.length; t4++) e3 = n3[t4], i3.gs.push(e3.ToOOModel());
            return i3;
          }, t3.prototype.ToSJSOOModel = function() {
            var t4, n3, e3, i3 = { gs: [] };
            for (t4 = 0, n3 = this.a1t; t4 < n3.length; t4++) e3 = n3[t4], i3.gs.push(e3.ToSJSOOModel());
            return i3;
          }, t3;
        })(), n2.GradientStops = h, d = (function() {
          function t3() {
          }
          return t3.InitGradientStopPresetColor = function(t4, n3) {
            var e3, i3, r2, u2, s2, c2, f2, l2, h2, d2, g, m, b, y = n3.GradientStops.GradientStopList;
            switch (n3.PresetGradientType) {
              case a.PresetGradientType.GradientEarlySunset:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(130))), i3 = v(t4, 0.3, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6684815))), r2 = v(t4, 0.64999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12189798))), u2 = v(t4, 0.89999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16711680))), s2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16744960))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2);
                break;
              case a.PresetGradientType.GradientLateSunset:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(0))), i3 = v(t4, 0.2, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(64))), r2 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(4194368))), u2 = v(t4, 0.75, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(9371712))), s2 = v(t4, 0.89999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15889152))), c2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16760576))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2);
                break;
              case a.PresetGradientType.GradientNightfall:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(0))), i3 = v(t4, 0.39999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(660108))), r2 = v(t4, 0.7, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(1580231))), u2 = v(t4, 0.88, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(7341524))), s2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(9190801))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2);
                break;
              case a.PresetGradientType.GradientDaybreak:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6201087))), i3 = v(t4, 0.39999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8766207))), r2 = v(t4, 0.7, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12900075))), u2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16772090))), y.push(e3), y.push(i3), y.push(r2), y.push(u2);
                break;
              case a.PresetGradientType.GradientHorizon:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(14478325))), i3 = v(t4, 0.08, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8628163))), r2 = v(t4, 0.13, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(7770041))), u2 = v(t4, 0.21001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8628163))), s2 = v(t4, 0.52, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), c2 = v(t4, 0.56, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10249571))), f2 = v(t4, 0.58, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8400941))), l2 = v(t4, 0.71001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12603982))), h2 = v(t4, 0.94, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15456980))), d2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(5580316))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2), y.push(h2), y.push(d2);
                break;
              case a.PresetGradientType.GradientDesert:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16555979))), i3 = v(t4, 0.87, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16298057))), r2 = v(t4, 0.78999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16298057))), u2 = v(t4, 0.37, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16705522))), s2 = v(t4, 0.33, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16339616))), c2 = v(t4, 0.31, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12912713))), f2 = v(t4, 0.17999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(11812485))), l2 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16298057))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2);
                break;
              case a.PresetGradientType.GradientOcean:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(251048))), i3 = v(t4, 0.25, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(2217696))), r2 = v(t4, 0.75, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(34790))), u2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(23743))), y.push(e3), y.push(i3), y.push(r2), y.push(u2);
                break;
              case a.PresetGradientType.GradientCalmWater:
                e3 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13421823))), i3 = v(t4, 0.41001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10079487))), r2 = v(t4, 0.32, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10053375))), u2 = v(t4, 0.195, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13408767))), s2 = v(t4, 0.8999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10079487))), c2 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13421823))), f2 = v(t4, 0.59, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10079487))), l2 = v(t4, 0.68, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10053375))), h2 = v(t4, 0.805, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13408767))), d2 = v(t4, 0.91001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10079487))), g = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13421823))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2), y.push(h2), y.push(d2), y.push(g);
                break;
              case a.PresetGradientType.GradientFire:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16773632))), i3 = v(t4, 0.45, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16742912))), r2 = v(t4, 0.7, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16712448))), u2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(5048328))), y.push(e3), y.push(i3), y.push(r2), y.push(u2);
                break;
              case a.PresetGradientType.GradientFog:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8685764))), i3 = v(t4, 0.53, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13950719))), r2 = v(t4, 0.83, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13950719))), u2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(9874324))), y.push(e3), y.push(i3), y.push(r2), y.push(u2);
                break;
              case a.PresetGradientType.GradientMoss:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(14543823))), i3 = v(t4, 0.25, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10270830))), r2 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(1403667))), u2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(14543823))), s2 = v(t4, 0.75, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10270830))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2);
                break;
              case a.PresetGradientType.GradientPeacock:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(3381759))), i3 = v(t4, 0.16, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(52428))), r2 = v(t4, 0.47, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10066431))), u2 = v(t4, 0.60001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(3041170))), s2 = v(t4, 0.71001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(3355596))), c2 = v(t4, 0.81, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(1143039))), f2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(26265))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2);
                break;
              case a.PresetGradientType.GradientWheat:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16509639))), i3 = v(t4, 0.17999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16705522))), r2 = v(t4, 0.36, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16435069))), u2 = v(t4, 0.61, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16492925))), s2 = v(t4, 0.82001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16503964))), c2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16705522))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2);
                break;
              case a.PresetGradientType.GradientParchment:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16773073))), i3 = v(t4, 0.64999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15789013))), r2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13747103))), y.push(e3), y.push(i3), y.push(r2);
                break;
              case a.PresetGradientType.GradientMahogany:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(14070172))), i3 = v(t4, 0.15, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13934188))), r2 = v(t4, 0.35, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10900776))), u2 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6696978))), s2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(14070172))), c2 = v(t4, 0.85, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13934188))), f2 = v(t4, 0.65, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10900776))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2);
                break;
              case a.PresetGradientType.GradientRainbow:
                e3 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10879915))), i3 = v(t4, 0.395, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(530939))), r2 = v(t4, 0.32499, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(1740104))), u2 = v(t4, 0.24, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16776960))), s2 = v(t4, 0.135, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15613719))), c2 = v(t4, 0.6, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15210342))), f2 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10879915))), l2 = v(t4, 0.60501, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(530939))), h2 = v(t4, 0.67501, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(1740104))), d2 = v(t4, 0.76, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16776960))), g = v(t4, 0.865, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15613719))), m = v(t4, 0.94, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15210342))), b = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10879915))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2), y.push(h2), y.push(d2), y.push(g), y.push(m), y.push(b);
                break;
              case a.PresetGradientType.GradientRainbowII:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16724889))), i3 = v(t4, 0.25, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16737843))), r2 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16776960))), u2 = v(t4, 0.75, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(108431))), s2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(3368703))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2);
                break;
              case a.PresetGradientType.GradientGold:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15129772))), i3 = v(t4, 0.12, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15128458))), r2 = v(t4, 0.3, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13085772))), u2 = v(t4, 0.45, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15128458))), s2 = v(t4, 0.77, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13085772))), c2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15129772))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2);
                break;
              case a.PresetGradientType.GradientGoldII:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16508078))), i3 = v(t4, 0.13, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12423722))), r2 = v(t4, 0.21001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12423722))), u2 = v(t4, 0.63, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16508078))), s2 = v(t4, 0.67, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(12423722))), c2 = v(t4, 0.69, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8609303))), f2 = v(t4, 0.82001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(10651977))), l2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16442295))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2);
                break;
              case a.PresetGradientType.GradientBrass:
                e3 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8541696))), i3 = v(t4, 0.87, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16754688))), r2 = v(t4, 0.72, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8541696))), u2 = v(t4, 0.57001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16754688))), s2 = v(t4, 0.42, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8541696))), c2 = v(t4, 0.28, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16754688))), f2 = v(t4, 0.13, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8541696))), l2 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16754688))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2);
                break;
              case a.PresetGradientType.GradientChrome:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), i3 = v(t4, 0.16, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(2039583))), r2 = v(t4, 0.17999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), u2 = v(t4, 0.42, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6513507))), s2 = v(t4, 0.53, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13619151))), c2 = v(t4, 0.66, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13619151))), f2 = v(t4, 0.75999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(2039583))), l2 = v(t4, 0.78999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), h2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8355711))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2), y.push(h2);
                break;
              case a.PresetGradientType.GradientChromeII:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(13355979))), i3 = v(t4, 0.13, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6250335))), r2 = v(t4, 0.21001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(6250335))), u2 = v(t4, 0.63, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), s2 = v(t4, 0.67, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(11711154))), c2 = v(t4, 0.69, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(2697513))), f2 = v(t4, 0.82001, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(7829367))), l2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15395562))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2);
                break;
              case a.PresetGradientType.GradientSilver:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))), i3 = v(t4, 0.03501, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), r2 = v(t4, 0.16, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8225942))), u2 = v(t4, 0.235, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), s2 = v(t4, 0.42501, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8225942))), c2 = v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), f2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), l2 = v(t4, 0.965, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), h2 = v(t4, 0.84, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8225942))), d2 = v(t4, 0.765, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(15132390))), g = v(t4, 0.575, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(8225942))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2), y.push(h2), y.push(d2), y.push(g);
                break;
              case a.PresetGradientType.GradientSapphire:
                e3 = v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(130))), i3 = v(t4, 0.13, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(18431))), r2 = v(t4, 0.28, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(130))), u2 = v(t4, 0.42999, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(18431))), s2 = v(t4, 0.58, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(130))), c2 = v(t4, 0.72, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(18431))), f2 = v(t4, 0.87, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(130))), l2 = v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(18431))), y.push(e3), y.push(i3), y.push(r2), y.push(u2), y.push(s2), y.push(c2), y.push(f2), y.push(l2);
            }
          }, t3.InitGradientStopTwoColor = function(t4, n3) {
            var e3, i3, r2 = n3.GradientStyle;
            r2 !== a.GradientStyle.GradientFromCenter ? r2 !== a.GradientStyle.GradientFromCorner ? (e3 = n3.GradientStops.GradientStopList, 1 === (i3 = n3.GradientVariant) || 2 === i3 ? (e3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))))) : 3 === i3 ? (e3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))), e3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 4 === i3 && (e3.push(v(t4, 0.5, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))), e3.push(v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))))) : this.InitGradientTwoColorCornerStops(t4, n3) : this.InitGradientTwoColorCenterStops(t4, n3);
          }, t3.InitGradientTwoColorCornerStops = function(t4, n3) {
            var e3 = n3.GradientStops.GradientStopList;
            e3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))));
          }, t3.InitGradientTwoColorCenterStops = function(t4, n3) {
            var e3 = n3.GradientStops.GradientStopList, i3 = n3.GradientVariant;
            1 === i3 ? (e3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215))))) : 2 === i3 ? (e3.push(v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))), e3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 3 === i3 ? (e3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 0.5, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))), e3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 4 === i3 && (e3.push(v(t4, 0, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))), e3.push(v(t4, 0.5, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), e3.push(v(t4, 1, (0, o.createColorFormatFromRGB)(t4, a.SolidColorType.RGB, p(16777215)))));
          }, t3.InitGradientOneColorCornerStops = function(t4, n3) {
            var e3 = (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1, this.GetTintAndShadeByDegree(n3.GradientDegree)), i3 = n3.GradientStops.GradientStopList;
            i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 1, e3));
          }, t3.InitGradientOneColorCenterStops = function(t4, n3) {
            var e3 = (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1, this.GetTintAndShadeByDegree(n3.GradientDegree)), i3 = n3.GradientStops.GradientStopList, r2 = n3.GradientVariant;
            1 === r2 ? (i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 1, e3))) : 2 === r2 ? (i3.push(v(t4, 0, e3)), i3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 3 === r2 ? (i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 0.5, e3)), i3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 4 === r2 && (i3.push(v(t4, 0, e3)), i3.push(v(t4, 0.5, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 1, e3)));
          }, t3.InitGradientStopOneColor = function(t4, n3) {
            var e3, i3, r2, u2 = n3.GradientStyle;
            u2 !== a.GradientStyle.GradientFromCenter ? u2 !== a.GradientStyle.GradientFromCorner ? (e3 = this.GetTintAndShadeByDegree(n3.GradientDegree), i3 = n3.GradientStops.GradientStopList, 1 === (r2 = n3.GradientVariant) || 2 === r2 ? (i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1, e3)))) : 3 === r2 ? (i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 0.5, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1, e3))), i3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1)))) : 4 === r2 && (i3.push(v(t4, 0.5, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 0, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1))), i3.push(v(t4, 1, (0, o.createColorFormat)(t4, a.SolidColorType.Theme, a.ColorSchemeIndex.Accent1, e3))))) : this.InitGradientOneColorCornerStops(t4, n3) : this.InitGradientOneColorCenterStops(t4, n3);
          }, t3.InitGradientStops = function(t4, n3, e3) {
            var i3 = this;
            if (n3.n0t(new h(t4)), e3 === a.GradientColorType.GradientOneColor) i3.InitGradientStopOneColor(t4, n3);
            else if (e3 === a.GradientColorType.GradientTwoColors) i3.InitGradientStopTwoColor(t4, n3);
            else {
              if (e3 !== a.GradientColorType.GradientPresetColors) throw new Error();
              i3.InitGradientStopPresetColor(t4, n3);
            }
            n3.GradientAngle = i3.GetGradientAngle(n3.GradientStyle, n3.GradientVariant);
          }, t3.GetGradientAngle = function(t4, n3) {
            var e3 = 0;
            switch (t4) {
              case a.GradientStyle.GradientHorizontal:
                1 === n3 ? e3 = 90 : 2 === n3 || 4 === n3 ? e3 = 270 : 3 === n3 && (e3 = 90);
                break;
              case a.GradientStyle.GradientVertical:
                2 !== n3 && 4 !== n3 || (e3 = 180);
                break;
              case a.GradientStyle.GradientDiagonalUp:
                1 === n3 || 3 === n3 ? e3 = 45 : 2 !== n3 && 4 !== n3 || (e3 = 225);
                break;
              case a.GradientStyle.GradientDiagonalDown:
                1 === n3 || 3 === n3 ? e3 = 135 : 2 !== n3 && 4 !== n3 || (e3 = 315);
                break;
              case a.GradientStyle.GradientFromCorner:
              case a.GradientStyle.GradientFromCenter:
                e3 = 135;
            }
            return e3;
          }, t3.GetTintAndShadeByDegree = function(t4) {
            return 2 * (t4 - 0.5);
          }, t3;
        })(), n2.PresetGradientUtility = d;
      }, "./dist/plugins/floatingObject/drawing/lineFormat.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d = this && this.qKr || (v = function(t3, n3) {
          return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, v(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          v(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), v;
        function p(t3, n3, e3) {
          return t3 >= n3 && t3 <= e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.LineFormat = void 0, i2 = e2("Core"), r = e2("./dist/plugins/floatingObject/drawing/stateful.js"), o = e2("./dist/plugins/floatingObject/drawing/common.js"), a = e2("./dist/plugins/floatingObject/drawing/fillFormat.js"), u = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), s = i2.NodeHelper.sr, c = o.DrawingUtility.Aft, f = o.UnitHelper.isNullOrUndefined, l = null, h = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, e3) || this, o2 = r2;
            return o2.u1t = u.ArrowheadLength.medium, o2.s1t = u.ArrowheadStyle.none, o2.c1t = u.ArrowheadWidth.medium, o2.f1t = u.LineDashStyle.solid, o2.l1t = u.ArrowheadLength.medium, o2.h1t = u.ArrowheadStyle.none, o2.d1t = u.ArrowheadWidth.medium, o2.RN = u.LineStyle.LineSingle, o2.jft = true, o2.v1t = -1, o2.m1t = l, o2.g1t = l, o2.DJ = n4, o2.sft = e3, o2.Pft = i3, o2.p1t = u.LineCapStyle.flat, o2.b1t = u.LineJoinStyle.round, o2.S0t = new a.FillFormat(n4, e3 && e3.FillInternal, i3), r2;
          }
          return d(n3, t3), Object.defineProperty(n3.prototype, "PatternColor", { get: function() {
            return this.FillInternal.PatternColorInternal;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Color", { get: function() {
            return this.FillInternal.ColorInternal;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "BeginArrowheadLength", { get: function() {
            return this.IsDirty(u.LineFormatStates.BeginArrowheadLength) || f(this.sft) ? this.u1t : this.sft.BeginArrowheadLength;
          }, set: function(t4) {
            this.u1t = t4, this.Dirty(u.LineFormatStates.BeginArrowheadLength);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "BeginArrowheadStyle", { get: function() {
            return this.IsDirty(u.LineFormatStates.BeginArrowheadStyle) || f(this.sft) ? this.s1t : this.sft.BeginArrowheadStyle;
          }, set: function(t4) {
            this.s1t = t4, this.Dirty(u.LineFormatStates.BeginArrowheadStyle);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "BeginArrowheadWidth", { get: function() {
            return this.IsDirty(u.LineFormatStates.BeginArrowheadWidth) || f(this.sft) ? this.c1t : this.sft.BeginArrowheadWidth;
          }, set: function(t4) {
            this.c1t = t4, this.Dirty(u.LineFormatStates.BeginArrowheadWidth);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "DashStyle", { get: function() {
            return this.IsDirty(u.LineFormatStates.DashStyle) || f(this.sft) ? this.f1t : this.sft.DashStyle;
          }, set: function(t4) {
            p(t4, 0, 11) && (this.f1t = t4, this.Dirty(u.LineFormatStates.DashStyle));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "CapStyle", { get: function() {
            return this.IsDirty(u.LineFormatStates.CapStyle) || f(this.sft) ? this.p1t : this.sft.CapStyle;
          }, set: function(t4) {
            p(t4, 0, 2) && (this.p1t = t4, this.Dirty(u.LineFormatStates.CapStyle));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "JoinStyle", { get: function() {
            return this.IsDirty(u.LineFormatStates.JoinStyle) || f(this.sft) ? this.b1t : this.sft.JoinStyle;
          }, set: function(t4) {
            p(t4, 0, 2) && (this.b1t = t4, this.Dirty(u.LineFormatStates.JoinStyle));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "EndArrowheadLength", { get: function() {
            return this.IsDirty(u.LineFormatStates.EndArrowheadLength) || f(this.sft) ? this.l1t : this.sft.EndArrowheadLength;
          }, set: function(t4) {
            this.l1t = t4, this.Dirty(u.LineFormatStates.EndArrowheadLength);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "EndArrowheadStyle", { get: function() {
            return this.IsDirty(u.LineFormatStates.EndArrowheadStyle) || f(this.sft) ? this.h1t : this.sft.EndArrowheadStyle;
          }, set: function(t4) {
            this.h1t = t4, this.Dirty(u.LineFormatStates.EndArrowheadStyle);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "EndArrowheadWidth", { get: function() {
            return this.IsDirty(u.LineFormatStates.EndArrowheadWidth) || f(this.sft) ? this.d1t : this.sft.EndArrowheadWidth;
          }, set: function(t4) {
            this.d1t = t4, this.Dirty(u.LineFormatStates.EndArrowheadWidth);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "InsetPen", { get: function() {
            return this.IsDirty(u.LineFormatStates.InsetPen) || f(this.sft) ? this.y1t : this.sft.InsetPen;
          }, set: function(t4) {
            this.y1t = t4, this.Dirty(u.LineFormatStates.InsetPen);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Pattern", { get: function() {
            return this.FillInternal.Pattern;
          }, set: function(t4) {
            this.FillInternal.r0t(t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PresetGradientType", { get: function() {
            return this.FillInternal.PresetGradientType;
          }, enumerable: false, configurable: true }), n3.prototype.a0t = function(t4) {
            this.FillInternal.a0t(t4);
          }, Object.defineProperty(n3.prototype, "GradientAngle", { get: function() {
            return this.FillInternal.GradientAngle;
          }, set: function(t4) {
            this.FillInternal.GradientAngle = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientColorType", { get: function() {
            return this.FillInternal.GradientColorType;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientDegree", { get: function() {
            return this.FillInternal.GradientDegree;
          }, enumerable: false, configurable: true }), n3.prototype.t0t = function(t4) {
            this.FillInternal.t0t(t4);
          }, Object.defineProperty(n3.prototype, "GradientStops", { get: function() {
            return this.FillInternal.GradientStops;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "GradientStyle", { get: function() {
            return this.FillInternal.GradientStyle;
          }, enumerable: false, configurable: true }), n3.prototype.e0t = function(t4) {
            this.FillInternal.e0t(t4);
          }, Object.defineProperty(n3.prototype, "GradientVariant", { get: function() {
            return this.FillInternal.GradientVariant;
          }, enumerable: false, configurable: true }), n3.prototype.i0t = function(t4) {
            this.FillInternal.i0t(t4);
          }, Object.defineProperty(n3.prototype, "Style", { get: function() {
            return this.IsDirty(u.LineFormatStates.Style) || f(this.sft) ? this.RN : this.sft.Style;
          }, set: function(t4) {
            p(t4, 0, 4) && (this.RN = t4, this.Dirty(u.LineFormatStates.Style));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            return this.FillInternal.Transparency;
          }, set: function(t4) {
            this.FillInternal.Transparency = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Visible", { get: function() {
            return this.IsDirty(u.LineFormatStates.Visible) || f(this.sft) ? this.jft : this.sft.Visible;
          }, set: function(t4) {
            this.jft = t4, this.Dirty(u.LineFormatStates.Visible);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Weight", { get: function() {
            return this.IsDirty(u.LineFormatStates.Weight) || f(this.sft) ? this.v1t : this.sft.Weight;
          }, set: function(t4) {
            this.v1t = t4, this.Dirty(u.LineFormatStates.Weight);
          }, enumerable: false, configurable: true }), n3.prototype.OneColorGradient = function(t4, n4, e3) {
            this.FillInternal.OneColorGradient(t4, n4, e3);
          }, n3.prototype.TwoColorGradient = function(t4, n4) {
            this.FillInternal.TwoColorGradient(t4, n4);
          }, n3.prototype.PresetGradient = function(t4, n4, e3) {
            this.FillInternal.PresetGradient(t4, n4, e3);
          }, n3.prototype.Solid = function() {
            this.FillInternal.Solid();
          }, n3.prototype.Patterned = function(t4) {
            this.FillInternal.Patterned(t4);
          }, Object.defineProperty(n3.prototype, "FillInternal", { get: function() {
            var t4 = this;
            return t4.S0t || (t4.S0t = new a.FillFormat(t4.DJ, t4.sft && t4.sft.FillInternal, t4.Pft)), t4.S0t;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Type", { get: function() {
            return this.FillInternal.Type;
          }, enumerable: false, configurable: true }), n3.prototype.GetState = function(n4, e3) {
            var i3 = this.S0t;
            if (i3) {
              if (n4 === u.LineFormatStates.Color && i3.Color) return i3.Color.IsDirtyIncludingParent(e3);
              if (n4 === u.LineFormatStates.PatternColor && i3.PatternColor) return i3.PatternColor.IsDirtyIncludingParent(e3);
            }
            return t3.prototype.GetState.call(this, n4, e3);
          }, n3.prototype.IsDirtyIncludingParent = function(n4) {
            var e3 = this.S0t;
            return !(!e3 || !e3.IsDirtyIncludingParent(n4)) || t3.prototype.IsDirtyIncludingParent.call(this, n4);
          }, n3.prototype.OnParentChanged = function(t4) {
            this.sft = t4;
            var n4 = this.S0t;
            n4 && (n4.ParentStateful = t4 ? t4.FillInternal : l);
          }, n3.prototype.FromOOModel = function(t4) {
            this.m1t = t4, this.FromCT_LineProperties(t4);
          }, n3.prototype.FromSJSOOModel = function(t4) {
            this.g1t = t4, this.FromSJSCT_LineProperties(t4);
          }, n3.prototype.ToOOModel = function() {
            return this.ToCT_LineProperties();
          }, n3.prototype.ToSJSOOModel = function() {
            return this.ToSJSCT_LineProperties();
          }, n3.prototype.FromCT_LineProperties = function(t4) {
            var n4 = this;
            f(t4.solidFill) ? f(t4.pattFill) ? f(t4.gradFill) ? f(t4.noFill) || (n4.FillInternal.ColorInternal.ColorType = u.SolidColorType.None) : n4.FillInternal.FromOOModel(t4.gradFill, u.ColorFillType.GradientFillProperties) : n4.FillInternal.FromOOModel(t4.pattFill, u.ColorFillType.PatternFillProperties) : n4.FillInternal.FromOOModel(t4.solidFill, u.ColorFillType.SolidColorFillProperties), f(t4.headEnd) || n4.FromCT_LineEndProperties(t4.headEnd), f(t4.tailEnd) || n4.FromCT_TailLineEndProperties(t4.tailEnd), !f(t4.w) && t4.w >= 0 ? n4.Weight = t4.w : f(t4.solidFill) && f(t4.gradFill) ? (n4.v1t = -1, n4.UnDirty(u.LineFormatStates.Weight)) : n4.Weight = 1, f(t4.cmpd) || (n4.Style = t4.cmpd), n4.Round = !!t4.round, f(t4.prstDash) ? n4.UnDirty(u.LineFormatStates.DashStyle) : n4.DashStyle = t4.prstDash, f(t4.cap) || (n4.CapStyle = t4.cap), t4.bevel ? n4.JoinStyle = u.LineJoinStyle.bevel : t4.round ? n4.JoinStyle = u.LineJoinStyle.round : t4.miter && (n4.JoinStyle = u.LineJoinStyle.miter);
          }, n3.prototype.FromSJSCT_LineProperties = function(t4) {
            var n4, e3, r2, o2 = this, a2 = t4.solidFill, c2 = t4.pattFill, l2 = t4.gradFill;
            f(a2) ? f(c2) ? f(l2) ? f(t4.noFill) || (o2.FillInternal.ColorInternal.ColorType = u.SolidColorType.None) : o2.FillInternal.FromSJSOOModel(l2, u.ColorFillType.GradientFillProperties) : o2.FillInternal.FromSJSOOModel(c2, u.ColorFillType.PatternFillProperties) : o2.FillInternal.FromSJSOOModel(a2, u.ColorFillType.SolidColorFillProperties), n4 = t4.headEnd, e3 = t4.tailEnd, f(n4) || o2.FromSJSCT_LineEndProperties(n4), f(e3) || o2.FromSJSCT_TailLineEndProperties(e3), f(t4.w) ? f(a2) && f(l2) ? (o2.v1t = -1, o2.UnDirty(u.LineFormatStates.Weight)) : o2.Weight = 1 : o2.Weight = i2.ExcelHelper.emuToPixles(s(t4.w)), 0 === o2.Weight && f(t4.noFill) && (o2.Weight = 1), f(t4.cmpd) || (o2.Style = u.ST_CompoundLine[t4.cmpd]), o2.Round = true, r2 = t4.prstDash, f(r2) ? o2.UnDirty(u.LineFormatStates.DashStyle) : o2.DashStyle = u.LineType[r2.val], f(t4.cap) || (o2.CapStyle = u.ST_LineCap[t4.cap]), t4.bevel ? o2.JoinStyle = u.LineJoinStyle.bevel : t4.round ? o2.JoinStyle = u.LineJoinStyle.round : t4.miter && (o2.JoinStyle = u.LineJoinStyle.miter);
          }, n3.prototype.ToCT_LineProperties = function() {
            var t4, n4, e3, i3, r2 = this, o2 = r2.m1t;
            return r2.IsDirtyIncludingParent() || f(o2) ? (c(t4 = o2 || {}), r2.jft ? f(r2.S0t) || ((n4 = r2.S0t.ToOOModel()).colorFillType === u.ColorFillType.SolidColorFillProperties ? t4.solidFill = n4 : n4.colorFillType === u.ColorFillType.PatternFillProperties ? t4.pattFill = n4 : n4.colorFillType === u.ColorFillType.GradientFillProperties ? t4.gradFill = n4 : n4.colorFillType === u.ColorFillType.NoFillProperties && (t4.noFill = true), delete n4.colorFillType) : t4.noFill = true, (e3 = r2.ToCT_HeadLineEndProperties()) && (t4.headEnd = e3), (e3 = r2.ToCT_TailLineEndProperties()) && (t4.tailEnd = e3), r2.Weight >= 0 && (t4.w = r2.Weight), r2.GetState(u.LineFormatStates.Style, true) && (t4.cmpd = r2.Style), r2.GetState(u.LineFormatStates.DashStyle, true) && (t4.prstDash = r2.DashStyle), r2.Round && (t4.round = true), r2.GetState(u.LineFormatStates.CapStyle, true) && (t4.cap = r2.CapStyle), delete t4.bevel, delete t4.round, delete t4.miter, r2.GetState(u.LineFormatStates.JoinStyle, true) && ((i3 = r2.JoinStyle) === u.LineJoinStyle.bevel ? t4.bevel = {} : i3 === u.LineJoinStyle.round ? t4.round = true : i3 === u.LineJoinStyle.miter && (t4.miter = { lim: 8e5 })), t4) : o2;
          }, n3.prototype.ToSJSCT_LineProperties = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2.g1t;
            return o2.IsDirtyIncludingParent() || f(a2) ? (t4 = {}, o2.Weight >= 0 && (t4.w = i2.ExcelHelper.pixelToEMU(o2.Weight)), o2.GetState(u.LineFormatStates.Style, true) && (t4.cmpd = u.ST_CompoundLine[o2.Style]), o2.GetState(u.LineFormatStates.CapStyle, true) && (t4.cap = u.ST_LineCap[o2.CapStyle]), f(a2 && a2.algn) || (t4.algn = a2.algn), c(t4), !o2.jft || t4.w <= 0 ? t4.noFill = {} : f(o2.S0t) || ((n4 = o2.S0t.ToSJSOOModel()).colorFillType === u.ColorFillType.SolidColorFillProperties ? t4.solidFill = n4 : n4.colorFillType === u.ColorFillType.PatternFillProperties ? t4.pattFill = n4 : n4.colorFillType === u.ColorFillType.GradientFillProperties ? t4.gradFill = n4 : n4.colorFillType === u.ColorFillType.NoFillProperties && (t4.noFill = {}), delete n4.colorFillType), o2.GetState(u.LineFormatStates.DashStyle, true) && (t4.prstDash = { val: u.ST_PresetLineDashVal[11 === o2.DashStyle ? 1 : o2.DashStyle] }), o2.GetState(u.LineFormatStates.JoinStyle, true) && ((e3 = o2.JoinStyle) === u.LineJoinStyle.bevel ? t4.bevel = {} : e3 === u.LineJoinStyle.round ? t4.round = {} : e3 === u.LineJoinStyle.miter && (t4.miter = { lim: 8e5 })), (r2 = o2.ToSJSCT_HeadLineEndProperties()) && (t4.headEnd = r2), (r2 = o2.ToSJSCT_TailLineEndProperties()) && (t4.tailEnd = r2), f(a2 && a2.extLst) || (t4.extLst = a2.extLst), t4) : a2;
          }, n3.prototype.FromCT_LineEndProperties = function(t4) {
            var n4 = this;
            n4.s1t = t4.type, n4.c1t = t4.w, n4.u1t = t4.len, n4.SetState(u.LineFormatStates.BeginArrowheadStyle, true), n4.SetState(u.LineFormatStates.BeginArrowheadWidth, true), n4.SetState(u.LineFormatStates.BeginArrowheadLength, true);
          }, n3.prototype.FromSJSCT_LineEndProperties = function(t4) {
            var n4 = this;
            n4.s1t = u.ST_LineEndType[t4.type], n4.c1t = t4.w ? u.ST_LineEndWidth[t4.w] : 1, n4.u1t = t4.len ? u.ST_LineEndLength[t4.len] : 1, n4.SetState(u.LineFormatStates.BeginArrowheadStyle, true), n4.SetState(u.LineFormatStates.BeginArrowheadWidth, true), n4.SetState(u.LineFormatStates.BeginArrowheadLength, true);
          }, n3.prototype.ToCT_HeadLineEndProperties = function() {
            var t4 = { w: u.ArrowheadWidth.medium, len: u.ArrowheadLength.medium }, n4 = this, e3 = false;
            return n4.GetState(u.LineFormatStates.BeginArrowheadStyle, true) && (t4.type = n4.BeginArrowheadStyle, e3 = true), n4.GetState(u.LineFormatStates.BeginArrowheadWidth, true) && (t4.w = n4.BeginArrowheadWidth, e3 = true), n4.GetState(u.LineFormatStates.BeginArrowheadLength, true) && (t4.len = n4.BeginArrowheadLength, e3 = true), e3 ? t4 : l;
          }, n3.prototype.ToSJSCT_HeadLineEndProperties = function() {
            var t4 = { w: u.ST_LineEndWidth[1], len: u.ST_LineEndWidth[1] }, n4 = this, e3 = false;
            return n4.GetState(u.LineFormatStates.BeginArrowheadStyle, true) && (t4.type = u.ST_LineEndType[n4.BeginArrowheadStyle], e3 = true), n4.GetState(u.LineFormatStates.BeginArrowheadWidth, true) && (t4.w = u.ST_LineEndWidth[n4.BeginArrowheadWidth], e3 = true), n4.GetState(u.LineFormatStates.BeginArrowheadLength, true) && (t4.len = u.ST_LineEndWidth[n4.BeginArrowheadLength], e3 = true), e3 ? t4 : l;
          }, n3.prototype.FromCT_TailLineEndProperties = function(t4) {
            if (!f(t4)) {
              var n4 = this;
              n4.h1t = t4.type, n4.d1t = t4.w, n4.l1t = t4.len, n4.SetState(u.LineFormatStates.EndArrowheadStyle, true), n4.SetState(u.LineFormatStates.EndArrowheadWidth, true), n4.SetState(u.LineFormatStates.EndArrowheadLength, true);
            }
          }, n3.prototype.FromSJSCT_TailLineEndProperties = function(t4) {
            if (!f(t4)) {
              var n4 = this;
              n4.h1t = u.ST_LineEndType[t4.type], n4.d1t = t4.w ? u.ST_LineEndWidth[t4.w] : 1, n4.l1t = t4.len ? u.ST_LineEndLength[t4.len] : 1, n4.SetState(u.LineFormatStates.EndArrowheadStyle, true), n4.SetState(u.LineFormatStates.EndArrowheadWidth, true), n4.SetState(u.LineFormatStates.EndArrowheadLength, true);
            }
          }, n3.prototype.ToCT_TailLineEndProperties = function() {
            var t4 = { w: u.ArrowheadWidth.medium, len: u.ArrowheadLength.medium }, n4 = false, e3 = this;
            return e3.GetState(u.LineFormatStates.EndArrowheadStyle, true) && (t4.type = e3.EndArrowheadStyle, n4 = true), e3.GetState(u.LineFormatStates.EndArrowheadWidth, true) && (t4.w = e3.EndArrowheadWidth, n4 = true), e3.GetState(u.LineFormatStates.EndArrowheadLength, true) && (t4.len = e3.EndArrowheadLength, n4 = true), n4 ? t4 : l;
          }, n3.prototype.ToSJSCT_TailLineEndProperties = function() {
            var t4 = { w: u.ST_LineEndWidth[1], len: u.ST_LineEndWidth[1] }, n4 = false, e3 = this;
            return e3.GetState(u.LineFormatStates.EndArrowheadStyle, true) && (t4.type = u.ST_LineEndType[e3.EndArrowheadStyle], n4 = true), e3.GetState(u.LineFormatStates.EndArrowheadWidth, true) && (t4.w = u.ST_LineEndWidth[e3.EndArrowheadWidth], n4 = true), e3.GetState(u.LineFormatStates.EndArrowheadLength, true) && (t4.len = u.ST_LineEndWidth[e3.EndArrowheadLength], n4 = true), n4 ? t4 : l;
          }, n3.prototype.Clone = function() {
            var t4 = this, e3 = new n3(t4.DJ);
            return e3.S0t = t4.S0t && t4.S0t.Clone(), e3.u1t = t4.u1t, e3.s1t = t4.s1t, e3.c1t = t4.c1t, e3.f1t = t4.f1t, e3.l1t = t4.l1t, e3.h1t = t4.h1t, e3.d1t = t4.d1t, e3.y1t = t4.y1t, e3.jft = t4.jft, e3.v1t = t4.v1t, e3.l0t = t4.l0t, e3.sft = t4.sft, e3;
          }, n3;
        })(r.StatefulBase), n2.LineFormat = h;
      }, "./dist/plugins/floatingObject/drawing/picture.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y = this && this.qKr || (w = function(t3, n3) {
          return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, w(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          w(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), w;
        function M(t3, n3) {
          return d(t3) ? n3 : t3;
        }
        function C(t3) {
          return d(t3) ? 0 : parseInt(t3, 10);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.PictureFormat = n2.Crop = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/stateful.js"), r = e2("./dist/plugins/floatingObject/drawing/common.js"), o = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), a = e2("Core"), u = a.ExcelHelper.emuToPixles, s = a.ExcelHelper.pixelToEMU, c = r.DrawingConstants.PositionConver, f = r.DrawingConstants.PositiveFixedPercentageConvert, l = r.DrawingUtility.FromLum, h = r.DrawingUtility.ToLum, d = r.UnitHelper.isNullOrUndefined, v = null, p = void 0, g = a.NodeHelper.sr, m = (function() {
          function t3(t4) {
            var n3 = this;
            n3.w1t = 0, n3.M1t = 0, n3.C1t = 0, n3.S1t = 0, n3.Wc = t4;
          }
          return Object.defineProperty(t3.prototype, "PictureHeight", { get: function() {
            return this.S1t;
          }, set: function(t4) {
            this.S1t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "PictureOffsetX", { get: function() {
            return this.w1t;
          }, set: function(t4) {
            this.w1t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "PictureOffsetY", { get: function() {
            return this.M1t;
          }, set: function(t4) {
            this.M1t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "PictureWidth", { get: function() {
            return this.C1t;
          }, set: function(t4) {
            this.C1t = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ShapeHeight", { get: function() {
            return this.Wc.Height;
          }, set: function(t4) {
            this.Wc.Height = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ShapeLeft", { get: function() {
            return this.Wc.Left;
          }, set: function(t4) {
            this.Wc.Left = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ShapeTop", { get: function() {
            return this.Wc.Top;
          }, set: function(t4) {
            this.Wc.Top = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "ShapeWidth", { get: function() {
            return this.Wc.Width;
          }, set: function(t4) {
            this.Wc.Width = t4;
          }, enumerable: false, configurable: true }), t3.prototype.Clone = function() {
            var n3 = this, e3 = new t3(n3.Wc);
            return e3.S1t = n3.S1t, e3.w1t = n3.w1t, e3.M1t = n3.M1t, e3.C1t = n3.C1t, e3;
          }, t3;
        })(), n2.Crop = m, b = (function(t3) {
          function n3(n4, e3) {
            var i3, a2 = this;
            return n4 === p && (n4 = o.PictureFormatType.PictureShape), e3 === p && (e3 = v), (i3 = a2 = t3.call(this, e3) || this).oft = r.DrawingConstants.DefaultBrightness, i3.xrt = o.PictureColorType.PictureAutomatic, i3.T1t = r.DrawingConstants.DefaultBrightness, i3.A1t = r.DrawingConstants.DefaultTransparent, i3.kao = n4, i3.I1t = n4, i3.sft = e3, i3.x1t = i3.I1t === o.PictureFormatType.PictureShape, i3.aft = r.DrawingConstants.DefaultTransparent, i3.N1t = { left: 0, right: 0, top: 0, bottom: 0 }, i3.k1t = { offsetX: 0, offsetY: 0, scaleX: 1, scaleY: 1, alignment: 0, mirrorType: 0 }, i3;
          }
          return y(n3, t3), Object.defineProperty(n3.prototype, "Brightness", { get: function() {
            return this.IsDirty(1) || d(this.sft) ? this.oft : this.sft.Brightness;
          }, set: function(t4) {
            if (t4 < 0 || t4 > 1) throw new Error();
            this.oft = t4, this.Dirty(1);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ColorType", { get: function() {
            return this.IsDirty(2) || d(this.sft) ? this.xrt : this.sft.ColorType;
          }, set: function(t4) {
            t4 === o.PictureColorType.PictureAutomatic ? (this.oft = r.DrawingConstants.DefaultBrightness, this.T1t = r.DrawingConstants.DefaultBrightness) : t4 === o.PictureColorType.PictureWatermark && (this.oft = 0.85, this.T1t = 0.15), this.xrt = t4, this.Dirty(2);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Contrast", { get: function() {
            return this.IsDirty(4) || d(this.sft) ? this.T1t : this.sft.Contrast;
          }, set: function(t4) {
            if (t4 < 0 || t4 > 1) throw new Error();
            this.T1t = t4, this.Dirty(4);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Crop", { get: function() {
            var t4 = this;
            return t4.D1t || (t4.D1t = new m(t4._1t)), t4.D1t;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "CropBottom", { get: function() {
            return this.Crop.ShapeTop + this.Crop.ShapeHeight;
          }, set: function(t4) {
            this.Crop.ShapeHeight = t4 - this.Crop.ShapeTop;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "CropLeft", { get: function() {
            return this.Crop.ShapeLeft;
          }, set: function(t4) {
            this.Crop.ShapeLeft = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "CropRight", { get: function() {
            return this.Crop.ShapeLeft + this.Crop.ShapeWidth;
          }, set: function(t4) {
            this.Crop.ShapeWidth = t4 - this.Crop.ShapeLeft;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "CropTop", { get: function() {
            return this.Crop.ShapeTop;
          }, set: function(t4) {
            this.Crop.ShapeTop = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Stretch", { get: function() {
            return this.N1t;
          }, set: function(t4) {
            this.N1t = JSON.parse(JSON.stringify(t4));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Tile", { get: function() {
            return this.k1t;
          }, set: function(t4) {
            this.k1t = JSON.parse(JSON.stringify(t4));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Transparency", { get: function() {
            return this.aft;
          }, set: function(t4) {
            t4 = Math.max(0, t4), t4 = Math.min(1, t4), this.aft = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TransparencyColor", { get: function() {
            return this.IsDirty(8) || d(this.sft) ? this.A1t : this.sft.TransparencyColor;
          }, set: function(t4) {
            this.A1t = t4, this.Dirty(8);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "TransparentBackground", { get: function() {
            return this.IsDirty(16) || d(this.sft) ? this.x1t : this.sft.TransparentBackground;
          }, set: function(t4) {
            this.x1t = t4;
            var n4 = this._1t.Fill;
            t4 && (n4.Transparency = 1), n4.Solid(), this.Dirty(16);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Container", { get: function() {
            return this._1t;
          }, set: function(t4) {
            if (this._1t = t4, t4) {
              var n4 = this.Crop;
              n4.PictureWidth = t4.Width, n4.PictureHeight = t4.Height;
            }
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PicSrc", { get: function() {
            return this.wue;
          }, set: function(t4) {
            this.wue = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PicFill", { get: function() {
            return this.IsDirty(32) || d(this.sft) ? this.E1t : this.sft.PicFill;
          }, set: function(t4) {
            this.E1t = t4, this.Dirty(32);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PicType", { get: function() {
            return this.IsDirty(64) || d(this.sft) ? this.j1t : this.sft.PicType;
          }, set: function(t4) {
            this.j1t = t4, this.Dirty(64);
          }, enumerable: false, configurable: true }), n3.prototype.ClearModel = function() {
            var t4, n4, e3;
            for (this.O1t = v, this.fft = v, t4 = 0, n4 = this.Children; t4 < n4.length; t4++) (e3 = n4[t4]).ClearModel();
          }, Object.defineProperty(n3.prototype, "PictureFormatType", { get: function() {
            return this.I1t;
          }, set: function(t4) {
            this.I1t = t4;
          }, enumerable: false, configurable: true }), n3.prototype.HasOwnPicture = function() {
            return this.IsDirty(1) || this.IsDirty(2) || this.IsDirty(4) || this.IsDirty(8) || this.IsDirty(16);
          }, n3.prototype.SetPictureInfo = function(t4, n4, e3) {
            this.PicFill = t4, this.PicType = n4, this.PictureFormatType = e3;
          }, n3.prototype.IncrementBrightness = function(t4) {
            this.Brightness += t4;
          }, n3.prototype.IncrementContrast = function(t4) {
            this.Contrast += t4;
          }, n3.prototype.FromOOModel = function(t4) {
            var n4, e3 = this;
            e3.O1t = t4, d(t4) || (e3.PictureFormatType !== e3.kao && (e3.PictureFormatType = e3.kao), e3.FromCT_Blip(t4.blip), n4 = e3._1t, d(n4) || (d(t4.tile) || (e3.PictureFormatType = o.PictureFormatType.TextureFill), e3.Crop.PictureWidth = n4.Width, e3.Crop.PictureHeight = n4.Height, e3.PictureFormatType === o.PictureFormatType.PictureShape ? e3.FromCT_RelativeRect(t4.srcRect) : e3.PictureFormatType === o.PictureFormatType.PictureFill ? e3.FromCT_Stretch(t4.stretch) : e3.PictureFormatType === o.PictureFormatType.TextureFill && e3.FromCT_Tile(t4.tile)));
          }, n3.prototype.FromSJSOOModel = function(t4) {
            var n4, e3, i3, r2, a2 = this;
            a2.fft = t4, d(t4) || (a2.FromSJSCT_Blip(t4.blip), n4 = a2._1t, d(n4) || (e3 = t4.srcRect, i3 = t4.stretch, r2 = t4.tile, d(r2) || (a2.PictureFormatType = o.PictureFormatType.TextureFill), a2.Crop.PictureWidth = n4.Width, a2.Crop.PictureHeight = n4.Height, a2.PictureFormatType === o.PictureFormatType.PictureShape ? a2.FromSJSCT_RelativeRect(e3) : a2.PictureFormatType === o.PictureFormatType.PictureFill ? a2.FromSJSCT_Stretch(i3) : a2.PictureFormatType === o.PictureFormatType.TextureFill && a2.FromSJSCT_Tile(r2)));
          }, n3.prototype.ToOOModel = function() {
            var t4, n4, e3 = this, i3 = e3.O1t || {};
            return i3.colorFillType = o.ColorFillType.BlipFillProperties, i3.blip = e3.ToCT_Blip(), t4 = e3._1t, d(t4) || ((n4 = e3.PictureFormatType) === o.PictureFormatType.PictureShape ? (i3.srcRect = e3.ToCT_RelativeRect(), i3.stretch = {}, i3.stretch.fillRect = { l: 0, r: 0, t: 0, b: 0 }) : n4 === o.PictureFormatType.PictureFill ? (i3.stretch = e3.ToCT_Strecth(), i3.srcRect = { l: 0, r: 0, t: 0, b: 0 }, i3.tile = v) : n4 === o.PictureFormatType.TextureFill && (i3.stretch = v, i3.srcRect = v, i3.tile = e3.ToCT_Tile())), i3;
          }, n3.prototype.ToSJSOOModel = function() {
            var t4, n4, e3 = this, i3 = e3.fft || {};
            return i3.colorFillType = o.ColorFillType.BlipFillProperties, i3.blip = e3.ToSJSCT_Blip(), t4 = e3._1t, d(t4) || ((n4 = e3.PictureFormatType) === o.PictureFormatType.PictureShape ? (i3.srcRect = e3.ToCT_RelativeRect(), i3.stretch = {}, i3.stretch.fillRect = { l: 0, r: 0, t: 0, b: 0 }) : n4 === o.PictureFormatType.PictureFill ? (i3.stretch = e3.ToCT_Strecth(), i3.srcRect = { l: 0, r: 0, t: 0, b: 0 }, i3.tile = v) : n4 === o.PictureFormatType.TextureFill && (i3.stretch = v, i3.srcRect = v, i3.tile = e3.ToSJSCT_Tile())), i3;
          }, n3.prototype.FromCT_Blip = function(t4) {
            if (!d(t4)) {
              var n4 = this;
              n4.FromCT_ColorChangeEffect(t4.clrChange), n4.FromCT_LuminanceEffect(t4.lum), d(t4.alphaModFix) || (n4.Transparency = 1 - t4.alphaModFix.amt / f), d(t4.grayscl) ? d(t4.biLevel) || (n4.ColorType = o.PictureColorType.PictureBlackAndWhite) : n4.ColorType = o.PictureColorType.PictureGrayscale, n4.FromCT_BlipBlob(t4.blipBlob);
            }
          }, n3.prototype.FromSJSCT_Blip = function(t4) {
            var n4, e3;
            d(t4) || ((n4 = this).FromSJSCT_ColorChangeEffect(t4.clrChange), n4.FromSJSCT_LuminanceEffect(t4.lum), e3 = t4.alphaModFix, d(e3) || (n4.Transparency = 1 - g(e3.amt, 1e5) / f), d(t4.grayscl) ? d(t4.biLevel) || (n4.ColorType = o.PictureColorType.PictureBlackAndWhite) : n4.ColorType = o.PictureColorType.PictureGrayscale, n4.FromSJSCT_BlipBlob(t4.blipBlob), t4.lossless && t4.lossless.src && (n4.PicSrc = t4.lossless.src));
          }, n3.prototype.ToCT_Blip = function() {
            var t4 = this, n4 = t4.O1t && t4.O1t.blip || { cstate: o.ST_BlipCompression.none };
            return t4.TransparencyColor !== r.DrawingConstants.DefaultTransparent && (n4.clrChange = t4.ToCT_ColorChangeEffect()), t4.Brightness === r.DrawingConstants.DefaultBrightness && t4.Contrast === r.DrawingConstants.DefaultBrightness || (n4.lum = t4.ToCT_LuminanceEffect()), t4.Transparency !== r.DrawingConstants.DefaultTransparent ? n4.alphaModFix = { amt: (1 - t4.Transparency) * f } : delete n4.alphaModFix, t4.ColorType === o.PictureColorType.PictureGrayscale ? n4.grayscl = {} : t4.ColorType === o.PictureColorType.PictureBlackAndWhite && (n4.biLevel = { thresh: 5e4 }), n4.blipBlob = t4.ToCT_BlipBlob(), n4;
          }, n3.prototype.ToSJSCT_Blip = function() {
            var t4 = this, n4 = { r_: [8] };
            return t4.TransparencyColor !== r.DrawingConstants.DefaultTransparent && (n4.clrChange = t4.ToCT_ColorChangeEffect()), t4.Brightness === r.DrawingConstants.DefaultBrightness && t4.Contrast === r.DrawingConstants.DefaultBrightness || (n4.lum = t4.ToCT_LuminanceEffect()), t4.Transparency !== r.DrawingConstants.DefaultTransparent && (n4.alphaModFix = { amt: (1 - t4.Transparency) * f }), t4.ColorType === o.PictureColorType.PictureGrayscale ? n4.grayscl = {} : t4.ColorType === o.PictureColorType.PictureBlackAndWhite && (n4.biLevel = { thresh: 5e4 }), n4.blipBlob = { blob: t4.PicFill }, t4.PicSrc !== n4.blipBlob.blob && (n4.lossless = { src: t4.PicSrc }), n4;
          }, n3.prototype.FromCT_ColorChangeEffect = function(t4) {
            var n4;
            t4 && t4.clrFrom && t4.clrFrom.srgbClr && this.FromColorByteArr(t4.val);
          }, n3.prototype.FromSJSCT_ColorChangeEffect = function(t4) {
            var n4;
            t4 && t4.clrFrom && t4.clrFrom.srgbClr && this.FromColorByteArr(t4.val);
          }, n3.prototype.ToCT_ColorChangeEffect = function() {
            var t4 = this.ToColorByteArr(this.A1t);
            return { useA: true, clrFrom: { srgbClr: { val: t4 } }, clrTo: { srgbClr: { val: t4, alpha: [0] } } };
          }, n3.prototype.FromColorByteArr = function(t4) {
            this.A1t = t4[2] << 16 | t4[1] << 8 | t4[0];
          }, n3.prototype.ToColorByteArr = function(t4) {
            var n4 = [];
            return n4[3] = Math.floor(t4 / (1 << 24)), t4 %= 1 << 24, n4[2] = Math.floor(t4 / 65536), t4 %= 65536, n4[1] = Math.floor(t4 / 256), t4 %= 256, n4[0] = Math.floor(t4), n4;
          }, n3.prototype.FromCT_LuminanceEffect = function(t4) {
            t4 && (this.Brightness = l(t4.bright), this.Contrast = l(t4.contrast));
          }, n3.prototype.FromSJSCT_LuminanceEffect = function(t4) {
            t4 && (this.Brightness = l(C(t4.bright)), this.Contrast = l(C(t4.contrast)));
          }, n3.prototype.ToCT_LuminanceEffect = function() {
            return { bright: h(this.Brightness), contrast: h(this.Contrast) };
          }, n3.prototype.FromCT_BlipBlob = function(t4) {
            if (t4) {
              var n4 = this;
              n4.wue = t4.src ? t4.src : t4.blob, n4.E1t = t4.blob, n4.Dirty(32), n4.j1t = t4.type, n4.Dirty(64);
            }
          }, n3.prototype.FromSJSCT_BlipBlob = function(t4) {
            if (t4) {
              var n4 = this;
              n4.wue = t4.blob, n4.E1t = t4.blob, n4.Dirty(32), n4.j1t = M(t4.type, "png"), n4.Dirty(64);
            }
          }, n3.prototype.ToCT_BlipBlob = function() {
            var t4 = this, n4 = t4.O1t && t4.O1t.blip && t4.O1t.blip.blipBlob || { type: o.ImageType.PNG };
            return n4.blob = t4.PicFill, n4.type = t4.PicType, t4.PicSrc !== n4.blob && (n4.src = t4.PicSrc), n4;
          }, n3.prototype.FromCT_Tile = function(t4) {
            this.k1t = { offsetX: t4.tx, offsetY: t4.ty, scaleX: t4.sx / c, scaleY: t4.sy / c, alignment: t4.algn, mirrorType: t4.flip };
          }, n3.prototype.FromSJSCT_Tile = function(t4) {
            this.k1t = { offsetX: u(g(t4.tx, 0)), offsetY: u(g(t4.ty, 0)), scaleX: g(t4.sx, c) / c, scaleY: g(t4.sy, c) / c, alignment: o.ST_RectAlignment[t4.algn || "tl"], mirrorType: o.ST_TileFlipMode[t4.flip || "none"] };
          }, n3.prototype.ToCT_Tile = function() {
            var t4 = this.Tile;
            return { tx: t4.offsetX, ty: t4.offsetY, sx: Math.round(t4.scaleX * c), sy: Math.round(t4.scaleY * c), algn: t4.alignment, flip: t4.mirrorType };
          }, n3.prototype.ToSJSCT_Tile = function() {
            var t4 = this.Tile;
            return { tx: s(Math.round(t4.offsetX)), ty: s(Math.round(t4.offsetY)), sx: Math.round(t4.scaleX * c), sy: Math.round(t4.scaleY * c), algn: o.ST_RectAlignment[t4.alignment], flip: o.ST_TileFlipMode[t4.mirrorType] };
          }, n3.prototype.FromCT_Stretch = function(t4) {
            var n4, e3, i3, r2, o2 = t4 && t4.fillRect;
            d(o2) || (n4 = o2.l / c, e3 = o2.r / c, i3 = o2.t / c, r2 = o2.b / c, this.N1t = { left: n4, right: e3, top: i3, bottom: r2 });
          }, n3.prototype.FromSJSCT_Stretch = function(t4) {
            var n4, e3, i3, o2, a2 = t4 && t4.fillRect;
            d(a2) || (n4 = (0, r.pft)(a2.l), e3 = (0, r.pft)(a2.r), i3 = (0, r.pft)(a2.t), o2 = (0, r.pft)(a2.b), this.N1t = { left: n4, right: e3, top: i3, bottom: o2 });
          }, n3.prototype.ToCT_Strecth = function() {
            var t4 = this.Stretch, n4 = t4.left, e3 = t4.right, i3 = t4.top, r2 = t4.bottom;
            return { fillRect: { l: Math.round(n4 * c), r: Math.round(e3 * c), t: Math.round(i3 * c), b: Math.round(r2 * c) } };
          }, n3.prototype.FromCT_RelativeRect = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2 = this._1t;
            d(t4) || d(s2) || (n4 = t4.l / c, e3 = t4.r / c, i3 = t4.t / c, r2 = t4.b / c, a2 = (o2 = this.Crop).PictureWidth = s2.Width / (1 - n4 - e3), u2 = o2.PictureHeight = s2.Height / (1 - i3 - r2), o2.PictureOffsetX = (a2 - s2.Width) / 2 - n4 * a2, o2.PictureOffsetY = (u2 - s2.Height) / 2 - i3 * u2);
          }, n3.prototype.FromSJSCT_RelativeRect = function(t4) {
            var n4, e3, i3, o2, a2, u2, s2, c2 = this._1t;
            d(t4) || d(c2) || (n4 = (0, r.pft)(t4.l), e3 = (0, r.pft)(t4.r), i3 = (0, r.pft)(t4.t), o2 = (0, r.pft)(t4.b), u2 = (a2 = this.Crop).PictureWidth = c2.Width / (1 - n4 - e3), s2 = a2.PictureHeight = c2.Height / (1 - i3 - o2), a2.PictureOffsetX = (u2 - c2.Width) / 2 - n4 * u2, a2.PictureOffsetY = (s2 - c2.Height) / 2 - i3 * s2);
          }, n3.prototype.ToCT_RelativeRect = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2 = this._1t, f2 = this.Crop, l2 = f2.ShapeHeight, h2 = f2.ShapeWidth;
            return d(s2) || 0 === l2 || 0 === h2 ? { l: 0, r: 0, t: 0, b: 0 } : (t4 = f2.PictureWidth, n4 = f2.PictureHeight, e3 = f2.PictureOffsetX, i3 = f2.PictureOffsetY, { l: (r2 = ((t4 - h2) / 2 - e3) / t4) * c, r: (o2 = ((t4 - h2) / 2 + e3) / t4) * c, t: (a2 = ((n4 - l2) / 2 - i3) / n4) * c, b: (u2 = ((n4 - l2) / 2 + i3) / n4) * c });
          }, n3.prototype.Clone = function() {
            var t4 = this, e3 = new n3();
            return e3.oft = t4.oft, e3.T1t = t4.T1t, e3.xrt = t4.xrt, t4.D1t && (e3.D1t = t4.D1t.Clone()), e3.aft = t4.aft, e3.k1t = JSON.parse(JSON.stringify(t4.k1t)), e3.N1t = JSON.parse(JSON.stringify(t4.N1t)), e3.wue = t4.wue, e3.E1t = t4.E1t, e3.I1t = t4.I1t, e3.j1t = t4.j1t, e3._1t = t4._1t, e3.A1t = t4.A1t, e3.x1t = t4.x1t, e3;
          }, n3.prototype.OnParentChanged = function(t4) {
            this.sft = t4;
          }, n3;
        })(i2.StatefulBase), n2.PictureFormat = b;
      }, "./dist/plugins/floatingObject/drawing/stateful.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.StatefulBase = void 0, r = (i2 = e2("Common")).Common.lt, o = r.ht, a = (function() {
          function t3(t4) {
            var n3 = this;
            n3.R1t = [], n3.B1t = 0, n3.l0t = 0, n3.L1t = t4, n3.L1t && n3.L1t.AddChildInternal(n3);
          }
          return t3.prototype.SetState = function(t4, n3) {
            var e3 = this, i3 = t4;
            n3 ? e3.l0t |= i3 : e3.l0t &= ~i3, e3.IsClearChildrenStateSuspended || e3.R1t.forEach((function(n4) {
              n4.SetState(t4, false);
            }));
          }, t3.prototype.GetState = function(t4, n3) {
            var e3 = this, i3 = t4, r2 = (i3 & e3.l0t) === i3;
            return r2 || !n3 || o(e3.L1t) || (r2 = e3.L1t.GetState(t4, true)), r2;
          }, t3.prototype.OnStateChanged = function(t4) {
          }, t3.prototype.Dirty = function(t4) {
            this.SetState(t4, true);
          }, t3.prototype.UnDirty = function(t4) {
            this.SetState(t4, false);
          }, t3.prototype.UnDirtyAll = function() {
            this.l0t = 0;
          }, t3.prototype.IsDirty = function(t4) {
            return this.GetState(t4);
          }, t3.prototype.IsPropDirtyIncludingParent = function(t4, n3) {
            var e3 = this, i3 = e3.GetState(t4);
            return !!i3 || !(!n3 || o(e3.L1t)) && e3.L1t.IsPropDirtyIncludingParent(t4, true);
          }, t3.prototype.IsDirtyIncludingParent = function(t4) {
            var n3 = this;
            return n3.l0t > 0 || !(!t4 || o(n3.L1t)) && n3.L1t.IsDirtyIncludingParent(true);
          }, t3.prototype.AddChildInternal = function(t4) {
            var n3 = this.R1t;
            -1 === n3.indexOf(t4) && n3.push(t4);
          }, t3.prototype.RemoveChildInternal = function(t4) {
            var n3 = this.R1t, e3 = n3.indexOf(t4);
            -1 !== e3 && n3.splice(e3, 1);
          }, t3.prototype.SetParentForChildren = function(t4) {
            var n3;
            this.R1t.slice(0).forEach((function(n4) {
              n4.ParentStateful = t4;
            }));
          }, t3.prototype.OnParentChanged = function(t4) {
          }, t3.prototype.SuspendClearChildrenState = function() {
            this.B1t++;
          }, t3.prototype.ResumeClearChilrenState = function() {
            this.B1t--;
          }, Object.defineProperty(t3.prototype, "ParentStateful", { get: function() {
            return this.L1t;
          }, set: function(t4) {
            var n3 = this;
            t4 !== n3.L1t && (n3.L1t && n3.L1t.RemoveChildInternal(this), n3.L1t = t4, n3.L1t && n3.L1t.AddChildInternal(this), n3.OnParentChanged(t4));
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "Children", { get: function() {
            return this.R1t;
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "IsClearChildrenStateSuspended", { get: function() {
            return this.B1t > 0;
          }, enumerable: false, configurable: true }), t3;
        })(), n2.StatefulBase = a;
      }, "./dist/plugins/floatingObject/drawing/threeDFormat.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v = this && this.qKr || (p = function(t3, n3) {
          return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, p(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          p(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), p;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ThreeDFormat = n2.ThreeDFormatStates = void 0, i2 = e2("./dist/plugins/floatingObject/drawing/common.js"), r = e2("./dist/plugins/floatingObject/drawing/stateful.js"), o = e2("./dist/plugins/floatingObject/drawing/drawingInterface.js"), a = e2("Core"), u = a.ExcelHelper.emuToPixles, s = i2.DrawingConstants.PositiveFixedAngleConvert, c = i2.UnitHelper.isNullOrUndefined, (function(t3) {
          t3[t3.BevelBottomDepth = 1] = "BevelBottomDepth", t3[t3.BevelBottomInset = 2] = "BevelBottomInset", t3[t3.BevelBottomType = 4] = "BevelBottomType", t3[t3.BevelTopDepth = 8] = "BevelTopDepth", t3[t3.BevelTopInset = 16] = "BevelTopInset", t3[t3.BevelTopType = 32] = "BevelTopType", t3[t3.ContourColor = 64] = "ContourColor", t3[t3.ContourWidth = 128] = "ContourWidth", t3[t3.Depth = 256] = "Depth", t3[t3.ExtrusionColor = 512] = "ExtrusionColor", t3[t3.ExtrusionColorType = 1024] = "ExtrusionColorType", t3[t3.FieldOfView = 2048] = "FieldOfView", t3[t3.LightAngle = 4096] = "LightAngle", t3[t3.Perspective = 8192] = "Perspective", t3[t3.PresetCamera = 16384] = "PresetCamera", t3[t3.PresetExtrusionDirection = 32768] = "PresetExtrusionDirection", t3[t3.PresetLighting = 65536] = "PresetLighting", t3[t3.PresetLightingDirection = 131072] = "PresetLightingDirection", t3[t3.PresetLightingSoftness = 262144] = "PresetLightingSoftness", t3[t3.PresetMaterial = 524288] = "PresetMaterial", t3[t3.PresetThreeDFormat = 1048576] = "PresetThreeDFormat", t3[t3.ProjectText = 2097152] = "ProjectText", t3[t3.RotationX = 4194304] = "RotationX", t3[t3.RotationY = 8388608] = "RotationY", t3[t3.RotationZ = 16777216] = "RotationZ", t3[t3.Visible = 33554432] = "Visible", t3[t3.Z = 67108864] = "Z", t3[t3.AutoScale = 134217728] = "AutoScale", t3[t3.DepthPercent = 268435456] = "DepthPercent", t3[t3.HeightPercent = 536870912] = "HeightPercent", t3[t3.RightAngleAxes = 1073741824] = "RightAngleAxes";
        })(f = n2.ThreeDFormatStates || (n2.ThreeDFormatStates = {})), (function(t3) {
          t3[t3.ExtrusionColorAutomatic = 0] = "ExtrusionColorAutomatic", t3[t3.ExtrusionColorCustom = 1] = "ExtrusionColorCustom";
        })(l || (l = {})), h = null, d = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, e3) || this, r2 = i3;
            return r2.F1t = o.BevelType.BevelNone, r2.P1t = o.BevelType.BevelNone, r2.G1t = l.ExtrusionColorAutomatic, r2.U1t = 45, r2.jft = true, r2.H1t = h, r2.z1t = true, r2.V1t = 100, r2.Y1t = 100, r2.Z1t = true, r2.DJ = n4, r2.W1t = 30, r2.sft = e3, r2.Q1t(o.PresetCamera.PresetCameraNone), i3;
          }
          return v(n3, t3), n3.prototype.Q1t = function(t4) {
            var n4 = this;
            n4.K1t = t4, n4.Dirty(f.PresetCamera);
          }, n3.prototype.InitDicCameraType = function() {
            var t4 = this.H1t = [];
            t4[o.PresetCamera.CameraLegacyObliqueTopLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueTop] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueTopRight] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueFront] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueRight] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueBottomLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueBottom] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyObliqueBottomRight] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveTopLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveTop] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveTopRight] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveFront] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveRight] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveBottomLeft] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveBottom] = [0, 0, 0], t4[o.PresetCamera.CameraLegacyPerspectiveBottomRight] = [0, 0, 0], t4[o.PresetCamera.CameraOrthographicFront] = [0, 0, 0], t4[o.PresetCamera.CameraIsometricTopUp] = [314.7191, 324.6037, 60.16242], t4[o.PresetCamera.CameraIsometricTopDown] = [45.28088, 324.6037, 299.8376], t4[o.PresetCamera.CameraIsometricBottomUp] = [45.28088, 35.39627, 60.16242], t4[o.PresetCamera.CameraIsometricBottomDown] = [314.7191, 35.39627, 299.8376], t4[o.PresetCamera.CameraIsometricLeftUp] = [45, 325, 0], t4[o.PresetCamera.CameraIsometricLeftDown] = [45, 35, 0], t4[o.PresetCamera.CameraIsometricRightUp] = [315, 35, 0], t4[o.PresetCamera.CameraIsometricRightDown] = [315, 325, 0], t4[o.PresetCamera.CameraIsometricOffAxis1Left] = [64, 18, 0], t4[o.PresetCamera.CameraIsometricOffAxis1Right] = [334, 18, 0], t4[o.PresetCamera.CameraIsometricOffAxis1Top] = [306.5457, 301.2619, 57.6425], t4[o.PresetCamera.CameraIsometricOffAxis2Left] = [26, 18, 0], t4[o.PresetCamera.CameraIsometricOffAxis2Right] = [296, 18, 0], t4[o.PresetCamera.CameraIsometricOffAxis2Top] = [53.45424, 301.2619, 302.3575], t4[o.PresetCamera.CameraIsometricOffAxis3Left] = [64, 342, 0], t4[o.PresetCamera.CameraIsometricOffAxis3Right] = [334, 342, 0], t4[o.PresetCamera.CameraIsometricOffAxis3Bottom] = [306.5457, 58.73808, 302.3575], t4[o.PresetCamera.CameraIsometricOffAxis4Left] = [26, 342, 0], t4[o.PresetCamera.CameraIsometricOffAxis4Right] = [296, 342, 0], t4[o.PresetCamera.CameraIsometricOffAxis4Bottom] = [53.45424, 58.73808, 57.64252], t4[o.PresetCamera.CameraObliqueTopLeft] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueTop] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueTopRight] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueLeft] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueRight] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueBottomLeft] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueBottom] = [0, 0, 0], t4[o.PresetCamera.CameraObliqueBottomRight] = [0, 0, 0], t4[o.PresetCamera.CameraPerspectiveFront] = [0, 0, 0], t4[o.PresetCamera.CameraPerspectiveLeft] = [20, 0, 0], t4[o.PresetCamera.CameraPerspectiveRight] = [340, 0, 0], t4[o.PresetCamera.CameraPerspectiveAbove] = [0, 340, 0], t4[o.PresetCamera.CameraPerspectiveBelow] = [0, 20, 0], t4[o.PresetCamera.CameraPerspectiveAboveLeftFacing] = [14.33758, 39.30647, 341.1238], t4[o.PresetCamera.CameraPerspectiveAboveRightFacing] = [345.6624, 39.30647, 18.87615], t4[o.PresetCamera.CameraPerspectiveContrastingLeftFacing] = [43.93887, 10.39642, 356.4465], t4[o.PresetCamera.CameraPerspectiveContrastingRightFacing] = [316.0611, 10.39642, 3.553517], t4[o.PresetCamera.CameraPerspectiveHeroicLeftFacing] = [14.29302, 348.9837, 2.626817], t4[o.PresetCamera.CameraPerspectiveHeroicRightFacing] = [345.7069, 348.9837, 357.3732], t4[o.PresetCamera.CameraPerspectiveHeroicExtremeLeftFacing] = [34.46068, 8.12245, 357.0914], t4[o.PresetCamera.CameraPerspectiveHeroicExtremeRightFacing] = [325.5393, 8.12245, 2.9086], t4[o.PresetCamera.CameraPerspectiveRelaxed] = [0, 309.5601, 0], t4[o.PresetCamera.CameraPerspectiveRelaxedModerately] = [0, 324.844, 0];
          }, n3.prototype.SetPresetCamera = function(t4) {
            var n4 = this;
            n4.K1t = t4, n4.Dirty(f.PresetCamera);
          }, n3.prototype.UpdatePresetCamera = function() {
            var t4 = this;
            t4.K1t === o.PresetCamera.PresetCameraNone && t4.SetPresetCamera(o.PresetCamera.CameraOrthographicFront);
          }, n3.prototype.IncrementRotationX = function(t4) {
            this.RotationX += t4;
          }, n3.prototype.IncrementRotationY = function(t4) {
            this.RotationY += t4;
          }, n3.prototype.IncrementRotationZ = function(t4) {
            this.RotationZ += t4;
          }, n3.prototype.ResetRotation = function() {
            var t4 = this;
            t4.RotationX = 0, t4.RotationY = 0, t4.RotationZ = 0;
          }, n3.prototype.Clone = function() {
            var t4 = this, e3 = new n3(t4.DJ);
            return e3.J1t = t4.J1t, e3.X1t = t4.X1t, e3.F1t = t4.F1t, e3.q1t = t4.q1t, e3.$1t = t4.$1t, e3.P1t = t4.P1t, c(t4.tlt) || (e3.tlt = t4.tlt.Clone()), e3.nlt = t4.nlt, e3.elt = t4.elt, c(t4.ilt) || (e3.ilt = t4.ilt.Clone()), e3.G1t = t4.G1t, e3.U1t = t4.U1t, e3.rlt = t4.rlt, e3.W1t = t4.W1t, e3.K1t = t4.K1t, e3.olt = t4.olt, e3.ult = t4.ult, e3.slt = t4.slt, e3.clt = t4.clt, e3.flt = t4.flt, e3.llt = t4.llt, e3.hlt = t4.hlt, e3.dlt = t4.dlt, e3.vlt = t4.vlt, e3.mlt = t4.mlt, e3.jft = t4.jft, e3._z = t4._z, e3.l0t = t4.l0t, e3.sft = t4.sft, e3;
          }, n3.prototype.IsDirtyIncludingParent = function(n4) {
            var e3 = this;
            return !(!e3.tlt || !e3.tlt.IsDirtyIncludingParent(n4)) || (!(!e3.ilt || !e3.ilt.IsDirtyIncludingParent(n4)) || t3.prototype.IsDirtyIncludingParent.call(this, n4));
          }, n3.prototype.OnParentChanged = function(t4) {
            var n4 = this;
            n4.sft = t4, c(n4.sft) && (n4.tlt && (n4.tlt.ParentStateful = h), n4.ilt && (n4.ilt.ParentStateful = h));
          }, n3.prototype.FromOOModel = function(t4) {
            var n4 = this;
            n4.cft = t4, n4.FromCT_Scene3D(n4.cft.Scene3D), n4.FromCT_View3D(n4.cft.View3D), n4.FromCT_Shape3D(n4.cft.Shape3D);
          }, n3.prototype.FromSJSOOModel = function(t4, n4, e3) {
            var i3 = this;
            i3.cft = { scene3d: t4, sp3d: n4, extLst: e3 }, t4 || n4 ? (i3.plt(t4), i3.blt(n4)) : e3 && i3.ylt(e3);
          }, n3.prototype.wlt = function(t4) {
            if (t4) {
              var n4 = this, e3 = t4.lat, i3 = t4.lon, r2 = t4.rev;
              n4.RotationX = parseInt(i3, 10) / s, n4.RotationY = parseInt(e3, 10) / s, n4.RotationZ = parseInt(r2, 10) / s;
            }
          }, n3.prototype.Mlt = function(t4) {
            var n4 = this, e3 = t4.prst, i3 = t4.rot;
            n4.Q1t(o.ST_PresetCameraType[e3]), c(i3) || n4.wlt(i3);
          }, n3.prototype.plt = function(t4) {
            var n4, e3, i3 = this;
            c(t4) || (n4 = t4.camera, e3 = t4.extLst, n4 && i3.Mlt(n4), e3 && i3.ylt(e3));
          }, n3.prototype.Clt = function(t4) {
            var n4 = { w: 76200, h: 76200, prst: 1 }, e3 = t4.w, i3 = t4.h, r2 = t4.prst;
            return e3 && (n4.w = parseInt(e3, 10)), i3 && (n4.h = parseInt(i3, 10)), r2 && (n4.prst = o.ST_BevelPresetType[r2]), n4;
          }, n3.prototype.blt = function(t4) {
            var n4, e3, i3, r2, o2;
            t4 && (n4 = this, (e3 = t4.extrusionH) && 0 !== (i3 = u(parseInt(e3, 10))) && (n4.Depth = i3, n4.Dirty(f.Depth)), t4.z && 0 !== (r2 = u(parseInt(t4.z, 10))) && (n4.Z = r2, n4.Dirty(f.Z)), (o2 = t4.extLst) && n4.ylt(o2));
          }, n3.prototype.ylt = function(t4) {
            var n4, e3 = this, i3 = t4 && t4.ext;
            i3 && (n4 = [].concat(i3)).forEach((function(t5) {
              var n5 = c(t5.uri) ? "" : t5.uri, i4 = t5.scene3d, r2 = t5.sp3d;
              n5 === o.OOXMLFileHelper.HiddenScene3dUri ? e3.plt(i4) : n5 === o.OOXMLFileHelper.HiddenSp3dUri && e3.blt(r2), (i4 || r2) && (e3._InternalVisible = false, e3.Dirty(f.Visible));
            }));
          }, n3.prototype.ToOOModel = function(t4) {
            var n4 = this, e3 = n4.cft || {};
            return e3.View3D = n4.ToCT_View3D(), n4.PresetCamera !== o.PresetCamera.PresetCameraNone && (e3.Scene3D = n4.ToCT_Scene3D()), (n4.IsPropDirtyIncludingParent(f.Depth, true) || n4.IsPropDirtyIncludingParent(f.Z, true)) && (e3.Shape3D = n4.ToCT_Shape3D()), e3;
          }, n3.prototype.FromCT_View3D = function(t4) {
            var n4 = this;
            c(t4) || (c(t4.hPercent) || (n4._HeightPercent = t4.hPercent), c(t4.depthPercent) || (n4._DepthPercent = t4.depthPercent), c(t4.rotX) || (n4.RotationY = t4.rotX), c(t4.rotY) || (n4.RotationX = t4.rotY), c(t4.rAngAx) ? n4._RightAngleAxes = false : n4._RightAngleAxes = t4.rAngAx, c(t4.perspective) || (n4.Perspective = t4.perspective / 2));
          }, n3.prototype.ToCT_View3D = function() {
            var t4 = this, n4 = t4.cft && t4.cft.View3D || {};
            return !t4._AutoScale && t4.IsDirty(f.HeightPercent) && (n4.hPercent = t4._HeightPercent), t4.IsDirty(f.DepthPercent) && (n4.depthPercent = t4._DepthPercent), t4.IsDirty(f.RotationY) && (n4.rotX = t4.RotationY), t4.IsDirty(f.RotationX) && (n4.rotY = t4.RotationX), t4.IsDirty(f.RightAngleAxes) && (n4.rAngAx = t4._RightAngleAxes), !t4._RightAngleAxes && t4.IsDirty(f.Perspective) && (n4.perspective = 2 * t4.Perspective), n4;
          }, n3.prototype.FromCT_Scene3D = function(t4) {
            c(t4) || this.FromCT_Camera(t4.camera);
          }, n3.prototype.ToCT_Scene3D = function() {
            var t4 = this, n4 = t4.cft, e3 = n4 && n4.Scene3D || {};
            return e3.camera = t4.ToCT_Camera(), !c(e3.camera) && c(e3.lightRig) && (e3.lightRig = t4.ToDefaultCT_LightRig()), c(e3.camera) && c(e3.backdrop) && c(e3.lightRig) ? h : e3;
          }, n3.prototype.GetActualCT_Scene3D = function() {
            var t4 = this;
            return c(t4.cft) || c(t4.cft.Scene3D) ? c(t4.sft) ? h : t4.GetActualCT_Scene3D() : t4.cft.Scene3D;
          }, n3.prototype.FromCT_Shape3D = function(t4) {
            var n4 = this;
            c(t4) || (0 !== t4.extrusionH && (n4.Depth = t4.extrusionH, n4.Dirty(f.Depth)), 0 !== t4.z && (n4.Z = t4.z, n4.Dirty(f.Z)));
          }, n3.prototype.ToCT_Shape3D = function() {
            var t4 = this, n4 = t4.cft, e3 = n4 && n4.Shape3D || { z: 0, extrusionH: 0, contourW: 0, prstMaterial: o.ST_PresetMaterialType.warmMatte };
            return e3.extrusionH = t4.Depth, e3.z = t4.Z, e3;
          }, n3.prototype.ToDefaultCT_LightRig = function() {
            return { rig: o.LightRigType.LightRigThreePoint, dir: o.PresetLightingDirection.LightingTopLeft };
          }, n3.prototype.FromCT_Camera = function(t4) {
            c(t4) || (this.Q1t(t4.prst), c(t4.rot) || this.FromCameraCT_SphereCoords(t4.rot));
          }, n3.prototype.ToCT_Camera = function() {
            var t4, n4, e3 = this;
            return e3.DJ.DrawingType === o.DrawingType.Shape || e3.DJ.DrawingType === o.DrawingType.GroupShape ? ((t4 = { zoom: 1e5 }).prst = e3.PresetCamera, t4.rot = e3.ToCameraCT_SphereCoords(), t4) : (n4 = e3.cft) && n4.Scene3D && n4.Scene3D.camera || h;
          }, n3.prototype.FromCameraCT_SphereCoords = function(t4) {
            var n4 = this;
            c(t4) || (n4.RotationX = t4.lon / s, n4.RotationY = t4.lat / s, n4.RotationZ = t4.rev / s);
          }, n3.prototype.ToCameraCT_SphereCoords = function() {
            var t4, n4, e3, i3, r2 = this;
            return 0 === r2.RotationX && 0 === r2.RotationY && 0 === r2.RotationZ ? h : (t4 = {}, n4 = r2.RotationX, e3 = r2.RotationY, i3 = r2.RotationZ, t4.lon = n4 * s, t4.lat = e3 * s, t4.rev = i3 * s, t4);
          }, Object.defineProperty(n3.prototype, "Perspective", { get: function() {
            var t4 = this;
            return t4.Dirty(f.Perspective), c(t4.sft) ? t4.W1t : t4.sft.Perspective;
          }, set: function(t4) {
            var n4 = this;
            n4.W1t = t4, n4.Dirty(f.Perspective);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "PresetCamera", { get: function() {
            var t4 = this;
            return t4.Dirty(f.PresetCamera), c(t4.sft) ? t4.K1t : t4.sft.PresetCamera;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RotationX", { get: function() {
            var t4 = this;
            return t4.Dirty(f.RotationX), c(t4.sft) ? t4.Visible ? t4.dlt : 0 : t4.sft.RotationX;
          }, set: function(t4) {
            var n4 = this;
            t4 !== n4.dlt && (n4.dlt = t4, n4.Dirty(f.RotationX), n4.UpdatePresetCamera());
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RotationY", { get: function() {
            var t4 = this;
            return t4.Dirty(f.RotationY), c(t4.sft) ? t4.Visible ? t4.vlt : 0 : t4.sft.RotationY;
          }, set: function(t4) {
            var n4 = this;
            if (n4.DJ.DrawingType === o.DrawingType.Chart) {
              if (t4 < -90 && t4 >= 180) return;
            } else if (t4 < 0 && t4 >= 360) return;
            n4.vlt = t4, n4.Dirty(f.RotationY), n4.UpdatePresetCamera();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "RotationZ", { get: function() {
            var t4 = this;
            return t4.Dirty(f.RotationZ), c(t4.sft) ? t4.Visible ? t4.mlt : 0 : t4.sft.RotationZ;
          }, set: function(t4) {
            var n4 = this;
            t4 !== n4.mlt && (n4.mlt = t4, n4.Dirty(f.RotationZ), n4.UpdatePresetCamera());
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Visible", { get: function() {
            var t4 = this;
            return t4.Dirty(f.Visible), c(t4.sft) ? t4.jft : t4.sft.Visible;
          }, set: function(t4) {
            var n4 = this;
            n4.jft = t4, n4.Dirty(f.Visible);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Z", { get: function() {
            var t4 = this;
            return t4.Dirty(f.Z), c(t4.sft) ? t4.Visible ? t4._z : 0 : t4.sft.Z;
          }, set: function(t4) {
            var n4 = this;
            n4._z = t4, n4.Dirty(f.Z), n4.UpdatePresetCamera();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "Depth", { get: function() {
            var t4 = this;
            return t4.Dirty(f.Depth), c(t4.sft) ? t4.Visible ? t4.elt : 0 : t4.sft.Depth;
          }, set: function(t4) {
            var n4 = this;
            n4.elt = t4, n4.Dirty(f.Depth), n4.UpdatePresetCamera();
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "DicCameraType", { get: function() {
            var t4 = this;
            return c(t4.H1t) && t4.InitDicCameraType(), t4.H1t;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "_InternalVisible", { get: function() {
            return this.jft;
          }, set: function(t4) {
            this.jft = t4;
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "_AutoScale", { get: function() {
            return this.z1t;
          }, set: function(t4) {
            var n4 = this;
            n4.z1t = t4, n4.Dirty(f.AutoScale);
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "_DepthPercent", { get: function() {
            return this.V1t;
          }, set: function(t4) {
            var n4 = this;
            t4 >= 20 && t4 <= 2e3 && (n4.V1t = t4, n4.Dirty(f.DepthPercent));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "_HeightPercent", { get: function() {
            return this.Y1t;
          }, set: function(t4) {
            var n4 = this;
            t4 >= 5 && t4 <= 500 && (n4.Y1t = t4, n4.Dirty(f.HeightPercent));
          }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "_RightAngleAxes", { get: function() {
            return this.Z1t;
          }, set: function(t4) {
            var n4 = this;
            n4.Z1t = t4, n4.Dirty(f.RightAngleAxes);
          }, enumerable: false, configurable: true }), n3;
        })(r.StatefulBase), n2.ThreeDFormat = d;
      }, "./dist/plugins/floatingObject/floatingobject-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G = this && this.qKr || (U = function(t3, n3) {
          return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, U(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          U(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), U;
        function H(t3) {
          var n3 = t3.WL, e3 = false;
          return n3 && n3.QP().forEach((function(t4) {
            t4 && t4[N]() && (e3 = true);
          })), e3;
        }
        function V(t3, n3) {
          var e3 = s(n3), i3, r2;
          if (s(n3) > 0) for (i3 = 0; i3 < e3; i3++) (r2 = t3.WL.ev(n3[i3])) && r2.isSelected(true);
        }
        function z(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2 = t3.parent, c2 = [], f2 = t3.WL;
          if (i3) c2 = i3;
          else for (o2 = 0; o2 < e3.length; o2++) c2.push(f2.ev(e3[o2]));
          s2 && n3._oldPosition && c2[0] && (a2 = c2[0].startRow(), u2 = c2[0].startColumn(), s2.changeSelectionInCommandExecuting(n3, a2, u2, [], c2), n3._oldPosition.X3 = r2);
        }
        function Y(t3) {
          var n3, e3 = t3, i3 = e3.Mf;
          return !!e3.canUndo() && (e3.X5(i3, true), n3 = r.Commands.TI(i3.name()), i3.Ut.undo(e3.tT[n3]), e3.q5(i3, true), true);
        }
        function Z(t3) {
          var n3 = [];
          return t3.WL.QP().forEach((function(t4) {
            t4[N]() && n3.push(t4[j]());
          })), n3;
        }
        function W(t3, n3, e3) {
          var i3, r2, a2, u2, f2 = t3.uq(), l2 = f2.fromSheet;
          for (f2.fromSheet = t3, f2.isCutting = e3, i3 = new o.Nlt(), r2 = 0, a2 = 0; a2 < s(n3); a2++) (u2 = t3.WL.ev(n3[a2])) && (i3.push(u2), r2++);
          return l2 && (l2.dP = c), t3.dP = i3, r2 > 0;
        }
        function Q(t3) {
          var n3, e3 = t3.typeName;
          switch (e3) {
            case "0":
            case "1":
              break;
            case "2":
              n3 = "Chart ";
          }
          return n3;
        }
        function K(t3) {
          return function(n3, e3) {
            var i3, o2, a2 = r.Commands.Tp(n3, e3), u2 = a2.options.rightToLeft, c2 = 0;
            return t3 === P.left && !u2 || t3 === P.right && u2 ? c2 = -1 : (t3 === P.right && !u2 || t3 === P.left && u2) && (c2 = 1), i3 = 0, t3 === P.up ? i3 = -1 : t3 === P.down && (i3 = 1), o2 = Z(a2), s(o2) > 0 && a2.Qy().execute({ cmd: S, sheetName: a2.name(), floatingObjects: o2, offsetX: c2, offsetY: i3 });
          };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DragCopyFloatingObjectUndoAction = n2.ClipboardPasteFloatingObjectUndoAction = n2.FloatingObjectCopyPasteUndoAction = n2.ResizingFloatingObjectUndoAction = n2.MovingFloatingObjectUndoAction = n2.DeleteFloatingObjectUndoAction = n2.FloatingObjectUndoActionBase = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/floatingObject/floatingobject.js"), a = r.GC$, u = a.isArray, s = i2.Common.Uf.tR, c = null, f = Math.min, l = Math.max, h = i2.Common.lt.ht, d = "unSelectAllFloatingObjects", v = "deleteFloatingObjects", p = "deleteFloatingObjectsByBackspaceKey", g = "navigationNextFloatingObject", m = "navigationPreviousFloatingObject", b = "cutFloatingObjects", y = "copyFloatingObjects", w = "pasteFloatingObjects", M = "dragCopyFloatingObjects", C = "selectAllFloatingObjects", S = "moveFloatingObjects", T = "moveFloatingObjectsUp", x = "moveFloatingObjectsDown", A = "moveFloatingObjectsLeft", I = "moveFloatingObjectsRight", k = "resizeFloatingObjects", N = "isSelected", j = "name", D = r.Commands.zA, _ = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return G(n3, t3), n3.prototype.canExecute = function() {
            return !!H(this.Mf);
          }, n3.prototype.canUndo = function() {
            var t4 = r.Commands.TI(this.Mf.name()), n4 = this.tT[t4], e3 = n4 && n4.floatingObjectChanges;
            return !!(e3 && s(e3) > 0) || !!((e3 = n4 && n4.slicerChanges) && s(e3) > 0);
          }, n3;
        })(r.Commands.ActionBase), n2.FloatingObjectUndoActionBase = _, O = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return G(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2 = this, c2 = false, f2 = a2.Mf, l2 = a2.tT, h2 = l2.floatingObjects;
            if (a2.canExecute() && u(h2)) {
              for (z(f2, l2, h2), r.Commands.startTransaction(this.Mf.getParent(), this.tT), a2.X5(f2, true), t4 = f2.WL, n4 = 0, e3 = s(h2); n4 < e3; n4++) (i3 = t4.ev(h2[n4])) && (o2 = f2.slicers, a2.klt(i3) && o2 && o2.DK(i3[j]()), t4.VP(h2[n4], true), i3[N](false));
              f2.cR(), a2.q5(f2, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), c2 = s(h2) > 0;
            }
            return c2;
          }, n3.prototype.undo = function() {
            var t4, n4 = this, e3 = n4.tT, i3 = n4.Mf;
            return !!n4.canUndo() && (n4.X5(i3, true), t4 = r.Commands.TI(i3.name()), i3.Ut.undo(e3[t4]), i3.e4(), n4.q5(i3, true), true);
          }, n3.prototype.klt = function(t4) {
            return t4 && "Slicer" === t4.typeName;
          }, n3;
        })(_), n2.DeleteFloatingObjectUndoAction = O, E = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return G(n3, t3), n3.prototype.canExecute = function() {
            return true;
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2 = this, c2 = false, f2 = a2.tT, l2 = f2.floatingObjects, h2 = a2.Mf;
            if (a2.canExecute() && u(l2)) {
              for (z(h2, f2, l2), r.Commands.startTransaction(this.Mf.getParent(), this.tT), a2.X5(h2, true), t4 = h2.WL, n4 = 0, e3 = s(l2); n4 < e3; n4++) (i3 = t4.ev(l2[n4])).allowMove() && (o2 = i3.position(), i3.position(new r.Point(o2.x + f2.offsetX, o2.y + f2.offsetY)));
              a2.q5(h2, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), c2 = s(l2) > 0;
            }
            return c2;
          }, n3.prototype.undo = function() {
            return Y(this);
          }, n3;
        })(_), n2.MovingFloatingObjectUndoAction = E, R = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return G(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2 = this, c2 = false, f2 = a2.tT, h2 = f2.floatingObjects, d2 = a2.Mf;
            if (V(d2, h2), a2.canExecute() && u(h2)) {
              for (z(d2, f2, h2), r.Commands.startTransaction(this.Mf.getParent(), this.tT), a2.X5(d2, true), t4 = d2.WL, n4 = 0, e3 = s(h2); n4 < e3; n4++) (i3 = t4.ev(h2[n4])).allowResize() && (o2 = i3.position(), i3.width(l(i3.width() + f2.offsetWidth, 0)), i3.height(l(i3.height() + f2.offsetHeight, 0)), i3.position(new r.Point(o2.x + f2.offsetX, o2.y + f2.offsetY)));
              a2.q5(d2, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), c2 = s(h2) > 0;
            }
            return c2;
          }, n3.prototype.undo = function() {
            return Y(this);
          }, n3;
        })(_), n2.ResizingFloatingObjectUndoAction = R, L = (function(t3) {
          function n3() {
            var n4 = t3.call(this) || this;
            return n4.Mf = c, n4;
          }
          return G(n3, t3), n3.prototype.canExecute = function() {
            var t4 = this, n4 = t4.tT.floatingObjects;
            return !!(s(n4) > 0 && t4.Dlt(n4));
          }, n3.prototype.canUndo = function() {
            var t4 = r.Commands.TI(this.Mf.name()), n4 = this.tT[t4], e3 = n4 && n4.floatingObjectChanges;
            return !!(e3 && s(e3) > 0);
          }, n3.prototype.Dlt = function(t4) {
            var n4, e3, i3, r2 = this, o2 = r2.Mf, a2 = o2.WL;
            for (n4 = 0, e3 = s(t4); n4 < e3; n4++) if ((i3 = a2.ev(t4[n4])) && !o2._lt(i3)) return false;
            return true;
          }, n3.prototype.klt = function(t4) {
            return t4 && "Slicer" === t4.typeName;
          }, n3;
        })(r.Commands.ActionBase), n2.FloatingObjectCopyPasteUndoAction = L, F = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.OFFSET = 15, r2.Mf = n4, r2.tT = e3, h(e3.clipboardFloatingObjectData) && (e3.clipboardFloatingObjectData = e3.fromSheet.dP), i3;
          }
          return G(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, D2, _2, O2, E2, R2, L2, F2 = this, B2 = F2.tT, P2 = B2.floatingObjects;
            if (F2.canExecute()) {
              for (t4 = F2.Mf, n4 = B2.fromSheet, r.Commands.startTransaction(this.Mf.getParent(), this.tT), F2.X5(t4, true), e3 = [], i3 = t4.WL, o2 = B2.clipboardFloatingObjectData, void 0 === B2.ui && (H(t4) && i3.QP().forEach((function(t5) {
                t5 && t5[N]() && e3.push(t5);
              })), B2.ui = F2.Mf.getActiveRowIndex(), B2.Elt = F2.Mf.getActiveColumnIndex()), H(t4) && i3.QP().forEach((function(t5) {
                t5 && t5[N]() && t5[N](false);
              })), a2 = [], u2 = void 0, c2 = void 0, h2 = l2 = Number.MAX_VALUE, d2 = l2, v2 = [], c2 = s(P2), u2 = 0; u2 < c2; u2++) p2 = o2.find(P2[u2]).position(), h2 = f(h2, p2.x), d2 = f(d2, p2.y), v2.push(new r.Point(p2.x - h2, p2.y - d2));
              if (g2 = 0, m2 = 0, e3.length) b2 = l2, y2 = l2, e3.forEach((function(t5) {
                if (t5) {
                  var n5 = t5.position();
                  b2 = f(b2, n5.x), y2 = f(y2, n5.y);
                }
              })), g2 = b2 < l2 ? b2 + F2.OFFSET : 0, m2 = y2 < l2 ? y2 + F2.OFFSET : 0;
              else {
                for (w2 = 0; w2 < B2.ui; w2++) m2 += t4._o(w2, 3);
                for (M2 = 0; M2 < B2.Elt; M2++) g2 += t4.Do(M2, 3);
              }
              for (c2 = s(P2), u2 = 0; u2 < c2; u2++) C2 = v2[u2], a2.push(new r.Point(g2 + C2.x, m2 + C2.y));
              for (S2 = B2.isCutting, T2 = n4.WL, x2 = [], A2 = [], c2 = s(P2), u2 = 0; u2 < c2; u2++) (k2 = (I2 = o2.find(P2[u2])).clone(t4)).sheet(t4), x2.push(k2), A2.push(I2);
              if (D2 = false, _2 = { sheet: t4, sheetName: t4.name(), objects: x2, fromSheet: B2.fromSheet, isCutting: B2.isCutting, cancel: false, action: B2.isCutting ? r.ClipboardActionType.cut : r.ClipboardActionType.copy }, t4.ki(r.Events.ClipboardPasting, _2), !_2.cancel) {
                for (u2 = 0; u2 < c2; u2++) k2 = x2[u2], O2 = void 0, E2 = false, I2 = A2[u2], !S2 || T2.ev(P2[u2]) || i3.ev(P2[u2]) ? (E2 = k2.name() === I2.name()) && (R2 = Q(k2), O2 = F2.klt(k2) ? t4.slicers.G1i(k2[j]()) : i3.jlt(R2)) : O2 = I2.name(), E2 && k2[j](O2), F2.klt(k2) && (t4.slicers.WB(k2), k2.width(I2.width()), k2.height(I2.height())), k2.isVisible(true), k2.position(a2[u2]), k2[N](true), i3.ZP(k2);
                z(t4, B2, null, x2, true), L2 = { sheet: t4, sheetName: t4.name(), objects: x2, fromSheet: B2.fromSheet, isCutting: B2.isCutting, action: B2.isCutting ? r.ClipboardActionType.cut : r.ClipboardActionType.copy }, t4.ki(r.Events.ClipboardPasted, L2), D2 = true;
              }
              return F2.q5(t4, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), D2 || (B2.JD = true), D2;
            }
            return false;
          }, n3.prototype.undo = function() {
            var t4, n4, e3 = this;
            return !!e3.canUndo() && (t4 = e3.Mf, e3.X5(t4, true), n4 = r.Commands.TI(t4.name()), t4.Ut.undo(e3.tT[n4]), e3.q5(t4, true), true);
          }, n3;
        })(L), n2.ClipboardPasteFloatingObjectUndoAction = F, B = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this, r2 = i3;
            return r2.Mf = n4, r2.tT = e3, i3;
          }
          return G(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, c2, f2 = this, l2 = false, h2 = f2.tT, d2 = h2.floatingObjects, v2 = f2.Mf;
            if (f2.canExecute()) {
              for (z(v2, h2, d2), r.Commands.startTransaction(this.Mf.getParent(), this.tT), f2.X5(v2, true), t4 = v2.WL, n4 = s(d2), e3 = 0; e3 < n4; e3++) (i3 = t4.ev(d2[e3])) && ((o2 = i3.clone(v2)).sheet(v2), a2 = i3.position(), o2.position(new r.Point(a2.x + h2.offsetX, a2.y + h2.offsetY)), o2[j](t4.jlt()), o2[N](true), i3[N](false), f2.klt(o2) && v2.slicers && (u2 = o2, c2 = v2.slicers.G1i(u2.columnName()), u2[j](c2), v2.slicers.WB(u2)), t4.ZP(o2));
              f2.q5(v2, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), l2 = true;
            }
            return l2;
          }, n3.prototype.undo = function() {
            var t4, n4 = this, e3 = n4.Mf;
            return !!n4.canUndo() && (n4.X5(e3, true), t4 = r.Commands.TI(e3.name()), e3.Ut.undo(n4.tT[t4]), n4.q5(e3, true), true);
          }, n3;
        })(L), n2.DragCopyFloatingObjectUndoAction = B, r.Commands[d] = { canUndo: false, execute: function(t3, n3) {
          var e3 = r.Commands.Tp(t3, n3);
          return !!H(e3) && (e3.suspendPaint(), e3.Olt(), e3.cR(), e3.resumePaint(), true);
        } }, r.Commands[C] = { canUndo: false, execute: function(t3, n3) {
          var e3 = r.Commands.Tp(t3, n3);
          e3.isEditing() || (e3.suspendPaint(), e3.WL.QP().forEach((function(t4) {
            t4[N](true);
          })), e3.resumePaint());
        } }, r.Commands[v] = { canUndo: true, execute: function(t3, n3, e3) {
          var i3, o2 = r.Commands.Tp(t3, n3);
          return e3 || (n3.cmd || (n3.cmd = v), n3.floatingObjects || (i3 = Z(o2), n3.floatingObjects = i3)), s(n3.floatingObjects) > 0 && D(t3, O, n3, e3);
        } }, r.Commands[g] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2, f2 = r.Commands.Tp(t3, n3);
          if (H(f2)) {
            for (f2.suspendPaint(), e3 = void 0, i3 = void 0, o2 = void 0, a2 = void 0, s2 = (u2 = f2.WL.QP()).length, a2 = 0; a2 < s2; a2++) {
              if (c2 = u2[a2], i3 || (i3 = c2), e3) {
                o2 = c2;
                break;
              }
              c2 && c2[N]() && (e3 = c2);
            }
            return f2.Olt(), o2 || (o2 = i3), o2 && o2[N](true), f2.resumePaint(), true;
          }
          return false;
        } }, r.Commands[m] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2 = r.Commands.Tp(t3, n3);
          if (H(c2)) {
            for (c2.suspendPaint(), e3 = void 0, i3 = void 0, o2 = void 0, u2 = (a2 = c2.WL.QP()).length, o2 = 0; o2 < u2; o2++) if (s2 = a2[o2], e3 || (e3 = s2), e3[N]()) i3 = s2;
            else if (s2[N]() || (i3 = s2), s2[N]()) break;
            return i3 && (c2.Olt(), i3[N](true)), c2.resumePaint(), true;
          }
          return false;
        } }, r.Commands[b] = { canUndo: true, execute: function(t3, n3, e3) {
          var i3, o2, a2, u2, c2, f2, l2, h2 = false;
          return e3 ? h2 = D(t3, O, n3, e3) : (i3 = r.Commands.Tp(t3, n3), n3.cmd || (n3.cmd = b), o2 = i3.uq(), n3.floatingObjects || (a2 = Z(i3), n3.floatingObjects = a2, n3.fromSheet = o2.fromSheet, n3.isCutting = o2.isCutting), u2 = n3.floatingObjects, c2 = void 0, f2 = void 0, l2 = void 0, s(u2) > 0 && (f2 = u2.map((function(t4) {
            return i3.WL.ev(t4);
          })), c2 = { sheet: i3, sheetName: i3.name(), objects: f2, isCutting: true, cancel: false, action: r.ClipboardActionType.cut }, i3.ki(r.Events.ClipboardChanging, c2), c2.cancel ? n3.JD = true : ((l2 = W(i3, u2, true)) && (i3.ieV && i3.ieV(), r.Commands.fI(i3.parent)), h2 = D(t3, O, n3, e3), i3.ki(r.Events.ClipboardChanged, { sheet: i3, sheetName: i3.name(), objects: f2 })))), h2;
        } }, r.Commands[y] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, o2, a2 = r.Commands.Tp(t3, n3), u2 = r.mt.w_e(a2);
          if (s(u2) > 0) {
            if (e3 = u2.map((function(t4) {
              return a2.WL.ev(t4);
            })), i3 = { sheet: a2, sheetName: a2.name(), objects: e3, isCutting: false, cancel: false, action: r.ClipboardActionType.copy }, a2.ki(r.Events.ClipboardChanging, i3), !i3.cancel) return (o2 = W(a2, u2, false)) && (a2.ieV && a2.ieV(), r.Commands.fI(a2.parent)), a2.ki(r.Events.ClipboardChanged, { sheet: a2, sheetName: a2.name(), objects: e3 }), o2;
            n3.JD = true;
          }
          return false;
        } }, r.Commands[w] = { canUndo: true, execute: function(t3, n3, e3) {
          var i3, o2, a2, u2, c2 = r.Commands.Tp(t3, n3);
          return !c2.isEditing() && (!!(a2 = (o2 = (i3 = c2.uq()).fromSheet) && o2.dP) && (u2 = [], a2.each((function(t4) {
            u2.push(t4[j]());
          })), 0 !== s(u2) && (!c2.xT && (e3 || (n3.cmd || (n3.cmd = w), n3.floatingObjects || (n3.floatingObjects = u2, n3.fromSheet = o2, n3.isCutting = i3.isCutting)), s(n3.floatingObjects) > 0 && D(t3, F, n3, e3)))));
        } }, r.Commands[M] = { canUndo: true, execute: function(t3, n3, e3) {
          return D(t3, B, n3, e3);
        } }, (function(t3) {
          t3[t3.left = 0] = "left", t3[t3.up = 1] = "up", t3[t3.right = 2] = "right", t3[t3.down = 3] = "down";
        })(P || (P = {})), r.Commands[A] = K(P.left), r.Commands[T] = K(P.up), r.Commands[I] = K(P.right), r.Commands[x] = K(P.down), r.Commands[S] = { canUndo: true, execute: function(t3, n3, e3) {
          return (0 !== n3.offsetX || 0 !== n3.offsetY) && D(t3, E, n3, e3);
        } }, r.Commands[k] = { canUndo: true, execute: function(t3, n3, e3) {
          return D(t3, R, n3, e3);
        } }, r.Commands.Rlt = function(t3) {
          var n3 = r.mt.Tt, e3 = r.mt.Qf(), i3 = !e3, o2 = e3;
          t3.register(d, r.Commands[d], 27, false, false, false, false), t3.register(C, r.Commands[C], 65, i3, false, false, o2), t3.register(v, r.Commands[v], 46, false, false, false, false), t3.register(p, r.Commands[v], 8, false, false, false, false), t3.register(g, r.Commands[g], 9, false, false, false, false), t3.register(m, r.Commands[m], 9, false, true, false, false), n3.msie || n3.edge ? (t3.register(b, r.Commands[b], 88, i3, false, false, o2), t3.register(y, r.Commands[y], 67, i3, false, false, o2), t3.register(w, r.Commands[w], 86, i3, false, false, o2)) : (t3.register(b, r.Commands[b]), t3.register(y, r.Commands[y]), t3.register(w, r.Commands[w])), t3.register(M, r.Commands[M]), t3.register(S, r.Commands[S]), t3.register(T, r.Commands[T], 38, false, false, false, false), t3.register(x, r.Commands[x], 40, false, false, false, false), t3.register(A, r.Commands[A], 37, false, false, false, false), t3.register(I, r.Commands[I], 39, false, false, false, false), t3.register(k, r.Commands[k]);
        };
      }, "./dist/plugins/floatingObject/floatingobject-touch.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FloatingObjectTouchEventHandler = void 0, i2 = e2("Touch"), r = e2("Core"), o = e2("./dist/plugins/floatingObject/floatingobject.js"), a = r.mt.vi, u = null, s = (function() {
          function t3(t4, n3, e3) {
            var r2, o2, a2 = this;
            a2.AZ = new i2.IZ(a2), a2.xZ = new i2.NZ(t4, "FL_" + n3.name, a2.AZ, 2, 200), a2.kZ = e3, a2.DZ = new c(t4, n3), r2 = a2.DZ, (o2 = a2.xZ)._Z = function() {
              return n3.Blt.isSelected();
            }, o2.EZ = function() {
              return true;
            }, o2.jZ = function(t5) {
              return r2.OZ(t5);
            }, o2.RZ = function(t5) {
              return r2.BZ(t5);
            }, o2.LZ = function(t5) {
              return r2.FZ(t5);
            }, o2.PZ = function(t5) {
              return r2.GZ(t5);
            }, o2.UZ = function(t5) {
              return r2.HZ(t5);
            };
          }
          return t3.prototype.oW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, true);
          }, t3.prototype.uW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, false);
          }, t3.prototype.sW = function(t4) {
            return this.AZ.sW();
          }, t3.prototype.cW = function(t4) {
            return this.AZ.cW();
          }, t3.prototype.fW = function(t4) {
            return this.AZ.fW();
          }, t3;
        })(), c = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.Llt = n3, e3.Blt = n3.Blt, e3.zZ = t4, e3.YZ = new i2.ZZ(n3.Mf);
          }
          return t3.prototype.WZ = function(t4) {
            var n3, e3 = new i2.QZ(t4.X, t4.Y), o2 = (0, r.GC$)(this.zZ).offset();
            return o2 && (n3 = document.body, e3.X += o2.left + n3.clientLeft || 0, e3.Y += o2.top + n3.clientTop || 0), e3;
          }, t3.prototype.OZ = function(t4) {
            t4.KZ = 3;
          }, t3.prototype.BZ = function(t4, n3) {
            var e3 = this, i3 = n3 ? t4.JZ : e3.WZ(t4.JZ);
            e3.Llt.gg({ target: t4.qZ, isTouch: true, button: 0, pageX: i3.X, pageY: i3.Y, stopPropagation: function() {
            } }), n3 || e3.YZ.$Z();
          }, t3.prototype.FZ = function(t4, n3) {
            var e3 = this, i3 = n3 ? t4.JZ : e3.WZ(t4.JZ), r2 = t4.nW.tW, o2 = e3.Llt.Mf, a2 = o2.parent;
            1 !== r2 && a2 && a2.options.allowUserZoom && !n3 ? (o2.rt.u9 = false, e3.Llt.Flt(), e3.YZ.iW(r2)) : e3.Llt.pg({ isTouch: true, button: 0, pageX: i3.X, pageY: i3.Y, stopPropagation: function() {
            } });
          }, t3.prototype.GZ = function(t4, n3) {
            var e3 = this, i3 = n3 ? t4.JZ : e3.WZ(t4.JZ), r2 = t4.nW.tW, o2 = e3.Llt.Mf, a2 = o2.parent;
            1 !== r2 && a2 && a2.options.allowUserZoom && !n3 ? e3.YZ.rW(r2) : this.Llt.bg({ isTouch: true, button: 0, pageX: i3.X, pageY: i3.Y, stopPropagation: function() {
            } });
          }, t3.prototype.HZ = function(n3, e3) {
            var i3, o2, a2, s2 = this, c2 = e3 ? n3.JZ : s2.WZ(n3.JZ), f = { e: { JZ: c2 }, r: u };
            if (t3.et(s2, "preProcessTapped", f), !f.r) try {
              (i3 = s2.Llt.Mf).suspendPaint(), s2.Blt.isSelected() ? (o2 = i3.parent.touchToolStrip, a2 = 100, o2.open(c2.X, c2.Y - a2)) : (i3.Olt(), s2.Blt.isSelected(true), i3.ki(r.Events.FloatingElementSelected, { type: "floatingObject" }), r.hi.F1(i3)), i3.clearSelection();
            } finally {
              i3.resumePaint();
            }
          }, t3;
        })(), n2.FloatingObjectTouchEventHandler = c, (0, r.$e)(c), r.Of.touch && o.FloatingObjectRender.ch("touch", { init: function(t3) {
          var n3 = this, e3 = n3.dW = new s(t3, n3, n3.Mf.parent.kZ);
          e3.oW();
        }, dispose: function() {
          var t3 = this.dW;
          t3 && t3.uW();
        }, preProcessMouseDown: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          e3 && !n3.isTouch && e3.sW(n3) && (a(n3), t3.r = true);
        }, preProcessMouseMove: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          e3 && !n3.isTouch && e3.fW(n3) && (a(n3), t3.r = true);
        }, preProcessMouseUp: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          e3 && !n3.isTouch && e3.cW(n3) && (a(n3), t3.r = true);
        } });
      }, "./dist/plugins/floatingObject/floatingobject.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), o = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || r(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Drawing = void 0, o(e2("./dist/plugins/floatingObject/picture.js"), n2), o(e2("./dist/plugins/floatingObject/floatingobject.js"), n2), o(e2("./dist/plugins/floatingObject/floatingobject-actions.js"), n2), o(e2("./dist/plugins/floatingObject/floatingobject-touch.js"), n2), o(e2("./dist/plugins/floatingObject/floatingobject.ns.js"), n2), i2 = e2("./dist/plugins/floatingObject/drawing/chart.ns.js"), n2.Drawing = i2;
      }, "./dist/plugins/floatingObject/floatingobject.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt;
        function yt(t3, n3, e3) {
          for (var i3 = n3 = n3 || e3, r2 = 1; t3.indexOf(i3) > -1; ) i3 = n3 + "_" + r2, r2++;
          return i3;
        }
        function wt(t3) {
          return "string" == typeof t3[U.Plt] ? t3[U.Plt] : t3[U.Plt]();
        }
        function Mt(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2 = t3.Glt;
          if (c2) {
            for (e3 = void 0, i3 = void 0, r2 = void 0, o2 = void 0, r2 = c2.length, e3 = 0; e3 < r2; e3++) if (a2 = c2[e3]) {
              for (o2 = a2.length, i3 = 0; i3 < o2; i3++) (u2 = a2[i3]) && u2.L0();
              a2.length = 0;
            }
            c2.length = 0, t3.Glt = E;
          }
          (s2 = t3.WL) && false !== n3 && s2.L0();
        }
        function Ct(t3, n3, e3) {
          t3.QP().forEach((function(t4) {
            t4.JO(n3, e3);
          }));
        }
        function St(t3, n3, e3) {
          var i3, r2, o2 = [];
          for (t3.QP().forEach((function(i4) {
            At(n3, -1, n3 + e3 - 1, t3.sheet().getColumnCount(), i4) && (i4.dynamicMove() || i4.dynamicSize()) ? o2.push(i4) : i4.xP(n3, e3);
          })), r2 = o2.length, i3 = 0; i3 < r2; i3++) t3.VP(o2[i3].name());
        }
        function Tt(t3, n3, e3) {
          t3.QP().forEach((function(t4) {
            t4.qO(n3, e3);
          }));
        }
        function xt(t3, n3, e3) {
          var i3, r2, o2 = [];
          for (t3.QP().forEach((function(i4) {
            At(-1, n3, t3.sheet().getRowCount(), n3 + e3 - 1, i4) && (i4.dynamicMove() || i4.dynamicSize()) ? o2.push(i4) : i4.NP(n3, e3);
          })), r2 = o2.length, i3 = 0; i3 < r2; i3++) t3.VP(o2[i3].name());
        }
        function At(t3, n3, e3, i3, r2) {
          var o2 = r2[U.Ult](), a2 = r2[U.Hlt](), u2 = r2[U.zlt](), s2 = r2[U.Vlt]();
          return t3 <= o2 && n3 <= a2 && e3 >= u2 && i3 >= s2;
        }
        function It(t3, n3) {
          var e3 = this;
          return n3 || (n3 = {}), i2.GC$.each(t3, (function(t4, i3) {
            var r2 = e3[i3], o2 = r2.call(e3);
            r2.isDefault(o2) || (n3[i3] = o2);
          })), n3;
        }
        function kt(t3, n3) {
          if (n3) {
            var e3 = this;
            i2.GC$.each(t3, (function(t4, i3) {
              n3[i3] !== R && e3[i3].call(e3, n3[i3], false);
            }));
          }
        }
        function Nt(t3) {
          var n3 = t3;
          return function(t4, e3) {
            var i3 = this, r2 = i3.sheet();
            n3 === U.Ylt && (i3.Zlt = true), r2 && r2.zw(), i3.onPropertyChanged(n3, t4, e3);
          };
        }
        function jt(t3) {
          var n3 = t3;
          return function(t4, e3) {
            var i3 = this, r2 = i3.sheet();
            r2 && (_t(i3), i3.Wlt || Ft(i3), r2.zw()), i3.onPropertyChanged(n3, t4, e3);
          };
        }
        function Dt(t3) {
          var n3 = t3;
          return function(t4, e3) {
            var i3 = this, r2 = i3.sheet();
            r2 && ($t(i3), r2.zw()), i3.onPropertyChanged(n3, t4, e3);
          };
        }
        function _t(t3) {
          var n3, e3, r2, o2, a2 = t3.sheet();
          function u2(n4, e4, i3, r3) {
            var o3 = 0, u3 = n4.call(t3);
            return o3 = e4.call(t3, a2, 0, u3), o3 += Ot(i3.call(t3), r3.call(a2, u3));
          }
          a2 && (n3 = u2(t3[U.Ult], Et, t3[U.Qlt], a2.getRowHeight), e3 = u2(t3[U.Hlt], Rt, t3[U.Klt], a2.getColumnWidth), r2 = t3.x(), o2 = t3.y(), r2 === e3 && o2 === n3 || (t3.x(e3, false), t3.y(n3, false), t3.onPropertyChanged("position", new i2.Point(e3, n3), new i2.Point(r2, o2))));
        }
        function Ot(t3, n3) {
          return n3 > 0 && n3--, P(t3, n3);
        }
        function Et(t3, n3, e3, i3) {
          var r2, o2 = 0;
          for (r2 = n3; r2 < e3 && !((o2 += t3.getRowHeight(r2, 3)) > i3); r2++) ;
          return o2;
        }
        function Rt(t3, n3, e3, i3) {
          var r2, o2 = 0;
          for (r2 = n3; r2 < e3 && !((o2 += t3.getColumnWidth(r2, 3)) > i3); r2++) ;
          return o2;
        }
        function Lt(t3) {
          var n3 = t3.sheet();
          function e3(n4, e4, i3, r2, o2) {
            var a2 = Bt(t3, n4, e4), u2 = a2.index;
            r2.call(t3, a2.offset, false), -1 === a2.offset && (u2 += 1, r2.call(t3, 0), u2 === o2 && (u2 = o2 - 1)), i3.call(t3, u2, false);
          }
          n3 && (e3(true, t3.y(), t3[U.Ult], t3[U.Qlt], n3.getRowCount()), e3(false, t3.x(), t3[U.Hlt], t3[U.Klt], n3.getColumnCount()));
        }
        function Ft(t3) {
          var n3;
          function e3(n4, e4, i3, r2) {
            var o2 = Bt(t3, n4, e4);
            i3.call(t3, o2.index, false), r2.call(t3, o2.offset, false);
          }
          t3.sheet() && (e3(true, t3.y() + t3[U.Jlt](), t3[U.zlt], t3[U.Xlt]), e3(false, t3.x() + t3[U.qlt](), t3[U.Vlt], t3[U.$lt]));
        }
        function Bt(t3, n3, e3) {
          var i3, r2, o2 = 0, a2 = 0, u2 = t3.sheet(), s2 = n3 ? u2.getRowCount() : u2.getColumnCount();
          for (i3 = 0; i3 < s2; i3++) {
            if ((a2 = (o2 += r2 = n3 ? u2.getRowHeight(i3, 3) : u2.getColumnWidth(i3, 3)) - e3) > 0) {
              a2 = a2 > 0 ? r2 - a2 : -1;
              break;
            }
            if (0 === a2) {
              a2 = 0, i3 += 1;
              break;
            }
          }
          return i3 >= s2 && (i3 = s2 - 1, a2 = n3 ? u2.getRowHeight(i3, 3) : u2.getColumnWidth(i3, 3)), { offset: a2, index: i3 };
        }
        function Pt(t3, n3) {
          var e3, i3 = new a.ColorFormat({ DrawingType: 0, sheet: function() {
            return t3;
          }, Cft: function(n4) {
            return t3.Cft(n4);
          } });
          return i3.setColor(t3, n3), delete (e3 = i3.ToSJSOOModel()).colorFillType, i3.DJ = R, e3;
        }
        function Gt(t3, n3) {
          Ut(n3, Ht(t3));
        }
        function Ut(t3, n3) {
          t3 && (t3.style.zIndex = n3 + "");
        }
        function Ht(t3) {
          var n3 = t3.tht;
          return A(n3) && (n3 = t3.nht), n3;
        }
        function Vt(t3, n3) {
          t3.tht = n3, t3.Ti.forEach((function(t4) {
            for (var e3 = t4.parentElement; -1 === e3.className.indexOf(U.eht); ) e3 = e3.parentElement;
            Ut(e3, n3);
          }));
        }
        function zt(t3, n3) {
          A(t3.tht) && (t3.nht += n3);
        }
        function Yt(t3) {
          var n3 = t3.sheet();
          n3 && ((0, i2.GC$)(_.body).bind("scroll" + U.rht, (function() {
            var t4 = n3.parent && n3.parent.getActiveSheet();
            t4 && t4.WL && n3.oht(t4.ot());
          })), n3.D3(i2.Events.ColumnChanged + U.rht, (function(n4, e3) {
            var i3 = e3.propertyName;
            i3 !== U.qlt && i3 !== U.aht || Zt(t3);
          })), n3.D3(i2.Events.RowChanged + U.rht, (function(n4, e3) {
            var i3 = e3.propertyName;
            i3 !== U.Jlt && i3 !== U.aht || Zt(t3);
          })), n3.D3(i2.Events.ColumnWidthChanged + U.rht, (function() {
            Zt(t3);
          })), n3.D3(i2.Events.RowHeightChanged + U.rht, (function() {
            Zt(t3);
          })));
        }
        function Zt(t3) {
          var n3 = t3.sheet();
          t3.isNeedToUpdateLayout = true, n3.oht(n3.ot());
        }
        function Wt(t3, n3, e3) {
          return e3 && e3.width > 0 && e3.height > 0 && (e3.x === t3 || e3.y === n3 || e3.contains(t3, n3));
        }
        function Qt(t3) {
          return t3 === i2.RelationshipConstants.Xr || t3 === i2.RelationshipConstants.bc;
        }
        function Kt(t3) {
          return t3 instanceof Array;
        }
        function Jt(t3, n3, e3, i3) {
          var r2 = t3[n3].v_, o2;
          A(r2) || (o2 = parseInt(r2, 10)), i3 && (o2 = p(o2)), e3[n3] = o2;
        }
        function Xt(t3) {
          var n3 = {};
          return Jt(t3, "row", n3), Jt(t3, "col", n3), Jt(t3, "rowOff", n3, true), Jt(t3, "colOff", n3, true), n3;
        }
        function qt(t3) {
          var n3 = t3.toJSON(), e3 = t3.tht;
          return isNaN(e3) || (n3.zIndex = e3), n3;
        }
        function $t(t3) {
          var n3, e3, i3, r2, o2 = t3.sheet();
          function a2(n4, e4, i4, r3, a3, u2) {
            var s2, c2 = 0, f2 = n4.call(t3), l2 = e4.call(t3), h2 = Ot(u2.call(t3), r3.call(o2, l2));
            return c2 = i4.call(t3, o2, f2, l2), f2 === l2 ? c2 = B(0, h2 - a3.call(t3)) : ((s2 = r3.call(o2, f2, 3)) > 0 && (c2 -= Ot(a3.call(t3), s2)), c2 += h2), c2;
          }
          o2 && (n3 = a2(t3[U.Ult], t3[U.zlt], Et, o2.getRowHeight, t3[U.Qlt], t3[U.Xlt]), (e3 = a2(t3[U.Hlt], t3[U.Vlt], Rt, o2.getColumnWidth, t3[U.Klt], t3[U.$lt])) < 0 && (e3 = 0), n3 < 0 && (n3 = 0), (i3 = t3[U.qlt]()) !== e3 && (t3[U.qlt](e3, false), t3.onPropertyChanged(U.qlt, e3, i3)), (r2 = t3[U.Jlt]()) !== n3 && (t3[U.Jlt](n3, false), t3.onPropertyChanged(U.Jlt, n3, r2)));
        }
        function tn(t3) {
          return ft.indexOf(t3) >= 0;
        }
        function nn(t3) {
          var n3, e3, i3;
          if (k(t3) && ("string" != typeof t3 || "" === t3)) throw new Error(S().Exp_FloatingObjectNameEmptyError);
          return t3 !== (n3 = this).name() && (!(e3 = n3.sheet()) || !(i3 = e3.WL.ev(t3)));
        }
        function en(t3) {
          return function(n3, e3) {
            this.onPropertyChanged(t3, n3, e3);
          };
        }
        function rn(t3, n3) {
          return function(e3, i3) {
            var r2 = this, o2 = r2.sheet();
            o2 && (n3 && un(r2), sn(r2), hn(r2), o2.zw()), r2.onPropertyChanged(t3, e3, i3);
          };
        }
        function on(t3, n3, e3, i3) {
          var r2, o2, a2 = this;
          a2.Wlt = true, r2 = t3.call(a2), o2 = n3.call(a2), e3 <= r2 ? a2.dynamicMove() && (t3.call(a2, r2 + i3), n3.call(a2, o2 + i3)) : e3 < o2 && a2.dynamicSize() && n3.call(a2, o2 + i3), a2.Wlt = false;
        }
        function an(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2, l2 = this;
          l2.Wlt = true, u2 = t3.call(l2), s2 = e3.call(l2), r2 <= u2 ? a2 < u2 ? l2.dynamicMove() && (t3.call(l2, u2 - o2), e3.call(l2, s2 - o2)) : a2 < s2 && (f2 = s2 - u2 + 1 - (c2 = a2 - u2 + 1), l2.dynamicMove() && (t3.call(l2, r2), n3.call(l2, 0)), l2.dynamicSize() && e3.call(l2, r2 + f2 - 1)) : r2 <= s2 && (a2 < s2 ? l2.dynamicSize() && e3.call(l2, s2 - o2) : l2.dynamicSize() && (e3.call(l2, r2), i3.call(l2, 0))), l2.Wlt = false;
        }
        function un(t3) {
          var n3 = fn(t3, t3[U.Jlt]()), e3 = ln(t3, t3[U.qlt]());
          t3[U.qlt]() > e3 && t3[U.qlt](e3, false), t3[U.Jlt]() > n3 && t3[U.Jlt](n3, false);
        }
        function sn(t3) {
          var n3, e3, i3 = t3.x() + t3[U.qlt](), r2 = ln(t3, i3);
          i3 > r2 && t3.x(B(0, r2 - t3[U.qlt]()), false), t3.x() < 0 && t3.x(0, false), (n3 = t3.y() + t3[U.Jlt]()) > (e3 = fn(t3, n3)) && t3.y(B(0, e3 - t3[U.Jlt]()), false), t3.y() < 0 && t3.y(0, false);
        }
        function cn(t3) {
          var n3, e3, i3, r2;
          un(t3), sn(t3), n3 = t3[U.Ult](), e3 = t3[U.Hlt](), A(n3) || A(e3) ? Lt(t3) : _t(t3), i3 = t3[U.zlt](), r2 = t3[U.Vlt](), A(i3) || A(r2) ? Ft(t3) : $t(t3);
        }
        function fn(t3, n3) {
          var e3, i3 = t3.sheet();
          return i3 ? (e3 = i3.getRowCount(), Et(i3, 0, e3, n3)) : U.sht;
        }
        function ln(t3, n3) {
          var e3, i3 = t3.sheet();
          return i3 ? (e3 = i3.getColumnCount(), Rt(i3, 0, e3, n3)) : U.sht;
        }
        function hn(t3) {
          Lt(t3), Ft(t3);
        }
        function dn(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2 = 0, c2 = a2 ? o2.getRowHeight : o2.getColumnWidth;
          for (u2 = t3; u2 < n3; u2++) s2 += L(c2.call(o2, u2) * r2);
          return s2 -= L((e3 || 0) * r2), s2 += L((i3 || 0) * r2);
        }
        function vn(t3, n3, e3, i3) {
          var r2, o2 = 0;
          for (r2 = 0; r2 < t3; r2++) o2 += i3 ? e3.getRowHeight(r2, 3) : e3.getColumnWidth(r2, 3);
          return o2 += n3;
        }
        function pn(t3) {
          return t3 && t3.lossless && t3.lossless.isFloatingObject;
        }
        function gn(t3, n3) {
          var e3 = 0;
          return false === t3 && false === n3 ? e3 = 2 : false === n3 && (e3 = 1), e3;
        }
        function mn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3.getRowCount(), d2 = t3.getColumnCount(), v2 = n3.width(), p2 = n3.height(), g2 = n3.startRow(), y2 = n3.startRowOffset() || 0, w2 = n3.startColumn(), M2 = n3.startColumnOffset() || 0, C2 = n3.endRow(), S2 = n3.endRowOffset() || 0, T2 = n3.endColumn(), x2 = n3.endColumnOffset() || 0, A2 = n3.getOriginalWidth(), I2 = n3.getOriginalHeight(), k2 = Math.min(v2, A2), N2 = Math.min(p2, I2), j2 = I2 > p2 ? y2 : y2 + (p2 - I2) / 2, D2 = A2 > v2 ? M2 : M2 + (v2 - A2) / 2;
          for (v2 = k2, p2 = N2, e3 = 0, i3 = g2, r2 = j2, o2 = false; i3 < h2; ) if (a2 = b(t3, i3, i3 + 1), i3++, !o2 && (r2 -= a2), r2 < 0 && !o2 && (g2 = i3 - 1 < 0 ? 0 : i3 - 1, y2 = a2 + r2, o2 = true), (e3 += a2) > p2 + j2) {
            C2 = i3 - 1 < 0 ? 0 : i3 - 1, S2 = a2 - (e3 - p2 - j2);
            break;
          }
          for (u2 = 0, s2 = w2, c2 = D2, f2 = false; s2 < d2; ) if (l2 = m(t3, s2, s2 + 1), s2++, !f2 && (c2 -= l2), c2 < 0 && !f2 && (w2 = s2 - 1 < 0 ? 0 : s2 - 1, M2 = l2 + c2, f2 = true), (u2 += l2) > v2 + D2) {
            T2 = s2 - 1 < 0 ? 0 : s2 - 1, x2 = l2 - (u2 - v2 - D2);
            break;
          }
          return { width: v2, height: p2, startRow: g2, startRowOffset: y2, startColumn: w2, startColumnOffset: M2, endRow: C2, endRowOffset: S2, endColumn: T2, endColumnOffset: x2 };
        }
        function bn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2 = t3.getRowCount(), l2 = t3.getColumnCount(), h2 = n3.width(), d2 = n3.height(), v2 = n3.startRow(), p2 = n3.startRowOffset() || 0, g2 = n3.startColumn(), y2 = n3.startColumnOffset() || 0, w2 = n3.endRow(), M2 = n3.endRowOffset() || 0, C2 = n3.endColumn(), S2 = n3.endColumnOffset() || 0, T2 = n3.getOriginalWidth(), x2 = n3.getOriginalHeight(), A2 = h2 / d2, I2 = T2 / x2, k2 = { width: h2, height: d2, startRow: v2, startRowOffset: p2, startColumn: g2, startColumnOffset: y2, endRow: w2, endRowOffset: M2, endColumn: C2, endColumnOffset: S2 }, N2 = 0, j2 = 0, D2 = h2, _2 = d2;
          if (d2 > 0 && x2 > 0 && A2 > I2) N2 = y2 + h2 / 2 - (D2 = I2 * d2) / 2, d2 = 1 / I2 * (h2 = D2);
          else {
            if (!(h2 > 0 && T2 > 0 && 1 / A2 > 1 / I2)) return k2;
            j2 = p2 + d2 / 2 - (_2 = 1 / I2 * h2) / 2, h2 = I2 * (d2 = _2);
          }
          if (N2 > 0) {
            for (; g2 < l2; ) if (e3 = m(t3, g2, g2 + 1), g2++, (N2 -= e3) < 0) {
              g2--, y2 = N2 + e3;
              break;
            }
            for (i3 = 0, r2 = g2; r2 < l2; ) if (o2 = m(t3, r2, r2 + 1), r2++, (i3 += o2) > D2 + y2) {
              S2 = o2 - (i3 - D2 - y2), C2 = r2 - 1 < 0 ? 0 : r2 - 1;
              break;
            }
          } else if (j2 > 0) {
            for (; v2 < f2; ) if (a2 = b(t3, v2, v2 + 1), v2++, (j2 -= a2) < 0) {
              v2--, p2 = j2 + a2;
              break;
            }
            for (u2 = 0, s2 = v2; s2 < f2; ) if (c2 = b(t3, s2, s2 + 1), s2++, (u2 += c2) > _2 + p2) {
              M2 = c2 - (u2 - _2 - p2), w2 = s2 - 1 < 0 ? 0 : s2 - 1;
              break;
            }
          }
          return k2.width = h2, k2.height = d2, k2.startRow = v2, k2.startRowOffset = p2, k2.endRow = w2, k2.endRowOffset = M2, k2.startColumn = g2, k2.startColumnOffset = y2, k2.endColumn = C2, k2.endColumnOffset = S2, k2;
        }
        function yn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2 = t3.getRowCount(), c2 = t3.getColumnCount(), f2 = n3.width(), l2 = n3.height(), h2 = n3.startRow(), d2 = n3.startRowOffset() || 0, v2 = n3.startColumn(), p2 = n3.startColumnOffset() || 0, g2 = n3.endRow(), y2 = n3.endRowOffset() || 0, w2 = n3.endColumn(), M2 = n3.endColumnOffset() || 0, C2 = n3.getOriginalWidth(), S2 = n3.getOriginalHeight();
          for (f2 = Math.min(f2, C2), l2 = Math.min(l2, S2), e3 = 0, i3 = h2; i3 < s2; ) if (r2 = b(t3, i3, i3 + 1), i3++, (e3 += r2) > l2 + d2) {
            g2 = i3 - 1 < 0 ? 0 : i3 - 1, y2 = r2 - (e3 - l2 - d2);
            break;
          }
          for (o2 = 0, a2 = v2; a2 < c2; ) if (u2 = m(t3, a2, a2 + 1), a2++, (o2 += u2) > f2 + p2) {
            w2 = a2 - 1 < 0 ? 0 : a2 - 1, M2 = u2 - (o2 - f2 - p2);
            break;
          }
          return { width: f2, height: l2, startRow: h2, startRowOffset: d2, startColumn: v2, startColumnOffset: p2, endRow: g2, endRowOffset: y2, endColumn: w2, endColumnOffset: M2 };
        }
        function wn(t3) {
          return !t3 || "hidden" === t3;
        }
        function Mn(t3) {
          switch (t3) {
            case "dotted":
              return "dot";
            case "dashed":
              return "dash";
            case "double":
              return "dbl";
          }
          return "solid";
        }
        function Cn(t3) {
          var n3 = 1e5;
          return { l: parseInt((t3.l || 0) * n3, 10), t: parseInt((t3.t || 0) * n3, 10), r: parseInt((t3.r || 0) * n3, 10), b: parseInt((t3.b || 0) * n3, 10) };
        }
        function Sn(t3) {
          return 6e4 * t3;
        }
        function Tn(t3, n3, e3) {
          var r2 = t3.lht, o2, a2, u2, s2;
          switch (n3) {
            case q:
              o2 = P(r2[U.hht] + r2[U.dht], e3.x), a2 = P(r2[U.vht] + r2[U.mht], e3.y), u2 = G(e3.x - r2[U.hht] - r2[U.dht]), s2 = G(e3.y - r2[U.vht] - r2[U.mht]);
              break;
            case $:
              o2 = r2[U.hht], a2 = P(r2[U.vht] + r2[U.mht], e3.y), u2 = r2[U.dht], s2 = G(e3.y - r2[U.vht] - r2[U.mht]);
              break;
            case tt:
              o2 = P(r2[U.hht], e3.x), a2 = P(r2[U.vht] + r2[U.mht], e3.y), u2 = G(e3.x - r2[U.hht]), s2 = G(e3.y - r2[U.vht] - r2[U.mht]);
              break;
            case nt:
              o2 = P(r2[U.hht] + r2[U.dht], e3.x), a2 = r2[U.vht], u2 = G(e3.x - r2[U.hht] - r2[U.dht]), s2 = r2[U.mht];
              break;
            case et:
              o2 = P(r2[U.hht], e3.x), a2 = r2[U.vht], u2 = G(e3.x - r2[U.hht]), s2 = r2[U.mht];
              break;
            case it:
              o2 = P(r2[U.hht] + r2[U.dht], e3.x), a2 = P(r2[U.vht], e3.y), u2 = G(e3.x - r2[U.hht] - r2[U.dht]), s2 = G(e3.y - r2[U.vht]);
              break;
            case rt:
              o2 = r2[U.hht], a2 = P(r2[U.vht], e3.y), u2 = r2[U.dht], s2 = G(e3.y - r2[U.vht]);
              break;
            case ot:
              o2 = P(r2[U.hht], e3.x), a2 = P(r2[U.vht], e3.y), u2 = G(e3.x - r2[U.hht]), s2 = G(e3.y - r2[U.vht]);
          }
          return new i2.Rect(o2, a2, u2, s2);
        }
        function xn(t3) {
          var n3 = (0, i2.GC$)(t3), e3 = n3.position();
          return new i2.Rect(e3.left, e3.top, n3[U.qlt](), n3[U.Jlt]());
        }
        function An(t3, n3, e3, r2, o2, a2) {
          (0, i2.GC$)(t3).css([U.ght, U.pht, U.qlt, U.Jlt], [[r2 - 1], [e3 - 1], o2, a2]).addClass(U.bht).appendTo(n3);
        }
        function In(t3, n3) {
          if (!t3.GY) return E;
          var e3 = { inMoving: false };
          return n3 || (e3.inMoving = true), e3;
        }
        function kn(t3) {
          var n3, e3, i3, r2, o2, a2 = t3, u2 = a2.Mf, s2 = a2.AW, c2 = a2.IW, f2 = u2.frozenTrailingRowCount(), l2 = u2.frozenTrailingColumnCount(), h2 = u2.Fi(), d2 = h2.c9(s2, c2), v2 = a2.Blt, p2 = v2[U.Ult](), g2 = v2[U.Hlt](), m2 = v2[U.zlt](), b2 = v2[U.Vlt](), y2 = u2.frozenRowCount(), w2 = u2.frozenColumnCount(), M2 = u2.getRowCount(3) - f2 - 1, C2 = u2.getColumnCount(3) - l2 - 1;
          return s2 === U.yht ? (y2 > 0 && (n3 = u2.getViewportTopRow(s2), (p2 < y2 || n3 === y2) && (d2.y -= h2.L6, d2[U.Jlt] += h2.L6)), f2 > 0 && (e3 = u2.getViewportBottomRow(s2), m2 > M2 && e3 === M2 && (d2[U.Jlt] += h2.Iy))) : s2 === U.yht - 1 ? (m2 >= (n3 = u2.getViewportTopRow(s2 + 1)) || n3 === y2) && (o2 = h2.c9(s2 + 1, c2), d2[U.Jlt] += o2[U.Jlt]) : s2 === U.yht + 1 && (p2 <= (e3 = u2.getViewportBottomRow(s2 - 1)) || e3 === M2) && (o2 = h2.c9(s2 - 1, c2), d2.y = o2.y, d2[U.Jlt] += o2[U.Jlt]), c2 === U.yht ? (w2 > 0 && (i3 = u2.getViewportLeftColumn(c2), (g2 < w2 || i3 === w2) && (d2.x -= h2.F6, d2[U.qlt] += h2.F6)), u2.frozenTrailingColumnCount() > 0 && (r2 = u2.getViewportRightColumn(c2), (b2 > C2 || r2 === C2) && (d2[U.qlt] += h2.zy))) : c2 === U.yht - 1 ? (b2 >= (i3 = u2.getViewportLeftColumn(c2 + 1)) || i3 === w2) && (o2 = h2.c9(s2, c2 + 1), d2[U.qlt] += o2[U.qlt]) : c2 === U.yht + 1 && (g2 <= (r2 = u2.getViewportRightColumn(c2 - 1)) || r2 === C2) && (o2 = h2.c9(s2, c2 - 1), d2.x = o2.x, d2[U.qlt] += o2[U.qlt]), d2;
        }
        function Nn(t3, n3, e3, r2, o2) {
          var a2 = xn(t3);
          (0, i2.GC$)(t3).css([U.ght, U.pht, U.qlt, U.Jlt], [a2.y + e3, a2.x + n3, a2[U.qlt] + r2, a2[U.Jlt] + o2]);
        }
        function jn(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = t3;
          if (g2.wht) for (v2 in n3 = g2.fk, e3 = kn(g2), r2 = g2.Mht, u2 = void 0, u2 = Tn(g2, a2 = (o2 = g2.lht).direction, n3 = new i2.Point(n3.x - e3.x, n3.y - e3.y)), o2.endX = u2.x, o2.endY = u2.y, o2.endWidth = u2[U.qlt], o2.endHeight = u2[U.Jlt], s2 = xn(r2), c2 = u2.y - s2.y, Nn(r2, f2 = u2.x - s2.x, c2, l2 = u2[U.qlt] - s2[U.qlt], h2 = u2[U.Jlt] - s2[U.Jlt]), d2 = g2.Cht) O(d2, v2) && Nn((p2 = d2[v2]).moveResizeDiv, f2, c2, l2, h2);
        }
        function Dn(t3, n3) {
          var e3, r2 = t3.Mf;
          r2 && false === (e3 = r2.P_(n3)) && i2.mt.vi(n3);
        }
        function _n(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2 = t3, f2 = c2.Mf, l2 = c2.CK;
          if (l2) {
            if (n3 = j(f2, l2[U.Sht], f2.getViewportTopRow(c2.AW), true), e3 = j(f2, l2[U.Tht], f2.getViewportLeftColumn(c2.IW), false), i3 = l2[U.Aht] - l2[U.hht] + (l2[U.Aht] > l2[U.hht] ? e3 : -1 * e3), r2 = l2[U.Iht] - l2[U.vht] + (l2[U.Iht] > l2[U.vht] ? n3 : -1 * n3), 0 === i3 && 0 === r2) return;
            for (s2 in i3 /= o2 = f2.zoom(), r2 /= o2, f2.options.rightToLeft && (i3 = -i3), (a2 = []).push(c2.Blt.name()), u2 = c2.Cht) O(u2, s2) && a2.push(s2);
            f2.Qy().execute({ cmd: "dragCopyFloatingObjects", sheetName: f2.name(), floatingObjects: a2, offsetX: i3, offsetY: r2 });
          }
        }
        function On(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3, d2 = h2.Mf, v2 = h2.CK, p2 = d2.zoom();
          if (v2) {
            for (l2 in n3 = v2[U.Sht], e3 = d2.getViewportTopRow(h2.AW), i3 = j(d2, n3, e3, true), (n3 > e3 || n3 === e3 && v2[U.Iht] < v2[U.vht]) && (i3 *= -1), r2 = v2[U.Tht], o2 = d2.getViewportLeftColumn(h2.IW), a2 = j(d2, r2, o2, false), (r2 > o2 || r2 === o2 && v2[U.Aht] < v2[U.hht]) && (a2 *= -1), u2 = v2[U.Aht] - v2[U.hht] + a2, s2 = v2[U.Iht] - v2[U.vht] + i3, u2 /= p2, s2 /= p2, (c2 = []).push(h2.Blt.name()), f2 = h2.Cht) O(f2, l2) && c2.push(l2);
            d2.options.rightToLeft && (u2 = -u2), d2.Qy().execute({ cmd: "moveFloatingObjects", sheetName: d2.name(), floatingObjects: c2, offsetX: u2, offsetY: s2 });
          }
        }
        function En(t3, n3, e3, i3) {
          var r2 = j(t3, n3, e3, i3);
          return n3 > e3 ? -r2 : r2;
        }
        function Rn(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = t3, h2 = l2.Mf, d2 = h2.zoom(), v2 = l2.Blt, p2 = l2.lht;
          if (p2) {
            for (f2 in n3 = En(h2, p2[U.Sht], h2.getViewportTopRow(l2.AW), true), e3 = En(h2, p2[U.Tht], h2.getViewportLeftColumn(l2.IW), false), i3 = 0, r2 = void 0, (o2 = h2.options.rightToLeft) || p2[U.Aht] === p2[U.hht] ? o2 && (i3 = p2[U.hht] + p2[U.dht] - (p2[U.Aht] + p2.endWidth) + e3) : i3 = p2[U.Aht] - p2[U.hht] + e3, i3 /= d2, r2 = p2[U.Iht] !== p2[U.vht] ? p2[U.Iht] - p2[U.vht] + n3 : 0, r2 /= d2, a2 = (p2.endWidth + e3) / d2 - v2[U.qlt](), u2 = (p2.endHeight + n3) / d2 - v2[U.Jlt](), (s2 = []).push(v2.name()), c2 = l2.Cht) O(c2, f2) && s2.push(f2);
            h2.Qy().execute({ cmd: "resizeFloatingObjects", sheetName: h2.name(), floatingObjects: s2, offsetX: i3, offsetY: r2, offsetWidth: a2, offsetHeight: u2 });
          }
        }
        function Ln(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = t3, c2 = s2.Mht;
          if (c2) for (a2 in Fn(c2, i3 = e3.x - n3.x, r2 = e3.y - n3.y), o2 = s2.Cht) O(o2, a2) && Fn((u2 = o2[a2]).moveResizeDiv, i3, r2);
        }
        function Fn(t3, n3, e3) {
          var r2 = (0, i2.GC$)(t3), o2 = (0, i2.GC$)(t3).position();
          r2.css([U.ght, U.pht], [o2[U.ght] + e3, o2[U.pht] + n3]);
        }
        function Bn(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3, d2 = h2.CK;
          d2 && (n3 = h2.Blt, r2 = (i3 = (e3 = h2.Mf).Fi())[U.qlt] - i3.XC - i3.BA, o2 = i3[U.Jlt] - i3.qC - i3.LA, a2 = d2.startX, u2 = d2.startY, s2 = n3.position().x, c2 = n3.position().y, f2 = n3[U.qlt](), l2 = n3[U.Jlt](), s2 + d2.endX - a2 < 0 && (d2.endX = a2 - s2), c2 + d2.endY - u2 < 0 && (d2.endY = u2 - c2), s2 + f2 + d2.endX - a2 > r2 && (d2.endX = r2 + a2 - s2 - f2), c2 + l2 + d2.endY - u2 > o2 && (d2.endY = o2 + u2 - c2 - l2), d2.startTopRow = e3.getViewportTopRow(h2.AW), d2.startLeftColumn = e3.getViewportLeftColumn(h2.IW));
        }
        function Pn(t3) {
          var n3, e3, r2, o2, a2, u2 = t3, s2 = u2.lht;
          s2 && (r2 = (e3 = (n3 = u2.Mf).Fi())[U.qlt] - e3.XC - e3.BA, o2 = e3[U.Jlt] - e3.qC - e3.LA, a2 = (a2 = new i2.Rect(s2.endX, s2.endY, s2.endWidth, s2.endHeight)).getIntersect(0, 0, r2, o2), s2.endX = a2.x, s2.endY = a2.y, s2.endWidth = a2[U.qlt], s2.endHeight = a2[U.Jlt], s2.startTopRow = n3.getViewportTopRow(u2.AW), s2.startLeftColumn = n3.getViewportLeftColumn(u2.IW));
        }
        function Gn(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2 = N(U.xht), l2 = (0, i2.GC$)(f2), h2 = t3;
          return l2.addClass(U.eht).addClass(U.Nht).attr(U.kht, U._ON).css(U._ht, U.fht).bind("mousedown", (function(t4) {
            h2.gg(t4);
          })).bind(U.Eht, (function(t4) {
            h2.pg(t4);
          })).bind(U.jht, (function(t4) {
            h2.bg(t4);
          })), f2.addEventListener("mousewheel", (function(t4) {
            Dn(h2, t4);
          }), false), f2.addEventListener("DOMMouseScroll", (function(t4) {
            Dn(h2, t4);
          }), false), n3 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Rht + " " + U.Bht + " " + U.Lht), e3 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Rht + " " + U.Fht + " " + U.Lht), r2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Rht + " " + U.Pht + " " + U.Lht), o2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Ght + " " + U.Bht + " " + U.Lht), a2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Ght + " " + U.Pht + " " + U.Lht), u2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Uht + " " + U.Bht + " " + U.Lht), s2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Uht + " " + U.Fht + " " + U.Lht), c2 = (0, i2.GC$)(N(U.xht)).addClass(U.Oht + " " + U.Uht + " " + U.Pht + " " + U.Lht), l2.append(n3).append(e3).append(r2).append(o2).append(a2).append(u2).append(s2).append(c2), pt.et(h2, "init", f2), f2;
        }
        function Un(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2 = t3, l2 = f2.Hht && f2.GY;
          if (l2 && !f2.Mht) {
            for (s2 in n3 = f2.zht = N(U.xht), f2.Mht = N(U.xht), f2.Cht = {}, f2.Yht.Vht.each((function(t4) {
              var n4, e4 = t4.Blt;
              e4 && e4.name() !== f2.Blt.name() && e4.isSelected() && !f2.Cht[e4.name()] && (n4 = t4.GY, f2.Cht[e4.name()] = { offsetX: n4.x - l2.x, offsetY: n4.y - l2.y, height: n4[U.Jlt], width: n4[U.qlt], moveResizeDiv: N(U.xht) });
            })), e3 = kn(f2), (r2 = (0, i2.GC$)(n3)).css([U._ht, U.ght, U.pht, U.qlt, U.Jlt, U.Zht], [U.Wht, e3.y, e3.x, e3[U.qlt], e3[U.Jlt], "rgba(255,255,255,0.01)"]).addClass(U.Qht).bind(U.Eht, (function(t4) {
              f2.pg(t4);
            })).bind(U.jht, (function(t4) {
              f2.bg(t4);
            })), o2 = l2.y - e3.y, a2 = l2.x - e3.x, An(f2.Mht, n3, a2, o2, l2[U.qlt], l2[U.Jlt]), u2 = f2.Cht) O(u2, s2) && An((c2 = u2[s2]).moveResizeDiv, f2.zht, a2 + c2.offsetX, o2 + c2.offsetY, c2[U.qlt], c2[U.Jlt]);
            f2.fF && (0, i2.GC$)(f2.fF).append(f2.zht);
          }
        }
        function Hn(t3) {
          var n3 = t3;
          n3.p4 || ((0, i2.GC$)(_).bind(U.Eht + U.rht, (function(t4) {
            n3.pg(t4);
          })).bind(U.jht + U.rht, (function(t4) {
            n3.bg(t4);
          })), n3.p4 = true);
        }
        function Vn(t3) {
          var n3 = t3;
          n3.p4 && (n3.p4 = false, (0, i2.GC$)(_).unbind(U.Eht + U.rht).unbind(U.jht + U.rht));
        }
        function zn(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = (0, i2.GC$)(U.Kht, n3);
          y2.removeClass(U.Jht), r2 = xn((e3 = t3).Hht), o2 = e3.Xht, a2 = e3.Blt, e3.qht && (o2 = e3.qht), u2 = pt.$ht, c2 = (s2 = xn(o2)).x, f2 = s2.y, l2 = r2[U.Jlt] - s2.y - s2[U.Jlt], h2 = r2[U.qlt] - s2.x - s2[U.qlt], d2 = 0, v2 = u2 + 2, p2 = F(u2 / 2 + 1), "1" === a2.typeName && (g2 = a2.borderWidth(), tn(m2 = a2.borderStyle()) || (g2 = 0), g2 >= p2 && (d2 = g2 - p2), l2 = r2[U.Jlt] - f2 - s2[U.Jlt] - g2, h2 = r2[U.qlt] - c2 - s2[U.qlt] - g2, c2 += g2, f2 += g2), b2 = [], c2 > 0 ? (Yn(e3, f2 > 0, z, d2, d2, R, R, "nw" + U.tdt, q, b2), Yn(e3, r2[U.Jlt] > 0, Y, d2, (s2[U.Jlt] - v2) / 2 + f2, R, R, "w" + U.tdt, nt, b2), Yn(e3, l2 > 0, Z, d2, R, R, d2, "ne" + U.tdt, it, b2)) : (Zn(e3, z), Zn(e3, Y), Zn(e3, Z)), Yn(e3, f2 > 0, W, (s2[U.qlt] - v2) / 2 + c2, d2, R, R, "n" + U.tdt, $, b2), Yn(e3, l2 > 0, Q, (s2[U.qlt] - v2) / 2 + c2, R, R, d2, "n" + U.tdt, rt, b2), h2 > 0 ? (Yn(e3, f2 > 0, K, R, d2, d2, R, "sw" + U.tdt, tt, b2), Yn(e3, r2[U.Jlt] > 0, J, R, (s2[U.Jlt] - v2) / 2 + f2, d2, R, "w" + U.tdt, et, b2), Yn(e3, l2 > 0, X, R, R, d2, d2, "se" + U.tdt, ot, b2)) : (Zn(e3, K), Zn(e3, J), Zn(e3, X)), e3.ndt = true, e3.edt = b2;
        }
        function Yn(t3, n3, e3, r2, o2, a2, u2, s2, c2, f2) {
          var l2, h2, d2, v2, p2 = t3, g2 = (0, i2.GC$)(e3, p2.Hht), m2 = pt.$ht;
          n3 ? g2.css([U.pht, U.ght, U.idt, U.rdt, U.qlt, U.Jlt, U.odt], [r2, o2, a2, u2, m2, m2, s2]).addClass(U.adt).attr("resizeDirection", c2) : Zn(p2, e3), f2 && (l2 = (0, i2.GC$)(p2.Hht), h2 = 0, d2 = 0, A(r2) || (h2 = r2), A(o2) || (d2 = o2), A(a2) || (h2 = l2.width() - a2 - m2), A(u2) || (d2 = l2.height() - u2 - m2), v2 = new i2.Rect(h2, d2, m2, m2), f2.push({ rect: v2, cursor: s2, direction: c2 }));
        }
        function Zn(t3, n3) {
          (0, i2.GC$)(n3, t3.Hht).removeClass(U.adt).addClass(U.Jht);
        }
        function Wn(t3, n3) {
          (0, i2.GC$)(U.Kht, n3).removeClass(U.adt).addClass(U.Jht), t3.ndt = false;
        }
        function Qn(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = t3, v2 = d2.Blt, p2 = v2.udt || v2.src(), g2 = v2.pictureStretch(), m2 = i2.Pf.vl(v2.sheet(), v2.backColor()), b2 = d2.Xht;
          p2 && b2 && (n3 = (0, i2.GC$)(b2), d2.sdt !== p2 && (d2.sdt = p2, n3.css([U.Zht + "-image", U.Zht + "-repeat"], ["url('" + p2 + "')", "no-repeat"])), n3.css(U.Zht + "-color", m2), g2 !== E && g2 !== R && v2.cdt && (e3 = v2.getOriginalWidth(), r2 = v2.getOriginalHeight(), o2 = n3[U.qlt](), a2 = n3[U.Jlt](), s2 = void 0, (u2 = v2.fdt) && (c2 = o2 / u2.width, f2 = a2 / u2.height, s2 = { position: -(l2 = c2 * u2.left) + "px " + -(h2 = f2 * u2.top) + "px", size: c2 + "px " + f2 + "px" }), i2.mt.Wf(b2, o2, a2, e3, r2, g2, s2)));
        }
        function Kn(t3, n3, e3) {
          var r2, o2, a2, u2, s2 = t3.qht, c2 = t3.Blt, f2 = c2.borderWidth(), l2 = c2.borderStyle(), h2 = i2.Pf.vl(c2.sheet(), c2.borderColor()), d2 = c2.borderRadius(), v2 = 0, p2 = F(pt.$ht / 2 + 1);
          tn(l2) && !c2.noFill() || (f2 = 0), f2 < p2 && (v2 = p2 - f2), r2 = v2, o2 = v2, a2 = v2, u2 = v2, p2 = B(f2, p2), n3.x < 0 ? r2 += n3.x - p2 : (n3.x < p2 ? r2 += n3.x - p2 : r2 += 0, u2 = e3[U.qlt] - r2 - n3[U.qlt] - 2 - 2 * f2), n3.y < 0 ? o2 += n3.y - p2 : (n3.y < p2 ? o2 += n3.y - p2 : o2 += 0, a2 = e3[U.Jlt] - o2 - n3[U.Jlt] - 2 - 2 * f2), (0, i2.GC$)(s2).css([U.ldt, U.pht, U.ght, U.rdt, U.idt, U.hdt + "-width", U.hdt + "-style", U.hdt + "-color", U.hdt + "-radius"], [U.ddt, r2, o2, a2, u2, f2, l2, h2, d2]);
        }
        function Jn(t3) {
          t3.QP().forEach((function(t4) {
            t4.dynamicMove() ? _t(t4) : Lt(t4), t4.dynamicSize() ? $t(t4) : Ft(t4);
          }));
        }
        function Xn(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2 = t3.Mf, l2 = f2.Fi(), h2 = f2.yw(e3), d2 = 0, v2 = 0, p2 = 0, g2 = 0, m2 = f2.options.rightToLeft;
          return h2 && h2.length > 0 && (r2 = h2[0], o2 = h2[h2.length - 1], d2 = m2 ? o2.x : r2.x, p2 = m2 ? r2.x + r2[U.qlt] - d2 : o2.x + o2[U.qlt] - d2, 0 === e3 && d2 + p2 > l2.x + l2.width && (p2 = l2.x + l2.width - d2)), (a2 = f2.dw(n3)) && a2.length > 0 && (u2 = a2[0], s2 = a2[a2.length - 1], v2 = u2.y, g2 = s2.y + s2[U.Jlt] - v2, 0 === n3 && v2 + g2 > l2.y + l2.height && (g2 = l2.y + l2.height - v2)), (c2 = l2.c9(n3, e3)).getIntersect(d2, v2, p2, g2) || new i2.Rect(0, 0, 0, 0);
        }
        function qn(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = t3, v2 = d2.Mf, p2 = new D(), g2 = v2.WL;
          return g2.isNeedToUpdateLayout && (Jn(g2), g2.isNeedToUpdateLayout = false), r2 = v2.Fi(), o2 = v2.Jt, a2 = v2.yw(e3), u2 = v2.dw(n3), a2.length <= 0 || u2.length <= 0 || (s2 = v2.options.rightToLeft, c2 = a2[0], f2 = a2[a2.length - 1], l2 = u2[0], h2 = u2[u2.length - 1], g2.QP().forEach((function(t4) {
            var n4, e4, d3, g3, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
            if (t4 && t4.isVisible()) {
              if (n4 = void 0, e4 = void 0, d3 = t4[U.Ult](), g3 = t4[U.Hlt](), m2 = t4[U.zlt](), b2 = t4[U.Vlt](), t4.fixedPosition()) n4 = (y2 = t4.position()).x * i3 + r2.b6, e4 = y2.y * i3 + r2.T6;
              else {
                if (w2 = a2.findCol(g3)) n4 = s2 ? w2.x + w2.width : w2.x;
                else if (g3 < c2.col) for (n4 = s2 ? c2.x + c2.width : c2.x, M2 = c2.col - 1; M2 >= g3; M2--) s2 ? n4 += o2.Kt(M2) : n4 -= o2.Kt(M2);
                else for (n4 = s2 ? f2.x : f2.x + f2[U.qlt], C2 = f2.col + 1; C2 <= g3; C2++) s2 ? n4 -= o2.Kt(C2) : n4 += o2.Kt(C2);
                if (s2 ? (n4 -= Ot(t4[U.Klt](), v2.getColumnWidth(g3)) * i3, n4 -= t4.vdt(i3)) : n4 += Ot(t4[U.Klt](), v2.getColumnWidth(g3)) * i3, S2 = u2.findRow(d3)) e4 = S2.y;
                else if (d3 < l2.row) for (e4 = l2.y, T2 = l2.row - 1; T2 >= d3; T2--) e4 -= o2.Gt(T2);
                else for (e4 = h2.y + h2[U.Jlt], x2 = h2.row + 1; x2 <= d3; x2++) e4 += o2.Gt(x2);
                e4 += Ot(t4[U.Qlt](), v2.getRowHeight(d3)) * i3;
              }
              A2 = void 0, I2 = void 0, A2 = t4.vdt(i3), I2 = t4.mdt(i3), $n(v2, d3, g3, m2, b2) || p2.push({ name: t4.name(), x: n4, y: e4, width: A2, height: I2 });
            }
          }))), p2;
        }
        function $n(t3, n3, e3, i3, r2) {
          var o2, a2, u2;
          if (t3.rowOutlines) {
            for (o2 = true, u2 = n3; u2 <= i3; u2++) if (!t3.rowOutlines.isCollapsed(u2)) {
              o2 = false;
              break;
            }
          }
          if (t3.columnOutlines) {
            for (a2 = true, u2 = e3; u2 <= r2; u2++) if (!t3.columnOutlines.isCollapsed(u2)) {
              a2 = false;
              break;
            }
          }
          return o2 || a2;
        }
        function te(t3) {
          var n3, e3, i3, r2;
          if (t3) {
            for (e3 = (n3 = t3.QP()).length, i3 = 0; i3 < e3; i3++) if ((r2 = n3[i3]).isSelected()) return true;
          }
          return false;
        }
        function ne(t3) {
          var n3, e3 = t3.target;
          return !(!t3.target || "input" !== (n3 = e3.tagName.toLowerCase()) && "textarea" !== n3);
        }
        function ee(t3) {
          var n3 = true, e3 = true;
          return 2 === t3 ? (n3 = false, e3 = false) : 1 === t3 && (e3 = false), { dynamicMove: n3, dynamicSize: e3 };
        }
        function ie(t3, n3) {
          var e3 = "png", i3 = t3.lastIndexOf(".");
          return -1 !== i3 && (e3 = t3.substr(i3 + 1)), "svg" === e3 && (e3 = "svg+xml"), n3 ? "data:image/" + e3 + ";base64," + n3 : E;
        }
        function re(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = Math.PI / 180 / 6e4;
          if (t3) return n3 = t3.rot || 0, e3 = t3.off, i3 = t3.ext, r2 = e3.x, o2 = e3.y, s2 = (a2 = i3.cx) / 2, c2 = (u2 = i3.cy) / 2, f2 = n3 * M2, l2 = Math.sin(f2), h2 = Math.cos(f2), d2 = r2 + s2, v2 = o2 + c2, p2 = [], g2 = [], [{ x: -s2, y: -c2 }, { x: s2, y: -c2 }, { x: -s2, y: c2 }, { x: s2, y: c2 }].forEach((function(t4) {
            var n4 = oe(t4, l2, h2);
            p2.push(n4.x + d2), g2.push(n4.y + v2);
          })), m2 = Math.min.apply(null, p2), b2 = Math.max.apply(null, p2), { x: m2, y: y2 = Math.min.apply(null, g2), width: b2 - m2, height: (w2 = Math.max.apply(null, g2)) - y2 };
        }
        function oe(t3, n3, e3) {
          return { x: t3.x * e3 - t3.y * n3, y: t3.x * n3 + t3.y * e3 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FloatingObjectRender = n2.FloatingObject = n2.isFloatingObjectPicture = n2.FloatingObjectModel = n2.FloatingObjectCollection = n2.propertyRefreshCallback = n2.fromJsonFn = n2.toJsonFn = n2.Nlt = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/floatingObject/floatingobject.ns.js"), a = e2("./dist/plugins/floatingObject/drawing/chart.ns.js"), u = i2.UsedRangeUtil.vh, s = i2.XFileConstants.Ki, c = i2.Util.Ir, f = i2.Util.Er, l = i2.Util.jr, h = (function() {
          function t3() {
            this.j0t = {};
          }
          return t3.prototype.push = function(t4) {
            this.j0t[wt(t4)] = t4;
          }, t3.prototype.remove = function(t4) {
            delete this.j0t[t4];
          }, t3.prototype.find = function(t4) {
            return this.j0t[t4];
          }, t3.prototype.empty = function() {
            delete this.j0t, this.j0t = {};
          }, t3.prototype.each = function(t4) {
            var n3, e3 = this.j0t;
            for (n3 in e3) e3.hasOwnProperty(n3) && t4(e3[n3]);
          }, t3.prototype.isEmpty = function() {
            var t4, n3 = this.j0t;
            for (t4 in n3) if (n3.hasOwnProperty(t4)) return false;
            return true;
          }, t3;
        })(), n2.Nlt = h, d = i2.NodeHelper.ur, v = i2.NodeHelper.sr, p = i2.ExcelHelper.emuToPixles, g = i2.ExcelHelper.pixelToEMU, m = i2.ExcelHelper.getActualColumnWidth, b = i2.ExcelHelper.getActualRowHeight, y = i2.Util.ho, w = i2.Util.Sr, M = i2.Util.To, C = new r.Common.ResourceManager(o.SR, "FloatingObjects"), S = C.getResource.bind(C), T = r.Common.lt, x = r.Common.kh, A = T.ht, I = i2.mt.p0, k = i2.mt.T1, N = i2.mt.En, j = i2.mt.w0, D = h, _ = document, O = x, E = null, R = void 0, L = Math.ceil, F = Math.floor, B = Math.max, P = Math.min, G = Math.abs, U = { xht: "div", _ON: "on", _ht: "z-index", pdt: "move", kht: "unselectable", yht: 1, hdt: "border", sht: 9007199254740992, bdt: "floatingObjects", rht: ".gcFloatingObject", Plt: "name", ydt: "scroll", _X: "x", _Y: "y", qlt: "width", Jlt: "height", Ult: "startRow", Qlt: "startRowOffset", Hlt: "startColumn", Klt: "startColumnOffset", zlt: "endRow", Xlt: "endRowOffset", Vlt: "endColumn", $lt: "endColumnOffset", Cdt: "isSelected", Sdt: "isLocked", aht: "isVisible", Tdt: "canPrint", Adt: "dynamicSize", Idt: "dynamicMove", xdt: "fixedPosition", Ndt: "allowResize", kdt: "allowMove", fht: 700, Wht: 701, ldt: "position", ddt: "absolute", Zht: "background", Nht: "gc-no-user-select", Ddt: "gc-floatingobject-selected", _dt: "gc-floatingobject-unselected", adt: "gc-floatingobject-resize-indicator-select", Jht: "gc-floatingobject-resize-indicator-unSelect", Edt: "gc-floatingobject-content-container", eht: "gc-floatingobject-container", Qht: "gc-floatingobject-moving-container", bht: "gc-floatingobject-moving-div", Kht: ".gc-floatingobject-resize-indicator", Oht: "gc-floatingobject-resize-indicator", Lht: "gc-floatingobject-absolute", Rht: "gc-floatingobject-top", Ght: "gc-floatingobject-middle", Uht: "gcfloatingobject-bottom", Bht: "gc-floatingobject-left", Fht: "gc-floatingobject-center", Pht: "gc-floatingobject-right", Ylt: "content", jdt: "gc-no-user-select", Odt: "100%", Rdt: "gc-floatingobject-background-cover", _NS: ".fos", pht: "left", Ldt: "center", idt: "right", ght: "top", Fdt: "middle", rdt: "bottom", tdt: "-resize", odt: "cursor", Eht: "mousemove", jht: "mouseup", hht: "startX", vht: "startY", dht: "startWidth", mht: "startHeight", Aht: "endX", Iht: "endY", Sht: "startTopRow", Tht: "startLeftColumn" }, (function(t3) {
          t3[t3.twoCell = 0] = "twoCell", t3[t3.oneCell = 1] = "oneCell", t3[t3.absolute = 2] = "absolute";
        })(H || (H = {})), V = U.xht + "." + U.Oht, z = V + "." + U.Rht + "." + U.Bht, Y = V + "." + U.Ght + "." + U.Bht, Z = V + "." + U.Uht + "." + U.Bht, W = V + "." + U.Rht + "." + U.Fht, Q = V + "." + U.Uht + "." + U.Fht, K = V + "." + U.Rht + "." + U.Pht, J = V + "." + U.Ght + "." + U.Pht, X = V + "." + U.Uht + "." + U.Pht, q = U.ght + U.pht, $ = U.ght + U.Ldt, tt = U.ght + U.idt, nt = U.Fdt + U.pht, et = U.Fdt + U.idt, it = U.rdt + U.pht, rt = U.rdt + U.Ldt, ot = U.rdt + U.idt, (at = function() {
          var t3 = this;
          t3.Olt = function() {
            var t4 = this.WL;
            t4 && t4.QP().forEach((function(t5) {
              t5.isSelected(false);
            }));
          }, t3.uq = function() {
            var t4 = this, n3 = t4.parent, e3 = t4.aM, i3 = n3 && n3.aM;
            return e3 || (e3 = t4.aM = i3 || { fromSheet: E, isCutting: false }), e3;
          }, t3.AT = function() {
            var t4, n3 = this.uq(), e3 = n3 && n3.fromSheet;
            e3 && (e3.dP = E), n3.fromSheet = E, n3.isCutting = false;
          }, t3.Pdt = function(t4) {
            var n3 = this.options;
            return !this.isActualProtected() || !t4.isLocked() || n3.protectionOptions.allowEditObjects;
          }, t3._lt = function(t4) {
            var n3 = this.options;
            return !this.isActualProtected() || !t4.isLocked() || n3.protectionOptions.allowEditObjects;
          }, t3.isPasteFloatingObject = function() {
            var t4 = this, n3 = t4.uq().fromSheet, e3 = this.dP;
            return !e3 && n3 && (e3 = n3.dP), e3 && !e3.isEmpty();
          }, t3.Gdt = function(t4, n3) {
            var e3, i3, r2 = this;
            return r2.Glt || (r2.Glt = []), (e3 = r2.Glt[t4]) || (r2.Glt[t4] = []), (i3 = r2.Glt[t4][n3]) || (r2.Glt[t4][n3] = new gt(r2)), i3 = r2.Glt[t4][n3];
          }, t3.oht = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = u2;
            if (!s2.D_ && s2.WL && s2.Dn && s2.Dn.J()) for (e3 = s2.Fi(), i3 = void 0, n3 !== E && void 0 !== n3 || (n3 = s2.zoom()), r2 = 0; r2 <= 2; r2++) for (o2 = 0; o2 <= 2; o2++) (i3 = e3.c9(r2, o2)) && 0 !== i3.width && 0 !== i3.height && (a2 = s2.Gdt(r2, o2)) && a2.Dn(r2, o2, n3);
          };
        }).call(i2.Worksheet.prototype), n2.toJsonFn = It, n2.fromJsonFn = kt, n2.propertyRefreshCallback = Nt, ut = (function() {
          function t3(t4, n3) {
            this.Mf = t4, this.iht = n3;
          }
          return t3.prototype.L0 = function() {
            this.Mf = E;
          }, t3.prototype.getUsedRange = function() {
            var t4, n3, e3, i3, r2, o2, a2, s2 = this, c2 = s2.all(), f2 = {};
            if (c2) for (t4 = void 0, n3 = void 0, e3 = void 0, i3 = void 0, r2 = 0, o2 = c2; r2 < o2.length; r2++) t4 = (a2 = o2[r2]).startRow(), n3 = a2.startColumn(), e3 = a2.endRow(), i3 = a2.endColumn(), u(f2, { minRow: t4, minCol: n3, maxRow: e3, maxCol: i3 });
            return f2;
          }, t3.prototype.add = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this, u2;
            return "1" === a2.iht ? u2 = dt.gdt(t4, n3, e3, i3, r2, o2) : "0" === a2.iht && (u2 = t4), a2.Mf.WL.ZP(u2), u2;
          }, t3.prototype.get = function(t4) {
            return this.Mf.WL.ev(t4);
          }, t3.prototype.remove = function(t4) {
            this.Mf.WL.VP(t4);
          }, t3.prototype.clear = function() {
            return this.Mf.WL.d5(this.iht);
          }, t3.prototype.all = function() {
            return this.Mf.WL.QP(this.iht);
          }, t3.prototype.zIndex = function(t4, n3) {
            return this.Mf.WL.tht(t4, n3);
          }, t3.prototype.Udt = function(t4, n3, e3) {
            this.all().forEach((function(i3) {
              var r2 = e3 ? i3.startRow() : i3.startColumn(), o2 = e3 ? i3.endRow() : i3.endColumn();
              n3 < r2 || t4 > o2 || !i3.dynamicSize() || $t(i3), _t(i3);
            }));
          }, t3;
        })(), n2.FloatingObjectCollection = ut, st = (function() {
          function t3(t4) {
            var n3 = this;
            n3.sheet(t4), Yt(n3), n3.vst = {}, n3.uht = [];
          }
          return t3.prototype.Hdt = function(t4) {
            this.QP().forEach((function(n3) {
              zt(n3, t4);
            }));
          }, t3.prototype.ZP = function(t4, n3) {
            var e3, i3 = this, r2 = i3.sheet();
            if (r2.suspendPaint(), !(e3 = t4.name())) throw r2.resumePaint(), new Error(S().Exp_FloatingObjectNameEmptyError);
            if (i3.vst[e3]) {
              if (!n3) throw r2.resumePaint(), new Error(S().Exp_FloatingObjectHasSameNameError);
              e3 = i3.jlt(e3 + "__"), t4.name(e3);
            }
            r2.Ut.zdt(), i3.Hdt(-1), t4.sheet(r2), i3.vst[e3] = t4, i3.uht.push(e3), r2.Vdt(t4), r2.Ut.zdt(true), r2.resumePaint();
          }, t3.prototype.ev = function(t4) {
            return this.vst[t4];
          }, t3.prototype.VP = function(t4, n3) {
            var e3, r2, o2, a2, u2 = this;
            if (t4) {
              if (e3 = u2.sheet(), !(r2 = u2.ev(t4))) return;
              return e3.Ut.zdt(), e3.suspendPaint(), n3 ? (o2 = { sheet: e3, sheetName: e3.name(), floatingObject: r2, cancel: false }, e3.ki(i2.Events.FloatingObjectRemoving, o2), false === o2.cancel && (delete u2.vst[t4], (a2 = u2.uht.indexOf(t4)) > -1 && u2.uht.splice(a2), e3.ki(i2.Events.FloatingObjectRemoved, { sheet: e3, sheetName: e3.name(), floatingObject: r2 }))) : (delete u2.vst[t4], (a2 = u2.uht.indexOf(t4)) > -1 && u2.uht.splice(a2)), e3.Ut.zdt(true), e3.resumePaint(), true;
            }
            return false;
          }, t3.prototype.Ydt = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.sheet();
            if (o2.suspendPaint(), !n3) throw new Error(S().Exp_FloatingObjectNameEmptyError);
            if (r2.vst[n3]) throw new Error(S().Exp_FloatingObjectHasSameNameError);
            e3 = r2.vst[t4], delete r2.vst[t4], r2.vst[n3] = e3, (i3 = r2.uht.indexOf(t4)) > -1 && r2.uht.splice(i3), r2.uht.push(n3), e3.onNameChanged && e3.onNameChanged(t4, n3), o2.resumePaint();
          }, t3.prototype.d5 = function(t4) {
            var n3 = this, e3 = n3.sheet();
            e3.suspendPaint(), i2.GC$.each(this.vst, (function(e4, i3) {
              t4 && t4 !== i3.iht || n3.VP(i3.name());
            })), n3.uht = [], e3.resumePaint();
          }, t3.prototype.QP = function(t4) {
            var n3 = [];
            return i2.GC$.each(this.vst, (function(e3, i3) {
              t4 && t4 !== i3.iht || n3.push(i3);
            })), n3;
          }, t3.prototype.tht = function(t4, n3) {
            var e3 = isNaN(n3), i3 = this.ev(t4);
            if (i3) {
              if (e3) return Ht(i3);
              Vt(i3, n3);
            }
            if (e3) return -1;
          }, t3.prototype.toJSON = function() {
            var t4 = [];
            return this.QP().forEach((function(n3) {
              var e3, i3;
              n3 instanceof dt && n3.Zdt() && (e3 = n3.toJSON(), i3 = n3.tht, isNaN(i3) || (e3.zIndex = i3), t4.push(e3));
            })), t4;
          }, t3.prototype.wh = function() {
            this.toJSON();
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this;
            if (t4 && 0 !== t4.length) for (e3 = 0; e3 < t4.length; e3++) o2 = void 0, (r2 = t4[e3]) && (a2 = void 0, u2 = r2.floatingObjectType, "0" === (s2 = i2.mt.T1(u2) ? u2 + "" : r2.typeName) ? o2 = new dt() : "1" === s2 ? o2 = dt.gdt() : (a2 = (0, i2.getTypeFromString)(s2)) && (o2 = new a2()), o2 && (l2 = (f2 = (c2 = d2.sheet()) && c2.parent) && f2.Gie, o2.fromJSON(r2, n3, l2), d2.ZP(o2), h2 = r2.zIndex, A(h2) || (o2.tht = h2)));
          }, t3.prototype.yh = function(t4, n3, e3, r2) {
            var o2, a2, u2;
            t4 && 0 !== t4.c_.length && (a2 = (o2 = this).sheet(), u2 = i2.Util.Co(r2), t4.c_.forEach((function(t5) {
              o2.Wdt(a2, t5, e3, n3, u2);
            })));
          }, t3.prototype.Wdt = function(t4, n3, e3, i3, r2) {
            var o2, u2;
            n3.twoCellAnchor ? (o2 = n3.twoCellAnchor, u2 = a.ST_AnchorType.twoCellAnchor) : n3.oneCellAnchor ? (o2 = n3.oneCellAnchor, u2 = a.ST_AnchorType.oneCellAnchor) : n3.absoluteAnchor && (o2 = n3.absoluteAnchor, u2 = a.ST_AnchorType.absoluteAnchor), o2 && (o2.grpSp ? this.tye(t4, o2, e3, i3, r2) : this.zoe(t4, o2, u2, e3, i3, r2));
          }, t3.prototype.zoe = function(n3, e3, r2, o2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = {};
            b2.fromBaseDrawingSJSFormat(e3, y2), (c2 = w(u2.c_, y2.Qdt)) && (f2 = { relatedFile: c2 }, t3.et(this, "isSupportType", f2), l2 = Qt(c2.Type) && pn(e3.pic), (f2.isSupportType || l2) && (s2 && M(n3, e3, R, o2), r2 === a.ST_AnchorType.twoCellAnchor ? b2.Kdt(n3, e3, y2) : r2 === a.ST_AnchorType.oneCellAnchor ? b2.Jdt(n3, e3, y2) : r2 === a.ST_AnchorType.absoluteAnchor ? b2.Xdt(e3, y2) : r2 === a.ST_AnchorType.groupShapeAnchor && b2.nye(e3, y2), f2.isSupportType ? (h2 = { relatedFile: c2, data: o2, sheet: n3, resultData: y2 }, t3.et(this, "fromSJSFormat", h2)) : l2 && (d2 = dt.gdt && dt.gdt()) && (v2 = (v2 = c2.Target).split("/").pop(), p2 = o2.media, g2 = y2.name, y2.src = ie(v2, p2[v2]), g2 && (y2.name = yt(this.uht, g2)), d2.fromJSON(y2), this.ZP(d2), e3.lossless && e3.lossless.content && ((m2 = N(U.xht)).innerHTML = e3.lossless.content, d2.content((0, i2.GC$)(m2.firstChild)[0])))));
          }, t3.prototype.tye = function(t4, n3, e3, r2, o2) {
            var u2 = this, s2 = (0, i2.RF)(n3.grpSp && n3.grpSp.c_ || n3.c_ || []), c2 = s2[1].grpSpPr.xfrm;
            s2.forEach((function(n4) {
              "grpSp" === n4.n_ ? (u2.updateGroupXfrm(c2, n4.c_[1].grpSpPr.xfrm), u2.tye(t4, n4, e3, r2, o2)) : n4.graphicFrame && (u2.updateGroupXfrm(c2, n4.graphicFrame.xfrm), u2.zoe(t4, n4, a.ST_AnchorType.groupShapeAnchor, e3, r2, o2));
            }));
          }, t3.prototype.convertXfrm = function(t4) {
            var n3 = function(t5) {
              return p(v(t5), 6);
            };
            t4.chExt && (t4.chExt.cx = n3(t4.chExt.cx), t4.chExt.cy = n3(t4.chExt.cy)), t4.chOff && (t4.chOff.x = n3(t4.chOff.x), t4.chOff.y = n3(t4.chOff.y)), t4.ext.cx = n3(t4.ext.cx), t4.ext.cy = n3(t4.ext.cy), t4.off.x = n3(t4.off.x), t4.off.y = n3(t4.off.y);
          }, t3.prototype.updateGroupXfrm = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            t4.hasConvert || (this.convertXfrm(t4), t4.hasConvert = true), n3.hasConvert || (this.convertXfrm(n3), n3.hasConvert = true), e3 = t4.chExt.cx, i3 = t4.chExt.cy, r2 = t4.chOff.x, o2 = t4.chOff.y, a2 = t4.off.x, u2 = t4.off.y, s2 = t4.ext.cx, c2 = t4.ext.cy, f2 = n3.off.x, l2 = n3.off.y, h2 = n3.ext.cx, d2 = n3.ext.cy, v2 = (f2 - r2) / (e3 || 1) * s2, n3.off.x = a2 + v2, p2 = (l2 - o2) / (i3 || 1) * c2, n3.off.y = u2 + p2, n3.ext.cx = h2 / (e3 || 1) * s2, n3.ext.cy = d2 / (i3 || 1) * c2;
          }, t3.prototype.Kdt = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = n3.editAs || 0, s2 = n3.from, c2 = n3.to, f2 = ee(H[u2]);
            e3.dynamicMove = f2.dynamicMove, e3.dynamicSize = f2.dynamicSize, e3.placement = u2, s2 && (o2 = Xt(s2), e3.x = m(t4, 0, o2.col) + o2.colOff, e3.y = b(t4, 0, o2.row) + o2.rowOff, e3.startRow = o2.row, e3.startRowOffset = o2.rowOff, e3.startColumn = o2.col, e3.startColumnOffset = o2.colOff), c2 && (a2 = Xt(c2), i3 = m(t4, 0, a2.col) + a2.colOff, r2 = b(t4, 0, a2.row) + a2.rowOff, e3.endRow = a2.row, e3.endRowOffset = a2.rowOff, e3.endColumn = a2.col, e3.endColumnOffset = a2.colOff), e3.height = r2 - e3.y, e3.width = i3 - e3.x;
          }, t3.prototype.Jdt = function(t4, n3, e3) {
            var i3, r2 = n3.from, o2 = n3.ext;
            e3.dynamicMove = true, e3.dynamicSize = false, e3.placement = 1, r2 && (i3 = Xt(r2), e3.x = m(t4, 0, i3.col) + i3.colOff, e3.y = b(t4, 0, i3.row) + i3.rowOff), o2 && (e3.width = p(v(o2.cx), 6), e3.height = p(v(o2.cy), 6));
          }, t3.prototype.Xdt = function(t4, n3) {
            var e3 = t4.from || t4.pos, i3 = t4.ext;
            n3.dynamicMove = false, n3.dynamicSize = false, n3.placement = 2, e3 && (n3.x = p(v(e3.x), 6), n3.y = p(v(e3.y), 6)), i3 && (n3.width = p(v(i3.cx), 6), n3.height = p(v(i3.cy), 6));
          }, t3.prototype.nye = function(t4, n3) {
            var e3, i3 = t4.graphicFrame;
            n3.dynamicMove = false, n3.dynamicSize = false, n3.placement = 2, e3 = re(i3.xfrm), n3.x = e3.x, n3.y = e3.y, n3.width = e3.width, n3.height = e3.height;
          }, t3.prototype.fromBaseDrawingSJSFormat = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, c2, f2, l2, h2, v2 = t4.graphicFrame, p2 = t4.pic, g2 = t4.AlternateContent, m2 = t4.clientData;
            if (g2 && g2.Choice && (e3 = g2.Choice.graphicFrame) && (v2 = e3), v2 && ((i3 = v2.nvGraphicFramePr.cNvPr) && (n3.name = i3.name, n3.isVisible = !d(i3.hidden) || false, n3.alt = i3.descr), (r2 = v2.graphic.graphicData) && r2.chart && (n3.Qdt = r2.chart[s])), p2) {
              for (f2 in (o2 = p2.nvPicPr.cNvPr) && (n3.name = o2.name, n3.isVisible = !d(o2.hidden) || false, n3.alt = o2.descr), u2 = (a2 = p2.blipFill.blip) && a2["r:embed"], Kt(c2 = a2 && a2.extLst && a2.extLst.ext) || (c2 = [c2]), c2) c2.hasOwnProperty(f2) && (l2 = c2[f2] && c2[f2]["asvg:svgBlip"]) && (u2 = l2["r:embed"]);
              n3.Qdt = u2;
            }
            g2 && ((h2 = g2.cNvPr) && (n3.name = h2.name, n3.isVisible = !d(h2.hidden) || false, n3.alt = h2.descr), g2.chart && (n3.Qdt = g2.chart[s])), m2 ? (n3.isLocked = d(m2.fLocksWithSheet, true), n3.canPrint = d(m2.fPrintsWithSheet, true)) : (n3.isLocked = true, n3.canPrint = true);
          }, t3.prototype.L0 = function(t4) {
            (0, i2.GC$)(_.body).unbind("scroll" + U.rht);
            var n3 = this, e3 = n3.sheet();
            e3 && (e3._3(i2.Events.ColumnChanged + U.rht), e3._3(i2.Events.RowChanged + U.rht), e3._3(i2.Events.ColumnWidthChanged + U.rht), e3._3(i2.Events.RowHeightChanged + U.rht)), false !== t4 && (n3.vst && i2.GC$.each(n3.vst, (function(n4, e4) {
              e4.L0(t4);
            })), n3.sheet(E));
          }, t3.prototype.hitTest = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this.sheet(), s2 = u2.Fi(), c2 = E;
            if (s2) {
              for (i3 = 0; i3 <= 2; i3++) for (r2 = 0; r2 <= 2; r2++) if ((o2 = s2.c9(i3, r2)) && o2.contains(t4, n3) && ((a2 = u2.Gdt && u2.Gdt(i3, r2)) && a2.Vht.each((function(i4) {
                var r3 = i4.Blt;
                r3 && r3.isVisible() && (u2.Pdt(r3) || e3) && Wt(t4, n3, i4.qdt) && (c2 ? Ht(c2.floatingObject) < Ht(r3) && (c2.floatingobject = r3) : c2 = { x: t4, y: n3, floatingObject: r3, Dn: i4 });
              })), c2)) return c2;
            }
            return c2;
          }, t3.prototype.jlt = function(t4) {
            var n3, e3;
            for (t4 || (t4 = "FloatingObject"), e3 = t4 + (n3 = 1).toString(); this.ev(e3); ) e3 = t4 + (++n3).toString();
            return e3;
          }, t3;
        })(), n2.FloatingObjectModel = st, ct = { sheet: I("sheet", R) }, i2.GC$.extend(st.prototype, ct), (0, i2.$e)(st), ft = ["dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"], lt = [U.Plt, U._X, U._Y, U.qlt, U.Jlt, U.Ult, U.Qlt, U.Hlt, U.Klt, U.zlt, U.Xlt, U.Vlt, U.$lt, U.Tdt, U.Cdt, U.Sdt, U.aht, U.Idt, U.Adt, U.xdt, U.Ndt, U.kdt, "alt"], ht = [["sheet", E, function() {
          cn(this);
        }], [U.Plt, R, function(t3, n3) {
          var e3, i3, r2 = this, o2 = r2.sheet();
          o2 && (i3 = (e3 = o2.WL).ev(n3)) === r2 && e3.Ydt(n3, t3), r2.onPropertyChanged("name", t3, n3);
        }, nn], [U._X, 0, rn(U._X, false)], [U._Y, 0, rn(U._Y, false)], [U.Jlt, 0, rn(U.Jlt, true)], [U.qlt, 0, rn(U.qlt, true)], [U.Ult, R, jt(U.Ult)], [U.Qlt, 0, jt(U.Qlt)], [U.Hlt, R, jt(U.Hlt)], [U.Klt, 0, jt(U.Klt)], [U.zlt, R, Dt(U.zlt)], [U.Xlt, 0, Dt(U.Xlt)], [U.Vlt, R, Dt(U.Vlt)], [U.$lt, 0, Dt(U.$lt)], [U.Cdt, false, Nt(U.Cdt)], [U.Sdt, true, en(U.Sdt)], [U.Tdt, true, en(U.Tdt)], [U.aht, true, Nt(U.aht)], [U.Idt, true, function(t3, n3) {
          en(U.Idt).call(this, t3, n3);
        }, function(t3) {
          return "boolean" == typeof t3 && (t3 || this.dynamicSize(false, false), !this.fixedPosition());
        }], [U.Adt, true, function(t3, n3) {
          en(U.Adt).call(this, t3, n3);
        }, function(t3) {
          return "boolean" == typeof t3 && this.dynamicMove() && !this.fixedPosition();
        }], [U.xdt, false, function(t3, n3) {
          var e3 = this;
          t3 && (e3.dynamicMove(false, false), e3.dynamicSize(false, false)), e3.onPropertyChanged(U.xdt, t3, n3);
        }], [U.Ndt, true, Nt(U.Ndt)], [U.kdt, true, Nt(U.kdt)], ["alt", "", en("alt")]], n2.isFloatingObjectPicture = pn, dt = (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.cht = { startRowOffset: R, startColumnOffset: R, endRowOffset: R, endColumnOffset: R }, o2.typeName = "0", o2.iht = "0", o2.name(t4), o2.x(n3 || 0, false), o2.y(e3 || 0, false), o2[U.qlt](i3 || 0, false), o2[U.Jlt](r2 || 0, false), o2.Ti = [], o2.Zlt = false, o2.nht = U.fht, o2.Wlt = false, o2.assignId();
          }
          return t3.prototype.position = function(t4) {
            var n3, e3, r2 = this, o2 = r2.sheet();
            return 0 === arguments.length ? new i2.Point(r2.x(), r2.y()) : (n3 = r2.x(), e3 = r2.y(), !t4 || isNaN(t4.x) || isNaN(t4.y) || n3 === t4.x && e3 === t4.y || (r2.x(t4.x, false), r2.y(t4.y, false), sn(r2), hn(r2), o2 && o2.zw(), r2.onPropertyChanged("position", t4, new i2.Point(n3, e3))), r2);
          }, t3.prototype.cloneContent = function() {
            var t4, n3, e3 = this.content();
            return e3 ? (t4 = void 0, e3.cloneNode ? t4 = e3.cloneNode(true) : ((n3 = N(U.xht)).innerHTML = e3.outerHTML, t4 = n3.firstChild), (0, i2.GC$)(t4).removeAttr("id")[0]) : E;
          }, t3.prototype.refreshContent = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2 = this;
            s2.Zlt && t4 && ((n3 = (0, i2.GC$)(t4)).empty(), e3 = s2.cloneContent(), r2 = U.Odt, o2 = U.Odt, a2 = "", u2 = "", e3 && e3.style && (a2 = e3.style.width, u2 = e3.style.height), "" !== a2 && (r2 = a2), "" !== u2 && (o2 = u2), e3 !== E ? ((0, i2.GC$)(e3).css({ width: r2, height: o2 }).addClass(U.Rdt).addClass(U.Nht).attr(U.kht, U._ON).appendTo(t4), n3.css(U.Zht, "")) : n3.css(U.Zht, ""), s2.Zlt = false);
          }, t3.prototype.toJSON = function() {
            var t4, n3 = this, e3 = It.call(n3, lt), r2 = n3.cht;
            for (t4 in r2) A(r2[t4]) || (e3[t4] = r2[t4]);
            return e3.typeName = n3.typeName, e3[U.Ylt] = (0, i2.GC$)(N(U.xht)).append(n3.cloneContent()).html(), e3;
          }, t3.prototype.wh = function(t4) {
            var n3 = this, e3 = n3.typeName;
            return "1" === e3 && n3.toSJSFormat_PictureDrawing(t4), t4;
          }, t3.prototype.toSJSFormat_PictureDrawing = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2, b2, y2 = this, w2 = y2.sheet(), M2 = y2.pictureStretch();
            1 === M2 ? n3 = mn(w2, y2) : 2 === M2 ? n3 = bn(w2, y2) : 3 === M2 && (n3 = yn(w2, y2)), e3 = gn(y2.dynamicMove(), y2.dynamicSize()), r2 = { editAs: H[e3] }, n3 ? (r2.from = { col: { v_: n3.startColumn }, colOff: { v_: g(n3.startColumnOffset || 0) }, row: { v_: n3.startRow }, rowOff: { v_: g(n3.startRowOffset || 0) } }, r2.to = { col: { v_: n3.endColumn }, colOff: { v_: g(n3.endColumnOffset || 0) }, row: { v_: n3.endRow }, rowOff: { v_: g(n3.endRowOffset || 0) } }) : (r2.from = { col: { v_: y2.startColumn() }, colOff: { v_: g(y2.startColumnOffset() || 0) }, row: { v_: y2.startRow() }, rowOff: { v_: g(y2.startRowOffset() || 0) } }, r2.to = { col: { v_: y2.endColumn() }, colOff: { v_: g(y2.endColumnOffset() || 0) }, row: { v_: y2.endRow() }, rowOff: { v_: g(y2.endRowOffset() || 0) } }), false === y2.isLocked() && (r2.fLocksWithSheet = "0"), o2 = { id: y2.wp, name: y2.name() }, y2.isVisible() || (o2.hidden = "1"), (a2 = y2.alt()) && (o2.descr = a2), o2.extLst = { ext: { r_: [26], creationId: { r_: [24, 25] } } }, u2 = { cNvPr: o2, cNvPicPr: { picLocks: { noChangeAspect: "1" } } }, (s2 = {}).blip = { r_: [8], "r:embed": t4._id, extLst: { ext: { r_: [23], useLocalDpi: { r_: [22], val: "0" } } } }, (c2 = y2.fdt) ? (f2 = Cn(c2), l2 = {}, A(f2.l) || 0 === f2.l || (l2.l = f2.l), A(f2.t) || 0 === f2.t || (l2.t = f2.t), A(f2.r) || 0 === f2.r || (l2.r = f2.r), A(f2.b) || 0 === f2.b || (l2.b = f2.b), s2.srcRect = l2) : s2.stretch = { fillRect: {} }, h2 = {}, y2.$dt && (h2.rot = Sn(y2.$dt)), h2.xfrm = { off: { x: "0", y: "0" }, ext: { cx: "0", cy: "0" } }, h2.prstGeom = { prst: "rect", avLst: {} }, y2.backColor() ? h2.solidFill = Pt(w2, y2.backColor()) : h2.noFill = {}, d2 = wn(y2.borderStyle()) ? 0 : y2.borderWidth(), v2 = y2.borderColor(), p2 = Mn(y2.borderStyle()), m2 = y2.noFill(), b2 = h2.ln = {}, A(d2) || (b2.w = B(g(d2), 0)), "dbl" === p2 && (b2.cmpd = "dbl"), m2 ? b2.noFill = {} : b2.solidFill = Pt(w2, v2), "dbl" !== p2 && (b2.prstDash = { val: p2 }), r2.pic = { nvPicPr: u2, blipFill: s2, spPr: h2, lossless: { isFloatingObject: true } }, r2.clientData = {}, A(r2.lossless) && (r2.lossless = {}), r2.lossless[U.Ylt] = (0, i2.GC$)(N(U.xht)).append(y2.cloneContent()).html(), t4.c_.push({ twoCellAnchor: r2 });
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, r2;
            t4 && ((e3 = this).tvt = true, kt.call(this, lt, t4, n3), A(t4[U.Ult]) && hn(e3), t4.content && ((r2 = N(U.xht)).innerHTML = t4.content, e3.content((0, i2.GC$)(r2.firstChild)[0])), e3.tvt = R);
          }, t3.prototype.yh = function(t4, n3) {
          }, t3.prototype.clone = function(n3) {
            var e3 = this, r2 = (0, i2.getTypeFromString)(e3.typeName), o2 = r2 ? new r2() : new t3(), a2 = JSON.stringify(e3.toJSON());
            return o2.fromJSON(JSON.parse(a2)), o2.content(e3.cloneContent()), o2;
          }, t3.prototype.onPropertyChanged = function(t4, n3, e3) {
            var i3, r2 = this;
            r2.tvt || (i3 = r2.sheet()) && (i3.Ut.nvt(r2, t4, e3, n3), r2.ki({ sheet: i3, sheetName: i3.name(), floatingObject: r2, propertyName: t4, oldValue: e3 }));
          }, t3.prototype.ki = function(t4) {
            var n3, e3 = this.sheet();
            e3 && (e3.ki(i2.Events.FloatingObjectChanged, t4), t4.propertyName === U.Cdt && (n3 = { sheet: t4.sheet, sheetName: t4.sheetName, floatingObject: t4.floatingObject }, e3.ki(i2.Events.FloatingObjectSelectionChanged, n3)));
          }, t3.prototype.JO = function(t4, n3) {
            var e3 = this;
            t4 = L(t4), n3 = L(n3), on.call(e3, e3[U.Ult], e3[U.zlt], t4, n3);
          }, t3.prototype.xP = function(t4, n3) {
            var e3 = this, i3 = t4 + n3 - 1;
            an.call(e3, e3[U.Ult], e3[U.Qlt], e3[U.zlt], e3[U.Xlt], t4, n3, i3);
          }, t3.prototype.qO = function(t4, n3) {
            var e3 = this;
            t4 = L(t4), n3 = L(n3), on.call(e3, e3[U.Hlt], e3[U.Vlt], t4, n3);
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3 = this;
            e3 = (t4 = L(t4)) + (n3 = L(n3)) - 1, an.call(i3, i3[U.Hlt], i3[U.Klt], i3[U.Vlt], i3[U.$lt], t4, n3, e3);
          }, t3.prototype.getHost = function(t4, n3) {
            var e3, i3, r2 = this.Ti.concat();
            if (!A(t4) && !A(n3)) {
              for (e3 = 0; e3 < r2.length; e3++) if ((i3 = r2[e3]).rowViewportIndex === t4 && i3.columnViewportIndex === n3) return i3;
              return E;
            }
            return r2;
          }, t3.prototype.evt = function(t4, n3, e3) {
            var i3 = this.Ti;
            t4 && i3.indexOf(t4) < 0 && (t4.rowViewportIndex = n3, t4.columnViewportIndex = e3, i3.push(t4));
          }, t3.prototype.ivt = function(t4) {
            var n3 = this.Ti, e3 = n3.indexOf(t4);
            e3 >= 0 && n3.splice(e3, 1);
          }, t3.prototype.rvt = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2 = N(U.xht);
            return (0, i2.GC$)(c2).addClass(U.jdt).addClass(U.Edt).attr(U.kht, U._ON).css(U.ldt, U.ddt), e3 = this.cloneContent(), r2 = U.Odt, o2 = U.Odt, a2 = "", u2 = "", (s2 = e3 && e3.style) && (a2 = s2.width, u2 = s2.height), "" !== a2 && (r2 = a2), "" !== u2 && (o2 = u2), e3 !== E && (0, i2.GC$)(e3).css({ width: r2, height: o2 }).addClass(U.Rdt).addClass(U.jdt).attr(U.kht, U._ON).appendTo(c2), this.evt(c2, t4, n3), c2;
          }, t3.prototype.Zdt = function() {
            return true;
          }, t3.prototype.L0 = function(t4) {
          }, t3.prototype.ovt = function() {
            _t(this), $t(this);
          }, t3.prototype.vdt = function(t4) {
            var n3, e3, i3 = this;
            return 1 === t4 ? F(i3.width()) : (n3 = vn(i3.startColumn(), i3.startColumnOffset(), i3.sheet(), false), e3 = Bt(i3, false, n3 + i3[U.qlt]()), dn(i3.startColumn(), e3.index, i3.startColumnOffset(), e3.offset, t4, i3.sheet(), false));
          }, t3.prototype.mdt = function(t4) {
            var n3, e3, i3 = this;
            return 1 === t4 ? F(i3.height()) : (n3 = vn(i3.startRow(), i3.startRowOffset(), i3.sheet(), true), e3 = Bt(i3, true, n3 + i3[U.Jlt]()), dn(i3.startRow(), e3.index, i3.startRowOffset(), e3.offset, t4, i3.sheet(), true));
          }, t3;
        })(), n2.FloatingObject = dt, (0, i2.qDr)(dt), vt = { content: I(U.Ylt, E, Nt(U.Ylt)) }, i2.GC$.each(ht, (function(t3, n3) {
          vt[n3[0]] = I(n3[0], n3[1], n3[2], n3[3]);
        })), i2.GC$.extend(dt.prototype, vt), pt = (function() {
          function t3(t4, n3) {
            this.sdt = "";
            var e3 = this;
            e3.Blt = t4, e3.name = t4 ? t4.name() : "", e3.Mf = n3, e3.p4 = false, e3.ndt = false;
          }
          return t3.prototype.wK = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2 = (0, i2.GC$)(t4.target).attr("resizeDirection");
            if (s2) return s2;
            if (n3 = (0, i2.GC$)(this.Hht).offset(), e3 = t4.pageX - n3.left, r2 = t4.pageY - n3.top, o2 = this.edt) {
              for (a2 = 0; a2 < o2.length; a2++) if ((u2 = o2[a2]).rect.contains(e3, r2)) return u2.direction;
            }
          }, t3.prototype.avt = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2 = t4.target, c2 = (0, i2.GC$)(s2).attr("resizeDirection");
            if (c2) return s2.style.cursor;
            if (n3 = (0, i2.GC$)(this.Hht).offset(), e3 = t4.pageX - n3.left, r2 = t4.pageY - n3.top, o2 = this.edt) {
              for (a2 = 0; a2 < o2.length; a2++) if ((u2 = o2[a2]).rect.contains(e3, r2)) return u2.cursor;
            }
          }, t3.prototype.gg = function(n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf, g2 = v2.Blt, m2 = p2.Ut.pI, b2 = v2.AW, y2 = v2.IW;
            if (p2._lt(g2) && p2.endEdit() && (p2.Zg(true), e3 = { e: n3, r: E }, t3.et(v2, "preProcessMouseDown", e3), !e3.r)) {
              if (0 === n3.button || 2 === n3.button) {
                if (r2 = g2.isSelected(), n3.ctrlKey || n3.shiftKey ? g2.isSelected(!r2) : r2 || (p2.Olt(), g2.isSelected(true)), r2 || i2.hi.F1(p2), m2 && m2.CZ(), p2.e4(), p2.G1 && p2.G1(), 2 === n3.button) return;
                if (o2 = p2.rt, a2 = p2.uw(), u2 = v2.wK(n3), s2 = new i2.Point(n3.pageX - a2.left, n3.pageY - a2.top), c2 = In(v2, u2), !g2.allowMove() && (!g2.allowResize() || c2.inMoving)) return;
                v2.fk = s2, v2.uvt = true, v2.wht = c2, c2.inMoving ? ((f2 = {}).startTopRow = p2.getViewportTopRow(b2), f2.startLeftColumn = p2.getViewportLeftColumn(y2), f2.startX = s2.x, f2.startY = s2.y, v2.CK = f2) : (Un(v2), l2 = {}, h2 = xn(v2.Mht), l2.startX = h2.x, l2.startY = h2.y, l2.startWidth = h2[U.qlt], l2.startHeight = h2[U.Jlt], l2.startTopRow = p2.getViewportTopRow(b2), l2.startLeftColumn = p2.getViewportLeftColumn(y2), l2.cursor = v2.avt(n3), l2.direction = u2, v2.lht = l2), Hn(v2), d2 = p2.hitTest(s2.x, s2.y), o2.Rk = { e9: d2.rowViewportIndex, r9: d2.colViewportIndex, Bk: d2.hitTestType }, o2.fk = s2, o2.Ok(), o2.u9 = true, p2.ki(i2.Events.FloatingElementSelected, { type: "floatingObject" });
              }
              return false;
            }
          }, t3.prototype.pg = function(n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Mf, d2 = l2.Hht, v2 = l2.zht;
            if (h2._lt(l2.Blt)) {
              if (e3 = { e: n3, r: E }, t3.et(l2, "preProcessMouseMove", e3), !e3.r) return a2 = (o2 = l2.Blt).isLocked() && h2.isActualProtected(), (0, i2.GC$)(d2).css(U.odt, a2 || !o2.allowMove() ? "default" : U.pdt), h2.vk ? (d2 && (0, i2.GC$)(d2).css(U.odt, "default"), true) : (u2 = h2.rt, s2 = h2.uw(), c2 = new i2.Point(n3.pageX - s2.left, n3.pageY - s2.top), l2.uvt ? (l2.wht.inMoving ? l2.fk.x === c2.x && l2.fk.y === c2.y || (l2.iQ = true, Un(l2), Ln(l2, l2.fk, c2), (0, i2.GC$)(v2).css(U.odt, U.pdt)) : l2.Blt.allowResize() && (l2.Eb = true, jn(l2), (0, i2.GC$)(v2).css(U.odt, l2.lht[U.odt])), (l2.iQ || l2.Eb) && (l2.fk = c2, u2.fk = c2, u2.a9(), (0, i2.GC$)(_.body).addClass(U.Nht).attr(U.kht, U._ON))) : (f2 = h2.parent).options.enableAccessibility && f2.n2(o2.alt()), false);
              (r2 = e3.cursor) && (0, i2.GC$)(d2).css(U.odt, r2);
            }
          }, t3.prototype.bg = function(n3) {
            var e3, r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = c2.rt, l2 = s2.Blt, h2 = s2.Hht, d2 = s2.wht;
            if (c2._lt(l2) && (e3 = { e: n3, r: E }, t3.et(s2, "preProcessMouseUp", e3), !e3.r)) return c2.vk ? ((0, i2.GC$)(h2).css(U.odt, U.pdt), true) : (f2.u9 = false, f2.l9(), r2 = c2.uw(), o2 = new i2.Point(n3.pageX - r2.left, n3.pageY - r2.top), (a2 = s2.CK) && (a2.endX = o2.x, a2.endY = o2.y), d2 && (u2 = l2.fixedPosition(), d2.inMoving && s2.iQ ? (u2 && Bn(s2), n3.ctrlKey ? _n(s2) : On(s2)) : s2.Eb && (u2 && Pn(s2), Rn(s2)), (0, i2.GC$)(_.body).removeClass(U.Nht)), s2.Flt(), false);
          }, t3.prototype.Flt = function() {
            var t4 = this;
            t4.lht = E, t4.CK = E, t4.Cht = E, (0, i2.GC$)(t4.zht).remove(), t4.Mht = E, t4.uvt = false, Vn(t4), t4.iQ = false, t4.Eb = false;
          }, t3.prototype.Dn = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Blt, h2 = f2.Mf;
            if (l2) {
              if (e3 = false, f2.svt = t4, !(r2 = f2.Hht)) {
                if (t4.width <= 0 || t4.height <= 0) return;
                Gt(l2, r2 = f2.Hht = Gn(f2)), (o2 = h2.parent) && (a2 = f2.fF = o2.j2()) && (0, i2.GC$)(a2).append(r2);
              }
              (u2 = f2.Xht) || (u2 = f2.Xht = l2.rvt(f2.AW, f2.IW), "1" === l2.typeName ? (f2.qht = N(U.xht), (0, i2.GC$)(f2.qht).addClass(U.Nht + " " + U.Edt).attr(U.kht, U._ON), r2.appendChild(f2.qht), f2.qht.appendChild(u2)) : (r2.appendChild(u2), e3 = true)), f2.qht && (Kn(f2, n3, t4), n3.x = 0, n3.y = 0), s2 = (0, i2.GC$)(u2), (0, i2.GC$)(r2).css([U.ght, U.pht, U.qlt, U.Jlt], [t4.y, t4.x, t4[U.qlt], t4[U.Jlt]]), s2.css([U.ght, U.pht, U.qlt, U.Jlt], [n3.y, n3.x, n3[U.qlt], n3[U.Jlt]]), f2.qdt = t4, l2.refreshContent && l2.refreshContent(u2), f2.qht && Qn(f2), l2.isSelected() ? (s2.removeClass(U._dt).addClass(U.Ddt), l2.allowResize() ? zn(f2, r2) : f2.ndt && Wn(f2, r2)) : (s2.removeClass(U.Ddt).addClass(U._dt), Wn(f2, r2)), e3 && (c2 = u2.firstChild, h2.ki(i2.Events.FloatingObjectLoaded, { sheet: h2, sheetName: h2.name(), floatingObject: l2, element: c2 }));
            }
          }, t3.prototype.L0 = function() {
            var n3 = this, e3 = n3.Blt, r2 = n3.Hht, o2 = n3.zht, a2 = n3.Xht;
            t3.et(n3, "dispose"), a2 && e3.ivt && (e3.ivt(a2), e3.L0(false)), r2 && ((0, i2.GC$)(r2).remove(), n3.Hht = E), o2 && ((0, i2.GC$)(o2).remove(), n3.zht = E);
          }, t3.$ht = 7, t3;
        })(), n2.FloatingObjectRender = pt, (0, i2.$e)(pt), gt = (function() {
          function t3(t4) {
            this.Mf = t4, this.Vht = new D();
          }
          return t3.prototype.L0 = function() {
            var t4 = this.Vht;
            t4.each((function(t5) {
              t5.L0();
            })), t4.empty(), this.Mf = E;
          }, t3.prototype.Dn = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2;
            if (!(t4 < 0 || n3 < 0)) {
              for (o2 = (r2 = this).Mf, a2 = r2.Vht, u2 = o2.WL, s2 = qn(r2, t4, n3, e3), c2 = [], a2.each((function(t5) {
                s2.find(t5.name) && u2.ev(t5.name) === t5.Blt || c2.push(t5);
              })), l2 = c2.length, f2 = 0; f2 < l2; f2++) (h2 = c2[f2]).Yht = E, a2.remove(h2.name), h2.L0();
              d2 = o2.parent && o2.parent.options.useTouchLayout, pt.$ht = d2 ? 11 : 7, s2.each((function(e4) {
                var s3, c3, f3, l3, h3, d3, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = u2.ev(e4.name), A2 = F(pt.$ht / 2 + 1);
                x2 && "1" === x2.typeName && (s3 = x2.borderWidth(), tn(c3 = x2.borderStyle()) || (s3 = 0), s3 > A2 && (A2 = s3)), f3 = Xn(r2, t4, n3), l3 = 1, h3 = e4.x - A2 - l3, d3 = e4.y - A2 - l3, v2 = e4[U.qlt] + 2 * A2 + 2 * l3, b2 = p2 = e4[U.Jlt] + 2 * A2 + 2 * l3, y2 = v2, C2 = -1 * A2 - l3, (w2 = d3 - (g2 = B(f3.y, d3)) + (w2 = A2)) <= 0 ? (b2 += w2, b2 += C2) : w2 < A2 && w2 > 0 && (b2 -= A2 - w2), (M2 = h3 - (m2 = B(f3.x, h3)) + (M2 = A2)) <= 0 ? (y2 += M2, y2 += C2) : M2 < A2 && M2 > 0 && (y2 -= A2 - M2), (S2 = a2.find(e4.name)) || ((S2 = new pt(u2.ev(e4.name), o2)).Yht = r2, a2.push(S2)), S2.GY = e4, S2.AW = t4, S2.IW = n3, T2 = new i2.Rect(f3.x, f3.y, f3[U.qlt], f3[U.Jlt]), S2.Dn(new i2.Rect(m2, g2, y2, b2).getIntersectRect(T2) || new i2.Rect(m2, g2, 0, 0), new i2.Rect(M2, w2, e4[U.qlt], e4[U.Jlt]));
              }));
            }
          }, t3;
        })(), mt = { getUsedRange: function(t3) {
          var n3, e3, r2;
          t3.type & i2.UsedRangeType.picture && (r2 = (e3 = (n3 = this).pictures) && e3.getUsedRange(), u(t3.range, r2));
        }, init: function() {
          var t3 = this, n3 = t3.cvt = [];
          t3.Vdt = function(t4) {
            n3.forEach((function(n4) {
              n4.Vnn && n4.Vnn(t4);
            }));
          }, t3.WL = t3.Ut.WL, t3.pictures = new ut(t3, "1"), t3.floatingObjects = new ut(t3, "0");
        }, dispose: function(t3) {
          var n3 = this;
          Mt(n3, t3.clearCache), n3.WL && i2.GC$.each(n3.WL.QP(), (function(n4, e3) {
            e3.L0(t3.clearCache);
          })), false !== t3.clearCache && (n3.pictures && (n3.pictures.L0(), n3.pictures = E), n3.floatingObjects && (n3.floatingObjects.L0(), n3.floatingObjects = E), n3.oht = E, n3.Vdt = E, n3.Gdt = E), n3.unbind(i2.Events.TableFiltered + U._NS), n3.unbind(i2.Events.RangeFiltered + U._NS), n3.unbind(i2.Events.FloatingElementSelected + U._NS);
        }, setHost: function(t3) {
          if (t3) {
            var n3 = this;
            n3.bind(i2.Events.FloatingElementSelected + U._NS, (function(t4, e3) {
              "floatingObject" !== e3.type && n3.Olt();
            }));
          }
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2;
          (A(t3.sheetArea) || 3 === t3.sheetArea) && (n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = this.WL, "addRows" === n3 ? Ct(a2, e3, i3) : "deleteRows" === n3 ? St(a2, e3, i3) : "addColumns" === n3 ? Tt(a2, r2, o2) : "deleteColumns" === n3 && xt(a2, r2, o2));
        }, paint: function(t3) {
          var n3 = this, e3 = t3.clipRect;
          n3.oht(e3);
        }, lastNonNullRowAndCol: function() {
          var t3 = 0, n3 = 0, e3 = this.WL;
          return e3 && e3.QP().forEach((function(e4) {
            e4 && (e4[U.zlt]() > t3 && (t3 = e4[U.zlt]()), e4[U.Vlt]() > n3 && (n3 = e4[U.Vlt]()));
          })), { lastNonNullRow: t3, lastNonNullCol: n3 };
        }, toJson: function(t3, n3) {
          var e3, i3 = n3 && n3.ignoreStyle;
          i3 || (e3 = this.WL.toJSON()).length > 0 && (t3.floatingObjects = e3);
        }, fromJson: function(t3, n3, e3) {
          var i3, r2, o2, a2 = e3 && e3.ignoreStyle;
          a2 || ((i3 = this).WL = new st(i3), i3.Ut.WL = i3.WL, i3.WL.isNeedToUpdateLayout = true, r2 = t3 && t3.floatingObjectArray, (o2 = n3 ? r2 && r2.floatingObjects : t3.floatingObjects) && i3.WL.fromJSON(o2, n3));
        }, preProcessMouseDown: function(t3) {
          var n3, e3, i3 = t3.e, r2 = this.uw(), o2 = i3.pageX - r2.left, a2 = i3.pageY - r2.top;
          !this.il && this.mnn && (e3 = (n3 = this.hitTest(o2, a2)) && n3.formulaRangeHitInfo) && (e3.inBorder || e3.inTopLeft || e3.inTopRight || e3.inBottomLeft || e3.inBottomRight) || this.Olt();
        }, processKeyDown: function(t3) {
          te(this.WL) && (t3.r = true);
        }, onGroupChanged: function(t3) {
          this.floatingObjects.Udt(t3.start, t3.end, t3.isRow), this.pictures.Udt(t3.start, t3.end, t3.isRow);
        }, processCompositionStart: function(t3) {
          te(this.WL) && (t3.r = true);
        }, preProcessKeyDown: function(t3) {
          var n3 = this.WL;
          n3 && ne(t3.e) && te(n3) && (t3.r = true);
        }, yh: function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = e3 && false === e3.includeStyles;
          s2 || (r2 = (i3 = this).WL, (o2 = t3.lossless && t3.lossless.floatingObjects) && i3.WL.fromJSON(o2), (a2 = c(t3, n3)) && (u2 = a2.rels, r2.yh(a2, u2, n3, e3)));
        }, onFilterChanged: function() {
          var t3, n3 = this.WL;
          n3 && (n3.isNeedToUpdateLayout = true);
        } }, i2.Worksheet.ch(U.bdt, mt), bt = { priority: 900, init: function() {
          i2.Commands.Rlt(this.commandManager());
        }, onCommandExecuting: function(t3) {
          var n3;
          t3.WL.QP().forEach((function(t4) {
            t4.isSelected(false);
          }));
        }, onCultureChanged: function() {
          S();
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = this, N2 = { type: "floatingObjects", saveOptions: e3, sheets: [] };
          if (i2.Workbook.et(k2, "getAdditionalWorksheetToSJSFormat", N2), r2 = k2.sheets.concat(N2.sheets), o2 = k2.mp) for (a2 = 0, u2 = o2; a2 < u2.length; a2++) s2 = u2[a2], e3 && e3.fileType === i2.OpenSaveFileType.excel && s2._gi === i2.SheetType.ganttSheet && (h2 = (c2 = s2.Mf).name() + "_Chart", (d2 = c2.pictures.get(h2)) && 0 !== d2.startRow() && (d2.Wlt = true, d2.startRow(0), d2.endRow(c2.getRowCount() - 1), d2.endRowOffset(0), d2.Wlt = false), r2.push(s2.Mf));
          for (v2 = 0; v2 < r2.length; v2++) {
            if (c2 = r2[v2], (p2 = y(t3, c2.name())).lossless || (p2.lossless = {}), m2 = (g2 = c2.pictures) && g2.all(), w2 = (b2 = c2.floatingObjects) && b2.all(), st.et(E, "toSJSFormat", { sheet: c2, sheetData: p2, data: t3, saveOptions: e3, sjsFileCountDict: k2.Cp }), m2 && m2.length > 0) {
              for (M2 = { c_: [] }, C2 = void 0, S2 = void 0, T2 = 0; T2 < m2.length; T2++) A2 = ";base64,", (I2 = (x2 = m2[T2]).src()) && I2.indexOf(A2) > 0 ? (C2 || (l(p2, k2.Cp), S2 = (C2 = f(t3, p2)).rels), bt.toSJSFormat_Picture(t3, x2, M2, S2)) : (p2.lossless.floatingObjects || (p2.lossless.floatingObjects = []), p2.lossless.floatingObjects.push(qt(x2)));
              M2.c_.length > 0 && (C2.c_ = M2.c_.concat(C2.c_));
            }
            if (w2 && w2.length > 0) for (p2.lossless.floatingObjects || (p2.lossless.floatingObjects = []), T2 = 0; T2 < w2.length; T2++) p2.lossless.floatingObjects.push(qt(w2[T2]));
          }
        }, toSJSFormat_Picture: function(t3, n3, e3, r2) {
          var o2 = i2.Util.Kr(n3.src(), r2, t3);
          e3._id = o2, n3.wh(e3), delete e3._id;
        } }, i2.Workbook.ch(U.bdt, bt), i2.GC$.extend(i2.Y8.prototype, { nvt: function(t3, n3, e3, i3) {
          var r2, o2 = this.G8;
          o2 && ((r2 = o2.floatingObjectChanges) || (r2 = o2.floatingObjectChanges = []), r2.push({ type: "property", floatingObject: t3, name: n3, value: e3, newValue: i3 }));
        }, zdt: function(t3) {
          var n3, e3, r2, o2, a2 = this.G8;
          a2 && ((n3 = a2.floatingObjectChanges) || (n3 = a2.floatingObjectChanges = []), e3 = {}, r2 = this.WL, i2.GC$.each(r2.vst, (function(t4, n4) {
            e3[t4] = n4;
          })), t3 ? (o2 = n3[n3.length - 1]).currentObjects = e3 : n3.push({ type: "collection", floatingObjects: e3 }));
        }, fvt: function(t3, n3) {
          var e3, i3, r2, o2;
          if (t3) for (i3 = (e3 = this).WL, r2 = function(r3) {
            var o3, a2, u2, s2, c2, f2, l2, h2 = t3[r3];
            "collection" === h2.type ? (o3 = n3 ? h2.currentObjects : h2.floatingObjects, a2 = i3.vst, i3.vst = {}, e3.Mf.suspendPaint(), e3.Mf.clearSelection(), T.y0(o3, (function(t4, n4) {
              if ("Object" === n4.constructor.name) {
                var r4 = a2[t4];
                r4 || (r4 = e3.floatingObjectFromJSON(n4, false, e3.Mf)), i3.ZP(r4);
              } else i3.ZP(n4);
            })), e3.Mf.resumePaint()) : "property" === h2.type && (u2 = ["startRow", "startRowOffset", "startColumn", "startColumnOffset", "endRow", "endRowOffset", "endColumn", "endColumnOffset"], s2 = "function" == typeof h2.floatingObject.name ? h2.floatingObject.name() : h2.floatingObject.name, c2 = i3.ev(s2), f2 = h2.name, l2 = n3 ? h2.newValue : h2.value, c2 && (c2.Wlt = true, c2[f2](l2), u2.indexOf(f2) >= 0 && (_t(c2), $t(c2), c2.sheet().zw()), c2.Wlt = false));
          }, o2 = t3.length - 1; o2 >= 0; o2--) r2(o2);
        }, floatingObjectFromJSON: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2 = void 0;
          return t3 && (r2 = void 0, o2 = t3.floatingObjectType, "0" === (a2 = i2.mt.T1(o2) ? o2 + "" : t3.typeName) ? s2 = new dt() : "1" === a2 ? s2 = dt.gdt() : (r2 = (0, i2.getTypeFromString)(a2)) && (s2 = new r2(e3)), s2 && (s2.fromJSON(t3, n3), u2 = t3.zIndex, A(u2) || (s2.tht = u2))), s2;
        } }), i2.Y8.ch(U.bdt, { init: function() {
          this.WL = new st(this.Mf);
        }, applyChanges: function(t3) {
          var n3 = t3.changes, e3 = t3.isUndo, i3 = n3 && n3.floatingObjectChanges;
          i3 && this.fvt(i3, !e3);
        }, undo: function(t3) {
          var n3 = t3.floatingObjectChanges;
          n3 && this.fvt(n3);
        }, dispose: function(t3) {
          var n3 = this, e3;
          false !== (t3 && t3.clearCache) && n3.WL && (n3.WL.L0(), n3.WL = E);
        } });
      }, "./dist/plugins/floatingObject/floatingobject.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/floatingObject/floatingobject.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/floatingObject/floatingobject.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_FloatingObjectNameEmptyError = n2.Exp_FloatingObjectHasSameNameError = void 0, n2.Exp_FloatingObjectHasSameNameError = "The current worksheet already has a floating object with the same name.", n2.Exp_FloatingObjectNameEmptyError = "Floating object must have name";
      }, "./dist/plugins/floatingObject/picture.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C = this && this.qKr || (S = function(t3, n3) {
          return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, S(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          S(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), S;
        function T(t3) {
          return "number" == typeof t3 && !isNaN(t3);
        }
        function x(t3) {
          var n3, e3, r2 = t3, o2 = r2.src(), a2 = r2.sheet();
          r2.MC || (r2.MC = new i2.Wh((function() {
            x(r2);
          }))), n3 = r2.MC;
          try {
            n3.getState(o2) ? (r2.cdt = true, e3 = n3.getImage(o2), r2.hvt = e3.width, r2.dvt = e3.height, r2.$dt && r2.$dt % 90 == 0 && (r2.udt = A(e3, e3.width, e3.height, r2.$dt)), r2.lvt && (r2.width(e3.width, true), r2.height(e3.height, true), r2.lvt = false), r2.ki({ sheet: a2, sheetName: a2.name(), picture: r2, propertyName: "originalSize" }), r2.isVisible() && a2 && a2.repaint()) : n3.addImage(o2);
          } catch (t4) {
          }
        }
        function A(t3, n3, e3, i3) {
          var r2, o2, a2 = n3, u2 = e3;
          return 90 !== i3 && 270 !== i3 || (a2 = e3, u2 = n3), (r2 = document.createElement("canvas")).width = a2, r2.height = u2, (o2 = r2.getContext("2d")).translate(a2 / 2, u2 / 2), o2.rotate(i3 / 180 * Math.PI), o2.translate(-a2 / 2, -u2 / 2), o2.drawImage(t3, 0, 0, n3, e3, (a2 - n3) / 2, (u2 - e3) / 2, n3, e3), o2.setTransform(1, 0, 0, 1, 0, 0), r2.toDataURL();
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Picture = void 0, i2 = e2("Core"), r = e2("./dist/plugins/floatingObject/floatingobject.js"), o = i2.mt.En, a = i2.mt.p0, u = i2.GC$, s = null, c = void 0, b = [f = "src", l = "backColor", d = "borderRadius", v = "borderWidth", p = "borderStyle", m = "noFill", g = "borderColor", h = "pictureStretch"], r.FloatingObject.gdt = function(t3, n3, e3, i3, r2, o2) {
          return new y(t3, n3, e3, i3, r2, o2);
        }, y = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = t3.call(this, n4, i3, r2, o2, a2) || this, c2 = u2;
            return c2.typeName = "1", c2.iht = "1", c2.MC = s, c2.cdt = false, c2.lvt = false, "string" == typeof e3 && (c2.lvt = !(T(o2) && T(a2)), c2.src(e3)), u2;
          }
          return C(n3, t3), n3.prototype.onPropertyChanged = function(t4, n4, e3) {
            var i3, r2 = this;
            r2.tvt || (i3 = r2.sheet()) && (i3.Ut.nvt(r2, t4, e3, n4), this.ki({ sheet: i3, sheetName: i3.name(), picture: r2, propertyName: t4 }));
          }, n3.prototype.toJSON = function() {
            var n4, e3, i3, o2 = this, a2 = t3.prototype.toJSON.call(this);
            return r.toJsonFn.call(o2, b, a2), a2.originalWidth = o2.getOriginalWidth(), a2.originalHeight = o2.getOriginalHeight(), o2.$dt && (a2.rot = o2.$dt), (n4 = o2.fdt) && (e3 = n4.left, i3 = n4.top, a2.srcRect = { l: e3, t: i3, r: 1 - e3 - n4.width, b: 1 - i3 - n4.height }), a2.isTakeOriginalSize = o2.lvt, delete a2.content, a2;
          }, n3.prototype.fromJSON = function(n4, e3, i3) {
            var o2, a2, u2, s2, f2;
            n4 && ((o2 = this).tvt = true, i3 && (a2 = T(n4.x) && T(n4.y) && T(n4.width) && T(n4.height)) && (n4.endRow = null, n4.endRowOffset = null, n4.endColumn = null, n4.endColumnOffset = null), t3.prototype.fromJSON.call(this, n4, e3), r.fromJsonFn.call(o2, b, n4, e3), n4.rot && (o2.$dt = n4.rot), o2.cdt = false, (u2 = n4.srcRect) && (s2 = u2.l, f2 = u2.t, o2.fdt = { left: s2, top: f2, width: 1 - s2 - u2.r, height: 1 - f2 - u2.b }), o2.lvt = n4.isTakeOriginalSize, x(o2), o2.tvt = c);
          }, n3.prototype.yh = function(t4, n4, e3) {
            this.fromJSON(t4, n4, e3);
          }, n3.prototype.clone = function() {
            var t4 = new n3(), e3 = JSON.stringify(this.toJSON());
            return t4.fromJSON(JSON.parse(e3)), t4;
          }, n3.prototype.getOriginalWidth = function() {
            return this.hvt;
          }, n3.prototype.getOriginalHeight = function() {
            return this.dvt;
          }, n3.prototype.vvt = function(t4) {
            var n4;
            return ["dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"].indexOf(t4) >= 0;
          }, n3.prototype.rvt = function(t4, n4) {
            var e3 = o("div");
            return u(e3).addClass("gc-floatingobject-content-container").addClass("gc-no-user-select").attr("unselectable", "on").css("position", "absolute"), this.evt(e3, t4, n4), e3;
          }, n3.prototype.ki = function(t4) {
            var n4, e3 = this.sheet();
            e3 && (e3.ki(i2.Events.PictureChanged, t4), "isSelected" === t4.propertyName && (n4 = { sheet: t4.sheet, sheetName: t4.sheetName, picture: t4.picture }, e3.ki(i2.Events.PictureSelectionChanged, n4)));
          }, n3.prototype.L0 = function(t4) {
            var n4 = this;
            n4.MC && false !== t4 && (n4.MC.L0(), n4.MC = s);
          }, n3;
        })(r.FloatingObject), n2.Picture = y, w = [[f, c, function(t3, n3) {
          var e3 = this;
          e3.cdt = false, x(e3), e3.srccallback || (e3.srccallback = (0, r.propertyRefreshCallback)(f)), e3.srccallback.call(e3, t3, n3);
        }], [l, s, (0, r.propertyRefreshCallback)(l)], [d, -1, (0, r.propertyRefreshCallback)(d), T], [v, 1, (0, r.propertyRefreshCallback)(v), T], [p, "none", function(t3, n3) {
          var e3 = this;
          e3.vvt(t3) || e3.borderWidth(0), e3.bscallback || (e3.bscallback = (0, r.propertyRefreshCallback)(p)), e3.bscallback.call(e3, t3, n3);
        }], [m, c], [g, s, (0, r.propertyRefreshCallback)(g)], [h, 0, (0, r.propertyRefreshCallback)(h)]], M = y.prototype, u.each(w, (function(t3, n3) {
          M[n3[0]] = a(n3[0], n3[1], n3[2], n3[3]);
        }));
      }, "./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3, n3, e3, r2, o2) {
          var a2, u2, s2, c2, f2 = n3.Ut, l2 = t3.Qvt(), h2 = i2.SheetArea.viewport;
          return l2 === i2.SheetArea.colHeader && o2 === i2.SheetArea.colHeader ? (u2 = e3) < (a2 = f2.getFreeAreaRowCount(i2.SheetArea.colHeader)) && (h2 = i2.SheetArea.colHeader) : l2 === i2.SheetArea.rowHeader && o2 === i2.SheetArea.rowHeader && (c2 = r2) < (s2 = f2.getFreeAreaColumnCount(i2.SheetArea.rowHeader)) && (h2 = i2.SheetArea.rowHeader), h2;
        }
        function v(t3, n3, e3, r2, o2, a2, u2, s2) {
          var c2 = t3.xA(n3, e3, n3, e3, u2, s2);
          return c2 = (0, i2.Ec)(c2.row, c2.col, 1, 1), a2 && r2 >= 0 && r2 >= 0 && (c2 = t3.xA(n3, e3, r2, o2, u2, s2)), c2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("CalcEngine"), o = e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), a = e2("Common"), u = a.Common.lt.ht, s = i2.GC$.extend, c = null, f = void 0, l = Math.max, h = Math.min, s(i2.nk.prototype, { Kvt: function(t3) {
          var n3, e3, a2, s2, c2, l2, h2, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F = this, B = F.Mf, P = F.Pde(), G = B.parent, U = G && 0 !== G.options.pivotAreaReference;
          P && (F.Gde(), e3 = B.frozenRowCount(), a2 = B.frozenColumnCount(), (s2 = P.XD) && F.Lvt || (F.Lvt = { anchorRow: -1, anchorCol: -1, leadingRow: -1, leadingCol: -1 }), c2 = B.getRowCount(), l2 = B.getColumnCount(), h2 = t3.hitTestType, p = t3.row, g = t3.col, m = F.shift, b = F.ctrl, P && P.Xvt && (P.Xvt === i2.SelectionUnit.row ? h2 = 2 : P.Xvt === i2.SelectionUnit.column && (h2 = 1)), w = (y = F.Lvt).anchorRow, M = y.anchorCol, C = -1, S = -1, x = d(P, B, p, g, h2), 0 === h2 ? (C = e3 ? B.N9() : B.Tb, S = a2 ? B.k9() : B.Ab, T = (0, i2.Ec)(-1, -1, -1, -1), P.Gvt((0, o.Uvt)(B, T), m, !b, f, x), F.rb = true) : 1 === h2 ? (x === i2.SheetArea.viewport ? (C = e3 ? B.N9() : B.Tb, S = g, T = B.xA(0, g, c2 - 1, g, true), m && M >= 0 && (T = B.xA(0, g, c2 - 1, M, true)), T = (0, i2.Ec)(-1, T.col, -1, T.colCount)) : x === i2.SheetArea.colHeader && (C = p, S = g, T = v(B, p, g, w, M, m, true, x)), (A = t3.tableSelectInfo && t3.tableSelectInfo.tableSelection) ? F.Dse(A, T, p, g, w, M, m, b, x) : P.Gvt((0, o.Uvt)(B, T, f, x), m, !b, f, x), F.rb = true) : 2 === h2 ? (C = p, S = a2 ? B.k9() : B.Ab, T = B.xA(p, 0, p, l2 - 1, true), m && w >= 0 && (T = B.xA(p, 0, w, l2 - 1, true)), T = (0, i2.Ec)(T.row, -1, T.rowCount, -1), P.Gvt((0, o.Uvt)(B, T), m, !b, f, x), F.rb = true) : 3 === h2 && (C = p, S = g, p !== f && g !== f && (I = t3.row, k = t3.col, j = (N = t3.pivotTableInfo) && N.getPivotInfoImp(I, k, false, true), A = t3.tableSelectInfo && t3.tableSelectInfo.tableSelection, D = void 0, _ = void 0, O = void 0, E = void 0, R = void 0, j && (D = j.area, _ = j.valueFieldName, O = j.rowInfos, E = j.colInfos, R = null === (n3 = null == O ? void 0 : O[O.length - 1]) || void 0 === n3 ? void 0 : n3.isBlankRow), !R && U && r.Functions.findGlobalFunction("GETPIVOTDATA") && !P.Ivt && N && j && 4 === D ? (P.Fvt = new i2.Range(I, k, 1, 1), u(_) || !O && !E ? F.Dse(A, T, p, g, w, M, m, b, x) : (L = F.Pvt(D, _, O, E, N.position())) && (P.Gvt(L, m, !b, true, x), F.rb = true, F.LD = true)) : (y && (y.Skr = p), F.Dse(A, T, p, g, w, M, m, b, x)))), F.Wk = F.rb, m && s2 || (y.anchorRow = C, y.anchorCol = S, y.leadingRow = C, y.leadingCol = S, y.sheetArea = x), F.Rk = { e9: t3.rowViewportIndex, r9: t3.colViewportIndex, Bk: t3.hitTestType }, F.Ok());
        }, Dse: function(t3, n3, e3, i3, r2, a2, u2, s2, c2) {
          var l2 = this, h2 = l2.Mf, d2 = this.Pde();
          delete d2.Fvt, n3 = t3 || v(h2, e3, i3, r2, a2, u2, true, c2), d2.Gvt((0, o.Uvt)(h2, n3, f, c2), u2, !s2, f, c2), l2.rb = true;
        }, Pvt: function(t3, n3, e3, r2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p, g, m, b, y, w = this, M = w.Mf;
          if (4 === t3) return s2 = void 0, c2 = void 0, f2 = "", l2 = u2.row, h2 = u2.col, d2 = (0, i2.Ec)(l2, h2, 1, 1), s2 = (0, o.Uvt)(M, d2, true), v2 = [], p = [], p = Array.isArray(e3) && Array.isArray(r2) ? e3.concat(r2) : Array.isArray(e3) && e3 || Array.isArray(r2) && r2, g = /\"/g, m = '""', p && p.forEach((function(t4) {
            "number" == typeof t4.fieldName ? v2.push(t4.fieldName) : v2.push('"' + t4.fieldName.replace(g, m) + '"'), "number" == typeof t4.itemName ? v2.push(t4.itemName) : v2.push('"' + t4.itemName.replace(g, m) + '"');
          })), b = a.Common.CultureManager.Fe().NumberFormat.listSeparator || ",", f2 = v2.join(b), y = 'GETPIVOTDATA("' + (c2 = n3.replace(g, m)) + '"' + b + s2, "" !== f2 && (y += b + f2), y + ")";
        }, qvt: function(t3) {
          var n3 = o.Hde.Ude();
          return !!n3 && n3.zde(t3);
        }, Qk: function() {
          var t3, n3, e3 = this, r2 = this.Pde(), o2 = e3.Rk, a2 = e3.Lvt;
          o2 && e3.rb && (t3 = o2.Bk, n3 = a2.sheetArea, r2 && r2.Xvt && (r2.Xvt === i2.SelectionUnit.row ? t3 = 2 : r2.Xvt === i2.SelectionUnit.column && (t3 = 1)), t3 === i2.SheetArea.viewport || n3 === i2.SheetArea.colHeader || n3 === i2.SheetArea.rowHeader ? e3.tmt() : 2 === t3 ? e3.nmt() : 1 === t3 && e3.emt());
        }, tmt: function() {
          var t3, n3, e3, i3, r2 = this, a2 = r2.Lvt, u2 = a2.anchorRow, s2 = a2.anchorCol, c2 = a2.sheetArea, l2 = r2.Q9(f, c2, true), h2 = r2.K9(f, c2, true);
          u2 >= 0 && s2 >= 0 && l2 >= 0 && h2 >= 0 && (n3 = (t3 = r2.Mf).xA(l2, h2, u2, s2, true, c2), (e3 = (0, o.Uvt)(t3, n3, f, c2)) && (i3 = r2.Pde(), r2.LD ? n3.equals(i3.Fvt) || (delete i3.Fvt, i3.Gvt(e3, true, true)) : i3.Gvt(e3, true, false))), r2.a9();
        }, nmt: function() {
          var t3, n3, e3, r2, a2 = this, u2 = a2.Lvt.anchorRow, s2 = a2.Q9();
          u2 >= 0 && s2 >= 0 && (n3 = (t3 = a2.Mf).xA(s2, 0, u2, t3.getColumnCount() - 1, true), n3 = (0, i2.Ec)(n3.row, -1, n3.rowCount, -1), (e3 = (0, o.Uvt)(t3, n3)) && (r2 = a2.Pde()).Gvt(e3, true, false)), a2.a9();
        }, emt: function() {
          var t3, n3, e3, r2, a2 = this, u2 = a2.Lvt.anchorCol, s2 = a2.K9();
          u2 >= 0 && s2 >= 0 && (n3 = (t3 = a2.Mf).xA(0, s2, t3.getRowCount() - 1, u2, true), n3 = (0, i2.Ec)(-1, n3.col, -1, n3.colCount), (e3 = (0, o.Uvt)(t3, n3)) && (r2 = a2.Pde()).Gvt(e3, true, false)), a2.a9();
        }, _D: function() {
          var t3, n3 = this;
          n3.l9(), n3.Rk = c, n3.rb = false, n3.Wk = false, (t3 = n3.Pde()).onRangeAppend && t3.onRangeAppend();
        }, Mk: function(t3) {
          var n3, e3, r2, a2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Mf, p = d2.Pde(), g = t3.formulaRangeHitInfo;
          g && g.inBorder && p && (p.XD && p.qD(), p.close(), e3 = (n3 = g.paramRange) && n3.text, r2 = u(n3.sheetArea) ? i2.SheetArea.viewport : n3.sheetArea, e3 && (a2 = (0, o.Vvt)(v2, e3)) && (d2.Gde(), s2 = v2.JS(a2, r2), c2 = t3.row, f2 = t3.col, c2 < s2.row && (c2 = s2.row), c2 >= s2.row + s2.rowCount && (c2 = s2.row + s2.rowCount - 1), f2 < s2.col && (f2 = s2.col), f2 >= s2.col + s2.colCount && (f2 = s2.col + s2.colCount - 1), l2 = c2 - s2.row, h2 = f2 - s2.col, d2.rb = true, d2.Kk = true, d2.imt = { paramRange: n3, fromRange: a2, rowOffset: l2, colOffset: h2, sheetArea: r2 }, d2.Rk = { e9: t3.rowViewportIndex, r9: t3.colViewportIndex, Bk: t3.hitTestType }, d2.Ok()));
        }, Jk: function() {
          var t3, n3, e3, r2, a2, u2, s2, c2, d2, v2, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j = this;
          j.rb && j.Kk && (n3 = (t3 = j.imt).sheetArea, e3 = j.Q9(f, n3, true), r2 = j.K9(f, n3, true), e3 >= 0 && r2 >= 0 && (a2 = t3.fromRange, u2 = t3.rowOffset, s2 = t3.colOffset, c2 = t3.toRow, d2 = t3.toCol, p = r2, (v2 = e3) === c2 && p === d2 || (t3.toRow = v2, t3.toCol = p, m = (g = j.Mf).getRowCount(n3), b = g.getColumnCount(n3), y = a2.row, w = a2.col, M = a2.rowCount, C = a2.colCount, m > (T = (S = g.Ut).getFreeAreaRowCount(n3)) && (m = T), b > (x = S.getFreeAreaColumnCount(n3)) && (b = x), A = y < 0 ? -1 : l(0, h(m - M, e3 - u2)), I = w < 0 ? -1 : l(0, h(b - C, r2 - s2)), (k = (0, o.Uvt)(g, (0, i2.Ec)(A, I, M, C), f, n3)) && (N = j.Pde()).Vde(t3.paramRange.index, k, true))), j.a9());
        }, ED: function() {
          var t3, n3 = this;
          n3.l9(), n3.rb = false, n3.Kk = false, n3.imt = c, (t3 = n3.Pde()).onRangeMoved && t3.onRangeMoved();
        }, Ck: function(t3) {
          var n3, e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Mf, p = d2.Pde(), g = t3.formulaRangeHitInfo;
          if (g && p && (p.XD && p.qD(), e3 = (n3 = g.paramRange) && n3.text, n3 && e3 && (i3 = (0, o.Vvt)(v2, e3)))) {
            if (d2.Gde(), r2 = i3.row, a2 = i3.row < 0 ? -1 : i3.row + i3.rowCount - 1, u2 = i3.col, s2 = i3.col < 0 ? -1 : i3.col + i3.colCount - 1, g.inTopLeft) c2 = a2, f2 = s2, l2 = r2, h2 = u2;
            else if (g.inTopRight) c2 = a2, f2 = u2, l2 = r2, h2 = s2;
            else if (g.inBottomLeft) c2 = r2, f2 = s2, l2 = a2, h2 = u2;
            else {
              if (!g.inBottomRight) return;
              c2 = r2, f2 = u2, l2 = a2, h2 = s2;
            }
            d2.rb = true, d2.Xk = true, d2.omt = { paramRange: n3, anchorRow: c2, anchorCol: f2, toRow: l2, toCol: h2, sheetArea: t3.hitTestType }, d2.Rk = { e9: t3.rowViewportIndex, r9: t3.colViewportIndex, Bk: t3.hitTestType }, d2.Ok();
          }
        }, Ik: function(t3, n3) {
          var e3 = this.Pde();
          return (!e3 || !e3.qMi) && (e3 && e3.Dvt() ? (this.Kvt(n3), true) : !!this.qvt(t3));
        }, qk: function() {
          var t3, n3, e3, r2, a2, s2, c2, d2, v2, p, g, m, b, y, w, M, C, S, T, x, A, I, k = this;
          k.rb && k.Xk && (t3 = k.omt, n3 = i2.SheetArea.viewport, t3 && !u(t3.sheetArea) && (n3 = t3.sheetArea), e3 = k.Q9(f, n3, true), r2 = k.K9(f, n3, true), e3 >= 0 && r2 >= 0 && (a2 = t3.anchorRow, s2 = t3.anchorCol, c2 = t3.toRow, d2 = t3.toCol, p = r2, (v2 = e3) === c2 && p === d2 || (t3.toRow = v2, t3.toCol = p, m = (g = k.Mf).getRowCount(n3), b = g.getColumnCount(n3), w = s2 < 0 ? b - 1 : s2, M = h(y = a2 < 0 ? m - 1 : a2, v2), C = h(w, p), S = l(y, v2) - M + 1, T = l(w, p) - C + 1, x = k.Pde(), (0 === M && S === m || x && x.Xvt === i2.SelectionUnit.column) && (M = -1, S = -1), (0 === C && T === b || x && x.Xvt === i2.SelectionUnit.row) && (C = -1, T = -1), A = t3.paramRange, (I = (0, o.Uvt)(g, (0, i2.Ec)(M, C, S, T), f, A.sheetArea)) && x.Vde(A.index, I, true))), k.a9());
        }, jD: function() {
          var t3, n3, e3 = this;
          e3.l9(), e3.rb = false, e3.Xk = false, e3.omt = c, (t3 = e3.Pde()).rl && (t3.umt = 1, -1 !== (n3 = t3.text().lastIndexOf(",", t3.caret())) && (t3.umt = n3 + 1)), t3.onRangeResized && t3.onRangeResized();
        }, ZL: function(t3, n3, e3) {
          var r2, a2, s2, f2, l2, h2, d2, v2, p, g, m, b, y, w, M, C = this.Mf, S = this.Pde(), T = S && S.smt();
          if (!T || 0 === T.length || !S.cmt) return c;
          if (r2 = t3.rowViewportIndex, a2 = t3.colViewportIndex, s2 = t3.hitTestType, this.yD(r2, a2, n3, e3)) return c;
          for (d2 = T.length - 1; d2 >= 0; d2--) if (v2 = (f2 = T[d2]).sheetArea, false !== f2.allowDrag && (u(v2) || v2 === s2) && !((p = o.Hde.Ude()) && p._text || (l2 = (0, o.Vvt)(C, f2.text), u(l2)))) {
            if (u(v2) && (v2 = i2.SheetArea.viewport), (g = C.Ut.findSpan(l2.row, l2.col, v2)) && g.containsRange(l2) && (l2 = g), m = 5, b = (h2 = C.getRangeRect(r2, a2, l2)).x - 2, y = h2.x + h2.width + 1 - m, w = h2.y - 2, M = h2.y + h2.height + 1 - m, b + m <= n3 && n3 < y && (w + 1 <= e3 && e3 <= w + 3 || M + 1 <= e3 && e3 <= M + 3)) return { paramRange: f2, inBorder: true };
            if (w + m <= e3 && e3 < M && (b + 1 <= n3 && n3 <= b + 3 || y + 1 <= n3 && n3 <= y + 3)) return { paramRange: f2, inBorder: true };
            if (y <= n3 && n3 < y + m && M <= e3 && e3 < M + m) return { paramRange: f2, inBottomRight: true };
            if (b <= n3 && n3 < b + m && M <= e3 && e3 < M + m) return { paramRange: f2, inBottomLeft: true };
            if (y <= n3 && n3 < y + m && w <= e3 && e3 < w + m) return { paramRange: f2, inTopRight: true };
            if (b <= n3 && n3 < b + m && w <= e3 && e3 < w + m) return { paramRange: f2, inTopLeft: true };
          }
          return c;
        }, Pde: function() {
          var t3 = this.Mf;
          return t3.il || t3.mnn || t3.Bde;
        }, Gde: function() {
          var t3 = this.Pde();
          t3 && t3.mmt();
        } });
      }, "./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges-render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        function s(t3, n3, e3, a2, s2, c) {
          var f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G = t3.Mf, U = G.rt, H = G.C6(e3, a2), V = c && c.smt(), z = V && V.length;
          if (!(z <= 0) && (f = t3.uO(e3, a2, s2))) {
            for (n3.save(), n3.rect(f.x, f.y, f.width, f.height), n3.clip(), n3.beginPath(), l = [], h = U.isFormulaRangeHovering, d = U.AD, v = U.Kk, p = U.imt, g = U.Xk, m = U.omt, T = 0; T < z; T++) if (("number" != typeof (S = (b = V[T]).sheetArea) || S === H) && (y = b.text, w = b.ranges && b.ranges.length > 0 ? b.ranges : [(0, o.Vvt)(G, y)])) {
              if ((x = o.Hde.Ude()) && x.Mf && void 0 !== y) {
                if (u.OS(y, "!")) {
                  if (A = u.gmt(y, "!"), G.name() !== A && "'" + G.name() + "'" !== A) continue;
                } else if (I = u.gmt(y, "["), k = G.tables, j = (N = G.NMi) && N._gi === i2.SheetType.tableSheet && N.name() === I, !(G.getCustomNames()[I] || k && k.findByName(I) || j)) continue;
              }
              for (M = t3.fO(e3, a2, w, f), D = 0; D < M.length; D++) (_ = M[D]) && _.width > 0 && _.height > 0 && (C = c.pmt(T), c.bmt(b) || b.isPivotClickCell ? (h && d.paramRange.index === T && (n3.beginPath(), n3.lineWidth = 2, n3.strokeStyle = C, n3.rect(_.x + 1, _.y + 1, _.width - 3, _.height - 3), n3.stroke()), t3.wO(n3, _, C)) : h && d.paramRange.index === T || v && p.paramRange.index === T || g && m.paramRange.index === T ? (n3.beginPath(), n3.lineWidth = 2, n3.strokeStyle = C, n3.rect(_.x + 1, _.y + 1, _.width - 3, _.height - 3), n3.stroke()) : (n3.beginPath(), n3.lineWidth = 2, n3.strokeStyle = C, n3.rect(_.x, _.y, _.width - 1, _.height - 1), n3.stroke()), c.ymt(b) && ((O = r.Common.ft._(C)).a = 0.1, n3.beginPath(), n3.fillStyle = r.Common.ft.j(O), n3.fillRect(_.x + 1, _.y + 1, _.width - 3, _.height - 3)), l.push({ rect: _, color: C, allowDrag: b.allowDrag }));
            }
            if (l.length > 0 && c.cmt) for (E = l.length, T = 0; T < E; T++) _ = l[T].rect, C = l[T].color, R = 5, L = _.x - 2, F = _.x + _.width + 1 - R, B = _.y - 2, P = _.y + _.height + 1 - R, false !== l[T].allowDrag && ((x = o.Hde.Ude()) && x._text || (n3.beginPath(), n3.fillStyle = C, n3.fillRect(L, B, R, R), n3.fillRect(F, B, R, R), n3.fillRect(L, P, R, R), n3.fillRect(F, P, R, R)));
            n3.beginPath(), n3.restore();
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), a = i2.GC$.extend, u = r.Common.zf, a(i2.g7.prototype, { Fde: function() {
          var t3, n3, e3 = this, i3 = e3.Mf;
          i3.My > 0 || (t3 = i3.Fi(), n3 = e3.J(), e3.FA(t3.x, t3.y, t3.width, t3.height), e3.jy(n3));
        } }), i2.Worksheet.ch("formulaReferencedRanges", { paintAdornment: function(t3) {
          var n3, e3, i3, r2 = this, o2 = t3.ctx, a2 = t3.clipRect, u2 = r2.Dn, c = r2.Fi(), f = r2.rt.Pde();
          if (f) for (e3 = -1; e3 <= 2; e3++) for (i3 = -1; i3 <= 2; i3++) -1 === e3 && -1 === i3 || (n3 = -1 === e3 ? c.L1(i3) : -1 === i3 ? c.B1(e3) : c.c9(e3, i3)) && 0 !== n3.width && 0 !== n3.height && s(u2, o2, e3, i3, a2, f);
        } });
      }, "./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        function c(t3, n3) {
          var e3, r2, o2, u2;
          if (!n3) return a;
          o2 = (r2 = (e3 = s.Ude()) && e3.Mf || t3).ui, u2 = r2.ci;
          try {
            return i2.formulaToRange(t3, n3, o2, u2, r2);
          } catch (t4) {
          }
          return a;
        }
        function f(t3, n3, e3, r2) {
          var u2, c2, f2, l2, d2, v2, p2, g, m, b, y, w, M, C, S;
          return void 0 === r2 && (r2 = o.SheetArea.viewport), n3 ? (u2 = t3.Bde, c2 = s.Ude(), f2 = c2 && c2.Mf || t3, l2 = f2.ui, d2 = f2.ci, p2 = (v2 = t3.parent) && 1 === v2.options.referenceStyle, g = 15, (u2 && u2.Ivt || e3) && (g = 0), n3.row < 0 && n3.col < 0 && (n3 = new o.Range(0, -1, t3.getRowCount(), -1)), m = d2, b = t3.tables, y = b && b.find(n3.row, n3.col), w = function() {
            var t4, e4 = f2.tables;
            return e4 && ((t4 = e4.find(l2, m)) || (t4 = e4.find(l2, m - 1))), t4 !== y && y && t4 && t4.xkr(l2, m) && 1 === n3.rowCount && 1 === n3.colCount && y.$Gr(n3.row, n3.col) || 1 === n3.rowCount && 1 === n3.colCount && y && y.xkr(l2, m) ? n3.row : l2;
          }, (c2 && c2.Ivt || e3) && (g = 0), u2 && (!u2.rl || u2.lBe) && i2.isStructureReference(y, n3, w()) ? ((c2 && c2._text && c2.Mf !== t3 || u2.lBe) && (d2 = -1), i2.rangeToFormulaWithStructReference(t3, n3, w(), d2, g, p2, y)) : (M = t3.NMi, !y && r2 === o.SheetArea.viewport && M && M._gi === o.SheetType.tableSheet ? (y = M, h(t3, n3.col, n3.colCount, y)) : (C = i2.rangeToFormula(n3, l2, d2, g, p2), (c2 && c2._text || u2 && u2.rl && u2.Smt) && (C = (S = (0, o.qTe)(t3.name())) + "!" + C), C))) : a;
        }
        function l(t3) {
          return t3 && "[" === t3[0] && "]" === t3[t3.length - 1];
        }
        function h(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2 = d(i3), c2 = s2.columns, f2 = s2.groupInfo, h2 = i3.name();
          if (-1 === n3 && (n3 = 0), -1 === e3 && (e3 = c2.length), f2) {
            if (r2 = f2.rightGroupColumnIndex, 1 === e3 && n3 <= r2) return "";
            if (e3 > 1 && n3 <= r2) {
              if (n3 + e3 <= r2 + 1) return "";
              e3 -= r2 - n3 + 1, n3 = r2 + 1;
            }
          }
          return 1 === e3 ? "".concat(h2, "[").concat(c2[n3].name, "]") : e3 > 1 ? (o2 = n3 + e3 - 1, l(a2 = c2[n3].name) || (a2 = "[".concat(a2, "]")), l(u2 = c2[o2].name) || (u2 = "[".concat(u2, "]")), "".concat(h2, "[").concat(a2, ":").concat(u2, "]")) : "";
        }
        function d(t3) {
          for (var n3, e3, i3, r2 = [], o2 = 0, s2 = ""; s2 !== a; ) s2 = t3.getColumnName(o2), e3 = void 0, t3.Mf.NMi && (e3 = t3.FDi(o2)) && (n3 = o2), o2++, s2 !== a && r2.push({ name: s2, description: "", isGroupColumn: e3 });
          return i3 = { columns: r2 }, u(n3) || (i3.groupInfo = { rightGroupColumnIndex: n3 }), i3;
        }
        function v(t3, n3, e3, i3, r2) {
          var o2 = t3.rowRelative, a2 = t3.columnRelative, u2 = t3.endRowRelative, s2 = t3.endColumnRelative;
          t3.isFullColumn && (o2 = true, u2 = true), t3.isFullRow && (a2 = true, s2 = true), i3 && (o2 && a2 ? (t3.rowRelative = false, t3.columnRelative = false, t3.row += n3, t3.column += e3) : o2 ? (t3.columnRelative = true, t3.column -= e3) : a2 ? (t3.rowRelative = true, t3.columnRelative = false, t3.row -= n3, t3.column += e3) : (t3.columnRelative = true, t3.column -= e3)), r2 && (u2 && s2 ? (t3.endRowRelative = false, t3.endColumnRelative = false, t3.endRow += n3, t3.endColumn += e3) : u2 ? (t3.endColumnRelative = true, t3.endColumn -= e3) : s2 ? (t3.endRowRelative = true, t3.endColumnRelative = false, t3.endRow -= n3, t3.endColumn += e3) : (t3.endColumnRelative = true, t3.endColumn -= e3));
        }
        function p(t3, n3, e3) {
          var i3 = t3.rowRelative, r2 = t3.columnRelative;
          i3 && r2 ? (t3.rowRelative = false, t3.columnRelative = false, t3.row += n3, t3.column += e3) : i3 ? (t3.columnRelative = true, t3.column -= e3) : r2 ? (t3.rowRelative = true, t3.columnRelative = false, t3.row -= n3, t3.column += e3) : (t3.columnRelative = true, t3.column -= e3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.dmt = n2.lmt = n2.Uvt = n2.Vvt = n2.Hde = void 0, i2 = e2("SheetsCalc"), r = e2("Common"), o = e2("Core"), a = null, u = r.Common.lt.ht, s = (function() {
          function t3() {
          }
          return t3.Ude = function() {
            return t3.DJ;
          }, t3;
        })(), n2.Hde = s, n2.Vvt = c, n2.Uvt = f, n2.lmt = v, n2.dmt = p, o.GC$.extend(o.Hv.prototype, { C2: function(t3) {
          return !t3 || !t3.Bde || !t3.Bde.Dvt();
        }, D2: function(t3) {
          return !t3 || !t3.Bde || !!t3.Bde.xmt;
        } });
      }, "./dist/plugins/formulaTextbox/formulaTextBox.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), u = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || a(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.findControl = void 0, i2 = e2("Core"), u(e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), n2), e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges-event.js"), e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges-render.js"), u(e2("./dist/plugins/formulaTextbox/formulatextbox.js"), n2), u(e2("./dist/plugins/formulaTextbox/formulatextbox-acrosssheet.js"), n2), e2("./dist/plugins/formulaTextbox/formulatextbox-event.js"), e2("./dist/plugins/formulaTextbox/formulatextbox-render.js"), e2("./dist/plugins/formulaTextbox/formulatextbox-actions.js"), r = e2("./dist/plugins/formulaTextbox/formulatextbox.js"), o = function(t3) {
          return "string" == typeof t3 && (t3 = document.getElementById(t3)), (0, i2.GC$)(t3).data(r.CONST_FORMULATEXTBOX);
        }, n2.findControl = o;
      }, "./dist/plugins/formulaTextbox/formulatextbox-acrosssheet.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l;
        function h(t3) {
          var n3 = i2.mt.En("textarea"), e3 = (0, i2.GC$)(n3);
          return e3.css({ display: "none" }), (0, i2.GC$)(t3).append(n3), n3;
        }
        function d(t3, n3) {
          if (t3 && t3.il) {
            var e3 = t3.il.Kmt, r2 = t3.il.Jmt, o2;
            o2 = n3 ? "addClass" : "removeClass", e3 && (0, i2.GC$)(e3)[o2](a), r2 && (0, i2.GC$)(r2)[o2](a);
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.wvt = n2.Mvt = void 0, i2 = e2("Core"), r = e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), o = e2("./dist/plugins/formulaTextbox/formulatextbox.js"), a = "gc-across-sheet-func-popup", u = null, s = void 0, n2.Mvt = h, c = (function() {
          function t3() {
            var t4 = this;
            t4.bZ = -1, t4.mvt = -1, t4._text = "", t4.gvt = -1, t4.Mf = null, t4.XD = false, t4.pvt = -1, t4.bvt = null, t4.Vv = null, t4.yvt = null;
          }
          return t3.prototype.d5 = function() {
            var t4 = this;
            t4.Cvt(), t4.bZ = -1, t4.mvt = -1, t4._text = "", t4.gvt = -1, t4.XD = false, t4.pvt = -1, t4.Mf = null, t4.Vv = null, t4.yvt = null;
          }, t3.prototype.Cvt = function() {
            var t4, n3, e3 = this;
            e3.Mf.xT || (t4 = e3.Mf.getCellType(e3.bZ, e3.mvt), n3 = { sheet: e3.Mf, row: e3.bZ, col: e3.mvt, sheetArea: 3 }, e3.bvt && e3.bvt.firstChild && t4.deactivateEditor(e3.bvt.firstChild.firstChild, n3)), (0, i2.GC$)(e3.bvt).remove(), e3.bvt = null;
          }, t3.prototype.Svt = function(t4) {
            var n3, e3 = this, r2 = t4.il;
            r2 && (n3 = t4.vA, e3._text = r2.text(), e3.bZ = n3 ? n3.row : t4.getActiveRowIndex(), e3.mvt = n3 ? n3.col : t4.getActiveColumnIndex(), e3.nT = n3 ? n3.sheetArea : i2.SheetArea.viewport, e3.gvt = r2.caret(), e3.XD = r2.XD, e3.pvt = r2.Tvt(), e3.rl = r2.rl, e3.Avt = r2.Avt, e3.Ivt = r2.Ivt, e3.Mf = t4, e3.Vv = t4.parent, e3.yvt = t4.rt.it());
          }, t3.prototype._6 = function(t4) {
            var n3 = this;
            t4.il && n3.Mf && (n3._text = t4.il.text(), n3.gvt = t4.il.caret(), n3.XD = t4.il.XD, n3.pvt = t4.il.Tvt());
          }, t3.prototype.xvt = function(t4) {
            var n3 = this, e3 = t4.il;
            e3 && (e3.rl = n3.rl, e3.Avt = n3.Avt, e3.Ivt = n3.Ivt, e3.text(n3._text), e3.caret(n3.gvt), n3.XD && (e3.Nvt(), e3.Tvt(n3.pvt)));
          }, t3.prototype.kvt = function(t4) {
            var n3, e3 = null == t4 ? void 0 : t4.oldSheet, i3 = this, r2 = e3 && e3.il;
            if (r2) if (r2.close(), (!i3.Mf || i3.Mf.xT) && r2.Dvt() || i3.Avt !== r2.Avt) {
              i3.Svt(e3), n3 = e3.getValue(i3.bZ, i3.mvt, i3.nT), e3.suspendEvent();
              try {
                if (!e3.endEdit(true, false)) return;
              } finally {
                e3.resumeEvent();
              }
              e3.setValue(i3.bZ, i3.mvt, n3, i3.nT, true), e3.Di = 1, t4.needTriggerSheetChange = false;
            } else i3._text && (i3._6(e3), r2.destroy(), e3.il = u, e3.Bde = u, t4.needTriggerSheetChange = false);
          }, t3.prototype._vt = function(t4) {
            var n3, e3, r2, a2, s2, c2 = null == t4 ? void 0 : t4.oldSheet, f2 = null == t4 ? void 0 : t4.newSheet, l2 = this;
            if (f2 && !f2.xT) {
              if (l2.bvt && "" === l2._text && (c2 && c2.cR(), d(f2, false), l2.d5()), l2._text && l2.Mf === f2) f2.Di = 0, f2.Zg(), f2.suspendEvent(), l2.rl ? (n3 = h(f2.parent.Ti), (0, o.Evt)(f2, n3, u, f2.ui, f2.ci, 3), f2.Di = 2, f2.Dn.ID()) : (e3 = void 0, r2 = void 0, l2.nT === i2.SheetArea.rowHeader ? (e3 = 1, r2 = -1) : l2.nT === i2.SheetArea.colHeader && (e3 = -1, r2 = 1), f2.f6(f2.Dg(), l2.bZ, l2.mvt, e3, r2, false)), f2.resumeEvent(), l2.xvt(f2), l2.GG(f2, l2.bZ, l2.mvt, l2.nT), c2 && c2.cR(), d(f2, false), l2.d5();
              else if (l2._text && !l2.bvt) {
                if (f2.Di = 1, c2 && (c2.Di = 1), l2.jvt(f2), d(f2, true), !l2.Mf || l2.Mf.xT) return;
                f2.e4();
              } else if (l2._text && l2.Mf !== f2) {
                if (f2.Di = 1, c2 && (c2.Di = 1, c2.cR()), l2.jvt(f2), d(f2, true), !l2.Mf || l2.Mf.xT) return;
                f2.e4();
              }
              (a2 = l2.Mf) && (s2 = f2.il) && (s2.U6 = a2 !== f2);
            }
          }, t3.prototype.jvt = function(t4) {
            var n3, e3, r2, a2, c2, f2, l2, h2, d2, v, p, g, m = this, b = m.Mf;
            b && !b.xT && (n3 = m.bZ, e3 = m.mvt, r2 = m.nT, a2 = b.getCellType(n3, e3, r2), c2 = { sheet: b, row: n3, col: e3, sheetArea: r2, canvasOffset: this.yvt }, ((f2 = a2.isImeAware(c2)) || r2 !== i2.SheetArea.viewport) && (t4.Di = 1, l2 = a2.jn(c2), m.bvt && m.Cvt(), h2 = void 0, d2 = void 0, m.nT === i2.SheetArea.rowHeader ? (h2 = 1, d2 = -1) : m.nT === i2.SheetArea.colHeader && (h2 = -1, d2 = 1), m.bvt = l2, (0, i2.GC$)(l2).css("position", "absolute"), (v = b.getCellRect(n3, e3, h2, d2)).width === s && (v.width = 0), v.height === s && (v.height = 0), (0, i2.GC$)(l2).attr("id", "across"), (0, i2.GC$)(l2).addClass("gc-across-sheet-ftb"), p = b.getActualStyle(n3, e3, r2), a2.On(l2, p, v, c2), (g = m.Vv && m.Vv.getHost() || document.body).insertBefore(l2, u), m.rl && (0, i2.GC$)(l2).css({ display: "none" }), (0, o.Evt)(t4, a2.getEditingElement(), true, t4.ui, t4.ci, 3), l2.firstChild && !m.rl && a2.focus(l2.firstChild.firstChild), m.xvt(t4), a2.Rn(l2, p, v, c2)));
          }, t3.prototype.GG = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2;
            r2 === i2.SheetArea.rowHeader ? a2 = -1 : r2 === i2.SheetArea.colHeader && (o2 = -1), u2 = t4.getCellType(n3, e3, r2), s2 = t4.li, c2 = t4.Fi(), f2 = t4.getActualStyle(n3, e3, r2), l2 = t4.getCellRect(n3, e3, o2, a2), h2 = false, r2 === i2.SheetArea.rowHeader ? h2 = l2.x >= c2.x && l2.y >= c2.y + c2.qC && l2.x + l2.width <= c2.Py && l2.y + l2.height <= c2.Ay + c2.Iy : r2 === i2.SheetArea.colHeader ? h2 = l2.x >= c2.x + c2.XC && l2.y >= c2.y && l2.x + l2.width <= c2.Hy + c2.zy && l2.y + l2.height <= c2.Cy : r2 === i2.SheetArea.viewport && (h2 = l2.x >= c2.b6 && l2.y >= c2.T6 && l2.x + l2.width <= c2.Hy + c2.zy && l2.y + l2.height <= c2.Ay + c2.Iy), l2 && l2.width > 0 && l2.height > 0 && h2 && (d2 = { sheet: t4, row: n3, col: e3, sheetArea: r2 }, s2 && s2.parentNode && u2.Rn(s2.parentNode.parentNode, f2, l2, d2));
          }, t3.prototype.zde = function(t4) {
            var n3, e3, r2, o2 = this;
            if (!o2.bvt) return false;
            if (n3 = false, e3 = o2.Mf, (r2 = t4.il) && e3.setFormula(o2.bZ, o2.mvt, r2.text()), e3 !== t4) {
              if (i2.Commands.VA.Yvt(e3), !e3.endEdit()) return;
              n3 = true;
            } else r2 && (r2.destroy(), t4.il = u, t4.Bde = u), o2.d5();
            return n3;
          }, t3;
        })(), f = (function() {
          function t3() {
          }
          return t3.Ovt = function(n3, e3) {
            t3.Rvt || (t3.Rvt = new c()), t3.Rvt.kvt(e3);
          }, t3.Bvt = function(n3, e3) {
            t3.Rvt || (t3.Rvt = new c()), t3.Rvt._vt(e3);
          }, t3;
        })(), n2.wvt = f, l = r.Hde.Ude, r.Hde.Ude = function() {
          return l() || f.Rvt;
        };
      }, "./dist/plugins/formulaTextbox/formulatextbox-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        function l(t3) {
          var n3, e3 = t3.il, i3 = t3.rt;
          return n3 = e3.XD && i3.Lvt ? i3.Lvt : i3.Lvt = { anchorRow: t3.ui, anchorCol: t3.ci, leadingRow: t3.qA, leadingCol: t3.hR };
        }
        function h(t3, n3, e3, r2, o2) {
          var a2, s2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2 = t3.il, O2 = t3.parent, E2 = O2 && O2.options;
          if (_2 && _2.Dvt() && E2 && E2.allowUserEditFormula && E2.enableFormulaTextbox) {
            switch (f2 = (s2 = l(t3)).anchorRow, h2 = s2.anchorCol, d2 = s2.leadingRow, v2 = s2.leadingCol, c(r2) && (r2 = f2), c(o2) && (o2 = h2), p2 = t3.rt, n3) {
              case 3:
                w2 = t3.sI(r2, o2, e3, d2);
                break;
              case 4:
                w2 = t3.uI(r2, o2, e3, d2);
                break;
              case 1:
                w2 = t3.lR(r2, o2, e3, v2);
                break;
              case 2:
                w2 = t3.gR(r2, o2, e3, v2);
                break;
              case 5:
                w2 = t3.yR();
                break;
              case 6:
                w2 = t3.bR();
            }
            w2 && (g2 = w2.row, m2 = w2.col, b2 = w2.leadingCellRow ? w2.leadingCellRow : g2, y2 = w2.leadingCellCol ? w2.leadingCellCol : m2, t3.dR(g2, m2) && (s2.anchorRow = g2, s2.anchorCol = m2, s2.leadingRow = b2, s2.leadingCol = y2, M2 = t3.pivotTables && t3.pivotTables.findPivotTable(b2, y2), C2 = _2.shift, S2 = _2.ctrl, (T2 = M2 && M2.getPivotInfoImp(b2, y2, false, true)) && (x2 = T2.area, A2 = T2.valueFieldName, I2 = T2.rowInfos, k2 = T2.colInfos, N2 = null === (a2 = null == I2 ? void 0 : I2[I2.length - 1]) || void 0 === a2 ? void 0 : a2.isBlankRow), !N2 && !_2.Ivt && M2 && T2 && 4 === x2 ? (_2.Fvt = new i2.Range(b2, y2, 1, 1), (I2 || k2) && (j2 = t3.rt.Pvt(x2, A2, I2, k2, M2.position())) && (_2.Gvt(j2, C2, !S2, true), _2.rb = false)) : (delete _2.Fvt, (D2 = (0, u.Uvt)(p2.Mf, (0, i2.Ec)(g2, m2, 1, 1))) && _2.Gvt(D2, false, true)), g2 >= 0 && m2 >= 0 && t3.OA(g2, m2)));
          }
        }
        function d(t3, n3) {
          if (t3) {
            if (2 === t3.Di) return false;
            t3.options.rightToLeft && (3 === n3 ? n3 = 4 : 4 === n3 && (n3 = 3));
            var e3 = t3.il;
            return e3 && e3.Dvt() ? (h(t3, n3, false), true) : (e3 && (t3 = f.Hvt(t3)), t3.G5(n3, false), true);
          }
          return false;
        }
        function v(t3, n3, e3, i3) {
          if (t3) {
            if (2 === t3.Di) return false;
            t3.options.rightToLeft && (3 === n3 ? n3 = 4 : 4 === n3 && (n3 = 3));
            var r2 = t3.il;
            return r2 && r2.Dvt() ? (h(t3, n3, false, e3, i3), true) : (r2 && (t3 = f.Hvt(t3)), t3.G5(n3, false, e3, i3), true);
          }
          return false;
        }
        function p(t3, n3, e3) {
          var r2, o2, a2, s2, c2, f2, h2, d2, v2 = t3.il, p2 = t3.parent, g2 = p2 && p2.options;
          v2 && v2.Dvt() && g2 && g2.allowUserEditFormula && g2.enableFormulaTextbox && (r2 = t3.rt, a2 = (o2 = l(t3)).anchorRow, s2 = o2.anchorCol, v2.XD ? (f2 = v2.zvt(), c2 = (0, u.Vvt)(t3, f2.text)) : c2 = (0, i2.Ec)(a2, s2, 1, 1), c2 && (h2 = t3.HR(c2, n3, e3, a2, s2), (d2 = (0, u.Uvt)(r2.Mf, h2)) && v2.Gvt(d2, true, false)));
        }
        function g(t3, n3, e3) {
          if (t3) {
            if (2 === t3.Di) return false;
            t3.options.rightToLeft && (37 === n3 ? n3 = 39 : 39 === n3 && (n3 = 37));
            var i3 = t3.il;
            return i3 && i3.Dvt() ? (p(t3, n3, e3), true) : (i3 && (t3 = f.Hvt(t3)), !!t3.endEdit() && (t3.HA(n3, e3), true));
          }
          return false;
        }
        function m(t3, n3, e3) {
          return null !== t3.getValue(n3, e3) || t3.isReportTemplateSheet && !!t3.getTemplateCell(n3, e3);
        }
        function b(t3, n3, e3) {
          for (var i3 = e3, r2 = 0; e3 >= 0; ) {
            if (t3.getRowVisible(e3)) {
              if (!m(t3, e3, n3)) {
                e3++;
                break;
              }
              i3 = e3;
            }
            e3--;
          }
          return e3 < 0 && (e3 = 0), t3.getRowVisible(e3) ? e3 : i3;
        }
        function y(t3, n3, e3) {
          for (var i3 = e3, r2 = 0; e3 >= 0 && (!t3.getRowVisible(e3) || (i3 = e3, !m(t3, e3, n3))); ) e3--;
          return e3 < 0 && (e3 = 0), t3.getRowVisible(e3) ? e3 : i3;
        }
        function w(t3, n3, e3) {
          for (var i3 = e3, r2 = t3.getRowCount(); e3 < r2; ) {
            if (t3.getRowVisible(e3)) {
              if (!m(t3, e3, n3)) {
                e3--;
                break;
              }
              i3 = e3;
            }
            e3++;
          }
          return e3 >= r2 && (e3 = r2 - 1), t3.getRowVisible(e3) ? e3 : i3;
        }
        function M(t3, n3, e3) {
          for (var i3 = e3, r2 = t3.getRowCount(); e3 < r2 && (!t3.getRowVisible(e3) || (i3 = e3, !m(t3, e3, n3))); ) e3++;
          return e3 >= r2 && (e3 = r2 - 1), t3.getRowVisible(e3) ? e3 : i3;
        }
        function C(t3, n3, e3) {
          for (var i3 = e3, r2 = 0; e3 >= 0; ) {
            if (t3.getColumnVisible(e3)) {
              if (!m(t3, n3, e3)) {
                e3++;
                break;
              }
              i3 = e3;
            }
            e3--;
          }
          return e3 < 0 && (e3 = 0), t3.getColumnVisible(e3) ? e3 : i3;
        }
        function S(t3, n3, e3) {
          for (var i3 = e3, r2 = 0; e3 >= 0 && (!t3.getColumnVisible(e3) || (i3 = e3, !m(t3, n3, e3))); ) e3--;
          return e3 < 0 && (e3 = 0), t3.getColumnVisible(e3) ? e3 : i3;
        }
        function T(t3, n3, e3) {
          for (var i3 = e3, r2 = t3.getColumnCount(); e3 < r2; ) {
            if (t3.getColumnVisible(e3)) {
              if (!m(t3, n3, e3)) {
                e3--;
                break;
              }
              i3 = e3;
            }
            e3++;
          }
          return e3 >= r2 && (e3 = r2 - 1), t3.getColumnVisible(e3) ? e3 : i3;
        }
        function x(t3, n3, e3) {
          for (var i3 = e3, r2 = t3.getColumnCount(); e3 < r2 && (!t3.getColumnVisible(e3) || (i3 = e3, !m(t3, n3, e3))); ) e3++;
          return e3 >= r2 && (e3 = r2 - 1), t3.getColumnVisible(e3) ? e3 : i3;
        }
        function A(t3, n3, e3) {
          var i3, r2 = 0, o2 = m(t3, n3, e3), a2 = n3, u2 = e3;
          if (u2 - 1 < r2) return { row: a2, col: u2 };
          for (u2--; u2 >= r2 && !t3.getColumnVisible(u2); ) u2--;
          return u2 < 0 ? { row: a2, col: 0 } : { row: a2, col: u2 = (i3 = o2 && m(t3, a2, u2)) ? C(t3, a2, u2) : S(t3, a2, u2) };
        }
        function I(t3, n3, e3) {
          var i3, r2 = t3.getColumnCount(), o2 = r2, a2 = m(t3, n3, e3), u2 = n3, s2 = e3;
          if (s2 + 1 >= o2) return { row: u2, col: s2 };
          for (s2++; s2 < o2 && !t3.getColumnVisible(s2); ) s2++;
          return s2 >= r2 ? { row: u2, col: r2 - 1 } : { row: u2, col: s2 = (i3 = a2 && m(t3, u2, s2)) ? T(t3, u2, s2) : x(t3, u2, s2) };
        }
        function k(t3, n3, e3) {
          var i3, r2 = 0, o2 = m(t3, n3, e3), a2 = n3, u2 = e3;
          if (a2 - 1 < r2) return { row: a2, col: u2 };
          for (a2--; a2 >= r2 && !t3.getRowVisible(a2); ) a2--;
          return a2 < 0 ? { row: 0, col: u2 } : { row: a2 = (i3 = o2 && m(t3, a2, u2)) ? b(t3, u2, a2) : y(t3, u2, a2), col: u2 };
        }
        function N(t3, n3, e3) {
          var i3, r2 = t3.getRowCount(), o2 = m(t3, n3, e3), a2 = t3.getRowCount(), u2 = n3, s2 = e3;
          if (u2 + 1 >= r2) return { row: u2, col: s2 };
          for (u2++; u2 < r2 && !t3.getRowVisible(u2); ) u2++;
          return u2 >= a2 ? { row: a2 - 1, col: s2 } : { row: u2 = (i3 = o2 && m(t3, u2, s2)) ? w(t3, s2, u2) : M(t3, s2, u2), col: s2 };
        }
        function j(t3, n3, e3, r2, o2) {
          var a2, s2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, j2, D2, _2, O2, E2 = t3.il, R2 = t3.parent, L2 = R2 && R2.options;
          if (E2 && E2.Dvt() && L2 && L2.allowUserEditFormula && L2.enableFormulaTextbox) {
            switch (f2 = (null == (s2 = l(t3)) ? void 0 : s2.anchorRow) || 0, h2 = (null == s2 ? void 0 : s2.anchorCol) || 0, c(r2) && (r2 = f2), c(o2) && (o2 = h2), d2 = t3.rt, n3) {
              case 3:
                b2 = A(t3, r2, o2);
                break;
              case 4:
                b2 = I(t3, r2, o2);
                break;
              case 1:
                b2 = k(t3, r2, o2);
                break;
              case 2:
                b2 = N(t3, r2, o2);
            }
            b2 && (v2 = b2.row, p2 = b2.col, g2 = b2.leadingCellRow ? b2.leadingCellRow : v2, m2 = b2.leadingCellCol ? b2.leadingCellCol : p2, t3.dR(v2, p2) && (s2.anchorRow = v2, s2.anchorCol = p2, s2.leadingRow = g2, s2.leadingCol = m2, y2 = t3.pivotTables && t3.pivotTables.findPivotTable(g2, m2), w2 = E2.shift, M2 = E2.ctrl, (C2 = y2 && y2.getPivotInfoImp(g2, m2, false, true)) && (S2 = C2.area, T2 = C2.valueFieldName, x2 = C2.rowInfos, j2 = C2.colInfos, D2 = null === (a2 = null == x2 ? void 0 : x2[x2.length - 1]) || void 0 === a2 ? void 0 : a2.isBlankRow), !D2 && !E2.Ivt && y2 && C2 && 4 === S2 ? (E2.Fvt = new i2.Range(g2, m2, 1, 1), (x2 || j2) && (_2 = t3.rt.Pvt(S2, T2, x2, j2, y2.position())) && (E2.Gvt(_2, w2, !M2, true), E2.rb = false)) : (delete E2.Fvt, (O2 = (0, u.Uvt)(d2.Mf, (0, i2.Ec)(v2, p2, 1, 1))) && E2.Gvt(O2, false, true)), v2 >= 0 && p2 >= 0 && t3.OA(v2, p2)));
          }
        }
        function D(t3, n3, e3, i3) {
          if (t3) {
            if (2 === t3.Di) return false;
            t3.options.rightToLeft && (3 === n3 ? n3 = 4 : 4 === n3 && (n3 = 3));
            var r2 = t3.il;
            return r2 && r2.Dvt() ? (j(t3, n3, false, e3, i3), true) : (r2 && (t3 = f.Hvt(t3)), t3.G5(n3, false, e3, i3), true);
          }
          return false;
        }
        function _(t3, n3) {
          var e3;
          return e3 = n3 === t3.row || -1 === t3.row && 0 === n3 ? 0 : n3 === t3.row + t3.rowCount - 1 || -1 === t3.row && n3 === t3.rowCount - 1 ? 2 : 1;
        }
        function O(t3, n3) {
          var e3;
          return e3 = n3 === t3.col || -1 === t3.col && 0 === n3 ? 0 : n3 === t3.col + t3.colCount - 1 || -1 === t3.col && n3 === t3.colCount - 1 ? 2 : 1;
        }
        function E(t3, n3) {
          var e3, i3, r2, o2 = t3.getSpans(n3), a2 = n3;
          for (e3 = 0, i3 = o2; e3 < i3.length; e3++) r2 = i3[e3], a2 = a2.union(r2);
          return n3.row = a2.row, n3.col = a2.col, n3.rowCount = a2.rowCount, n3.colCount = a2.colCount, n3;
        }
        function R(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = null != e3 ? e3 : t3.getActiveRowIndex(), h2 = null != i3 ? i3 : t3.getActiveColumnIndex(), d2 = O(n3, h2);
          if (1 === d2 && -1 === n3.col) return n3;
          for (o2 = 2 === d2 ? n3.col : 0 === d2 ? n3.col + n3.colCount - 1 : n3.col, u2 = 0 === d2 ? n3.col + n3.colCount - 1 - 1 : n3.col - 1, a2 = o2 - 1; a2 >= 0 && !t3.getColumnVisible(a2); ) a2--;
          return s2 = m(t3, l2, o2), c2 = m(t3, l2, a2), r2 = (f2 = s2 && c2) ? C(t3, l2, u2) : S(t3, l2, u2), n3.colCount = 2 === d2 ? h2 - r2 + 1 : 0 === d2 ? Math.abs(r2 - h2) + 1 : n3.col + n3.colCount - r2, r2 < h2 ? n3.col = r2 : 1 !== d2 && (n3.col = h2), E(t3, n3);
        }
        function L(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = t3.getColumnCount(), h2 = null != e3 ? e3 : t3.getActiveRowIndex(), d2 = null != i3 ? i3 : t3.getActiveColumnIndex(), v2 = O(n3, d2);
          if (1 === v2 && -1 === n3.col) return n3;
          for (o2 = 2 === v2 ? n3.col : n3.col + n3.colCount - 1, u2 = 2 === v2 ? n3.col + 1 : n3.col + n3.colCount, a2 = o2 + 1; a2 < l2 && !t3.getColumnVisible(a2); ) a2++;
          return s2 = m(t3, h2, o2), c2 = m(t3, h2, a2), r2 = (f2 = s2 && c2) ? T(t3, h2, u2) : x(t3, h2, u2), n3.colCount = 2 === v2 ? Math.abs(r2 - d2) + 1 : 0 === v2 ? r2 - d2 + 1 : r2 - n3.col + 1, r2 < d2 ? n3.col = r2 : 1 !== v2 && (n3.col = d2), E(t3, n3);
        }
        function F(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = null != e3 ? e3 : t3.getActiveRowIndex(), h2 = null != i3 ? i3 : t3.getActiveColumnIndex(), d2 = _(n3, l2);
          if (1 === d2 && -1 === n3.row) return n3;
          for (o2 = 2 === d2 ? n3.row : 0 === d2 ? n3.row + n3.rowCount - 1 : n3.row, u2 = 0 === d2 ? n3.row + n3.rowCount - 1 - 1 : n3.row - 1, a2 = o2 - 1; a2 >= 0 && !t3.getRowVisible(a2); ) a2--;
          return s2 = m(t3, o2, h2), c2 = m(t3, a2, h2), r2 = (f2 = s2 && c2) ? b(t3, h2, u2) : y(t3, h2, u2), n3.rowCount = 2 === d2 ? l2 - r2 + 1 : 0 === d2 ? Math.abs(r2 - l2) + 1 : n3.row + n3.rowCount - r2, r2 < l2 ? n3.row = r2 : 1 !== d2 && (n3.row = l2), E(t3, n3);
        }
        function B(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = t3.getRowCount(), h2 = null != e3 ? e3 : t3.getActiveRowIndex(), d2 = null != i3 ? i3 : t3.getActiveColumnIndex(), v2 = _(n3, h2);
          if (1 === v2 && -1 === n3.row) return n3;
          for (o2 = 2 === v2 ? n3.row : n3.row + n3.rowCount - 1, u2 = 2 === v2 ? n3.row + 1 : n3.row + n3.rowCount, a2 = o2 + 1; a2 < l2 && !t3.getRowVisible(a2); ) a2++;
          return s2 = m(t3, o2, d2), c2 = m(t3, a2, d2), r2 = (f2 = s2 && c2) ? w(t3, d2, u2) : M(t3, d2, u2), n3.rowCount = 2 === v2 ? Math.abs(r2 - h2) + 1 : 0 === v2 ? r2 - h2 + 1 : r2 - n3.row + 1, r2 < h2 ? n3.row = r2 : 1 !== v2 && (n3.row = h2), E(t3, n3);
        }
        function P(t3, n3, e3, i3, r2) {
          var o2 = t3.JS(n3), a2 = s;
          return 3 === e3 ? a2 = R(t3, o2, i3, r2) : 4 === e3 ? a2 = L(t3, o2, i3, r2) : 1 === e3 ? a2 = F(t3, o2, i3, r2) : 2 === e3 && (a2 = B(t3, o2, i3, r2)), a2 && (n3.row < 0 && (a2.row = -1, a2.rowCount = t3.getRowCount()), n3.col < 0 && (a2.col = -1, a2.colCount = t3.getColumnCount())), a2;
        }
        function G(t3, n3) {
          var e3, r2, o2, a2, s2, c2, f2, h2, d2 = t3.il, v2 = t3.parent, p2 = v2 && v2.options;
          return !!(d2 && d2.Dvt() && p2 && p2.allowUserEditFormula && p2.enableFormulaTextbox) && (e3 = t3.rt, o2 = (r2 = l(t3)).anchorRow, a2 = r2.anchorCol, d2.XD ? (c2 = d2.zvt(), s2 = (0, u.Vvt)(t3, c2.text)) : s2 = (0, i2.Ec)(o2, a2, 1, 1), !!(s2 && (f2 = P(t3, s2, n3, o2, a2), h2 = (0, u.Uvt)(e3.Mf, f2))) && (d2.Gvt(h2, true, false), true));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/formulaTextbox/formulatextbox.js"), a = e2("./dist/plugins/formulaTextbox/formulatextbox-acrosssheet.js"), u = e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), s = void 0, c = r.Common.lt.ht, i2.GC$.extend(i2.Worksheet.prototype, { changeFormulaText: function(t3, n3, e3, i3) {
          return D(t3, n3, e3, i3);
        }, changeFormulaTextCtrlShift: function(t3, n3) {
          return G(t3, n3);
        } }), i2.Commands.B5 = d, i2.Commands.UA = v, i2.Commands.L5 = g, f = (function() {
          function t3() {
          }
          return t3.YA = function(n3) {
            return t3.Hvt(n3);
          }, t3.ZA = function(n3) {
            return t3.Hvt(n3);
          }, t3.WA = function(n3) {
            return t3.Hvt(n3);
          }, t3.Hvt = function(n3) {
            var e3 = n3, i3 = a.wvt.Rvt;
            return i3 && i3._text && i3.Mf && (e3 = i3.Mf, t3.Yvt(e3)), e3;
          }, t3.Yvt = function(t4, n3) {
            var e3, i3;
            void 0 === n3 && (n3 = true), e3 = t4.parent, (i3 = a.wvt.Rvt) && i3._text && e3.e3(t4, n3);
          }, t3.KA = function(n3, e3, r2) {
            var o2, a2, s2 = false, c2 = n3.il;
            return c2 && c2.Dvt() ? ((o2 = l(n3)).anchorRow = e3, o2.leadingRow = e3, (a2 = (0, u.Uvt)(n3, (0, i2.Ec)(o2.anchorRow, o2.anchorCol, 1, 1))) && c2.Gvt(a2, false, true), n3.$A(r2), s2 = true) : c2 && (n3 = t3.Hvt(n3)), { sheet: n3, r: s2 };
          }, t3.eI = function(n3, e3, r2) {
            var o2, a2, s2 = false, c2 = n3.il;
            return c2 && c2.Dvt() ? ((o2 = l(n3)).anchorRow = e3, o2.leadingRow = e3, (a2 = (0, u.Uvt)(n3, (0, i2.Ec)(o2.anchorRow, o2.anchorCol, 1, 1))) && c2.Gvt(a2, false, true), n3.$A(r2), s2 = true) : c2 && (n3 = t3.Hvt(n3)), { sheet: n3, r: s2 };
          }, t3.Zvt = function(n3, e3) {
            var i3 = false, r2 = e3 ? 5 : 6, o2 = n3.il, a2 = n3.ui, u2 = n3.ci;
            return o2 && o2.Dvt() ? (o2.XD || (n3.rt.Lvt = { anchorRow: a2, anchorCol: u2, leadingRow: n3.qA, leadingCol: n3.hR }), h(n3, r2, false, a2, u2), i3 = true) : o2 && (n3 = t3.Hvt(n3)), { sheet: n3, r: i3 };
          }, t3.iI = function(n3) {
            return t3.Zvt(n3, true);
          }, t3.rI = function(n3) {
            return t3.Zvt(n3, false);
          }, t3.oI = function(n3) {
            return t3.Hvt(n3);
          }, t3.aI = function(n3) {
            return t3.Hvt(n3);
          }, t3.cI = function(n3) {
            var e3, i3, r2, u2 = a.wvt.Rvt;
            if (u2 && u2._text && u2.Mf && (n3 = u2.Mf, e3 = u2.bZ, i3 = u2.mvt, t3.Yvt(n3, false), (0, o.Wvt)(n3), u2.rl || n3.t4(e3, i3, s, s, 1), n3.isEditing())) return r2 = n3.getValue(e3, i3, 3), !!n3.ol(true, void 0, void 0, true) && (n3.setValue(e3, i3, r2, 3, true), true);
          }, t3;
        })(), i2.Commands.VA = f;
      }, "./dist/plugins/formulaTextbox/formulatextbox-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("CalcEngine"), o = e2("SheetsCalc"), a = e2("./dist/plugins/formulaTextbox/formulaReferencedRanges/formulaReferencedRanges.js"), u = i2.GC$.extend, s = null, u(i2.nk.prototype, { hI: function() {
          var t3, n3, e3, i3, u2, c, f, l, h, d, v, p, g, m = this, b = m.Mf, y = b.il;
          if (y) if (t3 = b.ui, n3 = b.ci, i3 = (e3 = b.parent) && 1 === e3.options.referenceStyle, u2 = new o.SheetParserContext(b, i3, (0, r.eV)(t3, n3)), c = new r.Parser(), y.XD) for (h = y.fmt(), d = 0; d < h.length; d++) {
            f = h[d];
            try {
              l = c.parse(u2, f.text);
            } catch (t4) {
              l = s;
            }
            l && (1 === l.type && ((0, a.lmt)(l, t3, n3, true, true), y.Vde(f.index, c.unparse(u2, l))));
          }
          else {
            if (!(f = y.zvt())) return;
            try {
              l = c.parse(u2, f.text);
            } catch (t4) {
              l = s;
            }
            if (!l) return;
            1 === l.type && (l.isFullColumn || l.isFullRow ? ((0, a.lmt)(l, t3, n3, true, true), y.Vde(f.index, c.unparse(u2, l))) : l.hmt() ? ((0, a.dmt)(l, t3, n3), y.Vde(f.index, c.unparse(u2, l))) : (v = f.textOffset + f.text.lastIndexOf(":"), (p = y.caret() <= v) ? ((0, a.lmt)(l, t3, n3, true, false), g = c.unparse(u2, l), y.Vde(f.index, g), y.caret(f.textOffset + g.lastIndexOf(":"))) : ((0, a.lmt)(l, t3, n3, false, true), y.Vde(f.index, c.unparse(u2, l)))));
          }
        } });
      }, "./dist/plugins/formulaTextbox/formulatextbox-render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), (r = (i2 = e2("Core")).GC$.extend)(i2.g7.prototype, { ID: function() {
          this.Fde();
        } });
      }, "./dist/plugins/formulaTextbox/formulatextbox.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it;
        function rt(t3, n3) {
          var e3, i3 = 0;
          for (e3 = 0; e3 < t3.length; e3++) t3[e3] === n3 && i3++;
          return i3;
        }
        function ot() {
          var t3 = [];
          return a.GC$.each(i2.sR().wmt, (function(n3, e3) {
            i2.Functions.Mmt[n3] && (e3.name = n3, t3.push(e3));
          })), t3;
        }
        function at(t3) {
          var n3 = [], e3;
          return a.GC$.each(t3, (function(t4, i3) {
            (e3 = i3.description()) && (e3.name = t4, n3.push(e3));
          })), n3;
        }
        function ut(t3) {
          var n3 = i2.getMapping() && i2.getMapping().builtInFunctionsMapping, e3 = n3 && n3[t3] && n3[t3].alias || t3;
          return m.j0(e3);
        }
        function st(t3, n3, e3) {
          if (e3) {
            var i3 = new RegExp(q, "g");
            return t3.replace(i3, "") === n3.replace(i3, "");
          }
          return t3 === n3;
        }
        function ct(t3) {
          for (var n3, e3, i3, r2 = [], o2 = 0, a2 = ""; a2 !== s; ) a2 = t3.getColumnName(o2), e3 = void 0, t3.Mf.NMi && (e3 = t3.FDi(o2)) && (n3 = o2), o2++, a2 !== s && r2.push({ name: a2, description: "", isGroupColumn: e3 });
          return i3 = { columns: r2 }, y(n3) || (i3.groupInfo = { rightGroupColumnIndex: n3 }), i3;
        }
        function ft(t3, n3, e3, r2, o2, u2) {
          var s2, c2, f2, l2, h2, d2 = t3.parent, v2 = d2 && d2.options;
          (n3 && v2 && v2.allowUserEditFormula && v2.enableFormulaTextbox || e3) && (t3.il && t3.il.destroy(), t3.il = new it(n3, null, d2), t3.Bde = t3.il, s2 = t3.il.text(), c2 = t3.getFormulaInformation(r2, o2, u2), s2[0] !== $ || c2 && c2.hasFormula || s2 === $ || v2.allowInvalidFormula || (s2 = "'" + s2, t3.il.text(s2)), f2 = t3.il, l2 = t3.rt, h2 = t3.Dn, f2.bind("AppendStarted", (function() {
            f2.close();
            var n4 = t3.Di;
            1 !== n4 && (t3.Di = 1, t3._i(n4, 1));
          })), f2.bind("AppendEnded", (function() {
            h2.ID();
          })), f2.bind(j, (function(n4, e4) {
            if (!t3.xT) {
              if (e4 && e4.type !== T) {
                l2.By(e4);
                var i3 = t3.getCellType(r2, o2, u2);
                t3.ki(a.Events.EditChange, { sheet: t3, sheetName: t3.name(), row: r2, col: o2, editingText: i3.getEditorValue(t3.li) });
              }
              h2.ID(), t3.ki(a.Events.FormulaTextBoxTextChanged, { sheet: t3, sheetName: t3.name(), text: f2.text(), sheetArea: u2 });
            }
          })), f2.bind("CaretChanged", (function() {
            h2.ID(), t3.ki(a.Events.FormulaTextBoxCaretChanged, { sheet: t3, sheetName: t3.name(), caret: f2.caret() });
          })), f2.add(ot()), f2.add(at(i2.Functions.Tmt)), f2.add(at(t3.Amt).concat(at(d2.Amt))), h2.ID());
        }
        function lt(t3) {
          t3.il && (t3.il.destroy(), t3.il = s, t3.Bde = s, t3.Dn.ID());
          var n3 = t3.parent && t3.parent.h6;
          v() === (n3 && n3.Ti) && t3.rt.aA();
        }
        function ht(t3, n3) {
          var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, v2 = (0, a.GC$)(t3);
          return v2.attr("contenteditable", "false"), e3 = d("table"), (0, a.GC$)(e3).css("border-spacing", "0"), (0, a.GC$)(e3).css("width", "100%"), v2.append(e3), i3 = d("tbody"), e3.appendChild(i3), r2 = document.createElement("tr"), i3.appendChild(r2), o2 = document.createElement("td"), (0, a.GC$)(o2).css("padding-right", "0px"), r2.appendChild(o2), u2 = document.createElement("td"), (0, a.GC$)(u2).css("width", "23px"), (0, a.GC$)(u2).css("padding-right", "0px"), r2.appendChild(u2), s2 = v2.width() - (0, a.GC$)(u2).width(), c2 = d("div"), f2 = d("div"), (0, a.GC$)(f2).width(s2), (0, a.GC$)(f2).css({ "overflow-y": "auto", "overflow-x": "hidden", height: "20px" }), f2.appendChild(c2), o2.appendChild(f2), l2 = d("div"), u2.appendChild(l2), (0, a.GC$)(c2).css({ display: "inline-block", float: "left", height: "auto", outline: "none" }), (0, a.GC$)(c2).width(s2), (0, a.GC$)(c2).attr("contenteditable", "true"), (0, a.GC$)(c2).attr("spellcheck", "false"), (h2 = (0, a.GC$)(l2)).css({ display: "block", float: "right", width: "23px", height: "23px", background: Z, "background-repeat": "no-repeat" }), h2.bind("click", (function() {
            n3.Imt ? (n3.Vv.ki("RangeSelectEnding", n3), n3.endSelectMode()) : n3.startSelectMode();
          })), { contentDiv: c2, button: l2 };
        }
        function dt(t3) {
          var n3, e3 = ["FILTER", "RANDARRAY", "SEQUENCE", "SORT", "SORTBY", "UNIQUE", "MAP", "REDUCE", "SCAN", "MAKEARRAY", "BYROW", "BYCOL", "PIVOTBY", "GROUPBY", "TEXTSPLIT", "HSTACK", "VSTACK", "TOROW", "TOCOL", "WRAPROWS", "WRAPCOLS", "TAKE", "DROP", "EXPAND", "CHOOSEROWS", "CHOOSECOLS"];
          for (n3 = 0; n3 < e3.length; n3++) if (t3 === e3[n3]) return true;
        }
        function vt() {
          var t3, n3, e3, i3 = p.getSelection();
          i3.rangeCount > 0 && (t3 = i3.getRangeAt(0), (n3 = g.createElement("span")).innerHTML = "<br/>" + q, t3.insertNode(n3), (e3 = g.createRange()).setStartAfter(n3), e3.setEndAfter(n3), e3.collapse(false), i3.removeAllRanges(), i3.addRange(e3));
        }
        function pt(t3) {
          return "gcAttachedFormulaTextBox" === t3.target.getAttribute("gcuielement");
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.FormulaTextBox = n2.Wvt = n2.Evt = n2.CONST_FORMULATEXTBOX = void 0, i2 = e2("CalcEngine"), r = e2("SheetsCalc"), o = e2("Common"), a = e2("Core"), u = e2("./dist/plugins/formulaTextbox/formulatextbox-acrosssheet.js"), s = null, c = void 0, f = Math.max, l = Math.min, h = a.GC$.extend, d = a.mt.En, v = a.mt.ai, p = window, g = document, m = o.Common.zf, b = a.mt.vi, y = o.Common.lt.ht, w = a.mt.Tt, M = w.msie && parseInt(w.version, 10) < 10, C = m.Gmt, n2.CONST_FORMULATEXTBOX = "formulatextbox", S = "gcUIElement", T = "input", x = " ", A = ".gcFormulaTextBoxInternal", I = ".gcFormulaTextBox", k = ".gcFormulaTextBoxAcrossSheetInternal", N = ".gcsj-func-ac-row", j = "TextChanged", D = "CaretChanged", _ = "AppendStarted", O = "AppendEnded", E = 37, R = 39, L = 38, F = 40, B = 9, P = 13, G = 33, U = 34, H = 35, V = 36, z = 27, Y = ["#0000ff", "#008000", "#9900cc", "#800000", "#00cc33", "#cc6600", "#cc0099"], Z = 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAIAAACw+gCQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJSSURBVDhPY3hILqBYZ/eqV81LXpbNfp7S/yS0+Z5p+olD5x5OWXGyYcaBmql7yifuLOnbBkRFPVuACKIFqjNzwv2Qhhue5ReByK/qYlDtxb///n35+efd1z/PP/wB6vn2+/f7b79ffgIhiBaoTlPP5I2bN2/asmX7jh3Hjh+ft3wLUOfX779ef/h+6+nHtXsuffrx+/bj16euvwQiiBaETiAy904NTasGantRkvA8wetpsO0NJ839htKb9l/Jal6T3rgytX4FEEG0QHXuOnbr55+/P379AyIg40m8x8uZ3U+aC49bKn64eHzX0es4Xds0Y9ejl++vPXx3+f77Nx9/3PU3e5YR/CTM4WGs53pVPqBrgX6+8+QNFtdmNq0q6NpU1LOpe/6+o+fvH3fR36XCc9dE/KG3EdDNQPaF7VunLTuY0bA0omg2RAtUZ1LNUohjgCEJDJVtdlpPty6dr8x3yUDsvoPqRm2hqcp8Jy+9WbH/7cQ1EB0wnXEVCyBBt+fc8+NXXy9Yf/znz5/31swFaliiKjBZme/yrSe7z36YsuZBy4KbEC1QnRFFcxKqFgP1A1Fq7ZKcpqU1EzYuWX/kxIa1/WBtizYcAwqG5E71SZsA0QLVGZI3A+Lax+/+ACMwvHDmsn1v1xx8e+jSp83HXgP1ALmztryYsv4ZEEG0QHUGZk+FuHbHqadABORO3fC8Z/mdvmU3Oxdd9cuY1LX0VsOci/WzQQiiBaET4lQgii1fEFU6F4iAXgC6JShnakDWZKBmoDshCKIFqpMMQK7Ohw8BTajNa73pg9oAAAAASUVORK5CYII=")', W = 'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+U1BKUyBBbm90aGVyLVNlbGVjdGluZzwvdGl0bGU+CiAgICA8ZyBpZD0iU1BKUy1Bbm90aGVyLVNlbGVjdGluZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IlN3aXRjaC1yb3cvY29sdW1uIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMS4wMDAwMDApIj4KICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS04IiBmaWxsPSIjRDVENUQ1IiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTMiPjwvcmVjdD4KICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iMyIgeT0iNSIgd2lkdGg9IjEwIiBoZWlnaHQ9IjQiPjwvcmVjdD4KICAgICAgICAgICAgPHBhdGggZD0iTTMsNSBMMTMsNSBMMTMsOSBMMyw5IEwzLDUgWiBNNCw2IEw0LDggTDEyLDggTDEyLDYgTDQsNiBaIiBpZD0i55+p5b2iIiBmaWxsPSIjNjY2NjY2IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTAsMCBMMTYsMCBMMTYsMTMgTDAsMTMgTDAsMCBaIE0xLDEgTDEsMTIgTDE1LDEyIEwxNSwxIEwxLDEgWiIgaWQ9IuefqeW9oiIgZmlsbD0iIzY2NjY2NiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtOCI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiBmaWxsPSIjODFCRUZDIiB4PSIxIiB5PSIxIiB3aWR0aD0iMTQiIGhlaWdodD0iMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDAgTDE2LDQgTDAsNCBMMCwwIEwxNiwwIFogTTE1LDEgTDEsMSBMMSwzIEwxNSwzIEwxNSwxIFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiMzNjdGQzkiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtOSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi41ODc3NjcsIDYuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgZmlsbD0iI0ZBNzU0MSIgcG9pbnRzPSI1LjQxMjIzMjg1IDcgMi40MTIyMzI4NSAzLjk5NTM1Mjk1IDQuNDEyMjMyODUgMy45OTUzNTI5NSA0LjQxMjIzMjg1IDEgNi40MTIyMzI4NSAxIDYuNDEyMjMyODUgMy45OTUzNTI5NSA4LjQxNDAzOTk4IDMuOTk1MzUyOTUiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMC44MjY2NDAyLDIuOTk1MzUyOTUgTDUuNDEyMDE5ODEsOC40MTUwOTU5NCBMMC4wMDA2NTkxMTExNjIsMi45OTUzNTI5NSBMMy40MTIyMzI4NSwyLjk5NTM1Mjk1IEwzLjQxMjIzMjg1LDAgTDcuNDEyMjMyODUsMCBMNy40MTIyMzI4NSwyLjk5NTM1Mjk1IEwxMC44MjY2NDAyLDIuOTk1MzUyOTUgWiBNNS40MTIyMzI4NSw3IEw4LjQxNDAzOTk4LDMuOTk1MzUyOTUgTDYuNDEyMjMyODUsMy45OTUzNTI5NSBMNi40MTIyMzI4NSwxIEw0LjQxMjIzMjg1LDEgTDQuNDEyMjMyODUsMy45OTUzNTI5NSBMMi40MTIyMzI4NSwzLjk5NTM1Mjk1IEw1LjQxMjIzMjg1LDcgWiIgaWQ9IlNoYXBlIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==")', Q = "background", K = "background-repeat", J = "text-before", X = "caret-before", q = "​", $ = "=", a.Events.FormulaTextBoxTextChanged = "FormulaTextBoxTextChanged", a.Events.FormulaTextBoxCaretChanged = "FormulaTextBoxCaretChanged", a.Events.FormulaTextBoxUpdatePosition = "FormulaTextBoxUpdatePosition", p.gcGlobal.wf.push((function(t3, n3) {
          var e3, i3 = u.wvt;
          !n3 && t3.endEdit && i3 && (e3 = i3.Rvt) && e3.bvt && t3.il && (t3.il && t3.il.destroy(), t3.il = s, t3.Bde = s, e3.rl || e3.d5());
        })), n2.Evt = ft, n2.Wvt = lt, a.Worksheet.ch(n2.CONST_FORMULATEXTBOX, { startEdit: function(t3) {
          t3.preventFormulaTextBox || ft(this, t3.element, c, t3.row, t3.col, t3.sheetArea);
        }, endEdit: function() {
          lt(this);
        }, preProcessKeyDown: function(t3) {
          var n3, e3, i3, r2 = this.il;
          (r2 && r2.$D(t3.e) || (e3 = (n3 = this.parent) && n3.h6) && e3.$D(t3.e, t3.c) || (i3 = n3 && n3.ske) && i3.$D(t3.e, t3.c)) && (t3.r = true);
        } }), tt = a.Hv.prototype, nt = tt.O2, a.Hv.ch(n2.CONST_FORMULATEXTBOX, { preProcessMouseDbClick: function(t3) {
          var n3 = (0, a.jf)(this.Vv), e3 = n3 ? n3.il : void 0, i3 = e3 && e3.Dvt(), r2 = u.wvt.Rvt;
          i3 ? t3.r = false : r2 && r2.bvt && r2.d5();
        } }), tt.O2 = function() {
          var t3 = (0, a.jf)(this.Vv), n3 = t3 && t3.il, e3 = u.wvt.Rvt, i3 = e3 && e3._text;
          return nt.call(this) && !i3 && !n3;
        }, et = 1, it = (function() {
          function t3(t4, e3, i3) {
            var r2, o2, s2, c2, f2, l2 = this, h2 = t4;
            if (l2.rl = false, l2.Ivt = false, l2.xmt = true, l2.Smt = true, l2.Nmt = [], l2.kmt = [], l2.Dmt = [], l2.U6 = false, e3 && e3.rangeSelectMode && (true === e3.absoluteReference && (l2.Ivt = true), false === e3.needSheetName && (l2.Smt = false), false === e3.acrossSheet && (l2.xmt = false), l2.Pve = e3.needFuncHelp, l2.lBe = e3.convertStructureReference, l2.Xvt = e3.selectionUnit, l2.rl = true, l2.Imt = false, l2._mt = false, l2.Emt = t4, h2 = (o2 = ht(t4, l2)).contentDiv, l2.jmt = o2.button, l2.Avt = et, et++), l2.vao = null !== (r2 = null == e3 ? void 0 : e3.acceptNoPrefixFormula) && void 0 !== r2 && r2, l2.cmt = true, l2.Hc(i3 && i3.getHost() || g.body), h2 && l2.Rmt(h2), i3 && (l2.Bmt = true, l2.Lmt(i3), l2.Vv._3(a.Events.ActiveSheetChangingInternal + k, u.wvt.Ovt), l2.Vv.D3(a.Events.ActiveSheetChangingInternal + k, u.wvt.Ovt), l2.Vv._3(a.Events.ActiveSheetChangedInternal + k, u.wvt.Bvt), l2.Vv.D3(a.Events.ActiveSheetChangedInternal + k, u.wvt.Bvt), l2.Vv._3(a.Events.FormulaTextBoxUpdatePosition + A, void 0), l2.Vv.D3(a.Events.FormulaTextBoxUpdatePosition + A, (function(t5, n3) {
              l2.u_();
            }))), s2 = l2.text(), l2.Fmt = l2.Ost(s2), c2 = l2.vmt(h2)) {
              l2.Pmt(l2.Fmt);
              try {
                (f2 = p.getSelection()).selectAllChildren(h2), f2.rangeCount > 0 && f2.collapseToEnd();
              } catch (t5) {
              }
              (0, a.GC$)(l2.Ti).data(J, s2);
            }
            (0, a.GC$)(t4).data(n2.CONST_FORMULATEXTBOX, l2);
          }
          return t3.prototype.Umt = function(t4) {
            var n3, e3, i3, r2, o2, a2, s2 = this;
            s2.Hmt(), s2.FD(), s2._mt = true, n3 = (0, u.Mvt)(s2.Vv.Ti), s2.Vv.ske = s2, (e3 = s2.zmt()) && (e3.suspendPaint(), ft(e3, n3, true, e3.ui, e3.ci, 3), (i3 = e3.il).rl = true, i3.Avt = s2.Avt, i3.Ivt = s2.Ivt, i3.Smt = s2.Smt, i3.Xvt = s2.Xvt, i3.xmt = s2.xmt, i3.lBe = s2.lBe, t4 && (s2.text(t4), s2.caret(t4.length)), r2 = s2.text(), (o2 = s2.caret()) <= 0 && (o2 = r2.length), s2.focus(), s2.caret(o2), s2.XD = true, s2.umt = 1, -1 !== (a2 = r2.lastIndexOf(",", o2)) && (s2.umt = a2 + 1), r2 || (s2.text("="), r2 = "=", s2.caret(1), o2 = 1), "=" !== r2[0] && (r2 = "=" + r2, o2++), i3.text(r2), i3.caret(o2), i3.XD = s2.XD, i3.umt = s2.umt, e3.resumePaint());
          }, t3.prototype.startSelectMode = function(t4) {
            var n3, e3 = t4;
            e3 && 0 !== e3.indexOf("=") && (e3 = "=" + e3), (n3 = this).rl = true, n3.Imt = true, (0, a.GC$)(n3.jmt).css([Q, K], [W, "no-repeat"]), n3.Umt(e3);
          }, t3.prototype.endSelectMode = function() {
            this.Imt = false, this.Vmt(), (0, a.GC$)(this.jmt).css([Q, K], [Z, "no-repeat"]);
            var t4 = u.wvt.Rvt;
            t4 && t4.bvt && t4.d5();
          }, t3.prototype.Vmt = function() {
            var t4, n3, e3 = this.Vv;
            e3 && (e3.ske = null), (t4 = this.zmt()) && (n3 = false, t4.ol(true, c, true, void 0, n3), t4.repaint());
          }, t3.prototype.Ak = function(t4) {
            t4 && (this.Dmt = [t4]);
          }, t3.prototype.Hce = function() {
            this.Dmt = s;
          }, t3.prototype.Ymt = function() {
            return this.Dmt;
          }, t3.prototype.destroy = function() {
            var t4 = this;
            t4.Imt && t4.Vmt(), t4.Dmt = s, t4.XD = false, t4.umt = -1, t4.Zmt(), t4.Wmt(), t4.Qmt(), (0, a.GC$)(t4.Kmt).remove(), (0, a.GC$)(t4.Jmt).remove(), (0, a.GC$)(t4.F0).remove();
          }, t3.prototype.bind = function(t4, n3, e3) {
            var i3 = this.Ti;
            i3 && t4 && (t4 = t4.split(/\s+/).join(I + " "), (0, a.GC$)(i3).bind(t4 + I, n3, e3));
          }, t3.prototype.unbind = function(t4, n3) {
            var e3 = this.Ti;
            e3 && t4 && (t4 = t4.split(/\s+/).join(I + " "), (0, a.GC$)(e3).unbind(t4 + I, n3));
          }, t3.prototype.unbindAll = function() {
            var t4 = this.Ti;
            t4 && (0, a.GC$)(t4).unbind(I);
          }, t3.prototype.caret = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Ti;
            if (r2) {
              if (n3 = v() === r2, e3 = (0, a.GC$)(r2), 0 === arguments.length) return n3 ? i3.Xmt(r2).end : e3.data(X);
              t4 !== i3.caret() && (n3 ? (i3.qmt(r2, t4), e3.data(X, i3.Xmt(r2).end)) : e3.data(X, t4), i3.ki(D, {}));
            }
          }, t3.prototype.Xmt = function(t4) {
            var n3, e3, i3, r2 = this, o2 = -1, a2 = -1;
            return r2.$mt(t4) ? (o2 = t4.selectionStart, a2 = t4.selectionEnd) : r2.vmt(t4) && (n3 = p.getSelection()).rangeCount > 0 && ((i3 = (e3 = n3.getRangeAt(0)).cloneRange()).selectNodeContents(t4), i3.setEnd(e3.endContainer, e3.endOffset), a2 = i3.toString().length, (i3 = e3.cloneRange()).selectNodeContents(t4), i3.setEnd(e3.startContainer, e3.startOffset), o2 = i3.toString().length, i3.detach()), { start: o2, end: a2 };
          }, t3.prototype.qmt = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this;
            a2.$mt(t4) ? t4.setSelectionRange(n3, n3) : a2.vmt(t4) && (r2 = this.tgt(t4, n3)) && (e3 = p.getSelection(), i3 = g.createRange(), (o2 = r2.node) && 1 === o2.childNodes.length ? i3.setStart(o2.firstChild, r2.offset) : o2.lastChild && o2.lastChild.length && i3.setStart(o2.lastChild, o2.lastChild.length), i3.collapse(true), e3.removeAllRanges(), e3.addRange(i3), this.rl && (t4.parentElement.scrollTop = t4.parentElement.scrollHeight));
          }, t3.prototype.text = function(t4) {
            var n3, e3, i3, r2, o2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Ti, g2 = v2.zmt();
            if (!p2) return "";
            if (!g2 || g2.xT) return p2.innerHTML = "", "";
            if (n3 = g2.getActiveRowIndex(), e3 = g2.getActiveColumnIndex(), a.mt.HRe(n3, e3, g2) && (t4 = "", v2.kgt(true)), i3 = v2.$mt(p2), r2 = v2.vmt(p2), o2 = v2.hfe(p2), 0 === arguments.length) {
              if (s2 = "", i3) s2 = p2.value;
              else if (r2) {
                if (v2.b0r()) return "";
                (s2 = (s2 = M ? a.mt.oi(p2) : p2.innerText).replace(/\r\n?/g, "\n")).indexOf(x) >= 0 && (s2 = a.mt.yi(s2, x, " "));
              } else o2 && (s2 = (s2 = M ? a.mt.oi(p2) : p2.innerText).replace(/\r\n?/g, "\n")).indexOf(x) >= 0 && (s2 = a.mt.yi(s2, x, " "));
              return s2;
            }
            null == t4 && (t4 = ""), t4 !== v2.text() && (c2 = v2.ngt(t4), v2.Fmt = c2 ? v2.Ost(c2) : v2.Ost(t4), i3 ? p2.value = t4 : r2 ? (f2 = v2.egt(v2.Fmt, t4), v2.Pmt(f2), v2.caret(t4.length)) : o2 ? p2.innerHTML = t4 : p2.value = t4, (l2 = g2.getCellType(n3, e3)) && "7" === l2.typeName && l2.getEditingElement() === p2 && l2.setEditorValue(p2, t4), h2 = {}, (d2 = u.wvt.Rvt) && d2._text && (h2 = { sheet: d2.Mf, editor: d2.bvt && d2.bvt.firstChild.firstChild, canvasOffset: d2.yvt }), v2.ki(j, h2)), v2.igt && !a.mt.HRe(n3, e3, g2) && v2.rgt();
          }, t3.prototype.I6 = function() {
            var t4 = this;
            (0, a.GC$)(t4.Ti).data(J, t4.text());
          }, t3.prototype.autoComplete = function(t4) {
            if (0 === arguments.length) return this.ogt;
            this.ogt = t4;
          }, t3.prototype.showHelp = function(t4) {
            if (0 === arguments.length) return this.agt;
            this.agt = t4;
          }, t3.prototype.add = function(t4) {
            var n3, e3;
            if (t4) if (a.GC$.isArray(t4)) for (n3 = t4.length, e3 = 0; e3 < n3; e3++) this.ZP(t4[e3]);
            else this.ZP(t4);
          }, t3.prototype.ZP = function(t4) {
            var n3, e3, i3, r2, o2 = t4 && C(ut(t4.name));
            if (o2) {
              for (e3 = (n3 = this.ugt).length, i3 = 0; i3 < e3; i3++) {
                if ((r2 = C(n3[i3].name)) === o2) return;
                if (r2 > o2) break;
              }
              n3.splice(i3, 0, t4);
            }
          }, t3.prototype.remove = function(t4) {
            var n3, e3, i3;
            if (t4) {
              for (t4 = C(t4), e3 = (n3 = this.ugt).length, i3 = 0; i3 < e3; i3++) if (C(n3[i3].name) === t4) {
                n3.splice(i3, 1);
                break;
              }
            }
          }, t3.prototype.workbook = function(t4) {
            var n3 = this;
            if (0 === arguments.length) return n3.Vv;
            t4 === s ? n3.rl && n3.Vmt() : (n3.Lmt(t4), n3.sgt());
          }, t3.prototype.Lmt = function(t4) {
            var n3, e3;
            t4 && ((n3 = this).Vv && n3.Wmt(), (e3 = n3.Ti) && (n3.Vv = t4));
          }, t3.prototype.smt = function() {
            var t4, n3, e3, i3, r2, o2 = [], a2 = this.Fmt, u2 = a2 && a2.length, s2 = 0, c2 = 0;
            if (u2 > 0) for (e3 = 0; e3 < u2; e3++) n3 = (t4 = a2[e3]).text, 11 === t4.type && (i3 = { textOffset: s2, text: n3, ranges: t4.ranges, index: c2, allowDrag: t4.allowDrag }, "number" == typeof t4.sheetArea && (i3.sheetArea = t4.sheetArea), o2.push(i3), c2++), s2 += n3.length;
            return (r2 = this.Fvt) && o2.push({ ranges: [r2], index: c2, allowDrag: false, isPivotClickCell: true }), o2;
          }, t3.prototype.zvt = function() {
            var t4, n3, e3, i3, r2, o2 = this.Ti, a2 = this.smt();
            if (o2 && a2 && a2.length > 0) for (t4 = this.caret(), n3 = a2.length, e3 = void 0, i3 = void 0, r2 = 0; r2 < n3; r2++) {
              if ((i3 = (e3 = a2[r2]).textOffset) <= t4 && t4 <= i3 + e3.text.length) return e3;
              if (i3 >= t4) break;
            }
            return s;
          }, t3.prototype.ymt = function(t4) {
            var n3, e3, i3;
            return !!t4 && (n3 = this.caret(), e3 = t4.text, (i3 = t4.textOffset) <= n3 && n3 <= i3 + e3.length);
          }, t3.prototype.pmt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this.smt(), c2 = s2.length;
            if (t4 < 0 || c2 <= t4) return "";
            for (n3 = [], i3 = 0, r2 = 0; r2 < c2; r2++) {
              for (e3 = s2[r2], o2 = false, a2 = 0; a2 < n3.length; a2++) if (e3.text && n3[a2].text.replace(/\s+/g, "").toUpperCase() === e3.text.replace(/\s+/g, "").toUpperCase()) {
                o2 = true;
                break;
              }
              if (o2) {
                if (t4 === r2) {
                  i3 = a2;
                  break;
                }
              } else if (n3.push(e3), t4 === r2) {
                i3 = n3.length - 1;
                break;
              }
            }
            return (u2 = Y)[i3 % u2.length];
          }, t3.prototype.Dvt = function() {
            var t4, n3, e3;
            return !!this.XD || (!!this.rl || (!!(0, a.Df)(this.text()) || !!(t4 = this.cgt(this.caret())) && (n3 = t4.type, e3 = t4.text, 1 === n3 || 8 === n3 || 7 === n3 && "%" !== e3 || 5 === n3 || 9 === n3 || 15 === n3)));
          }, t3.prototype.bmt = function(t4) {
            if (!t4 || !this.XD) return false;
            var n3 = this.umt, e3 = this.caret(), i3 = t4.textOffset;
            return n3 <= i3 && i3 < e3;
          }, t3.prototype.fmt = function() {
            var t4, n3, e3 = [], i3 = this.smt(), r2 = i3.length;
            if (r2 > 0) for (n3 = 0; n3 < r2; n3++) t4 = i3[n3], this.bmt(t4) && e3.push(t4);
            return e3;
          }, t3.prototype.Gvt = function(t4, n3, e3, i3, r2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2;
            if (void 0 === r2 && (r2 = a.SheetArea.viewport), c2 = (s2 = this).Ti, t4 && c2) {
              if (!s2.XD) {
                if (!s2.Dvt()) return;
                n3 = false, s2.XD = true, s2.umt = s2.caret(), s2.ki(_, {});
              }
              f2 = s2.umt, l2 = s2.text(), h2 = s2.caret(), l2 || (l2 = "=", f2 = s2.umt = 1, h2 = 1), d2 = h2, e3 && (n3 = false, l2 = l2.substr(0, f2) + (h2 < 0 ? "" : l2.substr(h2)), s2.Fmt = s2.Ost(l2), d2 = h2 = f2), v2 = s2.cgt(h2), n3 ? (p2 = (p2 = l2.substr(0, h2)).substr(0, p2.length - v2.text.length)).length >= f2 && (v2.text = t4, d2 = p2.length + t4.length) : (g2 = s2.Fmt, m2 = o.Common.Uf.hD(g2, v2), b2 = s2.rl && g2.length > 1 && m2 === g2.length - 1 && 11 === v2.type, i3 ? (t4 = h2 > f2 || b2 ? l2 + this.fgt() + t4 : l2.slice(0, h2) + t4 + l2.slice(h2), s2.Fmt = s2.Ost(t4)) : h2 > f2 || b2 ? (g2.splice(m2 + 1, 0, { text: this.fgt(), type: 8 }), g2.splice(m2 + 2, 0, { text: t4, type: 11, sheetArea: r2 }), t4 = "," + t4) : g2.splice(m2 + 1, 0, { text: t4, type: 11, sheetArea: r2 }), d2 = h2 + t4.length), s2.lgt(), y2 = {}, (w2 = u.wvt.Rvt) && w2._text && (y2 = { sheet: w2.Mf, editor: w2.bvt && w2.bvt.firstChild.firstChild, canvasOffset: w2.yvt }), s2.ki(j, y2), s2.caret(d2);
            }
          }, t3.prototype.qD = function() {
            var t4 = this;
            t4.XD && (t4.XD = false, t4.umt = -1, t4.ki(O, {}));
          }, t3.prototype.Nvt = function() {
            this.XD = true, this.umt = this.caret();
          }, t3.prototype.Tvt = function(t4) {
            return void 0 !== t4 && (this.umt = t4), this.umt;
          }, t3.prototype.Vde = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Ti;
            if (l2 && !(t4 < 0) && n3) {
              for (i3 = "", r2 = false, a2 = (o2 = f2.Fmt) && o2.length, s2 = 0, c2 = 0; c2 < a2; c2++) {
                if (11 === (u2 = o2[c2]).type && s2++ === t4) {
                  o2[c2] = { text: n3, type: 11, sheetArea: u2.sheetArea }, r2 = true;
                  break;
                }
                i3 += u2.text;
              }
              r2 && (f2.lgt(), f2.ki(j, {}), e3 ? f2.caret(f2.text().length) : f2.caret(i3.length + n3.length));
            }
          }, t3.prototype.sgt = function() {
            var t4, n3, e3 = this;
            e3.Vv && (t4 = e3.Ti, e3.Vv && t4 && (t4.setAttribute(S, "gcAttachedFormulaTextBox"), e3.rl || (e3.Vv.h6 = e3), e3.Vv.D3(a.Events.FormulaTextboxEditStarted + A, e3, e3.hgt), e3.Vv.D3(a.Events.EnterCellInternal + A, e3, e3.dgt), e3.Vv.D3(a.Events.FormulaTextboxEditEnded + A, e3, e3.vgt), e3.Vv.D3(a.Events.ActiveSheetChangedInternal + A, e3, e3.mgt), e3.Vv.D3(a.Events.RangeChangedInternal + A, e3, e3.ggt), e3.Vv.D3(a.Events.FormulaTextBoxTextChanged + A, e3, e3.pgt), e3.Vv.D3(a.Events.FormulaTextBoxCaretChanged + A, e3, e3.bgt), e3.Vv.D3(a.Events.ValueChanged + A, e3, e3.ygt), e3.Vv.D3(a.Events.CellChanged + A, e3, e3.ygt), (n3 = (0, a.jf)(e3.Vv)) && !e3.rl && e3.text(e3.wgt(n3, n3.ui, n3.ci)), e3.D3(j, e3, e3.Mgt), e3.D3(D, e3, e3.Cgt)));
          }, t3.prototype.refresh = function(t4) {
            var n3, e3 = this.Vv, i3 = this;
            e3 && (n3 = (0, a.jf)(e3)) && !i3.rl && (i3.rb = !!t4 || i3.rb, i3.text(i3.wgt(n3, n3.ui, n3.ci)), i3.rb = false);
          }, t3.prototype.Wmt = function() {
            var t4 = this, n3 = t4.Vv;
            !t4.Bmt && n3 && (t4.rl || (n3.h6 = null, n3._3(a.Events.FormulaTextboxEditStarted + A, t4.hgt), n3._3(a.Events.EnterCellInternal + A, t4.dgt), n3._3(a.Events.FormulaTextboxEditEnded + A, t4.vgt), n3._3(a.Events.ActiveSheetChangedInternal + A, t4.mgt), n3._3(a.Events.RangeChangedInternal + A, t4.ggt), n3._3(a.Events.FormulaTextBoxTextChanged + A, t4.pgt), n3._3(a.Events.FormulaTextBoxCaretChanged + A, t4.bgt), n3._3(a.Events.ValueChanged + A, t4.ygt), n3._3(a.Events.CellChanged + A, t4.ygt), t4._3(j, t4.Mgt), t4._3(D, t4.Cgt)), t4.text("")), t4.Vv = null;
          }, t3.prototype.Hmt = function() {
            var t4, n3, e3 = this;
            e3.rb || (e3.rb = true, (n3 = (t4 = this.Vv) && (0, a.jf)(t4)) && !n3.isEditing() ? (e3.rl || n3.f6(null, n3.ui, n3.ci, null, null, false, null), e3.Sgt = true) : n3 && 1 === n3.Di ? (n3.Di = 2, n3._i(1, 2)) : e3.Sgt = false, e3.rb = false, e3.Tgt || e3.w6());
          }, t3.prototype.Agt = function() {
            var t4 = this, n3 = t4.Ti, e3 = t4.Igt;
            n3.insertBefore(e3, n3.firstChild), e3.innerText = t4.igt;
          }, t3.prototype.xgt = function(t4, n3) {
            var e3;
            t4 && (this.Ngt !== n3 && (this.Ngt = n3, t4.style.display = n3 ? "" : "none"));
          }, t3.prototype.rgt = function() {
            var t4, n3 = this, e3 = n3.Ti, i3 = n3.vmt(e3);
            i3 ? ((t4 = n3.Igt) || ((t4 = n3.Igt = d("span")).className = "gcsj-func-gray-formula"), n3.xgt(t4, true), n3.Agt()) : e3.placeholder = n3.igt;
          }, t3.prototype.b0r = function() {
            var t4 = this, n3 = t4.Igt;
            return n3 && "none" !== n3.style.display && t4.Ti.contains(n3);
          }, t3.prototype.kgt = function(t4) {
            var n3, e3, i3 = this;
            (i3.igt || t4) && (i3.igt = "", n3 = i3.Ti, (e3 = i3.vmt(n3)) ? i3.xgt(i3.Igt, false) : n3 && (n3.placeholder = ""));
          }, t3.prototype.FD = function() {
            var t4, n3, e3, i3, r2, o2, u2 = this, s2 = u2.Vv, c2 = s2 && (0, a.jf)(s2);
            c2 && (t4 = c2.il, u2.Sgt && t4 && (n3 = t4.text(), st(e3 = u2.text(), n3, true) || (i3 = u2.caret(), r2 = c2.getFormulaInformation(c2.getActiveRowIndex(), c2.getActiveColumnIndex(), 3), u2.text(n3), r2.isArrayFormula && (i3 >= e3.length && (i3 -= 1), i3 = f(0, i3 - 1)), u2.caret(i3))), (u2.Sgt && t4 || u2.rl) && 2 !== (o2 = c2.Di) && (c2.Di = 2, c2._i(o2, 2)));
          }, t3.prototype.wgt = function(t4, n3, e3) {
            var i3, r2, o2, u2, s2, c2 = "";
            if (t4) {
              if (r2 = (i3 = t4.parent) && i3.options, (o2 = t4.getFormulaInformation(n3, e3, 3)) && o2.hasFormula) {
                if (c2 = "=" + o2.formulaWithCulture, o2.isDynamicArray) return this.igt = c2, "";
                this.igt = "", o2.isArrayFormula && (c2 = "{" + c2 + "}");
              } else u2 = t4.getActualStyle(n3, e3), c2 = "string" == typeof (s2 = t4.getValue(n3, e3)) && (u2.quotePrefix || s2.length > 1 && "=" === s2[0] && r2 && r2.allowUserEditFormula && !r2.allowInvalidFormula) ? "'" + s2 : a.mt.formatValue2Text(u2, s2, t4, { sheet: t4, row: n3, col: e3, sheetArea: 3 }) || "";
              this.kgt();
            }
            return c2;
          }, t3.prototype.Ove = function() {
            var t4, n3, e3, i3, r2, o2 = this, u2 = o2.Vv;
            u2 && (e3 = (n3 = u2 && (0, a.jf)(u2)).ui, i3 = n3.ci, false === (null === (t4 = null == (r2 = n3.getCellType(e3, i3)) ? void 0 : r2.editable) || void 0 === t4 ? void 0 : t4.call(r2)) && o2.ike(true));
          }, t3.prototype.ike = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Ti;
            r2 && (n3 = i3.$mt(r2), e3 = i3.hfe(r2), n3 ? r2.disabled = t4 : e3 && (r2.contentEditable = t4 ? "false" : "true"));
          }, t3.prototype.mgt = function(t4, n3) {
            var e3, i3, r2 = t4.data;
            r2.rb || (e3 = n3.newSheet, r2.rl || (r2.rb = true, r2.close(), n3 && (i3 = e3) && r2.text(r2.wgt(i3, i3.ui, i3.ci)), r2.rb = false));
          }, t3.prototype.hgt = function(t4, n3) {
            var e3, i3, r2, o2 = t4.data;
            o2.rb || (r2 = (i3 = (e3 = o2.Vv) && (0, a.jf)(e3)) && i3.il) && o2.rl === r2.rl && o2.Avt === r2.Avt && n3.sheetArea !== a.SheetArea.colHeader && n3.sheetArea !== a.SheetArea.rowHeader && (o2.kgt(), o2.rb = true, o2.text(r2.text()), o2.rb = false);
          }, t3.prototype.dgt = function(t4, n3) {
            var e3 = t4.data;
            e3.rl || e3.rb || (e3.rb = true, n3 && (e3.text(e3.wgt(n3.sheet, n3.row, n3.col)), e3.Ti && e3.ike(!!n3.readonly)), e3.rb = false);
          }, t3.prototype.ggt = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2 = t4.data;
            s2.rb || s2.rl || (s2.rb = true, n3 && (e3 = n3.sheet, i3 = n3.row, r2 = n3.col, o2 = n3.rowCount, u2 = n3.colCount, new a.Range(i3, r2, o2, u2).contains(e3.ui, e3.ci) && s2.text(s2.wgt(e3, e3.ui, e3.ci))), s2.rb = false);
          }, t3.prototype.vgt = function(t4, n3) {
            var e3, i3 = t4.data;
            i3.rl && i3.Imt && i3._mt ? n3.ignore = true : i3.rb || n3.sheetArea !== a.SheetArea.colHeader && n3.sheetArea !== a.SheetArea.rowHeader && (i3.rb = true, i3.close(), (e3 = u.wvt.Rvt) && e3.Mf && e3.Mf !== n3.sheet && e3._6(n3.sheet), n3 && n3.sheet.il && !n3.sheet.il.rl && !i3.rl && i3.text(i3.wgt(n3.sheet, n3.row, n3.col)), i3.rb = false);
          }, t3.prototype.ygt = function(n3, e3) {
            var i3 = e3.sheet, r2 = i3 && i3.parent && i3.parent.h6;
            if (r2 && r2.Dgt() === e3.row && r2._gt() === e3.col && r2.zmt() === i3 && n3.data instanceof t3) {
              if (n3.data.rl) return;
              "[styleinfo]" === e3.propertyName && n3.data.Ove(), e3.text = n3.data.wgt(i3, e3.row, e3.col), n3.data.pgt(n3, e3);
            }
          }, t3.prototype.pgt = function(t4, n3) {
            var e3, i3 = t4.data;
            i3.rb || (!n3.sheet.il || i3.rl === n3.sheet.il.rl && i3.Avt === n3.sheet.il.Avt) && n3.sheetArea !== a.SheetArea.colHeader && n3.sheetArea !== a.SheetArea.rowHeader && (i3.rb = true, n3 && (e3 = i3.caret(), i3.text(n3.text), i3.caret(e3)), i3.rb = false);
          }, t3.prototype.bgt = function(t4, n3) {
            var e3 = t4.data;
            e3.rb || (!n3.sheet.il || e3.rl === n3.sheet.il.rl && e3.Avt === n3.sheet.il.Avt) && (e3.rb = true, n3 && e3.caret(n3.caret), e3.rb = false);
          }, t3.prototype.Mgt = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, f2 = t4.data;
            if (!f2.rb && (e3 = (n3 = f2.Vv) && (0, a.jf)(n3))) {
              if (e3.isEditing() || (f2.Hmt(), f2.focus()), f2.rb = true, i3 = e3.ui, r2 = e3.ci, o2 = e3.il, u2 = e3.getCellType(i3, r2), o2) {
                if (f2.rl !== o2.rl || f2.Avt !== o2.Avt) return;
                s2 = o2.caret(), o2.text(f2.text()), o2.caret(s2);
              } else c2 = { sheet: e3, row: i3, col: r2, sheetArea: 3 }, u2.setEditorValue(e3.li, f2.text(), c2);
              f2.rb = false;
            }
          }, t3.prototype.Cgt = function(t4) {
            var n3, e3, i3, r2 = t4.data;
            r2.rb || (e3 = (n3 = r2.Vv) && (0, a.jf)(n3)) && e3.isEditing() && (!(i3 = e3.il) || r2.rl === i3.rl && r2.Avt === i3.Avt) && (r2.rb = true, i3 && (i3.caret(r2.caret()), r2.w6()), r2.rb = false);
          }, t3.prototype.Hc = function(t4) {
            var n3, e3, i3, r2 = this;
            r2.Egt = false, r2.XD = false, r2.umt = -1, r2.ugt = [], r2.ogt = true, r2.agt = true, r2.Ogt = true, (n3 = d("div")).className = "gcsj-func-ac-popup", n3.style.display = "none", n3.setAttribute(S, "gcFuncACPopup"), t4.insertBefore(n3, s), r2.Kmt = n3, r2.Tgt = false, (e3 = d("div")).className = "gcsj-func-help-popup", e3.style.display = "none", e3.setAttribute(S, "gcFuncHelpPopup"), t4.insertBefore(e3, s), r2.Jmt = e3, r2.Rgt = false, (0, a.GC$)(n3).bind("mouseover", (function() {
              r2.Ogt = false;
            })).bind("mouseout", (function() {
              r2.Ogt = true;
            })), (0, a.GC$)(e3).bind("mouseover", (function() {
              r2.Ogt = false;
            })).bind("mouseout", (function() {
              r2.Ogt = true;
            })), (0, a.GC$)(n3).bind("scroll", (function() {
              r2.Bgt && clearTimeout(r2.Bgt), r2.Bgt = p.setTimeout((function() {
                r2.Ti && r2.Ti.focus();
              }), 100);
            })), (i3 = d("div")).style.display = "none", i3.setAttribute(S, "gcFuncHelpDiv"), t4.insertBefore(i3, s), r2.F0 = i3, r2.Vv = null, r2.rb = false, r2.Sgt = false, r2.Bmt = false;
          }, t3.prototype.Rmt = function(t4) {
            var n3, e3, i3;
            t4 && (e3 = (n3 = this).vmt(t4), (n3.$mt(t4) || n3.LIr(t4) || e3) && (i3 = (0, a.GC$)(t4), n3.Ti && n3.Zmt(), n3.Ti = t4, w && (w.msie || w.chrome) ? e3 || M || w.chrome ? (n3.D3("focus", (function() {
              i3.data(J, n3.text());
            })), n3.D3("click", (function() {
              i3.focus();
            })), "input keydown keyup cut paste".split(" ").forEach((function(t5) {
              n3.D3(t5, (function(t6) {
                n3.Lgt(t6);
              }));
            }))) : n3.D3(T, (function() {
              n3.Fgt();
            })) : n3.D3(T, (function() {
              if (e3) {
                var t5 = n3.Ti.lastChild;
                w.chrome && t5 && "BR" === t5.tagName && n3.Ti.removeChild(t5);
              }
              n3.Fgt();
            })), n3.D3("keydown", (function(t5) {
              var i4, r2, o2, u2, s2, c2 = t5.ctrlKey, f2 = t5.shiftKey, l2 = t5.altKey, h2 = t5.metaKey, d2 = c2 || f2 || l2 || h2, v2 = t5.keyCode;
              !d2 && n3.Tgt && (v2 === F ? (n3.Pgt(1), b(t5)) : v2 === L ? (n3.Pgt(-1), b(t5)) : v2 === B && (n3.Ggt(), b(t5))), v2 === z && n3.close(), n3.Ugt(t5), r2 = (i4 = (0, a.jf)(n3.Vv)) && i4.rt.Pi(t5), n3.rl && r2 && (o2 = i4.il) && o2.XD && o2.qD(), !n3.XD || 8 !== v2 && 46 !== v2 || n3.qD(), e3 && (r2 ? (8 === v2 ? pt(t5) && a.di.processBackspaceAndLeftArrowKeyEvent(t5, true) : 46 === v2 && pt(t5) && a.di.processDeleteAndRightArrowKeyEvent(t5, true), n3.mmt()) : 13 === v2 && (c2 || l2) ? (pt(t5) && vt(), n3.mmt(true)) : 37 === v2 ? pt(t5) && a.di.processBackspaceAndLeftArrowKeyEvent(t5, false) : 39 === v2 && pt(t5) && a.di.processDeleteAndRightArrowKeyEvent(t5, false), e3 && c2 && (90 === v2 || 89 === v2) && b(t5)), u2 = n3.text(), a.mt.Qf() && e3 && h2 && (s2 = void 0, 90 === v2 && (f2 && n3.kmt.length > 0 ? (s2 = n3.kmt.pop()) && (n3.text(s2), n3.Nmt.push(u2)) : n3.Nmt.length > 0 && (s2 = n3.Nmt.pop() || "", n3.text(s2), n3.kmt.push(u2)), t5.preventDefault(), t5.stopPropagation()));
            })), n3.D3("keyup", (function(t5) {
              var i4, r2, o2, a2;
              n3.Ugt(t5), i4 = n3.text(), e3 && (r2 = void 0, o2 = t5.keyCode, (a2 = t5.ctrlKey) && 90 === o2 && n3.Nmt.length > 0 ? (r2 = n3.Nmt.pop() || "", n3.text(r2), n3.kmt.push(i4)) : a2 && 89 === o2 && n3.kmt.length > 0 && (r2 = n3.kmt.pop()) && (n3.text(r2), n3.Nmt.push(i4)));
            })), n3.D3("focus", (function(t5) {
              var e4;
              w && w.mozilla && !n3.Ti.innerText && (n3.Ti.innerText = ""), n3.Ugt(t5), n3.rl && n3.Imt && (n3._mt = true, n3.Umt());
            })), n3.D3("blur", (function() {
              n3.Ogt && n3.close(), n3.rl && (n3.Vmt(), n3._mt = false);
            })), n3.D3("mousedown", (function() {
              var t5 = { r: s };
              a.Worksheet.et(n3.zmt(), "preProcessFormulaTextBoxEdit", t5), t5.r || (n3._mt = true, n3.Ngt && n3.igt && (n3.kgt(), n3.Hgt = true), n3.Hmt());
            })), n3.D3("mouseup", (function() {
              if (n3.Hgt) {
                n3.Hgt = false;
                var t5 = n3.Ti, e4 = p.getSelection();
                t5 !== e4.anchorNode && e4.selectAllChildren(t5);
              }
              n3.FD();
            })), n3.D3("click", (function(t5) {
              var e4, i4, r2;
              n3.XD && n3.qD(), (r2 = (i4 = (e4 = n3.Vv) && (0, a.jf)(e4)) && i4.il) && r2.XD && !r2.rl && r2.qD(), n3.Ugt(t5);
            })), n3.D3("compositionstart", (function() {
              n3.Egt = true;
            })), n3.D3("compositionend", (function(t5) {
              n3.Egt = false, (w.edge || w.chrome || w.msie) && n3.Lgt(t5);
            }))));
          }, t3.prototype.Zmt = function() {
            var t4, e3 = this, i3 = e3.Ti;
            i3 && ((t4 = (0, a.GC$)(i3)).removeData(J), t4.removeData(X), t4.removeAttr(S), t4.data(n2.CONST_FORMULATEXTBOX) && t4.data(n2.CONST_FORMULATEXTBOX, s), e3.E3(), e3.unbindAll(), e3.rl && ((0, a.GC$)(e3.Emt).empty(), e3.Emt = s), e3.Ti = s);
          }, t3.prototype.Lgt = function(t4) {
            var n3 = this, e3 = (0, a.GC$)(n3.Ti), i3 = n3.text(), r2 = { r: s };
            a.Worksheet.et(n3.zmt(), "preProcessFormulaTextBoxEdit", r2), r2.r ? t4.preventDefault() : e3.data(J) !== i3 && (n3.Egt || e3.data(J, i3), n3.Fgt());
          }, t3.prototype.Ugt = function(t4) {
            var n3;
            w && w.msie ? setTimeout(/* @__PURE__ */ (function(t5, n4) {
              return function() {
                t5.zgt(t5, n4);
              };
            })(this, t4), 10) : this.zgt(this, t4);
          }, t3.prototype.zgt = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2 = n3.keyCode, c2 = s2 === E || s2 === R || s2 === V || s2 === H || s2 === U || s2 === G || s2 === B || s2 === P;
            if (t4.ogt || (c2 = c2 || s2 === L || s2 === F), e3 = void 0 !== n3.button, c2 || e3) {
              if (i3 = t4.Ti, r2 = (0, a.GC$)(i3), (o2 = t4.Xmt(i3)).start !== o2.end) return;
              u2 = o2.end, r2.data(X) !== u2 && (r2.data(X, u2), t4.ki(D, {}), t4.w6());
            }
          }, t3.prototype.Dgt = function(t4) {
            var n3, e3, i3 = t4 || this.zmt();
            return i3 ? (n3 = i3.ui, (e3 = i3.vA) && (n3 = e3.row), n3) : c;
          }, t3.prototype._gt = function(t4) {
            var n3, e3, i3 = t4 || this.zmt();
            return i3 ? (n3 = i3.ci, (e3 = i3.vA) && (n3 = e3.col), n3) : c;
          }, t3.prototype.Qvt = function(t4) {
            var n3, e3, i3 = t4 || this.zmt();
            return i3 ? (n3 = a.SheetArea.viewport, (e3 = i3.vA) && (n3 = e3.sheetArea), n3) : c;
          }, t3.prototype.zmt = function() {
            if (this.Vv) return (0, a.jf)(this.Vv);
          }, t3.prototype.parseInternal = function(t4, n3, e3, o2, u2) {
            var s2, f2, l2, h2;
            return void 0 === u2 && (u2 = a.SheetArea.viewport), s2 = this, f2 = [], ((0, a.kf)(t4) || t4 && s2.vao) && rt(t4, '"') % 2 != 1 ? (l2 = new i2.Parser(), h2 = r.Vgt(l2, t4, n3, e3, o2, true, c, c, u2), f2 = s2.Ygt(h2, t4), s2.vao && t4 && f2.map((function(t5) {
              return t5.text;
            })).join("") !== t4 ? [{ text: t4, type: 17 }] : f2) : (f2.push({ text: t4, type: 17 }), f2);
          }, t3.prototype.Ost = function(t4) {
            var n3, e3, i3, r2 = this.Vv && 1 === this.Vv.options.referenceStyle, o2 = u.wvt.Rvt, a2 = this.zmt();
            return r2 && o2 && o2.Mf && o2.Mf !== a2 && (a2 = o2.Mf), n3 = this.Dgt(a2), e3 = this._gt(a2), i3 = this.Qvt(a2), this.parseInternal(t4, a2, n3, e3, i3);
          }, t3.prototype.Fgt = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.text();
            "\n" !== o2 && o2.indexOf("\n") >= 0 ? r2.ki(j, { type: T }) : (t4 = r2.Ti, n3 = (0, a.GC$)(t4), r2.Fmt = r2.Ost(o2), r2.vmt(t4) ? r2.Egt || ("\n" === o2 ? (n3.empty(), r2.ki(j, { type: T })) : (e3 = r2.caret(), r2.Pmt(r2.Fmt), r2.ki(j, { type: T }), r2.caret(e3))) : r2.ki(j, { type: T }), e3 = r2.caret(), n3.data(X) !== e3 && (n3.data(X, e3), r2.ki(D, {})), (i3 = r2.zmt()) && i3.ignoreShowFunctions && i3.ignoreShowFunctions() || (r2.Zgt(), r2.Tgt || r2.w6()));
          }, t3.prototype._CR = function() {
            return o.Common.CultureManager.Fe().NumberFormat;
          }, t3.prototype.Qgt = function() {
            var t4 = this._CR();
            return t4 && t4.arrayGroupSeperator || ";";
          }, t3.prototype.Kgt = function() {
            var t4 = this._CR();
            return t4 && t4.arrayListSeparator || ",";
          }, t3.prototype.fgt = function() {
            var t4 = this._CR();
            return t4 && t4.listSeparator || ",";
          }, t3.prototype.Jgt = function() {
            var t4 = this._CR();
            return t4 && t4.numberDecimalSeparator || ".";
          }, t3.prototype.Ygt = function(t4, n3) {
            var e3, r2, a2, u2, s2, c2, f2 = [], l2 = [], h2 = n3 && "=" !== n3[0], d2 = this.Qgt(), v2 = this.Kgt(), p2 = false;
            for (e3 = 0; e3 < t4.length; e3++) if (!(e3 > 0 && e3 < t4.length - 1 && ";" === t4[e3 - 1].text && "," === t4[e3].text && "ARRAYROW" === t4[e3 + 1].text)) if (r2 = t4[e3], a2 = this.Xgt(r2, l2), u2 = r2.text, 2 === a2) f2.push({ text: u2, type: a2 });
            else if (p2 && 8 === a2 && "," === u2) f2.push({ text: v2, type: 9 });
            else if (p2 && 8 === a2 && ";" === u2) f2.push({ text: d2, type: 10 });
            else if (8 === a2) f2.push({ text: u2, type: a2 });
            else if (3 === a2) "ARRAY" === u2 && (p2 = true), f2.push({ text: "{", type: 3 });
            else if (4 === a2) "ARRAY" === u2 || "}" === u2 ? (p2 = false, f2.push({ text: "}", type: 4 })) : f2.push({ text: u2, type: 4 });
            else if (6 === a2) f2.push({ text: ")", type: a2 });
            else if (13 === a2) f2.push({ text: o.Common.st.Ge(u2), type: a2, ranges: r2.ranges, allowDrag: r2.canDrag });
            else {
              if (1 === a2 && h2) continue;
              null !== a2 && (11 === a2 && t4[e3 + 1] && "#" === t4[e3 + 1].text && r2.ranges && r2.ranges.length > 0 ? (s2 = new i2.CalcReference(this.zmt().qgt, r2.ranges).getSpillRef()) && s2.$gt && (e3++, r2.ranges = s2.$gt, u2 += "#") : 11 === a2 && u2.length === r2.endIndex - r2.index && "!" === n3[r2.endIndex] && (u2 += "!"), c2 = { text: u2, type: a2, ranges: r2.ranges, allowDrag: r2.canDrag }, 11 === a2 && (c2.sheetArea = r2.sheetArea), f2.push(c2));
            }
            return f2;
          }, t3.prototype.Xgt = function(t4, n3) {
            var e3, i3 = t4.type, r2 = t4.subType, o2 = t4.text, a2 = t4.value;
            if (1 === i3) {
              if (1 === r2) return "ARRAY" === o2 || "ARRAYROW" === o2 ? (n3.push(3), 3) : (n3.push(5), "@" === a2 || "(" === a2.trim() ? 5 : 2);
              if (2 === r2) {
                if (")" === a2.trim()) return 6;
                if (n3.length > 0) {
                  if (3 === (e3 = n3[n3.length - 1])) return n3.pop(), 4;
                  if (5 === e3) return n3.pop(), 6;
                }
              }
              if ("=" === a2.trim()) return 1;
            } else if (3 === i3) {
              if (0 === r2) return 8;
            } else {
              if (5 === i3 || 6 === i3 || 4 === i3) return 7;
              if (0 === i3) return 7 === r2 || 0 === r2 || 12 === r2 ? 11 : 5 === r2 ? 12 : 4 === r2 ? 13 : 3 === r2 ? 14 : 6 === r2 ? 16 : 14;
              if (7 === i3) return 15;
              if (8 === i3) return 17;
            }
            return 17;
          }, t3.prototype.lgt = function() {
            var t4, n3 = this, e3 = n3.Ti, i3 = n3.Fmt, r2 = "", o2 = i3 && i3.length;
            for (t4 = 0; t4 < o2; t4++) r2 += i3[t4].text;
            n3.$mt(e3) ? e3.value = r2 : (n3.vmt(e3) || n3.LIr(e3)) && n3.Pmt(i3);
          }, t3.prototype.$mt = function(t4) {
            var n3 = t4 && t4.tagName;
            return "TEXTAREA" === n3 || "INPUT" === n3;
          }, t3.prototype.LIr = function(t4) {
            var n3 = t4 && t4.tagName, e3 = t4 && t4.getAttribute("gcuielement");
            return "DIV" === n3 || "gcComboBox" === e3;
          }, t3.prototype.vmt = function(t4) {
            return t4 && "DIV" === t4.tagName && "true" === t4.contentEditable;
          }, t3.prototype.hfe = function(t4) {
            return t4 && "DIV" === t4.tagName;
          }, t3.prototype.t2t = function(t4) {
            return "gcEditingInput" === (0, a.GC$)(t4).attr(S);
          }, t3.prototype.D3 = function(t4, n3, e3) {
            var i3 = this.Ti;
            i3 && t4 && (t4 = t4.split(/\s+/).join(A + " "), (0, a.GC$)(i3).bind(t4 + A, n3, e3));
          }, t3.prototype._3 = function(t4, n3) {
            var e3 = this.Ti;
            e3 && t4 && (t4 = t4.split(/\s+/).join(A + " "), (0, a.GC$)(e3).unbind(t4 + A, n3));
          }, t3.prototype.E3 = function() {
            var t4 = this.Ti;
            t4 && (0, a.GC$)(t4).unbind(A);
          }, t3.prototype.ki = function(t4, n3) {
            var e3 = this.Ti;
            e3 && (0, a.GC$)(e3).trigger(t4, n3);
          }, t3.prototype.cgt = function(t4) {
            var n3, e3, i3, r2, o2;
            if (t4 <= 0) return s;
            if ((e3 = (n3 = this.Fmt) && n3.length) > 0) {
              for (i3 = 0, r2 = void 0, o2 = 0; o2 < e3; o2++) if ((i3 += (r2 = n3[o2]).text.length) >= t4) return r2;
            }
            return s;
          }, t3.prototype.n2t = function() {
            var t4, n3, e3, i3, r2, o2, u2 = this.Vv;
            if (u2 && (t4 = (0, a.jf)(u2)) && (n3 = t4.getCalcService().allowDynamicArray, e3 = t4.il)) {
              for (r2 = { funcs: i3 = [].concat(e3.ugt), isFuncGet: false }, a.Worksheet.et(t4, "getAllFunctions", r2), o2 = (i3 = r2.funcs).length - 1; o2 >= 0; o2--) !n3 && i3[o2] && dt(i3[o2].name) ? i3.splice(o2, 1) : y(i3[o2].isFunc) && (i3[o2].isFunc = true);
              return r2.isFuncGet ? i3 : i3.concat(this.e2t(u2, t4)).concat(this.i2t(u2.sheets)).concat(this.r2t(u2));
            }
            return this.ugt;
          }, t3.prototype.e2t = function(t4, n3) {
            var e3, i3 = [], r2 = n3.getCustomNames();
            return r2 && a.GC$.each(r2, (function(t5, n4) {
              i3.push({ name: n4.Zc, description: n4.TZ });
            })), (e3 = t4.getCustomNames()) && a.GC$.each(e3, (function(t5, n4) {
              i3.push({ name: n4.Zc, description: n4.TZ });
            })), i3;
          }, t3.prototype.i2t = function(t4) {
            var n3 = [];
            return t4.forEach((function(t5) {
              var e3, r2, o2 = t5.tables;
              if (o2 && (e3 = o2.all())) for (r2 = 0; r2 < e3.length; r2++) n3.push({ name: e3[r2].name(), description: i2.sR().Fbx_TableName_Description + e3[r2].name() });
            })), n3;
          }, t3.prototype.r2t = function(t4) {
            var n3, e3 = [], r2 = t4.mp;
            for (n3 = 0; n3 < r2.length; n3++) r2[n3]._gi === a.SheetType.tableSheet && e3.push({ name: r2[n3].name(), description: i2.sR().Fbx_TableSheetName_Description + r2[n3].name() });
            return e3;
          }, t3.prototype.o2t = function(t4, n3) {
            var e3, i3, r2, o2;
            for (t4 = C(t4), m.OS(t4, "[") && (t4 = t4.substr(t4.lastIndexOf("[") + 1), t4 = m.Vi(t4, "@", "")), e3 = [], i3 = n3 && n3.length, o2 = 0; o2 < i3; o2++) r2 = n3[o2], 0 === C(ut(r2.name)).indexOf(t4) && e3.push(r2);
            return e3;
          }, t3.prototype.a2t = function() {
            var t4, n3, e3, i3, r2, o2 = this.caret();
            if (o2 <= 0) return "";
            if ((n3 = (t4 = this.Fmt) && t4.length) > 0) for (e3 = 0, i3 = void 0, r2 = 0; r2 < n3; r2++) {
              if (e3 + (i3 = t4[r2]).text.length >= o2) return i3.text.substring(0, o2 - e3);
              e3 += i3.text.length;
            }
            return "";
          }, t3.prototype.u2t = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, c2, f2 = this.caret(), l2 = this.Fmt, h2 = l2 && l2.length, d2 = [], v2 = 0;
            for (n3 = 0; n3 < h2; n3++) {
              if (t4 = l2[n3], d2.push(t4), 6 === t4.type) {
                for (e3 = 0; d2.length > 0; ) if (6 === (i3 = d2.pop()).type && e3++, 5 === i3.type && e3--, 0 === e3) {
                  d2.length > 0 && (i3 = d2[d2.length - 1]) && 2 === i3.type && d2.pop();
                  break;
                }
              }
              if ((v2 += t4.text.length) >= f2) break;
            }
            if (d2.length > 0) {
              for (r2 = 0; d2.length > 0; ) if (8 === (t4 = d2.pop()).type) r2++;
              else if (2 === t4.type) {
                for (o2 = C(t4.text), u2 = (a2 = this.n2t()) && a2.length, c2 = void 0, n3 = 0; n3 < u2; n3++) if (c2 = a2[n3], C(ut(c2.name)) === o2) return { func: c2, activeParamterIndex: r2, isFunc: c2.isFunc };
                break;
              }
            }
            return s;
          }, t3.prototype.Zgt = function() {
            var t4, n3, e3, i3, r2, o2, u2, s2, c2 = this, f2 = c2.s2t(), l2 = c2.ogt && ((0, a.kf)(c2.text()) || c2.vao) && f2 && f2.length > 0 && (!c2.XD || c2.Pve) && !c2.Egt;
            if (!l2 || c2.rl && !c2.Pve) c2.f2t();
            else {
              for (c2.c2t(), t4 = c2.Kmt, f2.length > 8 ? (t4.style.height = "204px", t4.style.overflowY = "scroll") : (t4.style.height = "auto", t4.style.overflowY = ""), n3 = "", e3 = f2.length, i3 = void 0, r2 = 0; r2 < e3; r2++) n3 += "<div class='gcsj-func-ac-row'><div class='gcsj-func-ac-row-name' isFunc=" + (i3 = f2[r2]).isFunc + ">" + ut(i3.name) + "</div><div class='gcsj-func-ac-row-description'>" + (i3.description || "") + "</div></div>";
              (o2 = (0, a.GC$)(c2.Kmt)).html(n3).show(), c2.Tgt = true, (u2 = o2.find(N)).length > 0 && (s2 = "gcsj-ac-row-active", (0, a.GC$)(u2[0]).addClass(s2), u2.bind("mouseover", (function() {
                c2.$cr || (u2.removeClass(s2), (0, a.GC$)(this).addClass(s2));
              })), u2.bind("click", (function() {
                c2.Ggt();
              })), c2.Ngi && u2.bind("mousedown", (function(t5) {
                c2.Ggt(), b(t5);
              }))), c2.u_();
            }
          }, t3.prototype.Qmt = function() {
            var t4 = this, n3 = (0, a.GC$)(t4.Kmt).find(N);
            n3 && (n3.unbind("mouseover"), n3.unbind("click"), t4.Ngi && n3.unbind("mousedown"));
          }, t3.prototype.s2t = function() {
            var t4, n3, e3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.cgt(c2.caret()), l2 = f2 && f2.text, h2 = [], d2 = c2.Fmt.indexOf(f2);
            if (f2 && 14 === f2.type) return h2;
            if (t4 = this._getTable(d2), (n3 = c2.h2t(d2, t4)).length > 0) {
              if (e3 = [], !t4.Mf.NMi) for (a2 in r2 = JSON.parse(JSON.stringify(i2.sR().d2t)), o2 = i2.getMapping() && i2.getMapping().tableFunctionsMapping, r2) (u2 = o2 && o2[r2[a2].name]) && (r2[a2].name = u2), e3.push(r2[a2]);
              if (h2 = h2.concat(n3).concat(e3), m.dT(l2, "[") || m.dT(l2, "[@")) return h2;
            } else h2 = this.n2t();
            return s2 = [], (l2 = c2.a2t()) && (s2 = c2.o2t(l2, h2)), s2;
          }, t3.prototype._getTable = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2 = this.Fmt;
            return t4 < 0 || !c2 || t4 >= c2.length ? null : (e3 = (n3 = this.Vv) && (0, a.jf)(n3), y(t4) && (t4 = c2.length), e3 ? (i3 = c2[t4], r2 = m.gmt(i3.text, "["), u2 = (o2 = e3.tables) && o2.findByName(r2), y(u2) && (s2 = n3.getSheetTab(r2)) && s2._gi === a.SheetType.tableSheet && (u2 = s2), u2) : null);
          }, t3.prototype.h2t = function(t4, n3) {
            var e3 = [];
            return y(n3) || (e3 = ct(n3).columns), e3;
          }, t3.prototype.f2t = function() {
            (0, a.GC$)(this.Kmt).hide(), this.Tgt = false;
          }, t3.prototype.Pgt = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2 = this, c2 = (0, a.GC$)(this.Kmt).find(N), h2 = c2.length;
            if (0 !== h2) {
              if (n3 = "gcsj-ac-row-active", e3 = 0, t4) {
                for (i3 = 0; i3 < h2; i3++) if ((0, a.GC$)(c2[i3]).hasClass(n3)) {
                  e3 = i3 + t4;
                  break;
                }
              }
              r2 = (0, a.GC$)(this.Kmt).scrollTop(), c2.removeClass(n3), o2 = 0, h2 > 0 && (o2 = c2[0].offsetHeight), e3 = f(e3, 0), u2 = c2[e3 = l(e3, h2 - 1)], (0, a.GC$)(u2).addClass(n3), this.$cr = true, u2.offsetTop + u2.offsetHeight > (0, a.GC$)(this.Kmt).scrollTop() + (0, a.GC$)(this.Kmt).height() ? (0, a.GC$)(this.Kmt).scrollTop((0, a.GC$)(this.Kmt).scrollTop() + o2) : u2.offsetTop < (0, a.GC$)(this.Kmt).scrollTop() ? (0, a.GC$)(this.Kmt).scrollTop(u2.offsetTop) : (0, a.GC$)(this.Kmt).scrollTop(r2), setTimeout((function() {
                delete s2.$cr;
              }));
            }
          }, t3.prototype.Ggt = function() {
            var t4, n3, e3, i3, r2, o2, u2, c2, f2, l2, h2, d2, v2, p2, g2, b2 = this, y2 = (0, a.GC$)(b2.Kmt).find(".gcsj-ac-row-active .gcsj-func-ac-row-name"), w2 = y2.text(), M2 = "true" === y2.attr("isFunc");
            if (w2) {
              for (t4 = b2.caret(), e3 = (n3 = b2.Fmt) && n3.length, i3 = 0, r2 = 0, o2 = 0, u2 = s; o2 < e3 && !(i3 + (r2 = (u2 = n3[o2]).text.length) >= t4); ) o2++, i3 += r2;
              c2 = t4 - i3, f2 = u2.text, l2 = 0, h2 = 0, m.OS(f2, "[") ? -1 === (l2 = f2.lastIndexOf("[", c2 - 1)) ? (l2 = f2.indexOf("["), u2.text = -1 === l2 ? w2 : w2 + f2.substr(l2), l2 = 0) : (l2++, "@" === f2.charAt(l2) && (l2 += 1), -1 === (h2 = f2.indexOf("]", c2)) && (h2 = f2.length), u2.text = f2.substring(0, l2) + w2 + f2.substr(h2)) : (u2.text = w2, (d2 = f2.substr(c2)) && (v2 = b2.Ost("=" + d2)).length > 1 && n3.splice(o2 + 1, 0, v2[1])), u2.type = M2 ? 2 : 11, g2 = n3[p2 = o2 + 1], !M2 || g2 && 5 === g2.type || n3.splice(p2, 0, { text: "(", type: 5 }), b2.f2t(), b2.Ti.focus(), b2.lgt(), b2.caret(i3 + w2.length + l2 + (M2 ? 1 : 0)), b2.w6(), b2.Fmt = b2.Ost(b2.text()), b2.ki(j, {});
            }
          }, t3.prototype.w6 = function() {
            var t4, n3, e3, r2, o2, u2, c2, f2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2 = this, x2 = T2.zmt();
            if (!(x2 && x2.ignoreShowFunctions && x2.ignoreShowFunctions())) if (T2.Tgt && T2.f2t(), (t4 = T2.u2t()) !== s && true === t4.isFunc) if (n3 = T2.fgt(), !(e3 = T2.agt && ((0, a.kf)(T2.text()) || T2.vao) && t4 && !T2.XD && !T2.Egt) || T2.rl && !T2.Pve) T2.c2t();
            else {
              for (u2 = (o2 = (r2 = t4.func).parameters) && o2.length, c2 = l(u2 - 1, t4.activeParamterIndex), f2 = void 0, h2 = "", d2 = 0; d2 < u2; d2++) {
                if (v2 = (f2 = o2[d2]).name, f2.optional) {
                  if (p2 = [v2], f2.repeatable) for (g2 = d2 + 1; g2 < u2 && (!y(o2[g2]) && o2[g2].optional && o2[g2].repeatable); g2++) p2.push(o2[g2].name), d2++;
                  v2 = "[" + p2.join(n3 + " ") + "]";
                }
                f2.repeatable && (v2 += n3 + " ..."), m2 = d2 === u2 - 1 ? "" : n3 + " ", h2 += v2 = d2 === c2 ? "<span class='gcsj-func-help-paramter gcsj-func-help-paramter-active'>" + v2 + "</span>" + m2 : "<span class='gcsj-func-help-paramter'>" + v2 + "</span>" + m2;
              }
              S2 = (b2 = "<div class='gcsj-func-help-title'><div class='gcsj-func-help-formula'><span class='gcsj-func-help-formula-name'>" + ut(r2.name) + "</span><span class='gcsj-func-help-paramter-paren'>(</span>" + h2 + "<span class='gcsj-func-help-paramter-paren'>)</span></div></div>") + (C2 = "<div class='gcsj-func-help-body'>" + (M2 = "<div class='gcsj-func-help-section-content'>" + (w2 = "<div class='gcsj-func-help-section'><div class='gcsj-func-help-section-title'>" + i2.sR().Fbx_Summary + "</div><div class='gcsj-func-help-section-content'>" + (r2.description || "") + "</div></div>") + "</div>") + "</div>"), (0, a.GC$)(T2.Jmt).html(S2).show(), T2.Rgt = true, T2.u_();
            }
            else T2.c2t();
          }, t3.prototype.c2t = function() {
            (0, a.GC$)(this.Jmt).hide(), this.Rgt = false;
          }, t3.prototype.close = function() {
            this.f2t(), this.c2t();
          }, t3.prototype.$D = function(t4, n3) {
            var e3 = t4.ctrlKey || t4.shiftKey || t4.altKey || t4.metaKey, i3 = t4.keyCode, r2 = t4.ctrlKey, o2 = t4.altKey, a2 = t4.metaKey, u2 = t4.srcElement || t4.target;
            return t4.target === this.Ti && (46 === i3 || 8 === i3) || !this.XD && (!(!this.Tgt || e3 || i3 !== F && i3 !== L && i3 !== B) || !!(u2 && n3 && n3.isEditing && "gcAttachedFormulaTextBox" === u2.getAttribute("gcUIElement")) && (67 === i3 && (r2 || a2) && !o2 || 88 === i3 && (r2 || a2) && !o2));
          }, t3.prototype.u_ = function() {
            var t4, n3, e3, i3, r2, o2, u2, c2, f2, l2, h2, d2, v2, p2, m2 = this, b2 = s;
            m2.Tgt ? b2 = m2.Kmt : m2.Rgt && (b2 = m2.Jmt), b2 && (b2.style.position = "fixed", n3 = m2.Ti.getBoundingClientRect(), m2.t2t(m2.Ti) && (e3 = null === (t4 = m2.Ti.parentElement) || void 0 === t4 ? void 0 : t4.parentElement) && (n3 = e3.getBoundingClientRect()), r2 = (i3 = b2.getBoundingClientRect()).height, o2 = i3.width, u2 = g.body.clientHeight, c2 = g.body.clientWidth, f2 = n3.left, l2 = n3.top, h2 = n3.width, (v2 = l2 + (d2 = n3.height)) + r2 > u2 && l2 - r2 >= 0 && (v2 = l2 - r2), (p2 = f2) + o2 > c2 && f2 + h2 - o2 >= 0 && (p2 = f2 + h2 - o2), (0, a.GC$)(b2).css("top", v2).css("left", p2));
          }, t3.prototype.focus = function() {
            (0, a.GC$)(this.Ti).focus();
          }, t3.prototype.getPopupElements = function() {
            return [this.Kmt, this.Jmt, this.F0];
          }, t3.prototype.Pmt = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = "", s2 = "", c2 = t4 && t4.length, f2 = 0;
            for (e3 = 0; e3 < c2; e3++) i3 = "", 11 === (n3 = t4[e3]).type && (i3 = " style='color: " + a2.pmt(f2) + "'", f2++), a2.F0.innerText = n3.text, r2 = a2.F0.innerHTML, a2.vao && (r2 = r2.replace(/ /g, "&nbsp;")), u2 += "<span" + i3 + " class='gcsj-func-color-text'>" + r2 + "</span>", s2 += n3.text;
            if (s2 || a2.text()) if (o2 = a2.Ti, u2) o2.innerHTML = "<span class='gcsj-func-color-content'>" + u2 + "</span>";
            else for (; o2.firstChild; ) o2.removeChild(o2.firstChild);
          }, t3.prototype.tgt = function(t4, n3) {
            var e3, i3, r2, o2 = (0, a.GC$)(t4).find(".gcsj-func-color-content .gcsj-func-color-text"), u2 = o2.length;
            for (n3 = f(0, n3), r2 = 0; r2 < u2; r2++) if ((n3 -= (i3 = (e3 = o2[r2]).innerText).length) <= 0) return { node: e3, offset: i3.length + n3 };
            return i3 ? { node: e3, offset: i3.length } : s;
          }, t3.prototype.y6 = function(t4, n3) {
            var e3 = p.getSelection(), i3 = this.Ti.children[0], r2 = document.createRange();
            r2.setStart(i3, t4), r2.setEnd(i3, n3), e3.removeAllRanges(), e3.addRange(r2);
          }, t3.prototype.mmt = function(t4) {
            var n3 = this, e3 = n3.Ti, i3 = n3.vmt(e3), r2 = n3.text();
            i3 && r2 && (r2 = t4 ? r2.substr(0, r2.length - 2) : r2, n3.Nmt.push(r2));
          }, t3.prototype.egt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2;
            if (n3) for (e3 = 0, i3 = 0, r2 = 0, o2 = n3.length, a2 = 0; a2 < t4.length; a2++) {
              for (u2 = t4[a2].text; i3 < o2; i3++) if ((s2 = n3[i3].toUpperCase()) === (c2 = u2[r2] ? u2[r2].toUpperCase() : void 0)) r2 += 1;
              else {
                if ("\n" !== s2) break;
                i3 + 1 < o2 && n3[i3 + 1] === q && (i3 += 1);
              }
              f2 = n3.substring(e3, i3), a2 === t4.length - 1 && "\n" === f2[f2.length - 1] && (f2 = f2.substring(0, f2.length - 1)), t4[a2].text = f2, e3 = i3, r2 = 0;
            }
            return t4;
          }, t3.prototype.ngt = function(t4) {
            var n3, e3, i3, r2, o2;
            if ("=" === t4[0] && -1 !== t4.indexOf("\n")) {
              for (n3 = [], e3 = t4.length, i3 = false, r2 = 0; r2 < e3; r2++) '"' === (o2 = t4[r2]) && (i3 = !i3), i3 || "\n" !== o2 ? n3.push(o2) : r2 + 1 < e3 && t4[r2 + 1] === q && (r2 += 1);
              return n3.join("");
            }
          }, t3.prototype.isOutFormulaTextBox = function(t4) {
            if (0 === arguments.length) return this.Ngi;
            this.Ngi = t4;
          }, t3;
        })(), n2.FormulaTextBox = it;
      }, "./dist/plugins/group/group-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j = this && this.qKr || (D = function(t3, n3) {
          return D = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, D(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          D(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), D;
        function _(t3) {
          var n3, e3;
          return O(t3.v2t, t3.Mf);
        }
        function O(t3, n3) {
          return t3 ? n3.rowOutlines : n3.columnOutlines;
        }
        function E(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = false;
          return (t3 ? a2.canExecute() : a2.canUndo()) && (n3 = a2.Mf, e3 = a2.tT.index, i3 = a2.tT.count, r2 = _(a2), n3 && r2 && !g(e3) && !g(i3) && (o2 = t3 ? r2.group : r2.ungroupRange, a2.X5(n3, true), o2.call(r2, e3, i3), a2.q5(n3, true), u2 = true)), u2;
        }
        function R(t3, n3, e3, i3, r2) {
          var o2 = 0, a2;
          for (a2 = n3; a2 <= e3 && a2 < i3; a2++) o2 += r2.call(t3, a2) * t3.zoom();
          return o2;
        }
        function L(t3, n3, e3, i3, r2) {
          var o2 = 0, a2;
          for (a2 = n3; a2 < i3 && o2 < e3; a2++) n3++, o2 += r2.call(t3, a2) * t3.zoom();
          return n3 >= i3 ? i3 - 1 : n3;
        }
        function F(t3, n3, e3, i3, r2) {
          if (n3 < i3) return i3;
          if (n3 > r2) return r2;
          for (var o2 = n3; o2 <= r2; o2++) if (e3.call(t3, o2)) return o2;
          return -1;
        }
        function B(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2 = 0, c2 = -1;
          for (u2 = e3; u2 >= 0; u2--) if ((s2 += r2.call(t3, u2)) >= i3) {
            if (u2 < n3) {
              c2 = s2 > i3 ? u2 + 1 : u2;
              break;
            }
            c2 = n3;
            break;
          }
          return c2 < o2 && (c2 = o2), c2 > a2 && (c2 = a2), c2;
        }
        function P(t3, n3, e3, i3, r2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = e3 ? t3.getRowCount() : t3.getColumnCount(), T2 = void 0, x2 = O(e3, t3), A2 = x2.KMi;
          i3 < 0 || i3 >= S2 || A2 || (u2 = (a2 = 1 === x2.direction()) ? i3 - 1 : i3 + 1, (0, o.isIndexValid)(x2, u2) && (s2 = t3.Fi(), c2 = e3 ? t3.frozenRowCount() : t3.frozenColumnCount(), f2 = e3 ? t3.frozenTrailingRowCount() : t3.frozenTrailingColumnCount(), l2 = e3 ? s2.Ty : s2.Uy, h2 = e3 ? t3.Ny : t3.Vy, d2 = e3 ? t3.getRowHeight : t3.getColumnWidth, v2 = e3 ? t3.getViewportTopRow : t3.getViewportLeftColumn, p2 = e3 ? t3.getViewportHeight : t3.getViewportWidth, g2 = v2.call(t3, 1), (w2 = x2.find(u2, r2)) && (M2 = a2 ? w2.start : i3, C2 = a2 ? i3 : w2.end, a2 ? (n3 ? M2 = i3 : M2 < c2 && (M2 = c2), M2 < g2 && (g2 = M2), C2 >= S2 - f2 && (C2 = S2 - f2 - 1), m2 = p2.call(t3, 1), m2 += h2 ? 0 : l2, (b2 = R(t3, g2, C2, S2, d2)) > m2 && (g2 = L(t3, g2, b2 - m2, S2, d2)), y2 = F(t3, g2, d2, c2, S2 - 1)) : (n3 ? C2 = i3 : C2 >= S2 && (C2 = S2 - 1), C2 >= S2 - f2 && (C2 = S2 - f2 - 1), M2 < g2 ? y2 = F(t3, M2, d2, c2, S2 - 1) : (m2 = p2.call(t3, 1), m2 += h2 ? 0 : l2, (b2 = R(t3, g2, C2, S2, d2)) > m2 && (y2 = B(t3, M2, C2, m2, d2, c2, S2 - 1)))), e3 && y2 !== T2 ? (t3.Tb = y2, t3.tw()) : e3 || y2 === T2 || (t3.Ab = y2, t3.ow()))));
        }
        function G(t3, n3, e3, i3, r2) {
          var a2, u2, s2, c2 = n3;
          i3.suspendPaint(), (u2 = 1 === (a2 = O(r2, i3)).direction() ? c2 - 1 >= 0 && a2.find(c2 - 1, e3) : c2 + 1 < a2.items.length && a2.find(c2 + 1, e3)) && a2.setCollapsed(c2, t3), g(c2) && (c2 = (0, o.getExtendIndex)(i3, r2, e3)), P(i3, t3, r2, c2, e3), (s2 = i3.getCalcService()).Vct = 4, i3.recalcRange(0, 0, i3.getRowCount(), i3.getColumnCount()), delete s2.Vct, i3.resumeCalcService(false), s2.Zct(), i3.resumePaint();
        }
        function U(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = false;
          return (t3 ? s2.canExecute() : s2.canUndo()) && (n3 = s2.Mf, e3 = s2.tT, i3 = _(s2), r2 = e3.collapsed, o2 = e3.index, a2 = e3.level, u2 = s2.v2t, !n3 || !i3 || g(r2) || g(o2) || g(a2) || (s2.X5(n3, true), t3 || (r2 = !r2), G(r2, o2, a2, n3, u2), s2.q5(n3, true, e3 && e3.sGr), c2 = true)), c2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Commands = n2.expandOutlineAction = void 0, i2 = e2("Common"), r = e2("Core"), Object.defineProperty(n2, "Commands", { enumerable: true, get: function() {
          return r.Commands;
        } }), o = e2("./dist/plugins/group/group.js"), a = r.Commands.ActionBase, u = r.GC$, s = "outlineColumn", c = "removeColumnOutline", f = "expandColumnOutline", l = "expandColumnOutlineForLevel", h = "outlineRow", d = "removeRowOutline", v = "expandRowOutline", p = "expandRowOutlineForLevel", g = i2.Common.lt.ht, m = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, e3) || this;
            return r2.v2t = i3, r2;
          }
          return j(n3, t3), n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.Mf, i3 = n4.tT;
            return r.Commands.startTransaction(e3.getParent(), i3), t4 = E.call(n4, true), r.Commands.endTransaction(e3.getParent(), i3), t4;
          }, n3.prototype.undo = function() {
            return E.call(this, false);
          }, n3;
        })(a), b = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, false) || this;
          }
          return j(n3, t3), n3;
        })(m), y = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, true) || this;
          }
          return j(n3, t3), n3;
        })(m), w = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, e3) || this;
            return r2.v2t = i3, r2;
          }
          return j(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2 = this, a2 = o2.Mf, u2 = false;
            return o2.canExecute() && (n4 = (t4 = o2.tT).index, e3 = t4.count, i3 = _(o2), a2 && i3 && !g(n4) && !g(e3) && (r.Commands.startTransaction(a2.getParent(), t4), o2.X5(a2, true), i3.ungroupRange(n4, e3), o2.q5(a2, true), r.Commands.endTransaction(a2.getParent(), t4), u2 = true)), u2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3 = this, i3 = false, o2 = e3.Mf;
            return e3.canUndo() && (t4 = r.Commands.TI(o2.name()), n4 = e3.tT[t4], o2 && n4 && (e3.X5(o2, true), o2.Ut.undo(n4), e3.q5(o2, true), i3 = true)), i3;
          }, n3;
        })(a), M = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, false) || this;
          }
          return j(n3, t3), n3;
        })(w), C = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, true) || this;
          }
          return j(n3, t3), n3;
        })(w), n2.expandOutlineAction = G, S = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, e3) || this;
            return r2.v2t = i3, r2;
          }
          return j(n3, t3), n3.prototype.canExecute = function() {
            var t4, n4, e3 = this, i3 = e3.Mf, r2 = i3.NMi;
            return !r2 || (t4 = e3.tT.level, n4 = _(e3), r2.detailColumnsVisible() || t4 < n4.getMaxLevel());
          }, n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.Mf, i3 = n4.tT;
            return r.Commands.startTransaction(e3.getParent(), i3), t4 = U.call(n4, true), r.Commands.endTransaction(e3.getParent(), i3), t4;
          }, n3.prototype.undo = function() {
            return U.call(this, false);
          }, n3;
        })(a), T = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, false) || this;
          }
          return j(n3, t3), n3;
        })(S), x = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, true) || this;
          }
          return j(n3, t3), n3;
        })(S), A = (function(t3) {
          function n3(n4, e3, i3) {
            var r2 = t3.call(this, n4, e3) || this;
            return r2.v2t = i3, r2;
          }
          return j(n3, t3), n3.prototype.canExecute = function() {
            var t4, n4, e3 = this, i3 = e3.Mf, r2 = i3.NMi;
            return !r2 || (t4 = e3.tT.level, n4 = _(e3), r2.detailColumnsVisible() || t4 <= n4.getMaxLevel());
          }, n3.prototype.execute = function() {
            var t4, n4, e3, i3, a2, u2 = this, s2 = u2.Mf, c2 = false;
            if (u2.canExecute() && (t4 = void 0, n4 = u2.tT.level, e3 = _(u2), s2 && e3 && !g(n4))) {
              for (r.Commands.startTransaction(s2.getParent(), u2.tT), u2.X5(s2, true), s2.suspendCalcService(), s2.Ut.m2t(u2.v2t), e3.Xst(), t4 = 0; t4 < n4; t4++) e3.expand(t4, true, true);
              e3.expand(n4, false, true), e3.$st(), s2.Ut.m2t(u2.v2t, true), i3 = u2.tT.index, g(i3) && (i3 = (0, o.getExtendIndex)(s2, u2.v2t, n4)), P(u2.Mf, false, u2.v2t, i3, n4 - 1), (a2 = s2.getCalcService()).Vct = 4, s2.recalcRange(0, 0, s2.getRowCount(), s2.getColumnCount()), delete a2.Vct, s2.resumeCalcService(false), a2.Zct(), u2.q5(s2, true), r.Commands.endTransaction(this.Mf.getParent(), this.tT), c2 = true;
            }
            return c2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, i3 = this, o2 = false;
            return i3.canUndo() && (t4 = i3.Mf, n4 = r.Commands.TI(t4.name()), e3 = i3.tT[n4], t4 && e3 && (i3.X5(t4, true), t4.Ut.undo(e3), o2 = true, i3.q5(t4, true))), o2;
          }, n3;
        })(a), I = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, false) || this;
          }
          return j(n3, t3), n3;
        })(A), k = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3, true) || this;
          }
          return j(n3, t3), n3;
        })(A), N = r.Commands.zA, r.Commands[s] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, b, n3, e3);
        } }, r.Commands[h] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, y, n3, e3);
        } }, r.Commands[c] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, M, n3, e3);
        } }, r.Commands[d] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, C, n3, e3);
        } }, r.Commands[f] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, T, n3, e3);
        } }, r.Commands[v] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, x, n3, e3);
        } }, r.Commands[l] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, I, n3, e3);
        } }, r.Commands[p] = { canUndo: true, execute: function(t3, n3, e3) {
          return N(t3, k, n3, e3);
        } }, r.Commands.g2t = function(t3) {
          t3.register(s, r.Commands[s]), t3.register(h, r.Commands[h]), t3.register(c, r.Commands[c]), t3.register(d, r.Commands[d]), t3.register(f, r.Commands[f]), t3.register(v, r.Commands[v]), t3.register(l, r.Commands[l]), t3.register(p, r.Commands[p]);
        };
      }, "./dist/plugins/group/group.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/group/group-actions.js"), n2), r(e2("./dist/plugins/group/group.js"), n2), r(e2("./dist/plugins/group/group.ns.js"), n2);
      }, "./dist/plugins/group/group.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function it(t3, n3) {
          t3.ki(r.Events.RangeGroupStateChanging, n3);
        }
        function rt(t3, n3) {
          t3.ki(r.Events.RangeGroupStateChanged, n3);
        }
        function ot(t3, n3) {
          var e3, i3 = t3.options, r2 = t3.isActualProtected();
          return !r2 || (e3 = i3.protectionOptions, n3 ? e3.allowOutlineRows : e3.allowOutlineColumns);
        }
        function at(t3, e3) {
          var i3, o2, a2, u2, s2 = e3.what === F, c2 = ot(t3, s2);
          t3.isEditing && t3.isEditing() || !c2 ? c2 || t3.jT(r.InvalidOperationType.groupProtected, (0, n2.getSR)().Exp_GROUP_PROTECTED) : (o2 = s2 ? "expandRowOutlineForLevel" : "expandColumnOutlineForLevel", it(t3, a2 = st(t3, s2, -1, i3 = e3.info.index, true)), u2 = ct(t3, s2, i3 - 1), a2 && false === a2.cancel && (t3.Qy().execute({ cmd: o2, sheetName: t3.name(), level: i3, index: u2 }), rt(t3, st(t3, s2, -1, i3, false))));
        }
        function ut(t3, e3) {
          var i3, o2, a2, u2, s2, c2, f2 = e3.what === P, l2 = ot(t3, f2);
          t3.isEditing && t3.isEditing() || !l2 ? l2 || t3.jT(r.InvalidOperationType.groupProtected, (0, n2.getSR)().Exp_GROUP_PROTECTED) : vt(f2, t3) && (a2 = o2 = (i3 = e3.info).index, u2 = i3.level, s2 = void 0, c2 = f2 ? "expandRowOutline" : "expandColumnOutline", 1 === i3.lineDirection ? o2-- : o2++, it(t3, s2 = st(t3, f2, o2, u2, true)), s2 && false === s2.cancel && (t3.Qy().execute({ cmd: c2, sheetName: t3.name(), index: a2, level: u2, collapsed: i3.isExpanded }), rt(t3, st(t3, f2, o2, u2, false))));
        }
        function st(t3, n3, e3, i3, r2) {
          var o2 = { sheet: t3, sheetName: t3.name(), isRowGroup: n3, index: e3, level: i3 };
          return r2 && (o2.cancel = false), o2;
        }
        function ct(t3, n3, e3) {
          var i3, r2, o2, a2 = n3 ? t3.rowOutlines : t3.columnOutlines;
          if (a2) {
            for (i3 = a2.items, r2 = false, o2 = 0; o2 < i3.length; o2++) if (i3[o2]) {
              if (i3[o2].level === e3) r2 = true;
              else if (r2) return o2;
            }
          }
          return n3 ? t3.getActiveRowIndex() : t3.getActiveColumnIndex();
        }
        function ft(t3, n3) {
          var e3, i3, o2, a2, u2, c2 = this, f2 = c2.gj(), l2 = f2.width, h2 = f2.height;
          return l2 || h2 ? (e3 = c2.Fi(), i3 = c2.options.rightToLeft, o2 = new r.Rect(f2.x, f2.y, l2, e3.height), a2 = new r.Rect(i3 ? e3.x : f2.x, f2.y, e3.width, h2), o2.contains(t3, n3) || a2.contains(t3, n3) ? ((u2 = lt(c2, t3, n3, f2.rowMaxLevel, true)) || (u2 = lt(c2, t3, n3, f2.colMaxLevel, false)), u2 || { what: "empty", info: s }) : s) : s;
        }
        function lt(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = new W(t3, r2, i3), c2 = u2.M2t(n3, e3, r2);
          if (c2) return { what: r2 ? F : B, info: c2 };
          for (o2 = ht(t3, r2, i3), a2 = 0; a2 <= 2; a2++) if (c2 = o2[a2].C2t(n3, e3, r2)) return { what: r2 ? P : G, info: c2 };
          return s;
        }
        function ht(t3, n3, e3) {
          var i3 = [new Q(t3, n3, 0, e3), new Q(t3, n3, 1, e3), new Q(t3, n3, 2, e3)], r2;
          for (r2 = 0; r2 <= 2; r2++) i3[r2].S2t();
          return i3;
        }
        function dt(t3, n3) {
          var e3 = n3 ? t3.width : t3.height;
          return f(0, (e3 - 2 * this.PADDING) / (this.$X + 2));
        }
        function vt(t3, n3) {
          return t3 ? n3.rowOutlines : n3.columnOutlines;
        }
        function pt(t3) {
          return 0 === t3.filter((function(t4) {
            return t4 !== c && t4 !== s;
          })).length;
        }
        function gt(t3, n3, e3) {
          var i3, r2, o2, a2;
          if (e3 > 0) {
            for (i3 = t3.items, r2 = void 0, o2 = void 0, a2 = [], r2 = 0; r2 < e3; r2++) a2.push(s);
            if (t3.items = i3 = i3.slice(0, n3).concat(a2, i3.slice(n3)), t3.T2t <= 0 && n3 > 0 && (o2 = i3[n3 - 1])) for (r2 = 0; r2 < e3; r2++) i3[n3 + r2] = new q(o2);
            t3.LGr() && t3.$Dr({ type: "insertGroupItem", index: n3, count: e3, groupItemInfo: o2, isRowGroup: t3.v2t }), Ct(t3);
          }
        }
        function mt(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2;
          e3 > 0 && (i3 = t3.THr({ type: "deleteGroupItem", index: n3, count: e3, isRowGroup: t3.v2t }), r2 = t3.LGr(), o2 = t3.items.splice(n3, e3), a2 = false, n3 > 0 && o2.length > 0 && (u2 = o2[0], s2 = t3.items[n3], u2 && u2.collapsed && (s2 ? u2.level === s2.level && (s2.collapsed = u2.collapsed, a2 = true) : t3.items.length > n3 && -1 === u2.level && u2.collapsed && (t3.items[n3] = new q(u2), a2 = true))), r2 && t3.$Dr({ type: "deleteGroupItem", index: n3, count: e3, nextItem: a2 ? t3.items[n3] : void 0, isRowGroup: t3.v2t }, i3), Ct(t3));
        }
        function bt(t3, n3, e3) {
          for (var i3, r2, o2, a2, u2 = s, c2 = t3.items, f2 = n3, l2 = w(c2); f2 < l2 && (!(i3 = c2[f2]) || i3.level < e3 || (u2 || (u2 = new X(t3, f2, f2, e3)), i3.level > e3 && (f2 = (r2 = bt(t3, f2, e3 + 1)).index, u2.addChild(r2.g)), f2 > u2.end && (u2.end = f2), !t3.isGroupEnd(f2, e3))); f2++) ;
          if (u2) for (o2 = u2.end + 1, a2 = u2.start; a2 < o2; a2++) c2[a2].groupInfo || (c2[a2].groupInfo = u2);
          return { g: u2, index: f2 };
        }
        function yt(t3, n3) {
          return n3 >= -1 && n3 < w(t3.items);
        }
        function wt(t3, n3, e3) {
          var i3, r2, o2 = t3 && t3.items;
          if (o2) for (i3 = o2[n3] && o2[n3].groupInfo; i3; ) {
            if ((r2 = i3.level) === e3) return i3;
            if (!(r2 > e3)) break;
            i3 = i3.parent;
          }
          return s;
        }
        function Mt(t3, n3) {
          switch (t3) {
            case "head":
            case "tail":
              return n3 === s;
            case "direction":
              return 1 === n3;
            case "itemsData":
              return 0 === w(n3);
            default:
              return false;
          }
        }
        function Ct(t3) {
          t3.A2t = s, t3.refresh();
        }
        function St(t3) {
          t3.I2t && !t3.A2t && (t3.A2t = t3.createRangeGroup());
        }
        function Tt(t3, e3, i3) {
          if (xt(t3, e3), !yt(t3, e3 + i3 - 1)) throw new Error((0, n2.getSR)().Exp_InvalidCount);
        }
        function xt(t3, e3) {
          if (!yt(t3, e3)) throw new Error((0, n2.getSR)().Exp_InvalidIndex);
        }
        function At(t3, n3) {
          for (var e3, i3 = t3.parent; i3 && (e3 = n3 ? t3.end === i3.end : t3.start === i3.start); ) t3 = i3, i3 = i3.parent;
          return t3;
        }
        function It(t3) {
          return t3 && new q(t3);
        }
        function kt(t3) {
          return { items: t3.items.map(It), head: It(t3.head), tail: It(t3.tail), x2t: t3.x2t, direction: t3.direction() };
        }
        function Nt(t3, n3) {
          t3.items = n3.items.map(It), t3.head = It(n3.head), t3.tail = It(n3.tail), t3.x2t = n3.x2t, t3.direction(n3.direction), t3.Y_r(true);
        }
        function jt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2;
          if (t3) for (o2 = 0 === i3, a2 = t3.rowItems, s2 = function(t4) {
            return o2 ? t4 < n3.rowCount : t4 >= 0;
          }, c2 = function(t4) {
            return o2 ? t4 + 1 : t4 - 1;
          }, f2 = void 0, l2 = [], h2 = (u2 = function() {
            return o2 ? 0 : n3.rowCount - 1;
          })(); s2(h2); h2 = c2(h2)) if ((d2 = a2[h2]) && -1 !== d2.level) {
            if (p2 = void 0, 0 === (v2 = d2.level)) p2 = f2;
            else {
              for (g2 = v2 - 1; x(p2) && g2 >= 0; ) p2 = g2 < l2.length ? l2[g2] : void 0, g2--;
              x(p2) && (p2 = f2);
            }
            for (v2 >= l2.length && (l2.length = v2 + 1), l2[v2] = h2, m2 = v2 + 1; m2 < l2.length; m2++) l2[m2] = void 0;
            y2 = !!(b2 = a2[p2]) && (b2.collapsed || b2.viewCollapsed), d2.viewCollapsed = y2, d2.parentIndex = p2, !y2 && e3[h2].hidden && (e3[h2].visible = false, x(r2.infos[h2]) && (r2.infos[h2] = {}), r2.infos[h2].visible = false);
          } else f2 = h2, l2.length = 0;
        }
        function Dt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2 = t3.itemsData;
          f2 && (a2 = f2[f2.length - 1], u2 = f2[f2.length - 2], s2 = a2 && a2.info, c2 = u2 && u2.info, s2 && (i3 && r2 && 1 === a2.count ? c2 && u2.index === a2.index - 1 && c2.level === s2.level - 1 ? c2.collapsed = true : n3 > 0 ? f2.splice(f2.length - 2, 0, { index: a2.index - 1, count: 1, info: { level: s2.level - 1, collapsed: true } }) : t3.head = { collapsed: true, level: e3 - 1 } : !i3 && o2 && (c2 && a2.index === u2.index + 1 && s2.level === c2.level - 1 ? a2.collapsed = true : n3 >= a2.index + a2.count && f2.push({ index: a2.index + a2.count, count: 1, info: { level: s2.level - 1, collapsed: true } }))));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Outline = n2.isIndexValid = n2.OutlineItemInfo = n2.OutlineInfo = n2.OutlineState = n2.OutlineDirection = n2.getExtendIndex = n2.getSR = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/group/group-actions.js"), a = e2("./dist/plugins/group/group.ns.js"), u = {}, s = null, c = void 0, f = Math.max, l = Math.min, h = Math.round, d = Math.ceil, v = r.GC$, p = v.each, g = r.I.fl, m = i2.Common.Uf, b = m.N2t, y = m.d5, w = m.tR, M = 8.25, C = 17, S = 4, T = r.mt.T1, x = i2.Common.lt.ht, A = r.mt.p0, I = r.mt.vt, k = r.mt.o1, N = r.mt.xr, j = "rangegroup", O = (_ = (D = "gc-group") + "-box") + "-expand", E = _ + "-collapsed", R = D + "-line", L = D + "-dot", F = "rgh", B = "cgh", P = "rg", G = "cg", U = r.XFileConstants.Su, H = r.XFileConstants.bo, V = "1", z = new i2.Common.ResourceManager(a.SR, "Outlines"), n2.getSR = z.getResource.bind(z), Y = r.NodeHelper.ur, Z = { gj: function() {
          var t3, n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.k2t;
          return f2 || (e3 = { x: (n3 = (t3 = c2.options).sheetAreaOffset).left, y: n3.top, width: 0, height: 0, rowMaxLevel: -1, colMaxLevel: -1 }, i3 = c2.rowOutlines, r2 = c2.columnOutlines, o2 = C * c2.zoom(), c2.showRowOutline() && i3 && !i3.Oy() && (a2 = i3.getMaxLevel()) >= 0 && (e3.width = o2 * (a2 + 2) + S, e3.rowMaxLevel = a2, u2 = t3.rightToLeft, s2 = c2.ot(), u2 && (e3.x = s2.x + s2.width - e3.width)), c2.showColumnOutline() && r2 && !r2.Oy() && (a2 = r2.getMaxLevel()) >= 0 && (e3.height = o2 * (a2 + 2) + S, e3.colMaxLevel = a2), c2.k2t = e3, e3);
        }, showRowOutline: A("showRowOutline", true, (function() {
          this.zw();
        }), void 0, (function(t3, n3) {
          this.rowOutlines.$Dr({ type: "showOutline", isRowGroup: true, value: t3, oldValue: n3 });
        })), showColumnOutline: A("showColumnOutline", true, (function() {
          this.zw();
        }), void 0, (function(t3, n3) {
          this.columnOutlines.$Dr({ type: "showOutline", isRowGroup: false, value: t3, oldValue: n3 });
        })) }, v.extend(r.Worksheet.prototype, Z), n2.getExtendIndex = ct, W = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.PADDING = 2, i3.Mf = t4, i3.v2t = n3, i3.$X = T(e3) ? e3 : vt(n3, t4).getMaxLevel();
          }
          return t3.prototype.D2t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, l2, d2, v2, p2, m2, b2, y2, w2, C2, S2, T2, x2, A2, k2, N2, j2, O2, E2, R2, L2, F2, B2 = this, P2 = B2.Mf, G2 = B2.$X;
            if (!(G2 < 0) && (n3 = B2.v2t, e3 = P2.gj(), i3 = dt.call(B2, e3, n3))) {
              if (r2 = P2.options.rightToLeft, o2 = G2 + 2, a2 = B2.PADDING, u2 = P2.options, s2 = e3.width, c2 = e3.height, l2 = e3.x, d2 = e3.y, p2 = (v2 = P2.Fi()).width, m2 = v2.height, b2 = v2.qC, y2 = v2.XC, w2 = v2.BA, C2 = v2.LA, t4.save(), t4.fillStyle = g(D).backgroundColor, t4.strokeStyle = g(D).borderTopColor, t4.lineWidth = 1, n3 ? (t4.fillRect(l2, d2, s2, m2), t4.strokeRect(l2 - 0.5, d2 - 0.5, s2, m2 + 1)) : (t4.fillRect(r2 ? v2.x : l2, d2, p2, c2), t4.strokeRect(r2 ? v2.x - 1 : l2 - 0.5, d2 - 0.5, p2 + 1, c2)), n3 ? t4.strokeRect(l2 - 0.5, C2 - 0.5, s2, b2) : t4.strokeRect(w2 - 0.5, d2 - 0.5, y2, c2), S2 = (n3 ? b2 : y2) - i3, n3 ? (A2 = f(0, C2 - u2.sheetAreaOffset.top + S2 / 2), x2 = a2) : (x2 = f(0, w2 - u2.sheetAreaOffset.left + S2 / 2), A2 = a2), t4.restore(), T2 = n3 ? u2.colHeaderVisible : u2.rowHeaderVisible, t4.save(), T2 && S2 >= 0) {
                for (N2 = [], k2 = 0; k2 < o2; k2++) N2.push(r2 && n3 ? o2 - 1 - k2 : k2);
                for (j2 = 0, O2 = N2; j2 < O2.length; j2++) k2 = O2[j2], E2 = i3 - 1, R2 = void 0, L2 = void 0, F2 = void 0, n3 ? (L2 = h(l2 + x2) + 0.5, F2 = d2 + A2) : (L2 = r2 ? x2 : l2 + x2, F2 = d2 + A2 + 0.5), t4.fillStyle = g(_).backgroundColor, t4.fillRect(L2, F2, E2, E2), t4.font = M * P2.zoom() + "pt Arial", t4.strokeStyle = g(_).borderTopColor, t4.strokeRect(L2, F2, E2, E2), t4.fillStyle = g(_).color, R2 = I(t4.font), B2._2t(t4, L2, F2, E2, i3, k2 + 1, R2), n3 ? x2 += i3 : A2 += i3;
              }
              t4.restore();
            }
          }, t3.prototype._2t = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2 = "" + o2, s2 = t4.measureText(u2).width;
            s2 <= i3 && a2 <= r2 && (t4.textBaseline = "middle", t4.fillText(u2, n3 + (i3 - s2) / 2, e3 + i3 / 2));
          }, t3.prototype.M2t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this, c2 = u2.Mf, f2 = u2.$X;
            return f2 < 0 ? s : (i3 = f2 + 2, r2 = c2.Fi(), a2 = (o2 = c2.options).sheetAreaOffset, e3 ? u2.E2t(c2, t4, n3, e3, o2.colHeaderVisible, r2.qC, r2.LA - a2.top, i3) : u2.E2t(c2, t4, n3, e3, o2.rowHeaderVisible, r2.XC, r2.BA - a2.left, i3));
          }, t3.prototype.E2t = function(t4, n3, e3, i3, o2, a2, u2, c2) {
            var l2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = t4.gj(), M2 = t4.options.rightToLeft, C2 = dt.call(y2, w2, i3), S2 = a2 - C2;
            if (C2 && o2 && S2 >= 0) {
              for (l2 = f(0, u2 + S2 / 2), h2 = y2.PADDING, i3 && (p2 = l2, l2 = h2, h2 = p2), g2 = [], v2 = 0; v2 < c2; v2++) g2.push(M2 && i3 ? c2 - 1 - v2 : v2);
              for (m2 = 0, b2 = g2; m2 < b2.length; m2++) {
                if (v2 = b2[m2], (d2 = new r.Rect(M2 && !i3 ? l2 : w2.x + l2, w2.y + h2, C2, C2)).contains(n3, e3)) return { index: v2 };
                i3 ? l2 += C2 : h2 += C2;
              }
            }
            return s;
          }, t3;
        })(), Q = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.PADDING = 2, r2.LINE_SIZE = 2, r2.START_LINE_SIZE = 6, r2.p2t = [], r2.b2t = [], r2.y2t = [], r2.Mf = t4, r2.v2t = n3, r2.w2t = e3, r2.$X = T(i3) ? i3 : vt(n3, t4).getMaxLevel();
          }
          return t3.prototype.S2t = function() {
            var t4, n3 = this;
            -1 !== n3.$X && (t4 = n3.j2t(0, n3.v2t), p(t4, (function(t5, e3) {
              n3.O2t(e3);
            })));
          }, t3.prototype.O2t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, c2, h2, d2, v2, g2, m2, b2, y2, M2, C2, S2, T2 = this, x2 = T2.Mf, A2 = T2.v2t, I2 = vt(A2, x2).direction(), k2 = 1 === I2, N2 = 0 === I2, j2 = T2.R2t(true, A2), D2 = T2.R2t(false, A2), _2 = t4.start, O2 = t4.end, E2 = t4.level;
            if (k2 ? n3 = O2 + 1 : N2 && (n3 = _2 - 1), 0 === t4.state()) {
              if (e3 = true, (i3 = t4.parent) && (N2 && _2 === i3.start || k2 && O2 === i3.end) && (e3 = false), e3 && T2.B2t(true, E2, n3, j2, D2, I2), _2 <= D2 && O2 >= j2) {
                for (r2 = f(j2, _2), o2 = l(D2, O2), a2 = void 0, u2 = void 0, e3 && (a2 = { start: r2, end: o2, level: E2, startLine: s }, (k2 && r2 === _2 || N2 && o2 === O2) && (a2.startLine = true), T2.p2t.push(a2)), h2 = [], d2 = t4.children, u2 = r2; u2 <= o2; u2++) h2.push(false);
                for (p(d2, (function(t5, n4) {
                  var e4 = n4.start, i4 = n4.end, o3;
                  if (1 === n4.state()) for (c2 = e4; c2 <= i4; c2++) h2[c2 - r2] = true;
                  h2[(o3 = k2 ? i4 + 1 : i4 - 1) - r2] = true, T2.O2t(n4);
                })), v2 = true, u2 = 0; u2 < w(d2); u2++) {
                  if (m2 = (g2 = d2[u2]).start, M2 = (b2 = g2.end) === O2, (y2 = m2 === _2) && M2) {
                    v2 = false;
                    break;
                  }
                  if (k2 && M2 || N2 && y2) for (c2 = m2; c2 <= b2; c2++) h2[c2 - r2] = true;
                }
                if (v2) for (C2 = r2; C2 <= o2; C2++) h2[C2 - r2] || (S2 = { index: C2, level: E2 + 1 }, T2.b2t.push(S2));
              }
            } else 1 === t4.state() && T2.B2t(false, E2, n3, j2, D2, I2);
          }, t3.prototype.B2t = function(t4, n3, e3, i3, r2, o2) {
            var a2 = { isExpanded: t4, level: n3 };
            t4 && (a2.paintLine = true), e3 >= i3 && e3 <= r2 && (a2.index = e3, a2.lineDirection = o2, this.y2t.push(a2));
          }, t3.prototype.L2t = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = n3.w2t;
            return n3.v2t ? e3._y(i3).findRow(t4) : e3.Yy(i3).findCol(t4);
          }, t3.prototype.F2t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, m2 = this;
            -1 !== m2.$X && (e3 = (n3 = m2.Mf).options.rightToLeft, i3 = n3.gj(), r2 = m2.v2t, (o2 = dt.call(m2, i3, r2)) && (a2 = parseInt(g(R).borderTopWidth, 10), a2 = isNaN(a2) ? 2 : a2, u2 = h(o2 / 3), c2 = (o2 - a2) / 2 + (s2 = m2.PADDING), t4.save(), t4.fillStyle = g(D).color, f2 = n3.Fi(), r2 ? (l2 = e3 ? i3.x : 0, d2 = f2.y + f2.qC, v2 = i3.width, p2 = f2.height - f2.qC) : (l2 = e3 ? f2.x : f2.x + f2.XC, d2 = 0, v2 = e3 ? f2.width : f2.width - f2.XC, p2 = i3.height), t4.rect(l2, d2, v2, p2), t4.clip(), m2.P2t(t4, m2.b2t, r2, i3, o2, c2, a2), r2 ? m2.G2t(t4, m2.p2t, r2, i3, o2, c2, a2, u2) : m2.U2t(t4, m2.p2t, r2, i3, o2, c2, a2, u2), m2.H2t(t4, m2.y2t, r2, i3, o2, c2, a2, s2), t4.beginPath(), t4.restore()));
          }, t3.prototype.P2t = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, l2 = this, h2 = 2, d2 = l2.Mf, v2 = d2.options, m2 = d2.Fi(), b2 = d2.options.rightToLeft, y2 = v2.sheetAreaOffset, w2 = y2.left, M2 = y2.top;
            t4.save(), t4.fillStyle = g(L).color, c2 = l2.p2t, p(n3, (function(n4, d3) {
              var v3, p2, g2, y3, C2, S2 = d3.index, T2 = d3.level, x2 = l2.L2t(S2);
              x2 && (l2.z2t(c2, S2, T2) || (v3 = e3 ? x2.y : x2.x, (p2 = (e3 ? x2.height : x2.width) - a2) >= 0 && (u2 = v3 + f(0, p2 / 2), s2 = (b2 && e3 ? l2.$X + 1 - d3.level : d3.level) * r2 + o2, e3 ? (g2 = u2, u2 = s2 + 0.5, s2 = g2, s2 -= M2) : (s2 += 0.5, u2 -= w2), t4.strokeStyle = "transparent", t4.lineWidth = 0, (y3 = b2 && !e3 ? m2.x + u2 : i3.x + u2) % 1 != 0 && (y3 += 0.5), (C2 = i3.y + s2) % 1 != 0 && (C2 += 0.5), t4.strokeRect(y3, C2, h2, h2), t4.fillRect(y3, C2, h2, h2))));
            })), t4.restore();
          }, t3.prototype.z2t = function(t4, n3, e3) {
            var i3, r2 = false, o2 = w(t4);
            for (i3 = 0; i3 < o2; i3++) if (t4[i3].level === e3 && t4[i3].start <= n3 && t4[i3].end >= n3) {
              r2 = true;
              break;
            }
            return r2;
          }, t3.prototype.G2t = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, l2, h2, v2, p2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2;
            for (t4.save(), t4.strokeStyle = g(R).borderTopColor, t4.fillStyle = g(R).borderTopColor, t4.lineWidth = a2, l2 = vt(e3, c2 = (s2 = this).Mf).direction(), m2 = (p2 = (v2 = c2.options).sheetAreaOffset).top, b2 = v2.rightToLeft, h2 = 0; h2 < w(n3); h2++) {
              M2 = (y2 = n3[h2]).start, C2 = y2.end, S2 = void 0, T2 = void 0;
              do {
                S2 = s2.L2t(M2), M2++;
              } while (!S2 && M2 <= C2);
              do {
                T2 = s2.L2t(C2), C2--;
              } while (!T2 && C2 >= M2);
              (S2 || T2) && (S2 ? T2 || (T2 = S2) : S2 = T2, x2 = S2.y, A2 = (b2 && e3 ? s2.$X + 1 - y2.level : y2.level) * r2 + o2, I2 = a2, k2 = f(0, T2.y + T2.height - S2.y), 1 === l2 ? x2 += 1 : x2 -= 1, x2 -= m2, t4.beginPath(), N2 = i3.x + A2 + I2 / 2, N2 = d(N2), t4.moveTo(N2, i3.y + x2), t4.lineTo(N2, i3.y + x2 + k2), t4.stroke(), y2.startLine && r2 / 2 - 2 * a2 > 0 && (0 === l2 && (x2 = x2 + k2 - a2 - m2), x2 >= S2.y - m2 && x2 < T2.y + T2.height - m2 && (b2 && e3 ? t4.fillRect(d(i3.x + A2) - u2, i3.y + x2, u2, a2) : t4.fillRect(d(i3.x + A2), i3.y + x2, u2, a2))));
            }
            t4.restore();
          }, t3.prototype.U2t = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, l2, h2, v2, p2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2;
            for (t4.save(), t4.strokeStyle = g(R).borderTopColor, t4.fillStyle = g(R).borderTopColor, t4.lineWidth = a2, l2 = vt(e3, c2 = (s2 = this).Mf).direction(), m2 = (p2 = (v2 = c2.options).sheetAreaOffset).left, b2 = c2.Fi(), y2 = v2.rightToLeft, h2 = 0; h2 < w(n3); h2++) {
              C2 = (M2 = n3[h2]).start, S2 = M2.end, T2 = void 0, x2 = void 0;
              do {
                T2 = s2.L2t(C2), C2++;
              } while (!T2 && C2 <= S2);
              do {
                x2 = s2.L2t(S2), S2--;
              } while (!x2 && S2 >= C2);
              (T2 || x2) && (T2 ? x2 || (x2 = T2) : T2 = x2, A2 = y2 ? T2.x + T2.width : T2.x, I2 = M2.level * r2 + o2, k2 = y2 ? -(T2.x + T2.width - x2.x) : f(0, x2.x + x2.width - T2.x), 1 === l2 && (y2 ? A2 -= 2 : A2 += 1), A2 -= m2, N2 = i3.y + I2 + a2 / 2, N2 = d(N2), t4.beginPath(), t4.moveTo((y2 ? b2.x : i3.x) + A2, N2), t4.lineTo((y2 ? b2.x : i3.x) + A2 + k2, N2), t4.stroke(), M2.startLine && r2 / 2 - 2 * a2 > 0 && (0 === l2 && (y2 ? A2 += k2 : A2 = A2 + k2 - a2 - m2), (j2 = y2 ? A2 >= x2.x - m2 && A2 < T2.x + T2.width - m2 : A2 >= T2.x - m2 && A2 < x2.x + x2.width - m2) && t4.fillRect((y2 ? b2.x : i3.x) + A2, d(i3.y + I2), a2, u2)));
            }
            t4.restore();
          }, t3.prototype.V2t = function(t4) {
            var n3 = g(t4).backgroundImage;
            return "none" === n3 && (n3 = ""), n3 && (n3 = (n3 = (n3 = n3.split(",")[0]).replace(/url\(['"]?([^'"\)]+)['"]?\)/, "$1")).trim()), n3;
          }, t3.prototype.H2t = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, h2, v2, p2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2 = this, q2 = X2.Mf, $2 = q2.options, tt2 = $2.sheetAreaOffset.left, nt2 = q2.Fi(), et2 = q2.options.rightToLeft, it2 = $2.sheetAreaOffset.top, rt2 = g(_).borderTopColor, ot2 = g(_).backgroundColor, at2 = g(_).color, ut2 = g(R).borderTopColor, st2 = 1, ct2 = q2.BO(), ft2 = X2.V2t(O), lt2 = X2.V2t(E);
            for (ft2 && !ct2.getState(ft2) && ct2.addImage(ft2), lt2 && !ct2.getState(lt2) && ct2.addImage(lt2), c2 = lt2 && ct2.getImage(lt2), h2 = ft2 && ct2.getImage(ft2), v2 = g(O), p2 = g(E), m2 = h2 ? v2.backgroundColor : "", b2 = c2 ? p2.backgroundColor : "", y2 = h2 ? v2.borderTopColor : "", M2 = c2 ? p2.borderTopColor : "", s2 = 0; s2 < w(n3); s2++) t4.save(), A2 = n3[s2], (I2 = X2.L2t(A2.index)) ? (k2 = e3 ? I2.height : I2.width) <= 0 ? t4.restore() : (N2 = f(0, (k2 - r2) / 2), j2 = void 0, D2 = void 0, L2 = (e3 ? I2.y - it2 : I2.x - tt2) + N2, F2 = (et2 && e3 ? X2.$X + 1 - A2.level : A2.level) * r2 + u2, P2 = r2, G2 = void 0, U2 = void 0, H2 = k2 - (B2 = l(r2, k2)), e3 ? (V2 = L2, L2 = F2, F2 = V2, z2 = B2, B2 = P2, P2 = z2, G2 = 0.5, U2 = 0) : (G2 = 0, U2 = 0.5), T2 = A2.isExpanded ? y2 : M2, t4.strokeStyle = T2 || rt2, t4.lineWidth = st2, S2 = A2.isExpanded ? m2 : b2, t4.fillStyle = S2 || ot2, t4.fillRect((et2 && !e3 ? nt2.x : i3.x) + L2, i3.y + F2, B2, P2), j2 = (et2 && !e3 ? nt2.x : i3.x) + L2 + G2, D2 = i3.y + F2 + U2, t4.strokeRect(j2, D2, B2, P2), t4.fillStyle = at2, C2 = A2.isExpanded ? ft2 : lt2, X2.Y2t(t4, A2.isExpanded, C2, j2, D2, B2, P2), t4.restore(), A2.paintLine && H2 > 0 && (t4.save(), t4.strokeStyle = ut2, L2 = e3 ? I2.y - it2 : I2.x - tt2, F2 = (et2 && e3 ? X2.$X + 1 - A2.level : A2.level) * r2 + o2, Y2 = 0 === A2.lineDirection, Z2 = e3 ? a2 : N2, W2 = e3 ? N2 : a2, e3 ? (Q2 = L2, L2 = F2, F2 = Q2, Y2 && (F2 += N2 + P2, W2 = H2 - N2)) : (Y2 && !et2 || !Y2 && et2) && (L2 += N2 + B2, Z2 = H2 - N2), t4.beginPath(), t4.lineWidth = a2, K2 = d((et2 && !e3 ? nt2.x : i3.x) + L2 + a2 / 2), J2 = d(i3.y + F2 + a2 / 2), e3 ? (t4.moveTo(K2, i3.y + F2), t4.lineTo(K2, i3.y + F2 + W2 - st2)) : (x2 = 0, c2 && !A2.isExpanded && (x2 = 1), t4.moveTo((et2 ? nt2.x : i3.x) + L2, J2), t4.lineTo((et2 ? nt2.x : i3.x) + L2 + G2 + Z2 + x2, J2)), t4.stroke(), t4.restore())) : t4.restore();
          }, t3.prototype.Y2t = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2 = this, l2 = this.Mf, d2 = l2.BO();
            if (e3 && d2.getState(e3)) {
              s2 = (u2 = d2.getImage(e3)).width, c2 = u2.height;
              try {
                t4.drawImage(u2, 0, 0, s2, c2, h(i3), h(r2), o2 - 1, a2 - 1);
              } catch (t5) {
              }
            } else f2.Z2t(t4, n3, i3, r2, o2, a2);
          }, t3.prototype.Z2t = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2 = h(r2 / 4), c2 = h(r2 / 2);
            n3 || (a2 = h(o2 / 4), u2 = h(o2 / 2), t4.fillRect(e3 + r2 / 2 - 1, i3 + a2, 2, o2 - u2)), t4.fillRect(e3 + s2, i3 + o2 / 2 - 1, c2, 2);
          }, t3.prototype.j2t = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = [], s2 = -1, c2 = -1, h2 = vt(n3, a2), d2 = n3 ? a2._y : a2.Yy, v2 = d2.call(a2, o2.w2t), p2 = w(v2);
            for (p2 && (i3 = v2[0], r2 = v2[p2 - 1], s2 = f(0, (n3 ? i3.row : i3.col) - 1), c2 = n3 ? l(a2.getRowCount(), r2.row + 2) : l(a2.getColumnCount(), r2.col + 2)); s2 < c2; ) (e3 = h2.find(s2, t4)) ? (s2 = e3.end + 1, u2.push(e3)) : s2++;
            return u2;
          }, t3.prototype.R2t = function(t4, n3) {
            var e3 = -1, i3 = this, r2 = i3.Mf, o2 = i3.w2t, a2 = r2.frozenRowCount(), u2 = r2.frozenColumnCount(), s2 = r2.frozenTrailingRowCount(), c2 = r2.frozenTrailingColumnCount(), f2 = r2.getRowCount(), l2 = r2.getColumnCount();
            return 0 === o2 ? e3 = t4 ? 0 : (n3 ? a2 : u2) - 1 : 1 === o2 ? e3 = t4 ? n3 ? a2 : u2 : (n3 ? f2 - s2 : l2 - c2) - 1 : 2 === o2 && (e3 = t4 ? n3 ? f2 - s2 : l2 - c2 : (n3 ? f2 : l2) - 1), e3;
          }, t3.prototype.W2t = function(t4) {
            t4 && this.Mf.Oi && (t4.x -= 2, t4.y -= 2, t4.width += 4, t4.height += 4);
          }, t3.prototype.C2t = function(t4, n3, e3) {
            var i3, o2, a2, u2, c2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2 = this, x2 = T2.$X, A2 = T2.Mf, I2 = A2.options, k2 = A2.Fi(), N2 = I2.rightToLeft, j2 = I2.sheetAreaOffset.left, D2 = I2.sheetAreaOffset.top;
            if (x2 < 0) return s;
            if (i3 = A2.gj(), !(o2 = dt.call(T2, i3, e3))) return s;
            for (a2 = T2.y2t, h2 = 0; h2 < w(a2); h2++) if (v2 = (d2 = a2[h2]).index, p2 = (N2 && e3 ? T2.$X + 1 - d2.level : d2.level) * o2 + T2.PADDING, (g2 = T2.L2t(v2)) && !((u2 = e3 ? g2.height : g2.width) <= 0) && (m2 = l(o2, u2), b2 = o2, y2 = (e3 ? g2.y - D2 : g2.x - j2) + f(0, (u2 - o2) / 2), M2 = p2, e3 && (C2 = m2, m2 = b2, b2 = C2, S2 = y2, y2 = M2, M2 = S2), c2 = new r.Rect((N2 && !e3 ? k2.x : i3.x) + y2 + 0.5, i3.y + M2 + 0.5, m2, b2), T2.W2t(c2), c2.contains(t4, n3))) return d2;
            return s;
          }, t3;
        })(), (function(t3) {
          t3[t3.backward = 0] = "backward", t3[t3.forward = 1] = "forward";
        })(K = n2.OutlineDirection || (n2.OutlineDirection = {})), u.OutlineDirection = K, (function(t3) {
          t3[t3.expanded = 0] = "expanded", t3[t3.collapsed = 1] = "collapsed";
        })(J = n2.OutlineState || (n2.OutlineState = {})), u.OutlineState = J, X = (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.children = [], r2.parent = s, r2.model = t4, r2.start = n3, r2.end = e3, r2.level = i3;
          }
          return t3.prototype.state = function(t4) {
            var n3 = this, e3 = n3.model;
            if (!arguments.length) return e3 ? e3.getState(n3) : 0;
            e3 && e3.expandGroup(n3, 0 === t4);
          }, t3.prototype.contains = function(t4) {
            return this.start <= t4 && t4 <= this.end;
          }, t3.prototype.addChild = function(t4) {
            t4 && (this.children.push(t4), t4.parent = this);
          }, t3;
        })(), n2.OutlineInfo = X, u.OutlineInfo = X, q = /* @__PURE__ */ (function() {
          function t3(t4) {
            this.level = t4 ? t4.level : 0, this.collapsed = !!t4 && t4.collapsed, this.viewCollapsed = !!t4 && t4.viewCollapsed;
          }
          return t3;
        })(), n2.OutlineItemInfo = q, n2.isIndexValid = yt, $ = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.head = s, i3.tail = s, i3.A2t = s, i3.items = new Array(t4), i3.T2t = 0, i3.x2t = true, i3.Mf = n3, i3.v2t = e3;
          }
          return t3.prototype.L0 = function() {
            this.Mf = s;
          }, t3.prototype.getUsedRange = function(t4) {
            var n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
            if (t4 & r.UsedRangeType.axis && (e3 = (n3 = this).items, i3 = n3.v2t, a2 = (o2 = Object.keys(e3)).length, u2 = n3.Mf, a2 > 0 && u2)) {
              for (s2 = 0, c2 = a2, f2 = a2 - 1, l2 = 0; l2 < a2; l2++) if (e3[+o2[l2]]) {
                s2 = l2;
                break;
              }
              for (h2 = a2 - 1; h2 >= 0; h2--) if (e3[+o2[h2]]) {
                f2 = h2;
                break;
              }
              if (d2 = e3[+o2[s2]], v2 = e3[+o2[f2]], !d2 || !v2) return;
              return d2 && -1 === d2.level && (s2 += 1), v2 && -1 === v2.level && (c2 = f2), i3 ? { minRow: +o2[s2], minCol: 0, maxRow: +o2[c2 - 1], maxCol: 1 / 0 } : { minRow: 0, minCol: +o2[s2], maxRow: 1 / 0, maxCol: +o2[c2 - 1] };
            }
          }, t3.prototype.LGr = function() {
            var t4;
            return !pt(null !== (t4 = this.items) && void 0 !== t4 ? t4 : []);
          }, t3.prototype.group = function(t4, n3) {
            var e3, i3 = this;
            Tt(i3, t4, n3), i3.Mf.Ut.m2t(i3.v2t), e3 = i3.THr({ type: "setGroupItems" }), i3.dy(t4, n3), i3.I2t && i3.A2t && (i3.A2t = s), i3.Mf.Ut.m2t(i3.v2t, true), i3.Y_r(), i3.x2t = false, i3.$Dr({ type: "setGroupItems", items: i3.items }, e3);
          }, t3.prototype.dy = function(t4, n3) {
            var e3, i3, r2 = this;
            for (e3 = 0; e3 < n3; e3++) i3 = t4 + e3, r2.items[i3] ? r2.items[i3].level++ : r2.items[i3] = new q();
          }, t3.prototype.Xst = function() {
            this.I2t = true, this.A2t = s;
          }, t3.prototype.$st = function() {
            var t4 = this;
            t4.I2t = false, t4.refresh();
          }, t3.prototype.ungroupRange = function(t4, n3) {
            var e3, i3 = this;
            Tt(i3, t4, n3), i3.Mf.Ut.m2t(i3.v2t), e3 = i3.THr({ type: "setGroupItems" }), i3.Z_r(t4, n3), i3.Mf.Ut.m2t(i3.v2t, true), i3.Y_r(), i3.$Dr({ type: "setGroupItems", items: i3.items }, e3);
          }, t3.prototype.Z_r = function(t4, n3) {
            var e3, i3, r2 = this;
            for (e3 = 0; e3 < n3; e3++) (i3 = r2.items[t4 + e3]) && i3.level > -1 && i3.level--;
          }, t3.prototype.ungroup = function() {
            var t4, n3 = this, e3 = w(n3.items);
            n3.Mf.Ut.m2t(n3.v2t), t4 = n3.THr({ type: "setGroupItems" }), n3.items = new Array(e3), n3.Y_r(), n3.x2t = true, n3.$Dr({ type: "setGroupItems", items: n3.items }, t4);
          }, t3.prototype.expand = function(t4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2;
            if (t4 < -1) throw new Error((0, n2.getSR)().Exp_InvalidLevel);
            for (o2 = (r2 = this).items, (u2 = r2.Mf).Ut.m2t(r2.v2t), St(r2), s2 = u2.op(), u2.suspendPaint(), s2.suspend(), c2 = 0, f2 = o2.length; c2 < f2; c2++) o2[c2] && (a2 = r2.find(c2, t4)) && (r2.expandGroup(a2, e3, true), c2 = a2.end);
            i3 || r2.Mf.Ut.m2t(r2.v2t, true), s2.resume(false), u2.resumePaint();
          }, t3.prototype.expandGroup = function(t4, e3, i3) {
            if (!t4) throw new Error((0, n2.getSR)().Exp_GroupInfoIsNull);
            var r2 = this, o2 = r2.direction(), a2 = -1;
            i3 || r2.Mf.Ut.m2t(r2.v2t), 0 === o2 ? a2 = t4.start - 1 : 1 === o2 && (a2 = t4.end + 1), r2.setCollapsed(a2, !e3, t4.level, i3), i3 || r2.Mf.Ut.m2t(r2.v2t, true), r2.Mf.zw();
          }, t3.prototype.tF = function(t4) {
            return !(!this.x2t && yt(this, t4)) || !this.isCollapsed(t4);
          }, t3.prototype.isCollapsed = function(t4) {
            var n3 = this.items[t4];
            return !!(n3 && n3.viewCollapsed && n3.level > -1);
          }, t3.prototype.find = function(t4, n3) {
            var e3 = this, i3;
            return St(e3), -1 === n3 ? i3 = e3.A2t : (e3.Mf.NMi || xt(e3, t4), i3 = wt(e3, t4, n3)), i3;
          }, t3.prototype.getLevel = function(t4) {
            var n3 = this.items[t4];
            return n3 ? n3.level : -1;
          }, t3.prototype.getCollapsed = function(t4) {
            var n3 = this.items[t4];
            return !!n3 && !!n3.collapsed;
          }, t3.prototype.Q2t = function(t4, n3, e3, i3) {
            var r2, o2;
            for (r2 = n3; r2 <= e3; r2++) (o2 = t4[r2]) || ((o2 = t4[r2] = new q()).level = -1), o2.viewCollapsed = i3;
          }, t3.prototype.setCollapsed = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this, f2 = false, l2 = s2.Mf.Ut;
            i3 || l2.m2t(s2.v2t), St(s2), r2 = s2.THr({ type: "setGroupItems" }), o2 = s2.W_r(t4), (a2 = e3 !== c) || o2.collapsed === n3 ? a2 && (o2.level === e3 - 1 && o2.collapsed !== n3 && (o2.collapsed = n3), f2 = true) : (o2.collapsed = n3, f2 = true), f2 && (u2 = s2.Q_r(t4, n3, e3)), s2.$Dr({ type: "setGroupItems", items: s2.items, head: s2.head, tail: s2.tail }, r2), s2.J_r(u2), i3 || s2.Mf.Ut.m2t(s2.v2t, true);
          }, t3.prototype.W_r = function(t4) {
            var n3, e3 = this, i3 = e3.items;
            return t4 < 0 ? (n3 = e3.head) || (n3 = e3.head = new q()) : t4 < w(i3) ? (n3 = i3[t4]) || ((n3 = i3[t4] = new q()).level = -1) : (n3 = e3.tail) || (n3 = e3.tail = new q()), n3;
          }, t3.prototype.Q_r = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this;
            if (s2.K2t(t4, n3, e3), o2 = [], t4 += (i3 = 1 === s2.direction()) ? -1 : 1, a2 = s2.find(t4, s2.getLevel(t4))) {
              for (u2 = a2.start; u2 <= a2.end; u2++) o2.push(u2);
              r2 = { indexes: o2 };
            }
            return r2;
          }, t3.prototype.J2t = function(t4, n3) {
            var e3, i3 = this.items;
            i3[t4] ? i3[t4].collapsed !== n3 && (i3[t4].collapsed = n3) : ((e3 = i3[t4] = new q()).level = -1, e3.collapsed = n3);
          }, t3.prototype.K2t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2 = this, p2 = v2.items, g2 = 1 === v2.direction(), m2 = g2 ? -1 : 1, b2 = e3 !== c, y2 = t4 + m2, w2 = b2 ? e3 : v2.getLevel(y2), M2 = wt(v2, y2, w2);
            if (M2 && (i3 = g2 ? M2.end + 1 : M2.start - 1) !== t4 && (M2 = null), x(M2) && (w2 = b2 ? e3 : v2.getLevel(t4), M2 = wt(v2, t4, w2)), M2) if (r2 = void 0, o2 = M2.parent, n3) b2 || (r2 = g2 ? M2.end + 1 : M2.start - 1, v2.J2t(r2, true), M2 = At(M2, g2)), v2.Q2t(p2, M2.start, M2.end, true);
            else {
              for (a2 = false, u2 = void 0; o2; ) {
                if (p2[u2 = g2 ? o2.end + 1 : o2.start - 1] && p2[u2].collapsed && p2[u2].level > -1) {
                  a2 = true;
                  break;
                }
                o2 = o2.parent;
              }
              if (!a2) for (b2 || (r2 = g2 ? M2.end + 1 : M2.start - 1, v2.J2t(r2, false), M2 = At(M2, g2)), v2.Q2t(p2, M2.start, M2.end, false), s2 = [M2], f2 = 0; f2 >= 0; ) if (l2 = s2[f2], f2--, p2[u2 = g2 ? l2.end + 1 : l2.start - 1] && p2[u2].collapsed && -1 !== p2[u2].level) v2.Q2t(p2, l2.start, l2.end, true);
              else for (h2 = l2.children, d2 = 0; h2 && d2 < h2.length; d2++) s2[++f2] = h2[d2];
            }
          }, t3.prototype.getMaxLevel = function() {
            var t4 = -1, n3 = this.items, e3;
            return p(n3, (function(n4, i3) {
              i3 && (e3 = i3.level) > t4 && (t4 = e3);
            })), t4;
          }, t3.prototype.PB = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2;
            if (!(e3 <= 0 || t4 === n3)) {
              for ((r2 = this).Mf.Ut.m2t(r2.v2t), o2 = r2.THr({ type: "setGroupItems" }), t4 < 0 && (t4 = 0), n3 < 0 && (n3 = 0), a2 = [], u2 = r2.items, s2 = b(u2, t4 - 1); s2 >= 0 && s2 < t4 + e3; ) c2 = new q(u2[s2]), a2.push({ index: s2 - t4, value: c2 }), s2 = b(u2, s2);
              i3 && y(u2, t4, e3), y(u2, n3, e3), p(a2, (function(t5, e4) {
                u2[n3 + e4.index] = e4.value;
              })), Ct(r2), r2.$Dr({ type: "setGroupItems", items: r2.items }, o2), r2.Mf.Ut.m2t(r2.v2t, true);
            }
          }, t3.prototype.FB = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this;
            if (s2.Mf.Ut.m2t(s2.v2t), o2 = s2.THr({ type: "setGroupItems" }), n3 < 0 && (n3 = 0), e3 < 0 && (e3 = 0), a2 = [], t4) for (u2 = b(t4.items, n3 - 1); u2 >= 0 && u2 < n3 + i3; ) a2[u2 - n3] = new q(t4.items[u2]), u2 = b(t4.items, u2);
            y(s2.items, e3, i3), a2.length > 0 && a2.forEach((function(t5, n4) {
              s2.items[e3 + n4] = t5;
            })), r2 && y(t4.items, n3, i3), s2.$Dr({ type: "setGroupItems", items: s2.items }, o2), s2.Mf.Ut.m2t(s2.v2t, true);
          }, t3.prototype.refresh = function() {
            this.x2t || this.Y_r();
          }, t3.prototype.X2t = function(t4) {
            var n3 = this, e3 = n3.items, i3, r2 = t4 - w(e3);
            r2 < 0 ? (e3.splice(t4, -r2), n3.LGr() && n3.$Dr({ type: "deleteGroupItem", index: e3.length, count: -r2 })) : (n3.items = e3.concat(new Array(r2)), n3.LGr() && n3.$Dr({ type: "insertGroupItem", index: e3.length, count: r2 })), Ct(n3);
          }, t3.prototype.getState = function(t4) {
            var n3 = this, e3 = n3.items, i3, r2 = n3.direction(), o2 = -1;
            return 0 === r2 ? o2 = t4.start - 1 : 1 === r2 && (o2 = t4.end + 1), (i3 = o2 < 0 ? n3.head : o2 < w(e3) ? e3[o2] : n3.tail) && i3.collapsed ? 1 : 0;
          }, t3.prototype.q2t = function(t4, n3) {
            var e3 = this, i3 = e3.items;
            t4 < 0 ? (e3.head || (e3.head = new q()), e3.head.level = n3) : t4 < w(i3) ? (i3[t4] || (i3[t4] = new q()), i3[t4].level = n3) : (e3.tail || (e3.tail = new q()), e3.tail.level = n3), Ct(e3);
          }, t3.prototype.suspendAdding = function() {
            this.T2t++;
          }, t3.prototype.resumeAdding = function() {
            this.T2t--;
          }, t3.prototype.createRangeGroup = function() {
            for (var t4, n3, e3 = this, i3 = e3.items, r2 = w(e3.items), o2 = new X(e3, 0, r2 - 1, -1), a2 = 0; a2 < r2; ) i3[a2] && (i3[a2].groupInfo = s), a2++;
            for (a2 = 0; a2 < r2; ) i3[a2] ? (n3 = (t4 = bt(e3, a2, 0)).g, a2 = t4.index + 1, n3 && n3.level > -1 && o2.addChild(n3)) : a2++;
            return o2;
          }, t3.prototype.$2t = function(t4, n3) {
            return 1 === this.direction() ? n3 === t4.end + 1 : n3 === t4.start - 1;
          }, t3.prototype.tpt = function(t4, n3, e3, i3) {
            var r2 = this, o2 = -1, a2 = 0;
            if (1 === r2.direction() && (o2 = 0, a2 = 1), t4 === n3) return r2.$2t(t4, e3) || r2.$2t(t4, i3) ? { start: t4.start, end: t4.end, level: t4.level } : { start: e3, end: i3, level: t4.level };
            for (; t4.level > n3.level; ) {
              if (n3 === t4.parent) return r2.$2t(n3, i3) ? { start: n3.start, end: n3.end, level: n3.level } : { start: t4.start + o2, end: i3, level: t4.level - 1 };
              t4 = t4.parent;
            }
            for (; t4.level < n3.level; ) {
              if (t4 === n3.parent) return r2.$2t(t4, e3) ? { start: t4.start, end: t4.end, level: t4.level } : { start: e3, end: n3.end + a2, level: n3.level - 1 };
              n3 = n3.parent;
            }
            for (; t4.level >= 0; ) {
              if (t4.parent === n3.parent) return { start: t4.start + o2, end: n3.end + a2, level: n3.level - 1 };
              t4 = t4.parent, n3 = n3.parent;
            }
            return { start: t4.start + o2, end: n3.end + a2, level: n3.level - 1 };
          }, t3.prototype.npt = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.items, a2 = o2[t4];
            return n3 = 1 === r2.direction() ? o2[t4 - 1] : o2[t4 + 1], (e3 = a2 ? a2.level : -1) < (i3 = n3 ? n3.level : -1) ? n3 && n3.groupInfo : a2 && a2.groupInfo;
          }, t3.prototype.lB = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.npt(t4), a2 = r2.npt(t4 + n3 - 1);
            if (x(o2) && x(a2)) return { start: t4, end: t4 + n3 - 1, count: n3, level: -1 };
            if (!o2 || !a2) {
              for (e3 = o2 || a2; e3 && -1 !== e3.level; ) e3 = e3.parent;
              o2 || (o2 = e3), a2 || (a2 = e3);
            }
            return (i3 = r2.tpt(o2, a2, t4, t4 + n3 - 1)).count = i3.end - i3.start + 1, i3;
          }, t3.prototype.kB = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.items;
            for (e3 = t4; e3 < t4 + n3; e3++) if (i3 = u2[e3] && u2[e3].groupInfo && u2[e3].groupInfo.level, !x(i3) && i3 >= 0) return true;
            return o2 = u2[r2 = 1 === a2.direction() ? t4 - 1 : t4 + n3] && u2[r2].groupInfo && u2[r2].groupInfo.level, !x(o2) && o2 >= 0;
          }, t3.prototype.ept = function(t4) {
            var n3 = this, e3 = n3.items, i3 = e3[t4] && e3[t4].groupInfo && e3[t4].groupInfo.level;
            return x(i3) ? -1 : i3;
          }, t3.prototype.ipt = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = [], u2 = [];
            for (i3 = t4; i3 < t4 + n3; i3++) (r2 = o2.ept(i3)) === e3 && u2.push(i3), o2.ept(i3 + 1) < e3 && u2.length > 0 && (a2.push(u2), u2 = []);
            return u2.length > 0 && a2.push(u2), a2;
          }, t3.prototype.hB = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this;
            if (1 === n3) return a2.ipt(t4.start, t4.count, t4.level);
            for (e3 = [], i3 = a2.getMaxLevel(), r2 = 2 === n3 ? t4.level + 1 : t4.level, o2 = i3; o2 >= r2 && o2 >= -1; o2--) e3 = e3.concat(a2.ipt(t4.start, t4.count, o2));
            return e3;
          }, t3.prototype.vB = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this;
            for (i3 = t4.length - 1; i3 >= 0; i3--) (r2 = t4[i3]).collapse && a2.setCollapsed(r2.head, false), a2.ungroupRange(r2.start, r2.count);
            for (i3 = t4.length - 1; i3 >= 0; i3--) r2 = t4[i3], o2 = m.hD(n3, r2.head) + e3, 1 === a2.direction() ? a2.group(o2 - r2.count, r2.count) : a2.group(o2 + 1, r2.count), r2.collapse && a2.setCollapsed(o2, r2.collapse);
          }, t3.prototype.dB = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.items;
            if (1 === e3) for (i3 = d2.getMaxLevel(), r2 = n3.level + 1; r2 <= i3; r2++) t4.splice.apply(t4, et([0, 0], d2.ipt(n3.start, n3.count, r2), false));
            else 2 === e3 && t4.push.apply(t4, d2.ipt(n3.start, n3.count, n3.level));
            for (a2 = t4[(o2 = t4.length) - 1].concat([]), u2 = [], r2 = o2 - 2; r2 >= 0; r2--) c2 = (s2 = v2[t4[r2][0]]).groupInfo, 1 === d2.direction() ? (f2 = c2.end + 1, l2 = m.hD(a2, f2), a2.splice.apply(a2, et([l2, 0], t4[r2], false)), u2.push({ head: f2, start: c2.start, count: f2 - c2.start, collapse: s2.viewCollapsed })) : (f2 = c2.start - 1, l2 = m.hD(a2, f2), a2.splice.apply(a2, et([l2 + 1, 0], t4[r2], false)), u2.push({ head: f2, start: c2.start, count: c2.end - f2, collapse: s2.viewCollapsed }));
            for (h2 = false, r2 = 0; r2 < n3.count; r2++) if (a2[r2] !== r2 + n3.start) {
              h2 = true;
              break;
            }
            return { array: a2, isChanged: h2, groupSwap: u2 };
          }, t3.prototype.isGroupEnd = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.items, f2 = t4 + 1;
            return !yt(s2, f2) || (!(e3 = c2[f2]) || (o2 = false, (i3 = e3.level) < (r2 = c2[t4].level) && (u2 = r2 - n3) >= 0 && u2 < (a2 = r2 - i3) && (o2 = true), o2));
          }, t3.prototype.hitTest = function(t4, n3, e3) {
            return ft.call(t4, n3, e3);
          }, t3.prototype.getBtnRectangle = function() {
            var t4, n3, e3, i3, r2 = this.Mf, o2 = this.v2t, a2 = r2.Fi(), u2 = r2.options.rightToLeft, s2 = r2.options, c2 = s2.sheetAreaOffset, l2 = o2 ? a2.qC : a2.XC, h2 = r2.gj(), d2 = o2 ? h2.rowMaxLevel : h2.colMaxLevel, v2 = o2 ? h2.width : h2.height, p2 = o2 ? s2.colHeaderVisible : s2.rowHeaderVisible, g2 = o2 ? a2.LA - c2.top : a2.BA - c2.left, m2 = 2, b2 = d2 + 2, y2 = f(0, (v2 - 2 * m2) / b2), w2 = l2 - y2, M2 = [];
            if (y2 && p2 && w2 >= 0) for (t4 = f(0, g2 + w2 / 2), n3 = m2, o2 && (i3 = t4, t4 = n3, n3 = i3), e3 = 0; e3 < b2; e3++) M2.push({ x: (u2 && !o2 ? 0 : h2.x) + t4, y: h2.y + n3, width: y2, height: y2 }), o2 ? t4 += y2 : n3 += y2;
            return M2;
          }, t3.prototype._e = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            if (!this.Oy() && (r2 = t4.gj(), o2 = t4.Fi(), a2 = t4.Jt, u2 = r2.width, s2 = r2.height, c2 = t4.Fi(), f2 = t4.options.rightToLeft, u2 || s2)) {
              if (l2 = i3 ? u2 : o2.width, h2 = i3 ? o2.height : s2, d2 = i3 ? r2.rowMaxLevel : r2.colMaxLevel, v2 = i3 ? a2.kl : a2._l, n3.save(), n3.beginPath(), !e3 || e3.intersect(f2 && !i3 ? c2.x : r2.x, r2.y, l2, h2)) for (g2 = void 0, m2 = void 0, (p2 = new W(t4, i3, d2)).D2t(n3), g2 = v2.call(t4.Jt, (function() {
                return ht(t4, i3, d2);
              })), m2 = 0; m2 <= 2; m2++) g2[m2].F2t(n3);
              n3.beginPath(), n3.restore();
            }
          }, t3.prototype.rpt = function(t4, n3) {
            if (n3) {
              var e3 = n3.what;
              e3 === F || e3 === B ? at(t4, n3) : e3 !== P && e3 !== G || ut(t4, n3);
            }
          }, t3.prototype.Oy = function() {
            return this.x2t;
          }, t3.prototype.Ry = function() {
            var t4 = parseInt(g(R).borderTopWidth, 10);
            return isNaN(t4) ? 2 : t4;
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2 = n3 && n3.ignoreStyle;
            if (t4 && !m2) {
              if (i3 = (e3 = this).items, r2 = t4.items, o2 = t4.itemsData, a2 = t4.direction, u2 = t4.head, s2 = t4.tail, h2 = [], x(a2) || e3.direction(a2), u2 && (e3.head = u2), s2 && (e3.tail = s2), d2 = false, r2 && r2.length > 0) for (g2 = 0; g2 < r2.length; g2++) x(r2[g2]) || (v2 = new q(r2[g2]), e3.direction() === K.forward && (v2.viewCollapsed ? d2 = true : d2 && (v2.collapsed = true, d2 = false)), i3[g2] = v2, e3.x2t = false);
              else p(o2, (function(t5, n4) {
                if (c2 = n4.index, f2 = n4.info, c2 >= 0 && f2) {
                  for (l2 = 0; l2 < n4.count && !(c2 + l2 >= w(i3)); l2++) n4.info.collapsed && h2.push(n4), i3[c2 + l2] = new q(f2);
                  e3.x2t = false;
                }
              }));
              for (e3.Y_r(true), g2 = 0; g2 < h2.length; g2++) e3.K2t(h2[g2].index, true);
            }
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2 = t4 && t4.ignoreStyle;
            if (!h2) {
              for (e3 = [], i3 = (n3 = this).items, o2 = -1, a2 = [], r2 = 0; r2 < w(i3); r2++) u2 = e3[o2], (s2 = i3[r2]) && (a2[r2] = { level: s2.level, collapsed: s2.collapsed, viewCollapsed: s2.viewCollapsed }, o2 >= 0 && r2 === u2.count + u2.index && s2.level === u2.info.level && s2.collapsed === u2.info.collapsed ? e3[o2].count++ : e3[++o2] = { index: r2, count: 1, info: { level: s2.level, collapsed: s2.collapsed } });
              return f2 = { items: a2, itemsData: e3, direction: n3.direction(), head: n3.head, tail: n3.tail }, l2 = {}, (null == t4 ? void 0 : t4.isServer) && (delete f2.itemsData, delete f2.head, delete f2.tail), p(f2, (function(t5, n4) {
                Mt(t5, n4) || (l2[t5] = n4);
              })), v.isEmptyObject(l2) ? c : l2;
            }
          }, t3.prototype.Y_r = function(t4) {
            var n3 = this;
            !t4 && n3.I2t || (n3.A2t = n3.createRangeGroup(), n3.J_r());
          }, t3.prototype.J_r = function(t4) {
            var n3 = this;
            !n3.I2t && n3.groupChangeHandler && n3.groupChangeHandler(t4);
          }, t3.prototype.$Dr = function(t4, n3) {
            var e3 = this.Mf;
            (null == e3 ? void 0 : e3.$Dr) && (t4.isRowGroup = this.v2t, e3.$Dr(t4, n3));
          }, t3.prototype.THr = function(t4) {
            var n3 = this.Mf;
            if (null == n3 ? void 0 : n3.THr) return t4.isRowGroup = this.v2t, n3.THr(t4);
          }, t3;
        })(), n2.Outline = $, $.prototype.direction = A("direction", 1, void 0, void 0, (function(t3, n3) {
          this.$Dr({ type: "setDirection", direction: t3, oldValue: n3 });
        })), u.Outline = $, v.extend(r.Y8.prototype, { m2t: function(t3, n3) {
          var e3 = this, i3 = e3.G8;
          i3 && (i3.originalOutlines || (i3.originalOutlines = []), !t3 || !n3 && i3.originalOutlines[0] ? t3 || !n3 && i3.originalOutlines[1] || (i3.originalOutlines[n3 ? 3 : 1] = kt(e3.opt)) : i3.originalOutlines[n3 ? 2 : 0] = kt(e3.apt));
        }, upt: function(t3, n3, e3) {
          var i3, r2 = this;
          void 0 !== n3 && (this.Mf.outlineColumn.NB = n3), t3 && ((i3 = t3[e3 ? 2 : 0]) && Nt(r2.apt, i3), (i3 = t3[e3 ? 3 : 1]) && Nt(r2.opt, i3));
        } }), r.Y8.ch(j, { init: function() {
          var t3 = this, n3 = t3.Mf;
          t3.opt = new $(t3.getColumnCount(), n3, false), t3.apt = new $(t3.getRowCount(), n3, true);
        }, applyChanges: function(t3) {
          var n3 = this, e3 = t3.changes, i3 = t3.isUndo, r2 = e3 && e3.originalOutlines;
          (r2 || e3.oldOptions) && n3.upt(r2, e3.oldOptions, !i3);
        }, undo: function(t3) {
          var n3 = t3.originalOutlines;
          (n3 || t3.oldOptions) && (this.upt(n3, t3.oldOptions), this.Mf.zw());
        }, dispose: function(t3) {
          var n3 = this, e3;
          false !== (t3 && t3.clearCache) && (n3.opt && (n3.opt.L0(), n3.opt = s), n3.apt && (n3.apt.L0(), n3.apt = s));
        } }), tt = { init: function() {
          var t3 = this;
          t3.rowOutlines = t3.Ut.apt, t3.columnOutlines = t3.Ut.opt, t3.rowOutlines.groupChangeHandler = function(n3) {
            var e3, i3, o2, a2, u2, s2 = n3 && n3.indexes;
            s2 && t3.recalcRows && (e3 = t3.getCalcService()) && !e3.IsSuspended() && t3.recalcRows(s2), (i3 = t3.parent) && t3 !== i3.getActiveSheet() || t3.iP(), s2 ? (o2 = s2[0], a2 = s2[s2.length - 1], u2 = true) : (o2 = 0, a2 = t3.getRowCount() - 1, u2 = false), r.Worksheet.et(t3, "onGroupChanged", { start: o2, end: a2, isRow: true, fromSetCollapsed: u2 });
          }, t3.columnOutlines.groupChangeHandler = function(n3) {
            var e3, i3, o2, a2, u2 = t3.parent;
            u2 && t3 !== u2.getActiveSheet() || t3.rP(), (e3 = n3 && n3.indexes) ? (i3 = e3[0], o2 = e3[e3.length - 1], a2 = true) : (i3 = 0, o2 = t3.getColumnCount() - 1, a2 = false), r.Worksheet.et(t3, "onGroupChanged", { start: i3, end: o2, isRow: false, fromSetCollapsed: a2 });
          }, t3.$L.push(t3.rowOutlines), t3.nF.push(t3.columnOutlines);
        }, dispose: function(t3) {
          var n3 = this;
          false !== t3.clearCache && (n3.rowOutlines && (n3.rowOutlines.groupChangeHandler = s), n3.columnOutlines && (n3.columnOutlines.groupChangeHandler = s)), v(n3.Dg()).unbind("mousedown.group");
        }, setHost: function(t3) {
          if (t3) {
            var n3 = this;
            t3.bind("mousedown.group", (function(t4) {
              var e3, i3, o2 = n3.uw(), a2 = ft.call(n3, t4.pageX - o2.left, t4.pageY - o2.top);
              if (a2) {
                if (e3 = { r: s }, r.Worksheet.et(n3, "preClickGroupArea", e3), e3.r) return;
                (i3 = a2.what) === P || i3 === F ? n3.rowOutlines.rpt(n3, a2) : i3 !== G && i3 !== B || n3.columnOutlines.rpt(n3, a2);
              }
            }));
          }
        }, preProcessMouseDbClick: function(t3) {
          var n3 = this;
          x(n3.sw) || x(n3.sw.outlineHitInfo) || (t3.r = true);
        }, onPaintSuspend: function(t3) {
          var n3 = this;
          t3.suspend ? (n3.rowOutlines.Xst(), n3.columnOutlines.Xst()) : (n3.rowOutlines.$st(), n3.columnOutlines.$st());
        }, beforeLayoutChanged: function(t3) {
          var n3 = this, e3;
          "invalidateLayout" === t3.changeType && (n3.k2t = s);
        }, onLayoutChanged: function(t3) {
          var n3 = this, e3 = t3.changeType, i3 = t3.row, r2 = t3.rowCount, o2 = t3.col, a2 = t3.colCount, u2 = t3.sheetArea, c2 = n3.rowOutlines, f2 = n3.columnOutlines, l2 = x(u2) || 3 === u2, h2 = this.Ut;
          "addRows" === e3 && l2 ? (h2.m2t(true), gt(c2, i3, r2), h2.m2t(true, true)) : "deleteRows" === e3 && l2 ? (h2.m2t(true), mt(c2, i3, r2), h2.m2t(true, true)) : "addColumns" === e3 && l2 ? (h2.m2t(false), gt(f2, o2, a2), h2.m2t(false, true)) : "deleteColumns" === e3 && l2 ? (h2.m2t(false), mt(f2, o2, a2), h2.m2t(false, true)) : "invalidateLayout" === e3 ? n3.k2t = s : "setColumnCount" === e3 ? (h2.m2t(false), 3 !== u2 && 1 !== u2 || f2.X2t(a2), h2.m2t(false, true)) : "setRowCount" !== e3 || 3 !== u2 && 2 !== u2 || (h2.m2t(true), c2.X2t(r2), h2.m2t(true, true));
        }, paint: function(t3) {
          var n3 = t3.ctx, e3 = t3.clipRect, i3 = this, r2 = i3.rowOutlines, o2 = i3.columnOutlines;
          r2 && r2._e(i3, n3, e3, true), o2 && o2._e(i3, n3, e3, false);
        }, fromJson: function(t3, n3, e3) {
          if (t3) {
            var i3 = this, r2 = void 0, o2 = t3.showRowRangeGroup, a2 = t3.showColumnRangeGroup, u2 = T(o2) ? o2 : t3.showRowOutline, s2 = T(a2) ? a2 : t3.showColumnOutline;
            x(u2) || i3.showRowOutline(u2), x(s2) || i3.showColumnOutline(s2), (r2 = t3.rowRangeGroup || t3.rowOutlines) && i3.rowOutlines.fromJSON(r2, e3), (r2 = t3.colRangeGroup || t3.columnOutlines) && i3.columnOutlines.fromJSON(r2, e3);
          }
        }, toJson: function(t3, n3) {
          var e3, i3 = this, r2 = i3.rowOutlines, o2 = i3.columnOutlines, a2 = i3.showRowOutline();
          true !== a2 && (t3.showRowOutline = a2), true !== (e3 = i3.showColumnOutline()) && (t3.showColumnOutline = e3), t3.rowOutlines = r2 ? r2.toJSON(n3) : c, t3.columnOutlines = o2 ? o2.toJSON(n3) : c;
        }, wh: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = e3 && false === e3.includeStyles;
          if (!k2) {
            for (o2 = (i3 = this).rowOutlines, a2 = i3.columnOutlines, true !== (u2 = i3.showRowOutline()) && (t3.lossless.showRowOutline = u2), true !== (s2 = i3.showColumnOutline()) && (t3.lossless.showColumnOutline = s2), 0 !== o2.direction() && 0 !== a2.direction() || ((f2 = N(t3, U)) || (f2 = { n_: U, c_: [] }, t3.c_.push(f2)), l2 = { n_: "outlinePr" }, f2.c_.push(l2), 0 === o2.direction() && (l2.summaryBelow = "0"), 0 === a2.direction() && (l2.summaryRight = "0")), h2 = N(t3, r.XFileConstants._u), d2 = o2.getMaxLevel(), v2 = a2.getMaxLevel(), p2 = -1 !== d2 ? d2 + 1 : c, g2 = -1 !== v2 ? v2 + 1 : c, h2.outlineLevelRow = p2, h2.outlineLevelCol = g2, m2 = t3.tempCols, b2 = a2.items, y2 = h2.defaultColWidth, w2 = 0; w2 < b2.length; w2++) (M2 = b2[w2]) && (C2 = M2.viewCollapsed, ((S2 = m2[w2] ? m2[w2] : { width: y2, hidden: c, collapsed: c, outlineLevel: c }).hidden === V || C2) && (S2.hidden = V), true === M2.collapsed && (S2.collapsed = V), -1 !== M2.level && (S2.outlineLevel = M2.level + 1), m2[w2] = S2);
            for (T2 = N(t3, H), x2 = o2.items, w2 = 0; w2 < x2.length; w2++) (A2 = x2[w2]) && (C2 = A2.viewCollapsed, (I2 = T2[w2] ? T2[w2] : {}).v === c && false === C2 && (I2.v = 0), I2.f = true === A2.collapsed ? 1 : 0, I2.l = A2.level + 1, T2[w2] = I2);
          }
        }, yh: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, A2, I2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2 = e3 && false === e3.includeStyles;
          if (!P2 && (t3.lossless && (i3 = t3.lossless.showRowOutline, o2 = t3.lossless.showColumnOutline, x(i3) || this.showRowOutline(i3), x(o2) || this.showColumnOutline(o2)), u2 = (a2 = this).rowOutlines, s2 = a2.columnOutlines, (c2 = k(t3, U + "&outlinePr")) && ("0" === c2.summaryBelow && u2.direction(0), "0" === c2.summaryRight && s2.direction(0)), (l2 = (f2 = N(t3, r.XFileConstants.Eu)) && f2.c_) && l2.length > 0 && (h2 = s2.items, d2 = a2.getColumnCount(), l2.forEach((function(t4) {
            var n4, e4, i4, o3, a3, u3;
            if ((t4.outlineLevel > 0 || !x(t4.collapsed)) && (s2.x2t = false, n4 = t4.min - 1, e4 = t4.max - 1, i4 = +t4.outlineLevel || 0, o3 = Y(t4.hidden, false), a3 = Y(t4.collapsed, false), n4 >= 0 && e4 >= 0)) for (e4 === r.MAX_COLUMN_COUNT - 1 && (e4 = Math.max(d2, n4)), u3 = n4; u3 <= e4; u3++) h2[u3] = new q({ level: i4 - 1, collapsed: a3, viewCollapsed: o3 }), u3 + 2 > d2 && !(i4 <= 0 && (!h2[u3 - 1] || h2[u3 - 1] && h2[u3 - 1].level < 0)) && (d2 = u3 + 2);
          })), d2 > a2.getColumnCount() && a2.setColumnCount(d2)), v2 = N(t3, H))) {
            for (p2 = a2.Ut.Q_(true), g2 = { rowItems: [], itemsData: [] }, m2 = [], b2 = u2.items, y2 = g2.rowItems, w2 = g2.itemsData, M2 = v2.rowCount, C2 = 0 === u2.direction(), S2 = a2.getRowCount(), T2 = 0; T2 < M2; T2++) (A2 = v2[T2]) ? (I2 = !!A2.f, ((j2 = +A2.l || 0) > 0 || I2) && (y2[T2] = { level: j2 - 1, collapsed: I2 }, (D2 = w2[w2.length - 1]) && T2 === D2.index + D2.count && D2.info.level === j2 - 1 && D2.info.collapsed === I2 ? D2.count++ : w2.push({ index: T2, count: 1, info: { level: j2 - 1, collapsed: I2 } })), _2 = !!A2.v, O2 = m2[T2 - 1] && m2[T2 - 1].hidden, w2 && Dt(g2, T2, j2, C2, _2, O2), (E2 = {}).hidden = _2, _2 && 0 === j2 && (E2.visible = false), m2.push(E2), !r.Util.ko(e3) && !C2 && +T2 + 2 > S2 && (j2 > 0 || I2) && (S2 = +T2 + 2)) : m2.push({});
            if (jt(g2, v2, m2, u2.direction(), p2), R2 = false, L2 = void 0, F2 = [], y2 && y2.length > 0) for (B2 = 0; B2 < y2.length; B2++) x(y2[B2]) || (L2 = new q(y2[B2]), u2.direction() === K.forward && (L2.viewCollapsed ? R2 = true : R2 && (L2.collapsed = true, R2 = false)), b2[B2] = L2, u2.x2t = false);
            for (u2.Y_r(true), B2 = 0; B2 < F2.length; B2++) u2.K2t(F2[B2].index, true);
            for (S2 > a2.getRowCount() && a2.setRowCount(S2), B2 = 0; B2 < m2.length; B2++) false === m2[B2].visible && p2.R8.push(B2);
          }
        } }, r.Worksheet.ch(j, tt), nt = { init: function() {
          o.Commands.g2t(this.commandManager());
        }, onCultureChanged: function() {
          (0, n2.getSR)();
        } }, r.Workbook.ch(j, nt);
      }, "./dist/plugins/group/group.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/group/group.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/group/group.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_GROUP_PROTECTED = n2.Exp_GroupInfoIsNull = n2.Exp_InvalidLevel = n2.Exp_InvalidCount = n2.Exp_InvalidIndex = void 0, n2.Exp_InvalidIndex = "Invalid index", n2.Exp_InvalidCount = "Invalid count", n2.Exp_InvalidLevel = "Invalid level", n2.Exp_GroupInfoIsNull = "groupInfo is null", n2.Exp_GROUP_PROTECTED = "You can not use this command on a protected sheet. To use this command, you must first unprotect sheet.";
      }, "./dist/plugins/hyperlink/hyperlink.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q = this && this.qKr || ($ = function(t3, n3) {
          return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, $(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          $(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), $;
        function tt(t3, n3, e3, i3) {
          return h(i3) && (i3 = 3), !h(t3.getHyperlink(n3, e3, i3));
        }
        function nt() {
          var t3 = u(R);
          return c(t3).css(M, C).css(S, 0).css(I, 2).css(k, "1px #c0c0c0 solid").css("box-shadow", "1px 2px 5px rgba(0,0,0,0.4)").css(N, _).css(D, E).css(T, "9pt Arial"), t3;
        }
        function et(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, f2;
          e3 && (r2 = (i3 = t3 && t3.qc()).getElementsByClassName(L)[0], o2 = false, h(r2) && ((r2 = nt()).className = L, i3.insertBefore(r2, g), o2 = true), a2 = c(r2), !o2 && a2.isVisible() || (a2.text(e3), s2 = (u2 = t3.rt.it()).left + n3.x, f2 = u2.top + n3.y + 20, a2.css(A, f2).css(x, s2), a2.show()));
        }
        function it(t3) {
          var n3 = t3 && t3.qc(), e3 = n3.getElementsByClassName(L)[0];
          h(e3) || c(e3).hide();
        }
        function rt(t3, n3) {
          h(n3) || (n3.drawUnderline && (h(t3.textDecoration) ? t3.textDecoration = 1 : 0 !== t3.textDecoration && 1 & ~t3.textDecoration && (t3.textDecoration += 1)), n3.isVisited ? n3.visitedLinkColor === g ? t3.foreColor = "rgba(0,0,0,0)" : n3.visitedLinkColor === p ? t3.foreColor = B : t3.foreColor = n3.visitedLinkColor : h(n3.linkColor) ? (n3.linkColor !== p || !t3.foreColor && t3.foreColor !== g) && (t3.foreColor = F) : t3.foreColor = n3.linkColor);
        }
        function ot(t3) {
          if (t3 && t3.cellType) {
            var n3 = t3.cellType.typeName;
            if (!X[n3]) return true;
          }
          return false;
        }
        function at(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = 0, s2 = 0, c2 = t3.width, f2 = t3.height, l2 = ut(a2);
          return l2 && (c2 -= l2), u2 = o2 = o2 || 0, 1 === i3 ? u2 = (c2 - n3) / 2 : 2 === i3 ? u2 = c2 - n3 - o2 : 5 === i3 && (u2 = (c2 - n3) / 2), 1 === r2 ? s2 = (f2 - e3) / 2 : 2 === r2 && (s2 = f2 - e3), l2 && (u2 += l2), { x: t3.x + u2, y: t3.y + s2 };
        }
        function ut(t3) {
          var n3 = { context: t3, value: 0 };
          return l.et(t3.sheet, "getOutlineColumnOffset", n3), n3.value;
        }
        function st(t3, n3) {
          var e3 = yt(n3), i3 = t3 - 3 - e3;
          return 5 === n3.hAlign && (i3 -= e3), i3 -= 1;
        }
        function ct(t3, n3, e3, r2) {
          var o2 = st(n3, e3), a2 = i2.q.Q3e(t3);
          return 1 === a2.length && 0 === a2[0].prefixSpaceCount ? m(0, i2.q.Wt(a2[0].word, r2, true)) : o2;
        }
        function ft(t3, n3, e3, r2) {
          var o2 = a(n3), u2 = 5 === e3.hAlign ? ct(t3, r2, e3, n3) : m(0, i2.q.Wt(t3, n3, true)), s2 = t3.split(/\r\n|\r|\n/).length * o2;
          return { x: 0, y: 0, width: u2, height: s2 };
        }
        function lt(t3, n3, e3, r2) {
          return new i2.Rect(t3, n3, e3 - t3, r2 - n3);
        }
        function ht(t3, n3, e3, i3, r2) {
          var o2 = t3.x, a2 = t3.y, u2 = t3.x + t3.width, s2 = t3.y + t3.height;
          switch (i3) {
            case "right":
              if (n3 >= o2 && n3 < u2) return lt(Math.min(n3, o2 + r2), a2, u2, s2);
              if (n3 > u2) return lt(Math.min(n3, o2 + r2), a2, Math.min(n3, u2 + r2), s2);
              break;
            case "left":
              if (n3 >= o2 && n3 < u2) return lt(o2, a2, Math.max(n3, u2 - r2), s2);
              if (n3 < o2) return lt(Math.max(n3, o2 - r2), a2, Math.max(n3, u2 - r2), s2);
              break;
            case "down":
              if (e3 >= a2 && e3 < s2) return lt(o2, Math.min(e3, a2 + r2), u2, s2);
              if (e3 > s2) return lt(o2, Math.min(e3, a2 + r2), u2, Math.min(e3, s2 + r2));
              break;
            case "up":
              if (e3 >= a2 && e3 < s2) return lt(o2, a2, u2, Math.max(e3, s2 - r2));
              if (e3 < a2) return lt(o2, Math.max(e3, a2 - r2), u2, Math.max(e3, s2 - r2));
          }
          return t3;
        }
        function dt(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = 0;
          for (o2 = n3; o2 < e3; o2++) (r2 ? t3.getRowVisible(o2, i3) : t3.getColumnVisible(o2, i3)) && (a2 = r2 ? t3.getRowHeight(o2, i3) : t3.getColumnWidth(o2, i3)) > 0 && (u2 += a2);
          return u2;
        }
        function vt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = n3.Fi(), l2 = n3.frozenRowCount(), h2 = n3.frozenColumnCount(), d2 = n3.frozenTrailingRowCount(), v2 = n3.frozenTrailingColumnCount(), p2 = n3.getRowCount(), g2 = n3.getColumnCount(), m2 = p2 - d2, b2 = g2 - v2, y2 = n3.getViewportTopRow(1), w2 = n3.getViewportBottomRow(1), M2 = n3.getViewportLeftColumn(1), C2 = n3.getViewportRightColumn(1), S2 = (null === (o2 = n3.Cb) || void 0 === o2 ? void 0 : o2.D7(e3, i3, r2)) || n3.Ut.getSpan(e3, i3, r2);
          return !S2 || S2.rowCount <= 1 && S2.colCount <= 1 || (a2 = S2.row + S2.rowCount - 1, u2 = S2.col + S2.colCount - 1, s2 = 2 === r2 ? f2.B1(1) : f2.c9(1, 1), c2 = 1 === r2 ? f2.L1(1) : f2.c9(1, 1), S2 && (S2.row < l2 && a2 >= l2 && l2 < y2 && (t3 = ht(t3, s2.x, s2.y, "up", dt(n3, l2, y2, r2, true))), S2.row < m2 && a2 >= m2 && m2 > w2 && (t3 = ht(t3, s2.x, s2.y, "down", dt(n3, w2, m2, r2, true))), S2.col < h2 && u2 >= h2 && h2 < M2 && (t3 = ht(t3, c2.x, c2.y, "left", dt(n3, h2, M2, r2, false))), S2.col < b2 && u2 >= b2 && b2 > C2 && (t3 = ht(t3, c2.x, c2.y, "right", dt(n3, C2, b2, r2, false))))), t3;
        }
        function pt(t3, n3, e3, r2) {
          var o2, u2, s2, c2, f2 = a(n3), l2 = t3.split(/\r\n|\r|\n/), h2 = 0;
          for (o2 = 0; o2 < l2.length; o2++) u2 = l2[o2], s2 = 5 === e3.hAlign ? ct(u2, r2, e3, n3) : m(0, i2.q.Wt(u2, n3, true)), h2 = Math.max(h2, s2);
          return { x: 0, y: 0, width: h2, height: c2 = l2.length * f2 };
        }
        function gt(t3, n3, e3, i3, r2, o2) {
          var a2 = pt(t3, e3, n3, i3.width), u2 = at(i3, a2.width, a2.height, n3.hAlign, n3.vAlign, r2, o2);
          return a2.x = u2.x, a2.y = u2.y, vt(a2, o2.sheet, o2.row, o2.col, o2.sheetArea);
        }
        function mt(t3, n3, e3, i3, r2, o2) {
          var a2 = ft(t3, e3, n3, i3.width), u2 = at(i3, a2.width, a2.height, n3.hAlign, n3.vAlign, r2, o2);
          return a2.x = u2.x, a2.y = u2.y, a2;
        }
        function bt(t3, n3, e3, r2, o2, a2) {
          var u2, c2, f2, l2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2 = o2.sheet, G2 = P2.Dn;
          if (h(e3)) return false;
          if (e3.textOrientation) return true;
          if (f2 = P2.getValue(o2.row, o2.col, o2.sheetArea), a2 || (a2 = P2.getText(o2.row, o2.col, o2.sheetArea)), !a2) return false;
          if (l2 = e3 && e3.font ? e3.font : G2.Nn(), l2 = G2._n(l2), d2 = [a2], v2 = yt(e3), p2 = null !== (u2 = P2.outlineColumn.Tme) && void 0 !== u2 ? u2 : 0, (e3.wordWrap || 5 === e3.hAlign) && (g2 = r2.width - 3 - v2 - p2, 5 === e3.hAlign && (g2 -= v2), a2 = (d2 = i2.q.un(a2, g2, l2)).join("\r\n")), 3 === (m2 = e3.hAlign) && (m2 = s(m2, f2, e3.formatter || e3._autoFormatter), e3.hAlign = m2), y2 = o2.row, w2 = o2.col, M2 = o2.sheetArea, C2 = (null === (c2 = P2.Cb) || void 0 === c2 ? void 0 : c2.D7(y2, w2, M2)) || P2.Ut.getSpan(y2, w2, M2), S2 = P2.frozenColumnCount(), T2 = P2.frozenRowCount(), x2 = P2.getRowCount() - P2.frozenTrailingRowCount(), A2 = P2.getColumnCount() - P2.frozenTrailingColumnCount(), C2 && (j2 = C2.row + C2.rowCount - 1, D2 = C2.col + C2.colCount - 1, k2 = C2.row < T2 && j2 >= T2 || C2.row < x2 && j2 >= x2, I2 = C2.col < S2 && D2 >= S2 || C2.col < A2 && D2 >= A2, h(M2) || 3 === M2 ? N2 = I2 || k2 : 2 === M2 ? N2 = k2 : 1 === M2 && (N2 = I2)), N2) return (_2 = gt(a2, e3, l2, r2, v2, o2)).x <= t3 && t3 < _2.x + _2.width && _2.y <= n3 && n3 < _2.y + _2.height;
          for (O2 = (_2 = mt(a2, e3, l2, r2, v2, o2)).y, E2 = 0; E2 < d2.length; E2++) if (L2 = (R2 = mt(d2[E2], e3, l2, r2, v2, o2)).x, F2 = b(L2 + R2.width, r2.x + r2.width), O2 = b((B2 = O2) + R2.height, r2.y + r2.height), L2 <= t3 && t3 < F2 && B2 <= n3 && n3 < O2) return true;
          return false;
        }
        function yt(t3) {
          return 8 * (t3.textIndent || 0);
        }
        function wt(t3, n3) {
          var e3, i3, r2 = t3.replace(/:\/*/, "://");
          return r2.endsWith("://") || (r2 = r2.replace(/\/+$/, "")), e3 = r2.endsWith("/") ? "" : "/", i3 = n3.replace(/^\/+/, ""), "".concat(r2).concat(e3).concat(i3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.HyperlinkTargetType = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("SheetsCalc"), a = i2.mt.vt, u = i2.mt.En, s = i2.mt.gt, c = i2.GC$, f = i2.Commands.ActionBase, l = i2.CellTypes.Base, h = r.Common.lt.ht, d = r.Common.lt.tv, v = r.Common.zf.TY, p = void 0, g = null, m = Math.max, b = Math.min, y = window.open, w = r.Common.zf.fJ, M = "position", C = "absolute", S = "margin", T = "font", x = "left", A = "top", I = "padding", k = "border", N = "box-sizing", j = "pointer", D = "background-color", _ = "content-box", O = "default", E = "white", R = "div", L = "gc-spread-hyperlink-tooltip", F = "hyperlink", B = "followedHyperlink", P = "hyperlink", G = "openUrl", U = "generateHyperlink", H = /^sjs:\/\/\w+[\!]\w+([\:]\w+)?/, V = /^(mailto:\/\/)?([a-z0-9_\-\.\!\#$%&'*\+/=?^`{|}~])+\@([a-z0-9\-])+\.([a-z0-9\-]){2,63}(\?subject=.+)?$/gi, z = /(((ht|f)tp(s?)):\/\/(?:www\.|(?!www))[a-z0-9][a-z0-9-]+[a-z0-9]\.[^\s]{2,}|www\.[a-z0-9][a-z0-9-]+[a-z0-9]\.[^\s]{2,}|((ht|f)tp(s?)):\/\/(?:www\.|(?!www))[a-z0-9]+\.[^\s]{2,}|www\.[a-z0-9]+\.[^\s]{2,})/gi, (function(t3) {
          t3[t3.blank = 0] = "blank", t3[t3.self = 1] = "self", t3[t3.parent = 2] = "parent", t3[t3.top = 3] = "top";
        })(Y = n2.HyperlinkTargetType || (n2.HyperlinkTargetType = {})), i2.GC$.extend(i2.Y8.prototype, { getHyperlink: function(t3, n3, e3) {
          var r2, o2, a2;
          return h(e3) && (e3 = 3), r2 = this, o2 = { row: t3, col: n3, sheetArea: e3, isLinkGet: false, hyperlink: p }, i2.Y8.et(this, "getHyperlink", o2), o2.isLinkGet ? o2.hyperlink : (a2 = r2.W_(e3).J_(t3, n3)) && !h(a2.hyperlink) ? a2.hyperlink : g;
        }, setHyperlink: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = this;
          if (h(i3) && (i3 = 3), (r2 = e3 && e3.url) && r2.match(z) && r2.match(z).length > 0 ? w(r2, o2 = "www.") && (e3.url = "http://" + r2) : r2 && r2.match(V) && r2.match(V).length > 0 && (w(r2, a2 = "mailto:") || (e3.url = a2 + r2)), u2 = l2.P8 > 0 ? [["sheetModels", i3], p] : p, s2 = l2.W_(i3).J_(t3, n3, true, u2 ? u2[0] : p), h(s2)) u2 && (u2.length = 0);
          else {
            if (c2 = s2.hyperlink, h(e3)) {
              if (h(s2.hyperlink)) return;
              s2.hyperlink = null, delete s2.hyperlink;
            } else for (f2 in s2.hyperlink = { url: "", linkColor: p, visitedLinkColor: p, tooltip: "", target: 0, drawUnderline: true, isVisited: false, command: "" }, s2.hyperlink) e3[f2] !== p && (s2.hyperlink[f2] = e3[f2]);
            l2.Mf.$Dr({ type: "setRange", row: t3, col: n3, sheetArea: i3, data: s2.hyperlink, setType: "hyperlink", oldValue: c2 }), u2 && (u2[0].push("hyperlink"), u2[1] = c2, u2[2] = s2.hyperlink);
          }
          u2 && u2.length > 0 && l2.G8.push(u2);
        } }), i2.GC$.extend(i2.Worksheet.prototype, { getHyperlink: function(t3, n3, e3) {
          var i3, r2;
          return 0 === e3 ? g : (h(e3) && (e3 = 3), r2 = (i3 = this).Ut, d(r2.getHyperlink(t3, n3, e3)));
        }, setHyperlink: function(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          0 !== i3 && (h(i3) && (i3 = 3), a2 = (o2 = (r2 = this).Ut).getRowCount(i3), u2 = o2.getColumnCount(i3), t3 < 0 || t3 >= a2 || n3 < 0 || n3 >= u2 || (o2.do("setHyperlink", t3, n3, e3, i3), this.zw()));
        } }), Z = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return q(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, a2, u2, s2, c2, f2, l2, d2, p2, g2, m2, b2, M2, C2, S2 = this, T2 = S2.Mf, x2 = false, A2 = T2.parent, I2 = T2, k2 = S2.tT.url;
            if (h(k2)) return x2;
            if (e3 = S2.tT.target || 0, a2 = "sjs://", (u2 = null === (n4 = null === (t4 = A2.docProps) || void 0 === t4 ? void 0 : t4.appDocProps) || void 0 === n4 ? void 0 : n4.hyperlinkBase) !== a2 || k2.startsWith(u2) || (k2 = u2 + k2), 0 === k2.indexOf(a2) || "#" === k2[0]) {
              if (s2 = a2.length, c2 = "#" === k2[0] ? k2.substr(1) : k2.substr(s2), f2 = void 0, (f2 = (0, o.formulaToRanges)(T2, c2, 0, 0, true)) && 0 === f2.length && (f2 = (0, o.formulaToRanges)(T2, c2, 0, 0, false, true)), f2 && f2.length > 0) {
                if (l2 = f2[0].sheetName, d2 = f2[0].ranges[0], l2 !== T2.name() && A2.getSheetFromName(l2).visible() === i2.SheetTabVisible.visible) {
                  if (g2 = { oldSheet: I2, newSheet: p2 = A2.getSheetFromName(l2), cancel: false }, A2.ki(i2.Events.ActiveSheetChanging, g2), g2.cancel) return;
                  A2.setActiveSheet(l2), m2 = A2.getActiveSheetIndex(), A2.w2.Tg(m2), I2 !== (T2 = A2.getActiveSheet()) && A2.ki(i2.Events.ActiveSheetChanged, { oldSheet: I2, newSheet: T2 });
                }
                A2.getSheetFromName(l2).visible() === i2.SheetTabVisible.visible && (T2.OA(d2.row, d2.col), T2.setSelection(d2.row, d2.col, d2.rowCount, d2.colCount));
              }
            } else h(k2) || (b2 = "mailto:", k2.match(z) && k2.match(z).length > 0 ? w(k2, M2 = "www.") && (k2 = "http://" + k2) : k2.match(V) && k2.match(V).length > 0 ? w(k2, b2) || (k2 = b2 + k2) : u2 && (k2 = wt(u2, k2)), w(k2, b2) && r.Common.zf.DU(k2, "?") > 1 && (C2 = k2.split("?"), k2 = C2[0] + "?" + C2.slice(1).join("%3F")), y(v(k2), ["_blank", "_self", "_parent", "_top"][e3]));
            return x2;
          }, n3;
        })(f), i2.Commands[G] = { canUndo: false, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, Z, n3, e3);
        } }, W = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return q(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3 = this, r2 = e3.Mf, o2 = e3.tT, a2 = o2.url, u2 = o2.row, s2 = o2.col, c2 = o2.sheetArea;
            if (null === a2) t4 = null;
            else {
              if ("string" != typeof a2) return false;
              if ((!(n4 = a2.match(z)) || n4.length < 1) && (!(n4 = a2.match(V)) || n4.length < 1) && (n4 = a2.match(H)), !(n4 && n4.length > 0 && 0 === a2.indexOf(n4[0]) && a2.length === n4[0].length)) return false;
              t4 = { url: a2, linkColor: F, visitedLinkColor: B };
            }
            return i2.Commands.startTransaction(this.Mf.getParent(), this.tT), r2.suspendPaint(), r2.suspendEvent(), r2.setHyperlink(u2, s2, t4, c2), r2.resumeEvent(), r2.resumePaint(), i2.Commands.endTransaction(this.Mf.getParent(), this.tT), true;
          }, n3.prototype.undo = function() {
            var t4, n4 = this, e3 = n4.Mf;
            return e3.suspendPaint(), e3.suspendEvent(), t4 = i2.Commands.TI(e3.name()), e3.Ut.undo(this.tT[t4]), e3.resumeEvent(), e3.resumePaint(), true;
          }, n3;
        })(f), i2.Commands[U] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, W, n3, e3);
        } }, Q = { init: function() {
          this.commandManager().register(G, i2.Commands[G]), this.commandManager().register(U, i2.Commands[U]);
        } }, i2.Workbook.ch(P, Q), K = { setHyperlinkWhenEditing: function(t3) {
          var n3 = t3.url, e3 = t3.row, i3 = t3.col, r2 = t3.sheetArea, o2 = this, a2 = o2.getParent();
          a2.options.allowAutoCreateHyperlink && a2.commandManager().execute({ cmd: U, sheetName: o2.name(), url: n3, row: e3, col: i3, sheetArea: r2 });
        } }, i2.Worksheet.ch(P, K), J = { applyHyperlinkStyle: function(t3) {
          var n3 = t3.sheet, e3 = t3.row, i3 = t3.col, r2 = t3.style, o2 = n3.getHyperlink(e3, i3, t3.sheetArea);
          !ot(r2) && rt(r2, o2);
        }, getCellTextHitInfo: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2 = t3.context.sheetArea, y2 = t3.cellStyle, w2 = t3.context, M2 = w2.sheet, C2 = w2.row, S2 = w2.col;
          tt(M2, C2, S2, b2) && !ot(y2) && ((e3 = t3.cellRect) && (i3 = M2.C0(C2), r2 = M2.S0(S2), o2 = M2.Fi(), a2 = void 0, u2 = null === (n3 = M2.Cb) || void 0 === n3 ? void 0 : n3.D7(C2, S2, b2), s2 = void 0, c2 = void 0, f2 = M2.frozenColumnCount(), l2 = M2.frozenRowCount(), d2 = M2.getRowCount() - M2.frozenTrailingRowCount(), v2 = M2.getColumnCount() - M2.frozenTrailingColumnCount(), u2 && (p2 = u2.row + u2.rowCount - 1, g2 = u2.col + u2.colCount - 1, c2 = u2.row < l2 && p2 >= l2 || u2.row < d2 && p2 >= d2, s2 = u2.col < f2 && g2 >= f2 || u2.col < v2 && g2 >= v2), M2.getSpan(C2, S2, b2) || !h(b2) && 3 !== b2 || u2 && (c2 || s2) ? 2 !== b2 || u2 && c2 ? 1 !== b2 || u2 && s2 || (a2 = o2.L1(r2)) : a2 = o2.B1(i3) : a2 = o2.c9(i3, r2), a2 && (e3 = e3.getIntersectRect(a2))), h(b2) && 3 !== b2 || !y2 || !e3 || (m2 = M2.getText(C2, S2, b2), t3.paddingHitInfo = { row: C2, col: S2, x: t3.x, y: t3.y, sheetArea: b2, sheet: M2, isFocusAware: true, isReservedLocation: bt(t3.x, t3.y, y2, e3, w2, m2) }));
        }, processMouseUpOnCellPadding: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2 = t3.sheet, c2 = t3.cellStyle, f2 = t3.row, l2 = t3.col, d2 = t3.sheetArea;
          s2 && !s2.isEditing() && tt(s2, f2, l2, d2) && !ot(c2) && t3.isReservedLocation && (n3 = s2.Dg(), it(s2), n3 && (n3.style.cursor = O), (e3 = s2.Ut.getHyperlink(f2, l2, d2)).isVisited = true, r2 = e3.command, h(r2) || "" === r2 || r2 === G ? s2.getParent().commandManager().execute({ cmd: G, sheetName: s2.name(), url: e3.url, target: e3.target }) : "string" == typeof r2 ? s2.getParent().commandManager().execute({ cmd: r2, row: f2, col: l2, sheetName: s2.name(), sheetArea: d2 }) : "function" == typeof r2 && r2.call(g, s2, f2, l2, d2), o2 = s2.getColumnCount(), a2 = new i2.Range(f2, -1, 1, o2), (u2 = s2.j1(a2, t3.sheetArea)).y -= 2, u2.height += 4, s2.repaint(u2));
        }, processMouseMoveOnCellPadding: function(t3) {
          var n3, e3, i3 = t3.row, r2 = t3.col, o2 = t3.sheet, a2 = t3.cellStyle, u2 = t3.sheetArea;
          tt(o2, i3, r2, u2) && !ot(a2) && (!o2 || o2.isEditing() && o2.getActiveRowIndex() === i3 && o2.getActiveColumnIndex() === r2 || (n3 = o2.Dg(), e3 = o2.getHyperlink(i3, r2, u2), t3.isReservedLocation ? n3 && (et(o2, t3, e3.tooltip), n3.style.cursor = j) : (it(o2), n3 && (n3.style.cursor = O))));
        }, processMouseLeaveOnCellPadding: function(t3) {
          var n3, e3 = t3.sheet, i3 = t3.row, r2 = t3.col, o2 = t3.sheetArea;
          it(e3), tt(e3, i3, r2, o2) && e3 && (n3 = e3.Dg()) && (n3.style.cursor = O);
        }, onUpdateContainer: function(t3) {
          var n3 = t3.cellStyle, e3 = t3.context.row, i3 = t3.context.col, r2 = t3.context.sheet.getHyperlink(e3, i3);
          !ot(n3) && rt(n3, r2);
        } }, l.ch(P, J), X = { 0: true, 1: true, 2: true, 3: true, 4: true };
      }, "./dist/plugins/inputMask/inputMask.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), o = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || r(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.getNamedPatterns = n2.namedPattern = n2.validatePattern = n2.IMCD = void 0, o(e2("./dist/plugins/inputMask/integrate.js"), n2), i2 = e2("./dist/plugins/inputMask/inputMask/inputMask.js"), o(e2("./dist/plugins/inputMask/inputMask/inputMask.ns.js"), n2), n2.IMCD = i2.InputMask, n2.validatePattern = i2.InputMask.validatePattern, n2.namedPattern = i2.InputMask.namedPattern, n2.getNamedPatterns = i2.InputMask.getNamedPatterns;
      }, "./dist/plugins/inputMask/inputMask/common.js": function(t2, n2) {
        "use strict";
        var e2, i2, r;
        function o(t3) {
          if ("string" == typeof t3) {
            if ("true" === t3.toLowerCase()) return true;
            if ("false" === t3.toLowerCase()) return false;
          }
          return true === t3;
        }
        function a(t3, n3, e3) {
          var i3, r2;
          if (e3 >= t3.length) return -1;
          for (i3 = e3; i3 < t3.length; i3++) for (r2 = 0; r2 < n3.length; r2++) if (t3.charAt(i3) === n3[r2]) return i3;
          return -1;
        }
        function u(t3, n3, i3, r2) {
          if (n3 <= 0) return "";
          var o2 = String(t3);
          if (i3 !== e2) {
            for (; o2.length < n3; ) r2 ? o2 += i3 : o2 = i3 + o2;
            return o2;
          }
          for (; o2.length < n3; ) o2 += String(t3);
          return o2;
        }
        function s(t3) {
          return t3 % 400 == 0 || t3 % 4 == 0 && t3 % 100 != 0;
        }
        function c(t3, n3) {
          if (n3 > 12) t3 += parseInt((n3 / 12).toString(), 10), n3 %= 12;
          else if (n3 < 0) return 31;
          switch (n3) {
            case 2:
              return s(t3) || t3 < 0 ? 29 : 28;
            case 4:
            case 6:
            case 9:
            case 11:
              return 30;
          }
          return 31;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CharProcess = n2.CharType = n2.daysInMonth = n2.fillString = n2.indexOfAny = n2.checkBool = n2.markers = void 0, e2 = void 0, n2.markers = { group: ["(", ")"], groupSeparator: "|", quantifier: ["{", "}"], quantifierSeparator: ",", optional: ["[", "]"], letter: "a", number: "0", upper: ">", lower: "<", escape: String.fromCharCode(92), any: "#", year: "y", month: "M", day: "d", hour: "h", hourIn24: "H", minute: "m", second: "s", range: "-", hourFormat: "t" }, n2.checkBool = o, n2.indexOfAny = a, n2.fillString = u, n2.daysInMonth = c, i2 = /* @__PURE__ */ (function() {
          function t3() {
            this.OtherChar = 0, this.Control = 1, this.Numeric = 2, this.MathSymbol = 3, this.Symbol = 4, this.Punctuation = 5, this.Space = 6, this.UpperCase = 7, this.LowerCase = 8;
          }
          return t3;
        })(), n2.CharType = i2, r = (function() {
          function t3() {
            this.Ctype = new i2();
          }
          return t3.prototype.getCharType = function(t4) {
            var n3 = this, e3 = n3.Ctype.OtherChar;
            return "A" <= t4 && t4 <= "Z" ? n3.Ctype.UpperCase : "a" <= t4 && t4 <= "z" ? n3.Ctype.LowerCase : "0" <= t4 && t4 <= "9" ? n3.Ctype.Numeric : (8216 !== t4.charCodeAt(0) && 8217 !== t4.charCodeAt(0) && 8220 !== t4.charCodeAt(0) && 8221 !== t4.charCodeAt(0) || (e3 = n3.Ctype.Punctuation), 12288 === t4.charCodeAt(0) && (e3 = n3.Ctype.Space), e3);
          }, t3.prototype.isLower = function(t4) {
            return this.getCharType(t4) === this.Ctype.LowerCase;
          }, t3.prototype.isUpper = function(t4) {
            return this.getCharType(t4) === this.Ctype.UpperCase;
          }, t3.prototype.isAlphabet = function(t4) {
            return this.isUpper(t4) || this.isLower(t4);
          }, t3.CharEx = new t3(), t3;
        })(), n2.CharProcess = r;
      }, "./dist/plugins/inputMask/inputMask/inputMask.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g;
        function m(t3) {
          var n3, e3, i3;
          for (n3 = 0, e3 = t3.length; n3 < e3; n3++) ("\\" === (i3 = t3[n3]) && "\\" !== t3[n3 + 1] || v.indexOf(i3) >= 0 && "\\" !== t3[n3 - 1]) && (t3 = t3.substring(0, n3) + "\\" + t3.substring(n3, e3), n3++);
          return t3;
        }
        function b(t3) {
          return t3 === r.markers.letter || t3 === r.markers.number || t3 === r.markers.upper || t3 === r.markers.lower || t3 === r.markers.group[0] || t3 === r.markers.optional[0] || t3 === r.markers.escape || t3 === r.markers.any || t3 === r.markers.quantifier[0] || t3 === r.markers.range || t3 === r.markers.year || t3 === r.markers.month || t3 === r.markers.day || t3 === r.markers.hourIn24 || t3 === r.markers.hour || t3 === r.markers.minute || t3 === r.markers.second || t3 === r.markers.hourFormat;
        }
        function y(t3, n3) {
          for (var e3, a2, u2, s2 = { result: false }, c2 = 1, f2 = "", l2 = n3.Bse(), h2 = new o.OptionalRestriction(l2); c2 < t3.length - 1; ) {
            if ((e3 = t3[c2]) === r.markers.escape) {
              if (e3 = t3.charAt(c2 + 1), t3[c2 + 2] === r.markers.range && (!b(t3[c2 + 3]) || t3[c2 + 3] === r.markers.escape)) {
                t3[c2 + 3] === r.markers.escape ? (a2 = t3[c2 + 4] > e3 ? e3 : t3[c2 + 4], u2 = t3[c2 + 4] > e3 ? t3[c2 + 4] : e3, h2.add(new o.RangeRestriction(a2, u2, l2)), c2 += 5) : (a2 = t3[c2 + 3] > e3 ? e3 : t3[c2 + 3], u2 = t3[c2 + 3] > e3 ? t3[c2 + 3] : e3, h2.add(new o.RangeRestriction(a2, u2, l2)), c2 += 4);
                continue;
              }
              c2++, -1 === f2.indexOf(e3) && (f2 += e3);
            } else if (e3 === r.markers.letter) h2.add(new o.RangeRestriction("A", "Z", l2)), h2.add(new o.RangeRestriction("a", "z", l2));
            else if (e3 === r.markers.upper) h2.add(new o.RangeRestriction("A", "Z", l2, i2.CaseType.upperCase)), h2.add(new o.RangeRestriction("a", "z", l2, i2.CaseType.upperCase));
            else if (e3 === r.markers.lower) h2.add(new o.RangeRestriction("A", "Z", l2, i2.CaseType.lowerCase)), h2.add(new o.RangeRestriction("a", "z", l2, i2.CaseType.lowerCase));
            else if (e3 === r.markers.number) h2.add(new o.RangeRestriction("0", "9", l2));
            else {
              if (t3.length > c2 + 2 && t3[c2 + 1] === r.markers.range && (!b(t3[c2 + 2]) || t3[c2 + 2] === r.markers.escape)) {
                t3[c2 + 2] === r.markers.escape ? (a2 = t3[c2 + 3] > e3 ? e3 : t3[c2 + 3], u2 = t3[c2 + 3] > e3 ? t3[c2 + 3] : e3, h2.add(new o.RangeRestriction(a2, u2, l2)), c2 += 4) : (a2 = t3[c2 + 2] > e3 ? e3 : t3[c2 + 2], u2 = t3[c2 + 2] > e3 ? t3[c2 + 2] : e3, h2.add(new o.RangeRestriction(a2, u2, l2)), c2 += 3);
                continue;
              }
              if (-1 !== f2.indexOf(e3)) {
                c2++;
                continue;
              }
              f2 += e3;
            }
            c2++;
          }
          return f2.length > 0 && h2.add(new o.LimitedRestriction(l2, f2)), s2.result = true, s2.restriction = h2, s2;
        }
        function w(t3, n3) {
          var e3, i3, o2, a2, u2;
          for (t3 = t3.substring(1, t3.length - 1), e3 = 0, i3 = 0; e3 < t3.length; ) if (-1 !== (u2 = (0, r.indexOfAny)(t3, [r.markers.groupSeparator, r.markers.group[1], r.markers.escape, r.markers.group[0]], e3))) {
            if (t3.charAt(u2) === r.markers.escape) {
              if ((a2 = t3.charAt(u2 + 1)) === r.markers.escape || a2 === r.markers.group[0] || a2 === r.markers.groupSeparator || a2 === r.markers.group[1]) {
                if ((e3 = u2 + 1) === (t3 = t3.substring(0, u2) + t3.substring(u2 + 1)).length) {
                  if (0 === (o2 = t3.substring(i3)).length) return false;
                  n3.push(o2);
                }
                continue;
              }
              return false;
            }
            if (t3.charAt(u2) !== r.markers.groupSeparator) return false;
            if (0 === (o2 = t3.substring(i3, u2)).length) return false;
            n3.push(o2), i3 = e3 = u2 + 1;
          } else {
            if (0 === (o2 = t3.substring(i3)).length) return false;
            n3.push(o2), e3 = t3.length;
          }
          return true;
        }
        function M(t3) {
          var n3, e3, i3, o2, a2, u2 = { min: -1, max: -1, result: false };
          if (-1 === (n3 = t3.indexOf(r.markers.quantifierSeparator, 1))) try {
            return u2.min = +t3.substring(1, t3.length - 1), u2.max = u2.min, u2.result = u2.max > 0, u2;
          } catch (t4) {
            return u2.result = false, u2;
          }
          try {
            return e3 = t3.substring(1, n3), i3 = void 0, i3 = "" === e3.trim() ? 0 : +e3, u2.min = i3, o2 = t3.substring(n3 + 1, t3.length - 1), a2 = void 0, a2 = "" === o2.trim() ? Math.pow(2, 31) : +o2, u2.max = a2, u2.min < 0 || u2.min > u2.max || 0 === u2.max ? (u2.result = false, u2) : (u2.result = true, u2);
          } catch (t4) {
            return u2.result = false, u2;
          }
        }
        function C(t3, n3) {
          var e3, o2, a2, u2, s2, c2 = { keyLen: 0 };
          if (c2.keyType = i2.KeywordType.unknow, n3 >= t3.length) return c2;
          switch (e3 = t3.charAt(n3)) {
            case r.markers.escape:
              return c2.keyLen = 2, c2.keyType = i2.KeywordType.promptChar, c2.keyword = t3.substring(n3 + 1, n3 + 2), c2;
            case r.markers.any:
              return c2.keyLen = 1, c2.keyType = i2.KeywordType.any, c2.keyword = t3.substring(n3, n3 + 1), c2;
            case r.markers.quantifier[0]:
              return -1 === (o2 = t3.indexOf(r.markers.quantifier[1], n3 + 1)) ? (c2.keyword = "", c2) : (c2.keyType = i2.KeywordType.quantifier, c2.keyLen = o2 + 1 - n3, c2.keyword = t3.substring(n3, n3 + c2.keyLen), c2);
            case r.markers.optional[0]:
              o2 = n3, a2 = 0;
              do {
                if (-1 === (o2 = t3.indexOf(r.markers.optional[1], o2 + 1))) return c2.keyword = "", c2;
                for (u2 = o2 - 1; u2 > 0 && t3.charAt(u2) === r.markers.escape; u2--) a2++;
              } while (t3.charAt(o2 - 1) === r.markers.escape && a2 % 2 != 0);
              return c2.keyType = i2.KeywordType.optional, c2.keyLen = o2 + 1 - n3, c2.keyword = t3.substring(n3, n3 + c2.keyLen), c2;
            case r.markers.group[0]:
              o2 = n3;
              do {
                if (-1 === (o2 = t3.indexOf(r.markers.group[1], o2 + 1))) return c2.keyword = "", c2;
              } while (t3.charAt(o2 - 1) === r.markers.escape);
              return c2.keyType = i2.KeywordType.group, c2.keyLen = o2 + 1 - n3, c2.keyword = t3.substring(n3, n3 + c2.keyLen), c2;
            case r.markers.letter:
            case r.markers.number:
            case r.markers.upper:
            case r.markers.lower:
              return c2.keyLen = 1, c2.keyType = i2.KeywordType.range, c2.keyword = e3, c2;
            case r.markers.year:
            case r.markers.month:
            case r.markers.day:
            case r.markers.hour:
            case r.markers.hourIn24:
            case r.markers.minute:
            case r.markers.second:
            case r.markers.hourFormat:
              for (o2 = n3 + 1; t3.charAt(o2) === e3; ) o2++;
              return c2.keyLen = o2 - n3, c2.keyType = i2.KeywordType.date, c2.keyword = t3.substring(n3, n3 + c2.keyLen), c2;
            default:
              for (o2 = n3 + 1; o2 < t3.length && !b(s2 = t3[o2]); o2++) ;
              return c2.keyType = i2.KeywordType.promptChar, c2.keyLen = o2 - n3, c2.keyword = t3.substring(n3, n3 + c2.keyLen), c2;
          }
        }
        function S(t3, n3) {
          return !t3[n3._type] && (t3[n3._type] = n3, (!t3[i2.RestrictionType.hour24] || !t3[i2.RestrictionType.hour]) && void 0);
        }
        function T(t3, n3) {
          var e3 = 0, i3 = n3.length;
          2 === t3.yce && 1 === i3 && (e3 = 1), t3.replace(e3, t3.length(), n3);
        }
        function x(t3, n3, e3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2;
          if (a2 < r2) {
            for (f2 = ++a2, l2 = 0; a2 < r2; a2++) t3.zse[a2]._type !== i2.RestrictionType.prompt && (e3 = t3.zse[a2].delete(e3, t3.zse[a2]._text.length, u2));
            for (h2 = 0; h2 < f2; h2++) l2 += c2 = (s2 = t3.zse[h2]).length();
            if (n3 === l2 && s2.Jse === s2.VUt) for (; f2 <= r2 && (t3.zse[f2]._type === i2.RestrictionType.prompt && f2 !== t3.DU - 1); f2++) n3 += t3.zse[f2]._text.length;
            if (0 === o2) return n3;
            t3.zse[r2]._type !== i2.RestrictionType.prompt && t3.zse[r2].delete(e3, o2, u2);
          }
          return n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.InputMask = void 0, i2 = e2("./dist/plugins/inputMask/inputMask/interface.js"), r = e2("./dist/plugins/inputMask/inputMask/common.js"), o = e2("./dist/plugins/inputMask/inputMask/restrictions.js"), a = e2("Common"), u = e2("./dist/plugins/inputMask/inputMask/inputMask.ns.js"), s = new a.Common.ResourceManager(u.SR, "InputMask"), c = s.getResource.bind(s), f = void 0, l = a.Common.lt, h = l.ht, d = l._h, v = ["\\", "^", ".", "$", "|", "(", ")", "[", "]", "*", "+", "?", "{", "}", ","], p = [{ type: i2.RestrictionType.year, func: function(t3, n3) {
          var e3 = t3.getFullYear().toString(), i3 = e3.length;
          e3 = n3.yce < 4 ? e3.substring(i3 - 2, i3) : e3.toString(), n3.replace(0, n3.length(), e3);
        } }, { type: i2.RestrictionType.month, func: function(t3, n3) {
          var e3;
          T(n3, (t3.getMonth() + 1).toString());
        } }, { type: i2.RestrictionType.day, func: function(t3, n3) {
          var e3;
          T(n3, t3.getDate().toString());
        } }, { type: i2.RestrictionType.hour, func: function(t3, n3) {
          var e3;
          T(n3, (t3.getHours() > 12 ? t3.getHours() - 12 : t3.getHours()).toString());
        } }, { type: i2.RestrictionType.hour24, func: function(t3, n3) {
          var e3;
          T(n3, t3.getHours().toString());
        } }, { type: i2.RestrictionType.minute, func: function(t3, n3) {
          var e3;
          T(n3, t3.getMinutes().toString());
        } }, { type: i2.RestrictionType.second, func: function(t3, n3) {
          var e3;
          T(n3, t3.getSeconds().toString());
        } }, { type: i2.RestrictionType.hourFormat, func: function(t3, n3) {
          var e3, i3 = n3.getText().length, r2;
          r2 = 1 === i3 ? t3.getHours() > 12 ? c().hourFormatSingleDesignator[1] : c().hourFormatSingleDesignator[0] : t3.getHours() > 12 ? c().hourFormatDesignator[1] : c().hourFormatDesignator[0], n3.replace(0, i3, r2);
        } }], g = (function() {
          function t3(n3) {
            this.Lse = false, this.Fse = false;
            var e3 = this;
            e3.Hc(n3), t3.ofe(n3.pattern, e3);
          }
          return t3.prototype.getValue = function() {
            var t4, n3, e3 = this, r2 = "", o2 = e3.Lse;
            for (t4 = 0; t4 < e3.DU; t4++) n3 = e3.Pse(t4), true === o2 && n3._type === i2.RestrictionType.prompt || (r2 += n3.getText());
            return true === e3.Fse && (r2 = r2.replace(new RegExp("\\" + e3.Gse, "g"), "")), r2;
          }, t3.prototype.Hc = function(t4) {
            var n3 = this;
            n3.Use = 0, n3.Hse = 0, n3._text = "", n3.y4 = "", n3.Gse = t4.placeholder && t4.placeholder[0] || "_", n3.DU = 0, n3.zse = [], n3.Vse = true, n3.Yse = {}, n3.Lse = t4.excludeLiteral, n3.Nmt = [], n3.kmt = [], n3.Fse = t4.excludePlaceholder;
          }, t3.prototype._length = function() {
            var t4, n3, e3 = this, i3 = 0;
            for (t4 = 0; t4 < e3.DU; t4++) i3 += (n3 = e3.Pse(t4)).length();
            return i3;
          }, t3.prototype.Pse = function(t4) {
            return this.zse[t4];
          }, t3.prototype.Wse = function(t4) {
            var n3, e3, i3, r2 = this, o2 = {}, a2 = 0;
            for (n3 = 0; n3 < r2.DU; n3++) {
              if (i3 = (e3 = r2.zse[n3]).length(), t4 === a2 && 0 === i3 || t4 >= a2 && t4 < a2 + i3) return o2.index = n3, o2.offset = t4 - a2, o2;
              a2 += i3;
            }
            if (t4 >= a2) return e3 = r2.zse[r2.DU - 1], o2.index = r2.DU - 1, o2.offset = e3.length(), o2;
          }, t3.prototype.ZP = function(t4) {
            var n3 = this;
            t4 !== f && (n3.zse.push(t4), n3.Vse = true, n3.DU++);
          }, t3.prototype.vfe = function() {
            var t4 = this;
            t4.zse = [], t4.Yse = {}, t4.DU = 0;
          }, t3.prototype.Bse = function() {
            return this.Gse;
          }, t3.prototype.getText = function(t4) {
            var n3, e3, i3 = this, r2 = "";
            for (n3 = 0; n3 < i3.DU; n3++) r2 += (e3 = i3.Pse(n3)).getText();
            return true === t4 && (r2 = r2.substring(i3.Use, Math.min(i3.Hse, r2.length))), r2;
          }, t3.prototype.getFirstInputPosition = function() {
            for (var t4, n3 = this, e3 = 0, r2 = 0, o2 = n3.DU; r2 < o2; r2++) {
              if ((t4 = n3.Pse(r2))._type !== i2.RestrictionType.prompt && t4.getStatus() !== i2.RestrictionStatus.complete) {
                e3 += t4.Jse ? t4.Jse : 0;
                break;
              }
              e3 += t4.length();
            }
            if (r2 === o2) for (r2--, t4 = n3.Pse(r2); t4._type === i2.RestrictionType.prompt; ) e3 -= t4.length(), r2--, t4 = n3.Pse(r2);
            return e3;
          }, t3.prototype.clear = function() {
            var t4 = this;
            return t4.Qse(), t4.Use = t4.Hse = t4.getFirstInputPosition(), this;
          }, t3.prototype.Qse = function() {
            var t4, n3, e3 = this;
            if (e3.DU > 0) for (t4 = 0; t4 < e3.DU; t4++) (n3 = e3.zse[t4]).delete(0, n3._text.length, true);
          }, t3.prototype.getSelection = function() {
            var t4 = this, n3 = t4.getText(), e3 = t4.Hse;
            return e3 > n3.length && (e3 = n3.length), { start: t4.Use, end: e3 };
          }, t3.prototype.setSelection = function(t4) {
            var n3 = this, e3 = Math.min(t4.start, t4.end), i3 = Math.abs(t4.start - t4.end);
            n3.Use = e3, n3.Hse = e3 + i3;
          }, t3.prototype.undo = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Nmt, u2 = t4;
            if (u2 || (n3 = a2.pop()) && (u2 = n3.oldState), u2) {
              for (o2.Use = u2.selectionStart, o2.Hse = u2.selectionEnd, e3 = o2.zse, i3 = 0, r2 = o2.DU; i3 < r2; i3++) e3[i3].undo(u2.restrictionsUndoInfo[i3]);
              t4 || o2.kmt.push(n3);
            }
          }, t3.prototype.redo = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.kmt, a2 = o2.pop();
            if (a2 && (t4 = a2.newState)) {
              for (r2.Use = t4.selectionStart, r2.Hse = t4.selectionEnd, n3 = r2.zse, e3 = 0, i3 = r2.DU; e3 < i3; e3++) n3[e3].undo(t4.restrictionsUndoInfo[e3]);
              r2.Nmt.push(a2);
            }
          }, t3.prototype.xfe = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.DU;
            if (t4 === f && (t4 = a2.Use), n3 === f && (n3 = a2.Hse), e3 = { selectionStart: t4, selectionEnd: n3, restrictionsUndoInfo: new Array(u2) }, u2 > 0) for (i3 = e3.restrictionsUndoInfo, r2 = 0; r2 < u2; r2++) o2 = a2.zse[r2], i3[r2] = o2.saveOldState();
            return e3;
          }, t3.prototype.addUndoInfo = function(t4, n3) {
            var e3, i3;
            this.Nmt.push({ oldState: t4, newState: n3 });
          }, t3.namedPattern = function(n3, e3) {
            if (t3.namedPatterns || (t3.namedPatterns = {}), !h(n3)) {
              if (n3 = m(n3), e3 === f) return t3.namedPatterns[n3];
              t3.namedPatterns[n3] = e3;
            }
          }, t3.replaceNamedPattern = function(n3) {
            return t3.namedPatterns || (t3.namedPatterns = {}), Object.keys(t3.namedPatterns).forEach((function(e3) {
              h(t3.namedPatterns[e3]) || (n3 = n3.replace(e3, t3.namedPatterns[e3]));
            })), n3;
          }, t3.getNamedPatterns = function() {
            t3.namedPatterns || (t3.namedPatterns = {});
            var n3 = t3.namedPatterns, e3 = [];
            return Object.keys(n3).forEach((function(t4) {
              var i3 = n3[t4];
              h(t4) || h(i3) || e3.push({ name: t4, pattern: i3 });
            })), e3;
          }, t3.validatePattern = function(n3) {
            return t3.ofe(n3);
          }, t3.ofe = function(n3, e3) {
            var a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, T2, x2, A, I, k, N, j, D = { success: false };
            if (!n3) return D.message = c().errorMsg.emptyPattern, D;
            for (e3 || ((e3 = { DU: 0, zse: [], Yse: {} }).Bse = function() {
              return "_";
            }, e3.Kse = function(t4) {
              var n4;
              switch (t4.keyword[0]) {
                case r.markers.year:
                  n4 = i2.RestrictionType.year;
                  break;
                case r.markers.month:
                  n4 = i2.RestrictionType.month;
                  break;
                case r.markers.day:
                  n4 = i2.RestrictionType.day;
                  break;
                case r.markers.hour:
                  n4 = i2.RestrictionType.hour;
                  break;
                case r.markers.hourIn24:
                  n4 = i2.RestrictionType.hour24;
                  break;
                case r.markers.minute:
                  n4 = i2.RestrictionType.minute;
                  break;
                case r.markers.second:
                  n4 = i2.RestrictionType.second;
              }
              if (n4) return new o.DateTimeItemRestriction(n4, "_", t4.keyLen);
            }, e3.ZP = function(t4) {
              e3.zse.push(t4), e3.DU++;
            }, e3.vfe = function() {
              e3.zse = [], e3.DU = 0;
            }), s2 = (u2 = C(n3 = t3.replaceNamedPattern(n3), a2 = 0)).keyword, f2 = u2.keyType, l2 = u2.keyLen, h2 = i2.KeywordType.promptChar, d2 = "", v2 = i2.KeywordType.optional, g2 = e3.Bse(); n3.length > a2; ) {
              switch (f2) {
                case i2.KeywordType.unknow:
                  return e3.vfe(), D.message = c().errorMsg.unknownPattern, D;
                case i2.KeywordType.optional:
                  if (!(m2 = y(s2, e3)).result) return e3.vfe(), D.message = c().errorMsg.invalidOptionalPattern, D;
                  p2 = m2.restriction, h2 = i2.KeywordType.optional;
                  break;
                case i2.KeywordType.group:
                  if (!w(s2, b2 = [])) return e3.vfe(), D.message = c().errorMsg.invalidGroupPattern, D;
                  if (1 === b2.length) {
                    h2 === i2.KeywordType.promptChar ? d2 += b2[0] : (d2 = b2[0], h2 = i2.KeywordType.promptChar);
                    break;
                  }
                  if (0 !== b2.length) {
                    (p2 = new o.EnumRestriction(g2)).setItems(b2), e3.ZP(p2), h2 = i2.KeywordType.group, s2 = (u2 = C(n3, a2 += l2)).keyword, f2 = u2.keyType, l2 = u2.keyLen;
                    continue;
                  }
                  break;
                case i2.KeywordType.promptChar:
                  h2 === i2.KeywordType.promptChar ? d2 += s2 : (d2 = s2, h2 = i2.KeywordType.promptChar);
                  break;
                case i2.KeywordType.quantifier:
                  return e3.vfe(), D.message = c().errorMsg.errorQuantifierPattern, D;
                case i2.KeywordType.range:
                  p2 = new o.OptionalRestriction(g2), s2 === r.markers.letter ? (p2.add(new o.RangeRestriction("A", "Z", g2)), p2.add(new o.RangeRestriction("a", "z", g2))) : s2 === r.markers.upper ? (p2.add(new o.RangeRestriction("A", "Z", g2, i2.CaseType.upperCase)), p2.add(new o.RangeRestriction("a", "z", g2, i2.CaseType.upperCase))) : s2 === r.markers.lower ? (p2.add(new o.RangeRestriction("A", "Z", g2, i2.CaseType.lowerCase)), p2.add(new o.RangeRestriction("a", "z", g2, i2.CaseType.lowerCase))) : s2 === r.markers.number && p2.add(new o.RangeRestriction("0", "9", g2)), h2 = i2.KeywordType.range;
                  break;
                case i2.KeywordType.any:
                  p2 = new o.AnyCharRestriction(g2), h2 = i2.KeywordType.any;
                  break;
                case i2.KeywordType.date:
                  if ((p2 = e3.Kse(u2)) || u2.keyword[0] !== r.markers.hourFormat || ((p2 = new o.EnumRestriction(g2)).setItems(1 === u2.keyLen ? c().hourFormatSingleDesignator : c().hourFormatDesignator), p2._type = i2.RestrictionType.hourFormat), false === (T2 = S(e3.Yse, p2))) return e3.vfe(), D.message = c().errorMsg.duplicatedDateTimePattern, D;
                  h2 = i2.KeywordType.date;
              }
              if (x2 = 1, A = 1, (a2 += l2) < n3.length) {
                switch (s2 = (u2 = C(n3, a2)).keyword, f2 = u2.keyType, l2 = u2.keyLen, f2) {
                  case i2.KeywordType.unknow:
                    return e3.vfe(), D.message = c().errorMsg.unknownPattern, D;
                  case i2.KeywordType.optional:
                    v2 = i2.KeywordType.optional;
                    break;
                  case i2.KeywordType.group:
                    for (I = true, k = 0; k < s2.length; k++) if (s2[k] === r.markers.groupSeparator && s2[k - 1] !== r.markers.escape) {
                      I = false;
                      break;
                    }
                    v2 = I ? i2.KeywordType.promptChar : i2.KeywordType.optional;
                    break;
                  case i2.KeywordType.quantifier:
                    if (!(N = M(s2)).result) return e3.vfe(), D.message = c().errorMsg.invalidQuantifierPattern, D;
                    if (A = N.min, x2 = N.max, isNaN(A) || isNaN(x2)) return e3.vfe(), D.message = c().errorMsg.invalidQuantifierPattern, D;
                    s2 = (u2 = C(n3, a2 += l2)).keyword, f2 = u2.keyType, l2 = u2.keyLen, v2 = i2.KeywordType.quantifier;
                    break;
                  case i2.KeywordType.promptChar:
                    v2 = i2.KeywordType.promptChar;
                    break;
                  case i2.KeywordType.range:
                    v2 = i2.KeywordType.range;
                    break;
                  case i2.KeywordType.any:
                    v2 = i2.KeywordType.any;
                    break;
                  case i2.KeywordType.date:
                    v2 = i2.KeywordType.date;
                }
                if (h2 === i2.KeywordType.promptChar) {
                  if (v2 !== i2.KeywordType.promptChar) {
                    if (v2 === i2.KeywordType.quantifier) return e3.vfe(), D.message = c().errorMsg.errorQuantifierPattern, D;
                    e3.ZP(new o.PromptRestriction(d2, g2));
                  }
                } else p2.init(A, x2, (0, r.fillString)(p2.getPromptChar(), A), [false, false, false]), p2.Jse = 0, e3.ZP(p2);
              } else h2 === i2.KeywordType.promptChar ? e3.ZP(new o.PromptRestriction(d2, g2)) : (p2.init(1, 1), e3.ZP(p2));
            }
            for (j = 0; j < e3.DU && e3.zse[j]._type === i2.RestrictionType.prompt; j++) ;
            return j === e3.DU ? (e3.vfe(), D.message = c().errorMsg.noEntry, D) : (D.success = true, D);
          }, t3.prototype.Kse = function(t4) {
            var n3, e3 = this;
            switch (t4.keyword[0]) {
              case r.markers.year:
                n3 = i2.RestrictionType.year;
                break;
              case r.markers.month:
                n3 = i2.RestrictionType.month;
                break;
              case r.markers.day:
                n3 = i2.RestrictionType.day;
                break;
              case r.markers.hour:
                n3 = i2.RestrictionType.hour;
                break;
              case r.markers.hourIn24:
                n3 = i2.RestrictionType.hour24;
                break;
              case r.markers.minute:
                n3 = i2.RestrictionType.minute;
                break;
              case r.markers.second:
                n3 = i2.RestrictionType.second;
            }
            if (n3) return new o.DateTimeItemRestriction(n3, e3.Gse, t4.keyLen);
          }, t3.prototype.Xse = function() {
            var t4 = this.qse(i2.RestrictionType.year);
            return !(h(t4) || 3 !== t4.VUt && 4 !== t4.VUt);
          }, t3.prototype.$se = function() {
            var t4 = this.qse(i2.RestrictionType.year);
            return !(h(t4) || 1 !== t4.VUt && 2 !== t4.VUt);
          }, t3.prototype.pce = function() {
            var t4, n3, e3, r2, o2 = this, a2 = o2.qse(i2.RestrictionType.year);
            return h(a2) ? i2.DateStatus.null : o2.Xse() ? a2.getValue() : (t4 = a2.getValue(), n3 = (/* @__PURE__ */ new Date()).getFullYear(), t4 !== i2.DateStatus.null && t4 !== i2.DateStatus.inComplete && (99 === t4 && (t4 = 100), e3 = 100 * parseInt((n3 / 100).toString(), 10) + t4, r2 = 100 * parseInt(((n3 - 99) / 100).toString(), 10) + t4, e3 <= n3 && e3 >= n3 - 99 ? t4 = e3 : r2 <= n3 && r2 >= n3 - 99 && (t4 = r2)), t4);
          }, t3.prototype.setValue = function(t4, n3) {
            var e3, i3 = this;
            if (i3.setSelection({ start: 0, end: i3._length() }), i3.Qse(), void 0 === t4 || "" === t4 || 0 === t4.length) return true;
            if (0 !== t4.length) {
              if (!h(n3) && n3 instanceof Date && !d(i3.Yse)) return p.forEach((function(t5) {
                var e4 = i3.qse(t5.type);
                e4 && t5.func(n3, e4);
              })), e3 = i3._length(), void i3.setSelection({ start: e3, end: e3 });
              i3.paste(t4, true);
            }
          }, t3.prototype.qse = function(t4) {
            var n3, e3, r2, o2 = this;
            if (true === o2.Vse) {
              for (n3 = o2.Yse = {}, e3 = 0; e3 < o2.DU; e3++) (r2 = o2.zse[e3])._type !== i2.RestrictionType.prompt && (n3[r2._type] = r2);
              o2.Vse = false;
            }
            return o2.Yse[t4];
          }, t3.prototype.bce = function() {
            var t4, n3, e3, o2, a2 = this, u2 = a2.qse(i2.RestrictionType.day), s2 = a2.qse(i2.RestrictionType.year), c2 = a2.qse(i2.RestrictionType.month);
            u2 && (t4 = h(s2) ? i2.DateStatus.null : (a2.$se() || a2.Xse()) && s2.getStatus() === i2.RestrictionStatus.inComplete ? i2.DateStatus.inComplete : a2.pce(), n3 = h(c2) ? i2.DateStatus.null : c2.getStatus() === i2.RestrictionStatus.inComplete ? i2.DateStatus.inComplete : c2.getValue(), e3 = 1, o2 = (0, r.daysInMonth)(t4, n3), u2.setRange(e3, o2));
          }, t3.prototype.pfe = function() {
            var t4, n3, e3 = this, r2 = e3.qse(i2.RestrictionType.hour24), o2 = e3.qse(i2.RestrictionType.hourFormat);
            r2 && o2 && (t4 = r2.getValue(), n3 = o2.getText().length, t4 >= 12 ? o2.replace(0, n3, 1 === n3 ? c().hourFormatSingleDesignator[1] : c().hourFormatDesignator[1]) : t4 >= 0 && o2.replace(0, n3, 1 === n3 ? c().hourFormatSingleDesignator[0] : c().hourFormatDesignator[0]));
          }, t3.prototype.bfe = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.DU;
            return !(t4 >= b2 - 1) && (o2 = m2.xfe(), a2 = e3 - n3, s2 = (u2 = m2.getText()).length, l2 = (f2 = (c2 = m2.Pse(t4)).getText()).substring(0, n3) + r2 + u2.substring(e3, u2.length), m2.setSelection({ start: a2, end: s2 }), false === (h2 = m2.replace(l2, true)).success ? (m2.undo(o2), false) : (d2 = e3 + r2.length, p2 = (v2 = m2.Wse(d2)).index, g2 = v2.offset, p2 < m2.DU - 1 && m2.zse[p2]._type === i2.RestrictionType.prompt && 0 === g2 && (!m2.zse[p2 - 1] || m2.zse[p2 - 1].satisfy()) && (d2 += m2.zse[p2].length()), m2.setSelection({ start: d2, end: d2 }), true));
          }, t3.prototype.Eit = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2 = this, c2 = {};
            if (c2.cursorPos = t4, c2.text = n3, 0 === s2.DU || n3 === f || "" === n3 || t4 < 0) return c2;
            if (r2 = (e3 = s2.Wse(t4)).index, (o2 = e3.offset) === (a2 = s2.zse)[r2].VUt) return c2;
            for (; 0 !== r2 && 0 === o2 && (u2 = s2.zse[r2 - 1])._type !== i2.RestrictionType.prompt && u2._text.length < u2.VUt; ) if ((o2 = a2[--r2].Jse) < a2[r2].yce) {
              if (o2 = a2[r2].yce, "" === (c2 = s2.wce(r2, o2, t4, n3)).text) return c2;
              if (t4 === o2) {
                r2++, o2 = 0;
                break;
              }
            }
            return s2.wce(r2, o2, t4, n3);
          }, t3.prototype.wce = function(t4, n3, e3, r2) {
            for (var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = {}, g2 = t4, m2 = v2.DU, b2 = v2.xfe(); g2 < m2; g2++) {
              if (u2 = n3, s2 = g2 === m2 - 1, false === (c2 = (a2 = v2.zse[g2]).insert(n3, r2, s2)).success && n3 >= a2.yce && v2.zse[g2 + 1] && v2.zse[g2 + 1].check(r2, 0).success && true === (f2 = v2.bfe(t4, n3, e3, r2))) return { success: true, cursorPos: v2.Use, text: "" };
              if (n3 !== c2.offset && (a2._type !== i2.RestrictionType.year && a2._type !== i2.RestrictionType.month && a2._type !== i2.RestrictionType.day || v2.bce(), a2._type === i2.RestrictionType.hour24 && v2.pfe()), n3 = c2.offset, r2 = c2.text, p2.success = c2.success, a2.getStatus() !== i2.RestrictionStatus.complete && false === c2.success) break;
              if (e3 += n3 - u2, n3 = 0, 0 === r2.length) break;
            }
            return g2 >= m2 && "" !== r2 && r2.length > 0 ? (p2.cursorPos = e3, p2.text = r2, false !== p2.success ? (o2 = v2.xfe(e3, e3), v2.addUndoInfo(b2, o2)) : v2.undo(b2), p2) : (h2 = (l2 = v2.Wse(e3)).index, d2 = l2.offset, g2 + 1 < m2 - 1 && v2.zse[g2 + 1]._type === i2.RestrictionType.prompt && h2 === g2 + 1 && 0 === d2 && v2.zse[g2].satisfy() && (e3 += v2.zse[g2 + 1].length()), p2.cursorPos = e3, p2.text = r2, false !== p2.success ? (o2 = v2.xfe(e3, e3), v2.addUndoInfo(b2, o2)) : v2.undo(b2), p2);
          }, t3.prototype.backspace = function() {
            var t4 = this, n3 = t4.Mce(), e3 = t4.Cce(n3.start, n3.end - n3.start);
            return t4.setSelection({ start: e3, end: e3 }), true;
          }, t3.prototype.Mce = function() {
            var t4, n3, e3, r2, o2, a2 = this, u2 = a2.getSelection(), s2 = u2.start, c2 = u2.end - s2;
            if (0 === s2 && 0 === c2) return u2;
            if (t4 = (r2 = a2.Wse(s2)).index, n3 = r2.offset, -1 === t4) return u2;
            if (0 === c2) {
              if (e3 = a2.Pse(t4), 0 === t4 && 0 === n3) return u2;
              for (; (0 === n3 || e3._type === i2.RestrictionType.prompt) && t4 > 0; ) t4--, c2 += n3, n3 = (e3 = a2.Pse(t4)).length(), e3._type === i2.RestrictionType.prompt && (c2 += n3, n3 = 0);
              if (e3 = a2.Pse(t4), 0 === t4) {
                if (e3._type === i2.RestrictionType.prompt) return u2;
                if (0 === e3.length()) return u2;
              }
              if (e3._type !== i2.RestrictionType.prompt) s2 -= c2 += 1, c2 = 1;
              else {
                if (e3._type !== i2.RestrictionType.enum && e3._type !== i2.RestrictionType.hourFormat) return u2;
                s2 = (s2 -= c2 += e3.length()) > 0 ? s2 : 0;
              }
              u2.start = s2, u2.end = s2 + c2;
            } else {
              if (o2 = void 0, -1 === (o2 = (r2 = a2.Wse(s2 + c2)).index)) return u2;
              if (0 === n3 && 0 !== t4 && t4--, e3 = a2.Pse(o2), t4 === o2 && e3._type === i2.RestrictionType.prompt) return u2;
              u2.start = s2, u2.end = s2 + c2;
            }
            return u2;
          }, t3.prototype.Sce = function() {
            var t4, n3, e3, r2, o2 = this, a2 = o2.getSelection(), u2 = o2.getText(), s2 = u2.length, c2 = o2.DU, f2 = s2, l2 = a2.start, h2 = a2.end - l2;
            if (l2 === f2 && 0 === h2) return a2;
            if (t4 = (r2 = o2.Wse(l2)).index, n3 = r2.offset, -1 === t4) return a2;
            if (0 === h2) {
              if (e3 = o2.Pse(t4), t4 === c2 - 1 && n3 === e3.Jse) return a2;
              if (e3._type !== i2.RestrictionType.prompt) h2 += 1;
              else {
                if (e3._type !== i2.RestrictionType.enum && e3._type !== i2.RestrictionType.hourFormat) return a2;
                h2 += e3.length(), l2 = l2 > 0 ? l2 : 0;
              }
              a2.start = l2, a2.end = l2 + h2;
            }
            return a2;
          }, t3.prototype.delete = function() {
            var t4 = this, n3 = t4.Sce(), e3 = t4.Cce(n3.start, n3.end - n3.start);
            return t4.setSelection({ start: e3, end: e3 }), true;
          }, t3.prototype.Cce = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2 = this;
            if (0 === p2.DU) return t4;
            for (e3 = p2.xfe(), o2 = (r2 = p2.Wse(t4)).index, a2 = r2.offset, p2.zse[o2]._type === i2.RestrictionType.prompt && n3 > p2.zse[o2]._text.length - a2 && (t4 += p2.zse[o2]._text.length - a2, n3 -= p2.zse[o2]._text.length - a2, o2++, a2 = 0), u2 = (r2 = p2.Wse(t4 + n3)).index, s2 = r2.offset; 0 !== u2 && 0 === s2 && (c2 = p2.zse[u2 - 1])._type !== i2.RestrictionType.prompt; ) u2--, s2 = p2.zse[u2]._text.length > p2.zse[u2].yce ? p2.zse[u2]._text.length : p2.zse[u2].yce;
            for (l2 = o2; l2 <= u2; l2++) c2 = p2.zse[l2], h2 = a2, o2 === u2 ? s2 > a2 ? a2 = c2.delete(a2, s2 - a2) : a2 -= a2 - s2 : l2 === o2 ? (d2 = c2._text.length - a2) > 0 && (a2 = c2.delete(a2, c2._text.length - a2)) : a2 = l2 === u2 ? c2.delete(a2, s2) : c2.delete(a2, c2._text.length), a2 !== f && (c2._type !== i2.RestrictionType.year && c2._type !== i2.RestrictionType.month && c2._type !== i2.RestrictionType.day || p2.bce(), c2._type === i2.RestrictionType.hour24 && p2.pfe(), t4 += a2 - h2), a2 = 0;
            return v2 = p2.xfe(t4, t4), p2.addUndoInfo(e3, v2), t4;
          }, t3.prototype.replace = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, A, I, k, N, j, D = this, _ = D.Use, O = D.Hse - _, E = D.Lse, R = {};
            for (R.cursorPos = _, R.text = t4, r2 = (e3 = D.Wse(_)).index, o2 = e3.offset, a2 = D.xfe(); 0 !== r2 && 0 === o2 && D.zse[r2]._type === i2.RestrictionType.prompt; ) r2--, (o2 = (u2 = D.zse[r2])._text.length) < u2.yce && (o2 = u2.yce);
            for (s2 = (e3 = this.Wse(_ + O)).index, c2 = e3.offset; 0 !== s2 && 0 === c2 && (u2 = D.zse[s2 - 1])._type !== i2.RestrictionType.prompt && u2._text.length < u2.VUt; ) s2--, c2 = D.zse[s2]._text.length;
            for (l2 = t4, h2 = true, d2 = _ - o2, v2 = r2; v2 < D.DU; v2++) if (u2 = D.zse[v2], v2 + 1 < D.DU && D.zse[v2 + 1]._type === i2.RestrictionType.prompt && (g2 = (p2 = D.zse[v2 + 1]).included(t4)) > -1 && (m2 = t4.substring(0, g2), "" === (b2 = u2.replace(o2, m2.length, m2, f, n3)).text && true === b2.success && u2.getStatus() === i2.RestrictionStatus.complete)) _ += (y2 = p2._text.length) + b2.offset - o2, d2 += (u2.yce > u2._text.length ? u2.yce : u2._text.length) + y2, t4 = t4.substring(g2 + y2, t4.length), v2++;
            else {
              if (w2 = u2._text.length > u2.yce ? u2._text.length : u2.yce, "" === t4) {
                _ = x(D, _, o2, s2, c2, v2, n3);
                break;
              }
              if (u2._type === i2.RestrictionType.prompt) {
                if (E) d2 + o2 === _ && (_ += w2 - o2);
                else {
                  for (w2 = (M2 = u2._text.substring(o2, w2)).length, C2 = Math.min(t4.length, w2), S2 = 0; S2 < C2 && t4[S2] === M2[S2]; S2++) ;
                  t4 = t4.substring(S2, t4.length), _ += S2;
                }
                d2 += u2._text.length - o2;
              } else {
                if (T2 = o2, A = v2 === D.DU - 1, b2 = void 0, v2 > s2 ? (o2 = (b2 = u2.insert(o2, t4, A, n3)).offset, t4 = b2.text, h2 = b2.success) : r2 === s2 ? (o2 = (b2 = u2.replace(o2, c2 - o2, t4, A, n3)).offset, t4 = b2.text, h2 = b2.success) : v2 === r2 ? (o2 = (b2 = u2.replace(o2, w2 - o2, t4, A, n3)).offset, t4 = b2.text, h2 = b2.success) : v2 === s2 ? (c2 - o2 > 0 ? b2 = u2.replace(o2, c2 - o2, t4, A, n3) : O > 0 && (b2 = u2.replace(o2, O, t4, A, n3)), o2 = b2.offset, t4 = b2.text, h2 = b2.success) : (o2 = (b2 = u2.replace(o2, w2, t4, f, n3)).offset, t4 = b2.text, h2 = b2.success), u2.getStatus() !== i2.RestrictionStatus.complete && false === h2) break;
                u2._type !== i2.RestrictionType.year && u2._type !== i2.RestrictionType.month && u2._type !== i2.RestrictionType.day || D.bce(), u2._type === i2.RestrictionType.hour24 && D.pfe(), _ += o2 - T2, d2 += u2.yce > u2._text.length ? u2.yce : u2._text.length;
              }
              if (o2 = 0, "" === t4) {
                _ = x(D, _, o2, s2, c2, v2, n3);
                break;
              }
            }
            return R.success = l2 !== t4, k = (I = D.Wse(_)).index, N = I.offset, k < D.DU - 1 && D.zse[k]._type === i2.RestrictionType.prompt && 0 === N && (!D.zse[k - 1] || D.zse[k - 1].satisfy()) && (_ += D.zse[k].length()), false !== R.success ? (j = D.xfe(_, _), D.addUndoInfo(a2, j)) : D.undo(a2), R.cursorPos = _, R.text = t4, R;
          }, t3.prototype.dispose = function() {
            var t4, n3, e3 = this, i3 = e3.DU, r2 = e3.zse;
            for (t4 = 0; t4 < i3; t4++) (n3 = r2[t4]).dispose();
            e3.zse.length = 0, e3.Nmt.length = 0, e3.kmt.length = 0, e3.Yse = null;
          }, t3.prototype.input = function(t4) {
            var n3, e3 = this;
            return e3.Use !== e3.Hse ? (0 === e3.Use && e3.Hse === e3._length() && (e3.Use = e3.getFirstInputPosition()), n3 = e3.replace(t4)) : n3 = e3.Eit(e3.Use, t4), e3.Hse = e3.Use = n3.cursorPos, n3.success;
          }, t3.prototype.paste = function(t4, n3) {
            var e3 = this, i3 = e3.replace(t4, n3);
            return e3.setSelection({ start: i3.cursorPos, end: i3.cursorPos }), i3.success;
          }, t3.namedPatterns = {}, t3;
        })(), n2.InputMask = g;
      }, "./dist/plugins/inputMask/inputMask/inputMask.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/inputMask/inputMask/inputMask.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/inputMask/inputMask/inputMask.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.hourFormatDesignator = n2.hourFormatSingleDesignator = n2.errorMsg = void 0, n2.errorMsg = { invalidPattern: "Invalid Pattern", duplicatedDateTimePattern: "Duplicated Date Time Pattern", emptyPattern: "Empty Pattern", unknownPattern: "Parse Unknown Pattern Failure", invalidOptionalPattern: "Parse Optional Pattern Failure", invalidGroupPattern: "Parse Group Pattern Failure", errorQuantifierPattern: "Error Quantifier Position", invalidQuantifierPattern: "Parse Quantifier Pattern Failure", noEntry: "No Restriction Can Be Entered" }, n2.hourFormatSingleDesignator = ["A", "P"], n2.hourFormatDesignator = ["AM", "PM"];
      }, "./dist/plugins/inputMask/inputMask/interface.js": function(t2, n2) {
        "use strict";
        var e2, i2, r, o, a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DateStatus = n2.CaseType = n2.RestrictionStatus = n2.KeywordType = n2.RestrictionType = void 0, (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.prompt = 1] = "prompt", t3[t3.enum = 2] = "enum", t3[t3.year = 3] = "year", t3[t3.month = 4] = "month", t3[t3.day = 5] = "day", t3[t3.hour = 6] = "hour", t3[t3.hour24 = 7] = "hour24", t3[t3.minute = 8] = "minute", t3[t3.second = 9] = "second", t3[t3.hourFormat = 10] = "hourFormat";
        })(e2 = n2.RestrictionType || (n2.RestrictionType = {})), (function(t3) {
          t3[t3.unknow = 0] = "unknow", t3[t3.octalAscII = 1] = "octalAscII", t3[t3.hexAscII = 2] = "hexAscII", t3[t3.hexUnicode = 3] = "hexUnicode", t3[t3.optional = 4] = "optional", t3[t3.group = 5] = "group", t3[t3.quantifier = 6] = "quantifier", t3[t3.promptChar = 7] = "promptChar", t3[t3.range = 8] = "range", t3[t3.any = 9] = "any", t3[t3.date = 10] = "date";
        })(i2 = n2.KeywordType || (n2.KeywordType = {})), (function(t3) {
          t3[t3.null = 0] = "null", t3[t3.complete = 1] = "complete", t3[t3.inComplete = 2] = "inComplete";
        })(r = n2.RestrictionStatus || (n2.RestrictionStatus = {})), (function(t3) {
          t3[t3.normal = 0] = "normal", t3[t3.upperCase = 1] = "upperCase", t3[t3.lowerCase = 2] = "lowerCase";
        })(o = n2.CaseType || (n2.CaseType = {})), (function(t3) {
          t3[t3.null = -1] = "null", t3[t3.inComplete = -2] = "inComplete";
        })(a = n2.DateStatus || (n2.DateStatus = {}));
      }, "./dist/plugins/inputMask/inputMask/restrictions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g = this && this.qKr || (m = function(t3, n3) {
          return m = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, m(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          m(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), m;
        function b(t3, n3, e3, i3) {
          for (var r2 = 0; r2 < e3 && (t3[n3 + r2] && t3[n3 + r2] === i3); r2++) ;
          return r2;
        }
        function y(t3, n3, e3) {
          for (var i3 = n3 - 1; i3 >= 0 && t3[i3] === e3; i3--) ;
          return i3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DateTimeItemRestriction = n2.OptionalRestriction = n2.LimitedRestriction = n2.RangeRestriction = n2.AnyCharRestriction = n2.PromptRestriction = n2.EnumRestriction = n2.MaskRestriction = void 0, i2 = e2("./dist/plugins/inputMask/inputMask/interface.js"), r = e2("./dist/plugins/inputMask/inputMask/common.js"), o = void 0, a = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.yce = -1, e3.VUt = -1, e3.Jse = -1, e3._text = "", e3._type = t4, e3.yce = 0, e3.VUt = 0, e3.Jse = 0, e3.Gse = n3;
          }
          return t3.prototype.init = function(t4, n3, e3, i3) {
            var r2, a2, u2;
            if (t4 > n3) return false;
            if ((r2 = this).yce = t4, r2.VUt = n3, r2.Bce = i3 || [], r2.Jse = 0, a2 = 0, r2.Bce !== o) {
              for (; r2.Bce[a2] !== o; ) a2++;
              for (u2 = a2; u2 >= 0; u2--) if (r2.Bce[u2] !== o) false === r2.Bce[u2] && r2.Jse--;
              else {
                if (r2.Bce[u2] !== o) break;
                r2.Jse--;
              }
            }
            return r2.clear(), r2._text = e3 || "", true;
          }, t3.prototype.getPromptChar = function() {
            return this.Gse;
          }, t3.prototype.saveOldState = function() {
            var t4 = this;
            return { bitState: t4.Bce && t4.Bce.concat(), text: t4._text, realLength: t4.Jse };
          }, t3.prototype.undo = function(t4) {
            var n3 = this;
            n3.Bce = t4.bitState, n3.Jse = t4.realLength, n3._text = t4.text;
          }, t3.prototype.insert = function(t4, n3, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w = this, M = {};
            if (M.offset = t4, M.text = n3, t4 > w.VUt || "" === n3 || 0 === n3.length) return M.success = false, M;
            for (M.success = true, r2 = [], a2 = t4, u2 = "", s2 = 0, c2 = w.getPromptChar(), f2 = 0; f2 < t4; f2++) r2[f2] = w.Bce[f2];
            for (; s2 < n3.length; ) {
              if (h2 = (l2 = w.check(n3, s2, i3)).text, s2 = l2.offset, "" === h2) {
                M.success = false;
                break;
              }
              if (u2 += h2, r2[a2] = true, a2++, t4 + u2.length === w.VUt) break;
              if (t4 + u2.length > w.VUt) {
                u2 = u2.substring(0, u2.length - 1);
                break;
              }
            }
            if (0 === u2.length) return M.success = false, M;
            if (d2 = b(w._text, t4, u2.length, c2), (v2 = w._text.substring(0, t4) + u2 + w._text.substring(t4 + d2, w._text.length)).length > w.VUt && (v2 = v2.substring(0, w.VUt)), v2.length > t4 + u2.length) for (p2 = 0, g2 = v2.length - t4 - u2.length; p2 < g2; p2++) w.Bce[t4 + p2] !== o ? r2[a2] = w.Bce[t4 + p2] : r2[a2] = false, a2++;
            for (w.Bce = r2, w.Jse = a2, p2 = a2 - 1; p2 >= 0; p2--) if (false === w.Bce[p2]) w.Jse--;
            else {
              if (!i3 || v2[p2] !== c2) break;
              w.Jse--;
            }
            if (v2.length < w.yce) for (p2 = 0, g2 = w.yce - v2.length; p2 < g2; p2++) v2 += c2;
            for (m2 = v2.length, y2 = Math.max(w.yce, w.Jse); m2 > y2 && v2[m2 - 1] === c2; m2--) ;
            return v2 = v2.substring(0, m2), w._text = v2, n3 = s2 === n3.length ? "" : n3.substring(s2, n3.length), t4 += u2.length, M.offset = t4, M.text = n3, M;
          }, t3.prototype.clear = function() {
            var t4, n3, e3, i3 = this;
            if (i3.Jse = 0, t4 = "", n3 = [], i3.yce > 0) {
              for (e3 = 0; e3 < i3.yce; e3++) n3[e3] = false;
              if (i3.Bce = n3, "" !== i3.getPromptChar()) for (e3 = 0; e3 < i3.yce; e3++) t4 += i3.getPromptChar();
              else for (e3 = 0; e3 < i3.yce; e3++) t4 += " ";
              i3._text = t4;
            } else i3._text = "", i3.Bce = [];
          }, t3.prototype.delete = function(t4, n3, e3) {
            var i3, r2, a2, u2, s2, c2, f2, l2 = this;
            if (0 === n3 || t4 >= l2._text.length) return t4;
            for (t4 + n3 > l2._text.length && (n3 = l2._text.length - t4), i3 = [], r2 = t4, a2 = 0; a2 < t4; a2++) i3[a2] = l2.Bce[a2];
            if (u2 = l2._text.substring(0, t4) + l2._text.substring(t4 + n3, l2._text.length), t4 + n3 < l2._text.length) for (s2 = 0, c2 = l2._text.substring(t4 + n3, l2._text.length).length; s2 < c2; s2++) l2.Bce[t4 + n3 + s2] !== o ? i3[r2] = l2.Bce[t4 + n3 + s2] : i3[r2] = false, r2++;
            if (r2 < l2.yce) for (s2 = r2; s2 < l2.yce; s2++) i3[s2] = false;
            for (l2.Bce = i3, l2.Jse = r2, s2 = r2 - 1; s2 >= 0 && false === l2.Bce[s2]; s2--) l2.Jse--;
            if (u2.length < l2.yce) for (f2 = l2.yce - u2.length, s2 = 0; s2 < f2; s2++) u2 += l2.getPromptChar();
            return l2._text = u2, t4;
          }, t3.prototype.replace = function(t4, n3, e3, i3, r2) {
            var o2, a2 = {};
            return a2.offset = t4, a2.text = e3, (o2 = this).delete(t4, n3), a2 = o2.insert(t4, e3, i3, r2);
          }, t3.prototype.getText = function() {
            var t4, n3, e3, i3 = this, r2 = i3._text;
            if (!r2 || r2.length < i3.yce) {
              if ((t4 = i3.getPromptChar()) === o || "" === t4) return r2;
              for (n3 = r2.length, e3 = i3.yce; n3 < e3; n3++) r2 += t4;
            }
            return r2;
          }, t3.prototype.getTextExcludeLiterals = function(t4, n3) {
            var e3, i3 = this._text, r2 = i3.length;
            return r2 < n3 && (n3 = r2), e3 = (e3 = i3.substring(t4, n3)).replace(/[^\d]/g, "");
          }, t3.prototype.check = function(t4, n3, e3) {
            var i3 = { success: false, text: "" };
            return i3.offset = n3, e3 && t4 === this.getPromptChar() && (i3.success = true, i3.text = t4, i3.offset = n3 + 1), i3;
          }, t3.prototype.length = function() {
            var t4 = this, n3 = t4.getText();
            return n3.length > t4.yce ? n3.length : t4.yce;
          }, t3.prototype.getStatus = function() {
            var t4 = this;
            return 0 === t4.yce ? i2.RestrictionStatus.complete : t4.Jse <= 0 ? i2.RestrictionStatus.null : t4.Jse < t4.yce ? i2.RestrictionStatus.inComplete : i2.RestrictionStatus.complete;
          }, t3.prototype.dispose = function() {
            this.Bce && (this.Bce.length = 0);
          }, t3.prototype.satisfy = function() {
            return this._text.length === this.VUt;
          }, t3;
        })(), n2.MaskRestriction = a, u = -1, s = -2, c = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, i2.RestrictionType.enum, n4) || this, r2 = e3;
            return r2.Tce = u, r2.Jse = 0, r2.Ice = u, r2.xce = u, r2.yce = Number.MAX_VALUE, r2.VUt = Number.MIN_VALUE, r2.QG = 0, e3;
          }
          return g(n3, t3), n3.prototype.setItems = function(t4) {
            var n4, e3 = this, i3 = e3.yce, r2 = e3.VUt, o2 = t4.length;
            for (n4 = 0; n4 < o2; n4++) i3 = Math.min(i3, t4[n4].length), r2 = Math.max(r2, t4[n4].length);
            i3 === Number.MAX_VALUE && (i3 = 0), r2 === Number.MIN_VALUE && (r2 = 0), e3.yce = i3, e3.VUt = r2, e3.QG = o2, e3._items = t4, e3._text = e3.getText();
          }, n3.prototype.getText = function() {
            var t4, n4, e3, i3 = this, r2 = i3.Tce;
            if (r2 === s) {
              for (t4 = "", n4 = i3.getPromptChar(), e3 = 0; e3 < i3.yce; e3++) t4 += n4;
              return t4;
            }
            return r2 === u ? i3._items[0] : i3._items[i3.Tce];
          }, n3.prototype.checkItemValid = function(t4, n4, e3, i3) {
            var r2, o2, a2 = {};
            return a2.index1 = n4, a2.index2 = i3, a2.isValid = false, n4 >= t4.length || (r2 = t4.substring(n4, n4 + 1).toLowerCase()) === (o2 = e3.substring(i3, i3 + 1).toLowerCase()) && (n4++, i3++, a2.index1 = n4, a2.index2 = i3, a2.isValid = true), a2;
          }, n3.prototype.insert = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w, M, C = {}, S = this;
            for (C.offset = t4, C.text = n4, C.success = true, r2 = t4, o2 = "", S.Tce < 0 && (r2 = 0), 0 !== r2 && (o2 = S._items[S.Tce].substring(0, r2)), a2 = S.QG, u2 = new Array(a2), s2 = new Array(a2), c2 = new Array(a2), f2 = new Array(a2), l2 = 0; l2 < a2; l2++) u2[l2] = r2, s2[l2] = 0, c2[l2] = 99999, f2[l2] = [];
            for (l2 = 0; l2 < a2; l2++) if (h2 = S._items[l2], !(o2.length > 0 && h2.substring(0, o2.length) !== o2)) for (; s2[l2] < n4.length && !(u2[l2] >= h2.length); ) d2 = S.checkItemValid(h2, u2[l2], n4, s2[l2]), u2[l2] = d2.index1, s2[l2] = d2.index2, d2.isValid ? 99999 === c2[l2] && (c2[l2] = s2[l2]) : s2[l2]++;
            for (p2 = 0, g2 = false, m2 = u2[v2 = 0], b2 = 0; b2 < S.QG; b2++) {
              if (h2 = S._items[b2], u2[b2] === n4.length + r2 && n4.length === h2.length) {
                m2 = u2[v2 = b2], g2 = true;
                break;
              }
              99999 !== c2[b2] && (c2[v2] >= c2[b2] && (c2[v2] === c2[b2] ? m2 < (y2 = u2[b2]) ? (v2 = b2, m2 = y2, p2 = 1) : m2 === y2 && p2++ : (m2 = u2[v2 = b2], p2 = 1)));
            }
            if (g2) return 0 === s2[v2] ? (C.success = false, C) : (n4 = n4.substring(s2[v2] + 1, n4.length), t4 = S._items[v2].length, C.success = 0 === f2[v2].length, S.Tce = v2, S._text = S._items[v2].toString(), S.Jse = S._text.length, C.offset = t4, C.text = n4, C);
            if (m2 === r2) return false === e3 && S.Tce >= 0 && t4 === S._items[S.Tce].length ? (n4 = n4.substring(s2[v2], n4.length), C.offset = t4, C.text = n4, C) : (C.success = false, C);
            for (w = -1, l2 = 0; l2 < f2[v2].length; l2++) w = 0;
            if (1 === p2) t4 = S._items[v2].length;
            else {
              for (M = S._items[v2].length, l2 = 0; l2 < S.QG; l2++) u2[l2] === m2 && M > S._items[l2].length && (M = S._items[l2].length, v2 = l2);
              t4 = m2;
            }
            return -1 === w ? (n4 = n4.substring(s2[v2], n4.length), C.success = true) : (n4 = n4.substring(s2[v2], n4.length), C.success = false), S.Tce = v2, S._text = S._items[v2], S.Jse = S._text.length, C.offset = t4, C.text = n4, C;
          }, n3.prototype.replace = function(t4, n4, e3, i3, r2) {
            return this.insert(t4, e3, i3, r2);
          }, n3.prototype.getStatus = function() {
            return this.Tce < 0 ? i2.RestrictionStatus.null : i2.RestrictionStatus.complete;
          }, n3.prototype.delete = function(t4, n4, e3) {
            var i3, r2 = this;
            if (0 === n4 || t4 >= r2._text.length) return t4;
            if (r2.Tce = e3 ? u : s, r2._text = "", r2.yce > 0) for (i3 = 0; i3 < r2.yce; i3++) r2._text += r2.getPromptChar();
            return r2.Jse = 0, 0;
          }, n3.prototype.saveOldState = function() {
            var n4 = t3.prototype.saveOldState.call(this);
            return n4.activeItem = this.Tce, n4;
          }, n3.prototype.undo = function(n4) {
            t3.prototype.undo.call(this, n4), this.Tce = n4.activeItem;
          }, n3.prototype.satisfy = function() {
            return this.Tce >= 0;
          }, n3;
        })(a), n2.EnumRestriction = c, f = (function(t3) {
          function n3(n4, e3) {
            var r2 = t3.call(this, i2.RestrictionType.prompt, e3) || this;
            return r2.init(n4.length, n4.length, n4), r2;
          }
          return g(n3, t3), n3.prototype.insert = function(t4, n4, e3, i3) {
            var r2, o2, a2 = this, u2 = n4.length, s2 = a2._text.length - t4, c2 = 0;
            for (r2 = Math.min(u2, s2); c2 < r2 && n4[c2] === a2._text[t4 + c2]; c2++) ;
            return { text: o2 = n4.substring(c2, u2), offset: a2._text.length, success: c2 > 0 };
          }, n3.prototype.delete = function(t4, n4, e3) {
            return t4;
          }, n3.prototype.replace = function(t4, n4, e3, i3, r2) {
            return this.insert(t4, e3, i3, r2);
          }, n3.prototype.included = function(t4) {
            var n4, e3, i3, r2;
            return t4 ? (e3 = (n4 = this._text).replace(String.fromCharCode(32), String.fromCharCode(160)), i3 = t4.indexOf(n4), r2 = t4.indexOf(e3), i3 > -1 ? i3 : r2 > -1 ? r2 : -1) : -1;
          }, n3;
        })(a), n2.PromptRestriction = f, l = (function(t3) {
          function n3(n4) {
            return t3.call(this, i2.RestrictionType.normal, n4) || this;
          }
          return g(n3, t3), n3.prototype.insert = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2 = this;
            return t4 + n4.length > u2.VUt ? (r2 = n4.substring(0, u2.VUt - t4), u2._text = u2._text.substring(0, t4) + r2, u2.Sfe(), { text: n4.substring(u2.VUt - t4, n4.length), offset: u2.VUt, success: true }) : (o2 = b(u2._text, t4, n4.length, u2.getPromptChar()), a2 = u2._text.substring(0, t4) + n4 + u2._text.substring(t4 + o2, u2._text.length), u2._text = a2.substring(0, u2.VUt), u2.Sfe(), { text: "", offset: t4 + n4.length, success: true });
          }, n3.prototype.delete = function(t4, n4, e3) {
            var i3 = this;
            return i3._text = i3._text.substring(0, t4) + i3._text.substring(t4 + n4, i3._text.length), i3.Sfe(), t4;
          }, n3.prototype.replace = function(t4, n4, e3, i3, r2) {
            var o2, a2 = this;
            return t4 + e3.length > a2.VUt ? (o2 = e3.substring(0, a2.VUt - t4), a2._text = a2._text.substring(0, t4) + o2, a2.Sfe(), { text: e3.substring(a2.VUt - t4, e3.length), offset: a2.VUt, success: true }) : (a2._text = a2._text.substring(0, t4) + e3 + a2._text.substring(t4 + n4, a2._text.length), a2._text = a2._text.substring(0, a2.VUt), a2.Sfe(), { text: "", offset: t4 + e3.length, success: true });
          }, n3.prototype.Sfe = function() {
            var t4 = this, n4 = t4._text;
            t4.Jse = y(n4, n4.length, t4.getPromptChar()) + 1;
          }, n3;
        })(a), n2.AnyCharRestriction = l, h = (function(t3) {
          function n3(n4, e3, r2, o2) {
            var a2 = t3.call(this, i2.RestrictionType.normal, r2) || this;
            return a2.Nce = n4, a2.kce = e3, a2.Dce = o2 || i2.CaseType.normal, a2.init(1, 1, r2, []), a2;
          }
          return g(n3, t3), n3.prototype.check = function(t4, n4, e3) {
            var r2, o2, a2 = this, u2 = { success: false, text: "" };
            return u2.offset = n4, r2 = t4.substring(n4, n4 + 1), o2 = a2.Dce, (r2 >= a2.Nce && r2 <= a2.kce || e3 && r2 === a2.getPromptChar()) && (o2 === i2.CaseType.upperCase ? r2 = r2.toUpperCase() : o2 === i2.CaseType.lowerCase && (r2 = r2.toLowerCase()), u2.offset++, u2.text = r2, u2.success = true), u2;
          }, n3;
        })(a), n2.RangeRestriction = h, d = (function(t3) {
          function n3(n4, e3) {
            var r2 = t3.call(this, i2.RestrictionType.normal, n4) || this;
            return r2._ce = e3, r2.init(0, 1, "", []), r2;
          }
          return g(n3, t3), n3.prototype.check = function(t4, n4, e3) {
            var i3 = this, r2 = t4[n4], o2 = { success: true };
            return o2.text = r2, o2.offset = n4 + 1, "" !== i3._ce && i3._ce.indexOf(r2) > -1 || e3 && r2 === i3.getPromptChar() || (o2.success = false, o2.text = "", o2.offset = n4), o2;
          }, n3;
        })(a), n2.LimitedRestriction = d, v = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, i2.RestrictionType.normal, n4) || this;
            return e3.Ece = [], e3;
          }
          return g(n3, t3), n3.prototype.add = function(t4) {
            t4 !== o && this.Ece.push(t4);
          }, n3.prototype.check = function(t4, n4, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Ece, s2 = {}, c2 = t4[n4];
            if (s2.success = false, s2.text = "", s2.offset = n4, 0 === u2.length) return s2;
            for (i3 = 0, r2 = u2.length; i3 < r2; i3++) if (true === (o2 = u2[i3].check(c2, 0, e3)).success && "" !== o2.text) return s2.offset = n4 + 1, s2.success = true, s2.text = o2.text, s2;
            return s2;
          }, n3.prototype.dispose = function() {
            var n4, e3, i3, r2;
            for (t3.prototype.dispose.call(this), i3 = 0, r2 = (e3 = (n4 = this).Ece).length; i3 < r2; i3++) e3[i3].dispose();
            n4.Ece.length = 0;
          }, n3;
        })(a), n2.OptionalRestriction = v, p = (function(t3) {
          function n3(n4, e3, r2) {
            var o2, a2, u2 = t3.call(this, n4, e3) || this, s2 = u2, c2 = r2, f2 = r2;
            switch (s2.Jse = 0, n4) {
              case i2.RestrictionType.year:
                o2 = 1, a2 = 9999, f2 = r2 = r2 <= 2 ? 2 : 4, c2 = r2;
                break;
              case i2.RestrictionType.day:
                o2 = 1, a2 = 31, f2 = 1 === r2 ? 1 : 2, c2 = 2;
                break;
              case i2.RestrictionType.month:
                o2 = 1, a2 = 12, f2 = 1 === r2 ? 1 : 2, c2 = 2;
                break;
              case i2.RestrictionType.hour:
                o2 = 0, a2 = 11, f2 = 1 === r2 ? 1 : 2, c2 = 2;
                break;
              case i2.RestrictionType.hour24:
                o2 = 0, a2 = 23, f2 = 1 === r2 ? 1 : 2, c2 = 2;
                break;
              case i2.RestrictionType.minute:
              case i2.RestrictionType.second:
                o2 = 0, a2 = 59, f2 = 1 === r2 ? 1 : 2, c2 = 2;
            }
            return s2.VUt = c2, s2.yce = f2, s2.jce = o2, s2.Oce = a2, u2;
          }
          return g(n3, t3), n3.prototype.init = function(t4, n4, e3, i3) {
            return true;
          }, n3.prototype.getText = function() {
            var t4 = this, n4 = t4.getValue();
            return n4 >= 0 && n4 > t4.Oce && (t4._text = "" + t4.Oce), -1 === n4 && (t4._text = (0, r.fillString)(t4.getPromptChar(), t4.yce)), t4._text;
          }, n3.prototype.getValue = function() {
            var t4 = this.getStatus();
            return t4 === i2.RestrictionStatus.null ? i2.DateStatus.null : t4 === i2.RestrictionStatus.inComplete ? i2.DateStatus.inComplete : parseInt(this._text, 10);
          }, n3.prototype.getStatus = function() {
            var t4, n4 = this, e3 = n4.getPromptChar(), r2 = n4.yce, o2 = n4._text, a2 = o2.length, u2 = 0;
            for (t4 = 0; t4 < a2; t4++) o2[t4] !== e3 && u2++;
            return 0 === u2 ? i2.RestrictionStatus.null : u2 < r2 ? i2.RestrictionStatus.inComplete : i2.RestrictionStatus.complete;
          }, n3.prototype.check = function(t4, n4, e3) {
            var i3, r2 = t4 >= "0" && t4 <= "9" || e3 && t4 === this.getPromptChar();
            return { success: r2, text: i3 = r2 ? t4 : "", offset: n4 = r2 ? n4 + 1 : n4 };
          }, n3.prototype.rightShiftNumber = function(t4, n4) {
            for (var e3 = 0; t4 > 0 && e3 < n4; e3++) t4 = parseInt((t4 / 10).toString(), 10);
            return t4;
          }, n3.prototype.Lce = function(t4) {
            var n4, e3 = this, i3 = "";
            for (n4 = t4; n4 < e3.VUt; n4++) i3 += e3.getPromptChar();
            e3._text = e3._text.substring(0, t4) + i3;
          }, n3.prototype.delete = function(t4, n4, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.VUt;
            if (t4 + n4 > b2) return t4;
            for (i3 = m2._text, o2 = m2.jce, a2 = m2.Oce, u2 = (0, r.fillString)(o2, m2.VUt, "0"), s2 = i3.substring(0, t4), c2 = i3.substring(0, t4) + i3.substring(t4 + n4, i3.length), f2 = 0, l2 = 0; l2 < t4; l2++) f2 *= 10, f2 += parseFloat(i3[l2] === m2.getPromptChar() ? u2[l2] : i3[l2]);
            for (v2 = t4, p2 = false, l2 = t4; l2 < c2.length && c2[l2] !== m2.getPromptChar(); l2++) f2 *= 10, f2 += parseFloat(c2[l2]), h2 = m2.rightShiftNumber(o2, b2 - v2 - 1), d2 = m2.rightShiftNumber(a2, b2 - v2 - 1), f2 >= h2 && f2 <= d2 ? (s2 += c2[l2], v2++) : (f2 -= parseFloat(c2[l2]), f2 /= 10, p2 = true);
            return 0 === t4 && 0 === f2 && p2 ? m2.Lce(0) : ((g2 = m2.yce - s2.length) > 0 && (s2 += (0, r.fillString)(m2.getPromptChar(), g2)), m2._text = s2), m2.Sfe(), t4;
          }, n3.prototype.Sfe = function() {
            var t4 = this, n4 = t4._text;
            t4.Jse = y(n4, n4.length, t4.getPromptChar()) + 1;
          }, n3.prototype.Fce = function(t4, n4, e3, i3) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.VUt, g2 = v2.jce, m2 = v2.getPromptChar(), b2 = v2.Oce, y2 = {};
            if (y2.offset = t4, y2.success = false, i3 && n4 === m2) return v2._text = v2._text.substring(0, t4) + n4 + v2._text.substring(t4 + 1, v2._text.length), y2.offset = t4 + 1, y2.success = true, y2;
            if (!v2.check(n4, t4, i3).success) return y2;
            for (o2 = (0, r.fillString)(g2, p2, "0"), a2 = 0, u2 = v2._text, s2 = 0, c2 = 0; c2 < t4; c2++) a2 *= 10, u2[c2] !== m2 ? a2 += parseFloat(u2[c2]) : a2 < v2.rightShiftNumber(g2, p2 - c2 - 1) ? (u2 = u2.substring(0, c2) + o2[c2] + u2.substring(c2 + 1, u2.length), a2 += parseFloat(o2[c2])) : u2 = u2.substring(0, c2) + "0" + u2.substring(c2 + 1, u2.length);
            if (a2 *= 10, a2 += parseFloat(n4), d2 = p2 - t4 - 1, f2 = v2.rightShiftNumber(g2, d2), l2 = v2.rightShiftNumber(b2, d2), a2 >= f2 && a2 <= l2) {
              for (e3 ? t4 >= u2.length ? u2 += n4 : u2 = u2.substring(0, t4) + n4 + u2.substring(t4, u2.length - 1) : u2 = u2.substring(0, t4) + n4 + u2.substring(t4 + 1, u2.length), c2 = ++t4; c2 < p2; c2++) {
                if (a2 *= 10, u2[c2] === m2) {
                  u2 = u2.substring(0, c2) + (0, r.fillString)(m2, p2 - c2);
                  break;
                }
                if (a2 += parseFloat(u2[c2]), f2 = v2.rightShiftNumber(g2, p2 - c2 - 1), a2 > (l2 = v2.rightShiftNumber(b2, p2 - c2 - 1)) || a2 < f2) {
                  u2 = u2.substring(0, c2) + (0, r.fillString)(m2, p2 - c2);
                  break;
                }
              }
              if (v2.VUt !== v2.yce) {
                for (; s2 < u2.length - v2.yce && "0" === u2[s2]; s2++) t4--;
                u2 = u2.substring(s2, u2.length);
              }
              v2._text = u2;
            } else {
              if (a2 !== parseFloat(n4) || "0" === n4) return y2;
              if ("0" !== o2[t4]) return 0 !== t4 && (y2.success = true, y2.offset = t4), y2;
              for (; (a2 > l2 || a2 < f2) && (e3 ? t4 >= u2.length ? u2 += "0" : u2 = u2.substring(0, t4) + "0" + u2.substring(t4, u2.length - 1) : u2 = u2.substring(0, t4) + "0" + u2.substring(t4 + 1, u2.length), t4++, f2 = v2.rightShiftNumber(g2, p2 - t4 - 1), l2 = v2.rightShiftNumber(b2, p2 - t4 - 1), !(t4 >= u2.length - 1)); ) ;
              for (a2 = 0, h2 = t4; h2 < p2; h2++) {
                if (a2 *= 10, a2 += parseFloat(n4), f2 = v2.rightShiftNumber(g2, p2 - h2 - 1), !(a2 > (l2 = v2.rightShiftNumber(b2, p2 - h2 - 1)) || a2 < f2)) {
                  for (e3 ? h2 >= u2.length ? u2 += n4 : u2 = u2.substring(0, h2) + n4 + u2.substring(h2, u2.length - 1) : u2 = u2.substring(0, h2) + n4 + u2.substring(h2 + 1, u2.length), c2 = ++h2; c2 < p2; c2++) {
                    if (a2 *= 10, u2[c2] === m2) {
                      u2 = u2.substring(0, c2) + (0, r.fillString)(m2, p2 - c2);
                      break;
                    }
                    if (a2 += parseFloat(u2[c2]), f2 = v2.rightShiftNumber(g2, p2 - c2 - 1), a2 > (l2 = v2.rightShiftNumber(b2, p2 - c2 - 1)) || a2 < f2) {
                      u2 = u2.substring(0, c2) + (0, r.fillString)(m2, p2 - c2);
                      break;
                    }
                  }
                  if (v2.VUt !== v2.yce) {
                    for (; s2 < u2.length - v2.yce && "0" === u2[s2]; s2++) h2--;
                    u2 = u2.substring(s2, u2.length);
                  }
                  v2._text = u2, t4 = h2;
                  break;
                }
                if (a2 -= parseFloat(n4), "0" !== u2[h2]) return 0 !== t4 && (y2.success = true, y2.offset = t4), y2;
                if (e3 ? h2 >= u2.length ? u2 += "0" : u2 = u2.substring(0, h2) + "0" + u2.substring(h2, u2.length - 1) : u2 = u2.substring(0, h2) + "0" + u2.substring(h2 + 1, u2.length), h2 === u2.length - 1) return y2.success = false, y2;
              }
            }
            return y2.offset = t4, y2.success = true, y2;
          }, n3.prototype.insert = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s2 = this, c2 = { success: true };
            if (c2.offset = t4, c2.text = n4, r2 = s2._text, t4 === s2.VUt) return c2;
            for (o2 = t4, a2 = 0; a2 < n4.length; a2++) if ((u2 = s2.Fce(o2, n4[a2], true, i3)).success) {
              if ((o2 = u2.offset) === s2.VUt) break;
            } else c2.success = false;
            return s2.Sfe(), t4 === o2 && r2 === s2._text || (n4 = a2 + 1 < n4.length ? n4.substring(a2 + 1, n4.length) : "", c2.offset = o2, c2.text = n4), c2;
          }, n3.prototype.replace = function(t4, n4, e3, i3, o2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = t4, d2 = { success: true };
            if (d2.offset = h2, d2.text = e3, a2 = l2._text, h2 === l2.VUt) return d2;
            for (u2 = 0; u2 < e3.length; u2++) if ((s2 = l2.Fce(h2, e3[u2], u2 >= n4, o2)).success) {
              if ((h2 = s2.offset) === l2.VUt) break;
            } else d2.success = false;
            return l2.Sfe(), t4 === h2 && a2 === l2._text || (c2 = n4 + t4 - h2, (f2 = l2._text).length >= t4 + n4 && c2 > 0 && (l2._text = f2.substring(0, h2) + f2.substring(t4 + n4, f2.length) + (0, r.fillString)(l2.getPromptChar(), c2)), e3 = u2 + 1 < e3.length ? e3.substring(u2 + 1, e3.length) : "", d2.offset = h2, d2.text = e3), d2;
          }, n3.prototype.setRange = function(t4, n4) {
            this.jce = t4, this.Oce = n4;
          }, n3.prototype.satisfy = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2._text, u2 = o2.VUt;
            if (a2.length === u2) return true;
            switch (t4 = o2.getValue(), n4 = o2.yce, e3 = o2._type) {
              case i2.RestrictionType.year:
                return a2.length === u2;
              case i2.RestrictionType.day:
                return r2 = Math.floor(o2.Oce / 10), 1 === n4 && t4 > r2;
              case i2.RestrictionType.month:
              case i2.RestrictionType.hour:
                return 1 === n4 && t4 > 1;
              case i2.RestrictionType.hour24:
                return 1 === n4 && t4 > 2;
              case i2.RestrictionType.minute:
              case i2.RestrictionType.second:
                return 1 === n4 && t4 > 5;
              default:
                return false;
            }
          }, n3;
        })(a), n2.DateTimeItemRestriction = p;
      }, "./dist/plugins/inputMask/integrate.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3) {
          return !u(t3) && !u(t3.pattern) && t3.pattern.length > 0 && a.InputMask.validatePattern(t3.pattern).success;
        }
        function v(t3) {
          return t3 ? (t3.length > 0 && (t3 = t3.replace(f, "\n")).indexOf(s) >= 0 && (t3 = t3.replace(new RegExp(s, "g"), l)), t3) : t3;
        }
        function p(t3) {
          return t3 ? (t3.length > 0 && (t3 = t3.replace(/\n/g, "\n" + c)).indexOf(l) >= 0 && (t3 = t3.replace(new RegExp(l, "g"), s)), t3) : t3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("Core"), a = e2("./dist/plugins/inputMask/inputMask/inputMask.js"), u = r.Common.lt.ht, s = " ", c = "​", f = new RegExp("\n" + c, "g"), l = " ", h = { activateEditor: function(t3) {
          var n3, e3 = t3.editor, i3 = t3.mask;
          d(i3) && (n3 = new a.InputMask(i3), e3.Rse = n3);
        }, setEditorValue: function(t3) {
          var n3, e3 = t3.editor, i3 = e3.Rse, r2 = t3.editorValue, o2 = t3.originValue;
          i3 && (t3.startEditByKeydown || u(r2) || (r2 = v(r2), i3.setValue(r2, o2)), n3 = i3.getFirstInputPosition(), i3.setSelection({ start: n3, end: n3 }), i3.addPercent = t3.addPercent, t3.editorValue = p(i3.getText() + (t3.startEditByKeydown && i3.addPercent ? "%" : "")), t3.caret = i3.getSelection(), t3.cancel = true);
        }, afterSetEditorFocus: function(t3) {
          var n3, e3 = t3.editor.Rse;
          e3 && (t3.caret = e3.getSelection(), t3.cancel = true);
        }, deactivateEditor: function(t3) {
          var n3 = t3.editor, e3 = n3.Rse;
          e3 && (e3.dispose(), n3.Rse = null);
        }, getEditorValue: function(t3) {
          var n3, e3 = t3.editor.Rse;
          e3 && (t3.editorValue = e3.getValue() + (e3.addPercent ? "%" : ""));
        }, editorInput: function(t3) {
          var n3 = t3.editor, e3 = t3.value, i3 = t3.caret, r2 = n3.Rse;
          r2 && (t3.isImeInputting && (i3.start = i3.start - e3.length, i3.end = i3.end - e3.length), r2.setSelection(i3), r2.input(e3), t3.value = p(r2.getText() + (r2.addPercent ? "%" : "")), t3.caret = r2.getSelection(), t3.cancel = true);
        }, editorBackspace: function(t3) {
          var n3 = t3.editor, e3 = t3.caret, i3 = n3.Rse;
          i3 && (i3.setSelection(e3), i3.backspace(), t3.value = p(i3.getText() + (i3.addPercent ? "%" : "")), t3.caret = i3.getSelection(), t3.cancel = true);
        }, editorDelete: function(t3) {
          var n3 = t3.editor, e3 = t3.caret, i3 = n3.Rse;
          i3 && (i3.setSelection(e3), i3.delete(), t3.value = p(i3.getText() + (i3.addPercent ? "%" : "")), t3.caret = i3.getSelection(), t3.cancel = true);
        }, editorCut: function(t3) {
          var n3, e3 = t3.editor, i3 = t3.caret, r2 = t3.clipboardData, o2 = t3.dataName, a2 = e3.Rse;
          a2 && (a2.setSelection(i3), n3 = a2.getText(true), r2.setData(o2, n3), a2.backspace(), t3.value = p(a2.getText() + (a2.addPercent ? "%" : "")), t3.caret = a2.getSelection());
        }, editorPaste: function(t3) {
          var n3 = t3.editor, e3 = t3.caret, i3 = t3.pasteValue, r2 = n3.Rse;
          r2 && (r2.setSelection(e3), r2.paste(i3), t3.pasteValue = p(r2.getText() + (r2.addPercent ? "%" : "")), t3.caret = r2.getSelection(), t3.cancel = true);
        }, editorUndo: function(t3) {
          var n3 = t3.editor, e3 = t3.caret, i3 = n3.Rse;
          i3 && (i3.setSelection(e3), i3.undo(), t3.value = p(i3.getText() + (i3.addPercent ? "%" : "")), t3.caret = i3.getSelection(), t3.cancel = true);
        }, editorRedo: function(t3) {
          var n3 = t3.editor, e3 = t3.caret, i3 = n3.Rse;
          i3 && (i3.setSelection(e3), i3.redo(), t3.value = p(i3.getText() + (i3.addPercent ? "%" : "")), t3.caret = i3.getSelection(), t3.cancel = true);
        }, onCreateEventArg: function(t3) {
          var n3 = t3.eventArg, e3;
          n3.sheet.getActualStyle(n3.row, n3.col).mask && t3.eventName === i2.Events.EnterCellInternal && (n3.readonly = true);
        } }, i2.CellTypes.Text.ch("inputMask", h), o.Workbook.ch("inputMask", { fromJson: function(t3, n3, e3) {
          a.InputMask.namedPatterns = t3.namedPatterns || {};
        }, toJson: function(t3, n3) {
          t3.namedPatterns = a.InputMask.namedPatterns;
        }, yh: function(t3, n3, e3) {
          t3.workbook.lossless && (a.InputMask.namedPatterns = t3.workbook.lossless.namedPatterns || {});
        }, wh: function(t3, n3, e3) {
          t3.workbook.lossless || (t3.workbook.lossless = {}), t3.workbook.lossless.namedPatterns = a.InputMask.namedPatterns;
        } });
      }, "./dist/plugins/namebox/namebox-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b = this && this.qKr || (y = function(t3, n3) {
          return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), y;
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Common"), r = e2("Core"), o = e2("SheetsCalc"), a = e2("./dist/plugins/namebox/namebox.js"), u = e2("./dist/plugins/namebox/namebox.ns.js"), s = r.Commands.ActionBase, c = i2.Common.zf, f = i2.Common.lt.ht, l = new i2.Common.ResourceManager(u.SR, "NameBox"), h = l.getResource.bind(l), d = void 0, v = "addCustomName", p = "navigateToRange", g = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return b(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, r2, u2, s2, l2, v2, p2, g2, m2, b2 = this, y2 = false;
            if (b2.canExecute()) {
              n4 = (t4 = b2.Mf).getParent(), i3 = (e3 = b2.tT).nameBox, r2 = e3.selectorValue;
              try {
                if (u2 = t4.getSelections(), f(u2) || 0 === u2.length) return;
                if (r2.toLowerCase() === a.PRINT_AREA && t4.printInfo) return s2 = u2[0], (l2 = t4.printInfo()).rowStart(s2.row), l2.rowEnd(s2.row + s2.rowCount - 1), l2.columnStart(s2.col), l2.columnEnd(s2.col + s2.colCount - 1), true;
                for (v2 = t4.name(), c.fJ(v2, "'") && c.dT(v2, "'") || (v2 = "'" + v2 + "'"), p2 = [], g2 = void 0, m2 = 0; m2 < u2.length; m2++) p2.push(v2 + "!" + (0, o.rangeToFormula)(u2[m2], t4.getActiveRowIndex(), t4.getActiveColumnIndex(), d, !!n4.options.referenceStyle));
                g2 = p2.join(","), n4.addCustomName(r2, g2, t4.getActiveRowIndex(), t4.getActiveColumnIndex(), ""), y2 = true;
              } catch (n5) {
                t4.jT(15, h().invalidName), i3.updateNameRangeSelectorValue();
              }
            }
            return y2;
          }, n3;
        })(s), r.Commands[v] = { canUndo: false, execute: function(t3, n3) {
          r.Commands.zA(t3, g, n3);
        } }, m = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return b(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, i3, o2, a2, u2, s2, c2, l2, h2, d2, v2 = this, p2 = false;
            if (v2.canExecute()) {
              if (n4 = (t4 = v2.Mf).getParent(), i3 = (e3 = v2.tT).nameBox, o2 = e3.selectorValue, a2 = e3.selections, u2 = e3.sheetName, s2 = n4.getSheetFromName(u2), (c2 = n4.getActiveSheet()) !== s2 && (n4.I2(n4.getSheetIndex(u2), 1, false, true), c2.b2(false, true), s2.b2(true, true)), s2.clearSelection(), l2 = a2[0], f(l2)) return;
              for (s2.setSelection(l2.row, l2.col, l2.rowCount, l2.colCount), h2 = 1; h2 < a2.length; h2++) l2 = a2[h2], s2.addSelection(l2.row, l2.col, l2.rowCount, l2.colCount);
              i3.selector.val(o2), i3.cpt = i3.selector.val(), d2 = { sheet: t4, sheetName: t4.name(), row: l2.row, col: l2.col }, t4.ki(r.Events.EnterCellInternal, d2), p2 = true;
            }
            return p2;
          }, n3;
        })(s), r.Commands[p] = { canUndo: false, execute: function(t3, n3) {
          r.Commands.zA(t3, m, n3);
        } }, r.Commands.fpt = function(t3) {
          t3.register(v, r.Commands[v]), t3.register(p, r.Commands[p]);
        };
      }, "./dist/plugins/namebox/namebox-list.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o = this && this.qKr || (a = function(t3, n3) {
          return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, a(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          a(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.NameBoxList = void 0, r = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return e3 && i3.setNameList(e3), i3;
          }
          return o(n3, t3), n3.prototype.setNameList = function(t4) {
            var n4 = this;
            n4.setOptions({ items: n4.lpt(t4), textEllipsis: true });
          }, n3.prototype.lpt = function(t4) {
            return t4.map((function(t5) {
              return { text: t5, value: t5 };
            }));
          }, n3.CustomNameChange = "CustomNameChange", n3;
        })((i2 = e2("CellTypes")).List), n2.NameBoxList = r;
      }, "./dist/plugins/namebox/namebox.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), u = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || a(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.findControl = n2.NameBox = void 0, e2("./dist/plugins/namebox/namebox-actions.js"), i2 = e2("Core"), r = e2("./dist/plugins/namebox/namebox.js"), Object.defineProperty(n2, "NameBox", { enumerable: true, get: function() {
          return r.NameBox;
        } }), u(e2("./dist/plugins/namebox/namebox.ns.js"), n2), o = function(t3) {
          return "string" == typeof t3 && (t3 = document.getElementById(t3)), (0, i2.GC$)(t3).data("name-box");
        }, n2.findControl = o;
      }, "./dist/plugins/namebox/namebox.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _;
        function O(t3, n3) {
          var e3, i3 = "", r2 = n3.rowCount, o2 = n3.colCount, a2 = n3.row + 1, u2 = n3.col + 1;
          return 1 === r2 && 1 === o2 ? i3 = R(t3, a2, u2) : r2 < 0 && o2 > 0 ? i3 = o2 + "C" : o2 < 0 && r2 > 0 ? i3 = r2 + "R" : r2 < 0 && o2 < 0 ? (e3 = H(t3)) && (i3 = e3.getRowCount() + "R x " + e3.getColumnCount() + "C") : i3 = r2 + "R x " + o2 + "C", i3;
        }
        function E(t3, n3) {
          var e3, i3 = false, r2 = n3.getSpans();
          if (r2) {
            for (e3 = 0; e3 < r2.length; e3++) if (r2[e3].row === t3.row && r2[e3].col === t3.col && r2[e3].rowCount === t3.rowCount && r2[e3].colCount === t3.colCount) {
              i3 = true;
              break;
            }
          }
          return i3;
        }
        function R(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, d2, v2;
          if (n3 < 1 || e3 < 1) return null;
          if (o2 = "", u2 = (a2 = H(t3)) && a2.name(), r2 && a2) {
            if (s2 = E(r2, a2), (c2 = t3.getCustomNames()) !== h) {
              for (f2 = 0; f2 < c2.length; f2++) if ((l2 = c2[f2].getExpression()) && l2.type === i2.ExpressionType.reference && l2.source && l2.source.getName && u2 === l2.source.getName() && null !== (d2 = l2.getRange(0, 0)) && d2 !== h && (d2.row === r2.row && d2.col === r2.col && d2.row + d2.rowCount === r2.row + r2.rowCount && d2.col + d2.columnCount === r2.col + r2.colCount || d2.row === r2.row && d2.col === r2.col && s2)) {
                o2 = c2[f2].getName();
                break;
              }
            }
            if ("" === o2 && c2 !== h) for (f2 = 0; f2 < c2.length; f2++) (l2 = c2[f2].getExpression()) && l2.type === i2.ExpressionType.reference && ((d2 = l2.getRange(0, 0)).row === r2.row && d2.column === r2.col && d2.row + d2.rowCount === r2.row + r2.rowCount && d2.column + d2.columnCount === r2.col + r2.colCount || d2.row === r2.row && d2.column === r2.col && s2) && (o2 = c2[f2].getName());
          }
          if ("" === o2) switch (t3.options.referenceStyle) {
            case 0:
              for (; e3 > 0; ) 0 === (v2 = e3 % 26) ? (o2 = "Z" + o2, e3--) : o2 = String.fromCharCode("A".charCodeAt(0) + v2 - 1) + o2, e3 = parseInt((e3 / 26).toString(), 10);
              o2 += n3.toString();
              break;
            case 1:
              o2 = "R" + n3.toString() + "C" + e3.toString();
          }
          return o2;
        }
        function L(t3, n3, e3) {
          var o2, a2, u2;
          if (void 0 === e3 && (e3 = false), !(o2 = n3.getActiveSheet())) {
            if ((a2 = n3.getActiveSheetTab()) && a2._gi === r.SheetType.reportSheet) return false;
            o2 = a2.getSheet && a2.getSheet() || a2.Mf;
          }
          return !!o2 && (!(!(u2 = t3.getExpression()) || e3 && !G(u2, n3, o2)) && (j.indexOf(u2.type) > -1 || u2.type === i2.ExpressionType.operator && 16 === u2.operatorType));
        }
        function F(t3) {
          var n3 = t3.row, e3 = t3.col, i3 = t3.rowCount, o2 = t3.colCount;
          return -1 !== n3 && -1 !== i3 || (n3 = -1, i3 = -1), -1 !== e3 && -1 !== o2 || (e3 = -1, o2 = -1), new r.Range(n3, e3, i3, o2);
        }
        function B(t3) {
          if (t3) return t3.row + b + t3.col + b + t3.rowCount + b + t3.colCount;
        }
        function P(t3, n3) {
          var e3, i3;
          try {
            e3 = (i3 = s.Common.CultureManager.getCultureInfo()).localeCompare ? i3.localeCompare(t3, n3) : t3.localeCompare(n3, "en");
          } catch (i4) {
            e3 = t3.localeCompare(n3);
          }
          return e3;
        }
        function G(t3, n3, e3) {
          var i3, a2, u2, s2, c2;
          try {
            if (i3 = !!n3.options.referenceStyle, !(a2 = (0, o.formulaToRanges)(e3, (0, o.expressionToFormula)(n3, t3, e3.getActiveRowIndex(), e3.getActiveColumnIndex(), i3), h, h, h, i3)) || a2.length < 1) return false;
            for (u2 = 0, s2 = a2; u2 < s2.length; u2++) if (c2 = s2[u2], !(n3.getSheetFromName(c2.sheetName) || n3.getSheetTab(c2.sheetName) && n3.getSheetTab(c2.sheetName)._gi !== r.SheetType.reportSheet)) return false;
          } catch (t4) {
            return false;
          }
          return true;
        }
        function U(t3) {
          return new RegExp(/[^A-Za-z0-9_.!?'",:\u0080-\uFFFF\\$]+/g).test(t3);
        }
        function H(t3) {
          var n3, e3 = t3.getActiveSheet();
          return e3 || (e3 = (n3 = t3.getActiveSheetTab()) && (n3.getSheet && n3.getSheet() || n3.Mf)), e3;
        }
        function V(t3) {
          return !!t3 && (t3._gi === r.SheetType.tableSheet || t3._gi === r.SheetType.ganttSheet);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.getActiveSheet = n2.NameBox = n2.PRINT_AREA = void 0, i2 = e2("CalcEngine"), r = e2("Core"), o = e2("SheetsCalc"), a = e2("CellTypes"), u = e2("./dist/plugins/namebox/namebox-list.js"), s = e2("Common"), c = e2("./dist/plugins/namebox/namebox.ns.js"), f = r.GC$, l = null, h = void 0, d = "A1", v = ".gc-name-box", p = "div", g = "input", m = "name-box", b = "_", y = "invalid", w = "gc-name-box-", M = "container", C = "selector", S = "dropdown", T = "disabled", x = s.Common.lt.ht, A = r.util.En, I = r.util.b0, k = new s.Common.ResourceManager(c.SR, "NameBox"), N = k.getResource.bind(k), n2.PRINT_AREA = "print_area", j = [i2.ExpressionType.reference, i2.ExpressionType.name, i2.ExpressionType.structReference], D = { enableAddCustomName: true, enableNavigateToRange: true, showCustomNameList: true, dropDownMaxHeight: 500 }, _ = (function() {
          function t3(t4, n3, e3) {
            var i3, r2;
            this.addCustomNameCommand = "addCustomName", this.navigateToRangeCommand = "navigateToRange", this.cpt = "", this.hpt = false, this.gRe = false, t4 && n3 && (t4 instanceof HTMLElement ? i3 = t4 : "string" == typeof t4 && (i3 = document.getElementById(t4)), i3 && ((r2 = this).hpt = true, r2.Ti = i3, f(i3).data(m, r2), r2.options = I(D, (function(t5, n4, e4) {
              r2.Ob(t5, n4, e4);
            })), r2.Zp(e3), r2.dpt(), r2.hpt = false, r2.bind(n3)));
          }
          return Object.defineProperty(t3.prototype, "selector", { get: function() {
            return f("." + w + C, this.Ti);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "dropdown", { get: function() {
            return f("." + w + S, this.Ti);
          }, enumerable: false, configurable: true }), t3.prototype.getHost = function() {
            return this.Ti;
          }, t3.prototype.getCustomNameList = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
            if (void 0 === t4 && (t4 = false), !(e3 = (n3 = this).vpt)) return [];
            if (!(i3 = H(e3))) return [];
            for (r2 = [], o2 = n3.mpt(i3, t4), a2 = n3.gpt(t4), u2 = o2, s2 = function(t5) {
              return t5.getName().toLowerCase();
            }, c2 = function(t5) {
              var n4 = a2[t5];
              o2.find((function(t6) {
                return s2(t6) === s2(n4);
              })) && a2.splice(t5, 1);
            }, f2 = a2.length - 1; f2 > -1; f2--) c2(f2);
            for (l2 = 0, h2 = u2 = u2.concat(a2); l2 < h2.length; l2++) d2 = h2[l2], r2.push(d2.getName());
            for (p2 = 0, g2 = v2 = n3.ppt(); p2 < g2.length; p2++) m2 = g2[p2], r2.push(m2.name);
            return r2;
          }, t3.prototype.bind = function(t4) {
            var n3 = this;
            n3.unbind(), t4 && (n3.vpt = t4, n3._id = t4.bpt()), n3.rebuild();
          }, t3.prototype.unbind = function() {
            var t4 = this;
            t4.ypt(), t4.wY = l, t4.wpt(), t4.vpt = l, t4._id = l;
          }, t3.prototype.refresh = function() {
            this.updateNameRangeSelectorValue();
          }, t3.prototype.rebuild = function() {
            var t4 = this;
            t4.hpt || (t4.wpt(), t4.dpt(), t4.v7(), t4.Mpt(), t4.refresh());
          }, t3.prototype.executeCommand = function(t4, n3, e3) {
            var i3 = this, r2 = i3.vpt, o2 = H(r2);
            o2 && r2.commandManager().execute({ cmd: t4, sheetName: e3 || o2.name(), nameBox: i3, selectorValue: i3.selector.val(), selections: n3 || o2.getSelections() });
          }, t3.prototype.readonly = function(t4) {
            if (0 === arguments.length) return this.gRe;
            this.gRe !== !!t4 && (this.gRe = !!t4, this.rebuild());
          }, t3.prototype.updateReadonlyStatus = function() {
            var t4 = this, n3 = t4.vpt;
            n3 && t4.readonly(V(n3.getActiveSheetOrSheetTab()));
          }, t3.prototype.dispose = function() {
            var t4 = this;
            t4.unbind(), t4.wY && t4.wY.dispose(), t4.wY = l, t4.Cpt && t4.Cpt.close(), t4.Cpt = l, f(t4.Ti).data(m, l), t4.Ti.innerHTML = "", t4.Ti = l;
          }, t3.prototype.Ob = function(t4, n3, e3) {
            var i3 = this;
            if (n3 !== e3) {
              if (i3.options[t4] = n3, i3.hpt) return;
              switch (t4) {
                case "dropDownMaxHeight":
                case "showCustomNameList":
                  i3.rebuild();
                  break;
                case "enableAddCustomName":
                case "enableNavigateToRange":
                case "addCustomNameCommand":
                case "navigateToRangeCommand":
                  i3.refresh();
              }
            }
          }, t3.prototype.Zp = function(t4) {
            var n3 = this.options, e3 = t4 || {};
            e3 = f.extend(true, {}, D, e3), f.each(e3, (function(t5, e4) {
              n3.hasOwnProperty(t5) && (n3[t5] = e4);
            }));
          }, t3.prototype.Mpt = function() {
            var t4 = this;
            t4.wY && t4.wY.setNameList(t4.Spt());
          }, t3.prototype.Spt = function() {
            var t4 = this.getCustomNameList(true);
            return t4 = t4.filter((function(n3, e3) {
              return t4.indexOf(n3) === e3;
            })).sort((function(t5, n3) {
              return P(t5, n3);
            }));
          }, t3.prototype.ypt = function() {
            var t4 = this;
            t4.Cpt && (t4.Cpt.close(), t4.Cpt = l, t4.wY = l);
          }, t3.prototype.Tpt = function() {
            var t4, n3, e3, i3, o2, s2, c2 = this;
            c2.ypt(), (n3 = H(t4 = c2.vpt)) && !n3.isReportTemplateSheet && (e3 = A(p), i3 = new u.NameBoxList(e3, c2.Spt()), o2 = new a.PopupControl(i3.getContainer(), c2.Ti, { align: r.DropDownAlignment.Near, hostElement: c2.vpt.getHost(), direction: r.DropDownDirection.Down, Oue: c2.vpt && c2.vpt.options.enableAccessibility }), s2 = +c2.options.dropDownMaxHeight || D.dropDownMaxHeight, f(i3.getContainer()).css(["width", "maxHeight"], [f(c2.Ti).width(), s2 + "px"]).addClass("gc-name-box-list"), o2.open(), c2.wY = i3, c2.Cpt = o2);
          }, t3.prototype.dpt = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Ti, o2 = i3.readonly();
            r2.innerHTML = "", (t4 = A(p)).classList.add(w + M), n3 = A(g), i3.vpt && i3.vpt.options.enableAccessibility && (n3.setAttribute("aria-label", N().nameBox), n3.setAttribute("role", "combobox"), n3.setAttribute("aria-expanded", "false"), n3.setAttribute("aria-autocomplete", "list")), n3.classList.add(w + C), o2 && (n3.setAttribute(T, T), n3.classList.add(w + T)), i3.options.showCustomNameList && !o2 && (e3 = A(p)).classList.add(w + S), t4.appendChild(n3), e3 && t4.appendChild(e3), r2.appendChild(t4);
          }, t3.prototype.jf = function(t4) {
            if (t4 || (t4 = this.vpt), t4) {
              var n3 = H(t4);
              return n3 || void 0;
            }
          }, t3.prototype.Apt = function() {
            return v + (this._id || "");
          }, t3.prototype.v7 = function() {
            this.pRe(), this.bRe();
          }, t3.prototype.pRe = function() {
            var t4 = this, n3 = t4.vpt, e3 = t4.Ti, i3 = t4.Apt();
            n3.bind(r.Events.SelectionChanging + i3, e3, (function() {
              var e4, i4, r2, o2 = t4.jf();
              o2 && o2.getSelections && null !== (i4 = (e4 = o2.getSelections())[e4.length - 1]) && i4 !== h && (r2 = O(n3, i4), t4.selector.val(r2 || ""), t4.cpt = r2 || "");
            })), n3.bind(r.Events.InternalSelectionChanging + i3, e3, (function(e4, i4) {
              var r2, o2 = i4.newSelections;
              null !== o2 && o2 !== h && (r2 = O(n3, o2), t4.selector.val(r2 || ""), t4.cpt = r2 || "");
            })), n3.bind(r.Events.SelectionChanged + i3, (function(n4, e4) {
              var i4 = t4.Ipt();
              t4.updateNameRangeSelectorValue(i4, e4.shiftKey);
            })), n3.bind(r.Events.DragDropBlockCompleted + i3, (function() {
              t4.updateNameRangeSelectorValue();
            })), n3.bind(r.Events.ActiveSheetChanged + i3, (function() {
              t4.updateNameRangeSelectorValue();
            })), n3.bind(r.Events.ActiveSheetChangedInternal + i3, (function(n4, e4) {
              t4.updateNameRangeSelectorValue(), t4.updateReadonlyStatus();
            })), n3.bind(r.Events.EnterCellInternal + i3, (function() {
              t4.updateNameRangeSelectorValue();
            })), n3.bind(r.Events.ClipboardPasted + i3, (function() {
              t4.updateNameRangeSelectorValue();
            })), n3.bind(r.Events.ShapeSelectionChanged + i3, (function() {
              t4.I2t || t4.updateNameRangeSelectorValue();
            })), n3.bind(r.Events.FloatingObjectSelectionChanged + i3, (function() {
              t4.I2t || t4.updateNameRangeSelectorValue();
            }));
          }, t3.prototype.bRe = function() {
            var t4, n3;
            this.readonly() || (n3 = (t4 = this).Apt(), t4.selector.bind("blur" + n3, t4.xpt.bind(t4)), t4.selector.bind("keydown" + n3, t4.Npt.bind(t4)), t4.selector.bind("focus" + n3, (function() {
              t4.selector[0].select();
            })), t4.dropdown.bind("mousedown" + n3, t4.kpt.bind(t4)));
          }, t3.prototype.wpt = function() {
            this.wRe(), this.yRe();
          }, t3.prototype.wRe = function() {
            var t4 = this, n3 = t4.vpt, e3 = t4.Apt();
            n3 && n3.unbind(e3);
          }, t3.prototype.yRe = function() {
            var t4 = this, n3 = t4.Apt();
            f(document).unbind(n3);
          }, t3.prototype.updateNameRangeSelectorValue = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = this;
            if (!x(t4) && f2.selector) return f2.selector.val(t4 || ""), void (f2.cpt = f2.selector.val());
            (r2 = (i3 = f2.Dpt()).length) > 0 ? (e3 = 1 === r2 ? i3[0].name() : "", f2.selector && (f2.selector.val(e3), f2.cpt = f2.selector.val())) : (o2 = f2.Ipt(), x(o2) ? (u2 = H(a2 = f2.vpt)) ? null !== (s2 = u2.getSelections()[u2.getSelections().length - 1]) && s2 !== h && (c2 = void 0, c2 = n3 ? O(a2, s2) : R(a2, u2.getActiveRowIndex() + 1, u2.getActiveColumnIndex() + 1, s2), f2.selector && (f2.selector.val(c2 || ""), f2.cpt = f2.selector.val())) : f2.selector.val(d) : (f2.selector.val(o2), f2.cpt = f2.selector.val()));
          }, t3.prototype.Ipt = function() {
            var t4, n3, e3, i3, o2 = this, a2 = o2.vpt, u2 = H(a2), s2 = "";
            if (u2) return t4 = u2.getSelections(), n3 = u2.name(), 1 === t4.length ? (s2 = B(F(e3 = t4[0])), i3 = "", E(e3, u2) && (i3 = B(new r.Range(e3.row, e3.col, 1, 1))), o2._pt(s2, u2.name()) || o2.Ept(s2, i3, n3)) : void 0;
          }, t3.prototype.Ept = function(t4, e3, i3) {
            var r2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            if (t4 || e3) {
              for (s2 = 0, c2 = u2 = (r2 = this).mpt().concat(r2.gpt()); s2 < c2.length; s2++) if (h2 = (l2 = (f2 = c2[s2]).getName()).toLowerCase() === n2.PRINT_AREA, d2 = (a2 = f2.WK) && a2.source, (h2 && !d2 || d2 && d2 instanceof o.SheetSource && d2.getName() === i3) && (v2 = a2.getRange(f2.FY || 0, f2.jpt || 0)) && (t4 === (p2 = B(v2)) || e3 === p2)) return l2;
            }
          }, t3.prototype._pt = function(t4, n3) {
            var e3, i3, r2, o2;
            if (t4) {
              for (i3 = 0, r2 = e3 = this.ppt(); i3 < r2.length; i3++) if (n3 === (o2 = r2[i3]).sheet && t4 === B(o2.range)) return o2.name;
            }
          }, t3.prototype.mpt = function(t4, n3) {
            var e3, i3;
            return void 0 === n3 && (n3 = false), e3 = this.vpt, i3 = [], t4 || (t4 = e3 && H(e3)), t4 && (i3 = t4.getCustomNames()), i3.filter((function(t5) {
              return L(t5, e3, n3);
            }));
          }, t3.prototype.gpt = function(t4) {
            var n3, e3;
            return void 0 === t4 && (t4 = false), e3 = [], (e3 = (n3 = this.vpt) && n3.getCustomNames()).filter((function(e4) {
              return L(e4, n3, t4);
            }));
          }, t3.prototype.ppt = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this.vpt, s2 = u2.sheets, c2 = [], f2 = [];
            for (n3 = 0, e3 = s2; n3 < e3.length; n3++) (i3 = e3[n3]).tables && (f2 = f2.concat(i3.tables.all()));
            for (r2 = 0, o2 = f2; r2 < o2.length; r2++) a2 = o2[r2], c2.push({ name: a2.name(), range: a2.dataRange(), sheet: null === (t4 = a2.Mf) || void 0 === t4 ? void 0 : t4.name() });
            return c2;
          }, t3.prototype.Dpt = function() {
            var t4 = [], n3 = this, e3 = n3.Opt();
            return e3.forEach((function(n4) {
              n4.isSelected() && t4.push(n4);
            })), t4;
          }, t3.prototype.Opt = function(t4) {
            var n3, e3, i3, r2, o2 = this.vpt, a2 = t4 || H(o2);
            return a2 ? (n3 = a2.shapes && a2.shapes.all() || [], e3 = a2.floatingObjects && a2.floatingObjects.all() || [], i3 = [], a2.charts && a2.charts.Bje && (i3 = a2.charts.all()), r2 = a2.pictures && a2.pictures.all() || [], n3.concat(i3).concat(r2).concat(e3)) : [];
          }, t3.prototype.qfe = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2;
            if (t4) {
              for (e3 = (n3 = this).Opt(), i3 = t4.split(",").map((function(t5) {
                return t5.trim();
              })), o2 = function(t5) {
                var n4 = i3[t5], o3 = e3.find((function(t6) {
                  return t6.name() === n4;
                }));
                if (!o3) return { value: void 0 };
                r2 || (r2 = []), r2.includes(o3) || r2.push(o3);
              }, a2 = 0; a2 < i3.length; a2++) if ("object" == typeof (u2 = o2(a2))) return u2.value;
              return r2;
            }
          }, t3.prototype.xpt = function() {
            var t4, n3, e3, i3, o2 = this, a2 = o2.selector.val(), u2 = o2.qfe(a2);
            if (u2) return o2.Bpt(), void u2.forEach((function(t5) {
              return t5.isSelected(true);
            }));
            if (!a2 || o2.Dpt().length > 0) return o2.$fe || o2.I2t || o2.Bpt(), void o2.updateNameRangeSelectorValue(a2);
            if (o2.cpt.toLocaleUpperCase() !== a2.toLocaleUpperCase()) {
              e3 = H(n3 = o2.vpt);
              try {
                t4 = o2.Lpt();
              } catch (t5) {
                if (t5.message === y && e3) return void e3.jT(15, N().invalidName);
              }
              if (t4 && t4.sheetName) o2.options.enableNavigateToRange && t4.ranges.length > 0 && (o2.Bpt(t4.sheetName), o2.executeCommand(o2.navigateToRangeCommand, t4.ranges, t4.sheetName));
              else if (o2.options.enableAddCustomName && !e3.isReportTemplateSheet) {
                if (i3 = { r: l }, r.Worksheet.et(e3, "beforeAddCustomNameByNamebox", i3), i3.r) return;
                o2.executeCommand(o2.addCustomNameCommand);
              }
            }
          }, t3.prototype.Npt = function(t4) {
            var n3, e3 = this, i3 = e3.selector.val();
            "Enter" === t4.key && (e3.$fe = false, (n3 = e3.qfe(i3)) ? (e3.Bpt(), e3.I2t = true, n3.forEach((function(t5) {
              return t5.isSelected(true);
            })), e3.updateNameRangeSelectorValue(), e3.I2t = false, e3.$fe = true) : e3.Dpt().length > 0 && i3 && (e3.Dpt()[0].name(i3), e3.$fe = true), t4.currentTarget.blur(), e3.$fe = false, e3.vpt && e3.vpt.focus(true)), t4 && t4.stopPropagation && t4.stopPropagation();
          }, t3.prototype.kpt = function() {
            var t4 = this;
            t4.Tpt(), t4.wY && t4.wY.on("ValueChangedEvent", (function(n3) {
              var e3, i3 = n3.value;
              x(i3) && !i3 || (e3 = t4.selector.val(), t4.updateNameRangeSelectorValue(i3), t4.cpt = e3, t4.xpt()), t4.ypt();
            }));
          }, t3.prototype.Bpt = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.vpt, u2 = a2.getSheetFromName(t4) || H(a2);
            if (u2) for (e3 = 0, i3 = n3 = o2.Opt(u2); e3 < i3.length; e3++) (r2 = i3[e3]).isSelected() && r2.isSelected(false);
          }, t3.prototype.Lpt = function() {
            var t4, n3, e3, i3, r2, a2, u2, s2, c2, f2 = this, l2 = f2.selector.val(), h2 = f2.vpt, d2 = H(h2);
            if (U(l2 = l2.replace(/, /g, ","))) throw new Error(y);
            if (n3 = l2.split(","), e3 = { ranges: [], sheetName: "" }, !d2) return e3;
            for (i3 = 0, r2 = n3; i3 < r2.length; i3++) if (a2 = r2[i3], t4 = (0, o.formulaToRanges)(d2, a2, d2.getActiveRowIndex(), d2.getActiveColumnIndex()), x(t4) || 0 === t4.length) {
              if (n3.length > 1) throw new Error(y);
              d2.isReportTemplateSheet && (s2 = (u2 = h2.getCustomName(a2)) && u2.WK) && (e3.ranges.push(s2.getRange(u2.getRow() || 0, u2.getColumn() || 0)), e3.sheetName = s2.source.getName());
            } else if (1 === t4.length) {
              if (c2 = t4[0], e3.sheetName && c2.sheetName !== e3.sheetName) throw new Error(y);
              if (!h2.getSheetFromName(c2.sheetName)) throw new Error(y);
              e3.ranges = e3.ranges.concat(c2.ranges), e3.sheetName = c2.sheetName;
            }
            return e3;
          }, t3;
        })(), n2.NameBox = _, r.Workbook.ch("nameBox", { init: function() {
          r.Commands.fpt(this.commandManager()), this.curNameBoxId = 0;
        }, onCultureChanged: function() {
          N();
        } }), f.extend(r.Workbook.prototype, { bpt: function() {
          var t3 = this.curNameBoxId + (/* @__PURE__ */ new Date()).getTime().toString();
          return this.curNameBoxId += 1, t3;
        } }), n2.getActiveSheet = H;
      }, "./dist/plugins/namebox/namebox.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/namebox/namebox.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/namebox/namebox.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.nameBox = n2.invalidName = void 0, n2.invalidName = "You must enter a valid reference you want to go to, or type a valid name for the selection.", n2.nameBox = "Name Box";
      }, "./dist/plugins/outlineColumn/outlineColumn-actions.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m = this && this.qKr || (b = function(t3, n3) {
          return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, b(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          b(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), b;
        function y(t3, n3, e3, i3) {
          return M(t3, n3, e3, i3);
        }
        function w(t3, n3, e3, i3) {
          t3.ki(r.Events.OutlineColumnCheckStatusChanged, { sheet: t3, sheetName: t3.name(), row: n3, col: e3, status: i3 });
        }
        function M(t3, n3, e3, i3) {
          var r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = a(i3) ? t3.getActiveColumnIndex() : i3;
          if (!t3.outlineColumn.Un(p2)) return null;
          if (r2 = n3 ? 1 : -1, o2 = t3.getActiveRowIndex(), u2 = t3.getSelections()[0].rowCount, c2 = true, a(e3)) for (e3 = {}, c2 = false, s2 = o2; s2 < u2 + o2; s2++) 0 !== s2 && (f2 = t3.rowOutlines.getLevel(s2), n3 && f2 > (l2 = t3.rowOutlines.getLevel(s2 - 1)) && !e3[s2 - 1] || (h2 = f2 + r2, d2 = t3.outlineColumn.options(), (v2 = a(d2.maxLevel) ? t3.outlineColumn.Fpt().maxLevel : d2.maxLevel) && h2 + 1 > v2 || h2 + 1 < 0 || (e3[s2] = { row: s2, original: f2 + 1, current: h2 + 1 }, c2 = true)));
          return c2 ? e3 : null;
        }
        function C(t3, n3, e3) {
          var r2, o2, u2;
          if (!n3) return null;
          for (o2 in r2 = a(e3) ? t3.getActiveColumnIndex() : e3, t3.outlineColumn.Xst(), t3.suspendPaint(), n3) i2.Common.kh(n3, o2) && (u2 = n3[o2], t3.getCell(u2.row, r2).textIndent(u2.current));
          t3.resumePaint(), t3.outlineColumn.$st();
        }
        function S(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2 = 0, f2 = 0, l2 = t3.rowOutlines.getLevel(n3);
          if (t3.outlineColumn.mst.updateCheckStatus(n3, i3), null !== (o2 = n3 <= t3.getRowCount() - 2 ? t3.rowOutlines.find(n3 + 1, l2 + 1) : null) && null !== i3) for (a2 = o2.start; a2 < o2.end + 1; a2++) t3.outlineColumn.mst.updateCheckStatus(a2, i3);
          for (o2 = t3.rowOutlines.find(n3, l2); null !== o2 && null !== o2.parent; ) {
            if (o2.start > 0) {
              for (c2 = o2.start - 1, f2 = t3.rowOutlines.getLevel(c2), t3.outlineColumn.mst.updateCheckStatus(c2, i3), a2 = (r2 = t3.rowOutlines.find(c2 + 1, f2 + 1)).start; a2 < r2.end + 1; a2++) if ((u2 = t3.outlineColumn.mst.vst[a2].checkBox.checkStatus) !== i3) {
                s2 = "number" == typeof u2 && "number" == typeof i3 && 3, t3.outlineColumn.mst.updateCheckStatus(c2, s2);
                break;
              }
              a2 === r2.end + 1 && true === i3 && t3.outlineColumn.mst.updateCheckStatus(c2, true);
            }
            o2 = o2.parent;
          }
        }
        function T(t3) {
          var n3 = t3.Mf, e3 = r.Commands.TI(n3.name()), i3 = t3.tT[e3];
          n3.Ut.undo(i3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.setCheckStatus = n2.outlineColumnCheckStatus = n2.commands = void 0, i2 = e2("Common"), r = e2("Core"), Object.defineProperty(n2, "commands", { enumerable: true, get: function() {
          return r.Commands;
        } }), o = r.Commands.ActionBase, a = i2.Common.lt.ht, u = "increaseCellIndent", s = "decreaseCellIndent", c = "updateOutlineColumnCheckStatus", f = "updateOutlineColumnOption", l = "outlineColumnCheckStatus", n2.outlineColumnCheckStatus = l, h = r.Commands.zA, n2.setCheckStatus = S, d = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return m(n3, t3), n3.prototype.canExecute = function() {
            return !!y(this.Mf, true, this.tT.changingRows, this.tT.changingColumns);
          }, n3.prototype.canUndo = function() {
            return true;
          }, n3.prototype.execute = function() {
            if (this.canExecute()) {
              var t4 = this.Mf;
              return r.Commands.startTransaction(this.Mf.getParent(), this.tT), t4.outlineColumn.mst.Ppt(), a(this.tT.changingColumns) && (this.tT.changingColumns = t4.getActiveColumnIndex()), this.tT.changingRows = M(t4, true, this.tT.changingRows, this.tT.changingColumns), C(this.Mf, this.tT.changingRows, this.tT.changingColumns), r.Commands.endTransaction(this.Mf.getParent(), this.tT), true;
            }
            return false;
          }, n3.prototype.undo = function() {
            var t4 = this, n4 = t4.Mf, e3 = r.Commands.TI(n4.name()), i3 = t4.tT[e3];
            return n4.Ut.undo(i3), true;
          }, n3;
        })(o), v = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return m(n3, t3), n3.prototype.canExecute = function() {
            return !!y(this.Mf, false, this.tT.changingRows, this.tT.changingColumns);
          }, n3.prototype.canUndo = function() {
            return true;
          }, n3.prototype.execute = function() {
            if (this.canExecute()) {
              var t4 = this.Mf;
              return r.Commands.startTransaction(this.Mf.getParent(), this.tT), t4.outlineColumn.mst.Ppt(), a(this.tT.changingColumns) && (this.tT.changingColumns = t4.getActiveColumnIndex()), this.tT.changingRows = M(t4, false, this.tT.changingRows, this.tT.changingColumns), C(t4, this.tT.changingRows, this.tT.changingColumns), r.Commands.endTransaction(this.Mf.getParent(), this.tT), true;
            }
            return false;
          }, n3.prototype.undo = function() {
            return T(this), true;
          }, n3;
        })(o), p = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return m(n3, t3), n3.prototype.canExecute = function() {
            return true;
          }, n3.prototype.canUndo = function() {
            return true;
          }, n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.Mf, i3 = n4.tT, o2 = i3.options, a2 = JSON.parse(JSON.stringify(e3.outlineColumn.NB));
            return r.Commands.startTransaction(this.Mf.getParent(), this.tT), e3.outlineColumn.options(o2), e3.outlineColumn.refresh(), t4 = r.Commands.TI(e3.name()), r.Commands.endTransaction(this.Mf.getParent(), this.tT), i3[t4].oldOptions = a2, true;
          }, n3.prototype.undo = function() {
            return T(this), this.Mf.outlineColumn.refresh(), true;
          }, n3;
        })(o), g = (function(t3) {
          function n3(n4, e3) {
            return t3.call(this, n4, e3) || this;
          }
          return m(n3, t3), n3.prototype.canExecute = function() {
            return true;
          }, n3.prototype.canUndo = function() {
            return true;
          }, n3.prototype.execute = function() {
            var t4 = this, n4 = t4.Mf, e3 = t4.tT, i3 = e3.row, o2 = e3.col, a2 = e3.status;
            return r.Commands.startTransaction(this.Mf.getParent(), this.tT), S(n4, i3, o2, a2), n4.outlineColumn.refresh(), r.Commands.endTransaction(this.Mf.getParent(), this.tT), w(n4, i3, o2, a2), true;
          }, n3.prototype.undo = function() {
            return T(this), this.Mf.outlineColumn.refresh(), true;
          }, n3;
        })(o), r.Commands[u] = { canUndo: true, execute: function(t3, n3, e3) {
          return n3.cmd = u, h(t3, d, n3, e3);
        } }, r.Commands[s] = { canUndo: true, execute: function(t3, n3, e3) {
          return n3.cmd = s, h(t3, v, n3, e3);
        } }, r.Commands[f] = { canUndo: true, execute: function(t3, n3, e3) {
          return n3.cmd = f, h(t3, p, n3, e3);
        } }, r.Commands[c] = { canUndo: true, execute: function(t3, n3, e3) {
          return n3.cmd = c, h(t3, g, n3, e3);
        } }, r.Commands.Gpt = function(t3) {
          var n3 = r.mt.Qf(), e3 = !n3, i3 = n3;
          t3.register(u, r.Commands[u], 221, e3, false, true, i3), t3.register(s, r.Commands[s], 219, e3, false, true, i3), t3.register(c, r.Commands[c]), t3.register(f, r.Commands[f]);
        };
      }, "./dist/plugins/outlineColumn/outlineColumn.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/outlineColumn/outlineColumn.js"), n2), r(e2("./dist/plugins/outlineColumn/outlineColumn-actions.js"), n2), r(e2("./dist/plugins/outlineColumn/outlineColumn.ns.js"), n2);
      }, "./dist/plugins/outlineColumn/outlineColumn.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R = this && this.nJr || function() {
          return R = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, R.apply(this, arguments);
        };
        function L(t3) {
          return !(!t3.expandIndicator && !t3.collapseIndicator);
        }
        function F(t3, n3) {
          return t3 && t3.outlineColumn && t3.outlineColumn.options() && t3.outlineColumn.options().columnIndex === n3;
        }
        function B(t3, n3, e3) {
          var i3 = n3.x + e3.x, r2 = e3.y + e3.height / 2 - n3.height / 2, o2 = n3.height, a2 = n3.width;
          e3.x + e3.width < i3 + a2 || (t3.save(), t3.beginPath(), t3.strokeStyle = n3.AKr ? "rgba(0, 0, 0, 0.3)" : "black", t3.strokeRect(i3, r2, a2, o2), t3.fillStyle = "white", t3.fillRect(i3, r2, a2, o2), 3 === n3.checkStatus ? (t3.beginPath(), t3.fillStyle = n3.AKr ? "rgba(0, 0, 0, 0.3)" : "black", t3.rect(i3 + a2 / 5, r2 + o2 / 5, a2 - 0.4 * a2, o2 - 0.4 * o2), t3.fill()) : true !== n3.checkStatus && 1 !== n3.checkStatus || (t3.beginPath(), t3.lineWidth = a2 / 5, t3.moveTo(i3 + a2 / 6, r2 + o2 / 2), t3.lineTo(i3 + 2 * a2 / 5, r2 + 5 / 7 * o2), t3.lineTo(i3 + 5 / 6 * a2, r2 + o2 / 6), t3.stroke()), t3.restore());
        }
        function P(t3, n3, e3, i3) {
          var r2 = n3.collapsed, o2 = n3.x + e3.x, a2 = e3.y + e3.height / 2 - n3.height / 2, u2 = n3.height, s2 = n3.width;
          e3.x + e3.width < o2 + s2 || (r2 ? n3.expandIndicator ? G(t3, n3.expandIndicator, n3, e3, i3) : (t3.save(), t3.fillStyle = "black", t3.beginPath(), t3.moveTo(o2, a2), t3.lineTo(o2, a2 + u2), t3.lineTo(o2 + s2, a2 + u2 / 2), t3.fill(), t3.restore()) : n3.collapseIndicator ? G(t3, n3.collapseIndicator, n3, e3, i3) : (t3.save(), t3.fillStyle = "black", t3.beginPath(), t3.moveTo(o2, a2 + u2), t3.lineTo(o2 + s2, a2 + u2), t3.lineTo(o2 + s2, a2), t3.fill(), t3.restore()));
        }
        function G(t3, n3, e3, i3, r2) {
          var o2, a2 = e3.x + i3.x, u2 = i3.y + i3.height / 2 - e3.height / 2, s2 = e3.width, c2 = e3.height;
          if (!(i3.x + i3.width < a2 + s2) && n3 && "none" !== n3 && r2) try {
            r2.getState(n3) ? (o2 = r2.getImage(n3), t3.drawImage(o2, 0, 0, o2.width, o2.height, a2, u2, s2, c2)) : r2.addImage(n3);
          } catch (t4) {
          }
        }
        function U(t3, n3, e3, i3) {
          var r2 = { sheet: t3, sheetName: t3.name(), isRowGroup: true, index: n3, level: e3 };
          return i3 && (r2.cancel = false), r2;
        }
        function H(t3, n3, e3, r2) {
          var o2, u2, s2 = t3.options, c2 = t3.isActualProtected();
          c2 && !s2.protectionOptions.allowOutlineRows ? t3.jT(i2.InvalidOperationType.groupProtected, k().Exp_GROUP_PROTECTED) : (o2 = t3.rowOutlines.getLevel(n3), v(r2) && (r2 = !t3.rowOutlines.getCollapsed(n3)), u2 = U(t3, n3 + 1, o2 + 1, true), t3.ki(i2.Events.RangeGroupStateChanging, u2), u2 && false === u2.cancel && (e3 ? t3.Qy().execute({ cmd: "expandRowOutline", sheetName: t3.name(), index: n3, level: o2 + 1, collapsed: r2 }) : (0, a.expandOutlineAction)(r2, n3, o2 + 1, t3, true), t3.ki(i2.Events.RangeGroupStateChanged, U(t3, n3 + 1, o2 + 1, false))));
        }
        function V(t3, n3, e3, i3) {
          var r2, o2;
          v(i3) && (i3 = typeof (r2 = t3.outlineColumn.getCheckStatus(n3)) === x ? 1 === r2 ? 2 : 1 : !r2), o2 = { cmd: "updateOutlineColumnCheckStatus", row: n3, col: e3, status: i3, sheetName: t3.name() }, t3.Qy().execute(o2);
        }
        function z(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2 = t3.getLevel(n3);
          if (e3 !== c2 + 1) {
            for (i3 = e3 - (c2 + 1), r2 = 0, o2 = Math.abs(i3); r2 < o2; r2++) i3 > 0 ? t3.group(n3, 1) : t3.ungroupRange(n3, 1);
            (a2 = n3 - 1) > -1 && (c2 = t3.getLevel(n3), s2 = void 0, (u2 = t3.getLevel(a2)) === c2 ? s2 = t3.isCollapsed(a2) : u2 < c2 && (s2 = t3.getCollapsed(a2) || t3.isCollapsed(a2)), s2 !== t3.isCollapsed(n3) && t3.Q2t(t3.items, n3, n3, s2));
          }
        }
        function Y(t3) {
          var n3, e3, i3, r2 = t3.outlineColumn;
          if (r2.mst.vst && !d(r2.mst.vst) && t3.rowOutlines.items && !d(t3.rowOutlines.items)) for (n3 = t3.rowOutlines.items, e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3]) ? r2.mst.updateIndicatorCollapsed(e3, t3.rowOutlines.isCollapsed(e3 + 1)) : r2.mst.CRe(e3);
        }
        function Z(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2 = W(e3, "showIndicator");
          p2 ? (u2 = t3.zoom(), s2 = t3.getRowCount(), c2 = !!t3.rowOutlines.isCollapsed(n3 + 1), f2 = g * u2, l2 = m * u2, h2 = null, d2 = null, e3.expandIndicator && (h2 = e3.expandIndicator, c2 && (f2 = C * u2, l2 = S * u2)), e3.collapseIndicator && (d2 = e3.collapseIndicator, c2 || (f2 = C * u2, l2 = S * u2)), n3 < s2 - 1 && ((v2 = t3.getActualStyle(n3 + 1, i3)) && v2.textIndent > r2 ? a2.indicator = { x: o2.value + y * u2, y: -l2 / 2, width: f2, height: l2, collapsed: c2, collapseIndicator: d2, expandIndicator: h2 } : delete a2.indicator), o2.value += 2 * y * u2 + f2) : delete a2.indicator;
        }
        function W(t3, n3) {
          return v(t3[n3]) ? N[n3] : t3[n3];
        }
        function Q(t3, n3, e3) {
          var i3, r2, o2 = -1, a2 = 0, u2 = t3.children;
          for (i3 = t3.start; i3 <= t3.end; i3++) if (r2 = void 0, u2 && u2[a2] && u2[a2].start - 1 === i3 ? (r2 = Q(u2[a2], n3, e3), i3 = u2[a2].end, a2++) : r2 = n3[i3] && n3[i3].checkBox && n3[i3].checkBox.checkStatus, -1 === o2) o2 = r2;
          else if (o2 !== r2) {
            o2 = typeof r2 === x && typeof o2 === x && 3;
            break;
          }
          for (; a2 < t3.children.length; a2++) Q(u2[a2], n3, e3);
          return e3.updateCheckStatus(t3.start - 1, o2), o2;
        }
        function K(t3) {
          var n3 = t3.rowOutlines, e3 = t3.outlineColumn.mst, i3 = n3.find(0, -1);
          i3.children && i3.children.forEach((function(t4) {
            Q(t4, e3.vst, e3);
          }));
        }
        function J(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2 = v(e3.showCheckBox) ? N.showCheckBox : e3.showCheckBox;
          c2 ? (u2 = !v(o2.checkBox) && 1 !== o2.checkBox && o2.checkBox.checkStatus, s2 = t3.zoom(), o2.checkBox = { x: r2.value + y * s2, y: -b * s2, width: 2 * b * s2, height: 2 * b * s2, checkStatus: u2, AKr: null === (a2 = o2.checkBox) || void 0 === a2 ? void 0 : a2.AKr }, r2.value += 2 * y * s2 + 2 * b * s2) : delete o2.checkBox;
        }
        function X(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = v(e3.showImage) ? N.showImage : e3.showImage;
          f2 ? (o2 = e3.images, a2 = t3.zoom(), o2 && o2.length ? (u2 = n3 > o2.length - 1 ? o2[o2.length - 1] : o2[n3], s2 = i3.value + y * a2, c2 = 0, r2.images = { image: u2, x: s2, y: c2, width: w * a2, height: M * a2 }, i3.value += 2 * y * a2 + w * a2) : delete r2.images) : delete r2.images;
        }
        function q(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = t3.outlineColumn.options(), c2 = s2 && s2.columnIndex;
          if (!v(c2)) return i3 = { value: 0 }, r2 = 0, (o2 = t3.getActualStyle(n3, c2)) && o2.textIndent && (r2 = o2.textIndent), 0 !== n3 && r2 - (a2 = t3.rowOutlines.getLevel(n3 - 1)) >= 3 && (r2 = a2 + 2), i3.value += 8 * r2, u2 = i3.value, z(t3.rowOutlines, n3, r2), Z(t3, n3, s2, c2, r2, i3, e3), J(t3, n3, s2, c2, i3, e3), X(t3, r2, s2, i3, e3), t3.outlineColumn.Tme = i3.value - u2, e3.cellContent = { left: i3.value, x: i3.value, y: 0, width: -i3.value, height: 0 }, e3;
        }
        function $(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2;
          function c2(t4, n4) {
            var e4;
            return N[t4] === n4;
          }
          if (e3 = t3.NB, i3 = t3.mst.vst, !v(e3)) {
            if (r2 = {}, h(N, (function(t4) {
              o2 = e3[t4], v(o2) || c2(t4, o2) || (r2[t4] = o2);
            })), a2 = {}, e3.showCheckBox) for (u2 in i3) i3.hasOwnProperty(u2) && (s2 = i3[u2].checkBox.checkStatus) && (a2[u2] = { checked: s2 });
            d(a2) || (r2.data = a2), n3.outlineColumnOptions = r2;
          }
        }
        function tt(t3, n3) {
          var e3, i3, r2;
          if (n3) {
            if (i3 = void 0, e3 = n3.data) {
              for (r2 in i3 = {}, n3) "data" !== r2 && (i3[r2] = n3[r2]);
              t3.Hpt(e3);
            }
            t3.options(v(i3) ? n3 : i3), t3.refresh();
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.OutlineColumn = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/outlineColumn/outlineColumn-actions.js"), a = e2("Outlines"), u = e2("./dist/plugins/outlineColumn/outlineColumn.ns.js"), s = r.Common.Uf, c = s.tR, f = r.Common.J8, l = r.Common.X8, h = i2.GC$.each, d = i2.GC$.isEmptyObject, v = r.Common.lt.ht, p = i2.util.b0, g = 5, m = 6, b = 6, y = 3, w = 16, M = 16, C = 16, S = 16, T = void 0, x = "number", A = null, I = new r.Common.ResourceManager(u.SR, "OutlineColumn"), k = I.getResource.bind(I), N = { columnIndex: T, showCheckBox: false, showImage: false, images: T, showIndicator: true, expandIndicator: T, collapseIndicator: T, maxLevel: 10 }, j = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Mf = t4, n3.NB = p(N, (function(t5, e3, i3) {
              n3.LHr(t5, e3, i3);
            })), n3.Upt = 0;
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.Mf = A, t4.mst = A, t4.NB = A;
          }, t3.prototype.FHr = function() {
            var t4 = this.Mf;
            if (t4) return t4.THr({ type: "setOutlineColumnProperty", outlineColumn: this });
          }, t3.prototype.LEr = function(t4, n3, e3) {
            var i3 = this.Mf;
            i3 && i3.$Dr({ type: "setOutlineColumnProperty", propName: t4, value: n3 }, e3);
          }, t3.prototype.LHr = function(t4, n3, e3) {
            var i3 = this.Mf;
            i3 && i3.$Dr({ type: "setOutlineColumnOptions", propName: t4, value: n3, oldValue: e3 });
          }, t3.prototype.a7 = function(t4, n3) {
            return this.NB && this.NB.columnIndex === n3 ? this.mst.vst[t4].cellContent.left : null;
          }, t3.prototype.K_r = function(t4) {
            var n3, e3 = this.NB;
            for (n3 in N) N.hasOwnProperty(n3) && t4[n3] !== e3[n3] && (e3[n3] = t4[n3]);
          }, t3.prototype.options = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.NB;
            return c(arguments) ? (r2 = null === (n3 = a2.Mf) || void 0 === n3 ? void 0 : n3.parent, o2 = a2.FHr(), null === (e3 = null == r2 ? void 0 : r2.suspendOp) || void 0 === e3 || e3.call(r2), a2.K_r(t4), null === (i3 = null == r2 ? void 0 : r2.resumeOp) || void 0 === i3 || i3.call(r2), a2.LEr("option", t4, o2), a2.refresh(), a2) : u2;
          }, t3.prototype.refresh = function() {
            var t4 = this.Mf;
            v(this.NB) || v(this.NB.columnIndex) || 0 === this.Upt && (t4.suspendPaint(), t4.outlineColumn.mst.updateModel(), t4.resumePaint());
          }, t3.prototype.setCheckStatus = function(t4, n3) {
            var e3 = this.NB.columnIndex;
            v(e3) || V(this.Mf, t4, e3, n3);
          }, t3.prototype.dst = function(t4) {
            this.Mf.outlineColumn.mst.setAllItemCheckStatus(t4), this.refresh();
          }, t3.prototype.getCheckStatus = function(t4) {
            var n3, e3;
            if (c(arguments)) return this.Mf.outlineColumn.mst.getCheckStatus(t4);
            for (n3 = [], e3 = this.Mf.getRowCount(), t4 = 0; t4 < e3; t4++) n3[t4] = this.Mf.outlineColumn.mst.getCheckStatus(t4);
            return n3;
          }, t3.prototype.setCollapsed = function(t4, n3) {
            H(this.Mf, t4, false, n3);
          }, t3.prototype.getCollapsed = function(t4) {
            var n3, e3;
            if (c(arguments)) return this.Mf.outlineColumn.mst.getCollapsed(t4);
            for (n3 = [], e3 = this.Mf.getRowCount(), t4 = 0; t4 < e3; t4++) n3[t4] = this.Mf.outlineColumn.mst.getCollapsed(t4);
            return n3;
          }, t3.prototype.reset = function() {
            if (!v(this.NB) && !v(this.NB.columnIndex)) {
              var t4 = this.Mf;
              this.K_r(N), t4.suspendPaint(), t4.outlineColumn.mst.updateModel(), t4.resumePaint();
            }
          }, t3.prototype.Un = function(t4) {
            return this.NB && this.NB.columnIndex === t4;
          }, t3.prototype.xB = function() {
            return this.NB && !v(this.NB.columnIndex);
          }, t3.prototype.Xst = function() {
            this.Upt++;
          }, t3.prototype.$st = function() {
            this.Upt > 0 && this.Upt--, 0 === this.Upt && this.refresh();
          }, t3.prototype.zpt = function(t4, n3) {
            this.Mf.outlineColumn.mst.insertRows(t4, n3);
          }, t3.prototype.yE = function(t4, n3) {
            this.Mf.outlineColumn.mst.deleteRows(t4, n3);
          }, t3.prototype.Fpt = function() {
            return N;
          }, t3.prototype.Vpt = function() {
            return { TRIANGLE_HEIGHT: g, TRIANGLE_BASE: m, CHECKBOX_RADIUS: b, GAP: y, IMAGE_WIDTH: w, IMAGE_HEIGHT: M, INDICATOR_IMAGE_WIDTH: C, INDICATOR_IMAGE_HEIGHT: S };
          }, t3.prototype.Hpt = function(t4) {
            var n3, e3, i3 = this;
            for (n3 in t4) t4.hasOwnProperty(n3) && ((e3 = i3.mst.vst[n3] = i3.mst.vst[n3] || {}).checkBox = { checkStatus: t4[n3].checked });
          }, t3.prototype.ect = function(t4, n3) {
            var e3 = this.NB.columnIndex;
            v(e3) || (0, o.setCheckStatus)(this.Mf, t4, e3, n3);
          }, t3.prototype.TKr = function(t4, n3) {
            var e3 = this, i3 = e3.NB.columnIndex;
            v(i3) || v(e3.mst) || e3.mst.setCheckboxDisable(t4, n3);
          }, t3.prototype.ost = function() {
            return this.mst.vst;
          }, t3;
        })(), n2.OutlineColumn = j, D = (function() {
          function t3(t4) {
            var n3 = this;
            n3.Mf = t4, n3.vst = {};
          }
          return t3.prototype.L0 = function() {
            this.Mf = A;
          }, t3.prototype.FHr = function(t4) {
            var n3 = this.Mf;
            if (n3) return n3.THr(R({ type: "setOutlineColumnProperty", propName: "data" }, t4));
          }, t3.prototype.LEr = function(t4, n3) {
            var e3 = this.Mf;
            e3 && e3.$Dr({ type: "setOutlineColumnProperty", propName: "data", value: t4 }, n3);
          }, t3.prototype.updateIndicatorCollapsed = function(t4, n3) {
            var e3 = this;
            v(e3.vst[t4]) || v(e3.vst[t4].indicator) || (e3.vst[t4].indicator.collapsed = n3);
          }, t3.prototype.updateCheckStatus = function(t4, n3, e3) {
            var i3, r2, o2, a2;
            void 0 === e3 && (e3 = true), (i3 = this).Ppt(t4), v(i3.vst[t4]) || ((r2 = i3.vst[t4].checkBox) && (o2 = r2.checkStatus, a2 = e3 && i3.FHr({ row: t4, oldCheckStatus: o2 }), r2.checkStatus = n3, n3 !== o2 && e3 && i3.LEr({ row: t4, checkStatus: n3 }, a2)), i3.Ppt(t4, true));
          }, t3.prototype.setCheckboxDisable = function(t4, n3) {
            var e3, i3 = this;
            v(i3.vst[t4]) || (e3 = i3.vst[t4].checkBox) && "object" == typeof e3 && (e3.AKr = n3);
          }, t3.prototype.setAllItemCheckStatus = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2;
            for (a2 in void 0 === n3 && (n3 = true), i3 = (e3 = this).vst, r2 = false, o2 = n3 && e3.FHr({ storage: i3 }), i3) i3.hasOwnProperty(a2) && ((u2 = i3[a2].checkBox) && (u2.checkStatus = t4), r2 = true);
            n3 && r2 && e3.LEr({ checkStatus: t4 }, o2);
          }, t3.prototype.getCheckStatus = function(t4) {
            var n3 = this;
            return v(n3.vst[t4]) || v(n3.vst[t4].checkBox) ? null : n3.vst[t4].checkBox.checkStatus;
          }, t3.prototype.getCollapsed = function(t4) {
            var n3 = this;
            return !v(n3.vst[t4]) && !v(n3.vst[t4].indicator) && n3.vst[t4].indicator.collapsed;
          }, t3.prototype.CRe = function(t4) {
            var n3 = this, e3 = n3.Mf;
            n3.vst[t4] = n3.vst[t4] || {}, q(e3, t4, n3.vst[t4]);
          }, t3.prototype.updateModel = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = a2.getRowCount();
            for (a2.rowOutlines.direction(0), t4 = 0; t4 < u2; t4++) o2.CRe(t4);
            n3 = a2.outlineColumn.options(), (e3 = v(n3.showCheckBox) ? N.showCheckBox : n3.showCheckBox) && K(a2), (i3 = a2.NMi) && i3.options.allowAddNew && (r2 = u2 - 1, delete o2.vst[r2]);
          }, t3.prototype.insertRows = function(t4, n3) {
            var e3 = this;
            e3.Ypt(t4, n3), e3.Zpt(t4, n3);
          }, t3.prototype.Ypt = function(t4, n3) {
            var e3, i3, r2, o2 = this.Mf, a2 = o2.outlineColumn.options();
            v(a2) || (e3 = a2.columnIndex, v(e3) || (r2 = 0, (i3 = o2.getActualStyle(t4 - 1, e3)) && i3.textIndent && (r2 = i3.textIndent), o2.getRange(t4, e3, n3, 1).textIndent(r2)));
          }, t3.prototype.Zpt = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2, l2, h2;
            if (void 0 === e3 && (e3 = true), o2 = (r2 = this).vst, a2 = r2.FHr({ storage: o2 }), c2 = (s2 = (u2 = o2[t4 - 1]) && u2.checkBox) && s2.checkStatus, l2 = r2.Mf.getRowCount(), f(o2, l2, t4, n3), !i2.GC$.isEmptyObject(o2) && e3) {
              for (h2 = 0; h2 < n3; h2++) o2[t4 + h2] = { checkBox: { checkStatus: c2 } };
              r2.LEr({ row: t4, count: n3, checkStatus: c2 }, a2);
            }
          }, t3.prototype.deleteRows = function(t4, n3) {
            this.Wpt(t4, n3);
          }, t3.prototype.Wpt = function(t4, n3) {
            var e3 = this, i3 = e3.vst, r2 = e3.Mf.getRowCount();
            l(i3, r2, t4 - 1, n3);
          }, t3.prototype.Qpt = function(t4, n3) {
            var e3, i3 = this.vst[n3];
            i3 && !t4[n3] && (e3 = i3.checkBox, t4[n3] = { checked: e3 && e3.checkStatus });
          }, t3.prototype.Kpt = function(t4) {
            var n3, e3 = this, i3 = this.vst;
            for (n3 in i3) i3.hasOwnProperty(n3) && e3.Qpt(t4, n3);
          }, t3.prototype.Jpt = function(t4) {
            var n3, e3 = this.vst;
            for (n3 in t4) v(t4[n3].checked) || (e3[n3].checkBox.checkStatus = t4[n3].checked);
          }, t3.prototype.Xpt = function(t4) {
            var n3 = this.Mf.Ut.G8;
            return n3 ? (n3.outlineColumnChanges || (n3.outlineColumnChanges = { items: {} }), n3.currentOutlineColumnChanges || (n3.currentOutlineColumnChanges = { items: {} }), t4 ? n3.currentOutlineColumnChanges : n3.outlineColumnChanges) : T;
          }, t3.prototype.Ppt = function(t4, n3) {
            var e3 = this, i3 = e3.Xpt(n3);
            i3 && !i3.all && (v(t4) ? (i3.all = true, e3.Kpt(i3.items)) : e3.Qpt(i3.items, t4));
          }, t3.prototype.qpt = function(t4) {
            this.Jpt(t4.items);
          }, t3;
        })(), i2.GC$.extend(i2.Y8.prototype, { qpt: function(t3) {
          var n3 = this, e3 = n3.$pt, i3 = e3.mst;
          e3.xB() && (i3.updateModel(), t3 && i3.qpt(t3), n3.Mf.zw());
        } }), i2.Y8.ch("outlineColumn", { init: function() {
          var t3 = this, n3 = t3.Mf;
          t3.$pt = new j(n3), t3.$pt.mst = new D(n3);
        }, applyChanges: function(t3) {
          var n3, e3, i3 = t3.changes, r2 = t3.isUndo;
          i3 && ((n3 = i3.outlineColumnOption) && this.$pt.options(r2 ? n3.oldValue : n3.value), (e3 = r2 ? i3.outlineColumnChanges : i3.currentOutlineColumnChanges) && this.qpt(e3));
        }, undo: function(t3) {
          var n3 = t3.outlineColumnChanges;
          n3 && !t3.oldOptions && this.qpt(n3);
        }, dispose: function(t3) {
          var n3 = this, e3;
          false !== (t3 && t3.clearCache) && n3.$pt && (n3.$pt.mst && (n3.$pt.mst.L0(), n3.$pt.mst = A), n3.$pt.L0(), n3.$pt = A);
        } }), _ = { init: function() {
          var t3 = this;
          t3.outlineColumn = t3.Ut.$pt;
        }, dispose: function(t3) {
          if (false !== t3.clearCache) {
            var n3 = this, e3 = n3.outlineColumn;
            e3 && (e3.L0(), n3.outlineColumn = A);
          }
        }, toJson: function(t3) {
          $(this.outlineColumn, t3);
        }, fromJson: function(t3) {
          tt(this.outlineColumn, t3.outlineColumnOptions);
        }, wh: function(t3) {
          t3.lossless || (t3.lossless = {}), $(this.outlineColumn, t3.lossless);
        }, yh: function(t3) {
          tt(this.outlineColumn, t3 && t3.lossless && t3.lossless.outlineColumnOptions);
        }, onLayoutChanged: function(t3) {
          var n3 = this, e3 = n3.outlineColumn, i3 = t3.changeType, r2 = t3.row, o2 = t3.rowCount, a2 = t3.sheetArea, u2 = v(a2) || 3 === a2;
          "addRows" === i3 && u2 ? (e3.mst.Ppt(), e3.zpt(r2, o2), e3.mst.Ppt(null, true), e3.refresh()) : "deleteRows" === i3 && u2 ? (e3.mst.Ppt(), e3.yE(r2, o2), e3.mst.Ppt(null, true), e3.refresh()) : "zoomSheet" === i3 ? e3.refresh() : "invalidateLayout" === i3 && Y(n3);
        }, onLayoutChangedFromOp: function(t3) {
          var n3 = this, e3 = n3.outlineColumn, i3 = t3.changeType, r2 = t3.row, o2 = t3.rowCount, a2 = t3.sheetArea, u2 = v(a2) || 3 === a2;
          "addRows" === i3 && u2 ? e3.mst.Zpt(r2, o2, false) : "deleteRows" === i3 && u2 ? (e3.yE(r2, o2), e3.refresh()) : "zoomSheet" === i3 ? e3.refresh() : "updateCollapsed" === i3 && Y(n3);
        }, sortRangeChanged: function(t3) {
          for (var n3 = this.outlineColumn, e3 = t3.column, i3 = t3.columnCount, r2 = e3; n3.Un(r2) && r2 <= e3 + i3; ) n3.refresh(), r2 += 1;
        } }, i2.Worksheet.ch("outlineColumn", _), O = { paintCellPadding: function(t3) {
          var n3, e3, r2 = t3.options.rect, o2 = t3.options.context.sheet, a2 = t3.options.context, u2 = a2.row, s2 = a2.col, c2 = a2.sheetArea, f2 = t3.ctx;
          a2.dataRange && (n3 = a2.dataRange.convertContext({ sheet: o2, row: u2, col: s2, sheetArea: c2 })) && (o2 = n3.sheet, u2 = n3.row, s2 = n3.col, c2 = n3.sheetArea), F(o2, s2) && r2.width > 0 && r2.height > 0 && (c2 !== i2.SheetArea.colHeader || !o2.NMi) && (e3 = o2.outlineColumn.mst.vst[u2]) && (f2.save(), e3.indicator && P(f2, e3.indicator, r2, a2.imageLoader), e3.checkBox && B(f2, e3.checkBox, r2), e3.images && G(f2, e3.images.image, e3.images, r2, a2.imageLoader), f2.restore(), e3.cellContent && (r2.x += e3.cellContent.left, r2.width -= e3.cellContent.left));
        }, getCellPaddingRect: function(t3) {
          var n3, e3 = t3.options.rect, i3 = t3.options.context.sheet, r2 = t3.options.context, o2 = r2.row, a2 = r2.col;
          F(i3, a2) && e3.width > 0 && e3.height > 0 && (n3 = i3.outlineColumn.mst.vst[o2]) && n3.cellContent && (e3.x += n3.cellContent.left, e3.width -= n3.cellContent.left);
        }, getCellPaddingHitInfo: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = t3.context, s2 = u2.sheet, c2 = u2.col, f2 = u2.row, l2 = u2.sheetArea, h2 = t3.x, d2 = t3.y, v2 = t3.cellRect;
          if (u2.dataRange && (n3 = u2.dataRange.convertContext({ sheet: s2, row: f2, col: c2, sheetArea: l2 })) && (s2 = n3.sheet, f2 = n3.row, c2 = n3.col), e3 = s2.outlineColumn, t3.paddingHitInfo = null, e3 && e3.NB) {
            for (i3 = e3.mst.vst[f2], r2 = e3.NB.columnIndex, v2 = v2.clone(); c2 > r2; ) c2--, v2.x -= s2.getColumnWidth(c2);
            i3 && c2 === r2 && (o2 = void 0, a2 = void 0, i3.indicator && (o2 = i3.indicator.x, h2 >= (a2 = i3.indicator.x + v2.x) && h2 < a2 + i3.indicator.width && (t3.paddingHitInfo = { x: h2, y: d2, row: f2, col: c2, outlineColumnHitInfo: { indicator: true } })), i3.checkBox && (o2 || (o2 = i3.checkBox.x), h2 >= (a2 = i3.checkBox.x + v2.x) && h2 < a2 + i3.checkBox.width && (t3.paddingHitInfo = { x: h2, y: d2, row: f2, col: c2, outlineColumnHitInfo: { checkBox: !i3.checkBox.AKr } })), i3.images && (o2 || (o2 = i3.images.x), h2 >= (a2 = i3.images.x + v2.x) && h2 < a2 + i3.images.width && (t3.paddingHitInfo = { x: h2, y: d2, row: f2, col: c2, outlineColumnHitInfo: { image: true } })), o2 && h2 >= v2.x && h2 < v2.x + o2 && (t3.paddingHitInfo = { x: h2, y: d2, row: f2, col: c2, outlineColumnHitInfo: { blank: true } }));
          }
        }, processMouseDownOnCellPadding: function(t3) {
          var n3, e3 = t3.sheet, r2 = t3.row, o2 = t3.col, a2 = t3.outlineColumnHitInfo;
          v(a2) || (n3 = { r: A }, i2.Worksheet.et(e3, "preProcessOutlineColumnMouseDown", n3), n3.r || (a2.indicator ? H(e3, r2, true) : a2.checkBox ? V(e3, r2, o2) : a2.image || a2.blank));
        }, getOutlineColumnOffset: function(t3) {
          var n3, e3 = t3.context.sheet, i3 = t3.context.col;
          F(e3, i3) && (W(n3 = e3.outlineColumn.options(), "showIndicator") && (t3.value += y, L(n3) ? t3.value += C : t3.value += g, t3.value += y), W(n3, "showCheckBox") && (t3.value += y, t3.value += 2 * b, t3.value += y), W(n3, "showImage") && (t3.value += y, t3.value += w, t3.value += y));
        } }, i2.CellTypes.Base.ch("outlineColumn", O), E = { init: function() {
          o.commands.Gpt(this.commandManager());
        }, onCultureChanged: function() {
          k();
        } }, i2.Workbook.ch("outlineColumn", E);
      }, "./dist/plugins/outlineColumn/outlineColumn.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/outlineColumn/outlineColumn.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/outlineColumn/outlineColumn.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Exp_GROUP_PROTECTED = void 0, n2.Exp_GROUP_PROTECTED = "You can not use this command on a protected sheet. To use this command, you must first unprotect sheet.";
      }, "./dist/plugins/search/search.entry.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SearchFoundFlags = n2.SearchOrder = n2.SearchFlags = n2.SearchCondition = n2.SearchResult = void 0;
        var i2 = e2("./dist/plugins/search/search.js");
        Object.defineProperty(n2, "SearchResult", { enumerable: true, get: function() {
          return i2.SearchResult;
        } }), Object.defineProperty(n2, "SearchCondition", { enumerable: true, get: function() {
          return i2.SearchCondition;
        } }), Object.defineProperty(n2, "SearchFlags", { enumerable: true, get: function() {
          return i2.SearchFlags;
        } }), Object.defineProperty(n2, "SearchOrder", { enumerable: true, get: function() {
          return i2.SearchOrder;
        } }), Object.defineProperty(n2, "SearchFoundFlags", { enumerable: true, get: function() {
          return i2.SearchFoundFlags;
        } });
      }, "./dist/plugins/search/search.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p;
        function g(t3, n3, e3) {
          if (!t3) return false;
          if (t3 = t3.toString(), n3 = n3.toString(), 0 === e3) return t3.indexOf(n3) > -1;
          var i3 = (2 & e3) > 0, r2 = (1 & e3) > 0, o2, a2;
          return (4 & e3) > 0 ? (n3 = (a2 = i3 ? u.tbt(n3, false, true) : u.jJ(n3)) || n3, (a2 = r2 ? u.OJ(n3) : u.qT(n3)).test(t3)) : (r2 && (n3 = n3.toLowerCase(), t3 = t3.toLowerCase()), i3 ? n3 === t3 : t3.indexOf(n3) >= 0);
        }
        function m(t3, n3, e3, i3, r2, o2, a2, u2) {
          var c2 = s, f2 = t3 + 1, l2 = n3 + 1;
          return 0 === e3 ? l2 >= 0 && l2 <= u2 ? c2 = { r: t3, c: l2 } : f2 >= 0 && f2 <= o2 && (c2 = { r: f2, c: i3 ? a2 : 0 }) : f2 <= o2 ? c2 = { r: f2, c: n3 } : l2 <= u2 && (c2 = { r: i3 ? r2 : 0, c: l2 }), c2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SearchFoundFlags = n2.SearchOrder = n2.SearchFlags = n2.SearchResult = n2.SearchCondition = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = !!o, u = r.Common.$T, s = null, c = Math.max, f = "string", i2.Worksheet.prototype.search = function(t3) {
          var n3, e3, r2, o2, u2, l2, d2, v2, p2, b, y, w, M, C, S, T, x, A, I, k, N;
          if (!t3) return s;
          if (e3 = this, r2 = t3.sheetArea, o2 = t3.searchString, u2 = t3.searchTarget, l2 = t3.searchFlags, d2 = e3.getRowCount(r2), v2 = e3.getColumnCount(r2), p2 = new h(), !o2 || 0 === u2 || d2 <= 0 && v2 <= 0) return p2;
          for (b = c(0, t3.rowStart), y = c(0, t3.columnStart), C = (8 & l2) > 0, ((w = t3.rowEnd) < 0 || !C) && (w = d2 - 1), ((M = t3.columnEnd) < 0 || !C) && (M = v2 - 1), x = (S = t3.findBeginRow) < 0 ? b : S, A = (T = t3.findBeginColumn) < 0 ? y : T; x >= 0 && A >= 0; ) {
            if (I = e3.getCell(x, A, r2), k = void 0, (1 & u2) > 0 && "" !== (k = t3.callback ? t3.callback(I, e3) : I.text()) && g(k, o2, l2) && (p2.searchFoundFlag |= 1, p2.foundString = k), a && (8 & u2) > 0 && typeof (k = i2.util.f0(e3, x, A)) === f && "" !== k && g(k, o2, l2) && (p2.searchFoundFlag |= 8, p2.foundString = k), (4 & u2) > 0 && typeof (k = I.tag()) === f && "" !== k && g(k, o2, l2) && (p2.searchFoundFlag |= 4, p2.foundString = k), (16 & u2) > 0 && typeof (k = null === (n3 = I.comment()) || void 0 === n3 ? void 0 : n3.text()) === f && "" !== k && g(k, o2, l2) && (p2.searchFoundFlag |= 16, p2.foundString = k), 0 !== p2.searchFoundFlag) return p2.foundRowIndex = x, p2.foundColumnIndex = A, p2;
            if (!(N = m(x, A, t3.searchOrder, C, b, w, y, M))) break;
            x = N.r, A = N.c;
          }
          return p2;
        }, i2.Workbook.prototype.search = function(t3) {
          var n3, e3, r2, o2, a2, u2, c2, f2, l2;
          if (!t3) return s;
          if (e3 = 0, r2 = (n3 = this).getSheetCount(), o2 = new h(), !t3.searchString || t3.searchTarget === e3 || r2 <= 0) return o2;
          if (-1 === t3.startSheetIndex && (t3.startSheetIndex = 0), -1 === t3.endSheetIndex && (t3.endSheetIndex = r2 - 1), f2 = t3.startSheetIndex, (l2 = t3.endSheetIndex) >= f2 && 0 <= f2 && f2 < r2 && 0 <= l2 && l2 < r2) {
            for (a2 = f2; a2 <= l2; a2++) if ((u2 = n3.getSheet(a2)).visible() === i2.SheetTabVisible.visible && (c2 = u2.search(t3)) && c2.searchFoundFlag !== e3) return c2.foundSheetIndex = a2, c2;
          }
          return o2;
        }, l = /* @__PURE__ */ (function() {
          function t3() {
            this.startSheetIndex = -1, this.endSheetIndex = -1, this.searchString = s, this.searchFlags = 0, this.searchOrder = 0, this.searchTarget = 1, this.sheetArea = 3, this.rowStart = -1, this.columnStart = -1, this.rowEnd = -1, this.columnEnd = -1, this.findBeginRow = -1, this.findBeginColumn = -1;
          }
          return t3;
        })(), n2.SearchCondition = l, h = /* @__PURE__ */ (function() {
          function t3() {
            this.foundColumnIndex = -1, this.foundRowIndex = -1, this.searchFoundFlag = 0, this.foundSheetIndex = -1, this.foundString = s;
          }
          return t3;
        })(), n2.SearchResult = h, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.ignoreCase = 1] = "ignoreCase", t3[t3.exactMatch = 2] = "exactMatch", t3[t3.useWildCards = 4] = "useWildCards", t3[t3.blockRange = 8] = "blockRange";
        })(d = n2.SearchFlags || (n2.SearchFlags = {})), (function(t3) {
          t3[t3.zOrder = 0] = "zOrder", t3[t3.nOrder = 1] = "nOrder";
        })(v = n2.SearchOrder || (n2.SearchOrder = {})), (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.cellText = 1] = "cellText", t3[t3.cellTag = 4] = "cellTag", t3[t3.cellFormula = 8] = "cellFormula", t3[t3.cellComment = 16] = "cellComment";
        })(p = n2.SearchFoundFlags || (n2.SearchFoundFlags = {}));
      }, "./dist/plugins/sheetsCalc/calc-extra-save.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l;
        function h(t3, n3, e3) {
          var r2, o2, a2 = function(o3) {
            var a3, u2, s2, c2, f2 = n3[o3];
            if (f2.l) for (a3 = d(f2.k), u2 = t3.oT(a3[1], a3[2], true), f2.v && t3.nbt(u2), f2.b, u2.aT = f2.l.map((function(t4) {
              return parseInt(t4, 10);
            })), s2 = function(t4) {
              var n4 = f2.l[t4];
              u2[n4] = (0, i2.createMap)(), null === (r2 = f2[n4]) || void 0 === r2 || r2.map((function(t5) {
                var i3, r3 = d(t5), o4 = r3[0];
                "?" !== o4[0] && "!" !== o4[0] || (o4 = o4.slice(1)), i3 = e3[o4], u2[n4].set(t5, i3.oT(r3[1], r3[2], true));
              }));
            }, c2 = 0; c2 < f2.l.length; c2++) s2(c2);
          };
          for (o2 = 0; o2 < n3.length; o2++) a2(o2);
        }
        function d(t3) {
          return t3.split(",").map((function(t4, n3) {
            return n3 > 0 && (t4 = parseInt(t4, 10)), t4;
          }));
        }
        function v(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3.uT(true);
          for (i3 in n3.l) if (n3.l.hasOwnProperty(i3)) {
            for (o2 in r2 = n3[i3]) if (r2.hasOwnProperty(o2)) for (a2 = o2.split(",").map((function(t4, n4) {
              return "?" !== t4[0] && "!" !== t4[0] || (t4 = t4.slice(1)), parseInt(t4, 10);
            })), u2 = 0; u2 < r2[o2].length; u2++) "?" !== (c2 = (s2 = d(r2[o2][u2]))[0])[0] && "!" !== c2[0] || (c2 = c2.slice(1)), l2 = (f2 = e3[c2]).oT(s2[1], s2[2], true), h2.processListener(parseInt(i3, 10), a2[0], a2[1], a2[2], a2[3], l2, true);
          }
        }
        function p(t3) {
        }
        function g(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = {};
          if (n3 && n3.idMap) {
            for (r2 in i3 = {}, e3 = t3.rO) e3.hasOwnProperty(r2) && (i3[e3[r2].getSource().getName()] = e3[r2]);
            for (r2 in o2 = n3.idMap) o2.hasOwnProperty(r2) && (a2 = o2[r2], u2[r2] = i3[a2]);
          }
          return u2;
        }
        function m(t3) {
          var n3, e3 = t3.rO, i3 = {};
          for (n3 in e3) e3.hasOwnProperty(n3) && (i3[n3] = e3[n3].getSource().getName());
          return i3;
        }
        function b(t3, n3) {
          return y(t3, n3);
        }
        function y(t3, n3) {
          var e3, o2, h2, d2, v2, p2, g2, m2 = t3.t;
          if (4 === m2 || 2 === m2 || 3 === m2 || 8 === m2 || 100 === m2) return (o2 = new i2.Expression(m2)).value = t3.v, o2;
          if (5 === m2) (o2 = new i2.Expression(5)).value = i2.CalcError.ibt(t3.v);
          else if (6 === m2) (o2 = new i2.Expression(6)).value = new i2.CalcArray(t3.v);
          else if (9 === m2) 15 === (o2 = (0, i2.rbt)(t3.o, y(t3.v, n3), t3.w && y(t3.w, n3))).operatorType && n3.iao();
          else if (10 === m2) (o2 = new i2.Expression(10)).value = y(t3.v, n3);
          else if (11 === m2) o2 = new i2.Expression(11);
          else if (7 === m2) for (o2 = new i2.Expression(7), t3.f && (o2.function = y(t3, n3)), t3.n && (o2.function = n3.getFunction(t3.n), (null === (e3 = o2.function) || void 0 === e3 ? void 0 : e3.haveDynamicListener) && n3.iao(), o2.functionName = t3.n), h2 = o2.arguments = [], d2 = 0; d2 < t3.p.length; d2++) t3.p[d2] && (h2[d2] = y(t3.p[d2], n3));
          else 1 === m2 ? (o2 = new i2.ReferenceExpression(1), (v2 = t3.v.split("*"))[0] && (o2.source = n3.getExternalSource("", v2[0])), v2[1] && (o2.endSource = n3.getExternalSource("", v2[1])), v2[2] && (o2.row = parseInt(v2[2], 10)), v2[3] && (o2.column = parseInt(v2[3], 10)), v2[4] && (o2.endRow = parseInt(v2[4], 10)), v2[5] && (o2.endColumn = parseInt(v2[5], 10)), p2 = parseInt(v2[6], 10), o2.rowRelative = !!(p2 & a), o2.columnRelative = !!(p2 & u), o2.endRowRelative = !!(p2 & s), o2.endColumnRelative = !!(p2 & c), o2.isFullRow = !!(p2 & f), o2.isFullColumn = !!(p2 & l), o2.isFullRow && (o2.column = o2.endColumn = i2.BAND_INDEX_CONST), o2.isFullColumn && (o2.row = o2.endRow = i2.BAND_INDEX_CONST)) : 13 === m2 ? (o2 = new r.obt(), g2 = t3.v, o2.abt = g2[0], o2.source = g2[1], o2.ubt = g2[2], o2.sbt = g2[3], o2.lbt = g2[6], o2.hbt = g2[7], o2.source = n3.getExternalSource("", o2.source), o2.abt = n3.getTableByName(o2.abt)) : o2 && o2.type;
          return t3.es && (o2.ensureSingle = true), o2;
        }
        function w(t3) {
          return M(t3);
        }
        function M(t3) {
          var n3, e3, r2, h2;
          if (!t3) return t3;
          if (n3 = { t: t3.type }, t3.ensureSingle && (n3.es = 1), 4 === t3.type || 2 === t3.type || 3 === t3.type || 8 === t3.type || 100 === t3.type) n3.v = t3.value;
          else if (5 === t3.type) n3.v = t3.value._code;
          else if (6 === t3.type) n3.v = t3.value.array;
          else if (9 === t3.type) n3.o = t3.operatorType, n3.v = M(t3.value), n3.w = t3.value2 && M(t3.value2);
          else if (10 === t3.type) n3.v = M(t3.value);
          else if (7 === t3.type) for ((0, i2.isExpression)(t3.function) ? n3.f = M(t3.function) : t3.functionName && (n3.n = t3.functionName), n3.p = [], e3 = 0; e3 < t3.arguments.length; e3++) n3.p[e3] = M(t3.arguments[e3]);
          else 1 === t3.type ? (r2 = (t3.rowRelative && a) | (t3.columnRelative && u) | (t3.endRowRelative && s) | (t3.endColumnRelative && c) | (t3.isFullRow && f) | (t3.isFullColumn && l), h2 = [t3.source && t3.source.getName(), t3.endSource && t3.endSource.getName(), t3.row, t3.column, t3.endRow, t3.endColumn, r2], t3.isFullRow && (h2[3] = h2[5] = o), t3.isFullColumn && (h2[2] = h2[4] = o), n3.v = h2.join("*")) : 13 === t3.type ? n3.v = [t3.abt.name(), t3.source.getName(), t3.ubt, t3.sbt, 0, 0, t3.lbt, t3.hbt] : t3.type;
          return n3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.exprToJSON = n2.exprFromJSON = n2.dbt = n2.vbt = n2.mbt = n2.gbt = n2.pbt = void 0, i2 = e2("CalcEngine"), r = e2("./dist/plugins/sheetsCalc/parser-sheets.js"), o = null, a = 1, u = 2, s = 4, c = 8, f = 16, l = 32, n2.pbt = h, n2.gbt = v, n2.mbt = p, n2.vbt = g, n2.dbt = m, n2.exprFromJSON = b, n2.exprToJSON = w;
      }, "./dist/plugins/sheetsCalc/calc-spreadjs.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z = this && this.qKr || (Z = function(t3, n3) {
          return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Z(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Z(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), Y = this && this.nJr || function() {
          return Y = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, Y.apply(this, arguments);
        }, Z;
        function W(t3, n3, e3, r2, o2, a2) {
          var s2, c2 = t3 && t3 instanceof i2.Worksheet && t3, f2 = new u.Parser();
          return e3 = e3 === m ? 0 : e3, r2 = r2 === m ? 0 : r2, s2 = new G(c2, !!o2, (0, u.eV)(e3, r2)), a2 && (s2.culture = true), f2.parse(s2, n3);
        }
        function Q(t3, n3, e3, r2, o2, a2) {
          var s2, c2 = t3 && t3 instanceof i2.Worksheet && t3, f2 = new u.Parser();
          return e3 = e3 === m ? 0 : e3, r2 = r2 === m ? 0 : r2, (s2 = new G(c2, !!o2, (0, u.eV)(e3, r2))).Sbt = a2, s2.Eme = c2 && c2.Dhe, f2.unparse(s2, n3);
        }
        function K(t3, n3, e3, i3, r2, o2) {
          var a2;
          return e3 === m && (e3 = 0), i3 === m && (i3 = 0), q(t3, W(t3, n3, e3, i3, r2, true), e3, i3, { vDt: o2 });
        }
        function J(t3, n3, e3, i3) {
          e3 === m && (e3 = 0), i3 === m && (i3 = 0);
          try {
            var r2;
            return $(t3, W(t3, n3, e3, i3, false, true), e3, i3, { convertNullToZero: false });
          } catch (t4) {
            return Promise.reject(t4);
          }
        }
        function X(t3, n3, e3, i3) {
          return $(t3, n3, e3, i3);
        }
        function q(t3, n3, e3, i3, r2) {
          var o2, a2, s2, c2 = t3.op();
          return e3 === m && (e3 = t3.getActiveRowIndex()), i3 === m && (i3 = t3.getActiveColumnIndex()), o2 = true, r2 && r2.convertNullToZero !== m && (o2 = r2.convertNullToZero), a2 = t3.Uw(r2 && r2.sheetArea), s2 = c2.evaluateParsedFormula(a2, n3, (0, u.eV)(e3, i3), false, o2, m, r2 && r2.vDt), (u.Convert.LE(s2) || u.Convert.Nh(s2)) && 1 === (s2 = s2.toArray(0, false)).rowCount && 1 === s2.colCount && 1 === s2.rangeCount && (s2 = s2[0][0]), s2;
        }
        function $(t3, n3, e3, i3, r2) {
          var o2, a2, s2, c2 = t3.op();
          return e3 === m && (e3 = t3.getActiveRowIndex()), i3 === m && (i3 = t3.getActiveColumnIndex()), o2 = true, r2 && r2.convertNullToZero !== m && (o2 = r2.convertNullToZero), a2 = t3.Uw(), (s2 = (0, u.eV)(e3, i3)).Tbt = Math.random().toString(36).substring(2), c2.Abt(a2, n3, s2, o2);
        }
        function tt(t3, n3, e3, i3, r2) {
          var o2, c2, f2, l2 = t3.row, h2 = t3.col, d2 = t3.row + t3.rowCount - 1, v2 = t3.col + t3.colCount - 1, p2 = false, m2 = false, b2 = false, y2 = false;
          return arguments.length >= 4 && (l2 -= (p2 = !!(1 & i3)) ? n3 : 0, d2 -= (m2 = !!(4 & i3)) ? n3 : 0, h2 -= (b2 = !!(2 & i3)) ? e3 : 0, v2 -= (y2 = !!(8 & i3)) ? e3 : 0), r2 && (c2 = et(t3, r2, n3), f2 = it(t3, r2, n3), c2 && f2) ? o2 = a.StructureReferenceResolver.create(r2, c2, f2, t3.col - r2.dataRange().col, t3.col + t3.colCount - r2.dataRange().col - 1) : (1 === t3.rowCount && 1 === t3.colCount ? o2 = (0, u.knt)(g, g, l2, h2, p2, b2) : (t3.row < 0 && (l2 = d2 = s.BAND_INDEX_CONST), t3.col < 0 && (h2 = v2 = s.BAND_INDEX_CONST), o2 = (0, u.lJ)(g, g, l2, h2, d2, v2, p2, b2, m2, y2, n3, e3)), o2);
        }
        function nt(t3) {
          return t3.indexOf("[") >= 0 && t3.indexOf("]") > 1;
        }
        function et(t3, n3, e3) {
          if (1 === t3.rowCount) {
            if (n3.hasHeadersRow() && t3.row === n3.startRow()) return 2;
            if (n3.hasTotalsRow() && t3.row === n3.endRow()) return 8;
            if (e3 === t3.row) return 1;
          } else {
            if (n3.hasHeadersRow() && t3.row === n3.startRow()) {
              if (t3.rowCount === n3.dataRange().rowCount + 1) return 6;
              if (n3.hasTotalsRow() && t3.rowCount === n3.dataRange().rowCount + 1 + 1) return 14;
            }
            if (t3.row === n3.dataRange().row) {
              if (t3.rowCount === n3.dataRange().rowCount) return 3;
              if (n3.hasTotalsRow() && t3.rowCount === n3.dataRange().rowCount + 1) return 12;
            }
          }
          return m;
        }
        function it(t3, n3, e3) {
          return t3.col === n3.startColumn() && t3.colCount === n3.dataRange().colCount ? 1 : 1 === t3.colCount ? 2 : t3.col >= n3.startColumn() && t3.col + t3.colCount - 1 <= n3.endColumn() ? 4 : m;
        }
        function rt(t3, n3, e3, i3, r2) {
          var o2 = tt(t3, n3, e3, i3), a2 = new G(g, !!r2, (0, u.eV)(n3, e3)), s2 = new u.Parser(), c2 = s2.unparse(a2, o2);
          return a2.L0(), c2;
        }
        function ot(t3, n3, e3, i3, r2, o2, a2) {
          var s2 = tt(n3, e3, i3, r2, a2), c2 = new G(t3, !!o2, (0, u.eV)(e3, i3)), f2 = new u.Parser();
          return f2.unparse(c2, s2);
        }
        function at(t3, n3, e3) {
          if (!t3) return false;
          var i3 = false, r2 = false;
          if (1 === n3.rowCount) {
            if (t3.hasHeadersRow() && n3.row === t3.startRow()) return true;
            if (t3.hasTotalsRow() && n3.row === t3.endRow()) return true;
            if (n3.row === e3 && n3.col >= t3.startColumn() && n3.col + n3.colCount <= t3.startColumn() + t3.dataRange().colCount) return true;
          } else t3.hasHeadersRow() && n3.row === t3.startRow() && (n3.rowCount === t3.dataRange().rowCount + 1 && (i3 = true), t3.hasTotalsRow() && n3.rowCount === t3.dataRange().rowCount + 1 + 1 && (i3 = true)), n3.row === t3.dataRange().row && (n3.rowCount === t3.dataRange().rowCount && (i3 = true), t3.hasTotalsRow() && n3.rowCount === t3.dataRange().rowCount + 1 && (i3 = true));
          return n3.col + n3.colCount <= t3.startColumn() + t3.dataRange().colCount && (r2 = true), i3 && r2;
        }
        function ut(t3, n3, e3, r2, o2) {
          var a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2;
          if (!n3) return null;
          if (e3 = e3 || 0, r2 = r2 || 0, f2 = false, s2 = (a2 = t3.op()).parse(t3.Uw(), n3, e3, r2, true, true)) {
            if (7 === s2.type && "ANCHORARRAY" === s2.functionName && (s2 = s2.arguments[0], f2 = true), (c2 = s2.source) && 13 === s2.type) ;
            else if (1 === s2.type && s2.endSource) {
              for (l2 = s2.source, h2 = s2.endSource, d2 = l2.getSources(h2), v2 = false, p2 = 0; p2 < d2.length; p2++) if (d2[p2] === t3.Uw()) {
                v2 = true;
                break;
              }
              s2 = v2 && s2;
            }
          }
          return !s2 || !s2.getRange || c2 && c2 !== t3.Uw() ? null : (g2 = s2.getRange(e3, r2, m, o2)) ? (f2 && (b2 = new u.CalcReference(t3.qgt, [g2]).getSpillRef()) && b2.$gt && (g2 = b2.$gt[0]), new i2.Range(g2.row, g2.col, g2.rowCount, g2.colCount)) : null;
        }
        function st(t3, n3, e3, r2, o2, s2, c2) {
          var f2, l2, h2, d2, v2, g2, b2, y2, w2, S2, T2, x2, A2, I2, k2, N2, j2 = [], D2 = [];
          if (!n3) return j2;
          if (e3 = e3 || 0, r2 = r2 || 0, c2) try {
            h2 = W(t3, n3, e3, r2, s2), (d2 = t3.Lp.evaluateExpression(t3.qgt, h2, { row: e3, col: r2 }, false, true)) && d2.$gt && (d2.$gt.forEach((function(t4) {
              D2.push(new i2.Range(t4.row, t4.col, t4.rowCount, t4.colCount));
            })), j2.push({ sheetName: d2.rT.getName(), ranges: D2 }));
          } catch (t4) {
          }
          else for (v2 = {}, g2 = new u.Parser(), b2 = a.Vgt(g2, n3, t3, e3, r2, m, o2, s2), y2 = 0; y2 < b2.length; y2++) if ((w2 = b2[y2].sheetRanges) && !p(w2)) for (S2 = 0; S2 < w2.sheets.length; S2++) for (T2 = w2.sheets[S2], (D2 = v2[T2]) || (v2[T2] = D2 = [], j2.push({ sheetName: T2, ranges: D2 })), x2 = w2[T2], A2 = 0; A2 < x2.length; A2++) I2 = x2[A2], C(I2) || (I2.dHr && (k2 = T2 === t3.name() ? t3 : null === (l2 = null === (f2 = t3.parent) || void 0 === f2 ? void 0 : f2.getSheetFromName) || void 0 === l2 ? void 0 : l2.call(f2, T2)) && (N2 = (0, u.GYr)(I2.dHr, I2.dHr, (function(n4, e4) {
            return t3.getValue(n4, e4);
          }), I2.row, I2.col, I2.row + I2.rowCount - 1, I2.col + I2.colCount - 1), M(N2) || (I2 = new i2.Range(N2.row, N2.col, N2.endRow - N2.row + 1, N2.endCol - N2.col + 1))), D2.push(new i2.Range(I2.row, I2.col, I2.rowCount, I2.colCount)));
          return j2;
        }
        function ct(t3, n3, e3, i3, r2) {
          var o2 = new u.Parser(), a2 = new G(g, !!r2, (0, u.eV)(n3, e3)), s2 = ft(o2, a2, t3, n3, e3, i3);
          return a2.L0(), s2;
        }
        function ft(t3, n3, e3, i3, r2, a2, u2) {
          var s2, c2, f2, l2, h2 = "";
          for (s2 = 0; s2 < e3.length; s2++) c2 = tt(e3[s2], i3, r2, a2), f2 = t3.unparse(n3, c2), h2 += s2 > 0 ? (l2 = u2 && o.Common.CultureManager.Fe().NumberFormat.listSeparator || ",") + " " + f2 : f2;
          return h2;
        }
        function lt(t3, n3, e3, i3, r2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, C2, S2, T2;
          if (s2 || (s2 = {}), c2 = s2.maximumIterations || 100, f2 = s2.tolerance || 1e-3, l2 = function(o2) {
            return t3.setValue(n3, e3, o2), i3.mL(r2, a2, m, m, { realValue: true });
          }, h2 = function(t4) {
            var n4 = (k(t4) ? +t4 : 0) - u2;
            return k(t4) && Math.abs(n4) < f2;
          }, t3.suspendPaint(), t3.suspendEvent(), d2 = i3.mL(n3, e3, m, m, { realValue: true }), w2 = false, C2 = 0.01, p2 = k(d2) ? +d2 : 0, v2 = i3.mL(r2, a2, m, m, { realValue: true }), b2 = (k(v2) ? +v2 : 0) - u2, k(v2) && Math.abs(b2) < f2) w2 = true;
          else if (M(v2)) w2 = false;
          else for (g2 = p2 + (0 === p2 ? C2 : C2 * p2), S2 = 0; !w2 && S2 < c2; S2++) v2 = l2(g2 = o.Common.st.E8(g2, 13)), y2 = (k(v2) ? +v2 : 0) - u2, k(v2) && Math.abs(y2) < f2 ? w2 = true : M(v2) ? g2 = (p2 + g2) / 2 : p2 - g2 === 0 ? g2 = p2 + (0 === p2 ? C2 : C2 * p2) : b2 - y2 === 0 ? g2 = p2 + 2 * (g2 - p2) : (T2 = g2 - y2 * (p2 - g2) / (b2 - y2), p2 = g2, b2 = y2, g2 = T2);
          return w2 || (w2 = ht(l2, h2, d2, u2)), w2 || t3.setValue(n3, e3, d2), t3.resumeEvent(), t3.resumePaint(), w2;
        }
        function ht(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2 = dt(t3, e3), c2 = s2.find, f2 = s2.left, l2 = s2.right;
          if (!c2) return false;
          for (r2 = 0; r2 < 100; ) {
            if (n3(a2 = t3(o2 = (f2 + l2) / 2))) return true;
            u2 = a2 - i3, (t3(f2) - i3) * u2 < 0 ? l2 = o2 : (t3(l2) - i3) * u2 < 0 && (f2 = o2), r2++;
          }
          return false;
        }
        function dt(t3, n3) {
          var e3, i3, r2 = -1e6, o2 = 1e6, a2 = 1e-5, u2 = n3;
          return k(t3(n3)) ? { find: true, left: e3 = vt(t3, r2, u2, a2), right: i3 = pt(t3, u2, o2, a2) } : { find: false, left: 0, right: 0 };
        }
        function vt(t3, n3, e3, i3) {
          for (var r2, o2 = 0; o2 < 100; ) {
            if (e3 - n3 <= i3) return e3;
            k(t3(r2 = (e3 + n3) / 2)) ? e3 = r2 : n3 = r2, o2++;
          }
        }
        function pt(t3, n3, e3, i3) {
          for (var r2, o2 = 0; o2 < 100; ) {
            if (e3 - n3 <= i3) return n3;
            k(t3(r2 = (e3 + n3) / 2)) ? n3 = r2 : e3 = r2, o2++;
          }
        }
        function gt(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2, h2;
          c2 = { type: "setRange", sheetArea: n3, row: e3, col: i3, data: { expr: r2 = null != r2 ? r2 : g, arrayInfo: a2 }, oldValue: { expr: o2 = null != o2 ? o2 : g, arrayInfo: u2 }, sheet: t3, context: s2 }, s2 && s2.triggerSource === l.ROW_COL_FORMULA_ADJUST_TRIGGER_SOURCE && s2.changedSource === s2.formulaSource && (f2 = s2.index, h2 = s2.count, s2.isAdd ? s2.isRow ? e3 >= f2 && (c2.originRow = e3 - h2) : i3 >= f2 && (c2.originCol = i3 - h2) : s2.isRow ? e3 >= f2 && (c2.originRow = e3 + h2) : i3 >= f2 && (c2.originCol = i3 + h2)), s2.isDefault ? t3.$Dr(Y(Y({}, c2), { setType: "defaultValue" })) : t3.$Dr(Y(Y({}, c2), { setType: "formula" }));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.OHr = n2.goalSeek = n2.RangeReferenceRelative = n2.Ibt = n2.rangesToFormula = n2.formulaToRanges = n2.formulaToRange = n2.isStructureReference = n2.rangeToFormulaWithStructReference = n2.rangeToFormula = n2.isValidExternalReference = n2.rangeToExpression = n2.xbt = n2.evaluateExpression = n2.evaluateExpressionAsync = n2.evaluateFormulaAsync = n2.evaluateFormula = n2.expressionToFormula = n2.formulaToExpression = n2.SpreadSource = n2.SheetSource = n2.SheetParserContext = n2.SheetRangeReference = n2.FormatterNameInfo = n2.NameInfo = n2.ReferenceStyle = void 0, i2 = e2("Core"), r = e2("Core"), o = e2("Common"), a = e2("./dist/plugins/sheetsCalc/parser-sheets.js"), u = e2("CalcEngine"), s = e2("./dist/plugins/sheetsCalc/calc.ns.js"), c = e2("./dist/plugins/sheetsCalc/calc-extra-save.js"), f = e2("./dist/plugins/sheetsCalc/dynamic-array.js"), l = e2("./dist/plugins/sheetsCalc/formulaOperatorAdjustor.js"), h = o.Common.lt, d = o.Common.zf, v = h.Dh, p = h._h, g = null, m = void 0, (b = ["v", "n", "s", "b", "d", "sn"])[11] = "an", y = u.Errors.Value, w = o.Formatter && o.Formatter.GeneralFormatter, M = u.Convert.BJ, C = h.ht, S = i2.mt.xr, T = i2.range_parser.jc, x = i2.mt.vo, A = i2.Util.addXLFNPrefix, I = o.Common.rbush, k = function(t3) {
          return u.Convert.q8(t3, true);
        }, N = i2.Range.prototype.contains, j = d.Gmt, D = "number", _ = i2.UsedRangeUtil.updateUsedRangeByData, O = "__hyperlink__", E = {}, (R = u.CalcSource.prototype).referenceToArray = function(t3, n3, e3, i3, r2, o2, a2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, b2, w2, M2, C2, S2, T2 = this, x2 = 1, A2 = 1, I2 = [], k2 = t3.getRangeCount();
          if (0 === k2) return I2.isError = true, I2;
          for (p2 = T2.getRowCount(), b2 = T2.getColumnCount(), e3 = e3 === m || e3, w2 = 0; w2 < k2; w2++) {
            if (e3 || (v2 = [], I2.push(v2)), 0 === (x2 = t3.getRowCount(w2))) return I2.isError = true, I2;
            if (0 === (A2 = t3.getColumnCount(w2))) return I2.isError = true, I2;
            if (l2 = t3.getRow(w2), h2 = t3.getColumn(w2), 2 !== e3) {
              if (l2 >= p2 || h2 >= b2) return (I2 = [g]).rowCount = 1, I2.colCount = 1, I2.rangeCount = 1, I2;
              h2 + A2 > b2 && (A2 = b2 - h2);
            }
            for (l2 + x2 > p2 && (x2 = p2 - l2), M2 = void 0, C2 = 0; C2 < x2; C2++) for (c2 = l2 + C2, e3 || (M2 = [], v2.push(M2)), S2 = 0; S2 < A2; S2++) {
              if (f2 = h2 + S2, d2 = T2.getValue(c2, f2), i3 && u.Convert.BJ(d2)) return (I2 = [d2]).isError = true, I2;
              if (d2 = u.Convert.Nbt(d2, n3, !u.ExcelCompatibleCalcMode, o2, s2), r2 && d2 === u.Convert.CalcConvertedError) return (I2 = [y]).isConvertError = true, I2;
              d2 === g && o2 || (2 === e3 ? I2[C2 * A2 + S2] = d2 : e3 ? I2.push(d2) : M2.push(d2));
            }
          }
          return e3 || 1 !== k2 || (I2 = I2[0]), I2.rowCount = x2, I2.colCount = A2, I2.rangeCount = k2, I2;
        }, R.getSheetReference = function() {
          var t3 = this;
          return t3.kbt = t3.kbt || new u.CalcReference(t3), t3.kbt;
        }, (function(t3) {
          t3[t3.a1 = 0] = "a1", t3[t3.r1c1 = 1] = "r1c1";
        })(L = n2.ReferenceStyle || (n2.ReferenceStyle = {})), r.ReferenceStyle = L, F = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2) {
            var u2 = this;
            u2.Zc = t4, u2.FY = e3, u2.jpt = i3, u2.WK = n3, C(r2) || (u2.TZ = r2), u2.Ale = "boolean" == typeof o2 && o2, u2.DJ = a2;
          }
          return t3.prototype.getName = function() {
            return this.Zc;
          }, t3.prototype.set = function(t4, n3, e3, i3, r2) {
            this.DJ.dBe(this.Zc, t4, n3, e3, i3, r2), this.TZ = r2;
          }, t3.prototype.btV = function(t4) {
            this.Zc = t4;
          }, t3.prototype.getRow = function() {
            return this.FY;
          }, t3.prototype.getColumn = function() {
            return this.jpt;
          }, t3.prototype.getExpression = function() {
            return this.WK;
          }, t3.prototype.getComment = function() {
            return this.TZ;
          }, t3.prototype.X_r = function(t4) {
            this.TZ = t4;
          }, t3.prototype.SB = function(t4, n3, e3, i3, r2) {
            n3 && n3.push({ type: "customName", nameInfo: this, expr: this.WK }), this.WK = t4, C(e3) || (this.FY = e3), C(i3) || (this.jpt = i3), (null == r2 ? void 0 : r2.ignoreModelChange) || this.DJ.q_r(this);
          }, t3.prototype.isReadOnly = function(t4) {
            return "boolean" == typeof t4 && (this.Ale = t4), this.Ale;
          }, t3;
        })(), n2.NameInfo = F, r.NameInfo = F, B = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2, u2) {
            var s2 = t3.call(this, n4, r2, o2, a2, u2) || this, c2 = s2;
            return c2.bbt = e3, c2.ybt = i3, s2;
          }
          return z(n3, t3), n3.prototype.getFormatter = function() {
            return this.bbt;
          }, n3.prototype.getSheetTabName = function() {
            return this.ybt;
          }, n3;
        })(F), n2.FormatterNameInfo = B, u.CalcSource.prototype.createSourceModel = function(t3) {
          return new u.CalcSourceModel(t3, this);
        }, P = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, g) || this;
            return e3.references = n4, e3;
          }
          return z(n3, t3), n3.prototype.toArray = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2 = this.references, s2 = [];
            for (o2 = 0; o2 < u2.length; o2++) {
              if ((a2 = u2[o2].rT.referenceToArray(u2[o2], t4, n4, e3, i3, r2)).isError && e3) return a2;
              n4 ? Array.prototype.push.apply(s2, a2) : s2.push(a2), o2 || (s2.rowCount = a2.rowCount, s2.colCount = a2.colCount);
            }
            return s2.rangeCount = u2.length, s2;
          }, n3;
        })(u.CalcReference), n2.SheetRangeReference = P, G = (function(t3) {
          function n3(e3, r2, o2, u2) {
            var s2, c2, f2, l2;
            for (void 0 === u2 && (u2 = {}), s2 = t3.call(this, e3 && e3.Uw(u2.sheetArea), r2, o2, u2) || this, e3 || (e3 = n3.wbt = n3.wbt || new i2.Worksheet(), s2.source || (s2.source = e3.Uw(u2.sheetArea))), s2.Mf = e3, s2.row = o2 && o2.row || 0, s2.column = o2 && o2.col || 0, f2 = (c2 = e3.getCalcService()).getResolvers(), l2 = 0; l2 < f2.length; l2++) if (f2[l2] instanceof a.SheetReferenceResolver) return s2;
            return c2.addResolver(new a.SheetReferenceResolver()), c2.addResolver(new a.StructureReferenceResolver()), s2;
          }
          return z(n3, t3), n3.prototype.getExternalSource = function(t4, n4) {
            var e3, i3, r2, o2 = this, a2 = o2.Mf.parent, s2 = o2.Mf.Uw();
            if (t4 && (!a2 || a2.name !== t4)) return g;
            if (!a2) return d.Dbt(o2.Mf.name(), n4) ? s2 : g;
            if (nt(n4)) return a2._p.parseSource(n4, s2.G3);
            if ((e3 = a2.sheets) && e3.length > 0) {
              for (i3 = 0; i3 < e3.length; i3++) if (r2 = e3[i3], d.Dbt(r2.name(), n4)) return r2.Uw();
            }
            return u.ParserContext.prototype.getExternalSource.call(this, t4, n4);
          }, n3.prototype.getExternalSourceToken = function(t4) {
            return t4.getName(this);
          }, n3.prototype.getTableByName = function(t4) {
            var n4, e3, i3 = this.Mf.tables, r2 = true, o2 = i3 ? i3._bt(t4, r2) : g;
            if (!o2 && (n4 = this.Mf.parent && this.Mf.parent.sheets)) for (e3 = 0; e3 < n4.length && (!(i3 = n4[e3].tables) || !(o2 = i3._bt(t4, r2))); e3++) ;
            return o2 || this.Mf.parent && this.Mf.parent.Ofe(t4);
          }, n3.prototype.getTableByIndex = function(t4, n4) {
            var e3 = this.Mf.tables;
            return e3 ? e3.Hq(t4, n4, true) : g;
          }, n3.prototype.setSource = function(t4) {
            this.source = t4;
            var n4 = t4;
            n4 && n4.getSheet && (this.Mf = n4.getSheet());
          }, n3.prototype.L0 = function() {
            this.Mf && this.Mf !== n3.wbt && this.Mf.L0(), this.Mf = g;
          }, n3;
        })(u.ParserContext), n2.SheetParserContext = G, U = (function() {
          function t3(t4) {
            this.Xur = t4, this.GOi();
          }
          return t3.prototype.Oy = function() {
            return 0 === this.qur.data.length;
          }, t3.prototype.GOi = function() {
            var t4, n3 = this, e3 = null === (t4 = this.Xur.Mf) || void 0 === t4 ? void 0 : t4.tables;
            this.qur = new I(), e3 && (e3.all().forEach((function(t5) {
              t5.$ur(n3.qur);
            })), this.Oy() && (this.qur = m)), this.rsr = true;
          }, t3.prototype.osr = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this, u2 = a2.qur;
            u2 && (E.minX = t4, E.minY = n3, E.maxX = t4 + e3 - 1, E.maxY = n3 + i3 - 1, (o2 = u2.search(E)).forEach((function(t5) {
              r2(t5.expr, t5.nodes);
            })));
          }, t3.prototype.o_t = function(t4, n3, e3, i3) {
            var r2, o2, a2;
            void 0 === e3 && (e3 = 1), void 0 === i3 && (i3 = 1), (o2 = (r2 = this).qur) && (E.minX = t4, E.minY = n3, E.maxX = t4 + e3 - 1, E.maxY = n3 + i3 - 1, (a2 = o2.search(E)).forEach((function(n4) {
              var i4, r3;
              n4.currentRow ? 1 === n4.nodes.size ? (r3 = n4.nodes.values().next().value).row >= t4 && t4 + e3 > r3.row && r3.vyt() : 1 === e3 ? n4.SUr ? null === (i4 = n4.SUr[t4]) || void 0 === i4 || i4.forEach((function(n5) {
                n5.row === t4 && n5.vyt();
              })) : (n4.SUr = {}, n4.nodes.forEach((function(i5) {
                i5.row >= t4 && t4 + e3 > i5.row && i5.vyt(), n4.SUr[i5.row] = n4.SUr[i5.row] || [], n4.SUr[i5.row].push(i5);
              }))) : n4.nodes.forEach((function(n5) {
                n5.row >= t4 && t4 + e3 > n5.row && n5.vyt();
              })) : n4.nodes.forEach((function(t5) {
                t5.vyt();
              }));
            })));
          }, t3.prototype.J_t = function(t4) {
            var n3, e3 = null === (n3 = this.Xur.Mf) || void 0 === n3 ? void 0 : n3.tables;
            this.qur && e3 && e3.all().forEach((function(n4) {
              var e4;
              null === (e4 = n4.aT) || void 0 === e4 || e4.forEach((function(n5) {
                n5.forEach((function(n6) {
                  n6 && n6.w3 && n6.w3 !== t4 && n6.vyt && n6.vyt();
                }));
              }));
            }));
          }, t3.prototype.a_t = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.qur;
            a2 && (i3 = e3 ? 1 : -1, E.minX = E.maxX = t4, E.minY = E.maxY = n3, (r2 = a2.search(E)).forEach((function(n4) {
              var e4, r3;
              n4.currentRow ? n4.SUr ? null === (e4 = n4.SUr[t4]) || void 0 === e4 || e4.forEach((function(n5) {
                n5.row === t4 && (n5.delay += i3);
              })) : 1 === n4.nodes.size ? (r3 = n4.nodes.values().next().value) && r3.row === t4 && (r3.delay += i3) : (n4.SUr = {}, n4.nodes.forEach((function(e5) {
                e5.row === t4 && (e5.delay += i3), n4.SUr[e5.row] = n4.SUr[e5.row] || [], n4.SUr[e5.row].push(e5);
              }))) : n4.nodes.forEach((function(t5) {
                t5.delay += i3;
              }));
            })));
          }, t3;
        })(), H = (function(t3) {
          function n3(e3, i3, r2) {
            var o2 = t3.call(this, r2) || this;
            return o2.getCalcSourceModel = function() {
              return this.Mbt;
            }, o2.getSheetRangeReference = function(t4) {
              var e4, i4, r3, o3, a2, u2 = this.Mf, s2 = u2 && u2.parent;
              if (t4.endSource && s2 && s2.sheets && t4.endSource instanceof n3) {
                for (e4 = s2.sheets, i4 = false, r3 = void 0, o3 = [], a2 = 0; a2 < e4.length; a2++) {
                  if ((r3 = e4[a2].Uw()) === this) i4 = true;
                  else if (r3 === t4.endSource) {
                    o3.push(r3.getReference(t4));
                    break;
                  }
                  i4 && o3.push(r3.getReference(t4));
                }
                return new P(o3);
              }
            }, o2.Mf = e3, o2.t8 = new f.Z8(o2), o2.nT = i3 || 3, o2;
          }
          return z(n3, t3), n3.prototype.getReferenceSheetNames = function() {
            return this.Ebt || {};
          }, n3.prototype.addReferenceSheetName = function(t4) {
            var n4 = this;
            n4.Ebt || (n4.Ebt = {}), n4.Ebt[t4] = 1;
          }, n3.prototype.setReferenceSheetNames = function(t4) {
            this.Ebt = t4;
          }, n3.prototype.createSourceModel = function(t4) {
            var n4 = this, e3 = new u.CalcSourceModel(t4, n4);
            return e3.usedRange = new i2.BaseUsedRange(), e3.b_r.addListener((function(t5) {
              n4.$Dr(t5);
            })), e3;
          }, n3.prototype.startCalculation = function() {
            this.jbt, this.Obt(), this.K5 = [];
          }, n3.prototype.endCalculation = function(t4) {
            this.jbt = g, this.Rbt = g, false !== t4 && this.Bbt(), this.K5 = g;
          }, n3.prototype.ggr = function(t4, n4) {
            t4 ? (this.mgr || (this.mgr = this.jbt, this.wgr = this.Rbt), this.startCalculation()) : (this.endCalculation(n4), this.jbt = this.mgr, this.mgr = null, this.Rbt = this.wgr, this.wgr = null);
          }, n3.prototype._F = function() {
            var t4 = this;
            t4.Fbt ? t4.K5 && (t4.Pbt = t4.Pbt.concat(t4.K5), t4.K5 = []) : (t4.Pbt = t4.K5 || [], t4.Fbt = setTimeout((function() {
              t4.Bbt(t4.Pbt), delete t4.Pbt, delete t4.Fbt;
            }), 0));
          }, n3.prototype.Bbt = function(t4) {
            var n4, e3, r2, o2, a2, u2 = t4 || this.K5;
            if (u2 && u2.length > 0) {
              if (a2 = null === (n4 = (o2 = this.Mf).Ut) || void 0 === n4 ? void 0 : n4.W_(3).B8, !o2.Ut || (null === (r2 = null === (e3 = o2.parent) || void 0 === e3 ? void 0 : e3.Lp) || void 0 === r2 ? void 0 : r2.lb)) return;
              o2.ki(i2.Events.RangeChanged, { isUndo: !C(a2 && a2.vE), sheet: o2, sheetName: o2.name(), row: 0, col: 0, rowCount: o2.getRowCount(), colCount: o2.getColumnCount(), changedCells: u2, action: 6 }, o2.QI);
            }
          }, n3.prototype.clearValueCache = function() {
            this.Obt();
          }, n3.prototype.Obt = function() {
            var t4 = this.getRowCount(), n4 = this.getColumnCount();
            this.jbt = { rowCount: t4, colCount: n4 }, this.Rbt = { arrayInfo: [] };
          }, n3.prototype.Gw = function() {
            this.jbt = g, this.Rbt = g, this.K5 = g;
          }, n3.prototype.getValue = function(t4, n4) {
            var e3, r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, w2, M2, C2 = [];
            for (e3 = 2; e3 < arguments.length; e3++) C2[e3 - 2] = arguments[e3];
            if (o2 = (r2 = this).Mf, typeof t4 === D) a2 = arguments[0], s2 = arguments[1], n4 = arguments[2], c2 = arguments[3];
            else if (t4.row !== m) a2 = t4.row, s2 = t4.col;
            else if (t4.name) return null;
            return f2 = r2.nT, n4 = n4 || 0, a2 < 0 || s2 < 0 ? y : o2.Gbt && o2.Ubt === a2 && o2.Hbt === s2 ? o2.zbt : (l2 = r2.jbt, h2 = b[n4], l2 ? (d2 = l2.rowCount, v2 = l2.colCount, p2 = void 0, w2 = void 0, M2 = void 0, a2 >= d2 || s2 >= v2 ? g : ((p2 = l2[a2]) || (p2 = l2[a2] = {}), (w2 = p2[s2]) || (w2 = p2[s2] = { v: c2 ? o2.getValueIgnoreDefault(a2, s2, f2, m, true) : r2.Mf.mL(a2, s2, f2, m, { realValue: true }) }), (M2 = w2[h2]) === m && (M2 = u.Convert.Nbt(w2.v, n4, !u.ExcelCompatibleCalcMode), w2[h2] = M2), M2 = i2.mt.V0(M2))) : a2 >= r2.getRowCount() || s2 >= r2.getColumnCount() ? g : c2 ? r2.Mf.getValueIgnoreDefault(a2, s2, f2, m, true) : r2.Mf.mL(a2, s2, f2, m, { realValue: true }));
          }, n3.prototype.getIdentity = function(t4, n4) {
            var e3 = this, i3 = n4.row, r2 = n4.rowCount || 1, o2 = n4.column, a2 = n4.columnCount || 1;
            return -1 === i3 && (i3 = 0, r2 = e3.getRowCount()), -1 === o2 && (o2 = 0, a2 = e3.getColumnCount()), e3.getName() + "." + i3 + "." + r2 + "." + o2 + "." + a2;
          }, n3.prototype.getReference = function(t4) {
            var n4 = this, e3 = t4.row, i3 = t4.col;
            return -1 === e3 && (t4.row = 0, t4.rowCount = n4.getRowCount(), t4.rowUndefine = true), -1 === i3 && (t4.col = 0, t4.colCount = n4.getColumnCount(), t4.colUndefine = true), new u.CalcReference(n4, [t4]);
          }, n3.prototype.getSources = function(t4) {
            var e3, i3, r2, o2, a2;
            if (this.Mf && this.Mf.parent && this.Mf.parent.sheets && t4 instanceof n3) {
              for (e3 = this.Mf.parent.sheets, i3 = false, r2 = void 0, o2 = [], a2 = 0; a2 < e3.length; a2++) {
                if ((r2 = e3[a2].Uw()) === this && (i3 = true), r2 === t4) {
                  o2.push(r2);
                  break;
                }
                i3 && o2.push(r2);
              }
              return o2;
            }
          }, n3.prototype.Vbt = function(t4, n4) {
            var e3, i3 = this, r2 = i3.Rbt, o2 = r2 && r2.arrayInfo;
            o2 && (e3 = false, o2.forEach((function(i4, a2) {
              if (i4) {
                var u2 = i4.reference, s2 = i4.key;
                N.call(u2.$gt[0], t4, n4) && (delete r2[s2], o2[a2] = m, e3 = true);
              }
            })), e3 && (r2.arrayInfo = [], o2.forEach((function(t5) {
              t5 && r2.arrayInfo.push(t5);
            }))));
          }, n3.prototype.referenceToArray = function(t4, n4, e3, i3, r2, o2, a2, s2) {
            var c2, f2, l2, d2, v2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2;
            if (n4 = n4 || 0, d2 = 1, v2 = 1, T2 = [], I2 = (c2 = this).Mf, k2 = c2.jbt, N2 = c2.Rbt, _2 = b[n4], 0 === (S2 = t4.getRangeCount())) return T2.isError = true, T2;
            if (N2 && (x2 = N2[D2 = t4.getRangeCount() + "_" + t4.getRow(0) + "_" + t4.getColumn(0) + "_" + t4.getRowCount(0) + "_" + t4.getColumnCount(0) + "_" + n4 + "_" + e3])) return x2;
            for (O2 = this.getRowCount(), E2 = this.getColumnCount(), e3 = e3 === m || e3, R2 = 0; R2 < S2; R2++) {
              if (e3 || (A2 = [], T2.push(A2)), 0 === (d2 = t4.getRowCount(R2))) return T2.isError = true, T2;
              if (0 === (v2 = t4.getColumnCount(R2))) return T2.isError = true, T2;
              if (M2 = t4.getRow(R2), C2 = t4.getColumn(R2), 2 !== e3) {
                if (M2 >= O2 || C2 >= E2) return (T2 = e3 ? [g] : [[g]]).rowCount = 1, T2.colCount = 1, T2.rangeCount = 1, T2;
                C2 + v2 > E2 && (v2 = E2 - C2);
              }
              for (M2 + d2 > O2 && (d2 = O2 - M2), L2 = void 0, F2 = void 0, B2 = I2.Gbt, P2 = 0; P2 < d2; P2++) for (f2 = M2 + P2, e3 || (L2 = [], A2.push(L2)), k2 && (k2[f2] || (k2[f2] = {}), j2 = k2[f2]), G2 = 0; G2 < v2; G2++) {
                if (l2 = C2 + G2, B2 && I2.Ubt === f2 && I2.Hbt === l2) x2 = I2.zbt, B2 = false;
                else {
                  if (k2 ? (F2 = j2[l2]) ? x2 = F2.v : (x2 = I2.mL(f2, l2, c2.nT, m, { realValue: true }), F2 = j2[l2] = { v: x2 }) : x2 = I2.mL(f2, l2, c2.nT, m, { realValue: true }), a2 && (H2 = void 0, "@" === (H2 = (U2 = I2.getFormatter()) instanceof w ? U2.formatString() : U2) ? x2 = I2.getText(f2, l2) : x2 instanceof Date && (x2 = h.uJ(x2)), p(F2) || (F2 = j2[l2] = { v: x2 })), i3 && u.Convert.BJ(x2)) return (T2 = [x2]).isError = true, T2;
                  if (x2 || 0 === n4 || !o2 && !s2 || (F2 = null), F2 && F2[_2] !== m) x2 = F2[_2];
                  else {
                    if (x2 = u.Convert.Nbt(x2, n4, !u.ExcelCompatibleCalcMode, o2, s2), r2 && u.Convert.CalcConvertedError === x2) return (T2 = [y]).isConvertError = true, T2;
                    F2 && (F2[_2] = x2);
                  }
                }
                u.Convert.Ybt(x2, o2) || (2 === e3 ? T2[P2 * v2 + G2] = x2 : e3 ? T2.push(x2) : L2.push(x2));
              }
            }
            return e3 || 1 !== S2 || (T2 = T2[0]), T2.rowCount = d2, T2.kbt = t4, T2.colCount = v2, T2.rangeCount = S2, N2 && (t4.Zbt && N2.arrayInfo.length < 200 || !isNaN(S2) && !isNaN(d2) && !isNaN(v2) && S2 * d2 * v2 > 100 && S2 * d2 * v2 < 1e6 && N2.arrayInfo.length < 50) && (N2[D2] = T2, N2[D2].rowCount = d2, N2[D2].colCount = v2, N2[D2].rangeCount = S2, N2.arrayInfo.push({ reference: t4, key: D2 })), T2;
          }, n3.prototype.getColumnCount = function() {
            var t4 = this.Mf;
            return t4.xT ? 0 : t4.getColumnCount(this.nT);
          }, n3.prototype.getRowCount = function() {
            var t4 = this.Mf;
            return t4.xT ? 0 : t4.getRowCount(this.nT);
          }, n3.prototype.isHiddenRow = function(t4, n4) {
            var e3 = this.Mf, i3;
            return !((!e3.iA || !e3.iA()) && n4) && 0 === e3.getRowHeight(t4);
          }, n3.prototype.getName = function() {
            var t4 = this.nT, n4 = C(this.Wbt) ? this.Mf.name() : this.Wbt;
            return t4 === i2.SheetArea.colHeader ? n4 + "CH" : t4 === i2.SheetArea.rowHeader ? n4 + "RH" : n4;
          }, n3.prototype.setArray = function(t4, n4, e3, i3, r2) {
            return this.t8.setArray(t4, n4, e3, i3, r2);
          }, n3.prototype.updateItem = function(t4, n4, e3) {
            return this.t8.updateItem(this, t4, n4);
          }, n3.prototype.HE = function(t4, n4) {
            this.t8.HE(t4, n4);
          }, n3.prototype.setValue = function(t4, n4, e3, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, p2, g2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2 = this, E2 = _2.Mf, R2 = _2.nT;
            s2 = s2 === m ? r.CalcSetValueTrigger.calc : s2, (c2 = _2.jbt) && (l2 = c2[t4]) && (h2 = l2[n4]) && (!C(e3) && C(e3[O]) ? (h2.v = e3, f2 = true, h2.b !== m && (h2.b = m), h2.d !== m && (h2.d = m), h2.n !== m && (h2.n = m), h2.s !== m && (h2.s = m), h2.sn = m, h2.an = m) : delete l2[n4]), d2 = i2.mt.Z0(e3), p2 = E2.Ut, g2 = false, y2 = (b2 = E2.tables) && b2.find(t4, n4), 3 === R2 && y2 && (w2 = y2.showHeader() && t4 === y2.headerIndex(), M2 = y2.showFooter() && t4 === y2.footerIndex(), w2 || M2 || (g2 = y2.Kbt(t4, n4, d2))), S2 = E2.H3, 3 === R2 && !g2 && S2 && S2._dataSource && (x2 = false, (T2 = S2.getValue(t4, n4)).hasBinding && (A2 = void 0, c2 ? (A2 = (I2 = c2.bindingRows = c2.bindingRows || {})[t4]) || (A2 = I2[t4] = v({}, E2.getDataItem(t4))) : A2 = v({}, E2.getDataItem(t4)), p2.dE(t4, n4, { gE: A2, d6: T2.value }), x2 = S2.setValue(t4, n4, d2, p2.G8)), g2 = "dataManagerBindingSource" === S2.K$ ? x2 : T2.hasBinding), k2 = E2.pivotTables, 3 === R2 && !g2 && k2 && (g2 = k2.eJt(t4, n4, d2)), _2.j5e && !u2 && f2 ? (D2 = R2 + " " + t4 + " " + n4, _2.j5e[D2] = [t4, n4, R2, d2]) : (g2 || (!C(d2) && d2[O] && (j2 = { url: N2 = d2[O] }, p2.setHyperlink && p2.do("setHyperlink", t4, n4, j2), d2 = d2.valueOf ? d2.valueOf() : d2.toString()), p2.do("setValue", t4, n4, d2, R2, true, true, a2, true, s2)), E2.iL = true, this.K5 ? this.K5.push({ row: t4, col: n4, sheetArea: R2 }) : E2.ki(i2.Events.CellChanged, { sheet: E2, sheetName: E2.name(), row: t4, col: n4, sheetArea: R2, propertyName: "value", oldValue: o2, newValue: e3, KO: true }));
          }, n3.prototype.startIterativeCalc = function() {
            this.j5e = {};
          }, n3.prototype.endIterativeCalc = function() {
            var t4, n4, e3, o2, a2, u2, s2, c2, f2 = this, l2 = f2.Mf, h2 = l2.Ut;
            for (t4 in f2.j5e) Object.prototype.hasOwnProperty.call(f2.j5e, t4) && (e3 = (n4 = f2.j5e[t4])[3], o2 = n4[0], a2 = n4[1], u2 = n4[2], !C(e3) && e3[O] && (c2 = { url: s2 = e3[O] }, h2.setHyperlink && h2.do("setHyperlink", o2, a2, c2), e3 = e3.valueOf ? e3.valueOf() : e3.toString()), h2.do("setValue", o2, a2, e3, u2, true, true, false, true, r.CalcSetValueTrigger.calc), l2.iL = true, this.K5 ? this.K5.push({ row: o2, col: a2, sheetArea: u2 }) : l2.ki(i2.Events.CellChanged, { sheet: l2, sheetName: l2.name(), row: o2, col: a2, sheetArea: u2, propertyName: "value", KO: true }));
            delete f2.j5e;
          }, n3.prototype.getCustomFunction = function(t4) {
            return this.Mf ? this.Mf.Jbt(t4) : g;
          }, n3.prototype.getCustomName = function(t4) {
            var n4 = this.getCustomNameInfo(t4);
            return n4 ? n4.getExpression() : g;
          }, n3.prototype.getCustomNameInfo = function(t4) {
            return t4 = j(t4), this.Mf ? this.Mf.getCustomName(t4) : g;
          }, n3.prototype.getSheet = function() {
            return this.Mf;
          }, n3.prototype.setFormula = function(t4, n4, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2 = this;
            if (l2.Mf.Ut.G8 && (u2 = l2.Mf.Ut.G8.formulas, a2 = l2.getCalcSourceModel(), u2 || (u2 = l2.Mf.Ut.G8.formulas = {}), t4 >= -1 && n4 >= -1)) {
              if ((s2 = l2.getCalcService()).backupR1C1Formula && (c2 = l2.Mbt.pB(t4, n4), e3 = Q(l2.Mf, c2, t4, n4, true, false)), !i3 && s2.allowDynamicArray && (i3 = l2.Mbt.sT(t4, n4)), (o2 = u2[t4]) || (o2 = u2[t4] = {}), e3 && "=" === e3[0] && (e3 = e3.substring(1)), f2 = o2[n4] && o2[n4].formula, r2) return void (o2[n4] && void 0 !== o2[n4].oldFormula || (i3 = v({}, i3), o2[n4] = v({}, o2[n4], { oldFormula: e3, oldArrayInfo: i3 }), e3 || delete o2[n4].oldArrayInfo));
              o2[n4] = v({}, o2[n4], { formula: e3, arrayInfo: i3 }), e3 || delete o2[n4].arrayInfo, a2.usedRange && _(a2.usedRange, t4, n4, f2, e3);
            }
          }, n3.prototype.isFormulaHidden = function(t4, n4) {
            var e3, i3, r2, o2 = this, a2 = o2.getCalcSourceModel().getFormula(t4, n4);
            return !!(a2 && (e3 = o2.Mf) && (i3 = e3.isActualProtected()) && (r2 = e3.l0(t4, n4, "hidden")));
          }, n3.prototype.setArrayFormula = function(t4, n4, e3, i3, r2) {
            var o2 = { row: t4, col: n4, rowCount: e3, colCount: i3 };
            this.setFormula(t4, n4, r2, o2);
          }, n3.prototype.setFormulaByName = function(t4, n4, e3) {
            var i3, r2, o2 = this;
            o2.Mf.Ut.G8 && ((i3 = o2.Mf.Ut.G8.formulas) || (i3 = o2.Mf.Ut.G8.formulas = {}), (r2 = i3.names) || (r2 = i3.names = {}), r2[t4] = v({}, r2[t4], { formula: n4, oldFormula: e3 }));
          }, n3.prototype.refresh = function() {
            var t4 = this.Mf.parent;
            t4 && t4.repaint();
          }, n3.prototype.toJSON = function(t4, n4, e3, i3, r2, o2) {
            var a2, s2, c2, f2, l2, h2, d2, v2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = n4, E2 = this.Mf, R2 = t4.data || {}, L2 = true, F2 = this.op(), B2 = this === E2.qgt, P2 = 0;
            for (B2 && (h2 = (0, u.createMap)(), d2 = {}, E2.Xbt = d2), v2 = F2.forceR1C1Formula && !E2.isReportTemplateSheet, g2 = 0; g2 <= e3; g2++) if (a2 = R2.dataTable || {}, s2 = O2[g2]) {
              for (L2 = !(f2 = a2[g2]), f2 = f2 || {}, b2 = 0; b2 <= i3; b2++) if (y2 = (c2 = s2[b2]) && c2.WK, w2 = c2 && c2.calc && c2.calc.isDefault(), M2 = false === (null == o2 ? void 0 : o2.Moo), c2 && !w2 && (y2 || c2.qbt)) {
                l2 = f2[b2] || {};
                try {
                  C2 = void 0, S2 = void 0, B2 && y2 && !c2.$bt && !M2 && (T2 = y2.tyt = y2.tyt || F2.unparse(this, y2, g2, b2, m, 2)).indexOf("!") < 0 && (!(x2 = h2.get(T2)) || x2.baseColumn > b2 ? v2 ? (S2 = T2, h2.set(T2, { formula: S2, baseRow: g2, baseColumn: b2 })) : (S2 = F2.unparse(this, c2.WK, g2, b2, false, true)).indexOf("[") < 0 && h2.set(T2, { formula: S2, baseRow: g2, baseColumn: b2 }) : (C2 = x2.obj) ? ((I2 = d2[C2.si]).lastRow = g2, I2.lastColumn = Math.max(b2, I2.lastColumn)) : (C2 = x2.obj = { si: P2 }, d2[P2] = { formula: x2.formula, baseRow: x2.baseRow, baseColumn: x2.baseColumn, lastRow: g2, lastColumn: b2 }, (A2 = g2 === x2.baseRow ? f2 : a2[x2.baseRow])[x2.baseColumn].formula = x2.obj, P2++)), S2 = c2.qbt || C2 || S2 || F2.unparse(this, y2, g2, b2, false, v2 ? 2 : 1), c2.$bt ? c2.$bt.row === g2 && c2.$bt.col === b2 && (l2.arrayInfo = c2.$bt, l2.formula = S2) : l2.formula = S2, L2 = false, f2[b2] = l2;
                } catch (t5) {
                }
              }
              if (L2) {
                if (a2 !== R2.dataTable) continue;
              } else a2[g2] = f2;
              R2.dataTable = a2;
            }
            if (d2 && (d2.nextIndex = P2), r2) {
              for (k2 = R2.columnDataArray || [], N2 = 0; N2 < r2.length; N2++) (j2 = r2[N2]) && j2.WK && (D2 = this.op().unparse(this, j2.WK, 0, N2, false, true), (_2 = k2[N2] || {}).formula = D2, k2[N2] = _2);
              k2.length > 0 && (R2.columnDataArray = k2);
            }
            p(R2) || (t4.data = R2);
          }, n3.prototype.asr = function() {
            return this.usr = this.usr || new U(this), this.usr.rsr || this.usr.GOi(), this.usr;
          }, n3.prototype.ssr = function() {
            this.usr && (this.usr.rsr = false);
          }, n3.prototype.wh = function(t4, n4, e3, r2, o2, a2) {
            var s2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2 = S(t4, i2.XFileConstants.bo), q2 = this.op();
            for (q2.nyt = true, d2 = i2.Util.ko(a2), y2 = 0, (p2 = this === (v2 = this.Mf).qgt) && (g2 = (0, u.createMap)(), b2 = {}, v2.Xbt = b2), w2 = t4.lossless.exprs = [], M2 = d2 && (null == a2 ? void 0 : a2.saveR1C1Formula) && !v2.isReportTemplateSheet, I2 = !d2 && false === (null == a2 ? void 0 : a2.exportSharedFormula), k2 = [], t4.richValueDataArray = [], N2 = 0; N2 <= e3; N2++) if (s2 = n4[N2], l2 = X2[N2], s2) {
              for (l2 || (l2 = X2[N2] = {}), j2 = 0; j2 <= r2; j2++) if (f2 = s2[j2], h2 = l2[j2], D2 = f2 && f2.WK, _2 = [], O2 = false, E2 = f2 && f2.calc && f2.calc.isDefault(), f2 && !E2 && D2) {
                h2 || (h2 = {}), d2 || 7 !== D2.type || "IMAGE" !== D2.functionName || (O2 = true, (R2 = D2.arguments).length > 3 && (_2 = D2.arguments.splice(5)));
                try {
                  L2 = void 0, F2 = void 0, B2 = void 0, P2 = -1, (G2 = f2.$bt) || (U2 = this.t8.Hme(N2, j2)) && (G2 = { row: N2, rowCount: U2.maxX - N2 + 1, col: j2, colCount: U2.maxY - j2 + 1, isDynamicArray: true }, U2.isValid || (G2.isInvalid = true)), !p2 || G2 || I2 || (H2 = D2.tyt = D2.tyt || q2.unparse(this, D2, N2, j2, m, 2), (d2 || H2.indexOf("!") < 0) && (!(V2 = g2.get(H2)) || V2.baseColumn > j2 ? M2 ? (F2 = H2, g2.set(H2, { formula: F2, baseRow: N2, baseColumn: j2 })) : (F2 = q2.unparse(this, D2, N2, j2, m, 1)).indexOf("[") < 0 && g2.set(H2, { formula: F2, baseRow: N2, baseColumn: j2 }) : ((L2 = V2.obj) ? ((z2 = b2[L2.si]).lastRow = N2, z2.lastColumn = Math.max(j2, z2.lastColumn)) : (L2 = V2.obj = { si: y2 }, b2[y2] = { formula: V2.formula, baseRow: V2.baseRow, baseColumn: V2.baseColumn, lastRow: N2, lastColumn: j2 }, y2++), B2 = L2.si, F2 = void 0))), C(B2) && (F2 = f2.qbt || F2 || q2.unparse(this, D2, N2, j2, false, M2 ? 2 : 1), a2 && a2.includeCalcModelCache && (Y2 = (0, c.exprToJSON)(D2), f2.eyt || (Y2.nw = 1), w2.push(Y2), P2 = w2.length - 1), F2 = x(A(F2))), G2 ? (G2.row === N2 && G2.col === j2 && (Z2 = T(G2), (G2.isInvalid || !G2.rowCount) && Z2.indexOf(":") > 0 && (Z2 = Z2.substring(0, Z2.indexOf(":"))), h2.f = F2, h2.r = Z2), G2.isDynamicArray && (h2.a = "1", G2.isInvalid || a2.fileType !== i2.OpenSaveFileType.excel || k2.push(G2))) : (h2.f = F2, h2.g = B2, h2.c = 1, O2 && (W2 = h2.v && h2.v.value.imageBase64Data, C(W2) || (Q2 = { url: D2.arguments[0] && D2.arguments[0].value, ref: i2.IndexHelper.nr(j2) + (N2 + 1), f: F2, structureMap: {} }, D2.arguments[1] && !C(D2.arguments[1].value) && (Q2.structureMap.a = D2.arguments[1].value), D2.arguments[2] && !C(D2.arguments[2].value) && (Q2.structureMap.s = D2.arguments[2].value), D2.arguments[3] && !C(D2.arguments[3].value) && (Q2.structureMap.h = D2.arguments[3].value), D2.arguments[4] && !C(D2.arguments[4].value) && (Q2.structureMap.w = D2.arguments[4].value), Q2.imageBase64Data = W2, t4.richValueDataArray.push(Q2)), h2.v = "#VALUE!", h2.t = "e")), -1 !== P2 && (h2.x = P2);
                } catch (t5) {
                }
                O2 && _2.length > 0 && (D2.arguments = D2.arguments.concat(_2)), l2[j2] = h2;
              }
            }
            for (K2 in b2) Object.prototype.hasOwnProperty.call(b2, K2) && (J2 = b2[K2], Z2 = T(new i2.Range(J2.baseRow, J2.baseColumn, J2.lastRow - J2.baseRow + 1, J2.lastColumn - J2.baseColumn + 1)), (h2 = X2[J2.baseRow][J2.baseColumn]).r = Z2, h2.g = parseInt(K2, 10));
            k2.forEach((function(t5) {
              var n5, e4;
              for (n5 = t5.row; n5 < t5.row + t5.rowCount; n5++) for (e4 = t5.col; e4 < t5.col + t5.colCount; e4++) (h2 = X2[n5] && X2[n5][e4]) && (h2.t2 = true);
            })), delete q2.nyt;
          }, n3.prototype.$Dr = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.node, f2 = t4.row, l2 = t4.col, h2 = t4.context, d2 = null !== (n4 = null == h2 ? void 0 : h2.isDefault) && void 0 !== n4 ? n4 : null === (i3 = null === (e3 = c2.calc) || void 0 === e3 ? void 0 : e3.isDefault) || void 0 === i3 ? void 0 : i3.call(e3), v2 = null !== (r2 = null == h2 ? void 0 : h2.oldIsDefault) && void 0 !== r2 ? r2 : null === (a2 = null === (o2 = c2.calc) || void 0 === o2 ? void 0 : o2.isDefault) || void 0 === a2 ? void 0 : a2.call(o2), p2 = s2.Mf, m2 = s2.nT, b2 = t4.expr, y2 = t4.oldExpr, w2 = t4.arrayInfo, M2 = t4.oldArrayInfo;
            d2 || (u2 = s2.getCalcService(), d2 || w2 || !u2.allowDynamicArray || (w2 = s2.Mbt.sT(f2, l2)), d2 !== v2 && (y2 = M2 = g), gt(p2, m2, f2, l2, b2, y2, w2, M2, Y(Y({}, h2), { isDefault: d2, oldIsDefault: v2 })));
          }, n3;
        })(u.CalcSource), n2.SheetSource = H, H.prototype.getParserContext = function(t3, n3, e3) {
          return n3 = n3 || (0, u.eV)(0, 0), new G(this.Mf, t3, n3, e3);
        }, V = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this, g) || this;
            return e3.createSourceModel = function(t4) {
              return new u.CalcSourceModel(t4, this);
            }, e3.vpt = n4, e3.Cbt = {}, e3;
          }
          return z(n3, t3), n3.prototype.addUsedCustomName = function(t4) {
            this.Cbt[t4] = 1;
          }, n3.prototype.getUsedCustomNames = function() {
            return this.Cbt || {};
          }, n3.prototype.getCustomFunction = function(t4) {
            return this.vpt ? this.vpt.getCustomFunction(t4) : g;
          }, n3.prototype.getCustomName = function(t4) {
            var n4 = this.getCustomNameInfo(t4);
            return n4 ? n4.getExpression() : g;
          }, n3.prototype.getCustomNameInfo = function(t4) {
            return this.vpt ? this.vpt.getCustomName(t4) || this.vpt.xO(t4) : g;
          }, n3;
        })(u.CalcSource), n2.SpreadSource = V, n2.formulaToExpression = W, n2.expressionToFormula = Q, n2.evaluateFormula = K, n2.evaluateFormulaAsync = J, n2.evaluateExpressionAsync = X, n2.evaluateExpression = q, n2.xbt = $, n2.rangeToExpression = tt, n2.isValidExternalReference = nt, n2.rangeToFormula = rt, n2.rangeToFormulaWithStructReference = ot, n2.isStructureReference = at, n2.formulaToRange = ut, n2.formulaToRanges = st, n2.rangesToFormula = ct, n2.Ibt = ft, n2.RangeReferenceRelative = { allAbsolute: 0, startRowRelative: 1, startColRelative: 2, endRowRelative: 4, endColRelative: 8, rowRelative: 5, colRelative: 10, allRelative: 15 }, n2.goalSeek = lt, n2.OHr = gt;
      }, "./dist/plugins/sheetsCalc/calc.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.MAX_COLUMN_COUNT = n2.MAX_ROW_COUNT = n2.BAND_INDEX_CONST = void 0;
        var i2 = e2("Core");
        n2.BAND_INDEX_CONST = -2147483648, n2.MAX_ROW_COUNT = i2.XmlConstants.Io, n2.MAX_COLUMN_COUNT = i2.XmlConstants.xo;
      }, "./dist/plugins/sheetsCalc/dynamic-array.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3) {
          return t3.isValid;
        }
        function v(t3) {
          return { row: t3.minX, col: t3.minY, rowCount: t3.maxX - t3.minX + 1, colCount: t3.maxY - t3.minY + 1, isValid: t3.isValid };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Z8 = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("CalcEngine"), u = null, s = void 0, c = r.Common.lt.ht, f = Math.min, l = Math.max, h = (function() {
          function t3(t4) {
            this.zme = new r.Common.rbush(), this.rT = t4;
          }
          return t3.prototype.Vme = function() {
            return this.rT.Mf.Ut;
          }, t3.prototype.L0 = function() {
            this.rT = u, this.zme = u;
          }, t3.prototype.Ume = function(t4) {
            var n3, e3, i3, r2, o2 = this.zme.data;
            if (t4) {
              if (null == (n3 = this.Rme(t4.row, t4.col, t4.rowCount, t4.colCount)) ? void 0 : n3.length) {
                for (i3 = { minRow: (e3 = n3[0]).minX, minCol: e3.minY, maxRow: e3.maxX, maxCol: e3.maxY }, e3.isValid || (i3.maxRow = e3.minX, i3.maxCol = e3.minY), r2 = 1; r2 < n3.length; r2++) e3 = n3[r2], i3.minRow = c(i3.minRow) ? e3.minX : f(i3.minRow, e3.minX), i3.minCol = c(i3.minCol) ? e3.minY : f(i3.minCol, e3.minY), e3.isValid && (i3.maxRow = c(i3.maxRow) ? e3.maxX : l(i3.maxRow, e3.maxX), i3.maxCol = c(i3.maxCol) ? e3.maxY : l(i3.maxCol, e3.maxY));
                return i3.minRow = l(i3.minRow, t4.row), i3.minCol = l(i3.minCol, t4.col), i3.maxRow = f(i3.maxRow, t4.row + t4.rowCount - 1), i3.maxCol = f(i3.maxCol, t4.col + t4.colCount - 1), i3;
              }
            } else if (o2 && isFinite(o2.minX)) return { minRow: o2.minX, minCol: o2.minY, maxRow: o2.maxX, maxCol: o2.maxY };
          }, t3.prototype.Rme = function(t4, n3, e3, i3) {
            return void 0 === e3 && (e3 = 1), void 0 === i3 && (i3 = 1), this.zme.search({ minX: t4, minY: n3, maxX: t4 + e3 - 1, maxY: n3 + i3 - 1 });
          }, t3.prototype.Hme = function(t4, n3) {
            return this.Rme(t4, n3).filter((function(e3) {
              return e3.minX === t4 && e3.minY === n3;
            }))[0];
          }, t3.prototype.Yme = function(t4, n3) {
            return this.Rme(t4, n3).filter(d)[0];
          }, t3.prototype.Zme = function() {
            var t4, n3 = this.Vme();
            return n3.G8 ? (n3.G8.calc = n3.G8.calc || [], (t4 = n3.G8.calc).Wme = t4.Wme || [], t4.Wme) : [];
          }, t3.prototype.Fgt = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this;
            void 0 === e3 && (e3 = 1), void 0 === i3 && (i3 = 1), r2 = this.Rme(t4, n3, e3, i3), o2 = this, a2 = r2.filter((function(r3) {
              return r3.minX >= t4 && r3.minX < t4 + e3 && r3.minY >= n3 && r3.minY < n3 + i3;
            })), u2 = this.b3(), a2.forEach((function(t5) {
              t5.isValid && u2.gF(t5.minX, t5.minY, t5.maxX - t5.minX + 1, t5.maxY - t5.minY + 1), o2.Fme(t5), o2.Pme(t5, true);
            })), r2.filter(d).forEach((function(t5) {
              o2.Fme(t5), r2 = r2.concat(s2.Rme(t5.minX, t5.minY, t5.maxX - t5.minX + 1, t5.maxY - t5.minY + 1));
            })), r2.forEach((function(t5) {
              t5.isValid || (o2.Qme(t5.minX, t5.minY, t5.maxX - t5.minX + 1, t5.maxY - t5.minY + 1) ? u2.gF(t5.minX, t5.minY, t5.maxX - t5.minX + 1, t5.maxY - t5.minY + 1) : u2.gF(t5.minX, t5.minY, 1, 1));
            }));
          }, t3.prototype.getAnchorCell = function(t4, n3) {
            var e3 = this.Rme(t4, n3).filter((function(e4) {
              return e4.minX === t4 && e4.minY === n3;
            }))[0];
            return e3 && v(e3);
          }, t3.prototype.getAnchorInfo = function(t4, n3, e3) {
            var i3 = this.Rme(t4, n3), r2 = i3.filter((function(e4) {
              return e4.minX === t4 && e4.minY === n3;
            }))[0] || i3.filter(d)[0];
            return r2 && v(r2);
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2) {
            i3 ? this.Vme().setValue(t4, n3, e3, 3, true, true, false, false, r2) : this.pBt().setValue(t4, n3, e3, s, s, s, r2);
          }, t3.prototype.b3 = function() {
            return this.rT.Mbt;
          }, t3.prototype.pBt = function() {
            return this.rT;
          }, t3.prototype.Fme = function(t4, n3, e3, r2) {
            var o2, u2;
            if (t4) {
              if (t4.isValid) {
                for (o2 = t4.minX; o2 <= t4.maxX; o2++) for (u2 = t4.minY + (o2 === t4.minX ? 1 : 0); u2 <= t4.maxY; u2++) this.setValue(o2, u2, s, e3, i2.CalcSetValueTrigger.clear);
                t4.isValid = false, e3 && this.Zme().push([t4, "isValid", true]), n3 || this.setValue(t4.minX, t4.minY, a.Errors.Spill, e3, i2.CalcSetValueTrigger.clear);
              }
              n3 && (this.Pme(t4, e3), !r2 && this.setValue(t4.minX, t4.minY, s, e3, i2.CalcSetValueTrigger.clear));
            }
          }, t3.prototype.Pme = function(t4, n3) {
            this.zme.remove(t4), n3 && this.Zme().push([t4]);
          }, t3.prototype.removeAnchor = function(t4, n3) {
            var e3, i3, r2 = this.Rme(t4, n3);
            for (e3 = 0; e3 < r2.length; e3++) (i3 = r2[e3]).minX === t4 && i3.minY === n3 && this.Pme(i3, true);
          }, t3.prototype.Gme = function(t4, n3) {
            this.zme.insert(t4), n3 && this.Zme().push([s, t4]);
          }, t3.prototype.HE = function(t4, n3) {
            this.Hme(t4, n3).isValid = false;
          }, t3.prototype.Qme = function(t4, n3, e3, r2, a2) {
            var u2, f2, l2, h2, d2, v2, p, g, m = this.zme.search({ minX: t4, minY: n3, maxX: t4 + e3 - 1, maxY: n3 + r2 - 1 }), b = this.pBt(), y = this.b3();
            for (u2 = 0; u2 < m.length; u2++) if ((f2 = m[u2]).isValid && (f2.minX !== t4 || f2.minY !== n3)) return false;
            if (n3 + r2 > b.getColumnCount() || t4 + e3 > b.getRowCount()) return false;
            if (l2 = (0, i2.Ec)(t4, n3, e3, r2), (h2 = b.Mf).Ut.getSpans(l2).length) return false;
            if (d2 = h2.tables, o.ExcelCompatibleCalcMode && d2 && d2.Pl && d2.Pl(t4, n3, e3, r2)) return false;
            for (v2 = t4; v2 < t4 + e3; v2++) for (p = n3 + (v2 !== t4 || a2 ? 0 : 1); p < n3 + r2; p++) if (g = b.getValue(v2, p, s, true), !c(g) || y.hasFormula(v2, p, true)) return false;
            return true;
          }, t3.prototype.xji = function(t4, n3, e3, i3, r2) {
            void 0 === e3 && (e3 = 1), void 0 === i3 && (i3 = 1);
            var o2 = { minX: t4, minY: n3, maxX: t4 + e3 - 1, maxY: n3 + i3 - 1, isValid: r2 };
            this.zme.insert(o2);
          }, t3.prototype.setArray = function(t4, n3, e3, i3, r2, u2, s2) {
            var f2, l2, h2, d2, v2, p, g = this, m = null === (f2 = g.rT) || void 0 === f2 ? void 0 : f2.Mf;
            if (!(null === (l2 = null == m ? void 0 : m.Ezr) || void 0 === l2 ? void 0 : l2.call(m))) {
              if ((h2 = this.Hme(t4, n3)) && h2.maxX === t4 + e3 - 1 && h2.maxY === n3 + i3 - 1 && h2.isValid || (g.Fme(h2, true, s2), h2 = { minX: t4, minY: n3, maxX: t4 + e3 - 1, maxY: n3 + i3 - 1, isValid: true }, u2 || (h2.isValid = g.Qme(t4, n3, e3, i3)), g.Gme(h2, s2)), h2.isValid) for (d2 = t4; d2 < t4 + e3; d2++) for (v2 = n3; v2 < n3 + i3; v2++) r2 && r2[d2 - t4] && (p = r2[d2 - t4][v2 - n3], c(p) ? p = 0 : (o.Convert.Nh(p) || o.Convert.LE(p)) && (p = o.Convert.Nh(p) || 1 === p.getRowCount() && 1 === p.getColumnCount() ? o.Convert.Nh(p) ? p.getValue(0, 0) : p.getValue(0, 0, 0) : a.Errors.Calc), this.setValue(d2, v2, p, s2));
              else this.setValue(t4, n3, a.Errors.Spill, s2);
              return h2.isValid;
            }
          }, t3.prototype.updateItem = function(t4, n3, e3) {
            var i3 = this.Hme(n3, e3);
            if (i3) return this.Fme(i3, true), true;
          }, t3.prototype.rE = function(t4, n3) {
            var e3 = this, i3;
            e3.Rme(t4, -1, o.MAX_ROW_COUNT, -1).forEach((function(i4) {
              var r2, o2;
              if (i4.minX >= t4) e3.zme.remove(i4), i4.minX += n3, i4.maxX += n3, e3.zme.insert(i4);
              else if (i4.maxX >= t4) if (i4.isValid) {
                for (r2 = t4; r2 <= i4.maxX; r2++) for (o2 = i4.minY; o2 <= i4.maxY; o2++) e3.pBt().setValue(r2, o2, e3.pBt().getValue(r2 + n3, o2));
                for (r2 = i4.maxX + 1; r2 <= i4.maxX + n3; r2++) for (o2 = i4.minY; o2 <= i4.maxY; o2++) e3.pBt().setValue(r2, o2, s);
              } else e3.b3().Mde(i4.minX, i4.minY);
            }));
          }, t3.prototype.aE = function(t4, n3, e3) {
            var r2 = this, a2;
            r2.Rme(t4, -1, o.MAX_ROW_COUNT, -1).forEach((function(o2) {
              var a3, u2, s2, c2;
              if (o2.minX >= t4 + n3) r2.zme.remove(o2), o2.minX -= n3, o2.maxX -= n3, r2.zme.insert(o2);
              else if (o2.minX >= t4) r2.Fme(o2, true, e3);
              else if (o2.maxX >= t4 && o2.isValid) if (a3 = o2.maxX > t4 + n3 - 1 ? o2.maxX + 1 : t4 + n3, u2 = o2.maxX > t4 + n3 - 1 ? n3 : o2.maxX - t4 + 1, r2.Qme(a3, o2.minY, u2, o2.maxY - o2.minY + 1, true)) for (s2 = o2.maxX; s2 >= t4; s2--) for (c2 = o2.minY; c2 <= o2.maxY; c2++) r2.setValue(s2 + n3, c2, r2.pBt().getValue(s2, c2), e3, i2.CalcSetValueTrigger.calc);
              else r2.Fme(o2, false, e3);
            }));
          }, t3.prototype.Lme = function(t4, n3) {
            var e3 = this, i3;
            e3.Rme(t4, -1, o.MAX_ROW_COUNT, -1).forEach((function(i4) {
              i4.minX >= t4 && (e3.zme.remove(i4), i4.minX += n3, i4.maxX += n3, e3.zme.insert(i4));
            }));
          }, t3.prototype.oE = function(t4, n3) {
            var e3 = this, i3;
            this.Rme(-1, t4, -1, o.MAX_COLUMN_COUNT).forEach((function(i4) {
              var r2, o2;
              if (i4.minY >= t4) e3.zme.remove(i4), i4.minY += n3, i4.maxY += n3, e3.zme.insert(i4);
              else if (i4.maxY >= t4) if (i4.isValid) {
                for (r2 = i4.minX; r2 <= i4.maxX; r2++) for (o2 = t4; o2 <= i4.maxY; o2++) e3.pBt().setValue(r2, o2, e3.pBt().getValue(r2, o2 + n3));
                for (r2 = i4.minX; r2 <= i4.maxX; r2++) for (o2 = i4.maxY + 1; o2 <= i4.maxY + n3; o2++) e3.pBt().setValue(r2, o2, s);
              } else e3.b3().Mde(i4.minX, i4.minY);
            }));
          }, t3.prototype.uE = function(t4, n3, e3) {
            var r2 = this, a2;
            this.Rme(-1, t4, -1, o.MAX_COLUMN_COUNT).forEach((function(o2) {
              var a3, u2, s2, c2;
              if (o2.minY >= t4 + n3) r2.zme.remove(o2), o2.minY -= n3, o2.maxY -= n3, r2.zme.insert(o2);
              else if (o2.minY >= t4) r2.Fme(o2, true, e3);
              else if (o2.maxY >= t4 && o2.isValid) if (a3 = o2.maxY > t4 + n3 - 1 ? o2.maxY + 1 : t4 + n3, u2 = o2.maxY > t4 + n3 - 1 ? n3 : o2.maxY - t4 + 1, r2.Qme(o2.minX, a3, o2.maxX - o2.minX + 1, u2, true)) for (s2 = o2.minX; s2 <= o2.maxX; s2++) for (c2 = o2.maxY; c2 >= t4; c2--) r2.setValue(s2, c2 + n3, r2.pBt().getValue(s2, c2), e3, i2.CalcSetValueTrigger.calc);
              else r2.Fme(o2, false, e3);
            }));
          }, t3.prototype.Bme = function(t4, n3) {
            var e3 = this, i3;
            this.Rme(-1, t4, -1, o.MAX_COLUMN_COUNT).forEach((function(i4) {
              i4.minY >= t4 && (e3.zme.remove(i4), i4.minY += n3, i4.maxY += n3, e3.zme.insert(i4));
            }));
          }, t3.prototype.Kme = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            for (n3 = t4.length - 1; n3 >= 0; n3--) i3 = (e3 = t4[n3])[0], e3.length > 2 ? i3[e3[1]] = e3[2] : e3.length > 1 ? o2.zme.remove(e3[1]) : (r2 = o2.Hme(i3.minX, i3.minY), o2.Fme(r2, true), o2.zme.insert(i3));
          }, t3;
        })(), n2.Z8 = h;
      }, "./dist/plugins/sheetsCalc/external-reference.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b = this && this.qKr || (y = function(t3, n3) {
          return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, y(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          y(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), y;
        function w(t3, n3) {
          var e3, i3;
          if (Array.isArray(t3)) t3.forEach(n3);
          else if ("object" == typeof t3) for (e3 in t3) Object.prototype.hasOwnProperty.call(t3, e3) && n3(i3 = t3[e3], e3);
        }
        function M(t3) {
          return t3;
        }
        function C(t3) {
          return "string" == typeof t3 && "/OADate(" === t3.substr(0, 8) ? parseFloat(t3.substr(8, t3.length - 10)) : t3;
        }
        function S(t3) {
          var n3, e3 = t3.value;
          return e3 && e3.richText ? (n3 = "", e3.richText.forEach((function(t4) {
            n3 += t4.text;
          })), n3) : C(e3);
        }
        function T(t3, n3) {
          var e3, i3, r2;
          if (t3) for (e3 in t3) h(t3, e3) && (r2 = (i3 = t3[e3]).getExpression()) && r2.forEachNodes((function(t4) {
            (1 === t4.type || 5 === t4.type || 8 === t4.type) && t4.source instanceof g && (n3[t4.source.rT.i] = true);
          }));
        }
        function x(t3, n3) {
          var e3 = t3.getRange(n3.row, n3.column);
          return e3.sheetName = t3.source.oyt, e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ExternalReferenceManager = n2.ExternalSource = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), u = r.Common.lt, s = i2.XFileConstants.Rr, c = i2.XFileConstants.Lr, f = void 0, l = null, h = r.Common.kh, d = u.ht, v = i2.Util.wr, p = i2.Util.Mr, g = (function(t3) {
          function n3(e3, i3, r2) {
            var u2, s2, c2, f2 = t3.call(this, l) || this;
            return f2.getSheetRangeReference = function(t4) {
              var e4, i4, r3, u3, s3 = this.rT.sheetNames;
              if (t4.endSource && s3 && t4.source instanceof n3) {
                for (e4 = false, i4 = [], r3 = 0; r3 < s3.length && (s3[r3] === t4.source.oyt && (e4 = true), e4 && (u3 = new n3("[" + this.rT.i + "]" + s3[r3], this.ayt, true), i4.push(u3.getReference(t4))), s3[r3] !== t4.endSource.oyt); r3++) ;
                return new a.SheetRangeReference(i4);
              }
              return o.Errors.Name;
            }, u2 = e3.split("]"), r2 && (s2 = u2[0].substring(1)), i3.iyt[s2] ? f2.rT = i3.iyt[s2] : (c2 = u2[0].indexOf("["), f2.rT = i3.ryt(u2[0].substring(c2 + 1), u2[0].substring(0, c2), true)), f2.oyt = u2[1], f2.ayt = i3, f2;
          }
          return b(n3, t3), n3.prototype.cyt = function(t4, n4, e3) {
            var i3, r2 = t4.getKey();
            this.rT = this.ayt.fyt(this.rT), this.ime(), i3 = this.ayt.uyt[this.rT.i] = this.ayt.uyt[this.rT.i] || {}, n4 ? i3[r2] ? i3[r2][1].push(e3) : i3[r2] = [t4, [e3]] : i3[r2] && delete i3[r2];
          }, n3.prototype.ime = function() {
            this.rT.data = this.rT.data || {};
            var t4 = this.rT.data[this.oyt];
            return t4 || (this.rT.sheetNames.push(this.oyt), (t4 = this.rT.data[this.oyt] = {}).isNew = true), t4;
          }, n3.prototype.PHr = function() {
            var t4;
            return null === (t4 = this.rT) || void 0 === t4 ? void 0 : t4[i2.ID_SYMBOL];
          }, n3.prototype.GHr = function() {
            return this.oyt;
          }, n3.prototype.getValue = function(t4, n4) {
            var e3, i3 = this.ime(), r2 = i3[t4];
            return !r2 || d(r2[n4]) ? !i3.isNew || r2 && r2.hasOwnProperty(n4) ? 0 : o.Errors.Reference : (e3 = r2[n4]) && e3._code && (e3._error || e3._calcError) ? new o.CalcError(e3._error || e3._calcError) : e3;
          }, n3.prototype.getRowCount = function() {
            return o.MAX_ROW_COUNT;
          }, n3.prototype.getColumnCount = function() {
            return o.MAX_COLUMN_COUNT;
          }, n3.prototype.createSourceModel = function() {
            return l;
          }, n3.prototype.getCalcSourceModel = function() {
            return l;
          }, n3.prototype.setCalcSourceModel = function() {
          }, n3.prototype.getPeerSource = function(t4) {
            return new n3("[" + this.rT.i + "]" + t4, this.ayt, true);
          }, n3.prototype.getSources = function(t4) {
            var e3, i3, r2, o2 = this.rT.sheetNames, a2 = [];
            if (t4 && o2 && t4.oyt) for (e3 = false, i3 = 0; i3 < o2.length && (o2[i3] === this.oyt && (e3 = true), e3 && (r2 = new n3("[" + this.rT.i + "]" + o2[i3], this.ayt, true), a2.push(r2)), o2[i3] !== t4.oyt); i3++) ;
            return a2;
          }, n3.prototype.referenceToArray = function(t4, n4, e3, i3, r2, a2, u2, s2) {
            var c2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A, I, k, N = this, j = 1, D = 1, _ = [], O = N.rT.Rbt, E = N.oyt + t4.getRangeCount() + "_" + t4.getRow(0) + "_" + t4.getColumn(0) + "_" + t4.getRowCount(0) + "_" + t4.getColumnCount(0) + "_" + n4 + "_" + e3;
            if (O) {
              if (O.has(E)) return O.get(E);
            } else O = N.rT.Rbt = (0, o.createMap)();
            if (0 === (p2 = t4.getRangeCount())) return _.isError = true, _;
            for (w2 in b2 = -1, y2 = N.ime()) y2.hasOwnProperty(w2) && (M2 = Number(w2), !isNaN(M2) && M2 > b2 && (b2 = M2));
            if (-1 === b2) return (_ = [o.Errors.Reference]).isError = true, _;
            for (C2 = b2 + 1, S2 = N.getColumnCount(), e3 = e3 === f || e3, T2 = 0; T2 < p2; T2++) {
              if (e3 || (m2 = [], _.push(m2)), d2 = t4.getRow(T2), v2 = t4.getColumn(T2), 0 === (j = t4.getRowCount(T2))) return _.isError = true, _;
              if (-1 === j && (d2 = 0, j = C2), 0 === (D = t4.getColumnCount(T2))) return _.isError = true, _;
              if (-1 === D && (v2 = 0, D = S2), d2 >= C2 || v2 >= S2) return (_ = e3 ? [l] : [[l]]).rowCount = 1, _.colCount = 1, _.rangeCount = 1, _;
              for (d2 + j > C2 && (j = C2 - d2), v2 + D > S2 && (D = S2 - v2), x2 = void 0, A = false, I = 0; I < j; I++) for (c2 = d2 + I, e3 || (x2 = [], m2.push(x2)), k = 0; k < D; k++) h2 = v2 + k, g2 = N.getValue(c2, h2), A || (g2 = o.Convert.Nbt(g2, n4, !o.ExcelCompatibleCalcMode, a2, s2), i3 && o.Convert.BJ(g2) && ((_ = [g2]).isError = true, A = true), o.Convert.Ybt(g2, a2) || (e3 ? _.push(g2) : x2.push(g2)));
              if (A) return _;
            }
            return e3 || 1 !== p2 || (_ = _[0]), _.rowCount = j, _.colCount = D, _.rangeCount = p2, O && O.set(E, _), _;
          }, n3.prototype.getName = function(t4) {
            var n4;
            return (n4 = this.Dfe ? "" : this.ayt.uyt[this.rT.i] && (!this.rT || t4 && t4.lyt) ? "[".concat(this.rT.i, "]") : "".concat(this.rT.option.path, "[").concat(this.rT.option.name, "]")) + this.oyt;
          }, n3.prototype.getIdentity = function(t4, n4) {
            var e3 = this, i3 = n4.row, r2 = n4.rowCount || 1, o2 = n4.column, a2 = n4.columnCount || 1;
            return -1 === i3 && (i3 = 0, r2 = e3.getRowCount()), -1 === o2 && (o2 = 0, a2 = e3.getColumnCount()), e3.getName(t4) + "." + i3 + "." + r2 + "." + o2 + "." + a2;
          }, n3.prototype.getReference = function(t4) {
            var n4 = this, e3 = t4.row, i3 = t4.col;
            return -1 === e3 && (t4.row = 0, t4.rowCount = n4.getRowCount(), t4.rowUndefine = true), -1 === i3 && (t4.col = 0, t4.colCount = n4.getColumnCount(), t4.colUndefine = true), new o.CalcReference(n4, [t4]);
          }, n3;
        })(o.CalcSource), n2.ExternalSource = g, m = (function() {
          function t3(t4) {
            this.BHr = {}, this.b_r = new i2.EventNotifier(), this.iyt = t4 || {}, this.uyt = {}, this.syt();
          }
          return t3.prototype.parseSource = function(t4, n3) {
            return new g(t4, this, n3);
          }, t3.prototype.ryt = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, l2;
            for (u2 in this.iyt) if (h(this.iyt, u2) && (s2 = this.iyt[u2]) && s2.option.name === t4 && s2.option.path === n3) return s2;
            if (!e3) {
              for (u2 in this.iyt) if (h(this.iyt, u2) && (s2 = this.iyt[u2]).option.name === t4 && "" === n3) return s2;
            }
            return false !== o2 && (c2 = this.UHr(t4, n3)) ? c2 : r2 ? f : ((a2 = { option: { name: t4, path: n3 }, sheetNames: [], data: {} })[i2.ID_SYMBOL] = (0, i2.generateRandomId)(), l2 = a2, this.BHr[l2[i2.ID_SYMBOL]] = l2, this.HHr(l2), l2);
          }, t3.prototype.zHr = function(t4, n3, e3) {
            var i3, r2;
            for (i3 in t4) if (h(t4, i3) && (r2 = t4[i3]) && r2.option.name === n3 && r2.option.path === e3) return i3;
          }, t3.prototype.UHr = function(t4, n3) {
            var e3 = this.BHr, i3 = this.zHr(e3, t4, n3);
            if (i3) return e3[i3];
          }, t3.prototype.syt = function() {
            for (var t4 in this.iyt) this.iyt[t4] && (this.iyt[t4].i = t4);
          }, t3.prototype.fyt = function(t4) {
            var n3, e3, i3, r2 = this.ryt(t4.option.name, t4.option.path, true, true, false);
            return r2 || (n3 = this.BHr, (e3 = this.zHr(n3, t4.option.name, t4.option.path)) && delete n3[e3], i3 = Object.keys(this.iyt).length + 1, this.iyt[i3] = t4, t4.i = i3, t4);
          }, t3.prototype.Ep = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2;
            if (!n3 || !n3.isServer) {
              for (u2 in r2 = {}, o2 = {}, a2 = 1, this.iyt) if (h(this.iyt, u2)) {
                if ((!this.uyt[u2] || i2.GC$.isEmptyObject(this.uyt[u2])) && (e3 || (e3 = {}, T(t4.hyt, e3), t4.sheets.forEach((function(t5) {
                  T(t5.hyt, e3);
                }))), !e3[u2])) continue;
                (s2 = this.iyt[u2]).i = a2, r2[a2] = s2, o2[a2] = this.uyt[u2], a2++;
              }
              this.iyt = r2, this.uyt = o2;
            }
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, r2 = {};
            for (n3 in this.iyt) h(this.iyt, n3) && (e3 = this.iyt[n3], r2[n3] = { option: { name: e3.option.name, path: e3.option.path }, sheetNames: e3.sheetNames, data: e3.data }, t4 && t4.isServer && (r2[n3][i2.ID_SYMBOL] = e3[i2.ID_SYMBOL]));
            return r2;
          }, t3.prototype.wh = function(t4) {
            var n3, e3 = this.iyt, r2 = [], o2 = { n_: "externalReferences", c_: r2 }, a2 = {}, u2 = t4.workbook.rels, f2 = 0, d2 = function(t5) {
              var n4, o3, d3, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A, I, k, N, j, D, _;
              if (h(e3, t5)) {
                for (f2++, o3 = (n4 = e3[t5]).option.id = s + v(u2), u2.c_.push({ n_: c, Id: o3, Type: i2.RelationshipConstants.uc, Target: p(i2.XFileConstants.nu + "/" + i2.XFileConstants.tu + t5) }), r2.push({ n_: "externalReference", "r:id": o3 }), g2 = { n_: "sheetNames", c_: d3 = [] }, m2 = { n_: "sheetDataSet", c_: [] }, (b2 = n4.sheetNames || ["Sheet1"]).forEach((function(t6) {
                  d3.push({ n_: "sheetName", val: i2.mt.Nfe(t6) });
                })), y2 = n4.data, w2 = 0, M2 = b2.length; w2 < M2; w2++) if (C2 = y2 && y2[b2[w2]]) {
                  for (x2 in S2 = { n_: i2.XFileConstants.bo, sheetId: w2 }, C2.isNew && (S2.refreshError = 1), T2 = [], C2) if (C2.hasOwnProperty(x2)) {
                    if (A = parseInt(x2, 10) + 1, isNaN(A)) continue;
                    for (j in N = { n_: "row", r: A, c_: k = [] }, I = C2[x2]) I.hasOwnProperty(j) && (D = I[j], (_ = { n_: "cell" }).r = i2.IndexHelper.nr(parseInt(j, 10)) + A, "string" == typeof D ? _.t = "str" : "boolean" == typeof D ? (_.t = "b", D = D ? "1" : "0") : D && D.code && (_.t = "e", "#SPILL!" !== (D = D._calcError || D.error) && "#CALC!" !== D || (D = "#VALUE!")), _.c_ = [{ n_: "v", c_: [D] }], k.push(_));
                    T2.push(N);
                  }
                  S2.c_ = T2, m2.c_.push(S2);
                }
                a2[o3] = { n_: "externalLink", r_: [13, 14, 1, 21], c_: [{ n_: "externalBook", "r:id": "rId1", r_: [8], c_: [g2, m2.c_.length > 0 ? m2 : l] }], option: n4.option };
              }
            };
            for (n3 in e3) d2(n3);
            return { externalReferencesNode: o2, externalLinks: a2, count: f2 };
          }, t3.prototype.dyt = function(t4, n3, e3, i3) {
            var o2, a2, u2, s2, c2, l2 = n3 && n3.sheets && Object.keys(n3.sheets), v2 = l2 && n3.sheets[l2[0]].data && n3.sheets[l2[0]].data.dataTable, p2 = v2 ? S : M, g2 = this.ryt(t4, e3 || "", f, true);
            if (!d(g2)) {
              for (c2 in o2 = g2.i, delete (a2 = this.iyt[o2]).Rbt, u2 = this.uyt[o2] || {}, a2.rme = new r.Common.rbush(), s2 = function(t5) {
                if (h(u2, t5)) {
                  var n4 = u2[t5][0];
                  n4.vyt(), u2[t5][1].forEach((function(t6) {
                    var e4 = t6.getRange(n4.row, n4.column);
                    a2.rme.insert({ minX: e4.row, minY: e4.col, maxX: e4.row + e4.rowCount - 1, maxY: e4.col + e4.colCount - 1 });
                  }));
                }
              }, u2) s2(c2);
              a2.sheetNames.forEach((function(t5) {
                var e4, r2 = v2 ? n3.sheets[t5] && n3.sheets[t5].data.dataTable : n3 && n3[t5];
                r2 && (a2.data[t5] && i3 ? i3 && delete a2.data[t5].isNew : a2.data[t5] = {}, e4 = a2.data[t5], w(r2, (function(t6, n4) {
                  a2.rme.collides({ minX: n4, minY: -1, maxX: n4, maxY: -1 }) && (e4[n4] = e4[n4] || {}, w(t6, (function(t7, i4) {
                    a2.rme.collides({ minX: n4, minY: i4, maxX: n4, maxY: i4 }) && (e4[n4][i4] = p2(t7));
                  })));
                })));
              })), this.VHr(a2);
            }
          }, t3.prototype._6 = function(t4, n3, e3, i3) {
            var r2, o2 = this;
            "string" == typeof t4 ? o2.dyt(t4, n3, e3, i3) : t4 && (r2 = o2.myt(true)).forEach((function(n4) {
              t4[n4.filePath + n4.name] && o2.dyt(n4.name, t4[n4.filePath + n4.name], n4.filePath, i3);
            }));
          }, t3.prototype.myt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = [];
            for (n3 in this.iyt) if (h(this.iyt, n3)) {
              if (e3 = this.iyt[n3], i3 = { name: e3.option.name, filePath: e3.option.path }, t4) for (a2 in r2 = this.uyt[n3] || {}, i3.items = [], o2 = function(t5) {
                var n4, e4, o3, a3;
                h(r2, t5) && (e4 = { row: (n4 = r2[t5][0]).row, col: n4.column, sheetName: n4.w3.rT.getName() }, a3 = 1 === (o3 = r2[t5][1]).length ? x(o3[0], n4) : o3.map((function(t6) {
                  return x(t6, n4);
                })), i3.items.push({ target: e4, source: a3 }));
              }, r2) o2(a2);
              u2.push(i3);
            }
            return u2;
          }, t3.prototype.VHr = function(t4) {
            this.b_r.notify({ type: "updateExternalReference", sourceId: t4[i2.ID_SYMBOL], source: t4 });
          }, t3.prototype.HHr = function(t4) {
            this.b_r.notify({ type: "addExternalReference", sourceId: t4[i2.ID_SYMBOL], source: t4 });
          }, t3.prototype.dispose = function() {
            this.b_r.destroy(), this.BHr = {};
          }, t3;
        })(), n2.ExternalReferenceManager = m;
      }, "./dist/plugins/sheetsCalc/formulaOperatorAdjustor.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A = this && this.nJr || function() {
          return A = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, A.apply(this, arguments);
        };
        function I(t3, n3) {
          var e3, i3, r2, o2;
          return n3 || (n3 = this), e3 = d(t3.row, n3.row), i3 = d(t3.column, n3.column), r2 = h(t3.row + t3.rowCount, n3.row + n3.rowCount), o2 = h(t3.column + t3.columnCount, n3.column + n3.columnCount), e3 >= r2 || i3 >= o2 ? p : { row: e3, column: i3, rowCount: r2 - e3, columnCount: o2 - i3, intersectWith: I };
        }
        function k(t3, n3, e3) {
          var i3 = [];
          return t3.forEachNodes && t3.forEachNodes((function(t4) {
            var r2;
            1 === t4.type && ((t4.endSource ? null : t4.source || e3) === n3 ? i3.push(t4) : n3 === e3 && ((t4.rowRelative || t4.endRowRelative) && (i3.rc = true), (t4.columnRelative || t4.endColumnRelative) && (i3.cc = true)));
          })), i3;
        }
        function N(t3, n3, e3, r2) {
          var o2, a2, u2, s2 = (0, i2.createSet)(), c2 = (0, i2.createSet)(), f2 = k(t3, n3, e3);
          if (r2) for (o2 = f2.rc, a2 = 0; a2 < f2.length; a2++) (u2 = f2[a2]).isFullColumn || (u2.rowRelative ? s2.add(u2.row) : c2.add(u2.row), u2.endRowRelative ? s2.add(u2.endRow) : false === u2.endRowRelative && c2.add(u2.endRow));
          else for (o2 = f2.cc, a2 = 0; a2 < f2.length; a2++) (u2 = f2[a2]).isFullRow || (u2.columnRelative ? s2.add(u2.column) : c2.add(u2.column), u2.endColumnRelative ? s2.add(u2.endColumn) : false === u2.endColumnRelative && c2.add(u2.endColumn));
          return [Array.from(s2), Array.from(c2), o2];
        }
        function j(t3, n3, e3, i3, r2, o2) {
          return t3 ? o2 ? e3 <= r2 + n3 && r2 + n3 < e3 + i3 ? "2" : r2 + n3 < e3 && e3 <= r2 || r2 < e3 && e3 <= r2 + n3 ? "1" : "0" : r2 + n3 >= e3 + i3 ? "1" : r2 + n3 >= e3 ? "2" : "0" : e3 + i3 <= n3 ? "1" : e3 <= n3 ? "2" : "0";
        }
        function D(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, f2, l2, h2 = [], d2 = false;
          if (o2 && (a2 ? t3.rc : t3.cc) && (h2.push("9"), d2 = true), a2) {
            for (u2 = 0; u2 < t3.length; u2++) if (!(s2 = t3[u2]).isFullColumn && ("0" !== (f2 = j(s2.rowRelative, s2.row, n3, e3, i3, r2)) && (d2 = true), h2.push(f2), !c(s2.endRow))) {
              if (l2 = j(s2.endRowRelative, s2.endRow, n3, e3, i3, r2), "2" === f2 && "2" !== l2 && s2.endRowRelative || "2" !== f2 && "2" === l2 && s2.rowRelative) return -1;
              "0" !== l2 && (d2 = true), h2.push(l2);
            }
          } else for (u2 = 0; u2 < t3.length; u2++) if (!(s2 = t3[u2]).isFullRow && ("0" !== (f2 = j(s2.columnRelative, s2.column, n3, e3, i3, r2)) && (d2 = true), h2.push(f2), !c(s2.endColumn))) {
            if (l2 = j(s2.endColumnRelative, s2.endColumn, n3, e3, i3, r2), "2" === f2 && "2" !== l2 && s2.endColumnRelative || "2" !== f2 && "2" === l2 && s2.columnRelative) return -1;
            "0" !== l2 && (d2 = true), h2.push(l2);
          }
          return d2 ? h2.join(",") : 0;
        }
        function _(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = [], s2 = false;
          for (t3[2] && r2 && (u2.push("9"), s2 = true), o2 = 0; o2 < t3[0].length; o2++) a2 = t3[0][o2], i3 && (e3 + a2 < n3 && n3 <= e3 || e3 < n3 && n3 <= e3 + a2) || !i3 && e3 + a2 >= n3 ? (u2.push("1"), s2 = true) : u2.push("0");
          for (o2 = 0; o2 < t3[1].length; o2++) (a2 = t3[1][o2]) >= n3 ? (u2.push("1"), s2 = true) : u2.push("0");
          return s2 ? u2.join(",") : 0;
        }
        function O(t3, n3, e3, i3) {
          return (!i3 || t3 < n3) && e3;
        }
        function E(t3) {
          return [t3.row, t3.col, t3.rowCount, t3.colCount].join(",");
        }
        function R(t3, n3, e3, i3, r2) {
          var o2 = n3.rT.id + " " + e3 + " " + i3;
          t3.set(o2, r2);
        }
        function L(t3, n3, e3, i3) {
          if (0 === t3.size) return false;
          var r2 = n3.rT.id + " " + e3 + " " + i3;
          return t3.has(r2);
        }
        function F(t3, n3) {
          var e3 = new i2.Expression(n3);
          return e3.value = t3, e3;
        }
        function B(t3, n3) {
          if (t3) {
            for (; 10 === t3.type || 12 === t3.type; ) t3 = t3.value;
            if (1 === t3.type || 13 === t3.type) n3(t3);
            else if (9 === t3.type) B(t3.value, n3), t3.value2 && B(t3.value2, n3);
            else if (7 === t3.type) for (var e3 = 0; e3 < t3.arguments.length; e3++) B(t3.arguments[e3], n3);
          }
        }
        function P(t3, n3, e3, o2, a2) {
          var u2, s2, f2, l2 = !t3 && c(n3), h2 = !e3 && c(o2);
          if (l2 && !h2 && (n3 = 0), h2 && !l2 && (o2 = 0), !l2 || !h2) return n3 instanceof Date && (n3 = r.Common.ct.o0(n3)), o2 instanceof Date && (o2 = r.Common.ct.o0(o2)), u2 = t3 && !a2.useValue ? F(t3, i2.ExpressionType.parentheses) : F(n3, i2.ExpressionType.number), s2 = e3 ? F(e3, i2.ExpressionType.parentheses) : F(o2, i2.ExpressionType.number), (f2 = new i2.Expression(i2.ExpressionType.operator)).operatorType = C(a2.option), f2.value = s2, f2.value2 = u2, f2;
        }
        function G(t3) {
          B(t3, (function(t4) {
            var n3, e3, i3, r2, o2;
            1 === t4.type && (t4.rowRelative && t4.columnRelative || t4.endRowRelative && t4.endColumnRelative) && (n3 = [t4.row, t4.column], t4.column = n3[0], t4.row = n3[1], e3 = [t4.endColumn, t4.endRow], t4.endRow = e3[0], t4.endColumn = e3[1], i3 = [t4.columnRelative, t4.rowRelative], t4.rowRelative = i3[0], t4.columnRelative = i3[1], r2 = [t4.endColumnRelative, t4.endRowRelative], t4.endRowRelative = r2[0], t4.endColumnRelative = r2[1], o2 = [t4.isFullColumn, t4.isFullRow], t4.isFullRow = o2[0], t4.isFullColumn = o2[1]);
          }));
        }
        function U(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2 = {};
          if (t3) if (n3) for (u2 in e3.QDt) e3.QDt[u2] && ((a2 = e3.QDt[u2]).id === i3.id && (a2.row >= r2 ? a2.row += o2 : a2.row + a2.rowCount > r2 && (a2.rowCount += o2)), c2[s2 = a2.id + "," + a2.row + "," + a2.col + "," + a2.rowCount + "," + a2.colCount] = a2);
          else for (u2 in e3.QDt) e3.QDt[u2] && ((a2 = e3.QDt[u2]).id === i3.id && (a2.col >= r2 ? a2.col += o2 : a2.col + a2.colCount > r2 && (a2.colCount += o2)), c2[s2 = a2.id + "," + a2.row + "," + a2.col + "," + a2.rowCount + "," + a2.colCount] = a2);
          else if (n3) {
            for (u2 in e3.QDt) if (e3.QDt[u2]) {
              if ((a2 = e3.QDt[u2]).id === i3.id) if (a2.row >= r2 + o2) a2.row -= o2;
              else if (a2.row >= r2) {
                if (!(a2.row + a2.rowCount > r2 + o2)) continue;
                a2.row = r2, a2.rowCount = a2.row + a2.rowCount - o2 - r2;
              } else a2.row + a2.rowCount > r2 + o2 ? a2.rowCount -= o2 : a2.row + a2.rowCount > r2 && (a2.rowCount = r2 - a2.row);
              c2[s2 = a2.id + "," + a2.row + "," + a2.col + "," + a2.rowCount + "," + a2.colCount] = a2;
            }
          } else for (u2 in e3.QDt) if (e3.QDt[u2]) {
            if ((a2 = e3.QDt[u2]).id === i3.id) if (a2.col >= r2 + o2) a2.col -= o2;
            else if (a2.col >= r2) {
              if (!(a2.col + a2.colCount > r2 + o2)) continue;
              a2.col = r2, a2.colCount = a2.col + a2.colCount - o2 - r2;
            } else a2.col + a2.colCount > r2 + o2 ? a2.colCount -= o2 : a2.col + a2.colCount > r2 && (a2.colCount = r2 - a2.col);
            c2[s2 = a2.id + "," + a2.row + "," + a2.col + "," + a2.rowCount + "," + a2.colCount] = a2;
          }
          e3.QDt = c2;
        }
        function H(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
          var h2, d2, v2, p2;
          return e3 >= 0 || !r2 ? (h2 = i3 + (r2 ? e3 : 0), d2 = o2 + (a2 ? e3 : 0), v2 = f2 && ot(u2, t3, f2), p2 = !f2 && ot(u2, t3, f2), l2 && -1 === o2 ? r2 ? s2 + c2 <= h2 && e3 >= s2 && e3 < s2 + c2 ? e3 - s2 + s2 + c2 <= h2 && (h2 += c2) : s2 <= h2 && !(e3 >= s2 && e3 < s2 + c2) && (h2 += c2) : s2 <= h2 && (h2 += c2) : ((v2 || p2) && (!l2 && s2 + c2 <= e3 || l2 && s2 <= e3) && (h2 -= r2 ? c2 : 0, d2 -= a2 ? c2 : 0), v2 = f2 && ot(u2, n3, f2), p2 = !f2 && ot(u2, n3, f2), (v2 || p2) && (!l2 && s2 <= h2 || l2 && (r2 && e3 + i3 >= s2 || !r2 && i3 >= s2) ? (h2 += c2, d2 += c2) : (!l2 && s2 <= d2 || l2 && (a2 && e3 + o2 >= s2 || !a2 && o2 >= s2)) && (d2 += c2)), l2 && s2 + c2 <= e3 && (h2 += r2 ? c2 : 0, d2 += a2 ? c2 : 0)), { index: h2 -= r2 ? e3 : 0, endIndex: d2 -= a2 ? e3 : 0 }) : { index: i3, endIndex: o2 };
        }
        function V(t3, n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
          var v2, p2, m2, b2, y2;
          if (n3 && !d2) {
            if (v2 = c2 ? o2.row : o2.column, p2 = c2 ? o2.rowRelative : o2.columnRelative, m2 = void 0, b2 = o2.row + (o2.rowRelative && e3), y2 = o2.column + (o2.columnRelative && r2), h2 && !h2(b2, y2)) return o2;
            if (o2.rowRelative && o2.columnRelative && 0 === o2.row && 0 === o2.column && 0 === u2 && l2 && (c2 && l2.VSe || !c2 && l2.zSe)) return o2;
            if (c2 && e3 >= 0 || !c2 && r2 >= 0 || !p2) {
              if (f2) m2 = H(t3, n3, c2 ? e3 : r2, v2, p2, -1, false, a2, u2, s2, c2, h2).index;
              else if (m2 = rt(t3, n3, c2 ? e3 : r2, v2, p2, a2, u2, s2, c2, h2), g(m2)) return (0, i2.Syt)(m2);
              m2 !== v2 && (o2 = o2.offset(c2 ? m2 - v2 : 0, c2 ? 0 : m2 - v2, true));
            }
          }
          return o2;
        }
        function z(t3, n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
          var d2, v2, p2, m2, b2, y2, w2, M2;
          if (n3 && !h2) {
            if (3 === (d2 = o2.Tyt()) || c2 && 2 === d2 || !c2 && 1 === d2) return o2;
            if (v2 = c2 ? o2.rowRelative : o2.columnRelative, p2 = c2 ? o2.endRowRelative : o2.endColumnRelative, m2 = c2 ? o2.row : o2.column, b2 = c2 ? o2.endRow : o2.endColumn, y2 = void 0, c2 && e3 >= 0 || !c2 && r2 >= 0 || !v2 || !p2) {
              if (f2) y2 = H(t3, n3, c2 ? e3 : r2, m2, v2, b2, p2, a2, u2, s2, c2, l2);
              else if (y2 = at(t3, n3, c2 ? e3 : r2, m2, v2, b2, p2, a2, u2, s2, c2, l2), g(y2)) return (0, i2.Syt)(y2);
              w2 = y2.index, M2 = y2.endIndex, w2 === m2 && M2 === b2 || (o2 = o2.offset2(c2 ? w2 - m2 : 0, c2 ? 0 : w2 - m2, c2 ? M2 - b2 : 0, c2 ? 0 : M2 - b2, e3, r2));
            }
          }
          return o2;
        }
        function Y(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          if (n3) {
            var f2 = r2;
            if (f2 && o2 === f2.source) return f2.offsetWhenInsertRemoveColumn(a2, u2, s2, c2);
          }
          return r2;
        }
        function Z(t3, n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
          var d2, g2, m2, b2, y2, w2, M2, C2, S2 = Z, T2 = r2;
          if (r2) {
            if (1 === r2.type && r2.hmt()) T2 = V(t3, r2.source || t3, n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2);
            else if (1 === r2.type) T2 = z(t3, r2.source || t3, n3, e3, r2, o2, a2, u2, s2, c2, l2, h2);
            else if (10 === r2.type) (d2 = S2(t3, n3, e3, r2.value, o2, a2, u2, s2, c2, f2, l2, h2)) !== r2.value && (T2 = (0, i2.Ayt)(d2));
            else if (9 === r2.type) g2 = S2(t3, n3, e3, r2.value, o2, a2, u2, s2, c2, f2, l2, h2), m2 = r2.value2 && S2(t3, n3, e3, r2.value2, o2, a2, u2, s2, c2, f2, l2, h2), g2 === r2.value && m2 === r2.value2 || (T2 = (0, i2.rbt)(r2.operatorType, g2, m2));
            else if (7 === r2.type) {
              for (b2 = p, y2 = void 0, w2 = void 0, C2 = (M2 = r2).arguments.length, w2 = 0; w2 < C2; w2++) if ((d2 = S2(t3, n3, e3, y2 = M2.arguments[w2], o2, a2, u2, s2, c2, f2, l2, h2)) !== y2) {
                (b2 = [])[w2] = d2;
                break;
              }
              if (b2) {
                for (w2 = 0; w2 < C2; w2++) y2 = M2.arguments[w2], b2[w2] !== v && b2[w2] !== p || (b2[w2] = S2(t3, n3, e3, y2, o2, a2, u2, s2, c2, f2, l2, h2));
                T2 = (0, i2.YJ)(M2, b2), M2.s8t && (T2.s8t = M2.s8t, T2.u8t = M2.u8t);
              }
              (0, i2.isExpression)(r2.function) && ((T2 = (0, i2.YJ)(r2, b2 || r2.arguments)).function = S2(t3, n3, e3, r2.function, o2, a2, u2, s2, c2, f2, l2, h2));
            } else l2 && !t3.Iyt || s2 || 13 !== r2.type || (T2 = Y(t3, t3, n3, e3, r2, o2, a2, u2, c2, l2));
            return r2.ensureSingle && (T2.ensureSingle = true), T2;
          }
        }
        function W(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
          var l2, h2, d2 = function(r3, o3, a3, u3, l3) {
            return n3.call(this, r3, a3, u3, o3, t3, e3, i3, s2, c2, l3, f2);
          }, v2 = t3.getSheet();
          v2 && (l2 = v2.b8 && (v2.parent || v2).xyt(), h2 = v2.Ut && v2.Ut.pj(), Q(l2, d2, s2, h2));
        }
        function Q(t3, n3, e3, i3) {
          var r2, o2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2;
          if (t3) for (f2 = 0; f2 < t3.length; f2++) {
            for (l2 = true, h2 = true, d2 = u.maxRowCount - 1, v2 = u.maxColumnCount - 1, g2 = 0, m2 = (p2 = (r2 = t3[f2].validator)._S).length; g2 < m2 && (y2 = (b2 = p2[g2]).rowCount, w2 = b2.colCount, s2 = b2.row, c2 = b2.col, -1 !== y2 && (h2 = false, d2 = d2 > s2 ? s2 : d2), -1 !== w2 && (l2 = false, v2 = v2 > c2 ? c2 : v2), l2 || h2); g2++) ;
            if (!(e3 && h2 || !e3 && l2) && (M2 = (a2 = t3[f2].sheet).Uw(), o2 = r2.condition(), C2 = void 0, p2 && p2[0] && (-1 === p2[0].row && (C2 = { VSe: 1 }), -1 === p2[0].col && (C2 = { zSe: 1 })), (S2 = o2.getExpressions()) && S2.length > 0)) {
              for (T2 = 0; T2 < S2.length; T2++) x2 = S2[T2], S2[T2] = n3(M2, x2, d2, v2, C2);
              o2.setExpressions(S2, i3);
            }
          }
        }
        function K(t3) {
          var n3, e3, i3, r2 = [], o2 = t3.parent, a2 = [].concat(o2 && o2.sheets || [t3]), u2 = null == o2 ? void 0 : o2.mp;
          if (u2 && u2.length) for (n3 = 0, e3 = u2; n3 < e3.length; n3++) (i3 = e3[n3]) && i3.getSheet && i3.getSheet() && a2.push(i3.getSheet());
          return a2.forEach((function(t4) {
            if (!t4.xT) {
              var n4 = t4.conditionalFormats, e4 = n4 && n4.getRules();
              e4 && e4.length && e4.forEach((function(n5) {
                n5.KK && r2.push({ rule: n5, sheet: t4 });
              }));
            }
          })), r2;
        }
        function J(t3) {
          var n3, e3, i3, r2 = [], o2 = t3.parent, a2 = [].concat(o2 && o2.sheets || [t3]), u2 = null == o2 ? void 0 : o2.mp;
          if (u2 && u2.length) for (n3 = 0, e3 = u2; n3 < e3.length; n3++) (i3 = e3[n3]) && i3.getSheet && i3.getSheet() && a2.push(i3.getSheet());
          return a2.forEach((function(t4) {
            t4.tables && (r2 = r2.concat(t4.tables.all()));
          })), r2;
        }
        function X(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2 = function(a3, u3, s3, c3, f2) {
            return n3.call(this, a3, s3, c3, u3, t3, e3, i3, r2, o2, f2);
          }, c2 = t3.getSheet();
          c2 && q(a2 = K(c2), s2, u2 = c2.Ut && c2.Ut.pj(), r2, o2);
        }
        function q(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2;
          if (t3) for (o2 = 0, a2 = t3.length; o2 < a2; o2++) {
            if (s2 = (u2 = t3[o2].rule).ranges(), f2 = (c2 = w(s2)).r, l2 = c2.c, d2 = (h2 = t3[o2].sheet).Uw(), v2 = u2.condition(), (p2 = h2.tables) && s2 && 1 === s2.length && (m2 = (g2 = s2[0]).row, b2 = g2.col, y2 = g2.rowCount, M2 = g2.colCount, C2 = void 0, r2 && i3 ? C2 = p2.AJ(m2, b2, y2, M2) : h2.EB && h2.Nyt && (C2 = [h2.Nyt]), C2 && C2.length)) {
              for (S2 = false, T2 = 0, x2 = C2.length; T2 < x2; T2++) if (I2 = (A2 = C2[T2]).row, k2 = A2.col, N2 = A2.rowCount, j2 = A2.colCount, m2 === I2 && y2 === N2 && b2 >= k2 && b2 + M2 <= k2 + j2) {
                S2 = true;
                break;
              }
              if (S2) continue;
            }
            if (v2 || (u2.initCondition(), v2 = u2.condition()), D2 = v2 && v2.getExpressions(), _2 = void 0, s2 && s2[0] && (-1 === s2[0].row && (_2 = { VSe: 1 }), -1 === s2[0].col && (_2 = { zSe: 1 })), D2 && D2.length > 0) {
              for (O2 = 0; O2 < D2.length; O2++) E2 = D2[O2], D2[O2] = n3(d2, E2, f2, l2, _2);
              v2.setExpressions(D2, e3);
            }
          }
        }
        function $(t3, n3, e3) {
          var i3 = function(t4, i4, r3, o2) {
            return _t.call(this, t4, r3, o2, i4, n3, e3);
          }, r2 = t3.getSheet();
          nt(r2, i3, r2.Ut.pj());
        }
        function tt(t3, n3, e3, i3, r2, o2) {
          var a2, u2 = function(a3, u3, s3, c2, f2) {
            return n3.call(this, a3, s3, c2, u3, t3, e3, i3, r2, o2, f2);
          }, s2 = t3.getSheet();
          s2 && (a2 = s2.Ut && s2.Ut.pj(), nt(s2, u2, a2, e3, i3, r2, o2));
        }
        function nt(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = J(t3);
          u2 && u2.forEach((function(e4) {
            var u3, s2, c2, f2, l2, h2;
            e4 && !e4.w0r && (u3 = e4.Mf.Uw(), s2 = e4.dataRange(), c2 = s2.row, f2 = s2.col, h2 = e4.footerIndex(), e4.BSt.forEach((function(s3, d2) {
              var v2, p2, g2, m2, w2;
              l2 = f2 + d2, (v2 = s3.dataAreaFormula()) && (g2 = (p2 = n3(u3, v2, c2, l2)) !== v2, m2 = e4.NTr(), g2 && e4.Mf.Ut.YSt(e4, b, { column: s3.name(), expr: v2 }), s3.dataAreaFormula(p2), o2 && a2 && r2 && e4.Mf === t3 && (!m2 || g2) ? e4.csr(t3, i3, r2, s3, l2, g2) : m2 && g2 && e4.Mf === t3 && e4.tGr(s3, l2, g2)), (w2 = s3.footerFormula()) && ((p2 = n3(u3, w2, h2, l2)) !== w2 && e4.Mf.Ut.YSt(e4, y, { column: s3.name(), expr: w2 }), s3.footerFormula(p2));
            })));
          }));
        }
        function et(t3, n3, e3) {
          var i3 = function(t4, i4, r3, o3) {
            return _t.call(this, t4, r3, o3, i4, n3, e3);
          }, r2 = t3.getSheet(), o2 = K(r2);
          q(o2, i3, r2.Ut.pj());
        }
        function it(t3, e3, i3, r2, a2, u2, f2) {
          var l2, h2, d2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2;
          if (!f2 && (w2 = (y2 = (b2 = (m2 = t3.getSheet()).Ut) && b2.Ehe()) && y2._he())) {
            for (C2 in M2 = { isDefault: true, oldIsDefault: true, triggerSource: n2.ROW_COL_FORMULA_ADJUST_TRIGGER_SOURCE, index: i3, count: r2, isRow: a2, isAdd: u2 }, w2) if (w2.hasOwnProperty(C2)) {
              if (!(S2 = w2[C2])) continue;
              for (T2 in S2) S2.hasOwnProperty(T2) && (A2 = +C2, I2 = +T2, (x2 = S2[T2]) && x2.expr && !c(m2.getValueIgnoreDefault(A2, I2)) && (k2 = m2.op(), N2 = x2.expr, j2 = x2.oldRow, D2 = x2.oldCol, k2 && j2 && D2 && N2 && (_2 = e3.call(self, t3, A2, I2, N2, t3, i3, r2, a2, u2, v), O2 = k2.unparse(t3, _2, A2, I2), null === (h2 = null === (l2 = m2.parent) || void 0 === l2 ? void 0 : l2.suspendOp) || void 0 === h2 || h2.call(l2), b2.setDefaultValue(A2, I2, O2, p, s.DefaultChangeValueType.Expression, p, true), null === (g2 = null === (d2 = m2.parent) || void 0 === d2 ? void 0 : d2.resumeOp) || void 0 === g2 || g2.call(d2), (0, o.OHr)(m2, s.SheetArea.viewport, A2, I2, _2, N2, v, v, M2))));
            }
          }
        }
        function rt(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2, l2, h2;
          if (e3 >= 0 || !r2) {
            if (f2 = i3 + (r2 ? e3 : 0), c2 && f2 < e3 && f2 < a2) return i3;
            if (l2 = s2 && ot(o2, t3, s2), h2 = !s2 && ot(o2, t3, s2), (l2 || h2) && a2 <= e3 && (f2 += r2 ? u2 : 0), l2 = s2 && ot(o2, n3, s2), h2 = !s2 && ot(o2, n3, s2), l2 || h2) {
              if (a2 + u2 <= f2) f2 -= u2;
              else if (a2 <= f2) return m;
            }
            return c2 && a2 <= e3 && r2 && (f2 -= u2) + u2 > a2 && f2 < a2 ? m : f2 -= r2 ? e3 : 0;
          }
          return i3;
        }
        function ot(t3, n3, e3) {
          var i3 = e3 ? { 2: true } : { 1: true };
          return t3 === n3 || t3.Mf === n3.Mf && (3 === t3.nT && i3[n3.nT] || i3[t3.nT] && 3 === n3.nT);
        }
        function at(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
          var h2, d2, v2, p2, g2, b2, y2;
          if (e3 >= 0 || !r2) {
            if (h2 = i3 + (r2 ? e3 : 0), d2 = o2 + (a2 ? e3 : 0), v2 = s2 + c2 - 1, p2 = f2 && ot(u2, t3, f2), g2 = !f2 && ot(u2, t3, f2), (p2 || g2) && s2 <= e3 && (h2 += r2 ? c2 : 0, d2 += a2 ? c2 : 0), p2 = f2 && ot(u2, n3, f2), g2 = !f2 && ot(u2, n3, f2), p2 || g2) if (b2 = e3 + i3, y2 = e3 + o2, !l2 && v2 < h2 || l2 && v2 < b2) h2 -= c2, d2 -= c2;
            else {
              if (!l2 && s2 <= h2 && v2 >= d2 || l2 && s2 <= b2 && v2 >= y2) return m;
              !l2 && s2 > d2 || l2 && s2 > y2 || (!l2 && v2 <= d2 || l2 && v2 <= y2 ? (h2 = !l2 && s2 >= h2 || l2 && s2 >= b2 ? h2 : s2, d2 -= c2) : d2 = s2 - 1);
            }
            return h2 -= r2 ? e3 : 0, d2 -= a2 ? e3 : 0, l2 && s2 <= e3 && (h2 -= r2 ? c2 : 0, d2 -= r2 ? c2 : 0), { index: h2, endIndex: d2 };
          }
          return { index: i3, endIndex: o2 };
        }
        function ut(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2, h2, d2, g2, m2, b2, y2, w2, M2, C2, S2 = ut, T2 = n3;
          if (n3) if (n3.source) if (u2 = n3.source, (s2 = n3.endSource) && u2 !== s2) {
            if (!(c2 = u2.Mf && u2.Mf.parent)) return i2.kyt;
            s2 === e3 ? (f2 = e3.S3, T2.endSource = c2.getSheet(f2 - 1).Uw()) : u2 === e3 && (h2 = e3.S3, T2.source = c2.getSheet(h2).Uw()), delete e3.S3, T2.source === T2.endSource && delete T2.endSource;
          } else (t3 !== e3 && u2 === e3 || t3 === e3 && u2 !== e3) && (T2 = i2.kyt);
          else if (10 === n3.type) (r2 = S2(t3, n3.value, e3)) !== n3.value && (T2 = (0, i2.Ayt)(r2));
          else if (9 === n3.type) d2 = S2(t3, n3.value, e3), g2 = n3.value2 && S2(t3, n3.value2, e3), d2 === n3.value && g2 === n3.value2 || (T2 = (0, i2.rbt)(n3.operatorType, d2, g2));
          else if (7 === n3.type) {
            for (m2 = p, b2 = n3.arguments.length, a2 = 0; a2 < b2; a2++) if ((r2 = S2(t3, o2 = n3.arguments[a2], e3)) !== o2) {
              (m2 = [])[a2] = r2;
              break;
            }
            if (m2) {
              for (a2 = 0; a2 < b2; a2++) o2 = n3.arguments[a2], m2[a2] !== v && m2[a2] !== p || (m2[a2] = S2(t3, o2, e3));
              T2 = (0, i2.YJ)(n3, m2);
            }
            (0, i2.isExpression)(n3.function) && ((T2 = (0, i2.YJ)(n3, m2 || n3.arguments)).function = S2(t3, n3.function, e3));
          } else 8 === n3.type && (y2 = t3 || e3, w2 = l(n3.value), ((M2 = y2.getCustomName(w2)) && M2.source || (M2 = (C2 = y2.Lbt.getGlobalSourceModel() || y2.getCalcSourceModel()).getSource().getCustomName(w2)) && M2.source) && (u2 = M2.source), u2 && (t3 !== e3 && u2 === e3 || t3 === e3 && u2 !== e3) && (T2 = i2.kyt));
          return n3.ensureSingle && (T2.ensureSingle = true), T2;
        }
        function st(t3, n3, e3, i3, r2) {
          return ut(t3, i3, r2);
        }
        function ct(t3, n3) {
          return t3.yyt === t3.gyt && n3 !== t3.yyt;
        }
        function ft(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, b2 = !!r2.source, y2 = r2.source || t3, w2 = r2.rowRelative, M2 = r2.columnRelative, C2 = n3, S2 = e3, T2 = o2.yyt.Mf;
          if (o2.R0i && (l2 = r2.row, h2 = r2.column, C2 = o2.wyt + (l2 - o2.pyt) + T2.lT(o2.wyt, l2 - o2.pyt + 1, true), S2 = o2.Myt + (h2 - o2.byt) + T2.lT(o2.Myt, h2 - o2.byt + 1)), d2 = o2.Dyt(C2), v2 = o2._yt(S2), (n3 >= 0 || !w2) && (e3 >= 0 || !M2)) {
            if (u2 = r2.row + (w2 ? n3 : 0), s2 = r2.column + (M2 ? e3 : 0), a2 && a2.isNameID || t3 === o2.gyt && (t3 === o2.yyt ? f2 = o2.Eyt(o2.yyt, n3, e3, 1, 1) && !o2.R0i : (g2 = n3, m2 = e3, a2 && a2.crossSheetMoved && (g2 -= d2, m2 -= v2), f2 = o2.jyt(o2.gyt, g2, m2, 1, 1))), f2 && (u2 -= w2 ? d2 : 0, s2 -= M2 ? v2 : 0), y2 === o2.yyt && o2.Eyt(y2, u2, s2, 1, 1) && !o2.jyt(y2, u2, s2, 1, 1)) return i2.kyt;
            if ((c2 = (b2 && y2 === o2.gyt || !b2 && t3 === o2.gyt) && o2.jyt(o2.gyt, u2, s2, 1, 1)) && (u2 += d2, s2 += v2), u2 -= w2 ? n3 : 0, s2 -= M2 ? e3 : 0, y2 = r2.source, o2.gyt !== o2.yyt && (c2 && f2 ? b2 && (y2 = o2.yyt) : c2 ? y2 = o2.yyt : f2 && !b2 && (y2 = o2.gyt)), u2 !== r2.row || s2 !== r2.column || y2 !== r2.source) return (0, i2.knt)(y2, p, u2, s2, w2, M2);
          } else if ((n3 >= 0 || !w2) && -1 === e3) {
            if (u2 = r2.row + (w2 ? n3 : 0), o2.Eyt(t3, n3, e3, 1, 1) && (u2 -= w2 ? d2 : 0), o2.jyt(y2, u2, -1, 1, -1)) u2 += d2;
            else if (o2.Eyt(y2, u2, -1, 1, -1)) return i2.kyt;
            if ((u2 -= w2 ? n3 : 0) !== r2.row) return (0, i2.knt)(r2.source, p, u2, r2.column, w2, r2.columnRelative);
          } else if (-1 === n3 && e3 >= 0 && !M2) {
            if (s2 = r2.column + (M2 ? e3 : 0), o2.Eyt(t3, n3, e3, 1, 1) && (s2 -= M2 ? v2 : 0), o2.jyt(y2, u2, s2, 1, 1)) s2 += v2;
            else if (o2.Eyt(y2, u2, s2, 1, 1)) return i2.kyt;
            if (s2 -= M2 ? e3 : 0, u2 !== r2.row || s2 !== r2.column) return (0, i2.knt)(r2.source, r2.endSource, r2.row, s2, r2.rowRelative, M2);
          }
          return r2;
        }
        function lt(t3, n3) {
          if (!(n3 = t3.getIntersect(n3, 0, 0))) return p;
          var e3 = t3.row, i3 = t3.col, r2 = t3.rowCount, o2 = t3.colCount;
          return t3.rowCount === n3.rowCount && t3.colCount === n3.colCount || (t3.rowCount === n3.rowCount ? (t3.col === n3.col && (i3 = t3.col + n3.colCount), o2 = t3.colCount - n3.colCount) : t3.colCount === n3.colCount && (t3.row === n3.row && (e3 = t3.row + n3.rowCount), r2 = t3.rowCount - n3.rowCount)), (0, s.Ec)(e3, i3, r2, o2);
        }
        function ht(t3, n3, e3, i3, r2) {
          var o2, a2;
          return !(!n3 || !t3) && (!((o2 = n3.getIntersect(t3, 0, 0)) || !(a2 = n3.getIntersect(e3, 0, 0))) || !(!o2 || !(o2.rowCount === n3.rowCount && 0 !== r2 || o2.colCount === n3.colCount && 0 !== i3)));
        }
        function dt(t3, n3, e3) {
          var i3 = t3.getRange(n3, e3);
          return (0, s.Ec)(i3.row, i3.col, i3.rowCount, i3.colCount);
        }
        function vt(t3, n3, e3, i3) {
          var r2, o2 = lt(t3, n3);
          return o2 ? (r2 = o2.union(e3), i3 ? (r2.col = t3.col, r2.colCount = t3.colCount) : (r2.row = t3.row, r2.rowCount = t3.rowCount)) : r2 = e3, { startRow: r2.row, endRow: r2.row + r2.rowCount - 1, startColumn: r2.col, endColumn: r2.col + r2.colCount - 1 };
        }
        function pt(t3, n3, e3, i3, r2) {
          var o2, a2 = lt(t3, n3), u2 = t3.getIntersect(n3, 0, 0);
          return u2 ? (u2.row += i3, u2.col += r2, { startRow: (o2 = a2 ? a2.union(u2) : e3).row, endRow: o2.row + o2.rowCount - 1, startColumn: o2.col, endColumn: o2.col + o2.colCount - 1 }) : p;
        }
        function gt(t3, n3) {
          var e3 = t3.row, i3 = t3.col, r2 = t3.rowCount, o2 = t3.colCount, a2 = n3.row, u2 = n3.col, s2 = n3.rowCount, c2 = n3.colCount;
          return 1 === r2 && 1 !== o2 ? u2 < i3 && i3 <= u2 + c2 - 1 || u2 <= i3 + o2 - 1 && i3 + o2 - 1 < u2 + c2 - 1 : 1 !== o2 || 1 === r2 || (a2 < e3 && e3 <= a2 + s2 - 1 || a2 <= e3 + r2 - 1 && e3 + r2 - 1 < a2 + s2 - 1);
        }
        function mt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, c2, f2, l2 = dt(i3, r2, o2), h2 = l2.row, d2 = l2.row + l2.rowCount - 1, v2 = l2.col, p2 = l2.col + l2.colCount - 1, g2 = t3.pyt, m2 = g2 + t3.Sx - 1, b2 = t3.byt, y2 = b2 + t3.Cyt - 1, w2 = t3.wyt, M2 = t3.Myt, C2 = (0, s.Ec)(g2, b2, t3.Sx, t3.Cyt), S2 = (0, s.Ec)(w2, M2, t3.Sx, t3.Cyt), T2 = l2.getIntersect(S2, 0, 0);
          if (ht(C2, l2, S2, n3, e3)) if (c2 = void 0, f2 = void 0, u2 = 0 !== n3) if (f2 = d2 >= g2 && d2 <= m2, (c2 = h2 >= g2 && h2 <= m2) && f2) h2 += n3, d2 += n3;
          else if (c2 && !f2) if (n3 <= 0) h2 += n3;
          else if (g2 + n3 > d2) ;
          else {
            if (!(m2 + n3 < d2)) return pt(l2, C2, S2, n3, e3);
            if (g2 === h2) return vt(l2, C2, S2, u2);
            h2 += n3;
          }
          else if (!c2 && f2) if (n3 >= 0) d2 += n3;
          else if (m2 + n3 < h2) ;
          else {
            if (!(w2 > h2)) return pt(l2, C2, S2, n3, e3);
            if (m2 === d2) return vt(l2, C2, S2, u2);
            d2 += n3;
          }
          else T2 && !T2.equals(S2) && gt(l2, S2) && (a2 = lt(l2, T2)) && (h2 = a2.row, d2 = a2.row + a2.rowCount - 1, v2 = a2.col, p2 = a2.col + a2.colCount - 1);
          else if (f2 = p2 >= b2 && p2 <= y2, (c2 = v2 >= b2 && v2 <= y2) && f2) v2 += e3, p2 += e3;
          else if (c2 && !f2) if (e3 < 0) v2 += e3;
          else if (b2 + e3 > p2) ;
          else {
            if (!(y2 + e3 < p2)) return pt(l2, C2, S2, n3, e3);
            if (b2 === v2) return vt(l2, C2, S2, u2);
            v2 += e3;
          }
          else if (!c2 && f2) if (e3 > 0) p2 += e3;
          else if (y2 + e3 < v2) ;
          else {
            if (!(M2 > v2)) return pt(l2, C2, S2, n3, e3);
            if (y2 === p2) return vt(l2, C2, S2, u2);
            p2 += e3;
          }
          else T2 && !T2.equals(S2) && gt(l2, S2) && (a2 = lt(l2, T2)) && (h2 = a2.row, d2 = a2.row + a2.rowCount - 1, v2 = a2.col, p2 = a2.col + a2.colCount - 1);
          return { startRow: h2, endRow: d2, startColumn: v2, endColumn: p2 };
        }
        function bt(t3, n3, e3, i3) {
          return e3 > n3 || e3 + i3 - 1 < t3;
        }
        function yt(t3, n3, e3, i3) {
          return e3 <= t3 && e3 + i3 - 1 >= n3;
        }
        function wt(t3, n3, e3, i3) {
          return e3 > t3 && e3 + i3 - 1 < n3;
        }
        function Mt(t3, n3, e3, i3) {
          return e3 === t3 && e3 + i3 - 1 < n3 || e3 > t3 && e3 + i3 - 1 === n3;
        }
        function Ct(t3, n3, e3, i3) {
          return e3 < t3 && e3 + i3 - 1 >= t3 && e3 + i3 - 1 < n3 || e3 > t3 && e3 <= n3 && e3 + i3 - 1 > n3;
        }
        function St(t3, n3, e3, i3, r2) {
          return e3 <= t3 && r2 <= t3 || e3 + i3 - 1 >= n3 && r2 + i3 - 1 >= n3;
        }
        function Tt(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = [bt, yt, wt, Mt, Ct];
          for (a2 = 0; a2 < u2.length; a2++) if (u2[a2](t3, n3, e3, i3)) {
            o2 = a2 + "_";
            break;
          }
          if (e3 === r2) o2 += "9";
          else for (a2 = 0; a2 < u2.length; a2++) if (e3 !== r2 && u2[a2](t3, n3, r2, i3)) {
            o2 += a2;
            break;
          }
          return o2;
        }
        function xt(t3, n3, e3, i3, r2) {
          return { row: d(t3.startRow, n3), col: d(t3.startColumn, e3), endRow: h(t3.endRow, i3), endCol: h(t3.endColumn, r2) };
        }
        function At(t3, n3, e3, i3, r2) {
          return !r2.R0i && t3 === r2.yyt && r2.wyt <= n3 && n3 <= r2.Sx + r2.wyt - 1 && r2.Myt <= e3 && e3 <= r2.Cyt + r2.Myt - 1 && (n3 = n3 + r2.pyt - r2.wyt, e3 = e3 + r2.byt - r2.Myt), { startRow: i3.row + (i3.rowRelative ? n3 : 0), endRow: i3.endRow + (i3.endRowRelative ? n3 : 0), startColumn: i3.column + (i3.columnRelative ? e3 : 0), endColumn: i3.endColumn + (i3.endColumnRelative ? e3 : 0) };
        }
        function It(t3, n3, e3, r2, o2, a2, u2, s2, f2) {
          return c(a2) && (a2 = n3.startRow), c(u2) && (u2 = n3.startColumn), c(s2) && (s2 = n3.endRow), c(f2) && (f2 = n3.endColumn), (0, i2.lJ)(o2 || t3.source, p, t3.rowRelative ? a2 - e3 : a2, t3.columnRelative ? u2 - r2 : u2, t3.endRowRelative ? s2 - e3 : s2, t3.endColumnRelative ? f2 - r2 : f2, t3.rowRelative, t3.columnRelative, t3.endRowRelative, t3.endColumnRelative, e3, r2, t3.dHr);
        }
        function kt(t3, n3, e3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, v2, g2, m2, b2, y2 = At(t3, n3, e3, r2, o2), w2 = r2.source || t3;
          if (o2.gyt === w2 && o2.yyt === w2) switch (s2 = (a2 = Tt(y2.startRow, y2.endRow, o2.pyt, o2.Sx, o2.wyt)) + "-" + (u2 = Tt(y2.startColumn, y2.endColumn, o2.byt, o2.Cyt, o2.Myt)), c2 = o2.wyt - o2.pyt, f2 = o2.Myt - o2.byt, l2 = xt(y2, o2.pyt, o2.byt, o2.pyt + o2.Sx - 1, o2.byt + o2.Cyt - 1), v2 = void 0, g2 = void 0, m2 = void 0, b2 = void 0, s2) {
            case x.outToCover + "-" + x.outToCover:
            case x.crossToCover + "-" + x.outToCover:
            case x.outToCover + "-" + x.crossToCover:
            case x.crossToCover + "-" + x.crossToCover:
            case x.coverToCover + "-" + x.outToCover:
            case x.outToCover + "-" + x.coverToCover:
            case x.coverNoMove + "-" + x.outToCover:
            case x.outToCover + "-" + x.coverNoMove:
              return i2.kyt;
            case x.outToCross + "-" + x.outToCover:
            case x.coverToCross + "-" + x.outToCover:
            case x.insideToCross + "-" + x.outToCover:
            case x.partToCross + "-" + x.outToCover:
            case x.crossToCross + "-" + x.outToCover:
            case x.crossNoMove + "-" + x.outToCover:
            case x.outToCross + "-" + x.coverNoMove:
            case x.outToCross + "-" + x.coverToCover:
            case x.outToCross + "-" + x.crossToCover:
            case x.insideToCross + "-" + x.coverNoMove:
            case x.insideToCross + "-" + x.coverToCover:
            case x.insideToCross + "-" + x.crossToCover:
              return o2.wyt <= y2.startRow ? It(r2, y2, n3, e3, p, o2.wyt + o2.Sx) : It(r2, y2, n3, e3, p, p, p, o2.wyt - 1);
            case x.outToCover + "-" + x.outToCross:
            case x.outToCover + "-" + x.coverToCross:
            case x.outToCover + "-" + x.insideToCross:
            case x.outToCover + "-" + x.partToCross:
            case x.outToCover + "-" + x.crossToCross:
            case x.outToCover + "-" + x.crossNoMove:
            case x.coverNoMove + "-" + x.outToCross:
            case x.coverToCover + "-" + x.outToCross:
            case x.crossToCover + "-" + x.outToCross:
            case x.coverNoMove + "-" + x.insideToCross:
            case x.coverToCover + "-" + x.insideToCross:
            case x.crossToCover + "-" + x.insideToCross:
              return o2.Myt < y2.startColumn ? It(r2, y2, n3, e3, p, p, o2.Myt + o2.Cyt) : It(r2, y2, n3, e3, p, p, p, p, o2.Myt - 1);
            case x.partToOut + "-" + x.coverNoMove:
            case x.crossToOut + "-" + x.coverNoMove:
              if (!St(y2.startRow, y2.endRow, o2.pyt, o2.Sx, o2.wyt)) return It(r2, y2, n3, e3);
            case x.coverNoMove + "-" + x.partToOut:
            case x.coverNoMove + "-" + x.crossToOut:
              if (a2 === x.coverNoMove && !St(y2.startColumn, y2.endColumn, o2.byt, o2.Cyt, o2.Myt)) return It(r2, y2, n3, e3);
            case x.crossToInside + "-" + x.coverNoMove:
            case x.coverNoMove + "-" + x.crossToInside:
              return y2.startRow >= o2.pyt && u2 === x.coverNoMove || y2.startColumn >= o2.byt && a2 === x.coverNoMove ? It(r2, y2, n3, e3, p, l2.row + c2, l2.col + f2) : It(r2, y2, n3, e3, p, p, p, l2.endRow + c2, l2.endCol + f2);
            case x.partToInside + "-" + x.coverNoMove:
              return y2.startRow >= o2.pyt ? It(r2, y2, n3, e3, p, h(l2.row + c2, l2.endRow + 1)) : It(r2, y2, n3, e3, p, p, p, d(l2.endRow + c2, l2.row - 1));
            case x.coverNoMove + "-" + x.partToInside:
              return y2.startColumn >= o2.byt && a2 === x.coverNoMove ? It(r2, y2, n3, e3, p, p, h(l2.col + f2, l2.endCol + 1)) : It(r2, y2, n3, e3, p, p, p, p, d(l2.endCol + f2, l2.col - 1));
            case x.partToCross + "-" + x.coverNoMove:
            case x.crossToPart + "-" + x.coverNoMove:
            case x.crossToCross + "-" + x.coverNoMove:
              if (St(y2.startRow, y2.endRow, o2.pyt, o2.Sx, o2.wyt)) return y2.startRow >= o2.pyt ? It(r2, y2, n3, e3, p, l2.row + c2) : It(r2, y2, n3, e3, p, p, p, l2.endRow + c2);
            case x.crossToCover + "-" + x.coverNoMove:
            case x.partToPart + "-" + x.coverNoMove:
              return o2.pyt < o2.wyt ? It(r2, y2, n3, e3, p, h(l2.row + c2, l2.endRow + 1), p, l2.endRow + c2) : It(r2, y2, n3, e3, p, l2.row + c2, p, d(l2.endRow + c2, l2.row - 1));
            case x.coverNoMove + "-" + x.partToCross:
            case x.coverNoMove + "-" + x.crossToPart:
            case x.coverNoMove + "-" + x.crossToCross:
              if (St(y2.startColumn, y2.endColumn, o2.byt, o2.Cyt, o2.Myt)) return y2.startColumn >= o2.byt ? It(r2, y2, n3, e3, p, p, l2.col + f2) : It(r2, y2, n3, e3, p, p, p, p, l2.endCol + f2);
            case x.coverNoMove + "-" + x.crossToCover:
            case x.coverNoMove + "-" + x.partToPart:
              return o2.byt < o2.Myt ? It(r2, y2, n3, e3, p, p, h(l2.col + f2, l2.endCol + 1), p, l2.endCol + f2) : It(r2, y2, n3, e3, p, p, l2.col + f2, p, d(l2.endCol + f2, l2.col - 1));
            case x.crossToCross + "-" + x.coverToCover:
            case x.crossToPart + "-" + x.coverToCover:
            case x.partToCross + "-" + x.coverToCover:
              if (St(y2.startRow, y2.endRow, o2.pyt, o2.Sx, o2.wyt)) return It(r2, y2, n3, e3);
            case x.coverToCover + "-" + x.crossToCross:
            case x.coverToCover + "-" + x.crossToPart:
            case x.coverToCover + "-" + x.partToCross:
              if (a2 === x.coverToCover && St(y2.startColumn, y2.endColumn, o2.byt, o2.Cyt, o2.Myt)) return It(r2, y2, n3, e3);
            case x.coverToCover + "-" + x.partToPart:
            case x.partToPart + "-" + x.coverToCover:
            case x.coverToCover + "-" + x.crossToCover:
            case x.crossToCover + "-" + x.coverToCover:
              return It(r2, y2, n3, e3, p, l2.row + c2, l2.col + f2, l2.endRow + c2, l2.endCol + f2);
            case x.partToPart + "-" + x.crossToCover:
            case x.partToCross + "-" + x.crossToCover:
            case x.crossToPart + "-" + x.crossToCover:
            case x.crossToCross + "-" + x.crossToCover:
              return St(y2.startRow, y2.endRow, o2.pyt, o2.Sx, o2.wyt) ? It(r2, y2, n3, e3) : (l2.row === y2.startRow ? l2.col === y2.startColumn ? (m2 = y2.endColumn, b2 = l2.col + f2, v2 = l2.endRow + c2, g2 = l2.row + c2) : (m2 = y2.startColumn, b2 = l2.endCol + f2, v2 = a2 === x.partToCross || a2 === x.crossToCross ? o2.pyt + c2 - 1 : y2.endRow, g2 = y2.startRow) : l2.col === y2.startColumn ? (m2 = y2.endColumn, b2 = l2.col + f2, v2 = y2.endRow, g2 = a2 === x.partToCross || a2 === x.crossToCross ? o2.pyt + o2.Sx - 1 + c2 + 1 : y2.startRow) : (m2 = y2.startColumn, b2 = l2.endCol + f2, v2 = a2 === x.partToCross || a2 === x.crossToCross ? l2.row + c2 : y2.startRow, g2 = l2.endRow + c2), It(r2, y2, n3, e3, p, h(v2, g2), h(m2, b2), d(v2, g2), d(m2, b2)));
            case x.crossToCover + "-" + x.partToPart:
            case x.crossToCover + "-" + x.partToCross:
            case x.crossToCover + "-" + x.crossToPart:
            case x.crossToCover + "-" + x.crossToCross:
              return St(y2.startColumn, y2.endColumn, o2.byt, o2.Cyt, o2.Myt) ? It(r2, y2, n3, e3) : (l2.row === y2.startRow ? l2.col === y2.startColumn ? (m2 = l2.endCol + f2, b2 = l2.col + f2, v2 = y2.endRow, g2 = l2.row + c2) : (m2 = y2.endColumn, b2 = u2 === x.partToCross || u2 === x.crossToCross ? o2.byt + o2.Cyt - 1 + f2 + 1 : y2.startColumn, v2 = y2.endRow, g2 = l2.row + c2) : l2.col === y2.startColumn ? (m2 = y2.startColumn, b2 = u2 === x.partToCross || u2 === x.crossToCross ? o2.byt + f2 - 1 : y2.endColumn, v2 = l2.endRow + c2, g2 = y2.startRow) : (m2 = u2 === x.partToCross || u2 === x.crossToCross ? l2.col + f2 : y2.startColumn, b2 = l2.endCol + f2, v2 = y2.startRow, g2 = l2.endRow + c2), It(r2, y2, n3, e3, p, h(v2, g2), h(m2, b2), d(v2, g2), d(m2, b2)));
            case x.coverToOut + "-" + x.coverToOut:
            case x.coverToOut + "-" + x.coverToCross:
            case x.coverToOut + "-" + x.coverToCover:
            case x.coverToOut + "-" + x.coverNoMove:
            case x.coverToCross + "-" + x.coverToOut:
            case x.coverToCross + "-" + x.coverToCross:
            case x.coverToCross + "-" + x.coverToCover:
            case x.coverToCross + "-" + x.coverNoMove:
            case x.coverToCover + "-" + x.coverToOut:
            case x.coverToCover + "-" + x.coverToCross:
            case x.coverToCover + "-" + x.coverToCover:
            case x.coverToCover + "-" + x.coverNoMove:
            case x.coverNoMove + "-" + x.coverToOut:
            case x.coverNoMove + "-" + x.coverToCross:
            case x.coverNoMove + "-" + x.coverToCover:
              return It(r2, y2, n3, e3, p, y2.startRow + c2, y2.startColumn + f2, y2.endRow + c2, y2.endColumn + f2);
            default:
              return It(r2, y2, n3, e3);
          }
        }
        function Nt(t3, n3, e3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2 = !!r2.source, G2 = P2 ? r2.source : t3, U2 = a2 && a2.isDataValidator, H2 = ct(o2, t3), V2 = false, z2 = r2.rowRelative, Y2 = r2.columnRelative, Z2 = r2.endRowRelative, W2 = r2.endColumnRelative;
          if (n3 >= 0 || !z2 || !Z2 || e3 >= 0 || !Y2 || !W2) {
            if (c2 = r2.row + (z2 ? n3 : 0), f2 = r2.endRow + (Z2 ? n3 : 0), l2 = r2.column + (Y2 ? e3 : 0), d2 = f2 - c2 + 1, g2 = (h2 = r2.endColumn + (W2 ? e3 : 0)) - l2 + 1, !U2 && H2) {
              if (x2 = o2.jyt(G2, c2, l2, d2, g2)) return r2.offset(u2, s2, true, n3, e3);
              if (o2.Eyt(G2, c2, l2, d2, g2)) return i2.kyt;
              if (G2 !== o2.gyt || G2 !== o2.yyt || 0 !== u2 && 0 !== s2) return r2;
              V2 = true;
            }
            if (a2 && a2.isNameID || t3 === o2.gyt && (t3 === o2.yyt ? T2 = o2.Eyt(o2.yyt, n3, e3, 1, 1) : (A2 = n3, I2 = e3, a2 && a2.crossSheetMoved && (A2 -= u2, I2 -= s2), T2 = o2.jyt(o2.gyt, A2, I2, 1, 1))), (V2 || t3 === G2 && t3 === o2.gyt && t3 === o2.yyt) && (k2 = n3, N2 = e3, T2 && (k2 -= u2, N2 -= s2), 0 === u2 || 0 === s2)) {
              if (!(j2 = mt(o2, u2, s2, r2, k2, N2))) return i2.kyt;
              if (0 === s2 && u2 && j2.endColumn >= h2 && j2.startColumn <= l2 || 0 === u2 && s2 && j2.endRow >= f2 && j2.startRow <= c2) return D2 = j2.startRow, _2 = j2.startColumn, O2 = j2.endRow, E2 = j2.endColumn, D2 === c2 && O2 === f2 && _2 === l2 && E2 === h2 ? r2 : (z2 && (D2 -= n3), Z2 && (O2 -= n3), Y2 && (_2 -= e3), W2 && (E2 -= e3), (0, i2.lJ)(r2.source, p, D2, _2, O2, E2, z2, Y2, Z2, W2, n3, e3, r2.dHr));
            }
            if (T2 && (R2 = o2.wyt - o2.pyt, L2 = o2.Myt - o2.byt, d2 += (z2 ? -R2 : 0) + (Z2 ? R2 : 0), g2 += (Y2 ? -L2 : 0) + (W2 ? L2 : 0)), G2 === o2.yyt && o2.Eyt(G2, c2, l2, d2, g2) && !g2 && (!z2 && !Y2 && !Z2 && !W2 || !T2)) return i2.kyt;
            if (S2 = (P2 && G2 === o2.gyt || !P2 && t3 === o2.gyt) && (!T2 && o2.jyt(o2.gyt, c2, l2, d2, g2) || T2 && o2.Eyt(o2.yyt, z2 ? c2 : c2 + u2, Y2 ? l2 : l2 + s2, d2, g2)), T2 && (c2 -= y2 = z2 ? u2 : 0, f2 -= w2 = Z2 ? u2 : 0, l2 -= M2 = Y2 ? s2 : 0, h2 -= C2 = W2 ? s2 : 0), F2 = false, S2) c2 += m2 = u2, f2 += m2, l2 += b2 = s2, h2 += b2;
            else if (o2.Eyt(G2, c2, l2, d2, g2)) {
              if (!(B2 = o2.intersectWith(G2, c2, l2, d2, g2)) || B2.rowCount !== d2 && B2.colCount !== g2) return i2.kyt;
              c2 = B2.row + u2, l2 = B2.col + s2, f2 = c2 + B2.rowCount, h2 = l2 + B2.colCount, F2 = true;
            }
            if (c2 -= z2 ? n3 : 0, f2 -= Z2 ? n3 : 0, l2 -= Y2 ? e3 : 0, h2 -= W2 ? e3 : 0, o2.gyt === o2.yyt ? G2 = P2 ? r2.source : v : (G2 = r2.source, S2 && T2 && P2 ? G2 = o2.yyt : S2 && T2 || (S2 ? G2 = o2.yyt : T2 && !P2 && (G2 = o2.gyt))), c2 !== r2.row || l2 !== r2.column || f2 !== r2.endRow || h2 !== r2.endColumn || F2 || G2 !== r2.source) return (0, i2.lJ)(G2, p, c2, l2, f2, h2, z2, Y2, Z2, W2, n3, e3, r2.dHr);
          }
        }
        function jt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2 = !!i3.source, l2 = f2 ? i3.source : t3;
          return l2 !== r2.gyt || (a2 = i3.row + (i3.rowRelative ? n3 : 0), (u2 = i3.endRow + (i3.endRowRelative ? n3 : 0)) === o2.endRow() && (a2 === o2.startRow() || o2.showHeader() && a2 === o2.startRow() + 1) && (s2 = i3.column + (i3.columnRelative ? e3 : 0), c2 = i3.endColumn + (i3.endColumnRelative ? e3 : 0), s2 >= o2.startColumn() && c2 <= o2.endColumn() && (i3.endRow += r2.wyt - r2.pyt))), i3;
        }
        function Dt(t3, n3, e3, r2, o2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2 = !!r2.source, F2 = L2 ? r2.source : t3, B2 = r2.Tyt(), P2 = n3, G2 = e3, U2 = o2.yyt.Mf;
          if (o2.R0i && (m2 = r2.row, b2 = r2.column, P2 = o2.wyt + (m2 - o2.pyt) + U2.lT(o2.wyt, m2 - o2.pyt + 1, true), G2 = o2.Myt + (b2 - o2.byt) + U2.lT(o2.Myt, b2 - o2.byt + 1)), y2 = o2.Dyt(P2), w2 = o2._yt(G2), 0 === B2) {
            if (M2 = !o2.Oyt && kt(t3, n3, e3, r2, o2)) return u2 && u2.tableExpand && (M2 = jt(t3, n3, e3, M2, o2, u2.tableExpand)), M2;
            if (M2 = Nt(t3, n3, e3, r2, o2, u2, y2, w2)) return M2;
          } else if (1 === B2) {
            if (s2 = r2.rowRelative, f2 = r2.endRowRelative, n3 >= 0 || !s2 || !f2) {
              if (h2 = r2.row + (s2 ? n3 : 0), d2 = r2.endRow + (f2 ? n3 : 0), g2 = t3 === o2.gyt && t3 === o2.yyt && o2.Eyt(o2.yyt, n3, e3, 1, 1), F2 === o2.gyt && F2 === o2.yyt && (0 === o2.byt && 0 === o2.Myt || -1 === o2.byt && -1 === o2.Myt) && o2.Cyt === F2.getColumnCount()) {
                if (C2 = o2.pyt, S2 = o2.wyt, T2 = o2.Sx, g2 && (h2 -= s2 ? y2 : 0, d2 -= f2 ? y2 : 0), h2 > d2) return i2.kyt;
                if (x2 = C2 + T2, I2 = d2 >= C2 && x2 > d2, (A2 = h2 >= C2 && x2 > h2) && I2) return g2 ? r2 : r2.offset(y2, w2, true, n3, e3);
                if (k2 = S2 + T2, A2 && S2 <= d2 ? (h2 += y2, k2 > d2 && d2 >= S2 && (d2 = k2 - 1, h2 = x2)) : I2 && k2 >= h2 && (d2 += y2, S2 <= h2 && v2 < k2 && (h2 = S2, d2 = C2 - 1)), d2 -= f2 ? n3 : 0, (h2 -= s2 ? n3 : 0) !== r2.row || d2 !== r2.endRow) return (0, i2.lJ)(r2.source, r2.endSource, h2, a.BAND_INDEX_CONST, d2, a.BAND_INDEX_CONST, s2, c2, f2, l2, n3, e3, r2.dHr);
              }
              if (g2) return r2.offset(-y2, w2, true, n3, e3);
            }
          } else if (2 === B2 && (c2 = r2.columnRelative, l2 = r2.endColumnRelative, e3 >= 0 || !c2 || !l2)) {
            if (v2 = r2.column + (c2 ? e3 : 0), p2 = r2.endColumn + (l2 ? e3 : 0), g2 = t3 === o2.gyt && t3 === o2.yyt && o2.Eyt(o2.yyt, n3, e3, 1, 1), F2 === o2.gyt && F2 === o2.yyt && (0 === o2.pyt && 0 === o2.wyt || -1 === o2.pyt && -1 === o2.wyt) && o2.Sx === F2.getRowCount()) {
              if (N2 = o2.byt, j2 = o2.Myt, D2 = o2.Cyt, g2 && (v2 -= c2 ? w2 : 0, p2 -= l2 ? w2 : 0), v2 > p2) return i2.kyt;
              if (_2 = N2 + D2, E2 = p2 >= N2 && _2 > p2, (O2 = v2 >= N2 && _2 > v2) && E2) return g2 ? r2 : r2.offset(y2, w2, true, n3, e3);
              if (R2 = j2 + D2, O2 && j2 <= p2 ? (v2 += w2, R2 > p2 && p2 >= j2 && (p2 = R2 - 1, v2 = _2)) : E2 && R2 >= v2 && (p2 += w2, j2 <= v2 && v2 < R2 && (v2 = j2, p2 = N2 - 1)), p2 -= l2 ? e3 : 0, (v2 -= c2 ? e3 : 0) !== r2.column || p2 !== r2.endColumn) return (0, i2.lJ)(r2.source, r2.endSource, a.BAND_INDEX_CONST, v2, a.BAND_INDEX_CONST, p2, s2, c2, f2, l2, n3, e3, r2.dHr);
            }
            if (g2) return r2.offset(y2, -w2, false, n3, e3);
          }
          return r2;
        }
        function _t(t3, n3, e3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, g2, m2 = _t, b2 = r2;
          if (1 === r2.type && r2.hmt()) b2 = a2 ? ft(t3, n3, e3, r2, o2, u2) : Et(t3, n3, e3, r2, o2);
          else if (1 === r2.type) b2 = a2 ? Dt(t3, n3, e3, r2, o2, u2) : Rt(t3, n3, e3, r2, o2);
          else if (10 === r2.type) (s2 = m2(t3, n3, e3, r2.value, o2, a2, u2)) !== r2.value && (b2 = (0, i2.Ayt)(s2));
          else if (13 === r2.type) {
            if (b2 = r2.offset(0, 0, true), r2.ubt && (b2.ubt = r2.ubt, -1 === (c2 = r2.abt.getColumnIndexInTable(r2.ubt)))) return i2.kyt;
            if (r2.sbt && (b2.sbt = r2.sbt, -1 === (c2 = r2.abt.getColumnIndexInTable(r2.sbt)))) return i2.kyt;
          } else if (9 === r2.type) f2 = m2(t3, n3, e3, r2.value, o2, a2, u2), l2 = r2.value2 && m2(t3, n3, e3, r2.value2, o2, a2, u2), f2 === r2.value && l2 === r2.value2 || (b2 = (0, i2.rbt)(r2.operatorType, f2, l2));
          else if (7 === r2.type) {
            for (h2 = p, d2 = void 0, c2 = void 0, g2 = r2.arguments.length, c2 = 0; c2 < g2; c2++) if ((s2 = m2(t3, n3, e3, d2 = r2.arguments[c2], o2, a2, u2)) !== d2) {
              (h2 = [])[c2] = s2;
              break;
            }
            if (h2) {
              for (c2 = 0; c2 < g2; c2++) d2 = r2.arguments[c2], h2[c2] !== v && h2[c2] !== p || (h2[c2] = m2(t3, n3, e3, d2, o2, a2, u2));
              b2 = (0, i2.YJ)(r2, h2);
            }
            (0, i2.isExpression)(r2.function) && ((b2 = (0, i2.YJ)(r2, h2 || r2.arguments)).function = m2(t3, n3, e3, r2.function, o2, a2, u2));
          }
          return r2.ensureSingle && (b2.ensureSingle = true), b2;
        }
        function Ot(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = n3.gyt.getSheet(), g2 = p2.Ut.pj();
          for (i3 = 0; i3 < t3.length; i3++) if ((r2 = t3[i3].validator).rge) delete r2.rge;
          else if (o2 = r2._S, u2 = (a2 = w(o2)).r, s2 = a2.c, f2 = (c2 = t3[i3].sheet).Uw(), (h2 = (l2 = r2.condition()).getExpressions()) && h2.length > 0) {
            for (d2 = 0; d2 < h2.length; d2++) v2 = h2[d2], h2[d2] = _t(f2, u2, s2, v2, n3, e3, { isDataValidator: true });
            l2.setExpressions(h2, g2);
          }
        }
        function Et(t3, n3, e3, r2, o2) {
          var a2, u2, s2 = r2.source || t3, c2 = r2.rowRelative, f2 = r2.columnRelative, l2 = o2.Dyt(n3), h2 = o2._yt(e3);
          if ((n3 >= 0 || !c2) && (e3 >= 0 || !f2)) {
            if (a2 = r2.row + (c2 ? n3 : 0), u2 = r2.column + (f2 ? e3 : 0), o2.Eyt(t3, n3, e3, 1, 1) ? (a2 -= c2 ? l2 : 0, u2 -= f2 ? h2 : 0) : o2.jyt(t3, a2, u2, 1, 1) && (a2 += c2 ? l2 : 0, u2 += f2 ? h2 : 0), o2.jyt(s2, a2, u2, 1, 1) ? (a2 += l2, u2 += h2) : o2.Eyt(s2, a2, u2, 1, 1) && (a2 -= l2, u2 -= h2), u2 -= f2 ? e3 : 0, (a2 -= c2 ? n3 : 0) !== r2.row || u2 !== r2.column) return (0, i2.knt)(r2.source, p, a2, u2, c2, f2);
          } else if ((n3 >= 0 || !c2) && -1 === e3) {
            if (a2 = r2.row + (c2 ? n3 : 0), o2.Eyt(t3, n3, -1, 1, -1) ? a2 -= c2 ? l2 : 0 : o2.jyt(t3, a2, -1, 1, -1) && (a2 += c2 ? l2 : 0), o2.jyt(s2, a2, -1, 1, -1) ? a2 += l2 : o2.Eyt(s2, a2, -1, 1, -1) && (a2 -= l2), (a2 -= c2 ? n3 : 0) !== r2.row || u2 !== r2.column) return (0, i2.knt)(r2.source, p, a2, r2.column, c2, r2.columnRelative);
          } else if (-1 === n3 && e3 >= 0 && !f2 && (u2 = r2.column + 0, o2.Eyt(t3, -1, e3, -1, 1) ? u2 -= 0 : o2.jyt(t3, -1, u2, -1, 1) && (u2 += 0), o2.jyt(s2, -1, u2, -1, 1) ? u2 += h2 : o2.Eyt(s2, -1, u2, -1, 1) && (u2 -= h2), u2 -= 0, a2 !== r2.row || u2 !== r2.column)) return (0, i2.knt)(r2.source, p, r2.row, u2, r2.rowRelative, f2);
          return r2;
        }
        function Rt(t3, n3, e3, r2, o2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2 = r2.source || t3, x2 = r2.Tyt(), A2 = o2.Dyt(n3), I2 = o2._yt(e3);
          if (0 === x2) {
            if (d2 = r2.rowRelative, v2 = r2.columnRelative, g2 = r2.endRowRelative, m2 = r2.endColumnRelative, !(n3 >= 0) && d2 && g2 || !(e3 >= 0) && v2 && m2) if (!(n3 >= 0) && d2 && g2 || -1 !== e3) {
              if (-1 === n3 && (e3 >= 0 || !v2 || !m2)) {
                if ((c2 = r2.column + (v2 ? e3 : 0)) < (f2 = r2.endColumn + (m2 ? e3 : 0))) return i2.kyt;
                if (o2.Eyt(t3, -1, e3, -1, 1) ? (c2 -= M2 = v2 ? I2 : 0, f2 -= S2 = m2 ? I2 : 0) : o2.jyt(t3, -1, e3, -1, 1) && (c2 += M2 = v2 ? I2 : 0, f2 += S2 = m2 ? I2 : 0), h2 = f2 - c2, o2.jyt(T2, -1, c2, -1, h2) ? (c2 += y2 = I2, f2 += y2) : o2.Eyt(T2, -1, c2, -1, h2) && (c2 -= y2 = I2, f2 -= y2), f2 -= m2 ? e3 : 0, (c2 -= v2 ? e3 : 0) !== r2.column || f2 !== r2.endColumn) return (0, i2.lJ)(r2.source, p, c2, r2.endRow, f2, r2.rowRelative, v2, r2.endRowRelative, m2, n3, e3, r2.dHr);
              }
            } else {
              if ((u2 = r2.row + (d2 ? n3 : 0)) < (s2 = r2.endRow + (g2 ? n3 : 0))) return i2.kyt;
              if (o2.Eyt(t3, n3, -1, 1, -1) ? (u2 -= w2 = d2 ? A2 : 0, s2 -= C2 = d2 ? A2 : 0) : o2.jyt(t3, n3, -1, 1, -1) && (u2 += w2 = d2 ? A2 : 0, s2 += C2 = d2 ? A2 : 0), l2 = s2 - u2, o2.jyt(T2, u2, -1, l2, -1) ? (u2 += b2 = A2, s2 += b2) : o2.Eyt(T2, u2, -1, l2, -1) && (u2 -= b2 = A2, s2 -= b2), s2 -= g2 ? n3 : 0, (u2 -= d2 ? n3 : 0) !== r2.row || s2 !== r2.endRow) return (0, i2.lJ)(r2.source, p, u2, r2.column, s2, r2.endColumn, d2, r2.columnRelative, g2, r2.endColumnRelative, n3, e3, r2.dHr);
            }
            else if (u2 = r2.row + (d2 ? n3 : 0), s2 = r2.endRow + (g2 ? n3 : 0), c2 = r2.column + (v2 ? e3 : 0), l2 = s2 - u2, h2 = (f2 = r2.endColumn + (m2 ? e3 : 0)) - c2, o2.Eyt(t3, n3, e3, 1, 1) ? (u2 -= w2 = d2 ? A2 : 0, s2 -= C2 = g2 ? A2 : 0, c2 -= M2 = v2 ? I2 : 0, f2 -= S2 = m2 ? I2 : 0) : o2.jyt(t3, u2, c2, l2, h2) && (u2 += w2 = d2 ? A2 : 0, s2 += C2 = g2 ? A2 : 0, c2 += M2 = v2 ? I2 : 0, f2 += S2 = m2 ? I2 : 0), o2.jyt(T2, u2, c2, l2, h2) ? (u2 += b2 = A2, s2 += b2, c2 += y2 = I2, f2 += y2) : o2.Eyt(T2, u2, c2, l2, h2) && (u2 -= b2 = A2, s2 -= b2, c2 -= y2 = I2, f2 -= y2), s2 -= g2 ? n3 : 0, c2 -= v2 ? e3 : 0, f2 -= m2 ? e3 : 0, (u2 -= d2 ? n3 : 0) !== r2.row || c2 !== r2.column || s2 !== r2.endRow || f2 !== r2.endColumn) return (0, i2.lJ)(r2.source, p, u2, c2, s2, f2, d2, v2, g2, m2, n3, e3, r2.dHr);
          } else if (1 === x2) {
            if (d2 = r2.rowRelative, g2 = r2.endRowRelative, n3 >= 0 || !d2 || !g2) {
              if ((u2 = r2.row + (d2 ? n3 : 0)) < (s2 = r2.endRow + (g2 ? n3 : 0))) return i2.kyt;
              if (o2.Eyt(t3, n3, -1, 1, -1) ? (u2 -= w2 = d2 ? A2 : 0, s2 -= C2 = g2 ? A2 : 0) : o2.jyt(t3, n3, -1, 1, -1) && (u2 += w2 = d2 ? A2 : 0, s2 += C2 = g2 ? A2 : 0), l2 = s2 - u2, o2.jyt(T2, u2, -1, l2, -1) ? (u2 += b2 = A2, s2 += b2) : o2.Eyt(T2, u2, -1, l2, -1) && (u2 -= b2 = A2, s2 -= b2), s2 -= g2 ? n3 : 0, (u2 -= d2 ? n3 : 0) !== r2.row || s2 !== r2.endRow) return (0, i2.lJ)(r2.source, p, u2, a.BAND_INDEX_CONST, s2, a.BAND_INDEX_CONST, d2, false, g2, false, n3, e3, r2.dHr);
            }
          } else if (2 === x2) {
            if (v2 = r2.columnRelative, m2 = r2.endColumnRelative, (c2 = r2.column + (v2 ? e3 : 0)) > (f2 = r2.endColumn + (m2 ? e3 : 0))) return i2.kyt;
            if (o2.Eyt(t3, -1, e3, -1, 1) ? (c2 -= M2 = v2 ? I2 : 0, f2 -= S2 = m2 ? I2 : 0) : o2.jyt(t3, -1, e3, -1, 1) && (c2 += M2 = v2 ? I2 : 0, f2 += S2 = m2 ? I2 : 0), h2 = f2 - c2, o2.jyt(T2, -1, c2, -1, h2) ? (c2 += y2 = I2, f2 += y2) : o2.Eyt(T2, -1, c2, -1, h2) && (c2 -= y2 = I2, f2 -= y2), f2 -= m2 ? e3 : 0, (c2 -= v2 ? e3 : 0) !== r2.column || f2 !== r2.endColumn) return (0, i2.lJ)(r2.source, p, a.BAND_INDEX_CONST, c2, a.BAND_INDEX_CONST, f2, false, v2, false, m2, n3, e3, r2.dHr);
          }
          return r2;
        }
        function Lt(t3, n3, e3, i3, r2, o2) {
          t3.Ryt(n3, e3, i3, r2, true, false, o2);
        }
        function Ft(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = Ft, h2 = n3;
          if (8 === n3.type) {
            if (n3.value === e3 && (!n3.source || n3.source === t3.getSource())) return (0, i2.Syt)(m, n3.source);
          } else if (10 === n3.type) (r2 = l2(t3, n3.value, e3)) !== n3.value && (h2 = (0, i2.Ayt)(r2));
          else if (9 === n3.type) u2 = l2(t3, n3.value, e3), s2 = n3.value2 && l2(t3, n3.value2, e3), u2 === n3.value && s2 === n3.value2 || (h2 = (0, i2.rbt)(n3.operatorType, u2, s2));
          else if (7 === n3.type) {
            for (c2 = p, f2 = n3.arguments.length, a2 = 0; a2 < f2; a2++) if ((r2 = l2(t3, o2 = n3.arguments[a2], e3)) !== o2) {
              (c2 = [])[a2] = r2;
              break;
            }
            if (c2) {
              for (a2 = 0; a2 < f2; a2++) o2 = n3.arguments[a2], c2[a2] !== v && c2[a2] !== p || (c2[a2] = l2(t3, o2, e3));
              h2 = (0, i2.YJ)(n3, c2);
            }
            (0, i2.isExpression)(n3.function) && ((h2 = (0, i2.YJ)(n3, c2 || n3.arguments)).function = l2(t3, n3.function, e3));
          }
          return n3.ensureSingle && (h2.ensureSingle = true), h2;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.adjustFormulaOnMoveSwap = n2.CalcOperatorAdjustor = n2.MoveSwapInfo = n2.ROW_COL_FORMULA_ADJUST_TRIGGER_SOURCE = void 0, i2 = e2("CalcEngine"), r = e2("Common"), o = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), a = e2("./dist/plugins/sheetsCalc/calc.ns.js"), u = e2("./dist/plugins/sheetsCalc/parser-sheets.js"), s = e2("Core"), c = r.Common.lt.ht, f = r.Common.zf, l = f.Gmt, h = Math.min, d = Math.max, v = void 0, p = null, g = i2.Convert.BJ, m = i2.Errors.Reference, b = "columnFormula", y = "footerFormula", w = s.util.z0, n2.ROW_COL_FORMULA_ADJUST_TRIGGER_SOURCE = "add-delete-row-col-formula-adjust", M = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2 = this;
            s2.gyt = t4, s2.pyt = n3, s2.byt = e3, s2.yyt = i3, s2.wyt = r2, s2.Myt = o2, s2.Sx = a2, s2.Cyt = u2;
          }
          return t3.prototype.Dyt = function(t4) {
            var n3, e3, i3 = this, r2 = i3.yyt.Mf;
            return i3.Oyt = r2 && r2.o5(), i3.Oyt && t4 >= 0 ? (n3 = t4 - i3.wyt + 1, e3 = r2.ix(i3.wyt, n3, true), i3.wyt - i3.pyt + e3) : i3.wyt - i3.pyt;
          }, t3.prototype._yt = function(t4) {
            var n3, e3, i3 = this, r2 = i3.yyt.Mf;
            return i3.Oyt = r2 && r2.o5(), i3.Oyt && t4 >= 0 ? (n3 = t4 - i3.Myt + 1, e3 = r2.ix(i3.Myt, n3), i3.Myt - i3.byt + e3) : i3.Myt - i3.byt;
          }, t3.prototype.jyt = function(t4, n3, e3, i3, r2) {
            var o2 = this;
            return o2.gyt === t4 && (-1 === o2.pyt || o2.pyt <= n3 && n3 + i3 <= o2.pyt + o2.Sx) && (-1 === o2.byt || o2.byt <= e3 && e3 + r2 <= o2.byt + o2.Cyt);
          }, t3.prototype.Eyt = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = o2.yyt.Mf, u2 = a2 && a2.o5(), s2 = o2.wyt, c2 = o2.Myt, f2 = o2.Sx, l2 = o2.Cyt;
            return u2 && (f2 += a2.lT(s2, f2, true), l2 += a2.lT(c2, l2)), o2.yyt === t4 && (-1 === s2 || s2 <= n3 && n3 + i3 <= s2 + f2) && (-1 === c2 || c2 <= e3 && e3 + r2 <= c2 + l2);
          }, t3.prototype.intersectWith = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = this;
            return u2.yyt !== t4 ? p : (o2 = u2.Byt(t4, n3, e3, i3, r2), (a2 = u2.Byt(t4, u2.pyt, u2.byt, i3, r2)).intersectWith(o2));
          }, t3.prototype.Byt = function(t4, n3, e3, i3, r2) {
            var o2 = -1 === n3 ? 0 : n3, a2 = -1 === n3 || -1 === i3 ? t4.rowCount : i3, u2 = -1 === e3 ? 0 : e3, s2 = -1 === e3 || -1 === r2 ? t4.colCount : r2;
            return { row: o2, column: u2, rowCount: a2, columnCount: s2, intersectWith: I };
          }, t3;
        })(), n2.MoveSwapInfo = M, C = function(t3) {
          switch (t3) {
            case s.PasteOperationOptions.add:
              return 3;
            case s.PasteOperationOptions.subtract:
              return 4;
            case s.PasteOperationOptions.multiply:
              return 5;
            case s.PasteOperationOptions.divide:
              return 6;
          }
        }, S = (function() {
          function t3() {
          }
          return t3.gB = function(n3, e3, r2, o2, u2, s2, c2, f2, l2, d2, v2) {
            var p2, g2, b2, y2, w2, M2, C2 = r2, S2 = t3, T2 = this.gB;
            if (!r2) return C2;
            if (10 === (b2 = r2.type)) C2 = (0, i2.Ayt)(T2.call(S2, n3, e3, r2.value, o2, u2, s2, c2, f2, l2, d2, v2));
            else if (1 === b2 && r2.hmt()) {
              if (p2 = h((r2.source || e3).getRowCount(), a.MAX_ROW_COUNT), g2 = h((r2.source || e3).getColumnCount(), a.MAX_COLUMN_COUNT), r2.rowRelative && (r2.row + o2 < 0 || r2.row + o2 >= p2) || r2.columnRelative && (r2.column + u2 < 0 || r2.column + u2 >= g2)) return (0, i2.Syt)(m, r2.source);
              C2 = r2.offset(0, 0, false);
            } else if (1 === b2) {
              if (p2 = h((r2.source || e3).getRowCount(), a.MAX_ROW_COUNT), g2 = h((r2.source || e3).getColumnCount(), a.MAX_COLUMN_COUNT), (y2 = r2).rowRelative && !r2.isFullColumn && (y2.row + o2 < 0 || y2.row + o2 > p2) || y2.columnRelative && !r2.isFullRow && (y2.column + u2 < 0 || y2.column + u2 > g2) || y2.endRowRelative && !r2.isFullColumn && (y2.endRow + o2 < 0 || y2.endRow + o2 > p2) || y2.endColumnRelative && !r2.isFullRow && (y2.endColumn + u2 < 0 || y2.endColumn + u2 > g2)) return (0, i2.Syt)(m, r2.source, r2.endSource);
              C2 = r2.offset(0, 0, false, o2, u2);
            } else if (9 === r2.type) C2 = (0, i2.rbt)(r2.operatorType, T2.call(S2, n3, e3, r2.value, o2, u2, s2, c2, f2, l2, d2, v2), r2.value2 && T2.call(S2, n3, e3, r2.value2, o2, u2, s2, c2, f2, l2, d2, v2));
            else if (7 === b2) {
              if (w2 = [], r2.arguments && r2.arguments.length > 0) for (M2 = 0; M2 < r2.arguments.length; M2++) w2[M2] = T2.call(S2, n3, e3, r2.arguments[M2], o2, u2, s2, c2, f2, l2, d2, v2);
              C2 = (0, i2.YJ)(r2, w2);
            } else 13 === b2 && (C2 = r2.offsetWhenCopy(n3, e3, o2, u2, s2, c2, f2, l2, d2, v2));
            return r2.ensureSingle && (C2.ensureSingle = true), C2;
          }, t3.copyFormula = function(n3, e3, r2, a2, u2, c2, f2, l2, d2, g2, m2, b2, y2) {
            var w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2, vt2, pt2, gt2, mt2 = n3.b3(), bt2 = a2.b3(), yt2 = mt2.getSource(), wt2 = yt2.getSheet(), Mt2 = bt2.getSource(), Ct2 = t3;
            if (mt2 && bt2) {
              for (b2 && (w2 = b2.transpose, M2 = b2.operationOptions), C2 = Mt2 && Mt2.getSheet().Ut.pj(), S2 = e3, T2 = r2, x2 = u2, A2 = c2, I2 = f2, k2 = l2, e3 < 0 && (S2 = 0, I2 = h(mt2.rC(), bt2.rC())), r2 < 0 && (T2 = 0, k2 = h(mt2.cC(), bt2.cC())), u2 < 0 && (x2 = 0), c2 < 0 && (A2 = 0), N2 = new i2.CalcSourceModel(mt2.op(), yt2), E2 = Mt2.getSheet(), R2 = !g2 && E2.o5(), L2 = I2, F2 = k2, B2 = E2.getRowCount(), U2 = E2.getColumnCount(), j2 = 0; j2 < I2; j2++) for (D2 = 0; D2 < k2; D2++) H2 = j2 + S2, V2 = D2 + T2, w2 && (H2 = S2 + D2, V2 = T2 + j2), y2 && s.util.HRe(H2, V2, wt2) || mt2.Lyt(N2, H2, V2, j2, D2);
              for (z2 = {}, Y2 = bt2.op(), j2 = 0, _2 = 0; j2 < I2 && j2 + x2 < B2; j2++) if (Z2 = j2 + x2, R2 && 0 === E2.getRowHeight(Z2)) I2++;
              else if (d2 && Mt2.isHiddenRow(Z2, true)) _2++;
              else {
                for (D2 = 0, O2 = 0, k2 = F2; D2 < k2 && D2 + A2 < U2; D2++) if (W2 = D2 + A2, R2 && 0 === E2.getColumnWidth(W2)) k2++;
                else {
                  if ((Q2 = N2.pB(_2, O2)) || b2) {
                    if (Q2 === z2) continue;
                    if (K2 = u2 + j2 - e3 - _2, J2 = c2 + D2 - r2 - O2, Q2 = Ct2.gB(yt2, Mt2, Q2, Z2, W2, K2, J2, u2, c2, L2, F2), X2 = N2.sT(_2, O2), Mt2) {
                      if (R2 && X2 && (a2.lT(Z2, X2.rowCount, true) > 0 || a2.lT(W2, X2.colCount, false) > 0)) {
                        O2++, Mt2.t8.removeAnchor(Z2, W2);
                        continue;
                      }
                      if (X2 && !X2.isDynamicArray) {
                        for (q2 = X2.rowCount, $2 = X2.colCount, (tt2 = S2 - X2.row) > 0 && (q2 -= tt2), (nt2 = I2 - j2) < q2 && (q2 = nt2), (et2 = T2 - X2.col) > 0 && ($2 -= et2), (it2 = k2 - D2) < $2 && ($2 = it2), rt2 = 0; rt2 < q2; rt2++) for (ot2 = 0; ot2 < $2; ot2++) N2.bB(j2 + rt2, D2 + ot2, z2);
                        bt2.setArrayFormula(Z2, W2, q2, $2, Y2.unparse(Mt2, Q2, Z2, W2), v, C2);
                      } else {
                        if (at2 = N2.Phe(_2, O2), m2 && E2 && at2 && (E2.Dhe = at2), M2 && (ut2 = _2 + S2, st2 = O2 + T2, w2 && (ut2 = O2 + S2, st2 = _2 + T2), (Q2 = P(Q2, n3.getValue(ut2, st2), bt2.pB(Z2, W2), a2.getValue(Z2, W2), M2)) && Q2.value.type === i2.ExpressionType.number && Q2.value2.type === i2.ExpressionType.number)) {
                          (ct2 = (0, o.evaluateExpression)(a2, Q2)) instanceof i2.CalcError || a2.setValue(Z2, W2, ct2), O2++;
                          continue;
                        }
                        if (Q2 && w2 && G(Q2), ft2 = Q2 ? Y2.unparse(Mt2, Q2, Z2, W2) : v, lt2 = a2.tables, Z2 >= 0 && W2 >= 0 && lt2 && (ht2 = lt2.find(Z2, W2) || { NTr: function() {
                          return false;
                        } }).NTr() && (ht2.eTt = true, dt2 = lt2.pMt(Z2, W2, 1, 1, ft2, Q2), delete ht2.eTt, !dt2)) {
                          O2++;
                          continue;
                        }
                        Mt2.setFormula(Z2, W2, ft2, v), at2 && (E2.Ut.setDefaultValue(Z2, W2, ft2, p, s.DefaultChangeValueType.Expression, p, true), E2.Dhe = true), (vt2 = N2.Fyt(_2, O2)) && (pt2 = new i2.EvaluateContext(Mt2, (0, i2.eV)(Z2, W2), false, v, v, bt2.oT(Z2, W2, true)), vt2 = (vt2 = bt2.Lbt.allowDynamicArray ? (0, i2.h0t)(pt2, Q2, false, 0, 0, true, true) : (0, i2.Pyt)(pt2, Q2, false, 0, 0, false, false)) === Q2 ? v : vt2), bt2.Gyt(Z2, W2, Q2, vt2, X2, C2), at2 && (delete E2.Dhe, (gt2 = bt2.oT(Z2, W2)) && gt2.isDefault(at2));
                      }
                    } else bt2.bB(Z2, W2, Q2), bt2.Uyt(Z2, W2, X2);
                  } else bt2 && bt2.pB(Z2, W2) && bt2.Gyt(Z2, W2, v, v, v, C2);
                  O2++;
                }
                _2++;
              }
            }
          }, t3.moveFormula = function(t4, n3, e3, i3, r2, o2, a2, u2, f2) {
            var l2, d2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2 = t4.b3(), J2 = i3.b3(), X2 = J2.getSource(), q2 = K2.op();
            if (K2 && J2) {
              for (d2 = i3.getRowCount(), g2 = i3.getColumnCount(), m2 = K2.pj(), b2 = J2.pj(), y2 = q2.Hyt(), n3 < 0 && (n3 = 0, a2 = h(t4.getRowCount(), d2)), r2 < 0 && (r2 = 0), e3 < 0 && (e3 = 0, u2 = h(t4.getColumnCount(), g2)), o2 < 0 && (o2 = 0), w2 = !(t4 === i3 && t4.name() === i3.name()), M2 = a2, C2 = u2, S2 = a2, (x2 = i3.o5()) && (M2 += i3.lT(r2, a2, true), C2 += i3.lT(o2, u2)), K2.mF(n3, e3, a2, u2), Lt(K2, n3, e3, a2, u2), y2.fsr(K2, n3, e3, a2, u2), J2.mF(r2, o2, M2, C2), Lt(J2, r2, o2, M2, C2), y2.fsr(J2, r2, o2, M2, C2), A2 = [], I2 = 0; I2 < a2; I2++) for (L2 = I2 + n3, k2 = 0; k2 < u2; k2++) F2 = k2 + e3, N2 = K2.pB(L2, F2), j2 = K2.sT(L2, F2), D2 = K2.Fyt(L2, F2), O2 = (_2 = K2.oT(L2, F2)) && _2.isDefault(), N2 && (A2[I2 * u2 + k2] = { WK: N2, $bt: j2, eyt: D2, Ghe: O2 }, K2.zyt(L2, F2, m2), (!j2 || j2 && L2 === j2.row && F2 === j2.col) && K2.rT.setFormula(L2, F2, p, v));
              for (P2 = w2 ? {} : null, I2 = 0, E2 = 0; I2 < S2 && I2 + r2 < d2; I2++) if (G2 = I2 + r2, x2 && 0 === i3.getRowHeight(G2)) S2++;
              else {
                for (k2 = 0, R2 = 0, T2 = u2; k2 < T2 && o2 + k2 < g2; k2++) if (U2 = k2 + o2, x2 && 0 === i3.getColumnWidth(U2)) T2++;
                else {
                  if (H2 = A2[E2 * u2 + R2]) {
                    if (N2 = H2.WK, j2 = H2.$bt, x2 && j2 && (i3.lT(G2, j2.rowCount, true) > 0 || i3.lT(U2, j2.colCount, false) > 0)) {
                      R2++, X2.t8.removeAnchor(G2, U2);
                      continue;
                    }
                    q2 && j2 && !j2.isDynamicArray && j2.row === n3 + I2 && j2.col === e3 + k2 && (B2 = (0, s.Ec)(G2, U2, j2.rowCount, j2.colCount)), V2 = j2 && !j2.isDynamicArray ? B2 : v, D2 = H2.eyt, (O2 = H2.Ghe) && (i3.Dhe = O2), Y2 = { isDefault: O2, oldIsDefault: z2 = J2.Phe(G2, U2) }, J2.Vyt(b2, G2, U2), J2.YHr(G2, U2, N2, V2, Y2), J2.Yyt(G2, U2, D2), J2.Uhe(G2, U2, O2), (!V2 || V2 && V2.row === G2 && V2.col === U2) && (Z2 = J2.getFormula(G2, U2), J2.rT.setFormula(G2, U2, Z2, V2), O2 && i3.Ut.setDefaultValue(G2, U2, Z2, p, s.DefaultChangeValueType.Expression, p, true)), w2 && (P2[G2 + ", " + U2] = N2), O2 && delete i3.Dhe;
                  } else c(J2.pB(G2, U2)) || (J2.Vyt(b2, G2, U2), J2.bB(G2, U2, v), J2.Uyt(G2, U2, v));
                  R2++;
                }
                E2++;
              }
              f2 && (null === (l2 = K2.uT(false)) || void 0 === l2 || l2.mB(n3 - 1, e3, 1, u2, 0)), y2.Zyt(K2, n3, e3, a2, u2), y2.Zyt(J2, r2, o2, M2, C2), Q2 = (W2 = K2.getSource().getSheet()).b8 && (W2.parent || W2).xyt(), y2.Wyt(Q2, K2.getSource(), n3, e3, J2.getSource(), r2, o2, a2, u2, true, P2, f2), true === w2 && y2.Wyt(Q2, K2.getSource(), n3, e3, J2.getSource(), r2, o2, a2, u2, true, P2);
            }
          }, t3.prototype.isAdjustCell = function(t4) {
            return t4.preAdj || this.y3 && t4 === this.y3[0];
          }, t3.prototype.isAdjust = function(t4) {
            return t4.preAdj || this.y3 && t4 === this.y3[0];
          }, t3.prototype.Qyt = function(t4, n3) {
            var e3 = this, i3, r2;
            isNaN(n3) || (e3.y3 || (e3.y3 = {}, e3.Kyt = {}), i3 = e3.y3[n3], r2 = e3.Kyt[n3], t4 && !t4.preAdj && t4 !== i3 && (i3 ? r2.nextAdj = t4 : e3.y3[n3] = t4, t4.preAdj = r2, t4.nextAdj = p, e3.Kyt[n3] = t4));
          }, t3.prototype.Jyt = function(t4, n3) {
            var e3, i3, r2, o2 = this;
            isNaN(n3) || (e3 = o2.y3 && o2.y3[n3], t4 && (t4.preAdj || t4 === e3) && (i3 = t4.preAdj, r2 = t4.nextAdj, i3 ? i3.nextAdj = r2 : o2.y3[n3] = r2, r2 ? r2.preAdj = i3 : o2.Kyt[n3] = i3, t4.preAdj = p, t4.nextAdj = p));
          }, t3.prototype.Xyt = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2 = o2.isInTable, l2 = o2.isUndo, h2 = o2.callFromTable, d2 = Z;
            h2 ? this.qyt(t4, d2, n3, e3, i3, r2, f2, l2) : this.$Be(t4, d2, n3, e3, i3, r2, o2), a2 = 0, u2 = 0, s2 = 0, c2 = 0, 0 === n3 && (i3 && r2 ? s2 = e3 : i3 ? a2 = e3 : r2 ? c2 = e3 : u2 = e3), W(t4, d2, n3, e3, a2, u2, s2, c2, i3, r2, f2), X(t4, d2, n3, e3, i3, r2), !f2 && tt(t4, d2, n3, e3, i3, r2), it(t4, d2, n3, e3, i3, r2, l2);
          }, t3.prototype.$Be = function(e3, r2, o2, a2, u2, s2, f2) {
            var l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, I2, j2, E2, F2, B2, P2, G2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2 = f2.isUndo, it2 = f2.isInTable, rt2 = this, ot2 = rt2.y3;
            if (ot2) {
              for (d2 = { triggerSource: n2.ROW_COL_FORMULA_ADJUST_TRIGGER_SOURCE, index: o2, count: a2, isRow: u2, isAdd: s2, changedSource: e3 }, m2 = e3.Mbt, S2 = (0, i2.createMap)(), T2 = { l: true }, (x2 = m2.uT()) && (I2 = s2 ? x2.CFe : x2.AFe).call(x2, o2, a2, u2); ot2[0]; ) if (j2 = void 0, C2 = (b2 = (w2 = ot2[0]).w3).pj(), M2 = b2.getSource(), p2 = w2.row, g2 = w2.column, E2 = b2.oT(p2, g2), L(S2, b2, p2, g2) || w2 !== E2) rt2.Jyt(w2, 0);
              else {
                if (F2 = b2.pB(p2, g2), B2 = b2.Fyt(p2, g2), F2) if (P2 = false, G2 = u2 ? p2 : g2, e3 === M2 && G2 >= o2 && (P2 = true, G2 -= s2 ? a2 : -a2), c(F2.aMt) ? (y2 = r2.call(rt2, M2, p2, g2, F2, e3, o2, a2, u2, s2, v, it2), B2 && (j2 = r2.call(rt2, M2, p2, g2, B2, e3, o2, a2, u2, s2, v, it2))) : (F2.Wx && F2.Wx.lt.l || (H2 = s2 ? N(F2, e3, M2, u2) : k(F2, e3, M2), F2.Wx = { lt: T2, ct: H2 }), 0 === (V2 = s2 ? _(F2.Wx.ct, o2, G2, e3 === M2, P2) : D(F2.Wx.ct, o2, a2, G2, e3 === M2, P2, u2)) ? y2 = F2 : F2.Wx[V2] ? (y2 = F2.Wx[V2], B2 && (j2 = B2.eyt || r2.call(rt2, M2, p2, g2, B2, e3, o2, a2, u2, s2, v, it2))) : (y2 = r2.call(rt2, M2, p2, g2, F2, e3, o2, a2, u2, s2, v, it2), j2 = B2 && r2.call(rt2, M2, p2, g2, B2, e3, o2, a2, u2, s2, v, it2), -1 !== V2 && (F2.Wx[V2] = y2, B2 && (B2.eyt = j2)))), E2.QDt && U(s2, u2, E2, e3, o2, a2), E2.vyt(), !et2 && E2.isDefault() && (null === (h2 = null === (l2 = b2.rT.Mf) || void 0 === l2 ? void 0 : l2.Ut) || void 0 === h2 || h2.qBe(p2, g2, y2, v, A(A({}, d2), { formulaSource: M2 }))), z2 = b2.sT(p2, g2), s2 || P2 || et2 || z2 && !z2.isDynamicArray ? !t3.SaveFormulaChanges || P2 || et2 || b2.rT.setFormula(p2, g2, b2.getFormula(p2, g2), z2, true) : b2.Vyt(b2.pj(), p2, g2), z2) {
                  if (M2 === e3 && (Y2 = s2 ? a2 : -a2, u2 ? o2 <= z2.row && (z2.row += Y2) : o2 <= z2.col && (z2.col += Y2)), p2 === z2.row && g2 === z2.col) if (z2.isDynamicArray) (Z2 = b2.dataTable[p2][g2]).WK = y2, Z2.eyt = j2;
                  else for (W2 = p2; W2 < p2 + z2.rowCount; W2++) for (Q2 = g2; Q2 < g2 + z2.colCount; Q2++) b2.SB(W2, Q2, y2, z2, W2 === p2 && Q2 === g2, !s2 && !P2 && !et2 && C2), R(S2, b2, W2, Q2, true);
                } else b2.bB(p2, g2, y2, v, A(A({}, d2), { formulaSource: M2 })), b2.Yyt(p2, g2, j2), t3.SaveFormulaChanges && b2.rT.setFormula(p2, g2, b2.getFormula(p2, g2), v, v);
                else (b2.getRowExpression && b2.getRowExpression(p2) || b2.getColumnExpression && b2.getColumnExpression(g2)) && b2.gF(p2, g2, 1, 1);
                rt2.Jyt(w2, 0);
              }
              for (T2.l = false; ot2[1]; ) C2 = (b2 = (w2 = ot2[1]).w3).pj(), p2 = w2.row, b2.getRowExpression && (y2 = b2.getRowExpression(p2)) && b2.SB && (K2 = b2.getSource(), b2.SB(p2, -1, r2.call(rt2, K2, p2, -1, y2, e3, o2, a2, u2, s2), v, true, O(p2, o2, C2, e3.id === K2.id))), rt2.Jyt(w2, 1);
              for (; ot2[2]; ) C2 = (b2 = (w2 = ot2[2]).w3).pj(), g2 = w2.column, b2.getColumnExpression && (y2 = b2.getColumnExpression(g2)) && b2.SB && (K2 = b2.getSource(), b2.SB(-1, g2, r2.call(rt2, K2, -1, g2, y2, e3, o2, a2, u2, s2), v, true, O(g2, o2, C2, e3.id === K2.id))), rt2.Jyt(w2, 2);
              for (; ot2[3]; ) X2 = (J2 = ot2[3]).name, y2 = (b2 = J2.w3).$yt(X2), q2 = r2.call(rt2, b2.getSource(), 0, 0, y2, e3, o2, a2, u2, s2, { isNameID: true }), b2.twt(X2, q2), rt2.Jyt(J2, 3);
              for ($2 in ot2) if ((tt2 = +$2) > 3 && ot2.hasOwnProperty($2)) for (; ot2[$2]; ) nt2 = (Z2 = ot2[$2]).w3, y2 = r2.call(rt2, nt2, 0, 0, Z2.expression, e3, o2, a2, u2, s2), nt2.setExpression(Z2.id, Z2.name, y2), rt2.Jyt(Z2, tt2);
            }
          }, t3.prototype.qyt = function(t4, n3, e3, r2, o2, a2, u2, c2) {
            var f2, l2, h2, d2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, E2, F2, B2, P2 = this, G2 = P2.y3;
            if (G2) {
              for (w2 = (0, i2.createMap)(); G2[0]; ) if (y2 = (l2 = (m2 = G2[0]).w3).pj(), b2 = l2.getSource(), L(w2, l2, h2 = m2.row, d2 = m2.column)) P2.Jyt(m2, 0);
              else {
                if (!(g2 = l2.pB(h2, d2)) || n3 === st && b2 === t4) (l2.getRowExpression && l2.getRowExpression(h2) || l2.getColumnExpression && l2.getColumnExpression(d2)) && l2.gF(h2, d2, 1, 1);
                else if (g2 = n3.call(P2, b2, h2, d2, g2, t4, e3, r2, o2, a2, v, u2, c2), M2 = l2.sT(h2, d2)) {
                  if (b2 === t4 && (C2 = a2 ? r2 : -r2, o2 ? e3 <= M2.row && (M2.row += C2) : e3 <= M2.col && (M2.col += C2)), h2 === M2.row && d2 === M2.col) if (M2.isDynamicArray) l2.SB(h2, d2, g2, M2, true, O(o2 ? h2 : d2, e3, y2, t4.id === b2.id));
                  else for (S2 = h2; S2 < h2 + M2.rowCount; S2++) for (T2 = d2; T2 < d2 + M2.colCount; T2++) l2.SB(S2, T2, g2, M2, S2 === h2 && T2 === d2, O(o2 ? S2 : T2, e3, y2, t4.id === b2.id)), R(w2, l2, S2, T2, true);
                } else x2 = b2.Mf, (A2 = !c2 && (null === (f2 = l2.oT(h2, d2)) || void 0 === f2 ? void 0 : f2.isDefault())) && (x2.Dhe = A2), l2.SB(h2, d2, g2, M2, true, O(o2 ? h2 : d2, e3, y2, t4.id === b2.id), p, p, c2), A2 && (I2 = b2.nT, k2 = l2.op().unparse(b2, g2, h2, d2), x2.Ut.setDefaultValue(h2, d2, k2, I2, s.DefaultChangeValueType.Expression, p, true), delete x2.Dhe);
                P2.Jyt(m2, 0);
              }
              for (; G2[1]; ) y2 = (l2 = (m2 = G2[1]).w3).pj(), h2 = m2.row, l2.getRowExpression && (g2 = l2.getRowExpression(h2)) && l2.SB && (b2 = l2.getSource(), l2.SB(h2, -1, n3.call(P2, b2, h2, -1, g2, t4, e3, r2, o2, a2), v, true, O(h2, e3, y2, t4.id === b2.id))), P2.Jyt(m2, 1);
              for (; G2[2]; ) y2 = (l2 = (m2 = G2[2]).w3).pj(), d2 = m2.column, l2.getColumnExpression && (g2 = l2.getColumnExpression(d2)) && l2.SB && (b2 = l2.getSource(), l2.SB(-1, d2, n3.call(P2, b2, -1, d2, g2, t4, e3, r2, o2, a2), v, true, O(d2, e3, y2, t4.id === b2.id))), P2.Jyt(m2, 2);
              for (; G2[3]; ) j2 = (N2 = G2[3]).name, g2 = (l2 = N2.w3).$yt(j2), D2 = n3.call(P2, l2.getSource(), 0, 0, g2, t4, e3, r2, o2, a2, { isNameID: true }), l2.twt(j2, D2), P2.Jyt(N2, 3);
              for (_2 in G2) if ((E2 = +_2) > 3 && G2.hasOwnProperty(_2)) for (; G2[_2]; ) B2 = (F2 = G2[_2]).w3, g2 = n3.call(P2, B2, 0, 0, F2.expression, t4, e3, r2, o2, a2), B2.setExpression(F2.id, F2.name, g2), P2.Jyt(F2, E2);
            }
          }, t3.prototype.nwt = function(t4) {
            var n3 = this, e3, i3, r2;
            Lt(t4.getCalcSourceModel(), 0, 0, t4.getRowCount(), t4.getColumnCount()), n3.qyt(t4, st), W(t4, st, 0, 0, 0, 0, 0, 0, true, false), X(t4, st, 0, 0, true, false);
          }, t3.prototype.Wyt = function(t4, n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2) {
            var d2, p2, g2, m2, b2, y2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2 = this, W2 = _t, Q2 = new M(n3, e3, r2, o2, a2, u2, s2, c2), K2 = (0, i2.createMap)();
            if (t4 && Ot(t4, Q2, f2), et(n3, Q2, f2), $(n3, Q2, f2), I2 = {}, x2 = Z2.y3) {
              for (; x2[0]; ) if (b2 = (y2 = x2[0]).w3, w2 = y2.row, C2 = y2.column, T2 = b2.pj(), L(K2, b2, w2, C2)) Z2.Jyt(y2, 0);
              else {
                if (S2 = b2.pB(w2, C2), A2 = b2.getSource(), S2) if (k2 = v, l2 && l2[w2 + ", " + C2] ? (A2 = n3, k2 = { crossSheetMoved: true }) : h2 && (k2 = { tableExpand: h2 }), S2 = W2.call(Z2, A2, w2, C2, S2, Q2, f2, k2), j2 = void 0, (N2 = b2.sT(w2, C2)) && !N2.isDynamicArray) if (j2 = E(N2), w2 === N2.row && C2 === N2.col) for (I2[j2] = true, D2 = w2; D2 < w2 + N2.rowCount; D2++) for (_2 = C2; _2 < C2 + N2.colCount; _2++) b2.SB(D2, _2, S2, N2, D2 === w2 && _2 === C2, T2), R(K2, b2, D2, _2, true);
                else I2[j2] || (b2.SB(w2, C2, S2, N2, false, T2), R(K2, b2, w2, C2, true));
                else O2 = o2.Mf, (F2 = null === (d2 = b2.oT(w2, C2)) || void 0 === d2 ? void 0 : d2.isDefault()) && (O2.Dhe = F2), b2.SB(w2, C2, S2, N2, true, T2), F2 && delete O2.Dhe;
                else (b2.getRowExpression && b2.getRowExpression(w2) || b2.getColumnExpression && b2.getColumnExpression(C2)) && b2.gF(w2, C2, 1, 1);
                Z2.Jyt(y2, 0);
              }
              for (; x2[1]; ) b2 = (y2 = x2[1]).w3, w2 = y2.row, T2 = b2.pj(), b2.getRowExpression && (S2 = b2.getRowExpression(w2)) && b2.ewt && b2.ewt(w2, W2.call(Z2, A2, w2, -1, S2, Q2, f2), v, T2), Z2.Jyt(y2, 1);
              for (; x2[2]; ) b2 = (y2 = x2[2]).w3, C2 = y2.column, T2 = b2.pj(), b2.getColumnExpression && (S2 = b2.getColumnExpression(C2)) && b2.iwt && b2.iwt(C2, W2.call(Z2, A2, -1, C2, S2, Q2, f2), v, T2), Z2.Jyt(y2, 2);
              for (; x2[3]; ) P2 = (B2 = x2[3]).name, (null === (p2 = (b2 = B2.w3).rT) || void 0 === p2 ? void 0 : p2.den) && (null === (m2 = null === (g2 = o2.Mf) || void 0 === g2 ? void 0 : g2.tables) || void 0 === m2 ? void 0 : m2.zB) ? B2.vyt() : (S2 = b2.$yt(P2), G2 = W2.call(Z2, A2, 0, 0, S2, Q2, f2), b2.twt(P2, G2)), Z2.Jyt(B2, 3);
              for (U2 in x2) if ((H2 = +U2) > 3 && x2.hasOwnProperty(U2)) for (; x2[U2]; ) Y2 = (z2 = (V2 = x2[U2]).w3).getSource(), S2 = W2.call(Z2, Y2, 0, 0, V2.expression, Q2, f2), z2.setExpression(V2.id, V2.name, S2), Z2.Jyt(V2, H2);
            }
          }, t3.prototype.Zyt = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = n3 + i3, d2 = e3 + r2;
            for (s2 = n3; s2 < h2; s2++) if (t4.dataTable[s2]) for (c2 = e3; c2 < d2; c2++) a2 = t4.rwt(s2, c2), u2 = t4.pB(s2, c2), (a2 || u2) && (o2 ? (a2.oldRow = a2.row, a2.oldColumn = a2.column, a2.row = s2, a2.column = c2) : (l2.Jyt(a2, 0), f2 = this.g_e(t4, a2, s2, c2), a2 && u2 && (a2.row !== f2.row || a2.column !== f2.column || a2.isDefault()) && (f2.oldRow = a2.row, f2.oldColumn = a2.column, f2.isDefault(a2.isDefault())), a2 = f2), l2.Qyt(a2, 0));
          }, t3.prototype.g_e = function(t4, n3, e3, i3) {
            var r2, o2;
            return n3 && n3.aT && n3[3] && (r2 = { aT: [3], 3: n3[3] }), t4.owt(e3, i3, 0), o2 = t4.oT(e3, i3, true), r2 && (o2[3] = r2[3], o2.aT = r2.aT), o2;
          }, t3.prototype.awt = function(t4, n3, e3) {
            var i3, r2, o2 = this;
            for (i3 = n3; -1 !== i3 && i3 < n3 + e3; i3++) (t4.rwt(-1, i3) || t4.pB(-1, i3)) && (t4.owt(-1, i3, 2), r2 = t4.uwt(i3, true), o2.Qyt(r2, 2));
          }, t3.prototype.swt = function(t4, n3, e3) {
            var i3, r2, o2 = this;
            for (i3 = n3; -1 !== i3 && i3 < n3 + e3; i3++) (t4.rwt(i3, -1) || t4.pB(i3, -1)) && (t4.owt(i3, -1, 1), r2 = t4.cwt(i3, true), o2.Qyt(r2, 1));
          }, t3.prototype.fwt = function(t4) {
            var n3, e3, r2, o2, a2, u2 = this, s2 = t4.op().getAllSourceModels();
            for (r2 = 0; r2 < s2.length; r2++) if ((o2 = s2[r2]).lwt) for (n3 = o2.lwt(), a2 = 0; a2 < n3.length; a2++) (e3 = n3[a2]) && e3.isVolatile && e3 instanceof i2.CellCalc && !u2.isAdjustCell(e3) && u2.Qyt(e3, 0);
          }, t3.prototype.fsr = function(t4, n3, e3, i3, r2) {
            var o2 = t4.getSource(), a2 = o2.asr && o2.asr();
            a2.osr(n3, e3, i3, r2, (function(t5, n4) {
              t5.ubt && n4.forEach((function(t6) {
                t6.r_t();
              }));
            }));
          }, t3.prototype.onBeforeAddRemoveRows = function(n3, e3, i3, r2, o2, a2) {
            [n3, i3].forEach((function(n4) {
              if (n4) {
                var i4 = n4.rC(), u2 = n4.cC();
                a2 && o2 && (i4 += o2), r2 && o2 ? (n4.b_t(e3, 0, o2, u2), n4.mF(e3, 0, o2, u2), n4.mF(e3 + o2, 0, i4 - e3 - o2, u2, v, true)) : n4.mF(e3, 0, i4 - e3, u2, v, true), n4.hwt(e3, i4 - e3), !r2 && t3.SaveFormulaChanges && (r2 = 2), Lt(n4, e3, -1, i4 - e3, -1, r2);
              }
            }));
          }, t3.prototype.onAfterAddRemoveRows = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = r2.rhCalcModel;
            [t4, a2].forEach((function(t5) {
              if (t5) {
                var r3 = t5.rC(), a3 = t5.cC();
                i3 ? t5.gF(n3, 0, e3, a3) : r3 += e3, o2.Zyt(t5, n3, 0, r3 - n3, a3, true), o2.swt(t5, n3, r3 - n3), o2.fwt(t5);
              }
            })), o2.Xyt(t4.getSource(), n3, e3, true, i3, r2), 1 !== t4.op().calculationMode && t4.op().recalculateAll(false);
          }, t3.prototype.onAfterAddRemoveColumns = function(t4, n3, e3, i3, r2) {
            var o2 = this, a2 = r2.chCalcModel;
            [t4, a2].forEach((function(t5) {
              if (t5) {
                var r3 = t5.rC(), a3 = t5.cC();
                i3 ? t5.gF(0, n3, r3, e3) : a3 += e3, o2.Zyt(t5, 0, n3, r3, a3 - n3, true), o2.awt(t5, n3, a3 - n3), o2.fwt(t5);
              }
            })), o2.Xyt(t4.getSource(), n3, e3, false, i3, r2), 1 !== t4.op().calculationMode && t4.op().recalculateAll(false);
          }, t3.prototype.onBeforeAddRemoveColumns = function(n3, e3, i3, r2, o2, a2) {
            [n3, i3].forEach((function(n4) {
              if (n4) {
                var i4 = n4.rC(), u2 = n4.cC();
                a2 && o2 && (u2 += o2), r2 && o2 ? (n4.b_t(0, e3, i4, o2), n4.mF(0, e3, i4, o2), n4.mF(0, e3, i4 + o2, u2 - e3 - o2, v, true)) : n4.mF(0, e3, i4, u2 - e3, v, true), n4.dwt(e3, u2 - e3), !r2 && t3.SaveFormulaChanges && (r2 = 2), Lt(n4, -1, e3, -1, u2 - e3, r2);
              }
            }));
          }, t3.prototype.onAfterRemoveName = function(t4, n3) {
            var e3 = t4.vwt(n3, false);
            e3 && (e3.updateListening(true, false), e3.vyt(), e3.updateListeningOnRemoved());
          }, t3.prototype.adjustFormulaOnRemoveName = function(t4, n3, e3) {
            return Ft(t4, n3, e3);
          }, t3.prototype.invalidName = function(t4, n3) {
            var e3, i3;
            n3 && (i3 = (e3 = t4.getCalcSourceModel()).vwt(n3.toUpperCase(), true)) && i3.mB();
          }, t3.prototype.onAfterChangeTableColumn = function(n3, e3) {
            var r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = p2.y3;
            if (g2) for (c2 = (0, i2.createMap)(); g2[0]; ) if (L(c2, r2 = (f2 = g2[0]).w3, o2 = f2.row, a2 = f2.column)) p2.Jyt(f2, 0);
            else {
              if (u2 = r2.pB(o2, a2), l2 = r2.pj(), u2) if (u2 = t3.adjustExpressionOnChangeTableColumn(u2, n3, e3, o2, a2), (h2 = r2.sT(o2, a2)) && !h2.isDynamicArray) for (h2 = (0, s.Ec)(o2, a2, h2.rowCount, h2.colCount), d2 = o2; d2 < o2 + h2.rowCount; d2++) for (v2 = a2; v2 < a2 + h2.colCount; v2++) r2.SB(d2, v2, u2, h2, d2 === o2 && v2 === a2, l2), R(c2, r2, d2, v2, true);
              else r2.SB(o2, a2, u2, h2, true, l2);
              else (r2.getRowExpression && r2.getRowExpression(o2) || r2.getColumnExpression && r2.getColumnExpression(a2)) && r2.gF(o2, a2, 1, 1);
              p2.Jyt(f2, 0);
            }
          }, t3.adjustExpressionOnChangeTableColumn = function(n3, e3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = t3.adjustExpressionOnChangeTableColumn;
            if (9 === n3.type) {
              if (u2 = n3.value, s2 = n3.value2, c2 = w2(u2, e3, r2, o2, a2), f2 = s2 && w2(s2, e3, r2, o2, a2), u2 !== c2 || s2 !== f2) return (0, i2.rbt)(n3.operatorType, c2, f2);
            } else if (7 === n3.type) {
              for (l2 = false, h2 = [], d2 = 0; d2 < n3.arguments.length; d2++) p2 = w2(v2 = n3.arguments[d2], e3, r2, o2, a2), l2 = l2 || v2 !== p2, h2.push(p2);
              if (l2) return (0, i2.YJ)(n3, h2);
            } else if (10 === n3.type) {
              if ((m2 = (g2 = n3).value) !== (b2 = w2(m2, e3, r2, o2, a2))) return (0, i2.Ayt)(b2);
            } else if (13 === n3.type) {
              if (n3 = (y2 = n3).offset(0, 0, true), y2.ubt && (n3.ubt = y2.ubt, -1 === (d2 = y2.abt.getColumnIndexInTable(y2.ubt)))) return i2.kyt;
              if (y2.sbt && (n3.sbt = y2.sbt, -1 === (d2 = y2.abt.getColumnIndexInTable(y2.sbt)))) return i2.kyt;
            }
            return n3;
          }, t3.prototype.onAfterRemoveTable = function(n3, e3) {
            var r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this;
            for (c2 = 0; c2 < n3.length; c2++) (f2 = n3[c2]).osr((function(t4) {
              t4.r_t(), t4.vyt();
            }));
            if (l2 = m2.y3) for (h2 = (0, i2.createMap)(); l2[0]; ) if (L(h2, r2 = (d2 = l2[0]).w3, o2 = d2.row, a2 = d2.column)) m2.Jyt(d2, 0);
            else {
              if (u2 = r2.pB(o2, a2)) if (u2 = t3.adjustExpressionOnRemoveTable(u2, n3, o2, a2, e3), (v2 = r2.sT(o2, a2)) && !v2.isDynamicArray) for (v2 = (0, s.Ec)(o2, a2, v2.rowCount, v2.colCount), p2 = o2; p2 < o2 + v2.rowCount; p2++) for (g2 = a2; g2 < a2 + v2.colCount; g2++) r2.SB(p2, g2, u2, v2, p2 === o2 && g2 === a2), R(h2, r2, p2, g2, true);
              else r2.SB(o2, a2, u2, v2, true);
              else (r2.getRowExpression && r2.getRowExpression(o2) || r2.getColumnExpression && r2.getColumnExpression(a2)) && r2.gF(o2, a2, 1, 1);
              m2.Jyt(d2, 0);
            }
          }, t3.adjustExpressionOnRemoveTable = function(n3, e3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = t3.adjustExpressionOnRemoveTable;
            if (9 === n3.type) {
              if (u2 = n3.value, s2 = n3.value2, c2 = x2(u2, e3, r2, o2, a2), f2 = s2 && x2(s2, e3, r2, o2, a2), u2 !== c2 || s2 !== f2) return (0, i2.rbt)(n3.operatorType, c2, f2);
            } else if (7 === n3.type) {
              for (l2 = false, h2 = [], d2 = 0; d2 < n3.arguments.length; d2++) g2 = x2(v2 = n3.arguments[d2], e3, r2, o2, a2), l2 = l2 || v2 !== g2, h2.push(g2);
              if (l2) return (0, i2.YJ)(n3, h2);
            } else if (10 === n3.type) {
              if ((b2 = (m2 = n3).value) !== (y2 = x2(b2, e3, r2, o2, a2))) return (0, i2.Ayt)(y2);
            } else if (13 === n3.type) {
              for (w2 = n3, d2 = 0; d2 < e3.length; d2++) if (w2.baseTable === e3[d2]) return a2 ? i2.kyt : (M2 = w2.getRange(-1 === r2 ? 0 : r2, -1 === o2 ? 0 : o2, true), C2 = -1 === r2 || 1 === w2.referencePortions(), S2 = 1 === M2.rowCount && 1 === M2.colCount, T2 = w2.source, S2 ? (0, i2.knt)(T2, p, C2 ? M2.row - r2 : M2.row, M2.col, C2, false) : (0, i2.lJ)(T2, p, C2 ? M2.row - r2 : M2.row, M2.col, M2.row + M2.rowCount - 1, M2.col + M2.colCount - 1, C2, false, C2, false));
            }
            return n3;
          }, t3.SaveFormulaChanges = true, t3;
        })(), n2.CalcOperatorAdjustor = S, (T = i2.CalcService.prototype).mwt = function() {
          return new S();
        }, (function(t3) {
          t3.outToOut = "0_0", t3.outToCover = "0_1", t3.outToInside = "0_2", t3.outToPart = "0_3", t3.outToCross = "0_4", t3.outNoMove = "0_9", t3.coverToOut = "1_0", t3.coverToCover = "1_1", t3.coverToCross = "1_4", t3.coverNoMove = "1_9", t3.insideToOut = "2_0", t3.insideToInside = "2_2", t3.insideToPart = "2_3", t3.insideToCross = "2_4", t3.insideNoMove = "2_9", t3.partToOut = "3_0", t3.partToInside = "3_2", t3.partToPart = "3_3", t3.partToCross = "3_4", t3.partNoMove = "3_9", t3.crossToOut = "4_0", t3.crossToCover = "4_1", t3.crossToInside = "4_2", t3.crossToPart = "4_3", t3.crossToCross = "4_4", t3.crossNoMove = "4_9";
        })(x || (x = {})), n2.adjustFormulaOnMoveSwap = _t;
      }, "./dist/plugins/sheetsCalc/parser-sheets.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T = this && this.qKr || (x = function(t3, n3) {
          return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, x(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          x(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), x;
        function A(t3) {
          return f(t3 + 1).split("");
        }
        function I(t3, n3) {
          var e3 = n3 + 1;
          return t3 < 0 ? t3 % e3 + e3 : t3 > n3 ? t3 % e3 : t3;
        }
        function k(t3) {
          return new o.ErrorSource(t3);
        }
        function N(t3, n3, e3, i3, r2, o2, a2) {
          return 3 === a2 || e3 >= 0 && i3 >= 0 || 1 === a2 && e3 >= 0 || 2 === a2 && i3 >= 0;
        }
        function j(t3, n3, e3, i3, r2) {
          var a2, s2, c2 = u.BAND_INDEX_CONST, f2 = { Ky: c2, iw: c2, gwt: true, pwt: true, bwt: false, ywt: 0, wwt: true }, l2 = n3 ? E(t3, e3, i3, 0) : O(t3, 0, r2);
          return l2.DX ? (f2.Ky = l2.Mwt, f2.gwt = l2.Cwt) : (f2.iw = l2.Mwt, f2.pwt = l2.Cwt), f2.ywt = l2.ywt, f2.bwt = l2.bwt, !l2.bwt || l2.ywt >= t3.length ? (f2.gwt = l2.Cwt, f2.pwt = l2.Cwt, f2) : !n3 && l2.DX || n3 && !l2.DX ? { bwt: false } : (a2 = t3[f2.ywt], !n3 && ((0, o.isNumber)(a2) || "$" === a2) || n3 && ("C" === a2 || "c" === a2) ? (s2 = n3 ? E(t3, e3, i3, f2.ywt) : O(t3, f2.ywt, r2), f2.ywt = s2.ywt, !s2.bwt || !n3 && !s2.DX || n3 && s2.DX ? (f2.bwt = false, f2) : (f2.ywt < t3.length && (f2.wwt = false), n3 ? (f2.iw = s2.Mwt, f2.pwt = s2.Cwt) : (f2.Ky = s2.Mwt, f2.gwt = s2.Cwt), f2.bwt = true, f2)) : { bwt: false });
        }
        function D(t3) {
          return (0, o.Swt)(t3) || 95 === t3.charCodeAt(0);
        }
        function _(t3, n3, e3) {
          for (var i3 = t3, r2 = n3[t3], o2 = false; i3 < e3 && !D(r2); ) ++i3 < e3 && (r2 = n3[i3]);
          if (i3 < e3) {
            for (; i3 < e3 && D(r2); ) ++i3 < e3 && (r2 = n3[i3]);
            i3 < e3 && (o2 = true);
          }
          return o2;
        }
        function O(t3, e3, i3) {
          var r2, a2, u2, s2, c2, f2, l2, h2, v2, p2 = { Cwt: true, bwt: false }, g2 = t3.length;
          if (e3 >= g2) return p2;
          if ("$" === t3[e3] && (p2.Cwt = false, e3++), e3 >= g2) return p2;
          if (a2 = 0, u2 = t3[r2 = e3], (0, o.isNumber)(u2) && "0" !== u2) {
            for (p2.DX = true; r2 < g2 && (0, o.isNumber)(u2); ) ++r2 < g2 && (u2 = t3[r2]);
            if (r2 - e3 > 7) return p2;
            for (s2 = r2 - 1, c2 = 0; s2 >= e3; s2--, c2++) a2 += (t3[s2].charCodeAt(0) - 48) * m[c2];
            if (a2 <= n2.maxRowCount) return p2.Mwt = a2 - 1, p2.ywt = r2, p2.bwt = true, p2;
          } else if ((0, o.Swt)(u2)) {
            for (p2.DX = false; r2 < g2 && (0, o.Swt)(u2); ) ++r2 < g2 && (u2 = t3[r2]);
            if ((f2 = r2 - e3) > 3 || _(r2, t3, g2)) return p2;
            for (h2 = l2 = r2 - 1; h2 >= e3; h2--) {
              if (!((v2 = t3[h2].charCodeAt(0)) >= 65 && v2 <= 90 || v2 >= 97 && v2 <= 122)) return p2;
              a2 += ((32 | v2) - 96) * d[l2 - h2];
            }
            if (a2 <= n2.maxColumnCount) return p2.Mwt = a2 - 1, p2.ywt = r2, p2.bwt = true, p2;
          }
          return p2;
        }
        function E(t3, e3, i3, r2) {
          var a2, s2, c2, f2, l2, h2 = u.BAND_INDEX_CONST, d2 = { ywt: r2, Mwt: h2, DX: true, Cwt: false, bwt: false }, v2 = t3.length;
          if (r2 >= v2) return d2;
          if ("R" === (s2 = t3[a2 = r2]) || "r" === s2) d2.DX = true, c2 = e3;
          else {
            if ("C" !== s2 && "c" !== s2) return d2;
            d2.DX = false, c2 = i3;
          }
          if (a2++, ++r2 >= v2) return d2.ywt = r2, d2.Mwt = c2, d2.Cwt = true, d2.bwt = true, d2;
          if ("[" === (s2 = t3[a2]) && (r2++, a2++, d2.Cwt = true), r2 >= v2) return d2;
          if (f2 = false, s2 = t3[a2], d2.Cwt && "-" === s2 && (r2++, a2++, f2 = true), r2 >= v2) return d2;
          if (s2 = t3[a2], (0, o.isNumber)(s2)) {
            for (; a2 < v2 && (0, o.isNumber)(s2); ) ++a2 < v2 && (s2 = t3[a2]);
            if (l2 = parseInt(t3.slice(r2, a2).join(""), 10), d2.Cwt) {
              if (a2 >= v2 || "]" !== t3[a2]) return d2;
              a2++;
            }
            l2 <= (d2.DX ? n2.maxRowCount : n2.maxColumnCount) && (d2.Cwt ? (l2 = f2 ? -l2 : l2, d2.Mwt = l2 + c2) : d2.Mwt = l2 - 1, d2.ywt = a2, d2.bwt = true);
          } else if (!d2.Cwt) return d2.ywt = r2, d2.Mwt = c2, d2.Cwt = true, d2.bwt = true, d2;
          return d2;
        }
        function R(t3, n3, e3, i3) {
          var r2, a2, u2, s2, c2, f2 = t3.row || 0, l2 = t3.column || 0, h2 = e3.type;
          if (t3.lyt && e3.dHr) return r2 = e3.dHr, delete e3.dHr, i3.push(o.TrimSymbolText[r2], "("), R(t3, n3, e3, i3), i3.push(")"), void (e3.dHr = r2);
          if (e3.source) {
            if (!(a2 = B(t3, i3, e3.source, e3.endSource))) return void i3.push("#", "R", "E", "F", "!");
          } else !e3.source && t3.addSheetName && 1 === h2 && (2 === t3.addSheetName ? i3.push("!") : B(t3, i3, t3.source, v));
          8 === h2 || 5 === h2 ? (e3.bwr && (2 === e3.bwr || t3.lyt || (0, o.W9t)(t3.source, e3.value)) && i3.push(o.XLETAPrefix), e3.bwr ? (u2 = e3.value, (c2 = (s2 = (0, o.getMapping)() && (0, o.getMapping)().builtInFunctionsMapping) && s2[u2]) && c2.alias && (u2 = c2.alias), i3.push(u2)) : e3.value2 ? i3.push(e3.value2.name) : i3.push(e3.value.toString())) : e3.value && e3._error ? i3.push(e3.value.toString()) : e3.hmt() ? L(t3.useR1C1, f2, l2, e3.row, e3.column, e3.rowRelative, e3.columnRelative, i3) : F(t3.source, t3.useR1C1, f2, l2, e3.row, e3.column, e3.endRow, e3.endColumn, e3.rowRelative, e3.columnRelative, e3.endRowRelative, e3.endColumnRelative, i3, e3.Tyt(), e3.dHr);
        }
        function L(t3, e3, i3, r2, a2, u2, s2, c2, f2) {
          var l2, h2;
          if (f2 = f2 || 0, l2 = n2.maxRowCount - 1, (0 === f2 || 1 === f2) && r2 > -l2 && r2 <= 2 * l2 && (r2 = I(r2 += u2 ? e3 : 0, l2)), h2 = n2.maxColumnCount - 1, (0 === f2 || 2 === f2) && a2 > -h2 && a2 <= 2 * h2 && (a2 = I(a2 += s2 ? i3 : 0, h2)), N(e3, i3, r2, a2, u2, s2, f2)) if (t3) {
            if (2 !== f2 && (c2.push("R"), r2 >= 0 && (e3 !== r2 || !u2) && (u2 ? c2.push("[" + (r2 - e3) + "]") : (r2++, c2.push(r2 + ""))), a2 < 0)) return;
            1 !== f2 && (c2.push("C"), i3 === a2 && s2 || (s2 ? c2.push("[" + (a2 - i3) + "]") : (a2++, c2.push(a2 + ""))));
          } else {
            if (a2 >= 0 && (s2 || c2.push("$"), c2.push.apply(c2, A(a2))), r2 < 0) return;
            r2++, u2 || c2.push("$"), c2.push(r2 + "");
          }
          else c2.push(o.Errors.Reference.toString());
        }
        function F(t3, e3, i3, r2, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2) {
          3 === (g2 = g2 || 0) && (a2 = 0, c2 = n2.maxRowCount - 1, g2 = 1), L(e3, i3, r2, a2, s2, l2, h2, p2, g2);
          var b2 = u.BAND_INDEX_CONST;
          (!e3 || a2 !== c2 || s2 !== f2 || c2 !== b2 && f2 !== b2) && (c2 === b2 && f2 === b2 || (m2 ? p2.push(o.TrimSymbol[m2]) : p2.push(":"), L(e3, i3, r2, c2, f2, d2, v2, p2, g2)));
        }
        function B(t3, n3, e3, i3) {
          if (t3.getExternalSourceToken) {
            if (e3) {
              var r2 = (0, o.Y3e)(t3, t3.getExternalSourceToken(e3).split(""), i3 && t3.getExternalSourceToken(i3).split(""));
              if (!(r2.length > 0)) return false;
              n3.push.apply(n3, r2);
            }
            return n3.push("!"), true;
          }
          return false;
        }
        function P(t3) {
          var n3 = new o.Expression(8);
          return n3.value = t3, n3;
        }
        function G(t3) {
          var n3 = t3;
          return t3 && t3.length >= 3 && "[" === t3[0] && "0" === t3[1] && "]" === t3[2] && (n3 = 3 === t3.length ? "" : t3.substring(3)), n3;
        }
        function U(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = t3.source;
          return s2 && (r2 = s2.G3, o2 = s2.S8, a2 = s2.T8, r2 && (u2 = n3 >= 0 && n3 < o2 && e3 >= a2 || n3 >= o2 && e3 >= 0 && e3 < a2) && (i3 = s2)), i3;
        }
        function H(t3, n3, e3, i3, r2) {
          return 0 === n3._type && 0 === n3.Twt || !i3 && 0 === n3._type && 4 === n3.Twt && (!r2 || e3 < t3.length - 2 && ":" === t3[e3 + 1].Awt && 0 === t3[e3 + 2]._type && 4 === t3[e3 + 2].Twt);
        }
        function V(t3, n3, e3, i3, r2) {
          return n3 <= t3.startRow() && e3 <= t3.startColumn() && n3 + i3 > t3.endRow() && e3 + r2 > t3.endColumn();
        }
        function z(t3, n3) {
          this.abt.Iwt(t3, this, n3);
        }
        function Y(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2 = e3, p2 = 0, g2 = n3[p2], m2 = it(t3, n3, p2, g2), b2 = m2.nM;
          if (!b2) {
            if (i3 = t3.keepUnknownFormulas) return;
            rt();
          }
          for (v2.baseTable = b2, p2 = m2.xwt, g2 = n3[++p2], r2 = p2; " " === g2; ) g2 = n3[++p2];
          for ("@" !== g2 && "[" !== g2 && (g2 = n3[p2 = r2]), o2 = 1, a2 = false, u2 = false, s2 = n3.length; 0 !== o2 && p2 < s2; ) if ("[" === g2 && (o2++, g2 = n3[++p2]), "#" === g2) a2 && o2 <= 1 && rt(), l2 = (f2 = et(n3, p2, g2, o2)).Nwt, p2 = f2.xwt, g2 = f2.kwt, o2 = f2.Dwt, a2 ? 2 === v2.hbt && 3 === l2 || 2 === l2 && 3 === v2.hbt ? v2.hbt = 6 : 3 === v2.hbt && 8 === l2 || 3 === l2 && 8 === v2.hbt ? v2.hbt = 12 : rt() : v2.hbt = l2, a2 = true;
          else if ("@" === g2) {
            for ((o2 > 1 || a2) && rt(), a2 = true, v2.hbt = 1, g2 = n3[++p2]; " " === g2; ) g2 = n3[++p2];
            "[" === g2 && "#" === n3[p2 + 1] && "this row" === Z(n3, p2 + 2, p2 + 10).toLowerCase() && (a2 = false), "," === g2 && rt();
          } else {
            for (h2 = p2; !c(g2) && "]" !== g2 && "[" !== g2; ) if ("'" === g2 && p2++, "," === g2) {
              for (g2 = n3[++p2], d2 = p2; " " === g2; ) g2 = n3[++p2];
              if ("[" === g2) {
                p2 = d2, g2 = ",";
                break;
              }
            } else g2 = n3[++p2];
            if (p2 > h2 && ((u2 || "[" === g2 && o2 > 1) && rt(), p2 = (f2 = W(v2, n3, p2, g2, o2, h2)).xwt, g2 = f2.kwt, o2 = f2.Dwt, u2 = true), "]" === g2) {
              if (0 === --o2) break;
              p2 >= n3.length && rt(), g2 = n3[++p2];
            }
            "," === g2 && (g2 = n3[++p2]);
          }
          a2 || (v2.hbt = t3._wt ? 1 : 16), u2 || (v2.lbt = 1);
        }
        function Z(t3, n3, e3) {
          return t3.slice(n3, e3).join("");
        }
        function W(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, p2, g2 = t3, m2 = [], b2 = false, y2 = false;
          if (r2 > 1) b2 = true, r2--, m2 = n3.slice(o2, e3), ":" === (i3 = n3[++e3]) && (y2 = "[" === (i3 = n3[++e3]), s2 = (f2 = tt(n3, e3, i3, r2)).sbt, e3 = f2.xwt, i3 = f2.kwt, r2 = f2.Dwt);
          else if ("[" === i3) {
            for (y2 = true, i3 = n3[c2 = e3 - 1]; " " === i3; ) i3 = n3[--c2];
            ":" !== i3 && rt(), m2 = Q(m2 = n3.slice(o2, c2)), s2 = (f2 = tt(n3, e3, i3 = n3[e3], r2)).sbt, e3 = f2.xwt, i3 = f2.kwt, r2 = f2.Dwt;
          } else g2.hbt !== v && 16 !== g2.hbt || (b2 = true), (c2 = (l2 = n3.slice(o2, e3)).indexOf(":")) > 0 ? (m2 = l2.slice(0, c2), "[" !== (s2 = l2.slice(c2 + 1))[0] && rt()) : m2 = l2;
          h2 = J(g2, m2, b2), g2.ubt = m2.join(""), g2.sbt = g2.ubt, s2 ? (d2 = J(g2, s2, y2), g2.lbt = 4, g2.sbt = s2.join("")) : (d2 = h2, g2.lbt = 2), h2 > d2 && (p2 = h2, h2 = d2, d2 = p2), g2.ubt = t3.abt.getColumnName(h2), g2.sbt = t3.abt.getColumnName(d2);
          try {
            g2.SYr = null === (a2 = t3.abt.getColumn(g2.ubt)) || void 0 === a2 ? void 0 : a2.jKe(), g2.TYr = null === (u2 = t3.abt.getColumn(g2.sbt)) || void 0 === u2 ? void 0 : u2.jKe();
          } catch (t4) {
          }
          if (++e3 < n3.length) for (i3 = n3[e3]; " " === i3; ) i3 = n3[++e3];
          return { xwt: e3, kwt: i3, Dwt: r2 };
        }
        function Q(t3) {
          for (var n3 = t3.length - 1; n3 >= 0 && " " === t3[n3]; ) n3--;
          for (; n3 >= 0 && " " !== t3[n3]; ) n3--;
          return n3 >= 0 ? t3.slice(n3 + 1, t3.length - n3 - 1) : t3;
        }
        function K(t3) {
          for (var n3 = 0, e3 = t3.length, i3 = 0; n3 < e3 && " " === t3[n3]; ) n3++;
          for (i3 = n3, n3 = e3 - 1; n3 > i3 && " " === t3[n3]; ) n3++;
          return n3 >= i3 ? t3.slice(i3, n3 + 1) : t3;
        }
        function J(t3, n3, e3) {
          var i3, r2, o2, a2;
          if (n3 && X(n3, e3)) {
            for (i3 = [], r2 = 0, o2 = n3.length; r2 < o2; r2++) "'" === n3[r2] && r2 < o2 - 1 && r2++, i3.push(n3[r2]);
            return n3 = i3, (a2 = t3.abt.getColumnIndexInTable(n3.join(""))) < 0 && rt(), a2;
          }
          return -1;
        }
        function X(t3, n3) {
          var e3, i3, r2;
          if (n3) return true;
          if (e3 = "", i3 = e3 = t3[0], "#" === e3 || "@" === e3 || " " === e3 || "," === e3 || ":" === e3 || "[" === e3 || "]" === e3) return false;
          for (r2 = 1; r2 < t3.length; r2++) {
            if ("," === (e3 = t3[r2]) || ":" === e3 || "[" === e3 && "'" !== i3 || "]" === e3 && "'" !== i3 || "@" === e3 && "'" !== i3 || "#" === e3 && "'" !== i3) return false;
            i3 = e3;
          }
          return true;
        }
        function q(t3) {
          var n3, e3, i3 = [];
          for (e3 = 0; e3 < t3.length; e3++) "[" !== (n3 = t3[e3]) && "]" !== n3 && "@" !== n3 && "#" !== n3 && "'" !== n3 || i3.push("'"), i3.push(n3);
          return i3.join("");
        }
        function $(t3) {
          var n3, e3 = "";
          if ("#" === (e3 = t3[0]) || " " === e3 || "@" === e3 || " " === e3 || "," === e3 || ":" === e3 || "[" === e3 || "]" === e3) return true;
          for (n3 = 1; n3 < t3.length; n3++) if (" " === (e3 = t3[n3]) || "," === e3 || ":" === e3 || "[" === e3 || "]" === e3 || "@" === e3 || "#" === e3) return true;
          return false;
        }
        function tt(t3, n3, e3, i3) {
          var r2, o2, a2 = false;
          if ("[" === e3) for (a2 = true, i3++, e3 = t3[++n3]; " " === e3; ) e3 = t3[++n3];
          for (r2 = n3; "]" !== e3 && ("," !== e3 || i3 > 1); ) "'" === e3 && n3++, e3 = t3[++n3];
          return n3 <= r2 && rt(), o2 = t3.slice(r2, n3), i3 > 1 && i3--, a2 || (o2 = K(o2)), { sbt: o2, xwt: n3, kwt: e3, Dwt: i3 };
        }
        function nt(t3) {
          var n3, e3 = (0, o.getMapping)() && (0, o.getMapping)().tableFunctionsMapping;
          if (!c(e3)) {
            for (n3 in e3) if (e3[n3].toLowerCase() === t3) return n3.toLowerCase();
          }
          return t3;
        }
        function et(t3, n3, e3, i3) {
          for (var r2, o2, a2, u2, s2 = 14, c2 = n3; "]" !== e3; ) "'" === e3 && n3++, e3 = t3[++n3];
          for (r2 = nt(r2 = Z(t3, c2, n3).toLowerCase().trim()), o2 = false, a2 = 0; a2 < g.length; a2++) if (r2 === (u2 = g[a2])) {
            s2 = S[r2], o2 = true;
            break;
          }
          if (o2 || rt(), ++n3 >= t3.length) i3--;
          else {
            for (e3 = t3[n3]; " " === e3; ) e3 = t3[++n3];
            if ("," === e3) {
              for (i3 <= 1 && rt(), e3 = t3[++n3]; " " === e3; ) e3 = t3[++n3];
              "[" === e3 && (i3++, e3 = t3[++n3]);
            }
            i3 > 1 && i3--;
          }
          return { Nwt: s2, xwt: n3, kwt: e3, Dwt: i3 };
        }
        function it(t3, n3, e3, i3) {
          for (var r2, o2, a2 = 0, u2 = n3.length; "[" !== i3 && e3 < u2; ) i3 = n3[++e3];
          return (a2 = e3) > 0 ? (o2 = Z(n3, 0, a2), r2 = t3.getTableByName(o2)) : r2 = t3.getTableByIndex(t3.row, t3.column) || t3.source.lsr, { nM: r2, xwt: e3, kwt: i3 };
        }
        function rt() {
          throw h().Exp_FormulaInvalid;
        }
        function ot(t3, n3, e3) {
          var i3 = (0, o.getMapping)() && (0, o.getMapping)().tableFunctionsMapping, r2 = (0, o.sR)().d2t, a2 = i3 ? i3["#All"] : r2.All.name, u2 = i3 ? i3["#This row"] : r2.thisRow.name, s2 = i3 ? i3["#Headers"] : r2.Headers.name, c2 = i3 ? i3["#Data"] : r2.Data.name, f2 = i3 ? i3["#Totals"] : r2.Totals.name;
          switch (t3) {
            case 1:
              return e3 ? "[" + u2 + "]" : "@";
            case 2:
              return n3 ? "[" + s2 + "]" : s2;
            case 3:
              return n3 ? "[" + c2 + "]" : c2;
            case 8:
              return n3 ? "[" + f2 + "]" : f2;
            case 6:
              return "[" + s2 + "], [" + c2 + "]";
            case 12:
              return "[" + c2 + "], [" + f2 + "]";
          }
          return n3 ? "[" + a2 + "]" : a2;
        }
        function at(t3, n3) {
          var e3, i3, r2, a2, u2, s2, c2, f2, l2, h2, d2;
          for (t3.unshift(new o.FormulaToken("=", 1, 0, 0, 0)), a2 = [], u2 = 0, r2 = t3.length - 1; r2 > 0; r2--) t3[r2].lp === t3[r2 - 1].lp && t3[r2].Awt === t3[r2 - 1].Awt || (a2[u2] = t3[r2], u2++);
          for (a2[u2] = t3[r2], a2.reverse(), s2 = [], c2 = 0, f2 = 0; f2 < a2.length; f2++, c2++) i3 = ut(a2[f2]), s2[c2] = a2[f2], (l2 = f2 + 1 < a2.length ? a2[f2 + 1].lp : n3.length) > a2[f2].lp + i3 && (e3 = new o.FormulaToken(n3.slice(a2[f2].lp + i3, l2), 7, a2[f2].lp + i3), a2[f2].ywt = a2[f2].lp + i3 - 1, s2[++c2] = e3);
          for (h2 = 0; h2 < s2.length; h2++) d2 = s2[h2].Awt.trim(), 3 === s2[h2].Twt ? s2[h2].Awt = '"' + s2[h2].Awt + '"' : "(" === d2 || "{" === d2 ? (s2[h2]._type = 1, s2[h2].Twt = 1) : ")" !== d2 && "}" !== d2 || (s2[h2]._type = 1, s2[h2].Twt = 2);
          return s2;
        }
        function ut(t3) {
          return t3.dHr ? t3.dHr < 3 ? 2 : 3 : 1 === t3._type && "ARRAY" === t3.Awt ? 1 : 0 === t3._type && 3 === t3.Twt ? (t3.Ewt || t3.Awt).length + 2 : 0 === t3._type && 12 === t3.Twt ? t3.Awt.length + 3 : t3.Awt.length;
        }
        function st(t3, n3, e3) {
          var i3, r2;
          t3 && n3 && ((r2 = t3[i3 = n3.getName && n3.getName() || "!"]) || (r2 = t3[i3] = [], t3.sheets || (t3.sheets = []), t3.sheets.push(i3)), r2.push(e3));
        }
        function ct(t3, n3, e3, i3, r2, a2) {
          var u2, s2, c2, f2;
          if (t3) {
            for (; 10 === t3.type; ) t3 = t3.value;
            if (12 === t3.type && (t3 = (s2 = t3).value), t3.type >= 2 && t3.type <= 6) ;
            else if (1 === t3.type) u2 = t3.getRange(r2, a2), !i3.source || t3.source && t3.source !== i3.source || n3.push(u2), st(e3, t3.source || i3.source, u2);
            else if (13 === t3.type) u2 = t3.getRange(r2, a2), t3.source === i3.source && u2 && n3.push(u2), st(e3, t3.source || i3.source, u2);
            else if (8 === t3.type) t3.jwt || (t3.jwt = true, c2 = p, t3.source ? t3.source.op() && (c2 = new o.EvaluateContext(t3.source, (0, o.eV)(r2, a2))) : c2 = i3, ct(c2.getName(t3.value), n3, e3, c2, r2, a2), t3.jwt = v);
            else if (9 === t3.type) ct(t3.value, n3, e3, i3, r2, a2), t3.value2 && ct(t3.value2, n3, e3, i3, r2, a2);
            else if (7 === t3.type) for (f2 = 0; f2 < t3.arguments.length; f2++) ct(t3.arguments[f2], n3, e3, i3, r2, a2);
          }
        }
        function ft(t3, n3, e3, r2, a2, u2, s2, f2, l2) {
          var h2, d2, v2, p2;
          t3.setParserOption(u2), h2 = [], d2 = n3.split(""), c(l2) && (l2 = i2.SheetArea.viewport);
          try {
            v2 = !!f2 || e3.op().useR1C1, p2 = e3.Uw(l2).getParserContext(!s2 && v2, (0, o.eV)(r2, a2), { sheetArea: l2 }), h2 = t3.parseToTokens(p2, d2, false);
          } catch (t4) {
          }
          return lt(t3, h2 = at(h2, d2), d2, e3, r2, a2, s2, f2, l2);
        }
        function lt(t3, n3, e3, r2, u2, s2, c2, f2, l2) {
          var h2, d2, g2, m2, b2;
          return void 0 === l2 && (l2 = i2.SheetArea.viewport), d2 = v, g2 = r2.Uw(l2), m2 = r2.op(), b2 = !!f2 || m2.useR1C1, m2 ? (h2 = new a.SheetParserContext(r2, !c2 && b2, (0, o.eV)(u2, s2), { sheetArea: l2 }), d2 = new o.EvaluateContext(g2, (0, o.eV)(u2, s2), false)) : h2 = new o.ParserContext(p, false, (0, o.eV)(0, 0)), h2.ignoreError = true, ht(t3, g2, h2, d2, n3, e3, u2, s2);
        }
        function ht(t3, n3, e3, i3, r2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2 = [];
          for (f2 = 0; f2 < r2.length; f2++) try {
            if ("[" === (c2 = r2[f2]).Awt || "#" === c2.y4[0] || 3 === c2.Twt) {
              j2.push({ index: c2.lp, endIndex: c2.ywt, text: c2.Ewt || c2.Awt, type: c2._type, subType: c2.Twt, canDrag: false, ranges: c2.ranges, value: c2.Awt });
              continue;
            }
            if (f2 = dt(t3, e3, r2, f2, l2 = []), h2 = void 0, d2 = void 0, v2 = void 0, l2.length > 0) {
              for (p2 = 0; p2 < l2.length; p2++) if ((g2 = l2[p2]) instanceof o.FormulaToken) j2.push({ index: g2.lp, endIndex: g2.ywt, text: a2.slice(g2.lp, g2.ywt + 1).join(""), type: g2._type, subType: g2.Twt, canDrag: h2, ranges: [], value: g2.Awt });
              else if (g2.WK) {
                if (b2 = (m2 = g2.WK).type, y2 = m2.source, w2 = a2.slice(g2.lp, g2.ywt + 1).join(""), M2 = [], C2 = {}, h2 = true, S2 = m2.getRange && m2.getRange(u2, s2), 8 === b2) h2 = false, d2 = true, v2 = true, i3 && (T2 = i3, m2.source && (T2 = new o.EvaluateContext(m2.source, (0, o.eV)(u2, s2), false)), ct(x2 = T2.getName(m2.value), M2, C2, i3, u2, s2));
                else if (13 === b2 || 22 === b2) h2 = false, v2 = true, y2 && n3 && y2.Mf === n3.Mf && S2 ? M2.push(S2) : M2 = null, st(C2, y2, S2);
                else if (1 === b2) if (v2 = true, m2.endSource) for (A2 = y2, I2 = m2.endSource, k2 = A2.getSources(I2), p2 = 0; p2 < k2.length; p2++) {
                  if (k2[p2] === n3) {
                    M2.push(S2);
                    break;
                  }
                  st(C2, k2[p2], S2);
                }
                else S2.dHr = m2.dHr, st(C2, y2 || n3, S2), (!y2 || y2 && n3 && y2.Mf === n3.Mf) && M2.push(S2);
                else v2 = false, M2 = null;
                M2 && M2.length > 0 || v2 ? j2.push({ index: g2.lp, endIndex: g2.ywt, text: w2, type: 0, subType: 7, canDrag: h2, ranges: M2, value: w2, sheetRanges: C2, sheetArea: y2 && y2.nT || n3.nT, isName: d2 }) : j2.push({ index: g2.lp, endIndex: g2.ywt, text: w2, type: c2._type, subType: c2.Twt, canDrag: h2, ranges: M2, value: w2, sheetRanges: C2, isName: d2 });
              }
            } else N2 = c2.Awt, c2.dHr && ":" === N2 && (N2 = o.TrimSymbol[c2.dHr]), j2.push({ index: c2.lp, endIndex: c2.ywt, text: N2, type: c2._type, subType: c2.Twt, canDrag: false, ranges: c2.ranges, value: N2 });
          } catch (t4) {
            j2.push({ index: c2.lp, endIndex: c2.ywt, text: c2.Awt, type: c2._type, subType: c2.Twt, canDrag: false, ranges: c2.ranges, value: c2.Awt });
          }
          return j2;
        }
        function dt(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2 = e3[i3];
          return l2 && "function" != typeof l2 && 0 === l2._type ? (o2 = [], a2 = t3.resolveToken(n3, e3, o2, i3) - 1, 1 === (s2 = (u2 = o2[0]).type) || 13 === s2 || 8 === s2 || 5 === s2 || 22 === s2 && u2.source ? (c2 = e3[a2], f2 = { lp: l2.lp, ywt: c2.ywt, WK: u2 }, r2.push(f2), a2) : i3) : i3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.getExpressTokenImp = n2.Vgt = n2.fillBlankToTokens = n2.getValidaColumnName = n2.StructureReferenceResolver = n2.obt = n2.StructReferenceColumnSpecifier = n2.StructReferencePortions = n2.SheetReferenceResolver = n2.validateSheetName = n2.maxColumnCount = n2.maxRowCount = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), u = e2("./dist/plugins/sheetsCalc/calc.ns.js"), s = e2("./dist/plugins/sheetsCalc/external-reference.js"), c = r.Common.lt.ht, f = i2.util.Vf, l = new r.Common.ResourceManager(i2.SR), h = l.getResource.bind(l), n2.maxRowCount = i2.XmlConstants.Io, n2.maxColumnCount = i2.XmlConstants.xo, d = [1, 26, 676], v = void 0, p = null, g = ["#all", "#data", "#headers", "#totals", "#this row"], m = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e6], n2.validateSheetName = o.Cmt, b = (function(t3) {
          function n3() {
            return t3.call(this, 8e3) || this;
          }
          return T(n3, t3), n3.prototype.resolveToken = function(t4, n4, e3, i3, a2) {
            var f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, N2, D2, _2 = t4.useR1C1, O2 = t4.row || 0, E2 = t4.column || 0, R2 = e3.length, L2 = e3[i3], F2 = L2.Awt, B2 = L2._type, V2 = L2.Twt;
            if (0 !== B2 && 6 !== V2) return false;
            if (0 === B2 && 0 === V2 && i3 < R2 - 2 && ":" === e3[i3 + 1].Awt && 12 === e3[i3 + 2].Twt && e3[i3 + 2].Awt.indexOf(":") < 0 || 0 === B2 && 12 === V2) {
              if (v2 = void 0, g2 = void 0, m2 = F2.lastIndexOf(":"), b2 = F2.lastIndexOf("]"), r.Common.zf.fJ(F2, "'") && r.Common.zf.dT(F2, "'") && !(F2 = F2.substring(1, F2.length - 1)) && 12 === V2 && a2 && rt(), F2 && (m2 > b2 ? (v2 = F2.substring(0, m2 - 1), g2 = F2.substring(m2)) : ("'" === (v2 = F2).charAt(0) && (v2 = v2.substring(1, v2.length - 1)), 0 === V2 && (g2 = e3[i3 + 2].Awt, i3 += 2, "'" === g2.charAt(0) && (g2 = g2.substring(1, g2.length - 1))))), i3++, d2 = !!v2, (v2 = G(v2)) && (l2 = (l2 = t4.getExternalSource("", v2)) || k(v2), (g2 = G(g2)) && (l2 instanceof s.ExternalSource ? (h2 = l2.getPeerSource(g2)).Dfe = true : h2 = (h2 = t4.getExternalSource("", g2)) || k(g2))), (L2 = e3[i3]) && "[" === L2.y4[0]) return false;
              if (!L2) return P(F2);
              F2 = L2.Awt;
            }
            if (y2 = i3 === R2 - 1 ? p : e3[i3 + 1], H(e3, L2, i3, _2, true)) {
              if (w2 = t4 && t4.source && t4.source.Lbt && t4.source.Lbt.allowDynamicArray, !(M2 = j(L2.y4, _2, O2, E2, w2)).bwt && !d2) return false;
              if (L2.Twt = 7, M2.bwt && M2.wwt) {
                if (C2 = M2.Ky, S2 = M2.iw, T2 = M2.gwt, x2 = M2.pwt, i3 < R2 - 2 && 5 === y2._type && ":" === y2.Awt && (A2 = y2.dHr, H(e3, y2 = e3[i3 + 2], i3 + 2, _2, false) && (I2 = j(y2.y4, _2, O2, E2)).bwt && C2 === u.BAND_INDEX_CONST == (I2.Ky === u.BAND_INDEX_CONST) && S2 === u.BAND_INDEX_CONST == (I2.iw === u.BAND_INDEX_CONST))) return O2 = C2 === u.BAND_INDEX_CONST ? 0 : O2, E2 = S2 === u.BAND_INDEX_CONST ? 0 : E2, { index: i3 + 3, expr: (0, o.lJ)(l2, h2, C2 - (T2 ? O2 : 0), S2 - (x2 ? E2 : 0), I2.Ky - (I2.gwt ? O2 : 0), I2.iw - (I2.pwt ? E2 : 0), T2, x2, I2.gwt, I2.pwt, O2, E2, A2) };
                if (C2 === u.BAND_INDEX_CONST || S2 === u.BAND_INDEX_CONST) {
                  if (_2) return C2 -= C2 !== u.BAND_INDEX_CONST && T2 ? O2 : 0, S2 -= S2 !== u.BAND_INDEX_CONST && x2 ? E2 : 0, { index: i3 + 1, expr: (0, o.lJ)(l2, h2, C2, S2, C2, S2, T2, x2, T2, x2, O2, E2) };
                  if (!l2) return false;
                  f2 = P(F2);
                }
                if (!f2) return c(l2) && (l2 = U(t4, O2, E2)), N2 = C2 - (T2 ? O2 : 0), D2 = S2 - (x2 ? E2 : 0), { index: i3 + 1, expr: f2 = (0, o.knt)(l2, h2, N2, D2, T2, x2) };
              } else f2 = P(F2);
            } else if (6 === L2.Twt) (f2 = new o.Expression(5)).value = o.CalcError.parse(L2.Awt);
            else {
              if (!l2 || 1 === L2._type) return false;
              f2 = P(F2);
            }
            return l2 && (f2.source = l2), h2 && (f2.endSource = h2), { index: i3 + 1, expr: f2 };
          }, n3.prototype.unparse = function(t4, n4, e3, i3) {
            var r2 = e3 && e3.type;
            return (1 === r2 || 8 === r2 || 5 === r2) && (R(t4, n4, e3, i3), true);
          }, n3;
        })(o.TokenResolver), n2.SheetReferenceResolver = b, (function(t3) {
          t3[t3.ThisRow = 1] = "ThisRow", t3[t3.Headers = 2] = "Headers", t3[t3.Data = 3] = "Data", t3[t3.Totals = 8] = "Totals", t3[t3.HeadersAndData = 6] = "HeadersAndData", t3[t3.DataAndTotals = 12] = "DataAndTotals", t3[t3.All = 14] = "All", t3[t3.NotSpecific = 16] = "NotSpecific";
        })(y = n2.StructReferencePortions || (n2.StructReferencePortions = {})), (function(t3) {
          t3[t3.All = 1] = "All", t3[t3.NotSpecific = 1] = "NotSpecific", t3[t3.SingleColumn = 2] = "SingleColumn", t3[t3.ColumnRange = 4] = "ColumnRange";
        })(w = n2.StructReferenceColumnSpecifier || (n2.StructReferenceColumnSpecifier = {})), M = (function(t3) {
          function n3() {
            return t3.call(this, 13) || this;
          }
          return T(n3, t3), n3.prototype.tableName = function() {
            return this.abt.tableName();
          }, Object.defineProperty(n3.prototype, "baseTable", { get: function() {
            return this.abt;
          }, set: function(t4) {
            this.abt = t4, this.source = t4.source();
          }, enumerable: false, configurable: true }), n3.prototype.a0r = function() {
            var t4 = this.abt.x0r(this.ubt);
            return -1 === t4 ? 0 : t4;
          }, n3.prototype.columnReferenceStart = function() {
            return this.a0r() + this.abt.startColumn();
          }, n3.prototype.u0r = function() {
            var t4 = this.abt.x0r(this.sbt);
            return -1 === t4 ? this.abt.Tx : t4;
          }, n3.prototype.columnReferenceEnd = function() {
            return this.u0r() + this.abt.startColumn();
          }, n3.prototype.referencePortions = function() {
            return this.hbt;
          }, n3.prototype.referenceColumnSpecifier = function() {
            return this.lbt;
          }, n3.prototype.getRange = function(t4, n4, e3, i3) {
            var r2, a2, u2, s2, f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.abt, S2 = C2.startRow(), T2 = C2.endRow(), x2 = C2.hasTotalsRow(), A2 = C2.hasHeadersRow();
            switch (M2.hbt) {
              case 3:
              case 16:
                a2 = A2 ? S2 + 1 : S2, s2 = x2 ? T2 - 1 : T2;
                break;
              case 2:
                if (A2) a2 = S2, s2 = S2;
                else {
                  if (!e3) return p;
                  a2 = S2 - 1, s2 = S2 - 1;
                }
                break;
              case 8:
                if (x2) a2 = T2, s2 = T2;
                else {
                  if (!e3) return p;
                  a2 = T2 + 1, s2 = T2 + 1;
                }
                break;
              case 1:
                S2 += A2 ? 1 : 0, T2 -= x2 ? 1 : 0, a2 = t4, s2 = t4, d2 = false, i3 && i3.tables && C2 && C2.Mf && C2.Mf.rt && (v2 = C2.Mf.rt.Lvt) && ((g2 = i3.tables.find(t4, n4)) || (g2 = i3.tables.find(t4, n4 - 1)), g2 !== C2 && g2 && g2.xkr && g2.xkr(t4, n4) && (m2 = null !== (r2 = v2.Skr) && void 0 !== r2 ? r2 : S2, C2.$Gr && C2.$Gr(m2) && (s2 = a2 = m2, d2 = true))), !d2 && C2.xkr && C2.xkr(t4, n4) && C2.Mf && (y2 = (b2 = C2.Mf).rt && b2.rt.Lvt && b2.rt.Lvt.Skr, s2 = a2 = c(y2) ? S2 : y2);
                break;
              case 6:
                a2 = S2 + (e3 && !A2 ? -1 : 0), s2 = x2 ? T2 - 1 : T2;
                break;
              case 12:
                a2 = A2 ? S2 + 1 : S2, s2 = T2 + (e3 && !x2 ? 1 : 0);
                break;
              default:
                a2 = S2 + (e3 && !A2 ? -1 : 0), s2 = T2 + (e3 && !x2 ? 1 : 0);
            }
            if (22 === M2.type) {
              if (1 === M2.lbt) u2 = 0;
              else if (u2 = M2.abt.getColumnIndexInTable(M2.ubt), f2 = M2.abt.getColumnIndexInTable(M2.sbt), -1 === u2 || -1 === f2) return p;
            } else u2 = M2.columnReferenceStart(), f2 = M2.columnReferenceEnd();
            return w2 = C2.endColumn(), 1 === M2.lbt && (f2 = w2), u2 > w2 || f2 > w2 ? (M2._error = true, p) : s2 < a2 || !e3 && a2 < S2 || !e3 && s2 > T2 ? p : (l2 = s2 - a2 + 1, h2 = f2 - u2 + 1, (0, o.Rwt)(a2, u2, l2, h2));
          }, n3.prototype.offsetWhenInsertRemoveColumn = function(t4, n4, e3, i3) {
            var r2, a2 = this, u2 = a2.offset(0, 0, true);
            if (!e3) {
              if (a2.ubt && -1 === (r2 = a2.abt.getColumnIndexInTable(a2.ubt))) return o.kyt;
              if (a2.sbt && -1 === (r2 = a2.abt.getColumnIndexInTable(a2.sbt))) return o.kyt;
            }
            return u2.ensureSingle = a2.ensureSingle, u2.wsr = a2.wsr, u2;
          }, n3.prototype.offsetWhenCopy = function(t4, n4, e3, i3, r2, u2, s2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = new a.SheetParserContext(n4.Mf, n4.Lbt.useR1C1, (0, o.eV)(e3, i3)), S2 = C2.getTableByIndex(e3, i3), T2 = M2.offset();
            return S2 && (d2 = e3 - r2, v2 = i3 - u2, p2 = s2 - r2, g2 = c2 - u2, m2 = void 0, (m2 = t4 === n4 ? C2.getTableByIndex(d2, v2) : (b2 = new a.SheetParserContext(t4.Mf, t4.Lbt.useR1C1, (0, o.eV)(d2, v2))).getTableByIndex(d2, v2)) !== S2 && m2 === M2.abt && V(m2, p2, g2, f2, l2) && V(S2, s2, c2, f2, l2) && (T2.baseTable = S2, (y2 = S2.getColumn(M2.ubt)) && (T2.SYr = y2.jKe()), (w2 = S2.getColumn(M2.sbt)) && (T2.TYr = w2.jKe()))), (null === (h2 = t4.Mf) || void 0 === h2 ? void 0 : h2.Y1r) && T2.Bwt(t4.Mf.Y1r), T2.ensureSingle = M2.ensureSingle, T2.wsr = M2.wsr, T2;
          }, n3.prototype.Bwt = function(t4) {
            var n4, e3, i3 = this;
            2 === i3.lbt && t4 && (n4 = i3.abt.getColumnIndexInTable(i3.ubt), n4 += t4, (n4 %= e3 = i3.abt.endColumn() - i3.abt.startColumn() + 1) < 0 && (n4 += e3), i3.ubt = i3.sbt = i3.abt.getColumnName(n4));
          }, n3.prototype.offset = function(t4, e3, i3) {
            var r2 = this, o2 = new n3();
            return o2.baseTable = r2.baseTable, o2.ubt = r2.ubt, o2.sbt = r2.sbt, o2.SYr = r2.SYr, o2.TYr = r2.TYr, o2.hbt = r2.hbt, o2.lbt = r2.lbt, o2.ensureSingle = r2.ensureSingle, o2.wsr = r2.wsr, o2;
          }, n3.prototype.Lwt = function(t4, n4) {
            var e3 = this.abt;
            return t4 >= e3.startRow() && n4 >= e3.startColumn() && t4 <= e3.endRow() && n4 <= e3.endColumn();
          }, n3;
        })(o.Expression), n2.obt = M, C = (function(t3) {
          function n3() {
            return t3.call(this, 7900) || this;
          }
          return T(n3, t3), n3.prototype.resolveToken = function(t4, e3, i3, r2) {
            var a2, u2, s2, c2, f2, l2, h2, d2 = i3[r2], v2 = i3[r2 + 1];
            if (0 === d2._type) {
              if (a2 = void 0, u2 = void 0, 0 === d2.Twt || 7 === d2.Twt) a2 = d2.Awt;
              else {
                if (12 !== d2.Twt || !v2 || 0 !== v2._type || 0 !== v2.Twt || "[" !== v2.y4[0]) return p;
                "'" === (s2 = d2.Awt)[0] && (s2 = s2.substr(1, s2.length - 2)), a2 = s2 + v2.Awt, u2 = true;
              }
              if ("]" === a2.charAt(a2.length - 1)) try {
                return c2 = new M(), Y(t4, a2.split(""), c2), c2.baseTable ? (c2.abt.Mf.NMi && ((f2 = c2).type = 22, f2.Iwt = z), u2 ? { index: r2 + 2, expr: c2 } : c2) : new o.Expression(0);
              } catch (t5) {
              }
              else if (l2 = t4.getTableByName && t4.getTableByName(a2)) return h2 = n3.create(l2), l2.Mf.NMi && (h2.type = 22, h2.Iwt = z), h2;
            }
            return p;
          }, n3.prototype.unparse = function(t4, n4, e3, i3) {
            var r2, a2, u2, s2, f2, l2, h2, d2, v2, g2, m2, b2, y2;
            if (13 !== e3.type && 22 !== e3.type) return false;
            if (a2 = (r2 = e3).abt.Gwt, u2 = c(a2) ? r2.abt.tableName() : a2, t4.Sbt) return s2 = r2.getRange(t4.row, t4.column, true), R(t4, n4, f2 = (0, o.lJ)(r2.source, p, s2.row, s2.col, s2.row + s2.rowCount - 1, s2.col + s2.colCount - 1, false, false, false, false), i3), true;
            if (h2 = i3.length, 22 === r2.type && r2.baseTable.Mf.xT) l2 = true;
            else if (16 === r2.hbt && 1 === r2.lbt) return i3.push(u2), t4.lyt && i3.push("[]"), true;
            return (!(d2 = t4.source === r2.abt.source() && r2.Lwt(t4.row, t4.column)) || t4.lyt || r2.abt.Mf.NMi) && (v2 = c(a2) ? r2.abt.tableName() : a2, (g2 = r2.abt.Mf) && g2.NMi && !(0, o.Cmt)(v2.split("")) && (v2 = (0, o.Y3e)(t4, v2.split(""), null).join("") + "!"), i3.push(v2)), i3.push("["), 16 !== r2.hbt && (m2 = ot(r2.hbt, 1 !== r2.lbt, t4.lyt), i3.push(m2)), 1 !== r2.lbt && (1 === r2.hbt && !t4.lyt || 16 === r2.hbt || (6 === r2.hbt || 12 === r2.hbt ? i3.push(", ") : i3.push(",")), (b2 = r2.ubt) ? b2 = q(b2) : l2 = true, l2 || (4 === r2.lbt ? (y2 = r2.sbt) ? (y2 = q(y2), i3.push("[", b2, "]:[", y2, "]")) : l2 = true : 1 === r2.hbt && !t4.lyt && !$(b2) || 16 === r2.hbt ? i3.push(b2) : i3.push("[", b2, "]"))), l2 ? (i3.length = h2, i3.push("#REF!")) : i3.push("]"), true;
          }, n3.create = function(t4, n4, e3, i3, r2) {
            void 0 === n4 && (n4 = y.NotSpecific), void 0 === e3 && (e3 = w.NotSpecific);
            var o2 = new M();
            return o2.baseTable = t4, o2.hbt = n4, i3 >= 0 && (o2.ubt = t4.getColumnName(i3)), r2 >= 0 && (o2.sbt = t4.getColumnName(r2)), o2.lbt = e3, o2;
          }, n3;
        })(o.TokenResolver), n2.StructureReferenceResolver = C, n2.getValidaColumnName = q, S = { "#all": 14, "#data": 3, "#headers": 2, "#totals": 8, "#this row": 1 }, n2.fillBlankToTokens = at, n2.Vgt = ft, n2.getExpressTokenImp = ht;
      }, "./dist/plugins/sheetsCalc/sheetsCalc.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/sheetsCalc/calc.ns.js"), n2), r(e2("./dist/plugins/sheetsCalc/parser-sheets.js"), n2), r(e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), n2), r(e2("./dist/plugins/sheetsCalc/formulaOperatorAdjustor.js"), n2), r(e2("./dist/plugins/sheetsCalc/worksheet-formula.js"), n2), r(e2("./dist/plugins/sheetsCalc/external-reference.js"), n2), e2("./dist/plugins/sheetsCalc/workbook-formula.js");
      }, "./dist/plugins/sheetsCalc/workbook-formula.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D = this && this.nJr || function() {
          return D = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, D.apply(this, arguments);
        };
        function _(t3) {
          t3.forEach((function(t4) {
            var n3;
            delete t4.Uw().G3;
          }));
        }
        function O(t3, n3, e3, r2) {
          i2.GC$.each(t3, (function(t4, i3) {
            var o2, a2, u2 = i3.getName(), s2 = i3.getRow(), c2 = i3.getColumn(), f2 = i3.getExpression(), l2 = i3.getComment(), h2 = i3.getFormatter && i3.getFormatter(), d2 = i3.getSheetTabName && i3.getSheetTabName();
            f2 && (a2 = { name: u2, formula: o2 = h2 || n3.unparse(e3, f2, s2, c2, false, true), sheetTabName: d2, row: s2, col: c2 }, l2 && (a2.comment = l2), r2.push(a2));
          }));
        }
        function E(t3, n3) {
          var e3, i3, r2 = y(t3);
          if ("str" === n3) e3 = r2;
          else if ("b" === n3) e3 = "1" === r2;
          else if ("e" === n3) {
            switch (i3 = g, r2) {
              case "#DIV/0!":
                i3 = 7;
                break;
              case "#N/A":
                i3 = 42;
                break;
              case "#NAME?":
                i3 = 29;
                break;
              case "#NULL!":
                i3 = 0;
                break;
              case "#NUM!":
                i3 = 36;
                break;
              case "#REF!":
                i3 = 23;
                break;
              case "#VALUE!":
                i3 = 15;
            }
            e3 = i3 !== g ? { error: r2, code: i3 } : g;
          } else e3 = r2 === g ? g : parseFloat(r2);
          return e3;
        }
        function R(t3, n3) {
          var e3 = new s.ExternalReferenceManager(n3);
          return e3.b_r.addListener((function(n4) {
            t3.$Dr(n4);
          })), e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), u = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), s = e2("./dist/plugins/sheetsCalc/external-reference.js"), c = e2("./dist/plugins/sheetsCalc/calc-extra-save.js"), f = e2("./dist/plugins/sheetsCalc/worksheet-formula.js"), l = a.SpreadSource, h = r.Common.zf.Gmt, d = new r.Common.ResourceManager(i2.SR), v = d.getResource.bind(d), p = void 0, g = null, m = r.Common.lt.ht, b = i2.mt.o1, y = i2.mt.c1, w = i2.mt.xr, M = i2.mt.go, C = i2.Util.Sr, S = i2.IndexHelper.$i, T = i2.Util.mr, x = i2.mt.n1, A = i2.Util.io, I = i2.mt.St, k = i2.XFileConstants.mo, N = i2.XFileConstants.Ki, (j = i2.Workbook.prototype).Qp = function(t3) {
          var n3 = this, e3 = n3.Lp;
          n3.Lp = new o.CalcService(), n3.Lp.useR1C1 = 1 === n3.options.referenceStyle, n3.Lp.allowDynamicArray = n3.options.allowDynamicArray, n3.Lp.iterativeCalculation = n3.options.iterativeCalculation, n3.Lp.iterativeCalculationMaximumIterations = n3.options.iterativeCalculationMaximumIterations, n3.Lp.calculationMode = n3.options.calculationMode, n3.Lp.iterativeCalculationMaximumChange = n3.options.iterativeCalculationMaximumChange, t3 && e3 && n3.Lp.cloneFrom(e3), n3.yC = new l(n3), n3.wC = n3.Lp.getGlobalSourceModel(n3.yC);
        }, j.addCustomFunction = function(t3) {
          this.Uwt(t3);
        }, j.Uwt = function(t3) {
          if (!(t3 && t3 instanceof o.Functions.Function)) throw new Error(v().Exp_InvalidCustomFunction);
          t3.name = h(t3.name), this.Amt[t3.name] = t3, this.$Dr({ type: "setCustomFunction", fn: t3 });
        }, j.getCustomFunction = function(t3) {
          return t3 ? this.Amt[h(t3)] : p;
        }, j.internalGetCustomFunctions = function() {
          return D({}, this.Amt);
        }, j.removeCustomFunction = function(t3) {
          t3 && (delete this.Amt[h(t3)], this.$Dr({ type: "setCustomFunction", name: t3 }));
        }, j.clearCustomFunctions = function() {
          this.Amt = {}, this.$Dr({ type: "clearCustomFunction" });
        }, j.addCustomName = function(t3, n3, e3, i3, r2, o2) {
          this.zwt(this.hyt, t3, n3, e3, i3, false, r2, o2);
        }, j.Vwt = function(t3) {
          return !this.hyt[h(t3)];
        }, j.isValidCustomName = function(t3) {
          return t3 && i2.mt.P0(t3) && this.Vwt(t3);
        }, j.pp = function(t3, n3, e3, i3, r2, o2, a2, s2) {
          var c2, f2 = this;
          if (!n3 || !e3) throw new Error(v().Exp_InvalidCustomName);
          s2 && f2.Lp && I(e3) ? (c2 = s2.Ywt(e3, i3, r2), t3[h(n3)] = new u.FormatterNameInfo(n3, e3, s2.name(), c2, i3, r2)) : f2.zwt(t3, n3, e3, i3, r2, o2, a2, p, p, true);
        }, j.zwt = function(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2 = this;
          if (!n3 || !e3 || !o2 && !f2.isValidCustomName(n3)) throw new Error(v().Exp_InvalidCustomName);
          f2.$_r(t3, n3, e3, i3, r2, { ignoreError: o2, comment: a2, isReadOnly: u2, backup: s2, isFormatString: c2 });
        }, j.$_r = function(t3, n3, e3, r2, o2, a2) {
          var s2, c2, l2, d2, v2, m2, b2, y2, w2, M2, C2, S2, T2 = this;
          if (T2.Lp) {
            if (s2 = a2.ignoreError, c2 = a2.comment, l2 = a2.isReadOnly, d2 = a2.backup, v2 = a2.ignoreModelChange, m2 = a2.isFormatString, y2 = (b2 = (0, i2.jf)(this)) ? b2.Uw() : g, w2 = void 0, s2) try {
              w2 = T2.Lp.parse(y2, e3, r2, o2, false, true, true, p, true);
            } catch (t4) {
            }
            else w2 = T2.Lp.parse(y2, e3, r2, o2, p, p, p, p, true);
            M2 = void 0, d2 ? (M2 = d2).SB(w2, p, r2, o2, { ignoreModelChange: true }) : M2 = new u.NameInfo(n3, w2, r2, o2, c2, l2, T2), t3[h(n3)] = M2, v2 || (C2 = m2 ? "setFormatStringName" : "setCustomName", T2.$Dr({ type: C2, name: n3, value: { formula: e3, comment: c2, isReadOnly: l2, baseRow: r2, baseCol: o2 } })), w2 && (0, f.addNameInName)(T2, w2, M2), s2 || ((S2 = {})[n3] = n3, this.Zwt(S2, true));
          }
        }, j.Wwt = function(t3, n3, e3, i3, r2, o2, a2, s2) {
          var c2, l2, d2 = this;
          if (!n3 || !e3 || !a2 && !d2.isValidCustomName(n3)) throw new Error(v().Exp_InvalidCustomName);
          d2.Lp && (c2 = t3[h(n3)] = new u.NameInfo(n3, i3, r2, o2, s2, p, d2), i3 && (0, f.addNameInName)(d2, i3, c2), a2 || ((l2 = {})[n3] = n3, this.Zwt(l2, true)));
        }, j.getCustomName = function(t3) {
          return t3 ? this.hyt[h(t3)] : p;
        }, j.dBe = function(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, d2, m2, b2, y2, w2, M2, C2, S2, T2 = this;
          if (r2 = null != r2 ? r2 : 0, o2 = null != o2 ? o2 : 0, T2.Lp) {
            if (c2 = T2.hyt[h(t3)]) if (f2 = void 0, e3 && (d2 = (l2 = (0, i2.jf)(this)) ? l2.Uw() : g, f2 = T2.Lp.parse(d2, e3, r2, o2, p, p, p, p, true)), n3 && t3 !== n3) {
              if (!T2.isValidCustomName(n3)) throw new Error(v().Exp_InvalidCustomName);
              if (m2 = [], b2 = [], y2 = [], (w2 = T2.vBe) && w2.forEach((function(e4, i3) {
                var r3 = false;
                e4.forEach((function(e5) {
                  e5.value !== t3 || e5.source || (b2.push(e5), r3 = true), e5.value !== n3 || e5.source || y2.push(e5);
                })), r3 && m2.push(i3);
              })), 2 === (M2 = null === (u2 = T2.wC) || void 0 === u2 ? void 0 : u2.rBe(t3, n3, b2.length > 0, y2.length > 0))) throw new Error(v().Exp_CustomNameBothInUse);
              T2.suspendCalcService(), (c2 = T2.hyt[h(t3)]).btV(n3), T2.hyt[h(t3)] && (delete T2.hyt[h(t3)], T2.$Dr({ type: "setCustomName", name: t3, value: g })), T2.hyt[h(n3)] = c2, T2.q_r(c2), b2.forEach((function(t4) {
                t4.value = n3;
              })), m2.forEach((function(t4) {
                T2.q_r(t4);
              })), T2.wC.updateNameCalc(n3, true), f2 ? (C2 = T2.hyt[h(n3)], T2.removeCustomName(n3), T2.zwt(T2.hyt, n3, e3, r2, o2, false, a2, c2.isReadOnly(), C2)) : (c2.X_r(a2), T2.q_r(c2)), 3 !== M2 || f2 || ((S2 = {})[n3] = n3, this.Zwt(S2, true)), T2.resumeCalcService(false);
            } else f2 ? (T2.suspendCalcService(), C2 = T2.hyt[h(t3)], T2.removeCustomName(t3), T2.zwt(T2.hyt, t3, e3, r2, o2, false, a2, c2.isReadOnly(), C2), T2.resumeCalcService(false)) : (c2.X_r(a2), T2.q_r(c2));
            null === (s2 = (0, i2.jf)(this)) || void 0 === s2 || s2.zw();
          }
        }, j.q_r = function t3(n3) {
          this.$Dr({ type: "setCustomName", name: n3.getName(), value: { expr: n3.getExpression(), baseRow: n3.getRow(), baseCol: n3.getColumn(), comment: n3.getComment(), isReadOnly: n3.isReadOnly() } });
        }, j.xO = function(t3) {
          return t3 ? this.bp[h(t3)] : p;
        }, j.getCustomNames = function() {
          var t3 = [];
          return i2.GC$.each(this.hyt, (function(n3, e3) {
            t3.push(e3);
          })), t3;
        }, j.Qwt = function() {
          var t3 = [];
          return i2.GC$.each(this.bp, (function(n3, e3) {
            t3.push(e3);
          })), t3;
        }, j.removeCustomName = function(t3) {
          var n3, e3, i3;
          t3 && (e3 = this.hyt[h(t3)], null === (n3 = this.vBe) || void 0 === n3 || n3.delete(e3), delete this.hyt[h(t3)], e3 && this.$Dr({ type: "setCustomName", name: t3, value: g }), (i3 = {})[t3] = t3, this.Zwt(i3, false));
        }, j.o3 = function(t3) {
          if (t3) {
            delete this.bp[h(t3)], this.$Dr({ type: "setFormatStringName", name: t3, value: g });
            var n3 = {};
            n3[t3] = t3, this.Zwt(n3, false);
          }
        }, j.clearCustomNames = function() {
          this.aEr();
        }, j.aEr = function(t3) {
          var n3, e3, i3 = this.hyt;
          if (this.vBe) for (n3 in i3) Object.prototype.hasOwnProperty.call(i3, n3) && (e3 = i3[n3], this.vBe.delete(e3));
          this.hyt = {}, !(null == t3 ? void 0 : t3.ignoreModelChange) && this.$Dr({ type: "clearCustomName" }), this.Zwt(i3, false);
        }, j.getNameInfos = function() {
          return this.hyt;
        }, j.setNameInfos = function(t3) {
          m(t3) || (this.hyt = t3);
        }, j.Kwt = function() {
          var t3 = this.bp;
          this.bp = {}, this.$Dr({ type: "clearFormatStringName" }), this.Zwt(t3, false);
        }, j.Zwt = function(t3, n3) {
          var e3, r2, o2;
          if (t3) {
            for (r2 in e3 = this.wC, t3) e3 && e3.updateNameCalc(r2, n3);
            this.Lp && !this.Lp.IsSuspended() && (o2 = this.getActiveSheet()) && (o2.suspendPaint(), this.Lp.recalculateAll(false), o2.resumePaint()), this.ki(i2.Events.CustomNameChangedInternal, {});
          }
        }, j.calculate = function(t3, n3) {
          var e3, r2, o2, u2, s2, c2, l2, h2, d2, v2, b2, y2, w2 = this, M2 = w2.op();
          if (M2) {
            switch (e3 = p, r2 = true, t3) {
              case i2.CalculationType.rebuild:
                e3 = true;
                break;
              case i2.CalculationType.minimal:
                e3 = false, r2 = false;
                break;
              case i2.CalculationType.regular:
                e3 = false;
            }
            if (this.suspendPaint(), m(n3)) {
              if (M2.suspend(true), e3) for (o2 = void 0, o2 = w2.sheets || [], (0, f.resetCustomName)(w2.hyt, g, M2, w2), (0, f.resetFormatStringCustomName)(w2, w2.bp, M2), u2 = 0; u2 < o2.length; u2++) for (c2 = (s2 = o2[u2]).Uw(), (0, f.resetCustomName)(s2.hyt, c2, M2, w2), h2 = (l2 = c2.getCalcSourceModel()).getAllNodes(), d2 = 0; d2 < h2.length; d2++) (b2 = (v2 = h2[d2]).calc) && v2.WK && (0, f.adjustOneFormula)(M2, b2);
              M2.resume(e3, !r2, true);
            } else (s2 = w2.getSheetFromName(n3)) ? s2.c3n(e3, r2) : w2.sheets.length > 0 && (y2 = a.formulaToRanges(w2.sheets[0], n3, 0, 0, true)[0] || a.formulaToRanges(w2.sheets[0], n3, 0, 0)[0]) && (null == (s2 = w2.getSheetFromName(y2.sheetName)) || s2.c3n(e3, r2, y2.ranges[0]));
            this.resumePaint();
          }
        }, j.getCalcService = function() {
          return this.Lp;
        }, j.op = function() {
          return this.Lp;
        }, j.suspendCalcService = function(t3) {
          this.Lp && this.Lp.suspend(t3);
        }, j.resumeCalcService = function(t3) {
          this.Lp && this.Lp.resume(t3);
        }, j.getCircularReference = function() {
          return this.Lp.HBe();
        }, j.updateExternalReference = function(t3, n3, e3, i3) {
          this.suspendPaint(), this.suspendCalcService(), this._p._6(t3, n3, e3, i3), this.resumeCalcService(false), this.resumePaint();
        }, j.getExternalReferences = function(t3) {
          return this._p.myt(t3);
        }, i2.Workbook.ch("calc", { priority: 1e3, init: function() {
          this.Amt = {}, this.hyt = {}, this.bp = {}, this._p = R(this);
        }, dispose: function() {
          var t3;
          null === (t3 = this._p) || void 0 === t3 || t3.dispose();
        }, toJson: function(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.Amt;
          if (!i2.GC$.isEmptyObject(d2)) for (e3 in t3.customFunctions = {}, d2) d2.hasOwnProperty(e3) && (t3.customFunctions[e3] = d2[e3].toJSON());
          r2 = h2._p.toJSON(n3), i2.GC$.isEmptyObject(r2) || (t3.externalReference = r2), o2 = [], a2 = [], u2 = h2.getCustomNames(), s2 = h2.Qwt(), c2 = h2.Lp, f2 = (0, i2.Sp)(this), l2 = f2 ? f2.Uw() : g, u2 && c2 && (i2.GC$.each(u2, (function(t4, n4) {
            var e4, i3, r3 = n4.getName(), a3 = n4.getRow(), u3 = n4.getColumn(), s3 = n4.getExpression(), f3 = n4.isReadOnly(), h3 = n4.getComment();
            s3 && (i3 = { name: r3, formula: e4 = c2.unparse(l2, s3, a3, u3, false, true, 2), row: a3, col: u3 }, h3 && (i3.comment = h3), "boolean" == typeof f3 && (i3.isReadOnly = f3), o2.push(i3));
          })), O(s2, c2, l2, a2), o2.length > 0 && (t3.names = o2), a2.length > 0 && (t3.formatStringNames = a2));
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, f2, l2, h2, d2, v2, p2, m2, y2, w2, M2, C2, S2 = this, T2 = S2.Amt;
          i2.GC$.isEmptyObject(T2) || (t3.workbook.lossless.customFunctions = T2), i2.Util.ko(e3) && (null == e3 ? void 0 : e3.saveR1C1Formula) && (t3.workbook.lossless.frc = 1), S2._p && (o2 = (r2 = S2._p.wh(t3)).externalReferencesNode, a2 = r2.externalLinks, (u2 = r2.count) > 0 && (t3.workbook.c_.push(o2), t3.externalLinks = a2)), s2 = [], f2 = b(t3.workbook, "definedNames"), l2 = S2.getCustomNames(), h2 = S2.Lp, d2 = (0, i2.Sp)(this), v2 = d2 ? d2.Uw() : g, p2 = S2.yC, m2 = p2 && p2.getUsedCustomNames() || {}, l2 && l2.length > 0 && h2 && (f2 || (f2 = { n_: "definedNames", c_: [] }, t3.workbook.c_.push(f2)), y2 = f2.c_, w2 = !e3 || false !== e3.includeUnusedNames, i2.GC$.each(l2, (function(t4, n4) {
            var r3, o3, a3, u3 = n4.getName(), f3 = n4.getExpression(), l3 = n4.isReadOnly(), d3 = n4.getComment();
            f3 && (w2 || m2[u3]) && (r3 = h2.unparse(v2, f3, 0, 0, false, true, 2), o3 = i2.Util.xAe({ name: u3, comment: d3, isReadOnly: l3 }, r3), e3 && e3.includeCalcModelCache && (a3 = (0, c.exprToJSON)(f3), s2.push(a3), o3.e = s2.length - 1), y2.push(o3));
          }))), s2.length > 0 && (t3.workbook.lossless.exprs = s2), M2 = [], (C2 = S2.Qwt()) && C2.length > 0 && h2 && (O(C2, h2, v2, M2), M2.length > 0 && (t3.workbook.lossless.formatStringNames = M2)), t3.workbook.lossless.idMap = (0, c.dbt)(h2);
        }, preFromSJSFormat: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, T2, x2, A2, I2, k2, j2, D2, _2, O2, L, F, B, P, G, U, H, V, z, Y, Z, W, Q = w(t3.workbook, "externalReferences"), K = t3.externalLinks;
          if (Q && K && Q.c_ && Q.c_.length > 0) {
            for (o2 in r2 = {}, K) if (K.hasOwnProperty(o2)) {
              if (a2 = K[o2], u2 = {}, s2 = w(a2, "externalBook")) {
                if (f2 = [], (c2 = w(s2, "sheetNames")) && c2.c_ && c2.c_.length) {
                  for (l2 = 0, h2 = c2.c_.length; l2 < h2; l2++) (d2 = c2.c_[l2]) && (v2 = d2.val) && (v2 = i2.mt.kfe(v2), f2.push(v2));
                  u2.sheetNames = f2;
                }
                if (p2 = w(s2, "sheetDataSet")) {
                  if (g2 = {}, m2 = M(p2, i2.XFileConstants.bo)) {
                    for (b2 = 0, y2 = m2.length; b2 < y2; b2++) if (T2 = +(C2 = m2[b2]).sheetId, x2 = !!C2.refreshError, A2 = g2[v2 = f2[T2]] = {}, x2 && (A2.isNew = true), I2 = M(C2, "row")) {
                      for (k2 = 0, j2 = I2.length; k2 < j2; k2++) if ((D2 = I2[k2]) && (O2 = A2[_2 = D2.r - 1] = A2[_2] || {}, L = M(D2, "cell"))) for (F = 0, B = L.length; F < B; F++) G = void 0, (P = L[F]) && ((U = P.r) && (G = S(U)), H = P.t, z = void 0, (V = w(P, "v")) && (z = E(V, H)), O2[G] = z);
                    }
                  }
                  u2.data = g2;
                }
              }
              u2.option = a2.option, r2[o2] = u2;
            }
            for (Y = {}, W = (Z = Q.c_).length, l2 = 0; l2 < W; l2++) Y[l2 + 1] = r2[Z[l2][N]];
            this._p = R(this, Y);
          }
        }, yh: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, l2, h2, d2, b2, M2, S2, I2, j2, D2, O2, E2, R2, L, F = this;
          function B() {
            var t4, n4;
            return r2 || (n4 = (t4 = (0, i2.jf)(F) || F.sheets[0]) ? t4.Uw() : g, r2 = n4 && n4.getParserContext(false)), r2;
          }
          if (o2 = F.Lp, a2 = e3 && !e3.fullRecalc, u2 = i2.Util.wo(e3, F.v2), o2 && (o2.suspend(), o2.lb = a2), F.clearCustomNames(), (s2 = F.sheets).forEach((function(t4) {
            t4.Uw().G3 = true;
          })), l2 = t3.workbook.lossless, e3 && (e3.$wt = (0, c.vbt)(o2, l2)), (h2 = n3.workbookNames) && h2.length > 0 && h2.forEach((function(t4) {
            var n4 = x(t4.name), e4 = y(t4), i3 = x(t4.comment), r3 = t4.isReadOnly;
            l2 && l2.exprs && l2.exprs[t4.e] ? F.Wwt(F.hyt, (0, f.convertBuiltInNameToDisplayName)(n4), "" + T(x(e4)), (0, c.exprFromJSON)(l2.exprs[t4.e], B()), 0, 0, true, i3, true) : e4 && F.zwt(F.hyt, (0, f.convertBuiltInNameToDisplayName)(n4), "" + T(x(e4)), 0, 0, true, i3, r3);
          })), d2 = l2 && l2.formatStringNames) for (b2 = 0; b2 < d2.length; b2++) M2 = d2[b2], m(M2.sheetTabName) && F.pp(this.bp, M2.name, M2.formula, M2.row, M2.col, true, M2.comment, p, true);
          if (F.clearCustomFunctions(), S2 = l2 && l2.customFunctions) for (I2 in S2) S2.hasOwnProperty(I2) && (j2 = S2[I2], (D2 = (0, i2.getTypeFromString)(j2.typeName)) && ((O2 = new D2()).fromJSON(j2), F.Uwt(O2)));
          u2 || (E2 = [], R2 = t3.workbook.rels && t3.workbook.rels.c_, (L = w(t3.workbook, k).c_).forEach((function(n4) {
            var e4, i3, r3 = A(x(n4.name)), o3 = F.getSheetFromName(r3) || F.Gm(r3), a3 = n4[N], u3 = C(R2, a3), s3 = u3 && u3.Target;
            o3 && s3 && (e4 = F.getSheetRelsName(s3), i3 = void 0, i3 = s3.indexOf("xl/chartsheets") > -1 ? t3.chartsheets[e4] : t3.sheets[e4], E2.push({ sheet: 3 === o3._gi ? o3.getTemplate() : o3, sheetData: i3 }));
          })), E2.forEach((function(t4) {
            var i3 = t4.sheet, r3 = t4.sheetData;
            i3 && i3.nameFunctionFromSJSFormat && i3.nameFunctionFromSJSFormat(r3, n3, e3);
          })), E2.forEach((function(t4) {
            var i3 = t4.sheet, r3 = t4.sheetData;
            i3 && i3.formulaFromSJSFormat && i3.formulaFromSJSFormat(r3, n3, e3);
          }))), e3.incrementLoadTask.addTask((function(t4, n4, e4) {
            o2 && (a2 ? o2.resumeWithoutCalc() : o2.resume(false, false, !o2.calcOnDemand), delete o2.lb), _(s2);
          }), [o2, t3, e3], a2 ? p : v().STEP.startCalc, (function() {
            return a2 ? i2.STEP_RATE.end : i2.STEP_RATE.loadFileData + i2.STEP_RATE.parseFile + i2.STEP_RATE.loadSheetDataWithCalc + i2.STEP_RATE.loadSheetFormulaWithCalc;
          }));
        }, Mb: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, g2, b2, M2, S2, I2 = this, j2 = I2.Lp, D2 = e3 && !e3.fullRecalc, O2 = i2.Util.wo(e3, I2.v2);
          if (j2 && (j2.suspend(), j2.lb = D2), I2.clearCustomNames(), (r2 = I2.sheets).forEach((function(t4) {
            t4.Uw().G3 = true;
          })), o2 = t3.workbook.lossless, (a2 = n3.workbookNames) && a2.length > 0 && a2.forEach((function(t4) {
            var n4 = x(t4.name), e4 = y(t4), i3 = x(t4.comment), r3 = t4.isReadOnly;
            e4 && I2.zwt(I2.hyt, (0, f.convertBuiltInNameToDisplayName)(n4), "" + T(x(e4)), 0, 0, true, i3, r3);
          })), u2 = o2 && o2.formatStringNames) for (s2 = 0; s2 < u2.length; s2++) c2 = u2[s2], m(c2.sheetTabName) && I2.pp(this.bp, c2.name, c2.formula, c2.row, c2.col, true, c2.comment, p, true);
          if (I2.clearCustomFunctions(), l2 = o2 && o2.customFunctions) for (h2 in l2) l2.hasOwnProperty(h2) && (d2 = l2[h2], (v2 = (0, i2.getTypeFromString)(d2.typeName)) && ((g2 = new v2()).fromJSON(d2), I2.Uwt(g2)));
          O2 || (b2 = [], M2 = t3.workbook.rels && t3.workbook.rels.c_, (S2 = w(t3.workbook, k).c_).forEach((function(n4) {
            var e4, i3, r3 = A(x(n4.name)), o3 = I2.getSheetFromName(r3) || I2.Gm(r3), a3 = n4[N], u3 = C(M2, a3), s3 = u3 && u3.Target;
            o3 && s3 && (e4 = I2.getSheetRelsName(s3), i3 = void 0, i3 = s3.indexOf("xl/chartsheets") > -1 ? t3.chartsheets[e4] : t3.sheets[e4], b2.push({ sheet: 3 === o3._gi ? o3.getTemplate() : o3, sheetData: i3 }));
          })), b2.forEach((function(t4) {
            var i3 = t4.sheet, r3 = t4.sheetData;
            i3 && i3.nameFunctionFromSJSFormat && i3.nameFunctionFromSJSFormat(r3, n3, e3);
          })), b2.forEach((function(t4) {
            var i3 = t4.sheet, r3 = t4.sheetData;
            i3 && i3.formulaFromSJSFormat && i3.formulaFromSJSFormat(r3, n3, e3);
          }))), e3.incrementLoadTask.addTask((function(t4, n4, e4) {
            if (j2) {
              if (D2) j2.resumeWithoutCalc();
              else {
                j2.resume(false, false, !j2.calcOnDemand), delete j2.tMt;
                var i3 = I2.getActiveSheet();
                i3 && i3.zw();
              }
              delete j2.lb;
            }
            _(r2);
          }), [j2, t3, e3]);
        }, preFromJson: function(t3, n3, e3) {
          this._p = R(this, t3.externalReference);
        }, fromJson: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2 = this, A2 = x2.Lp, I2 = t3.noRecalc || e3 && e3.doNotRecalculateAfterLoad;
          if (A2 && (A2.suspend(), A2.lb = I2), x2.clearCustomNames(), u2 = [], a2 = t3.sheets) for (c2 in a2) "string" == typeof c2 && (l2 = a2[c2], (o2 = x2.getSheetFromName(l2.name || c2)) && (o2.Uw().G3 = true));
          if (h2 = t3.names) for (d2 = 0; d2 < h2.length; d2++) v2 = h2[d2], x2.zwt(this.hyt, (0, f.convertBuiltInNameToDisplayName)(v2.name), v2.formula, v2.row, v2.col, true, v2.comment, v2.isReadOnly);
          if (p2 = t3.formatStringNames) for (d2 = 0; d2 < p2.length; d2++) v2 = p2[d2], m(v2.sheetTabName) && x2.pp(this.bp, v2.name, v2.formula, v2.row, v2.col, true, v2.comment);
          if (x2.clearCustomFunctions(), g2 = t3.customFunctions) for (b2 in g2) g2.hasOwnProperty(b2) && (y2 = g2[b2], (w2 = (0, i2.getTypeFromString)(y2.typeName)) && ((M2 = new w2()).fromJSON(y2, n3), x2.Uwt(M2)));
          if (a2) {
            for (c2 in r2 = 0, a2) "string" == typeof c2 && (l2 = a2[c2], (o2 = x2.getSheetFromName(l2.name || c2)) && (u2.push(o2), o2.nameFunctionsFromJSON(l2, n3, e3), r2++));
            for (s2 = u2.length, r2 = 0; r2 < s2; r2++) (o2 = u2[r2]).formulaFromJSON(a2[o2.name()], n3, e3);
          }
          for (A2 && (I2 ? A2.resumeWithoutCalc() : (A2.resume(false, false, !A2.calcOnDemand), delete A2.tMt), delete A2.lb), C2 = 0, S2 = u2; C2 < S2.length; C2++) delete (T2 = (o2 = S2[C2]).Uw()).G3;
        }, Yp: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2 = this, S2 = C2.Lp, T2 = t3.noRecalc || e3 && e3.doNotRecalculateAfterLoad;
          if (S2 && (S2.suspend(), S2.lb = T2), C2.clearCustomNames(), a2 = t3.sheets, u2 = [], a2) for (c2 in a2) "string" == typeof c2 && (l2 = a2[c2], (o2 = C2.getSheetFromName(l2.name || c2)) && (o2.Uw().G3 = true));
          if (h2 = t3.names) for (d2 = 0; d2 < h2.length; d2++) v2 = h2[d2], C2.zwt(this.hyt, (0, f.convertBuiltInNameToDisplayName)(v2.name), v2.formula, v2.row, v2.col, true, v2.comment, v2.isReadOnly);
          if (p2 = t3.formatStringNames) for (d2 = 0; d2 < p2.length; d2++) v2 = p2[d2], m(v2.sheetTabName) && C2.pp(this.bp, v2.name, v2.formula, v2.row, v2.col, true, v2.comment);
          if (C2.clearCustomFunctions(), g2 = t3.customFunctions) for (b2 in g2) g2.hasOwnProperty(b2) && (y2 = g2[b2], (w2 = (0, i2.getTypeFromString)(y2.typeName)) && ((M2 = new w2()).fromJSON(y2, n3), C2.Uwt(M2)));
          if (a2) {
            for (c2 in r2 = 0, a2) "string" == typeof c2 && (l2 = a2[c2], (o2 = C2.getSheetFromName(l2.name || c2)) && (u2.push(o2), o2.nameFunctionsFromJSON(l2, n3, e3), r2++));
            for (s2 = u2.length, r2 = 0; r2 < s2; r2++) (o2 = u2[r2]).formulaFromJSON(a2[o2.name()], n3, e3);
          }
          e3.incrementLoadTask.addTask((function(t4, n4, e4) {
            var i3, r3, a3, s3;
            for (S2 && (T2 ? S2.resumeWithoutCalc() : (S2.resume(false, false, !S2.calcOnDemand), delete S2.tMt, (i3 = C2.getActiveSheet()) && i3.zw()), delete S2.lb), r3 = 0, a3 = u2; r3 < a3.length; r3++) delete (s3 = (o2 = a3[r3]).Uw()).G3;
          }), [S2, t3, e3]);
        } });
      }, "./dist/plugins/sheetsCalc/worksheet-formula.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N = this && this.nJr || function() {
          return N = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, N.apply(this, arguments);
        }, j = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        };
        function D(t3) {
          return "=" === t3.charAt(0);
        }
        function _(t3) {
          var n3, e3;
          return { left: t3.indexOf("["), right: t3.indexOf("]") };
        }
        function O(t3) {
          var n3 = _(t3), e3 = n3.left, i3 = n3.right;
          return e3 >= 0 && e3 < i3;
        }
        function E(t3) {
          var n3 = _(t3), e3 = n3.left, i3 = n3.right, r2 = t3.indexOf("@");
          return e3 < r2 && r2 < i3;
        }
        function R(t3) {
          return D(t3) && E(t3);
        }
        function L(t3) {
          return D(t3) && O(t3);
        }
        function F(t3, n3) {
          var e3, i3;
          if (t3.NMi) {
            if (L(n3 = n3.trim())) return true;
            if (n3.indexOf("{{") >= 0 && n3.indexOf("}}") >= 0) {
              for (e3 = n3.split(/{{|}}/), i3 = 0; i3 < e3.length; i3++) if (L(e3[i3].trim())) return true;
            }
          }
          return false;
        }
        function B(t3, n3, e3, i3) {
          return e3 === l && (e3 = t3.getActiveRowIndex()), t3.NMi.nMt(n3, e3, i3);
        }
        function P(t3) {
          return t3.columnRelative;
        }
        function G(t3) {
          return t3.endColumnRelative;
        }
        function U(t3) {
          return t3.rowRelative;
        }
        function H(t3) {
          return t3.endRowRelative;
        }
        function V(t3) {
          return t3.op();
        }
        function z(t3) {
          return t3.toUpperCase() === b ? w : t3;
        }
        function Y() {
          var t3 = this;
          t3.eMt ? t3.eMt = false : (t3.Amt = {}, t3.hyt = {}, t3.iMt ? t3.iMt.clearAll() : t3.T3 = new a.SheetSource(t3, i2.SheetArea.colHeader), t3.rMt ? t3.rMt.clearAll() : t3.A3 = new a.SheetSource(t3, i2.SheetArea.rowHeader), t3.oMt ? t3.oMt.clearAll() : t3.qgt = new a.SheetSource(t3, i2.SheetArea.viewport));
        }
        function Z(t3, n3) {
          var e3 = t3.Uw(), i3 = e3 && e3.t8.Rme(-1, -1, -1, -1);
          i3.forEach((function(t4) {
            t4.isValid || (n3.spillCells = n3.spillCells || {}, n3.spillCells[t4.minX + "," + t4.minY] = 1);
          }));
        }
        function W(t3, n3, e3, i3, r2, o2) {
          var a2 = t3.iT(n3, e3, i3, r2, o2), u2 = a2 && a2.formulas;
          return u2 && u2.length > 0;
        }
        function Q(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = W(t3, n3, e3, i3, r2, 3);
          return !u2 && o2 && (r2 = t3.getColumnCount(2), u2 = W(t3, n3, 0, i3, r2, 2)), !u2 && a2 && (i3 = t3.getRowCount(1), u2 = W(t3, 0, e3, i3, r2, 1)), u2;
        }
        function K(t3) {
          var n3, e3, i3, r2 = [], o2 = [];
          for (n3 = 0; n3 < t3.length; n3++) i3 = "" + (e3 = t3[n3]).row + e3.col + e3.rowCount + e3.colCount + e3.sheetName, r2.indexOf(i3) < 0 && (r2.push(i3), o2.push(e3));
          return o2;
        }
        function J(t3, n3) {
          var e3 = t3.formulaLoad / t3.total;
          return n3 ? 0.4 * e3 + 0.5 : 0.3 * e3 + 0.4;
        }
        function X(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, h2 = i3.Uw(), d2 = t3 && t3.formula;
          d2 && (a2 = void 0, "object" == typeof d2 && (u2 = i3.b3(o2), (s2 = i3.Xbt[d2.si]).baseRow === n3 && s2.baseColumn === e3 ? (d2 = s2.formula, s2.n1e = true) : s2.n1e ? (a2 = u2.pB(s2.baseRow, s2.baseColumn)) ? (a2.aMt = d2.si, i3.Lp.tMt && i3.Lp.tMt[h2.id + "," + s2.baseRow + "," + s2.baseColumn] && (i3.Lp.tMt[h2.id + "," + n3 + "," + e3] = { id: h2.id, row: n3, col: e3 })) : (d2 = s2.formula, s2.baseRow = n3, s2.baseColumn = e3) : (d2 = s2.formula, s2.n1e = true, s2.baseRow = n3, s2.baseColumn = e3)), (c2 = t3.arrayInfo) && !c2.isDynamicArray ? i3.uMt(n3, e3, x(c2.rowCount, 10), x(c2.colCount, 10), d2, true, o2) : (f2 = h2.getCalcSourceModel(), c2 && h2.t8.xji(c2.row, c2.col, c2.rowCount, c2.colCount, !c2.isInvalid), i3.zI(n3, e3, d2, a2, true, o2, true, !c2, l, true), c2 && f2.Uyt(n3, e3, c2)));
        }
        function q(t3, n3, e3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = o2 && o2.incrementLoadTask;
          if (m2 && !m2.isTerminated) {
            for (s2 = m2.isBusyFunc, c2 = a2 = a2 || 0, t3.suspendPaint(), f2 = 30, l2 = /* @__PURE__ */ new Date(); c2 < e3; ) {
              if (h2 = n3[c2]) for (d2 = 0; d2 < r2; d2++) X(h2[d2], c2, d2, t3, true, u2);
              if (c2++, s2 && s2()) break;
              if ((v2 = /* @__PURE__ */ new Date()) - l2 > f2) break;
            }
            t3.resumePaint(), o2 || (o2 = {}), (p2 = o2 && o2.incrementalLoading) && (p2.loadStatus.formulaLoad += c2 - a2, g2 = J(p2.loadStatus, o2.doNotRecalculateAfterLoad), t3.parent && t3.parent.ki(i2.Events.ProgressChanged, { loadStatus: p2.loadStatus, progress: g2, sheet: t3 }), p2.loading && p2.loading(g2, { sheet: t3 })), c2 < e3 && o2.incrementLoadTask.pushTask(q, [t3, n3, e3, r2, o2, c2]);
          }
        }
        function $(t3, n3, e3, i3, r2) {
          var o2, a2, u2;
          for (o2 = 0; o2 < e3; o2++) if (a2 = n3[o2]) for (u2 = 0; u2 < i3; u2++) X(a2[u2], o2, u2, t3, true, r2);
        }
        function tt(t3, n3) {
          var e3, r2, o2, a2, u2, s2;
          if (n3) {
            for (e3 in n3) if (n3.hasOwnProperty(e3)) for (o2 in r2 = n3[e3]) r2.hasOwnProperty(o2) && (u2 = +e3, s2 = +o2, (a2 = r2[o2]).f && m(t3.getValueIgnoreDefault(u2, s2)) && !t3.getFormula(u2, s2) && !t3.getBindingPath(u2, s2) && t3.Ut.setDefaultValue(u2, s2, S(a2.f), l, i2.DefaultChangeValueType.Expression));
          }
        }
        function nt(t3, n3, e3, i3, r2, o2, a2) {
          var u2, c2, h2, d2, v2, p2, g2, b2 = t3.Uw(), y2 = t3.Ut, w2 = y2.ap || 0, M2 = y2.fp || 0;
          n3 !== l && (u2 = S(n3.f), c2 = n3.g, (h2 = n3.r) !== l && (d2 = C(h2).toJSON()), c2 >= 0 && (u2 ? (p2 = { formula: u2 }, d2 && (p2.lastRow = d2.rowCount + d2.row - 1, p2.lastColumn = d2.colCount + d2.col - 1, p2.baseRow = d2.row, p2.baseColumn = d2.col, d2 = f), o2[c2] || (o2[c2] = p2, o2.nextIndex = Math.max(o2.nextIndex, c2 + 1)), u2 = { si: c2 }) : u2 = { si: c2 }, (g2 = t3.Xbt[u2.si]).baseRow === e3 && g2.baseColumn === i3 ? (u2 = g2.formula, g2.n1e = true) : g2.n1e ? (v2 = r2.pB(g2.baseRow, g2.baseColumn)) ? (v2.aMt = u2.si, t3.Lp.tMt && t3.Lp.tMt[b2.id + "," + g2.baseRow + "," + g2.baseColumn] && (t3.Lp.tMt[b2.id + "," + e3 + "," + i3] = { id: b2.id, row: e3, col: i3 })) : (u2 = g2.formula, g2.baseRow = e3, g2.baseColumn = i3) : (u2 = g2.formula, g2.n1e = true, g2.baseRow = e3, g2.baseColumn = i3)), m(u2) || (1 === +n3.a && d2 && (d2.isDynamicArray = true, a2 && a2.spillCells && a2.spillCells[e3 + "," + i3] && (d2.isInvalid = true)), u2 = T(u2), d2 && !d2.isDynamicArray ? e3 >= w2 && i3 < M2 ? t3.uMt(e3, i3, x(d2.rowCount, 10), x(d2.colCount, 10), u2, true, 2) : e3 < w2 && i3 >= M2 ? t3.uMt(e3, i3, x(d2.rowCount, 10), x(d2.colCount, 10), u2, true, 1) : e3 >= w2 && i3 >= M2 && t3.uMt(e3, i3, x(d2.rowCount, 10), x(d2.colCount, 10), u2, true, 3) : (d2 && b2.t8.xji(d2.row, d2.col, d2.rowCount, d2.colCount, !d2.isInvalid), !v2 && a2 && a2.exprs && a2.exprs[n3.x] && (v2 = (0, s.exprFromJSON)(a2.exprs[n3.x], b2.getParserContext(false, { row: e3, col: i3 })), a2.exprs[n3.x].nw && (v2.sMt = true)), e3 >= w2 && i3 < M2 ? t3.zI(e3, i3, u2, v2, true, 2, true, !d2) : e3 < w2 && i3 >= M2 ? t3.zI(e3, i3, u2, v2, true, 1, true, !d2) : e3 >= w2 && i3 >= M2 && t3.zI(e3, i3, u2, v2, true, 3, true, !d2, l, true), d2 && r2.Uyt(e3, i3, d2))));
        }
        function et(t3, n3, e3, r2, o2, a2, u2, s2) {
          var c2, f2, l2, h2, d2, p2, m2, b2, y2, w2, M2, C2 = a2 && a2.incrementLoadTask, S2 = C2.isBusyFunc;
          for (c2 = u2 = u2 || 0, t3.suspendPaint(), t3.suspendCalcService(), l2 = 30, (f2 = a2.openMode === i2.OpenMode.incremental) && (h2 = /* @__PURE__ */ new Date()), d2 = t3.Xbt = t3.Xbt || { nextIndex: 0 }, p2 = t3.b3(3); c2 < e3; ) {
            if (m2 = n3[c2]) for (b2 = 0; b2 < r2; b2++) nt(t3, m2[b2], c2, b2, p2, d2, o2);
            if (c2++, !s2 && S2 && S2()) break;
            if (f2 && (y2 = /* @__PURE__ */ new Date(), !s2 && y2 - h2 > l2)) break;
          }
          t3.resumeCalcService(), t3.resumePaint(), a2.loadStatus.formulaLoad += c2 - u2, f2 && (w2 = a2.loadStatus.formulaLoad / a2.loadStatus.total, M2 = +(a2.fullRecalc ? 0.3 * w2 + 0.5 : 0.4 * w2 + 0.6).toFixed(5), a2.incrementLoadTask.progress && a2.incrementLoadTask.progress({ progress: M2, sheetName: t3.name(), step: v.I5(g().STEP.loadSheetFormula, [t3.name()]) })), c2 < e3 && a2.incrementLoadTask.pushTask(et, [t3, n3, e3, r2, o2, a2, c2]);
        }
        function it(t3, n3, e3, r2) {
          var o2 = i2.Worksheet.fh;
          o2 && h(o2, (function(i3, o3) {
            var a2 = o3.fromJsonAfterFormula;
            a2 && a2.call(t3, n3, e3, r2);
          }));
        }
        function rt(t3, n3, e3, r2) {
          var o2 = i2.Worksheet.fh;
          o2 && h(o2, (function(i3, o3) {
            var a2 = o3.fromJsonAfterSJSFormula;
            a2 && a2.call(t3, n3, e3, r2);
          }));
        }
        function ot(t3, n3, e3, r2, o2, a2) {
          var u2, s2 = i2.Worksheet.fh, c2 = false, f2 = [], d2 = r2.getReferenceSheetNames(), v2 = t3 && t3.v2, p2 = function(t4, n4) {
            return t4[n4] === l || 0 === t4[n4];
          }, g2 = function(n4) {
            if (d2.hasOwnProperty(n4)) {
              c2 = true;
              var e4 = (0, i2._f)(t3, n4);
              p2(v2.sheetsState, n4) && e4 && (v2.sheetsState[n4] = 1, v2.getSheet(n4, (function(n5) {
                var r3, u3 = e4.NMi;
                u3 ? (u3.yh(n5, o2, a2), (r3 = (0, i2.Ip)(u3, n5.lossless.addition, t3.dataManager())) && f2.push(r3)) : e4.yh(n5, o2, a2, true), s2 && h(s2, (function(t4, i3) {
                  i3.refSheetLazyLoaded && i3.refSheetLazyLoaded.call(e4, n5, o2, a2);
                }));
              })));
            }
          };
          for (u2 in d2) g2(u2);
          c2 && s2 && h(s2, (function(t4, i3) {
            i3.afterRefSheetLazyLoaded && i3.afterRefSheetLazyLoaded.call(n3, e3, o2, a2);
          })), f2.length > 0 && a2 && a2.fullRecalc && Promise.all(f2).then((function() {
            t3.suspendPaint(), t3.mp[0].Mf.recalcAll(true), t3.resumePaint();
          }));
        }
        function at(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          if (t3) for (r2 in t3) (a2 = (o2 = t3[r2]).WK) !== l && (i3 && i3.vBe && i3.vBe.delete(o2), u2 = e3.unparse(n3, a2, 0, 0), o2.WK = e3.parse(n3, u2, 0, 0, l, true, l, l, true), i3 && st(i3, o2.WK, o2));
        }
        function ut(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2 = t3.getActiveSheet();
          if (s2 && n3) for (i3 in n3) n3.hasOwnProperty(i3) && (o2 = vt(s2, (r2 = n3[i3]).Zc, r2.FY, r2.jpt), (a2 = r2.WK) !== l && (t3.vBe && t3.vBe.delete(r2), u2 = s2.Uw(), r2.WK = e3.parse(u2, o2, r2.FY, r2.jpt, false, true, true, l, true), st(t3, r2.WK, r2)));
        }
        function st(t3, n3, e3) {
          var i3 = t3.vBe = t3.vBe || (0, o.createMap)();
          n3.forEachNodes((function(t4) {
            if (8 === t4.type) {
              var n4 = i3.get(e3);
              n4 || (n4 = (0, o.createSet)(), i3.set(e3, n4)), n4.add(t4);
            }
          }));
        }
        function ct(t3, n3) {
          return function(e3) {
            var i3, r2, o2 = e3.w3.rT;
            o2 && o2.Mf.xT || (i3 = o2 ? o2.Mf.name() : n3.name(), r2 = o2 ? o2.Mf._id : n3._id, t3[r2 + " " + e3.row + " " + e3.column] = { row: e3.row, col: e3.column, rowCount: 1, colCount: 1, sheetName: i3 });
          };
        }
        function ft(t3) {
          var n3, e3 = [];
          for (n3 in t3) t3.hasOwnProperty(n3) && e3.push(t3[n3]);
          return e3;
        }
        function lt(t3, n3, e3, i3, r2, o2, a2, u2) {
          o2 && t3.lossless && ([t3.lossless.colHeaderData, t3.lossless.rowHeaderData].forEach((function(t4, e4) {
            var i4, o3, s2, c2;
            t4 && t4.dataTable && (i4 = e4 + 1, o3 = t4.dataTable, s2 = n3.getRowCount(i4), c2 = n3.getColumnCount(i4), a2 && !u2 ? q(n3, o3, s2, c2, r2, 0, i4) : $(n3, o3, s2, c2, i4));
          })), t3.lossless.defaultData && tt(n3, t3.lossless.defaultData)), a2 && !u2 ? r2.incrementLoadTask.pushTask(rt, [n3, t3, i3, r2]) : rt(n3, t3, i3, r2);
        }
        function ht(t3, n3, e3) {
          t3 && "function" == typeof t3.onCustomNameFormulaChanged && t3.onCustomNameFormulaChanged([{ nameInfo: n3.nameInfo, oldExpr: e3, newExpr: n3.expr }]);
        }
        function dt(t3) {
          var n3 = j([], t3.sheets, true);
          return t3.mp && t3.mp.length > 0 && t3.mp.forEach((function(t4) {
            t4.Mf && n3.push(t4.Mf);
          })), n3;
        }
        function vt(t3, n3, e3, i3) {
          var r2, o2, u2 = !!t3.NMi, s2 = t3.getCell(e3, i3, 3), c2 = (0, a.rangeToFormula)(s2, e3, i3, 3), f2 = n3.trim();
          if ("=" === f2.charAt(0) && f2.indexOf("@") >= 0 && !R(f2) && (f2 = f2.replace(/@/g, c2)), f2.indexOf("{{") >= 0 && f2.indexOf("}}") >= 0) {
            for ("" === (r2 = f2.split(/{{|}}/))[0] && r2.shift(), "" === r2[r2.length - 1] && r2.pop(), o2 = 0; o2 < r2.length; o2++) -1 === r2[o2].indexOf("=") ? r2[o2] = '"' + r2[o2] + '"' : u2 && R(r2[o2]) ? r2[o2] = r2[o2].replace(/=/g, "") : (r2[o2].indexOf("@") >= 0 && (r2[o2] = r2[o2].replace(/@/g, c2)), r2[o2] = r2[o2].replace(/=/g, ""), r2[o2] = "IF(ISERROR(".concat(r2[o2], '), "#N/A", ').concat(r2[o2], ")"));
            f2 = "=CONCAT(" + r2.join(",") + ")";
          }
          return f2;
        }
        function pt(t3, n3, e3, r2) {
          var a2, u2, s2, c2, f2 = null == t3 ? void 0 : t3.baseTable;
          t3 && f2 && 16 === t3.hbt && 1 === t3.lbt ? (a2 = f2.range(), u2 = f2.Mf && f2.Mf.name()) : 9 === t3.type ? (pt(t3.value, n3, e3, r2), pt(t3.value2, n3, e3, r2)) : (s2 = e3.MX.evaluateExpression(t3, n3.getEvaluatorContext({ row: 0, col: 0 }, false), false, true, true)) instanceof o.CalcReference && (u2 = s2.getSource().getName(), s2.getRangeCount() > 0 && (c2 = 0, a2 = (0, i2.Ec)(s2.getRow(c2), s2.getColumn(c2), s2.getRowCount(c2), s2.getColumnCount(c2)))), a2 && r2.push({ sheetName: u2, range: a2 });
        }
        function gt(t3, n3) {
          if (!n3) return true;
          var e3 = t3.getRow(), r2 = t3.getColumn(), o2, a2 = t3.getExpression().getRange(e3, r2);
          return !!a2 && (a2 instanceof i2.Range || (a2 = new i2.Range(a2.row, a2.col, a2.rowCount, a2.colCount)), !a2.containsRange(n3));
        }
        function mt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, d2, v2, p2, g2, b2 = !i3 && t3.Ut.pj(), y2 = !!o2;
          if (t3.parent && t3.parent.sheets) for (c2 = dt(t3.parent), f2 = t3.parent.getCustomNames(), d2 = t3.parent.Qwt(), v2 = !m(t3.parent.fMt) && t3.parent.wJt(), f2 && h(f2, (function(a3, c3) {
            gt(c3, o2) && (u2 = c3.getExpression(), (s2 = bt(null, t3, n3, e3, i3, r2, u2, y2)) !== u2 && c3.SB(s2, b2, l, l, { ignoreModelChange: true }));
          })), d2 && h(d2, (function(a3, c3) {
            gt(c3, o2) && (u2 = c3.getExpression(), (s2 = bt(null, t3, n3, e3, i3, r2, u2, y2)) !== u2 && c3.SB(s2, b2, l, l, { ignoreModelChange: true }));
          })), v2 && h(v2, (function(a3, c3) {
            gt(c3, o2) && (u2 = c3.getExpression(), (s2 = bt(null, t3, n3, e3, i3, r2, u2, y2)) !== u2 && c3.SB(s2, b2, l, l, { ignoreModelChange: true }));
          })), p2 = function(f3) {
            if (a2 = c2[f3].getCustomNames()) {
              var d3 = [];
              h(a2, (function(a3, h2) {
                gt(h2, o2) && (u2 = h2.getExpression(), (s2 = bt(c2[f3], t3, n3, e3, i3, r2, u2, y2)) !== u2 && (h2.SB(s2, b2, l, l, { ignoreModelChange: true }), d3.push({ nameInfo: h2, oldExpr: u2, newExpr: s2 })));
              })), d3.length > 0 && "function" == typeof c2[f3].onCustomNameFormulaChanged && c2[f3].onCustomNameFormulaChanged(d3, true);
            }
          }, g2 = 0; g2 < c2.length; g2++) p2(g2);
          else (a2 = t3.getCustomNames()) && h(a2, (function(a3, c3) {
            gt(c3, o2) && (u2 = c3.getExpression(), (s2 = bt(t3, t3, n3, e3, i3, r2, u2, y2)) !== u2 && c3.SB(s2, b2, l, l, { ignoreModelChange: true }));
          }));
        }
        function bt(t3, n3, e3, i3, r2, a2, u2, s2) {
          var c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2;
          if (u2) {
            if (c2 = n3.Uw(), l2 = (0, o.Syt)(o.Errors.Reference, c2), 9 === u2.type) {
              if (d2 = u2.value, v2 = u2.value2, p2 = bt(t3, n3, e3, i3, r2, a2, d2, s2), g2 = v2 && bt(t3, n3, e3, i3, r2, a2, v2, s2), d2 !== p2 || v2 !== g2) return (0, o.rbt)(u2.operatorType, p2, g2);
            } else if (7 === u2.type) {
              for (m2 = false, b2 = [], y2 = void 0, w2 = 0; w2 < u2.arguments.length; w2++) M2 = bt(t3, n3, e3, i3, r2, a2, y2 = u2.arguments[w2], s2), m2 = m2 || y2 !== M2, b2.push(M2);
              if (m2) return (0, o.YJ)(u2, b2);
            } else if (1 === u2.type && u2.hmt()) {
              if (h2 = u2.source || t3 && t3.Uw(), T2 = C2 = u2.row, x2 = S2 = u2.column, h2 && h2 === c2 && (a2 && !u2.rowRelative || !a2 && !u2.columnRelative)) {
                if (a2 && r2) C2 += C2 >= e3 ? i3 : 0;
                else if (!a2 && r2) S2 += S2 >= e3 ? i3 : 0;
                else if (a2) {
                  if (C2 >= e3 + i3) C2 -= i3;
                  else if (C2 >= e3) return l2;
                } else if (S2 >= e3 + i3) S2 -= i3;
                else if (S2 >= e3) return l2;
                if (C2 !== T2 || S2 !== x2) return (0, o.knt)(c2, f, C2, S2, u2.rowRelative, u2.columnRelative);
              }
            } else if (1 === u2.type) {
              if (h2 = u2.source || t3 && t3.Uw(), A2 = u2.row, I2 = u2.column, k2 = u2.endRow, N2 = u2.endColumn, j2 = u2.rowRelative, D2 = u2.columnRelative, _2 = u2.endRowRelative, O2 = u2.endColumnRelative, E2 = A2, R2 = I2, L2 = k2, F2 = N2, h2 && h2 === c2) {
                if (a2 && r2) A2 += !j2 && A2 >= e3 ? i3 : 0, k2 += !_2 && k2 >= e3 ? i3 : 0;
                else if (!a2 && r2) I2 += !D2 && I2 >= e3 ? i3 : 0, N2 += !O2 && N2 >= e3 ? i3 : 0;
                else if (a2 && !r2) {
                  if (!j2 && A2 >= e3 && !_2 && k2 < e3 + i3) return l2;
                  if (j2 && _2 || k2 < e3) return u2;
                  if (!j2) if (A2 >= e3 + i3) A2 -= i3;
                  else if (A2 < e3) ;
                  else {
                    if (_2) return l2;
                    A2 > e3 && (A2 = e3);
                  }
                  if (!_2) if (k2 >= e3 + i3) k2 -= i3;
                  else {
                    if (j2) return l2;
                    k2 < e3 + i3 && (k2 = e3 - 1);
                  }
                } else {
                  if (!D2 && I2 >= e3 && !O2 && N2 < e3 + i3) return l2;
                  if (D2 && O2 || N2 < e3) return u2;
                  if (!D2) if (I2 >= e3 + i3) I2 -= i3;
                  else if (I2 < e3) ;
                  else {
                    if (O2) return l2;
                    I2 > e3 && (I2 = e3);
                  }
                  if (!O2) if (N2 >= e3 + i3) N2 -= i3;
                  else {
                    if (D2) return l2;
                    N2 < e3 + i3 && (N2 = e3 - 1);
                  }
                }
                if (I2 !== R2 || N2 !== F2 || A2 !== E2 || k2 !== L2) return (0, o.lJ)(c2, f, A2, I2, k2, N2, j2, D2, _2, O2, u2.dHr);
              }
            } else if (10 === u2.type) {
              if ((B2 = u2.value) !== (P2 = bt(t3, n3, e3, i3, r2, a2, B2, s2))) return (0, o.Ayt)(P2);
            } else 13 === u2.type && (h2 = u2.source || t3 && t3.Uw()) && h2 === c2 && !a2 && (u2 = (G2 = u2).offsetWhenInsertRemoveColumn(e3, i3, r2, s2));
            return u2;
          }
        }
        function yt(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2 = n3.w3, f2 = c2.getSource(), l2 = -1, h2 = -1;
          n3.name ? (i3 = n3.name, o2 = n3.id, m(o2) ? e3 = c2.getNodeByName(i3) : (e3 = { WK: n3.expression }, r2 = true)) : (l2 = void 0 === (l2 = n3.row) ? -1 : l2, h2 = void 0 === (h2 = n3.column) ? -1 : h2, e3 = c2.getNode(l2, h2)), a2 = e3.WK, u2 = e3.$bt, s2 = t3.unparse(f2, a2, l2 < 0 ? 0 : l2, h2 < 0 ? 0 : h2), u2 && (true !== t3.allowDynamicArray || true === t3.allowDynamicArray && !u2.isDynamicArray) ? l2 === u2.row && h2 === u2.col && c2.setArrayFormula(u2.row, u2.col, u2.rowCount, u2.colCount, s2) : i3 ? r2 ? c2.setFormula(o2, i3, s2) : c2.setFormulaByName(i3, s2) : c2.setFormula(l2, h2, s2, null, true, true), e3.WK.lMt = a2.lMt;
        }
        function wt(t3) {
          var n3, e3, r2, a2, u2, s2, c2, f2, l2, h2 = V(t3), d2 = t3.b3(i2.SheetArea.colHeader), v2 = t3.b3(i2.SheetArea.rowHeader), p2 = t3.b3(i2.SheetArea.viewport), g2 = [d2, v2, p2];
          for (n3 = 0; n3 < g2.length; n3++) {
            if (!(e3 = g2[n3])) return;
            for (r2 = e3.getAllNodes(), a2 = 0; a2 < r2.length; a2++) if (s2 = (u2 = r2[a2]).calc) for (c2 = s2.aT, f2 = 0; f2 < c2.length; f2++) (l2 = s2[c2[f2]]) && l2.forEach((function(t4) {
              t4 && t4 instanceof o.PathCalc && yt(h2, t4);
            }));
          }
        }
        function Mt(t3, n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2) {
          u.CalcOperatorAdjustor.copyFormula(t3, n3, e3, i3, r2, o2, a2, s2, c2, f2, l2, h2, d2);
        }
        function Ct(t3, n3) {
          var e3 = t3.offset(0, 0, false, 0, 0);
          return e3.rowRelative = e3.endRowRelative = e3.columnRelative = e3.endColumnRelative = n3, e3;
        }
        function St(t3, n3, e3, i3, r2, a2, s2, c2, f2, l2, h2) {
          var d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2;
          if (l2) {
            if (9 === l2.type) {
              if (d2 = l2.value, v2 = l2.value2, p2 = St(t3, n3, e3, i3, r2, a2, s2, c2, f2, d2, h2), g2 = v2 && St(t3, n3, e3, i3, r2, a2, s2, c2, f2, v2, h2), d2 !== p2 || v2 !== g2) return (0, o.rbt)(l2.operatorType, p2, g2);
            } else if (7 === l2.type) {
              for (m2 = false, b2 = [], y2 = void 0, w2 = 0; w2 < l2.arguments.length; w2++) M2 = St(t3, n3, e3, i3, r2, a2, s2, c2, f2, y2 = l2.arguments[w2], h2), m2 = m2 || y2 !== M2, b2.push(M2);
              if (m2) return (0, o.YJ)(l2, b2);
            } else if (1 === l2.type) {
              if (C2 = !U(l2) && !P(l2), S2 = !H(l2) && !G(l2), T2 = n3.Uw(), (!l2.source || l2.source === T2) && C2 && S2) return x2 = r2.Uw(), A2 = new u.MoveSwapInfo(T2, e3, i3, x2, a2, s2, c2, f2), I2 = Ct(l2, true), A2.R0i = true, (k2 = (0, u.adjustFormulaOnMoveSwap)(T2, 0, 0, I2, A2, true, { tableExpand: h2 })) === I2 ? l2 : 1 === k2.type && Ct(k2, false) || k2;
            } else if (10 === l2.type && (N2 = l2.value) !== (j2 = St(t3, n3, e3, i3, r2, a2, s2, c2, f2, N2, h2))) return (0, o.Ayt)(j2);
            return l2;
          }
        }
        function Tt(t3, n3) {
          var e3, i3, r2, o2, u2, s2, c2, f2 = t3.printInfo && t3.printInfo();
          if (f2) for (e3 = n3.split(","), i3 = 0; i3 < e3.length; i3++) for (r2 = (0, a.formulaToRanges)(t3, e3[i3], 0, 0), o2 = 0; o2 < r2.length; o2++) for (u2 = r2[o2].ranges, s2 = 0; s2 < u2.length; s2++) -1 === (c2 = u2[s2]).col || -1 === c2.colCount ? (f2.repeatRowStart(c2.row), f2.repeatRowEnd(c2.row + c2.rowCount - 1)) : -1 !== c2.row && -1 !== c2.rowCount || (f2.repeatColumnStart(c2.col), f2.repeatColumnEnd(c2.col + c2.colCount - 1));
        }
        function xt(t3, n3, e3, i3, r2, o2) {
          var a2 = t3[n3];
          a2 && (i3 = a2.rT, m(r2) || (i3.Wbt = r2), a2.toJSON({ data: e3 }, o2), delete i3.Wbt);
        }
        function At(t3, n3, e3, i3, r2, o2) {
          t3 && (n3 && !n3.fullRecalc ? t3.resumeWithoutCalc() : t3.resume(false, false, !t3.calcOnDemand), delete t3.lb), delete e3.G3, o2.resumePaint();
        }
        function It(t3, n3) {
          var e3, i3, r2;
          wt(t3), (r2 = (i3 = V(e3 = t3.b3())).MX.asyncManager).changeSourceName(n3.oldName, n3.newName), t3.Lp.AMt(5);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.QB = n2.XB = n2.adjustOneFormula = n2.hMt = n2.convertFormatStringFormula = n2.addNameInName = n2.resetFormatStringCustomName = n2.resetCustomName = n2.dMt = n2.convertBuiltInNameToDisplayName = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("./dist/plugins/sheetsCalc/calc-spreadjs.js"), u = e2("./dist/plugins/sheetsCalc/formulaOperatorAdjustor.js"), s = e2("./dist/plugins/sheetsCalc/calc-extra-save.js"), c = e2("./dist/plugins/sheetsCalc/external-reference.js"), f = null, l = void 0, h = i2.GC$.each, d = r.Common.zf.Gmt, v = r.Common.zf, p = new r.Common.ResourceManager(i2.SR), g = p.getResource.bind(p), m = r.Common.lt.ht, b = "_XLNM.PRINT_AREA", y = "PRINT_AREA", w = "Print_Area", M = i2.mt.xr, C = i2.range_parser._c, S = i2.mt.n1, T = i2.Util.mr, x = parseInt, A = i2.UsedRangeUtil.updateUsedRangeByData, n2.convertBuiltInNameToDisplayName = z, n2.dMt = $, (I = i2.Worksheet.prototype).resetCalc = function() {
          Y.call(this), this.eMt = true;
        }, I.c3n = function(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = V(l2);
          if (h2) {
            if (this.suspendPaint(), h2.suspend(true), i3 = this.Uw().getCalcSourceModel(), m(e3)) {
              if (t3) for (at(l2.hyt, l2.Uw(), h2, l2.parent), r2 = i3.getAllNodes(), o2 = 0; o2 < r2.length; o2++) (u2 = (a2 = r2[o2]).calc) && a2.WK && yt(h2, u2);
              l2.oMt.Cde(t3, !n3), l2.iMt.Cde(t3, !n3), l2.rMt.Cde(t3, !n3);
            } else if (false !== t3 || n3) for (-1 === e3.row && (e3.row = 0, e3.rowCount = l2.getRowCount()), -1 === e3.col && (e3.col = 0, e3.colCount = l2.getColumnCount()), s2 = 0; s2 < e3.rowCount; s2++) for (c2 = 0; c2 < e3.colCount; c2++) (u2 = (a2 = i3.getNode(s2 + e3.row, c2 + e3.col)) && a2.calc) && a2.WK && (t3 && yt(h2, u2), (false !== t3 || n3 && u2.isVolatile) && u2.vyt());
            f2 = false, 1 === h2.calculationMode && (f2 = e3 ? function(t4) {
              return t4.w3 === l2.oMt && e3.contains(t4.row, t4.column);
            } : function(t4) {
              return t4.w3 === l2.oMt || t4.w3 === l2.iMt || t4.w3 === l2.rMt;
            }), h2.Z_t && h2.MX.asyncManager.startCalc(l2.name(), null == e3 ? void 0 : e3.row, null == e3 ? void 0 : e3.col, null == e3 ? void 0 : e3.rowCount, null == e3 ? void 0 : e3.colCount), h2.resume(false, true, f2), this.resumePaint();
          }
        }, I.recalcAll = function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = V(this);
          if (l2) {
            if (this.suspendPaint(), l2.suspend(true), t3) for (e3 = void 0, e3 = (n3 = this.parent) && n3.sheets || [this], at(n3 && n3.hyt, this.Uw(), l2, self.parent), i3 = 0; i3 < e3.length; i3++) for (o2 = (r2 = e3[i3]).Uw(), at(r2.hyt, o2, l2, self.parent), u2 = (a2 = o2.getCalcSourceModel()).getAllNodes(), s2 = 0; s2 < u2.length; s2++) (f2 = (c2 = u2[s2]).calc) && c2.WK && yt(l2, f2);
            l2.resume(t3), this.resumePaint();
          }
        }, n2.resetCustomName = at, n2.resetFormatStringCustomName = ut, I.recalcRange = function(t3, n3, e3, i3) {
          var r2 = V(this);
          r2 && r2.recalcRange(this.Uw(), t3, n3, e3, i3);
        }, I.recalcRows = function(t3) {
          var n3, e3, i3, r2 = V(this);
          if (r2 && !r2.ignoreDirty() && t3.length > 0) {
            if (r2.suspend(), n3 = t3.reduce((function(t4, n4) {
              return Math.min(t4, n4);
            })), e3 = t3.reduce((function(t4, n4) {
              return Math.max(t4, n4);
            })), t3.length * t3.length > e3 - n3) r2.recalcRange(this.qgt, n3, -1, e3 - n3 + 1, -1);
            else for (i3 = 0; i3 < t3.length; i3++) r2.recalculate(this.qgt, t3[i3], -1);
            r2.resume(false);
          }
        }, I.recalcCols = function(t3) {
          var n3, e3 = V(this);
          if (e3 && !e3.ignoreDirty()) {
            for (e3.suspend(), n3 = 0; n3 < t3.length; n3++) e3.recalculate(this.qgt, -1, t3[n3]);
            e3.resume(false);
          }
        }, I.gL = function(t3, n3, e3) {
          var i3, r2, o2, a2 = V(this);
          a2 && !a2.ignoreDirty() && (r2 = this.qgt, 1 === e3 ? r2 = this.T3 : 2 === e3 && (r2 = this.A3), (o2 = null === (i3 = null == r2 ? void 0 : r2.t8) || void 0 === i3 ? void 0 : i3.getAnchorInfo(t3, n3)) && (t3 = o2.row, n3 = o2.col), a2.recalculate(r2, t3, n3));
        }, I.getCalcService = function() {
          return this.Lp || (this.Lp = new o.CalcService(), this.Uw(i2.SheetArea.colHeader).setCalcService(this.Lp), this.Uw(i2.SheetArea.rowHeader).setCalcService(this.Lp), this.Uw().setCalcService(this.Lp), this.Lp.initParserContext(this.Uw())), this.Lp;
        }, I.op = function() {
          return this.getCalcService();
        }, I.suspendCalcService = function(t3) {
          var n3 = V(this);
          n3 && n3.suspend(t3);
        }, I.resumeCalcService = function(t3) {
          var n3 = V(this);
          n3 && n3.resume(t3);
        }, I.Uw = function(t3) {
          return m(t3) || 3 === t3 ? this.qgt : 1 === t3 ? this.T3 : 2 === t3 ? this.A3 : f;
        }, I.b3 = function(t3) {
          var n3 = this;
          return 1 === t3 ? (!n3.iMt && n3.T3 && (n3.iMt = n3.op().getSourceModel(n3.T3)), n3.iMt) : 2 === t3 ? (!n3.rMt && n3.A3 && (n3.rMt = n3.op().getSourceModel(n3.A3)), n3.rMt) : (!n3.oMt && n3.qgt && (n3.oMt = n3.op().getSourceModel(n3.qgt)), n3.oMt);
        }, I.vMt = function(t3, n3, e3, i3, r2) {
          var o2 = this.b3(r2);
          return o2 && o2.mMt(t3, n3, e3, i3, true, true);
        }, I.KT = function(t3, n3, e3, i3, r2, o2) {
          var a2 = this.vMt(t3, n3, e3, i3, 3);
          return !a2 && r2 && (i3 = this.getColumnCount(2), a2 = this.vMt(t3, 0, e3, i3, 2)), !a2 && o2 && (e3 = this.getRowCount(1), a2 = this.vMt(0, n3, e3, i3, 1)), a2;
        }, I.iT = function(t3, n3, e3, i3, r2) {
          var o2 = this.b3(r2);
          return o2 && o2.mMt(t3, n3, e3, i3, false, true);
        }, I.mT = function(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2;
          return void 0 === r2 && (r2 = true), u2 = r2 && this.KT(t3, n3, e3, i3, o2, a2), s2 = !r2 && Q(this, t3, n3, e3, i3, o2, a2), !u2 && !s2 || (this.jT(4, g().Exp_ChangePartOfArray), false);
        }, I.addCustomFunction = function(t3) {
          this.Uwt(t3), this.recalcAll();
        }, I.Uwt = function(t3) {
          if (!(t3 && t3 instanceof o.Functions.Function)) throw new Error(g().Exp_InvalidCustomFunction);
          t3.name = d(t3.name), this.Amt[t3.name] = t3, this.$Dr({ type: "setSheetScopeCustomFunction", fn: t3 });
        }, I.getCustomFunction = function(t3) {
          return t3 ? this.Amt[d(t3)] : f;
        }, I.internalGetCustomFunctions = function() {
          return N({}, this.Amt);
        }, I.removeCustomFunction = function(t3) {
          t3 && (delete this.Amt[d(t3)], this.$Dr({ type: "setSheetScopeCustomFunction", name: t3 }), this.recalcAll());
        }, I.clearCustomFunctions = function() {
          this.Amt = {}, this.$Dr({ type: "clearSheetScopeCustomFunction" }), this.recalcAll();
        }, I.Jbt = function(t3) {
          var n3, e3, i3;
          return t3 ? (e3 = (n3 = this).parent, !(i3 = n3.getCustomFunction(t3)) && e3 && e3.getCustomFunction && (i3 = e3.getCustomFunction(t3)), i3) : f;
        }, I.addCustomName = function(t3, n3, e3, i3, r2, o2) {
          this.zwt(t3, n3, e3, i3, false, r2, o2);
        }, I.getCustomName = function(t3) {
          return t3 ? this.hyt[d(t3)] : l;
        }, I.dBe = function(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, h2, v2, p2, m2, b2, y2, w2, M2 = this;
          if (i3 = null != i3 ? i3 : 0, r2 = null != r2 ? r2 : 0, M2.Lp) {
            if (s2 = M2.hyt[d(t3)]) if (c2 = void 0, e3 && (c2 = M2.Lp.parse(M2.Uw(), e3, i3, r2, l, l, l, l, true)), n3 && t3 !== n3) {
              if (!M2.isValidCustomName(n3)) throw new Error(g().Exp_InvalidCustomName);
              if (h2 = [], v2 = [], p2 = [], (m2 = M2.parent.vBe) && m2.forEach((function(e4, i4) {
                var r3 = false;
                e4.forEach((function(e5) {
                  var i5, o3;
                  e5.value === t3 && (null === (i5 = e5.source) || void 0 === i5 ? void 0 : i5.Mf) === M2 && (v2.push(e5), r3 = true), e5.value === n3 && (null === (o3 = e5.source) || void 0 === o3 ? void 0 : o3.Mf) === M2 && p2.push(e5);
                })), r3 && h2.push(i4);
              })), 2 === (b2 = null === (a2 = M2.b3()) || void 0 === a2 ? void 0 : a2.rBe(t3, n3, v2.length > 0, p2.length > 0, null === (u2 = M2.parent) || void 0 === u2 ? void 0 : u2.wC))) throw new Error(g().Exp_CustomNameBothInUse);
              M2.suspendCalcService(), (s2 = M2.hyt[d(t3)]).btV(n3), M2.hyt[d(t3)] && (delete M2.hyt[d(t3)], M2.$Dr({ type: "setSheetScopeCustomName", name: t3, value: f })), M2.hyt[d(n3)] = s2, M2.q_r(s2), v2.forEach((function(t4) {
                t4.value = n3;
              })), h2.forEach((function(t4) {
                M2.q_r(t4);
              })), M2.b3().updateNameCalc(n3, true), c2 ? (y2 = M2.hyt[d(n3)], M2.removeCustomName(n3), M2.zwt(n3, e3, i3, r2, false, o2, s2.isReadOnly(), y2)) : (s2.X_r(o2), M2.q_r(s2)), 3 !== b2 || c2 || ((w2 = {})[n3] = n3, this.Zwt(w2, true)), M2.resumeCalcService(false);
            } else c2 ? (M2.suspendCalcService(), y2 = M2.hyt[d(t3)], M2.removeCustomName(t3), M2.zwt(t3, e3, i3, r2, false, o2, s2.isReadOnly(), y2), M2.resumeCalcService(false)) : (s2.X_r(o2), M2.q_r(s2));
            M2.zw();
          }
        }, I.q_r = function(t3) {
          this.$Dr({ type: "setSheetScopeCustomName", name: t3.getName(), value: { expr: t3.getExpression(), baseRow: t3.getRow(), baseCol: t3.getColumn(), comment: t3.getComment(), isReadOnly: t3.isReadOnly() } });
        }, I.getCustomNames = function() {
          var t3 = [];
          return h(this.hyt, (function(n3, e3) {
            t3.push(e3);
          })), t3;
        }, I.removeCustomName = function(t3) {
          var n3, e3, i3, r2, o2;
          t3 && (i3 = d(t3), r2 = this.hyt[i3], null === (e3 = null === (n3 = this.parent) || void 0 === n3 ? void 0 : n3.vBe) || void 0 === e3 || e3.delete(r2), delete this.hyt[i3], this.$Dr({ type: "setSheetScopeCustomName", name: t3, value: f }), (o2 = {})[i3] = i3, this.Zwt(o2, false));
        }, I.clearCustomNames = function() {
          this.aEr();
        }, I.aEr = function(t3) {
          var n3, e3, i3, r2, o2 = this, a2 = o2.hyt;
          if (null === (n3 = this.parent) || void 0 === n3 ? void 0 : n3.vBe) for (i3 in a2) Object.prototype.hasOwnProperty.call(a2, i3) && (r2 = a2[i3], null === (e3 = this.parent) || void 0 === e3 || e3.vBe.delete(r2));
          o2.hyt = {}, !(null == t3 ? void 0 : t3.ignoreModelChange) && this.$Dr({ type: "clearSheetScopeCustomName" }), this.Zwt(a2, false);
        }, I.createNameInfo = function(t3, n3, e3, i3, r2) {
          var o2, u2 = this, s2 = V(u2), c2 = u2.Uw();
          return s2 && c2 ? (o2 = s2.parse(c2, n3, i3, r2, l, l, l, l, true), new a.NameInfo(t3, o2, i3, r2, e3)) : f;
        }, I.getNameInfos = function() {
          return this.hyt;
        }, I.setNameInfos = function(t3) {
          m(t3) || (this.hyt = t3);
        }, I.Vwt = function(t3) {
          var n3, e3 = this, i3 = !e3.hyt[d(t3)];
          return i3 && (n3 = e3.tables) && (i3 = !n3.findByName(t3)), i3;
        }, I.isValidCustomName = function(t3) {
          return t3 && i2.mt.P0(t3) && this.Vwt(t3);
        }, n2.addNameInName = st, I.zwt = function(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2;
          if (!t3 || !n3 || !r2 && !this.isValidCustomName(t3)) throw new Error(g().Exp_InvalidCustomName);
          this.$_r(t3, n3, e3, i3, { ignoreError: r2, comment: o2, isReadOnly: a2, backup: u2 });
        }, I.$_r = function(t3, n3, e3, i3, r2) {
          var o2, u2, s2, c2, f2, h2, v2, p2, g2 = this, m2 = V(g2), b2 = g2.Uw();
          if (m2 && b2) {
            if (o2 = r2.ignoreError, u2 = r2.comment, s2 = r2.isReadOnly, c2 = r2.backup, f2 = r2.ignoreModelChange, h2 = void 0, o2) try {
              h2 = m2.parse(b2, n3, e3, i3, false, true, true, l, true);
            } catch (t4) {
            }
            else h2 = m2.parse(b2, n3, e3, i3, l, l, l, l, true);
            v2 = void 0, c2 ? (v2 = c2).SB(h2, l, e3, i3, { ignoreModelChange: true }) : v2 = new a.NameInfo(t3, h2, e3, i3, u2, s2, g2), g2.hyt[d(t3)] = v2, !f2 && g2.$Dr({ type: "setSheetScopeCustomName", name: t3, value: { formula: n3, comment: u2, isReadOnly: s2, baseRow: e3, baseCol: i3 } }), h2 && g2.parent && st(g2.parent, h2, v2), o2 || ((p2 = {})[t3] = t3, this.Zwt(p2, true));
          }
        }, I.Wwt = function(t3, n3, e3, i3, r2, o2, u2, s2) {
          var c2, f2, h2, v2, p2 = this;
          if (!t3 || !n3 || !o2 && !p2.isValidCustomName(t3)) throw new Error(g().Exp_InvalidCustomName);
          c2 = V(p2), f2 = p2.Uw(), c2 && f2 && (h2 = p2.hyt[d(t3)] = new a.NameInfo(t3, e3, i3, r2, u2, l, p2), e3 && p2.parent && st(p2.parent, e3, h2), o2 || ((v2 = {})[t3] = t3, this.Zwt(v2, true)));
        }, I.Zwt = function(t3, n3) {
          var e3, r2, o2 = this.b3();
          if (o2) {
            for (r2 in t3) o2.updateNameCalc(r2, n3);
            null === (e3 = this.parent) || void 0 === e3 || e3.Zwt(t3, n3), this.recalcAll(false);
          }
          this.ki(i2.Events.CustomNameChangedInternal, {});
        }, I.gMt = function(t3) {
          var n3, e3, i3;
          return t3 ? (e3 = (n3 = this).parent, !(i3 = n3.getCustomName(t3)) && e3 && e3.getCustomName && (i3 = e3.getCustomName(t3)), i3) : f;
        }, I.setFormula = function(t3, n3, e3, i3) {
          this.zI(t3, n3, e3, f, false, i3);
        }, I.zI = function(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, h2) {
          var d2, v2, p2, b2, y2, w2, M2, C2, S2, T2, x2, I2, k2, N2, j2, D2, _2, O2, E2 = this;
          m(o2) && (o2 = 3), t3 < 0 || t3 >= E2.getRowCount(o2) || n3 < 0 || n3 >= E2.getColumnCount(o2) ? E2.jT(0, g().Exp_IndexOutOfRange) : (v2 = t3 >= 0 ? t3 : 0, p2 = n3 >= 0 ? n3 : 0, b2 = E2.Uw(o2), y2 = E2.options.keepUnknownFormulas, (w2 = E2.Lp).forceR1C1Formula && 3 === o2 && !E2.isReportTemplateSheet ? (M2 = w2.useR1C1, w2.useR1C1 = true, i3 = i3 || (e3 && w2 ? w2.parse(b2, e3, v2, p2, false, r2, false, y2) : f), w2.useR1C1 = M2) : i3 = i3 || (e3 && w2 ? w2.parse(b2, e3, v2, p2, !!E2.Vur, r2, r2, y2) : f), i3 && u2 && (i3.ensureSingle = true), C2 = E2.tables, 3 === o2 && t3 >= 0 && n3 >= 0 && C2 && !(S2 = C2.pMt(t3, n3, 1, 1, e3, i3)) || (T2 = y2 && e3 && !i3, x2 = E2.b3(o2), I2 = E2.conditionalFormats, x2 && (null == (k2 = null === (d2 = E2.parent) || void 0 === d2 ? void 0 : d2.collaboration) || k2.startBatchOp(), N2 = x2.getFormula(t3, n3, l, true), j2 = E2.Ut, c2 || b2.t8.Fgt(t3, n3), (D2 = m(E2.Dhe) && !e3 && !m(j2.getDefaultValue(t3, n3, o2))) && (E2.Dhe = !(e3 || E2.Q5e && E2.Q5e(t3, n3))), x2.FE = true, _2 = E2.Dhe && e3 === f, x2.setFormula(t3, n3, e3, i3, r2, _2, !h2 && j2.pj(), s2, y2), D2 && delete x2.FE, delete E2.Dhe, x2.usedRange && A(x2.usedRange, t3, n3, N2, e3), T2 && (O2 = x2.getNode(t3, n3, true)) && (O2.qbt = e3), !I2 || b2 && true === b2.G3 || I2.dl(), E2.hasFormula(t3, n3, o2) && j2.JE(t3, n3, o2), a2 ? E2.Lj(E2, [{ row: t3, col: n3 }], 0) : E2.Rj("formula", t3, n3, o2, N2, e3), null == k2 || k2.endBatchOp()), E2.Q1i && E2.Q1i(t3, n3, 1, 1, o2), E2.zw()));
        }, I.eL = function(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2, l2, h2, d2, v2 = this, p2 = this.op();
          if (t3 < 0 || t3 >= v2.getRowCount() || n3 < 0 || n3 >= v2.getColumnCount()) v2.jT(0, g().Exp_IndexOutOfRange);
          else if (c2 = v2.b3(a2)) for (l2 = t3; l2 < e3 + t3; l2++) for (h2 = n3; h2 < i3 + n3; h2++) l2 === t3 && h2 === n3 && (v2.zI(t3, n3, r2, f, false, a2), s2 = c2.pB(t3, n3), v2.Xbt = v2.Xbt || { nextIndex: 0 }, d2 = v2.Xbt.nextIndex, v2.Xbt[d2] = { formula: p2.unparse(this.qgt, s2, t3, n3, false, true), baseRow: t3, baseColumn: n3, lastRow: t3 + e3 - 1, lastColumn: n3 + i3 - 1 }, v2.Xbt.nextIndex++, s2.aMt = d2), v2.zI(l2, h2, " ", s2, true, a2, true, true);
        }, I.setArrayFormula = function(t3, n3, e3, i3, r2, o2) {
          this.uMt(t3, n3, e3, i3, r2, false, o2);
        }, I.uMt = function(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2, f2, l2, h2, d2, v2, p2, m2;
          if (void 0 === a2 && (a2 = 3), s2 = this, t3 < 0 || t3 + e3 > s2.getRowCount() || n3 < 0 || n3 + i3 > s2.getColumnCount()) s2.jT(0, g().Exp_IndexOutOfRange);
          else if (o2 || !s2.Ut.eE(t3, n3, e3, i3)) {
            if (c2 = s2.tables, !(3 === a2 && t3 >= 0 && n3 >= 0 && c2) || (f2 = c2.pMt(t3, n3, e3, i3, r2))) {
              if (l2 = s2.b3(a2), h2 = s2.conditionalFormats, l2) {
                for (d2 = [], v2 = t3; v2 < t3 + e3; v2++) for (d2[v2] = [], p2 = n3; p2 < n3 + i3; p2++) d2[v2][p2] = l2.getFormula(v2, p2);
                for (l2.setArrayFormula(t3, n3, e3, i3, r2, o2, s2.Ut.pj(), u2, false), v2 = t3; v2 < t3 + e3; v2++) for (p2 = n3; p2 < n3 + i3; p2++) l2.usedRange && A(l2.usedRange, v2, p2, d2[v2][p2], r2);
                if (h2 && h2.dl(), s2.vf < 1) {
                  for (m2 = [], v2 = t3; v2 < t3 + e3; v2++) for (p2 = n3; p2 < n3 + i3; p2++) m2.push({ row: v2, col: p2 });
                  s2.SI(t3, n3, e3, i3, m2, 5, a2, r2);
                }
              }
              s2.zw();
            }
          } else s2.jT(0, g().Exp_ArrayFormulaSpan);
        }, I.getFormula = function(t3, n3, e3, i3) {
          var r2, o2 = this.b3(e3);
          return o2 ? (r2 = o2.oT(t3, n3)) && r2.isDefault() ? f : o2.getFormula(t3, n3, i3) : f;
        }, I.bMt = function(t3, n3, e3) {
          var i3 = this.b3(e3);
          return i3 ? i3.pB(t3, n3) : f;
        }, I.getFormulaInformation = function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2 = {}, d2 = this.b3(e3);
          if (d2) {
            if (a2 = (o2 = d2.oT(t3, n3)) && o2.isDefault()) return h2;
            (u2 = d2.pB(t3, n3)) ? (s2 = d2.sT(t3, n3), h2.hasFormula = true, s2 && (h2.baseRange = new i2.Range(s2.row, s2.col, s2.rowCount, s2.colCount)), h2.isArrayFormula = s2 && !s2.isDynamicArray, t3 = s2 ? s2.row : t3, n3 = s2 ? s2.col : n3, r2 || (h2.formula = this.Lp.unparse(this.qgt, u2, t3, n3), h2.formulaWithCulture = this.Lp.unparse(this.qgt, u2, t3, n3, true)), h2.hasFormula = !!h2.formula) : (c2 = this.Uw().t8.getAnchorInfo(t3, n3)) && c2.isValid && (f2 = c2.row, l2 = c2.col, h2.baseRange = new i2.Range(c2.row, c2.col, c2.rowCount, c2.colCount), t3 === f2 && n3 === l2 || (u2 = d2.pB(f2, l2), r2 || (h2.formulaWithCulture = this.Lp.unparse(this.qgt, u2, f2, l2, true)), h2.hasFormula = true, h2.isDynamicArray = true));
          }
          return h2;
        }, I.VI = function(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
          for (e3 || (e3 = this, i3 = t3, r2 = n3, o2 = []), a2 = e3.qwt(i3, r2), u2 = this.name(), s2 = 0; s2 < a2.length; s2++) if (!o2[f2 = (c2 = a2[s2]).sheetName + "_" + c2.row + "_" + c2.col + "_" + c2.rowCount + "_" + c2.colCount]) {
            if (o2[f2] = true, (c2.row <= t3 && t3 < c2.row + c2.rowCount || -1 === c2.rowCount) && (c2.col <= n3 && n3 < c2.col + c2.colCount || -1 === c2.colCount) && u2 === c2.sheetName) return true;
            for (l2 = c2.sheetName === u2 ? e3 : e3.parent.getSheetFromName(c2.sheetName), h2 = c2.rowCount, d2 = c2.row, v2 = c2.colCount, p2 = c2.col, -1 === h2 && (h2 = l2.getRowCount(), d2 = 0), -1 === v2 && (v2 = l2.getColumnCount(), p2 = 0), g2 = d2; g2 < h2 + d2; g2++) for (m2 = p2; m2 < v2 + p2; m2++) if (this.VI(t3, n3, l2, d2, p2, o2)) return true;
          }
          return false;
        }, I.getCrossSheetReferences = function(t3) {
          var n3, e3, i3, r2, a2, u2, s2, c2 = this, f2 = (0, o.createMap)(), l2 = c2.getRowCount(), h2 = c2.getColumnCount(), d2 = c2.b3(), v2 = d2.rT.id, p2 = function(n4, e4) {
            var i4, r3 = n4.w3.getSource();
            r3 && r3.id !== v2 && (t3 ? (i4 = r3.getName()) && i4.length > 0 && f2.set(i4, true) : f2.set(e4, n4));
          };
          for (e3 = 0; e3 < l2; e3++) for (i3 = 0; i3 < h2; i3++) if ((r2 = d2.oT(e3, i3)) && r2.aT) for (n3 = r2.aT, a2 = 0; a2 < n3.length; a2++) (u2 = r2[n3[a2]]) && u2.forEach(p2);
          if ((s2 = d2.uT()) && s2.aT) for (n3 = s2.aT, a2 = 0; a2 < n3.length; a2++) (u2 = s2[n3[a2]]) && u2.forEach((function(t4) {
            t4 && t4.content.forEach(p2);
          }));
          return f2;
        }, I.getPrecedents = function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = [], s2 = this.b3();
          return s2 && (e3 = s2.Fyt(t3, n3) || s2.pB(t3, n3), o2 = (r2 = (i3 = this.getFormulaInformation(t3, n3, 3, true)).baseRange) ? r2.row : t3, a2 = r2 ? r2.col : n3, this.yMt(e3, o2, a2, u2), u2 = K(u2)), u2;
        }, I.getDependents = function(t3, n3) {
          var e3 = [], i3 = this.parent && this.parent.sheets || [this], r2 = this.name();
          return i3.forEach((function(i4) {
            var o2, a2, u2, s2, c2, f2 = i4.getRowCount(), l2 = i4.getColumnCount(), h2 = i4.name();
            for (o2 = 0; o2 < f2; o2++) for (a2 = 0; a2 < l2; a2++) for (u2 = i4.getPrecedents(o2, a2), s2 = 0; s2 < u2.length; s2++) if ((c2 = u2[s2]).sheetName === r2 && (-1 === c2.row || c2.row <= t3 && t3 + 1 <= c2.row + c2.rowCount) && (-1 === c2.col || c2.col <= n3 && n3 + 1 <= c2.col + c2.colCount)) {
              e3.push({ row: o2, col: a2, rowCount: 1, colCount: 1, sheetName: h2 });
              break;
            }
          })), e3;
        }, k = {}, I.qwt = function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = {}, s2 = this.b3().oT(t3, n3), c2 = this.b3().uT();
          if (s2 && (e3 = s2[0]) && e3.forEach(ct(u2, this)), c2 && c2[0]) for (i3 = c2["0c"], k.minX = n3, k.minY = t3, k.maxX = n3, k.maxY = t3, r2 = i3.search(k), o2 = 0; o2 < r2.length; o2++) (a2 = r2[o2].content).forEach(ct(u2, this));
          return ft(u2);
        }, I.yMt = function(t3, n3, e3, i3) {
          var r2, a2, u2, s2, f2, l2, h2;
          if (t3) switch (r2 = t3.type) {
            case o.ExpressionType.reference:
            case o.ExpressionType.structReference:
              a2 = t3.getRange(n3, e3), u2 = void 0, u2 = t3.source && t3.source.Mf ? t3.source.Mf.name() : t3.source instanceof c.ExternalSource ? t3.source.getName() : this.name(), i3.push({ row: a2.row, col: a2.col, rowCount: a2.rowCount, colCount: a2.colCount, sheetName: u2 });
              break;
            case o.ExpressionType.operator:
              this.yMt(t3.value, n3, e3, i3), this.yMt(t3.value2, n3, e3, i3);
              break;
            case o.ExpressionType.expand:
            case o.ExpressionType.parentheses:
              this.yMt(t3.value, n3, e3, i3);
              break;
            case o.ExpressionType.name:
              (s2 = this.gMt(t3.value)) && this.yMt(s2.getExpression(), n3, e3, i3);
              break;
            case o.ExpressionType.function:
              for (f2 = t3.arguments, l2 = 0; l2 < f2.length; l2++) h2 = f2[l2], this.yMt(h2, n3, e3, i3);
          }
        }, I.hasFormula = function(t3, n3, e3, i3) {
          var r2 = this.b3(e3);
          return !!r2 && r2.hasFormula(t3, n3, i3);
        }, I.wMt = function() {
          var t3 = this.b3();
          t3 && t3.MMt((function(t4) {
            t4.CMt(), t4.yB();
          }));
        }, I.clearFormula = function(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = this;
          for (t3 < 0 && (t3 = 0, e3 = u2.getRowCount()), n3 < 0 && (n3 = 0, i3 = u2.getColumnCount()), o2 = 0; o2 < e3; o2++) if (r2(u2, o2 + t3)) for (a2 = 0; a2 < i3; a2++) u2.setFormula(o2 + t3, a2 + n3, f);
        }, I.nameFunctionsFromJSON = function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2;
          if (t3) {
            if (o2 = this, a2 = t3.customFunctions) for (u2 in a2) a2.hasOwnProperty(u2) && (s2 = a2[u2], (c2 = (0, i2.getTypeFromString)(s2.typeName)) && ((f2 = new c2()).fromJSON(s2, n3), o2.Uwt(f2)));
            if ((l2 = t3.names) && l2.length > 0) {
              for (h2 = 0; h2 < l2.length; h2++) d2 = l2[h2], o2.zwt(z(d2.name), d2.formula, d2.row, d2.col, true, d2.comment, d2.isReadOnly);
              o2.wMt();
            }
            r2 && r2();
          }
        }, I.formulaFromJSON = function(t3, n3, e3) {
          var i3, r2, o2;
          t3 && ((i3 = this).Xbt = t3.sharedFormulas, r2 = e3 && e3.ignoreFormula, o2 = e3 && e3.incrementalLoading, [t3.colHeaderData, t3.rowHeaderData, t3.data].forEach((function(t4, n4) {
            var a2, u2, s2, c2;
            t4 && !r2 && t4.dataTable && (a2 = n4 + 1, u2 = t4.dataTable, s2 = i3.getRowCount(a2), c2 = i3.getColumnCount(a2), o2 ? q(i3, u2, s2, c2, e3, 0, a2) : $(i3, u2, s2, c2, a2));
          })), t3.defaultData && tt(i3, t3.defaultData), o2 ? e3.incrementLoadTask.pushTask(it, [i3, t3, n3, e3]) : it(i3, t3, n3, e3));
        }, I.formulaFromSJSFormat = function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2;
          t3 && (a2 = (o2 = this).Uw(), u2 = !e3 || false !== e3.includeFormulas, s2 = i2.Util.Mo(e3), c2 = i2.Util.wo(e3, o2.parent && o2.parent.v2), f2 = o2.b3(3), a2.G3 = true, u2 && t3.lossless && t3.lossless.tree && e3.$wt && a2.setReferenceSheetNames(t3.lossless.referenceSheetNames), (l2 = M(t3, i2.XFileConstants.bo)) ? (h2 = l2.rowCount, d2 = l2.colCount, r2 ? (u2 && et(o2, l2, h2, d2, t3.lossless, e3, 0, r2), lt(t3, o2, f2, n3, e3, u2, s2, r2)) : (u2 && e3.incrementLoadTask.addTask(et, [o2, l2, h2, d2, t3.lossless, e3, 0], v.I5(g().STEP.loadSheetFormula, [o2.name()]), (function() {
            var t4 = e3.loadStatus.formulaLoad / e3.loadStatus.total;
            return e3.fullRecalc ? c2 ? 0.5 : t4 * i2.STEP_RATE.loadSheetFormulaWithCalc + i2.STEP_RATE.loadSheetDataWithCalc + i2.STEP_RATE.parseFile + i2.STEP_RATE.loadFileData : c2 ? 0.6 : t4 * i2.STEP_RATE.loadSheetFormula + i2.STEP_RATE.loadSheetData + i2.STEP_RATE.parseFile + i2.STEP_RATE.loadFileData;
          }), o2.name()), e3.incrementLoadTask.addTask(lt, [t3, o2, f2, n3, e3, u2, s2]))) : r2 ? lt(t3, o2, f2, n3, e3, u2, s2, r2) : e3.incrementLoadTask.addTask(lt, [t3, o2, f2, n3, e3, u2, s2]));
        }, I.nameFunctionFromSJSFormat = function(t3, n3, e3) {
          var r2, o2, a2, u2, c2, l2, h2, d2, v2;
          if (t3) {
            if (o2 = (r2 = this) ? r2.Uw() : f, a2 = t3.lossless && t3.lossless.customFunctions) for (u2 in a2) a2.hasOwnProperty(u2) && (c2 = a2[u2], (l2 = (0, i2.getTypeFromString)(c2.typeName)) && ((h2 = new l2()).fromJSON(c2), r2.Uwt(h2)));
            d2 = t3.lossless && t3.lossless.definedNames, v2 = t3.lossless && t3.lossless.nExpr, d2 && d2.length > 0 && (d2.forEach((function(t4) {
              var n4 = "" + t4.c_[0], e4 = S(t4.name), i3 = S(t4.comment);
              "_xlnm.Print_Titles" === e4 ? Tt(r2, n4) : v2 && v2[t4.e] ? r2.Wwt(z(e4), T(S(n4)), (0, s.exprFromJSON)(v2[t4.e], o2.getParserContext(false)), 0, 0, true, i3, "_xlnm.Print_Area" !== e4) : r2.zwt(z(e4), T(S(n4)), 0, 0, true, i3, t4.isReadOnly);
            })), r2.wMt());
          }
        }, I.SMt = function(t3) {
          var n3 = this, e3 = n3.Lp;
          e3 && !t3 || (n3.Lp = t3 || new o.CalcService(), n3.Uw(i2.SheetArea.colHeader).setCalcService(n3.Lp), n3.Uw(i2.SheetArea.rowHeader).setCalcService(n3.Lp), n3.Uw(i2.SheetArea.viewport).setCalcService(n3.Lp), n3.Lp.initParserContext(n3.Uw()), e3 ? (t3.setSourceModel(n3.T3, e3.getSourceModel(n3.T3)), t3.setSourceModel(n3.A3, e3.getSourceModel(n3.A3)), t3.setSourceModel(n3.qgt, e3.getSourceModel(n3.qgt))) : (n3.iMt = n3.Lp.getSourceModel(n3.T3), n3.rMt = n3.Lp.getSourceModel(n3.A3), n3.oMt = n3.Lp.getSourceModel(n3.qgt)), n3.oMt.usedRange = new i2.BaseUsedRange());
        }, I.setCalc = function(t3, n3) {
          this.Lp = t3, this.qgt = n3 || this.qgt, this.oMt = t3.getSourceModel(this.qgt), this.parent && (this.parent.Lp = t3);
        }, I.YA = function() {
          this.ol(false, 1);
        }, I.TMt = function(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, b2, y2, w2, M2 = this, C2 = t3.changeType, S2 = t3.row, T2 = t3.rowCount, x2 = t3.col, A2 = t3.colCount, I2 = t3.sheetArea, k2 = m(I2) || I2 === i2.SheetArea.viewport, N2 = M2.b3(I2), j2 = N2.usedRange;
          if (N2) if (d2 = (h2 = M2.Ut).pj(), v2 = V(N2), p2 = N2.rT, g2 = v2.Hyt(), b2 = v2.MX.asyncManager, "addingRows" === C2) if (M2.mT(S2, 0, 0, M2.getColumnCount(), void 0, true, false)) {
            if (t3.onlyCheck) return;
            y2 = k2 ? M2.b3(2) : l, g2.onBeforeAddRemoveRows(N2, S2, y2), mt(M2, S2, T2, true, true), [N2, y2].forEach((function(t4) {
              t4 && t4.addRows(S2, T2);
            })), b2.addRows(p2, S2, T2);
          } else t3.canAdd = false;
          else if ("addRows" === C2) v2.suspend(), y2 = k2 ? M2.b3(2) : l, g2.onAfterAddRemoveRows(N2, S2, T2, true, { isUndo: n3, rhCalcModel: y2 }), v2.resume(false), d2 && d2.push({ type: "addRows", row: S2, rowCount: T2, sheetArea: I2 }), j2 && j2.addHeadInfo(S2, T2, true);
          else if ("deletingRows" === C2) if (M2.mT(S2, 0, T2, M2.getColumnCount(), void 0, true, false)) {
            if (t3.onlyCheck) return;
            y2 = k2 ? M2.b3(2) : l, v2.DFe = d2, g2.onBeforeAddRemoveRows(N2, S2, y2, !n3, T2, n3), mt(M2, S2, T2, false, true), [N2, y2].forEach((function(t4) {
              t4 && t4.deleteRows(S2, T2, n3);
            })), b2.deleteRows(p2, S2, T2);
          } else t3.canDelete = false;
          else if ("deleteRows" === C2) v2.suspend(), y2 = k2 ? M2.b3(2) : l, g2.onAfterAddRemoveRows(N2, S2, T2, false, { isUndo: n3, rhCalcModel: y2 }), null === (r2 = null === (e3 = M2.parent) || void 0 === e3 ? void 0 : e3.suspendOp) || void 0 === r2 || r2.call(e3), v2.resume(false), null === (a2 = null === (o2 = M2.parent) || void 0 === o2 ? void 0 : o2.resumeOp) || void 0 === a2 || a2.call(o2), d2 && d2.push({ type: "deleteRows", row: S2, rowCount: T2, sheetArea: I2 }), delete v2.DFe, j2 && j2.removeHeadInfo(S2, T2, true);
          else if ("setRowCount" === C2 && T2 !== S2) v2.suspend(), y2 = M2.b3(2), S2 < T2 ? (N2.gF(S2 + 1, 0, T2 - S2, M2.getColumnCount()), y2.gF(S2 + 1, 0, T2 - S2, M2.getColumnCount()), N2.rT.t8.Fgt(S2 + 1, -1, T2 - S2, -1)) : (N2.gF(T2 + 1, 0, S2 - T2, M2.getColumnCount()), y2.gF(T2 + 1, 0, S2 - T2, M2.getColumnCount()), N2.uge(T2, S2), y2.uge(T2, S2)), v2.AMt(2), v2.resume(false);
          else if ("setColumnCount" === C2 && A2 !== x2) v2.suspend(), w2 = M2.b3(1), x2 < A2 ? (N2.gF(0, x2 + 1, M2.getRowCount(), A2 - x2), w2.gF(0, x2 + 1, M2.getRowCount(), A2 - x2), N2.rT.t8.Fgt(-1, x2 + 1, -1, A2 - x2)) : (N2.gF(0, A2 + 1, M2.getRowCount(), x2 - A2), w2.gF(0, A2 + 1, M2.getRowCount(), x2 - A2), N2.sge(A2, x2), w2.sge(A2, x2)), v2.AMt(3), v2.resume(false);
          else if ("addingColumns" === C2) if (M2.mT(0, x2, M2.getRowCount(), 0, void 0, false, true)) {
            if (t3.onlyCheck) return;
            w2 = k2 ? M2.b3(1) : l, g2.onBeforeAddRemoveColumns(N2, x2, w2), mt(M2, x2, A2, true, false), [N2, w2].forEach((function(t4) {
              t4 && t4.addColumns(x2, A2);
            })), b2.addColumns(p2, S2, T2);
          } else t3.canAdd = false;
          else if ("addColumns" === C2) v2.suspend(), w2 = k2 ? M2.b3(1) : l, g2.onAfterAddRemoveColumns(N2, x2, A2, true, { isUndo: n3, chCalcModel: w2 }), v2.resume(false), d2 && d2.push({ type: "addColumns", col: x2, colCount: A2 }), j2 && j2.addHeadInfo(x2, A2, false);
          else if ("deletingColumns" === C2) if (M2.mT(0, x2, M2.getRowCount(), A2, void 0, false, true)) {
            if (t3.onlyCheck) return;
            w2 = k2 ? M2.b3(1) : l, v2.DFe = d2, g2.onBeforeAddRemoveColumns(N2, x2, w2, !n3, A2, n3), mt(M2, x2, A2, false, false), [N2, w2].forEach((function(t4) {
              t4 && t4.deleteColumns(x2, A2, n3);
            })), b2.deleteColumns(p2, S2, T2);
          } else t3.canDelete = false;
          else "deleteColumns" === C2 && (v2.suspend(), w2 = k2 ? M2.b3(1) : l, g2.onAfterAddRemoveColumns(N2, x2, A2, false, { isUndo: n3, chCalcModel: w2 }), null === (s2 = null === (u2 = M2.parent) || void 0 === u2 ? void 0 : u2.suspendOp) || void 0 === s2 || s2.call(u2), v2.resume(false), null === (f2 = null === (c2 = M2.parent) || void 0 === c2 ? void 0 : c2.resumeOp) || void 0 === f2 || f2.call(c2), d2 && d2.push({ type: "deleteColumns", col: x2, colCount: A2, sheetArea: I2 }), delete v2.DFe, j2 && j2.removeHeadInfo(x2, A2, false));
        }, I.IMt = function(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2 = e3.type, c2 = this;
          if (i3) {
            if ("addRows" === s2) e3.changeType = "addingRows", c2.TMt(e3), e3.changeType = "addRows", c2.TMt(e3);
            else if ("deleteRows" === s2) e3.changeType = "deletingRows", c2.TMt(e3), e3.changeType = "deleteRows", c2.TMt(e3);
            else if ("addColumns" === s2) e3.changeType = "addingColumns", c2.TMt(e3), e3.changeType = "addColumns", c2.TMt(e3);
            else if ("deleteColumns" === s2) e3.changeType = "deletingColumns", c2.TMt(e3), e3.changeType = "deleteColumns", c2.TMt(e3);
            else if ("customName" === s2) r2 = t3.parse(c2, e3.newFormula, 0, 0), o2 = e3.nameInfo.getExpression(), e3.nameInfo.SB(r2), ht(c2, e3, o2);
            else if ("condition" === s2) {
              for (a2 = [], u2 = 0; u2 < e3.newFormulas.length; u2++) r2 = t3.parse(c2, e3.newFormulas[u2], 0, 0), a2.push(r2);
              e3.condition.setExpressions(a2);
            }
          } else if ("addRows" === s2) e3.changeType = "deletingRows", c2.TMt(e3, true), e3.changeType = "deleteRows", c2.TMt(e3, true);
          else if ("deleteRows" === s2) e3.changeType = "addingRows", c2.TMt(e3, true), e3.changeType = "addRows", c2.TMt(e3, true);
          else if ("addColumns" === s2) e3.changeType = "deletingColumns", c2.TMt(e3, true), e3.changeType = "deleteColumns", c2.TMt(e3, true);
          else if ("deleteColumns" === s2) e3.changeType = "addingColumns", c2.TMt(e3, true), e3.changeType = "addColumns", c2.TMt(e3, true);
          else if ("customName" === s2) r2 = t3.parse(c2, e3.formula, 0, 0), o2 = e3.nameInfo.getExpression(), e3.nameInfo.SB(r2), ht(c2, e3, o2);
          else if ("condition" === s2) {
            for (a2 = [], u2 = 0; u2 < e3.formulas.length; u2++) r2 = t3.parse(c2, e3.formulas[u2], 0, 0), a2.push(r2);
            e3.condition.setExpressions(a2);
          }
        }, I.xMt = function(t3, n3, e3) {
          var i3, r2 = e3.type, o2 = this;
          "addRows" === r2 ? (e3.changeType = "deletingRows", o2.TMt(e3, true), e3.changeType = "deleteRows", o2.TMt(e3, true)) : "deleteRows" === r2 ? (e3.changeType = "addingRows", o2.TMt(e3, true), e3.changeType = "addRows", o2.TMt(e3, true)) : "addColumns" === r2 ? (e3.changeType = "deletingColumns", o2.TMt(e3, true), e3.changeType = "deleteColumns", o2.TMt(e3, true)) : "deleteColumns" === r2 ? (e3.changeType = "addingColumns", o2.TMt(e3, true), e3.changeType = "addColumns", o2.TMt(e3, true)) : "customName" === r2 ? (i3 = e3.nameInfo.getExpression(), e3.nameInfo.SB(e3.expr), ht(o2, e3, i3)) : "condition" === r2 && e3.condition.setExpressions(e3.expressions);
        }, I.NMt = function(t3, n3) {
          var e3, i3, r2 = this, o2 = V(r2), a2 = r2.b3();
          if (o2.suspend(), n3) for (e3 = 0; e3 < t3.length; e3++) (i3 = t3[e3]).type ? r2.IMt(o2, a2, i3, n3) : i3.newValue && r2.setFormula(i3[0], i3[1], i3.formula);
          else for (e3 = t3.length - 1; e3 >= 0; e3--) (i3 = t3[e3]).type ? r2.IMt(o2, a2, i3, n3) : i3.newValue || r2.setFormula(i3[0], i3[1], i3.formula);
          o2.resume(false);
        }, I.xj = function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = t3[t3.length - 1], p2 = v2 && v2.sheetArea, g2 = m(p2) || p2 === i2.SheetArea.viewport, b2 = V(this), y2 = this.b3(p2), w2 = this.Uw(p2);
          for (b2.suspend(); t3.length; ) if ((n3 = t3.pop()).type) this.xMt(b2, y2, n3);
          else {
            if (e3 = n3[0], r2 = n3[1], o2 = n3[2], a2 = n3[3], u2 = n3[4], s2 = e3.pB(r2, o2), f2 = [], c2 = g2 && w2.t8.getAnchorInfo(r2, o2)) {
              for (l2 = c2.row; l2 < c2.row + c2.rowCount; l2++) for (f2[l2] = [], h2 = c2.col; h2 < c2.col + c2.colCount; h2++) f2[l2][h2] = this.getValue(l2, h2);
              !c2.isValid || a2 || u2 || w2.t8.Fme(w2.t8.Hme(r2, o2), true, false, true);
            }
            if (e3.kMt.apply(e3, n3), (d2 = g2 && e3 && e3.usedRange) && (A(d2, r2, o2, s2, a2), c2)) for (l2 = c2.row; l2 < c2.row + c2.rowCount; l2++) for (h2 = c2.col; h2 < c2.col + c2.colCount; h2++) l2 === r2 && h2 === o2 || A(d2, l2, h2, f2[l2][h2], a2);
          }
          t3 && t3.Wme && w2.t8.Kme(t3.Wme), b2.resume(false);
        }, I.getReferenceRange = function(t3) {
          var n3, e3, r2, a2, u2 = this.Uw(), s2 = this.getCalcService(), c2 = s2.parse(u2, t3, 0, 0, void 0, true), f2 = c2.baseTable;
          return c2 && f2 && t3 === f2.name() ? (n3 = f2.range(), e3 = f2.Mf && f2.Mf.name()) : (r2 = s2.MX.evaluateExpression(c2, u2.getEvaluatorContext({ row: 0, col: 0 }, false), false, true, true)) instanceof o.CalcReference && (e3 = r2.getSource().getName(), r2.getRangeCount() > 0 && (a2 = 0, n3 = (0, i2.Ec)(r2.getRow(a2), r2.getColumn(a2), r2.getRowCount(a2), r2.getColumnCount(a2)))), { sheetName: e3, range: n3 };
        }, I.$Ae = function(t3) {
          var n3 = this.Uw(), e3 = this.getCalcService(), i3 = e3.parse(n3, t3, 0, 0, void 0, true), r2 = [], o2 = [], a2 = {};
          return pt(i3, n3, e3, r2), r2.forEach((function(t4) {
            var n4 = t4.sheetName, e4 = t4.range;
            a2[n4] || (a2[n4] = { sheetName: n4, ranges: [] }, o2.push(a2[n4])), a2[n4].ranges.push(e4);
          })), o2;
        }, I.dL = function(t3, n3, e3, i3) {
          var r2, o2 = this, u2 = "string" == typeof i3 && o2.parent && o2.parent.xO(i3);
          return u2 && -1 !== t3 && -1 !== n3 ? (r2 = u2.getExpression(), F(o2, i3) ? B(o2, r2, t3, n3) : (0, a.evaluateExpression)(o2, r2, t3, n3, { sheetArea: e3 })) : l;
        }, I.TL = function(t3, n3, e3) {
          var i3, r2 = this, o2 = r2.parent;
          o2.xO(e3) || (-1 === t3 && (t3 = 0), -1 === n3 && (n3 = 0), i3 = vt(r2, e3, t3, n3), o2.pp(o2.bp, e3, i3, t3, n3, true, "", r2.NMi));
        }, I.NO = function(t3, n3, e3, i3) {
          var r2 = this;
          return F(r2, t3) ? B(r2, n3, e3, i3) : (0, a.evaluateExpression)(r2, n3, e3, i3);
        }, n2.convertFormatStringFormula = vt, n2.hMt = mt, n2.adjustOneFormula = yt, n2.XB = Mt, n2.QB = St, i2.Worksheet.ch("calc", { priority: 1e3, init: Y, dispose: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2 = this;
          false !== t3.clearCache && (s2.qgt = f, s2.A3 = f, s2.T3 = f, s2.Lp = f, (r2 = s2.oMt) && (true === t3.isSheetDestroy ? r2.DMt() : r2._Mt(), s2.oMt = f), (o2 = s2.rMt) && (true === t3.isSheetDestroy ? o2.DMt() : o2._Mt(), s2.rMt = f), (a2 = s2.iMt) && (true === t3.isSheetDestroy ? a2.DMt() : a2._Mt(), s2.iMt = f), (u2 = null === (n3 = s2.parent) || void 0 === n3 ? void 0 : n3.Lp) && (null === (i3 = null === (e3 = u2.MX) || void 0 === e3 ? void 0 : e3.asyncManager) || void 0 === i3 || i3.clearNodesByName(s2.name())));
        }, attach: function(t3) {
          var n3 = this;
          t3 instanceof i2.Workbook ? (n3.SMt(t3.Lp), this.Lp.suspend(), this.Lp.AMt(5), this.Lp.resume(false)) : n3.SMt();
        }, onLayoutChanged: function(t3) {
          this.op().isAdjustSuspended() || this.TMt(t3);
        }, toJson: function(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, f2, l2, d2 = this, v2 = d2.Amt;
          if (!i2.GC$.isEmptyObject(v2)) for (e3 in t3.customFunctions = {}, v2) v2.hasOwnProperty(e3) && (t3.customFunctions[e3] = v2[e3].toJSON());
          r2 = n3 && n3.newWorkSheetName, o2 = [], a2 = d2.getCustomNames(), u2 = V(d2), s2 = d2.b3(), c2 = s2.rT, a2 && u2 && (!m(r2) && s2 && c2 && (c2.Wbt = r2), h(a2, (function(t4, n4) {
            var e4, i3, r3 = n4.getName(), a3 = n4.getRow(), s3 = n4.getColumn(), c3 = n4.getExpression(), f3 = n4.isReadOnly(), l3 = n4.getComment();
            c3 && (i3 = { name: r3, formula: e4 = u2.unparse(d2.Uw(), c3, a3, s3, false, true, 1), row: a3, col: s3 }, l3 && (i3.comment = l3), "boolean" == typeof f3 && (i3.isReadOnly = f3), o2.push(i3));
          })), o2.length > 0 && (t3.names = o2), delete c2.Wbt), (f2 = n3 && n3.ignoreFormula) || (l2 = [d2.oMt, d2.iMt, d2.rMt], [t3.data, t3.colHeaderData, t3.rowHeaderData].forEach((function(t4, e4) {
            xt(l2, e4, t4, c2, r2, n3);
          })), d2.Xbt && d2.Xbt.nextIndex > 0 && (t3.sharedFormulas = d2.Xbt));
        }, fromJson: function(t3, n3, e3, i3) {
          var r2 = this, o2 = e3 && e3.incrementalLoading;
          o2 || (r2.clearCustomFunctions(), r2.clearCustomNames()), i3 && (r2.nameFunctionsFromJSON(t3, n3, e3), r2.formulaFromJSON(t3, n3, e3));
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2, u2, c2, f2, l2, d2, v2, p2, g2, b2, w2, M2 = this, C2 = M2.Amt;
          i2.GC$.isEmptyObject(C2) || (t3.lossless.customFunctions = C2), r2 = e3 && e3.newWorkSheetName, o2 = [], a2 = [], u2 = M2.getCustomNames(), c2 = V(M2), f2 = M2.b3(), l2 = f2.rT, d2 = {}, M2.parent && (v2 = M2.parent.yC, d2 = v2 && v2.getUsedCustomNames() || {}), u2 && c2 && !M2.NMi && (!m(r2) && f2 && l2 && (l2.Wbt = r2), p2 = !e3 || false !== e3.includeUnusedNames, h(u2, (function(t4, n4) {
            var i3, r3, u3, f3 = n4.getName(), l3 = n4.getExpression(), h2 = n4.isReadOnly(), v3 = n4.getComment();
            f3.toUpperCase() !== y && l3 && (p2 || d2[f3]) && (r3 = { name: f3, comment: v3, isReadOnly: h2, formula: i3 = c2.unparse(M2.Uw(), l3, 0, 0, false, true, 1) }, e3 && e3.includeCalcModelCache && !M2.Tir && (u3 = (0, s.exprToJSON)(l3), o2.push(u3), r3.e = o2.length - 1), a2.push(r3));
          })), a2.length > 0 && (t3.lossless.definedNames = a2), o2.length > 0 && (t3.lossless.nExpr = o2), delete l2.Wbt), (g2 = e3 && false === e3.includeFormulas) || ((b2 = M2.oMt) && (l2 = b2.rT, m(r2) || (l2.Wbt = r2), b2.wh(t3, e3), delete l2.Wbt), w2 = [M2.iMt, M2.rMt], t3.lossless && [t3.lossless.colHeaderData, t3.lossless.rowHeaderData].forEach((function(t4, n4) {
            xt(w2, n4, t4, l2, r2);
          }))), !g2 && i2.Util.ko(e3) && (e3 && e3.includeCalcModelCache && !M2.Tir && (t3.lossless.tree = (0, s.mbt)(M2.b3())), l2 = M2.Uw(), t3.lossless.referenceSheetNames = l2 && l2.getReferenceSheetNames(), Z(M2, t3.lossless));
        }, yh: function(t3, n3, e3, r2) {
          var o2, a2, u2 = this, s2 = u2.parent, c2 = i2.Util.wo(e3, u2.parent && u2.parent.v2), f2 = e3 && !e3.fullRecalc, l2 = u2.Uw();
          u2.suspendPaint(), s2 && s2.Lp && ((o2 = s2.Lp).suspend(), o2.lb = f2), (a2 = i2.Util.Mo(e3)) || (u2.clearCustomFunctions(), u2.clearCustomNames()), c2 && (l2.G3 = true, u2.nameFunctionFromSJSFormat(t3, n3, e3), u2.formulaFromSJSFormat(t3, n3, e3, r2), r2 ? ot(s2, u2, t3, l2, n3, e3) : e3.incrementLoadTask.addTask(ot, [s2, u2, t3, l2, n3, e3])), r2 ? At(o2, e3, l2, c2, f2, u2) : e3.incrementLoadTask.addTask((function(t4, n4, e4, i3, r3, o3) {
            At(t4, n4, e4, i3, r3, o3);
          }), [o2, e3, l2, c2, f2, u2]);
        }, setName: function(t3) {
          It(this, t3);
        }, onSetNameFromOp: function(t3) {
          var n3, e3, i3 = this.parent;
          null === (n3 = null == i3 ? void 0 : i3.suspendOp) || void 0 === n3 || n3.call(i3), It(this, t3), null === (e3 = null == i3 ? void 0 : i3.resumeOp) || void 0 === e3 || e3.call(i3);
        }, beforeSetName: function() {
          this.b8 && (this.parent || this).xyt();
        }, canAddingSpan: function(t3) {
          var n3 = this, e3 = t3.sheetArea, i3 = t3.row, r2 = t3.col, o2 = t3.rowCount, a2 = t3.colCount;
          (3 === e3 || m(e3)) && (n3.mT(i3, r2, o2, a2, false) || (t3.isAllow = false));
        } }), i2.Y8.ch("calc", { isInvalidFormula: function(t3) {
          var n3 = f, e3 = l;
          try {
            t3.allowDynamicArray && (m(a.SheetParserContext.wbt) && (a.SheetParserContext.wbt = new i2.Worksheet()), (n3 = a.SheetParserContext.wbt).getCalcService() && (e3 = n3.getCalcService().allowDynamicArray, n3.getCalcService().allowDynamicArray = true)), (0, a.formulaToExpression)(n3, t3.value);
          } catch (n4) {
            t3.isInvalid = true;
          } finally {
            m(n3) || m(e3) || !n3.getCalcService() || n3.getCalcService().allowDynamicArray === e3 || (n3.getCalcService().allowDynamicArray = e3);
          }
        } });
      }, "./dist/plugins/spacing/rowSpacing.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.RowSpacingModel = void 0, i2 = e2("Core"), r = e2("./dist/plugins/spacing/spacing.js"), o = void 0, a = function(t3) {
          return t3 === i2.SheetArea.corner || t3 === i2.SheetArea.colHeader;
        }, u = (function() {
          function t3(t4, n3, e3) {
            this.CMi = [], this.CMi[i2.SheetArea.rowHeader] = this.CMi[i2.SheetArea.viewport] = new i2.ksr(), this.HWt = [o, o, new i2.Nsr(t4, n3), new i2.Nsr(t4, e3)];
          }
          return t3.prototype.add = function(t4, n3) {
            this.HWt[i2.SheetArea.rowHeader].rE(t4, n3), this.HWt[i2.SheetArea.viewport].rE(t4, n3), this.CMi[i2.SheetArea.viewport].kE(t4, n3);
          }, t3.prototype.getSpacingSize = function(t4, n3) {
            var e3;
            if (void 0 === n3 && (n3 = i2.SheetArea.viewport), !a(n3)) return this.CMi[n3].getSize(t4);
          }, t3.prototype.setSpacingSize = function(t4, n3, e3) {
            var r2;
            (void 0 === e3 && (e3 = i2.SheetArea.viewport), a(e3)) || this.CMi[e3].setSize(t4, n3);
          }, t3.prototype.getSpacingVisible = function(t4, n3) {
            if (void 0 === n3 && (n3 = i2.SheetArea.viewport), !a(n3)) {
              var e3 = this.CMi[n3];
              return !e3 || e3.getVisible(t4);
            }
          }, t3.prototype.getCount = function(t4) {
            if (void 0 === t4 && (t4 = i2.SheetArea.viewport), !a(t4)) return this.HWt[t4].getRowCount();
          }, t3.prototype.setCount = function(t4) {
            this.HWt[i2.SheetArea.viewport].setRowCount(t4), this.HWt[i2.SheetArea.rowHeader].setRowCount(t4);
          }, t3.prototype.getValue = function(t4, n3, e3) {
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !a(e3)) return this.HWt[e3].getValue(t4, n3);
          }, t3.prototype.setValue = function(t4, n3, e3, r2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport), a(r2) || this.HWt[r2].setValue(t4, n3, e3, o, o);
          }, t3.prototype.getValueForKey = function(t4, n3, e3, r2) {
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !a(e3)) return this.HWt[e3].getValueForKey(t4, n3, r2);
          }, t3.prototype.setValueForKey = function(t4, n3, e3, r2, o2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport), a(r2) || this.HWt[r2].setValueForKey(t4, n3, o2, e3);
          }, t3.prototype.getStyle = function(t4, n3, e3) {
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), !a(e3)) return this.HWt[e3].getStyle(t4, n3, o);
          }, t3.prototype.setStyle = function(t4, n3, e3, r2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport), a(r2) || this.HWt[r2].setStyle(t4, n3, e3, o, o, o);
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3, r2 = this.HWt[i2.SheetArea.viewport].getRowCount();
            return r2 > 0 && (e3 || (e3 = {}), e3.data = this.HWt[i2.SheetArea.viewport].toJSON(i2.SheetArea.viewport, t4, n3), e3.rowHeaderData = this.HWt[i2.SheetArea.rowHeader].toJSON(i2.SheetArea.rowHeader, t4), e3.rows = this.CMi[i2.SheetArea.viewport].toJSON(t4), e3.count = this.getCount()), e3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            if (t4) {
              var o2 = t4.data, a2 = t4.rowHeaderData, u2 = t4.rows, s = t4.count;
              (0, r.q8)(s) && this.setCount(s), o2 && this.HWt[i2.SheetArea.viewport].fromJSON(o2, n3, e3), a2 && this.HWt[i2.SheetArea.rowHeader].fromJSON(a2, n3, e3), u2 && this.CMi[i2.SheetArea.viewport].fromJSON(u2);
            }
          }, t3;
        })(), n2.RowSpacingModel = u;
      }, "./dist/plugins/spacing/spacing.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/spacing/spacing.js"), n2), r(e2("./dist/plugins/spacing/rowSpacing.js"), n2), r(e2("./dist/plugins/spacing/spacing.interface.js"), n2);
      }, "./dist/plugins/spacing/spacing.interface.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true });
      }, "./dist/plugins/spacing/spacing.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SpacingManager = n2.q8 = void 0, i2 = e2("Core"), r = e2("./dist/plugins/spacing/rowSpacing.js"), o = null, a = "before", u = "after", s = i2.mt.V0, c = i2.mt.Z0, f = function(t3) {
          return null == t3;
        }, l = function(t3) {
          return "number" == typeof t3;
        }, n2.q8 = l, h = function(t3) {
          return t3.Ut.Vsr;
        }, d = (function() {
          function t3(t4) {
            this.ayt = t4, this.Hc();
          }
          return t3.prototype.Hc = function() {
            this.clearRowSpacing();
          }, t3.prototype.zsr = function(t4) {
            return this.Ysr[t4];
          }, t3.prototype.Zsr = function(t4) {
            return this.Ysr[t4] = {}, this.Ysr[t4];
          }, t3.prototype.Qsr = function() {
            var t4 = 0;
            return new r.RowSpacingModel(0, this.ayt.getColumnCount(i2.SheetArea.rowHeader), this.ayt.getColumnCount(i2.SheetArea.viewport));
          }, t3.prototype.Wsr = function(t4, n3) {
            var e3;
            return e3 = n3 ? this.Ysr[t4][u] = this.Qsr() : this.Ysr[t4][a] = this.Qsr();
          }, t3.prototype.Jsr = function(t4, n3) {
            var e3, i3 = this.zsr(t4);
            return i3 || this.Zsr(t4), (e3 = this.getRowSpacingModel(t4, n3)) || (e3 = this.Wsr(t4, n3)), e3;
          }, t3.prototype.getRowSpacingCount = function(t4, n3) {
            if (!this.hasRowSpacing(t4, n3)) return 0;
            var e3 = this.getRowSpacingModel(t4, n3);
            return e3 ? e3.getCount() : 0;
          }, t3.prototype.getRowSpacingModel = function(t4, n3, e3) {
            if (void 0 === e3 && (e3 = i2.SheetArea.viewport), e3 === i2.SheetArea.corner || e3 === i2.SheetArea.colHeader) return o;
            var r2 = this.Ysr[t4];
            return r2 ? n3 ? r2[u] : r2[a] : void 0;
          }, t3.prototype.hasRowSpacing = function(t4, n3, e3) {
            return void 0 === e3 && (e3 = i2.SheetArea.viewport), !!this.getRowSpacingModel(t4, n3, e3);
          }, t3.prototype.addRowSpacing = function(t4, n3, e3, i3) {
            var r2;
            this.Jsr(t4, i3).add(n3, e3);
          }, t3.prototype.getRowSpacingHeight = function(t4, n3, e3, r2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport);
            var o2 = this.getRowSpacingModel(t4, e3, r2);
            if (o2) return o2.getSpacingSize(n3, r2);
          }, t3.prototype.setRowSpacingHeight = function(t4, n3, e3, i3) {
            var r2 = this.getRowSpacingModel(t4, i3);
            r2 && r2.setSpacingSize(n3, e3);
          }, t3.prototype.getRowSpacingVisible = function(t4, n3, e3, r2) {
            void 0 === r2 && (r2 = i2.SheetArea.viewport);
            var o2 = this.getRowSpacingModel(t4, e3);
            if (o2) return o2.getSpacingVisible(n3, r2);
          }, t3.prototype.getRowSpacingValue = function(t4, n3, e3, i3, r2) {
            var a2 = this.getRowSpacingModel(t4, i3);
            return a2 ? a2.getValue(n3, e3, r2) : o;
          }, t3.prototype.setRowSpacingValue = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this.getRowSpacingModel(t4, r2);
            a2 && a2.setValue(n3, e3, i3, o2);
          }, t3.prototype.getRowSpacingValueForKey = function(t4, n3, e3, i3, r2, a2) {
            var u2, c2 = this.getRowSpacingModel(t4, i3);
            return c2 ? (u2 = c2.getValueForKey(n3, e3, r2, a2), s(u2)) : o;
          }, t3.prototype.setRowSpacingValueForKey = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2 = this.getRowSpacingModel(t4, r2);
            s2 && (u2 = c(i3), s2.setValueForKey(n3, e3, u2, o2, a2));
          }, t3.prototype.getRowSpacingStyle = function(t4, n3, e3, i3, r2) {
            var a2 = this.getRowSpacingModel(t4, i3);
            return a2 ? a2.getStyle(n3, e3, r2) : o;
          }, t3.prototype.setRowSpacingStyle = function(t4, n3, e3, i3, r2, o2) {
            var a2 = this.getRowSpacingModel(t4, r2);
            a2 && a2.setStyle(n3, e3, i3, o2);
          }, t3.prototype.clearRowSpacing = function() {
            this.Ysr = {};
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2;
            for (i3 in this.Ysr) this.Ysr[i3] && (o2 = (r2 = this.Ysr[i3]).before, a2 = r2.after, o2 && (u2 = o2.toJSON(t4, n3)) && (e3 || (e3 = {}), e3[i3] || (e3[i3] = {}), e3[i3].before = u2), a2 && (s2 = a2.toJSON(t4, n3)) && (e3 || (e3 = {}), e3[i3] || (e3[i3] = {}), e3[i3].after = s2));
            return e3;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2;
            for (i3 in t4) t4[i3] && (o2 = (r2 = t4[i3]).before, a2 = r2.after, o2 && (u2 = this.Jsr(Number(i3))).fromJSON(o2, n3, e3), a2 && (s2 = this.Jsr(Number(i3), true)).fromJSON(a2, n3, e3));
          }, t3;
        })(), n2.SpacingManager = d, i2.Worksheet.ch("spacing", { toJson: function(t3, n3) {
          var e3, i3;
          n3 && n3.gp && (i3 = (e3 = h(this)).toJSON(n3, this)) && (t3.spacing = i3);
        }, fromJson: function(t3, n3, e3) {
          var i3, r2;
          e3 && e3.gp && (i3 = t3.spacing) && (e3.sheet || (e3.sheet = this), (r2 = h(this)).fromJSON(i3, n3, e3));
        }, preProcessMouseDbClick: function(t3) {
          t3.target && (f(t3.target.rowSpacingIndex) || (t3.r = true));
        } }), i2.Y8.ch("spacing", { priority: 9e3, init: function() {
          this.Vsr = new d(this);
        }, getValue: function(t3) {
          var e3, i3, r2, o2, a2, u2 = t3.rowSpacingIndex, s2 = (0, n2.q8)(u2);
          s2 && (e3 = t3.row, i3 = t3.col, r2 = t3.isAfterRowSpacing, o2 = t3.sheetArea, a2 = this.Vsr, t3.isValueGet = true, t3.value = a2.getRowSpacingValue(e3, u2, i3, r2, o2));
        }, getStyle: function(t3) {
          var e3, i3, r2, o2, a2, u2 = t3.rowSpacingIndex, s2 = (0, n2.q8)(u2);
          s2 && (e3 = t3.row, i3 = t3.col, r2 = t3.isAfterRowSpacing, o2 = t3.sheetArea, a2 = this.Vsr, t3.isStyleGet = true, t3.style = a2.getRowSpacingStyle(e3, u2, i3, r2, o2));
        } }), i2.GC$.extend(i2.Worksheet.prototype, { Csr: function(t3, n3, e3) {
          var r2;
          return void 0 === e3 && (e3 = i2.SheetArea.viewport), h(this).hasRowSpacing(t3, n3, e3);
        }, Ksr: function(t3, n3, e3, i3) {
          var r2;
          this.suspendPaint(), h(this).addRowSpacing(t3, n3, e3, i3), this.Ww = true, this.resumePaint();
        }, Xsr: function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, l2, d2;
          for (void 0 === r2 && (r2 = i2.SheetArea.viewport), a2 = 0, u2 = o2 = this.$L; a2 < u2.length; a2++) if (c2 = { spacingIndex: n3, isAfter: e3 }, !(s2 = u2[a2]).tF(t3, c2)) return 0;
          return d2 = (l2 = h(this)).getRowSpacingHeight(t3, n3, e3, r2), f(d2) && (d2 = this.defaults.rowHeight), d2;
        }, qsr: function(t3, n3, e3, i3) {
          var r2;
          this.suspendPaint(), h(this).setRowSpacingHeight(t3, n3, e3, i3), this.Ww = true, this.resumePaint();
        }, Asr: function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2, l2;
          for (void 0 === r2 && (r2 = i2.SheetArea.viewport), a2 = 0, u2 = o2 = this.$L; a2 < u2.length; a2++) if (c2 = { spacingIndex: n3, isAfter: e3 }, !(s2 = u2[a2]).tF(t3, c2)) return 0;
          return f2 = this.zoom(), l2 = this.Xsr(t3, n3, e3, r2), 1 !== f2 && (l2 *= f2), Math.ceil(l2);
        }, Msr: function(t3, n3) {
          var e3, i3, r2 = h(this), o2 = r2.getRowSpacingModel(t3, n3), a2 = 0;
          if (o2 && (e3 = o2.getCount()) > 0) for (i3 = 0; i3 < e3; i3++) a2 += this.Asr(t3, i3, n3);
          return a2;
        }, Rsr: function(t3, n3, e3) {
          var r2, o2, a2;
          return void 0 === e3 && (e3 = i2.SheetArea.viewport), o2 = 0, (a2 = (r2 = h(this)).getRowSpacingModel(t3, n3, e3)) && (o2 = a2.getCount()), o2;
        }, $sr: function(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2;
          void 0 === a2 && (a2 = i2.SheetArea.viewport), u2 = this.Ut, c2 = (s2 = h(this)).getRowSpacingCount(t3, o2), f2 = u2.getRowCount(a2), l2 = u2.getColumnCount(a2), t3 < 0 || t3 >= f2 || e3 < 0 || e3 >= l2 || n3 < 0 || n3 >= c2 || s2.setRowSpacingValue(t3, n3, e3, r2, o2, a2);
        }, tcr: function(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2;
          void 0 === a2 && (a2 = i2.SheetArea.viewport), u2 = this.Ut, c2 = (s2 = h(this)).getRowSpacingCount(t3, o2), f2 = u2.getRowCount(a2), l2 = u2.getColumnCount(a2), t3 < 0 || t3 >= f2 || e3 >= l2 || n3 >= c2 || s2.setRowSpacingStyle(t3, n3, e3, r2, o2, a2);
        }, Dsr: function(t3) {
          var n3, e3, i3, r2, o2 = this._y(3);
          if (o2 && o2.length > 0) {
            for (n3 = 0; n3 < o2.length; n3++) if (e3 = o2[n3]) {
              if (i3 = e3.y, r2 = e3.height, i3 > t3) break;
              if (i3 < t3 && i3 + r2 > t3) return true;
            }
          }
          return false;
        }, jsr: function(t3, n3) {
          var e3 = this.Osr(t3, n3);
          if (e3) return e3.spacingIndex;
        }, _sr: function(t3, n3) {
          var e3 = this.Osr(t3, n3);
          if (e3) return e3.isAfterSpacing;
        }, xsr: function(t3, n3, e3) {
          var i3 = h(this), r2 = i3.getRowSpacingCount(t3, e3);
          return n3 === r2 - 1;
        }, ncr: function(t3, n3, e3, r2, o2, a2) {
          var u2;
          return void 0 === o2 && (o2 = i2.SheetArea.viewport), void 0 === a2 && (a2 = "tag"), h(this).getRowSpacingValueForKey(t3, n3, e3, r2, o2, a2);
        }, ecr: function(t3, n3, e3, r2, o2, a2, u2) {
          var s2;
          void 0 === a2 && (a2 = i2.SheetArea.viewport), void 0 === u2 && (u2 = "tag"), h(this).setRowSpacingValueForKey(t3, n3, e3, r2, o2, a2, u2);
        }, icr: function() {
          var t3;
          h(this).clearRowSpacing();
        }, rcr: function(t3, n3, e3, r2) {
          var o2, a2, u2, s2, c2, f2;
          for (void 0 === r2 && (r2 = i2.SheetArea.viewport), o2 = h(this), u2 = 0, s2 = a2 = this.$L; u2 < s2.length; u2++) if (f2 = { spacingIndex: n3, isAfter: e3 }, !(c2 = s2[u2]).tF(t3, f2)) return false;
          return o2.getRowSpacingVisible(t3, n3, e3, r2);
        }, Bsr: function(t3, n3, e3) {
          var r2, o2, a2, u2;
          if (void 0 === e3 && (e3 = i2.SheetArea.viewport), e3 === i2.SheetArea.colHeader || e3 === i2.SheetArea.corner) return true;
          if (o2 = (r2 = h(this)).getRowSpacingModel(t3, n3)) {
            for (a2 = o2.getCount(), u2 = 0; u2 < a2; u2++) if (this.rcr(t3, u2, n3, e3) && this.Asr(t3, u2, n3, e3)) return true;
            return false;
          }
        } }), i2.GC$.extend(i2.Yx.prototype, { Tsr: function(t3, n3, e3, i3) {
          var r2, s2, c2, f2, l2, h2, d2, v;
          if (void 0 === i3 && (i3 = {}), r2 = i3.rowSpacingIndex, s2 = i3.isAfterRowSpacing, c2 = i3.noCreate, !(f2 = e3[t3])) {
            if (c2) return o;
            e3[t3] = f2 = {};
          }
          if (!(h2 = f2[l2 = s2 ? u : a])) {
            if (c2) return o;
            f2[l2] = h2 = {};
          }
          if (!(d2 = h2[r2])) {
            if (c2) return o;
            h2[r2] = d2 = {};
          }
          if (!(v = d2[n3])) {
            if (c2) return o;
            d2[n3] = v = {};
          }
          return v;
        }, Isr: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
          for (e3 in n3) if (n3[e3]) {
            for (r2 in i3 = n3[e3]) if (i3[r2]) {
              for (a2 in o2 = i3[r2]) if (o2[a2]) {
                for (s2 in u2 = o2[a2]) if (u2[s2]) if (f2 = (c2 = u2[s2]).line, (l2 = c2.splitLines) && l2.length > 0) for (h2 = 0; h2 < l2.length; h2++) l2[h2] && l2[h2]._e(t3);
                else f2 && f2._e(t3);
              }
            }
          }
        } });
      }, "./dist/plugins/sparkline/functions-sparkline.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt = this && this.qKr || (It = function(t3, n3) {
          return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, It(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          It(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), At = this && this.nJr || function() {
          return At = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, At.apply(this, arguments);
        }, It;
        function kt(t3) {
          return 0 === t3;
        }
        function Nt(t3) {
          return 0 === t3 || 2 === t3;
        }
        function jt(t3) {
          return Nt(t3) || 8 === t3;
        }
        function Dt(t3) {
          return 0 === t3 || 1 === t3;
        }
        function _t(t3) {
          return 0 <= t3 && t3 <= 2;
        }
        function Ot(t3) {
          return 2 === t3 || 3 === t3;
        }
        function Et(t3) {
          return 1 === t3 || 2 === t3;
        }
        function Rt(t3, n3) {
          var e3, r2, o2, a2, u2, s2, c2, h2, d2, v2, p2 = [];
          if (f(t3)) for (e3 = 0, r2 = t3.getRangeCount(); e3 < r2; e3++) for (o2 = t3.getRowCount(e3), a2 = t3.getColumnCount(e3), u2 = 0; u2 < o2; u2++) for (s2 = 0; s2 < a2; s2++) p2.push(t3.getValue(e3, u2, s2));
          else if (n3 && l(t3)) for (c2 = t3.getRowCount(), h2 = t3.getColumnCount(), d2 = 0; d2 < c2; d2++) for (v2 = 0; v2 < h2; v2++) p2.push(t3.getValue(d2, v2));
          return t3 instanceof i2.TwoDimensionalCalcArray && 1 === p2.length && Array.isArray(p2[0]) && (p2 = p2[0]), p2;
        }
        function Lt(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, h2, d2, v2, p2 = [];
          if (f(t3)) {
            if ((r2 = t3.getRangeCount()) > n3) for (o2 = t3.getRowCount(n3), a2 = t3.getColumnCount(n3), u2 = 0; u2 < o2; u2++) for (p2[u2] = [], s2 = 0; s2 < a2; s2++) p2[u2].push(t3.getValue(n3, u2, s2));
          } else if (e3 && l(t3)) for (c2 = t3.getRowCount(), h2 = t3.getColumnCount(), d2 = 0; d2 < c2; d2++) for (p2[d2] = [], v2 = 0; v2 < h2; v2++) p2[d2][v2] = t3.getValue(d2, v2);
          return t3 instanceof i2.TwoDimensionalCalcArray && 1 === p2.length && Array.isArray(p2[0]) && (p2 = p2[0]), p2;
        }
        function Ft(t3) {
          var n3;
          return f(t3) ? n3 = t3.getValue(0, 0, 0) : v(t3) || (n3 = t3), n3;
        }
        function Bt(t3) {
          var n3 = t3.plannedValue, e3 = t3.actualValue, i3 = t3.index, r2 = t3.reference, o2 = t3.mini, a2 = t3.maxi, u2 = t3.tickUnit;
          return !I(i3) && (!(0 === n3.length || 0 === e3.length || i3 < 0 || i3 >= n3.length || i3 >= e3.length || o2 >= a2) && (!v(n3) && !v(e3) && (!I(e3[i3]) && !I(n3[i3]) && ((!r2 || !I(r2)) && ((!o2 || !I(o2)) && ((!a2 || !I(a2)) && (!u2 || !I(u2))))))));
        }
        function Pt(t3, n3) {
          function e3(t4) {
            var n4, e4, i4, r2, o3, a2 = {}, u3 = false, s2 = true, c2 = "", f2 = "";
            if (t4) {
              for (n4 = 0, e4 = (t4 = t4.substr(1, t4.length - 2)).length; n4 < e4; n4++) ":" === (i4 = t4.charAt(n4)) ? s2 = false : "," !== i4 || u3 ? "'" === i4 || '"' === i4 || ("(" === i4 ? u3 = true : ")" === i4 && (u3 = false), s2 ? c2 += i4 : f2 += i4) : (a2[c2] = f2, c2 = "", f2 = "", s2 = true);
              for (r2 in c2 && (a2[c2] = f2), a2) a2.hasOwnProperty(r2) && (o3 = a2[r2], v(o3) || ("TRUE" === o3.toUpperCase() ? a2[r2] = true : "FALSE" === o3.toUpperCase() ? a2[r2] = false : !I(o3) && isFinite(o3) && (a2[r2] = k(o3))));
            }
            return a2;
          }
          function i3(t4) {
            return new r.Range(t4.getRow(0), t4.getColumn(0), t4.getRowCount(0), t4.getColumnCount(0));
          }
          function o2(t4) {
            return new r.Range(0, 0, t4.getRowCount(), t4.getColumnCount());
          }
          var u2 = new h(t3, 2, 5);
          return u2.evaluate = function(t4) {
            var r2, u3, s2, c2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2 = t4[0], T2 = l(S2);
            if ((f(S2) || T2) && (r2 = T2 ? 1 : S2.getRangeCount()) > 0) {
              for (w2 in u3 = T2 ? o2(S2) : i3(S2), s2 = T2 ? "" : S2.getSource().getSheet().name(), c2 = t4[1], h2 = t4[2], d2 = void 0, p2 = void 0, g2 = void 0, m2 = l(h2), (f(h2) || m2) && (g2 = m2 ? "" : h2.getSource().getSheet().name(), (r2 = m2 ? 1 : h2.getRangeCount()) > 0 && (d2 = m2 ? o2(h2) : i3(h2), p2 = t4[3])), b2 = e3(t4[4] || "{}"), y2 = { ac: "axisColor", fmc: "firstMarkerColor", hmc: "highMarkerColor", lastmc: "lastMarkerColor", lowmc: "lowMarkerColor", mc: "markersColor", nc: "negativeColor", sc: "seriesColor", deca: "displayEmptyCellsAs", rtl: "rightToLeft", dh: "displayHidden", dxa: "displayXAxis", sf: "showFirst", sh: "showHigh", slast: "showLast", slow: "showLow", sn: "showNegative", sm: "showMarkers", mmax: "manualMax", mmin: "manualMin", maxat: "maxAxisType", minat: "minAxisType", lw: "lineWeight" }) y2.hasOwnProperty(w2) && b2.hasOwnProperty(w2) && (b2[y2[w2]] = b2[w2]);
              return 1 === (C2 = (M2 = new a.SparklineSetting(b2)).options).maxAxisType && (C2.maxAxisType = 0), 1 === C2.minAxisType && (C2.minAxisType = 0), { data: u3, dataSheetName: s2, dataOrientation: c2, dateAxisData: d2, dateAxisDataSheetName: g2, dateAxisOrientation: p2, sparklineType: n3, displayDateAxis: d2 && !v(p2), setting: M2, values: Lt(S2, 0, true), dateValues: Lt(h2, 0, true) };
            }
          }, u2.u9t = 1, u2.acceptsReference = Nt, u2.acceptsArray = Nt, u2;
        }
        function Gt(t3, n3, e3, i3, o2, u2, s2) {
          var c2, f2, l2 = a.Sparkline.EMt, h2 = s2.sheet, d2 = h2.parent.getSheetFromName(n3.dataSheetName), v2 = h2.parent.getSheetFromName(n3.dateAxisDataSheetName), p2 = n3.setting;
          p2 && p2.options || (p2 = new a.SparklineSetting(p2)), c2 = p2.options.displayHidden, f2 = { sparklineType: n3.sparklineType, displayDateAxis: n3.displayDateAxis, zoomFactor: s2.zoomFactor, values: l2(n3.values, d2 || h2, c2, n3.data, n3.dataOrientation), dateValues: l2(n3.dateValues, v2 || h2, c2, n3.dateAxisData, n3.dateAxisOrientation, true), settings: p2, getColor: function(t4) {
            if (h2 && t4) {
              var n4 = r.Pf.vl(h2, t4);
              if (n4) return n4;
            }
            return t4;
          } }, new b().paint(t3, f2, e3, i3, o2, u2);
        }
        function Ut(t3, n3, e3, i3, r2, o2, a2, u2) {
          if (v(t3) || v(n3) || v(e3) || v(i3)) return false;
          if (I(t3) || I(n3) || I(e3) || I(i3)) return false;
          if (e3 >= i3 || n3 < e3 || n3 > i3 || t3 < e3 || t3 > i3) return false;
          if (!v(a2) && 0 !== a2 && 1 !== a2 && 2 !== a2) return false;
          if (0 === a2 || v(a2)) {
            if (!v(r2) && !v(o2) && (I(o2) || I(r2) || r2 >= o2 || r2 < -180 || o2 > 180)) return false;
            if (!v(u2) && (I(u2) || u2 > 1 || u2 < 0)) return false;
          }
          return true;
        }
        function Ht(t3, n3, e3) {
          return { value: t3, font: n3, label: e3, normalFontHeight: M(n3), normalFontWidth: C(e3, n3), fontAfterZoom: null };
        }
        function Vt(t3) {
          t3 && (Tt[t3.name()] = t3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.jMt = n2.GaugeKPISparkline = n2.RangeBlockSparkline = n2.WinlossSparkline = n2.ColumnSparkline = n2.LineSparkline = n2.ImageSparkline = n2.HistogramSparkline = n2.YearSparkline = n2.MonthSparkline = n2.ParetoSparkline = n2.CascadeSparkline = n2.BoxPlotSparkline = n2.LollipopVariSparkline = n2.VariSparkline = n2.VBarSparkline = n2.HBarSparkline = n2.StackedSparkline = n2.SpreadSparkline = n2.BulletSparkline = n2.ScatterSparkline = n2.AreaSparkline = n2.PieSparkline = n2.SparklineEx = n2.SparklineExValue = void 0, i2 = e2("CalcEngine"), r = e2("Core"), o = e2("Common"), a = e2("./dist/plugins/sparkline/sparkline-wrapper.js"), f = i2.Convert.LE, l = i2.Convert.Nh, h = i2.Functions && i2.Functions.Function, d = i2.Functions && i2.Functions.Mmt, v = o.Common.lt.ht, p = o.Common.lt.OMt, m = (g = r.GC$).extend, b = o.Sparklines.SparklineRender, y = o.Sparklines.SparklineExRenders, w = i2.Errors.Value, M = r.util.vt, C = r.q.Wt, S = r.W.V, T = Math.floor, x = Math.min, A = null, I = isNaN, k = parseFloat, N = NaN, j = "12px Calibri", D = "PIESPARKLINE", _ = "AREASPARKLINE", O = "SCATTERSPARKLINE", E = "BULLETSPARKLINE", R = "SPREADSPARKLINE", L = "STACKEDSPARKLINE", F = "HBARSPARKLINE", B = "VBARSPARKLINE", P = "VARISPARKLINE", G = "LOLLIPOPVARISPARKLINE", U = "BOXPLOTSPARKLINE", H = "CASCADESPARKLINE", V = "PARETOSPARKLINE", z = "MONTHSPARKLINE", Y = "YEARSPARKLINE", Z = "LINESPARKLINE", W = "COLUMNSPARKLINE", Q = "WINLOSSSPARKLINE", K = "RANGEBLOCKSPARKLINE", J = "GAUGEKPISPARKLINE", X = "HISTOGRAMSPARKLINE", q = "IMAGE", (function(t3) {
          t3[t3.fit = 0] = "fit", t3[t3.entireFit = 1] = "entireFit", t3[t3.originFit = 2] = "originFit", t3[t3.custom = 3] = "custom";
        })($ || ($ = {})), tt = (function() {
          function t3(t4, n3) {
            this.name = t4, this.value = n3, this.typeName = "SparklineExValue";
          }
          return t3.prototype.toString = function() {
            return this.name === q ? this.value.altText + "" : "";
          }, t3;
        })(), n2.SparklineExValue = tt, nt = (function() {
          function t3() {
            var t4, n3, e3 = this.createFunction();
            e3 && (t4 = e3.name, n3 = e3.evaluate, e3.evaluate = function() {
              var e4 = n3.call(this, arguments);
              return e4 instanceof i2.CalcError ? e4 : e4 ? new tt(t4, e4) : A;
            }, this.Zc = t4, t4 && !i2.Functions.findGlobalFunction(t4) && (i2.Functions.Tmt[t4] = e3)), this.typeName = "";
          }
          return t3.prototype.name = function() {
            return this.Zc;
          }, t3.prototype.createFunction = function() {
            return A;
          }, t3.prototype.paint = function(t4, n3, e3, i3, r2, o2, a2) {
          }, t3.prototype.toJSON = function() {
            var t4, n3 = {};
            for (t4 in this) this.hasOwnProperty(t4) && (n3[t4] = this[t4]);
            return n3;
          }, t3.prototype.fromJSON = function(t4) {
            if (t4) for (var n3 in t4) v(t4[n3]) || (this[n3] = t4[n3]);
          }, t3;
        })(), n2.SparklineEx = nt, et = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.PieSparkline = et, m(et.prototype, { createFunction: function() {
          var t3 = new h(D, 1, 255);
          return t3.evaluate = function(t4) {
            var n3 = t4[0], e3 = Rt(n3, true);
            return e3.length <= 0 && !v(n3) && e3.push(n3), { values: e3, colors: Array.prototype.slice.call(t4, 1) };
          }, t3.acceptsReference = kt, t3.acceptsArray = kt, t3.u9t = 1, t3;
        }, paint: y[D] }), it = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.AreaSparkline = it, m(it.prototype, { createFunction: function() {
          var t3 = new h(_, 1, 7);
          return t3.evaluate = function(t4) {
            return { points: Rt(t4[0], true), mini: t4[1], maxi: t4[2], line1: t4[3], line2: t4[4], colorPositive: t4[5], colorNegative: t4[6] };
          }, t3.acceptsReference = kt, t3.acceptsArray = kt, t3.u9t = 1, t3;
        }, paint: y[_] }), rt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.ScatterSparkline = rt, m(rt.prototype, { createFunction: function() {
          var t3 = new h(O, 1, 18);
          return t3.evaluate = function(t4) {
            var n3, e3;
            return { points1: Lt(t4[0], 0, true), points2: Lt(t4[1], 0, true), minX: t4[2], maxX: t4[3], minY: t4[4], maxY: t4[5], hLine: t4[6], vLine: t4[7], xMinZone: t4[8], xMaxZone: t4[9], yMinZone: t4[10], yMaxZone: t4[11], tags: t4[12], drawSymbol: t4[13], drawLines: t4[14], color1: t4[15], color2: t4[16], dash: t4[17] };
          }, t3.acceptsReference = Dt, t3.acceptsArray = Dt, t3.u9t = 1, t3;
        }, paint: y[O] }), ot = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.BulletSparkline = ot, m(ot.prototype, { createFunction: function() {
          var t3 = new h(E, 3, 17);
          return t3.evaluate = function(t4) {
            return { measure: Ft(t4[0]), target: Ft(t4[1]), maxi: Ft(t4[2]), good: Ft(t4[3]), bad: Ft(t4[4]), forecast: Ft(t4[5]), tickUnit: Ft(t4[6]), colorScheme: t4[7], vertical: t4[8], measureColor: t4[9], targetColor: t4[10], maxiColor: t4[11], goodColor: t4[12], badColor: t4[13], forecastColor: t4[14], allowMeasureOverMaxi: t4[15], barSize: t4[16] };
          }, t3.acceptsReference = function(t4) {
            return 0 <= t4 && t4 <= 6;
          }, t3.u9t = 1, t3;
        }, paint: y[E] }), at = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.SpreadSparkline = at, m(at.prototype, { createFunction: function() {
          function t3(t4) {
            var n4, e4, i3, r2, o2 = [];
            for (e4 = 0, i3 = 0, r2 = t4.length; e4 < r2; e4++) n4 = k(t4[e4]), !I(n4) && isFinite(n4) && (o2[i3] = n4, i3++);
            return o2;
          }
          function n3(t4) {
            var n4, e4, i3, r2, o2, a2 = {};
            for (n4 = 0, e4 = void 0, i3 = t4.length; n4 < i3; n4++) a2[e4 = t4[n4]] ? a2[e4]++ : a2[e4] = 1;
            for (o2 in r2 = [], a2) a2.hasOwnProperty(o2) && r2.push({ key: k(o2), value: a2[o2] });
            return r2.sort((function(t5, n5) {
              return t5.key - n5.key;
            }));
          }
          var e3 = new h(R, 1, 7);
          return e3.evaluate = function(e4) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2 = Rt(e4[0], true), h2 = [];
            if (!v(l2) && (h2 = n3(l2 = t3(l2)), 3 === (i3 = e4[4]))) for (r2 = 0, o2 = h2.length; r2 < o2; r2++) {
              for (u2 = (a2 = h2[r2]).value, s2 = [], c2 = Math.max(100, 10 * u2), f2 = 0; f2 < c2 + u2 - 1; f2++) s2.push(Math.random());
              a2.randomNumbers = s2;
            }
            return { spreadData: h2, showAverage: e4[1], scaleStart: e4[2], scaleEnd: e4[3], style: i3, colorScheme: e4[5], vertical: e4[6] };
          }, e3.acceptsReference = kt, e3.acceptsArray = kt, e3.u9t = 1, e3;
        }, paint: y[R] }), ut = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.StackedSparkline = ut, m(ut.prototype, { createFunction: function() {
          var t3 = new h(L, 1, 13);
          return t3.evaluate = function(t4) {
            return { points: Rt(t4[0], true), colorRange: Rt(t4[1], true), labelRange: Rt(t4[2], true), maximum: t4[3], targetRed: t4[4], targetGreen: t4[5], targetBlue: t4[6], targetYellow: t4[7], color: t4[8], highlightPosition: t4[9], vertical: t4[10], textOrientation: t4[11], textSize: t4[12] };
          }, t3.acceptsReference = _t, t3.acceptsArray = _t, t3.u9t = 1, t3;
        }, paint: y[L] }), st = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.HBarSparkline = st, m(st.prototype, { createFunction: function() {
          var t3 = new h(F, 1, 4);
          return t3.evaluate = function(t4) {
            return { value: Ft(t4[0]), colorScheme: t4[1], axisVisible: t4[2], barHeight: t4[3] };
          }, t3.acceptsReference = kt, t3.u9t = 1, t3;
        }, paint: y[F] }), ct = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.VBarSparkline = ct, m(ct.prototype, { createFunction: function() {
          var t3 = new h(B, 1, 4);
          return t3.evaluate = function(t4) {
            return { value: Ft(t4[0]), colorScheme: t4[1], axisVisible: t4[2], barWidth: t4[3] };
          }, t3.acceptsReference = kt, t3.u9t = 1, t3;
        }, paint: y[B] }), ft = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.VariSparkline = ft, m(ft.prototype, { createFunction: function() {
          var t3 = new h(P, 1, 10);
          return t3.evaluate = function(t4) {
            return { variance: Ft(t4[0]), reference: Ft(t4[1]), mini: Ft(t4[2]), maxi: Ft(t4[3]), mark: Ft(t4[4]), tickUnit: Ft(t4[5]), legend: t4[6], colorPositive: t4[7], colorNegative: t4[8], vertical: t4[9] };
          }, t3.acceptsReference = function(t4) {
            return 0 <= t4 && t4 <= 5;
          }, t3.u9t = 1, t3;
        }, paint: y[P] }), lt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.LollipopVariSparkline = lt, m(lt.prototype, { createFunction: function() {
          var t3 = new h(G, 3, 13);
          return t3.evaluate = function(t4) {
            var n3 = { plannedValue: Rt(t4[0], true), actualValue: Rt(t4[1], true), index: Ft(t4[2]), absolute: Ft(t4[3]), reference: Ft(t4[4]), mini: Ft(t4[5]), maxi: Ft(t4[6]), tickUnit: Ft(t4[7]), legend: t4[8], colorPositive: t4[9], colorNegative: t4[10], lollipopHeaderColor: t4[11], vertical: t4[12] };
            return Bt(n3) ? n3 : w;
          }, t3.acceptsReference = function(t4) {
            return 2 !== t4 && 0 <= t4 && t4 <= 7;
          }, t3.acceptsArray = Dt, t3.u9t = 1, t3;
        }, paint: y[G] }), ht = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.BoxPlotSparkline = ht, m(ht.prototype, { createFunction: function() {
          function t3(t4, n4) {
            return f(t4) && !I(n4) && 0 <= n4 && n4 <= 100 ? d.PERCENTILE.evaluate(t4, n4 / 100) : N;
          }
          function n3(t4) {
            return f(t4) ? d.STDEVP.evaluate(t4) : N;
          }
          var e3 = new h(U, 1, 10);
          return e3.evaluate = function(e4) {
            var i3 = e4[0];
            return { points: Rt(i3, true), boxPlotClass: e4[1], showAverage: e4[2], scaleStart: Ft(e4[3]), scaleEnd: Ft(e4[4]), acceptableStart: Ft(e4[5]), acceptableEnd: Ft(e4[6]), colorScheme: e4[7], style: e4[8], vertical: e4[9], perc02: t3(i3, 2), perc09: t3(i3, 9), perc10: t3(i3, 10), perc90: t3(i3, 90), perc91: t3(i3, 91), perc98: t3(i3, 98), q1: t3(i3, 25), q3: t3(i3, 75), median: t3(i3, 50), stDev: n3(i3) };
          }, e3.acceptsReference = kt, e3.acceptsArray = kt, e3.u9t = 1, e3;
        }, paint: y[U] }), dt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.CascadeSparkline = dt, m(dt.prototype, { createFunction: function() {
          var t3 = new h(H, 1, 10);
          return t3.evaluate = function(t4) {
            return { points: Rt(t4[0], true), pointIndex: Ft(t4[1]), labels: Rt(t4[2], true), minimum: Ft(t4[3]), maximum: Ft(t4[4]), colorPositive: t4[5], colorNegative: t4[6], vertical: t4[7], itemTypeRange: Rt(t4[8], true), colorTotal: t4[9] };
          }, t3.acceptsReference = jt, t3.acceptsArray = jt, t3.u9t = 1, t3;
        }, paint: y[H] }), vt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.ParetoSparkline = vt, m(vt.prototype, { createFunction: function() {
          var t3 = new h(V, 2, 12);
          return t3.evaluate = function(t4) {
            return { points: Rt(t4[0], true), pointIndex: Ft(t4[1]), colorRange: Rt(t4[2], true), target: Ft(t4[3]), target2: Ft(t4[4]), highlightPosition: Ft(t4[5]), label: t4[6], vertical: t4[7], targetColor: t4[8], target2Color: t4[9], labelColor: t4[10], barSize: t4[11] };
          }, t3.acceptsReference = Nt, t3.acceptsArray = Nt, t3.u9t = 1, t3;
        }, paint: y[V] }), pt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.MonthSparkline = pt, m(pt.prototype, { createFunction: function() {
          var t3 = new h(z, 3, 7);
          return t3.evaluate = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, h2 = t4[0], d2 = t4[1], v2 = t4[2], p2 = v2;
            for ((f(v2) || l(v2)) && (p2 = Lt(v2, 0, true)), n3 = t4[3], e3 = [], (f(n3) || l(n3)) && (e3 = Lt(n3, 0, true)), i3 = [], r2 = [], o2 = 0, a2 = p2.length; o2 < a2; o2++) (u2 = p2[o2]) && ("string" == typeof (s2 = u2[0]) && (s2 = new Date(s2)), s2 && s2.getFullYear() === h2 && s2.getMonth() + 1 === d2 && (i3[c2 = s2.getDate() - 1] = u2[1], e3.length > 0 && (r2[c2] = e3[o2][0])));
            return e3.length > 0 ? { year: h2, month: d2, values: i3, colors: r2 } : { year: h2, month: d2, values: i3, emptyColor: n3, startColor: t4[4], middleColor: t4[5], endColor: t4[6] };
          }, t3.acceptsReference = Ot, t3.acceptsArray = Ot, t3.u9t = 1, t3;
        }, paint: y[z] }), gt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3.daysOfMonth = function(t4, n4) {
            switch (n4) {
              case 2:
                var e3;
                return t4 % 4 == 0 && t4 % 100 != 0 || t4 % 400 == 0 ? 29 : 28;
              case 4:
              case 6:
              case 9:
              case 11:
                return 30;
              default:
                return 31;
            }
          }, n3.dayInYear = function(t4) {
            var e3, i3 = t4.getFullYear(), r2 = t4.getMonth(), o2 = t4.getDate();
            for (e3 = 1; e3 < r2 + 1; e3++) o2 += n3.daysOfMonth(i3, e3);
            return o2;
          }, n3;
        })(nt), n2.YearSparkline = gt, m(gt.prototype, { createFunction: function() {
          var t3 = new h(Y, 2, 6);
          return t3.evaluate = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, h2 = t4[0], d2 = t4[1], v2 = d2;
            for ((f(d2) || l(d2)) && (v2 = Lt(d2, 0, true)), n3 = t4[2], e3 = [], (f(n3) || l(n3)) && (e3 = Lt(n3, 0, true)), i3 = [], r2 = [], o2 = 0, a2 = v2.length; o2 < a2; o2++) (u2 = v2[o2]) && ("string" == typeof (s2 = u2[0]) && (s2 = new Date(s2)), s2 && s2.getFullYear() === h2 && (i3[c2 = gt.dayInYear(s2) - 1] = u2[1], e3.length > 0 && (r2[c2] = e3[o2][0])));
            return e3.length > 0 ? { year: h2, values: i3, colors: r2 } : { year: h2, values: i3, emptyColor: n3, startColor: t4[3], middleColor: t4[4], endColor: t4[5] };
          }, t3.acceptsReference = Et, t3.acceptsArray = Et, t3.u9t = 1, t3;
        }, paint: y[Y] }), mt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.HistogramSparkline = mt, m(mt.prototype, { createFunction: function() {
          var t3 = this, n3 = new h(X, 1, 9);
          return n3.acceptsArray = function() {
            return true;
          }, n3.evaluate = function(n4) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = n4[0], d2 = [];
            if (!(h2 instanceof i2.CalcArray || h2 instanceof i2.CalcReference)) throw i2.CalcError;
            if (d2 = t3.RMt(h2), e3 = n4[1], v(e3) && (e3 = true), r2 = true === n4[2], o2 = n4[3], v(o2) && (o2 = 1), o2 <= 0) throw i2.CalcError;
            if (a2 = n4[4], v(a2) && (a2 = 1), a2 > 1 || a2 <= 0) throw i2.CalcError;
            return u2 = n4[5] || "#5B9BD5", s2 = n4[6], c2 = n4[7] || "#000000", f2 = n4[8] || "#C0C0C0", { values: l2 = e3 ? t3.BMt(d2, o2) : t3.LMt(d2), continuous: e3, paintLabel: r2, barWidth: a2, barColor: u2, labelFontStyle: s2, labelColor: c2, edgeColor: f2 };
          }, n3.acceptsReference = function(t4) {
            return 0 === t4;
          }, n3.u9t = 1, n3;
        }, RMt: function(t3) {
          var n3, e3, r2 = [];
          if (t3 instanceof i2.CalcArray) for (n3 = t3.toArray(1), e3 = 0; e3 < n3.length; e3++) r2.push(n3[e3]);
          else (n3 = Lt(t3, 0)).forEach((function(t4) {
            t4.forEach((function(t5) {
              v(t5) || "number" != typeof t5 || isNaN(t5) || r2.push(t5);
            }));
          }));
          return r2;
        }, BMt: function(t3, n3) {
          var e3, i3, r2, a2, u2, s2, c2, f2 = [], l2 = 0, h2 = this;
          for (t3.forEach((function(t4) {
            f2[l2] = t4, l2++;
          })), e3 = [], i3 = a2 = f2[0], f2.forEach((function(t4) {
            i3 = Math.min(t4, i3), a2 = Math.max(t4, a2);
          })), r2 = T(i3 / n3) * n3, u2 = Math.ceil(a2 / n3) * n3, s2 = 1 !== f2.length ? Math.round((u2 - r2) / n3) : 1, l2 = 0; l2 < s2; l2++) e3[l2] = o.Common.st.E8(l2 * n3 + r2, 15);
          for (a2 >= e3[l2 - 1] && (e3[l2] = e3[l2 - 1] + n3), c2 = [], l2 = 0, s2 = e3.length - 1; l2 < s2; l2++) c2[l2] = { value: 0 };
          for (c2.length > 0 && (c2[0].axis = "[" + e3[0] + "," + e3[1] + "]"), l2 = 1; l2 < e3.length - 1; l2++) v(e3[l2 + 1]) ? c2[l2].axis = "(" + e3[l2] + "," + (e3[l2] + n3) + "]" : c2[l2].axis = "(" + e3[l2] + "," + e3[l2 + 1] + "]";
          return f2.forEach((function(t4) {
            var n4 = h2.FMt(e3, t4);
            c2[n4].value++;
          })), c2.length > 0 && 0 === c2[0].value && c2.splice(0, 1), c2;
        }, LMt: function(t3) {
          var n3, e3, i3, r2, o2 = this, a2 = {};
          for (n3 = 0, e3 = t3.length; n3 < e3; ++n3) i3 = t3[n3], void 0 === a2[i3] ? a2[i3] = 1 : a2[i3]++;
          return (r2 = o2.PMt(a2)).sort((function(t4, n4) {
            return t4 - n4;
          })), r2.map((function(t4) {
            return { axis: t4, value: a2[t4] };
          }));
        }, PMt: function(t3) {
          var n3, e3 = [];
          for (n3 in t3) t3.hasOwnProperty(n3) && void 0 !== t3[n3] && null !== t3[n3] && e3.push(n3);
          return e3;
        }, FMt: function(t3, n3) {
          var e3, i3, r2, o2, a2 = t3.length;
          if (t3[0] === n3) return 0;
          if (0 === a2) return 0;
          e3 = 0, r2 = T((i3 = a2 - 1) / 2);
          do {
            if (o2 = r2, n3 > t3[r2] && n3 <= t3[r2 + 1]) return r2;
            n3 <= t3[r2] ? r2 = T(((i3 = r2) + e3) / 2) : n3 > t3[r2 + 1] && (e3 = r2, r2 = T((r2 + i3) / 2));
          } while (o2 !== r2);
        }, paint: function(t3, n3, e3, i3, o2, a2, u2) {
          var s2, c2, f2 = n3.labelFontStyle, l2 = u2.zoomFactor;
          v(f2) && (f2 = t3.font), s2 = r.W.V(f2, l2), c2 = r.W.Ne(s2.font), n3.afterZoomFontStyle = { fontStyle: c2.fontStyle, fontFamily: c2.fontFamily, fontSize: c2.fontSize, fontWeight: c2.fontWeight, fontPixelSize: s2.fontSize }, y[X](t3, n3, e3, i3, o2, a2, u2);
        } }), bt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.ImageSparkline = bt, m(bt.prototype, { createFunction: function() {
          var t3 = new h(q, 1, 11);
          return t3.evaluate = function(t4) {
            var n3 = t4[0], e3 = t4[1], r2 = t4[2], o2 = t4[3], a2 = t4[4], u2 = t4[5] || 0, s2 = t4[6] || 0, c2 = t4[7], f2 = t4[8], l2 = t4[9], h2 = t4[10];
            if (v(e3) && (e3 = ""), "string" != typeof e3 && (e3 = "" + e3), -1 === [0, 1, 2].indexOf(l2) && (l2 = void 0), -1 === [0, 1, 2].indexOf(h2) && (h2 = void 0), r2 === $.custom) {
              if (v(o2) && v(a2)) throw i2.CalcError;
            } else if (!v(o2) || !v(a2)) throw i2.CalcError;
            if (o2 < 0 || a2 < 0) throw i2.CalcError;
            return s2 = s2 < 0 ? 0 : s2, u2 = u2 < 0 ? 0 : u2, c2 = c2 < 0 ? 0 : c2, f2 = f2 < 0 ? 0 : f2, -1 === [0, 1, 2, 3].indexOf(r2) && (r2 = 0), { url: n3, altText: e3, drawType: r2, height: o2, width: a2, clipY: u2, clipX: s2, clipWidth: f2, clipHeight: c2, vAlign: l2, hAlign: h2 };
          }, t3;
        }, GMt: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2 = t3.width, p2 = t3.height, g2 = t3.x, m2 = t3.y, b2 = n3.width, y2 = n3.height, w2 = { clipX: 0, clipY: 0, clipHeight: y2, clipWidth: b2, paintX: 0, paintY: 0, paintHeight: 0, paintWidth: 0 };
          if ((a2 = v2 / p2) < (u2 = (w2 = this.UMt(w2, n3, e3)).clipWidth / w2.clipHeight)) switch (s2 = i3.vAlign, w2.paintWidth = v2, c2 = v2 / u2, w2.paintHeight = c2, w2.paintX = g2, s2) {
            case r.VerticalAlign.top:
              w2.paintY = m2;
              break;
            case r.VerticalAlign.center:
              f2 = p2 - c2, w2.paintY = m2 + f2 / 2;
              break;
            case r.VerticalAlign.bottom:
              w2.paintY = m2 + p2 - c2;
          }
          else switch (l2 = i3.hAlign, w2.paintHeight = p2, h2 = p2 * u2, w2.paintWidth = h2, w2.paintY = m2, l2) {
            case r.HorizontalAlign.left:
              w2.paintX = g2;
              break;
            case r.HorizontalAlign.center:
              d2 = v2 - h2, w2.paintX = g2 + d2 / 2;
              break;
            case r.HorizontalAlign.right:
              w2.paintX = g2 + v2 - h2;
          }
          return w2;
        }, HMt: function(t3, n3, e3, i3, r2) {
          var o2 = { cutX: 0, cutY: 0, cutHeight: n3.width, cutWidth: n3.height, paintX: t3.x, paintY: t3.y, paintHeight: t3.height, paintWidth: t3.width };
          return this.UMt(o2, n3, e3);
        }, UMt: function(t3, n3, e3) {
          var i3 = n3.width, r2 = n3.height, o2 = e3.clipX || 0, a2 = e3.clipY || 0;
          return v(e3.clipX) || (t3.clipX = x(e3.clipX, i3)), v(e3.clipY) || (t3.clipY = x(e3.clipY, r2)), v(e3.clipWidth) ? t3.clipWidth = i3 - t3.clipX : t3.clipWidth = e3.clipWidth + o2 > i3 ? i3 - o2 : e3.clipWidth, v(e3.clipHeight) ? t3.clipHeight = r2 - t3.clipY : t3.clipHeight = e3.clipHeight + a2 > r2 ? r2 - a2 : e3.clipHeight, t3;
        }, zMt: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = t3.width, w2 = t3.height, M2 = t3.x, C2 = t3.y, S2 = { imgWidth: n3.width, imgHeight: n3.height, offsetX: 0, offsetY: 0 };
          if (a2 = (S2 = this.VMt(S2, n3, e3)).imgWidth, u2 = S2.imgHeight, s2 = S2.offsetX, c2 = S2.offsetY, f2 = a2 * o2, l2 = u2 * o2, h2 = { clipX: 0, clipY: 0, clipHeight: 0, clipWidth: 0, paintX: 0, paintY: 0, paintHeight: 0, paintWidth: 0 }, d2 = i3.hAlign, v2 = i3.vAlign, f2 > y2) {
            switch (h2.paintWidth = y2, h2.paintX = M2, p2 = (f2 - y2) / f2 * a2, d2) {
              case r.HorizontalAlign.left:
                h2.clipX = S2.offsetX;
                break;
              case r.HorizontalAlign.center:
                h2.clipX = S2.offsetX + p2 / 2;
                break;
              case r.HorizontalAlign.right:
                h2.clipX = S2.offsetX + p2;
            }
            h2.clipWidth = y2;
          } else {
            switch (h2.clipWidth = a2, h2.clipX = 0, h2.paintWidth = f2, g2 = y2 - f2, d2) {
              case r.HorizontalAlign.general:
              case r.HorizontalAlign.left:
                h2.paintX = M2;
                break;
              case r.HorizontalAlign.center:
                h2.paintX = M2 + g2 / 2;
                break;
              case r.HorizontalAlign.right:
                h2.paintX = M2 + g2;
            }
            h2.clipX += s2;
          }
          if (l2 > w2) {
            switch (h2.paintY = C2, h2.paintHeight = w2, m2 = (l2 - w2) / l2 * u2, v2) {
              case r.VerticalAlign.top:
                h2.clipY = S2.offsetY;
                break;
              case r.VerticalAlign.center:
                h2.clipY = S2.offsetY + m2 / 2;
                break;
              case r.VerticalAlign.bottom:
                h2.clipY = S2.offsetY + m2;
            }
            h2.clipHeight = w2;
          } else {
            switch (h2.clipHeight = u2, h2.clipY = 0, h2.paintHeight = l2, b2 = w2 - l2, v2) {
              case r.VerticalAlign.top:
                h2.paintY = C2;
                break;
              case r.VerticalAlign.center:
                h2.paintY = C2 + b2 / 2;
                break;
              case r.VerticalAlign.bottom:
                h2.paintY = C2 + b2;
            }
            h2.clipY += c2;
          }
          return h2;
        }, YMt: function(t3, n3, e3, i3, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2, S2, x2, A2, I2 = { clipX: 0, clipY: 0, clipHeight: 0, clipWidth: 0, paintX: 0, paintY: 0, paintHeight: 0, paintWidth: 0 }, k2 = n3.width / n3.height;
          if (v(n3.customWidth) ? n3.customWidth = T(n3.customHeight * k2) : v(n3.customHeight) && (n3.customHeight = T(n3.customWidth / k2)), a2 = n3.customWidth * o2, u2 = n3.customHeight * o2, null === a2 || a2 < 0 || null === u2 || a2 < 0) return I2;
          if (s2 = t3.width, c2 = t3.height, f2 = t3.x, l2 = t3.y, h2 = { imgWidth: n3.width, imgHeight: n3.height, offsetX: 0, offsetY: 0 }, d2 = (h2 = this.VMt(h2, n3, e3)).imgWidth, p2 = h2.imgHeight, g2 = h2.offsetX, m2 = h2.offsetY, b2 = i3.hAlign, y2 = i3.vAlign, a2 > s2) {
            switch (I2.paintWidth = s2, I2.paintX = f2, M2 = (w2 = (a2 - s2) / a2) * d2, b2) {
              case r.HorizontalAlign.left:
                I2.clipX = h2.offsetX;
                break;
              case r.HorizontalAlign.center:
                I2.clipX = h2.offsetX + M2 / 2;
                break;
              case r.HorizontalAlign.right:
                I2.clipX = h2.offsetX + M2;
            }
            I2.clipWidth = h2.imgWidth * (1 - w2);
          } else {
            switch (I2.clipWidth = d2, I2.clipX = 0, I2.paintWidth = a2, C2 = s2 - a2, b2) {
              case r.HorizontalAlign.general:
              case r.HorizontalAlign.left:
                I2.paintX = f2;
                break;
              case r.HorizontalAlign.center:
                I2.paintX = f2 + C2 / 2;
                break;
              case r.HorizontalAlign.right:
                I2.paintX = f2 + C2;
            }
            I2.clipX += g2;
          }
          if (u2 > c2) {
            switch (I2.paintY = l2, I2.paintHeight = c2, x2 = (S2 = (u2 - c2) / u2) * p2, y2) {
              case r.VerticalAlign.top:
                I2.clipY = h2.offsetY;
                break;
              case r.VerticalAlign.center:
                I2.clipY = h2.offsetY + x2 / 2;
                break;
              case r.VerticalAlign.bottom:
                I2.clipY = h2.offsetY + x2;
            }
            I2.clipHeight = h2.imgHeight * (1 - S2);
          } else {
            switch (I2.clipHeight = v(e3.clipHeight) ? p2 : h2.imgHeight, I2.clipY = 0, I2.paintHeight = u2, A2 = c2 - u2, y2) {
              case r.VerticalAlign.top:
                I2.paintY = l2;
                break;
              case r.VerticalAlign.center:
                I2.paintY = l2 + A2 / 2;
                break;
              case r.VerticalAlign.bottom:
                I2.paintY = l2 + A2;
            }
            I2.clipY += m2;
          }
          return I2;
        }, VMt: function(t3, n3, e3) {
          var i3 = n3.width, r2 = n3.height;
          return v(e3.clipX) || (t3.offsetX = x(i3, e3.clipX)), v(e3.clipY) || (t3.offsetY = x(r2, e3.clipY)), v(e3.clipWidth) ? t3.imgWidth = i3 - t3.offsetX : t3.imgWidth = e3.clipWidth + t3.offsetX > i3 ? i3 - t3.offsetX : e3.clipWidth, v(e3.clipHeight) ? t3.imgHeight = r2 - t3.offsetY : t3.imgHeight = e3.clipHeight + t3.offsetY > r2 ? r2 - t3.offsetY : e3.clipHeight, t3;
        }, paint: function(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2, l2;
          if (!v(n3) && !v(n3.url) && p(n3.url) && "" !== n3.url.trim()) {
            u2 = this, c2 = { x: e3, y: i3, width: r2, height: o2 }, f2 = (s2 = a2.sheet).BO();
            try {
              l2 = n3.imageBase64Data || n3.url, f2.getState(l2) ? u2.ZMt(t3, n3, c2, a2) : f2.addImage(l2, t3.nn0 ? "anonymous" : void 0);
            } catch (t4) {
            }
          }
        }, ZMt: function(t3, n3, e3, i3) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2 = this, M2 = n3.imageBase64Data || n3.url, C2 = i3.sheet, S2 = n3.drawType, T2 = C2.MC;
          if (M2 && "string" == typeof M2 && T2.qh(M2)) {
            switch (f2 = { width: (c2 = T2.getImage(M2)).width, height: c2.height }, l2 = { clipY: n3.clipY, clipX: n3.clipX, clipWidth: n3.clipWidth, clipHeight: n3.clipHeight }, d2 = (h2 = C2.getActualStyle(i3.rowIndex, i3.columnIndex)).hAlign, v2 = h2.vAlign, d2 === r.HorizontalAlign.general && (d2 = r.HorizontalAlign.left), p2 = { vAlign: null !== (a2 = null !== (o2 = n3.vAlign) && void 0 !== o2 ? o2 : v2) && void 0 !== a2 ? a2 : r.VerticalAlign.bottom, hAlign: null !== (s2 = null !== (u2 = n3.hAlign) && void 0 !== u2 ? u2 : d2) && void 0 !== s2 ? s2 : r.HorizontalAlign.left }, m2 = i3.zoomFactor, S2) {
              case $.fit:
                g2 = w2.GMt(e3, f2, l2, p2, m2);
                break;
              case $.entireFit:
                g2 = w2.HMt(e3, f2, l2, p2, m2);
                break;
              case $.originFit:
                g2 = w2.zMt(e3, f2, l2, p2, m2);
                break;
              case $.custom:
                f2.customWidth = n3.width, f2.customHeight = n3.height, g2 = w2.YMt(e3, f2, l2, p2, m2);
            }
            g2.img = c2, y[b2 = "IMAGESPARKLINE"](t3, g2, e3.x, e3.y, e3.width, e3.height, i3);
          }
        } }), yt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.LineSparkline = yt, m(yt.prototype, { createFunction: function() {
          return Pt(Z, 0);
        }, paint: Gt }), wt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.ColumnSparkline = wt, m(wt.prototype, { createFunction: function() {
          return Pt(W, 1);
        }, paint: Gt }), Mt = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.WinlossSparkline = Mt, m(Mt.prototype, { createFunction: function() {
          return Pt(Q, 2);
        }, paint: Gt }), Ct = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.RangeBlockSparkline = Ct, m(Ct.prototype, { createFunction: function() {
          var t3 = new h(K, 2, 2);
          return t3.evaluate = function(t4) {
            var n3, e3, o2, a2 = t4[0], u2 = a2.source, s2 = u2 && u2.getSheet(), c2 = t4[1], f2 = 0, l2 = c2.getSource().getSheet(), h2 = c2.getRow(f2), d2 = c2.getColumn(f2), v2 = c2.getRowCount(f2), p2 = c2.getColumnCount(f2);
            if (u2 && u2.getBaseRowCol ? (e3 = u2.getBaseRowCol(), n3 = new r.Range(e3.row, e3.col, 1, 1)) : n3 = new r.Range(a2.row, a2.column, 1, 1), o2 = new r.Range(h2, d2, v2, p2), s2 && s2.name() === l2.name() && o2.containsRange(n3)) throw i2.CalcError;
            return { templateSheetName: l2.name(), templateRange: { row: h2, col: d2, rowCount: v2, colCount: p2 }, bindingObject: t4[2] };
          }, t3.isContextSensitive = function() {
            return true;
          }, t3.acceptsReference = kt, t3.u9t = 1, t3;
        }, paint: function(t3, n3, i3, r2, o2, a2, f2) {
          var l2, h2, d2, v2, p2, g2, m2, b2, y2 = n3.templateSheetName, w2 = n3.templateRange;
          if (y2 && (!(d2 = (h2 = (l2 = f2.sheet).parent) && h2.getSheetFromName(y2)) && h2 && (d2 = (v2 = h2.getSheetTab(y2)) && v2.getSheet && v2.getSheet()), d2)) {
            if (!s) {
              if (!(p2 = e2("CellTypes"))) return;
              s = p2.qY, u = p2.$Y, c = p2.paintRangeTemplate;
            }
            g2 = new s().yN(d2, w2), m2 = new u().yN(d2, w2), b2 = At({}, f2), f2.isPrinting && (b2.printZoomFactor = f2.zoomFactor), c(t3, { x: i3, y: r2, width: o2, height: a2 }, n3.bindingObject, b2, g2, m2.tZ);
          }
        } }), St = (function(t3) {
          function n3() {
            return t3.call(this) || this;
          }
          return xt(n3, t3), n3;
        })(nt), n2.GaugeKPISparkline = St, m(St.prototype, { createFunction: function() {
          var t3 = new h(J, 4, 255);
          return t3.evaluate = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = [], p2 = t4.length, g2 = Ft(t4[0]), m2 = Ft(t4[1]), b2 = Ft(t4[2]), y2 = Ft(t4[3]), M2 = Ft(t4[5]), C2 = Ft(t4[6]), S2 = Ft(t4[7]), T2 = Ft(t4[8]), x2 = Ft(t4[10]), A2 = Ft(t4[11]), k2 = Ft(t4[12]), N2 = t4[4], D2 = t4[13];
            if (!Ut(g2, m2, b2, y2, x2, A2, D2, k2)) return w;
            for (t4[9] instanceof i2.CalcArray && (e3 = (c2 = t4[9].toArray(2))[0], r2 = c2[1], o2 = c2[2], a2 = c2[3]), e3 = e3 || "16px Calibri", r2 = r2 || "bold 22px Calibri", o2 = o2 || j, a2 = a2 || j, M2 = v(M2) ? g2 : M2, C2 = v(C2) ? m2 : C2, S2 = v(S2) ? b2 : S2, T2 = v(T2) ? y2 : T2, f2 = { minAngle: v(x2) ? -90 : x2, maxAngle: v(A2) ? 90 : A2, radiusRatio: v(k2) ? 0 : k2, targetValueOption: Ht(g2, e3, M2), currentValueOption: Ht(m2, r2, C2), minValueOption: Ht(b2, o2, S2), maxValueOption: Ht(y2, a2, T2), gaugeType: v(D2) ? 0 : D2, ranges: void 0, showLabel: !!v(N2) || Boolean(N2) }, l2 = 14; l2 < p2; l2++) if ((h2 = t4[l2]) instanceof i2.CalcArray) {
              if (u2 = (n3 = h2.toArray(0))[0], s2 = n3[1], v(u2) || v(s2) || I(u2) || I(s2) || u2 > s2 || u2 < b2 || u2 > y2 || s2 > y2 || s2 < b2) return w;
              d2.push({ start: u2, end: s2, color: n3[2] });
            }
            return f2.ranges = d2, f2;
          }, t3.acceptsArray = function(t4) {
            return 9 === t4 || t4 >= 14;
          }, t3.acceptsReference = function(t4) {
            return t4 <= 3 && t4 >= 0 || t4 >= 5 && t4 <= 8 || t4 >= 10 && t4 <= 12;
          }, t3.u9t = 1, t3;
        }, paint: function(t3, n3, e3, i3, r2, o2, a2) {
          var u2 = a2.zoomFactor;
          n3.currentValueOption.fontAfterZoom = S(n3.currentValueOption.font, u2).font, n3.targetValueOption.fontAfterZoom = S(n3.targetValueOption.font, u2).font, n3.minValueOption.fontAfterZoom = S(n3.minValueOption.font, u2).font, n3.maxValueOption.fontAfterZoom = S(n3.maxValueOption.font, u2).font, y[J](t3, n3, e3, i3, r2, o2, a2);
        } }), Tt = {}, n2.jMt = Tt, h && (Vt(new et()), Vt(new it()), Vt(new rt()), Vt(new ot()), Vt(new at()), Vt(new ut()), Vt(new st()), Vt(new ct()), Vt(new ft()), Vt(new lt()), Vt(new ht()), Vt(new dt()), Vt(new vt()), Vt(new pt()), Vt(new gt()), Vt(new yt()), Vt(new wt()), Vt(new Mt()), Vt(new Ct()), Vt(new St()), Vt(new mt()), Vt(new bt())), m(r.Workbook.prototype, { addSparklineEx: function(t3) {
          this.WMt || (this.WMt = {});
          var n3 = this.WMt;
          t3 && (n3[t3.name()] = t3, this.$Dr({ type: "addSparklineEx", sparklineEx: t3 }));
        }, getSparklineEx: function(t3) {
          var n3, e3 = Tt[t3];
          return e3 || (n3 = this.WMt) && n3[t3];
        }, removeSparklineEx: function(t3) {
          var n3 = this.WMt;
          (null == n3 ? void 0 : n3[t3]) && (delete n3[t3], this.$Dr({ type: "removeSparklineEx", name: t3 }));
        } }), r.Workbook.ch("sparklineEx", { toJson: function(t3) {
          var n3, e3, i3, r2 = this.WMt, o2 = [];
          if (r2) {
            for (n3 in r2) r2.hasOwnProperty(n3) && (i3 = (e3 = r2[n3]).toJSON()) && i3.typeName && o2.push(i3);
            o2.length > 0 && (t3.sparklineExs = o2);
          }
        }, fromJson: function(t3) {
          var n3, e3, i3, o2, a2 = t3.sparklineExs;
          if (a2) for (n3 = 0; n3 < a2.length; n3++) e3 = a2[n3], (i3 = (0, r.getTypeFromString)(e3.typeName)) && ((o2 = new i3()).fromJSON(e3), this.addSparklineEx(o2));
        }, wh: function(t3, n3, e3) {
          var i3, r2, o2, a2 = this.WMt, u2 = [];
          if (a2) {
            for (i3 in a2) a2.hasOwnProperty(i3) && (o2 = (r2 = a2[i3]).toJSON()) && o2.typeName && u2.push(o2);
            u2.length > 0 && (t3.workbook.lossless.sparklineExs = u2);
          }
        }, yh: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2 = t3.workbook.lossless, c2 = s2 && s2.sparklineExs;
          if (c2) for (i3 = 0; i3 < c2.length; i3++) o2 = c2[i3], (a2 = (0, r.getTypeFromString)(o2.typeName)) && ((u2 = new a2()).fromJSON(o2), this.addSparklineEx(u2));
        } });
      }, "./dist/plugins/sparkline/sparkline-wrapper.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SparklineGroup = n2.Sparkline = n2.DataOrientation = n2.SparklineType = n2.SparklineSetting = n2.SparklineAxisMinMax = n2.EmptyValueStyle = n2.ImageSparkline = n2.HistogramSparkline = n2.SparklineExValue = n2.SparklineEx = n2.GaugeKPISparkline = n2.RangeBlockSparkline = n2.WinlossSparkline = n2.ColumnSparkline = n2.LineSparkline = n2.YearSparkline = n2.MonthSparkline = n2.ParetoSparkline = n2.CascadeSparkline = n2.BoxPlotSparkline = n2.LollipopVariSparkline = n2.VariSparkline = n2.VBarSparkline = n2.HBarSparkline = n2.StackedSparkline = n2.SpreadSparkline = n2.BulletSparkline = n2.ScatterSparkline = n2.AreaSparkline = n2.PieSparkline = n2.jMt = void 0, i2 = e2("./dist/plugins/sparkline/functions-sparkline.js"), Object.defineProperty(n2, "jMt", { enumerable: true, get: function() {
          return i2.jMt;
        } }), Object.defineProperty(n2, "PieSparkline", { enumerable: true, get: function() {
          return i2.PieSparkline;
        } }), Object.defineProperty(n2, "AreaSparkline", { enumerable: true, get: function() {
          return i2.AreaSparkline;
        } }), Object.defineProperty(n2, "ScatterSparkline", { enumerable: true, get: function() {
          return i2.ScatterSparkline;
        } }), Object.defineProperty(n2, "BulletSparkline", { enumerable: true, get: function() {
          return i2.BulletSparkline;
        } }), Object.defineProperty(n2, "SpreadSparkline", { enumerable: true, get: function() {
          return i2.SpreadSparkline;
        } }), Object.defineProperty(n2, "StackedSparkline", { enumerable: true, get: function() {
          return i2.StackedSparkline;
        } }), Object.defineProperty(n2, "HBarSparkline", { enumerable: true, get: function() {
          return i2.HBarSparkline;
        } }), Object.defineProperty(n2, "VBarSparkline", { enumerable: true, get: function() {
          return i2.VBarSparkline;
        } }), Object.defineProperty(n2, "VariSparkline", { enumerable: true, get: function() {
          return i2.VariSparkline;
        } }), Object.defineProperty(n2, "LollipopVariSparkline", { enumerable: true, get: function() {
          return i2.LollipopVariSparkline;
        } }), Object.defineProperty(n2, "BoxPlotSparkline", { enumerable: true, get: function() {
          return i2.BoxPlotSparkline;
        } }), Object.defineProperty(n2, "CascadeSparkline", { enumerable: true, get: function() {
          return i2.CascadeSparkline;
        } }), Object.defineProperty(n2, "ParetoSparkline", { enumerable: true, get: function() {
          return i2.ParetoSparkline;
        } }), Object.defineProperty(n2, "MonthSparkline", { enumerable: true, get: function() {
          return i2.MonthSparkline;
        } }), Object.defineProperty(n2, "YearSparkline", { enumerable: true, get: function() {
          return i2.YearSparkline;
        } }), Object.defineProperty(n2, "LineSparkline", { enumerable: true, get: function() {
          return i2.LineSparkline;
        } }), Object.defineProperty(n2, "ColumnSparkline", { enumerable: true, get: function() {
          return i2.ColumnSparkline;
        } }), Object.defineProperty(n2, "WinlossSparkline", { enumerable: true, get: function() {
          return i2.WinlossSparkline;
        } }), Object.defineProperty(n2, "RangeBlockSparkline", { enumerable: true, get: function() {
          return i2.RangeBlockSparkline;
        } }), Object.defineProperty(n2, "GaugeKPISparkline", { enumerable: true, get: function() {
          return i2.GaugeKPISparkline;
        } }), Object.defineProperty(n2, "SparklineEx", { enumerable: true, get: function() {
          return i2.SparklineEx;
        } }), Object.defineProperty(n2, "SparklineExValue", { enumerable: true, get: function() {
          return i2.SparklineExValue;
        } }), Object.defineProperty(n2, "HistogramSparkline", { enumerable: true, get: function() {
          return i2.HistogramSparkline;
        } }), Object.defineProperty(n2, "ImageSparkline", { enumerable: true, get: function() {
          return i2.ImageSparkline;
        } }), r = e2("./dist/plugins/sparkline/sparkline-wrapper.js"), Object.defineProperty(n2, "EmptyValueStyle", { enumerable: true, get: function() {
          return r.EmptyValueStyle;
        } }), Object.defineProperty(n2, "SparklineAxisMinMax", { enumerable: true, get: function() {
          return r.SparklineAxisMinMax;
        } }), Object.defineProperty(n2, "SparklineSetting", { enumerable: true, get: function() {
          return r.SparklineSetting;
        } }), Object.defineProperty(n2, "SparklineType", { enumerable: true, get: function() {
          return r.SparklineType;
        } }), Object.defineProperty(n2, "DataOrientation", { enumerable: true, get: function() {
          return r.DataOrientation;
        } }), Object.defineProperty(n2, "Sparkline", { enumerable: true, get: function() {
          return r.Sparkline;
        } }), Object.defineProperty(n2, "SparklineGroup", { enumerable: true, get: function() {
          return r.SparklineGroup;
        } });
      }, "./dist/plugins/sparkline/sparkline-wrapper.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X = this && this.nJr || function() {
          return X = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, X.apply(this, arguments);
        };
        function q(t3, n3, e3, i3) {
          var r2 = a.formulaToRanges(t3, n3, e3, i3), o2 = r2[0], u2 = o2 && o2.ranges && o2.ranges[0];
          return u2 ? { range: u2, sheetName: o2.sheetName } : x;
        }
        function $(t3) {
          var n3, e3, i3 = t3.lastIndexOf("!");
          return -1 === i3 ? [t3] : (n3 = t3.substring(0, i3), e3 = t3.substring(i3 + 1), tt(n3) && (n3 = n3.substring(1, n3.length - 1)), [n3, e3]);
        }
        function tt(t3) {
          return t3.length >= 2 && "'" === t3[0] && "'" === t3[t3.length - 1];
        }
        function nt(t3, n3, e3, i3) {
          var r2 = this, o2 = r2.RB;
          o2._K(t3, n3, i3), i3 && (o2.add(i3.group()), r2.$Dr({ type: "addSparklineForGroup", row: t3, col: n3, sparkline: i3 })), r2.Rj("sparkline", t3, n3, 3, e3, i3);
        }
        function et(t3, n3) {
          return t3 + "_" + n3;
        }
        function it(t3, n3, e3) {
          return e3 ? t3 > e3.row + e3.rowCount - 1 ? e3 : t3 > e3.row ? m(e3.row, e3.col, e3.rowCount + n3, e3.colCount) : m(e3.row + n3, e3.col, e3.rowCount, e3.colCount) : x;
        }
        function rt(t3, n3, e3) {
          return e3 ? t3 > e3.col + e3.colCount - 1 ? e3 : t3 > e3.col ? m(e3.row, e3.col, e3.rowCount, e3.colCount + n3) : m(e3.row, e3.col + n3, e3.rowCount, e3.colCount) : x;
        }
        function ot(t3, n3, e3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2 = new i2.Rf(), A2 = null === (a2 = o2.Mf) || void 0 === a2 ? void 0 : a2.parent;
          for (null === (u2 = null == A2 ? void 0 : A2.suspendOp) || void 0 === u2 || u2.call(A2), c2 = 0; c2 < t3.length; c2++) {
            if (l2 = (f2 = t3[c2]).XMt, f2.displayDateAxis) {
              if (b(f2.dateAxisData()) && f2.dateAxisData(f2.qMt), h2 = void 0, (d2 = f2.dateAxisData()) instanceof i2.Range) h2 = ut(n3, e3, r2, d2);
              else if (d2) for (v2 = 0; v2 < d2.length; v2++) h2.push.apply(h2, ut(n3, e3, r2, d2[v2]));
              f2.dateAxisData(h2);
            }
            for (v2 = 0; v2 < l2.length; v2++) p2 = l2[v2], n3 <= (g2 = r2 ? p2.row : p2.column) && (T2.set(c2, v2, p2), o2._K(p2.row, p2.column, x), r2 ? p2.row += e3 : p2.column += e3), b(p2.data()) && p2.data(p2.gI), m2 = void 0, (y2 = p2.data()) instanceof i2.Range ? (m2 = ut(n3, e3, r2, y2), p2.data(m2)) : p2.data(p2.gI);
          }
          for (w2 = 0; w2 < t3.length; w2++) for (C2 = (M2 = t3[w2]).XMt, S2 = 0; S2 < C2.length; S2++) o2.$Mt(T2.get(w2, S2));
          null === (s2 = null == A2 ? void 0 : A2.resumeOp) || void 0 === s2 || s2.call(A2);
        }
        function at(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2;
          for (u2 = 0; u2 < r2.length; u2++) if ((s2 = r2[u2]).displayDateAxis) {
            if (f2 = (c2 = s2.tCt()).Ut, l2 = false, a2 && !f2.G8 && (f2.G8 = [], l2 = true), b(s2.dateAxisData()) && s2.dateAxisData(s2.qMt), h2 = void 0, (d2 = s2.dateAxisData()) instanceof i2.Range) h2 = ut(t3, n3, e3, d2);
            else if (d2) for (v2 = 0; v2 < d2.length; v2++) h2.push.apply(h2, ut(t3, n3, e3, d2[v2]));
            s2.dateAxisData(h2), l2 && (a2.push({ sheetName: c2.name(), changes: f2.G8 }), f2.G8 = A);
          }
          for (v2 = 0; v2 < o2.length; v2++) m2 = (g2 = (p2 = o2[v2]).Tp()).Ut, y2 = false, a2 && !m2.G8 && (m2.G8 = [], y2 = true), b(p2.data()) && p2.data(p2.gI), w2 = void 0, (M2 = p2.data()) instanceof i2.Range ? (w2 = ut(t3, n3, e3, M2), p2.data(w2)) : p2.data(p2.gI), y2 && (a2.push({ sheetName: g2.name(), changes: m2.G8 }), m2.G8 = A);
        }
        function ut(t3, n3, e3, i3) {
          var r2;
          return r2 = e3 ? it(t3, n3, i3) : rt(t3, n3, i3);
        }
        function st(t3, n3, e3) {
          var i3 = ft(e3.col, e3.col + e3.colCount - 1, t3, t3 + n3 - 1);
          return i3 ? m(e3.row, i3.start, e3.rowCount, i3.end - i3.start + 1) : x;
        }
        function ct(t3, n3, e3) {
          var i3 = ft(e3.row, e3.row + e3.rowCount - 1, t3, t3 + n3 - 1);
          return i3 ? m(i3.start, e3.col, i3.end - i3.start + 1, e3.colCount) : x;
        }
        function ft(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2 = -1;
          if (i3 < t3) return { start: f2 = t3 - (a2 = i3 - e3 + 1), end: r2 = n3 - a2 };
          if (e3 > n3) return { start: f2 = t3, end: r2 = n3 };
          if (e3 <= t3) {
            for (u2 = n3 - t3 + 1, s2 = 0, o2 = t3; o2 <= i3 && o2 <= n3; o2++) s2++;
            return { start: f2 = e3, end: r2 = f2 + u2 - s2 - 1 };
          }
          for (c2 = 0, o2 = t3; o2 <= n3; o2++) -1 === f2 && (o2 < e3 || o2 > i3) && (f2 = o2), (o2 < e3 || o2 > i3) && c2++;
          return -1 !== f2 && c2 > 0 ? { start: f2, end: r2 = f2 + c2 - 1 } : x;
        }
        function lt(t3, n3, e3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, C2, S2, T2, A2, k2, N2, j2, D2, _2, O2 = new i2.Rf(), E2 = t3.length, R2 = 0, L2 = null === (a2 = o2.Mf) || void 0 === a2 ? void 0 : a2.parent;
          for (p2 = E2 - 1; p2 > -1; p2--) {
            if ((g2 = t3[p2]).displayDateAxis) {
              if (b(g2.dateAxisData()) && (null === (u2 = null == L2 ? void 0 : L2.suspendOp) || void 0 === u2 || u2.call(L2), g2.dateAxisData(g2.qMt), null === (s2 = null == L2 ? void 0 : L2.resumeOp) || void 0 === s2 || s2.call(L2)), m2 = void 0, (y2 = g2.dateAxisData()) instanceof i2.Range) m2 = ht(n3, e3, r2, y2);
              else if (y2) for (w2 = 0; w2 < y2.length; w2++) m2.push.apply(m2, ht(n3, e3, r2, y2[w2]));
              if (b(m2)) {
                g2.clear(), o2.remove(g2);
                continue;
              }
              null === (c2 = null == L2 ? void 0 : L2.suspendOp) || void 0 === c2 || c2.call(L2), g2.dateAxisData(m2), null === (f2 = null == L2 ? void 0 : L2.resumeOp) || void 0 === f2 || f2.call(L2);
            }
            for (C2 = (C2 = []).concat(g2.XMt), S2 = M(C2), R2 = I(S2, R2), w2 = S2 - 1; w2 > -1; w2--) T2 = C2[w2], (A2 = r2 ? T2.row : T2.column) >= n3 && A2 < n3 + e3 && b(T2.gI) ? (g2.remove(T2), o2._K(T2.row, T2.column, x)) : (null === (l2 = null == L2 ? void 0 : L2.suspendOp) || void 0 === l2 || l2.call(L2), n3 <= A2 && (o2._K(T2.row, T2.column, x), r2 ? T2.row -= e3 : T2.column -= e3, O2.set(p2, w2, T2)), b(T2.data()) && T2.data(T2.gI), k2 = void 0, (N2 = T2.data()) instanceof i2.Range ? k2 = ht(n3, e3, r2, N2) : (T2.data(T2.gI), k2 = T2.data()), null === (h2 = null == L2 ? void 0 : L2.resumeOp) || void 0 === h2 || h2.call(L2), b(k2) ? g2.remove(T2) : (null === (d2 = null == L2 ? void 0 : L2.suspendOp) || void 0 === d2 || d2.call(L2), T2.data(k2), null === (v2 = null == L2 ? void 0 : L2.resumeOp) || void 0 === v2 || v2.call(L2)));
            g2.count() <= 0 && o2.remove(g2);
          }
          for (D2 = 0; D2 < E2; D2++) for (_2 = 0; _2 < R2; _2++) (j2 = O2.get(D2, _2)) && o2.$Mt(j2);
        }
        function ht(t3, n3, e3, i3) {
          var r2;
          return r2 = e3 ? ct(t3, n3, i3) : st(t3, n3, i3);
        }
        function dt(t3, n3, e3, r2, o2, a2) {
          var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2 = r2.length;
          for (u2 = T2 - 1; u2 > -1; u2--) if ((s2 = r2[u2]).displayDateAxis) {
            if (f2 = (c2 = s2.tCt()).Ut, l2 = false, a2 && !f2.G8 && (f2.G8 = [], l2 = true), b(s2.dateAxisData()) && s2.dateAxisData(s2.qMt), h2 = void 0, (d2 = s2.dateAxisData()) instanceof i2.Range) h2 = ht(t3, n3, e3, d2);
            else if (d2) for (v2 = 0; v2 < d2.length; v2++) h2.push.apply(h2, ht(t3, n3, e3, d2[v2]));
            b(h2) ? (s2.clear(), s2.RB.remove(s2)) : s2.dateAxisData(h2), l2 && (a2.push({ sheetName: c2.name(), changes: f2.G8 }), f2.G8 = A);
          }
          for (v2 = (p2 = o2.length) - 1; v2 > -1; v2--) y2 = (m2 = (g2 = o2[v2]).Tp()).Ut, w2 = false, a2 && !y2.G8 && (y2.G8 = [], w2 = true), b(g2.data()) && g2.data(g2.gI), M2 = void 0, (C2 = g2.data()) instanceof i2.Range ? M2 = ht(t3, n3, e3, C2) : (g2.data(g2.gI), M2 = g2.data()), b(M2) ? ((S2 = g2.group()).remove(g2), S2.count() <= 0 && S2.RB.remove(S2)) : g2.data(M2), w2 && (a2.push({ sheetName: m2.name(), changes: y2.G8 }), y2.G8 = A);
        }
        function vt(t3, n3) {
          var e3 = false;
          return "setting" === t3 || "axisReference" === t3 ? e3 = n3 === x : "displayDateAxis" === t3 ? e3 = false === n3 : "axisOrientation" === t3 ? e3 = 1 === n3 : "sparklines" === t3 && (e3 = 0 === n3.length), e3;
        }
        function pt(t3, n3) {
          var e3 = t3.parent, i3 = t3.getCustomName(n3) || e3.getCustomName(n3);
          if (!b(i3)) return a.formulaToRanges(t3, a.expressionToFormula(t3, i3.getExpression()), 0, 0, 1 === e3.options.referenceStyle);
        }
        function gt(t3) {
          var n3 = [], e3 = [];
          return t3.forEach((function(t4) {
            n3 = n3.concat(t4.ranges);
            for (var i3 = 0; i3 < t4.ranges.length; i3++) e3.push(t4.sheetName);
          })), { ranges: n3, sheetName: e3 };
        }
        function mt(t3) {
          var n3 = t3.row, e3 = t3.col, r2 = t3.rowCount, o2 = t3.colCount;
          return new i2.Range(n3, e3, r2, o2);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Sparkline = n2.SparklineGroup = n2.DataOrientation = n2.SparklineType = n2.SparklineSetting = n2.SparklineAxisMinMax = n2.EmptyValueStyle = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("SheetsCalc"), u = i2.mt, s = u.xr, c = u.Hue, f = i2.range_parser.Dc, l = i2.NodeHelper.ar, h = i2.NodeHelper.ur, d = u.d1, v = u.h1, p = i2.range_parser.Oc, g = i2.GC$.isEmptyObject, m = i2.Ec, b = r.Common.lt.ht, y = r.Common.Uf, w = y.VP, M = y.tR, C = y.OS, S = r.Sparklines.oCt, T = r.Sparklines.SparklineRender, x = null, A = void 0, I = Math.max, k = Number.MAX_VALUE, N = i2.UsedRangeUtil.vh, j = u.vo, D = u.n1, _ = u.b0, O = i2.GC$.each, E = i2.GC$.extend, (function(t3) {
          t3[t3.line = 0] = "line", t3[t3.column = 1] = "column", t3[t3.stacked = 2] = "stacked";
        })(R || (R = {})), (function(t3) {
          t3[t3.span = 2] = "span", t3[t3.gap = 0] = "gap", t3[t3.zero = 1] = "zero";
        })(L || (L = {})), (function(t3) {
          t3[t3.individual = 0] = "individual", t3[t3.group = 1] = "group", t3[t3.custom = 2] = "custom";
        })(F || (F = {})), i2.GC$.extend(i2.Y8.prototype, { aCt: function(t3) {
          var n3, e3, i3, r2 = this, o2 = r2.G8, a2 = arguments[1];
          if (o2) {
            switch (o2.originalSparklines || (o2.originalSparklines = []), n3 = { type: t3 }, t3) {
              case 0:
                i3 = void 0, i3 = (e3 = a2) && e3.sparkline ? e3.sparkline : x, n3.changeInfo = { row: e3.row, col: e3.col, sparkline: i3 };
                break;
              case 12:
              case 1:
              case 2:
              case 3:
              case 4:
              case 5:
              case 6:
              case 7:
              case 8:
              case 9:
              case 10:
              case 11:
              case 13:
              case 14:
              case 15:
              case 16:
                n3.changeInfo = a2;
            }
            o2.originalSparklines.push(n3);
          }
        }, uCt: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = t3.changeInfo;
          switch (t3.type) {
            case 12:
              p2.sparkline ? (p2.sparkline.row = p2.row, p2.sparkline.column = p2.col, v2.RB._K(p2.row, p2.col, p2.sparkline)) : v2.RB._K(p2.row, p2.col, x);
              break;
            case 0:
              v2.RB._K(p2.row, p2.col, p2.sparkline), p2.sparkline && !v2.RB.contains(p2.sparkline.group()) && v2.RB.add(p2.sparkline.group());
              break;
            case 1:
              for (e3 = void 0, i3 = void 0, r2 = void 0, o2 = M(p2), a2 = 0; a2 < o2; a2++) e3 = p2[a2].row, i3 = p2[a2].col, r2 = v2.RB.sCt(e3, i3), 0 === a2 && r2.rCt.count() === o2 && v2.RB.remove(r2.rCt), this.RB.add(r2.group(p2[a2].group).rCt);
              break;
            case 2:
              for (u2 = [], s2 = 0; s2 < M(p2); s2++) u2.push(v2.RB.sCt(p2[s2].row, p2[s2].col));
              v2.RB.Mf.groupSparkline(u2);
              break;
            case 3:
              (n3 = v2.RB.sCt(p2.row, p2.col)).sparklineType(p2.sparklineType);
              break;
            case 4:
              (n3 = v2.RB.sCt(p2.row, p2.col)).setting(p2.setting);
              break;
            case 5:
              p2.sparkline.data(p2.data);
              break;
            case 15:
              (n3 = v2.RB.sCt(p2.row, p2.col)).dataSheetName(p2.dataSheetName);
              break;
            case 6:
              (n3 = v2.RB.sCt(p2.row, p2.col)).dataOrientation(p2.dataOrientation);
              break;
            case 7:
              (n3 = v2.RB.sCt(p2.row, p2.col)).displayDateAxis(p2.displayDateAxis);
              break;
            case 8:
              c2 = void 0, c2 = (f2 = p2.rangeInfo) ? m(f2.row, f2.col, f2.rowCount, f2.colCount) : f2, p2.group.dateAxisData(c2);
              break;
            case 16:
              p2.group.dateAxisDataSheetName(p2.dateAxisDataSheetName);
              break;
            case 9:
              p2.group.dateAxisOrientation(p2.dateAxisOrientation);
              break;
            case 10:
              for ((l2 = p2.group.XMt).forEach((function(t4) {
                v2.RB.cCt(t4);
              })), p2.group.XMt = p2.innerList, h2 = p2.group.XMt, d2 = 0; d2 < M(h2); d2++) h2[d2].group(p2.group);
              h2.forEach((function(t4) {
                v2.RB.fCt(t4);
              }));
              break;
            case 11:
              (n3 = v2.RB.sCt(p2.row, p2.col)).group(p2.group);
              break;
            case 13:
              w(v2.RB.groups(), p2), v2.RB.lCt(p2);
              break;
            case 14:
              v2.RB.groups().push(p2), v2.RB.hCt(p2);
          }
        }, dCt: function(t3) {
          var n3, e3 = M(t3);
          for (n3 = e3 - 1; n3 >= 0; n3--) this.uCt(t3[n3]);
        }, vCt: function(t3, n3) {
          this.RB.JO(t3, n3);
        }, mCt: function(t3, n3) {
          this.RB.xP(t3, n3);
        }, gCt: function(t3, n3) {
          this.RB.qO(t3, n3);
        }, pCt: function(t3, n3) {
          this.RB.NP(t3, n3);
        }, bCt: function(t3, n3, e3, i3) {
          this.RB.clear(t3, n3, e3, i3);
        }, yCt: function() {
          var t3 = this.G8;
          return t3 ? (t3.wCt || (t3.wCt = []), t3.wCt) : x;
        } }), i2.Y8.ch("sparkline", { init: function() {
          var t3 = this.Mf;
          this.RB = new G(t3);
        }, undo: function(t3) {
          var n3, e3, i3 = t3.originalSparklines;
          i3 && this.dCt(i3), n3 = this.Mf, (e3 = t3.wCt) && e3.forEach((function(t4) {
            var e4;
            n3.parent.getSheetFromName(t4.sheetName).Ut.undo(t4.changes);
          }));
        } }), B = { init: function() {
          this.RB = this.Ut.RB;
        }, getUsedRange: function(t3) {
          var n3, e3, r2;
          t3.type & i2.UsedRangeType.sparkLine && (r2 = (e3 = (n3 = this).RB).getUsedRange(), N(t3.range, r2));
        }, dispose: function(t3) {
          if (false !== t3.clearCache) {
            var n3 = this;
            n3.RB && (n3.RB.Mf = x, n3.RB.evaluator = x, n3.RB = x), n3.Ut && (n3.Ut.RB = x);
          }
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2;
          (b(t3.sheetArea) || 3 === t3.sheetArea) && (n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = this.Ut, "addRows" === n3 ? a2.vCt(e3, i3) : "deleteRows" === n3 ? a2.mCt(e3, i3) : "addColumns" === n3 ? a2.gCt(r2, o2) : "deleteColumns" === n3 ? a2.pCt(r2, o2) : "clear" === n3 && (u2 = t3.type, 3 !== t3.sheetArea || 16 & ~u2 || a2.bCt(e3, r2, i3, o2)));
        }, onLayoutChangedFromOp: function(t3) {
          var n3, e3, i3, r2, o2, a2;
          (b(t3.sheetArea) || 3 === t3.sheetArea) && (n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = this.Ut, "addRows" === n3 ? a2.vCt(e3, i3) : "deleteRows" === n3 ? a2.mCt(e3, i3) : "addColumns" === n3 ? a2.gCt(r2, o2) : "deleteColumns" === n3 && a2.pCt(r2, o2));
        }, toJson: function(t3, n3) {
          var e3;
          n3 && n3.ignoreStyle || (t3.sparklineGroups = this.RB.toJSON(n3));
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2 = !e3 || false !== e3.includeStyles;
          a2 && (r2 = this.RB.wh(), o2 = s(t3, i2.XFileConstants.Au), r2.c_.length > 0 && o2.c_.push({ n_: "ext", c_: [r2], r_: [0, 1] }));
        }, fromJson: function(t3, n3, e3) {
          var i3 = e3 && e3.ignoreStyle, r2 = this, o2 = r2.RB, a2 = t3.sparklineGroupManager, u2 = n3 ? a2 && a2.groups : t3.sparklineGroups;
          u2 && !i3 && o2.AP(u2, n3);
        }, yh: function(t3, n3, e3) {
          var i3 = e3 && false === e3.includeStyles, r2 = this, o2 = r2.RB, a2 = c(s(t3, "extLst"), "sparklineGroups"), u2 = a2 && a2.c_;
          u2 && !i3 && (o2.MCt(u2, e3), o2.groups().forEach((function(t4) {
            t4.XMt.forEach((function(t5) {
              o2.$Mt(t5);
            }));
          })));
        }, setName: function(t3) {
          var n3 = t3.oldName, e3 = t3.newName;
          this.RB.CCt(n3, e3);
        } }, i2.Worksheet.ch("sparkline", B), P = { getSparkline: function(t3, n3) {
          return this.RB ? this.RB.sCt(t3, n3) : x;
        }, setSparkline: function(t3, n3, e3, i3, r2, o2, u2, s2) {
          var c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, A2, I2 = this, k2 = I2.RB;
          if (!k2) return x;
          if ("string" == typeof e3 && (d2 = q(I2, e3, t3, n3), v2 = I2.getCustomName(e3) || I2.parent.getCustomName(e3), p2 = void 0, b(v2) || (p2 = a.formulaToRanges(I2, a.expressionToFormula(I2, v2.getExpression(), t3, n3, 1 === I2.parent.options.referenceStyle))), p2 ? (h2 = e3, e3 = m2 = (g2 = gt(p2)).ranges, l2 = y2 = g2.sheetName) : d2 && (e3 = d2.range, l2 = d2.sheetName), !d2 && !p2)) return x;
          if (null === (c2 = null == (w2 = I2.parent) ? void 0 : w2.suspendOp) || void 0 === c2 || c2.call(w2), M2 = new J(t3, n3, e3, i3, r2, o2, h2), l2 && l2 !== I2.name() && M2.dataSheetName(l2), u2 && !b(s2)) {
            if (C2 = void 0, "string" == typeof u2 && (S2 = q(I2, u2, t3, n3), v2 = I2.getCustomName(u2) || I2.parent.getCustomName(u2), p2 = void 0, b(v2) || (p2 = a.formulaToRanges(I2, a.expressionToFormula(I2, v2.getExpression(), t3, n3, 1 === I2.parent.options.referenceStyle))), p2 ? (M2.group().qMt = u2, u2 = m2 = (T2 = gt(p2)).ranges, C2 = y2 = T2.sheetName) : S2 && (u2 = S2.range, C2 = S2.sheetName), !S2 && !p2)) return x;
            M2.dateAxisData(u2), C2 && C2 !== I2.name() && M2.dateAxisDataSheetName(C2), M2.dateAxisOrientation(s2), M2.group().displayDateAxis = true;
          }
          return null === (f2 = null == w2 ? void 0 : w2.resumeOp) || void 0 === f2 || f2.call(w2), A2 = I2.getSparkline(t3, n3), I2.removeSparkline(t3, n3), nt.call(I2, t3, n3, A2, M2), I2.zw(), M2;
        }, SCt: function(t3, n3, e3) {
          var i3, r2 = this.getSparkline(t3, n3);
          nt.call(this, t3, n3, r2, e3);
        }, removeSparkline: function(t3, n3) {
          var e3, i3, r2, o2 = this, a2 = o2.RB;
          a2 && (i3 = { row: t3, col: n3, sparkline: e3 = o2.getSparkline(t3, n3) }, o2.Ut.aCt(0, i3), e3 && ((r2 = e3.group()).remove(e3), r2.count() <= 0 && a2.remove(r2), nt.call(o2, t3, n3, e3, x, r2)), o2.zw());
        }, groupSparkline: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.RB;
          if (!v2) return x;
          for (o2 = t3.length > 1, a2 = x, u2 = [], s2 = d2.Ut.G8 !== A, c2 = o2 && d2.THr({ type: "groupSparkline", oldGroups: v2.QMt }), null === (e3 = null === (n3 = d2.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), f2 = 0; f2 < t3.length; f2++) (l2 = t3[f2]) && (s2 && u2.push({ group: l2.group().clone(), row: l2.row, col: l2.column }), a2 ? ((h2 = l2.group()).remove(l2), a2.add(l2), h2.count() <= 0 && v2.remove(h2)) : a2 = l2.group());
          return null === (r2 = null === (i3 = d2.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3), o2 && a2 && d2.$Dr({ type: "groupSparkline", group: a2 }, c2), d2.zw(), d2.Ut.aCt(1, u2), a2;
        }, ungroupSparkline: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.RB;
          if (s2 && t3) {
            for (n3 = [], e3 = [], i3 = u2.Ut.G8 !== A, n3 = n3.concat(t3.XMt), r2 = 0; r2 < n3.length; r2++) (o2 = n3[r2]) && (i3 && e3.push({ row: o2.row, col: o2.column }), t3.remove(o2), a2 = t3.clone(), s2.add(a2), a2.add(o2));
            s2.remove(t3), u2.Ut.aCt(2, e3), u2.zw();
          }
        } }, i2.GC$.extend(i2.Worksheet.prototype, P), G = (function() {
          function t3(t4) {
            this.QMt = [], this.Mf = t4, this.cE = {}, this.KMt = [], this.JMt = [];
          }
          return t3.prototype.getUsedRange = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.cE, c2 = {};
            if (s2) for (n3 = void 0, e3 = void 0, i3 = void 0, r2 = 0, o2 = t4 = Object.keys(s2); r2 < o2.length; r2++) e3 = (n3 = s2[a2 = o2[r2]]).row, i3 = n3.column, N(c2, { minRow: e3, minCol: i3, maxRow: e3, maxCol: i3 });
            return c2;
          }, t3.prototype.AP = function(t4, n3) {
            var e3 = this;
            e3.fromJSON(t4, n3), e3.groups().forEach((function(t5) {
              t5.XMt.forEach((function(t6) {
                e3.$Mt(t6);
              }));
            }));
          }, t3.prototype.MCt = function(t4, n3) {
            var e3 = this, i3 = e3.Mf;
            e3.yh(t4, n3), e3.groups().forEach((function(t5) {
              t5.XMt.forEach((function(t6) {
                e3.$Mt(t6), t6.row >= i3.getRowCount() && i3.setRowCount(t6.row + 1), t6.column >= i3.getColumnCount() && i3.setColumnCount(t6.column + 1);
              }));
            }));
          }, t3.prototype.$Mt = function(t4) {
            t4 && this._K(t4.row, t4.column, t4);
          }, t3.prototype._K = function(t4, n3, e3) {
            if (this.Mf.Ut.G8) {
              var i3 = { row: t4, col: n3, sparkline: this.sCt(t4, n3), newSparkline: e3 };
              this.Mf.Ut.aCt(12, i3);
            }
            e3 ? this.cE[et(t4, n3)] = e3 : delete this.cE[et(t4, n3)];
          }, t3.prototype.sCt = function(t4, n3) {
            return this.cE[et(t4, n3)] || x;
          }, t3.prototype.groups = function(t4) {
            if (0 === arguments.length) return this.QMt;
            this.QMt = t4;
          }, t3.prototype.add = function(t4) {
            var n3 = this, e3 = n3.Mf;
            e3.Ut.aCt(13, t4), n3.groups().push(t4), e3.$Dr({ type: "addSparklineGroup", group: t4 }), t4.RB = n3, t4.TCt(), n3.hCt(t4);
          }, t3.prototype.hCt = function(t4) {
            var n3 = this;
            n3.ACt(t4), t4.all().forEach((function(t5) {
              n3.fCt(t5);
            }));
          }, t3.prototype.remove = function(t4) {
            var n3, e3 = this, i3 = e3.Mf;
            i3.Ut.aCt(14, t4), n3 = i3.THr({ type: "removeSparklineGroup", group: t4 }), w(e3.groups(), t4), i3.$Dr({ type: "removeSparklineGroup", group: t4 }, n3), e3.lCt(t4);
          }, t3.prototype.lCt = function(t4) {
            var n3 = this;
            n3.ICt(t4), t4.all().forEach((function(t5) {
              n3.cCt(t5);
            }));
          }, t3.prototype.contains = function(t4) {
            return C(this.groups(), t4);
          }, t3.prototype.count = function() {
            return this.groups().length;
          }, t3.prototype.JO = function(t4, n3) {
            ot(this.QMt, t4, n3, true, this), at(t4, n3, true, this.JMt, this.KMt, this.Mf.Ut.yCt());
          }, t3.prototype.qO = function(t4, n3) {
            ot(this.QMt, t4, n3, false, this), at(t4, n3, false, this.JMt, this.KMt, this.Mf.Ut.yCt());
          }, t3.prototype.xP = function(t4, n3) {
            lt(this.QMt, t4, n3, true, this), dt(t4, n3, true, this.JMt, this.KMt, this.Mf.Ut.yCt());
          }, t3.prototype.NP = function(t4, n3) {
            lt(this.QMt, t4, n3, false, this), dt(t4, n3, false, this.JMt, this.KMt, this.Mf.Ut.yCt());
          }, t3.prototype.CCt = function(t4, n3) {
            this.JMt.forEach((function(e3) {
              e3.dateAxisDataSheetName() === t4 && e3.dateAxisDataSheetName(n3);
            })), this.KMt.forEach((function(e3) {
              e3.dataSheetName() === t4 && e3.dataSheetName(n3);
            }));
          }, t3.prototype.fCt = function(t4) {
            var n3, e3, i3 = this.Mf, r2 = t4.dataSheetName();
            r2 && r2 !== i3.name() && (n3 = i3.parent && i3.parent.getSheetFromName(r2)) && (e3 = n3.RB.KMt).indexOf(t4) < 0 && e3.push(t4);
          }, t3.prototype.cCt = function(t4) {
            var n3, e3, i3, r2 = t4.dataSheetName();
            r2 && (n3 = this.Mf.parent.getSheetFromName(r2)) && (i3 = (e3 = n3.RB.KMt).indexOf(t4)) >= 0 && e3.splice(i3, 1);
          }, t3.prototype.ACt = function(t4) {
            var n3, e3, i3 = this.Mf, r2 = t4.dateAxisDataSheetName();
            r2 && r2 !== i3.name() && (n3 = i3.parent.getSheetFromName(r2)) && (e3 = n3.RB.JMt).indexOf(t4) < 0 && e3.push(t4);
          }, t3.prototype.ICt = function(t4) {
            var n3, e3, i3, r2 = t4.dateAxisDataSheetName();
            r2 && (n3 = this.Mf.parent.getSheetFromName(r2)) && (i3 = (e3 = n3.RB.JMt).indexOf(t4)) >= 0 && e3.splice(i3, 1);
          }, t3.prototype.clear = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this;
            if (0 === arguments.length) {
              for (r2 = d2.QMt, o2 = M(r2) - 1; o2 > -1; o2--) if (a2 = r2[o2]) {
                for (u2 = a2.count() - 1; u2 > -1; u2--) s2 = a2.XMt[u2], d2._K(s2.row, s2.column, x), a2.remove(s2);
                d2.remove(a2);
              }
            } else for (c2 = t4; c2 < t4 + e3; c2++) for (f2 = n3; f2 < n3 + i3; f2++) (l2 = d2.Hq(c2, f2)) && (d2._K(l2.row, l2.column, x), (h2 = l2.group()).remove(l2), 0 === h2.count() && d2.remove(h2));
          }, t3.prototype.Hq = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this.QMt;
            for (e3 = 0; e3 < a2.length; e3++) for (i3 = a2[e3], r2 = 0; r2 < i3.count(); r2++) if ((o2 = i3.XMt[r2]) && o2.row === t4 && o2.column === n3) return o2;
            return x;
          }, t3.prototype.lEr = function(t4) {
            var n3, e3, i3, r2, o2 = this.QMt;
            for (n3 = 0; n3 < o2.length; n3++) for (e3 = o2[n3], i3 = 0; i3 < e3.count(); i3++) if ((r2 = e3.XMt[i3]) && r2.jKe() === t4) return r2;
            return x;
          }, t3.prototype.hEr = function(t4) {
            var n3, e3, i3 = this.QMt;
            for (n3 = 0; n3 < i3.length; n3++) if ((e3 = i3[n3]) && e3.jKe() === t4) return e3;
            return x;
          }, t3.prototype.tE = function(t4, n3, e3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2 = this, j2 = N2.Mf;
            if (j2) {
              for (c2 = new i2.Rf(), f2 = e3 - t4, l2 = r2 - n3, v2 = j2.getRowCount(), p2 = j2.getColumnCount(), y2 = o2, w2 = a2, M2 = j2.RB, C2 = !s2 && j2.o5(), h2 = 0, g2 = 0; h2 < o2 && e3 + h2 < v2; h2++) if (C2 && 0 === j2.getRowHeight(e3 + h2)) o2++;
              else if (u2 && j2.XT && j2.XT(e3 + h2)) g2++;
              else {
                for (d2 = 0, m2 = 0, a2 = w2; d2 < a2 && r2 + d2 < p2; d2++) C2 && 0 === j2.getColumnWidth(r2 + d2) ? a2++ : ((S2 = j2.getSparkline(t4 + g2, n3 + m2)) && ((T2 = S2.clone()).row = e3 + h2, T2.column = r2 + d2, b(T2.dateAxisData()) && T2.dateAxisData(T2.group().qMt), x2 = T2.dateAxisData(), C2 && (f2 = e3 - t4 + h2 - g2, l2 = r2 - n3 + d2 - m2), !b(x2) && N2.xCt(x2, f2, l2, v2, p2) && b(T2.group().customName) && T2.dateAxisData(x2.offset(l2, f2)), b(T2.data()) && T2.data(T2.gI), A2 = T2.data(), !b(A2) && N2.xCt(A2, f2, l2, v2, p2) && b(T2.gI) && T2.data(A2.offset(l2, f2)), N2.add(T2.group()), c2.set(h2, d2, T2)), m2++);
                g2++;
              }
              for (h2 = 0, o2 = y2; h2 < o2 && e3 + h2 < v2; h2++) if (C2 && 0 === j2.getRowHeight(e3 + h2)) o2++;
              else if (!(u2 && j2.XT && j2.XT(e3 + h2))) for (d2 = 0, a2 = w2; d2 < a2 && r2 + d2 < p2; d2++) C2 && 0 === j2.getColumnWidth(r2 + d2) ? a2++ : (S2 = c2.get(h2, d2), I2 = e3 + h2, k2 = r2 + d2, M2._K(I2, k2, S2), S2 && S2.group() && S2.group().$Dr({ type: "addSparklineForGroup", row: I2, col: k2, sparkline: S2 }));
            }
          }, t3.prototype.xCt = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2 = this.NCt(t4);
            return !!c2 && (o2 = I(c2.row, 0), a2 = I(c2.col, 0), u2 = c2.row < 0 ? i3 : c2.rowCount, s2 = c2.col < 0 ? r2 : c2.colCount, !(o2 + n3 < 0 || a2 + e3 < 0 || o2 + u2 + n3 > i3 || a2 + s2 + e3 > r2));
          }, t3.prototype.iE = function(t4, n3, e3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this.Mf;
            if (w2) {
              for (c2 = w2.o5(), f2 = a2, l2 = o2, this.kCt(t4, n3, e3, r2, o2, a2), h2 = w2.RB, d2 = new i2.Rf(), g2 = w2.getRowCount(), m2 = w2.getColumnCount(), v2 = 0, u2 = 0; v2 < o2 && v2 + e3 < g2; v2++) if (c2 && 0 === w2.getRowHeight(e3 + v2)) o2++;
              else {
                for (p2 = 0, s2 = 0, a2 = f2; p2 < a2 && r2 + p2 < m2; p2++) c2 && 0 === w2.getColumnWidth(r2 + p2) ? a2++ : ((b2 = w2.getSparkline(t4 + u2, n3 + s2)) && (y2 = { row: b2.row, col: b2.column }, b2.row = e3 + v2, b2.column = r2 + p2, d2.set(u2, s2, b2), b2.$Dr("position", { row: b2.row, col: b2.column }, y2)), h2._K(t4 + u2, n3 + s2, x), s2++);
                u2++;
              }
              for (v2 = 0, u2 = 0, o2 = l2; v2 < o2 && v2 + e3 < g2; v2++) if (c2 && 0 === w2.getRowHeight(e3 + v2)) o2++;
              else {
                for (p2 = 0, s2 = 0, a2 = f2; p2 < a2 && r2 + p2 < m2; p2++) c2 && 0 === w2.getColumnWidth(r2 + p2) ? a2++ : (w2.removeSparkline(e3 + v2, r2 + p2), h2._K(e3 + v2, r2 + p2, d2.get(u2, s2)), s2++);
                u2++;
              }
            }
          }, t3.prototype.kCt = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = this;
            if (a2 && (k2 = a2), s2 = (u2 = k2.Mf).o5(), c2 = m(t4, n3, r2, o2), h2 = o2, b2 = u2.getRowCount(), y2 = u2.getColumnCount(), w2 = k2.QMt, s2) for (v2 = 0, g2 = 0; v2 < r2 && v2 + e3 < b2; v2++) if (0 !== u2.getRowHeight(e3 + v2)) {
              for (d2 = 0, p2 = 0, o2 = h2; d2 < o2 && d2 + i3 < y2; d2++) if (0 !== u2.getColumnWidth(i3 + d2)) {
                if (M2 = u2.getSparkline(t4 + g2, n3 + p2)) for (f2 = e3 - t4 + v2 - g2, l2 = i3 - n3 + d2 - p2, S2 = (C2 = M2.rCt).XMt, T2 = 0; T2 < S2.length; T2++) (x2 = S2[T2]) && k2.DCt(x2, f2, l2, c2);
                p2++;
              } else o2++;
              g2++;
            } else r2++;
            else for (f2 = e3 - t4, l2 = i3 - n3, T2 = 0; T2 < w2.length; T2++) for (S2 = (A2 = w2[T2]).XMt, I2 = 0; I2 < S2.length; I2++) (M2 = S2[I2]) && k2.DCt(M2, f2, l2, c2);
          }, t3.prototype.DCt = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this;
            b(t4.dateAxisData()) && t4.dateAxisData(t4.group().qMt), r2 = t4.dateAxisData(), (o2 = s2.NCt(r2)) && i3.containsRange(o2) && i3.contains(t4.row, t4.column) && t4.dateAxisData(r2.offset(e3, n3)), b(t4.data()) && t4.data(t4.gI), a2 = t4.data(), (u2 = s2.NCt(a2)) && i3.containsRange(u2) && i3.contains(t4.row, t4.column) && t4.data(a2.offset(e3, n3));
          }, t3.prototype.NCt = function(t4) {
            return t4;
          }, t3.prototype.LB = function(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, A2 = this, I2 = A2.Mf;
            if (I2) if (t4 !== I2) for (c2 = i3 - n3, f2 = r2 - e3, l2 = I2.RB, h2 = !s2 && I2.o5(), d2 = I2.getRowCount(), v2 = I2.getColumnCount(), p2 = a2, g2 = 0, y2 = 0; g2 < o2 && i3 + g2 < d2; g2++) if (h2 && 0 === I2.getRowHeight(i3 + g2)) o2++;
            else if (u2 && I2.XT && I2.XT(i3 + g2)) y2++;
            else {
              for (m2 = 0, w2 = 0, a2 = p2; m2 < a2 && r2 + m2 < v2; m2++) h2 && 0 === I2.getColumnWidth(r2 + m2) ? a2++ : ((M2 = t4.getSparkline(n3 + y2, e3 + w2)) ? ((C2 = M2.clone()).row = i3 + g2, C2.column = r2 + m2, b(C2.dateAxisData()) && C2.dateAxisData(C2.group().qMt), S2 = C2.dateAxisData(), h2 && (c2 = i3 + g2 - n3 - y2, f2 = r2 - e3 + m2 - w2), !b(S2) && A2.xCt(S2, c2, f2, d2, v2) && C2.dateAxisData(S2.offset(f2, c2)), b(C2.data()) && C2.data(C2.gI), T2 = C2.data(), !b(T2) && A2.xCt(T2, c2, f2, d2, v2) && C2.data(T2.offset(f2, c2)), A2.add(C2.group()), l2._K(i3 + g2, r2 + m2, C2)) : l2._K(i3 + g2, r2 + m2, x), w2++);
              y2++;
            }
            else A2.tE(n3, e3, i3, r2, o2, a2);
          }, t3.prototype.BB = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = w2.Mf;
            if (M2) if (t4 !== M2) for (u2 = M2.o5(), s2 = a2, c2 = t4.RB, f2 = M2.RB, p2 = M2.getRowCount(), g2 = M2.getColumnCount(), w2._Ct(t4, n3, e3, i3, r2, o2, a2), l2 = 0, d2 = 0; l2 < o2 && i3 + l2 < p2; l2++) if (u2 && 0 === M2.getRowHeight(i3 + l2)) o2++;
            else for (h2 = 0, v2 = 0, a2 = s2; h2 < a2 && r2 + h2 < g2; h2++) u2 && 0 === M2.getColumnWidth(r2 + h2) ? a2++ : ((m2 = t4.getSparkline(n3 + 0, e3 + 0)) ? (m2.row = i3 + l2, m2.column = r2 + h2, y2 = (b2 = m2.group()).clone(), b2.remove(m2), b2.count() <= 0 && c2.remove(b2), y2.add(m2), w2.add(y2), f2._K(i3 + l2, r2 + h2, m2)) : f2._K(i3 + l2, r2 + h2, x), c2._K(n3 + 0, e3 + 0, x));
            else w2.iE(n3, e3, i3, r2, o2, a2);
          }, t3.prototype._Ct = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2 = this, s2 = u2.Mf;
            t4 && s2 && u2.kCt(n3, e3, i3, r2, o2, a2, t4.RB);
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3 = this.QMt, i3 = [];
            for (n3 = 0; e3 && n3 < e3.length; n3++) i3.push(e3[n3].toJSON(t4));
            return 0 === i3.length ? A : i3;
          }, t3.prototype.wh = function() {
            var t4, n3, e3, i3 = this.QMt, r2 = { n_: "sparklineGroups", c_: [], r_: [2] };
            for (t4 = 0; i3 && t4 < i3.length; t4++) e3 = (n3 = i3[t4]).wh(), r2.c_.push(e3);
            return r2;
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2;
            for (this.QMt.length = 0, this.cE = {}, e3 = 0; t4 && e3 < t4.length; e3++) i3 = t4[e3], (r2 = new K()).fromJSON(i3, n3), this.add(r2);
          }, t3.prototype.yh = function(t4, n3) {
            var e3, i3, r2;
            for (this.QMt.length = 0, this.cE = {}, e3 = 0; t4 && e3 < t4.length; e3++) i3 = t4[e3], (r2 = new K()).yh(i3, n3), r2.count() > 0 && this.add(r2);
          }, t3;
        })(), (function(t3) {
          t3[t3.gaps = 0] = "gaps", t3[t3.zero = 1] = "zero", t3[t3.connect = 2] = "connect";
        })(U = n2.EmptyValueStyle || (n2.EmptyValueStyle = {})), (function(t3) {
          t3[t3.individual = 0] = "individual", t3[t3.group = 1] = "group", t3[t3.custom = 2] = "custom";
        })(H = n2.SparklineAxisMinMax || (n2.SparklineAxisMinMax = {})), V = r.Common.ft.j(255, 149, 179, 215), z = r.Common.ft.j(255, 36, 64, 98), Y = { axisColor: "black", firstMarkerColor: V, highMarkerColor: "Blue", lastMarkerColor: V, lowMarkerColor: "Blue", markersColor: z, negativeColor: "Brown", seriesColor: z, displayEmptyCellsAs: 0, rightToLeft: false, displayHidden: false, displayXAxis: false, showFirst: false, showHigh: false, showLast: false, showLow: false, showNegative: false, showMarkers: false, manualMax: 0, manualMin: 0, maxAxisType: 0, minAxisType: 0, lineWeight: 1 }, Z = (function() {
          function t3(t4) {
            var n3 = this;
            n3.options = _(Y, (function(t5, e3, i3) {
              n3.$Dr(t5, e3, i3);
            }), x), n3.Zp(t4), n3.eJ = x, n3.L_r = new i2.EventNotifier();
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.L_r && (t4.L_r.destroy(), t4.L_r = x), t4.eJ = x;
          }, t3.prototype.$Dr = function(t4, n3, e3) {
            var i3, r2 = this.L_r;
            null == r2 || r2.notify({ propName: t4, value: n3, oldValue: e3 });
          }, t3.prototype.F_r = function(t4) {
            var n3, e3 = this;
            0 === e3.L_r.count() && (null === (n3 = e3.L_r) || void 0 === n3 || n3.addListener(t4));
          }, t3.prototype.dEr = function(t4) {
            var n3, e3 = this;
            null === (n3 = e3.L_r) || void 0 === n3 || n3.removeListener(t4);
          }, t3.prototype.Zp = function(t4) {
            var n3 = this.options, e3 = t4 || {};
            e3 = E(true, {}, Y, e3), O(e3, (function(t5, e4) {
              n3.hasOwnProperty(t5) && (n3[t5] = e4);
            }));
          }, t3.prototype.clone = function() {
            return new t3(this.options);
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3 = this, i3 = e3.options, r2 = {};
            for (n3 in i3) "_ps" !== n3 && Y[n3] !== i3[n3] && ((null == t4 ? void 0 : t4.isServer) ? Y.hasOwnProperty(n3) && (r2[n3] = i3[n3]) : r2[n3] = i3[n3]);
            return g(r2) ? A : r2;
          }, t3;
        })(), n2.SparklineSetting = Z, (function(t3) {
          t3[t3.line = 0] = "line", t3[t3.column = 1] = "column", t3[t3.winloss = 2] = "winloss";
        })(W = n2.SparklineType || (n2.SparklineType = {})), (function(t3) {
          t3[t3.vertical = 0] = "vertical", t3[t3.horizontal = 1] = "horizontal";
        })(Q = n2.DataOrientation || (n2.DataOrientation = {})), K = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.assignId(), e3.displayDateAxis = false, e3.RB = x, e3.XMt = [], e3.nCt = x, e3.eCt = 1, e3.qMt = x, e3.setting = n3, n3 && n3.F_r(e3.fEr.bind(e3)), e3.sparklineType = t4;
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.setting && (t4.setting.dEr(t4.fEr.bind(t4)), t4.setting.L0(), t4.setting = x), t4.XMt = x, t4.RB = x;
          }, t3.prototype.THr = function(t4) {
            var n3 = this.tCt();
            if (n3) return n3.THr(X({ sparklineGroupId: this.jKe() }, t4));
          }, t3.prototype.$Dr = function(t4, n3) {
            var e3 = this.tCt();
            e3 && e3.$Dr(X({ sparklineGroupId: this.jKe() }, t4), n3);
          }, t3.prototype.fEr = function(t4) {
            this.vEr(X(X({}, t4), { propName: "setting", secondPropName: t4.propName }));
          }, t3.prototype.vEr = function(t4) {
            this.$Dr(X({ type: "updateSparklineGroup" }, t4));
          }, t3.prototype.gEr = function(t4) {
            var n3, e3 = this, i3 = e3.XMt;
            for (n3 = 0; n3 < i3.length; n3++) if (i3[n3].jKe() === t4) return i3[n3];
            return x;
          }, t3.prototype.tCt = function() {
            var t4 = this, n3;
            return t4.RB && (n3 = t4.RB.Mf), n3;
          }, t3.prototype.ECt = function() {
            var t4, n3 = this, e3 = n3.tCt();
            e3 && e3.Ut.G8 && (t4 = { group: n3, innerList: n3.XMt.concat() }, e3.Ut.aCt(10, t4));
          }, t3.prototype.add = function(t4) {
            var n3, e3 = this;
            t4 && (e3.ECt(), e3.XMt.push(t4), t4.group(e3), e3.$Dr({ type: "addSparklineForGroup", row: t4.row, col: t4.column, sparkline: t4 }), e3.TCt(), (n3 = e3.RB) && n3.fCt(t4), e3.onGroupChanged());
          }, t3.prototype.clear = function() {
            var t4, n3;
            this.ECt(), t4 = this.THr({ type: "clearSparklineForGroup", sparklineGroup: this }), (n3 = this.RB) && this.XMt.forEach((function(t5) {
              n3.cCt(t5), n3._K(t5.row, t5.column, x);
            })), this.XMt = [], this.$Dr({ type: "clearSparklineForGroup", sparklineGroupId: this.jKe() }, t4);
          }, t3.prototype.all = function() {
            return this.XMt;
          }, t3.prototype.remove = function(t4) {
            var n3, e3, i3 = this, r2 = i3.XMt;
            return i3.ECt(), n3 = t4 && i3.THr({ type: "removeSparklineForGroup", sparkline: t4 }), w(r2, t4), t4 && i3.$Dr({ type: "removeSparklineForGroup", sparklineGroupId: i3.jKe(), sparklineId: t4.jKe() }, n3), t4.onSparklineChanged(), t4.rCt = i3.clone(), i3.TCt(), (e3 = i3.RB) && e3.cCt(t4), i3.onGroupChanged(), r2;
          }, t3.prototype.contains = function(t4) {
            return C(this.XMt, t4);
          }, t3.prototype.onGroupChanged = function() {
            var t4, n3, e3 = this.XMt;
            if (e3) for (t4 = 0; t4 < e3.length; t4++) (n3 = e3[t4]) && n3.onSparklineChanged();
          }, t3.prototype.clone = function() {
            var n3 = this, e3 = n3.setting ? n3.setting.clone() : x, i3 = new t3(n3.sparklineType, e3);
            return i3.displayDateAxis = n3.displayDateAxis, i3.qMt = n3.qMt, i3.nCt = n3.nCt, i3.jCt = n3.jCt, i3.eCt = n3.eCt, i3;
          }, t3.prototype.dateAxisData = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this;
            if (b(g2.qMt) || g2.OCt(), 0 === arguments.length) return g2.nCt;
            if (i3 = "string" == typeof t4, r2 = true, (e3 = g2.tCt()) && e3.Ut.G8) {
              if (i3) {
                if (o2 = e3.getCustomName(t4) || e3.parent.getCustomName(t4), b(o2)) return g2.nCt;
                u2 = null !== (n3 = g2.qMt) && void 0 !== n3 ? n3 : g2.nCt, s2 = a.formulaToRanges(e3, a.expressionToFormula(e3, o2.getExpression()), 0, 0, 1 === g2.tCt().parent.options.referenceStyle), g2.qMt = t4, g2.vEr({ propName: "dateAxisData", value: t4, oldValue: u2 }), r2 = false, f2 = (c2 = gt(s2)).ranges, l2 = c2.sheetName, t4 = f2, g2.jCt = l2;
              }
              h2 = void 0, d2 = void 0, v2 = { group: g2, rangeInfo: h2 = g2.nCt ? { row: g2.nCt.row, col: g2.nCt.col, rowCount: g2.nCt.rowCount, colCount: g2.nCt.colCount } : x, newRangeInfo: d2 = t4 ? { row: t4.row, col: t4.col, rowCount: t4.rowCount, colCount: t4.colCount } : x }, e3.Ut.aCt(8, v2);
            }
            p2 = g2.nCt, g2.nCt = t4, p2 !== t4 && (r2 && g2.vEr({ propName: "dateAxisData", value: t4, oldValue: p2 }), g2.onGroupChanged());
          }, t3.prototype.OCt = function() {
            var t4, n3, e3, i3, r2 = this;
            b(r2.tCt()) || (t4 = pt(r2.tCt(), r2.qMt), b(t4) || (e3 = (n3 = gt(t4)).ranges, i3 = n3.sheetName, r2.nCt = e3, r2.jCt = i3));
          }, t3.prototype.dateAxisDataSheetName = function(t4) {
            var n3, e3, i3, r2 = this;
            return 0 === arguments.length ? r2.jCt : (n3 = r2.jCt, (e3 = r2.tCt()) && e3.Ut.G8 && (i3 = { group: r2, dateAxisDataSheetName: n3, newDateAxisDataSheetName: t4 }, e3.Ut.aCt(16, i3)), n3 !== t4 && (n3 && e3 && e3.RB.ICt(r2), r2.jCt = t4, !r2.qMt && r2.vEr({ propName: "dateAxisDataSheetName", value: t4, oldValue: n3 }), t4 && e3 && e3.RB.ACt(r2), r2.onGroupChanged()), r2);
          }, t3.prototype.dateAxisOrientation = function(t4) {
            var n3, e3, i3, r2 = this;
            if (0 === arguments.length) return r2.eCt;
            (n3 = r2.tCt()) && n3.Ut.G8 && (e3 = { group: r2, dateAxisOrientation: r2.eCt, newDateAxisOrientation: t4 }, n3.Ut.aCt(9, e3)), i3 = r2.eCt, r2.eCt = t4, i3 !== t4 && (r2.vEr({ propName: "dateAxisOrientation", value: t4, oldValue: i3 }), r2.onGroupChanged());
          }, t3.prototype.count = function() {
            return this.XMt.length;
          }, t3.prototype.TCt = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.setting, f2 = s2.XMt;
            if (c2 && ((t4 = c2.options).groupMaxValue = -k, t4.groupMinValue = k, n3 = 1 === t4.maxAxisType, e3 = 1 === t4.minAxisType, n3 || e3)) for (i3 = 0; i3 < f2.length; i3++) r2 = f2[i3], a2 = (o2 = s2.RCt(r2)).min, u2 = o2.max, n3 && t4.groupMaxValue < u2 && (t4.groupMaxValue = u2), e3 && t4.groupMinValue > a2 && (t4.groupMinValue = a2);
          }, t3.prototype.RCt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = -k, c2 = k;
            if (b(t4.data()) && t4.data(t4.gI), n3 = t4.data()) for (i3 = (e3 = t4.Tp()) && e3.parent.getSheetFromName(t4.dataSheetName()), r2 = t4.BCt(n3, t4.dataOrientation(), false, i3 || e3), o2 = 0; o2 < r2.length; o2++) (a2 = r2[o2]) === S && (a2 = 0), "number" == typeof a2 && (s2 = s2 < (u2 = a2) ? u2 : s2, c2 = c2 > u2 ? u2 : c2);
            return { min: c2, max: s2 };
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3, r2 = this, o2 = { setting: r2.setting ? r2.setting.toJSON(t4) : x, displayDateAxis: r2.displayDateAxis, sparklineType: r2.sparklineType, axisOrientation: r2.eCt, sparklines: r2.XMt.map((function(n4) {
              return n4.toJSON(t4);
            })) }, a2 = r2.nCt, u2 = r2.qMt;
            for (e3 in u2 ? o2.axisReference = u2 : a2 && (o2.axisReference = { row: a2.row, col: a2.col, rowCount: a2.rowCount, colCount: a2.colCount, sheetName: r2.jCt }), n3 = {}, o2) o2.hasOwnProperty(e3) && (vt(e3, i3 = o2[e3]) || (n3[e3] = i3));
            return g(n3) ? A : ((null == t4 ? void 0 : t4.isServer) && (n3.__ID__ = r2.jKe()), n3);
          }, t3.prototype.wh = function() {
            var t4, n3, e3, r2 = { n_: "sparklineGroup" }, o2 = this, a2 = o2.tCt();
            return b(o2.sparklineType) || (r2.type = R[o2.sparklineType]), o2.displayDateAxis && (r2.dateAxis = "1"), t4 = o2.setting.options, !b(t4.lineWeight) && 3 * t4.lineWeight.toString() / 4 - 0.75 > 1e-3 && (r2.lineWeight = 3 * t4.lineWeight.toString() / 4), t4.displayEmptyCellsAs ? r2.displayEmptyCellsAs = L[t4.displayEmptyCellsAs] : r2.displayEmptyCellsAs = L[0], t4.showMarkers && (r2.markers = "1"), t4.showHigh && (r2.high = "1"), t4.showLow && (r2.low = "1"), t4.showFirst && (r2.first = "1"), t4.showLast && (r2.last = "1"), t4.showNegative && (r2.negative = "1"), t4.displayXAxis && (r2.displayXAxis = "1"), t4.displayHidden && (r2.displayHidden = "1"), t4.rightToLeft && (r2.rightToLeft = "1"), t4.minAxisType && (r2.minAxisType = F[t4.minAxisType]), t4.maxAxisType && (r2.maxAxisType = F[t4.maxAxisType]), t4.manualMin && (r2.manualMin = t4.manualMin), t4.manualMax && (r2.manualMax = t4.manualMax), r2.c_ = [v(t4.seriesColor || "rgba(36,64,98,1.0)", false, "colorSeries"), v(t4.negativeColor || "brown", false, "colorNegative"), v(t4.axisColor || "black", false, "colorAxis"), v(t4.markersColor || "rgba(36,64,98,1.0)", false, "colorMarkers"), v(t4.firstMarkerColor || "rgba(149,179,215,1.0)", false, "colorFirst"), v(t4.lastMarkerColor || "rgba(149,179,215,1.0)", false, "colorLast"), v(t4.highMarkerColor || "blue", false, "colorHigh"), v(t4.lowMarkerColor || "blue", false, "colorLow")], (n3 = o2.nCt) && r2.c_.push({ n_: "f", c_: [(o2.jCt ? (0, i2.qTe)(o2.jCt) : a2.name()) + "!" + p([m(n3.row, n3.col, n3.rowCount, n3.colCount)])] }), e3 = { n_: "sparklines", c_: o2.XMt.map((function(t5) {
              return t5.wh();
            })) }, r2.c_.push(e3), r2;
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2;
            if (t4 && (e3 = this, i3 = t4.displayDateAxis, r2 = t4.sparklineType, o2 = t4.axisReference, a2 = t4.axisOrientation, u2 = t4.sparklines, t4.__ID__ && e3.UKn(t4.__ID__), e3.setting = new Z(t4.setting), e3.setting && e3.setting.F_r(e3.fEr.bind(e3)), b(i3) || (e3.displayDateAxis = i3), b(r2) || (e3.sparklineType = r2), b(o2) || ("string" == typeof o2 ? e3.qMt = o2 : (e3.nCt = m(o2.row, o2.col, o2.rowCount, o2.colCount), e3.jCt = o2.sheetName)), b(a2) || (e3.eCt = a2), u2)) for (e3.XMt = [], s2 = 0, c2 = u2.length; s2 < c2; s2++) (f2 = new J()).fromJSON(u2[s2]), e3.add(f2);
          }, t3.prototype.yh = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, c2, l2, h2 = this, d2 = h2.LCt(t4);
            h2.setting = new Z(d2), h2.setting && h2.setting.F_r(h2.fEr.bind(h2)), e3 = "1" === t4.dateAxis, i3 = R[t4.type] || 0, b(e3) || (h2.displayDateAxis = e3), b(i3) || (h2.sparklineType = i3), (r2 = s(t4, "f")) && (a2 = (o2 = r2.c_ && r2.c_[0]) && $(o2)) && (u2 = f(a2[1])[0] || x, b(u2) || (h2.nCt = m(u2.row, u2.col, u2.rowCount, u2.colCount), c2 = 1 === u2.rowCount ? 1 : 0, b(c2) || (h2.eCt = c2))), (l2 = s(t4, "sparklines")) && (h2.XMt = [], l2.c_.forEach((function(t5) {
              var e4 = new J(), i4 = e4.yh(t5, n3);
              false !== i4 && h2.add(e4);
            })));
          }, t3.prototype.LCt = function(t4) {
            var n3 = {};
            return b(t4.manualMax) || (n3.manualMax = l(t4.manualMax, 0)), b(t4.manualMin) || (n3.manualMin = l(t4.manualMin, 0)), b(t4.lineWeight) || (n3.lineWeight = 4 * l(t4.lineWeight, 1) / 3), b(t4.displayEmptyCellsAs) || (n3.displayEmptyCellsAs = L[t4.displayEmptyCellsAs] || 0), b(t4.markers) || (n3.showMarkers = h(t4.markers, false)), b(t4.high) || (n3.showHigh = h(t4.high, false)), b(t4.low) || (n3.showLow = h(t4.low, false)), b(t4.first) || (n3.showFirst = h(t4.first, false)), b(t4.last) || (n3.showLast = h(t4.last, false)), b(t4.negative) || (n3.showNegative = h(t4.negative, false)), b(t4.displayXAxis) || (n3.displayXAxis = h(t4.displayXAxis, false)), b(t4.displayHidden) || (n3.displayHidden = h(t4.displayHidden, false)), b(t4.rightToLeft) || (n3.rightToLeft = h(t4.rightToLeft, false)), b(t4.minAxisType) || (n3.minAxisType = F[t4.minAxisType] || 0), b(t4.maxAxisType) || (n3.maxAxisType = F[t4.maxAxisType] || 0), t4.c_.forEach((function(t5) {
              "colorSeries" === t5.n_ && (n3.seriesColor = d(t5) || "rgba(36,64,98,255)"), "colorNegative" === t5.n_ && (n3.negativeColor = d(t5) || "Brown"), "colorAxis" === t5.n_ && (n3.axisColor = d(t5) || "Black"), "colorMarkers" === t5.n_ && (n3.markersColor = d(t5) || "rgba(36,64,98,255)"), "colorFirst" === t5.n_ && (n3.firstMarkerColor = d(t5) || "rgba(149,179,215,255)"), "colorLast" === t5.n_ && (n3.lastMarkerColor = d(t5) || "rgba(149,179,215,255)"), "colorHigh" === t5.n_ && (n3.highMarkerColor = d(t5) || "Blue"), "colorLow" === t5.n_ && (n3.lowMarkerColor = d(t5) || "Blue");
            })), n3;
          }, t3;
        })(), n2.SparklineGroup = K, (0, i2.qDr)(K), J = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2) {
            var u2 = this;
            u2.assignId(), u2.row = t4, u2.column = n3, u2.iCt = i3, u2._data = e3, u2.rCt = new K(r2, o2), u2.rCt.add(u2), u2.gI = a2;
          }
          return t3.prototype.$Dr = function(t4, n3, e3) {
            var i3 = this.Tp();
            i3 && i3.$Dr({ type: "updateSparkline", sparklineGroupId: this.rCt.jKe(), sparklineId: this.jKe(), propName: t4, value: n3, oldValue: e3 });
          }, t3.prototype.group = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            return 0 === arguments.length ? ((n3 = o2.rCt) || ((n3 = new K()).add(o2), o2.rCt = n3), n3) : (e3 = o2.rCt, (i3 = o2.Tp()) && i3.Ut.G8 && (r2 = { row: o2.row, col: o2.column, group: e3, newGroup: t4 }, i3.Ut.aCt(11, r2)), t4 !== e3 && (e3 && e3.remove(o2), o2.rCt = t4, t4 && !t4.contains(o2) && t4.add(o2), o2.onSparklineChanged(), i3 && i3.zw()), o2);
          }, t3.prototype.sparklineType = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            return 0 === arguments.length ? o2.group().sparklineType : ((e3 = (n3 = o2.group()).sparklineType) !== t4 && (n3.sparklineType = t4, n3.vEr({ propName: "sparklineType", value: t4, oldValue: e3 }), (i3 = o2.Tp()) && i3.Ut.G8 && (r2 = { row: o2.row, col: o2.column, sparklineType: e3, newSparklineType: t4 }, i3.Ut.aCt(3, r2)), o2.onSparklineChanged(), i3 && i3.zw()), o2);
          }, t3.prototype.onSparklineChanged = function() {
            var t4 = this, n3 = t4.Tp();
            n3 && n3.ki(i2.Events.SparklineChanged, { sheet: n3, sheetName: n3.name(), sparkline: t4 });
          }, t3.prototype.setting = function(t4) {
            var n3, e3, r2, o2, a2 = this, u2 = a2.group(), s2 = a2.Tp(), c2 = s2 && s2.Ut.G8;
            if (0 === arguments.length) return n3 = void 0, n3 = c2 ? i2.GC$.extend(true, {}, u2.setting) : u2.setting;
            if (c2 && (e3 = { row: a2.row, col: a2.column, setting: i2.GC$.extend(true, {}, u2.setting), newSetting: i2.GC$.extend(true, {}, t4) }, s2.Ut.aCt(4, e3)), u2.setting) {
              if (t4.options) for (r2 in t4.options) "_ps" !== r2 && t4.options.hasOwnProperty(r2) && (o2 = t4.options[r2]) !== u2.setting.options[r2] && (u2.setting.options[r2] = o2);
            } else u2.setting = t4, t4 && u2.setting.F_r(u2.fEr.bind(a2));
            return s2 && s2.zw(), a2;
          }, t3.prototype.data = function(t4) {
            var n3, e3, i3, r2, o2, u2, s2, c2, f2, l2, h2 = this;
            if (b(h2.gI) || h2.FCt(), e3 = h2.Tp(), 0 === arguments.length) return b(h2.gI) ? h2._data : b(e3) ? [] : (i3 = e3.getCustomName(h2.gI) || e3.parent.getCustomName(h2.gI), b(i3) ? [] : ((r2 = a.formulaToRanges(e3, a.expressionToFormula(e3, i3.getExpression()), h2.row, h2.column, 1 === e3.parent.options.referenceStyle))[0] && h2._data !== r2[0].ranges && (h2._data = r2[0].ranges, h2.onSparklineChanged()), h2._data));
            if (o2 = true, "string" == typeof t4) {
              if (u2 = null !== (n3 = h2.gI) && void 0 !== n3 ? n3 : h2._data, h2.gI = t4, !e3) return h2;
              if (i3 = e3.getCustomName(t4) || e3.parent.getCustomName(t4), r2 = void 0, b(i3)) return h2;
              h2.$Dr("data", t4, u2), o2 = false, c2 = (s2 = gt(r2 = a.formulaToRanges(e3, a.expressionToFormula(e3, i3.getExpression()), h2.row, h2.column, 1 === e3.parent.options.referenceStyle))).ranges, f2 = s2.sheetName, t4 = c2, h2.ZY = f2;
            }
            return e3 && e3.Ut.G8 && (l2 = { row: h2.row, col: h2.column, sparkline: h2, data: mt(h2._data), newData: mt(t4) }, e3.Ut.aCt(5, l2)), h2._data !== t4 && (u2 = h2._data, h2._data = t4, o2 && h2.$Dr("data", t4, u2), h2.onSparklineChanged(), e3 && e3.zw()), h2;
          }, t3.prototype.dataSheetName = function(t4) {
            var n3, e3, i3, r2, o2 = this;
            return 0 === arguments.length ? o2.ZY : (e3 = o2.ZY, (i3 = o2.Tp()) && (null === (n3 = i3.name) || void 0 === n3 ? void 0 : n3.call(i3)) === t4 || (i3 && i3.Ut.G8 && (r2 = { row: o2.row, col: o2.column, dataSheetName: e3, newDataSheetName: t4 }, i3.Ut.aCt(15, r2)), e3 !== t4 && (e3 && i3 && i3.RB.cCt(o2), o2.ZY = t4, !o2.gI && o2.$Dr("dataSheetName", t4, e3), t4 && i3 && i3.RB.fCt(o2), o2.onSparklineChanged())), o2);
          }, t3.prototype.dataOrientation = function(t4) {
            var n3, e3, i3, r2 = this;
            return 0 === arguments.length ? r2.iCt : ((n3 = r2.Tp()) && n3.Ut.G8 && (e3 = { row: r2.row, col: r2.column, dataOrientation: r2.iCt, newDataOrientation: t4 }, n3.Ut.aCt(6, e3)), (i3 = r2.iCt) !== t4 && (r2.iCt = t4, r2.$Dr("dataOrientation", t4, i3), r2.onSparklineChanged(), n3 && n3.zw()), r2);
          }, t3.prototype.dateAxisData = function(t4) {
            var n3 = this, e3 = n3.group();
            return 0 === arguments.length ? (b(e3.dateAxisData()) && e3.dateAxisData(e3.qMt), e3.dateAxisData()) : (e3.dateAxisData(t4), n3);
          }, t3.prototype.dateAxisDataSheetName = function(t4) {
            var n3 = this, e3 = n3.group();
            return 0 === arguments.length ? e3.dateAxisDataSheetName() : (e3.dateAxisDataSheetName(t4), n3);
          }, t3.prototype.dateAxisOrientation = function(t4) {
            var n3 = this, e3 = n3.group();
            return 0 === arguments.length ? e3.dateAxisOrientation() : (e3.dateAxisOrientation(t4), n3);
          }, t3.prototype.displayDateAxis = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.group();
            return 0 === arguments.length ? o2.displayDateAxis : ((n3 = r2.Tp()) && n3.Ut.G8 && (e3 = { row: r2.row, col: r2.column, displayDateAxis: o2.displayDateAxis, newDisplayDateAxis: t4 }, n3.Ut.aCt(7, e3)), i3 = o2.displayDateAxis, o2.displayDateAxis = t4, i3 !== t4 && o2.vEr({ propName: "displayDateAxis", value: t4, oldValue: i3 }), r2);
          }, t3.prototype.clone = function() {
            var n3 = this, e3 = new t3();
            return e3.row = n3.row, e3.column = n3.column, b(n3.gI) ? e3.data(n3.data()) : e3.gI = n3.gI, e3.dataSheetName(n3.dataSheetName()), e3.dataOrientation(n3.dataOrientation()), e3.group(n3.group().clone()), e3;
          }, t3.prototype.paintSparkline = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2 = this, f2 = c2.Tp();
            this.O_r && (f2 = this.O_r), b(c2.data()) && !b(c2.gI) && c2.data(c2.gI), b(c2.dateAxisData()) && c2.dateAxisData(c2.group().qMt), a2 = c2.PCt(true), u2 = c2.PCt(false), s2 = { sparklineType: c2.sparklineType(), displayDateAxis: c2.displayDateAxis(), zoomFactor: f2.zoom(), values: a2, dateValues: u2, settings: c2.setting(), getColor: function(t5) {
              if (f2 && t5) {
                var n4 = i2.Pf.vl(f2, t5);
                if (n4) return n4;
              }
              return t5;
            } }, new T().paint(t4, s2, n3, e3, r2, o2);
          }, t3.prototype.PCt = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = [], u2 = t4 ? o2.dataSheetName() : o2.dateAxisDataSheetName(), s2 = t4 ? o2.WY : o2.KY, c2 = t4 ? o2.dataOrientation() : o2.dateAxisOrientation(), f2 = t4 ? o2.data() : o2.dateAxisData(), l2 = o2.Tp();
            if (this.O_r && (l2 = this.O_r), s2) a2 = s2;
            else if ("string" == typeof u2) n3 = o2.mEr(l2, u2), a2 = o2.BCt(f2, c2, !t4, n3 || l2);
            else if ("object" == typeof u2) for (e3 = u2, i3 = 0; i3 < e3.length; i3++) n3 = o2.mEr(l2, e3[i3]), r2 = o2.BCt(f2[i3], c2, !t4, n3 || l2), a2 = a2.concat(r2);
            else b(u2) && (a2 = o2.BCt(f2, c2, !t4, l2));
            return a2;
          }, t3.prototype.mEr = function(t4, n3) {
            var e3, i3, r2 = /^\[\d+\].+/g;
            return e3 = t4.parent.getSheetFromName(n3), i3 = t4.parent._p, r2.test(n3) && i3 && (e3 = i3.parseSource(n3, true)), e3;
          }, t3.prototype.QY = function(t4) {
            var n3 = this;
            return b(n3.data()) && !b(n3.gI) && n3.data(n3.gI), n3.BCt(n3.data(), n3.dataOrientation(), false, t4);
          }, t3.prototype.JY = function(t4) {
            var n3 = this;
            return b(n3.dateAxisData()) && n3.dateAxisData(n3.group().qMt), n3.BCt(n3.dateAxisData(), n3.dateAxisOrientation(), true, t4);
          }, t3.prototype.BCt = function(n3, e3, i3, r2) {
            var o2, a2 = this.setting().options.displayHidden;
            return t3.EMt(A, r2, a2, n3, e3, i3);
          }, t3.prototype.Tp = function() {
            var t4 = this.group(), n3 = t4 && t4.RB;
            return n3 ? n3.Mf : x;
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, i3 = this;
            return n3 = b(i3.gI) ? { row: i3._data.row, rowCount: i3._data.rowCount, col: i3._data.col, colCount: i3._data.colCount, sheetName: i3.ZY } : i3.gI, e3 = { row: i3.row, col: i3.column, data: n3 }, b(i3.iCt) || (e3.orientation = i3.iCt), (null == t4 ? void 0 : t4.isServer) && (e3.__ID__ = i3.jKe()), e3;
          }, t3.prototype.wh = function() {
            var t4, n3, e3 = this, r2 = e3.Tp(), o2 = e3._data;
            return t4 = b(e3.gI) ? (n3 = (0, i2.qTe)(e3.ZY ? e3.ZY : r2.name())) + "!" + p([m(o2.row, o2.col, o2.rowCount, o2.colCount)]) : e3.gI, { n_: "sparkline", c_: [{ n_: "f", c_: [j(t4)] }, { n_: "sqref", c_: [p([m(e3.row, e3.column, 1, 1)])] }], lossless: { dataOrientation: e3.iCt } };
          }, t3.prototype.fromJSON = function(t4) {
            var n3, e3, i3, r2, o2, a2;
            t4 && (n3 = this, e3 = t4.row, i3 = t4.col, r2 = t4.orientation, o2 = t4.data, t4.__ID__ && n3.UKn(t4.__ID__), b(e3) || (n3.row = e3), b(i3) || (n3.column = i3), b(r2) || (n3.iCt = r2), o2 && ("string" == typeof o2 ? n3.gI = o2 : (a2 = o2, n3._data = m(a2.row, a2.col, a2.rowCount, a2.colCount), n3.ZY = a2.sheetName)));
          }, t3.prototype.yh = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2 = this, l2 = i2.Util.ko(n3) ? void 0 : 1;
            if (t4.c_.forEach((function(t5) {
              "f" === t5.n_ && (1 === (u2 = $(D(t5.c_[0]))).length ? c2.gI = u2[0] : o2 = f(u2[1])[0] || x), "sqref" === t5.n_ && (a2 = f(t5.c_[0])[0] || x);
            })), b(a2) || b(c2.gI) && b(o2)) return false;
            b(a2.row) || (c2.row = a2.row), b(a2.col) || (c2.column = a2.col), o2 && (l2 = 1 === o2.rowCount ? 1 : 0, c2._data = m(o2.row, o2.col, o2.rowCount, o2.colCount), c2.ZY = u2[0]), b(l2) || (c2.iCt = l2), (s2 = t4.lossless) && (c2.iCt = null !== (r2 = null !== (e3 = s2.dataOrientation) && void 0 !== e3 ? e3 : s2.iCt) && void 0 !== r2 ? r2 : s2.iCt);
          }, t3.prototype.FCt = function() {
            var t4, n3, e3, i3, r2 = this;
            b(r2.Tp()) || (t4 = pt(r2.Tp(), r2.gI), b(t4) || (e3 = (n3 = gt(t4)).ranges, i3 = n3.sheetName, r2._data = e3, r2.ZY = i3));
          }, t3.EMt = function(n3, e3, i3, r2, o2, a2) {
            var u2, s2 = [];
            if (b(r2)) return s2;
            if (!(r2 instanceof Array)) return t3.UCt(n3, e3, i3, r2, o2, a2);
            for (u2 = 0; u2 < r2.length; u2++) s2.push.apply(s2, t3.UCt(n3, e3, i3, r2[u2], o2, a2, true));
            return s2;
          }, t3.UCt = function(n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2;
            if ((null == n3 ? void 0 : n3.length) > 0 && !Array.isArray(n3[0])) return n3;
            if (s2 = [], c2 = 1 === o2, e3 && r2) for (f2 = 0, l2 = u2 ? c2 ? r2.rowCount : r2.colCount : 1; f2 < l2; f2++) for (h2 = 0, d2 = c2 ? r2.colCount : r2.rowCount; h2 < d2; h2++) v2 = c2 ? f2 : h2, p2 = c2 ? h2 : f2, g2 = n3 ? n3[v2][p2] : e3.getValue(r2.row + v2, r2.col + p2), g2 = t3.HCt(e3, g2, r2, v2, p2, i3, a2), s2.push(g2);
            return s2;
          }, t3.HCt = function(t4, n3, e3, i3, a2, u2, s2) {
            var c2 = "number";
            return n3 instanceof o.CalcError ? A : (!u2 && t4.getRowHeight && (t4.getRowHeight(e3.row + i3) <= 0 || t4.getColumnWidth(e3.col + a2) <= 0) ? n3 = NaN : b(n3) || (s2 ? n3 = typeof n3 === c2 ? r.Common.ct.Y0(n3) : Date.parse(n3) : typeof n3 !== c2 && (n3 = S)), n3);
          }, t3;
        })(), n2.Sparkline = J, (0, i2.qDr)(J);
      }, "./dist/plugins/statusBar/baseStatusBar.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.BaseStatusBar = void 0, i2 = e2("Core"), r = e2("./dist/plugins/statusBar/statusItem.js"), o = i2.GC$, a = "statusItem", u = null, s = "left", c = "right", f = (function() {
          function t3(t4) {
            this.zCt = [], this.VCt = [], this.YCt = [], this.lp = 0, this.Ti = u, this.TW = t4, this.ZCt();
          }
          return t3.prototype.ZCt = function() {
            var t4 = this.Ti, n3 = this.WCt;
            t4 || (t4 = this.Ti = document.createElement("div"), n3 = this.WCt = document.createElement("div")), this.TW.appendChild(t4), this.TW.appendChild(n3);
          }, t3.prototype.QCt = function(t4) {
            t4.name || (t4.name = a + this.lp, this.lp++);
          }, t3.prototype.dU = function(t4, n3) {
            return t4 instanceof r.StatusItem && !this.q_(t4.name) && (this.QCt(t4), n3 >= 0 && n3 < this.zCt.length ? this.zCt.splice(n3, 0, t4) : this.zCt.push(t4), t4.align = t4.align || s, t4.KCt(this.TW), true);
          }, t3.prototype.JCt = function(t4, n3) {
            var e3, i3, r2, o2, a2, s2 = false, f2 = this.zCt, l = n3 >= 0 && n3 < f2.length, h = u, d = u;
            if (l && (d = (h = f2[n3]).XCt()), this.dU(t4, n3)) {
              e3 = t4.align === c;
              try {
                e3 ? (r2 = (i3 = this.YCt).indexOf(h), a2 = (o2 = i3.length) - 1, d && r2 >= 0 && r2 < a2 ? d = i3[r2 + 1].XCt() : d === u ? d = i3[0].XCt() : (d && r2 < 0 || r2 === a2) && (d = u), this.YCt.push(t4)) : this.VCt.push(t4), this.Ti.insertBefore(t4.XCt(), d), this.DJ && t4.onBind(this.DJ), s2 = true;
              } catch (n4) {
                e3 ? this.YCt.splice(this.YCt.indexOf(t4), 1) : this.VCt.splice(this.VCt.indexOf(t4), 1), this.zCt.splice(this.zCt.indexOf(t4), 1);
              }
            }
            return s2;
          }, t3.prototype.qCt = function(t4) {
            var n3 = this.zCt, e3 = false, i3, r2;
            for (i3 = 0; i3 < n3.length; i3++) if (t4 === (r2 = n3[i3]).name) {
              e3 = true;
              break;
            }
            return !!e3 && (r2.onUnbind(), r2.align === c ? this.YCt.splice(this.YCt.indexOf(r2), 1) : this.VCt.splice(this.VCt.indexOf(r2), 1), this.zCt.splice(i3, 1), this.Ti.removeChild(r2.XCt()), true);
          }, t3.prototype.q_ = function(t4) {
            var n3 = this.zCt, e3, i3;
            for (e3 = 0; e3 < n3.length; e3++) if (t4 === (i3 = n3[e3]).name) return i3;
            return u;
          }, t3.prototype.$Ct = function(t4) {
            this.DJ = t4, this.zCt.forEach((function(n3) {
              n3.onBind(t4), n3.onUpdate();
            }));
          }, t3.prototype.Yoe = function() {
            this.zCt.forEach((function(t4) {
              t4.Zoe();
            }));
          }, t3.prototype.c5 = function() {
            this.VCt = [], this.YCt = [], o(this.Ti).empty();
          }, t3.prototype.t3t = function() {
            var t4 = this, n3 = this.Ti, e3 = s, i3;
            this.c5(), this.zCt.forEach((function(r2) {
              e3 = r2.align, (i3 = r2.XCt()).style.float = e3, e3 === c ? t4.YCt.unshift(r2) : (t4.VCt.unshift(r2), n3.appendChild(i3));
            })), this.YCt.forEach((function(t5) {
              n3.appendChild(t5.XCt());
            }));
          }, t3.prototype.n3t = function() {
            this.zCt.forEach((function(t4) {
              t4.onUpdate();
            })), this.t3t();
          }, t3.prototype.e3t = function() {
            var t4 = [];
            return this.zCt.forEach((function(n3) {
              var e3 = n3.i3t();
              e3 && t4.push(e3);
            })), t4;
          }, t3.prototype.r3t = function(t4) {
            var n3 = this.zCt, e3 = t4.name, i3, r2;
            for (i3 = 0; i3 < n3.length; i3++) if ((r2 = n3[i3]).name === e3) {
              r2.r3t(t4);
              break;
            }
          }, t3.prototype.o3t = function() {
            return this.zCt;
          }, t3.prototype.a3t = function() {
            var t4, n3 = this.zCt, e3, i3;
            for (this.DJ = u, e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3]).onUnbind();
          }, t3.prototype.L0 = function() {
            var t4 = this, n3 = t4.zCt, e3, i3;
            if (this.Ti) {
              for (e3 = 0; e3 < n3.length; e3++) i3 = n3[e3], t4.Ti.removeChild(i3.u3t), i3.onDispose();
              this.Ti.parentElement && this.Ti.parentElement.removeChild(this.Ti), this.WCt.parentElement && this.WCt.parentElement.removeChild(this.WCt), this.Ti = u, this.WCt = u;
            }
            this.lp = u, this.zCt = u, this.VCt = u, this.YCt = u;
          }, t3;
        })(), n2.BaseStatusBar = f;
      }, "./dist/plugins/statusBar/statusBar.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), s = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || u(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), n2.findControl = n2.StatusItem = n2.StatusBar = void 0, i2 = e2("Core"), r = e2("./dist/plugins/statusBar/statusBar.js"), Object.defineProperty(n2, "StatusBar", { enumerable: true, get: function() {
          return r.StatusBar;
        } }), o = e2("./dist/plugins/statusBar/statusItem.js"), Object.defineProperty(n2, "StatusItem", { enumerable: true, get: function() {
          return o.StatusItem;
        } }), s(e2("./dist/plugins/statusBar/statusBar.ns.js"), n2), a = function(t3) {
          return "string" == typeof t3 && (t3 = document.getElementById(t3)), (0, i2.GC$)(t3).data("statusbar");
        }, n2.findControl = a;
      }, "./dist/plugins/statusBar/statusBar.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn = this && this.qKr || (nn = function(t3, n3) {
          return nn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, nn(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          nn(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), nn;
        function en(t3, n3) {
          var e3 = r.Common.CultureManager.Fe().NumberFormat.listSeparator;
          return Pt + Rt + t3 + e3 + n3 + Lt;
        }
        function rn(t3, n3) {
          t3.splice(n3, 1);
        }
        function on(t3, n3) {
          var e3, i3 = n3, r2 = n3.length, o2 = [];
          if (r2 > 1) {
            for (o2.push(n3[0]), e3 = 1; e3 < r2; e3++) o2 = an(t3, n3[e3], o2);
            return o2;
          }
          return i3;
        }
        function an(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2 = t3.getRowCount(3), f2 = t3.getColumnCount(3), l2 = [], h2 = [];
          for (l2.push(n3), a2 = e3.length, u2 = 0; u2 < a2; u2++) for (i3 = e3[u2], s2 = 0; s2 < l2.length; ) (o2 = (r2 = l2[s2]).getIntersect(i3, c2, f2)) ? (h2 = t3.BR(r2, o2, c2, f2), rn(l2, s2), l2 = h2.concat(l2), s2 += h2.length) : s2++;
          return l2.concat(e3);
        }
        function un(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = t3.getActiveRowIndex(), d2 = t3.getActiveColumnIndex(), v2 = t3.getValue(h2, d2);
          if ("number" == typeof v2) return { row: h2, col: d2 };
          for (o2 = 0, a2 = n3 = t3.getSelections(); o2 < a2.length; o2++) for (u2 = a2[o2], s2 = 0, c2 = (u2 = t3.JS(u2)).rowCount; s2 < c2; s2++) for (f2 = 0, l2 = u2.colCount; f2 < l2; f2++) if (e3 = u2.row + s2, i3 = u2.col + f2, "number" == typeof (r2 = t3.getValue(e3, i3))) return { row: e3, col: i3 };
          return { row: h2, col: d2 };
        }
        function sn(t3, n3, e3) {
          var i3 = t3.l0(n3, e3, Ft);
          return i3 || (i3 = t3.l0(n3, e3, Bt)), i3;
        }
        function cn(t3, n3, e3) {
          if (t3 && t3.parent && t3.parent.options.allowUserZoom) {
            var r2 = { sheet: t3, sheetName: t3.name(), newZoomFactor: n3, oldZoomFactor: e3, cancel: false };
            if (t3.ki(i2.Events.ViewZooming, r2), r2 && true === r2.cancel) return;
            (n3 = r2.newZoomFactor) !== e3 && t3.Qy().execute({ cmd: wt, sheetName: t3.name(), newZoomFactor: n3, oldZoomFactor: e3 });
          }
        }
        function fn(t3) {
          for (var n3, e3, i3, r2 = { top: t3.offsetTop, left: t3.offsetLeft }, o2 = t3.offsetParent; o2; ) r2.top += o2.offsetTop, r2.left += o2.offsetLeft, o2 = o2.offsetParent;
          return e3 = (n3 = document.body).clientTop, i3 = n3.clientLeft, isNaN(e3) || (r2.top += e3), isNaN(i3) || (r2.left += i3), r2;
        }
        function ln(t3) {
          return "" !== t3;
        }
        function hn(t3, n3, e3) {
          t3.ki(i2.Events.UserZooming, { sheet: t3, sheetName: t3.name(), oldZoomFactor: e3, newZoomFactor: n3 }), t3.ki(i2.Events.ViewZoomed, { sheet: t3, sheetName: t3.name(), oldZoomFactor: e3, newZoomFactor: n3 });
        }
        function dn(t3, n3) {
          t3.DJ = n3, n3.bind(i2.Events.ActiveSheetChanged + t3.s3t, (function() {
            t3.onUpdate();
          }));
        }
        function vn(t3) {
          var n3, e3;
          c.StatusItem.prototype.onUpdate.call(t3), e3 = (n3 = (0, i2.jf)(t3.DJ)) ? n3.zoom() : 1, t3.Xe(e3);
        }
        function pn(t3) {
          t3.DJ && (t3.DJ.unbind(i2.Events.ActiveSheetChanged + t3.s3t), t3.DJ = w);
        }
        function gn() {
          Ut && Ht.call(this);
        }
        function mn(t3) {
          var n3 = t3.b3t;
          n3 && n3.Yoe();
        }
        function bn(t3, n3, e3, r2, u2) {
          var s2, c2, f2, l2;
          return e3 === M && (e3 = 0), r2 === M && (r2 = 0), s2 = a.formulaToExpression(t3, n3, e3, r2, u2, true), c2 = t3.op(), e3 === M && (e3 = t3.getActiveRowIndex()), r2 === M && (r2 = t3.getActiveColumnIndex()), f2 = true, l2 = { sheetSource: t3.Uw() }, i2.Worksheet.et(t3, "getStatusBarSheetSource", l2), c2.evaluateParsedFormula(l2.sheetSource, s2, (0, o.eV)(e3, r2), false, f2);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.StatusBar = void 0, i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("SheetsCalc"), u = e2("ContextMenu"), s = e2("./dist/plugins/statusBar/statusBar.ns.js"), c = e2("./dist/plugins/statusBar/statusItem.js"), f = e2("./dist/plugins/statusBar/baseStatusBar.js"), l = i2.GC$, h = i2.mt, d = h.En, v = h.vi, p = r.Common.lt, g = r.Common.zf.I5, m = p.ht, b = i2.Commands.ActionBase, y = o.Convert.BJ, w = null, M = void 0, C = l.inherit, x = (S = "gc-statusbar-") + (T = "slider-") + "btn", A = S + T + "add-btn", I = S + T + "back-progress", k = S + T + "back", N = S + T + "middle-line", j = S + T + "drag-bar", D = S + "zoom-panel", _ = S + T + "btn-container", O = S + T + "add-btn-container", E = "gc-statusbar", R = S + "menu-host", L = "gc.spread.", F = "100", B = "%", P = "px", G = "cellMode", W = "zoomSlider", Q = "zoomPanel", K = "calcProgress", J = "div", X = "span", q = "none", $ = "inline", tt = "inline-block", nt = 15, et = 25, it = 400, rt = 100, ot = 100, at = 10, ut = 1, st = 4, ct = 120, ft = 0.7, lt = 8, ht = 10, dt = S + "progress-item-item-container", vt = S + "progress-item-wrapper", pt = S + "progress-item-bar", gt = S + "progress-item-status", mt = S + "progress-item-sheet-name", bt = "progress", yt = "right", wt = "statusbarZoom", Mt = "statusBar", Ct = "click", St = "mousedown", Tt = "mouseup", xt = "mousemove", At = "contextmenu", It = ".statusbar", kt = "invalidateLayout", Nt = 101, jt = 103, Dt = 102, _t = 105, Ot = 104, Et = 109, Rt = "(", Lt = ")", Ft = "formatter", Bt = "_autoFormatter", Pt = "_SUBTOTALFORSTATUSBAR", Gt = [U = "average", H = "count", V = "numericalCount", z = "min", Y = "max", Z = "sum"], Ut = !!u, u && (Ht = u.MenuView, Vt = u.XX), zt = new r.Common.ResourceManager(s.SR, "StatusBar"), Yt = zt.getResource.bind(zt), Zt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.s3t = It + i3.name, i3;
          }
          return tn(n3, t3), n3.prototype.onBind = function(t4) {
            var n4 = this, e3;
            n4.DJ = t4, t4.bind(i2.Events.EditorStatusChanged + n4.s3t, (function(t5, i3) {
              e3 = n4.T3t(i3.newStatus), n4.A3t(e3);
            })), t4.bind(i2.Events.ActiveSheetChanged + n4.s3t, (function() {
              n4.onUpdate();
            }));
          }, n3.prototype.onUpdate = function() {
            var n4, e3, r2;
            t3.prototype.onUpdate.call(this), (n4 = (0, i2.jf)(this.DJ)) && (e3 = n4.editorStatus(), r2 = this.T3t(e3), this.A3t(r2));
          }, n3.prototype.T3t = function(t4) {
            var n4;
            switch (t4) {
              case 0:
                n4 = Yt().cellModeReady;
                break;
              case 1:
                n4 = Yt().cellModeEnter;
                break;
              case 2:
                n4 = Yt().cellModeEdit;
            }
            return n4;
          }, n3.prototype.A3t = function(t4) {
            if (t4 !== this.value) {
              this.value = t4, this.tipText = g(Yt().toolTipCellMode, [t4]);
              var n4 = this.I3t;
              n4 && (n4.parentElement.title = this.tipText, m(this.value) || (n4.innerText = this.value + ""));
            }
          }, n3.prototype.onUnbind = function() {
            this.DJ && (this.DJ.unbind(i2.Events.EditorStatusChanged + this.s3t), this.DJ.unbind(i2.Events.ActiveSheetChanged + this.s3t), this.DJ = w);
          }, n3;
        })(c.StatusItem), Wt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.s3t = It + i3.name, i3;
          }
          return tn(n3, t3), n3.prototype.onBind = function(t4) {
            var n4 = this;
            n4.DJ = t4, t4.bind(i2.Events.CalculationProgress + n4.s3t, (function(t5, e3) {
              n4.onUpdate(e3);
            }));
          }, n3.prototype.onUpdate = function(n4) {
            var e3, i3;
            t3.prototype.onUpdate.call(this), e3 = this, n4 && (i3 = void 0, i3 = n4.iterate ? g(Yt().iterateCalculation, [n4.iterate]) : g(Yt().inCalculation, [Math.floor(100 - (100 * n4.pendingCells / n4.totalCells || 0)) + "%"]), e3.A3t(i3), e3.Ib && clearTimeout(e3.Ib), e3.Ib = setTimeout((function() {
              e3.A3t(""), e3.Ib = 0;
            }), 500));
          }, n3.prototype.A3t = function(t4) {
            if (t4 !== this.value) {
              this.value = t4;
              var n4 = this.I3t;
              n4 && (m(t4) || (n4.innerText = t4));
            }
          }, n3.prototype.onUnbind = function() {
            this.DJ && (this.DJ.unbind(i2.Events.CalculationProgress + this.s3t), this.DJ = w);
          }, n3;
        })(c.StatusItem), Qt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.c3t = ": ", i3.FJ = false, i3.vit = e3.prefix, i3.s3t = It + i3.name, i3.f3t = Number.MAX_VALUE, i3;
          }
          return tn(n3, t3), n3.prototype.Zoe = function() {
            this.l3t = {};
          }, n3.prototype.onBind = function(t4) {
            var n4 = this;
            n4.DJ = t4, n4.Zoe(), t4.bind(i2.Events.SelectionChanging + n4.s3t, (function(t5, e3) {
              n4.x9 = e3.newSelections, n4.x3t(e3);
            })), t4.bind(i2.Events.SelectionChanged + n4.s3t, (function(t5, e3) {
              var i3 = n4.x9 || [], r2 = e3.newSelections;
              JSON.stringify(i3) !== JSON.stringify(r2) && n4.x3t(e3), n4.x9 = w;
            })), t4.bind(i2.Events.ValueChanged + n4.s3t, (function(t5, e3) {
              var i3 = e3.sheet, r2 = e3.row, o2 = e3.col;
              i3.ni(r2, o2) && n4.onUpdate();
            })), t4.bind(i2.Events.RangeChanged + n4.s3t, (function() {
              n4.onUpdate();
            })), t4.bind(i2.Events.DragFillBlockCompleted + n4.s3t, (function() {
              n4.onUpdate();
            })), t4.bind(i2.Events.ActiveSheetChanged + n4.s3t, (function() {
              n4.onUpdate();
            })), t4.bind(i2.Events.CalculationProgress + n4.s3t, (function(t5, e3) {
              n4.onUpdate();
            })), t4.bind(i2.Events.EditEnded + n4.s3t, (function() {
              n4.Zoe();
            })), t4.bind(i2.Events.TopRowChanged + n4.s3t, (function() {
              n4.N3t(true);
            })), t4.bind(i2.Events.ColumnWidthChanged + n4.s3t, (function() {
              n4.N3t(true);
            })), t4.bind(i2.Events.RowHeightChanged + n4.s3t, (function() {
              n4.N3t(true);
            })), t4.bind(i2.Events.RowChanged + n4.s3t, (function() {
              n4.N3t(false);
            })), t4.bind(i2.Events.ColumnChanged + n4.s3t, (function() {
              n4.N3t(false);
            })), t4.bind(i2.Events.RangeFiltered + n4.s3t, (function() {
              n4.N3t(false);
            })), t4.bind(i2.Events.TableFiltered + n4.s3t, (function() {
              n4.N3t(false);
            })), t4.bind(i2.Events.TableFilterCleared + n4.s3t, (function() {
              n4.N3t(false);
            })), t4.bind(i2.Events.RangeFilterCleared + n4.s3t, (function() {
              n4.N3t(false);
            }));
          }, n3.prototype.N3t = function(t4) {
            this.FJ = t4;
          }, n3.prototype.k3t = function(t4, n4) {
            var e3 = 0;
            return t4.forEach((function(t5) {
              var i3 = n4.JS(t5);
              e3 += i3.rowCount * i3.colCount;
            })), e3 < this.f3t;
          }, n3.prototype.x3t = function(t4) {
            var n4 = this;
            n4.zao && (clearTimeout(n4.zao), n4.zao = 0), n4.zao = setTimeout((function() {
              n4.Yao(t4), n4.zao = 0;
            }), 100);
          }, n3.prototype.Yao = function(t4) {
            var n4, e3, i3, r2 = this, o2 = t4.sheet, a2 = t4.newSelections;
            o2 && !o2.xT && r2.k3t(a2, o2) ? 1 === a2.length && 1 === a2[0].rowCount && 1 === a2[0].colCount ? (n4 = r2.D3t(o2, w), r2.A3t(n4[r2.name])) : ln(e3 = r2._3t(on(o2, a2))) ? (r2.N3t(false), i3 = (n4 = r2.D3t(o2, e3))[r2.name], r2.value = i3, r2.A3t(i3)) : m(r2.value) && r2.E3t(false) : r2.A3t(w);
          }, n3.prototype.D3t = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, b2 = 0, M2 = w, C2 = w, S2 = w, T2 = w, x2 = w;
            return n4 && (i3 = (e3 = g2.l3t)[n4], !g2.FJ || m(i3) ? (g2.N3t(false), (b2 = bn(t4, en(jt, n4))) > 1 && (M2 = bn(t4, en(Dt, n4))) > 0 && (r2 = bn(t4, en(Nt, n4)), o2 = bn(t4, en(_t, n4)), a2 = bn(t4, en(Ot, n4)), u2 = bn(t4, en(Et, n4)), y(r2) || y(o2) || y(a2) || y(u2) || (c2 = (s2 = un(t4)).row, f2 = s2.col, l2 = t4.getCellType(c2, f2), h2 = sn(t4, c2, f2), d2 = {}, v2 = { sheet: t4 }, S2 = l2.format(r2, h2, d2, v2), T2 = l2.format(o2, h2, d2, v2), x2 = l2.format(a2, h2, d2, v2), C2 = l2.format(u2, h2, d2, v2))), e3[n4] = { average: S2, numericalCount: M2, minimum: T2, maximum: x2, sum: C2, count: b2 }) : (S2 = i3.average, M2 = i3.numericalCount, T2 = i3.minimum, x2 = i3.maximum, C2 = i3.sum, b2 = i3.count)), (p2 = {}).average = S2, p2.numericalCount = M2 > 0 ? M2 : w, p2.min = T2, p2.max = x2, p2.sum = C2, p2.count = b2 > 1 ? b2 : w, p2;
          }, n3.prototype.E3t = function(t4) {
            this.u3t && (this.u3t.style.display = t4 ? tt : q);
          }, n3.prototype.A3t = function(t4) {
            var n4, e3 = this.c3t, i3 = this.I3t, r2 = this.vit, o2 = this.visible;
            this.value = t4, n4 = !m(t4) && o2, i3 && (i3.innerText = n4 ? r2 + e3 + t4 : ""), this.E3t(n4);
          }, n3.prototype.FM = function(t4) {
            if (t4) {
              var n4 = t4.menuContent, e3 = t4.tipText;
              this.menuContent = n4, this.vit = n4, this.tipText = e3, this.u3t.title = e3;
            }
          }, n3.prototype.onUpdate = function() {
            var t4 = this, n4 = (0, i2.jf)(t4.DJ);
            n4 ? t4.x3t({ sheet: n4, newSelections: n4.getSelections() }) : t4.A3t(w);
          }, n3.prototype.onUnbind = function() {
            var t4 = this.DJ, n4 = this.s3t;
            t4 && (t4.unbind(i2.Events.SelectionChanging + n4), t4.unbind(i2.Events.SelectionChanged + n4), t4.unbind(i2.Events.ValueChanged + n4), t4.unbind(i2.Events.RangeChanged + n4), t4.unbind(i2.Events.CalculationProgress + n4), t4.unbind(i2.Events.DragFillBlockCompleted + n4), t4.unbind(i2.Events.ActiveSheetChanged + n4), t4.unbind(i2.Events.EditEnded + n4), t4.unbind(i2.Events.TopRowChanged + n4), t4.unbind(i2.Events.ColumnWidthChanged + n4), t4.unbind(i2.Events.RowHeightChanged + n4), t4.unbind(i2.Events.RowChanged + n4), t4.unbind(i2.Events.ColumnChanged + n4), t4.unbind(i2.Events.RangeFiltered + n4), t4.unbind(i2.Events.TableFiltered + n4), t4.unbind(i2.Events.TableFilterCleared + n4), t4.unbind(i2.Events.RangeFilterCleared + n4), this.DJ = w);
          }, n3.prototype._3t = function(t4, n4, e3, i3, r2) {
            var u2, s2 = this.j3t;
            return s2 || (s2 = this.j3t = new o.Parser()), (u2 = this.x3) || (u2 = this.x3 = new a.SheetParserContext(w, !!r2, (0, o.eV)(n4, e3))), a.Ibt(s2, u2, t4, n4, e3, i3, true);
          }, n3.prototype.onDispose = function() {
            t3.prototype.onDispose.call(this), this.j3t = w, this.l3t = w, this.x3 && (this.x3.L0(), this.x3 = w);
          }, n3;
        })(c.StatusItem), Kt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.min = et, i3.max = it, i3.middle = rt, i3.step = at, i3.h3t = ut, i3.d3t = st, i3.v3t = ct, i3.m3t = Math.round((i3.v3t + i3.h3t) / 2), i3.g3t = Math.round((i3.v3t + i3.d3t) / 2), i3.p3t = false, i3.Afe = function(t4) {
              i3.p3t = false;
            }, i3.Ife = function(t4) {
              var n5, e4, r2, o2, a2, u2, s2 = i3;
              s2.p3t && (n5 = i3.P3t, e4 = t4.pageX, u2 = (r2 = fn(n5).left) + (o2 = n5.offsetWidth) + (a2 = s2.d3t) - e4, s2.H3t(u2));
            }, i3.s3t = It + i3.name, i3;
          }
          return tn(n3, t3), n3.prototype.onCreateItemView = function(t4) {
            var n4, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.ZC, h2 = f2 + P;
            t4.style.display = this.visible ? $ : q, (n4 = this.O3t) || (n4 = this.O3t = d(J)), l(n4).addClass(_), n4.style.height = h2, n4.style.lineHeight = h2, (e3 = this.R3t) || (e3 = this.R3t = d(J)), e3.title = Yt().toolTipZoomOut, l(e3).addClass(x), e3.style.height = h2, l(e3).bind(Ct, (function() {
              c2.B3t(false);
            })), (i3 = this.L3t) || (i3 = this.L3t = d(J)), l(i3).addClass(O), i3.style.height = h2, i3.style.lineHeight = h2, (r2 = this.F3t) || (r2 = this.F3t = d(J)), r2.title = Yt().toolTipZoomIn, l(r2).addClass(A), r2.style.height = h2, l(r2).bind(Ct, (function() {
              c2.B3t(true);
            })), (o2 = this.P3t) || (o2 = this.P3t = d(J)), l(o2).addClass(I), o2.style.marginTop = Math.floor(f2 / 2 + 1) + P, l(o2).bind(Ct, (function() {
              return false;
            })), (a2 = this.G3t) || (a2 = this.G3t = d(J)), l(a2).addClass(N), a2.style.top = Math.floor((f2 - lt) / 2 + 1) + P, a2.style.left = c2.m3t + P, (u2 = this.U3t) || (u2 = this.U3t = d(J)), u2.title = Yt().toolTipSlider, l(u2).addClass(j), u2.style.top = Math.floor((f2 - ht) / 2 + 1) + P, u2.style.right = c2.g3t + P, l(u2).bind(St, (function() {
              c2.p3t = true;
            })), document.addEventListener(Tt, c2.Afe), document.addEventListener(xt, c2.Ife), (s2 = this.z3t) || (s2 = this.z3t = d(J)), s2.title = Yt().toolTipSlider, l(s2).addClass(k), s2.style.height = h2, s2.style.lineHeight = h2, l(s2).bind(Ct, (function(t5) {
              var n5, e4, i4, r3 = t5.target;
              r3 !== u2 && (r3 === a2 ? n5 = c2.g3t : (e4 = t5.offsetX, n5 = (i4 = s2.offsetWidth) - e4), c2.H3t(n5));
            })), n4.appendChild(e3), t4.appendChild(n4), s2.appendChild(a2), s2.appendChild(o2), s2.appendChild(u2), t4.appendChild(s2), i3.appendChild(r2), t4.appendChild(i3);
          }, n3.prototype.ZS = function() {
            this.DJ && this.DJ.focus();
          }, n3.prototype.onBind = function(t4) {
            dn(this, t4);
          }, n3.prototype.onUpdate = function() {
            vn(this);
          }, n3.prototype.B3t = function(t4) {
            var n4, e3 = this, i3 = this.value;
            i3 % 10 == 0 ? i3 = t4 ? i3 + this.step : i3 - this.step : (n4 = i3 / 10, i3 = t4 ? Math.ceil(n4) : Math.floor(n4), i3 *= 10), i3 = (i3 = i3 > this.max ? this.max : i3) < this.min ? this.min : i3, e3.V3t(i3);
          }, n3.prototype.H3t = function(t4) {
            var n4, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this;
            t4 < 0 && (t4 = 0), t4 > h2.v3t && (t4 = h2.v3t + h2.d3t), e3 = h2.value / 100, r2 = h2.g3t, o2 = h2.v3t, a2 = 3 * h2.d3t / 2, u2 = h2.min, s2 = h2.middle, c2 = h2.max, (f2 = t4 <= r2 ? (r2 - t4) / r2 * (c2 - s2) + s2 : (o2 - t4 + a2) / r2 * (s2 - u2) + u2) <= u2 + 5 ? f2 = u2 : f2 >= c2 - 5 && (f2 = c2), n4 = f2 / 100, cn(l2 = (0, i2.jf)(this.DJ), n4, e3), h2.ZS();
          }, n3.prototype.V3t = function(t4) {
            var n4;
            t4 && (t4 = i2.mt.age(t4 / 100), cn((0, i2.jf)(this.DJ), t4, this.value / 100), this.ZS());
          }, n3.prototype.Y3t = function(t4) {
            var n4 = this, e3 = n4.min, i3 = n4.middle, r2 = n4.max, o2 = n4.d3t, a2 = n4.g3t, u2, s2;
            s2 = n4.v3t - (s2 = t4 <= i3 ? (t4 - e3) / (i3 - e3) * a2 - o2 / 2 : (t4 - i3) / (r2 - i3) * a2 + a2 - o2 / 2), this.Z3t(s2);
          }, n3.prototype.Z3t = function(t4) {
            var n4, e3 = this, i3 = e3.d3t / 2, r2 = e3.d3t;
            t4 <= r2 ? t4 += r2 : t4 < e3.v3t && (t4 += i3), (n4 = e3.U3t).style.right = t4 + P;
          }, n3.prototype.Xe = function(t4) {
            t4 && (t4 = Math.round(100 * i2.mt.age(t4))), t4 !== this.value && (this.value = parseInt(t4 + "", 10), this.Y3t(this.value));
          }, n3.prototype.W3t = function(t4) {
            return t4 === this.P3t || t4 === this.G3t || t4 === this.U3t || t4 === this.z3t;
          }, n3.prototype.Q3t = function(t4) {
            var n4 = t4.target;
            this.W3t(n4) && this.K3t(ft);
          }, n3.prototype.J3t = function(t4) {
            var n4 = t4.target;
            this.W3t(n4) && this.K3t(1);
          }, n3.prototype.K3t = function(t4) {
            this.U3t.style.opacity = t4 + "";
          }, n3.prototype.FM = function(t4) {
            if (t4) {
              var n4 = t4.tipText;
              this.menuContent = t4.menuContent, this.tipText = n4, this.R3t.title = n4[0], this.F3t.title = n4[1], this.U3t.title = n4[2], this.z3t.title = n4[2];
            }
          }, n3.prototype.onUnbind = function() {
            pn(this);
          }, n3.prototype.onDispose = function() {
            l(this.F3t).unbind(Ct), l(this.R3t).unbind(Ct), l(this.U3t).unbind(St), l(this.P3t).unbind(Ct), l(this.z3t).unbind(Ct), document.removeEventListener(Tt, this.Afe), document.removeEventListener(xt, this.Ife), c.StatusItem.prototype.onDispose.call(this);
          }, n3;
        })(c.StatusItem), Jt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.s3t = It + i3.name, i3;
          }
          return tn(n3, t3), n3.prototype.onCreateItemView = function(t4) {
            t4.style.display = this.visible ? $ : q;
            var n4 = this.X3t;
            n4 || (n4 = this.X3t = d(X)), l(n4).addClass(D), n4.innerText = F + B, t4.appendChild(n4);
          }, n3.prototype.onBind = function(t4) {
            dn(this, t4);
          }, n3.prototype.onUpdate = function() {
            vn(this);
          }, n3.prototype.Xe = function(t4) {
            var n4;
            t4 && (n4 = Math.round(100 * i2.mt.age(t4))), n4 !== parseInt(this.value + "", 10) && (n4 = parseInt(n4, 10), this.value = n4 + B, this.q3t(n4));
          }, n3.prototype.q3t = function(t4) {
            var n4 = this.X3t;
            n4 && (n4.innerText = t4 + B);
          }, n3.prototype.onUnbind = function() {
            pn(this);
          }, n3;
        })(c.StatusItem), Xt = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4, e3) || this;
            return i3.s3t = It + i3.name, i3.YC = 120, i3.y4 = 0, i3;
          }
          return tn(n3, t3), n3.prototype.onBind = function(t4) {
            var n4 = this;
            n4.DJ = t4, t4.bind(i2.Events.ProgressChanged + n4.s3t, (function(t5, e3) {
              n4.oyt = e3.sheetName, n4.onUpdate(e3.progress);
            }));
          }, n3.prototype.onUpdate = function(t4) {
            if (void 0 !== t4) {
              var n4 = this, e3 = n4.$3t, i3 = n4.t4t, r2 = n4.y4, o2 = n4.visible, a2 = n4.n4t, u2 = n4.oyt;
              t4 && 1 !== t4 && r2 !== t4 && o2 ? (n4.u3t.style.display = tt, l(e3).width(n4.YC * t4), i3.innerHTML = (100 * t4).toFixed(2) + "%", a2.innerText = u2 ? "(" + u2 + ")" : "") : (t4 <= 0 || t4 >= 1 || false === o2) && (n4.u3t.style.display = q, l(i3).empty(), l(a2).empty()), n4.y4 = t4;
            }
          }, n3.prototype.onCreateItemView = function(t4) {
            var n4, e3, i3, r2, o2 = this, a2 = d(J);
            l(a2).addClass(dt), n4 = d(J), l(n4).addClass(vt), l(n4).width(o2.YC), a2.appendChild(n4), e3 = this.$3t = d(J), l(e3).addClass(pt), i3 = this.t4t = d(J), l(i3).addClass(gt), r2 = this.n4t = d(J), l(r2).addClass(mt), n4.appendChild(e3), a2.appendChild(i3), a2.appendChild(r2), t4.appendChild(a2), o2.u3t.style.display = q;
          }, n3.prototype.onUnbind = function() {
            this.DJ && (this.DJ.unbind(i2.Events.ProgressChanged + this.s3t), this.DJ = w);
          }, n3;
        })(c.StatusItem), qt = (function() {
          function t3(t4, n3) {
            var e3, i3;
            t4 && (i3 = (e3 = this).y3t = new f.BaseStatusBar(t4), e3.w3t(i3, n3), e3.Ti = i3.Ti, this.WCt = i3.WCt, e3.M3t = {}, e3.C3t(t4), e3.maxCalcCells = 5e4, l(t4).data("statusbar", e3));
          }
          return Object.defineProperty(t3.prototype, "maxCalcCells", { get: function() {
            return this.f3t;
          }, set: function(t4) {
            var n3;
            this.f3t = t4, this.y3t.o3t().forEach((function(n4) {
              n4 instanceof Qt && (n4.f3t = t4);
            }));
          }, enumerable: false, configurable: true }), t3.prototype.w3t = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = ["formulaAverage", "formulaCount", "formulaNumericalCount", "formulaMin", "formulaMax", "formulaSum"], l2 = ["toolTipFormulaAverage", "toolTipFormulaCount", "toolTipFormulaNumericalCount", "toolTipFormulaMin", "toolTipFormulaMax", "toolTipFormulaSum"], h2 = [Yt().formulaAverage, Yt().formulaCount, Yt().formulaNumericalCount, Yt().formulaMin, Yt().formulaMax, Yt().formulaSum], d2 = [Yt().toolTipFormulaAverage, Yt().toolTipFormulaCount, Yt().toolTipFormulaNumericalCount, Yt().toolTipFormulaMin, Yt().toolTipFormulaMax, Yt().toolTipFormulaSum], v2 = [true, true, false, false, false, true], p2 = [];
            for (h2.forEach((function(t5, n4) {
              var e4 = {};
              e4.menuContent = t5, e4.prefix = t5, e4.align = yt, e4.tipText = d2[n4], e4.visible = v2[n4], e4.e4t = f2[n4], e4.i4t = l2[n4], p2.push(e4);
            })), e3 = { menuContent: Yt().cellMode, value: Yt().cellModeReady, tipText: g(Yt().toolTipCellMode, [Yt().cellModeReady]), e4t: "cellMode", i4t: "toolTipCellMode" }, i3 = { value: ot, menuContent: Yt().zoomSlider, showStatusInContexMenu: false, align: yt, e4t: "zoomSlider", i4t: ["toolTipZoomOut", "toolTipZoomIn", "toolTipSlider"] }, r2 = { align: yt }, o2 = { value: ot + B, tipText: Yt().toolTipZoomPanel, menuContent: Yt().zoom, align: yt, e4t: "zoom", i4t: "toolTipZoomPanel" }, a2 = { value: 0, menuContent: Yt().progressItem, showStatusInContexMenu: false, e4t: bt, i4t: bt }, u2 = [new Zt(G, e3), new Xt(bt, a2), new Wt(K, r2), new Qt(Gt[0], p2[0]), new Qt(Gt[1], p2[1]), new Qt(Gt[2], p2[2]), new Qt(Gt[3], p2[3]), new Qt(Gt[4], p2[4]), new Qt(Gt[5], p2[5]), new Kt(W, i3), new Jt(Q, o2)], n3 && n3.items instanceof Array && (u2 = u2.concat(n3.items)), c2 = 0; c2 < u2.length; c2++) s2 = u2[c2], t4.dU(s2);
            t4.t3t();
          }, t3.prototype.C3t = function(t4) {
            var n3, e3 = this.Ti, i3 = this.WCt, r2 = t4.clientHeight;
            e3 && (l(e3).addClass(E), l(i3).addClass(R), n3 = r2, r2 < nt && (t4.style.minHeight = nt + P, n3 = nt), i3.style.top = "-" + n3 + P);
          }, t3.prototype.r4t = function() {
            var t4 = this.Ti;
            t4 && (this.o4t = this.a4t.bind(this), t4.addEventListener(At, this.o4t));
          }, t3.prototype.a4t = function(t4) {
            var n3, e3, i3, r2, o2, a2;
            v(t4), e3 = (n3 = this).M3t, i3 = n3.DJ, Ut && i3 && (n3.rq || (n3.rq = new Vt(n3.WCt, l(n3.DJ.oM))), r2 = e3.menuView, a2 = fn(o2 = n3.Ti).left, r2.hostInfo = { top: o2.getBoundingClientRect().top, left: o2.getBoundingClientRect().left, width: o2.clientWidth, height: o2.clientHeight }, e3.menuData = n3.y3t.e3t(), n3.rq.rQ(r2, e3.menuData, t4.clientX - a2, t4.offsetY, i3));
          }, t3.prototype.u4t = function(t4) {
            if (Ut) {
              var n3 = new gn();
              this.M3t.menuView = n3, this.oq(t4);
            }
          }, t3.prototype.oq = function(t4) {
            var n3 = this, e3 = t4.commandManager(), i3 = { canUndo: false, execute: function(t5, e4) {
              var i4 = e4.commandOptions;
              n3.y3t.r3t(i4);
            } };
            e3.register(L + Mt, i3);
          }, t3.prototype.Yoe = function() {
            this.y3t.Yoe();
          }, t3.prototype.bind = function(t4) {
            this.unbind(), t4 && (this.DJ = t4, t4.b3t = this, this.y3t.$Ct(t4), this.u4t(t4), this.r4t());
          }, t3.prototype.unbind = function() {
            this.y3t && this.y3t.a3t(), this.DJ && (this.DJ.b3t = w, this.DJ = w), this.Ti && (this.Ti.removeEventListener(At, this.o4t), this.o4t = w), this.rq && (this.rq.close(), this.rq = w);
          }, t3.prototype.add = function(t4, n3) {
            return this.y3t.JCt(t4, n3);
          }, t3.prototype.remove = function(t4) {
            return this.y3t.qCt(t4);
          }, t3.prototype.get = function(t4) {
            return this.y3t.q_(t4);
          }, t3.prototype.all = function() {
            return this.y3t.o3t();
          }, t3.prototype.update = function() {
            this.y3t.n3t();
          }, t3.prototype.dispose = function() {
            this.unbind(), this.M3t = w, this.rq = w, this.y3t && (l(this.y3t.TW).data("statusbar", w), this.y3t.L0(), this.y3t = w), this.Ti && (this.Ti = w);
          }, t3;
        })(), n2.StatusBar = qt, Ut && C(gn, Ht), gn.prototype.getCommandOptions = function(t3) {
          return t3;
        }, $t = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this) || this;
            return i3.Mf = n4, i3.S3t = e3, i3;
          }
          return tn(n3, t3), n3.prototype.canExecute = function() {
            return true;
          }, n3.prototype.execute = function() {
            var t4, n4 = this, e3 = n4.Mf, r2 = n4.S3t, o2 = r2.newZoomFactor;
            if (this.canExecute()) {
              i2.Commands.startTransaction(this.Mf.getParent(), this.S3t);
              try {
                o2 !== (t4 = e3.zoom()) && (e3.zoom(o2), hn(e3, o2, t4));
              } finally {
                i2.Commands.endTransaction(this.Mf.getParent(), this.S3t);
              }
              return true;
            }
            return false;
          }, n3.prototype.canUndo = function() {
            return true;
          }, n3.prototype.undo = function() {
            var t4 = this, n4 = t4.Mf, e3, r2, o2 = t4.S3t[i2.Commands.TI(n4.name())][0].value, a2 = n4.zoom();
            return o2 !== a2 && (n4.zoom(o2), hn(n4, o2, a2)), true;
          }, n3;
        })(b), i2.Commands[wt] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, $t, n3, e3);
        } }, i2.Worksheet.ch(wt, { setHost: function(t3) {
          if (t3) {
            var n3 = this.Qy();
            n3[wt] || n3.register(wt, i2.Commands[wt]);
          }
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2;
          (null === (n3 = null == this ? void 0 : this.rt) || void 0 === n3 ? void 0 : n3.eBe) || (e3 = t3.changeType) === kt && (i3 = this.parent) && !i3.isPaintSuspended() && (r2 = i3.b3t) && r2.update();
        } }), i2.Workbook.ch(Mt, { onCultureChanged: function() {
          var t3 = this.b3t, n3 = Yt(), e3 = [], i3, r2;
          t3 && t3.y3t && t3.y3t.o3t().forEach((function(t4) {
            i3 = t4.i4t, r2 = n3[i3], i3 instanceof Array && (i3.forEach((function(t5) {
              e3.push(n3[t5]);
            })), r2 = e3), t4.FM({ menuContent: n3[t4.e4t], tipText: r2 });
          }));
        }, preFromJson: function() {
          mn(this);
        }, preFromSJSFormat: function() {
          mn(this);
        } });
      }, "./dist/plugins/statusBar/statusBar.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/statusBar/statusBar.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/statusBar/statusBar.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.progressItem = n2.toolTipZoomPanel = n2.toolTipSlider = n2.toolTipZoomIn = n2.toolTipZoomOut = n2.toolTipFormulaSum = n2.toolTipFormulaMax = n2.toolTipFormulaMin = n2.toolTipFormulaNumericalCount = n2.toolTipFormulaCount = n2.toolTipFormulaAverage = n2.toolTipCellMode = n2.zoom = n2.zoomSlider = n2.formulaSum = n2.formulaMax = n2.formulaMin = n2.formulaNumericalCount = n2.formulaCount = n2.formulaAverage = n2.iterateCalculation = n2.inCalculation = n2.cellModeEdit = n2.cellModeEnter = n2.cellModeReady = n2.cellMode = void 0, n2.cellMode = "Cell Mode", n2.cellModeReady = "Ready", n2.cellModeEnter = "Enter", n2.cellModeEdit = "Edit", n2.inCalculation = "Calculating: {0}", n2.iterateCalculation = "Calculating iter: {0}", n2.formulaAverage = "Average", n2.formulaCount = "Count", n2.formulaNumericalCount = "Numerical Count", n2.formulaMin = "Min", n2.formulaMax = "Max", n2.formulaSum = "Sum", n2.zoomSlider = "Zoom Slider", n2.zoom = "Zoom", n2.toolTipCellMode = "In {0} mode", n2.toolTipFormulaAverage = "Average of selected cells", n2.toolTipFormulaCount = "Number of selected cells that contain data", n2.toolTipFormulaNumericalCount = "Number of selected cells that contain numerical data", n2.toolTipFormulaMin = "Minimum value in selection", n2.toolTipFormulaMax = "Maximum value in selection", n2.toolTipFormulaSum = "Sum of selected cells", n2.toolTipZoomOut = "Zoom Out", n2.toolTipZoomIn = "Zoom In", n2.toolTipSlider = "Zoom", n2.toolTipZoomPanel = "Zoom level", n2.progressItem = "Progress";
      }, "./dist/plugins/statusBar/statusItem.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T;
        function x(t3, n3, e3, i3) {
          return { name: t3, menuContent: n3, visible: e3, status: i3, command: y + w };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.StatusItem = void 0, i2 = e2("Core"), r = e2("Common"), o = i2.mt.En, a = i2.GC$, u = r.Common.lt, s = u.ht, c = "gc-statusbar-statusitem-container", f = "div", l = "span", h = "none", d = "inline-block", v = "mousemove", p = "mouseout", g = null, m = "left", b = "auto", y = "gc.spread.", w = "statusBar", M = "10px", C = "px", S = 15, T = (function() {
          function t3(t4, n3) {
            if (this._marginLeft = 0, this._marginRight = 0, this.YC = b, this.u3t = g, this.I3t = g, this.name = t4, n3) {
              var e3 = n3.align, i3 = n3.menuContent, r2 = n3.tipText, o2 = n3.visible, a2 = n3.showStatusInContexMenu, u2 = n3.value, c2 = n3.e4t, f2 = n3.i4t;
              this.align = s(e3) ? m : e3, this.menuContent = s(i3) ? g : i3, this.tipText = s(r2) ? "" : r2, this.visible = !!s(o2) || o2, this.showStatusInContexMenu = !!s(a2) || a2, this.value = s(u2) ? g : u2, this.e4t = s(c2) ? g : c2, this.i4t = s(f2) ? g : f2;
            }
          }
          return t3.prototype.KCt = function(t4) {
            var n3, e3, i3 = this.align === m;
            this._marginLeft = i3 ? M : 0, this._marginRight = i3 ? 0 : M, n3 = t4.clientHeight, this.ZC = n3 > S ? n3 : S, e3 = this.s4t(), this.u3t = e3, this.onCreateItemView(e3), this.aY(e3);
          }, t3.prototype.s4t = function() {
            var t4 = this.u3t, n3 = this.ZC && this.ZC + C;
            return t4 || ((t4 = this.u3t = o(f)).title = this.tipText, a(t4).addClass(c), a(t4).css({ height: n3, lineHeight: n3, float: this.align, marginLeft: this._marginLeft + "", marginRight: this._marginRight + "" }), false === this.visible && (t4.style.display = h)), t4;
          }, t3.prototype.onCreateItemView = function(t4) {
            var n3 = this.I3t;
            n3 || ((n3 = this.I3t = o(l)).innerText = s(this.value) ? "" : this.value + ""), t4.appendChild(n3);
          }, t3.prototype.Zoe = function() {
          }, t3.prototype.onBind = function(t4) {
          }, t3.prototype.aY = function(t4) {
            t4.addEventListener(v, this.Q3t.bind(this)), t4.addEventListener(p, this.J3t.bind(this));
          }, t3.prototype.XCt = function() {
            return this.u3t;
          }, t3.prototype.Q3t = function(t4) {
          }, t3.prototype.J3t = function(t4) {
          }, t3.prototype.i3t = function() {
            if (this.menuContent) {
              var t4 = this.c4t();
              return t4.type = w, t4.workArea = w, t4;
            }
          }, t3.prototype.r3t = function(t4) {
            this.visible = !t4.visible, this.onUpdate();
          }, t3.prototype.c4t = function() {
            var t4 = this.showStatusInContexMenu ? this.f4t() : null;
            return x(this.name, this.menuContent, this.visible, t4);
          }, t3.prototype.f4t = function() {
            return this.value;
          }, t3.prototype.Yct = function() {
            this.u3t && (this.u3t.style.display = this.visible ? d : h);
          }, t3.prototype.FM = function(t4) {
            t4 && (this.menuContent = t4.menuContent, this.tipText = t4.tipText, this.u3t.title = this.tipText);
          }, t3.prototype.onUpdate = function(t4) {
            t4 && this.I3t && (this.I3t.innerHTML = t4), this.Yct();
          }, t3.prototype.onUnbind = function() {
          }, t3.prototype.onDispose = function() {
            this.onUnbind(), this.I3t = g, this.u3t && (this.u3t.removeEventListener(v, this.Q3t), this.u3t.removeEventListener(p, this.J3t), a(this.u3t).empty(), this.u3t = g);
          }, t3;
        })(), n2.StatusItem = T;
      }, "./dist/plugins/table/customTableThemeManager.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o = this && this.qKr || (a = function(t3, n3) {
          return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, a(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          a(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), a;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.CustomTableThemeManager = void 0, r = (function(t3) {
          function n3() {
            return null !== t3 && t3.apply(this, arguments) || this;
          }
          return o(n3, t3), n3.prototype.Oh = function() {
            return i2.CustomThemeType.table;
          }, n3.prototype.remove = function(n4) {
            var e3, i3 = this, r2 = this.Vv, o2 = r2.defaultTableTheme();
            o2 && this.M0r(o2.name(), n4) && r2.defaultTableTheme(void 0), r2.suspendPaint(), (e3 = r2.sheets) && e3.length > 0 && e3.forEach((function(t4) {
              var e4 = t4.tables.all();
              e4 && e4.length > 0 && e4.forEach((function(t5) {
                var e5;
                i3.M0r(t5.getStyleName(), n4) && t5.style(null !== (e5 = r2.defaultTableTheme() && r2.defaultTableTheme().name()) && void 0 !== e5 ? e5 : "medium2");
              }));
            })), r2.resumePaint(), t3.prototype.remove.call(this, n4);
          }, n3.prototype.S0r = function(t4, n4) {
            var e3 = this, i3 = this.Vv;
            this.M0r(i3.Bur, t4) && i3.defaultTableTheme(n4.name()), i3.suspendPaint(), i3.sheets.forEach((function(i4) {
              var r2 = i4.tables.all();
              r2 && r2.length > 0 && r2.forEach((function(i5) {
                e3.M0r(i5.getStyleName(), t4) && i5.style(n4.name());
              }));
            })), i3.resumePaint();
          }, n3;
        })((i2 = e2("Core")).CustomThemeManagerBase), n2.CustomTableThemeManager = r;
      }, "./dist/plugins/table/data-manager-providers/data-manager-provider.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/table/data-manager-providers/data-manager-view-provider.js"), n2);
      }, "./dist/plugins/table/data-manager-providers/data-manager-view-provider.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h;
        function d(t3) {
          return u && u.isView && u.isView(t3);
        }
        function v(t3) {
          return t3 instanceof Function;
        }
        function p(t3) {
          return { field: t3.rYt, ascending: t3.ascending, compare: t3.compareFunction };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.isDMView = void 0, i2 = e2("Bindings"), r = e2("Bindings"), o = e2("Common"), a = e2("Core"), u = e2("DataManager"), s = e2("DataManager"), c = o.Common.lt.ht, f = null, l = void 0, n2.isDMView = d, h = (function() {
          function t3() {
          }
          return t3.prototype.isDataDrivenMode = function() {
            return true;
          }, t3.prototype.isDataSource = function(t4) {
            return d(t4) && t4.HTr && t4.HTr();
          }, t3.prototype.getDataLength = function(t4) {
            return t4.length();
          }, t3.prototype.getDataItem = function(t4, n3, e3) {
            if (n3 < 0) return f;
            var i3 = l;
            return e3 && ((i3 = {})[e3] = 1), t4.getRowData(n3, l, i3);
          }, t3.prototype.addItems = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2 = function(t5) {
              f2 = t5;
            }, d2 = function(t5) {
              f2 = t5;
            }, v2 = !t4.getTable().X7t(), p2 = v2 ? function(e4) {
              return function() {
                t4.saveItem(n3 + e4, h2);
              };
            } : function() {
              return h2;
            };
            for (l2 = 0; l2 < e3; l2++) t4.insertItem(n3 + l2, {}, p2(l2), d2);
            if (false === (null == f2 ? void 0 : f2.success)) {
              if (o2) o2(f2);
              else if (null === (u2 = null === (a2 = f2.args) || void 0 === a2 ? void 0 : a2.error) || void 0 === u2 ? void 0 : u2.message) throw null === (c2 = null === (s2 = f2.args) || void 0 === s2 ? void 0 : s2.error) || void 0 === c2 ? void 0 : c2.message;
            } else r2 && r2(f2);
          }, t3.prototype.removeItems = function(t4, n3, e3, i3) {
            var r2;
            n3 < this.getDataLength(t4) && t4.removeItem(n3, e3, i3);
          }, t3.prototype.undoRemoveItems = function(t4, n3, e3) {
          }, t3.prototype.POn = function(t4, n3) {
            var e3 = n3.map((function(n4) {
              return n4.rYt = t4.ife(n4.index), p(n4);
            }));
            t4.sort(e3);
          }, t3.prototype.Irn = function(t4, n3) {
            var e3, i3;
            if (n3) for (e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3]).field = t4.ife(i3.col);
            t4.filter(n3);
          }, t3.prototype.ETr = function(t4, n3, e3) {
            return t4.ETr(n3, e3);
          }, t3.prototype.qFe = function(t4, n3, e3) {
            t4.qFe(n3, false, e3);
          }, t3.prototype.iGe = function(t4, n3, e3) {
            t4.TGe(n3);
          }, t3.prototype.JEe = function(t4, n3, e3) {
            var i3 = t4.kve(n3);
            i3 && (i3.zTr || (0, s.isNamedFormulaColumn)(e3) ? t4.VTr(n3, e3) : t4.xGe(n3, e3));
          }, t3.prototype.vCn = function(t4) {
            t4.vCn();
          }, t3.prototype.FCn = function(t4) {
            if (!t4.lM()) return l;
            if (t4.FCn(), t4.lM()) return l;
            var n3 = t4.LEe();
            return t4.PEe(), n3;
          }, t3.prototype.Mtt = function(t4, n3) {
            var e3, i3 = (0, s.useSerialExecutor)(), r2 = function(e4) {
              var r3 = n3[e4];
              i3.appendPromiseLike((function() {
                return t4.Mtt(r3);
              }));
            };
            for (e3 = n3.length - 1; e3 >= 0; e3--) r2(e3);
            return i3.execute();
          }, t3.prototype.kve = function(t4, n3) {
            return t4.kve(n3);
          }, t3.prototype.getProperties = function(t4) {
            var n3;
            return t4.getColumn().map((function(t5) {
              return "=" === t5.value[0] ? t5.name : t5.value;
            }));
          }, t3.prototype.hasValue = function(t4, n3, e3) {
            var i3 = t4.yLt[e3];
            return i3 ? t4.YTr(n3, i3) : { value: f, hasBinding: true };
          }, t3.prototype.getValue = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, l2, h2 = t4.yLt[r2];
            return h2 ? (u2 = f, s2 = t4.ZTr(i3, h2), l2 = false, c(s2) || (l2 = true, n3 && v(n3) && (s2 = n3(((a2 = {})[e3] = s2, a2))), u2 = o2 ? o2(h2, i3, s2) : s2), { value: u2, hasBinding: l2 }) : { value: f, hasBinding: true };
          }, t3.prototype.setValue = function(t4, n3, e3, i3, r2, o2, u2) {
            var c2, f2, l2, h2, d2, p2 = false, g = t4.kve(r2);
            return !g || g.zTr || (0, s.isFormula)(g) || !(null === (f2 = t4.getTable()) || void 0 === f2 ? void 0 : f2.hasExistedColumn(g.value)) || (h2 = (l2 = !t4.getTable().X7t()) ? function() {
              t4.saveItem(i3, u2);
            } : u2, o2 = a.util.V0(o2), n3 && v(n3) ? (d2 = this.getDataItem(t4, i3)) && (n3(d2, o2), t4.updateItem(i3, d2, h2), p2 = true) : ((c2 = {})[e3] = o2, d2 = c2, t4.updateItem(i3, d2, h2), p2 = true)), p2;
          }, t3.prototype.allowSetCount = function() {
            return true;
          }, t3.prototype.canAdd = function() {
            return true;
          }, t3.prototype.canInsert = function() {
            return true;
          }, t3.prototype.canRemove = function() {
            return true;
          }, t3.prototype.canFilter = function() {
            return true;
          }, t3.prototype.canSort = function() {
            return true;
          }, t3.prototype.canAddColumn = function() {
            return true;
          }, t3.prototype.canRemoveColumn = function() {
            return true;
          }, t3.prototype.canUpdateColumn = function() {
            return true;
          }, t3.prototype.canUndo = function() {
            return true;
          }, t3.prototype.fromJSON = function(t4) {
            return t4;
          }, t3.prototype.toJSON = function(t4) {
            return t4;
          }, t3;
        })(), r && u && i2.X$ && (i2.X$.dataManagerViewBindingSource = new h());
      }, "./dist/plugins/table/table-action.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z = this && this.qKr || (W = function(t3, n3) {
          return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, W(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          W(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), W;
        function Q(t3, n3) {
          n3.message === E().Exp_TableAddRowIntersectTable && t3.jT(i2.InvalidOperationType.table, E().Exp_TableAddRowIntersectTable);
        }
        function K(t3, n3, e3, i3, r2) {
          var o2 = r2 - i3;
          o2 < 0 ? s(t3, n3, m, e3 + o2, Math.abs(o2)) : o2 > 0 && s(t3, n3, g, e3, o2, true);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/table/table-util.js"), a = o.Util.S4t, u = o.Util.jj, s = o.Util.Ej, c = o.Util._getTable, f = o.Util.T4t, l = i2.Commands.ActionBase, h = r.Common.lt.ht, d = "tableResize", v = "tableInsertRows", p = "tableDeleteRows", g = "tableInsertColumns", m = "tableDeleteColumns", b = "tableToRange", y = "tableTotalRowFormula", w = "DoInsertRows", M = "tableShowFooter", C = "bindingTableAddColumn", S = "tableAutoBind", T = "tableSubmitChanges", x = "tableInsertRowsAboveForContextMenu", A = "tableInsertRowsBelowForContextMenu", I = "tableDeleteRowsForContextMenu", k = "tableInsertColumnsLeftForContextMenu", N = "tableInsertColumnsRightForContextMenu", j = "tableDeleteColumnsForContextMenu", D = void 0, _ = e2("./dist/plugins/table/table.ns.js"), O = new r.Common.ResourceManager(_.SR, "Tables"), E = O.getResource.bind(O), R = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.l4t = e3, i3.h4t = e3.tableName, i3.d4t = e3.resizeToRange, i3.eke = e3.backupTableResizedArgs, i3.H5e = e3.ignoreEventSuspend, i3.PIr = e3.PIr, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, u2, s2, c2 = this, f2 = false;
            if (c2.canExecute()) {
              t4 = c2.Mf, n4 = c2.h4t, i2.Commands.startTransaction(this.Mf.getParent(), this.l4t), c2.X5(t4, true);
              try {
                !(e3 = t4.tables.findByName(n4)) || e3.NTr() && !this.PIr || (r2 = e3.range(), o2 = c2.d4t, u2 = c2.eke, t4.tables.K5t(e3, o2), s2 = e3.range(), this.PIr && 1 === t4.Ut.P8 && r2.rowCount !== s2.rowCount && e3.tUr(), null == u2 || u2.push({ sheet: t4, table: e3, oldRange: o2, newRange: r2 }), a(t4, e3, r2, o2, c2.H5e), f2 = true);
              } finally {
                c2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.l4t);
              }
            }
            return f2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, u2 = this, s2 = u2.Mf, c2 = u2.h4t, f2 = false;
            if (u2.canUndo()) {
              u2.X5(s2, true), s2.suspendCalcService();
              try {
                t4 = u2.l4t, n4 = s2.Ut, e3 = s2.tables.findByName(c2), (o2 = t4[r2 = i2.Commands.TI(s2.name())]) && (n4.undo(o2), a(s2, e3, t4.resizeToRange, e3.range(), u2.H5e), f2 = true);
              } finally {
                s2.resumeCalcService(false), u2.q5(s2, true);
              }
            }
            return f2;
          }, n3;
        })(l), i2.Commands[d] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, R, n3, e3);
        } }, L = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.NBe = e3, i3.h4t = e3.tableName, i3.$xu = e3.isAuto, i3.d4t = e3.resizeToRange, i3.BSt = e3.columns, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, u2 = this, s2 = false;
            if (u2.canExecute()) {
              t4 = u2.Mf, n4 = u2.h4t, e3 = u2.d4t, i2.Commands.startTransaction(this.Mf.getParent(), this.NBe), u2.X5(t4, true);
              try {
                (r2 = t4.tables.findByName(n4)) && (o2 = r2.Tx, a2 = r2.endColumn(), r2.autoGenerateColumns(u2.$xu), e3.colCount !== o2 && (t4.tables.K5t(r2, e3), K(t4, r2, a2, o2, r2.Tx), r2.bind(u2.BSt)), s2 = true);
              } finally {
                u2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.NBe);
              }
            }
            return s2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = s2.h4t, l2 = false;
            if (s2.canUndo()) {
              s2.X5(c2, true);
              try {
                t4 = s2.NBe, n4 = c2.Ut, e3 = c2.tables.findByName(f2), (o2 = t4[r2 = i2.Commands.TI(c2.name())]) && (a2 = e3.Tx, u2 = e3.endColumn(), n4.undo(o2), K(c2, e3, u2, a2, e3.Tx), l2 = true);
              } finally {
                s2.q5(c2, true);
              }
            }
            return l2;
          }, n3;
        })(l), i2.Commands[C] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, L, n3, e3);
        } }, F = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.kBe = e3, i3.h4t = e3.tableName, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2 = this, u2 = false;
            if (a2.canExecute()) {
              t4 = a2.Mf, n4 = a2.h4t, i2.Commands.startTransaction(this.Mf.getParent(), this.kBe), a2.X5(t4, true);
              try {
                (e3 = t4.tables.findByName(n4)) && (r2 = e3.Tx, o2 = e3.endColumn(), e3.autoGenerateColumns(true), e3.autoBind(), K(t4, e3, o2, r2, e3.Tx), u2 = true);
              } finally {
                a2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.kBe);
              }
            }
            return u2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = s2.h4t, l2 = false;
            if (s2.canUndo()) {
              s2.X5(c2, true);
              try {
                t4 = s2.kBe, n4 = c2.Ut, e3 = c2.tables.findByName(f2), (o2 = t4[r2 = i2.Commands.TI(c2.name())]) && (a2 = e3.Tx, u2 = e3.endColumn(), n4.undo(o2), K(c2, e3, u2, a2, e3.Tx), l2 = true);
              } finally {
                s2.q5(c2, true);
              }
            }
            return l2;
          }, n3;
        })(l), i2.Commands[S] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, F, n3, e3);
        } }, B = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.v4t = e3, i3.h4t = e3.tableName, i3.Ky = e3.row, i3.DU = e3.count, i3.m4t = e3.isAfter, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, s2, c2, f2 = this, l2 = false;
            if (f2.canExecute()) {
              t4 = f2.Mf, n4 = f2.h4t, e3 = f2.Ky, r2 = f2.DU, o2 = f2.m4t, i2.Commands.II((0, i2.rke)(t4)), f2.X5(t4, true);
              try {
                (a2 = t4.tables.findByName(n4)) && (s2 = a2.Sx, a2.zpt(e3, r2, o2), a2.tUr(), l2 = true, (c2 = a2.Sx) - s2 === r2 && u(t4, a2, v, e3, r2, o2));
              } catch (n5) {
                Q(t4, n5);
              } finally {
                f2.q5(t4, true), i2.Commands.xI(t4.parent.i4(), f2.v4t);
              }
            }
            return l2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, s2, c2, l2 = this, h2 = l2.Mf, d2 = false;
            if (l2.canUndo()) {
              l2.X5(h2, true);
              try {
                e3 = (t4 = l2.v4t)[n4 = i2.Commands.TI(h2.name())], r2 = t4.row, o2 = t4.count, a2 = t4.isAfter, e3 && (i2.Commands.NI(h2.parent.i4(), t4), (s2 = h2.tables.findByName(l2.h4t)) && (c2 = a2 ? r2 + 1 : r2, s2.A4t(c2, o2), s2.x4t(c2, o2, f(true)), u(h2, s2, p, r2, o2, D, s2.tq())), d2 = true);
              } finally {
                l2.q5(h2, true);
              }
            }
            return d2;
          }, n3;
        })(l), i2.Commands[v] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, B, n3, e3);
        } }, P = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.v4t = e3, i3.h4t = e3.tableName, i3.Ky = e3.row, i3.DU = e3.count, i3.m4t = e3.isAfter, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, s2 = this, c2 = false;
            if (s2.canExecute()) {
              t4 = s2.Mf, n4 = s2.h4t, e3 = s2.Ky, r2 = s2.DU, o2 = s2.m4t, i2.Commands.startTransaction(this.Mf.getParent(), this.v4t), s2.X5(t4, true);
              try {
                (a2 = t4.tables.findByName(n4)) && (a2.N4t(e3, r2, o2, false), a2.tUr(), u(t4, a2, v, e3, r2, o2), s2.v4t.row = e3, s2.v4t.count = r2, c2 = true);
              } finally {
                s2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.v4t);
              }
            }
            return c2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, s2, c2, l2, h2, d2, v2, g2 = this, m2 = g2.Mf, b2 = false;
            if (g2.canUndo()) {
              g2.X5(m2, true);
              try {
                t4 = g2.v4t, n4 = m2.Ut, r2 = t4[e3 = i2.Commands.TI(m2.name())], o2 = t4.row, a2 = t4.count, s2 = t4.isAfter, r2 && (l2 = (c2 = m2.tables.findByName(g2.h4t)) && c2.z3(), h2 = void 0, d2 = s2 ? o2 + 1 : o2, l2 && (v2 = c2.dataRange(), h2 = l2.slice(d2 - v2.row, d2 - v2.row + a2)), n4.undo(r2), c2 && (c2.A4t(d2, a2), c2.x4t(d2, a2, f(true)), u(m2, c2, p, o2, a2, s2, h2 || c2.tq())), b2 = true);
              } finally {
                g2.q5(m2, true);
              }
            }
            return b2;
          }, n3;
        })(l), i2.Commands[w] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, P, n3, e3);
        } }, G = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.g4t = e3, i3.h4t = e3.tableName, i3.p4t = e3.changeRows, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, s2, c2, f2, l2 = this, h2 = false;
            if (l2.canExecute()) {
              t4 = l2.Mf, n4 = l2.h4t, e3 = l2.p4t, i2.Commands.II((0, i2.rke)(t4)), l2.X5(t4, true);
              try {
                if (r2 = t4.tables.findByName(n4)) for (o2 = e3.length - 1; o2 >= 0; o2--) a2 = e3[o2].row, s2 = e3[o2].count, c2 = r2.Sx, r2.yE(a2, s2), r2.tUr(), h2 = true, c2 - (f2 = r2.Sx) === s2 && u(t4, r2, p, a2, s2, D, r2.tq());
              } catch (n5) {
                Q(t4, n5);
              } finally {
                l2.q5(t4, true), i2.Commands.xI(t4.parent.i4(), l2.g4t);
              }
            }
            return h2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, s2, c2, f2 = this, l2 = f2.Mf, h2 = false;
            if (f2.canUndo()) {
              f2.X5(l2, true);
              try {
                if (e3 = (t4 = f2.g4t)[n4 = i2.Commands.TI(l2.name())], r2 = f2.p4t, e3) for (i2.Commands.NI(l2.parent.i4(), t4), o2 = l2.tables.findByName(f2.h4t), h2 = true, a2 = r2.length - 1; a2 >= 0; a2--) s2 = r2[a2].row, c2 = r2[a2].count, u(l2, o2, v, s2, c2, false);
              } finally {
                f2.q5(l2, true);
              }
            }
            return h2;
          }, n3;
        })(l), i2.Commands[p] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, G, n3, e3);
        } }, U = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.b4t = e3, i3.h4t = e3.tableName, i3.iw = e3.col, i3.DU = e3.count, i3.m4t = e3.isAfter, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, u2, c2, f2 = this, l2 = false;
            if (f2.canExecute()) {
              t4 = f2.Mf, n4 = f2.h4t, e3 = f2.iw, r2 = f2.DU, o2 = f2.m4t, i2.Commands.II((0, i2.rke)(t4)), f2.X5(t4, true);
              try {
                (a2 = t4.tables.findByName(n4)) && (u2 = a2.Tx, a2.k4t(e3, r2, o2), l2 = true, (c2 = a2.Tx) - u2 === r2 && s(t4, a2, g, e3, r2, o2));
              } catch (n5) {
                Q(t4, n5);
              } finally {
                f2.q5(t4, true), i2.Commands.xI(t4.parent.i4(), f2.b4t);
              }
            }
            return l2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, u2 = this, c2 = u2.Mf, f2 = false;
            if (u2.canUndo()) {
              u2.X5(c2, true);
              try {
                e3 = (t4 = u2.b4t)[n4 = i2.Commands.TI(c2.name())], r2 = t4.col, o2 = t4.count, e3 && (i2.Commands.NI(c2.parent.i4(), t4), a2 = c2.tables.findByName(u2.h4t), f2 = true, s(c2, a2, m, r2, o2));
              } finally {
                u2.q5(c2, true);
              }
            }
            return f2;
          }, n3;
        })(l), i2.Commands[g] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, U, n3, e3);
        } }, H = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.y4t = e3, i3.h4t = e3.tableName, i3.iw = e3.col, i3.DU = e3.count, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, u2, c2 = this, f2 = false;
            if (c2.canExecute()) {
              t4 = c2.Mf, n4 = c2.h4t, e3 = c2.iw, r2 = c2.DU, i2.Commands.II((0, i2.rke)(t4)), c2.X5(t4, true);
              try {
                (o2 = t4.tables.findByName(n4)) && (a2 = o2.Tx, o2.wE(e3, r2), f2 = true, a2 - (u2 = o2.Tx) === r2 && s(t4, o2, m, e3, r2));
              } catch (n5) {
                Q(t4, n5);
              } finally {
                c2.q5(t4, true), i2.Commands.xI(t4.parent.i4(), c2.y4t);
              }
            }
            return f2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2, a2, u2 = this, c2 = u2.Mf, f2 = false;
            if (u2.canUndo()) {
              u2.X5(c2, true);
              try {
                e3 = (t4 = u2.y4t)[n4 = i2.Commands.TI(c2.name())], r2 = t4.col, o2 = t4.count, e3 && (i2.Commands.NI(c2.parent.i4(), t4), a2 = c2.tables.findByName(u2.h4t), f2 = true, s(c2, a2, g, r2, o2, false));
              } finally {
                u2.q5(c2, true);
              }
            }
            return f2;
          }, n3;
        })(l), i2.Commands[m] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, H, n3, e3);
        } }, V = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.w4t = e3, i3.h4t = e3.tableName, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2 = this, o2 = false;
            if (r2.canExecute()) {
              t4 = r2.Mf, n4 = r2.h4t, i2.Commands.startTransaction(this.Mf.getParent(), this.w4t), r2.X5(t4, true);
              try {
                (e3 = t4.tables.findByName(n4)) && (t4.tables.remove(e3, 3), o2 = true);
              } finally {
                r2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.w4t);
              }
            }
            return o2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2.Mf, u2 = false;
            if (o2.canUndo()) {
              o2.X5(a2, true);
              try {
                t4 = o2.w4t, n4 = a2.Ut, (r2 = t4[e3 = i2.Commands.TI(a2.name())]) && (n4.undo(r2), u2 = true);
              } finally {
                o2.q5(a2, true);
              }
            }
            return u2;
          }, n3;
        })(l), i2.Commands[b] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, V, n3, e3);
        } }, z = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this, r2 = i3;
            return r2.M4t = e3, r2.Ky = e3.row, r2.iw = e3.col, r2.D5 = e3.newValue, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2, a2, u2, s2, c2 = this, f2 = false;
            if (c2.canExecute()) {
              t4 = c2.Mf, i2.Commands.startTransaction(this.Mf.getParent(), this.M4t), c2.X5(t4, true);
              try {
                n4 = c2.Ky, e3 = c2.iw, r2 = c2.D5, t4.setFormula(n4, e3, r2), r2 ? r2.startsWith("=SUBTOTAL(103") || r2.startsWith("=SUBTOTAL(102") || (o2 = t4.getFormatter(n4, e3)) && "GENERAL" !== o2.toUpperCase() || (s2 = (u2 = (a2 = t4.tables.find(n4, e3)) && a2.BSt[e3 - a2.startColumn()]) && u2.formatter(), (0, i2.Ffe)(t4, n4, e3, s2)) : t4.setValue(n4, e3, null), f2 = true;
              } finally {
                c2.q5(t4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.M4t);
              }
            }
            return f2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2.Mf, u2 = false;
            if (o2.canUndo()) {
              o2.X5(a2, true);
              try {
                t4 = o2.M4t, n4 = a2.Ut, (r2 = t4[e3 = i2.Commands.TI(a2.name())]) && (n4.undo(r2), u2 = true);
              } finally {
                o2.q5(a2, true);
              }
            }
            return u2;
          }, n3;
        })(l), i2.Commands[y] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, z, n3, e3);
        } }, Y = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this, r2 = i3;
            return r2.C4t = e3, r2.h4t = e3.tableName, r2.oL = e3.showFooter, r2.vPt = e3.isInserted, i3;
          }
          return Z(n3, t3), n3.prototype.execute = function() {
            var t4, n4, e3, r2, o2 = this, a2 = false;
            if (o2.canExecute()) {
              n4 = o2.Mf, e3 = o2.h4t, i2.Commands.startTransaction(this.Mf.getParent(), this.C4t), o2.X5(n4, true);
              try {
                (r2 = n4.tables.findByName(e3)) && (r2.showFooter(o2.oL, o2.vPt), a2 = true);
              } catch (n5) {
                t4 = n5.message;
              } finally {
                t4 && n4.jT(i2.InvalidOperationType.table, t4), o2.q5(n4, true), i2.Commands.endTransaction(this.Mf.getParent(), this.C4t);
              }
            }
            return a2;
          }, n3.prototype.undo = function() {
            var t4, n4, e3, r2, o2 = this, a2 = o2.Mf, u2 = false;
            if (o2.canUndo()) {
              o2.X5(a2, true);
              try {
                t4 = o2.C4t, n4 = a2.Ut, (r2 = t4[e3 = i2.Commands.TI(a2.name())]) && (n4.undo(r2), u2 = true);
              } finally {
                o2.q5(a2, true);
              }
            }
            return u2;
          }, n3;
        })(l), i2.Commands[M] = { canUndo: true, execute: function(t3, n3, e3) {
          return i2.Commands.zA(t3, Y, n3, e3);
        } }, i2.Commands[x] = { canUndo: true, execute: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, f2, l2;
          return n3.cmd = x, h(n3.row) && h(n3.count) ? (r2 = i2.Commands.Tp(t3, n3), a2 = void 0, u2 = void 0, s2 = void 0, f2 = void 0, 1 === (o2 = n3.selections).length && (a2 = o2[0], (u2 = c(r2, a2)) && (s2 = a2.row, f2 = a2.rowCount, l2 = u2.footerIndex() === s2, n3.row = l2 ? s2 - 1 : s2, n3.count = f2, n3.tableName = u2.name(), n3.isAfter = l2), i2.Commands.zA(t3, B, n3, e3))) : i2.Commands.zA(t3, B, n3, e3);
        } }, i2.Commands[A] = { canUndo: true, execute: function(t3, n3, e3) {
          if (n3.cmd = A, h(n3.row) && h(n3.count)) {
            var r2 = i2.Commands.Tp(t3, n3), o2 = n3.selections, a2 = void 0, u2 = void 0, s2 = void 0, f2 = void 0;
            return 1 === o2.length && (a2 = o2[0], (u2 = c(r2, a2)) && (s2 = a2.row, f2 = a2.rowCount, n3.row = s2, n3.count = f2, n3.tableName = u2.name(), n3.isAfter = true), i2.Commands.zA(t3, B, n3, e3));
          }
          return i2.Commands.zA(t3, B, n3, e3);
        } }, i2.Commands[I] = { canUndo: true, execute: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, f2, l2, d2, v2, p2;
          if (n3.cmd = I, h(n3.changeRows)) {
            for (r2 = i2.Commands.Tp(t3, n3), o2 = n3.selections, a2 = void 0, u2 = void 0, s2 = void 0, n3.changeRows = [], f2 = 0; f2 < o2.length; f2++) {
              if (l2 = o2[f2], !(d2 = c(r2, l2))) return false;
              if (a2) {
                if (a2 !== d2) return false;
              } else a2 = d2;
            }
            for (f2 = 0; f2 < o2.length; f2++) for (v2 = f2 + 1; v2 < o2.length; v2++) {
              if (l2 = o2[f2], p2 = o2[v2], l2.row >= p2.row && l2.row <= p2.row + p2.rowCount - 1) return false;
              if (l2.row + l2.rowCount - 1 >= p2.row && l2.row + l2.rowCount - 1 <= p2.row + p2.rowCount - 1) return false;
              if (l2.row <= a2.Ky || l2.row + l2.rowCount > a2.Ky + a2.Sx) return false;
              if (p2.row <= a2.Ky || p2.row + p2.rowCount > a2.Ky + a2.Sx) return false;
            }
            for (o2.sort((function(t4, n4) {
              return t4.row - n4.row;
            })), f2 = 0; f2 < o2.length; f2++) u2 = (l2 = o2[f2]).row, s2 = l2.rowCount, n3.changeRows.push({ row: u2, count: s2 });
            return n3.tableName = a2.name(), i2.Commands.zA(t3, G, n3, e3);
          }
          return i2.Commands.zA(t3, G, n3, e3);
        } }, i2.Commands[k] = { canUndo: true, execute: function(t3, n3, e3) {
          if (n3.cmd = k, h(n3.col) && h(n3.count)) {
            var r2 = i2.Commands.Tp(t3, n3), o2 = n3.selections, a2 = void 0, u2 = void 0, s2 = void 0, f2 = void 0;
            return 1 === o2.length && (a2 = o2[0], (u2 = c(r2, a2)) && (s2 = a2.col, f2 = a2.colCount, n3.col = s2, n3.count = f2, n3.tableName = u2.name(), n3.isAfter = false), i2.Commands.zA(t3, U, n3, e3));
          }
          return i2.Commands.zA(t3, U, n3, e3);
        } }, i2.Commands[N] = { canUndo: true, execute: function(t3, n3, e3) {
          if (n3.cmd = N, h(n3.col) && h(n3.count)) {
            var r2 = i2.Commands.Tp(t3, n3), o2 = n3.selections, a2 = void 0, u2 = void 0, s2 = void 0, f2 = void 0;
            return 1 === o2.length && (a2 = o2[0], (u2 = c(r2, a2)) && (s2 = a2.col, f2 = a2.colCount, n3.col = s2, n3.count = f2, n3.tableName = u2.name(), n3.isAfter = true), i2.Commands.zA(t3, U, n3, e3));
          }
          return i2.Commands.zA(t3, U, n3, e3);
        } }, i2.Commands[j] = { canUndo: true, execute: function(t3, n3, e3) {
          if (n3.cmd = j, h(n3.col) && h(n3.count)) {
            var r2 = i2.Commands.Tp(t3, n3), o2 = n3.selections, a2 = void 0, u2 = void 0, s2 = void 0, f2 = void 0;
            return 1 === o2.length && (a2 = o2[0], (u2 = c(r2, a2)) && (s2 = a2.col, f2 = a2.colCount, n3.col = s2, n3.count = f2, n3.tableName = u2.name()), i2.Commands.zA(t3, H, n3, e3));
          }
          return i2.Commands.zA(t3, H, n3, e3);
        } }, i2.Commands[T] = { canUndo: false, execute: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2 = t3.getSheetFromName(n3.sheetName) || t3.getActiveSheet();
          return u2 && !h(u2.tables) && (e3 = n3.tableNames, i3 = [], h(e3) || 0 === e3.length ? (r2 = u2.getActiveRowIndex(), o2 = u2.getActiveColumnIndex(), (a2 = u2.tables.find(r2, o2)) && a2.NTr() && i3.push(a2)) : e3.forEach((function(t4) {
            var n4 = u2.tables.findByName(t4);
            n4 && n4.NTr() && i3.push(n4);
          })), i3.length > 0 && i3.forEach((function(t4) {
            var n4 = t4.z3();
            n4 && n4.submitChanges().catch((function() {
            }));
          }))), false;
        } }, i2.Commands.D4t = function(t3) {
          t3.register(d, i2.Commands[d]), t3.register(C, i2.Commands[C]), t3.register(S, i2.Commands[S]), t3.register(v, i2.Commands[v]), t3.register(w, i2.Commands[w]), t3.register(p, i2.Commands[p]), t3.register(g, i2.Commands[g]), t3.register(m, i2.Commands[m]), t3.register(b, i2.Commands[b]), t3.register(y, i2.Commands[y]), t3.register(M, i2.Commands[M]), t3.register(x, i2.Commands[x]), t3.register(A, i2.Commands[A]), t3.register(I, i2.Commands[I]), t3.register(k, i2.Commands[k]), t3.register(N, i2.Commands[N]), t3.register(j, i2.Commands[j]), t3.register(T, i2.Commands[T]);
        };
      }, "./dist/plugins/table/table-calcSource.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u = this && this.qKr || (s = function(t3, n3) {
          return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, s(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          s(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), s;
        Object.defineProperty(n2, "__esModule", { value: true }), n2.QTr = void 0, i2 = e2("CalcEngine"), r = e2("CalcEngine"), a = (function(t3) {
          function n3(n4, e3) {
            var i3 = t3.call(this, n4) || this;
            return i3.getEvaluatorContext = function(t4, n5, e4, r2, o2) {
              return t4.row = i3.lsr.WTr() + t4.row, t4.VEr || (t4.VEr = true, t4.col = i3.lsr.startColumn() + t4.col), i3.rT.getEvaluatorContext(t4, n5, e4, r2, o2);
            }, i3.lsr = e3, i3.Mf = e3.Mf, i3.nT = 3, i3.rT = i3.Mf.Uw(), i3;
          }
          return u(n3, t3), n3.prototype.getSheet = function() {
            return this.Mf;
          }, n3;
        })(o = i2 ? r.CalcSource : /* @__PURE__ */ (function() {
          function t3() {
          }
          return t3;
        })()), n2.QTr = a;
      }, "./dist/plugins/table/table-data-driven-filter-dialog.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m = this && this.qKr || (b = function(t3, n3) {
          return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, b(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          b(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), b;
        function y(t3) {
          return t3 && t3.conType && "function" == typeof t3.conType;
        }
        function w(t3, n3) {
          return y(t3) && !t3.art && !n3.jut().isShowSelectCheck;
        }
        function M(t3, n3, e3, i3, r2, o2, u2, c2, d2, v2) {
          var g2, m2, b2, y2, w2, M2, C2, S, T = t3.Mf, x = "string";
          return n3 !== f && n3 !== l || (n3 = h, x = "blank"), n3 && "string" !== c2 && ("number" !== c2 && "boolean" !== c2 || (isNaN(parseFloat(n3)) || (n3 = parseFloat(n3)), x = "number"), "object" !== c2 && "date" !== c2 || n3.match(p) && !isNaN(Date.parse(n3)) && (n3 = new Date(n3), d2 && d2(), x = "date"), "string" === x && v2 && v2()), g2 = n3, b2 = (m2 = r2 ? r2() : {}).row, y2 = m2.isCheckedInCheckList, ("string" != typeof n3 || u2) && (w2 = false, !s(b2) && "string" == typeof u2 && t3.Mf.parent && (M2 = void 0, (C2 = t3.Mf.parent.xO(u2)) && (w2 = true, M2 = C2.getExpression()), w2 && (g2 = a.Util.evaluateExpression(t3.Mf, b2, i3, M2), s(g2) || "object" != typeof g2 || (g2 = s(g2._error) ? g2.toString() : g2._error))), !w2 && o2 && (g2 = o2.format(n3, u2, e3, { sheet: T, row: b2, col: i3, sheetArea: 3, quotePrefix: null })), g2 && "string" == typeof g2 && (g2 = g2.replace(/\r\n?/g, "\n"))), "boolean" === c2 && ("TRUE" === (S = String(n3).toUpperCase()) && (n3 = true, g2 = "TRUE"), "FALSE" === S && (n3 = false, g2 = "FALSE")), { row: b2, filterData: n3, filterText: g2, type: x, isCheckedInCheckList: y2 };
        }
        function C(t3, n3) {
          var e3, i3, r2, o2, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2;
          if (t3.NTr()) {
            if (e3 = t3.Mf, r2 = (i3 = t3.z3()) && i3.gLt, o2 = i3.getColumn(n3), s(o2)) return {};
            if ((f2 = (a2 = function(t4) {
              return i3.uFt(t4);
            })(u2 = o2.value || o2.name)) ? r2 && r2.rBt(u2) && f2.K$ !== r2.rBt(u2) && i3.eRt([u2], true) : i3.eRt([u2]), f2 = a2(u2), s(f2)) return {};
            for (l2 = {}, h2 = f2.K$, delete f2.K$, v2 = (d2 = c(f2)).length, f2.K$ = h2, p2 = t3.BSt[n3].cellType() || e3.$f(), g2 = t3.BSt[n3].formatter(), m2 = {}, b2 = 0; b2 < v2; b2++) C2 = M(t3, w2 = y2 = d2[b2], l2, n3, null, p2, g2, h2).filterText, m2[w2] = C2;
            return m2;
          }
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TableDataDrivenFilterDialog = n2.GTr = void 0, i2 = e2("Filters"), r = e2("Filters"), o = e2("Common"), a = e2("./dist/plugins/table/table-util.js"), u = o.Common.lt, s = u.ht, c = Object.keys, f = "null", l = "undefined", h = null, d = void 0, v = 1e5, p = /((\d{4}|\d{2}|\d{1})[\/\-])(\d{4}|\d{2}|\d{1})[\/\-](\d{4}|\d{2}|\d{1})|((\d{4}|\d{2}|\d{1})[\/\-\s](\d{4}|\d{2}|\d{1}) [0-9]{2}:[0-9]{2}:[0-9]{2})/, n2.GTr = C, i2 && i2.HideRowFilter && r.iut && (g = (function(t3) {
          function n3(n4, e3, i3, r2, o2, a2) {
            var u2 = t3.call(this, n4, e3, i3, r2, o2) || this;
            return u2.cze = false, u2.nM = a2, u2;
          }
          return m(n3, t3), n3.prototype.Bst = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2, f2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2 = this.nM, S = C2.Mf, T = C2.z3(), x = T && T.gLt, A = function(t5) {
              return T.uFt(t5);
            }, I = this, k = I.filterButtonInfo.rowFilter;
            if (k) {
              if (f2 = 0, h2 = [], d2 = C2.O5t(t4), g2 = (p2 = T.getColumn(d2)).value || p2.name) {
                if ((l2 = A(g2)) ? x && x.rBt(g2) && l2.K$ !== x.rBt(g2) && T.eRt([g2], true) : T.eRt([g2]), l2 = A(g2), s(l2)) return;
                u2 = l2.K$, delete l2.K$, h2 = c(l2), f2 = h2.length, l2.K$ = u2, I.wTi = I.yTi(T.iRt);
              }
              if (I.Jut = false, m2 = C2.BSt[d2].cellType() || S.$f(), b2 = C2.BSt[d2].formatter(), f2 > v) {
                for (y2 = Math.ceil(f2 / v), I.CTi = [], w2 = 1; w2 < y2; w2++) M2 = void 0, M2 = w2 === y2 - 1 ? { startIndex: v * w2, endIndex: f2 - 1 } : { startIndex: v * w2, endIndex: v * (w2 + 1) - 1 }, I.CTi.push(M2);
                I.Yut(true), I.zTi(l2, h2, 0, v - 1, t4, n4, e3, i3, r2, o2, a2, m2, b2, u2), I.Vut(v / f2), setTimeout((function() {
                  I.asyncCreateFilterData(l2, h2, I.CTi, t4, n4, e3, i3, r2, o2, a2, m2, b2, u2, f2);
                }), 0);
              } else I.zTi(l2, h2, 0, f2 - 1, t4, n4, e3, i3, r2, o2, a2, m2, b2, u2);
            }
          }, n3.prototype.zTi = function(t4, n4, e3, i3, r2, o2, a2, u2, s2, f2, l2, h2, d2, v2) {
            var p2, g2, m2, b2, y2, M2, C2, S, T, x = this.nM, A = this, I = {}, k = A.filterButtonInfo.rowFilter, N = k.Mct, j = k.isFiltered(r2) && w(k.rrt[r2][0], A), D = 0 === N.length || k.isFiltered(r2) && 1 === N.length;
            for (D || (m2 = x.z3(), p2 = m2.Jce || {}, b2 = m2.getColumn(x.O5t(r2)), y2 = m2.ife(b2), g2 = c(p2).filter((function(t5) {
              return t5 !== y2;
            }))), M2 = function(n5) {
              var e4, i4, r3 = t4[n5];
              for (e4 = 0; e4 < r3.length; e4++) {
                for (i4 = 0; i4 < g2.length && p2[g2[i4]][r3[e4]]; i4++) ;
                if (i4 === g2.length) return true;
              }
              return false;
            }, C2 = function(t5, n5) {
              return !(!t5 && !D) || M2(n5);
            }, S = function(e4) {
              var i4 = n4[e4], o3 = i4, a3 = A.LTi(o3, I, r2, (function() {
                return A.xTi(t4[i4], A.wTi);
              }), h2, d2, v2), c2 = a3.row, p3 = a3.filterData, g3 = a3.filterText, m3 = a3.type, b3 = a3.isCheckedInCheckList;
              A.Pst(u2, s2, f2, c2, r2, l2, true, p3, g3, m3, !j && b3, C2(b3, i4));
            }, T = e3; T <= i3; T++) S(T);
          }, n3.prototype.LTi = function(t4, n4, e3, i3, r2, o2, a2) {
            var u2 = this;
            return M(this.nM, t4, n4, e3, i3, r2, o2, a2, (function() {
              u2.Jut = true;
            }), (function() {
              u2.cze = true;
            }));
          }, n3.prototype.yTi = function(t4) {
            var n4, e3 = [];
            for (n4 = 0; n4 < t4.length; n4++) e3[t4[n4]] = n4;
            return e3;
          }, n3.prototype.xTi = function(t4, n4) {
            var e3, i3, r2;
            for (r2 = 0; r2 < t4.length; r2++) if ((i3 = n4[e3 = t4[r2]]) !== d) return { row: i3, isCheckedInCheckList: true };
            return { row: n4[e3 = t4[0]], isCheckedInCheckList: false, index: e3 };
          }, n3.prototype.asyncCreateFilterData = function(t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
            var v2, p2, g2, m2 = this, b2 = this, y2 = this.nM, w2 = y2.Mf;
            if (w2.Cut) {
              for (v2 = /* @__PURE__ */ new Date(), p2 = /* @__PURE__ */ new Date(); e3.length > 0 && p2 - v2 <= 500; ) g2 = e3.shift(), b2.zTi(t4, n4, g2.startIndex, g2.endIndex, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2), b2.Vut(g2.endIndex / d2), p2 = /* @__PURE__ */ new Date();
              e3.length > 0 ? setTimeout((function() {
                m2.asyncCreateFilterData(t4, n4, b2.CTi, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2);
              }), 0) : (b2.Lst(r2, o2, false, s2, c2, u2, i3), b2.sut(), b2.Yut(false));
            }
          }, n3.prototype.Pst = function(t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2) {
            var h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = this, C2 = M2.sheet, S = M2.filterButtonInfo.rowFilter, T = a2 ? u2 : C2.getValue(i3, r2), x = a2 ? s2 : C2.vL(i3, r2, T);
            h2 = x = x ? x.trim() : x, d2 = M2.B3().Blanks, v2 = false, p2 = true, S.hst || (S.hst = {}), g2 = S.nM.BSt[S.nM.O5t(r2)].formatter(), b2 = "date" === (m2 = c2), M2.Dst(m2), 1 === M2.Pat.Date && (M2.Wst = M2.PTr(g2)), b2 && (h2 = S.Qst.format(T)), y2 = S.isFiltered(), "" !== x || !p2 && y2 && !(w2 = true) ? t4[h2] || p2 && (f2 ? (n4[x] = true, v2 = true, M2.Dat.push({ text: x, value: T, type: m2 }), o2.push({ text: x, value: T, type: m2 })) : o2.push({ text: x, value: T, noCheck: true, type: m2 }), false !== l2 && (e3.push({ text: x, value: T, type: m2, noCheck: !v2 }), t4[h2] = true)) : M2.hasBlank || (m2 = "blank", M2.hasBlank = true, f2 ? (n4[d2] = true, v2 = true, M2.Dat.push({ text: d2, value: T, type: m2 }), o2.push({ text: d2, value: T, type: m2 })) : o2.push({ text: d2, value: T, noCheck: true, type: m2 }), false !== l2 && e3.push({ text: d2, value: T, type: m2, noCheck: !v2 }));
          }, n3;
        })(r.iut), n2.TableDataDrivenFilterDialog = g);
      }, "./dist/plugins/table/table-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b = this && this.nJr || function() {
          return b = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, b.apply(this, arguments);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("./dist/plugins/table/table.js"), a = e2("./dist/plugins/table/table.ns.js"), u = e2("./dist/plugins/table/table-util.js"), s = r.Common.lt.ht, c = null, f = Math.abs, l = 10, h = "tableResize", d = new r.Common.ResourceManager(a.SR, "Tables"), v = d.getResource.bind(d), p = u.Util._4t, g = u.Util.E4t, m = u.Util.j4t, i2.GC$.extend(i2.nk.prototype, { mk: function(t3, n3) {
          var e3, i3 = this.Tk(t3, n3);
          i3 && ((e3 = this).I9 = e3.x9 = n3.Ut.getSelections(), n3.setSelection(i3.row, i3.col, i3.rowCount, i3.colCount));
        }, Tk: function(t3, n3) {
          var e3, r2, a2, u2, f2, l2, h2, d2 = n3.getSelections(), v2 = t3.tableSelectInfo, p2 = v2.table, g2 = 0, m2 = 0;
          if (p2.oL && (g2 = 1), p2.jO && (m2 = 1), e3 = c, r2 = v2.action, u2 = (a2 = n3.Bde) && a2.Ymt(), !s(u2) && u2.length > 0 && (d2 = u2), r2 === o.TableSelectionType.TABLE_ROW_SELECT) e3 = (0, i2.Ec)(t3.row, p2.iw, 1, p2.Tx);
          else if (r2 === o.TableSelectionType.TABLE_COL_SELECT) {
            for (f2 = 0; f2 < d2.length; f2++) if ((l2 = d2[f2]).col === t3.col && l2.row === p2.Ky + m2 && 1 === l2.colCount && l2.rowCount === p2.Sx - m2 - g2) {
              e3 = (0, i2.Ec)(p2.Ky, t3.col, p2.Sx, 1);
              break;
            }
            h2 = !e3 && -1 === t3.rowViewportIndex && d2 && d2[0] && d2[0].col === t3.col && d2[0].rowCount === p2.Sx, s(e3) && !h2 && (e3 = (0, i2.Ec)(p2.Ky + m2, t3.col, p2.Sx - m2 - g2, 1));
          } else if (r2 === o.TableSelectionType.TABLE_CORNER_SELECT) {
            for (f2 = 0; f2 < d2.length; f2++) if ((l2 = d2[f2]).col === p2.iw && l2.row === p2.Ky + m2 && l2.colCount === p2.Tx && l2.rowCount === p2.Sx - m2 - g2) {
              e3 = (0, i2.Ec)(p2.Ky, p2.iw, p2.Sx, p2.Tx);
              break;
            }
            s(e3) && (e3 = (0, i2.Ec)(p2.Ky + m2, p2.iw, p2.Sx - m2 - g2, p2.Tx));
          } else r2 === o.TableSelectionType.TABLE_SELECT && (e3 = (0, i2.Ec)(p2.Ky, p2.iw, p2.Sx, p2.Tx));
          return e3;
        }, KL: function(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, f2, h2, d2, v2, m2, b2, y, w, M, C = this.Mf, S = c;
          return C && !C.isActualProtected() && !C.isEditing() && n3 && n3.showResizeHandle() ? (e3 = t3.row, i3 = t3.col, r2 = t3.x, o2 = t3.y, a2 = t3.rowViewportIndex, u2 = t3.colViewportIndex, s2 = p(C, n3), f2 = g(C, n3), e3 === s2 && i3 === f2 && (d2 = (h2 = C.getCellRect(e3, i3, a2, u2)).x, v2 = h2.y, y = d2 + (m2 = h2.width), w = v2 + (b2 = h2.height), (!(M = C.options.rightToLeft) && r2 >= y - l && r2 <= y || M && r2 >= d2 && r2 <= d2 + l) && o2 >= w - l && o2 <= w && (S = { x: r2, y: o2, table: n3 })), S) : S;
        }, Sk: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this;
          true !== a2.$k && true !== a2.rb && (n3 = a2.Mf, (i3 = (e3 = t3.resizeTableHitInfo) && e3.table) && !i3.QL() && (a2.$k = true, a2.rb = true, a2.O4t = i3, a2.R4t = i3.Ky, a2.B4t = i3.iw, a2.L4t = i3.Sx, a2.F4t = i3.Tx, r2 = a2.R4t + a2.L4t - 1, o2 = a2.B4t + a2.F4t - 1, a2.P4t = n3.getCellRect(r2, o2), a2.G4t = i3.range(), a2.Rk = { e9: t3.rowViewportIndex, r9: t3.colViewportIndex, Bk: t3.hitTestType }, a2.Ok()));
        }, t9: function() {
          var t3, n3, e3, r2 = this, o2 = r2.Mf;
          if (r2.Rk && r2.$k && r2.rb && r2.O4t) {
            if (r2.U4t(), r2.H4t() && (r2.z4t = r2.V4t(), r2.Y4t(), r2.Z4t(), (t3 = r2.W4t) || (t3 = r2.Q4t()), !t3.equals(r2.K4t) && (r2.W4t = (0, i2.Ec)(r2.K4t.row, r2.K4t.col, r2.K4t.rowCount, r2.K4t.colCount), n3 = b(b({}, r2.K4t), { rowCount: r2.K4t.rowCount + r2.ykr() }), e3 = m(o2, r2.O4t, r2.Q4t(), n3)))) return r2.$4t(), void o2.Dn.q4t();
            r2.a9();
          }
        }, OD: function() {
          var t3, n3 = this, e3 = n3.Mf;
          n3.l9(), n3.$k && n3.rb && n3.K4t && n3.O4t ? (n3.$k = false, n3.rb = false, n3.J4t() ? (t3 = n3.Q4t(), n3.X4t(), t3.equals(n3.K4t) ? e3.Dn.q4t() : e3.Qy().execute({ cmd: h, sheetName: e3.name(), tableName: n3.O4t.name(), resizeToRange: n3.K4t }), n3.$4t()) : (n3.$4t(), e3.Dn.q4t())) : n3.$4t();
        }, Q4t: function() {
          var t3 = this.O4t;
          return (0, i2.Ec)(t3.Ky, t3.iw, t3.Sx, t3.Tx);
        }, U4t: function() {
          var t3 = this, n3 = t3.Q9(), e3 = t3.K9();
          t3.tSt = n3, t3.nSt = e3;
        }, H4t: function() {
          var t3 = this, n3 = t3.R4t, e3 = t3.B4t, i3 = t3.tSt, r2 = t3.nSt, o2 = t3.O4t, a2 = o2.jO, u2 = a2 ? n3 + 1 : n3, s2 = e3;
          return i3 >= u2 && r2 >= e3;
        }, V4t: function() {
          var t3, n3 = this, e3 = n3.fk, i3 = n3.P4t, r2 = i3.x + i3.width, o2 = i3.y + i3.height, a2 = e3.x, u2 = e3.y, s2 = f(o2 - u2), c2 = f(r2 - a2);
          return t3 = s2 >= c2 ? u2 < o2 ? 2 : 3 : a2 < r2 ? 0 : 1;
        }, Y4t: function() {
          var t3 = this, n3 = t3.R4t, e3 = t3.B4t, r2 = t3.tSt, o2 = t3.nSt, a2 = t3.z4t, u2 = t3.L4t, s2 = t3.F4t;
          switch (a2) {
            case 0:
            case 1:
              s2 = f(o2 - e3) + 1;
              break;
            case 2:
            case 3:
              u2 = f(r2 - n3) + 1;
          }
          t3.K4t ? (t3.K4t.rowCount = u2, t3.K4t.colCount = s2) : t3.K4t = (0, i2.Ec)(n3, e3, u2, s2);
        }, Z4t: function() {
          var t3 = this, n3;
          t3.Mf.Dn.q4t(), t3.G4t = t3.eSt();
        }, eSt: function() {
          var t3 = this, n3 = t3.K4t, e3 = n3.row, r2 = n3.col, o2 = n3.rowCount, a2 = n3.colCount;
          return (0, i2.Ec)(e3, r2, o2, a2);
        }, ykr: function() {
          var t3 = this, n3 = t3.O4t, e3;
          return 2 === t3.z4t && n3.oL ? 1 : 0;
        }, X4t: function() {
          var t3 = this;
          t3.K4t.rowCount += t3.ykr();
        }, J4t: function() {
          var t3 = this, n3 = t3.Mf, e3 = false, r2 = n3.Ut, a2 = n3.tables, u2 = t3.O4t, c2 = t3.K4t, f2 = c2.row, l2 = c2.col, h2 = c2.rowCount, d2 = c2.colCount, m2 = t3.tSt, b2 = t3.nSt, y = p(n3, u2), w = g(n3, u2), M = t3.z4t, C = u2.IB;
          return s(y) || s(w) || (0, o.hasRowFilter)(n3, new i2.Range(f2, l2, h2, d2)) || (r2.eE(f2, l2, h2, d2) || r2.GT(f2, l2, h2, d2) ? n3.jT(6, v().Exp_TableResizeToSpan) : C && C.isFiltered() ? 2 === M ? n3.jT(6, v().Exp_TableResizeWithHidden) : 3 === M && u2.oL ? n3.jT(6, v().Exp_TableResizeWithFilter) : e3 = true : 2 === M && t3.iSt(y, m2) || 0 === M && t3.rSt(w, b2) ? n3.jT(6, v().Exp_TableResizeWithHidden) : 1 === M && (a2.Pl(f2, w + 1, h2, b2 - w) || a2.oSt(f2, w + 1, h2, b2 - w)) || 3 === M && (a2.Pl(y + 1, l2, m2 - y, d2) || a2.oSt(y + 1, l2, m2 - y, d2)) ? n3.jT(6, v().Exp_TableResizeToTable) : e3 = true), e3;
        }, iSt: function(t3, n3) {
          var e3, i3 = this.Mf, r2, o2 = false;
          for (r2 = t3; r2 > n3; r2--) if (i3.getRowHeight(r2) <= 0) {
            o2 = true;
            break;
          }
          return o2;
        }, rSt: function(t3, n3) {
          var e3, i3 = this.Mf, r2, o2 = false;
          if (!o2) {
            for (r2 = t3; r2 > n3; r2--) if (i3.getColumnWidth(r2) <= 0) {
              o2 = true;
              break;
            }
          }
          return o2;
        }, $4t: function() {
          var t3 = this;
          t3.$k = false, t3.rb = false, t3.Rk = c, t3.K4t = c, t3.W4t = c;
        } });
      }, "./dist/plugins/table/table-render.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        function a(t3, n3, e3, r2) {
          var o2, a2, u, s, c, f, l, h, d, v, p, g = t3.rt;
          g.K4t && (a2 = (o2 = g.K4t).row, u = o2.col, s = o2.rowCount, c = o2.colCount, (l = (f = t3.Tb) - a2) > 0 && (s -= l, a2 = f), (h = t3.Ab) > 0 && (c -= d = h - u, u = h), v = new i2.Range(a2, u, s, c), p = t3.getRangeRect(e3, r2, v), n3.strokeStyle = t3.getSelectionBorderColor(), n3.strokeRect(p.x, p.y, p.width, p.height));
        }
        Object.defineProperty(n2, "__esModule", { value: true }), o = "tableRender", (r = (i2 = e2("Core")).GC$.extend)(i2.g7.prototype, { q4t: function() {
          var t3 = this, n3 = t3.Mf;
          n3.My > 0 || t3.E1();
        } }), i2.Worksheet.ch(o, { paintAdornment: function(t3) {
          var n3 = this, e3 = t3.ctx, i3 = n3.rt;
          i3 && i3.Rk && i3.$k && a(n3, e3, i3.nD(), i3.eD());
        } });
      }, "./dist/plugins/table/table-theme.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt;
        function ht() {
          var t3, n3 = {};
          for (t3 = 1; t3 <= 28; t3++) t3 <= 21 && (n3["TABLESTYLELIGHT" + t3] = true), t3 <= 11 && (n3["TABLESTYLEDARK" + t3] = true), n3["TABLESTYLEMEDIUM" + t3] = true;
          return n3;
        }
        function dt(t3, n3) {
          t3.name(n3.name()), o(F, (function(e3, i3) {
            t3[i3](n3[i3]());
          })), o(_, (function(e3, i3) {
            var r2 = n3[i3]();
            t3[i3](r2 ? r2.Gf() : b);
          })), t3.builtInName(n3.builtInName(), false);
        }
        function vt(t3, n3) {
          return isNaN(n3) ? n3 : new i2.LineBorder(t3, n3);
        }
        function pt(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2) {
          var f2 = new tt();
          return n3 && (f2.backColor = n3), e3 && (f2.foreColor = e3), i3 && (f2._fontWeight = G, f2._fontSize = U, f2._fontFamily = H, f2._font = P), r2 && (f2.borderLeft = vt(t3, r2)), o2 && (f2.borderTop = vt(t3, o2)), a2 && (f2.borderRight = vt(t3, a2)), u2 && (f2.borderBottom = vt(t3, u2)), s2 && (f2.borderHorizontal = vt(t3, s2)), c2 && (f2.borderVertical = vt(t3, c2)), f2;
        }
        function gt(t3) {
          return 0 === t3 ? "Text 1" : "Accent " + t3;
        }
        function mt(t3) {
          var n3 = gt(t3), e3 = n3 + " 80", i3 = new nt();
          return i3[y](pt(n3, 0, n3, 1, 0, 0, 0, 1)), i3[M](pt(n3, 0, n3, 0, 0, 1, 0, 1)), i3[T](pt(n3, e3)), i3[S](pt(n3, 0, n3, 1)), i3[C](pt(n3, 0, n3, 1)), i3[A](pt(n3, e3)), i3[w](pt(n3, 0, n3, 1, 0, 1)), i3;
        }
        function bt(t3) {
          var n3 = gt(t3), e3 = new nt();
          return e3[y](pt(n3, n3, et, 1)), e3[M](pt(n3, 0, 0, 0, 1, 1, 1, 1)), e3[T](pt(n3, 0, 0, 0, 0, 1)), e3[x](pt(n3, 0, 0, 0, 0, 1)), e3[A](pt(n3, 0, 0, 0, 1)), e3[I](pt(n3, 0, 0, 0, 1)), e3[S](pt(n3, 0, 0, 1)), e3[C](pt(n3, 0, 0, 1)), e3[w](pt(n3, 0, 0, 1, 0, 6)), e3;
        }
        function yt(t3) {
          var n3 = gt(t3), e3 = n3 + " 80", i3 = new nt();
          return i3[y](pt(n3, 0, 0, 1, 0, 0, 0, 2)), i3[M](pt(n3, 0, 0, 0, 1, 1, 1, 1, 1, 1)), i3[T](pt(n3, e3)), i3[A](pt(n3, e3)), i3[S](pt(n3, 0, 0, 1)), i3[C](pt(n3, 0, 0, 1)), i3[w](pt(n3, 0, 0, 1, 0, 6)), i3;
        }
        function wt(t3) {
          var n3 = gt(t3), e3 = n3 + " 20", i3 = n3, r2 = n3 + " 80", o2 = new nt();
          return o2[y](pt(e3, i3, et, 1)), o2[M](pt(e3, 0, 0, 0, 1, 1, 1, 1, 1)), o2[T](pt(e3, r2)), o2[A](pt(e3, r2)), o2[S](pt(e3, 0, 0, 1)), o2[C](pt(e3, 0, 0, 1)), o2[w](pt(e3, 0, it, 1, 0, 6)), o2;
        }
        function Mt(t3) {
          var n3 = gt(t3), e3 = et, i3 = n3, r2 = n3 + " 60", o2 = n3 + " 80", a2 = new nt();
          return a2[y](pt(e3, i3, et, 1, 0, 0, 0, 2, 0, 1)), a2[M](pt(e3, o2, 0, 0, 0, 0, 0, 0, 1, 1)), a2[T](pt(e3, r2)), a2[A](pt(e3, r2)), a2[S](pt(e3, i3, et, 1)), a2[C](pt(e3, i3, et, 1)), a2[w](pt(e3, i3, et, 1, 0, 2, 0, 0, 0, 1)), a2;
        }
        function Ct(t3) {
          var n3 = gt(t3), e3 = "#D3D3D3", r2 = n3, o2 = e3, a2 = 0 === t3 ? it : e3, u2 = new nt();
          return u2[y](pt(it, r2, et, 1, 0, 2, 0, 2)), u2[M](pt(a2, 0, 0, 0, 1, new i2.LineBorder(it, 2), 1, new i2.LineBorder(it, 2), 0 === t3 ? 1 : 0, 1)), u2[T](pt(a2, o2)), u2[A](pt(a2, o2)), u2[S](pt(a2, r2, et)), u2[C](pt(a2, r2, et)), u2[j](pt(a2, r2, et, 1)), u2[D](pt(a2, r2, et, 1)), u2[w](pt(it, 0, it, 0, 0, 6)), u2;
        }
        function St(t3) {
          var n3 = gt(t3), e3 = n3, r2 = n3 + " 40", o2 = n3 + " 80", a2 = n3 + " 60", u2 = n3 + " 80", s2 = new nt();
          return s2[y](pt(r2, o2, it, 1, 1, 1, 1, 1, 0, 1)), s2[M](pt(r2, o2, 0, 0, 1, 1, 1, 1, 1, 1)), s2[T](pt(r2, a2)), s2[A](pt(r2, a2)), s2[S](pt(r2, 0, 0, 1)), s2[C](pt(r2, 0, 0, 1)), s2[w](pt(r2, u2, it, 1, 1, new i2.LineBorder(e3, 2), 1, 1, 0, 1)), s2;
        }
        function Tt(t3) {
          var n3 = gt(t3), e3 = it, i3 = 0 === t3 ? n3 + " 25" : n3 + " -25", r2 = 0 === t3 ? n3 + " 50" : n3, o2 = 0 === t3 ? n3 : n3 + " -50", a2 = new nt();
          return a2[y](pt(et, e3, et, 1, 0, 0, 0, 2)), a2[M](pt(n3, r2, et)), a2[T](pt(n3, i3)), a2[A](pt(n3, i3)), a2[S](pt(et, i3, et, 1, 0, 0, 2)), a2[C](pt(et, i3, et, 1, 2)), a2[w](pt(et, o2, et, 1, 0, 2)), a2;
        }
        function xt(t3) {
          var n3, e3, i3, r2, o2, a2;
          function u2(t4, n4) {
            return t4 < 0 || t4 > 3 ? "" : { tableBackground: ["Background 1 -15", "Accent 1 80", "Accent 3 80", "Accent 5 80"], stripColor: ["Background 1 -35", "Accent 1 60", "Accent 3 60", "Accent 5 60"], headerColor: ["Text 1", "Accent 2", "Accent 4", "Accent 6"] }[n4][t4];
            var e4;
          }
          return n3 = gt(t3), e3 = u2(t3, "headerColor"), i3 = u2(t3, "stripColor"), o2 = r2 = u2(t3, "tableBackground"), (a2 = new nt())[y](pt(n3, e3, et)), a2[M](pt(n3, r2)), a2[T](pt(n3, i3)), a2[A](pt(n3, i3)), a2[S](pt(n3, 0, 0, 1)), a2[C](pt(n3, 0, 0, 1)), a2[w](pt(it, o2, 0, 1, 0, 6)), a2;
        }
        for (Object.defineProperty(n2, "__esModule", { value: true }), n2.TableThemes = n2.TableTheme = n2.TableStyle = void 0, i2 = e2("Core"), r = e2("Common"), o = i2.GC$.each, a = i2.GC$.isEmptyObject, u = i2.mt.T1, s = JSON.stringify, c = JSON.parse, f = i2.mt.p0, l = i2.mt.go, h = i2.mt.vo, d = i2.mt.n1, v = i2.NodeHelper.sr, p = r.Common.lt.tv, g = Math.floor, m = void 0, b = null, _ = [y = "headerRowStyle", w = "footerRowStyle", M = "wholeTableStyle", C = "highlightLastColumnStyle", S = "highlightFirstColumnStyle", T = "firstRowStripStyle", x = "secondRowStripStyle", A = "firstColumnStripStyle", I = "secondColumnStripStyle", k = "firstHeaderCellStyle", N = "lastHeaderCellStyle", j = "firstFooterCellStyle", D = "lastFooterCellStyle"], F = [O = "firstRowStripSize", E = "secondRowStripSize", R = "firstColumnStripSize", L = "secondColumnStripSize"], B = "name", P = "bold 14.667px calibri", G = "bold", U = "14.667px", H = "calibri", V = { wholeTable: "wholeTableStyle", headerRow: "headerRowStyle", totalRow: "footerRowStyle", firstColumn: "highlightFirstColumnStyle", lastColumn: "highlightLastColumnStyle", firstRowStripe: "firstRowStripStyle", secondRowStripe: "secondRowStripStyle", firstColumnStripe: "firstColumnStripStyle", secondColumnStripe: "secondColumnStripStyle", firstHeaderCell: "firstHeaderCellStyle", lastHeaderCell: "lastHeaderCellStyle", firstTotalCell: "firstFooterCellStyle", lastTotalCell: "lastFooterCellStyle" }, X = (J = ["backColor", "foreColor", z = "borderLeft", Y = "borderTop", Z = "borderRight", W = "borderBottom", Q = "borderHorizontal", K = "borderVertical", "textDecoration", "fontStyle", "fontWeight", "fontSize", "fontFamily", "_fontVariant", "_fontStretch", "_lineHeight"]).concat(["hAlign", "vAlign", "wordWrap", "shrinkToFit", "textIndent", "showEllipsis", "textOrientation", "textDirection"]), q = i2.W.F2e, $ = ht(), tt = (function() {
          function t3(t4, n3, e3, i3, r2, a2, s2, c2, f2, l2, h2, d2, v2, p2) {
            var g2 = this, m2 = arguments;
            o(J, (function(t5, n4) {
              g2[n4] = t5 > 1 ? m2[t5 + 1] : m2[t5];
            })), u(e3) && (g2.font = e3);
          }
          return Object.defineProperty(t3.prototype, "font", { get: function() {
            return this._font;
          }, set: function(t4) {
            i2.W.oce(this, t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontSize", { get: function() {
            return this._fontSize;
          }, set: function(t4) {
            i2.W.W2e(this, t4);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontStyle", { get: function() {
            return this._fontStyle;
          }, set: function(t4) {
            var n3 = this;
            n3._fontStyle = t4, n3._font = q(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontWeight", { get: function() {
            return this._fontWeight;
          }, set: function(t4) {
            var n3 = this;
            n3._fontWeight = t4, n3._font = q(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight);
          }, enumerable: false, configurable: true }), Object.defineProperty(t3.prototype, "fontFamily", { get: function() {
            return this._fontFamily;
          }, set: function(t4) {
            var n3 = this;
            n3._fontFamily = t4, n3._font = q(n3._fontStyle, n3._fontWeight, n3._fontSize, n3._fontFamily, n3._fontVariant, n3._fontStretch, n3._lineHeight);
          }, enumerable: false, configurable: true }), t3.prototype.h5 = function(t4, n3, e3, i3, r2) {
            var a2 = this;
            e3 && u(a2[z]) && !u(t4[z]) && (t4[z] = a2[z], t4[z].level = 20), n3 && u(a2[Y]) && !u(t4[Y]) && (t4[Y] = a2[Y], t4[Y].level = 20), r2 && u(a2[Z]) && !u(t4[Z]) && (t4[Z] = a2[Z], t4[Z].level = 20), i3 && u(a2[W]) && !u(t4[W]) && (t4[W] = a2[W], t4[W].level = 20), n3 || !u(a2[Q]) || u(t4[Y]) || (t4[Y] = a2[Q], t4[Y].level = 20), i3 || !u(a2[Q]) || u(t4[W]) || (t4[W] = a2[Q], t4[W].level = 20), e3 || !u(a2[K]) || u(t4[z]) || (t4[z] = a2[K], t4[z].level = 20), r2 || !u(a2[K]) || u(t4[Z]) || (t4[Z] = a2[K], t4[Z].level = 20), o(a2.tKr ? X : J, (function(n4, e4) {
              e4.indexOf("border") >= 0 || u(a2[e4]) && !u(t4[e4]) && ("object" == typeof a2[e4] ? t4[e4] = p(a2[e4]) : t4[e4] = a2[e4]);
            }));
          }, t3.prototype.Gf = function() {
            var n3 = new t3(), e3 = s(this.toJSON());
            return n3.fromJSON(c(e3)), n3;
          }, t3.prototype.toJSON = function() {
            var t4 = this, n3 = {};
            return o(t4.tKr ? X : J, (function(e3, i3) {
              var r2 = t4[i3], o2 = r2 && r2.toJSON ? r2.toJSON() : r2;
              n3[i3] = o2 !== b && a(o2) ? m : o2;
            })), n3.font = t4.font, c(s(n3));
          }, t3.prototype.fromJSON = function(t4, n3) {
            if (t4) {
              var e3 = this;
              o(e3.tKr ? X : J, (function(r2, o2) {
                var a2, s2 = t4[o2];
                u(s2) && (o2.indexOf("border") >= 0 ? ((a2 = new i2.LineBorder()).fromJSON(s2, n3), e3[o2] = a2) : e3[o2] = s2);
              })), t4.font && (e3.font = t4.font);
            }
          }, t3;
        })(), n2.TableStyle = tt, i2.GC$.extend(i2.StyleManager.prototype, { addTableTheme: function(t3) {
          var n3 = this, e3 = n3.aSt;
          e3 || (e3 = n3.aSt = {}), e3[t3.name()] = t3;
        }, getTableTheme: function(t3) {
          var n3, e3, i3 = this, r2 = i3.aSt;
          return r2 || (r2 = i3.aSt = {}), $[t3.toUpperCase()] ? r2[n3 = t3.substr(10).toLowerCase()] ? r2[n3] : (dt(e3 = new nt(), rt[n3]), i3.addTableTheme(e3), e3) : r2[t3];
        } }), nt = (function() {
          function t3() {
          }
          return t3.prototype.toJSON = function() {
            var t4, n3 = this, e3 = { name: n3.name() };
            return o(_, (function(i3, r2) {
              (t4 = n3[r2]()) && (e3[r2] = t4.toJSON());
            })), o(F, (function(i3, r2) {
              1 !== (t4 = n3[r2]()) && (e3[r2] = t4);
            })), n3.tKr && (e3.tKr = n3.tKr), a(e3) ? m : e3;
          }, t3.prototype.fromJSON = function(t4, n3) {
            var e3, i3, r2, a2;
            t4 && (e3 = this, (i3 = t4.buildInName) ? dt(e3, rt[i3.toLowerCase()]) : (r2 = t4.name, a2 = u(r2) ? r2 : t4.Zc, u(a2) && e3.name(a2, false), o(F, (function(n4, i4) {
              var r3 = t4[i4] !== m ? t4[i4] : t4["_" + i4];
              r3 ? e3[i4](r3, false) : e3[i4](void 0);
            })), o(_, (function(i4, r3) {
              var o2, a3 = t4[r3] !== m ? t4[r3] : t4["_" + r3];
              a3 ? ((o2 = new tt()).tKr = t4.tKr, o2.fromJSON(a3, n3), e3[r3](o2, false)) : e3[r3](void 0);
            })), e3.tKr = t4.tKr));
          }, t3.prototype.yh = function(t4, n3) {
            var e3, r2, a2, u2, s2, c2 = this;
            for (c2.name(d(t4.name)), r2 = function(t5) {
              var e4 = v(t5.dxfId, 0), r3 = t5.type, a3 = v(t5.size, 1), u3 = new tt(), s3 = V[r3 || "wholeTable"];
              "function" == typeof c2[s3] && void 0 !== t5.dxfId && (n3.getDxf(e4, u3, true), o(J, (function(t6, n4) {
                n4.indexOf("border") >= 0 && u3[n4] === b && (u3[n4] = new i2.LineBorder());
              })), c2[s3](u3, false)), "firstRowStripe" !== r3 && "secondRowStripe" !== r3 && "firstColumnStripe" !== r3 && "secondColumnStripe" !== r3 || c2[r3.substr(0, r3.length - 1) + "Size"](a3, false);
            }, a2 = 0, u2 = e3 = l(t4, "tableStyleElement"); a2 < u2.length; a2++) r2(s2 = u2[a2]);
            n3.addTableTheme(c2);
          }, t3.prototype.wh = function(t4) {
            var n3, e3, r2 = this, a2 = [], u2 = { n_: "tableStyle", c_: a2 }, s2 = r2.builtInName();
            return s2 !== b && s2 !== m ? u2.name = "TableStyle" + s2 : (u2.name = h(r2.name()), n3 = 0, o(_, (function(o2, u3) {
              if (e3 = r2[u3]()) {
                var s3 = t4.getDxfIndex(e3, r2.tKr ? [T, x].indexOf(u3) > -1 : m);
                s3 !== m && (n3++, a2.push({ n_: "tableStyleElement", type: i2.SJSStylePropsToStyleProps[u3], dxfId: s3 }));
              }
            })), o(F, (function(t5, i3) {
              (e3 = r2[i3]()) && (n3++, a2.push({ n_: "tableStyleElement", type: i3.replace("Size", "e"), size: e3 }));
            })), u2.count = n3, u2.pivot = "0"), u2;
          }, t3;
        })(), n2.TableTheme = nt, nt.prototype.name = f(B), nt.prototype.builtInName = f("builtInName"), o(_, (function(t3, n3) {
          nt.prototype[n3] = f(n3);
        })), o(F, (function(t3, n3) {
          nt.prototype[n3] = f(n3, 1);
        })), et = "white", it = "black", rt = /* @__PURE__ */ (function() {
          function t3() {
          }
          return t3;
        })(), n2.TableThemes = rt, ot = 1; ot <= 28; ot++) ut = g((at = ot - 1) / 7), ot <= 21 && ut >= 0 && ut < 3 && (ct = "Light" + ot, (st = [mt, bt, yt][ut](at % 7)).name && st.name(ct), st.builtInName && st.builtInName(ct), rt["light" + ot] = st), ot <= 11 && ut >= 0 && ut < 2 && (ft = "Dark" + ot, (st = [Tt, xt][ut](at % 7)).name(ft), st.builtInName(ft), rt["dark" + ot] = st), ut >= 0 && ut < 4 && (lt = "Medium" + ot, (st = [wt, Mt, Ct, St][ut](at % 7)).name(lt), st.builtInName(lt), rt["medium" + ot] = st);
        i2.GC$.extend(i2.Workbook.prototype, { defaultTableTheme: function(t3) {
          var n3, e3, i3, r2, o2 = this;
          return arguments.length > 0 ? (n3 = t3 && t3.toLowerCase(), e3 = o2.Bur, o2.Bur = n3, e3 !== n3 && o2.CYr({ propName: "defaultTableStyle", value: n3 }), (i3 = o2.customTableThemes.get(n3)) || (rt[n3] ? rt[n3] : void 0)) : (r2 = o2.Bur) ? rt[r2] || o2.customTableThemes.get(r2) : void 0;
        } });
      }, "./dist/plugins/table/table-util.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g;
        function m(t3) {
          throw new Error(t3);
        }
        function b(t3, n3, e3, i3, r2, a2) {
          o && (!i3 && r2 && (i3 = D(t3, r2, n3, e3)), t3.zI(n3, e3, i3, r2, l, l, l, l, l, l, a2));
        }
        function y(t3, n3, e3, i3, r2, o2) {
          t3.setValue(n3, e3, i3, r2, o2);
        }
        function w(t3) {
          t3.suspendPaint();
        }
        function M(t3) {
          t3.resumePaint();
        }
        function C(t3) {
          return t3.op().Hyt();
        }
        function S(t3) {
          o && t3.suspendCalcService();
        }
        function T(t3, n3) {
          o && t3.resumeCalcService(n3);
        }
        function x(t3) {
          t3 && (w(t3), t3.suspendEvent(), S(t3));
        }
        function A(t3, n3) {
          void 0 === n3 && (n3 = false), t3 && (T(t3, n3), t3.resumeEvent(), M(t3));
        }
        function I(t3) {
          return t3.rowCount;
        }
        function k(t3) {
          return t3.colCount;
        }
        function N(t3) {
          return t3 && !(/\d/.test(t3[0]) || /[\s\+\-\*\\:%!\[\]]/.test(t3) || -1 !== ["C", "c", "R", "r"].indexOf(t3) || /^[A-Za-z]{1,3}(\$)?\d+$/.test(t3) || /^[Rr]\d*[Cc]\d*$/.test(t3) || t3.length >= 255);
        }
        function j(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2;
          return n3 ? ((u2 = t3.Uw())._wt = r2, u2.lsr = a2, s2 = t3.Lp.parse(u2, n3, e3, i3, false, o2, false, t3.options.keepUnknownFormulas), delete u2._wt, delete u2.lsr, s2) : f;
        }
        function D(t3, n3, e3, i3, r2) {
          return r2 = r2 === l || r2, t3.Lp.unparse(t3.Uw(), n3, e3, i3, false, r2);
        }
        function _(t3, n3, e3, i3) {
          var r2 = t3.Uw();
          return t3.Lp.evaluateParsedFormula(r2, i3, { row: n3, col: e3 }, false, true);
        }
        function O(t3, n3, e3) {
          var i3, r2, o2, a2, u2, s2, c2, f2 = null === (o2 = null === (r2 = null === (i3 = n3 || e3.jS) || void 0 === i3 ? void 0 : i3.Mf) || void 0 === r2 ? void 0 : r2.parent) || void 0 === o2 ? void 0 : o2.sheets;
          if (f2) {
            for (u2 = 0, s2 = f2.length; u2 < s2; u2++) if ((c2 = null === (a2 = f2[u2].tables) || void 0 === a2 ? void 0 : a2.findByName(t3)) && (!e3 || e3 !== c2)) return c2;
          }
        }
        function E(t3) {
          var n3, e3, i3, r2;
          return !!t3 && (N(t3) || m(g().Exp_TableNameInvalid), e3 = (n3 = this).name(), i3 = n3.jS, t3 !== e3 && (!i3 || (!(r2 = O(t3, i3, n3)) || n3 === r2)));
        }
        function R(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          for (o2 = e3; o2 >= n3; o2--) for (u2 = i3; u2 <= r2; u2++) {
            if (B(a2 = t3.Z_(o2, u2))) return o2;
            if (F(t3, o2, u2)) return o2;
            if (s2 = t3.Ut.findSpan(o2, u2)) return s2.row + s2.rowCount - 1;
          }
          return -1;
        }
        function L(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2;
          for (a2 = r2; a2 >= i3; a2--) for (o2 = n3; o2 <= e3; o2++) {
            if (B(u2 = t3.Z_(o2, a2))) return a2;
            if (F(t3, o2, a2)) return a2;
            if (s2 = t3.Ut.findSpan(o2, a2)) return s2.col + s2.colCount - 1;
          }
          return -1;
        }
        function F(t3, n3, e3) {
          var i3 = t3.getValue(n3, e3), r2, o2;
          return !(i3 === f || !c(i3)) || (!!(r2 = t3.getSparkline && t3.getSparkline(n3, e3)) || B(o2 = t3.Z_(n3, e3)));
        }
        function B(t3) {
          return !(!t3 || !(t3.backColor || t3.backgroundImage || t3.borderBottom || t3.borderLeft || t3.borderRight || t3.borderTop || t3.cellType || t3.diagonalDown || t3.diagonalUp));
        }
        function P(t3, n3, e3, i3, r2, o2, a2, u2) {
          return t3 >= r2 && !(n3 === a2 && n3 + i3 - 1 === u2) && (n3 < a2 && n3 + i3 > a2 || n3 >= a2 && n3 <= u2 && n3 + i3 - 1 > u2);
        }
        function G(t3, n3, e3, i3, r2, o2, a2, u2) {
          return n3 >= a2 && !(t3 === r2 && t3 + e3 - 1 === o2) && (t3 < r2 && t3 + e3 > r2 || t3 >= r2 && t3 <= o2 && t3 + e3 - 1 > o2);
        }
        function U(t3, n3, e3) {
          return { col: n3, leadingCellRow: e3, row: t3 };
        }
        function H(t3, n3, e3) {
          var i3 = f, r2 = n3.Ky, o2 = n3.endRow();
          for (e3 && (o2 -= n3.oL ? 1 : 0); o2 >= r2 && t3.getRowHeight(o2) <= 0; ) o2--;
          return o2 >= r2 && (i3 = o2), i3;
        }
        function V(t3, n3) {
          for (var e3 = f, i3 = n3.iw, r2 = n3.endColumn(); r2 >= i3 && t3.getColumnWidth(r2) <= 0; ) r2--;
          return r2 >= i3 && (e3 = r2), e3;
        }
        function z(t3) {
          var n3, e3, i3, r2, o2 = t3.Ut, a2 = o2.W_(3).dataTable, u2 = o2.getLastNonNullRow(3, true), s2 = t3.getRowCount(), c2 = t3.getColumnCount(), f2 = -1;
          for (i3 = s2 - 1; i3 > -1; i3--) if (n3 = a2[i3]) {
            for (r2 = 0; r2 < c2; r2++) if ((e3 = n3[r2]) && !d(e3.value)) return h(i3, u2);
          }
          return h(f2, u2);
        }
        function Y(t3, n3) {
          var e3, r2, o2, a2 = n3.jS, u2 = n3.Ky, s2 = n3.Sx, c2 = u2 + s2 - 1, f2 = n3.iw, l2 = f2 + n3.Tx - 1, d2 = z(t3), v2 = a2 ? a2.uSt() : -1;
          return e3 = c2, (d2 = h(d2, v2)) > c2 && (r2 = c2 + 1, o2 = new i2.Range(r2, f2, d2 - c2, l2 - f2 + 1), e3 = h(R(t3, r2, d2, f2, l2), a2.uSt(o2))), e3;
        }
        function Z(t3) {
          var n3, e3, i3, r2, o2 = t3.Ut, a2 = o2.W_(3).dataTable, u2 = o2.getLastNonNullCol(3, true), s2 = t3.getRowCount(), c2 = t3.getColumnCount(), f2 = -1;
          for (i3 = c2 - 1; i3 > -1; i3--) for (r2 = 0; r2 < s2; r2++) if ((e3 = (n3 = a2[r2]) && n3[i3]) && !d(e3.value)) return h(i3, u2);
          return h(f2, u2);
        }
        function W(t3, n3) {
          var e3, r2, o2, a2 = n3.jS, u2 = n3.Ky, s2 = u2 + n3.Sx - 1, c2 = n3.iw, f2 = n3.Tx, l2 = c2 + f2 - 1, d2 = Z(t3), v2 = a2 ? a2.sSt() : -1;
          return e3 = l2, (d2 = h(d2, v2)) > l2 && (r2 = l2 + 1, o2 = new i2.Range(u2, r2, s2 - u2 + 1, d2 - l2), e3 = h(L(t3, u2, s2, r2, d2), a2.sSt(o2))), e3;
        }
        function Q(t3, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2) {
          var l2, h2, d2 = t3.getRowCount() - 1, v2 = t3.getColumnCount() - 1, p2 = t3.Ut.getSpans(), b2 = n3.jS && n3.jS.U3.QP();
          return !u2 && (!s2 && d2 - i3 < a2 || s2 && v2 - o2 < a2) ? (c2 || m(g().Exp_TableAddRowNoEnoughRoom), f2 && (f2.message = g().Exp_TableAddRowNoEnoughRoom), true) : (l2 = s2 ? G : P, (h2 = p2.some((function(t4) {
            var n4 = t4.row, a3 = t4.col, u3 = t4.rowCount, s3 = t4.colCount;
            return l2(n4, a3, u3, s3, e3, i3, r2, o2);
          }))) ? (c2 || m(g().Exp_TableAddRowIntersectSpan), f2 && (f2.message = g().Exp_TableAddRowIntersectSpan)) : b2 && ((h2 = b2.some((function(t4) {
            var n4 = t4.Ky, a3 = t4.iw, u3 = t4.Sx, s3 = t4.Tx;
            return l2(n4, a3, u3, s3, e3, i3, r2, o2);
          }))) && !c2 && m(g().Exp_TableAddRowIntersectTable), f2 && (f2.message = g().Exp_TableAddRowIntersectTable)), h2);
        }
        function K(t3, n3, e3) {
          var r2, o2, a2, u2, s2 = n3.row, c2 = n3.col, f2 = s2 + n3.rowCount, h2 = c2 + n3.colCount;
          for (r2 = s2; r2 < f2; r2++) for (o2 = c2; o2 < h2; o2++) if (u2 = (a2 = t3.getCell(r2, o2)).value(), !d(u2) && "" !== u2 || t3.Ut.findSpan(r2, o2)) {
            if (e3 && e3.equals(new i2.Range(a2.row, a2.col, 1, 1))) continue;
            return new i2.Range(r2, o2, 1, 1);
          }
          return l;
        }
        function J(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2;
          for (u2 = n3; u2 <= e3; u2++) for (s2 = i3; s2 <= r2; s2++) if (c2 = t3.l0(u2, s2, "locked"), o2 && !c2 || a2 && c2) return false;
          return true;
        }
        function X(t3, n3, e3, i3, r2, o2, a2) {
          var u2, c2, l2, h2, d2, v2, p2, g2, m2, b2;
          if (r2) {
            if (!o2 && !a2) return f;
            if (u2 = t3.Mf, c2 = 0, l2 = 0, t3.oL && (c2 = 1), t3.jO && (l2 = 1), n3 === s.TableSelectionType.TABLE_ROW_SELECT) {
              if (!J(u2, e3, e3, t3.iw, t3.endColumn(), o2, a2)) return f;
            } else if (n3 === s.TableSelectionType.TABLE_COL_SELECT) {
              for (d2 = true, v2 = 0, p2 = h2 = u2.getSelections(); v2 < p2.length; v2++) if ((g2 = p2[v2]).col === i3 && g2.row === t3.Ky + l2 && 1 === g2.colCount && g2.rowCount === t3.Sx - l2 - c2) {
                if (!J(u2, t3.Ky, t3.endRow(), i3, i3, o2, a2)) return f;
                d2 = false;
              }
              if (d2 && !J(u2, t3.Ky + l2, t3.endRow() - c2, i3, i3, o2, a2)) return f;
            } else if (n3 === s.TableSelectionType.TABLE_CORNER_SELECT) {
              for (d2 = true, m2 = 0, b2 = h2 = u2.getSelections(); m2 < b2.length; m2++) if ((g2 = b2[m2]).col === t3.iw && g2.row === t3.Ky + l2 && g2.colCount === t3.Tx && g2.rowCount === t3.Sx - l2 - c2) {
                if (!J(u2, t3.Ky, t3.endRow(), t3.iw, t3.endColumn(), o2, a2)) return f;
                d2 = false;
              }
              if (d2 && !J(u2, t3.Ky + l2, t3.endRow() - c2, t3.iw, t3.endColumn(), o2, a2)) return f;
            } else if (n3 === s.TableSelectionType.TABLE_SELECT && !J(u2, t3.Ky, t3.endRow(), t3.iw, t3.endColumn(), o2, a2)) return f;
          }
          return { action: n3, table: t3 };
        }
        function q(t3, n3) {
          var e3 = t3.Ky;
          return n3 - (t3.jO ? e3 + 1 : e3);
        }
        function $(t3, n3) {
          var e3;
          return n3 - t3.iw;
        }
        function tt(t3) {
          var n3 = v;
          return t3 && v++, n3;
        }
        function nt(t3) {
          return "string" == typeof t3;
        }
        function et(t3, n3, e3, r2) {
          var o2 = { sheet: t3, table: n3, oldRange: e3, newRange: r2, cancel: false };
          return t3.ki(i2.Events.TableResizing, o2), o2.cancel;
        }
        function it(t3, n3, e3, r2, o2) {
          var a2 = { sheet: t3, table: n3, oldRange: e3, newRange: r2 };
          t3.ki(i2.Events.TableResized, a2, o2);
        }
        function rt(t3, n3, e3, r2, o2, a2, u2) {
          var s2 = { sheet: t3, table: n3, propertyName: e3, row: q(n3, r2), count: o2 };
          d(a2) || (s2.isAfter = a2), u2 && (s2.deletedItem = u2), t3.ki(i2.Events.TableRowsChanged, s2);
        }
        function ot(t3, n3, e3, r2, o2, a2) {
          var u2 = { sheet: t3, table: n3, propertyName: e3, col: r2 - n3.iw, count: o2 };
          d(a2) || (u2.isAfter = a2), t3.ki(i2.Events.TableColumnsChanged, u2);
        }
        function at(t3, n3, e3) {
          var i3 = 0;
          if (t3.cSt(n3, e3)) for (i3 = 2; t3.cSt(n3 + i3, i3); ) i3++;
          return i3 > 0 && (n3 += i3), n3;
        }
        function ut(t3) {
          return t3 && "=" === t3[0];
        }
        function st(t3) {
          var n3, e3, i3, o2 = -1;
          if (t3) {
            for (n3 = t3.arguments, e3 = void 0, i3 = 0; i3 < n3.length; i3++) if ((e3 = n3[i3]) instanceof r.obt) {
              o2 = i3;
              break;
            }
          }
          return o2;
        }
        function ct(t3, n3, e3) {
          var i3 = t3.dataRange(), r2 = i3.row, o2 = i3.col, a2 = e3 ? r2 : o2;
          return a2 + n3;
        }
        function ft(t3) {
          var n3 = t3;
          return t3 && "=" === t3[0] && (n3 = t3.slice(1)), n3;
        }
        function lt(t3, n3) {
          var e3, i3;
          for (i3 = 0; i3 < t3.length; i3++) if ((e3 = t3[i3]) && n3 === e3.col) return e3;
          return f;
        }
        function ht(t3, n3) {
          var e3, i3, r2;
          if (!n3) return null;
          for (e3 = n3.row; e3 < n3.row + n3.rowCount; e3++) for (i3 = n3.col; i3 < n3.col + n3.colCount; i3++) if (t3.tables && (r2 = t3.tables.find(e3, i3))) return r2;
          return null;
        }
        function dt(t3, n3) {
          return n3 ? t3.tables.AB(n3.row, n3.col, n3.rowCount, n3.colCount) : null;
        }
        function vt(t3) {
          return d(t3) || ("string" != typeof t3 && (t3 += ""), t3 = t3.replace(/\r\n?/g, "\n")), t3;
        }
        function pt(t3) {
          return t3 === l;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Util = void 0, i2 = e2("Core"), r = e2("SheetsCalc"), o = e2("CalcEngine"), a = e2("Common"), u = e2("./dist/plugins/table/table.ns.js"), s = e2("./dist/plugins/table/table.js"), c = i2.mt.T1, f = null, l = void 0, h = Math.max, d = a.Common.lt.ht, v = 0, p = new a.Common.ResourceManager(u.SR, "Tables"), g = p.getResource.bind(p), n2.Util = { throwError: m, setFormulaToSheet: b, setValue: y, suspendPaint: w, resumePaint: M, Hyt: C, suspendCalcService: S, resumeCalcService: T, fSt: x, lSt: A, getRowCount: I, getColCount: k, isValidTableName: N, formulaToExpression: j, expressionToFormula: D, evaluateExpression: _, checkTableName: E, findSameNameTableInWorkbook: O, hSt: U, _4t: H, E4t: V, dSt: Y, vSt: W, mSt: Q, gSt: K, pSt: X, bSt: q, ySt: $, T4t: tt, wSt: nt, j4t: et, S4t: it, jj: rt, Ej: ot, MSt: at, kf: ut, CSt: st, SSt: ct, TSt: ft, ASt: lt, _getTable: ht, ISt: dt, xSt: vt, NSt: pt };
      }, "./dist/plugins/table/table.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), e2("./dist/plugins/table/table.interface.js"), e2("./dist/plugins/table/table-event.js"), e2("./dist/plugins/table/table-render.js"), e2("./dist/plugins/table/table-action.js"), e2("./dist/plugins/table/table-util.js"), r(e2("./dist/plugins/table/table-theme.js"), n2), r(e2("./dist/plugins/table/table.js"), n2), r(e2("./dist/plugins/table/table.ns.js"), n2), r(e2("./dist/plugins/table/customTableThemeManager.js"), n2), e2("./dist/plugins/table/data-manager-providers/data-manager-provider.entry.js");
      }, "./dist/plugins/table/table.interface.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true });
      }, "./dist/plugins/table/table.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn, dn, vn, pn, gn, mn, bn, yn, wn, Mn, Cn, Sn, Tn, xn, An, In, kn, Nn, jn, Dn, _n, On, En, Rn, Ln, Fn, Bn, Pn, Gn, Un, Hn, Vn, zn, Yn, Zn, Wn, Qn, Kn, Jn, Xn, qn, $n, te, ne, ee, ie, re, oe, ae, ue, se, ce, fe, le, he, de, ve, pe, ge, me, be, ye, we, Me, Ce, Se, Te, xe, Ae, Ie, ke, Ne, je, De = this && this.qKr || (Ee = function(t3, n3) {
          return Ee = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, Ee(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          Ee(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), _e = this && this.nJr || function() {
          return _e = Object.assign || function(t3) {
            var n3, e3, i3, r2;
            for (e3 = 1, i3 = arguments.length; e3 < i3; e3++) for (r2 in n3 = arguments[e3]) Object.prototype.hasOwnProperty.call(n3, r2) && (t3[r2] = n3[r2]);
            return t3;
          }, _e.apply(this, arguments);
        }, Oe = this && this.iJr || function(t3, n3, e3) {
          if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n3.length, o2; i3 < r2; i3++) !o2 && i3 in n3 || (o2 || (o2 = Array.prototype.slice.call(n3, 0, i3)), o2[i3] = n3[i3]);
          return t3.concat(o2 || Array.prototype.slice.call(n3));
        }, Ee;
        function Re(t3) {
          return typeof t3 === en;
        }
        function Le(t3, n3) {
          return !(!t3 || !n3 || t3.color !== n3.color || t3.type !== n3.type) || !t3 && !n3;
        }
        function Fe(t3, n3) {
          var e3, i3, r2 = false;
          if (C(t3[n3])) r2 = true;
          else for (i3 = t3.length - 1; i3 > n3; i3--) if (C(t3[e3 = i3 - 1])) {
            r2 = true;
            break;
          }
          return r2;
        }
        function Be(t3, n3) {
          return F(P(t3, n3));
        }
        function Pe(t3) {
          return L(G(t3));
        }
        function Ge(t3) {
          t3.vuo || (t3.vuo = {}), t3.vuo.guo || (t3.vuo.guo = {});
        }
        function Ue(t3, n3, e3) {
          var i3 = t3.parent, o2 = q(t3);
          function a2(n4, i4) {
            w(n4, (function(n5, a3) {
              var u2 = a3.getExpression(), s2 = r.CalcOperatorAdjustor.adjustExpressionOnRemoveTable(u2, i4, -1, -1, e3);
              s2 !== u2 && (a3.SB(s2), o2.invalidName(t3.Uw(), a3.getName()));
            }));
          }
          i3 ? (a2(i3.getCustomNames(), n3), w(i3.sheets, (function(t4, e4) {
            a2(e4.getCustomNames(), n3);
          }))) : a2(t3.getCustomNames(), n3), o2.onAfterRemoveTable(n3, e3);
        }
        function He(t3, n3, e3) {
          var r2 = { position: e3, imageType: i2.ButtonImageType.dropdown, visibility: i2.ButtonVisibility.onSelected, useButtonStyle: false, command: "openList" }, o2 = [{ text: ge().Table_None, value: null }, { text: ge().Table_Average, value: "=SUBTOTAL(101,[".concat(n3, "])") }, { text: ge().Table_Count, value: "=SUBTOTAL(103,[".concat(n3, "])") }, { text: ge().Table_Count_Numbers, value: "=SUBTOTAL(102,[".concat(n3, "])") }, { text: ge().Table_Max, value: "=SUBTOTAL(104,[".concat(n3, "])") }, { text: ge().Table_Min, value: "=SUBTOTAL(105,[".concat(n3, "])") }, { text: ge().Table_Sum, value: "=SUBTOTAL(109,[".concat(n3, "])") }, { text: ge().Table_StdDev, value: "=SUBTOTAL(107,[".concat(n3, "])") }, { text: ge().Table_Var, value: "=SUBTOTAL(110,[".concat(n3, "])") }], a2 = { items: o2 }, u2 = new i2.Style();
          return u2.cellButtons = [r2], u2.dropDowns = [{ type: i2.DropDownType.list, option: a2, submitCommand: "tableTotalRowFormula" }], u2;
        }
        function Ve(t3) {
          var n3;
          t3.tables.all().forEach((function(t4) {
            t4.formulaFromJSON();
          }));
        }
        function ze(t3, n3, e3, r2, o2, a2, u2, s2, c2) {
          var f2, l2;
          t3 && t3.length > 0 && (f2 = t3[n3]) && (l2 = f2[o2]()) && ("string" == typeof l2 && e3 && (l2 = e3.u8(l2)), e3 && (0, i2.composeParentStyle)(l2, l2, e3, false, 10, true), mi(l2, r2, a2, u2, s2, c2));
        }
        function Ye(t3) {
          var n3, e3, i3, r2 = t3.c_[0], o2 = r2 && r2.c_ && r2.c_[0];
          if (o2) return n3 = { kSt: { altText: o2.altText, altTextSummary: o2.altTextSummary } }, e3 = r2["xmlns:x14"], (i3 = { kSt: { uri: r2.uri } })["x14:table"] = n3, i3.kSt["xmlns:x14"] = e3, { ext: i3, attr: {} };
        }
        function Ze(t3) {
          if (t3 && t3.c_) return Ye(t3);
        }
        function We(t3, n3) {
          var e3, r2;
          for (e3 in ye) ye.hasOwnProperty(e3) && (C(t3[e3]) || (0 === (r2 = ye[e3]) ? t3[e3] === n3[e3] && (t3[e3] = Ft) : 1 === r2 ? Le(t3[e3], n3[e3]) && (t3[e3] = Ft) : 2 === r2 && i2.util.rfe(t3[e3], n3[e3]) && (t3[e3] = Ft)));
        }
        function Qe(t3, n3, e3, i3, r2, o2, a2) {
          var u2, s2, c2, f2;
          if (t3.Ut && (s2 = (u2 = t3.Ut.sheetModels[3].J_(n3, e3)) && u2.style) && o2 && "string" == typeof s2) {
            if (r2[s2]) return void (u2.style = r2[s2]);
            if (!(c2 = o2.i3(s2))) return;
            (c2 = bi(t3, c2, false, 10, true)).parentName = Ft, We(c2, i3), f2 = a2.Xd + a2.$d + s2, a2.$d++, c2.name = f2, o2.$p(c2), u2.style = f2, r2[s2] = f2;
          }
        }
        function Ke(t3, n3, e3) {
          if (!t3 || !n3) return t3;
          if ("string" == typeof t3) {
            if (!e3) return t3;
            t3 = e3.u8(t3);
          }
          return t3 ? ((t3 = bi(e3, t3, false, 10, true)).parentName = Ft, We(t3, n3), t3) : t3;
        }
        function Je(t3, n3, e3, i3) {
          var r2 = t3[n3] && t3[n3][e3];
          t3[n3] || (t3[n3] = {}), t3[n3][e3] || (r2 = t3[n3][e3] = {}), r2.s = i3;
        }
        function Xe(t3, n3) {
          if (!n3.formatter) {
            if (n3._autoFormatter) return n3.formatter = n3._autoFormatter.formatCached, n3;
            t3 < 1 ? n3.formatter = "h:mm:ss" : t3 > 1 && (n3.formatter = "M/d/yyyy");
          }
          return n3;
        }
        function qe(t3, n3, e3, i3, r2, o2, a2, u2, s2) {
          var c2, f2;
          t3 && t3.length > 0 && (c2 = t3[n3]) && (f2 = c2[r2]()) && i3.push("".concat(n3, " binding ").concat(r2));
        }
        function $e(t3, n3, e3, i3, r2, o2, a2, u2) {
          var s2, c2 = t3, f2 = c2.Mf, l2 = c2.BSt;
          qe(l2, n3 - c2.iw, f2, e3, i3, r2, true, a2, true), i3 === tn ? s2 = c2.Uye : i3 === $t ? s2 = c2.Gye : i3 === nn && (s2 = c2.Hye), s2 && e3.push("".concat(n3, " ").concat(i3));
        }
        function ti(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = t3, s2 = u2.BSt;
          if (s2 && (i3 = u2.headerIndex(), r2 = u2.footerIndex(), a2 = s2[o2 = e3 - u2.iw])) return i3 !== n3 && r2 !== n3 ? a2[$t]() : n3 === i3 ? a2[tn]() : n3 === r2 ? a2[nn]() : void 0;
        }
        function ni(t3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2 = t3, j2 = (0, n2.ZHr)(N2.getStyleOriginInstance()), D2 = N2.headerIndex(), _2 = N2.footerIndex(), O2 = N2.jO, E2 = N2.oL, R2 = O2 ? e3 === N2.Ky + 1 : e3 === N2.Ky, L2 = E2 ? e3 === N2.Ky + N2.Sx - 2 : e3 === N2.Ky + N2.Sx - 1, F2 = i3 === N2.iw, B2 = i3 === N2.iw + N2.Tx - 1, P2 = [];
          if (D2 !== e3 && _2 !== e3 ? $e(N2, i3, P2, $t, R2, F2, L2, B2) : e3 === D2 ? $e(N2, i3, P2, tn, true, F2, true, B2) : e3 === _2 && $e(N2, i3, P2, nn, true, F2, true, B2), !j2) return P2;
          if (o2 = N2.highlightLastColumn(), a2 = N2.highlightFirstColumn(), u2 = j2[un](), s2 = j2[sn](), D2 === e3) c2 = j2[vn](), B2 && o2 && c2 && P2.push(vn), f2 = j2[dn](), F2 && a2 && f2 && P2.push(dn), (l2 = j2[rn]()) && P2.push(rn), B2 && o2 && u2 && P2.push(un), F2 && a2 && s2 && P2.push(sn);
          else if (_2 === e3) h2 = j2[gn](), B2 && o2 && h2 && P2.push(gn), d2 = j2[pn](), F2 && a2 && d2 && P2.push(pn), (v2 = j2[on]()) && P2.push(on), B2 && o2 && u2 && P2.push(un), F2 && a2 && s2 && P2.push(sn);
          else {
            if (B2 && o2 && u2 && P2.push(un), F2 && a2 && s2 && P2.push(sn), p2 = void 0, g2 = void 0, m2 = void 0, b2 = void 0, y2 = void 0, w2 = true, N2.bandRows() && w2 && (g2 = (p2 = j2[mn]()) + j2[bn]()) > 0) {
              if (M2 = void 0 === (m2 = t3.nKr(e3, g2, r2)), void 0 === (C2 = r2.previousRelativeRow) && M2) {
                for (S2 = 0, T2 = N2.dataRange().row; T2 < e3; T2++) N2.L5t(T2) > 0 && S2++;
                r2.previousRelativeRow = S2, m2 = S2 % g2;
              } else M2 && (N2.L5t(e3) > 0 && r2.previousRelativeRow++, m2 = r2.previousRelativeRow % g2);
              b2 = j2[cn](), y2 = j2[fn](), m2 < p2 && b2 ? P2.push(cn) : m2 >= p2 && y2 && P2.push(fn);
            }
            if (N2.bandColumns() && w2 && (g2 = (p2 = j2[yn]()) + j2[wn]()) > 0) {
              if (void 0 === (x2 = r2.previousRelativeCol)) {
                for (A2 = 0, I2 = N2.iw; I2 < i3; I2++) N2.F5t(I2) > 0 && A2++;
                r2.previousRelativeCol = A2, m2 = A2 % g2;
              } else N2.F5t(e3) > 0 && r2.previousRelativeCol++, m2 = r2.previousRelativeCol % g2;
              b2 = j2[ln](), y2 = j2[hn](), m2 < p2 && b2 ? P2.push(ln) : m2 >= p2 && y2 && P2.push(hn);
            }
          }
          return (k2 = j2[an]()) && P2.push(an), P2;
        }
        function ei(t3) {
          return t3 ? "string" == typeof t3 ? t3 : t3._id : t3;
        }
        function ii(t3, n3, e3, r2, o2) {
          var a2, u2, s2 = t3.Ut, c2 = s2.getStyle(n3, e3), f2 = s2.getStyle(n3, -1), l2 = s2.getStyle(-1, e3), h2 = ni(r2, n3, e3, o2), d2 = JSON.stringify({ cellStyle: ei(c2), rowStyle: ei(f2), colStyle: ei(l2), pureTableStyles: h2 });
          return o2[d2] ? o2[d2] : (a2 = new i2.Style(), u2 = false, u2 = t3.IL(n3, e3, 3, a2, u2), u2 = t3.xL(n3, e3, 3, a2, u2, r2), u2 = t3.kL(n3, 3, a2, u2), u2 = t3.DL(e3, 3, a2, u2), t3._L(3, a2, u2), o2[d2] = a2, a2);
        }
        function ri(t3, n3, e3, r2, o2, a2, u2, s2, c2, f2) {
          var l2, h2, d2, v2, p2, g2;
          if ((n3[e3] && n3[e3][r2] && !C(n3[e3][r2].s) || ti(c2, e3, r2)) && (l2 = ii(t3, e3, r2, c2, f2), n3[e3] && n3[e3][r2] && n3[e3][r2].o !== Ft && Xe(n3[e3][r2].o, l2), (h2 = u2.lv(l2)) !== s2)) if (a2[h2]) Je(n3, e3, r2, a2[h2]);
          else {
            for (v2 in d2 = l2.clone(), i2.util.isThemeColor(d2.foreColor) && i2.util.isSameThemeColor(d2.foreColor, o2.foreColor) && (d2.foreColor = t3.currentTheme().getColor(d2.foreColor)), ye) ye.hasOwnProperty(v2) && d2[v2] === Ft && (d2[v2] = o2[v2]);
            p2 = u2.Xd + u2.$d + d2._id, u2.$d++, d2.name = p2, Je(n3, e3, r2, g2 = u2.getStyleIndex(d2)), a2[h2] = g2;
          }
        }
        function oi(t3, n3, e3, i3, r2, o2) {
          n3 && (n3.table(t3), (e3 = e3 || { lossless: {} }) && (e3.lossless || (e3.lossless = {}), false === t3.showHeader() && (e3.lossless.showTableHeader = false), e3.ref || (e3.lossless.showFilterButton = false), e3.lossless.range = { row: t3.Ky + 1, col: t3.iw, rowCount: t3.Sx - 1 - (t3.showFooter() ? 1 : 0), colCount: t3.Tx }, n3.yh(e3, i3, r2)), t3.IB !== n3 && (t3.IB = n3), o2 ? t3.IB.reFilter() : (t3.DSt = true, t3._St(), t3.NTr() || t3.IB.Mke(true)));
        }
        function ai(t3, n3) {
          var e3, i3 = "CustomTableStyle_".concat(n3);
          if (t3) for (e3 = 2; t3.customTableThemes.get(i3); ) i3 = "".concat(i3, " ").concat(e3);
          return i3;
        }
        function ui(t3, n3) {
          var e3 = t3;
          return typeof n3[t3] === ee ? (n3[t3]++, e3 += "_".concat(n3[e3])) : n3[t3] = 0, e3;
        }
        function si(t3, n3, e3) {
          var r2, o2;
          n3[e3] && (Re(r2 = n3[e3]) ? t3[e3](r2) : ((o2 = new i2.Style()).fromJSON(r2, false, void 0), t3[e3](o2)));
        }
        function ci(t3, n3, e3, r2, o2, a2) {
          var u2 = e3.id(), s2 = e3.name(), c2 = r2.name(), f2 = e3.dataField(), l2 = e3.value(), h2 = e3.footerValue(), d2 = e3.dataAreaFormula(), v2 = e3.footerFormula(), p2 = e3.x5t, g2 = e3.cellType(), m2 = e3.formatter(), y2 = e3.dataStyle(), w2 = e3.headerStyle(), M2 = e3.footerStyle(), C2 = xt(n3, s2, o2);
          r2.vuo = e3.buo(), r2.UKn(e3.jKe()), r2.id(u2), r2.name(C2), r2.dataField(f2), r2.footerValue(h2), r2.dataAreaFormula(d2), r2.footerFormula(v2), r2.x5t = p2, a2 && "string" == typeof d2 && n3.NTr() && (r2.x5t(d2), r2.dataAreaFormula(ut(t3, d2, n3.WTr(), n3.startColumn() + o2))), r2.value(l2), r2.headerStyle(w2), r2.footerStyle(M2), n3.I5t(c2, s2, o2), b(g2) || b(m2) ? (y2 ? Re(y2) && t3 && (y2 = t3.u8(y2)) : y2 = new i2.Style(), g2 !== Ft && (y2.cellType = g2), m2 !== Ft && (y2.formatter = m2), r2.dataStyle(y2)) : r2.dataStyle(y2);
        }
        function fi(t3) {
          return t3 && "string" != typeof t3 && t3.clone ? t3.clone() : t3;
        }
        function li(t3, n3, e3, i3) {
          var r2, o2, a2;
          t3 && (r2 = t3.getStyle(n3, e3)) && i3 && (o2 = bi(t3, r2), (a2 = bi(t3, i3)).borderTop = o2.borderTop !== Ft ? a2.borderTop : Ft, a2.borderBottom = o2.borderBottom !== Ft ? a2.borderBottom : Ft, a2.borderLeft = o2.borderLeft !== Ft ? a2.borderLeft : Ft, a2.borderRight = o2.borderRight !== Ft ? a2.borderRight : Ft, a2.compose(o2), t3.setStyle(n3, e3, a2));
        }
        function hi(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2 = o2.layoutStyle(), f2 = o2.headerIndex(), l2 = o2.footerIndex(), h2 = o2.startColumn();
          for (u2 = e3; u2 <= r2; u2++) for (a2 = o2.columnLayoutStyle(u2 - h2), s2 = n3; s2 <= i3; s2++) s2 === f2 ? (c2.header && li(t3, s2, u2, c2.header), (null == a2 ? void 0 : a2.header) && li(t3, s2, u2, a2.header)) : s2 === l2 ? (c2.footer && li(t3, s2, u2, c2.footer), (null == a2 ? void 0 : a2.footer) && li(t3, s2, u2, a2.footer)) : (c2.data && li(t3, s2, u2, c2.data), (null == a2 ? void 0 : a2.data) && li(t3, s2, u2, a2.data));
        }
        function di(t3, n3, e3, i3) {
          var r2, o2, a2;
          13 === n3.type && (null == (a2 = n3.baseTable) ? void 0 : a2.name()) === e3 && (n3.baseTable = t3, i3 === n3.ubt && (n3.SYr = null === (r2 = t3.getColumn(i3)) || void 0 === r2 ? void 0 : r2.jKe()), i3 === n3.sbt && (n3.TYr = null === (o2 = t3.getColumn(i3)) || void 0 === o2 ? void 0 : o2.jKe()));
        }
        function vi(t3, n3, e3, i3) {
          var r2;
          di(t3, n3, e3, i3), null === (r2 = n3.arguments) || void 0 === r2 || r2.forEach((function(n4) {
            vi(t3, n4, e3, i3);
          }));
        }
        function pi(t3, n3, e3, i3, r2, o2, a2) {
          t3.borderLeft = n3, t3.borderTop = e3, t3.borderRight = i3, t3.borderBottom = r2, t3.borderHorizontal = o2, t3.borderVertical = a2;
        }
        function gi(t3, n3, e3) {
          t3[n3] === Ft && e3 !== Ft && (t3[n3] = e3, e3 && "object" == typeof e3 && (t3[n3].level = 20));
        }
        function mi(t3, n3, e3, i3, r2, o2) {
          var a2 = t3[ue], u2 = t3[ce], s2 = t3[se], c2 = t3[fe], f2 = t3[le], l2 = t3[he];
          pi(t3), n3.h5(t3), i3 && gi(n3, ue, a2), e3 && gi(n3, se, s2), o2 && gi(n3, ce, u2), r2 && gi(n3, fe, c2), gi(n3, se, f2), gi(n3, fe, f2), gi(n3, ue, l2), gi(n3, ce, l2), pi(t3, a2, s2, u2, c2, f2, l2);
        }
        function bi(t3, n3, e3, r2, o2) {
          var a2 = new i2.Style();
          return n3 && n3.charAt && (n3 = t3.u8(n3)), n3 && (a2.h5(n3), (0, i2.composeParentStyle)(n3, a2, t3, e3, r2, o2)), a2;
        }
        function yi(t3, n3, e3, i3, r2, o2, a2) {
          i3 && t3 ? (Re(t3) && (t3 = bi(o2, t3)), Re(n3) && (n3 = bi(o2, n3)), n3 ? (n3 = n3.clone()).compose(t3) : n3 = t3, r2[e3 + de] = a2.getDxfIndex(n3, true)) : n3 && (Re(n3) ? r2[e3 + ve] = n3 : (r2[e3 + de] = a2.getDxfIndex(n3, true), n3.parentName && (r2[e3 + ve] = n3.parentName)));
        }
        function wi(t3) {
          return t3 && t3.QOt && t3.QOt.tables && t3.QOt.tables[t3.name] === t3;
        }
        function Mi(t3) {
          return t3 === Lt ? Lt : y(t3);
        }
        function Ci(t3) {
          return Mi(t3.dataField() || t3.name());
        }
        function Si(t3) {
          return (0, v.isFormula)(t3) ? t3 : "=" + t3;
        }
        function Ti(t3, n3, e3) {
          return { value: Si(n3), name: Ci(t3), dataType: "formula", zTr: true, YEr: e3 };
        }
        function xi(t3) {
          var n3 = Ci(t3);
          return { value: n3, name: n3 };
        }
        function Ai(t3) {
          var n3;
          return n3 = "string" == typeof t3 ? t3 : t3.name();
        }
        function Ii(t3, n3) {
          var e3, i3, r2 = Ai(t3);
          return (null === (i3 = null === (e3 = null == (n3 = n3 || t3.Mf) ? void 0 : n3.parent) || void 0 === e3 ? void 0 : e3.dataManager()) || void 0 === i3 ? void 0 : i3.createTableNameFrom(r2)) || r2;
        }
        function ki(t3, n3) {
          return t3 + "__" + (null != n3 ? n3 : Date.now());
        }
        function Ni(t3, n3, e3) {
          return t3 + "." + (n3 ? ki(n3.name(), n3.jKe()) : e3) + Mn;
        }
        function ji(t3, n3) {
          var e3, i3 = (0, v.isFormula)(t3), r2 = (0, v.isRelation)(t3);
          return (i3 || r2) && (i3 && (t3 = "__" + t3.slice(1)), r2 && (t3 = t3.replace(".", "__")), (e3 = n3.reduce((function(n4, e4) {
            return e4.dataField() && e4.dataField().indexOf(t3) > -1 ? n4++ : n4;
          }), 0)) > 0 && (t3 = t3 + "__" + e3)), t3;
        }
        function Di(t3) {
          var n3, e3, i3, r2, o2;
          for (n3 = 0, e3 = t3; n3 < e3.length; n3++) (r2 = (i3 = e3[n3]).dataField()) !== (o2 = ji(r2, t3)) && i3.dataField(o2);
        }
        function _i(t3, n3) {
          var e3, i3 = n3 || [], r2 = t3.columns;
          for (e3 in r2) t3.isDataColumn(e3) && i3.push(new ke(n3.length, e3, e3));
          return i3;
        }
        function Oi(t3, n3) {
          var e3 = t3.z3(), i3 = e3.getTable(), r2 = e3.ife(n3 - t3.iw);
          return !!i3.columns[r2] && i3.isDataColumn(r2);
        }
        function Ei(t3) {
          var n3, e3 = (null === (n3 = t3.options.schema) || void 0 === n3 ? void 0 : n3.columns) || {}, i3 = t3.columns || {};
          return function(t4) {
            return e3[t4] || i3[t4];
          };
        }
        function Ri(t3, n3) {
          return (0, v.isFormula)(t3) || !!n3 && ("formula" === n3.dataType || (0, v.isFormula)(n3.value));
        }
        function Li(t3, n3) {
          var e3 = Ei(t3);
          return n3.filter((function(t4) {
            var n4 = Ci(t4);
            return !Ri(n4, e3(n4));
          }));
        }
        function Fi(t3, n3) {
          return C(n3) ? [] : (0 === n3.length && _i(t3, n3), Li(t3, n3).map((function(t4) {
            var n4, e3, i3 = t4.dataAreaFormula();
            return C(i3) ? xi(t4) : (n4 = void 0, e3 = void 0, "string" == typeof i3 ? n4 = i3 : (n4 = t4.x5t(), e3 = i3), Ti(t4, n4, e3));
          })));
        }
        function Bi(t3, n3, e3) {
          var i3, r2 = Fi(t3, e3);
          return C(t3.views[n3]) || (n3 = ki(n3)), (i3 = t3.addView(n3, r2)).HTr(true), i3;
        }
        function Pi(t3) {
          t3.Efe && t3.Efe.length !== t3.length() && t3.iM(true);
        }
        function Gi() {
          return i2.CopyToOptions.all & ~i2.CopyToOptions.conditionalFormat;
        }
        function Ui() {
          return Gi() & ~i2.CopyToOptions.value;
        }
        function Hi(t3, n3, e3) {
          if (J(t3), e3 && e3(), n3.fuo()) try {
            Te.et(t3, "setBindingPath", { tableName: n3.name() });
            var i3 = n3.rowFilter();
            i3 && i3.filterHandler && i3.filterHandler({ columns: n3.rowFilter().Mct });
          } finally {
            X(t3);
          }
          else X(t3);
        }
        function Vi(t3, n3) {
          var e3, i3 = t3 && t3.rowFilter && t3.rowFilter();
          return !C(i3) && (e3 = i3.range).intersect(n3.row, n3.col, n3.rowCount, n3.colCount);
        }
        function zi(t3) {
          return function(n3, e3) {
            var i3 = this, r2 = i3.Mf;
            r2 && n3 !== e3 && (t3 === Vt && Te.et(r2, "tableNameChanged", { oldName: e3, newName: n3 }), r2.Ut.YSt(i3, t3, e3, n3), r2.repaint());
          };
        }
        function Yi(t3) {
          return function(n3, e3) {
            var i3;
            n3 !== e3 && this.bEr(t3, n3, e3);
          };
        }
        function Zi(t3, n3) {
          var e3 = this;
          e3.dl(), zi("style").call(e3, t3, n3);
        }
        function Wi(t3, n3, e3, i3, r2) {
          t3.Qy().execute({ cmd: Ln, sheetName: t3.name(), tableName: n3.name(), row: e3, count: i3, isAfter: r2 });
        }
        function Qi(t3, n3, e3, i3, r2) {
          t3.Qy().execute({ cmd: Fn, sheetName: t3.name(), tableName: n3.name(), row: e3, count: i3, isAfter: r2 });
        }
        function Ki(t3, n3) {
          t3.Qy().execute({ cmd: Bn, sheetName: t3.name(), tableName: n3.name(), showFooter: true });
        }
        function Ji(t3) {
          var n3, e3;
          if (!C(t3)) return n3 = /\[\S[\S\s]*\S\]/, "SUBTOTAL(" !== (t3 = t3.trim()).substr(0, 9) || !n3.test(t3) || t3.indexOf("[[") ? "custom" : (e3 = t3.substring(9, 12), xe[e3] || re);
        }
        function Xi(t3) {
          return t3.indexOf("LET(") > -1;
        }
        function qi(t3, n3) {
          var e3 = Object.keys(t3).map((function(t4) {
            return +t4;
          })), i3 = Object.keys(n3).map((function(t4) {
            return +t4;
          }));
          return e3.length > i3.length ? e3.filter((function(t4) {
            return -1 === i3.indexOf(t4);
          })) : i3.filter((function(t4) {
            return -1 === e3.indexOf(t4);
          }));
        }
        function $i(t3) {
          var n3;
          return null === (n3 = null == t3 ? void 0 : t3.parent) || void 0 === n3 ? void 0 : n3.collaboration;
        }
        function tr(t3) {
          var n3 = t3.dataStyle();
          return n3 || (n3 = new i2.Style(), t3.dataStyle(n3)), n3;
        }
        function nr(t3, n3) {
          var e3, i3;
          for (e3 = n3.row; e3 < n3.row + n3.rowCount; e3++) for (i3 = n3.col; i3 < n3.col + n3.colCount; i3++) if (!C(t3.getValue(e3, i3))) return false;
          return true;
        }
        function er(t3, n3) {
          var e3, i3;
          return "Object" === n3.constructor.name && (e3 = t3.findByName(n3.tableName)) && (e3.H3 ? n3 = e3.H3 : ((i3 = new s.$$()).fromJSON(n3), e3.H3 = n3 = i3)), n3;
        }
        function ir(t3, n3, e3, i3, r2) {
          var o2, a2, u2 = 0 === r2, s2 = u2 ? t3.aj : t3.GSt, c2 = -1;
          for (a2 = 0; a2 < s2.length; a2++) if ((o2 = s2[a2]) && o2.key === i3) {
            c2 = a2;
            break;
          }
          c2 > -1 && s2.splice(c2, C(e3) ? 1 : e3), u2 && t3.ZSt();
        }
        function rr(t3, n3, e3, i3) {
          var r2, o2, a2 = (0, v.useSerialExecutor)();
          if (n3) for (r2 = function(i4) {
            var r3 = n3[i4], o3 = er(t3, r3.bindingManager);
            e3 ? a2.appendPromiseLike((function() {
              return o3.wtt(r3);
            })) : a2.appendPromiseLike((function() {
              return o3.Mtt(r3);
            }));
          }, o2 = n3.length - 1; o2 >= 0; o2--) r2(o2);
          a2.execute(i3);
        }
        function or(t3, n3) {
          var e3 = new Te();
          return e3.Sg(t3), e3.fromJSON(n3), e3;
        }
        function ar(t3, n3) {
          var e3, i3;
          if (n3) for (e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3]) && "Object" === i3.constructor.name && (n3[e3] = t3.findByName(i3.name), n3[e3] || (n3[e3] = or(t3, i3)));
        }
        function ur(t3, n3) {
          var e3, i3;
          for (e3 = 0; e3 < n3.length; e3++) (i3 = n3[e3]).table && "Object" === i3.table.constructor.name && (i3.table = t3.findByName(i3.table.name)), ar(t3, i3.tableList), ar(t3, i3.changedTables);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.TableRemoveOptions = n2.TableManager = n2.TableColumn = n2.WSt = n2.hasRowFilter = n2.Table = n2.ZHr = n2.TableSelectionType = void 0, i2 = e2("Core"), r = e2("SheetsCalc"), o = e2("Common"), a = e2("CalcEngine"), u = e2("Filters"), s = e2("Bindings"), c = e2("./dist/plugins/table/table.ns.js"), f = e2("./dist/plugins/table/table-theme.js"), l = e2("./dist/plugins/table/table-util.js"), h = e2("./dist/plugins/table/customTableThemeManager.js"), d = e2("./dist/plugins/table/table-calcSource.js"), v = e2("DataManager"), p = e2("./dist/plugins/table/data-manager-providers/data-manager-provider.entry.js"), g = e2("./dist/plugins/table/table-data-driven-filter-dialog.js"), m = i2.mt.p0, b = i2.mt.T1, y = i2.mt.j, w = i2.GC$.each, M = i2.GC$.isEmptyObject, C = o.Common.lt.ht, S = o.Common.lt.Nh, T = o.Common.ct, x = o.Common.Uf.OS, A = o.Common.Uf.tR, I = o.Common.kh, k = i2.mt.xr, N = i2.mt.go, j = i2.mt.c1, D = i2.mt.St, _ = i2.CopyToOptions.all, O = i2.StorageType.data | i2.StorageType.style | i2.StorageType.comment | i2.StorageType.tag | i2.StorageType.sparkline | i2.StorageType.axis | i2.StorageType.bindingPath | i2.StorageType.hyperlink | i2.StorageType.altText, E = i2.NodeHelper.sr, R = i2.NodeHelper.ur, L = i2.mt.n1, F = i2.mt.vo, B = i2.Util.gr, P = i2.Util.pr, G = i2.Util.io, U = i2.Util.mr, H = i2.Util.addXLFNPrefix, V = i2.Util.wr, z = i2.Util.Sr, Y = i2.Util.po, Z = i2.Util.yo, W = l.Util.throwError, Q = l.Util.setFormulaToSheet, K = l.Util.setValue, J = l.Util.suspendPaint, X = l.Util.resumePaint, q = l.Util.Hyt, $ = l.Util.suspendCalcService, tt = l.Util.resumeCalcService, nt = l.Util.getRowCount, et = l.Util.getColCount, it = l.Util.checkTableName, rt = l.Util.findSameNameTableInWorkbook, ot = l.Util.isValidTableName, at = l.Util.formulaToExpression, ut = l.Util.expressionToFormula, st = l.Util.hSt, ct = l.Util._4t, ft = l.Util.E4t, lt = l.Util.dSt, ht = l.Util.vSt, dt = l.Util.mSt, vt = l.Util.gSt, pt = l.Util.pSt, gt = l.Util.bSt, mt = l.Util.ySt, bt = l.Util.T4t, yt = l.Util.wSt, wt = l.Util.fSt, Mt = l.Util.lSt, Ct = l.Util.jj, St = l.Util.Ej, Tt = l.Util.S4t, xt = l.Util.MSt, At = l.Util.kf, It = l.Util.CSt, kt = l.Util.SSt, Nt = l.Util.TSt, jt = l.Util.ASt, Dt = l.Util.ISt, _t = l.Util.xSt, Ot = l.Util.NSt, Et = i2.range_parser.getRangeString, Rt = i2.range_parser.Dc, Lt = null, Ft = void 0, Bt = Math.min, Pt = Math.ceil, Gt = Math.max, Ut = JSON.stringify, Ht = JSON.parse, Wt = "highlightFirstColumn", Qt = "highlightLastColumn", Kt = "bandRows", Jt = "bandColumns", Xt = "showResizeHandle", qt = "autoGenerateColumns", en = "string", rn = "headerRowStyle", on = "footerRowStyle", an = "wholeTableStyle", un = "highlightLastColumnStyle", sn = "highlightFirstColumnStyle", cn = "firstRowStripStyle", fn = "secondRowStripStyle", ln = "firstColumnStripStyle", hn = "secondColumnStripStyle", dn = "firstHeaderCellStyle", vn = "lastHeaderCellStyle", pn = "firstFooterCellStyle", gn = "lastFooterCellStyle", mn = "firstRowStripSize", bn = "secondRowStripSize", yn = "firstColumnStripSize", wn = "secondColumnStripSize", Mn = ".table", Cn = "Column", An = "dataAreaFormulaStr", Nn = "footerRowStyles", jn = [Sn = "id", Vt = "name", zt = "cellType", Yt = "value", Zt = "formatter", Tn = "dataField", xn = "footerFormula", In = "dataAreaFormula", kn = "footerValue", tn = "headerStyle", $t = "dataStyle", nn = "footerStyle"], Dn = 4, _n = 2, On = "table", En = "tableResize", Rn = "#485DB1", Ln = "tableInsertRows", Fn = "DoInsertRows", Bn = "tableShowFooter", Pn = "tableDeleteRows", Gn = "styleName", Un = "tableInsertColumns", Hn = "tableDeleteColumns", Vn = "collection", zn = "tableBinding", Yn = "tableColumn", Zn = "property", Wn = "dataSource", Qn = "rowsChange", Kn = "showFooter", Jn = "range", Xn = "columns", qn = "columnFormula", $n = "footerFormula", te = "tableExpression", ne = "sheetExpression", ee = "number", ie = "string", re = "custom", oe = i2.XFileConstants.Ki, ae = i2.XFileConstants.Bu, ue = "borderLeft", se = "borderTop", ce = "borderRight", fe = "borderBottom", le = "borderHorizontal", he = "borderVertical", de = "DxfId", ve = "CellStyle", pe = new o.Common.ResourceManager(c.SR, "Tables"), ge = pe.getResource.bind(pe), me = i2.UsedRangeUtil.hh, be = i2.UsedRangeUtil.vh, ye = { backColor: 2, foreColor: 0, borderBottom: 1, borderLeft: 1, borderRight: 1, borderTop: 1, font: 0, textDecoration: 0 }, we = i2.W.F2e, (function(t3) {
          t3.TABLE_ROW_SELECT = "tableRowSelect", t3.TABLE_COL_SELECT = "tableColSelect", t3.TABLE_CORNER_SELECT = "tableCornerSelect", t3.TABLE_SELECT = "tableSelect";
        })(Me = n2.TableSelectionType || (n2.TableSelectionType = {})), (function(t3) {
          t3[t3.deleted = 0] = "deleted", t3[t3.dirty = 1] = "dirty";
        })(Ce || (Ce = {})), i2.Worksheet.ch(On, { priority: 2e3, getUsedRange: function(t3) {
          var n3, e3, r2;
          t3.type & i2.UsedRangeType.table && (r2 = (e3 = (n3 = this).tables).getUsedRange(t3.maxRange), be(t3.range, r2));
        }, init: function() {
          var t3, n3, e3, r2, o2 = this;
          o2.tables = o2.Ut.QSt, t3 = function(t4, n4, e4, i3, r3, a2, u2, s2, c2, f2) {
            var l2, h2, d2, v2, p2, g2 = o2.tables, m2 = null == g2 ? void 0 : g2.AB(n4, e4, i3, r3).filter((function(t5) {
              return t5.NTr();
            }));
            if (m2 && m2.length > 0) {
              for (l2 = 0; l2 < c2; l2++) for (h2 = u2 + l2, d2 = 0; d2 < f2; d2++) if (v2 = s2 + d2, a2.getFormula(h2, v2)) return void ((p2 = 1 === i3 && i3 === r3 && c2 === f2 && i3 === c2 && !Oi(m2[0], e4)) || (t4.cancel = true));
            }
          }, n3 = function(n4, e4, i3, r3) {
            n4 && e4 && r3 && i3 && t3(n4, e4.row, e4.col, e4.rowCount, e4.colCount, i3, r3.row, r3.col, r3.rowCount, r3.colCount);
          }, e3 = function(t4, n4, e4, i3, r3) {
            var a2 = o2.tables, u2 = null == a2 ? void 0 : a2.AB(n4, e4, i3, r3).filter((function(t5) {
              return t5.NTr();
            }));
            u2 && u2.length > 0 && u2.some((function(t5) {
              for (var n5 = 0; n5 < r3; n5++) if (t5.KTr(e4 + n5)) return true;
              return false;
            })) && (t4.cancel = true);
          }, r2 = function(t4, n4) {
            t4 && n4 && e3(t4, n4.row, n4.col, n4.rowCount, n4.colCount);
          }, o2.unbind(Mn), o2.bind(i2.Events.EditStarting + Mn, (function(t4, n4) {
            var e4 = o2.tables, i3 = n4.row, r3 = n4.col, a2 = e4.find(i3, r3);
            a2 && a2.Ky < i3 && i3 < a2.Ky + a2.Sx && a2.NTr() && a2.KTr(r3) && (n4.cancel = true);
          })), o2.bind(i2.Events.ClipboardPasting + Mn, (function(t4, e4) {
            r2(e4, e4.cellRange), e4.cancel || n3(e4, e4.cellRange, e4.fromSheet, e4.fromRange);
          })), o2.D3(i2.Events.DragFillBlock + Mn, (function(t4, e4) {
            r2(e4, e4.fillRange), e4.cancel || n3(e4, e4.fillRange, e4.sheet, e4.fillRange);
          })), o2.D3(i2.Events.DragDropBlock + Mn, (function(n4, i3) {
            var r3 = i3.toCol, o3 = i3.rowCount, a2 = i3.colCount, u2 = i3.toRow, s2 = i3.fromRow, c2 = i3.fromCol;
            e3(i3, u2, r3, o3, a2), i3.cancel || t3(i3, u2, r3, o3, a2, i3.sheet, s2, c2, o3, a2);
          })), o2.bind(i2.Events.BeforeDragDrop + Mn, (function(t4, n4) {
            var e4, i3 = o2, r3 = o2.tables, a2 = ge().Exp_DragDropChangePartOfTable, u2 = n4.fromRow, s2 = n4.fromColumn, c2 = nt(n4), f2 = n4.columnCount, l2 = i3.rt.q6, h2 = l2.row, d2 = l2.col, v2 = n4.isDragInsert, p2 = n4.isDragCopy, g2 = Lt;
            !v2 || -1 !== u2 && -1 !== s2 || (s2 >= 0 ? (o2.isDragCopy && (d2 <= s2 || d2 >= s2 + f2) || !p2 && (d2 < s2 || d2 > s2 + f2)) && (e4 = false, r3.oSt(-1, d2, -1, 0) && (e4 = true, g2 = ge().Exp_DragDropShiftTableCell), e4 || p2 || !r3.oSt(-1, s2, -1, f2) || (g2 = a2)) : u2 >= 0 && s2 < 0 && (p2 && (h2 <= u2 || h2 >= u2 + c2) || !p2 && (h2 < u2 || h2 > u2 + c2)) && !p2 && r3.oSt(u2, -1, c2, -1) && (g2 = a2)), n4.invalidMessage = g2;
          })), o2.bind(i2.Events.RowChanged + Mn, (function(t4, n4) {
            var e4 = o2.tables, i3 = e4.xl, r3 = n4.propertyName;
            "isVisible" === r3 ? (false === n4.newValue ? i3[n4.row] = 0 : i3[n4.row] = Ft, e4.KSt(n4.row)) : "height" === r3 && (i3[n4.row] = Ft, e4.KSt(n4.row));
          })), o2.bind(i2.Events.RowHeightChanged + Mn, (function(t4, n4) {
            var e4, i3, r3, a2, u2, s2 = o2.tables, c2 = s2.xl;
            for (e4 = 0, i3 = n4.rowList; e4 < i3.length; e4++) c2[r3 = i3[e4]] = Ft, u2 = (a2 = n4.sheet).getRowHeight(r3), s2.KSt(r3, u2 > 0);
          })), o2.bind(i2.Events.ColumnChanged + Mn, (function(t4, n4) {
            var e4 = o2.tables, i3 = e4.Nl;
            "isVisible" === n4.propertyName ? (false === n4.newValue ? i3[n4.col] = 0 : i3[n4.col] = Ft, e4.JSt(n4.col)) : "width" === n4.propertyName && (i3[n4.col] = Ft, e4.JSt(n4.col));
          })), o2.bind(i2.Events.ColumnWidthChanged + Mn, (function(t4, n4) {
            var e4, i3, r3, a2 = o2.tables, u2 = a2.Nl;
            for (e4 = 0, i3 = n4.colList; e4 < i3.length; e4++) u2[r3 = i3[e4]] = Ft, a2.JSt(r3);
          })), o2.bind(i2.Events.RangeFiltered + Mn, (function(t4, n4) {
            var e4, i3 = o2.tables, r3 = i3.xl, a2 = n4.sheet.IB.range;
            for (e4 = 0; e4 < a2.rowCount; e4++) r3[a2.row + e4] = Ft, i3.KSt(a2.row + e4);
          })), o2.bind(i2.Events.TableFiltered + Mn, (function(t4, n4) {
            o2.tables.xuo(n4.table);
          })), o2.bind(i2.Events.TableFilterCleared + Mn, (function(t4, n4) {
            var e4;
            o2.tables.dl();
          })), o2.Q1i && o2.bind(i2.Events.RangeChanged + Mn, (function(t4, n4) {
            var e4, i3, r3 = n4.changedCells;
            if (r3) {
              if (o2.pmi(), r3.length > 1500) o2.t6i(r3);
              else for (e4 = 0; e4 < r3.length; e4++) i3 = r3[e4], o2.Q1i(i3.row, i3.col, 1, 1, i3.sheetArea);
              o2.Smi();
            }
          }));
        }, resetBinding: function(t3) {
          this.tables.XSt();
        }, initBinding: function(t3) {
          var n3, e3, i3, r2, o2 = this, a2 = o2.tables;
          for (a2.XSt(), $(o2), e3 = 0, i3 = (n3 = a2.all()).length; e3 < i3; e3++) (r2 = n3[e3]) && r2.qSt();
          tt(o2);
        }, dispose: function(t3) {
          false !== t3.clearCache && (this.unbind(Mn), this.tables && (this.tables.L0(), this.tables = null));
        }, clearPendingChanges: function() {
          var t3 = this.tables;
          t3 && t3.$St();
        }, onGroupChanged: function(t3) {
          var n3, e3, i3 = this, r2 = i3.tables;
          if (t3.fromSetCollapsed) for (n3 = t3.isRow ? r2.xl : r2.Nl, e3 = t3.start; e3 <= t3.end; e3++) n3[e3] = Ft, t3.isRow ? r2.KSt(e3) : r2.JSt(e3);
        }, onLayoutChanged: function(t3) {
          var n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.col, o2 = t3.colCount, a2 = t3.sheetArea, u2 = this, s2 = u2.tables;
          "setRowCount" !== n3 && "setColumnCount" !== n3 ? (C(a2) || 3 === a2) && ("addRows" === n3 ? (s2.msr(e3, i3), s2.dl()) : "deleteRows" === n3 ? (s2.dsr(e3, i3), s2.dl()) : "addColumns" === n3 ? (s2.hsr(r2, o2), s2.dl()) : "deleteColumns" === n3 ? (s2.vsr(r2, o2), s2.dl()) : "clear" === n3 && (t3.ignoreTable || s2.d5(e3, r2, i3, o2, t3.type))) : s2.dl();
        }, onLayoutChangedFromOp: function(t3) {
          var n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, r2 = t3.sheetArea, o2 = this, a2 = o2.tables, u2 = o2;
          "setRowCount" !== n3 && "setColumnCount" !== n3 ? (C(r2) || 3 === r2) && ("addRows" === n3 ? (o2.filterRowsVisibleInfo.rE(e3, i3), a2.ssr(), a2.bsr(e3, 0, u2.getRowCount() - e3, u2.getColumnCount()), a2.dl(), a2.eKr()) : "deleteRows" === n3 ? (o2.filterRowsVisibleInfo.aE(e3, i3), a2.ssr(), a2.bsr(e3, 0, u2.getRowCount() + i3 - e3, u2.getColumnCount()), a2.dl(), a2.eKr()) : "addColumns" !== n3 && "deleteColumns" !== n3 || (a2.ssr(), a2.dl(), a2.eKr())) : a2.dl();
        }, toJson: function(t3, n3) {
          var e3, r2, o2, a2, u2;
          function s2(t4, n4) {
            var e4, r3, o3, a3, u3, s3, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = t4.tables.all();
            for (e4 = 0, r3 = M2.length; e4 < r3; e4++) if (a3 = (o3 = M2[e4]).z3(), s3 = (u3 = o3.dataRange()).row, c2 = u3.col, f2 = s3 + nt(u3) - 1, l2 = c2 + et(u3) - 1, a3) {
              if (h2 = [], (d2 = o3.BSt) && d2.length > 0) for (v2 = 0; v2 < d2.length; v2++) g2 = (p2 = d2[v2]).formatter(), C(g2) || D(g2) || ((m2 = new i2.Style()).formatter = g2, h2[v2] = m2);
              for (b2 = s3; b2 <= f2; b2++) for (v2 = c2; v2 <= l2; v2++) (y2 = o3.Sl(b2, v2)).e5t && (w2 = y2.y4, T.W0(w2) && (w2 = T.Q0(w2)), t4.s8(n4, b2, v2, w2, Ft, h2[v2 - c2]));
            }
          }
          r2 = (e3 = this).tables, o2 = n3 && n3.ignoreStyle, a2 = n3 && n3.newWorkSheetName, o2 || (r2 && (t3.tables = r2.toJSON(a2, n3)), n3 && n3.includeBindingSource && ((u2 = t3.data).dataTable = u2.dataTable || {}, s2(e3, u2.dataTable)));
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, x2, A2, I2, N2, j2, D2, _2, O2 = this, E2 = O2.tables, R2 = e3 && false === e3.includeStyles, L2 = n3.styleManager;
          if (E2 && !R2) {
            if (E2.wh(t3), e3) {
              for (r2 = e3.includeBindingSource, o2 = e3.fileType === i2.OpenSaveFileType.excel, a2 = function(t4, n4, e4) {
                var i3 = t4.dataAreaFormula();
                if (!C(i3) && !Xi(i3 = ut(O2, i3, n4, e4))) return F(H(i3));
              }, s2 = 0, c2 = (u2 = E2.all()).length; s2 < c2; s2++) if (l2 = (f2 = u2[s2]).z3(), d2 = (h2 = f2.dataRange()).row, v2 = h2.col, p2 = d2 + nt(h2) - 1, g2 = v2 + et(h2) - 1, l2) {
                if (m2 = o2 && f2.NTr(), !r2 && !m2) continue;
                if (b2 = {}, (y2 = f2.BSt) && y2.length > 0) for (w2 = 0; w2 < y2.length; w2++) M2 = y2[w2], m2 && (b2[v2 + w2] = a2(M2, d2, v2 + w2));
                for (S2 = d2; S2 <= p2; S2++) for (w2 = v2; w2 <= g2; w2++) m2 && (x2 = b2[w2]) ? f2.XTr(S2, w2) ? (O2.c8(t3, S2, w2, f2.Sl(S2, w2).y4, n3.sharedStrings), O2.kTr(t3, S2, w2, x2, n3.sharedStrings)) : O2.kTr(t3, S2, w2, x2, n3.sharedStrings) : (A2 = f2.Sl(S2, w2)).e5t && (I2 = A2.y4, T.W0(I2) && (I2 = T.Q0(I2)), O2.c8(t3, S2, w2, I2, n3.sharedStrings));
              }
            }
            if (e3 && i2.OpenSaveFileType.excel === e3.fileType && (j2 = (N2 = E2.U3).length, D2 = k(t3, "sheetData"), _2 = n3.defaultStyle, D2 && _2)) for (s2 = 0; s2 < j2; s2++) (f2 = N2.get(s2)).FGr || f2.qle(D2, _2, L2, O2);
          }
        }, fromJson: function(t3, n3, e3) {
          var i3 = this, r2 = i3.tables, o2 = t3.tableManager, a2 = n3 ? o2 && o2.tables : t3.tables, u2 = e3 && e3.ignoreStyle;
          b(a2) && !u2 && r2 && r2.fromJSON(a2, n3, t3.isApplyRefilter, e3);
        }, fromJsonAfterFormula: function(t3, n3, e3) {
          Ve(this);
        }, fromJsonAfterSJSFormula: function(t3) {
          Ve(this);
        }, yh: function(t3, n3, e3) {
          var i3 = this, r2 = e3 && false === e3.includeStyles, o2 = i3.tables, a2 = k(t3, ae), u2 = t3.rels;
          b(a2) && b(u2) && !r2 && o2 && o2.yh(a2, u2, n3, e3);
        }, lastNonNullRowAndCol: function() {
          var t3, n3, e3, i3, r2, o2, a2 = this, u2 = a2.tables, s2 = 0, c2 = 0, f2 = u2.all();
          if (f2) for (t3 = 0, n3 = f2.length; t3 < n3; t3++) (e3 = f2[t3]) && ((r2 = (i3 = e3.range()).row + nt(i3) - 1) > s2 && (s2 = r2), (o2 = i3.col + et(i3) - 1) > c2 && (c2 = o2));
          return { lastNonNullRow: s2, lastNonNullCol: c2 };
        }, paintCell: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this;
          t3.isPrinting || t3.sheetArea !== i2.SheetArea.viewport || w2.isActualProtected() || (n3 = w2.tables, e3 = t3.ctx, o2 = (r2 = t3.cell).row, a2 = r2.col, (u2 = n3.find(o2, a2)) && u2.showResizeHandle() && !u2.QL() && (s2 = ct(w2, u2), c2 = ft(w2, u2), o2 === s2 && a2 === c2 && (f2 = r2.x, l2 = r2.y, h2 = r2.width, d2 = r2.height, v2 = w2.zoom(), p2 = Pt(Dn * v2), g2 = Pt(_n * v2), m2 = f2 + h2, b2 = l2 + d2, e3 && h2 > 0 && d2 > 0 && (e3.save(), e3.rect(f2, l2, h2, d2), e3.clip(), e3.fillStyle = Rn, (y2 = w2.options.rightToLeft) ? (e3.beginPath(), e3.moveTo(f2, b2), e3.lineTo(f2 + p2, b2), e3.lineTo(f2 + p2, b2 - g2), e3.lineTo(f2, b2 - g2), e3.fill(), e3.beginPath(), e3.moveTo(f2, b2 - g2), e3.lineTo(f2 + g2, b2 - g2), e3.lineTo(f2 + g2, b2 - p2), e3.lineTo(f2, b2 - p2), e3.fill()) : (e3.beginPath(), e3.moveTo(m2 - p2, b2), e3.lineTo(m2, b2), e3.lineTo(m2, b2 - g2), e3.lineTo(m2 - p2, b2 - g2), e3.fill(), e3.beginPath(), e3.moveTo(m2, b2 - g2), e3.lineTo(m2 - g2, b2 - g2), e3.lineTo(m2 - g2, b2 - p2), e3.lineTo(m2, b2 - p2), e3.fill()), e3.restore()))));
        }, composeTableFooterList: function(t3) {
          var n3 = t3.table, e3 = t3.row, i3 = t3.col, r2 = t3.style;
          n3.i5t(e3, i3, r2);
        }, refSheetLazyLoaded: function(t3, e3, r2) {
          var o2, a2, u2, s2 = this, c2 = s2.tables.all();
          c2.length > 0 && n2.WSt && (o2 = t3.rels.c_.filter((function(t4) {
            return t4.Type === i2.RelationshipConstants.lc;
          })).map((function(t4) {
            return i2.Util.vr(t4.Target);
          })), a2 = e3.tables, u2 = {}, i2.GC$.each(o2, (function(t4, n3) {
            var e4 = a2[n3];
            e4 && (u2[e4.name] = e4);
          })), i2.GC$.each(c2, (function(t4, i3) {
            var o3, a3, s3, c3 = u2[i3.name()];
            c3 && (o3 = k(c3, "autoFilter"), a3 = k(c3, "sortState"), oi(i3, s3 = i3.IB || new n2.WSt(), o3, a3, e3.styleManager), r2.isApplyRefilter && i3.IB.reFilter());
          })));
        }, onSheetLoaded: function() {
          var t3, n3, e3, i3, r2, o2 = this, a2 = o2.tables && o2.tables.all() || [];
          for (t3 = 0, n3 = a2.length; t3 < n3; t3++) r2 = (i3 = (e3 = a2[t3]).NTr()) && e3.z3(), i3 && r2.qTr() && Hi(o2, e3);
        }, copyOrMoveTo: function(t3) {
          var n3 = this, e3 = new i2.Range(t3.destRow, t3.destColumn, t3.rowCount, t3.columnCount), r2 = n3.tables.all().filter((function(n4) {
            var i3 = n4.range();
            return !i3.intersect(t3.srcRow, t3.srcColumn, t3.rowCount, t3.columnCount) && e3.contains(i3.row, i3.col, i3.rowCount, i3.colCount);
          }));
          r2.forEach((function(t4) {
            return n3.tables.remove(t4);
          }));
        } }), i2.Worksheet.prototype.jj = function(t3, n3, e3, i3, r2, o2) {
          var a2 = o2 ? Ft : t3.tq();
          Ct(this, t3, n3, e3, i3, r2, a2);
        }, i2.Worksheet.prototype.Ej = function(t3, n3, e3, i3, r2) {
          St(this, t3, n3, e3, i3, r2);
        }, i2.Worksheet.prototype.S4t = function(t3, n3, e3) {
          Tt(this, t3, n3, e3, true);
        }, i2.Workbook.prototype.r5t = function(t3) {
          var n3, e3, i3, r2 = this.sheets;
          if (r2) {
            for (i3 = 0; i3 < r2.length; i3++) if ((e3 = r2[i3].tables) && (n3 = e3.findByName(t3))) return n3;
          }
          return Lt;
        }, Se = function(t3) {
          var n3, e3;
          if (t3) return n3 = t3.builtInName(), (e3 = new f.TableTheme()).fromJSON(t3.toJSON()), n3 && e3.builtInName(n3), e3;
        }, n2.ZHr = Se, Te = (function() {
          function t3(t4, n3, e3, i3, r2, o2, u2) {
            var s2, c2, f2;
            for (this.hsr = this.qO, this.dsr = this.xP, (s2 = this).assignId(), s2.jO = !u2 || u2.showHeader === Ft || u2.showHeader, s2.oL = !(!u2 || u2.showFooter === Ft) && u2.showFooter, s2.ESt = !(!u2 || u2.useFooterDropDownList === Ft) && u2.useFooterDropDownList, s2.showResizeHandle(!(!u2 || u2.showResizeHandle === Ft) && u2.showResizeHandle, Ft, { shouldModelCallback: false }), s2.OSt = [], s2.H3 = Lt, s2.IB = Lt, s2.jS = Lt, s2.RSt = false, b(t4) && s2.name(t4), s2.Ky = b(n3) ? n3 : -1, s2.iw = b(e3) ? e3 : -1, s2.Sx = b(i3) ? i3 : -1, s2.Tx = b(r2) ? r2 : -1, b(o2) && s2.style(o2), s2.BSt = [], c2 = 0; c2 < s2.Tx; c2++) (f2 = new ke(c2 + 1)).onChange = this.pEr.bind(this), s2.BSt.push(f2);
            s2.LSt = Lt, s2.PSt = [], s2.aT = null == a ? void 0 : a.createMap(), s2.aj = [], s2.GSt = [], s2.USt = [], s2.HSt = [], s2.zSt = [], s2.VSt = true;
          }
          return t3.prototype.L0 = function() {
            var t4 = this;
            t4.BSt = [], t4.OSt = [], t4.aj = [], t4.GSt = [], t4.USt = [], t4.PSt = [], t4.Mf = Lt, t4.jS = Lt, t4.IB && (t4.IB.L0(), t4.IB = Lt), t4.dl(), t4.rkr(true);
          }, t3.prototype.dl = function() {
            this.HSt = [], this.zSt = [], this.A0r();
          }, t3.prototype.NTr = function() {
            return this.H3 && this.H3.NTr();
          }, t3.prototype.GTr = function(t4) {
            return (0, g.GTr)(this, t4);
          }, t3.prototype.xkr = function(t4, n3) {
            var e3 = this;
            return e3.showHeader() && t4 === e3.startRow() && e3.NTr() && n3 >= e3.startColumn() && (n3 <= e3.endColumn() || e3.allowAutoExpand() && n3 === e3.endColumn() + 1);
          }, t3.prototype.$Gr = function(t4, n3) {
            var e3 = this, i3 = e3.showHeader() && t4 > e3.startRow() && t4 <= (e3.showFooter() ? e3.endRow() - 1 : e3.endRow());
            return !!i3 && (!!C(n3) || n3 >= e3.startColumn() && n3 <= e3.endColumn());
          }, t3.prototype.cGr = function(t4) {
            var n3 = this;
            n3.NTr() && (n3.CAr(), n3.xAr(t4));
          }, t3.prototype.xAr = function(t4) {
            var n3 = this;
            (t4 = t4 || n3.z3()) && n3.NTr() && t4.TAr() && (n3.Puo = function(t5, e3) {
              if (n3.Mf && !n3.expandBoundRows()) {
                var i3 = n3.Guo(1);
                i3.isInvalid && (e3.cancel = true, e3.error = i3.errorInfo, e3.stopPropagation());
              }
            }, n3.nUr = function(t5, e3) {
              var i3, r2, o2, a2, u2;
              if (n3.Mf) {
                if (i3 = false, e3.eventName === v.Events.TableFetched && n3.z3().tableName === e3.tableName) {
                  if (!e3.isFirstTimeFetched && !e3.reload || !e3.isDataLengthChanged) return;
                  i3 = true;
                }
                r2 = n3.z3().getTable(), (a2 = (o2 = n3.Mf.tables).all().some((function(t6) {
                  if (t6.NTr()) {
                    var n4 = t6.z3();
                    return n4.getTable() === r2 && !n4.PLt();
                  }
                  return false;
                }))) || (o2.tUr(), i3 && (u2 = n3.IB) && (u2.Pct() && u2.sortColumn(u2.nrt.index, u2.nrt.ascending), u2.isFiltered() && u2.filter(Ft)));
              }
            }, n3.U2i = function(t5, e3) {
              var i3 = function() {
                clearTimeout(n3.SGr), n3.SGr = Ft;
              };
              n3.SGr && i3(), n3.SGr = setTimeout((function() {
                var t6, r2;
                i3(), (t6 = n3.Mf) && !t6.getCalcService().IsSuspended() && (r2 = n3.range(), t6.recalcRange(r2.row, r2.col, r2.rowCount, r2.colCount), n3.VGr(e3));
              }), 50);
            }, n3.GIr = function() {
              if (n3.KTr()) {
                var t5 = function() {
                  clearTimeout(n3.UIr), n3.UIr = Ft;
                };
                n3.UIr && t5(), n3.UIr = setTimeout((function() {
                  var e3, i3, r2, o2, a2;
                  if (t5(), e3 = n3.Mf) if (e3.getCalcService().IsSuspended()) n3.GIr();
                  else {
                    for (i3 = n3.dataRange(), e3.suspendPaint(), e3.suspendCalcService(), r2 = n3.BSt, o2 = 0; o2 < r2.length; o2++) (a2 = r2[o2]).dataAreaFormula() && e3.recalcRange(i3.row, o2 + i3.col, i3.rowCount, 1);
                    e3.resumeCalcService(), e3.resumePaint();
                  }
                }), 50);
              }
            }, t4.bind(v.Events.TableFetched, n3.nUr), t4.bind(v.Events.ItemInserting, n3.Puo), t4.bind(v.Events.ItemInserted, n3.nUr), t4.bind(v.Events.ItemRemoved, n3.nUr), t4.bind(v.Events.ItemUpdated, n3.U2i), t4.bind(v.Events.ItemReset, n3.U2i), t4.bind(v.Events.CalcValueCleared, n3.GIr));
          }, t3.prototype.CAr = function(t4) {
            var n3 = this, e3 = n3.z3();
            e3 && n3.NTr() && e3.TAr() && (n3.Puo && (e3.unbind(v.Events.ItemInserting, n3.Puo), n3.Puo = Ft), n3.nUr && (e3.unbind(v.Events.ItemInserted, n3.nUr), e3.unbind(v.Events.ItemRemoved, n3.nUr), n3.nUr = Ft), n3.U2i && (e3.unbind(v.Events.ItemUpdated, n3.U2i), e3.unbind(v.Events.ItemReset, n3.U2i), n3.U2i = Ft), n3.GIr && (e3.unbind(v.Events.CalcValueCleared, n3.GIr), n3.GIr = Ft, n3.UIr && (clearTimeout(n3.UIr), n3.UIr = Ft)), t4 && e3.wpt());
          }, t3.prototype.range = function() {
            var t4 = this;
            return (0, i2.Ec)(t4.Ky, t4.iw, t4.Sx, t4.Tx);
          }, t3.prototype.AAr = function(t4) {
            return t4 - this.startColumn();
          }, t3.prototype.dataRange = function() {
            var t4 = this, n3 = t4.jO ? t4.Ky + 1 : t4.Ky, e3 = t4.jO ? t4.Sx - 1 : t4.Sx;
            return t4.oL && e3--, (0, i2.Ec)(n3, t4.iw, e3, t4.Tx);
          }, t3.prototype.WTr = function() {
            return this.jO ? this.Ky + 1 : this.Ky;
          }, t3.prototype.gUr = function() {
            var t4 = this, n3 = t4.jO ? t4.Sx - 1 : t4.Sx;
            return t4.oL ? n3 - 1 : n3;
          }, t3.prototype.mUr = function(t4) {
            var n3 = this, e3 = n3.WTr(), i3 = n3.gUr();
            return t4 >= e3 && t4 < e3 + i3;
          }, t3.prototype.headerIndex = function() {
            return this.jO ? this.Ky : -1;
          }, t3.prototype.footerIndex = function() {
            return this.oL ? this.Ky + this.Sx - 1 : -1;
          }, t3.prototype.XHr = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = n3.Ky, r2 = n3.iw, o2 = false, a2 = t4.row, u2 = t4.col, s2 = t4.deltaRow, c2 = t4.deltaCol;
            C(a2) || a2 === i3 || (n3.Ky = a2, o2 = true), C(u2) || u2 === r2 || (n3.iw = u2, o2 = true), C(s2) || 0 === s2 || (n3.Ky += s2, o2 = true), C(c2) || 0 === c2 || (n3.iw += c2, o2 = true), o2 && (null == e3 || e3.$Dr({ type: "updateTablePosition", table: n3, deltaRow: s2, deltaCol: c2, oldRow: i3, oldCol: r2 }));
          }, t3.prototype.pEr = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Mf;
            r2 && ((n3 = t4.value) === (e3 = t4.oldValue) || C(n3) && C(e3) || r2.$Dr(_e({ type: "setTableColumnProperty", table: i3 }, t4)));
          }, t3.prototype.bEr = function(t4, n3, e3) {
            if (t4 !== Gn) {
              var i3 = this, r2 = i3.Mf;
              null == r2 || r2.$Dr({ type: "setTableProperty", tableId: i3.jKe(), propName: t4, value: n3, oldValue: e3 });
            }
          }, t3.prototype.showHeader = function(t4) {
            var n3, e3 = this;
            return 0 === arguments.length ? e3.jO : (e3.jO !== t4 && ((n3 = e3.Mf) && n3.suspendPaint(), e3.o5t(t4), n3 && n3.resumePaint()), e3);
          }, t3.prototype.layoutStyle = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.Gye, f2 = s2.Uye, l2 = s2.Hye;
            return 0 === arguments.length ? { data: fi(c2), header: fi(f2), footer: fi(l2) } : ((n3 = s2.Mf).suspendPaint(), t4 ? (i3 = t4.data, e3 = t4.header, r2 = t4.footer) : (i3 = Lt, e3 = Lt, r2 = Lt), !n3 || f2 === e3 && c2 === i3 && l2 === r2 || (o2 = { data: c2, header: f2, footer: l2 }, a2 = { data: i3, header: e3, footer: r2 }, u2 = n3.THr({ type: "setTableLayoutStyle", oldLayoutStyle: o2 }), n3.Ut.YSt(s2, "layoutStyle", o2, a2), s2.MEr(e3, i3, r2), n3.$Dr({ type: "setTableLayoutStyle", tableId: s2.jKe(), oldLayoutStyle: o2, headerStyle: e3, dataStyle: i3, footerStyle: r2 }, u2)), n3.resumePaint(), s2);
          }, t3.prototype.MEr = function(t4, n3, e3) {
            var i3 = this;
            i3.Uye = t4, i3.Gye = n3, i3.Hye = e3;
          }, t3.prototype.o5t = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Mf, o2 = i3.jO;
            r2 && r2.Ut.YSt(i3, "showHeader", o2, t4), n3 = t4, i3.CEr(n3), n3 ? (i3.Ky > 0 && (i3.XHr({ row: i3.Ky - 1 }), i3.Sx += 1), i3.a5t()) : (e3 = i3.Ky, i3.XHr({ row: i3.Ky + 1 }), i3.Sx -= 1, i3.u5t(e3), i3.s5t()), null == r2 || r2.$Dr({ type: "showHeader", tableId: i3.jKe(), value: t4, oldValue: o2, currentRange: i3.range() }), r2 && a && r2.recalcRange(i3.Ky + (t4 ? 0 : -1), i3.iw, 1, i3.Tx);
          }, t3.prototype.CEr = function(t4) {
            this.jO = t4;
          }, t3.prototype.showFooter = function(t4, n3) {
            var e3, i3 = this;
            if (0 === arguments.length) return i3.oL;
            if (i3.oL !== t4) {
              (e3 = i3.Mf) && e3.suspendPaint();
              try {
                i3.c5t(t4, n3 || false);
              } finally {
                e3 && e3.resumePaint();
              }
            }
            return i3;
          }, t3.prototype.expandBoundRows = function(t4) {
            var n3 = this;
            return 0 === arguments.length ? n3.RSt : (n3.RSt !== t4 && (n3.RSt = t4), n3);
          }, t3.prototype.c5t = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf;
            if (p2 && p2.Ut.YSt(v2, Kn, v2.oL, t4), e3 = v2.Sx, t4) {
              if ((!p2 || v2.Ky + e3 < p2.getRowCount()) && (!n3 || v2.f5t(true, e3))) for (v2.Sx += 1, v2.SEr(t4), r2 = (i3 = v2.BSt).length, o2 = v2.footerIndex(), u2 = v2.iw, s2 = 0; s2 < r2; s2++) l2 = u2 + s2, (f2 = (c2 = i3[s2]) && c2.footerFormula()) && (h2 = ut(p2, f2, o2, l2)) && (f2 = at(p2, h2, o2, l2), c2.footerFormula(f2));
              v2.l5t();
            } else d2 = v2.Ky + e3 - 1, v2.Sx -= 1, v2.SEr(t4), v2.u5t(d2), v2.cL(0), n3 && v2.f5t(false, e3);
            p2 && a && p2.recalcRange(v2.Ky + v2.Sx + (t4 ? -1 : 0), v2.iw, 1, v2.Tx);
          }, t3.prototype.SEr = function(t4) {
            var n3, e3 = this;
            e3.xEr(t4), null === (n3 = e3.Mf) || void 0 === n3 || n3.$Dr({ type: "showFooter", tableId: e3.jKe(), value: t4, currentRange: e3.range() });
          }, t3.prototype.xEr = function(t4) {
            this.oL = t4;
          }, t3.prototype.f5t = function(t4, n3) {
            var e3, i3 = this, r2 = i3.Mf, o2 = i3.Ky + n3, a2 = i3.iw, u2 = i3.Tx, s2 = a2 + u2 - 1, c2 = lt(r2, i3), f2 = c2 >= o2;
            return (!t4 || !dt(r2, i3, o2, c2, a2, s2, 1)) && (f2 && (e3 = t4 ? o2 + 1 : o2 - 1, r2.moveTo(o2, a2, e3, a2, c2 - o2 + 1, u2, _)), true);
          }, t3.prototype.h5t = function(t4) {
            var n3, e3, r2, o2, a2 = this, u2 = a2.BSt, s2 = u2.length, c2 = a2.iw, f2 = [], l2 = a2.name(), h2 = a2.Mf.options.rightToLeft ? i2.ButtonPosition.left : i2.ButtonPosition.right;
            for (n3 = 0; n3 < s2; n3++) e3 = c2 + n3, r2 = a2.getColumnName(n3), f2.push(He(l2, r2, h2)), t4 || (0 === n3 ? a2.d5t(e3, ge().Table_Total, true) : n3 === s2 - 1 && ((o2 = u2[n3].footerFormula()) || (a2.v5t(e3) ? a2.m5t(n3, "=SUBTOTAL(109,".concat(l2, "[").concat(r2, "])")) : a2.m5t(n3, "=SUBTOTAL(103,".concat(l2, "[").concat(r2, "])")))));
            a2.OSt = f2;
          }, t3.prototype.ZEr = function() {
            var t4 = this, n3 = t4.BSt, e3 = n3.length, i3 = e3 - 1, r2 = t4.iw, o2 = r2 + i3, a2 = t4.name(), u2 = t4.getColumnName(i3), s2 = n3[i3].footerFormula();
            s2 || (t4.v5t(o2) ? t4.m5t(i3, "=SUBTOTAL(109,".concat(a2, "[").concat(u2, "])")) : t4.m5t(i3, "=SUBTOTAL(103,".concat(a2, "[").concat(u2, "])")));
          }, t3.prototype.v5t = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Mf, o2 = i3.dataRange(), a2 = true, u2 = o2.rowCount, s2 = o2.row;
            for (n3 = 0; n3 < u2; n3++) if (e3 = r2.getValue(s2 + n3, t4), !C(e3) && typeof e3 !== ee) {
              a2 = false;
              break;
            }
            return a2;
          }, t3.prototype.g5t = function() {
            return this.OSt && this.OSt.length > 0;
          }, t3.prototype.p5t = function(t4, n3, e3) {
            var i3 = this, r2 = this.Mf;
            i3.g5t() && (r2 && r2.Ut.YSt(i3, Nn, i3.b5t(), e3), n3 >= 0 && (e3 ? i3.OSt.splice(t4, n3, e3) : i3.OSt.splice(t4, n3)));
          }, t3.prototype.b5t = function() {
            var t4, n3 = this.OSt, e3 = [];
            return n3.forEach((function(t5) {
              t5 && e3.push(t5.clone());
            })), e3;
          }, t3.prototype.y5t = function(t4, n3, e3) {
            var r2 = this, o2 = r2.Mf.options.rightToLeft ? i2.ButtonPosition.left : i2.ButtonPosition.right, a2 = b(e3) ? He(r2.name(), e3, o2) : Lt;
            r2.g5t() && r2.p5t(t4, n3, a2);
          }, t3.prototype.useFooterDropDownList = function(t4) {
            var n3, e3 = this, i3 = e3.Mf;
            return 0 === arguments.length ? e3.ESt : (i3 && (i3.suspendPaint(), (n3 = e3.ESt) !== t4 && (i3.Ut.YSt(e3, "useFooterDropDownList", n3, t4), e3.ESt = t4, e3.bEr("useFooterDropDownList", t4, n3), e3.ESt && !e3.g5t() && (e3.h5t(), e3.w5t())), i3.resumePaint()), e3);
          }, t3.prototype.getStyleName = function() {
            return this.styleName;
          }, t3.prototype.TEr = function(t4, n3) {
            var e3 = this;
            zi(Gn).call(e3, t4, e3.styleName), false !== n3 && Yi(Gn).call(e3, t4, e3.styleName), e3.styleName = t4;
          }, t3.prototype.AEr = function(t4) {
            var n3 = new f.TableTheme();
            return n3.fromJSON(t4), n3;
          }, t3.prototype.rowFilter = function() {
            var t4 = this;
            return !t4.IB && n2.WSt && (t4.IB = new n2.WSt(t4), t4.IB.Uct(t4.dataRange())), t4.IB;
          }, t3.prototype.IEr = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.Mf;
            return t4 = null != t4 ? t4 : o2.BSt.length, i3 = o2.kEr(n3, t4), r2 = null == a2 ? void 0 : a2.THr({ type: "addTableColumn", table: o2, column: i3, index: t4 }), o2.NEr(t4, i3), null == a2 || a2.$Dr({ type: "addTableColumn", tableId: o2.jKe(), index: t4, column: i3, currentRange: o2.range() }, r2), e3 && o2.LAr(i3, t4), i3;
          }, t3.prototype.kEr = function(t4, n3) {
            var e3, i3, r2 = new ke(this.M5t(), Ft, t4);
            return t4 || (e3 = r2.name()) !== (i3 = this.zuo(e3, n3)) && r2.name(i3), r2.onChange = this.pEr.bind(this), r2;
          }, t3.prototype.NEr = function(t4, n3) {
            var e3, i3;
            this.BSt.splice(t4, 0, n3);
          }, t3.prototype.iGe = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2;
            void 0 === n3 && (n3 = 1), n3 <= 0 || (r2 = (i3 = this).BSt, o2 = i3.Mf, r2 && (a2 = r2.splice(t4, n3), i3.y5t(t4, n3), u2 = null == o2 ? void 0 : o2.THr({ type: "removeTableColumn", table: i3, index: t4, removedTcs: a2 }), null == o2 || o2.$Dr({ type: "removeTableColumn", table: i3, index: t4, removedTcs: a2 }, u2), e3 && i3.FAr(t4, n3)));
          }, t3.prototype.bindColumns = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = [];
            if (t4) {
              for (t4.length > 0 && s2.NTr() && (t4 = Li(s2.z3().getTable(), t4)), n3 = t4.length, s2.autoGenerateColumns() || (n3 = Bt(s2.Tx, t4.length)), s2.jO && c2.KI(s2.Ky, s2.iw, 1, n3, 3, 17, Ft, true), e3 = 0; e3 < n3; e3++) (i3 = s2.BSt[e3]) || (i3 = s2.IEr(e3)), ci(c2, s2, t4[e3], i3, e3, true), r2 = i3.dataField(), o2 = { name: i3.name(), value: i3.value(), dataField: r2 }, r2 && f2.push(o2), s2.y5t(e3, 1, i3.name());
              s2.vTt(), n3 > 0 && s2.NTr() && (Di(s2.BSt), u2 = Fi((a2 = s2.z3()).getTable(), s2.BSt.slice()), a2.setColumnInfos(u2, false, true), s2.H3.zEr());
            }
            s2.C5t = f2, s2.IBe(f2);
          }, t3.prototype.bindingPath = function(t4) {
            var n3 = this;
            return 0 === arguments.length ? n3.S5t : (n3.NTr() || (n3.S5t = t4, n3.qSt()), n3);
          }, t3.prototype.bind = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, g2, m2, b2, y2, w2 = this;
            if ("string" == typeof e3 && (f2 = null === (a2 = null === (o2 = null === (r2 = null === (i3 = w2.Mf) || void 0 === i3 ? void 0 : i3.parent) || void 0 === r2 ? void 0 : r2.dataManager()) || void 0 === o2 ? void 0 : o2.tables) || void 0 === a2 ? void 0 : a2[e3], C(f2) ? (l2 = e3, e3 = Lt, (h2 = null === (c2 = null === (u2 = w2.Mf) || void 0 === u2 ? void 0 : u2.parent) || void 0 === c2 ? void 0 : c2.dataManager()) && (w2.xUr = l2, d2 = Ni(v.Events.TableAdded, w2), h2.D3(d2, (function(t5, n4) {
              n4.name === l2 && (h2._3(d2), delete w2.xUr, w2.bind(w2.BSt.slice(), w2.S5t, l2));
            })))) : e3 = f2), g2 = e3, m2 = !(0, p.isDMView)(g2), b2 = wi(g2), C(t4) || (b2 && Di(t4 = Li(g2, t4)), w2.bindColumns(t4)), C(e3) && (g2 = w2.z3()), n3 && !b2 && (w2.S5t = n3, g2 = (0, s.q$)(g2, n3)), s.$$ && g2 && m2) if (b2) {
              if (w2.showResizeHandle(false), y2 = w2.IAr(g2, w2.autoGenerateColumns() ? [] : w2.BSt)) return y2;
            } else w2.T5t(g2);
            return w2;
          }, t3.prototype.RIr = function(t4, n3) {
            var e3, i3 = this;
            if (i3.POt || (i3.POt = new d.QTr(i3.Mf.getCalcService(), i3)), t4.kAr(i3.POt, (function() {
              return i3.Mf.options;
            })), n3) for (e3 in n3) n3.hasOwnProperty(e3) && t4.rGr(Number(e3), n3[e3]);
            t4.HTr(true);
          }, t3.prototype.IAr = function(t4, n3) {
            var e3, i3 = this, r2 = Bi(t4, Ai(i3), n3);
            if (i3.RIr(r2), !r2.XLt()) return e3 = function() {
              return r2.TUr(), Pi(r2), i3.T5t(r2), i3;
            }, r2.getTable().fetch().then(e3).catch((function() {
              r2.NAr = function() {
                delete r2.NAr, e3();
              };
            }));
            i3.T5t(r2);
          }, t3.prototype.DAr = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2 = t4.dataManagerTableBinding, l2 = t4.dataManagerViewBinding, h2 = this, d2 = h2.Mf.parent.dataManager().tables[f2];
            C(d2) ? f2 && C(l2) && (n3 = h2.xUr = f2, e3 = h2.Mf.parent.dataManager(), i3 = Ni(v.Events.TableAdded, h2), e3.D3(i3, (function(t5, r3) {
              r3.name === n3 && (e3._3(i3), delete h2.xUr, h2.bind(h2.BSt.slice(), h2.S5t, n3));
            }))) : ((r2 = d2.views[l2]).uIr() ? r2 = h2.okr(r2) : h2.RIr(r2), o2 = r2, a2 = function(t5) {
              h2.NTr() && h2.z3() !== t5 && h2.rkr(!(0, p.isDMView)(t5), t5);
            }, u2 = function() {
              a2(o2), h2.H3.bind(o2), h2.cGr(o2);
            }, s2 = function() {
              Pi(r2), r2.tFt(Lt, Lt, Lt, true);
            }, r2.XLt() ? (s2(), u2()) : (u2(), c2 = function() {
              var t5;
              r2.TUr(), s2(), Hi(h2.Mf, h2, (function() {
                h2.refreshBinding(true);
              }));
            }, r2.getTable().fetch().then(c2).catch((function() {
              r2.NAr = function() {
                delete r2.NAr, c2();
              };
            }))));
          }, t3.prototype.getColumn = function(t4) {
            return this.BSt.find((function(n3) {
              return n3.name() === t4;
            }));
          }, t3.prototype.jEr = function(t4) {
            return this.BSt.find((function(n3) {
              return n3.jKe() === t4;
            }));
          }, t3.prototype.DEr = function(t4) {
            return this.BSt.findIndex((function(n3) {
              return n3.jKe() === t4;
            }));
          }, t3.prototype.getColumnName = function(t4) {
            var n3, e3, i3 = this.BSt;
            return i3 && 0 <= t4 && t4 < i3.length && (n3 = i3[t4]) ? ((e3 = n3.name()) !== Lt && (e3 = y(e3)), e3) : Lt;
          }, t3.prototype.setColumnName = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this;
            return a2.cSt(n3) || (e3 = a2.BSt) && 0 <= t4 && t4 < e3.length && ((i3 = e3[t4]) || (i3 = a2.IEr(t4)), r2 = i3.name(), o2 = a2.Mf, r2 !== n3 && o2 && (o2.Ut.A5t(a2, i3, "name", r2, n3), i3.name(n3)), a2.jO && o2 && o2.setText(a2.headerIndex(), a2.iw + t4, n3), a2.I5t(r2, i3.name(), t4)), a2;
          }, t3.prototype.I5t = function(t4, n3, e3) {
            var i3, r2 = this, o2 = r2.BSt, a2 = o2[e3];
            r2.y5t(e3, 1, a2.name()), (i3 = this.LSt) && i3.onColumnNameChanged(t4, n3), r2._Er(t4, n3), r2.A0r();
          }, t3.prototype._Er = function(t4, n3) {
            var e3, i3 = this;
            null === (e3 = this.aT) || void 0 === e3 || e3.forEach((function(e4, i4) {
              i4.ubt === t4 && (i4.ubt = n3), i4.sbt === t4 && (i4.sbt = n3);
            })), i3.A0r();
          }, t3.prototype.autoBind = function() {
            var t4 = this, n3 = t4.z3();
            t4.IBe(Lt), s.$$ && n3 && (t4._Be = true, t4.T5t(n3), delete t4._Be);
          }, t3.prototype.refreshBinding = function(t4) {
            var n3, e3, r2, o2, a2, u2 = this;
            u2.QL() && (n3 = u2.dataRange(), (e3 = u2.pTt()) > 0 && e3 !== nt(n3) && (r2 = e3, u2.showHeader() && (r2 += 1), u2.showFooter() && (r2 += 1), o2 = u2.range(), a2 = (0, i2.Ec)(o2.row, o2.col, r2, et(n3)), u2.K5t(a2, true, t4)));
          }, t3.prototype.IBe = function(t4, n3) {
            var e3, i3, r2 = this, o2 = n3 || r2.H3;
            o2 && (i3 = void 0, (e3 = r2.Mf.Ut.G8) && ((i3 = e3.tableChanges) || (e3.tableChanges = i3 = [])), o2.IBe(t4, i3));
          }, t3.prototype.setColumnDataField = function(t4, n3) {
            var e3, r2, o2, a2, u2, c2, f2 = this, l2 = f2.BSt;
            if (l2 && 0 <= t4 && t4 < l2.length) {
              if ((e3 = l2[t4]) || (e3 = f2.IEr(t4)), f2.NTr() && (Ri(n3, Ei(f2.z3().getTable())(n3)) && (n3 = "=" + n3), n3 = ji(n3, f2.BSt)), r2 = f2.Mf, o2 = e3.dataField(), r2 && n3 !== o2 && (r2.Ut.A5t(f2, e3, "dataField", o2, n3), f2.NTr() && (a2 = e3.dataAreaFormula()) && (e3.dataAreaFormula(Lt), e3.x5t(Lt), r2.Ut.A5t(f2, e3, "dataAreaFormula", a2, Lt))), e3.dataField(n3), f2.NTr()) return f2._Ar(t4, e3), n3 !== o2 && f2.Luo(), u2 = f2.IB.range, u2 = (0, i2.Ec)(u2.row, u2.col, u2.rowCount, u2.colCount), f2.IB.Xct(f2.iw + t4, 1), f2.IB.Jct(f2.iw + t4, 1), f2.IB.Fct(u2), f2;
              c2 = f2.z3(), s.$$ && c2 && f2.T5t(c2);
            }
            return f2;
          }, t3.prototype.getColumnDataField = function(t4) {
            var n3, e3, i3 = this.BSt;
            return i3 && 0 <= t4 && t4 < i3.length && (n3 = i3[t4]) ? ((e3 = n3.dataField()) !== Lt && (e3 = y(e3)), e3) : Lt;
          }, t3.prototype.getColumnFormula = function(t4) {
            var n3, e3, i3, r2, o2 = this.BSt, a2 = this.Mf;
            return o2 && a2 && 0 <= t4 && t4 < o2.length && (n3 = o2[t4]) ? (e3 = this.footerIndex(), i3 = this.iw + t4, (r2 = n3.footerFormula()) && ut(a2, r2, e3, i3, false)) : Lt;
          }, t3.prototype.setColumnFormula = function(t4, n3) {
            return this.m5t(t4, n3), this;
          }, t3.prototype.setColumnDataFormula = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
            if (a) {
              if ((i3 = (e3 = this).BSt) && 0 <= t4 && t4 < i3.length && (r2 = i3[t4])) {
                o2 = e3.Mf, J(o2), $(o2), u2 = t4 + e3.iw, s2 = e3.Ky, c2 = e3.Sx;
                try {
                  for (e3.showHeader() && (s2++, c2--), e3.showFooter() && c2--, f2 = at(o2, n3, s2, u2, true, Ft, e3), l2 = r2.dataAreaFormula(), o2 && f2 !== l2 && o2.Ut.A5t(e3, r2, "dataAreaFormula", l2, f2), r2.x5t(n3), r2.dataAreaFormula(f2), h2 = s2, d2 = n3, v2 = f2, e3.NTr() && (h2 = s2 + c2, d2 = Lt, v2 = Lt, n3 ? e3._Ar(t4, r2, n3, f2) : e3._Ar(t4, r2), e3.EAr()), p2 = h2; p2 < s2 + c2; p2++) g2 = o2.getFormula(p2, u2), Q(o2, p2, u2, d2, v2), n3 || (m2 = l2 && ut(o2, l2, p2, u2), (g2 = g2 && ut(o2, at(o2, g2, p2, u2), p2, u2)) === m2 && o2.Ut.setValue(p2, u2, Lt));
                } finally {
                  b2 = function(t5) {
                    return t5.w3 === o2.oMt && t5.row >= s2 && t5.row < s2 + c2 && t5.column === u2;
                  }, o2.Lp.resume(false, Ft, b2), X(o2);
                }
              }
              return e3;
            }
          }, t3.prototype.EAr = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.NTr() && r2.N5t() && r2.getSlicerData && r2.getSlicerData();
            if (o2) for (t4 = r2.BSt, n3 = 0; n3 < t4.length; n3++) (e3 = t4[n3]).dataAreaFormula() && (i3 = o2.getColumnIndex(e3.name()), o2.vzt && o2.vzt[i3] && (o2.vzt[i3] = Lt));
          }, t3.prototype.VGr = function(t4) {
            var n3 = this, e3 = n3.z3().YGr(t4.index), i3 = t4 && t4.changingFields || [];
            n3.ZGr(e3, i3);
          }, t3.prototype.ZGr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.N5t() && s2.getSlicerData && s2.getSlicerData();
            if (c2) {
              for (s2.EAr(), e3 = s2.dataRange(), i3 = t4 + s2.startRow(), r2 = s2.BSt, o2 = [], a2 = function(t5) {
                var a3, u3 = n3[t5], c3 = r2.findIndex((function(t6) {
                  return u3 === t6.dataField();
                }));
                c3 > -1 && (a3 = c3 + s2.startColumn(), o2.push(s2.WGr(i3, a3, e3)));
              }, u2 = 0; u2 < n3.length; u2++) a2(u2);
              s2.QGr(o2);
            }
          }, t3.prototype.WGr = function(t4, n3, e3) {
            var i3 = this, r2 = i3.Mf;
            return { columnName: i3.getColumnName(n3 - e3.col), row: t4 - e3.row, data: { value: r2.getValue(t4, n3), text: r2.getText(t4, n3) } };
          }, t3.prototype.QGr = function(t4) {
            var n3, e3 = this;
            t4 && t4.length > 0 && e3.N5t() && e3.getSlicerData && (null === (n3 = e3.getSlicerData()) || void 0 === n3 || n3.onDataChanged(t4));
          }, t3.prototype.KTr = function(t4, n3) {
            var e3, i3 = this;
            return C(t4) ? i3.BSt.some((function(t5) {
              return t5.dataAreaFormula();
            })) : (n3 = null != n3 ? n3 : i3.AAr(t4), null === (e3 = i3.BSt[n3]) || void 0 === e3 ? void 0 : e3.dataAreaFormula());
          }, t3.prototype.zGr = function(t4) {
            var n3, e3 = this, i3 = e3.z3(), r2 = i3.kve(t4);
            return !r2 || r2.zTr || (0, v.isFormula)(r2) || !(null === (n3 = i3.getTable()) || void 0 === n3 ? void 0 : n3.hasExistedColumn(r2.value));
          }, t3.prototype._Ar = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2 = this, c2 = s2.H3;
            c2 && c2.OTr() && (e3 ? c2.JEe(t4, Ti(n3, e3, i3), null === (o2 = null === (r2 = s2.Mf) || void 0 === r2 ? void 0 : r2.Ut) || void 0 === o2 ? void 0 : o2.G8) : c2.JEe(t4, xi(n3), null === (u2 = null === (a2 = s2.Mf) || void 0 === a2 ? void 0 : a2.Ut) || void 0 === u2 ? void 0 : u2.G8));
          }, t3.prototype.getColumnValue = function(t4) {
            var n3, e3, i3 = this, r2 = i3.BSt;
            return r2 && 0 <= t4 && t4 < r2.length && (n3 = r2[t4]) ? i3.oL && n3.footerFormula() && (e3 = i3.Mf) ? e3.getValue(i3.footerIndex(), i3.iw + t4) : n3.footerValue() : Lt;
          }, t3.prototype.setColumnValue = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.BSt, a2 = r2.Mf;
            return o2 && 0 <= t4 && t4 < o2.length && ((e3 = o2[t4]) && (i3 = e3.footerValue(), a2 && n3 !== i3 && a2.Ut.A5t(r2, e3, "footerValue", i3, n3), e3.footerValue(n3)), r2.oL && a2 && K(a2, r2.footerIndex(), r2.iw + t4, n3)), r2;
          }, t3.prototype.columnLayoutStyle = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.BSt;
            return C(t4) || 0 > t4 || t4 >= l2.length || !l2 ? f2 : (e3 = l2[t4]) ? (i3 = e3.headerStyle(), r2 = e3.dataStyle(), o2 = e3.footerStyle(), n3 === Ft ? { header: fi(i3), data: fi(r2), footer: fi(o2) } : (u2 = void 0, s2 = void 0, c2 = void 0, (a2 = f2.Mf).suspendPaint(), n3 ? (u2 = n3.header, s2 = n3.data, c2 = n3.footer) : (u2 = n3, s2 = n3, c2 = n3), !a2 || i3 === u2 && r2 === s2 && o2 === c2 || (a2.Ut.A5t(f2, e3, tn, i3, u2), a2.Ut.A5t(f2, e3, $t, r2, s2), a2.Ut.A5t(f2, e3, nn, o2, c2), e3.headerStyle(u2), e3.dataStyle(s2), e3.footerStyle(c2)), a2.resumePaint(), f2)) : f2;
          }, t3.prototype.filterButtonVisible = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.rowFilter(), c2 = a2.Tx, f2 = arguments;
            switch (f2.length) {
              case 0:
                return s2 && s2.filterButtonVisible();
              case 1:
                if ("number" === (i3 = typeof (e3 = f2[0]))) {
                  if (e3 < 0 || e3 >= c2) return;
                  return s2 && s2.filterButtonVisible(e3);
                }
                if ("boolean" === i3 && s2) {
                  for (J(u2), r2 = 0; r2 < a2.Tx; r2++) s2.filterButtonVisible(r2, e3);
                  X(u2);
                }
                return a2;
              case 2:
                if ((o2 = t4) < 0 || o2 >= c2) return;
                return s2 && s2.filterButtonVisible(t4, n3), a2;
            }
          }, t3.prototype.allowAutoExpand = function(t4) {
            var n3, e3 = this, i3 = e3.Mf;
            return 0 === arguments.length ? e3.VSt : ((n3 = e3.VSt) !== t4 && (i3.Ut.YSt(e3, "allowAutoExpand", n3, t4), e3.VSt = t4, e3.bEr("allowAutoExpand", t4, n3)), e3);
          }, t3.prototype.N5t = function() {
            return !!this.LSt;
          }, t3.prototype.luo = function() {
            var t4;
            return ((null === (t4 = this.Mf.slicers) || void 0 === t4 ? void 0 : t4.all(this.name())) || []).length > 0;
          }, t3.prototype.fuo = function() {
            return this.N5t() && this.luo();
          }, t3.prototype.Sg = function(t4) {
            var n3 = this, e3 = n3.jS;
            n3.k5t(t4), n3.Mf && n3.Mf.Ut && n3.Mf.Ut.D5t(n3, e3);
          }, t3.prototype.k5t = function(t4) {
            var n3, e3 = this;
            e3.jS = t4, e3.Mf = t4 && t4.Mf, n3 = e3.IB, t4 && n3 && n3.Mf !== t4.Mf && n3.table(e3);
          }, t3.prototype._5t = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.Mf, a2 = o2.getDefaultStyle(), u2 = r2.Ky, s2 = r2.iw, c2 = r2.Sx, f2 = r2.Tx, l2 = {}, h2 = o2.parent, d2 = r2.jO ? 1 : 0, v2 = d2 + (r2.oL ? 1 : 0);
            for (n3 = 0; n3 < f2; n3++) for (e3 = n3 + s2, r2.jO && Qe(o2, u2, e3, a2, l2, h2, t4), r2.oL && Qe(o2, r2.footerIndex(), e3, a2, l2, h2, t4), i3 = 0; i3 < c2 - v2; i3++) Qe(o2, i3 + u2 + d2, e3, a2, l2, h2, t4);
          }, t3.prototype.qle = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this, s2 = u2.Ky, c2 = u2.iw, f2 = u2.Sx, l2 = u2.Tx, h2 = {}, d2 = u2.jO ? 1 : 0, v2 = d2 + (u2.oL ? 1 : 0), p2 = e3.lv(n3), g2 = {};
            for (r2 = 0; r2 < l2; r2++) for (o2 = r2 + c2, u2.jO && ri(i3, t4, s2, o2, n3, h2, e3, p2, u2, g2), u2.oL && ri(i3, t4, u2.footerIndex(), o2, n3, h2, e3, p2, u2, g2), a2 = 0; a2 < f2 - v2; a2++) ri(i3, t4, a2 + s2 + d2, o2, n3, h2, e3, p2, u2, g2);
          }, t3.prototype.E5t = function(t4) {
            var n3 = this, e3 = [];
            w(n3.BSt, (function(t5, n4) {
              var i3 = n4.dataField();
              i3 && e3.push({ name: n4.name(), value: n4.value(), dataField: i3 });
            })), e3.length > 0 && (n3.C5t = e3, n3.IBe(e3, t4));
          }, t3.prototype.Woe = function(t4) {
            var n3, e3 = this, i3 = e3.Mf, r2 = e3.dataRange(), o2 = r2.row, a2 = r2.col, u2 = r2.col + r2.colCount - 1, s2 = nt(r2), c2 = t4.getRowCount(), f2 = function(t5, n4) {
              var r3, o3;
              i3.Buo && (r3 = i3.Buo, (o3 = function(i4) {
                var r4, s3, c3;
                for (r4 = 0, s3 = i4.length; r4 < s3; r4++) (c3 = i4[r4]) && (S(c3) ? o3(c3) : t5 <= c3.row && (e3.RSt || a2 <= c3.col && c3.col <= u2) && (c3.row += n4));
              })(r3));
            };
            c2 > s2 ? e3.RSt ? (e3.cue = true, i3.addRows(o2 + s2, c2 - s2), i3.recalcRange(o2, r2.col, s2, r2.colCount), delete e3.cue, f2(o2 + s2, c2 - s2)) : ((n3 = i3.H3) && n3.Ctt && (n3.Stt = true), e3.mTt = true, 0 === s2 ? (e3.zpt(o2, c2, Ft, true, true), f2(o2, c2)) : (e3.zpt(o2 + s2 - 1, c2 - s2, true, true, true), f2(o2 + s2 - 1, c2 - s2)), delete e3.mTt) : c2 < s2 && (e3.RSt ? (i3.deleteRows(o2 + c2, s2 - c2), i3.recalcRange(o2, r2.col, s2, r2.colCount)) : (e3.mTt = true, e3.yE(o2 + c2, s2 - c2, true), delete e3.mTt));
          }, t3.prototype.D3 = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.autoGenerateColumns(), g2 = v2.IB && v2.IB.srt;
            if (v2.s5t(), (n3 = v2.Mf).suspendCalcService(), n3 && (e3 = v2.dataRange(), i3 = n3.Ut, p2 ? i3.f_e(e3.row, e3.col, nt(e3), et(e3), 17, 3) : w(v2.BSt, (function(t5, n4) {
              var r3;
              n4.dataField() && i3.f_e(e3.row, e3.col + t5, nt(e3), 1, 17, 3);
            }))), p2 && (r2 = v2.range(), v2.d5(r2.row, r2.col, nt(r2), et(r2)), v2.l5t(r2.col, et(r2), true)), !p2 && v2.E5t(t4), t4) {
              if (o2 = { row: v2.Ky, col: v2.iw, rowCount: v2.Sx, colCount: v2.Tx }, v2.Woe(t4), n3 && n3.Ut.Qao(v2), v2.H3 = t4, v2.LSt && v2.NTr() && v2.LSt.c5(v2.z3()), p2) {
                for (a2 = v2.NTr(), u2 = void 0, v2.Tx = t4.getColumnCount(), s2 = v2.BSt, v2.BSt = [], c2 = t4.ltt(), f2 = 0; f2 < v2.Tx; f2++) l2 = v2.IEr(f2), c2 && (u2 = a2 ? l2.name() : s2[f2] && s2[f2].name(), l2.name(c2[f2]), u2 && v2.I5t(u2, l2.name(), f2), l2.dataField(c2[f2]));
                v2.ESt && (v2.OSt = [], v2.j5t(v2.iw), a2 && v2.useFooterDropDownList() && v2.g5t() && v2.ZEr());
              } else h2 = [], v2.BSt.forEach((function(t5) {
                var n4 = t5.dataField();
                n4 && h2.push(n4);
              })), t4.htt(h2);
              n3 && ((d2 = n3.Ut).YSt(v2, Jn, o2, { row: v2.Ky, col: v2.iw, rowCount: v2.Sx, colCount: v2.Tx }), d2.d3e(v2.Ky, v2.iw, Gt(o2.rowCount, v2.Sx), Gt(o2.rowCount, v2.Tx)), n3.recalcRange(v2.Ky, v2.iw, Gt(o2.rowCount, v2.Sx), Gt(o2.rowCount, v2.Tx)));
            } else n3 && n3.Ut.Qao(v2), v2.H3 = t4;
            n3.resumeCalcService(false), v2.IB && (v2.IB.Uct(v2.dataRange()), v2.IB.srt = g2);
          }, t3.prototype.O5t = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.H3;
            if (s2 && (n3 = s2.ltt())) {
              if (e3 = t4 - u2.startColumn(), i3 = u2.BSt[e3], u2.NTr()) return i3 !== Ft ? e3 : -1;
              for (r2 = i3 && i3.dataField(), o2 = 0, a2 = n3.length; o2 < a2; o2++) if (n3[o2] === r2) return o2;
            }
            return -1;
          }, t3.prototype.XTr = function(t4, n3) {
            var e3 = this, i3 = e3.H3, r2 = t4 - e3.WTr(), o2 = e3.O5t(n3);
            return i3.e5t(r2, o2);
          }, t3.prototype.Sl = function(t4, n3, e3) {
            var i3, r2, o2, a2 = false, u2 = Ft, s2 = this, c2 = s2.H3, f2 = t4 - s2.WTr();
            return c2 && f2 < c2.getRowCount() && (i3 = s2.O5t(n3)) >= 0 && (a2 = true, u2 = c2.getValue(f2, i3).value, (r2 = s2.BSt[i3]) && (o2 = r2.value()) && s2.NTr() && false !== e3 && (u2 = o2(c2.ftt(f2)))), { e5t: a2, y4: u2 };
          }, t3.prototype.Kbt = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2 = this, l2 = f2.H3, h2 = gt(f2, t4), d2 = f2.IB, v2 = false;
            if (l2 && (r2 = f2.O5t(n3)) >= 0) {
              if (f2.NTr() && (f2.KTr(n3, r2) || f2.zGr(r2))) return v2;
              i3 && d2 && d2.isRowFilteredOut(t4) || (o2 = (a2 = l2.getValue(h2, r2)).value, (s2 = (u2 = f2.Mf) && u2.Ut) && a2.hasBinding && o2 !== e3 && (c2 = bt(true), f2.R5t(t4, h2, c2), s2.B5t(f2, t4, Lt, c2, Ce.dirty), s2.dE(t4, n3, { d6: o2 })), l2.setValue(h2, r2, e3, s2 && s2.G8), f2.EAr()), v2 = true;
            }
            return f2.DSt = true, v2;
          }, t3.prototype.ML = function(t4, n3, e3) {
            var r2 = new i2.Style();
            return this.h5(t4, n3, r2, e3), r2;
          }, t3.prototype.L5t = function(t4) {
            var n3, e3 = this.jS.xl, i3 = e3[t4];
            return i3 !== Ft ? i3 : (n3 = this.Mf, i3 = e3[t4] = n3.getRowHeight(t4));
          }, t3.prototype.F5t = function(t4) {
            var n3;
            return this.Mf.getColumnWidth(t4);
          }, t3.prototype.zye = function(t4, n3, e3, i3, r2, o2, a2) {
            var u2, s2 = this, c2 = s2.Mf, f2 = s2.BSt;
            if (ze(f2, t4 - s2.iw, c2, n3, e3, i3, true, o2, true), e3 === tn ? u2 = s2.Uye : e3 === $t ? u2 = s2.Gye : e3 === nn && (u2 = s2.Hye), u2) {
              if ("string" == typeof u2 && c2 && (u2 = c2.u8(u2)), !u2) return;
              mi(u2, n3, i3, r2, o2, a2);
            }
          }, t3.prototype.nKr = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2 = this, c2 = s2.Mf, f2 = s2.HSt[t4];
            if (void 0 === f2) {
              if (i2.Be.Fl && i2.Be.Gl) {
                for (o2 = i2.Be.Gl, a2 = s2.dataRange().row; -1 === o2[a2]; ) a2++;
                if (a2 > t4) return;
                r2 = o2[t4] - o2[a2];
              } else if (c2) {
                if (u2 = 0, e3 && e3.lastRow !== Ft && e3.lastRow < t4) if (e3.lastRow + 1 === t4) u2 = e3.lastRelativeRowCount, s2.L5t(e3.lastRow) > 0 && u2++, r2 = u2;
                else {
                  for (u2 = e3.lastRelativeRowCount, a2 = e3.lastRow; a2 < t4; a2++) s2.L5t(a2) > 0 && u2++;
                  r2 = u2;
                }
                else {
                  for (a2 = s2.dataRange().row; a2 < t4; a2++) s2.L5t(a2) > 0 && u2++;
                  r2 = u2;
                }
                e3 && (e3.lastRow = t4, e3.lastRelativeRowCount = u2);
              }
              f2 = s2.HSt[t4] = r2 % n3;
            }
            return f2;
          }, t3.prototype.h5 = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = this, E2 = O2.getStyleOriginInstance(), R2 = O2.Mf, L2 = O2.headerIndex(), F2 = O2.footerIndex(), B2 = O2.jO, P2 = O2.oL, G2 = B2 ? t4 === O2.Ky + 1 : t4 === O2.Ky, U2 = P2 ? t4 === O2.Ky + O2.Sx - 2 : t4 === O2.Ky + O2.Sx - 1, H2 = n3 === O2.iw, V2 = n3 === O2.iw + O2.Tx - 1;
            if (L2 !== t4 && F2 !== t4 ? O2.zye(n3, e3, $t, G2, H2, U2, V2) : t4 === L2 ? O2.zye(n3, e3, tn, true, H2, true, V2) : t4 === F2 && O2.zye(n3, e3, nn, true, H2, true, V2), E2) {
              if (o2 = O2.highlightLastColumn(), a2 = O2.highlightFirstColumn(), u2 = B2 ? t4 === L2 : t4 === O2.Ky, s2 = P2 ? t4 === F2 : t4 === O2.Ky + O2.Sx - 1, c2 = E2[un](), f2 = E2[sn](), l2 = new i2.Style(), L2 === t4) h2 = E2[vn](), V2 && o2 && h2 && h2.h5(l2, true, true, true, true), d2 = E2[dn](), H2 && a2 && d2 && d2.h5(l2, true, true, true, true), (v2 = E2[rn]()) && v2.h5(l2, true, H2, true, V2), V2 && o2 && c2 && c2.h5(l2, true, true, false, true), H2 && a2 && f2 && f2.h5(l2, true, true, false, true);
              else if (F2 === t4) p2 = E2[gn](), V2 && o2 && p2 && p2.h5(l2, true, true, true, true), g2 = E2[pn](), H2 && a2 && g2 && g2.h5(l2, true, true, true, true), (m2 = E2[on]()) && m2.h5(l2, true, H2, true, V2), V2 && o2 && c2 && c2.h5(l2, false, true, true, true), H2 && a2 && f2 && f2.h5(l2, false, true, true, true);
              else {
                if (V2 && o2 && c2 && c2.h5(l2, u2, true, s2, true), H2 && a2 && f2 && f2.h5(l2, u2, true, s2, true), b2 = B2 ? t4 - O2.Ky - 1 : t4 - O2.Ky, y2 = void 0, w2 = void 0, M2 = void 0, C2 = void 0, S2 = void 0, T2 = void 0, x2 = void 0, A2 = !r2 || "cellType" !== r2 && "formatter" !== r2, O2.bandRows() && A2 && (w2 = (y2 = E2[mn]()) + E2[bn]()) > 0) {
                  if (void 0 === (M2 = O2.nKr(t4, w2))) {
                    if (i2.Be.Fl && i2.Be.Gl) {
                      for (I2 = i2.Be.Gl, k2 = O2.dataRange().row; -1 === I2[k2]; ) k2++;
                      if (k2 > t4) return;
                      b2 = I2[t4] - I2[k2];
                    } else if (R2) {
                      for (N2 = 0, k2 = O2.dataRange().row; k2 < t4; k2++) O2.L5t(k2) > 0 && N2++;
                      b2 = N2;
                    }
                    M2 = O2.HSt[t4] = b2 % w2;
                  }
                  C2 = E2[cn](), S2 = E2[fn](), M2 < y2 && C2 ? (T2 = 0 === M2, x2 = U2 || M2 === y2 - 1, C2.h5(l2, T2, H2, x2, V2)) : M2 >= y2 && S2 && (T2 = M2 === y2, x2 = U2 || M2 === w2 - 1, S2.h5(l2, T2, H2, x2, V2));
                }
                if (O2.bandColumns() && A2 && (w2 = (y2 = E2[yn]()) + E2[wn]()) > 0) {
                  if (void 0 === (M2 = O2.zSt[n3])) {
                    if (j2 = 0, R2) for (D2 = O2.iw; D2 < n3; D2++) O2.F5t(D2) > 0 && j2++;
                    M2 = O2.zSt[n3] = j2 % w2;
                  }
                  C2 = E2[ln](), S2 = E2[hn](), M2 < y2 && C2 ? (T2 = 0 === M2, x2 = V2 || M2 === y2 - 1, C2.h5(l2, G2, T2, U2, x2)) : M2 >= y2 && S2 && (T2 = M2 === y2, x2 = V2 || M2 === w2 - 1, S2.h5(l2, G2, T2, U2, x2));
                }
              }
              (_2 = E2[an]()) && _2.h5(l2, u2, H2, s2, V2), O2.P5t(e3, l2);
            }
          }, t3.prototype.i5t = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.oL, s2 = a2.ESt, c2 = a2.footerIndex(), f2 = c2 === t4;
            f2 && u2 && a2.g5t() && (i3 = a2.OSt[n3 - a2.iw]) && s2 && (r2 = e3.cellButtons, o2 = e3.dropDowns, C(r2) && (r2 = []), e3.cellButtons = r2.concat(i3.cellButtons), C(o2) && (o2 = []), e3.dropDowns = o2.concat(i3.dropDowns));
          }, t3.prototype.P5t = function(t4, n3) {
            var e3 = t4, i3 = 20, r2, o2, a2, u2;
            C(e3.backColor) && (e3.backColor = n3.backColor), Ot(e3.foreColor) && (e3.foreColor = n3.foreColor), C(e3.themeFont) && C(e3._fontFamily) && (e3.themeFont = n3.themeFont), C(e3._fontFamily) && (e3._fontFamily = n3._fontFamily), Ot(e3._fontSize) && (e3._fontSize = n3._fontSize, e3._fontSizeDigit = n3._fontSizeDigit, e3._fontSizeUnit = n3._fontSizeUnit), Ot(e3._fontStyle) && (e3._fontStyle = n3._fontStyle), Ot(e3._fontWeight) && (e3._fontWeight = n3._fontWeight), e3._fontVariant === Ft && (e3._fontVariant = n3._fontVariant), e3._fontStretch === Ft && (e3._fontStretch = n3._fontStretch), e3._lineHeight === Ft && (e3._lineHeight = n3._lineHeight), e3._font = we(e3._fontStyle, e3._fontWeight, e3._fontSize, e3._fontFamily, e3._fontVariant, e3._fontStretch, e3._lineHeight), C(e3.borderLeft) && (r2 = n3.borderLeft, e3.borderLeft = r2 && r2.Gf() || r2, e3.borderLeft && (e3.borderLeft.level = i3)), C(e3.borderTop) && (o2 = n3.borderTop, e3.borderTop = o2 && o2.Gf() || o2, e3.borderTop && (e3.borderTop.level = i3)), C(e3.borderRight) && (a2 = n3.borderRight, e3.borderRight = a2 && a2.Gf() || a2, e3.borderRight && (e3.borderRight.level = i3)), C(e3.borderBottom) && (u2 = n3.borderBottom, e3.borderBottom = u2 && u2.Gf() || u2, e3.borderBottom && (e3.borderBottom.level = i3)), C(e3.textDecoration) && (e3.textDecoration = n3.textDecoration), C(e3.cellType) && (e3.cellType = n3.cellType), C(e3.formatter) && (e3.formatter = n3.formatter), this.RN().tKr && ["hAlign", "vAlign", "wordWrap", "shrinkToFit", "textIndent", "showEllipsis", "textOrientation", "textDirection"].forEach((function(t5) {
              e3[t5] = n3[t5];
            }));
          }, t3.prototype.G5t = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this;
            if ((t4 !== u2.Ky || n3 !== u2.iw) && (e3 = u2.Mf)) {
              if ((t4 < 0 || e3.getRowCount() < t4 + u2.Sx || n3 < 0 || e3.getColumnCount() < n3 + u2.Tx) && W(ge().Exp_TableMoveOutOfRange), r2 = void 0, o2 = void 0, i3 = u2.jS) for (o2 = 0, a2 = (r2 = i3.U3).length; o2 < a2 && r2.get(o2) !== u2; o2++) ;
              e3.moveTo(u2.Ky, u2.iw, t4, n3, u2.Sx, u2.Tx, 3), r2 && o2 <= a2 && u2.H5t(t4, n3), this.cL(1);
            }
          }, t3.prototype.H5t = function(t4, n3) {
            var e3 = this, i3 = e3.Mf;
            i3 && i3.Ut.YSt(e3, Jn, { row: e3.Ky, col: e3.iw, rowCount: e3.Sx, colCount: e3.Tx }, { row: t4, col: n3, rowCount: e3.Sx, colCount: e3.Tx }), e3.XHr({ row: t4, col: n3 }), e3.V5t(), e3.dl();
          }, t3.prototype.U5t = function(t4, n3) {
            var e3, i3, r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Mf;
            if (b2 && a) {
              for (e3 = m2.BSt, i3 = m2.footerIndex(), r2 = m2.range(), u2 = (o2 = m2.dataRange()).row, s2 = nt(o2), C(t4) && (t4 = 0, n3 = e3.length); t4 < n3; t4++) if (c2 = e3[t4], f2 = r2.col + t4, c2) {
                for (c2.footerFormula() && i3 >= 0 && (Q(b2, i3, f2, Lt), K(b2, i3, f2, Lt)), l2 = c2.x5t(), h2 = Nt(l2), d2 = void 0, v2 = void 0, p2 = 0; p2 < s2; p2++) v2 = u2 + p2, d2 = b2.getFormula(v2, f2), C(d2) || (C(m2.Y5t) && (m2.Y5t = []), m2.Y5t.push({ row: v2, col: f2, formula: d2 })), C(d2) || !C(h2) && ut(b2, at(b2, h2, m2.Ky, f2, Ft, Ft, m2), v2, f2) === d2 || (C(m2.Z5t) && (m2.Z5t = []), g2 = jt(m2.Z5t, f2), C(g2) ? ((g2 = {}).col = f2, g2.rowIndexes = [], g2.rowIndexes.push(v2), m2.Z5t.push(g2)) : g2.rowIndexes.push(v2));
                if (c2.x5t(Ft), c2.dataAreaFormula()) for (p2 = 0; p2 < s2; p2++) Q(b2, v2 = u2 + p2, f2, Lt), K(b2, v2, f2, Lt);
              }
            }
          }, t3.prototype.z5t = function() {
          }, t3.prototype.tUr = function() {
            var t4 = this, n3 = t4.Mf;
            t4.NTr() && n3 && n3.tables && n3.tables.tUr(t4);
          }, t3.prototype.K5t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2 = this, Z2 = Y2.dataRange();
            if (!t4.equals(Y2.range())) {
              if (c2 = t4.row, f2 = t4.col, l2 = nt(t4), h2 = et(t4), d2 = Y2.jO, v2 = Y2.oL, p2 = Y2.ESt, g2 = 0, m2 = 1, d2 && (g2 += 1), v2 && (g2 += 1), (w2 = Y2.Mf) && ((l2 < g2 || h2 < m2 || c2 + l2 > w2.getRowCount() || f2 + h2 > w2.getColumnCount()) && W(ge().Exp_TableResizeOutOfRange), c2 === Y2.Ky && t4.intersect(Y2.Ky, Y2.iw, Y2.Sx, Y2.Tx) || W(ge().Exp_TableResizeInvalidRange), y2 = { row: Y2.Ky, col: Y2.iw, rowCount: Y2.Sx, colCount: Y2.Tx }, b2 = Y2.BSt.slice()), null === (i3 = $i(w2)) || void 0 === i3 || i3.startRecordOp(), M2 = Y2.BSt, C2 = f2, S2 = f2 + h2 - 1, T2 = Y2.iw, x2 = Y2.iw + Y2.Tx - 1, A2 = Y2.Tx, Y2.Tx = h2, Y2.XHr({ col: f2 }), I2 = Y2.layoutStyle(), k2 = y2.row === Y2.headerIndex() ? y2.row + 1 : y2.row, j2 = (N2 = y2.row + y2.rowCount - 1) === Y2.footerIndex() ? N2 - 1 : N2, C2 < T2) {
                for (D2 = 0, _2 = C2; _2 < T2; _2++) Y2.IEr(D2, Ft, !n3), D2++;
                d2 && Y2.a5t(0, T2 - C2, Ft, Ft, true), v2 && Y2.l5t(0, T2 - C2, Ft, true), y2 && I2.data && hi(w2, k2, C2, j2, T2 - 1, Y2);
              } else C2 <= x2 && (Y2.U5t(T2, C2), Y2.iGe(0, C2 - T2, !n3));
              if (S2 > x2) {
                for (_2 = x2 + 1; _2 <= S2; _2++) Y2.IEr(Ft, Ft, !n3);
                d2 && Y2.a5t(A2, S2 - x2, Ft, Ft, true), v2 && Y2.l5t(A2, S2 - x2, Ft, true), y2 && I2.data && hi(w2, k2, x2 + 1, j2, S2, Y2), p2 && Y2.j5t(A2);
              } else S2 >= T2 && (Y2.U5t(S2, x2), Y2.iGe(M2.length - (x2 - S2), x2 - S2, !n3));
              l2 !== Y2.Sx && (O2 = Y2.H3, R2 = (E2 = Y2.dataRange()).row, L2 = nt(E2), O2 ? l2 > Y2.Sx ? (F2 = R2 + L2 - 1, B2 = l2 - Y2.Sx, w2 && (P2 = Y2.NTr(), Y2.N4t(F2, B2, true, false, Lt, Lt, n3, e3), P2 && F2++, hi(w2, F2, C2, F2 + B2 - 1, S2, Y2))) : w2 && (G2 = Y2.Sx - l2, Y2.yE(R2 + L2 - G2, G2, Ft, n3, e3)) : (U2 = void 0, v2 && (Y2.l5t(), U2 = Y2.footerIndex(), Y2.eTt = true, Y2.u5t(U2), delete Y2.eTt), H2 = Y2.Sx, Y2.Sx = l2, (V2 = l2 - H2) > 0 ? null == w2 || w2.$Dr({ type: "addTableRow", table: Y2, count: V2, oldRange: y2 }) : null == w2 || w2.$Dr({ type: "removeTableRow", tableId: Y2.jKe(), count: -V2, oldRange: y2 }), y2 && (y2.row > t4.row && hi(w2, t4.row, C2, y2.row - 1, S2, Y2), y2.row + y2.rowCount - 1 < t4.row + t4.rowCount - 1 && hi(w2, y2.row + y2.rowCount, C2, t4.row + t4.rowCount - 1, S2, Y2)), Y2.J5t(y2.row + H2 - (v2 ? 1 : 0), l2 - H2, l2 > H2), v2 && Y2.w5t())), w2 && (w2.Ut.YSt(Y2, Jn, y2, { row: Y2.Ky, col: Y2.iw, rowCount: Y2.Sx, colCount: Y2.Tx }), w2.Ut.YSt(Y2, Xn, b2, Y2.BSt.slice())), Y2.dl(), Y2.V5t(false), Y2.X5t(Z2, Y2.dataRange(), e3), z2 = null === (r2 = $i(w2)) || void 0 === r2 ? void 0 : r2.endRecordOp(), (C2 !== T2 || S2 < x2) && this.ccr(w2), null === (o2 = $i(w2)) || void 0 === o2 || o2.submitOp(z2), Y2.jS.ssr(), null === (u2 = null === (a2 = null == w2 ? void 0 : w2.qgt) || void 0 === a2 ? void 0 : a2.t8) || void 0 === u2 || u2.Fgt(c2, f2, l2, h2), null === (s2 = null == w2 ? void 0 : w2.oMt) || void 0 === s2 || s2.gF(c2, f2, l2, h2), Y2.cL(0);
            }
          }, t3.prototype.ccr = function(t4, n3) {
            var e3, i3 = this, r2 = q(t4);
            null === (e3 = this.aT) || void 0 === e3 || e3.forEach((function(t5, n4) {
              var e4, r3;
              n4.ubt && (e4 = i3.x0r(n4.ubt)), n4.sbt && (r3 = i3.x0r(n4.sbt)), -1 === e4 || -1 === r3 ? t5.forEach((function(t6) {
                t6.r_t(), t6.vyt();
              })) : t5.forEach((function(t6) {
                t6.vyt();
              }));
            })), i3.jS.ssr(), n3 || r2.onAfterChangeTableColumn();
          }, t3.prototype.X5t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.LSt;
            v2 && !e3 && (i3 = t4.col, r2 = nt(t4), o2 = et(t4), a2 = n3.col, u2 = nt(n3), s2 = et(n3), c2 = t4.row + r2, f2 = i3 + o2, h2 = a2 + s2, (l2 = n3.row + u2) < c2 && v2.onRowsRemoved(u2, c2 - l2), l2 > c2 && v2.onRowsAdded(r2, l2 - c2), a2 > i3 && v2.onColumnsRemoved(0, a2 - i3), h2 < f2 && v2.onColumnsRemoved(s2, f2 - h2), a2 < i3 && v2.onColumnsAdded(0, i3 - a2), h2 > f2 && v2.onColumnsAdded(i3 + o2 - a2, h2 - f2));
          }, t3.prototype.V5t = function(t4) {
            var n3 = this, e3 = n3.IB;
            e3 && (e3.Uct(n3.dataRange()), false !== t4 && e3.reFilter());
          }, t3.prototype.s5t = function() {
            if (this._uo) delete this._uo;
            else {
              var t4 = this.IB;
              t4 && (t4.unfilter(), t4.reset());
            }
          }, t3.prototype.cSt = function(t4, n3) {
            var e3, i3;
            for (t4 !== Lt && (t4 = y(t4)), e3 = 0; e3 < this.Tx; e3++) if (e3 !== n3 && t4 === (i3 = this.getColumnName(e3))) return true;
            return false;
          }, t3.prototype.AUr = function(t4, n3) {
            var e3, i3;
            for (e3 = n3 + 1; e3 < this.Tx; e3++) if (t4 === (i3 = this.getColumnName(e3))) return e3;
            return -1;
          }, t3.prototype.q5t = function(t4) {
            var n3, e3, i3, r2 = this, o2 = r2.BSt;
            return r2.jO && o2 && 0 <= (n3 = t4 - r2.iw) && n3 < o2.length && (e3 = o2[n3]) ? (i3 = e3.name(), C(i3) || (i3 = y(i3)), i3) : Lt;
          }, t3.prototype.$5t = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = u2.BSt;
            u2.jO && s2 && (e3 = s2.length, 0 <= (i3 = t4 - u2.iw) && i3 < e3 && (r2 = s2[i3]) && (o2 = r2.name(), (a2 = u2.Mf) && n3 !== o2 && a2.Ut.A5t(u2, r2, "name", o2, n3), r2.name(n3), u2.NTr() && !C(a2.Ut.P8) && a2.Ut.P8 > 0 && u2.setColumnDataField(i3, n3), u2.I5t(o2, r2.name(), i3)));
          }, t3.prototype.m5t = function(t4, n3, e3) {
            var i3, r2, o2 = this, u2 = o2.BSt, s2 = o2.footerIndex(), c2 = o2.iw + t4, f2 = o2.Mf;
            a && 0 <= t4 && t4 < u2.length && (i3 = u2[t4], n3 && !e3 && f2 && (e3 = at(f2, n3, s2, c2), o2.oL && Q(f2, s2, c2, n3, e3)), i3 && (r2 = i3.footerFormula(), f2 && e3 !== r2 && f2.Ut.A5t(o2, i3, "footerFormula", r2, n3), i3.footerFormula(e3)));
          }, t3.prototype.d5t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.BSt;
            if ((e3 || u2.oL) && s2 && 0 <= (i3 = t4 - u2.iw) && i3 < s2.length && (r2 = s2[i3])) {
              if (o2 = r2.footerValue(), (a2 = u2.Mf) && a2.EB) return;
              n3 !== o2 && a2 && (a2.Ut.A5t(u2, r2, "footerValue", o2, n3), a2.Ut.dE(u2.Ky + u2.Sx - 1, t4, { d6: r2.footerValue() })), r2.footerValue(n3);
            }
          }, t3.prototype.M5t = function() {
            var t4, n3, e3 = this.BSt, i3 = e3 && e3.length, r2 = [];
            for (n3 = 0; n3 < i3; n3++) (t4 = e3[n3]) && t4.tTt() && r2.push(t4.id());
            if (r2.sort((function(t5, n4) {
              return t5 - n4;
            })), (i3 = r2.length) > 0) {
              for (n3 = 0; n3 < i3; n3++) if (r2[n3] !== n3 + 1) return n3 + 1;
              return i3 + 1;
            }
            return 1;
          }, t3.prototype.IUr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this;
            C(n3) ? u2.$5t(t4, n3) : (i3 = t4 - (e3 = u2.iw), r2 = y(n3), a2 = void 0, -1 === (o2 = u2.AUr(r2, i3)) ? (a2 = u2.nTt(r2, i3), u2.$5t(t4, a2)) : (u2.$5t(t4, n3), a2 = u2.nTt(r2, o2), u2.$5t(o2 + e3, a2)));
          }, t3.prototype.nTt = function(t4, n3) {
            var e3, i3, r2, o2;
            if (!C(t4) && !this.cSt(t4, n3)) return t4;
            if (i3 = Cn, r2 = 0, t4) i3 = t4, r2 = 1;
            else if (n3 > 0 && (t4 = this.BSt[n3 - 1].name(), o2 = /[0-9]+$/.exec(t4))) {
              if (e3 = (i3 = t4.substr(0, o2.index)) + ((r2 = parseInt(t4.substr(o2.index), 10)) + 1), !this.cSt(e3)) return e3;
              i3 = t4, r2 = 1;
            }
            for (; ; ) if (e3 = i3 + ++r2, !this.cSt(e3)) return e3;
          }, t3.prototype.zuo = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this;
            if (!this.cSt(t4)) return t4;
            if (n3 > 0 && (e3 = /^Column(\d+)$/i, r2 = (i3 = s2.BSt[n3 - 1].name()).match(e3))) {
              for (o2 = Cn, a2 = parseInt(r2[1], 10) + 1, u2 = "".concat(o2).concat(a2); this.cSt(u2); ) ++a2, u2 = "".concat(o2).concat(a2);
              return u2;
            }
            return s2.Yuo();
          }, t3.prototype.Yuo = function() {
            for (var t4 = Cn, n3 = 1, e3 = "".concat(t4).concat(n3); this.cSt(e3); ) n3++, e3 = "".concat(t4).concat(n3);
            return e3;
          }, t3.prototype.a5t = function(t4, n3, e3, i3, r2) {
            var o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = b2.BSt, w2 = b2.Mf;
            if (b2.jO && y2 && w2) for (u2 = y2.length, s2 = b2.headerIndex(), c2 = b2.iw, C(t4) && (t4 = 0), C(n3) && (n3 = u2), l2 = Bt(u2, t4 + n3), d2 = null === (o2 = b2.layoutStyle()) || void 0 === o2 ? void 0 : o2.header, v2 = t4; v2 < l2; v2++) (f2 = y2[v2]) && ((g2 = (p2 = b2.jS.U3).indexOf(b2)) > -1 && p2.splice(g2, 1), h2 = _t(w2.getValue(s2, c2 + v2)), g2 > -1 && p2.splice(g2, 0, b2), Q(w2, s2, c2 + v2, Lt), h2 && (e3 ? (b2.eTt = e3, w2.setText(s2, c2 + v2, f2.name()), delete b2.eTt) : ((m2 = i3 ? h2 : b2.nTt(h2, v2)) === h2 ? (w2.Ut.A5t(b2, f2, "name", f2.name(), h2), f2.name(h2)) : w2.setText(s2, c2 + v2, m2), a && w2.gL(s2, c2 + v2))), r2 && li(w2, s2, c2 + v2, d2));
          }, t3.prototype.j5t = function(t4) {
            var n3, e3, r2 = this.BSt, o2 = this.Mf.options.rightToLeft ? i2.ButtonPosition.left : i2.ButtonPosition.right;
            for (n3 = t4; n3 < r2.length; n3++) e3 = He(this.name(), r2[n3].name(), o2), this.OSt.push(e3);
          }, t3.prototype.l5t = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.BSt, y2 = m2.Mf;
            if (m2.oL && b2 && y2) for (m2.useFooterDropDownList() && !m2.g5t() && m2.h5t(), o2 = b2.length, a2 = m2.footerIndex(), u2 = m2.iw, C(t4) && (t4 = 0), C(n3) && (n3 = o2), C(e3) && (e3 = m2.iTt), c2 = Bt(o2, t4 + n3), h2 = null === (r2 = m2.layoutStyle()) || void 0 === r2 ? void 0 : r2.footer, d2 = t4; d2 < c2; d2++) (s2 = b2[d2]) && (l2 = y2.getValue(a2, u2 + d2), C(l2) || e3 ? (m2.eTt = e3, K(y2, a2, u2 + d2, s2.footerValue()), delete m2.eTt) : (l2 !== (v2 = s2.footerValue()) && y2.Ut.A5t(m2, s2, "footerValue", v2, l2), s2.footerValue(l2)), (f2 = y2.bMt && y2.bMt(a2, u2 + d2)) && !e3 ? (f2 !== (p2 = s2.dataAreaFormula()) && (g2 = ut(y2, f2, a2, u2 + d2), y2.Ut.A5t(m2, s2, "dataAreaFormula", p2, g2)), s2.footerFormula(f2)) : m2.rTt || (m2.eTt = e3, Q(y2, a2, u2 + d2, Lt, s2.footerFormula()), delete m2.eTt), i3 && li(y2, a2, u2 + d2, h2));
          }, t3.prototype.oTt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.BSt;
            if (s2.jO && c2) for (e3 = c2.length, C(t4) && (t4 = 0), C(n3) && (n3 = e3), r2 = Bt(e3, t4 + n3), o2 = t4; o2 < r2; o2++) (i3 = c2[o2]) && (a2 = i3.name(), (u2 = s2.Mf) && a2 !== Lt && u2.Ut.A5t(s2, i3, "name", a2, Ft, s2._Be ? o2 : Ft), i3.name(s2.Yuo()), s2.I5t(a2, i3.name(), o2));
          }, t3.prototype.aTt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2 = this, f2 = c2.dataRange();
            if (f2.containsRange(t4)) {
              for (n3 = t4.row, e3 = t4.col, i3 = nt(t4), r2 = et(t4), o2 = [], a2 = 0; a2 < i3; a2++) for (u2 = 0; u2 < r2; u2++) c2.Kbt(n3 + a2, e3 + u2, Lt, true), o2.push({ columnName: c2.getColumnName(e3 + u2 - f2.col), row: n3 + a2 - f2.row, data: "" });
              (s2 = c2.LSt) && s2.onDataChanged(o2);
            }
          }, t3.prototype.uTt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.BSt;
            if (s2.oL && c2) for (C(t4) && (t4 = 0), C(n3) && (n3 = c2.length), i3 = Bt(c2.length, t4 + n3), r2 = t4; r2 < i3; r2++) (e3 = c2[r2]) && (o2 = s2.Mf, a2 = e3.footerFormula(), o2 && Lt !== a2 && o2.Ut.A5t(s2, e3, "footerFormula", a2), e3.footerFormula(Lt), u2 = e3.footerValue(), o2 && Lt !== u2 && o2.Ut.A5t(s2, e3, "footerValue", u2), e3.footerValue(Lt));
          }, t3.prototype.w5t = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.BSt;
            if (u2.oL && s2 && (t4 = u2.Mf)) for (n3 = s2.length, i3 = u2.iw, o2 = u2.footerIndex(), a2 = 0; a2 < n3; a2++) (e3 = s2[a2]) && (K(t4, o2, r2 = i3 + a2, e3.footerValue()), Q(t4, o2, r2, Lt, e3.footerFormula()));
          }, t3.prototype.u5t = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Mf;
            if (a2 && !(t4 < 0 || a2.getRowCount() <= t4)) for (n3 = o2.iw, e3 = o2.Tx, r2 = 0; r2 < e3; r2++) Q(a2, t4, i3 = n3 + r2, Lt), K(a2, t4, i3, Lt), a2.removeSparkline(t4, i3);
          }, t3.prototype.msr = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = false, p2 = d2.cue ? 1 : 0, g2 = d2.jO && 1 === d2.Sx;
            if (!g2 && t4 >= d2.Ky + d2.Sx + p2) return false;
            if ((i3 = d2.Mf) && (r2 = i3.Ut, o2 = { row: d2.Ky, col: d2.iw, rowCount: d2.Sx, colCount: d2.Tx }), a2 = d2.Ky, u2 = d2.Ky + d2.Sx - 1 + p2, t4 <= a2 && !d2.cue) d2.XHr({ deltaRow: n3 });
            else if (t4 <= u2) {
              if (d2.Uuo && e3 && d2.gUr() === d2.pTt()) return;
              e3 || (v2 = d2.cTt(t4, n3)), d2.Sx += n3, null == i3 || i3.$Dr({ type: "addTableRow", table: d2, index: t4, count: n3, oldRange: o2 });
            }
            return d2.sTt(t4, n3, false), i3 && r2.YSt(d2, Jn, o2, { row: d2.Ky, col: d2.iw, rowCount: d2.Sx, colCount: d2.Tx }), d2.NTr() && r2.B5t(d2, t4, n3, bt(true), Ce.dirty), s2 = d2.LSt, f2 = (c2 = d2.dataRange()).row, l2 = d2.endRow(), t4 >= f2 && t4 <= l2 && s2 && s2.onRowsAdded(t4 - f2, n3), (h2 = d2.IB) && (d2.DSt = true, h2.Qct(t4, n3), d2.lTt && d2.Mf.filterRowsVisibleInfo.rE(t4, n3)), v2;
          }, t3.prototype.JO = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2 = this, h2 = false, d2 = e3 ? 1 : 0, v2 = l2.jO && 1 === l2.Sx;
            return !v2 && t4 >= l2.Ky + l2.Sx + d2 || ((a2 = l2.Mf) && (u2 = a2.Ut, s2 = { row: l2.Ky, col: l2.iw, rowCount: l2.Sx, colCount: l2.Tx }), o2 || l2.sTt(t4, n3, false), c2 = l2.Ky, f2 = l2.Ky + l2.Sx - 1 + d2, t4 <= c2 && !r2 ? l2.XHr({ row: l2.Ky + n3 }) : (t4 <= f2 || v2) && (i3 || (h2 = l2.cTt(t4, n3)), l2.Sx += n3, null == a2 || a2.$Dr({ type: "addTableRow", table: l2, index: t4, count: n3, oldRange: s2 })), a2 && u2.YSt(l2, Jn, s2, { row: l2.Ky, col: l2.iw, rowCount: l2.Sx, colCount: l2.Tx }), l2.NTr() && u2.B5t(l2, t4, n3, bt(true), Ce.dirty)), h2;
          }, t3.prototype.t5t = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2;
            i3 || (o2 = (r2 = this).Ky + r2.Sx - 1, !e3 && t4 >= r2.Ky && t4 <= o2 && r2.J5t(t4, n3, true), a2 = r2.LSt, s2 = (u2 = r2.dataRange()).row, c2 = r2.endRow(), t4 >= s2 && t4 <= c2 && a2 && a2.onRowsAdded(t4 - s2, n3), (f2 = r2.IB) && (r2.DSt = true, f2.Qct(t4, n3), r2.lTt && r2.Mf.filterRowsVisibleInfo.rE(t4, n3)));
          }, t3.prototype.cTt = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.H3;
            return !!a2 && (r2 = void 0, (i3 = (e3 = this.Mf) && e3.Ut.G8) && ((r2 = i3.tableChanges) || (i3.tableChanges = r2 = [])), a2.kE(gt(o2, t4), n3, r2), true);
          }, t3.prototype.gsr = function(t4, n3) {
            if (a) {
              var e3 = this, i3 = e3.Mf, r2 = e3.NTr(), o2 = false;
              w(e3.BSt, (function(a2, u2) {
                var s2, c2, f2 = u2.dataAreaFormula();
                if (f2) {
                  if (r2) return o2 = true, void e3.nGr(a2, u2);
                  for (s2 = a2 + e3.iw, c2 = t4; c2 < t4 + n3; c2++) c2 >= t4 && c2 < t4 + n3 && Q(i3, c2, s2, Lt, f2);
                }
              })), r2 && o2 && e3.EAr();
            }
          }, t3.prototype.Luo = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.Mf, c2 = u2.BSt, f2 = u2.Ky, l2 = u2.iw;
            for (t4 = 0, n3 = c2.length; t4 < n3; t4++) i3 = (e3 = c2[t4]).dataAreaFormula(), (r2 = e3.x5t() || i3) && (a2 = at(s2, r2, f2, o2 = t4 + l2, true, Ft, u2), e3.dataAreaFormula(a2), u2.tGr(e3, o2));
          }, t3.prototype.nGr = function(t4, n3, e3, i3) {
            var r2, o2;
            this.z3().EGr(t4, { formula: Si(i3 || n3.x5t()), expr: e3 || n3.dataAreaFormula() });
          }, t3.prototype.tGr = function(t4, n3) {
            var e3 = this, i3;
            return !(!t4.dataAreaFormula() || !e3.NTr()) && (e3.nGr(e3.AAr(n3), t4), e3.EAr(), true);
          }, t3.prototype.csr = function(t4, n3, e3, i3, r2) {
            var o2, a2 = this, u2 = a2.Ky + a2.Sx - 1, s2 = i3.dataAreaFormula();
            if (n3 >= a2.Ky && n3 <= u2) {
              if (a2.tGr(i3, r2)) return;
              for (o2 = n3; o2 < n3 + e3; o2++) o2 >= n3 && o2 < n3 + e3 && Q(t4, o2, r2, Lt, s2, true);
            }
          }, t3.prototype.J5t = function(t4, n3, e3, i3) {
            if (a && !i3) {
              var r2 = this, o2 = r2.Mf, u2 = r2.dataRange();
              r2.NTr() || (C(t4) && (t4 = u2.row), C(n3) && (n3 = u2.rowCount), $(o2), w(r2.BSt, (function(i4, a2) {
                var u3, s2, c2 = a2.dataAreaFormula();
                if (c2) for (u3 = i4 + r2.iw, s2 = t4; s2 < t4 + n3; s2++) (e3 && s2 >= t4 && s2 < t4 + n3 || !C(o2.getValue(s2, u3)) && o2.getFormula(s2, u3) === ut(o2, c2, s2, u3)) && Q(o2, s2, u3, Lt, c2);
              })), tt(o2, false));
            }
          }, t3.prototype.LAr = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.H3;
            o2 && o2.DTr() && (C(t4.dataField()) && t4.dataField(t4.name()), o2.qFe(xi(t4), n3, null === (i3 = null === (e3 = r2.Mf) || void 0 === e3 ? void 0 : e3.Ut) || void 0 === i3 ? void 0 : i3.G8));
          }, t3.prototype.qO = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = e3 ? 1 : 0;
            if (!(t4 >= b2.iw + b2.Tx + y2)) {
              if (u2 = b2.iw, (f2 = b2.Mf) && (c2 = { row: b2.Ky, col: b2.iw, rowCount: b2.Sx, colCount: b2.Tx }, s2 = b2.BSt.slice()), t4 <= b2.iw && !r2) o2 ? b2.XHr({ deltaCol: n3 }) : b2.XHr({ col: b2.iw + n3 });
              else if (t4 < b2.iw + b2.Tx + y2 && (a2 = true, b2.Tx += n3, l2 = b2.BSt)) {
                for (h2 = t4 - b2.iw, d2 = 0; d2 < n3; d2++) v2 = h2 + d2, p2 = b2.nTt(Lt, v2), b2.IEr(v2, p2, true), g2 = b2.getColumnName(v2), b2.y5t(v2, 0, g2);
                i3 && b2.a5t(h2, Ft, true, false);
              }
              b2.IB && b2.IB.Jct(t4, n3, a2), t4 >= u2 && (m2 = b2.LSt) && m2.onColumnsAdded(t4 - u2, n3), f2 && (f2.Ut.YSt(b2, Jn, c2, { row: b2.Ky, col: b2.iw, rowCount: b2.Sx, colCount: b2.Tx }), f2.Ut.YSt(b2, Xn, s2, b2.BSt.slice())), this.ccr(f2, true);
            }
          }, t3.prototype.xP = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this, I2 = false;
            if (t4 >= A2.Ky + A2.Sx) return I2;
            if (e3 || (e3 = {}), i3 = e3.ignoreUpdateDataSource, r2 = e3.key, o2 = e3.isInitBinding, a2 = e3.ignoreSlicerWhenFilter, u2 = e3.fromSheetRemoved, c2 = (s2 = A2.dataRange()).row, f2 = nt(s2), l2 = A2.Ky, h2 = A2.Ky + A2.Sx - 1, d2 = A2.Mf, v2 = A2.H3, b2 = [], w2 = "_backupRowsChange", d2 && (g2 = d2.Ut) && (y2 = { row: A2.Ky, col: A2.iw, rowCount: A2.Sx, colCount: A2.Tx }, b2.push(Jn), (p2 = g2.G8) && ((m2 = p2.tableChanges) || (p2.tableChanges = m2 = []))), o2 || A2.sTt(t4, n3, true), t4 < l2 ? t4 + n3 <= l2 && (u2 ? A2.XHr({ deltaRow: -n3 }) : A2.XHr({ row: A2.Ky - n3 })) : t4 === l2 ? A2.jO || (M2 = Bt(h2 - t4 + 1, n3), A2.Sx -= M2, null == d2 || d2.$Dr({ type: "removeTableRow", tableId: A2.jKe(), index: t4, count: M2, oldRange: y2 }), !i3 && v2 && (b2.push(w2), v2.btt(gt(A2, t4), Bt(h2 - t4 + 1, n3), m2), I2 = true)) : t4 <= h2 && (M2 = Bt(h2 - t4 + 1, n3), A2.Sx -= M2, null == d2 || d2.$Dr({ type: "removeTableRow", tableId: A2.jKe(), index: t4, count: M2, oldRange: y2 }), !i3 && v2 && (b2.push(w2), v2.btt(gt(A2, t4), Bt(h2 - t4 + 1, n3), m2), I2 = true), t4 === h2 && A2.oL && (b2.push(Kn), A2.SEr(false))), A2.IB && (A2.DSt = true, A2.IB.Kct(t4, n3)), !a2 && t4 >= c2 && t4 < c2 + f2 && (C2 = A2.LSt) && C2.onRowsRemoved(t4 - c2, n3), g2 && b2 && b2.length > 0) for (S2 = 0, T2 = b2; S2 < T2.length; S2++) switch (x2 = T2[S2]) {
              case Jn:
                g2.YSt(A2, Jn, y2, { row: A2.Ky, col: A2.iw, rowCount: A2.Sx, colCount: A2.Tx });
                break;
              case Kn:
                g2.YSt(A2, Kn, A2.oL);
                break;
              case w2:
                g2.B5t(A2, t4, n3, r2, Ce.deleted);
            }
            return A2.jS.ssr(), I2;
          }, t3.prototype.FAr = function(t4, n3) {
            for (var e3 = t4 + n3 - 1; e3 >= t4; e3--) this.BAr(e3);
          }, t3.prototype.BAr = function(t4) {
            var n3, e3, i3 = this, r2 = i3.H3;
            r2 && r2._Tr() && r2.iGe(t4, null === (e3 = null === (n3 = i3.Mf) || void 0 === n3 ? void 0 : n3.Ut) || void 0 === e3 ? void 0 : e3.G8);
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this;
            t4 >= v2.iw + v2.Tx || (null === (e3 = $i(o2 = v2.Mf)) || void 0 === e3 || e3.startRecordOp(), o2 && (a2 = { row: v2.Ky, col: v2.iw, rowCount: v2.Sx, colCount: v2.Tx }, u2 = v2.BSt.slice()), s2 = v2.iw, c2 = v2.iw, f2 = v2.iw + v2.Tx - 1, t4 < c2 ? t4 + n3 <= c2 ? v2.XHr({ col: v2.iw - n3 }) : (v2.XHr({ col: t4 }), v2.Tx -= t4 + n3 - c2, l2 = t4 + n3 - c2, v2.iGe(0, l2, true)) : (l2 = Bt(f2 - t4 + 1, n3), v2.Tx -= l2, v2.iGe(t4 - c2, l2, true)), v2.IB && v2.IB.Xct(t4, n3), t4 >= s2 && (h2 = v2.LSt) && h2.onColumnsRemoved(t4 - s2, n3), o2 && (o2.Ut.YSt(v2, Jn, a2, { row: v2.Ky, col: v2.iw, rowCount: v2.Sx, colCount: v2.Tx }), o2.Ut.YSt(v2, Xn, u2, v2.BSt.slice())), d2 = null === (i3 = $i(o2)) || void 0 === i3 ? void 0 : i3.endRecordOp(), this.ccr(o2), null === (r2 = $i(o2)) || void 0 === r2 || r2.submitOp(d2));
          }, t3.prototype.vsr = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2 = this;
            t4 >= f2.iw + f2.Tx || ((e3 = f2.Mf) && (i3 = { row: f2.Ky, col: f2.iw, rowCount: f2.Sx, colCount: f2.Tx }, r2 = f2.BSt.slice()), o2 = f2.iw, a2 = f2.iw, u2 = f2.iw + f2.Tx - 1, t4 < a2 ? t4 + n3 <= a2 ? f2.XHr({ deltaCol: -n3 }) : (s2 = t4 + n3 - a2, f2.XHr({ deltaCol: t4 - f2.iw }), f2.Tx -= s2, f2.iGe(0, s2, true)) : (s2 = Bt(u2 - t4 + 1, n3), f2.Tx -= s2, f2.iGe(t4 - a2, s2, true)), f2.IB && f2.IB.Xct(t4, n3), t4 >= o2 && (c2 = f2.LSt) && c2.onColumnsRemoved(t4 - o2, n3), e3 && (e3.Ut.YSt(f2, Jn, i3, { row: f2.Ky, col: f2.iw, rowCount: f2.Sx, colCount: f2.Tx }), e3.Ut.YSt(f2, Xn, r2, f2.BSt.slice())), this.ccr(e3, true));
          }, t3.prototype.d5 = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = e3, y2 = r2, w2 = m2.Mf;
            w2 && (b2 = w2.getRowCount(), y2 = w2.getColumnCount()), o2 = t4 < 0 ? 0 : t4, a2 = n3 < 0 ? 0 : n3, u2 = t4 < 0 ? b2 : e3, s2 = n3 < 0 ? y2 : r2, c2 = (0, i2.Ec)(o2, a2, u2, s2), f2 = m2.headerIndex(), m2.jO && o2 <= f2 && f2 < o2 + u2 && (l2 = (0, i2.Ec)(f2, m2.iw, 1, m2.Tx), (h2 = c2.getIntersect(l2, b2, y2)) && m2.oTt(h2.col - m2.iw, et(h2))), d2 = m2.dataRange(), (v2 = c2.getIntersect(d2, b2, y2)) && m2.aTt(v2), p2 = m2.footerIndex(), m2.oL && o2 <= p2 && p2 < o2 + u2 && (g2 = (0, i2.Ec)(p2, m2.iw, 1, m2.Tx), (h2 = c2.getIntersect(g2, b2, y2)) && m2.uTt(h2.col - m2.iw, et(h2))), m2.IB && m2.IB.d5(t4, n3, e3, r2);
          }, t3.prototype.toJSON = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, S2, T2 = this, x2 = T2.style(), A2 = T2.rowFilter(), I2 = "columns", k2 = "__ID__";
            for (C(t4) ? s2 = T2.name() : (s2 = t4, T2.Gwt = s2), (c2 = { name: [s2, Lt], row: [T2.Ky, -1], col: [T2.iw, -1], rowCount: [T2.Sx, -1], colCount: [T2.Tx, -1], showHeader: [T2.jO, true], showFooter: [T2.oL, false], useFooterDropDownList: [T2.ESt, false], showResizeHandle: [T2.showResizeHandle(), false], highlightFirstColumn: [T2.highlightFirstColumn(), false], highlightLastColumn: [T2.highlightLastColumn(), false], bandRows: [T2.bandRows(), true], expandBoundRows: [T2.expandBoundRows(), false], bandColumns: [T2.bandColumns(), false], style: [null !== (r2 = T2.getStyleName() || (null == x2 ? void 0 : x2.toJSON())) && void 0 !== r2 ? r2 : Lt, Lt], autoGenerateColumns: [T2.autoGenerateColumns(), true], bindingPath: [T2.bindingPath(), Ft], dataManagerTableBinding: [T2.NTr() ? null === (o2 = T2.z3()) || void 0 === o2 ? void 0 : o2.tableName : "string" == typeof T2.xUr ? T2.xUr : Ft, Ft], dataManagerViewBinding: [T2.NTr() ? null === (a2 = T2.z3()) || void 0 === a2 ? void 0 : a2.name : Ft, Ft], rowFilter: [A2 ? A2.toJSON(n3) : Lt, Lt], reservedElement: [Ze(T2.dTt), Lt], allowAutoExpand: [T2.VSt, true], headerStyle: [T2.Uye && T2.Uye.toJSON ? T2.Uye.toJSON() : T2.Uye, Ft], dataStyle: [T2.Gye && T2.Gye.toJSON ? T2.Gye.toJSON() : T2.Gye, Ft], footerStyle: [T2.Hye && T2.Hye.toJSON ? T2.Hye.toJSON() : T2.Hye, Ft] })[I2] = [[]], f2 = 0; f2 < T2.BSt.length; f2++) h2 = (l2 = T2.BSt[f2].toJSON(n3))[xn], d2 = l2[In], h2 && (n3 && n3.ignoreFormula ? (delete l2[xn], l2[kn] = T2.Mf.getValue(T2.Ky + T2.Sx - 1, T2.iw + f2)) : l2[xn] = ut(T2.Mf, h2, T2.footerIndex(), f2 + T2.iw)), d2 && (l2[In] = ut(T2.Mf, d2, T2.dataRange().row, f2 + T2.iw, !e3 && Ft)), c2[I2][0][f2] = l2;
            for (p2 in c2[I2][1] = Lt, v2 = {}, c2) (g2 = c2[p2])[0] !== g2[1] && (v2[p2] = g2[0]);
            if ((null == n3 ? void 0 : n3.isServer) && (v2[k2] = T2.jKe()), (null == n3 ? void 0 : n3.cb) === i2.OpenSaveFileType.excel && (v2.tempTableWhenExport = T2.FGr, v2.Jo = (null == n3 ? void 0 : n3.wuo) ? null === (u2 = T2.vuo) || void 0 === u2 ? void 0 : u2.Jo : Ft, v2.Jo && (null == n3 ? void 0 : n3.wuo))) if (v2[I2] && v2[I2].some((function(t5) {
              return t5.QKr;
            }))) for (m2 = {}, b2 = 0, y2 = v2[I2].length; b2 < y2; b2++) m2[(w2 = v2[I2][b2]).KKr] = true, w2 && !w2.KKr && (m2[S2 = w2.name] && (S2 = w2.name + b2), w2.KKr = S2);
            else delete v2.Jo;
            return M(v2) ? Ft : v2;
          }, t3.prototype.wh = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, B2, P2 = this, G2 = P2.Mf, U2 = G2.name(), H2 = P2.style(), V2 = P2.rowFilter(), z2 = P2.BSt, W2 = e3.styleManager, Q2 = e3.sharedStrings, K2 = !i2.Util.ko(r2), J2 = K2 && (null == r2 ? void 0 : r2.losslessEditing) && !C(null === (a2 = P2.vuo) || void 0 === a2 ? void 0 : a2.Jo);
            if (J2 && (t4.tableType = null === (u2 = P2.vuo) || void 0 === u2 ? void 0 : u2.Jo), t4.xmlns = i2.XFileConstants.Qu, t4.id = P2._id, t4.c_ = [], t4.n_ = i2.XFileConstants.du, (f2 = P2.name() || Lt) && (f2 = f2.split(" ").join("_"), t4.name = f2, t4.displayName = ui(f2.split("-").join("_"), o2)), t4.ref = Et([P2.range()]), true !== P2.jO && (t4.headerRowCount = 0), false !== P2.oL && (t4.totalsRowCount = 1), V2 && !G2.NMi && V2.wh(t4, W2, r2), z2 && z2.length > 0) {
              for (l2 = [], h2 = P2.footerIndex(), d2 = P2.dataRange().row, v2 = P2.iw, p2 = void 0, g2 = void 0, m2 = 0; m2 < z2.length && !(K2 && m2 >= P2.Tx); m2++) y2 = (b2 = z2[m2]).name(), g2 = m2 + P2.iw, P2.jO && !C(y2) && (C(p2) && (p2 = Y(n3, U2)), Z(p2, P2.Ky, g2, "" + y2, Q2)), w2 = {}, l2.push(b2.wh(G2, P2, d2, h2, m2 + v2, r2, w2, W2, P2.jO)), M2 = w2.v, P2.oL && !C(M2) && (C(p2) && (p2 = Y(n3, U2)), Z(p2, P2.Ky + P2.Sx - 1, g2, "" + M2, Q2));
              if (J2) if (z2.some((function(t5) {
                var n4, e4;
                return null === (e4 = null === (n4 = t5.vuo) || void 0 === n4 ? void 0 : n4.guo) || void 0 === e4 ? void 0 : e4.QKr;
              }))) {
                if (l2.some((function(t5) {
                  return t5.uniqueName;
                }))) for (S2 = {}, T2 = 0, x2 = l2.length; T2 < x2; T2++) S2[(A2 = l2[T2]).uniqueName] = true, A2 && !A2.uniqueName && (S2[I2 = A2.name] && (I2 = A2.name + T2), A2.uniqueName = I2);
              } else delete t4.tableType;
              r2 && r2.fileType === i2.OpenSaveFileType.excel && p2 && p2.colCount < g2 + 1 && (p2.colCount = g2 + 1), k2 = { n_: "tableColumns", count: z2.length, c_: l2 }, t4.c_.push(k2);
            }
            H2 && (N2 = (j2 = P2.getStyleName()) ? H2.builtInName() ? "TableStyle" + H2.builtInName() : H2.name() : ai(D2 = G2.getParent(), f2)), _2 = P2.Gye, C(_2) || ("string" == typeof _2 ? t4.dataCellStyle = _2 : (t4.dataDxfId = W2.getDxfIndex(_2), _2.parentName && (t4.dataCellStyle = _2.parentName))), O2 = P2.Uye, C(O2) || ("string" == typeof O2 ? t4.headerRowCellStyle = O2 : (t4.headerRowDxfId = W2.getDxfIndex(O2), O2.parentName && (t4.headerRowCellStyle = O2.parentName))), E2 = P2.Hye, C(E2) || ("string" == typeof E2 ? t4.totalsRowCellStyle = E2 : (t4.totalsRowDxfId = W2.getDxfIndex(E2), E2.parentName && (t4.totalsRowCellStyle = E2.parentName))), (R2 = { n_: "tableStyleInfo", name: F(N2) }).showFirstColumn = false !== P2.highlightFirstColumn() ? "1" : "0", R2.showLastColumn = false !== P2.highlightLastColumn() ? "1" : "0", R2.showRowStripes = true !== P2.bandRows() ? "0" : "1", R2.showColumnStripes = false !== P2.bandColumns() ? "1" : "0", t4.c_.push(R2), L2 = { useFooterDropDownList: [P2.ESt, false], showResizeHandle: [P2.showResizeHandle(), false], expandBoundRows: [P2.expandBoundRows(), false], autoGenerateColumns: [P2.autoGenerateColumns(), true], bindingPath: [P2.bindingPath(), Ft], dataManagerTableBinding: [P2.NTr() ? null === (s2 = P2.z3()) || void 0 === s2 ? void 0 : s2.tableName : "string" == typeof P2.xUr ? P2.xUr : Ft, Ft], dataManagerViewBinding: [P2.NTr() ? null === (c2 = P2.z3()) || void 0 === c2 ? void 0 : c2.name : Ft, Ft], extLst: [P2.dTt, Lt], allowAutoExpand: [P2.VSt, true] }, B2 = t4.lossless = {}, Object.keys(L2).forEach((function(t5) {
              var n4 = L2[t5];
              n4[0] !== n4[1] && (B2[t5] = n4[0]);
            }));
          }, t3.prototype.yuo = function(t4) {
            var n3 = this;
            t4 && (n3.vuo || (n3.vuo = {}), n3.vuo.Jo = t4);
          }, t3.prototype.fromJSON = function(t4, e3, r2, o2) {
            var a2, u2, c2, l2, h2, d2, v2, p2, g2, m2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2;
            if (t4) {
              if (h2 = null == o2 ? void 0 : o2.gp, d2 = (null == o2 ? void 0 : o2.cb) === i2.OpenSaveFileType.excel, v2 = null == o2 ? void 0 : o2.mOi, null === (u2 = null === (a2 = (g2 = (p2 = this).Mf).parent) || void 0 === a2 ? void 0 : a2.suspendOp) || void 0 === u2 || u2.call(a2), w([Vt, Wt, Qt, Kt, Jt, qt], (function(n3, e4) {
                b(t4[e4]) && p2[e4](t4[e4], false);
              })), (m2 = t4.__ID__) && p2.UKn(m2), y2 = t4.row, b(y2) && (p2.Ky = y2), M2 = t4.col, b(M2) && (p2.iw = M2), C2 = t4.rowCount, b(C2) && (p2.Sx = C2), S2 = t4.colCount, b(S2) && (p2.Tx = S2), Vi(g2, new i2.Range(y2, M2, C2, S2)) && (g2.rowFilter().reset(), g2.rowFilter(void 0)), T2 = t4.showHeader, b(T2) && (p2.jO = T2), x2 = t4.showFooter, b(x2) && (p2.oL = x2), A2 = t4.expandBoundRows, b(A2) && (p2.RSt = A2), I2 = t4.useFooterDropDownList, b(I2) && (p2.ESt = I2), k2 = t4.showResizeHandle, b(k2) && p2.showResizeHandle(k2), N2 = t4.headerStyle, b(N2) && (Re(N2) ? p2.Uye = N2 : ((j2 = new i2.Style()).fromJSON(N2, Ft, Ft), p2.Uye = j2)), D2 = t4.dataStyle, b(D2) && (Re(D2) ? p2.Gye = D2 : ((j2 = new i2.Style()).fromJSON(D2, Ft, Ft), p2.Gye = j2)), _2 = t4.footerStyle, b(_2) && (Re(_2) ? p2.Hye = _2 : ((j2 = new i2.Style()).fromJSON(_2, Ft, Ft), p2.Hye = j2)), (O2 = t4.style) && (E2 = void 0, "string" == typeof O2 ? E2 = O2 : O2.buildInName ? E2 = O2.buildInName : (E2 = new f.TableTheme()).fromJSON(O2, e3), p2.style(E2)), R2 = t4.dataSource, L2 = t4.dataBinding, F2 = t4.bindingPath, e3 ? (R2 && s.$$ && (p2.H3 = new s.$$(), p2.H3.bind(R2)), L2 && s.$$ && (p2.H3 = new s.$$(), p2.H3.fromJSON(L2))) : F2 && (p2.S5t = F2, B2 = g2 && g2.getDataSource && g2.getDataSource(), s.CellBindingSource && B2 instanceof s.CellBindingSource && (P2 = (0, s.q$)(B2.getSource(), F2)) && (p2.H3 = new s.$$(), p2.H3.bind(P2))), G2 = false, (h2 || v2) && t4.dataManagerTableBinding && (G2 = true), !h2 && t4.dataManagerTableBinding && g2 && g2.parent && s.$$ && (p2.H3 || (p2.H3 = new s.$$()), p2.DAr(t4), p2.showResizeHandle(false)), U2 = t4.columns) {
                for (V2 = (H2 = U2).length, z2 = void 0, Y2 = void 0, Z2 = void 0, W2 = 0; W2 < V2; W2++) Z2 = H2[W2], z2 = new ke(), Y2 = p2.IEr(), z2.fromJSON(Z2, o2), ci(g2, p2, z2, Y2, W2), Q2 = Y2.name(), (K2 = p2.nTt(Q2, W2)) !== Q2 && p2.setColumnName(W2, K2);
                p2.vTt();
              }
              p2.ESt && p2.h5t(true), (J2 = t4.rowFilter) && (X2 = n2.WSt && new n2.WSt()) && (X2.table(p2), X2.fromJSON(J2, e3), p2.IB = X2, r2 ? p2.IB.reFilter() : (p2.DSt = true, p2._St(), p2.NTr() || G2 || p2.IB.Mke(true))), (q2 = t4.reservedElement) && (p2.dTt = q2), $2 = t4.allowAutoExpand, b($2) && (p2.VSt = $2), p2.vuo = Ft, d2 && (p2.FGr = t4.tempTableWhenExport, p2.yuo(t4.Jo)), null === (l2 = null === (c2 = g2.parent) || void 0 === c2 ? void 0 : c2.resumeOp) || void 0 === l2 || l2.call(c2);
            }
          }, t3.prototype.yh = function(t4, e3, r2, o2) {
            var a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, S2, T2, x2, A2, I2, j2, D2, _2, O2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2;
            if (t4) {
              if (a2 = this, u2 = t4.ref, c2 = r2 && r2.onlyTableData, f2 = r2 && r2.isApplyRefilter, l2 = a2.Mf, a2.name(t4.name), C(u2) || (h2 = Rt(u2, true)[0]) && (a2.Ky = h2.row, a2.iw = h2.col, a2.Sx = h2.rowCount, a2.Tx = h2.colCount), a2.vuo = Ft, (d2 = !i2.Util.ko(r2)) && !C(t4.tableType) && "xml" === t4.tableType && a2.yuo(t4.tableType), a2.jO = E(t4.headerRowCount, 1) >= 1, a2.oL = E(t4.totalsRowCount, -1) >= 1, v2 = k(t4, "tableColumns"), p2 = k(t4, "autoFilter"), g2 = k(t4, "sortState"), m2 = k(t4, "tableStyleInfo"), y2 = k(t4, "extLst"), c2 || (m2 && (w2 = L(m2.name), C(w2) || (M2 = e3.getTableTheme(w2), a2.style(M2 && M2.name())), C(m2.showFirstColumn) || a2.highlightFirstColumn(R(m2.showFirstColumn, false)), C(m2.showLastColumn) || a2.highlightLastColumn(R(m2.showLastColumn, false)), C(m2.showRowStripes) || a2.bandRows(R(m2.showRowStripes, false)), C(m2.showColumnStripes) || a2.bandColumns(R(m2.showColumnStripes, false))), S2 = l2.getDefaultStyle(), T2 = void 0, !C(t4.dataDxfId) && e3 && (T2 = e3.getDxf(+t4.dataDxfId, Ft, true, true)), C(t4.dataCellStyle) || (T2 ? T2.parentName = t4.dataCellStyle : T2 = t4.dataCellStyle), T2 && (T2 = Ke(T2, S2, l2)), a2.Gye = T2, x2 = void 0, !C(t4.headerRowDxfId) && e3 && (x2 = e3.getDxf(+t4.headerRowDxfId, Ft, true, true)), C(t4.headerRowCellStyle) || (x2 ? x2.parentName = t4.headerRowCellStyle : x2 = t4.headerRowCellStyle), x2 && (x2 = Ke(x2, S2, l2)), a2.Uye = x2, A2 = void 0, !C(t4.totalsRowDxfId) && e3 && (A2 = e3.getDxf(+t4.totalsRowDxfId, Ft, true, true)), C(t4.totalsRowCellStyle) || (A2 ? A2.parentName = t4.totalsRowCellStyle : A2 = t4.totalsRowCellStyle), A2 && (A2 = Ke(A2, S2, l2)), a2.Hye = A2), I2 = t4.lossless, c2 || C(I2) || (j2 = I2.bindingPath, D2 = I2.autoGenerateColumns, _2 = I2.expandBoundRows, O2 = I2.useFooterDropDownList, F2 = I2.showResizeHandle, B2 = I2.allowAutoExpand, j2 && (a2.S5t = j2, P2 = l2 && l2.getDataSource && l2.getDataSource(), s.CellBindingSource && P2 instanceof s.CellBindingSource && (G2 = (0, s.q$)(P2.getSource(), j2)) && (a2.H3 = new s.$$(), a2.H3.bind(G2))), b(D2) && a2.autoGenerateColumns(D2), b(_2) && (a2.RSt = _2), b(O2) && (a2.ESt = O2), b(F2) && a2.showResizeHandle(F2), b(B2) && (a2.VSt = B2)), U2 = o2, I2 && I2.dataManagerTableBinding && l2 && l2.parent && s.$$ && (a2.H3 || (a2.H3 = new s.$$()), a2.DAr(I2), a2.showResizeHandle(false), U2 = true), v2 && (H2 = N(v2, "tableColumn"), !C(H2))) {
                for (V2 = void 0, z2 = void 0, Y2 = 0, Z2 = H2.length; Y2 < Z2; Y2++) W2 = H2[Y2], z2 = a2.BSt[Y2] || a2.IEr(), (V2 = new ke()).yh(W2, c2, e3, l2), ci(l2, a2, V2, z2, Y2), Q2 = z2.name(), (K2 = a2.nTt(Q2, Y2)) !== Q2 && z2.name(K2), U2 && !z2.dataField() && z2.dataField(ji(z2.name(), a2.BSt));
                a2.vTt();
              }
              c2 || (a2.ESt && a2.h5t(true), oi(a2, J2 = n2.WSt && new n2.WSt(), p2, g2, e3, f2), y2 && (a2.dTt = y2));
            }
          }, t3.prototype._St = function() {
            var t4, n3, e3, i3, r2 = this, o2 = r2.IB, a2 = r2.Mf.filterRowsVisibleInfo.rowsVisibleInfo, u2 = o2.range;
            if (!C(u2)) {
              for (t4 = 0; t4 < u2.rowCount; t4++) if (false !== a2[n3 = u2.row + t4]) for (e3 = 0; e3 < u2.colCount; e3++) i3 = u2.col + e3, o2.isFiltered(i3) && o2.jct(n3, i3);
            }
          }, t3.prototype.formulaFromJSON = function() {
            var t4, n3, e3, i3, r2, o2 = this, a2 = o2.Mf, u2 = o2.BSt, s2 = o2.footerIndex(), c2 = o2.dataRange().row, f2 = o2.iw;
            for (e3 = 0; e3 < u2.length; e3++) n3 = e3 + f2, (i3 = (t4 = u2[e3]).footerFormula()) && typeof i3 === ie && t4.footerFormula(at(a2, i3, s2, n3, Ft, true)), (r2 = t4.dataAreaFormula()) && typeof r2 === ie && (t4.dataAreaFormula(at(a2, r2, c2, n3, Ft, true)), o2.NTr() && (t4.x5t(r2), o2._Ar(e3, t4, r2, t4.dataAreaFormula())));
            o2.NTr() && o2.EAr();
          }, t3.prototype.vTt = function() {
            var t4, n3, e3, i3 = this, r2 = i3.BSt, o2 = r2.length;
            for (e3 = 0; e3 < o2; e3++) (n3 = (t4 = r2[e3]).id()) < 1 && t4.id(i3.M5t());
          }, t3.prototype.startRow = function() {
            return this.Ky;
          }, t3.prototype.startColumn = function() {
            return this.iw;
          }, t3.prototype.endRow = function() {
            return this.Ky + this.Sx - 1;
          }, t3.prototype.endColumn = function() {
            return this.iw + this.Tx - 1;
          }, t3.prototype.hasHeadersRow = function() {
            return this.jO;
          }, t3.prototype.hasTotalsRow = function() {
            return this.oL;
          }, t3.prototype.tableName = function() {
            return this.name();
          }, t3.prototype.getColumnIndexInTable = function(t4) {
            var n3, e3 = -1;
            return C(t4) || (t4 = t4.toLowerCase().replace(/\u00A0/g, " "), n3 = o.Common.zf.Vi(t4, "\r\n", "\n"), w(this.BSt, (function(i3, r2) {
              var o2 = r2.name().toString().toLowerCase().replace(/\u00A0/g, " ");
              if (o2 === t4 || o2 === n3) return e3 = i3, false;
            }))), e3;
          }, t3.prototype.A0r = function() {
            delete this.I0r;
          }, t3.prototype.x0r = function(t4) {
            var n3, e3 = this;
            return e3.I0r || (e3.I0r = {}, w(e3.BSt, (function(t5, n4) {
              e3.I0r[n4.name()] = t5;
            }))), null !== (n3 = e3.I0r[t4]) && void 0 !== n3 ? n3 : -1;
          }, t3.prototype.source = function() {
            var t4 = this.Mf;
            return t4 && t4.Uw && t4.Uw();
          }, t3.prototype.qSt = function() {
            var t4, n3, e3, i3 = this, r2 = i3.Mf;
            r2 && (t4 = i3.bindingPath()) && (n3 = r2.getDataSource && r2.getDataSource(), s.CellBindingSource && n3 instanceof s.CellBindingSource && (e3 = (0, s.q$)(n3.getSource(), t4), i3.T5t(e3)));
          }, t3.prototype.T5t = function(n3, e3) {
            var r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, g2 = this, m2 = g2.Mf;
            if (n3) {
              if (g2.autoGenerateColumns() && (a2 = Object.keys(n3[0] || []).length) !== (u2 = g2.BSt.length) && (c2 = g2.Sx, f2 = (0, i2.Ec)(g2.Ky, g2.iw, c2, a2), (null == (l2 = null === (r2 = g2.jS) || void 0 === r2 ? void 0 : r2.AB(f2.row, f2.col, c2, a2)) ? void 0 : l2.length) > 1)) return;
              if (h2 = false, d2 = function() {
                h2 = true, g2.BSt.forEach((function(t4) {
                  t4.dataAreaFormula() && (t4.GGr = t4.x5t(), t4.UGr = t4.dataAreaFormula(), t4.x5t(Lt), t4.dataAreaFormula(Lt));
                }));
              }, g2.NTr() && g2.z3() !== n3 ? (g2.rkr(!(0, p.isDMView)(n3), n3), d2()) : e3 || g2.NTr() || !(0, p.isDMView)(n3) || d2(), (v2 = g2.H3 || new s.$$()).bind(n3, m2.Ut.G8), m2 && m2.Ut.Qao(g2, e3), e3 && !g2.H3) return g2.H3 = v2, void g2.cGr(n3);
              try {
                J(m2), g2.H3 = Lt, g2.D3(v2), g2.cGr(n3), h2 && (null === (o2 = g2.BSt) || void 0 === o2 || o2.forEach((function(t4) {
                  t4.UGr && (t4.x5t(t4.GGr), t4.dataAreaFormula(t4.UGr), delete t4.GGr, delete t4.UGr);
                }))), t3.et(m2, "setBindingPath", { tableName: g2.name() });
              } finally {
                X(m2);
              }
            }
          }, t3.prototype.clone = function() {
            var n3 = this, e3 = new t3(), i3 = Ut(n3.toJSON());
            return e3.Sg(n3.jS), e3.fromJSON(Ht(i3)), e3;
          }, t3.prototype.okr = function(t4) {
            var n3 = this, e3 = t4.toJSON(), i3 = t4.getTable(), r2 = Ai(n3);
            return C(i3.views[r2]) || (r2 = ki(r2)), (t4 = t4.getTable().addView(r2, e3.columns, false, e3.options)).fromJSON(e3), n3.RIr(t4), t4;
          }, t3.prototype.rkr = function(t4, n3) {
            var e3, i3 = this, r2 = i3.z3();
            r2 && i3.NTr() && r2.TAr() && (t4 && (i3.POt = Lt), i3.LSt && (t4 ? i3.LSt.L0() : i3.LSt.c5(Lt)), i3.CAr(true), null === (e3 = r2.getTable()) || void 0 === e3 || e3.removeView(r2.name), r2.kAr(), i3.H3._dataSource = Lt, i3.H3 = Lt);
          }, t3.prototype.V3 = function(t4) {
            var n3, e3 = this;
            e3.NTr() && (t4 = e3.okr(t4), e3.rkr(false, t4)), (n3 = new s.$$()).bind(t4), this.H3 = n3;
          }, t3.prototype.gTt = function(t4) {
            if (t4 && !t4.bindingPath()) {
              var n3 = t4.H3;
              n3 && this.V3(n3.getSource());
            }
          }, t3.prototype.isBinding = function() {
            var t4, n3, e3, i3 = this;
            return !!i3.QL() && (!(1 === arguments.length && !C(arguments[0])) || (t4 = arguments[0], n3 = i3.z3(), e3 = void 0, t4 === (e3 = this.NTr() ? "string" == typeof t4 ? null == n3 ? void 0 : n3.tableName : null == n3 ? void 0 : n3.getTable() : n3)));
          }, t3.prototype.getBindingSource = function() {
            var t4 = this, n3 = t4.z3();
            return n3 && t4.NTr() && (0, p.isDMView)(n3) && (n3 = n3.getTable()), n3;
          }, t3.prototype.z3 = function() {
            var t4 = this.H3;
            return t4 ? t4.getSource() : Lt;
          }, t3.prototype.pTt = function() {
            var t4 = this.H3;
            return t4 ? t4.getRowCount() : 0;
          }, t3.prototype.bTt = function(t4, n3) {
            var e3, i3, r2 = this.PSt;
            n3 ? r2.push(t4) : (e3 = t4.name(), -1 !== (i3 = r2.findIndex((function(t5) {
              return t5.name() === e3;
            }))) && r2.splice(i3, 1));
          }, t3.prototype.cL = function(t4) {
            var n3 = this;
            n3.PSt.forEach((function(e3) {
              e3.Pen(n3, t4);
            })), 2 === t4 && (n3.PSt = []);
          }, t3.prototype.OEr = function() {
            var t4 = this;
            t4.PSt.forEach((function(t5) {
              t5.Oen = Ft, t5.Fnn();
            })), t4.PSt = [];
          }, t3.prototype.EEr = function() {
            var t4;
            this.PSt.forEach((function(t5) {
              t5.Fnn();
            }));
          }, t3.prototype.osr = function(t4) {
            var n3;
            null === (n3 = this.aT) || void 0 === n3 || n3.forEach((function(n4) {
              n4.forEach(t4);
            }));
          }, t3.prototype.psr = function() {
            this.jS.ssr();
          }, t3.prototype.cyt = function(t4, n3, e3) {
            var i3 = this.aT.get(n3);
            e3 ? (i3 || (i3 = null == a ? void 0 : a.createSet(), this.aT.set(n3, i3)), i3.add(t4)) : i3 && (i3.delete(t4), 0 === i3.size && this.aT.delete(n3)), this.jS.ssr();
          }, t3.prototype.$ur = function(t4) {
            var n3, e3 = this, i3 = e3.startColumn(), r2 = e3.endColumn(), o2 = e3.startRow(), u2 = e3.endRow(), s2 = e3.hasTotalsRow(), c2 = e3.hasHeadersRow(), f2 = a.createMap();
            null === (n3 = e3.aT) || void 0 === n3 || n3.forEach((function(n4, e4) {
              var l2, h2, d2, v2, p2 = e4.columnReferenceStart(), g2 = e4.columnReferenceEnd();
              if (1 === n4.size) {
                if (l2 = e4.hbt + "," + p2 + "," + g2, f2.has(l2)) return void (h2 = f2.get(l2)).add(n4.values().next().value);
                n4 = a.createSet(n4), f2.set(l2, n4);
              }
              switch (1 === e4.lbt && (p2 = i3, g2 = r2), d2 = o2, v2 = u2, e4.hbt) {
                case 1:
                case 3:
                case 16:
                  d2 = c2 ? o2 + 1 : o2, v2 = s2 ? u2 - 1 : u2;
                  break;
                case 2:
                  if (!c2) return Lt;
                  v2 = o2;
                  break;
                case 8:
                  d2 = v2 = s2 ? u2 : u2 + 1;
                  break;
                case 6:
                  v2 = s2 ? u2 - 1 : u2;
                  break;
                case 12:
                  d2 = c2 ? o2 + 1 : o2;
              }
              t4.insert({ minX: d2, minY: p2, maxX: v2, maxY: g2, nodes: n4, expr: e4, currentRow: 1 === e4.hbt });
            }));
          }, t3.prototype.wTt = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.footerIndex(), a2 = false;
            return o2 > -1 && t4 === o2 && (i3 = (e3 = r2.iw) + r2.Tx, a2 = n3 >= e3 && n3 < i3), a2;
          }, t3.prototype.sort = function(t4, n3) {
            var e3 = this, i3 = e3.Mf, r2 = e3.dataRange(), o2 = e3.rowFilter();
            i3 && 0 <= t4 && t4 < r2.colCount && (i3.suspendPaint(), i3.sortRange(r2.row, r2.col, r2.rowCount, r2.colCount, true, [{ index: t4 + r2.col, ascending: n3 }]), o2 && (o2.nrt = { index: t4 + r2.col, ascending: n3 }), i3.resumePaint());
          }, t3.prototype.QL = function() {
            return !!this.H3;
          }, t3.prototype.N4t = function(t4, n3, e3, r2, o2, a2, u2, s2) {
            var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2 = this, S2 = C2.Mf, T2 = C2.jS, x2 = C2.Ky, A2 = C2.iw, I2 = C2.Sx, k2 = C2.Tx, N2 = x2 + I2 - 1, j2 = C2.dataRange(), D2 = e3 && j2.rowCount > 0 ? t4 + 1 : t4, _2 = D2 + n3;
            wt(S2), c2 = C2.QL();
            try {
              C2.lTt = true, C2.sL(false), T2.zB = C2, T2.zB.VB = new i2.Range(x2, A2, I2 + n3, k2), C2.w0r = t4 === (C2.jO ? C2.Ky + 1 : C2.Ky), f2 = Gi(), h2 = (l2 = N2 + 1) + n3, d2 = o2 - l2 + 1, v2 = e3 && t4 === N2, r2 && !C2.TTt ? S2.moveTo(l2, A2, h2, A2, d2, k2, f2, Ft, Ft, v2 && this) : v2 && i2.staticMembers.BGr(S2, l2, A2, h2, A2, 1, k2, this), p2 = N2 - D2 + 1, (!e3 || t4 !== N2) && p2 > 0 && (S2.EB = C2, S2.E0r = true, S2.Nyt = j2, c2 && C2.NTr() ? (C2.oL && (S2.moveTo(N2, A2, N2 + n3, A2, 1, k2, f2), p2--), p2 > 0 && (f2 = i2.CopyToOptions.comment | i2.CopyToOptions.outline | i2.CopyToOptions.sparkline | i2.CopyToOptions.span | i2.CopyToOptions.style | i2.CopyToOptions.tag | i2.CopyToOptions.bindingPath | i2.CopyToOptions.hyperlink | i2.CopyToOptions.altText | i2.CopyToOptions.shape, S2.moveTo(D2, A2, _2, A2, p2, k2, f2))) : c2 ? (C2.oL && (S2.moveTo(N2, A2, N2 + n3, A2, 1, k2, f2), p2--), p2 > 0 && (g2 = Ui(), C2.BSt.forEach((function(t5, n4) {
                var e4 = A2 + n4;
                t5.dataField() ? S2.moveTo(D2, e4, _2, e4, p2, 1, g2) : S2.moveTo(D2, e4, _2, e4, p2, 1, f2);
              })))) : S2.moveTo(D2, A2, _2, A2, p2, k2, f2), delete S2.Nyt, delete S2.EB, delete S2.E0r), C2.JO(D2, n3, e3, !!u2, true, a2), m2 = e3 ? 1 : 0, b2 = C2.jO && 1 === I2, (D2 <= (y2 = x2 + I2 - 1 + m2) || b2) && hi(S2, D2, C2.iw, D2 + n3 - 1, C2.iw + C2.Tx - 1, C2), w2 = S2.Ut, M2 = C2.dataRange(), w2.bJ && w2.bJ(D2, n3, { affectRanges: [M2], isFromTable: true }), w2.ATt && w2.ATt(D2, n3, [M2], true), delete T2.zB.VB, T2.zB = Ft, delete C2.w0r, C2.t5t(D2, n3, true, s2), C2.J5t(D2, n3, true, s2), C2.jS.dl();
            } finally {
              C2.jS.ssr(), C2.lTt = Ft, C2.sL(true), c2 ? Mt(S2, true) : (e3 && (C2.jS.bsr(C2.Ky, C2.iw, C2.Sx, C2.Tx), S2.recalcRange(C2.Ky, C2.iw, C2.Sx, C2.Tx)), Mt(S2)), C2.cL(0);
            }
          }, t3.prototype.sL = function(t4) {
            this.Mf.sL(t4);
          }, t3.prototype.insertRows = function(t4, n3, e3) {
            if (!(C(t4) || C(n3) || n3 <= 0)) {
              var i3 = this;
              t4 = kt(i3, t4, true), i3.zpt(t4, n3, e3), i3.tUr();
            }
          }, t3.prototype.zpt = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
            C(t4) || C(n3) || n3 <= 0 || (a2 = (o2 = this).Mf, s2 = (u2 = o2.dataRange()).row, 0 === (c2 = u2.rowCount) && t4 === s2 || !(t4 < s2 || t4 >= (f2 = s2 + c2)) || W(ge().Exp_RowParamOutOfRange), l2 = o2.Ky, h2 = o2.iw, p2 = l2 + (d2 = o2.Sx) - 1, g2 = h2 + (v2 = o2.Tx) - 1, b2 = (m2 = lt(a2, o2)) > p2, dt(a2, o2, p2 + 1, m2, h2, g2, n3) || o2.N4t(t4, n3, e3, b2, m2, i3, r2));
          }, t3.prototype.Guo = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = n3.Ky, r2 = n3.iw, o2 = n3.Sx, a2 = n3.Tx, u2 = i3 + o2 - 1, s2 = r2 + a2 - 1, c2 = lt(e3, n3), f2 = c2 > u2, l2 = {}, h2 = dt(e3, n3, u2 + 1, c2, r2, s2, t4, Ft, Ft, true, l2);
            return { lastNonNullRow: c2, hasNonNullRowBelowTable: f2, isInvalid: h2, errorInfo: l2 };
          }, t3.prototype.deleteRows = function(t4, n3) {
            if (!(C(t4) || C(n3) || n3 <= 0)) {
              var e3 = this;
              t4 = kt(e3, t4, true), e3.yE(t4, n3), e3.tUr();
            }
          }, t3.prototype.yE = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2;
            if (!(C(t4) || C(n3) || n3 <= 0 || (u2 = (a2 = this).Mf, c2 = (s2 = a2.dataRange()).row, f2 = s2.rowCount, (t4 < c2 || t4 >= c2 + f2) && W(ge().Exp_RowParamOutOfRange), l2 = a2.Ky, h2 = a2.iw, d2 = a2.Sx, v2 = a2.Tx, p2 = l2 + d2 - 1, g2 = h2 + v2 - 1, (d2 <= 1 || t4 === c2 && !a2.jO && !a2.oL && n3 >= f2) && W(ge().Exp_TableDeleteCountInvalid), b2 = (m2 = lt(u2, a2)) > p2, dt(u2, a2, p2 + 1, m2, h2, g2, n3, true)))) {
              wt(u2), y2 = a2.QL();
              try {
                a2.sL(false), y2 && (w2 = bt(true), a2.x4t(t4, n3, w2)), (M2 = a2.jS).zB = a2, M2.zB.VB = new i2.Range(l2, h2, d2, v2), u2.E0r = true, S2 = Bt(n3, p2 - t4 + 1), y2 || u2.clear(t4, h2, S2, v2, 3, O), a2.xP(t4, n3, { key: w2, isInitBinding: e3, ignoreUpdateDataSource: r2, ignoreSlicerWhenFilter: o2 }), a2.w0r = t4 === (a2.jO ? a2.Ky + 1 : a2.Ky), T2 = Gi(), t4 + n3 <= p2 && (x2 = p2 - n3 - t4 + 1, y2 ? (a2.oL && x2--, x2 > 0 && (A2 = Ui(), a2.BSt.forEach((function(e4, i3) {
                  var r3 = h2 + i3;
                  e4.dataField() ? u2.moveTo(t4 + n3, r3, t4, r3, x2, 1, A2) : u2.moveTo(t4 + n3, r3, t4, r3, x2, 1, T2);
                }))), a2.oL && u2.moveTo(p2, h2, p2 - n3, h2, 1, v2, T2)) : u2.moveTo(t4 + n3, h2, t4, h2, x2, v2, T2)), b2 ? (k2 = (I2 = p2 + 1) - S2, N2 = m2 - I2 + 1, u2.moveTo(I2, h2, k2, h2, N2, v2, T2)) : (u2.clear(p2 - S2 + 1, h2, S2, v2, 3, O), u2.moveTo(u2.getRowCount() + 1, h2, p2 - S2 + 1, h2, S2, v2, i2.CopyToOptions.formula, Ft, true)), j2 = u2.Ut, D2 = a2.dataRange(), j2.yJ && j2.yJ(t4, n3, [D2], true), delete a2.w0r, delete M2.zB.VB, delete u2.E0r, M2.zB = Ft, a2.J5t(), a2.jS.dl();
              } finally {
                a2.jS.ssr(), a2.sL(true), y2 ? Mt(u2, true) : (a2.jS.bsr(a2.Ky, a2.iw, a2.Sx, a2.Tx), Mt(u2)), a2.cL(0);
              }
            }
          }, t3.prototype.insertColumns = function(t4, n3, e3) {
            if (!(C(t4) || C(n3) || n3 <= 0)) {
              var i3 = this;
              t4 = kt(i3, t4, false), i3.k4t(t4, n3, e3);
            }
          }, t3.prototype.k4t = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2;
            if (!(C(t4) || C(n3) || n3 <= 0 || (o2 = (r2 = this).Mf, u2 = (a2 = r2.dataRange()).col, s2 = a2.colCount, (t4 < u2 || t4 >= u2 + s2) && W(ge().Exp_ColParamOutOfRange), c2 = r2.Ky, f2 = r2.iw, d2 = c2 + (l2 = r2.Sx) - 1, v2 = f2 + (h2 = r2.Tx) - 1, g2 = (p2 = ht(o2, r2)) > v2, dt(o2, r2, c2, d2, v2 + 1, p2, n3, false, true)))) {
              b2 = (m2 = e3 ? t4 + 1 : t4) + n3, wt(o2);
              try {
                if (r2.sL(false), (y2 = r2.jS).zB = r2, y2.zB.VB = new i2.Range(c2, f2, l2, h2 + n3), M2 = !(w2 = r2.QL()), T2 = (S2 = v2 + 1) + n3, x2 = p2 - S2 + 1, A2 = Gi(), I2 = Ui(), g2 && o2.moveTo(c2, S2, c2, T2, l2, x2, A2), !e3 || t4 !== v2) {
                  if (k2 = c2, N2 = l2, o2.EB = r2, o2.E0r = true, r2.jO && (k2++, N2--), r2.jO && o2.moveTo(c2, m2, c2, b2, 1, v2 - m2 + 1, I2), w2 && r2.NTr()) for (o2.moveTo(k2, m2, k2, b2, N2, v2 - m2 + 1, I2), j2 = r2.BSt, D2 = h2 - 1; D2 >= m2 - f2; D2--) _2 = j2[D2], O2 = f2 + D2, _2.dataField() && r2.showFooter() && r2.NTr() && o2.Ut.f_e(k2 + N2 - 1, O2, 1, 1, 1, 3);
                  else if (w2) {
                    for (E2 = (j2 = r2.BSt).slice(), D2 = h2 - 1; D2 >= m2 - f2; D2--) _2 = j2[D2], O2 = f2 + D2, j2[D2 + n3] = new ke(), _2.dataField() ? (o2.moveTo(k2, O2, k2, O2 + n3, N2, 1, I2), r2.showFooter() && o2.moveTo(k2 + N2 - 1, O2, k2 + N2 - 1, O2 + n3, 1, 1, i2.CopyToOptions.value), o2.Ut.f_e(k2, O2, N2, 1, 1, 3)) : o2.moveTo(k2, O2, k2, O2 + n3, N2, 1, A2), j2[D2 + n3] = _2, r2.IEr(D2);
                    r2.BSt = E2;
                  } else o2.moveTo(k2, m2, k2, b2, N2, v2 - m2 + 1, A2);
                  delete o2.EB, delete o2.E0r;
                }
                r2.qO(m2, n3, e3, M2, true), R2 = o2.Ut, L2 = r2.dataRange(), R2.wJ && R2.wJ(m2, n3, { affectRanges: [L2], isFromTable: true }), R2.NTt && R2.NTt(m2, n3, [L2], !r2.NTr() || 1), delete y2.zB.VB, y2.zB = Ft, r2.jS.dl();
              } finally {
                r2.sL(true), r2.psr(), Mt(o2), r2.cL(0);
              }
            }
          }, t3.prototype.deleteColumns = function(t4, n3) {
            if (!(C(t4) || C(n3) || n3 <= 0)) {
              var e3 = this;
              t4 = kt(e3, t4, false), e3.wE(t4, n3);
            }
          }, t3.prototype.wE = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, E2, R2, L2, F2;
            if (!(C(t4) || C(n3) || n3 <= 0 || (r2 = (e3 = this).Mf, a2 = (o2 = e3.dataRange()).col, u2 = o2.colCount, (t4 < a2 || t4 >= a2 + u2) && W(ge().Exp_ColParamOutOfRange), s2 = e3.Ky, c2 = e3.iw, h2 = s2 + (f2 = e3.Sx) - 1, d2 = c2 + (l2 = e3.Tx) - 1, (l2 <= 1 || t4 === c2 && n3 >= l2) && W(ge().Exp_TableDeleteCountInvalid), p2 = (v2 = ht(r2, e3)) > d2, dt(r2, e3, s2, h2, d2 + 1, v2, n3, true, true)))) {
              wt(r2);
              try {
                if (e3.sL(false), g2 = e3.jS, m2 = e3.QL(), g2.zB = e3, g2.zB.VB = new i2.Range(s2, c2, f2, l2), b2 = Bt(n3, d2 - t4 + 1), y2 = Gi(), w2 = Ui(), t4 + n3 <= d2) {
                  if (M2 = s2, S2 = f2, e3.jO && (M2++, S2--), r2.E0r = true, e3.jO && r2.moveTo(s2, t4 + n3, s2, t4, 1, d2 - n3 - t4 + 1, w2), 0 !== S2) if (m2) {
                    for (x2 = (T2 = e3.BSt).slice(), A2 = t4 - c2 + n3; A2 < e3.Tx; A2++) I2 = T2[A2], T2[A2 - n3] = new ke(), k2 = c2 + A2, I2.dataField() ? ((N2 = e3.showFooter() && e3.NTr()) && r2.Ut.f_e(M2 + S2 - 1, k2 - n3, 1, 1, 1, 3), e3.showFooter() && r2.moveTo(M2 + S2 - 1, k2, M2 + S2 - 1, k2 - n3, 1, 1, i2.CopyToOptions.value), r2.moveTo(M2, k2, M2, k2 - n3, S2, 1, w2), N2 && r2.Ut.f_e(M2 + S2 - 1, k2, 1, 1, 1, 3)) : r2.moveTo(M2, k2, M2, k2 - n3, S2, 1, y2), T2[A2 - n3] = I2, e3.IEr(A2);
                    e3.BSt = x2;
                  } else r2.moveTo(M2, t4 + n3, M2, t4, S2, d2 - n3 - t4 + 1, y2);
                  delete r2.E0r;
                }
                e3.NP(t4, n3), p2 ? (D2 = (j2 = d2 + 1) - b2, _2 = v2 - j2 + 1, r2.moveTo(s2, j2, s2, D2, f2, _2, y2)) : t4 + n3 === d2 + 1 && (j2 = r2.getColumnCount() + 1, D2 = d2 + 1 - b2, _2 = b2, r2.moveTo(s2, j2, s2, D2, f2, _2, i2.CopyToOptions.formula, Ft, true)), R2 = (E2 = Math.max(d2, v2)) + 1 - (E2 - b2 + 1), E2 - b2 + 1 < t4 + b2 ? r2.clear(s2, E2 - b2 + 1, f2, R2, 3, O) : e3.jO && r2.clear(s2, E2 - b2 + 1, 1, R2, 3, O), L2 = r2.Ut, F2 = e3.dataRange(), L2.MJ && L2.MJ(t4, n3, [F2], true), delete g2.zB.VB, g2.zB = Ft, e3.jS.dl();
              } finally {
                e3.sL(true), e3.ccr(r2), Mt(r2), e3.cL(0);
              }
            }
          }, t3.prototype.STt = function() {
            try {
              var t4 = this, n3 = t4.Mf, e3, i3 = t4.jS.U3;
              n3 && n3.Ut.DTt([t4], [], 2), i3.splice(i3.indexOf(t4), 1), t4.U5t();
            } catch (t5) {
            }
          }, t3.prototype.ITt = function(t4, n3) {
            var e3 = this;
            e3.mTt = true, e3.iTt = t4, e3.jS.WB(e3, Ft, n3), delete e3.iTt, delete e3.mTt;
          }, t3.prototype.ZAe = function(t4) {
            var n3 = this, e3;
            n3.BSt.forEach((function(e4) {
              var i3 = e4.footerFormula();
              i3 && vi(n3, i3, t4, e4.name());
            }));
          }, t3.prototype.ftt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.H3, f2 = s2.Mf, l2 = s2.jO ? 1 : 0, h2 = s2.Ky + l2 + t4, d2 = s2.iw;
            if (!c2 || 0 === c2.getRowCount()) return Lt;
            if (n3 = s2.Tx, e3 = {}, i3 = c2.ftt(t4)) for (r2 in i3) I(i3, r2) && "function" != typeof r2 && (e3[r2] = i3[r2]);
            for (o2 = 0; o2 < n3; o2++) u2 = (a2 = s2.BSt[o2]) && a2.dataField(), a2 && u2 && u2.length > 0 && C(e3[u2]) && (e3[u2] = f2.getValue(h2, d2 + o2));
            return e3;
          }, t3.prototype.x4t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this, c2 = [], f2 = s2.H3;
            if (f2) for (o2 = f2.getRowCount(), a2 = 0; a2 < n3; a2++) u2 = Lt, (r2 = gt(s2, i3 = t4 + a2)) < o2 && (u2 = s2.ftt(r2)), c2.push({ key: e3, data: u2 });
            s2.aj = c2;
          }, t3.prototype.tq = function() {
            var t4 = [], n3 = this.aj;
            return n3 && w(n3, (function(n4, e3) {
              e3 && !i2.GC$.isFunction(e3) && t4.push(e3.data);
            })), t4;
          }, t3.prototype.R5t = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2 = this;
            s2.Mf.lE > 0 || (i3 = s2.GSt, (r2 = s2.H3) && (o2 = Lt, n3 < (a2 = r2.getRowCount()) && (o2 = s2.ftt(n3)), u2 = { key: e3, data: o2 }, i3[t4] = u2));
          }, t3.prototype.sTt = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this;
            if (!(a2.Mf.lE > 0)) if (i3 = a2.GSt, e3) r2 = i3.splice(t4, n3), a2.USt.push({ rowIndex: t4, count: n3, deletedDirtyItems: r2 });
            else for (o2 = 0; o2 < n3; o2++) i3.splice(t4, 0, Lt);
          }, t3.prototype.A4t = function(t4, n3) {
            this.GSt.splice(t4, n3);
          }, t3.prototype.ZSt = function() {
            var t4, n3, e3, i3, r2, o2, a2 = this, u2 = a2.USt;
            if (u2 && u2.length > 0) for (n3 = (t4 = u2.pop()).rowIndex, e3 = t4.count, i3 = t4.deletedDirtyItems, r2 = 0; r2 < e3; r2++) o2 = i3[r2], a2.GSt[n3 + r2] = _e({}, o2);
          }, t3.prototype.getDirtyRows = function() {
            var t4, n3, e3, i3 = this, r2 = i3.GSt, o2 = [];
            for (e3 = 0; e3 < r2.length; e3++) t4 = r2[e3], C(t4) || (n3 = gt(i3, e3), o2.push({ row: n3, originalItem: t4.data, item: i3.ftt(n3) }));
            return o2;
          }, t3.prototype.clearPendingChanges = function() {
            this.GSt = [];
          }, t3.prototype.footerRowDropDowns = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.OSt[t4];
            if (u2) {
              if (1 === arguments.length) return u2.dropDowns && u2.dropDowns.slice();
              if (e3 = u2.dropDowns[0], n3) return i3 = n3.listOption, r2 = n3.submitCommand, o2 = n3.type, i3 && (e3.option = i3), r2 && (e3.submitCommand = r2), b(o2) && (e3.type = o2), a2;
            }
          }, t3.prototype.checkTableLastRow = function(t4) {
            var n3 = this, e3 = n3.dataRange();
            return n3.headerIndex() === t4 || e3.row + e3.rowCount - 1 !== t4;
          }, t3.prototype.checkTableLastCol = function(t4) {
            var n3, e3 = this.dataRange();
            return e3.col + e3.colCount - 1 !== t4;
          }, t3.prototype.jj = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this, c2 = s2.Mf;
            Ct(c2, s2, e3 ? Pn : Ln, t4, n3, i3, r2), o2 = c2.Ut, a2 = e3 ? Ln : Pn, u2 = !e3 && Ft, o2 && o2.ZI(["tableRowsChanged", s2, a2, t4, n3, u2, e3]);
          }, t3.prototype.Ej = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2 = this, s2 = u2.Mf;
            St(s2, u2, e3 ? Hn : Un, t4, n3, i3), r2 = s2.Ut, o2 = e3 ? Un : Hn, a2 = !e3 && Ft, r2 && r2.ZI(["tableColumnsChanged", u2, o2, t4, n3, a2]);
          }, t3;
        })(), n2.Table = Te, (0, i2.qDr)(Te), n2.hasRowFilter = Vi, (0, i2.$e)(Te), xe = { 101: "average", 102: "countNums", 103: "count", 104: "max", 105: "min", 107: "stdDev", 109: "sum", 110: "let" }, Te.prototype.name = m(Vt, "", zi(Vt), it, Yi(Vt)), Te.prototype.showResizeHandle = m(Xt, false, zi(Xt), (function() {
          return !this.NTr();
        }), Yi(Xt)), Te.prototype.bandRows = m(Kt, true, zi(Kt), Ft, Yi(Kt)), Te.prototype.bandColumns = m(Jt, false, zi(Jt), Ft, Yi(Jt)), Te.prototype.highlightFirstColumn = m(Wt, false, zi(Wt), Ft, Yi(Wt)), Te.prototype.highlightLastColumn = m(Qt, false, zi(Qt), Ft, Yi(Qt)), Te.prototype.style = function(t3) {
          var e3, i3, r2, o2;
          return arguments.length > 0 ? (e3 = void 0, i3 = false, "string" == typeof t3 ? (r2 = t3.toLowerCase(), (e3 = (o2 = this.Mf && this.Mf.getParent() && this.Mf.getParent().customTableThemes.get(r2)) || f.TableThemes[r2]) && r2 !== this.getStyleName() && this.TEr(r2), e3 || (i3 = true)) : t3 && t3 instanceof f.TableTheme ? ((e3 = new f.TableTheme()).fromJSON(t3.toJSON()), i3 = true) : i3 = true, i3 && this.getStyleName() && this.TEr(Ft), this.RN(e3)) : (0, n2.ZHr)(this.RN());
        }, Te.prototype.getStyleOriginInstance = function() {
          return m("style", Ft, Zi, Ft, Yi("style")).call(this);
        }, Te.prototype.RN = m("style", Ft, Zi, Ft, Yi("style")), Te.prototype.autoGenerateColumns = m(qt, true, zi(qt), Ft, Yi(qt)), u && u.HideRowFilter && (Ie = (function(t3) {
          function n3(n4) {
            var e3, i3 = t3.call(this) || this;
            return i3.JTr = false, i3.irt = false, i3.ort = false, (e3 = i3).table(n4), e3.act = false, i3;
          }
          return De(n3, t3), n3.prototype.V_r = function() {
            return "table";
          }, n3.prototype.KUr = function() {
            return 0;
          }, n3.prototype.bct = function() {
            return this.range.colCount;
          }, n3.prototype.table = function(t4) {
            var n4 = this;
            if (0 === arguments.length) return n4.nM;
            n4.nM = t4, t4 && (n4.Mf = t4.Mf);
          }, n3.prototype.wtt = function(t4, n4, e3, i3) {
            var r2, o2 = this, a2 = !n4;
            if (a2 && (null === (r2 = o2.nM) || void 0 === r2 ? void 0 : r2.NTr())) switch (t4) {
              case 5:
                o2.GAr(o2.nM), o2.Sct(o2.Mf, 1, qi(i3.filterItemMap, e3.filterItemMap));
                break;
              case 6:
                o2.GAr(o2.nM), o2.Sct(o2.Mf, 0, qi(e3.filterItemMap, i3.filterItemMap));
            }
          }, n3.prototype.setFilterItemMap = function(t4, n4) {
            var e3 = this;
            n4 ? (e3.Mf.Ut.cct(e3, 5), e3.rrt[t4] = n4, e3.Mf.Ut.cct(e3, 5, Ft, true)) : (e3.Mf.Ut.cct(e3, 6), e3.rrt[t4] = Ft, e3.Mf.Ut.cct(e3, 6, Ft, true));
          }, n3.prototype.filter = function(n4, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.nM;
            if (s2 && s2.H3 && s2.H3.nln()) {
              if (i3 = u2.Mf) {
                if (i3.Ut.cct(u2, 7), r2 = [], o2 = u2.rrt, a2 = void 0, false === u2.sct && (delete u2.sct, u2.Mct = []), C(n4)) {
                  for (a2 = 0; a2 < A(o2); a2++) o2[a2] && (r2.push(a2), u2.Nct(a2, true));
                  u2.GAr(s2);
                } else {
                  if (!o2[n4]) return;
                  r2.push(n4), u2.Nct(n4, true), u2.GAr(s2);
                }
                e3 || u2.Sct(i3, 0, r2), i3.Ut.cct(u2, 7, Ft, true);
              }
            } else t3.prototype.filter.call(this, n4, e3);
          }, n3.prototype.ETr = function(t4, n4) {
            var e3, i3 = this.nM;
            return i3.H3.ETr(t4 - i3.iw, n4);
          }, n3.prototype.GAr = function(t4) {
            var n4, e3, i3, r2 = this;
            t4.H3.Irn(), n4 = r2.rrt, e3 = r2.Mct.reduce((function(t5, n5) {
              return t5[n5] = true, t5;
            }), {}), i3 = Object.keys(n4).filter((function(t5) {
              return e3[t5] && !C(n4[t5]);
            })).reduce((function(t5, n5) {
              return t5.concat(r2.aze(Number(n5)));
            }), []), t4.H3.Irn(i3), r2._ct = t4.z3().UAr(t4.WTr(), t4.iw);
          }, n3.prototype.aze = function(n4) {
            var e3 = this;
            return t3.prototype.aze.call(this, n4, (function(t4, i3) {
              var r2, o2;
              if (e3.ikr(i3[0])) {
                if (!i3[0].art || 2 !== i3[0].conType()) return false;
                for (r2 = 0; r2 < i3.length; r2++) o2 = i3[r2].urt, t4.push({ col: n4, value: C(o2) ? o2 : o2.toISOString() });
              } else for (r2 = 0; r2 < i3.length; r2++) t4.push({ col: n4, value: i3[r2].value });
              return true;
            })).map((function(t4) {
              return t4.col = e3.nM.O5t(t4.col), t4;
            }));
          }, n3.prototype.Kao = function() {
            var t4, n4, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.nM, g2 = v2.rrt, m2 = v2.Mct;
            if (g2 && g2.length > 0 && m2 && m2.length > 0) {
              for (r2 = p2.z3().getTable(), o2 = 0; o2 < A(m2); o2++) if (u2 = g2[a2 = m2[o2]]) for (s2 = p2.O5t(a2), c2 = 0, f2 = u2.length; c2 < f2; c2++) l2 = u2[c2], v2.ikr(l2) && "string" == typeof l2.expected() && (h2 = p2.getColumnDataField(s2) || p2.getColumnName(s2), "number" === (d2 = (null === (i3 = null === (e3 = null === (n4 = null === (t4 = r2.options) || void 0 === t4 ? void 0 : t4.schema) || void 0 === n4 ? void 0 : n4.columns) || void 0 === e3 ? void 0 : e3[h2]) || void 0 === i3 ? void 0 : i3.dataType) || r2.getColumnValueType({}, h2)) && l2.expected(Number(l2.expected())));
            }
          }, n3.prototype.getFilteredItems = function() {
            var n4, e3 = this, i3 = this, r2 = i3.nM;
            return r2 && r2.NTr() && (n4 = i3.Mct) && n4.length > 0 ? n4.reduce((function(n5, i4) {
              var r3 = t3.prototype.getFilterItems.call(e3, i4);
              return r3 && r3.length > 0 ? n5.concat(r3) : n5;
            }), []) : t3.prototype.getFilteredItems.call(this);
          }, n3.prototype.unfilter = function(n4, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.Mf;
            if (s2 && s2.suspendPaint(), (i3 = u2.nM) && i3.H3 && i3.H3.nln()) {
              if (s2.Ut.cct(u2, 2), r2 = [], C(n4)) {
                for (o2 = u2.Mct, a2 = void 0, a2 = A(o2) - 1; a2 >= 0; a2--) n4 = o2[a2], u2.rrt[n4] && (u2.rrt[n4] = Ft), u2.Nct(n4, false);
                u2.GAr(i3), e3 || u2.Sct(s2, 1, r2);
              } else u2.isFiltered(n4) && (r2.push(n4), u2.rrt[n4] = Ft, u2.GAr(i3), u2.Nct(n4, false), e3 || u2.Sct(s2, 1, r2));
              s2.Ut.cct(u2, 2, Ft, true);
            } else t3.prototype.unfilter.call(this, n4, e3);
            i3 && i3.jS && i3.jS.dl(), s2 && s2.resumePaint();
          }, n3.prototype.JO = function(n4, e3, i3) {
            var r2 = this, o2 = r2.nM;
            t3.prototype.JO.call(this, n4, e3, i3), o2 && r2.Fct(o2.dataRange());
          }, n3.prototype.xP = function(n4, e3) {
            var i3 = this, r2 = i3.nM;
            t3.prototype.xP.call(this, n4, e3), r2 && i3.Fct(r2.dataRange());
          }, n3.prototype.Uct = function(n4) {
            var e3 = this, i3, r2 = e3.Pct() && n4 && n4.contains(e3.range.row, e3.Gct());
            r2 && (i3 = e3.nrt), t3.prototype.Uct.call(this, n4), r2 && (e3.nrt = i3);
          }, n3.prototype.Qct = function(t4, n4, e3) {
            var i3 = this, r2 = i3.Mf.Ut;
            r2.cct(i3, 9), i3.JO(t4, n4, e3), r2.cct(i3, 9, Ft, true);
          }, n3.prototype.Kct = function(t4, n4) {
            var e3 = this, i3 = e3.Mf.Ut;
            i3.cct(e3, 10), e3.xP(t4, n4), i3.cct(e3, 10, Ft, true);
          }, n3.prototype.Jct = function(t4, n4, e3) {
            var i3 = this, r2 = i3.Mf.Ut;
            r2.cct(i3, 11), i3.qO(t4, n4, e3), r2.cct(i3, 11, Ft, true);
          }, n3.prototype.Xct = function(t4, n4) {
            var e3 = this, i3 = e3.Mf.Ut;
            i3.cct(e3, 12), e3.NP(t4, n4), i3.cct(e3, 12, Ft, true);
          }, n3.prototype.ert = function(n4, e3, i3, r2, o2) {
            var a2, u2 = this, s2 = u2.nM;
            u2.JTr = true, t3.prototype.ert.call(this, n4, e3, i3, r2, o2), u2.JTr = false, s2 && s2.N5t() && (a2 = s2.getSlicerData()).refresh();
          }, n3.prototype.ekr = function(t4) {
            if (t4) {
              var n4 = this, e3 = n4.nM, i3 = n4.Mf;
              e3.H3.POn(t4.map((function(t5) {
                return _e(_e({}, t5), { index: e3.AAr(t5.index) });
              })), i3.Ut.G8);
            }
          }, n3.prototype.aao = function() {
            var t4 = this, n4 = t4.nrt;
            n4 && t4.ekr(Array.isArray(n4) ? n4 : [n4]);
          }, n3.prototype.reFilter = function(n4) {
            var e3;
            (null === (e3 = this.nM) || void 0 === e3 ? void 0 : e3.NTr()) || t3.prototype.reFilter.call(this, n4);
          }, n3.prototype.openFilterDialog = function(n4) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2;
            (null === (e3 = this.nM) || void 0 === e3 ? void 0 : e3.NTr()) ? (i3 = this.nM, o2 = (r2 = this).Mf, a2 = n4.col, u2 = i3.z3().getColumn(i3.O5t(a2)), r2.irt = false, r2.ort = false, c2 = ((s2 = i3.z3()) && s2.length() || 0) > 0, r2.Hct(o2) && c2 && (f2 = { sortByValue: false !== u2.allowSort, filterByValue: false !== u2.allowFilterByValue, listFilterArea: false !== u2.allowFilterByList, sortByColor: false, filterByColor: false }, r2.filterDialogVisibleInfo(f2), l2 = new g.TableDataDrivenFilterDialog(o2.parent.j2(), o2, n4, f2, r2.dialogOptions, i3), o2.Cut = l2, l2.rQ(), l2.cze && l2.yut())) : t3.prototype.openFilterDialog.call(this, n4);
          }, n3.prototype.toJSON = function(n4) {
            var e3 = this, i3 = t3.prototype.toJSON.call(e3, n4), r2 = e3.nM;
            return r2 && (i3.tableName = r2.name()), i3;
          }, n3.prototype.L0 = function() {
            this.nM = Lt, this.Mf = Lt;
          }, n3;
        })(Ae = u.HideRowFilter), n2.WSt = Ie), ke = (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2, u2, s2) {
            this.onChange = null;
            var c2 = this;
            c2.assignId(), c2.id(t4), c2.dataField(n3), c2.name(e3 || n3 || Cn + c2.id()), c2.dataStyle(u2), b(i3) && c2.formatter(i3), b(r2) && c2.cellType(r2), c2.value(o2), c2.headerStyle(a2), c2.footerStyle(s2);
          }
          return t3.prototype.propChanged = function(t4, n3, e3) {
            var i3 = this;
            i3.onChange && i3.onChange({ columnId: i3.jKe(), propName: t4, value: n3, oldValue: e3 });
          }, t3.prototype.tTt = function() {
            return this.id() > 0;
          }, t3.prototype.vyt = function() {
          }, t3.prototype.r_t = function() {
          }, t3.prototype.toJSON = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2 = this, c2 = {}, f2 = t4 && t4.cb === i2.OpenSaveFileType.excel;
            return f2 && (null == t4 ? void 0 : t4.wuo) && (c2.KKr = null === (e3 = null === (n3 = s2.vuo) || void 0 === n3 ? void 0 : n3.guo) || void 0 === e3 ? void 0 : e3.KKr, c2.QKr = null === (o2 = null === (r2 = s2.vuo) || void 0 === r2 ? void 0 : r2.guo) || void 0 === o2 ? void 0 : o2.QKr), b(s2.cellType()) && Re(a2 = tr(s2)) && (a2.cellType = s2.cellType()), b(s2.formatter()) && (Re(a2 = tr(s2)) || (a2.formatter = s2.formatter())), w(jn, (function(t5, n4) {
              var e4 = s2[n4]();
              if (!C(e4)) {
                if (a2 && !Re(a2) && (n4 === zt || n4 === Zt)) return;
                e4.toJSON && "function" == typeof e4.toJSON ? c2[n4] = e4.toJSON() : c2[n4] = e4;
              }
            })), u2 = Ft, M(c2) || ((null == t4 ? void 0 : t4.isServer) && (c2.__ID__ = s2.jKe()), u2 = c2), u2;
          }, t3.prototype.wh = function(t4, n3, e3, r2, o2, a2, u2, s2, c2) {
            var f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2 = this, R2 = E2.name();
            return R2 = B(R2, "\r", ""), y2 = { n_: "tableColumn", id: E2.id(), name: Be(R2) }, w2 = E2.footerFormula(), M2 = E2.footerValue(), w2 && (a2 && false === a2.includeFormulas ? (w2 = Ft, M2 = t4.getValue(r2, o2)) : T2 = Ji(S2 = ut(t4, w2, r2, o2))), (x2 = T2 === re) ? y2.totalsRowFunction = re : w2 ? y2.totalsRowFunction = T2 : C(M2) || (y2.totalsRowLabel = Be(M2.toString()), u2.v = M2), A2 = E2.dataAreaFormula(), C(A2) || Xi(A2 = ut(t4, A2, e3, o2)) || (C(y2.c_) && (y2.c_ = []), I2 = { n_: "calculatedColumnFormula", c_: [F(H(A2))] }, y2.c_.push(I2)), x2 && !C(S2) && (k2 = { n_: "totalsRowFormula", c_: [F(S2)] }, C(y2.c_) && (y2.c_ = []), y2.c_.push(k2)), N2 = y2.lossless, C(E2.value()) || (C(N2) && (N2 = y2.lossless = {}), N2[Yt] = E2.value()), C(E2.dataField()) || (C(N2) && (N2 = y2.lossless = {}), N2[Tn] = E2.dataField()), D2 = E2.cellType(), _2 = E2.formatter(), b(D2) && (j2 = tr(E2), C(N2) && (N2 = y2.lossless = {}), N2[zt] = (null == D2 ? void 0 : D2.toJSON) ? D2.toJSON() : D2, Re(j2) || (j2.cellType = D2)), b(_2) && (Re(j2 = tr(E2)) ? (C(N2) && (N2 = y2.lossless = {}), N2[Zt] = _2) : j2.formatter = _2), (O2 = !i2.Util.ko(a2)) && (null == a2 ? void 0 : a2.losslessEditing) && (C(null === (l2 = null === (f2 = E2.vuo) || void 0 === f2 ? void 0 : f2.guo) || void 0 === l2 ? void 0 : l2.QKr) || (C(y2.c_) && (y2.c_ = []), y2.c_.push(null === (d2 = null === (h2 = E2.vuo) || void 0 === h2 ? void 0 : h2.guo) || void 0 === d2 ? void 0 : d2.QKr)), C(null === (p2 = null === (v2 = E2.vuo) || void 0 === v2 ? void 0 : v2.guo) || void 0 === p2 ? void 0 : p2.KKr) || (y2.uniqueName = null === (m2 = null === (g2 = E2.vuo) || void 0 === g2 ? void 0 : g2.guo) || void 0 === m2 ? void 0 : m2.KKr)), yi(n3.Gye, E2.dataStyle(), "data", O2, y2, t4, s2), O2 && false !== c2 || yi(n3.Uye, E2.headerStyle(), "headerRow", O2, y2, t4, s2), yi(n3.Hye, E2.footerStyle(), "totalsRow", O2, y2, t4, s2), y2;
          }, t3.prototype.fromJSON = function(t4, n3) {
            if (t4) {
              var e3 = this;
              w(jn, (function(n4, r2) {
                var o2, a2, u2, s2, c2 = t4[r2] !== Ft ? t4[r2] : t4["_" + r2];
                C(c2) || (r2 === zt ? (o2 = c2.typeName, (u2 = (a2 = i2.CellTypes && i2.CellTypes.ti) && a2[o2] || a2[c2.type] || (0, i2.getTypeFromString)(o2)) && ((s2 = new u2()).fromJSON(c2, false), c2 = s2), b(c2) && e3.cellType(c2)) : r2 === Zt && b(c2) && e3.formatter(c2), e3[r2](c2, false));
              })), e3.UKn(t4.__ID__), si(e3, t4, $t), si(e3, t4, tn), si(e3, t4, nn), e3.vuo = Ft, n3 && n3.cb === i2.OpenSaveFileType.excel && e3.yuo(t4.KKr, t4.QKr);
            }
          }, t3.prototype.yuo = function(t4, n3) {
            var e3 = this;
            t4 && n3 && (Ge(e3), e3.vuo.guo.KKr = t4, e3.vuo.guo.QKr = n3);
          }, t3.prototype.buo = function() {
            var t4, n3 = this.vuo;
            return n3 ? (0, i2.RF)(n3) : n3;
          }, t3.prototype.yh = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2;
            t4 && ((o2 = this).id(E(t4[Sn], 0)), o2.yuo(t4.uniqueName, k(t4, "xmlColumnPr")), a2 = t4[Vt], C(a2) || (u2 = B(a2, "_x000d__x000a_", "\n"), o2.name(Pe(u2))), s2 = t4.totalsRowLabel, C(s2) || (s2 = B(s2, "_x000d__x000a_", "\n"), o2.footerValue(Pe(s2))), n3 || (c2 = void 0, f2 = r2 && r2.getDefaultStyle(), !C(t4.dataDxfId) && e3 && (c2 = e3.getDxf(+t4.dataDxfId, Ft, true, true)), C(t4.dataCellStyle) || (c2 ? c2.parentName = t4.dataCellStyle : c2 = t4.dataCellStyle), c2 && (c2 = Ke(c2, f2, r2)), o2.dataStyle(c2), l2 = void 0, !C(t4.headerRowDxfId) && e3 && (l2 = e3.getDxf(+t4.headerRowDxfId, Ft, true, true)), C(t4.headerRowCellStyle) || (l2 ? l2.parentName = t4.headerRowCellStyle : l2 = t4.headerRowCellStyle), l2 && (l2 = Ke(l2, f2, r2)), o2.headerStyle(l2), h2 = void 0, !C(t4.totalsRowDxfId) && e3 && (h2 = e3.getDxf(+t4.totalsRowDxfId, Ft, true, true)), C(t4.totalsRowCellStyle) || (h2 ? h2.parentName = t4.totalsRowCellStyle : h2 = t4.totalsRowCellStyle), h2 && (h2 = Ke(h2, f2, r2)), o2.footerStyle(h2), d2 = t4.totalsRowFunction, C(d2) || (v2 = d2, d2 === re && (v2 = L(j(k(t4, "totalsRowFormula")))), o2.footerFormula(v2)), p2 = k(t4, "calculatedColumnFormula"), C(p2) || (g2 = "" + j(p2), o2.dataAreaFormula(L(U(g2)))), m2 = t4.lossless, b2 = void 0, C(m2) || (y2 = m2[zt], C(y2) || (w2 = y2.typeName, (S2 = (M2 = i2.CellTypes && i2.CellTypes.ti) && M2[w2] || M2[y2.type] || (0, i2.getTypeFromString)(w2)) && ((T2 = new S2()).fromJSON(y2), y2 = T2), C(y2) || (Re(b2 = tr(o2)) ? o2.cellType(y2) : b2.cellType = y2)), x2 = m2[Yt], C(x2) || o2.value(x2), A2 = m2[Zt], C(A2) || (Re(b2 = tr(o2)) ? o2.formatter(A2) : b2.formatter = A2), I2 = m2[Tn], C(I2) || o2.dataField(I2))));
          }, t3.prototype.cellType = function(t4) {
            var n3, e3 = this, r2 = e3.dataStyle();
            if (0 === arguments.length) return r2 && r2.cellType;
            n3 = r2 && r2.cellType, r2 || (r2 = new i2.Style(), e3.dataStyle(r2)), r2.cellType = t4, e3.propChanged("cellType", t4, n3);
          }, t3.prototype.formatter = function(t4) {
            var n3, e3 = this, r2 = e3.dataStyle();
            if (0 === arguments.length) return r2 && r2.formatter;
            n3 = r2 && r2.formatter, r2 || (r2 = new i2.Style(), e3.dataStyle(r2)), r2.formatter = t4, e3.propChanged("formatter", t4, n3);
          }, t3;
        })(), n2.TableColumn = ke, (0, i2.qDr)(ke), ke.prototype.id = function(t3) {
          var n3 = m(Sn, Ft, (function(t4) {
            var n4 = this;
            n4.name() || n4.name(Cn + t4);
          }), Ft, (function(t4, n4) {
            this.propChanged(Sn, t4, n4);
          }));
          return 0 === arguments.length ? n3.call(this) : C(t3) ? this : n3.call(this, t3);
        }, ke.prototype.name = m(Vt, Ft, (function(t3, n3) {
          var e3, r2 = this;
          t3 ? ("string" != typeof t3 && (t3 = "" + t3), (e3 = i2.util.V0(t3)) !== t3 && e3.toLocaleDateString && r2.name(e3.toLocaleDateString())) : r2.name(Cn + r2.id());
        }), Ft, (function(t3, n3) {
          var e3 = this;
          n3 !== e3.name() && this.propChanged(Vt, e3.name(), n3);
        })), ke.prototype.dataStyle = m($t, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged($t, t3, n3);
        })), ke.prototype.headerStyle = m(tn, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(tn, t3, n3);
        })), ke.prototype.footerStyle = m(nn, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(nn, t3, n3);
        })), ke.prototype.value = m(Yt, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(Yt, t3, n3);
        })), ke.prototype.dataField = m(Tn, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(Tn, t3, n3);
        })), ke.prototype.footerValue = m(kn, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(kn, t3, n3);
        })), ke.prototype.dataAreaFormula = m(In, Ft, Ft, Ft, (function(t3, n3) {
          var e3 = this;
          n3 && n3.forEachNodes && n3.forEachNodes((function(t4) {
            13 === t4.type && t4.abt.cyt(e3, t4, false);
          })), t3 && t3.forEachNodes && t3.forEachNodes((function(t4) {
            13 === t4.type && t4.abt.cyt(e3, t4, true);
          })), this.propChanged(In, t3, n3);
        })), ke.prototype.footerFormula = m(xn, Ft, Ft, Ft, (function(t3, n3) {
          this.propChanged(xn, t3, n3);
        })), ke.prototype.x5t = m(An), Ne = (function() {
          function t3(t4) {
            this.Mf = t4, this.U3 = new i2.CustomList([], this.YBe.bind(this)), this.xl = [], this.Nl = [];
          }
          return t3.prototype.YBe = function(t4, n3) {
            (0 === t4 && n3 > 0 || t4 > 0 && 0 === n3) && this.Mf.Ut.L5e();
          }, t3.prototype.getUsedRange = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.all(), u2 = {};
            if (a2) for (e3 = 0, i3 = a2; e3 < i3.length; e3++) n3 = (r2 = i3[e3]).range(), t4 && (n3 = t4.getIntersect(n3)), be(u2, me(n3));
            return u2;
          }, t3.prototype.L0 = function() {
            var t4, n3, e3 = this, i3 = e3.U3, r2 = i3.length;
            for (n3 = 0; n3 < r2; n3++) (t4 = i3.get(n3)) && t4.L0();
            e3.U3.L0(), e3.zB = Ft, e3.dl(), e3.Mf = Lt;
          }, t3.prototype.dl = function() {
            var t4, n3, e3, i3, r2 = this;
            for (r2.xl = [], r2.Nl = [], n3 = (t4 = r2.U3).length, i3 = 0; i3 < n3; i3++) (e3 = t4.get(i3)).dl();
          }, t3.prototype.KSt = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.U3, a2 = o2.length;
            for (i3 = 0; i3 < a2; i3++) e3 = o2.get(i3), !n3 && Fe(e3.HSt, t4) ? e3.HSt = [] : C(e3.HSt[t4]) || (e3.HSt[t4] = Ft);
          }, t3.prototype.JSt = function(t4) {
            var n3, e3, i3 = this, r2 = i3.U3, o2 = r2.length;
            for (e3 = 0; e3 < o2; e3++) Fe((n3 = r2.get(e3)).zSt, t4) ? n3.zSt = [] : C(n3.zSt[t4]) || (n3.zSt[t4] = Ft);
          }, t3.prototype.xuo = function(t4) {
            this.Auo(t4.range());
          }, t3.prototype.Auo = function(t4) {
            var n3, e3 = this.xl;
            for (n3 = 0; n3 < t4.rowCount; n3++) e3[t4.row + n3] = Ft, this.KSt(t4.row + n3);
          }, t3.prototype.addFromDataSource = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, c2, f2, l2, h2, d2, v2, g2, m2;
            if (i3 || W(ge().Exp_TableDataSourceNullError), s.$$) return l2 = (f2 = this).Mf, "string" == typeof i3 && (h2 = null === (c2 = null === (u2 = null === (a2 = null == l2 ? void 0 : l2.parent) || void 0 === a2 ? void 0 : a2.dataManager()) || void 0 === u2 ? void 0 : u2.tables) || void 0 === c2 ? void 0 : c2[i3], C(h2) ? W(ge().Exp_TableDataSourceNullError) : i3 = h2), d2 = i3 && !(0, p.isDMView)(i3) && wi(i3), v2 = function() {
              var a3, u3, c3, h3;
              l2.suspendPaint(), $(l2), (a3 = new s.$$()).bind(i3, l2.Ut.G8), u3 = a3.getRowCount() + 1, c3 = a3.getColumnCount();
              try {
                h3 = f2.add(t4, n3, e3, u3, c3, r2, o2);
              } catch (t5) {
                throw tt(l2), l2.resumePaint(), t5;
              }
              return d2 && h3.RIr(i3), h3.D3(a3), d2 && h3.cGr(i3), l2.clearPendingChanges(), tt(l2), l2.resumePaint(), h3;
            }, g2 = [], d2 && (i3 = Bi(i3, Ai(t4), g2), o2 && o2.showResizeHandle && (o2 = _e(_e({}, o2), { showResizeHandle: false })), !i3.XLt()) ? (m2 = function() {
              return i3.TUr(), Pi(i3), v2();
            }, i3.getTable().fetch().then(m2).catch((function() {
              i3.NAr = function() {
                delete i3.NAr, m2();
              };
            }))) : v2();
          }, t3.prototype.find = function(t4, n3) {
            return this.Hq(t4, n3);
          }, t3.prototype.Hq = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2 = this, s2 = u2.U3.QP();
            for (true === e3 && u2.zB && (s2 = s2.concat([u2.zB])), i3 = s2.length, o2 = 0; o2 < i3; o2++) if ((a2 = (r2 = s2[o2]).range()).row <= t4 && t4 < a2.row + nt(a2) && a2.col <= n3 && n3 < a2.col + et(a2)) return r2;
            return Lt;
          }, t3.prototype.findByName = function(t4) {
            return this._bt(t4);
          }, t3.prototype._bt = function(t4, n3) {
            var e3, i3, r2, o2 = this, a2 = o2.U3.QP();
            for (true === n3 && o2.zB && (a2 = a2.concat([o2.zB])), e3 = a2.length, r2 = 0; r2 < e3; r2++) if ((i3 = a2[r2]).name().toLowerCase() === t4.toLowerCase()) return i3;
            return Lt;
          }, t3.prototype.lEr = function(t4) {
            return this.U3.QP().find((function(n3) {
              return n3.jKe() === t4;
            }));
          }, t3.prototype.pP = function(t4, n3, e3, r2) {
            var o2, a2, u2 = this.U3, s2 = u2.length, c2 = (0, i2.Ec)(t4, e3, n3, r2), f2 = [];
            for (a2 = 0; a2 < s2; a2++) o2 = u2.get(a2), c2.containsRange(o2.range()) && f2.push(o2);
            return f2;
          }, t3.prototype.AB = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this.U3, u2 = a2.length, s2 = [];
            for (o2 = 0; o2 < u2; o2++) (r2 = a2.get(o2)).range().intersect(t4, n3, e3, i3) && s2.push(r2);
            return s2;
          }, t3.prototype.Uue = function(t4) {
            var n3, e3, i3 = this.U3, r2 = i3.length, o2 = t4.row, a2 = t4.col, u2 = t4.rowCount, s2 = t4.colCount;
            for (e3 = 0; e3 < r2; e3++) if ((n3 = i3.get(e3)).range().intersect(o2, a2, u2, s2)) return n3;
          }, t3.prototype.Dy = function() {
            var t4 = this, n3 = t4.Mf, e3 = t4.find(n3.ui, n3.ci);
            if (e3) return n3.j1(new i2.Range(-1, e3.iw, -1, e3.Tx));
          }, t3.prototype.add = function(t4, n3, e3, i3, r2, o2, a2) {
            return this._Qt(t4, n3, e3, i3, r2, o2, a2);
          }, t3.prototype._Qt = function(t4, n3, e3, i3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf, g2 = p2.parent;
            return null === (s2 = p2.suspendCalcService) || void 0 === s2 || s2.call(p2), v2.jTt(p2, t4, n3, e3, i3, r2, true), b(o2) ? h2 = o2 : g2 && (h2 = g2.defaultTableTheme() && g2.defaultTableTheme().name()), d2 = v2.GM(t4, n3, e3, i3, r2, a2), d2 = v2.WB(d2, Ft, Ft, u2, h2), null === (f2 = null === (c2 = p2.qgt) || void 0 === c2 ? void 0 : c2.t8) || void 0 === f2 || f2.Fgt(n3, e3, i3, r2), null === (l2 = p2.resumeCalcService) || void 0 === l2 || l2.call(p2), d2;
          }, t3.prototype.WB = function(t4, n3, e3, i3, r2) {
            var o2, a2;
            if (t4) return (o2 = this).findByName(t4.name()) && W(ge().Exp_TableHasSameNameError), rt(t4.name(), o2) && W(ge().Exp_TableHasExistNameInWorkbookError), (a2 = o2.Mf).suspendPaint(), o2.REr(t4, r2, a2), !n3 && a2.$Dr({ type: "addTable", table: t4 }), t4.mTt || t4.qSt(), !n3 && t4.showHeader() && t4.a5t(Ft, Ft, e3, i3), !n3 && t4.showFooter() && t4.l5t(), o2.OTt(t4), a2.resumePaint(), t4;
          }, t3.prototype.REr = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2 = this;
            null === (o2 = null === (r2 = null === (i3 = c2.Mf) || void 0 === i3 ? void 0 : i3.parent) || void 0 === r2 ? void 0 : r2.suspendOp) || void 0 === o2 || o2.call(r2), t4.Sg(c2), n3 && t4.style(n3), e3 && e3.Ut.DTt([], [t4], 1), c2.U3.push(t4), null === (s2 = null === (u2 = null === (a2 = c2.Mf) || void 0 === a2 ? void 0 : a2.parent) || void 0 === u2 ? void 0 : u2.resumeOp) || void 0 === s2 || s2.call(u2);
          }, t3.prototype.GM = function(t4, n3, e3, i3, r2, o2) {
            return new Te(t4, n3, e3, i3, r2, "medium2", o2);
          }, t3.prototype.convertFromDataTable = function(t4) {
            return this.Ouo(t4);
          }, t3.prototype.Ouo = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2;
            if (void 0 === n3 && (n3 = true), e3 = this, i3 = yt(t4) ? t4 : (null == t4 ? void 0 : t4.name()) || "", (t4 = e3.findByName(i3)) && t4.NTr()) {
              o2 = (r2 = t4.dataRange()).row, a2 = r2.col, u2 = r2.rowCount, s2 = t4.BSt, c2 = e3.Mf;
              try {
                if (c2 && c2.Ut.Qao(t4, true), wt(c2), f2 = {}, n3) for (l2 = a2, h2 = a2 + s2.length; l2 < h2; l2++) for (d2 = f2[l2] = [], v2 = o2, p2 = o2 + u2; v2 < p2; v2++) d2[v2] = t4.Sl(v2, l2, false).y4;
                for ((m2 = (g2 = t4.rowFilter()) && g2.isFiltered()) && g2.Wao(), t4.rkr(false), t4.POt = Lt, b2 = 0, y2 = s2.length; b2 < y2; b2++) (w2 = s2[b2]).dataField(Lt);
                if ((M2 = t4.fuo() ? t4.getSlicerData() : Lt) && (t4.LSt = Lt), n3) for (l2 = a2, C2 = a2 + s2.length; l2 < C2; l2++) for (d2 = f2[l2], T2 = (S2 = s2[l2 - a2]).dataAreaFormula(), x2 = S2.x5t() || T2, v2 = o2, p2 = o2 + u2; v2 < p2; v2++) x2 ? Q(c2, v2, l2, x2, T2) : c2.setValue(v2, l2, d2[v2], Ft, true);
                m2 && g2.Mke(true, true), M2 && (t4.LSt = M2, Hi(c2, t4));
              } finally {
                Mt(c2);
              }
            }
            return t4;
          }, t3.prototype.DK = function(t4) {
            var n3, e3 = this, i3 = e3.U3.indexOf(t4);
            return i3 > -1 ? ((n3 = e3.Mf) && n3.Ut.DTt([t4], [], 2), e3.U3.splice(i3, 1), e3.RTt([t4], false), null == n3 || n3.$Dr({ type: "removeTable", tables: [t4] }), t4) : Lt;
          }, t3.prototype.remove = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2 = this;
            if (yt(t4) && (t4 = S2.findByName(t4)), t4 && (n3 = n3 || 0, t4.s5t(), t4 = S2.DK(t4))) {
              o2 = t4.range(), a2 = S2.Mf;
              try {
                if (J(a2), u2 = o2.row, s2 = o2.row + nt(o2), c2 = o2.col, f2 = o2.col + et(o2), l2 = void 0, h2 = void 0, d2 = t4.showHeader(), v2 = t4.headerIndex(), 1 & ~n3) for (l2 = u2; l2 < s2; l2++) for (h2 = c2; h2 < f2; h2++) Q(a2, l2, h2, Lt), K(a2, l2, h2, Lt);
                else if (t4.QL()) {
                  if (d2) for (l2 = v2, h2 = c2; h2 < f2; h2++) a2.setValue(l2, h2, t4.getColumnName(h2 - o2.col));
                  for (m2 = (g2 = (p2 = t4.dataRange()).row) + nt(p2), b2 = void 0, y2 = void 0, w2 = void 0, l2 = g2; l2 < m2; l2++) for (h2 = c2; h2 < f2; h2++) (y2 = t4.BSt[mt(t4, h2)]) && (w2 = (b2 = t4.ftt(gt(t4, l2)))[y2.dataField()], C(w2) || a2.setValue(l2, h2, w2));
                } else if (d2) for (l2 = v2, h2 = c2; h2 < f2; h2++) a2.setValue(l2, h2, t4.getColumnName(h2 - o2.col));
                if (!(2 & ~n3)) for (l2 = u2; l2 < s2; l2++) for (h2 = c2; h2 < f2; h2++) M2 = a2.Z_(l2, h2) || new i2.Style(), t4.h5(l2, h2, M2), a2.setStyle(l2, h2, M2);
              } finally {
                X(a2);
              }
              t4.cL(2), t4.NTr() && C(null === (r2 = null === (e3 = S2.Mf) || void 0 === e3 ? void 0 : e3.Ut) || void 0 === r2 ? void 0 : r2.G8) && t4.rkr(true);
            }
            return t4;
          }, t3.prototype.convertToDataTable = function(t4) {
            return this.Jao(t4);
          }, t3.prototype.Jao = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this;
            if (n3 = yt(t4) ? t4 : (null == t4 ? void 0 : t4.name()) || "", (t4 = a2.findByName(n3)) && !t4.isBinding() && (e3 = t4.BSt)) {
              i3 = a2.Mf, r2 = t4.name(), o2 = a2.yao(t4);
              try {
                wt(i3), a2.wao(t4), a2.VAr(o2, t4, r2);
              } finally {
                Mt(i3);
              }
            }
            return t4;
          }, t3.prototype.yao = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2 = this, c2 = t4.BSt, f2 = s2.Mf, l2 = t4.dataRange(), h2 = l2.col, d2 = l2.row, v2 = t4.dataRange().rowCount, p2 = {};
            for (e3 = 0; e3 < c2.length; e3++) for (i3 = p2[e3] = [], r2 = 0, o2 = v2; r2 < o2; r2++) i3[r2] = f2.getValue(r2 + d2, e3 + h2);
            return (n3 = {})[a2 = t4.name()] = { dataRange: { row: 0, col: 0 }, data: p2 }, u2 = n3;
          }, t3.prototype.wao = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this;
            if (n3 = n3 || i2.StorageType.data) {
              e3 = t4.dataRange(), r2 = h2.Mf;
              try {
                if (wt(r2), o2 = e3.row, a2 = e3.row + nt(e3), u2 = e3.col, s2 = e3.col + et(e3), c2 = void 0, f2 = void 0, l2 = n3 & i2.StorageType.data) for (c2 = o2; c2 < a2; c2++) for (f2 = u2; f2 < s2; f2++) r2.getFormula(c2, f2) && Q(r2, c2, f2, Lt), r2.getValue(c2, f2) && K(r2, c2, f2, Lt, Ft, true);
              } finally {
                Mt(r2);
              }
            }
          }, t3.prototype.Xao = function(t4) {
            var n3, e3 = t4.rowFilter();
            if (e3 && t4.NTr() && (e3.Kao(), e3.GAr(t4), e3.aao(), t4.N5t())) {
              n3 = t4.Mf;
              try {
                J(n3), t4.getSlicerData().c5(t4.z3()), Hi(n3, t4);
              } finally {
                X(n3);
              }
            }
          }, t3.prototype.move = function(t4, n3, e3) {
            var i3, r2, o2, a2 = this, u2 = a2.Mf;
            if (yt(t4) && (t4 = a2.findByName(t4)), t4 && n3 >= 0 && e3 >= 0 && (i3 = t4.range(), 0 === (o2 = (r2 = a2.AB(n3, e3, nt(i3), et(i3))).length) || 1 === o2 && r2[0] === t4)) {
              J(u2);
              try {
                t4.G5t(n3, e3);
              } finally {
                X(u2);
              }
            }
          }, t3.prototype.resize = function(t4, n3) {
            var e3, i3 = this;
            (t4 = i3.HIr(t4)) && t4.NTr() || (3 === (e3 = arguments).length ? i3.K5t(t4, e3[1], e3[2]) : i3.K5t(t4, n3));
          }, t3.prototype.allowResize = function(t4) {
            return !!t4 && !t4.NTr();
          }, t3.prototype.HIr = function(t4) {
            var n3 = this;
            return yt(t4) && (t4 = n3.findByName(t4)), t4;
          }, t3.prototype.K5t = function(t4, n3, e3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf;
            if ((t4 = v2.HIr(t4)) && (r2 = t4.range(), o2 = t4.dataRange(), u2 = n3, 3 === (a2 = arguments).length && (u2 = (0, i2.Ec)(r2.row, r2.col, a2[1], e3)), u2 && (s2 = nt(u2), c2 = et(u2), s2 >= 0 && c2 >= 0 && (f2 = v2.AB(u2.row, u2.col, s2, c2)).length <= 1))) {
              wt(p2);
              try {
                t4.K5t(u2), t4.QL() || (l2 = p2.conditionalFormats, h2 = p2.b8, d2 = u2.rowCount - r2.rowCount, l2 && l2.qJ(r2, o2, d2), h2 && h2.qJ(r2, o2, d2));
              } finally {
                Mt(p2);
              }
            }
          }, t3.prototype.all = function() {
            return this.U3.QP();
          }, t3.prototype.$St = function(t4) {
            var n3, e3 = t4 || this.U3.QP(), i3 = e3.length;
            for (n3 = 0; n3 < i3; n3++) e3[n3].clearPendingChanges();
          }, t3.prototype.Yj = function(t4, n3, e3, i3) {
            var r2, o2, a2 = [], u2 = this.U3, s2 = u2.length;
            for (r2 = 0; r2 < s2; r2++) (o2 = u2.get(r2)).Ky >= t4 && o2.iw >= n3 && o2.Ky + o2.Sx <= t4 + e3 && o2.iw + o2.Tx <= n3 + i3 && a2.push(o2);
            return a2;
          }, t3.prototype.Zj = function(t4, n3, e3, i3) {
            var r2 = this, o2 = r2.AB(t4, n3, e3, i3), a2 = r2.Yj(t4, n3, e3, i3), u2 = [];
            return a2.length > 0 ? o2.forEach((function(t5) {
              -1 === a2.indexOf(t5) && u2.push(t5);
            })) : u2 = o2, u2;
          }, t3.prototype.Wj = function(t4, n3, e3) {
            var i3, r2, o2, a2 = t4.length;
            for (r2 = 0; r2 < a2; r2++) if ((o2 = (i3 = t4[r2]).range()).row <= n3 && n3 < o2.row + nt(o2) && (e3 < 0 || o2.col <= e3 && e3 < o2.col + et(o2))) return true;
            return false;
          }, t3.prototype.checkCanAddTable = function(t4, n3, e3, i3, r2, o2, a2) {
            return this.jTt(t4, n3, e3, i3, r2, o2, a2);
          }, t3.prototype.jTt = function(t4, n3, e3, r2, o2, u2, s2) {
            var c2, f2, l2, h2;
            return n3 ? ot(n3) ? e3 < 0 || o2 < 1 || e3 + o2 > t4.getRowCount() ? (s2 && W(ge().Exp_TableInvalidRow), false) : r2 < 0 || u2 < 1 || r2 + u2 > t4.getColumnCount() ? (s2 && W(ge().Exp_TableInvalidColumn), false) : (c2 = t4.tables).Pl(e3, r2, o2, u2) ? (s2 && W(ge().Exp_TableIntersectError), false) : c2.findByName(n3) ? (s2 && W(ge().Exp_TableHasSameNameError), false) : rt(n3, c2) ? (s2 && W(ge().Exp_TableHasExistNameInWorkbookError), false) : Vi(t4, new i2.Range(e3, r2, o2, u2)) ? (s2 && W(ge().Exp_TableRangeHasFilterError), false) : (l2 = (f2 = a && t4.iT(e3, r2, o2, u2)) && f2.ranges, h2 = true, l2 && w(f2, (function(t5, n4) {
              if (nt(n4) > 1 || et(n4) > 1) return s2 && W(ge().Exp_ArrayFormulaTable), h2 = false, false;
            })), h2) : (s2 && W(ge().Exp_TableNameInvalid), false) : (s2 && W(ge().Exp_TableEmptyNameError), false);
          }, t3.prototype.WI = function(t4, n3, e3, i3) {
            var r2, o2, a2 = [], u2 = this.U3;
            for (r2 = 0; r2 < u2.length; r2++) (o2 = u2.get(r2)).Ky >= t4 && o2.iw >= n3 && o2.Ky + o2.Sx <= t4 + e3 && o2.iw + o2.Tx <= n3 + i3 && a2.push(o2.name());
            return a2;
          }, t3.prototype.oSt = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2 = this.all();
            if (c2) {
              for (o2 = (0, i2.Ec)(t4, n3, e3, r2), a2 = c2.length, u2 = void 0, s2 = 0; s2 < a2; s2++) if (u2 = c2[s2].range(), o2.intersect(u2.row, u2.col, nt(u2), et(u2)) && !o2.containsRange(u2)) return true;
            }
            return false;
          }, t3.prototype.Pl = function(t4, n3, e3, i3) {
            var r2, o2, a2 = this.U3, u2 = a2.length;
            for (o2 = 0; o2 < u2; o2++) if ((r2 = a2.get(o2)).range().intersect(t4, n3, e3, i3)) return true;
            return false;
          }, t3.prototype._getTable = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = t4.tables.all(), c2 = s2.length, f2 = [];
            for (a2 = 0; a2 < c2; a2++) (u2 = (o2 = s2[a2]).range()).row >= n3 && u2.col >= e3 && u2.row + u2.rowCount <= n3 + i3 && u2.colCount + u2.col <= e3 + r2 && f2.push({ table: o2, index: a2 });
            return f2;
          }, t3.prototype.mx = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2 = e3.tables.all(), v2 = d2.length;
            if (!C(n3) && (a2 = i3.row - n3.row, u2 = i3.col - n3.col, 0 !== (s2 = this._getTable(t4, n3.row, n3.col, n3.rowCount, n3.colCount)).length)) {
              for (c2 = 0; c2 < v2; c2++) for (o2 = d2[c2], f2 = 0; f2 < s2.length; f2++) if (l2 = s2[f2], (!r2 || c2 !== l2.index) && (h2 = l2.table.range(), o2.range().intersect(h2.row + a2, h2.col + u2, h2.rowCount, h2.colCount))) return e3.jT(6, ge().Exp_TableIntersectError), true;
            }
            return false;
          }, t3.prototype.t5t = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.U3;
            for (e3 = 0, i3 = o2.length; e3 < i3; e3++) o2.get(e3).t5t(t4, n3);
            r2.Mf.filterRowsVisibleInfo.rE(t4, n3);
          }, t3.prototype.JO = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.U3, b2 = [];
            for (e3 = 0, r2 = m2.length; e3 < r2; e3++) a2 = (o2 = m2.get(e3)).z3(), s2 = (u2 = o2.cue && !(o2.jO && 1 === o2.Sx)) ? t4 - 1 : t4, x(b2, a2) ? o2.JO(s2, n3, true, true) : (c2 = o2.JO(s2, n3, u2, Ft, o2.cue)) && b2.push(a2);
            f2 = g2.Mf;
            try {
              for (J(f2), l2 = void 0, h2 = void 0, e3 = 0, r2 = m2.length; e3 < r2; e3++) l2 = (o2 = m2.get(e3)).pTt(), h2 = o2.dataRange(), l2 > 0 && l2 !== nt(h2) && (d2 = l2, o2.showHeader() && (d2 += 1), o2.showFooter() && (d2 += 1), v2 = o2.range(), p2 = (0, i2.Ec)(v2.row, v2.col, d2, et(h2)), o2.K5t(p2, true));
            } finally {
              X(f2);
            }
          }, t3.prototype.eKr = function() {
            this.U3.QP().forEach((function(t4) {
              var n3;
              null === (n3 = t4.rowFilter()) || void 0 === n3 || n3.Mke(true);
            }));
          }, t3.prototype.ssr = function() {
            var t4, n3;
            null === (n3 = null === (t4 = this.Mf) || void 0 === t4 ? void 0 : t4.qgt) || void 0 === n3 || n3.ssr();
          }, t3.prototype.bsr = function(t4, n3, e3, i3) {
            var r2, o2, a2 = null === (o2 = null === (r2 = this.Mf) || void 0 === r2 ? void 0 : r2.qgt) || void 0 === o2 ? void 0 : o2.asr();
            a2 && a2.o_t(t4, n3, e3, i3);
          }, t3.prototype.tUr = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.U3, c2 = [];
            try {
              for (J(u2), n3 = void 0, e3 = void 0, i3 = 0, r2 = s2.length; i3 < r2; i3++) n3 = (o2 = s2.get(i3)).pTt(), e3 = o2.dataRange(), o2.NTr() && n3 > 0 && n3 !== nt(e3) && (t4 ? (t4.Uuo = true, t4 !== o2 && t4.getBindingSource() === o2.getBindingSource() && (o2.Uuo = true, c2.push(o2))) : (o2.Uuo = true, c2.push(o2)));
              c2.forEach((function(t5) {
                t5.Woe(t5.H3);
              }));
            } finally {
              c2.forEach((function(t5) {
                delete t5.Uuo;
              })), t4 && delete t4.Uuo, X(u2);
            }
          }, t3.prototype.Fuo = function() {
            var t4 = this, n3 = t4.Huo;
            n3 && (delete t4.Huo, t4.tUr(t4.findByName(n3)));
          }, t3.prototype.msr = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.U3, g2 = [];
            for (e3 = 0, r2 = p2.length; e3 < r2; e3++) a2 = (o2 = p2.get(e3)).z3(), o2.Uuo && g2.push(a2), x(g2, a2) ? o2.msr(t4, n3, true) : (u2 = o2.msr(t4, n3, false)) && g2.push(a2);
            v2.Mf.filterRowsVisibleInfo.rE(t4, n3), s2 = v2.Mf, v2.ssr(), v2.bsr(t4, 0, s2.getRowCount() - t4, s2.getColumnCount());
            try {
              for (J(s2), c2 = void 0, f2 = void 0, e3 = 0, r2 = p2.length; e3 < r2; e3++) c2 = (o2 = p2.get(e3)).pTt(), f2 = o2.dataRange(), c2 > 0 && c2 !== nt(f2) && !o2.Uuo && (l2 = c2, o2.showHeader() && (l2 += 1), o2.showFooter() && (l2 += 1), h2 = o2.range(), d2 = (0, i2.Ec)(h2.row, h2.col, l2, et(f2)), o2.K5t(d2, true));
            } finally {
              X(s2);
            }
          }, t3.prototype.hsr = function(t4, n3) {
            var e3, i3, r2 = this.U3, o2 = r2.length;
            for (i3 = 0; i3 < o2; i3++) (e3 = r2.get(i3)).hsr(t4, n3, Ft, Ft, Ft, true);
            this.ssr();
          }, t3.prototype.F5e = function(t4, n3) {
            var e3 = this, i3 = e3.Mf;
            e3.U3.update(t4), n3 && n3.length && (null == i3 || i3.$Dr({ type: "removeTable", tables: n3 }));
          }, t3.prototype.xP = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.U3, b2 = [], y2 = [], w2 = [];
            for (e3 = 0, r2 = m2.length; e3 < r2; e3++) a2 = (o2 = m2.get(e3)).z3(), (s2 = t4 <= (u2 = o2.range()).row && u2.row + nt(u2) <= t4 + n3) ? w2.push(o2) : (o2.Uuo && b2.push(a2), x(b2, a2) ? o2.xP(t4, n3, { ignoreUpdateDataSource: true }) : (o2.QL() && o2.x4t(t4, n3, bt(true)), (c2 = o2.xP(t4, n3)) && b2.push(a2)), y2.push(o2));
            g2.Mf.filterRowsVisibleInfo.aE(t4, n3), g2.Mf.Ut.DTt(w2, [], 2), g2.F5e(y2, w2), g2.RTt(w2, true), f2 = g2.Mf;
            try {
              for (J(f2), m2 = g2.U3, l2 = void 0, h2 = void 0, e3 = 0, r2 = m2.length; e3 < r2; e3++) l2 = (o2 = m2.get(e3)).pTt(), h2 = o2.dataRange(), l2 > 0 && l2 !== nt(h2) && !o2.Uuo && (d2 = l2, o2.showHeader() && (d2 += 1), o2.showFooter() && (d2 += 1), v2 = o2.range(), p2 = (0, i2.Ec)(v2.row, v2.col, d2, et(h2)), o2.K5t(p2, true));
            } finally {
              X(f2);
            }
          }, t3.prototype.dsr = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = g2.U3, b2 = [], y2 = [], w2 = [];
            for (e3 = 0, r2 = m2.length; e3 < r2; e3++) a2 = (o2 = m2.get(e3)).z3(), (s2 = t4 <= (u2 = o2.range()).row && u2.row + nt(u2) <= t4 + n3) ? w2.push(o2) : (x(b2, a2) ? o2.dsr(t4, n3, { ignoreUpdateDataSource: true, fromSheetRemoved: true }) : (o2.QL() && o2.x4t(t4, n3, bt(true)), (c2 = o2.dsr(t4, n3, { fromSheetRemoved: true })) && b2.push(a2)), y2.push(o2));
            g2.Mf.filterRowsVisibleInfo.aE(t4, n3), g2.Mf.Ut.DTt(w2, [], 2), g2.F5e(y2, w2), g2.RTt(w2, true), f2 = g2.Mf, g2.ssr(), g2.bsr(t4, 0, f2.getRowCount() + n3 - t4, f2.getColumnCount());
            try {
              for (J(f2), m2 = g2.U3, l2 = void 0, h2 = void 0, e3 = 0, r2 = m2.length; e3 < r2; e3++) l2 = (o2 = m2.get(e3)).pTt(), h2 = o2.dataRange(), l2 > 0 && l2 !== nt(h2) && (d2 = l2, o2.showHeader() && (d2 += 1), o2.showFooter() && (d2 += 1), v2 = o2.range(), p2 = (0, i2.Ec)(v2.row, v2.col, d2, et(h2)), o2.K5t(p2, true));
            } finally {
              X(f2);
            }
          }, t3.prototype.vsr = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.U3, s2 = [], c2 = [], f2 = u2.length;
            for (i3 = 0; i3 < f2; i3++) (o2 = t4 <= (r2 = (e3 = u2.get(i3)).range()).col && r2.col + et(r2) <= t4 + n3) ? c2.push(e3) : (e3.vsr(t4, n3), s2.push(e3));
            a2.Mf.Ut.DTt(c2, [], 2), a2.F5e(s2, c2), a2.RTt(c2, true);
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.U3, s2 = [], c2 = [], f2 = u2.length;
            for (i3 = 0; i3 < f2; i3++) (o2 = t4 <= (r2 = (e3 = u2.get(i3)).range()).col && r2.col + et(r2) <= t4 + n3) ? c2.push(e3) : (e3.NP(t4, n3), s2.push(e3));
            a2.Mf.Ut.DTt(c2, [], 2), a2.F5e(s2, c2), a2.RTt(c2, true);
          }, t3.prototype.d5 = function(t4, n3, e3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = (0, i2.Ec)(t4, n3, e3, r2), g2 = [], m2 = v2.Mf, b2 = $i(m2);
            if (null == b2 || b2.startRecordOp(), !(1 & ~o2)) {
              for (f2 = [], s2 = (u2 = v2.U3).length, l2 = 0; l2 < s2; l2++) c2 = u2.get(l2), p2.containsRange(c2.range()) ? g2.push(c2) : f2.push(c2);
              for (s2 = f2.length, l2 = 0; l2 < s2; l2++) (c2 = f2[l2]).d5(t4, n3, e3, r2);
              m2 && m2.Ut.DTt(g2, [], 2), v2.F5e(f2, g2);
            }
            if (!(2 & ~o2)) for (s2 = (u2 = v2.U3).length, l2 = 0; l2 < s2; l2++) c2 = u2.get(l2), p2.containsRange(c2.range()) && (m2 && (h2 = null !== (a2 = c2.style().name()) && void 0 !== a2 ? a2 : c2.style(), m2.Ut.YSt(c2, "style", h2)), c2.style(Lt));
            return d2 = null == b2 ? void 0 : b2.endRecordOp(), v2.RTt(g2, true), null == b2 || b2.submitOp(d2), g2;
          }, t3.prototype.RTt = function(t4, n3) {
            if (t4 && 0 !== t4.length) {
              var e3 = this.Mf;
              i2.GC$.each(t4, (function(t5, n4) {
                n4.N5t() && n4.getSlicerData().onTableRemoved(n4), n4.g5t() && (e3 && e3.Ut.YSt(n4, Nn, n4.b5t()), n4.OSt = []);
              })), a && Ue(this.Mf, t4, n3);
            }
          }, t3.prototype.OTt = function(t4) {
            t4 && t4.N5t() && t4.getSlicerData().onTableAdded(t4);
          }, t3.prototype.BTt = function(t4) {
            for (var n3 = 1, e3 = this, i3 = t4, r2 = e3.LTt(); !this.FTt(i3, r2); ) i3 = t4 + (t4.length > 3 ? "" : "_") + n3, n3++;
            return i3;
          }, t3.prototype.LTt = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = [], s2 = this.Mf.parent, c2 = s2.sheets;
            for (n3 = 0, e3 = c2; n3 < e3.length; n3++) for (r2 = 0, o2 = t4 = (i3 = e3[n3]).tables.all(); r2 < o2.length; r2++) a2 = o2[r2], u2.push(a2);
            return u2;
          }, t3.prototype.FTt = function(t4, n3) {
            var e3, i3, r2;
            for (e3 = 0, i3 = n3; e3 < i3.length; e3++) if ((r2 = i3[e3]).name().toLowerCase() === t4.toLowerCase()) return false;
            return true;
          }, t3.prototype.Sl = function(t4, n3, e3) {
            var i3 = this, r2 = false, o2 = Lt;
            return (e3 = e3 || i3.find(t4, n3)) && (e3.showHeader() && t4 === e3.headerIndex() ? (o2 = e3.q5t(n3), C(o2) || (o2 = y(o2)), r2 = true) : (r2 = (o2 = e3.Sl(t4, n3)).e5t, o2 = o2.y4)), { e5t: r2, y4: o2 };
          }, t3.prototype.Kbt = function(t4, n3, e3, i3) {
            var r2, o2 = false, a2 = true;
            return (i3 = i3 || this.find(t4, n3)) && true !== i3.eTt && (i3.showHeader() && t4 === i3.headerIndex() ? i3.IUr(n3, e3) : i3.showFooter() && t4 === i3.footerIndex() ? i3.d5t(n3, e3) : o2 = i3.Kbt(t4, n3, e3)), o2 || false;
          }, t3.prototype.pMt = function(t4, n3, e3, i3, r2, o2) {
            var u2, s2, c2, f2 = this.find(t4, n3);
            if (a && f2) {
              if (e3 > 1 || i3 > 1) return this.Mf.jT(0, ge().Exp_ArrayFormulaTable), false;
              if (u2 = function() {
                return Oi(f2, n3);
              }, s2 = function() {
                return 1 === e3 && 1 === i3 && !C(r2) && f2.NTr();
              }, f2.showHeader() && t4 === f2.headerIndex() && r2) return s2() && (c2 = f2.nTt(y(r2), n3 - f2.iw), f2.$5t(n3, c2), f2.setColumnDataFormula(n3 - f2.iw, r2)), false;
              if (!f2.eTt && f2.showFooter() && t4 === f2.footerIndex()) C(r2) || f2.d5t(n3, Lt), f2.m5t(n3 - f2.iw, r2, o2);
              else if (s2() && f2.mUr(t4)) return u2() || f2.setColumnDataFormula(n3 - f2.iw, r2), false;
            }
            return true;
          }, t3.prototype.XSt = function() {
            var t4, n3, e3, i3 = this.all();
            for (t4 = 0, n3 = i3.length; t4 < n3; t4++) (e3 = i3[t4]).bindingPath() && (e3.H3 = Lt);
          }, t3.prototype.KB = function(t4, n3) {
            var e3, i3, r2, o2, a2 = [], u2 = this;
            if (u2 && (i3 = u2.all())) for (o2 = i3.length - 1; o2 >= 0; o2--) r2 = i3[o2], t4.containsRange(r2.range()) && (null === (e3 = this.Mf) || void 0 === e3 ? void 0 : e3.EB) !== r2 && (n3 && (this.Mf && this.Mf.Ut.DTt([r2], [], 2), u2.U3.splice(o2, 1)), a2.push(r2));
            return a2;
          }, t3.prototype.JB = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = [];
            for ((v2.all().some((function(t5) {
              return t5.NTr();
            })) || t4.some((function(t5) {
              return t5.NTr();
            }))) && (t4 = t4.slice().reverse()), a2 = 0, u2 = t4.length; a2 < u2; a2++) s2 = t4[a2], c2 = void 0, f2 = void 0, o2 ? f2 = s2 : (c2 = s2.bindingPath() ? Ft : s2.z3(), (f2 = new Te()).Sg(v2), f2.fromJSON(Ht(Ut(s2.toJSON(Ft, Ft, true)))), f2.name(v2.BTt(f2.name())), p2.push(f2)), l2 = f2.range(), f2.rTt = true, f2.H5t(i3 + l2.row - n3, r2 + l2.col - e3), v2.WB(f2, o2), o2 ? ((h2 = f2.LSt) && (h2.Mf = v2.Mf, h2.SFe(), h2.refresh(), h2.onDataChanged()), this.bsr(f2.Ky, f2.iw, f2.Sx, f2.Tx)) : c2 && !f2.NTr() && f2.V3(c2), f2.rTt = false;
            for (a2 = 0; a2 < p2.length; a2++) (d2 = p2[a2]).formulaFromJSON(), !o2 && d2.ZAe(t4[a2].name());
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3, i3, r2 = this.U3, o2 = [];
            if (r2) for (e3 = 0; e3 < r2.length; e3++) i3 = t4 ? this.BTt(r2.get(e3).name()) : Ft, o2.push(r2.get(e3).toJSON(i3, n3));
            return 0 === o2.length ? Ft : o2;
          }, t3.prototype.wh = function(t4) {
            var n3, e3, r2, o2, a2, u2, s2, c2, f2;
            if (t4 && (n3 = t4.rels, r2 = (e3 = this.U3).length, n3 && r2 > 0)) {
              for (o2 = [], a2 = 0; a2 < r2; a2++) u2 = e3.get(a2), s2 = V(n3), c2 = i2.XFileConstants.Rr + s2, f2 = u2._id, n3.c_.push({ n_: i2.XFileConstants.Lr, Id: c2, Type: i2.RelationshipConstants.lc, Target: "../tables/" + i2.XFileConstants.du + f2 + "." + i2.XFileConstants.Cr }), o2.push({ n_: "tablePart", "r:id": c2 });
              t4.c_ || (t4.c_ = []), t4.c_.push({ n_: ae, count: r2, c_: o2 });
            }
          }, t3.prototype.fromJSON = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2;
            if (t4) for (this.U3.update([]), this.dl(), r2 = 0, o2 = t4.length; r2 < o2; r2++) a2 = t4[r2], (u2 = new Te()).Sg(this), this.U3.push(u2), u2.fromJSON(a2, n3, e3, i3);
          }, t3.prototype.yh = function(t4, n3, e3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = t4 && t4.c_, w2 = !i2.Util.ko(r2);
            if (y2 && n3) {
              for (o2 = this, (a2 = i2.Util.wo(r2, o2.Mf.parent && o2.Mf.parent.v2)) || o2.U3.update([]), o2.dl(), u2 = e3.ITr, s2 = e3.tables, c2 = e3.styleManager, f2 = [], l2 = 0, h2 = y2.length; l2 < h2; l2++) d2 = y2[l2][oe], (p2 = (v2 = z(n3.c_, d2)) && v2.Target) && (m2 = (g2 = s2[p2 = p2.split("/").pop().slice(0, -4)]).name, b2 = void 0, a2 && (b2 = o2.findByName(m2)), b2 || ((b2 = new Te(m2)).Sg(o2), o2.U3.push(b2)), b2.yh(g2, c2, r2, u2 && u2[p2]), o2.VAr(u2, b2, p2), f2.push(b2.range()), w2 && b2._5t(c2));
              i2.Util.Co(r2) && i2.Util.Ao(o2.Mf, f2, Ft, e3);
            }
          }, t3.prototype.VAr = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2 = this;
            if (t4 && !n3.NTr() && (i3 = t4[e3]) && (r2 = n3.BSt)) {
              for (o2 = n3.dataRange().rowCount, a2 = [], u2 = {}, c2 = {}, f2 = 0; f2 < r2.length; f2++) l2 = r2[f2], h2 = f2 + i3.dataRange.col, d2 = i3.data[h2], delete i3.data[h2], (v2 = l2.dataAreaFormula()) ? ("string" != typeof v2 && (v2 = l2.x5t()), (p2 = u2[a2.length] = d2.slice(i3.dataRange.row)).length < o2 && (p2.length = o2), a2.push(Ti(l2, v2, Lt))) : (g2 = Ci(l2), (m2 = i3.data[g2] = d2.slice(i3.dataRange.row)).length < o2 && (m2.length = o2), c2[g2] = xi(l2), a2.push(xi(l2)));
              if (b2 = i3.data, A2.Mf && A2.Mf.parent && (y2 = A2.Mf.parent.dataManager()) && (w2 = Ii(n3, A2.Mf), (M2 = y2.addTable(w2, { data: b2, schema: { type: "columnJson", columns: c2 } })).fetchSync(), C2 = M2.addView(w2, a2), n3.RIr(C2, u2), s.$$)) {
                for (n3.showResizeHandle() && n3.showResizeHandle(false), n3.T5t(C2, true), S2 = 0, T2 = r2.length; S2 < T2; S2++) Ri(x2 = (l2 = r2[S2]).name(), Ei(M2)(x2)) && (x2 = "=" + x2), x2 = ji(x2, r2), l2.dataField(l2.name());
                A2.Xao(n3);
              }
            }
          }, t3.prototype.containTableHeaderTotalRowForSheet = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this.Mf;
            if (h2 && (t4 = h2.getSelections(), e3 = void 0, i3 = void 0, r2 = void 0, (n3 = h2.tables) && t4)) {
              for (o2 = n3.U3, a2 = void 0, u2 = void 0, s2 = void 0, c2 = void 0, f2 = 0; f2 < t4.length; f2++) for (r2 = (i3 = (e3 = t4[f2]).row) + e3.rowCount - 1, l2 = 0; l2 < o2.length; l2++) if (u2 = (a2 = o2.get(l2)).range(), s2 = a2.headerIndex(), c2 = a2.footerIndex(), !e3.containsRange(u2) && (s2 >= i3 && s2 <= r2 || c2 >= i3 && c2 <= r2)) return true;
            }
            return false;
          }, t3.prototype.containTableHeaderTotalRow = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2 = this.Mf, f2 = false;
            if (c2 && (t4 = c2.getSelections(), e3 = void 0, i3 = void 0, (n3 = c2.tables) && t4)) {
              if (t4.length > 1) return f2;
              r2 = t4[0], a2 = void 0, u2 = void 0, s2 = void 0, (o2 = Dt(c2, r2)) && 1 === o2.length && (i3 = (e3 = r2.row) + r2.rowCount - 1, u2 = (a2 = o2[0]).headerIndex(), s2 = a2.footerIndex(), (u2 >= e3 && u2 <= i3 || s2 >= e3 && s2 <= i3) && (f2 = true));
            }
            return f2;
          }, t3.prototype.noRoomToInsertColumn = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this.Mf;
            return !!(s2 && (t4 = s2.getSelections(), (n3 = s2.tables) && t4 && 1 === t4.length && (i3 = (e3 = t4[0]).row, r2 = e3.col, o2 = e3.colCount, a2 = n3.find(i3, r2), u2 = s2.getColumnCount(3), a2 && a2.endColumn() + o2 >= u2)));
          }, t3.prototype.noRoomToInsertRow = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this.Mf;
            return !!(s2 && (t4 = s2.getSelections(), (n3 = s2.tables) && t4 && 1 === t4.length && (i3 = (e3 = t4[0]).row, r2 = e3.col, o2 = e3.rowCount, a2 = n3.find(i3, r2), u2 = s2.getRowCount(3), a2 && a2.endRow() + o2 >= u2)));
          }, t3.prototype.checkTableRow = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this.Mf;
            return !!(u2 && (t4 = u2.getSelections(), (n3 = u2.tables) && t4 && 1 === t4.length && (i3 = (e3 = t4[0]).row, r2 = e3.col, a2 = (o2 = n3.find(i3, r2)) && o2.range(), o2 && a2 && !o2.jO && !o2.oL && 1 === a2.rowCount)));
          }, t3.prototype.checkTableCol = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this.Mf;
            return !!(u2 && (t4 = u2.getSelections(), (n3 = u2.tables) && t4 && 1 === t4.length && (i3 = (e3 = t4[0]).row, r2 = e3.col, (a2 = (o2 = n3.find(i3, r2)) && o2.range()) && 1 === a2.colCount)));
          }, t3.prototype.isAcrossTables = function() {
            var t4, n3, e3, i3, r2 = this.Mf, o2 = false;
            if (r2 && (t4 = r2.getSelections(), (n3 = r2.tables) && t4)) {
              if (t4.length > 1) return o2;
              e3 = t4[0], (i3 = Dt(r2, e3)) && (o2 = i3.length > 1);
            }
            return o2;
          }, t3.prototype.isWholeTableCol = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2 = this.Mf, f2 = false;
            return c2 && (t4 = c2.getSelections(), (n3 = c2.tables) && t4 && (t4.length > 1 ? f2 = true : (e3 = t4[0], 1 === (i3 = Dt(c2, e3)).length && (o2 = (r2 = i3[0]).iw, a2 = r2.Tx, u2 = e3.col, s2 = e3.colCount, f2 = o2 === u2 && a2 === s2)))), f2;
          }, t3.prototype.containTableHeader = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this.Mf, c2 = false;
            if (s2 && (t4 = s2.getSelections(), e3 = void 0, i3 = void 0, (n3 = s2.tables) && t4)) {
              if (t4.length > 1) return c2;
              r2 = t4[0], (o2 = Dt(s2, r2)) && 1 === o2.length && (u2 = (a2 = o2[0]).headerIndex(), i3 = (e3 = r2.row) + r2.rowCount - 1, e3 <= u2 && i3 >= u2 && (c2 = true));
            }
            return c2;
          }, t3.prototype.eq = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2 = this.Mf, c2 = false;
            if (s2 && (t4 = s2.getSelections(), (n3 = s2.tables) && t4)) {
              if (e3 = s2.getActiveRowIndex(), i3 = s2.getActiveColumnIndex(), t4.length > 1 || !n3.find(e3, i3)) return c2;
              for (r2 = n3.U3, o2 = t4[0], a2 = void 0, u2 = 0; u2 < r2.length; u2++) a2 = r2.get(u2), o2 && o2.intersect(a2.Ky, a2.iw, a2.Sx, a2.Tx) && (c2 = true);
            }
            return c2;
          }, t3.prototype.uSt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = -1, s2 = this, c2 = s2.U3;
            if (c2) for (n3 = c2.length, e3 = void 0, i3 = void 0, r2 = void 0, o2 = void 0, a2 = 0; a2 < n3; a2++) e3 = c2.get(a2).range(), t4 && !e3.intersect(t4.row, t4.col, t4.rowCount, t4.colCount) || u2 < (o2 = (i3 = e3.row) + (r2 = e3.rowCount) - 1) && (u2 = o2);
            return u2;
          }, t3.prototype.sSt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = -1, s2 = this, c2 = s2.U3;
            if (c2) for (n3 = c2.length, e3 = void 0, i3 = void 0, r2 = void 0, o2 = void 0, a2 = 0; a2 < n3; a2++) e3 = c2.get(a2).range(), t4 && !e3.intersect(t4.row, t4.col, t4.rowCount, t4.colCount) || u2 < (o2 = (i3 = e3.col) + (r2 = e3.colCount) - 1) && (u2 = o2);
            return u2;
          }, t3.prototype.yx = function(t4, n3, e3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2 = this, N2 = k2.Mf, j2 = N2.isActualProtected(), D2 = N2.options.protectionOptions, _2 = false !== D2.allowSelectLockedCells, O2 = false !== D2.allowSelectUnlockedCells;
            if (!(j2 && (!(null == u2 ? void 0 : u2.needCheckProtectionWhenSheetProtected) || !_2 && !O2) || t4 && e3 && nr(t4, e3) || 0 === (s2 = k2.all()).length || (c2 = e3 && s2.some((function(t5) {
              return e3.equals(t5.range());
            }))))) for (u2 && (v2 = u2.shiftInfo, p2 = u2.applyDragFillAfterTableExpand, g2 = u2.backupTableResizedArgs, v2 && (f2 = v2.shiftCells, l2 = v2.isCopy, h2 = v2.isFirst, d2 = v2.isHeaderPaste)), m2 = n3.row, b2 = n3.col, y2 = n3.rowCount, w2 = n3.colCount, d2 && (-1 === m2 && (m2 = 0), -1 === b2 && (b2 = 0), -1 === y2 && (y2 = t4.getRowCount()), -1 === w2 && (w2 = t4.getColumnCount())), M2 = new i2.Range(m2, b2, y2, w2), T2 = 0, x2 = s2; T2 < x2.length; T2++) (C2 = x2[T2]).VSt && (S2 = C2.range(), A2 = e3 && e3.equals(S2), I2 = e3 && 0 !== k2.Mf.Ut.getSpans(e3, 3).length, f2 ? l2 && h2 && M2.col === S2.col && M2.colCount === S2.colCount && M2.row > S2.row && e3.col === S2.col && e3.colCount === S2.colCount && e3.row > S2.row && M2 && S2.contains(M2.row, M2.col, 1, M2.colCount) && e3 && S2.containsRange(e3) && (k2.PTt(C2, S2, M2), v2.ignoreFooterShiftIndex = C2.footerIndex()) : e3 && (A2 || I2) || (C2.TTt = o2, k2.GTt(C2, S2, M2, r2, a2, g2, p2), delete C2.TTt));
          }, t3.prototype.GTt = function(t4, n3, e3, r2, o2, a2, u2) {
            var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = this, k2 = I2.Mf, N2 = null, j2 = false, D2 = n3.row, O2 = n3.col, E2 = n3.rowCount, R2 = n3.colCount, L2 = D2 + E2 - 1, F2 = new i2.Range(D2, O2, E2, R2);
            if (t4.showFooter()) {
              if (s2 = new i2.Range(D2 + E2 - 1, O2, 1, R2), e3.row === s2.row && e3.col >= O2 && e3.col + e3.colCount <= O2 + R2) return;
              j2 = true, F2.rowCount--;
            }
            if (o2 && (c2 = t4.showHeader() ? E2 - 1 : E2, o2.push(new i2.Range(D2, O2, c2, R2))), f2 = e3.row, l2 = e3.col, h2 = e3.row + e3.rowCount - 1 - (j2 ? 1 : 0), d2 = e3.col + e3.colCount - 1, v2 = D2 + E2 - 1 - (j2 ? 1 : 0), p2 = O2 + R2 - 1, g2 = Ft, m2 = k2.getRowCount(), b2 = F2.contains(f2 - 1, l2) && !F2.contains(f2, l2), j2 || (b2 = b2 && d2 <= p2 && l2 >= O2), y2 = F2.contains(f2, l2 - 1) && !F2.contains(f2, l2) && h2 <= L2 && f2 >= n3.row, w2 = F2.contains(f2, l2) && !F2.contains(h2, d2)) {
              if (M2 = Gt(v2, h2) - D2 + 1, C2 = Gt(p2, d2) - O2 + 1, d2 > p2 && (S2 = vt(k2, new i2.Range(D2, p2 + 1, E2, d2 - p2))) && d2 > S2.col && (C2 = R2), N2 = new i2.Range(D2, O2, M2, C2), j2 && (N2.rowCount++, h2++, v2++), h2 > v2 && (g2 = vt(k2, new i2.Range(v2 + 1, O2, N2.row + N2.rowCount - 1, R2))), g2 && (T2 = h2 - g2.row + 1) > 0) {
                if (vt(k2, new i2.Range(m2 - Math.abs(T2), O2, Math.abs(T2), R2))) return void k2.jT(6, ge().Exp_TableAddRowNoEnoughRoom);
                true !== u2 && k2.moveTo(g2.row, O2, N2.row + N2.rowCount, O2, m2 - N2.row - N2.rowCount, R2, _);
              }
            } else if (b2 && !j2) {
              if (N2 = new i2.Range(f2, O2, e3.rowCount, R2), (x2 = vt(k2, N2, e3)) && !e3.containsRange(x2)) return;
            } else if (y2 && (N2 = new i2.Range(D2, l2, n3.rowCount, e3.colCount), (x2 = vt(k2, N2, e3)) && !e3.containsRange(x2))) return;
            if (b2 && !j2 && At(r2) && (t4.useFooterDropDownList(true), Ki(k2, t4), n3 = t4.range()), N2) {
              if (n3.containsRange(N2)) return;
              A2 = n3.union(N2), I2.UTt(t4, A2, a2, true, true);
            }
          }, t3.prototype.PTt = function(t4, n3, e3) {
            var r2, o2 = this, a2 = n3.row, u2 = n3.col, s2 = n3.rowCount, c2 = n3.colCount, f2 = new i2.Range(a2 + (t4.showHeader() ? 1 : 0), u2, s2 - (t4.showHeader() ? 1 : 0), c2);
            f2.contains(e3.row, e3.col, 1, e3.colCount) && (r2 = new i2.Range(a2, u2, s2 + e3.rowCount, c2), o2.UTt(t4, r2, Ft, Ft, true));
          }, t3.prototype.UTt = function(t4, n3, e3, i3, r2) {
            var o2 = this.Mf, a2 = o2.getParent();
            r2 && t4.NTr() && (t4.Mf.tables.Huo = t4.name()), a2 && a2.commandManager().execute({ cmd: En, sheetName: o2.name(), tableName: t4.name(), PIr: !(!r2 || !t4.NTr()) || Ft, resizeToRange: n3, backupTableResizedArgs: e3, ignoreEventSuspend: i3 });
          }, t3.prototype.HL = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = this, E2 = this.Mf, R2 = E2.options, L2 = E2.isActualProtected(), F2 = R2.protectionOptions, B2 = false !== F2.allowSelectLockedCells, P2 = false !== F2.allowSelectUnlockedCells;
            if (L2 && !B2 && !P2) return Lt;
            if (i3 = e3.col, r2 = e3.row, o2 = 2, a2 = 18, u2 = 18, s2 = 5, c2 = 10, f2 = 6, l2 = Me.TABLE_SELECT, h2 = Me.TABLE_CORNER_SELECT, d2 = Me.TABLE_COL_SELECT, v2 = Me.TABLE_ROW_SELECT, p2 = E2.getActiveRowIndex(), g2 = E2.getActiveColumnIndex(), -1 === e3.rowViewportIndex && -1 !== e3.colViewportIndex && (m2 = E2.getCellRect(r2, i3, e3.rowViewportIndex, e3.colViewportIndex), (b2 = O2.find(p2, g2)) instanceof Te && (y2 = E2.Tb - E2.frozenRowCount(), b2.showHeader() && p2 >= b2.Ky && p2 < b2.Ky + b2.Sx && g2 >= b2.iw && g2 < b2.iw + b2.Tx && b2.Ky < y2 && b2.Ky + b2.Sx > y2 && e3.col < b2.iw + b2.Tx && e3.col >= b2.iw))) {
              if (t4 > m2.x + s2 && t4 < m2.x + m2.width - u2 && n3 < m2.height - s2) {
                for (w2 = E2.getSelections(), M2 = 0; M2 < w2.length; M2++) if (!((C2 = w2[M2]).col === e3.col && 1 === C2.colCount && C2.row === b2.Ky && C2.rowCount === b2.Sx || C2.col === e3.col && 1 === C2.colCount && -1 === C2.row && C2.rowCount === E2.getRowCount())) return pt(b2, d2, r2, i3, L2, B2, P2);
              } else if (t4 > m2.x + u2) return pt(b2, "default", r2, i3, L2, B2, P2);
            }
            if (S2 = E2.getCellRect(r2, i3), O2.find(r2, i3) instanceof Te && -1 !== e3.colViewportIndex && -1 !== e3.rowViewportIndex) {
              if (T2 = false, b2 = O2.find(r2, i3), x2 = O2.find(p2, g2), w2 = E2.getSelections(), A2 = E2.options.rightToLeft, I2 = true, 1 === w2.length && (k2 = w2[0]).row <= r2 && k2.row + k2.rowCount > r2 && k2.col <= i3 && k2.col + k2.colCount > i3 && (I2 = false), b2 === x2 && (T2 = true), i3 === b2.iw && r2 === b2.Ky) {
                if (I2 && T2 && (t4 <= S2.x + o2 || n3 <= S2.y + o2)) return pt(b2, l2, r2, i3, L2, B2, P2);
                if ((!A2 && t4 > S2.x + o2 && t4 < S2.x + a2 || A2 && t4 < S2.x + S2.width - o2 && t4 > S2.x + S2.width - a2) && n3 > S2.y + o2 && n3 < S2.y + f2) return pt(b2, h2, r2, i3, L2, B2, P2);
                if (t4 > S2.x + a2 && n3 > S2.y + o2 && n3 < S2.y + f2) return pt(b2, d2, r2, i3, L2, B2, P2);
                if ((!A2 && t4 > S2.x + o2 && t4 < S2.x + a2 || A2 && t4 < S2.x + S2.width - o2 && t4 > S2.x + S2.width - a2) && n3 > S2.y + f2) return pt(b2, v2, r2, i3, L2, B2, P2);
              }
              if (i3 === b2.iw + b2.Tx - 1 && r2 === b2.Ky) {
                if (I2 && T2 && (t4 >= S2.x + E2.getColumnWidth(i3) - 2 || n3 <= S2.y + o2)) return pt(b2, l2, r2, i3, L2, B2, P2);
                if (t4 < S2.x + E2.getColumnWidth(i3) - 2 && n3 > S2.y + o2 && n3 < S2.y + f2) return pt(b2, d2, r2, i3, L2, B2, P2);
              }
              if (i3 === b2.iw && r2 === b2.Ky + b2.Sx - 1) {
                if (I2 && T2 && (t4 <= S2.x + o2 || n3 >= S2.y + E2.getRowHeight(r2) - o2)) return pt(b2, l2, r2, i3, L2, B2, P2);
                if ((!A2 && t4 > S2.x + o2 && t4 < S2.x + a2 || A2 && t4 < S2.x + S2.width - o2 && t4 > S2.x + S2.width - a2) && n3 < S2.y + E2.getRowHeight(r2) - o2) return pt(b2, v2, r2, i3, L2, B2, P2);
              }
              if (I2 && T2 && i3 > b2.iw && i3 < b2.iw + b2.Tx && r2 === b2.Ky && n3 <= S2.y + o2) return pt(b2, l2, r2, i3, L2, B2, P2);
              if (i3 > b2.iw && i3 < b2.iw + b2.Tx && r2 === b2.Ky && n3 > S2.y + o2 && n3 < S2.y + f2) return pt(b2, d2, r2, i3, L2, B2, P2);
              if (I2 && T2 && r2 > b2.Ky && r2 < b2.Ky + b2.Sx && i3 === b2.iw && t4 <= S2.x + o2) return pt(b2, l2, r2, i3, L2, B2, P2);
              if (r2 > b2.Ky && r2 < b2.Ky + b2.Sx && i3 === b2.iw && (!A2 && t4 > S2.x + o2 && t4 < S2.x + a2 || A2 && t4 < S2.x + S2.width - o2 && t4 > S2.x + S2.width - a2)) return pt(b2, v2, r2, i3, L2, B2, P2);
              if (N2 = E2.getColumnWidth(b2.iw + b2.Tx - 1), j2 = E2.getRowHeight(b2.Ky + b2.Sx - 1), D2 = S2.x + N2, _2 = S2.y + j2, T2 && (r2 > b2.Ky && r2 < b2.Ky + b2.Sx && i3 === b2.iw + b2.Tx - 1 && t4 >= D2 - o2 && t4 <= D2 || i3 > b2.iw && i3 < b2.iw + b2.Tx && r2 === b2.Ky + b2.Sx - 1 && n3 >= _2 - o2 && n3 <= _2)) {
                if (i3 === b2.iw + b2.Tx - 1 && r2 === b2.Ky + b2.Sx - 1 && n3 >= _2 - c2 && t4 >= D2 - c2) return Lt;
                if (I2) return pt(b2, l2, r2, i3, L2, B2, P2);
              }
            }
            return Lt;
          }, t3.prototype.wR = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mf;
            if (a2.find(t4, n3) instanceof Te) {
              for (i3 = 0, (e3 = a2.find(t4, n3)).oL && (i3 = 1), r2 = 0, e3.jO && (r2 = 1); t4 > 0 && 0 === u2.getRowHeight(t4 - 1); ) t4--;
              if (1 === r2 && n3 === e3.iw && t4 === e3.Ky) return o2 = ct(u2, e3, true), st(o2, e3.iw + e3.Tx - 1, o2);
              if (n3 === e3.iw && t4 === e3.Ky) return o2 = ct(u2, e3, true), st(o2, e3.iw + e3.Tx - 1, o2);
              if (t4 > e3.Ky && t4 < e3.Ky + e3.Sx - i3 && n3 === e3.iw) return t4 === e3.Ky + r2 ? (t4 = ct(u2, e3, true), st(t4, e3.iw + e3.Tx - 1, t4)) : st(t4 - 1, e3.iw + e3.Tx - 1, t4 - 1);
            }
            return null;
          }, t3.prototype.xR = function(t4, n3) {
            var e3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = b2.Mf;
            if (b2.find(t4, n3) instanceof Te) {
              for (r2 = 0, (e3 = b2.find(t4, n3)).oL && (r2 = 1), o2 = 0, e3.jO && (o2 = 1), a2 = y2.getRowCount() - 1; t4 + 1 < y2.getRowCount() && 0 === y2.getRowHeight(t4 + 1); ) t4++;
              if (u2 = function(t5, n4) {
                var i3, r3 = e3.iw + e3.Tx - 1, o3 = n4 === r3;
                return o3 || !!(i3 = y2.getSpan(t5, n4)) && (n4 <= r3 && i3.col + i3.colCount > r3);
              }, a2 !== t4 && t4 < e3.Ky + e3.Sx - r2 && u2(t4, n3)) return s2 = e3.Ky + e3.Sx, l2 = (c2 = e3.iw) + (f2 = e3.Tx) - 1, h2 = st(t4 + 1, e3.iw, t4 + 1), t4 === s2 - r2 - 1 && (e3.VSt && !y2.isActualProtected() ? (d2 = lt(y2, e3), 1 === r2 && dt(y2, e3, s2, d2, c2, l2, 1, true, false, true) || (g2 = (p2 = (v2 = vt(y2, new i2.Range(s2, c2, d2 - s2 + 1, l2 - c2 + 1))) && v2.row) === s2, s2 !== y2.getRowCount() && (g2 ? Wi(y2, e3, t4, 1, true) : Qi(y2, e3, t4, 1, true)))) : h2 = st(t4, l2 + 1, t4)), h2;
              if (0 === r2 && y2.getRowCount() - 1 === t4 && u2(t4, n3)) {
                for (m2 = e3.Ky + o2; m2 + 1 < y2.getRowCount() && 0 === y2.getRowHeight(m2); ) m2++;
                return m2 + 1 === y2.getRowCount() && 0 === y2.getRowHeight(m2) ? st(e3.Ky, e3.iw, e3.Ky) : st(m2, e3.iw, m2);
              }
            }
            return null;
          }, t3.prototype.fR = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mf;
            if (a2.find(t4, n3) instanceof Te) {
              for (i3 = 0, (e3 = a2.find(t4, n3)).oL && (i3 = 1), r2 = 0, e3.jO && (r2 = 1); n3 > 0 && 0 === u2.getColumnWidth(n3 - 1); ) n3--;
              if (n3 === e3.iw && (t4 === e3.Ky || t4 === e3.Ky + r2)) return { col: o2 = ft(u2, e3), leadingCellCol: o2, row: e3.Ky + e3.Sx - 1 - i3 };
              if (n3 === e3.iw && (t4 === e3.Ky || t4 === e3.Ky + r2)) return { col: o2 = ft(u2, e3), leadingCellCol: o2, row: e3.Ky + e3.Sx - 1 - i3 };
              if (n3 > e3.iw && n3 < e3.iw + e3.Tx && (t4 === e3.Ky || t4 === e3.Ky + r2)) return n3 === e3.iw ? { col: n3 = ft(u2, e3), leadingCellCol: n3 + 1, row: e3.Ky + e3.Sx - 1 - i3 } : { col: n3 - 1, leadingCellCol: n3 - 1, row: e3.Ky + e3.Sx - 1 - i3 };
            }
            return null;
          }, t3.prototype.SB = function() {
            var t4, n3, e3 = this, i3 = e3.U3, r2 = i3.length;
            for (n3 = 0; n3 < r2; n3++) (t4 = i3.get(n3)).w5t();
          }, t3.prototype.cL = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = s2.U3, f2 = c2.length;
            for (e3 = 0; e3 < f2; e3++) i3 = c2.get(e3), t4 ? (r2 = i3.Ky, o2 = i3.Ky + i3.Sx - 1, r2 <= n3 && n3 <= o2 && i3.cL(0)) : (a2 = i3.iw, u2 = i3.iw + i3.Tx - 1, a2 <= n3 && n3 <= u2 && i3.cL(0));
          }, t3.prototype.AJ = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this.AB(t4, n3, e3, i3), c2 = [];
            for (o2 = 0, a2 = s2.length; o2 < a2; o2++) u2 = s2[o2].dataRange(), r2 ? u2.rowCount += e3 : u2.colCount += i3, c2.push(u2);
            return c2;
          }, t3;
        })(), n2.TableManager = Ne, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.keepData = 1] = "keepData", t3[t3.keepStyle = 2] = "keepStyle";
        })(je = n2.TableRemoveOptions || (n2.TableRemoveOptions = {})), i2.GC$.extend(i2.Y8.prototype, { D5t: function(t3, n3) {
          var e3, i3 = this, r2 = i3.G8;
          r2 && (r2.tableChanges || (r2.tableChanges = []), delete (e3 = r2.tableChanges).isRestored, e3.push({ type: "changeTableManager", table: t3, oldTableManager: n3 }));
        }, YSt: function(t3, n3, e3, i3) {
          var r2, o2 = this, a2 = o2.G8;
          a2 && (a2.tableChanges || (a2.tableChanges = []), delete (r2 = a2.tableChanges).isRestored, r2.push({ type: Zn, table: t3, name: n3, value: e3, newValue: i3 }));
        }, DTt: function(t3, n3, e3) {
          var i3, r2, o2 = this, a2 = o2.G8;
          a2 && (a2.tableChanges || (a2.tableChanges = []), i3 = a2.tableChanges, r2 = o2.QSt, delete i3.isRestored, i3.push({ type: Vn, tableList: r2.U3.slice(), changedTables: t3, addedTables: n3, changeType: e3 }));
        }, Qao: function(t3, n3) {
          var e3, i3, r2, o2 = this, a2 = o2.G8;
          a2 && (a2.tableChanges || (a2.tableChanges = []), delete (i3 = a2.tableChanges).isRestored, r2 = t3.getBindingSource(), i3.push({ type: zn, tableName: t3.name(), tableColumns: n3 ? null === (e3 = t3.BSt) || void 0 === e3 ? void 0 : e3.map((function(t4) {
            return t4.toJSON();
          })) : Lt, isFromConverting: n3, bindingSource: wi(r2) ? r2.name : r2 }));
        }, A5t: function(t3, n3, e3, i3, r2, o2) {
          var a2, u2 = this, s2 = u2.G8;
          s2 && (s2.tableChanges || (s2.tableChanges = []), delete (a2 = s2.tableChanges).isRestored, a2.push({ tableName: t3.name(), type: Yn, tableColumn: n3, index: o2, name: e3, value: i3, newValue: r2 }));
        }, HTt: function(t3, n3, e3) {
          var i3, r2 = this, o2 = t3.getValue(n3, e3), a2 = o2.value, u2 = r2.G8;
          u2 && (u2.tableChanges || (u2.tableChanges = []), delete (i3 = u2.tableChanges).isRestored, i3.push({ type: Wn, bindingManager: t3, row: n3, col: e3, oldValue: a2 }));
        }, B5t: function(t3, n3, e3, i3, r2) {
          var o2, a2 = this, u2 = a2.G8;
          u2 && (u2.tableChanges || (u2.tableChanges = []), delete (o2 = u2.tableChanges).isRestored, o2.push({ type: Qn, table: t3, key: i3, row: n3, count: e3, stateType: r2 }));
        }, _Tt: function(t3, n3, e3) {
          var i3, r2 = this, o2 = r2.G8;
          o2 && (o2.tableExpressionChanges || (o2.tableExpressionChanges = []), (i3 = o2.tableExpressionChanges).push({ type: te, table: t3, expression: n3, col: e3 }));
        }, ETt: function(t3, n3, e3, i3) {
          var r2, o2 = this, a2 = o2.G8;
          a2 && (a2.sheetExpressionChanges || (a2.sheetExpressionChanges = []), (r2 = a2.sheetExpressionChanges).push({ type: ne, table: t3, expression: n3, row: e3, col: i3 }));
        }, zTt: function(t3, n3) {
          var e3, i3;
          t3 && rr(i3 = (e3 = this).QSt, t3.HJr, true, (function() {
            e3.YAr(t3), n3 && n3();
          }));
        }, YAr: function(t3) {
          var n3, e3, r2, o2, a2, u2, s2;
          if (t3) {
            for (n3 = null, e3 = this.QSt, r2 = function(r3) {
              var o3, a3, u3, s3, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = t3[r3];
              switch (w2.type) {
                case Vn:
                  if (2 === w2.changeType) for (a3 = function(t4) {
                    var n4 = w2.changedTables[t4], i3 = e3.U3.findIndex((function(t5) {
                      return t5.name === n4.name;
                    }));
                    i3 >= 0 && e3.U3.splice(i3, 1);
                  }, u3 = 0; u3 < w2.changedTables.length; u3++) a3(u3);
                  else if (1 === w2.changeType && w2.addedTables) for (s3 = w2.addedTables, u3 = 0; u3 < s3.length; u3++) (c2 = s3[u3]) && "Object" === c2.constructor.name && (c2 = or(e3, c2), e3.U3.push(c2));
                  break;
                case zn:
                  l2 = w2.tableName, h2 = w2.bindingSource, (d2 = w2.isFromConverting) && (h2 ? "string" == typeof h2 && e3.convertFromDataTable(l2) : e3.convertToDataTable(l2));
                  break;
                case Yn:
                  o3 = e3.findByName(w2.tableName), v2 = w2.tableColumn, "name" === w2.name && (v2 = w2.value), (p2 = o3.BSt.findIndex((function(t4) {
                    return t4.name() === v2;
                  }))) >= 0 && ((g2 = o3.BSt[p2])[w2.name](w2.newValue), "name" === w2.name && o3.I5t(v2, w2.newValue, p2));
                  break;
                case Zn:
                  (o3 = w2.table) ? (m2 = w2.name, b2 = w2.newValue, m2 === Jn ? (o3.Ky = b2.row, o3.iw = b2.col, o3.Sx = b2.rowCount, o3.Tx = b2.colCount) : m2 === Xn ? (b2 = b2 && b2.map((function(t4) {
                    if (t4 && "Object" === t4.constructor.name) {
                      var n4 = new ke();
                      return n4.fromJSON(t4), n4.onChange = o3.pEr.bind(o3), n4;
                    }
                    return t4;
                  })), o3.BSt = b2) : m2 === Nn ? (b2 = b2 && b2.map((function(t4) {
                    if (t4 && "Object" === t4.constructor.name) {
                      var n4 = new i2.Style();
                      return n4.fromJSON(t4, false, null), n4;
                    }
                    return t4;
                  })), o3.OSt = b2) : ("style" === m2 && b2 && b2.buildInName && (b2 = f.TableThemes[b2.buildInName.toLowerCase()]), o3[m2](b2))) : "name" === w2.name && (o3 = e3.findByName(w2.value)) && o3.name(w2.newValue);
                  break;
                case "changeTableManager":
                  break;
                case Wn:
                  (y2 = er(e3, w2.bindingManager)).setValue(w2.row, w2.col, w2.oldValue);
                  break;
                case Qn:
                  n3 = o3 = w2.table, "Object" === o3.constructor.name && (o3 = e3.findByName(o3.name)), ir(o3, w2.row, w2.count, w2.key, w2.stateType);
              }
            }, o2 = 0; o2 < t3.length; o2++) r2(o2);
            if (n3) {
              for (n3.LSt && n3.LSt.refresh(), a2 = this.Mf.slicers && this.Mf.slicers.all(), o2 = 0; o2 < a2.length; o2++) if ((u2 = a2[o2]).LSt === n3.LSt && u2.gmi) for (s2 = 0; s2 < u2.gmi.length; s2++) u2.gmi[s2].onDataChanged();
            }
          }
        }, VTt: function(t3, n3) {
          var e3, i3;
          t3 && rr(i3 = (e3 = this).QSt, t3.bindingChanges, Ft, (function() {
            e3.ZAr(t3), n3 && n3();
          }));
        }, ZAr: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2;
          if (t3) for (s2 = this.QSt, c2 = function(c3) {
            var l3, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2 = t3[c3], P2 = void 0;
            switch (B2.type) {
              case Vn:
                for (l3 = B2.tableList, h2 = [], v2 = (d2 = s2.U3).length, p2 = l3.map((function(t4) {
                  return t4.name();
                })), g2 = 0; g2 < v2; g2++) m2 = d2.get(g2), p2.indexOf(m2.name()) < 0 && h2.push(m2);
                b2 = B2.changedTables, s2.F5e(l3, h2), b2 && b2.length > 0 && b2.forEach((function(t4) {
                  t4 && (t4.w5t(), t4.qSt());
                }));
                break;
              case zn:
                y2 = B2.tableName, w2 = s2.findByName(y2), M2 = B2.bindingSource, S2 = B2.tableColumns, (T2 = B2.isFromConverting) ? M2 ? "string" == typeof M2 && (x2 = S2.map((function(t4) {
                  var n4 = new ke();
                  return n4.fromJSON(t4), n4;
                })), w2._uo = true, (A2 = w2.autoGenerateColumns()) && w2.autoGenerateColumns(false), (I2 = w2.bind(x2, w2.bindingPath(), M2)).then ? I2.then((function() {
                  delete w2._uo, A2 && w2.autoGenerateColumns(A2);
                  var t4 = w2.Mf;
                  try {
                    wt(t4), s2.Xao(w2);
                  } finally {
                    Mt(t4);
                  }
                })) : (delete w2._uo, A2 && w2.autoGenerateColumns(A2), s2.Xao(w2))) : (null == w2 ? void 0 : w2.NTr()) && (k2 = null === (n3 = null == w2 ? void 0 : w2.getBindingSource()) || void 0 === n3 ? void 0 : n3.name, s2.Ouo(y2, false), k2 && (null === (i3 = null === (e3 = null == s2 ? void 0 : s2.Mf) || void 0 === e3 ? void 0 : e3.parent) || void 0 === i3 || i3.dataManager().removeTable(k2))) : null == w2 || w2.rkr(true);
                break;
              case Yn:
                P2 = s2.findByName(B2.tableName), (N2 = B2.index) >= 0 ? (j2 = P2.BSt[N2])[B2.name](B2.value) : B2.tableColumn[B2.name](B2.value), "name" === B2.name && (D2 = B2.newValue, _2 = B2.value, O2 = null != N2 ? N2 : P2.getColumnIndexInTable(_2), C(D2) || -1 === O2 || P2.I5t(D2, _2, O2));
                break;
              case Zn:
                P2 = B2.table, E2 = B2.name, R2 = B2.value, E2 === Jn ? (P2.Ky = R2.row, P2.iw = R2.col, P2.Sx = R2.rowCount, P2.Tx = R2.colCount, null === (o2 = null === (r2 = f2.Mf) || void 0 === r2 ? void 0 : r2.oMt) || void 0 === o2 || o2.gF(R2.row, R2.col, R2.rowCount, R2.colCount), P2.LSt && P2.LSt.refresh(), P2.jS.ssr()) : E2 === Xn ? P2.BSt = R2 : E2 === qn ? (null === (a2 = P2.getColumn(R2.column)) || void 0 === a2 || a2.dataAreaFormula(R2.expr), P2.NTr() && (L2 = P2.getColumnIndexInTable(R2.column)) > -1 && P2.tGr(P2.BSt[L2], P2.startColumn() + L2)) : E2 === $n ? null === (u2 = P2.getColumn(R2.column)) || void 0 === u2 || u2.footerFormula(R2.expr) : E2 === Nn ? P2.OSt = R2 : E2 === Gn ? P2.TEr(R2) : P2[E2](R2), P2.cL(0);
                break;
              case "changeTableManager":
                P2 = B2.table, F2 = B2.oldTableManager, P2.k5t(F2);
                break;
              case Wn:
                B2.bindingManager.setValue(B2.row, B2.col, B2.oldValue);
                break;
              case Qn:
                ir(B2.table, B2.row, B2.count, B2.key, B2.stateType);
            }
          }, f2 = this, l2 = t3.length - 1; l2 >= 0; l2--) c2(l2);
        }, YTt: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2;
          if (t3) {
            for (n3 = void 0, e3 = t3.length - 1; e3 >= 0; e3--) (i3 = t3[e3]).type === te && (n3 = i3.table, r2 = i3.expression, o2 = i3.col, a2 = void 0, (a2 = n3.BSt[o2].footerFormula()) && (u2 = It(a2)) > -1 && (a2.arguments[u2] = r2));
            n3 && n3.w5t();
          }
        } }), i2.Y8.ch(On, { priority: 7e3, isValid: function(t3) {
          var n3, e3, i3 = ["getValue", "setValue"].indexOf(t3) > -1, r2 = (null === (e3 = null === (n3 = this.Mf.tables) || void 0 === n3 ? void 0 : n3.U3) || void 0 === e3 ? void 0 : e3.length) > 0;
          return !i3 || r2;
        }, init: function() {
          this.QSt = new Ne(this.Mf);
        }, clearPendingChanges: function(t3) {
          var n3 = this.tables;
          n3 && n3.$St(t3.tableList);
        }, undoAddRows: function(t3) {
          var n3, e3, r2, o2, a2, u2 = t3.sheetArea;
          (C(u2) || u2 === i2.SheetArea.viewport) && (e3 = (n3 = this).Mf, r2 = t3.row, o2 = t3.rowCount, (a2 = e3.tables.AB(r2, -1, o2, -1)).forEach((function(t4) {
            var n4, e4 = t4.dataRange(), i3 = e4.row, a3 = nt(e4);
            t4.x4t(r2, o2, bt(true)), t4.N5t() && r2 >= i3 && r2 < i3 + a3 && (n4 = t4.getSlicerData()).onRowsRemoved(r2 - i3, o2);
          })));
        }, getValue: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2, s2;
          (null === (e3 = null === (n3 = this.Mf.tables) || void 0 === n3 ? void 0 : n3.U3) || void 0 === e3 ? void 0 : e3.length) > 0 && (i3 = t3.row, r2 = t3.col, o2 = t3.sheetArea, a2 = this.Mf.tables, u2 = void 0, s2 = void 0, 3 === o2 && a2 && (u2 = a2.find(i3, r2)) && (s2 = a2.Sl(i3, r2, u2), t3.isValueGet = s2.e5t, t3.value = s2.y4));
        }, setValue: function(t3) {
          var n3, e3, i3, r2 = t3.row, o2 = t3.col, a2 = t3.value, u2 = t3.sheetArea, s2 = this.Mf.tables;
          3 === u2 && s2 && (n3 = s2.find(r2, o2)) && (i3 = void 0, (e3 = t3.changes) && ((i3 = e3.tableChanges) || (e3.tableChanges = [])), t3.isValueSet = s2.Kbt(r2, o2, a2, n3));
        }, applyChanges: function(t3) {
          var n3, e3, i3 = this, r2 = t3.changes, o2 = t3.isUndo;
          r2 && (n3 = r2.tableChanges, e3 = r2.tableExpressionChanges, n3 && (ur(i3.QSt, n3), o2 ? i3.VTt(n3) : i3.zTt(n3)), o2 && e3 && i3.YTt(e3)), i3.QSt.dl();
        }, undo: function(t3) {
          var n3, e3 = this, i3 = t3.tableChanges, r2 = t3.tableExpressionChanges;
          i3 && !i3.isRestored && (n3 = true, this.VTt(i3, (function() {
            if (!n3) {
              var t4 = e3.QSt;
              t4 && t4.all().some((function(t5) {
                return t5.NTr();
              })) && e3.Mf.zw();
            }
          })), n3 = false), r2 && this.YTt(r2), this.QSt.dl();
        } }), i2.Workbook.ch(On, { init: function() {
          i2.Commands.D4t(this.commandManager()), this.customTableThemes = new h.CustomTableThemeManager(this, { create: function() {
            return new f.TableTheme();
          }, buildIn: f.TableThemes, prefixName: "TableStyle" });
        }, dispose: function() {
          this.customTableThemes && (this.customTableThemes.L0(), this.customTableThemes = null);
        }, onCultureChanged: function() {
          ge();
        }, preFromSJSFormat: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = e3 && false === e3.includeStyles;
          if (!b2 && (o2 = (r2 = t3.styles) && r2.tableStyles, a2 = function(t4) {
            var n4, o3, a3, u3, s3, c3, f2, l3, h3, d3, v3, p3, g3, m3, b3, y2, w2 = r2.extLst;
            if (!w2) return false;
            for (v3 = null !== (u3 = (d3 = !i2.Util.ko(e3)) ? Array.isArray(null === (n4 = w2.slicerStylesNode) || void 0 === n4 ? void 0 : n4.slicerStyle) ? null === (o3 = w2.slicerStylesNode) || void 0 === o3 ? void 0 : o3.slicerStyle : [null === (a3 = w2.slicerStylesNode) || void 0 === a3 ? void 0 : a3.slicerStyle] : w2.slicerStyleNodes) && void 0 !== u3 ? u3 : [], p3 = null !== (l3 = d3 ? Array.isArray(null === (s3 = w2.timelineStylesNode) || void 0 === s3 ? void 0 : s3.timelineStyle) ? null === (c3 = w2.timelineStylesNode) || void 0 === c3 ? void 0 : c3.timelineStyle : [null === (f2 = w2.timelineStylesNode) || void 0 === f2 ? void 0 : f2.timelineStyle] : w2.timelineStyleNodes) && void 0 !== l3 ? l3 : [], g3 = Oe(Oe([], v3, true), p3, true), m3 = 0; m3 < g3.length; m3++) if (b3 = g3[m3], (y2 = d3 ? null === (h3 = null == b3 ? void 0 : b3.kSt) || void 0 === h3 ? void 0 : h3.name : null == b3 ? void 0 : b3.name) === t4) return true;
            return false;
          }, u2 = n3.styleManager, o2)) {
            if (u2.addDefaultStyleName("defaultTableStyle", o2.defaultTableStyle || "TableStyleMedium2"), (s2 = E(o2.count, 0)) > 0 && (c2 = N(o2, "tableStyle"))) for (m2.customTableThemes.xur = [], l2 = 0, h2 = c2; l2 < h2.length; l2++) (d2 = h2[l2]) && d2.count > 0 && 0 === +d2.pivot && ((v2 = new f.TableTheme()).yh(d2, u2), a2(d2.name) || m2.customTableThemes.xur.push(v2));
            m2.defaultTableTheme && m2.customTableThemes && (p2 = u2.getDefaultStyleName("defaultTableStyle"), g2 = m2.customTableThemes.get(p2) ? p2 : p2.replace(/^TableStyle/, ""), m2.defaultTableTheme(g2));
          }
        }, preToSJSFormat: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, f2, l2, h2 = e3 && e3.fileType === i2.OpenSaveFileType.excel, d2 = e3 && false === e3.includeStyles;
          if (h2 && !d2) for (o2 = 0, a2 = r2 = this.mp; o2 < a2.length; o2++) c2 = (s2 = (u2 = a2[o2]).Mf).getRowCount(), f2 = s2.getColumnCount(), (u2._gi === i2.SheetType.tableSheet || u2._gi === i2.SheetType.ganttSheet) && c2 > 0 && f2 > 0 && (l2 = s2.name().replace(/ /g, "").replace(/\-/g, "_") + "Table", s2.tables.WB(new Te(l2, 0, 0, c2, f2, u2.hl, { showHeader: false })));
        }, wh: function(t3, n3, e3) {
          var r2, o2, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2, b2 = this, y2 = t3.tables, w2 = n3 && n3.styleManager, M2 = e3 && e3.fileType === i2.OpenSaveFileType.excel, C2 = e3 && false === e3.includeStyles;
          if (!C2) {
            for (r2 = {}, o2 = 0, a2 = (0, i2.Ap)(b2); o2 < a2; o2++) if ((u2 = (0, i2.Tp)(b2, o2)) && (c2 = (s2 = u2.tables) && s2.all()) && c2.length > 0) for (l2 = 0, h2 = c2; l2 < h2.length; l2++) d2 = h2[l2], y2 || (y2 = t3.tables = {}), v2 = y2[i2.XFileConstants.du + d2._id] = {}, d2.wh(v2, t3, n3, e3, r2), d2.style() && !d2.getStyleName() && ((p2 = new f.TableTheme()).fromJSON(d2.style().toJSON()), p2.name(ai(b2, d2.name())), w2.addTableStyle(p2.wh(w2))), M2 && !C2 && u2.NMi && s2.DK(d2);
            b2.customTableThemes.all().forEach((function(t4) {
              t4 && w2.addTableStyle(t4.wh(w2));
            })), m2 = (g2 = b2.defaultTableTheme() || f.TableThemes.medium2).builtInName() ? "TableStyle".concat(g2.name()) : g2.name(), w2.addDefaultStyleName("defaultTableStyle", m2);
          }
        }, fromJson: function(t3) {
          var n3, e3 = this, i3 = [], r2 = t3.tableStyles;
          r2 && (r2.forEach((function(t4) {
            var n4 = new f.TableTheme();
            n4.fromJSON(t4), i3.push(n4);
          })), e3.customTableThemes.xur = i3), (n3 = t3.defaultTableStyle) && e3.defaultTableTheme(n3);
        }, toJson: function(t3) {
          var n3 = this, e3 = n3.customTableThemes.all(), i3 = n3.Bur;
          e3 && e3.length > 0 && (t3.tableStyles = e3.map((function(t4) {
            return t4.toJSON();
          }))), i3 && (t3.defaultTableStyle = i3);
        } });
      }, "./dist/plugins/table/table.ns.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.SR = void 0;
        var i2 = e2("./dist/plugins/table/table.res.en.js");
        n2.SR = { en: i2 };
      }, "./dist/plugins/table/table.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.Table_Var = n2.Table_StdDev = n2.Table_Sum = n2.Table_Min = n2.Table_Max = n2.Table_Count_Numbers = n2.Table_Count = n2.Table_Average = n2.Table_None = n2.Table_Total = n2.Exp_TableAddRowNoEnoughRoom = n2.Exp_TableAddRowIntersectTable = n2.Exp_TableAddRowIntersectSpan = n2.Exp_TableDeleteCountInvalid = n2.Exp_ColParamOutOfRange = n2.Exp_RowParamOutOfRange = n2.Exp_TableResizeToTable = n2.Exp_TableResizeWithHidden = n2.Exp_TableResizeWithFilter = n2.Exp_TableResizeToSpan = n2.Exp_TableResizeInvalidRange = n2.Exp_ArrayFormulaTable = n2.Exp_TableResizeOutOfRange = n2.Exp_TableMoveOutOfRange = n2.Exp_TableDataSourceNullError = n2.Exp_TableRangeHasFilterError = n2.Exp_TableHasExistNameInWorkbookError = n2.Exp_TableHasSameNameError = n2.Exp_TableIntersectError = n2.Exp_TableInvalidColumn = n2.Exp_TableInvalidRow = n2.Exp_TableNameInvalid = n2.Exp_TableEmptyNameError = n2.Exp_DragDropChangePartOfTable = n2.Exp_DragDropShiftTableCell = void 0, n2.Exp_DragDropShiftTableCell = "This operation is not allowed. The operation is attempting to shift cells in a table on your worksheet.", n2.Exp_DragDropChangePartOfTable = "Cannot complete operation: You are attempting to change a portion of a table row or column in a way that is not allowed.", n2.Exp_TableEmptyNameError = "The table name cannot be empty.", n2.Exp_TableNameInvalid = "The table name is not valid.", n2.Exp_TableInvalidRow = "Invalid row index or row count.", n2.Exp_TableInvalidColumn = "Invalid column index or column count.", n2.Exp_TableIntersectError = "The tables cannot be intersected.", n2.Exp_TableHasSameNameError = "The current worksheet already exists in a table with the same name.", n2.Exp_TableHasExistNameInWorkbookError = "This name already exists. Names should be unique.", n2.Exp_TableRangeHasFilterError = "The current table range contains a filter range.", n2.Exp_TableDataSourceNullError = "Table datasource cannot be null.", n2.Exp_TableMoveOutOfRange = "The table cannot be moved out of the sheet.", n2.Exp_TableResizeOutOfRange = "The invalid row count, column count, and table cannot be resized out of the sheet.", n2.Exp_ArrayFormulaTable = "multi-cell array formulas are not allowed in tables.", n2.Exp_TableResizeInvalidRange = "The headers must remain in the same row, and the resulting table range must overlap the original table range.", n2.Exp_TableResizeToSpan = "Cannot complete operation: A table cannot overlap with a table or merged cells.", n2.Exp_TableResizeWithFilter = "Cannot shift cells in a filtered range or table.", n2.Exp_TableResizeWithHidden = "Cannot resize a table that's adjacent to a hidden row or column.", n2.Exp_TableResizeToTable = "Cannot complete operation: Operations that include cells both inside and outside a table range, and operation that affect cells that overlap multiple tables are not allowed.", n2.Exp_RowParamOutOfRange = "The param row out of data range of table.", n2.Exp_ColParamOutOfRange = "The param col out of data range of table.", n2.Exp_TableDeleteCountInvalid = "The param count to delete will cause empty table.", n2.Exp_TableAddRowIntersectSpan = "This won't work because it would move cells in a span on your worksheet.", n2.Exp_TableAddRowIntersectTable = "This won't work because it would move cells in a table on your worksheet.", n2.Exp_TableAddRowNoEnoughRoom = "Cannot insert new cells because it would push non-empty cells of the end of worksheet. These cells might appear empty but have blank values, some formatting, or a formula. Delete enough rows or columns to make room for what you want to insert and then try again.", n2.Table_Total = "Total", n2.Table_None = "None", n2.Table_Average = "Average", n2.Table_Count = "Count", n2.Table_Count_Numbers = "Count Numbers", n2.Table_Max = "Max", n2.Table_Min = "Min", n2.Table_Sum = "Sum", n2.Table_StdDev = "StdDev", n2.Table_Var = "Var";
      }, "./dist/plugins/touch/touch.entry.js": function(t2, n2, e2) {
        "use strict";
        var i2 = this && this.JKr || (Object.create ? function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3);
          var r2 = Object.getOwnPropertyDescriptor(n3, e3);
          r2 && !("get" in r2 ? !n3.__esModule : r2.writable || r2.configurable) || (r2 = { enumerable: true, get: function() {
            return n3[e3];
          } }), Object.defineProperty(t3, i3, r2);
        } : function(t3, n3, e3, i3) {
          void 0 === i3 && (i3 = e3), t3[i3] = n3[e3];
        }), r = this && this.XKr || function(t3, n3) {
          for (var e3 in t3) "default" === e3 || Object.prototype.hasOwnProperty.call(n3, e3) || i2(n3, t3, e3);
        };
        Object.defineProperty(n2, "__esModule", { value: true }), r(e2("./dist/plugins/touch/touch.js"), n2);
      }, "./dist/plugins/touch/touch.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt = this && this.qKr || (qt = function(t3, n3) {
          return qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, qt(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          qt(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), qt;
        function $t(t3) {
          return t3.height;
        }
        function tn(t3) {
          return t3.width;
        }
        function nn(t3) {
          clearInterval(t3);
        }
        function en() {
          return (/* @__PURE__ */ new Date()).valueOf();
        }
        function rn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2;
          return !(!t3 || !n3) && (r2 = e3 = 13, o2 = e3, a2 = i3 = 15, u2 = i3, s2 = t3.X - n3.X, c2 = t3.Y - n3.Y, w(s2) < r2 && w(c2) < o2 && I(s2 * s2 + c2 * c2) < M(a2, u2));
        }
        function on(t3) {
          var n3 = t3.jg();
          return n3 instanceof r.Worksheet ? n3 : n3 && n3.Mf;
        }
        function an(t3) {
          return t3.getSelections();
        }
        function un(t3) {
          return t3.frozenTrailingColumnCount();
        }
        function sn(t3) {
          return t3.frozenTrailingRowCount();
        }
        function cn(t3, n3) {
          return t3.getColumnCount(n3);
        }
        function fn(t3, n3) {
          return t3.getRowCount(n3);
        }
        function ln(t3) {
          var n3 = s(t3).offset(), e3 = Q.body, i3 = 0, r2 = 0;
          return n3 && (i3 = n3.top + e3.clientTop || 0, r2 = n3.left + e3.clientLeft || 0), { A0: i3, I0: r2 };
        }
        function hn(t3, n3) {
          var e3 = T(n3.Y, n3.X) - T(t3.Y, t3.X);
          return e3 > x ? e3 -= 2 * x : e3 < -x && (e3 += 2 * x), e3;
        }
        function dn(t3, n3) {
          return I((n3.X - t3.X) * (n3.X - t3.X) + (n3.Y - t3.Y) * (n3.Y - t3.Y));
        }
        function vn(t3, n3, e3) {
          var i3 = new ut(e3.ZJr.X, e3.ZJr.Y), r2 = new ut(n3.X - i3.X, n3.Y - i3.Y), o2 = new ut(t3.X - i3.X, t3.Y - i3.Y), a2 = M(1, S(dn(n3, i3) / e3.WJr, 4)), u2 = hn(r2, o2);
          return z(u2) ? 0 : u2 * a2;
        }
        function pn(t3) {
          return w(t3) <= 2220446049250313e-31;
        }
        function gn(t3, n3) {
          var e3 = false, i3 = false, r2;
          return 0 !== t3 && (r2 = k(n3 / t3) / x * 180) < 20 && (e3 = true), (0 === t3 || (r2 = k(n3 / t3) / x * 180) > 75 && r2 < 105) && (i3 = true), { JTt: e3, XTt: i3 };
        }
        function mn(t3) {
          return new ut(t3 ? A(t3.X) : -1, t3 ? A(t3.Y) : -1);
        }
        function bn(t3, n3) {
          var e3 = t3 * n3;
          return e3 > 4 ? e3 = 4 : e3 < 0.5 && (e3 = 0.5), e3;
        }
        function yn(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = e3, h2 = 0, d2 = 0, v2 = t3.Jt, p2 = t3.Fi(), g2 = p2.Cy, m2 = t3.dw(1).findRow(l2), y2 = t3.parent, w2 = y2 && y2.options.scrollByPixel && y2.options.scrollbarMaxAlign;
          if (m2) {
            if (n3 > 0) {
              for (r2 = t3.vw(-1), h2 = g2 - m2.y; l2 > r2 && h2 < n3; ) l2--, h2 += v2.Gt(l2);
              d2 = n3 - h2;
            } else if (n3 < 0) {
              if (a2 = 0, u2 = i3, w2) {
                if (s2 = t3.frozenRowCount(), c2 = t3.getRowCount() - t3.frozenTrailingRowCount() - 1, o2 = (f2 = t3.gw(t3.Sy(p2), s2, c2)).Ky, a2 = f2.Xy, u2 = i3 + n3, l2 > o2 || l2 === o2 && u2 < a2) return b;
              } else o2 = t3.mw().Ky;
              for (h2 = -(m2.y + $t(m2) - g2); l2 < o2 && h2 > n3; ) l2++, h2 -= v2.Gt(l2);
              d2 = n3 - h2, w2 && l2 === o2 && u2 < a2 && (n3 = (d2 = a2 + v2.Gt(l2)) + h2);
            }
          }
          return { Ky: l2, Xy: d2, _At: n3 };
        }
        function wn(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2, c2, f2, l2 = e3, h2 = 0, d2 = 0, v2 = t3.Jt, p2 = t3.Fi(), g2 = p2.Py, m2 = t3.yw(1).findCol(l2), y2 = t3.parent, w2 = t3.options.rightToLeft, M2 = y2 && y2.options.scrollByPixel && y2.options.scrollbarMaxAlign;
          if (m2) {
            if (w2) {
              if (n3 > 0) {
                for (o2 = t3.Mw().iw, h2 = p2.b6 - m2.x; l2 < o2 && h2 < n3; ) l2++, h2 += v2.Kt(l2);
                d2 = n3 - h2;
              } else if (n3 < 0) {
                for (r2 = t3.ww(-1), h2 = -(m2.x + m2.width - p2.b6); l2 > r2 && h2 > n3; ) l2--, h2 -= v2.Kt(l2);
                d2 = n3 - h2;
              }
            } else if (n3 > 0) {
              for (r2 = t3.ww(-1), h2 = g2 - m2.x; l2 > r2 && h2 < n3; ) l2--, h2 += v2.Kt(l2);
              d2 = n3 - h2;
            } else if (n3 < 0) {
              if (a2 = 0, u2 = i3, M2) {
                if (s2 = t3.frozenColumnCount(), c2 = t3.getColumnCount() - t3.frozenTrailingColumnCount() - 1, o2 = (f2 = t3.Cw(t3.Gy(p2), s2, c2)).iw, a2 = f2.Xy, u2 = i3 + n3, l2 > o2 || l2 === o2 && u2 < a2) return b;
              } else o2 = t3.Mw().iw;
              for (h2 = -(m2.x + tn(m2) - g2); l2 < o2 && h2 > n3; ) l2++, h2 -= v2.Kt(l2);
              d2 = n3 - h2, M2 && l2 === o2 && u2 < a2 && (n3 = (d2 = a2 + v2.Kt(l2)) + h2);
            }
          }
          return { iw: l2, Xy: d2, EAt: n3 };
        }
        function Mn(t3, n3) {
          return Y(-n3 / (t3 / n3 + 1) + n3 + "");
        }
        function Cn(t3, n3) {
          return Y(n3 * (-n3 / (t3 - n3) - 1) + "");
        }
        function Sn(t3, n3, e3, i3, r2, o2) {
          t3.fillStyle = n3, t3.fillRect(e3, i3, r2, o2);
        }
        function Tn(t3, n3, e3, i3, o2) {
          var a2, u2, s2, c2, f2, l2 = r.I.He(0, "gc-columnHeader-normal"), h2 = l2 && l2.backgroundImage, d2 = l2 && l2.backgroundColor;
          if (h2 && -1 !== h2.indexOf("linear-gradient")) for (u2 = r.mt.ri(h2), a2 = t3.createLinearGradient(n3 + i3 / 2, e3, n3 + i3 / 2, e3 + o2), s2 = 0, c2 = u2.length; s2 < c2; s2++) f2 = u2[s2], a2.addColorStop(f2.point, f2.color);
          else d2 && (a2 = d2);
          return a2;
        }
        function xn() {
          var t3 = r.I.He(0, "gc-rowHeader-normal");
          return t3 && t3.backgroundColor;
        }
        function An(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = t3.Fi(), g2 = t3.Dn, m2 = t3.options, b2 = t3.options.rightToLeft, y2 = m2.sheetAreaOffset, w2 = y2.left, M2 = y2.top, C2 = g2.R7(false), S2 = g2.J(), T2 = g2._7(), x2 = t3.dw(1), A2 = kn(t3), I2 = p2.J7, k2 = p2.Uy, N2 = p2.X7, j2 = p2.Ty, D2 = p2.BA, _2 = w2 >= 1 ? 1 : 0, O2 = M2 >= 1 ? 1 : 0, E2 = tn(p2);
          S2.save(), T2.save(), r2 = t3.vw(-1), (o2 = x2.findRow(r2)) && (e3 = p2.Cy, (i3 = o2.y - e3 - 1 - O2) > 0 && (n3 ? (a2 = p2.XC, Sn(S2, u2 = xn(), D2, e3, a2 - 1, i3 + 1), Sn(T2, u2, D2, e3, a2 - 1, i3 + 1), Sn(S2, C2, s2 = b2 ? p2.x : D2 + a2, e3, c2 = b2 ? E2 - a2 : E2 - a2 - A2.width, i3), Sn(T2, C2, s2, e3, c2, i3)) : (Sn(S2, C2, D2, e3, E2, i3), Sn(T2, C2, D2, e3, E2, i3)))), j2 > q && (Sn(S2, C2, D2, N2, E2, i3 = j2 - q - O2), Sn(T2, C2, D2, N2, E2, i3)), f2 = t3.yw(1), e3 = p2.LA, i3 = $t(p2), l2 = t3.ww(-1), (h2 = f2.findCol(l2)) && (b2 ? (D2 = p2.b6, D2 -= E2 = D2 - (h2.x + h2.width)) : (D2 = p2.Py, E2 = h2.x - D2 - 1 - _2), E2 > 0 && (n3 ? (Sn(S2, v2 = Tn(S2, D2, e3, E2 + 1, (d2 = p2.qC) - 1), D2, e3, E2 + 1, d2 - 1), Sn(T2, v2, D2, e3, E2 + 1, d2 - 1), Sn(S2, C2, D2, e3 + d2, E2, i3 - d2 - A2.height), Sn(T2, C2, D2, e3 + d2, E2, i3 - d2 - A2.height)) : (Sn(S2, C2, D2, e3, E2, i3), Sn(T2, C2, D2, e3, E2, i3)))), k2 > q && (E2 = k2 - q - _2, b2 && I2 + E2 >= p2.b6 && (E2 = p2.b6 - I2), Sn(S2, C2, I2, e3, E2, i3), Sn(T2, C2, I2, e3, E2, i3)), T2.restore(), S2.restore();
        }
        function In(t3, n3, e3, i3, r2, o2) {
          t3.beginPath(), t3.strokeStyle = n3, t3.moveTo(e3, i3), t3.lineTo(r2, o2), t3.stroke();
        }
        function kn(t3) {
          var n3, e3 = t3.options.sheetAreaOffset;
          return t3.gj && t3.gj() || { x: e3.left, y: e3.top, width: 0, height: 0 };
        }
        function Nn(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2, c2 = t3.Fi(), f2 = t3.Dn, l2 = f2.J(), h2 = t3.options.rightToLeft, d2 = t3.dw(1), p2 = kn(t3), g2 = t3.vw(-1), m2 = d2.findRow(g2), b2 = v("gc-group").color;
          m2 && (e3 = c2.Cy, (i3 = m2.y - e3) > 0 && n3 && p2.width > 0 && 0 === c2.XC && In(l2, b2, r2 = h2 ? c2.BA - 0.5 : c2.b6 - 0.5, e3, r2, m2.y)), o2 = t3.yw(1), a2 = t3.ww(-1), (u2 = o2.findCol(a2)) && (r2 = void 0, s2 = void 0, h2 ? (r2 = c2.b6, r2 -= s2 = r2 - (u2.x + u2.width)) : (r2 = c2.Py, s2 = u2.x - r2), s2 > 0 && n3 && p2.height > 0 && 0 === c2.qC && In(l2, b2, r2, c2.T6 - 0.5, r2 + s2, c2.T6 - 0.5));
        }
        function jn(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2 = t3.Fi(), f2 = t3.Dn, l2 = t3.options.rightToLeft, h2 = t3.options.gridline.color, d2 = r.I.He(0, "gc-columnHeader-normal"), v2 = d2 && d2.borderBottomColor, p2 = f2.J(), g2 = t3.dw(1), m2 = kn(t3), b2 = c2.BA, y2 = tn(c2), w2 = t3.vw(-1), M2 = g2.findRow(w2);
          M2 && (e3 = c2.Cy, (i3 = M2.y - e3) > 0 && (In(p2, h2, b2, M2.y - 0.5, b2 + y2 - m2.width, M2.y - 0.5), n3 && (0 === m2.width && In(p2, h2, c2.BA - 0.5, e3, c2.BA - 0.5, M2.y), In(p2, v2, o2 = l2 ? c2.BA + c2.XC - 0.5 : c2.b6 - 0.5, e3, o2, M2.y)))), a2 = t3.yw(1), e3 = c2.LA, i3 = $t(c2), u2 = t3.ww(-1), (s2 = a2.findCol(u2)) && (l2 ? (b2 = c2.b6, b2 -= y2 = b2 - (s2.x + s2.width)) : (b2 = c2.Py, y2 = s2.x - b2), y2 > 0 && (In(p2, h2, s2.x - 0.5, e3, s2.x - 0.5, e3 + i3 - m2.height), n3 && (0 === m2.height && In(p2, h2, b2, c2.LA - 0.5, b2 + y2, c2.LA - 0.5), In(p2, v2, b2, c2.T6 - 0.5, b2 + y2, c2.T6 - 0.5))));
        }
        function Dn(t3, n3) {
          var e3 = 0;
          return t3 || (e3 |= 1), n3 || (e3 |= 2), e3;
        }
        function _n(t3, n3) {
          var e3 = 0;
          return e3 |= 0 !== t3 ? 1 : 0, e3 |= 0 !== n3 ? 2 : 0;
        }
        function On(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = t3.parent, l2 = t3.rt, h2 = t3.options, d2 = n3.rowViewportIndex, v2 = n3.colViewportIndex, p2 = an(t3), g2 = b;
          return t3.Oi && p2.length > 0 && (a2 = (o2 = p2[p2.length - 1]).row, u2 = o2.row + o2.rowCount - 1, s2 = o2.col, c2 = o2.col + o2.colCount - 1, f2 && !f2.options.allowUserResize || (-1 !== a2 && -1 === s2 && d2 >= 0 && v2 < 0 && h2.rowHeaderVisible ? !(g2 = l2.cD(t3, n3, r2, 2, i3)) || "sizeRow" !== g2.action && "sizeHiddenRow" !== g2.action || 2 !== g2.sheetArea || g2.index === u2 || (g2 = b) : -1 === a2 && -1 !== s2 && d2 < 0 && v2 >= 0 && h2.colHeaderVisible && (!(g2 = l2.dD(t3, n3, r2, 1, e3)) || "sizeCol" !== g2.action && "sizeHiddenCol" !== g2.action || 1 !== g2.sheetArea || g2.index === c2 || (g2 = b)))), g2;
        }
        function En(t3, n3, e3, i3) {
          var r2, o2, u2, s2, c2, f2, l2, h2, d2;
          if (0 === t3.selectionPolicy()) return b;
          for (r2 = n3.hitTestType, o2 = Jn(t3), u2 = an(t3), s2 = 3, t3.Oi && u2.length > 0 && (-1 !== (c2 = u2[u2.length - 1]).row && -1 === c2.col ? s2 = 2 : -1 !== c2.col && -1 === c2.row && (s2 = 1)), f2 = 0; f2 < o2.length; f2++) if ((l2 = o2[f2]) && (l2.x -= tn(l2), l2.y -= $t(l2), l2.width *= 3, l2.height *= 3, l2.contains(e3, i3))) return a(n3.row) && (h2 = t3.dw(1)) && h2.length > 0 && (n3.row = h2[h2.length - 1].row), a(n3.col) && (d2 = t3.yw(1)) && d2.length > 0 && (n3.col = d2[d2.length - 1].col), { x: e3, y: i3, type: s2, isHeader: false, isFirstIndicator: 0 === f2 };
          return 1 === r2 && t3.JA(-1, n3.col) ? { x: e3, y: i3, type: 1, isHeader: true } : 2 === r2 && t3.JA(n3.row, -1) ? { x: e3, y: i3, type: 2, isHeader: true } : b;
        }
        function Rn(t3, n3, e3, i3) {
          var r2, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = b, y2 = n3.rowViewportIndex, w2 = n3.colViewportIndex;
          if (a(y2) || a(w2)) return m2;
          if (r2 = t3.parent, o2 = t3.U5(), y2 >= 0 && w2 >= 0 && 1 === t3.Ut.getSelections().length) {
            if (u2 = t3.JS(o2), s2 = un(t3), c2 = sn(t3), f2 = cn(t3) - s2, l2 = fn(t3) - c2, 1 === w2 && s2 > 0 && u2.col < f2 && u2.col + u2.colCount > f2 && (h2 = t3.Yy(w2)) && h2.length > 0 && e3 > (d2 = h2[h2.length - 1]).x + tn(d2)) return m2;
            if (1 === y2 && c2 > 0 && u2.row < l2 && u2.row + u2.rowCount > l2 && (v2 = t3._y(y2)) && v2.length > 0 && i3 > (p2 = v2[v2.length - 1]).y + $t(p2)) return m2;
          }
          return (g2 = Wn(t3)) && (m2 || (g2.x -= tn(g2), g2.y -= $t(g2), g2.width *= 3, g2.height *= 3, g2.contains(e3, i3) && (m2 = { action: "drag", side: "corner" })), r2 && r2.options.allowUserDragFill || m2 && "corner" === m2.side && (m2.side = b)), m2;
        }
        function Ln(t3, n3, e3, i3) {
          var r2, o2, u2, s2, c2, f2, l2, h2, d2 = false, v2 = t3.Ut.getSelections();
          for (r2 = 0, o2 = v2.length; r2 < o2; r2++) {
            if (u2 = v2[r2], (s2 = 3 === i3 || a(i3)) && (u2 = t3.JS(u2)), c2 = u2.row, f2 = u2.col, l2 = u2.rowCount, h2 = u2.colCount, s2) d2 = c2 <= n3 && n3 < c2 + l2 && f2 <= e3 && e3 < f2 + h2;
            else if (2 === i3) d2 = -1 === f2 && c2 <= n3 && n3 < c2 + l2;
            else if (1 === i3) d2 = -1 === c2 && f2 <= e3 && e3 < f2 + h2;
            else if (0 === i3) return d2;
            if (d2) break;
          }
          return d2;
        }
        function Fn(t3, n3, e3, i3, o2) {
          n3 === i3 && e3 === o2 || (t3.Ut.setCellState(n3, e3, r.CellStatesType.active, false, r.SheetArea.viewport), t3.k_ && t3.k_(r.CellStatesType.active, n3, e3, r.SheetArea.viewport), t3.Ut.setCellState(i3, o2, r.CellStatesType.active, true, r.SheetArea.viewport), t3.k_ && t3.k_(r.CellStatesType.active, i3, o2, r.SheetArea.viewport));
        }
        function Bn(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          n3 || (o2 = (r2 = an(t3))[r2.length - 1], a2 = t3.ui, u2 = t3.ci, e3 ? 3 === i3 ? (t3.ui = o2.row + o2.rowCount - 1, t3.ci = o2.col + o2.colCount - 1) : 2 === i3 ? (t3.ui = o2.row + o2.rowCount - 1, t3.ci = 0) : 1 === i3 && (t3.ui = 0, t3.ci = o2.col + o2.colCount - 1) : 3 === i3 ? (t3.ui = o2.row, t3.ci = o2.col) : 2 === i3 ? (t3.ui = o2.row, t3.ci = 0) : 1 === i3 && (t3.ui = 0, t3.ci = o2.col), Fn(t3, a2, u2, t3.ui, t3.ci));
        }
        function Pn(t3, n3, e3, i3) {
          var r2, o2, a2, u2;
          n3 || (o2 = (r2 = an(t3))[r2.length - 1], a2 = t3.ui, u2 = t3.ci, e3 && (3 === i3 ? (t3.ui = o2.row, t3.ci = o2.col) : 2 === i3 ? (t3.ui = o2.row, t3.ci = 0) : 1 === i3 && (t3.ui = 0, t3.ci = o2.col)), Fn(t3, a2, u2, t3.ui, t3.ci));
        }
        function Gn(t3) {
          return t3.hitTestType;
        }
        function Un(t3, n3, e3) {
          var i3;
          return n3.addRowColumnButtonHitInfo && (i3 = t3.K_e(Gn(e3))), i3;
        }
        function Hn(t3, n3, e3) {
          var i3 = Un(t3, n3, e3);
          return a(i3) && (i3 = t3.getCellType(n3.row, n3.col, Gn(e3), { rowSpacingIndex: e3.rowSpacingIndex, isAfterRowSpacing: e3.isAfterRowSpacing })), n3.sheet || (n3.sheet = t3), i3;
        }
        function Vn(t3) {
          var n3 = t3.WL, e3 = false;
          return n3 && n3.QP().forEach((function(t4) {
            t4 && t4.isSelected() && (e3 = true);
          })), e3;
        }
        function zn(t3, n3, e3) {
          var i3, r2 = l("span"), o2 = Q.body;
          return r2.className = e3, r2.style.font = t3, r2.style.cssFloat = "left", r2.textContent = n3, o2.insertBefore(r2, b), i3 = s(r2).width(), o2.removeChild(r2), i3;
        }
        function Yn(t3, n3, e3, i3) {
          var r2 = t3.BO();
          r2.getState(n3) ? e3.drawImage(r2.getImage(n3), i3.x, i3.y, tn(i3), $t(i3)) : r2.addImage(n3);
        }
        function Zn(t3, n3) {
          var e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = t3.Fi(), w2 = 16, M2 = an(t3);
          t3.Oi && M2.length > 0 && (u2 = (a2 = M2[M2.length - 1]).row, s2 = a2.row + a2.rowCount - 1, c2 = a2.col, f2 = a2.col + a2.colCount - 1, l2 = t3.parent, h2 = t3.options.rightToLeft, d2 = "AAAAAQCAYAAAAf8/9hAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADs", l2 && !l2.options.allowUserResize || (-1 !== u2 && -1 === c2 && t3.getRowResizable(s2) ? (v2 = t3.C0(s2), e3 = J + d2 + "MAAA7DAcdvqGQAAABaSURBVDhPY/z//z8DLsDIyAiWBKphBAtgAUxQGgPANIMAMhsdYDUAmwZchtDOC8SCgTcA5DfcgUAEoNwFo7GAPQxwJVtsYYHVBdgU4gpInF5A1oBLMwMDAwMApuAtD6Z7YxQAAAAASUVORK5CYII=", p2 = $t(i3 = t3.getCellRect(s2, cn(t3, 2) - 1, v2, -1)), g2 = h2 ? y2.BA : y2.b6 - w2, Kn(t3, s2, f2, i3.x, i3.y + p2, { rowCheck: true }) && (o2 = new r.Rect(g2, i3.y + p2 - w2 / 2, w2, w2))) : -1 === u2 && -1 !== c2 && t3.getColumnResizable(f2) && (m2 = t3.S0(f2), e3 = J + d2 + "IAAA7CARUoSoAAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAE1JREFUOE/ljtEKACAIA/v/nzZ9mFhsJPRocLEuGS4zk/iJyyP/D6gE0wrYoCqoLoUafPl8fEBln3ulSscfErk65TMjMFRBhUowosDWBoHpba8+C7w0" + X, b2 = tn(i3 = t3.getCellRect(fn(t3, 1) - 1, f2, -1, m2)), g2 = h2 ? i3.x - w2 / 2 : i3.x + b2 - w2 / 2, Kn(t3, s2, f2, i3.x + b2, i3.y, { colCheck: true }) && (o2 = new r.Rect(g2, y2.T6 - w2, w2, w2))), e3 && o2 && Yn(t3, e3, n3, o2)));
        }
        function Wn(t3) {
          var n3, e3, i3, o2, a2 = b, u2 = an(t3), s2 = u2.length;
          return t3.Oi && s2 > 0 && (n3 = u2[s2 - 1], e3 = t3.j1(n3), i3 = 17, o2 = 20, a2 = new r.Rect(e3.x + tn(e3) - i3, e3.y + $t(e3), i3, o2)), a2;
        }
        function Qn(t3, n3, e3) {
          var i3 = t3.C0(n3), o2 = t3.S0(e3), a2 = t3.dw(i3), u2 = t3.yw(o2), s2 = 0, c2 = 0, f2 = 0, l2 = 0;
          return a2.length > 0 && (s2 = a2[0].row, c2 = a2[a2.length - 1].row), u2.length > 0 && (f2 = u2[0].col, l2 = u2[u2.length - 1].col), (0, r.Ec)(s2, f2, c2 - s2 + 1, l2 - f2 + 1);
        }
        function Kn(t3, n3, e3, i3, r2, o2) {
          var a2 = t3.C0(n3), u2 = t3.S0(e3), s2 = t3.Fi(), c2 = s2.c9(a2, u2), f2 = Qn(t3, n3, e3), l2 = f2.row <= n3 && n3 <= f2.row + f2.rowCount - 1 && c2.y <= r2 && r2 <= c2.y + $t(c2), h2 = f2.col <= e3 && e3 <= f2.col + f2.colCount - 1 && c2.x <= i3 && i3 <= c2.x + tn(c2);
          return o2 && o2.colCheck ? h2 : (o2 && o2.rowCheck || h2) && l2;
        }
        function Jn(t3) {
          var n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, x2, A2, I2 = an(t3), k2 = [];
          if (t3.Oi && I2.length > 0) for (n3 = I2[I2.length - 1], e3 = t3.j1(n3), i3 = 8, o2 = t3.Fi(), a2 = n3.row, u2 = n3.row + n3.rowCount - 1, s2 = n3.col, c2 = n3.col + n3.colCount - 1, -1 !== n3.row && -1 !== n3.col ? (Kn(t3, a2, s2, e3.x, e3.y) && (k2[0] = new r.Rect(e3.x - i3, e3.y - i3, 2 * i3, 2 * i3)), Kn(t3, u2, c2, e3.x + tn(e3), e3.y + $t(e3)) && (k2[1] = new r.Rect(e3.x + tn(e3) - i3, e3.y + $t(e3) - i3, 2 * i3, 2 * i3))) : -1 !== n3.row ? (f2 = o2.c9(1, 0), l2 = o2.c9(1, 1), h2 = f2.x + (tn(f2) + tn(l2)) / 2 - i3, d2 = cn(t3) - 1 - un(t3), (p2 = (v2 = t3.yw(1)).findCol(d2)) && (m2 = (g2 = t3.yw(0))[0] || v2[0]) && (h2 = m2.x + (p2.x + tn(p2) - m2.x) / 2 - i3), Kn(t3, a2, s2, h2 + i3, e3.y, { rowCheck: true }) && (k2[0] = new r.Rect(h2, e3.y - i3, 2 * i3, 2 * i3)), Kn(t3, u2, c2, h2 + i3, e3.y + $t(e3), { rowCheck: true }) && (k2[1] = new r.Rect(h2, e3.y + $t(e3) - i3, 2 * i3, 2 * i3))) : -1 !== n3.col && (f2 = o2.c9(0, 1), l2 = o2.c9(1, 1), y2 = f2.y + ($t(f2) + $t(l2)) / 2 - i3, w2 = fn(t3) - 1 - sn(t3), (C2 = (M2 = t3.dw(1)).findRow(w2)) && (T2 = (S2 = t3.dw(0))[0] || M2[0]) && (y2 = T2.y + (C2.y + $t(C2) - T2.y) / 2 - i3), Kn(t3, a2, s2, e3.x, y2 + i3, { colCheck: true }) && (k2[0] = new r.Rect(e3.x - i3, y2, 2 * i3, 2 * i3)), Kn(t3, u2, c2, e3.x + tn(e3), y2 + i3, { colCheck: true }) && (k2[1] = new r.Rect(e3.x + tn(e3) - i3, y2, 2 * i3, 2 * i3))), x2 = void 0, A2 = k2.length - 1; A2 >= 0; A2--) (!(x2 = k2[A2]) || x2.x < 0 || x2.y < 0) && (k2[A2] = b);
          return k2;
        }
        function Xn(t3, n3, e3) {
          var i3, o2, a2, u2;
          if ((0, r.needPaintSelection)(t3)) {
            if (t3.isEditing() || !n3 || 0 === t3.selectionPolicy()) return;
            if (a2 = void 0, (o2 = (i3 = Jn(t3)).length) > 0) {
              for (e3.save(), e3.fillStyle = t3.aR() || "white", e3.strokeStyle = t3.getSelectionBorderColor(), u2 = 0; u2 < o2; u2++) (a2 = i3[u2]) && (e3.beginPath(), e3.arc(a2.x + tn(a2) / 2, a2.y + $t(a2) / 2, tn(a2) / 2, 0, 2 * Math.PI, false), e3.fill(), e3.stroke());
              e3.restore();
            }
          }
        }
        function qn(t3, n3) {
          var e3, i3 = Wn(t3);
          i3 && Yn(t3, e3 = J + "EAAAATCAIAAAD5x3GmAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2 + oZAAAAGhJREFUOE / djkEOwCAIBHk6P98u1lKo1diEU + dggOyAAkC + YPl / Onx3WDmiytm4aulQoKba + 4uiO77YhHDH5SqnRa0If / Nhq0fnjPob2h5oVXJI0rJA3h1ya1kgU4f4nQfVzozk7APgAIEqATZbalz1" + X, n3, i3);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.QAt = n2.NZ = n2.IZ = n2.TouchToolStripSeparator = n2.TouchToolStripItem = n2.TouchToolStrip = n2.TouchEventHandler = n2.ZZ = n2.ManipulationStartingEventArgs = n2.ManipulationStartedEventArgs = n2.ManipulationDeltaEventArgs = n2.ManipulationCompletedEventArgs = n2.QZ = n2.TouchEventProvider = n2.SR = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("./dist/plugins/touch/touch.res.en.js"), n2.SR = { en: o }, a = i2.Common.lt.ht, u = r.zc, c = (s = r.GC$).extend, f = s.isEmptyObject, l = r.mt.En, h = r.mt.vi, d = r.mt.Tt.mozilla, v = r.I.fl, p = r.mt.pi(), g = p.ipad, m = g || p.iphone, b = null, y = void 0, w = Math.abs, M = Math.min, C = Math.max, S = Math.pow, T = Math.atan2, x = Math.PI, A = Math.round, I = Math.sqrt, k = Math.atan, N = Math.log, j = Math.floor, D = 100, _ = "touch", O = "none", E = "MSPointerDown", R = "MSPointerMove", L = "MSPointerUp", F = "pointerdown", B = "pointermove", P = "pointerup", G = "touchstart", U = "touchmove", H = "touchend", V = "MSPOINTER_TYPE_TOUCH", z = isNaN, Y = parseInt, Z = parseFloat, W = window, Q = document, K = W.gcGlobal, J = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB", X = "AAAAAElFTkSuQmCC", q = 1, r.Of.touch = true, $ = new i2.Common.ResourceManager(n2.SR, "Touch"), tt = $.getResource.bind($), nt = 400, et = 1e3, it = 20, rt = (function() {
          function t3() {
            var t4 = this;
            t4.j0t = [], t4.WTt = { length: 0 }, t4.QTt = new ot(), t4.KTt = new at();
          }
          return t3.prototype.KAt = function(t4) {
            this.QTt.KAt = t4;
          }, t3.prototype.JAt = function(t4) {
            this.QTt.JAt = t4;
          }, t3.prototype.XAt = function(t4) {
            var n3 = this;
            n3.QTt.XAt = function(e3) {
              if (t4) {
                t4(e3);
                var i3 = n3.AZ;
                i3 && i3.qAt();
              }
            };
          }, t3.prototype.$At = function(t4) {
            this.QTt.$At = t4;
          }, t3.prototype.tIt = function(t4) {
            this.QTt.tIt = t4;
          }, t3.prototype.nIt = function(t4) {
            this.KTt.nIt = t4;
          }, t3.prototype.eIt = function(t4) {
            this.KTt.eIt = t4;
          }, t3.prototype.iIt = function(t4) {
            this.KTt.iIt = t4;
          }, t3.prototype.rIt = function(t4) {
            this.oIt = t4;
          }, t3.prototype.aIt = function(t4) {
            this.uIt = t4;
          }, t3.prototype.sIt = function(t4, n3) {
            var e3 = n3 ? n3.RS : this.cIt.RS;
            return r.mt.T0(t4, e3);
          }, t3.prototype.fIt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2, s2 = this, c2 = n3.pointerType, f2 = n3.target, l2 = n3.offsetX, d2 = n3.offsetY;
            c2 !== n3[V] && c2 !== _ || (i3 = (e3 = s2.sIt(f2, t4)).I0, r2 = e3.A0, (o2 = s2.lIt(t4, f2, n3.pointerId, new ut(l2 + i3, d2 + r2), n3.timeStamp)) && h(n3), "sheet" === s2.cIt.zAt && (a2 = n3.pageX - (l2 + i3), u2 = n3.pageY - (d2 + r2), s2.cIt.RS.canvasOffset = { top: u2, left: a2 }));
          }, t3.prototype.hIt = function(t4) {
            var n3, e3, i3 = this, r2 = t4.pointerType, o2 = t4.pointerId;
            if (r2 === t4[V] || r2 === _) {
              if (i3.WTt[o2] === y) return false;
              n3 = i3.sIt(t4.target), (e3 = i3.iE(o2, new ut(t4.offsetX + n3.I0, t4.offsetY + n3.A0), t4.timeStamp)) && h(t4);
            }
          }, t3.prototype.dIt = function(t4) {
            var n3, e3, i3 = this, r2 = t4.pointerType, o2 = t4.pointerId;
            if (r2 === t4[V] || r2 === _) {
              if (i3.WTt[o2] === y) return false;
              n3 = i3.sIt(t4.target), (e3 = i3._up(o2, new ut(t4.offsetX + n3.I0, t4.offsetY + n3.A0))) && h(t4);
            }
          }, t3.prototype.mIt = function(t4) {
            var n3, e3, i3 = this, r2 = t4.pointerType, o2 = t4.pointerId;
            if (r2 === t4[V] || r2 === _) {
              if (i3.WTt[o2] === y) return false;
              n3 = i3.sIt(t4.target), (e3 = i3.gIt(o2, new ut(t4.offsetX + n3.I0, t4.offsetY + n3.A0))) && h(t4);
            }
          }, t3.prototype.pIt = function(t4, n3) {
            var e3, i3, r2, o2 = ln(t4.RS), a2 = n3.changedTouches, u2 = false;
            for (e3 = 0; e3 < a2.length; e3++) i3 = a2[e3], r2 = d ? en() : n3.timeStamp, u2 = this.lIt(t4, n3.target, i3.identifier, new ut(i3.pageX - o2.I0, i3.pageY - o2.A0), r2) || u2;
            u2 && h(n3);
          }, t3.prototype.bIt = function(t4) {
            var n3, e3, i3, r2 = this, o2 = ln(r2.cIt.RS), a2 = t4.changedTouches, u2 = false;
            for (n3 = 0; n3 < a2.length; n3++) e3 = a2[n3], i3 = d ? en() : t4.timeStamp, u2 = r2.iE(e3.identifier, new ut(e3.pageX - o2.I0, e3.pageY - o2.A0), i3) || u2;
            u2 && h(t4);
          }, t3.prototype.yIt = function(t4) {
            var n3, e3, i3 = this, r2 = ln(i3.cIt.RS), o2 = t4.changedTouches, a2 = false;
            for (n3 = 0; n3 < o2.length; n3++) e3 = o2[n3], a2 = i3._up(e3.identifier, new ut(e3.pageX - r2.I0, e3.pageY - r2.A0)) || a2;
            a2 && h(t4);
          }, t3.prototype.wIt = function(t4) {
            var n3, e3, i3 = this, r2 = ln(i3.cIt.RS), o2 = t4.changedTouches, a2 = false;
            for (n3 = 0; n3 < o2.length; n3++) e3 = o2[n3], a2 = i3.gIt(e3.identifier, new ut(e3.pageX - r2.I0, e3.pageY - r2.A0)) || a2;
            a2 && h(t4);
          }, t3.prototype.MIt = function(t4) {
            var n3, e3, i3 = this, r2 = i3.cIt, o2 = i3.CIt;
            r2 !== o2 && (n3 = s(r2.RS).offset(), e3 = s(o2.RS).offset(), t4.X += n3.left - e3.left, t4.Y += n3.top - e3.top);
          }, t3.prototype.SIt = function(t4, n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = u2.j0t;
            for (u2.CIt = b, u2.AZ = b, i3 = 0; i3 < s2.length; i3++) if (s2[i3] === t4) {
              if (r2 = s2[i3], o2 = b, a2 = b, r2._Z && !r2._Z()) {
                for (i3 = 0; i3 < s2.length; i3++) if ((e3 = s2[i3]) !== r2 && e3.YAt >= 0 && e3.YAt < r2.YAt && (!e3._Z || e3._Z())) {
                  o2 = e3;
                  break;
                }
                if (o2 === b) return false;
              }
              if (r2.EZ && !r2.EZ()) {
                for (i3 = 0; i3 < s2.length; i3++) if ((e3 = s2[i3]) !== r2 && e3.YAt >= 0 && e3.YAt < r2.YAt && (!e3.EZ || e3.EZ())) {
                  a2 = e3;
                  break;
                }
                if (a2 === b) return false;
              }
              o2 === b && (o2 = r2), a2 === b && (a2 = r2), u2.cIt = r2, u2.CIt = o2, u2.TIt = a2, u2.KAt(a2.jZ || b), u2.JAt(o2.RZ || b), u2.tIt(o2.LZ || b), u2.$At(o2.AIt || b), u2.XAt(o2.PZ || b), u2.nIt(a2.UZ || b), u2.eIt(a2.ZAt || b), u2.iIt(a2.IIt || b), u2.rIt(o2.oIt || b), u2.aIt(o2.uIt || b), o2.HAt && (u2.AZ = r2.HAt);
              break;
            }
            return true;
          }, t3.prototype.lIt = function(t4, n3, e3, i3, r2) {
            var o2 = this;
            return o2.WTt[e3] === y && (!(0 === o2.WTt.length && !o2.SIt(t4, n3)) && (!!o2.CIt && (o2.WTt.length >= o2.CIt.VAt || (!o2.AZ || !o2.AZ.xIt()) && (o2.MIt(i3), o2.AZ && 0 === o2.WTt.length && o2.AZ.NIt(), o2.WTt[e3] = { id: e3, time: en(), position: i3 }, o2.WTt.length++, o2.QTt.kIt(n3, e3, i3, r2), o2.QTt.DIt(e3, i3, o2.WTt.length, r2), 1 === o2.WTt.length && o2.KTt.DIt(i3), 1 === o2.WTt.length && o2.oIt && o2.oIt({ JZ: i3 }), true))));
          }, t3.prototype.iE = function(t4, n3, e3) {
            var i3 = this;
            return i3.WTt[t4] !== y && ((!i3.AZ || !i3.AZ._It()) && (i3.MIt(n3), i3.WTt[t4] = { id: t4, time: en(), position: n3 }, i3.QTt.EIt(t4, n3, e3), true));
          }, t3.prototype._up = function(t4, n3) {
            var e3 = this;
            return e3.WTt[t4] !== y && (delete e3.WTt[t4], e3.WTt.length--, (!e3.AZ || !e3.AZ.jIt()) && (e3.MIt(n3), e3.QTt.OIt(t4), e3.QTt.RIt(), 0 === e3.WTt.length && (e3.KTt.OIt(n3), e3.KTt.RIt()), 0 === e3.WTt.length && e3.uIt && e3.uIt({ JZ: n3 }), e3.AZ && 0 === e3.WTt.length && 0 === e3.QTt._process && e3.AZ.qAt(), true));
          }, t3.prototype.gIt = function(t4, n3) {
            return this._up(t4, n3);
          }, t3.prototype.aW = function(t4, n3) {
            var e3, o2, u2, c2, f2, l2 = this, h2 = "." + t4.zAt, d2 = ".gcSheet", v2 = E + d2, p2 = R + d2 + h2, g2 = L + d2 + h2, m2 = "MSPointerCancel" + d2 + h2, b2 = "MSLostPointerCapture" + d2 + h2, y2 = F + d2, w2 = B + d2 + h2, M2 = P + d2 + h2, C2 = "LostPointerCapture" + d2 + h2, S2 = "pointercancel" + d2 + h2, T2 = G + d2, x2 = U + d2, A2 = H + d2, I2 = "touchcancel" + d2;
            function k2() {
              s(Q).bind(p2, D2).bind(g2, _2).bind(w2, D2).bind(M2, _2).bind(m2, V2).bind(b2, V2).bind(C2, V2).bind(S2, V2);
            }
            function N2() {
              s(Q).unbind(p2).unbind(w2).unbind(g2).unbind(M2).unbind(m2).unbind(S2).unbind(b2).unbind(C2);
            }
            function j2(n4) {
              k2(), l2.fIt(t4, n4);
            }
            function D2(t5) {
              l2.hIt(t5);
            }
            function _2(t5) {
              l2.dIt(t5), 0 === l2.WTt.length && N2();
            }
            function V2(t5) {
              l2.mIt(t5), 0 === l2.WTt.length && N2();
            }
            e3 = t4.RS, o2 = l2.j0t, (u2 = i2.Common.Uf.hD(o2, t4)) >= 0 && n3 || u2 < 0 && !n3 || (c2 = r.mt.m0(), n3 ? c2 ? (f2 = e3.style, a(f2.msTouchAction) || (f2.msTouchAction = O), a(f2.touchAction) || (f2.touchAction = O), s(e3).bind(v2, j2).bind(y2, j2)) : (s(e3).bind(T2, (function(n4) {
              l2.pIt(t4, n4);
            })), s(e3).bind(x2, (function(t5) {
              l2.bIt(t5);
            })).bind(A2, (function(t5) {
              l2.yIt(t5);
            })).bind(I2, (function(t5) {
              l2.wIt(t5);
            }))) : c2 ? s(e3).unbind(v2).unbind(y2) : s(e3).unbind(T2).unbind(x2).unbind(A2).unbind(I2), n3 ? o2.push(t4) : o2.splice(u2, 1));
          }, t3.prototype.L0 = function() {
            var t4, n3 = this, e3 = n3.j0t;
            for (t4 = e3.length - 1; t4 >= 0; t4--) n3.aW(e3[t4], false);
          }, t3;
        })(), n2.TouchEventProvider = rt, ot = (function() {
          function t3() {
            var t4 = this;
            t4.qTt = 0, t4.$Tt = 0, t4.tAt = 1, t4.nAt = 0, t4.eAt = 0, t4._process = 0, t4.rAt = 511, t4.oAt = new vt(), t4.aAt = 20, t4.uAt = new st();
          }
          return t3.prototype.kIt = function(t4, n3, e3, i3) {
            var r2, o2 = this;
            3 === o2._process && o2.BIt(true), o2.jAt = 2 === o2._process && 1 === o2.oAt.LIt(), o2.FIt = t4, (r2 = {})._ID = n3, r2.PIt = e3, r2.GIt = e3, o2.oAt.UIt(r2), o2.HIt = i3, o2.oAt.LIt() > 1 && (o2.zIt = false, o2.VIt = false, 1 === o2._process && o2.YIt());
          }, t3.prototype.DIt = function(t4, n3, e3, i3) {
            0 === this._process && 1 === e3 && this.ZIt(this.oAt.WIt(0).GIt);
          }, t3.prototype.EIt = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2 = this;
            if (0 !== f2.rAt && f2.oAt.QIt(t4)) {
              if (1 === f2._process && 1 === f2.oAt.LIt()) {
                if (i3 = f2.KIt(), !f2.JIt(1) && !f2.JIt(2) && !i3) return;
                if (rn(n3, r2 = f2.oAt.XIt(t4).GIt)) return;
                o2 = w(n3.X - r2.X), a2 = w(n3.Y - r2.Y), f2.qIt(o2, a2);
              }
              if (!(e3 - f2.HIt < it)) {
                if (f2.oAt.XIt(t4).$It = n3, (u2 = f2.oAt.LIt()) > 1) {
                  for (s2 = 0; s2 < u2; s2++) if (!(c2 = f2.oAt.WIt(s2)).$It) return;
                }
                for (f2.txt(e3), f2.HIt = e3, u2 = f2.oAt.LIt(), s2 = 0; s2 < u2; s2++) (c2 = f2.oAt.WIt(s2)).PIt = c2.$It, c2.$It = b;
              }
            }
          }, t3.prototype.RIt = function() {
            var t4 = this;
            t4.nxt && (t4.ixt(t4.nxt), t4.nxt = b);
          }, t3.prototype.OIt = function(t4) {
            var n3 = this;
            n3.oAt.QIt(t4) && (n3.oAt.rxt(t4), 2 === n3._process ? 0 === n3.oAt.LIt() && (n3.JIt(64) || n3.JIt(256) || n3.JIt(128) ? n3.oxt() : n3.BIt(true)) : 3 === n3._process ? n3.BIt(true) : 1 === n3._process && n3.BIt(false));
          }, t3.prototype.txt = function(t4) {
            var n3, e3, i3, r2, o2, a2 = this, u2 = a2.axt(), s2 = u2.uxt, c2 = u2.sxt, f2 = u2.u_, l2 = a2.cxt(), h2 = l2.L0t, d2 = l2.fxt, v2 = l2.hAt;
            if (a2.qTt += s2, a2.$Tt += c2, a2.tAt *= d2, a2.nAt += h2, a2.eAt += v2, (n3 = {}).hAt = v2, n3.L0t = h2, n3.lxt = t4 - a2.HIt, n3.uxt = s2, n3.sxt = c2, a2.uAt.hxt(n3), a2.dxt = f2, 1 === a2._process || 2 === a2._process) {
              if (1 === a2._process && (e3 = a2.YIt())) return;
              if ((i3 = new dt()).CAt = v2, i3.MAt = h2, i3.tW = d2, i3.wAt = new ut(s2, c2), r2 = new ct(a2.uAt), o2 = new mt(a2.FIt, a2.vxt(), i3, false, f2, r2), a2.mxt(o2), o2.gxt) return void a2.BIt(true);
            }
          }, t3.prototype.YIt = function() {
            var t4, n3 = this;
            return n3._process = 2, t4 = new yt(n3.FIt, n3.oAt.LIt(), n3.vxt(), n3.oAt.WIt(0).GIt), n3.pxt(t4), !!t4.gxt && (n3.BIt(true), true);
          }, t3.prototype.qIt = function(t4, n3) {
            var e3 = gn(t4, n3);
            this.zIt = e3.JTt, this.VIt = e3.XTt;
          }, t3.prototype.axt = function() {
            var t4 = 0, n3 = 0, e3 = this.bxt(), i3 = e3.yxt, r2 = e3.wxt, o2 = new ut(i3.X, i3.Y);
            return { uxt: t4 = i3.X - r2.X, sxt: n3 = i3.Y - r2.Y, u_: o2 };
          }, t3.prototype.cxt = function() {
            var t4, n3 = this, e3 = 0, i3 = 1, r2 = 0;
            return n3.JIt(16) && 1 === n3.oAt.LIt() && n3.KIt() && (e3 = vn(n3.oAt.WIt(0).$It, n3.oAt.WIt(0).PIt, n3.fMt)), n3.oAt.LIt() > 1 && (e3 = (t4 = n3.Mxt()).L0t, i3 = t4.fxt, r2 = t4.hAt), { L0t: e3 = e3 / x * 180, fxt: i3, hAt: r2 };
          }, t3.prototype.Mxt = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.bxt(), d2 = h2.yxt, v2 = h2.wxt, p2 = l2.KIt(), g2 = p2 ? l2.fMt.ZJr : new ut(0, 0), m2 = 0, b2 = 1, y2 = 0, w2 = 0, M2 = 0, C2 = 0, S2 = 0, T2 = l2.oAt.LIt();
            for (t4 = 0; t4 < T2; t4++) e3 = (n3 = l2.oAt.WIt(t4)).$It, i3 = n3.PIt, r2 = dn(e3, d2), o2 = dn(i3, v2), a2 = p2 ? new ut(i3.X - g2.X, i3.Y - g2.Y) : new ut(i3.X - v2.X, i3.Y - v2.Y), u2 = p2 ? new ut(e3.X - g2.X, e3.Y - g2.Y) : new ut(e3.X - d2.X, e3.Y - d2.Y), s2 = dn(i3, g2), c2 = dn(e3, g2), o2 >= l2.aAt && r2 >= l2.aAt && (M2++, C2 += r2, S2 += o2, (!p2 || s2 >= l2.aAt) && c2 >= l2.aAt && (m2 += f2 = hn(a2, u2), w2++));
            return w2 > 0 && l2.JIt(16) ? m2 /= w2 : m2 = 0, M2 > 0 && l2.JIt(32) ? (l2.jAt || (b2 = C2 / S2), y2 = (C2 - S2) / M2, l2.Cxt = C2 / M2) : l2.Cxt = 0, { L0t: m2, fxt: b2, hAt: y2 };
          }, t3.prototype.JIt = function(t4) {
            return 0 !== (this.rAt & t4);
          }, t3.prototype.bxt = function() {
            var t4, n3, e3, i3, r2, o2, a2 = 0, u2 = 0, s2 = 0, c2 = 0, f2 = this.oAt, l2 = f2.LIt();
            for (t4 = 0; t4 < l2; t4++) e3 = (n3 = f2.WIt(t4)).PIt, i3 = n3.$It, a2 += e3.X, u2 += e3.Y, s2 += i3.X, c2 += i3.Y;
            return r2 = new ut(a2 / l2, u2 / l2), { yxt: o2 = new ut(s2 / l2, c2 / l2), wxt: r2 };
          }, t3.prototype.KIt = function() {
            var t4 = this.fMt;
            return t4 && !z(t4.WJr);
          }, t3.prototype.ZIt = function(t4) {
            var n3 = this, e3 = new wt(n3.FIt, n3.rAt, b, t4);
            return e3.KZ = 511, n3.Sxt(e3), n3.Txt = e3.KZ, 0 === e3.KZ ? (n3.BIt(false), false) : (n3.rAt = e3.KZ, n3.fMt = e3.DAt, n3._process = 1, true);
          }, t3.prototype.BIt = function(t4) {
            var n3, e3 = this, i3 = 3 === e3._process;
            e3._process = 0, e3.Axt && (nn(e3.Axt), e3.Axt = b), t4 && (n3 = new gt(e3.FIt, e3.vxt(), i3, mn(e3.dxt), new ct(e3.uAt)), 3 === e3._process ? e3.nxt = n3 : e3.ixt(n3)), e3.uAt.Ixt(), e3.oAt.Ixt(), e3.fMt = b, e3.qTt = 0, e3.$Tt = 0, e3.tAt = 1, e3.nAt = 0, e3.eAt = 0, e3.zIt = false, e3.VIt = false, e3.rAt = 0;
          }, t3.prototype.oxt = function() {
            var t4, n3, e3 = this, i3 = {}, r2 = new ct(e3.uAt);
            i3.xxt = e3.JIt(64) ? r2.Nxt().X : 0, i3.kxt = e3.JIt(64) ? r2.Nxt().Y : 0, i3.Dxt = e3.JIt(256) ? r2.CAt() : 0, i3._xt = e3.JIt(128) ? r2.Ext() : 0, 0 !== i3.xxt || 0 !== i3.kxt || 0 !== i3.Dxt || 0 !== i3._xt ? (i3.jxt = new ht(i3.xxt, i3.kxt), i3.IAt = new ft(i3.Dxt), i3.xAt = new lt(i3._xt), r2 = new ct(b, i3.xxt, i3.kxt, i3._xt, i3.Dxt), t4 = new bt(e3.FIt, e3.vxt(), new dt(), r2, i3.IAt, i3.xAt, i3.jxt), e3.Oxt(t4), i3.jxt = t4.NAt, i3.IAt = t4.IAt, i3.xAt = t4.xAt, i3.jxt.pAt <= 0 && i3.jxt.bAt <= 0 && i3.jxt.Rxt(3e-3), i3.IAt.Bxt() <= 0 && i3.IAt.Rxt(2e-3), i3.xAt.Bxt() <= 0 && i3.xAt.Rxt(3e-3), n3 = en(), i3.Lxt = n3, i3.Fxt = n3, i3.Pxt = 0, i3.Gxt = 0, e3._process = 3, e3.Axt = W.setInterval((function() {
              try {
                e3.Uxt(i3);
              } catch (t5) {
              }
            }), 20)) : e3.BIt(true);
          }, t3.prototype.Uxt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = en(), g2 = p2 - t4.Fxt;
            if (0 !== g2) {
              if (n3 = t4.xxt, e3 = t4.kxt, i3 = t4.Dxt, r2 = t4._xt, t4.xxt = v2.Hxt(g2, t4.jxt.pAt, t4.xxt), t4.kxt = v2.Hxt(g2, t4.jxt.bAt, t4.kxt), t4.Dxt = v2.Hxt(g2, t4.IAt.Bxt(), t4.Dxt), t4._xt = v2.Hxt(g2, t4.xAt.Bxt(), t4._xt), n3 = (n3 + t4.xxt) / 2, e3 = (e3 + t4.kxt) / 2, i3 = (i3 + t4.Dxt) / 2, r2 = (r2 + t4._xt) / 2, t4.Fxt = p2, o2 = false, pn(n3) && pn(e3) && pn(i3) && pn(r2) && (o2 = true), a2 = g2 * n3, u2 = g2 * e3, s2 = g2 * i3, c2 = g2 * r2, f2 = 1, v2.Cxt > 0 && (v2.Cxt + 2 * s2 < 0 && (s2 = -v2.Cxt / 2 + 1), 0 !== v2.Cxt && (f2 = (v2.Cxt + 2 * s2) / v2.Cxt)), v2.eAt += s2, v2.nAt += c2, v2.qTt += a2, v2.$Tt += u2, v2.tAt *= f2, v2.Cxt += s2, v2.dxt = new ut(v2.dxt.X + a2, v2.dxt.Y + u2), t4.Pxt += a2, t4.Gxt += u2, o2) {
                if (a2 = A(t4.Pxt), u2 = A(t4.Gxt), pn(a2) && pn(u2)) return void v2.BIt(true);
              } else w(t4.Pxt) >= 1 && (a2 = t4.Pxt, t4.Pxt -= a2), w(t4.Gxt) >= 1 && (u2 = t4.Gxt, t4.Gxt -= u2);
              (l2 = new dt()).wAt = new ut(a2, u2), l2.tW = f2, l2.CAt = s2, l2.MAt = c2, h2 = new ct(b, t4.xxt, t4.kxt, t4._xt, t4.Dxt), d2 = new mt(v2.FIt, v2.vxt(), l2, true, mn(v2.dxt), h2), v2.mxt(d2), (d2.gxt || o2) && v2.BIt(true);
            }
          }, t3.prototype.Hxt = function(t4, n3, e3) {
            return pn(e3) ? 0 : (((i3 = e3 < 0 ? e3 + n3 * t4 : e3 - n3 * t4) < 0 && e3 > 0 || i3 > 0 && e3 < 0) && (i3 = 0), i3);
            var i3;
          }, t3.prototype.vxt = function() {
            var t4 = this, n3 = new dt();
            return n3.CAt = t4.eAt, n3.MAt = t4.nAt, n3.tW = t4.tAt, n3.wAt = new ut(t4.qTt, t4.$Tt), n3;
          }, t3.prototype.zxt = function(t4, n3, e3, i3) {
            var r2, o2 = this, a2 = new dt(), u2 = new dt(), s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = o2.JIt(4) && o2.zIt, d2 = o2.JIt(8) && o2.VIt;
            return !o2.JIt(1) || d2 || t4 && !o2.JIt(64) || (a2.wAt.X = n3.wAt.X, u2.wAt.X = e3.wAt.X, s2 = i3.Nxt().X), !o2.JIt(2) || h2 || t4 && !o2.JIt(64) || (a2.wAt.Y = n3.wAt.Y, u2.wAt.Y = e3.wAt.Y, c2 = i3.Nxt().Y), !o2.JIt(32) || t4 && !o2.JIt(256) ? (a2.tW = n3.tW, u2.tW = 1) : (a2.tW = n3.tW, a2.CAt = n3.CAt, u2.tW = e3.tW, u2.CAt = e3.CAt, l2 = i3.CAt()), !o2.JIt(16) || t4 && !o2.JIt(128) || (a2.MAt = n3.MAt, u2.MAt = e3.MAt, f2 = i3.Ext()), r2 = new ct(b, s2, c2, f2, l2), new pt(a2, u2, r2);
          }, t3.prototype.Sxt = function(t4) {
            this.KAt && t4 && this.KAt(t4);
          }, t3.prototype.pxt = function(t4) {
            this.JAt && t4 && this.JAt(t4);
          }, t3.prototype.ixt = function(t4) {
            var n3, e3 = this;
            e3.XAt && t4 && (n3 = e3.zxt(false, t4.nW, t4.nW, t4.TAt), t4.nW = n3.nW, t4.TAt = n3.TAt, e3.XAt(t4));
          }, t3.prototype.Oxt = function(t4) {
            var n3, e3 = this;
            e3.$At && t4 && (n3 = e3.zxt(false, t4.nW, t4.SAt, t4.TAt), t4.nW = n3.nW, t4.SAt = n3.SAt, t4.TAt = n3.TAt, e3.$At(t4));
          }, t3.prototype.mxt = function(t4) {
            var n3, e3 = this;
            e3.tIt && t4 && (n3 = e3.zxt(t4.AAt, t4.nW, t4.SAt, t4.TAt), t4.nW = n3.nW, t4.SAt = n3.SAt, t4.TAt = n3.TAt, e3.tIt(t4));
          }, t3;
        })(), at = (function() {
          function t3() {
          }
          return t3.prototype.DIt = function(t4) {
            var n3, e3 = this;
            e3.Vxt++, e3.Vxt > 1 || (n3 = en(), e3.Yxt && rn(t4, e3.Yxt) && n3 - e3.Zxt < nt ? e3.DU++ : (e3.Yxt = t4, e3.DU = 1), e3.Wxt = t4, e3.Zxt = n3);
          }, t3.prototype.RIt = function() {
            var t4 = this;
            t4.nxt && (t4.nxt instanceof Mt ? t4.Qxt(t4.nxt) : t4.nxt instanceof Ct && t4.Kxt(t4.nxt), t4.nxt = b);
          }, t3.prototype.OIt = function(t4) {
            var n3, e3 = this;
            e3.Vxt--, e3.Vxt > 0 || (n3 = en(), rn(t4, e3.Wxt) ? n3 - e3.Zxt > et ? e3.nxt = new Ct(e3.Wxt) : e3.DU > 1 ? (e3.DU = 0, e3.Jxt(new St(e3.Yxt)), e3.Yxt = b) : e3.nxt = new Mt(e3.Wxt) : e3.Yxt = b);
          }, t3.prototype.Xxt = function() {
            this.Yxt = b;
          }, t3.prototype.Qxt = function(t4) {
            this.nIt && t4 && this.nIt(t4);
          }, t3.prototype.Jxt = function(t4) {
            this.eIt && t4 && this.eIt(t4);
          }, t3.prototype.Kxt = function(t4) {
            this.iIt && t4 && this.iIt(t4);
          }, t3;
        })(), ut = /* @__PURE__ */ (function() {
          function t3(t4, n3) {
            this.X = t4, this.Y = n3;
          }
          return t3;
        })(), n2.QZ = ut, st = (function() {
          function t3() {
            var t4 = this;
            t4.DU = 0, t4.ak = 0, t4.sAt = 10, t4.cAt = [];
          }
          return t3.prototype.qxt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2 = this;
            if (0 === u2.DU) return 0;
            for (n3 = 0, e3 = (1 + u2.DU) * u2.DU / 2, i3 = u2.DU - 1; i3 >= 0; i3--) r2 = 0, o2 = u2.$xt(i3), 0 === t4 ? r2 = o2.uxt : 1 === t4 ? r2 = o2.sxt : 2 === t4 ? r2 = o2.hAt : 3 === t4 && (r2 = o2.L0t), a2 = u2.tNt(r2, o2.lxt), n3 += a2 *= i3 + 1;
            return n3 / e3;
          }, t3.prototype.tNt = function(t4, n3) {
            return t4 / n3;
          }, t3.prototype.$xt = function(t4) {
            return this.cAt[this.nNt(t4)];
          }, t3.prototype.eNt = function() {
            return this.cAt[this.DU - 1];
          }, t3.prototype.hxt = function(t4) {
            var n3, e3, i3 = this;
            for (10 === i3.DU && i3.iNt(), i3.DU++, i3.cAt[i3.nNt(i3.DU - 1)] = t4, n3 = it * i3.sAt, e3 = 0; e3 < i3.DU; e3++) t4.lxt - i3.cAt[e3].lxt > n3 && (i3.iNt(), e3--);
          }, t3.prototype.iNt = function() {
            var t4 = this;
            t4.ak++, t4.ak === t4.sAt && (t4.ak = 0), t4.DU--;
          }, t3.prototype.Ixt = function() {
            this.DU = 0;
          }, t3.prototype.nNt = function(t4) {
            return (this.ak + t4) % this.sAt;
          }, t3;
        })(), ct = (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            t4 ? o2.cAt = t4 : (o2.fAt = new ut(n3, e3), o2.lAt = i3, o2.hAt = r2);
          }
          return t3.prototype.Nxt = function() {
            var t4 = this;
            return t4.fAt || (t4.fAt = new ut(t4.cAt.qxt(0), t4.cAt.qxt(1))), t4.fAt;
          }, t3.prototype.Ext = function() {
            var t4 = this;
            return a(t4.lAt) && (t4.lAt = t4.cAt.qxt(3)), t4.lAt;
          }, t3.prototype.CAt = function() {
            var t4 = this;
            return a(t4.hAt) && (t4.hAt = t4.cAt.qxt(2)), t4.hAt;
          }, t3;
        })(), ft = (function() {
          function t3(t4) {
            this.dAt = t4, this.vAt = 0;
          }
          return t3.prototype.Bxt = function() {
            var t4 = this, n3 = t4.QJr, e3 = t4.KJr, i3 = t4.dAt;
            return z(n3) || 0 === n3 ? z(e3) ? t4.vAt : e3 : 0.5 * i3 * i3 / n3;
          }, t3.prototype.Rxt = function(t4) {
            this.vAt = t4;
          }, t3;
        })(), lt = (function() {
          function t3(t4) {
            this.dAt = t4, this.vAt = 0;
          }
          return t3.prototype.Bxt = function() {
            var t4 = this, n3 = t4.JJr, e3 = t4.KJr, i3 = t4.dAt;
            return z(n3) || 0 === n3 ? z(e3) ? t4.vAt : e3 : 0.5 * i3 * i3 / n3;
          }, t3.prototype.Rxt = function(t4) {
            this.vAt = t4;
          }, t3;
        })(), ht = (function() {
          function t3(t4, n3) {
            var e3 = this;
            e3.mAt = t4, e3.gAt = n3, e3.pAt = 0, e3.bAt = 0, e3.vAt = 0, e3.yAt = I(t4 * t4 + n3 * n3);
          }
          return t3.prototype.rNt = function() {
            var t4 = this, n3 = t4.XJr, e3 = t4.yAt, i3 = t4.mAt, r2 = t4.gAt, o2 = t4.Bxt();
            z(n3) || 0 === n3 ? z(o2) || 0 === o2 ? (t4.pAt = 0, t4.bAt = 0) : (t4.pAt = o2 * w(i3) / e3, t4.bAt = o2 * w(r2) / e3) : (t4.pAt = 0.5 * e3 * w(i3) / n3, t4.bAt = 0.5 * e3 * w(r2) / n3);
          }, t3.prototype.Bxt = function() {
            var t4 = this, n3 = t4.KJr;
            return z(n3) && z(t4.XJr) ? t4.vAt : n3;
          }, t3.prototype.Rxt = function(t4) {
            this.vAt = t4, this.rNt();
          }, t3;
        })(), dt = /* @__PURE__ */ (function() {
          function t3() {
            var t4 = this;
            t4.wAt = new ut(0, 0), t4.tW = 0, t4.MAt = 0, t4.CAt = 0;
          }
          return t3;
        })(), vt = (function() {
          function t3() {
            this.wY = [];
          }
          return t3.prototype.QIt = function(t4) {
            var n3, e3, i3 = this.wY;
            for (n3 = 0; n3 < i3.length; n3++) if ((e3 = i3[n3])._ID === t4) return true;
            return false;
          }, t3.prototype.UIt = function(t4) {
            this.wY.push(t4);
          }, t3.prototype.rxt = function(t4) {
            var n3, e3 = this.wY;
            for (n3 = 0; n3 < e3.length; n3++) if (e3[n3]._ID === t4) {
              e3.splice(n3, 1);
              break;
            }
          }, t3.prototype.LIt = function() {
            return this.wY.length;
          }, t3.prototype.WIt = function(t4) {
            return this.wY[t4];
          }, t3.prototype.XIt = function(t4) {
            var n3, e3, i3 = this.wY;
            for (n3 = 0; n3 < i3.length; n3++) if ((e3 = i3[n3])._ID === t4) return e3;
            return b;
          }, t3.prototype.Ixt = function() {
            var t4 = this.wY;
            t4.splice(0, t4.length);
          }, t3;
        })(), pt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.nW = t4, i3.SAt = n3, i3.TAt = e3;
          }
          return t3;
        })(), gt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.qZ = t4, o2.nW = n3, o2.AAt = e3, o2.JZ = i3, o2.TAt = r2;
          }
          return t3;
        })(), n2.ManipulationCompletedEventArgs = gt, mt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3, r2, o2) {
            var a2 = this;
            a2.qZ = t4, a2.nW = n3, a2.SAt = e3, a2.AAt = i3, a2.JZ = r2, a2.TAt = o2;
          }
          return t3;
        })(), n2.ManipulationDeltaEventArgs = mt, bt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3, r2, o2, a2) {
            var u2 = this;
            u2.qZ = t4, u2.nW = n3, u2.SAt = e3, u2.TAt = i3, u2.IAt = r2, u2.xAt = o2, u2.NAt = a2;
          }
          return t3;
        })(), yt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.qZ = t4, r2.kAt = n3, r2.nW = e3, r2.JZ = i3;
          }
          return t3;
        })(), n2.ManipulationStartedEventArgs = yt, wt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3) {
            var r2 = this;
            r2.qZ = t4, r2.KZ = n3, r2.DAt = e3, r2.JZ = i3;
          }
          return t3;
        })(), n2.ManipulationStartingEventArgs = wt, Mt = /* @__PURE__ */ (function() {
          function t3(t4) {
            this.JZ = t4;
          }
          return t3;
        })(), Ct = /* @__PURE__ */ (function() {
          function t3(t4) {
            this.JZ = t4;
          }
          return t3;
        })(), St = /* @__PURE__ */ (function() {
          function t3(t4) {
            this.JZ = t4;
          }
          return t3;
        })(), Tt = (function() {
          function t3(t4) {
            this.Mf = t4;
          }
          return t3.prototype.oNt = function(t4, n3) {
            var e3 = this.fg;
            return e3 ? t4 === r.Bf.Xl(e3) && n3 === r.Bf.ql(e3) || r.Bf.$l(e3, t4, n3) : (e3 = l("canvas"), r.Bf.Wl(e3, b, this.Mf), r.Bf.$l(e3, t4, n3)), e3;
          }, t3.prototype.aNt = function(t4, n3, e3, i3) {
            var o2 = this, a2 = r.Bf.Xl(t4), u2 = r.Bf.ql(t4), s2 = o2.oNt(a2, u2), c2 = s2.getContext("2d"), f2 = r.Bf.Kl(s2), l2 = r.Bf.Jl(s2);
            r.Lf.Vl(c2, 1, 1), c2.drawImage(t4, 0, 0, tn(s2), $t(s2), 0, 0, tn(s2), $t(s2)), r.Lf.Vl(c2, f2, l2), o2.fg = s2, o2.uNt = n3, o2.sNt = e3, o2.cNt = i3;
          }, t3.prototype.fNt = function(t4, n3, e3) {
            var i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.Mf, g2 = p2.options.rightToLeft, m2 = r.Bf.Xl(t4), y2 = r.Bf.ql(t4), w2 = un(p2), M2 = sn(p2), C2 = w2 > 0 ? 1 : 0, S2 = M2 > 0 ? 1 : 0, T2 = v2.sNt, x2 = kn(p2), A2 = v2.uNt, I2 = p2.Fi(), k2 = n3 / v2.cNt, N2 = t4.getContext("2d"), j2 = r.Bf.Kl(t4), D2 = r.Bf.Jl(t4), _2 = v2.fg;
            N2.save(), N2.fillStyle = e3, N2.fillRect(0, 0, m2, y2), h2 = p2.rowOutlines, d2 = p2.columnOutlines, h2 && h2._e(p2, N2, b, true), d2 && d2._e(p2, N2, b, false), g2 ? (i3 = A2.Hy + A2.zy, o2 = T2.y + $t(T2), a2 = T2.x - i3 - C2, u2 = A2.Ay - o2 - S2, s2 = x2.x - a2 * k2, c2 = x2.y + $t(x2), f2 = a2 * k2, l2 = u2 * k2) : (i3 = T2.x + tn(T2), o2 = T2.y + $t(T2), a2 = A2.Hy - i3 - C2, u2 = A2.Ay - o2 - S2, s2 = x2.x + tn(x2), c2 = x2.y + $t(x2), f2 = a2 * k2, l2 = u2 * k2), i3 *= j2, o2 *= D2, a2 *= j2, u2 *= D2, s2 *= j2, c2 *= D2, f2 *= j2, l2 *= D2, r.Lf.Vl(N2, 1, 1), N2.drawImage(_2, i3, o2, a2, u2, s2, c2, f2, l2), w2 > 0 && (i3 = A2.Hy - C2, o2 = T2.y + $t(T2), a2 = A2.zy + C2, u2 = A2.Ay - o2 - S2, s2 = I2.Hy - C2, c2 = x2.y + $t(x2), f2 = I2.zy + C2, l2 = u2 * k2, i3 *= j2, o2 *= D2, a2 *= j2, u2 *= D2, s2 *= j2, c2 *= D2, f2 *= j2, l2 *= D2, N2.drawImage(_2, i3, o2, a2, u2, s2, c2, f2, l2)), M2 > 0 && (g2 ? (i3 = A2.Hy + A2.zy, o2 = A2.Ay - S2, a2 = T2.x - i3 - C2, u2 = A2.Iy + S2, s2 = x2.x - a2 * k2, c2 = I2.Ay - S2, f2 = a2 * k2, l2 = I2.Iy + S2) : (i3 = T2.x + tn(T2), o2 = A2.Ay - S2, a2 = A2.Hy - i3 - C2, u2 = A2.Iy + S2, s2 = x2.x + tn(x2), c2 = I2.Ay - S2, f2 = a2 * k2, l2 = I2.Iy + S2), i3 *= j2, o2 *= D2, a2 *= j2, u2 *= D2, s2 *= j2, c2 *= D2, f2 *= j2, l2 *= D2, N2.drawImage(_2, i3, o2, a2, u2, s2, c2, f2, l2)), w2 > 0 && M2 > 0 && (i3 = A2.Hy - C2, o2 = A2.Ay - S2, a2 = A2.zy + C2, u2 = A2.Iy + S2, s2 = I2.Hy - C2, c2 = I2.Ay - S2, f2 = I2.zy + C2, l2 = I2.Iy + S2, i3 *= j2, o2 *= D2, a2 *= j2, u2 *= D2, s2 *= j2, c2 *= D2, f2 *= j2, l2 *= D2, N2.drawImage(_2, i3, o2, a2, u2, s2, c2, f2, l2)), r.Lf.Vl(N2, j2, D2), N2.restore();
          }, t3.prototype.$Z = function() {
            var t4 = this, n3 = t4.Mf, e3 = n3.zoom(), i3 = n3.Dn._7();
            i3 && t4.aNt(i3.canvas, n3.Fi(), kn(n3), e3);
          }, t3.prototype.iW = function(t4) {
            var n3, e3, i3, o2, a2, u2, s2 = this, c2 = s2.Mf;
            if (c2.endEdit() && (n3 = bn(t4, s2.cNt), e3 = c2.zoom(), i3 = c2.name(), e3 !== n3)) {
              if (o2 = { sheet: c2, sheetName: i3, oldZoomFactor: e3, newZoomFactor: n3, cancel: false }, c2.ki(r.Events.ViewZooming, o2), o2 && true === o2.cancel) return;
              n3 = o2.newZoomFactor, c2.g8(n3), c2.ki(r.Events.UserZooming, { sheet: c2, sheetName: i3, oldZoomFactor: e3, newZoomFactor: n3 }), c2.ki(r.Events.ViewZoomed, { sheet: c2, sheetName: i3, oldZoomFactor: e3, newZoomFactor: n3 }), c2.invalidateLayout(), (u2 = (a2 = c2.Dn).J()) && s2.fNt(u2.canvas, n3, a2.R7(false)), c2.oht && c2.oht(b, n3), c2.CW && c2.CW(b);
            }
          }, t3.prototype.rW = function(t4) {
            var n3, e3 = this, i3 = e3.Mf, o2 = i3.name(), a2 = bn(t4, e3.cNt), u2 = i3.zoom();
            if (a2 !== u2) {
              if (n3 = { sheet: i3, sheetName: o2, oldZoomFactor: u2, newZoomFactor: a2, cancel: false }, i3.ki(r.Events.ViewZooming, n3), n3 && true === n3.cancel) return;
              a2 = n3.newZoomFactor, i3.g8(a2), i3.ki(r.Events.UserZooming, { sheet: i3, sheetName: o2, oldZoomFactor: u2, newZoomFactor: a2 }), i3.ki(r.Events.ViewZoomed, { sheet: i3, sheetName: o2, oldZoomFactor: u2, newZoomFactor: a2 });
            }
            i3.Zw = true, i3.Ww = true, i3.zw();
          }, t3;
        })(), n2.ZZ = Tt, xt = 200, At = 20, It = (function() {
          function t3(t4) {
            this.Mf = t4;
          }
          return t3.prototype.lNt = function(t4) {
            var n3;
            this.Mf.my = t4, this.B5e = true;
          }, t3.prototype.hNt = function(t4) {
            var n3;
            this.Mf.ly = t4, this.G5e = true;
          }, t3.prototype.dNt = function() {
            var t4;
            this.Mf.invalidateLayout();
          }, t3.prototype.yy = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = this, E2 = O2.Mf, R2 = E2.options, L2 = E2.Tb, F2 = E2.ly, B2 = yn(E2, t4, L2, F2);
            if (!B2) return false;
            if (o2 = B2.Ky, a2 = B2.Xy, t4 = B2._At, E2.Tb = o2, E2.My > 0) return false;
            if (u2 = E2.ot(), c2 = (s2 = E2.Fi()).Cy, f2 = E2.Sy(s2), l2 = s2.Iy, h2 = s2.Ay, d2 = s2.Ty, v2 = u2 ? u2.x : s2.x, p2 = tn(s2), y2 = R2.sheetAreaOffset, C2 = E2.Ny, p2 += y2.left, t4 < 0) O2.vNt = 0, O2.mNt = 0, S2 = void 0, T2 = void 0, (x2 = E2.dw(1)) && x2.length > 0 && (S2 = x2.findRow(o2)), S2 && (T2 = x2[x2.length - 1]).row >= o2 && (g2 = 2 + y2.top, m2 = c2 + w(t4), (b2 = M(c2 + f2, T2.y + $t(T2)) - m2) >= 0 && (b2 -= g2, O2.hNt(a2 - $t(S2)), e3.x = v2, e3.y = m2, e3.width = p2, e3.height = b2, e3.tx = v2, e3.ty = c2, A2 = C2 ? f2 : f2 + l2 + d2, i3.x = v2, i3.y = c2 + b2, i3.width = p2, i3.height = A2 - b2));
            else if (t4 > 0) {
              if (I2 = E2.vw(-1), k2 = void 0, N2 = void 0, (j2 = E2.parent && E2.parent.options.scrollByPixel) && a2 > 0 && (t4 -= a2, a2 = 0), o2 === I2 && a2 > 0) if (O2.vNt > 0 && O2.mNt > 0) {
                if (a2 = N2 = Mn(k2 = O2.vNt + t4, xt), (t4 = N2 - O2.mNt) <= 0) return n3;
                if (n3 && N2 >= At) return true;
                O2.vNt = k2, O2.mNt = N2;
              } else {
                if (a2 >= xt && (t4 -= a2 - (xt - 1), a2 = xt - 1, t4 <= 0)) return n3;
                if (k2 = Cn(a2, xt), N2 = a2, n3 && N2 >= At) return true;
                O2.vNt = k2, O2.mNt = N2;
              }
              else O2.vNt = 0, O2.mNt = 0;
              t4 < (D2 = C2 ? f2 : f2 + l2) && (g2 = 2 + y2.top, m2 = c2, b2 = f2 - t4, sn(E2) > 0 && (b2 -= q), O2.hNt(a2), !C2 && d2 > 0 && (_2 = M(u2.height - l2 - q, h2 - q + t4), r2.x = v2, r2.y = h2 - q, r2.width = p2, r2.height = l2 + q, r2.tx = v2, r2.ty = _2), e3.x = v2, e3.y = m2, e3.width = p2, e3.height = b2 + (C2 ? 0 : M(t4, d2) - q), e3.tx = v2, e3.ty = m2 + t4, i3.x = v2, i3.y = m2, i3.width = p2, i3.height = t4 + g2);
            }
            return false;
          }, t3.prototype.wy = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2 = this, F2 = L2.Mf, B2 = F2.Ab, P2 = F2.my, G2 = wn(F2, t4, B2, P2);
            if (!G2) return false;
            if (o2 = G2.iw, a2 = G2.Xy, t4 = G2.EAt, F2.Ab = o2, F2.My > 0) return false;
            if (u2 = F2.ot(), c2 = (s2 = F2.Fi()).Py, f2 = F2.Gy(s2), l2 = s2.zy, h2 = s2.Hy, d2 = s2.Uy, v2 = u2 ? u2.y : s2.y, p2 = $t(s2), S2 = F2.options.rightToLeft, T2 = F2.options.sheetAreaOffset, x2 = F2.Vy, p2 += T2.top, t4 < 0) L2.gNt = 0, L2.pNt = 0, A2 = void 0, I2 = void 0, (k2 = F2.yw(1)) && k2.length > 0 && (A2 = k2.findCol(o2)), (A2 || S2 && k2 && k2.length > 0) && (I2 = k2[k2.length - 1]).col >= o2 && (g2 = 2 + T2.left, m2 = c2 + w(t4), (b2 = M(c2 + f2, I2.x + tn(I2)) - m2) >= 0 && (b2 -= g2, N2 = S2 ? -a2 : a2 - (A2 ? tn(A2) : F2.nn(o2)), L2.lNt(N2), e3.x = m2, e3.y = v2, e3.width = b2, e3.height = p2, e3.tx = c2, e3.ty = v2, j2 = x2 ? f2 : f2 + l2 + d2, i3.x = c2 + b2, i3.y = v2, i3.width = j2 - b2, i3.height = p2));
            else if (t4 > 0) {
              if (D2 = F2.ww(-1), (_2 = F2.parent && F2.parent.options.scrollByPixel) && a2 > 0 && (t4 -= a2, a2 = 0), o2 === D2 && a2 > 0) if (L2.gNt > 0 && L2.pNt > 0) {
                if (a2 = C2 = Mn(y2 = L2.gNt + t4, xt), (t4 = C2 - L2.pNt) <= 0) return n3;
                if (n3 && C2 >= At) return true;
                L2.gNt = y2, L2.pNt = C2;
              } else {
                if (a2 >= xt && (t4 -= a2 - (xt - 1), a2 = xt - 1, t4 <= 0)) return n3;
                if (y2 = Cn(a2, xt), C2 = a2, n3 && C2 >= At) return true;
                L2.gNt = y2, L2.pNt = C2;
              }
              else L2.gNt = 0, L2.pNt = 0;
              t4 < (O2 = x2 ? f2 : f2 + l2) && (g2 = 2 + T2.left, m2 = c2, S2 && (m2 -= s2.Uy), b2 = f2 - t4, un(F2) > 0 && (b2 -= q), N2 = S2 ? -(a2 + F2.nn(o2)) : a2, L2.lNt(N2), E2 = 0, !x2 && d2 > 0 && (E2 = l2, R2 = M(u2.width - E2 - q, h2 - q + t4), r2.x = h2 - q, r2.y = v2, r2.width = E2 + q, r2.height = p2, r2.tx = R2, r2.ty = v2), e3.x = m2, e3.y = v2, e3.width = b2 + (x2 ? 0 : M(t4, d2) - q), e3.height = p2, e3.tx = m2 + t4, e3.ty = v2, i3.x = m2, i3.y = v2, i3.width = t4 + g2, i3.height = p2);
            }
            return false;
          }, t3.prototype.bNt = function(t4, n3, e3, i3) {
            var o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2 = this, H2 = U2.Mf, V2 = true, z2 = true, Y2 = H2.Dn, Z2 = Y2.J(), W2 = !!(2 & e3), Q2 = !!(1 & e3);
            if (Q2 || W2) return f2 = {}, l2 = {}, h2 = H2.ot(), d2 = H2.Fi(), v2 = h2 ? h2.y : d2.y, p2 = $t(d2), g2 = h2 ? h2.x : d2.x, m2 = tn(d2), W2 && (u2 = {}, o2 = {}, V2 = U2.yy(n3, i3, o2, u2, f2), b2 = f2.x, y2 = f2.y, w2 = tn(f2), S2 = $t(f2), T2 = f2.tx, x2 = f2.ty, a(b2) || Y2.Ey(b2, y2, w2, S2, T2, x2), Y2.Ey(o2.x, o2.y, tn(o2), $t(o2), o2.tx, o2.ty)), Q2 && (s2 = {}, c2 = {}, z2 = U2.wy(t4, i3, s2, c2, l2), A2 = l2.x, I2 = l2.y, k2 = tn(l2), N2 = $t(l2), j2 = l2.tx, D2 = l2.ty, a(A2) || Y2.Ey(A2, I2, k2, N2, j2, D2), Y2.Ey(s2.x, s2.y, tn(s2), $t(s2), s2.tx, s2.ty), W2 || (u2 = c2)), (_2 = H2.parent) && !_2.options.scrollbarShowMax && (Q2 && (H2.Zw = true), W2 && (H2.Ww = true)), U2.dNt(), O2 = H2.rowOutlines && !H2.rowOutlines.Oy() ? 1 : 0, E2 = H2.columnOutlines && !H2.columnOutlines.Oy() ? 1 : 0, Q2 && W2 ? Y2.D1(Z2, new r.Rect(u2.x, u2.y, tn(u2), $t(u2) + O2), new r.Rect(c2.x, c2.y, tn(c2) + E2, $t(c2))) : Y2.D1(Z2, new r.Rect(u2.x, u2.y, tn(u2) + E2, $t(u2) + O2)), R2 = new r.Rect(g2, v2, m2, p2), (L2 = H2.getSelections()) && L2.length > 0 && (F2 = H2.getRangeRect(1, 1, L2[0]), B2 = C(R2.x + R2.width, F2.x + F2.width), P2 = C(R2.y + R2.height, F2.y + F2.height), R2.x = M(R2.x, F2.x), R2.y = M(R2.y, F2.y), R2.width = B2 - R2.x + 1, R2.height = P2 - R2.y + 1), Y2.O1(R2), Y2.jy(Z2, R2), jn(H2, true), An(H2, true), U2.yNt(Q2, W2), Nn(H2, true), G2 = H2.options.sheetAreaOffset, H2.options.rowHeaderVisible || Y2.q7(Z2, new r.Rect(g2, v2, 2, p2 + G2.top)), H2.options.colHeaderVisible || Y2.q7(Z2, new r.Rect(g2, v2, m2 + G2.left, 2)), V2 && z2;
          }, t3.prototype.yNt = function(t4, n3) {
            var e3 = this.Mf;
            n3 && e3.tw(), t4 && e3.ow(), e3.rt.By();
          }, t3.prototype.wNt = function(t4, n3, e3) {
            function i3(t5, n4, e4, i4) {
              return S(0.75, t5 /= e4) * i4 * (n4 ? 1 : -1);
            }
            function r2(t5, n4, e4) {
              return t5 = w(t5), N(t5 /= e4) / N(0.75) * n4;
            }
            var o2 = this, a2 = o2.Mf, u2 = xt, s2 = 10, c2 = 20, f2 = 100, l2 = r2(t4, s2, u2), h2 = r2(n3, s2, u2), d2 = t4, v2 = n3, p2 = 0, g2 = 0, m2 = false, y2 = false;
            o2.H6 = W.setInterval((function() {
              var r3, w2, M2, C2, S2;
              if (m2 && y2) return a2.Jt.Rl(), (r3 = a2.parent) && !r3.options.scrollbarShowMax && (a2.Zw = true, a2.Ww = true), a2.Jt.Bl(), a2.ly = 0, a2.my = 0, a2.zw(), a2.ow(), a2.tw(), nn(o2.H6), void (o2.H6 = b);
              h2 += c2, (l2 += c2) > f2 && h2 > f2 ? (o2.bNt(t4 - p2, n3 - g2, Dn(m2, y2), e3), m2 = true, y2 = true) : (l2 > f2 && !m2 && (o2.bNt(t4 - p2, 0, 1, e3), m2 = true), h2 > f2 && !y2 && (o2.bNt(0, n3 - g2, 2, e3), y2 = true), w2 = i3(l2, t4 > 0, s2, u2), M2 = i3(h2, n3 > 0, s2, u2), C2 = j(d2 - w2), S2 = j(v2 - M2), o2.bNt(C2, S2, Dn(m2, y2), e3), d2 = w2, v2 = M2, p2 += C2, g2 += S2);
            }), c2);
          }, t3.prototype.Ok = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = e3.Jt;
            n3.H6 && (i3.Bl(), nn(n3.H6), n3.H6 = b), n3.B5e = false, n3.G5e = false, n3.LSe = e3.my, n3.BSe = e3.ly, n3.gNt = 0, n3.pNt = 0, n3.vNt = 0, n3.mNt = 0, n3.MNt = e3.Tb, n3.CNt = e3.Ab, t4 && i3.jl();
          }, t3.prototype.a9 = function(t4, n3) {
            var e3 = this, i3 = e3.Mf, o2 = i3.parent, a2 = o2.options.scrollbarAppearance === r.ScrollbarAppearance.mobile, u2 = o2._vScrollbar, s2 = o2._hScrollbar, c2 = o2.ib, f2 = Y(t4.X + ""), l2 = Y(t4.Y + ""), h2 = _n(f2, l2);
            return a2 && (0 !== l2 && (u2.qy(r.ScrollbarState.show), c2.$y(true)), 0 !== f2 && (s2.qy(r.ScrollbarState.show), c2.$y(false))), this.bNt(f2, l2, h2, n3);
          }, t3.prototype.SNt = function(t4) {
            var n3, e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = this, g2 = p2.Mf, m2 = g2.options.rightToLeft, y2 = p2.MNt, w2 = g2.Tb, M2 = p2.CNt, C2 = g2.Ab, S2 = g2.parent && g2.parent.options.scrollByPixel;
            if (S2) return g2.Jt.Bl(), g2.zw(), p2.TNt(), p2.B5e = b, p2.G5e = b, p2.LSe = b, void (p2.BSe = b);
            e3 = (n3 = g2.Fi()).Py, i3 = n3.b6, r2 = n3.Cy, o2 = g2.yw(1), u2 = g2.Mw().iw, s2 = 1, o2 && o2.length > 0 && (a2 = o2.findCol(C2), C2 < u2 && a2 && !m2 && a2.x + tn(a2) - e3 < tn(a2) / 2 || m2 && i3 - a2.x < tn(a2) / 2 ? C2++ : s2 = -1), c2 = g2.dw(1), l2 = g2.mw().Ky, h2 = 1, c2 && c2.length > 0 && (f2 = c2.findRow(w2), w2 < l2 && f2 && f2.y + $t(f2) - r2 < $t(f2) / 2 ? w2++ : h2 = -1), d2 = 0, v2 = 0, o2 && o2.length > 0 && (a2 = o2.findCol(C2)) && (d2 = m2 ? i3 - (a2.x + a2.width) : e3 - a2.x), c2 && c2.length > 0 && (v2 = r2 - (f2 = c2.findRow(w2)).y), w2 !== y2 && g2.$A(w2, 0, y2), C2 !== M2 && g2.o9(C2, 0, M2), d2 *= s2, v2 *= h2, p2.wNt(d2, v2, t4);
          }, t3.prototype.TNt = function() {
            var t4 = this, n3 = t4.Mf, e3 = t4.MNt, i3 = n3.Tb, o2 = t4.CNt, a2 = n3.Ab, u2 = n3.zoom(), s2 = false;
            (e3 !== i3 || t4.G5e) && (n3.ki(r.Events.TopRowChanged, { sheet: n3, sheetName: n3.name(), oldTopRow: e3, newTopRow: i3, oldOffset: w(t4.BSe / u2), newOffset: w(n3.ly / u2) }), s2 = true), (o2 !== a2 || t4.B5e) && (n3.ki(r.Events.LeftColumnChanged, { sheet: n3, sheetName: n3.name(), oldLeftCol: o2, newLeftCol: a2, oldOffset: w(t4.LSe / u2), newOffset: w(n3.my / u2) }), s2 = true), s2 && n3.$Dr({ type: "updateTopLeftPosition", leftCol: n3.Ab, topRow: n3.Tb });
          }, t3;
        })(), kt = (function() {
          function t3(t4) {
            var n3 = this;
            n3.jAt = false, n3.YZ = new Tt(t4), n3.OAt = new It(t4), n3.Mf = t4;
          }
          return t3.prototype.OZ = function(t4) {
            var n3 = this, e3 = n3.Mf, i3 = e3.Fi(), r2 = e3.options.rightToLeft, o2 = i3.Py, a2 = i3.Cy, u2 = i3.J7, s2 = i3.Uy, c2 = i3.X7, f2 = i3.b6, l2 = i3.Hy, h2 = i3.Ay, d2 = t4.JZ, v2 = e3.Ny, p2 = e3.Vy, g2 = 0, m2 = n3.ANt(d2.X, d2.Y), b2 = m2.dragInfo, y2 = m2.x, w2 = m2.y;
            m2 && (m2.resizeInfo || b2 && "corner" === b2.side || m2.selectionHitInfo) ? (g2 |= 2, g2 |= 1) : (a2 <= w2 && (v2 && w2 < h2 || !v2 && w2 < c2) && (g2 |= 2), o2 <= y2 && (p2 && (r2 ? y2 < f2 : y2 < l2) || !p2 && (r2 ? y2 > u2 + s2 : y2 < u2)) && (g2 |= 1), g2 |= 96, e3.parent && (g2 |= 12)), t4.KZ = g2;
          }, t3.prototype.BZ = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = { e: n3, r: b };
            if (t3.et(v2, "preProcessManipulationStarted", p2), !p2.r) if (e3 = n3.JZ, r2 = (i3 = v2.Mf).parent, o2 = i3.rt, a2 = i3.Dn, s2 = (u2 = v2.ANt(e3.X, e3.Y)).dragInfo, c2 = u2.selectionHitInfo, i3.sw = u2, u2.resizeInfo) {
              if (!i3.endEdit()) return;
              o2.gk(u2);
            } else if (s2 && "corner" === s2.side) o2.wk && o2.wk(u2);
            else if (c2) {
              if (!i3.endEdit()) return;
              f2 = c2.isHeader, l2 = c2.isFirstIndicator, h2 = c2.type, f2 && o2.A9(u2, true), d2 = u2.hitTestType, u2.hitTestType = h2, o2.F9(u2), u2.hitTestType = d2, Bn(i3, f2, l2, h2), i3.INt = false, a2.PD();
            } else i3.pW && (i3.pW().VW = false), i3.INt = false, a2.PD(), n3.kAt > 1 && r2 && r2.options.allowUserZoom ? (v2.jAt = false, v2.YZ.$Z()) : (v2.jAt = true, v2.OAt.Ok(1 === n3.kAt));
          }, t3.prototype.FZ = function(n3) {
            var e3, i3, r2, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = { e: n3, r: b };
            if (t3.et(h2, "preProcessManipulationDelta", d2), !d2.r && (e3 = n3.JZ, r2 = (i3 = h2.Mf).rt, o2 = i3.sw, a2 = e3.X, u2 = e3.Y, o2)) if (s2 = o2.dragInfo, c2 = o2.selectionHitInfo, o2.resizeInfo) r2.fk = { e: n3, x: a2, y: u2 }, r2.y9();
            else if (s2 && "corner" === s2.side) r2.fk = { e: n3, x: a2, y: u2 }, r2.Zk && r2.Zk();
            else if (c2 || r2.ob) {
              if (c2) {
                if (!r2.Rk || !r2.rb) return;
                if (true === r2.FI) return;
                f2 = c2.type, r2.fk = { e: n3, x: a2, y: u2 }, 3 === f2 ? r2.Y9() : 2 === f2 ? r2.Z9() : 1 === f2 && r2.W9();
              }
            } else h2.jAt ? n3.gxt = h2.OAt.a9(n3.SAt.wAt, n3.AAt) : (l2 = n3.nW.tW, h2.YZ.iW(l2));
          }, t3.prototype.GZ = function(n3) {
            var e3, i3, r2, o2, a2, u2 = this, s2 = { e: n3, r: b };
            t3.et(u2, "preProcessManipulationCompleted", s2), s2.r || (i3 = (e3 = u2.Mf).rt, e3.INt = true, o2 = (r2 = e3.sw).selectionHitInfo, r2.resizeInfo ? i3.C9() : r2.dragInfo && i3.Yk ? (i3.DD && i3.DD(), e3.parent.touchToolStrip.xNt()) : o2 || i3.ob ? (i3.X9(), o2 && Pn(e3, o2.isHeader, o2.isFirstIndicator, o2.type), e3.Dn.E1()) : (e3.pW && (e3.pW().VW = true), u2.jAt ? u2.OAt.SNt(n3.AAt) : (a2 = n3.nW.tW, u2.YZ.rW(a2))));
          }, t3.prototype.HZ = function(n3) {
            var e3, i3, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, m2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, _2, O2, E2, R2, L2, F2, B2, P2 = this, G2 = { e: n3, r: b };
            if (t3.et(P2, "preProcessTapped", G2), G2.r) P2.Mf.repaint();
            else if (e3 = n3.JZ, i3 = P2.Mf, o2 = i3.parent, u2 = false, i3.Nk = y, P2.NNt(), i3.Olt && i3.Olt(), (s2 = i3.Ut.pI) && s2.CZ(), c2 = i3.rt, l2 = (f2 = P2.ANt(e3.X, e3.Y, true)).filterButtonHitInfo, h2 = f2.hitTestType, d2 = f2.row, v2 = f2.col, p2 = f2.outlineHitInfo) i3.isEditing() || (m2 = p2.what, w2 = i3.rowOutlines, M2 = i3.columnOutlines, "rg" === m2 || "rgh" === m2 ? w2 && w2.rpt(i3, p2) : "cg" !== m2 && "cgh" !== m2 || M2 && M2.rpt(i3, p2));
            else if (i3.sw = f2, l2) {
              if (!i3.endEdit()) return;
              (C2 = l2.rowFilter) && C2.openFilterDialog(l2);
            } else if (f2.resizeInfo) ;
            else if (i3.JA(f2.rowViewportIndex < 0 ? -1 : d2, f2.colViewportIndex < 0 ? -1 : v2)) {
              if (i3.kNt && !c2.Yk && o2.touchToolStrip.xNt(), S2 = i3.getActiveRowIndex(), T2 = i3.getActiveColumnIndex(), x2 = f2.cellTypeHitInfo) {
                if (A2 = Hn(i3, x2, f2), x2.sheet || (x2.sheet = i3), P2.xk(A2, x2)) if (I2 = x2.sheetArea, !a(I2) && 3 !== I2 || d2 === S2 && v2 === T2) i3.Dn.PD();
                else {
                  if (i3.suspendPaint(), !i3.endEdit()) return;
                  if (k2 = { sheet: i3, sheetName: i3.name(), row: S2, col: T2, cancel: false }, i3.ki(r.Events.LeaveCell, k2), k2 && true === k2.cancel) return;
                  N2 = i3.Ut.getSelections(), j2 = i3.Ut.getSpan(d2, v2), _2 = [(0, r.Ec)(j2.row, j2.col, j2.rowCount, j2.colCount)], i3.EA(N2, _2), i3.ki(r.Events.FloatingElementSelected, { type: "worksheet" }), O2 = x2.isReservedLocation && x2.isFocusAware, i3.t4(d2, v2, y, y, O2 ? 0 : 1), E2 = { sheet: i3, sheetName: i3.name(), row: d2, col: v2 }, i3.ki(r.Events.EnterCell, E2), i3.ki(r.Events.EnterCellInternal, E2), i3.jA(N2), i3.Nk = true, c2.PA && c2.PA(d2, v2), i3.resumePaint(), u2 = true;
                }
                A2.processCellAndPaddingMouseDown(x2), A2.Ve(x2);
              }
              if (x2 && x2.isReservedLocation) return true;
              x2 && (x2.cellButtonHitInfo || x2.outlineColumnHitInfo) && (u2 = true), i3.ki(r.Events.CellClick, { sheet: i3, sheetName: i3.name(), sheetArea: h2, row: f2.row, col: f2.col });
              try {
                if (c2.Dk = f2, R2 = i3.isEditing(), L2 = i3.endEdit(), i3.Oi && g && R2 && L2 && (c2.shift = false), R2 && S2 === i3.getActiveRowIndex() && T2 === i3.getActiveColumnIndex() && !L2) return;
              } finally {
                c2.Dk = b;
              }
              if (a(d2) || a(v2)) return;
              3 === h2 && c2.PA && c2.PA(d2, v2), Ln(i3, d2, v2, h2) && !u2 ? P2.DNt = W.setTimeout((function() {
                var t4 = { x: f2.x, y: f2.y, handled: false }, n4 = o2.touchToolStrip;
                i3.ki(r.Events.TouchToolStripOpening, t4), t4.handled || n4.open(f2.x, f2.y - D), P2.NNt();
              }), nt + 20) : (i3.ki(r.Events.FloatingElementSelected, { type: "worksheet" }), F2 = i3.Ut.getSelections(), c2.A9(f2), B2 = i3.Ut.getSelections(), i3.EA(F2, B2), c2.X9(), i3.RD && i3.huo && i3.huo());
            } else i3.ki(r.Events.CellClick, { sheet: i3, sheetName: i3.name(), sheetArea: h2, row: f2.row, col: f2.col });
          }, t3.prototype.xk = function(t4, n3) {
            return !(t4 && t4.activeOnClick && !t4.activeOnClick() && n3.isReservedLocation);
          }, t3.prototype._Nt = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.Mf, s2 = a2.ANt(t4, n3, true);
            s2 && s2.row >= 0 && s2.col >= 0 && s2.rowViewportIndex >= 0 && s2.colViewportIndex >= 0 && !s2.resizeInfo && u2.JA(s2.row, s2.col) && ((e3 = u2.isCtrlPressed(s2.hitTestType)) || u2.IA(), i3 = u2.C0(s2.row), r2 = u2.S0(s2.col), o2 = true, u2.ui === s2.row && u2.ci === s2.col || (o2 = false), u2.O6(s2.row, s2.col, i3, r2, o2), e3 ? u2.zw() : u2.n4(s2.row, s2.col, 1, 1), u2.rt.S_(false, true), u2.f6(u2.Dg(), s2.row, s2.col));
          }, t3.prototype.WAt = function(n3) {
            var e3, i3, o2, a2, u2 = this, s2 = { e: n3, r: b };
            t3.et(u2, "preProcessDoubleTapped", s2), s2.r || (e3 = u2.Mf, i3 = n3.JZ, u2.NNt(), (o2 = e3.sw) && (a2 = false, 3 === o2.hitTestType ? u2._Nt(i3.X, i3.Y) : a2 = e3.rt.j_(o2), a2 || e3.ki(r.Events.CellDoubleClick, { sheet: e3, sheetName: e3.name(), sheetArea: o2.hitTestType, row: o2.row, col: o2.col })));
          }, t3.prototype.ENt = function(t4) {
            var n3, e3, i3 = this, r2 = i3.Mf, o2 = t4.JZ;
            r2.RD || (n3 = i3.ANt(o2.X, o2.Y), r2.isEditing() ? n3.row === r2.ui && n3.col === r2.ci || r2.rt.C_(n3) : (i3._target = n3, (e3 = i3.ANt(o2.X, o2.Y, true)) && e3.cellTypeHitInfo && e3.cellTypeHitInfo.isEditing || r2.rt.C_(e3)));
          }, t3.prototype.jNt = function(t4) {
            var n3, e3, i3, r2, o2 = this, a2 = o2.Mf;
            a2.RD || a2.isEditing() || (e3 = true, (n3 = o2._target) && ((i3 = n3.cellTypeHitInfo) && i3.isReservedLocation || (r2 = a2.getCellType(n3.row, n3.col)) && r2.isEditing()) && (e3 = false), e3 && a2.rt.S_(true));
          }, t3.prototype.ANt = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, w2 = this, M2 = w2.Mf;
            return M2.Fi(), i3 = { x: t4, y: n3, rowViewportIndex: b, colViewportIndex: b, row: -1, col: -1, resizeInfo: b, hitTestType: b, outlineHitInfo: b, filterButtonHitInfo: b, dragInfo: b, cellTypeHitInfo: b, selectionHitInfo: b }, r2 = M2.rowOutlines, o2 = M2.columnOutlines, r2 && (a2 = r2.hitTest(M2, t4, n3)), !a2 && o2 && (a2 = o2.hitTest(M2, t4, n3)), a2 ? i3.outlineHitInfo = a2 : (u2 = void 0, s2 = void 0, u2 = M2.FL(n3), s2 = M2.PL(t4), i3.rowViewportIndex = u2, i3.colViewportIndex = s2, i3.row = M2.GL(n3, u2), i3.col = M2.UL(t4, s2, n3, u2, i3.row), u2 >= 0 && u2 <= 2 && s2 >= 0 && (c2 = M2.O_(u2, s2, y, i3.row, i3.col)) && (i3.row = c2.row, i3.col = c2.col), i3.hitTestType = M2.C6(u2, s2), f2 = void 0, l2 = void 0, h2 = void 0, d2 = void 0, v2 = void 0, f2 = On(M2, i3, t4, n3, 10), (d2 = (h2 = M2.IB) && h2.hitTest(i3, t4, n3)) || (d2 = (m2 = (g2 = (p2 = M2.tables) && p2.find(i3.row, i3.col)) && g2.IB) && m2.hitTest(i3, t4, n3)), M2.kNt ? (l2 = Rn(M2, i3, t4, n3), i3.dragInfo = l2) : f2 ? i3.resizeInfo = f2 : d2 ? i3.filterButtonHitInfo = d2 : e3 ? i3.cellTypeHitInfo = M2.JL(i3, t4, n3) : (v2 = En(M2, i3, t4, n3), i3.selectionHitInfo = v2)), i3;
          }, t3.prototype.NNt = function() {
            var t4 = this, n3 = t4.DNt;
            n3 && (clearTimeout(n3), t4.DNt = b);
          }, t3;
        })(), n2.TouchEventHandler = kt, (0, r.$e)(kt), Nt = (function() {
          function t3(t4, n3, e3) {
            var i3 = this;
            i3.kZ = e3, i3.AZ = new Ht(n3), i3.DZ = new kt(n3), i3.xZ = new Vt(t4, "sheet", i3.AZ, 100, 10), i3.kZ.aW(i3.xZ, true);
          }
          return t3.prototype.oW = function() {
            var t4 = this, n3 = t4.DZ, e3 = t4.xZ;
            e3.jZ = function(t5) {
              return n3.OZ(t5);
            }, e3.RZ = function(t5) {
              return n3.BZ(t5);
            }, e3.LZ = function(t5) {
              return n3.FZ(t5);
            }, e3.PZ = function(t5) {
              return n3.GZ(t5);
            }, e3.UZ = function(t5) {
              return n3.HZ(t5);
            }, e3.ZAt = function(t5) {
              return n3.WAt(t5);
            }, e3.oIt = function(t5) {
              return n3.ENt(t5);
            }, e3.uIt = function(t5) {
              return n3.jNt(t5);
            };
          }, t3.prototype.uW = function() {
            var t4 = this, n3 = t4.xZ;
            n3 && (t4.kZ.aW(n3, false), n3.jZ = b, n3.RZ = b, n3.LZ = b, n3.AIt = b, n3.PZ = b, n3.UZ = b, n3.ZAt = b, n3.IIt = b, n3.oIt = b, n3.uIt = b, t4.xZ = b);
          }, t3.prototype.sW = function(t4) {
            return this.AZ.sW();
          }, t3.prototype.cW = function(t4) {
            return this.AZ.cW();
          }, t3.prototype.fW = function(t4) {
            return this.AZ.fW();
          }, t3;
        })(), jt = "gc-toolstrip-button", Dt = "gc-toolstrip-text", _t = "gc-toolstrip-image", Ot = "gc-toolstrip-item", Et = "gc-touch-sperate-line", Rt = "height", Lt = "width", Ft = "px", Bt = "button", Pt = (function(t3) {
          function n3(n4, e3) {
            var i3, o2, a2 = t3.call(this, e3, r.mt.gi(n4.Ti)) || this;
            return a2.ter = r.DialogFeatureType.touch, (i3 = a2).RAt = 32, i3.BAt = 45, i3.f$ = {}, i3.Jet = false, i3.Vv = n4, o2 = i3.Xc(), i3.LAt = o2, o2.addClass("gc-toolstrip-default ui-state-default well"), o2.appendTo(i3.qc()), o2.hide(), i3.FAt(), i3.PAt(), i3.aY(), a2;
          }
          return Xt(n3, t3), n3.prototype.open = function(t4, n4) {
            var e3, i3, o2, a2, u2 = this, c2 = on(u2.Vv);
            if (c2 && (r.hi.F1(b, true), u2.LAt.css({ left: t4, top: n4 }), u2.$c(), u2.Jet = true, u2.if(), !f(u2.f$))) for (i3 in e3 = u2.f$) e3.hasOwnProperty(i3) && ((a2 = !(o2 = e3[i3]).UAt || o2.UAt.call(u2)) ? s("#" + i3).show() : s("#" + i3).hide());
          }, n3.prototype.add = function(t4) {
            var n4, e3, i3, r2;
            t4 && (e3 = (n4 = this).f$, t4 instanceof Ut ? (i3 = t4.name()) && (e3[i3] = t4, n4.ONt(t4.RNt(Et, n4.BAt + Ft))) : t4 instanceof Gt && (r2 = t4.name(), n4.getItem(r2) || (e3[r2] = t4, n4.ONt(t4.RNt(_t, n4.RAt + Ft, Dt, jt)))));
          }, n3.prototype.getItem = function(t4) {
            return this.f$[t4];
          }, n3.prototype.getItems = function() {
            var t4, n4 = this, e3 = [], i3 = n4.f$;
            if (!f(i3)) {
              for (t4 in i3) i3.hasOwnProperty(t4) && e3.push(i3[t4]);
              return e3;
            }
            return b;
          }, n3.prototype.remove = function(t4) {
            var n4, e3 = this;
            return e3.getItem(t4) ? (s("#" + t4).parent().remove(), n4 = e3.f$[t4], delete e3.f$[t4], n4) : b;
          }, n3.prototype.clear = function() {
            var t4 = this;
            t4.LAt && (t4.LAt.find("td." + Ot).remove(), t4.f$ = {});
          }, n3.prototype.close = function() {
            var t4, n4, e3 = this;
            K.cf(), e3.LAt && e3.LAt.hide(), e3.Jet = false, e3.uf(), (t4 = on(e3.Vv)) && (t4.Zg(), (n4 = an(t4)).length > 0 && !t4.kNt && -1 === n4[0].row && -1 === n4[0].col && t4.IA());
          }, n3.prototype.imageAreaHeight = function(t4) {
            var n4 = this;
            return 0 === arguments.length ? n4.RAt : (t4 > 0 && (n4.RAt = t4, n4.LAt.find("span." + _t).css(Rt, t4 + Ft)), n4);
          }, n3.prototype.itemHeight = function(t4) {
            var n4 = this, e3 = n4.LAt.find("button." + jt);
            return 0 === arguments.length ? Z(e3.css(Rt)) : (t4 > 0 && e3.css(Rt, t4 + Ft), n4);
          }, n3.prototype.itemWidth = function(t4) {
            var n4, e3, i3 = this, r2 = i3.LAt.find("button." + jt);
            return 0 === arguments.length ? Z(r2.css(Lt)) : (t4 > 0 && (n4 = "min-width", (e3 = Z(r2.css(n4))) > t4 && r2.css(n4, t4 + Ft), r2.css(Lt, t4 + Ft)), i3);
          }, n3.prototype.separatorHeight = function(t4) {
            var n4 = this;
            return 0 === arguments.length ? n4.BAt : (t4 > 0 && (n4.BAt = t4, n4.LAt.find("div." + Et).css(Rt, t4 + Ft)), n4);
          }, n3.prototype.FAt = function() {
            var t4 = "table", n4 = this, e3 = s(l(t4)).css({ padding: 0, display: t4 }).attr({ cellspacing: 0, cellpadding: 0 });
            n4.BNt = s(l("tr")).appendTo(e3), e3.appendTo(n4.LAt);
          }, n3.prototype.L0 = function() {
            var t4 = this, n4 = t4.LAt;
            n4 && (t4.Jet && (K.cf(), t4.uf()), n4.unbind("click"), n4.remove(), t4.LAt = b);
          }, n3.prototype.aY = function() {
            var t4 = this;
            t4.LAt.bind("click", (function(n4) {
              var e3, i3, r2, o2 = n4.target, a2 = o2.tagName.toLowerCase();
              a2 === Bt ? e3 = o2.id : (i3 = o2.parentElement) && i3.tagName.toLowerCase() === Bt && (e3 = i3.id), r2 = t4.f$[e3], e3 && r2 && r2.tT.call(t4);
            }));
          }, n3.prototype.ONt = function(t4) {
            this.LAt && t4 && s(l("td")).append(t4).appendTo(this.BNt).addClass(Ot);
          }, n3.prototype.PAt = function() {
            var t4, n4, e3, i3, r2, o2, a2;
            function u2(t5) {
              for (var n5 = 0, e4 = t5 + n5; Q.getElementById(e4); ) e4 = t5 + ++n5;
              return e4;
            }
            e3 = this, i3 = (n4 = { 0: J + (t4 = "gAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAA") + "A8ElEQVRIS92VwQ3CMAxFe+qZERiHY8dgDI4cYYNOhDhwY4ayQviW4q/Eddu0KRe+9CQ72P8rEpAmhPBT3ENLd76EiPv5HO5hSmK+KYTFsz+04A4G9NZ0hAizn7jTos2MFRYYugFZQlscoFzRZsYKCwwNulAqnZddtJmxwiIZ3oT6WFh4S2tQHwsLb2kN6mNh4S2tQX0sLLwly4IyY4WFZ2gReV/ZhBOQH2ddgKcYwBAc7R/weL0ZgqO6gGPXE1E0JlBdwJx2CUhvkCL63xvw33QKUc0N+B5MIaq5gb5o8kotBszJDShFlkvQ+ZHBvoTmC+fiVfoq/m86" + X, 1: J + t4 + "BkklEQVRIS7WTUXECQRBEcYCFOIiESAAH/OYPCcQBEogDJCABCUhAwqXf1QzVM0cojko+Xt3ObG/33t7eYhiGf6UU68+vneD5Mu4HpZDgKja+YCYH94NSSHAUg3glZC9k8zgAYwLmhuS6o/tBKUJ8CTGsoveIsin3g1LEAkxzAd/kXbihwxwatGys+EEpEAT5LR6FuDmMb+t+UAoEwVL44h7CvB8lGxrn3A9KkaLAj8pDMD9HL/v0ZgfAQfSAk/WgXAT3g1K4MPCj2AoPhNvRJO4HpejigF1jxtjNy9Ek7gel6GIjfzoP+Ihewf2gFPcWNNL817/c/aAUKXpbfy/FXlzFIM6gOYy3Gp+iz/xBPHeLQGLAMI2PNmYOw1uojZfdCyYNCXexiGcGpiljdp9hsBGjvnvBpCHhRbgBZChjAgj0eXrX7gWThoR992lAMGOOLMfJuIHuBZMGQuE75KN66Cpq14xH2L1g0kixyLNm3I8sNbwJulHfvWDSkJArmou4hlxXeh4AvBEBuZnnbtHfMix+AHqkr6wgQ4Q7" + X, 2: J + t4 + "A3UlEQVRIS72PwQ3CMAxFOwrjcOyZCTgyAjfWYCJO3JiCCVL/iFSO9W0MDTzpqYob+ztTKeWn0uJIadE6H8/ljXsR96q6tzt4YogH/olPcQ2R8mp3CHRBwO3+6EKkvNodcDkSgyyoAx0iRz/AA/8Op0sdtJuv1Va3Ct8FYHgL8dgUAGxIe41+kRAH6CbdaGW86nFAhnaXLSLEAbqJCbxlUgEZ2DIgFaCbmMBbJhWQgS0DUgG6iQm8ZVIBGTYFsK21oN3F1yrEARnsIM/u8JeAT9S9nrQ4UlocKS2Os0wLtkPMdu9POt0AAAAASUVORK5CYII=", 3: J + "UAAAAXCAIAAABrvZPKAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAIdJREFUOE/tzEEKgCAQheEOWLdx351adYc8Qgs3rbuAUC9nkkF0BKNN9CMy0Xx25llf8Edr7d57j/tlP4wTHf4W/b7gsT0vLs7Sz9bFWfM9nrDXE9ITphlVPO512wkkM++FNF86vBfKeKR43rjLe5QwOvxPVPSoipHmkY5RxSMFo7rXY9+eMSdet07b6c/bnwAAAABJRU5ErkJggg==" })[0], r2 = n4[1], o2 = n4[2], a2 = n4[3], e3.LNt = new Gt(u2("wijspread_toolstrip_paste"), tt().ToolStrip_PasteText, i3, e3.FNt), e3.PNt = new Gt(u2("wijspread_toolstrip_cut"), tt().ToolStrip_CutText, r2, e3.GNt), e3.UNt = new Gt(u2("wijspread_toolstrip_copy"), tt().ToolStrip_CopyText, o2, e3.HNt), e3.zNt = new Gt(u2("wijspread_toolstrip_autofill"), tt().ToolStrip_AutoFillText, a2, e3.VNt, e3.YNt), e3.add(e3.LNt), e3.add(e3.PNt), e3.add(e3.UNt), e3.add(new Ut(e3.YNt)), e3.add(e3.zNt);
          }, n3.prototype.YNt = function() {
            var t4, n4, e3, i3 = on(this.Vv);
            if (!i3) return false;
            if (0 === (t4 = an(i3)).length) return false;
            for (n4 = 0; n4 < t4.length; n4++) if (-1 === (e3 = t4[n4]).row && -1 === e3.col) return false;
            return true;
          }, n3.prototype.VNt = function() {
            var t4, n4;
            this.close(), (t4 = on(this.Vv)) && (n4 = an(t4).length) <= 1 && (t4.kNt = true, t4.Dn.E1());
          }, n3.prototype.xNt = function() {
            var t4 = on(this.Vv);
            t4 && (t4.kNt = false, t4.Dn.E1());
          }, n3.prototype.HNt = function() {
            var t4, n4 = on(this.Vv);
            n4 && ((t4 = Vn(n4)) ? n4.Qy().execute({ cmd: "copyFloatingObjects", sheetName: n4.name() }) : n4.Qy().execute({ cmd: "copy", sheetName: n4.name(), ignoreClipboard: true })), this.close();
          }, n3.prototype.GNt = function() {
            var t4, e3, i3 = on(this.Vv);
            if (i3) {
              if (t4 = { r: b }, n3.et(this, "beforeDoTabCut", t4), t4.r) return;
              (e3 = Vn(i3)) ? i3.Qy().execute({ cmd: "cutFloatingObjects", sheetName: i3.name() }) : i3.Qy().execute({ cmd: "cut", sheetName: i3.name(), ignoreClipboard: true });
            }
            this.close();
          }, n3.prototype.FNt = function() {
            var t4, e3 = this, i3 = on(e3.Vv);
            if (i3) {
              if (t4 = { r: b }, n3.et(this, "beforeDoTabPaste", t4), t4.r) return;
              i3.isPasteFloatingObject && i3.isPasteFloatingObject() ? i3.Qy().execute({ cmd: "pasteFloatingObjects", sheetName: i3.name() }) : i3.isPasteShapes && i3.isPasteShapes() ? i3.Qy().execute({ cmd: "pasteShapes", sheetName: i3.name() }) : i3.Qy().execute({ cmd: "paste", sheetName: i3.name(), pasteOption: 0 });
            }
            e3.close();
          }, n3.prototype.WNt = function() {
            var t4 = this, n4 = "span." + Dt;
            s("#" + t4.LNt.Zc).find(n4).text(tt().ToolStrip_PasteText), s("#" + t4.PNt.Zc).find(n4).text(tt().ToolStrip_CutText), s("#" + t4.UNt.Zc).find(n4).text(tt().ToolStrip_CopyText), s("#" + t4.zNt.Zc).find(n4).text(tt().ToolStrip_AutoFillText);
          }, n3;
        })(u), n2.TouchToolStrip = Pt, (0, r.$e)(Pt), Gt = (function() {
          function t3(t4, n3, e3, i3, r2) {
            this._font = "normal 12px Arial";
            var o2 = this;
            o2.Zc = t4, o2._text = n3, o2.GAt = e3, i3 && (o2.tT = i3), r2 && (o2.UAt = r2);
          }
          return t3.prototype.name = function(t4) {
            var n3 = this;
            return 0 === arguments.length ? n3.Zc : (s("#" + n3.Zc).attr("id", t4), s("#" + n3.Zc + "Text").attr("id", t4 + "Text"), s("#" + n3.Zc + "Image").attr("id", t4 + "Image"), n3.Zc = t4, n3);
          }, t3.prototype.text = function(t4) {
            var n3 = this;
            return 0 === arguments.length ? n3._text : (n3._text = t4, s("#" + n3.name() + "Text").text(t4), n3);
          }, t3.prototype.font = function(t4) {
            var n3 = this, e3 = s("#" + n3.name() + "Text");
            return 0 === arguments.length ? n3._font : (n3._font = t4, e3.css("font", t4), n3);
          }, t3.prototype.foreColor = function(t4) {
            var n3 = this, e3 = s("#" + n3.name() + "Text");
            return 0 === arguments.length ? n3.Oft ? n3.Oft : e3.css("color") : (e3.css("color", t4), n3);
          }, t3.prototype.image = function(t4) {
            var n3 = this;
            return 0 === arguments.length ? n3.GAt : (n3.GAt = t4, s("#" + n3.name() + "Image").css("background-image", "url(" + t4 + ")"), n3);
          }, t3.prototype.RNt = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, c2 = this, f2 = c2.name(), h2 = c2.font(), d2 = c2.text(), v2 = s(l("span"));
            return v2.attr("id", f2 + "Image"), v2.addClass(t4), v2.css({ "background-image": "url(" + c2.image() + ")", "background-repeat": "no-repeat", display: "block", height: n3, "background-position-x": "50%" }), (r2 = s(l("span"))).attr("id", f2 + "Text"), r2.addClass(e3), r2.css("font", h2), r2.text(d2), (o2 = zn(h2, d2, e3)) > (a2 = 60) && (a2 = o2), (u2 = s(l(Bt))).attr("type", Bt), u2.attr("id", f2), u2.addClass(i3 + " gc-toolstrip-button-style ui-state-default ui-widget btn btn-default"), u2.css({ "box-sizing": "content-box", border: "0px", padding: "4px", margin: "3px", width: a2 + Ft }), u2.append(v2), u2.append(r2), u2[0];
          }, t3;
        })(), n2.TouchToolStripItem = Gt, Ut = (function() {
          function t3(t4) {
            function n3() {
              for (var t5 = "separator", n4 = 0, e3 = t5 + n4.toString(); Q.getElementById(e3); ) e3 = t5 + (++n4).toString();
              return e3;
            }
            this.Zc = n3(), t4 && (this.UAt = t4);
          }
          return t3.prototype.name = function() {
            return this.Zc;
          }, t3.prototype.RNt = function(t4, n3) {
            var e3 = s(l("div"));
            return e3.attr("id", this.name()), e3.addClass(t4), e3.css({ width: "1px", height: n3, display: "inline-block;", "background-color": "#CCC", "margin-left": "5px", "margin-right": "5px", opacity: 0.6 }), e3[0];
          }, t3;
        })(), n2.TouchToolStripSeparator = Ut, Ht = (function() {
          function t3(t4) {
            this.jS = t4;
          }
          return t3.prototype.NIt = function() {
            this.QNt = 2, this.jS.Oi = true;
          }, t3.prototype.qAt = function() {
            this.QNt = 0, this.KNt = en();
          }, t3.prototype.xIt = function() {
            return 1 === this.QNt;
          }, t3.prototype.jIt = function() {
            return 1 === this.QNt;
          }, t3.prototype._It = function() {
            return 1 === this.QNt;
          }, t3.prototype.sW = function() {
            var t4 = this;
            if (2 === t4.QNt) return true;
            if (t4.KNt) {
              if (en() - t4.KNt <= 200) return t4.JNt++, true;
              t4.KNt = 0, t4.JNt = 0, t4.QNt = 1;
            } else t4.QNt = 1;
            return t4.jS.Oi = false, false;
          }, t3.prototype.cW = function() {
            var t4 = this;
            return t4.JNt ? (t4.JNt--, true) : 2 === t4.QNt || (t4.QNt = 0, false);
          }, t3.prototype.fW = function() {
            return 2 === this.QNt;
          }, t3;
        })(), n2.IZ = Ht, Vt = /* @__PURE__ */ (function() {
          function t3(t4, n3, e3, i3, r2) {
            var o2 = this;
            o2.RS = t4, o2.HAt = e3, o2.zAt = n3, o2.VAt = i3, o2.YAt = r2;
          }
          return t3;
        })(), n2.NZ = Vt, zt = (function() {
          function t3() {
          }
          return t3.prototype.XNt = function(t4, n3) {
            var e3, i3, r2 = t4, o2 = r2.touches, u2 = r2.targetTouches, s2 = r2.changedTouches;
            false !== r2.isPrimary && (o2 && o2.length >= 1 && u2 && u2.length >= 1 && (o2[0].clientX !== u2[0].clientX || o2[0].clientY !== u2[0].clientY) || (h(t4), e3 = a(s2) ? r2 : s2[0], (i3 = Q.createEvent("MouseEvents")).initMouseEvent(n3, true, true, W, 1, e3.screenX, e3.screenY, e3.clientX, e3.clientY, false, false, false, false, 0, b), t4.target.dispatchEvent(i3)));
          }, t3.prototype.lIt = function(t4) {
            var n3, e3 = t4.pointerType;
            if (!e3 || e3 === t4[V] || e3 === _) {
              if ((n3 = t4.data).Vb) return;
              n3.Vb = true, n3.qNt = false, n3.XNt(t4, "mouseover"), n3.XNt(t4, "mousemove"), n3.XNt(t4, "mousedown");
            }
          }, t3.prototype.iE = function(t4) {
            var n3, e3 = t4.pointerType;
            if (!e3 || e3 === t4[V] || e3 === _) {
              if (!(n3 = t4.data).Vb) return;
              n3.qNt = true, n3.XNt(t4, "mousemove");
            }
          }, t3.prototype._up = function(t4) {
            var n3, e3 = t4.pointerType;
            if (!e3 || e3 === t4[V] || e3 === _) {
              if (!(n3 = t4.data).Vb) return;
              n3.XNt(t4, "mouseup"), n3.XNt(t4, "mouseout"), n3.qNt || n3.XNt(t4, "click"), n3.Vb = false;
            }
          }, t3.prototype.$Nt = function(t4, n3, e3) {
            var i3, o2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = e3.charAt(0);
            "." !== b2 && (e3 = "." + e3), i3 = E + e3, o2 = R + e3, u2 = L + e3, c2 = F + e3, f2 = B + e3, l2 = P + e3, h2 = G + e3, d2 = U + e3, v2 = H + e3, p2 = r.mt.m0(), n3 ? p2 ? (g2 = t4.style, a(g2.msTouchAction) || (g2.msTouchAction = O), a(g2.touchAction) || (g2.touchAction = O), s(t4).bind(i3, m2, m2.lIt).bind(c2, m2, m2.lIt), s(Q).bind(o2, m2, m2.iE).bind(f2, m2, m2.iE).bind(u2, m2, m2._up).bind(l2, m2, m2._up)) : s(t4).bind(h2, m2, m2.lIt).bind(d2, m2, m2.iE).bind(v2, m2, m2._up) : p2 ? (s(t4).unbind(i3).unbind(c2), s(Q).unbind(o2).unbind(f2).unbind(u2).unbind(l2)) : s(t4).unbind(h2).unbind(d2).unbind(v2);
          }, t3;
        })(), n2.QAt = zt, Yt = "newSheet", Zt = "tab", Wt = "allSheets", Qt = (function() {
          function t3(t4) {
            this.w2 = t4;
          }
          return t3.prototype.BZ = function(t4) {
            var n3, e3, i3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = t4.JZ, M2 = y2.w2, C2 = M2.im(), S2 = on(M2.Vv);
            for (M2.Og && M2.Rg(S2, false), i3 = "resize", (a2 = (o2 = M2.hitTest(w2.X, w2.Y)).element) === i3 ? (M2.Bg = true, M2.Lg = w2.X) : a2 !== Zt && a2 !== Yt && "" !== a2 || (u2 = M2.fg, s2 = r.Bf.Xl(u2), c2 = r.Bf.ql(u2), l2 = (f2 = y2.oNt(s2, c2)).getContext("2d"), h2 = r.Bf.Kl(f2), d2 = r.Bf.Jl(f2), r.Lf.Vl(l2, 1, 1), l2.drawImage(u2, 0, 0, tn(f2), $t(f2), 0, 0, tn(f2), $t(f2)), r.Lf.Vl(l2, h2, d2), y2.fg = f2, y2.t6t = M2.om, y2.n6t = M2.tm(), y2.e6t = M2.Xv(), y2.Rv = M2.Jv()), y2.i6t = M2.N2(-1), v2 = M2.Ym(M2.Zm()), y2.r6t = -1 === v2 ? M2.om : v2, p2 = 0, g2 = 0; g2 < y2.t6t; g2++) m2 = null !== (n3 = M2.a7(g2)) && void 0 !== n3 ? n3 : 0, b2 = null !== (e3 = M2.aXe(g2)) && void 0 !== e3 ? e3 : 0, p2 += C2 ? m2 : b2;
            y2._Re = p2;
          }, t3.prototype.FZ = function(t4) {
            var n3, e3, i3, o2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2, E2, R2, L2 = this, F2 = t4.JZ.X, B2 = L2.w2, P2 = B2.im(), G2 = B2.Vv, U2 = null === (n3 = (0, r.jf)(G2)) || void 0 === n3 ? void 0 : n3.options.rightToLeft;
            if (B2.Bg) e3 = F2 - B2.Lg, i3 = G2.options, o2 = G2._vp.clientWidth, i3.tabStripRatio = G2.Jg() + e3 / o2, u2 = U2 ? 0 : B2.rm() / o2, s2 = U2 ? 1 - B2.rm() / o2 : 1, G2.Jg() < u2 ? (i3.tabStripRatio = u2, B2.Lg = B2.rm()) : G2.Jg() >= s2 ? (i3.tabStripRatio = s2, B2.Lg = o2) : B2.Lg = F2;
            else {
              if (c2 = L2.fg, f2 = L2.t6t, !c2 || a(f2)) return;
              l2 = L2.i6t, h2 = L2.r6t, d2 = L2.Rv, v2 = L2.n6t, p2 = L2.e6t, g2 = P2 ? t4.nW.wAt.X : t4.nW.wAt.Y, m2 = L2.o6t(g2, f2), B2.om = m2.om, b2 = m2._size, (g2 > 0 && f2 === l2 && B2.om === l2 || g2 < 0 && f2 === h2 && B2.om === h2) && (b2 = 0), g2 > 0 && g2 > b2 + d2 ? g2 = b2 + d2 : g2 < 0 && g2 < b2 - d2 && (g2 = b2 - d2), 0 !== g2 && (M2 = (y2 = B2.fg).getContext("2d"), C2 = r.Bf.Kl(y2), S2 = r.Bf.Jl(y2), M2.save(), M2.clearRect(0, 0, r.Bf.Xl(y2), r.Bf.ql(y2)), T2 = B2.ot(), B2.wm(M2, T2), P2 ? (x2 = void 0, A2 = void 0, I2 = void 0, k2 = void 0, U2 ? (A2 = 0, k2 = $t(T2), N2 = void 0, j2 = void 0, g2 > 0 ? ((I2 = p2 - (N2 = (x2 = v2) + g2)) > 0 && (r.Lf.Vl(M2, 1, 1), M2.drawImage(c2, x2 * C2, A2, I2 * C2, k2 * S2, N2 * C2, A2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)), j2 = g2 - b2, p2 - v2 <= g2 && (j2 = 0), x2 = v2, (I2 = b2) > 0 && (r.Lf.Yl(M2, j2, 0), B2.Z2(M2, new r.Rect(x2, A2, I2, k2)), r.Lf.Yl(M2, -j2, 0))) : g2 < 0 && ((I2 = p2 - (x2 = (N2 = v2) + w(g2))) > 0 && (r.Lf.Vl(M2, 1, 1), M2.drawImage(c2, x2 * C2, A2, I2 * C2, k2 * S2, N2 * C2, A2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)), j2 = g2 - b2, p2 - v2 <= w(g2) && (j2 = 0), x2 = p2 - (I2 = w(b2)), I2 > 0 && (r.Lf.Yl(M2, j2, 0), B2.Z2(M2, new r.Rect(x2, A2, I2, k2)), r.Lf.Yl(M2, -j2, 0))), r.Lf.Vl(M2, 1, 1), x2 = 0, I2 = v2) : (D2 = v2 - L2._Re + g2, r.Lf.Yl(M2, D2, 0), B2.Z2(M2, void 0, true), r.Lf.Yl(M2, -D2, 0), r.Lf.Vl(M2, 1, 1), x2 = 0, A2 = 0, I2 = v2, k2 = $t(T2)), M2.drawImage(c2, x2 * C2, A2, I2 * C2, k2 * S2, x2 * C2, A2, I2 * C2, k2 * S2), _2 = r.I.fl(""), (O2 = Y(_2.zIndex)) > 2007 && (x2 = p2, I2 = T2.x + tn(T2) - B2.rm() - x2, M2.drawImage(c2, x2 * C2, A2, I2 * C2, k2 * S2, x2 * C2, A2, I2 * C2, k2 * S2)), x2 = tn(T2) - B2.rm(), I2 = B2.rm(), M2.drawImage(c2, x2 * C2, A2, I2 * C2, k2 * S2, x2 * C2, A2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)) : (x2 = 0, A2 = void 0, I2 = tn(T2), k2 = void 0, E2 = void 0, R2 = void 0, g2 > 0 ? ((k2 = p2 - (E2 = (A2 = v2) + g2)) > 0 && (r.Lf.Vl(M2, 1, 1), M2.drawImage(c2, x2 * C2, A2 * S2, I2 * C2, k2 * S2, x2 * C2, E2 * S2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)), R2 = g2 - b2, p2 - v2 <= g2 && (R2 = 0), A2 = v2, (k2 = b2) > 0 && (r.Lf.Yl(M2, 0, R2), B2.Z2(M2, new r.Rect(x2, A2, I2, k2)), r.Lf.Yl(M2, 0, -R2))) : g2 < 0 && ((k2 = p2 - (A2 = (E2 = v2) + w(g2))) > 0 && (r.Lf.Vl(M2, 1, 1), M2.drawImage(c2, x2 * C2, A2 * S2, I2 * C2, k2 * S2, x2 * C2, E2 * S2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)), R2 = g2 - b2, p2 - v2 <= w(g2) && (R2 = 0), A2 = p2 - (k2 = w(b2)), k2 > 0 && (r.Lf.Yl(M2, 0, R2), B2.Z2(M2, new r.Rect(x2, A2, I2, k2)), r.Lf.Yl(M2, 0, -R2))), r.Lf.Vl(M2, 1, 1), A2 = 0, k2 = v2, M2.drawImage(c2, x2 * C2, A2 * S2, I2 * C2, k2 * S2, x2 * C2, A2 * S2, I2 * C2, k2 * S2), _2 = r.I.fl(""), (O2 = Y(_2.zIndex)) > 2007 && (A2 = p2, k2 = T2.y + $t(T2) - B2.rm() - A2, M2.drawImage(c2, x2 * C2, A2 * S2, I2 * C2, k2 * S2, x2 * C2, A2 * S2, I2 * C2, k2 * S2)), A2 = $t(T2) - B2.rm(), k2 = B2.rm(), M2.drawImage(c2, x2 * C2, A2 * S2, I2 * C2, k2 * S2, x2 * C2, A2 * S2, I2 * C2, k2 * S2), r.Lf.Vl(M2, C2, S2)), M2.restore());
            }
          }, t3.prototype.GZ = function(t4) {
            var n3 = this.w2;
            n3.Bg ? (n3.Bg = false, n3.Vv.Xg()) : n3.repaint();
          }, t3.prototype.HZ = function(t4) {
            var n3, e3, i3, r2, o2 = this.w2, a2 = o2.Vv, u2 = t4.JZ, s2 = on(a2);
            o2.Og && o2.Rg(s2, false), n3 = ["first", "prevArrow", "nextArrow", "last", "", "prevButton", "nextButton"], i3 = (e3 = o2.hitTest(u2.X, u2.Y)).element, a2.Bp = true;
            try {
              n3.indexOf(i3) >= 0 ? o2.Pg(e3.index, true) : i3 === Zt ? o2.Gg(e3.index, e3.position) : i3 === Yt ? o2.Hg(e3.position) : i3 === Wt && this.zg(t4);
            } finally {
              a2.Bp = false, (r2 = on(a2)) !== s2 && (r2.Oi = true, r2.Zg());
            }
          }, t3.prototype.WAt = function(t4) {
            return this.w2.E2(t4.JZ.X, t4.JZ.Y);
          }, t3.prototype.oNt = function(t4, n3) {
            var e3 = this.fg;
            return e3 ? t4 === r.Bf.Xl(e3) && n3 === r.Bf.ql(e3) || r.Bf.$l(e3, t4, n3) : (e3 = l("canvas"), r.Bf.Wl(e3, this.w2.Vv), r.Bf.$l(e3, t4, n3)), e3;
          }, t3.prototype.o6t = function(t4, n3) {
            var e3 = this, i3 = e3.w2, r2 = e3.i6t, o2 = e3.r6t, a2 = i3.im(), u2 = i3.Vv, s2 = on(u2), c2 = null == s2 ? void 0 : s2.options.rightToLeft, f2 = n3, l2 = 0;
            if (c2 && a2) {
              if (t4 > 0) {
                for (; f2 <= o2 && !(l2 > t4); ) l2 += i3.a7(f2), f2++;
                f2 > o2 && (f2 = o2);
              } else if (t4 < 0 && -1 !== o2) {
                for (; f2 >= r2 && !(l2 < t4); ) l2 -= i3.a7(f2), f2--;
                f2 < r2 && (f2 = r2);
              }
            } else if (t4 > 0) {
              for (; f2 >= r2 && !(l2 > t4); ) l2 += a2 ? i3.a7(f2) : i3.aXe(f2), f2--;
              f2 < r2 && (f2 = r2);
            } else if (t4 < 0 && -1 !== o2) {
              for (; f2 <= o2 && !(l2 < t4); ) l2 -= a2 ? i3.a7(f2) : i3.aXe(f2), f2++;
              f2 > o2 && (f2 = o2);
            }
            return { om: f2, _size: l2 };
          }, t3.prototype.zg = function(t4) {
            var n3 = this.w2, e3 = ln(n3.getCanvas());
            n3.zg({ pageX: t4.JZ.X + e3.I0, pageY: t4.JZ.Y + e3.A0 });
          }, t3;
        })(), Kt = (function() {
          function t3(t4, n3, e3) {
            var i3, r2, o2 = this;
            o2.AZ = new Ht(o2), o2.xZ = new Vt(t4, "tabStrip", o2.AZ, 1, -1), o2.kZ = e3, o2.DZ = new Qt(n3), i3 = o2.DZ, (r2 = o2.xZ).RZ = function(t5) {
              return i3.BZ(t5);
            }, r2.LZ = function(t5) {
              return i3.FZ(t5);
            }, r2.PZ = function(t5) {
              return i3.GZ(t5);
            }, r2.UZ = function(t5) {
              return i3.HZ(t5);
            }, r2.ZAt = function(t5) {
              return i3.WAt(t5);
            };
          }
          return t3.prototype.oW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, true);
          }, t3.prototype.uW = function() {
            var t4 = this, n3 = t4.kZ;
            n3 && n3.aW(t4.xZ, false);
          }, t3.prototype.sW = function(t4) {
            return this.AZ.sW();
          }, t3.prototype.cW = function(t4) {
            return this.AZ.cW();
          }, t3.prototype.fW = function(t4) {
            return this.AZ.fW();
          }, t3;
        })(), r.g7.prototype.PD = function() {
          var t3 = this, n3 = t3.Mf, e3 = an(n3), i3 = e3.length;
          n3.My <= 0 && i3 > 0 && t3.E1(e3[i3 - 1], y, y, true);
        }, r.Worksheet.ch(_, { init: function() {
          this.kNt = false, this.INt = true;
        }, setHost: function(t3) {
          var n3 = this, e3 = n3.parent, i3 = e3 && e3.kZ || new rt(), r2 = new Nt(t3[0], n3, i3);
          r2.oW(), n3.dW = r2;
        }, dispose: function(t3) {
          var n3 = this;
          n3.dW && n3.dW.uW(), false !== t3.clearCache && (n3.dW = b);
        }, startEdit: function() {
          this.Oi && this.Dn.PD();
        }, paintAdornment: function(t3) {
          var n3 = this, e3 = t3.ctx;
          n3.Oi && (n3.isActualProtected() || Zn(n3, e3), n3.kNt ? qn(n3, e3) : Xn(n3, n3.INt, e3));
        }, preProcessMouseDown: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          (m || e3.sW(n3)) && (h(n3), t3.r = true);
        }, preProcessMouseMove: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          (m || e3.fW(n3)) && (h(n3), t3.r = true);
        }, preProcessMouseUp: function(t3) {
          var n3 = t3.e, e3 = this.dW;
          (m || e3.cW(n3)) && (h(n3), t3.r = true);
        }, preProcessMouseDbClick: function(t3) {
          (m || this.Oi) && (t3.r = true);
        }, preProcessMouseOut: function(t3) {
          m && (t3.r = true);
        }, preProcessMouseWheel: function(t3) {
          m && (t3.r = true);
        } }), r.Workbook.ch(_, { init: function() {
          this.kZ = new rt();
        }, setHost: function() {
          var t3 = this;
          t3.touchToolStrip = new Pt(t3, t3.j2());
        }, dispose: function() {
          var t3 = this, n3 = t3.kZ, e3 = t3.touchToolStrip;
          n3 && n3.L0(), e3 && (e3.L0(), t3.touchToolStrip = b);
        }, onCultureChanged: function() {
          var t3 = this.touchToolStrip;
          t3 && t3.WNt();
        } }), r.Hv.ch(_, { setHost: function() {
          var t3 = this, n3 = new Kt(t3.fg, t3, t3.Vv.kZ);
          n3.oW(), t3.dW = n3;
        }, dispose: function() {
          var t3 = this, n3 = t3.dW;
          n3 && (n3.uW(), t3.dW = b);
        }, preProcessMouseDown: function(t3) {
          var n3 = this.dW, e3 = t3.e;
          (m || n3.sW(e3)) && (h(e3), t3.r = false);
        }, preProcessMouseMove: function(t3) {
          var n3 = this.dW, e3 = t3.e;
          (m || n3.fW(e3)) && (h(e3), t3.r = false);
        }, preProcessMouseUp: function(t3) {
          var n3 = this.dW, e3 = t3.e;
          (m || n3.cW(e3)) && (h(e3), t3.r = false);
        }, preProcessMouseDbClick: function(t3) {
          var n3 = on(this.Vv);
          (m || n3 && n3.Oi) && (t3.r = false);
        }, preProcessMouseOut: function(t3) {
          m && (t3.r = false);
        } }), Jt = ".gcScrollbar", r.YM.ch(_, { initEvents: function(t3) {
          var n3;
          (this.Hb = new zt()).$Nt(t3, true, Jt);
        }, dispose: function(t3) {
          var n3 = this.Hb;
          n3 && n3.$Nt(t3, false, Jt);
        } });
      }, "./dist/plugins/touch/touch.res.en.js": function(t2, n2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.ToolStrip_AutoFillText = n2.ToolStrip_CopyText = n2.ToolStrip_CutText = n2.ToolStrip_PasteText = void 0, n2.ToolStrip_PasteText = "Paste", n2.ToolStrip_CutText = "Cut", n2.ToolStrip_CopyText = "Copy", n2.ToolStrip_AutoFillText = "AutoFill";
      }, "./dist/plugins/validation/datavalidation-cache.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o = this && this.qKr || (a = function(t3, n3) {
          return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, n4) {
            t4.__proto__ = n4;
          } || function(t4, n4) {
            for (var e3 in n4) Object.prototype.hasOwnProperty.call(n4, e3) && (t4[e3] = n4[e3]);
          }, a(t3, n3);
        }, function(t3, n3) {
          if ("function" != typeof n3 && null !== n3) throw new TypeError("Class extends value " + String(n3) + " is not a constructor or null");
          function e3() {
            this.constructor = t3;
          }
          a(t3, n3), t3.prototype = null === n3 ? Object.create(n3) : (e3.prototype = n3.prototype, new e3());
        }), a;
        function u(t3, n3) {
          var e3 = (0, i2.uUr)(n3);
          return e3.validator = t3, e3.id = t3.jKe(), e3;
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataValidationCache = void 0, r = (function(t3) {
          function n3(n4) {
            var e3 = t3.call(this) || this;
            return e3.ayt = n4, e3;
          }
          return o(n3, t3), n3.prototype.searchByRange = function(t4) {
            return this.cE.search((0, i2.uUr)(t4));
          }, n3.prototype.wUr = function(t4, n4) {
            !t4 || n4.length < 1 || this.sUr(t4, n4);
          }, n3.prototype.cUr = function(t4, n4) {
            var e3, i3, r2, o2, a2, u2, s, c = this, f = c.ayt, l = c.searchByRange(t4);
            for (i3 = 0, r2 = l; i3 < r2.length; i3++) a2 = (o2 = r2[i3]).validator, u2 = o2.id, (s = !n4 || n4 !== a2) && !(null == e3 ? void 0 : e3.has(u2)) && (a2.FX(t4, f), e3 || (e3 = /* @__PURE__ */ new Set()), e3.add(u2));
          }, n3.prototype.fUr = function(t4) {
            return this.ayt.GJ(t4);
          }, n3.prototype.sUr = function(t4, n4) {
            var e3, i3, r2, o2, a2 = this, s = a2.lUr, c = t4.jKe();
            if (s.delete(c), e3 = [], n4 && n4.length > 0) {
              for (i3 = 0, r2 = n4; i3 < r2.length; i3++) o2 = r2[i3], e3.push(u(t4, o2));
              s.set(c, e3);
            }
          }, n3.prototype.hUr = function(t4) {
            var n4, e3, i3, r2, o2, a2;
            if (t4 && !(t4.length < 1)) for (n4 = this, e3 = t4.map((function(t5) {
              return n4.fUr(t5.smt());
            })), i3 = 0; i3 < t4.length; i3++) r2 = t4[i3], o2 = e3[i3], a2 = r2.jKe(), n4.removeById(a2), n4.sUr(r2, o2), n4.addCacheById(a2);
          }, n3.prototype.get = function(t4, n4, e3, i3) {
            var r2, o2, a2, u2, s, c, f, l, h, d = this.cE, v = [], p = r2 = t4, g = o2 = n4;
            for (-1 === t4 ? (p = 0, r2 = e3 - 1) : -1 === n4 && (g = 0, o2 = i3 - 1), a2 = d.search({ minX: p, minY: g, maxX: r2, maxY: o2 }), u2 = /* @__PURE__ */ new Set(), s = 0, c = a2; s < c.length; s++) l = (f = c[s]).validator, h = f.id, u2.has(h) || (u2.add(h), v.push(l));
            return v;
          }, n3.prototype.YYr = function(t4) {
            var n4 = this.cE, e3 = /* @__PURE__ */ new Set();
            return t4.forEach((function(t5) {
              var r2, o2, a2, u2 = n4.search((0, i2.uUr)(t5));
              for (r2 = 0, o2 = u2; r2 < o2.length; r2++) a2 = o2[r2], e3.add(a2.validator);
            })), e3;
          }, n3.prototype.dispose = function() {
            t3.prototype.dispose.call(this), this.ayt = null;
          }, n3;
        })((i2 = e2("./dist/plugins/validation/rbush-cache.js")).RBushCache), n2.DataValidationCache = r;
      }, "./dist/plugins/validation/datavalidation-event.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H;
        function V(t3, n3) {
          var e3, i3, r2, o2, a2, u2, s2;
          if (!n3) return true;
          if ("" === (r2 = n3.trim())) return null === (e3 = null == t3 ? void 0 : t3.text) || void 0 === e3 ? void 0 : e3.startsWith(n3);
          if (o2 = n3.trimStart().toLowerCase(), a2 = null === (i3 = null == t3 ? void 0 : t3.text) || void 0 === i3 ? void 0 : i3.trimStart().toLowerCase(), b(o2[0]) || /^[a-z0-9]$/.test(o2[0])) {
            for (u2 = 0, s2 = 0; s2 < a2.length; s2++) if (b(a2[s2]) || /^[a-z0-9]$/.test(a2[s2])) {
              u2 = s2;
              break;
            }
            return a2.slice(u2).startsWith(o2);
          }
          return null == a2 ? void 0 : a2.startsWith(o2);
        }
        function z(t3, n3) {
          var e3, i3, r2 = {}, o2 = [];
          for (e3 = 0; e3 < t3.length; e3++) !r2[i3 = t3[e3].text] && V(t3[e3], n3) && (r2[i3] = true, o2.push(t3[e3]));
          return o2;
        }
        function Y(t3, n3, e3, i3, r2, o2) {
          n3.isEditing() && n3.endEdit(true), n3.rt.jk(t3, e3, i3, r2, o2);
        }
        Object.defineProperty(n2, "__esModule", { value: true }), i2 = e2("Core"), r = e2("Common"), o = e2("CalcEngine"), a = e2("./dist/plugins/validation/datavalidation.js"), u = r.Common.lt.ht, s = r.Common.ct, c = r.Common.zf, f = i2.mt, l = i2.Ec, h = f.pi(), d = f.Tt, v = i2.GC$, p = f.En, g = f.yt, m = f.vi, b = f.pt, y = document, w = Math.max, M = Math.min, C = "position", S = "absolute", T = "border", x = "padding", A = "box-shadow", I = "font", k = "background-color", N = "top", j = "left", D = "z-index", _ = "outline", O = "auto", E = "white", R = "none", L = "size", F = "gcUIElement", B = "min-height", P = "min-width", G = "max-width", U = "word-wrap", H = 960, v.extend(i2.nk.prototype, { PA: function(t3, n3, e3) {
          var r2, b2, V2, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt;
          function $t(t4, n4) {
            if (t4 && t4[n4]) return "function" == typeof t4[n4] ? t4[n4]() : t4[n4];
          }
          if ((V2 = (b2 = (r2 = this).Mf) && b2.parent) && (Z = b2.G1()) && ((W = V2.getActiveSheet()) || (Q = V2.getActiveSheetTab()) && (W = Q.Mf), W && b2.name() === W.name() && (K = b2, J = t3, X = n3, b2.dataRanges && (q = b2.dataRanges.getByPosition(t3, n3)) && ($ = q.convertContext({ sheet: b2, row: t3, col: n3, sheetArea: i2.SheetArea.viewport })) && (K = $.sheet, J = $.row, X = $.col), (tt = K.getDataValidator(J, X)) && (nt = b2.getCellRect(t3, n3), !r2.Ek(nt) && (et = { r: null }, a.DefaultDataValidator.et(r2, "beforeUpdateDataValidationUI", et), !et.r && (it = b2.options.rightToLeft, rt = V2.j2(), ot = V2.getHost(), at = f.gi(ot), $t(tt, "showInputMessage") && $t(tt, "inputMessage") && (ct = (ut = c.Vi)((st = c.j0)($t(tt, "inputTitle")), "\n", "<br/>"), ft = ut(st($t(tt, "inputMessage")), "\n", "<br/>"), lt = p("span"), v(lt).css(C, S).css(T, "1px #C0C0C0 solid").css(x, "3px 8px 3px 8px").css(k, "#FFFFFF").css(A, "1px 2px 5px rgba(0,0,0,0.4)").css(I, "normal normal normal 12px/normal Arial").width(O).height(O).css(N, nt.y + nt.height + 5).css(j, nt.x + (it ? 0 : nt.width / 2)).css(B, "15px").css(P, "20px").css(G, "200px").css(U, "break-word").css(D, at).html((u(ct) || "" === ct ? "" : "<b>" + ct + "</b><br/>") + ft).attr(F, "gcValidationInputMessage").appendTo(rt), b2.KD = lt), tt && 3 === $t(tt, "type") && $t(tt, "inCellDropdown") && $t(tt, "condition"))))))) {
            for (ht = z(ht = $t(tt, "condition").getValidListImp(b2, t3, n3), e3), dt = $t(tt, "condition").KJ(), vt = ht.length, pt = p("select"), gt = u(e3) ? b2.getText(t3, n3) : e3, mt = -1, bt = y.createDocumentFragment(), yt = new RegExp(String.fromCharCode(32), "g"), wt = String.fromCharCode(160), Mt = H, nt.x + Mt > window.innerWidth && (Mt = window.innerWidth - nt.x - 2), Ct = 0; Ct < vt; Ct++) null === (St = ht[Ct].text) && (St = ""), o && St instanceof o.CalcError || (mt < 0 && St === gt && (mt = Ct), St instanceof Date && (St = s.Pe(St, "M/d/yyyy h:mm:ss")), (Tt = p("option")).value = St, Tt.text = ("" + St).replace(yt, wt), Tt.style.maxWidth = "".concat(Mt, "px"), Tt.style.overflowX = "hidden", Tt.style.whiteSpace = "nowrap", Tt.style.textOverflow = "ellipsis", bt.appendChild(Tt));
            pt.appendChild(bt), pt.selectedIndex = mt > 0 ? mt : 0, xt = b2.getActualStyle(t3, n3), At = b2.Dn, It = xt && xt.font ? xt.font : At.Nn(), b2.zoom() > 1 && (It = At._n(It)), Nt = 1, (kt = b2.Ut.getSpans(l(t3, n3, 1, 1))) && kt.length > 0 && kt[0] && (Nt = kt[0].colCount), jt = n3 + Nt - 1 == b2.getColumnCount() - 1, Dt = b2.Gt(t3), _t = b2.parent && b2.parent.options.useTouchLayout, Dt = M(_t ? 50 : 15, Dt), Ot = h, Et = d.safari && (Ot.ipad || Ot.iphone), Rt = Ot.android, Lt = void 0, Ft = void 0, Bt = void 0, Pt = void 0, Gt = void 0, Et ? (Lt = nt.width + 3, Ft = nt.height + 3, Bt = nt.y - 1.5, Pt = nt.x - 1.5, Gt = E) : (Ut = 8, Lt = w(nt.width + (jt || vt <= Ut ? 0 : Dt), b2.defaults.colWidth * b2.zoom()), Lt = M(Lt, Mt), Ft = vt > Ut ? 140 : O, Bt = nt.y + nt.height, Pt = (Ht = nt.x + nt.width + (jt || vt <= Ut ? 0 : Dt) - Lt) < b2.uw().left ? nt.x : Ht, Gt = ""), Vt = v(pt).css(_, R).css(C, S).css(I, g(It)).css(D, at).css(k, Gt).height(Ft).css(j, Pt).attr(F, "gcValidationSelect").appendTo(rt).attr(L, vt > 2 ? vt : 2).css("overflow-y", "auto").css("min-width", "".concat(Lt, "px")).css("max-width", "".concat(Mt, "px")).bind("click", (function() {
              Rt || (Y(pt, b2, t3, n3, ht, dt), Et && v(b2.a6t).show());
            })).bind("keydown", (function(e4) {
              13 !== e4.keyCode && 9 !== e4.keyCode || e4.ctrlKey || e4.shiftKey || e4.altKey ? 27 !== e4.keyCode || e4.ctrlKey || e4.shiftKey || e4.altKey || v(pt).hide() : Y(pt, b2, t3, n3, ht, dt), Et && v(b2.a6t).show();
            })).bind("change", (function() {
              Rt && Y(pt, b2, t3, n3, ht, dt);
            })), pt.classList.add("gc-validation-select"), (zt = pt.options[pt.selectedIndex]) && zt.scrollIntoView({ behavior: "instant", block: "nearest", inline: "nearest" }), (Yt = b2.isEditing() && b2.ui === t3 && b2.ci === n3 && tt.inCellDropdown() && !u(e3) && ht.length > 0) || Vt.hide(), Zt = v(ot).height(), Ft = Vt.outerHeight() + 1, Et || (Ft + Bt > Zt && Bt > Ft ? Bt = nt.y - Ft : (Wt = ot.getBoundingClientRect(), Ft > (Jt = (Qt = window.innerHeight) - ((Kt = Wt.y) + Bt)) && Vt.height(Jt))), Vt.css(N, Bt), Et && Vt.bind("blur", (function() {
              r2.jk(pt, t3, n3, ht, dt), v(b2.a6t).show();
            })), b2.gf = pt, Xt = it ? nt.x - (jt ? 0 : Dt + 3) : nt.x + nt.width - (jt ? Dt : 0), (qt = p("input")).type = "image", qt.src = (0, a.Hrt)(), qt.alt = "v", v(qt).css(C, S).width(Dt).height(Dt).css(N, nt.y + nt.height - (Dt + 3 * b2.zoom())).css(j, Xt).css(D, at).css(k, E).css(T, "1px solid gray").attr(F, "gcValidationButton").appendTo(rt).bind("click", (function(t4) {
              var n4, e4;
              b2.isEditing() && !b2.endEdit() || (n4 = b2.gf, v(n4).toggle(), e4 = n4.options[n4.selectedIndex], u(e4) || e4.scrollIntoView({ behavior: "instant", block: "nearest", inline: "nearest" }), Et && v(b2.a6t).toggle(), m(t4));
            })), b2.a6t = qt;
          }
        } });
      }, "./dist/plugins/validation/datavalidation.entry.js": function(t2, n2, e2) {
        "use strict";
        Object.defineProperty(n2, "__esModule", { value: true }), n2.createListValidator = n2.createFormulaListValidator = n2.createFormulaValidator = n2.createTextLengthValidator = n2.createTimeValidator = n2.createDateValidator = n2.createNumberValidator = n2.kf = n2.Hrt = n2.HighlightPosition = n2.HighlightType = n2.DefaultDataValidator = n2.ErrorStyle = n2.DataValidationResult = n2.CriteriaType = void 0, e2("./dist/plugins/validation/datavalidation-event.js"), e2("./dist/plugins/validation/rbush-cache.js"), e2("./dist/plugins/validation/datavalidation-cache.js");
        var i2 = e2("./dist/plugins/validation/datavalidation.js");
        Object.defineProperty(n2, "CriteriaType", { enumerable: true, get: function() {
          return i2.CriteriaType;
        } }), Object.defineProperty(n2, "DataValidationResult", { enumerable: true, get: function() {
          return i2.DataValidationResult;
        } }), Object.defineProperty(n2, "ErrorStyle", { enumerable: true, get: function() {
          return i2.ErrorStyle;
        } }), Object.defineProperty(n2, "DefaultDataValidator", { enumerable: true, get: function() {
          return i2.DefaultDataValidator;
        } }), Object.defineProperty(n2, "HighlightType", { enumerable: true, get: function() {
          return i2.HighlightType;
        } }), Object.defineProperty(n2, "HighlightPosition", { enumerable: true, get: function() {
          return i2.HighlightPosition;
        } }), Object.defineProperty(n2, "Hrt", { enumerable: true, get: function() {
          return i2.Hrt;
        } }), Object.defineProperty(n2, "kf", { enumerable: true, get: function() {
          return i2.kf;
        } }), Object.defineProperty(n2, "createNumberValidator", { enumerable: true, get: function() {
          return i2.createNumberValidator;
        } }), Object.defineProperty(n2, "createDateValidator", { enumerable: true, get: function() {
          return i2.createDateValidator;
        } }), Object.defineProperty(n2, "createTimeValidator", { enumerable: true, get: function() {
          return i2.createTimeValidator;
        } }), Object.defineProperty(n2, "createTextLengthValidator", { enumerable: true, get: function() {
          return i2.createTextLengthValidator;
        } }), Object.defineProperty(n2, "createFormulaValidator", { enumerable: true, get: function() {
          return i2.createFormulaValidator;
        } }), Object.defineProperty(n2, "createFormulaListValidator", { enumerable: true, get: function() {
          return i2.createFormulaListValidator;
        } }), Object.defineProperty(n2, "createListValidator", { enumerable: true, get: function() {
          return i2.createListValidator;
        } });
      }, "./dist/plugins/validation/datavalidation.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt;
        function gt(t3) {
          if (y(t3)) return 0;
          if ("number" == typeof t3) return t3;
          if ("string" == typeof t3) {
            var n3 = x.Xf(S, t3, true);
            if (!isNaN(n3) && n3.toString() === t3) return n3;
          }
          return S;
        }
        function mt(t3) {
          return !y(t3) && t3 instanceof Date ? M(t3) : t3;
        }
        function bt(t3, n3) {
          var e3, i3, r2;
          if (!y(t3)) return 1 === t3 || 2 === t3 ? e3 = xt(n3.operator, n3.value1, n3.value2, 1 === t3) : 3 === t3 ? n3.value ? e3 = _t(n3.value) : n3.formula && (e3 = Dt(n3.formula)) : 4 === t3 || 5 === t3 ? (i3 = n3.value1, r2 = n3.value2, i3 && "/OADate(" === i3.substr(0, 8) && (i3 = Q.dJ(i3)), r2 && "/OADate(" === r2.substr(0, 8) && (r2 = Q.dJ(r2)), e3 = 5 === t3 ? kt(n3.operator, i3, r2) : It(n3.operator, i3, r2)) : 6 === t3 ? e3 = Nt(n3.operator, n3.value1, n3.value2) : 7 === t3 && void 0 !== n3.formula && (e3 = jt(n3.formula)), e3 ? e3.condition() : void 0;
        }
        function yt(t3) {
          var n3, e3, i3 = [], r2 = t3 && t3.length;
          for (e3 = 0; e3 < r2; e3++) n3 = t3[e3], i3.push(Y(n3.row, n3.col, n3.rowCount, n3.colCount));
          return i3;
        }
        function wt(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
          return t3.intersect(n3, e3, i3, r2) ? (a2 = t3.rowCount, u2 = t3.colCount, s2 = W(0, t3.row), c2 = W(0, t3.col), f2 = false, l2 = false, h2 = false, n3 = W(0, n3), e3 = W(0, e3), o2 || (o2 = [-1, -1]), d2 = o2[0], v2 = o2[1], -1 === a2 && (a2 = d2 - s2, l2 = true), -1 === u2 && (u2 = v2 - c2, f2 = true), -1 === i3 && (i3 = d2 - n3), -1 === r2 && (r2 = v2 - e3, h2 = true), g2 = s2 + a2 - 1, m2 = c2, b2 = c2 + u2 - 1, y2 = n3, w2 = n3 + i3 - 1, M2 = e3, C2 = e3 + r2 - 1, S2 = [], -1 !== (p2 = s2) && -1 !== m2 && -1 !== y2 && -1 !== M2 && (M2 - m2 > 0 && (T2 = Y(p2, m2, l2 ? -1 : a2, M2 - m2), S2.push(T2)), b2 - C2 > 0 && (x2 = Y(p2, C2 + 1, l2 ? -1 : a2, b2 - C2), S2.push(x2)), y2 - p2 > 0 && (A2 = Y(p2, W(M2, m2), y2 - p2, f2 && h2 ? -1 : Z(C2, b2) - W(M2, m2) + 1), S2.push(A2)), g2 - w2 > 0 && (I2 = Y(w2 + 1, W(M2, m2), g2 - w2, f2 && h2 ? -1 : Z(C2, b2) - W(M2, m2) + 1), S2.push(I2))), S2.c6t = true, S2) : [t3];
        }
        function Mt(t3, n3) {
          if (!y(t3)) {
            if ("string" == typeof t3 && (t3 = R(t3)), 3 === n3) return t3;
            if (4 === n3 || 5 === n3) {
              var e3 = parseFloat(t3);
              isNaN(e3) || (t3 = V(t3));
            }
            return !t3 || t3 instanceof Date || (t3 = O(t3)), t3;
          }
        }
        function Ct(t3, n3, e3, i3) {
          return A(t3, n3, e3, i3, (function(n4, e4) {
            this.LEr(t3, n4);
          }));
        }
        function St() {
          return "data:image/png;base64, ";
        }
        function Tt(t3) {
          return g && t3 && "=" === t3[0];
        }
        function xt(t3, n3, e3, i3) {
          var r2, o2, a2, u2, s2 = S, c2 = S, f2 = S, l2 = S;
          return Tt(n3) ? s2 = b(n3, "=") : c2 = n3, Tt(e3) ? f2 = b(e3, "=") : l2 = e3, r2 = S, 6 === t3 && ((o2 = m(1, 3, c2, s2)).integerValue(i3), (a2 = m(1, 5, l2, f2)).integerValue(i3), r2 = m(0, 1, S, S, S, S, S, o2, a2)), 7 === t3 && ((o2 = m(1, 4, c2, s2)).integerValue(i3), (a2 = m(1, 2, l2, f2)).integerValue(i3), r2 = m(0, 0, S, S, S, S, S, o2, a2)), t3 >= 0 && t3 <= 5 && (r2 = m(1, t3, c2, s2)).integerValue(i3), (u2 = new dt(r2)).type(i3 ? 1 : 2), u2.comparisonOperator(t3), u2;
        }
        function At(t3, n3, e3, i3, r2) {
          var o2, a2, u2, s2, c2, f2 = S, l2 = S, h2 = S, d2 = S;
          if (Tt(n3) ? f2 = b(n3, "=") : l2 = n3, Tt(e3) ? h2 = b(e3, "=") : d2 = e3, o2 = S, 6 === t3 && (a2 = m(i3, 5, l2, f2), u2 = m(i3, 3, d2, h2), o2 = m(0, 1, S, S, S, S, S, a2, u2)), 7 === t3 && (a2 = m(i3, 2, l2, f2), u2 = m(i3, 4, d2, h2), o2 = m(0, 0, S, S, S, S, S, a2, u2)), t3 >= 0 && t3 <= 5) {
            switch (t3) {
              case 0:
                s2 = 0;
                break;
              case 1:
                s2 = 1;
                break;
              case 2:
                s2 = 4;
                break;
              case 3:
                s2 = 5;
                break;
              case 4:
                s2 = 2;
                break;
              case 5:
                s2 = 3;
            }
            o2 = m(i3, s2, l2, f2);
          }
          return (c2 = new dt(o2)).type(r2), c2.comparisonOperator(t3), c2;
        }
        function It(t3, n3, e3) {
          return At(t3, n3, e3, 5, 4);
        }
        function kt(t3, n3, e3) {
          return At(t3, n3, e3, 13, 5);
        }
        function Nt(t3, n3, e3) {
          var i3, r2, o2, a2, u2 = S, s2 = S, c2 = S, f2 = S;
          return Tt(n3) ? u2 = b(n3, "=") : s2 = n3, Tt(e3) ? c2 = b(e3, "=") : f2 = e3, i3 = S, 6 === t3 && (r2 = m(7, 3, s2, u2), o2 = m(7, 5, f2, c2), i3 = m(0, 1, S, S, S, S, S, r2, o2)), 7 === t3 && (r2 = m(7, 4, s2, u2), o2 = m(7, 2, f2, c2), i3 = m(0, 0, S, S, S, S, S, r2, o2)), t3 >= 0 && t3 <= 5 && (i3 = m(7, t3, s2, u2)), (a2 = new dt(i3)).type(6), a2.comparisonOperator(t3), a2;
        }
        function jt(t3) {
          if (!g) return S;
          var n3 = new dt(m(4, S, S, b(t3, "="), 4));
          return n3.type(7), n3;
        }
        function Dt(t3) {
          if (!g) return S;
          var n3 = new dt(o.Condition.fromFormula(t3));
          return n3.type(3), n3;
        }
        function _t(t3) {
          var n3 = new dt(o.Condition.fromSource(t3));
          return n3.type(3), n3;
        }
        function Ot(t3) {
          return t3 && t3.getExpressions && t3.getExpressions().length > 0;
        }
        function Et(t3) {
          return this.JS(t3);
        }
        function Rt(t3, n3) {
          if (t3 && n3 && n3.length) return n3.map(Et.bind(t3));
        }
        function Lt(t3, n3, e3) {
          var i3 = t3.rowCount, r2 = t3.colCount, o2 = Y(t3.row, t3.col, i3, r2);
          return 0 === t3.row && i3 === n3 && (o2.row = -1), 0 === t3.col && r2 === e3 && (o2.col = -1), o2;
        }
        function Ft(t3, n3) {
          var e3 = t3.getRowCount(), i3 = t3.getColumnCount();
          return n3.map((function(t4) {
            return Lt(t4, e3, i3);
          }));
        }
        function Bt(t3) {
          switch (t3) {
            case "none":
              return ut.anyValue;
            case "whole":
              return ut.wholeNumber;
            case "decimal":
              return ut.decimalValues;
            case "list":
              return ut.list;
            case "date":
              return ut.date;
            case "time":
              return ut.time;
            case "textLength":
              return ut.textLength;
            case "custom":
              return ut.custom;
          }
        }
        function Pt(t3) {
          var n3, e3, i3 = [];
          if (t3) for (n3 in t3) (e3 = t3[n3]) && i3.push(e3);
          return i3;
        }
        function Gt(t3) {
          return "string" == typeof t3 && (t3 = '"' + t3 + '"'), t3;
        }
        function Ut(t3) {
          var n3 = t3.getFormulaString(T, T, T, true);
          return y(n3) ? (n3 = t3.expected(), Gt(j(n3))) : n3;
        }
        function Ht(t3) {
          if (y(t3)) return S;
          var n3 = t3.conType(), e3;
          return 0 === n3 ? Vt(t3) : 1 === n3 || 7 === n3 ? (e3 = t3.formula(), y(e3) && (e3 = t3.expected()), { firstFormula: e3 }) : 4 === n3 ? { firstFormula: y(t3.formula()) ? t3.expected() : t3.formula() } : 12 === n3 || 5 === n3 || 13 === n3 ? { firstFormula: Ut(t3) } : { firstFormula: S };
        }
        function Vt(t3) {
          if (y(t3)) return S;
          var n3 = S, e3 = S;
          return t3.item1() && (n3 = 0 === t3.item1().conType() ? Vt(t3.item1()).firstFormula : Ht(t3.item1()).firstFormula), t3.item2() && (e3 = 0 === t3.item2.conType ? Vt(t3.item2()).firstFormula : Ht(t3.item2()).firstFormula), { firstFormula: n3, secondFormula: e3 };
        }
        function zt(t3, n3) {
          var e3, i3;
          if (!y(t3)) return e3 = t3, n3 && Tt(e3) && (e3 = e3.substr(1)), i3 = +e3, isNaN(i3) ? t3 : i3;
        }
        function Yt(t3) {
          var n3 = t3.row, e3 = t3.col, i3 = t3.rowCount, o2 = t3.colCount;
          return -1 === n3 && -1 === e3 ? e3 = 0 : (-1 !== n3 && -1 !== i3 && n3 + i3 > r.MAX_ROW_COUNT && (i3 = r.MAX_ROW_COUNT - n3), -1 !== e3 && -1 !== o2 && e3 + o2 > r.MAX_COLUMN_COUNT && (o2 = r.MAX_COLUMN_COUNT - e3)), Y(n3, e3, i3, o2);
        }
        function Zt(t3) {
          var n3 = t3.map(Yt);
          return a.rangesToFormula(n3, 0, 0, 15, false).split(", ").join(" ");
        }
        function Wt(t3, n3, e3) {
          var i3, r2;
          return e3 ? (r2 = P(n3, "sqref")) && (i3 = a.formulaToRanges(t3, r2.c_[0], 0, 0, true)[0].ranges) : i3 = a.formulaToRanges(t3, n3.sqref, 0, 0, true)[0].ranges, i3;
        }
        function Qt(t3, n3, e3) {
          var i3, o2, a2, u2 = 0, s2 = 0, c2 = function(n4, e4) {
            if (n4 && n4.length > 0) {
              var i4 = Kt(t3, n4, true, e4);
              u2 = W(i4.maxRowCount, u2), s2 = W(i4.maxColCount, s2);
            }
          };
          c2(null === (i3 = P(n3, d)) || void 0 === i3 ? void 0 : i3.c_, false), a2 = P(n3, h), c2(null === (o2 = U(a2, "dataValidations")) || void 0 === o2 ? void 0 : o2.c_, true), (u2 > 0 || s2 > 0) && r.Util.So(t3, u2, s2, e3);
        }
        function Kt(t3, n3, e3, i3) {
          var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = 0, g2 = 0;
          for (o2 = n3.length - 1; o2 >= 0; o2--) {
            if (u2 = 0, s2 = 0, (c2 = Wt(t3, a2 = n3[o2], i3)) && c2.length > 0) for (f2 = 0, l2 = c2; f2 < l2.length; f2++) d2 = (h2 = l2[f2]).row + (h2.rowCount > 0 ? h2.rowCount : 1), v2 = h2.col + (h2.colCount > 0 ? h2.colCount : 1), e3 && (d2 >= r.XmlConstants.Io || v2 >= r.XmlConstants.xo) || (u2 = W(u2, d2), s2 = W(s2, v2));
            p2 = W(p2, u2), g2 = W(g2, s2);
          }
          return { maxRowCount: p2, maxColCount: g2 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.DataValidationManager = n2.createListValidator = n2.createFormulaListValidator = n2.createFormulaValidator = n2.createTextLengthValidator = n2.createTimeValidator = n2.createDateValidator = n2.createNumberValidator = n2.kf = n2.Hrt = n2.DefaultDataValidator = n2.HighlightPosition = n2.HighlightType = n2.ErrorStyle = n2.DataValidationResult = n2.CriteriaType = void 0, i2 = e2("Common"), r = e2("Core"), o = e2("ConditionalFormatting"), a = e2("SheetsCalc"), u = e2("CalcEngine"), s = e2("./dist/plugins/validation/datavalidation-cache.js"), c = i2.Common.ct, f = r.UsedRangeUtil.vh, l = r.UsedRangeUtil.hh, h = r.XFileConstants.Au, d = r.XFileConstants.Ou, v = r.XFileConstants.Ru, p = "1", g = !!u, m = o.aJ, b = i2.Common.zf.cJ, y = i2.Common.lt.ht, w = i2.Common.lt.tv, M = c.o0, C = r.GC$, S = null, T = void 0, x = r.mt, A = x.p0, I = x.T1, k = x.G0, N = x.e1, j = x.i1, D = x.vo, _ = x.n1, O = x.g1, E = x.p1, R = r.Util.mr, L = r.Util.addXLFNPrefix, F = r.Util.pr, B = r.Util.io, P = x.xr, G = x.C1, U = x.Hue, H = x.c1, V = x.Bve, z = r.range_parser.Oc, Y = r.Ec, Z = Math.min, W = Math.max, Q = i2.Common.ct, K = ".validator", $ = { type: 0, color: J = "red" }, tt = { type: 1, color: J, position: X = 1 }, nt = { type: 2, color: J, position: q = 5, image: null }, (function(t3) {
          t3[t3.none = 0] = "none", t3[t3.whole = 1] = "whole", t3[t3.decimal = 2] = "decimal", t3[t3.list = 3] = "list", t3[t3.date = 4] = "date", t3[t3.time = 5] = "time", t3[t3.textLength = 6] = "textLength", t3[t3.custom = 7] = "custom";
        })(et || (et = {})), (function(t3) {
          t3[t3.stop = 0] = "stop", t3[t3.warning = 1] = "warning", t3[t3.information = 2] = "information";
        })(it || (it = {})), rt = { 0: "equal", 1: "notEqual", 2: "greaterThan", 4: "lessThan", 3: "greaterThanOrEqual", 5: "lessThanOrEqual", 6: "between", 7: "notBetween" }, ot = { equal: 0, notEqual: 1, greaterThan: 2, greaterThanOrEqual: 3, lessThan: 4, lessThanOrEqual: 5, between: 6, notBetween: 7 }, at = window, (function(t3) {
          t3[t3.anyValue = 0] = "anyValue", t3[t3.wholeNumber = 1] = "wholeNumber", t3[t3.decimalValues = 2] = "decimalValues", t3[t3.list = 3] = "list", t3[t3.date = 4] = "date", t3[t3.time = 5] = "time", t3[t3.textLength = 6] = "textLength", t3[t3.custom = 7] = "custom";
        })(ut = n2.CriteriaType || (n2.CriteriaType = {})), (function(t3) {
          t3[t3.forceApply = 0] = "forceApply", t3[t3.discard = 1] = "discard", t3[t3.retry = 2] = "retry";
        })(st = n2.DataValidationResult || (n2.DataValidationResult = {})), (function(t3) {
          t3[t3.stop = 0] = "stop", t3[t3.warning = 1] = "warning", t3[t3.information = 2] = "information";
        })(ct = n2.ErrorStyle || (n2.ErrorStyle = {})), (function(t3) {
          t3[t3.circle = 0] = "circle", t3[t3.dogEar = 1] = "dogEar", t3[t3.icon = 2] = "icon";
        })(ft = n2.HighlightType || (n2.HighlightType = {})), (function(t3) {
          t3[t3.topLeft = 0] = "topLeft", t3[t3.topRight = 1] = "topRight", t3[t3.bottomRight = 2] = "bottomRight", t3[t3.bottomLeft = 3] = "bottomLeft", t3[t3.outsideLeft = 4] = "outsideLeft", t3[t3.outsideRight = 5] = "outsideRight";
        })(lt = n2.HighlightPosition || (n2.HighlightPosition = {})), ht = ["errorStyle", "ignoreBlank", "preciseCompareDate", "inCellDropdown", "showInputMessage", "showErrorMessage", "inputTitle", "errorTitle", "inputMessage", "errorMessage", "comparisonOperator", "type", "condition"], dt = (function() {
          function t3(t4) {
            var n3 = this;
            n3.assignId(), n3.l6t = w($), t4 && (n3.condition(t4), n3.condition().ignoreBlank(n3.ignoreBlank())), n3._S = [];
          }
          return t3.prototype.value1 = function(t4, n3) {
            var e3, i3 = this.condition(), r2 = i3 && i3.item1() ? i3.item1() : i3;
            return r2 ? (e3 = r2.formula(t4, n3)) && e3.length > 0 ? "=" + b(C.trim(e3.toString()), "=") : r2.expected() : S;
          }, t3.prototype.value2 = function(t4, n3) {
            var e3, i3 = this.condition(), r2 = i3 && i3.item2() ? i3.item2() : i3;
            return r2 ? (e3 = r2.formula(t4, n3)) && e3.length > 0 ? "=" + b(C.trim(e3.toString()), "=") : r2.expected() : S;
          }, t3.prototype.isValid = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2, s2 = this, c2 = s2.condition(), f2 = y(r2) || true === r2;
            if (c2) {
              if (s2.ignoreBlank() && (y(i3) || "" === i3)) return true;
              if (o2 = i3, a2 = void 0, !y(i3)) switch (s2.type()) {
                case 0:
                  return true;
                case 2:
                case 1:
                  a2 = f2 ? gt(i3) : i3, y(a2) || (o2 = a2);
                  break;
                case 4:
                case 5:
                  a2 = f2 ? V(i3) : i3, y(a2) || (o2 = a2);
              }
              t4 && (t4.EJ = true), u2 = void 0;
              try {
                u2 = c2.evaluate(t4, n3, e3, o2, o2);
              } catch (t5) {
                u2 = true;
              } finally {
                t4 && (t4.EJ = false);
              }
              return u2;
            }
            return true;
          }, t3.prototype.reset = function() {
            var t4, n3, e3 = this;
            e3.errorStyle(0), e3.ignoreBlank(true), e3.preciseCompareDate(false), e3.inCellDropdown(true), e3.showInputMessage(true), e3.showErrorMessage(true), e3.inputTitle(""), e3.errorTitle(""), e3.inputMessage(""), e3.errorMessage(""), e3.comparisonOperator(6), e3.type(0), e3.condition(S), e3._S.length = 0, (n3 = null === (t4 = e3.Mf) || void 0 === t4 ? void 0 : t4.b8) && n3.m6t(e3);
          }, t3.prototype.getValidList = function(t4, n3, e3) {
            var i3 = this.condition();
            return i3 !== S && 3 === this.type() && 12 === i3.conType() ? i3.getValidList(t4, n3, e3) : S;
          }, t3.prototype.highlightStyle = function(t4) {
            var n3, e3, i3, r2 = this;
            if (0 === arguments.length) return r2.l6t;
            if (!y(t4)) {
              if (r2.l6t.type !== t4.type) switch (n3 = t4.type) {
                case 1:
                  r2.l6t = w(tt);
                  break;
                case 2:
                  r2.l6t = w(nt);
                  break;
                default:
                  r2.l6t = w($);
              }
              for (i3 in e3 = r2.l6t) e3.hasOwnProperty(i3) && t4.hasOwnProperty(i3) && (e3[i3] = t4[i3]);
              return r2.Mf && (r2.LEr("highlightStyle", r2.l6t), r2.Mf.repaint()), r2;
            }
          }, t3.prototype.FEr = function() {
            var t4 = this._S.map(Yt);
            return a.rangesToFormula(t4, 0, 0, 15, false);
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3 = this, i3 = {};
            return ht.forEach((function(r2) {
              var o2 = e3[r2]();
              e3[r2].isDefault(o2) || (i3[r2] = o2 && o2.toJSON ? o2.toJSON(t4, n3) : o2);
            })), i3.highlightStyle = JSON.stringify(e3.l6t), C.isEmptyObject(i3) ? T : ((null == n3 ? void 0 : n3.isServer) ? (i3[r.ID_SYMBOL] = e3.jKe(), i3.ranges = e3._S.map((function(t5) {
              var n4;
              if (t5) return null === (n4 = t5.toJSON) || void 0 === n4 ? void 0 : n4.call(t5);
            }))) : i3.ranges = e3.FEr(), i3);
          }, t3.prototype.fromJSON = function(t4, n3, e3, i3) {
            var o2, u2, s2, c2, f2;
            t4 && !C.isEmptyObject(t4) && (o2 = this, t4.ranges && ("string" == typeof t4.ranges ? o2._S = a.formulaToRanges(e3, t4.ranges, 0, 0, true)[0].ranges : Array.isArray(t4.ranges) && (o2._S = t4.ranges.map((function(t5) {
              if (t5) return Y(t5.row, t5.col, t5.rowCount, t5.colCount);
            })))), t4.highlightStyle && (o2.l6t = JSON.parse(t4.highlightStyle)), ht.forEach((function(i4) {
              var r2, a2, u3 = t4[i4];
              I(u3) && ("condition" === i4 ? ((r2 = m()).fromJSON(t4.condition, e3, n3), o2.condition(r2), (a2 = r2.ranges()) && a2.length ? o2._S = a2 : r2.ranges(o2._S), r2.context(e3)) : o2[i4](u3, false));
            })), (u2 = t4.validatorInfo) && (s2 = e3.Lp.useR1C1, c2 = bt(t4.type, u2), f2 = u2.operator, c2 && (c2.ranges(o2._S), c2.ignoreBlank(o2.ignoreBlank()), c2.context(e3), s2 && k(c2), o2.condition(c2)), y(f2) || o2.comparisonOperator(f2)), t4[r.ID_SYMBOL] && o2.UKn(t4[r.ID_SYMBOL], true));
          }, t3.prototype.clone = function(n3) {
            var e3, i3;
            return this.ZB ? ((e3 = this.condition()) && e3.initExpression(), this) : ((i3 = new t3()).fromJSON(this.toJSON(n3), false, n3 || this.Mf), i3._S = [], i3);
          }, t3.prototype.context = function(t4) {
            if (t4) {
              this.DJ = t4;
              var n3 = this.condition();
              n3 && (n3.ranges(this._S), n3.context(t4));
            }
            return this.DJ;
          }, t3.prototype.v6t = function(t4) {
            var n3, e3;
            if (t4) {
              for (n3 = this._S, e3 = 0; e3 < n3.length; e3++) if (n3[e3].containsRange(t4)) return;
              n3.push(t4);
            }
          }, t3.prototype.FX = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2;
            void 0 === e3 && (e3 = true), r2 = (i3 = this)._S, t4 && r2.length && (o2 = t4.row, a2 = t4.col, u2 = t4.rowCount, s2 = t4.colCount, c2 = [], f2 = false, l2 = i3.Mf, h2 = l2 && [l2.getRowCount(), l2.getColumnCount()], r2.forEach((function(t5) {
              var n4 = wt(t5, o2, a2, u2, s2, h2);
              n4.c6t && (f2 = true), c2.push(n4);
            })), i3._S = [].concat.apply([], c2), f2 && (n3.m6t(i3), e3 && l2 && (0 === i3._S.length ? l2.$Dr({ type: "removeDataValidator", range: t4, validator: i3, oldRanges: r2 }) : l2.$Dr({ type: "setDataValidatorRange", validator: i3, oldRanges: r2 }))));
          }, t3.prototype.smt = function() {
            return this._S;
          }, t3.prototype.XJ = function() {
            var t4 = this;
            t4.condition() && t4.condition().initExpression();
          }, t3.prototype.g6t = function(t4) {
            this.condition() && this.condition().ranges(t4);
          }, t3.prototype.qJ = function(t4, n3, e3) {
            var i3, r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = false;
            for (v2.XJ(), r2 = 0, o2 = (i3 = v2._S).length; r2 < o2; r2++) u2 = (a2 = i3[r2]).row, s2 = a2.rowCount, c2 = a2.col, f2 = a2.colCount, l2 = u2 === t4.row && s2 === t4.rowCount && t4.col <= c2 && f2 <= t4.colCount, h2 = u2 === n3.row && s2 === n3.rowCount && n3.col <= c2 && f2 <= n3.colCount, (d2 = l2 || h2) && (i3[r2] = Y(u2, c2, s2 + e3, f2), p2 = true);
            return p2 && v2.g6t(i3), p2;
          }, t3.prototype.JO = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
            if (!(t4 < 0 || n3 <= 0)) {
              for ((r2 = this).condition() && r2.condition().initExpression(), o2 = r2._S, (a2 = r2.Mf) && (u2 = a2.THr({ type: "setDataValidatorRange", oldRanges: o2 })), s2 = 0; s2 < o2.length; s2++) if (f2 = (c2 = o2[s2]).row, e3 && e3.length > 0) {
                for (l2 = false, h2 = 0, d2 = e3.length; h2 < d2; h2++) if (v2 = e3[h2]) {
                  if (true === i3 && !v2.containsRange(c2)) continue;
                  if (i3) {
                    if (v2.row === f2 && v2.row + v2.rowCount - n3 === f2 + c2.rowCount && f2 + c2.rowCount === t4) {
                      c2.rowCount += n3, l2 = true;
                      break;
                    }
                    if (t4 + n3 === f2 && t4 === v2.row && v2.row + v2.rowCount === f2 + c2.rowCount) {
                      c2.row -= n3, c2.rowCount += n3;
                      break;
                    }
                  } else {
                    if (v2.row === f2 && v2.row + v2.rowCount - n3 === f2 + c2.rowCount && f2 === t4) {
                      c2.rowCount += n3, l2 = true;
                      break;
                    }
                    if (t4 <= f2) {
                      c2.row += n3;
                      break;
                    }
                    if (t4 <= f2 + c2.rowCount) {
                      c2.rowCount += n3;
                      break;
                    }
                  }
                }
                if (l2) break;
              } else t4 <= f2 ? c2.row += n3 : t4 <= f2 + c2.rowCount && (c2.rowCount += n3);
              a2 && a2.$Dr({ type: "setDataValidatorRange", validator: r2 }, u2), r2.condition() && r2.condition().ranges(yt(o2));
            }
          }, t3.prototype.xP = function(t4, n3) {
            var e3, i3, o2, a2;
            t4 < 0 || n3 <= 0 || ((e3 = this).condition() && e3.condition().initExpression(), i3 = [], (o2 = e3.Mf) && (a2 = o2.THr({ type: "setDataValidatorRange", oldRanges: i3 })), e3._S.forEach((function(e4) {
              (0, r.ukr)(e4, t4, n3), (e4.rowCount > 0 || -1 === e4.row && -1 === e4.rowCount) && i3.push(e4);
            })), e3._S = i3, o2 && o2.$Dr({ type: "setDataValidatorRange", validator: e3 }, a2), this.condition() && this.condition().ranges(yt(i3)));
          }, t3.prototype.qO = function(t4, n3, e3, i3) {
            var r2, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
            if (!(t4 < 0 || n3 <= 0)) {
              for ((r2 = this).condition() && r2.condition().initExpression(), o2 = r2._S, (a2 = r2.Mf) && (u2 = a2.THr({ type: "setDataValidatorRange", oldRanges: o2 })), s2 = 0; s2 < o2.length; s2++) {
                if (c2 = o2[s2], e3 && e3.length > 0) {
                  for (f2 = false, l2 = false, h2 = 0, d2 = e3.length; h2 < d2; h2++) if (!(v2 = e3[h2]) || v2.containsRange(c2)) {
                    if (i3 && v2 && v2.col === c2.col - n3 && v2.col + v2.colCount === c2.col + c2.colCount && v2.col === t4) {
                      c2.colCount += n3, c2.col -= n3, l2 = true;
                      break;
                    }
                    if (v2 && v2.col === c2.col && v2.col + v2.colCount - n3 === c2.col + c2.colCount && v2.col === t4) {
                      c2.colCount += n3, l2 = true;
                      break;
                    }
                  } else f2 = true;
                  if (f2) continue;
                  if (l2) break;
                }
                p2 = c2.col, 1 === i3 ? t4 === p2 + c2.colCount && (c2.colCount += n3) : i3 ? t4 >= p2 && t4 <= p2 + c2.colCount && (c2.colCount += n3) : t4 <= p2 ? c2.col += n3 : t4 <= p2 + c2.colCount && (c2.colCount += n3);
              }
              a2 && a2.$Dr({ type: "setDataValidatorRange", validator: r2 }, u2), r2.condition() && r2.condition().ranges(yt(o2));
            }
          }, t3.prototype.NP = function(t4, n3) {
            var e3, i3, o2, a2;
            t4 < 0 || n3 <= 0 || ((e3 = this).condition() && e3.condition().initExpression(), i3 = [], (o2 = e3.Mf) && (a2 = o2.THr({ type: "setDataValidatorRange", oldRanges: i3 })), e3._S.forEach((function(e4) {
              (0, r.akr)(e4, t4, n3), (e4.colCount > 0 || -1 === e4.col && -1 === e4.colCount) && i3.push(e4);
            })), e3._S = i3, o2 && o2.$Dr({ type: "setDataValidatorRange", validator: e3 }, a2), e3.condition() && e3.condition().ranges(yt(i3)));
          }, t3.prototype.rv = function(t4, n3, e3, i3, r2, o2) {
            var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this;
            v2._S = Wt(n3, t4, e3), a2 = Bt(t4.type), u2 = ot[t4.operator], y(a2) || v2.type(a2), y(u2) && (u2 = 6), v2.comparisonOperator(u2), t4.allowBlank === p ? v2.ignoreBlank(true) : v2.ignoreBlank(false), y(t4.error) || v2.errorMessage(_(B(t4.error))), y(t4.errorTitle) || v2.errorTitle(_(t4.errorTitle)), y(t4.errorStyle) || v2.errorStyle(ct[t4.errorStyle]), y(t4.prompt) || v2.inputMessage(_(B(t4.prompt))), t4.showDropDown === p && v2.inCellDropdown(false), y(t4.promptTitle) || v2.inputTitle(_(t4.promptTitle)), t4.showErrorMessage !== p && v2.showErrorMessage(false), t4.showInputMessage !== p && v2.showInputMessage(false), (s2 = t4.c_) && s2.length > 0 && (e3 ? s2.forEach((function(t5) {
              if (t5) {
                var n4 = P(t5, "f");
                l2 = _(n4 && n4.c_[0]), "formula1" === t5.n_ && (c2 = Mt(l2, a2)), "formula2" === t5.n_ && (f2 = Mt(l2, a2));
              }
            })) : s2.forEach((function(t5) {
              t5 && (l2 = _(H(t5)), "formula1" === t5.n_ && (c2 = Mt(l2, a2)), "formula2" === t5.n_ && (f2 = Mt(l2, a2)));
            }))), y(a2) || (h2 = void 0, 1 === a2 || 2 === a2 ? h2 = xt(u2, zt(c2, i3), zt(f2, i3), 1 === a2) : 3 === a2 ? (l2 = c2 || f2) && (h2 = '"' === l2[0] && '"' === l2[l2.length - 1] ? _t(E(l2)) : Dt(O(l2))) : 4 === a2 || 5 === a2 ? h2 = 5 === a2 ? kt(u2, c2, f2) : It(u2, c2, f2) : 6 === a2 ? h2 = Nt(u2, zt(c2, i3), zt(f2, i3)) : 7 === a2 && void 0 !== c2 && (h2 = jt(c2)), h2 && (d2 = h2.condition()) && (d2.ranges(v2._S), d2.ignoreBlank(v2.ignoreBlank()), d2.context(n3), v2.condition(d2))), v2.Mf = n3, t4.lossless && t4.lossless.highlightStyle && (v2.l6t = JSON.parse(t4.lossless.highlightStyle));
          }, t3.prototype.LEr = function(t4, n3) {
            var e3 = this, i3 = e3.Mf;
            i3 && i3.$Dr({ type: "updateDataValidator", propName: t4, value: n3, validator: e3 });
          }, t3;
        })(), n2.DefaultDataValidator = dt, (0, r.$e)(dt), vt = { errorStyle: Ct("errorStyle", 0), ignoreBlank: Ct("ignoreBlank", true, (function(t3) {
          this.condition() && this.condition().ignoreBlank(t3);
        })), preciseCompareDate: Ct("preciseCompareDate", false, (function(t3) {
          this.condition() && this.condition().preciseCompareDate(t3);
        })), inCellDropdown: Ct("inCellDropdown", true), showInputMessage: Ct("showInputMessage", true), showErrorMessage: Ct("showErrorMessage", true), inputTitle: Ct("inputTitle", ""), errorTitle: Ct("errorTitle", ""), inputMessage: Ct("inputMessage", ""), errorMessage: Ct("errorMessage", ""), comparisonOperator: Ct("comparisonOperator", 6), condition: Ct("condition", S, (function(t3, n3) {
          if (n3 && n3.dEr(), t3) {
            var e3 = this;
            t3.F_r((function(t4) {
              e3.LEr("conditionChange", t4);
            }));
          }
        })), type: Ct("type", 0) }, C.extend(dt.prototype, vt), (0, r.qDr)(dt), n2.Hrt = St, n2.kf = Tt, n2.createNumberValidator = xt, n2.createDateValidator = It, n2.createTimeValidator = kt, n2.createTextLengthValidator = Nt, n2.createFormulaValidator = jt, n2.createFormulaListValidator = Dt, n2.createListValidator = _t, C.extend(r.Worksheet.prototype, { getDataValidator: function(t3, n3, e3) {
          var i3 = this.hG(t3, n3, e3);
          return i3 ? i3[0] : T;
        }, hG: function(t3, n3, e3) {
          return y(e3) && (e3 = 3), 3 === e3 ? this.b8.p6t(t3, n3) : T;
        }, setDataValidator: function(t3, n3, e3, i3, r2, o2) {
          var a2, u2, s2, c2, f2 = this, l2 = f2.b8;
          if (arguments.length < 5 && (r2 = e3, o2 = i3, e3 = -1 === t3 ? -1 : 1, i3 = -1 === n3 ? -1 : 1), y(o2) && (o2 = 3), 3 === o2) {
            if (a2 = f2.getDataValidator(t3, n3, o2), (u2 = 1 === e3 && 1 === i3) && a2 === r2) return;
            f2.Ut.b6t(), s2 = Y(t3, n3, e3, i3), l2.y6t(s2), r2 && l2.w6t(r2, s2), f2.Ut.b6t(true), c2 = "validator", u2 && (f2.Rj(c2, t3, n3, o2, a2, r2), -1 !== t3 && -1 === n3 ? f2.dj(t3, o2, c2, r2, a2) : -1 === t3 && -1 !== n3 && f2.vj(n3, o2, c2, r2, a2)), f2.zw();
          }
        }, isValid: function(t3, n3, e3, i3) {
          var r2, o2 = this;
          try {
            if (o2.Ubt = t3, o2.Hbt = n3, o2.zbt = e3, o2.Gbt = true, r2 = o2.getDataValidator(t3, n3)) return r2.isValid(o2, t3, n3, e3, i3);
          } finally {
            o2.Ubt = -1, o2.Hbt = -1, o2.zbt = S, o2.Gbt = false;
          }
          return true;
        }, G1: function() {
          var t3, n3, e3, i3, r2 = this;
          return !r2.M6t && (r2.M6t = true, (t3 = r2.KD) && ((n3 = t3.parentNode) && n3.removeChild(t3), r2.KD = S), (e3 = r2.a6t) && (C(e3).unbind("click"), (n3 = e3.parentNode) && n3.removeChild(e3), r2.a6t = S), (i3 = r2.gf) && (C(i3).unbind("keydown").unbind("blur").unbind("click").unbind("change"), (n3 = i3.parentNode) && n3.removeChild(i3), r2.gf = S), r2.M6t = false, true);
        }, xyt: function() {
          var t3, n3, e3, i3 = this, r2 = [], o2 = i3.b8, a2 = o2 && o2.YB;
          if (a2) for (t3 in a2) Ot(e3 = (n3 = a2[t3]) && n3.condition()) && r2.push({ validator: n3, sheet: i3 });
          return r2;
        }, Q5e: function(t3, n3) {
          var e3 = this.getDataValidator(t3, n3);
          return e3 && Ot(e3.condition());
        } }), C.extend(r.Workbook.prototype, { xyt: function() {
          var t3 = [], n3 = this, e3 = n3.sheets;
          return e3.forEach((function(n4) {
            var e4 = n4.xyt();
            e4 && e4.length && e4.forEach((function(n5) {
              t3.push(n5);
            }));
          })), t3;
        } }), C.extend(r.CellRange.prototype, { validator: function(t3) {
          var n3 = this, e3 = n3.sheet, i3 = n3.sheetArea, r2 = n3.row, o2 = n3.col, a2 = n3.rowCount, u2 = n3.colCount;
          return 0 === arguments.length ? e3.getDataValidator(r2, o2, i3) : (e3.setDataValidator(r2, o2, a2, u2, t3, i3), n3);
        } }), pt = (function() {
          function t3(t4) {
            this.eJ = t4, this.YB = {}, this.d6t = [], this.cE = new s.DataValidationCache(this);
          }
          return t3.prototype.getUsedRange = function() {
            var t4, n3, e3, i3, r2, o2, a2, u2 = this, s2 = u2.p6t(), c2 = {};
            if (s2) for (t4 = void 0, n3 = 0, e3 = s2; n3 < e3.length; n3++) for (r2 = 0, o2 = t4 = (i3 = e3[n3]).smt(); r2 < o2.length; r2++) a2 = o2[r2], f(c2, l(a2));
            return c2;
          }, t3.prototype.L0 = function() {
            this.eJ = S, this.cE.dispose(), this.cE = S;
          }, t3.prototype.GJ = function(t4) {
            return Rt(this.eJ, t4);
          }, t3.prototype.OX = function(t4) {
            return Ft(this.eJ, t4);
          }, t3.prototype.C8 = function(t4) {
            var n3, e3, i3 = this, r2 = i3.cE, o2 = i3.YB;
            if (r2.clear(), o2) for (n3 in o2) (e3 = o2[n3]) && (t4 && delete e3.C6t, i3.fE(e3, true));
            i3.S6t();
          }, t3.prototype.m6t = function(t4) {
            var n3 = this.d6t;
            -1 === n3.indexOf(t4) && n3.push(t4);
          }, t3.prototype.fE = function(t4, n3) {
            var e3, i3, r2, o2, a2 = this, u2 = a2.GJ(t4.smt()), s2 = a2.cE;
            if (u2) {
              for (a2.d6t.length = 0, e3 = 0, i3 = u2; e3 < i3.length; e3++) r2 = i3[e3], s2.cUr(r2, t4);
              s2.hUr(a2.d6t), o2 = t4.jKe(), s2.removeById(o2), s2.wUr(t4, u2), s2.addCacheById(o2), n3 || a2.S6t();
            }
          }, t3.prototype.RX = function(t4) {
            var n3 = this;
            n3.cE.removeById(t4), n3.YB[t4] && delete n3.YB[t4].Mf, delete n3.YB[t4];
          }, t3.prototype.BX = function(t4) {
            var n3 = this, e3 = n3.cE;
            t4 && e3.cUr(n3.eJ.JS(t4)), e3.hUr(n3.d6t), n3.S6t();
          }, t3.prototype.S6t = function() {
            var t4, n3 = this, e3 = n3.d6t;
            e3.length && (t4 = n3.YB, e3.forEach((function(n4) {
              if (n4.smt().length) n4.condition() && n4.condition().ranges(n4.smt());
              else {
                var e4 = n4.jKe();
                delete t4[e4], delete n4.Mf;
              }
            })), e3.length = 0);
          }, t3.prototype.BEr = function(t4) {
            var n3, e3 = this, i3 = e3.YB;
            for (n3 in i3) if (i3.hasOwnProperty(n3) && n3 === t4) return i3[n3];
            return S;
          }, t3.prototype.PEr = function(t4, n3, e3) {
            return n3 && (t4.Mf && e3 !== t4.Mf && (t4 = t4.clone(e3)), t4.Mf = e3, t4.v6t(n3)), t4;
          }, t3.prototype.w6t = function(t4, n3) {
            var e3 = this, i3 = e3.eJ;
            if (t4 = e3.PEr(t4, n3, i3), e3.GEr(t4, i3)) return i3.$Dr({ type: "addDataValidator", validator: t4, range: n3, sheet: i3 }), t4;
          }, t3.prototype.GEr = function(t4, n3) {
            var e3 = this;
            if (n3) return t4.context(n3), e3.YB[t4.jKe()] = t4, e3.fE(t4), t4;
          }, t3.prototype.UEr = function(t4, n3) {
            var e3 = new dt();
            return e3.fromJSON(t4, void 0, n3, { isServer: true }), e3;
          }, t3.prototype.y6t = function(t4) {
            if (t4) {
              var n3 = this, e3 = n3.eJ;
              n3.BX(t4), e3.zw();
            }
          }, t3.prototype.d5 = function() {
            var t4 = this, n3;
            t4.eJ && (t4.YB = {}, t4.C8());
          }, t3.prototype.p6t = function(t4, n3) {
            var e3, i3, r2 = this, o2 = r2.YB;
            return null != t4 || (t4 = -1), null != n3 || (n3 = -1), 0 === arguments.length || -1 === t4 && -1 === n3 ? Pt(o2) : (e3 = r2.cE, i3 = r2.eJ, e3.get(t4, n3, i3.getRowCount(), i3.getColumnCount()));
          }, t3.prototype.zYr = function(t4) {
            return this.cE.YYr(t4);
          }, t3.prototype.qJ = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.eJ, u2 = a2.Ut, s2 = o2.YB, c2 = false;
            if (!y(s2)) {
              for (i3 in u2.b6t(), s2) (r2 = s2[i3]) && r2.qJ(t4, n3, e3) && (c2 = true);
              c2 && o2.C8();
            }
          }, t3.prototype.$J = function(t4, n3, e3, i3, r2) {
            var o2, a2, u2 = this, s2 = u2.YB;
            if (s2) for (o2 in s2) (a2 = s2[o2]) && (e3 ? a2.JO(t4, n3, i3, r2) : a2.qO(t4, n3, i3, r2));
            u2.C8();
          }, t3.prototype.JO = function(t4, n3, e3, i3) {
            this.$J(t4, n3, true, e3, i3);
          }, t3.prototype.qO = function(t4, n3, e3, i3) {
            this.$J(t4, n3, false, e3, i3);
          }, t3.prototype.tX = function(t4, n3, e3) {
            var i3, r2, o2 = this, a2 = o2.YB;
            if (a2) for (i3 in a2) (r2 = a2[i3]) && (e3 ? r2.xP(t4, n3) : r2.NP(t4, n3), 0 === r2._S.length && delete a2[i3]);
            o2.C8();
          }, t3.prototype.xP = function(t4, n3) {
            this.tX(t4, n3, true);
          }, t3.prototype.NP = function(t4, n3) {
            this.tX(t4, n3, false);
          }, t3.prototype.toJSON = function(t4, n3) {
            var e3, i3, r2 = this.YB, o2 = [];
            for (e3 in r2) (i3 = r2[e3]) && o2.push(i3.toJSON(t4, n3));
            return o2;
          }, t3.prototype.fromJSON = function(t4, n3, e3) {
            var i3 = this, r2 = i3.eJ;
            i3.YB = {}, t4 && t4.length && (t4.forEach((function(t5) {
              var o2 = new dt();
              o2.fromJSON(t5, n3, e3), o2.Mf = r2, i3.YB[o2.jKe()] = o2;
            })), i3.C8());
          }, t3.prototype.y8 = function(t4, n3, e3) {
            this.eJ.setDataValidator(t4, n3, e3);
          }, t3;
        })(), n2.DataValidationManager = pt, C.extend(r.Y8.prototype, { b6t: function(t3) {
          var n3, e3, i3, r2, o2, a2 = this, u2 = a2.G8;
          if (u2 && (t3 || !u2.originalValidators)) {
            for (i3 in e3 = [], n3 = a2.b8.YB) (r2 = n3[i3]) && (o2 = r2._S.map((function(t4) {
              return Y(t4.row, t4.col, t4.rowCount, t4.colCount);
            })), e3.push({ validator: r2, ranges: o2 }));
            t3 ? u2.currentValidators = e3 : u2.originalValidators = e3;
          }
        }, T6t: function(t3) {
          var n3, e3, i3;
          t3 && (n3 = this.Mf, e3 = this.b8, i3 = {}, t3.forEach((function(t4) {
            var e4, r2 = t4.validator;
            "Object" === r2.constructor.name && ((e4 = new dt()).fromJSON(r2, false, n3), r2 = e4), r2._S = t4.ranges, r2.condition() && r2.condition().ranges(r2._S), i3[r2.jKe()] = r2;
          })), e3.YB = i3, e3.C8(false));
        }, ATt: function(t3, n3, e3, i3) {
          this.b6t(), this.b8.JO(t3, n3, e3, i3), this.b6t(true);
        }, A6t: function(t3, n3) {
          this.b6t(), this.b8.xP(t3, n3), this.b6t(true);
        }, NTt: function(t3, n3, e3, i3) {
          this.b6t(), this.b8.qO(t3, n3, e3, i3), this.b6t(true);
        }, kTt: function(t3, n3) {
          this.b6t(), this.b8.NP(t3, n3), this.b6t(true);
        }, I6t: function(t3) {
          this.b6t(), this.b8.BX(t3), this.b6t(true);
        }, x6t: function() {
          this.b6t(), this.b8.C8(), this.b6t(true);
        } }), r.Y8.ch("validator", { init: function() {
          this.b8 = new pt(this.Mf);
        }, applyChanges: function(t3) {
          var n3, e3 = t3.changes, i3 = t3.isUndo;
          e3 && (n3 = i3 ? e3.originalValidators : e3.currentValidators) && this.T6t(n3);
        }, undo: function(t3) {
          var n3 = t3.originalValidators;
          n3 && this.T6t(n3);
        }, dispose: function(t3) {
          var n3;
          false !== (t3 && t3.clearCache) && this.b8 && (this.b8.L0(), this.b8 = S);
        } }), r.Worksheet.ch("validator", { getUsedRange: function(t3) {
          var n3, e3, i3;
          t3.type & r.UsedRangeType.dataValidation && (i3 = (e3 = (n3 = this).b8).getUsedRange(), f(t3.range, i3));
        }, beforeSetHost: function() {
          var t3 = this;
          t3.D3(r.Events.FormulaTextBoxTextChanged + ".gcValidatorInternal", t3, (function(n3, e3) {
            var i3, r2, o2, a2 = t3.ui, u2 = t3.ci, s2 = t3.getDataValidator(a2, u2);
            3 === (null == s2 ? void 0 : s2.type()) && s2.inCellDropdown() && "1" === t3.getCellType(a2, u2).typeName && (null === (r2 = (i3 = t3.rt).PA) || void 0 === r2 || r2.call(i3, a2, u2, null !== (o2 = e3.text) && void 0 !== o2 ? o2 : ""));
          }));
        }, init: function() {
          var t3 = this;
          t3.b8 = t3.Ut.b8, t3._3(r.Events.FloatingElementSelected + K), t3.D3(r.Events.FloatingElementSelected + K, (function(n3, e3) {
            "worksheet" !== e3.type && t3.G1();
          }));
        }, dispose: function(t3) {
          var n3 = this;
          n3.G1(), t3.clearCache && n3.b8.d5(), false !== t3.clearCache && n3._3(r.Events.FloatingElementSelected + K), n3._3(r.Events.FormulaTextBoxTextChanged + ".gcValidatorInternal", n3);
        }, onLayoutChanged: function(t3) {
          var n3, e3, i3, r2, o2, a2, u2 = t3.changeType, s2 = t3.row, c2 = t3.rowCount, f2 = t3.col, l2 = t3.colCount, h2 = t3.sheetArea, d2 = y(h2) || 3 === h2;
          null === (e3 = null === (n3 = this.parent) || void 0 === n3 ? void 0 : n3.suspendOp) || void 0 === e3 || e3.call(n3), o2 = this.Ut, a2 = this.tables, "addRows" === u2 && d2 ? o2.ATt(s2, c2, a2 && a2.AJ(s2, -1, c2, -1, true)) : "deleteRows" === u2 && d2 ? o2.A6t(s2, c2) : "addColumns" === u2 && d2 ? o2.NTt(f2, l2, a2 && a2.AJ(-1, f2, -1, l2, false)) : "deleteColumns" === u2 && d2 && o2.kTt(f2, l2), null === (r2 = null === (i3 = this.parent) || void 0 === i3 ? void 0 : i3.resumeOp) || void 0 === r2 || r2.call(i3), "clear" === u2 ? 3 !== h2 || 2 & ~t3.type || o2.I6t(Y(s2, f2, c2, l2)) : "setColumnCount" !== u2 && "setRowCount" !== u2 || 3 !== h2 && 1 !== h2 || o2.x6t();
        }, onLayoutChangedFromOp: function(t3) {
          var n3 = t3.changeType, e3 = t3.row, i3 = t3.rowCount, o2 = t3.col, a2 = t3.colCount, u2 = t3.sheetArea, s2 = y(u2) || u2 === r.SheetArea.viewport, c2 = this.Ut, f2 = this.tables;
          "addRows" === n3 && s2 ? c2.ATt(e3, i3, f2 && f2.AJ(e3, -1, i3, -1, true)) : "deleteRows" === n3 && s2 ? c2.A6t(e3, i3) : "addColumns" === n3 && s2 ? c2.NTt(o2, a2, f2 && f2.AJ(-1, o2, -1, a2, false)) : "deleteColumns" === n3 && s2 && c2.kTt(o2, a2);
        }, toJson: function(t3, n3) {
          var e3, i3 = this.b8, r2 = n3 && n3.ignoreStyle;
          i3 && !r2 && (e3 = i3.toJSON(this, n3)) && e3.length && (t3.validations = e3);
        }, fromJson: function(t3, n3, e3) {
          var i3, r2 = e3 && e3.ignoreStyle;
          t3 && t3.validations && !r2 && (i3 = t3.validations, this.b8.fromJSON(i3, n3, this));
        }, wh: function(t3, n3, e3) {
          var i3, o2, a2, u2, s2, c2, f2, l2, g2, m2, b2, w2, M2, C2, S2, T2, x2, A2, I2, k2, j2, _2, O2, E2, R2, B2, U2, H2, V2, Y2 = this, Z2 = Y2.b8, W2 = e3 && false === e3.includeStyles, Q2 = e3 && e3.fileType === r.OpenSaveFileType.excel;
          if (!W2 && Z2 && !Y2.NMi) {
            for (c2 in i3 = Z2.YB, a2 = (o2 = { n_: d, c_: [] }).c_, u2 = 0, s2 = [], i3) if ((f2 = i3[c2]) && f2._S && f2._S.length > 0) {
              if (l2 = { n_: v }, u2++, g2 = false, m2 = f2.comparisonOperator(), b2 = f2.ignoreBlank(), w2 = f2.errorMessage(), M2 = f2.errorTitle(), C2 = f2.errorStyle(), S2 = f2.inputMessage(), T2 = f2.inCellDropdown(), x2 = f2.inputTitle(), A2 = f2.showErrorMessage(), I2 = f2.showInputMessage(), 6 !== m2 && (l2.operator = rt[m2]), false !== b2 && (l2.allowBlank = p), w2 && (l2.error = D(F(w2))), M2 && (l2.errorTitle = D(M2)), 0 !== C2 && (l2.errorStyle = it[C2]), S2 && (l2.prompt = D(F(S2))), false === T2 && (l2.showDropDown = p), x2 && (l2.promptTitle = D(x2)), false !== A2 && (l2.showErrorMessage = p), false !== I2 && (l2.showInputMessage = p), k2 = f2.condition(), j2 = f2._S, l2.sqref = Zt(j2), k2) {
                if (_2 = f2.type(), l2.type = et[_2], E2 = (O2 = Ht(k2)).firstFormula, R2 = O2.secondFormula, Q2 && (G(E2) || G(R2))) continue;
                l2.c_ = [], B2 = Y2.name(), U2 = Y2.parent && Y2.parent.r4(), N(E2, B2, U2) || N(R2, B2, U2) ? (l2.n_ = v, y(E2) || l2.c_.push({ n_: "formula1", c_: [{ n_: "f", c_: [D(L(E2))] }] }), y(R2) || l2.c_.push({ n_: "formula2", c_: [{ n_: "f", c_: [D(L(R2))] }] }), l2.c_.push({ n_: "sqref", c_: [z(j2)] }), g2 = true) : (y(E2) || (4 === _2 || 5 === _2 ? l2.c_.push({ n_: "formula1", c_: [mt(E2) + ""] }) : l2.c_.push({ n_: "formula1", c_: [D(L(E2))] })), y(R2) || (4 === _2 || 5 === _2 ? l2.c_.push({ n_: "formula2", c_: [mt(R2) + ""] }) : l2.c_.push({ n_: "formula2", c_: [D(L(R2))] })));
              }
              f2.l6t && (l2.lossless = { highlightStyle: JSON.stringify(f2.l6t) }), g2 ? s2.push(l2) : a2.push(l2);
            }
            a2.length > 0 && (o2.count = u2, t3.c_.push(o2)), s2.length > 0 && (H2 = P(t3, h), V2 = { n_: "ext", r_: [1, 9], c_: [{ n_: d, c_: s2, r_: [2], count: s2.length }] }, H2.c_.push(V2));
          }
        }, aUr: function(t3, n3, e3) {
          var i3;
          !(e3 && false === e3.includeStyles) && this.b8 && a && r.Util.Co(e3) && Qt(this, t3, n3);
        }, yh: function(t3, n3, e3) {
          var i3, o2, u2, s2, c2, f2, l2, v2, p2, g2, m2 = this, b2 = m2.b8, y2 = b2.YB, w2 = e3 && false === e3.includeStyles;
          if (!w2 && b2 && a) {
            if (i3 = r.Util.ko(e3), (u2 = (o2 = P(t3, d)) && o2.c_) && u2.length > 0) for (s2 = u2.length - 1; s2 >= 0; s2--) c2 = u2[s2], (f2 = new dt()).rv(c2, m2, T, i3, n3, e3), y2[f2.jKe()] = f2;
            if (l2 = P(t3, h), (v2 = U(l2, "dataValidations")) && v2.c_ && v2.c_.length > 0) for (s2 = (p2 = v2.c_).length - 1; s2 >= 0; s2--) g2 = p2[s2], (f2 = new dt()).rv(g2, m2, true, i3, n3, e3), y2[f2.jKe()] = f2;
            b2.C8();
          }
        } }), r.Style.ch("validator", { fromJson: function(t3) {
          if ("validator" === t3.p) {
            var n3 = new dt();
            n3.fromJSON(t3.v, t3.noSchema, t3.context), this.validator = n3, t3.r = true;
          }
        } }), at.gcGlobal.wf.push((function(t3, n3) {
          !n3 && t3.G1 && t3.G1();
        }));
      }, "./dist/plugins/validation/rbush-cache.js": function(t2, n2, e2) {
        "use strict";
        var i2, r, o;
        function a(t3) {
          return { minX: t3.row, minY: t3.col, maxX: t3.row + t3.rowCount - 1, maxY: t3.col + t3.colCount - 1 };
        }
        Object.defineProperty(n2, "__esModule", { value: true }), n2.uUr = n2.RBushCache = void 0, i2 = e2("Common"), r = i2.Common.rbush, o = (function() {
          function t3() {
            this.GOi();
          }
          return t3.prototype.GOi = function() {
            this.lUr = /* @__PURE__ */ new Map(), this.cE = new r();
          }, t3.prototype.clear = function() {
            this.lUr.clear(), this.cE.clear();
          }, t3.prototype.rebuild = function() {
            var t4 = this.cE, n3 = this.lUr;
            t4.clear(), n3.forEach((function(n4) {
              var e3, i3, r2;
              for (e3 = 0, i3 = n4; e3 < i3.length; e3++) r2 = i3[e3], t4.insert(r2);
            }));
          }, t3.prototype.removeById = function(t4) {
            var n3, e3, i3, r2 = this.cE, o2 = this.lUr, a2 = o2.get(t4);
            if (a2 && !(a2.length < 1)) {
              for (n3 = 0, e3 = a2; n3 < e3.length; n3++) i3 = e3[n3], r2.remove(i3);
              o2.delete(t4);
            }
          }, t3.prototype.addCacheById = function(t4) {
            var n3, e3, i3, r2 = this.cE, o2 = this.lUr, a2 = o2.get(t4);
            if (a2) for (n3 = 0, e3 = a2; n3 < e3.length; n3++) i3 = e3[n3], r2.insert(i3);
          }, t3.prototype.dispose = function() {
            this.lUr.clear(), this.cE.clear(), this.lUr = null, this.cE = null;
          }, t3;
        })(), n2.RBushCache = o, n2.uUr = a;
      }, "./node_modules_local/@spreadjs/js-calc-advancedfunctions/dist/gc.spread.calcengine.advancedfunctions.js": function(t2, n2, e2) {
        var i2;
        !(function() {
          "use strict";
          var t3, n3 = { "./src/functions-db.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T;
            function x(t5, n5) {
              return [t5, n5].join(",");
            }
            function A(t5, n5, e4, i4) {
              for (var r3, o3 = 0, a2 = new w(t5, n5, e4); a2.O6t(); ) r3 = a2.R6t(), (r3 = i4 ? s(r3) : r3) && o3++;
              return f(o3);
            }
            function I(t5, n5, e4, i4, r3, o3, a2) {
              for (var d2, v2, g2, m2, b2 = a2 ? 1 : 0, y2 = 0, M2 = 0, C2 = new w(t5, n5, e4); C2.O6t(); ) if (d2 = C2.R6t(), s(d2)) {
                if (v2 = u(d2), p(v2)) return h;
                b2 = a2 ? b2 * v2 : b2 + v2, y2 += v2 * v2, M2++;
              } else if (c(d2)) return d2;
              return o3 || a2 ? f(b2) : (g2 = Math.max(0, (M2 * y2 - b2 * b2) / (M2 * (M2 - r3))), m2 = i4 ? Math.sqrt(g2) : g2, M2 <= 1 ? l : f(m2));
            }
            function k(t5, n5, e4) {
              for (var i4, o3, a2 = 0, u2 = 0, d2 = new w(t5, n5, e4); d2.O6t(); ) {
                if (i4 = d2.R6t(), c(i4)) return i4;
                if (s(i4)) {
                  if (o3 = { value: 0 }, !r2.Convert.sJ(i4, o3)) return h;
                  a2 += o3.value, u2++;
                }
              }
              return 0 === u2 ? l : f(a2 / u2);
            }
            function N(t5, n5, e4) {
              return A(t5, n5, e4, true);
            }
            function j(t5, n5, e4) {
              return A(t5, n5, e4, false);
            }
            function D(t5, n5, e4) {
              var i4, o3 = new w(t5, n5, e4);
              return o3.O6t() ? (i4 = o3.R6t(), o3.O6t() ? r2.Errors.Number : i4) : h;
            }
            function _(t5, n5, e4) {
              for (var i4, o3, a2 = false, l2 = -r2.Functions.B6t, d2 = new w(t5, n5, e4); d2.O6t(); ) {
                if (i4 = d2.R6t(), c(i4)) return i4;
                if (s(i4)) {
                  if (o3 = u(i4), p(o3)) return h;
                  (!a2 || o3 > l2) && (l2 = o3), a2 = true;
                }
              }
              return a2 ? f(l2) : 0;
            }
            function O(t5, n5, e4) {
              for (var i4, o3, a2 = false, l2 = r2.Functions.B6t, d2 = new w(t5, n5, e4); d2.O6t(); ) {
                if (i4 = d2.R6t(), c(i4)) return i4;
                if (s(i4)) {
                  if (o3 = u(i4), p(o3)) return h;
                  (!a2 || i4 < l2) && (l2 = i4), a2 = true;
                }
              }
              return a2 ? f(l2) : 0;
            }
            function E(t5, n5, e4) {
              return I(t5, n5, e4, false, 0, false, true);
            }
            function R(t5, n5, e4) {
              return I(t5, n5, e4, true, 1);
            }
            function L(t5, n5, e4) {
              return I(t5, n5, e4, true, 0);
            }
            function F(t5, n5, e4) {
              return I(t5, n5, e4, false, 0, true);
            }
            function B(t5, n5, e4) {
              return I(t5, n5, e4, false, 1);
            }
            function P(t5, n5, e4) {
              return I(t5, n5, e4, false, 0);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.$T, a = null, u = r2.Convert.uJ, s = r2.Convert.q8, c = r2.Convert.BJ, f = r2.Convert.L6t, l = r2.Errors.DivideByZero, h = r2.Errors.Value, d = r2.Functions.F6t, v = r2.Functions.OMt, p = isNaN, g = i3.Common.zf, m = g.fJ, b = (0, r2.sR)().Exp_InvalidCast, y = (function() {
              function t5(t6, n5, e4) {
                this.N6t = t6, this.k6t = n5, this.D6t = e4;
              }
              return t5.prototype.P6t = function(t6) {
                var n5 = { "=": 9, "<>": 10, "<": 11, "<=": 12, ">": 13, ">=": 14 }, e4 = (0, r2.evaluateOperator)(n5[this.N6t], t6, this.k6t);
                return !!r2.Functions.G6t(e4) && r2.Convert.U6t(e4);
              }, t5;
            })(), w = (function() {
              function t5(t6, n5, e4) {
                var i4 = this;
                if (i4.Ky = 0, i4._6t = t6, i4.E6t = e4, i4.j6t = {}, 3 === arguments.length) {
                  if (i4.yft = i4.mvt(t6, n5), t6.rowCount < 2 || t6.colCount < 1 || e4.rowCount < 2 || e4.colCount < 1 || i4.yft < 0 || i4._6t.colCount <= i4.yft) throw b;
                } else if (2 === arguments.length && (i4.yft = -1, t6.rowCount < 2 || t6.colCount < 1 || e4.rowCount < 2 || e4.colCount < 1)) throw b;
              }
              return t5.prototype.mvt = function(t6, n5) {
                var e4, i4;
                if (v(n5)) {
                  for (e4 = 0; e4 < t6.colCount; e4++) if ((i4 = r2.Convert.j(t6[0][e4])) && this.H6t(i4, n5)) return e4;
                  return -1;
                }
                return r2.Convert.z6t(n5) - 1;
              }, t5.prototype.R6t = function() {
                var t6 = this;
                if (t6.Ky <= 0 || t6._6t.rowCount <= t6.Ky) throw (0, r2.sR)().Exp_InvalidOperation;
                return t6._6t[t6.Ky][t6.yft];
              }, t5.prototype.O6t = function() {
                for (var t6 = this, n5 = false, e4 = t6._6t.rowCount; !n5 && t6.Ky < e4; ) t6.Ky++, t6.Ky < e4 && (n5 = t6.V6t());
                return n5;
              }, t5.prototype.Y6t = function(t6) {
                var n5, e4, o3, u2, s2;
                if (v(t6)) {
                  for (n5 = ["=", "<>", "<=", ">=", "<", ">"], e4 = r2.Convert.j(t6), o3 = void 0, u2 = void 0, o3 = 0; o3 < n5.length; o3++) if (i3.Common.zf.fJ(e4, n5[o3])) return e4 = e4.substring(n5[o3].length), s2 = i3.Common.st.Z6t(e4), p(s2) ? this.H6t("true", e4) ? t6 = true : this.H6t("false", e4) ? t6 = false : (t6 = e4, u2 = 0 === o3) : t6 = s2, new y(n5[o3], t6, u2);
                  return new y("=", t6);
                }
                return t6 ? new y("=", t6) : a;
              }, t5.prototype.W6t = function(t6, n5) {
                var e4, i4 = this, r3 = i4.j6t, o3 = x(t6, n5), a2 = r3[o3];
                return a2 || r3[e4 = "_" + o3] || (a2 = r3[o3] = i4.Y6t(i4.E6t[t6][n5]), r3[e4] = true), a2;
              }, t5.prototype.V6t = function() {
                var t6, n5, e4, i4, r3, a2, u2, s2, c2, f2 = this, l2 = false, h2 = f2.E6t, d2 = f2.Ky, p2 = h2.rowCount, g2 = h2.colCount, b2 = f2._6t, y2 = f2.Q6t;
                if (!y2) {
                  for (i4 = h2[0], y2 = [], n5 = 0; n5 < g2; n5++) {
                    if ((e4 = f2.mvt(b2, i4[n5])) < 0) return false;
                    y2[n5] = e4;
                  }
                  f2.Q6t = y2;
                }
                for (t6 = 1; !l2 && t6 < p2; t6++) for (l2 = true, n5 = 0; l2 && n5 < g2; n5++) if (r3 = f2.W6t(t6, n5)) {
                  if (a2 = b2[d2][y2[n5]], "=" === r3.N6t && (u2 = r3.k6t, v(u2) && v(a2))) {
                    s2 = o2.jJ(u2, true), c2 = r3.D6t, l2 = s2 ? o2.OJ("^" + s2 + (c2 ? "$" : "")).test(a2) : c2 ? a2.toLowerCase() === u2.toLowerCase() : m(a2, u2, true);
                    continue;
                  }
                  l2 = r3.P6t(a2);
                }
                return l2;
              }, t5.prototype.H6t = function(t6, n5) {
                return t6.toLowerCase() === n5.toLowerCase();
              }, t5;
            })(), d("DAVERAGE", k, 3, 3, T = [C = { K6t: true, J6t: 4, X6t: 0 }, S = { K6t: true }, C], M = "!= 1", M), d("DCOUNT", N, 3, 3, T, M, M), d("DCOUNTA", j, 3, 3, T, M, M), d("DGET", D, 3, 3, T, M, M), d("DMAX", _, 3, 3, T, M, M), d("DMIN", O, 3, 3, T, M, M), d("DPRODUCT", E, 3, 3, T, M, M), d("DSTDEV", R, 3, 3, T, M, M), d("DSTDEVP", L, 3, 3, T, M, M), d("DSUM", F, 3, 3, T, M, M), d("DVAR", B, 3, 3, T, M, M), d("DVARP", P, 3, 3, T, M, M);
          }, "./src/functions-eng.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn, nn, en, rn, on, an, un, sn, cn, fn, ln, hn;
            function dn(t5, n5) {
              return new r2.Functions.q6t(t5, n5);
            }
            function vn(t5, n5) {
              return { $6t: t5, _c: n5 };
            }
            function pn(t5, n5) {
              var e4 = [], i4;
              for (i4 = 0; i4 < o2(t5); i4++) e4.push(vn(t5[i4], n5[i4]));
              return e4.push(vn(null, 0)), e4;
            }
            function gn(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2 = 100, d2 = 0.5 * t5, v2 = d2 * d2;
              for (d2 = h(d2, g(n5)), i4 = r2.Functions.nkt(n5), o3 = 1, a2 = 0, u2 = g(n5), c2 = 0.9 * (s2 = d2 / i4), f2 = false; s2 !== c2 && 0 !== l2; ) d2 *= v2, i4 *= ++a2, o3 *= ++u2, c2 = s2, s2 = e4 || f2 ? s2 + d2 / i4 / o3 : s2 - d2 / i4 / o3, l2--, f2 = !f2;
              return s2;
            }
            function mn(t5, n5) {
              var e4 = h(n5, 10), i4 = parseInt(t5, n5);
              return m(i4) ? y : e4 / 2 <= i4 ? i4 - e4 : i4;
            }
            function bn(t5, n5, e4) {
              t5 < 0 && (t5 += h(n5, 10));
              var i4 = t5.toString(n5), r3 = e4 - o2(i4), a2;
              for (a2 = 0; a2 < r3; a2++) i4 = "0" + i4;
              return i4.toUpperCase();
            }
            function yn(t5, n5) {
              if (t5 < 0) return y;
              var e4 = mn(t5, n5);
              return T(e4) ? y : e4;
            }
            function wn(t5, n5, e4) {
              var i4 = bn(t5, e4, n5.y4);
              return 0 <= i4 && n5.y4 < o2(i4) && n5.ekt ? y : i4;
            }
            function Mn(t5, n5, e4, i4, r3) {
              var a2, u2;
              return t5 < 0 ? y : (a2 = mn(t5, e4), T(a2) || r3 && (a2 < -r3 || r3 - 1 < a2) ? y : (u2 = bn(a2, i4, n5.y4), 0 <= a2 && n5.y4 < o2(u2) && n5.ekt ? y : u2));
            }
            function Cn(t5, n5) {
              var e4 = Number.POSITIVE_INFINITY, i4 = t5.ikt(), r3 = t5.rkt();
              return m(i4) || i4 === e4 || m(r3) || r3 === e4 ? y : t5.j(n5);
            }
            function Sn(t5, n5, e4, i4) {
              var r3 = t5, o3 = n5, a2 = e4.ikt(), u2 = e4.rkt();
              return { okt: t5 = i4 ? r3 * a2 - o3 * u2 : r3 + a2, akt: n5 = i4 ? r3 * u2 + o3 * a2 : o3 + u2 };
            }
            function Tn(t5, n5) {
              var e4, i4, a2, u2, s2, c2, f2, l2, h2 = n5 ? 1 : 0, d2 = 0;
              for (i4 = 0; i4 < o2(t5); i4++) if (r2.Convert.Nh(t5[i4])) for (f2 = t5[i4], a2 = 0; a2 < f2.rowCount; a2++) for (u2 = 0; u2 < f2.columnCount; u2++) {
                if (!(e4 = I(f2.getValue(a2, u2)))) return y;
                h2 = (c2 = Sn(h2, d2, e4, n5)).okt, d2 = c2.akt;
              }
              else if (r2.Convert.LE(t5[i4])) for (l2 = t5[i4], s2 = 0; s2 < l2.getRangeCount(); s2++) for (a2 = 0; a2 < l2.getRowCount(s2); a2++) for (u2 = 0; u2 < l2.getColumnCount(s2); u2++) {
                if (!(e4 = I(l2.getValue(s2, a2, u2)))) return y;
                h2 = (c2 = Sn(h2, d2, e4, n5)).okt, d2 = c2.akt;
              }
              else {
                if (!(e4 = I(t5[i4]))) return y;
                h2 = (c2 = Sn(h2, d2, e4, n5)).okt, d2 = c2.akt;
              }
              return Cn(dn(h2, d2));
            }
            function xn(t5, n5) {
              return S(gn(t5, n5, true));
            }
            function An(t5, n5) {
              return S(gn(t5, n5, false));
            }
            function In(t5, n5) {
              var e4, i4, r3, o3, a2, s2, c2, f2, h2, d2 = 17976931348623157e292, v2 = 0.5772156649015329, p2 = 0, g2 = 0.25 * t5 * t5, m2 = 1, b2 = 0, y2 = 1, w2 = 2 / t5;
              if (n5 > 0) {
                for (b2 = -v2, o3 = 1; o3 < n5; o3++) b2 += 1 / o3, m2 *= o3 + 1;
                if (y2 = w2, 1 === n5) p2 = 1 / t5;
                else {
                  for (s2 = 1, c2 = 1, e4 = a2 = m2 / n5, o3 = 1; o3 < n5; o3++) {
                    if (e4 += i4 = (a2 /= n5 - o3) * (c2 *= -g2) / (s2 *= o3), d2 - u(i4) < u(e4) || w2 > 1 && d2 / w2 < y2) return d2;
                    y2 *= w2;
                  }
                  if (i4 = u(e4 *= 0.5), y2 > 1 && d2 / y2 < i4 || i4 > 1 && d2 / i4 < y2) return d2;
                  p2 = e4 * y2;
                }
              }
              h2 = -v2, 0 === n5 ? (b2 = h2, i4 = 1) : (b2 += 1 / n5, i4 = 1 / m2), e4 = (h2 + b2 - (f2 = 2 * l(t5 / 2))) * i4, r3 = 1;
              do {
                e4 += ((h2 += 1 / r3) + (b2 += 1 / (r3 + n5)) - f2) * (i4 *= g2 / (r3 * (r3 + n5))), r3++;
              } while (u(i4 / e4) > 11102230246251565e-32);
              return e4 = 0.5 * e4 / y2, 1 & n5 && (e4 = -e4), S(p2 += e4);
            }
            function kn(t5, n5) {
              var e4 = [7969367292973471e-19, 0.08283523921074408, 1.239533716464143, 5.447250030587687, 8.74716500199817, 5.303240382353949, 1], i4 = [7621256162081731e-19, 0.07313970569409176, 1.1271960812968493, 5.112079511468076, 8.424045901417724, 5.214515986823615, 1], r3 = [9244088105588637e-19, 0.08562884743544745, 1.2535274390105895, 5.470977403304171, 8.761908832370695, 5.306052882353947, 1], o3 = [5713231280725487e-19, 0.06884559087544954, 1.105142326340617, 5.073863861286015, 8.399855543276042, 5.209828486823619, 1], a2 = [-0.011366383889846916, -1.2825271867050931, -19.553954425773597, -93.20601521237683, -177.68116798048806, -147.07750515495118, -51.41053267665993, -6.050143506007285], u2 = [0.05108625947501766, 4.982138729512334, 75.82382841325453, 366.7796093601508, 710.8563049989261, 597.4896124006136, 211.68875710057213, 25.207020585802372], h2 = [64.3178256118178, 856.4300259769806, 3882.4018360540163, 7240.467741956525, 5930.727011873169, 2062.0933166032783, 242.0057402402914], d2 = [74.23732770356752, 1056.4488603826283, 4986.410583376536, 9562.318924047562, 7997.041604473507, 2826.1927851763908, 336.0936078106983], v2 = [15592.436785523574, -1466392959039716e-8, 5435264770518765e-6, -9821360657179115e-4, 875906394395367e-1, -3466283033847297, 44273326857256984, -18495080043698668], p2 = [12632047479017804e-7, -6473558763791603e-4, 11450951154182373e-2, -8127702555013251, 202439475713594900, -778877196265950100], m2 = [1041.2835366425984, 626107.330137135, 26891963339381415e-8, 864002487103935e-4, 20297961275010555e-3, 31715775284297505e-1, 250596256172653060], b2 = [594.3015923461282, 235564.09294306856, 7348119444597217e-8, 18760131610870617e-6, 38823127749623857e-4, 6205577271469538e-1, 68714108735530050, 3972706081165606400], y2 = [-4794432209782018e-6, 19561749194655657e-4, -24924834436096772e-2, 9708622510473064], w2 = [-8999712257055594e-7, 45222829799819403e-5, -7274942452218183e-2, 3682957328638529], M2 = [499.563147152651, 173785.4016763747, 4844096583399621e-8, 11185553704535683e-6, 2112775201154892e-3, 31051822985742256e-2, 31812195594320496, 1710862940810431500], C2 = [620.8364781180543, 256987.25675774884, 8351467914319493e-8, 2215115954797925e-5, 4749141220799914e-3, 7843696078762359e-1, 89522233618462740, 5322786203326801e3], T2 = 0.7978845608028654, x2 = 2.356194490192345, A2 = 0.7853981633974483;
              function I2(t6, n6, e5, i5) {
                var r4 = 0, o4 = g(n6[r4]), a3 = e5;
                r4++, i5 && (o4 += t6, a3--);
                do {
                  o4 = o4 * t6 + g(n6[r4]), r4++, --a3;
                } while (0 !== a3);
                return o4;
              }
              function k2(t6, n6) {
                var l2, v3, p3, g2, m3, b3 = n6 ? e4 : i4, S2 = n6 ? r3 : o3, k3 = n6 ? a2 : u2, N3 = n6 ? h2 : d2, j3 = n6 ? y2 : w2, D2 = n6 ? M2 : C2, _2 = n6 ? 5.783185962946784 : 14.681970642123893, O2 = n6 ? 30.471262343662087 : 49.2184563216946;
                return t6 <= 5 ? (v3 = t6 * t6, n6 && t6 < 1e-5 ? 1 - v3 / 4 : (p3 = (v3 - _2) * (v3 - O2), p3 *= l2 = I2(v3, j3, 3) / I2(v3, D2, 8, true), n6 ? p3 : p3 * t6)) : (l2 = 5 / t6, p3 = I2(v3 = n6 ? 25 / (t6 * t6) : l2 * l2, b3, 6) / I2(v3, S2, 6), g2 = I2(v3, k3, 7) / I2(v3, N3, 7, true), (p3 = p3 * c(m3 = t6 - (n6 ? A2 : x2)) - l2 * g2 * s(m3)) * T2 / f(t6));
              }
              function N2(t6, n6) {
                var g2, y3, w3, M3, C3, S2 = n6 ? e4 : i4, N3 = n6 ? r3 : o3, j3 = n6 ? a2 : u2, D2 = n6 ? h2 : d2, _2 = n6 ? v2 : p2, O2 = n6 ? m2 : b2, E2 = n6 ? 1 : t6, R2 = n6 ? 7 : 5, L2 = n6 ? 7 : 8;
                return t6 <= 5 ? (g2 = E2 * I2(y3 = t6 * t6, _2, R2) / I2(y3, O2, L2, true), g2 += 0.6366197723675814 * (n6 ? l(t6) * k2(t6, true) : k2(t6, false) * l(t6) - 1 / t6)) : (g2 = 5 / t6, w3 = I2(y3 = n6 ? 25 / (t6 * t6) : g2 * g2, S2, 6) / I2(y3, N3, 6), M3 = I2(y3, j3, 7) / I2(y3, D2, 7, true), (w3 = w3 * s(C3 = t6 - (n6 ? A2 : x2)) + g2 * M3 * c(C3)) * T2 / f(t6));
              }
              function j2(t6, n6) {
                var e5 = N2(t6, true), i5 = N2(t6, false), r4 = 1, o4 = 2 * r4, a3;
                if (0 === n6) return e5;
                if (1 === n6) return i5;
                do {
                  a3 = o4 * i5 / t6 - e5, e5 = i5, i5 = a3, o4 += 2, ++r4;
                } while (r4 < n6);
                return a3;
              }
              return S(j2(t5, n5));
            }
            function Nn(t5) {
              return yn(t5, 2);
            }
            function jn(t5) {
              return yn(t5, 16);
            }
            function Dn(t5) {
              return yn(t5, 8);
            }
            function _n(t5, n5) {
              return Mn(t5, n5, 2, 16);
            }
            function On(t5, n5) {
              return Mn(t5, n5, 2, 8);
            }
            function En(t5, n5) {
              return wn(t5, n5, 2);
            }
            function Rn(t5, n5) {
              return wn(t5, n5, 16);
            }
            function Ln(t5, n5) {
              return wn(t5, n5, 8);
            }
            function Fn(t5, n5) {
              return Mn(t5, n5, 16, 2, 512);
            }
            function Bn(t5, n5) {
              return Mn(t5, n5, 8, 2, 512);
            }
            function Pn(t5, n5) {
              return Mn(t5, n5, 16, 8, 536870912);
            }
            function Gn(t5, n5) {
              return Mn(t5, n5, 8, 16, 549755813888);
            }
            function Un(t5, n5) {
              var e4, i4 = C(t5 * f(2)), r3 = 2 * i4 - 1;
              return n5.ekt && (r3 = (e4 = 2 * (i4 = C(n5.y4 * f(2))) - 1) - r3), r3;
            }
            function Hn(t5) {
              return Un(t5, { ekt: false });
            }
            function Vn(t5) {
              return 1 - Un(t5, { ekt: false });
            }
            function zn(t5, n5) {
              return t5 === n5 || i3.Common.st.ukt(t5, n5) ? 1 : 0;
            }
            function Yn(t5, n5) {
              return t5 >= n5 ? 1 : 0;
            }
            function Zn(t5, n5, e4) {
              return "i" !== e4 && "j" !== e4 ? r2.Errors.Value : Cn(dn(t5, n5), e4);
            }
            function Wn(t5) {
              return S(f(t5.okt * t5.okt + t5.akt * t5.akt));
            }
            function Qn(t5) {
              return S(t5.akt);
            }
            function Kn(t5) {
              return 0 === t5.okt && 0 === t5.akt ? r2.Errors.DivideByZero : S(p(t5.akt, t5.okt));
            }
            function Jn(t5) {
              return Cn(dn(t5.okt, -t5.akt));
            }
            function Xn(t5) {
              return Cn(dn(c(t5.okt) * A(t5.akt, false), -s(t5.okt) * A(t5.akt, true)));
            }
            function qn(t5, n5) {
              var e4 = t5.okt, i4 = t5.akt, r3 = n5.okt, o3 = n5.akt;
              return Cn(dn((e4 * r3 + i4 * o3) / (r3 * r3 + o3 * o3), (i4 * r3 - e4 * o3) / (r3 * r3 + o3 * o3)));
            }
            function $n(t5) {
              return Cn(dn(d(t5.okt) * c(t5.akt), d(t5.okt) * s(t5.akt)));
            }
            function te(t5) {
              var n5 = t5.okt, e4 = t5.akt;
              return Cn(dn(l(f(n5 * n5 + e4 * e4)), p(e4, n5)));
            }
            function ne(t5) {
              var n5 = t5.okt, e4 = t5.akt, i4 = x.ckt(v, 10);
              return Cn(dn(i4 * l(f(n5 * n5 + e4 * e4)), i4 * p(e4, n5)));
            }
            function ee(t5) {
              var n5 = t5.okt, e4 = t5.akt, i4 = x.ckt(v, 2);
              return Cn(dn(i4 * l(f(n5 * n5 + e4 * e4)), i4 * p(e4, n5)));
            }
            function ie(t5, n5) {
              var e4, i4, r3 = t5.okt, o3 = t5.akt;
              return 0 === r3 && 0 === o3 ? n5 > 0 ? "0" : y : (e4 = f(r3 * r3 + o3 * o3), i4 = p(o3, r3), Cn(dn(h(e4, n5) * c(n5 * i4), h(e4, n5) * s(n5 * i4))));
            }
            function re(t5) {
              return S(t5.okt);
            }
            function oe(t5) {
              return Cn(dn(s(t5.okt) * A(t5.akt, false), c(t5.okt) * A(t5.akt, true)));
            }
            function ae(t5) {
              var n5, e4, i4 = t5.okt, r3 = t5.akt;
              return 0 === i4 && 0 === r3 ? "0" : (n5 = f(i4 * i4 + r3 * r3), e4 = p(r3, i4), Cn(dn(f(n5) * c(e4 / 2), f(n5) * s(e4 / 2))));
            }
            function ue(t5, n5) {
              return Cn(dn(t5.okt - n5.okt, t5.akt - n5.akt));
            }
            function se() {
              return Tn(arguments, true);
            }
            function ce() {
              return Tn(arguments, false);
            }
            function fe(t5) {
              var n5, e4 = ["cup", "mmHg", "J", "sec", "cel", "kel", "hh", "Wh", "wh", "flb", "BTU"];
              for (n5 = 0; e4[n5]; n5++) if (0 === t5.localeCompare(e4[n5])) return false;
              return true;
            }
            function le(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2, f2 = 0, l2 = 1;
              for (i4 = 0; t5[i4].$6t; i4++) if (0 === e4.localeCompare(t5[i4].$6t)) return { fkt: true, vit: l2, lkt: f2 = t5[i4]._c };
              if (n5) for (i4 = 0; n5[i4].$6t; i4++) (r3 = e4.substr(0, 1)) === (a2 = n5[i4].$6t.substr(0, 1)) && fe(e4) && (l2 = n5[i4]._c);
              for (i4 = 0; t5[i4].$6t; i4++) if (u2 = o2(t5[i4].$6t), (s2 = e4.substr(1, u2)) === (c2 = t5[i4].$6t.substr(0, u2)) && fe(e4)) return { fkt: true, vit: l2, lkt: f2 = t5[i4]._c };
              return { fkt: false, vit: l2, lkt: f2 };
            }
            function he(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2, f2, l2, h2, d2, v2;
              if (xe(n5).unit && xe(e4).unit) return ye(t5, n5, e4);
              if (1 === (i4 = ge(n5, e4))) return b;
              if (2 === i4) return me(t5, n5, e4);
              if (ve(n5) && ve(e4)) return pe(t5, n5, e4);
              if (de(n5) || de(e4)) return b;
              for (r3 = [F, W, tt, et, ft, rt, lt, xt, lt, At, Lt], a2 = 0; a2 < o2(r3); a2++) if (c2 = (s2 = le(u2 = r3[a2], qt, n5)).fkt, f2 = s2.lkt, l2 = s2.vit, h2 = (s2 = le(u2, qt, e4)).fkt, d2 = s2.vit, v2 = s2.lkt, c2 && h2 && 0 !== f2 && 0 !== d2) return t5 * l2 / f2 * v2 / d2;
              return b;
            }
            function de(t5) {
              if (tn.indexOf(t5) >= 0) return false;
              var n5 = [t5.slice(0, 1), t5.slice(1)], e4 = n5[0], i4 = n5[1];
              return Xt.indexOf(e4) >= 0 && tn.indexOf(i4) >= 0;
            }
            function ve(t5) {
              for (var n5 = 0; n5 < q.length; n5++) if (t5 === q[n5].$6t) return true;
              return "sec" === t5.slice(1) || "s" === t5.slice(1);
            }
            function pe(t5, n5, e4) {
              var i4 = le(q, qt, n5), r3 = le(q, qt, e4);
              return t5 * i4.vit / i4.lkt * r3.lkt / r3.vit;
            }
            function ge(t5, n5) {
              var e4 = t5.indexOf("bit") > -1 || t5.indexOf("byte") > -1, i4 = n5.indexOf("bit") > -1 || n5.indexOf("byte") > -1;
              return e4 && i4 ? 2 : i4 || e4 ? 1 : 0;
            }
            function me(t5, n5, e4) {
              var i4 = be(n5), r3 = be(e4);
              return t5 * i4.vit / i4.lkt * r3.lkt / r3.vit;
            }
            function be(t5) {
              var n5, e4, i4, r3, o3, a2, u2;
              if (t5.indexOf(Bt) > -1 ? (i4 = (n5 = [t5.slice(0, -3), t5.slice(-3)])[0], o3 = n5[1]) : t5.indexOf(Pt) > -1 && (i4 = (e4 = [t5.slice(0, -4), t5.slice(-4)])[0], o3 = e4[1]), i4) for (u2 = 0; $t[u2].$6t; u2++) i4 === $t[u2].$6t && (r3 = $t[u2]._c);
              else r3 = 1;
              return o3 === Bt ? a2 = Ft[0]._c : o3 === Pt && (a2 = Ft[1]._c), { vit: r3, lkt: a2 };
            }
            function ye(t5, n5, e4) {
              var i4, r3 = xe(n5);
              switch (r3.unit) {
                case Gt.Rank:
                  i4 = Se(t5, e4);
                  break;
                case Gt.Reau:
                  i4 = Te(t5, e4);
                  break;
                case Gt.C:
                case Gt.cel:
                  i4 = we(t5, e4);
                  break;
                case Gt.F:
                case Gt.fah:
                  i4 = Me(t5, e4);
                  break;
                case Gt.K:
                case Gt.kel:
                  i4 = Ce(t5 * r3.prefixNumber, e4);
              }
              return i4;
            }
            function we(t5, n5) {
              var e4, i4 = xe(n5);
              switch (i4.unit) {
                case Gt.Rank:
                  return 9 * t5 / 5 + 32 + Jt;
                case Gt.Reau:
                  return 0.8 * t5;
                case Gt.cel:
                case Gt.C:
                  return t5;
                case Gt.F:
                case Gt.fah:
                  return 9 * t5 / 5 + 32;
                case Gt.K:
                case Gt.kel:
                  return e4 = i4.prefixNumber, (t5 + Kt) / e4;
              }
            }
            function Me(t5, n5) {
              var e4, i4 = xe(n5);
              switch (i4.unit) {
                case Gt.Rank:
                  return t5 + Jt;
                case Gt.Reau:
                  return 4 * (t5 - 32) / 9;
                case Gt.F:
                case Gt.fah:
                  return t5;
                case Gt.C:
                case Gt.cel:
                  return 5 * (t5 - 32) / 9;
                case Gt.K:
                case Gt.kel:
                  return e4 = i4.prefixNumber, (5 * (t5 - 32) / 9 + Kt) / e4;
              }
            }
            function Ce(t5, n5) {
              var e4, i4 = xe(n5);
              switch (i4.unit) {
                case Gt.Rank:
                  return 9 * t5 / 5;
                case Gt.Reau:
                  return 0.8 * (t5 - Kt);
                case Gt.C:
                case Gt.cel:
                  return t5 - Kt;
                case Gt.F:
                case Gt.fah:
                  return 9 * (t5 - Kt) / 5 + 32;
                case Gt.K:
                case Gt.kel:
                  return t5 / (e4 = i4.prefixNumber);
              }
            }
            function Se(t5, n5) {
              var e4, i4 = xe(n5);
              switch (i4.unit) {
                case Gt.Rank:
                  return t5;
                case Gt.Reau:
                  return 0.8 * (t5 - Jt - 32) * 5 / 9;
                case Gt.C:
                case Gt.cel:
                  return 5 * (t5 - Jt - 32) / 9;
                case Gt.F:
                case Gt.fah:
                  return t5 - Jt;
                case Gt.K:
                case Gt.kel:
                  return e4 = i4.prefixNumber, (Kt + 5 * (t5 - Jt - 32) / 9) / e4;
              }
            }
            function Te(t5, n5) {
              var e4, i4 = xe(n5);
              switch (i4.unit) {
                case Gt.Rank:
                  return 1.25 * t5 * 9 / 5 + 32 + Jt;
                case Gt.Reau:
                  return t5;
                case Gt.C:
                case Gt.cel:
                  return 1.25 * t5;
                case Gt.F:
                case Gt.fah:
                  return 1.25 * t5 * 9 / 5 + 32;
                case Gt.K:
                case Gt.kel:
                  return e4 = i4.prefixNumber, (1.25 * t5 + Kt) / e4;
              }
            }
            function xe(t5) {
              var n5, e4, i4 = 1;
              if (Gt[t5]) return { unit: t5, prefixNumber: i4 };
              if ("K" === Gt[t5.slice(1)] || "kel" === Gt[t5.slice(1)]) {
                for (n5 = t5.slice(0, 1), t5 = t5.slice(1), e4 = 0; qt[e4].$6t; e4++) n5 === qt[e4].$6t && (i4 = qt[e4]._c);
                return { unit: t5, prefixNumber: i4 };
              }
              return { unit: void 0, prefixNumber: i4 };
            }
            function Ae(t5, n5, e4, i4) {
              var r3, o3;
              if ("" === t5 && "" === n5) return w;
              if (o3 = { value: 0 }, true === N(t5, r3 = { value: 0 }) && true === N(n5, o3)) {
                if (t5 = r3.value, n5 = o3.value, t5 < 0 || t5 > k || t5 % 1 != 0) return y;
                if ("bitOperator" === e4) {
                  if (n5 < 0 || n5 > k || n5 % 1 != 0) return y;
                } else if ("shiftOperator" === e4 && 0 === t5) return 0;
                return i4(t5, n5);
              }
              return w;
            }
            function Ie(t5, n5) {
              return Ae(t5, n5, "bitOperator", (function(t6, n6) {
                return t6 & n6;
              }));
            }
            function ke(t5, n5) {
              return Ae(t5, n5, "bitOperator", (function(t6, n6) {
                return t6 | n6;
              }));
            }
            function Ne(t5, n5) {
              return Ae(t5, n5, "bitOperator", (function(t6, n6) {
                return t6 ^ n6;
              }));
            }
            function je(t5, n5) {
              return Ae(t5, n5, "shiftOperator", (function(t6, n6) {
                if (n6 >= 48) return y;
                if (n6 < 0 && t6 < 1 << -n6) return 0;
                var e4 = t6 << n6;
                return e4 > k ? y : e4;
              }));
            }
            function De(t5, n5) {
              return Ae(t5, n5, "shiftOperator", (function(e4, i4) {
                return i4 > 53 ? y : n5 >= 0 ? t5 >> n5 : t5 << -n5;
              }));
            }
            function _e(t5, n5) {
              if ("" === t5) return y;
              if (true === t5 || false === t5) return w;
              var e4 = I(t5);
              return e4 ? n5(e4) : y;
            }
            function Oe(t5) {
              return _e(t5, (function(t6) {
                return Cn(ze(t6), t6.hkt());
              }));
            }
            function Ee(t5) {
              return _e(t5, (function(t6) {
                return Xe(Ue(t6), dn(0, 0)) ? y : Cn(Je(He(t6), Ue(t6)), t6.hkt());
              }));
            }
            function Re(t5) {
              return _e(t5, (function(t6) {
                return Xe(t6, dn(0, 0)) ? y : Cn(Ze(t6), t6.hkt());
              }));
            }
            function Le(t5) {
              return _e(t5, (function(t6) {
                return Xe(Ve(t6), dn(0, 0)) ? y : Cn(We(t6), t6.hkt());
              }));
            }
            function Fe(t5) {
              return _e(t5, (function(t6) {
                return Xe(He(t6), dn(0, 0)) ? y : Cn(Qe(t6), t6.hkt());
              }));
            }
            function Be(t5) {
              return _e(t5, (function(t6) {
                return Xe(ze(t6), dn(0, 0)) ? y : Cn(Ke(t6), t6.hkt());
              }));
            }
            function Pe(t5) {
              return _e(t5, (function(t6) {
                return Cn(Ve(t6), t6.hkt());
              }));
            }
            function Ge(t5) {
              return _e(t5, (function(t6) {
                return Cn(Ye(t6), t6.hkt());
              }));
            }
            function Ue(t5) {
              var n5 = t5.ikt(), e4 = t5.rkt();
              return dn(s(n5) * A(e4, false), c(n5) * A(e4, true));
            }
            function He(t5) {
              var n5 = t5.ikt(), e4 = t5.rkt();
              return dn(c(n5) * A(e4, false), -s(n5) * A(e4, true));
            }
            function Ve(t5) {
              var n5 = t5.ikt(), e4 = t5.rkt();
              return dn(A(n5, true) * c(e4), A(n5, false) * s(e4));
            }
            function ze(t5) {
              var n5 = t5.ikt(), e4 = t5.rkt();
              return dn(A(n5, false) * c(e4), A(n5, true) * s(e4));
            }
            function Ye(t5) {
              return Je(Ue(t5), He(t5));
            }
            function Ze(t5) {
              return Je(j, Ue(t5));
            }
            function We(t5) {
              return Je(j, Ve(t5));
            }
            function Qe(t5) {
              return Je(j, He(t5));
            }
            function Ke(t5) {
              return Je(j, ze(t5));
            }
            function Je(t5, n5) {
              var e4, i4, r3 = t5.ikt(), o3 = t5.rkt(), a2 = n5.ikt(), u2 = n5.rkt();
              return Math.abs(u2) < Math.abs(a2) ? dn((r3 + o3 * (e4 = u2 / a2)) / (a2 + u2 * e4), (o3 - r3 * e4) / (a2 + u2 * e4)) : dn((o3 + r3 * (i4 = a2 / u2)) / (u2 + a2 * i4), (o3 * i4 - r3) / (u2 + a2 * i4));
            }
            function Xe(t5, n5) {
              return t5.ikt() === n5.ikt() && t5.rkt() === n5.rkt();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.Uf.tR, a = void 0, u = Math.abs, s = Math.sin, c = Math.cos, f = Math.sqrt, l = Math.log, h = Math.pow, d = Math.exp, v = Math.E, p = Math.atan2, g = parseFloat, m = isNaN, b = r2.Errors.NotAvailable, y = r2.Errors.Number, w = r2.Errors.Value, M = r2.Functions.F6t, C = r2.Functions.dkt, S = r2.Convert.L6t, T = r2.Convert.BJ, x = r2.Functions.MathHelper, A = x.vkt, I = r2.Functions.mkt, k = 281474976710655, N = r2.Convert.sJ, j = dn(1, 0), F = pn(["g", "sg", "lbm", "u", "ozm", "grain", "cwt", "shweight", "uk_cwt", "lcwt", "hweight", "stone", "ton", "uk_ton", "LTON", "brton"], [1, 685217658567918e-19, D = 0.00220462262184878, 602214179421676e9, 0.0352739619495804, _ = 7e3 * D, O = D / 100, O, E = D / 112, E, E, R = D / 14, 110231131092439e-20, L = D / 2240, L, L]), W = pn(["m", "mi", "Nmi", "in", "ft", "yd", "ang", "Pica", "ell", "ly", "pc", "pica", "survey_mi", "parsec", "Picapt"], [1, U = (G = (P = (B = 1e4 / 254) / 12) / 3) / 1760, 1 / 1852, B, P, G, 1e10, 2834.64566929134, H = B / 45, Y = 105700083402462e-30, Z = 324077928966473e-31, V = 6 * B, z = 62136994949495e-17, Z, 2834.64566929134]), q = pn(["yr", "day", "hr", "mn", "sec", "d", "min", "s"], [1, Q = 365.25, K = 24 * Q, J = 60 * K, X = 60 * J, Q, J, X]), tt = pn(["Pa", "atm", "mmHg", "p", "at", "psi", "Torr"], [1, 986923266716013e-20, $ = 0.007500637554192, 1, 986923266716013e-20, 145037737730209e-18, 0.0075006168270417]), et = pn(["N", "dyn", "lbf", "dy", "pond"], [1, nt = 1e5, 0.22480894309971, nt, 101.971621297793]), rt = pn(["HP", "W", "h", "w", "PS"], [1, it = 745.69987158227, 1, it, 1.013869665424]), ft = pn(["J", "e", "c", "cal", "eV", "HPh", "Wh", "flb", "BTU", "ev", "hh", "wh", "btu"], [1, 1e-7, ct = 0.239005736137667, ct, ot = 624150964712042e4, at = 1 / (3600 * it), ut = 1 / 3600, 0.737562149277265, st = 947817120313317e-18, ot, at, ut, st]), lt = pn(["T", "ga"], [1, 1e4]), xt = pn(["tsp", "tspm", "tbs", "oz", "cup", "pt", "qt", "uk_qt", "gal", "uk_gal", "l", "uk_pt", "us_pt", "lt", "ang3", "ang^3", "barrel", "bushel", "ft3", "ft^3", "in3", "in^3", "ly3", "ly^3", "m3", "m^3", "mi3", "mi^3", "yd3", "yd^3", "Nmi3", "Nmi^3", "Pica3", "Pica^3", "Picapt3", "Picapt^3", "GRT", "regton", "MTON", "L"], [1, 0.98578431875, 1 / 3, 1 / 6, 1 / 48, 1 / 96, 1 / 192, 0.00433684471160932, 1 / 768, 0.00108421117790233, ht = 0.00492892159375, 0.00867368942321863, 1 / 96, ht, dt = 1e27 * ht, dt, 1 / 32256, vt = 139870932189991e-18, pt = 17406322338e-14, pt, gt = 0.30078125, gt, mt = 82073596535e-54, mt, bt = 492892159375e-17, bt, yt = 118251117638e-26, yt, wt = 64467860511e-16, wt, Mt = 775941468987e-27, Mt, Ct = 112266, Ct, Ct, Ct, St = 1740632233796e-18, St, Tt = 4351580584491e-18, ht]), At = pn(["admkn", "kn", "m/h", "m/hr", "m/s", "m/sec", "mph"], [1, 1.00063930885529, 1853.184, 1853.184, 0.514773333333333, 0.514773333333333, 1.15151515151515]), Lt = pn(["m2", "m^2", "ft2", "ft^2", "in2", "in^2", "yd2", "yd^2", "uk_acre", "us_acre", "ang2", "ang^2", "ar", "ha", "Morgen", "mi2", "mi2", "Nmi2", "Nmi^2", "Pica2", "Picapt2", "Pica^2", "Picapt^2", "ly2", "ly^2"], [1, 1, It = 10.7639104167097, It, kt = 144 * It, kt, Nt = It / 9, Nt, jt = 247105381467165e-18, Dt = 247104393046628e-18, 1e20, 1e20, 0.01, 1e-4, 4e-4, _t = Nt / 3097600, _t, Ot = 291553349598123e-21, Ot, Et = 803521607043214e-8, Et, Et, Et, Rt = 111725076312873e-46, Rt]), Ft = pn(["bit", "byte"], [1, 0.125]), Bt = "bit", Pt = "byte", Gt = { K: "K", kel: "kel", cel: "cel", C: "C", F: "F", fah: "fah", Rank: "Rank", Reau: "Reau" }, Ut = "day", Ht = "d", Vt = "yr", zt = "hr", Yt = "mn", Zt = "min", Wt = "sec", Qt = "s", Kt = 273.15, Jt = 459.67, qt = pn(Xt = ["Y", "Z", "E", "P", "T", "G", "M", "k", "h", "e", "d", "c", "m", "u", "n", "p", "f", "a", "z", "y"], [1e24, 1e21, 1e18, 1e15, 1e12, 1e9, 1e6, 1e3, 100, 10, 0.1, 0.01, 1e-3, 1e-6, 1e-9, 1e-12, 1e-15, 1e-18, 1e-21, 1e-24]), $t = pn(["Y", "Z", "E", "P", "T", "G", "M", "k", "h", "e", "d", "c", "m", "u", "n", "p", "f", "a", "z", "y", "Yi", "Zi", "Ei", "Pi", "Ti", "Gi", "Mi", "ki"], [1e24, 1e21, 1e18, 1e15, 1e12, 1e9, 1e6, 1e3, 100, 10, 0.1, 0.01, 1e-3, 1e-6, 1e-9, 1e-12, 1e-15, 1e-18, 1e-21, 1e-24, Math.pow(2, 80), Math.pow(2, 70), Math.pow(2, 60), Math.pow(2, 50), Math.pow(2, 40), Math.pow(2, 30), Math.pow(2, 20), Math.pow(2, 10)]), tn = ["sg", "lbm", "ozm", "grain", "cwt", "shweight", "uk_cwt", "lcwt", "hweight", "stone", "uk_ton", "lcwt", "hweight", "stone", "uk_ton", "LTON", "brton", "ton", "mi", "Nmi", "in", "ft", "yd", "ell", "Pica", "survey_mi", "Picapt", "psi", "Torr", "lbf", "HP", "h", "PS", "HPh", "flb", "BTU", "hh", "btu", "tsp", "tspm", "tbs", "oz", "cup", "pt", "us_pt", "uk_pt", "qt", "UK_qt", "gal", "uk_gal", "barrel", "bushel", "ft3", "ft^3", "in3", "in^3", "mi3", "mi^3", "yd3", "yd^3", "Nmi3", "Nmi^3", "Picapt3", "Picapt^3", "Pica3", "Pica^3", "GRT", "regton", "MTON", "kn", "admkn", "uk_acre", "us_acre", "ft2", "ft^2", "in2", "in^2", "ly2", "ly^2", "Morgen", "mi2", "mi^2", "Nmi2", "Nmi^2", "Pica2", "Picapt^2", "Pica^2", "Picapt^2", "yd2", "yd^2"], en = { J6t: 5 }, un = { J6t: 8 }, sn = { J6t: 8, gkt: true }, fn = [{ J6t: 0, pkt: "<= 0" }, an = { J6t: 2, pkt: "< 0" }], ln = [nn = { J6t: 0 }, { J6t: 0, bkt: 0 }], hn = [rn = { J6t: 5, pkt: ["checkLength 10"] }, on = { ykt: true, J6t: 2, bkt: 1, pkt: ["< 1", "> 10"] }], M("BESSELI", xn, 2, 2, cn = [nn, an]), M("BESSELJ", An, 2, 2, cn), M("BESSELK", In, 2, 2, fn), M("BESSELY", kn, 2, 2, fn), M("BIN2DEC", Nn, 1, 1, rn), M("BIN2HEX", _n, 1, 2, hn, a, a, { wkt: 1 }), M("BIN2OCT", On, 1, 2, hn, a, a, { wkt: 1 }), M("DEC2BIN", En, 1, 2, [{ J6t: 0, pkt: ["< -512", "> 511"] }, on], a, a, { wkt: 1 }), M("DEC2HEX", Rn, 1, 2, [{ J6t: 0, pkt: ["< -549755813888", "> 549755813887"] }, on], a, a, { wkt: 1 }), M("DEC2OCT", Ln, 1, 2, [{ J6t: 0, pkt: ["< -536870912", "> 536870911"] }, on], a, a, { wkt: 1 }), M("HEX2BIN", Fn, 1, 2, hn, a, a, { wkt: 1 }), M("HEX2DEC", jn, 1, 1, rn), M("HEX2OCT", Pn, 1, 2, hn, a, a, { wkt: 1 }), M("OCT2BIN", Bn, 1, 2, hn, a, a, { wkt: 1 }), M("OCT2DEC", Dn, 1, 1, rn), M("OCT2HEX", Gn, 1, 2, hn, a, a, { wkt: 1 }), M("ERF", Un, 1, 2, [nn, { ykt: true, J6t: 0 }], a, a, { wkt: 1 }), M("ERF.PRECISE", Hn, 1, 1, nn), M("ERFC", Vn, 1, 1, nn), M("ERFC.PRECISE", Vn, 1, 1, nn), M("DELTA", zn, 1, 2, ln, a, a, { wkt: 1 }), M("GESTEP", Yn, 1, 2, ln, a, a, { wkt: 1 }), M("COMPLEX", Zn, 2, 3, [nn, nn, { J6t: 5, bkt: "i" }], a, a, { wkt: 2 }), M("IMABS", Wn, 1, 1, un), M("IMAGINARY", Qn, 1, 1, un), M("IMARGUMENT", Kn, 1, 1, un), M("IMCONJUGATE", Jn, 1, 1, un), M("IMCOS", Xn, 1, 1, un), M("IMDIV", qn, 2, 2, [un, sn]), M("IMEXP", $n, 1, 1, un), M("IMLN", te, 1, 1, sn), M("IMLOG10", ne, 1, 1, sn), M("IMLOG2", ee, 1, 1, sn), M("IMREAL", re, 1, 1, un), M("IMSIN", oe, 1, 1, un), M("IMSQRT", ae, 1, 1, un), M("IMSUB", ue, 2, 2, [un, un]), M("IMPOWER", ie, 2, 2, [un, { J6t: 2 }]), M("IMPRODUCT", se, 1, 255, a, -1, -1), M("IMSUM", ce, 1, 255, a, -1, -1), M("CONVERT", he, 3, 3, [{ J6t: 1 }, en, en]), M("BITAND", Ie, 0, 2), M("BITLSHIFT", je, 0, 2), M("BITOR", ke, 0, 2), M("BITRSHIFT", De, 0, 2), M("BITXOR", Ne, 0, 2), M("IMCOSH", Oe, 1, 1), M("IMCOT", Ee, 1, 1), M("IMCSC", Re, 1, 1), M("IMCSCH", Le, 1, 1), M("IMSEC", Fe, 1, 1), M("IMSECH", Be, 1, 1), M("IMSINH", Pe, 1, 1), M("IMTAN", Ge, 1, 1);
          }, "./src/functions-fin.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St;
            function Tt(t5) {
              return t5.getMonth();
            }
            function xt(t5) {
              return t5.getDate();
            }
            function At(t5) {
              return t5.getFullYear();
            }
            function It(t5, n5) {
              var e4 = At(t5), i4 = new Date(e4, n5, 1), r3 = F(At(i4), Tt(i4));
              xt(t5) > r3 && t5.setDate(r3), t5.setMonth(n5);
            }
            function kt(t5) {
              return t5 instanceof Date ? i3.Common.ct.o0(t5) : t5;
            }
            function Nt(t5, n5, e4) {
              var i4 = At(n5) - At(t5), o3 = Tt(n5) - Tt(t5) + 12 * i4, a2 = xt(n5) - xt(t5), u2 = -1;
              return 0 === e4 ? u2 = r2.Functions.Mkt(t5, n5) : c(e4, [1, 2, 3]) >= 0 ? u2 = kt(n5) - kt(t5) : 4 === e4 && (u2 = 30 * o3 + a2), u2;
            }
            function jt(t5, n5, e4, i4, r3) {
              var o3, u2 = M(1 + t5, n5), s2 = a(u2) ? u2 : D;
              return 0 === t5 ? n5 : v(s2) || (o3 = a(u2 = (u2 - 1) / t5) ? u2 : D, v(o3)) ? D : a(u2 = (-e4 * s2 - i4) / ((1 + t5 * r3) * o3)) ? u2 : D;
            }
            function Dt(t5, n5, e4, i4) {
              var r3 = At(n5), o3 = Tt(n5), a2 = xt(n5), u2 = new Date(1, 0, 1), s2 = 0, c2 = a2 === F(r3, o3), f2 = 12 / e4, l2 = r3 - At(t5);
              u2.setFullYear(1), l2 > 0 && (l2 = (l2 - 1) * e4);
              do {
                It(u2 = new Date(r3, o3, a2), o3 - ++l2 * f2), c2 && (s2 = F(At(u2), Tt(u2)), u2 = new Date(At(u2), Tt(u2), s2));
              } while (B(t5, u2) < 0);
              return i4 && (It(u2 = new Date(r3, o3, a2), o3 - --l2 * f2), c2 && (s2 = F(At(u2), Tt(u2)), u2 = new Date(At(u2), Tt(u2), s2))), u2;
            }
            function _t(t5, n5, e4, i4) {
              return P(Dt(t5, n5, e4, false), t5, i4);
            }
            function Ot(t5, n5, e4, i4) {
              var r3;
              return r3 = c(i4, [0, 2, 4, 5]) >= 0 ? 360 / e4 : 3 === i4 ? 365 / e4 : P(Dt(t5, n5, e4, false), Dt(t5, n5, e4, true), 1);
            }
            function Et(t5, n5, e4, i4) {
              return P(t5, Dt(t5, n5, e4, true), i4);
            }
            function Rt(t5, n5, e4) {
              var i4 = At(n5), r3 = Tt(n5), o3 = xt(n5), a2 = new Date(i4, r3, o3), s2 = r3 - Tt(t5) + 12 * (i4 - At(t5));
              if (It(a2, Tt(a2) - s2), o3 === F(i4, r3)) for (; xt(a2) !== F(At(a2), Tt(a2)); ) a2.setDate(xt(a2) + 1);
              return xt(t5) >= xt(a2) && s2--, u((1 + s2 / (12 / e4)).toString());
            }
            function Lt(t5, n5, e4) {
              return n5 > 0 ? (e4.Ckt ? e4.Skt ? C(t5 - e4.Tkt) < C(e4.Akt - e4.Tkt) && (e4.Akt = t5, e4.Ikt = n5) : n5 < e4.Ikt && (e4.Akt = t5, e4.Ikt = n5) : (e4.Akt = t5, e4.Ikt = n5, e4.Ckt = true), [false, e4]) : n5 < 0 ? (e4.Skt ? e4.Ckt ? C(t5 - e4.Akt) < C(e4.Akt - e4.Tkt) && (e4.Tkt = t5, e4.xkt = n5) : -n5 < -e4.xkt && (e4.Tkt = t5, e4.xkt = n5) : (e4.Tkt = t5, e4.xkt = n5, e4.Skt = true), [false, e4]) : isNaN(n5) ? [false, e4] : (e4.Nkt = t5, [true, e4]);
            }
            function Ft(t5, n5, e4, i4, r3) {
              var o3, a2 = Dt(t5, e4, i4, true), u2 = Dt(t5, e4, i4, false);
              if (B(a2, n5) >= 0) return P(t5, n5, r3) / Ot(u2, a2, i4, r3);
              for (o3 = P(t5, a2, r3) / Ot(u2, a2, i4, r3); ; ) {
                if (u2 = new Date(At(a2), Tt(a2), xt(a2)), It(a2, Tt(a2) + 12 / i4), B(a2, n5) >= 0) return o3 += P(u2, n5, r3) / Ot(u2, a2, i4, r3);
                o3 += 1;
              }
            }
            function Bt(t5, n5, e4, i4, r3, o3, a2) {
              var s2, c2, f2, l2, h2, d2, v2, p2 = _t(t5, n5, o3, a2), g2 = Et(t5, n5, o3, a2), m2 = Ot(t5, n5, o3, a2), b2 = u(Rt(t5, n5, o3).toString()), y2 = 0, w2 = 100 * e4 / o3, C2 = 1 + i4 / o3, S2 = g2 / m2;
              if (1 === b2) return (f2 = 100 * e4 / o3 + r3) / (l2 = i4 / o3 * (c2 = m2 - p2) / m2 + 1) - (h2 = 100 * e4 / o3 * p2 / m2);
              for (s2 = 0; s2 < b2; s2++) y2 += w2 / M(C2, S2 + s2);
              return (d2 = r3 / M(C2, b2 - 1 + g2 / m2)) + y2 - (v2 = p2 / m2 * w2);
            }
            function Pt(t5, n5, e4, i4, r3, o3, a2, s2, c2) {
              var f2, l2, h2, d2, v2, p2, g2 = P(s2, t5, a2), m2 = P(t5, c2, a2), b2 = P(s2, c2, a2), y2 = Ot(t5, n5, o3, a2), w2 = u(Rt(t5, n5, o3).toString()), C2 = 100 * e4 / o3, T2 = 1 + i4 / o3;
              if (m2 > y2) switch (a2) {
                case 0:
                case 4:
                  f2 = P(c2, n5, a2), w2 = 1 + u(S(f2 / y2).toString());
                  break;
                default:
                  for (l2 = new Date(At(c2), Tt(c2), xt(c2)), w2 = 0; w2 < 32767; w2++) if (h2 = new Date(At(l2), Tt(l2), xt(l2)), It(l2, Tt(l2) + 12 / o3), B(l2, n5) >= 0) {
                    w2 += u((S(P(h2, n5, a2)) / Ot(h2, l2, o3, a2)).toString()) + 1;
                    break;
                  }
                  g2 = y2 * Ft(s2, t5, c2, o3, a2), m2 = y2 * Ft(t5, c2, c2, o3, a2), b2 = y2 * Ft(s2, c2, c2, o3, a2);
              }
              return (d2 = r3 / M(T2, w2 - 1 + m2 / y2)) + C2 * ((v2 = b2 / y2 / M(T2, m2 / y2)) + (p2 = M(T2, -m2 / y2) * (M(T2, -w2) - 1 / T2) / (1 / T2 - 1)) - g2 / y2);
            }
            function Gt(t5, n5) {
              var e4 = t5.substr(0, 3), i4 = { ATS: 13.7603, BEF: 40.3399, DEM: 1.95583, ESP: 166.386, EUR: 1, FIM: 5.94573, FRF: 6.55957, GRD: 340.75, IEP: 0.787564, ITL: 1936.27, LUX: 40.3399, LUF: 40.3399, NLG: 2.20371, PTE: 200.482, SIT: 245.18 };
              return i4[e4] ? E(i4[e4], n5) : -1;
            }
            function Ut(t5, n5, e4, i4, r3) {
              var o3, a2 = M(1 + t5, n5);
              return 0 === t5 ? o3 = (e4 + i4) / n5 : (o3 = i4 * t5 / (a2 - 1) + e4 * t5 / (1 - 1 / a2), r3 > 0 && (o3 /= 1 + t5)), -o3;
            }
            function Ht(t5, n5, e4, i4, r3) {
              var o3 = M(1 + t5, n5), a2;
              return -(0 === t5 ? i4 + e4 * n5 : i4 * o3 + e4 * (r3 > 0 ? 1 + t5 : 1) * (o3 - 1) / t5);
            }
            function Vt(t5, n5, e4, i4, r3, o3, a2) {
              if (o3 < r3 || o3 > e4 || 0 !== a2 && 1 !== a2) return D;
              var u2 = Ut(n5, e4, i4, 0, a2), s2 = 0, c2, f2;
              for (1 === r3 && (t5 && (s2 = u2), a2 <= 0 && (s2 += t5 ? i4 * n5 : -i4), r3++), c2 = r3; c2 <= o3; c2++) f2 = a2 > 0 ? Ht(n5, c2 - 2, u2, i4, 1) - u2 : Ht(n5, c2 - 1, u2, i4, 0), s2 += t5 ? u2 - f2 * n5 : f2;
              return t5 ? s2 : s2 * n5;
            }
            function zt(t5, n5, e4, i4) {
              var r3 = M(1 + e4, i4), o3 = -(t5 * r3 * e4 + n5 * (r3 - 1));
              return a(o3) ? o3 : D;
            }
            function Yt(t5, n5, e4, i4, r3) {
              return c(i4, [1, 2, 4]) < 0 || B(n5, e4) >= 0 ? D : t5(n5, e4, i4, r3);
            }
            function Zt(t5, n5, e4, i4, r3, o3) {
              function a2(t6, n6, e5, i5) {
                var r4 = 0, o4, a3 = 0, u3 = 100;
                for (t6 *= u3 / m(e5), n6 /= e5, n6++, o4 = 1; o4 < i5; o4++) r4 += o4 * t6 / M(n6, o4);
                for (r4 += i5 * (t6 + u3) / M(n6, i5), o4 = 1; o4 < i5; o4++) a3 += t6 / M(n6, o4);
                return r4 /= a3 += (t6 + u3) / M(n6, i5), r4 /= m(e5);
              }
              if (c(o3, [1, 2, 4]) < 0 || B(n5, e4) > 0) return D;
              var u2 = a2(i4, r3, o3, Rt(n5, e4, o3));
              return t5 ? u2 / (1 + r3 / o3) : u2;
            }
            function Wt(t5, n5, e4, i4, r3, o3, a2, u2, s2) {
              var f2, l2, h2, d2;
              if (c(a2, [1, 2, 4]) < 0 || B(n5, e4) > 0 || B(i4, n5) > 0) return D;
              f2 = new Date(At(i4), Tt(i4), xt(i4));
              do {
                It(f2, Tt(f2) + 12 / a2);
              } while (B(f2, e4) < 0);
              return l2 = Ft(i4, n5, f2, a2, u2), h2 = Ft(i4, e4, f2, a2, u2), d2 = Ft(n5, e4, f2, a2, u2), t5 ? (o3 * a2 + 100 * r3 * (h2 - l2 * (1 + s2 * d2 / a2))) / (s2 * d2 + a2) : (a2 * (o3 - s2) + 100 * r3 * (h2 - l2)) / (d2 * s2 + 100 * r3 * l2 * d2 / a2);
            }
            function Qt(t5, n5, e4) {
              var i4, r3, o3, a2;
              return 0 === e4 ? N : (i4 = n5 < 0 ? S(n5) : A(n5), r3 = M(10, S(O.ckt(e4, 10))), o3 = n5 - i4, p(i4 + (a2 = t5 ? o3 * r3 / e4 : o3 * e4 / r3)));
            }
            function Kt(t5, n5, e4, i4) {
              var r3, o3, a2 = h(n5), u2 = 0, s2 = 1 + t5, c2 = 0;
              if (s2 >= 0.75 && s2 <= 1.25 && a2 > 12 && i4 && (c2 = 2.5), e4) for (r3 = 0; r3 < a2; r3++) {
                if (o3 = -(r3 - c2) * n5[r3] * Math.pow(s2, -(r3 - c2) - 1), isNaN(o3)) return u2;
                u2 += o3;
              }
              else for (r3 = 0; r3 < a2; r3++) {
                if (o3 = n5[r3] * Math.pow(s2, -(r3 - c2)), isNaN(o3)) return u2;
                u2 += o3;
              }
              return u2;
            }
            function Jt(t5, n5, e4, i4) {
              var r3, o3, u2 = 0, s2 = h(n5);
              for (t5 <= -1 && (t5 = 1e-10 - 1), r3 = 0; r3 < s2; r3++) {
                if ((o3 = kt(i4[r3]) - kt(i4[0])) < 0) return [false, e4];
                u2 += n5[r3] / O.kkt(t5, o3 / 365);
              }
              return a(u2) ? e4 = isNaN(u2) ? 5e-324 : u2 : u2 === Number.POSITIVE_INFINITY ? e4 = R : u2 === Number.NEGATIVE_INFINITY && (e4 = -R), [true, e4];
            }
            function Xt(t5, n5, e4, i4) {
              var r3, o3, a2;
              return t5 > -1 && 0 !== t5 ? (o3 = M(1 + t5, (r3 = e4).Dkt - (i4 ? 1 : 0)), a2 = (M(1 + t5, r3.Dkt) - 1) / t5, [true, n5 = i4 ? -r3._kt * a2 / t5 + o3 * r3.Dkt * (r3._pv + r3._kt * (r3._type + 1 / t5)) : r3._pv * o3 + r3._kt * (1 + t5 * r3._type) * a2 + r3._fv, e4]) : [false, n5, e4];
            }
            function qt(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2, l2, h2, d2, v2, p2) {
              var g2, m2, b2, y2, w2 = 0, M2 = 0, C2 = e4 - r3, S2 = e4 + r3, T2 = 2 === t5;
              if (C2 < o3.Okt && (C2 = e4), S2 > o3.Rkt && (S2 = e4), C2 === S2) return T2 ? [false, i4, o3, a2] : [false, i4, o3];
              if (0 === t5 ? (g2 = n5(a2, u2, s2, C2, l2, h2, d2, v2, p2) - c2, m2 = n5(a2, u2, s2, S2, l2, h2, d2, v2, p2) - c2) : 1 === t5 ? (g2 = n5(C2, a2, w2, u2), m2 = n5(S2, a2, M2, u2)) : (g2 = Xt(C2, w2, a2), m2 = Xt(S2, M2, a2)), f(g2)) {
                if (y2 = g2[2], w2 = g2[1], !(b2 = g2[0])) return T2 ? [b2, i4, o3, y2] : [b2, i4, o3];
              } else w2 = g2;
              if (f(m2)) {
                if (y2 = m2[2], M2 = m2[1], !(b2 = m2[0])) return T2 ? [b2, i4, o3, y2] : [b2, i4, o3];
              } else M2 = m2;
              return i4 = (M2 - w2) / (S2 - C2), T2 ? [true, i4, o3, y2] : [true, i4, o3];
            }
            function $t(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2) {
              var d2, v2;
              return i4 < e4.Okt || i4 > e4.Rkt ? [false, e4] : (e4 = (v2 = Lt(i4, d2 = t5 ? Kt(i4, r3) : n5(r3, o3, a2, i4, s2, c2, f2, l2, h2) - u2, e4))[1], [!!v2[0], e4]);
            }
            function tn(t5, n5, e4, i4, r3) {
              if (n5 > t5.Rkt) return [false, t5, e4];
              var o3 = Jt(n5, i4, e4, r3);
              return e4 = o3[1], o3[0] ? (t5 = (o3 = Lt(n5, e4, t5))[1], [!!o3[0], t5, e4]) : [o3[0], t5, e4];
            }
            function nn(t5, n5, e4) {
              var i4, r3, o3 = 0;
              return n5 < t5.Okt || n5 > t5.Rkt ? [false, t5, e4] : (e4 = (i4 = Xt(n5, o3, e4))[2], o3 = i4[1], i4[0] ? (t5 = (r3 = Lt(n5, o3, t5))[1], [!!r3[0], t5, e4]) : [i4[0], t5, e4]);
            }
            function en(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2) {
              var f2, l2, h2, d2, v2, p2, g2 = 0, m2 = t5 ? 15 : 2;
              if (!e4.Ckt || !e4.Skt) return t5 ? [false, e4, i4] : [false, e4];
              for (l2 = C(e4.Akt - e4.Tkt) / (C(e4.Akt) + C(e4.Tkt)), f2 = 0; f2 < 100 + 4 * m2; f2++) if (h2 = 0, d2 = 0, v2 = void 0, v2 = f2 % 4 == 0 ? 1 : f2 % 4 == 2 ? 2 : 3, p2 = void 0, e4 = (p2 = t5 ? fn(e4, i4, l2, g2, d2, v2) : n5 ? ln(true, e4, g2, h2, d2, v2, Jt, l2, r3, i4, qt) : ln(false, e4, g2, h2, d2, v2, Bt, l2, o3, a2, u2, i4, r3, s2, c2))[1], t5 && (i4 = p2[2]), g2 = t5 ? p2[3] : p2[2], p2[0]) return t5 ? [true, e4, i4] : [true, e4];
              return t5 ? [false, e4, i4] : [false, e4];
            }
            function rn(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2) {
              var h2, d2, v2, p2, g2, m2, b2, M2 = 0, S2 = t5 ? 15 : 2;
              if (!n5.Ckt || !n5.Skt) return [false, n5];
              for (d2 = C(n5.Akt - n5.Tkt) / (C(n5.Akt) + C(n5.Tkt)), h2 = 0; h2 < 100 + 4 * S2; h2++) if (v2 = 0, p2 = 0, g2 = void 0, g2 = h2 % 4 == 0 ? 1 : h2 % 4 == 2 ? 2 : 3, n5 = (m2 = t5 ? ln(true, n5, M2, v2, p2, g2, Kt, d2, w, e4, qt) : ln(false, n5, M2, v2, p2, g2, Pt, d2, a2, u2, s2, e4, i4, c2, f2, r3, o3))[1], M2 = m2[2], v2 = m2[3], !(t5 && m2[0] === y || !t5 && l(m2[0]))) {
                if (m2[0]) return [true, n5];
                if (n5 = (b2 = Lt(v2, p2 = t5 ? Kt(v2, e4) : Pt(e4, i4, a2, v2, s2, c2, f2, r3, o3) - u2, n5))[1], b2[0]) return [true, n5];
                if ((d2 = C(n5.Akt - n5.Tkt) / (C(n5.Akt) + C(n5.Tkt))) < n5.Bkt) return n5.xkt < p2 && (p2 = n5.xkt, v2 = n5.Tkt), n5.Ikt < p2 && (v2 = n5.Akt), n5.Nkt = v2, [true, n5];
              }
              return [false, n5];
            }
            function on(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2, l2, h2, d2) {
              var v2, p2, g2, m2, b2, y2, w2, M2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O2 = e4.Bkt / 2, E2 = false;
              for (p2 = 0; p2 < 20; p2++) {
                if (i4 < e4.Okt || i4 > e4.Rkt) {
                  if (!t5 || e4.Skt && e4.Ckt || !(i4 <= -1)) return [false, e4];
                  i4 = -1, E2 = true;
                }
                if (b2 = t5 ? Jt(i4, r3, 0, o3) : n5(r3, o3, a2, i4, s2, c2, l2, h2, d2) - u2, f(b2)) {
                  if (m2 = b2[1], !(g2 = b2[0])) return [g2, e4];
                } else m2 = b2;
                if (e4 = (y2 = Lt(i4, m2, e4))[1], y2[0]) return [true, e4];
                if (E2) return [false, e4];
                if (w2 = e4.Skt && e4.Ckt ? C(e4.Akt - e4.Tkt) : e4.Rkt - e4.Okt, M2 = (C(i4) < 1e-10 ? w2 : C(i4)) / 1e6, S2 = 0, e4 = (y2 = t5 ? qt(1, Jt, i4, S2, M2, e4, r3, o3) : qt(0, n5, i4, S2, M2, e4, r3, o3, a2, u2, s2, c2, l2, h2, d2))[2], S2 = y2[1] < 0 ? y2[1] : -y2[1], !(g2 = y2[0])) return [g2, e4];
                if (0 === S2) return [false, e4];
                if ((T2 = i4 - 1.000001 * m2 / S2) === i4) return e4.Nkt = i4, [true, e4];
                if (t5 && e4.Skt && e4.Ckt && T2 < (A2 = (x2 = [e4.Akt, e4.Tkt])[0]) == T2 < (I2 = x2[1]) && (k2 = true, A2 > I2 && (A2 = (v2 = [I2, A2])[0], I2 = v2[1], k2 = false), j2 = (N2 = [e4.Ikt, e4.xkt])[0], D2 = N2[1], T2 = A2 + C((k2 ? j2 : D2) / (D2 - j2)) * (I2 - A2)), _2 = C(T2 - i4) / (C(i4) + C(T2)), i4 = T2, _2 < O2) return e4.Nkt = i4, [true, e4];
              }
              return [false, e4];
            }
            function an(t5, n5, e4) {
              for (var i4, r3, a2, u2, s2, c2, f2, l2 = t5.Bkt / 2, h2 = 0; 0 === n5[h2]; ) h2++;
              for (i4 = n5.slice(h2), a2 = [false, null], u2 = [e4], 0.1 !== e4 && u2.push(0.1), u2.push(-0.1, 0.99 * t5.Rkt, t5.Okt + 0.01), s2 = 0; !a2[0] && s2 < u2.length; s2++) un(a2 = sn(o2(t5), i4, u2[s2], l2), i4);
              if (!a2[0]) {
                for (c2 = 0, s2 = 1, f2 = i4.length; s2 < f2; s2++) c2 += i4[s2];
                r3 = -c2 / i4[0] - 1, a2 = sn(o2(t5), i4, r3, l2);
              }
              return a2;
            }
            function un(t5, n5) {
              var e4, r3, o3, a2;
              t5[0] && (r3 = 15, "number" == typeof (e4 = t5[1].Nkt) && e4 > -10 && e4 < 10 && ((o3 = e4.toString()).indexOf("000000000000") > 1 || o3.indexOf("999999999999") > 1) && (r3 = 14), ((a2 = vn(e4 = i3.Common.st.E8(e4, r3), n5)) > 1e-3 || a2 < -1e-3) && (t5[0] = false));
            }
            function sn(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2;
              for (r3 = 0; r3 < 32; r3++) {
                if (e4 < t5.Okt || e4 > t5.Rkt) return [false, t5];
                if (t5 = (a2 = Lt(e4, o3 = Kt(e4, n5, false, true), t5))[1], a2[0]) return [true, t5];
                if (0 === (u2 = Kt(e4, n5, true, true))) return [false, t5];
                if ((s2 = e4 - 1.0000001 * o3 / u2) === e4) return t5.Nkt = e4, [true, t5];
                if (c2 = C(s2 - e4) / (C(e4) + C(s2)), e4 = s2, c2 < i4) return t5.Nkt = e4, [true, t5];
              }
              return [false, t5];
            }
            function cn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2 = t5.Bkt / 2;
              for (i4 = 0; i4 < 100; i4++) {
                if (r3 = void 0, o3 = void 0, a2 = void 0, u2 = 0, s2 = 0, e4 < t5.Okt || e4 > t5.Rkt) return [false, t5, n5];
                if (n5 = (c2 = Xt(e4, u2, n5))[2], u2 = c2[1], !(a2 = c2[0])) return [a2, t5, n5];
                if (t5 = (f2 = Lt(e4, u2, t5))[1], f2[0]) return [true, t5, n5];
                if (n5 = (c2 = Xt(e4, s2, n5, true))[2], s2 = c2[1], !(a2 = c2[0])) return [a2, t5, n5];
                if (0 === s2) return [false, t5, n5];
                if ((r3 = e4 - 1.000001 * u2 / s2) === e4) return t5.Nkt = e4, [true, t5, n5];
                if (o3 = C(r3 - e4) / (C(e4) + C(r3)), e4 = r3, o3 < l2) return t5.Nkt = e4, [true, t5, n5];
              }
              return [false, t5, n5];
            }
            function fn(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
              if (1 === o3) {
                if (s2 = void 0, n5 = (c2 = Xt(a2 = (t5.Akt + t5.Tkt) / 2, r3, n5))[2], r3 = c2[1], !(u2 = c2[0])) return [y, t5, n5, i4];
                if (0 === r3) return [true, t5 = Lt(a2, r3, t5)[1], n5, i4];
                if (0 === (s2 = x(r3 * r3 - t5.Ikt * t5.xkt))) return [y, t5, n5, i4];
              } else if (2 === o3) {
                if (f2 = void 0, l2 = void 0, h2 = 0, d2 = 0, e4 > 0.1) return fn(t5, n5, e4, i4, r3, o3 = 3);
                if (v2 = i4 % 4, i4++, 0 === v2) f2 = t5.Akt, h2 = t5.Ikt;
                else if (2 === v2) f2 = t5.Tkt, h2 = t5.xkt;
                else if (n5 = (c2 = Xt(f2 = (t5.Akt + t5.Tkt) / 2, h2, n5))[2], h2 = c2[1], !(u2 = c2[0])) return [y, t5, n5, i4];
                if (n5 = (p2 = qt(2, void 0, f2, d2, l2 = C(t5.Akt - t5.Tkt) / 1e6, t5, n5))[3], t5 = p2[2], d2 = p2[1], !(u2 = p2[0]) || 0 === d2) return [y, t5, n5, i4];
                if ((a2 = f2 - 1.01 * h2 / d2) < t5.Akt && a2 < t5.Tkt || a2 > t5.Akt && a2 > t5.Tkt) return [y, t5, n5, i4];
              }
              return [false, t5, n5, i4];
            }
            function ln(t5, n5, e4, i4, r3, o3, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2, m2) {
              var b2, w2, M2, S2, T2, A2, I2, k2, N2;
              switch (o3) {
                case 0:
                  i4 = n5.Akt - n5.Ikt * ((n5.Tkt - n5.Akt) / (n5.xkt - n5.Ikt));
                  break;
                case 1:
                  if (i4 = (n5.Akt + n5.Tkt) / 2, b2 = t5 ? a2(i4, c2, r3, s2) : a2(h2, d2, s2, i4, l2, v2, p2, g2, m2) - c2, f(b2)) {
                    if (r3 = b2[1], !b2[0]) return [y, n5, e4, i4, r3, o3];
                  } else r3 = b2;
                  if (0 === r3) return [true, n5 = Lt(i4, r3, n5)[1], e4, i4, r3, o3];
                  if (0 === (w2 = x(r3 * r3 - n5.Ikt * n5.xkt))) return [y, n5, e4, i4, r3, o3];
                  i4 += (i4 - n5.Akt) * r3 / w2;
                  break;
                case 3:
                  i4 = (n5.Akt + n5.Tkt) / 2;
                  break;
                case 2:
                  if (M2 = void 0, S2 = 0, T2 = void 0, A2 = 0, u2 > 0.1) return ln(t5, n5, e4, i4, r3, o3 = 3, a2, u2, s2, c2, l2, h2, d2, v2, p2);
                  if (I2 = e4 % 4, e4++, 0 === I2) M2 = n5.Akt, S2 = n5.Ikt;
                  else if (2 === I2) M2 = n5.Tkt, S2 = n5.xkt;
                  else if (M2 = (n5.Akt + n5.Tkt) / 2, b2 = t5 ? a2(M2, c2, S2, s2) : a2(h2, d2, s2, M2, l2, v2, p2, g2, m2) - c2, f(b2)) {
                    if (S2 = b2[1], !b2[0]) return [y, n5, e4, i4, r3, o3];
                  } else S2 = b2;
                  if (T2 = C(n5.Akt - n5.Tkt) / 1e6, n5 = (k2 = t5 ? l2(1, a2, M2, A2, T2, n5, c2, s2) : qt(0, a2, M2, A2, T2, n5, h2, d2, s2, c2, l2, v2, p2, g2, m2))[2], A2 = k2[1], !k2[0] || 0 === A2) return [y, n5, e4, i4, r3, o3];
                  if ((i4 = M2 - 1.01 * S2 / A2) < n5.Akt && i4 < n5.Tkt || i4 > n5.Akt && i4 > n5.Tkt) return [y, n5, e4, i4, r3, o3];
              }
              if (b2 = t5 ? a2(i4, c2, r3, s2) : a2(h2, d2, s2, i4, l2, v2, p2, g2, m2) - c2, f(b2)) {
                if (r3 = b2[1], !b2[0]) return [y, n5, e4, i4, r3, o3];
              } else r3 = b2;
              return (N2 = Lt(i4, r3, n5))[0] ? [true, n5, e4, i4, r3, o3] : (u2 = C(n5.Akt - n5.Tkt) / (C(n5.Akt) + C(n5.Tkt))) < n5.Bkt ? (n5.xkt < r3 && (r3 = n5.xkt, i4 = n5.Tkt), n5.Ikt < r3 && (r3 = n5.Ikt, i4 = n5.Akt), n5.Nkt = i4, [true, n5, e4, i4, r3, o3]) : [false, n5, e4, i4, r3, o3];
            }
            function hn(t5, n5, e4, i4, r3) {
              r3 = r3 ? 1 : 0;
              var o3 = M(1 + t5, n5);
              return p(-(o3 = 0 === t5 ? e4 * n5 + i4 : i4 * o3 + e4 * (1 + t5 * r3) * (o3 - 1) / t5));
            }
            function dn(t5, n5) {
              for (var e4 = 0; e4 < h(n5); e4++) n5[e4] !== b && (t5 *= 1 + n5[e4]);
              return t5;
            }
            function vn(t5, n5) {
              var e4, i4, r3, o3 = arguments, a2 = 0, u2 = 1;
              for (i4 = 1; i4 < h(o3); i4++) {
                if ((r3 = g(o3[i4], 1, true, true, false, true)).isError) return r3[0];
                for (e4 = 0; e4 < h(r3); e4++) r3[e4] !== b && (a2 += r3[e4] / M(1 + t5, u2), u2++);
              }
              return a2;
            }
            function pn(t5, n5, e4, i4, r3) {
              if (r3 = r3 ? 1 : 0, 0 === t5) return p(-(e4 * n5 + i4));
              var o3 = M(1 + t5, n5);
              return -1 === t5 ? N : p(-(i4 + e4 * (1 + t5 * r3) * (o3 - 1) / t5) / o3);
            }
            function gn(t5, n5, e4, i4, r3) {
              var o3, a2, u2;
              return B(t5, n5) >= 0 ? D : (o3 = Nt(t5, n5, r3), a2 = L(t5, r3), o3 <= 0 || a2 <= 0 || (u2 = 1 - i4 * o3 / a2) <= 0 ? D : e4 / u2);
            }
            function mn(t5, n5, e4) {
              var i4 = h(n5), r3, o3 = 0, a2;
              if (i4 !== h(e4)) return D;
              if (n5.some((function(t6) {
                return t6 === b;
              }))) return j;
              for (a2 = 0; a2 < i4; a2++) o3 += n5[a2] / M(1 + t5, (e4[a2] - e4[0]) / 365);
              return o3;
            }
            function bn(t5, n5, e4, i4, r3, o3) {
              return Vt(false, t5, n5, e4, i4, r3, o3);
            }
            function yn(t5, n5, e4, i4, r3, o3) {
              return Vt(true, t5, n5, e4, i4, r3, o3);
            }
            function wn(t5, n5, e4, i4, r3, o3) {
              return n5 >= e4 + 1 || 0 !== o3 && 1 !== o3 ? D : zt(i4, jt(t5, e4, i4, r3, o3), t5, n5 - 1);
              var a2;
            }
            function Mn(t5, n5, e4, i4) {
              return p(i4 * t5 * (n5 / e4 - 1));
            }
            function Cn(t5, n5, e4, i4, r3) {
              r3 = r3 ? 1 : 0;
              var o3 = M(1 + t5, n5);
              return p(-(o3 = 0 === t5 ? (e4 + i4) / n5 : (e4 * o3 + i4) / ((1 + t5 * r3) * (o3 - 1) / t5)));
            }
            function Sn(t5, n5, e4, i4, r3, o3) {
              var a2, u2;
              return n5 >= e4 + 1 ? D : (a2 = jt(t5, e4, i4, r3, o3 = o3 ? 1 : 0), v(a2) || (u2 = zt(i4, a2, t5, n5 - 1), v(u2)) ? D : a2 - u2);
            }
            function Tn(t5, n5, e4, i4) {
              return Yt(_t, t5, n5, e4, i4);
            }
            function xn(t5, n5, e4, i4) {
              return Yt(Ot, t5, n5, e4, i4);
            }
            function An(t5, n5, e4, i4) {
              return Yt(Et, t5, n5, e4, i4);
            }
            function In(t5, n5, e4) {
              return kt(Dt(t5, n5, e4, true));
            }
            function kn(t5, n5, e4) {
              return Yt(In, t5, n5, e4);
            }
            function Nn(t5, n5, e4) {
              return Yt(Rt, t5, n5, e4);
            }
            function jn(t5, n5, e4) {
              return kt(Dt(t5, n5, e4, false));
            }
            function Dn(t5, n5, e4) {
              return Yt(jn, t5, n5, e4);
            }
            function _n(t5) {
              var n5;
              return F(t5.getFullYear(), t5.getMonth()) === t5.getDate();
            }
            function On(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
              if (c(r3, [1, 2, 4]) < 0 || B(t5, n5) > 0) return D;
              for (a2 = Rt(t5, n5, r3), u2 = Ot(t5, n5, r3, o3), s2 = Dt(t5, n5, r3, false), f2 = P(s2, t5, o3), 0 === o3 && 31 === t5.getDate() && 1 === s2.getMonth() && _n(s2) && f2++, p2 = (v2 = 100 / (d2 = M(1 + i4 / r3, a2 - 1 + (h2 = (l2 = u2 - f2) / u2)))) * (a2 - 1 + h2), g2 = 0; g2 < a2; g2++) v2 += b2 = 100 * e4 / (r3 * M(1 + i4 / r3, m2 = g2 + h2)), p2 += b2 * m2;
              return p2 / v2 / r3;
            }
            function En(t5, n5, e4, i4, r3) {
              return i4 < 0 || e4 < 0 ? D : Zt(true, t5, n5, e4, i4, r3);
            }
            function Rn(t5, n5, e4, i4, r3) {
              return r3 = r3 ? 1 : 0, 0 === t5 ? 0 === n5 ? N : p(-(e4 + i4) / n5) : p(T((n5 * (1 + t5 * r3) - i4 * t5) / (e4 * t5 + n5 * (1 + t5 * r3))) / T(1 + t5));
            }
            function Ln(t5, n5, e4, i4, r3, o3, a2) {
              var u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
              if (c(o3, [1, 2, 4]) < 0 || B(t5, n5) > 0) return D;
              if ((u2 = Rt(t5, n5, o3)) <= 1) return s2 = _t(t5, n5, o3, a2), f2 = Et(t5, n5, o3, a2), (d2 = r3 / 100 + e4 / o3 - (i4 / 100 + s2 / (l2 = Ot(t5, n5, o3, a2)) * e4 / o3)) / (v2 = i4 / 100 + s2 / l2 * e4 / o3) * (h2 = o3 * l2 / f2);
              if (m2 = (b2 = on(false, Bt, m2 = { Okt: 0, Rkt: 1e3, Bkt: 1e-10, Ckt: false, Akt: 0, Ikt: 0, Skt: false, Tkt: 0, xkt: 0, Nkt: 0 }, g2 = 0.1, t5, n5, e4, i4, r3, o3, a2))[1], !(p2 = b2[0])) {
                for (g2 = 1e-10; g2 < m2.Rkt; g2 *= 2) m2 = $t(false, Bt, m2, g2, t5, n5, e4, i4, r3, o3, a2)[1];
                m2 = (b2 = en(false, false, m2, t5, n5, e4, i4, r3, o3, a2))[1], p2 = b2[0];
              }
              return p2 ? m2.Nkt : D;
            }
            function Fn(t5, n5, e4, i4, r3) {
              return B(t5, n5) >= 0 ? D : (i4 / e4 - 1) / G(t5, n5, r3);
            }
            function Bn(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2;
              return B(t5, n5) >= 0 ? D : (c2 = 1 + (a2 = G(e4, n5, o3)) * i4, c2 /= r3 / 100 + (u2 = G(e4, t5, o3)) * i4, c2--, c2 /= s2 = G(t5, n5, o3));
            }
            function Pn(t5, n5, e4, i4, r3, o3, a2) {
              function u2(t6, n6, e5, i5, r4, o4, a3) {
                var u3, s3, c2, f2, l2, h2, d2 = 1 / o4;
                if (o4 *= s3 = d2 < 3 ? 1 : d2 < 5 ? 1.5 : d2 <= 6 ? 2 : 2.5, l2 = G(n6, e5, a3), v(l2)) return 0;
                for (f2 = (t6 -= c2 = A(l2 * o4 * t6 + 0.5)) - i5, u3 = 0; u3 < r4; u3++) {
                  if ((f2 -= c2 = A(o4 * t6 + 0.5)) < 0) return 0 === (h2 = r4 - u3) || 1 === h2 ? A(0.5 * t6 + 0.5) : 0;
                  t6 -= c2;
                }
                return c2;
              }
              var s2 = 1 / o3;
              return s2 > 0 && s2 < 1 || s2 > 1 && s2 < 2 || s2 > 2 && s2 < 3 || s2 > 4 && s2 < 5 || B(n5, e4) > 0 ? D : u2(t5, n5, e4, i4, r3, o3, a2);
            }
            function Gn(t5, n5, e4, i4, r3, o3, a2) {
              function u2(t6, n6, e5, i5, r4, o4, a3) {
                var u3, s2, c2, f2, l2 = t6 * o4, h2 = t6 - i5, p2 = G(n6, e5, a3);
                return v(p2) ? 0 : (s2 = (t6 - i5 - (u3 = p2 * o4 * t6)) / l2, c2 = d((t6 - i5 - u3) / l2), f2 = 0 === r4 ? u3 : r4 <= c2 ? l2 * (s2 < 1 ? s2 : 1) : r4 === c2 + 1 ? h2 - l2 * c2 - u3 : 0);
              }
              return B(n5, e4) > 0 ? D : u2(t5, n5, e4, i4, r3, o3, a2);
            }
            function Un(t5, n5, e4, i4, r3, o3, a2, u2, s2) {
              var f2, l2, h2, d2 = 0.1;
              if (c(u2, [1, 2, 4]) < 0 || B(e4, t5) > 0 || B(t5, i4) > 0 || B(i4, n5) > 0) return D;
              if (f2 = (l2 = on(false, Pt, f2 = { Okt: 0, Rkt: 1e3, Bkt: 1e-10, Ckt: false, Akt: 0, Ikt: 0, Skt: false, Tkt: 0, xkt: 0, Nkt: 0 }, d2, t5, n5, r3, o3, a2, u2, s2, e4, i4))[1], h2 = l2[0]) {
                for (d2 = 1e-10; d2 < f2.Rkt; d2 *= 2) f2 = $t(false, Pt, f2, d2, t5, n5, r3, o3, a2, u2, s2, e4, i4)[1];
                f2 = (l2 = rn(false, f2, t5, n5, e4, i4, r3, o3, a2, u2, s2))[1], h2 = l2[0];
              }
              return h2 ? f2.Nkt : D;
            }
            function Hn(t5, n5, e4, i4, r3, o3, a2, u2) {
              return Wt(false, t5, n5, e4, i4, o3, a2, u2, r3);
            }
            function Vn(t5, n5, e4, i4, r3, o3, a2, u2) {
              return Wt(true, t5, n5, e4, i4, o3, a2, u2, r3);
            }
            function zn(t5, n5, e4) {
              var i4, r3, o3 = kt(n5) - kt(t5);
              return B(t5, n5) >= 0 || o3 > 365 ? D : 0 === (r3 = 360 - e4 * o3) ? N : r3 < 0 ? D : p((i4 = 365 * e4) / r3);
            }
            function Yn(t5, n5, e4) {
              var i4 = kt(n5) - kt(t5);
              return B(t5, n5) >= 0 || i4 > 365 ? D : (100 - e4) / e4 * (360 / i4);
            }
            function Zn(t5, n5) {
              var e4, i4, r3, o3, a2, u2 = h(t5), s2 = [], c2 = false, f2 = false, l2 = { Okt: -1, Rkt: 9999999, Bkt: 1e-10, Ckt: false, Akt: 0, Ikt: 0, Skt: false, Tkt: 0, xkt: 0, Nkt: 0 };
              for (C(n5) > 1 && (n5 = 0.1), e4 = -1, i4 = 0, r3 = 0; r3 < u2; r3++) (o3 = t5[r3]) !== b && (0 !== o3 && (i4 = s2.length + 1, -1 === e4 && (e4 = s2.length)), s2.push(o3), o3 > 0 && (c2 = true), o3 < 0 && (f2 = true));
              return s2 = s2.slice(e4, i4 + 1), !c2 || !f2 || h(s2) < 2 ? D : (l2 = (a2 = an(l2, s2, n5))[1], a2[0] ? l2.Nkt : D);
            }
            function Wn(t5, n5, e4) {
              var i4, r3, o3, a2, u2 = 0, s2 = 0, c2 = 0, f2 = 0, l2 = 0, d2 = [], v2 = h(t5);
              if (v2 < 2) return N;
              for (i4 = 0; i4 < v2; i4++) (r3 = t5[i4]) !== b && (d2.push(r3), c2++, 0 !== r3 && (r3 > 0 ? u2++ : s2++));
              if (s2 < 1 || u2 < 1) return N;
              for (o3 = 0; o3 < c2; o3++) 0 !== (a2 = d2[o3]) && (a2 > 0 ? f2 += a2 / M(1 + e4, o3) : l2 += a2 / M(1 + n5, o3));
              return 0 === l2 || 0 === f2 || e4 <= -1 ? N : M(-f2 * M(1 + e4, c2) / (l2 * (1 + e4)), 1 / (c2 - 1)) - 1;
            }
            function Qn(t5, n5, e4, i4) {
              for (var r3 = 0.5, o3 = e4 - r3, a2 = e4 + r3, u2 = 0, s2 = 0; Jt(o3, t5, s2, n5)[1] * Jt(a2, t5, s2, n5)[1] > 0 && u2 < i4; ) u2++, o3 -= r3, a2 += r3;
              return u2 >= i4 ? [0, 0] : [o3, a2];
            }
            function Kn(t5, n5, e4, i4) {
              var r3, o3, a2 = 100, u2 = i4.Bkt, s2 = i4.Skt && i4.Ckt ? [i4.Akt, i4.Tkt] : Qn(t5, n5, e4, a2), c2 = s2[0], f2 = s2[1], l2 = Jt(c2, t5, 0, n5)[1], h2 = Jt(f2, t5, 0, n5)[1], d2 = 0;
              for (r3 = 0; r3 < a2 && !(l2 * h2 > 0); r3++) if ((o3 = Jt(d2 = (c2 + f2) / 2, t5, 0, n5)[1]) * l2 < 0 ? (f2 = d2, h2 = o3) : (c2 = d2, l2 = o3), C(c2 - f2) < u2) return [true, d2];
              return [false, d2];
            }
            function Jn(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, y2 = h(t5), w2 = h(n5);
              if (y2 !== w2) return D;
              if (1 === y2) return r2.Errors.NotAvailable;
              for (s2 = y2 - 1; s2 >= 0; s2--) a2 = t5[s2] > 0 || a2, u2 = t5[s2] < 0 || u2, n5[s2] === b && (0 !== t5[s2] ? n5[s2] = 0 : (t5.splice(s2, 1), n5.splice(s2, 1)));
              if (!a2 || !u2) return D;
              for (c2 = true, f2 = t5[0], y2 = h(t5), s2 = 1; s2 < y2; s2++) c2 = c2 && n5[s2 - 1] === n5[s2], f2 += t5[1];
              if (0 === f2) return H;
              if (c2) return D;
              if (0 === (l2 = t5[0])) return 0 === e4 ? V : H;
              for (d2 = 0, s2 = 1; s2 < y2; s2++) kt(n5[s2]) < kt(n5[d2]) && (d2 = s2);
              return 0 !== d2 && (i4 = [n5[d2], n5[0]], n5[0] = i4[0], n5[d2] = i4[1], o3 = [t5[d2], t5[0]], t5[0] = o3[0], t5[d2] = o3[1]), v2 = (p2 = on(true, qt, v2 = { Okt: -1, Rkt: 1e10, Bkt: 1e-10, Ckt: false, Akt: 0, Ikt: 0, Skt: false, Tkt: 0, xkt: 0, Nkt: 0 }, e4, t5, n5))[1], p2[0] ? (g2 = v2.Nkt, Math.abs(g2) < v2.Bkt ? H : g2) : (m2 = Kn(t5, n5, e4, v2))[0] ? m2[1] : D;
            }
            function Xn(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2, l2;
              if (r3 = r3 ? 1 : 0, a2 = M(17976931348623157e282, 1 / t5), s2 = (c2 = cn(u2 = { Bkt: 1e-10, Ckt: false, Akt: 0, Ikt: 0, Skt: false, Tkt: 0, xkt: 0, Nkt: 0, Okt: I(-1e10, 1 - a2), Rkt: k(1e10, a2 - 1) }, s2 = { Dkt: t5, _kt: n5, _pv: e4, _fv: i4, _type: r3 }, o3))[2], u2 = c2[1], !(f2 = c2[0])) {
                for (l2 = 2; (!u2.Skt || !u2.Ckt) && l2 < 100; l2 *= 2) s2 = (c2 = nn(u2, o3 * l2, s2))[2], s2 = (c2 = nn(u2 = c2[1], o3 / l2, s2))[2], u2 = c2[1];
                u2 = (c2 = en(true, false, u2, s2))[1], f2 = c2[0];
              }
              return f2 ? u2.Nkt : D;
            }
            function qn(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2 = r3 / e4;
              return s2 >= 1 ? (s2 = 1, a2 = 1 === i4 ? t5 : 0) : a2 = t5 * M(1 - s2, i4 - 1), (o3 = a2 - ((u2 = t5 * M(1 - s2, i4)) < n5 ? n5 : u2)) < 0 ? 0 : o3;
            }
            function $n(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2 = 0, f2 = 0, l2 = S(r3), h2 = l2, d2 = t5 - n5, v2 = false;
              for (s2 = 1; s2 <= h2; s2++) v2 ? u2 = f2 : (f2 = d2 / (i4 - (s2 - 1))) > (a2 = qn(t5, n5, e4, s2, o3)) ? (u2 = f2, v2 = true) : (u2 = a2, d2 -= a2), s2 === h2 && (u2 *= r3 + 1 - l2), c2 += u2;
              return c2;
            }
            function te(t5, n5, e4, i4, r3, o3, a2) {
              var u2, s2, c2, f2, l2 = A(i4), h2 = l2, d2 = S(r3), v2 = d2, p2 = 0;
              if (a2) for (u2 = h2 + 1; u2 <= v2; u2++) s2 = qn(t5, n5, e4, u2, o3), u2 === h2 + 1 ? s2 *= k(r3, l2 + 1) - i4 : u2 === v2 && (s2 *= r3 + 1 - d2), p2 += s2;
              else c2 = e4, f2 = void 0, i4 !== A(i4) && o3 > 1 && i4 >= e4 / 2 && (f2 = i4 - e4 / 2, i4 = e4 / 2, r3 -= f2, c2 += 1), t5 -= $n(t5, n5, e4, c2, i4, o3), p2 = $n(t5, n5, e4, e4 - i4, r3 - i4, o3);
              return p2;
            }
            function ne(t5, n5, e4, i4, r3, o3, a2) {
              return r3 < i4 || e4 < i4 || e4 < r3 ? D : t5 < n5 && 0 === i4 && 1 === r3 ? t5 - n5 : te(t5, n5, e4, i4, r3, o3, a2);
            }
            function ee(t5, n5, e4, i4, r3, o3, a2) {
              var u2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2;
              if (c(o3, [1, 2, 4]) < 0 || B(t5, e4) >= 0) return D;
              if (1 === o3 || 0 === a2 || 4 === a2) return ie(t5, n5, e4, i4, r3, o3, a2);
              for (u2 = t5.getFullYear(), s2 = t5.getMonth(), f2 = t5.getDate(), l2 = e4.getFullYear(), h2 = e4.getMonth(), d2 = e4.getDate(), v2 = n5.getMonth(), p2 = n5.getDate(), g2 = [], m2 = [], b2 = [], y2 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], w2 = 0; w2 < o3; w2++) g2[w2] = (v2 + 12 * w2 / o3) % 12, m2[w2] = p2 <= y2[g2[w2]] ? p2 : y2[g2[w2]], 2 === a2 ? b2[w2] = 360 / o3 : 3 === a2 && (b2[w2] = 365 / o3);
              for (w2 = 0; w2 < o3; w2++) C2 = g2[M2 = w2 === o3 - 1 ? 0 : w2 + 1] > g2[w2] ? 2001 : 2002, b2[w2] = kt(new Date(C2, g2[M2], m2[M2])) - kt(new Date(2001, g2[w2], m2[w2]));
              for (S2 = 0, T2 = kt(e4); u2 < l2 || u2 === l2 && s2 < h2 || u2 === l2 && s2 === h2 && f2 < d2; ) {
                for (w2 = 0; w2 < o3 && (s2 < g2[w2] || s2 === g2[w2] && f2 < m2[w2]) && (0 === w2 || g2[w2] > g2[w2 - 1]); ) w2++;
                for (; w2 < o3 && (s2 > g2[w2] || s2 === g2[w2] && f2 >= m2[w2]) && (s2 !== g2[++w2 - 1] || f2 !== m2[w2 - 1]); ) ;
                M2 = --w2 === o3 - 1 ? 0 : w2 + 1, C2 = s2 + 12 / o3 >= 12 ? u2 + 1 : u2, x2 = kt(new Date(u2, s2, f2)), S2 += r3 * i4 / o3 * ((A2 = Math.min(kt(new Date(C2, g2[M2], m2[M2])), T2)) - x2) / b2[w2], u2 = C2, s2 = g2[M2], f2 = m2[M2];
              }
              return S2;
            }
            function ie(t5, n5, e4, i4, r3, o3, a2) {
              var u2 = Nt(t5, e4, a2), s2 = L(t5, a2);
              return u2 < 0 || s2 <= 0 ? D : r3 * i4 * (u2 / s2);
            }
            function re(t5, n5, e4, i4, r3) {
              if (B(t5, n5) > 0) return D;
              var o3 = Nt(t5, n5, r3), a2 = L(t5, r3);
              return o3 < 0 || a2 <= 0 ? D : i4 * e4 * o3 / a2;
            }
            function oe(t5, n5, e4, i4, r3) {
              if (B(t5, n5) >= 0) return D;
              var o3 = L(t5, r3), a2 = Nt(t5, n5, r3);
              return a2 <= 0 || o3 <= 0 ? D : (i4 - e4) / i4 * (o3 / a2);
            }
            function ae(t5, n5) {
              return M(1 + t5 / n5, n5) - 1;
            }
            function ue(t5, n5, e4, i4, r3) {
              if (B(t5, n5) >= 0) return D;
              var o3 = Nt(t5, n5, r3), a2 = L(t5, r3);
              return o3 <= 0 || a2 <= 0 ? D : (i4 - e4) / e4 * (a2 / o3);
            }
            function se(t5, n5) {
              return n5 * (M(1 + t5, 1 / n5) - 1);
            }
            function ce(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2 = e4 + (r3 < 12 ? 1 : 0);
              if (c2 < i4) return D;
              if (0 === t5) return 0;
              for (o3 = E(1 - M(n5 / t5, 1 / e4), 3), a2 = 0, u2 = 0, s2 = 1; s2 <= i4; s2++) a2 += u2 = 1 === s2 ? t5 * o3 * r3 / 12 : s2 === e4 + 1 ? (t5 - a2) * o3 * (12 - r3) / 12 : (t5 - a2) * o3;
              return u2;
            }
            function fe(t5, n5, e4, i4, r3) {
              var o3, a2 = 0, u2 = 0;
              if (e4 < i4) return D;
              if (t5 <= n5) return 0;
              for (o3 = 1; o3 <= i4; o3++) a2 += u2 = k(u2 = r3 / e4 * (t5 - a2), t5 - a2 - n5);
              return u2;
            }
            function le(t5, n5, e4) {
              return (t5 - n5) / e4;
            }
            function he(t5, n5, e4, i4) {
              return i4 > e4 ? D : (t5 - n5) * (e4 - i4 + 1) * 2 / (e4 * (e4 + 1));
            }
            function de(t5, n5) {
              return n5 < 1 ? N : Qt(true, t5, n5);
            }
            function ve(t5, n5) {
              return 0 === n5 ? N : Qt(false, t5, n5);
            }
            function pe(t5, n5, e4, i4, r3, o3, a2) {
              return c(o3, [1, 2, 4]) < 0 || B(t5, n5) > 0 ? D : Bt(t5, n5, e4, i4, r3, o3, a2);
            }
            function ge(t5, n5, e4, i4, r3) {
              if (B(t5, n5) >= 0) return D;
              var o3 = Nt(t5, n5, r3), a2 = L(t5, r3);
              return o3 <= 0 || a2 <= 0 ? D : i4 - e4 * i4 * o3 / a2;
            }
            function me(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2;
              return B(t5, n5) >= 0 ? D : (a2 = Nt(t5, n5, o3), u2 = Nt(e4, n5, o3), s2 = Nt(e4, t5, o3), c2 = L(t5, o3), s2 <= 0 || c2 <= 0 || a2 <= 0 || u2 <= 0 || 0 === (f2 = 1 + a2 / c2 * r3) ? D : (100 + u2 / c2 * i4 * 100) / f2 - s2 / c2 * i4 * 100);
            }
            function be(t5, n5, e4, i4, r3, o3, a2, u2, s2) {
              return c(u2, [1, 2, 4]) < 0 || B(e4, t5) > 0 || B(t5, i4) > 0 || B(i4, n5) > 0 ? D : Pt(t5, n5, r3, o3, a2, u2, s2, e4, i4);
            }
            function ye(t5, n5, e4) {
              var i4 = kt(n5) - kt(t5);
              return B(t5, n5) >= 0 || i4 > 365 ? D : 100 * (1 - e4 * i4 / 360);
            }
            function we(t5) {
              var n5 = Gt(t5, 2);
              return n5 >= 0 ? n5 : D;
            }
            function Me(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2;
              function f2(t6) {
                var n6 = t6.substr(0, 3), e5 = ["BEF", "LUF", "ESP", "ITL", "PTE", "GRD", "LUX"];
                return c(n6, e5) >= 0 ? 0 : 2;
              }
              function l2(t6) {
                var n6 = t6.substr(0, 3), e5 = ["BEF", "LUF", "ESP", "ITL", "LUX"];
                return c(n6, e5) >= 0 ? 0 : 2;
              }
              return o3 = 0, i4 || (o3 = l2(e4)), r3.ekt || (r3.y4 = f2(n5)), u2 = Gt(n5, r3.y4), s2 = Gt(e4, r3.y4), u2 >= 0 && s2 >= 0 ? (a2 = t5 * s2 / u2, i4 || (a2 = E(a2, o3)), a2) : j;
            }
            function Ce(t5, n5, e4, i4) {
              var r3, o3, a2;
              return "" === t5 && "" === n5 && "" === e4 ? j : (t5 = U(t5, r3 = { value: 0 }), n5 = U(n5, o3 = { value: 0 }), e4 = U(e4, a2 = { value: 0 }), true === t5 && true === n5 && true === e4 ? i4(r3, o3, a2) : j);
            }
            function Se(t5, n5, e4) {
              return Ce(t5, n5, e4, (function(t6, n6, e5) {
                var i4, r3;
                return n6.value > 0 && t6.value > 0 && e5.value > 0 ? (i4 = (Math.log(e5.value) - Math.log(n6.value)) / Math.log(1 + t6.value), (r3 = Math.abs(i4)) <= 179769e303 ? r3 >= 22250738585072014e-324 ? i4 : 0 : N) : D;
              }));
            }
            function Te(t5, n5, e4) {
              return Ce(t5, n5, e4, (function(n6, e5, i4) {
                if (e5.value > 0 && n6.value > 0 && i4.value >= 0) {
                  t5 = Math.pow(i4.value / e5.value, 1 / n6.value) - 1;
                  var r3 = Math.abs(t5);
                  if (r3 <= 179769e303) return r3 >= 22250738585072014e-324 ? t5 : 0;
                }
                return D;
              }));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.lt.tv, a = isFinite, u = parseInt, s = i3.Common.lt, c = s.Rh, f = s.Nh, l = s.ht, h = i3.Common.Uf.tR, d = r2.Convert.z6t, v = r2.Convert.BJ, p = r2.Convert.L6t, g = r2.Convert.iV, m = r2.Convert.uJ, b = r2.Convert.CalcConvertedError, y = null, w = void 0, M = Math.pow, C = Math.abs, S = Math.ceil, T = Math.log, x = Math.sqrt, A = Math.floor, I = Math.max, k = Math.min, N = r2.Errors.DivideByZero, j = r2.Errors.Value, D = r2.Errors.Number, _ = r2.Functions.F6t, O = r2.Functions.MathHelper, E = O.Lkt, R = r2.Functions.B6t, L = r2.Functions.Fkt, F = r2.Functions.Pkt, B = r2.Functions.Gkt, P = r2.Functions.Ukt, G = r2.Functions.Hkt, U = r2.Convert.sJ, H = 298023223876953e-23, V = 488281e-14, W = { J6t: 0, pkt: "< 1" }, Q = { J6t: 0, pkt: "< 0" }, K = { bkt: 0.1, J6t: 0 }, J = { bkt: 2, J6t: 0 }, X = { J6t: 0, pkt: "= 0", zkt: N }, q = { bkt: 1e3, J6t: 0, pkt: "<= 0" }, tt = { J6t: 5 }, nt = { bkt: false, J6t: 7 }, ot = { bkt: 0, J6t: 2 }, st = { J6t: 2, pkt: "= 0", zkt: N }, ft = { J6t: 4, X6t: 1, Vkt: true, Ykt: true }, lt = { J6t: 4, X6t: 1, Vkt: true, Zkt: true, Ykt: true }, ht = { J6t: 4, X6t: 4, Vkt: true, Ykt: true, Zkt: true, breakOnConvertError: true }, dt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, breakOnConvertError: true }, vt = { J6t: 4, X6t: 11, Vkt: true, Ykt: true, breakOnConvertError: true }, pt = [$ = { J6t: 6 }, $, et = { J6t: 2 }, at = { bkt: 0, J6t: 2, pkt: ["< 0", "> 4"] }], gt = [$, $, z = { J6t: 0 }, z, et, at], mt = [$, $, Z = { J6t: 0, pkt: "<= 0" }], bt = [z, $, $, z, et, Z, ut = { bkt: 0, J6t: 2, pkt: ["< 0", "> 4", "= 2"] }], wt = [$, $, Z, Z, at], Mt = [Z, it = { J6t: 2, pkt: "<= 0" }, Z, rt = { J6t: 2, pkt: "< 1" }, et, et], Ct = [Z, rt], St = [z, ct = { J6t: 2, pkt: "< 0" }], _("FV", hn, 3, 5, yt = [z, z, z, Y = { bkt: 0, J6t: 0 }, Y], w, w, { wkt: [3, 4] }), _("FVSCHEDULE", dn, 2, 2, [z, ft], 1, 1), _("NPV", vn, 2, w, z, "> 0", "> 0"), _("PV", pn, 3, 5, yt, w, w, { wkt: [3, 4] }), _("RECEIVED", gn, 4, 5, wt, w, w, { wkt: 3 }), _("XNPV", mn, 3, 3, [z, dt, dt], "!= 0", "!= 0"), _("CUMIPMT", bn, 6, 6, Mt), _("CUMPRINC", yn, 6, 6, Mt), _("IPMT", wn, 4, 6, [z, W, W, z, Y, ot], w, w, { wkt: [4, 5] }), _("ISPMT", Mn, 4, 4, [z, et, st, z]), _("PMT", Cn, 3, 5, [z, { J6t: 0, pkt: "= 0", zkt: N }, z, Y, Y], w, w, { wkt: [3, 4] }), _("PPMT", Sn, 4, 6, [z, W, z, z, Y, Y], w, w, { wkt: [4, 5] }), _("COUPDAYBS", Tn, 3, 4, pt, w, w, { wkt: 3 }), _("COUPDAYS", xn, 3, 4, pt, w, w, { wkt: 3 }), _("COUPDAYSNC", An, 3, 4, pt, w, w, { wkt: 3 }), _("COUPNCD", kn, 3, 4, pt, w, w, { wkt: 3 }), _("COUPNUM", Nn, 3, 4, pt, w, w, { wkt: 3 }), _("COUPPCD", Dn, 3, 4, pt, w, w, { wkt: 3 }), _("DURATION", On, 5, 6, gt, w, w, { wkt: 5 }), _("MDURATION", En, 5, 6, gt, w, w, { wkt: 5 }), _("NPER", Rn, 3, 5, [{ J6t: 0, pkt: "<= -1" }, z, z, Y, Y], w, w, { wkt: [3, 4] }), _("YIELD", Ln, 6, 7, [$, $, Q, Z, Z, et, at], w, w, { wkt: 6 }), _("YIELDDISC", Fn, 4, 5, [$, $, Z, Z, at], w, w, { wkt: 3 }), _("YIELDMAT", Bn, 5, 6, [$, $, $, Q, Z, at], w, w, { wkt: 5 }), _("AMORDEGRC", Pn, 6, 7, bt, w, w, { wkt: 6 }), _("AMORLINC", Gn, 6, 7, bt, w, w, { wkt: 6 }), _("ODDFYIELD", Un, 8, 9, [$, $, $, $, Q, Z, Z, et, at], w, w, { wkt: 8 }), _("ODDLYIELD", Hn, 7, 8, [$, $, $, Q, Z, Z, z, at], w, w, { wkt: 7 }), _("ODDLPRICE", Vn, 7, 8, [$, $, $, Q, Q, Z, et, at], w, w, { wkt: 7 }), _("TBILLEQ", zn, 3, 3, mt), _("TBILLYIELD", Yn, 3, 3, mt), _("IRR", Zn, 1, 2, [lt, K], 0, 0, { wkt: 1 }), _("MIRR", Wn, 3, 3, [lt, z, z], 0, 0), _("XIRR", Jn, 2, 3, [vt, ht, K], "!= 2", "!= 2", { wkt: 2 }), _("RATE", Xn, 3, 6, [Z, z, z, Y, { bkt: 0, J6t: 2, pkt: "< 0", zkt: j }, K], w, w, { wkt: [3, 4, 5] }), _("VDB", ne, 5, 7, [Q, Q, ct, Q, Q, J, nt], w, w, { wkt: [5, 6] }), _("ACCRINT", ee, 6, 8, [$, $, $, Z, q, et, at], w, w, { wkt: [4, 6, 7] }), _("ACCRINTM", re, 3, 5, [$, $, Z, q, at], w, w, { wkt: [3, 4] }), _("DISC", oe, 4, 5, [$, $, Z, Z, at], w, w, { wkt: 3 }), _("EFFECT", ae, 2, 2, Ct), _("INTRATE", ue, 4, 5, wt, w, w, { wkt: 3 }), _("NOMINAL", se, 2, 2, Ct), _("DB", ce, 4, 5, [Q, z, rt, rt, { bkt: 12, J6t: 2, pkt: ["< 1", "> 12"] }], w, w, { wkt: 3 }), _("DDB", fe, 4, 5, [Q, z, it, it, { bkt: 2, J6t: 0, pkt: "<= 0" }], w, w, { wkt: 3 }), _("SLN", le, 3, 3, [z, z, X]), _("SYD", he, 4, 4, [z, Q, rt, it]), _("DOLLARDE", de, 2, 2, St), _("DOLLARFR", ve, 2, 2, St), _("PRICE", pe, 6, 7, [$, $, Q, Q, Z, et, at], w, w, { wkt: 6 }), _("PRICEDISC", ge, 4, 5, wt, w, w, { wkt: 3 }), _("PRICEMAT", me, 5, 6, [$, $, $, Q, Q, at], w, w, { wkt: 5 }), _("ODDFPRICE", be, 8, 9, [$, $, $, $, Q, Q, Z, et, at], w, w, { wkt: 8 }), _("TBILLPRICE", ye, 3, 3, [$, $, Z]), _("EURO", we, 1, 1, tt), _("EUROCONVERT", Me, 3, 5, [z, tt, tt, nt, { ykt: true, J6t: 2, bkt: 3, pkt: "< 3", zkt: j }], w, w, { wkt: [3, 4] }), _("PDURATION", Se, 3, 3), _("RRI", Te, 3, 3);
          }, "./src/functions-lookup.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at = this && this.qKr || (ut = function(t5, n5) {
              return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, ut(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              ut(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), ut;
            function st(t5, n5, e4) {
              return t5 && 1 === n5 && 1 === e4 && null === t5[0][0];
            }
            function ct(t5) {
              return C(t5) || S(t5) || Array.isArray(t5);
            }
            function ft(t5, n5, e4) {
              var i4, r3;
              return h(t5) ? o2 : t5.isArray || t5.isReference ? (n5 > (i4 = t5.colCount) && (r3 = n5, n5 = e4, e4 = r3), t5[e4 * i4 + n5]) : t5[0];
            }
            function lt(t5, n5, e4, i4) {
              return !(!e4 || null !== t5 && null !== n5) || !h(n5) && (!!((h(t5) || w(t5, true)) && w(n5, true) || O(t5) && O(n5) || i4 && (E(t5) && w(n5) || E(n5) && w(t5))) || !(!E(t5) || !E(n5)));
            }
            function ht(t5, n5, e4, i4, r3) {
              if (t5 < 0 || n5 < 0 || n5 < t5 || e4 < t5 || e4 > n5) return -1;
              if (r3) return G = t5, U = n5, V = e4, z = i4, Y = i4, H = e4;
              if (z) {
                if (++H > U) {
                  if (z !== Y) return -1;
                  H = V - 1, z = false;
                }
              } else if (--H < G) {
                if (z !== Y) return -1;
                H = V + 1, z = true;
              }
              return H;
            }
            function dt(t5, n5, e4) {
              var i4 = l(t5), r3 = e4;
              return i4 === n5 ? r3 = 0 : i4 > n5 ? r3 = 1 : i4 < n5 && (r3 = 2), r3;
            }
            function vt(t5, n5, e4) {
              var i4, o3, a2;
              return t5 === n5 ? 0 : E(t5) ? n5 || 0 !== v(t5) ? w(n5) && !w(t5) ? 1 : O(n5) ? 2 : E(n5) ? ((i4 = (0, r2.Wkt)(t5, n5, e4)) < 0 ? i4 = 2 : i4 > 0 && (i4 = 1), i4) : n5 instanceof Date ? dt(t5, n5, 1) : -1 : 0 : E(n5) ? t5 || 0 !== v(n5) ? w(t5) ? 2 : O(t5) ? 1 : t5 instanceof Date ? dt(t5, n5, 2) : -1 : 0 : O(t5) && w(n5) ? 1 : O(n5) && w(t5) ? 2 : (o3 = M(t5), a2 = M(n5), (o3 = F(o3, 15)) === (a2 = F(a2, 15)) ? 0 : o3 < a2 ? 2 : 1);
            }
            function pt(t5, n5, e4) {
              var i4 = ft(t5, n5, e4);
              return h(i4) ? 0 : i4;
            }
            function gt(t5, n5, e4, i4) {
              var r3, a2, u2, s2, c2 = -1, f2 = 0, l2 = -1, h2 = -1, d2 = i4 ? n5.rowCount : n5.colCount;
              if (--d2 < f2) return -1;
              for (; f2 <= d2; ) {
                for (r3 = o2, a2 = void 0, u2 = t5[0], e4 >= 1 != (2 === c2) && (l2 = h2), a2 = h2 = ht(f2, d2, h2 = b((f2 + d2) / 2), e4 >= 0, true); !lt(u2, r3) && -1 !== h2 && !lt(u2, r3 = i4 ? ft(n5, 0, h2) : ft(n5, h2, 0)); ) h2 = ht(0, 0, 0, false, false), e4 >= 0 && h2 < a2 ? d2 = h2 : e4 < 0 && h2 > a2 && (f2 = h2);
                if (-1 === h2 && e4 >= 1 != (2 === c2)) return l2;
                if (-1 === h2) return -1;
                if (c2 = vt(u2, r3, false), e4 >= 1 && 1 === c2) f2 = h2 + 1;
                else if (e4 >= 1 && 2 === c2) d2 = h2 - 1;
                else if (e4 <= -1 && 1 === c2) d2 = h2 - 1;
                else if (e4 <= -1 && 2 === c2) f2 = h2 + 1;
                else if (0 === c2) {
                  for (; e4 <= -1 && h2 > f2 || e4 >= 0 && h2 < d2; ) {
                    if (s2 = 0, s2 = e4 >= 0 ? h2 + 1 : h2 - 1, null === (r3 = i4 ? pt(n5, 0, s2) : pt(n5, s2, 0))) return -1;
                    if (!lt(u2, r3)) break;
                    if (0 !== (c2 = vt(u2, r3, false))) break;
                    h2 = s2;
                  }
                  return h2;
                }
              }
              return e4 >= 1 != (2 === c2) ? h2 : l2;
            }
            function mt(t5, n5, e4) {
              var i4, a2, s2, c2, l2, d2, v2, p2, m2, b2, y2 = n5, w2 = t5[0], M2 = E(w2);
              if (w2 === o2 && (w2 = 0), a2 = y2["_mc" + (i4 = e4 ? M2 ? "0" : "1" : M2 ? "2" : "3")] = y2["_mc" + i4] || (0, r2.createMap)(), M2 && (w2 = r2.fKr.apply(w2)), s2 = a2.get(w2), !h(s2)) return s2;
              if (s2 = -1, c2 = e4 ? y2.rowCount : y2.colCount, l2 = e4 ? y2.colCount : 1, d2 = u.tbt(w2)) {
                if (v2 = u.OJ(d2), r2.fKr === String.prototype.toLowerCase) {
                  for (p2 = 0; p2 < c2; p2++) if (v2.lastIndex = 0, E(y2[p2 * l2]) && v2.test(y2[p2 * l2])) {
                    s2 = p2;
                    break;
                  }
                } else for (p2 = 0; p2 < c2; p2++) if (v2.lastIndex = 0, E(y2[p2 * l2]) && v2.test(r2.fKr.apply(y2[p2 * l2]))) {
                  s2 = p2;
                  break;
                }
              } else if (M2) if (0 === a2.size) {
                for (p2 = 0; p2 < c2; p2++) if ((m2 = y2[p2 * l2]) === w2 || m2 && m2.toLowerCase && r2.fKr.apply(m2) === w2) {
                  s2 = p2;
                  break;
                }
              } else {
                for (p2 = a2.lp || 0; p2 < c2; p2++) {
                  if ((m2 = (m2 = y2[p2 * l2]) && m2.toLowerCase && r2.fKr.apply(m2)) === w2) {
                    s2 = p2;
                    break;
                  }
                  a2.has(m2) || a2.set(m2, p2);
                }
                a2.lp = p2;
              }
              else if (w2 instanceof Date && (w2 = g(w2)), r2.ExcelCompatibleCalcMode) {
                for (p2 = 0; p2 < c2; p2++) if ((m2 = y2[p2 * l2]) instanceof Date && (m2 = g(m2)), m2 === w2) {
                  s2 = p2;
                  break;
                }
              } else for (b2 = f(w2, 15), p2 = 0; p2 < c2; p2++) if ((m2 = y2[p2 * l2]) instanceof Date && (m2 = g(m2)), m2 === w2 || f(m2, 15) === b2) {
                s2 = p2;
                break;
              }
              return a2.set(w2, s2), s2;
            }
            function bt(t5, n5, e4, i4, r3, a2, s2, c2) {
              var f2, l2, h2, d2, v2, p2, g2 = o2, m2 = -1, b2 = t5[0], y2 = E(b2), w2 = !c2 && u.tbt(b2), M2 = i4 ? n5.rowCount : n5.colCount;
              for (y2 && w2 && (h2 = u.OJ(w2)), l2 = 0; l2 < M2; l2++) if (v2 = r3 ? M2 - 1 - l2 : l2, lt(b2, d2 = i4 ? ft(n5, 0, v2) : ft(n5, v2, 0), a2, s2)) {
                if (p2 = E(d2), y2 && p2 && w2 ? (h2.lastIndex = 0, f2 = h2.test(d2) ? 0 : 1) : f2 = vt(b2, d2, false), e4 >= 1 && 1 === f2) f2 = -1, m2 >= 0 && (f2 = vt(d2, g2, false)), (m2 < 0 || m2 >= 0 && 1 === f2) && (m2 = v2, g2 = d2);
                else if (e4 <= -1 && 2 === f2) f2 = -1, m2 >= 0 && (f2 = vt(d2, g2, false)), (m2 < 0 || m2 >= 0 && 2 === f2) && (m2 = v2, g2 = d2);
                else if (0 === f2) return v2;
              }
              return m2;
            }
            function yt(t5, n5) {
              var e4, i4, r3, o3, a2;
              if (!n5) {
                for (e4 = v(t5), i4 = void 0, r3 = void 0, i4 = 0; i4 < e4 - 1; i4++) if (!h(t5[i4])) {
                  r3 = t5[i4];
                  break;
                }
                for (i4++; i4 < e4; i4++) if (!h(t5[i4])) {
                  if (2 === (a2 = vt(r3, o3 = t5[i4], false))) return false;
                  r3 = o3;
                }
              }
              return true;
            }
            function wt(t5, n5, e4) {
              var i4, o3, u2, s2, c2, f2, l2, h2, d2;
              if (!t5) return x;
              if (i4 = n5 !== a, o3 = t5.row + (t5.arrayFormulaMode && t5.arrayIdentity && t5.rowOffset || 0), u2 = t5.column + (t5.arrayFormulaMode && t5.arrayIdentity && t5.columnOffset || 0), t5.source.getBaseRowCol && (s2 = t5.source.getBaseRowCol()) && (o3 = s2.row, u2 = s2.col), !(n5 = i4 ? n5 : t5.getReference(t5.source, (0, r2.createRange)(o3, u2, t5.rowCount, t5.columnCount))) || 1 !== n5.getRangeCount()) return x;
              if (l2 = [], e4) {
                if (h2 = n5.getRow(0) + 1, (f2 = n5.getRowCount(0)) > 1) {
                  for (c2 = 0; c2 < f2; c2++) l2.push([h2 + c2]);
                  return new r2.CalcArray(l2);
                }
                return h2;
              }
              if (d2 = n5.getColumn(0) + 1, (f2 = n5.getColumnCount(0)) > 1) {
                for (c2 = 0; c2 < f2; c2++) l2.push(d2 + c2);
                return new r2.CalcArray([l2]);
              }
              return d2;
            }
            function Mt(t5, n5, e4, i4, o3, u2) {
              var s2, c2, l2, h2, d2, v2, p2, g2;
              return F = r2.ExcelCompatibleCalcMode ? L : f, t5 && e4 instanceof r2.CalcReference ? (d2 = t5.source && t5.source.Lbt.dynamicReferences, l2 = e4.getRowCount(0), h2 = e4.getColumnCount(0), c2 = e4.create([{ row: e4.getRow(0), col: e4.getColumn(0), rowCount: u2 ? l2 : 1, colCount: u2 ? 1 : h2 }]), d2 && Pt(t5, e4, c2.getRow(0), c2.getColumn(0), c2.getRowCount(0), c2.getColumnCount(0), u2 && e4.$gt[0].rowUndefine, !u2 && e4.$gt[0].colUndefine)) : (e4 instanceof r2.CalcArray ? (l2 = e4.getRowCount(), h2 = e4.getColumnCount()) : Array.isArray(e4) && (l2 = e4.rowCount, h2 = e4.colCount), c2 = e4), u2 && i4 > h2 || !u2 && i4 > l2 ? A : (c2.Zbt = true, (s2 = r2.Convert.iV(c2, 0, true, false, false)).isError || s2.isConvertError ? A : (v2 = o3 || o3 === a ? gt(n5, s2, 1, u2) : mt(n5, s2, u2)) >= 0 ? t5 && e4 instanceof r2.CalcReference ? (p2 = u2 ? v2 : i4 - 1, g2 = u2 ? i4 - 1 : v2, d2 && Pt(t5, e4, e4.getRow(0) + p2, e4.getColumn(0) + g2, 1, 1), e4.getValue(0, p2, g2)) : u2 ? pt(s2, i4 - 1, v2) : pt(s2, v2, i4 - 1) : k);
            }
            function Ct(t5, n5) {
              return wt(t5, n5, true);
            }
            function St(t5, n5) {
              return wt(t5, n5, false);
            }
            function Tt(t5) {
              return ct(t5) ? r2.CalcArrayHelper.getRowCount(t5) : 1;
            }
            function xt(t5) {
              return ct(t5) ? r2.CalcArrayHelper.getColumnCount(t5) : 1;
            }
            function At(t5) {
              var n5, e4 = t5;
              return C(e4) && (e4 = new r2.CalcArray(r2.Convert.iV(e4, 0, false, false, false))), S(e4) ? (n5 = [], e4.forEachItem((function(t6, e5, i4) {
                n5[i4] = n5[i4] || [], n5[i4][e5] = t6;
              })), new r2.CalcArray(n5)) : e4;
            }
            function It(t5, n5, e4, i4, r3) {
              return Mt(t5, n5, e4, i4, r3, false);
            }
            function kt(t5, n5, e4, i4, r3) {
              return Mt(t5, n5, e4, i4, r3, true);
            }
            function Nt(t5, n5, e4, i4, o3, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = n5.rowCount, w2 = n5.colCount, M2 = (null === (u2 = n5.kbt) || void 0 === u2 ? void 0 : u2.getRowCount()) || y2, C2 = (null === (s2 = n5.kbt) || void 0 === s2 ? void 0 : s2.getColumnCount()) || w2, S2 = 1 === M2 && 1 === C2, T2 = e4.getRowCount(), A2 = e4.getColumnCount(), I2 = 1 === M2 && C2 >= 1, N2 = 1 === T2 && A2 >= 1;
              if (S2) {
                if (T2 > 1 && A2 > 1) return x;
              } else if (I2 && C2 !== A2 || !I2 && M2 !== T2) return x;
              if ((c2 = Ot(t5, n5, o3, a2)) === k) return null != i4 ? i4 : k;
              if (c2 === x) return x;
              if (c2 > 0) {
                if (S2) return e4;
                if (c2 -= 1, f2 = [], r2.Convert.Nh(e4)) {
                  if (I2) for (l2 = 0; l2 < T2; l2++) h2 = e4.getValue(0, c2), f2.push([h2]);
                  else d2 = N2 ? [e4.getValue(0, c2)] : [e4.getValue(c2, 0)], f2.push(d2);
                  return new r2.CalcArray(f2);
                }
                if (e4 instanceof r2.CalcReference) return p2 = (v2 = e4).getRow(), g2 = v2.getColumn(), m2 = T2, b2 = A2, I2 ? (g2 = v2.getColumn() + c2, b2 = 1) : (p2 = v2.getRow() + c2, m2 = 1), v2.create([{ row: p2, col: g2, rowCount: m2, colCount: b2 }]);
              }
            }
            function jt(t5, n5, e4) {
              var i4, o3, u2, s2, c2, l2, d2, v2 = [];
              if (F = r2.ExcelCompatibleCalcMode ? L : f, n5) for (i4 = 0; i4 < n5.length; i4++) v2.push(n5[i4]);
              if (n5.colCount <= n5.rowCount ? (v2.colCount = n5.colCount, v2.rowCount = Math.ceil(v2.length / v2.colCount)) : (v2.rowCount = n5.rowCount, v2.colCount = Math.ceil(v2.length / v2.rowCount)), h(n5.isReference) || (v2.isReference = n5.isReference), h(n5.isArray) || (v2.isArray = n5.isArray), v2.rangeCount = n5.rangeCount, o3 = -1, s2 = v2.colCount, c2 = v2.rowCount, l2 = t5, e4 === a) return d2 = s2 > c2 ? It(a, l2, v2, c2, true) : kt(a, l2, v2, s2, true), m(d2) ? k : d2;
              if (u2 = r2.Convert.iV(e4, 0, true, false, false)) {
                if (u2.colCount > 1 && u2.rowCount > 1) return k;
              } else u2 = v2;
              return (o3 = gt(l2, v2, 1, s2 <= c2)) >= 0 ? (s2 = u2.colCount) > (c2 = u2.rowCount) ? pt(u2, o3, c2 - 1) : pt(u2, s2 - 1, o3) : k;
            }
            function Dt(t5) {
              var n5 = arguments;
              return t5 < 1 || v(n5) <= t5 ? x : h(n5[t5]) ? 0 : n5[t5];
            }
            function _t(t5, n5, e4) {
              var i4, u2, s2, c2 = t5, l2 = n5;
              return F = r2.ExcelCompatibleCalcMode ? L : f, l2.isArray || l2.isReference ? (i4 = l2.colCount, u2 = l2.rowCount, s2 = -1, i4 > 1 && u2 > 1 || 1 === e4 && !yt(l2, true) || -1 === e4 && !yt(l2, false) ? k : (e4 === a ? e4 = 1 : e4 === o2 && (e4 = 0), 1 === e4 ? s2 = gt(c2, l2, 1, u2 > 1) : 0 === e4 ? s2 = mt(c2, l2, u2 > 1) : -1 === e4 && (s2 = gt(c2, l2, -1, u2 > 1)), -1 === s2 ? k : s2 + 1)) : k;
            }
            function Ot(t5, n5, e4, i4) {
              var o3, a2, s2, c2, l2, d2, v2, p2, g2, m2, b2, y2, w2 = n5;
              if (F = r2.ExcelCompatibleCalcMode ? L : f, o3 = w2.colCount, a2 = w2.rowCount, o3 > 1 && a2 > 1) return x;
              if (2 === e4 && (2 === i4 || -2 === i4)) return x;
              if (s2 = 2 === i4 && !yt(w2, true), c2 = -2 === i4 && !yt(w2, false), s2 || c2) return k;
              if (l2 = t5, d2 = t5 && t5[0], v2 = -1, h(e4) && (e4 = 0), (h(i4) || 0 === i4) && (i4 = 1), -1 === i4 && (p2 = true), 0 !== e4 && 2 !== e4 || (g2 = 0), 1 === i4 || -1 === i4) {
                if (1 === e4) g2 = -1;
                else if (-1 === e4) {
                  if (u.jJ(d2)) return k;
                  g2 = 1;
                }
                v2 = bt(l2, w2, g2, a2 > 1, p2, true, true, 0 === e4);
              } else if (2 === i4 || -2 === i4) {
                if (1 === o3 && 1 === a2) {
                  if (!lt(d2, b2 = w2[m2 = 0])) return k;
                  if (0 === (y2 = vt(d2, b2, false))) return m2 + 1;
                  if (0 === e4) return 0 === y2 ? m2 + 1 : k;
                  if (1 === e4) return 2 === y2 ? m2 + 1 : k;
                  if (-1 === e4) return 1 === y2 ? m2 + 1 : k;
                }
                v2 = gt(l2, w2, g2 = 2 === i4 ? 1 : -1, a2 > 1);
              }
              return -1 === v2 ? k : 0 !== e4 || en(d2, w2[v2]) ? en(d2, w2[v2]) ? v2 + 1 : 2 === i4 && 1 === e4 || -2 === i4 && -1 === e4 ? v2 + 2 : v2 + 1 : k;
            }
            function Et(t5, n5, e4, i4) {
              return t5 += n5, i4 ? 0 !== e4 && (t5 += "[", t5 += e4.toString(), t5 += "]") : t5 += e4, t5;
            }
            function Rt(t5, n5, e4) {
              return e4 || (t5 += "$"), t5 += n5;
            }
            function Lt(t5, n5, e4) {
              e4 || (t5 += "$");
              for (var r3 = t5.length; n5 > 0.1; n5 = parseInt(((n5 - 1) / 26).toString(), 10)) t5 = i3.Common.zf.Eit(t5, r3, String.fromCharCode("A".charCodeAt(0) + (n5 - 1) % 26));
              return t5;
            }
            function Ft(t5, n5) {
              if (n5 && 0 < v(n5)) {
                var e4 = void 0, i4 = !(0, r2.Swt)(n5[0]) && "_" !== n5[0];
                for (e4 = 1; !i4 && e4 < v(n5); e4++) i4 = !(0, r2.Jkt)(n5[e4]) && "_" !== n5[e4];
                i4 ? (t5 += "'", t5 += n5.replace("'", "''"), t5 += "'") : t5 += n5, t5 += "!";
              }
              return t5;
            }
            function Bt(t5, n5, e4, i4, r3) {
              var o3 = 3 === e4 || 4 === e4 || 7 === e4 || 8 === e4, a2 = 2 === e4 || 4 === e4 || 6 === e4 || 8 === e4, u2 = "";
              return t5 < 1 && (i4 || !o3) || t5 > B || n5 < 1 && (i4 || !a2) || n5 > P || e4 < 1 || 8 < e4 ? x : (u2 = Ft(u2, r3), i4 ? u2 = Rt(u2 = Lt(u2, n5, a2), t5, o3) : (u2 = Et(u2, "R", t5, o3), u2 = Et(u2, "C", n5, a2)), u2);
            }
            function Pt(t5, n5, e4, i4, r3, o3, a2, u2) {
              var s2, c2, f2, l2, h2, d2, v2;
              t5 && t5.identity && !t5.TFe && (s2 = t5.Xkt, c2 = n5.getSource(), s2 && c2.getRangeKey && (f2 = e4, l2 = i4, h2 = r3, d2 = o3, a2 && (f2 = h2 = -1), u2 && (l2 = d2 = -1), v2 = c2.getRangeKey(c2, { id: c2.id, row: f2, col: l2, rowCount: h2, colCount: d2 }), s2.qkt || (s2.qkt = {}), s2.qkt[v2] = { id: c2.id, row: e4, col: i4, rowCount: r3, colCount: o3, rowUndefine: a2, colUndefine: u2 }));
            }
            function Gt(t5, n5, e4, i4, u2) {
              var s2, c2, f2, l2, d2, p2, g2, m2, w2, M2, C2, S2, T2, I2, k2;
              function N2(t6) {
                return !h(t6) && !t6._error;
              }
              if (s2 = o2, f2 = (c2 = t5) !== o2 && c2.acceptsReference, l2 = c2 !== o2 && c2.arrayFormulaMode, !ct(n5)) return e4 = e4 !== a ? b(e4) : 0, i4 = i4 !== a ? b(i4) : 0, e4 < 0 || i4 < 0 ? x : e4 > 1 || i4 > 1 ? A : n5;
              if (n5 instanceof r2.CalcReference) {
                if (d2 = { value: -1 }, p2 = n5, u2 === a && (u2 = 1), (u2 = N2(u2) && y(u2, d2) ? d2.value - 1 : s2) >= p2.getRangeCount()) return A;
                if (u2 === s2 || u2 < 0) return x;
                if (g2 = p2.getRowCount(u2), m2 = p2.getColumnCount(u2), w2 = p2.getRow(u2), M2 = p2.getColumn(u2), C2 = void 0, S2 = void 0, 3 === v(arguments)) {
                  if (1 !== g2 && 1 !== m2) return A;
                  1 !== m2 ? (i4 = e4, e4 = 1) : 1 !== g2 && (i4 = 1);
                }
                if (h(e4) && (e4 = 0), -1 === (e4 = N2(e4) && y(e4, d2) ? d2.value - 1 : s2)) {
                  if (1 !== g2 && !f2 && !l2 && (w2 > c2.row || c2.row >= w2 + g2)) return x;
                } else {
                  if (e4 < -1 || e4 === s2) return x;
                  if (g2 <= e4 && !n5.$gt[0].rowUndefine) return A;
                  C2 = e4 + w2;
                }
                if (h(i4) && (i4 = 0), -1 === (i4 = N2(i4) && y(i4, d2) ? d2.value - 1 : s2)) {
                  if (1 !== m2 && !f2 && !l2 && (M2 > c2.column || c2.column >= M2 + m2)) return x;
                } else {
                  if (i4 < -1 || i4 === s2) return x;
                  if (m2 <= i4 && !n5.$gt[0].colUndefine) return A;
                  S2 = i4 + M2;
                }
                return -1 === e4 && -1 === i4 ? (C2 = w2, S2 = M2) : -1 === e4 ? (C2 = w2, m2 = 1) : -1 === i4 ? (S2 = M2, g2 = 1) : (m2 = 1, g2 = 1), (T2 = t5.source && t5.source.Lbt.dynamicReferences) && Pt(t5, p2, C2, S2, g2, m2, -1 === e4 && n5.$gt[0].rowUndefine, -1 === i4 && n5.$gt[0].colUndefine), (I2 = t5.WK) && I2.Gue && I2.Gue(C2, S2, p2.rT), p2.create([(0, r2.createRange)(C2, S2, g2, m2)]);
              }
              return r2.Convert.Nh(n5) ? (g2 = (k2 = n5).getRowCount(), e4 = e4 !== a ? b(e4) : -1, i4 = i4 !== a ? b(i4) : -1, 1 !== (u2 = u2 !== a ? b(u2) - 1 : 1) ? A : (-1 === e4 && -1 === i4 ? e4 = i4 = 0 : -1 === i4 && 1 === g2 && (i4 = e4, e4 = 1), e4 = -1 === e4 ? 0 : e4, i4 = -1 === i4 ? 0 : i4, g2 = k2.getRowCount(), m2 = k2.getColumnCount(), e4 < 0 || i4 < 0 || u2 < 0 ? x : (e4 > g2 && 1 === g2 && i4 === a && (i4 = e4, e4 = 0), g2 < e4 || m2 < i4 ? A : 0 === e4 && 0 === i4 ? k2.slice(0, 0, g2, m2) : 0 === e4 ? k2.slice(0, i4 - 1, g2, 1) : 0 === i4 ? k2.slice(e4 - 1, 0, 1, m2) : k2.getValue(e4 - 1, i4 - 1)))) : void 0;
            }
            function Ut(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
              if (void 0 === e4 && (e4 = 3), void 0 === i4 && (i4 = 3), 0 === e4 && 0 === i4) return n5;
              if (!Q[e4] || !Q[i4]) return x;
              if (n5 instanceof r2.CalcReference) return 1 < (o3 = n5).getRangeCount() ? x : (a2 = o3.getRowCount(), u2 = o3.getColumnCount(), s2 = o3.getRow(), c2 = o3.getColumn(), f2 = o3.rT || t5.source, -1 === s2 && (s2 = 0, a2 = f2.getRowCount()), -1 === c2 && (c2 = 0, u2 = f2.getColumnCount()), l2 = s2 + a2 - 1, h2 = c2 + u2 - 1, d2 = (0, r2.GYr)(e4, i4, (function(t6, n6) {
                return f2.getValue(t6, n6);
              }), s2, c2, l2, h2), (0, r2.BJ)(d2) ? d2 : o3.create([(0, r2.createRange)(d2.row, d2.col, d2.endRow - d2.row + 1, d2.endCol - d2.col + 1)]));
              if (r2.Convert.Nh(n5)) {
                if (d2 = (0, r2.GYr)(e4, i4, (function(t6, e5) {
                  return n5.getValue(t6, e5);
                }), 0, 0, n5.getRowCount() - 1, n5.getColumnCount() - 1), (0, r2.BJ)(d2)) return d2;
                for (v2 = [], p2 = d2.row; p2 <= d2.endRow; p2++) {
                  for (g2 = [], m2 = d2.col; m2 <= d2.endCol; m2++) g2.push(n5.getValue(p2, m2));
                  v2.push(g2);
                }
                return new r2.CalcArray(v2);
              }
              return n5;
            }
            function Ht(t5, n5, e4, i4, o3, u2) {
              var s2, c2, f2, l2, d2;
              return t5 ? n5 && n5 instanceof r2.CalcReference && 1 === n5.getRangeCount() ? (s2 = o3 !== a ? b(o3) : n5.getRowCount(0), c2 = u2 !== a ? b(u2) : n5.getColumnCount(0), f2 = n5.getRow(0) + e4, l2 = n5.getColumn(0) + i4, s2 < 0 && (f2 += s2 + 1, s2 = Math.abs(s2)), c2 < 0 && (l2 += c2 + 1, c2 = Math.abs(c2)), Pt(t5, n5, f2, l2, s2, c2, h(o3) && n5.$gt[0].rowUndefine, h(u2) && n5.$gt[0].colUndefine), 0 === s2 || 0 === c2 || f2 < 0 || l2 < 0 ? A : ((d2 = t5.WK) && d2.Gue && d2.Gue(f2, l2, n5.rT), n5.create([{ row: f2, col: l2, rowCount: s2, colCount: c2 }]))) : x : k;
            }
            function Vt(t5, n5, e4) {
              var i4, o3, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
              return t5 ? n5 && "!" !== n5[0] ? (a2 = { row: i4 = t5.row, col: o3 = t5.column }, (u2 = t5.parser) || (u2 = t5.parser = new r2.Parser()), (f2 = (c2 = t5.source).parserContext) ? (f2.useR1C1 = !e4, f2.row = a2 && a2.row || 0, f2.column = a2 && a2.col || 0, f2.baseIdentity = a2, f2.source = t5.source) : (c2.parserContext = f2 = t5.source ? t5.source.getParserContext(!e4, a2) : new r2.ParserContext(t5.source, !e4, a2), f2.onlyValidateSourceNameWithSpecial = true), e4 ? l2 = u2.parse(f2, n5) : ((d2 = c2.expressions) || (d2 = c2.expressions = {}), (l2 = d2[n5]) || (l2 = u2.parse(f2, n5), d2[n5] = l2)), l2 ? (v2 = false, 7 === l2.type && "ANCHORARRAY" === l2.functionName && (l2 = l2.arguments[0], v2 = true), 8 === l2.type && (l2 = l2.source ? (h2 = l2.source).getCustomName(l2.value) : t5.getName(l2.value)), !l2 || s.Rh(l2.type, [1, 13]) < 0 || l2.source instanceof r2.ErrorSource ? A : (h2 = l2.source || t5.source, 25 === l2.type || 26 === l2.type ? h2.getValueByName(l2.nameIdentity) : (p2 = l2.getRange(i4, o3), 13 === l2.type && (h2 = l2.source), g2 = null, g2 = h2.getReference(p2), v2 && (g2 = g2.getSpillRef()), Pt(t5, g2, g2.getRow(0), g2.getColumn(0), g2.getRowCount(0), g2.getColumnCount(0), g2.$gt[0].rowUndefine, g2.$gt[0].colUndefine), (m2 = t5.WK) && m2.Gue && m2.Gue(l2), g2))) : A) : A : k;
            }
            function zt(t5, n5) {
              var e4, i4 = "__hyperlink__";
              return (e4 = 2 === arguments.length ? O(n5) ? new Boolean(n5) : R(n5) ? new Number(n5) : E(n5) ? new String(n5) : new String(T(n5)) : new String(T(t5)))[i4] = T(t5), e4;
            }
            function Yt() {
              var t5, n5 = 0;
              for (t5 = 0; t5 < v(arguments); t5++) {
                if (0 === arguments[t5].length) return N;
                arguments[t5].isReference && (n5 += arguments[t5].rangeCount);
              }
              return n5;
            }
            function Zt(t5, n5) {
              var e4, i4, r3 = n5.getRow(0), o3 = n5.getColumn(0), a2 = n5.getSource();
              return a2.isFormulaHidden ? (e4 = a2.getCalcSourceModel().getFormula(r3, o3)) && !(i4 = a2.isFormulaHidden(r3, o3)) ? "=" + e4 : k : (e4 = a2.getCalcSourceModel().getFormula(r3, o3)) ? "=" + e4 : k;
            }
            function Wt(t5, n5) {
              var e4 = n5.getRow(0), i4 = n5.getColumn(0), r3 = n5.getSource().getCalcSourceModel();
              return !(!r3.ODt || !r3.ODt(e4, i4));
            }
            function Qt(t5, n5) {
              var e4;
              return void 0 === n5 && (n5 = false), (e4 = C(t5) || S(t5) ? t5.toArray(0, false) : t5.length && t5[0].length ? t5 : [[t5]]) ? Kt(e4, n5) : m(t5) ? t5 : x;
            }
            function Kt(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2;
              if (void 0 === n5 && (n5 = false), i4 = t5.rowCount, r3 = t5.colCount, i4 || r3 || (i4 = t5.length, r3 = t5[0].length), o3 = t5, n5) {
                for (o3 = [], a2 = 0; a2 < r3; a2++) for (u2 = [], o3.push(u2), s2 = 0; s2 < i4; s2++) u2.push(t5[s2][a2]);
                i4 = (e4 = [r3, i4])[0], r3 = e4[1];
              }
              return o3.rowCount = i4, o3.colCount = r3, o3;
            }
            function Jt(t5) {
              return 1 === t5 || -1 === t5;
            }
            function Xt(t5, n5) {
              var e4 = n5.length;
              t5.sort((function(t6, i4) {
                var o3, a2, u2, s2;
                for (o3 = 0; o3 < e4; o3++) if (u2 = (a2 = n5[o3])[0], 0 !== (s2 = (0, r2.$kt)(t6[u2], i4[u2]))) return a2[1] ? s2 : -s2;
                return 0;
              }));
            }
            function qt(t5, n5, e4) {
              if (e4) t5.forEach((function(t6, e5) {
                t6.push(n5[e5][0]);
              }));
              else {
                var i4 = n5[0];
                t5.forEach((function(t6, n6) {
                  t6.push(i4[n6]);
                }));
              }
            }
            function $t(t5) {
              if (t5 && t5.length && t5.length >= 0) {
                for (var n5 = 0; n5 < t5.length; n5++) if ("number" != typeof t5[n5]) return false;
                return true;
              }
              return false;
            }
            function tn(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, T2, A2, I2, k2;
              if (void 0 === n5 && (n5 = 1), void 0 === e4 && (e4 = 1), void 0 === i4 && (i4 = false), o3 = [].concat(Qt(t5, i4)), m(o3)) return o3;
              if (a2 = o3, u2 = [], C(n5) || S(n5)) {
                if (h2 = (l2 = n5.toArray(0, true)).length, d2 = 0, C(e4) || S(e4)) {
                  if (d2 = (c2 = e4.toArray(0, true)).length, 1 !== h2) {
                    if (h2 < 1 || 1 !== d2 && d2 !== h2 || !$t(l2)) return x;
                    if ((v2 = []).push(t5), i4) for (a2 = Kt(a2, i4), p2 = 0; p2 < h2; p2++) {
                      for (g2 = [], b2 = 0; b2 < a2[0].length; b2++) g2.push(a2[l2[p2] - 1][b2]);
                      v2.push(new r2.CalcArray([g2])), 1 === d2 ? v2.push(c2[0]) : v2.push(c2[p2]);
                    }
                    else for (p2 = 0; p2 < h2; p2++) {
                      for (g2 = [], b2 = 0; b2 < a2.length; b2++) g2.push([a2[b2][l2[p2] - 1]]);
                      v2.push(new r2.CalcArray(g2)), 1 === d2 ? v2.push(c2[0]) : v2.push(c2[p2]);
                    }
                    return nn.apply(nn, v2);
                  }
                  1 === d2 && (d2 = 0, f2 = c2[0]);
                } else f2 = e4;
                for (s2 = 0; s2 < h2; s2++) u2.push([l2[s2], s2 < d2 ? c2[s2] : f2]);
              } else if (C(e4) || S(e4)) {
                if (1 !== (c2 = e4.toArray(0, true)).length) return x;
                u2.push([n5, c2[0]]);
              } else u2.push([n5, e4]);
              for (y2 = a2.colCount, w2 = [], M2 = 0, T2 = u2; M2 < T2.length; M2++) {
                if (I2 = (A2 = T2[M2])[0], k2 = A2[1], I2 < 1 || I2 > y2 || !Jt(k2)) return x;
                w2.push([I2 - 1, 1 === k2]);
              }
              return Xt(a2, w2), new r2.CalcArray(i4 ? Kt(a2, i4) : a2);
            }
            function nn(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, T2, A2, I2, k2, N2, j2, D2, _2, O2, E2;
              for (void 0 === e4 && (e4 = 1), i4 = [], o3 = 3; o3 < arguments.length; o3++) i4[o3 - 3] = arguments[o3];
              if (s2 = 0, c2 = 0, f2 = x, S(t5) ? a2 = t5 : C(t5) && (s2 = (u2 = t5).getRow(), c2 = u2.getColumn()), l2 = a2 || u2) {
                if (h2 = l2.getColumnCount(), d2 = l2.getRowCount(), m(t5)) return f2;
                for (v2 = [], p2 = void 0, g2 = 0, b2 = 0, y2 = void 0, w2 = void 0, M2 = 1, T2 = arguments.length; M2 < T2; M2 += 2) {
                  if (I2 = [].concat(Qt(A2 = arguments[M2])), m(I2)) return f2;
                  if (k2 = A2.getRowCount(), N2 = A2.getColumnCount(), g2 || (g2 = (p2 = 1 === N2) ? 2 : 1, w2 = [].concat(Qt(t5, !p2))), !(!p2 && 1 === k2 && N2 === h2 || p2 && 1 === N2 && k2 === d2)) return f2;
                  if (j2 = S(A2), C(A2) && (D2 = void 0, p2 ? (D2 = c2 - (_2 = A2.getColumn())) >= 0 && D2 < h2 ? y2 = D2 : j2 = true : (D2 = s2 - (O2 = A2.getRow())) >= 0 && D2 < d2 ? y2 = D2 : j2 = true), j2 && (b2 += 1, p2 ? (y2 = h2, h2++) : (y2 = d2, d2++), qt(w2, I2, p2)), !Jt(E2 = arguments[M2 + 1] || 1)) return f2;
                  v2.push([y2, 1 === E2]);
                }
                return Xt(w2, v2), b2 && w2.forEach((function(t6) {
                  t6.length -= b2;
                })), new r2.CalcArray(p2 ? w2 : Kt(w2, true));
              }
              return f2;
            }
            function en(t5, n5) {
              return !!(t5 === n5 || p(t5) && p(n5) && g(t5) === g(n5) || m(t5) && m(n5) && t5._code === n5._code);
            }
            function rn(t5, n5) {
              var e4, i4, r3, o3;
              for (e4 = 0, i4 = t5.length; e4 < i4; e4++) if (!en(r3 = t5[e4], o3 = n5[e4])) return false;
              return true;
            }
            function on(t5, n5, e4) {
              var i4, o3, a2, u2;
              return void 0 === n5 && (n5 = false), void 0 === e4 && (e4 = false), i4 = Qt(t5, n5), m(i4) ? i4 : (a2 = [], u2 = (o3 = i4).rowCount, o3.forEach((function(t6, n6) {
                var i5, r3, s2;
                if (!t6.duplicated) {
                  for (i5 = 0, r3 = n6 + 1; r3 < u2; r3++) rn(t6, s2 = o3[r3]) && (s2.duplicated = true, i5++);
                  e4 && 0 !== i5 || a2.push(t6);
                }
              })), new r2.CalcArray(n5 ? Kt(a2, n5) : a2));
            }
            function an(t5, n5, e4) {
              var i4, o3, a2, u2, s2 = Qt(t5);
              if (m(s2)) return s2;
              if (i4 = s2, o3 = [].concat(Qt(n5)), a2 = [], 1 === o3.length && o3[0].length === i4[0].length) {
                for (u2 = 0; u2 < o3[0].length; u2++) if (m(o3[0][u2])) return o3[u2][0];
                i4.forEach((function(t6, n6) {
                  var e5 = [];
                  t6.forEach((function(t7, n7) {
                    o3[0][n7] && e5.push(t7);
                  })), a2.push(e5);
                }));
              } else {
                if (i4.length !== o3.length) return x;
                for (u2 = 0; u2 < o3.length; u2++) {
                  if (m(o3[u2][0])) return o3[u2][0];
                  o3[u2][0] && a2.push(i4[u2]);
                }
              }
              return 0 === a2.length || 1 === a2.length && 0 === a2[0].length ? h(e4) ? j : e4 : new r2.CalcArray(a2);
            }
            function un(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2;
              if (S(n5)) return n5.getValue(0, 0);
              if (C(n5)) {
                if (i4 = (e4 = n5).getColumn(), r3 = e4.getRow(), o3 = e4.getColumnCount(), a2 = e4.getRowCount(), c2 = (u2 = t5.row) - r3, f2 = (s2 = t5.column) - i4, l2 = void 0, h2 = void 0, 1 === a2 && f2 >= 0 && f2 < o3) h2 = s2, l2 = r3;
                else if (1 === o3 && c2 >= 0 && c2 < a2) h2 = i4, l2 = u2;
                else {
                  if (1 !== a2 || 1 !== o3) return x;
                  h2 = i4, l2 = r3;
                }
                return Pt(t5, e4, l2, h2, 1, 1), e4.create([{ row: l2, col: h2, rowCount: 1, colCount: 1 }]);
              }
              return n5;
            }
            function sn(t5, n5) {
              return n5 instanceof r2.CalcReference ? n5.getSpillRef() : A;
            }
            function cn(t5, n5, e4) {
              var i4, o3, a2;
              return n5 instanceof r2.CalcReference && (!e4 || e4 instanceof r2.CalcReference) ? (o3 = (i4 = n5.rT || t5.source).hierarchicalCellIndexingHelper || i4.Mf.getHierarchicalCellIndexingHelper && i4.Mf.getHierarchicalCellIndexingHelper()) ? (a2 = i4.getBaseRowCol && i4.getBaseRowCol() || t5.identity, o3.getIndex(a2, n5, e4)) : D : A;
            }
            function fn(t5, n5, e4, i4, o3) {
              var a2, u2, s2;
              return n5 instanceof r2.CalcReference && (!e4 || e4 instanceof r2.CalcReference) ? (u2 = (a2 = n5.rT || t5.source).hierarchicalCellIndexingHelper || a2.Mf.getHierarchicalCellIndexingHelper && a2.Mf.getHierarchicalCellIndexingHelper()) ? (s2 = a2.getBaseRowCol && a2.getBaseRowCol() || t5.identity, u2.getRank(s2, n5, e4, 1 !== i4, o3)) : D : A;
            }
            function ln(t5, n5, e4) {
              var i4, o3;
              return n5 instanceof r2.CalcReference ? (o3 = (i4 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? o3.coordinateOffset(n5, e4, false) : D : A;
            }
            function hn(t5, n5, e4) {
              var i4, o3;
              return n5 instanceof r2.CalcReference ? (o3 = (i4 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? o3.coordinateOffset(n5, e4, true) : D : A;
            }
            function dn(t5, n5, e4, i4) {
              var o3, a2, u2;
              return n5 instanceof r2.CalcReference ? (a2 = (o3 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? (u2 = o3.getBaseRowCol && o3.getBaseRowCol(), a2.coordinateExecute(u2, n5, e4, i4)) : D : A;
            }
            function vn(t5) {
              var n5, e4 = t5.source, i4 = e4.Mf;
              return i4 && i4.getPageIndexByCell ? (n5 = e4.getBaseRowCol && e4.getBaseRowCol(), i4.getPageIndexByCell(n5.row, n5.col) + 1) : D;
            }
            function pn(t5) {
              var n5 = t5.source, e4 = n5.Mf;
              return e4 && e4.getPagesCount ? e4.getPagesCount() : D;
            }
            function gn(t5, n5, e4, i4) {
              var o3, a2, u2;
              return n5 instanceof r2.CalcReference ? (a2 = (o3 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? (u2 = o3.getBaseRowCol && o3.getBaseRowCol(), a2.getProportion(u2, n5, e4, i4)) : D : A;
            }
            function mn(t5, n5, e4, i4) {
              var o3, a2, u2;
              return n5 instanceof r2.CalcReference ? (a2 = (o3 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? (u2 = o3.getBaseRowCol && o3.getBaseRowCol(), a2.getCumulative(u2, n5, e4, i4)) : D : A;
            }
            function bn(t5, n5, e4, i4) {
              var o3, a2, u2;
              return n5 instanceof r2.CalcReference && (e4 || i4) ? (a2 = (o3 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? (u2 = o3.getBaseRowCol && o3.getBaseRowCol(), a2.getYearOverYear(u2, n5, e4, i4)) : D : A;
            }
            function yn(t5, n5, e4, i4) {
              var o3, a2, u2;
              return n5 instanceof r2.CalcReference ? (a2 = (o3 = n5.rT || t5.source).hierarchicalCellIndexingHelper) ? (u2 = o3.getBaseRowCol && o3.getBaseRowCol(), a2.getMonthOverMonth(u2, n5, e4, i4)) : D : A;
            }
            function wn(t5, n5, e4) {
              var i4, o3, a2, u2, s2;
              if (void 0 === n5 && (n5 = false), void 0 === e4 && (e4 = true), o3 = {}, t5 && t5 instanceof r2.CalcArray && (i4 = t5.toArray(0, true)), i4 && i4.length) for (a2 = 0, u2 = i4; a2 < u2.length; a2++) s2 = u2[a2], n5 ? h(s2) || (s2 += "", o3[e4 ? s2 : s2.toLocaleUpperCase()] = true) : h(s2) ? o3.undefined_sjs = true : (s2 += "", o3[e4 ? s2 : s2.toLocaleUpperCase()] = true);
              return Object.keys(o3).length;
            }
            function Mn() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2 = arguments, f2 = c2.length;
              if (1 === f2) return new r2.CalcArray(c2[0]);
              for (t5 = 0, n5 = 0; n5 < f2; n5++) t5 = Math.max(t5, c2[n5].colCount);
              for (e4 = [], i4 = 0; i4 < f2; i4++) for (o3 = c2[i4], a2 = 0; a2 < o3.rowCount; a2++) {
                for (u2 = [], s2 = o3.colCount, n5 = 0; n5 < s2; n5++) u2.push(o3[a2][n5]);
                for (n5 = s2; n5 < t5; n5++) u2.push(k);
                e4.push(u2);
              }
              return new r2.CalcArray(e4);
            }
            function Cn() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2 = arguments, f2 = c2.length;
              if (1 === f2) return new r2.CalcArray(c2[0]);
              for (t5 = 0, n5 = 0; n5 < f2; n5++) t5 = Math.max(t5, c2[n5].rowCount);
              for (e4 = [], i4 = 0; i4 < t5; i4++) {
                for (o3 = [], a2 = 0; a2 < f2; a2++) for (s2 = i4 < (u2 = c2[a2]).rowCount, n5 = 0; n5 < u2.colCount; n5++) o3.push(s2 ? u2[i4][n5] : k);
                e4.push(o3);
              }
              return new r2.CalcArray(e4);
            }
            function Sn(t5, n5, e4, i4) {
              var r3, a2, u2 = t5.rowCount, s2 = t5.colCount, c2 = 1 === e4 || 3 === e4, f2 = 2 === e4 || 3 === e4, l2 = function(t6) {
                c2 && t6 === o2 || f2 && m(t6) || i4(t6);
              };
              if (n5) for (r3 = 0; r3 < s2; r3++) for (a2 = 0; a2 < u2; a2++) l2(t5[a2][r3]);
              else for (a2 = 0; a2 < u2; a2++) for (r3 = 0; r3 < s2; r3++) l2(t5[a2][r3]);
            }
            function Tn(t5) {
              var n5, e4 = new Array(t5);
              for (n5 = 0; n5 < t5; n5++) e4[n5] = [];
              return e4;
            }
            function xn(t5, n5, e4) {
              var i4 = [];
              return Sn(t5, e4, n5, (function(t6) {
                i4.push(t6 === o2 ? 0 : t6);
              })), new r2.CalcArray([i4]);
            }
            function An(t5, n5, e4) {
              var i4 = [];
              return Sn(t5, e4, n5, (function(t6) {
                i4.push([t6 === o2 ? 0 : t6]);
              })), new r2.CalcArray(i4);
            }
            function In(t5, n5, e4) {
              var i4, o3, a2, u2, s2 = t5.rowCount, c2 = t5.colCount;
              if (1 !== s2 && 1 !== c2) return x;
              if (h(n5) || n5 <= 0) return I;
              if ((i4 = Math.max(s2, c2)) <= n5) return new r2.CalcArray(t5);
              if (o3 = [], a2 = [], Sn(t5, false, 0, (function(t6) {
                a2.push(t6), a2.length === n5 && (o3.push(a2), a2 = []);
              })), a2.length > 0) {
                for (e4 = h(e4) ? k : e4, u2 = a2.length; u2 < n5; u2++) a2.push(e4);
                o3.push(a2);
              }
              return new r2.CalcArray(o3);
            }
            function kn(t5, n5, e4) {
              var i4, o3, a2, u2, s2 = t5.rowCount, c2 = t5.colCount;
              if (1 !== s2 && 1 !== c2) return x;
              if (h(n5) || n5 <= 0) return I;
              if ((i4 = Math.max(s2, c2)) <= n5) return new r2.CalcArray(t5);
              if (o3 = Tn(n5), a2 = 0, Sn(t5, false, 0, (function(t6) {
                o3[a2].push(t6), ++a2 === n5 && (a2 = 0);
              })), a2 > 0) for (e4 = h(e4) ? k : e4, u2 = a2; u2 < n5; u2++) o3[u2].push(e4);
              return new r2.CalcArray(o3);
            }
            function Nn(t5, n5, e4, i4, o3) {
              var a2, u2, s2, c2 = 0 === n5 && e4 === t5.rowCount, f2 = 0 === i4 && o3 === t5.colCount;
              if (c2 && f2) return new r2.CalcArray(t5);
              for (a2 = [], u2 = n5; u2 < e4; u2++) s2 = t5[u2], a2[u2 - n5] = f2 ? s2 : s2.slice(i4, o3);
              return new r2.CalcArray(a2);
            }
            function jn(t5, n5, e4) {
              var i4, r3, o3, a2, u2 = t5.rowCount, s2 = t5.colCount;
              return st(t5, u2, s2) ? x : (((n5 = h(n5) ? u2 : n5) > u2 || n5 < -u2) && (n5 = u2), ((e4 = h(e4) ? s2 : e4) > s2 || e4 < -s2) && (e4 = s2), Nn(t5, i4 = n5 > 0 ? 0 : u2 + n5, r3 = n5 > 0 ? n5 : u2, o3 = e4 > 0 ? 0 : s2 + e4, a2 = e4 > 0 ? e4 : s2));
            }
            function Dn(t5, n5, e4) {
              var i4, r3, o3, a2, u2 = t5.rowCount, s2 = t5.colCount;
              return n5 = h(n5) ? 0 : n5, e4 = h(e4) ? 0 : e4, n5 >= u2 || n5 <= -u2 || e4 >= s2 || e4 <= -s2 ? j : Nn(t5, i4 = n5 >= 0 ? n5 : 0, r3 = n5 >= 0 ? u2 : u2 + n5, o3 = e4 >= 0 ? e4 : 0, a2 = e4 >= 0 ? s2 : s2 + e4);
            }
            function _n(t5, n5) {
              var e4, i4 = new Array(n5);
              if ("function" == typeof i4.fill) i4.fill(t5, 0, n5);
              else for (e4 = 0; e4 < n5; e4++) i4[e4] = t5;
              return i4;
            }
            function On(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2 = t5.rowCount, l2 = t5.colCount;
              if (n5 = h(n5) ? f2 : n5, e4 = h(e4) ? l2 : e4, st(t5, f2, l2) || n5 < f2 || e4 < l2) return x;
              if (a2 = e4 > l2, !(o3 = n5 > f2) && !a2) return new r2.CalcArray(t5);
              for (u2 = _n(i4 = h(i4) ? k : i4, e4 - l2), s2 = [], c2 = 0; c2 < f2; c2++) s2.push(a2 ? t5[c2].concat(u2) : t5[c2]);
              for (c2 = f2; c2 < n5; c2++) s2.push(_n(i4, e4));
              return new r2.CalcArray(s2);
            }
            function En(t5) {
              var n5, e4, i4, o3, a2, u2, s2;
              if (m(t5)) return t5;
              if (S(t5) || C(t5)) {
                if (e4 = t5.getRowCount(), i4 = t5.getColumnCount(), 1 !== e4 && 1 !== i4) return x;
                if (a2 = (o3 = 1 === e4 && 1 === i4) ? 1 : 5, (u2 = r2.Convert.iV(t5, a2, true, true, true)).isConvertError) return x;
                if (u2.isError) return u2[0];
                if (u2.some((function(t6) {
                  return t6 === r2.Convert.CalcConvertedError;
                }))) return x;
                n5 = u2;
              } else {
                if (!y(t5, s2 = {})) return x;
                n5 = [s2.value];
              }
              return n5;
            }
            function Rn(t5, n5) {
              var e4, i4, o3, a2, u2 = [], s2 = r2.Convert.iV(t5[0], 0, false, false, false, false), c2 = n5 ? s2.rowCount : s2.colCount;
              for (e4 = 1; e4 < t5.length; e4++) {
                if (i4 = En(t5[e4]), m(i4)) return i4;
                for (o3 = 0; o3 < i4.length; o3++) {
                  if (0 === (a2 = i4[o3]) || a2 > c2 || a2 < -c2) return x;
                  u2.push(a2);
                }
              }
              return 0 === u2.length ? x : { array: s2, indexNumbers: u2 };
            }
            function Ln() {
              var t5, n5, e4, i4, o3, a2, u2 = Rn(arguments, true);
              if (m(u2)) return u2;
              for (t5 = u2.array, n5 = u2.indexNumbers, e4 = t5.rowCount, i4 = [], o3 = 0; o3 < n5.length; o3++) a2 = (a2 = n5[o3]) > 0 ? a2 - 1 : e4 + a2, i4.push(t5[a2]);
              return new r2.CalcArray(i4);
            }
            function Fn() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2 = Rn(arguments, false);
              if (m(c2)) return c2;
              for (t5 = c2.array, n5 = c2.indexNumbers, e4 = t5.rowCount, i4 = t5.colCount, o3 = Tn(e4), a2 = 0; a2 < n5.length; a2++) for (u2 = (u2 = n5[a2]) > 0 ? u2 - 1 : i4 + u2, s2 = 0; s2 < e4; s2++) o3[s2].push(t5[s2][u2]);
              return new r2.CalcArray(o3);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = null, a = void 0, u = i3.Common.$T, s = i3.Common.lt, c = i3.Common.ct, f = i3.Common.st.E8, l = c.Z6t, h = s.ht, d = s.Fh, v = i3.Common.Uf.tR, p = c.W0, g = c.o0, m = r2.Convert.BJ, b = r2.Convert.z6t, y = r2.Convert.t9t, w = r2.Convert.q8, M = r2.Convert.uJ, C = r2.Convert.LE, S = r2.Convert.Nh, T = r2.Convert.j, x = r2.Errors.Value, A = r2.Errors.Reference, I = r2.Errors.Number, k = r2.Errors.NotAvailable, N = r2.Errors.Null, j = r2.Errors.Calc, D = r2.Errors.Name, _ = r2.Functions.F6t, O = r2.Functions.G6t, E = r2.Functions.OMt, R = r2.Functions.q8, L = function(t5, n5) {
              return t5;
            }, B = 1048576, P = 16384, Z = r2.CalcReference.prototype, W = (function(t5) {
              function n5(n6, e4, i4, o3, a2, u2) {
                var s2, c2 = t5.call(this, n6, [(0, r2.createRange)(e4, i4, o3, a2)]) || this;
                return c2.getValue = function(t6, n7, e5) {
                  var i5 = this, r3 = i5._type, o4;
                  return o4 = 0 === r3 ? i5.getRow(0) + 1 + n7 : 1 === r3 ? i5.getColumn(0) + 1 + e5 : Z.getValue.call(i5, t6, n7, e5);
                }, (s2 = c2).Ky = e4, s2.yft = i4, s2.Sx = o3, s2.Cyt = a2, s2._type = u2, c2;
              }
              return at(n5, t5), n5.prototype.type = function() {
                return this._type;
              }, n5.prototype.toArray = function(t6, n6) {
                var e4 = this, i4 = [], r3 = e4.Ky, o3 = e4.yft, a2 = e4._type, u2 = e4.getRangeCount(), s2 = e4.Sx, c2 = e4.Cyt, f2, l2, h2, d2, v2, p2;
                for (f2 = 0; f2 < u2; f2++) for (n6 || (h2 = [], i4.push(h2)), v2 = 0; v2 < s2; v2++) for (n6 || (d2 = [], h2.push(d2)), p2 = 0; p2 < c2; p2++) l2 = 0 === a2 ? r3 + 1 + v2 : 1 === a2 ? o3 + 1 + p2 : Z.getValue.call(e4, f2, r3 + v2, o3 + p2), n6 ? i4.push(l2) : d2.push(l2);
                return n6 || 1 !== u2 || (i4 = i4[0]), i4.rowCount = s2, i4.colCount = c2, i4.rangeCount = u2, i4;
              }, n5;
            })(r2.CalcReference), Q = { 0: "none", 1: "row", 2: "column", 3: "both" }, J = { J6t: 7 }, q = { J6t: 2 }, tt = { J6t: 2, pkt: "<= 0", zkt: x }, nt = { J6t: 2, pkt: ["< 0", "> 3"], zkt: x }, et = { J6t: 2, pkt: ["= 0"], zkt: j }, it = { bkt: 0, J6t: 2 }, rt = { J6t: 4, X6t: 0, Vkt: true }, ot = { J6t: 4, X6t: 0, n9t: true }, _("ADDRESS", Bt, 2, 5, [X = { J6t: 2 }, X, $ = { bkt: 1, J6t: 2 }, K = { bkt: true, J6t: 7 }, { bkt: "", J6t: 5 }], a, a, { wkt: [2, 3, 4] }), _("INDEX", Gt, 2, 4, a, 0, 0, { wkt: [1, 2, 3], e9t: [0], i9t: true, r9t: true, o9t: 3 }), _("TRIMRANGE", Ut, 1, 3, a, 0, 0, { wkt: [1, 2], r9t: true }), _("OFFSET", Ht, 3, 5, [{}, X, X], 0, 0, { wkt: [3, 4], e9t: [0], a9t: true, r9t: true, o9t: 2, returnReference: true }), _("ROW", Ct, 0, 1, a, -1, a, { r9t: true, e9t: -1, expandColumns: false }), _("COLUMN", St, 0, 1, a, -1, a, { wkt: 0, r9t: true, e9t: -1, expandRows: false }), _("ROWS", Tt, 1, 1, a, -1, -1, { e9t: -1, expandColumns: false, u9t: 2 }), _("COLUMNS", xt, 1, 1, a, -1, -1, { e9t: -1, expandRows: false, u9t: 3 }), _("TRANSPOSE", At, 1, 1, a, -1, -1), _("LOOKUP", jt, 2, 3, [rt, { J6t: 4, X6t: 0, Vkt: true, s9t: true }], "!= 0", "!= 0", { o9t: 1, f9t: 1 }), _("HLOOKUP", It, 3, 4, [rt, {}, tt, J], 1, 1, { r9t: true, i9t: true, e9t: [1] }), _("VLOOKUP", kt, 3, 4, [rt, {}, tt, J], 1, 1, { r9t: true, i9t: true, e9t: [1] }), _("XLOOKUP", Nt, 3, 6, [rt, rt, {}, {}, { J6t: 2, bkt: 0 }, { J6t: 2, bkt: 1 }], [1, 2, 3], [1, 2, 3], { wkt: [3, 4, 5] }), _("VSTACK", Mn, 1, 255, ot, -1, -1, a, true), _("HSTACK", Cn, 1, 255, ot, -1, -1, a, true), _("TOROW", xn, 1, 3, [ot, nt, J], 0, 0, { wkt: [1, 2] }, true), _("TOCOL", An, 1, 3, [ot, nt, J], 0, 0, { wkt: [1, 2] }, true), _("WRAPROWS", In, 2, 3, [ot, X], 0, 0, { wkt: [2], f9t: -1 }, true), _("WRAPCOLS", kn, 2, 3, [ot, X], 0, 0, { wkt: [2], f9t: -1 }, true), _("TAKE", jn, 2, 3, [ot, et, et], 0, 0, { wkt: [1, 2] }, true), _("DROP", Dn, 2, 3, [ot, it, it], 0, 0, { wkt: [1, 2] }, true), _("EXPAND", On, 2, 4, [ot, tt, tt], 0, 0, { wkt: [1, 2, 3] }, true), _("CHOOSEROWS", Ln, 2, 255, a, -1, -1, a, true), _("CHOOSECOLS", Fn, 2, 255, a, -1, -1, a, true), _("CHOOSE", Dt, 2, 255, X, ">= 1", ">= 1", { f9t: ">= 1", isBranch: true, findTestArgument: 0, findBranchArgument: function(t5) {
              var n5 = { value: -1 };
              return m(t5) ? -1 : (y(t5, n5), n5.value);
            } }), _("MATCH", _t, 2, 3, [rt, { J6t: 4, X6t: 0, Vkt: true, Zbt: true }, q], 1, 1, {}), _("XMATCH", Ot, 2, 4, [rt, rt, q, q], 1, 1, {}), _("INDIRECT", Vt, 1, 2, [{ J6t: 5 }, K], a, a, { wkt: 2, a9t: true, u9t: 5, o9t: 2, returnReference: true, r9t: true }), _("HYPERLINK", zt, 1, 2, a, a, a, { u9t: 1 }), _("AREAS", Yt, 1, a, { J6t: 4, Vkt: true, Ykt: true, n9t: true }, -1, -1), _("FORMULATEXT", Zt, 1, 1, a, -1, a, { r9t: true }), _("ISFORMULA", Wt, 1, 1, a, -1, a, { r9t: true }), _("SORT", tn, 1, 4, a, [0, 1, 2], [0, 1, 2], { wkt: [1, 2, 3] }, true), _("SORTBY", nn, 2, a, a, [0, "%= 1"], [0, "%= 1"], a, true), _("UNIQUE", on, 1, 3, a, [0], [0], { wkt: [1, 2] }, true), _("FILTER", an, 2, 3, a, [0, 1, 2], [0, 1, 2], a, true), _("@", un, 1, 1, a, [0], [0], { r9t: true, a9t: true, e9t: true }, true), _("ANCHORARRAY", sn, 1, 1, a, [0], [0], { r9t: true }, true), _("R.INDEX", cn, 1, 2, a, -1, -1, { r9t: true }), _("R.RANK", fn, 1, 4, a, -1, -1, { r9t: true }), _("R.R", ln, 2, 2, [{}, { J6t: 3 }], [0], [0], { r9t: true }), _("R.A", hn, 2, 2, [{}, { J6t: 3 }], [0], [0], { r9t: true }), _("R.V", dn, 1, 255, a, -1, -1, { r9t: true }), _("R.CURRENTPAGE", vn, 0, 0, a, -1, -1, { r9t: true }, false), _("R.PAGESCOUNT", pn, 0, 0, a, -1, -1, { r9t: true }), _("R.PROPORTION", gn, 1, 3, a, -1, -1, { r9t: true }), _("R.CUMULATIVE", mn, 1, 3, a, -1, -1, { r9t: true }), _("R.MOM", yn, 1, 3, a, -1, -1, { r9t: true }), _("R.YOY", bn, 2, 3, a, -1, -1, { r9t: true }), _("SJS.DISTINCTCOUNT", wn, 1, 3, a, -1, -1);
          }, "./src/functions-stat.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt;
            function Kt(t5) {
              var n5, e4 = 0;
              for (n5 = 0; n5 < t5.length; n5++) t5[n5] !== Y && e4++;
              return e4;
            }
            function Jt(t5) {
              var n5, e4, i4, r3 = 6;
              return n5 = 0 === t5 ? 0 : (e4 = 0.5 * Math.abs(t5)) >= 0.5 * r3 ? 1 : e4 < 1 ? ((((((((124818987e-12 * (i4 = e4 * e4) - 0.001075204047) * i4 + 0.005198775019) * i4 - 0.019198292004) * i4 + 0.059054035642) * i4 - 0.151968751364) * i4 + 0.319152932694) * i4 - 0.5319230073) * i4 + 0.797884560593) * e4 * 2 : (((((((((((((-45255659e-12 * (e4 -= 2) + 15252929e-11) * e4 - 19538132e-12) * e4 - 676904986e-12) * e4 + 0.001390604284) * e4 - 79462082e-11) * e4 - 0.002034254874) * e4 + 0.006549791214) * e4 - 0.010557625006) * e4 + 0.011630447319) * e4 - 0.009279453341) * e4 + 0.005353579108) * e4 - 0.002141268741) * e4 + 535310849e-12) * e4 + 0.999936657524, t5 > 0 ? 0.5 * (n5 + 1) : 0.5 * (1 - n5);
            }
            function Xt(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2 = o2(t5);
              if (n5 !== t5[0]) {
                for (a2 = 0, u2 = t5[0], r3 = 1; r3 < c2 && t5[r3] < n5; r3++) t5[r3] !== u2 && (a2 = r3, u2 = t5[r3]);
                t5[r3] !== u2 && (a2 = r3), n5 === t5[r3] ? i4 = e4 ? a2 / (c2 - 1) : (r3 + 1) / (c2 + 1) : 0 === a2 ? i4 = 0 : (s2 = (n5 - t5[a2 - 1]) / (t5[a2] - t5[a2 - 1]), i4 = e4 ? (a2 - 1 + s2) / (c2 - 1) : (a2 + s2) / (c2 + 1));
              } else i4 = e4 ? 0 : 1 / (c2 + 1);
              return i4;
            }
            function qt(t5, n5, e4, i4) {
              var r3, a2, u2 = [];
              return mn(t5, u2), 0 === (r3 = o2(u2)) || n5 < u2[0] || n5 > u2[r3 - 1] ? A : 0 !== (a2 = 1 === r3 ? 1 : Xt(u2, n5, i4)) ? S(a2 * l(10, e4)) / l(10, e4) : a2;
            }
            function $t(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2 = 300, c2 = 1e-50, f2 = 1e-20, l2 = t5 + n5, h2 = t5 + 1, d2 = t5 - 1, v2 = 1, p2 = 1 - l2 * e4 / h2;
              for (w(p2) < c2 && (p2 = c2), i4 = p2 = 1 / p2, r3 = 1; r3 <= s2 && (w(p2 = 1 + (a2 = (n5 - r3) * r3 * e4 / ((d2 + (o3 = r3 + r3)) * (t5 + o3))) * p2) < c2 && (p2 = c2), w(v2 = 1 + a2 / v2) < c2 && (v2 = c2), i4 *= (p2 = 1 / p2) * v2, w(p2 = 1 + (a2 = 0 - (t5 + r3) * (l2 + r3) * e4 / ((t5 + o3) * (h2 + o3))) * p2) < c2 && (p2 = c2), w(v2 = 1 + a2 / v2) < c2 && (v2 = c2), i4 *= u2 = (p2 = 1 / p2) * v2, !(w(u2 - 1) < f2)); r3++) ;
              return i4;
            }
            function tn(t5) {
              var n5;
              return [22250738585072014e-324, 17976931348623157e292, l(2, -53), l(2, -52), O.ckt(2, 10)][t5 - 1] || 0;
            }
            function nn(t5, n5, e4) {
              var i4, r3 = 0, o3 = 0;
              if (n5 < 1) return 0;
              for (i4 = 1; i4 <= n5; i4++) if ((o3 += w(_(t5[r3 = n5 - i4]))) > e4) return r3;
              return r3;
            }
            function en(t5, n5, e4) {
              var i4, r3, o3, a2, u2;
              if (e4 < 1 || e4 > 1e3 || t5 < -1.1 || t5 > 1.1) return NaN;
              for (i4 = 2 * t5, o3 = r3 = 0, a2 = 0, u2 = 1; u2 <= e4; u2++) o3 = r3, a2 = i4 * (r3 = a2) - o3 + _(n5[e4 - u2]);
              return 0.5 * (a2 - o3);
            }
            function rn(t5) {
              var n5, e4 = [0.16663894804518634, -1384948176067564e-20, 981082564692473e-23, -1809129475572494e-26, 6221098041892606e-29, -3399615005417722e-31, 2683181998482699e-33, -2868042435334643e-35, 39628370610464347e-38, -6831888753985767e-39, 14292273559424982e-41, -35475981581010704e-43, 1025680058010471e-43, -3401102254316749e-45, 1276642195630063e-46], i4 = nn(e4, 15, tn(3)), r3 = 1 / M(tn(3)), o3 = y(d(C(tn(2) / 12), -C(12 * tn(1))));
              return t5 < 10 ? NaN : t5 >= o3 ? 4930380657631324e-47 : t5 < r3 ? en((n5 = 10 / t5) * n5 * 2 - 1, e4, i4) / t5 : 1 / (12 * t5);
            }
            function on(t5) {
              var n5 = [1.037869356274377, -0.13364301504908918, 0.019408249135520562, -0.0030107551127535777, 4869461479715485e-19, -8105488189317536e-20, 13778847799559525e-21, -2380221089435897e-21, 41640416213865184e-23, -7359582837807599e-23, 13117611876241675e-24, -23546709317742423e-25, 42522773276035e-23, -771908941348408e-25, 1407574648135907e-26, -25769072058024682e-28, 4734240666629442e-28, -8724901267474264e-29, 1612461490274055e-29, -29875652015665774e-31, 5548070120908289e-31, -10324619158271569e-32, 19250239203049852e-33, -3595507346526515e-33, 6726454253787686e-34, -1260262416873522e-34, 2364488440860621e-35, -44419377050807936e-37, 8354659446403425e-37, -15731559416479563e-38, 29653128740247425e-39, -5594958348181595e-39, 1056635426883568e-39, -19972483680670205e-41, 3778297781883936e-41, -7153158688908174e-42, 13552488463674214e-43, -25694673048487566e-44, 48747756066216946e-45, -9254211253084972e-45, 1757859784176024e-45, -3341002667773101e-46, 6353393618023618e-47], e4 = nn(n5, 43, 0.1 * tn(3));
              return t5 <= -1 ? NaN : w(t5) <= 0.375 ? t5 * (1 - t5 * en(t5 / 0.375, n5, e4)) : C(t5 + 1);
            }
            function an(t5) {
              var n5, e4, i4, r3, o3, a2, u2 = 1, s2 = [1, 0.5772156649015329, -0.6558780715202538, -0.0420026350340952, 0.1665386113822915, -0.0421977345555443, -0.009621971527877, 0.007218943246663, -0.0011651675918591, -2152416741149e-16, 1280502823882e-16, -201348547807e-16, -12504934821e-16, 1133027232e-15, -2056338417e-16, 6116095e-15, 50020075e-16, -11812746e-16, 1043427e-16, 77823e-16, -36968e-16, 51e-14, -206e-16, -54e-16, 14e-16];
              if (t5 > 171) return 1e308;
              if (t5 === D(t5)) if (t5 > 0) for (n5 = 1, r3 = 2; r3 < t5; r3++) n5 *= r3;
              else n5 = 1e308;
              else {
                if (w(t5) > 1) {
                  for (i4 = w(t5), o3 = D(i4), e4 = 1; e4 <= o3; e4++) u2 *= i4 - e4;
                  i4 -= o3;
                } else i4 = t5;
                for (a2 = s2[24], e4 = 23; e4 >= 0; e4--) a2 = a2 * i4 + s2[e4];
                n5 = 1 / (a2 * i4), w(t5) > 1 && (n5 *= u2, t5 < 0 && (n5 = -m / (t5 * n5 * p(m * t5))));
              }
              return n5;
            }
            function un(t5) {
              var n5, e4, i4, r3, o3, a2 = 0, u2 = [0.08333333333333333, -0.002777777777777778, 7936507936507937e-19, -5952380952380952e-19, 8417508417508418e-19, -0.001917526917526918, 0.00641025641025641, -0.02955065359477124, 0.1796443723688307, -1.3924322169059], s2 = t5;
              if (t5 <= 0) return 1e308;
              if (1 === t5 || 2 === t5) return 0;
              for (t5 <= 7 && (s2 = t5 + (a2 = D(7 - t5))), e4 = 1 / (s2 * s2), i4 = 2 * m, r3 = u2[9], n5 = 8; n5 >= 0; n5--) r3 = r3 * e4 + u2[n5];
              if (o3 = r3 / s2 + 0.5 * C(i4) + (s2 - 0.5) * C(s2) - s2, t5 <= 7) for (n5 = 1; n5 <= a2; n5++) o3 -= C(s2 - 1), s2 -= 1;
              return o3;
            }
            function sn(t5, n5) {
              var e4, i4, r3, o3 = i4 = t5;
              return n5 < o3 && (o3 = n5), n5 > i4 && (i4 = n5), o3 < 0 ? NaN : 0 === o3 ? z : o3 >= 10 ? (e4 = rn(o3) + rn(i4) - rn(o3 + i4), -0.5 * C(i4) + 0.9189385332046728 + e4 + (o3 - 0.5) * C(o3 / (o3 + i4)) + i4 * on(-o3 / (o3 + i4))) : i4 >= 10 ? (e4 = rn(i4) - rn(o3 + i4), r3 = fi(o3), L(r3) ? NaN : _(r3) + e4 + o3 - o3 * C(o3 + i4) + (i4 - 0.5) * on(-o3 / (o3 + i4))) : C(an(o3) * (an(i4) / an(o3 + i4)));
            }
            function cn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2, p2, g2, m2 = tn(3), b2 = C(m2), w2 = tn(1), M2 = C(w2), S2 = t5, T2 = n5, x2 = e4;
              if (T2 / (T2 + x2) < t5 && (S2 = 1 - S2, T2 = e4, x2 = n5), (T2 + x2) * S2 / (T2 + 1) < m2) i4 = 0, (o3 = T2 * C(h(S2, w2)) - C(T2) - sn(T2, x2)) > M2 && 0 !== S2 && (i4 = y(o3)), S2 === t5 && T2 === n5 || (i4 = 1 - i4);
              else {
                if (0 === (s2 = x2 - v(x2)) && (s2 = 1), i4 = 0, (o3 = T2 * C(S2) - sn(s2, T2) - C(T2)) >= M2 && (r3 = (i4 = y(o3)) * T2, 1 !== s2)) for (u2 = D(h(b2 / C(S2), 4)), c2 = 1; c2 <= u2; c2++) i4 += (r3 = r3 * ((a2 = c2) - s2) * S2 / a2) / (T2 + a2);
                if (x2 > 1) {
                  for (o3 = T2 * C(S2) + x2 * C(1 - S2) - sn(T2, x2) - C(x2), f2 = D(h(o3 / M2, 0)), r3 = y(o3 - f2 * M2), p2 = x2 * (l2 = 1 / (1 - S2)) / (T2 + x2 - 1), g2 = 0, x2 === (u2 = D(x2)) && (u2 -= 1), c2 = 1; c2 <= u2 && !(p2 <= 1 && r3 / m2 <= g2); c2++) (r3 = (x2 - (a2 = c2) + 1) * l2 * r3 / (T2 + x2 - a2)) > 1 && (f2 -= 1, r3 *= w2), 0 === f2 && (g2 += r3);
                  i4 += g2;
                }
                S2 === t5 && T2 === n5 || (i4 = 1 - i4), i4 = h(d(i4, 1), 0);
              }
              return i4;
            }
            function fn(t5) {
              var n5, e4;
              return n5 = _(t5 = 0.7071067811865475 * -t5), s(n5) ? x : (e4 = G(n5 * M(2)), L(e4) ? NaN : 0.5 * (2 - 2 * e4));
            }
            function ln(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2;
              function y2(t6, n6) {
                return t6 < 0 && n6 > 0 || t6 > 0 && n6 < 0;
              }
              for (r3 = 1e-307, o3 = 222045e-21, a2 = t5.Sl(n5), u2 = t5.Sl(e4), c2 = 0; c2 < 1e3 && !y2(a2, u2); c2++) w(a2) <= w(u2) ? (s2 = n5, (n5 += 2 * (n5 - e4)) < 0 && (n5 = 0), e4 = s2, u2 = a2, a2 = t5.Sl(n5)) : (s2 = e4, e4 += 2 * (e4 - n5), n5 = s2, a2 = u2, u2 = t5.Sl(e4));
              if (0 === a2) return n5;
              if (0 === u2) return e4;
              if (!y2(a2, u2)) return i4.l9t = true, 0;
              for (f2 = n5, l2 = a2, d2 = e4, v2 = u2, p2 = n5, g2 = a2, m2 = 0.5 * (n5 + e4), b2 = true, c2 = 0; c2 < 500 && w(g2) > r3 && e4 - n5 > h(w(n5), w(e4)) * o3; ) b2 && (b2 = l2 !== v2 && v2 !== g2 && g2 !== l2 && (n5 < (m2 = f2 * g2 * v2 / (g2 - l2) / (v2 - l2) + p2 * v2 * l2 / (v2 - g2) / (l2 - g2) + d2 * l2 * g2 / (l2 - v2) / (g2 - v2)) && m2 < e4)), b2 || (m2 = 0.5 * (n5 + e4), d2 = e4, v2 = u2, b2 = true), f2 = d2, d2 = p2, p2 = m2, l2 = v2, v2 = g2, y2(a2, g2 = t5.Sl(m2)) ? (e4 = p2, u2 = g2) : (n5 = p2, a2 = g2), b2 = b2 && 2 * w(g2) <= w(v2), ++c2;
              return p2;
            }
            function hn(t5, n5) {
              var e4, i4, r3, a2, u2 = o2(n5);
              for (e4 = 0; e4 < u2; e4++) a2 = (r3 = (i4 = _(n5[e4])) - t5.M) / (t5.N + 1), t5.M += a2, t5.Q += t5.N * r3 * a2, t5.N++, t5.h9t += i4;
            }
            function dn(t5) {
              var n5, e4 = [76.18009172947146, -86.50532032941678, 24.01409824083091, -1.231739572450155, 0.001208650973866179, -5395239384953e-18], i4 = 1.000000000190015, r3 = t5, o3 = t5 + 5.5;
              for (o3 -= (t5 + 0.5) * C(o3), n5 = 0; n5 <= 5; n5++) ++r3, i4 += e4[n5] / r3;
              return -o3 + C(2.5066282746310007 * i4 / t5);
            }
            function vn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = 0 === e4 || 1 === e4 ? 0 : y(dn(t5 + n5) - dn(t5) - dn(n5) + t5 * C(e4) + n5 * C(1 - e4)), b2 = e4 >= (t5 + 1) / (t5 + n5 + 2);
              for (b2 && (i4 = t5, t5 = n5, n5 = i4, e4 = 1 - e4), r3 = 4450147717014403e-323, o3 = 100, s2 = t5 - 1, c2 = 1, w(f2 = 1 - (a2 = t5 + n5) * e4 / (u2 = t5 + 1)) < r3 && (f2 = r3), l2 = f2 = 1 / f2, h2 = 1, d2 = 2; h2 <= o3; h2++, d2 += 2) if (w(f2 = 1 + (v2 = h2 * (n5 - h2) * e4 / ((s2 + d2) * (t5 + d2))) * f2) < r3 && (f2 = r3), w(c2 = 1 + v2 / c2) < r3 && (c2 = r3), l2 *= (f2 = 1 / f2) * c2, w(f2 = 1 + (v2 = -(t5 + h2) * (a2 + h2) * e4 / ((t5 + d2) * (u2 + d2))) * f2) < r3 && (f2 = r3), w(c2 = 1 + v2 / c2) < r3 && (c2 = r3), l2 *= p2 = (f2 = 1 / f2) * c2, w(_(p2 - 1)) < 5e-324) return g2 = m2 * l2 / t5, b2 ? 1 - g2 : g2;
              return I;
            }
            function pn(t5, n5) {
              var e4, i4, r3, a2, u2 = o2(n5);
              for (e4 = 0; e4 < u2; e4++) (i4 = n5[e4]) !== Y && (a2 = (r3 = i4 - t5.M) / (t5.N + 1), t5.M += a2, t5.Q += t5.N * r3 * a2, t5.N++, t5.h9t += i4);
            }
            function gn(t5) {
              t5.sort((function(t6, n5) {
                return t6 - n5;
              }));
            }
            function mn(t5, n5) {
              var e4, i4;
              for (e4 = 0; e4 < o2(t5); e4++) (i4 = t5[e4]) !== Y && n5.push(i4);
              gn(n5);
            }
            function bn(t5) {
              var n5, e4 = [];
              for (n5 = 0; n5 < o2(t5); n5++) mn(t5[n5], e4);
              return e4;
            }
            function yn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2, p2 = Math.expm1 || function(t6) {
                return y(t6) - 1;
              }, g2 = Math.log1p || function(t6) {
                return C(1 + t6);
              };
              return t5 <= 0 ? 0 : t5 >= 1 ? 1 : 1 === e4 ? l(t5, n5) : 1 === n5 ? -p2(e4 * g2(-t5)) : (r3 = 0.5 - t5 + 0.5, o3 = g2(-t5), a2 = t5, u2 = C(t5), s2 = n5, c2 = e4, (f2 = t5 > n5 / (n5 + e4)) && (s2 = e4, c2 = n5, a2 = r3, r3 = t5, u2 = o3, o3 = C(t5)), i4 = wn(a2, s2, c2), i4 /= s2, i4 *= v2 = s2 > 1 && c2 > 1 && (h2 = s2 / (s2 + c2)) < 0.97 && (d2 = c2 / (s2 + c2)) < 0.97 ? Mn(a2, s2, c2) * a2 * r3 : y(s2 * u2 + c2 * o3 - Cn(false, s2, c2)), f2 && (i4 = 0.5 - i4 + 0.5), i4 > 1 && (i4 = 1), i4 < 0 && (i4 = 0), i4);
            }
            function wn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = 222045e-21, v2 = 1, p2 = 1, g2 = 1 - (n5 + e4) / (n5 + 1) * t5;
              0 === g2 ? (i4 = 0, r3 = 1, a2 = 1) : a2 = (i4 = 1) * (r3 = 1 / g2), o3 = 1, u2 = 1, s2 = 5e4, c2 = false;
              do {
                i4 = (v2 = (i4 + (l2 = u2 * (e4 - u2) * t5 / (((f2 = n5 + 2 * u2) - 1) * f2)) * v2) * r3) + (h2 = -(n5 + u2) * (n5 + e4 + u2) * t5 / (f2 * (f2 + 1))) * i4 * r3, 0 !== (g2 = (p2 = (g2 + l2 * p2) * r3) + h2 * g2 * r3) && (c2 = w(a2 - (o3 = i4 * (r3 = 1 / g2))) < w(a2) * d2), a2 = o3, u2 += 1;
              } while (u2 < s2 && !c2);
              return a2;
            }
            function Mn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2;
              return 1 === n5 ? 1 === e4 ? 1 : 2 === e4 ? -2 * t5 + 2 : t5 <= 0.01 ? e4 + e4 * y((e4 - 1) * C(1 - t5)) - 1 : e4 * l(0.5 - t5 + 0.5, e4 - 1) : 1 === e4 ? 2 === n5 ? n5 * t5 : n5 * l(t5, n5 - 1) : t5 <= 0 && !(n5 < 1 && 0 === t5) || t5 >= 1 && !(e4 < 1 && 1 === t5) ? 0 : (i4 = C(tn(2)), r3 = C(tn(1)), o3 = C(t5 < 0.1 ? 1 + t5 : 1 - t5), u2 = (n5 - 1) * (a2 = C(t5)), s2 = (e4 - 1) * o3, c2 = Cn(false, n5, e4), u2 < i4 && u2 > r3 && s2 < i4 && s2 > r3 && c2 < i4 && c2 > r3 && u2 + s2 < i4 && u2 + s2 > r3 ? l(t5, n5 - 1) * l(0.5 - t5 + 0.5, e4 - 1) / Cn(true, n5, e4) : y(u2 + s2 - c2));
            }
            function Cn(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = e4, d2 = n5, v2 = 171.624376956302;
              return n5 > e4 && (i4 = h2, h2 = d2, d2 = i4), t5 && h2 + d2 < v2 ? Tn(h2) / Tn(h2 + d2) * Tn(d2) : (o3 = (r3 = 6.02468004077673) - 0.5, a2 = An(h2), a2 /= An(h2 + d2), a2 *= An(d2), u2 = h2 + d2 + o3, s2 = t5 ? a2 * M(u2 / (h2 + o3) / (d2 + o3)) : C(a2) + 0.5 * (C(u2) - C(h2 + o3) - C(d2 + o3)), f2 = h2 / (d2 + o3), l2 = -h2 * C(1 + (c2 = d2 / (h2 + o3))) - d2 * C(1 + f2) - o3, t5 ? y(l2) * s2 : l2 + s2);
            }
            function Sn(t5) {
              var n5 = An(t5), e4 = 6.02468004077673, i4 = t5 + e4 - 0.5, r3 = l(i4, t5 / 2 - 0.25);
              return n5 *= r3, n5 /= y(i4), n5 *= r3, t5 <= 20 && t5 === O.d9t(t5) && (n5 = S(n5)), n5;
            }
            function Tn(t5) {
              var n5, e4, i4 = C(m), r3 = C(tn(2)), o3 = 171.624376956302;
              return t5 > o3 ? I : t5 >= 1 ? Sn(t5) : t5 >= 0.5 ? Sn(t5 + 1) / t5 : t5 >= -0.5 ? (n5 = Sn(t5 + 2) - C(t5 + 1) - C(w(t5))) >= r3 ? I : Sn(t5 + 2) / (t5 + 1) / t5 : (e4 = Sn(1 - t5) + C(w(p(m * t5)))) - i4 >= r3 ? 0 : e4 < 0 && i4 - e4 > r3 ? I : y(i4 - e4) * (p(m * t5) < 0 ? -1 : 1);
            }
            function xn(t5) {
              var n5;
              return t5 >= 171.624376956302 ? Sn(t5) : t5 >= 1 ? C(Sn(t5)) : t5 >= 0.5 ? C(Sn(t5 + 1) / t5) : Sn(t5 + 2) - C(t5 + 1) - C(t5);
            }
            function An(t5) {
              var n5, e4, i4, r3, o3 = [2353137688041076e-5, 429198036426491e-4, 3571195923735567e-5, 1792103442603721e-5, 6039542586352028e-6, 14397204073117216e-7, 24887455786205417e-8, 31426415585400194e-9, 2.8763706289353725e6, 186056.26539522348, 8071.672002365816, 210.82427775157936, 2.5066282746310002], a2 = [0, 39916800, 120543840, 150917976, 105258076, 45995730, 13339535, 2637558, 357423, 32670, 1925, 66, 1];
              if (t5 <= 1) for (n5 = o3[12], e4 = a2[12], i4 = 11; i4 >= 0; --i4) n5 *= t5, n5 += o3[i4], e4 *= t5, e4 += a2[i4];
              else for (r3 = 1 / t5, n5 = o3[0], e4 = a2[0], i4 = 1; i4 <= 12; ++i4) n5 *= r3, n5 += o3[i4], e4 *= r3, e4 += a2[i4];
              return n5 / e4;
            }
            function In(t5, n5) {
              return t5 <= 0 ? 0 : kn(n5 / 2, t5 / 2);
            }
            function kn(t5, n5) {
              var e4 = t5 * C(n5) - n5 - xn(t5), i4 = y(e4);
              return n5 > t5 + 1 ? 1 - i4 * jn(t5, n5) : i4 * Nn(t5, n5);
            }
            function Nn(t5, n5) {
              var e4 = 0.5 * tn(3), i4 = t5, r3 = 1 / t5, o3 = r3, a2 = 1;
              do {
                o3 += r3 = r3 * n5 / (i4 += 1), a2 += 1;
              } while (r3 / o3 > e4 && a2 <= 1e4);
              return a2 > 1e4 ? x : o3;
            }
            function jn(t5, n5) {
              var e4, i4, r3, o3, a2 = tn(3), u2 = 0.5 * a2, s2 = 1 / a2, c2 = 0, f2 = 1 - t5, l2 = n5 + 2 - t5, h2 = n5 + 1, d2 = 1, v2 = l2 * n5, p2 = n5, g2 = h2 / v2, m2 = false;
              do {
                i4 = h2 * (l2 += 2) - d2 * (e4 = (f2 += 1) * (c2 += 1)), 0 !== (r3 = v2 * l2 - p2 * e4) && (m2 = w((g2 - (o3 = i4 / r3)) / o3) <= u2, g2 = o3), d2 = h2, h2 = i4, p2 = v2, v2 = r3, w(i4) > s2 && (d2 *= a2, h2 *= a2, p2 *= a2, v2 *= a2);
              } while (!m2 && c2 < 1e4);
              return m2 ? g2 : x;
            }
            function Dn(t5, n5) {
              var e4, i4;
              if (t5 <= 0) return 0;
              if (n5 * t5 > 1391e3) e4 = y((0.5 * n5 - 1) * C(0.5 * t5) - 0.5 * t5 - C(2) - xn(0.5 * n5));
              else {
                for (n5 % 2 < 0.5 ? (e4 = 0.5, i4 = 2) : (e4 = 1 / M(2 * t5 * m), i4 = 1); i4 < n5; ) e4 *= t5 / i4, i4 += 2;
                e4 = t5 >= 1425 ? y(C(e4) - t5 / 2) : e4 * y(-t5 / 2);
              }
              return e4;
            }
            function _n(t5, n5, e4, i4) {
              var r3, o3, a2, u2 = E(e4, t5);
              return L(u2) ? u2 : (r3 = _(u2), u2 = E(i4 - e4, n5 - t5), L(u2) ? u2 : (o3 = _(u2), u2 = E(i4, n5), L(u2) ? u2 : (a2 = _(u2), N(r3 * o3 / a2))));
            }
            function On(t5, n5, e4) {
              var i4, r3, o3 = yn(n5 / (n5 + t5 * t5), n5 / 2, 0.5);
              switch (e4) {
                case 1:
                  return 0.5 * o3;
                case 2:
                  return o3;
                case 3:
                  return l(1 + t5 * t5 / n5, -(n5 + 1) / 2) / (M(n5) * Cn(true, 0.5, n5 / 2));
                case 4:
                  return r3 = 0.5 * yn(i4 = n5 / (t5 * t5 + n5), 0.5 * n5, 0.5), t5 < 0 ? r3 : 1 - r3;
              }
              return x;
            }
            function En(t5, n5, e4) {
              return { Sl: function(i4) {
                return t5 - On(i4, n5, e4);
              } };
            }
            function Rn(t5, n5, e4) {
              var i4 = { l9t: false }, r3 = En(t5, n5, e4), o3 = ln(r3, 0.5 * n5, n5, i4);
              return i4.l9t ? A : o3;
            }
            function Ln(t5, n5) {
              var e4 = false, i4 = 0, r3, a2, u2, s2, c2;
              for (a2 = 0; a2 < o2(n5); a2++) for (c2 = n5[a2], u2 = 0; u2 < o2(c2); u2++) if (s2 = c2[u2], R(s2) || U(s2) || H(s2)) r3 = H(s2) ? 0 : _(s2), (!e4 || t5 && r3 > i4 || !t5 && r3 < i4) && (i4 = r3), e4 = true;
              else if (L(s2)) return s2;
              return i4;
            }
            function Fn(t5, n5, e4, i4) {
              var r3, a2, u2, s2 = 0, c2 = 0, f2 = 0;
              for (r3 = 0; r3 < o2(n5); r3++) (a2 = n5[r3]) !== Y && (a2 < e4 ? s2++ : e4 < a2 ? f2++ : c2++);
              return 0 === c2 ? A : (u2 = (0 === i4 ? f2 : s2) + 1, t5 ? u2 : u2 + (c2 - 1) / 2);
            }
            function Bn(t5, n5, e4) {
              var i4, u2, s2, c2, f2, l2, h2, d2;
              for (s2 = 0; s2 < o2(t5); s2++) for (l2 = !!(f2 = t5[s2]).isArray, h2 = !!f2.isReference, c2 = 0; c2 < o2(f2); c2++) if ((u2 = f2[c2]) === a) ;
              else if (H(u2)) {
                if (r2.ExcelCompatibleCalcMode) {
                  if (l2) continue;
                  if (h2) {
                    n5.n++;
                    continue;
                  }
                }
                if (d2 = { value: 0 }, r2.Convert.sJ(u2, d2)) i4 = d2.value, n5.v9t += i4, n5.m9t += i4 * i4;
                else if (!f2.isArray && !f2.isReference) return x;
                n5.n++;
              } else {
                if (L(u2)) return u2;
                !R(u2) || e4 && "boolean" == typeof u2 && f2.isArray || (i4 = _(u2), n5.v9t += i4, n5.m9t += i4 * i4, n5.n++);
              }
            }
            function Pn(t5, n5, e4, i4) {
              var r3, o3 = { v9t: 0, m9t: 0, n: 0 }, a2 = Bn(t5, o3, i4);
              return L(a2) ? a2 : o3.n <= n5 ? T : (r3 = h(0, (o3.n * o3.m9t - o3.v9t * o3.v9t) / (o3.n * (o3.n - n5))), r3 = e4 ? M(r3) : r3, N(r3));
            }
            function Gn(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2 = 0, f2 = 0, l2 = 0, h2 = 0, d2 = o2(n5);
              if (d2 !== o2(e4)) return A;
              for (a2 = 0; a2 < d2; a2++) i4 = n5[a2], r3 = e4[a2], i4 !== Y && r3 !== Y && (c2 += i4, f2 += r3, h2++);
              if (h2 <= 1) return T;
              for (u2 = c2 / h2, s2 = f2 / h2, a2 = 0; a2 < d2; a2++) i4 = n5[a2], r3 = e4[a2], i4 !== Y && r3 !== Y && (l2 += (i4 - u2) * (r3 - s2));
              return N(t5 ? l2 / h2 : l2 / (h2 - 1));
            }
            function Un(t5, n5) {
              var e4, i4, r3, a2, u2 = t5 ? 1 : 0, s2 = 0;
              for (r3 = 0; r3 < o2(n5); r3++) for (e4 = n5[r3], a2 = 0; a2 < o2(e4); a2++) if ((i4 = e4[a2]) !== Y) {
                if (i4 <= 0) return I;
                u2 = t5 ? u2 * i4 : u2 + 1 / i4, s2++;
              }
              return t5 ? s2 <= 0 ? T : N(l(u2, 1 / s2)) : 0 === u2 ? T : N(s2 / u2);
            }
            function Hn(t5, n5, e4, i4, o3) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, S2, T2, x2, k2, N2, D2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2 = n5.rowCount, X2 = n5.colCount;
              if (t5 ? e4 = e4 !== u ? j(e4, 1, false, true, true) : n5 : (s2 = e4 !== u ? e4 : (function(t6, n6) {
                var e5 = [];
                for (c2 = 0; c2 < t6; c2++) for (e5[c2] = [], f2 = 0; f2 < n6; f2++) e5[c2][f2] = c2 * n6 + f2 + 1;
                return new r2.CalcArray(e5);
              })(J2, X2), e4 = j(s2, 1, false, true, true)), l2 = e4.rowCount, h2 = e4.colCount, J2 === l2 && X2 === h2 && (i4 || !o3)) {
                for (p2 = t5 ? l2 * h2 : _(l2 * h2), D2 = 0, O2 = 0, E2 = 0, R2 = 0, L2 = 0, F2 = void 0, c2 = 0; c2 < l2; c2++) for (f2 = 0; f2 < h2; f2++) g2 = e4[c2][f2], m2 = n5[c2][f2], t5 && (m2 = C(m2)), D2 += g2, O2 += g2 * g2, E2 += m2, R2 += m2 * m2, L2 += g2 * m2;
                return x2 = p2 * O2 - D2 * D2, v2 = i4 ? (p2 * L2 - D2 * E2) / x2 : L2 / O2, F2 = i4 ? (E2 * O2 - D2 * L2) / x2 : 0, t5 && (v2 = y(v2), F2 = y(F2)), S2 = [[v2, F2]], o3 && (S2[1] = [], S2[2] = [], S2[3] = [], S2[4] = [], U2 = R2 - F2 * E2 - v2 * L2, H2 = (G2 = p2 * L2 - D2 * E2) * G2 / ((B2 = p2 * O2 - D2 * D2) * (P2 = p2 * R2 - E2 * E2)), p2 < 3 ? (S2[1][0] = I, S2[1][1] = I, S2[2][1] = I, S2[3][0] = I) : (S2[1][0] = M(U2 * p2 / (B2 * (p2 - 2))), S2[1][1] = M(U2 * O2 / (B2 * (p2 - 2))), S2[2][1] = M((P2 - G2 * G2 / B2) / (p2 * (p2 - 2))), S2[3][0] = 1 === H2 ? I : H2 * (p2 - 2) / (1 - H2)), S2[2][0] = H2, S2[3][1] = p2 - 2, S2[4][0] = P2 / p2 - U2, S2[4][1] = U2), new r2.CalcArray(S2);
              }
              if (1 === X2 && J2 === l2 || 1 === J2 && X2 === h2) {
                if (m2 = [], g2 = [], p2 = l2, v2 = h2, 1 === X2) {
                  for (c2 = 0; c2 < p2; c2++) m2[c2] = n5[c2][0], t5 && (m2[c2] = C(m2[c2]));
                  g2 = e4;
                } else {
                  for (c2 = 0; c2 < v2; c2++) m2[c2] = n5[0][c2], t5 && (m2[c2] = C(m2[c2]));
                  for (c2 = 0; c2 < v2; c2++) for (g2[c2] = [], f2 = 0; f2 < p2; f2++) g2[c2][f2] = e4[f2][c2];
                }
                for (V2 = [], d2 = 0; d2 < v2 + 1; d2++) V2[d2] = [];
                for (b2 = 0; b2 < v2 + 1; b2++) for (w2 = 0; w2 < v2 + 2; w2++) V2[b2][w2] = 0;
                for (z2 = [], b2 = 0; b2 < v2 + 2; b2++) z2[b2] = 0;
                for (Y2 = o3 ? [] : a, d2 = 0; d2 < p2; d2++) for (z2[v2 + 1] += m2[d2] * m2[d2], V2[0][v2 + 1] += m2[d2], z2[0] = V2[0][v2 + 1], c2 = 0; c2 < v2; c2++) for (V2[0][c2 + 1] += g2[d2][c2], V2[c2 + 1][0] = V2[0][c2 + 1], V2[c2 + 1][v2 + 1] += g2[d2][c2] * m2[d2], z2[c2 + 1] = V2[c2 + 1][v2 + 1], f2 = c2; f2 < v2; f2++) V2[f2 + 1][c2 + 1] += g2[d2][c2] * g2[d2][f2], V2[c2 + 1][f2 + 1] = V2[f2 + 1][c2 + 1];
                if (V2[0][0] = p2, o3) {
                  for (b2 = 0; b2 < v2 + 1; b2++) for (Y2[b2] = [], w2 = 0; w2 < v2 + 1; w2++) Y2[b2][w2] = 0;
                  for (c2 = 0; c2 < v2 + 1; c2++) Y2[c2][c2] = 1;
                }
                for (c2 = Z2 = i4 ? 0 : 1; c2 < v2 + 1; c2++) {
                  if (0 === V2[c2][c2]) {
                    for (T2 = false, f2 = c2 + 1; !T2 && f2 < v2 + 1; f2++) if (0 !== V2[f2][c2]) {
                      for (d2 = 0; d2 < v2 + 2; d2++) x2 = V2[c2][d2], V2[c2][d2] = V2[f2][d2], V2[f2][d2] = x2;
                      if (o3) for (d2 = 0; d2 < v2 + 1; d2++) x2 = Y2[c2][d2], Y2[c2][d2] = Y2[f2][d2], Y2[f2][d2] = x2;
                      T2 = true;
                    }
                    if (!T2) return I;
                  }
                  for (k2 = 1 / V2[c2][c2], d2 = Z2; d2 < v2 + 2; d2++) V2[c2][d2] *= k2;
                  if (o3) for (d2 = Z2; d2 < v2 + 1; d2++) Y2[c2][d2] *= k2;
                  for (f2 = Z2; f2 < v2 + 1; f2++) if (f2 !== c2) {
                    for (k2 = -V2[f2][c2], d2 = Z2; d2 < v2 + 2; d2++) V2[f2][d2] += k2 * V2[c2][d2];
                    if (o3) for (d2 = Z2; d2 < v2 + 1; d2++) Y2[f2][d2] += k2 * Y2[c2][d2];
                  }
                  i4 || (V2[0][v2 + 1] = 0);
                }
                for (S2 = t5 ? [[], v2 + 1] : [[]], c2 = 0; c2 < v2 + 1; c2++) S2[0][c2] = t5 ? y(V2[v2 - c2][v2 + 1]) : V2[v2 - c2][v2 + 1];
                if (o3) {
                  if (t5) S2[1] = [], S2[2] = [], S2[3] = [], S2[4] = [];
                  else for (b2 = 1; b2 < 5; b2++) for (S2[b2] = [], w2 = 0; w2 < v2 + 1; w2++) S2[b2][w2] = 0;
                  for (W2 = void 0, Q2 = void 0, K2 = void 0, Q2 = z2[v2 + 1] - z2[0] * z2[0] / p2, W2 = z2[v2 + 1], c2 = 0; c2 < v2 + 1; c2++) W2 -= V2[c2][v2 + 1] * z2[c2];
                  if (K2 = Q2 - W2, S2[2][0] = 0 === Q2 ? I : K2 / Q2, S2[4][0] = K2, S2[4][1] = W2, 0 === (x2 = i4 ? p2 - v2 - 1 : p2 - v2)) {
                    for (c2 = 0; c2 < v2 + 1; c2++) S2[1][c2] = I;
                    S2[2][1] = I;
                  } else {
                    for (N2 = W2 / _(x2), i4 || (S2[1][v2] = A), c2 = Z2; c2 < v2 + 1; c2++) S2[1][v2 - c2] = M(N2 * Y2[c2][c2]);
                    S2[2][1] = M(N2);
                  }
                  for (S2[3][0] = 0 === W2 ? I : _(x2) * K2 / (W2 * _(v2)), S2[3][1] = _(x2), c2 = 2; c2 < 5; c2++) for (f2 = 2; f2 < v2 + 1; f2++) S2[c2][f2] = A;
                }
                return new r2.CalcArray(S2);
              }
              return I;
            }
            function Vn(t5, n5) {
              var e4, i4, r3, a2, u2, s2 = 0, c2 = 0, f2 = 0, l2 = [];
              for (r3 = 0; r3 < o2(n5); r3++) for (u2 = n5[r3], l2.push(u2), a2 = 0; a2 < o2(u2); a2++) (e4 = u2[a2]) !== Y && (s2 += e4, f2++);
              for (i4 = s2 / f2, r3 = 0; r3 < o2(n5); r3++) for (u2 = l2[r3], a2 = 0; a2 < o2(u2); a2++) (e4 = u2[a2]) !== Y && (c2 += t5 ? (e4 - i4) * (e4 - i4) : w(e4 - i4));
              return t5 ? N(c2) : 0 === f2 ? T : N(c2 / f2);
            }
            function zn(t5, n5, e4, o3) {
              var a2, s2;
              for (n5 = n5 !== u ? j(n5, 0, false, true, false) : t5, e4 = e4 !== u ? j(e4, 0, false, true, false) : n5, a2 = 0; a2 < t5.rowCount; a2++) for (s2 = 0; s2 < t5.colCount; s2++) if (!R(t5[a2][s2])) return x;
              for (a2 = 0; a2 < n5.rowCount; a2++) for (s2 = 0; s2 < n5.colCount; s2++) if (!R(n5[a2][s2])) return x;
              for (a2 = 0; a2 < e4.rowCount; a2++) for (s2 = 0; s2 < e4.colCount; s2++) if (!R(e4[a2][s2])) return x;
              return i3.Common.eit(t5, n5, e4, o3, _, r2.CalcArray, x, A);
            }
            function Yn(t5, n5, e4, o3) {
              return n5 = n5 !== u ? j(n5, 1, false, true, true) : t5, e4 = e4 !== u ? j(e4, 1, false, true, true) : n5, i3.Common.iit(t5, n5, e4, o3, r2.CalcArray, I, A);
            }
            function Zn(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2 = 0, f2 = 0, l2 = 0, h2 = 0, d2 = o2(n5), v2 = 0;
              if (d2 !== o2(e4)) return A;
              for (i4 = 0; i4 < d2; i4++) r3 = n5[i4], a2 = e4[i4], r3 !== Y && a2 !== Y && (c2 += r3, f2 += a2, l2 += a2 * a2, h2 += a2 * r3, v2++);
              return 0 === v2 || v2 * l2 - f2 * f2 === 0 ? T : N((s2 = c2 / v2 - (u2 = (v2 * h2 - f2 * c2) / (v2 * l2 - f2 * f2)) * (f2 / v2)) + u2 * t5);
            }
            function Wn() {
              return F(arguments, 2, 1);
            }
            function Qn() {
              return B(arguments, 2, 7);
            }
            function Kn(t5, n5) {
              return P([t5, n5], 16);
            }
            function Jn() {
              return F(arguments, 2, 4);
            }
            function Xn() {
              return Ln(true, arguments);
            }
            function qn() {
              return F(arguments, 2, 5);
            }
            function $n() {
              return Ln(false, arguments);
            }
            function te(t5, n5) {
              return P([t5, n5], 14);
            }
            function ne(t5, n5) {
              return P([t5, n5], 15);
            }
            function ee() {
              var t5, n5, e4, i4, r3 = arguments, u2 = 0, s2 = 0;
              for (t5 = 0; t5 < o2(r3); t5++) for (i4 = r3[t5], n5 = 0; n5 < o2(i4); n5++) e4 = i4[n5], R(e4, true) || U(e4) ? (u2 += _(e4), s2++) : (e4 === a || H(e4)) && s2++;
              return 0 === s2 ? T : N(u2 / s2);
            }
            function ie() {
              return P(arguments, 12);
            }
            function re() {
              return P(arguments, 13);
            }
            function oe() {
              return Un(true, arguments);
            }
            function ae() {
              return Un(false, arguments);
            }
            function ue(t5, n5) {
              var e4, i4, r3, o3 = 0, a2 = [];
              for (mn(t5, a2), e4 = Kt(a2), r3 = i4 = f((e4 * n5 / 2).toString()); r3 < e4 - i4; r3++) o3 += _(a2[r3]);
              return o3 / (e4 - 2 * i4);
            }
            function se(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = 0, g2 = n5.rowCount, m2 = n5.colCount;
              for (e4 = 0; e4 < g2; e4++) for (i4 = 0; i4 < m2; i4++) n5[e4][i4] !== Y && p2++;
              for (a2 = t5.rowCount, u2 = t5.colCount, s2 = [], c2 = [], f2 = p2 + 1, p2 = 0, e4 = 0; e4 < g2; e4++) for (i4 = 0; i4 < m2; i4++) (o3 = n5[e4][i4]) !== Y && (s2[p2] = _(o3), p2++);
              for (l2 = s2.slice(0), gn(s2), e4 = 0; e4 < f2; e4++) c2[e4] = [0];
              for (e4 = 0; e4 < a2; e4++) for (i4 = 0; i4 < u2; i4++) if (o3 = t5[e4][i4], R(o3)) {
                for (h2 = _(o3), d2 = false, v2 = 0; !d2 && v2 < p2; v2++) h2 <= s2[v2] && (c2[l2.indexOf(s2[v2])][0]++, d2 = true);
                d2 || c2[p2][0]++;
              }
              return new r2.CalcArray(c2);
            }
            function ce(t5, n5, e4) {
              return Fn(true, n5, t5, e4);
            }
            function fe() {
              var t5, n5, e4, i4, r3, a2, u2 = arguments, s2 = 0, c2 = 0, f2 = 0, h2 = 0, d2 = o2(u2), v2 = [];
              if (d2 > 0) {
                for (a2 = u2[0], v2.push(a2), i4 = 0; i4 < o2(a2); i4++) (t5 = a2[i4]) !== Y && (s2 += t5, c2 += t5 * t5, h2++);
                if (h2 <= 3) return T;
                if (n5 = s2 / h2, 0 === (e4 = M((h2 * c2 - s2 * s2) / (h2 * (h2 - 1))))) return T;
                for (r3 = 0; r3 < d2; r3++) for (a2 = v2[r3], i4 = 0; i4 < o2(a2); i4++) (t5 = a2[i4]) !== Y && (f2 += l((t5 - n5) / e4, 4));
                return N(h2 * (h2 + 1) * f2 / ((h2 - 1) * (h2 - 2) * (h2 - 3)) - 3 * (h2 - 1) * (h2 - 1) / ((h2 - 2) * (h2 - 3)));
              }
            }
            function le(t5, n5, e4) {
              return qt(t5, n5, e4, true);
            }
            function he(t5, n5, e4) {
              return qt(t5, n5, e4, false);
            }
            function de(t5, n5) {
              return P([t5, n5], 17);
            }
            function ve() {
              return F(arguments, 2, 2);
            }
            function pe() {
              return F(arguments, 2, 3);
            }
            function ge(t5) {
              var n5, e4 = 0;
              for (n5 = 0; n5 < o2(t5); n5++) t5[n5] !== a && "" !== t5[n5] || e4++;
              return e4;
            }
            function me(t5, n5, e4) {
              var i4 = t5.source && t5.source.Lbt, o3 = 0, a2 = i4.S9t || new r2.Functions.RangeCriteriaManager(), u2 = t5.Xkt;
              return a2.T9t(n5, e4[0], u2 && u2.delay ? -1 : 1).RDt((function() {
                o3++;
              })), o3;
            }
            function be() {
              return Vn(false, arguments);
            }
            function ye() {
              return Pn(arguments, 1, true, true);
            }
            function we() {
              return B(arguments, 2, 8);
            }
            function Me() {
              return Pn(arguments, 0, true, false);
            }
            function Ce() {
              return B(arguments, 2, 10);
            }
            function Se() {
              return Pn(arguments, 1, false, false);
            }
            function Te() {
              return B(arguments, 2, 11);
            }
            function xe() {
              return Pn(arguments, 0, false, false);
            }
            function Ae(t5, n5) {
              return Gn(true, t5, n5);
            }
            function Ie() {
              return Vn(true, arguments);
            }
            function ke(t5, n5, e4) {
              var i4 = bi(t5 / 2);
              return L(i4) ? i4 : -_(i4) * (n5 / M(e4));
            }
            function Ne(t5, n5, e4) {
              return 1 === e4 ? T : n5 * Rn(t5, e4 - 1, 2) / M(e4);
            }
            function je(t5, n5) {
              var e4, i4, r3, a2, u2 = 0, s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = o2(t5);
              if (h2 !== o2(n5)) return A;
              for (a2 = 0; a2 < h2; a2++) e4 = t5[a2], (i4 = n5[a2]) !== Y && e4 !== Y && (u2 += e4, s2 += i4, c2 += i4 * i4, f2 += i4 * e4, l2++);
              return 0 === l2 || l2 * c2 - s2 * s2 === 0 ? T : N(u2 / l2 - (r3 = (l2 * f2 - s2 * u2) / (l2 * c2 - s2 * s2)) * (s2 / l2));
            }
            function De(t5, n5, e4, i4) {
              return Hn(false, t5, n5, e4, i4);
            }
            function _e(t5, n5) {
              var e4, i4, r3, a2, u2, s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = 0, d2 = o2(n5);
              if (d2 !== o2(t5)) return A;
              for (e4 = 0; e4 < d2; e4++) i4 = t5[e4], (r3 = n5[e4]) === Y || i4 === Y || L(r3) || L(i4) || (s2 += a2 = _(i4), c2 += u2 = _(r3), f2 += u2 * u2, l2 += u2 * a2, h2++);
              return h2 * f2 - c2 * c2 === 0 ? T : N((h2 * l2 - c2 * s2) / (h2 * f2 - c2 * c2));
            }
            function Oe(t5, n5, e4, i4) {
              return Hn(true, t5, n5, e4, i4);
            }
            function Ee(t5, n5) {
              var e4, i4, r3, a2, u2, s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = 0, d2 = 0, v2 = o2(t5);
              if (v2 !== o2(n5)) return A;
              for (r3 = 0; r3 < v2; r3++) a2 = t5[r3], u2 = n5[r3], a2 !== Y && u2 !== Y && (s2 += i4 = a2, c2 += i4 * i4, f2 += e4 = u2, l2 += e4 * e4, h2 += e4 * i4, d2++);
              return d2 * (d2 - 2) == 0 || d2 * l2 - f2 * f2 === 0 ? T : M((d2 * c2 - s2 * s2 - (d2 * h2 - f2 * s2) * (d2 * h2 - f2 * s2) / (d2 * l2 - f2 * f2)) / (d2 * (d2 - 2)));
            }
            function Re(t5) {
              var n5, e4 = t5, i4 = e4 + 5.5;
              return i4 -= (e4 + 0.5) * C(i4), n5 = 1.000000000190015 + 76.18009172947146 / (t5 + 1), n5 -= 86.50532032941678 / (t5 + 2), n5 += 24.01409824083091 / (t5 + 3), n5 -= 1.231739572450155 / (t5 + 4), n5 += 0.001208650973866179 / (t5 + 5), C(2.506628274631001 * (n5 -= 5395239384953e-18 / (t5 + 6)) / e4) - i4;
            }
            function Le(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2, f2, l2, h2;
              return t5 < i4 || r3 < t5 || i4 === r3 ? I : (o3 = (t5 - i4) / (r3 - i4), a2 = Re(n5 + e4), u2 = Re(n5), s2 = Re(e4), c2 = C(o3), f2 = C(1 - o3), l2 = y(a2 - u2 - s2 + n5 * c2 + e4 * f2), h2 = o3 < (n5 + 1) / (n5 + e4 + 2) ? l2 * $t(n5, e4, o3) / n5 : 1 - l2 * $t(e4, n5, 1 - o3) / e4, N(h2));
            }
            function Fe(t5, n5, e4, i4, r3, o3) {
              if (t5 < r3 || o3 < t5 || r3 === o3) return I;
              var a2 = (t5 - r3) / (o3 - r3);
              return i4 ? yn(a2, n5, e4) : Mn(a2, n5, e4) / (o3 - r3);
            }
            function Be(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2, f2, d2, v2, p2, g2, m2, b2, S2, T2, x2, A2, I2, k2, j2, D2 = 2.30753, _2 = 0.27061, O2 = 0.99229, E2 = 0.04481, R2 = 3e-308, L2 = 1e-300, F2 = R2, B2 = 1 - 222e-18, P2 = 5, G2 = 6, U2 = 2, H2 = sn(n5, e4);
              for (t5 <= 0.5 ? (s2 = t5, v2 = n5, g2 = e4, o3 = 0) : (s2 = 1 - t5, v2 = e4, g2 = n5, o3 = 1), A2 = (m2 = M(-C(s2 * s2))) - (D2 + _2 * m2) / (1 + (O2 + E2 * m2) * m2), v2 > 1 && g2 > 1 ? (x2 = A2 * M((d2 = 2 / ((b2 = 1 / (v2 + v2 - 1)) + (S2 = 1 / (g2 + g2 - 1)))) + (m2 = (A2 * A2 - 3) / 6)) / d2 - (S2 - b2) * (m2 + P2 / G2 - U2 / (3 * d2)), j2 = v2 / (v2 + g2 * y(x2 + x2))) : j2 = (S2 = (m2 = g2 + g2) * l(1 - (S2 = 1 / (9 * g2)) + A2 * M(S2), 3)) <= 0 ? 1 - y((C((1 - s2) * g2) + H2) / g2) : (S2 = (4 * v2 + m2 - U2) / S2) <= 1 ? y((C(s2 * v2) + H2) / v2) : 1 - U2 / (S2 + 1), m2 = 1 - v2, S2 = 1 - g2, I2 = 0, c2 = 1, j2 < F2 ? j2 = F2 : j2 > B2 && (j2 = B2), k2 = h(L2, l(10, -13 - 2.5 / (v2 * v2) - 0.5 / (s2 * s2))), T2 = p2 = 0, a2 = 0; a2 < 1e3; a2++) {
                for ((A2 = ((A2 = cn(j2, v2, g2)) - s2) * y(H2 + m2 * C(j2) + S2 * C(1 - j2))) * I2 <= 0 && (p2 = h(w(c2), R2)), f2 = 1, u2 = 0; u2 < 1e3; u2++) {
                  if (w(c2 = f2 * A2) < p2 && (T2 = j2 - c2) >= 0 && T2 <= 1) {
                    if (p2 <= k2) return 0 !== o3 && (j2 = 1 - j2), N((r3 - i4) * j2 + i4);
                    if (w(A2) <= k2) return 0 !== o3 && (j2 = 1 - j2), N((r3 - i4) * j2 + i4);
                    if (0 !== T2 && 1 !== T2) break;
                  }
                  f2 /= 3;
                }
                if (T2 === j2) return 0 !== o3 && (j2 = 1 - j2), N((r3 - i4) * j2 + i4);
                j2 = T2, I2 = A2;
              }
              return 0 !== o3 && (j2 = 1 - j2), N((r3 - i4) * j2 + i4);
            }
            function Pe(t5, n5, e4) {
              var i4, r3, o3, a2;
              if (2 * t5 > n5) return Pe(n5 - t5, n5, 1 - e4);
              for (i4 = 0, r3 = 0, o3 = 0, a2 = 1; i4 < t5 || r3 < t5 || o3 < n5 - t5; ) i4 < t5 && a2 < 1 ? a2 *= (n5 - t5 + ++i4) / i4 : r3 < t5 ? (r3++, a2 *= e4) : (o3++, a2 *= 1 - e4);
              return a2;
            }
            function Ge(t5, n5, e4, i4) {
              return i4 * (n5 - t5) / (t5 + 1) * e4 / (1 - e4);
            }
            function Ue(t5, n5, e4, i4) {
              return i4 * t5 / (n5 - t5 + 1) * (1 - e4) / e4;
            }
            function He(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2, f2, l2;
              if (0 === e4 && i4 === t5) return 1;
              if (0 === n5) return 0 === e4 ? 1 : 0;
              if (1 === n5) return i4 === t5 ? 1 : 0;
              if (e4 === i4) return Pe(e4, t5, n5);
              if (e4 <= (r3 = Math.floor(t5 * n5)) && i4 >= r3 ? a2 = Pe(o3 = r3, t5, n5) : (u2 = Pe(e4, t5, n5)) > (s2 = Pe(i4, t5, n5)) ? (o3 = e4, a2 = u2) : (o3 = i4, a2 = s2), 0 === a2) return 0;
              for (c2 = a2, f2 = a2, l2 = o3; l2 < i4 && 0 !== (f2 = Ge(l2, t5, n5, f2)); l2++) c2 += f2;
              for (f2 = a2, l2 = o3; l2 > e4 && 0 !== (f2 = Ue(l2, t5, n5, f2)); l2--) c2 += f2;
              return c2;
            }
            function Ve(t5, n5, e4, i4) {
              return n5 < t5 ? I : i4 ? He(n5, e4, 0, t5) : Pe(t5, n5, e4);
            }
            function ze(t5, n5, e4) {
              if (t5 + n5 - 1 <= 0) return I;
              var i4 = E(t5 + n5 - 1, n5 - 1);
              return L(i4) ? i4 : N(_(i4) * l(e4, n5) * l(1 - e4, t5));
            }
            function Ye(t5, n5, e4, i4) {
              if (t5 + n5 - 1 <= 0) return I;
              if (i4) return 1 - yn(1 - e4, t5 + 1, n5);
              var r3 = l(e4, n5), o3;
              for (o3 = 0; o3 < t5; o3++) r3 *= (o3 + n5) / (o3 + 1) * (1 - e4);
              return r3;
            }
            function Ze(t5, n5, e4) {
              for (var i4, r3, o3 = 0, a2 = t5; o3 + 1 < a2; ) (r3 = He(t5, n5, 0, i4 = v((o3 + a2) / 2))) >= e4 ? a2 = i4 : o3 = i4;
              return a2;
            }
            function We(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2 = C(M(m)), c2 = 1 / M(m), f2 = 0, l2 = t5, h2 = 0.5 * l2, d2 = n5 % 2 == 0;
              if (n5 > 1 && (f2 = y(-h2)), a2 = G(-M(l2)), L(a2)) return a2;
              if (u2 = _(a2), i4 = d2 ? f2 : 2 * u2, n5 > 2) {
                if (l2 = 0.5 * (n5 - 1), r3 = d2 ? 1 : 0.5, h2 > 20) {
                  for (e4 = d2 ? 0 : s2, o3 = C(h2); r3 <= l2; ) e4 = C(r3) + e4, i4 += y(o3 * r3 - h2 - e4), r3 += 1;
                  return i4;
                }
                for (e4 = d2 ? 1 : c2 / M(h2), o3 = 0; r3 <= l2; ) o3 += e4 *= h2 / r3, r3 += 1;
                return o3 * f2 + i4;
              }
              return i4;
            }
            function Qe(t5, n5, e4) {
              return e4 ? In(t5, n5) : Dn(t5, n5);
            }
            function Ke(t5, n5) {
              var e4 = ci(1 - t5, 0.5 * n5, 2);
              return _(e4);
            }
            function Je(t5, n5) {
              return { Sl: function(e4) {
                return t5 - In(e4, n5);
              } };
            }
            function Xe(t5, n5) {
              var e4 = Je(t5, n5), i4 = { l9t: false }, r3 = ln(e4, 0.5 * n5, n5, i4);
              return i4.l9t ? A : r3;
            }
            function qe(t5, n5) {
              var e4, i4, r3, a2, u2 = 0, s2 = t5.rowCount, c2 = t5.colCount;
              if (s2 !== n5.rowCount || c2 !== n5.colCount) return A;
              if (s2 > 1 && c2 > 1) e4 = (s2 - 1) * (c2 - 1);
              else if (s2 > 1 && 1 === c2) e4 = s2 - 1;
              else {
                if (!(1 === s2 && c2 > 1)) return A;
                e4 = c2 - 1;
              }
              for (i4 = 0; i4 < o2(t5); i4++) if (r3 = t5[i4], a2 = n5[i4], r3 !== Y && a2 !== Y) {
                if (0 === a2) return T;
                u2 += (r3 - a2) * (r3 - a2) / a2;
              }
              return u2 < 0 ? I : We(u2, e4);
            }
            function $e(t5, n5) {
              var e4, i4, a2, u2, s2, c2, f2, l2, h2 = r2.ExcelCompatibleCalcMode ? 5 : 1, d2 = j(t5, h2, true, false, false, true), v2 = j(n5, h2, true, false, false, true), p2 = 0, g2 = 0, m2 = 0, b2 = 0, y2 = 0, w2 = o2(v2);
              if (w2 !== o2(d2)) return A;
              for (s2 = 0, c2 = 0; c2 < w2; c2++) {
                if (f2 = d2[c2], l2 = v2[c2], L(f2)) return f2;
                if (L(l2)) return l2;
                f2 !== Y && l2 !== Y && (p2 += f2, g2 += l2, m2 += f2 * f2, b2 += l2 * l2, s2++);
              }
              if (s2 <= 1) return T;
              if (e4 = p2 / s2, i4 = g2 / s2, a2 = M((s2 * m2 - p2 * p2) / (s2 * (s2 - 1))), u2 = M((s2 * b2 - g2 * g2) / (s2 * (s2 - 1))), 0 === a2 || 0 === u2) return T;
              for (c2 = 0; c2 < w2; c2++) f2 = d2[c2], l2 = v2[c2], f2 !== Y && l2 !== Y && (y2 += (f2 - e4) * (l2 - i4));
              return N(y2 / _((s2 - 1) * a2 * u2));
            }
            function ti(t5, n5, e4) {
              var i4 = y(-n5 * t5);
              return N(e4 ? 1 - i4 : n5 * i4);
            }
            function ni(t5, n5, e4) {
              var i4 = n5 * t5 / (n5 * t5 + e4), r3 = 0.5 * n5, o3 = 0.5 * e4, a2 = Le(i4, r3, o3, 0, 1);
              return L(a2) ? a2 : 1 - _(a2);
            }
            function ei(t5, n5, e4, i4) {
              var r3;
              return i4 ? 1 - yn(e4 / (e4 + n5 * t5), e4 / 2, n5 / 2) : l(n5 / e4, n5 / 2) * l(t5, n5 / 2 - 1) / (l(1 + t5 * n5 / e4, (n5 + e4) / 2) * Cn(true, n5 / 2, e4 / 2));
            }
            function ii(t5, n5, e4) {
              var i4 = 1 - t5, r3 = Be(1 - i4, e4 / 2, n5 / 2, 0, 1);
              return L(r3) ? r3 : (1 / _(r3) - 1) * (e4 / n5);
            }
            function ri(t5, n5, e4) {
              var i4 = 1 - t5, r3 = Be(i4, e4 / 2, n5 / 2, 0, 1);
              return L(r3) ? r3 : (1 / _(r3) - 1) * (e4 / n5);
            }
            function oi(t5) {
              return C((1 + t5) / (1 - t5)) / 2;
            }
            function ai(t5) {
              var n5 = y(2 * t5) - 1, e4 = y(2 * t5) + 1;
              return !c(n5) && n5 > 0 && !c(e4) && e4 > 0 ? 1 : n5 / e4;
            }
            function ui(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2 = { N: 0, M: 0, Q: 0, h9t: 0 };
              return pn(s2, t5), o3 = s2.N - 1, 1 === s2.N || 0 === (e4 = s2.Q / (s2.N - 1)) ? T : (s2.N = 0, s2.M = 0, s2.Q = 0, s2.h9t = 0, pn(s2, n5), a2 = s2.N - 1, 1 === s2.N || 0 === (i4 = s2.Q / (s2.N - 1)) ? T : (u2 = ni(e4 / i4, o3, a2), L(u2) ? u2 : ((r3 = 2 * (1 - _(u2))) > 1 && (r3 = 2 - r3), r3)));
            }
            function si(t5, n5, e4, i4) {
              var r3, o3, a2, u2, f2, h2, v2, p2, g2, m2, b2, S2, x2, A2, k2, N2, j2, D2, O2, E2, R2, F2, B2, P2;
              if (false === i4) return r3 = l(e4, n5), s(r3) || !c(r3) ? T : (o3 = 1 / (r3 * an(n5))) * (f2 = (a2 = l(t5, n5 - 1)) * (u2 = y(-t5 / e4)));
              if (E2 = 1 / 3, R2 = 1e8, F2 = 1e37, P2 = -88, (t5 /= e4) <= 0) return I;
              if (n5 > (B2 = 1e3)) return O2 = gi(h2 = 3 * M(n5) * (l(t5 / n5, E2) + 1 / (9 * n5) - 1), 0, 1, true), L(O2) ? O2 : _(O2);
              if (t5 > R2) return 1;
              if (t5 <= 1 || t5 < n5) {
                if (O2 = fi(n5 + 1), L(O2)) return O2;
                S2 = n5 * C(t5) - t5 - _(O2), x2 = 1, D2 = 1, k2 = n5;
                do {
                  D2 += x2 = x2 * t5 / (k2 += 1);
                } while (x2 > 2220446049250313e-31);
                S2 += C(D2), D2 = 0, S2 >= P2 && (D2 = y(S2));
              } else {
                if (O2 = fi(n5), L(O2)) return O2;
                for (S2 = n5 * C(t5) - t5 - _(O2), x2 = 0, h2 = 1, v2 = t5, D2 = (p2 = t5 + 1) / (g2 = t5 * (N2 = (k2 = 1 - n5) + t5 + 1)); ; ) {
                  if (m2 = (N2 += 2) * p2 - (j2 = (k2 += 1) * (x2 += 1)) * h2, w(b2 = N2 * g2 - j2 * v2) > 0) {
                    if (w(D2 - (A2 = m2 / b2)) <= d(2220446049250313e-31, 2220446049250313e-31 * A2)) break;
                    D2 = A2;
                  }
                  h2 = p2, v2 = g2, p2 = m2, g2 = b2, w(m2) >= F2 && (h2 /= F2, v2 /= F2, p2 /= F2, g2 /= F2);
                }
                S2 += C(D2), D2 = 1, S2 >= P2 && (D2 = 1 - y(S2));
              }
              return D2;
            }
            function ci(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2, b2, S2, T2, x2, A2, I2 = 4.67, k2 = 6.66, N2 = 6.73, j2 = 13.32, D2 = 60, O2 = 70, E2 = 84, R2 = 105, F2 = 120, B2 = 127, P2 = 140, G2 = 1175, U2 = 210, H2 = 252, V2 = 2264, Y2 = 294, Z2 = 346, W2 = 420, Q2 = 462, K2 = 606, J2 = 672, X2 = 707, q2 = 735, $2 = 889, tt2 = 932, nt2 = 966, et2 = 1141, it2 = 1182, rt2 = 1278, ot2 = 1740, at2 = 2520, ut2 = 5040, st2 = 5e-7, ct2 = 0.01, ft2 = 5e-7, lt2 = 20, ht2 = 2e-6, dt2 = 0.999998;
              if (t5 < ht2) return 0;
              if (t5 > dt2) return z;
              if (c2 = 2 * n5, o3 = n5 - 1, A2 = fi(n5), L(A2)) return A2;
              if (u2 = _(A2), c2 < -1.24 * C(t5)) {
                if ((a2 = l(t5 * n5 * y(u2 + 0.6931471805599453 * n5), 1 / n5)) < st2) return NaN;
              } else if (c2 > 0.32) {
                if (A2 = mi(t5, 0, 1), L(A2)) return A2;
                T2 = _(A2), (a2 = c2 * l(T2 * M(s2 = 0.222222 / c2) + 1 - s2, 3)) > 2.2 * c2 + 6 && (a2 = -2 * (C(1 - t5) - o3 * C(0.5 * a2) + u2));
              } else {
                a2 = 0.4, i4 = C(1 - t5) + u2 + 0.6931471805599453 * o3;
                do {
                  h2 = a2, S2 = (I2 + 2 * a2) / (s2 = 1 + a2 * (I2 + a2)) - 0.5 - (N2 + a2 * (j2 + 3 * a2)) / (f2 = a2 * (N2 + a2 * (k2 + a2))), a2 -= (1 - y(i4 + 0.5 * a2) * f2 / s2) / S2;
                } while (w(h2 / a2 - 1) > ct2);
              }
              for (x2 = 1; x2 <= lt2; x2++) {
                if (h2 = a2, A2 = si(s2 = 0.5 * a2, n5, 1, true), L(A2)) return A2;
                if (S2 = (f2 = t5 - _(A2)) * y(0.6931471805599453 * n5 + u2 + s2 - o3 * C(a2)), w(h2 / (a2 += S2 * (1 + 0.5 * S2 * (d2 = (U2 + (i4 = 0.5 * S2 - (r3 = S2 / a2) * o3) * (P2 + i4 * (R2 + i4 * (E2 + i4 * (O2 + D2 * i4))))) / W2) - r3 * o3 * (d2 - r3 * ((v2 = (W2 + i4 * (q2 + i4 * (nt2 + i4 * (et2 + rt2 * i4)))) / at2) - r3 * ((p2 = (U2 + i4 * (Q2 + i4 * (X2 + tt2 * i4))) / at2) - r3 * ((g2 = (H2 + i4 * (J2 + it2 * i4) + o3 * (Y2 + i4 * ($2 + ot2 * i4))) / ut2) - r3 * ((m2 = (E2 + V2 * i4 + o3 * (G2 + K2 * i4)) / at2) - r3 * (b2 = (F2 + o3 * (Z2 + B2 * o3)) / ut2)))))))) - 1) > ft2) return 0.5 * e4 * a2;
              }
              return 0.5 * e4 * a2;
            }
            function fi(t5) {
              return un(t5);
            }
            function li(t5, n5, e4, i4) {
              return t5 > d(n5, e4) || t5 < h(0, n5 - i4 + e4) || n5 > i4 || e4 > i4 ? I : _n(t5, n5, e4, i4);
            }
            function hi(t5, n5, e4, i4, r3) {
              var o3, a2;
              if (t5 > d(n5, e4) || t5 < h(0, n5 - i4 + e4) || n5 > i4 || e4 > i4) return I;
              if (r3) {
                for (o3 = 0, a2 = 0; a2 <= t5; a2++) o3 += _n(a2, n5, e4, i4);
                return o3;
              }
              return _n(t5, n5, e4, i4);
            }
            function di(t5, n5, e4) {
              return G((C(t5) - n5) / e4);
            }
            function vi(t5, n5, e4, i4) {
              if (i4) return G((C(t5) - n5) / e4);
              var r3 = (C(t5) - n5) / e4;
              return 0.3989422804014327 * y(-r3 * r3 / 2) / e4 / t5;
            }
            function pi(t5, n5, e4) {
              var i4, r3 = bi(t5);
              return L(r3) ? r3 : (i4 = _(r3), N(y(n5 + e4 * i4)));
            }
            function gi(t5, n5, e4, i4) {
              return i4 ? G((t5 - n5) / e4) : N(y(-(t5 - n5) * (t5 - n5) / (2 * e4 * e4)) / (M(2 * m) * e4));
            }
            function mi(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2 = t5 - 0.5;
              if (w(s2) <= 0.42) r3 = s2 * (((-25.44106049637 * (i4 = s2 * s2) + 41.39119773534) * i4 - 18.61500062529) * i4 + 2.50662823884) / ((((3.13082909833 * i4 - 21.06224101826) * i4 + 23.08336743743) * i4 - 8.4735109309) * i4 + 1);
              else {
                if (i4 = t5, s2 > 0 && (i4 = 1 - t5), !(i4 > 2220446049250313e-31)) return i4 > 1e-300 ? (r3 = -2 * C(t5), i4 = C(6.283185307179586 * r3), r3 = M(r3 * (1 - (i4 = i4 / r3 + (2 - i4) / (r3 * r3) + (6 * i4 - 14 - i4 * i4) / (2 * r3 * r3 * r3)))), s2 < 0 ? -r3 : r3) : s2 < 0 ? -z : z;
                r3 = (((2.32121276858 * (i4 = M(-C(i4))) + 4.85014127135) * i4 - 2.29796479134) * i4 - 2.78718931138) / ((1.63706781897 * i4 + 3.54388924762) * i4 + 1), s2 < 0 && (r3 = -r3);
              }
              return a2 = 0.3989422804014327 * y(-0.5 * (o3 = (r3 - 0) / 1) * o3) / 1, u2 = gi(r3, 0, 1, true), L(u2) ? u2 : n5 + e4 * (r3 -= (u2 - t5) / a2);
            }
            function bi(t5) {
              return mi(t5, 0, 1);
            }
            function yi(t5, n5) {
              return n5 ? fn(t5) : y(-l(t5, 2) / 2) / M(2 * m);
            }
            function wi(t5, n5) {
              var e4, i4, r3, a2, u2 = 0, s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = o2(t5);
              if (h2 !== o2(n5)) return A;
              for (e4 = 0, i4 = 0; i4 < h2; i4++) r3 = t5[i4], a2 = n5[i4], V(r3) && V(a2) && (u2 += r3, s2 += a2, c2 += r3 * r3, f2 += a2 * a2, l2 += r3 * a2, e4++);
              return e4 * c2 - u2 * u2 === 0 || e4 * f2 - s2 * s2 === 0 ? T : (e4 * l2 - u2 * s2) / M((e4 * c2 - u2 * u2) * (e4 * f2 - s2 * s2));
            }
            function Mi(t5, n5) {
              var e4, i4, r3, a2, u2, s2 = 0, c2 = 0, f2 = 0, l2 = 0, h2 = 0, d2 = 0, v2 = o2(n5);
              if (v2 !== o2(t5)) return A;
              for (e4 = 0; e4 < v2; e4++) i4 = n5[e4], r3 = t5[e4], V(i4) && V(r3) && (s2 += i4, c2 += r3, f2 += i4 * i4, l2 += r3 * r3, h2 += i4 * r3, d2++);
              return 0 === (a2 = M((d2 * f2 - s2 * s2) * (d2 * l2 - c2 * c2))) ? T : N((u2 = (d2 * h2 - s2 * c2) / a2) * u2);
            }
            function Ci(t5, n5, e4) {
              var i4, o3 = 0;
              if (e4) for (i4 = 0; i4 <= t5; i4++) o3 += y(-n5) * l(n5, i4) / r2.Functions.nkt(i4);
              else o3 = y(-n5) * l(n5, t5) / r2.Functions.nkt(t5);
              return N(o3);
            }
            function Si(t5, n5, e4, i4) {
              var r3, a2, c2, f2, l2, h2, d2 = e4;
              if (i4 !== u && (d2 = _(i4), s(d2))) return x;
              if (r3 = 0, a2 = 0, (c2 = o2(t5)) !== o2(n5)) return A;
              for (f2 = 0; f2 < c2; f2++) if (l2 = t5[f2], h2 = n5[f2], l2 !== Y && h2 !== Y) {
                if (h2 <= 0 || 1 < h2) return I;
                e4 <= l2 && l2 <= d2 && (r3 += h2), a2 += h2;
              }
              return 1 !== a2 ? I : r3;
            }
            function Ti() {
              var t5, n5, e4, i4, r3, a2, u2 = arguments, s2 = 0, c2 = 0, f2 = 0, h2 = 0, d2 = [];
              for (e4 = 0; e4 < o2(u2); e4++) for (a2 = u2[e4], d2.push(a2), i4 = 0; i4 < o2(a2); i4++) (r3 = a2[i4]) !== Y && (s2 += r3, c2 += r3 * r3, h2++);
              if (h2 <= 2) return T;
              if (t5 = s2 / h2, 0 === (n5 = M((h2 * c2 - s2 * s2) / (h2 * (h2 - 1))))) return T;
              for (e4 = 0; e4 < o2(d2); e4++) for (a2 = d2[e4], i4 = 0; i4 < o2(a2); i4++) (r3 = a2[i4]) !== Y && (f2 += l((r3 - t5) / n5, 3));
              return N(h2 * f2 / ((h2 - 1) * (h2 - 2)));
            }
            function xi() {
              var t5, n5, e4, i4, r3, a2, u2, s2, c2, f2, h2 = arguments, d2 = 0, v2 = 0, p2 = [];
              for (e4 = 0; e4 < o2(h2); e4++) {
                if (a2 = h2[e4], 1 === o2(h2) && 0 === o2(a2)) return k;
                for (i4 = 0; i4 < o2(a2); i4++) u2 = { value: 0 }, (r3 = a2[i4]) !== Y && "boolean" != typeof r3 && W(r3, u2) && (d2 += u2.value, v2++, p2.push(u2.value));
              }
              if (v2 <= 2) return T;
              for (t5 = d2 / v2, s2 = 0, c2 = 0, f2 = 0, e4 = 0; e4 < p2.length; e4++) f2 = p2[e4] - t5, c2 += l(f2, 2), s2 += l(f2, 3);
              return 0 === (n5 = M(c2 / v2)) ? T : N(s2 / v2 / n5 / n5 / n5);
            }
            function Ai(t5, n5, e4) {
              return (t5 - n5) / e4;
            }
            function Ii(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2;
              if (1 !== e4 && 2 !== e4) return I;
              if (r3 = t5 / M(i4 = n5), o3 = i4 / (i4 + t5 * t5), a2 = i4 - 2, u2 = i4 % 2, s2 = 1, c2 = 1, i4 = 1, l2 = f2 = 2 + u2, a2 >= 2) for (h2 = D(f2); h2 <= a2 && (s2 += c2 = c2 * o3 * (l2 - 1) / l2) !== i4; h2 += 2) i4 = s2, l2 += 2;
              return 1 !== u2 ? e4 * (1 - (0.5 + 0.5 * r3 * M(o3) * s2)) : (1 === n5 && (s2 = 0), e4 * (1 - (0.5 + 0.3183098862 * (r3 * o3 * s2 + b(r3)))));
            }
            function ki(t5, n5, e4) {
              return On(t5, n5, e4 ? 4 : 3);
            }
            function Ni(t5, n5) {
              return Ii(t5, n5, 1);
            }
            function ji(t5, n5) {
              return Ii(t5, n5, 2);
            }
            function Di(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2 = 1e-12, p2 = t5 / 2, m2 = p2;
              if (n5 > 1e20) return bi(p2);
              if (m2 < 0.5 ? (h2 = 0, u2 = 2 * m2) : (h2 = 1, u2 = 2 * (1 - m2)), w(n5 - 2) < v2) s2 = u2 > 0 ? M(2 / (u2 * (2 - u2)) - 2) : z;
              else if (_(n5) < 1 + v2) s2 = u2 > 0 ? -g(a2 = 1.5707963267948966 * (u2 + 1)) : z;
              else {
                if (o3 = ((94.5 / ((i4 = 48 / ((e4 = 1 / (n5 - 0.5)) * e4)) + (r3 = ((20700 * e4 / i4 - 98) * e4 - 16) * e4 + 96.36)) - 3) / i4 + 1) * M(1.5707963267948966 * e4) * n5, (f2 = l(o3 * u2, 2 / n5)) > 0.05 + e4) {
                  if (d2 = bi(0.5 * u2), L(d2)) return d2;
                  c2 = _(d2), n5 < 5 && (r3 += 0.3 * (n5 - 4.5) * (c2 + 0.6)), f2 = (((((0.4 * (f2 = c2 * c2) + 6.3) * f2 + 36) * f2 + 94.5) / (r3 = (((0.05 * o3 * c2 - 5) * c2 - 7) * c2 - 2) * c2 + i4 + r3) - f2 - 3) / i4 + 1) * c2, f2 = (f2 *= e4 * f2) > 2e-3 ? y(f2) - 1 : 0.5 * f2 * f2 + f2;
                } else f2 = ((1 / (((n5 + 6) / (n5 * f2) - 0.089 * o3 - 0.822) * (n5 + 2) * 3) + 0.5 / (n5 + 4)) * f2 - 1) * (n5 + 1) / (n5 + 2) + 1 / f2;
                s2 = M(n5 * f2);
              }
              return 0 !== h2 && (s2 = -s2), N(s2);
            }
            function _i(t5, n5) {
              return t5 < 0.5 ? -Rn(1 - t5, n5, 4) : Rn(t5, n5, 4);
            }
            function Oi(t5, n5, e4, i4) {
              var r3, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, S2, x2, k2, N2, j2, D2, O2 = { N: 0, M: 0, Q: 0, h9t: 0 };
              if (1 !== e4 && 2 !== e4) return I;
              if (1 === i4) {
                if (g2 = void 0, m2 = void 0, b2 = void 0, y2 = void 0, C2 = void 0, S2 = void 0, x2 = void 0, o2(t5) !== o2(n5)) return A;
                for (k2 = o2(t5), x2 = 0; x2 < k2; x2++) t5[x2] = t5[x2] - n5[x2];
                for (y2 = C2 = S2 = g2 = 0, x2 = 0; x2 < k2; x2++) y2 += b2 = (m2 = (N2 = t5[x2]) - y2) / (S2 + 1), C2 += S2 * m2 * b2, S2++, g2 += N2;
                if (S2 - 1 == 0 || 0 === S2) return T;
                if (f2 = M(C2 / (S2 - 1)), s(f2) || !c(f2)) return I;
                u2 = (r3 = g2 / S2) / (f2 / M(S2)), d2 = S2 - 1;
              } else O2.N = 0, O2.M = 0, O2.Q = 0, O2.h9t = 0, hn(O2, t5), l2 = O2.Q / (O2.N - 1), r3 = O2.h9t / O2.N, v2 = O2.N, O2.N = 0, O2.M = 0, O2.Q = 0, O2.h9t = 0, hn(O2, n5), h2 = O2.Q / (O2.N - 1), a2 = O2.h9t / O2.N, p2 = O2.N, d2 = 2 !== i4 ? 1 / ((j2 = l2 / v2 / (l2 / v2 + h2 / p2)) * j2 / _(v2 - 1) + (1 - j2) * (1 - j2) / _(p2 - 1)) : _(v2 + p2 - 2), u2 = (r3 - a2) / M(l2 / _(v2) + h2 / _(p2));
              return D2 = vn(0.5 * d2, 0.5, d2 / (d2 + (u2 = w(u2)) * u2)), L(D2) ? D2 : 0.5 * e4 * _(D2);
            }
            function Ei(t5, n5, e4, i4) {
              var r3 = y(-l(t5 / e4, n5));
              return N(i4 ? 1 - r3 : n5 / l(e4, n5) * l(t5, n5 - 1) * r3);
            }
            function Ri(t5, n5, e4) {
              var i4, r3, a2, c2, f2, l2, h2 = 0, d2 = 0, v2 = 0, p2 = 0;
              if (e4 !== u && (h2 = _(e4), s(h2))) return x;
              for (c2 = 0; c2 < o2(t5); c2++) (f2 = t5[c2]) !== Y && (d2 += a2 = _(f2), v2 += a2 * a2, p2++);
              return 0 === p2 ? A : 1 === p2 ? T : (i4 = d2 / p2, 0 === (r3 = e4 !== u ? h2 : M((p2 * v2 - d2 * d2) / (p2 * (p2 - 1)))) ? T : (l2 = G((i4 - n5) / (r3 / M(p2))), L(l2) ? l2 : N(1 - _(l2))));
            }
            function Li(t5, n5) {
              t5 = _(D(t5)), n5 = _(D(n5));
              var e4 = 1, i4;
              if (t5 < 0 || n5 < 0 || t5 < n5) return I;
              for (i4 = t5 - n5 + 1; i4 <= t5; i4++) e4 *= i4;
              return N(e4);
            }
            function Fi(t5, n5) {
              return Gn(false, t5, n5);
            }
            function Bi() {
              var t5, n5, e4, i4 = 0, a2 = [], u2 = bn(arguments), s2 = o2(u2);
              for (t5 = 0; t5 < s2; t5++) {
                for (n5 = 0, e4 = t5 + 1; e4 < s2; e4++) u2[t5] === u2[e4] && n5++;
                n5 > i4 ? (i4 = n5, (a2 = []).push([u2[t5]])) : n5 === i4 && a2.push([u2[t5]]);
              }
              return 0 === i4 ? A : new r2.CalcArray(a2);
            }
            function Pi(t5, n5) {
              return P([t5, n5], 18);
            }
            function Gi(t5, n5) {
              return P([t5, n5], 19);
            }
            function Ui(t5, n5, e4) {
              return Fn(false, n5, t5, e4);
            }
            function Hi(t5, n5) {
              var e4, i4 = n5;
              return t5 >= 0 && t5 < 2147483647 && i4 >= 0 && i4 < 2147483647 && (t5 = Math.pow(f(t5), f(i4)), (e4 = Math.abs(t5)) <= 179769e303) ? e4 >= 22250738585072014e-324 ? t5 : 0 : I;
            }
            function Vi(t5) {
              var n5, e4;
              return "" === t5 ? x : true === W(t5, n5 = { value: 0 }) ? (t5 = 0.3989422804014327 * Math.exp(-n5.value * n5.value * 0.5), (e4 = Math.abs(t5)) <= 179769e303 ? e4 >= 22250738585072014e-324 ? t5 : 0 : I) : x;
            }
            function zi(t5, n5, e4, i4) {
              var r3, o3, a2, u2 = { value: 0 };
              return t5 = Q(t5, u2), n5 = W(n5, r3 = { value: 0 }), e4 = Q(e4, o3 = { value: 0 }), 4 === arguments.length && i4 ? i4 = Q(i4, a2 = { value: 0 }) : (i4 = e4, a2 = o3), true === t5 && true === n5 && true === e4 && true === i4 ? (t5 = u2.value, n5 = r3.value, e4 = o3.value, i4 = a2.value, t5 >= 0 && t5 <= 2147483646 && n5 >= 0 && n5 <= 1 && e4 >= 0 && e4 <= t5 && i4 >= e4 && i4 <= t5 ? He(t5, n5, e4, i4) : I) : x;
            }
            function Yi(t5) {
              var n5, e4, i4;
              if (t5 > 0) t5 = Math.exp(un(t5));
              else {
                if (0 === (e4 = t5 + (n5 = Math.abs(f(t5))))) return I;
                t5 = Math.pow(-1, n5 - 1) * Math.exp(un(-e4)) * Math.exp(un(1 + e4)) / Math.exp(un(n5 + 1 - e4));
              }
              return (i4 = Math.abs(t5)) <= 179769e303 ? i4 >= 22250738585072014e-324 ? t5 : 0 : I;
            }
            function Zi(t5) {
              t5 = Jt(t5) - 0.5;
              var n5 = Math.abs(t5);
              return n5 <= 179769e303 ? n5 >= 22250738585072014e-324 ? t5 : 0 : I;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.Uf.tR, a = null, u = void 0, s = isNaN, c = isFinite, f = parseInt, l = Math.pow, h = Math.max, d = Math.min, v = Math.floor, p = Math.sin, g = Math.tan, m = Math.PI, b = Math.atan, y = Math.exp, w = Math.abs, M = Math.sqrt, C = Math.log, S = Math.round, T = r2.Errors.DivideByZero, x = r2.Errors.Value, A = r2.Errors.NotAvailable, I = r2.Errors.Number, k = r2.Errors.Null, N = r2.Convert.L6t, j = r2.Convert.iV, D = r2.Convert.z6t, _ = r2.Convert.uJ, O = r2.Functions.MathHelper, E = O.g9t, R = r2.Convert.q8, L = r2.Convert.BJ, F = r2.Functions.b9t, B = r2.Functions.y9t, P = r2.Functions.w9t, G = r2.Functions.dkt, U = r2.Functions.G6t, H = r2.Functions.OMt, V = r2.Functions.q8, z = r2.Functions.B6t, Y = r2.Convert.CalcConvertedError, Z = r2.Functions.F6t, W = r2.Convert.sJ, Q = r2.Convert.t9t, et = { J6t: 0, pkt: ["< 0", ">= 1"] }, dt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, Zkt: true, n9t: true }, vt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, n9t: true }, pt = { J6t: 4, X6t: 1, Ykt: true, Zkt: true }, gt = { J6t: 4, X6t: 0, Vkt: true }, yt = { J6t: 4, X6t: 0, Vkt: true, Ykt: true, n9t: true }, wt = { J6t: 4, X6t: 0, Vkt: true, Ykt: true, Zkt: true, n9t: true }, St = [lt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, Zkt: true }, { J6t: 2 }], Tt = [lt, nt = { J6t: 0 }, { bkt: 3, J6t: 2, pkt: "< 1" }], xt = [it = { J6t: 0, pkt: ["<= 0", ">= 1"] }, rt = { J6t: 0, pkt: "<= 0" }, q = { J6t: 2, pkt: "< 1" }], At = [it, rt, rt, ot = { bkt: 0, J6t: 0 }, at = { bkt: 1, J6t: 0 }], It = [$ = { J6t: 2, pkt: "< 0" }, $, ut = { J6t: 0, pkt: ["< 0", "> 1"] }, K = { J6t: 7 }], kt = [$, ut, it], Nt = [st = { J6t: 0, pkt: "< 0" }, ct = { J6t: 0, pkt: ["< 1", "> 10000000000"] }], jt = [ut, tt = { J6t: 2, pkt: ["< 1", "> 10000000000"] }], Dt = [ht = { J6t: 4, X6t: 1, Vkt: true, Ykt: true }, ht], _t = [st, rt, K], Ot = [st, ft = { J6t: 0, pkt: ["< 1", ">= 10000000000"] }, ft], Et = [ut, ft, ft], Rt = [lt, lt], Lt = [st, rt, rt, K], Ft = [ut, rt, rt], Bt = [ut, nt, rt], Pt = [nt, nt, rt, K], Gt = [mt = { J6t: 4, X6t: 1, Vkt: true }, mt], Ut = [$, st, K], Ht = [st, q], Vt = [bt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, M9t: true }, bt, X = { J6t: 2 }, { J6t: 2, pkt: ["< 1", "> 3"] }], zt = [st, rt, rt, K], Yt = [lt, nt], Zt = [Mt = { J6t: 4, X6t: 1, Ykt: true, M9t: true }, {}, J = { bkt: true, J6t: 7 }, { bkt: false, J6t: 7 }], Wt = [nt, lt, ot], Qt = [Ct = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, C9t: true, Zkt: true }, nt], Z("TREND", zn, 1, 4, [{ J6t: 4, X6t: 0, Ykt: true }, {}, {}, J], [0, 1, 2], [0, 1, 2], { wkt: [1, 2, 3] }), Z("GROWTH", Yn, 1, 4, [Mt, {}, {}, J], "!= 3", "!= 3", { wkt: [1, 2, 3] }), Z("FORECAST", Zn, 3, 3, [nt, lt, lt], "> 0", "> 0"), Z("AVERAGE", Wn, 1, u, u, -1, -1), Z("STDEV", Qn, 1, u, u, -1, -1), Z("STDEV.S", Qn, 1, u, u, -1, -1), Z("PERCENTILE", Kn, 2, 2, u, 0, 0), Z("PERCENTILE.INC", Kn, 2, 2, u, 0, 0), Z("MAX", Jn, 1, u, u, -1, -1), Z("MAXA", Xn, 1, u, yt, -1, -1), Z("MIN", qn, 1, u, u, -1, -1), Z("MINA", $n, 1, u, yt, -1, -1), Z("LARGE", te, 2, 2, Qt, 0, 0), Z("SMALL", ne, 2, 2, Qt, 0, 0), Z("AVERAGEA", ee, 1, u, wt, -1, -1), Z("MEDIAN", ie, 1, u, dt, -1, -1), Z("MODE", re, 1, u, dt, -1, -1), Z("MODE.SNGL", re, 1, u, dt, -1, -1), Z("GEOMEAN", oe, 1, u, vt, -1, -1), Z("HARMEAN", ae, 1, u, dt, -1, -1), Z("TRIMMEAN", ue, 2, 2, [lt, et], 0, 0), Z("FREQUENCY", se, 2, 2, [pt, pt], -1, -1), Z("RANK", ce, 2, 3, Wt, [1], [1], { wkt: 2 }), Z("RANK.EQ", ce, 2, 3, Wt, [1], 1, { wkt: 2 }), Z("KURT", fe, 1, u, dt, -1, -1), Z("PERCENTRANK", le, 2, 3, Tt, 0, 0, { wkt: 2 }), Z("PERCENTRANK.INC", le, 2, 3, Tt, 0, 0, { wkt: 2 }), Z("PERCENTRANK.EXC", he, 2, 3, Tt, 0, 0, { wkt: 2 }), Z("QUARTILE", de, 2, 2, St, 0, 0), Z("QUARTILE.INC", de, 2, 2, St, 0, 0), Z("COUNT", ve, 1, u, u, -1, -1, { f9t: -1 }), Z("COUNTA", pe, 1, u, u, -1, -1, { f9t: -1 }), Z("COUNTBLANK", ge, 1, 1, gt, -1, -1), Z("COUNTIF", me, 2, 2, [gt, gt], [0], [0], { f9t: [1], r9t: true }), Z("AVEDEV", be, 1, u, dt, -1, -1), Z("STDEVA", ye, 1, u, wt, -1, -1), Z("STDEVP", we, 1, u, u, -1, -1), Z("STDEV.P", we, 1, u, u, -1, -1), Z("STDEVPA", Me, 1, u, wt, -1, -1), Z("VAR", Ce, 1, u, u, -1, -1), Z("VAR.S", Ce, 1, u, u, -1, -1), Z("VARA", Se, 1, u, wt, -1, -1), Z("VARP", Te, 1, u, u, -1, -1), Z("VAR.P", Te, 1, u, u, -1, -1), Z("VARPA", xe, 1, u, wt, -1, -1), Z("COVAR", Ae, 2, 2, Dt, -1, -1), Z("COVARIANCE.P", Ae, 2, 2, Dt, -1, -1), Z("DEVSQ", Ie, 1, u, dt, -1, -1), Z("CONFIDENCE", ke, 3, 3, xt), Z("CONFIDENCE.NORM", ke, 3, 3, xt), Z("CONFIDENCE.T", Ne, 3, 3, xt), Z("INTERCEPT", je, 2, 2, [dt, dt], -1, -1), Z("LINEST", De, 1, 4, Zt, [0, 1], [0, 1], { wkt: [1, 2, 3], o9t: 1 }), Z("SLOPE", _e, 2, 2, [dt, dt], -1, -1, { o9t: 1 }), Z("LOGEST", Oe, 1, 4, Zt, [0, 1], [0, 1], { wkt: [1, 2, 3] }), Z("STEYX", Ee, 2, 2, Dt, -1, -1), Z("BETADIST", Le, 3, 5, [nt, rt, rt, ot, at], u, u, { wkt: [3, 4] }), Z("BETA.DIST", Fe, 4, 6, [nt, rt, rt, K, ot, at], u, u, { wkt: [5, 6] }), Z("BETAINV", Be, 3, 5, At, u, u, { wkt: [3, 4] }), Z("BETA.INV", Be, 3, 5, At, u, u, { wkt: [3, 4] }), Z("BINOMDIST", Ve, 4, 4, It), Z("BINOM.DIST", Ve, 4, 4, It), Z("NEGBINOMDIST", ze, 3, 3, [X, X, et]), Z("NEGBINOM.DIST", Ye, 4, 4, [$, q, et, K]), Z("CRITBINOM", Ze, 3, 3, kt), Z("BINOM.INV", Ze, 3, 3, kt), Z("CHIDIST", We, 2, 2, Nt), Z("CHISQ.DIST.RT", We, 2, 2, Nt), Z("CHISQ.DIST", Qe, 3, 3, [st, tt, K]), Z("CHIINV", Ke, 2, 2, jt), Z("CHISQ.INV.RT", Ke, 2, 2, [ut, q]), Z("CHISQ.INV", Xe, 2, 2, jt), Z("CHITEST", qe, 2, 2, Dt, -1, -1), Z("CHISQ.TEST", qe, 2, 2, Dt, -1, -1), Z("CORREL", $e, 2, 2, u, -1, -1, { o9t: 1 }), Z("EXPONDIST", ti, 3, 3, _t), Z("EXPON.DIST", ti, 3, 3, _t), Z("FDIST", ni, 3, 3, Ot), Z("F.DIST", ei, 4, 4, [st, ct, ct, K]), Z("F.DIST.RT", ni, 3, 3, Ot), Z("FINV", ii, 3, 3, Et), Z("F.INV.RT", ii, 3, 3, Et), Z("F.INV", ri, 3, 3, [ut, tt, tt]), Z("FISHER", oi, 1, 1, { J6t: 0, pkt: ["<= -1", ">= 1"] }), Z("FISHERINV", ai, 1, 1, nt), Z("FTEST", ui, 2, 2, Rt, -1, -1), Z("F.TEST", ui, 2, 2, Rt, -1, -1), Z("GAMMADIST", si, 4, 4, Lt), Z("GAMMA.DIST", si, 4, 4, Lt), Z("GAMMAINV", ci, 3, 3, Ft), Z("GAMMA.INV", ci, 3, 3, Ft), Z("GAMMALN", fi, 1, 1, rt), Z("GAMMALN.PRECISE", fi, 1, 1, rt), Z("HYPGEOMDIST", li, 4, 4, [$, $, $, $]), Z("HYPGEOM.DIST", hi, 5, 5, [$, $, $, $, K]), Z("LOGNORMDIST", di, 3, 3, [rt, nt, rt]), Z("LOGNORM.DIST", vi, 4, 4, [rt, nt, rt, K]), Z("LOGINV", pi, 3, 3, Bt), Z("LOGNORM.INV", pi, 3, 3, Bt), Z("NORMDIST", gi, 4, 4, Pt), Z("NORM.DIST", gi, 4, 4, Pt), Z("NORMINV", mi, 3, 3, Bt), Z("NORM.INV", mi, 3, 3, Bt), Z("NORMSDIST", G, 1, 1, nt, u, u), Z("NORMSINV", bi, 1, 1, ut), Z("NORM.S.INV", bi, 1, 1, ut), Z("NORM.S.DIST", yi, 2, 2, [nt, K]), Z("PEARSON", wi, 2, 2, Gt, -1, -1), Z("RSQ", Mi, 2, 2, Gt, [0, 1], [0, 1]), Z("POISSON", Ci, 3, 3, Ut), Z("POISSON.DIST", Ci, 3, 3, Ut), Z("PROB", Si, 3, 4, [bt, ht, nt], [0, 1], [0, 1], { wkt: 3 }), Z("SKEW", Ti, 1, u, dt, -1, -1), Z("STANDARDIZE", Ai, 3, 3, [nt, nt, rt]), Z("TDIST", Ii, 3, 3, [st, q, X]), Z("T.DIST", ki, 3, 3, [nt, q, K]), Z("T.DIST.RT", Ni, 2, 2, Ht), Z("T.DIST.2T", ji, 2, 2, Ht), Z("TINV", Di, 2, 2, jt), Z("T.INV.2T", Di, 2, 2, jt), Z("T.INV", _i, 2, 2, [{ J6t: 0, pkt: ["<= 0", "> 1"] }, tt]), Z("TTEST", Oi, 4, 4, Vt, [0, 1], [0, 1]), Z("T.TEST", Oi, 4, 4, Vt, [0, 1], [0, 1]), Z("WEIBULL", Ei, 4, 4, zt), Z("WEIBULL.DIST", Ei, 4, 4, zt), Z("ZTEST", Ri, 2, 3, Yt, 0, 0, { wkt: 2 }), Z("Z.TEST", Ri, 2, 3, Yt, 0, 0, { wkt: 2 }), Z("PERMUT", Li, 2, 2), Z("COVARIANCE.S", Fi, 2, 2, Dt, -1, -1), Z("MODE.MULT", Bi, 1, u, vt, -1, -1), Z("PERCENTILE.EXC", Pi, 2, 2, [lt, it], 0, 0), Z("QUARTILE.EXC", Gi, 2, 2, [yt, X], 0, 0), Z("RANK.AVG", Ui, 2, 3, Wt, 1, 1, { wkt: 2 }), Z("PERMUTATIONA", Hi, 2, 2, [nt, nt]), Z("PHI", Vi, 1, 1), Z("BINOM.DIST.RANGE", zi, 3, 4, [{ bkt: 0 }, { bkt: 0 }, { bkt: 0 }]), Z("GAMMA", Yi, 1, 1, rt), Z("GAUSS", Zi, 1, 1, nt), Z("SKEW.P", xi, 1, u, wt, -1, -1);
          }, CalcEngine: function(t4) {
            t4.exports = e2("CalcEngine");
          }, Common: function(t4) {
            t4.exports = e2("Common");
          } }, r = {};
          function o(t4) {
            var e3, i3 = r[t4];
            return void 0 !== i3 ? i3.exports : (e3 = r[t4] = { exports: {} }, n3[t4].call(e3.exports, e3, e3.exports, o), e3.exports);
          }
          t3 = {}, (function() {
            var n4, e3 = t3;
            Object.defineProperty(e3, "__esModule", { value: true }), e3.Functions = void 0, n4 = o("CalcEngine"), Object.defineProperty(e3, "Functions", { enumerable: true, get: function() {
              return n4.Functions;
            } }), o("./src/functions-db.ts"), o("./src/functions-eng.ts"), o("./src/functions-fin.ts"), o("./src/functions-lookup.ts"), o("./src/functions-stat.ts");
          })(), (((i2 = void 0 === i2 ? {} : i2).Spread = i2.Spread || {}).CalcEngine = i2.Spread.CalcEngine || {}).AdvancedFunctions = t3;
        })(), t2.exports = i2.Spread.CalcEngine.AdvancedFunctions;
      }, "./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js": function(t2, n2, e2) {
        t2.exports = e2("./node_modules_local/@spreadjs/js-calc-advancedfunctions/dist/gc.spread.calcengine.advancedfunctions.js");
      }, "./node_modules_local/@spreadjs/js-calc-basicfunctions/dist/gc.spread.calcengine.basicfunctions.js": function(t2, n2, e2) {
        var i2;
        !(function() {
          "use strict";
          var t3, n3 = { "./src/functions-basic.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St, Tt, xt, At, It, kt, Nt, jt, Dt, _t, Ot, Et, Rt, Lt, Ft, Bt, Pt, Gt, Ut, Ht, Vt, zt, Yt, Zt, Wt, Qt, Kt, Jt, Xt, qt, $t, tn;
            function nn(t5, n5) {
              for (; 0 !== n5; ) {
                var e4 = t5 % n5;
                t5 = n5, n5 = e4;
              }
              return t5;
            }
            function en(t5, n5, e4, i4) {
              return 0 === n5 || 0 === t5 ? 0 : 0 !== e4 && t5 < 0 ? true === i4 ? gt(t5 / Math.abs(n5)) * Math.abs(n5) : pt(t5 / Math.abs(n5)) * Math.abs(n5) : true === i4 ? pt(t5 / Math.abs(n5)) * Math.abs(n5) : gt(t5 / Math.abs(n5)) * Math.abs(n5);
            }
            function rn(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2, b2, y2, w2, M2, C2 = t5[0], S2 = C2.source && C2.source.Lbt;
              function T2(n6) {
                return n6.getRowCount ? n6.getRowCount() !== t5[1].getRowCount() || n6.getColumnCount() !== t5[1].getColumnCount() : n6.rowCount !== a2 || n6.colCount !== u2;
              }
              function x2(t6) {
                var n6 = t6.getSource();
                return function(e5) {
                  return { id: n6.id, source: n6, row: t6.getRow(0) + k(e5 / u2), col: t6.getColumn(0) + e5 % u2, rowCount: 1, colCount: 1 };
                };
              }
              if (t5[1].Zbt = true, S2.calcOnDemand ? (i4 = { rowCount: t5[1].getRowCount(), colCount: t5[1].getColumnCount() }, o3 = function(n6) {
                return r2.Convert.Nbt(t5[1].getValueByIndex(n6), 1, !r2.ExcelCompatibleCalcMode, true);
              }) : (i4 = q(t5[1], 1, 2, false, false, true), o3 = function(t6) {
                return i4[t6];
              }), a2 = i4.rowCount, u2 = i4.colCount, s2 = [], l2 = S2.dynamicReferences, (h2 = l2 && C2.Xkt) && Y(t5[1]) && !e4 && (i4.getRef = x2(t5[1])), p2 = 0, n5 ? (c2 = [], g2 = e4 ? function(t6) {
                f2 = o3(t6), c2.push(f2);
              } : function(t6) {
                (f2 = o3(t6)) !== V && c2.push(f2);
              }) : g2 = function(t6) {
                if ((f2 = o3(t6)) !== V) {
                  if (z(f2)) return p2 = f2, true;
                  p2 += f2;
                }
              }, m2 = i4.getRef ? function(t6) {
                return $n(h2, i4.getRef(t6)), g2(t6);
              } : g2, b2 = S2.S9t || new r2.Functions.RangeCriteriaManager(), T2(t5[2])) return F;
              if (t5.length <= 3) d2 = m2;
              else {
                for (y2 = 4; y2 < v(t5); y2 += 2) if (T2(t5[y2])) return F;
                if (!h2) {
                  for (w2 = [], y2 = 2; y2 < v(t5); y2 += 2) w2.push(t5[y2], t5[y2 + 1]);
                  return b2.Hle(w2, m2, 1), n5 ? n5(c2) : p2;
                }
                for (y2 = 4; y2 < v(t5); y2 += 2) h2 && Y(t5[y2]) && (t5[y2].getRef = x2(t5[y2])), M2 = h2 && (h2.delay || Y(t5[y2])), s2.push(b2.T9t(t5[y2], t5[y2 + 1], M2 ? -1 : 0));
                d2 = function(n6) {
                  for (var e5 = 0; e5 < s2.length; e5++) if (t5[2 * e5 + 4].getRef && $n(h2, t5[2 * e5 + 4].getRef(n6)), !s2[e5].A9t(n6)) return;
                  return m2(n6);
                };
              }
              return b2.I9t(t5[2], t5[3], d2, h2 && h2.delay ? -1 : 1), n5 ? n5(c2) : p2;
            }
            function on(t5, n5) {
              return n5 = n5 < 0 ? k(n5) : Math.ceil(n5), (t5 && n5 % 2 == 0 || !t5 && n5 % 2 != 0) && (n5 += n5 < 0 ? -1 : 1), n5;
            }
            function an(t5, n5, e4) {
              return n5 > 0 && e4 < 0 ? H : n5 < 0 && e4 > 0 ? (e4 = -e4, t5 ? gt(n5 / e4) * e4 : pt(n5 / e4) * e4) : t5 ? pt(n5 / e4) * e4 : gt(n5 / e4) * e4;
            }
            function un(t5, n5, e4) {
              var i4, r3, o3, a2 = vt.x9t(T(e4));
              return i4 = pt(n5 = e4 < 0 ? n5 / a2 : n5 * a2), r3 = gt(n5), t5 && (o3 = i4, i4 = r3, r3 = o3), n5 = n5 < 0 ? i4 : r3, $(n5 = e4 < 0 ? n5 * a2 : n5 / a2);
            }
            function sn(t5, n5, e4, i4) {
              var r3 = n5 ? -1 : 1, o3 = 0, a2, u2, s2;
              if (v(e4) !== v(i4)) return U;
              for (s2 = 0; s2 < v(e4); s2++) a2 = e4[s2], u2 = i4[s2], a2 !== V && u2 !== V && (o3 += t5 ? (a2 - u2) * (a2 - u2) : a2 * a2 + r3 * u2 * u2);
              return $(o3);
            }
            function cn(t5) {
              return $(T(t5));
            }
            function fn(t5) {
              return t5 = K(t5), isNaN(t5) ? F : gt(t5);
            }
            function ln(t5, n5) {
              var e4 = 1, i4;
              if (t5 < n5) return H;
              for (n5 = I(t5 - n5, n5), i4 = 1; i4 <= n5; i4++) e4 *= t5 - i4 + 1, e4 /= i4;
              return $(e4);
            }
            function hn(t5, n5) {
              var e4 = 1, i4;
              for (i4 = 1; i4 <= n5; i4++) e4 *= t5 + i4 - 1;
              for (i4 = 2; i4 <= n5; i4++) e4 /= i4;
              return $(e4);
            }
            function dn(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2;
              if (!t5 || t5.length > 255) return 0;
              if (0 === (e4 = t5.length)) return 0;
              if ("-" === t5[0]) return H;
              for (i4 = 0; i4 < e4 && " " === t5[i4]; ) i4++;
              if (r3 = 0, i4 === e4) return 0;
              for (o3 = 1, a2 = e4 - 1; a2 >= i4; a2--) {
                if ((s2 = (u2 = t5.charCodeAt(a2) | " ".charCodeAt(0)) - "a".charCodeAt(0) >= 0 ? u2 - 87 : u2 - 48) < 0 || s2 >= n5) return H;
                r3 += s2 * o3, o3 *= n5;
              }
              return r3;
            }
            function vn(t5) {
              return 180 * t5 / D;
            }
            function pn(t5) {
              return on(true, t5);
            }
            function gn(t5) {
              return on(false, t5);
            }
            function mn(t5) {
              return ft(t5);
            }
            function bn(t5) {
              var n5 = 1, e4;
              for (e4 = t5; e4 > 1; e4 -= 2) n5 *= e4;
              return n5;
            }
            function yn(t5) {
              return $(j(t5));
            }
            function wn(t5, n5) {
              return t5 - n5 * k(t5 / n5);
            }
            function Mn() {
              return D;
            }
            function Cn(t5, n5) {
              if (0 === t5 && n5 < 0) return L;
              if (0 === t5 && 0 === n5) return H;
              var e4 = r2.Functions.MathHelper.N9t(t5, n5);
              return e4 === Number.POSITIVE_INFINITY || e4 === Number.NEGATIVE_INFINITY || isNaN(e4) ? H : e4;
            }
            function Sn() {
              var t5, n5, e4, i4, r3 = arguments, o3 = 0;
              for (t5 = 0; t5 < v(r3); t5++) {
                if (n5 = r3[t5], e4 = void 0, i4 = void 0, z(n5)) return n5;
                if (Y(n5) || Z(n5)) {
                  if ((e4 = q(n5, 1, true, true, false)).isError) return e4[0];
                } else e4 = q(n5, 1, true, true, true);
                for (i4 = 0; i4 < v(e4); i4++) e4[i4] !== V && (o3 += e4[i4]);
              }
              return o3;
            }
            function Tn(t5) {
              var n5, e4, i4, o3, a2, u2;
              if (!r2.ExcelCompatibleCalcMode) return Sn.apply(null, arguments);
              for (n5 = arguments, e4 = 0, i4 = 0; i4 < v(n5); i4++) {
                if (o3 = n5[i4], a2 = void 0, u2 = void 0, z(o3)) return o3;
                if (Y(o3) || Z(o3)) {
                  if ((a2 = q(o3, 5, true, true, false, true)).isError) return a2[0];
                } else a2 = q(o3, 1, true, true, false, true);
                for (u2 = 0; u2 < v(a2); u2++) a2[u2] !== V && (e4 += a2[u2]);
              }
              return e4;
            }
            function xn(t5, n5) {
              var e4, i4 = Tn(t5);
              return r2.Convert.BJ(i4) ? H : (e4 = Tn(n5), r2.Convert.BJ(e4) ? H : 0 === e4 ? L : i4 / e4);
            }
            function An(t5) {
              return 0 === t5 ? 0 : -1;
            }
            function In() {
              var t5, n5, e4, i4, r3 = arguments, o3 = 0;
              for (t5 = 0; t5 < v(r3); t5++) for (e4 = r3[t5], n5 = 0; n5 < v(e4); n5++) {
                if ((i4 = e4[n5]) === V) return F;
                if (i4 < 0) return H;
                o3 = nn(o3, Q(i4));
              }
              return o3;
            }
            function kn() {
              var t5, n5, e4, i4, r3 = arguments, o3 = 1, a2 = [];
              for (t5 = 0; t5 < v(r3); t5++) for (e4 = r3[t5], n5 = 0; n5 < v(e4); n5++) if ((i4 = e4[n5]) !== V) {
                if ((i4 = Q(i4)) < 0) return H;
                if (0 === i4) return 0;
                a2.push(i4);
              }
              for (n5 = 0; n5 < v(a2); n5++) o3 /= nn(o3, i4 = a2[n5]), o3 *= i4;
              return o3;
            }
            function Nn() {
              return lt(arguments, 2, 6);
            }
            function jn(t5) {
              return x(t5);
            }
            function Dn(t5, n5) {
              return C((t5 / n5).toString());
            }
            function _n(t5) {
              var n5, e4 = arguments, i4 = [];
              for (n5 = 1; n5 < v(e4); n5++) i4[n5 - 1] = e4[n5];
              return En(t5, 0, i4);
            }
            function On(t5) {
              var n5, e4 = arguments, i4 = [];
              for (n5 = 1; n5 < v(e4); n5++) i4[n5 - 1] = e4[n5];
              return En(t5, 1, i4);
            }
            function En(t5, n5, e4) {
              var i4 = F;
              return g(t5, [1, 101, 2, 102, 3, 103, 4, 104, 5, 105, 6, 106, 9, 109]) >= 0 ? i4 = lt(e4, n5, t5) : g(t5, [7, 107, 8, 108, 10, 110, 11, 111]) >= 0 && (i4 = dt(e4, n5, t5)), i4;
            }
            function Rn(t5, n5, e4) {
              var i4, r3 = arguments, o3 = [];
              for (i4 = 3; i4 < v(r3); i4++) o3[i4 - 3] = r3[i4];
              return ht(o3, e4, n5, t5);
            }
            function Ln(t5, n5) {
              return an(true, t5, n5);
            }
            function Fn(t5, n5) {
              return an(false, t5, n5);
            }
            function Bn(t5, n5, e4) {
              return en(t5, n5, e4, true);
            }
            function Pn(t5, n5, e4) {
              return en(t5, n5, e4, false);
            }
            function Gn(t5, n5, e4) {
              var i4 = "" + t5.toString(n5);
              return e4 && i4.length < e4 ? Array.apply(null, { length: e4 - i4.length + 1 }).join(0) + i4 : i4;
            }
            function Un(t5, n5) {
              return t5 < 0 && n5 > 0 || n5 < 0 && t5 > 0 ? H : gt(t5 / n5 + 0.5) * n5;
            }
            function Hn(t5, n5) {
              return vt.Lkt(t5, n5);
            }
            function Vn(t5, n5) {
              return un(false, t5, n5);
            }
            function zn(t5, n5) {
              return un(true, t5, n5);
            }
            function Yn(t5) {
              return $(N(t5));
            }
            function Zn(t5, n5) {
              return pt(t5 / T(n5)) * T(n5);
            }
            function Wn(t5, n5) {
              return gt(t5 / T(n5)) * T(n5);
            }
            function Qn(t5, n5) {
              return 1 === n5 ? L : $(vt.ckt(t5, n5));
            }
            function Kn(t5) {
              return $(vt.ckt(t5, 10));
            }
            function Jn(t5, n5, e4, i4, o3) {
              var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2, M2, C2, S2, T2, x2 = t5.source && t5.source.Lbt, A2 = x2 && x2.dynamicReferences, I2 = i4 !== y && Y(i4);
              return i4 = i4 !== y ? i4 : n5, a2 = 0, u2 = 0, s2 = Z(n5), c2 = Z(i4), (s2 ? 1 : n5.getRangeCount()) !== (c2 ? 1 : i4.getRangeCount()) ? F : (f2 = i4, i4 === n5 || c2 || (h2 = s2 ? n5.getRowCount() : n5.getRowCount(0), d2 = s2 ? n5.getColumnCount() : n5.getColumnCount(0), h2 === i4.getRowCount(0) && d2 === i4.getColumnCount(0) || (v2 = i4.getRow(0), p2 = i4.getColumn(0), f2 = i4.create([{ row: v2, col: p2, rowCount: h2, colCount: d2 }]), l2 = true)), f2.Zbt = true, g2 = o3 ? 5 : 1, m2 = f2.toArray(g2, 2, false), I2 && (b2 = f2.getRow(0), w2 = f2.getColumn(0), M2 = t5.Xkt, C2 = i4.getSource(), I2 = M2 && C2.getRangeKey, l2 && !A2 && I2 && $n(M2, { id: C2.id, source: C2, row: b2, col: w2, rowCount: h2, colCount: d2 })), (S2 = x2.S9t || new r2.Functions.RangeCriteriaManager()).I9t(n5, e4, (function(t6) {
                var n6 = m2[t6];
                if (A2 && I2 && $n(M2, { id: C2.id, source: C2, row: b2 + k(t6 / d2), col: w2 + t6 % d2, rowCount: 1, colCount: 1 }), z(n6)) return T2 = n6, true;
                n6 !== V && (a2 += n6, u2++);
              }), M2 && M2.delay ? -1 : 1), T2 || (o3 ? 0 === u2 ? L : $(a2 / u2) : $(a2)));
            }
            function Xn(t5, n5, e4, i4) {
              return Jn(t5, n5, e4, i4);
            }
            function qn(t5, n5, e4, i4) {
              return Jn(t5, n5, e4, i4, true);
            }
            function $n(t5, n5) {
              var e4, i4 = n5 && n5.source;
              i4 && i4.getRangeKey && (e4 = i4.getRangeKey(i4, n5), t5.qkt || (t5.qkt = {}), t5.qkt[e4] = n5);
            }
            function te() {
              return rn(arguments);
            }
            function ne() {
              return rn(arguments, (function(t5) {
                var n5 = null;
                return t5.length > 0 && (n5 = Math.max.apply(null, t5)), n5;
              }));
            }
            function ee() {
              return rn(arguments, (function(t5) {
                var n5 = null;
                return t5.length > 0 && (n5 = Math.min.apply(null, t5)), n5;
              }));
            }
            function ie() {
              var t5, n5 = arguments, e4 = v(n5), i4 = [n5[0], n5[1]];
              for (t5 = 1; t5 < e4; t5++) i4[t5 + 1] = n5[t5];
              return rn(i4, (function(t6) {
                return t6.length;
              }), true);
            }
            function re(t5) {
              return rn(arguments, (function(t6) {
                var n5, e4, i4 = 0, r3 = 0;
                for (n5 = 0; n5 < t6.length; n5++) {
                  if (e4 = t6[n5], z(e4)) return e4;
                  i4 += e4, r3++;
                }
                return 0 === r3 ? L : $(i4 / r3);
              }));
            }
            function oe(t5) {
              for (var n5 = [], e4 = 0, i4 = []; e4 < t5; e4++) i4[e4] = 0;
              for (e4 = 0; e4 < t5; e4++) n5[e4] = i4.slice(0), n5[e4][e4] = 1;
              return new r2.CalcArray(n5);
            }
            function ae() {
              var t5, n5, e4, i4, r3, o3, a2, u2 = arguments, s2 = 0, c2 = [], f2 = 0;
              for (t5 = 0; t5 < v(u2); t5++) {
                if ((i4 = q(u2[t5], 1, true, true, false, true)).isError) return i4[0];
                if (i4.isConvertError) return F;
                if (0 === t5) n5 = i4.rowCount, e4 = i4.colCount, f2 = v(i4);
                else if (i4.rowCount !== n5 || i4.colCount !== e4) return F;
                c2.push(i4);
              }
              for (t5 = 0; t5 < f2; t5++) {
                for (r3 = 1, o3 = 0; o3 < v(u2); o3++) {
                  if ((a2 = c2[o3][t5]) === V) {
                    if (1 === f2) return F;
                    r3 = 0;
                    break;
                  }
                  r3 *= a2;
                }
                s2 += r3;
              }
              return $(s2);
            }
            function ue() {
              var t5, n5, e4, i4, r3 = arguments, o3 = 0;
              for (n5 = 0; n5 < v(r3); n5++) for (i4 = r3[n5], e4 = 0; e4 < v(i4); e4++) (t5 = i4[e4]) !== V && (o3 += t5 * t5);
              return $(o3);
            }
            function se(t5, n5) {
              return sn(false, true, t5, n5);
            }
            function ce(t5, n5) {
              return sn(false, false, t5, n5);
            }
            function fe(t5, n5) {
              return sn(true, false, t5, n5);
            }
            function le(t5, n5, e4, i4) {
              var r3, o3, a2 = 0;
              for (r3 = 0; r3 < v(i4); r3++) {
                if (o3 = K(i4[r3]), w(o3)) return F;
                a2 += o3 * O(t5, n5 + r3 * e4);
              }
              return $(a2);
            }
            function he(t5) {
              return $(x(t5 * D));
            }
            function de(t5) {
              return D * t5 / 180;
            }
            function ve(t5) {
              return $(Math.sin(t5));
            }
            function pe(t5) {
              var n5 = ve(t5);
              return 0 === n5 ? L : 1 / n5;
            }
            function ge(t5) {
              return $(Math.cos(t5));
            }
            function me(t5) {
              var n5 = ge(t5);
              return 0 === n5 ? L : 1 / n5;
            }
            function be(t5) {
              return $(Math.tan(t5));
            }
            function ye(t5) {
              return 0 === t5 ? L : $(1 / Math.tan(t5));
            }
            function we(t5) {
              return $(Math.asin(t5));
            }
            function Me(t5) {
              return $(Math.acos(t5));
            }
            function Ce(t5) {
              return $(vt.vkt(t5, true));
            }
            function Se(t5) {
              if (t5 > 709 || t5 < -709) return 0;
              var n5 = Ce(t5);
              return 0 === n5 ? L : 1 / n5;
            }
            function Te(t5) {
              return $(vt.vkt(t5, false));
            }
            function xe(t5) {
              if (t5 > 709 || t5 < -709) return 0;
              var n5 = Te(t5);
              return 0 === n5 ? L : 1 / n5;
            }
            function Ae(t5) {
              return $(j(t5 + x(t5 * t5 + 1)));
            }
            function Ie(t5) {
              return $(j(t5 + x(t5 * t5 - 1)));
            }
            function ke(t5) {
              return $(Math.atan(t5));
            }
            function Ne(t5) {
              return $(t5 < 0 ? Math.PI + Math.atan(1 / t5) : Math.atan(1 / t5));
            }
            function je(t5, n5) {
              return 0 === t5 && 0 === n5 ? L : $(Math.atan2(n5, t5));
            }
            function De(t5) {
              var n5 = N(t5), e4 = N(-t5);
              return $(n5 - e4) / (n5 + e4);
            }
            function _e(t5) {
              return 0 === t5 ? L : t5 > 10 ? 1 : t5 < -10 ? -1 : 1 / De(t5);
              var n5;
            }
            function Oe(t5) {
              return $(j((1 + t5) / (1 - t5)) / 2);
            }
            function Ee(t5) {
              return Oe(1 / t5);
            }
            function Re(t5) {
              var n5 = t5.rowCount, e4 = 1, i4, r3, o3, a2, u2, s2, c2, f2;
              if (t5.rangeCount > 1 || n5 !== t5.colCount) return F;
              for (i4 = 0; i4 < n5 - 1; i4++) {
                if (0 === t5[i4][i4]) {
                  for (s2 = false, r3 = i4 + 1; !s2 && r3 < n5; r3++) if (0 !== t5[r3][i4]) {
                    for (a2 = i4; a2 < n5; a2++) c2 = t5[i4][a2], t5[i4][a2] = t5[r3][a2], t5[r3][a2] = c2;
                    e4 *= -1, s2 = true;
                  }
                  if (!s2) return 0;
                }
                for (o3 = i4 + 1; o3 < n5; o3++) if (0 !== t5[o3][i4]) for (f2 = t5[o3][i4] / t5[i4][i4], u2 = i4; u2 < n5; u2++) t5[o3][u2] -= f2 * t5[i4][u2];
              }
              for (i4 = 0; i4 < n5; i4++) e4 *= t5[i4][i4];
              return e4;
            }
            function Le(t5) {
              var n5, e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = t5.rowCount, w2 = [];
              if (t5.rangeCount > 1 || y2 !== t5.colCount) return F;
              for (b2 = [], n5 = 0; n5 < y2; n5++) for (w2[n5] = [y2], b2[n5] = [], o3 = 0; o3 < y2; o3++) w2[n5][o3] = n5 === o3 ? 1 : 0, b2[n5][o3] = t5[n5][o3];
              for (e4 = 0; e4 < y2; e4++) {
                if (0 === b2[e4][e4]) {
                  for (m2 = false, a2 = e4 + 1; !m2 && a2 < y2; a2++) if (0 !== b2[a2][e4]) {
                    for (s2 = e4; s2 < y2; s2++) p2 = b2[e4][s2], b2[e4][s2] = b2[a2][s2], b2[a2][s2] = p2;
                    for (c2 = 1; c2 < y2; c2++) g2 = w2[e4][c2], w2[e4][c2] = w2[a2][c2], w2[a2][c2] = g2;
                    m2 = true;
                  }
                  if (!m2) return H;
                }
                for (u2 = 0; u2 < y2; u2++) if (u2 !== e4 && 0 !== b2[u2][e4]) {
                  for (d2 = b2[u2][e4] / b2[e4][e4], f2 = e4; f2 < y2; f2++) b2[u2][f2] -= d2 * b2[e4][f2];
                  for (l2 = 0; l2 < y2; l2++) w2[u2][l2] -= d2 * w2[e4][l2];
                }
              }
              for (i4 = 0; i4 < y2; i4++) for (v2 = b2[i4][i4], h2 = 0; h2 < y2; h2++) w2[i4][h2] /= v2;
              return new r2.CalcArray(w2);
            }
            function Fe(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2 = t5.rowCount, f2 = t5.colCount, l2 = n5.rowCount, h2 = n5.colCount, d2 = [];
              if (f2 !== l2) return F;
              for (o3 = 0; o3 < c2; o3++) for (d2[o3] = e4 = [], i4 = t5[o3], a2 = 0; a2 < h2; a2++) {
                for (s2 = 0, u2 = 0; u2 < l2; u2++) s2 += i4[u2] * n5[u2][a2];
                e4[a2] = s2;
              }
              return new r2.CalcArray(d2);
            }
            function Be() {
              var t5, n5, e4, i4, r3 = arguments, o3 = 0, a2 = 1;
              for (n5 = 0; n5 < v(r3); n5++) for (t5 = r3[n5], e4 = 0; e4 < v(t5); e4++) {
                if ((i4 = Q(t5[e4])) < 0 || 170 < i4) return H;
                o3 += i4, a2 *= ft(i4);
              }
              return o3 < 0 || 170 < o3 ? H : ft(o3) / a2;
            }
            function Pe() {
              return T(2 * _() - 1);
            }
            function Ge(t5, n5) {
              var e4, i4;
              return n5 < t5 ? H : (e4 = E(t5), i4 = k(n5) + 1, k(Math.random() * (i4 - e4)) + e4);
            }
            function Ue(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2 = ["M", "D", "C", "L", "X", "V", "I"], l2 = [1e3, 500, 100, 50, 10, 5, 1], h2 = 7, d2 = [];
              if ((e4 = nt(n5) ? n5 ? 0 : 4 : n5) > 4 || e4 < 0) return F;
              for (i4 = 0; i4 < h2; i4 += 2) {
                if (2 <= i4 && l2[i4 - 2] - l2[i4] <= t5) {
                  for (r3 = i4, o3 = i4 - 2, a2 = void 0, a2 = 0; a2 < e4 && r3 + 1 < h2 && l2[o3] - l2[r3 + 1] <= t5; a2++) r3++;
                  d2.push(f2[r3]), d2.push(f2[o3]), t5 += l2[r3], t5 -= l2[o3];
                }
                if (1 <= i4 && l2[i4 - 1] <= t5 && (d2.push(f2[i4 - 1]), t5 -= l2[i4 - 1]), 1 <= i4 && l2[i4 - 1] - l2[i4] <= t5) {
                  for (u2 = i4, s2 = i4 - 1, c2 = void 0, c2 = 0; c2 < e4 && u2 + 1 < h2 && l2[s2] - l2[u2 + 1] <= t5; c2++) u2++;
                  d2.push(f2[u2]), d2.push(f2[s2]), t5 += l2[u2], t5 -= l2[s2];
                }
                for (; l2[i4] <= t5; ) d2.push(f2[i4]), t5 -= l2[i4];
              }
              return d2.join("");
            }
            function He(t5) {
              var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2;
              if (!t5.length) return 0;
              if (t5.length > 255) return F;
              for (n5 = 0, e4 = (t5 = t5.toLowerCase()).length - 1, r3 = 0, u2 = -1; e4 >= 0 && " " === t5[e4]; ) e4--;
              for (s2 = 0; s2 <= e4 && " " === t5[s2]; ) s2++;
              c2 = false, s2 <= e4 && "-" === t5[s2] && (c2 = true, s2++);
              do {
                for (f2 = t5[i4 = e4], --e4; e4 >= s2 && (t5[e4].charCodeAt(0) | " ".charCodeAt(0)) === f2.charCodeAt(0); ) --e4;
                switch (f2) {
                  case "i":
                    o3 = i4 - e4, a2 = 1;
                    break;
                  case "v":
                    o3 = 5 * (i4 - e4), a2 = 5;
                    break;
                  case "x":
                    o3 = 10 * (i4 - e4), a2 = 10;
                    break;
                  case "l":
                    o3 = 50 * (i4 - e4), a2 = 50;
                    break;
                  case "c":
                    o3 = 100 * (i4 - e4), a2 = 100;
                    break;
                  case "d":
                    o3 = 500 * (i4 - e4), a2 = 500;
                    break;
                  case "m":
                    o3 = 1e3 * (i4 - e4), a2 = 1e3;
                    break;
                  default:
                    return F;
                }
                a2 >= u2 ? (n5 += o3 - r3, u2 = a2, r3 = 0) : r3 += o3;
              } while (e4 >= s2);
              return 0 !== r3 && (n5 -= r3), c2 && (n5 = -n5), n5;
            }
            function Ve(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2;
              if (void 0 === t5 && (t5 = 1), void 0 === n5 && (n5 = 1), void 0 === e4 && (e4 = 1), void 0 === i4 && (i4 = 1), o3 = e4, 0 === t5 || 0 === n5) return G;
              if (t5 < 0 || n5 < 0) return F;
              if ("string" == typeof e4 || e4 instanceof Date) {
                if (a2 = {}, !r2.Convert.sJ(e4, a2)) return F;
                o3 = a2.value;
              }
              for (u2 = [], s2 = 0, c2 = o3; s2 < t5; s2++) for (f2 = [], u2.push(f2), l2 = 0; l2 < n5; l2++) f2.push(c2), c2 += i4;
              return new r2.CalcArray(u2);
            }
            function ze(t5, n5, e4, i4, o3) {
              var a2, u2, s2, c2, f2, l2;
              if (void 0 === t5 && (t5 = 1), void 0 === n5 && (n5 = 1), void 0 === e4 && (e4 = 0), void 0 === i4 && (i4 = 1), void 0 === o3 && (o3 = false), 0 === t5 || 0 === n5) return G;
              if (t5 < 0 || n5 < 0) return F;
              if (e4 > i4) return F;
              if (o3 && (e4 !== k(e4) || i4 !== k(i4))) return F;
              for (a2 = i4 - e4, o3 && a2++, u2 = [], s2 = 0; s2 < t5; s2++) for (c2 = [], u2.push(c2), f2 = 0; f2 < n5; f2++) l2 = e4 + _() * a2, o3 && (l2 = C(l2)), c2.push(l2);
              return new r2.CalcArray(u2);
            }
            function Ye(t5, n5) {
              var e4, i4, r3, o3, a2 = true;
              for (e4 = 0; e4 < v(n5); e4++) for (r3 = n5[e4], i4 = 0; i4 < v(r3); i4++) if ("string" != typeof r3[i4] && !m(r3[i4])) {
                if (a2 = false, o3 = { value: b }, r3[i4] = bt(r3[i4], o3) ? o3.value : V, t5) {
                  if (!r3[i4]) return false;
                } else if (r3[i4] && r3[i4] !== V) return true;
              }
              return a2 ? F : !!t5;
            }
            function Ze() {
              return Ye(true, arguments);
            }
            function We() {
              return Ye(false, arguments);
            }
            function Qe(t5) {
              var n5, e4, i4 = Ke(t5);
              return -1 === i4 ? F : (0 !== i4 && (t5 = i4), n5 = {}, (e4 = r2.Convert.YK(t5, n5)) ? !n5.value : F);
            }
            function Ke(t5) {
              return "string" == typeof t5 ? "TRUE" === t5.toUpperCase() || "FALSE" !== t5.toUpperCase() && -1 : 0;
            }
            function Je(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2 = Ke(t5);
              return -1 === s2 ? F : (0 !== s2 && (t5 = s2), r3 = n5, o3 = tt(i4 = t5), z(t5) ? t5 : (a2 = e4 !== y ? e4 : 2 !== v(arguments) && null, u2 = {}, W(o3.value, u2), u2.value ? r3 : a2));
            }
            function Xe(t5, n5) {
              return z(t5) ? n5 : t5;
            }
            function qe(t5, n5) {
              var e4, i4, r3, o3;
              if (!z(t5) && Y(t5)) {
                if (t5.getRangeCount() > 1) return F;
                if (e4 = 0, i4 = 0, r3 = this.k9t) {
                  if (e4 = r3.row, i4 = r3.col, (o3 = t5.$gt && t5.$gt[0]) && 1 === o3.rowCount && 1 === o3.colCount) e4 = 0, i4 = 0;
                  else if (o3 && (e4 + 1 > o3.rowCount || i4 + 1 > o3.colCount)) return n5;
                }
                t5 = t5.getValue(0, e4, i4);
              }
              return Xe(t5, n5);
            }
            function $e() {
              return true;
            }
            function ti() {
              return false;
            }
            function ni(t5, n5) {
              return wt(t5) ? n5 : t5;
            }
            function ei(t5, n5, e4) {
              return 1 === t5.rowCount && 1 === t5.colCount ? t5[0][0] : 1 === t5.rowCount ? e4 < t5.colCount ? t5[0][e4] : U : 1 === t5.colCount ? n5 < t5.rowCount ? t5[n5][0] : U : n5 < t5.rowCount && e4 < t5.colCount ? t5[n5][e4] : U;
            }
            function ii(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2 = [t5], f2 = { value: false }, l2 = t5.rowCount, h2 = t5.colCount;
              for (n5.forEach((function(t6) {
                var n6 = q(t6, 0, false, false, false, false);
                c2.push(n6), l2 = Math.max(l2, n6.rowCount), h2 = Math.max(h2, n6.colCount);
              })), e4 = [], i4 = 0; i4 < l2; i4++) for (o3 = [], e4[i4] = o3, a2 = 0; a2 < h2; a2++) {
                for (u2 = 0; u2 < c2.length; u2 += 2) {
                  if (s2 = ei(c2[u2], i4, a2), !W(s2, f2)) {
                    e4[i4][a2] = U;
                    break;
                  }
                  if (f2.value) {
                    e4[i4][a2] = ei(c2[u2 + 1], i4, a2);
                    break;
                  }
                }
                void 0 === e4[i4][a2] && (e4[i4][a2] = U);
              }
              return new r2.CalcArray(e4);
            }
            function ri() {
              var t5, n5, e4, i4, r3, o3 = arguments;
              for (t5 = 0, n5 = o3.length; t5 < n5; t5 += 2) {
                if (e4 = { value: false }, i4 = o3[t5], z(i4)) return i4;
                if (Z(i4) || Y(i4)) {
                  if (1 !== (r3 = q(o3[t5], 0, false, false, false, false)).rowCount || 1 !== r3.colCount) return ii(r3, Array.prototype.slice.call(o3, t5 + 1));
                  i4 = r3[0][0];
                }
                if (!W(i4, e4)) return F;
                if (e4.value) return arguments[t5 + 1];
              }
              return U;
            }
            function oi() {
              var t5, n5, e4, i4, r3 = arguments;
              if (r3.length < 3) return F;
              if (t5 = r3[0], z(t5)) return t5;
              for (t5 === b && (t5 = 0), n5 = 1, e4 = r3.length - 1; n5 < e4; n5++) {
                if (i4 = r3[n5], n5++, z(i4)) return i4;
                if (i4 === b && (i4 = 0), rt(t5) && rt(i4)) {
                  if (t5.toUpperCase() === i4.toUpperCase()) return r3[n5];
                } else if (t5 === i4) return r3[n5];
              }
              return r3.length % 2 == 0 ? r3[r3.length - 1] : U;
            }
            function ai() {
              var t5, n5, e4, i4 = true, r3 = 0;
              for (t5 = 0; t5 < v(arguments); t5++) for (e4 = arguments[t5], n5 = 0; n5 < v(e4); n5++) "string" == typeof e4[n5] || m(e4[n5]) || (i4 = false, e4[n5] && r3++);
              return i4 ? F : !!(r3 % 2);
            }
            function ui(t5, n5, e4) {
              var i4, o3 = t5.source && t5.source.Lbt && t5.source.Lbt.MX;
              return o3 ? ((i4 = (0, r2.YJ)(n5, e4, 0, 0)).ywr = true, o3.evaluate(i4, t5, false, false)) : G;
            }
            function si(t5, n5, e4) {
              return n5 instanceof r2.Functions.LambdaFunction ? (0, r2.Hkr)(t5, n5, e4, false, false) : ui(t5, n5, e4);
            }
            function ci(t5) {
              return !Z(t5) || 1 === t5.getColumnCount() && 1 === t5.getRowCount();
            }
            function fi(t5) {
              return Z(t5) ? t5 instanceof r2.TwoDimensionalCalcArray ? t5.getCalculatedValue() : t5.getValue(0, 0) : t5;
            }
            function li(t5, n5, e4) {
              return t5[n5 * t5.colCount + e4];
            }
            function hi() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, p2 = arguments, g2 = v(p2), m2 = p2[0], b2 = p2[g2 - 1];
              if (!(0, r2.isFunction)(b2)) return F;
              for (t5 = [], n5 = [], e4 = 0, i4 = 0, o3 = 1; o3 < g2 - 1; o3++) if ((0, r2.LE)(p2[o3])) e4 = Math.max(e4, p2[o3].getRowCount(0)), i4 = Math.max(i4, p2[o3].getColumnCount(0)), n5[o3 - 1] = p2[o3];
              else {
                if (a2 = Ao(p2[o3], 0), z(a2)) return a2;
                e4 = Math.max(e4, a2.rowCount), i4 = Math.max(i4, a2.colCount), t5[o3 - 1] = a2;
              }
              if (b2.parameters && b2.parameters.length !== g2 - 2) return F;
              for (u2 = [], s2 = 0; s2 < e4; s2++) {
                for (c2 = [], f2 = 0; f2 < i4; f2++) {
                  for (l2 = [], h2 = false, o3 = 0; o3 < g2 - 2; o3++) if (n5[o3]) {
                    if (!(s2 < n5[o3].getRowCount(0) && f2 < n5[o3].getColumnCount(0))) {
                      h2 = true;
                      break;
                    }
                    l2.push(n5[o3].create([{ row: n5[o3].getRow(0) + s2, col: n5[o3].getColumn(0) + f2, rowCount: 1, colCount: 1 }]));
                  } else {
                    if (!(s2 < t5[o3].rowCount && f2 < t5[o3].colCount)) {
                      h2 = true;
                      break;
                    }
                    l2.push(li(t5[o3], s2, f2));
                  }
                  if (h2) c2.push(U);
                  else {
                    if ((d2 = si(m2, b2, l2)) && d2.pause) return d2;
                    if (!ci(d2)) return G;
                    d2 = fi(d2), c2.push(d2);
                  }
                }
                u2.push(c2);
              }
              return new r2.CalcArray(u2);
            }
            function di(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2 = (0, r2.LE)(e4) && e4, h2 = Ao(e4, 0, false);
              if (z(h2)) return h2;
              if (!(0, r2.isFunction)(i4) || i4.parameters && 2 !== i4.parameters.length) return F;
              for (o3 = h2.rowCount, a2 = h2.colCount, u2 = n5, s2 = 0; s2 < o3; s2++) for (c2 = 0; c2 < a2; c2++) if (f2 = l2 ? l2.create([{ row: l2.getRow(0) + s2, col: l2.getColumn(0) + c2, rowCount: 1, colCount: 1 }]) : li(h2, s2, c2), (u2 = n5 === b && 0 === s2 && 0 === c2 ? l2 ? li(h2, s2, c2) : f2 : si(t5, i4, [u2, f2])) && u2.pause) return u2;
              return u2;
            }
            function vi(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2 = (0, r2.LE)(e4) && e4, v2 = Ao(e4, 0, false);
              if (z(v2)) return v2;
              if (!(0, r2.isFunction)(i4) || i4.parameters && 2 !== i4.parameters.length) return F;
              for (o3 = v2.rowCount, a2 = v2.colCount, u2 = [], s2 = n5, c2 = 0; c2 < o3; c2++) {
                for (f2 = [], l2 = 0; l2 < a2; l2++) {
                  if (h2 = d2 ? d2.create([{ row: d2.getRow(0) + c2, col: d2.getColumn(0) + l2, rowCount: 1, colCount: 1 }]) : li(v2, c2, l2), (s2 = n5 === b && 0 === c2 && 0 === l2 ? d2 ? li(v2, c2, l2) : h2 : si(t5, i4, [s2, h2])) && s2.pause) return s2;
                  if (!ci(s2)) return G;
                  s2 = fi(s2), f2.push(s2);
                }
                u2.push(f2);
              }
              return new r2.CalcArray(u2);
            }
            function pi(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2;
              if (!(0, r2.isFunction)(i4) || i4.parameters && 2 !== i4.parameters.length) return F;
              if (n5 <= 0 || e4 <= 0) return F;
              for (o3 = [], a2 = 0; a2 < n5; a2++) {
                for (u2 = [], s2 = 0; s2 < e4; s2++) {
                  if ((c2 = si(t5, i4, [a2 + 1, s2 + 1])) && c2.pause) return c2;
                  if (!ci(c2)) return G;
                  c2 = fi(c2), u2.push(c2);
                }
                o3.push(u2);
              }
              return new r2.CalcArray(o3);
            }
            function gi(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2;
              if (!(0, r2.isFunction)(e4) || e4.parameters && 1 !== e4.parameters.length) return 2 === arguments.length ? U : F;
              if (i4 = (0, r2.LE)(n5) && n5, o3 = Ao(n5, 0, false), z(o3)) return o3;
              for (a2 = o3.rowCount, u2 = o3.colCount, s2 = [], c2 = 0; c2 < a2; c2++) {
                if (f2 = void 0, i4) l2 = i4.getRow(0) + c2, f2 = i4.create([{ row: l2, col: i4.getColumn(0), rowCount: 1, colCount: i4.getColumnCount(0) }]);
                else {
                  for (f2 = [], h2 = 0; h2 < u2; h2++) f2.push(li(o3, c2, h2));
                  f2 = new r2.CalcArray([f2]);
                }
                if ((d2 = si(t5, e4, [f2])) && d2.pause) return d2;
                if (!ci(d2)) return G;
                d2 = fi(d2), s2.push([d2]);
              }
              return new r2.CalcArray(s2);
            }
            function mi(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2;
              if (!(0, r2.isFunction)(e4) || e4.parameters && 1 !== e4.parameters.length) return 2 === arguments.length ? U : F;
              if (i4 = (0, r2.LE)(n5) && n5, o3 = Ao(n5, 0, false), z(o3)) return o3;
              for (a2 = o3.rowCount, u2 = o3.colCount, s2 = [], c2 = 0; c2 < u2; c2++) {
                if (f2 = void 0, i4) f2 = i4.create([{ row: i4.getRow(0), col: i4.getColumn(0) + c2, rowCount: i4.getRowCount(0), colCount: 1 }]);
                else {
                  for (f2 = [], l2 = 0; l2 < a2; l2++) f2.push([li(o3, l2, c2)]);
                  f2 = new r2.CalcArray(f2);
                }
                if ((h2 = si(t5, e4, [f2])) && h2.pause) return h2;
                if (!ci(h2)) return G;
                h2 = fi(h2), s2.push(h2);
              }
              return new r2.CalcArray([s2]);
            }
            function bi(t5) {
              var n5, e4 = t5.getFullYear(), i4 = t5.getMonth(), r3 = t5.getDate(), o3 = r3;
              for (n5 = 0; n5 < i4; n5++) o3 += ct(e4, n5);
              return o3;
            }
            function yi(t5) {
              if (rt(t5)) {
                if (7 !== v(t5) || w(C(t5))) return F;
              } else if (!w(t5)) {
                if (k(t5) < 1 || k(t5) > 17) return H;
                t5 = t5.toString();
              }
              var n5 = ["1", "2", "3", "4", "5", "6", "7"], e4 = [0, 0, 0, 0, 0, 0, 0], i4;
              switch (v(t5)) {
                case 1:
                  if (g(t5, n5) >= 0) {
                    e4[((i4 = C(t5)) + 4) % 7] = 1, e4[(i4 + 5) % 7] = 1;
                    break;
                  }
                  return H;
                case 2:
                  if ("1" === t5[0] && g(t5[1], n5) >= 0) {
                    e4[((i4 = C(t5[1])) + 5) % 7] = 1;
                    break;
                  }
                  return H;
                case 7:
                  for (i4 = 0; i4 < 7; i4++) e4[i4] = C(t5[i4]);
                  break;
                default:
                  return F;
              }
              return e4;
            }
            function wi(t5, n5, e4, i4, r3) {
              var o3, a2, u2;
              if (n5.setHours(0, 0, 0, 0), o3 = Pi(n5, 3), z(o3)) return o3;
              for (a2 = Q(o3), i4 = i4.map((function(t6) {
                return Q(it(t6) ? f(t6) : t6);
              })); e4 < 0; ++e4) n5.setDate(n5.getDate() - 1), a2 = 0 === a2 ? 6 : a2 - 1, (t5 && (5 === a2 || 6 === a2) || !t5 && r3[a2] || i4.indexOf(f(n5)) >= 0) && e4--;
              for (; e4 > 0; --e4) n5.setDate(n5.getDate() + 1), a2 = 6 === a2 ? 0 : a2 + 1, (t5 && (5 === a2 || 6 === a2) || !t5 && r3[a2] || i4.indexOf(f(n5)) >= 0) && e4++;
              return (u2 = f(n5)) < 0 ? H : u2;
            }
            function Mi(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2, h2, d2, p2, g2;
              if (o3 && (u2 = yi(t5 = t5 !== y ? t5 : "0000011"), z(u2))) return u2;
              if (n5 !== y && (a2 = q(n5, 4, true, true, false)), !a2) return r3;
              if (a2.isError) return a2[0];
              for (s2 = v(a2), c2 = [], f2 = 0; f2 < s2; f2++) h2 = a2[f2], p2 = (d2 = l(h2)).getDay(), g2 = v(u2) ? u2[Pi(d2, 3)] : 6 === p2 || 0 === p2, -1 === c2.indexOf(h2) && !g2 && h2 >= e4 && h2 <= i4 && c2.push(h2);
              return r3 -= v(c2);
            }
            function Ci(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2 = Q(f(n5)), l2 = Q(f(e4)), h2 = false;
              return c2 > l2 && (a2 = n5, n5 = e4, e4 = a2, u2 = c2, c2 = l2, l2 = u2, h2 = true), s2 = o3(n5, e4, s2 = l2 - c2 + 1, i4), t5 && z(s2) ? s2 : s2 <= 0 ? 0 : (s2 = Mi(i4, r3, c2, l2, s2, t5), s2 = h2 ? -s2 : s2);
            }
            function Si(t5, n5, e4) {
              var i4, o3;
              return n5 = r2.Convert.r0(n5), (i4 = new Date(n5.getFullYear(), n5.getMonth(), 1)).setMonth(i4.getMonth() + e4), o3 = ct(i4.getFullYear(), i4.getMonth()), i4.setDate(t5 ? o3 : I(n5.getDate(), o3)), i4;
            }
            function Ti(t5) {
              return "string" == typeof t5 && 0 === t5.trim().length;
            }
            function xi(t5, n5, e4) {
              if (Ti(t5) || Ti(n5) || Ti(e4)) return F;
              if (t5 = Q(t5), n5 = Q(n5), e4 = Q(e4), t5 <= 1899) t5 += 1900;
              else if (t5 > 9999) return H;
              var i4 = new Date(t5, n5 - 1, e4);
              return i4 < new Date(1899, 11, 30) ? H : i4;
            }
            function Ai(t5, n5, e4) {
              var i4 = l(0);
              return i4.setHours(t5), i4.setMinutes(n5), i4.setSeconds(e4), i4.setMilliseconds(0), i4.getHours() < 0 && i4.getMinutes() < 0 && i4.getSeconds() < 0 ? H : i4;
            }
            function Ii(t5) {
              var n5, e4, i4, r3;
              if (rt(t5) && ((n5 = h(t5)) || (n5 = new Date(t5)) && !w(n5.valueOf()) || (n5 = null)), !n5) return F;
              if (i4 = n5.getFullYear(), r3 = bi(n5), i4 < 1900) return F;
              for (e4 = 1900; e4 < i4; e4++) r3 += 365, ot(e4) && r3++;
              return r3;
            }
            function ki(t5) {
              var n5;
              return rt(t5) && ((n5 = h(t5)) || (n5 = u.Z6t(t5))), n5 ? (60 * (60 * n5.getHours() + n5.getMinutes()) + n5.getSeconds()) / 86400 : F;
            }
            function Ni() {
              return /* @__PURE__ */ new Date();
            }
            function ji() {
              var t5 = /* @__PURE__ */ new Date();
              return t5.setHours(0, 0, 0, 0), t5;
            }
            function Di(t5) {
              if (r2.ExcelCompatibleCalcMode) {
                var n5 = t5.getMilliseconds();
                if (n5 > 500) return new Date(t5.getTime() + 1e3 - n5);
              }
              return t5;
            }
            function _i(t5) {
              return (t5 = Di(t5)).getHours();
            }
            function Oi(t5) {
              return (t5 = Di(t5)).getMinutes();
            }
            function Ei(t5) {
              return (t5 = Di(t5)).getSeconds();
            }
            function Ri(t5) {
              return (t5 = Di(t5)).getDate();
            }
            function Li(t5) {
              return (t5 = Di(t5)).getMonth() + 1;
            }
            function Fi(t5) {
              return (t5 = Di(t5)).getFullYear();
            }
            function Bi(t5, n5) {
              var e4, i4, r3;
              return t5 = Di(t5), 1 === n5 || 17 === n5 || m(n5) || 2 === n5 || 11 === n5 || 12 === n5 || 13 === n5 || 14 === n5 || 15 === n5 || 16 === n5 ? (e4 = bi(t5), i4 = new Date(t5.getFullYear(), 0, 1).getDay(), 2 === n5 ? i4 -= 1 : 11 === n5 || 12 === n5 || 13 === n5 || 14 === n5 || 15 === n5 ? i4 = i4 - n5 + 10 : 16 === n5 && (i4 += 1), i4 < 0 && (i4 = 7 + i4), (r3 = e4 - 1 - (6 - i4)) < 0 && (r3 = 0), 7 === i4 && 16 === n5 ? Q(r3 / 7) + (r3 % 7 != 0 ? 1 : 0) : 1 + Q(r3 / 7) + (r3 % 7 != 0 ? 1 : 0)) : 21 === n5 ? Ki(t5) : H;
            }
            function Pi(t5, n5) {
              var e4, i4;
              switch (e4 = (t5 = Di(t5)).getDay(), n5) {
                case 1:
                case 17:
                  return e4 + 1;
                case 2:
                case 11:
                  return 0 === e4 ? 7 : e4;
                case 3:
                  return 0 === e4 ? 6 : e4 - 1;
                case 12:
                case 13:
                case 14:
                case 15:
                case 16:
                  return 0 === (i4 = (e4 + 18 - n5) % 7) ? 7 : i4;
                default:
                  return H;
              }
            }
            function Gi(t5, n5) {
              return Si(false, t5, n5);
            }
            function Ui(t5, n5) {
              return Si(true, t5, n5);
            }
            function Hi(t5, n5, e4) {
              return wi(true, t5, n5, e4);
            }
            function Vi(t5, n5, e4, i4) {
              m(e4) && 0 === n5 && (e4 = 1);
              var r3 = yi(e4);
              return z(r3) ? r3 : "1111111" === r3.join("") ? F : wi(false, t5, n5, i4, r3);
            }
            function zi(t5, n5, e4) {
              function i4(t6, n6, e5) {
                var i5, r3 = Q(f(n6)) - Q(f(t6)), o3 = t6.getDay(), a2 = 0;
                return r3 += o3, o3 > 0 && (a2 = 1), 6 !== (i5 = n6.getDay()) && a2++, e5 - (r3 += 7 - i5) / 7 * 2 + a2;
              }
              return Ci(false, t5, n5, y, e4, i4);
            }
            function Yi(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2, f2;
              if (r3 = yi(i4 = i4 !== y ? i4 : "0000011"), o3 = 0, a2 = 0, z(r3)) return r3;
              for (u2 = 0; u2 < v(r3); u2++) 1 === r3[u2] && o3++;
              if (e4 < 30) {
                for (u2 = 0; u2 < e4; u2++) r3[(Q(Pi(t5, 3)) + u2) % 7] && a2++;
                return e4 -= a2;
              }
              for (s2 = e4, c2 = 0, f2 = 0, u2 = 0; u2 < s2 && Q(Pi(t5, 3) + u2) % 7 != 0; u2++) c2++;
              for (u2 = 0; u2 < c2; u2++) r3[(Q(Pi(t5, 3)) + u2) % 7] && a2++;
              for (u2 = 0; u2 < s2 && (Q(Pi(n5, 3)) + 7 - u2) % 7 != 6; u2++) f2++;
              for (u2 = 0; u2 < f2; u2++) r3[(Q(Pi(n5, 3)) + 7 - u2) % 7] && a2++;
              return e4 -= Q((s2 = s2 - c2 - f2) / 7) * o3, e4 -= a2;
            }
            function Zi(t5, n5, e4, i4) {
              return Ci(true, t5, n5, e4, i4, Yi);
            }
            function Wi(t5, n5, e4) {
              var i4, o3, a2;
              function u2() {
                var t6 = [];
                return t6[0] = function(t7, n6) {
                  return n6.getFullYear() - t7.getFullYear() + (n6.getMonth() < t7.getMonth() || n6.getMonth() === t7.getMonth() && n6.getDate() < t7.getDate() ? -1 : 0);
                }, t6[1] = function(t7, n6) {
                  return 12 * (n6.getFullYear() - t7.getFullYear()) + (n6.getMonth() - t7.getMonth()) + (n6.getDate() < t7.getDate() ? -1 : 0);
                }, t6[2] = function(t7, n6) {
                  return (n6.getTime() - t7.getTime()) / 864e5;
                }, t6[3] = function(t7, n6) {
                  var e5 = new Date(n6.getFullYear(), n6.getMonth() + (n6.getDate() < t7.getDate() ? -1 : 0), t7.getDate());
                  return (n6.getTime() - e5.getTime()) / 864e5;
                }, t6[4] = function(t7, n6) {
                  return n6.getMonth() - t7.getMonth() + (n6.getMonth() < t7.getMonth() || n6.getMonth() === t7.getMonth() && n6.getDate() < t7.getDate() ? 12 : 0) + (n6.getDate() < t7.getDate() ? -1 : 0);
                }, t6[5] = function(t7, n6) {
                  var e5, i5 = n6.getFullYear() + (n6.getMonth() < t7.getMonth() || n6.getMonth() === t7.getMonth() && n6.getDate() < t7.getDate() ? -1 : 0), r3 = t7.getMonth(), o4 = t7.getDate(), a3 = ot(t7.getFullYear());
                  return 1 !== r3 || 29 !== o4 || ot(i5) || o4--, !a3 && 1 === r3 && 28 === o4 && ot(i5) && o4++, (n6 - (e5 = new Date(i5, r3, o4))) / 864e5;
                }, t6;
              }
              if (t5.setHours(0, 0, 0, 0), n5.setHours(0, 0, 0, 0), r2.ExcelCompatibleCalcMode && (t5 < kt || n5 > Nt)) return H;
              if (e4 = e4.toLocaleUpperCase(), i4 = u2(), o3 = g(e4, ["Y", "M", "D", "MD", "YM", "YD"]), n5 < t5) return H;
              if (o3 < 0) throw (0, r2.sR)().Exp_NotSupported;
              return (a2 = i4[o3])(t5, n5);
            }
            function Qi(t5, n5) {
              var e4, i4, r3 = { value: 0 };
              if (!bt(t5, r3)) return F;
              if (!bt(n5, e4 = { value: 0 })) return F;
              function o3(t6) {
                return t6 >= 0 && t6 < i4 + 1;
              }
              return i4 = 2958465, o3(r3.value) && o3(e4.value) ? k(r3.value) - k(e4.value) : H;
            }
            function Ki(t5) {
              var n5, e4, i4, r3, o3;
              if (isNaN(t5)) return H;
              function a2(t6) {
                var n6 = new Date(t6, 0, 4), e5 = n6.getDay();
                return 0 === e5 && (e5 = 7), n6.setDate(n6.getDate() + 1 - e5), n6;
              }
              return n5 = new Date(1900, 1, 28), t5.getTime() <= n5.getTime() && t5.setDate(t5.getDate() - 1), 1900 === (e4 = t5.getFullYear()) ? e4 += 400 : 9999 === e4 && (e4 -= 400), t5.setYear(e4), t5.getTime() < new Date(e4, 11, 29).getTime() && e4--, i4 = a2(e4 + 1), t5.getTime() < i4.getTime() && (i4 = a2(e4)), r3 = 60 * t5.getTimezoneOffset() * 1e3, o3 = 60 * i4.getTimezoneOffset() * 1e3, C(((t5.getTime() - r3 - i4.getTime() + o3) / 864e5 / 7).toString()) + 1;
            }
            function Ji(t5) {
              var n5, e4, i4, r3 = t5.toString(), o3 = "", a2 = [];
              if (t5 < 0 && (r3 = r3.substr(1), o3 = "-"), e4 = r3.split("."), (i4 = v(e4)) < 1 || i4 > 2) return F;
              for (2 === i4 && (a2.push(e4[1]), a2.push(".")), r3 = e4[0], n5 = v(r3) - 3; n5 >= 0; n5 -= 3) a2.push(r3.substr(n5, 3)), n5 > 0 && a2.push(",");
              return a2.push(r3.substring(0, n5 + 3)), a2.reverse(), o3 + a2.join("");
            }
            function Xi(t5, n5) {
              var e4, i4, r3, o3, a2 = [], u2 = v(t5);
              for (e4 = 0; e4 < u2; e4++) {
                if (r3 = t5[e4], 0 === (o3 = v(r3)) && "concat" === n5) return R;
                for (i4 = 0; i4 < o3; i4++) m(r3[i4]) || a2.push(J(r3[i4]));
              }
              return a2.join("");
            }
            function qi(t5, n5, e4) {
              var i4, r3, o3 = [], a2 = 0;
              for (i4 = 0; i4 < n5.length; i4++) "fourByte" === (r3 = at(n5[i4])) ? 0 === a2 ? a2++ : (a2 = 0, o3.push(n5[i4 - 1] + n5[i4])) : o3.push(n5[i4]);
              return e4 >= o3.length ? n5 : o3.splice(t5 ? 0 : o3.length - e4, e4).join("");
            }
            function $i(t5) {
              var n5 = [], e4, i4;
              for (e4 = 0; e4 < v(t5); e4++) 0 <= (i4 = t5.charCodeAt(e4)) && i4 <= 31 || 127 === i4 || 128 <= i4 && i4 <= 159 || n5.push(t5[e4]);
              return n5.join("");
            }
            function tr(t5) {
              var n5, e4, i4, r3, o3;
              for (t5 = t5.trim(), n5 = [], e4 = true, i4 = 0; i4 < v(t5); i4++) (o3 = " " === (r3 = t5.charAt(i4)) || "	" === r3 || "\n" === r3) && !e4 || n5.push(r3), e4 = !o3;
              return n5.join("");
            }
            function nr(t5, n5) {
              function e4(t6) {
                var n6 = Ji(t6), e5 = [];
                return t6 < 0 && (n6 = n6.substr(1)), e5.push("$"), e5.push(n6), t6 < 0 && (e5.push(")"), e5.unshift("(")), e5.join("");
              }
              return e4(t5 = K(Hn(t5, n5)));
            }
            function er(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2 = 0;
              if (n5 < 0 && (t5 /= s2 = Q(O(10, T(n5)))), t5 = K(Hn(t5, A(0, n5))), n5 < 0 && (t5 *= s2), i4 = e4 ? t5.toString() : Ji(t5), n5 > 0) if (-1 === (r3 = i4.indexOf("."))) for (i4 += ".", o3 = 0; o3 < n5; o3++) i4 += "0";
              else for (u2 = a2 = i4.length - (r3 + 1); u2 < n5; u2++) i4 += "0";
              return i4;
            }
            function ir(t5, n5) {
              var e4, r3;
              if ("" === n5) return J(t5);
              m(t5) && (t5 = 0), "string" == typeof t5 && (t5 = t5.trim());
              try {
                return (e4 = i3.Formatter && i3.Formatter.GeneralFormatter) ? (r3 = new e4(n5)).format(t5) : t5.toString();
              } catch (t6) {
                return F;
              }
            }
            function rr(t5) {
              if (!t5) return 0;
              if ("boolean" == typeof t5) return F;
              if (t5 instanceof Date && (t5 = u.o0(t5).toString()), "string" != typeof t5) return t5;
              var n5 = h(t5), e4;
              return m(n5) ? or(t5) : (e4 = f(n5), z(e4) ? ki(n5) : e4);
            }
            function or(t5) {
              var n5, e4, a2, u2, s2, c2, f2, l2 = i3.Common.CultureManager.Fe().NumberFormat;
              if (t5 = t5.trim(), n5 = "$" === l2.currencySymbol ? "\\$" : "[$".concat(l2.currencySymbol, "]"), o2.qT("^(".concat(n5, "|[+-]\\s*").concat(n5, ")")).test(t5) && (t5 = t5.replace(o2.bue(n5), "")), t5 = t5.replace(/^[+-]\s+/, (function(t6) {
                return t6[0];
              })), e4 = M(t5), w(e4)) return F;
              for ("-" === t5[0] && "." === t5[1] && (t5 = t5.replace(t5[1], "0.")), "." === t5[0] && (t5 = "0" + t5), a2 = t5.length, u2 = 0, c2 = 0, f2 = 0; u2 < a2; u2++) {
                for (s2 = t5[u2]; u2 < a2 && (0, r2.isDigit)(s2.charCodeAt(0)); ) s2 = t5[++u2];
                if (u2 === a2) {
                  if (c2 && u2 - c2 <= 3) return F;
                  break;
                }
                if (s2 === l2.numberGroupSeparator) {
                  if (f2 || c2 && u2 - c2 <= 3) return F;
                  c2 = u2;
                } else if (s2 === l2.numberDecimalSeparator) {
                  if (f2 || c2 && u2 - c2 <= 3) return F;
                  f2 = u2;
                }
              }
              return K(t5);
            }
            function ar(t5) {
              return t5.toLowerCase();
            }
            function ur(t5) {
              return t5.toUpperCase();
            }
            function sr(t5) {
              var n5, e4, i4, o3 = v(t5), a2 = [];
              if (o3 > 0) for (n5 = t5.toUpperCase(), e4 = t5.toLowerCase(), i4 = 1, a2[0] = n5[0]; i4 < o3; ) a2[i4] = (0, r2.Swt)(t5[i4 - 1]) ? e4[i4] : n5[i4], i4++;
              return a2.join("");
            }
            function cr(t5) {
              return String.fromCharCode(t5);
            }
            function fr(t5) {
              return t5[0].charCodeAt(0);
            }
            function lr(t5, n5, e4, i4) {
              var r3, o3, a2 = v(t5);
              return n5 = I(n5, a2 + 1), e4 = I(e4 || 0, a2 - n5 + 1), r3 = t5.substring(0, n5 - 1), o3 = t5.substr(n5 - 1 + e4), r3.concat(i4).concat(o3);
            }
            function hr(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2;
              if (kr() || r2.usedbcs) {
                for (o3 = [], a2 = void 0, u2 = 0, s2 = 0; s2 < t5.length; s2++) a2 = t5[s2], "doubleByte" === (c2 = at(t5[s2])) && (u2++, a2 = t5[s2]), o3[s2 + u2] = a2;
                return f2 = o3.length, n5 = I(n5, f2 + 1), e4 = I(e4 || 0, f2 - n5 + 1), m(o3[n5 - 1]) ? (o3[n5 - 1] = " ", o3[n5] = " ") : m(o3[n5 - 2]) && n5 >= 2 && (o3[n5 - 2] = " ", o3[n5 - 1] = " "), l2 = o3.slice(0, n5 - 1).join(""), h2 = o3.slice(n5 - 1 + e4).join(""), l2.concat(i4).concat(h2);
              }
              return lr(t5, n5, e4, i4);
            }
            function dr(t5, n5, e4, i4) {
              var r3, o3, u2, s2, c2, f2, l2;
              if ("" === n5) return t5;
              if (o3 = v(n5), v(arguments) > 3) {
                if (s2 = 0, c2 = void 0, (u2 = Q(i4)) < 1) return F;
                for (c2 = 0; c2 < u2; c2++) {
                  if (-1 === (s2 = t5.indexOf(n5, s2))) return t5;
                  s2 += o3;
                }
                f2 = t5.substring(0, s2 - o3), l2 = t5.substr(s2), r3 = f2.concat(e4).concat(l2);
              } else r3 = a.qS(t5, n5, e4);
              return r3;
            }
            function vr() {
              return Xi(arguments, "concatenate");
            }
            function pr() {
              return Xi(arguments, "concat");
            }
            function gr(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2;
              if (t5.isReference && 0 === t5.length) return R;
              if (e4 = { value: false }, i4 = !!m(n5[0]) || n5[0], !yt(i4, e4)) return F;
              for (i4 = e4.value, o3 = [], a2 = [], u2 = v(r3 = arguments), s2 = 2; s2 < u2; s2++) mr(o3, r3[s2], i4);
              return mr(a2, r3[0], false), br(o3, a2);
            }
            function mr(t5, n5, e4) {
              var i4, r3 = v(n5);
              if (0 === r3) return R;
              for (i4 = 0; i4 < r3; i4++) m(n5[i4]) || "" === n5[i4] ? e4 || t5.push("") : t5.push(J(n5[i4]));
            }
            function br(t5, n5) {
              if (0 === t5.length) return "";
              if (1 === n5.length) return t5.join(n5[0]);
              for (var e4 = t5[0], i4 = 1, r3 = 0; i4 < t5.length; i4++, r3++) r3 === n5.length && (r3 = 0), e4 += n5[r3] + t5[i4];
              return e4;
            }
            function yr(t5, n5) {
              return qi(true, t5, n5);
            }
            function wr(t5, n5) {
              return qi(false, t5, n5);
            }
            function Mr(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2;
              if (kr() || r2.usedbcs) {
                for (i4 = [], o3 = void 0, a2 = 0, u2 = void 0, s2 = 0, u2 = 0; u2 < n5.length; u2++) if (o3 = n5[u2], "fourByte" === (c2 = at(n5[u2]))) {
                  if (a2 % 2 == 0) {
                    a2++;
                    continue;
                  }
                  a2++, o3 = n5[u2 - 1] + n5[u2], i4[i4.length] = o3;
                } else "doubleByte" === c2 && (s2++, o3 = n5[u2]), i4[u2 - (f2 = a2 > 0 ? a2 / 2 : 0) + s2] = o3;
                return t5 || (i4 = st(i4)), e4 >= (l2 = i4.length) ? n5 : (h2 = void 0, t5 ? (h2 = i4.slice(0, e4 - 1 < 0 ? 0 : e4)).length > 0 && m(h2[h2.length - 1]) && (h2[h2.length - 1] = "​") : (h2 = i4.slice(l2 - e4)).length > 0 && m(h2[0]) && (h2[0] = "​"), h2.join(""));
              }
              return qi(t5, n5, e4);
            }
            function Cr(t5, n5) {
              return Mr(true, t5, n5);
            }
            function Sr(t5, n5) {
              return Mr(false, t5, n5);
            }
            function Tr(t5, n5, e4) {
              n5--;
              var i4 = v(t5);
              return n5 >= i4 ? "" : i4 < n5 + e4 ? t5.substr(n5) : t5.substr(n5, e4);
            }
            function xr(t5, n5, e4) {
              var i4, o3, a2;
              return kr() || r2.usedbcs ? (o3 = (i4 = ut(t5)).length, --n5 < 0 ? F : n5 >= o3 ? "" : o3 < n5 + e4 ? i4.slice(n5).join("") : (a2 = i4.slice(n5, n5 + e4), "singleByte" !== at(a2[a2.length - 1]) && (a2[a2.length - 1] = "​", m(a2[0]) && (a2[a2.length] = "​")), a2.join(""))) : Tr(t5, n5, e4);
            }
            function Ar(t5, n5) {
              var e4 = [], i4;
              if (n5 < 0 || n5 * v(t5) > 32767) return F;
              for (i4 = 0; i4 < n5; i4++) e4.push(t5);
              return e4.join("");
            }
            function Ir(t5) {
              return t5 ? t5.length : 0;
            }
            function kr() {
              var t5;
              return !!i3.Common.CultureManager.Fe().isJCKCulture;
            }
            function Nr(t5) {
              var n5, e4, o3, a2;
              if (!t5) return 0;
              if (kr() || r2.usedbcs) {
                for (n5 = 0, e4 = 0; e4 < t5.length; e4++) if (8203 !== t5[e4].charCodeAt(0) && (o3 = at(t5[e4]), a2 = i3.Common.CultureManager.Fe(), "doubleByte" === o3 && 9390 !== t5[e4].charCodeAt(0))) {
                  if ("ja-jp" === (a2 && a2.name().toLocaleLowerCase()) && (711 === t5[e4].charCodeAt(0) || 9356 === t5[e4].charCodeAt(0) || 8212 === t5[e4].charCodeAt(0))) continue;
                  n5++;
                }
                return t5.length + n5;
              }
              return t5.length;
            }
            function jr(t5, n5, e4) {
              if (e4 < 1 || v(n5) < e4) return F;
              var i4 = n5.indexOf(t5, e4 - 1);
              return -1 === i4 ? F : i4 + 1;
            }
            function Dr(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2;
              return kr() || r2.usedbcs ? (i4 = ut(n5), o3 = ut(t5), a2 = i4.length, e4 < 1 || a2 < e4 ? F : (u2 = Or(i4), s2 = Or(o3), -1 === (c2 = u2.indexOf(s2, e4 - 1)) ? F : c2 + 1)) : jr(t5, n5, e4);
            }
            function _r(t5, n5, e4) {
              var i4 = -1, r3, a2;
              return "~" === t5 ? n5.length > 0 ? 1 : F : ((r3 = o2.jJ(t5)) ? (a2 = o2.OJ(r3).exec(n5), i4 = m(a2) ? -1 : a2.index) : i4 = n5.toLowerCase().indexOf(t5.toLowerCase(), e4 - 1), -1 === i4 ? F : i4 + 1);
            }
            function Or(t5) {
              for (var n5 = 0; n5 < t5.length; n5++) m(t5[n5]) && t5[n5 - 1] && 2 !== t5[n5 - 1].length && (t5[n5] = "​");
              return t5.join("");
            }
            function Er(t5) {
              for (var n5 = 0; n5 < t5.length; n5++) m(t5[n5]) && (t5[n5] = "​");
              return t5;
            }
            function Rr(t5, n5, e4) {
              var i4, o3, a2, u2;
              return kr() || r2.usedbcs ? (i4 = ut(n5), o3 = ut(t5), a2 = i4.length, e4 < 1 || a2 < e4 || (u2 = _r(Or(o3), Or(i4), e4)) === F ? F : u2) : _r(t5, n5, e4);
            }
            function Lr(t5, n5) {
              return t5 === n5;
            }
            function Fr(t5) {
              function n5(t6) {
                return rt(t6) ? t6 : "";
              }
              return to(t5, n5);
            }
            function Br(t5) {
              if (t5) {
                var n5 = t5;
                return n5 <= 0 || n5 > 1114111 ? F : n5 >= 55296 && n5 <= 57343 ? U : n5 < 1048576 ? String.fromCharCode(n5) : (n5 -= 1048576, String.fromCharCode(55296 + (n5 >> 10), 56320 + (1023 & n5)));
              }
              return F;
            }
            function Pr(t5) {
              var n5, e4, i4 = J(t5);
              return "" === i4 || null === i4 ? F : (n5 = i4.charCodeAt(0)) >= 55296 && n5 <= 56319 ? 1 === i4.length ? F : (e4 = i4.charCodeAt(1)) >= 56320 && e4 <= 57343 ? n5 | e4 << 8 : 1 : n5 >= 56320 && n5 <= 57343 ? n5 - 53248 + 53248 : n5;
            }
            function Gr(t5) {
              var n5, e4;
              function i4(t6) {
                var n6, e5, i5, r3, o3 = ["ล้าน", "สิบ", "ร้อย", "พัน", "หมื่น", "แสน", ""], a2 = ["ศูนย์", "หนึ่ง", "สอง", "สาม", "สี่", "ห้า", "หก", "เจ็ด", "แปด", "เก้า"], u2 = ["ลบ", "บาท", "ถ้วน", "สตางค์", "ยี่", "เอ็ด", ",", " ", "฿"], s2 = "", c2 = t6 + "", f2 = c2.length;
                for (n6 = f2; n6 > 0; --n6) {
                  if (i5 = a2[e5 = C(c2[f2 - n6])], 1 === (r3 = 1 < n6 ? (n6 - 1) % 6 : 6) && 2 === e5 && (i5 = u2[4]), 1 === e5) switch (r3) {
                    case 0:
                    case 6:
                      s2 += n6 < f2 ? u2[5] : i5;
                      break;
                    case 1:
                      break;
                    default:
                      s2 += i5;
                  }
                  else {
                    if (0 === e5) {
                      0 === r3 && (s2 += o3[r3]);
                      continue;
                    }
                    s2 += i5;
                  }
                  s2 += o3[r3];
                }
                return s2;
              }
              return t5 ? (n5 = Math.abs(C(t5)), e4 = parseFloat((Math.abs(t5) - n5).toFixed(2)), 0 !== n5 ? 0 === e4 ? (t5 < 0 ? "ลบ" : "") + i4(n5) + "บาทถ้วน" : (t5 < 0 ? "ลบ" : "") + i4(n5) + "บาท" + i4(100 * e4) + "สตางค์" : 0 !== e4 ? (t5 < 0 ? "ลบ" : "") + i4(100 * e4) + "สตางค์" : "ศูนย์บาทถ้วน") : F;
            }
            function Ur(t5, n5, e4, i4, r3) {
              var o3, a2 = function(e5, i5) {
                var r4, o4, a3 = -1, u2 = -1;
                for (r4 = 0; r4 < n5.length; r4++) -1 === (o4 = e5 ? t5.indexOf(n5[r4], i5) : t5.lastIndexOf(n5[r4], i5)) || -1 !== a3 && !(e5 ? o4 < a3 : o4 > a3) || (a3 = o4, u2 = r4);
                return { index: a3, delimiterIndex: u2 };
              };
              if (1 === i4 && (t5 = t5.toLocaleLowerCase(), n5 = n5.map((function(t6) {
                return t6.toLocaleLowerCase();
              }))), e4 > 0) {
                for (o3 = a2(true), e4--; -1 !== o3.index && e4 > 0; ) o3 = a2(true, o3.index + 1), e4--;
                if (1 === r3 && -1 === o3.index && 0 === e4) return { index: t5.length, delimiterIndex: -1, isMatchEnd: true };
              } else {
                for (o3 = a2(false), e4++; -1 !== o3.index && e4 < 0; ) o3 = a2(false, o3.index - 1), e4++;
                if (1 === r3 && -1 === o3.index && 0 === e4) return { index: -1, delimiterIndex: -1, isMatchEnd: true };
              }
              return { isMatchEnd: false, index: o3.index, delimiterIndex: o3.delimiterIndex };
            }
            function Hr(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2 = t5.length;
              return m(n5) || 0 === n5.length || n5.some((function(t6) {
                return t6.length > f2;
              })) ? U : n5.some((function(t6) {
                return 0 === t6.length;
              })) ? e4 > 0 ? t5 : "" : e4 > f2 ? F : (u2 = (a2 = Ur(t5, n5, e4, i4, r3)).index, s2 = a2.delimiterIndex, (c2 = a2.isMatchEnd) ? -1 === u2 ? t5 : "" : -1 !== u2 ? t5.substring(u2 + n5[s2].length) : m(o3) ? U : o3);
            }
            function Vr(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2 = t5.length;
              return m(n5) || 0 === n5.length || n5.some((function(t6) {
                return t6.length > c2;
              })) ? U : n5.some((function(t6) {
                return 0 === t6.length;
              })) ? e4 > 0 ? "" : t5 : e4 > c2 ? F : (u2 = (a2 = Ur(t5, n5, e4, i4, r3)).index, (s2 = a2.isMatchEnd) ? -1 === u2 ? "" : t5 : -1 !== u2 ? t5.substring(0, u2) : m(o3) ? U : o3);
            }
            function zr(t5, n5, e4) {
              return "function" == typeof t5.replaceAll ? t5.replaceAll(n5, e4) : t5.replace(new RegExp(o2.D9t(n5), "g"), e4);
            }
            function Yr(t5, n5, e4) {
              var i4, r3, o3;
              if (m(n5)) return [t5];
              if (i4 = n5[0], n5.length > 1) for (r3 = 1; r3 < n5.length; r3++) t5 = zr(t5, n5[r3], i4);
              return o3 = t5.split(i4), e4 && (o3 = o3.filter((function(t6) {
                return t6.length > 0;
              }))), o3;
            }
            function Zr(t5, n5, e4, i4, o3, a2) {
              var u2, s2, c2;
              return 0 === t5.length || m(n5) && m(e4) || n5 && (0 === n5.length || n5.some((function(t6) {
                return 0 === t6.length;
              }))) || e4 && (0 === e4.length || e4.some((function(t6) {
                return 0 === t6.length;
              }))) ? F : (1 === o3 && (t5 = t5.toLowerCase(), e4 && (e4 = e4.map((function(t6) {
                return t6.toLowerCase();
              }))), n5 && (n5 = n5.map((function(t6) {
                return t6.toLowerCase();
              })))), s2 = (s2 = (u2 = Yr(t5, e4, i4)).map((function(t6) {
                return Yr(t6, n5, i4);
              }))).filter((function(t6) {
                return t6.length > 0;
              })), c2 = A.apply(null, s2.map((function(t6) {
                return t6.length;
              }))), a2 = m(a2) ? U : a2, s2.forEach((function(t6) {
                for (var n6 = c2 - t6.length; n6 > 0; ) t6.push(a2), n6--;
              })), new r2.CalcArray(s2));
            }
            function Wr(t5) {
              return z(t5);
            }
            function Qr(t5) {
              return !!z(t5) && t5._code !== U._code;
            }
            function Kr(t5) {
              return !!z(t5) && t5._code === U._code;
            }
            function Jr(t5) {
              if (!m(t5) && z(t5)) {
                var n5 = g(t5._code, [R._code, L._code, F._code, B._code, P._code, H._code, U._code]);
                if (n5 >= 0) return n5 + 1;
              }
              return U;
            }
            function Xr(t5) {
              return X(t5, r2.ExcelCompatibleCalcMode);
            }
            function qr(t5) {
              return gt(T(t5)) % 2 == 0;
            }
            function $r(t5) {
              return gt(T(t5)) % 2 != 0;
            }
            function to(t5, n5) {
              if (Z(t5)) {
                var e4 = [];
                return t5.forEachItem((function(t6, i4, r3) {
                  e4[i4] = e4[i4] || [], e4[i4][r3] = n5(t6);
                })), new r2.CalcArray(e4);
              }
              return (0, r2.LE)(t5) ? n5(t5.getValue(0, 0, 0)) : n5(t5);
            }
            function no(t5) {
              function n5(t6) {
                return et(t6) || it(t6) ? K(t6) : nt(t6) ? t6 ? 1 : 0 : z(t6) ? t6 : void 0;
              }
              return to(t5, n5);
            }
            function eo(t5) {
              return m(t5);
            }
            function io(t5) {
              return nt(t5);
            }
            function ro(t5) {
              return rt(t5);
            }
            function oo(t5) {
              return !rt(t5);
            }
            function ao(t5) {
              return Y(t5);
            }
            function uo(t5) {
              return nt(t5) ? 4 : et(t5) || it(t5) ? 1 : rt(t5) ? 2 : z(t5) ? 16 : Z(t5) ? 64 : (0, r2.isLambdaFunction)(t5) ? 128 : F;
            }
            function so() {
              return U;
            }
            function co(t5, n5) {
              var e4, i4, o3 = 0, a2 = t5.source.Mf;
              if (Z(n5)) return U;
              if (n5 instanceof r2.CalcReference || m(n5)) return i4 = (e4 = n5) && (e4.rT || e4.references[0].rT) || t5.source, a2.parent.getSheetIndex(i4.Mf.name()) + 1;
              if (X(n5) || rt(n5)) {
                for (; o3 < a2.parent.sheets.length; o3++) if (n5.toUpperCase() === a2.parent.sheets[o3].name().toUpperCase()) return o3 + 1;
              }
              return U;
            }
            function fo(t5, n5) {
              var e4, i4, o3, a2 = t5.source.Mf;
              return m(n5) ? a2.parent.sheets.length : Z(n5) || X(n5) ? U : rt(n5) ? F : n5 instanceof r2.CalcReference ? (i4 = (e4 = n5).references) ? i4.length : (o3 = e4.rT || t5.source, a2.parent.getSheetIndex(o3.Mf.name()) + 1) : U;
            }
            function lo() {
              var t5 = new r2.Functions.AsyncFunction("REFRESH", 1, 3);
              t5.evaluate = ho, r2.Functions.Mmt.REFRESH = t5;
            }
            function ho(t5, n5) {
              return n5;
            }
            function vo(t5) {
              return t5 >= 55296 && t5 <= 57343;
            }
            function po(t5, n5) {
              return !(t5 < 55296 || t5 > 56319) && (n5 >= 56320 && n5 <= 57343);
            }
            function go() {
              if ("undefined" != typeof self) return self;
              if ("undefined" != typeof window) return window;
              if (void 0 !== e3.g) return e3.g;
              try {
                return new Function("return this");
              } catch (t5) {
              }
            }
            function mo(t5) {
              var n5, e4, i4, r3, o3, a2, u2 = go();
              if (u2 && u2.encodeURIComponent) return encodeURIComponent(t5).replace(/[!~'()*]/g, (function(t6) {
                return "%" + t6.charCodeAt(0).toString(16).toUpperCase();
              }));
              if (n5 = "", (e4 = t5.length - 1) < 0) return "";
              for (i4 = 0; i4 <= e4; i4++) if ((r3 = t5.charCodeAt(i4)) >= "A".charCodeAt(0) && r3 <= "Z".charCodeAt(0) || r3 >= "0".charCodeAt(0) && r3 <= "9".charCodeAt(0) || r3 >= "a".charCodeAt(0) && r3 <= "z".charCodeAt(0) || r3 === "-".charCodeAt(0) || r3 === "_".charCodeAt(0) || r3 === ".".charCodeAt(0)) n5 += t5[i4];
              else {
                if (o3 = void 0, vo(r3)) {
                  if (e4 === i4 || !po(r3, t5.charCodeAt(i4 + 1))) return null;
                  o3 = [r3, t5.charCodeAt(i4 + 1)], i4++;
                } else o3 = [r3];
                for (a2 = 0; a2 < o3.length; a2++) n5 += "%", n5 += o3[a2].toString(16).toUpperCase();
              }
              return n5;
            }
            function bo(t5) {
              var n5, e4 = arguments[0];
              for (n5 = 0; n5 < e4.length; n5++) if (!m(e4[n5]) && "string" != typeof e4[n5]) return false;
              return true;
            }
            function yo(t5, n5, e4, i4) {
              var a2, u2, s2, c2;
              return void 0 === e4 && (e4 = 0), void 0 === i4 && (i4 = 0), n5 = n5 || "", 0 !== e4 && 1 !== e4 && 2 !== e4 || 1 !== i4 && 0 !== i4 ? F : (a2 = 1 === e4 ? "g" : "", i4 && (a2 += "i"), (u2 = o2.bue(n5, a2)) ? (s2 = t5.match(u2)) ? 1 === (c2 = s2.length) ? 2 === e4 ? F : s2[0] : c2 > 1 ? 2 === e4 ? new r2.CalcArray([s2.slice(1)]) : 0 === e4 ? s2[0] : new r2.CalcArray([s2]) : void 0 : U : F);
            }
            function wo(t5, n5, e4) {
              var i4, a2, u2;
              return bo(arguments) ? Fo(n5) ? U : (i4 = o2.bue(n5, e4)) ? (a2 = t5.match(i4)) ? 1 === (u2 = a2.length) ? a2[0] : u2 > 1 ? a2[0] === a2.input ? new r2.CalcArray([a2.slice(1)]) : new r2.CalcArray([a2]) : void 0 : U : F : F;
            }
            function Mo(t5, n5, e4) {
              var i4 = o2.bue(n5, e4);
              return i4 ? i4.test(t5) : F;
            }
            function Co(t5, n5, e4) {
              return void 0 === e4 && (e4 = 0), 1 !== e4 && 0 !== e4 ? F : Mo(t5, n5, 0 === e4 ? "" : "i");
              var i4;
            }
            function So(t5, n5, e4) {
              return bo(arguments) ? Fo(n5) ? U : Mo(t5, n5, e4) : F;
            }
            function To(t5, n5, e4, i4, r3) {
              var a2, u2, s2, c2, f2, l2, h2;
              return void 0 === r3 && (r3 = 0), 1 !== r3 && 0 !== r3 ? F : (a2 = 0 === r3 ? "g" : "ig", (u2 = o2.bue(n5, a2)) ? 0 === i4 ? t5.replace(u2, e4) : (s2 = Array.from(t5.matchAll(u2)), c2 = i4 < 0 ? s2.length + i4 : i4 - 1, s2.length > c2 && c2 >= 0 ? (h2 = (l2 = (f2 = s2[c2]).index) + f2[0].length, t5.substring(0, l2) + e4 + t5.substring(h2)) : t5) : F);
            }
            function xo(t5, n5, e4, i4) {
              if (!bo(arguments)) return F;
              if (Fo(n5) || Fo(e4)) return U;
              var r3 = o2.bue(n5, i4);
              return r3 ? t5.replace(r3, e4) : F;
            }
            function Ao(t5, n5, e4) {
              var i4;
              return void 0 === e4 && (e4 = true), t5 !== b || e4 ? z(t5) ? U : i4 = Z(t5) ? q(t5, n5, true, false, false) : q(t5, n5, true, false, true) : F;
            }
            function Io(t5) {
              var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = [];
              for (n5 = 1; n5 < arguments.length; n5++) h2[n5 - 1] = arguments[n5];
              if (e4 = h2[0], r3 = [], o3 = [], u2 = (a2 = (i4 = h2[1]) && i4.getSource() && i4.getSource().getSheet() || t5.source && t5.source.Mf) && a2.pivotTables && i4 && a2.pivotTables.findPivotTable(i4.getRow(), i4.getColumn()), m(u2)) return B;
              for (s2 = 2; s2 < h2.length; s2 += 2) c2 = h2[s2], f2 = h2[s2 + 1], Y(c2) && (c2 = c2.getValueByIndex(0)), l2 = { fieldName: c2, itemName: f2 }, Y(f2) || Z(f2) ? o3.push(l2) : r3.push(l2);
              return Y(e4) && (e4 = e4.getValueByIndex(0)), o3.length > 0 ? ko(e4, u2, r3, o3) : u2.evaluateGetPivotDataFunction(e4, r3);
            }
            function ko(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2 = 1, x2 = 1, A2 = [], I2 = [], k2 = [];
              for (o3 = 0, a2 = i4; o3 < a2.length; o3++) {
                if (s2 = (u2 = a2[o3]).fieldName, c2 = u2.itemName, z(c2)) return c2;
                if ((Y(c2) || Z(c2)) && (u2.itemName = q(c2, 0, false, false, false), u2.itemName.isError)) return u2.itemName[0];
                l2 = (f2 = n5.getField(s2)).pivotArea, T2 = T2 > (h2 = u2.itemName.rowCount) ? T2 : h2, x2 = x2 > (d2 = u2.itemName.colCount) ? x2 : d2, h2 > d2 || h2 === d2 && 1 === l2 ? A2.push(u2) : (d2 > h2 || h2 === d2 && 2 === l2) && I2.push(u2);
              }
              for (v2 = 0; v2 < T2; v2++) {
                for (p2 = [], g2 = 0; g2 < x2; g2++) {
                  for (m2 = [], b2 = 0, y2 = A2; b2 < y2.length; b2++) (w2 = y2[b2]).itemName.colCount > 1 ? w2.itemName.rowCount > 1 ? m2.push({ fieldName: w2.fieldName, itemName: w2.itemName[v2] && w2.itemName[v2][g2] }) : m2.push({ fieldName: w2.fieldName, itemName: w2.itemName[0] && w2.itemName[0][g2] }) : w2.itemName.rowCount > 1 ? m2.push({ fieldName: w2.fieldName, itemName: w2.itemName[v2] && w2.itemName[v2][0] }) : m2.push({ fieldName: w2.fieldName, itemName: w2.itemName[0] && w2.itemName[0][0] });
                  for (M2 = 0, C2 = I2; M2 < C2.length; M2++) (S2 = C2[M2]).itemName.rowCount > 1 ? S2.itemName.colCount > 1 ? m2.push({ fieldName: S2.fieldName, itemName: S2.itemName[v2] && S2.itemName[v2][g2] }) : m2.push({ fieldName: S2.fieldName, itemName: S2.itemName[v2] && S2.itemName[v2][0] }) : S2.itemName.colCount > 1 ? m2.push({ fieldName: S2.fieldName, itemName: S2.itemName[0] && S2.itemName[0][g2] }) : m2.push({ fieldName: S2.fieldName, itemName: S2.itemName[0] && S2.itemName[0][0] });
                  p2.push(n5.evaluateGetPivotDataFunction(t5, e4.concat(m2)));
                }
                k2.push(p2);
              }
              return new r2.CalcArray(k2);
            }
            function No() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, b2, y2, w2 = arguments, M2 = v(w2);
              if (M2 < 2 || M2 % 2 != 0) return U;
              for (n5 = 0; n5 < M2; n5 += 2) {
                if (o3 = w2[n5], a2 = w2[n5 + 1], u2 = Ao(o3, 2), s2 = Ao(a2, 0), z(u2)) return u2;
                if (z(s2)) return s2;
                if (u2.isError || s2.isError) return U;
                if (c2 = u2.length, f2 = s2.length, m(i4)) i4 = f2;
                else if (i4 !== f2) return U;
                if (c2 > f2) return U;
                if (c2 < f2) {
                  if (false === e4 || c2 > 1) return U;
                  for (m(t5) && (t5 = []), l2 = s2.rowCount, h2 = s2.colCount, d2 = u2[0], p2 = 0; p2 < l2; p2++) {
                    for (g2 = t5[p2], m(g2) && (g2 = t5[p2] = []), b2 = 0; b2 < h2; b2++) m(g2[b2]) && (g2[b2] = {}), g2[b2][d2] = s2[b2 + p2 * h2];
                    t5[p2] = g2;
                  }
                  e4 = true;
                } else {
                  if (true === e4) return U;
                  for (m(t5) && (t5 = {}), y2 = 0; y2 < f2; y2++) t5[u2[y2]] = s2[y2];
                  e4 = false;
                }
              }
              return e4 ? new r2.CalcArray(t5) : t5;
            }
            function jo() {
              var t5, n5 = arguments, e4 = n5[0], i4 = n5[1].split(".");
              function r3(t6) {
                var n6, e5 = i4.length;
                for (n6 = 0; n6 < e5; n6++) {
                  if (m(t6) || !t6.hasOwnProperty || !t6.hasOwnProperty(i4[n6])) return U;
                  t6 = t6[i4[n6]];
                }
                return t6;
              }
              return t5 = e4, m(e4) || "object" != typeof e4 ? U : (Z(e4) ? t5.array = t5.array.map((function(t6) {
                return Array.isArray(t6) ? t6.map((function(t7) {
                  return r3(t7);
                })) : r3(t6);
              })) : t5 = r3(t5), t5);
            }
            function Do(t5) {
              var n5, e4, i4, o3, a2;
              try {
                if (n5 = t5 && JSON.parse(t5), Array.isArray(n5) && n5.length > 0) {
                  for (e4 = true, i4 = 0; i4 < n5.length; i4++) if (!Array.isArray(n5[i4])) {
                    e4 = false;
                    break;
                  }
                  if (e4) n5 = new r2.CalcArray(n5);
                  else {
                    for (o3 = [], a2 = 0; a2 < n5.length; a2++) o3.push([n5[a2]]);
                    n5 = new r2.CalcArray(o3);
                  }
                }
                return n5;
              } catch (t6) {
                return F;
              }
            }
            function _o(t5) {
              return Eo(t5, "AaK9#@BXHNＧS");
            }
            function Oo(t5) {
              return Eo(t5, "ＡａＫ９＃＠ＢＸＺＮＳ");
            }
            function Eo(t5, n5) {
              var e4, i4, o3, a2 = "";
              if (t5 && (e4 = typeof t5), "number" === e4 || "boolean" === e4) a2 = t5 + "";
              else if (t5 instanceof Date) a2 = u.o0(t5).toString();
              else {
                if ("object" === e4) return F;
                "string" === e4 && (a2 = t5);
              }
              return (o3 = (i4 = new r2._9t(true, n5)).checkText(a2)).CheckedText;
            }
            function Ro() {
              var t5 = new r2.Functions.AsyncFunction("WEBSERVICE", 1, 1);
              t5.defaultValue = function() {
                return "";
              }, t5.evaluate = Lo, r2.Functions.Mmt.WEBSERVICE = t5;
            }
            function Lo(t5, n5) {
              var e4, i4, r3, o3 = n5;
              if (!o3 || o3.length > Mt) return F;
              if (e4 = null, XMLHttpRequest && (e4 = new XMLHttpRequest()), i4 = function(n6) {
                t5.setAsyncResult(n6);
              }, r3 = ["application/json", "application/xml", "application/x-java-applet", "application/java-archive", "application/javascript", "video/vnd.dlna.mpeg-tts"], null === e4) return F;
              try {
                e4.open("GET", o3, true), e4.onreadystatechange = function() {
                  var t6, n6, o4;
                  4 === e4.readyState && (200 === e4.status ? !(n6 = (t6 = e4.response) && t6.type) || -1 === n6.indexOf("text") && -1 === r3.indexOf(n6) ? i4(F) : ((o4 = new FileReader()).onloadend = function() {
                    i4(o4.result);
                  }, o4.onerror = function() {
                    i4(F);
                  }, o4.readAsText(t6)) : i4(F));
                }, e4.onerror = function() {
                  i4(F);
                }, e4.timeout = Ct, e4.ontimeout = function() {
                  i4(F);
                }, e4.responseType = "blob", e4.send(null);
              } catch (t6) {
                return F;
              }
            }
            function Fo(t5) {
              return "" === t5 || m(t5);
            }
            function Bo(t5) {
              return St.a0(t5) || St.a0(t5, At);
            }
            function Po(t5) {
              var n5, e4, i4, r3 = "", o3 = false;
              for (n5 = 0, e4 = t5.length; n5 < e4; n5++) '"' === (i4 = t5[n5]) ? o3 = !o3 : o3 || "Y" !== i4 || (i4 = xt), r3 += i4;
              return r3;
            }
            function Go(t5) {
              return t5.split(xt).join("y");
            }
            function Uo(t5) {
              return t5.formatters[0].E9t;
            }
            function Ho(t5) {
              return t5.j9t && t5.j9t.cultureInfo() || s.Fe(t5.cultureName) || s.Fe();
            }
            function Vo(t5, n5, e4, i4) {
              return Jo(t5, n5, e4, Ho(i4 = Uo(i4)), i4.O9t);
            }
            function zo() {
              return /qqqq|qqq|qq|q|QQQQ|QQQ|QQ|Q|yyyy|yyy|yy|y|ww|w/g;
            }
            function Yo(t5, n5, e4) {
              if (!t5) return [n5.slice(e4), e4];
              var i4 = t5.index, r3, o3 = i4 + t5[0].length;
              return e4 < i4 ? [n5.slice(e4, i4), o3] : e4 === i4 ? ["", o3] : ["", e4];
            }
            function Zo(t5) {
              return zn(Li(t5) / 3, 0);
            }
            function Wo(t5, n5) {
              return Bi(t5, m(n5) ? n5 : Q(n5));
            }
            function Qo(t5) {
              var n5 = new Date(t5.getTime()), e4 = (n5.getDay() + 6) % 7, i4, r3 = n5.getDate() - e4 + 3;
              return n5.setDate(r3), n5.getFullYear();
            }
            function Ko(t5, n5, e4, i4) {
              var r3 = Qo(n5), o3 = n5.getFullYear();
              return d(r3 === o3 ? n5 : new Date(r3, 0, 1), t5, i4, e4);
            }
            function Jo(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, f2 = "", l2 = 0, h2 = i4.DateTimeFormat.eras, d2 = /qqqq|qqq|qq|q|QQQQ|QQQ|QQ|Q|yyyy|yyy|yy|y|ww|w/g;
              for (u2 = 0; f2 += (a2 = Yo(o3 = d2.exec(n5), n5, l2))[0], l2 = a2[1], o3; u2++) switch (o3[0]) {
                case "QQQQ":
                case "qqqq":
                  f2 += It[Zo(t5)];
                  break;
                case "QQQ":
                case "qqq":
                  f2 += "Q".concat(Zo(t5));
                  break;
                case "QQ":
                case "qq":
                  f2 += c(Zo(t5), 2);
                  break;
                case "Q":
                case "q":
                  f2 += Zo(t5);
                  break;
                case "yyyy":
                case "yyy":
                  f2 += h2 ? Ko("ee", t5, r3, i4) : c(Qo(t5), 4);
                  break;
                case "yy":
                  f2 += h2 ? Ko("ee", t5, r3, i4) : c(Qo(t5) % 100, 2);
                  break;
                case "y":
                  f2 += h2 ? Ko("e", t5, r3, i4) : (Qo(t5) % 100).toString();
                  break;
                case "ww":
                  s2 = Wo(t5, e4), z(s2) ? f2 += s2 : f2 += c(s2, 2);
                  break;
                case "w":
                  f2 += Wo(t5, e4);
              }
              return f2.toString();
            }
            function Xo() {
              function t5() {
                this.R9t = [{ J6t: 6 }, { J6t: 5 }, { J6t: 2 }], this.Ul = {};
              }
              t5.prototype = new r2.Functions.Function("DATEPART", 2, 3), t5.prototype.evaluate = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2;
                return Fo(n5) || !Bo(n5) ? "" : (r3 = this.Ul, (o3 = Tt === e4 && /Y/g.test(n5) && /w/g.test(n5)) && (n5 = Po(n5)), r3[n5] || (a2 = i3.Formatter && i3.Formatter.GeneralFormatter, r3[n5] = a2 ? new a2(n5) : b), s2 = (u2 = r3[n5]).format(t6), o3 && (s2 = Go(s2)), /q|Q|w|y/g.test(s2) && (s2 = Vo(t6, s2, e4, u2)), s2);
              }, r2.Functions.Mmt.DATEPART = new t5();
            }
            function qo(t5, n5) {
              if (!t5 || 8 !== t5.type) throw (0, r2.sR)().Exp_FormulaInvalid;
              if (-1 !== n5.indexOf(t5.value)) throw (0, r2.sR)().Exp_FormulaInvalid;
              if (t5.value.indexOf(".") > -1) throw (0, r2.sR)().Exp_FormulaInvalid;
            }
            function $o(t5) {
              var n5 = crypto && crypto.randomUUID && crypto.randomUUID();
              return m(n5) && (n5 = "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (function(t6) {
                return (t6 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t6 / 4).toString(16);
              }))), 32 === t5 && (n5 = n5.split("-").join("")), n5;
            }
            function ta(t5, n5, e4) {
              void 0 === e4 && (e4 = 0);
              var i4 = t5.length, r3 = n5.length;
              return 0 === i4 || 0 === r3 || i4 < r3 ? U : (e4 && (t5 = t5.toUpperCase(), n5 = n5.toUpperCase()), t5.lastIndexOf(n5) === i4 - r3);
            }
            function na(t5, n5, e4) {
              void 0 === e4 && (e4 = 0);
              var i4 = t5.length, r3 = n5.length;
              return 0 === i4 || 0 === r3 || i4 < r3 ? U : (e4 && (t5 = t5.toUpperCase(), n5 = n5.toUpperCase()), 0 === t5.indexOf(n5));
            }
            function ea(t5, n5) {
              return void 0 === n5 && (n5 = 4), t5 instanceof Date || (t5 = new Date(t5)), t5.getMonth() < n5 - 1 ? t5.getFullYear() - 1 : t5.getFullYear();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.$T, a = i3.Common.zf, u = i3.Common.ct, s = i3.Common.CultureManager, c = i3.Common.zf.B9t, f = u.o0, l = u.Y0, h = u.yU, d = u.L9t, v = i3.Common.Uf.tR, p = i3.Common.lt, g = p.Rh, m = p.ht, b = null, y = void 0, w = isNaN, M = parseFloat, C = parseInt, S = Math.round, T = Math.abs, x = Math.sqrt, A = Math.max, I = Math.min, k = Math.floor, N = Math.exp, j = Math.log, D = Math.PI, _ = Math.random, O = Math.pow, E = Math.ceil, R = r2.Errors.Null, L = r2.Errors.DivideByZero, F = r2.Errors.Value, B = r2.Errors.Reference, P = r2.Errors.Name, G = r2.Errors.Calc, U = r2.Errors.NotAvailable, H = r2.Errors.Number, V = r2.Convert.CalcConvertedError, z = r2.Convert.BJ, Y = r2.Convert.LE, Z = r2.Convert.Nh, W = r2.Convert.YK, Q = r2.Convert.z6t, K = r2.Convert.uJ, J = r2.Convert.j, X = r2.Convert.q8, q = r2.Convert.iV, $ = r2.Convert.L6t, tt = r2.skt.tryExtractToSingleValue, nt = r2.Functions.G6t, et = r2.Functions.q8, it = u.W0, rt = r2.Functions.OMt, ot = r2.Functions.F9t, at = r2.Functions.P9t, ut = r2.Functions.G9t, st = r2.Functions.U9t, ct = r2.Functions.Pkt, ft = r2.Functions.nkt, lt = r2.Functions.b9t, ht = r2.Functions.H9t, dt = r2.Functions.y9t, vt = r2.Functions.MathHelper, pt = vt.z9t, gt = vt.d9t, mt = r2.Functions.F6t, bt = r2.Convert.sJ, yt = r2.Convert.YK, wt = r2.Convert.Sft, Mt = 2048, Ct = 1e4, St = i3.Formatter.Hf, Tt = 21, xt = "(&}", At = ["qqqq", "qqq", "qq", "q", "QQQQ", "QQQ", "QQ", "Q", "YYYY", "YYY", "YY", "Y", "ww", "w"], It = { 1: "1st quarter", 2: "2nd quarter", 3: "3rd quarter", 4: "4th quarter" }, kt = new Date(1899, 11, 30), Nt = new Date(9999, 11, 31), Dt = { J6t: 0, pkt: "= 0", zkt: L }, _t = { J6t: 0, pkt: "= 0", zkt: 0 }, Ot = { bkt: 1, J6t: 0, pkt: "= 0", zkt: 0 }, Et = { J6t: 2, pkt: "< 0" }, Rt = { J6t: 0, pkt: ["> 134217728", "< -134217728"] }, Lt = { J6t: 1 }, Ft = { J6t: 2 }, Bt = { bkt: 1, J6t: 2 }, Pt = { bkt: 1, J6t: 2, pkt: "< 0", zkt: F }, Gt = { bkt: 1, J6t: 2, pkt: ["= 0"], zkt: F }, Ut = { bkt: 0, J6t: 2, pkt: ["< 0", "> 1"], zkt: F }, Ht = { bkt: 0, J6t: 2 }, Vt = { J6t: 5 }, zt = { J6t: 6 }, Yt = { J6t: 2, pkt: "< 0", zkt: F }, Zt = 5, Wt = F, Qt = { bkt: false, J6t: 7 }, Kt = { bkt: [], J6t: 4, X6t: 4, Vkt: true, Ykt: true, M9t: true }, Jt = { J6t: 4, X6t: 1, Ykt: true, M9t: true }, Xt = { J6t: 4, X6t: 1, Vkt: true, Ykt: true, n9t: true }, qt = { J6t: 4, X6t: 0, Vkt: true, Ykt: true, n9t: true }, $t = { J6t: 4, X6t: 2, Vkt: true, Ykt: true, n9t: true }, tn = [0, "%= 1 && >= 3"], mt("ABS", cn, 1, 1, jt = { J6t: 0 }), mt("ACOS", Me, 1, 1, { J6t: 0, pkt: ["> 1", "< -1"] }), mt("ACOT", Ne, 1, 1, jt), mt("ASIN", we, 1, 1, { J6t: 0, pkt: ["> 1", "< -1"] }), mt("ATAN", ke, 1, 1, jt), mt("ATAN2", je, 2, 2, [jt, jt]), mt("COS", ge, 1, 1, jt), mt("SEC", me, 1, 1, Rt), mt("CEILING", Ln, 2, 2, [_t, _t]), mt("ODD", pn, 1, 1, Lt), mt("EVEN", gn, 1, 1, Lt), mt("FLOOR", Fn, 2, 2, [_t, Dt]), mt("LN", yn, 1, 1, { J6t: 1, pkt: "<= 0" }), mt("SQRT", jn, 1, 1, { J6t: 0, pkt: "< 0" }), mt("SIN", ve, 1, 1, jt), mt("CSC", pe, 1, 1, Rt), mt("TAN", be, 1, 1, jt), mt("COT", ye, 1, 1, Rt), mt("SIGN", An, 1, 1, { J6t: 1, pkt: "> 0", zkt: 1 }), mt("GCD", In, 1, y, Xt, -1, -1), mt("LCM", kn, 1, y, Xt, -1, -1), mt("PRODUCT", Nn, 1, y, y, -1, -1), mt("POWER", Cn, 2, 2, [jt, jt]), mt("MOD", wn, 2, 2, [jt, { J6t: 0, pkt: "= 0", zkt: L }]), mt("QUOTIENT", Dn, 2, 2, [jt, Dt], y, y), mt("SUBTOTAL", _n, 2, y, Ft, "!= 0", y, { u9t: 4, o9t: 5 }), mt("_SUBTOTALFORSTATUSBAR", On, 2, 5e3, Ft, "!= 0", y, { u9t: 4 }), mt("INT", fn, 1, 1, y, y, y), mt("MROUND", Un, 2, 2, [_t, _t]), mt("ROUND", Hn, 2, 2, [jt, Ft]), mt("ROUNDDOWN", Vn, 2, 2, [jt, Ft]), mt("ROUNDUP", zn, 2, 2, [jt, Ft]), mt("TRUNC", Vn, 1, 2, [jt, { bkt: 0, J6t: 2 }], y, y, { wkt: 1 }), mt("EXP", Yn, 1, 1, jt), mt("LOG", Qn, 1, 2, [{ J6t: 0, pkt: "<= 0" }, { bkt: 10, J6t: 0, pkt: "<= 0" }], y, y, { wkt: 1 }), mt("LOG10", Kn, 1, 1, { J6t: 0, pkt: "<= 0" }), mt("SUM", Tn, 1, y, y, -1, -1), mt("PERCENTOF", xn, 2, 2, y, -1, -1), mt("SUMIF", Xn, 2, 3, y, [0, 2], y, { wkt: 2, e9t: [2], i9t: true, o9t: 4, f9t: 1, r9t: true }), mt("AVERAGEIF", qn, 2, 3, y, [0, 2], y, { wkt: 2, e9t: [2], i9t: true, f9t: 1, r9t: true }), mt("SUMIFS", te, 3, y, y, [0, "%= 1"], y, { e9t: tn, i9t: true, o9t: 4, f9t: "%= 0", r9t: true }), mt("SUMPRODUCT", ae, 1, y, y, -1, -1, { o9t: 1 }), mt("SUMSQ", ue, 1, y, Xt, -1, -1), mt("SUMX2MY2", se, 2, 2, Xt, -1, -1), mt("SUMX2PY2", ce, 2, 2, Xt, -1, -1), mt("SUMXMY2", fe, 2, 2, Xt, -1, -1), mt("SERIESSUM", le, 4, 4, [jt, Ft, Ft, { J6t: 4, X6t: 1, Vkt: true, Ykt: true, M9t: true }], 3, 3), mt("PI", Mn, 0, 0), mt("SQRTPI", he, 1, 1, { J6t: 0, pkt: "< 0" }), mt("DEGREES", vn, 1, 1, Lt), mt("RADIANS", de, 1, 1, jt), mt("COSH", Te, 1, 1, jt), mt("SECH", xe, 1, 1, jt), mt("ACOSH", Ie, 1, 1, { J6t: 0, pkt: "< 1" }), mt("SINH", Ce, 1, 1, jt), mt("CSCH", Se, 1, 1, jt), mt("ASINH", Ae, 1, 1, jt), mt("TANH", De, 1, 1, jt), mt("COTH", _e, 1, 1, { J6t: 0 }), mt("ATANH", Oe, 1, 1, { J6t: 0, pkt: ["<= -1", ">= 1"] }), mt("ACOTH", Ee, 1, 1, { J6t: 0 }), mt("MDETERM", Re, 1, 1, Jt, -1, -1), mt("MINVERSE", Le, 1, 1, Jt, -1, -1), mt("MMULT", Fe, 2, 2, [Jt, Jt], -1, -1), mt("FACT", mn, 1, 1, { J6t: 3, pkt: ["< 0", "> 170"] }), mt("FACTDOUBLE", bn, 1, 1, { J6t: 3, pkt: ["< 0", "> 300"] }), mt("MULTINOMIAL", Be, 1, y, { J6t: 4, X6t: 0, Vkt: true, Ykt: true, n9t: true }, -1, -1), mt("RAND", Pe, 0, 0, y, y, y, { V9t: true }), mt("RANDBETWEEN", Ge, 2, 2, [jt, jt], y, y, { V9t: true }), mt("COMBIN", ln, 2, 2, [Et, Et]), mt("COMBINA", hn, 2, 2, [Et, Et]), mt("DECIMAL", dn, 2, 2, [{ bkt: "0", J6t: 5 }, { J6t: 0, pkt: ["> 36", "< 2"] }]), mt("CEILING.MATH", Bn, 1, 3, [jt, { J6t: 0, bkt: 1 }, { J6t: 0, bkt: 0 }]), mt("FLOOR.MATH", Pn, 1, 3, [jt, { J6t: 0, bkt: 1 }, { J6t: 0, bkt: 0 }]), mt("BASE", Gn, 2, 3, [{ J6t: 0, pkt: ["< 0", ">= 9007199254740992"] }, { J6t: 3, pkt: ["> 36", "< 2"] }, { J6t: 3, bkt: 0, pkt: ["< 0", ">= 256"] }]), mt("ROMAN", Ue, 1, 2, [{ J6t: 2, pkt: ["< 0", "> 3999"], zkt: F }, { bkt: 0 }], y, y, { wkt: 1 }), mt("ARABIC", He, 1, 1, Vt), mt("CEILING.PRECISE", Zn, 1, 2, [_t, Ot]), mt("ISO.CEILING", Zn, 1, 2, [_t, Ot]), mt("FLOOR.PRECISE", Wn, 1, 2, [_t, Ot]), mt("MAXIFS", ne, 3, y, y, [0, "%= 1"], [0, "%= 1"], { e9t: tn, i9t: true, f9t: "%= 0", r9t: true }), mt("MINIFS", ee, 3, y, y, [0, "%= 1"], [0, "%= 1"], { e9t: tn, i9t: true, f9t: "%= 0", r9t: true }), mt("AVERAGEIFS", re, 3, y, y, [0, "%= 1"], [0, "%= 1"], { e9t: tn, i9t: true, f9t: "%= 0", r9t: true }), mt("COUNTIFS", ie, 2, y, y, "%= 0", "%= 0", { e9t: ["%= 0 && >= 2"], i9t: true, f9t: "%= 1", r9t: true }), mt("MUNIT", oe, 1, 1, { J6t: 2, pkt: "<= 0", zkt: F }), mt("SEQUENCE", Ve, 1, 4, [Ft, Ft, jt, jt], y, y, { wkt: [0, 1, 2, 3] }, true), mt("RANDARRAY", ze, 0, 5, [Ft, Ft, jt, jt], y, y, { V9t: true, wkt: [0, 1, 2, 3, 4] }, true), mt("AGGREGATE", Rn, 3, y, y, "> 1", "> 1", { o9t: 1, r9t: true, u9t: 4 }), mt("AND", Ze, 1, y, qt, -1, -1), mt("OR", We, 1, y, qt, -1, -1), mt("NOT", Qe, 1, 1), mt("IF", Je, 2, 3, y, [1, 2], [1, 2], { f9t: [1, 2], wkt: 2, isBranch: true, findTestArgument: 0, findBranchArgument: function(t5) {
              var n5, e4 = Ke(t5);
              return -1 === e4 ? -1 : (0 !== e4 && (t5 = e4), r2.Convert.BJ(t5) ? -1 : (W(t5, n5 = { value: false }), n5.value ? 1 : 2));
            } }), mt("IFERROR", qe, 2, 2, y, y, y, { f9t: -1 }), mt("TRUE", $e, 0, 0), mt("FALSE", ti, 0, 0), mt("IFNA", ni, 2, 2, y, y, y, { f9t: -1 }), mt("IFS", ri, 2, 254, y, -1, -1, { f9t: -1 }), mt("SWITCH", oi, 3, 253, y, y, y, { f9t: -1 }), mt("XOR", ai, 1, y, qt, -1, -1), mt("LET", y, 3, 253, y, y, y, { argsValidator: function(t5, n5, e4, i4) {
              var o3, a2;
              if (e4 % 2 == 0) throw (0, r2.sR)().Exp_FormulaInvalid;
              for (o3 = [], a2 = 0; a2 < i4.length - 1; a2 += 2) qo(i4[a2], o3), o3.push(i4[a2].value);
            } }), mt("LAMBDA", y, 1, 253, y, y, y, { argsValidator: function(t5, n5, e4, i4) {
              var r3, o3 = [];
              for (r3 = 0; r3 < i4.length - 1; r3++) qo(i4[r3], o3), o3.push(i4[r3].value);
            } }), mt("MAP", hi, 2, y, y, -1, -1, { isContextSensitive: true }, true), mt("REDUCE", di, 3, 3, y, -1, -1, { isContextSensitive: true }, true), mt("SCAN", vi, 3, 3, y, -1, -1, { isContextSensitive: true }, true), mt("BYROW", gi, 1, 2, y, -1, -1, { isContextSensitive: true }, true), mt("BYCOL", mi, 1, 2, y, -1, -1, { isContextSensitive: true }, true), mt("MAKEARRAY", pi, 3, 3, [Pt, Pt], y, y, { isContextSensitive: true }, true), mt("DATE", xi, 3, 3), mt("TIME", Ai, 3, 3, [Ft, Ft, Ft]), mt("DATEVALUE", Ii, 1, 1, { kb: true }), mt("TIMEVALUE", ki, 1, 1, { kb: true }), mt("NOW", Ni, 0, 0, y, y, y, { V9t: true }), mt("TODAY", ji, 0, 0, y, y, y, { V9t: true }), mt("HOUR", _i, 1, 1, zt), mt("MINUTE", Oi, 1, 1, zt), mt("SECOND", Ei, 1, 1, zt), mt("DAY", Ri, 1, 1, zt), mt("MONTH", Li, 1, 1, zt), mt("YEAR", Fi, 1, 1, zt), mt("WEEKNUM", Bi, 1, 2, [zt, Bt], y, y, { wkt: 1 }), mt("WEEKDAY", Pi, 1, 2, [zt, Bt], y, y, { wkt: 1 }), mt("EDATE", Gi, 2, 2, [zt, Ft]), mt("EOMONTH", Ui, 2, 2, [zt, Ft]), mt("WORKDAY", Hi, 2, 3, [zt, Ft, Kt], 2, 2, { wkt: 2 }), mt("WORKDAY.INTL", Vi, 2, 4, [zt, Ft, { bkt: "0000011" }, Kt], [3], [2, 3], { wkt: [2, 3] }), mt("DAYS360", r2.Functions.Mkt, 2, 3, [zt, zt, { bkt: false, J6t: 7 }], y, y, { wkt: 2 }), mt("NETWORKDAYS", zi, 2, 3, [zt, zt], 2, 2, { wkt: 2 }), mt("NETWORKDAYS.INTL", Zi, 2, 4, [zt, zt], [2, 3], [2, 3], { wkt: [2, 3] }), mt("YEARFRAC", r2.Functions.Hkt, 2, 3, [zt, zt, { bkt: 0, J6t: 2 }], y, y, { wkt: 2 }), mt("DATEDIF", Wi, 3, 3, [zt, zt, Vt]), mt("DAYS", Qi, 2, 2), mt("ISOWEEKNUM", Ki, 1, 1, zt), mt("CLEAN", $i, 1, 1, Vt), mt("TRIM", tr, 1, 1, Vt), mt("DOLLAR", nr, 1, 2, [jt, { bkt: 2, J6t: 2, pkt: "> 99", zkt: F }], y, y, { wkt: 1 }), mt("FIXED", er, 1, 3, [jt, { bkt: 2, J6t: 2 }, { bkt: false, J6t: 7 }], y, y, { wkt: [1, 2] }), mt("TEXT", ir, 2, 2, [{}, Vt]), mt("VALUE", rr, 1, 1, y, y, y), mt("LOWER", ar, 1, 1, Vt), mt("UPPER", ur, 1, 1, Vt), mt("PROPER", sr, 1, 1, Vt), mt("CHAR", cr, 1, 1, { J6t: 2, pkt: ["> 255", "< 1"], zkt: F }), mt("CODE", fr, 1, 1, { J6t: 5, kb: true }), mt("REPLACE", lr, 4, 4, [Vt, { J6t: 2, pkt: "< 1", zkt: F }, Yt, Vt], y, y, { wkt: 2 }), mt("SUBSTITUTE", dr, 3, 4, [Vt, { J6t: 5 }, Vt], y, y, { wkt: 3 }), mt("CONCATENATE", vr, 1, y, { J6t: 4, X6t: 0, Vkt: true, n9t: true }, y, -1), mt("LEFT", yr, 1, 2, [Vt, Pt], y, y, { wkt: 1 }), mt("MID", Tr, 3, 3, [Vt, { J6t: 2, pkt: "<= 0", zkt: F }, Yt]), mt("RIGHT", wr, 1, 2, [Vt, Pt], y, y, { wkt: 1 }), mt("REPT", Ar, 2, 2, [Vt, Ft]), mt("LEN", Ir, 1, 1, Vt), mt("FIND", jr, 2, 3, [Vt, Vt, Bt], y, y, { wkt: 2 }), mt("SEARCH", _r, 2, 3, [Vt, Vt, Pt], y, y, { wkt: 2 }), mt("EXACT", Lr, 2, 2, [Vt, Vt]), mt("T", Fr, 1, 1, y, -1, -1), mt("UNICHAR", Br, 1, 1, [{ J6t: 2, zkt: F }]), mt("UNICODE", Pr, 1, 1), mt("BAHTTEXT", Gr, 1, 1, [{ J6t: 0, zkt: F }]), mt("CONCAT", pr, 1, y, { J6t: 4, Vkt: true, Ykt: true, n9t: true }, -1, -1), mt("TEXTJOIN", gr, 3, y, { J6t: 4, Vkt: true, Ykt: true, n9t: true }, -1, -1), mt("FINDB", Dr, 2, 3, [Vt, Vt, Bt], y, y, { wkt: 2 }), mt("LEFTB", Cr, 1, 2, [Vt, Pt], y, y, { wkt: 1 }), mt("RIGHTB", Sr, 1, 2, [Vt, Pt], y, y, { wkt: 1 }), mt("MIDB", xr, 3, 3, [Vt, Yt, Yt]), mt("LENB", Nr, 1, 1, Vt), mt("REPLACEB", hr, 4, 4, [Vt, { J6t: 2, pkt: "< 1", zkt: F }, Yt, Vt], y, y, { wkt: 2 }), mt("SEARCHB", Rr, 2, 3, [Vt, Vt, Pt], y, y, { wkt: 2 }), mt("TEXTAFTER", Hr, 2, 6, [Vt, $t, Gt, Ut, Ut, Vt], [1], [1], { wkt: [2, 3, 4, 5] }), mt("TEXTBEFORE", Vr, 2, 6, [Vt, $t, Gt, Ut, Ut, Vt], [1], [1], { wkt: [2, 3, 4, 5] }), mt("TEXTSPLIT", Zr, 2, 6, [Vt, $t, $t, Qt, Ut, Vt], [1, 2], [1, 2], { wkt: [1, 2, 3, 4, 5] }, true), mt("ENCODEURL", mo, 0, 1, Vt), mt("ISERROR", Wr, 1, 1, y, y, y, { f9t: -1 }), mt("ISERR", Qr, 1, 1, y, y, y, { f9t: -1 }), mt("ISNA", Kr, 1, 1, y, y, y, { f9t: -1 }), mt("ERROR.TYPE", Jr, 1, 1, y, y, y, { f9t: -1 }), mt("ISNUMBER", Xr, 1, 1, y, y, y, { f9t: -1 }), mt("ISEVEN", qr, 1, 1, jt, y, y), mt("ISODD", $r, 1, 1, jt, y, y), mt("N", no, 1, 1, y, -1, -1), mt("ISBLANK", eo, 1, 1, y, y, y, { f9t: -1 }), mt("ISLOGICAL", io, 1, 1, y, y, y, { f9t: -1 }), mt("ISTEXT", ro, 1, 1, y, y, y, { f9t: -1 }), mt("ISNONTEXT", oo, 1, 1, y, y, y, { f9t: -1 }), mt("ISREF", ao, 1, 1, y, -1, y, { f9t: -1 }), mt("TYPE", uo, 1, 1, y, y, -1, { f9t: -1 }), mt("NA", so, 0, 0), mt("SHEET", co, 0, 1, y, -1, y, { r9t: true }), mt("SHEETS", fo, 0, 1, y, -1, y, { r9t: true }), mt("GETPIVOTDATA", Io, 2, 253, y, -1, -1, { r9t: true }), mt("OBJECT", No, 2, y, y, -1, -1), mt("PROPERTY", jo, 2, 2, y), mt("FILTERJSON", Do, 1, 1, y), mt("ASC", _o, 1, 1), mt("DBCS", Oo, 1, 1), mt("ISOMITTED", y, 1, 1, y, -1, -1), mt("GC.REGEXEXTRACT", wo, 2, 3), mt("GC.REGEXMATCH", So, 2, 3, y), mt("GC.REGEXREPLACE", xo, 3, 4, y), mt("SJS.REGEXEXTRACT", wo, 2, 3), mt("SJS.REGEXMATCH", So, 2, 3, y), mt("SJS.REGEXREPLACE", xo, 3, 4, y), mt("REGEXEXTRACT", yo, 2, 4, [Vt, Vt, Ht, Ht]), mt("REGEXTEST", Co, 2, 3, [Vt, Vt, Ht]), mt("REGEXREPLACE", To, 3, 5, [Vt, Vt, Vt, Ht, Ht]), Xo(), Ro(), lo(), mt("SJS.UUID", $o, 0, 1, y), mt("SJS.ENDWITH", ta, 2, 3, [{ J6t: 5 }, { J6t: 5 }, { J6t: 2 }]), mt("SJS.STARTWITH", na, 2, 3, [{ J6t: 5 }, { J6t: 5 }, { J6t: 2 }]), mt("SJS.FISCALYEAR", ea, 1, 2);
          }, CalcEngine: function(t4) {
            t4.exports = e2("CalcEngine");
          }, Common: function(t4) {
            t4.exports = e2("Common");
          } }, r = {};
          function o(t4) {
            var e3, i3 = r[t4];
            return void 0 !== i3 ? i3.exports : (e3 = r[t4] = { exports: {} }, n3[t4](e3, e3.exports, o), e3.exports);
          }
          o.g = (function() {
            if ("object" == typeof globalThis) return globalThis;
            try {
              return this || new Function("return this")();
            } catch (t4) {
              if ("object" == typeof window) return window;
            }
          })(), t3 = {}, (function() {
            var n4, e3 = t3;
            Object.defineProperty(e3, "__esModule", { value: true }), e3.Functions = void 0, n4 = o("CalcEngine"), Object.defineProperty(e3, "Functions", { enumerable: true, get: function() {
              return n4.Functions;
            } }), o("./src/functions-basic.ts");
          })(), (((i2 = void 0 === i2 ? {} : i2).Spread = i2.Spread || {}).CalcEngine = i2.Spread.CalcEngine || {}).BasicFunctions = t3;
        })(), t2.exports = i2.Spread.CalcEngine.BasicFunctions;
      }, "./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js": function(t2, n2, e2) {
        t2.exports = e2("./node_modules_local/@spreadjs/js-calc-basicfunctions/dist/gc.spread.calcengine.basicfunctions.js");
      }, "./node_modules_local/@spreadjs/js-calc/dist/gc.spread.calcengine.js": function(t2, n2, e2) {
        var i2;
        !(function() {
          "use strict";
          var t3, n3 = { "./src/Parser.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B = this && this.qKr || (P = function(t5, n5) {
              return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, P(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              P(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), P;
            function G() {
              throw (0, r2.sR)()[b];
            }
            function U(t5, n5, e4) {
              throw v.I5((0, r2.sR)()[e4 || m], [t5, n5]);
            }
            function H(t5) {
              return t5 <= 255;
            }
            function V(t5) {
              return t5 <= 127;
            }
            function z(t5) {
              return t5 === (0, r2.getBoolean)().boolean_true || t5 === l;
            }
            function Y(t5) {
              return t5 === (0, r2.getBoolean)().boolean_false || t5 === h;
            }
            function Z(t5) {
              return t5 >= 48 && t5 <= 57;
            }
            function W(t5) {
              var n5 = t5.charCodeAt(0);
              return !H(n5) || (V(n5) ? (n5 |= 32) >= 96 && n5 <= 122 : 0 === x[n5] || 1 === x[n5]);
            }
            function Q(t5) {
              var n5 = t5.charCodeAt(0);
              return !H(n5) || (V(n5) ? n5 <= 57 ? n5 >= 48 : (n5 |= 32) >= 96 && n5 <= 122 : 0 === x[n5] || 1 === x[n5]);
            }
            function K(t5) {
              var n5 = t5.charCodeAt(0);
              return V(n5) ? n5 >= 48 && n5 <= 57 : 8 === x[n5] || 10 === x[n5];
            }
            function J(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2 = t5.length, c2 = e4 === i4 ? 0 : 1, f2 = [], l2 = 0;
              for (a2 = n5 + 1; a2 < s2; a2++) if ((u2 = t5[a2]) === r3 && (f2.push(u2), l2++, u2 = t5[++a2]), u2 === e4 && c2++, u2 === i4) if (c2--, e4 === i4 && a2 + 2 < s2 && t5[a2 + 1] === e4) f2.push(e4), a2++, l2++;
              else {
                if (0 === c2) return { result: f2, endIndex: a2, skipCount: l2 };
                f2.push(u2);
              }
              else f2.push(u2);
              o3 && U(i4, e4, y);
            }
            function X(t5, n5, e4) {
              var i4, o3, a2, u2, s2 = t5.length, c2 = s2 - n5, f2 = (0, r2.getErrorList)();
              for (i4 = 0; i4 < f2.length; i4++) if (n5 + (a2 = (o3 = f2[i4]).length) <= s2 && (u2 = t5.slice(n5, n5 + a2), a2 <= c2 && o3 === u2.join("").toUpperCase())) return { result: u2, endIndex: n5 + a2 - 1 };
              e4 && U([t5[n5], n5]);
            }
            function q(t5) {
              return 0 !== t5.type && !(7 === t5.type && "ANCHORARRAY" !== t5.functionName) && t5.type < 9;
            }
            function $(t5, n5, e4) {
              var i4, r3, o3 = t5.length, a2 = 0, u2 = [];
              for (i4 = n5; i4 < o3; i4++) if (Z((r3 = t5[i4]).charCodeAt(0))) 0 === a2 ? a2 = 2 : 3 === a2 ? a2 = 4 : 1 === a2 ? a2 = 2 : 5 !== a2 && 6 !== a2 || (a2 = 7), u2.push(r3);
              else if (r3 === e4) {
                if (2 === a2) a2 = 4;
                else {
                  if (0 !== a2 && 1 !== a2) return {};
                  a2 = 3;
                }
                u2.push(".");
              } else if ("+" === r3 || "-" === r3) {
                if (0 === a2) a2 = 1;
                else {
                  if (5 !== a2) return { num: u2, endIndex: i4 - 1 };
                  a2 = 6;
                }
                u2.push(r3);
              } else {
                if ("E" !== r3 && "e" !== r3) {
                  if (2 === a2 || 4 === a2 || 7 === a2) return { num: u2, endIndex: i4 - 1 };
                  break;
                }
                if (2 !== a2 && 4 !== a2) return {};
                a2 = 5, u2.push(r3);
              }
              return 2 === a2 || 4 === a2 || 7 === a2 ? { num: u2, endIndex: o3 - 1 } : {};
            }
            function tt(t5, n5) {
              return A.apply(t5, n5), t5;
            }
            function nt(t5) {
              var n5, e4, i4;
              for (n5 = 0, e4 = t5; n5 < e4.length; n5++) if (0 === (i4 = e4[n5]).type && "," !== i4.value || i4.arguments && nt(i4.arguments)) return true;
              return false;
            }
            function et(t5, n5, e4) {
              t5.lit = n5, t5.ywt = e4;
            }
            function it(t5) {
              var n5 = t5.value;
              n5 && n5[0] === o2 && n5[n5.length - 1] === a && (t5.value = n5.substring(1, n5.length - 1), t5.Hve = true);
            }
            function rt(t5) {
              return t5.reduce((function(t6, n5) {
                return t6 + ("string" == typeof n5 ? n5.length : 0);
              }), 0);
            }
            function ot(t5, n5, e4) {
              var i4, r3, o3, a2;
              if (Z(+t5[0])) return true;
              if (i4 = t5, (r3 = t5.lastIndexOf("[")) > 0) return true;
              if (0 === r3) {
                if (!((o3 = t5.lastIndexOf("]")) > 0)) return true;
                if (!at(a2 = t5.slice(1, o3))) return true;
                i4 = t5.slice(o3 + 1);
              }
              return !ut(i4, n5, e4);
            }
            function at(t5) {
              var e4, i4;
              if (!t5 || 0 === t5.length) return true;
              for (i4 = 0; i4 < t5.length; i4++) if (e4 = t5[i4], D[e4] || n4.operaterTypesMap[e4]) return false;
              return true;
            }
            function ut(t5, e4, r3) {
              var o3, a2;
              if (!t5 || 0 === t5.length) return true;
              if (!e4) {
                if (K(t5[0])) return false;
                if (ct(t5)) return false;
                if (_.test(t5[0])) return false;
              }
              for (a2 = 0; a2 < t5.length; a2++) if (o3 = t5[a2], e4) {
                if ("*" === o3 || ":" === o3 || "[" === o3 || "]" === o3 || "?" === o3 || "\\" === o3 || "/" === o3) return false;
              } else if (O[o3] || n4.operaterTypesMap[o3] || E[o3] && (r3 || i3.Common.CultureManager.Fe().isJCKCulture)) return false;
              return true;
            }
            function st(t5) {
              var n5 = t5.search(/[0-9]/), e4 = t5.substr(0, n5), i4 = parseInt(t5.substr(n5), 10);
              return (n5 <= 2 || 3 === n5 && e4 <= "XFD") && i4 <= r2.MAX_ROW_COUNT;
            }
            function ct(t5) {
              var n5 = t5.join("").toUpperCase();
              return !!("RC" === n5 || "C" === n5 || "R" === n5 || R.test(n5) || L.test(n5) && st(n5));
            }
            function ft(t5, n5, e4) {
              if (!n5 || 0 === n5.length) return [];
              var i4 = n5, r3;
              if (ot(n5, false, t5.lyt) || e4 && ot(e4, false, t5.lyt)) {
                for (i4 = ["'"], r3 = 0; r3 < n5.length; r3++) "'" === n5[r3] && i4.push("'"), i4.push(n5[r3]);
                if (e4) for (i4.push(":"), r3 = 0; r3 < e4.length; r3++) "'" === e4[r3] && i4.push("'"), i4.push(e4[r3]);
                i4.push("'");
              } else if (e4) for (i4.push(":"), r3 = 0; r3 < e4.length; r3++) i4.push(e4[r3]);
              return i4;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DefaultTokenResolver = n4.Y3e = n4.Cmt = n4.ParserContext = n4.Parser = n4.TrimSymbolText = n4.TokenResolver = n4.FormulaToken = n4.isNumber = n4.Jkt = n4.Swt = n4.isDigit = n4.isActualFalse = n4.isActualTrue = n4.operaterTypesMap = n4.preOperaterTypesMap = n4.Z9t = void 0, i3 = e3("Common"), r2 = e3("./src/calc.common.ts"), o2 = "[", a = "]", u = void 0, s = null, c = "string", f = "boolean", l = "TRUE", h = "FALSE", d = "ARRAY", v = i3.Common.zf, p = i3.Common.lt, g = p.ht, m = "Exp_FormulaInvalidChar", b = "Exp_FormulaInvalid", y = "Exp_NoSyntax", n4.Z9t = ["+", "-", "%", "+", "-", "*", "/", "^", "&", "=", "<>", "<", "<=", ">", ">=", ":", ",", " ", "."], n4.preOperaterTypesMap = { "+": 0, "-": 1 }, n4.operaterTypesMap = { ":": 15, ",": 16, "+": 3, "-": 4, "*": 5, "/": 6, "^": 7, "%": 2, "&": 8, "=": 9, "<": 11, "<>": 10, "<=": 12, ">": 13, ">=": 14 }, w = { ":": 0, " ": 1, ".": 2, "^": 3, "*": 4, "/": 4, ",": 5, "+": 6, "-": 6, "&": 7, "<": 8, "=": 8, ">": 8, ">=": 8, "<=": 8, "<>": 8 }, M = ".", C = ",", S = ";", T = ",", x = [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 11, 24, 24, 24, 26, 24, 24, 24, 20, 21, 24, 25, 24, 19, 24, 24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 24, 24, 25, 25, 25, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 24, 21, 27, 18, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 25, 21, 25, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 11, 24, 26, 26, 26, 26, 28, 28, 27, 28, 1, 22, 25, 19, 28, 27, 28, 25, 10, 10, 27, 1, 28, 24, 27, 10, 1, 23, 10, 10, 10, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1, 1, 1], n4.isActualTrue = z, n4.isActualFalse = Y, n4.isDigit = Z, n4.Swt = W, n4.Jkt = Q, n4.isNumber = K, A = [].push, I = (function() {
              function t5(t6, n5, e4, i4, r3) {
                var o3, a2, u2;
                this.R1t = [], r3 = r3 || 0, (o3 = this).y4 = t6, a2 = Array.isArray(t6) ? t6.join("") : t6, o3._type = n5, o3.lp = e4, o3.ywt = i4 || e4 + t6.length - 1, 0 === n5 && 0 === r3 && t6 && (z(u2 = a2.toUpperCase()) || Y(u2)) && (r3 = 5, a2 = u2), o3.Awt = a2, o3.Twt = r3;
              }
              return t5.prototype.type = function() {
                return this._type;
              }, t5.prototype.subType = function() {
                return this.Twt;
              }, t5.prototype.stringValue = function() {
                return this.Awt;
              }, t5;
            })(), n4.FormulaToken = I, k = (function() {
              function t5(t6) {
                void 0 === t6 && (t6 = 5e3), this.priority = t6;
              }
              return t5.prototype.resolveToken = function(t6, n5, e4, i4, r3) {
                return 0;
              }, t5.prototype.unparse = function(t6, n5, e4, i4) {
                return true;
              }, t5;
            })(), n4.TokenResolver = k, n4.TrimSymbolText = [u, "_TRO_LEADING", "_TRO_TRAILING", "_TRO_ALL"], N = (function() {
              function t5() {
              }
              return t5.prototype.setParserOption = function(n5) {
                var e4, r3;
                n5 !== u && i3.Common.CultureManager.Fe() ? (r3 = "object" == typeof n5 && n5.NumberFormat ? n5.NumberFormat : i3.Common.CultureManager.Fe().NumberFormat, e4 = n5 ? r3 : {}) : r3 = e4 = {}, C = t5.listSeparator = e4.listSeparator || ",", M = e4.numberDecimalSeparator || ".", !n5 && t5.numberDecimalSeparator || (t5.numberGroupSeparator = r3.numberGroupSeparator || ",", t5.numberDecimalSeparator = r3.numberDecimalSeparator || "."), S = t5.arrayGroupSeparator = e4.arrayGroupSeparator || ";", T = t5.arrayListSeparator = e4.arrayListSeparator || ",";
              }, t5.prototype.parseDotOperator = function(t6, n5, e4) {
                var i4, o3, a2, u2, s2, c2 = n5[e4];
                if (n5[e4 - 1] && "#" === n5[e4 - 1].y4 && "." !== c2.Awt[0]) return 0;
                if (n5[e4 + 1] && ":" === n5[e4 + 1].y4) return 0;
                if (c2.Awt.startsWith(r2.XLETAPrefix)) return 0;
                if (0 === c2._type && 0 === c2.Twt && !(0, r2.W9t)(t6.source, c2.Awt) && (i4 = c2.Awt.lastIndexOf(".")) >= 0) {
                  if ((o3 = c2.Awt.substring(i4 + 1)).indexOf("]") >= 0) return 0;
                  if (a2 = new I(c2.Awt.substring(0, i4).split(""), 0, c2.lp, c2.lp + i4 - 1), u2 = new I(["."], 5, c2.lp + i4, c2.lp + i4), (s2 = new I(o3.split(""), 0, c2.lp + i4 + 1, c2.ywt)).Q9t = true, i4 === c2.Awt.length - 1) return 0 === i4 ? n5.splice(e4, 1, u2) : n5.splice(e4, 1, a2, u2), 1 + this.parseDotOperator(t6, n5, e4);
                  if (i4 > 0) return n5.splice(e4, 1, a2, u2, s2), 2 + this.parseDotOperator(t6, n5, e4);
                  if (0 === i4) return n5.splice(e4, 1, u2, s2), 1;
                }
                return 0;
              }, t5.prototype.parse = function(t6, n5) {
                var e4, i4, o3;
                if (n5 = (0, r2.zve)(n5), this.setParserOption(t6.culture), e4 = n5.split(""), this.J9t = e4, t6.X9t = false, i4 = this.parseToTokens(t6, e4, !t6.ignoreError), t6.source && !t6.source.skipDotOperator && t6.X9t) for (o3 = 0; o3 < i4.length; o3++) o3 += this.parseDotOperator(t6, i4, o3);
                return this.buildExpressionTree(t6, i4, !t6.ignoreError);
              }, t5.prototype.unparse = function(t6, n5, e4) {
                return void 0 === e4 && (e4 = []), this.setParserOption(t6.culture), this.q9t(t6, n5, e4), e4.join("");
              }, t5.prototype.q9t = function(t6, n5, e4) {
                var i4, r3, o3, a2;
                if (n5) {
                  for (i4 = t6.Jde, n5.$9t && !t6.lyt && !t6.Eme && t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray && e4.push("@"), r3 = t6.getResolvers(), o3 = 0; o3 < r3.length; o3++) if (a2 = i4 ? rt(e4) : u, r3[o3].unparse(t6, this, n5, e4)) {
                    i4 && (n5.lit = a2, n5.ywt = rt(e4));
                    break;
                  }
                }
              }, t5.prototype.parseToTokens = function(t6, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2, v2, p2, g2, m2, b2, y2, w2, x2, k2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, H2, V2, z2, Y2;
                for (void 0 === i4 && (i4 = true), o3 = this, a2 = function(n5, e5, i5, r4) {
                  return e5.length > 0 && (e5.indexOf(".") >= 0 && (t6.X9t = true), n5.push(new I(e5, 0, i5, r4))), [];
                }, u2 = e4.length, s2 = [], c2 = [], f2 = -1, l2 = [], p2 = 0, b2 = false, y2 = null === (r3 = t6.source) || void 0 === r3 ? void 0 : r3.G3; p2 < u2 && " " === e4[p2]; ) p2++;
                for ("=" === e4[p2] && p2++, v2 = p2, w2 = p2; w2 < u2; w2++) if (N2 = void 0, 64 === (k2 = (x2 = e4[w2]).charCodeAt(0))) l2 = a2(s2, l2, v2), s2.push(new I(e4[w2], 4, w2, w2)), v2 = w2 + 1;
                else if (k2 >= 97 && k2 <= 122 || k2 >= 65 && k2 <= 90) l2.push(x2);
                else if (34 === k2) l2.length > 0 && (l2 = a2(s2, l2, v2)), (N2 = J(e4, w2, '"', '"', "", i4)) ? (j2 = new I(N2.result, 0, w2, N2.endIndex, 3), N2.skipCount && (j2.Ewt = e4.slice(w2, N2.endIndex + 1).join(""), j2.ywt += N2.skipCount), s2.push(j2), v2 = (w2 = N2.endIndex) + 1) : (tt(l2, e4.slice(w2, u2)), w2 = u2 - 1);
                else if (39 === k2) if (N2 = J(e4, w2, "'", "'", "", i4)) {
                  if (l2.length > 0 && (l2 = a2(s2, l2, v2), v2 = w2), D2 = [], (_2 = N2.result.join("")).indexOf(":") > -1 && -1 === _2.indexOf("[")) for (E2 = (O2 = _2.split(":")).length, R2 = 0; R2 < E2; R2++) L2 = "'" + O2[R2] + "'", F2 = v2 + O2[R2].length - 1, 0 === R2 ? F2++ : R2 === E2 - 1 && (F2 = N2.endIndex), l2 = a2(D2, L2.split(""), v2, F2), v2 = F2 + 1, R2 !== E2 - 1 && (D2.push(new I(":", 5, v2, v2, 11)), v2++);
                  D2 && D2.length > 0 ? tt(s2, D2) : (l2.push("'"), tt(l2, N2.result), l2.push("'")), w2 = N2.endIndex;
                } else l2.push("'"), w2 = u2 - 1;
                else if (91 === k2) if (N2 = J(e4, w2, "[", "]", "'", i4)) l2.push("["), tt(l2, N2.result), l2.push("]"), w2 = N2.endIndex;
                else {
                  if (o3.qJr && 0 === l2.length && ("R" === l2[0] || "r" === l2[0] || "C" === l2[0] || "c" === l2[0])) continue;
                  tt(l2, e4.slice(w2, u2)), w2 = u2 - 1;
                }
                else {
                  if (13 === k2 || 10 === k2) continue;
                  if (35 === k2) (B2 = X(e4, w2)) ? (s2.push(new I(B2.result, 0, w2, w2 + B2.result.length - 1, 6)), v2 = (w2 = B2.endIndex) + 1) : (l2 = a2(s2, l2, v2), s2.push(new I(e4[w2], 6, w2, w2)), v2 = w2 + 1);
                  else if (33 === k2) l2.length, (P2 = s2.length) > 0 && 0 === s2[P2 - 1]._type ? (G2 = s2[P2 - 1], A.apply(G2.y4, l2), s2[P2 - 1] = new I(G2.y4, 0, G2.lp, w2, 12)) : s2.push(new I(l2, 0, v2, w2, 12)), l2 = [], v2 = w2 + 1;
                  else if (43 === k2 || 45 === k2) H2 = 0 === s2.length ? null : s2[s2.length - 1], 0 !== l2.length ? (l2 = a2(s2, l2, v2), s2.push(new I(x2, 5, w2)), v2 = w2 + 1) : (H2 && 7 === H2._type && s2.pop(), !H2 || 2 !== H2.Twt && 6 !== H2._type && 0 !== H2._type ? (s2.push(new I(x2, 4, w2)), v2 = w2 + 1) : (s2.push(new I(x2, 5, w2)), v2 = w2 + 1));
                  else if ("." !== x2 || ":" !== e4[w2 + 1] || y2) if (x2 === M || Z(k2)) l2.length > 0 ? l2.push(x2) : (V2 = $(e4, w2, M)).num ? (g2 = V2.endIndex, z2 = V2.num, g2 <= u2 - 2 && "!" === e4[g2 + 1] ? (tt(l2, z2), v2 = g2) : (s2.push(new I(z2, 0, w2, g2, 4)), v2 = g2 + 1), w2 = g2) : l2.push(x2);
                  else if (123 === k2) l2.length > 0 && (i4 ? U(x2, w2) : l2 = a2(s2, l2, v2)), h2 = new I(d, 1, w2, w2, 1), s2.push(h2), c2[++f2] = h2, v2 = w2 + 1;
                  else if (x2 === S && f2 >= 0 && c2[f2].value === d) l2 = a2(s2, l2, v2), f2 < 0 && i4 && U(x2, w2), s2.push(new I(S, 3, w2, w2)), v2 = w2 + 1;
                  else if (125 === k2) l2 = a2(s2, l2, v2), g2 < 0 && i4 && U(x2, w2), m2 = c2[f2], f2--, m2 = new I(x2, m2._type, w2, w2, 2), s2.push(m2), v2 = w2 + 1;
                  else if (32 === k2) l2 = a2(s2, l2, v2), v2 = w2 + 1;
                  else if (x2 === C || x2 === T || x2 === S) l2 = a2(s2, l2, v2), f2 < 0 || 1 !== c2[f2]._type ? s2.push(new I(C, 5, w2, w2, 10)) : s2.push(new I(x2, 3, w2, w2)), v2 = w2 + 1;
                  else if (37 === k2) l2 = a2(s2, l2, v2), s2.push(new I(e4[w2], 6, w2, w2)), v2 = w2 + 1;
                  else if (w2 + 2 <= u2 && n4.operaterTypesMap[x2 + e4[w2 + 1]]) l2 = a2(s2, l2, v2), s2.push(new I(e4.slice(w2, w2 + 2), 5, w2, w2 + 1, 5)), v2 = ++w2 + 1;
                  else if (n4.operaterTypesMap[x2]) l2 = a2(s2, l2, v2), Y2 = new I(x2, 5, w2, w2), s2.push(Y2), b2 ? (Y2.lp--, "." === e4[w2 + 1] ? (Y2.dHr = 3, Y2.ywt++, w2++) : Y2.dHr = 1, b2 = false) : "." !== e4[w2 + 1] || ":" !== x2 || y2 || (Y2.dHr = 2, Y2.ywt++, w2++), v2 = w2 + 1;
                  else if ("(" === x2) l2.length > 0 ? (h2 = new I(l2, 1, v2, w2, 1), l2 = []) : h2 = new I(x2, 2, w2, w2, 1), s2.push(h2), c2[++f2] = h2, v2 = w2 + 1;
                  else if (")" === x2) {
                    if (l2 = a2(s2, l2, v2), f2 < 0) {
                      i4 && U(x2, w2), a2(s2, x2, w2), v2 = w2 + 1;
                      continue;
                    }
                    m2 = c2[f2], f2--, m2 = new I(x2, m2._type, w2, w2, 2), s2.push(m2), v2 = w2 + 1;
                  } else if (":" === x2) l2 = a2(s2, l2, v2), s2.push(new I(x2, 5, w2, w2, 11)), v2 = w2 + 1;
                  else if ("\r" === x2 || "\n" === x2) ;
                  else {
                    if ("\\" === x2) {
                      if (++w2 >= u2) {
                        i4 && U(x2, w2);
                        continue;
                      }
                      l2.push(x2), x2 = e4[w2];
                    }
                    l2.push(x2);
                  }
                  else b2 = true;
                }
                return a2(s2, l2, v2), s2;
              }, t5.prototype.buildExpressionTree = function(t6, n5, e4) {
                var i4, o3, a2, u2, c2;
                return this.tDt(n5), i4 = t6.keepUnknownFormulas, t6.nDt = false, o3 = this.eDt(t6, n5, e4), i4 && (0 === o3.length || nt(o3)) ? s : (a2 = this.iDt(t6, o3), e4 && (a2 || G(), this.rDt(a2, t6)), t6.nDt && this.oDt(a2, new r2.LocalScopes(), false, false, t6, e4), !(c2 = (u2 = t6.source) && u2.G3) && a2 && (a2.lMt = true), a2);
              }, t5.prototype.rDt = function(t6, n5) {
                for (var e4, o3, a2, u2, s2, c2, f2; 10 === t6.type; ) t6 = t6.value;
                if (e4 = this, 9 === t6.type) t6.value || G(), e4.rDt(t6.value, n5), t6.value2 ? e4.rDt(t6.value2, n5) : t6.operatorType > 3 && G();
                else if (7 === t6.type) if (a2 = (o3 = t6.arguments).length, u2 = t6.function, (0, r2.isExpression)(u2)) this.rDt(u2, n5);
                else for (s2 = false !== n5.Wve, u2 && s2 && u2.aDt(u2.minArgs, u2.maxArgs, a2, o3), c2 = 0; c2 < a2; c2++) f2 = o3[c2], u2 && s2 ? u2.uDt(f2, c2) : (0, r2.sDt)(f2, c2), e4.rDt(f2, n5);
                else 8 === t6.type && n5.Mf && (i3.Common.$T.qT("^[A-Za-z_\\@\\\\¡¤§¨ª\\u00AD\\u00AF-\\u00BA\\u00BC-\\uFFFF][A-Za-z0-9_\\.\\@\\\\\\?\\#¡¤§¨ª\\u00AD\\u00AF-\\u00BA\\u00BC-\\uFFFF]*$").test(t6.value) || "[" === t6.value[0] || G());
              }, t5.prototype.iDt = function(t6, n5) {
                var e4, i4, o3, a2, u2, s2, c2 = !t6.ignoreError, f2 = this.cDt(t6, n5, c2);
                for (u2 = 3; u2 < f2.length; ) if (s2 = f2[u2], 9 !== (a2 = f2[u2 - 2]).type && c2 && G(), s2 && 9 === s2.type) {
                  for (; u2 >= 3 && w[s2.value] >= w[a2.value]; ) i4 = f2[u2 - 3], o3 = f2[u2 - 1], l2(), f2.splice(u2 - 3, 3, e4), (u2 -= 2) >= 3 && (a2 = f2[u2 - 2]);
                  u2 += 2;
                } else u2++;
                if (1 === f2.length) return f2[0];
                for (u2 = f2.length - 2; u2 > 0; u2 -= 2) a2 = f2[u2], i4 = f2[u2 - 1], o3 = f2[u2 + 1], 9 !== f2[u2].type && c2 && G(), l2(), f2.splice(u2 - 1, 3, e4);
                return e4;
                function l2() {
                  var n6;
                  a2.dHr && ((null === (n6 = t6.source) || void 0 === n6 ? void 0 : n6.G3) || (1 === a2.dHr && 1 !== i4.type ? (i4.value += ".", delete a2.dHr) : G())), e4 = (0, r2.rbt)(a2.operatorType, i4, o3), a2.dHr && (e4.dHr = a2.dHr);
                }
              }, t5.prototype.fDt = function(t6, n5, e4) {
                var i4, o3, a2, u2, s2, c2, f2, l2;
                if (!t6 || t6.length <= 0) return t6;
                for (o3 = 0, a2 = [], u2 = [], s2 = (i4 = t6)[i4.length - 1], c2 = 0; c2 <= i4.length; c2++) f2 = i4[c2], c2 === i4.length || e4(f2) ? (o3 === c2 ? (l2 = f2 ? f2.ywt : s2.ywt, a2.push((0, r2.Lde)(l2, l2))) : a2.push(this.iDt(n5, u2)), o3 = c2 + 1, u2 = []) : u2.push(f2);
                return a2;
              }, t5.prototype.cDt = function(t6, e4, i4) {
                var o3, a2, s2, c2, f2, l2, h2, d2, v2, p2, m2, b2, y2;
                for (o3 = [], a2 = (e4 = Array.isArray(e4) ? e4 : [e4]).length, s2 = 0; s2 < a2; s2++) {
                  if (f2 = c2 = e4[s2], 10 === c2.type) {
                    if ((l2 = o3.length > 0 ? o3[o3.length - 1] : u) && 7 === l2.type) {
                      h2 = this.fDt(c2.value, t6, (function(t7) {
                        return t7.value === C;
                      })), o3[o3.length - 1] = (0, r2.lDt)(l2, h2, l2.lit, c2.ywt);
                      continue;
                    }
                    c2.value = this.iDt(t6, c2.value), f2 = c2;
                  } else 7 === c2.type && (d2 = function(t7) {
                    return 0 === t7.type && t7.value === C;
                  }, c2.arguments = this.fDt(c2.arguments, t6, d2));
                  (v2 = n4.TrimSymbolText.indexOf(c2.functionName)) > 0 && (1 === c2.arguments[0].type ? f2 = c2.arguments[0] : 9 === c2.arguments[0].type && (f2 = (0, r2.rbt)(15, c2.arguments[0].value, c2.arguments[0].value2)), f2.dHr = v2), o3.push(f2);
                }
                for (e4 = o3, o3 = [], a2 = e4.length, s2 = 0; s2 < a2; s2++) {
                  if (f2 = c2 = e4[s2], 9 === c2.type) {
                    if (0 === c2.operatorType || 1 === c2.operatorType) if (s2 === a2 - 1) i4 && G();
                    else {
                      for (p2 = s2; !g(e4[p2]) && 9 === e4[p2].type && e4[p2].operatorType <= 1; ) p2++;
                      if (g(e4[p2])) {
                        if (!i4) return;
                        G();
                      }
                      for (m2 = e4[p2], v2 = p2 - 1; v2 >= s2; v2--) m2 = f2 = (0, r2.rbt)(e4[v2].operatorType, m2);
                      f2 = m2, s2 = p2;
                    }
                    else if (2 === c2.operatorType) {
                      if (0 !== s2) {
                        f2 = (0, r2.rbt)(c2.operatorType, o3[o3.length - 1]), o3[o3.length - 1] = f2;
                        continue;
                      }
                      i4 && G();
                    } else if ("#" === c2.value) {
                      if (0 !== s2) {
                        if (e4[s2 + 1] && 8 === e4[s2 + 1].type && 8 === o3[o3.length - 1].type) {
                          o3[o3.length - 1].value += "#" + e4[s2 + 1].value, s2++;
                          continue;
                        }
                        b2 = t6.getFunction("ANCHORARRAY"), f2 = (0, r2.YJ)(b2, [o3[o3.length - 1]], c2.lit), o3[o3.length - 1] = f2;
                        continue;
                      }
                      i4 && G();
                    } else if ("@" === c2.value) {
                      if (e4[s2 + 1] && 9 !== e4[s2 + 1].type) {
                        b2 = t6.getFunction("@"), f2 = (0, r2.YJ)(b2, [e4[s2 + 1]], c2.lit), false === (y2 = t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray) && (7 === e4[s2 + 1].type ? f2 = e4[s2 + 1] : f2.function = u), o3[o3.length] = f2, s2++;
                        continue;
                      }
                      f2.type = 8;
                    }
                  }
                  o3.push(f2);
                }
                return o3;
              }, t5.prototype.eDt = function(t6, n5, e4) {
                var i4, r3, o3 = [];
                for (i4 = 0, r3 = n5.length; i4 < r3; ) i4 = this.resolveToken(t6, n5, o3, i4, e4);
                return o3;
              }, t5.prototype.addDynamicCell = function(t6) {
                t6.iao();
              }, t5.prototype.resolveToken = function(t6, n5, e4, i4, o3) {
                var a2, c2, f2, l2, h2, d2, v2, p2, g2 = n5[i4], m2 = t6.getResolvers();
                for (a2 = 0; a2 < m2.length; a2++) if (c2 = m2[a2].resolveToken(t6, this, n5, i4, o3)) {
                  l2 = i4 - 1, (f2 = c2.expr) && c2.index !== u ? i4 = c2.index - 1 : f2 = c2, g2.Q9t && (f2.hDt = g2.Awt), (h2 = e4.length > 0 ? e4[e4.length - 1] : s) && q(f2) && (q(h2) || "#" === h2.value) && (d2 = n5[l2].ywt) < g2.lp - 1 && (v2 = (0, r2.rbt)(17, " "), t6.Jde && et(v2, d2 + 1, g2.lp), e4.push(v2)), (15 === f2.operatorType || f2.function && f2.function.haveDynamicListener) && this.addDynamicCell(t6), t6.Jde && (p2 = n5[Math.min(i4, n5.length - 1)], et(f2, g2.lp, p2.ywt + 1)), e4.push(f2);
                  break;
                }
                return i4 + 1;
              }, t5.prototype.resolveSubTokens = function(t6, n5, e4, i4, r3) {
                for (var o3 = []; e4 < n5.length && 2 !== n5[e4].Twt; ) if (e4 = this.resolveToken(t6, n5, o3, e4, i4), r3) {
                  e4--;
                  break;
                }
                return { exprs: o3, index: e4 + 1 };
              }, t5.prototype.tDt = function(t6) {
                t6.forEach((function(t7) {
                  1 === t7._type && t7.Awt !== d && (t7.Awt = t7.Awt.toUpperCase());
                }));
              }, t5.prototype.dDt = function(t6, n5, e4) {
                9 === t6.type && 18 === t6.operatorType && (t6.value = e4 || this.unparse(n5, t6), t6.type = 8, delete t6.operatorType);
              }, t5.prototype.oDt = function(t6, n5, e4, i4, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2;
                if (t6) if (Array.isArray(t6)) for (u2 = 0; u2 < t6.length; u2++) this.oDt(t6[u2], n5, e4, i4, o3, a2);
                else if (9 === t6.type && 18 === t6.operatorType && (s2 = this.unparse(o3, t6), n5.hasVariable(s2) && this.dDt(t6, o3, s2)), 8 === t6.type) n5.hasVariable(t6.value) && (t6.type = 100, t6.vDt = e4, t6.mDt = i4, t6.value = n5.getVariable(t6.value), a2 || (t6.value = t6.value.replace(/\./g, "_")));
                else if (7 === t6.type) {
                  if (c2 = t6.functionName, f2 = t6.function, l2 = t6.arguments, "LET" === c2) {
                    for (n5.enterScope(), h2 = l2.length - 1, u2 = 0; u2 < h2; u2 += 2) {
                      if (d2 = l2[u2], this.dDt(d2, o3), 8 !== d2.type) return;
                      this.oDt(l2[u2 + 1], n5, e4, i4, o3, a2), n5.setVariable(d2.value, d2.value), this.oDt(d2, n5, e4, i4, o3, a2);
                    }
                    this.oDt(l2[h2], n5, e4, i4, o3, a2), n5.exitScope();
                  } else if ("LAMBDA" === c2) {
                    for (n5.enterScope(), h2 = l2.length - 1, u2 = 0; u2 < h2; u2++) {
                      if (8 !== (d2 = l2[u2]).type) return;
                      it(d2), n5.setVariable(d2.value, d2.value), this.oDt(d2, n5, e4, i4, o3, a2);
                    }
                    this.oDt(l2[h2], n5, e4, i4, o3, a2), n5.exitScope();
                  } else for (u2 = 0; u2 < l2.length; u2++) e4 = (0, r2.getFunctionAcceptsArray)(f2, u2), i4 = (0, r2.getFunctionAcceptsReference)(f2, u2), this.oDt(l2[u2], n5, e4, i4, o3, a2);
                  (0, r2.isExpression)(f2) && this.oDt(f2, n5, e4, i4, o3, a2), c2 && n5.hasVariable(c2) && (t6.isLocalFunctionName = true, t6.functionName = n5.getVariable(c2));
                } else 9 === t6.type ? (e4 = i4 = (0, r2.gDt)(t6.operatorType), this.oDt(t6.value, n5, e4, i4, o3, a2), this.oDt(t6.value2, n5, e4, i4, o3, a2)) : (this.oDt(t6.value, n5, e4, i4, o3, a2), this.oDt(t6.value2, n5, e4, i4, o3, a2));
              }, t5;
            })(), n4.Parser = N, j = (function() {
              function t5(t6, n5, e4, i4) {
                this.lyt = false, this.Eme = false, this.ignoreError = false;
                var r3 = this;
                r3.useR1C1 = n5, r3.baseIdentity = e4, r3.option = i4, r3.source = t6;
              }
              return t5.prototype.getExternalSource = function(t6, n5) {
                var e4, i4 = this.source.getCalcService(), r3 = i4.getAllSourceModels();
                for (e4 = 0; e4 < r3.length; e4++) if (v.Dbt(r3[e4].getSource().getName(), n5)) return r3[e4].getSource();
                return s;
              }, t5.prototype.getExternalSourceToken = function(t6) {
                return t6.getName();
              }, t5.prototype.setSource = function(t6) {
                this.source = t6;
              }, t5.prototype.getResolvers = function() {
                var t6 = (this.source || this.Mf).getCalcService();
                return t6 && t6.getResolvers();
              }, t5.prototype.addResolver = function(t6) {
                var n5 = (this.source || this.Mf).getCalcService();
                n5 && n5.addResolver(t6);
              }, t5.prototype.getFunction = function(t6) {
                var n5, e4 = t6, i4 = (0, r2.getMapping)() && (0, r2.getMapping)().builtInFunctionsMapping;
                if (!g(i4)) for (n5 in i4) i4[n5].alias === t6 && (e4 = n5);
                return this.source && this.source.getCustomFunction(e4) || r2.Functions.findGlobalFunction(t6);
              }, t5.prototype.iao = function() {
                var t6, n5 = this, e4 = n5.source && n5.source.getCalcService && n5.source.getCalcService();
                e4 && (e4.tMt || (e4.tMt = {}), t6 = n5.source.id + "," + n5.row + "," + n5.column, e4.tMt[t6] = { id: n5.source.id, row: n5.row, col: n5.column });
              }, t5.prototype.setConfig = function(t6) {
                var n5 = this;
                t6.ignoreError !== u && (n5.ignoreError = t6.ignoreError), t6.needRecordStartEndIndex !== u && (n5.Jde = t6.needRecordStartEndIndex), t6.needParseDot !== u && (n5.X9t = t6.needParseDot), t6.needCheckFunctionArguments !== u && (n5.Wve = t6.needCheckFunctionArguments), t6.needResolveLocalName !== u && (n5.nDt = t6.needResolveLocalName), t6.needsXletaCheck !== u && (n5.Cwr = t6.needsXletaCheck);
              }, t5;
            })(), n4.ParserContext = j, r2.CalcSource.prototype.getParserContext = function(t5, n5, e4) {
              return new j(this, t5, n5, e4);
            }, D = { "'": 1, "[": 1, "]": 1, "?": 1, "%": 1, " ": 1 }, _ = /[\u00A2\u00A3\u00A5\u00A6\u00A9\u00AB\u00AC\u00AE\u09E6-\u09EF\u09F2-\u0A03\u0AE2-\u0AF1\u0BE6-\u0BFA\u0E3F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1878-\u187F\u18A9\u18AB-\u18FF\u191D-\u194F\u196E\u196F\u1975-\u197F\u19AA-\u19C0\u19C8-\u19FF\u2000-\u200F\u2011\u2012\u2017\u201A\u201B\u201E\u201F\u2022-\u2024\u2028-\u202F\u2031\u2034\u2036-\u203A\u203C-\u2070\u2072\u2073\u2075-\u207E\u2080\u2085-\u208F\u2095-\u20CF\u2100\u2101\u2104\u2106\u2108\u2114\u2117\u2118\u211E-\u2120\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2152\u2155-\u215A\u215F\u2189-\u218F\u219A-\u21D1\u21D3\u21D5-\u21FF\u2201\u2204-\u2206\u2209\u220A\u220C-\u220E\u2210\u2212-\u2214\u2216-\u2219\u221B\u221C\u2221\u2222\u2224\u2226\u222D\u222F-\u2233\u2238-\u223B\u223E-\u2247\u2249-\u224B\u224D-\u2251\u2253-\u225F\u2262\u2263\u2268\u2269\u226C\u226D\u2270-\u2281\u2284\u2285\u2288-\u2294\u2296-\u2298\u229A-\u22A4\u22A6-\u22BE\u22C0-\u2311\u2313-\u245F\u24B6-\u24CF\u24EA-\u24FF\u254C-\u254F\u2575-\u2580\u2590\u2591\u2596-\u259F\u25A2\u25AA-\u25B1\u25B4\u25B5\u25B8-\u25BB\u25BE\u25BF\u25C2-\u25C5\u25C9\u25CA\u25CC\u25CD\u25D2-\u25E1\u25E6-\u25EE\u25F0-\u2604\u2607\u2608\u260A-\u260D\u2610-\u261B\u261D\u261F-\u263F\u2641\u2643-\u265F\u2662\u2666\u266B\u266E\u2670-\u2BFF\u3004\u3018-\u301C\u3020\u302A-\u3030\u3036\u3037\u303F\u321D-\u321F\u322A-\u3230\u3233-\u3238\u323A-\u325F\u327C-\u327E\u3280-\u32A2\u32A9-\u3302\u3304-\u330C\u330E-\u3313\u3315-\u3317\u3319-\u3321\u3324\u3325\u3328-\u332A\u332C-\u3335\u3337-\u333A\u333C-\u3348\u334B\u334C\u334E-\u3350\u3352-\u3356\u3358-\u337A\u337F\u3385-\u3387\u33CB\u33CC\u33D4\u33D7\u33D9\u33DA\u33DE-\u33FF\uD80B-\uD83F\uFDFC-\uFE2F\uFE32\uFE45-\uFE48\uFF01-\uFF20\uFF23\uFF32\uFF3E\uFF40\uFF43\uFF5B-\uFF60\uFFE7-\uFFEE]/, O = { " ": true, "'": true, "[": true, "]": true, "?": true, "\\": true, "%": true, '"': true, "(": true, ")": true, "|": true, "{": true, "}": true, "#": true, "@": true, "!": true, $: true, "^": true, "（": true, "）": true, ".": true, ";": true, ",": true, "`": true, "+": true, "~": true, "！": true, "": true, "｝": true, "｛": true, "-": true, "；": true, "：": true, "‘": true, "“": true, "”": true, "’": true, "，": true, "。": true, "、": true, "〘": true, "〙": true, "〚": true, "〛": true, "〜": true, "〰": true, "〽": true, "=": true }, E = { "　": true, "～": true }, n4.Cmt = ut, R = /^(R|C|RC)?(0*[1-9]\d*)/, L = /^[A-z]{1,3}0*[1-9]\d{0,6}$/, n4.Y3e = ft, F = (function(t5) {
              function e4() {
                return null !== t5 && t5.apply(this, arguments) || this;
              }
              return B(e4, t5), e4.prototype.resolveToken = function(t6, e5, i4, o3, a2) {
                var s2, c2, f2, l2, h2, p2, g2, m2, b2, y2, w2, M2, C2 = i4[o3], T2 = C2.Awt, x2 = C2.y4, A2 = C2._type, I2 = null, k2 = C2.Twt, N2 = t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray;
                if (0 === A2 && 12 === k2) {
                  if (p2 = void 0, T2 && "'" === (p2 = T2).charAt(0) && (p2 = p2.substring(1, p2.length - 1)), o3++, p2 && (I2 = t6.getExternalSource("", p2)), !(C2 = i4[o3])) return (c2 = new r2.Expression(8)).value = T2, c2;
                  T2 = C2.Awt, A2 = C2._type;
                }
                if (0 === A2) 0 === C2.Twt ? z(l2 = T2.toUpperCase()) || Y(l2) ? (C2.Twt = 5, C2.Awt = l2, (c2 = new r2.Expression(4)).value = z(l2)) : ((c2 = new r2.Expression(8)).value = T2, T2.startsWith(r2.XLETAPrefix) ? (c2.value = T2.substring(7), c2.bwr = 1) : false === t6.Cwr && (t6.Cwr = true)) : 4 === C2.Twt ? ((c2 = new r2.Expression(2)).value = parseFloat(T2), c2.originalValue = T2) : 3 === C2.Twt ? (c2 = new r2.Expression(3)).value = T2 : 5 === C2.Twt ? (c2 = new r2.Expression(4)).value = z(T2) : 6 === C2.Twt ? (c2 = new r2.Expression(5)).value = r2.CalcError.parse(T2) : 7 === C2.Twt && ((c2 = new r2.Expression(8)).value = T2);
                else if (1 === A2) {
                  if (T2 === d) {
                    for (c2 = new r2.Expression(6), o3++, l2 = [[]], f2 = 0, g2 = 0, m2 = 0; o3 < i4.length && 2 !== i4[o3].Twt; ) {
                      if (C2 = i4[o3], o3 < i4.length - 1 && 4 === C2._type && "-" === C2.Awt && 4 === i4[o3 + 1].Twt && ((C2 = i4[++o3]).y4.unshift("-"), C2.Awt = "-" + C2.Awt), 3 === C2._type) {
                        if (C2.Awt === S) {
                          if (g2 !== m2) throw v.I5((0, r2.sR)().Exp_InvalidArrayColumns, [C2.lp]);
                          l2.push([]), f2++, m2 = 0;
                        }
                      } else {
                        if (0 !== C2._type || 4 !== C2.Twt && 3 !== C2.Twt && 5 !== C2.Twt && 6 !== C2.Twt) throw (0, r2.sR)().Exp_InvalidArray;
                        y2 = b2 = C2.Awt, 4 === C2.Twt ? y2 = parseFloat(b2) : 5 === C2.Twt ? y2 = "TRUE" === b2.toUpperCase() : 6 === C2.Twt && (y2 = r2.CalcError.parse(b2)), l2[f2].push(y2), 0 === f2 && g2++, m2++;
                      }
                      o3++;
                    }
                    if (g2 !== m2) throw v.I5((0, r2.sR)().Exp_InvalidArrayColumns, [C2.lp]);
                    return o3++, c2.value = new r2.CalcArray(l2), { expr: c2, index: o3 };
                  }
                  if (x2.length > 0) return "SINGLE" === T2 && (T2 = "@"), (c2 = new r2.Expression(7)).functionName = T2, "LET" !== T2 && "LAMBDA" !== T2 || (t6.nDt = true), w2 = t6.getFunction(c2.functionName) || r2.Functions.findGlobalFunction(c2.functionName), false === N2 && w2 && true === w2.isDynamicArrayFunction && (w2 = u), I2 && ((null === (s2 = I2.ayt) || void 0 === s2 ? void 0 : s2.iyt) || (I2.getCustomName(T2) ? w2 = null : w2 && G()), c2.source = I2), c2.function = w2, (h2 = e5.resolveSubTokens(t6, i4, o3 + 1, void 0, "@" === x2[0] && N2)) ? (c2.arguments = h2.exprs, { expr: c2, index: h2.index }) : (c2.arguments = [], c2);
                } else if (4 === A2) c2 = (0, r2.rbt)(n4.preOperaterTypesMap[T2], T2);
                else if (6 === A2 || 5 === A2) M2 = n4.operaterTypesMap[T2], "." === T2 && (M2 = 18), c2 = (0, r2.rbt)(M2, T2), C2.dHr && (c2.dHr = C2.dHr);
                else if (2 === A2) {
                  if (c2 = new r2.Expression(10), h2 = e5.resolveSubTokens(t6, i4, o3 + 1)) return c2.value = h2.exprs, { expr: c2, index: h2.index };
                  a2 && G();
                } else 3 === A2 && ((c2 = new r2.Expression(0)).value = T2);
                return I2 && c2 && (c2.source = I2, c2 = { expr: c2, index: o3 + 1 }), c2;
              }, e4.prototype.unparse = function(t6, n5, e5, i4) {
                var l2, h2, d2, p2, g2, m2, b2, y2, w2, C2, x2, A2, I2, k2 = this;
                if (3 === e5.type) i4.push('"'), i4.push(v.Vi(e5.value, '"', '""')), i4.push('"');
                else if (2 === e5.type) l2 = e5.originalValue || e5.value.toString(), "." !== M && (l2 = l2.replace(".", M)), i4.push(l2);
                else if (4 === e5.type) i4.push(e5.value ? (0, r2.getBoolean)().boolean_true : (0, r2.getBoolean)().boolean_false);
                else if (6 === e5.type) {
                  if (i4.push("{"), (h2 = e5.value).getRowCount() <= 0) throw (0, r2.sR)().Exp_InvalidArray;
                  for (d2 = 0, p2 = h2.getRowCount(); d2 < p2; d2++) for (d2 >= 1 && i4.push(S), g2 = 0, m2 = h2.getColumnCount(); g2 < m2; g2++) {
                    if (0 !== g2 && i4.push(T), (b2 = h2.getValue(d2, g2)) === u || b2 === s) throw (0, r2.sR)().Exp_InvalidArray;
                    (y2 = typeof b2) === c ? (i4.push('"'), i4.push(v.Vi(b2, '"', '""')), i4.push('"')) : y2 === f ? i4.push(b2 ? (0, r2.getBoolean)().boolean_true : (0, r2.getBoolean)().boolean_false) : "number" === y2 && "." !== M ? i4.push(b2.toString().replace(".", M)) : i4.push(b2.toString());
                  }
                  i4.push("}");
                } else if (5 === e5.type) i4.push(e5.value.toString());
                else if (9 === e5.type) k2.bDt(t6, n5, e5, i4);
                else if (10 === e5.type) i4.push("("), n5.q9t(t6, e5.value, i4), i4.push(")");
                else if (7 === e5.type) e5.source && ((w2 = this.unparseSource(t6, i4, e5.source, e5.endSource)) || i4.push("#", "R", "E", "F", "!")), "ANCHORARRAY" !== (C2 = (0, r2.isFunction)(e5.function) && e5.function.name || e5.functionName) || t6.lyt ? "@" !== C2 || t6.lyt ? !e5.functionName && (0, r2.isExpression)(e5.function) ? (k2.unparse(t6, n5, e5.function, i4), i4.push("("), k2.unparseArguments(t6, n5, e5, i4), i4.push(")")) : (e5.isLocalFunctionName && t6.lyt && (C2 = r2.XLPMPrefix + C2), "@" === C2 && (C2 = "SINGLE"), (A2 = (x2 = (0, r2.getMapping)() && (0, r2.getMapping)().builtInFunctionsMapping) && x2[C2]) && A2.alias && (C2 = A2.alias), tt(i4, C2.split("")), i4.push("("), k2.unparseArguments(t6, n5, e5, i4), i4.push(")")) : (t6.Eme || i4.push("@"), n5.q9t(t6, e5.arguments[0], i4)) : (n5.q9t(t6, e5.arguments[0], i4), i4.push("#"));
                else {
                  if (1 === e5.type || 8 === e5.type) return k2.unparseRefenceExpressions(t6, n5, e5, i4), true;
                  if (100 !== e5.type) return false;
                  I2 = e5.value, tt(i4, (I2 = t6.lyt ? (e5.Hve ? r2.XLOPPrefix : r2.XLPMPrefix) + I2 : e5.Hve ? o2 + I2 + a : I2).split(""));
                }
                return true;
              }, e4.prototype.unparseArguments = function(t6, n5, e5, i4) {
                for (var r3 = 0; r3 < e5.arguments.length; r3++) 0 !== r3 && i4.push(C), n5.q9t(t6, e5.arguments[r3], i4);
              }, e4.prototype.unparseSource = function(t6, n5, e5, i4) {
                if (t6.getExternalSourceToken) {
                  if (e5) {
                    var r3 = ft(t6, t6.getExternalSourceToken(e5).split(""), i4 && t6.getExternalSourceToken(i4).split(""));
                    if (!(r3.length > 0)) return false;
                    A.apply(n5, r3);
                  }
                  return n5.push("!"), true;
                }
                return false;
              }, e4.prototype.unparseRefenceExpressions = function(t6, n5, e5, i4) {
                var r3;
                if (e5.source && !this.unparseSource(t6, i4, e5.source, e5.endSource)) return void i4.push("#", "R", "E", "F", "!");
                8 === e5.type && i4.push(e5.value);
              }, e4.prototype.bDt = function(t6, e5, i4, o3) {
                var a2 = i4.operatorType;
                function u2(u3) {
                  e5.q9t(t6, i4.value, o3);
                  var s2 = n4.Z9t[a2];
                  16 === a2 && (s2 = C), u3 && (s2 = r2.TrimSymbol[u3]), o3.push(s2), e5.q9t(t6, i4.value2, o3);
                }
                2 === a2 ? (e5.q9t(t6, i4.value, o3), o3.push("%")) : 0 === a2 || 1 === a2 ? (o3.push(n4.Z9t[a2]), e5.q9t(t6, i4.value, o3)) : 18 === a2 ? (e5.q9t(t6, i4.value, o3), o3.push(n4.Z9t[a2]), i4.value2 && i4.value2.yDt ? o3.push(i4.value2.value) : e5.q9t(t6, i4.value2, o3)) : t6.lyt && i4.dHr ? (o3.push(n4.TrimSymbolText[i4.dHr], "("), u2(), o3.push(")")) : u2(i4.dHr);
              }, e4;
            })(k), n4.DefaultTokenResolver = F;
          }, "./src/calc.common.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt = this && this.qKr || (Ct = function(t5, n5) {
              return Ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, Ct(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              Ct(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), Mt = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            }, Ct;
            function St(t5) {
              return t5 && t5.toUpperCase();
            }
            function Tt(t5) {
              var n5, e4;
              if (t5) {
                if (7 === t5.type && ("SUBTOTAL" === t5.functionName || "AGGREGATE" === t5.functionName)) return true;
                for (n5 = t5.arguments && t5.arguments.length, e4 = 0; e4 < n5; e4++) if (Tt(t5.arguments[e4])) return true;
                if (Tt(t5.value) || Tt(t5.value2)) return true;
              }
              return false;
            }
            function xt(t5, n5) {
              var e4, i4 = t5 && t5.getCustomNameInfo && t5.getCustomNameInfo(n5);
              return !i4 && t5 && (i4 = (e4 = t5.op().getGlobalSourceModel()) && e4.getSource().getCustomNameInfo(n5)), i4;
            }
            function At(t5) {
              return 15 === t5 || 16 === t5 || 17 === t5;
            }
            function It(t5) {
              return t5.indexOf(n4.XLPMPrefix) > -1 && (t5 = t5.replace(/_xlpm\./g, "")), t5.indexOf(n4.XLOPPrefix) > -1 && (t5 = t5.replace(/_xlop\.([a-zA-Z0-9_]+)/g, "[$1]")), t5;
            }
            function kt(t5) {
              var n5 = String(t5 && t5.message);
              return "maximum call stack size exceeded" === (n5 = n5.toLowerCase()) || "too much recursion" === n5 || "out of stack space" === n5;
            }
            function Nt() {
              var t5, e4, r3, o3, a2, u2, s2, c2, f2;
              n4.fKr = n4.lKr;
              try {
                if ((t5 = i3.Common.CultureManager.getCultureInfo()).equalCharacters && t5.equalCharacters.length > 0) {
                  for (e4 = {}, r3 = "", o3 = 0, a2 = t5.equalCharacters; o3 < a2.length; o3++) for (s2 = (u2 = a2[o3])[0], c2 = 1; c2 < u2.length; c2++) N.qT("[a-zA-Z]").test(u2[c2]) ? r3 += u2[c2] : r3 += "\\" + u2[c2], e4[u2[c2]] = s2;
                  r3.length > 0 && (f2 = N.qT("[" + r3 + "]"), n4.fKr = function() {
                    var t6, n5, i4 = this;
                    if (f2.lastIndex = 0, f2.test(i4)) {
                      for (t6 = "", n5 = 0; n5 < i4.length; n5++) t6 += e4[i4[n5]] || i4[n5];
                      return t6.toLowerCase();
                    }
                    return i4.toLowerCase();
                  }, J = function(t6) {
                    var n5, i4;
                    if (f2.lastIndex = 0, f2.test(t6)) {
                      for (n5 = "", i4 = 0; i4 < t6.length; i4++) n5 += e4[t6[i4]] || t6[i4];
                      return n5;
                    }
                    return t6;
                  });
                }
              } catch (t6) {
              }
            }
            function jt(t5) {
              return isNaN(t5) || !isFinite(t5);
            }
            function Dt(t5, n5) {
              return -1 !== t5.indexOf(n5) && t5.indexOf(n5) === t5.lastIndexOf(n5);
            }
            function _t(t5, n5) {
              var e4, i4 = Number(n5);
              return !(t5 > 12 || 0 === t5 || 3 === n5.length || 4 === n5.length && i4 < 1900) && (i4 > (e4 = mt.Pkt(R, t5 - 1)) ? (i4 < 30 ? "20" : "19") + i4 + "/" + t5 + "/1" : R + "/" + t5 + "/" + i4);
            }
            function Ot(t5, n5) {
              var e4, r3, o3, a2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, j2, D2, O2, E2 = typeof t5;
              if (E2 === u) return n5.value = t5, true;
              try {
                if (E2 === s) {
                  if (/[\f\n\r\t\v]/.test(t5)) return false;
                  if (r3 = t5, 0 === (t5 = t5.trim()).length) return false;
                  if (a2 = (o3 = i3.Common.CultureManager.Fe().NumberFormat).numberDecimalSeparator, f2 = o3.numberGroupSeparator, "." !== a2 && "." !== f2 && t5.indexOf(".") >= 0 || "," !== a2 && "," !== f2 && t5.indexOf(",") >= 0) return false;
                  if (l2 = false, h2 = false, d2 = t5[0], v2 = t5[t5.length - 1], "(" === t5[0] && ")" === v2) {
                    if (h2 = true, "+" === (d2 = (t5 = t5.substring(1, t5.length - 1).trim())[0]) || "-" === d2) return false;
                    v2 = t5[t5.length - 1];
                  }
                  if ("%" === d2 ? (l2 = true, t5 = t5.substring(1)) : "%" === v2 ? (l2 = true, t5 = t5.substring(0, t5.length - 1)) : "$" === d2 && (t5 = t5.substring(1)), "" === t5) return false;
                  if (t5.indexOf(f2) >= 0 && (p2 = N.qT("^\\ *[\\+|\\-]?\\ *\\d+(\\" + f2 + "\\d{3,})+(\\" + a2 + "\\d*)?([E|e][\\+|\\-]?\\d+)?\\ *$"), g2 = N.qT("^0+\\" + f2), p2.test(t5) && !g2.test(t5) && (t5 = t5.replace(N.qT("[ \\" + f2 + "]"), ""))), " " === (t5 = t5.trim())[1] && ("+" === t5[0] ? t5 = t5.replace(/^\+ +/, "+") : "-" === t5[0] && (t5 = t5.replace(/^\- +/, "-"))), "." !== a2 && (t5 = t5.replace(a2, ".")), t5.indexOf(a2) !== t5.lastIndexOf(a2)) return false;
                  if (t5.length >= 2 && "0" === t5[0] && "x" === t5[1]) return false;
                  if (e4 = Number(t5).valueOf(), l2 && (e4 /= 100), h2 && (e4 = -e4), jt(e4)) {
                    if (t5 = r3.trim(), b2 = (m2 = i3.Common.CultureManager.getCultureInfo()) && m2.DateTimeFormat && m2.DateTimeFormat.shortDatePattern, (y2 = m2 && m2.normalizeDateTimeString && m2.normalizeDateTimeString(t5)) && (t5 = y2), t5 = t5.replace(N.qT("[ ]*([/\\-: ])[ ]*"), "$1"), b2 && b2.indexOf("d") < b2.indexOf("M")) e4 = i3.Common.ct.yU(t5);
                    else {
                      if (w2 = void 0, M2 = void 0, t5.indexOf(":") > 0) {
                        if (Dt(t5, ":") && N.qT("([0-2]?[0-9]):[0-5]?[0-9]\\.[0-9]*").test(t5) && (t5 = t5.replace(N.qT("([0-2]?[0-9]):"), "00:$1:")), C2 = N.OJ("^(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)|(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)$"), 1 !== (S2 = t5.match(C2)).length) return false;
                        if (w2 = S2[0], N.OJ("\\.\\s+[AP]M").test(w2)) return false;
                        if (w2.endsWith(".") && (w2 += "0"), 0 === (t5 = t5.replace(C2, "")).length) M2 = "1899/12/30 " + w2;
                        else {
                          if (" " !== t5[0] && " " !== t5[t5.length - 1]) return false;
                          t5 = t5.trim();
                        }
                      }
                      if (!M2) {
                        if (T2 = true, N.qT("^[0-9]{1,2}[-/]([0-9]{4}|0)$").test(t5)) M2 = t5.replace(/[-/]/, "/1/");
                        else if (N.OJ("^(((".concat(rt, ")[\\s-/]?[0-9]{4}))$")).test(t5)) M2 = "1" + t5.replace(/[-/]/, "");
                        else if (N.OJ("^(([0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}))$").test(t5)) {
                          if (x2 = t5.split(/(\/|\-)/), !(t5 = _t(A2 = Number(x2[0]), I2 = x2[2]))) return;
                          M2 = t5;
                        } else if (N.OJ("^((".concat(rt, ")[/-\\s]?[0-9]{1,2})$")).test(t5)) {
                          if (k2 = t5.match(N.OJ("^(".concat(rt, ")")))[0], A2 = ot[k2.substring(0, 3).toUpperCase()], I2 = t5.match(N.OJ("\\d+"))[0], !(t5 = _t(A2, I2))) return;
                          M2 = t5;
                        } else N.OJ("^([0-9]{1,2}[/-\\s]?(".concat(rt, "))$")).test(t5) ? (T2 = false, M2 = t5.replace(/[-/\s]/, "") + R) : N.OJ("^(([0-9]{4}/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}/[0-9]{4})|([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}-[0-9]{1,2}-[0-9]{4})|([0-9]{1,2}-(".concat(rt, ")-[0-9]{4})|([0-9]{1,2}/(").concat(rt, ")/[0-9]{4})|([0-9]{1,2}\\s+(").concat(rt, ")\\s+[0-9]{4}))$")).test(t5) ? M2 = t5 : N.OJ("^(((0?[1-9]|10|11|12)-[0-9]{1,2}-[0-9]{1,2})|((0?[1-9]|10|11|12)/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/(".concat(rt, ")/[0-9]{1,2})|([0-9]{1,2}-(").concat(rt, ")-[0-9]{1,2})|([0-9]{1,2}\\s+(").concat(rt, ")\\s+[0-9]{1,2}))$")).test(t5) ? (D2 = +(j2 = t5.split(/[-/\s]/))[2], j2[2] = D2 < 30 ? D2 + 2e3 : D2 + 1900, M2 = j2.join("/")) : N.OJ("^(([0-9]{1,2}(".concat(rt, ")\\s?[0-9]))$")).test(t5) ? (O2 = t5.length, M2 = t5.substr(0, O2 - 1) + "200" + t5[O2 - 1]) : N.OJ("^(([0-9]{1,2}(".concat(rt, ")\\s?[0-9]{2}))$")).test(t5) && (O2 = t5.length, D2 = +t5.substr(O2 - 2), M2 = t5.substr(0, O2 - 2) + (D2 < 30 ? 20 : 19) + D2);
                        if (M2 = M2 + " " + (w2 || "00:00:00"), T2 && " " === r3[0]) return false;
                      }
                      if (!M2) return false;
                      e4 = new Date(M2);
                    }
                    if (jt(e4.valueOf())) return false;
                    if ((e4 = _.o0(e4)) < 0) return false;
                  }
                } else {
                  if (!t5) return n5.value = 0, true;
                  if (E2 === c) e4 = t5 ? 1 : 0;
                  else {
                    if (!(t5 instanceof Date)) return false;
                    e4 = _.o0(t5);
                  }
                }
              } catch (t6) {
                return false;
              }
              return n5.value = e4, true;
            }
            function Et(t5) {
              var e4 = { value: 0 };
              if (Ot(t5, e4)) return e4.value;
              throw (0, n4.sR)().Exp_InvalidCast;
            }
            function Rt(t5, n5) {
              return n5 && (t5 === G || t5 === U || typeof t5 === s && "" === t5.trim());
            }
            function Lt(t5, n5) {
              try {
                if (t5) if (typeof t5 === c) ;
                else if (t5 instanceof Date) t5 = 0 !== _.o0(t5);
                else {
                  if (!Bt(t5)) return false;
                  t5 = 0 !== t5;
                }
                else t5 = false;
              } catch (t6) {
                return false;
              }
              return n5.value = t5, true;
            }
            function Ft(t5, n5, e4, r3, o3) {
              var a2, f2, l2;
              if (Pt(t5)) return t5;
              if (a2 = { value: G }, f2 = K, 0 !== n5 && Rt(t5, r3)) return f2;
              switch (n5) {
                case 1:
                case 5:
                  if (e4 && 5 !== n5) {
                    if (typeof t5 === c && o3) return f2;
                    t5 = Ot(t5, a2) ? a2.value : f2;
                  } else typeof t5 === u || (t5 = t5 instanceof Date ? _.o0(t5) : f2);
                  break;
                case 11:
                  t5 = Ot(t5, a2) ? a2.value : f2;
                  break;
                case 4:
                  typeof t5 === s ? t5 = (l2 = i3.Common.ct.yU(t5)) !== U && l2 !== G ? _.o0(l2) : Ot(t5, a2) ? a2.value : f2 : e4 ? t5 = Ot(t5, a2) ? a2.value : f2 : typeof t5 === u || t5 instanceof Date || (t5 = f2);
                  break;
                case 3:
                  e4 ? t5 = Ot(t5, a2) ? a2.value : f2 : typeof t5 !== c && (t5 = f2);
                  break;
                case 2:
                  t5 = t5 === G || t5 === U ? "" : t5.toString();
              }
              return t5;
            }
            function Bt(t5, n5) {
              var e4 = typeof t5;
              return e4 === u || e4 === h && t5 instanceof Date || !n5 && (e4 === c || !isNaN(t5) && !isNaN(parseFloat(t5)) && !T.Nh(t5));
            }
            function Pt(t5) {
              return t5 instanceof X;
            }
            function Gt(t5) {
              return t5 instanceof at;
            }
            function Ut(t5) {
              return t5 instanceof ht;
            }
            function Ht(t5, n5, e4) {
              var i4 = new lt(5);
              return n5 && (i4.source = n5), e4 && (i4.endSource = e4), i4.value = t5, i4;
            }
            function Vt(t5, n5, e4, i4) {
              var r3 = new lt(7);
              return r3.arguments = n5, t5 instanceof lt ? (r3.function = t5.function, r3.functionName = t5.functionName, r3.source = t5.source, e4 === U && (e4 = t5.lit), e4 === U && (i4 = t5.ywt)) : (r3.function = t5.name && t5, r3.functionName = t5.name || t5), n5 && n5.length > 0 && i4 === U && (i4 = n5[n5.length - 1].ywt), qt(r3, e4, i4), r3;
            }
            function zt(t5, n5, e4, i4) {
              var r3 = new lt(7);
              return r3.arguments = n5, r3.function = t5, qt(r3, e4, i4), r3;
            }
            function Yt(t5, n5) {
              var e4 = new lt(12);
              return e4.value = t5, e4.needExpendIndexs = n5, e4;
            }
            function Zt(t5, n5, e4, i4, r3) {
              var o3 = new lt(9);
              return o3.operatorType = t5, o3.value = n5, 18 === t5 && e4 && e4.hDt && ((e4 = Kt(e4.hDt, e4.lit, e4.ywt)).yDt = true), o3.value2 = e4, i4 === U && fn(n5) && (i4 = n5.lit), r3 === U && (fn(e4) ? r3 = e4.ywt : fn(n5) && (r3 = n5.ywt)), qt(o3, i4, r3), o3;
            }
            function Wt(t5) {
              var n5 = new lt(10);
              return n5.value = t5, n5;
            }
            function Qt(t5, n5) {
              var e4 = new lt(11);
              return qt(e4, t5, n5), e4;
            }
            function Kt(t5, n5, e4) {
              var i4 = new lt(3);
              return i4.value = t5, qt(i4, n5, e4), i4;
            }
            function Jt(t5) {
              var n5 = new lt(2);
              return n5.value = t5, n5;
            }
            function Xt(t5) {
              var n5 = new lt(4);
              return n5.value = t5, n5;
            }
            function qt(t5, n5, e4) {
              n5 !== U && (t5.lit = n5), e4 !== U && (t5.ywt = e4);
            }
            function $t(t5, n5) {
              return t5.charAt(n5);
            }
            function tn(t5, n5) {
              for (var e4 = t5.length, i4 = false; n5 < e4 && !isNaN(+$t(t5, n5)); ) n5++, i4 = true;
              for (n5 < e4 && "." === $t(t5, n5) && n5++; n5 < e4 && !isNaN(+$t(t5, n5)); ) n5++, i4 = true;
              if (n5 < e4 && ("E" === $t(t5, n5) || "e" === $t(t5, n5))) for (i4 = false, ++n5 < e4 && ("+" === $t(t5, n5) || "-" === $t(t5, n5)) && n5++; n5 < e4 && !isNaN(+$t(t5, n5)); ) n5++, i4 = true;
              return { TDt: i4, lp: n5 };
            }
            function nn(t5) {
              return "string" == typeof t5;
            }
            function en(t5, e4) {
              if (!t5 || 8 === t5.type && t5.value.indexOf("'") >= 0) throw (0, n4.sR)().Exp_FormulaInvalid;
            }
            function rn(t5, n5, e4, i4) {
              return { row: t5, col: n5, rowCount: e4, colCount: i4 };
            }
            function on(t5, e4, r3) {
              var o3, a2;
              try {
                o3 = (a2 = i3.Common.CultureManager.getCultureInfo()).localeCompare ? r3 ? a2.localeCompare(t5, e4) : a2.localeCompare(n4.fKr.apply(t5), n4.fKr.apply(e4)) : r3 ? bt(t5, e4) : bt(n4.fKr.apply(t5), n4.fKr.apply(e4));
              } catch (i4) {
                o3 = r3 ? bt(t5, e4) : bt(n4.fKr.apply(t5), n4.fKr.apply(e4));
              }
              return o3;
            }
            function an(t5, n5, e4) {
              var i4, r3, o3, a2, u2, f2, l2, h2, d2, v2;
              if (void 0 === e4 && (e4 = true), Pt(t5)) return t5;
              if (Pt(n5)) return n5;
              if (o3 = typeof n5 === c, (r3 = typeof t5 === c) || o3) i4 = r3 && o3 ? t5 === n5 ? 0 : t5 > n5 ? 1 : -1 : r3 ? 1 : -1;
              else {
                if (u2 = typeof n5 === s, l2 = (f2 = (a2 = typeof t5 === s) || u2) ? "" : 0, t5 = t5 === G || t5 === U ? l2 : t5, n5 = n5 === G || n5 === U ? l2 : n5, h2 = function() {
                  return t5 === n5 ? 0 : a2 && u2 ? on(t5, n5, e4) : a2 ? 1 : u2 ? -1 : (t5 = E.E8(t5, 15), n5 = E.E8(n5, 15), t5 - n5);
                }, !f2) {
                  if (v2 = { value: 0 }, !Ot(t5, d2 = { value: 0 }) || !Ot(n5, v2)) return q;
                  t5 = d2.value, n5 = v2.value;
                }
                i4 = h2();
              }
              return i4;
            }
            function un(t5, n5, e4, i4, r3, o3, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2 = false;
              for (l2 = i4; l2 <= o3; l2++) {
                for (h2 = r3; h2 <= a2; h2++) if (!A(e4(l2, h2))) {
                  u2 = c2 = l2, s2 = h2, f2 = h2, v2 = true;
                  break;
                }
                if (v2) break;
              }
              if (A(u2)) return $;
              if (1 !== t5 && 3 !== t5 && (d2 = i4, i4 = u2, u2 = d2), 1 === n5 || 3 === n5) for (v2 = false, h2 = r3; h2 < s2; h2++) {
                for (l2 = o3; l2 >= i4; l2--) if (!A(e4(l2, h2))) {
                  c2 = l2, s2 = r3 = h2, v2 = true;
                  break;
                }
                if (v2) break;
              }
              else s2 = r3;
              if (2 === n5 || 3 === n5) for (v2 = false, h2 = a2; h2 > f2; h2--) {
                for (l2 = o3; l2 >= i4; l2--) if (!A(e4(l2, h2))) {
                  c2 = Math.max(c2, l2), f2 = a2 = h2, v2 = true;
                  break;
                }
                if (v2) break;
              }
              else f2 = a2;
              if (2 === t5 || 3 === t5) for (v2 = false, l2 = o3; l2 > c2; l2--) {
                for (h2 = r3; h2 <= a2; h2++) if (!A(e4(l2, h2))) {
                  c2 = l2, v2 = true;
                  break;
                }
                if (v2) break;
              }
              else c2 = o3;
              return { row: u2, endRow: c2, col: s2, endCol: f2 };
            }
            function sn(t5) {
              return t5 instanceof mt.Function;
            }
            function cn(t5) {
              return t5 instanceof mt.LambdaFunction;
            }
            function fn(t5) {
              return t5 instanceof lt;
            }
            function ln(t5, n5) {
              return !sn(t5) || t5.acceptsArray(n5);
            }
            function hn(t5, n5) {
              return !sn(t5) || t5.acceptsReference(n5);
            }
            function dn(t5) {
              return t5 && t5.arrayArgumentEvaluateMode;
            }
            function vn(t5, n5) {
              return { row: t5, col: n5 };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addStartEndIndexToExpression = n4.createBooleanExpression = n4.createNumberExpression = n4.createStringExpression = n4.Lde = n4.Ayt = n4.rbt = n4.createExpandExpression = n4.lDt = n4.YJ = n4.kyt = n4.Syt = n4.CalcSource = n4.CalcReference = n4.Expression = n4.ExpressionType = n4.Convert = n4.LE = n4.BJ = n4.TwoDimensionalCalcArray = n4.CalcArray = n4.Nbt = n4.errors = n4.CalcError = n4.usedbcs = n4.hKr = n4.fKr = n4.lKr = n4.getErrorList = n4.getBoolean = n4.getMapping = n4.sR = n4.isStackOverflowError = n4.zve = n4.gDt = n4.W9t = n4.MAX_COLUMN_COUNT = n4.MAX_ROW_COUNT = n4.BAND_INDEX_CONST = n4.TrimSymbol = n4.XLETAPrefix = n4.XLOPPrefix = n4.XLPMPrefix = n4.ErrorCodeList = n4.SR = n4.CALC_PROGRESS_EVENT = n4.TimeoutPaintDelay = n4.TimeoutTime = n4.TimeoutNodes = n4.ExcelCompatibleCalcMode = void 0, n4._9t = n4.missingArgument = n4.Errors = n4.Functions = n4.ErrorSource = n4.getFunctionArrayArgumentEvaluateMode = n4.getFunctionAcceptsReference = n4.getFunctionAcceptsArray = n4.isExpression = n4.isLambdaFunction = n4.isFunction = n4.GYr = n4.$kt = n4.Wkt = n4.createRange = n4.LocalScopes = n4.sDt = n4.charAtFunc = n4.skt = void 0, i3 = e3("Common"), r2 = e3("./src/calcEngine.res.en.ts"), o2 = e3("./src/text_Filter/text_Filter.ts"), Object.defineProperty(n4, "_9t", { enumerable: true, get: function() {
              return o2._9t;
            } }), a = e3("./src/map.ts"), n4.ExcelCompatibleCalcMode = false, n4.TimeoutNodes = 3, n4.TimeoutTime = 500, n4.TimeoutPaintDelay = 0, n4.CALC_PROGRESS_EVENT = "CalculationProgress", n4.SR = { en: r2.resource }, n4.ErrorCodeList = [0, 7, 15, 23, 29, 42, 36, 99, 100], n4.XLPMPrefix = "_xlpm.", n4.XLOPPrefix = "_xlop.", n4.XLETAPrefix = "_xleta.", n4.TrimSymbol = { 1: ".:", 2: ":.", 3: ".:." }, u = "number", s = "string", c = "boolean", f = "TRUE", l = "FALSE", h = "object", d = "#NULL!", v = "#DIV/0!", p = "#VALUE!", g = "#REF!", m = "#NAME?", b = "#N/A", y = "#NUM!", w = "#SPILL!", M = "#CALC!", C = 1, S = 2, n4.BAND_INDEX_CONST = -2147483648, n4.MAX_ROW_COUNT = 1048576, n4.MAX_COLUMN_COUNT = 16384, T = i3.Common.lt, x = T.Nh, A = T.ht, I = T.Rh, k = i3.Common.Uf.tR, N = i3.Common.$T, j = parseInt, D = isNaN, _ = i3.Common.ct, O = _.o0, E = i3.Common.st, R = (/* @__PURE__ */ new Date()).getFullYear(), n4.W9t = xt, n4.gDt = At, n4.zve = It, n4.isStackOverflowError = kt, L = new i3.Common.ResourceManager(n4.SR, "CalcEngine"), n4.sR = L.getResource.bind(L), F = function() {
              return mt && mt.resourceMapping;
            }, n4.getMapping = F, B = function() {
              var t5 = (0, n4.getMapping)() && (0, n4.getMapping)().booleanMapping;
              return { boolean_true: t5 && t5.boolean_true || f, boolean_false: t5 && t5.boolean_false || l };
            }, n4.getBoolean = B, P = function() {
              var t5 = [], e4 = (0, n4.getMapping)() && (0, n4.getMapping)().clacErrorMapping, i4 = [d, v, p, g, m, b, y, w, M];
              return i4.forEach((function(n5) {
                var i5 = e4 && e4[n5];
                t5.push(i5 || n5);
              })), t5;
            }, n4.getErrorList = P, G = null, U = void 0, H = Math.abs, V = Math.exp, z = Math.log, Y = Math.pow, Z = Math.floor, W = Math.ceil, n4.missingArgument = Q, K = {}, n4.lKr = String.prototype.toLowerCase, n4.fKr = n4.lKr, n4.hKr = Nt, X = (function() {
              function t5(e4, i4) {
                if (A(i4)) {
                  var r3 = t5.CDt(e4);
                  if (!r3) throw (0, n4.sR)().Exp_NotSupported;
                  this._error = r3.error, this._code = r3.code;
                } else this._error = e4, this._code = i4;
              }
              return t5.prototype.toString = function() {
                var t6 = (0, n4.getMapping)() && (0, n4.getMapping)().clacErrorMapping, e4 = t6 && t6[this._error];
                return e4 || this._error;
              }, t5.prototype.clone = function() {
                return new t5(this._error);
              }, t5.prototype.toJSON = function() {
                return { _calcError: this._error, _code: this._code };
              }, t5.parse = function(n5) {
                var e4 = t5.CDt(n5);
                return e4 ? new t5(e4.error, e4.code) : U;
              }, t5.ibt = function(e4) {
                for (var i4 = 0; i4 < n4.ErrorCodeList.length; i4++) if (e4 === n4.ErrorCodeList[i4]) return new t5((0, n4.getErrorList)()[i4], e4);
                return U;
              }, t5.CDt = function(t6) {
                var e4, i4, r3;
                if (t6) {
                  for (e4 = (0, n4.getErrorList)(), i4 = 0; i4 < e4.length; i4++) if ((r3 = e4[i4]) === t6 || r3 === St(t6)) return { error: r3, code: n4.ErrorCodeList[i4] };
                }
                return U;
              }, t5;
            })(), n4.CalcError = X, n4.errors = { Name: new X(m), Null: new X(d), DivideByZero: new X(v), NotAvailable: new X(b), Value: new X(p), Reference: new X(g), Number: new X(y), Spill: new X(w), Calc: new X(M) }, n4.Errors = n4.errors, q = n4.errors.Value, $ = n4.errors.Reference, tt = n4.errors.Number, nt = n4.errors.DivideByZero, et = n4.errors.NotAvailable, it = n4.errors.Null, rt = "January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec", ot = { JAN: 1, FEB: 2, MAR: 3, APR: 4, MAY: 5, JUN: 6, JUL: 7, AUG: 8, SEP: 9, OCT: 10, NOV: 11, DEC: 12 }, n4.Nbt = Ft, at = (function() {
              function t5(t6, n5) {
                this.array = t6, this.referenceInTwoDimension = n5;
              }
              return t5.prototype.getRowCount = function() {
                return this.array.length;
              }, t5.prototype.getColumnCount = function() {
                var t6 = this.array[0];
                return t6 && t6.length || 0;
              }, t5.prototype.getValue = function(t6, n5) {
                var e4, i4 = this.array, r3 = t6;
                return "number" != typeof n5 && (r3 = (e4 = t6).row, n5 = e4.column), r3 < 0 || n5 < 0 || r3 >= i4.length || n5 >= i4[0].length ? q : this.array[r3][n5];
              }, t5.prototype.getValueByIndex = function(t6) {
                var n5 = this.getColumnCount(), e4 = Z(t6 / n5), i4 = t6 % n5;
                return this.getValue(e4, i4);
              }, t5.prototype._Dt = function() {
                var t6, n5, e4, i4 = this, r3 = 0, o3 = 0;
                if (r3 = i4.getRowCount()) for (o3 = i4.getColumnCount(), t6 = 0; t6 < r3; t6++) for (n5 = 0; n5 < o3; n5++) Ut(e4 = this.array[t6][n5]) && (this.array[t6][n5] = e4.getValueByIndex(0));
              }, t5.prototype.forEachItem = function(t6) {
                this.array.forEach((function(n5, e4) {
                  n5.forEach((function(n6, i4) {
                    t6(n6, e4, i4);
                  }));
                }));
              }, t5.prototype.toArray = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2, v2, p2;
                if (void 0 === n5 && (n5 = true), s2 = 0, c2 = 0, f2 = [], d2 = K, s2 = (u2 = this).getRowCount()) for (c2 = u2.getColumnCount(), v2 = 0; v2 < s2; v2++) for (n5 || (h2 = [], f2.push(h2)), p2 = 0; p2 < c2; p2++) {
                  if (l2 = u2.getValue(v2, p2), u2.referenceInTwoDimension && Ut(l2) ? l2 = l2.getValueByIndex(0) : Gt(l2) && (l2 = l2.getValue(0, 0)), e4 && Pt(l2)) return (f2 = [l2]).isError = true, f2;
                  if (l2 = Ft(l2, t6, false, o3), i4 && l2 === d2) return (f2 = [l2]).isConvertError = true, f2;
                  n5 ? f2.push(l2) : h2.push(l2);
                }
                return f2.rowCount = s2, f2.colCount = c2, f2.rangeCount = 1, f2;
              }, t5.prototype.slice = function(n5, e4, i4, r3) {
                var o3, a2, u2, s2 = this, c2 = s2.array, f2 = [];
                for (e4 = e4 < 0 ? 0 : e4, i4 = (n5 = n5 < 0 ? 0 : n5) + i4 > s2.getRowCount() ? s2.getRowCount() - n5 : i4, r3 = e4 + r3 > s2.getColumnCount() ? s2.getColumnCount() - e4 : r3, a2 = 0; a2 < i4; a2++) for (o3 = [], f2.push(o3), u2 = 0; u2 < r3; u2++) o3.push(c2[a2 + n5][u2 + e4]);
                return new t5(f2);
              }, t5;
            })(), n4.CalcArray = at, ut = (function(t5) {
              function n5() {
                return null !== t5 && t5.apply(this, arguments) || this;
              }
              return wt(n5, t5), n5.prototype.getCalculatedValue = function(t6) {
                var n6, e4 = this.array[0];
                return 1 === e4.length ? e4[0] : "number" != typeof e4[0] || 18 === t6 ? Mt([], e4, true) : (n6 = 0, e4.forEach((function(t7) {
                  "number" == typeof t7 && (n6 += t7);
                })), n6);
              }, n5.prototype.getActualValue = function() {
                return 1 === this.array[0].length ? this.array[0][0] : Mt([], this.array[0], true);
              }, n5;
            })(at), n4.TwoDimensionalCalcArray = ut, n4.BJ = Pt, n4.LE = Ut, st = ["o", "n", "s", "b", "d"], ct = (function() {
              function t5() {
              }
              return t5.Sft = function(t6) {
                return Pt(t6) && t6._code === n4.ErrorCodeList[5];
              }, t5.L6t = function(t6) {
                return isNaN(t6) || !isFinite(t6) ? tt : t6;
              }, t5.iV = function(n5, e4, i4, r3, o3, a2, u2, s2) {
                var c2, f2, l2;
                if (n5 && n5.length && n5.rowCount && n5.colCount) return n5;
                if (Gt(n5)) (c2 = n5.toArray(e4, i4, r3, o3, a2)).isArray = true;
                else if (Ut(n5)) (c2 = n5.toArray(e4, i4, r3, o3, a2, u2, s2)).isReference = true;
                else if (x(n5)) {
                  if (c2 = [], 0 === n5.length) return c2;
                  if (x(n5[0])) return t5.EDt(n5, e4, true);
                  for (f2 = 0; f2 < n5.length; f2++) (l2 = Ft(n5[f2], e4, false)) === t5.CalcConvertedError && (c2.isConvertError = true), c2.push(l2);
                  c2.rowCount = 1, c2.colCount = n5.length, c2.rangeCount = 1;
                } else n5 = Ft(n5, e4, true, a2), r3 && t5.BJ(n5) ? (c2 = [q]).isError = true : n5 === t5.CalcConvertedError ? (c2 = [t5.CalcConvertedError]).isConvertError = true : i4 ? (c2 = []).push(n5) : (c2 = [[]])[0].push(n5), c2.rowCount = 1, c2.colCount = 1, c2.rangeCount = 1;
                return c2;
              }, t5.EDt = function(n5, e4, i4) {
                var r3, o3, a2, s2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
                if (!n5 || !n5.length || !n5[0].length) return (r3 = []).isError = true, [[q]];
                if (0 === e4) return n5;
                if (o3 = st[e4], a2 = n5.length, s2 = n5[0].length, d2 = { value: G }, v2 = false, p2 = false, g2 = t5.CalcConvertedError, !(r3 = n5[o3])) for (r3 = [], n5[o3] = r3, m2 = 0; m2 < a2; m2++) for (f2 = n5[m2], l2 = r3[m2] = [], b2 = 0; b2 < s2; b2++) if (Pt(h2 = f2[b2])) v2 || (r3.isError = true, v2 = true), l2.push(h2);
                else {
                  switch (e4) {
                    case 1:
                    case 5:
                      i4 && 5 !== e4 ? Ot(h2, d2) ? h2 = d2.value : (p2 || (p2 = true, r3.isConvertError = true), h2 = 0) : typeof h2 === u || h2 instanceof Date || (p2 || (p2 = true, r3.isConvertError = true), h2 = g2);
                      break;
                    case 3:
                      i4 ? Lt(h2, d2) ? h2 = d2.value : (p2 || (p2 = true, r3.isConvertError = true), h2 = false) : typeof h2 !== c && (p2 || (p2 = true, r3.isConvertError = true), h2 = g2);
                      break;
                    case 2:
                      h2 = h2 === G || h2 === U ? "" : h2.toString();
                  }
                  l2.push(h2);
                }
                return r3;
              }, t5.z6t = function(t6) {
                var e4 = Et(t6);
                if (H(e4) < 1e21) return parseInt(e4.toString(), 10);
                throw (0, n4.sR)().Exp_InvalidCast;
              }, t5.t9t = function(t6, n5) {
                return "" !== t6 && (!!Ot(t6, n5) && (H(n5.value) < 1e21 && (n5.value = parseInt(n5.value.toString(), 10), true)));
                var e4;
              }, t5.U6t = function(e4) {
                if (!e4) return false;
                if (typeof e4 === c) return e4;
                if (e4 instanceof Date) return 0 !== _.o0(e4);
                if (t5.q8(e4)) return 0 !== e4;
                if (t5.BJ(e4)) return false;
                throw (0, n4.sR)().Exp_InvalidCast;
              }, t5.j = function(t6) {
                var e4, i4, r3, o3, a2, h2;
                try {
                  if (t6 === U || t6 === G) return "";
                  if (typeof t6 === c) return t6 ? f : l;
                  if (typeof t6 === s) return t6;
                  if (t6 instanceof Date) return _.o0(t6).toString();
                  if (Gt(t6)) throw (0, n4.sR)().Exp_InvalidCast;
                  if (typeof t6 === u) {
                    if (e4 = "", t6 < 0 && (e4 = "-", t6 = -t6), -1 === (r3 = (i4 = E.E8(t6, mt.CALC_PRECISION || 15)).toString()).indexOf("e") && r3.length > 20 && (r3 = i4.toExponential()), -1 !== (o3 = r3.indexOf("e-"))) {
                      if (a2 = +r3.substring(o3 + 2), (h2 = -1 === r3.indexOf(".") ? 1 : o3 - 1) + a2 < 20) return e4 + t6.toFixed(h2 + a2 - 1);
                      a2 < 10 && (r3 = r3.replace("e-", "e-0"));
                    }
                    return e4 + r3.toUpperCase();
                  }
                  return t6.toString();
                } catch (t7) {
                  throw (0, n4.sR)().Exp_InvalidCast;
                }
              }, t5.r0 = function(e4) {
                var i4 = { value: G };
                if (t5.kDt(e4, i4)) return i4.value;
                throw (0, n4.sR)().Exp_InvalidCast;
              }, t5.kDt = function(t6, n5) {
                var e4, r3, o3;
                return typeof t6 === s && (e4 = i3.Common.ct.yU(t6)) ? (n5.value = e4, true) : ((o3 = Ot(t6, r3 = { value: G })) && (n5.value = i3.Common.ct.Y0(r3.value)), o3);
              }, t5.CalcConvertedError = K, t5.Nh = Gt, t5.q8 = Bt, t5.BJ = Pt, t5.LE = Ut, t5.Nbt = Ft, t5.Ybt = Rt, t5.jDt = jt, t5.uJ = Et, t5.sJ = Ot, t5.YK = Lt, t5;
            })(), n4.Convert = ct, (function(t5) {
              t5[t5.unknow = 0] = "unknow", t5[t5.reference = 1] = "reference", t5[t5.number = 2] = "number", t5[t5.string = 3] = "string", t5[t5.boolean = 4] = "boolean", t5[t5.error = 5] = "error", t5[t5.array = 6] = "array", t5[t5.function = 7] = "function", t5[t5.name = 8] = "name", t5[t5.operator = 9] = "operator", t5[t5.parentheses = 10] = "parentheses", t5[t5.missingArgument = 11] = "missingArgument", t5[t5.expand = 12] = "expand", t5[t5.structReference = 13] = "structReference", t5[t5.field = 14] = "field", t5[t5.fieldItem = 15] = "fieldItem", t5[t5.tableSheetReference = 22] = "tableSheetReference", t5[t5.nameIdentity = 25] = "nameIdentity", t5[t5.externalNameIdentity = 26] = "externalNameIdentity", t5[t5.LocalName = 100] = "LocalName";
            })(ft = n4.ExpressionType || (n4.ExpressionType = {})), lt = (function() {
              function t5(t6) {
                this.type = t6;
              }
              return t5.prototype.hmt = function() {
                return G;
              }, t5.prototype.offset = function(t6, n5, e4, i4, r3) {
                return G;
              }, t5.prototype.offsetWhenCopy = function(t6, n5, e4, i4, r3, o3, a2, u2, s2, c2) {
                return G;
              }, t5.prototype.getRange = function(t6, n5) {
                var e4, i4 = [];
                for (e4 = 2; e4 < arguments.length; e4++) i4[e4 - 2] = arguments[e4];
                return G;
              }, t5.prototype.forEachNodes = function(t6) {
                t6(this), this.value && this.value.forEachNodes && this.value.forEachNodes(t6), this.value2 && this.value2.forEachNodes && this.value2.forEachNodes(t6), this.arguments && this.arguments.forEach && this.arguments.forEach((function(n5) {
                  n5 && n5.forEachNodes && n5.forEachNodes(t6);
                }));
              }, t5.prototype.getStartIndexInFormula = function() {
                return this.lit;
              }, t5.prototype.getEndIndexInFormula = function() {
                return this.ywt;
              }, t5;
            })(), n4.Expression = lt, ht = (function() {
              function t5(t6, n5) {
                var e4 = this;
                e4.rT = t6, n5 ? (e4.$gt = n5, e4.SDt = n5.length) : e4.SDt = 1;
              }
              return t5.prototype.getRangeCount = function() {
                return this.SDt;
              }, t5.prototype.getSource = function() {
                return this.rT;
              }, t5.prototype.create = function(n5) {
                return new t5(this.rT, n5);
              }, t5.prototype.getKey = function() {
                var t6 = [], n5 = this.rT;
                return this.$gt.forEach((function(e4) {
                  t6.push(n5.getRangeKey(n5, e4));
                })), 1 === t6.length ? t6[0] : 0 === t6.length ? G : t6.join(",");
              }, t5.prototype.toArray = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2 = this.rT, s2 = u2.referenceToArray;
                return s2 && s2.call(u2, this, t6, n5, e4, i4, r3, o3, a2);
              }, t5.prototype.getRow = function(t6) {
                return this.$gt ? this.$gt[t6 || 0].row : 0;
              }, t5.prototype.getColumn = function(t6) {
                return this.$gt ? this.$gt[t6 || 0].col : 0;
              }, t5.prototype.getRowCount = function(t6) {
                return this.$gt ? this.$gt[t6 || 0].rowCount : this.rT.getRowCount();
              }, t5.prototype.getColumnCount = function(t6) {
                return this.$gt ? this.$gt[t6 || 0].colCount : this.rT.getColumnCount();
              }, t5.prototype.getValue = function(t6, n5, e4) {
                var i4, r3, o3;
                if (typeof t6 === u ? (i4 = arguments[1], r3 = arguments[2], n5 = arguments[0]) : (i4 = t6.row, r3 = t6.col), n5 = n5 || 0, i4 >= 0 || r3 >= 0) {
                  if (!(o3 = this.$gt)) return this.rT.getValue(i4, r3);
                  if (n5 < o3.length) return this.rT.getValue(i4 + o3[n5].row, r3 + o3[n5].col);
                }
                return $;
              }, t5.prototype.getValueByIndex = function(t6) {
                var n5 = this.getColumnCount(), e4 = Z(t6 / n5), i4 = t6 % n5;
                return this.getValue(0, e4, i4);
              }, t5.prototype.isHiddenRow = function(t6, n5, e4) {
                return this.rT.isHiddenRow(n5 + this.getRow(t6), e4);
              }, t5.prototype.isSubtotal = function(t6, n5, e4) {
                var i4, r3 = this.rT;
                return 0 === t6 && n5 < r3.getRowCount() && e4 < r3.getColumnCount() && Tt(i4 = r3.getCalcSourceModel().ODt(n5, e4));
              }, t5.prototype.getSpillRef = function() {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2 = this;
                if (1 !== l2.getRowCount() || 1 !== l2.getColumnCount()) return $;
                if (a2 = new t5(e4 = l2.getSource(), [o3 = vn(i4 = l2.getRow(), r3 = l2.getColumn())]), e4 && e4.t8) {
                  if (u2 = e4.t8.getAnchorCell(i4, r3)) return u2.isValid ? (o3.rowCount = u2.rowCount, o3.colCount = u2.colCount, a2) : n4.errors.Spill;
                  if (c2 = (s2 = e4.getCalcSourceModel()).sT(i4, r3)) return c2.row === i4 && c2.col === r3 ? (o3.rowCount = c2.rowCount, o3.colCount = c2.colCount, new t5(e4, [o3])) : void 0;
                  if (!(f2 = s2.pB(i4, r3)) || 33 !== f2.type) return f2 && ("@" === f2.functionName || f2) ? (o3.rowCount = 1, o3.colCount = 1, new t5(e4, [o3])) : $;
                  a2.isSpillError = true, o3.rowCount = 1, o3.colCount = 1;
                }
                return $;
              }, t5;
            })(), n4.CalcReference = ht, dt = (function() {
              function t5(n5) {
                this.id = t5.sourceId, t5.sourceId++, this.Lbt = n5, this.Mbt = null;
              }
              return t5.prototype.getCalcService = function() {
                return this.Lbt;
              }, t5.prototype.op = function() {
                return this.Lbt;
              }, t5.prototype.setCalcService = function(t6) {
                this.Lbt = t6;
              }, t5.prototype.getCalcSourceModel = function() {
                return this.Mbt;
              }, t5.prototype.setCalcSourceModel = function(t6) {
                this.Mbt = t6;
              }, t5.prototype.getValue = function() {
                var t6, n5 = [];
                for (t6 = 0; t6 < arguments.length; t6++) n5[t6] = arguments[t6];
                return G;
              }, t5.prototype.getName = function(t6) {
                return "";
              }, t5.prototype.getField = function(t6) {
                return G;
              }, t5.prototype.getFieldItem = function(t6) {
                return G;
              }, t5.prototype.setValue = function() {
                var t6, n5 = [];
                for (t6 = 0; t6 < arguments.length; t6++) n5[t6] = arguments[t6];
              }, t5.prototype.getReference = function(t6) {
                return new ht(this, t6 && [t6]);
              }, t5.prototype.getSources = function(t6) {
                return [this];
              }, t5.prototype.referenceToArray = function(t6, n5, e4, i4, r3, o3, a2, u2) {
                return t6.toArray(n5, e4, i4, r3, o3, a2, u2);
              }, t5.prototype.getRangeKey = function(t6, n5) {
                return t6.id + "," + n5.row + "," + n5.col + "," + n5.rowCount + "," + n5.colCount;
              }, t5.prototype.setFormula = function() {
                var t6, n5 = [];
                for (t6 = 0; t6 < arguments.length; t6++) n5[t6] = arguments[t6];
              }, t5.prototype.setArrayFormula = function() {
                var t6, n5 = [];
                for (t6 = 0; t6 < arguments.length; t6++) n5[t6] = arguments[t6];
              }, t5.prototype.getRowCount = function() {
                return 1e3;
              }, t5.prototype.getColumnCount = function() {
                return 100;
              }, t5.prototype.isHiddenRow = function(t6, n5) {
                return false;
              }, t5.prototype.startCalculation = function() {
              }, t5.prototype.endCalculation = function(t6, n5) {
              }, t5.prototype.getCustomFunction = function(t6) {
                return G;
              }, t5.prototype.getCustomName = function(t6) {
                return G;
              }, t5.prototype.getCustomNameInfo = function(t6) {
                return G;
              }, t5.prototype.refresh = function() {
              }, t5.prototype.toJSON = function(t6, n5) {
                var e4, i4 = [];
                for (e4 = 2; e4 < arguments.length; e4++) i4[e4 - 2] = arguments[e4];
              }, t5.prototype.wh = function(t6, n5) {
                var e4, i4 = [];
                for (e4 = 2; e4 < arguments.length; e4++) i4[e4 - 2] = arguments[e4];
              }, t5.sourceId = 1, t5;
            })(), n4.CalcSource = dt, n4.Syt = Ht, n4.kyt = Ht($), n4.YJ = Vt, n4.lDt = zt, n4.createExpandExpression = Yt, n4.rbt = Zt, n4.Ayt = Wt, n4.Lde = Qt, n4.createStringExpression = Kt, n4.createNumberExpression = Jt, n4.createBooleanExpression = Xt, n4.addStartEndIndexToExpression = qt, vt = (function() {
              function t5() {
              }
              return t5.getArrayValue = function(t6, n5, e4) {
                return t6 ? n5 < t6.getRowCount() && e4 < t6.getColumnCount() ? t6.getValue(n5, e4) : e4 >= t6.getColumnCount() && 1 === t6.getColumnCount() && n5 < t6.getRowCount() ? t6.getValue(n5, 0) : n5 >= t6.getRowCount() && 1 === t6.getColumnCount() && e4 < t6.getColumnCount() ? t6.getValue(0, e4) : q : q;
              }, t5.tryExtractToSingleValue = function(t6) {
                var n5, e4 = true;
                return (Ut(t6) || Gt(t6)) && ((n5 = ct.iV(t6, 0, false, true)).isError ? t6 = n5[0] : 1 === n5.rowCount && 1 === n5.colCount ? t6 = n5[0][0] : (t6 = n5, e4 = false)), { value: t6, success: e4 };
              }, t5;
            })(), n4.skt = vt, n4.charAtFunc = $t, pt = (function() {
              function t5(t6) {
                this.ADt = t6;
              }
              return t5.prototype.xDt = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2 = this.ADt;
                if (T.Nh(c2) || (c2 = [c2]), -1 === c2[0]) return true;
                for (n5 = 0; n5 < c2.length; n5++) if (i4 = void 0, r3 = void 0, nn(e4 = c2[n5])) {
                  for (o3 = e4.split(" && "), a2 = true, u2 = 0; u2 < o3.length; u2++) i4 = (s2 = o3[u2].split(" "))[0], r3 = j(s2[1]), "!=" === i4 && t6 !== r3 || ">" === i4 && t6 > r3 || ">=" === i4 && t6 >= r3 || "%=" === i4 && t6 % 2 === r3 || (a2 = false);
                  if (a2) return true;
                } else if (t6 === e4) return true;
                return false;
              }, t5.prototype.NDt = function() {
                return this.ADt;
              }, t5;
            })(), n4.sDt = en, gt = (function() {
              function t5() {
                this.context = [{}], this.closure = {}, this.backupClosure = [];
              }
              return t5.prototype.getVariable = function(t6) {
                var n5, e4;
                for (t6 = St(t6), e4 = this.context.length - 1; e4 >= 0 && (n5 = this.context[e4][t6]) === U; e4--) ;
                return n5 === U && this.closure && (n5 = this.closure[t6]), n5;
              }, t5.prototype.setVariable = function(t6, n5) {
                t6 = St(t6), this.context[this.context.length - 1][t6] = n5;
              }, t5.prototype.hasVariable = function(t6) {
                return t6 = St(t6), this.getVariable(t6) !== U;
              }, t5.prototype.enterScope = function() {
                this.context.push({});
              }, t5.prototype.exitScope = function() {
                this.context.pop();
              }, t5.prototype.saveThenSwitchClosure = function(t6) {
                this.backupClosure.push(this.closure), this.closure = t6;
              }, t5.prototype.restoreClosure = function() {
                this.backupClosure.length > 0 ? this.closure = this.backupClosure.pop() : this.closure = {};
              }, t5.prototype.createClosure = function() {
                var t6, n5 = {};
                for (this.copyTo(this.closure, n5), t6 = 0; t6 < this.context.length; t6++) this.copyTo(this.context[t6], n5);
                return n5;
              }, t5.prototype.copyTo = function(t6, n5) {
                var e4, i4, r3 = Object.keys(t6);
                for (e4 = 0; e4 < r3.length; e4++) n5[i4 = r3[e4]] = t6[i4];
              }, t5;
            })(), n4.LocalScopes = gt, (function(t5) {
              var e4, r3, o3, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2, y2, w2, M2, x2, R2;
              function L2(n5, e5) {
                return e5.name = St(e5.name), t5.Tmt[St(n5)] = e5, e5;
              }
              function F2(e5) {
                var i4, r4, o4;
                return e5 ? (e5 = St(e5), i4 = t5.Mmt, r4 = t5.Tmt, o4 = (0, n4.getMapping)() && (0, n4.getMapping)().builtInFunctionsMapping, i4 && ($2(o4, e5) || i4[e5]) || r4 && r4[e5]) : Q2();
              }
              function B2() {
                return Q2();
              }
              function P2(n5) {
                if (!n5) return t5.Mmt = {}, void (t5.Tmt = {});
                n5 = St(n5);
                var e5 = t5.Mmt, i4 = t5.Tmt;
                e5[n5] ? delete e5[n5] : i4[n5] && delete i4[n5];
              }
              function Q2() {
                var n5, e5, i4 = t5.Mmt, r4 = t5.Tmt, o4 = [];
                for (n5 in i4) o4.push(i4[n5]);
                for (e5 in r4) o4.push(r4[e5]);
                return o4;
              }
              function $2(n5, e5) {
                var i4, r4 = t5.Mmt;
                if (!A(n5)) {
                  for (i4 in n5) if (n5[i4].alias === e5) return r4[i4];
                }
                return U;
              }
              function rt2(t6) {
                function e5(t7) {
                  var e6, i4, r4, o4, a2 = 0, u3 = 0, f3 = false, l3 = 0, h2 = 0, d3 = 0, v3 = t7.length;
                  if (!t7) throw (0, n4.sR)().Exp_ArgumentNull;
                  if (0 === v3) throw s2;
                  if (d3 < v3 && ("+" === $t(t7, d3) || "-" === $t(t7, d3)) && d3++, d3 = (o4 = tn(t7, d3)).lp, e6 = o4.TDt, d3 < v3 && ("+" === $t(t7, d3) || "-" === $t(t7, d3)) ? (l3 = d3, d3 = (o4 = tn(t7, ++d3)).lp, i4 = o4.TDt, d3 < v3 && ("i" === $t(t7, d3) || "j" === $t(t7, d3)) && (r4 = $t(t7, d3), d3++, f3 = true), h2 = d3 - l3) : d3 < v3 && ("i" === $t(t7, d3) || "j" === $t(t7, d3)) ? (r4 = $t(t7, d3), h2 = ++d3, i4 = e6, f3 = true, e6 = false) : l3 = d3, d3 < v3) throw s2;
                  if (l3 > 0) {
                    if (!e6) throw s2;
                    a2 = parseFloat(t7.substr(0, l3));
                  }
                  if (h2 > 0) {
                    if (!f3) throw s2;
                    if (1 === h2 || 2 === h2 && "+" === $t(t7, l3)) u3 = 1;
                    else if (2 === h2 && "-" === $t(t7, l3)) u3 = -1;
                    else {
                      if (!i4) throw s2;
                      u3 = parseFloat(t7.substr(l3, h2 - 1));
                    }
                  }
                  return new c2(a2, u3, r4);
                }
                try {
                  return t6 ? "number" == typeof t6 ? new c2(t6, 0) : "string" == typeof t6 ? e5(t6) : null : new c2(0, 0);
                } catch (t7) {
                  return null;
                }
              }
              function ot2(e5, i4, o4) {
                var a2, u3, s3;
                if (A(e5)) throw (0, n4.sR)().Exp_InvalidFunctionName;
                if (e5 = e5.toUpperCase(), t5.Mmt[e5]) throw (0, n4.sR)().Exp_InvalidOverrideFunction;
                if (a2 = t5.Mmt[e5]) {
                  if (!o4 || !o4.override) throw (0, n4.sR)().Exp_OverrideNotAllowed;
                } else t5.Mmt[e5] = a2 = new r3(e5, 0, 255);
                return i4 && "function" == typeof i4 && (a2.evaluate = i4), "function" == typeof o4.argsValidator && (u3 = a2.aDt, a2.aDt = function(t6, n5, e6, i5) {
                  u3(t6, n5, e6, i5), o4.argsValidator(t6, n5, e6, i5);
                }), "function" == typeof o4.subExpressionValidator && (s3 = a2.uDt, a2.uDt = function(t6, n5) {
                  s3(t6, n5), o4.subExpressionValidator(t6, n5);
                }), T.y0(o4, (function(t6, n5) {
                  var e6;
                  I(t6, ["acceptsReference", "acceptsArray", "acceptsError", "acceptsMissingArgument", "skipPrecedent"]) >= 0 ? (e6 = new pt(n5), a2[t6] = function(t7) {
                    return e6.xDt(t7);
                  }) : I(t6, ["isVolatile", "isBranch", "findTestArgument", "returnReference", "isContextSensitive", "expandColumns", "expandRows"]) >= 0 ? (e6 = new pt(n5), a2[t6] = function() {
                    return e6.NDt();
                  }) : o4.hasOwnProperty(t6) && (a2[t6] = n5);
                })), a2;
              }
              function st2(t6, n5, e5, i4, r4, o4, a2, u3, s3) {
                return u3 || (u3 = {}), e5 !== U && (u3.minArgs = e5), i4 !== U && (u3.maxArgs = i4), o4 !== U && (u3.acceptsReference = o4), a2 !== U && (u3.acceptsArray = a2), r4 !== U && (u3.R9t = r4), u3.wkt !== U && (u3.acceptsMissingArgument = u3.wkt), u3.V9t !== U && (u3.isVolatile = u3.V9t), u3.r9t !== U && (u3.isContextSensitive = u3.r9t), u3.a9t !== U && (u3.haveDynamicListener = u3.a9t), u3.e9t !== U && (u3.skipPrecedent = u3.e9t), u3.o9t !== U && (u3.arrayArgumentEvaluateMode = u3.o9t), u3.f9t !== U && (u3.acceptsError = u3.f9t), s3 !== U && (u3.isDynamicArrayFunction = s3), ot2(t6, n5, u3);
              }
              function ft2(t6) {
                return "boolean" == typeof t6;
              }
              function lt2(t6) {
                return "number" == typeof t6;
              }
              function dt2(t6) {
                return t6 % 400 == 0 || t6 % 4 == 0 && t6 % 100 != 0 || 1900 === t6;
              }
              function vt2(t6, n5) {
                switch (n5) {
                  case 0:
                  case 2:
                  case 4:
                    return 360;
                  case 1:
                    return b2(t6.getFullYear()) ? 366 : 365;
                  case 3:
                    return 365;
                  default:
                    return -1;
                }
              }
              function gt2(t6, n5) {
                return t6 - n5;
              }
              function mt2(t6, n5) {
                return I(n5, [0, 2, 4, 6, 7, 9, 11]) >= 0 ? 31 : I(n5, [3, 5, 8, 10]) >= 0 ? 30 : 1 === n5 ? b2(t6) ? 29 : 28 : void 0;
              }
              function bt2(t6, n5, e5, i4) {
                var r4, o4, a2 = e5.getFullYear(), u3 = e5.getMonth(), s3 = e5.getDate(), c3 = i4.getFullYear(), f3 = i4.getMonth(), l3 = i4.getDate();
                return t6 ? (r4 = 1 === u3 && y2(a2, u3) === s3, o4 = 1 === f3 && y2(c3, f3) === l3, n5 ? (r4 && (s3 = 30), o4 && (l3 = 30)) : (r4 && o4 && (l3 = 30), r4 && (s3 = 30)), 31 === l3 && s3 >= 30 && (l3 = 30)) : 31 === l3 && (n5 ? (l3 = 1, f3++) : l3 = 30), 31 === s3 && (s3 = 30), 360 * (c3 - a2) + 30 * (f3 - u3) + l3 - s3;
              }
              function yt2(t6, n5, e5) {
                var i4, r4, o4 = 1;
                return gt2(t6, n5) > 0 && (r4 = t6, t6 = n5, n5 = r4, o4 = -1), i4 = I(e5, [1, 2, 3]) >= 0 ? o4 * l2(O(n5) - O(t6)) : I(e5, [4, 5]) >= 0 ? o4 * bt2(false, 5 === e5, t6, n5) : o4 * bt2(true, 6 === e5, t6, n5);
              }
              function Mt2(t6) {
                var n5, e5, i4;
                return e5 = 0 === t6 ? 0 : (i4 = 0.5 * H(t6)) >= 3 ? 1 : i4 < 1 ? ((((((((124818987e-12 * (n5 = i4 * i4) - 0.001075204047) * n5 + 0.005198775019) * n5 - 0.019198292004) * n5 + 0.059054035642) * n5 - 0.151968751364) * n5 + 0.319152932694) * n5 - 0.5319230073) * n5 + 0.797884560593) * i4 * 2 : (((((((((((((-45255659e-12 * (i4 -= 2) + 15252929e-11) * i4 - 19538132e-12) * i4 - 676904986e-12) * i4 + 0.001390604284) * i4 - 79462082e-11) * i4 - 0.002034254874) * i4 + 0.006549791214) * i4 - 0.010557625006) * i4 + 0.011630447319) * i4 - 0.009279453341) * i4 + 0.005353579108) * i4 - 0.002141268741) * i4 + 535310849e-12) * i4 + 0.999936657524, t6 > 0 ? 0.5 * (e5 + 1) : 0.5 * (1 - e5);
              }
              function Ct2(t6, e5, i4, r4, o4) {
                var a2, u3, s3, c3, f3, l3, h2, d3, v3, m3, b3, y3, w3, M3, C2 = i4 < 100, S2 = 2 === i4 || 102 === i4, T2 = S2 || 3 === i4 || 103 === i4, x3 = 5 === i4 || 105 === i4, I2 = 4 === i4 || 104 === i4 || x3, N2 = 9 === i4 || 109 === i4, j2 = 1 === i4 || 101 === i4 || N2 || r4, D2 = 6 === i4 || 106 === i4, _2 = D2 ? 1 : 0, O2 = false, R3 = 0, L3 = false;
                for (a2 = 0; a2 < k(t6); a2++) {
                  if (m3 = t6[a2], b3 = void 0, T2) {
                    if (!S2 && !(m3 instanceof ut) && m3 instanceof at) {
                      _2 += m3.getColumnCount() * m3.getRowCount(), m3.forEachItem((function(t7) {
                        t7 === U && _2--;
                      }));
                      continue;
                    }
                    b3 = p2(m3, 0, false, false, false, S2);
                  } else y3 = 1, (!n4.ExcelCompatibleCalcMode || Gt(m3) || Ut(m3)) && (y3 = 5), b3 = p2(m3, y3, false, false, false, true);
                  if (b3.isError) return b3[0];
                  if (b3.isConvertError) return q;
                  for (w3 = b3.rangeCount, M3 = b3.isReference, u3 = 0; u3 < w3; u3++) for (s3 = w3 > 1 ? b3[u3] : b3, M3 && (c3 = m3.getRow(u3), f3 = m3.getColumn(u3)), l3 = 0; l3 < k(s3); l3++) if (2 === e5 || !M3 || !m3.isHiddenRow(u3, l3, C2)) {
                    for (d3 = s3[l3], h2 = 0; h2 < k(d3); h2++) if (!(1 !== e5 && 2 !== e5 && M3 && m3.isSubtotal(u3, l3 + c3, h2 + f3) || null === (v3 = d3[h2]) || v3 === K)) {
                      if (v3 && v3._error && !T2) return o4 && (o4.sumx = 0, o4.sumx2 = 0, o4.n = 0), v3;
                      T2 && !A(v3) && (!S2 || "" !== v3 && ct.q8(v3, true)) ? _2++ : I2 && (!O2 || x3 && v3 < _2 || !x3 && v3 > _2) ? _2 = v3 : j2 ? r4 ? (o4.sumx = E.Jme(o4.sumx, v3), o4.sumx2 += v3 * v3, o4.n++, o4.values.push(v3), o4.values[0] !== v3 && (o4.allSame = false)) : (_2 = E.Jme(_2, v3), R3++) : D2 && (_2 *= v3, R3++), O2 = true;
                    }
                  }
                }
                return j2 ? N2 ? _2 : r4 ? void 0 : 0 === R3 ? nt : g2(_2 / R3) : D2 ? g2(R3 > 0 ? _2 : 0) : _2;
              }
              function Tt2(t6, n5, e5) {
                var i4, r4, o4 = e5 % 100, a2 = 7 === o4 || 8 === o4, u3 = 7 === o4 || 10 === o4 ? 1 : 0, s3 = { sumx: 0, sumx2: 0, n: 0, values: [], allSame: false }, c3 = Ct2(t6, n5, e5, true, s3);
                if (c3 && c3._error) return c3;
                if (s3.n <= u3) return nt;
                if (s3.allSame) c3 = 0;
                else if (E.ukt(s3.n * s3.sumx2, s3.sumx * s3.sumx)) for (c3 = 0, i4 = s3.sumx / s3.n, r4 = 0; r4 < s3.n; r4++) c3 += Y(s3.values[r4] - i4, 2);
                else c3 = s3.sumx2 - s3.sumx * s3.sumx / s3.n;
                return c3 /= s3.n - u3, g2(a2 ? Math.sqrt(c3) : c3);
              }
              function xt2(t6, n5, e5, i4) {
                var r4, o4, a2, u3, s3, c3, f3, v3, g3, b3, y3, w3, M3, C2, S2, T2, x3, A2, I2, N2;
                if (null === e5) return q;
                if ((e5 = parseInt(e5, 10)) <= 0 || e5 > 19) return q;
                function j2(t7) {
                  var n6, i5, c4, f4, l3, d3, v4, g4, b4, y4, w4, M4 = [];
                  if ((n6 = p2(t7, s3 ? 0 : 5, false, false, false, false)).isConvertError) return q;
                  for (y4 = n6.rangeCount, w4 = n6.isReference, i5 = 0; i5 < y4; i5++) for (c4 = y4 > 1 ? n6[i5] : n6, w4 && (f4 = t7.getRow(i5), l3 = t7.getColumn(i5)), d3 = 0; d3 < k(c4); d3++) if (!(w4 && t7.isHiddenRow(i5, d3, false) && r4)) {
                    for (g4 = c4[d3], v4 = 0; v4 < k(g4); v4++) if (!(w4 && o4 && t7.isSubtotal(i5, d3 + f4, v4 + l3) || null === (b4 = g4[v4]) || a2 && m2(b4) || m2(b4) && u3)) {
                      if (!a2 && m2(b4) && 3 !== e5) return b4;
                      typeof b4 === h && 0 === Object.keys(b4).length || M4.push(b4);
                    }
                  }
                  return M4;
                }
                function D2(t7) {
                  var n6, e6 = t7.getRow(0), r5 = t7.getColumn(0), o5 = t7.getRowCount(0), a3 = t7.getColumnCount(0);
                  if (1 === o5 && 1 === a3) n6 = t7.getValue(0, 0, 0);
                  else if (1 !== o5 && 1 === a3 && e6 <= i4.row && i4.row < e6 + o5) n6 = t7.getValue(0, i4.row - e6, 0);
                  else {
                    if (!(1 === o5 && 1 !== a3 && r5 <= i4.column && i4.column < r5 + a3)) return q;
                    n6 = t7.getValue(0, 0, i4.column - r5);
                  }
                  return n6 === G || "" === n6 ? tt : isNaN(parseInt(n6, 10)) ? q : parseFloat(n6);
                }
                if (n5 || (n5 = 0), r4 = 1 === n5 || 3 === n5 || 5 === n5 || 7 === n5, o4 = 1 === n5 || 2 === n5 || 3 === n5 || 0 === n5, a2 = 2 === n5 || 3 === n5 || 6 === n5 || 7 === n5, s3 = (u3 = 2 === e5) || 3 === e5, c3 = 12 === e5, f3 = 13 === e5, C2 = (v3 = 14 === e5) || (g3 = 15 === e5) || (b3 = 16 === e5) || (y3 = 17 === e5) || (w3 = 18 === e5) || (M3 = 19 === e5), S2 = [], T2 = k(t6), C2) {
                  if (2 !== T2) return q;
                  if ((S2 = j2(t6[0]))._error) return S2;
                  if (x3 = void 0, t6[1] === G) return tt;
                  if (t6[1] instanceof ht) x3 = D2(t6[1]);
                  else if (t6[1] instanceof at) x3 = t6[1].array[0][0];
                  else {
                    if (isNaN(parseInt(t6[1], 10))) return q;
                    x3 = d2(t6[1]);
                  }
                  return x3._error ? x3 : (17 !== e5 && 19 !== e5 || (x3 = l2(x3)), Yt2([S2, x3], e5));
                }
                for (A2 = 0; A2 < T2; A2++) if (!(t6[A2] instanceof ht)) return q;
                for (A2 = 0; A2 < T2; A2++) {
                  if (!((I2 = j2(t6[A2])) instanceof Array)) return I2;
                  S2.push.apply(S2, I2);
                }
                return c3 || f3 ? Yt2([S2], e5) : 7 === e5 || 8 === e5 || 10 === e5 || 11 === e5 ? Tt2(S2, N2 = o4 ? 1 : 0, e5) : Ct2(S2, 1, e5);
              }
              function At2(t6) {
                var n5 = t6.charCodeAt(0);
                return n5 >= 0 && n5 < 129 || 63728 === n5 || n5 >= 65377 && n5 < 65440 || n5 >= 63729 && n5 < 63732 ? "singleByte" : n5 >= 55296 && n5 <= 57343 ? "fourByte" : "doubleByte";
              }
              function It2(t6) {
                var n5, e5 = [];
                for (n5 = 0; n5 < t6.length; n5++) A(t6[n5]) ? (e5[n5] = t6[n5 + 1], n5++) : e5[n5] = t6[n5];
                return e5.length === t6.length - 1 && (e5[e5.length] = U), e5;
              }
              function kt2(t6) {
                var n5, e5, i4, r4, o4 = [], a2 = 0, u3 = 0;
                for (e5 = 0; e5 < t6.length; e5++) {
                  if (n5 = t6[e5], "doubleByte" === (i4 = At2(t6[e5])) || "fourByte" === i4) if ("fourByte" === i4) {
                    if (a2 % 2 == 0) {
                      a2++;
                      continue;
                    }
                    u3++, a2++, n5 = t6[e5 - 1] + t6[e5];
                  } else u3++, n5 = t6[e5];
                  o4[e5 - (r4 = a2 > 0 ? a2 / 2 : 0) + u3] = n5;
                }
                return It2(o4);
              }
              function Nt2(t6, n5) {
                var e5, i4;
                for (void 0 === n5 && (n5 = true), e5 = [], i4 = 0; i4 < k(t6); i4++) Dt2(t6[i4], e5, n5);
                return e5;
              }
              function jt2(t6) {
                t6.sort((function(t7, n5) {
                  return t7 - n5;
                }));
              }
              function Dt2(t6, n5, e5) {
                var i4, r4;
                for (void 0 === e5 && (e5 = true), i4 = 0; i4 < k(t6); i4++) (r4 = t6[i4]) !== K && n5.push(r4);
                e5 && jt2(n5);
              }
              function _t2() {
                var t6, n5, e5, i4 = [];
                for (t6 = 0; t6 < arguments.length; t6++) i4[t6] = arguments[t6];
                return n5 = Nt2(arguments[0]), 0 === (e5 = k(n5)) ? tt : e5 % 2 == 0 ? (d2(n5[e5 / 2 - 1]) + d2(n5[e5 / 2])) / 2 : n5[j((e5 / 2).toString())];
              }
              function Et2() {
                var t6, n5, e5, i4, r4, o4, a2, u3, s3 = [];
                for (t6 = 0; t6 < arguments.length; t6++) s3[t6] = arguments[t6];
                for (n5 = G, e5 = 0, i4 = Nt2(arguments[0], false), r4 = k(i4), o4 = 0; o4 < r4; o4++) {
                  for (u3 = 0, a2 = 0; a2 < r4; a2++) a2 !== o4 && i4[a2] === i4[o4] && u3++;
                  u3 > e5 && (e5 = u3, n5 = i4[o4]);
                }
                return 0 === e5 ? et : n5;
              }
              function Rt2(t6, n5) {
                return Ft2(true, t6, n5);
              }
              function Lt2(t6, n5) {
                return Ft2(false, t6, n5);
              }
              function Ft2(t6, n5, e5) {
                var i4, r4 = [];
                return Dt2(n5, r4), i4 = k(r4), e5 < 1 || i4 < e5 ? tt : (e5 = t6 ? W(e5) : Z(e5), t6 ? r4[i4 - e5] : r4[e5 - 1]);
              }
              function Bt2(t6, n5) {
                var e5, i4, r4;
                return t6 = p2(t6, 1, true, true, false, true), n5 = d2(n5), t6.isError ? t6[0] : t6.isConvertError || D(n5) ? q : (Dt2(t6, e5 = []), !k(e5) || n5 < 0 || n5 > 1 ? tt : (r4 = (i4 = n5 * (k(e5) - 1)) % 1, i4 = j(i4.toString()), 0 === r4 ? e5[i4] : d2(e5[i4]) + r4 * (d2(e5[i4 + 1]) - d2(e5[i4]))));
              }
              function Ht2(t6, n5) {
                var e5 = I(n5, [0, 1, 2, 3, 4]);
                return e5 < 0 ? tt : Bt2(t6, 0.25 * e5);
              }
              function Vt2(t6, n5) {
                var e5, i4, r4, o4, a2, u3, s3 = k(t6), c3 = [];
                for (e5 = 0; e5 < s3; e5++) v2(t6[e5], true) && c3.push(t6[e5]);
                return c3.length ? (i4 = c3.length, jt2(c3), o4 = (r4 = n5 * (i4 + 1) - 1) % 1, r4 < 0 || i4 - 1 < r4 ? tt : (u3 = c3[a2 = Z(r4)], 0 === o4 ? u3 : u3 + o4 * (c3[a2 + 1] - u3))) : tt;
              }
              function zt2(t6, n5) {
                var e5 = I(n5, [1, 2, 3]);
                return e5 < 0 ? tt : Vt2(t6, 0.25 * (e5 + 1));
              }
              function Yt2(t6, n5) {
                var e5 = 12 === n5, i4 = 13 === n5, r4 = 14 === n5, o4 = 15 === n5, a2 = 16 === n5, u3 = 17 === n5, s3 = 18 === n5, c3 = 19 === n5;
                return e5 ? _t2(t6) : i4 ? Et2(t6) : r4 ? Rt2(t6[0], t6[1]) : o4 ? Lt2(t6[0], t6[1]) : a2 ? Bt2(t6[0], t6[1]) : u3 ? Ht2(t6[0], t6[1]) : s3 ? Vt2(t6[0], t6[1]) : c3 ? zt2(t6[0], t6[1]) : it;
              }
              function Zt2(t6) {
                var n5 = 1, e5;
                for (e5 = t6; e5 > 1; e5--) n5 *= e5;
                return n5;
              }
              function Wt2(t6, n5, e5) {
                var i4 = t6.getDate(), r4 = n5.getDate(), o4 = t6.getMonth(), a2 = n5.getMonth(), u3 = t6.getFullYear(), s3 = n5.getFullYear();
                return i4 = 31 === i4 ? 30 : i4, e5 ? r4 = 31 === r4 ? 30 : r4 : 31 === r4 && (i4 < 30 ? (r4 = 1, ++a2 > 12 && (a2 = 1, s3++)) : r4 = 30), 30 * (12 * (s3 - u3) + a2 - o4) + r4 - i4;
              }
              function Qt2(t6, n5, e5) {
                var i4, r4, o4, a2, u3, s3, c3, f3, h2, v3 = yt2(t6, n5, e5);
                return v3 < 0 && (v3 = -v3, r4 = t6, t6 = n5, n5 = r4), 1 === e5 ? (o4 = t6.getFullYear(), a2 = n5.getFullYear(), u3 = void 0, s3 = void 0, c3 = void 0, f3 = void 0, (u3 = new Date(t6.valueOf())).setFullYear(u3.getFullYear() + 1), gt2(n5, u3) > 0 ? (f3 = a2 + 1 - o4, u3 = new Date(o4, 0, 1), s3 = new Date(a2 + 1, 0, 1), c3 = l2(O(s3) - O(u3)) - 365 * (a2 + 1 - o4)) : (f3 = 1, c3 = b2(o4) && t6.getMonth() < S || b2(a2) && 256 * n5.getMonth() + n5.getDate() >= 256 * C + 29 ? 1 : 0), i4 = 365 + (h2 = d2(c3) / d2(f3))) : i4 = vt2(/* @__PURE__ */ new Date(), e5), v3 / i4;
              }
              function Kt2(t6, n5, e5) {
                return e5 < 0 || e5 > 4 ? tt : Qt2(t6, n5, e5);
              }
              !(function(t6) {
                t6[t6.normal = 0] = "normal", t6[t6.allwaysExpand = 1] = "allwaysExpand", t6[t6.neverExpand = 2] = "neverExpand";
              })(e4 = t5.ArrayArgumentEvaluateMode || (t5.ArrayArgumentEvaluateMode = {})), r3 = (function() {
                function t6(t7, n5, e5, i4) {
                  void 0 === n5 && (n5 = 0), void 0 === e5 && (e5 = 0), this.name = t7, this.minArgs = n5, this.maxArgs = e5;
                  var r4 = this;
                  r4.IDt = i4, r4.typeName = "";
                }
                return t6.prototype.description = function() {
                  var t7 = this, e5 = (0, n4.sR)().wmt;
                  return t7.IDt ? t7.IDt : e5 && e5[t7.name];
                }, t6.prototype.acceptsArray = function(t7) {
                  return false;
                }, t6.prototype.acceptsReference = function(t7) {
                  return false;
                }, t6.prototype.acceptsError = function(t7) {
                  return false;
                }, t6.prototype.acceptsMissingArgument = function(t7) {
                  return false;
                }, t6.prototype.isVolatile = function() {
                  return false;
                }, t6.prototype.isContextSensitive = function() {
                  return false;
                }, t6.prototype.acceptsExpressionArgument = function(t7) {
                  return false;
                }, t6.prototype.isBranch = function() {
                  return false;
                }, t6.prototype.findTestArgument = function() {
                  return -1;
                }, t6.prototype.findBranchArgument = function(t7) {
                  return -1;
                }, t6.prototype.expandRows = function() {
                  return true;
                }, t6.prototype.expandColumns = function() {
                  return true;
                }, t6.prototype.skipPrecedent = function(t7) {
                  return false;
                }, t6.prototype.returnReference = function() {
                  return false;
                }, t6.prototype.evaluate = function() {
                  var t7, n5 = [];
                  for (t7 = 0; t7 < arguments.length; t7++) n5[t7] = arguments[t7];
                }, t6.prototype.evaluateWithContext = function(t7, n5) {
                  var e5 = this, i4 = n5;
                  return e5.isContextSensitive() && (i4 = [t7].concat(i4)), e5.evaluate.apply(e5, i4);
                }, t6.prototype.toJSON = function() {
                  var t7, n5 = {};
                  for (t7 in this) this.hasOwnProperty(t7) && (n5[t7] = this[t7]);
                  return n5;
                }, t6.prototype.fromJSON = function(t7) {
                  if (t7) for (var n5 in t7) t7[n5] !== U && (this[n5] = t7[n5]);
                }, t6.prototype.aDt = function(t7, e5, i4, r4) {
                  if (i4 < t7 || i4 > e5) throw (0, n4.sR)().Exp_FormulaInvalid;
                }, t6.prototype.uDt = function(t7, n5) {
                  en(t7, n5);
                }, t6.ZX = function(n5, e5, i4) {
                  var r4, o4 = new t6(n5, 0, 255);
                  if (e5 && "function" == typeof e5 && (o4.evaluate = e5), i4) for (r4 in i4) i4.hasOwnProperty(r4) && "override" !== r4 && (o4[r4] = i4[r4]);
                  return o4;
                }, t6;
              })(), t5.Function = r3, o3 = (function(t6) {
                function n5(n6, e5, i4, r4) {
                  return t6.call(this, n6, e5, i4, r4) || this;
                }
                return wt(n5, t6), n5.prototype.isContextSensitive = function() {
                  return true;
                }, n5.prototype.evaluate = function(t7, n6) {
                  return this.evaluateAsync.apply(this, arguments);
                }, n5.prototype.evaluateAsync = function(t7, n6) {
                  this.evaluate.apply(this, arguments);
                }, n5.prototype.defaultValue = function() {
                  return 0;
                }, n5.prototype.evaluateMode = function() {
                  return 0;
                }, n5.prototype.evaluateWhenArgumentsIsSame = function() {
                  return true;
                }, n5.prototype.interval = function() {
                  return 1e4;
                }, n5;
              })(r3), t5.AsyncFunction = o3, u2 = (function(t6) {
                function n5(n6, e5) {
                  var i4, r4 = t6.call(this, "LAMBDA") || this, o4 = n6.arguments, a2 = o4.slice(0, o4.length - 1), u3 = o4[o4.length - 1], s3 = a2.length;
                  for (i4 = 0; i4 < a2.length; i4++) if (a2[i4].Hve) {
                    s3 = i4;
                    break;
                  }
                  return r4.minArgs = s3, r4.maxArgs = a2.length, r4.parameters = a2, r4.calculation = u3, r4.closure = e5, r4;
                }
                return wt(n5, t6), n5.prototype.acceptsArray = function(t7) {
                  return true;
                }, n5.prototype.acceptsReference = function(t7) {
                  return true;
                }, n5.prototype.acceptsError = function(t7) {
                  return true;
                }, n5;
              })(r3), t5.LambdaFunction = u2, t5.AsyncFunctionEvaluateMode = { onRecalculation: 0, calculateOnce: 1, onInterval: 2 }, t5.Mmt = {}, t5.Tmt = {}, t5.defineGlobalCustomFunction = L2, t5.findGlobalFunction = F2, t5.findGlobalFunctions = B2, t5.removeGlobalFunction = P2, s2 = (0, n4.sR)().Exp_Format, c2 = (function() {
                function n5(t6, n6, e5) {
                  this.okt = t6, this.akt = n6, this.mit = e5 || "i";
                }
                return n5.prototype.ikt = function() {
                  return this.okt;
                }, n5.prototype.rkt = function() {
                  return this.akt;
                }, n5.prototype.hkt = function() {
                  return this.mit;
                }, n5.prototype.j = function(n6) {
                  n6 = n6 || "i";
                  var e5 = this, i4 = e5.okt, r4 = e5.akt, o4 = "", a2 = t5.CALC_PRECISION;
                  return a2 && (i4 = E.E8(i4, a2), r4 = E.E8(r4, a2)), 0 === i4 && 0 !== r4 || (o4 += i4.toString()), -1 === r4 ? o4 += "-" : 0 !== i4 && r4 > 0 && (o4 += "+"), -1 !== r4 && 0 !== r4 && 1 !== r4 && (o4 += r4.toString()), 0 !== r4 && (o4 += n6), o4;
                }, n5;
              })(), t5.q6t = c2, t5.mkt = rt2, f2 = ct.sJ, l2 = ct.z6t, d2 = ct.uJ, v2 = ct.q8, p2 = ct.iV, g2 = ct.L6t, m2 = ct.BJ, t5.F6t = st2, t5.B6t = 179769e303, t5.G6t = ft2, t5.OMt = nn, t5.q8 = lt2, t5.F9t = dt2, b2 = dt2, t5.Fkt = vt2, t5.Gkt = gt2, t5.Pkt = mt2, y2 = mt2, t5.Ukt = yt2, t5.dkt = Mt2, t5.b9t = Ct2, t5.y9t = Tt2, t5.H9t = xt2, t5.P9t = At2, t5.U9t = It2, t5.G9t = kt2, t5.w9t = Yt2, t5.nkt = Zt2, t5.Mkt = Wt2, t5.Hkt = Kt2, w2 = (function() {
                function t6(t7, n5, e5, i4) {
                  var r4, o4, a2;
                  if (this.criteria = t7, "function" == typeof n5 && (r4 = n5, n5 = null), e5 && (e5.Zbt = true), n5 = n5 || p2(e5, 0, 2, false, false), r4) {
                    for (o4 = [], a2 = 0; a2 < k(n5); a2++) o4[a2] = r4(n5[a2]);
                    n5 = o4;
                  }
                  this.array = n5, n5.DDt && t7 !== G && "function" != typeof t7 && (this.useMap = true), "function" != typeof t7 && (this.A9t = this.Vle);
                }
                return t6.prototype.RDt = function(t7) {
                  var n5, e5, i4 = this.criteria, r4 = this.array;
                  if (!A(i4)) {
                    if (this.useMap) {
                      if (n5 = r4.DDt.get(i4)) {
                        for (e5 = 0; e5 < n5.length; e5++) if (t7(n5[e5])) return;
                      }
                    } else if ("function" == typeof i4) {
                      for (e5 = 0; e5 < k(r4); e5++) if (i4(r4[e5]) && t7(e5)) return;
                    } else for (e5 = 0; e5 < k(r4); e5++) if (i4 === r4[e5] && t7(e5)) return;
                  }
                }, t6.prototype.A9t = function(t7) {
                  return this.criteria && this.criteria(this.array[t7]);
                }, t6.prototype.Vle = function(t7) {
                  return this.criteria === this.array[t7];
                }, t6.prototype.dispose = function() {
                  delete this.criteria, delete this.array;
                }, t6;
              })(), t5.RangeCriteria = w2, (function(t6) {
                t6[t6.unCompatibleDoubleEqual = 0] = "unCompatibleDoubleEqual", t6[t6.compatibleDoubleEqual = 1] = "compatibleDoubleEqual", t6[t6.stringEqual = 2] = "stringEqual";
              })(M2 || (M2 = {})), x2 = (function() {
                function e5() {
                  this.referenceCache = (0, a.createMap)();
                }
                return e5.prototype.dispose = function() {
                  delete this.referenceCache;
                }, e5.prototype.ggr = function(t6) {
                  t6 ? (this.ygr || (this.ygr = this.referenceCache), this.referenceCache = (0, a.createMap)()) : (this.referenceCache = this.ygr, this.ygr = null);
                }, e5.prototype.p9t = function(t6) {
                  var e6, i4, r4;
                  if (A(t6)) return [4, 0];
                  if (v2(t6)) return [4, t6];
                  if (nn(t6)) {
                    switch ((i4 = (e6 = A(t6) ? "" : n4.fKr.apply(t6))[0]) + (r4 = e6[1])) {
                      case "<>":
                        return [2, 2 === e6.length ? null : e6.substring(2)];
                      case "<=":
                        return [0, 2 === e6.length ? null : e6.substring(2)];
                      case ">=":
                        return [1, 2 === e6.length ? null : e6.substring(2)];
                    }
                    switch (i4) {
                      case "=":
                        return [4, 1 === e6.length ? null : e6.substring(1)];
                      case "<":
                        return [3, 1 === e6.length ? null : e6.substring(1)];
                      case ">":
                        return [5, 1 === e6.length ? null : e6.substring(1)];
                    }
                    return [4, e6];
                  }
                  return [4, t6];
                }, e5.BDt = function(t6) {
                  return 0 === t6.toString().trim().length;
                }, e5.LDt = function(n5) {
                  return ft2(n5) || t5.OMt(n5) && ("TRUE" === n5.toUpperCase() || "FALSE" === n5.toUpperCase());
                }, e5.FDt = function(t6) {
                  return ft2(t6) ? t6 : "TRUE" === t6.toUpperCase();
                }, e5.getCompareFunction = function(t6) {
                  return 0 === t6 ? function(t7, n5) {
                    return t7 <= n5;
                  } : 1 === t6 ? function(t7, n5) {
                    return t7 >= n5;
                  } : 2 === t6 ? function(t7, n5) {
                    return t7 !== n5;
                  } : 3 === t6 ? function(t7, n5) {
                    return t7 < n5;
                  } : 4 === t6 ? function(t7, n5) {
                    return t7 === n5;
                  } : 5 === t6 ? function(t7, n5) {
                    return t7 > n5;
                  } : void 0;
                }, e5.prototype.PDt = function(i4, r4, o4, a2) {
                  var u3, s3, c3, f3, l3, h2 = null, d3 = N.tbt(r4, true);
                  return d3 && (s3 = r4.replace(/\*+/g, "*")) !== r4 && (d3 = N.tbt(s3, true)), 4 === o4 || 2 === o4 ? d3 ? "^[\\s\\S]*$" === d3 ? h2 = n4.ExcelCompatibleCalcMode ? 4 === o4 ? function(n5) {
                    return t5.OMt(n5);
                  } : function(n5) {
                    return !t5.OMt(n5);
                  } : 4 === o4 ? function(n5) {
                    return "" !== n5 && t5.OMt(n5);
                  } : function(n5) {
                    return !Pt(n5) && ("" === n5 || !t5.OMt(n5));
                  } : n4.fKr === n4.lKr ? (c3 = N.OJ(d3), h2 = 4 === o4 ? function(n5) {
                    return c3.lastIndex = 0, t5.OMt(n5) && c3.test(n5);
                  } : function(n5) {
                    return !Pt(n5) && (c3.lastIndex = 0, !t5.OMt(n5) || !c3.test(n5));
                  }) : (d3 = J(d3), f3 = N.OJ(d3), h2 = 4 === o4 ? function(e6) {
                    return f3.lastIndex = 0, t5.OMt(e6) && f3.test(n4.fKr.apply(e6));
                  } : function(e6) {
                    return !Pt(e6) && (f3.lastIndex = 0, !t5.OMt(e6) || !f3.test(n4.fKr.apply(e6)));
                  }) : "" === r4 ? h2 = 4 === o4 ? function(t6) {
                    return "" === t6 || A(t6);
                  } : function(t6) {
                    return "" !== t6 && !A(t6);
                  } : 4 === o4 ? (u3 = this.GDt(i4, M2.stringEqual, a2, (function(t6) {
                    return t6 && t6.toLowerCase && n4.fKr.apply(t6);
                  })), h2 = r4) : h2 = n4.ExcelCompatibleCalcMode ? function(t6) {
                    return r4 !== (t6 && t6.toLowerCase && n4.fKr.apply(t6));
                  } : function(t6) {
                    return !Pt(t6) && r4 !== (t6 && t6.toLowerCase && n4.fKr.apply(t6));
                  } : (l3 = e5.getCompareFunction(o4), "'" === r4[0] && r4.length > 1 && (r4 = r4.substr(1)), h2 = n4.ExcelCompatibleCalcMode ? function(t6) {
                    return nn(t6) && l3(n4.fKr.apply(t6), r4);
                  } : d3 ? function(t6) {
                    return !Pt(t6) && (A(t6) && (t6 = ""), !lt2(t6) && !_.W0(t6) && l3(n4.fKr.apply(t6.toString()), r4));
                  } : function(t6) {
                    return !Pt(t6) && (A(t6) && (t6 = ""), l3(n4.fKr.apply(t6.toString()), r4));
                  }), new w2(h2, u3, i4, a2);
                }, e5.prototype.GDt = function(t6, n5, e6, i4) {
                  var r4, o4, u3, s3, c3;
                  if (Ut(t6) && this.referenceCache) {
                    if (r4 = t6.getKey() + "," + n5, !(o4 = this.referenceCache.get(r4))) for (o4 = [], -1 !== e6 && this.referenceCache.set(r4, o4), u3 = t6.toArray(0, 2, false, false), s3 = 0; s3 < k(u3); s3++) o4[s3] = i4(u3[s3]);
                    return 2 === e6 ? o4.Kyn = r4 : 1 !== e6 || o4.DDt || (o4.DDt = c3 = (0, a.createMap)(), o4.forEach((function(t7, n6) {
                      var e7 = c3.get(t7);
                      e7 || (e7 = [], c3.set(t7, e7)), e7.push(n6);
                    }))), o4;
                  }
                  return i4;
                }, e5.prototype.T9t = function(r4, o4, a2) {
                  var u3, s3, c3, l3, h2 = this.p9t(o4), d3 = h2[0], v3 = h2[1], p3 = null, g3 = { value: v3 }, m3 = { value: 0 }, b3 = e5.getCompareFunction(d3);
                  if (nn(v3) && (s3 = X.parse(v3)) && (v3 = s3), Pt(v3) && (4 === d3 || 0 === d3 || 1 === d3 ? p3 = function(t6) {
                    return v3._code === (t6 && t6._code);
                  } : 2 === d3 && (p3 = function(t6) {
                    return v3._code !== (t6 && t6._code);
                  })), n4.ExcelCompatibleCalcMode) {
                    if (null === v3) 4 === d3 ? p3 = function(t6) {
                      return A(t6);
                    } : 2 === d3 && (p3 = function(t6) {
                      return !A(t6);
                    });
                    else if (e5.LDt(v3)) c3 = e5.FDt(v3), p3 = 4 === d3 ? c3 : 2 === d3 ? function(t6) {
                      return t6 !== c3;
                    } : function(t6) {
                      return ft2(t6) && b3(t6, c3);
                    };
                    else if (!e5.BDt(v3) && f2(v3, g3)) 4 === d3 ? (u3 = this.GDt(r4, M2.compatibleDoubleEqual, a2, (function(t6) {
                      return A(t6) || e5.BDt(t6) || e5.LDt(t6) || !Ot(t6, m3) ? U : m3.value;
                    })), p3 = g3.value) : p3 = 2 === d3 ? function(t6) {
                      return !lt2(t6 = _.W0(t6) ? O(t6) : t6) || t6 !== g3.value;
                    } : function(t6) {
                      return lt2(t6 = _.W0(t6) ? O(t6) : t6) && b3(t6, g3.value);
                    };
                    else if (t5.OMt(v3)) return this.PDt(r4, v3, d3, a2);
                  } else if (null === v3) p3 = 4 === d3 ? function(t6) {
                    return A(t6);
                  } : 2 === d3 ? function(t6) {
                    return !Pt(t6) && (!A(t6) && !e5.BDt(t6));
                  } : o4;
                  else if (!e5.LDt(v3) || 4 !== d3 && 2 !== d3) {
                    if (4 === d3 && i3.Common.ut(v3, Date)) v3 = v3.getTime(), p3 = function(t6) {
                      if (t6 && ct.kDt(t6, m3)) return m3.value.getTime() === v3;
                    };
                    else if (!e5.BDt(v3) && f2(v3, g3)) 4 === d3 ? (u3 = this.GDt(r4, M2.unCompatibleDoubleEqual, a2, (function(t6) {
                      return A(t6) || e5.BDt(t6) || !Ot(t6, m3) ? U : m3.value;
                    })), p3 = g3.value) : p3 = 2 === d3 ? function(t6) {
                      return !Pt(t6) && (t6 = _.W0(t6) ? O(t6) : t6, !(!A(t6) && !e5.BDt(t6) && Ot(t6, m3) && m3.value === g3.value));
                    } : function(n5) {
                      if (n5 = _.W0(n5) ? O(n5) : n5, !A(n5) && !e5.BDt(n5)) {
                        if (Ot(n5, m3)) return b3(m3.value, g3.value);
                        if (t5.OMt(n5)) return b3(n5.toString().toUpperCase(), v3.toString().toUpperCase());
                      }
                      return false;
                    };
                    else if (t5.OMt(v3)) return this.PDt(r4, v3, d3, a2);
                  } else l3 = v3.toString().toUpperCase(), p3 = 4 === d3 ? function(t6) {
                    return e5.LDt(t6) && t6.toString().toUpperCase() === l3;
                  } : 2 === d3 ? function(t6) {
                    return !Pt(t6) && (!e5.LDt(t6) || t6.toString().toUpperCase() !== l3);
                  } : function(t6) {
                    return ft2(t6) && b3(t6, l3);
                  };
                  return new w2(p3, u3, r4, a2);
                }, e5.prototype.I9t = function(t6, n5, e6, i4) {
                  var r4;
                  this.T9t(t6, n5, i4).RDt(e6);
                }, e5.prototype.Hle = function(t6, n5, e6) {
                  var i4, r4, o4, u3, s3, c3, f3, l3, h2, d3, v3, p3, g3, m3 = [], b3 = [], y3 = "s", w3 = [];
                  for (i4 = 0; i4 < t6.length; i4 += 2) "function" != typeof (r4 = this.T9t(t6[i4], t6[i4 + 1], e6 > 0 ? 2 : -1)).criteria ? (m3.push(r4.array), b3.push(r4.criteria), y3 += r4.array.Kyn) : w3.push(r4);
                  if (m3.length >= 1) {
                    if (o4 = this.referenceCache && this.referenceCache.get(y3), u3 = m3.length, s3 = void 0, c3 = void 0, !o4) {
                      for (f3 = m3[0].length, o4 = (0, a.createMap)(), this.referenceCache && this.referenceCache.set(y3, o4), o4.oAn = [], l3 = 1; l3 < u3; l3++) o4.oAn[l3] = (0, a.createMap)();
                      for (l3 = 0; l3 < f3; l3++) {
                        for (c3 = m3[0][l3], s3 = 1; s3 < u3; s3++) (h2 = o4.oAn[s3].get(m3[s3][l3])) || (h2 = o4.oAn[s3].size + 1, o4.oAn[s3].set(m3[s3][l3], h2)), c3 += "," + h2;
                        (d3 = o4.get(c3)) || (d3 = [], o4.set(c3, d3)), d3.push(l3);
                      }
                    }
                    for (c3 = b3[0], s3 = 1; s3 < u3; s3++) {
                      if (!(h2 = o4.oAn[s3].get(b3[s3]))) return;
                      c3 += "," + h2;
                    }
                    if (v3 = o4.get(c3)) {
                      for (p3 = void 0, w3.length > 1 ? p3 = function(t7) {
                        for (var e7 = 0; e7 < w3.length; e7++) if (!w3[e7].A9t(t7)) return;
                        return n5(t7);
                      } : 1 === w3.length ? (g3 = w3[0], p3 = function(t7) {
                        if (g3.A9t(t7)) return n5(t7);
                      }) : p3 = n5, l3 = 0; l3 < v3.length; l3++) if (p3(v3[l3])) return;
                    }
                  } else w3[0].RDt((function(t7) {
                    for (var e7 = 1; e7 < w3.length; e7++) if (!w3[e7].A9t(t7)) return;
                    return n5(t7);
                  }));
                }, e5;
              })(), t5.RangeCriteriaManager = x2, R2 = (function() {
                function n5() {
                }
                return n5.d9t = function(t6) {
                  var n6 = Z(t6);
                  return E.ukt(t6, n6 + 1) ? n6 + 1 : n6;
                }, n5.x9t = function(t6) {
                  var n6 = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16][t6];
                  return t6 > 308 && (t6 = 308), A(n6) ? Y(10, parseFloat(t6)) : n6;
                }, n5.z9t = function(t6) {
                  var n6 = W(t6);
                  return E.ukt(t6, n6 - 1) ? n6 - 1 : n6;
                }, n5.Lkt = function(t6, e5) {
                  for (var i4, r4, o4 = n5.x9t(H(e5)), a2 = W, u3 = Z, s3 = e5, c3 = s3 < 0 ? t6 / o4 : t6 * o4; H(s3) > 2 && c3 === 1 / 0; ) s3 = Math.round(s3 / 2), o4 = n5.x9t(H(s3)), c3 = s3 < 0 ? t6 / o4 : t6 * o4;
                  return i4 = (t6 = c3).toExponential(), (r4 = j(i4.split("e")[1]) + 1) <= 15 && r4 >= -85 && (t6 = parseFloat(t6.toFixed(15 - r4))), t6 = t6 < 0 ? a2(t6 - 0.5) : u3(t6 + 0.5), g2(t6 = e5 < 0 ? t6 * o4 : t6 / o4);
                }, n5.g9t = function(t6, n6) {
                  var e5, i4;
                  if (t6 < 0 || n6 < 0 || t6 < n6) return tt;
                  for (e5 = 1, n6 = Math.min(t6 - n6, n6), i4 = 1; i4 <= n6; i4++) e5 *= t6 - i4 + 1, e5 /= i4;
                  return g2(e5);
                }, n5.N9t = function(t6, n6) {
                  if (t6 < 0 && H(n6) < 1) {
                    var e5 = (1 / n6).toPrecision(15);
                    if (parseFloat(e5) === parseInt(e5, 10) && parseInt(e5, 10) % 2 != 0) return -Y(-t6, n6);
                  }
                  return Y(t6, n6);
                }, n5.kkt = function(n6, e5) {
                  var i4 = H(n6) > 0.5 ? Y(1 + n6, e5) : V(e5 * z(1 + n6));
                  return isFinite(i4) ? D(i4) && (i4 = 5e-324) : i4 === Number.POSITIVE_INFINITY ? i4 = t5.B6t : i4 === Number.NEGATIVE_INFINITY && (i4 = -t5.B6t), i4;
                }, n5.vkt = function(t6, n6) {
                  return (V(t6) + (n6 ? -1 : 1) * V(-t6)) / 2;
                }, n5.ckt = function(t6, n6) {
                  return D(t6) ? t6 : D(n6) ? n6 : 1 !== n6 && 1 === t6 || 0 !== n6 && n6 !== Number.POSITIVE_INFINITY ? 10 === n6 ? Math.log10(t6) : z(t6) / z(n6) : NaN;
                }, n5;
              })(), t5.MathHelper = R2;
            })(mt || (mt = {})), n4.Functions = mt, n4.createRange = rn, bt = function(t5, n5) {
              var e4 = t5.localeCompare(n5);
              return 0 === e4 && t5 !== n5 ? t5 > n5 ? 1 : -1 : e4;
            }, n4.Wkt = on, n4.$kt = an, n4.GYr = un, n4.isFunction = sn, n4.isLambdaFunction = cn, n4.isExpression = fn, n4.getFunctionAcceptsArray = ln, n4.getFunctionAcceptsReference = hn, n4.getFunctionArrayArgumentEvaluateMode = dn, yt = (function(t5) {
              function e4(n5) {
                var e5 = t5.call(this, G) || this;
                return e5.oyt = n5, e5;
              }
              return wt(e4, t5), e4.prototype.startCalculation = function() {
              }, e4.prototype.endCalculation = function(t6) {
              }, e4.prototype.getValue = function() {
                return n4.errors.Reference;
              }, e4.prototype.getReference = function() {
                var t6 = new ht(this, [vn(0, 0)]);
                return t6.getValue = function() {
                  return n4.errors.Reference;
                }, t6;
              }, e4.prototype.referenceToArray = function() {
                var t6 = [n4.errors.Reference];
                return t6.isError = true, t6;
              }, e4.prototype.getName = function() {
                return this.oyt;
              }, e4.prototype.setValue = function() {
              }, e4;
            })(dt), n4.ErrorSource = yt;
          }, "./src/calc.entry.ts": function(t4, n4, e3) {
            var i3, r2, o2 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), a = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || o2(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), a(e3("./src/Parser.ts"), n4), a(e3("./src/evaluator.ts"), n4), a(e3("./src/referenceExpression.ts"), n4), a(e3("./src/map.ts"), n4), a(e3("./src/set.ts"), n4), i3 = e3("./src/calc.ts"), Object.defineProperty(n4, "supportRowColumnFormula", { set: function(t5) {
              i3.supportRowColumnFormula = t5;
            }, get: function() {
              return i3.supportRowColumnFormula;
            } }), Object.defineProperty(n4, "approximatelyEqual", { set: function(t5) {
              i3.approximatelyEqual = t5;
            }, get: function() {
              return i3.approximatelyEqual;
            } }), a(e3("./src/calc.ts"), n4), r2 = e3("./src/calc.common.ts"), Object.defineProperty(n4, "ExcelCompatibleCalcMode", { set: function(t5) {
              r2.ExcelCompatibleCalcMode = t5;
            }, get: function() {
              return r2.ExcelCompatibleCalcMode;
            } }), Object.defineProperty(n4, "TimeoutNodes", { set: function(t5) {
              r2.TimeoutNodes = t5;
            }, get: function() {
              return r2.TimeoutNodes;
            } }), Object.defineProperty(n4, "TimeoutTime", { set: function(t5) {
              r2.TimeoutTime = t5;
            }, get: function() {
              return r2.TimeoutTime;
            } }), Object.defineProperty(n4, "TimeoutPaintDelay", { set: function(t5) {
              r2.TimeoutPaintDelay = t5;
            }, get: function() {
              return r2.TimeoutPaintDelay;
            } }), Object.defineProperty(n4, "usedbcs", { set: function(t5) {
              r2.usedbcs = t5;
            }, get: function() {
              return r2.usedbcs;
            } }), a(e3("./src/calc.common.ts"), n4);
          }, "./src/calc.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q = this && this.qKr || (J = function(t5, n5) {
              return J = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, J(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              J(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), K = this && this.nJr || function() {
              return K = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, K.apply(this, arguments);
            }, J;
            function X(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2 = t5.w3 && t5.w3.getSource();
              s2 && (e4 = t5.row, i4 = t5.column, r3 = s2.getValue(e4, i4), (u2 = (a2 = (o3 = s2) && o3.Mf) && t5.isDefault) && (a2.Dhe = t5.isDefault()), s2.setValue(e4, i4, n5, r3, m, true), u2 && delete a2.Dhe);
            }
            function q(t5) {
              t5.forEach((function(t6) {
                t6[1].colCount > 1 && t6[0].gF(t6[1].row, t6[1].col + 1, 1, t6[1].colCount - 1), t6[1].rowCount > 1 && t6[0].gF(t6[1].row + 1, t6[1].col, t6[1].rowCount - 1, t6[1].colCount);
              }));
            }
            function $(t5, n5, e4, i4, r3, o3) {
              tt(t5.QDt, t5.qkt) && (t5.QDt && (nt(e4, t5, t5.QDt, false), delete t5.QDt), t5.qkt && (nt(e4, t5, t5.qkt, true, o3), t5.QDt = t5.qkt, delete t5.qkt));
            }
            function tt(t5, n5) {
              return (!k(t5) || !k(n5)) && (!(!k(t5) && !k(n5)) || Object.keys(t5).join() !== Object.keys(n5).join());
            }
            function nt(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2;
              for (o3 in e4) if (e4.hasOwnProperty(o3)) {
                if (a2 = e4[o3], !(u2 = t5.rO[a2.id])) continue;
                dt(a2) ? (s2 = u2.uT(true)).JDt(a2.rowUndefine ? -1 : a2.row, a2.colUndefine ? -1 : a2.col, a2.rowUndefine ? -1 : a2.rowCount, a2.colUndefine ? -1 : a2.colCount, n5, i4, true, r3) : ((c2 = u2.oT(a2.row, a2.col, true)) && c2.KDt(0, n5, i4), r3 && c2 && c2.k1 && n5.delay++);
              }
            }
            function et(t5, n5, e4) {
              t5[n5] || (t5[n5] = []), t5[n5].push(e4);
            }
            function it(t5, n5, e4) {
              var i4, r3 = t5[n5];
              if (r3) {
                for (i4 = 0; i4 < r3.length; i4++) if (r3[i4] === e4) return void r3.splice(i4, 1);
              }
            }
            function rt(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2 = 0;
              for (-1 === i4 && (n5 = 0, i4 = t5.rT.getRowCount()), -1 === r3 && (e4 = 0, r3 = t5.rT.getColumnCount()), o3 = 0; o3 < i4; o3++) for (a2 = 0; a2 < r3; a2++) (u2 = t5.oT(o3 + n5, a2 + e4, true)) && u2.k1 && s2++;
              return s2;
            }
            function ot(t5, n5) {
              var e4 = -1 === t5.maxY && -1 === t5.minY ? -1 : t5.maxY - t5.minY + 1, i4 = -1 === t5.maxX && -1 === t5.minX ? -1 : t5.maxX - t5.minX + 1, r3 = n5[0];
              return (r3 = "!" === r3 || "?" === r3 ? r3 : "") + t5.minY + "," + t5.minX + "," + e4 + "," + i4;
            }
            function at(t5, n5) {
              var e4, i4, r3;
              for (e4 in t5) (i4 = t5[e4]) && (n5 ? at(i4) : (r3 = i4.calc) && r3.CMt());
            }
            function ut(t5, n5) {
              if (!t5.function) {
                var e4 = n5.getNameInfo(t5.functionName);
                e4 && (t5.functionName = e4.Zc);
              }
            }
            function st(t5, n5, e4, i4, s2, c2, f2) {
              var l2, h2, d2, v2, p2, b2, w2, S2, T2, x2, A2, I2, N2, j2, D2, _2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2 = t5.row, it2 = t5.column, rt2 = [], ot2 = 0;
              for (rt2[ot2] = { expr: n5, acceptsArray: c2 || false, acceptsRef: f2 || false, index: -1 }, l2 = 0, h2 = 0, d2 = false, p2 = i4, b2 = s2, w2 = false; ot2 >= 0; ) {
                if (S2 = rt2[ot2], ot2--, T2 = S2.acceptsArray, x2 = S2.acceptsRef, n5 = S2.expr, A2 = g, n5) {
                  if (7 === n5.type) {
                    if (G2 = (P2 = n5).arguments.length, !P2.function) {
                      if (!t5) {
                        A2 = (0, r2.Syt)(y);
                        continue;
                      }
                      P2.function = t5.getFunction(P2.functionName), ut(P2, t5);
                    }
                    if (U2 = P2.function, H2 = S2.index, B2 = S2.neeedExpendindexs, H2 < 0 ? (S2.arrayArgumentEvaluateMode = w2, S2.arrayFormulaCatchValue = e4, (0, r2.getFunctionArrayArgumentEvaluateMode)(U2) && (w2 = (0, r2.getFunctionArrayArgumentEvaluateMode)(U2)), S2.args = []) : ((0, r2.getFunctionAcceptsArray)(U2, H2) ? l2-- : d2 && (B2 || (B2 = [], S2.neeedExpendindexs = B2), P2.arguments[H2], B2.push(H2)), S2.args.push(I2)), H2 === G2 - 1) {
                      if (w2 = S2.arrayArgumentEvaluateMode, e4 = S2.arrayFormulaCatchValue, z2 = false, (V2 = S2.args) && V2.length > 0) {
                        for (Y2 = 0; Y2 < V2.length; Y2++) if (V2[Y2] !== P2.arguments[Y2]) {
                          z2 = true;
                          break;
                        }
                      }
                      A2 = z2 ? (0, r2.YJ)(P2, V2) : n5, B2 && B2.length > 0 && (A2 = (0, r2.createExpandExpression)(A2, B2), d2 = true);
                    } else 0 === H2 && U2 && 3 === (0, r2.getFunctionArrayArgumentEvaluateMode)(U2) && 3 === w2 && (w2 = 0), d2 = false, H2++, S2.index = H2, (0, r2.getFunctionAcceptsArray)(U2, H2) && l2++, rt2[++ot2] = S2, ++ot2, w2 && !(0, r2.getFunctionArrayArgumentEvaluateMode)(U2) && 2 === w2 && (w2 = null), 1 === w2 && !(0, r2.getFunctionArrayArgumentEvaluateMode)(U2) && (0, r2.getFunctionAcceptsArray)(U2, H2) && (w2 = null), rt2[ot2] = { expr: P2.arguments[H2], acceptsArray: (0, r2.getFunctionAcceptsArray)(U2, H2), acceptsRef: (0, r2.getFunctionAcceptsReference)(U2, H2), index: -1 };
                  } else if (1 === n5.type && n5.hmt()) ;
                  else if (1 === n5.type || 13 === n5.type) Z2 = 13 === n5.type, W2 = n5.source, Q2 = n5, x2 && (T2 || !e4 && 1 !== w2 && 3 !== w2) || et2 < 0 || it2 < 0 || 4 === w2 || 5 === w2 || Q2.source && Q2.source.ayt || (l2 > 0 && !e4 && 1 !== w2 && 3 !== w2 || 0 === l2 || 2 === w2 ? (N2 = Q2.getRange(et2, it2), Z2 ? n5.wsr = true : e4 || (x2 || T2) && 1 === w2 ? !Q2.isFullColumn && 1 !== N2.rowCount && p2 >= N2.rowCount || !Q2.isFullRow && 1 !== N2.colCount && b2 >= N2.colCount ? A2 = (0, r2.Syt)(C) : (L2 = (Q2.isFullColumn ? 0 : N2.row) + (1 === N2.rowCount ? 0 : p2), F2 = (Q2.isFullRow ? 0 : N2.col) + (1 === N2.colCount ? 0 : b2), A2 = (0, o2.knt)(W2, n5.endSource, L2, F2, false, false)) : N2.rowCount > 1 && N2.colCount > 1 || N2.rowCount > 1 && !Q2.isFullColumn && (et2 < N2.row || et2 >= N2.row + N2.rowCount) || N2.colCount > 1 && !Q2.isFullRow && (it2 < N2.col || it2 >= N2.col + N2.colCount) ? A2 = (0, r2.Syt)(M) : (L2 = Q2.isFullColumn || N2.rowCount > 1 ? et2 : N2.row, F2 = Q2.isFullRow || N2.colCount > 1 ? it2 : N2.col, A2 = (0, o2.knt)(W2, n5.endSource, L2, F2, false, false))) : d2 = true);
                  else if (9 === n5.type) K2 = (0, r2.gDt)(n5.operatorType), e4 && k(n5.value2) && (K2 = false), -1 === S2.index ? (S2.index = n5.value2 ? 0 : 1, rt2[++ot2] = S2, rt2[++ot2] = ft(n5.value, K2, K2, -1)) : 0 === S2.index ? (I2 !== n5.value && (A2 = (0, r2.rbt)(n5.operatorType, I2, n5.value2), S2.expr = A2), d2 && ((B2 = []).push(0), S2.neeedExpendindexs = B2, d2 = false), S2.index = 1, rt2[++ot2] = S2, rt2[++ot2] = ft(n5.value2, K2, K2, -1)) : (A2 = n5.value2 && I2 !== n5.value2 ? (0, r2.rbt)(n5.operatorType, n5.value, I2) : k(n5.value2) && I2 !== n5.value ? (0, r2.rbt)(n5.operatorType, I2, m) : n5, B2 = S2.neeedExpendindexs, d2 && (B2 ? B2.push(1) : B2 = [n5.value2 && n5.value2 === v2 ? 1 : 0]), B2 && (A2 = (0, r2.createExpandExpression)(A2, B2), d2 = true));
                  else if (10 === n5.type) -1 === S2.index ? (S2.index = 0, rt2[++ot2] = S2, rt2[++ot2] = ft(n5.value, T2, x2, -1)) : n5.value !== I2 && (A2 = (0, r2.Ayt)(I2));
                  else if (8 === n5.type) 1 === S2.index ? (h2--, A2 = I2, S2.context && (t5 = S2.context)) : (h2++, rt2[++ot2] = ft(n5, T2, x2, 1, t5), J2 = void 0, X2 = t5, q2 = void 0, n5.bwr || (n5.source ? (q2 = n5.source, (X2 = new u.EvaluateContext(q2)).cloneFrom(t5), J2 = q2.getCustomName(n5.value)) : (J2 = t5.getName(n5.value, null, h2 >= 2), t5.source && (!t5.source.getCustomName(n5.value) || h2 >= 2) && (X2 = new u.GloableEvaluateContext(t5.source)).cloneFrom(t5))), h2 >= 2 && (n5.Swr = true), J2 && (t5 = X2 || t5, rt2[++ot2] = ft(J2, T2, x2, -1, t5)));
                  else if (6 === n5.type) {
                    if ($2 = n5, !T2 && (l2 > 0 || e4 || 1 === w2 || 3 === w2)) d2 = true, v2 = n5;
                    else if (!T2 && 0 === l2) if (p2 >= $2.value.RowCount && $2.value.RowCount > 1 || b2 >= $2.value.colCount && $2.value.colCount > 1) A2 = (0, r2.Syt)(C);
                    else try {
                      1 === $2.value.RowCount && (p2 = 0), 1 === $2.value.colCount && (b2 = 0), A2 = typeof (tt2 = $2.value.getValue(p2, b2)) === E ? (0, r2.createStringExpression)(tt2) : typeof tt2 === O ? (0, r2.createNumberExpression)(tt2) : typeof tt2 === R ? (0, r2.createBooleanExpression)(tt2) : tt2._error ? (0, r2.Syt)(tt2) : (nt2 = new a.Parser()).parse(t5.source.getParserContext(t5.useR1C1, lt(0, 0)), tt2.toString());
                    } catch (t6) {
                      A2 = (0, r2.Syt)(C);
                    }
                  }
                } else ;
                A2 === g && (A2 = n5), I2 = A2;
              }
              return A2;
            }
            function ct(t5, n5, e4, i4, s2, c2, f2) {
              var l2, h2, d2, v2, p2, b2, w2, S2, T2, x2, A2, I2, N2, j2, D2, _2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, st2, ct2 = t5.row, ht2 = t5.column, dt2 = [], vt2 = 0;
              for (dt2[vt2] = { expr: n5, acceptsArray: c2 || false, acceptsRef: f2 || false, index: -1 }, l2 = 0, h2 = 0, d2 = false, p2 = i4, b2 = s2, w2 = false; vt2 >= 0; ) {
                if (S2 = dt2[vt2], vt2--, T2 = S2.acceptsArray, x2 = S2.acceptsRef, n5 = S2.expr, A2 = g, n5) {
                  if (7 === n5.type) {
                    if (U2 = (G2 = (P2 = n5).arguments).length, !P2.function) {
                      if (!t5) {
                        A2 = (0, r2.Syt)(y);
                        continue;
                      }
                      H2 = P2.functionName, P2.function = t5.getFunction(H2), ut(P2, t5);
                    }
                    if (V2 = P2.function, z2 = S2.index, B2 = S2.neeedExpendindexs, z2 < 0 ? (S2.arrayArgumentEvaluateMode = w2, S2.arrayFormulaCatchValue = e4, (0, r2.getFunctionArrayArgumentEvaluateMode)(V2) && (w2 = (0, r2.getFunctionArrayArgumentEvaluateMode)(V2)), S2.args = []) : ((0, r2.getFunctionAcceptsArray)(V2, z2) ? l2-- : d2 && (B2 || (B2 = [], S2.neeedExpendindexs = B2), P2.arguments[z2], B2.push(z2)), S2.args.push(I2)), z2 === U2 - 1) {
                      if (w2 = S2.arrayArgumentEvaluateMode, e4 = S2.arrayFormulaCatchValue, Z2 = false, (Y2 = S2.args) && Y2.length > 0) {
                        for (W2 = 0; W2 < Y2.length; W2++) if (Y2[W2] !== P2.arguments[W2]) {
                          Z2 = true;
                          break;
                        }
                      }
                      A2 = Z2 ? (0, r2.YJ)(P2, Y2) : n5, B2 && B2.length > 0 && (A2 = (0, r2.createExpandExpression)(A2, B2), d2 = true);
                    } else 0 === z2 && V2 && 3 === (0, r2.getFunctionArrayArgumentEvaluateMode)(V2) && 3 === w2 && (w2 = 0), d2 = false, z2++, S2.index = z2, (0, r2.getFunctionAcceptsArray)(V2, z2) && l2++, dt2[++vt2] = S2, dt2[++vt2] = { expr: P2.arguments[z2], acceptsArray: (0, r2.getFunctionAcceptsArray)(V2, z2), acceptsRef: (0, r2.getFunctionAcceptsReference)(V2, z2), index: -1 };
                  } else if (1 === n5.type && n5.hmt()) ;
                  else if (1 === n5.type || 13 === n5.type) Q2 = 13 === n5.type, K2 = n5.source, J2 = n5, f2 || x2 && (T2 || !e4 && 1 !== w2 && 3 !== w2) || ct2 < 0 || ht2 < 0 ? x2 || T2 || !t5.pUr || (n5.ensureSingle = true) : l2 > 0 && !e4 && 1 !== w2 && 3 !== w2 || 0 === l2 || 2 === w2 ? Q2 ? n5.wsr = true : (N2 = J2.getRange(ct2, ht2), e4 || (x2 || T2) && 1 === w2 ? !J2.isFullColumn && 1 !== N2.rowCount && p2 >= N2.rowCount || !J2.isFullRow && 1 !== N2.colCount && b2 >= N2.colCount ? A2 = (0, r2.Syt)(C) : (L2 = (J2.isFullColumn ? 0 : N2.row) + (1 === N2.rowCount ? 0 : p2), F2 = (J2.isFullRow ? 0 : N2.col) + (1 === N2.colCount ? 0 : b2), A2 = (0, o2.knt)(K2, n5.endSource, L2, F2, false, false)) : N2.rowCount > 1 && N2.colCount > 1 || N2.rowCount > 1 && !J2.isFullColumn && (ct2 < N2.row || ct2 >= N2.row + N2.rowCount) || N2.colCount > 1 && !J2.isFullRow && (ht2 < N2.col || ht2 >= N2.col + N2.colCount) ? A2 = (0, r2.Syt)(M) : (L2 = J2.isFullColumn || N2.rowCount > 1 ? ct2 : N2.row, F2 = J2.isFullRow || N2.colCount > 1 ? ht2 : N2.col, A2 = (0, o2.knt)(K2, n5.endSource, L2, F2, false, false))) : d2 = true;
                  else if (9 === n5.type) X2 = (0, r2.gDt)(n5.operatorType), q2 = x2 && t5.source && t5.source.Lbt && t5.source.Lbt.allowDynamicArray, -1 === S2.index ? (e4 && k(n5.value2) && (X2 = T2 = false), S2.index = n5.value2 ? 0 : 1, dt2[++vt2] = S2, dt2[++vt2] = ft(n5.value, X2 || T2, X2 || q2, -1)) : 0 === S2.index ? (I2 !== n5.value && (A2 = (0, r2.rbt)(n5.operatorType, I2, n5.value2), S2.expr = A2), d2 && ((B2 = []).push(0), S2.neeedExpendindexs = B2, d2 = false), S2.index = 1, dt2[++vt2] = S2, dt2[++vt2] = ft(n5.value2, X2 || T2, X2 || q2, -1)) : (A2 = n5.value2 && I2 !== n5.value2 ? (0, r2.rbt)(n5.operatorType, n5.value, I2) : k(n5.value2) && I2 !== n5.value ? (0, r2.rbt)(n5.operatorType, I2, m) : n5, B2 = S2.neeedExpendindexs, d2 && (B2 ? B2.push(1) : B2 = [n5.value2 && n5.value2 === v2 ? 1 : 0]), B2 && (A2 = (0, r2.createExpandExpression)(A2, B2), d2 = true));
                  else if (10 === n5.type) -1 === S2.index ? (S2.index = 0, dt2[++vt2] = S2, dt2[++vt2] = ft(n5.value, T2, x2, -1)) : n5.value !== I2 && (A2 = (0, r2.Ayt)(I2));
                  else if (8 === n5.type) 1 === S2.index ? (n5.jwt = m, h2--, A2 = I2, S2.context && (t5 = S2.context)) : n5.jwt || (n5.jwt = true, h2++, dt2[++vt2] = ft(n5, T2, x2, 1, t5), $2 = void 0, tt2 = t5, nt2 = void 0, n5.bwr || (n5.source ? (nt2 = n5.source, (tt2 = new u.EvaluateContext(nt2)).cloneFrom(t5), $2 = nt2.getCustomName(n5.value)) : ($2 = t5.getName(n5.value, null, h2 >= 2), t5.source && (!t5.source.getCustomName(n5.value) || h2 >= 2) && (tt2 = new u.GloableEvaluateContext(t5.source)).cloneFrom(t5))), h2 >= 2 && (n5.Swr = true), $2 && (t5 = tt2 || t5, dt2[++vt2] = ft($2, T2, x2, -1, t5)));
                  else if (6 === n5.type) {
                    if (et2 = n5, it2 = n5.value, !T2 && (l2 > 0 || e4 || 1 === w2 || 3 === w2)) d2 = true, v2 = n5;
                    else if (!T2 && 0 === l2) {
                      if (rt2 = it2.getRowCount(), ot2 = it2.getColumnCount(), p2 >= rt2 && rt2 > 1 || b2 >= ot2 && ot2 > 1) A2 = (0, r2.Syt)(C);
                      else if (e4 || !(t5.source && t5.source.Lbt && t5.source.Lbt.allowDynamicArray)) try {
                        1 === rt2 && (p2 = 0), 1 === ot2 && (b2 = 0), A2 = typeof (at2 = et2.value.getValue(p2, b2)) === E ? (0, r2.createStringExpression)(at2) : typeof at2 === O ? (0, r2.createNumberExpression)(at2) : typeof at2 === R ? (0, r2.createBooleanExpression)(at2) : at2._error ? (0, r2.Syt)(at2) : (st2 = new a.Parser()).parse(t5.source.getParserContext(t5.useR1C1, lt(0, 0)), at2.toString());
                      } catch (t6) {
                        A2 = (0, r2.Syt)(C);
                      }
                    }
                  }
                } else ;
                A2 === g && (A2 = n5), I2 = A2;
              }
              return A2;
            }
            function ft(t5, n5, e4, i4, r3) {
              return { expr: t5, acceptsArray: n5, acceptsRef: e4, index: i4, context: r3 };
            }
            function lt(t5, n5) {
              return { row: t5, col: n5 };
            }
            function ht(t5, n5, e4, i4) {
              return { row: t5, col: n5, rowCount: e4, colCount: i4 };
            }
            function dt(t5) {
              return -1 === t5.row || -1 === t5.col || t5.rowUndefine || t5.colUndefine || t5.rowCount * t5.colCount > 1;
            }
            function vt(t5, n5, e4, i4, r3) {
              i4 === r3 || !k(i4) && !k(r3) || k(t5) || (!k(i4) && k(r3) && t5.removeRowAndColInfo(n5, e4), k(i4) && !k(r3) && t5.addRowAndColInfo(n5, e4));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Rwt = n4.eV = n4.h0t = n4.Pyt = n4.RangeCalc = n4.NameCalc = n4.ColumnCalc = n4.RowCalc = n4.CellCalc = n4.CalcSourceModel = n4.CalcArrayHelper = n4.CalcService = n4.PathCalc = n4.NameIDCalc = n4.BaseCalc = n4.supportRowColumnFormula = n4.approximatelyEqual = void 0, i3 = e3("Common"), r2 = e3("./src/calc.common.ts"), o2 = e3("./src/referenceExpression.ts"), a = e3("./src/Parser.ts"), u = e3("./src/evaluator.ts"), s = e3("./src/map.ts"), c = e3("./src/set.ts"), f = e3("./src/event-notify.ts"), l = i3.Common.ut, h = i3.Common.J8, d = i3.Common.X8, v = i3.Common.zf, p = i3.Common.ct, g = null, m = void 0, b = Math.abs, y = r2.Errors.Name, w = r2.Errors.Reference, M = r2.Errors.Value, C = r2.Errors.NotAvailable, S = r2.Errors.Calc, T = r2.Convert.Nh, x = r2.Convert.LE, A = v.Gmt, I = i3.Common.lt, k = I.ht, N = Math.min, j = {}, D = "rowSliceListeners", _ = "nameIDListeners", O = "number", E = "string", R = "boolean", L = function(t5, n5, e4) {
              if (void 0 === t5 && (t5 = 0), void 0 === n5 && (n5 = 0), t5 === n5 || l(t5, r2.CalcError) && l(n5, r2.CalcError) && t5._code === n5._code) return true;
              var i4 = 1;
              return l(t5, Date) && l(n5, Date) ? i4 = 864e5 : l(t5, Date) ? t5 = p.o0(t5) : l(n5, Date) && (n5 = p.o0(n5)), b(n5 - t5) / i4 < e4;
            }, n4.approximatelyEqual = L, n4.supportRowColumnFormula = false, F = (function() {
              function t5(t6) {
                this.aT = [], this.w3 = t6;
              }
              return t5.prototype.getKey = function() {
                return "";
              }, t5.prototype.hasListeners = function() {
                var t6, n5, e4, i4, r3 = this, o3 = r3.aT;
                for (t6 = 0, n5 = o3; t6 < n5.length; t6++) if ((i4 = this[e4 = n5[t6]]) && i4.size > 0) return true;
                return false;
              }, t5.prototype.Iwt = function(t6, n5, e4) {
                var i4, r3, o3, a2;
                if (n5.e_t) e4 || (delete n5.e_t, this.Iwt(t6, n5, e4), n5.e_t = true), this.i_t || (this.i_t = (0, s.createMap)()), i4 = this.i_t;
                else {
                  if (!this[t6]) {
                    if (!e4) return;
                    this.aT.push(t6), this[t6] = (0, s.createMap)();
                  }
                  i4 = this[t6];
                }
                r3 = n5.getKey(), n5.ebt && n5.ebt.length >= 1 && (n5.e_t || (a2 = (o3 = n5.ebt)[o3.length - 1]).push(this), r3 = "?" + r3), e4 ? i4.set(r3, n5) : i4.delete(r3);
              }, t5.prototype.KDt = function(t6, n5, e4) {
                var i4 = this[t6], r3 = n5.getKey();
                r3 = "!" + r3, i4 || (this.aT.push(t6), i4 = this[t6] = (0, s.createMap)()), e4 ? i4.set(r3, n5) : i4.delete(r3);
              }, t5.prototype.mB = function() {
                var t6, n5, e4, i4, r3 = [];
                for (t6 = 0; t6 < arguments.length; t6++) r3[t6] = arguments[t6];
                for (n5 = this.aT, e4 = 0; e4 < n5.length; e4++) (i4 = this[n5[e4]]) && i4.forEach((function(t7) {
                  t7 && t7.r_t();
                }));
                this.i_t && this.i_t.forEach((function(t7) {
                  t7 && t7.r_t();
                }));
              }, t5.prototype.o_t = function() {
                var t6, n5, e4, i4, r3 = [];
                for (t6 = 0; t6 < arguments.length; t6++) r3[t6] = arguments[t6];
                for (n5 = this.aT, e4 = 0; e4 < n5.length; e4++) (i4 = this[n5[e4]]) && i4.forEach((function(t7) {
                  t7 && !t7.k1 && t7.vyt();
                }));
              }, t5.prototype.VBe = function() {
                var t6, n5, e4, i4, r3, o3 = [];
                for (n5 = 0; n5 < arguments.length; n5++) o3[n5] = arguments[n5];
                return e4 = this, i4 = false, (r3 = this[0]) && r3.forEach((function(t7) {
                  t7 && t7.k1 && (i4 = true);
                })), i4 || (null === (t6 = e4.w3.uT()) || void 0 === t6 ? void 0 : t6.VBe(e4.row, e4.column));
              }, t5.prototype.zBe = function(t6) {
                var n5 = t6 ? 1 : -1, e4 = this[0];
                e4 && e4.forEach((function(t7) {
                  t7 && (t7.delay += n5);
                }));
              }, t5.prototype.a_t = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = [];
                for (t6 = 0; t6 < arguments.length; t6++) h2[t6] = arguments[t6];
                for (n5 = h2[0], e4 = this, i4 = this.aT, r3 = n5 ? 1 : -1, o3 = h2[1], a2 = 0; a2 < i4.length; a2++) (u2 = this[i4[a2]]) && u2.forEach((function(t7, i5) {
                  if ("?" === i5[0]) {
                    if (!n5 && e4.u_t) for (; e4.u_t.indexOf(t7) >= 0; ) e4.u_t.splice(e4.u_t.indexOf(t7), 1), t7.delay--;
                  } else t7 && (t7.delay += r3, n5 && t7.s_t && t7.s_t());
                }));
                if ((s2 = o3 ? o3.$bt : e4.node && e4.node.$bt) && s2.isDynamicArray) for (c2 = 0; c2 < s2.rowCount; c2++) for (f2 = 0; f2 < s2.colCount; f2++) 0 === c2 && 0 === f2 || (l2 = e4.w3.getNode(c2 + s2.row, f2 + s2.col)) && l2.calc && l2.calc.a_t(n5);
              }, t5.prototype.r_t = function() {
              }, t5.prototype.vyt = function() {
              }, t5.prototype.CMt = function() {
              }, t5.prototype.yB = function() {
              }, t5.prototype.c_t = function() {
                return this.w3.op();
              }, t5;
            })(), n4.BaseCalc = F, B = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.name = e4, i4.delay = 0, i4;
              }
              return Q(n5, t5), n5.prototype.getKey = function() {
                var t6 = this, n6 = t6.w3, e4 = null === n6 ? "" : n6.rT.id + ",";
                return e4 + t6.name;
              }, n5.prototype.yB = function() {
                var t6 = this;
                t6.w3.f_t(t6.name, true);
              }, n5.prototype.CMt = function() {
                var t6 = this;
                t6.w3.f_t(t6.name, false);
              }, n5.prototype.r_t = function() {
                this.c_t().onAddAdjust(this, 3);
              }, n5.prototype.vyt = function() {
                this.c_t().I3(this, 3);
              }, n5;
            })(F), n4.NameIDCalc = B, P = (function(t5) {
              function n5(n6, e4, i4) {
                var r3 = t5.call(this, n6) || this;
                return r3.id = e4, r3.name = i4, r3.delay = 0, r3;
              }
              return Q(n5, t5), n5.prototype.getKey = function() {
                var t6 = this;
                return t6.w3.getName() + "," + t6.id + "#" + t6.name;
              }, n5.prototype.yB = function() {
                var t6 = this;
                t6.w3.cyt(t6.id, t6.name, true);
              }, n5.prototype.CMt = function() {
                var t6 = this;
                t6.w3.cyt(t6.id, t6.name, false);
              }, n5.prototype.c_t = function() {
                return this.w3.Lbt;
              }, n5.prototype.r_t = function() {
                this.c_t().onAddAdjust(this, 6);
              }, n5.prototype.vyt = function() {
                this.c_t().I3(this, 6);
              }, n5;
            })(F), n4.PathCalc = P, G = (function() {
              function t5() {
                this.calculationMode = 0, this.rO = {}, this.useR1C1 = false, this.allowDynamicArray = false, this.iterativeCalculation = true, this.iterativeCalculationMaximumIterations = 1e3, this.iterativeCalculationMaximumChange = 0.01, this.dynamicReferences = true, this.HDt = 0, this.zDt = 0, this.VDt = [];
                var t6 = this;
                t6.j3t = new a.Parser(), t6.MX = new u.Evaluator(t6), t6.YDt = t6.mwt && t6.mwt(), t6.addResolver(new a.DefaultTokenResolver()), t6.ZDt = { WDt: true }, t6.qu = 0;
              }
              return t5.prototype.l_t = function(t6, n5, e4) {
                var i4, r3, o3 = this;
                if (o3.h_t = o3.h_t || {}, i4 = o3.h_t[n5] = o3.h_t[n5] || [], e4) i4.push(t6);
                else for (r3 = 0; r3 < i4.length; r3++) i4[r3] === t6 && (i4.splice(r3, 1), r3--);
              }, t5.prototype.AMt = function(t6) {
                var n5 = this, e4 = n5.h_t && n5.h_t[t6];
                e4 && e4.forEach((function(t7) {
                  t7.vyt();
                }));
              }, t5.prototype.recalcAfterOperate = function(t6) {
                this.AMt(t6), this.IsSuspended() || this.recalculateAll(false);
              }, t5.prototype.getResolvers = function() {
                return this.VDt;
              }, t5.prototype.addResolver = function(t6) {
                var n5, e4 = this.VDt;
                for (n5 = 0; ; n5++) if (!e4[n5] || t6.priority > e4[n5].priority) {
                  e4.splice(n5, 0, t6);
                  break;
                }
              }, t5.prototype.dispose = function() {
                var t6 = this;
                t6.rO = {}, t6.d_t = g, delete t6.calcListener;
              }, t5.prototype.cloneFrom = function(t6) {
                var n5 = this;
                n5.useR1C1 = t6.useR1C1, n5.HDt = t6.HDt, n5.v_t = t6.v_t, n5.calcOnDemand = t6.calcOnDemand, n5.dynamicReferences = t6.dynamicReferences, n5.incrementalCalculation = t6.incrementalCalculation;
              }, t5.prototype.Hyt = function() {
                return this.YDt;
              }, t5.prototype.getExternalSource = function(t6, n5) {
                var e4, i4, r3 = this, o3 = r3.getAllSourceModels();
                for (e4 = 0, i4 = o3.length; e4 < i4; e4++) if (v.Dbt(o3[e4].getSource().getName(), n5)) return o3[e4].getSource();
                return g;
              }, t5.prototype.getSourceModel = function(t6) {
                var n5 = this.rO[t6.id];
                return n5 || (n5 = t6.createSourceModel ? t6.createSourceModel(this) : this.createSourceModel(this, t6), this.rO[t6.id] = n5, t6.setCalcSourceModel(n5), t6.setCalcService(this)), n5;
              }, t5.prototype.getGlobalSourceModel = function(t6) {
                return this.d_t || ((t6 = t6 || new r2.CalcSource()).createSourceModel ? this.d_t = t6.createSourceModel(this) : this.d_t = this.createSourceModel(this, t6), t6.setCalcSourceModel(this.d_t)), this.d_t;
              }, t5.prototype.setSourceModel = function(t6, n5) {
                this.rO[t6.id] = n5, n5.setCalcService(this);
              }, t5.prototype.getAllSourceModels = function() {
                var t6, n5 = [], e4 = this.rO;
                for (t6 in e4) n5.push(e4[t6]);
                return n5;
              }, t5.prototype.removeSource = function(t6) {
                var n5, e4, i4, r3, o3, a2;
                for (r3 in this.suspend(), (n5 = this.rO[t6.id]) && ("" !== t6.getName() && this.onRemoveSource(t6), delete this.rO[t6.id]), this.clearDirties(), e4 = this.rO) (i4 = e4[r3]).Cde(false);
                o3 = this.x3 && this.x3.Mf, a2 = t6 && t6.Mf, o3 && a2 && a2 === o3 && (this.x3 = null), this.resume(false);
              }, t5.prototype.clearSource = function() {
                this.rO = {}, this.x3 = null, this.clearDirties();
              }, t5.prototype.ignoreDirty = function() {
                return this.v_t;
              }, t5.prototype.suspend = function(t6) {
                this.HDt++, this.v_t = !!t6;
              }, t5.prototype.resume = function(t6, n5, e4, i4) {
                var r3 = this;
                r3.HDt--, r3.HDt < 0 && (r3.HDt = 0), r3.IsSuspended() || (r3.m_t = g, r3.v_t = false, r3.recalculateAll(t6, n5, i4, e4));
              }, t5.prototype.suspendAdjust = function() {
                this.zDt++;
              }, t5.prototype.resumeAdjust = function() {
                var t6 = this;
                t6.zDt--, t6.zDt < 0 && (t6.zDt = 0);
              }, t5.prototype.isAdjustSuspended = function() {
                return this.zDt > 0;
              }, t5.prototype.clearDirties = function(t6) {
                var n5, e4, i4, r3, o3 = this, a2 = o3.y3, u2 = o3.Kyt;
                if (a2) {
                  for (e4 in n5 = false, a2) if (a2.hasOwnProperty(e4)) {
                    if (t6 && t6[e4]) {
                      n5 = true;
                      continue;
                    }
                    for (i4 = a2[e4]; i4; ) r3 = i4.C3, i4.k1 = false, o3.qu--, r3 ? (i4.C3 = r3.DF = m, i4 = r3) : i4 = g;
                    delete a2[e4], u2 && !k(u2[e4]) && delete u2[e4];
                  }
                  n5 || (o3.y3 = o3.Kyt = g);
                }
              }, t5.prototype.Zct = function() {
                this.ZDt.WDt = false, this.ZDt = { WDt: true };
              }, t5.prototype.resumeWithoutCalc = function() {
                this.HDt--, this.HDt < 0 && (this.HDt = 0), this.clearDirties({ 3: true, 6: true }), this.v_t = false, this.AMt(1), this.y3 && this.recalculateAll(false, true), this.Zct();
              }, t5.prototype.IsSuspended = function() {
                return this.HDt > 0;
              }, t5.prototype.Sde = function(t6) {
                var n5, e4, i4, o3 = this;
                for (i4 in (0, r2.hKr)(), this.Zct(), o3.S9t = new r2.Functions.RangeCriteriaManager(), o3.MX.startCache(t6), e4 = o3.rO) (n5 = e4[i4]).getSource().startCalculation();
              }, t5.prototype.Tde = function(t6) {
                var n5, e4, i4 = this, r3 = i4.rO;
                for (e4 in r3) (n5 = r3[e4]).getSource().endCalculation(t6);
                i4.MX.endCache(), i4.S9t && i4.S9t.dispose(), this.Zct();
              }, t5.prototype.ggr = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = o3.rO;
                for (r3 in a2) (i4 = a2[r3].getSource()).ggr && i4.ggr(t6, n5, e4);
                o3.S9t && o3.S9t.ggr(t6);
              }, t5.prototype.recalculateAll = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2 = this;
                if ((i4 || 1 !== u2.calculationMode) && !u2.IsSuspended()) if (t6 && u2.y3 && delete u2.tMt, u2.Ui && (clearTimeout(u2.Ui), u2.Ui = 0), u2.incrementalCalculation) u2.os(false, t6, n5, e4, i4);
                else {
                  for (delete u2.df, u2.PE = true, u2.Sde(n5), r3 = u2.Ade(t6, n5, i4) || [], u2.Ide(i4), u2.Tde(e4), delete u2.PE, a2 = 0; u2.p_t && (o3 !== u2.p_t.length || a2 < 5); a2++) q(u2.p_t), o3 = u2.p_t.length, delete u2.p_t, u2.Sde(true), r3 = r3.concat(u2.Ade(false, true, i4)), u2.Ide(i4), u2.Tde(e4);
                  delete u2.p_t, r3 && r3.forEach((function(t7) {
                    u2.I3(t7, 0);
                  }));
                }
              }, t5.prototype.HBe = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = this;
                if (d2.Zct(), t6 = {}, d2.y3) {
                  for (n5 in d2.y3) if (d2.y3.hasOwnProperty(n5)) for (t6[n5] = [], e4 = d2.y3[n5]; e4; ) t6[n5].push(e4), e4 = e4.C3;
                }
                if (d2.Ade(true, false), !(i4 = d2.y3)) return [];
                for (n5 in i4) i4.hasOwnProperty(n5) && i4[n5].w3.initDelay(d2, parseInt(n5, 10));
                for (r3 = i4[0]; r3; r3 = r3.C3) o3 = r3.row, a2 = r3.column, r3.zBe(true), (u2 = r3.w3.uT(false)) && u2.a_t(o3, a2, true);
                do {
                  if (c2 = false, i4[0]) for (r3 = i4[0]; r3; r3 = s2) s2 = r3.C3, r3.delay <= 0 && (o3 = r3.row, a2 = r3.column, d2.b_t(r3, 0), r3.zBe(false, null), (u2 = r3.w3.uT(false)) && u2.a_t(o3, a2, false), c2 = true);
                } while (c2);
                do {
                  if (c2 = false, i4[0]) for (r3 = i4[0]; r3; r3 = s2) s2 = r3.C3, r3.VBe() || (d2.b_t(r3, 0), c2 = true);
                } while (c2);
                if (f2 = [], i4[0]) for (e4 = d2.y3[0]; e4; ) f2.push({ row: e4.row, col: e4.column, rowCount: 1, colCount: 1, sheetName: e4.w3.getSource().getName() }), e4 = e4.C3;
                if (t6) for (h2 in l2 = function(n6) {
                  if (t6[n6]) {
                    var e5 = parseInt(n6, 10);
                    t6[n6].forEach((function(t7) {
                      d2.I3(t7, e5);
                    }));
                  }
                }, t6) l2(h2);
                return d2.Zct(), f2;
              }, t5.prototype.Ade = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = this;
                if (false !== t6 || !n5) for (r3 in i4 = h2.rO) i4[r3].Cde(t6, n5);
                if (o3 = h2.y3) {
                  if (h2.calcOnDemand || false !== t6 || h2.w_t(), o3[1] && o3[1].w3.addListenersToDirty(h2, 1), o3[2] && o3[2].w3.addListenersToDirty(h2, 2), false === t6) {
                    for (a2 in o3) o3.hasOwnProperty(a2) && (u2 = o3[a2]) && (u2.w3.addListenersToDirty(h2, parseInt(a2, 10)), u2.processed = true);
                    for (a2 in o3) o3.hasOwnProperty(a2) && ((u2 = o3[a2]).processed ? delete u2.processed : u2.w3.addListenersToDirty(h2, parseInt(a2, 10)));
                  }
                  if (s2 = [], "function" == typeof e4) for (c2 = o3[0], f2 = void 0, s2 = []; c2; ) f2 = c2.C3, e4(c2) || (s2.push(c2), h2.b_t(c2, 0)), c2 = f2;
                  return h2.calcListener && o3[0] && (l2 = h2.t1e(o3[0]), h2.calcListener(l2)), s2;
                }
              }, t5.prototype.processDynamicRef = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2 = this;
                if (c2.tMt) {
                  if (n5 = null, t6 = c2.y3) for (n5 = [], e4 = void 0, i4 = t6[0]; i4; i4 = e4) n5.push(i4), e4 = i4.C3;
                  for (o3 in r3 = c2.rO) (a2 = r3[o3]).Cde(true, false);
                  if (t6 = c2.y3) {
                    for (e4 = void 0, i4 = t6[0]; i4; i4 = e4) e4 = i4.C3, c2.b_t(i4, 0);
                    for (i4 = t6[3]; i4; i4 = e4) e4 = i4.C3, c2.b_t(i4, 3);
                    for (i4 = t6[6]; i4; i4 = e4) e4 = i4.C3, c2.b_t(i4, 6);
                  }
                  for (u2 in c2.tMt) c2.tMt.hasOwnProperty(u2) && (s2 = c2.tMt[u2], (a2 = c2.rO[s2.id]) && a2.processDynamicListenerForCell(s2.row, s2.col));
                  delete c2.tMt, n5 && n5.length > 0 && n5.forEach((function(t7) {
                    c2.I3(t7, 0);
                  })), this.Zct();
                }
              }, t5.prototype.w_t = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, b2, y2, w2 = this, M2 = w2.y3;
                for (n5 = M2[0]; n5; n5 = t6) t6 = n5.C3, n5.isVolatile && (e4 = n5.row, i4 = n5.column, o3 = (r3 = n5.w3).rT, u2 = true, (a2 = r3.M_t(e4, i4) || r3.ODt(e4, i4)) && (s2 = lt(e4, i4), c2 = o3.getValue(e4, i4), f2 = false, l2 = m, h2 = m, d2 = m, v2 = m, (g2 = r3.sT(e4, i4)) && true !== g2.isDynamicArray && (f2 = true, l2 = g2.row, h2 = g2.col, d2 = g2.rowCount, v2 = g2.colCount), b2 = w2.evaluateParsedFormula(o3, a2, s2, f2, true, g2 && true !== g2.isDynamicArray && ht(l2, h2, d2, v2), w2.allowDynamicArray), n5.QDt || n5.qkt || (c2 === b2 ? u2 = false : c2 instanceof Date ? (b2 instanceof Date && c2.valueOf() === b2.valueOf() || typeof b2 === O && (y2 = p.o0(c2)) === b2) && (u2 = false) : typeof c2 === O && typeof b2 === O && (u2 = c2 !== b2))), a2 && !u2 && w2.b_t(n5, 0));
              }, t5.prototype.t1e = function(t6) {
                for (var n5 = 0; t6; ) n5++, t6 = t6.C3;
                return n5;
              }, t5.prototype.Ide = function(t6) {
                var n5, e4, i4, r3, o3 = this;
                if ((!o3.calcOnDemand || t6) && (n5 = o3.y3)) {
                  for (e4 in n5) n5.hasOwnProperty(e4) && n5[e4].w3.initDelay(o3, parseInt(e4, 10));
                  for (e4 in n5) n5.hasOwnProperty(e4) && n5[e4].w3.adjustDelayOfListeners(o3, parseInt(e4, 10), true);
                  do {
                    for (e4 in i4 = false, n5) n5.hasOwnProperty(e4) && (r3 = n5[e4].w3.calculateDirtyNodes(o3, parseInt(e4, 10))) && (i4 = true);
                  } while (i4);
                  for (e4 in n5) n5.hasOwnProperty(e4) && n5[e4].w3.calculateIterations(o3, parseInt(e4, 10));
                  o3.clearDirties(), o3.y3 = o3.Kyt = m;
                }
              }, t5.prototype.os = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = v2.df, g2 = false;
                t6 || (p2 = v2.df = { round: 0, step: 0 }, !e4) ? v2.IsSuspended() || (p2.start = performance.now(), p2.count = 0, v2.Ui = m, 0 === p2.round ? (0 === p2.step && v2.Sde(e4 || t6), v2.pv(o3, n5, e4)) : p2.round < 6 && (v2.p_t || p2.step > 0 ? (0 === p2.step && (f2 = v2.Kg, v2.Tde(i4), v2.Sde(true)), v2.pv(o3, false, true)) : (p2.round = 6, g2 = true)), g2 || 0 !== v2.Kg || (f2 && (l2 = null === (u2 = null === (a2 = v2.getGlobalSourceModel()) || void 0 === a2 ? void 0 : a2.rT) || void 0 === u2 ? void 0 : u2.vpt) && l2.ki(r2.CALC_PROGRESS_EVENT, { totalCells: f2, pendingCells: 0 }), g2 = true), g2 || 1 === p2.step || (h2 = null === (c2 = null === (s2 = v2.getGlobalSourceModel()) || void 0 === s2 ? void 0 : s2.rT) || void 0 === c2 ? void 0 : c2.vpt, d2 = { totalCells: v2.Kg, pendingCells: v2.qu }, 3 === p2.step && (d2.iterate = (p2.i || 0) + 1), v2.p_t && 0 === d2.pendingCells && p2.round < 6 || h2 && h2.ki(r2.CALC_PROGRESS_EVENT, d2), h2 && !h2.repaintTimeout && (h2.repaintTimeout = setTimeout((function() {
                  var t7;
                  null === (t7 = h2.getActiveSheet()) || void 0 === t7 || t7.repaint(), h2.repaintTimeout = m;
                }), r2.TimeoutPaintDelay))), !g2 && p2.round < 6 ? v2.Ui = setTimeout((function() {
                  v2.os(true);
                }), 0) : (delete v2.p_t, v2.Tde(i4))) : v2.Ui = setTimeout((function() {
                  v2.os(true, n5, e4);
                }), 500);
              }, t5.prototype.pv = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2 = this, s2 = u2.df;
                if (0 === s2.step) return u2.p_t && (s2.EYr !== u2.p_t.length && 5 === s2.round && s2.round--, q(u2.p_t), s2.EYr = u2.p_t.length, delete u2.p_t), u2.Ade(n5, e4, t6), s2.step++, void (u2.Kg = u2.qu);
                if (1 === s2.step && (u2.mRe(), u2.Kg = u2.qu), !(i4 = u2.y3)) return s2 && s2.round++, void (u2.Kg = 0);
                if (1 === s2.step) {
                  for (r3 in i4) i4.hasOwnProperty(r3) && i4[r3].w3.initDelay(u2, parseInt(r3, 10));
                  for (r3 in i4) i4.hasOwnProperty(r3) && i4[r3].w3.adjustDelayOfListeners(u2, parseInt(r3, 10), true);
                } else if (2 === s2.step) {
                  o3 = void 0;
                  do {
                    for (r3 in o3 = false, i4) if (i4.hasOwnProperty(r3)) {
                      if ((a2 = i4[r3].w3.calculateDirtyNodes(u2, parseInt(r3, 10))) === s2) return;
                      a2 && (o3 = true);
                    }
                  } while (o3);
                  0 === u2.qu && s2.step++;
                } else if (3 === s2.step) {
                  for (r3 in i4) if (i4.hasOwnProperty(r3) && i4[r3].w3.calculateIterations(u2, parseInt(r3, 10)) === s2) return;
                }
                s2.step++, 4 === s2.step && (s2.round++, s2.step = 0, u2.clearDirties(), u2.y3 = u2.Kyt = m);
              }, t5.prototype.initParserContext = function(t6) {
                var n5;
                this.x3 || (this.x3 = t6.getParserContext(this.useR1C1));
              }, t5.prototype.getParserContext = function(t6) {
                var n5 = this, e4 = n5.x3;
                return e4 || (t6 ? n5.x3 = e4 = t6.getParserContext(n5.useR1C1) : e4 = new a.ParserContext(g, n5.useR1C1)), e4.setSource(t6), e4;
              }, t5.prototype.parseWithContext = function(t6, n5) {
                return this.j3t.parse(t6, n5);
              }, t5.prototype.unparseWithContext = function(t6, n5) {
                return this.j3t.unparse(t6, n5);
              }, t5.prototype.I3 = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this;
                isNaN(n5) || !t6 || t6.k1 || (!u2.Vct || 0 !== n5 || (r3 = u2.h_t && u2.h_t[u2.Vct]) && r3.indexOf(t6) >= 0) && (o3 = u2.y3, a2 = u2.Kyt, o3 || (o3 = u2.y3 = {}, a2 = u2.Kyt = {}), e4 = o3[n5], i4 = a2[n5], t6.k1 = true, e4 ? i4.C3 = t6 : o3[n5] = t6, u2.qu++, t6.DF = i4, t6.C3 = g, a2[n5] = t6);
              }, t5.prototype.b_t = function(t6, n5) {
                var e4, i4, r3, o3, a2 = this;
                !isNaN(n5) && t6 && t6.k1 && (t6.k1 = false, e4 = a2.y3, i4 = a2.Kyt, r3 = t6.DF, o3 = t6.C3, r3 ? r3.C3 = o3 : e4 && (o3 ? e4[n5] = o3 : delete e4[n5]), o3 ? o3.DF = r3 : i4 && (r3 ? i4[n5] = r3 : delete i4[n5]), a2.qu--, t6.DF = g, t6.C3 = g);
              }, t5.prototype.mRe = function() {
                for (var t6, n5, e4 = this, i4 = e4.y3 && e4.y3[0]; i4; ) n5 = i4.C3, (null === (t6 = null == i4 ? void 0 : i4.node) || void 0 === t6 ? void 0 : t6.WK) || e4.b_t(i4, 0), i4 = n5;
              }, t5.prototype.evaluateExpression = function(t6, n5, e4, i4, r3, o3) {
                var a2;
                return this.MX.evaluateExpression(n5, t6.getEvaluatorContext(e4, false, void 0, n5), false, i4, r3, o3);
              }, t5.prototype.onClearExpr = function(t6, n5) {
                this.MX && this.MX.asyncManager.clearCell(t6, n5);
              }, t5.prototype.parse = function(t6, n5, e4, i4, r3, o3, a2, u2, s2) {
                var c2, f2, l2 = this, h2 = l2.m_t, d2 = l2.getParserContext(t6);
                if (d2.useR1C1 = !a2 && l2.useR1C1, d2.ignoreError = o3, d2.keepUnknownFormulas = u2, d2.row = e4, d2.column = i4, d2.culture = r3, d2.Cwr = !s2 && m, h2 && (c2 = h2[n5])) return c2;
                if (o3) try {
                  f2 = l2.j3t.parse(d2, n5);
                } catch (t7) {
                  return null;
                }
                else f2 = l2.j3t.parse(d2, n5);
                if (h2 && (h2[n5] = f2), d2.Cwr) try {
                  s2 && l2.evaluateExpression(t6, f2, { row: e4, col: i4 });
                } catch (t7) {
                }
                return delete d2.Cwr, f2;
              }, t5.prototype.unparse = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2 = this.getParserContext(t6);
                return s2.useR1C1 = this.useR1C1, s2.row = e4, s2.column = i4, s2.culture = r3, s2.addSheetName = a2, o3 && (s2.lyt = true, s2.useR1C1 = 2 === o3), u2 = this.j3t.unparse(s2, n5), s2.lyt = false, u2;
              }, t5.prototype.recalculate = function(t6, n5, e4, i4) {
                var r3, o3 = this.getSourceModel(t6), a2 = this;
                -1 === e4 ? o3.gF(n5, 0, 1, o3.cC()) : -1 === n5 ? o3.gF(0, e4, o3.rC(), 1) : o3.Mde(n5, e4), this.IsSuspended() || (this.recalculateAll(false, i4), i4 && 1 === a2.calculationMode && !a2.IsSuspended() && (r3 = o3.oT(n5, e4), o3.recalculateCell && r3 instanceof F && o3.recalculateCell(r3)));
              }, t5.prototype.recalculateByName = function(t6, n5) {
                var e4, i4;
                n5 && (i4 = (e4 = this.getSourceModel(t6)).C_t(A(n5), true), this.I3(i4, 3), this.IsSuspended() || this.recalculateAll(false));
              }, t5.prototype.recalcRange = function(t6, n5, e4, i4, r3) {
                var o3 = this.getSourceModel(t6);
                -1 === e4 ? o3.gF(n5, 0, i4, o3.cC()) : -1 === n5 ? o3.gF(0, e4, o3.rC(), r3) : o3.gF(n5, e4, i4, r3), this.IsSuspended() || this.recalculateAll(false);
              }, t5.prototype.evaluate = function(t6, n5, e4, i4, o3) {
                var a2 = this, u2 = n5 instanceof r2.Expression ? n5 : a2.parse(t6, n5, e4, i4);
                return a2.MX.evaluateExpression(u2, t6.getEvaluatorContext(lt(e4, i4), false, void 0, u2), false, o3, o3);
              }, t5.prototype.Abt = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2;
                if (!k(n5)) {
                  if (a2 = this.MX, (u2 = o3) || ((u2 = t6.getEvaluatorContext(e4, false, g, n5)).S_t = i4, u2.k_t = this.allowDynamicArray, u2.uuo = t6.DJ), a2.asyncManager.startCalcCell(t6, e4), s2 = this.MX.evaluateExpression(n5, u2, i4, true, true), a2.asyncManager.endCalcCell(), !o3) return new Promise((function(t7, n6) {
                    a2.asyncManager.x_t(e4.Tbt) ? t7(s2) : u2.A_t = t7;
                  })).then((function(t7) {
                    return (r2.Convert.LE(t7) || r2.Convert.Nh(t7)) && 1 === (t7 = t7.toArray(0, false)).rowCount && 1 === t7.colCount && 1 === t7.rangeCount && (t7 = t7[0][0]), a2.asyncManager.I_t(e4.Tbt), t7;
                  }));
                  a2.asyncManager.x_t(e4.Tbt) && u2.A_t(s2);
                }
              }, t5.prototype.evaluateParsedFormula = function(t6, n5, e4, i4, o3, a2, u2, s2, c2, f2) {
                var l2, h2, d2, v2, p2, b2, y2, w2, S2, T2, x2, A2, I2, N2, j2;
                if (!k(n5)) {
                  if (l2 = e4.row || 0, h2 = e4.col || 0, d2 = a2 ? a2.row : l2, v2 = a2 ? a2.col : h2, (p2 = t6.getEvaluatorContext(e4, i4, a2, n5, c2)).N_t = s2, y2 = 4 === arguments.length && i4 || u2, this.allowDynamicArray && !i4 && (p2.k_t = !n5.ensureSingle), (b2 = this.MX.evaluateExpression(n5, p2, o3, y2 && !n5.ensureSingle, y2 && !n5.ensureSingle, f2)) && b2.pause) return b2;
                  if (i4 && arguments.length <= 5) return b2;
                  if (!i4 && u2 && (r2.Convert.LE(b2) || r2.Convert.Nh(b2))) return b2;
                  if (r2.Convert.LE(b2)) {
                    if (w2 = b2.getRowCount(0), S2 = b2.getColumnCount(0), 1 !== b2.getRangeCount()) return M;
                    try {
                      if (T2 = i4 ? l2 - d2 : l2 - b2.getRow(0), x2 = i4 ? h2 - v2 : h2 - b2.getColumn(0), A2 = lt(0, 0), 1 === w2 && 1 === S2) ;
                      else if (1 === w2 && S2 > 1 && x2 >= 0 && x2 < S2) A2.col = x2;
                      else if (w2 > 1 && 1 === S2 && T2 >= 0 && T2 < w2) A2.row = T2;
                      else {
                        if (!(i4 && T2 < w2 && x2 < S2)) return i4 ? C : M;
                        A2.row = T2, A2.col = x2;
                      }
                      b2 = b2.getValue(A2, 0);
                    } catch (t7) {
                      return M;
                    }
                  } else if (r2.Convert.Nh(b2)) if (i4) {
                    if (N2 = (I2 = b2).getRowCount(), j2 = I2.getColumnCount(), 1 !== N2 && l2 - d2 >= N2 || 1 !== j2 && h2 - v2 >= j2) return C;
                    b2 = b2.getValue(1 === N2 ? 0 : l2 - d2, 1 === j2 ? 0 : h2 - v2);
                  } else b2 = b2.getValueByIndex(0);
                  return b2 === m || b2 === g ? false === o3 ? b2 : 0 : b2;
                }
              }, t5.prototype.onAddAdjust = function(t6, n5) {
                this.YDt.Qyt(t6, n5);
              }, t5.prototype.onRemoveSource = function(t6) {
                this.YDt.nwt(t6);
              }, t5.prototype.createSourceModel = function(t6, n5) {
                return new H(t6, n5);
              }, t5;
            })(), n4.CalcService = G, U = (function() {
              function t5() {
              }
              return t5.getLength = function(t6, n5) {
                return T(t6) ? t6.getRowCount() * t6.getColumnCount() : x(t6) ? (n5 = n5 || 0, t6.getRowCount(n5) * t6.getColumnCount(n5)) : void 0;
              }, t5.getRowCount = function(t6, n5) {
                return T(t6) ? t6.getRowCount() : x(t6) ? (n5 = n5 || 0, t6.getRowCount(n5)) : void 0;
              }, t5.getColumnCount = function(t6, n5) {
                return T(t6) ? t6.getColumnCount() : x(t6) ? (n5 = n5 || 0, t6.getColumnCount(n5)) : void 0;
              }, t5.getValueByIndex = function(t6, n5, e4) {
                if (T(t6)) return t6.getValueByIndex(n5);
                if (x(t6)) {
                  e4 = e4 || 0;
                  var i4 = t6.getColumnCount(e4);
                  return t6.getValue(e4, parseInt((n5 / i4).toString(), 10), n5 % i4);
                }
              }, t5.getValue = function(t6, n5, e4, i4) {
                return T(t6) ? t6.getValue(n5, e4) : x(t6) ? (i4 = i4 || 0, t6.getValue(i4, n5, e4)) : void 0;
              }, t5;
            })(), n4.CalcArrayHelper = U, H = (function() {
              function t5(t6, n5) {
                this.I8 = 0, this.x8 = 0, this.XDt = [], this.qDt = [], this.$Dt = [], this.dataTable = {}, this.dataTableByName = {}, this.AE = [], this.IE = [], this.t_t = 0;
                var e4 = this;
                e4.rT = n5, e4.Lbt = t6, e4.b_r = new f.EventNotifier();
              }
              return t5.prototype.getNode = function(t6, n5, e4) {
                var i4, r3 = this, o3 = g;
                return t6 >= 0 && n5 >= 0 ? (i4 = r3.dataTable[t6], e4 && !i4 && (i4 = r3.dataTable[t6] = {}, t6 > r3.I8 && (r3.I8 = t6)), i4 && (o3 = i4[n5], e4 && !o3 && (o3 = i4[n5] = {}, n5 > r3.x8 && (r3.x8 = n5)))) : -1 === t6 && n5 >= 0 ? (o3 = r3.IE[n5], e4 && !o3 && (o3 = r3.IE[n5] = {}, n5 > r3.x8 && (r3.x8 = n5))) : t6 >= 0 && -1 === n5 ? (o3 = r3.AE[t6], e4 && !o3 && (o3 = r3.AE[t6] = {}, n5 > r3.x8 && (r3.x8 = n5))) : -1 === t6 && -1 === n5 && (o3 = r3.xE, e4 && !o3 && (o3 = r3.xE = {})), o3;
              }, t5.prototype.getNodeByName = function(t6, n5) {
                var e4 = this, i4 = e4.dataTableByName[t6];
                return n5 && !i4 && (i4 = e4.dataTableByName[t6] = {}), i4;
              }, t5.prototype.pB = function(t6, n5) {
                var e4 = this.getNode(t6, n5);
                return e4 && e4.WK;
              }, t5.prototype.Fyt = function(t6, n5) {
                var e4 = this.getNode(t6, n5);
                return e4 && e4.eyt;
              }, t5.prototype.sT = function(t6, n5) {
                return this.getWorkingNodeInfo(t6, n5, 2);
              }, t5.prototype.M_t = function(t6, n5) {
                return this.getWorkingNodeInfo(t6, n5, 1);
              }, t5.prototype.ODt = function(t6, n5, e4) {
                return this.getWorkingNodeInfo(t6, n5, 0, e4);
              }, t5.prototype.D_t = function(t6) {
                var n5 = this.getNodeByName(t6);
                return n5 && n5.eyt;
              }, t5.prototype.$yt = function(t6) {
                var n5 = this.getNodeByName(t6);
                return n5 && n5.WK;
              }, t5.prototype.Phe = function(t6, n5) {
                var e4 = this.getNode(t6, n5);
                return e4 && e4.Ghe;
              }, t5.prototype.Uhe = function(t6, n5, e4, i4) {
                var r3 = this.oT(t6, n5, !!e4);
                r3 && (i4 && i4.push([t6, n5, r3.isDefault()]), r3.isDefault(!!e4));
              }, t5.prototype.clearAll = function() {
                var t6 = this;
                t6.clear(-1, -1, -1, -1), t6.dataTable = {}, t6.dataTableByName = {}, t6.AE = [], t6.IE = [], t6.xE = g;
              }, t5.prototype.clear = function(t6, n5, e4, i4, r3, o3) {
                this.d5(t6, n5, e4, i4, r3, o3);
              }, t5.prototype._Mt = function() {
                var t6 = this;
                at(t6.AE), at(t6.IE), at(t6.dataTable, true), at(t6.dataTableByName), t6.DMt();
              }, t5.prototype.DMt = function() {
                var t6 = this;
                t6.dataTable = {}, t6.dataTableByName = {}, t6.AE = [], t6.IE = [], t6.xE = g, t6.XDt = [], t6.qDt = [], t6.__t = g, t6.E_t = g, t6.b_r.destroy();
              }, t5.prototype.addRows = function(t6, n5) {
                var e4, i4 = this, r3 = i4.rC();
                if (!(t6 < 0 || t6 > r3 || n5 < 0)) {
                  for (h(i4.dataTable, r3, t6, n5), h(i4.AE, r3, t6, n5), e4 = 0; e4 < n5; e4++) i4.dataTable[t6 + e4] && (i4.dataTable[t6 + e4] = { rs: "n" });
                  i4.I8 >= t6 && (i4.I8 += n5);
                }
              }, t5.prototype.deleteRows = function(t6, n5, e4) {
                var i4 = this, r3 = i4.rC();
                e4 && (r3 += n5), t6 < 0 || t6 >= r3 || n5 <= 0 || (t6 + n5 > r3 && (n5 = r3 - t6), d(i4.dataTable, r3, t6, n5), d(i4.AE, r3, t6, n5), i4.I8 >= t6 + n5 ? i4.I8 -= n5 : i4.I8 >= t6 && (i4.I8 = t6 - 1));
              }, t5.prototype.uge = function(t6, n5) {
                t6 < n5 && this.d5(t6, -1, n5 - t6, -1);
              }, t5.prototype.addColumns = function(t6, n5) {
                var e4, i4, r3 = this, o3 = r3.rC(), a2 = r3.cC();
                if (!(t6 < 0 || t6 > a2 || n5 < 0)) {
                  for (e4 = 0; e4 < o3; e4++) (i4 = r3.dataTable[e4]) && t6 < a2 && h(i4, a2, t6, n5);
                  h(this.IE, a2, t6, n5), r3.x8 >= t6 && (r3.x8 += n5);
                }
              }, t5.prototype.deleteColumns = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = o3.rC(), u2 = o3.cC();
                if (e4 && (u2 += n5), !(t6 < 0 || t6 >= u2 || n5 < 0)) {
                  for (i4 = 0; i4 < a2; i4++) (r3 = this.dataTable[i4]) && d(r3, u2, t6, n5);
                  d(this.IE, u2, t6, n5), o3.x8 >= t6 + n5 ? o3.x8 -= n5 : o3.x8 >= t6 && (o3.x8 = t6 - 1);
                }
              }, t5.prototype.sge = function(t6, n5) {
                t6 < n5 && this.d5(-1, t6, -1, n5 - t6);
              }, t5.prototype.j_t = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2 = [this, t6, n5];
                return e4 && (u2.newValue = e4), i4 = this.getSource(), (r3 = this.getNode(t6, n5)) ? ((!(o3 = r3.$bt) || o3 && o3.row === t6 && o3.col === n5) && i4.setFormula(t6, n5, this.getFormula(t6, n5), o3, true), a2 = r3.calc && r3.calc.isDefault && r3.calc.isDefault(), u2.push(r3.WK, r3.eyt, r3.$bt, a2)) : i4.setFormula(t6, n5, null, null, true), u2;
              }, t5.prototype.Vyt = function(t6, n5, e4, i4) {
                t6 && t6.push(this.j_t(n5, e4, i4));
              }, t5.prototype.pj = function() {
                if (this.Lbt.DFe) return this.Lbt.DFe;
                var t6 = this.getSource(), n5 = t6 && t6.getSheet(), e4 = n5 && n5.Ut;
                return e4 && e4.pj();
              }, t5.prototype.kMt = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2 = this;
                -1 === n5 ? s2.iwt(e4, i4, r3) : -1 === e4 ? s2.ewt(n5, i4, r3) : (u2 = s2.rT.Mf, a2 && u2 && (u2.Dhe = true), s2.Gyt(n5, e4, i4, r3, o3), a2 && u2 && delete u2.Dhe);
              }, t5.prototype.bB = function(t6, n5, e4, i4, r3) {
                var o3, a2 = this.getNode(t6, n5, !!e4);
                a2 && (i4 && i4.push([t6, n5, a2.WK]), o3 = a2.WK, a2.WK = e4, this.b_r.notify({ node: a2, row: t6, col: n5, expr: e4, oldExpr: o3, context: r3 }));
              }, t5.prototype.YHr = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2 = this.getNode(t6, n5, !!e4);
                u2 && (o3 = u2.WK, a2 = u2.$bt, u2.WK = e4, u2.$bt = i4, this.b_r.notify({ node: u2, row: t6, col: n5, expr: e4, oldExpr: o3, arrayInfo: i4, oldArrayInfo: a2, context: r3 }));
              }, t5.prototype.O_t = function(t6, n5, e4, i4, r3, o3, a2, u2) {
                var s2, c2, f2 = this.getNode(t6, n5, !!e4);
                f2 && (this.Vyt(a2, t6, n5), s2 = f2.WK, c2 = f2.$bt, f2.WK = e4, (f2.eyt || i4) && (f2.eyt = i4), (f2.$bt || r3) && (f2.$bt = r3), f2.isVolatile && !e4 ? this.R_t(f2) : (o3 || f2.isVolatile) && (f2.isVolatile = o3), u2 && (f2.Ghe = u2), this.b_r.notify({ node: f2, row: t6, col: n5, expr: e4, oldExpr: s2, arrayInfo: r3, oldArrayInfo: c2 }));
              }, t5.prototype.zyt = function(t6, n5, e4) {
                this.O_t(t6, n5, m, m, m, false, e4);
              }, t5.prototype.Lyt = function(t6, n5, e4, i4, r3, o3) {
                var a2 = this.getNode(n5, e4);
                a2 && a2.WK && t6.O_t(i4, r3, a2.WK, a2.eyt, a2.$bt, a2.isVolatile, o3, a2.calc && a2.calc.isDefault && a2.calc.isDefault());
              }, t5.prototype.B_t = function(t6, n5) {
                var e4 = this.dataTable[t6];
                return e4 && e4[n5];
              }, t5.prototype.Yyt = function(t6, n5, e4) {
                var i4 = this.getNode(t6, n5, !!e4);
                i4 && (i4.eyt = e4);
              }, t5.prototype.Uyt = function(t6, n5, e4) {
                var i4, r3 = this.getNode(t6, n5, !!e4);
                if (r3) {
                  if (e4 === r3.$bt) return;
                  i4 = r3.$bt, r3.$bt = e4, this.LYr(r3, t6, n5, e4, i4);
                }
              }, t5.prototype.LYr = function(t6, n5, e4, i4, r3) {
                this.b_r.notify({ node: t6, row: n5, col: e4, expr: t6.WK, oldExpr: t6.WK, arrayInfo: i4, oldArrayInfo: r3 });
              }, t5.prototype.rwt = function(t6, n5) {
                var e4 = this.getNode(t6, n5);
                return e4 && e4.calc;
              }, t5.prototype.L_t = function(t6, n5, e4) {
                var i4 = this.getNode(t6, n5, true);
                i4 && (i4.calc && i4.calc.isVolatile && this.R_t(i4), i4.calc && i4.calc.isPivotData && this.F_t(i4), i4.calc = e4, e4 && (e4.node = i4));
              }, t5.prototype.owt = function(t6, n5, e4) {
                var i4 = this.getNode(t6, n5, true);
                i4 && i4.calc && (i4.calc.isVolatile && this.R_t(i4), i4.calc.isPivotData && this.F_t(i4), this.Lbt.b_t(i4.calc, e4), i4.calc = m);
              }, t5.prototype.P_t = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2 = this, s2 = u2.usedRange;
                e4 >= 0 && i4 >= 0 ? ((o3 = u2.dataTable[e4]) || (o3 = u2.dataTable[e4] = {}), a2 = o3[i4], o3[i4] = r3, r3 && r3.calc && (r3.calc.isDefault && r3.calc.isDefault() && (r3.Ghe = true), delete r3.calc), s2 && vt(s2, e4, i4, a2, r3)) : e4 >= 0 && -1 === i4 && t6 >= 0 && -1 === n5 ? u2.AE[e4] = r3 : i4 >= 0 && -1 === e4 && n5 >= 0 && -1 === t6 && (u2.IE[i4] = r3);
              }, t5.prototype.SE = function(t6, n5, e4, i4) {
                var r3 = this, o3 = r3.getNode(t6, n5), a2 = r3.getNode(e4, i4);
                o3 && o3.WK ? r3.P_t(t6, n5, e4, i4, o3) : a2 && a2.WK && r3.P_t(t6, n5, e4, i4, g), a2 && a2.WK ? r3.P_t(e4, i4, t6, n5, a2) : o3 && o3.WK && r3.P_t(e4, i4, t6, n5, g);
              }, t5.prototype.G_t = function(t6, n5, e4) {
                t6.$Te || (t6.$Te = {}, this.$Dt.push(t6), n5 || X(t6, e4));
              }, t5.prototype.U_t = function(t6) {
                delete t6.$Te;
              }, t5.prototype.H_t = function() {
                var t6, n5 = this, e4 = [], i4 = {}, r3 = n5.$Dt, o3 = n5.$Dt.length;
                for (t6 = 0; t6 < o3; t6++) r3[t6].$Te && r3[t6].$Te !== i4 && (r3[t6].$Te = i4, e4.push(r3[t6]));
                return n5.$Dt = e4, n5.$Dt;
              }, t5.prototype.lwt = function() {
                return this.XDt;
              }, t5.prototype.z_t = function() {
                return this.qDt;
              }, t5.prototype.nbt = function(t6) {
                t6.isVolatile || (t6.isVolatile = true, this.XDt.push(t6));
              }, t5.prototype.V_t = function(t6) {
                t6.isPivotData || (t6.isPivotData = true, this.qDt.push(t6));
              }, t5.prototype.ZYr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2 = this, l2 = (null === (i4 = (e4 = f2.getSource()).getSheet) || void 0 === i4 ? void 0 : i4.call(e4)) || (null == n5 ? void 0 : n5.Mf);
                l2 && (u2 = null === (r3 = t6.arguments[1]) || void 0 === r3 ? void 0 : r3.row, s2 = null === (o3 = t6.arguments[1]) || void 0 === o3 ? void 0 : o3.column, null == (c2 = !k(u2) && (null === (a2 = l2.pivotTables) || void 0 === a2 ? void 0 : a2.findPivotTable(u2, s2))) || c2.updatePivotFieldNameForGetPivotData(t6));
              }, t5.prototype.R_t = function(t6) {
                var n5, e4, i4, r3, o3;
                if (t6.isVolatile = m, (n5 = this).t_t++, n5.t_t > 100) {
                  for (n5.t_t = 0, e4 = [], i4 = n5.XDt, r3 = n5.XDt.length, o3 = 0; o3 < r3; o3++) i4[o3].isVolatile && e4.push(i4[o3]);
                  n5.XDt = e4;
                }
              }, t5.prototype.F_t = function(t6) {
                var n5, e4, i4, r3, o3;
                for (t6.isPivotData = m, e4 = [], i4 = (n5 = this).qDt, r3 = n5.qDt.length, o3 = 0; o3 < r3; o3++) i4[o3].isPivotData && e4.push(i4[o3]);
                n5.qDt = e4;
              }, t5.prototype.getCalcService = function() {
                return this.Lbt;
              }, t5.prototype.setCalcService = function(t6) {
                this.Lbt = t6;
              }, t5.prototype.op = function() {
                return this.Lbt;
              }, t5.prototype.getSource = function() {
                return this.rT;
              }, t5.prototype.hasFormula = function(t6, n5, e4) {
                return t6 = t6 !== m ? t6 : -1, n5 = n5 !== m ? n5 : -1, !!this.ODt(t6, n5, e4);
              }, t5.prototype.setFormula = function(t6, n5, e4, i4, r3, o3, a2, u2, s2) {
                var c2, f2, l2, h2, d2, v2, p2, b2 = this;
                if (e4 && 0 === e4.length && (e4 = g), c2 = s2 && e4 && !i4, r3 || c2 || !b2.EF(t6, n5, 1, 1) || b2.Y_t(), f2 = b2.getFormula(t6, n5, m, true), l2 = b2.sT(t6, n5), o3 || f2 !== e4 && ("" !== f2 || e4) && (f2 || "" !== e4) || f2 === e4 && l2) {
                  if (h2 = b2.op(), d2 = g, h2) try {
                    v2 = t6 >= 0 ? t6 : 0, p2 = n5 >= 0 ? n5 : 0, d2 = i4 || (e4 ? h2.parse(b2.rT, e4, v2, p2, false, r3, m, s2) : g), b2.SB(t6, n5, d2, m, false, a2, u2);
                  } catch (t7) {
                    if (!r3 && !c2) throw t7;
                  }
                  t6 >= 0 && n5 >= 0 && b2.rT.setFormula(t6, n5, e4, m);
                }
              }, t5.prototype.getFormula = function(t6, n5, e4, i4) {
                var r3, o3, a2 = this.op();
                return a2 && (r3 = this.ODt(t6, n5, i4)) ? (t6 = (o3 = this.sT(t6, n5)) && true !== o3.isDynamicArray ? o3.row : t6, n5 = o3 && true !== o3.isDynamicArray ? o3.col : n5, a2.unparse(this.rT, r3, t6, n5, e4)) : g;
              }, t5.prototype.setFormulaByName = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2;
                if (t6 && (t6 = A(t6), o3 = this, n5 && 0 === n5.length && (n5 = g), (a2 = o3.getFormulaByName(t6)) !== n5 && ("" !== a2 || n5) && (a2 || "" !== n5))) {
                  if (u2 = o3.op(), s2 = g, u2) try {
                    s2 = n5 ? u2.parse(o3.rT, n5, 0, 0, false, e4) : g, o3.twt(t6, s2, m, false, i4, r3);
                  } catch (t7) {
                    if (!e4) throw t7;
                  }
                  o3.rT.setFormula({ name: t6 }, n5);
                }
              }, t5.prototype.getFormulaByName = function(t6) {
                var n5, e4 = this.op();
                return e4 && t6 && (n5 = this.$yt(A(t6))) ? e4.unparse(this.rT, n5, 0, 0) : g;
              }, t5.prototype.Y_t = function() {
                throw (0, r2.sR)().Exp_ArrayFormulaPart;
              }, t5.prototype.rC = function() {
                return N(this.rT.getRowCount());
              }, t5.prototype.cC = function() {
                return N(this.rT.getColumnCount());
              }, t5.prototype.setArrayFormula = function(t6, n5, e4, i4, r3, o3, a2, u2, s2) {
                var c2, f2, l2, h2, d2, v2, p2, b2, y2 = this;
                if (r3 && 0 === r3.length && (r3 = g), !y2.rT.G3 && y2.EF(t6, n5, e4, i4) && y2.Y_t(), t6 = t6 < 0 ? 0 : t6, n5 = n5 < 0 ? 0 : n5, f2 = y2.op()) {
                  if (f2.suspend(), y2.d5(t6, n5, e4, i4, a2), r3) {
                    try {
                      f2.forceR1C1Formula ? (l2 = f2.useR1C1, f2.useR1C1 = true, c2 = r3 ? f2.parse(y2.rT, r3, t6, n5, false, o3, false) : g, f2.useR1C1 = l2) : c2 = r3 ? f2.parse(y2.rT, r3, t6, n5, false, o3, o3) : g;
                    } catch (t7) {
                      if (!o3) throw t7;
                      return;
                    }
                    for (h2 = t6; h2 < t6 + e4; h2++) for (d2 = n5; d2 < n5 + i4; d2++) y2.SB(h2, d2, c2, ht(t6, n5, e4, i4), false, a2, u2, s2);
                  }
                  t6 >= 0 && n5 >= 0 && y2.rT.setArrayFormula(t6, n5, e4, i4, f2.unparse(y2.rT, c2, t6, n5)), (p2 = (v2 = y2.rT).t8) && p2.Fgt(t6, n5, e4, i4), b2 = function(r4) {
                    return r4.w3 === y2 && r4.row >= t6 && r4.row < t6 + e4 && r4.column >= n5 && r4.column < n5 + i4;
                  }, f2.resume(false, m, b2, false);
                }
              }, t5.prototype.getWorkingNodeInfo = function(t6, n5, e4, i4) {
                var r3, o3 = this, a2 = o3.rT;
                return t6 >= a2.getRowCount() || n5 >= a2.getColumnCount() ? r3 : (t6 >= 0 && n5 >= 0 ? ((!(r3 = o3.getNode(t6, n5)) || 0 === e4 && !r3.WK || 1 === e4 && !r3.eyt || 2 === e4 && !r3.$bt) && (r3 = o3.getNode(t6, -1)), (!r3 || 0 === e4 && !r3.WK || 1 === e4 && !r3.eyt || 2 === e4 && !r3.$bt) && (r3 = o3.getNode(-1, n5))) : r3 = t6 >= 0 && -1 === n5 ? o3.getNode(t6, -1) : -1 === t6 && n5 >= 0 ? o3.getNode(-1, n5) : o3.getNode(-1, -1), i4 && r3 && r3.calc && r3.calc.isDefault && r3.calc.isDefault() ? void 0 : r3 && (0 === e4 && r3.WK || 1 === e4 && r3.eyt || 2 === e4 && r3.$bt));
              }, t5.prototype.SB = function(t6, n5, e4, i4, r3, o3, a2, s2, c2) {
                var f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, T2 = this, x2 = T2.op(), A2 = T2.oT(t6, n5, true);
                x2.Z_t && x2.MX.asyncManager.endCalcCell(), v2 = (d2 = i4 !== m && null !== i4) ? i4.row : t6, p2 = d2 ? i4.col : n5, b2 = T2.rT, y2 = new u.EvaluateContext(b2, lt(v2, p2), d2, m, m, A2), M2 = !k(e4 && e4.aMt), e4 && !e4.sMt && (e4.eyt && M2 ? w2 = e4.eyt : (x2.allowDynamicArray ? (y2.pUr = e4.ensureSingle, w2 = ct(y2, e4, d2, d2 ? t6 - i4.row : 0, d2 ? n5 - i4.col : 0, true, true)) : w2 = st(y2, e4, d2, d2 ? t6 - i4.row : 0, d2 ? n5 - i4.col : 0), w2 === e4 ? (w2 = m, M2 && (e4.sMt = true)) : (w2.ensureSingle = e4.ensureSingle, M2 && x2.allowDynamicArray && (e4.eyt = w2, w2.aMt = e4.aMt)))), i4 !== m && (C2 = i4), t6 >= 0 && n5 >= 0 ? ((r3 === m || r3) && (S2 = e4 ? x2.unparse(b2, e4, t6, n5) : m, b2.setFormula(t6, n5, S2, C2), !c2 && (null === (f2 = T2.oT(t6, n5)) || void 0 === f2 ? void 0 : f2.isDefault()) && (null === (h2 = null === (l2 = b2.Mf) || void 0 === l2 ? void 0 : l2.Ut) || void 0 === h2 || h2.setDefaultValue(t6, n5, S2, g, "expr", g, true))), T2.Gyt(t6, n5, e4, w2, C2, o3, a2)) : t6 >= 0 && -1 === n5 ? T2.ewt(t6, e4, w2, o3, a2) : -1 === t6 && n5 >= 0 && T2.iwt(n5, e4, w2, o3, a2), x2.IsSuspended() || ((1 === x2.calculationMode || x2.incrementalCalculation && o3) && (T2.recalculateCell(A2), T2.mge(A2, T2), T2.Lbt.b_t(A2, 0)), 1 !== x2.calculationMode && x2.recalculateAll(false, void 0, s2));
              }, t5.prototype.twt = function(t6, n5, e4, i4, r3, o3) {
                var a2, s2, c2 = this, f2 = c2.op(), l2 = new u.EvaluateContext(c2.rT, lt(0, 0), false), h2 = ct(l2, n5, false, 0, 0);
                h2 = h2 === n5 ? m : h2, i4 !== m && !i4 || r3 || (a2 = c2.getFormulaByName(t6), s2 = n5 ? f2.unparse(c2.rT, n5, 0, 0) : m, c2.rT.setFormulaByName && c2.rT.setFormulaByName(t6, s2, a2)), c2.W_t(t6, n5, h2, null, o3), r3 || f2.recalculateAll(false);
              }, t5.prototype.getRowExpression = function(t6) {
                return this.pB(t6, -1);
              }, t5.prototype.getColumnExpression = function(t6) {
                return this.pB(-1, t6);
              }, t5.prototype.W_t = function(t6, n5, e4, i4, r3) {
                var o3, a2 = this, u2 = a2.C_t(t6, true);
                u2 && (r3 || u2.CMt(), (o3 = this.getNodeByName(t6, true)).WK = n5, i4 && (i4[0].push("dataTable", t6), i4[1] = o3.WK), e4 = n5 && e4 ? e4 : m, o3.eyt = e4, r3 || u2.yB(), u2.vyt());
              }, t5.prototype.Gyt = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.oT(t6, n5, true);
                v2 && (d2.Vyt(o3, t6, n5), c2 = null === (u2 = (s2 = d2.rT).Mf) || void 0 === u2 ? void 0 : u2.Dhe, f2 = v2.isDefault(), v2.isDefault(!!c2), (l2 = d2.Lbt).onClearExpr(s2, lt(t6, n5)), nt(l2, v2, v2.QDt, false), delete v2.QDt, delete v2.qkt, v2.CMt(), h2 = { isDefault: c2, oldIsDefault: f2 }, e4 ? ((i4 || d2.Fyt(t6, n5)) && d2.Yyt(t6, n5, i4), r3 && true === r3.isDynamicArray ? d2.bB(t6, n5, e4, m, h2) : d2.YHr(t6, n5, e4, r3, h2)) : (d2.YHr(t6, n5, e4, m, h2), d2.Yyt(t6, n5, m)), d2.cMt || v2.yB(), v2.vyt());
              }, t5.prototype.ewt = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = o3.cwt(t6, true);
                a2 && (o3.Vyt(i4, t6, -1), r3 || a2.CMt(), o3.bB(t6, -1, n5), (e4 || o3.Fyt(t6, -1)) && o3.Yyt(t6, -1, e4), r3 || a2.yB(), a2.vyt());
              }, t5.prototype.iwt = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = o3.uwt(t6, true);
                a2 && (o3.Vyt(i4, -1, t6), r3 || a2.CMt(), o3.bB(-1, t6, n5), (e4 || o3.Fyt(-1, t6)) && o3.Yyt(-1, t6, e4), r3 || a2.yB(), a2.vyt());
              }, t5.prototype.d5 = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2, f2, l2 = this, h2 = t6 < 0 ? 0 : t6, d2 = n5 < 0 ? 0 : n5, v2 = t6 < 0 ? l2.rC() : e4, p2 = n5 < 0 ? l2.cC() : i4, b2 = h2 + v2 - 1, y2 = d2 + p2 - 1, w2 = function(t7, n6) {
                  var e5, i5;
                  o3 && (e5 = l2.oT(t7, n6)) && e5.isDefault() || (a2 = l2.Fyt(t7, n6), u2 = l2.pB(t7, n6), (a2 || u2) && (i5 = (s2 = l2.sT(t7, n6)) && true !== s2.isDynamicArray ? ht(s2.row, s2.col, s2.rowCount, s2.colCount) : m, l2.SB(t7, n6, g, i5, true, r3)));
                }, M2 = l2.usedRange;
                for (c2 = h2; c2 <= b2 && c2 >= 0; c2++) if (l2.dataTable[c2]) for (n5 < 0 && (w2(c2, -1), M2 && M2.removeRowAndColInfo(c2, -1)), f2 = d2; f2 <= y2 && f2 >= 0; f2++) c2 === h2 && t6 < 0 && (w2(-1, f2), M2 && M2.removeRowAndColInfo(-1, f2)), w2(c2, f2), M2 && M2.removeRowAndColInfo(c2, f2);
                t6 < 0 && n5 < 0 && w2(t6, n5);
              }, t5.prototype.EF = function(t6, n5, e4, i4) {
                return this.mMt(t6, n5, e4, i4, true, true);
              }, t5.prototype.mMt = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2, v2 = this, p2 = t6 < 0 ? 0 : t6, g2 = n5 < 0 ? 0 : n5, m2 = t6 < 0 ? v2.rC() : e4, b2 = n5 < 0 ? v2.cC() : i4, y2 = p2 + (0 === m2 ? 1 : m2) - 1, w2 = g2 + (0 === b2 ? 1 : b2) - 1, M2 = false, C2 = [], S2 = [], T2 = v2.dataTable;
                for (s2 = p2; s2 <= y2 && s2 >= 0 && !(s2 > v2.I8); s2++) if (u2 = T2[s2]) {
                  for (c2 = g2; c2 <= w2 && c2 >= 0 && !(c2 > v2.x8); c2++) if (a2 = u2[c2]) if (l2 = void 0, (f2 = a2.$bt) && !f2.isDynamicArray) {
                    if (f2.row < p2 || f2.row + f2.rowCount - 1 > y2 || f2.col < g2 || f2.col + f2.colCount - 1 > w2) {
                      if (r3) return h2 = f2.row === t6 && 0 === e4, d2 = f2.col === n5 && 0 === i4, !h2 && !d2;
                      M2 = true;
                    }
                    if (s2 !== f2.row && s2 !== p2) continue;
                    C2.push(ht(f2.row, f2.col, f2.rowCount, f2.colCount)), l2 = a2.WK, S2.push(l2), c2 = f2.col + f2.colCount - 1;
                  } else o3 || (l2 = a2.WK) && (C2.push({ row: s2, col: c2 }), S2.push(l2));
                }
                return !r3 && { hasPart: M2, ranges: C2, formulas: S2 };
              }, t5.prototype.getCalcObj = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2 = [];
                for (t6 = 0; t6 < arguments.length; t6++) l2[t6] = arguments[t6];
                if (n5 = l2[0], e4 = l2[1], i4 = this, r3 = n5.row, o3 = n5.column, a2 = null, isNaN(r3) || isNaN(o3)) n5.name && (a2 = i4.C_t(n5.name, e4));
                else if (r3 >= 0 && o3 >= 0) if (n5.hmt()) a2 = i4.oT(r3, o3, e4);
                else for (u2 = n5.endRow, s2 = n5.endColumn, a2 = [], c2 = r3; c2 <= u2; c2++) for (f2 = o3; f2 <= s2; f2++) a2.push(i4.oT(c2, f2, e4));
                else r3 >= 0 ? a2 = i4.cwt(r3, e4) : o3 >= 0 && (a2 = i4.uwt(o3, e4));
                return a2;
              }, t5.prototype.C_t = function(t6, n5) {
                var e4 = this, i4 = g, r3 = e4.getNodeByName(t6, n5);
                return r3 && !(i4 = r3.calc) && n5 && (i4 = new B(e4, t6), r3.calc = i4, i4.node = r3), i4;
              }, t5.prototype.MMt = function(t6) {
                var n5, e4, i4, r3 = this.dataTable;
                for (n5 in r3) for (e4 in r3[n5]) (i4 = r3[n5][e4]) && i4.calc && t6(i4.calc);
              }, t5.prototype.oT = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = g;
                if (t6 >= 0 && n5 >= 0) {
                  if (!(r3 = (i4 = a2.dataTable)[t6])) {
                    if (!e4) return u2;
                    r3 = i4[t6] = {}, t6 > a2.I8 && (a2.I8 = t6);
                  }
                  if (!(o3 = r3[n5])) return e4 && (o3 = r3[n5] = {}, u2 = new V(a2, t6, n5), o3.calc = u2, u2.node = o3, n5 > a2.x8 && (a2.x8 = n5)), u2;
                  !(u2 = o3.calc) && e4 && (u2 = new V(a2, t6, n5), o3.calc = u2, u2.node = o3, t6 > a2.I8 && (a2.I8 = t6), n5 > a2.x8 && (a2.x8 = n5));
                }
                return u2;
              }, t5.prototype.cwt = function(t6, n5) {
                var e4 = this, i4 = g;
                return t6 >= 0 && !(i4 = e4.rwt(t6, -1)) && n5 && (i4 = new z(e4, t6), e4.L_t(t6, -1, i4), t6 > e4.I8 && (e4.I8 = t6)), i4;
              }, t5.prototype.uwt = function(t6, n5) {
                var e4 = this, i4 = g;
                return t6 >= 0 && !(i4 = e4.rwt(-1, t6)) && n5 && (i4 = new Y(e4, t6), e4.L_t(-1, t6, i4), t6 > e4.x8 && (e4.x8 = t6)), i4;
              }, t5.prototype.uT = function(t6) {
                var n5 = this;
                return !n5.__t && t6 && (n5.__t = new W(n5)), n5.__t;
              }, t5.prototype.asr = function() {
                var t6 = this;
                return t6.rT.asr && t6.rT.asr();
              }, t5.prototype.vwt = function(t6, n5) {
                var e4, i4 = this, r3 = A(t6);
                return i4.E_t || (i4.E_t = {}), !(e4 = i4.E_t[r3]) && n5 && (e4 = i4.E_t[r3] = new Z(i4, t6)), e4;
              }, t5.prototype.rBe = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = o3.E_t && o3.E_t[A(t6)], u2 = o3.E_t && o3.E_t[A(n5)];
                return i4 || u2 && u2.oBe(false, r3) ? e4 || a2 && a2.oBe(true) ? 2 : 3 : (a2 && (a2.name = n5, delete o3.E_t[A(t6)]), o3.E_t && (o3.E_t[A(n5)] = a2), 1);
              }, t5.prototype.updateNameCalc = function(t6, n5) {
                var e4 = this.vwt(A(t6));
                e4 && (e4.updateListening(true, n5), e4.vyt());
              }, t5.prototype.Q_t = function(t6, n5) {
                var e4, i4, r3 = this, o3 = N(r3.x8, t6 + n5 - 1);
                for (e4 = t6; -1 !== e4 && e4 <= o3; e4++) r3.isEmpty(-1, e4) && (i4 = r3.uwt(e4, true), r3.Lbt.I3(i4, 2));
              }, t5.prototype.K_t = function(t6, n5) {
                var e4, i4, r3 = this, o3 = N(r3.I8, t6 + n5 - 1);
                for (e4 = t6; -1 !== e4 && e4 <= o3; e4++) r3.isEmpty(e4, -1) && (i4 = r3.cwt(e4, true), r3.Lbt.I3(i4, 1));
              }, t5.prototype.Mde = function(t6, n5) {
                var e4, i4, r3, o3 = this;
                o3.B_t(t6, n5) ? (e4 = o3.oT(t6, n5, true), o3.Lbt.I3(e4, 0)) : (i4 = o3.uT(false)) && i4.o_t(t6, n5, 1, 1), o3.K_t(t6, 1), o3.Q_t(n5, 1), (r3 = o3.asr()) && r3.o_t(t6, n5);
              }, t5.prototype.l0r = function(t6, n5) {
                var e4, i4, r3, o3 = this, a2 = null, u2 = 1, s2 = 1, c2 = N(o3.I8, t6 + u2 - 1), f2 = N(o3.x8, n5 + s2 - 1);
                for (-1 !== t6 && -1 === n5 ? (n5 = 0, f2 = o3.x8) : -1 === t6 && -1 !== n5 && (t6 = 0, c2 = o3.I8), e4 = t6; e4 <= c2; e4++) for (i4 = n5; i4 <= f2; i4++) o3.B_t(e4, i4) && (a2 = o3.oT(e4, i4, true)).o_t(3);
                (r3 = o3.uT(false)) && r3.o_t(t6, n5, u2, s2, 3);
              }, t5.prototype.gF = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2 = this, c2 = null, f2 = N(s2.I8, t6 + e4 - 1), l2 = N(s2.x8, n5 + i4 - 1);
                for (r3 = t6; r3 <= f2; r3++) for (o3 = n5; o3 <= l2; o3++) s2.B_t(r3, o3) && (c2 = s2.oT(r3, o3, true), s2.Lbt.I3(c2, 0));
                s2.K_t(t6, e4), s2.Q_t(n5, i4), (a2 = s2.uT(false)) && a2.o_t(t6, n5, e4, i4), (u2 = s2.asr()) && u2.o_t(t6, n5, e4, i4);
              }, t5.prototype.p3 = function() {
                var t6, n5, e4 = this;
                e4.MMt((function(t7) {
                  t7.J_t(e4);
                })), (t6 = e4.uT(false)) && t6.J_t(e4), (n5 = e4.asr()) && n5.J_t(e4);
              }, t5.prototype.xde = function() {
                var t6, n5, e4, i4, r3 = this, o3 = r3.lwt().concat(r3.H_t()).concat(r3.z_t());
                for (e4 = 0; e4 < o3.length; e4++) (i4 = o3[e4]) && (i4.isVolatile || i4.$Te || i4.isPivotData) && i4 instanceof V && !i4.k1 && (r3.Lbt.I3(i4, 0), (t6 = r3.cwt(i4.row, false)) && !r3.$_t(t6) && r3.K_t(i4.row, 1), (n5 = r3.uwt(i4.column, false)) && !r3.$_t(n5) && r3.Q_t(i4.column, 1));
              }, t5.prototype.$_t = function(t6) {
                return t6.k1;
              }, t5.prototype.isDirtyColumn = function(t6) {
                return t6.k1;
              }, t5.prototype.isEmpty = function(t6, n5) {
                return !(!this.rwt(t6, n5) && !this.pB(t6, n5));
              }, t5.prototype.processDynamicListenerForCell = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2 = this, h2 = l2.rT, d2 = l2.M_t(t6, n5) || l2.ODt(t6, n5);
                d2 && (e4 = lt(t6, n5), i4 = false, r3 = void 0, o3 = void 0, a2 = void 0, u2 = void 0, (s2 = l2.sT(t6, n5)) && true !== s2.isDynamicArray && (i4 = true, r3 = s2.row, o3 = s2.col, a2 = s2.rowCount, u2 = s2.colCount), c2 = l2.Lbt, f2 = l2.rT.getCalcSourceModel().oT(t6, n5), c2.evaluateParsedFormula(l2.rT, d2, e4, i4, true, s2 && true !== s2.isDynamicArray && ht(r3, o3, a2, u2), c2.allowDynamicArray, false, f2), $(f2, h2, c2, t6, n5, false));
              }, t5.prototype.recalculateCell = function(t6, n5) {
                var e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, b2, y2, w2, C2, T2, x2, A2 = this, I2 = A2.rT, N2 = t6.row, j2 = t6.column, D2 = A2.M_t(N2, j2) || A2.ODt(N2, j2), _2 = I2, E2 = _2 && _2.Mf, R2 = {};
                if (D2) {
                  if (k(D2.ensureSingle) && (D2.ensureSingle = t6.isDefault && t6.isDefault()), i4 = lt(N2, j2), o3 = I2.getValue(N2, j2, m, true), a2 = false, u2 = void 0, s2 = void 0, c2 = void 0, f2 = void 0, (l2 = A2.sT(N2, j2)) && true !== l2.isDynamicArray && (a2 = true, u2 = l2.row, s2 = l2.col, c2 = l2.rowCount, f2 = l2.colCount), l2 && l2.isDynamicArray && (R2.$bt = l2), (h2 = A2.Lbt).Z_t && h2.MX.asyncManager.startCalcCell(A2.rT, i4), d2 = h2.evaluateParsedFormula(A2.rT, D2, i4, a2, true, l2 && true !== l2.isDynamicArray && ht(u2, s2, c2, f2), h2.allowDynamicArray, n5, t6), n5 && d2 && d2.pause) return d2;
                  if ($(t6, I2, h2, N2, j2, n5), n5 && t6.delay > 0) return { pause: "newDetectedRefs" };
                  if (v2 = r2.Convert.LE(d2) && d2.rT || r2.Convert.Nh(d2), g2 = false, b2 = void 0, a2 || !h2.allowDynamicArray || D2.ensureSingle || !D2.t8t && !v2 || (b2 = { row: N2, col: j2, rowCount: c2 = d2.getRowCount ? d2.getRowCount() : 1, colCount: f2 = d2.getColumnCount ? d2.getColumnCount() : 1, isDynamicArray: true }, g2 = true, A2.Uyt(N2, j2, b2)), y2 = void 0, v2 && ((y2 = r2.Convert.iV(d2, 0, false, false, false)).isError || y2.isConvertError ? (d2 = null !== (e4 = y2.isError && y2[0]) && void 0 !== e4 ? e4 : M, v2 = false) : (c2 = y2.rowCount, f2 = y2.colCount, 0 === c2 || 0 === f2 ? (d2 = S, v2 = false) : 1 === c2 && 1 === f2 ? (d2 = y2[0][0], k(d2) && (d2 = 0), v2 = false) : g2 || (D2.$9t = true, d2 = r2.Functions.findGlobalFunction("@").evaluate({ row: N2, column: j2 }, d2), v2 = false))), v2) w2 = _2.setArray(N2, j2, c2, f2, y2), b2 = K(K({}, b2), { nE: w2 }), A2.Uyt(N2, j2, b2), b2.nE && (h2.p_t = h2.p_t || [], h2.p_t.push([A2, b2]));
                  else if ((C2 = _2.updateItem && _2.updateItem(N2, j2, d2)) || o3 !== d2) {
                    if (o3 instanceof Date) {
                      if (!C2 && d2 instanceof Date && o3.valueOf() === d2.valueOf()) return R2;
                      if (typeof d2 === O) {
                        if (T2 = p.o0(o3), !C2 && T2 === d2) return R2;
                        d2 = p.Y0(d2);
                      }
                    }
                    (x2 = E2 && t6.isDefault) && (E2.Dhe = t6.isDefault()), I2.setValue(N2, j2, d2, o3, m, E2 && E2.Dhe), x2 && delete E2.Dhe;
                  }
                  h2.Z_t && h2.MX.asyncManager.endCalcCell(), _2.Vbt && _2.Vbt(N2, j2);
                }
                return R2;
              }, t5.prototype.recalculateNameID = function(t6) {
                var n5, e4, i4 = this, r3 = i4.rT, o3 = i4.D_t(t6) || i4.$yt(t6);
                if (o3) {
                  if ((n5 = r3.getValueByName ? r3.getValueByName(t6) : r3.getValue({ name: t6 })) === (e4 = i4.Lbt.evaluateParsedFormula(i4.rT, o3, { name: t6 }, false, true))) return;
                  if (n5 instanceof Date && e4 instanceof Date && n5.valueOf() === e4.valueOf()) return;
                  r3.setValueByName ? r3.setValueByName(t6, e4) : r3.setValue({ name: t6 }, e4);
                }
              }, t5.prototype.Cde = function(t6, n5) {
                var e4, i4, r3, o3, a2 = this;
                if (false !== t6) {
                  if (a2.dataTableByName) for (e4 in a2.dataTableByName) a2.dataTableByName.hasOwnProperty(e4) && (i4 = a2.dataTableByName[e4]).calc && i4.calc.vyt();
                  r3 = a2.cC(), o3 = a2.rC(), a2.Q_t(0, r3), a2.K_t(0, o3), a2.gF(0, 0, o3, r3);
                } else n5 || a2.xde();
              }, t5.prototype.Nde = function(t6) {
                for (var n5, e4, i4, r3; t6.y3[1]; ) {
                  for (i4 = (e4 = (n5 = t6.y3[1]).w3).cC(), r3 = 0; r3 < i4; r3++) t6.I3(e4.oT(n5.row, r3, true), 0);
                  t6.b_t(n5, 1);
                }
              }, t5.prototype.kde = function(t6) {
                for (var n5, e4, i4, r3; t6.y3[2]; ) {
                  if ((i4 = (e4 = (n5 = t6.y3[2]).w3).rC()) > 0) for (r3 = 0; r3 < i4; r3++) t6.I3(e4.oT(r3, n5.column, true), 0);
                  else n5.o_t();
                  t6.b_t(n5, 2);
                }
              }, t5.prototype.n8t = function(t6, n5) {
                for (var e4 = t6.length, i4 = n5; i4; ) t6[e4] = i4, e4++, i4 = i4.C3;
              }, t5.prototype.mge = function(t6, n5) {
                var e4, i4 = t6.row, r3 = t6.column, o3 = n5.cwt(i4, false), a2 = n5.uwt(r3, false), u2 = n5.uT(false), s2 = null == n5 ? void 0 : n5.asr();
                t6.o_t(), o3 && o3.o_t(), a2 && a2.o_t(), u2 && ((e4 = t6.node && t6.node.$bt) && e4.isDynamicArray ? u2.o_t(i4, r3, e4.rowCount, e4.colCount) : u2.o_t(i4, r3, 1, 1)), s2 && s2.o_t(i4, r3);
              }, t5.prototype.addListenersToDirty = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2;
                if (1 === n5) this.Nde(t6);
                else if (2 === n5) this.kde(t6);
                else if (0 === n5) for (e4 = [], t6.y3[2] && this.n8t(e4, t6.y3[2]), i4 = t6.y3[0]; i4; i4 = i4.C3) for (r3 = i4.w3, this.mge(i4, r3), this.Nde(t6); t6.y3[2]; ) {
                  for (o3 = t6.y3[2], a2 = false, u2 = 0; u2 < e4.length; u2++) if (e4[u2] === o3) {
                    a2 = true;
                    break;
                  }
                  if (a2) t6.b_t(o3, 2);
                  else {
                    for (e4[e4.length] = o3, s2 = (r3 = o3.w3).rC(), c2 = 0; c2 < s2; c2++) t6.I3(r3.oT(c2, o3.column, true), 0);
                    t6.b_t(o3, 2);
                  }
                }
                else if (3 === n5) for (f2 = t6.y3[3]; f2; f2 = f2.C3) f2.o_t();
              }, t5.prototype.initDelay = function(t6, e4) {
                var i4, r3, o3, a2, u2, s2, c2;
                if (0 === e4) for (i4 = null, r3 = t6.y3[0]; r3; r3 = i4) r3.QDt && (nt(t6, r3, r3.QDt, false), delete r3.QDt), i4 = r3.C3, a2 = (o3 = r3.w3).rC(), u2 = o3.cC(), s2 = void 0, r3.row < a2 && r3.column < u2 ? (n4.supportRowColumnFormula && (s2 = o3.uwt(r3.column, false)) && (s2.delay = 0), r3.delay = 0, delete r3.u_t) : t6.b_t(r3, 0), s2 || r3.node.WK || t6.b_t(r3, 0);
                else if (3 === e4) for (c2 = t6.y3[3]; c2; c2 = c2.C3) c2.delay = 0;
              }, t5.prototype.adjustDelayOfListeners = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, l2;
                if (0 === n5) for (i4 = t6.y3[n5]; i4; i4 = i4.C3) r3 = i4.w3, o3 = i4.row, a2 = i4.column, u2 = r3.cwt(o3, false), s2 = r3.uwt(a2, false), c2 = r3.uT(false), f2 = r3.asr(), i4.a_t(e4), u2 && u2.a_t(e4), s2 && s2.a_t(e4), c2 && c2.a_t(o3, a2, e4), f2 && f2.a_t(o3, a2, e4);
                else if (3 === n5) for (l2 = t6.y3[3]; l2; l2 = l2.C3) l2.a_t(e4);
              }, t5.prototype.calculateDirtyNodes = function(t6, n5, e4) {
                var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2 = false, C2 = null, S2 = t6.df;
                if (0 === n5) {
                  for (o3 = S2 && S2.c || t6.y3[n5], S2 && (S2.c = m), a2 = o3; a2; a2 = i4) if (i4 = a2.C3, u2 = false, e4 && a2.i9t && (u2 = true, delete a2.i9t), a2.delay <= 0 || u2) {
                    if (S2 && ++S2.count >= r2.TimeoutNodes && (S2.count = 0, (s2 = performance.now()) - S2.start > r2.TimeoutTime)) return S2.c = a2, S2;
                    if (a2.$Te && this.U_t(a2), C2 = a2.w3, c2 = a2.row, f2 = a2.column, l2 = C2.cwt(c2, false), (h2 = C2.uwt(f2, false)) && h2.delay) continue;
                    if (d2 = C2.uT(false), t6.xgr = true, v2 = C2.recalculateCell(a2, !a2.e8t || a2.e8t < 32), t6.xgr = false, v2 && v2.pause) {
                      if (a2.e8t = a2.e8t ? a2.e8t + 1 : 1, v2.branch) for (i4 = a2, p2 = 0; p2 < v2.branch.length; p2++) (v2.branch[p2].k1 || v2.branch[p2] === a2) && (a2.delay++, (g2 = v2.branch[p2]).u_t = g2.u_t || [], g2.u_t.push(a2));
                    } else delete a2.e8t, t6.b_t(a2, 0), a2.a_t(false, v2), l2 && l2.a_t(false), h2 && h2.a_t(false), d2 && d2.a_t(c2, f2, false), (b2 = C2.asr(a2)) && b2.a_t(c2, f2, false), (y2 = a2.node && a2.node.WK) && y2.lMt && delete y2.lMt;
                    M2 = true;
                  }
                  M2 || e4 || (M2 = this.calculateDirtyNodes(t6, n5, true));
                } else if (3 === n5) for (w2 = t6.y3[n5]; w2; w2 = i4) i4 = w2.C3, 0 === w2.delay && (w2.P6t ? w2.P6t() : (C2 = w2.w3).recalculateNameID(w2.name), t6.b_t(w2, 3), w2.a_t(false), M2 = true);
                return M2;
              }, t5.prototype.calculateIterations = function(t6, e4) {
                var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2;
                if (0 === e4 && (a2 = t6.df, u2 = t6.y3[e4])) if (s2 = null, c2 = true, t6.iterativeCalculation) {
                  for (l2 in t6.rO) t6.rO.hasOwnProperty(l2) && ((h2 = t6.rO[l2].getSource()).clearValueCache && h2.clearValueCache(), h2.startIterativeCalc && h2.startIterativeCalc());
                  for (d2 = a2 && a2.i || 0; c2 && d2 < t6.iterativeCalculationMaximumIterations; d2++) {
                    if (c2 = false, a2 && (v2 = performance.now()) - a2.start > r2.TimeoutTime) return a2.i = d2, a2;
                    for (s2 = u2; s2; s2 = s2.C3) delete s2.e8t, f2 = s2.node && s2.node.WK && s2.node.WK.lMt, null === (o3 = s2.w3) || void 0 === o3 || o3.G_t(s2, !f2, g), f2 && (s2.node.WK.lMt = m), p2 = s2.w3, b2 = s2.row, y2 = s2.column, w2 = p2.getSource().getValue(b2, y2), p2.recalculateCell(s2), c2 || (M2 = p2.getSource().getValue(b2, y2), (0, n4.approximatelyEqual)(w2, M2, t6.iterativeCalculationMaximumChange) || (c2 = true));
                  }
                  for (l2 in t6.rO) t6.rO.hasOwnProperty(l2) && (h2 = t6.rO[l2].getSource()).endIterativeCalc && h2.endIterativeCalc();
                } else for (s2 = u2; s2; s2 = s2.C3) f2 = s2.node && s2.node.WK && s2.node.WK.lMt, null === (i4 = s2.w3) || void 0 === i4 || i4.G_t(s2, !f2, 0), f2 && (s2.node.WK.lMt = m), delete s2.e8t;
              }, t5.prototype.cyt = function(t6, n5, e4, i4, a2, u2, s2) {
                var c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, N2, j2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2 = this;
                if (u2 && at2.U_t(t6), i4) {
                  for (; 12 === i4.type; ) i4 = i4.value;
                  for (; 10 === i4.type; ) i4 = i4.value;
                  for (; 12 === i4.type; ) i4 = i4.value;
                  if (a2) {
                    for (; 12 === a2.type; ) a2 = a2.value;
                    for (; 10 === a2.type; ) a2 = a2.value;
                    for (; 12 === a2.type; ) a2 = a2.value;
                  }
                  if (a2 && a2 !== i4 && (8 === a2.type || 7 === a2.type && 8 === i4.type)) {
                    if (a2.source instanceof r2.ErrorSource) return;
                    if (l2 = (D2 = 7 === a2.type) ? a2.functionName : a2.value, a2.value2 && l2 !== a2.value2.name) return void (D2 ? a2.functionName = a2.value2.name : a2.value = a2.value2.name);
                    if (N2 = i4.source || a2.source || s2 || at2.rT, (O2 = (_2 = at2.Lbt.getGlobalSourceModel() || N2.getCalcSourceModel()).getSource()).addUsedCustomName && O2.addUsedCustomName(l2), !(j2 = N2.getCalcSourceModel())) return;
                    h2 = N2.getCustomName(l2), E2 = j2.vwt(l2, true), d2 = _2.vwt(l2, true), R2 = !u2, u2 && (a2.source || h2) || R2 && a2.value2 === E2 ? (a2.value2 = u2 ? E2 : g, E2 && E2.Iwt(0, t6, u2), a2.source || d2.gBe(t6, u2)) : (d2.Iwt(0, t6, u2), (h2 = O2.getCustomName(l2)) && (a2.value2 = u2 ? d2 : g), j2 = _2), a2 = null, h2 && at2.cyt(t6, n5, e4, h2, g, u2, j2.getSource());
                  }
                  if (13 === i4.type) {
                    if (t6.e_t && u2) return;
                    if (null === (c2 = i4.abt) || void 0 === c2 ? void 0 : c2.cyt) return void i4.abt.cyt(t6, i4, u2);
                    if ((L2 = i4.getRange(n5, e4, true)) === g) return;
                    i4 = 1 === L2.rowCount && 1 === L2.colCount ? (0, o2.knt)(i4.source, g, L2.row, L2.col, false, false) : (0, o2.lJ)(i4.source, g, L2.row, L2.col, L2.row + L2.rowCount - 1, L2.col + L2.colCount - 1, false, false, false, false);
                  }
                  if (1 === i4.type && i4.endSource) {
                    if (B2 = (F2 = i4).source.getSources(F2.endSource)) for (f2 = 0; f2 < B2.length; f2++) (P2 = (0, o2.lJ)(B2[f2], g, F2.row, F2.column, F2.endRow, F2.endColumn, F2.rowRelative, F2.columnRelative, F2.endRowRelative, F2.endColumnRelative, n5, e4)).isFullRow = F2.isFullRow, P2.isFullColumn = F2.isFullColumn, at2.cyt(t6, n5, e4, P2, g, u2);
                  } else if (1 === i4.type) {
                    if (G2 = at2.rT, j2 = (N2 = i4.source || G2).getCalcSourceModel(), G2 && G2.G3 && N2 && G2.id !== N2.id && N2.getSheet && N2.getSheet() && G2.addReferenceSheetName(N2.getSheet().name()), !j2 && N2.ayt && N2.cyt && N2.cyt(t6, u2, i4), !j2) return;
                    if (U2 = i4, H2 = t6.row === m || t6.column === m, z2 = U2.Tyt(), Y2 = (0, o2.getRangeForReference)(U2, n5, e4), Z2 = void 0, i4.ensureSingle && !i4.hmt() && (W2 = void 0, Q2 = void 0, 1 === Y2.colCount && (2 === z2 || Y2.row <= n5 && Y2.row + Y2.rowCount > n5) && (W2 = n5, Q2 = Y2.col), 1 === Y2.rowCount && (1 === z2 || Y2.col <= e4 && Y2.col + Y2.colCount > e4) && (W2 = Y2.row, Q2 = e4), k(W2) || (S2 = j2.oT(W2, Q2, true), H2 ? S2 && S2.Iwt(3, t6, u2) : S2 && S2.Iwt(0, t6, u2)), t6.e_t = true, Z2 = true), p2 = Y2.row, y2 = Y2.col, b2 = p2 + (M2 = Y2.rowCount) - 1, w2 = y2 + (C2 = Y2.colCount) - 1, 0 === z2) {
                      if (0 <= n5 && 0 <= e4) k(U2.endRow) ? (S2 = j2.oT(p2, y2, true), H2 ? S2 && S2.Iwt(3, t6, u2) : S2 && S2.Iwt(0, t6, u2)) : (v2 = j2.uT(true), H2 ? v2.i8t(p2, y2, M2, C2, t6, u2) : v2.JDt(p2, y2, M2, C2, t6, u2));
                      else if (0 <= n5 && -1 === e4) for (A2 = p2; A2 <= b2; A2++) for (I2 = y2; I2 <= w2; I2++) U2.columnRelative || U2.endColumnRelative ? (T2 = j2.cwt(A2, true)) && T2.r8t(t6.row, -I2, u2) : (S2 = j2.oT(A2, I2, true)) && S2.Iwt(1, t6, u2);
                      else if (0 <= e4 && -1 === n5) for (A2 = p2; A2 <= b2; A2++) for (I2 = y2; I2 <= w2; I2++) U2.rowRelative || U2.endRowRelative ? (x2 = j2.uwt(I2, true)) && x2.o8t(t6, -A2, u2) : (S2 = j2.oT(A2, I2, true)) && S2.Iwt(2, t6, u2);
                    } else if (1 === z2) {
                      if (0 <= n5 && 0 <= e4) v2 = j2.uT(true), H2 ? v2.i8t(p2, y2, M2, C2, t6, u2) : v2.JDt(p2, y2, M2, C2, t6, u2);
                      else if (0 <= n5 && -1 === e4) ;
                      else if (-1 === n5 && 0 <= e4) if (U2.rowRelative || U2.endRowRelative) ;
                      else for (p2 = U2.row, b2 = U2.endRow, A2 = p2; A2 <= b2; A2++) (T2 = j2.cwt(A2, true)) && T2.Iwt(2, t6, u2);
                    } else if (2 === z2) {
                      if (0 <= n5 && 0 <= e4) v2 = j2.uT(true), H2 ? v2.i8t(p2, y2, M2, C2, t6, u2) : v2.JDt(p2, y2, M2, C2, t6, u2);
                      else if (0 <= n5 && -1 === e4) ;
                      else if (-1 === n5 && 0 <= e4) for (I2 = y2; I2 <= w2; I2++) (x2 = j2.uwt(I2, true)) && x2.Iwt(2, t6, u2);
                    } else 3 === z2 && (v2 = j2.uT(true), H2 ? v2.i8t(0, 0, r2.MAX_ROW_COUNT, r2.MAX_COLUMN_COUNT, t6, u2) : v2.JDt(0, 0, r2.MAX_ROW_COUNT, r2.MAX_COLUMN_COUNT, t6, u2));
                    Z2 && delete t6.e_t;
                  } else if (9 === i4.type) at2.cyt(t6, n5, e4, i4.value, a2 && 9 === a2.type && a2.value, u2), i4.value2 && at2.cyt(t6, n5, e4, i4.value2, a2 && 9 === a2.type && a2.value2, u2);
                  else if (8 === i4.type) {
                    if (i4.jwt) return;
                    if (i4.jwt = true, N2 = i4.source || s2 || at2.rT, l2 = i4.value, a2 ? (h2 = N2.getCustomName(l2)) ? j2 = N2.getCalcSourceModel() : (h2 = (j2 = at2.Lbt.getGlobalSourceModel() || N2.getCalcSourceModel()).getSource().getCustomName(l2)) || (J2 = (K2 = N2.getCalcSourceModel()) && K2.vwt(l2, true)) && J2.Iwt(0, t6, u2) : i4.source ? (j2 = N2.getCalcSourceModel(), h2 = N2.getCustomName(l2)) : h2 = (j2 = at2.Lbt.getGlobalSourceModel() || N2.getCalcSourceModel()).getSource().getCustomName(l2), !(d2 = j2.vwt(l2, true))) return;
                    d2.Iwt(0, t6, u2), h2 && at2.cyt(t6, n5, e4, h2, g, u2, j2.getSource()), i4.jwt = m;
                  } else if (7 === i4.type) {
                    if (i4.jwt) return;
                    if (i4.jwt = true, X2 = i4.function) if ((0, r2.isExpression)(X2)) for (at2.cyt(t6, n5, e4, X2, a2 && 7 === a2.type && a2.function instanceof r2.Expression && a2.function, u2), $2 = i4.arguments.length, f2 = 0; f2 < $2; f2++) at2.cyt(t6, n5, e4, i4.arguments[f2], a2 && 7 === a2.type && a2.arguments[f2], u2);
                    else for (X2 && ((tt2 = X2.u9t) && at2.Lbt.l_t(t6, tt2, u2), X2.isVolatile() && (u2 ? at2.nbt(t6) : at2.R_t(t6)), "GETPIVOTDATA" === X2.name && (u2 ? (at2.ZYr(i4), at2.V_t(t6)) : at2.F_t(t6)), X2 instanceof r2.Functions.AsyncFunction && (at2.Lbt.Z_t = true)), $2 = i4.arguments.length, f2 = 0; f2 < $2; f2++) X2 && X2.skipPrecedent(f2) && at2.a8t(t6, i4, f2, X2, n5, e4) && (t6.e_t = true), nt2 = false, this.Lbt.dynamicReferences && X2 && X2.isBranch() && X2.findTestArgument() !== f2 && t6 instanceof V && (i4.u8t = true, et2 = t6.getKey(), i4.s8t = i4.s8t || {}, i4.s8t[et2] = i4.s8t[et2] || [], i4.s8t[et2][f2] = [], nt2 = true, t6.ebt = t6.ebt || [], t6.ebt.push(i4.s8t[et2][f2])), at2.cyt(t6, n5, e4, i4.arguments[f2], a2 && 7 === a2.type && a2.arguments[f2], u2), nt2 && t6.ebt.pop(), delete t6.e_t;
                    else for (!i4.isLocalFunctionName && i4.functionName && ((q2 = new r2.Expression(8)).value = i4.functionName, at2.cyt(t6, n5, e4, q2, i4, u2)), $2 = i4.arguments.length, f2 = 0; f2 < $2; f2++) at2.cyt(t6, n5, e4, i4.arguments[f2], a2 && 7 === a2.type && a2.arguments[f2], u2);
                    i4.jwt = m;
                  } else if (25 === i4.type || 26 === i4.type) {
                    if (it2 = i4, !(rt2 = (j2 = (N2 = i4.source || at2.rT).getCalcSourceModel()).C_t(it2.value, true))) return;
                    rt2.Iwt(0, t6, u2);
                  } else 22 !== i4.type && 14 !== i4.type || (22 === i4.type && (G2 = at2.rT, N2 = i4.source || G2, G2 && G2.G3 && N2 && G2.id !== N2.id && N2.getSheet && N2.getSheet() && G2.addReferenceSheetName(N2.getSheet().name())), (ot2 = i4).Iwt && ot2.Iwt(t6, u2));
                }
              }, t5.prototype.a8t = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2 = n5.arguments[e4];
                return 12 === c2.type && (c2 = c2.value), (!c2 || !(c2.function && c2.function.name || c2.dHr)) && (i4.i9t ? !(!this.Lbt.dynamicReferences || !c2 || 1 !== c2.type && 13 !== c2.type) && (a2 = c2.source || this.rT, this.Lbt.lb && a2 && a2.getRangeKey && ((u2 = c2.getRange(r3, o3)).rowUndefine && (u2.row = u2.rowCount = -1), u2.colUndefine && (u2.col = u2.colCount = -1), u2.id = a2.id, s2 = a2.getRangeKey(a2, u2), t6.qkt || (t6.qkt = {}), t6.qkt[s2] = u2, t6.i9t = true), true) : !(!c2 || 1 !== c2.type && 13 !== c2.type && 22 !== c2.type));
              }, t5.prototype.f_t = function(t6, n5) {
                var e4 = this.getNodeByName(t6);
                e4 && (e4.eyt || e4.WK) && this.cyt(this.C_t(t6), 0, 0, e4.eyt || e4.WK, e4.WK, n5);
              }, t5.prototype.b_t = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2 = this, l2 = t6 + e4, h2 = n5 + i4;
                for (u2 = t6; u2 < l2; u2++) if (this.dataTable[u2]) for (s2 = n5; s2 < h2; s2++) (o3 = f2.pB(u2, s2)) && (c2 = f2.oT(u2, s2), f2.Lbt.b_t(c2, 0));
              }, t5.prototype.c8t = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2 = this, v2 = t6 + e4, p2 = n5 + i4;
                for (f2 = t6; f2 < v2; f2++) if (this.dataTable[f2]) {
                  for (l2 = n5; l2 < p2; l2++) if (u2 = d2.Fyt(f2, l2), s2 = d2.pB(f2, l2), u2 || s2) {
                    if (c2 = d2.sT(f2, l2), a2 && (!c2 || c2.isDynamicArray)) continue;
                    if (h2 = d2.oT(f2, l2), o3 && h2.isDefault()) continue;
                    c2 && true !== c2.isDynamicArray ? d2.cyt(h2, c2.row, c2.col, u2 || s2, s2, r3) : d2.cyt(h2, f2, l2, u2 || s2, s2, r3), r3 && h2.qkt && (nt(h2.c_t(), h2, h2.qkt, true, false), h2.QDt = h2.qkt, delete h2.qkt), r3 || h2.QDt && nt(h2.c_t(), h2, h2.QDt, false, false);
                  }
                }
              }, t5.prototype.f8t = function(t6, n5, e4) {
                var i4, r3, o3 = t6 + n5;
                for (i4 = t6; -1 !== i4 && i4 < o3; i4++) (r3 = this.getColumnExpression(i4)) && this.cyt(this.uwt(i4, false), -1, i4, r3, r3, e4);
              }, t5.prototype.l8t = function(t6, n5, e4, i4) {
                this.c8t(t6, n5, e4, i4, true);
              }, t5.prototype.mF = function(t6, n5, e4, i4, r3, o3) {
                this.c8t(t6, n5, e4, i4, false, r3, o3);
              }, t5.prototype.h8t = function(t6, n5) {
              }, t5.prototype.hwt = function(t6, n5) {
              }, t5.prototype.d8t = function(t6, n5) {
                this.f8t(t6, n5, true);
              }, t5.prototype.dwt = function(t6, n5) {
                this.f8t(t6, n5, false);
              }, t5.prototype.v8t = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2 = t6 + e4, l2 = n5 + i4, h2 = this;
                for (u2 = t6; u2 < f2; u2++) if (this.dataTable[u2]) for (s2 = n5; s2 < l2; s2++) (c2 = this.oT(u2, s2, false)) && (h2.Vyt(a2, u2, s2), r3 && c2.mB(), o3 && c2.o_t());
              }, t5.prototype.m8t = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2, c2 = this, f2 = c2.AE;
                if (-1 !== t6 && f2) for (o3 = N(t6 + n5, f2.length), a2 = t6; a2 < o3; a2++) (u2 = f2[a2]) && u2.calc && (c2.Vyt(r3, a2, -1), s2 = u2.calc, e4 && s2.mB(), i4 && s2.o_t());
              }, t5.prototype.g8t = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2, c2 = this, f2 = c2.IE;
                if (-1 !== t6 && f2) for (o3 = N(t6 + n5, f2.length), a2 = t6; a2 < o3; a2++) (u2 = f2[a2]) && u2.calc && (c2.Vyt(r3, -1, a2), s2 = u2.calc, e4 && s2.mB(), i4 && s2.o_t());
              }, t5.prototype.Ryt = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2;
                (r3 || o3) && (u2 = this, s2 = void 0, a2 && (s2 = 2 === a2 ? [] : u2.pj()), 0 <= t6 && 0 <= n5 ? (u2.v8t(t6, n5, e4, i4, r3, o3, s2), u2.m8t(t6, e4, r3, o3, s2), u2.g8t(n5, i4, r3, o3, s2), u2.__t && (r3 && u2.__t.mB(t6, n5, e4, i4), o3 && u2.__t.o_t(t6, n5, e4, i4))) : 0 <= t6 && -1 === n5 ? (u2.v8t(t6, 0, e4, u2.cC(), r3, o3, s2), u2.m8t(t6, e4, r3, o3, s2), u2.__t && (r3 && u2.__t.mB(t6, n5, e4, i4), o3 && u2.__t.o_t(t6, n5, e4, i4))) : -1 === t6 && 0 <= n5 ? (u2.v8t(0, n5, u2.rC(), i4, r3, o3, s2), u2.g8t(n5, i4, r3, o3, s2), u2.__t && (r3 && u2.__t.mB(t6, n5, e4, i4), o3 && u2.__t.o_t(t6, n5, e4, i4))) : -1 === t6 && -1 === n5 && (c2 = u2.rC(), f2 = u2.cC(), u2.v8t(0, 0, c2, f2, r3, o3, s2), u2.m8t(0, c2, r3, o3, s2), u2.g8t(0, f2, r3, o3, s2), u2.__t && (r3 && u2.__t.mB(t6, n5, e4, i4), o3 && u2.__t.o_t(t6, n5, e4, i4))));
              }, t5.prototype.getAllNodes = function() {
                var t6, n5, e4, i4, r3 = [], o3 = this.dataTable, a2 = this.AE, u2 = this.IE, s2 = this.xE;
                for (n5 in s2 && r3.push(s2), a2) a2.hasOwnProperty(n5) && (t6 = a2[n5]) && r3.push(t6);
                for (n5 in u2) u2.hasOwnProperty(n5) && (t6 = u2[n5]) && r3.push(t6);
                for (e4 in o3) if (o3.hasOwnProperty(e4) && (i4 = o3[e4])) for (n5 in i4) i4.hasOwnProperty(n5) && (t6 = i4[n5]) && r3.push(t6);
                return r3;
              }, t5.prototype.toJSON = function(t6, e4) {
                n4.supportRowColumnFormula ? this.rT.toJSON(t6, this.dataTable, this.I8, this.x8, this.IE, e4) : this.rT.toJSON(t6, this.dataTable, this.I8, this.x8, m, e4);
              }, t5.prototype.wh = function(t6, e4) {
                n4.supportRowColumnFormula ? this.rT.wh(t6, this.dataTable, this.I8, this.x8, this.IE, e4) : this.rT.wh(t6, this.dataTable, this.I8, this.x8, void 0, e4);
              }, t5;
            })(), n4.CalcSourceModel = H, V = (function(t5) {
              function n5(n6, e4, i4) {
                var r3 = t5.call(this, n6) || this;
                return r3.row = e4, r3.column = i4, r3.delay = 0, r3;
              }
              return Q(n5, t5), n5.prototype.getKey = function() {
                var t6 = this;
                return t6.Kyn || (t6.Kyn = n5.IDCount.toString(36), n5.IDCount++), t6.Kyn;
              }, n5.prototype.yB = function() {
                var t6 = this;
                t6.w3.l8t(t6.row, t6.column, 1, 1);
              }, n5.prototype.CMt = function() {
                var t6 = this;
                t6.w3.mF(t6.row, t6.column, 1, 1);
              }, n5.prototype.r_t = function() {
                this.w3.op().onAddAdjust(this, 0);
              }, n5.prototype.vyt = function() {
                this.w3.op().I3(this, 0);
              }, n5.prototype.J_t = function(t6) {
                var n6, e4, i4 = this.w3.op(), r3 = this.aT;
                for (n6 = 0; n6 < r3.length; n6++) (e4 = this[r3[n6]]) && e4.forEach((function(n7) {
                  n7 && n7.w3 && n7.w3 !== t6 && (n7.k1 || n7.vyt && n7.vyt());
                }));
              }, n5.prototype.o_t = function(t6) {
                var n6, e4, i4, r3, o3, a2, u2 = this.w3.op(), s2 = this.aT;
                for (n6 = 0; n6 < s2.length; n6++) (e4 = this[s2[n6]]) && (k(t6) || s2[n6] === t6) && e4.forEach((function(t7) {
                  t7 && !t7.k1 && t7.vyt();
                }));
                if ((i4 = this.node && this.node.$bt) && i4.isDynamicArray) for (r3 = 0; r3 < i4.rowCount; r3++) for (o3 = 0; o3 < i4.colCount; o3++) 0 === r3 && 0 === o3 || (a2 = this.w3.getNode(r3 + i4.row, o3 + i4.col)) && a2.calc && a2.calc.o_t();
              }, n5.prototype.s_t = function() {
                var t6, n6, e4, i4, r3, o3, a2, u2, s2 = this, c2 = s2.w3, f2 = c2.getCalcService();
                f2 && f2.Z_t && (!(n6 = (t6 = s2.Z_t) && s2.p8t) && k(t6) && (e4 = c2.getSource()) && (i4 = e4.getName(), (o3 = (r3 = f2.MX.asyncManager).b8t[i4]) && (a2 = o3[s2.row]) && (u2 = a2[s2.column]) && ((n6 = u2[0]) ? (s2.Z_t = true, s2.p8t = n6, n6.y8t = s2) : s2.Z_t = false)), n6 && !s2.$Te && 0 === n6.evaluateMode && (n6.yL = false));
              }, n5.prototype.isDefault = function(t6) {
                if (k(t6)) return this.Hte;
                this.Hte = t6;
              }, n5.IDCount = 0, n5;
            })(F), n4.CellCalc = V, z = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.row = e4, i4;
              }
              return Q(n5, t5), n5.prototype.getKey = function() {
                var t6 = this, n6 = t6.w3, e4 = null === n6 ? "" : n6.rT.id + ",";
                return e4 + t6.row + ",-1";
              }, n5.prototype.yB = function() {
                this.w3.h8t(this.row, 1);
              }, n5.prototype.CMt = function() {
                this.w3.hwt(this.row, 1);
              }, n5.prototype.r8t = function(t6, n6, e4) {
                e4 ? et(this, D, { row: t6, columnOffset: n6, columnCount: 1 }) : it(this, D, { row: t6, columnOffset: n6, columnCount: 1 });
              }, n5.prototype.r_t = function() {
                this.w3.op().onAddAdjust(this, 1);
              }, n5.prototype.vyt = function() {
                this.w3.op().I3(this, 1);
              }, n5;
            })(F), n4.RowCalc = z, Y = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.column = e4, i4;
              }
              return Q(n5, t5), n5.prototype.getKey = function() {
                var t6 = this, n6 = t6.w3, e4 = null === n6 ? "" : n6.rT.id + ",";
                return e4 + "-1," + t6.column;
              }, n5.prototype.yB = function() {
                this.w3.d8t(this.column, 1);
              }, n5.prototype.CMt = function() {
                this.w3.dwt(this.column, 1);
              }, n5.prototype.o8t = function(t6, n6, e4) {
                this.Iwt(2, t6, e4);
              }, n5.prototype.r_t = function() {
                this.w3.op().onAddAdjust(this, 2);
              }, n5.prototype.vyt = function() {
                this.w3.op().I3(this, 2);
              }, n5;
            })(F), n4.ColumnCalc = Y, Z = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.name = e4, i4.mBe = (0, c.createSet)(), i4;
              }
              return Q(n5, t5), n5.prototype.gBe = function(t6, n6) {
                n6 ? this.mBe.add(t6) : this.mBe.delete(t6);
              }, n5.prototype.getKey = function() {
                var t6 = this, n6 = t6.w3, e4 = null === n6 ? "" : n6.rT.id + ",";
                return e4 + t6.name;
              }, n5.prototype.updateListening = function(t6, n6) {
                var e4, i4, r3, o3, a2 = this, u2 = (0, c.createSet)(), s2 = a2.aT;
                for (r3 = 0; r3 < s2.length; r3++) (o3 = a2[s2[r3]]) && o3.forEach((function(t7) {
                  t7 && u2.add(t7);
                }));
                null === (e4 = a2.i_t) || void 0 === e4 || e4.forEach((function(t7) {
                  t7 && u2.add(t7);
                })), u2.forEach((function(t7) {
                  var n7, e5;
                  i4 = t7.node, t7.CMt(), i4 && (i4.WK && delete i4.WK.eyt, t7.w3.SB(null !== (n7 = t7.row) && void 0 !== n7 ? n7 : -1, null !== (e5 = t7.column) && void 0 !== e5 ? e5 : -1, i4.WK, i4.$bt, true));
                }));
              }, n5.prototype.updateListeningOnRemoved = function() {
                var t6, n6, e4, i4, r3, o3, a2 = this, u2 = a2.aT, s2 = a2.w3, c2 = s2.op();
                for (r3 = 0; r3 < u2.length; r3++) (o3 = a2[u2[r3]]) && o3.forEach((function(r4) {
                  var o4, u3;
                  r4 && (t6 = r4.w3, n6 = r4.row, e4 = r4.col, n6 = n6 === m ? -1 : n6, e4 = e4 === m ? -1 : e4, i4 = t6.pB(n6, e4), o4 = t6.sT(n6, e4), i4 && (u3 = c2.Hyt().adjustFormulaOnRemoveName(s2, i4, a2.name)) !== i4 && t6.SB(n6, e4, u3, o4, true));
                }));
              }, n5.prototype.vyt = function() {
                var t6, n6, e4 = this.aT;
                for (t6 = 0; t6 < e4.length; t6++) (n6 = this[e4[t6]]) && n6.forEach((function(t7) {
                  t7 && t7.vyt();
                }));
              }, n5.prototype.oBe = function(t6, n6) {
                var e4, i4, r3, o3 = this.aT;
                for (e4 = 0; e4 < o3.length; e4++) if ((i4 = this[o3[e4]]).size > 0) return true;
                if (!t6) {
                  if (!n6) return this.mBe.size > 0;
                  if (r3 = n6.vwt(this.name)) return r3.oBe(true);
                }
                return false;
              }, n5;
            })(F), n4.NameCalc = Z, W = (function(t5) {
              function n5(n6) {
                return t5.call(this, n6) || this;
              }
              return Q(n5, t5), n5.prototype.processListener = function(n6, e4, r3, o3, a2, u2, c2, f2, l2) {
                var h2, d2, v2, p2, g2 = this, m2 = g2[n6], b2 = g2[n6 + "c"], y2 = e4 + "," + r3 + "," + o3 + "," + a2;
                if (3 !== n6 || u2 instanceof B) {
                  if (u2.e_t) return c2 || (delete u2.e_t, g2.processListener(n6, e4, r3, o3, a2, u2, c2, f2, l2), u2.e_t = true), void t5.prototype.Iwt.call(this, n6, u2, c2);
                  if (u2.ebt && u2.ebt.length >= 1 && ((v2 = (d2 = u2.ebt)[d2.length - 1]).push(this), y2 = "?" + y2), f2 && (y2 = "!" + y2), !m2) {
                    if (!c2) return;
                    g2.aT.push(n6), g2[n6] = m2 = (0, s.createMap)(), g2[n6 + "c"] = b2 = new i3.Common.rbush(16);
                  }
                  if (!(h2 = m2.get(y2))) {
                    if (!c2) return;
                    h2 = {}, m2.set(y2, h2), h2.content = (0, s.createMap)(), h2.minY = e4, h2.minX = r3, h2.maxY = -1 === e4 ? -1 : o3 + e4 - 1, h2.maxX = -1 === r3 ? -1 : a2 + r3 - 1, f2 && l2 && (h2.content.delay = rt(g2.w3, e4, r3, o3, a2)), b2.insert(h2);
                  }
                  if (p2 = u2.getKey(), c2) {
                    if (h2.content.has(p2)) return;
                    h2.content.set(p2, u2), f2 && l2 && h2.content.delay && 0 === n6 && u2.delay++;
                  } else h2.content.has(p2) && (h2.content.delete(p2), h2.content.size < 1 && (delete h2.content, m2.delete(y2), b2.remove(h2)));
                }
              }, n5.prototype.CFe = function(t6, n6, e4) {
                var i4, r3 = this.aT, o3 = function(i5) {
                  var o4, u2, c2, f2, l2, h2, d2, v2 = a2[r3[i5]];
                  if (v2) for (o4 = a2[r3[i5] + "c"], u2 = a2[r3[i5]], c2 = a2[r3[i5]] = (0, s.createMap)(), f2 = e4 ? "minY" : "minX", l2 = e4 ? "maxY" : "maxX", u2.forEach((function(e5, i6) {
                    e5[f2] >= t6 && (e5[f2] += n6), e5[l2] >= t6 && (e5[l2] += n6), c2.set(ot(e5, i6), e5);
                  })), h2 = [o4.data]; h2.length > 0; ) (d2 = h2.pop())[f2] >= t6 && (d2[f2] += n6), d2[l2] >= t6 && (d2[l2] += n6), d2.leaf || (h2 = h2.concat(d2.children));
                }, a2 = this;
                for (i4 = 0; i4 < r3.length; i4++) o3(i4);
              }, n5.prototype.AFe = function(t6, n6, e4) {
                var i4, r3 = this.aT, o3 = function(i5) {
                  var o4, u2, c2, f2, l2, h2 = a2[r3[i5]];
                  h2 && ((o4 = a2[r3[i5] + "c"]).clear(), u2 = a2[r3[i5]], c2 = a2[r3[i5]] = (0, s.createMap)(), f2 = e4 ? "minY" : "minX", l2 = e4 ? "maxY" : "maxX", u2.forEach((function(e5, i6) {
                    var r4;
                    e5[f2] >= t6 + n6 ? e5[f2] -= n6 : e5[f2] >= t6 && (e5[f2] = t6, r4 = 1), e5[l2] >= t6 + n6 ? e5[l2] -= n6 : e5[l2] >= t6 && (e5[l2] = t6 - 1, r4 && (r4 = 2)), 2 !== r4 && (o4.insert(e5), c2.set(ot(e5, i6), e5));
                  })));
                }, a2 = this;
                for (i4 = 0; i4 < r3.length; i4++) o3(i4);
              }, n5.prototype.JDt = function(t6, n6, e4, i4, r3, o3, a2, u2) {
                this.processListener(0, t6, n6, e4, i4, r3, o3, a2, u2);
              }, n5.prototype.i8t = function(t6, n6, e4, i4, r3, o3) {
                this.processListener(3, t6, n6, e4, i4, r3, o3);
              }, n5.prototype.mB = function(t6, n6, e4, i4, r3) {
                this.visit(0, t6, n6, e4, i4, r3);
              }, n5.prototype.visit = function(t6, n6, e4, i4, r3, o3) {
                var a2, u2 = this, s2 = u2.aT, c2 = u2.c_t();
                if (j.minX = e4, j.minY = n6, j.maxX = e4 + r3 - 1, j.maxY = n6 + i4 - 1, 0 === t6) {
                  if (k(o3)) for (a2 = 0; a2 < s2.length; a2++) f2(s2[a2]);
                  else f2(o3);
                  u2.i_t && u2.i_t.forEach((function(t7) {
                    t7 && t7.r_t();
                  }));
                } else if (k(o3)) for (a2 = 0; a2 < s2.length; a2++) l2(s2[a2]);
                else l2(o3);
                function f2(t7) {
                  var n7, e5, i5, r4, o4 = u2[t7];
                  if (o4) for (e5 = (n7 = u2[t7 + "c"]).search(j), i5 = 0; i5 < e5.length; i5++) (r4 = e5[i5].content).forEach((function(t8) {
                    t8.r_t();
                  }));
                }
                function l2(t7) {
                  var n7, e5, i5, r4, o4, a3 = u2[t7];
                  if (a3) for (e5 = (n7 = u2[t7 + "c"]).search(j), i5 = 0; i5 < e5.length; i5++) (r4 = e5[i5]).w8t && r4.w8t.WDt || (r4.w8t = c2.ZDt, (o4 = r4.content).delay = 0, o4.forEach((function(t8) {
                    t8.vyt();
                  })));
                }
              }, n5.prototype.o_t = function(t6, n6, e4, i4, r3) {
                this.visit(1, t6, n6, e4, i4, r3);
              }, n5.prototype.J_t = function(t6) {
                var n6, e4, i4 = this.aT;
                for (n6 = 0; n6 < i4.length; n6++) (e4 = this[i4[n6]]) && e4.forEach((function(n7) {
                  n7 && n7.content.forEach((function(n8) {
                    n8 && n8.w3 && n8.w3 !== t6 && n8.vyt && n8.vyt();
                  }));
                }));
              }, n5.prototype.VBe = function(t6, n6) {
                var e4, i4, r3, o3, a2;
                if (j.minX = n6, j.minY = t6, j.maxX = n6, j.maxY = t6, e4 = false, i4 = this["0c"]) {
                  for (r3 = i4.search(j), o3 = 0; o3 < r3.length; o3++) if ((a2 = r3[o3].content) && a2.forEach((function(t7) {
                    t7 && t7.k1 && (e4 = true);
                  })), e4) return true;
                }
                return e4;
              }, n5.prototype.a_t = function(t6, n6, e4) {
                var i4, r3, o3, a2, u2, s2, c2 = this.aT, f2 = e4 ? 1 : -1;
                for (j.minX = n6, j.minY = t6, j.maxX = n6, j.maxY = t6, i4 = 0; i4 < c2.length; i4++) if (r3 = this[c2[i4]]) for (a2 = (o3 = this[c2[i4] + "c"]).search(j), u2 = 0; u2 < a2.length; u2++) (s2 = a2[u2].content).delay = (s2.delay || 0) + f2, e4 && 1 === s2.delay ? s2 && s2.forEach((function(t7) {
                  t7.delay++, t7.s_t && t7.s_t();
                })) : e4 || 0 !== s2.delay || s2 && s2.forEach((function(t7) {
                  t7.delay--;
                }));
              }, n5.prototype.yB = function() {
              }, n5.prototype.CMt = function() {
              }, n5;
            })(F), n4.RangeCalc = W, n4.Pyt = st, n4.h0t = ct, n4.eV = lt, n4.Rwt = ht;
          }, "./src/calcEngine.res.en.ts": function(t4, n4) {
            var e3, i3, r2, o2, a, u, s, c, f, l, h;
            function d(t5, n5) {
              return { description: t5, parameters: n5 };
            }
            function v(t5, n5, e4, i4) {
              return { name: t5, repeatable: n5, optional: e4, enum: i4 };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.resource = void 0, e3 = "start_num", i3 = "significance", r2 = "match_mode", o2 = "if_not_found", a = "pad_with", u = [{ value: "0", description: "First match (default)" }, { value: "1", description: "All matches" }, { value: "2", description: "Capture groups of first match" }], s = [{ value: "0", description: "None" }, { value: "1", description: "Leading" }, { value: "2", description: "Trailing" }, { value: "3", description: "Both (Default)" }], c = [{ value: "0", description: "Case sensitive" }, { value: "1", description: "Case insensitive" }], f = [{ value: "0", description: "Exact match (default)" }, { value: "-1", description: "Exact match or next smallest item" }, { value: "1", description: "Exact match or next largest item" }, { value: "2", description: "A wildcard match where *, ?, and ~ have special meaning." }], l = [{ value: "1", description: "Search first-to-last (default)" }, { value: "-1", description: "Search last-to-first (reverse search)" }, { value: "2", description: "Perform a binary search that relies on lookup_array being sorted in ascending order. If not sorted, invalid results will be returned. " }, { value: "-2", description: "Perform a binary search that relies on lookup_array being sorted in descending order. If not sorted, invalid results will be returned." }], h = [{ value: "TRUE", description: "Approximate match" }, { value: "FALSE", description: "Exact match" }], n4.resource = { Exp_InvalidCast: "Invalid Cast Exception", Exp_FormulaInvalidChar: "The formula contains an invalid character: '{0}' at index on {1}", Exp_FormulaInvalid: "Invalid Formula", Exp_InvalidFunctionName: "Invalid function name", Exp_InvalidOverrideFunction: "Cannot override built-in function", Exp_InvalidArray: "Invalid array", Exp_OverrideNotAllowed: "Attempt to override function while override is not allowed", Exp_NoSyntax: "No syntax '{0}' to match the syntax '{1}'.", Exp_IsValid: "'{0}' is invalid.", Exp_InvalidParameters: "Invalid function parameter at {0}.", Exp_InvalidArrayColumns: "The length of array columns are not equal at {0}.", Exp_ExprIsNull: "The argument 'expr' is null", Exp_InvalidOperation: "Invalid Operation Exception", Exp_ArgumentNull: "Argument Null Exception", Exp_CriteriaIsNull: "Criteria is null", Exp_Format: "Format", Exp_ArrayFormulaPart: "Cannot change part of an array.", Exp_NotSupported: "Not Supported Exception", Exp_DuplicatedChar: "Duplicated Character", Exp_ArgumentOutOfRangeException: "Argument Out Of Range Exception", Exp_ArgumentException: "Argument Exception", Aggregate_GrandTotal: "Grand Total", Aggregate_Total: "Total", Aggregate_RowField: "Row Field", Aggregate_ColumnField: "Column Field", Aggregate_Value: "Value", wmt: { ABS: d("This function calculates the absolute value of the specified value.", [v("number")]), ACCRINT: d("This function calculates the accrued interest for a security that pays periodic interest.", [v("issue"), v("first_interest"), v("settlement"), v("rate"), v("par"), v("frequency"), v("basis", false, true)]), ACCRINTM: d("This function calculates the accrued interest at maturity for a security that pays periodic interest.", [v("issue"), v("settlement"), v("rate"), v("par"), v("basis", false, true)]), ACOS: d("This function calculates the arccosine, that is, the angle whose cosine is the specified value.", [v("number")]), ACOSH: d("This function calculates the inverse hyperbolic cosine of the specified value.", [v("number")]), ADDRESS: d("This function uses the row and column numbers to create a cell address in text.", [v("row_num"), v("column_num"), v("abs_num", false, true), v("a1style", false, true), v("sheet_text", false, true)]), AGGREGATE: d("This function aggregate a list of numbers using a specified built-in function.", [v("function_num"), v("options"), v("ref1"), v("ref2", true)]), AMORDEGRC: d("This function returns the depreciation for an accounting period, taking into consideration prorated depreciation, and applies a depreciation coefficient in the calculation based on the life of the assets.", [v("cost"), v("date_purchased"), v("first_period"), v("salvage"), v("period"), v("rate"), v("basis")]), AMORLINC: d("This function calculates the depreciation for an accounting period, taking into account prorated depreciation.", [v("cost"), v("date_purchased"), v("first_period"), v("salvage"), v("period"), v("rate"), v("basis")]), AND: d("Check whether all arguments are True, and returns True if all arguments are True.", [v("logical1"), v("logical2")]), ASIN: d("This function calculates the arcsine, that is, the angle whose sine is the specified value.", [v("number")]), ASINH: d("This function calculates the inverse hyperbolic sine of a number.", [v("number")]), ATAN: d("This function calculates the arctangent, that is, the angle whose tangent is the specified value.", [v("number")]), ATAN2: d("This function calculates the arctangent of the specified x- and y-coordinates.", [v("x_num"), v("y_num")]), ATANH: d("This function calculates the inverse hyperbolic tangent of a number.", [v("number")]), AVEDEV: d("This function calculates the average of the absolute deviations of the specified values from their mean.", [v("number1"), v("number2", true)]), AVERAGE: d("This function calculates the average of the specified numeric values.", [v("number1"), v("number2", true)]), AVERAGEA: d("This function calculates the average of the specified values, including text or logical values as well as numeric values.", [v("value1"), v("value2", true)]), AVERAGEIF: d("This function calculates the average of the specified numeric values provided that they meet the specified criteria.", [v("range"), v("criteria"), v("average_range", false, true)]), AVERAGEIFS: d("This function calculates the average of all cells that meet multiple specified criteria.", [v("average_range"), v("criteria_range1"), v("criteria1"), v("criteria_range2", true), v("criteria2", true)]), BESSELI: d("This function calculates the modified Bessel function of the first kind evaluated for purely imaginary arguments.", [v("value"), v("order")]), BESSELJ: d("This function calculates the Bessel function of the first kind.", [v("value"), v("order")]), BESSELK: d("This function calculates the modified Bessel function of the second kind evaluated for purely imaginary arguments.", [v("value"), v("order")]), BESSELY: d("This function calculates the Bessel function of the second kind.", [v("value"), v("order")]), BETADIST: d("This function calculates the cumulative beta distribution function.", [v("x"), v("alpha"), v("beta"), v("lower", false, true), v("upper", false, true)]), BETAINV: d("This function calculates the inverse of the cumulative beta distribution function.", [v("probability"), v("alpha"), v("beta"), v("lower", false, true), v("upper", false, true)]), BIN2DEC: d("This function converts a binary number to a decimal number", [v("number")]), BIN2HEX: d("This function converts a binary number to a hexadecimal number.", [v("number"), v("places")]), BIN2OCT: d("This function converts a binary number to an octal number.", [v("number"), v("places")]), BINOMDIST: d("This function calculates the individual term binomial distribution probability.", [v("number_s"), v("trials"), v("probability_s"), v("cumulative")]), CEILING: d("This function rounds a number up to the nearest multiple of a specified value.", [v("number"), v("significance")]), CHAR: d("This function returns the character specified by a number.", [v("number")]), CHIDIST: d("This function calculates the one-tailed probability of the chi-squared distribution.", [v("value"), v("deg_freedom")]), CHIINV: d("This function calculates the inverse of the one-tailed probability of the chi-squared distribution", [v("probability"), v("deg_freedom")]), CHITEST: d("This function calculates the test for independence from the chi-squared distribution.", [v("actual_range"), v("expected_range")]), CHOOSE: d("This function returns a value from a list of values.", [v("index_num"), v("value1"), v("value2", true)]), CLEAN: d("This function removes all non-printable characters from text.", [v("text")]), CODE: d("This function returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).", [v("text")]), COLUMN: d("This function returns the column number of a reference.", [v("reference")]), COLUMNS: d("This function returns the number of columns in an array.", [v("array")]), COMBIN: d("This function calculates the number of possible combinations for a specified number of items.", [v("number"), v("number_chosen")]), COMPLEX: d("This function converts real and imaginary coefficients into a complex number.", [v("real_num"), v("image_num"), v("suffix")]), CONCATENATE: d("This function combines multiple text strings or numbers into one text string.", [v("text1"), v("text2", true)]), CONFIDENCE: d("This function returns confidence interval for a population mean.", [v("alpha"), v("standard_dev"), v("size")]), CONVERT: d("This function converts a number from one measurement system to its equivalent in another measurement system.", [v("number"), v("from_unit"), v("to_unit")]), CORREL: d("This function returns the correlation coefficient of the two sets of data.", [v("array1"), v("array2")]), COS: d("This function returns the cosine of the specified angle.", [v("number")]), COSH: d("This function returns the hyperbolic cosine of the specified value.", [v("number")]), COUNT: d("This function returns the number of cells that contain numbers.", [v("value1"), v("value2", true)]), COUNTA: d("This function returns the number of cells that contain numbers, text, or logical values.", [v("value1"), v("value2", true)]), COUNTBLANK: d("This function returns the number of empty (or blank) cells in a range of cells on a sheet.", [v("cellrange")]), COUNTIF: d("This function returns the number of cells that meet a certain condition", [v("cellrange"), v("criteria")]), COUNTIFS: d("This function returns the number of cells that meet multiple conditions.", [v("criteria_range1"), v("criteria1"), v("criteria_range2", true), v("criteria2", true)]), COUPDAYBS: d("This function calculates the number of days from the beginning of the coupon period to the settlement date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COUPDAYS: d("This function returns the number of days in the coupon period that contains the settlement date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COUPDAYSNC: d("This function calculates the number of days from the settlement date to the next coupon date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COUPNCD: d("This function returns a date number of the next coupon date after the settlement date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COUPNUM: d("This function returns the number of coupons due between the settlement date and maturity date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COUPPCD: d("This function returns a date number of the previous coupon date before the settlement date.", [v("settlement"), v("maturity"), v("frequency"), v("basis")]), COVAR: d("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.", [v("array1"), v("array2")]), CRITBINOM: d("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.", [v("trials"), v("probability_s"), v("alpha")]), CUMIPMT: d("This function returns the cumulative interest paid on a loan between the starting and ending periods.", [v("rate"), v("nper"), v("pval"), v("start_period"), v("end_period"), v("paytype")]), CUMPRINC: d("This function returns the cumulative principal paid on a loan between the start and end periods.", [v("rate"), v("nper"), v("pval"), v("start_period"), v("end_period"), v("paytype")]), DATE: d("This function returns the DateTime object for a particular date, specified by the year, month, and day.", [v("year"), v("month"), v("day")]), DATEDIF: d("This function returns the number of days, months, or years between two dates.", [v("start_date"), v("end_date"), v("unit")]), DATEVALUE: d("This function returns a DateTime object of the specified date.", [v("date_text")]), DAVERAGE: d("This function calculates the average of values in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DAY: d("This function returns the day number of the month (integer 1 to 31) that corresponds to the specified date.", [v("date")]), DAYS360: d("This function returns the number of days between two dates based on a 360-day year.", [v("start_date"), v("end_date"), v("method", false, true)]), DB: d("This function calculates the depreciation of an asset for a specified period using the fixed‑declining balance method", [v("cost"), v("salvage"), v("life"), v("period"), v("month")]), DCOUNT: d("This function counts the cells that contain numbers in a column of a list or database that match the specified conditions", [v("database"), v("field"), v("criteria")]), DCOUNTA: d("This function counts the non-blank cells in a column of a list or database that match the specified conditions", [v("database"), v("field"), v("criteria")]), DDB: d("This function calculates the depreciation of an asset for a specified period using the double-declining balance method or another method you specify.", [v("cost"), v("salvage"), v("life"), v("period"), v("factor")]), DEC2BIN: d("This function converts a decimal number to a binary number.", [v("number"), v("places")]), DEC2HEX: d("This function converts a decimal number to a hexadecimal number", [v("number"), v("places")]), DEC2OCT: d("This function converts a decimal number to an octal number", [v("number"), v("places")]), DEGREES: d("This function converts the specified value from radians to degrees", [v("angle")]), DELTA: d("This function identifies whether two values are equal. Returns 1 if they are equal; returns 0 otherwise.", [v("number1"), v("number2")]), DEVSQ: d("This function calculates the sum of the squares of deviations of data points (or of an array of data points) from their sample mean.", [v("number1"), v("number2", true)]), DGET: d("This function extracts a single value from a column of a list or database that matches the specified conditions.", [v("database"), v("field"), v("criteria")]), DISC: d("This function calculates the discount rate for a security.", [v("settlement"), v("maturity"), v("price"), v("redemption"), v("basis")]), DMAX: d("This function returns the largest number in a column of a list or database that matches the specified conditions.", [v("database"), v("field"), v("criteria")]), DMIN: d("This function returns the smallest number in a column of a list or database that matches the specified conditions.", [v("database"), v("field"), v("criteria")]), DOLLAR: d("This function converts a number to text using currency format, with the decimals rounded to the specified place.", [v("number"), v("decimals", false, true)]), DOLLARDE: d("This function converts a fraction dollar price to a decimal dollar price.", [v("fractional_dollar"), v("fraction")]), DOLLARFR: d("This function converts a decimal number dollar price to a fraction dollar price.", [v("decimal_dollar"), v("fraction")]), DPRODUCT: d("This function multiplies the values in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DSTDEV: d("This function estimates the standard deviation of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DSTDEVP: d("This function calculates the standard deviation of a population based on the entire population using the numbers in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DSUM: d("This function adds the numbers in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DURATION: d("This function returns the Macaulay duration for an assumed par value of $100.", [v("settlement"), v("maturity"), v("coupon"), v("yield"), v("frequency"), v("basis")]), DVAR: d("This function estimates the variance of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), DVARP: d("This function calculates the variance of a population based on the entire population by using the numbers in a column of a list or database that match the specified conditions.", [v("database"), v("field"), v("criteria")]), EDATE: d("This function calculates the date that is the indicated number of months before or after a specified date.", [v("start_date"), v("months")]), EFFECT: d("This function calculates the effective annual interest rate for a given nominal annual interest rate and the number of compounding periods per year.", [v("nominal_rate"), v("npery")]), EOMONTH: d("This function calculates the date for the last day of the month (end of month) that is the indicated number of months before or after the starting date.", [v("start_date"), v("months")]), ERF: d("This function calculates the error function integrated between a lower and an upper limit.", [v("lower_limit"), v("upper_limit")]), ERFC: d("This function calculates the complementary error function integrated between a lower limit and infinity.", [v("lowerlimit")]), "ERROR.TYPE": d("This function returns a number corresponding to one of the error values.", [v("error_val")]), EURO: d("This function returns the equivalent of one Euro based on the ISO currency code.", [v("code")]), EUROCONVERT: d("This function converts currency from a Euro member currency (including Euros) to another Euro member currency (including Euros).", [v("number"), v("source"), v("target"), v("full_precision"), v("triangulation_precision")]), EVEN: d("This function rounds the specified value up to the nearest even integer.", [v("number")]), EXACT: d("This function returns true if two strings are the same; otherwise, false.", [v("text1"), v("text2")]), EXP: d("This function returns e raised to the power of the specified value.", [v("number")]), EXPONDIST: d("This function returns the exponential distribution or the probability density.", [v("value"), v("lambda"), v("cumulative")]), FACT: d("This function calculates the factorial of the specified number.", [v("number")]), FACTDOUBLE: d("This function calculates the double factorial of the specified number.", [v("number")]), FALSE: d("This function returns the value for logical FALSE.", []), FDIST: d("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.", [v("value"), v("deg_freedom1"), v("deg_freedom2")]), FIND: d("This function finds one text value within another and returns the text value’s position in the text you searched.", [v("find_text"), v("within_text"), v(e3, false, true)]), FINV: d("This function returns the inverse of the F probability distribution.", [v("probability"), v("deg_freedom1"), v("deg_freedom2")]), FISHER: d("This function returns the Fisher transformation for a specified value.", [v("value")]), FISHERINV: d("This function returns the inverse of the Fisher transformation for a specified value.", [v("value")]), FIXED: d("This function rounds a number to the specified number of decimal places, formats the number in decimal format using a period and commas (if so specified), and returns the result as text.", [v("number"), v("decimals", false, true), v("no_commas", false, true)]), FLOOR: d("This function rounds a number down to the nearest multiple of a specified value.", [v("number"), v("significance")]), FORECAST: d("This function calculates a future value using existing values.", [v("value"), v("Yarray"), v("Xarray")]), FREQUENCY: d("This function calculates how often values occur within a range of values. This function returns a vertical array of numbers.", [v("data_array"), v("bins_array")]), FTEST: d("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.", [v("array1"), v("array2")]), FV: d("This function returns the future value of an investment based on a present value, periodic payments, and a specified interest rate.", [v("rate"), v("numper"), v("paymt"), v("pval"), v("type")]), FVSCHEDULE: d("This function returns the future value of an initial principal after applying a series of compound interest rates. Calculate future value of an investment with a variable or adjustable rate.", [v("principal"), v("schedule")]), GAMMADIST: d("This function returns the gamma distribution.", [v("x"), v("alpha"), v("beta"), v("cumulative")]), GAMMAINV: d("This function returns the inverse of the gamma cumulative distribution.", [v("probability"), v("alpha"), v("beta")]), GAMMALN: d("This function returns the natural logarithm of the Gamma function, G(x).", [v("value")]), GCD: d("This function returns the greatest common divisor of two numbers.", [v("number1"), v("number2")]), GEOMEAN: d("This function returns the geometric mean of a set of positive data.", [v("number1"), v("number2", true)]), GESTEP: d("This function, greater than or equal to step, returns an indication of whether a number is equal to a threshold.", [v("number"), v("step")]), GROWTH: d("This function calculates predicted exponential growth. This function returns the y values for a series of new x values that are specified by using existing x and y values.", [v("y"), v("x"), v("newx"), v("constant")]), HARMEAN: d("This function returns the harmonic mean of a data set.", [v("number1"), v("number2", true)]), HEX2BIN: d("This function converts a hexadecimal number to a binary number.", [v("number"), v("places")]), HEX2DEC: d("This function converts a hexadecimal number to a decimal number.", [v("number")]), HEX2OCT: d("This function converts a hexadecimal number to an octal number.", [v("number"), v("places")]), HLOOKUP: d("This function searches for a value in the top row and then returns a value in the same column from a specified row.", [v("lookup_value"), v("table_array"), v("row_index_num"), v("range_lookup", false, true, h)]), HOUR: d("This function returns the hour that corresponds to a specified time.", [v("time")]), HYPGEOMDIST: d("This function returns the hypergeometric distribution.", [v("sample_s"), v("number_sample"), v("population_s"), v("number_pop")]), IF: d("This function performs a comparison and returns one of two provided values based on that comparison.", [v("logical_test"), v("value_if_true"), v("value_if_false")]), IFERROR: d("This function evaluates a formula and returns a value you provide if there is an error or the formula result.", [v("value"), v("value_if_error")]), IMABS: d("This function returns the absolute value or modulus of a complex number.", [v("complexnum")]), IMAGINARY: d("This function returns the imaginary coefficient of a complex number.", [v("complexnum")]), IMARGUMENT: d("This function returns the argument theta, which is an angle expressed in radians.", [v("complexnum")]), IMCONJUGATE: d("This function returns the complex conjugate of a complex number.", [v("complexnum")]), IMCOS: d("This function returns the cosine of a complex number.", [v("complexnum")]), IMDIV: d("This function returns the quotient of two complex numbers.", [v("complexnum"), v("complexdenom")]), IMEXP: d("This function returns the exponential of a complex number.", [v("complexnum")]), IMLN: d("This function returns the natural logarithm of a complex number.", [v("complexnum")]), IMLOG2: d("This function returns the base-2 logarithm of a complex number.", [v("complexnum")]), IMLOG10: d("This function returns the common logarithm of a complex number.", [v("complexnum")]), IMPOWER: d("This function returns a complex number raised to a power.", [v("complexnum"), v("powernum")]), IMPRODUCT: d("This function returns the product of up to 29 complex numbers in the x+yi or x+yj text format.", [v("complexnum1"), v("complexnum2", true)]), IMREAL: d("This function returns the real coefficient of a complex number in the x+yi or x+yj text format.", [v("complexnum")]), IMSIN: d("This function returns the sine of a complex number in the x+yi or x+yj text format.", [v("complexnum")]), IMSQRT: d("This function returns the square root of a complex number in the x+yi or x+yj text format.", [v("complexnum")]), IMSUB: d("This function returns the difference of two complex numbers in the x+yi or x+yj text format.", [v("complexnum1"), v("complexnum2")]), IMSUM: d("This function returns the sum of two or more complex numbers in the x+yi or x+yj text format.", [v("complexnum1"), v("complexnum2", true)]), INDEX: d("This function returns a value or the reference to a value from within an array or range.", [v("array"), v("row_num"), v("column_num"), v("area_num")]), INDIRECT: d("This function returns the reference specified by a text string. References are immediately evaluated to display their contents.", [v("ref_text"), v("a1_style", false, true)]), INT: d("This function rounds a specified number down to the nearest integer.", [v("number")]), INTERCEPT: d("This function returns the coordinates of a point at which a line intersects the y-axis, by using existing x values and y values.", [v("dependent"), v("independent")]), INTRATE: d("This function calculates the interest rate for a fully invested security.", [v("settlement"), v("maturity"), v("investment"), v("redemption"), v("basis")]), IPMT: d("This function calculates the payment of interest on a loan.", [v("rate"), v("per"), v("nper"), v("pval"), v("fval"), v("type")]), IRR: d("This function returns the internal rate of return for a series of cash flows represented by the numbers in an array.", [v("arrayvals"), v("estimate")]), ISBLANK: d("This function tests whether a value, an expression, or contents of a referenced cell is empty.", [v("cellreference")]), ISERR: d("This function, Is Error Other Than Not Available, tests whether a value, an expression, or contents of a referenced cell has an error other than not available (#N/A).", [v("cellreference")]), ISERROR: d("This function, Is Error of Any Kind, tests whether a value, an expression, or contents of a referenced cell has an error of any kind.", [v("cellreference")]), ISEVEN: d("This function, Is Number Even, tests whether a value, an expression, or contents of a referenced cell is even.", [v("cellreference")]), ISLOGICAL: d("This function tests whether a value, an expression, or contents of a referenced cell is a logical (Boolean) value.", [v("cellreference")]), ISNA: d("This function, Is Not Available, tests whether a value, an expression, or contents of a referenced cell has the not available (#N/A) error value.", [v("cellreference")]), ISNONTEXT: d("This function tests whether a value, an expression, or contents of a referenced cell has any data type other than text.", [v("cellreference")]), ISNUMBER: d("This function tests whether a value, an expression, or contents of a referenced cell has numeric data.", [v("cellreference")]), ISODD: d("This function, Is Number Odd, tests whether a value, an expression, or contents of a referenced cell has numeric data.", [v("cellreference")]), ISPMT: d("This function calculates the interest paid during a specific period of an investment.", [v("rate"), v("per"), v("nper"), v("pv")]), ISREF: d("This function, Is Reference, tests whether a value, an expression, or contents of a referenced cell is a reference to another cell.", [v("cellreference")]), ISTEXT: d("This function tests whether a value, an expression, or contents of a referenced cell has text data.", [v("cellreference")]), KURT: d("This function returns the kurtosis of a data set.", [v("number1"), v("number2"), v("number3"), v("number4", true)]), LARGE: d("This function returns the nth largest value in a data set, where n is specified.", [v("array"), v("n")]), LCM: d("This function returns the least common multiple of two numbers.", [v("number1"), v("number2")]), LEFT: d("This function returns the specified leftmost characters from a text value, and based on the number of characters you specify.", [v("text"), v("num_chars")]), LEN: d("This function returns the length of the number of characters in a text string.", [v("text")]), LINEST: d("This function calculates the statistics for a line.", [v("y"), v("x"), v("constant"), v("stats")]), LN: d("This function returns the natural logarithm of the specified number.", [v("value")]), LOG: d("This function returns the logarithm base Y of a number X.", [v("number"), v("base")]), LOG10: d("This function returns the logarithm base 10 of the number given.", [v("number")]), LOGEST: d("This function calculates an exponential curve that fits the data and returns an array of values that describes the curve.", [v("y"), v("x"), v("constant"), v("stats")]), LOGINV: d("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.", [v("probability"), v("mean"), v("standard_dev")]), LOGNORMDIST: d("This function returns the cumulative natural log normal distribution of x, where LN(x) is normally distributed with the specified mean and standard deviation. Analyze data that has been logarithmically transformed with this function.", [v("x"), v("mean"), v("standard_dev")]), LOOKUP: d("This function searches for a value and returns a value from the same location in a second area.", [v("lookup_value"), v("lookup_vector"), v("result_vector")]), LOWER: d("This function converts text to lower case letters.", [v("text")]), MATCH: d("This function returns the relative position of a specified item in a range.", [v("lookup_value"), v("lookup_array"), v("match_type")]), XMATCH: d("This function returns the relative position of an item in an array. By default, an exact match is required.", [v("lookup_value"), v("lookup_array"), v(r2, false, true, f), v("search_mode", false, true, l)]), XLOOKUP: d("This function searches a range or an array for a match and returns the corresponding item from a second range or array. By default, an exact match is used.", [v("lookup_value"), v("lookup_array"), v("return_array"), v(o2, false, true), v(r2, false, true, f), v("search_mode", false, true, l)]), MAX: d("This function returns the maximum value, the greatest value, of all the values in the arguments.", [v("number1"), v("number2", true)]), MAXA: d("This function returns the largest value in a list of arguments, including text and logical values.", [v("value1"), v("value2", true)]), MDETERM: d("This function returns the matrix determinant of an array.", [v("array")]), MDURATION: d("This function calculates the modified Macaulay duration of a security with an assumed par value of $100.", [v("settlement"), v("maturity"), v("coupon"), v("yield"), v("frequency"), v("basis")]), MEDIAN: d("This function returns the median, the number in the middle of the provided set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less than the median.", [v("number1"), v("number2", true)]), MID: d("This function returns the requested number of characters from a text string starting at the position you specify, and based on the number of characters you specify.", [v("text"), v("start_num"), v("num_chars")]), MIN: d("This function returns the minimum value, the least value, of all the values in the arguments.", [v("number1"), v("number2", true)]), MINA: d("This function returns the minimum value in a list of arguments, including text and logical values.", [v("value1"), v("value2", true)]), MINUTE: d("This function returns the minute corresponding to a specified time.", [v("time")]), MINVERSE: d("This function returns the inverse matrix for the matrix stored in an array.", [v("array")]), MIRR: d("This function returns the modified internal rate of return for a series of periodic cash flows.", [v("values"), v("finance_rate"), v("reinvest_rate")]), MMULT: d("This function returns the matrix product for two arrays.", [v("array1"), v("array2")]), MOD: d("This function returns the remainder of a division operation.", [v("dividend"), v("divisor")]), MODE: d("This function returns the most frequently occurring value in a set of data.", [v("number1"), v("number2", true)]), MONTH: d("This function returns the month corresponding to the specified date value.", [v("date")]), MROUND: d("This function returns a number rounded to the desired multiple.", [v("number"), v("multiple")]), MULTINOMIAL: d("This function calculates the ratio of the factorial of a sum of values to the product of factorials.", [v("number1"), v("number2", true)]), MUNIT: d("The function returns the unit matrix for the specified dimension.", [v("dimension")]), N: d("This function returns a value converted to a number.", [v("value")]), NA: d("This function returns the error value #N/A that means not available.", []), SHEET: d("Returns the sheet number of reference sheet.", [v("value", false, true)]), SHEETS: d("Returns the number of sheets in a reference.", [v("reference", false, true)]), NEGBINOMDIST: d("This function returns the negative binomial distribution.", [v("number_f"), v("number_s"), v("probability_s")]), NETWORKDAYS: d("This function returns the total number of complete working days between the start and end dates.", [v("start_date"), v("end_date"), v("holidays", false, true)]), NOMINAL: d("This function returns the nominal annual interest rate for a given effective rate and number of compounding periods per year.", [v("effect_rate"), v("npery")]), NORMDIST: d("This function returns the normal cumulative distribution for the specified mean and standard deviation.", [v("x"), v("mean"), v("standard_dev"), v("cumulative")]), NORMINV: d("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.", [v("probability"), v("mean"), v("standard_dev")]), NORMSDIST: d("This function returns the standard normal cumulative distribution function.", [v("value")]), NORMSINV: d("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.", [v("probability")]), NOT: d("This function reverses the logical value of its argument.", [v("logical")]), NOW: d("This function returns the current date and time.", []), NPER: d("This function returns the number of periods for an investment based on a present value, future value, periodic payments, and a specified interest rate.", [v("rate"), v("paymt"), v("pval"), v("fval"), v("type")]), NPV: d("This function calculates the net present value of an investment by using a discount rate and a series of future payments and income.", [v("rate"), v("value1"), v("value2", true)]), OBJECT: d("This function converts the property/expression sequence to an object.", [v("property1", true), v("expression1", true)]), OCT2BIN: d("This function converts an octal number to a binary number.", [v("number"), v("places")]), OCT2DEC: d("This function converts an octal number to a decimal number.", [v("number")]), OCT2HEX: d("This function converts an octal number to a hexadecimal number.", [v("number"), v("places")]), ODD: d("This function rounds the specified value up to the nearest odd integer.", [v("number")]), ODDFPRICE: d("This function calculates the price per $100 face value of a security with an odd first period.", [v("settlement"), v("maturity"), v("issue"), v("first_coupon"), v("rate"), v("yield"), v("redemption"), v("frequency"), v("basis")]), ODDFYIELD: d("This function calculates the yield of a security with an odd first period.", [v("settlement"), v("maturity"), v("issue"), v("first_coupon"), v("rate"), v("price"), v("redemption"), v("frequency"), v("basis")]), ODDLPRICE: d("This function calculates the price per $100 face value of a security with an odd last coupon period.", [v("settlement"), v("maturity"), v("last_interest"), v("rate"), v("yield"), v("redemption"), v("frequency"), v("basis")]), ODDLYIELD: d("This function calculates the yield of a security with an odd last period.", [v("settlement"), v("maturity"), v("last_interest"), v("rate"), v("price"), v("redemption"), v("frequency"), v("basis")]), OFFSET: d("This function returns a reference to a range. The range is a specified number of rows and columns from a cell or range of cells. The function returns a single cell or a range of cells.", [v("reference"), v("rows"), v("cols"), v("height", false, true), v("width", false, true)]), TRIMRANGE: d("This function excludes all empty rows and/or columns from the outer edges of a range or array.", [v("range"), v("trim_rows", false, true, s), v("trim_columns", false, true, s)]), OR: d("This function calculates logical OR. It returns TRUE if any of its arguments are true; otherwise, returns FALSE if all arguments are false.", [v("logical1"), v("logical2", true)]), PEARSON: d("This function returns the Pearson product moment correlation coefficient, a dimensionless index between -1.0 to 1.0 inclusive indicative of the linear relationship of two data sets.", [v("array_ind"), v("array_dep")]), PERCENTILE: d("This function returns the nth percentile of values in a range.", [v("array"), v("n")]), PERCENTRANK: d("This function returns the rank of a value in a data set as a percentage of the data set.", [v("array"), v("x"), v("significance")]), PERMUT: d("This function returns the number of possible permutations for a specified number of items.", [v("number"), v("number_chosen")]), PI: d("This function returns PI as 3.1415926536.", []), PMT: d("This function returns the payment amount for a loan given the present value, specified interest rate, and number of terms.", [v("rate"), v("nper"), v("pval"), v("fval"), v("type")]), POISSON: d("This function returns the Poisson distribution.", [v("nevents"), v("mean"), v("cumulative")]), POWER: d("This function raises the specified number to the specified power.", [v("number"), v("power")]), PPMT: d("This function returns the amount of payment of principal for a loan given the present value, specified interest rate, and number of terms.", [v("rate"), v("per"), v("nper"), v("pval"), v("fval"), v("type")]), PRICE: d("This function calculates the price per $100 face value of a periodic interest security", [v("settlement"), v("maturity"), v("rate"), v("yield"), v("redemption"), v("frequency"), v("basis")]), PRICEDISC: d("This function returns the price per $100 face value of a discounted security.", [v("settlement"), v("maturity"), v("discount"), v("redemption"), v("basis")]), PRICEMAT: d("This function returns the price at maturity per $100 face value of a security that pays interest.", [v("settlement"), v("maturity"), v("issue"), v("rate"), v("yield"), v("basis")]), PROB: d("This function returns the probability that values in a range are between two limits.", [v("x_range"), v("prob_range"), v("lower_limit"), v("upper_limit")]), PRODUCT: d("This function multiplies all the arguments and returns the product.", [v("number1"), v("number2", true)]), PROPER: d("This function capitalizes the first letter in each word of a text string.", [v("text")]), PROPERTY: d("This function returns the value of property path in object.", [v("data_expression"), v("property_path")]), PV: d("This function returns the present value of an investment based on the interest rate, number and amount of periodic payments, and future value. The present value is the total amount that a series of future payments is worth now.", [v("rate"), v("numper"), v("paymt"), v("fval"), v("type")]), QUARTILE: d("This function returns which quartile (which quarter or 25 percent) of a data set a value is.", [v("array"), v("quart")]), QUOTIENT: d("This function returns the integer portion of a division. Use this to ignore the remainder of a division.", [v("numerator"), v("denominator")]), RADIANS: d("This function converts the specified number from degrees to radians.", [v("angle")]), RAND: d("This function returns an evenly distributed random number between 0 and 1.", []), RANDBETWEEN: d("This function returns a random number between the numbers you specify.", [v("bottom"), v("top")]), RANGEBLOCKSPARKLINE: d("This function returns a rangetemplate.", [v("template_range"), v("data_expression")]), RANK: d("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.", [v("number"), v("ref"), v("order", false, true)]), RATE: d("This function returns the interest rate per period of an annuity.", [v("nper"), v("pmt"), v("pval"), v("fval"), v("type"), v("guess")]), RECEIVED: d("This function returns the amount received at maturity for a fully invested security.", [v("settlement"), v("maturity"), v("investment"), v("discount"), v("basis")]), REPLACE: d("This function replaces part of a text string with a different text string, based on the number of characters you specify.", [v("old_text"), v("start_num"), v("num_chars"), v("new_text")]), REPT: d("This function repeats text a specified number of times.", [v("text"), v("number_times")]), RIGHT: d("This function returns the specified rightmost characters from a text value, and based on the number of characters you specify.", [v("text"), v("num_chars")]), ROMAN: d("This function converts an Arabic numeral to a Roman numeral text equivalent.", [v("number"), v("form")]), ROUND: d("This function rounds the specified value to the nearest number, using the specified number of decimal places.", [v("number"), v("num_digits")]), ROUNDDOWN: d("This function rounds the specified number down to the nearest number, using the specified number of decimal places.", [v("number"), v("num_digits")]), ROUNDUP: d("This function rounds the specified number up to the nearest number, using the specified number of decimal places.", [v("number"), v("num_digits")]), ROW: d("This function returns the number of a row from a reference.", [v("reference")]), ROWS: d("This function returns the number of rows in an array.", [v("array")]), RSQ: d("This function returns the square of the Pearson product moment correlation coefficient (R-squared) through data points in known y's and known x's.", [v("array_dep"), v("array_ind")]), SEARCH: d("This function finds one text string in another text string and returns the index of the starting position of the found text.", [v("find_text"), v("within_text"), v(e3, false, true)]), SECOND: d("This function returns the seconds (0 to 59) value for a specified time.", [v("time")]), SERIESSUM: d("This function returns the sum of a power series.", [v("x"), v("n"), v("m"), v("coefficients")]), SIGN: d("This function returns the sign of a number or expression.", [v("cellreference")]), SIN: d("This function returns the sine of the specified angle.", [v("angle")]), SINH: d("This function returns the hyperbolic sine of the specified number.", [v("number")]), SKEW: d("This function returns the skewness of a distribution.", [v("number1"), v("number2", true)]), SLN: d("This function returns the straight-line depreciation of an asset for one period.", [v("cost"), v("salvage"), v("life")]), SLOPE: d("This function calculates the slope of a linear regression.", [v("array_dep"), v("array_ind")]), SMALL: d("This function returns the nth smallest value in a data set, where n is specified.", [v("array"), v("n")]), SQRT: d("This function returns the positive square root of the specified number.", [v("value")]), SQRTPI: d("This function returns the positive square root of a multiple of pi (p).", [v("multiple")]), STANDARDIZE: d("This function returns a normalized value from a distribution characterized by mean and standard deviation.", [v("x"), v("mean"), v("standard_dev")]), STDEVA: d("This function returns the standard deviation for a set of numbers, text, or logical values.", [v("value1"), v("value2", true)]), STDEVP: d("This function returns the standard deviation for an entire specified population (of numeric values).", [v("number1"), v("number2", true)]), STDEVPA: d("This function returns the standard deviation for an entire specified population, including text or logical values as well as numeric values.", [v("value1"), v("value2", true)]), STEYX: d("This function returns the standard error of the predicted y value for each x. The standard error is a measure of the amount of error in the prediction of y for a value of x.", [v("array_dep"), v("array_ind")]), SUBSTITUTE: d("This function substitutes a new string for specified characters in an existing string.", [v("text"), v("old_text"), v("new_text"), v("instance_num", false, true)]), SUBTOTAL: d("This function calculates a subtotal of a list of numbers using a specified built-in function.", [v("function_num"), v("ref1"), v("ref2", true)]), SUM: d("This function returns the sum of cells or range of cells.", [v("number1"), v("number2", true)]), SUMIF: d("This function adds the cells using a given criteria.", [v("range"), v("criteria"), v("sum_range")]), SUMIFS: d("This function adds the cells in a range using multiple criteria.", [v("sum_range"), v("criteria_range1"), v("criteria1"), v("criteria_range2", true), v("criteria2", true)]), SUMPRODUCT: d("This function returns the sum of products of cells. Multiplies corresponding components in the given arrays, and returns the sum of those products.", [v("array1"), v("array2", true)]), SUMSQ: d("This function returns the sum of the squares of the arguments.", [v("number1"), v("number2", true)]), SUMX2MY2: d("This function returns the sum of the difference of the squares of corresponding values in two arrays.", [v("array_x"), v("array_y")]), SUMX2PY2: d("This function returns the sum of the sum of squares of corresponding values in two arrays.", [v("array_x"), v("array_y")]), SUMXMY2: d("This function returns the sum of the square of the differences of corresponding values in two arrays.", [v("array_x"), v("array_y")]), SYD: d("This function returns the sum-of-years' digits depreciation of an asset for a specified period.", [v("cost"), v("salvage"), v("life"), v("period")]), T: d("This function returns the text in a specified cell.", [v("value")]), TAN: d("This function returns the tangent of the specified angle.", [v("angle")]), TANH: d("This function returns the hyperbolic tangent of the specified number.", [v("number")]), TBILLEQ: d("This function returns the equivalent yield for a Treasury bill (or T-bill)", [v("settlement"), v("maturity"), v("discount")]), TBILLPRICE: d("This function returns the price per $100 face value for a Treasury bill (or T-bill).", [v("settlement"), v("maturity"), v("discount")]), TBILLYIELD: d("This function returns the yield for a Treasury bill (or T-bill).", [v("settlement"), v("maturity"), v("priceper")]), TDIST: d("This function returns the probability for the t-distribution.", [v("x"), v("deg_freedom"), v("tails")]), TEXT: d("This function formats a number and converts it to text.", [v("value"), v("format_text")]), TIME: d("This function returns the TimeSpan object for a specified time.", [v("hour"), v("minute"), v("second")]), TIMEVALUE: d("This function returns the TimeSpan object of the time represented by a text string.", [v("time_text")]), TINV: d("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.", [v("probability"), v("deg_freedom")]), TODAY: d("This function returns the date and time of the current date.", []), TRANSPOSE: d("This function returns a vertical range of cells as a horizontal range or a horizontal range of cells as a vertical range.", [v("array")]), TREND: d("This function returns values along a linear trend. This function fits a straight line to the arrays known x and y values. Trend returns the y values along that line for the array of specified new x values.", [v("y"), v("x"), v("newx"), v("constant")]), TRIM: d("This function removes extra spaces from a string and leaves single spaces between words.", [v("text")]), TRIMMEAN: d("This function returns the mean of a subset of data excluding the top and bottom data.", [v("array"), v("percent")]), TRUE: d("This function returns the value for logical TRUE.", []), TRUNC: d("This function removes the specified fractional part of the specified number.", [v("number"), v("num_digits")]), TTEST: d("This function returns the probability associated with a t-test.", [v("array1"), v("array2"), v("tails"), v("type")]), TYPE: d("This function returns the type of value.", [v("value")]), UPPER: d("This function converts text to uppercase letters.", [v("text")]), VALUE: d("This function converts a text string that is a number to a numeric value.", [v("text")]), VAR: d("This function returns the variance based on a sample of a population, which uses only numeric values.", [v("number1"), v("number2", true)]), VARA: d("This function returns the variance based on a sample of a population, which includes numeric, logical, or text values.", [v("value1"), v("value2", true)]), VARP: d("This function returns variance based on the entire population, which uses only numeric values.", [v("number1"), v("number2", true)]), VARPA: d("This function returns variance based on the entire population, which includes numeric, logical, or text values.", [v("value1"), v("value2", true)]), VDB: d("This function returns the depreciation of an asset for any period you specify using the variable declining balance method.", [v("cost"), v("salvage"), v("life"), v("start_period"), v("end_period"), v("factor"), v("no_switch")]), VLOOKUP: d("This function searches for a value in the leftmost column and returns a value in the same row from a column you specify.", [v("lookup_value"), v("table_array"), v("col_index_num"), v("range_lookup", false, true, h)]), WEEKDAY: d("This function returns the number corresponding to the day of the week for a specified date.", [v("date"), v("type")]), WEEKNUM: d("This function returns a number that indicates the week of the year numerically.", [v("date"), v("weektype")]), DATEPART: d("This function formats a date and converts it to text.", [v("date"), v("format_text"), v("weektype", false, true)]), WEIBULL: d("This function returns the two-parameter Weibull distribution, often used in reliability analysis.", [v("x"), v("alpha"), v("beta"), v("cumulative")]), WORKDAY: d("This function returns the number of working days before or after the starting date.", [v("start_date"), v("days"), v("holidays", false, true)]), XIRR: d("This function calculates the internal rate of return for a schedule of cash flows that may not be periodic.", [v("values"), v("dates"), v("guess")]), XNPV: d("This function calculates the net present value for a schedule of cash flows that may not be periodic.", [v("rate"), v("values"), v("dates")]), YEAR: d("This function returns the year as an integer for a specified date.", [v("date")]), YEARFRAC: d("This function returns the fraction of the year represented by the number of whole days between the start and end dates.", [v("start_date"), v("end_date"), v("basis")]), YIELD: d("This function calculates the yield on a security that pays periodic interest.", [v("settlement"), v("maturity"), v("rate"), v("price"), v("redemption"), v("frequency"), v("basis")]), YIELDDISC: d("This function calculates the annual yield for a discounted security.", [v("settlement"), v("maturity"), v("price"), v("redemption"), v("basis")]), YIELDMAT: d("This function calculates the annual yield of a security that pays interest at maturity.", [v("settlement"), v("maturity"), v("issue"), v("rate"), v("price"), v("basis")]), ZTEST: d("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.", [v("array"), v("x"), v("sigma", false, true)]), HBARSPARKLINE: d("This function returns a data set used for representing a Hbar sparkline", [v("value"), v("colorScheme"), v("axisVisible"), v("barHeight")]), VBARSPARKLINE: d("This function returns a data set used for representing a Vbar sparkline", [v("value"), v("colorScheme"), v("axisVisible"), v("barWidth")]), VARISPARKLINE: d("This function returns a data set used for representing a variance sparkline", [v("variance"), v("reference"), v("mini"), v("maxi"), v("mark"), v("tickunit"), v("legend"), v("colorPositive"), v("colorNegative"), v("vertical")]), LOLLIPOPVARISPARKLINE: d("This function returns a data set used for representing an absolute or relative lollipop variance sparkline", [v("plannedValue"), v("actualValue"), v("index"), v("absolute"), v("reference"), v("mini"), v("maxi"), v("tickunit"), v("legend"), v("colorPositive"), v("colorNegative"), v("lollipopHeaderColor"), v("vertical")]), PIESPARKLINE: d("This function returns a data set used for representing a pie sparkline", [v("range|percentage"), v("color", true)]), AREASPARKLINE: d("This function returns a data set used for representing a area sparkline", [v("points"), v("mini"), v("maxi"), v("line1"), v("line2"), v("colorPositive"), v("colorNegative")]), SCATTERSPARKLINE: d("This function returns a data set used for representing a scatter sparkline", [v("points1"), v("points2"), v("minX"), v("maxX"), v("minY"), v("maxY"), v("hLine"), v("vLine"), v("xMinZone"), v("xMaxZone"), v("yMinZone"), v("yMaxZone"), v("tags"), v("drawSymbol"), v("drawLines"), v("color1"), v("color2"), v("dash")]), LINESPARKLINE: d("This function returns a data set used for representing a line sparkline", [v("data"), v("dataOrientation"), v("dateAxisData"), v("dateAxisOrientation"), v("setting")]), COLUMNSPARKLINE: d("This function returns a data set used for representing a column sparkline", [v("data"), v("dataOrientation"), v("dateAxisData"), v("dateAxisOrientation"), v("setting")]), WINLOSSSPARKLINE: d("This function returns a data set used for representing a win/loss sparkline", [v("data"), v("dataOrientation"), v("dateAxisData"), v("dateAxisOrientation"), v("setting")]), BULLETSPARKLINE: d("This function returns a data set used for representing a bullet sparkline", [v("measure"), v("target"), v("maxi"), v("good"), v("bad"), v("forecast"), v("tickunit"), v("colorScheme"), v("vertical"), v("measureColor"), v("targetColor"), v("maxiColor"), v("goodColor"), v("badColor"), v("forecastColor"), v("allowMeasureOverMaxi"), v("barSize")]), SPREADSPARKLINE: d("This function returns a data set used for representing a spread sparkline", [v("points"), v("showAverage"), v("scaleStart"), v("scaleEnd"), v("style"), v("colorScheme"), v("vertical")]), STACKEDSPARKLINE: d("This function returns a data set used for representing a stacked sparkline", [v("points"), v("colorRange"), v("labelRange"), v("maximum"), v("targetRed"), v("targetGreen"), v("targetBlue"), v("tragetYellow"), v("color"), v("highlightPosition"), v("vertical"), v("textOrientation"), v("textSize")]), BOXPLOTSPARKLINE: d("This function returns a data set used for representing a boxplot sparkline", [v("points"), v("boxPlotClass"), v("showAverage"), v("scaleStart"), v("scaleEnd"), v("acceptableStart"), v("acceptableEnd"), v("colorScheme"), v("style"), v("vertical")]), CASCADESPARKLINE: d("This function returns a data set used for representing a cascade sparkline", [v("pointsRange"), v("pointIndex"), v("labelsRange"), v("minimum"), v("maximum"), v("colorPositive"), v("colorNegative"), v("vertical"), v("itemTypeRange"), v("colorTotal")]), PARETOSPARKLINE: d("This function returns a data set used for representing a pareto sparkline", [v("points"), v("pointIndex"), v("colorRange"), v("target"), v("target2"), v("highlightPosition"), v("label"), v("vertical"), v("targetColor"), v("target2Color"), v("labelColor"), v("barSize")]), MONTHSPARKLINE: d("This function returns a data set used for representing a month sparkline", [v("year"), v("month"), v("dataRange"), v("emptyColor"), v("startColor"), v("middleColor"), v("endColor")]), YEARSPARKLINE: d("This function returns a data set used for representing a year sparkline", [v("year"), v("dataRange"), v("emptyColor"), v("startColor"), v("middleColor"), v("endColor")]), GAUGEKPISPARKLINE: d("This function returns a data set used for representing a gauge KPI sparkline", [v("targetValue"), v("currentValue"), v("minValue"), v("maxValue"), v("showLabel", false, true), v("targetValueLabel", false, true), v("currentValueLabel", false, true), v("minValueLabel", false, true), v("maxValueLabel", false, true), v("fontArray", false, true), v("minAngle", false, true), v("maxAngle", false, true), v("radiusRatio", false, true), v("gaugeType", false, true), v("colorRange", true, true)]), HISTOGRAMSPARKLINE: d("This function returns a data set used for representing a histogram sparkline", [v("dateRange"), v("continuous"), v("paintLabel"), v("scale"), v("barWidth"), v("barColor"), v("labelFontStyle"), v("labelColor"), v("edgeColor")]), "CEILING.PRECISE": d("This function rounds a number up to the nearest integer or to the nearest multiple of a specified value.", [v("number"), v(i3, false, true)]), "COVARIANCE.S": d("This function returns the sample covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.", [v("array1"), v("array2")]), "FLOOR.PRECISE": d("This function rounds a number down to the nearest integer or to the nearest multiple of a specified value.", [v("number"), v(i3, false, true)]), "PERCENTILE.EXC": d("This function returns the nth percentile of values in a range.", [v("array"), v("k")]), "QUARTILE.EXC": d("This function returns which quartile (which quarter or 25 percent) of a data set a value is.", [v("array"), v("quart")]), "RANK.AVG": d("This function returns the rank of a number in a set of numbers. If some values have the same rank, it will return the average rank.", [v("number"), v("ref"), v("order", false, true)]), "MODE.MULT": d("This function returns the most frequently occurring vertical array or the most frequently occurring value in a set of data.", [v("number1"), v("number2", true)]), "STDEV.P": d("This function returns the standard deviation for an entire specified population (of numeric values).", [v("number1"), v("number2", true)]), "VAR.P": d("This function returns variance based on the entire population, which uses only numeric values.", [v("number1"), v("number2", true)]), "COVARIANCE.P": d("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.", [v("array1"), v("array2")]), "MODE.SNGL": d("This function returns the most frequently occurring value in a set of data.", [v("number1"), v("number2", true)]), "PERCENTILE.INC": d("This function returns the nth percentile of values in a range.", [v("array"), v("k")]), "QUARTILE.INC": d("This function returns which quartile (which quarter or 25 percent) of a data set a value is.", [v("array"), v("quart")]), "RANK.EQ": d("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.", [v("number"), v("ref"), v("order", false, true)]), STDEV: d("This function returns standard deviation is estimated based on a sample.", [v("number1"), v("number2", true)]), "STDEV.S": d("This function returns standard deviation is estimated based on a sample.", [v("number1"), v("number2", true)]), "VAR.S": d("This function returns the variance based on a sample of a population, which uses only numeric values.", [v("number1"), v("number2", true)]), "BETA.INV": d("This function calculates the inverse of the cumulative beta distribution function.", [v("probability"), v("alpha"), v("beta"), v("lower", false, true), v("upper", false, true)]), "BINOM.DIST": d("This function calculates the individual term binomial distribution probability.", [v("number_s"), v("trials"), v("probability_s"), v("cumulative")]), "BINOM.INV": d("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.", [v("trials"), v("probability_s"), v("alpha")]), "CHISQ.DIST.RT": d("This function calculates the one-tailed probability of the chi-squared distribution.", [v("value"), v("deg_freedom")]), "CHISQ.INV.RT": d("This function calculates the inverse of the one-tailed probability of the chi-squared distribution.", [v("probability"), v("deg_freedom")]), "CHISQ.TEST": d("This function calculates the test for independence from the chi-squared distribution.", [v("actual_range"), v("expected_range")]), "CONFIDENCE.NORM": d("This function returns confidence interval for a population mean.", [v("alpha"), v("standard_dev"), v("size")]), "EXPON.DIST": d("This function returns the exponential distribution or the probability density.", [v("value"), v("lambda"), v("cumulative")]), "F.DIST.RT": d("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.", [v("value"), v("deg_freedom1"), v("deg_freedom2")]), "F.INV.RT": d("This function returns the inverse of the F probability distribution.", [v("probability"), v("deg_freedom1"), v("deg_freedom2")]), "F.TEST": d("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.", [v("array1"), v("array2")]), "GAMMA.DIST": d("This function returns the gamma distribution.", [v("x"), v("alpha"), v("beta"), v("cumulative")]), "GAMMA.INV": d("This function returns the inverse of the gamma cumulative distribution.", [v("probability"), v("alpha"), v("beta")]), "LOGNORM.INV": d("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.", [v("probability"), v("mean"), v("standard_dev")]), "NORM.DIST": d("This function returns the normal cumulative distribution for the specified mean and standard deviation.", [v("x"), v("mean"), v("standard_dev"), v("cumulative")]), "NORM.INV": d("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.", [v("probability"), v("mean"), v("standard_dev")]), "NORM.S.INV": d("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.", [v("probability")]), "PERCENTRANK.INC": d("This function returns the rank of a value in a data set as a percentage of the data set.", [v("array"), v("n"), v(i3, false, true)]), "POISSON.DIST": d("This function returns the Poisson distribution.", [v("nevents"), v("mean"), v("cumulative")]), "T.INV.2T": d("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.", [v("probability"), v("deg_freedom")]), "T.TEST": d("This function returns the probability associated with a t-test.", [v("array1"), v("array2"), v("tails"), v("type")]), "WEIBULL.DIST": d("This function returns the two-parameter Weibull distribution, often used in reliability analysis.", [v("x"), v("alpha"), v("beta"), v("cumulative")]), "Z.TEST": d("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.", [v("array"), v("x"), v("sigma", false, true)]), "T.DIST.RT": d("This function returns the right-tailed t-distribution.", [v("x"), v("deg_freedom")]), "T.DIST.2T": d("This function returns the two-tailed t-distribution.", [v("x"), v("deg_freedom")]), "ISO.CEILING": d("This function returns a number up to the nearest integer or to the nearest multiple of significance, regardless of sign of significance.", [v("number"), v(i3, false, true)]), "BETA.DIST": d("This function returns the beta distribution.", [v("x"), v("alpha"), v("beta"), v("cumulative"), v("lower"), v("upper")]), "GAMMALN.PRECISE": d("This function returns the natural logarithm of the gamma function.", [v("value")]), "ERF.PRECISE": d("This function returns the error function.", [v("lowerlimit")]), "ERFC.PRECISE": d("This function returns the complementary ERF function.", [v("lowerlimit")]), "PERCENTRANK.EXC": d("This function returns the percentage rank(0..1, exclusive) of a value in a data set.", [v("array"), v("x"), v(i3, false, true)]), "HYPGEOM.DIST": d("This function returns the hypergeometric distribution.", [v("sample_s"), v("number_sample"), v("population_s"), v("number_pop"), v("cumulative")]), "LOGNORM.DIST": d("This function returns the log normal distribution of x.", [v("x"), v("mean"), v("stdev"), v("cumulative")]), "NEGBINOM.DIST": d("This function returns the negative binomial distribution.", [v("number_f"), v("number_s"), v("probability_s"), v("cumulative")]), "NORM.S.DIST": d("This function returns the standard normal distribution.", [v("z"), v("cumulative")]), "T.DIST": d("This function returns the t-distribution.", [v("x"), v("deg_freedom"), v("cumulative")]), "F.DIST": d("This function returns the F probability distribution.", [v("x"), v("deg_freedom1"), v("deg_freedom2"), v("cumulative")]), "CHISQ.DIST": d("This function returns the chi-squared distribution.", [v("x"), v("deg_freedom"), v("cumulative")]), "F.INV": d("This function returns the inverse of the F probability distribution.", [v("probability"), v("deg_freedom1"), v("deg_freedom2")]), "T.INV": d("This function returns the left-tailed inverse of the t-distribution.", [v("probability"), v("deg_freedom")]), "CHISQ.INV": d("This function returns the inverse of left-tailed probability of the chi-squared distribution.", [v("probability"), v("deg_freedom")]), "CONFIDENCE.T": d("This function returns the confidence interval for a Student's t distribution.", [v("alpha"), v("standard_dev"), v("size")]), "NETWORKDAYS.INTL": d("This function returns the number of workdays between two dates using arguments to indicate holidays and weekend days.", [v("start_date"), v("end_date"), v("weekend", false, true), v("holidays", false, true)]), "WORKDAY.INTL": d("This function returns the serial number of the date before or after a number of workdays with custom weekend parameters. These parameters indicate weekend days and holidays.", [v("start_date"), v("days"), v("weekend", false, true), v("holidays", false, true)]), REFRESH: d("This function decides how to re-calculate the formula. Can use the evaluateMode argument to specific the formula re-calculate on the reference value changed, evaluate once , re-calculate or interval.", [v("formula"), v("evaluateMode"), v("interval")]), DAYS: d("This function returns the number of days between two dates.", [v("end_date"), v("start_date")]), ISOWEEKNUM: d("This function returns the number of the ISO week number of the year for a given date.", [v("date")]), BITAND: d('This function returns a bitwise "AND" of two numbers.', [v("number1"), v("number2")]), BITLSHIFT: d('This function returns a bitwise "OR" of two numbers.', [v("number"), v("shift_amount")]), BITOR: d('This function returns a bitwise "OR" of two numbers.', [v("number1"), v("number2")]), BITRSHIFT: d('This function returns a bitwise "OR" of two numbers.', [v("number"), v("shift_amount")]), BITXOR: d('This function returns a bitwise "XOR" of two numbers.', [v("number1"), v("number2")]), IMCOSH: d("This function returns the hyperbolic cosine of a complex number in x+yi or x+yj text format.", [v("complexnum")]), IMCOT: d("This function returns the cotangent of a complex number in x+yi or x+yj text format.", [v("complexnum")]), IMCSC: d("This function returns the cosecant of a complex number in x+yi or x+yj text format.", [v("complexnum")]), IMCSCH: d("This function returns the hyperbolic cosecant of a complex number in x+yi or x+yj text format.", [v("complexnum")]), IMSEC: d("This function returns the secant of a complex number in x+yi of x+yj text format.", [v("complexnum")]), IMSECH: d("This function returns the hyperbolic secant of a complex number in x+yi or x+yj text format.", [v("complexnum")]), IMSINH: d("This function returns the hyperbolic sine of a complex number in x+yi of x+yj text format.", [v("complexnum")]), IMTAN: d("This function returns the tangent of a complex number in x+yi or x+yj text format.", [v("complexnum")]), PDURATION: d("This function returns the number of periods required by an investment to reach a specified value.", [v("rate"), v("pval"), v("fval")]), RRI: d("This function returns an equivalent interest rate for the growth of an investment.", [v("nper"), v("pval"), v("fval")]), ISFORMULA: d("This function tests whether contains a formula of a referenced cell.", [v("cellreference")]), IFNA: d("This function returns the value you specify if the formula returns the #N/A error value, otherwise returns the result of the formula.", [v("value"), v("value_if_na")]), IFS: d("This function checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition.", [v("logical_test1"), v("value_if_true1"), v("logical_test2", true), v("value_if_true2", true)]), SWITCH: d("This function evaluates one value (called the expression) against a list of values, and returns the result corresponding to the first matching value. If there is no match, an optional default value may be returned.", [v("expression"), v("value1"), v("result1"), v("default_or_value2", true, true), v("result2", true, true)]), XOR: d("This function returns a logical exclusive or of all arguments.", [v("logical", true)]), AREAS: d("This function returns the number of areas in a reference.", [v("reference")]), FORMULATEXT: d("This function returns a formula as a string.", [v("reference")]), HYPERLINK: d("This function creates a shortcut or jump that opens a document stored on a network server, an intranet, or the Internet.", [v("link_location"), v("friendly_name")]), ACOT: d("This function calculates the inverse arccotangent of a number.", [v("number")]), ACOTH: d("This function calculates the inverse hyperbolic arccotangent of a number.", [v("number")]), ARABIC: d("This function converts a Roman numeral text to an Arabic numeral equivalent.", [v("text")]), BASE: d("This function converts a number into a text representation with the given radix (base).", [v("number"), v("radix"), v("min_length", false, true)]), "CEILING.MATH": d("This function round  a number up to the nearest integer or to the nearest multiple of significance.", [v("number"), v(i3, false, true), v("mode", false, true)]), COMBINA: d("This function calculates the number of possible combinations with repetitions for a specified number of items.", [v("number"), v("number_chosen")]), COT: d("This function returns the cotangent of the specified angle.", [v("angle")]), COTH: d("This function returns the hyperbolic cotangent of the specified number.", [v("value")]), CSC: d("This function returns the cosecant of the specified angle.", [v("angle")]), CSCH: d("This function returns the hyperbolic cosecant of the specified number.", [v("value")]), DECIMAL: d("This function converts a text representation of a number in a given base into a decimal number.", [v("text"), v("radix")]), "FLOOR.MATH": d("This function round a number down to the nearest integer or to the nearest multiple of significance.", [v("number"), v(i3, false, true), v("mode", false, true)]), SEC: d("This function returns the secant of the specified angle.", [v("angle")]), SECH: d("This function returns the hyperbolic secant of the specified value.", [v("value")]), "BINOM.DIST.RANGE": d("This function calculates the probability of a trial result using a binomial distribution.", [v("trials"), v("probability_s"), v("number_s"), v("number_s2", false, true)]), GAMMA: d("This function returns the gamma function value.", [v("number")]), MAXIFS: d("This function returns the maximum value among cells specified by a given set of conditions or criteria.", [v("max_range"), v("criteria_range1"), v("criteria1"), v("criteria_range2", true), v("criteria2", true)]), GAUSS: d("This function calculates the probability that a member of a standard normal population will fall between the mean and z standard deviations from the mean.", [v("number")]), MINIFS: d("This function returns the minimum value among cells specified by a given set of conditions or criteria.", [v("min_range"), v("criteria_range1"), v("criteria1"), v("criteria_range2", true), v("criteria2", true)]), PERMUTATIONA: d("This function returns the number of permutations for a given number of object that can be selected from the total objects.", [v("number"), v("number_chosen")]), PHI: d("This function returns the value of the density function for a standard normal distribution.", [v("value")]), "SKEW.P": d("This function returns the skewness of a distribution base on a poopulation: a characterization of the degree of asymmetry of a distribution around its mean.", [v("number1"), v("number2", true)]), BAHTTEXT: d('This function converts a number to Thai text and adds a suffix of "Baht"', [v("number")]), CONCAT: d('This function combines multiple text strings or numbers into one text string, the function will stay available for compatibility with "CONCATENATE" function.', [v("text1"), v("text2", true)]), FINDB: d("This function finds one text value within another and returns the text value's position in the text you searched, and counts each double-byte characte as 2 when set DBCS as the default language.", [v("find_text"), v("within_text"), v(e3, false, true)]), LEFTB: d("This function returns the specified leftmost characters from a text value, and based on the number of bytes you specify.", [v("text"), v("num_bytes")]), LENB: d("This function returns the length of the number of bytes in a text string.", [v("text")]), MIDB: d("This function returns the requested number of characters from a text string starting at the position you specify, and based on the number of bytes you specify.", [v("text"), v("start_num"), v("num_bytes")]), REPLACEB: d("This function replaces part of a text string with a different text string, based on the number of bytes you specify.", [v("old_text"), v("start_byte"), v("num_bytes"), v("new_text")]), RIGHTB: d("This function returns the specified rightmost characters from a text value, and based on the number of bytes you specify.", [v("text"), v("num_bytes")]), SEARCHB: d("This function finds one text string in another text string and returns the index of the starting position of the found text, and counts each double-byte characte as 2 when set DBCS as the default language.", [v("find_text"), v("within_text"), v(e3, false, true)]), TEXTJOIN: d("This function combines multiple ranges and/or strings into one text, and the text includes a delimiter you specify between each text value.", [v("delimiter"), v("ignore_empty"), v("text1"), v("text2", true)]), UNICHAR: d("This function returns the Unicode character of a given numeric reference.", [v("number")]), UNICODE: d("This function returns the number corresponding to the first character of the text.", [v("text")]), ENCODEURL: d("This function returns a URL-encoded string.", [v("text")]), BC_QRCODE: d("This function returns a data set for representing a QRCode", [v("value"), v("color"), v("backgroundColor"), v("errorCorrectionLevel"), v("model"), v("version"), v("mask"), v("connection"), v("connectionNo"), v("charCode"), v("charset"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_EAN13: d("This function returns a data set for representing a EAN13.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("addOn"), v("addOnLabelPosition"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_EAN8: d("This function returns a data set for representing a EAN8.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_CODABAR: d("This function returns a data set for representing a CODABAR.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("checkDigit"), v("nwRatio"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_CODE39: d("This function returns a data set for representing a CODE39.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("labelWithStartAndStopCharacter"), v("checkDigit"), v("nwRatio"), v("fullASCII"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_CODE93: d("This function returns a data set for representing a CODE93.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("checkDigit"), v("fullASCII"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_CODE128: d("This function returns a data set for representing a CODE128.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("codeSet"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_GS1_128: d("This function returns a data set for representing a GS1_128.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_CODE49: d("This function returns a data set for representing a CODE49.", [v("value"), v("color"), v("backgroundColor"), v("showLabel"), v("labelPosition"), v("grouping"), v("groupNo"), v("fontFamily"), v("fontStyle"), v("fontWeight"), v("textDecoration"), v("textAlign"), v("fontSize"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_PDF417: d("This function returns a data set for representing a PDF417.", [v("value"), v("color"), v("backgroundColor"), v("errorCorrectionLevel"), v("rows"), v("columns"), v("compact"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), BC_DATAMATRIX: d("This function returns a data set for representing a DATAMATRIX.", [v("value"), v("color"), v("backgroundColor"), v("eccMode"), v("ecc200SymbolSize"), v("ecc200EncodingMode"), v("ecc00_140SymbolSize"), v("structuredAppend"), v("structureNumber"), v("fileIdentifier"), v("quietZoneLeft"), v("quietZoneRight"), v("quietZoneTop"), v("quietZoneBottom")]), FILTER: d("This function filter a range or array.", [v("array"), v("include"), v("if_empty", false, true)]), RANDARRAY: d("This function returns an array of random numbers.", [v("rows"), v("columns"), v("min"), v("max"), v("whole_number")]), SEQUENCE: d("This function returns a sequence of numbers.", [v("rows"), v("columns"), v("start"), v("step")]), SINGLE: d("This function returns a single value when given a value, range or array.", [v("value")]), SORT: d("This function sorts a range or array.", [v("array"), v("sort_index"), v("sort_order"), v("by_col")]), SORTBY: d("This function sorts a range or array based on the values in a corresponding range or array.", [v("array"), v("by_array1"), v("sort_order1"), v("by_array2", true), v("sort_order2", true)]), UNIQUE: d("This function returns the unique values from a range or array.", [v("array"), v("by_col", false, true), v("exactly_once", false, true)]), QUERY: d("This function returns data from data manager tables in a worksheet.", [v("tableAndRows"), v("columns"), v("returnObject")]), LET: d("This function assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.", [v("name1"), v("name_value1"), v("name2", true), v("name_value2", true), v("calculation")]), IMAGE: d("This function input an URL or a base64 string to show an image in cell", [v("source"), v("[alt_text]"), v("[sizing]"), v("[height]"), v("[width]"), v("[clipY]"), v("[clipX]"), v("[clipHeight]"), v("[clipWidth]"), v("[vAlign]"), v("[hAlign]")]), GETPIVOTDATA: d("This function extracts data stored in a PivotTable", [v("data_field"), v("pivot_table"), v("field1, item1", true, true)]), WEBSERVICE: d("This function returns data from a web service", [v("url")]), FILTERJSON: d("This function parses json string to a scalar value, an object or an array of objects.", [v("json_string")]), ASC: d("The ASC function changes full-width(double-byte) characters to half-width(single-byte) characters, Use with double-byte character sets (DBCS).", [v("text")]), DBCS: d("The DBCS function converts half-width(single-byte) letters within a character string to full-width(double-byte) characters.", [v("text")]), LAMBDA: d("Creates a function value, which can be called within formulas.", [v("parameter_or_calculation"), v("parameter_or_calculation", true, true)]), MAP: d("Returns an array formed by mapping each value in the array(s) to a new value by applying a LAMBDA to create a new value.", [v("array"), v("lambda_or_array", true)]), REDUCE: d("Reduces an array to an accumulated value by applying a LAMBDA to each value and returning the total value in the accumulator.", [v("init_value"), v("array"), v("function")]), SCAN: d("Scans an array by applying a LAMBDA to each value and returns an array that has each intermediate value.", [v("init_value", false, true), v("array"), v("function")]), MAKEARRAY: d("Returns a calculated array of a specified row and column size, by applying a LAMBDA.", [v("rows"), v("cols"), v("function")]), BYCOL: d("Applies a LAMBDA to each column and returns an array of the results. For example, if the original array is 3 columns by 2 rows, the returned array is 3 columns by 1 row.", [v("array"), v("function")]), BYROW: d("Applies a LAMBDA to each row and returns an array of the results. For example, if the original array is 3 columns by 2 rows, the returned array is 1 column by 2 rows.", [v("array"), v("function")]), PERCENTOF: d("Returns the percentage of a subset of a given data set.", [v("data_subset"), v("data_all")]), GROUPBY: d("Aggregate values by row fields.", [v("row_fields"), v("values"), v("function"), v("field_headers", false, true), v("total_depth", false, true), v("sort_order", false, true), v("filter_array", false, true), v("field_relationship", false, true)]), PIVOTBY: d("Aggregate values by rows and columns.", [v("row_fields"), v("col_fields"), v("values"), v("function"), v("field_headers", false, true), v("row_total_depth", false, true), v("row_sort_order", false, true), v("col_total_depth", false, true), v("col_sort_order", false, true), v("filter_array", false, true), v("relative_to", false, true)]), ISOMITTED: d("Checks whether the value in a LAMBDA is missing and returns TRUE or FALSE.", [v("argument")]), TEXTBEFORE: d("Returns text that occurs before a given character or string.", [v("text"), v("delimiter"), v("instance_num", false, true), v(r2, false, true, c), v("match_end", false, true), v(o2, false, true)]), TEXTAFTER: d("Returns text that occurs after given character or string.", [v("text"), v("delimiter"), v("instance_num", false, true), v(r2, false, true, c), v("match_end", false, true), v(o2, false, true)]), TEXTSPLIT: d("Splits text strings by using column and row delimiters.", [v("text"), v("col_delimiter"), v("row_delimiter", false, true), v("ignore_empty", false, true), v(r2, false, true, c), v(a, false, true)]), REGEXEXTRACT: d("Extracts substrings of 'text' based on the provided REGEX 'pattern'.", [v("text"), v("pattern"), v("return_mode", false, true, u), v("case_sensitivity", false, true, c)]), REGEXTEST: d("Checks whether the input matches the pattern, and returns TRUE or FALSE.", [v("text"), v("pattern"), v("case_sensitivity", false, true, c)]), REGEXREPLACE: d("Returns 'text', with 'replacement' in place of matches with 'pattern'.", [v("text"), v("pattern"), v("replacement"), v("occurrence", false, true), v("case_sensitivity", false, true, c)]), VSTACK: d("Appends arrays vertically and in sequence to return a larger array.", [v("array1"), v("array2", true, true)]), HSTACK: d("Appends arrays horizontally and in sequence to return a larger array.", [v("array1"), v("array2", true, true)]), TOROW: d("Returns the array in a single row.", [v("array"), v("ignore", false, true), v("scan_by_column", false, true)]), TOCOL: d("Returns the array in a single column.", [v("array"), v("ignore", false, true), v("scan_by_column", false, true)]), WRAPROWS: d("Wraps the provided row or column of values by rows after a specified number of elements to form a new array.", [v("vector"), v("wrap_count"), v(a, false, true)]), WRAPCOLS: d("Wraps the provided row or column of values by columns after a specified number of elements to form a new array.", [v("vector"), v("wrap_count"), v(a, false, true)]), TAKE: d("Returns a specified number of contiguous rows or columns from the start or end of an array.", [v("array"), v("rows"), v("columns", false, true)]), DROP: d("Excludes a specified number of rows or columns from the start or end of an array.", [v("array"), v("rows"), v("columns", false, true)]), EXPAND: d("Expands or pads an array to specified row and column dimensions.", [v("array"), v("rows"), v("columns", false, true), v(a, false, true)]), CHOOSEROWS: d("Returns the specified rows from an array.", [v("array"), v("row_num1"), v("row_num2", true, true)]), CHOOSECOLS: d("Returns the specified columns from an array.", [v("array"), v("col_num1"), v("col_num2", true, true)]), "SJS.UUID": d("Returns the random UUID.", [v("number")]), "SJS.ENDWITH": d("Returns whether str1 ends with str2.", [v("within_text"), v("find_text"), v(r2, false, true, c)]), "SJS.STARTWITH": d("Returns whether the string str1 starts with str2.", [v("within_text"), v("find_text"), v(r2, false, true, c)]), "R.INDEX": d("(ReportSheet Specific) Returns the index of the specified cell in the parent measured extension.", [v("reference"), v("context_reference", false, true)]), "R.RANK": d("(ReportSheet Specific) Returns the rank of the specified cell in the parent node.", [v("reference"), v("context_reference", false, true), v("order", false, true), v("rank_mode", false, true)]), "SJS.FISCALYEAR": d("return fiscal year.", [v("date"), v("start_month", false, true)]), "R.R": d("(ReportSheet Specific) Relative offset according to the specified cell.", [v("reference"), v("offset")]), "R.A": d("(ReportSheet Specific) Absolute offset based on the specified cell.", [v("reference"), v("offset")]), "R.V": d("(ReportSheet Specific) Returns the data of the cell base on the specified offset or context.", [v("reference"), v('offset | context_reference | "CurrentPage"', true, true)]), "R.CURRENTPAGE": d("(ReportSheet Specific) Returns the current page number of the report.", []), "R.PAGESCOUNT": d("(ReportSheet Specific) Returns the total number of current reports.", []), "R.PROPORTION": d("(ReportSheet Specific) Returns the percentage of the specified cell in its parent node.", [v("value_reference"), v("context_reference1", false, true), v("context_reference2", false, true)]), "R.CUMULATIVE": d("(ReportSheet Specific) Returns the accumulated value of the current cell.", [v("value_reference"), v("context_reference1", false, true), v("context_reference2", false, true)]), "R.MOM": d("(ReportSheet Specific) Returns the ring data of the target cell.", [v("value_reference"), v("context_reference1", false, true), v("context_reference2", false, true)]), "R.YOY": d("(ReportSheet Specific) Returns the year-on-year data of the target cell.", [v("value_reference"), v("context_reference1"), v("context_reference2", false, true)]) }, Fbx_Summary: "Summary", Fbx_TableName_Description: "Table name for ", Fbx_TableSheetName_Description: "TableSheet name for ", Fbx_CustomName_Description: "Custom name for ", d2t: { All: { name: "#All", description: "Returns the entire contents of the table, or specified table columns including column headers, data and total rows." }, Data: { name: "#Data", description: "Returns the data cells of the table or specified table columns." }, Headers: { name: "#Headers", description: "Returns the columns headers for the table, or specified table columns." }, Totals: { name: "#Totals", description: "Returns the total rows for the table or specified table columns." }, thisRow: { name: "#This Row", description: "This row." } } };
          }, "./src/evaluator.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R = this && this.qKr || (L = function(t5, n5) {
              return L = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, L(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              L(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), L;
            function F(t5, n5) {
              var e4, i4, r3, o3, a2, u2;
              if (!n5.TFe) for (e4 = t5.getRangeCount(), i4 = t5.rT || n5.source, r3 = n5.Xkt, o3 = 0; o3 < e4; o3++) (a2 = t5.$gt[o3]).id = i4.id, i4.getRangeKey && (u2 = i4.getRangeKey(i4, a2), r3 && (r3.qkt || (r3.qkt = {}), r3.qkt[u2] = a2));
            }
            function B(t5) {
              return t5 && t5.getRowCount && (t5.getRowCount() > 1 || t5.getColumnCount() > 1);
            }
            function P(t5, n5) {
              return t5 && n5 ? t5.row === n5.row && t5.col === n5.col : t5 === n5;
            }
            function G(t5) {
              return !!t5.arguments[3] && (1 !== t5.arguments[3].value || !!t5.arguments[4] && 1 !== t5.arguments[4].value);
            }
            function U(t5) {
              var n5, e4;
              for (e4 = 0; e4 < t5.R1t.length; e4++) (n5 = t5.R1t[e4]).yL = false, n5.R1t.length > 0 && U(n5);
            }
            function H(t5) {
              var n5, e4 = true, i4 = t5;
              return t5 && t5.getValue && ((n5 = d(t5, 0, false, false)).isError ? i4 = n5[0] : 1 === n5.rowCount && 1 === n5.colCount ? i4 = n5[0][0] : (i4 = n5, e4 = false)), { value: i4, success: e4 };
            }
            function V(t5, n5, e4) {
              var i4 = y, r3 = 1 === t5.rowCount, o3 = 1 === t5.colCount;
              return r3 && o3 ? t5[0][0] : (r3 && e4 < t5.colCount ? i4 = t5[0][e4] : o3 && n5 < t5.rowCount ? i4 = t5[n5][0] : n5 < t5.rowCount && e4 < t5.colCount && (i4 = t5[n5][e4]), i4);
            }
            function z(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2 = t5.source && t5.source.Lbt && t5.source.Lbt.MX;
              if (!c2) return C;
              o3 = t5.localScopes;
              try {
                if (t5.lambdaFunctionCallDepth++, o3.enterScope(), o3.saveThenSwitchClosure(n5.closure), (u2 = n5.parameters).length !== e4.length) return m;
                for (s2 = 0; s2 < u2.length; s2++) t5.localScopes.setVariable(u2[s2].value, e4[s2]);
                a2 = c2.evaluate(n5.calculation, t5, i4, r3);
              } finally {
                t5.lambdaFunctionCallDepth--, o3.exitScope(), o3.restoreClosure();
              }
              return a2;
            }
            function Y(t5, n5, e4, i4) {
              return h(n5) ? n5 : h(e4) ? e4 : (0, r2.isLambdaFunction)(n5) || (0, r2.isLambdaFunction)(e4) ? m : t5 <= 2 ? Q(t5, n5, e4) : t5 <= 14 ? K(t5, n5, e4, i4) : 18 === t5 ? r2.Functions.Mmt.PROPERTY.evaluate(n5, e4) : void 0;
            }
            function Z(t5, n5, e4, i4, r3) {
              var o3 = Y(t5.operatorType, e4, i4, r3);
              return o3 || t5.operatorType <= 14 || 18 === t5.operatorType ? o3 : $(t5, n5, e4, i4);
            }
            function W(t5, n5, e4) {
              e4 = e4 || n5;
              var i4 = t5.row, o3 = t5.column;
              return e4.$9t = true, r2.Functions.findGlobalFunction("@").evaluate({ row: i4, column: o3 }, n5);
            }
            function Q(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2;
              if (0 === t5) return n5;
              if ("" === n5 && 1 === t5) return m;
              if (!n5) return 0;
              if ((i4 = H(n5)).success) return J(t5, i4.value);
              if (e4) {
                for (o3 = [], u2 = (a2 = i4.value).rowCount, s2 = a2.colCount, c2 = 0; c2 < u2; c2++) for (f2 = o3[c2] = [], l2 = 0; l2 < s2; l2++) f2[l2] = J(t5, a2[c2][l2]);
                return new r2.CalcArray(o3);
              }
            }
            function K(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, w2;
              if (o3 = t5 <= 7 ? J : 8 === t5 ? X : q, a2 = H(n5), u2 = H(e4), a2.success && u2.success) return o3(t5, a2.value, u2.value, i4);
              for (n5 = a2.value, e4 = u2.value, s2 = a2.success ? 1 : n5.rowCount, c2 = a2.success ? 1 : n5.colCount, f2 = u2.success ? 1 : e4.rowCount, l2 = u2.success ? 1 : e4.colCount, h2 = Math.max(s2, f2), d2 = Math.max(c2, l2), v2 = [], p2 = 0; p2 < h2; p2++) {
                for (g2 = [], m2 = 0; m2 < d2; m2++) b2 = a2.success ? n5 : V(n5, p2, m2), w2 = u2.success ? e4 : V(e4, p2, m2), b2 === y || w2 === y ? g2.push(y) : g2.push(o3(t5, b2, w2, i4));
                v2.push(g2);
              }
              return new r2.CalcArray(v2);
            }
            function J(t5, n5, e4, o3) {
              var a2, u2, c2, f2;
              function h2(t6) {
                return "string" == typeof t6 && 0 === t6.trim().length;
              }
              if (h2(n5) || h2(e4)) return m;
              if (!l(n5, a2 = { value: 0 })) return n5 instanceof r2.CalcError ? n5 : m;
              if (u2 = a2.value, e4 !== s) {
                if (!l(e4, a2)) return e4 instanceof r2.CalcError ? e4 : m;
                c2 = a2.value;
              } else c2 = 0;
              return 1 === t5 ? -u2 : 2 === t5 ? u2 / 100 : 3 === t5 ? r2.ExcelCompatibleCalcMode && !o3 ? u2 + c2 : i3.Common.st.Jme(u2, c2) : 4 === t5 ? r2.ExcelCompatibleCalcMode && !o3 ? u2 - c2 : i3.Common.st.Jme(u2, -c2) : 5 === t5 ? u2 * c2 : 6 === t5 ? c2 ? u2 / c2 : w : 7 === t5 ? !u2 && c2 < 0 ? w : 0 === u2 && 0 === c2 || (f2 = r2.Functions.MathHelper.N9t(u2, c2)) === Number.POSITIVE_INFINITY || f2 === Number.NEGATIVE_INFINITY || isNaN(f2) ? M : f2 : void 0;
            }
            function X(t5, n5, e4) {
              if (8 === t5) return h(n5) ? n5 : ("number" == typeof n5 && (n5 = i3.Common.st.E8(n5, r2.Functions.CALC_PRECISION || 15)), h(e4) ? e4 : ("number" == typeof e4 && (e4 = i3.Common.st.E8(e4, r2.Functions.CALC_PRECISION || 15)), r2.Convert.j(n5) + r2.Convert.j(e4)));
            }
            function q(t5, n5, e4) {
              var i4 = (0, r2.$kt)(n5, e4, false);
              return h(i4) ? i4 : 9 === t5 && 0 === i4 || 10 === t5 && 0 !== i4 || 11 === t5 && i4 < 0 || 12 === t5 && i4 <= 0 || 13 === t5 && i4 > 0 || 14 === t5 && i4 >= 0;
            }
            function $(t5, n5, e4, i4) {
              var o3, a2, u2, s2, l2, h2, d2, v2, p2, g2, b2, y2, w2, M2, C2 = t5.operatorType;
              if (!e4 || !i4 || (1 !== e4.getRangeCount() || 1 !== i4.getRangeCount()) && 16 !== C2 || e4.endSource || i4.endSource) return m;
              if (!(o3 = e4.getSource()) || o3 !== i4.getSource()) return m;
              if (16 === C2) a2 = e4.$gt.concat(i4.$gt);
              else {
                if (u2 = 15 === C2 ? c : f, s2 = 15 === C2 ? f : c, l2 = e4.getRow(0), h2 = e4.getColumn(0), d2 = i4.getRow(0), v2 = i4.getColumn(0), p2 = u2(l2, d2), g2 = u2(h2, v2), b2 = s2(l2 + e4.getRowCount(0), d2 + i4.getRowCount(0)) - p2, y2 = s2(h2 + e4.getColumnCount(0), v2 + i4.getColumnCount(0)) - g2, b2 < 1 || y2 < 1) return r2.Errors.Null;
                a2 = [(0, r2.createRange)(p2, g2, b2, y2)];
              }
              return w2 = new r2.CalcReference(o3, a2), 15 === C2 && F(w2, n5), (M2 = t5.dHr) && (w2 = r2.Functions.Mmt.TRIMRANGE.evaluate(n5, w2, M2, M2)), w2;
            }
            function tt(t5, n5) {
              var e4, o3, a2, s2 = true;
              switch (n5.J6t) {
                case 0:
                  e4 = j(t5), o3 = true;
                  break;
                case 1:
                  e4 = parseFloat(t5), o3 = true;
                  break;
                case 2:
                  e4 = D(t5), o3 = true;
                  break;
                case 3:
                  e4 = parseInt(t5, 10), o3 = true;
                  break;
                case 4:
                  (e4 = d(t5, n5.X6t, n5.Vkt || false, n5.Ykt || false, n5.M9t || false, n5.Zkt, n5.s9t, n5.C9t)).isError && (e4 = e4[0], s2 = false), e4.isConvertError && (e4 = m, s2 = false);
                  break;
                case 5:
                  e4 = _(t5), n5.kb && "" === e4 && (e4 = m, s2 = false);
                  break;
                case 6:
                  O(t5, a2 = { value: u }) ? (e4 = a2.value, i3.Common.ct.o0(e4) < 0 && (e4 = r2.Errors.Number, s2 = false)) : (e4 = m, s2 = false);
                  break;
                case 7:
                  e4 = E(t5);
                  break;
                case 8:
                  !(e4 = r2.Functions.mkt(t5)) || n5.gkt && 0 === e4.ikt() && 0 === e4.rkt() ? (e4 = r2.Errors.Number, s2 = false) : e4 = { okt: e4.ikt(), akt: e4.rkt() };
                  break;
                default:
                  e4 = t5;
              }
              return o3 && isNaN(e4) && (e4 = m, s2 = false), { D8t: e4, _8t: s2 };
            }
            function nt(t5, n5, e4) {
              var i4, o3, a2, u2, c2;
              for (Array.isArray(n5) || (n5 = [n5]), i4 = t5.D8t, o3 = 0; o3 < n5.length; o3++) if (u2 = (a2 = n5[o3].split(" "))[0], c2 = parseInt(a2[1], 10), "<" === u2 && i4 < c2 || ">" === u2 && i4 > c2 || "<=" === u2 && i4 <= c2 || ">=" === u2 && i4 >= c2 || "=" === u2 && i4 === c2 || "!=" === u2 && i4 !== c2 || "checkLength" === u2 && i4.length > c2) return t5.D8t = e4 === s ? r2.Errors.Number : e4, void (t5._8t = false);
            }
            function et(t5, n5) {
              var e4, i4, o3, a2, u2, c2 = [];
              if (!n5) return { ADt: t5, _8t: true };
              if (n5.n9t) for (o3 = 0; o3 < t5.length; o3++) c2.push(n5);
              else c2 = Array.isArray(n5) ? n5 : [n5];
              for (i4 = 0; i4 < c2.length; i4++) {
                if ((a2 = c2[i4]).K6t && !t5[i4]) throw (0, r2.sR)().Exp_ArgumentNull;
                if (u2 = t5[i4] !== s) {
                  if (e4 = tt(t5[i4], a2), a2.pkt && nt(e4, a2.pkt, a2.zkt), !e4._8t) break;
                  t5[i4] = a2.ykt ? { ekt: u2, y4: e4.D8t } : e4.D8t;
                } else t5[i4] = a2.ykt ? { ekt: u2, y4: a2.bkt } : a2.bkt;
              }
              return e4 ? { ADt: t5, _8t: e4._8t, Y6: e4.D8t } : void 0;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.evaluateOperator = n4.Hkr = n4.AsyncFunctionNode = n4.Evaluator = n4.GloableEvaluateContext = n4.AsyncEvaluateContext = n4.EvaluateContext = void 0, i3 = e3("Common"), r2 = e3("./src/calc.common.ts"), o2 = e3("./src/calc.ts"), a = i3.Common.lt.ht, u = null, s = void 0, c = Math.min, f = Math.max, l = r2.Convert.sJ, h = r2.Convert.BJ, d = r2.Convert.iV, v = r2.Convert.Nh, p = r2.Convert.LE, g = r2.Errors.Reference, m = r2.Errors.Value, b = r2.Errors.Name, y = r2.Errors.NotAvailable, w = r2.Errors.DivideByZero, M = r2.Errors.Number, C = r2.Errors.Calc, S = "LAMBDA", T = (function() {
              function t5(t6, n5, e4, i4, o3, a2) {
                this.M8t = 0, this.C8t = 0, this.S8t = 0, this.localScopes = new r2.LocalScopes(), this.lambdaFunctionCallDepth = 0;
                var u2 = this;
                u2.source = t6, u2.arrayFormulaMode = !!e4, u2._ke = !(!t6 || !t6.j5e), u2.identity = n5 || u2.T8t(0, 0), u2.arrayIdentity = i4, u2.row = i4 ? i4.row : u2.identity.row || 0, u2.column = i4 ? i4.col : u2.identity.col || 0, u2.rowOffset = i4 ? u2.identity.row - i4.row : u2.row, u2.columnOffset = i4 ? u2.identity.col - i4.col : u2.column, u2.WK = o3, u2.Xkt = a2;
              }
              return t5.prototype.T8t = function(t6, n5) {
                return { row: t6, col: n5 };
              }, t5.prototype.E8t = function(t6) {
                return t6;
              }, t5.prototype.getValue = function(t6, n5) {
                return t6 ? this.E8t(t6).getValue(n5) : g;
              }, t5.prototype.getReference = function(t6, n5) {
                return t6 ? this.E8t(t6).getReference(n5) : g;
              }, t5.prototype.getSheetRangeReference = function(t6) {
                return !t6 || !t6.source || !t6.endSource || t6.source instanceof r2.ErrorSource ? g : this.E8t(t6.source).getSheetRangeReference(t6);
              }, t5.prototype.getFunction = function(t6) {
                var n5 = this;
                return n5.source ? n5.source.getCustomFunction(t6) : u;
              }, t5.prototype.getName = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = u;
                return n5 ? a2 = n5.getCustomName(t6) : o3.source && !e4 && (a2 = o3.source.getCustomName(t6)), !a2 && o3.source && (a2 = (r3 = (i4 = o3.source.op()) && i4.getGlobalSourceModel()) && r3.getSource().getCustomName(t6)), a2;
              }, t5.prototype.getNameInfo = function(t6) {
                return (0, r2.W9t)(this.source, t6);
              }, t5.prototype.getField = function(t6) {
                var n5 = this;
                return n5.source ? n5.source.getField(t6) : u;
              }, t5.prototype.getFieldItem = function(t6) {
                var n5 = this;
                return n5.source ? n5.source.getFieldItem(t6) : u;
              }, t5.prototype.j8t = function() {
                return this.S8t > 0;
              }, t5.prototype.O8t = function() {
                this.S8t++;
              }, t5.prototype.R8t = function() {
                this.S8t--;
              }, t5.prototype.SetAsyncResult = function(t6, n5) {
                this.source.op().MX.SetAsyncResult(t6, n5);
              }, t5.prototype.cloneFrom = function(t6) {
                var n5 = this;
                n5.acceptsReference = t6.acceptsReference, n5.arrayFormulaMode = t6.arrayFormulaMode;
              }, t5;
            })(), n4.EvaluateContext = T, r2.CalcSource.prototype.getEvaluatorContext = function(t5, n5, e4, i4, r3) {
              return new T(this, t5, n5, e4, i4, r3);
            }, x = (function() {
              function t5(t6, n5) {
                this.id = t6.M8t, t6.M8t++, this.ctx = t6, this.row = t6.row + (t6.arrayFormulaMode && t6.rowOffset || 0), this.col = t6.column + (t6.arrayFormulaMode && t6.columnOffset || 0), this.node = n5;
              }
              return t5.prototype.setAsyncResult = function(t6) {
                var n5, e4;
                this.node.Y6 = t6, this.node.yL = true, this.ctx.SetAsyncResult(this, t6), (e4 = this.ctx.source).B8t || (null === (n5 = e4.Lbt) || void 0 === n5 ? void 0 : n5.incrementalCalculation) || (e4.B8t = true, setTimeout((function() {
                  e4.refresh(), delete e4.B8t;
                }), 200));
              }, t5.prototype.getFormula = function() {
                return this.ctx.source.getCalcService().unparse(this.ctx.source, this.expression, this.row, this.col);
              }, t5.prototype.L8t = function() {
                var t6, n5 = this.node && this.node.parent, e4 = n5 && n5.R1t || [];
                for (t6 = 0; t6 < e4.length; t6++) if (!e4[t6].yL) return false;
                return true;
              }, t5.prototype.wke = function() {
                var t6 = this.node && this.node.parent;
                t6 && t6.yke && (t6.yL = true);
              }, t5;
            })(), n4.AsyncEvaluateContext = x, A = (function(t5) {
              function n5(n6, e4, i4, r3, o3, a2, s2, c2) {
                var f2 = t5.call(this, n6, isNaN(c2) ? u : { row: s2, col: c2 }, e4, isNaN(a2) ? u : { row: i4, col: r3, rowCount: o3, colCount: a2 }) || this, l2 = n6.op().getGlobalSourceModel(n6);
                return f2.A8t = l2 && l2.getSource(), f2;
              }
              return R(n5, t5), n5.prototype.getName = function(t6) {
                var n6 = this;
                return n6.A8t ? n6.A8t.getCustomName(t6) : u;
              }, n5;
            })(T), n4.GloableEvaluateContext = A, I = (function() {
              function t5(t6) {
                this.service = t6, this.asyncManager = new N(this);
              }
              return t5.prototype.evaluateExpression = function(t6, n5, e4, o3, a2, c2) {
                var f2, l2, h2 = void 0 === t6.type && t6.WK ? t6.WK : t6, d2 = this.evaluate(h2, n5, !!o3, !!a2);
                return d2 && d2.pause ? d2 : (0, r2.isFunction)(d2) ? C : d2 === s || d2 === u ? false === e4 ? d2 : 0 : ((v(d2) && !o3 || p(d2) && !a2) && (d2 = this.getOneValue(n5, d2)), r2.ExcelCompatibleCalcMode || c2 ? d2 : (f2 = 15, "number" == typeof d2 && d2 > -10 && d2 < 10 && ((l2 = d2.toString()).indexOf("000000000000") > 1 || l2.indexOf("999999999999") > 1) && (f2 = 14), i3.Common.st.E8(d2, r2.Functions.CALC_PRECISION || f2)));
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                var o3, a2, c2, f2;
                if (!t6) throw (0, r2.sR)().Exp_ExprIsNull;
                if (void 0 === t6.type) {
                  if (t6._error) return t6;
                  t6.WK && (t6 = t6.WK);
                }
                for (; 10 === t6.type; ) t6 = t6.value;
                if (o3 = this, c2 = u, 12 === t6.type ? (c2 = t6.needExpendIndexs, t6 = t6.value) : n5.k_t && (e4 = true, c2 = []), (f2 = t6.type) >= 2 && f2 <= 6) a2 = o3.evaluateConst(t6, n5, e4);
                else if (1 === f2 || 13 === f2 || 22 === f2) a2 = o3.evaluateReference(t6, n5, i4, e4);
                else if (8 === f2) a2 = o3.evaluateName(t6, n5, e4, i4);
                else if (100 === f2) a2 = o3.evaluateLocalName(t6, n5, e4, i4);
                else if (9 !== f2 || t6.value2) {
                  if (9 === f2) a2 = o3.evaluateBinaryOperation(t6, n5, e4, i4, c2);
                  else if (7 === f2) {
                    if (t6.u8t && n5.N_t && (a2 = o3.evaluateBranchFunction(t6, n5, e4, i4, c2)) && a2.pause) return a2;
                    a2 = o3.evaluateFunction(t6, n5, e4, i4, c2);
                  } else if (11 === f2) a2 = s;
                  else if (14 === f2) a2 = o3.evaluateField(t6, n5);
                  else if (15 === f2) a2 = o3.evaluateFieldItem(t6, n5);
                  else if (n5.evaluate) return n5.evaluate(t6, e4, i4);
                } else a2 = o3.evaluateUnaryOperation(t6, n5, e4, i4, c2);
                return a2;
              }, t5.prototype.evaluateConst = function(t6, n5, e4) {
                var i4 = t6.value;
                return v(i4) ? e4 || n5 && (n5.arrayFormulaMode || n5.j8t()) ? i4 : i4.getValue(0, 0) : i4;
              }, t5.prototype.evaluateReference = function(t6, n5, e4, i4) {
                var o3, a2, u2, c2, f2, l2, h2, d2, v2, p2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2;
                if (!n5) return m;
                if (a2 = t6.dHr) return t6.dHr = s, (null === (o3 = null == (u2 = this.evaluateReference(t6, n5, e4, i4)) ? void 0 : u2.references) || void 0 === o3 ? void 0 : o3.length) > 1 || (u2 = r2.Functions.Mmt.TRIMRANGE.evaluate(n5, u2, a2, a2), t6.dHr = a2), u2;
                if (c2 = t6.source || n5.source, f2 = isNaN(n5.row) ? 0 : n5.row, l2 = isNaN(n5.column) ? 0 : n5.column, h2 = t6.getRange && t6.getRange(f2, l2), d2 = t6.type, !h2) return v2 = t6, 13 === d2 && 8 !== v2.hbt && 2 !== v2.hbt ? m : g;
                if (t6.wsr && (i4 = e4 = false), p2 = h2.row < 0 ? 0 : h2.row, b2 = h2.col < 0 ? 0 : h2.col, y2 = h2.rowCount, w2 = h2.colCount, c2.evaluateReference) return c2.evaluateReference(t6, n5, e4);
                if (h2.row < 0 && (h2.rowUndefine = true), h2.col < 0 && (h2.colUndefine = true), i4 && (M2 = c2.getRowCount(), C2 = c2.getColumnCount(), (-1 === y2 || y2 > M2) && (y2 = M2), (-1 === w2 || w2 > C2) && (w2 = C2)), e4 || n5.arrayFormulaMode) return t6.endSource ? n5.getSheetRangeReference({ source: t6.source, endSource: t6.endSource, row: p2, col: b2, rowCount: y2, colCount: w2 }) : n5.getReference(c2, h2);
                if (i4 && (y2 > 1 || w2 > 1)) {
                  for (S2 = [], T2 = 0; T2 < y2; T2++) for (S2[T2] = [], x2 = 0; x2 < w2; x2++) S2[T2][x2] = c2.getValue(T2 + p2, x2 + b2);
                  return new r2.CalcArray(S2);
                }
                if ((y2 > 1 || w2 > 1 || -1 === y2 || -1 === w2) && n5.WK && n5.WK.ensureSingle && !t6.wsr && (t6.$9t = true), y2 > 1 || w2 > 1) if (A2 = f2 >= h2.row && f2 < h2.row + y2, I2 = l2 >= h2.col && l2 < h2.col + w2, A2 && I2) p2 = f2, b2 = l2;
                else {
                  if (!A2 && !I2) return m;
                  if (A2 && 1 === w2) p2 = f2;
                  else {
                    if (!I2 || 1 !== y2) return m;
                    b2 = l2;
                  }
                }
                else if (-1 === h2.row && -1 === y2) {
                  if (1 !== w2) return m;
                  p2 = f2;
                } else if (-1 === h2.col && -1 === w2) {
                  if (1 !== y2) return m;
                  b2 = l2;
                }
                return c2.getValue(p2, b2);
              }, t5.prototype.evaluateName = function(t6, n5, e4, i4) {
                var a2, u2, s2, c2, f2, l2;
                if (!n5) return b;
                if (c2 = t6.value, t6.bwr && (c2 = r2.XLETAPrefix + c2), t6.source && (n5 = (a2 = t6.source).getEvaluatorContext(n5.identity, n5.arrayFormulaMode, n5.arrayIdentity)) instanceof T && (u2 = a2.getCustomName(c2), s2 = true), s2 || (u2 = n5.getName(c2, null, t6.Swr)), !u2 && !s2) {
                  if (f2 = n5.getFunction(t6.value) || r2.Functions.findGlobalFunction(t6.value)) return t6.bwr = 1, f2;
                  t6.bwr && (t6.bwr = 2);
                }
                return u2 ? (l2 = (0, o2.h0t)(n5, u2, false, 0, 0, e4, i4), this.evaluate(l2, n5, e4, i4)) : b;
              }, t5.prototype.evaluateLocalName = function(t6, n5, e4, i4) {
                var o3, a2, u2, s2, c2, f2;
                if (!t6.value || !n5 || !n5.localScopes.hasVariable(t6.value)) return b;
                if (o3 = n5.localScopes.getVariable(t6.value), (a2 = n5.source && n5.source.Lbt && n5.source.Lbt.allowDynamicArray) || (e4 = t6.vDt, i4 = t6.mDt), n5.arrayFormulaMode && n5.j8t()) return o3;
                if (v(o3) && !e4) return this.getOneValue(n5, o3);
                if (p(o3) && !i4) {
                  if (u2 = o3, e4 && 1 === u2.getRangeCount()) {
                    for (s2 = [], c2 = 0; c2 < u2.getRowCount(0); c2++) for (s2[c2] = [], f2 = 0; f2 < u2.getColumnCount(0); f2++) s2[c2][f2] = u2.getValue(0, c2, f2);
                    return new r2.CalcArray(s2);
                  }
                  return this.getOneValue(n5, o3);
                }
                return o3;
              }, t5.prototype.evaluateUnaryOperation = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2 = false;
                return o3 && o3.length > 0 && (e4 = true, s2 = true), (a2 = n5.k_t) && (e4 = true), (u2 = this.evaluate(t6.value, n5, e4, s2)) && u2.pause || r2.Convert.BJ(u2) ? u2 : u2 === r2.missingArgument ? y : this.evaluateWithArgs(t6, (function(i5) {
                  var r3 = i5[0];
                  return r3 && r3.getRowCount && e4 && n5.WK && (n5.WK.ensureSingle && !e4 ? r3 = W(n5, r3) : n5.WK.t8t = true), Z(t6, n5, r3, e4);
                }), n5, o3, [u2], e4, i4);
              }, t5.prototype.evaluateBinaryOperation = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = n5.k_t;
                if (p2 && (e4 = true), a2 = [e4, e4], s2 = [u2 = (0, r2.gDt)(t6.operatorType), u2], o3 && o3.length > 0) for (c2 = 0; c2 < o3.length; c2++) a2[o3[c2]] = true, s2[o3[c2]] = true;
                for (f2 = t6 === n5.WK, l2 = [t6.value, t6.value2], h2 = [], c2 = 0; c2 < 2; c2++) {
                  if ((d2 = this.evaluate(l2[c2], n5, a2[c2], s2[c2])) && d2.pause) return d2;
                  if (v2 = d2, r2.Convert.BJ(v2)) return v2;
                  if (v2 === r2.missingArgument && l2[c2].value && !l2[c2].value.table) return y;
                  h2[c2] = v2;
                }
                return this.evaluateWithArgs(t6, (function(i5) {
                  var o4 = i5[0], a3 = i5[1];
                  return t6.operatorType <= 14 && n5.WK && (B(o4) || B(a3)) && (n5.WK && n5.WK.ensureSingle && !e4 ? (o4 = W(n5, o4, l2[0]), a3 = W(n5, a3, l2[1])) : n5.WK.t8t = true), o4 && o4 instanceof r2.TwoDimensionalCalcArray && (o4 = o4.getCalculatedValue(t6.operatorType)), a3 && a3 instanceof r2.TwoDimensionalCalcArray && (a3 = a3.getCalculatedValue(t6.operatorType)), Z(t6, n5, o4, a3, f2);
                }), n5, o3, h2, e4, i4);
              }, t5.prototype.evaluateField = function(t6, n5) {
                var e4, i4;
                return n5 ? (t6.source && (n5 = (e4 = t6.source).getEvaluatorContext(n5.identity, n5.arrayFormulaMode, n5.arrayIdentity)), i4 = n5.getField(t6.value), a(i4) && t6.value && !t6.value.table ? y : i4) : b;
              }, t5.prototype.evaluateFieldItem = function(t6, n5) {
                var e4, i4;
                return n5 ? (t6.source && (n5 = (e4 = t6.source).getEvaluatorContext(n5.identity, n5.arrayFormulaMode, n5.arrayIdentity)), i4 = n5.getFieldItem(t6.value), a(i4) ? y : i4) : b;
              }, t5.prototype.startCache = function(t6) {
                this.F8t = {}, !t6 && this.service.Z_t && this.asyncManager.startCalc();
              }, t5.prototype.endCache = function() {
                this.F8t = u;
              }, t5.prototype.evaluateBranchFunction = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2 = n5.Xkt && n5.Xkt.getKey();
                if (!(t6.P8t && n5.Xkt && t6.P8t[d2] && t6.P8t[d2].WDt) && (0, r2.isFunction)(t6.function) && t6.s8t[d2]) {
                  if (a2 = t6.function, u2 = t6.arguments.length, s2 = a2.findTestArgument(), f2 = (c2 = this.preprocessFunction(n5, a2, u2, o3, e4, i4, t6)).acceptsArrays, l2 = c2.keepArrayValuesFlagSet, (h2 = this.testArgGetBranch(n5, a2, t6, f2[s2], false, s2)) && h2.pause) return h2;
                  if (l2 && delete n5.k_t, h2.branchArgument >= 0 && "number" == typeof h2.branchArgument) return t6.P8t = t6.P8t || {}, t6.P8t[d2] = n5.source.getCalcService().ZDt, { pause: "Branch", branch: t6.s8t[d2][h2.branchArgument] };
                  h2.testArgValue._error || delete t6.u8t;
                }
              }, t5.prototype.evaluateLetFunction = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2 = t6.arguments.length, l2 = this;
                for (n5.localScopes.enterScope(), this.service.Z_t && this.asyncManager.startCalcFunction(t6.function, t6, n5), o3 = 1; o3 < f2 - 1; o3 += 2) {
                  if (a2 = t6.arguments[o3 - 1], u2 = t6.arguments[o3], s2 = a2.value, (r3 = l2.evaluate(u2, n5, e4, i4)) && r3.pause) return r3;
                  n5.localScopes.setVariable(s2, r3);
                }
                return this.service.Z_t && this.asyncManager.endCalcFunction(), (c2 = l2.evaluate(t6.arguments[f2 - 1], n5, e4, i4)) && c2.pause || n5.localScopes.exitScope(), c2;
              }, t5.prototype.evaluateLambdaFunction = function(t6, n5, e4, i4) {
                return n5.source && n5.source.Lbt && n5.source.Lbt.allowDynamicArray && n5.WK && (n5.WK.t8t = true), new r2.Functions.LambdaFunction(t6, n5.localScopes.createClosure());
              }, t5.prototype.evaluateISOMITTEDFunction = function(t6, n5, e4, i4) {
                var r3 = t6.arguments[0];
                return r3 && 100 === r3.type && null === n5.localScopes.getVariable(r3.value);
              }, t5.prototype.preprocessFunction = function(t6, n5, e4, i4, o3, a2, s2) {
                var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = [], w2 = [], M2 = t6.k_t, C2 = false, S2 = u;
                for (!M2 && (1 === n5.arrayArgumentEvaluateMode || 5 === n5.arrayArgumentEvaluateMode && t6.arrayFormulaMode || 4 === n5.arrayArgumentEvaluateMode && o3) && (M2 = t6.k_t = true, C2 = true), f2 = n5.findTestArgument(), l2 = false, h2 = false, d2 = 0; d2 < e4; d2++) y2[d2] = n5.acceptsArray(d2), w2[d2] = n5.acceptsReference(d2), n5.isBranch() && t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray && t6.WK && t6.WK.ensureSingle && !o3 && !a2 && (v2 = s2.arguments[d2], d2 === f2 ? (y2[d2] = false, w2[d2] = false, v2 && v2.type === r2.ExpressionType.array && (s2.$9t = true, l2 = true)) : v2 && (p2 = v2.type === r2.ExpressionType.function && (null === (c2 = v2.function) || void 0 === c2 ? void 0 : c2.name), v2.type === r2.ExpressionType.array || v2.type === r2.ExpressionType.reference && !v2.hmt() || "OFFSET" === p2 && G(v2) || "INDIRECT" === p2 || 16 === v2.operatorType || 17 === v2.operatorType || 15 === v2.operatorType ? (v2.type !== r2.ExpressionType.array && (h2 = true), s2.$9t = true, y2[d2] = true, w2[d2] = true) : (y2[d2] = false, w2[d2] = false)));
                if (l2 && h2 && (s2.arguments[f2].$9t = true), i4 && i4.length > 0 || M2) {
                  for (S2 = [], d2 = 0; d2 < e4; d2++) S2[d2] = true;
                  for (g2 = M2 ? e4 : i4.length, d2 = 0; d2 < g2; d2++) y2[m2 = M2 ? d2 : i4[d2]] = true, w2[m2] = true, (b2 = !(n5.acceptsReference(m2) && !n5.acceptsArray(m2))) && M2 && n5.acceptsReference(m2) && (b2 = false), S2[m2] = b2;
                }
                return n5.isBranch() && (t6.arrayFormulaMode || t6.j8t() && !(t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray)) && (y2[n5.findTestArgument()] = true, w2[n5.findTestArgument()] = true), { acceptsArrays: y2, acceptsReferences: w2, getReferenceValues: S2, keepArrayValuesFlagSet: C2 };
              }, t5.prototype.testArgGetBranch = function(t6, n5, e4, i4, o3, a2) {
                var u2, s2, c2, f2 = -1, l2 = t6.k_t;
                return t6.arrayFormulaMode && (t6.k_t = true), n5.acceptsArray(a2) && t6.O8t(), s2 = this.evaluate(e4.arguments[a2], t6, i4, o3), (null === (u2 = null == t6 ? void 0 : t6.source) || void 0 === u2 ? void 0 : u2.updateBranchPrecedents) && t6.source.updateBranchPrecedents(e4, t6, o3), s2 && s2.pause ? s2 : (n5.acceptsArray(a2) && t6.R8t(), (p(s2) || v(s2)) && 1 === (c2 = r2.Convert.iV(s2, 0, true)).length && (s2 = c2[0]), t6.k_t = l2, p(s2) || v(s2) || (f2 = n5.findBranchArgument(s2)), { testArgValue: s2, branchArgument: f2 });
              }, t5.prototype.evaluateFunction = function(t6, n5, e4, i4, o3) {
                var a2;
                try {
                  a2 = !t6.function || (0, r2.isExpression)(t6.function) ? this.evaluateLambdaFunctionCall(t6, n5, e4, i4, o3) : this.evaluateBuildInFunction(t6, n5, e4, i4, o3);
                } catch (t7) {
                  if ((0, r2.isStackOverflowError)(t7)) {
                    if (n5.lambdaFunctionCallDepth >= 2) throw t7;
                    a2 = M;
                  } else a2 = m;
                }
                return a2;
              }, t5.prototype.evaluateBuildInFunction = function(t6, n5, e4, i4, o3) {
                if (!t6 || !t6.function || !(0, r2.isFunction)(t6.function)) return b;
                var a2 = t6.function, u2 = t6.functionName, s2 = this, c2 = n5.C8t;
                return "LET" === u2 ? s2.evaluateLetFunction(t6, n5, e4, i4) : u2 === S ? s2.evaluateLambdaFunction(t6, n5, e4, i4) : "ISOMITTED" === u2 ? s2.evaluateISOMITTEDFunction(t6, n5, e4, i4) : s2.evaluateFunctionCore(t6, (function(t7, e5, o4) {
                  var u3, f2, l2, h2, d2, v2 = et(t7, a2.R9t);
                  return t7 = v2.ADt, v2._8t ? a2.isContextSensitive() ? (n5.acceptsReference = i4 || n5.j8t(), a2 instanceof r2.Functions.AsyncFunction ? (s2.G8t = s2.G8t || {}, a2.evaluateWhenArgumentsIsSame() ? s2.evaluateAsyncFunction(n5, e5, a2, c2, t7, o4) : s2.evaluateWithCache(a2, t7, (function() {
                    return s2.evaluateAsyncFunction(n5, e5, a2, c2, t7, o4);
                  }), s2.G8t)) : (n5.Hhe = e5, a2.evaluateWithContext(n5, t7))) : ((f2 = n5.arrayFormulaMode) && (a2.k9t = { row: n5.rowOffset, col: n5.columnOffset }), l2 = (0, r2.getMapping)() && (0, r2.getMapping)().builtInFunctionsMapping, h2 = l2 && l2[a2.name] && l2[a2.name].specialFun, d2 = function() {
                    return h2 && h2.apply(a2, t7) || a2.evaluate.apply(a2, t7);
                  }, u3 = f2 && !n5._ke ? s2.evaluateWithCache(a2, t7, d2, s2.F8t) : d2(), delete a2.k9t, u3) : v2.Y6;
                }), n5, e4, i4, o3);
              }, t5.prototype.tryGetLambdaFunction = function(t6, n5, e4, i4) {
                var o3, a2;
                if ((0, r2.isExpression)(t6.function)) o3 = this.evaluate(t6.function, n5, e4, i4);
                else if (t6.isLocalFunctionName ? o3 = n5.localScopes.getVariable(t6.functionName) : (a2 = n5.getName(t6.functionName, t6.source)) && (o3 = this.evaluate(a2, n5, e4, i4)), !o3) return b;
                return o3 && o3.pause || h(o3) || (0, r2.isFunction)(o3) ? o3 : m;
              }, t5.prototype.evaluateLambdaFunctionCall = function(t6, n5, e4, i4, o3) {
                var a2, u2, s2 = this, c2 = this.tryGetLambdaFunction(t6, n5, e4, i4);
                if (c2 && c2.pause) return c2;
                if (h(c2)) return c2;
                if (a2 = c2, (u2 = (0, r2.YJ)(c2, t6.arguments)).WK = t6, !c2.calculation) {
                  try {
                    c2.aDt(c2.minArgs, c2.maxArgs, t6.arguments.length, t6.arguments);
                  } catch (t7) {
                    return m;
                  }
                  return this.evaluateBuildInFunction(u2, n5, e4, i4, o3);
                }
                return this.evaluateFunctionCore(u2, (function(t7) {
                  var r3, o4, u3, c3, f2, l2 = n5.localScopes;
                  try {
                    if (n5.lambdaFunctionCallDepth++, l2.enterScope(), l2.saveThenSwitchClosure(a2.closure), (o4 = t7.length) < a2.minArgs || o4 > a2.maxArgs) return m;
                    for (u3 = a2.parameters, c3 = 0; c3 < u3.length; c3++) f2 = c3 < o4 ? t7[c3] : null, n5.localScopes.setVariable(u3[c3].value, f2);
                    r3 = s2.evaluate(a2.calculation, n5, e4, i4);
                  } finally {
                    n5.lambdaFunctionCallDepth--, l2.exitScope(), l2.restoreClosure();
                  }
                  return r3;
                }), n5, e4, i4, o3);
              }, t5.prototype.evaluateFunctionCore = function(t6, n5, e4, i4, o3, a2) {
                var s2, c2, f2, l2, h2, d2, g2, m2, y2, w2, M2, C2, T2, x2, A2, I2, k2, N2, j2, D2, _2;
                if (!t6 || !t6.function || !(0, r2.isFunction)(t6.function)) return b;
                if (s2 = t6.arguments.length, c2 = this, f2 = t6.function, l2 = [], d2 = u, f2 instanceof r2.Functions.AsyncFunction && this.asyncManager.startCalcFunction(f2, t6, e4), 0 !== s2) {
                  if (f2.name === S && this.service.Z_t && this.asyncManager.startCalcFunction(f2, t6.WK, e4), y2 = (m2 = c2.preprocessFunction(e4, f2, s2, a2, i4, o3, t6)).acceptsArrays, w2 = m2.acceptsReferences, d2 = m2.getReferenceValues, g2 = m2.keepArrayValuesFlagSet, M2 = void 0, C2 = void 0, T2 = void 0, f2.isBranch()) {
                    if (C2 = f2.findTestArgument(), (x2 = c2.testArgGetBranch(e4, f2, t6, y2[C2], w2[C2], C2)) && x2.pause) return x2;
                    M2 = x2.testArgValue, T2 = x2.branchArgument;
                  }
                  for (t6.ywr && (s2 = 0, l2 = t6.arguments), A2 = 0; A2 < s2; A2++) {
                    if (C2 === A2) h2 = M2;
                    else {
                      if (T2 >= 0 && A2 !== T2) {
                        l2[A2] = null;
                        continue;
                      }
                      if (f2.acceptsArray(A2) && e4.O8t(), I2 = e4.TFe, f2.skipPrecedent(A2) ? e4.TFe = true : e4.TFe = false, h2 = f2.acceptsExpressionArgument(A2) ? t6.arguments[A2] : c2.evaluate(t6.arguments[A2], e4, y2[A2], w2[A2]), e4.TFe = I2, h2 && h2.pause) return h2;
                      f2.acceptsArray(A2) && e4.R8t();
                    }
                    if (!f2.acceptsArray(A2) && v(h2) || !f2.acceptsReference(A2) && p(h2)) if (k2 = v(h2) ? h2 : u, N2 = p(h2) ? h2 : u, k2 && 1 === k2.getRowCount() && 1 === k2.getColumnCount()) h2 = k2.getValue(0, 0);
                    else if (N2 && 1 === N2.getRowCount(0) && 1 === N2.getColumnCount(0)) h2 = N2.getValue(0, 0, 0);
                    else {
                      if (j2 = [], D2 = false, a2) for (_2 = 0; _2 < a2.length; _2++) j2.push(a2[_2]), a2[_2] === A2 && (D2 = true);
                      D2 || (j2.push(A2), a2 = j2), !f2.acceptsReference(A2) && h2.referenceInTwoDimension && h2._Dt();
                    }
                    if (r2.Convert.BJ(h2) && !f2.acceptsError(A2)) return f2 instanceof r2.Functions.AsyncFunction && this.asyncManager.endCalcFunction(), h2;
                    h2 !== r2.missingArgument || f2.acceptsMissingArgument(A2) || (h2 = u), l2[A2] = h2;
                  }
                  f2.name === S && this.service.Z_t && this.asyncManager.endCalcFunction();
                }
                return g2 && delete e4.k_t, c2.evaluateWithArgs(t6, n5, e4, a2, l2, i4, o3, d2);
              }, t5.prototype.evaluateAsyncFunction = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, c2 = this.asyncManager.getNode();
                if (c2.yL && ("QUERY" !== e4.name || t6.Xkt)) a2 = c2.Y6;
                else if (c2.canEvaluate()) {
                  if (u2 = new x(t6, c2), a2 = e4.evaluateWithContext(u2, r3), u2.notAsync) return a2;
                  a2 === s ? a2 = c2.Y6 !== s ? c2.Y6 : e4.defaultValue() : 1 === c2.evaluateMode && (c2.yL = true);
                } else a2 = c2.Y6 !== s ? c2.Y6 : e4.defaultValue();
                return c2.Y6 = a2, o3 || this.asyncManager.endCalcFunction(), a2;
              }, t5.prototype.evaluateWithCache = function(t6, n5, e4, i4) {
                var o3, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
                if (i4) if (a2 = false, o3 = i4[t6.name + n5.length]) for (u2 = 0; u2 < o3.length; u2++) {
                  if (a2 = false, (c2 = o3[u2]).args.length === n5.length) {
                    for (a2 = true, f2 = 0; f2 < n5.length; f2++) if ((l2 = c2.args[f2]) !== (h2 = n5[f2])) {
                      if (!(l2 instanceof r2.CalcReference && h2 instanceof r2.CalcReference)) {
                        a2 = false;
                        break;
                      }
                      if (d2 = l2.SDt, l2.rT !== h2.rT || d2 !== h2.SDt) {
                        a2 = false;
                        break;
                      }
                      for (v2 = 0; v2 < d2; v2++) if (l2.getRow(v2) !== h2.getRow(v2) || l2.getColumn(v2) !== h2.getColumn(v2) || l2.getRowCount(v2) !== h2.getRowCount(v2) || l2.getColumnCount(v2) !== h2.getColumnCount(v2)) {
                        a2 = false;
                        break;
                      }
                    }
                    a2 && !P(c2.k9t, t6.k9t) && (a2 = false);
                  }
                  if (a2) return c2.flag++, c2.value;
                }
                else o3 = i4[t6.name + n5.length] = [];
                if (p2 = e4(), i4 && p2 !== s) {
                  if ((g2 = o3.length) >= 100) {
                    for (m2 = [], u2 = 0; u2 < g2; u2++) o3[u2].flag > 0 && m2.push(o3[u2]);
                    m2.sort((function(t7, n6) {
                      return n6.flag - t7.flag;
                    })), g2 = Math.min(50, m2.length), o3 = m2.slice(0, g2), i4[t6.name + n5.length] = o3;
                  }
                  o3.push({ args: n5, value: p2, flag: 0, k9t: t6.k9t });
                }
                return p2;
              }, t5.prototype.SetAsyncResult = function(t6) {
                if (t6.L8t()) {
                  t6.wke();
                  var n5 = t6.ctx;
                  n5.identity && n5.identity.Tbt ? this.service.Abt(n5.source, n5.WK, n5.identity, n5.S_t, n5) : n5.source.op().recalculate(n5.source, t6.row, t6.col, true);
                }
              }, t5.prototype.evaluateWithArgs = function(t6, n5, e4, i4, o3, a2, u2, s2) {
                var c2, f2, l2, h2, d2, g2, b2, w2, M2, C2, S2, T2, x2, A2, I2 = e4.k_t;
                if (!I2 || i4 && i4.length > 0 || (i4 = [], (c2 = 7 === t6.type && t6.function) && o3.forEach((function(t7, n6) {
                  (!c2.acceptsArray(n6) && v(t7) || !c2.acceptsReference(n6) && p(t7)) && i4.push(n6);
                }))), i4 && i4.length > 0) {
                  if (!(l2 = this.U8t(e4, t6, o3, i4, s2))) return y;
                  for (h2 = [], d2 = l2[0].length, g2 = l2[0][0].length, b2 = 0; b2 < d2; b2++) for (h2[b2] = [], w2 = 0; w2 < g2; w2++) try {
                    for (M2 = [], C2 = 0; C2 < o3.length; C2++) M2[C2] = l2[C2][b2][w2];
                    if (f2 = n5(M2, t6, b2 + 1 !== d2 || w2 + 1 !== g2), p(f2) && !I2) {
                      if (7 === t6.type && (c2 = t6.function).returnReference && c2.returnReference()) return f2;
                      f2 = this.getOneValue(e4, f2);
                    }
                    h2[b2][w2] = f2, e4.WK && (e4.WK.t8t = true);
                  } catch (t7) {
                    if ((0, r2.isStackOverflowError)(t7)) throw t7;
                    h2[b2][w2] = m;
                  }
                  return new r2.CalcArray(h2, I2);
                }
                try {
                  if (f2 = n5(o3, t6), (e4.arrayFormulaMode || e4.source && e4.source.Lbt && e4.source.Lbt.allowDynamicArray) && e4.j8t()) return f2;
                  if (v(f2) && !a2) return this.getOneValue(e4, f2);
                  if (p(f2) && !u2) {
                    if (S2 = f2, a2 && 1 === S2.getRangeCount()) {
                      for (T2 = [], x2 = 0; x2 < S2.getRowCount(0); x2++) for (T2[x2] = [], A2 = 0; A2 < S2.getColumnCount(0); A2++) T2[x2][A2] = S2.getValue(0, x2, A2);
                      return new r2.CalcArray(T2);
                    }
                    return !a2 && e4.WK && e4.WK.ensureSingle && (f2.getColumnCount() > 1 || f2.getRowCount() > 1) && (t6.$9t = true), this.getOneValue(e4, f2);
                  }
                  return f2;
                } catch (t7) {
                  if ((0, r2.isStackOverflowError)(t7)) throw t7;
                  return m;
                }
              }, t5.prototype.getOneValue = function(t6, n5) {
                var e4, i4, o3, a2, u2, s2;
                return p(n5) ? (a2 = (o3 = n5).getRowCount(0), u2 = o3.getColumnCount(0), o3.getRangeCount() > 1 || !t6.arrayFormulaMode && a2 > 1 && u2 > 1 ? n5 = m : (-1 !== t6.rowOffset || -1 !== t6.columnOffset ? (e4 = 1 === a2 ? 0 : t6.arrayFormulaMode ? t6.rowOffset : t6.rowOffset - o3.getRow(0), i4 = 1 === u2 ? 0 : t6.arrayFormulaMode ? t6.columnOffset : t6.columnOffset - o3.getColumn(0)) : (e4 = 1 === a2 ? 0 : t6.row - o3.getRow(0), i4 = 1 === u2 ? 0 : t6.column - o3.getColumn(0)), n5 = e4 >= a2 || i4 >= u2 ? y : o3.getValue(0, e4, i4))) : v(n5) && (s2 = n5, !t6.arrayFormulaMode || -1 === t6.rowOffset && -1 === t6.columnOffset ? n5 = s2 instanceof r2.TwoDimensionalCalcArray ? s2.getActualValue() : s2.getValue(0, 0) : (e4 = 1 === s2.getRowCount() ? 0 : t6.rowOffset, i4 = 1 === s2.getColumnCount() ? 0 : t6.columnOffset, n5 = e4 >= s2.getRowCount() || i4 >= s2.getColumnCount() ? y : s2.getValue(e4, i4))), p(n5) || v(n5) ? this.getOneValue(t6, n5) : n5;
              }, t5.prototype.U8t = function(t6, n5, e4, o3, a2) {
                var c2, f2, l2, h2, d2, g2, m2, b2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2 = 1, _2 = 1, O2 = -1, E2 = true, R2 = true, L2 = 1, F2 = 1, B2 = 7 === n5.type ? n5 : u, P2 = B2 && B2.function, G2 = t6.arrayFormulaMode || t6.source && t6.source.Lbt && t6.source.Lbt.allowDynamicArray;
                if (P2 && (0, r2.isFunction)(P2) && !P2.expandRows() && (E2 = false), P2 && (0, r2.isFunction)(P2) && !P2.expandColumns() && (R2 = false), P2 && (0, r2.isFunction)(P2) && P2.isBranch() && (G2 || t6.j8t())) {
                  if (O2 = P2.findTestArgument(), l2 = [], h2 = false, o3) for (d2 = 0; d2 < o3.length; d2++) l2.push(o3[d2]), o3[d2] === O2 && (h2 = true);
                  if (h2 || v(e4[O2]) || p(e4[O2])) {
                    for (g2 = 0; g2 < B2.arguments.length; g2++) g2 !== O2 && i3.Common.Uf.hD(l2, g2) < 0 && (v(e4[g2]) || p(e4[g2])) && l2.push(g2);
                    o3 = l2;
                  }
                }
                for (m2 = [], w2 = o3[b2 = 0], M2 = e4.length, T2 = [], C2 = 0; C2 < M2; C2++) S2 = e4[C2], c2 = u, f2 = u, L2 = F2 = 1, C2 === w2 ? (c2 = v(S2) ? S2 : u, f2 = p(S2) ? S2 : u, (c2 || f2) && (L2 = c2 && c2.getRowCount() || (E2 && f2 ? f2.getRowCount(0) : 1), F2 = c2 && c2.getColumnCount() || (R2 && f2 ? f2.getColumnCount(0) : 1)), w2 = ++b2 < o3.length ? o3[b2] : -1) : a2 === s && (c2 = v(S2) ? S2 : u, f2 = p(S2) ? S2 : u, (c2 || f2) && (L2 = c2 && c2.getRowCount() || (E2 && f2 ? f2.getRowCount(0) : 1), F2 = c2 && c2.getColumnCount() || (R2 && f2 ? f2.getColumnCount(0) : 1))), T2[C2] = [c2, f2, S2, L2, F2], D2 = L2 > D2 ? L2 : D2, _2 = F2 > _2 ? F2 : _2;
                for (C2 = 0; C2 < M2; C2++) {
                  if (x2 = m2[C2] = [], c2 = (A2 = T2[C2])[0], f2 = A2[1], S2 = A2[2], L2 = A2[3], F2 = A2[4], (c2 || f2) && (1 !== L2 && L2 !== D2 || 1 !== F2 && F2 !== _2) && (-1 === O2 || C2 === O2) && !G2) return;
                  for (I2 = 0; I2 < D2; I2++) for (k2 = x2[I2] = [], N2 = 0; N2 < _2; N2++) 1 !== L2 && I2 >= L2 || 1 !== F2 && N2 >= F2 ? k2[N2] = y : c2 ? (j2 = c2.getValue(1 === L2 ? 0 : I2, 1 === F2 ? 0 : N2), v(j2) && (j2 = j2.getValue(0, 0)), k2[N2] = j2) : f2 ? !a2 || a2[C2] ? k2[N2] = f2.getValue(0, 1 === L2 ? 0 : I2, 1 === F2 ? 0 : N2) : k2[N2] = f2.create([(0, r2.createRange)(f2.getRow(0) + (1 === L2 ? 0 : I2), f2.getColumn(0) + (1 === F2 ? 0 : N2), 1, 1)]) : k2[N2] = S2;
                }
                return m2;
              }, t5;
            })(), n4.Evaluator = I, k = (function() {
              function t5(t6, n5) {
                this.id = t6, this.Y6 = s, this.yL = false, this.R1t = [], this.I8t = false, n5 !== s && (this.evaluateMode = n5);
              }
              return t5.prototype.canEvaluate = function() {
                var t6, n5 = this.R1t;
                for (t6 = 0; t6 < n5.length; t6++) if (!n5[t6].yL) return false;
                return true;
              }, t5;
            })(), n4.AsyncFunctionNode = k, N = (function() {
              function t5(t6) {
                var n5 = this;
                n5.x8t = [], n5.N8t = -1, n5.b8t = {}, n5.MX = t6, n5.k8t = 0;
              }
              return t5.prototype.startCalc = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2;
                if (this.k8t) {
                  for (a2 in this.b8t) if ((u2 = this.b8t[a2]) && (t6 === s || a2 === t6)) {
                    for (c2 in u2) if (f2 = u2[c2], l2 = parseInt(c2, 10), f2 && (n5 === s || l2 >= n5 && l2 < n5 + i4)) {
                      for (h2 in f2) if (d2 = f2[h2], v2 = parseInt(h2, 10), d2 && (e4 === s || v2 >= e4 && v2 < e4 + r3) && (d2.root.R1t = [], (o3 = d2.length) > 0)) for (p2 = 0; p2 < o3; p2++) 0 === (g2 = d2[p2]).evaluateMode && (g2.yL = false);
                    }
                  }
                }
              }, t5.prototype.startCalcCell = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this, s2 = t6.getName(), c2 = n5.row, f2 = n5.col;
                u2.source = t6, n5.Tbt ? ((i4 = u2.b8t["-"]) || (i4 = u2.b8t["-"] = {}), (e4 = i4[n5.Tbt]) ? e4 = e4[0] : (r3 = new k(-1), i4[n5.Tbt] = [], (e4 = i4[n5.Tbt][0] = []).root = r3)) : ((o3 = u2.b8t[s2]) || (o3 = u2.b8t[s2] = {}), (a2 = o3[c2]) || (a2 = o3[c2] = {}), (e4 = a2[f2]) || (r3 = new k(-1), (e4 = a2[f2] = []).root = r3)), u2.k8t++, u2.N8t = 0, u2.cellNodes = e4, u2.row = c2, u2.col = f2, u2.x8t[0] = e4.root, u2.evaluateMode = -1;
              }, t5.prototype.x_t = function(t6) {
                var n5, e4 = this.b8t["-"][t6][0].root.R1t;
                for (n5 = 0; n5 < e4.length; n5++) if (!e4[n5].yL) return false;
                return true;
              }, t5.prototype.T_t = function(t6) {
                return this.b8t["-"][t6][0].length > 0;
              }, t5.prototype.I_t = function(t6) {
                delete this.b8t["-"][t6];
              }, t5.prototype.startCalcFunction = function(t6, n5, e4) {
                var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = n5.arguments, b2 = false;
                if (0 !== g2.x8t.length && g2.cellNodes || (b2 = true, g2.startCalcCell(e4.source, e4.identity)), i4 = g2.evaluateMode, t6 instanceof r2.Functions.AsyncFunction ? o3 = t6.evaluateMode() : a2 = true, "REFRESH" === t6.name ? (o3 = m2[1] ? g2.MX.evaluate(m2[1], e4, false, false) : 0, g2.evaluateMode = o3) : -1 !== i4 && (o3 = i4), s2 = e4.identity ? e4.identity.Tbt ? e4.identity.Tbt : e4.identity.row + "|" + e4.identity.col : "0", n5.H8t && n5.H8t[s2] ? (u2 = n5.H8t[s2]).I8t && (u2.I8t = false, g2.cellNodes.push(u2)) : (n5.H8t = n5.H8t || {}, u2 = n5.H8t[s2] = new k(g2.cellNodes.length, o3), a2 && (u2.yke = true), g2.cellNodes.push(u2)), g2.currentNode = u2, g2.x8t[g2.N8t].R1t.indexOf(u2) < 0 && (g2.x8t[g2.N8t].R1t.push(u2), u2.parent = g2.x8t[g2.N8t], u2.R1t = []), g2.x8t.push(u2), g2.N8t++, 2 === o3 && -1 === i4) {
                  for (c2 = 6e4, f2 = g2.intervals, l2 = t6.interval() || c2, "REFRESH" === t6.name && (u2.isRefresh = true, l2 = m2[2] ? g2.MX.evaluate(m2[2], e4, false, false) : c2), f2 || (g2.intervals = f2 = {}), (h2 = f2[l2]) || "object" != typeof window || ((h2 = f2[l2] = []).intervalObj = window.setInterval((function() {
                    var t7, n6, e5 = g2.MX.service;
                    if (1 !== e5.calculationMode && !e5.IsSuspended()) for (t7 = g2.intervals[l2], n6 = function() {
                      var n7, i5 = t7[d2], r3 = i5.node;
                      r3.yL = false, r3.isRefresh && U(r3), e5.recalculate(i5.source, i5.row, i5.col, true), (n7 = g2.source).B8t || e5.incrementalCalculation || (n7.B8t = true, setTimeout((function() {
                        n7.refresh(), delete n7.B8t;
                      }), 200));
                    }, d2 = 0; d2 < t7.length; d2++) n6();
                  }), l2)), v2 = false, d2 = 0; d2 < h2.length; d2++) if ((p2 = h2[d2]).source === g2.source && p2.node === u2 && p2.row === g2.row && p2.col === g2.col) {
                    v2 = true;
                    break;
                  }
                  v2 || h2.push({ source: g2.source, node: u2, row: g2.row, col: g2.col });
                }
                return b2 && g2.endCalcCell(), u2;
              }, t5.prototype.getNode = function() {
                return this.currentNode;
              }, t5.prototype.endCalcFunction = function() {
                this.currentNode.yke && (this.currentNode.yL = !this.currentNode.R1t.some((function(t6) {
                  return !t6.yL;
                }))), this.x8t.pop(), this.N8t--, this.currentNode = this.currentNode.parent;
              }, t5.prototype.endCalcCell = function() {
                var t6 = this;
                t6.N8t = -1, t6.x8t = [];
              }, t5.prototype.clearCell = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this;
                if (m2.k8t && (e4 = t6.getName(), i4 = n5.row, r3 = n5.col, m2.source = t6, (o3 = m2.b8t[e4]) && (a2 = o3[i4]) && (u2 = a2[r3]) && ((f2 = (c2 = u2[0]) && c2.y8t) && (delete f2.Z_t, delete f2.p8t), u2.forEach((function(t7) {
                  t7.yL = false, t7.I8t = true, delete t7.Y6;
                })), a2[r3] = s, m2.k8t--), "object" == typeof window)) {
                  for (h2 in l2 = m2.intervals) if (d2 = l2[h2]) {
                    for (v2 = [], p2 = 0; p2 < d2.length; p2++) (g2 = d2[p2]).source === t6 && g2.row === n5.row && g2.col === n5.col || v2.push(g2);
                    v2.length ? v2.length !== d2.length && (v2.intervalObj = d2.intervalObj, l2[h2] = v2) : (l2[h2] = s, window.clearInterval(d2.intervalObj));
                  }
                }
              }, t5.prototype.setAsyncResult = function(t6, n5) {
                t6.Y6 = n5;
              }, t5.prototype.addRows = function(t6, n5, e4) {
                this.z8t(t6, n5, e4, true);
              }, t5.prototype.deleteRows = function(t6, n5, e4) {
                this.z8t(t6, n5, e4, false);
              }, t5.prototype.z8t = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this;
                if (m2.k8t) {
                  if (r3 = t6.getName(), o3 = m2.b8t[r3]) {
                    for (u2 in a2 = {}, o3) (s2 = o3[u2]) && (c2 = parseInt(u2, 10), i4 ? a2[f2 = c2 >= n5 ? c2 + e4 : c2] = s2 : c2 < n5 ? a2[c2] = s2 : c2 >= n5 + e4 && (a2[c2 - e4] = s2));
                    m2.b8t[r3] = a2;
                  }
                  for (h2 in l2 = m2.intervals) if (d2 = l2[h2]) {
                    for (v2 = [], p2 = 0; p2 < d2.length; p2++) (g2 = d2[p2]).source === t6 && i4 && g2.row >= n5 ? g2.row += e4 : g2.source === t6 && !i4 && (g2.row < n5 || g2.row >= n5 + e4) && (g2.row = g2.row < n5 ? g2.row : g2.row - e4, v2.push(g2));
                    i4 || v2.length === d2.length || (v2.intervalObj = d2.intervalObj, l2[h2] = v2);
                  }
                }
              }, t5.prototype.addColumns = function(t6, n5, e4) {
                this.V8t(t6, n5, e4, true);
              }, t5.prototype.deleteColumns = function(t6, n5, e4) {
                this.V8t(t6, n5, e4, false);
              }, t5.prototype.V8t = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this;
                if (y2.k8t) {
                  if (r3 = t6.getName(), o3 = y2.b8t[r3]) {
                    for (a2 in o3) if (u2 = o3[a2]) {
                      for (c2 in s2 = {}, u2) (f2 = u2[c2]) && f2.length && (l2 = parseInt(c2, 10), i4 ? s2[h2 = l2 >= n5 ? l2 + e4 : l2] = f2 : l2 < n5 ? s2[l2] = f2 : l2 >= n5 + e4 && (s2[l2 - e4] = f2));
                      o3[a2] = s2;
                    }
                  }
                  for (v2 in d2 = y2.intervals) if (p2 = d2[v2]) {
                    for (g2 = [], m2 = 0; m2 < p2.length; m2++) (b2 = p2[m2]).source === t6 && i4 && b2.col >= n5 ? b2.col += e4 : b2.source === t6 && !i4 && (b2.col < n5 || b2.col >= n5 + e4) && (b2.col = b2.col < n5 ? b2.col : b2.col - e4, g2.push(b2));
                    i4 || g2.length === p2.length || (g2.intervalObj = p2.intervalObj, d2[v2] = g2);
                  }
                }
              }, t5.prototype.changeSourceName = function(t6, n5) {
                var e4, i4 = this;
                i4.k8t && (e4 = i4.b8t[t6]) && (i4.b8t[n5] = e4, delete i4.b8t[t6]);
              }, t5.prototype.clearNodesByName = function(t6) {
                var n5 = this;
                n5.k8t && n5.b8t && (n5.b8t[t6] = void 0);
              }, t5;
            })(), n4.Hkr = z, n4.evaluateOperator = Y, j = r2.Convert.uJ, D = r2.Convert.z6t, _ = r2.Convert.j, O = r2.Convert.kDt, E = r2.Convert.U6t;
          }, "./src/event-notify.ts": function(t4, n4) {
            Object.defineProperty(n4, "__esModule", { value: true }), n4.EventNotifier = void 0;
            var e3 = (function() {
              function t5() {
                this.aT = [];
              }
              return t5.prototype.count = function() {
                return this.aT.length;
              }, t5.prototype.addListener = function(t6) {
                this.aT.push(t6);
              }, t5.prototype.removeListener = function(t6) {
                var n5 = this.aT.indexOf(t6);
                n5 >= 0 && this.aT.splice(n5, 1);
              }, t5.prototype.notify = function(t6) {
                var n5, e4 = this.aT, i3 = e4.length;
                if (0 !== i3) for (n5 = 0; n5 < i3; n5++) e4[n5](t6);
              }, t5.prototype.destroy = function() {
                this.aT = [];
              }, t5;
            })();
            n4.EventNotifier = e3;
          }, "./src/map.ts": function(t4, n4) {
            Object.defineProperty(n4, "__esModule", { value: true }), n4.createMap = void 0;
            var e3 = (function() {
              function t5(t6) {
                if (this.Y8t = /* @__PURE__ */ Object.create(null), this.Q8t = {}, this.W8t = null, this.size = 0, t6) for (var n5 = 0, e4 = t6.length; n5 < e4; n5++) this.set(t6[n5][0], t6[n5][1]);
              }
              return t5.prototype.has = function(t6) {
                return !!this.Y8t[this.Z8t(t6)];
              }, t5.prototype.get = function(t6) {
                var n5 = this.Y8t[this.Z8t(t6)];
                return n5 && n5.value;
              }, t5.prototype.delete = function(t6) {
                var n5, e4, i4 = this.Z8t(t6), r2 = this.Y8t[i4];
                if (!r2) return false;
                if (this.size--, this.size) {
                  if (n5 = void 0, r2 !== this.W8t) for (n5 = this.W8t; n5 && n5.next !== r2; ) n5 = n5.next;
                  e4 = r2.next, n5 ? n5.next = e4 : this.W8t = e4, e4 && (e4.prev = n5);
                } else this.W8t = null;
                return delete this.Y8t[i4], delete this.Q8t[i4], true;
              }, t5.prototype.set = function(t6, n5) {
                var e4, i4 = this.Y8t, r2 = this.Z8t(t6);
                return i4[r2] ? i4[r2].value = n5 : (this.size++, e4 = i4[r2] = { key: t6, keyStamp: r2, value: n5, next: this.W8t }, this.W8t = e4), this;
              }, t5.prototype.clear = function() {
                var t6, n5 = this.Y8t;
                for (t6 in n5) Object.prototype.hasOwnProperty.call(n5, t6) && delete n5[t6];
                this.Q8t = {}, this.W8t = null, this.size = 0;
              }, t5.prototype.forEach = function(t6, n5) {
                for (var e4 = this.W8t; e4; ) {
                  t6.call(n5, e4.value, e4.key, this);
                  do {
                    e4 = e4.next;
                  } while (e4 && !this.Y8t[e4.keyStamp]);
                }
              }, t5.prototype.toString = function() {
                return "[object Map]";
              }, t5.prototype.Z8t = function(t6) {
                switch (typeof t6) {
                  case "undefined":
                    return "undefined";
                  case "object":
                    if (null === t6) return "null";
                    break;
                  case "boolean":
                    return "?" + t6;
                  case "number":
                    return "+" + t6;
                  case "string":
                    return "," + t6;
                }
                return "";
              }, t5;
            })();
            function i3() {
              return Map && -1 !== Map.toString().indexOf("[native code]") && (/* @__PURE__ */ new Map([[1, 1]])).size ? /* @__PURE__ */ new Map() : new e3();
            }
            n4.createMap = i3;
          }, "./src/referenceExpression.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s, c, f, l = this && this.qKr || (h = function(t5, n5) {
              return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, h(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              h(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), h;
            function d(t5, n5, e4, i4, r3, o3) {
              var a2 = new f(1);
              return a2.row = e4, a2.column = i4, a2.rowRelative = r3, a2.columnRelative = o3, t5 && (a2.source = t5), n5 && (a2.endSource = n5), a2;
            }
            function v(t5, n5, e4, i4, o3, a2, s2, l2, h2, d2, v2, p2, g) {
              var m, b, y, w, M, C = new f(1);
              return v2 = v2 || 0, p2 = p2 || 0, u(o3) || (o3 = h2 ? c(o3 + v2, r2.MAX_ROW_COUNT - 1) - v2 : c(o3, r2.MAX_ROW_COUNT - 1)), u(a2) || (a2 = d2 ? c(a2 + p2, r2.MAX_COLUMN_COUNT - 1) - p2 : c(a2, r2.MAX_COLUMN_COUNT - 1)), 0 === (l2 ? i4 + p2 : i4) && (d2 ? a2 + p2 : a2) === r2.MAX_COLUMN_COUNT - 1 && (i4 = a2 = r2.BAND_INDEX_CONST), C.isFullRow = i4 === r2.BAND_INDEX_CONST, b = e4 - (s2 ? 0 : v2), y = i4 - (l2 ? 0 : p2), w = o3 - (h2 ? 0 : v2), M = a2 - (d2 ? 0 : p2), 0 === (s2 ? e4 + v2 : e4) && (h2 ? o3 + v2 : o3) === r2.MAX_ROW_COUNT - 1 && (e4 = o3 = r2.BAND_INDEX_CONST), C.isFullColumn = e4 === r2.BAND_INDEX_CONST, b > w && (m = e4, e4 = o3, o3 = m, m = s2, s2 = h2, h2 = m), y > M && (m = i4, i4 = a2, a2 = m, m = l2, l2 = d2, d2 = m), C.row = e4, C.column = i4, C.endRow = o3, C.endColumn = a2, C.rowRelative = s2, C.columnRelative = l2, C.endRowRelative = h2, C.endColumnRelative = d2, C.isFullColumn && C.isFullRow && (C.rowRelative = false, C.endRowRelative = false), t5 && (C.source = t5), n5 && (C.endSource = n5), C.dHr = g, C;
            }
            function p(t5, n5, e4) {
              var i4 = { row: -1, col: -1, rowCount: -1, colCount: -1 }, o3, a2, u2, c2;
              return t5.isFullRow ? (i4.col = -1, i4.colCount = -1) : (u2 = t5.columnRelative ? (u2 = t5.column + e4) >= r2.MAX_COLUMN_COUNT ? u2 % r2.MAX_COLUMN_COUNT : u2 : t5.column, t5.hmt() ? (i4.col = u2, i4.colCount = 1) : (c2 = t5.endColumnRelative ? (c2 = t5.endColumn + e4) >= r2.MAX_COLUMN_COUNT ? c2 % r2.MAX_COLUMN_COUNT : c2 : t5.endColumn, i4.col = u2 <= c2 ? u2 : c2, i4.colCount = s(c2 - u2) + 1)), t5.isFullColumn ? (i4.row = -1, i4.rowCount = -1) : (o3 = t5.rowRelative ? (o3 = t5.row + n5) >= r2.MAX_ROW_COUNT ? o3 % r2.MAX_ROW_COUNT : o3 : t5.row, t5.hmt() ? (i4.row = o3, i4.rowCount = 1) : (a2 = t5.endRowRelative ? (a2 = t5.endRow + n5) >= r2.MAX_ROW_COUNT ? a2 % r2.MAX_ROW_COUNT : a2 : t5.endRow, i4.row = o3 <= a2 ? o3 : a2, i4.rowCount = s(a2 - o3) + 1)), i4;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.getRangeForReference = n4.lJ = n4.knt = n4.ReferenceExpression = void 0, i3 = e3("Common"), r2 = e3("./src/calc.common.ts"), o2 = void 0, a = i3.Common.lt, u = a.ht, s = Math.abs, c = Math.min, f = (function(t5) {
              function n5(n6) {
                return t5.call(this, n6) || this;
              }
              return l(n5, t5), n5.prototype.hmt = function() {
                var t6 = this;
                return t6.endRow === o2 || t6.endColumn === o2;
              }, n5.prototype.Tyt = function() {
                var t6 = this;
                return t6.isFullRow && t6.isFullColumn ? 3 : t6.isFullRow ? 1 : t6.isFullColumn ? 2 : 0;
              }, n5.prototype.getRange = function(t6, n6) {
                return p(this, t6, n6);
              }, n5.prototype.offset = function(t6, n6, e4, i4, r3) {
                var o3, a2 = this, u2 = a2.source, s2 = a2.endSource;
                return a2.hmt() ? d(u2, s2, a2.row + (a2.rowRelative || e4 ? t6 : 0), a2.column + (a2.columnRelative || e4 ? n6 : 0), a2.rowRelative, a2.columnRelative) : ((o3 = v(u2, s2, a2.row + (a2.rowRelative || e4 ? t6 : 0), a2.column + (a2.columnRelative || e4 ? n6 : 0), a2.endRow + (a2.isFullColumn || !a2.endRowRelative && !e4 ? 0 : t6), a2.endColumn + (a2.isFullRow || !a2.endColumnRelative && !e4 ? 0 : n6), a2.rowRelative, a2.columnRelative, a2.endRowRelative, a2.endColumnRelative, i4, r3, a2.dHr)).isFullRow = a2.isFullRow, o3.isFullColumn = a2.isFullColumn, o3);
              }, n5.prototype.offset2 = function(t6, n6, e4, i4, o3, a2) {
                var u2, s2 = this, c2 = s2.endRowRelative ? s2.endRow + o3 : s2.endRow;
                return c2 >= r2.MAX_ROW_COUNT - 1 && (e4 = 0), (u2 = s2.endColumnRelative ? s2.endColumn + a2 : s2.endColumn) >= r2.MAX_COLUMN_COUNT - 1 && (i4 = 0), v(s2.source, s2.endSource, s2.row + (s2.isFullColumn ? 0 : t6), s2.column + (s2.isFullRow ? 0 : n6), s2.endRow + (s2.isFullColumn ? 0 : e4), s2.endColumn + (s2.isFullRow ? 0 : i4), s2.rowRelative, s2.columnRelative, s2.endRowRelative, s2.endColumnRelative, o3, a2, s2.dHr);
              }, n5;
            })(r2.Expression), n4.ReferenceExpression = f, n4.knt = d, n4.lJ = v, n4.getRangeForReference = p;
          }, "./src/set.ts": function(t4, n4) {
            var e3 = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o2; i4 < r3; i4++) !o2 && i4 in n5 || (o2 || (o2 = Array.prototype.slice.call(n5, 0, i4)), o2[i4] = n5[i4]);
              return t5.concat(o2 || Array.prototype.slice.call(n5));
            };
            function i3(t5) {
              this.items = e3([], t5, true);
            }
            function r2(t5) {
              return Set && -1 !== Set.toString().indexOf("[native code]") && (/* @__PURE__ */ new Set([[1, 1]])).size ? new Set(t5) : new i3(t5);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.createSet = void 0, i3.prototype.add = function(t5) {
              this.has(t5) || this.items.push(t5);
            }, i3.prototype.delete = function(t5) {
              var n5 = this.items.indexOf(t5);
              -1 !== n5 && this.items.splice(n5, 1);
            }, i3.prototype.has = function(t5) {
              return -1 !== this.items.indexOf(t5);
            }, i3.prototype.clear = function() {
              this.items = [];
            }, i3.prototype.size = function() {
              return this.items.length;
            }, i3.prototype.values = function() {
              return this.items;
            }, n4.createSet = r2;
          }, "./src/text_Filter/charProcess.ts": function(t4, n4) {
            var e3, i3, r2;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.uEt = n4.sEt = n4.CharType = void 0, e3 = /* @__PURE__ */ (function() {
              function t5() {
                this.otherChar = 0, this.control = 1, this.numeric = 2, this.mathSymbol = 3, this.symbol = 4, this.punctuation = 5, this.space = 6, this.upperCase = 7, this.lowerCase = 8, this.katakana = 9, this.hiragana = 10, this.farEastPunctuation = 11, this.hangul = 12, this.fullWidth = 32768;
              }
              return t5;
            })(), n4.CharType = e3, i3 = /* @__PURE__ */ (function() {
              function t5() {
                this.minValue = "\0", this.maxValue = "", this.ANSI_START = 0, this.ANSI_END = 255, this.BOTH_WIDTH_START = 65280, this.BOTH_WIDTH_END = 65519, this.FULL_ALPHA_START = 65281, this.FULL_UPPER_START = 65313, this.FULL_UPPER_END = 65338, this.FULL_ALPHA_END = 65374, this.CJK_HALF_SYMBOL_START = 65377, this.CJK_HALF_SYMBOL_END = 65380, this.KANA_HALF_START = 65381, this.KANA_HALF_END = 65439, this.HANGUL_HALF_START = 65440, this.HANGUL_HALF_END = 65500, this.FULL_SYMBOL_START = 65504, this.FULL_SYMBOL_END = 65510, this.HALF_VARIANTS_START = 65512, this.HALF_VARIANTS_END = 65518, this.KATAKANA_VOICED = "ﾞ", this.KATAKANA_SEMI_VOICED = "ﾟ", this.tab = "	", this.space = " ", this.K8t = new Array("\0", "", "Ā", "ƀ", "ɐ", "ʰ", "̀", "Ͱ", "Ѐ", "԰", "֐", "؀", "܀", "ހ", "ऀ", "ঀ", "਀", "઀", "଀", "஀", "ఀ", "ಀ", "ഀ", "඀", "฀", "຀", "ༀ", "က", "Ⴀ", "ᄀ", "ሀ", "Ꭰ", "᐀", " ", "ᚠ", "ក", "᠀", "Ḁ", "ἀ", " ", "⁰", "₠", "⃐", "℀", "⅐", "←", "∀", "⌀", "␀", "⑀", "①", "─", "▀", "■", "☀", "✀", "⠀", "⺀", "⼀", "⿰", "　", "぀", "゠", "㄀", "㄰", "㆐", "ㆠ", "㈀", "㌀", "㐀", "一", "ꀀ", "꒐", "가", "豈", "ﬀ", "ﭐ", "︠", "︰", "﹐", "ﹰ", "＀", "￰"), this.blocks = new Array("BASIC_LATIN", "LATIN_1_SUPPLEMENT", "LATIN_EXTENDED_A", "LATIN_EXTENDED_B", "IPA_EXTENSIONS", "SPACING_MODIFIER_LETTERS", "COMBINING_DIACRITICAL_MARKS", "GREEK", "CYRILLIC", "ARMENIAN", "HEBREW", "ARABIC", "SYRIAC", "THAANA", "DEVANAGARI", "BENGALI", "GURMUKHI", "GUJARATI", "ORIYA", "TAMIL", "TELUGU", "KANNADA", "MALAYALAM", "SINHALA", "THAI", "LAO", "TIBETAN", "MYANMAR", "GEORGIAN", "HANGUL_JAMO", "ETHIOPIC", "CHEROKEE", "UNIFIED_CANADIAN_ABORIGINAL_SYLLABIC", "OGHAM", "RUNIC", "KUMER", "MONGOLIAN", "LATIN_EXTENDED_ADDITIONAL", "GREEK_EXTENDED", "GENERAL_PUNCTUATION", "SUPERSCRIPTS_AND_SUBSCRIPTS", "CURRENCY_SYMBOLS", "COMBINING_MARKS_FOR_SYMBOLS", "LETTERLIKE_SYMBOLS", "NUMBER_FORMS", "ARROWS", "MATHEMATICAL_OPERATORS", "MISCELLANEOUS_TECHNICAL", "CONTROL_PICTURES", "OPTICAL_CHARACTER_RECOGNITION", "ENCLOSED_ALPHANUMERICS", "BOX_DRAWING", "BLOCK_ELEMENTS", "GEOMETRIC_SHAPES", "MISCELLANEOUS_SYMBOLS", "DINGBATS", "BRAILLE_PATTERNS", "CJK_RADICALS_SUPPLEMENT", "KANGXI_RADICALS", "IDEOGRAPHIC_DESCRIPTION_CHARACTERS", "CJK_SYMBOLS_AND_PUNCTUATION", "HIRAGANA", "KATAKANA", "BOPOMOFO", "HANGUL_COMPATIBILITY_JAMO", "KANBUN", "BOPOMOFO_EXTENDED", "ENCLOSED_CJK_LETTERS_AND_MONTHS", "CJK_COMPATIBILITY", "CJK_UNIFIED_IDEOGRAPHS_EXTENSION", "CJK_UNIFIED_IDEOGRAPHS", "YI_SYLLABLES", "YI_RADICALS", "HANGUL_SYLLABLES", "CJK_COMPATIBILITY_IDEOGRAPHS", "ALPHABETIC_PRESENTATION_FORMS", "ARABIC_PRESENTATION_FORMS_A", "COMBINING_HALF_MARKS", "CJK_COMPATIBILITY_FORMS", "SMALL_FORM_VARIANTS", "ARABIC_PRESENTATION_FORMS_B", "HALFWIDTH_AND_FULLWIDTH_FORMS", "SPECIALS"), this.J8t = ["！", "０", "：", "Ａ", "［", "ａ", "｛", "｡", "･", "ﾠ", "￠", "￨"], this.X8t = new e3(), this.q8t = [this.X8t.symbol | this.X8t.fullWidth, this.X8t.numeric | this.X8t.fullWidth, this.X8t.symbol | this.X8t.fullWidth, this.X8t.upperCase | this.X8t.fullWidth, this.X8t.symbol | this.X8t.fullWidth, this.X8t.lowerCase | this.X8t.fullWidth, this.X8t.symbol | this.X8t.fullWidth, this.X8t.farEastPunctuation, this.X8t.katakana, this.X8t.hangul, this.X8t.symbol | this.X8t.fullWidth, this.X8t.symbol], this.$8t = new Array("・", "ヲ", "ァ", "ィ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ッ", "ー", "ア", "イ", "ウ", "エ", "オ", "カ", "キ", "ク", "ケ", "コ", "サ", "シ", "ス", "セ", "ソ", "タ", "チ", "ツ", "テ", "ト", "ナ", "ニ", "ヌ", "ネ", "ノ", "ハ", "ヒ", "フ", "ヘ", "ホ", "マ", "ミ", "ム", "メ", "モ", "ヤ", "ユ", "ヨ", "ラ", "リ", "ル", "レ", "ロ", "ワ", "ン", "゙", "゚"), this.tEt = new Array("ｧ", "ｱ", "ｨ", "ｲ", "ｩ", "ｳ", "ｪ", "ｴ", "ｫ", "ｵ", "ｶ", "ｶ", "ｷ", "ｷ", "ｸ", "ｸ", "ｹ", "ｹ", "ｺ", "ｺ", "ｻ", "ｻ", "ｼ", "ｼ", "ｽ", "ｽ", "ｾ", "ｾ", "ｿ", "ｿ", "ﾀ", "ﾀ", "ﾁ", "ﾁ", "ｯ", "ﾂ", "ﾂ", "ﾃ", "ﾃ", "ﾄ", "ﾄ", "ﾅ", "ﾆ", "ﾇ", "ﾈ", "ﾉ", "ﾊ", "ﾊ", "ﾊ", "ﾋ", "ﾋ", "ﾋ", "ﾌ", "ﾌ", "ﾌ", "ﾍ", "ﾍ", "ﾍ", "ﾎ", "ﾎ", "ﾎ", "ﾏ", "ﾐ", "ﾑ", "ﾒ", "ﾓ", "ｬ", "ﾔ", "ｭ", "ﾕ", "ｮ", "ﾖ", "ﾗ", "ﾘ", "ﾙ", "ﾚ", "ﾛ", "ﾜ", "ﾜ", "ｨ", "ｪ", "ｦ", "ﾝ", "ｳ", "ｶ", "ｹ", "ﾜ", "ｨ", "ｪ", "ｦ", "･", "ｰ"), this.nEt = ["ｧ", "ｨ", "ｩ", "ｪ", "ｫ", "ｬ", "ｭ", "ｮ", "ｯ"], this.eEt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 0, -1, 1, -1, 1, -1, 1, 0, 0, 0, 0, 0, -3, 1, 2, -3, 1, 2, -3, 1, 2, -3, 1, 2, -3, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0), this.iEt = ["‘", "’", "“", "”"], this.rEt = ["ー"], this.oEt = new Array("　", "、", "。", "「", "」", "“", "”", "‘", "’", "゛", "゜", "￥"), this.aEt = new Array(" ", "､", "｡", "｢", "｣", '"', '"', "'", "'", "ﾞ", "ﾟ", "¥");
              }
              return t5;
            })(), n4.sEt = i3, r2 = (function() {
              function t5() {
                this.charCategory = new i3(), this.charType = new e3();
              }
              return t5.prototype.isAlphabet = function(t6) {
                var n5 = this;
                return n5.isUpper(t6) || n5.isLower(t6);
              }, t5.prototype.isHiragana = function(t6) {
                var n5 = this;
                return (n5.getCharType(t6) & ~n5.charType.fullWidth) === n5.charType.hiragana || n5.charCategory.rEt[0] === t6;
              }, t5.prototype.getCharType = function(t6) {
                var n5 = this, e4 = n5.charType.otherChar, i4 = n5.belongTo(t6);
                if ("" === t6 || "\0" <= t6 && t6 <= "" || "" <= t6 && t6 <= "") return n5.charType.control;
                if ("A" <= t6 && t6 <= "Z") return n5.charType.upperCase;
                if ("a" <= t6 && t6 <= "z") return n5.charType.lowerCase;
                if ("0" <= t6 && t6 <= "9") return n5.charType.numeric;
                switch ((n5.isFullWidthSymbol(t6) || n5.isHalfWidthSymbol(t6)) && (e4 = n5.charType.symbol), 8216 !== t6.charCodeAt(0) && 8217 !== t6.charCodeAt(0) && 8220 !== t6.charCodeAt(0) && 8221 !== t6.charCodeAt(0) || (e4 = n5.charType.punctuation), 12288 === t6.charCodeAt(0) && (e4 = n5.charType.space), n5.charCategory.blocks[i4]) {
                  case "HALFWIDTH_AND_FULLWIDTH_FORMS":
                    return n5.multiWidthDetails(t6);
                  case "KATAKANA":
                    return n5.charType.katakana | n5.charType.fullWidth;
                  case "HIRAGANA":
                    return n5.charType.hiragana | n5.charType.fullWidth;
                }
                return n5.isFarEastBlock(i4, t6) && (e4 |= n5.charType.fullWidth), e4;
              }, t5.prototype.isLower = function(t6) {
                var n5 = this;
                return (n5.getCharType(t6) & ~n5.charType.fullWidth) === n5.charType.lowerCase;
              }, t5.prototype.isUpper = function(t6) {
                var n5 = this;
                return (n5.getCharType(t6) & ~n5.charType.fullWidth) === n5.charType.upperCase;
              }, t5.prototype.belongTo = function(t6) {
                for (var n5 = this, e4 = 0, i4 = 83, r3 = i4 >> 1; i4 - e4 > 1; ) t6 >= n5.charCategory.K8t[r3] ? e4 = r3 : i4 = r3, r3 = i4 + e4 >> 1;
                return r3;
              }, t5.prototype.isFullWidthSymbol = function(n5) {
                for (var e4 = 0; e4 < t5.fullWidthSymbolArray.length; e4++) if (n5 === t5.fullWidthSymbolArray[e4]) return true;
                return false;
              }, t5.prototype.isHalfWidthSymbol = function(n5) {
                for (var e4 = 0; e4 < t5.halfWidthSymbolArray.length; e4++) if (n5 === t5.halfWidthSymbolArray[e4]) return true;
                return false;
              }, t5.prototype.multiWidthDetails = function(t6) {
                for (var n5 = this, e4 = 0, i4 = n5.charCategory.J8t.length, r3 = i4 >> 1; i4 - e4 > 1; ) t6 >= n5.charCategory.J8t[r3] ? e4 = r3 : i4 = r3, r3 = i4 + e4 >> 1;
                return n5.charCategory.q8t[r3];
              }, t5.prototype.isFarEastBlock = function(t6, n5) {
                var e4, i4 = this;
                switch (i4.charCategory.blocks[t6]) {
                  case "CJK_COMPATIBILITY":
                  case "CJK_COMPATIBILITY_FORMS":
                  case "CJK_COMPATIBILITY_IDEOGRAPHS":
                  case "CJK_RADICALS_SUPPLEMENT":
                  case "CJK_SYMBOLS_AND_PUNCTUATION":
                  case "CJK_UNIFIED_IDEOGRAPHS":
                  case "CJK_UNIFIED_IDEOGRAPHS_EXTENSION":
                  case "HALFWIDTH_AND_FULLWIDTH_FORMS":
                  case "BOPOMOFO":
                  case "BOPOMOFO_EXTENDED":
                  case "HIRAGANA":
                  case "KATAKANA":
                  case "KANBUN":
                  case "HANGUL_COMPATIBILITY_JAMO":
                  case "HANGUL_JAMO":
                  case "HANGUL_SYLLABLES":
                    return true;
                  default:
                    for (e4 = 0; e4 < i4.charCategory.iEt.length; e4++) if (n5 === i4.charCategory.iEt[e4]) return true;
                    if (n5.charCodeAt(0) > 255) return true;
                    if (8216 === n5.charCodeAt(0) || 8217 === n5.charCodeAt(0) || 8220 === n5.charCodeAt(0) || 8221 === n5.charCodeAt(0)) return true;
                }
                return false;
              }, t5.prototype.isFullWidth = function(t6) {
                var n5, e4, i4 = this;
                return !!i4.isFullWidthSymbol(t6) || !i4.isHalfWidthSymbol(t6) && (n5 = i4.belongTo(t6), e4 = i4.isFarEastBlock(n5, t6), "HALFWIDTH_AND_FULLWIDTH_FORMS" === i4.charCategory.blocks[n5] && (e4 = (i4.multiWidthDetails(t6) & i4.charType.fullWidth) === i4.charType.fullWidth), e4);
              }, t5.prototype.toHalfWidth = function(t6) {
                return this.toHalfWidthEx(t6);
              }, t5.prototype.toHalfWidthEx = function(t6) {
                var n5, e4, i4, r3, o2, a = this, u = a.getCharType(t6), s = a.isMultiWidth(t6);
                if ((u & a.charType.fullWidth) === a.charType.fullWidth) switch (u & ~a.charType.fullWidth) {
                  case a.charType.punctuation:
                  case a.charType.upperCase:
                  case a.charType.lowerCase:
                  case a.charType.symbol:
                  case a.charType.numeric:
                  case a.charType.mathSymbol:
                    n5 = a.getFullHalfWidthSpecialChar(t6, false), e4 = t6.charCodeAt(0), false !== n5 ? t6 = n5 : s && e4 <= 65374 && e4 >= 65280 && (i4 = "!", t6 = String.fromCharCode(e4 - (a.charCategory.K8t[81].charCodeAt(0) + 1) + i4.charCodeAt(0)));
                    break;
                  case a.charType.katakana:
                    if ((r3 = t6.charCodeAt(0) - (a.charCategory.K8t[62].charCodeAt(0) + 1)) < 0 || r3 > 91) return t6;
                    if (t6 = a.charCategory.tEt[r3], (o2 = a.charCategory.eEt[r3]) > 0) return t6 += String.fromCharCode(1 === o2 ? a.charCategory.KATAKANA_VOICED.charCodeAt(0) : a.charCategory.KATAKANA_SEMI_VOICED.charCodeAt(0));
                    break;
                  case a.charType.space:
                    t6 = " ";
                  case a.charType.hangul:
                }
                return t6;
              }, t5.prototype.isMultiWidth = function(t6) {
                var n5 = this, e4 = n5.belongTo(t6), i4 = n5.charCategory.blocks[e4];
                return "KATAKANA" === i4 || "CJK_SYMBOLS_AND_PUNCTUATION" === i4 || "HALFWIDTH_AND_FULLWIDTH_FORMS" === i4 || "BASIC_LATIN" === i4 && t6 >= " ";
              }, t5.prototype.getFullHalfWidthSpecialChar = function(t6, n5) {
                var e4, i4, r3, o2, a = this;
                for (true === n5 ? (e4 = a.charCategory.aEt, i4 = a.charCategory.oEt) : (e4 = a.charCategory.oEt, i4 = a.charCategory.aEt), r3 = -1, o2 = 0; o2 < e4.length; ) {
                  if (e4[o2] === t6) {
                    r3 = o2;
                    break;
                  }
                  o2++;
                }
                return -1 !== r3 && o2 < i4.length && i4[o2];
              }, t5.prototype.toFullWidth = function(t6) {
                var n5, e4, i4, r3, o2, a = {}, u = this;
                if (a.text = t6, a.processedAll = false, 0 === t6.length) return a;
                if (n5 = t6.substring(0, 1), u.isMultiWidth(n5)) {
                  if (n5 < u.charCategory.K8t[1]) return " " === n5 ? (a.text = "　", a) : (e4 = "!", a.text = String.fromCharCode(n5.charCodeAt(0) - e4.charCodeAt(0) + (u.charCategory.K8t[81].charCodeAt(0) + 1)), a);
                  if ((u.multiWidthDetails(n5) & u.charType.katakana) === u.charType.katakana) {
                    if (n5.charCodeAt(0) < u.charCategory.KANA_HALF_START) return i4 = u.getFullHalfWidthSpecialChar(n5, true), a.text = false !== i4 ? i4 : n5, a;
                    if (n5 = u.charCategory.$8t[n5.charCodeAt(0) - u.charCategory.KANA_HALF_START], t6.length < 2) return a.text = n5, a;
                    1 !== (r3 = t6.charCodeAt(1) - (u.charCategory.KATAKANA_VOICED.charCodeAt(0) - 1)) && 2 !== r3 || (a.processedAll = true, 0 !== (o2 = u.charCategory.eEt[n5.charCodeAt(0) - (u.charCategory.K8t[62].charCodeAt(0) + 1)]) && ((2 & Math.abs(o2)) === r3 && (n5 = String.fromCharCode(n5.charCodeAt(0) + 1)), n5 = String.fromCharCode(n5.charCodeAt(0) + 1))), 1 === r3 && "ウ" === n5 && (n5 = "ヴ");
                  }
                }
                return a.text = n5, a;
              }, t5.prototype.isUpperKana = function(t6) {
                return !this.isLowerKana(t6);
              }, t5.prototype.isLowerKana = function(n5) {
                return -1 !== t5.lowerKana.search(n5);
              }, t5.prototype.hasLowerKana = function(n5) {
                return -1 !== t5.upperKana.search(n5) || this.isLowerKana(n5);
              }, t5.prototype.toUpperKana = function(n5) {
                var e4 = t5.lowerKana.search(n5);
                return -1 === e4 ? n5 : t5.upperKana.substr(e4, 1);
              }, t5.prototype.toLowerKana = function(n5) {
                var e4 = t5.upperKana.search(n5);
                return e4 >= t5.upperKana.length - 4 && e4 < t5.upperKana.length || -1 === e4 ? n5 : t5.lowerKana.substr(e4, 1);
              }, t5.prototype.toKatakana = function(t6) {
                var n5, e4 = this;
                return e4.isCharOfType(t6, e4.charType.hiragana | e4.charType.fullWidth) ? false !== (n5 = e4.getFullHalfWidthSpecialChar(t6, false)) ? n5 : String.fromCharCode(t6.charCodeAt(0) - e4.charCategory.K8t[61].charCodeAt(0) + e4.charCategory.K8t[62].charCodeAt(0)) : t6;
              }, t5.prototype.isCharOfType = function(t6, n5) {
                return this.getCharType(t6) === n5;
              }, t5.prototype.isKatakana = function(t6) {
                var n5 = this;
                return (n5.getCharType(t6) & ~n5.charType.fullWidth) === n5.charType.katakana;
              }, t5.prototype.toHiragana = function(t6) {
                var n5 = this;
                return n5.isKatakana(t6) ? (n5.isFullWidth(t6) || (t6 = n5.toFullWidth(t6).text), n5.isCharOfType(t6, n5.charType.katakana | n5.charType.fullWidth) ? t6 >= "ヷ" && t6 <= "ヿ" ? t6 : "ヵ" === t6 ? "か" : "ヶ" === t6 ? "け" : String.fromCharCode(t6.charCodeAt(0) + n5.charCategory.K8t[61].charCodeAt(0) - n5.charCategory.K8t[62].charCodeAt(0)) : t6) : t6;
              }, t5.prototype.isDigit = function(t6) {
                var n5 = this;
                return (n5.getCharType(t6) & ~n5.charType.fullWidth) === n5.charType.numeric;
              }, t5.prototype.isSurrogate = function(t6) {
                return null !== t6 && t6.charCodeAt(0) >= "\uD800".charCodeAt(0) && t6.charCodeAt(0) <= "\uDFFF".charCodeAt(0);
              }, t5.lowerKana = "ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮｧｨｩｪｫｬｭｮｯヵヶゕゖ", t5.upperKana = "あいうえおつやゆよわアイウエオツヤユヨワｱｲｳｴｵﾔﾕﾖﾂカケかけ", t5.fullWidthSymbolArray = new Array("、", "。", "，", "．", "・", "：", "；", "？", "！", "゛", "゜", "´", "｀", "¨", "＾", "＿", "ヽ", "ヾ", "ゝ", "ゞ", "仝", "ー", "—", "‐", "／", "‖", "｜", "…", "‥", "‘", "’", "“", "”", "（", "）", "［", "］", "｛", "｝", "「", "」", "＋", "−", "±", "×", "÷", "＝", "≠", "＜", "＞", "≦", "≧", "∞", "∴", "♂", "♀", "°", "′", "″", "℃", "￥", "＄", "¢", "£", "％", "＃", "＆", "＊", "＠", "§", "☆", "★", "○", "●", "◎", "◇", "◆", "□", "■", "△", "▲", "▽", "▼", "※", "→", "←", "↑", "↓", "＇", "＂", "－", "ヿ", "ゟ", "∈", "∋", "⊆", "⊇", "⊂", "⊃", "∪", "∩", "⊄", "⊅", "⊊", "⊋", "∉", "∅", "⌅", "⌆", "∧", "∨", "¬", "⇒", "⇔", "∀", "∃", "⊕", "⊖", "⊗", "∥", "∦", "⦅", "⦆", "∠", "⊥", "⌒", "∂", "∇", "≡", "≒", "≪", "≫", "√", "∽", "∝", "∵", "∫", "∬", "≢", "≃", "≅", "≈", "≶", "≷", "↔", "Å", "‰", "♯", "♭", "♪", "†", "‡", "¶", "♮", "♫", "♬", "♩", "◯", "＼", "～", "―"), t5.halfWidthSymbolArray = new Array("\\", "~", "!", '"', "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "@", "[", "]", "^", "_", "`", "{", "|", "}", "｡", "｢", "｣", "､", "･", "¡", "¤", "¥"), t5;
            })(), n4.uEt = r2;
          }, "./src/text_Filter/emoji_helper.ts": function(t4, n4, e3) {
            var i3, r2;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.cEt = void 0, i3 = e3("./src/calc.common.ts"), r2 = (function() {
              function t5() {
              }
              return t5.isEmoji = function(n5, e4, i4) {
                i4.emojiCharLength = 0;
                try {
                  if (t5.isEmojiEnclosedAlphanumericSymbol(n5, e4)) return i4.emojiCharLength = 2, true;
                  if (t5.isEmojiInSpecificRange(n5, e4) || t5.isEmojiInUnicodeStandardSymbol(n5, e4)) return t5.isHighSurrogate(n5, e4) ? i4.emojiCharLength = 2 : i4.emojiCharLength = 1, true;
                } catch (t6) {
                }
                return false;
              }, t5.isEmojiEnclosedAlphanumericSymbol = function(n5, e4) {
                return !(e4 >= n5.length - 1) && (!t5.isHighSurrogate(n5, e4) && !(!t5.contains(t5.fEt, t5.convertToUtf32(n5, e4)) || t5.lEt !== t5.convertToUtf32(n5, e4 + 1)));
              }, t5.isEmojiInSpecificRange = function(n5, e4) {
                var i4, r3 = t5.convertToUtf32(n5, e4), o2 = Math.floor(t5.hEt.length / 2);
                for (i4 = 0; i4 < o2; i4++) if (t5.hEt[2 * i4] <= r3 && r3 <= t5.hEt[2 * i4 + 1]) return true;
                return false;
              }, t5.isEmojiInUnicodeStandardSymbol = function(n5, e4) {
                var i4 = t5.convertToUtf32(n5, e4);
                return t5.contains(t5.dEt, i4);
              }, t5.contains = function(t6, n5) {
                for (var e4, i4 = 0, r3 = t6.length - 1; i4 <= r3; ) {
                  if (t6[e4 = Math.floor((i4 + r3) / 2)] === n5) return true;
                  t6[e4] > n5 ? r3 = e4 - 1 : i4 = e4 + 1;
                }
                return false;
              }, t5.convertFromUtf32 = function(t6) {
                if (t6 < 0 || t6 > 1114111 || t6 >= 55296 && t6 <= 57343) throw new Error((0, i3.sR)().Exp_ArgumentOutOfRangeException);
                return t6 < 65536 ? String.fromCharCode(t6) : (t6 -= 65536, String.fromCharCode(Math.floor(t6 / 1024) + 55296, t6 % 1024 + 56320));
              }, t5.convertToUtf32 = function(t6, n5) {
                var e4, r3;
                if (n5 < 0 || n5 >= t6.length) throw new Error((0, i3.sR)().Exp_ArgumentOutOfRangeException);
                if ((e4 = t6.charCodeAt(n5) - 55296) < 0 || e4 > 2047) return t6.charCodeAt(n5);
                if (e4 > 1023) throw new Error((0, i3.sR)().Exp_ArgumentException);
                if (n5 >= t6.length - 1) throw new Error((0, i3.sR)().Exp_ArgumentException);
                if ((r3 = t6.charCodeAt(n5 + 1) - 56320) < 0 || r3 > 1023) throw new Error((0, i3.sR)().Exp_ArgumentException);
                return 1024 * e4 + r3 + 65536;
              }, t5.isHighSurrogate = function(t6, n5) {
                var e4 = t6.charCodeAt(n5);
                return e4 >= 55296 && e4 <= 56319;
              }, t5.isLowSurrogate = function(t6, n5) {
                var e4 = t6.charCodeAt(n5);
                return e4 >= 56320 && e4 <= 57343;
              }, t5.lEt = 8419, t5.fEt = [35, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], t5.hEt = [9728, 9983, 9984, 10175, 10240, 10495, 11008, 11263, 19904, 19967, 65936, 65999, 118784, 119039, 119040, 119295, 119296, 119375, 119552, 119647, 126976, 127023, 127024, 127135, 127136, 127231, 127232, 127487, 127488, 127743, 127744, 128511, 128512, 128591, 128640, 128767, 128768, 128895], t5.dEt = [169, 174, 8194, 8195, 8197, 8252, 8265, 8482, 8505, 8596, 8597, 8598, 8599, 8600, 8601, 8617, 8618, 8986, 8987, 9193, 9194, 9195, 9196, 9200, 9203, 9410, 9642, 9643, 9654, 9664, 9723, 9724, 9725, 9726, 10548, 10549, 12336, 12349, 12951, 12953], t5;
            })(), n4.cEt = r2;
          }, "./src/text_Filter/text_Filter.ts": function(t4, n4, e3) {
            var i3, r2, o2, a, u, s;
            Object.defineProperty(n4, "__esModule", { value: true }), n4._9t = n4.CharacterType = void 0, i3 = e3("./src/text_Filter/charProcess.ts"), r2 = e3("./src/text_Filter/emoji_helper.ts"), o2 = e3("./src/calc.common.ts"), (function(t5) {
              t5[t5.DBCS_UpperAlphabet = 2147483650] = "DBCS_UpperAlphabet", t5[t5.SBCS_UpperAlphabet = 1073741825] = "SBCS_UpperAlphabet", t5[t5.DBCS_LowerAlphabet = 2147483656] = "DBCS_LowerAlphabet", t5[t5.SBCS_LowerAlphabet = 1073741828] = "SBCS_LowerAlphabet", t5[t5.DBCS_Number = 2147483680] = "DBCS_Number", t5[t5.SBCS_Number = 1073741840] = "SBCS_Number", t5[t5.DBCS_Binary = 2147483776] = "DBCS_Binary", t5[t5.SBCS_Binary = 1073741888] = "SBCS_Binary", t5[t5.DBCS_Hexadecimal = 2147484160] = "DBCS_Hexadecimal", t5[t5.SBCS_Hexadecimal = 1073742080] = "SBCS_Hexadecimal", t5[t5.DBCS_Symbol = 2147485696] = "DBCS_Symbol", t5[t5.SBCS_Symbol = 1073742848] = "SBCS_Symbol", t5[t5.DBCS_NumberSymbol = 2147491840] = "DBCS_NumberSymbol", t5[t5.SBCS_NumberSymbol = 1073745920] = "SBCS_NumberSymbol", t5[t5.DBCS_Katakana = 2147516416] = "DBCS_Katakana", t5[t5.SBCS_Katakana = 1073758208] = "SBCS_Katakana", t5[t5.DBCS_Space = 2147614720] = "DBCS_Space", t5[t5.SBCS_Space = 1073807360] = "SBCS_Space", t5[t5.TwoBytes = 2148007936] = "TwoBytes", t5[t5.FourBytes = 2147745792] = "FourBytes", t5[t5.DBCS_ShiftJIS = 2148532224] = "DBCS_ShiftJIS", t5[t5.DBCS_JISX0208 = 2149580800] = "DBCS_JISX0208", t5[t5.Emoji = 4194304] = "Emoji", t5[t5.IVS = 8388608] = "IVS", t5[t5.DBCS_Hiragana = 2164260864] = "DBCS_Hiragana", t5[t5.Upper_SBCS_Katakana = 1207959552] = "Upper_SBCS_Katakana", t5[t5.Upper_DBCS_Katakana = 2415919104] = "Upper_DBCS_Katakana", t5[t5.Upper_DBCS_Hiragana = 2684354560] = "Upper_DBCS_Hiragana", t5[t5.All = 3321888768] = "All", t5[t5.DBCS_All = 2214592512] = "DBCS_All", t5[t5.SBCS_All = 1107296256] = "SBCS_All", t5[t5.DBCS = 2147483648] = "DBCS", t5[t5.SBCS = 1073741824] = "SBCS";
            })(a = n4.CharacterType || (n4.CharacterType = {})), u = { "Ａ": a.DBCS_UpperAlphabet, A: a.SBCS_UpperAlphabet, "ａ": a.DBCS_LowerAlphabet, a: a.SBCS_LowerAlphabet, "Ｋ": a.DBCS_Katakana, K: a.SBCS_Katakana, "９": a.DBCS_Number, 9: a.SBCS_Number, "＃": a.DBCS_NumberSymbol, "#": a.SBCS_NumberSymbol, "＠": a.DBCS_Symbol, "@": a.SBCS_Symbol, "Ｂ": a.DBCS_Binary, B: a.SBCS_Binary, "Ｘ": a.DBCS_Hexadecimal, X: a.SBCS_Hexadecimal, "Ｊ": a.DBCS_Hiragana, "Ｚ": a.DBCS_All, "Ｍ": a.DBCS_ShiftJIS, "Ｉ": a.DBCS_JISX0208, H: a.SBCS_All, N: a.Upper_SBCS_Katakana, "Ｎ": a.Upper_DBCS_Katakana, "Ｇ": a.Upper_DBCS_Hiragana, "Ｓ": a.DBCS_Space, S: a.SBCS_Space, "Ｔ": a.FourBytes, "Ｄ": a.TwoBytes, "Ｅ": a.Emoji, "Ｖ": a.IVS }, s = (function() {
              function t5(t6, n5, e4) {
                void 0 === e4 && (e4 = true);
                var r3 = this;
                r3.format = n5, r3.includeFormat = "", r3.excludeFormat = "", r3.includeNormalChar = "", r3.excludeNormalChar = "", r3.allowTypes = a.All, r3.excludeTypes = a.All, r3.include = true, r3.autoConvert = t6, r3.charExInstance = new i3.uEt(), r3.keepInvalidChar = e4, r3.parseFormat(r3.format);
              }
              return t5.prototype.parseFormat = function(t6) {
                var n5 = this;
                n5.includeFormat = n5.getIncludeFormat(t6), n5.excludeFormat = n5.getExcludeFormat(t6), n5.parseIncludeFormat(n5.includeFormat), n5.parseExcludeFormat(n5.excludeFormat);
              }, t5.prototype.getIncludeFormat = function(t6) {
                var n5, e4, i4;
                if (null === t6 || 0 === t6.length) return "";
                for (n5 = "", e4 = 0; e4 < t6.length; e4++) if ("\\" === (i4 = t6.substring(e4, e4 + 1))) {
                  if (e4 === t6.length - 1) throw (0, o2.sR)().Exp_FormulaInvalid;
                  n5 = n5 + i4 + t6.substring(e4 + 1, e4 + 2), e4++;
                } else {
                  if ("^" === i4) return n5;
                  n5 += i4;
                }
                return n5;
              }, t5.prototype.getExcludeFormat = function(t6) {
                var n5, e4, i4, r3;
                if (null === t6 || 0 === t6.length) return "";
                for (n5 = 0, e4 = "", i4 = 0; i4 < t6.length; i4++) if ("\\" === (r3 = t6.substring(i4, i4 + 1))) {
                  if (i4 === t6.length - 1) throw (0, o2.sR)().Exp_FormulaInvalid;
                  0 !== n5 && (e4 = e4 + r3 + t6.substring(i4 + 1, i4 + 2)), i4++;
                } else if ("^" === r3) {
                  if (++n5 > 1) throw (0, o2.sR)().Exp_DuplicatedChar;
                } else 0 !== n5 && (e4 += r3);
                return 1 === n5 && (e4 = "^" + e4), e4;
              }, t5.prototype.parseIncludeFormat = function(t6) {
                var n5, e4, i4, r3 = this;
                if (null === t6 || 0 === t6.length) return r3.allowTypes = a.All, r3.includeNormalChar = "", void (r3.includeFormat = "");
                for (r3.allowTypes = 0, r3.includeNormalChar = "", n5 = 0; n5 < t6.length; n5++) switch (t6.charCodeAt(n5)) {
                  case 94:
                    break;
                  case 92:
                    if (n5 === t6.length - 1) throw (0, o2.sR)().Exp_FormulaInvalid;
                    r3.includeNormalChar = r3.includeNormalChar + t6.substring(n5 + 1, n5 + 2), n5++;
                    break;
                  default:
                    e4 = t6[n5], (i4 = u[e4]) ? r3.allowTypes |= i4 : r3.includeNormalChar = r3.includeNormalChar + t6.substring(n5, n5 + 1);
                }
              }, t5.prototype.parseExcludeFormat = function(t6) {
                var n5, e4, i4, r3 = this;
                if (null === t6 || 0 === t6.length) return r3.excludeTypes = a.All, r3.excludeNormalChar = "", void (r3.excludeFormat = "");
                if ("^" === t6) return r3.excludeTypes = a.All, r3.excludeNormalChar = "", void (r3.excludeFormat = "^");
                for (r3.excludeTypes = 0, r3.excludeNormalChar = "", n5 = 0; n5 < t6.length; n5++) switch (t6.charCodeAt(n5)) {
                  case 94:
                    0 === n5 && (r3.include = false);
                    break;
                  case 92:
                    if (n5 === t6.length - 1) throw (0, o2.sR)().Exp_FormulaInvalid;
                    r3.excludeNormalChar = r3.excludeNormalChar + t6.substring(n5 + 1, n5 + 2), n5++;
                    break;
                  default:
                    e4 = t6[n5], (i4 = u[e4]) ? r3.excludeTypes |= i4 : r3.excludeNormalChar = r3.excludeNormalChar + t6.substring(n5, n5 + 1);
                }
              }, t5.prototype.checkText = function(t6) {
                var n5, e4, i4, r3 = this, o3 = t6.length, a2 = { IsInputValid: true, CheckedText: "" };
                for (n5 = 0; n5 < o3; ) "	" !== (e4 = t6.substring(n5, n5 + 1)) && "\r" !== e4 && "\n" !== e4 ? (i4 = r3.check(t6, n5), r3.isNullOrUndefined(i4.index) ? (e4 = i4, n5++) : (n5 = i4.index, e4 = i4.strValue), "" === e4 && (a2.IsInputValid = false)) : n5++, a2.CheckedText += e4;
                return a2;
              }, t5.prototype.check = function(t6, n5) {
                var e4, i4, r3 = this;
                return e4 = null !== n5 ? t6.substring(n5, n5 + 1) : t6, (i4 = r3.IsValid(e4)) ? e4 : r3.autoConvert ? null !== n5 ? r3.Convert(t6, n5) : r3.Convert(e4) : "";
              }, t5.prototype.IsValid = function(t6) {
                var n5 = this;
                if ("" !== n5.excludeFormat) {
                  if (n5.IsValidProcess(t6, n5.excludeTypes, n5.excludeNormalChar)) return false;
                  if ("" !== n5.includeFormat) return n5.IsIncludeValid(t6);
                } else if ("" !== n5.includeFormat) return n5.IsIncludeValid(t6);
                return true;
              }, t5.prototype.Convert = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c, f, l, h = this;
                if (e4 = null === n5 ? t6 : t6.substring(n5, n5 + 1), i4 = false, h.charExInstance.isAlphabet(e4)) return r3 = h.charExInstance.isLower(e4) ? e4.toUpperCase() : e4.toLowerCase(), (i4 = h.IsValid(r3)) ? r3 : (e4 = h.charExInstance.isFullWidth(e4) ? h.charExInstance.toHalfWidth(e4) : h.charExInstance.toFullWidth(e4).text, (i4 = h.IsValid(e4)) ? e4 : (r3 = h.charExInstance.isFullWidth(r3) ? h.charExInstance.toHalfWidth(r3) : h.charExInstance.toFullWidth(r3).text, (i4 = h.IsValid(r3)) ? r3 : h.keepInvalidChar ? e4 : ""));
                if (h.charExInstance.isHiragana(e4)) {
                  if (h.charExInstance.isLowerKana(e4)) {
                    if (o3 = h.charExInstance.toUpperKana(e4), i4 = h.IsValid(o3)) return o3;
                  } else if (h.charExInstance.hasLowerKana(e4) && (a2 = h.charExInstance.toLowerKana(e4), i4 = h.IsValid(a2))) return a2;
                  if (r3 = h.charExInstance.toKatakana(e4), i4 = h.IsValid(r3)) return r3;
                  if (h.charExInstance.isLowerKana(r3)) {
                    if (o3 = h.charExInstance.toUpperKana(r3), i4 = h.IsValid(o3)) return o3;
                  } else if (h.charExInstance.hasLowerKana(r3) && (a2 = h.charExInstance.toLowerKana(r3), i4 = h.IsValid(a2))) return a2;
                  if (u2 = h.charExInstance.toHalfWidthEx(r3), i4 = h.IsValid(u2)) return u2;
                  if (h.charExInstance.isLowerKana(u2)) {
                    if (u2 = h.charExInstance.toUpperKana(u2), i4 = h.IsValid(u2)) return u2;
                  } else if (h.charExInstance.hasLowerKana(u2) && (u2 = h.charExInstance.toLowerKana(u2), i4 = h.IsValid(u2))) return u2;
                  return h.keepInvalidChar ? e4 : "";
                }
                if (h.charExInstance.isKatakana(e4)) {
                  if (h.charExInstance.isLowerKana(e4)) {
                    if (o3 = h.charExInstance.toUpperKana(e4), i4 = h.IsValid(o3)) return o3;
                  } else if (h.charExInstance.hasLowerKana(e4) && (a2 = h.charExInstance.toLowerKana(e4), i4 = h.IsValid(a2))) return a2;
                  if (s2 = false, r3 = e4, h.charExInstance.isFullWidth(e4)) {
                    if ((c = h.charExInstance.toHalfWidthEx(e4)).length > 0 && (i4 = h.IsValid(c))) return c;
                    if (h.charExInstance.isLowerKana(c)) {
                      if (c = h.charExInstance.toUpperKana(c), i4 = h.IsValid(c)) return c;
                    } else if (h.charExInstance.hasLowerKana(c) && (c = h.charExInstance.toLowerKana(c), i4 = h.IsValid(c))) return c;
                  } else {
                    if (null === n5) {
                      if (r3 = h.charExInstance.toFullWidth(e4).text, !h.charExInstance.isKatakana(r3)) return h.keepInvalidChar ? e4 : "";
                      if (i4 = h.IsValid(r3)) return r3;
                    } else {
                      if (n5 + 1 < t6.length ? (r3 = (f = h.charExInstance.toFullWidth(t6.substring(n5, n5 + 2))).text, s2 = f.processedAll) : r3 = h.charExInstance.toFullWidth(e4).text, !h.charExInstance.isKatakana(r3)) return h.keepInvalidChar ? e4 : "";
                      if (i4 = h.IsValid(r3)) return n5++, s2 && n5++, (l = {}).index = n5, l.strValue = r3, l;
                    }
                    if (h.charExInstance.isLowerKana(r3)) {
                      if (o3 = h.charExInstance.toUpperKana(r3), i4 = h.IsValid(o3)) return o3;
                    } else if (h.charExInstance.hasLowerKana(r3) && (a2 = h.charExInstance.toLowerKana(r3), i4 = h.IsValid(a2))) return a2;
                  }
                  if (r3 = h.charExInstance.toHiragana(r3), i4 = h.IsValid(r3)) return null !== n5 ? (n5++, s2 && n5++, (l = {}).index = n5, l.strValue = r3, "ゔ" === r3 && (l.strValue = s2 ? "う゛" : ""), l) : "ゔ" === r3 ? h.keepInvalidChar ? e4 : "" : r3;
                  if (h.charExInstance.isLowerKana(r3)) {
                    if (o3 = h.charExInstance.toUpperKana(r3), i4 = h.IsValid(o3)) return o3;
                  } else if (h.charExInstance.hasLowerKana(r3) && (a2 = h.charExInstance.toLowerKana(r3), i4 = h.IsValid(a2))) return a2;
                }
                return e4 = h.charExInstance.isFullWidth(e4) ? h.charExInstance.toHalfWidth(e4) : h.charExInstance.toFullWidth(e4).text, (i4 = h.IsValid(e4)) || h.keepInvalidChar ? e4 : "";
              }, t5.prototype.IsIncludeValid = function(t6) {
                var n5 = this;
                return n5.IsValidProcess(t6, n5.allowTypes, n5.includeNormalChar);
              }, t5.prototype.IsValidProcess = function(t6, n5, e4) {
                var i4, o3, u2 = this;
                if (-1 !== e4.indexOf(t6)) return true;
                if ("	" === t6 || "\r" === t6 || "\n" === t6) return true;
                if (0 === n5) return false;
                if (i4 = false, n5 === a.All || (n5 & a.Emoji) === (0 | a.Emoji) && r2.cEt.isEmoji(t6, 0, {}) || (n5 & a.FourBytes) === (0 | a.FourBytes) && u2.IsFourBytes(t6)) return true;
                if (1 === t6.length && t6.length > 1) return false;
                if (u2.charExInstance.isFullWidth(t6)) {
                  if ((n5 & a.DBCS) !== (0 | a.DBCS)) return false;
                  (n5 & a.DBCS_All) === (0 | a.DBCS_All) && "　" !== t6 || (n5 & a.DBCS_LowerAlphabet) === (0 | a.DBCS_LowerAlphabet) && u2.IsLower(t6) || (n5 & a.DBCS_UpperAlphabet) === (0 | a.DBCS_UpperAlphabet) && u2.IsUpper(t6) || (n5 & a.DBCS_Number) === (0 | a.DBCS_Number) && u2.IsNumber(t6) || (n5 & a.DBCS_Binary) === (0 | a.DBCS_Binary) && u2.IsBinary(t6) || (n5 & a.DBCS_Hexadecimal) === (0 | a.DBCS_Hexadecimal) && u2.IsHex(t6) || (n5 & a.DBCS_Symbol) === (0 | a.DBCS_Symbol) && u2.IsSymbol(t6) || (n5 & a.DBCS_NumberSymbol) === (0 | a.DBCS_NumberSymbol) && u2.IsNumberSymbol(t6) || (n5 & a.Upper_DBCS_Katakana) === (0 | a.Upper_DBCS_Katakana) && u2.IsKatakana(t6) && u2.IsUpperKana(t6) || (n5 & a.Upper_DBCS_Hiragana) === (0 | a.Upper_DBCS_Hiragana) && u2.IsHiragana(t6) && u2.IsUpperKana(t6) || (n5 & a.DBCS_Space) === (0 | a.DBCS_Space) && u2.IsFormatSpace(t6) || (n5 & a.FourBytes) === (0 | a.FourBytes) && u2.IsFourBytes(t6) || (n5 & a.TwoBytes) === (0 | a.TwoBytes) && !u2.IsFourBytes(t6) && "　" !== t6 ? i4 = true : (n5 & a.DBCS_Katakana) === (0 | a.DBCS_Katakana) && u2.IsKatakana(t6) ? i4 = !(o3 = u2.IsHiragana(t6)) || (!!u2.include || (n5 & a.DBCS_Hiragana) === (0 | a.DBCS_Hiragana)) : (n5 & a.DBCS_Hiragana) === (0 | a.DBCS_Hiragana) && u2.IsHiragana(t6) && (i4 = !(o3 = u2.IsKatakana(t6)) || (!!u2.include || (n5 & a.DBCS_Katakana) === (0 | a.DBCS_Katakana)));
                } else {
                  if ((n5 & a.SBCS) !== a.SBCS) return false;
                  ((n5 & a.SBCS_All) === a.SBCS_All && " " !== t6 || (n5 & a.SBCS_LowerAlphabet) === a.SBCS_LowerAlphabet && u2.IsLower(t6) || (n5 & a.SBCS_UpperAlphabet) === a.SBCS_UpperAlphabet && u2.IsUpper(t6) || (n5 & a.SBCS_Number) === a.SBCS_Number && u2.IsNumber(t6) || (n5 & a.SBCS_Binary) === a.SBCS_Binary && u2.IsBinary(t6) || (n5 & a.SBCS_Hexadecimal) === a.SBCS_Hexadecimal && u2.IsHex(t6) || (n5 & a.SBCS_Symbol) === a.SBCS_Symbol && u2.IsSymbol(t6) || (n5 & a.SBCS_NumberSymbol) === a.SBCS_NumberSymbol && u2.IsNumberSymbol(t6) || (n5 & a.SBCS_Katakana) === a.SBCS_Katakana && u2.IsKatakana(t6) || (n5 & a.Upper_SBCS_Katakana) === a.Upper_SBCS_Katakana && u2.IsKatakana(t6) && u2.IsUpperKana(t6) || (n5 & a.SBCS_Space) === a.SBCS_Space && u2.IsFormatSpace(t6)) && (i4 = true);
                }
                return i4;
              }, t5.prototype.IsUpper = function(t6) {
                return this.charExInstance.isUpper(t6);
              }, t5.prototype.IsLower = function(t6) {
                return this.charExInstance.isLower(t6);
              }, t5.prototype.IsNumber = function(t6) {
                return this.charExInstance.isDigit(t6);
              }, t5.prototype.IsBinary = function(t6) {
                return "0" === (t6 = this.IsFullWidth(t6) ? this.ToHalfWidth(t6) : t6) || "1" === t6;
              }, t5.prototype.IsHex = function(t6) {
                var n5 = this;
                return "A" === (t6 = n5.IsFullWidth(t6) ? n5.ToHalfWidth(t6) : t6) || "B" === t6 || "C" === t6 || "D" === t6 || "E" === t6 || "F" === t6 || "a" === t6 || "b" === t6 || "c" === t6 || "d" === t6 || "e" === t6 || "f" === t6 || n5.IsDigit(t6);
              }, t5.prototype.IsNumberSymbol = function(t6) {
                var n5 = this;
                return t6 = n5.IsFullWidth(t6) ? n5.ToHalfWidth(t6) : t6, n5.IsDigit(t6) || "+" === t6 || "-" === t6 || "$" === t6 || "%" === t6 || "\\" === t6 || "," === t6 || "." === t6;
              }, t5.prototype.IsKatakana = function(t6) {
                return this.charExInstance.isKatakana(t6);
              }, t5.prototype.IsHiragana = function(t6) {
                return this.charExInstance.isHiragana(t6);
              }, t5.prototype.IsFullWidth = function(t6) {
                return this.charExInstance.isFullWidth(t6);
              }, t5.prototype.ToHalfWidth = function(t6) {
                return this.charExInstance.toHalfWidth(t6);
              }, t5.prototype.IsDigit = function(t6) {
                return this.charExInstance.isDigit(t6);
              }, t5.prototype.IsFourBytes = function(t6) {
                var n5, e4 = this.charExInstance, i4 = t6.substring(0, 1);
                if (2 === i4.length) {
                  for (n5 = 0; n5 < i4.length; n5++) if (e4.isSurrogate(i4[n5])) return true;
                }
                return false;
              }, t5.prototype.IsFormatSpace = function(t6) {
                return " " === t6 || "　" === t6;
              }, t5.prototype.IsSymbol = function(t6) {
                var n5 = this;
                return n5.charExInstance.isHalfWidthSymbol(t6) || n5.charExInstance.isFullWidthSymbol(t6);
              }, t5.prototype.IsUpperKana = function(t6) {
                return this.charExInstance.isUpperKana(t6);
              }, t5.prototype.isNullOrUndefined = function(t6) {
                return null == t6;
              }, t5;
            })(), n4._9t = s;
          }, Common: function(t4) {
            t4.exports = e2("Common");
          } }, r = {};
          function o(t4) {
            var e3, i3 = r[t4];
            return void 0 !== i3 ? i3.exports : (e3 = r[t4] = { exports: {} }, n3[t4].call(e3.exports, e3, e3.exports, o), e3.exports);
          }
          t3 = o("./src/calc.entry.ts"), ((i2 = void 0 === i2 ? {} : i2).Spread = i2.Spread || {}).CalcEngine = t3;
        })(), t2.exports = i2.Spread.CalcEngine;
      }, "./node_modules_local/@spreadjs/js-calc/index.js": function(t2, n2, e2) {
        t2.exports = e2("./node_modules_local/@spreadjs/js-calc/dist/gc.spread.calcengine.js");
      }, "./node_modules_local/@spreadjs/js-data-manager/dist/gc.data.js": function(t2, n2, e2) {
        var i2;
        !(function() {
          var t3, n3 = { "./dist/src/calculation/calc-array-ex.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2 = this && this.qKr || (a = function(t5, n5) {
              return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, a(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              a(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CalcArrayEx = void 0, r2 = (function(t5) {
              function n5() {
                return null !== t5 && t5.apply(this, arguments) || this;
              }
              return o2(n5, t5), n5.prototype.toArray = function(t6, n6, e4, r3, o3, a2, u) {
                var s, c, f, l, h, d, v, p, g, m, b;
                if (void 0 === n6 && (n6 = true), c = this, f = 0, l = 0, h = [], p = i3.Convert.CalcConvertedError, f = c.getRowCount()) for (g = 0; g < f; g++) for (n6 || (v = [], h.push(v)), m = (null === (s = c.array[g]) || void 0 === s ? void 0 : s.length) || 0, l = Math.max(l, m), b = 0; b < m; b++) {
                  if (d = c.getValue(g, b), c.referenceInTwoDimension && (0, i3.LE)(d) && (d = d.getValueByIndex(0)), e4 && (0, i3.BJ)(d)) return (h = [d]).isError = true, h;
                  if (d = (0, i3.Nbt)(d, t6, false, a2), r3 && d === p) return (h = [d]).isConvertError = true, h;
                  n6 ? h.push(d) : v.push(d);
                }
                return h.rowCount = f, h.colCount = l, h.rangeCount = 1, h;
              }, n5.prototype.getValue = function(t6, n6) {
                var e4, r3 = this.array, o3 = t6;
                return "number" != typeof n6 && (o3 = (e4 = t6).row, n6 = e4.column), o3 < 0 || n6 < 0 || o3 >= r3.length || !r3[o3] || n6 >= r3[o3].length ? i3.errors.Value : this.array[o3][n6];
              }, n5;
            })((i3 = e3("CalcEngine")).CalcArray), n4.CalcArrayEx = r2;
          }, "./dist/src/calculation/calcSource.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s = this && this.qKr || (c = function(t5, n5) {
              return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, c(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              c(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), c;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerCalcSource = n4.DataManagerReference = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/calc-array-ex.js"), a = (function() {
              function t5() {
                this.row = [], this.field = [];
              }
              return t5.prototype.parseRowIndex = function(t6, n5, e4) {
                var i4 = n5.num;
                return n5.relative || (-1 === n5.num ? i4 = t6 - 1 : i4--), e4 * n5.relative + i4;
              }, t5.prototype.getValueImp = function(t6) {
                var n5, e4, i4, a2, u2, s2, c2, f = this.table.length();
                if (this.field.vEt && this.field.vEt[this.rowString]) return this.field.vEt[this.rowString];
                if (n5 = [], 0 === this.row.length) for (e4 = 0; e4 < f; e4++) n5.push(this.field.getValue(e4));
                for (i4 = 0; i4 < this.row.length; i4++) if (2 === (a2 = this.row[i4]).length) for (u2 = this.parseRowIndex(f, a2[0], t6), s2 = this.parseRowIndex(f, a2[1], t6), c2 = u2; c2 <= s2; c2++) n5.push(this.field.getValue(c2));
                else if (a2.type) if ("key" === a2.type) e4 = this.table.mEt(a2.value), n5 = n5.concat(this.field.getValues(e4));
                else for (c2 = "odd" === a2.type ? 1 : 0; c2 < f; c2 += 2) n5.push(this.field.getValue(c2));
                else e4 = this.parseRowIndex(f, a2, t6), n5.push(this.field.getValue(e4));
                if (1 === n5.length) n5 = n5[0];
                else if (0 === n5.length) return null;
                return (0, r2.isArray)(n5) && (n5 = (0, r2.isArray)(n5[0]) ? new o2.CalcArrayEx(n5) : new o2.CalcArrayEx([n5])), this.gEt || (this.field.vEt = this.field.vEt || {}, this.field.vEt[this.rowString] = n5), n5;
              }, t5.prototype.getValuesImp = function(t6, n5, e4, i4, a2, u2) {
                var s2 = this.field.getValues(t6, n5, e4, i4, a2, u2);
                return (0, r2.isArray)(s2[0]) ? new o2.CalcArrayEx(s2) : new o2.CalcArrayEx([s2]);
              }, t5.prototype.getValue = function(t6, n5, e4, i4, o3, a2) {
                return this.pEt(), (0, r2.isArray)(t6) ? this.getValuesImp(t6, n5, e4, i4, o3, a2) : this.getValueImp(t6);
              }, t5.prototype.pEt = function() {
                this.field = this.table.rRt(this.Pq);
              }, t5;
            })(), n4.DataManagerReference = a, u = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.nM = e4, i4.MEt = {}, i4;
              }
              return s(n5, t5), n5.prototype.yEt = function() {
                return this.$Jr;
              }, n5.prototype.wEt = function(t6, n6) {
                2 === arguments.length ? this.MEt[t6] = n6 : 1 === arguments.length && delete this.MEt[t6];
              }, n5.prototype.pe = function(t6, n6, e4, i4, r3, o3, a2) {
                this.DJ = t6, this.ak = n6, this.pwn = e4, this.GOt = i4, this.uye = r3, this.sye = o3, this.R6t = a2;
              }, n5.prototype.getField = function(t6) {
                var n6 = this.DJ, e4 = this.ak, i4 = this.pwn, r3 = this.uye, o3 = this.sye, a2 = this.R6t;
                return t6.getValue(n6, e4, i4, r3, o3, a2);
              }, n5.prototype.getValue = function() {
                var t6 = this.GOt;
                return t6 && "number" == typeof this.DJ ? this.nM._getValueByField(t6, this.DJ) : null;
              }, n5;
            })(i3.CalcSource), n4.DataManagerCalcSource = u;
          }, "./dist/src/calculation/functions/aggregationFunctions/dataModel.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5, n5, e4, r3, u2, c2, f2, d2) {
              var v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N = h(t5, r3);
              if (u2 > N.length) return i3.Errors.Value;
              if (c2 > (v = h(n5, r3)).length) return i3.Errors.Value;
              for (p = h(e4, r3), r3 === a.FieldHeaders.NoButGenerate && (N.forEach((function(t6, n6) {
                return t6.itn = (0, i3.sR)().Aggregate_RowField + " ".concat(n6 + 1);
              })), v.forEach((function(t6, n6) {
                return t6.itn = (0, i3.sR)().Aggregate_ColumnField + " ".concat(n6 + 1);
              })), p.forEach((function(t6, n6) {
                return t6.itn = (0, i3.sR)().Aggregate_Value + " ".concat(n6 + 1);
              }))), l(g = N.map((function(t6) {
                return t6;
              })), v), l(g, p), m = new Map(g.map((function(t6, n6) {
                return [t6._getName(), "c".concat(n6 + 1)];
              }))), b = g.map((function(t6, n6) {
                return "c".concat(n6 + 1);
              })), y = g[0].jit, w = [], M = function(t6) {
                var n6 = {};
                b.forEach((function(e5, i4) {
                  return n6[e5] = g[i4].Sl(t6);
                })), w.push(n6);
              }, C = 0; C < y; C++) M(C);
              return S = N.map((function(t6) {
                return m.get(t6._getName());
              })), T = v.map((function(t6) {
                return m.get(t6._getName());
              })), x = p.map((function(t6) {
                return m.get(t6._getName());
              })), (A = new o2.DataManager()).addTable("t1", { data: w }).fetchSync(), I = { tableName: "t1", rowColumns: S, colColumns: T, valueColumns: x, rowTotalDepth: u2, colTotalDepth: c2, rowSortOrder: f2, colSortOrder: d2 }, k = new s().generate(I), i3.Convert.BJ(k) ? k : (A.generateTreeData(k), { dataSource: A, tableName: "t1", rowFields: N, colFields: v, valueFields: p, fieldNameToColumnNames: m, treeData: k });
            }
            function l(t5, n5) {
              n5.forEach((function(n6) {
                t5.findIndex((function(t6) {
                  return t6._getName() === n6._getName();
                })) < 0 && t5.push(n6);
              }));
            }
            function h(t5, n5) {
              var e4, i4, r3, o3;
              if (u(t5)) return [];
              for (e4 = [], i4 = a.FieldHeaders.YesAndDoNotShow === n5 || a.FieldHeaders.YesAndShow === n5, r3 = function(n6) {
                var r4 = { lp: c++, zkr: i4 ? 1 : 0, Bwt: n6, rT: t5, _getName: d, jit: i4 ? t5.rowCount - 1 : t5.rowCount, Sl: function(t6) {
                  return this.rT[this.zkr + t6][this.Bwt];
                }, Vkr: function() {
                  var t6, n7 = [];
                  for (t6 = 0; t6 < this.jit; t6++) n7.push(this.Sl(t6));
                  return n7;
                } };
                i4 && (r4.itn = r4.Sl(-1)), e4.findIndex((function(t6) {
                  return t6._getName() === r4._getName();
                })) < 0 && e4.push(r4);
              }, o3 = 0; o3 < t5.colCount; o3++) r3(o3);
              return e4;
            }
            function d() {
              return "c" + this.lp.toString(36);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Ykr = n4.TreeDataContextGenerator = void 0, i3 = e3("CalcEngine"), r2 = e3("Common"), o2 = e3("./dist/src/dataManager.js"), a = e3("./dist/src/calculation/functions/aggregationFunctions/interface.js"), u = r2.Common.lt.ht, s = (function() {
              function t5() {
              }
              return t5.prototype.generate = function(t6) {
                var n5, e4, r3 = this;
                return this.Zkr = t6, this.s_i = {}, this.Mur = {}, this.Wkr = {}, this.Qkr = 1, this.Jkr() ? i3.Errors.Value : (n5 = function(t7) {
                  return r3.Mur[t7];
                }, e4 = { verticalExpansionTrees: this.Kkr(), horizontalExpansionTrees: this.Xkr(), crossCells: [], cellNodeGetter: n5 }, this.qkr(e4.crossCells), this.$kr(), e4);
              }, t5.prototype.Jkr = function() {
                if (u(this.Zkr)) return true;
                var t6 = this.Zkr, n5 = t6.rowColumns, e4 = t6.colColumns, i4 = t6.colTotalDepth, r3 = t6.rowTotalDepth;
                return !!(r3 && n5 && r3 > n5.length) || !!(i4 && e4 && i4 > e4.length);
              }, t5.prototype.Kkr = function() {
                var t6 = this.Zkr, n5 = t6.tableName, e4 = t6.rowColumns;
                return this.tDr(n5, e4, "V");
              }, t5.prototype.Xkr = function() {
                var t6 = this.Zkr, n5 = t6.tableName, e4 = t6.colColumns;
                return this.tDr(n5, e4, "H");
              }, t5.prototype.tDr = function(t6, n5, e4) {
                var i4, r3 = this, o3 = [];
                return n5 && (i4 = null, n5.forEach((function(n6, a2) {
                  var u2 = { templateCell: { dataColumn: { tableName: t6, columnName: n6 }, dataSetting: { type: "Group" }, expansionDirection: e4, sorts: [{ asc: n6 }] }, children: [], leftParent: "V" === e4 ? i4 : null, upParent: "H" === e4 ? i4 : null, data: { groups: [] }, indexOfLeftParentChildren: i4 ? 0 : -1, indexOfUpParentChildren: -1 };
                  r3.s_i["".concat(e4, "-").concat(a2)] = u2, i4 ? i4.children.push(u2) : o3.push({ root: u2 }), i4 = u2;
                }))), o3;
              }, t5.prototype.qkr = function(t6) {
                var n5, e4, i4 = this.Zkr.valueColumns || [];
                if (0 !== i4.length) {
                  if (n5 = this.Zkr.rowColumns || [], e4 = this.Zkr.colColumns || [], n5.length > 0 && e4.length > 0) return this.nDr(t6), this.eDr(), void this.iDr();
                  n5.length > 0 ? this.eDr() : e4.length > 0 && this.iDr();
                }
              }, t5.prototype.nDr = function(t6) {
                var n5, e4 = this, i4 = this.Zkr, r3 = i4.tableName, o3 = i4.valueColumns, a2 = i4.rowColumns, u2 = i4.colColumns, s2 = function(n6) {
                  var i5, a3 = c2.s_i["V-".concat(n6)], s3 = function(n7) {
                    var i6 = c2.s_i["H-".concat(n7)];
                    o3.forEach((function(n8) {
                      e4.rDr(r3, n8, a3, i6, t6);
                    }));
                  };
                  for (i5 = u2.length - 1; i5 >= 0; i5--) s3(i5);
                }, c2 = this;
                for (n5 = a2.length - 1; n5 >= 0; n5--) s2(n5);
              }, t5.prototype.eDr = function() {
                var t6, n5 = this, e4 = this.Zkr, i4 = e4.tableName, r3 = e4.valueColumns, o3 = e4.rowColumns, a2 = function(t7) {
                  r3.forEach((function(e5) {
                    n5.rDr(i4, e5, n5.s_i["V-".concat(t7)], null);
                  }));
                };
                for (t6 = o3.length - 1; t6 >= 0; t6--) a2(t6);
              }, t5.prototype.iDr = function() {
                var t6, n5 = this, e4 = this.Zkr, i4 = e4.tableName, r3 = e4.valueColumns, o3 = e4.colColumns, a2 = function(t7) {
                  r3.forEach((function(e5) {
                    n5.rDr(i4, e5, null, n5.s_i["H-".concat(t7)]);
                  }));
                };
                for (t6 = o3.length - 1; t6 >= 0; t6--) a2(t6);
              }, t5.prototype.rDr = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = { templateCell: { dataColumn: { tableName: t6, columnName: n5 }, dataSetting: { type: "List" }, expansionDirection: "No" }, children: [], leftParent: e4, upParent: i4, data: { groups: [] }, indexOfLeftParentChildren: -1, indexOfUpParentChildren: -1 }, u2 = function(t7) {
                  var n6 = o3.oDr();
                  o3.s_i[t7] = a2, o3.Mur[n6] = a2, o3.Wkr[t7] = n6;
                };
                e4 && (e4.children.push(a2), a2.indexOfLeftParentChildren = e4.children.length - 1, i4 || u2("V-".concat(e4.templateCell.dataColumn.columnName, "-VALUE-").concat(n5))), i4 && (i4.children.push(a2), a2.indexOfUpParentChildren = i4.children.length - 1, e4 || u2("H-".concat(i4.templateCell.dataColumn.columnName, "-VALUE-").concat(n5))), e4 && i4 && r3 && r3.push(a2);
              }, t5.prototype.oDr = function() {
                return "A".concat(this.Qkr++);
              }, t5.prototype.$kr = function() {
                var t6 = this.Zkr, n5 = t6.rowSortOrder, e4 = t6.rowColumns, i4 = t6.colSortOrder, r3 = t6.colColumns;
                this.aDr(n5, e4, "V"), this.aDr(i4, r3, "H");
              }, t5.prototype.aDr = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2 = this;
                if (t6 && n5 && 0 !== n5.length) {
                  if (i4 = function(t7) {
                  }, "number" == typeof t6) return (r3 = Math.abs(t6)) > n5.length ? void i4(t6) : void (r3 <= n5.length && t6 < 0 && ((o3 = this.s_i["".concat(e4, "-").concat(r3 - 1)]).templateCell.sorts = [{ desc: o3.templateCell.dataColumn.columnName }]));
                  if (Array.isArray(t6)) {
                    if (-1 !== (a2 = t6.findIndex((function(t7) {
                      return Math.abs(t7) > n5.length;
                    })))) return void i4(t6[a2]);
                    t6.forEach((function(t7) {
                      if (t7 < 0) {
                        var n6 = u2.s_i["".concat(e4, "-").concat(Math.abs(t7) - 1)];
                        n6.templateCell.sorts = [{ desc: n6.templateCell.dataColumn.columnName }];
                      }
                    }));
                  }
                }
              }, t5;
            })(), n4.TreeDataContextGenerator = s, n4.Ykr = f, c = 0;
          }, "./dist/src/calculation/functions/aggregationFunctions/index.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f;
            function l(t5, n5, e4, r3, c2, l2, d2, p2, m2, b, y, w, M) {
              var C, S, T, x, A, I, k, N, j, D, _, O;
              if (s(n5) && s(e4) && s(r3)) return i3.Errors.Value;
              if (S = n5 && i3.Convert.iV(n5, 0, false), T = e4 && i3.Convert.iV(e4, 0, false), x = r3 && i3.Convert.iV(r3, 0, false), y = y && i3.Convert.iV(y, 0, true), A = (S || T || x).rowCount, I = (T || x || S).rowCount, k = (x || S || T).rowCount, A !== I || A !== k) return i3.Errors.Value;
              if (w && (M && 1 !== w && 0 !== w || !M && (w < 0 || w > 4))) return i3.Errors.Value;
              if (N = l2, s(l2) && (N = v(x)), y) {
                if (A !== y.length + 1 || N !== o2.FieldHeaders.YesAndShow && N !== o2.FieldHeaders.YesAndDoNotShow || y.unshift(1), A !== y.length) return i3.Errors.Value;
                C = h(S, T, x, N, y), S = C.rows, T = C.cols, x = C.valueArray;
              }
              if (s(d2) && !s(n5) && (d2 = S.colCount >= 2 && p2 && Math.abs(p2) > S.colCount && !w ? S.colCount : 1), s(m2) && !s(e4) && (m2 = T.colCount >= 2 && p2 && Math.abs(p2) > S.colCount && !w ? T.colCount : 1), p2 && (p2 = i3.Convert.iV(p2, 0, true)).length > 1 && p2.some((function(t6) {
                return 0 === t6 || Math.abs(t6) > S.colCount;
              }))) return i3.Errors.Value;
              if (b && (b = i3.Convert.iV(b, 0, true)).length > 1 && b.some((function(t6) {
                return 0 === t6 || Math.abs(t6) > T.colCount;
              }))) return i3.Errors.Value;
              if (0 === p2 || 0 === b) return i3.Errors.Value;
              if (j = (0, a.Ykr)(S, T, x, N, Math.abs(d2), Math.abs(m2), p2, b), f(j)) return j;
              if (D = r3 ? g(c2, j.valueFields, t5) : [], f(D)) return D;
              if (D.headers && !D.uDr && s(l2) && N === o2.FieldHeaders.YesAndDoNotShow && (N = o2.FieldHeaders.YesAndShow), p2 && 1 === p2.length) {
                if (_ = Math.abs(p2[0]), O = x.colCount, D.uDr ? O = 1 : 1 === O && D.valueFieldRepeat && (O = D.valueFieldRepeat), _ > S.colCount && _ <= S.colCount + O) j.sDr = _ - S.colCount, p2[0] < 0 && (j.sDr = -j.sDr);
                else {
                  if (!(_ > 0 && _ <= S.colCount)) return i3.Errors.Value;
                  p2 = p2[0];
                }
                j.wwn = p2;
              }
              if (b && 1 === b.length) {
                if (_ = Math.abs(b[0]), O = x.colCount, D.uDr ? 1 === O && D.valueFieldRepeat && (O = D.valueFieldRepeat) : O = 1, _ > T.colCount && _ <= T.colCount + O) j.cDr = _ - T.colCount, b[0] < 0 && (j.cDr = -j.cDr);
                else {
                  if (!(_ > 0 && _ <= T.colCount)) return i3.Errors.Value;
                  b = b[0];
                }
                j.fDr = b;
              }
              return M ? new u.lDr(j, D, N, d2, w).GY() : new u.hDr(j, D, N, d2, m2, w).GY();
            }
            function h(t5, n5, e4, i4, r3) {
              var a2, u2 = t5 && [], s2 = n5 && [], c2 = e4 && [];
              function f2(i5) {
                u2 && u2.push(t5[i5]), s2 && s2.push(n5[i5]), c2 && c2.push(e4[i5]);
              }
              for (u2 && (u2.colCount = t5.colCount), s2 && (s2.colCount = n5.colCount), c2 && (c2.colCount = e4.colCount), (i4 === o2.FieldHeaders.YesAndDoNotShow || i4 === o2.FieldHeaders.YesAndShow || r3[0]) && f2(0), a2 = 1; a2 < r3.length; a2++) r3[a2] && f2(a2);
              return u2 && (u2.rowCount = u2.length), s2 && (s2.rowCount = s2.length), c2 && (c2.rowCount = c2.length), { rows: u2, cols: s2, valueArray: c2 };
            }
            function d(t5, n5, e4, i4, r3, o3, a2, u2, s2) {
              return l(t5, n5, null, e4, i4, r3, o3, a2, null, null, u2, s2, true);
            }
            function v(t5) {
              var n5, e4, i4;
              return s(t5) || (n5 = t5.rowCount) < 2 ? o2.FieldHeaders.No : (e4 = t5[0][0], i4 = t5[1][0], "string" == typeof e4 && c(i4) ? o2.FieldHeaders.YesAndDoNotShow : o2.FieldHeaders.No);
            }
            function p(t5) {
              return new i3.CalcArray(t5.map((function(t6) {
                return [t6];
              })));
            }
            function g(t5, n5, e4) {
              var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, m2;
              if (e4.N_t = false, (0, i3.isLambdaFunction)(t5)) return 1 === (r3 = t5).parameters.length ? n5.map((function(t6) {
                return function(t7) {
                  return (0, i3.Hkr)(e4, r3, [p(t7)], true, true);
                };
              })) : n5.map((function(t6) {
                return function(t7, n6) {
                  return (0, i3.Hkr)(e4, r3, [p(t7), p(n6)], true, true);
                };
              }));
              if ((0, i3.isFunction)(t5)) return (o3 = e4.source && e4.source.Lbt && e4.source.Lbt.MX) ? ((a2 = (0, i3.YJ)(t5, null, 0, 0)).ywr = true, "PERCENTOF" === t5.name ? n5.map((function(t6) {
                return function(t7, n6) {
                  return a2.arguments = [p(t7), p(n6)], o3.evaluate(a2, e4, false, false);
                };
              })) : n5.map((function(t6) {
                return function(t7) {
                  return a2.arguments = [p(t7)], o3.evaluate(a2, e4, false, false);
                };
              }))) : i3.Errors.Calc;
              if (t5.array) {
                if (u2 = t5.getRowCount(), s2 = t5.getColumnCount(), 1 === u2 && 1 === s2) return g(t5.getValue(0, 0), n5, e4);
                if ((0, i3.isFunction)(t5.getValue(0, 1))) {
                  if (u2 > 2) return i3.Errors.Value;
                  if (c2 = { func: [] }, 1 !== n5.length && n5.length !== s2) return i3.Errors.Value;
                  for (f2 = 0; f2 < s2; f2++) c2[f2] = g(t5.getValue(0, f2), n5, e4)[0];
                  for (1 === n5.length && (c2.valueFieldRepeat = s2), l2 = u2 > 1, c2.headers = [], h2 = 0, d2 = void 0, f2 = 0; f2 < s2; f2++) l2 ? c2.headers[f2] = t5.getValue(1, f2) : (v2 = t5.getValue(0, f2), (0, i3.isLambdaFunction)(v2) ? 1 === ++h2 ? (c2.headers[f2] = "CUSTOM", d2 = f2) : h2 > 0 && (c2.headers[f2] = "CUSTOM" + h2, 2 === h2 && (c2.headers[d2] = "CUSTOM1")) : c2.headers[f2] = v2.name);
                  return c2;
                }
                if ((0, i3.isFunction)(t5.getValue(1, 0))) {
                  if (s2 > 2) return i3.Errors.Value;
                  if (c2 = { func: [] }, 1 !== n5.length && n5.length !== u2) return i3.Errors.Value;
                  for (m2 = 0; m2 < u2; m2++) c2[m2] = g(t5.getValue(m2, 0), n5, e4)[0];
                  for (1 === n5.length && (c2.valueFieldRepeat = u2), c2.uDr = u2 > 1, l2 = s2 > 1, c2.headers = [], h2 = 0, d2 = void 0, m2 = 0; m2 < u2; m2++) l2 ? c2.headers[m2] = t5.getValue(m2, 1) : (v2 = t5.getValue(m2, 0), c2.headers[m2] = (0, i3.isLambdaFunction)(v2) ? "CUSTOM" : v2.name, (0, i3.isLambdaFunction)(v2) ? 1 === ++h2 ? (c2.headers[m2] = "CUSTOM", d2 = m2) : h2 > 0 && (c2.headers[m2] = "CUSTOM" + h2, 2 === h2 && (c2.headers[d2] = "CUSTOM1")) : c2.headers[m2] = v2.name);
                  return c2;
                }
              }
              return i3.Errors.Name;
            }
            function m() {
              i3.Functions.F6t("GROUPBY", d, 3, 8, void 0, [0, 1, 2, 6], [0, 1, 2, 5, 6], { r9t: true }, true), i3.Functions.F6t("PIVOTBY", l, 4, 11, void 0, [0, 1, 2, 3, 9], [0, 1, 2, 3, 6, 8, 9], { r9t: true }, true);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.HEr = void 0, i3 = e3("CalcEngine"), r2 = e3("Common"), o2 = e3("./dist/src/calculation/functions/aggregationFunctions/interface.js"), a = e3("./dist/src/calculation/functions/aggregationFunctions/dataModel.js"), u = e3("./dist/src/calculation/functions/aggregationFunctions/pivotLayout.js"), s = r2.Common.lt.ht, c = i3.Convert.q8, f = i3.Convert.BJ, n4.HEr = m;
          }, "./dist/src/calculation/functions/aggregationFunctions/interface.js": function(t4, n4) {
            "use strict";
            var e3, i3;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.TotalDepth = n4.FieldHeaders = void 0, (function(t5) {
              t5[t5.No = 0] = "No", t5[t5.YesAndDoNotShow = 1] = "YesAndDoNotShow", t5[t5.NoButGenerate = 2] = "NoButGenerate", t5[t5.YesAndShow = 3] = "YesAndShow";
            })(e3 = n4.FieldHeaders || (n4.FieldHeaders = {})), (function(t5) {
              t5[t5.NoTotal = 0] = "NoTotal", t5[t5.GrandTotals = 1] = "GrandTotals", t5[t5.GrandAndSubtotals = 2] = "GrandAndSubtotals", t5[t5.GrandTotalsAtTopOrLeft = -1] = "GrandTotalsAtTopOrLeft", t5[t5.GrandAndSubtotalsAtTopOrLeft = -2] = "GrandAndSubtotalsAtTopOrLeft";
            })(i3 = n4.TotalDepth || (n4.TotalDepth = {}));
          }, "./dist/src/calculation/functions/aggregationFunctions/pivotLayout.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d = this && this.qKr || (v = function(t5, n5) {
              return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, v(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              v(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), v;
            function p(t5, n5, e4) {
              return u(t5) && (t5 = 0), u(n5) && (n5 = 0), t5 && (0, a.isCalcError)(t5) ? e4 ? -1 : 1 : n5 && (0, a.isCalcError)(n5) || (0, a.isString)(t5) && "number" == typeof n5 ? e4 ? 1 : -1 : (0, a.isString)(n5) && "number" == typeof t5 ? e4 ? -1 : 1 : e4 ? (0, i3.$kt)(n5, t5) : (0, i3.$kt)(t5, n5);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.hDr = n4.lDr = void 0, i3 = e3("CalcEngine"), r2 = e3("Common"), o2 = e3("./dist/src/calculation/functions/aggregationFunctions/interface.js"), a = e3("./dist/src/dataManager.entry.js"), u = r2.Common.lt.ht, s = r2.Common.lt.Nh, c = (function() {
              function t5(t6) {
                this.dDr = /* @__PURE__ */ new Map(), this.vDr = t6;
              }
              return t5.prototype.TDr = function(t6, n5, e4) {
                var i4 = this.d7e(t6, n5, e4), r3 = this.dDr.get(i4);
                return u(r3) ? (r3 = this.vDr ? u(e4) ? t6.cellNode.children.findIndex((function(t7) {
                  return t7.templateCell.dataColumn.columnName === n5 && u(t7.leftParent);
                })) : t6.cellNode.children.findIndex((function(t7) {
                  return t7.templateCell.dataColumn.columnName === n5 && !u(t7.leftParent) && t7.leftParent.templateCell.dataColumn.columnName === e4.cellNode.templateCell.dataColumn.columnName;
                })) : u(e4) ? t6.cellNode.children.findIndex((function(t7) {
                  return t7.templateCell.dataColumn.columnName === n5 && u(t7.upParent);
                })) : t6.cellNode.children.findIndex((function(t7) {
                  return t7.templateCell.dataColumn.columnName === n5 && !u(t7.upParent) && t7.upParent.templateCell.dataColumn.columnName === e4.cellNode.templateCell.dataColumn.columnName;
                })), this.dDr[i4] = r3, r3) : r3;
              }, t5.prototype.d7e = function(t6, n5, e4) {
                return this.vDr ? u(e4) ? "H-".concat(t6.cellNode.templateCell.dataColumn.columnName, "-").concat(n5, "-V-null") : "H-".concat(t6.cellNode.templateCell.dataColumn.columnName, "-").concat(n5, "-V-").concat(e4.cellNode.templateCell.dataColumn.columnName) : u(e4) ? "V-".concat(t6.cellNode.templateCell.dataColumn.columnName, "-").concat(n5, "-H-null") : "V-".concat(t6.cellNode.templateCell.dataColumn.columnName, "-").concat(n5, "-H-").concat(e4.cellNode.templateCell.dataColumn.columnName);
              }, t5;
            })(), l = (function(t5) {
              function n5(n6, e4, i4, r3, o3) {
                var a2 = t5.call(this) || this;
                return a2.gDr = n6, a2.mDr = e4, a2.pDr = i4, a2.bDr = r3, a2.CRt = o3, a2.wDr = new c(false), a2.yDr = a2.MDr(), a2;
              }
              return d(n5, t5), n5.prototype.GY = function() {
                var t6, n6, e4, r3, a2, s2, c2, f2, l2, h2, d2, v2, p2, g, m, b, y, w, M, C, S;
                if (u(this.gDr) || u(this.gDr.treeData)) return i3.Errors.Value;
                if (t6 = this.gDr.rowFields.length, n6 = this.gDr.valueFields.length, r3 = (e4 = this.kDr(this.gDr.treeData, 0, 0, n6 < 1 ? 1 : n6)).headerRecords, a2 = e4.leafHeaders, s2 = [], this.jDr(s2, r3), c2 = this.yDr, f2 = Math.abs(this.gDr.sDr) - 1, this.gDr.sDr && !this.CRt && this.DDr(this.gDr.treeData, c2[f2], f2, this.gDr.sDr < 0), l2 = this._Dr(this.gDr.treeData, this.bDr, this.gDr.rowFields.length), this.CRt) {
                  if (Math.abs(this.bDr) > 1) return i3.Errors.Value;
                  this.ODr(l2, c2[f2], f2);
                }
                for (h2 = a2.length * (n6 > 0 ? n6 : 1), d2 = function(e5, i4) {
                  return e5 < 0 ? t6 + h2 + i4 : t6 + e5 * n6 + i4;
                }, v2 = 0, p2 = l2; v2 < p2.length; v2++) m = (g = p2[v2]).headerRecords, b = g.leafHeader, c2.length > 0 ? this.EDr(c2, d2, b, m, s2) : s2.push(m);
                if (y = Math.abs(this.bDr) > 0 || 0 === t6) {
                  for (w = 0 === t6 ? [] : [this.IDr(this.bDr)], M = 1; M < t6; M++) w.push("");
                  C = this.RDr(e4), w = w.concat(C), S = void 0, S = this.LDr(w, c2, d2), s2 = this.bDr < 0 ? S.concat(s2) : s2.concat(S);
                }
                return o2.FieldHeaders.NoButGenerate !== this.pDr && o2.FieldHeaders.YesAndShow !== this.pDr || this.FDr(s2, this.gDr.rowFields, this.gDr.valueFields), this.mDr.headers && !this.mDr.uDr && this.BDr(this.gDr.rowFields, s2), new i3.CalcArray(s2);
              }, n5.prototype.PDr = function(t6, n6) {
                var e4, i4, r3 = this.wDr;
                return t6 ? (e4 = t6.childrenArray[r3.TDr(t6, n6, null)][0].value, s(e4) ? e4 : [e4]) : (i4 = this.yDr.indexOf(n6), this.gDr.valueFields[i4].Vkr());
              }, n5.prototype.GDr = function(t6, n6, e4) {
                var i4, r3, o3 = this.PDr(t6, n6);
                return o3.length > 0 ? (i4 = null == t6 ? void 0 : t6.leftParent, r3 = this.PDr(i4, n6), this.mDr[e4](o3, r3)) : "";
              }, n5.prototype.EDr = function(t6, n6, e4, i4, r3) {
                var o3, a2, u2, s2, c2;
                if (this.mDr.uDr) for (a2 = 0; a2 < t6.length; a2++) u2 = i4.slice(), (null === (o3 = this.mDr.headers) || void 0 === o3 ? void 0 : o3[a2]) && u2.push(this.mDr.headers[a2]), s2 = t6[a2], u2.push(this.GDr(e4, s2, a2)), r3.push(u2);
                else {
                  for (a2 = 0; a2 < t6.length; a2++) c2 = n6(-1, a2), s2 = t6[a2], i4[c2] = this.GDr(e4, s2, a2);
                  r3.push(i4);
                }
              }, n5.prototype.LDr = function(t6, n6, e4) {
                var i4, r3, o3, a2, u2, s2 = [];
                if (this.mDr.uDr) for (r3 = 0; r3 < n6.length; r3++) o3 = t6.slice(), (null === (i4 = this.mDr.headers) || void 0 === i4 ? void 0 : i4[r3]) && o3.push(this.mDr.headers[r3]), a2 = n6[r3], o3.push(this.GDr(null, a2, r3)), s2.push(o3);
                else {
                  for (r3 = 0; r3 < n6.length; r3++) u2 = e4(-1, r3), a2 = n6[r3], t6[u2] = this.GDr(null, a2, r3);
                  s2.push(t6);
                }
                return s2;
              }, n5.prototype.BDr = function(t6, n6) {
                var e4 = Array(t6.length).fill("").concat(this.mDr.headers);
                return n6.splice(0, 0, e4);
              }, n5.prototype.RDr = function(t6) {
                var n6, e4, i4, r3 = this, o3 = t6.leafHeaders, a2 = [], f2 = this.yDr, l2 = new c(true), h2 = function(t7) {
                  f2.forEach((function(n7, e5) {
                    var i5 = l2.TDr(t7, n7, null), o4 = t7.childrenArray[i5], c2 = o4[0].value, f3 = s(c2) ? c2 : [c2];
                    !u(c2) && f3.length > 0 ? a2.push(r3.mDr[e5](f3)) : a2.push("");
                  }));
                };
                for (n6 = 0, e4 = o3; n6 < e4.length; n6++) h2(i4 = e4[n6]);
                return a2;
              }, n5.prototype.FDr = function(t6, n6, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2;
                if (!(t6.length < 1)) {
                  if (i4 = t6[0].length, r3 = n6.length > 0, o3 = e4.length > 0, a2 = r3 ? n6.map((function(t7) {
                    return t7.itn;
                  })) : [], o3) if (u2 = e4.map((function(t7) {
                    return t7.itn;
                  })), this.mDr.uDr) a2.push("", u2[0]);
                  else for (s2 = a2.length; s2 < i4; s2 += e4.length) a2.push.apply(a2, u2);
                  else c2 = a2.length, a2.length = i4, a2.fill("", c2, i4);
                  f2 = 0, t6.splice(f2, 0, a2);
                }
              }, n5.prototype.ODr = function(t6, n6, e4) {
                var i4, r3 = this, o3 = this.gDr.wwn, a2 = o3 < 0;
                o3 = Math.abs(o3) - 1, i4 = this.gDr.sDr ? function(t7) {
                  return r3.GDr(t7.leafHeader, n6, e4);
                } : function(t7) {
                  return t7.headerRecords[o3];
                }, t6.sort((function(t7, n7) {
                  var e5 = i4(t7), r4 = i4(n7);
                  return p(e5, r4, a2);
                }));
              }, n5.prototype.DDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, s2, c2, f2, l2, h2 = this, d2 = t6.verticalExpansionTrees;
                if (!(u(d2) || 1 !== d2.length || (s2 = null === (a2 = null === (o3 = null === (r3 = d2[0]) || void 0 === r3 ? void 0 : r3.root) || void 0 === o3 ? void 0 : o3.data) || void 0 === a2 ? void 0 : a2.groups, u(s2) || s2.length < 1))) for (s2.sort((function(t7, r4) {
                  var o4 = h2.GDr(t7, n6, e4), a3 = h2.GDr(r4, n6, e4);
                  return p(o4, a3, i4);
                })), c2 = 0, f2 = s2; c2 < f2.length; c2++) l2 = f2[c2], this.UDr(l2, n6, e4, i4);
              }, n5.prototype.UDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, u2 = this, s2 = t6.childrenArray[0];
                if (s2) for (s2.sort((function(t7, r4) {
                  var o4 = u2.GDr(t7, n6, e4), a3 = u2.GDr(r4, n6, e4);
                  return p(o4, a3, i4);
                })), r3 = 0, o3 = s2; r3 < o3.length; r3++) a2 = o3[r3], this.UDr(a2, n6, e4, i4);
              }, n5;
            })(f = (function() {
              function t5() {
              }
              return t5.prototype.MDr = function() {
                var t6 = this, n5 = this.gDr.valueFields.map((function(n6) {
                  return t6.gDr.fieldNameToColumnNames.get(n6._getName());
                }));
                return this.mDr.valueFieldRepeat ? Array.from({ length: this.mDr.valueFieldRepeat }, (function() {
                  return n5[0];
                })) : n5;
              }, t5.prototype.ADr = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2, c2, f2 = n5.length < Math.abs(e4), l2 = e4 < 0, h2 = function() {
                  var e5, o4 = n5.slice();
                  for (e5 = o4.length; e5 < i4; e5++) o4.push("");
                  r3.push({ headerRecords: o4, leafHeader: t6 });
                };
                if (n5.length === i4) r3.push({ headerRecords: n5, leafHeader: t6 });
                else {
                  for (o3 = t6.childrenArray[0], f2 && l2 && h2(), a2 = 0, u2 = o3; a2 < u2.length; a2++) s2 = u2[a2], (c2 = n5.slice()).push(s2.value), this.ADr(s2, c2, e4, i4, r3);
                  f2 && !l2 && h2();
                }
              }, t5.prototype.IDr = function(t6) {
                return Math.abs(t6) > 1 ? (0, i3.sR)().Aggregate_GrandTotal : (0, i3.sR)().Aggregate_Total;
              }, t5.prototype.jDr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this.gDr.rowFields.length;
                if (this.mDr.uDr && u2++, u2 > 0) for (e4 = 0, i4 = n5; e4 < i4.length; e4++) r3 = i4[e4], t6.push(Array(u2).fill("").concat(r3));
                else for (o3 = 0, a2 = n5; o3 < a2.length; o3++) r3 = a2[o3], t6.push(r3);
              }, t5.prototype._Dr = function(t6, n5, e4) {
                var i4, r3, o3, a2, s2, c2, f2, l2, h2, d2 = t6.verticalExpansionTrees;
                if (u(d2) || 1 !== d2.length) return [];
                if (a2 = null === (o3 = null === (r3 = null === (i4 = d2[0]) || void 0 === i4 ? void 0 : i4.root) || void 0 === r3 ? void 0 : r3.data) || void 0 === o3 ? void 0 : o3.groups, u(a2) || a2.length < 1) return [];
                for (s2 = [], c2 = 0, f2 = a2; c2 < f2.length; c2++) h2 = [(l2 = f2[c2]).value], this.ADr(l2, h2, n5, e4, s2);
                return s2;
              }, t5.prototype.kDr = function(t6, n5, e4, i4) {
                var r3, o3, a2, s2, c2, f2, l2, h2, d2, v2, p2, g = { headerRecords: [], leafHeaders: [] }, m = t6.horizontalExpansionTrees;
                if (u(m) || 1 !== m.length) return g;
                if (s2 = null === (a2 = null === (o3 = null === (r3 = m[0]) || void 0 === r3 ? void 0 : r3.root) || void 0 === o3 ? void 0 : o3.data) || void 0 === a2 ? void 0 : a2.groups, u(s2) || s2.length < 1) return g;
                for (c2 = 0; c2 < e4; c2++) g.headerRecords[c2] = [];
                for (f2 = 0, l2 = s2; f2 < l2.length; f2++) h2 = l2[f2], this.NDr(h2, g, n5, 0, e4, i4);
                if (v2 = n5 < 0, (d2 = Math.abs(n5) > 0) && i4 > 0) if (p2 = this.IDr(n5), v2) for (g.headerRecords[0] = Array(i4).fill(p2).concat(g.headerRecords[0]), c2 = 1; c2 < g.headerRecords.length; c2++) g.headerRecords[c2] = Array(i4).fill("").concat(g.headerRecords[c2]);
                else for (g.headerRecords[0] = g.headerRecords[0].concat(Array(i4).fill(p2)), c2 = 1; c2 < g.headerRecords.length; c2++) g.headerRecords[c2] = g.headerRecords[c2].concat(Array(i4).fill(""));
                return g;
              }, t5.prototype.NDr = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g = n5.headerRecords, m = g[i4];
                if (i4 + 1 === r3) for (n5.leafHeaders.push(t6), a2 = 0; a2 < o3; a2++) m.push(t6.value);
                else {
                  for (u2 = Array(o3).fill(""), s2 = function() {
                    var e5;
                    for (n5.leafHeaders.push(t6), e5 = 0; e5 < o3; e5++) m.push(t6.value);
                    for (e5 = i4 + 1; e5 < g.length; e5++) g[e5] = g[e5].concat(u2);
                  }, f2 = e4 < 0, (c2 = i4 + 1 < Math.abs(e4)) && f2 && s2(), h2 = 0, d2 = l2 = t6.childrenArray[0]; h2 < d2.length; h2++) v2 = d2[h2], this.NDr(v2, n5, e4, i4 + 1, r3, o3);
                  for (c2 && !f2 && s2(), p2 = g[i4 + 1].length - m.length, a2 = 0; a2 < p2; a2++) m.push(t6.value);
                }
              }, t5;
            })()), n4.lDr = l, h = (function(t5) {
              function n5(n6, e4, i4, r3, o3, a2) {
                var u2 = t5.call(this) || this;
                return u2.gDr = n6, u2.mDr = e4, u2.pDr = i4, u2.bDr = r3, u2.CDr = o3, u2.CRt = a2, u2.SDr = new c(false), u2.xDr = new c(true), u2.yDr = u2.MDr(), u2;
              }
              return d(n5, t5), n5.prototype.GY = function() {
                var t6, n6, e4, r3, a2, s2, c2, f2, l2, h2, d2, v2, p2, g, m, b, y, w, M, C, S, T, x, A, I;
                if (u(this.gDr) || u(this.gDr.treeData)) return i3.Errors.Value;
                for (n6 = this.gDr.rowFields.length, e4 = this.gDr.colFields.length, r3 = this.mDr.valueFieldRepeat || this.gDr.valueFields.length, a2 = this.yDr, this.gDr.cDr && (s2 = Math.abs(this.gDr.cDr) - 1, this.HDr(this.gDr.treeData, a2[s2], s2, this.gDr.cDr < 0)), f2 = (c2 = this.kDr(this.gDr.treeData, this.CDr, e4, r3 < 1 || this.mDr.uDr ? 1 : r3)).headerRecords, l2 = c2.leafHeaders, h2 = [], d2 = [], this.jDr(d2, f2), v2 = Math.abs(this.CDr) > 0, p2 = this.CDr < 0, this.gDr.sDr && (s2 = Math.abs(this.gDr.sDr) - 1, this.zDr(this.gDr.treeData, a2[s2], s2, this.gDr.sDr < 0)), g = this._Dr(this.gDr.treeData, this.bDr, this.gDr.rowFields.length), m = v2 && p2 ? r3 > 0 ? r3 : 1 : 0, b = l2.length * (r3 > 0 ? r3 : 1), y = function(t7, i4) {
                  return t7 < 0 ? v2 && p2 || 0 === e4 ? n6 + i4 : n6 + b + i4 : n6 + m + t7 * r3 + i4;
                }, w = 0, M = g; w < M.length; w++) C = M[w], this.VDr(l2, a2, y, C, h2, v2, e4);
                if (S = Math.abs(this.bDr) > 0 || 0 === n6) {
                  for (T = 0 === n6 ? [] : [this.IDr(this.bDr)], x = 1; x < n6; x++) T.push("");
                  A = this.YDr(c2, T), h2 = this.bDr < 0 ? A.concat(h2) : h2.concat(A);
                }
                if (this.mDr.headers && !this.mDr.uDr) {
                  for (I = Array(this.gDr.rowFields.length).fill("").concat(this.mDr.headers); I.length < h2[0].length; ) I = I.concat(this.mDr.headers);
                  d2.push(I);
                }
                return o2.FieldHeaders.NoButGenerate !== this.pDr && o2.FieldHeaders.YesAndShow !== this.pDr || this.ZDr(d2, this.gDr.rowFields, this.gDr.colFields, this.gDr.valueFields, null === (t6 = h2[0]) || void 0 === t6 ? void 0 : t6.length), h2 = d2.concat(h2), new i3.CalcArray(h2);
              }, n5.prototype.WDr = function(t6, n6, e4) {
                var i4 = [];
                return i4 = 1 === this.CRt ? this.PDr(t6, n6, null) : 2 === this.CRt ? this.PDr(null, n6, null) : 3 === this.CRt ? this.PDr(t6, n6, e4 && e4.upParent) : 4 === this.CRt ? this.PDr(t6 && t6.leftParent, n6, e4) : this.PDr(null, n6, e4);
              }, n5.prototype.PDr = function(t6, n6, e4) {
                var i4, r3, o3, a2, u2, c2;
                if (t6) if (e4) {
                  for (r3 = this.SDr.TDr(t6, n6, e4), o3 = t6.crossChildren[r3], a2 = 0; a2 < o3.length; a2++) if ((u2 = o3[a2][0]).upParent === e4) {
                    i4 = u2.value;
                    break;
                  }
                } else i4 = t6.childrenArray[this.SDr.TDr(t6, n6, null)][0].value;
                else {
                  if (!e4) return c2 = this.yDr.indexOf(n6), i4 = this.gDr.valueFields[c2].Vkr();
                  i4 = e4.childrenArray[this.xDr.TDr(e4, n6, null)][0].value;
                }
                return s(i4) ? i4 : [i4];
              }, n5.prototype.QDr = function(t6, n6, e4, i4) {
                var r3, o3 = this.PDr(t6, n6, i4);
                return !u(o3) && o3.length > 0 ? (r3 = this.WDr(t6, n6, i4), this.mDr[e4](o3, r3)) : "";
              }, n5.prototype.VDr = function(t6, n6, e4, i4, r3, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2, v2, p2;
                if (this.mDr.uDr) for (s2 = i4.headerRecords, c2 = i4.leafHeader, f2 = 0; f2 < n6.length; f2++) {
                  for (l2 = s2.slice(), (null === (u2 = this.mDr.headers) || void 0 === u2 ? void 0 : u2[f2]) && l2.push(this.mDr.headers[f2]), h2 = 0; h2 < t6.length; h2++) d2 = t6[h2], v2 = n6[f2], l2.push(this.QDr(c2, v2, f2, d2));
                  (o3 || 0 === a2 && n6.length > 0) && (v2 = n6[f2], l2.push(this.QDr(c2, v2, f2))), r3.push(l2);
                }
                else {
                  for (s2 = i4.headerRecords, c2 = i4.leafHeader, h2 = 0; h2 < t6.length; h2++) for (d2 = t6[h2], f2 = 0; f2 < n6.length; f2++) p2 = e4(h2, f2), v2 = n6[f2], s2[p2] = this.QDr(c2, v2, f2, d2);
                  if (o3 || 0 === a2 && n6.length > 0) for (f2 = 0; f2 < n6.length; f2++) p2 = e4(-1, f2), v2 = n6[f2], s2[p2] = this.QDr(c2, v2, f2);
                  r3.push(s2);
                }
              }, n5.prototype.YDr = function(t6, n6) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2 = t6.leafHeaders, p2 = Math.abs(this.CDr) > 0, g = this.CDr < 0, m = [], b = this, y = n6, w = this.yDr, M = this.gDr.rowFields.length, C = this.gDr.colFields.length, S = this.mDr.valueFieldRepeat || this.gDr.valueFields.length, T = v2.length * (S > 0 ? S : 1);
                if (this.mDr.uDr) for (i4 = 0; i4 < w.length; i4++) {
                  for (r3 = n6.slice(), (null === (e4 = this.mDr.headers) || void 0 === e4 ? void 0 : e4[i4]) && r3.push(this.mDr.headers[i4]), o3 = w[i4], p2 && g && r3.push(this.QDr(null, o3, i4)), a2 = 0, u2 = v2; a2 < u2.length; a2++) s2 = u2[a2], c2 = b.QDr(null, o3, i4, s2), r3.push(c2);
                  0 === C && w.length > 0 && (c2 = b.QDr(null, o3, i4), r3.push(c2)), p2 && !g && r3.push(this.QDr(null, o3, i4)), m.push(r3);
                }
                else {
                  if ((p2 && g || 0 === C) && (T = 0), p2 && g) for (i4 = 0; i4 < w.length; i4++) f2 = M + T + i4, o3 = w[i4], y[f2] = this.QDr(null, o3, i4);
                  for (l2 = function(t7) {
                    w.forEach((function(n7, e5) {
                      var i5 = b.QDr(null, n7, e5, t7);
                      y.push(i5);
                    }));
                  }, h2 = 0, d2 = v2; h2 < d2.length; h2++) l2(s2 = d2[h2]);
                  if (0 === C && w.length > 0 && w.forEach((function(t7, n7) {
                    var e5 = b.QDr(null, t7, n7, null);
                    y.push(e5);
                  })), p2 && !g) for (i4 = 0; i4 < w.length; i4++) f2 = M + T + i4, o3 = w[i4], y[f2] = this.QDr(null, o3, i4);
                  m.push(y);
                }
                return m;
              }, n5.prototype.ZDr = function(t6, n6, e4, i4, r3) {
                var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2;
                if (!(r3 < 1) && r3 && (o3 = n6.length > 0, a2 = e4.length > 0, u2 = i4.length > 0, s2 = this.mDr.uDr ? n6.length + 1 : n6.length, a2 && (c2 = e4.map((function(t7) {
                  return t7.itn;
                })).join(", "), f2 = Array(s2).fill("").concat([c2]).concat(Array(r3 - s2 - 1).fill("")), t6.unshift(f2)), o3 || u2)) {
                  if (l2 = o3 ? n6.map((function(t7) {
                    return t7.itn;
                  })) : [], this.mDr.uDr && l2.push(""), u2) {
                    for (h2 = i4.map((function(t7) {
                      return t7.itn;
                    })), d2 = l2.length; d2 < r3; d2 += i4.length) l2.push.apply(l2, h2);
                    l2 = l2.slice(0, r3);
                  } else v2 = l2.length, l2.length = r3, l2.fill("", v2, r3);
                  t6.push(l2);
                }
              }, n5.prototype.zDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, s2, c2, f2, l2, h2 = this, d2 = t6.verticalExpansionTrees;
                if (!(u(d2) || 1 !== d2.length || (s2 = null === (a2 = null === (o3 = null === (r3 = d2[0]) || void 0 === r3 ? void 0 : r3.root) || void 0 === o3 ? void 0 : o3.data) || void 0 === a2 ? void 0 : a2.groups, u(s2) || s2.length < 1))) for (s2.sort((function(t7, r4) {
                  var o4 = h2.QDr(t7, n6, e4, null), a3 = h2.QDr(r4, n6, e4, null);
                  return p(o4, a3, i4);
                })), c2 = 0, f2 = s2; c2 < f2.length; c2++) l2 = f2[c2], this.JDr(l2, n6, e4, i4);
              }, n5.prototype.JDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, u2 = this, s2 = t6.childrenArray[0];
                if (s2) for (s2.sort((function(t7, r4) {
                  var o4 = u2.QDr(t7, n6, e4), a3 = u2.QDr(r4, n6, e4);
                  return p(o4, a3, i4);
                })), r3 = 0, o3 = s2; r3 < o3.length; r3++) a2 = o3[r3], this.JDr(a2, n6, e4, i4);
              }, n5.prototype.HDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, s2, c2, f2, l2, h2 = this, d2 = t6.horizontalExpansionTrees;
                if (!(u(d2) || 1 !== d2.length || (s2 = null === (a2 = null === (o3 = null === (r3 = d2[0]) || void 0 === r3 ? void 0 : r3.root) || void 0 === o3 ? void 0 : o3.data) || void 0 === a2 ? void 0 : a2.groups, u(s2) || s2.length < 1))) for (s2.sort((function(t7, r4) {
                  var o4 = h2.QDr(null, n6, e4, t7), a3 = h2.QDr(null, n6, e4, r4);
                  return p(o4, a3, i4);
                })), c2 = 0, f2 = s2; c2 < f2.length; c2++) l2 = f2[c2], this.KDr(l2, n6, e4, i4);
              }, n5.prototype.KDr = function(t6, n6, e4, i4) {
                var r3, o3, a2, u2 = this, s2 = t6.childrenArray[0];
                if (s2) for (s2.sort((function(t7, r4) {
                  var o4 = u2.QDr(null, n6, e4, t7), a3 = u2.QDr(null, n6, e4, r4);
                  return p(o4, a3, i4);
                })), r3 = 0, o3 = s2; r3 < o3.length; r3++) a2 = o3[r3], this.KDr(a2, n6, e4, i4);
              }, n5;
            })(f), n4.hDr = h;
          }, "./dist/src/calculation/functions/functions.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d;
            function v() {
              (0, i3.addScopeCustomFunctions)(), (0, r2.addParentCustomFunctions)(), (0, o2.addChildrenCustomFunctions)(), (0, a.addOnlyChildrenCustomFunctions)(), (0, u.addLevelCustomFunctions)(), (0, s.addLevelRowNumberCustomFunctions)(), (0, c.addQueryFunction)(), (0, f.addWindowOverFunctions)(), (0, l.addWindowFunctions)(), (0, h.addTriggerFieldValueCustomFunctions)();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addCustomFunctions = void 0, i3 = e3("./dist/src/calculation/functions/scope.js"), r2 = e3("./dist/src/calculation/functions/hierarchyParent.js"), o2 = e3("./dist/src/calculation/functions/hierarchyChildren.js"), a = e3("./dist/src/calculation/functions/hierarchyOnlyChildren.js"), u = e3("./dist/src/calculation/functions/hierarchyLevel.js"), s = e3("./dist/src/calculation/functions/hierarchyLevelRowNumber.js"), c = e3("./dist/src/calculation/functions/query.js"), f = e3("./dist/src/calculation/functions/windowOvers/windowOvers.entry.js"), l = e3("./dist/src/calculation/functions/windowFunctions/windowFunctions.entry.js"), h = e3("./dist/src/calculation/functions/triggerFieldValue.js"), d = e3("./dist/src/calculation/functions/aggregationFunctions/index.js"), n4.addCustomFunctions = v, (0, d.HEr)();
          }, "./dist/src/calculation/functions/hierarchyChildren.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
                this.R9t = [{ J6t: 3, pkt: ["< 1", "> 999"] }, { J6t: 5 }];
              }
              t5.prototype = new o2.CalcFunction(a, 2, 2), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4) {
                var o3, a2 = [], u2 = t6.source.nM, s = t6.source.DJ;
                return u2.CEt() && (o3 = u2.SEt(s), !(0, r2.isNullOrUndefined)(o3) && n5 > 0 && !(0, r2.isNullOrEmpty)(e4) && ((0, r2.traversalTree)(o3, { invoking: function(t7) {
                  if (0 === --n5) {
                    var i4 = t7.lp, r3 = u2._dataSource.TEt(i4), o4 = u2._getValueByField(e4, r3);
                    return a2.push(o4), { cancelDeepRecursion: true };
                  }
                  if (0 === t7.children.length) return { cancelDeepRecursion: true };
                }, invoked: function() {
                  n5++;
                } }), t6.source.DJ = s)), new i3.CalcArray([a2]);
              }, i3.Functions.defineGlobalCustomFunction(a, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addChildrenCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "CHILDREN", n4.addChildrenCustomFunctions = u;
          }, "./dist/src/calculation/functions/hierarchyLevel.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(a), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                var n5, e4 = t6.source.nM, i4 = t6.source.DJ;
                if (e4.CEt() && (n5 = e4.SEt(i4), !(0, r2.isNullOrUndefined)(n5))) return n5.level;
              }, i3.Functions.defineGlobalCustomFunction(a, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addLevelCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "LEVEL", n4.addLevelCustomFunctions = u;
          }, "./dist/src/calculation/functions/hierarchyLevelRowNumber.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(a), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                var n5, e4 = t6.source.nM, i4 = t6.source.DJ;
                if (e4.CEt() && (n5 = e4.SEt(i4), !(0, r2.isNullOrUndefined)(n5))) return n5.getCurrentIndex() + 1;
              }, i3.Functions.defineGlobalCustomFunction(a, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addLevelRowNumberCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "LEVELROWNUMBER", n4.addLevelRowNumberCustomFunctions = u;
          }, "./dist/src/calculation/functions/hierarchyOnlyChildren.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
                this.R9t = [{ J6t: 5 }];
              }
              t5.prototype = new o2.CalcFunction(a, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n5) {
                var e4, o3 = [], a2 = t6.source.nM, u2 = t6.source.DJ;
                return a2.CEt() && (e4 = a2.SEt(u2), (0, r2.isNullOrUndefined)(e4) || (0, r2.isNullOrEmpty)(n5) || ((0, r2.traversalTree)(e4, (function(t7) {
                  if (0 === t7.children.length) {
                    var e5 = t7.lp, i4 = a2._dataSource.TEt(e5), r3 = a2._getValueByField(n5, i4);
                    o3.push(r3);
                  }
                })), t6.source.DJ = u2)), new i3.CalcArray([o3]);
              }, i3.Functions.defineGlobalCustomFunction(a, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addOnlyChildrenCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "ONLYCHILDREN", n4.addOnlyChildrenCustomFunctions = u;
          }, "./dist/src/calculation/functions/hierarchyParent.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
                this.R9t = [{ J6t: 3, pkt: ["< 1", "> 999"] }, { J6t: 5 }];
              }
              t5.prototype = new o2.CalcFunction(a, 2, 2), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4) {
                var i4, o3, a2, u2, c, f = t6.source.nM, l = t6.source.DJ;
                if (f.CEt() && (i4 = f.SEt(l), !(0, r2.isNullOrUndefined)(i4) && n5 > 0 && !(0, r2.isNullOrEmpty)(e4) && !(o3 = s(i4, n5)).isRoot)) return a2 = o3.lp, u2 = f._dataSource.TEt(a2), c = f._getValueByField(e4, u2), t6.source.DJ = l, c;
              }, i3.Functions.defineGlobalCustomFunction(a, new t5());
            }
            function s(t5, n5) {
              return 0 === n5 || t5.isRoot ? t5 : s(t5.parent, n5 - 1);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addParentCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "PARENT", n4.addParentCustomFunctions = u;
          }, "./dist/src/calculation/functions/query.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            function a() {
              if (!i3.Functions.findGlobalFunction(o2)) {
                var t5 = new i3.Functions.AsyncFunction(o2, 1, 3);
                t5.isContextSensitive = function() {
                  return true;
                }, t5.evaluateAsync = function(t6, n5, e4, o3) {
                  var a2, u, s, c, f = t6.ctx.source;
                  function l() {
                    var r3, a3, s2, c2, f2 = u.xEt(n5, e4, o3);
                    f2 && (f2.Mgr = void 0), (null === (s2 = null === (a3 = null === (r3 = t6.ctx) || void 0 === r3 ? void 0 : r3.Xkt) || void 0 === a3 ? void 0 : a3.node) || void 0 === s2 ? void 0 : s2.WK) ? (c2 = u.IEt(n5, e4, o3)) && (o3 ? t6.setAsyncResult(c2[0]) : t6.setAsyncResult(new i3.CalcArray(c2))) : u.IEt(n5, e4, o3, l, true);
                  }
                  function h(r3) {
                    var a3, s2, c2, f2, h2, d = u.IEt(n5, e4, o3, l, false, !(null === (c2 = null === (s2 = null === (a3 = t6.ctx) || void 0 === a3 ? void 0 : a3.Xkt) || void 0 === s2 ? void 0 : s2.node) || void 0 === c2 ? void 0 : c2.WK));
                    if (d) if (o3) {
                      if (f2 = d[0], r3) return t6.node.yL || setTimeout((function() {
                        t6.setAsyncResult(f2);
                      }), 0), f2;
                      t6.setAsyncResult(f2);
                    } else {
                      if (h2 = new i3.CalcArray(d), r3) return t6.node.yL || setTimeout((function() {
                        t6.setAsyncResult(h2);
                      }), 0), h2;
                      t6.setAsyncResult(h2);
                    }
                  }
                  if (c = (s = (u = f instanceof r2.DataManagerCalcSource ? f.nM.QOt : t6.ctx.source.Mf.parent.dataManager()).xEt(n5, e4, o3)).table) {
                    if (c.qGr || (null === (a2 = null == t6 ? void 0 : t6.node) || void 0 === a2 ? void 0 : a2.yL)) return h(true);
                    c.NEt().then((function() {
                      h();
                    }));
                  }
                }, t5.acceptsReference = function(t6) {
                  return true;
                }, t5.acceptsArray = function(t6) {
                  return true;
                }, i3.Functions.defineGlobalCustomFunction(o2, t5);
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addQueryFunction = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/calcSource.js"), o2 = "QUERY", n4.addQueryFunction = a;
          }, "./dist/src/calculation/functions/scope.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            function s() {
              function t5() {
              }
              function n5() {
              }
              t5.prototype = new o2.CalcFunction(a, 2, 2), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.isReverseArgs = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n6, e4) {
                return t6.source.ak = n6.start, t6.source.DJ = n6.context, e4;
              }, i3.Functions.defineGlobalCustomFunction(a, new t5()), n5.prototype = new o2.CalcFunction(u, 0, 255), n5.prototype.isContextSensitive = function() {
                return true;
              }, n5.prototype.evaluate = function(t6) {
                var n6, e4, i4, r3 = [];
                for (n6 = 1; n6 < arguments.length; n6++) r3[n6 - 1] = arguments[n6];
                return e4 = { start: t6.source.ak, context: t6.source.DJ }, i4 = t6.source.MEt, t6.source.ak = 0, t6.source.DJ = c(i4.groupContext, r3), e4;
              }, i3.Functions.defineGlobalCustomFunction(u, new n5());
            }
            function c(t5, n5) {
              var e4 = f(t5.groupOptions.slice(0, t5.path.length), n5);
              return l(t5.path, e4) ? t5.entireScope : h(t5.path, e4);
            }
            function f(t5, n5) {
              var e4, i4;
              if (n5 && n5.length > 0) {
                for (e4 = -1, t5.reverse(), i4 = 0; i4 < t5.length; i4++) if (t5[i4].field !== n5[i4]) {
                  (0, r2.isNullOrUndefined)(n5[i4]) && n5.length <= i4 && (e4 = t5.length - i4 - 1);
                  break;
                }
                return e4;
              }
              return -1;
            }
            function l(t5, n5) {
              return -1 === n5 || t5.length - 1 <= n5;
            }
            function h(t5, n5) {
              var e4, i4 = [];
              return d(t5[n5], i4), i4;
            }
            function d(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2 = n5.length, c2 = t5.recordRowNumbers;
              if (c2) for (e4 = 0, i4 = c2.length; e4 < i4; e4++) n5[s2 + e4] = c2[e4];
              else for (o3 = 0, a2 = r3 = t5.children; o3 < a2.length; o3++) d(u2 = a2[o3], n5);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addScopeCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), a = "CALCULATE", u = "REMOVEFILTERS", n4.addScopeCustomFunctions = s;
          }, "./dist/src/calculation/functions/triggerFieldValue.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            function a() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(n4.TRIGGERFIELDVALUE, 1, 2), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4) {
                var i4 = t6.source.nM._dataSource, o3 = i4.getFieldValue(n5, 0);
                return (0, r2.isUndefined)(o3) && e4 ? i4.getFieldOriginalValue(n5, 0) : o3;
              }, i3.Functions.defineGlobalCustomFunction(n4.TRIGGERFIELDVALUE, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addTriggerFieldValueCustomFunctions = n4.TRIGGERFIELDVALUE = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/utils.js"), n4.TRIGGERFIELDVALUE = "TRIGGERFIELDVALUE", n4.addTriggerFieldValueCustomFunctions = a;
          }, "./dist/src/calculation/functions/utils.js": function(t4, n4, e3) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CalcFunction = void 0;
            var i3 = e3("./dist/src/dataManager.common.js");
            n4.CalcFunction = i3.CalcFunction;
          }, "./dist/src/calculation/functions/windowFunctions/cumeDist.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.CUMEDIST), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                return (0, r2.expandContext)(t6, (function(t7) {
                  var n5, e4, i4, r3, o3, s, c, f, l, h, d, v = t7.indexes, p = t7.begin, g = t7.length, m = t7.result, b = t7.orders, y = t7.isOrderValid, w = t7.reader, M = g - p, C = y && 1 === b.length, S = y && b[0].field, T = function(t8) {
                    return w(S, v[t8]);
                  }, x = function(t8, n6) {
                    return w(b[n6].field, t8);
                  }, A = function(t8) {
                    return v[t8];
                  };
                  for (n5 = p; n5 < g; n5++) if (y) {
                    if (e4 = v[n5], i4 = void 0, o3 = v[r3 = n5 + 1], C) (i4 = w(S, e4)) === w(S, o3) && (r3 = (-1 !== (s = a(T, i4, r3, g - 1)) ? s : r3) + 1);
                    else {
                      for (i4 = [], c = void 0, f = true, l = 0; l < b.length; l++) {
                        if (S = b[l].field, (c = w(S, e4)) !== w(S, o3)) {
                          f = false;
                          break;
                        }
                        i4.push(c);
                      }
                      f && (r3 = (-1 !== (s = u(A, x, i4, r3, g - 1)) ? s : r3) + 1);
                    }
                    for (h = (r3 - p) / M, d = r3 - n5; d > 0; ) d--, m.push(h);
                    n5 = r3 - 1;
                  } else m.push(1);
                }));
              }, i3.Functions.defineGlobalCustomFunction(r2.CUMEDIST, new t5());
            }
            function a(t5, n5, e4, i4) {
              for (var r3, o3, a2 = e4, u2 = i4, s = -1; a2 <= u2; ) n5 === (o3 = t5(r3 = Math.floor((a2 + u2) / 2))) ? (a2 = r3 + 1, s = r3) : u2 = r3 - 1;
              return s;
            }
            function u(t5, n5, e4, i4, r3) {
              for (var o3, a2, u2, s, c = i4, f = r3, l = -1, h = e4.length - 1; c <= f; ) {
                for (a2 = t5(o3 = Math.floor((c + f) / 2)), u2 = true, s = h; s >= 0; s--) if (n5(a2, s) !== e4[s]) {
                  u2 = false;
                  break;
                }
                u2 ? (c = o3 + 1, l = o3) : f = o3 - 1;
              }
              return l;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addCumeDistCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addCumeDistCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowFunctions/denseRank.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.DENSERANK), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                return (0, r2.expandContext)(t6, (function(t7) {
                  var n5, e4, i4, r3, o3, a, u, s, c = t7.indexes, f = t7.begin, l = t7.length, h = t7.result, d = t7.orders, v = t7.reader, p = t7.isOrderValid, g = 0, m = false;
                  for (p && ((i4 = 1 === d.length) ? r3 = d[0].field : n5 = []), o3 = f; o3 < l; o3++) {
                    if (p) if (a = c[o3], i4) (e4 = v(r3, a)) === n5 && o3 !== f || (g += 1, n5 = e4);
                    else {
                      for (e4 = [], u = d.length - 1; u >= 0; u--) s = v(d[u].field, a), e4.unshift(s), s !== n5[u] && (m = true);
                      (m || o3 === f) && (m = false, g += 1, n5 = e4);
                    }
                    else g = 1;
                    h.push(g);
                  }
                }));
              }, i3.Functions.defineGlobalCustomFunction(r2.DENSERANK, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addDenseRankCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addDenseRankCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowFunctions/firstLastNthValue.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.FIRSTVALUE, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 0 === t6;
              }, t5.prototype.evaluate = function(t6, n5) {
                return f(t6, n5, a.first, 1);
              }, i3.Functions.defineGlobalCustomFunction(o2.FIRSTVALUE, new t5());
            }
            function s() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.LASTVALUE, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 0 === t6;
              }, t5.prototype.evaluate = function(t6, n5) {
                return f(t6, n5, a.last, 1);
              }, i3.Functions.defineGlobalCustomFunction(o2.LASTVALUE, new t5());
            }
            function c() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.NTHVALUE, 1, 2), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 0 === t6;
              }, t5.prototype.evaluate = function(t6, n5, e4) {
                return f(t6, n5, a.nth, e4);
              }, i3.Functions.defineGlobalCustomFunction(o2.NTHVALUE, new t5());
            }
            function f(t5, n5, e4, i4) {
              var u2, s2 = t5.source.nM.wve(n5);
              return (0, o2.expandContext)(t5, (function(t6) {
                var n6, o3, u3, c2, f2, l, h = t6.indexes, d = t6.begin, v = t6.length, p = t6.result, g = t6.frame, m = t6.evaluateWindowIndexes, b = t6.buildFrameGroups;
                if ((0, r2.isNumber)(i4) && i4 > 0) for (i4 = Math.floor(i4), n6 = { startIndex: d, endIndex: d, lastStartIndex: d, lastEndIndex: d }, o3 = b(h, d), u3 = d; u3 < v; u3++) if (m(g, d, u3, h, n6, o3), -1 === n6.startIndex && -1 === n6.endIndex) p.push(null);
                else if (e4 === a.first) p.push(s2(h[n6.startIndex]));
                else if (e4 === a.last) p.push(s2(h[n6.endIndex]));
                else if ((c2 = n6.startIndex + i4 - 1) <= n6.endIndex) {
                  if (void 0 !== n6.gapStartIndex && void 0 !== n6.gapEndIndex && (f2 = n6.gapStartIndex - n6.startIndex, i4 > f2 && (c2 = void 0 !== n6.currentIndex ? 1 === (l = i4 - f2) ? n6.currentIndex : l - 1 + n6.gapEndIndex : i4 - f2 + n6.gapEndIndex) > n6.endIndex)) {
                    p.push(null);
                    continue;
                  }
                  p.push(s2(h[c2]));
                } else p.push(null);
              }));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addNthValueCustomFunctions = n4.addLastValueCustomFunctions = n4.addFirstValueCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), (function(t5) {
              t5[t5.first = 0] = "first", t5[t5.last = 1] = "last", t5[t5.nth = 2] = "nth";
            })(a || (a = {})), n4.addFirstValueCustomFunctions = u, n4.addLastValueCustomFunctions = s, n4.addNthValueCustomFunctions = c;
          }, "./dist/src/calculation/functions/windowFunctions/leadLag.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            function a() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.LEAD, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 0 === t6;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                return s(t6, n5, e4, i4);
              }, i3.Functions.defineGlobalCustomFunction(o2.LEAD, new t5());
            }
            function u() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.LAG, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 0 === t6;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                return s(t6, n5, e4, i4, true);
              }, i3.Functions.defineGlobalCustomFunction(o2.LAG, new t5());
            }
            function s(t5, n5, e4, i4, a2) {
              var u2, s2 = t5.source.nM.wve(n5);
              return (0, o2.expandContext)(t5, (function(t6) {
                var n6, o3, u3, c = t6.indexes, f = t6.begin, l = t6.length, h = t6.result;
                if (e4 = (0, r2.isNullOrUndefined)(e4) ? 1 : e4, (0, r2.isNumber)(e4) && e4 >= 0) for (e4 = Math.floor(e4), i4 = (0, r2.isNullOrUndefined)(i4) ? null : i4, n6 = f; n6 < l; n6++) o3 = void 0, u3 = void 0, (u3 = a2 ? (o3 = n6 - e4) >= f : (o3 = n6 + e4) < l) ? h.push(s2(c[o3])) : h.push(i4);
              }));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addLagCustomFunctions = n4.addLeadCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addLeadCustomFunctions = a, n4.addLagCustomFunctions = u;
          }, "./dist/src/calculation/functions/windowFunctions/nTile.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            function a() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.NTILE, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6, n5) {
                return (0, o2.expandContext)(t6, (function(t7) {
                  var e4, i4, o3, a2, u, s, c = t7.begin, f = t7.length, l = t7.result;
                  if ((0, r2.isNumber)(n5) && n5 > 0 && n5 < f) for (e4 = f - c, a2 = (i4 = Math.floor(e4 / n5)) + ((o3 = e4 % n5) > 0 ? 1 : 0), o3--, u = c, s = 1; u < f; u++) l.push(s), 0 === --a2 && (a2 = i4 + (o3 > 0 ? 1 : 0), o3--, s++);
                  else for (u = c; u < f; u++) l.push(u - c + 1);
                }));
              }, i3.Functions.defineGlobalCustomFunction(o2.NTILE, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addNTileCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addNTileCustomFunctions = a;
          }, "./dist/src/calculation/functions/windowFunctions/percentRank.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            function a() {
              function t5() {
              }
              t5.prototype = new o2.CalcFunction(o2.WPERCENTRANK), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                return (0, r2.evaluateRank)(t6, (function(t7, n5) {
                  return 1 === n5 ? 0 : (t7 - 1) / (n5 - 1);
                }));
              }, i3.Functions.defineGlobalCustomFunction(o2.WPERCENTRANK, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWPercentRankCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowFunctions/rank.js"), o2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addWPercentRankCustomFunctions = a;
          }, "./dist/src/calculation/functions/windowFunctions/rank.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.WRANK), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                return a(t6);
              }, i3.Functions.defineGlobalCustomFunction(r2.WRANK, new t5());
            }
            function a(t5, n5) {
              return (0, r2.expandContext)(t5, (function(t6) {
                var e4, i4, r3, o3, a2, u, s, c = t6.indexes, f = t6.begin, l = t6.length, h = t6.result, d = t6.orders, v = t6.isOrderValid, p = t6.reader, g = 1, m = false, b = l - f, y = false;
                for (v && ((y = 1 === d.length) ? r3 = d[0].field : e4 = []), o3 = f; o3 < l; o3++) {
                  if (v) if (a2 = c[o3], y) (i4 = p(r3, a2)) === e4 && o3 !== f || (g = o3 - f + 1, n5 && (g = n5(g, b)), e4 = i4);
                  else {
                    for (i4 = [], u = d.length - 1; u >= 0; u--) s = p(d[u].field, a2), i4.unshift(s), s !== e4[u] && (m = true);
                    (m || o3 === f) && (m = false, g = o3 - f + 1, n5 && (g = n5(g, b)), e4 = i4);
                  }
                  h.push(g);
                }
              }));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.evaluateRank = n4.addWRankCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addWRankCustomFunctions = o2, n4.evaluateRank = a;
          }, "./dist/src/calculation/functions/windowFunctions/rowNumber.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.ROWNUMBER), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.evaluate = function(t6) {
                return (0, r2.expandContext)(t6, (function(t7) {
                  var n5, e4 = t7.begin, i4 = t7.length, r3 = t7.result;
                  for (n5 = e4; n5 < i4; n5++) r3.push(n5 - e4 + 1);
                }));
              }, i3.Functions.defineGlobalCustomFunction(r2.ROWNUMBER, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addRowNumberCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), n4.addRowNumberCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowFunctions/util.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2(t5, n5) {
              return t5.getCalcService().evaluateExpression(t5, n5, { row: 0, col: 0 });
            }
            function a(t5, n5, e4) {
              return t5.map((function(t6) {
                return n5(t6.field, e4);
              }));
            }
            function u(t5, n5) {
              if (t5 !== n5) {
                if ((0, i3.isNullOrUndefined)(t5) || (0, i3.isNullOrUndefined)(n5) || t5.length !== n5.length) return false;
                for (var e4 = 0; e4 < t5.length; e4++) if (t5[e4] !== n5[e4]) return false;
              }
              return true;
            }
            function s(t5, n5, e4) {
              var i4, r3 = t5.DJ;
              return t5.DJ = e4, i4 = o2(t5, n5), t5.DJ = r3, i4;
            }
            function c(t5, n5) {
              var e4, r3, o3, a2, u2, s2, c2, f, l, h, d, v, p;
              if (!(0, i3.isNullOrUndefined)(t5.source.MEt) && !(0, i3.isNullOrUndefined)(t5.source.MEt.extendContext)) return e4 = t5.source.DJ, o3 = (r3 = t5.source.MEt.extendContext).begin, a2 = r3.evaluator, u2 = e4.length, s2 = false, c2 = void 0, f = a2.options.windowFrame, l = a2.options.orders, h = !(0, i3.isNullOrUndefined)(l) && l.length > 0, d = function(t6, n6) {
                return a2.zhe(t6).getValue(n6);
              }, v = a2.Vhe.bind(a2), p = a2.cye.bind(a2), (0, i3.isNullOrUndefined)(r3.valueCache) ? c2 = r3.valueCache = [] : (s2 = true, c2 = r3.valueCache), s2 || n5({ indexes: e4, begin: o3, length: u2, result: c2, frame: f, orders: l, isOrderValid: h, reader: d, evaluateWindowIndexes: v, buildFrameGroups: p }), c2[0];
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.expandContext = n4.evaluateExpressionValue = n4.isEqualValues = n4.getOrderByValues = n4.evaluateExpression = n4.CUMEDIST = n4.DENSERANK = n4.NTHVALUE = n4.LASTVALUE = n4.FIRSTVALUE = n4.LAG = n4.LEAD = n4.NTILE = n4.WPERCENTRANK = n4.WRANK = n4.ROWNUMBER = n4.CalcFunction = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/calculation/functions/utils.js"), n4.CalcFunction = r2.CalcFunction, n4.ROWNUMBER = "ROWNUMBER", n4.WRANK = "W_RANK", n4.WPERCENTRANK = "W_PERCENTRANK", n4.NTILE = "NTILE", n4.LEAD = "LEAD", n4.LAG = "LAG", n4.FIRSTVALUE = "FIRSTVALUE", n4.LASTVALUE = "LASTVALUE", n4.NTHVALUE = "NTHVALUE", n4.DENSERANK = "DENSERANK", n4.CUMEDIST = "CUMEDIST", n4.evaluateExpression = o2, n4.getOrderByValues = a, n4.isEqualValues = u, n4.evaluateExpressionValue = s, n4.expandContext = c;
          }, "./dist/src/calculation/functions/windowFunctions/windowFunctions.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f;
            function l() {
              (0, i3.addRowNumberCustomFunctions)(), (0, r2.addWRankCustomFunctions)(), (0, o2.addDenseRankCustomFunctions)(), (0, a.addWPercentRankCustomFunctions)(), (0, u.addCumeDistCustomFunctions)(), (0, c.addNTileCustomFunctions)(), (0, s.addLeadCustomFunctions)(), (0, s.addLagCustomFunctions)(), (0, f.addFirstValueCustomFunctions)(), (0, f.addLastValueCustomFunctions)(), (0, f.addNthValueCustomFunctions)();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWindowFunctions = void 0, i3 = e3("./dist/src/calculation/functions/windowFunctions/rowNumber.js"), r2 = e3("./dist/src/calculation/functions/windowFunctions/rank.js"), o2 = e3("./dist/src/calculation/functions/windowFunctions/denseRank.js"), a = e3("./dist/src/calculation/functions/windowFunctions/percentRank.js"), u = e3("./dist/src/calculation/functions/windowFunctions/cumeDist.js"), s = e3("./dist/src/calculation/functions/windowFunctions/leadLag.js"), c = e3("./dist/src/calculation/functions/windowFunctions/nTile.js"), f = e3("./dist/src/calculation/functions/windowFunctions/firstLastNthValue.js"), n4.addWindowFunctions = l;
          }, "./dist/src/calculation/functions/windowOvers/ascDesc.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.ORDERASC, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function() {
                var t6, n5;
                return u(arguments[0].source, arguments[1], true);
              }, i3.Functions.defineGlobalCustomFunction(r2.ORDERASC, new t5());
            }
            function a() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.ORDERDESC, 1, 1), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function() {
                var t6, n5;
                return u(arguments[0].source, arguments[1], false);
              }, i3.Functions.defineGlobalCustomFunction(r2.ORDERDESC, new t5());
            }
            function u(t5, n5, e4) {
              return { field: (0, r2.getFieldOption)(t5, n5), ascending: e4 };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addOrderDescCustomFunctions = n4.addOrderAscCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addOrderAscCustomFunctions = o2, n4.addOrderDescCustomFunctions = a;
          }, "./dist/src/calculation/functions/windowOvers/orderBy.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.ORDERBY, 1, 255), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function() {
                var t6, n5, e4, i4, o3 = arguments[0], u = o3.source, s = [];
                for (t6 = 1, n5 = arguments.length; t6 < n5; t6++) i4 = void 0, i4 = a(e4 = arguments[t6]) ? (0, r2.evaluateExpression)(u, e4) : { field: (0, r2.getFieldOption)(u, e4), ascending: true }, s.push(i4);
                return s;
              }, i3.Functions.defineGlobalCustomFunction(r2.ORDERBY, new t5());
            }
            function a(t5) {
              var n5 = (0, r2.getExprFunctionName)(t5);
              return n5 === r2.ORDERASC || n5 === r2.ORDERDESC;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addOrderByCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addOrderByCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowOvers/partitionBy.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.PARTITIONBY, 1, 255), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function() {
                var t6, n5, e4, i4 = arguments[0], o3 = i4.source, a = [];
                for (t6 = 1, n5 = arguments.length; t6 < n5; t6++) e4 = arguments[t6], a.push({ field: (0, r2.getFieldOption)(o3, e4), ascending: true });
                return a;
              }, i3.Functions.defineGlobalCustomFunction(r2.PARTITIONBY, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addPartitionByCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addPartitionByCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowOvers/rangeRowsGroups.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            function s() {
              function t5() {
              }
              t5.prototype = new a.CalcFunction(a.FRAMERANGE, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 2 !== t6;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                var o3 = t6.source, a2 = o3.MEt.windowFrameOrder, u2;
                return l({ type: r2.WindowOverFrameType.RANGE }, o3, n5, e4, a2, r2.WindowOverFrameType.RANGE, i4);
              }, i3.Functions.defineGlobalCustomFunction(a.FRAMERANGE, new t5());
            }
            function c() {
              function t5() {
              }
              t5.prototype = new a.CalcFunction(a.FRAMEROWS, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 2 !== t6;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                var o3 = t6.source, a2 = o3.MEt.windowFrameOrder, u2;
                return l({ type: r2.WindowOverFrameType.ROWS }, o3, n5, e4, a2, r2.WindowOverFrameType.ROWS, i4);
              }, i3.Functions.defineGlobalCustomFunction(a.FRAMEROWS, new t5());
            }
            function f() {
              function t5() {
              }
              t5.prototype = new a.CalcFunction(a.FRAMEGROUPS, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return 2 !== t6;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                var o3 = t6.source, a2 = o3.MEt.windowFrameOrder, u2;
                return l({ type: r2.WindowOverFrameType.GROUPS }, o3, n5, e4, a2, r2.WindowOverFrameType.GROUPS, i4);
              }, i3.Functions.defineGlobalCustomFunction(a.FRAMEGROUPS, new t5());
            }
            function l(t5, n5, e4, i4, u2, s2, c2) {
              var f2, l2 = (0, a.unparseExpression)(n5, e4);
              return t5.begin = h(l2, r2.WindowOverFramePreceding.CurrentRow, r2.WindowOverFramePreceding.UnBounded, s2, u2), v(i4) ? t5.exclude = p(i4) : ((0, o2.isNullOrUndefined)(i4) || (f2 = (0, a.unparseExpression)(n5, i4), t5.end = h(f2, r2.WindowOverFrameFollowing.CurrentRow, r2.WindowOverFrameFollowing.UnBounded, s2, u2)), v(c2) && (t5.exclude = p(c2))), d(t5, u2, s2), t5;
            }
            function h(t5, n5, e4, i4, o3) {
              var a2, s2, c2, f2;
              return "[@]" === t5 ? { type: u.current, option: { type: n5 } } : "-1" === t5 ? { type: u.unbounded, option: { type: e4 } } : (a2 = /^\[@([-\+])(\d+(\.\d+)?)\]$/.exec(t5)) && (s2 = a2[1], c2 = Number(a2[2]), f2 = void 0, "-" === s2 ? f2 = r2.WindowOverFramePreceding.NPreceding : "+" === s2 && (f2 = r2.WindowOverFrameFollowing.NFollowing), i4 === r2.WindowOverFrameType.ROWS || i4 === r2.WindowOverFrameType.GROUPS ? c2 = Math.floor(c2) : o3 && ("-" === s2 ? f2 = r2.WindowOverFrameFollowing.NFollowing : "+" === s2 && (f2 = r2.WindowOverFramePreceding.NPreceding)), 0 !== c2) ? { type: u.range, value: Number(s2 + c2), option: { type: f2, offset: c2 } } : { type: u.current, option: { type: n5 } };
            }
            function d(t5, n5, e4) {
              var i4 = t5.begin, o3 = t5.end, a2 = false;
              if (o3) return n5 && e4 === r2.WindowOverFrameType.RANGE ? (i4.type === u.unbounded || i4.type === u.current && (o3.type === u.unbounded || o3.type === u.current || o3.type === u.range && o3.value <= 0) || i4.type === u.range && (o3.type === u.unbounded || i4.value >= 0 && o3.type === u.current || o3.type === u.range && i4.value >= o3.value)) && (a2 = true) : (i4.type === u.unbounded || i4.type === u.current && (o3.type === u.unbounded || o3.type === u.current || o3.type === u.range && o3.value >= 0) || i4.type === u.range && (o3.type === u.unbounded || i4.value <= 0 && o3.type === u.current || o3.type === u.range && i4.value <= o3.value)) && (a2 = true), t5.begin = t5.begin.option, t5.end = t5.end.option, void (a2 || (t5.begin.offset = -1, t5.end.offset = -1));
              t5.begin = t5.begin.option;
            }
            function v(t5) {
              return !!("number" == typeof t5 || t5 && 2 === t5.type && "number" == typeof t5.value) && (t5.value && (t5 = t5.value), t5 === r2.WindowOverFrameExcludeMode.current || t5 === r2.WindowOverFrameExcludeMode.group || t5 === r2.WindowOverFrameExcludeMode.none || t5 === r2.WindowOverFrameExcludeMode.ties);
            }
            function p(t5) {
              return "number" == typeof t5 ? t5 : t5.value;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addFrameGroupsCustomFunctions = n4.addFrameRowsCustomFunctions = n4.addFrameRangeCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/dataSource.interface.js"), o2 = e3("./dist/src/dataSource/utils.js"), a = e3("./dist/src/calculation/functions/windowOvers/util.js"), (function(t5) {
              t5[t5.unbounded = -1] = "unbounded", t5[t5.current = 0] = "current", t5[t5.range = 1] = "range";
            })(u || (u = {})), n4.addFrameRangeCustomFunctions = s, n4.addFrameRowsCustomFunctions = c, n4.addFrameGroupsCustomFunctions = f;
          }, "./dist/src/calculation/functions/windowOvers/util.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2(t5, n5) {
              return t5.getCalcService().unparse(t5, n5, 0, 0);
            }
            function a(t5, n5) {
              return t5.getCalcService().evaluateExpression(t5, n5, { row: 0, col: 0 });
            }
            function u(t5, n5) {
              try {
                return t5.getCalcService().parse(t5, n5, 0, 0);
              } catch (t6) {
                return null;
              }
            }
            function s(t5, n5, e4) {
              t5.wEt("windowFrameOrder", false === (e4 && e4.length > 0 && e4[0].ascending));
              var i4 = t5.getCalcService().evaluateExpression(t5, n5, { row: 0, col: 0 });
              return t5.wEt("windowFrameOrder"), i4;
            }
            function c(t5, n5) {
              var e4, i4 = o2(t5, n5);
              return 14 === n5.type ? (i4 = i4.replace(/[\[\]]/g, ""), (e4 = t5.nM.UAe(i4)) && (i4 = e4)) : i4 = "=".concat(i4), i4;
            }
            function f(t5) {
              return (0, i3.isNullOrUndefined)(t5) ? null : t5.functionName || t5.function && t5.function.name;
            }
            function l(t5) {
              return f(t5) === n4.PARTITIONBY;
            }
            function h(t5) {
              return f(t5) === n4.ORDERBY;
            }
            function d(t5) {
              var e4 = f(t5);
              return e4 === n4.FRAMERANGE || e4 === n4.FRAMEROWS || e4 === n4.FRAMEGROUPS;
            }
            function v(t5) {
              return f(t5) === n4.WINDOWDEF;
            }
            function p(t5, n5, e4, i4) {
              var r3, o3, a2;
              return l(n5) ? (r3 = g(t5, n5), h(e4) ? (o3 = g(t5, e4), d(i4) && (a2 = m(t5, i4, o3))) : d(e4) ? a2 = m(t5, e4) : b(e4) && d(i4) && (a2 = m(t5, i4, o3))) : h(n5) ? (o3 = g(t5, n5), d(e4) && (a2 = m(t5, e4, o3))) : d(n5) ? a2 = m(t5, n5) : b(n5) && (h(e4) ? (o3 = g(t5, e4), d(i4) && (a2 = m(t5, i4, o3))) : d(e4) && (a2 = m(t5, e4))), { partitions: r3, orders: o3, windowFrame: a2 };
            }
            function g(t5, n5) {
              var e4 = a(t5, n5);
              return e4.formula = o2(t5, n5), e4;
            }
            function m(t5, n5, e4) {
              var i4 = s(t5, n5, e4);
              return i4.formula = o2(t5, n5), i4;
            }
            function b(t5) {
              return t5 && 3 === t5.type;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.isStringExpression = n4.getOverOptions = n4.isWindowDef = n4.isWindowFrame = n4.isOrderBy = n4.isPartitionBy = n4.getExprFunctionName = n4.getFieldOption = n4.evaluateFrameExpression = n4.parseFormula = n4.evaluateExpression = n4.unparseExpression = n4.WINDOWDEF = n4.WINDOWOVERDECONSTRUCT = n4.FRAMEGROUPS = n4.FRAMEROWS = n4.FRAMERANGE = n4.ORDERDESC = n4.ORDERASC = n4.ORDERBY = n4.PARTITIONBY = n4.WINDOWOVER = n4.CalcFunction = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/calculation/functions/utils.js"), n4.CalcFunction = r2.CalcFunction, n4.WINDOWOVER = "WINDOW", n4.PARTITIONBY = "PARTITIONBY", n4.ORDERBY = "ORDERBY", n4.ORDERASC = "ORDERASC", n4.ORDERDESC = "ORDERDESC", n4.FRAMERANGE = "FRAMERANGE", n4.FRAMEROWS = "FRAMEROWS", n4.FRAMEGROUPS = "FRAMEGROUPS", n4.WINDOWOVERDECONSTRUCT = "WINDOWOVERDECONSTRUCT", n4.WINDOWDEF = "WINDOWDEF", n4.unparseExpression = o2, n4.evaluateExpression = a, n4.parseFormula = u, n4.evaluateFrameExpression = s, n4.getFieldOption = c, n4.getExprFunctionName = f, n4.isPartitionBy = l, n4.isOrderBy = h, n4.isWindowFrame = d, n4.isWindowDef = v, n4.getOverOptions = p, n4.isStringExpression = b;
          }, "./dist/src/calculation/functions/windowOvers/windowOver.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.WINDOWOVER, 1, 4), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4, r3) {
                var o3 = t6.Hhe.D5;
                return o3 || (t6.Hhe.D5 = o3 = a(t6.source, t6.Hhe)), t6.source.nM._getValueByField(o3, t6.source.DJ);
              }, i3.Functions.defineGlobalCustomFunction(r2.WINDOWOVER, new t5());
            }
            function a(t5, n5) {
              var e4 = (0, r2.unparseExpression)(t5, n5);
              return "=" === e4[0] ? e4 : "=" + e4;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWindowOverCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addWindowOverCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowOvers/windowOverDeconstruct.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new i3.Functions.Function(r2.WINDOWOVERDECONSTRUCT, 1, 4), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4, o3) {
                var u, s = t6.source, c = (0, r2.unparseExpression)(s, n5), f = (0, r2.getOverOptions)(s, e4, i4, o3), l = f.partitions, h = f.orders, d = f.windowFrame, v = a(e4, s) || a(i4, s) || a(o3, s) || {}, p = { windowExpression: n5, windowFormula: c, partitions: l || v.partitions, orders: h || v.orders, windowFrame: d || v.windowFrame, formulaFromWindowChaining: void 0, windowDefineName: v.windowDefineName }, g = Object.keys(v).length > 0;
                return g && (u = "=".concat(r2.WINDOWOVER, "(").concat(c), p.partitions && (u += ",".concat(p.partitions.formula)), p.orders && (u += ",".concat(p.orders.formula)), p.windowFrame && (u += ",".concat(p.windowFrame.formula)), u += ")", p.formulaFromWindowChaining = u), p;
              }, i3.Functions.defineGlobalCustomFunction(r2.WINDOWOVERDECONSTRUCT, new t5());
            }
            function a(t5, n5) {
              var e4, i4, o3, a2, u, s, c, f, l, h, d;
              if ((0, r2.isStringExpression)(t5)) return a2 = t5.value, (u = null === (o3 = null === (i4 = null === (e4 = n5.nM._dataSource) || void 0 === e4 ? void 0 : e4.options) || void 0 === i4 ? void 0 : i4.schema) || void 0 === o3 ? void 0 : o3.window) && u[a2] && (s = u[a2]) && (c = (0, r2.parseFormula)(n5, s), (0, r2.isWindowDef)(c)) ? (f = c.arguments[0], l = c.arguments[1], h = c.arguments[2], (d = (0, r2.getOverOptions)(n5, f, l, h)).windowDefineName = a2, d) : { windowDefineName: a2 };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWindowOverDeconstructCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addWindowOverDeconstructCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowOvers/windowOverDefine.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2() {
              function t5() {
              }
              t5.prototype = new r2.CalcFunction(r2.WINDOWDEF, 1, 3), t5.prototype.isContextSensitive = function() {
                return true;
              }, t5.prototype.acceptsExpressionArgument = function(t6) {
                return true;
              }, t5.prototype.evaluate = function(t6, n5, e4, i4) {
                return (0, r2.getOverOptions)(t6.source, n5, e4, i4);
              }, i3.Functions.defineGlobalCustomFunction(r2.WINDOWDEF, new t5());
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWindowOverDefineCustomFunctions = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), n4.addWindowOverDefineCustomFunctions = o2;
          }, "./dist/src/calculation/functions/windowOvers/windowOvers.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f() {
              (0, i3.addWindowOverCustomFunctions)(), (0, c.addWindowOverDefineCustomFunctions)(), (0, s.addWindowOverDeconstructCustomFunctions)(), (0, r2.addPartitionByCustomFunctions)(), (0, o2.addOrderByCustomFunctions)(), (0, a.addFrameRangeCustomFunctions)(), (0, a.addFrameRowsCustomFunctions)(), (0, a.addFrameGroupsCustomFunctions)(), (0, u.addOrderAscCustomFunctions)(), (0, u.addOrderDescCustomFunctions)();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.addWindowOverFunctions = void 0, i3 = e3("./dist/src/calculation/functions/windowOvers/windowOver.js"), r2 = e3("./dist/src/calculation/functions/windowOvers/partitionBy.js"), o2 = e3("./dist/src/calculation/functions/windowOvers/orderBy.js"), a = e3("./dist/src/calculation/functions/windowOvers/rangeRowsGroups.js"), u = e3("./dist/src/calculation/functions/windowOvers/ascDesc.js"), s = e3("./dist/src/calculation/functions/windowOvers/windowOverDeconstruct.js"), c = e3("./dist/src/calculation/functions/windowOvers/windowOverDefine.js"), n4.addWindowOverFunctions = f;
          }, "./dist/src/calculation/queryFunctionResolver.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u(t5, n5, e4) {
              return function(i4) {
                var r3 = [];
                return r3.push(i4.kEt(i4.mEt(t5), n5 || i4._dataSource.DEt, e4)), r3;
              };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.QueryFunctionSolver = void 0, i3 = e3("Common"), r2 = null, o2 = i3.Common.zf.fJ, a = (function() {
              function t5() {
              }
              return t5.parseParam = function(n5, e4, i4, a2) {
                var s, c = Object.keys(a2.tables), f = new t5(), l = function(t6) {
                  var s2, l2, h, d, v = c[t6];
                  n5 === v ? (f.getValue = function(t7) {
                    if (f.Mgr) return f.Mgr;
                    var n6 = t7.ASt(r2, r2, e4, i4);
                    return f.Mgr = n6, n6;
                  }, f.table = a2.tables[v]) : o2(n5, v) && (f.table = a2.tables[v], s2 = n5[v.length], l2 = n5.substr(v.length + 1), "#" === s2 ? (h = parseInt(l2, 10), f.getValue = function(t7) {
                    if (f.Mgr) return f.Mgr;
                    var n6 = [];
                    return n6.push(t7.kEt(h, e4 || t7._dataSource.DEt, i4)), f.Mgr = n6, n6;
                  }) : "/" === s2 ? f.getValue = function(t7) {
                    if (f.Mgr) return f.Mgr;
                    var n6 = u(l2, e4, i4)(t7);
                    return f.Mgr = n6, n6;
                  } : "?" === s2 ? 1 === (d = l2.split("=", 2)).length ? f.getValue = function(t7) {
                    if (f.Mgr) return f.Mgr;
                    var n6 = u(l2, e4, i4)(t7);
                    return f.Mgr = n6, n6;
                  } : f.getValue = function(t7) {
                    if (f.Mgr) return f.Mgr;
                    var n6 = t7.ASt(d[1], d[0], e4, i4);
                    return f.Mgr = n6, n6;
                  } : delete f.table);
                };
                for (s = 0; s < c.length; s++) l(s);
                return f;
              }, t5;
            })(), n4.QueryFunctionSolver = a;
          }, "./dist/src/calculation/tokenResolver.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s = this && this.qKr || (c = function(t5, n5) {
              return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, c(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              c(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), c;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerTokenResolver = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/calcSource.js"), o2 = e3("./dist/src/dataSource/utils.js"), a = (function(t5) {
              function n5(n6) {
                var e4 = t5.call(this, 14) || this;
                return e4.value = n6, e4;
              }
              return s(n5, t5), n5.prototype.Iwt = function(t6, n6) {
                var e4;
                this.value instanceof r2.DataManagerReference && this.value.table._Et(t6, this.value.Pq[0], n6);
              }, n5;
            })(i3.Expression), u = (function(t5) {
              function n5(n6) {
                return t5.call(this, n6) || this;
              }
              return s(n5, t5), n5.prototype.resolveToken = function(t6, n6, e4, i4, o3) {
                var u2, s2, c2, f = e4[i4], l = f.Awt, h = t6.source, d = h && h.nM;
                if (d && 0 === f._type && "[" === l[0] && "]" === l[l.length - 1]) {
                  if (u2 = new r2.DataManagerReference(), -1 === (s2 = this.EEt(u2, l, 1))) return;
                  if (u2.rowString = l.substring(1, s2), -1 === (s2 = this.jEt(u2, l, s2))) return;
                  return u2.table = d, u2.Pq = u2.field, u2.field = d.bEt(u2.field), { expr: c2 = new a(u2), index: i4 + 1 };
                }
              }, n5.prototype.EEt = function(t6, n6, e4) {
                var i4, r3, a2, u2, s2 = false;
                function c2(t7, e5) {
                  for (var i5 = e5 ? t7 + 1 : t7; n6[i5] >= "0" && n6[i5] <= "9"; ) i5++;
                  for (; " " === n6[i5]; ) i5++;
                  return { value: parseInt(n6.substring(t7, i5), 10), end: i5 };
                }
                function f(t7) {
                  for (var e5 = t7; e5 < n6.length && "[" !== n6[e5] && "]" !== n6[e5] && "," !== n6[e5]; ) e5++;
                  return { type: "key", value: n6.substring(t7, e5).trim(), end: e5 };
                }
                function l(t7) {
                  var e5, i5, r4 = n6[t7], o3 = n6[t7 + 1];
                  return "@" === r4 ? (s2 = true, "+" === o3 || "-" === o3 ? (e5 = c2(t7 + 1, true)).end <= t7 + 1 ? -1 : { num: e5.value, end: e5.end, relative: true } : { num: 0, end: t7 + 1, relative: true }) : "#" === r4 ? (e5 = c2(t7 + 1)).end > t7 + 1 ? { num: e5.value, end: e5.end, relative: false } : "last" === n6.substr(t7 + 1, 4) ? { num: -1, end: t7 + 5, relative: false } : "odd" === n6.substr(t7 + 1, 3) ? { type: "odd", end: t7 + 4 } : "even" === n6.substr(t7 + 1, 4) ? { type: "even", end: t7 + 5 } : -1 : "$" === r4 ? (i5 = f(t7 + 1)).end >= n6.length ? -1 : i5 : -1;
                }
                for (i4 = null; e4 < n6.length && "[" !== (r3 = n6[e4]) && "]" !== r3; ) if (i4 || "@" !== r3 && "#" !== r3 && "$" !== r3) if ("," === r3 && i4) i4 = false, e4++;
                else {
                  if (" " !== r3) break;
                  e4++;
                }
                else {
                  if (-1 === (a2 = l(e4))) return -1;
                  if (":" !== n6[a2.end] || (0, o2.isNullOrUndefined)(a2.num)) t6.row.push(a2), e4 = a2.end;
                  else {
                    for (e4 = a2.end + 1; " " === n6[e4]; ) e4++;
                    if (-1 === (u2 = l(e4)) || (0, o2.isNullOrUndefined)(u2.num)) return -1;
                    t6.row.push([a2, u2]), e4 = u2.end;
                  }
                  i4 = true;
                }
                return t6.gEt = s2, false === i4 ? -1 : e4;
              }, n5.prototype.jEt = function(t6, n6, e4) {
                var i4, r3, o3;
                function a2(t7) {
                  for (var e5 = t7; "]" !== n6[e5]; ) e5++;
                  return { str: n6.substring(t7, e5), end: e5 };
                }
                function u2(t7) {
                  for (var e5 = t7; "." !== n6[e5] && "]" !== n6[e5]; ) e5++;
                  return { str: n6.substring(t7, e5), end: e5 };
                }
                for (i4 = null; e4 < n6.length; ) if ("[" !== (r3 = n6[e4]) || i4) {
                  if ("]" === r3) break;
                  if (" " === r3) e4++;
                  else if ("." === r3 && i4) e4++, i4 = false;
                  else {
                    if ("." === r3 || i4) return -1;
                    o3 = u2(e4), t6.field.push(o3.str), e4 = o3.end, i4 = true;
                  }
                } else {
                  if ((o3 = a2(e4 + 1)).end <= e4 + 1) return -1;
                  t6.field.push(o3.str), e4 = o3.end + 1, i4 = true;
                }
                return e4 === n6.length - 1 ? e4 : -1;
              }, n5.prototype.unparse = function(t6, n6, e4, i4) {
                var r3, o3, a2, u2, s2, c2;
                if (14 !== e4.type) return false;
                if (i4.push("["), (r3 = e4.value.rowString).length > 0 && i4.push(r3), (o3 = e4.value.Pq).length > 0) for (a2 = "@" === r3 || "" === r3, u2 = 0, s2 = o3.length; u2 < s2; u2++) c2 = o3[u2], !a2 || c2.indexOf(" ") > -1 ? i4.push("[".concat(c2, "]")) : i4.push(c2), u2 < s2 - 1 && i4.push(".");
                return i4.push("]"), true;
              }, n5;
            })(i3.TokenResolver), n4.DataManagerTokenResolver = u;
          }, "./dist/src/data-manager-report/data-manager-proxy/data-manager-proxy.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerProxy = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataManager.entry.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), a = e3("./dist/src/data-manager-report/data-manager-proxy/report-table.js"), u = (function() {
              function t5(t6) {
                this.QSt = {}, this.N3 = t6;
              }
              return t5.prototype.getTable = function(t6) {
                var n5, e4;
                if (!(0, r2.isNullOrUndefined)(t6)) {
                  if (this.QSt[t6]) return this.QSt[t6];
                  if ((n5 = this.N3.tables)[t6]) return this.QSt[t6] = new a.ReportTable({ dataManagerTable: n5[t6] }), this.QSt[t6];
                  for (e4 in t6 = t6.toUpperCase(), n5) if (n5.hasOwnProperty(e4) && e4.toUpperCase() === t6) return this.QSt[t6] = new a.ReportTable({ dataManagerTable: n5[e4] }), this.QSt[t6];
                  return (0, o2.isFormulaInWhitelist)(t6) ? (this.QSt[t6] = this.generateFormulaTableByFormula(t6), this.QSt[t6]) : void 0;
                }
              }, t5.prototype.getCalcService = function() {
                var t6 = this.N3.Lp;
                return t6.allowDynamicArray = true, t6;
              }, t5.prototype.getTables = function() {
                return this.QSt;
              }, t5.prototype.getRelationshipsByTable = function(t6) {
                var n5, e4 = this.N3.relationships;
                return t6 && (n5 = t6.table(), e4 = e4.filter((function(t7) {
                  return t7.sourceTable === n5 || t7.targetTable === n5;
                }))), e4;
              }, t5.prototype.generateFormulaTableByFormula = function(t6) {
                var n5 = this.getCalcService(), e4 = new i3.CalcSource(n5), r3 = (0, o2.getFormulaResult)(n5, e4, t6.replace(/__\d+__\d+/g, ""));
                return new a.ReportTable({ formulaTable: { name: t6, formulaResult: r3 } });
              }, t5.prototype.clearTableDataCache = function() {
                var t6, n5 = this.QSt;
                for (t6 in n5) n5.hasOwnProperty(t6) && n5[t6].clearTableDataCache();
              }, t5;
            })(), n4.DataManagerProxy = u;
          }, "./dist/src/data-manager-report/data-manager-proxy/report-table.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ReportTable = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = (function() {
              function t5(t6) {
                var n5 = this, e4 = t6.dataManagerTable, i4 = t6.formulaTable;
                e4 ? (this.c1e = e4, this.Sye = {}) : this.f1e = i4, this.f1e && (this.l1e = this.f1e.formulaResult.map((function(t7) {
                  var e5 = {};
                  return e5[n5.f1e.name] = t7, e5;
                })));
              }
              return Object.defineProperty(t5.prototype, "name", { get: function() {
                return (this.c1e || this.f1e).name;
              }, enumerable: false, configurable: true }), t5.prototype.table = function() {
                return this.c1e;
              }, t5.prototype.getFields = function() {
                return this.c1e.ltt();
              }, t5.prototype.getData = function(t6) {
                var n5, e4, i4, r3;
                if (this.f1e) if (t6) for (n5 = [], e4 = 0, i4 = t6; e4 < i4.length; e4++) r3 = i4[e4], n5.push(this.l1e[r3]);
                else n5 = this.l1e;
                else n5 = this.c1e.getDataSync(t6);
                return n5;
              }, t5.prototype.length = function() {
                return this.f1e ? this.l1e.length : this.c1e.length();
              }, t5.prototype.getValueByField = function(t6, n5, e4) {
                var r3, o2, a, u;
                return this.f1e ? (0, i3.formatCalcError)(this.f1e.formulaResult[n5]) : (r3 = void 0, (o2 = this.Sye[t6]) && o2.hasOwnProperty(n5) ? r3 = o2[n5] : (u = t6, (a = this.c1e.columns)[t6] && "string" == typeof a[t6].value && (u = a[t6].value), r3 = this.c1e._getValueByField(u, n5), o2 || (o2 = this.Sye[t6] = {}), o2[n5] = r3), t6.startsWith("=") && !e4 ? (0, i3.formatCalcError)(r3) : r3);
              }, t5.prototype.hasField = function(t6) {
                return this.f1e ? t6 === this.f1e.name : (t6 = t6.toUpperCase(), Object.keys(this.c1e.columns).filter((function(n5) {
                  return n5.toUpperCase() === t6;
                })).length > 0);
              }, t5.prototype.getFieldByNameIgnoreCase = function(t6) {
                return this.f1e ? { fieldName: this.name } : this.c1e.h1e(t6);
              }, t5.prototype.reset = function() {
                this.f1e || (this.c1e.XOt = {});
              }, t5.prototype.clearTableDataCache = function() {
                this.Sye = {};
              }, t5;
            })(), n4.ReportTable = r2;
          }, "./dist/src/data-manager-report/data-manager-report.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/dataManager.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/index.js"), (a = i3.Common.lt.Dh)(r2.DataManager.prototype, { generateTreeData: function(t5) {
              var n5;
              new o2.TreeDataGenerator(this, t5).generateTreeData();
            } });
          }, "./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-cross-helper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerReportCrossHelper = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js"), a = (function() {
              function t5(t6, n5, e4, i4, r3) {
                this.N3 = t6, this.DJ = n5, this.d1e = e4, this.v1e = i4, this.m1e = r3;
              }
              return t5.prototype.processCrossCells = function(t6) {
                var n5 = this;
                try {
                  t6.forEach((function(t7) {
                    var e4 = t7.leftParent.data.groups, i4 = t7.upParent.data.groups, r3 = n5.g1e(t7);
                    r3 ? r3.data.groups.forEach((function(r4) {
                      var o3 = [], a2 = [];
                      e4.forEach((function(t8) {
                        t8 === r4 && o3.push(t8);
                        for (var n6 = t8.leftParent || t8.upParent; n6; ) {
                          if (n6 === r4) return void o3.push(t8);
                          if (n6.cellNode === r4.cellNode) return;
                          n6 = n6.leftParent || n6.upParent;
                        }
                      })), i4.forEach((function(t8) {
                        t8 === r4 && a2.push(t8);
                        for (var n6 = t8.upParent || t8.leftParent; n6; ) {
                          if (n6 === r4) return void a2.push(t8);
                          if (n6.cellNode === r4.cellNode) return;
                          n6 = n6.upParent || n6.leftParent;
                        }
                      })), n5.p1e(t7, o3, a2);
                    })) : n5.p1e(t7, e4, i4);
                  }));
                } catch (t7) {
                }
              }, t5.prototype.g1e = function(t6) {
                for (var n5, e4 = t6.leftParent; e4; ) {
                  for (n5 = t6.upParent; n5; ) {
                    if (n5 === e4) return e4;
                    n5 = n5.upParent || n5.leftParent;
                  }
                  e4 = e4.leftParent || e4.upParent;
                }
                return null;
              }, t5.prototype.p1e = function(t6, n5, e4) {
                var i4, r3, o3, a2, u, s, c, f, l, h = this, d = t6.indexOfLeftParentChildren, v = t6.indexOfUpParentChildren, p = {}, g = [], m = this.d1e.getRelationshipsMap(), b = m[t6.relationshipMapKey];
                for (n5.forEach((function(t7, n6) {
                  var i5, r4;
                  t7.crossChildren[d] || (t7.crossChildren[d] = []), i5 = t7.valuePath, p[i5] || (p[i5] = {}), r4 = p[i5], e4.forEach((function(e5, i6) {
                    e5.crossChildren[v] || (e5.crossChildren[v] = []);
                    var o4 = { vg: t7, hg: e5, vIndex: n6, hIndex: i6, crossChildren: [], crossRecordRowNumbers: [] };
                    r4[e5.valuePath] = o4, g.push(o4);
                  }));
                })), b && b.forEach((function(n6, e5) {
                  var i5 = h.v1e.generateParentPaths(t6.leftParent, n6), r4 = h.v1e.generateParentPaths(t6.upParent, n6);
                  i5.forEach((function(t7) {
                    r4.forEach((function(n7) {
                      var i6 = p[t7], r5 = null == i6 ? void 0 : i6[n7];
                      r5 && r5.crossRecordRowNumbers.push(e5);
                    }));
                  }));
                })), i4 = 0, r3 = g; i4 < r3.length; i4++) a2 = (o3 = r3[i4]).vg, u = o3.hg, s = o3.vIndex, c = o3.hIndex, f = o3.crossRecordRowNumbers, l = this.y1e(a2, u, f, t6), a2.crossChildren[d][c] = l, u.crossChildren[v][s] = l;
              }, t5.prototype.y1e = function(t6, n5, e4, i4, o3) {
                var a2, u, s, c, f, l, h = this.N3;
                return t6 && n5 || (s = (u = (a2 = t6 || n5) && a2.cellNode) && u.relationshipMapKey, c = i4.relationshipMapKey, void 0 !== s && c !== s && e4 && e4.length && (f = (0, r2.getTableNameByCellNode)(i4), (l = h.getTable(f)) && o3 && (e4 = this.v1e.M1e(i4, e4, l, o3, c, s, a2)))), "No" === i4.templateCell.expansionDirection ? this.C1e(t6, n5, e4, i4) : this.S1e(t6, n5, e4, i4);
              }, t5.prototype.C1e = function(t6, n5, e4, a2) {
                var u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C;
                if (a2.templateCell.dataColumn ? (c = a2.templateCell.dataColumn.tableName, f = a2.templateCell.dataColumn.columnName) : a2.templateCell.formula && "No" !== a2.templateCell.expansionDirection && (0, r2.isFormulaInWhitelist)(a2.templateCell.formula) && (c = (0, r2.getTableNameByCellNode)(a2), f = a2.templateCell.formula), l = [], h = {}, (0, i3.isNullOrUndefined)(c)) u = a2.templateCell.value;
                else {
                  if (!(s = this.N3.getTable(c))) return [];
                  o2.DataManagerReportSortHelper.parseSortOptionsToSorts(a2.templateCell), d = (this.d1e.getTableNameCacheFromParent(a2) || c).toUpperCase(), v = this.d1e.getRelationshipsMap()[a2.relationshipMapKey], e4.forEach((function(t7) {
                    var n6 = v[t7] && v[t7][d];
                    void 0 === n6 || h[n6] || (l.push(n6), h[n6] = true);
                  })), p = l.map((function(t7) {
                    return s.getValueByField(f, t7);
                  })), u = this.T1e(p, a2);
                }
                for (g = { value: u, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: e4, cellNode: a2, state: "normal", I1e: h }, 0 !== l.length || (0, i3.isNullOrUndefined)(c) || (g.defaultFormula = (0, r2.generateDefaultFormulaByTemplateCell)(a2.templateCell), g.state = "new"), m = 0, b = a2.children; m < b.length; m++) w = void 0, M = void 0, (y = b[m]).leftParent === a2 ? w = g : y.upParent === a2 && (M = g), C = this.y1e(w, M, e4, y, s), g.childrenArray.push(C);
                return a2.data.groups.push(g), [g];
              }, t5.prototype.S1e = function(t6, n5, e4, a2) {
                var u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F = this, B = [], P = a2.templateCell, G = P.dataSetting, U = G.type;
                if (P.dataColumn ? (l = P.dataColumn.tableName, h = P.dataColumn.columnName) : P.formula && "No" !== P.expansionDirection && (0, r2.isFormulaInWhitelist)(P.formula) && (l = (0, r2.getTableNameByCellNode)(a2), h = P.formula), (0, i3.isNullOrUndefined)(l)) B.push({ value: P.value, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: [], cellNode: a2, state: "normal", sortValues: [a2.templateCell.value], I1e: {} });
                else {
                  if (!(f = this.N3.getTable(l))) return [];
                  if (o2.DataManagerReportSortHelper.parseSortOptionsToSorts(P), d = (this.d1e.getTableNameCacheFromParent(a2) || l).toUpperCase(), v = this.d1e.getRelationshipsMap()[a2.relationshipMapKey], p = [], g = [], m = {}, b = [], !e4) {
                    for (y = v.length, w = [], M = 0; M < y; ) w.push(M++);
                    e4 = w;
                  }
                  e4.forEach((function(t7) {
                    var n6, e5 = null === (n6 = v[t7]) || void 0 === n6 ? void 0 : n6[d];
                    void 0 !== e5 && (p.push(e5), m[e5] || (g.push(e5), m[e5] = true), b[e5] || (b[e5] = []), b[e5].push(t7));
                  })), 0 === e4.length ? B.push({ value: void 0, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: [], cellNode: a2, state: "new", sortValues: null, I1e: {}, defaultFormula: (0, r2.generateDefaultFormulaByTemplateCell)(P) }) : "Group" === U ? (p.forEach((function(r3, o3) {
                    var u2, s2, c2, l2, d2, v2, p2 = f.getValueByField(h, r3), g2 = [{ value: p2, advancedGroupSortName: p2 }];
                    for ((null === (u2 = G.bins) || void 0 === u2 ? void 0 : u2.length) && (g2 = F.v1e.getAdvancedGroupValue(f, r3, G)), c2 = function(u3) {
                      var c3, l3, h2, d3, v3, p3, g3 = u3.advancedGroupSortName + "", m2 = B.find((function(t7) {
                        return t7.value === u3.value;
                      }));
                      if (m2) m2.recordRowNumbers.push(e4[o3]), m2.I1e[r3] || (m2.I1e[r3] = true);
                      else {
                        if (l3 = [], null === (s2 = P.x1e) || void 0 === s2 ? void 0 : s2.length) for (h2 = 0, d3 = P.x1e; h2 < d3.length; h2++) v3 = d3[h2], p3 = void 0, (0, i3.isNullOrUndefined)(v3.column) || (p3 = f.getValueByField(v3.column, r3)), l3.push(p3);
                        B.push({ value: u3.value, N1e: g3, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: [e4[o3]], cellNode: a2, state: "normal", sortValues: l3, I1e: (c3 = {}, c3[r3] = true, c3) });
                      }
                    }, l2 = 0, d2 = g2; l2 < d2.length; l2++) c2(v2 = d2[l2]);
                  })), (null === (u = G.bins) || void 0 === u ? void 0 : u.length) && (C = {}, S = {}, B.forEach((function(t7) {
                    S[t7.N1e] = true;
                  })), G.bins.forEach((function(e5, i4) {
                    var r3, o3;
                    C[e5.caption] = i4, r3 = e5.caption, S[e5.caption] || true !== e5.alwaysVisible || (o3 = { value: r3, N1e: r3, recordRowNumbers: [], childrenArray: [], leftParent: t6, upParent: n5, crossChildren: [], state: "new", cellNode: a2, sortValues: null, I1e: {} }, B.push(o3));
                  })), B.sort((function(t7, n6) {
                    var e5, i4;
                    return C[t7.N1e + ""] - C[n6.N1e + ""];
                  })))) : "List" === U ? g.forEach((function(e5, r3) {
                    var o3, u2, s2, c2, l2, d2, v2 = f.getValueByField(h, e5), p2 = [];
                    if (null === (u2 = P.x1e) || void 0 === u2 ? void 0 : u2.length) for (s2 = 0, c2 = P.x1e; s2 < c2.length; s2++) l2 = c2[s2], d2 = void 0, (0, i3.isNullOrUndefined)(l2.column) || (d2 = f.getValueByField(l2.column, e5)), p2.push(d2);
                    B.push({ value: v2, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: b[e5], cellNode: a2, state: "normal", sortValues: p2, I1e: (o3 = {}, o3[e5] = true, o3) });
                  })) : (T = g.map((function(t7) {
                    return f.getValueByField(h, t7);
                  })), x = P.dataSetting, A = (0, r2.calc)(T, x.aggregation), B.push({ value: A, leftParent: t6, upParent: n5, childrenArray: [], crossChildren: [], recordRowNumbers: e4, cellNode: a2, state: "normal", sortValues: [A], I1e: m }));
                }
                for (I = 0, k = B; I < k.length; I++) for (j = (N = k[I]).recordRowNumbers, D = 0, _ = a2.children; D < _.length; D++) E = void 0, R = void 0, (O = _[D]).leftParent === a2 ? E = N : O.upParent === a2 && (R = N), L = this.y1e(E, R, j, O, f), N.childrenArray.push(L);
                return null === (s = this.m1e) || void 0 === s || s.sortGroupsBySortCondition(B, a2, null === (c = this.DJ) || void 0 === c ? void 0 : c.cellNodeGetter), B.forEach((function(t7) {
                  a2.data.groups.push(t7);
                })), B;
              }, t5.prototype.T1e = function(t6, n5) {
                var e4, i4 = n5.templateCell.dataSetting;
                return i4 && "Group" === i4.type ? (e4 = [], t6.forEach((function(t7) {
                  -1 === e4.indexOf(t7) && e4.push(t7);
                })), e4.length > 1 ? e4 : e4[0]) : "List" === i4.type ? t6.map((function(t7) {
                  return t7;
                })) : (0, r2.calc)(t6, i4 && i4.aggregation || "Sum");
              }, t5;
            })(), n4.DataManagerReportCrossHelper = a;
          }, "./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-group-helper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerReportGroupHelper = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataManager.entry.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), a = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js"), u = (function() {
              function t5(t6, n5, e4, r3) {
                this.N3 = t6, this.DJ = n5, this.k1e = new i3.CalcSource(t6.getCalcService()), this.D1e = {}, this.cdr = {}, this.m1e = r3, this.d1e = e4;
              }
              return t5.prototype.generateCellNodeTreeData = function(t6, n5, e4, i4, r3, u2, s) {
                var c, f, l, h, d, v, p, g, m, b, y, w, M, C, S = this.N3, T = (0, o2.getTableByCellNode)(S, t6), x = [], A = {};
                for (t6.templateCell.dataColumn ? l = t6.templateCell.dataColumn.columnName : t6.templateCell.formula && (0, o2.isFormulaInWhitelist)(t6.templateCell.formula) ? l = t6.templateCell.formula : x.push({ value: t6.templateCell.value, recordRowNumbers: [], I1e: {}, childrenArray: [], leftParent: n5, upParent: e4, crossChildren: [], state: "normal", cellNode: t6, sortValues: null, valuePath: this.j1e(n5, e4) + "/" + t6.templateCell.value }), T || 0 !== x.length || x.push({ value: void 0, recordRowNumbers: [], I1e: {}, childrenArray: [], leftParent: n5, upParent: e4, crossChildren: [], state: "new", cellNode: t6, sortValues: null, valuePath: this.j1e(n5, e4) + "/", defaultFormula: (0, o2.generateDefaultFormulaByTemplateCell)(t6.templateCell) }), a.DataManagerReportSortHelper.parseSortOptionsToSorts(t6.templateCell), h = this.d1e && this.d1e.generateRelationshipMapKeyByCellNode(t6), 0 === x.length && (x = this.Qqn(A, t6, T, l, h, n5, e4, i4, r3, u2, s)), d = 0, v = x; d < v.length; d++) for (g = (p = v[d]).recordRowNumbers, m = 0, b = t6.children; m < b.length; m++) (y = b[m]).leftParent && y.upParent ? p.childrenArray.push([]) : (w = void 0, M = void 0, y.leftParent ? w = p : y.upParent && (M = p), C = this.generateCellNodeTreeData(y, w, M, g, T, h, s), p.childrenArray.push(C), null === (c = y.slices) || void 0 === c || c.forEach((function(t7) {
                  delete t7.groupMapCache, delete t7.groupsCache;
                })));
                return null === (f = this.m1e) || void 0 === f || f.sortGroupsBySortCondition(x, t6, this.DJ && this.DJ.cellNodeGetter), x.forEach((function(n6) {
                  return t6.data.groups.push(n6);
                })), x;
              }, t5.prototype.clearCache = function(t6) {
                t6 && (this.k1e = null, this.D1e = void 0, this.cdr = void 0);
              }, t5.prototype.Qqn = function(t6, n5, e4, i4, r3, a2, u2, s, c, f, l) {
                var h, d, v, p, g, m, b, y, w, M, C, S, T, x = [], A = {}, I = null === (h = this.d1e) || void 0 === h ? void 0 : h.getRelationshipsMap(), k = n5.templateCell, N = k.dataSetting;
                if (r3 && I && I[r3] || s) if (v = 0 === (null === (d = null == I ? void 0 : I[r3]) || void 0 === d ? void 0 : d.length), p = !c && s && 0 === s.length, v || p ? s = void 0 : void 0 !== f && r3 !== f && s && s.length && (s = this.M1e(n5, s, e4, c, r3, f, a2 || u2)), g = s ? s.length : r3 ? I[r3].length : 0, m = this.j1e(a2, u2), N && "Summary" === N.type) x = this.E1e(n5, e4, i4, s, r3, a2, u2, m);
                else {
                  if (0 === g) b = { value: void 0, recordRowNumbers: [], I1e: {}, childrenArray: [], leftParent: a2, upParent: u2, crossChildren: [], state: "new", cellNode: n5, sortValues: null, valuePath: m + "/", defaultFormula: (0, o2.generateDefaultFormulaByTemplateCell)(k) }, x.push(b);
                  else {
                    for (y = 0; y < g; y++) w = s ? s[y] : y, this.O1e(x, t6, A, n5, e4, i4, w, r3, a2, u2, m, l);
                    "No" === k.expansionDirection && (C = (M = x[0]) && Array.isArray(M.value)) && (M.N1e = M.N1e.toString(), M.valuePath += M.value.toString());
                  }
                  N && "Group" === N.type && N.bins && N.bins.length && (S = {}, T = {}, x.forEach((function(t7) {
                    T[t7.N1e] = true;
                  })), N.bins.forEach((function(t7, e5) {
                    var i5, r4;
                    S[t7.caption] = e5, i5 = t7.caption, T[t7.caption] || true !== t7.alwaysVisible || (r4 = { value: i5, N1e: i5, recordRowNumbers: [], I1e: {}, childrenArray: [], leftParent: a2, upParent: u2, crossChildren: [], state: "new", cellNode: n5, sortValues: null, valuePath: m + "/" + i5 }, x.push(r4));
                  })), x.sort((function(t7, n6) {
                    var e5, i5;
                    return S[t7.N1e + ""] - S[n6.N1e + ""];
                  })));
                }
                return x;
              }, t5.prototype.O1e = function(t6, n5, e4, i4, a2, u2, s, c, f, l, h, d) {
                var v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E = this, R = null === (v = this.d1e) || void 0 === v ? void 0 : v.getTableNameCacheFromParent(i4), L = R || (null == a2 ? void 0 : a2.name), F = null === (p = this.d1e) || void 0 === p ? void 0 : p.getRelationshipsMap(), B = L.toUpperCase(), P = F ? F[c][s][B] : s;
                if (void 0 !== P || F && F[c][s].hasOwnProperty(B)) {
                  if (y = a2.getValueByField(u2, P), w = [{ value: y, advancedGroupSortName: y }], M = i4.templateCell.dataSetting, C = [], null === (g = i4.templateCell.x1e) || void 0 === g ? void 0 : g.length) for (S = 0, T = i4.templateCell.x1e; S < T.length; S++) A = void 0, I = (x = T[S]).column, k = x.formula, (0, r2.isNullOrUndefined)(I) ? (0, r2.isNullOrUndefined)(k) || (A = a2.getValueByField(k, P)) : A = a2.getValueByField(x.column, P), C.push(A);
                  for (M && "Group" === M.type && ((null === (m = M.bins) || void 0 === m ? void 0 : m.length) || M.formula) && (w = this.getAdvancedGroupValue(a2, P, M), (N = i4.templateCell.w1e) || (N = i4.templateCell.w1e = []), (j = N[P]) || (j = N[P] = []), w.forEach((function(t7) {
                    var n6 = t7.value + "";
                    -1 === j.indexOf(n6) && j.push(n6);
                  }))), D = M && "List" === M.type, _ = function(r3) {
                    var a3, u3, c2, v2, p2 = w[r3], g2 = p2.value, m2 = p2.advancedGroupSortName, y2 = n5[g2];
                    y2 && !D || (a3 = true, D && (y2 = e4[P]) && (a3 = false), "No" === i4.templateCell.expansionDirection && (y2 = t6[0]) && (a3 = false, u3 = y2.value, c2 = y2.N1e, Array.isArray(u3) || (u3 = [y2.value]), Array.isArray(c2) || (c2 = [y2.N1e]), y2.I1e[P] || (u3.push(p2.value), c2.push(p2.advancedGroupSortName)), y2.value = u3, y2.N1e = c2, y2.valuePath = h + "/", n5[g2] = y2), a3 && (y2 = { value: p2.value, N1e: m2, recordRowNumbers: [], I1e: {}, childrenArray: [], leftParent: f, upParent: l, crossChildren: [], state: void 0 === P ? "new" : "normal", cellNode: i4, valuePath: h + "/" + p2.value + (D ? "/" + P : ""), defaultFormula: void 0 === P ? (0, o2.generateDefaultFormulaByTemplateCell)(i4.templateCell) : void 0, sortValues: C, slices: null }, t6.push(y2), n5[g2] = y2, D && (e4[P] = y2))), (null === (b = i4.slices) || void 0 === b ? void 0 : b.length) && (v2 = y2.value, i4.slices.forEach((function(t7, n6) {
                      var i5, r4, o3, a4, u4 = t7.groupsCache, s2 = t7.groupMapCache;
                      u4 || (u4 = t7.groupsCache = {}), (i5 = u4[v2 + ""]) || (i5 = u4[v2 + ""] = []), s2 || (s2 = t7.groupMapCache = {}), (r4 = s2[v2 + ""]) || (r4 = s2[v2 + ""] = {}), o3 = t7.templateCell.dataColumn.tableName, a4 = t7.templateCell.dataColumn.columnName, E.O1e(i5, r4, e4, t7, E.N3.getTable(o3), a4, P, void 0, void 0, void 0, ""), y2.slices || (y2.slices = []), void 0 === y2.slices[n6] && (y2.slices[n6] = { childrenArray: [i5] });
                    }))), y2.recordRowNumbers.push(s), (null == d ? void 0 : d.ignoreMultipleTableJoinCache) || y2.I1e[P] || (y2.I1e[P] = true);
                  }, O = 0; O < w.length; O++) _(O);
                }
              }, t5.prototype.j1e = function(t6, n5) {
                var e4, i4, o3 = "";
                return t6 ? (e4 = (0, r2.isNullOrUndefined)(t6.value) ? "" : t6.value, o3 = void 0 !== t6.valuePath ? t6.valuePath : e4.toString()) : n5 && (i4 = (0, r2.isNullOrUndefined)(n5.value) ? "" : n5.value, o3 = void 0 !== n5.valuePath ? n5.valuePath : i4.toString()), o3;
              }, t5.prototype.E1e = function(t6, n5, e4, i4, a2, u2, s, c) {
                var f, l, h, d, v, p, g, m, b = t6.templateCell.dataSetting, y = null === (f = this.d1e) || void 0 === f ? void 0 : f.getRelationshipsMap(), w = i4 ? i4.length : y[a2].length, M = [], C = [], S = {}, T = null === (l = this.d1e) || void 0 === l ? void 0 : l.getTableNameCacheFromParent(t6), x = (T || (null == n5 ? void 0 : n5.name)).toUpperCase();
                for (h = 0; h < w; h++) d = i4 ? i4[h] : h, v = y ? y[a2][d][x] : d, M.push(d), S[v] || (C.push(v), S[v] = true);
                return p = C.map((function(t7) {
                  return n5.getValueByField(e4, t7);
                })), g = (0, o2.calc)(p, (null == b ? void 0 : b.aggregation) || "Sum"), [m = { value: g = (0, r2.isNullOrUndefined)(g) ? 0 : g, N1e: "", recordRowNumbers: M, I1e: S, childrenArray: [], leftParent: u2, upParent: s, crossChildren: [], state: "normal", cellNode: t6, valuePath: c + "/" + g, sortValues: null, slices: null }];
              }, t5.prototype.M1e = function(t6, n5, e4, i4, r3, a2, u2) {
                var s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O = this.d1e.getRelationshipsMap(), E = O[r3], R = O[a2], L = i4.name, F = null === (s = t6.templateCell.R1e) || void 0 === s ? void 0 : s.condition, B = [], P = u2.cellNode, G = u2.valuePath, U = "".concat(r3, "__").concat(t6.templateCell.row, "__").concat(t6.templateCell.col), H = this.D1e[U];
                if (H || (H = this.D1e[U] = []), c = null == E ? void 0 : E[0], f = e4.name.toUpperCase(), l = L.toUpperCase(), h = (null == c ? void 0 : c.hasOwnProperty(f)) && c.hasOwnProperty(l), F) {
                  if (h) {
                    if (L = l, (d = this.B1e(r3, L)) && R) {
                      for (v = [], p = [], g = [], m = 0, b = n5; m < b.length; m++) if (!g[w = R[y = b[m]][L]] && (M = d[w])) for (g[w] = true, C = 0, S = M; C < S.length; C++) p[T = S[C]] || ((null == (x = H[T]) ? void 0 : x[G]) ? v.push(T) : (void 0 === (A = B[T]) && (A = this.F1e(E[T], u2), B[T] = A), A && (v.push(T), p[T] = true, H[T] || (H[T] = {}), H[T][G] = true)));
                      return v;
                    }
                  } else if (e4 === i4) {
                    if (I = [], E) return k = this.d1e.getTableNameCacheFromParent(P), N = (0, o2.toUpperCase)(k || i4.name), E.forEach((function(t7, e5) {
                      -1 !== n5.indexOf(t7[N]) && I.push(e5);
                    })), I;
                  } else if (e4 !== i4) return null;
                } else if (e4 === i4) {
                  if (v = [], R) {
                    for (k = this.d1e.getTableNameCacheFromParent(P), j = (0, o2.toUpperCase)(k || i4.name), D = 0, _ = n5; D < _.length; D++) y = _[D], v.push(R[y][j]);
                    return v;
                  }
                } else if (e4 !== i4) return null;
                return n5;
              }, t5.prototype.B1e = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s, c, f = n5 + "__TO__" + t6;
                if (this.cdr[f]) return this.cdr[f];
                if (i4 = (e4 = this.d1e.getRelationshipsMap())[t6]) {
                  for (r3 = [], o3 = void 0, a2 = void 0, u2 = void 0, n5 = n5.toUpperCase(), s = 0, c = i4.length; s < c; s++) (u2 = r3[a2 = (o3 = i4[s])[n5]]) || (u2 = [], r3[a2] = u2), u2.push(s);
                  return this.cdr[f] = r3, r3;
                }
              }, t5.prototype.getAdvancedGroupValue = function(t6, n5, e4) {
                var r3, a2, u2, s, c, f, l, h, d, v = this.N3, p = [], g = e4.formula, m = e4.bins;
                if (g) (g = g.trim()).startsWith("=") || (g = "=" + g), r3 = t6.getValueByField(g, n5), p.push({ value: r3, advancedGroupSortName: r3 });
                else if (m) {
                  for (a2 = 0, u2 = m; a2 < u2.length; a2++) if (c = (s = u2[a2]).caption, f = s.groupBy) {
                    if ("string" == typeof f) {
                      if ((l = v.getCalcService().parse(this.k1e, f, 0, 0)).type === i3.ExpressionType.name) {
                        if (h = (0, o2.fieldExpressionToField)(l.value), p.push({ value: t6.getValueByField(h, n5), advancedGroupSortName: c }), false !== s.stopIfTrue) break;
                        continue;
                      }
                      if ((d = t6.getValueByField(f, n5, true)) && !(d instanceof i3.CalcError) && (p.push({ value: c, advancedGroupSortName: c }), false !== s.stopIfTrue)) break;
                    }
                  } else if (0 === p.length && (p.push({ value: s.caption, advancedGroupSortName: s.caption }), false !== s.stopIfTrue)) break;
                }
                return p;
              }, t5.prototype.F1e = function(t6, n5, e4) {
                var i4, r3, a2, u2, s, c, f, l, h, d = n5.cellNode, v = this.d1e.getTableNameCacheFromParent(d) || (0, o2.getTableNameByCellNode)(d, true) || d.templateCell.value + "";
                return v = v.toUpperCase(), r3 = this.N3.getTable(v), a2 = t6[v], u2 = false, s = null === (i4 = this.d1e) || void 0 === i4 ? void 0 : i4.getRelationshipsMap(), (null == e4 ? void 0 : e4.relationshipMapKey) && s[e4.relationshipMapKey] && (c = s[e4.relationshipMapKey][0]) && (f = (this.d1e.getTableNameCacheFromParent(e4) || (0, o2.getTableNameByCellNode)(e4, true) || e4.templateCell.value + "").toUpperCase(), u2 = !(c.hasOwnProperty(v) && c.hasOwnProperty(f))), void 0 === a2 && !t6.hasOwnProperty(v) && r3 ? u2 : !(!(l = n5.I1e)[a2] && r3) && (!(h = n5.leftParent || n5.upParent) || this.F1e(t6, h, d));
              }, t5.prototype.generateParentPaths = function(t6, n5) {
                var e4, i4, a2, u2, s, c, f, l, h, d = [], v = t6.templateCell, p = v.dataColumn, g = v.dataSetting, m = v.expansionDirection, b = this.d1e.getTableNameCacheFromParent(t6) || (null == p ? void 0 : p.tableName), y = null == p ? void 0 : p.columnName, w = null == b;
                return w && (y = t6.templateCell.formula || t6.templateCell.value + "", b = (0, o2.getTableNameByCellNode)(t6, true) || t6.templateCell.value + ""), b = null == b ? void 0 : b.toUpperCase(), e4 = n5[b], (0, r2.isNullOrUndefined)(e4) ? w ? d = ["/" + t6.templateCell.value] : (c = t6.data.groups.map((function(t7) {
                  return "/" + t7.value;
                })), g && "List" === g.type && (c = c.map((function(n6, e5) {
                  return "".concat(n6, "/").concat(t6.data.groups[e5].recordRowNumbers[0]);
                }))), d = c) : (i4 = void 0, t6.templateCell.w1e ? i4 = t6.templateCell.w1e[e4] || [] : (a2 = void 0, i4 = [a2 = "No" === m ? null == (s = (u2 = t6.data.groups).filter((function(t7) {
                  return t7.I1e[e4];
                }))[0]) ? void 0 : s.value.toString() : this.N3.getTable(b).getValueByField(y, e4)]), i4.forEach((function(t7) {
                  d.push("/" + t7);
                })), g && "List" === g.type && d.forEach((function(t7, n6) {
                  d[n6] += "/".concat(e4);
                }))), t6.leftParent ? (f = this.generateParentPaths(t6.leftParent, n5), l = [], f.forEach((function(t7) {
                  d.forEach((function(n6) {
                    void 0 === n6 || void 0 === t7 ? l.push(void 0) : l.push("".concat(t7).concat(n6));
                  }));
                })), l) : t6.upParent ? (f = this.generateParentPaths(t6.upParent, n5), h = [], f.forEach((function(t7) {
                  d.forEach((function(n6) {
                    void 0 === n6 || void 0 === t7 ? h.push(void 0) : h.push("".concat(t7).concat(n6));
                  }));
                })), h) : d;
              }, t5;
            })(), n4.DataManagerReportGroupHelper = u;
          }, "./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-join-helper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerReportJoinHelper = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/value-comparator-factory.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), a = e3("CalcEngine"), u = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js"), s = /\[@([^\]]+\.[^\]]+)\]/i, c = (function() {
              function t5(t6, n5) {
                var e4, i4, r3;
                if (this.V1e = {}, this.H_e = [], this.N3 = t6, this.DJ = n5, this.k1e = new a.CalcSource(t6.getCalcService()), this.Z1e = {}, this.W1e = [], this.o1e = {}, null == n5 ? void 0 : n5.parameter) {
                  for (r3 in e4 = {}, i4 = n5.parameter) i4.hasOwnProperty(r3) && (e4[r3.toUpperCase()] = i4[r3]);
                  this.o1e = e4;
                }
              }
              return t5.prototype.generateJoinRelationIndexMap = function(t6) {
                var n5 = this.Q1e(t6), e4 = this.K1e(n5), i4 = this.J1e(e4);
                this.X1e(i4);
              }, t5.prototype.clearCache = function(t6) {
                this.Z1e = {}, t6 && (this.k1e = null, this.V1e = {}, this.H_e = []);
              }, t5.prototype.setNodeTableCache = function(t6, n5, e4) {
                void 0 === this.W1e[t6] && (this.W1e[t6] = []), this.W1e[t6][n5] = e4;
              }, t5.prototype.q1e = function(t6, n5) {
                return this.W1e[t6] && this.W1e[t6][n5];
              }, t5.prototype.getTableNameCacheFromParent = function(t6) {
                var n5, e4, i4 = t6.relationshipMapKey, r3 = this.q1e(t6.templateCell.row, t6.templateCell.col);
                if (r3) return r3;
                for (n5 = t6.leftParent && t6.upParent, e4 = t6.leftParent || t6.upParent; !n5 && e4 && e4.relationshipMapKey === i4; ) {
                  if (r3 = this.q1e(e4.templateCell.row, e4.templateCell.col)) return r3;
                  n5 = t6.leftParent && t6.upParent, e4 = e4.leftParent || e4.upParent;
                }
              }, t5.prototype.getRelationshipsMap = function() {
                return this.V1e;
              }, t5.prototype.relationshipGraphs = function(t6) {
                if (!t6) return this.H_e;
                this.H_e = t6;
              }, t5.prototype.getRelationshipGraphTableIndex = function(t6) {
                var n5, e4 = this.relationshipGraphs(), i4 = t6 && t6.name;
                if (e4 && void 0 !== i4) {
                  for (i4 = i4.toUpperCase(), n5 = 0; n5 < e4.length; n5++) if (e4[n5].tables.find((function(t7) {
                    return t7.name.toUpperCase() === i4;
                  }))) return n5;
                }
                return -1;
              }, t5.prototype.generateRelationshipMapKeyByCellNode = function(t6) {
                var n5, e4, i4, r3, a2, u2, s2, c2, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I;
                if (t6) return t6.relationshipMapKey ? t6.relationshipMapKey : (s2 = "", c2 = t6.leftParent || t6.upParent, f = t6.leftParent && t6.upParent, l = (0, o2.getTableNameByCellNode)(t6, true) || t6.templateCell.value + "", f ? (h = l, this.$1e(t6), v = void 0, (d = (null === (n5 = t6.templateCell.filter) || void 0 === n5 ? void 0 : n5.condition) || t6.templateCell.R1e) && (p = t6.templateCell.R1e.condition, v = this.tle(p), h = this.nle(v, h, t6)), g = this.ele(t6.leftParent), m = this.ele(t6.upParent), g || m ? g && m ? (b = this.generateRelationshipMapKeyByCellNode(t6.leftParent), y = this.generateRelationshipMapKeyByCellNode(t6.upParent), s2 = "".concat(b, "__CROSS__").concat(h, "__CROSS__").concat(y)) : (w = void 0, M = this.generateRelationshipMapKeyByCellNode(t6.leftParent), C = this.generateRelationshipMapKeyByCellNode(t6.upParent), S = g ? M : C, T = m ? C : M, x = function(t7) {
                  var n6 = [];
                  return t7.forEach((function(t8) {
                    var e5;
                    (null === (e5 = t8.templateCell.dataColumn) || void 0 === e5 ? void 0 : e5.tableName) && n6.push(t8.templateCell.dataColumn.tableName);
                  })), n6.length > 1;
                }, w = (null === (e4 = t6.leftParent) || void 0 === e4 ? void 0 : e4.children.length) > 1 && x(null === (i4 = t6.leftParent) || void 0 === i4 ? void 0 : i4.children) || (null === (r3 = t6.upParent) || void 0 === r3 ? void 0 : r3.children.length) > 1 && x(null === (a2 = t6.upParent) || void 0 === a2 ? void 0 : a2.children) ? M || C ? "L_".concat(M, "_U_").concat(C) : l : S.indexOf(l) > -1 ? S : T.indexOf(l) > -1 ? T : M || C || l, s2 = d ? this.nle(v, w, t6) : w) : s2 = h) : (this.$1e(t6), ((null === (u2 = t6.templateCell.filter) || void 0 === u2 ? void 0 : u2.condition) || t6.templateCell.R1e) && (c2 && ((s2 = c2.relationshipMapKey) || (c2.relationshipMapKey = s2 = this.generateRelationshipMapKeyByCellNode(c2))), p = t6.templateCell.R1e.condition, A = this.tle(p), s2 || (s2 = l), s2 = this.nle(A, s2, t6)), s2 || (s2 = this.ele(c2) ? (I = this.generateRelationshipMapKeyByCellNode(c2)).indexOf(l) > -1 ? I : "".concat(I, "__AND__").concat(l) : l)), t6.relationshipMapKey = s2, s2);
              }, t5.prototype.nle = function(t6, n5, e4) {
                var r3 = this, a2 = t6.rules, u2 = t6.relation, s2 = t6.conditions;
                return a2.forEach((function(t7) {
                  var r4, a3, s3;
                  n5 = (0, i3.isNullOrUndefined)(t7.formula) ? "Cell" === t7.value.type || "DataColumn" === t7.value.type ? "object" == typeof t7.value.data && t7.value.data.tableName ? (0, o2.toUpperCase)(n5 + "__" + u2 + "__" + (0, i3.combineName)(null !== (r4 = t7.tableName) && void 0 !== r4 ? r4 : e4.templateCell.dataColumn.tableName, t7.column, t7.operator, t7.value.data.tableName, t7.value.data.columnName)) : "object" == typeof t7.value.data && t7.value.data.formulaTableName ? (0, o2.toUpperCase)(n5 + "__" + u2 + "__" + (0, i3.combineName)(null !== (a3 = t7.tableName) && void 0 !== a3 ? a3 : e4.templateCell.dataColumn.tableName, t7.column, t7.operator, t7.value.data.formulaTableName)) : (0, o2.toUpperCase)(n5 + "__" + u2 + "__" + (0, i3.combineName)(null !== (s3 = t7.tableName) && void 0 !== s3 ? s3 : e4.templateCell.dataColumn.tableName, t7.column, t7.operator, t7.value.data)) : (0, o2.toUpperCase)(n5 + "__" + u2 + "__" + (0, i3.combineName)(e4.templateCell.dataColumn.tableName, t7.column, t7.operator, t7.value.data)) : (0, o2.toUpperCase)(n5 + "__" + u2 + "__" + t7.formula);
                })), s2 && s2.forEach((function(t7) {
                  n5 = r3.nle(t7, n5, e4);
                })), n5;
              }, t5.prototype.Q1e = function(t6) {
                var n5 = [];
                return (0, o2.traverse)(t6, n5), n5;
              }, t5.prototype.K1e = function(t6) {
                var n5 = this, e4 = [];
                return t6.forEach((function(t7) {
                  var i4 = [];
                  t7.forEach((function(t8) {
                    var e5, r3, o3 = t8.templateCell;
                    n5.$1e(t8), (null === (e5 = o3.R1e) || void 0 === e5 ? void 0 : e5.condition) && (r3 = n5.tle(o3.R1e.condition)), i4.push({ reportDataTableRelation: r3, currentNode: t8 });
                  })), e4.push(i4);
                })), e4;
              }, t5.prototype.parseFilterOptionToFilterConditionTree = function(t6) {
                var n5, e4, i4, r3, a2, u2, s2, c2, f = "And", l = [], h = [];
                if ((0, o2.hasOrCondition)(t6)) for (f = "Or", e4 = 0, i4 = n5 = t6.or; e4 < i4.length; e4++) r3 = i4[e4], (0, o2.isSimpleFilterCondition)(r3) ? l.push(this.ile(r3)) : h.push(this.parseFilterOptionToFilterConditionTree(r3));
                else if ((0, o2.hasAndCondition)(t6)) for (u2 = 0, s2 = a2 = t6.and; u2 < s2.length; u2++) c2 = s2[u2], (0, o2.isSimpleFilterCondition)(c2) ? l.push(this.ile(c2)) : h.push(this.parseFilterOptionToFilterConditionTree(c2));
                else l.push(this.ile(t6));
                return { rules: l, conditions: h, relation: f };
              }, t5.prototype.ile = function(t6) {
                var n5, e4, r3;
                return t6.operator || void 0 === t6.formula ? ((0, i3.isNullOrUndefined)(t6.value) || (r3 = t6.value, n5 = { type: (0, o2.getValueType)(r3), data: r3 }), (0, i3.isNullOrUndefined)(t6.cell) || ("string" == typeof (r3 = t6.cell) && r3.startsWith("=") && (r3 = r3.substring(1)), n5 = { type: "Cell", data: r3 }), (0, i3.isNullOrUndefined)(t6.dataColumn) || (n5 = { type: "DataColumn", data: r3 = t6.dataColumn }), (0, i3.isNullOrUndefined)(t6.parameter) || (n5 = { type: "Parameter", data: r3 = t6.parameter }), (0, i3.isNullOrUndefined)(t6.formula) || (void 0 !== (r3 = t6.formula) && ((r3 = r3.trim()).startsWith("=") || (r3 = "=" + r3)), n5 = { type: "Formula", data: r3 }), { tableName: t6.tableName, column: t6.column, operator: t6.operator, value: n5 }) : (void 0 !== (e4 = t6.formula) && ((e4 = e4.trim()).startsWith("=") || (e4 = "=" + e4)), { formula: e4 });
              }, t5.prototype.tle = function(t6) {
                var n5, e4, i4, r3 = this.rle(t6.rules), o3 = [];
                if (t6.conditions) for (n5 = 0, e4 = t6.conditions; n5 < e4.length; n5++) i4 = e4[n5], o3.push(this.tle(i4));
                return { rules: r3, conditions: o3, relation: t6.relation };
              }, t5.prototype.rle = function(t6) {
                var n5 = this, e4 = [], r3 = this.N3;
                return t6.forEach((function(t7) {
                  var a2, u2, s2, c2, f, l;
                  (0, i3.isNullOrUndefined)(t7.formula) ? ("Cell" === (u2 = { tableName: t7.tableName, column: t7.column, operator: t7.operator, value: { type: t7.value.type, data: t7.value.data } }).value.type && "string" == typeof u2.value.data && o2.cellNameReg.test(u2.value.data) && n5.DJ.cellNodeGetter && ((c2 = (s2 = n5.DJ.cellNodeGetter(u2.value.data)) && s2.templateCell) ? c2.formula && "No" !== c2.expansionDirection && (0, o2.isFormulaInWhitelist)(c2.formula) ? (f = (0, o2.getFormulaResult)(r3.getCalcService(), n5.k1e, c2.formula), u2.value.data = { formulaResult: f, formulaString: c2.formula, formulaTableName: (0, o2.getTableNameByCellNode)(s2) }) : c2.dataColumn ? u2.value.data = c2.dataColumn : u2.value.data = c2.value : u2.value.data = ""), "Parameter" === u2.value.type && "string" == typeof u2.value.data && n5.o1e && (l = n5.o1e[u2.value.data.toUpperCase()], u2.value.type = (0, o2.getValueType)(l), u2.value.data = l), "Formula" === u2.value.type && "string" == typeof u2.value.data && (u2.value.data = (0, o2.L3e)(n5.N3.getCalcService(), n5.k1e, u2.value.data, n5.o1e)), e4.push(u2)) : ((a2 = t7.formula.trim()).startsWith("=") || (a2 = "=" + a2), e4.push({ formula: a2 }));
                })), e4;
              }, t5.prototype.J1e = function(t6) {
                var n5 = this, e4 = [];
                return t6.forEach((function(t7) {
                  var i4 = [];
                  t7.forEach((function(t8) {
                    var e5, r3, o3 = t8.reportDataTableRelation;
                    o3 && (e5 = n5.ole(o3, t8.currentNode)), r3 = { currentNode: t8.currentNode, relations: e5 }, i4.push(r3), n5.R3e(t8.currentNode);
                  })), e4.push(i4);
                })), e4;
              }, t5.prototype.R3e = function(t6) {
                var n5, e4, i4, r3 = this, a2 = t6.templateCell;
                "Group" === (null === (n5 = null == a2 ? void 0 : a2.dataSetting) || void 0 === n5 ? void 0 : n5.type) && void 0 !== (e4 = a2.dataSetting.formula) && (a2.dataSetting.formula = (0, o2.L3e)(this.N3.getCalcService(), this.k1e, a2.dataSetting.formula, this.o1e)), u.DataManagerReportSortHelper.parseSortOptionsToSorts(a2), (null == a2 ? void 0 : a2.x1e) && (i4 = a2.x1e).forEach((function(t7) {
                  void 0 !== t7.formula && (t7.formula = (0, o2.L3e)(r3.N3.getCalcService(), r3.k1e, t7.formula, r3.o1e));
                }));
              }, t5.prototype.ole = function(t6, n5) {
                var e4, i4, r3, o3 = [];
                if (t6.conditions) for (e4 = 0, i4 = t6.conditions; e4 < i4.length; e4++) r3 = i4[e4], o3.push(this.ole(r3, n5));
                return { rules: this.ale(t6.rules, n5), relation: t6.relation, conditions: o3 };
              }, t5.prototype.ale = function(t6, n5) {
                var e4 = this, r3 = [], a2 = (0, o2.getTableNameByCellNode)(n5);
                return t6.forEach((function(t7) {
                  var n6, u2, c2, f, l, h = t7.formula;
                  t7.column && -1 !== t7.column.indexOf("[@") && !t7.column.startsWith("=") && (t7.column = "=" + t7.column), (0, i3.isNullOrUndefined)(h) ? "Cell" !== t7.value.type && "DataColumn" !== t7.value.type || "object" != typeof t7.value.data || (0, i3.isNullOrUndefined)(t7.value.data) ? r3.push({ type: "Static", field: t7.column, operator: t7.operator, value: t7.value.data, valueType: t7.value.type }) : t7.value.data.tableName ? r3.push({ type: "Join", relationHostTable: null !== (n6 = t7.tableName) && void 0 !== n6 ? n6 : a2, relationHostColumn: t7.column, relationTargetTable: t7.value.data.tableName, relationTargetColumn: t7.value.data.columnName, relationCondition: t7.operator }) : t7.value.data.formulaString ? r3.push({ type: "Join", relationHostTable: a2, relationHostColumn: t7.column, relationTargetTable: t7.value.data.formulaTableName, relationTargetColumn: t7.value.data.formulaString, relationCondition: t7.operator }) : t7.value.data instanceof Date && r3.push({ type: "Static", field: t7.column, operator: t7.operator, value: t7.value.data, valueType: t7.value.type }) : (h.startsWith("=") || (h = "=" + h), (u2 = (h = (0, o2.L3e)(e4.N3.getCalcService(), e4.k1e, h, e4.o1e)).match(s)) ? (f = (c2 = u2[1].split("."))[0], l = c2[1], r3.push({ type: "Join", formula: h, relationHostTable: a2, relationTargetTable: f, relationTargetColumn: l })) : r3.push({ type: "Static", formula: h }));
                })), r3;
              }, t5.prototype.X1e = function(t6) {
                var n5 = this, e4 = this.N3;
                t6.forEach((function(t7) {
                  t7.forEach((function(t8) {
                    var i4, r3 = t8.currentNode, a2 = (0, o2.getTableByCellNode)(e4, r3), u2 = t8.relations && (t8.relations.rules.length || t8.relations.conditions.length), s2 = r3.leftParent && r3.upParent && "V" === n5.currentTreeDirection, c2 = (0, o2.isCellInCrossCell)(r3) && "V" === n5.currentTreeDirection;
                    u2 ? (i4 = n5.generateRelationshipMapKeyByCellNode(r3), n5.V1e[i4] && 0 !== n5.V1e[i4].length && !c2 || (n5.V1e[i4] = n5.ule(t8.relations, r3))) : s2 ? (i4 = n5.generateRelationshipMapKeyByCellNode(r3), n5.V1e[i4] && 0 !== n5.V1e[i4].length || (n5.V1e[i4] = n5.jde(r3))) : a2 && n5.sle(a2, r3);
                  }));
                }));
              }, t5.prototype.ule = function(t6, n5) {
                var e4, i4, r3, a2, u2, s2, c2, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D = t6.rules, _ = t6.relation, O = t6.conditions;
                if ((0, o2.isCellInCrossCell)(n5) && "H" === this.currentTreeDirection) return [];
                for (e4 = this.N3, i4 = [], r3 = [], a2 = 0, u2 = D; a2 < u2.length; a2++) "Join" === (s2 = u2[a2]).type ? (c2 = s2.relationHostTable, f = s2.relationHostColumn, l = s2.relationTargetTable, h = s2.relationTargetColumn, d = s2.relationCondition, v = s2.formula, p = e4.getTable(c2), g = e4.getTable(l), p && g && (m = this.buildTableRelationshipMap(p, f, v || d, g, h), i4.push({ sourceTable: p, targetTable: g, sourceFieldIndexMap: m.sourceFieldIndexMap, targetFieldIndexMap: m.targetFieldIndexMap }))) : r3.push(s2);
                if (y = false, n5.leftParent && n5.upParent && "V" === this.currentTreeDirection ? i4.length ? y = true : b = this.jde(n5) : (w = (0, o2.getTableByCellNode)(e4, n5)) && (M = "H" === this.currentTreeDirection ? n5.upParent : n5.leftParent, b = (C = this.V1e[M && M.relationshipMapKey]) && C[0] && C[0].hasOwnProperty(w.name.toUpperCase()) ? C : this.sle(w, n5, true)), i4.length ? ("And" !== _ && void 0 !== _ || (i4 = this.fle(i4)), S = this.lle(i4, n5, _, D.filter((function(t7) {
                  return "Join" === t7.type;
                }))), y && (b = [].concat(S))) : S = b, r3.length && (S = this.hle(S, r3, n5, _, !!i4.length, b)), x = D.length ? [S] : [], null == O ? void 0 : O.length) for (A = void 0, I = 0, k = O; I < k.length; I++) N = k[I], A = this.ule(N, n5), x.push(A);
                return "And" === _ || void 0 === _ ? (j = (0, o2.getTableNameByCellNode)(n5), T = this.dle(x, j)) : "Or" === _ && (T = this.vle(x, n5)), T;
              }, t5.prototype.jde = function(t6) {
                var n5, e4, r3, a2, u2, s2;
                return t6.leftParent && t6.upParent && "H" === this.currentTreeDirection ? [] : t6.templateCell.dataColumn || !(0, i3.isNullOrUndefined)(t6.templateCell.formula) && (0, o2.isFormulaInWhitelist)(t6.templateCell.formula) ? (n5 = this.getRelationshipsMap(), e4 = t6.leftParent.relationshipMapKey, r3 = t6.upParent.relationshipMapKey, a2 = n5 && n5[e4] || [], u2 = n5 && n5[r3] || [], a2[0] && u2[0] ? (s2 = (0, o2.getTableNameByCellNode)(t6), this.pve(a2, u2, s2)) : []) : [];
              }, t5.prototype.pve = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2 = Object.keys(t6[0]), f = Object.keys(n5[0]);
                return -1 === c2.indexOf(e4) && -1 === f.indexOf(e4) ? (i4 = this.N3.getTable(e4)) ? this.Uve(i4) : [] : (o3 = (r3 = c2.length > f.length ? t6 : n5) === t6 ? n5 : t6, (s2 = 1 === (u2 = (a2 = c2.length > f.length ? c2 : f) === c2 ? f : c2).length && a2.indexOf(u2[0]) > -1) ? this.dle([t6, n5], e4) : this.Ode(r3, o3, e4));
              }, t5.prototype.Ode = function(t6, n5, e4) {
                var i4, r3, a2, u2, s2, c2, f = [], l = Object.keys(t6[0]), h = Object.keys(n5[0]), d = (0, o2.getArraySameItems)(l, h);
                if (d.length) for (s2 in i4 = d[0], r3 = {}, a2 = {}, t6.forEach((function(t7, n6) {
                  var e5 = t7[i4];
                  r3[e5] || (r3[e5] = []), r3[e5].push(n6);
                })), n5.forEach((function(t7, n6) {
                  var e5 = t7[i4];
                  a2[e5] || (a2[e5] = []), a2[e5].push(n6);
                })), u2 = function(e5) {
                  if (r3.hasOwnProperty(e5) && a2[e5]) {
                    var i5 = r3[e5], o3 = a2[e5];
                    i5.forEach((function(e6) {
                      var i6 = t6[e6];
                      o3.forEach((function(t7) {
                        var e7, r4, o4, a3, u3 = n5[t7], s3 = true;
                        for (e7 = 1; e7 < d.length; e7++) if (r4 = d[e7], i6[r4] !== u3[r4]) {
                          s3 = false;
                          break;
                        }
                        s3 && (o4 = Object.assign({}, i6), a3 = Object.assign(o4, u3), f.push(a3));
                      }));
                    }));
                  }
                }, r3) u2(s2);
                else (c2 = this.N3.getTable(e4)) && (f = this.Uve(c2));
                return f;
              }, t5.prototype.hle = function(t6, n5, e4, a2, u2, s2) {
                var c2, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x = e4.templateCell.dataColumn.tableName.toUpperCase(), A = this.N3;
                if (t6 = [].concat(t6), c2 = A.getTable(x), f = this.getTableNameCacheFromParent(e4) || x, l = [], h = [], n5.forEach((function(n6) {
                  var e5, d2, v2, p2, g2, m2, b2 = n6.field, y2 = n6.operator, w2 = n6.value, M2 = n6.formula, C2 = n6.valueType, S2 = false, T2 = false;
                  (0, i3.isNullOrUndefined)(y2) ? (0, i3.isNullOrUndefined)(M2) || (b2 = M2, T2 = true) : "object" != typeof w2 || Array.isArray(w2) ? e5 = r2.ValueComparatorFactory.createComparator(y2) : (w2 instanceof Date || "Date" === C2) && (e5 = r2.ValueComparatorFactory.createDateComparator(y2), w2 = new Date(w2), d2 = w2.setHours(0, 0, 0, 0), v2 = w2.setHours(23, 59, 59, 59), w2 = w2.getTime(), S2 = true), void 0 !== b2 && !c2.hasField(b2) && b2.indexOf("@") > -1 && !b2.startsWith("=") && (b2 = "=" + b2), (e5 || T2) && (p2 = void 0, "And" === a2 || void 0 === a2 ? p2 = l[l.length - 1] || t6 : "Or" === a2 && ((p2 = h[h.length - 1]) || (p2 = u2 ? s2 : t6)), g2 = [], m2 = [], p2.forEach((function(t7) {
                    var i4, r3, a3, u3, s3 = false, l2 = null == t7 ? void 0 : t7[f];
                    null != l2 && (r3 = null !== (i4 = c2.getValueByField(b2, l2)) && void 0 !== i4 ? i4 : "", "Formula" === C2 && (w2 = c2.getValueByField(n6.value, l2)), T2 ? s3 = r3 : S2 ? (r3 = new Date(r3).getTime(), s3 = e5(r3, w2, d2, v2)) : (a3 = (0, o2.EUr)(r3), u3 = (0, o2.EUr)(w2), s3 = e5(a3, u3))), s3 ? g2.push(t7) : m2.push(t7);
                  })), l.push(g2), h.push(m2));
                })), "And" === a2 || void 0 === a2) return l[l.length - 1];
                if ("Or" === a2) {
                  for (d = [], v = 0, p = l; v < p.length; v++) g = p[v], d = d.concat(g);
                  if (u2) {
                    for (m = {}, b = 0, y = t6; b < y.length; b++) M = (w = y[b])[x], (0, i3.isNullOrUndefined)(M) || (m[M] = true);
                    for (C = 0, S = d; C < S.length; C++) M = (T = S[C])[x], (0, i3.isNullOrUndefined)(M) || m[M] || t6.push(T);
                    return t6;
                  }
                  return d;
                }
              }, t5.prototype.fle = function(t6) {
                for (var n5, e4, i4, r3, o3 = [], a2 = [], u2 = []; t6.length; ) {
                  for (e4 = [n5 = t6[0]], u2 = [0], i4 = 1, r3 = t6.length; i4 < r3; i4++) n5.targetTable === t6[i4].targetTable && (e4.push(t6[i4]), u2.push(i4));
                  for (o3.push(n5), e4.length > 1 && a2.push(e4), i4 = u2.length - 1; i4 > -1; i4--) t6.splice(u2[i4], 1);
                }
                return this.mle(a2), o3;
              }, t5.prototype.mle = function(t6) {
                var n5, e4, i4, r3, a2, u2, s2, c2, f;
                for (n5 = 0, e4 = t6; n5 < e4.length; n5++) {
                  for (a2 = (r3 = (i4 = e4[n5])[0]).sourceFieldIndexMap, u2 = r3.targetFieldIndexMap, s2 = 1, c2 = i4.length; s2 < c2; s2++) {
                    for (f in a2) a2.hasOwnProperty(f) && (a2[f] = (0, o2.getArraySameItems)(a2[f], i4[s2].sourceFieldIndexMap[f]));
                    for (f in u2) u2.hasOwnProperty(f) && (u2[f] = (0, o2.getArraySameItems)(u2[f], i4[s2].targetFieldIndexMap[f]));
                  }
                  r3.sourceFieldIndexMap = a2, r3.targetFieldIndexMap = u2;
                }
              }, t5.prototype.buildTableRelationshipMap = function(t6, n5, e4, a2, u2) {
                var s2, c2, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N = (0, i3.isNullOrUndefined)(n5) ? n5 : t6.getFieldByNameIgnoreCase(n5), j = (0, i3.isNullOrUndefined)(u2) ? u2 : a2.getFieldByNameIgnoreCase(u2);
                if (N && (n5 = N.fieldName), j && (u2 = j.fieldName), s2 = (0, o2.toUpperCase)("".concat(t6.name, "__").concat(n5, "__").concat(e4, "__").concat(a2.name, "__").concat(u2)), this.Z1e[s2]) return this.Z1e[s2];
                function D(t7, n6, e5) {
                  t7[n6] ? t7[n6].push(e5) : t7[n6] = [e5];
                }
                if (c2 = [], f = [], l = [], h = t6.length(), d = a2.length(), e4.startsWith("=")) {
                  for (v = "".concat(a2.name, ".").concat(u2), p = "\\[@".concat(v, "\\]"), g = new RegExp(p, "i"), m = function(n6, i4) {
                    var r3 = e4.replace(g, '"'.concat(n6, '"'));
                    return t6.getValueByField(r3, i4);
                  }, (b = a2.hasField(u2)) || u2.startsWith("=") || (u2 = "=" + u2), y = 0; y < d; y++) w = a2.getValueByField(u2, y), (0, i3.isNullOrUndefined)(w) || D(l, w, y);
                  for (M = Object.keys(l), C = function(t7) {
                    var n6 = [];
                    M.forEach((function(e5) {
                      m(e5, t7) && l[e5].forEach((function(t8) {
                        return n6.push(t8);
                      }));
                    })), c2[t7] = n6, n6.forEach((function(n7) {
                      D(f, n7, t7);
                    }));
                  }, S = 0; S < h; S++) C(S);
                } else {
                  for (T = r2.ValueComparatorFactory.createComparator(e4), x = t6.hasField(n5), b = a2.hasField(u2), x || n5.startsWith("=") || (n5 = "=" + n5), b || u2.startsWith("=") || (u2 = "=" + u2), S = 0; S < h; S++) w = t6.getValueByField(n5, S), (0, i3.isNullOrUndefined)(w) || D(l, w, S);
                  for (A = Object.keys(l), C = void 0, C = "Equal" === e4 ? function(t7) {
                    var n6, e5, r3 = a2.getValueByField(u2, t7);
                    (0, i3.isNullOrUndefined)(r3) || (n6 = [], (e5 = l[r3]) && e5.forEach((function(t8) {
                      return n6.push(t8);
                    })), f[t7] = n6, n6.forEach((function(n7) {
                      D(c2, n7, t7);
                    })));
                  } : function(t7) {
                    var n6, e5 = a2.getValueByField(u2, t7);
                    (0, i3.isNullOrUndefined)(e5) || (n6 = [], A.forEach((function(t8) {
                      T(t8, e5) && l[t8].forEach((function(t9) {
                        return n6.push(t9);
                      }));
                    })), f[t7] = n6, n6.forEach((function(n7) {
                      D(c2, n7, t7);
                    })));
                  }, I = 0; I < d; I++) C(I);
                }
                return k = { sourceTable: t6, targetTable: a2, sourceFieldIndexMap: c2, targetFieldIndexMap: f }, this.Z1e[s2] = k, k;
              }, t5.prototype.lle = function(t6, n5, e4, i4) {
                var r3, a2, u2, s2, c2, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E = this, R = [], L = n5.upParent && n5.leftParent, F = n5.upParent || n5.leftParent, B = "";
                if (F && (B = this.generateRelationshipMapKeyByCellNode(F), L)) if (a2 = n5.upParent, u2 = n5.leftParent, s2 = this.generateRelationshipMapKeyByCellNode(u2), c2 = this.generateRelationshipMapKeyByCellNode(a2), f = this.V1e[s2], l = this.V1e[c2], f && l && f[0] && l[0]) h = Object.keys(f[0]), d = Object.keys(l[0]), v = h.length, p = d.length, g = [], t6.forEach((function(t7) {
                  var n6 = t7.sourceTable.name.toUpperCase(), e5 = t7.targetTable.name.toUpperCase();
                  -1 === g.indexOf(n6) && g.push(n6), -1 === g.indexOf(e5) && g.push(e5);
                })), m = (0, o2.getArraySameItems)(h, g).length, b = (0, o2.getArraySameItems)(d, g).length, B = (y = p > v && m || 0 === b) ? s2 : c2, y && 0 === m && (B = void 0), r3 = B === c2 ? f : l;
                else {
                  if (l && l[0]) return [];
                  F = n5.leftParent, B = this.generateRelationshipMapKeyByCellNode(F);
                }
                for (w = [], M = [], C = function(t7, n6) {
                  var i5, r4, o3, a3, u3, s3, c3, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2 = t7.sourceTable, _2 = t7.sourceFieldIndexMap, O2 = t7.targetTable, F2 = t7.targetFieldIndexMap, P = D2.name.toUpperCase(), G = O2.name.toUpperCase();
                  if (R = M[M.length - 1] || R, _2 && F2) {
                    if (i5 = E.V1e[B], B && i5 || M.length) {
                      if (r4 = R, R = R.length && "And" === e4 ? R : i5, o3 = G, a3 = F2, u3 = P, R[0] && !R[0].hasOwnProperty(o3) && (o3 = P, a3 = _2, u3 = G, !R[0].hasOwnProperty(o3))) return R = r4, n6 || w.push(t7), false;
                      for (c3 = [], f2 = 0, l2 = (s3 = [].concat(R)).length; f2 < l2; f2++) c3[h2 = s3[f2][o3]] || (c3[h2] = []), c3[h2].push(f2);
                      if (d2 = [], u3 = u3.toUpperCase(), v2 = a3.length, p2 = E.hTe(s3, o3, u3, a3)) {
                        for (g2 = 0; g2 < v2; g2++) if (void 0 !== (m2 = a3[g2]) && void 0 !== (b2 = c3[g2])) if (y2 = 0, C2 = 0, S2 = m2.length) for (T2 = 0; T2 < S2; T2++) for (y2 = m2[T2], x2 = 0, A2 = b2.length; x2 < A2; x2++) C2 = b2[x2], (I2 = Object.assign({}, s3[C2])).hasOwnProperty(u3) || (I2[u3] = y2), d2.push(I2);
                        else for (x2 = 0, A2 = b2.length; x2 < A2; x2++) C2 = b2[x2], (I2 = Object.assign({}, s3[C2])).hasOwnProperty(u3) || (I2[u3] = void 0), d2.push(I2);
                        R = d2;
                      }
                    } else {
                      if (B && !i5 && L) return true;
                      for (R = [], k2 = D2.length(), N2 = function(t8) {
                        var n7, e5 = _2[t8];
                        e5 ? e5.forEach((function(n8) {
                          var e6;
                          R.push(((e6 = {})[P] = t8, e6[G] = n8, e6));
                        })) : R.push(((n7 = {})[P] = t8, n7[G] = void 0, n7));
                      }, j2 = 0; j2 < k2; j2++) N2(j2);
                    }
                    M.push(R);
                  }
                }, S = 0, T = t6; S < T.length && !C(x = T[S]); S++) ;
                for (A = 0, I = w; A < I.length && !C(k = I[A], true); A++) ;
                return "And" === e4 || void 0 === e4 ? R = this.gle(M[M.length - 1], i4, n5, "And") : "Or" === e4 && (R = this.gle(this.vle(M, n5), i4, n5, "Or")), L && R && r3 && R[0] && r3[0] && (N = Object.keys(R[0]), j = Object.keys(r3[0]), D = (0, o2.getArraySameItems)(N, j), _ = [], R.forEach((function(t7, n6) {
                  var e5, i5, r4, o3 = D.map((function(n7) {
                    return t7[n7];
                  })), a3 = _;
                  for (e5 = 0, i5 = o3; e5 < i5.length; e5++) a3[r4 = i5[e5]] || (a3[r4] = []), a3 = a3[r4];
                  a3.push(n6), D.forEach((function(n7) {
                    delete t7[n7];
                  }));
                })), O = [], r3.forEach((function(t7) {
                  var n6, e5, i5, r4 = D.map((function(n7) {
                    return t7[n7];
                  })), o3 = _;
                  for (n6 = 0, e5 = r4; n6 < e5.length; n6++) i5 = e5[n6], o3 = o3 && o3[i5];
                  o3 && o3.forEach((function(n7) {
                    var e6, i6 = R[n7], r5 = Object.assign({}, t7);
                    for (e6 in i6) i6.hasOwnProperty(e6) && (r5[e6] = i6[e6]);
                    O.push(r5);
                  }));
                })), R = O, "And" === e4 || void 0 === e4 ? R = this.gle(O, i4, n5, "And") : "Or" === e4 && (R = this.gle(O, i4, n5, "Or"))), R;
              }, t5.prototype.hTe = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f, l, h, d = {};
                for (r3 = 0, o3 = t6; r3 < o3.length; r3++) u2 = (a2 = o3[r3])[n5], s2 = a2[e4], void 0 !== u2 && void 0 !== s2 && (d[u2] || (d[u2] = {}), d[u2][s2] = true);
                for (u2 in i4) if (i4.hasOwnProperty(u2)) {
                  for (c2 = i4[u2], f = d[u2], l = 0, h = c2; l < h.length; l++) if (s2 = h[l], void 0 === f || !f[s2]) return true;
                }
                return false;
              }, t5.prototype.gle = function(t6, n5, e4, o3) {
                var a2, u2, s2 = this;
                return t6 ? (a2 = this.getTableNameCacheFromParent(e4), u2 = n5.map((function(t7) {
                  var n6, e5, o4, u3, c2 = t7.relationHostColumn, f = t7.relationTargetColumn, l = t7.relationCondition, h = t7.relationHostTable, d = t7.relationTargetTable, v = t7.formula;
                  return (0, i3.isNullOrUndefined)(v) ? (n6 = r2.ValueComparatorFactory.createComparator(l), h = h.toUpperCase(), d = d.toUpperCase(), e5 = s2.N3.getTable(h), o4 = s2.N3.getTable(d), u3 = (a2 || h).toUpperCase(), function(t8) {
                    var i4 = t8[u3], r3 = t8[d];
                    return !!(void 0 === i4 && t8.hasOwnProperty(u3) || void 0 === r3 && t8.hasOwnProperty(d)) || n6(e5.getValueByField(c2, i4), o4.getValueByField(f, r3));
                  }) : null;
                })), "And" === o3 ? t6 = t6.filter((function(t7) {
                  var n6, e5, i4;
                  for (n6 = 0, e5 = u2; n6 < e5.length; n6++) if ((i4 = e5[n6]) && !i4(t7)) return false;
                  return true;
                })) : "Or" === o3 && (t6 = t6.filter((function(t7) {
                  var n6, e5, i4;
                  for (n6 = 0, e5 = u2; n6 < e5.length; n6++) if (!(i4 = e5[n6]) || i4(t7)) return true;
                  return false;
                }))), t6) : t6;
              }, t5.prototype.dle = function(t6, n5) {
                var e4, r3, o3, a2, u2, s2, c2, f, l, h, d, v, p, g;
                if (t6.some((function(t7) {
                  return t7 && 0 === t7.length;
                }))) return [];
                if (t6.length <= 1) return t6[0] || [];
                if (void 0 === n5) return [];
                for (t6.sort((function(t7, n6) {
                  return Object.keys(n6[0]).length - Object.keys(t7[0]).length;
                })), e4 = t6[0], r3 = [], n5 = this.Ede(t6, n5), o3 = function(e5, i4) {
                  var o4 = {};
                  t6[e5].forEach((function(t7) {
                    var e6 = t7[n5];
                    void 0 !== e6 && (o4[e6] = true);
                  })), r3.push(o4);
                }, a2 = 0, u2 = t6.length; a2 < u2; a2++) o3(a2, u2);
                for (s2 = r3[0], a2 = 1, u2 = r3.length; a2 < u2; a2++) for (f in c2 = r3[a2], s2) s2.hasOwnProperty(f) && s2[f] && (c2[f] || (s2[f] = false));
                for (l = [], h = new RegExp("^".concat(n5, "(__\\d+__\\d+)?$")), d = function(t7) {
                  var n6 = Object.keys(t7), e5 = true;
                  n6.forEach((function(n7) {
                    if (h.test(n7)) {
                      var r4 = t7[n7];
                      if (!(e5 = e5 && !(0, i3.isNullOrUndefined)(r4) && s2[r4])) return;
                    }
                  })), e5 && l.push(t7);
                }, v = 0, p = e4; v < p.length; v++) d(g = p[v]);
                return l;
              }, t5.prototype.vle = function(t6, n5) {
                var e4, r3, a2, u2, s2, c2, f, l, h, d;
                if ((t6 = t6.filter((function(t7) {
                  return t7.length;
                }))).length <= 1) return t6[0] || [];
                if (void 0 === (e4 = (0, o2.getTableNameByCellNode)(n5))) return [];
                for (t6.sort((function(t7, n6) {
                  return Object.keys(n6[0]).length - Object.keys(t7[0]).length;
                })), r3 = t6[0], a2 = {}, u2 = 0, s2 = r3; u2 < s2.length; u2++) f = (c2 = s2[u2])[e4], (0, i3.isNullOrUndefined)(f) || (a2[f] = true);
                for (l = 1, h = t6.length; l < h; l++) (d = t6[l]).forEach((function(t7) {
                  var n6 = t7[e4];
                  (0, i3.isNullOrUndefined)(n6) || a2[n6] || (a2[n6] = true, r3.push(t7));
                }));
                return r3;
              }, t5.prototype.Ede = function(t6, n5) {
                var e4 = t6.map((function(t7) {
                  return Object.keys(t7[0]);
                })), i4 = e4.reduce((function(t7, n6) {
                  return (0, o2.getArraySameItems)(t7, n6);
                }), e4[0]);
                return i4.indexOf(n5) > -1 ? n5 : i4[0];
              }, t5.prototype.sle = function(t6, n5, e4) {
                var i4 = this.generateRelationshipMapKeyByCellNode(n5);
                return (0, o2.isCellInCrossCell)(n5) && "H" === this.currentTreeDirection ? [] : (this.V1e[i4] && !e4 || (this.V1e[i4] = this.Uve(t6)), this.V1e[i4]);
              }, t5.prototype.Uve = function(t6) {
                var n5, e4, i4, r3 = [], o3 = t6.name.toUpperCase();
                for (n5 = 0, e4 = t6.length(); n5 < e4; n5++) (i4 = {})[o3] = n5, r3.push(i4);
                return r3;
              }, t5.prototype.ele = function(t6) {
                return !!t6 && (this.$1e(t6), !!t6.templateCell.R1e || (this.ele(t6.leftParent) || this.ele(t6.upParent)));
              }, t5.prototype.$1e = function(t6) {
                var n5, e4, i4, r3, a2 = t6.templateCell, u2 = a2.filter && a2.filter.condition;
                a2.R1e || (n5 = this.V_e(t6), u2 && n5.push(u2), n5.length && (e4 = { and: n5 }, i4 = (0, o2.deepCloneFilterCondition)(e4), r3 = this.parseFilterOptionToFilterConditionTree(i4), a2.R1e = { condition: r3 }));
              }, t5.prototype.V_e = function(t6) {
                var n5, e4, i4, r3, a2, u2, s2, c2, f = [], l = [], h = this.N3, d = (0, o2.getTableByCellNode)(h, t6), v = null == d ? void 0 : d.table();
                return t6.leftParent && (r3 = null == (i4 = (0, o2.getTableByCellNode)(h, t6.leftParent)) ? void 0 : i4.table()) !== v && (a2 = this.getRelationshipGraphTableIndex(d), u2 = this.getRelationshipGraphTableIndex(i4), s2 = null === (n5 = this.relationshipGraphs()[u2]) || void 0 === n5 ? void 0 : n5.tableToTableRelationPath, a2 === u2 && s2 && (c2 = s2[v.name.toUpperCase()][r3.name.toUpperCase()]) && c2.forEach((function(t7) {
                  if (-1 === l.indexOf(t7)) {
                    var n6 = { tableName: t7.sourceTable.name, column: t7.sourceFieldName, operator: "Equal", dataColumn: { tableName: t7.targetTable.name, columnName: t7.targetFieldName } };
                    f.push(n6), l.push(t7);
                  }
                }))), t6.upParent && (r3 = null == (i4 = (0, o2.getTableByCellNode)(h, t6.upParent)) ? void 0 : i4.table()) !== v && (a2 = this.getRelationshipGraphTableIndex(d), u2 = this.getRelationshipGraphTableIndex(i4), s2 = null === (e4 = this.relationshipGraphs()[u2]) || void 0 === e4 ? void 0 : e4.tableToTableRelationPath, a2 === u2 && s2 && (c2 = s2[v.name.toUpperCase()][r3.name.toUpperCase()]) && c2.forEach((function(t7) {
                  if (-1 === l.indexOf(t7)) {
                    var n6 = { tableName: t7.sourceTable.name, column: t7.sourceFieldName, operator: "Equal", dataColumn: { tableName: t7.targetTable.name, columnName: t7.targetFieldName } };
                    f.push(n6), l.push(t7);
                  }
                }))), f;
              }, t5;
            })(), n4.DataManagerReportJoinHelper = c;
          }, "./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataManagerReportSortHelper = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataManager.entry.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), a = void 0, u = "number", s = (function() {
              function t5(t6) {
                this.N3 = t6, this.k1e = new i3.CalcSource(t6.getCalcService());
              }
              return t5.prototype.sortGroupsBySortCondition = function(t6, n5, e4) {
                var i4, s2, c, f = n5.templateCell.x1e, l = [];
                if (f) {
                  for (f.forEach((function(i5, a2) {
                    var u2, s3, c2, f2, l2, h, d, v;
                    if (!(0, r2.isNullOrUndefined)(i5.cell) && o2.cellNameReg.test(i5.cell) && (u2 = e4(i5.cell))) if ((s3 = (0, o2.T2e)(u2, n5)) || u2 === n5) for (c2 = 0, f2 = t6; c2 < f2.length; c2++) (h = (l2 = f2[c2]).sortValues) || (h = l2.sortValues = []), d = void 0, u2 === n5 ? d = l2.value : (v = (0, o2.A2e)(l2, u2)) && (d = v[0].value), h[a2] = d;
                    else i5.order = void 0;
                  })), s2 = function(t7) {
                    var n6, e5, s3 = f[t7];
                    s3 && s3.order && (s3.list && s3.list.length ? (n6 = s3.list, e5 = {}, n6.forEach((function(t8, n7) {
                      return e5[t8] = n7;
                    })), i4 = function(n7, i5) {
                      var r3 = false, o3 = function(n8, i6) {
                        var o4, u3, s4 = n8.sortValues[t7], c2 = i6.sortValues[t7];
                        return l[t7 + 1] && s4 === c2 ? (r3 = true, l[t7 + 1](n8, i6)) : (o4 = e5[s4 + ""], u3 = e5[c2 + ""], o4 !== a && u3 !== a ? o4 - u3 : o4 !== a ? -1 : u3 !== a ? 1 : s4 === c2 ? 0 : s4 > c2 ? 1 : -1);
                      }, u2 = o3(n7, i5);
                      return r3 ? u2 : "desc" === s3.order ? -u2 : u2;
                    }, l[t7] = i4) : (0, r2.isNullOrUndefined)(s3.cell) && (0, r2.isNullOrUndefined)(s3.column) && (0, r2.isNullOrUndefined)(s3.formula) || (i4 = function(n7, e6) {
                      var i5 = false, a2 = "desc" === s3.order, c2 = function(n8, e7) {
                        var s4, c3, f3 = n8.sortValues[t7], h = e7.sortValues[t7];
                        return l[t7 + 1] && f3 === h ? (i5 = true, l[t7 + 1](n8, e7)) : (s4 = (0, r2.isNullOrUndefined)(f3) || "" === f3 || typeof f3 === u && isNaN(f3), c3 = (0, r2.isNullOrUndefined)(h) || "" === h || typeof h === u && isNaN(h), s4 || c3 ? s4 && c3 ? 0 : s4 && !c3 ? a2 ? -1 : 1 : !s4 && c3 ? a2 ? 1 : -1 : void 0 : f3 === h ? 0 : (0, o2.isGreaterThan)(h, f3) ? -1 : 1);
                      }, f2 = c2(n7, e6);
                      return i5 ? f2 : a2 ? -f2 : f2;
                    }, l[t7] = i4));
                  }, c = f.length - 1; c > -1; c--) s2(c);
                  i4 && (t6.sort(i4), this.Tye(t6, n5));
                }
              }, t5.parseSortOptionsToSorts = function(t6) {
                var n5;
                (null === (n5 = t6.sorts) || void 0 === n5 ? void 0 : n5.length) && !t6.x1e && (t6.x1e = t6.sorts.map((function(t7) {
                  var n6, e4 = (0, r2.isNullOrUndefined)(t7.desc), i4 = e4 ? t7.asc : t7.desc, a2 = { order: e4 ? "asc" : "desc", list: t7.list };
                  return (0, r2.isNullOrUndefined)(i4) && (i4 = ""), (i4 = i4.trim()).startsWith("=") ? (n6 = i4.substring(1), o2.cellNameReg.test(n6) ? a2.cell = n6 : a2.formula = i4) : a2.column = i4, a2;
                })));
              }, t5.prototype.Tye = function(t6, n5) {
                var e4 = this;
                n5.children.forEach((function(i4) {
                  var r3, o3, a2 = null === (r3 = i4.data) || void 0 === r3 ? void 0 : r3.groups;
                  (null == a2 ? void 0 : a2.length) && (o3 = i4.leftParent === n5, a2.sort((function(n6, e5) {
                    var i5 = o3 ? n6.leftParent : n6.upParent, r4 = o3 ? e5.leftParent : e5.upParent;
                    return t6.indexOf(i5) - t6.indexOf(r4);
                  }))), e4.Tye(a2, i4);
                }));
              }, t5;
            })(), n4.DataManagerReportSortHelper = s;
          }, "./dist/src/data-manager-report/tree-data-generator/index.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5, n5) {
              var e4, i4;
              t5.templateCell.dataColumn && void 0 !== t5.templateCell.dataColumn.tableName && (n5[t5.templateCell.dataColumn.tableName.toUpperCase()] = true), (i4 = t5.templateCell.filter) && i4.condition && l(i4.condition, n5), null === (e4 = t5.children) || void 0 === e4 || e4.forEach((function(t6) {
                f(t6, n5);
              }));
            }
            function l(t5, n5) {
              var e4, i4, r3, o3, a2, u2;
              if (t5) {
                if (t5.dataColumn && (n5[t5.dataColumn.tableName.toUpperCase()] = true), t5.and) for (e4 = 0, i4 = t5.and; e4 < i4.length; e4++) l(r3 = i4[e4], n5);
                if (t5.or) for (o3 = 0, a2 = t5.or; o3 < a2.length; o3++) l(u2 = a2[o3], n5);
              }
            }
            function h(t5, n5) {
              n5 = n5.toUpperCase();
              for (var e4 = 0; e4 < t5.length; e4++) if (t5[e4].tables.find((function(t6) {
                return t6.name.toUpperCase() === n5;
              }))) return e4;
              return -1;
            }
            function d(t5) {
              var n5, e4, i4, r3, o3, a2, u2 = t5.tables, s2 = t5.relationships;
              if (u2.length && s2.length) {
                for (e4 in n5 = {}, u2.forEach((function(t6) {
                  var e5, i5, r4 = t6.table(), o4 = r4.name.toUpperCase();
                  n5[o4] || (n5[o4] = {}), e5 = n5[o4], (i5 = s2.filter((function(t7) {
                    return t7.targetTable === r4 || t7.sourceTable === r4;
                  })).map((function(t7) {
                    var n6 = t7.sourceTable === r4 ? t7.targetTable : t7.sourceTable;
                    return { table: n6, relationship: t7, tableName: n6.name.toUpperCase() };
                  }))).forEach((function(t7) {
                    var i6, r5, a3;
                    if (t7.tableName !== o4) {
                      for (i6 in n5) n5.hasOwnProperty(i6) && i6 !== o4 && i6 !== t7.tableName && (r5 = n5[i6])[o4] && ((a3 = [].concat(r5[o4])).push(t7.relationship), (!r5[t7.tableName] || r5[t7.tableName].length > a3.length) && (r5[t7.tableName] = a3));
                      e5[t7.tableName] || (e5[t7.tableName] = [t7.relationship]);
                    }
                  }));
                })), n5) if (n5.hasOwnProperty(e4)) {
                  for (r3 in i4 = n5[e4]) if (i4.hasOwnProperty(r3) && n5[r3]) for (o3 in n5[r3]) n5[r3].hasOwnProperty(o3) && o3 !== e4 && (a2 = i4[r3].concat(n5[r3][o3]), (!n5[e4][o3] || n5[e4][o3].length > a2.length) && (n5[e4][o3] = a2));
                }
                Object.values(n5).forEach((function(t6) {
                  Object.values(t6).forEach((function(t7) {
                    t7.reverse();
                  }));
                })), t5.tableToTableRelationPath = n5;
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.TreeDataGenerator = void 0, i3 = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-cross-helper.js"), r2 = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-join-helper.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js"), a = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-group-helper.js"), u = e3("./dist/src/data-manager-report/data-manager-proxy/data-manager-proxy.js"), s = e3("./dist/src/data-manager-report/data-manager-proxy/report-table.js"), c = (function() {
              function t5(t6, n5) {
                var e4 = this;
                this.generateTreeDataInternal = function(t7) {
                  var n6, i4 = t7.root;
                  try {
                    e4.d1e.generateJoinRelationIndexMap(i4), n6 = e4.v1e.generateCellNodeTreeData(i4);
                  } catch (t8) {
                    n6 = [];
                  } finally {
                    i4.data.groups = n6;
                  }
                }, this.ble = new u.DataManagerProxy(t6), this.DJ = n5, this.d1e = new r2.DataManagerReportJoinHelper(this.ble, n5), this.m1e = new o2.DataManagerReportSortHelper(this.ble), this.v1e = new a.DataManagerReportGroupHelper(this.ble, n5, this.d1e, this.m1e), this.yle = new i3.DataManagerReportCrossHelper(this.ble, n5, this.d1e, this.v1e, this.m1e);
              }
              return t5.prototype.generateTreeData = function() {
                var t6, n5 = this.DJ, e4 = n5.crossCells, i4 = n5.verticalExpansionTrees, r3 = n5.horizontalExpansionTrees;
                this.wle();
                try {
                  this.z_e();
                } catch (t7) {
                }
                this.d1e.currentTreeDirection = "H", r3.forEach(this.generateTreeDataInternal), this.d1e.currentTreeDirection = "V", i4.forEach(this.generateTreeDataInternal), (t6 = e4.filter((function(t7) {
                  return !e4.includes(t7.leftParent) && !e4.includes(t7.upParent);
                }))).length && this.yle && this.yle.processCrossCells(t6), this.d1e.clearCache(true), this.v1e.clearCache(true), this.ble.clearTableDataCache(), this.Y5e();
              }, t5.prototype.wle = function() {
                this.d1e.clearCache(), this.v1e.clearCache();
              }, t5.prototype.getUsedTableRelationshipGraphsForUT = function() {
                return this.z_e(), this.d1e.relationshipGraphs();
              }, t5.prototype.z_e = function() {
                for (var t6, n5 = this.ble, e4 = [].concat(n5.getRelationshipsByTable()), i4 = [], r3 = this.yve(), o3 = function() {
                  var t7, n6, r4, o4 = e4.shift(), a2 = o4.sourceTable, u2 = o4.targetTable, c2 = a2.name.toUpperCase(), f2 = u2.name.toUpperCase(), l2 = new s.ReportTable({ dataManagerTable: a2 }), d2 = new s.ReportTable({ dataManagerTable: u2 }), v = h(i4, c2), p = h(i4, f2);
                  -1 === v && -1 === p ? (t7 = { relationships: [o4], tables: [l2, d2] }, i4.push(t7)) : -1 === v && -1 !== p ? (i4[p].relationships.push(o4), i4[p].tables.push(l2)) : -1 !== v && -1 === p ? (i4[v].relationships.push(o4), i4[v].tables.push(d2)) : v === p && -1 === i4[v].relationships.indexOf(o4) ? i4[v].relationships.push(o4) : (n6 = i4[p], (r4 = i4.splice(v, 1))[0].relationships.forEach((function(t8) {
                    n6.relationships.push(t8);
                  })), r4[0].tables.forEach((function(t8) {
                    n6.tables.push(t8);
                  })), n6.relationships.push(o4));
                }; e4.length; ) o3();
                (t6 = i4.filter((function(t7) {
                  return t7.tables.map((function(t8) {
                    return t8.name.toUpperCase();
                  })).some((function(t8) {
                    return r3[t8];
                  }));
                }))).forEach((function(t7) {
                  d(t7);
                })), this.d1e.relationshipGraphs(t6);
              }, t5.prototype.yve = function() {
                var t6, n5 = {};
                return this.DJ && (this.DJ.horizontalExpansionTrees.forEach((function(t7) {
                  f(t7.root, n5);
                })), this.DJ.verticalExpansionTrees.forEach((function(t7) {
                  f(t7.root, n5);
                })), null === (t6 = this.DJ.crossCells) || void 0 === t6 || t6.forEach((function(t7) {
                  f(t7, n5);
                }))), n5;
              }, t5.prototype.Y5e = function() {
                var t6 = this, n5 = this.DJ, e4 = n5.verticalExpansionTrees, i4 = n5.horizontalExpansionTrees, r3 = n5.crossCells;
                i4.forEach((function(n6) {
                  t6.Z5e(n6.root);
                })), e4.forEach((function(n6) {
                  t6.Z5e(n6.root);
                })), r3 && r3.forEach((function(n6) {
                  t6.Z5e(n6);
                }));
              }, t5.prototype.Z5e = function(t6) {
                var n5, e4 = this;
                t6 && (t6.nM = void 0, (n5 = t6.templateCell) && (n5.R1e = void 0, n5.x1e = void 0, n5.w1e = void 0), t6.children.forEach((function(t7) {
                  e4.Z5e(t7);
                })));
              }, t5;
            })(), n4.TreeDataGenerator = c;
          }, "./dist/src/data-manager-report/tree-data-generator/interfaces/data-manager-report.interface.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true });
          }, "./dist/src/data-manager-report/tree-data-generator/utils/utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            function d(t5, n5, e4) {
              void 0 === e4 && (e4 = []);
              var i4 = h(h([], e4, true), [t5], false);
              t5.children.length > 0 ? t5.children.forEach((function(t6) {
                d(t6, n5, i4);
              })) : n5.push(i4);
            }
            function v(t5, n5) {
              var e4, r3, a2 = 0;
              switch (n5) {
                case "Avg":
                  a2 = t5.length ? u(t5[0]) ? 0 : t5.reduce((function(t6, n6) {
                    var e5 = +t6, i4 = +n6;
                    return (isNaN(e5) ? 0 : e5) + (isNaN(i4) ? 0 : i4);
                  }), 0) / t5.length : 0;
                  break;
                case "Count":
                  a2 = t5.length;
                  break;
                case "Max":
                  a2 = void 0, t5.length && (t5.sort((function(t6, n6) {
                    return n6 > t6 ? 1 : -1;
                  })), a2 = t5[0]);
                  break;
                case "Min":
                  a2 = void 0, t5.length && (t5.sort((function(t6, n6) {
                    return t6 > n6 ? 1 : -1;
                  })), a2 = t5[0]);
                  break;
                case "None":
                  a2 = 0;
                  break;
                case "Sum":
                  a2 = u(t5[0]) ? 0 : t5.reduce((function(t6, n6) {
                    var e5 = +t6, i4 = +n6;
                    return (isNaN(e5) ? 0 : e5) + (isNaN(i4) ? 0 : i4);
                  }), 0);
              }
              return e4 = 15, "number" == typeof a2 && a2 > -10 && a2 < 10 && ((r3 = a2.toString()).indexOf("000000000000") > 1 || r3.indexOf("999999999999") > 1) && (e4 = 14), o2(a2, i3.Functions.CALC_PRECISION || e4);
            }
            function p(t5, n5) {
              return t5 && t5.length && n5 && n5.length ? t5.filter((function(t6) {
                return n5.indexOf(t6) > -1;
              })) : [];
            }
            function g(t5, n5) {
              if (!t5 || 0 === t5.length) return n5 || [];
              if (!n5 || 0 === n5.length) return t5;
              var e4 = [].concat(t5);
              return n5.forEach((function(t6) {
                -1 === e4.indexOf(t6) && e4.push(t6);
              })), e4;
            }
            function m(t5) {
              return t5.toUpperCase();
            }
            function b(t5) {
              return !(!(t5 = t5.replace(/__\d+__\d+/g, "").slice(t5.indexOf("=") + 1, t5.length).trim()).startsWith("{") || !t5.endsWith("}"));
            }
            function y(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2, f2 = t5.parse(n5, e4, 0, 0), l2 = [], h2 = null === (i4 = null == f2 ? void 0 : f2.value) || void 0 === i4 ? void 0 : i4.array;
              if (h2) for (r3 = 0, o3 = h2; r3 < o3.length; r3++) for (u2 = 0, s2 = a2 = o3[r3]; u2 < s2.length; u2++) c2 = s2[u2], l2.push(c2);
              return l2;
            }
            function w(t5, n5) {
              var e4 = n5.nM;
              return e4 || (n5.templateCell.dataColumn ? e4 = t5.getTable(n5.templateCell.dataColumn.tableName) : n5.templateCell.formula && b(n5.templateCell.formula) && (e4 = t5.getTable("".concat(n5.templateCell.formula, "__").concat(n5.templateCell.row, "__").concat(n5.templateCell.col))), n5.nM = e4, e4);
            }
            function M(t5, n5) {
              var e4 = "";
              return t5.templateCell.dataColumn ? e4 = t5.templateCell.dataColumn.tableName : t5.templateCell.formula && (n5 || b(t5.templateCell.formula)) && (e4 = "".concat(t5.templateCell.formula, "__").concat(t5.templateCell.row, "__").concat(t5.templateCell.col)), e4.toUpperCase();
            }
            function C(t5) {
              var n5 = t5.match(l);
              return n5 && n5[1];
            }
            function S(t5) {
              return t5 && t5.and;
            }
            function T(t5) {
              return t5 && t5.or;
            }
            function x(t5) {
              return t5 && !t5.or && !t5.and;
            }
            function A(t5) {
              var n5;
              switch (typeof t5) {
                case "string":
                  return "String";
                case "boolean":
                  return "Boolean";
                case "number":
                  return "Number";
              }
              if (isNaN(t5) && !isNaN(Date.parse(t5))) return "Date";
            }
            function I(t5, n5) {
              var e4, i4 = "", r3 = "A".charCodeAt(0);
              for (e4 = n5 + 1; e4 > 0; e4 = parseInt((e4 - 1) / 26 + "", 10)) i4 = String.fromCharCode(r3 + (e4 - 1) % 26) + i4;
              return i4 + (t5 + 1);
            }
            function k(t5) {
              var n5, e4 = Array.isArray(t5) ? [] : {};
              for (n5 in t5) t5.hasOwnProperty(n5) && (e4[n5] = "and" === n5 || "or" === n5 ? k(t5[n5]) : t5[n5]);
              return e4;
            }
            function N(t5) {
              return !!t5 && (!(!t5.leftParent || !t5.upParent) || N(t5.leftParent || t5.upParent));
            }
            function j(t5, n5) {
              return !(!t5 || !n5) && (t5 === n5 || (j(t5.leftParent, n5) || j(t5.upParent, n5)));
            }
            function D(t5, n5) {
              var e4, i4, r3, o3;
              if (t5 && t5.childrenArray && t5.childrenArray.length && n5) {
                for (e4 = void 0, i4 = 0, r3 = t5.childrenArray; i4 < r3.length; i4++) if (e4 = (o3 = r3[i4]) && o3[0] && o3[0].cellNode === n5 ? o3 : D(o3[0], n5)) return e4;
              }
            }
            function _(t5, n5) {
              var e4, i4, r3, o3, u2;
              return t5 instanceof Date && (t5 = a(t5)), n5 instanceof Date && (n5 = a(n5)), r3 = (e4 = typeof t5) === s, o3 = (i4 = typeof n5) === s, u2 = i4 === c, e4 === i4 || e4 !== c && !u2 ? !(e4 !== f || !o3) || (!r3 || i4 !== f) && (r3 && o3 ? t5.toLowerCase() > n5.toLowerCase() : t5 > n5) : u2;
            }
            function O(t5, n5, e4, i4) {
              if (!i4) return e4;
              var r3 = R(t5, n5, e4);
              return E(i4, r3), void 0 === (e4 = L(t5, n5, r3)) || e4.startsWith("=") || (e4 = "=" + e4), e4;
            }
            function E(t5, n5) {
              var e4, i4, r3, o3, a2;
              if (8 !== n5.type) {
                if (n5.arguments) for (r3 = 0, o3 = n5.arguments; r3 < o3.length; r3++) E(t5, a2 = o3[r3]);
                n5.value && E(t5, n5.value), n5.value2 && E(t5, n5.value2);
              } else void 0 !== (e4 = t5[n5.value.toUpperCase()]) && ("string" === (i4 = typeof e4) ? n5.type = 3 : "boolean" === i4 ? n5.type = 4 : "number" === i4 ? n5.type = 2 : e4 instanceof Date && (e4 = e4.toString(), n5.type = 3), n5.value = e4);
            }
            function R(t5, n5, e4) {
              return t5.parse(n5, e4, 0, 0);
            }
            function L(t5, n5, e4) {
              return t5.unparse(n5, e4, 0, 0);
            }
            function F(t5) {
              var n5 = t5.newRecordDefaultValueGenerator ? t5.newRecordDefaultValueGenerator() : void 0, e4;
              return n5 && void 0 !== n5.formula && (e4 = n5.formula), e4;
            }
            function B(t5) {
              return t5 instanceof Date ? r2.Common.ct.o0(t5) : t5;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.EUr = n4.generateDefaultFormulaByTemplateCell = n4.expressionToFormula = n4.formulaToExpression = n4.ptr = n4.L3e = n4.isGreaterThan = n4.A2e = n4.T2e = n4.isCellInCrossCell = n4.deepCloneFilterCondition = n4.rowColToCellName = n4.getValueType = n4.isSimpleFilterCondition = n4.hasOrCondition = n4.hasAndCondition = n4.fieldExpressionToField = n4.getTableNameByCellNode = n4.getTableByCellNode = n4.getFormulaResult = n4.isFormulaInWhitelist = n4.toUpperCase = n4.getArrayUnionItems = n4.getArraySameItems = n4.calc = n4.traverse = n4.cellNameReg = n4.formulaWhitelist = void 0, i3 = e3("CalcEngine"), r2 = e3("Common"), o2 = r2.Common.st.E8, a = r2.Common.ct.o0, u = r2.Common.ct.W0, s = "string", c = "number", f = "boolean", n4.formulaWhitelist = [], n4.cellNameReg = /^([A-Z]+)(\d+)$/, n4.traverse = d, n4.calc = v, n4.getArraySameItems = p, n4.getArrayUnionItems = g, n4.toUpperCase = m, n4.isFormulaInWhitelist = b, n4.getFormulaResult = y, n4.getTableByCellNode = w, n4.getTableNameByCellNode = M, l = /\[@(.*?)\]/, n4.fieldExpressionToField = C, n4.hasAndCondition = S, n4.hasOrCondition = T, n4.isSimpleFilterCondition = x, n4.getValueType = A, n4.rowColToCellName = I, n4.deepCloneFilterCondition = k, n4.isCellInCrossCell = N, n4.T2e = j, n4.A2e = D, n4.isGreaterThan = _, n4.L3e = O, n4.ptr = E, n4.formulaToExpression = R, n4.expressionToFormula = L, n4.generateDefaultFormulaByTemplateCell = F, n4.EUr = B;
          }, "./dist/src/data-manager-report/tree-data-generator/utils/value-comparator-factory.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ValueComparatorFactory = void 0;
            var e3 = (function() {
              function t5() {
              }
              return t5.createComparator = function(n5) {
                switch (n5) {
                  case "Equal":
                    return function(t6, n6) {
                      return t6 + "" == n6 + "";
                    };
                  case "NotEqual":
                    return function(t6, n6) {
                      return t6 + "" != n6 + "";
                    };
                  case "GreaterThanOrEqual":
                    return function(n6, e4) {
                      var i3 = t5.parseValue(n6, e4);
                      return i3.recordValue >= i3.ruleValue;
                    };
                  case "GreaterThan":
                    return function(n6, e4) {
                      var i3 = t5.parseValue(n6, e4);
                      return i3.recordValue > i3.ruleValue;
                    };
                  case "LessThanOrEqual":
                    return function(n6, e4) {
                      var i3 = t5.parseValue(n6, e4);
                      return i3.recordValue <= i3.ruleValue;
                    };
                  case "LessThan":
                    return function(n6, e4) {
                      var i3 = t5.parseValue(n6, e4);
                      return i3.recordValue < i3.ruleValue;
                    };
                  case "StartWith":
                    return function(t6, n6) {
                      return (t6 + "").startsWith(n6 + "");
                    };
                  case "NotStartWith":
                    return function(t6, n6) {
                      return !(t6 + "").startsWith(n6 + "");
                    };
                  case "EndWith":
                    return function(t6, n6) {
                      return (t6 + "").endsWith(n6 + "");
                    };
                  case "NotEndWith":
                    return function(t6, n6) {
                      return !(t6 + "").endsWith(n6 + "");
                    };
                  case "Contains":
                    return function(t6, n6) {
                      return (t6 + "").indexOf(n6 + "") > -1;
                    };
                  case "NotContains":
                    return function(t6, n6) {
                      return -1 === (t6 + "").indexOf(n6 + "");
                    };
                  case "In":
                    return function(t6, n6) {
                      return (n6 + "").indexOf(t6 + "") > -1;
                    };
                  case "NotIn":
                    return function(t6, n6) {
                      return -1 === (n6 + "").indexOf(t6 + "");
                    };
                  default:
                    return function() {
                      return true;
                    };
                }
              }, t5.parseValue = function(t6, n5) {
                return "number" == typeof t6 ? isNaN(n5) ? { recordValue: t6 + "", ruleValue: n5 + "" } : { recordValue: t6, ruleValue: +n5 } : isNaN(t6) ? { recordValue: t6 + "", ruleValue: n5 + "" } : "number" == typeof n5 ? { recordValue: +t6, ruleValue: n5 } : { recordValue: t6, ruleValue: n5 };
              }, t5.createDateComparator = function(t6) {
                switch (t6) {
                  case "Equal":
                  case "Contains":
                  case "In":
                    return function(t7, n5, e4, i3) {
                      return t7 >= e4 && t7 <= i3;
                    };
                  case "NotEqual":
                  case "NotContains":
                  case "NotIn":
                    return function(t7, n5, e4, i3) {
                      return t7 > i3 || t7 < e4;
                    };
                  case "GreaterThanOrEqual":
                  case "StartWith":
                  case "NotEndWith":
                    return function(t7, n5, e4, i3) {
                      return t7 >= e4;
                    };
                  case "GreaterThan":
                    return function(t7, n5, e4, i3) {
                      return t7 > i3;
                    };
                  case "LessThanOrEqual":
                  case "NotStartWith":
                  case "EndWith":
                    return function(t7, n5, e4, i3) {
                      return t7 <= i3;
                    };
                  case "LessThan":
                    return function(t7, n5, e4, i3) {
                      return t7 < e4;
                    };
                  default:
                    return function() {
                      return true;
                    };
                }
              }, t5;
            })();
            n4.ValueComparatorFactory = e3;
          }, "./dist/src/dataManager.common.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s = this && this.qKr || (c = function(t5, n5) {
              return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, c(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              c(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), c;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CalcFunction = n4.sR = n4.SR = void 0, i3 = e3("CalcEngine"), r2 = e3("Common"), o2 = e3("./dist/src/res.en.js"), n4.SR = { en: o2.resource }, a = new r2.Common.ResourceManager(n4.SR, "DataManager"), n4.sR = a.getResource.bind(a), u = (function(t5) {
              function e4() {
                return null !== t5 && t5.apply(this, arguments) || this;
              }
              return s(e4, t5), e4.prototype.description = function() {
                var e5 = this, i4 = (0, n4.sR)().Zve;
                return e5.IDt ? e5.IDt : i4 ? i4[e5.name] : t5.prototype.description.call(this);
              }, e4;
            })(i3.Functions.Function), n4.CalcFunction = u;
          }, "./dist/src/dataManager.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), r2 = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || i3(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), e3("./dist/src/polyfills/from-entries.js"), r2(e3("./dist/src/dataSource/dataSource.entry.js"), n4), r2(e3("./dist/src/table/table.entry.js"), n4), r2(e3("./dist/src/viewField/viewField.entry.js"), n4), r2(e3("./dist/src/view/view.entry.js"), n4), r2(e3("./dist/src/interfaces/interface.js"), n4), r2(e3("./dist/src/interfaces/styleOptions.js"), n4), r2(e3("./dist/src/interfaces/validatorOptions.js"), n4), r2(e3("./dist/src/interfaces/conditionalFormatOptions.js"), n4), r2(e3("./dist/src/dataManager.js"), n4), r2(e3("./dist/src/dataManager.common.js"), n4), r2(e3("./dist/src/data-manager-report/tree-data-generator/interfaces/data-manager-report.interface.js"), n4), r2(e3("./dist/src/data-manager-report/data-manager-report.js"), n4), r2(e3("./dist/src/data-manager-report/tree-data-generator/index.js"), n4), r2(e3("./dist/src/query.js"), n4);
          }, "./dist/src/dataManager.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m;
            function b(t5) {
              var n5 = t5.split(/\s*=\s*/);
              return 2 === n5.length ? [n5[0].split("."), n5[1].split(".")] : [];
            }
            function y(t5) {
              return !isNaN(parseFloat(t5)) && isFinite(t5);
            }
            function w(t5) {
              return t5 instanceof o2.View;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.isView = n4.DataManager = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/table/table.js"), o2 = e3("./dist/src/view/view.js"), a = e3("./dist/src/dataSource/utils.js"), u = e3("./dist/src/dataSource/dataSource.js"), s = e3("./dist/src/calculation/functions/functions.entry.js"), c = e3("./dist/src/calculation/tokenResolver.js"), f = e3("./dist/src/calculation/queryFunctionResolver.js"), l = e3("./dist/src/relationship.js"), h = e3("./dist/src/query/query-helper.js"), d = e3("./dist/src/dataSource/event.js"), v = e3("./dist/src/table/tableEvents.js"), p = null, g = i3.Convert.LE, m = (function() {
              function t5(t6, n5) {
                this.rV = {}, this.tables = {}, this.relationships = [], this.OEt = {}, this.kUr = new d.EventManager(), n5 || (n5 = new i3.CalcService()), this.updateCalcService(n5), (0, s.addCustomFunctions)(), t6 && this.r3e(t6), this.U0r = new h.QueryHelper(this);
              }
              return t5.prototype.r3e = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M, C = (0, a.getObjectKeys)(t6.tables);
                for (n5 = 0, e4 = C; n5 < e4.length; n5++) {
                  if (i4 = e4[n5], o3 = {}, u2 = (r3 = t6.tables[i4]).fields) for (s2 in u2) u2.hasOwnProperty(s2) && (c2 = u2[s2], o3[s2] = { name: c2.name, dataType: c2.dataType, spread: c2.spread });
                  if (f2 = { schema: { columns: o3 } }, (l2 = r3.dimensions) && (f2.schema.dimensions = l2), r3.measures && Object.keys(r3.measures).length > 0 && (f2.schema.measures = (0, a.clone)(r3.measures, true)), r3.source) f2.remote = { read: { url: r3.source } };
                  else {
                    if (!r3.localSource) continue;
                    f2.data = r3.localSource;
                  }
                  if (h2 = this.addTable(i4, f2), r3.primaryKey && h2.primaryKey(r3.primaryKey), d2 = r3.relationships) {
                    for (v2 in d2) if (d2.hasOwnProperty(v2)) {
                      if (g2 = void 0, m2 = void 0, y2 = void 0, w2 = void 0, (p2 = d2[v2]).on) {
                        if (0 === (M = b(p2.on)).length) continue;
                        g2 = M[0][0], y2 = M[0][1], m2 = M[1][0], w2 = M[1][1];
                      } else {
                        if (!(p2.with && p2.source && r3.primaryKey)) continue;
                        g2 = i4, y2 = r3.primaryKey, m2 = p2.source, w2 = p2.with;
                      }
                      this.addRelationship(this.tables[g2], y2, v2, this.tables[m2], w2, m2 + "_" + w2);
                    }
                  }
                }
                this.queries = t6.queries;
              }, t5.prototype.createTableNameFrom = function(t6) {
                var n5, e4, i4, r3, o3, a2;
                for (r3 in n5 = -1, e4 = (t6 = t6 || "Table").length, i4 = this.tables) i4.hasOwnProperty(r3) && r3.length >= e4 && 0 === r3.indexOf(t6) && (y(o3 = r3.substring(e4, r3.length)) || "" === o3.trim()) && (a2 = Number(o3)) >= n5 && (n5 = a2);
                return -1 === n5 ? t6 : t6 + (n5 + 1).toString();
              }, t5.prototype.addTable = function(t6, n5) {
                this.Kur(t6);
                var e4 = new r2.Table(t6, n5);
                return this.tables[t6] = e4, e4.REt(this), this.ki(v.Events.TableAdded, { name: t6 }), e4;
              }, t5.prototype.removeTable = function(t6) {
                var n5, e4 = this.tables[t6], i4 = this.relationships;
                for (n5 = i4.length - 1; n5 >= 0; n5--) i4[n5].sourceTable !== e4 && i4[n5].targetTable !== e4 || (i4[n5].VP(), i4.splice(n5, 1));
                e4.REt(p), delete this.tables[t6], this.Kur(t6), this.ki(v.Events.TableRemoved, { name: t6 });
              }, t5.prototype.addRelationship = function(t6, n5, e4, i4, r3, o3) {
                var a2 = new l.Relationship(t6, n5, e4, i4, r3, o3);
                return this.relationships.push(a2), a2;
              }, t5.prototype.removeRelationship = function(t6) {
                var n5, e4 = this.relationships;
                for (n5 = 0; n5 < e4.length; n5++) if (e4[n5].sourceRelationshipName === t6) {
                  e4[n5].VP(), e4.splice(n5, 1);
                  break;
                }
              }, t5.prototype.updateCalcService = function(t6) {
                var n5, e4, i4, r3 = t6.getResolvers(), o3 = true;
                for (n5 = 0, e4 = r3; n5 < e4.length; n5++) if ((i4 = e4[n5]) instanceof c.DataManagerTokenResolver) {
                  o3 = false;
                  break;
                }
                o3 && t6.addResolver(new c.DataManagerTokenResolver(8e3)), this.Lp = t6;
              }, t5.prototype.xEt = function(t6, n5, e4) {
                var i4, r3, o3;
                return g(t6) ? t6 = t6.getValueByIndex(0) : (0, a.isString)(t6) || (t6 = "" + t6), (0, a.isString)(n5) ? n5 = [n5] : g(n5) ? n5 = n5.toArray(0, true) : n5 && n5.array && (n5 = n5.array[0]), i4 = (null == n5 ? void 0 : n5.length) > 1 ? n5.join(",") : null == n5 ? void 0 : n5[0], (r3 = this.OEt[t6]) || (r3 = this.OEt[t6] = {}), (o3 = r3[i4]) || (o3 = r3[i4] = f.QueryFunctionSolver.parseParam(t6, n5, e4, this)), o3;
              }, t5.prototype.IEt = function(t6, n5, e4, i4, r3, o3) {
                var a2, s2 = this.xEt(t6, n5, e4);
                return r3 ? s2.table._dataSource.unbind(u.ONCHANGE, i4) : i4 && s2.table && s2.table._dataSource.bind(u.ONCHANGE, i4), o3 && (s2.Mgr = void 0), 0 === (a2 = s2.getValue ? s2.getValue(s2.table) : [[]]).length && (a2 = [[]]), a2;
              }, t5.prototype.Kur = function(t6) {
                var n5 = this.OEt;
                n5 && delete n5[t6];
              }, t5.prototype.bind = function(t6, n5) {
                this.D3(t6, n5);
              }, t5.prototype.D3 = function(t6, n5) {
                this.kUr.bind(t6, n5);
              }, t5.prototype.unbind = function(t6, n5) {
                this._3(t6, n5);
              }, t5.prototype._3 = function(t6, n5) {
                this.kUr.unbind(t6, n5);
              }, t5.prototype.ki = function(t6, n5) {
                return this.kUr.trigger(t6, n5);
              }, t5.prototype.toJSON = function(t6) {
                var n5, e4, i4 = this.tables, r3 = [];
                for (n5 in i4) i4.hasOwnProperty(n5) && r3.push(i4[n5].toJSON(t6));
                return { tables: r3, relationships: e4 = this.relationships.map((function(t7) {
                  return { sourceTableName: t7.sourceTable.name, sourceFieldName: t7.sourceFieldName, sourceRelationshipName: t7.sourceRelationshipName, targetTableName: t7.targetTable.name, targetFieldName: t7.targetFieldName, targetRelationshipName: t7.targetRelationshipName };
                })), queries: this.queries };
              }, t5.prototype.fromJSON = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2 = this, s2 = this.tables = {}, c2 = t6.tables, f2 = Promise.all(c2.map((function(t7) {
                  var n6, e5, i5, r4 = t7.dataSourceOption.schema, o4 = r4 && r4.columns;
                  if (o4) for (n6 in o4) o4.hasOwnProperty(n6) && (e5 = o4[n6]) && "date" === e5.dataType && Array.isArray(e5.lookup) && (e5.lookup = e5.lookup.map((function(t8) {
                    return new Date(t8);
                  })));
                  return (i5 = u2.addTable(t7.name, t7.dataSourceOption)).BEt = true, i5.fromJSON(t7);
                })));
                for (this.relationships = [], e4 = 0, i4 = n5 = t6.relationships; e4 < i4.length; e4++) o3 = s2[(r3 = i4[e4]).sourceTableName], a2 = s2[r3.targetTableName], this.addRelationship(o3, r3.sourceFieldName, r3.sourceRelationshipName, a2, r3.targetFieldName, r3.targetRelationshipName);
                return t6.queries && (this.queries = t6.queries), f2;
              }, t5;
            })(), n4.DataManager = m, n4.isView = w;
          }, "./dist/src/dataSource/dataReader/basicReader.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.BasicReader = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = void 0, o2 = (function() {
              function t5(t6) {
                var n5, e4, o3, a = this;
                a.LEt = t6, (0, i3.isNullOrUndefined)(t6) || (a.Pq = t6.Pq, n5 = t6.dataPath, e4 = t6.countPath, o3 = t6.parse, (0, i3.isFunction)(n5) ? a.FEt = n5 : a.FEt = function(t7) {
                  return (0, i3.isString)(n5) && n5 ? (0, i3.q$)(t7, n5) : t7;
                }, (0, i3.isFunction)(e4) ? a.PEt = e4 : a.PEt = function(t7) {
                  return (0, i3.isString)(e4) && e4 ? parseInt((0, i3.q$)(t7, e4), 10) : r2;
                }, (0, i3.isFunction)(o3) && (a.parse = o3));
              }
              return t5.prototype.parse = function(t6) {
                return this.GEt = t6, Promise.resolve(t6);
              }, t5.prototype.read = function(t6) {
                return Promise.resolve(this.FEt(t6));
              }, t5.prototype.readSync = function(t6) {
                return this.FEt(t6);
              }, t5.prototype.total = function(t6) {
                return this.PEt(t6);
              }, t5;
            })(), n4.BasicReader = o2;
          }, "./dist/src/dataSource/dataReader/columnJsonReader.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a = this && this.qKr || (u = function(t5, n5) {
              return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, u(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              u(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), u;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ColumnJsonReader = void 0, i3 = e3("./dist/src/dataSource/dataReader/basicReader.js"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = (function(t5) {
              function n5(n6) {
                var e4 = t5.call(this, n6) || this, i4 = e4, o3 = n6.dataPath;
                return (0, r2.isFunction)(o3) ? i4.FEt = o3 : i4.FEt = function(t6) {
                  var n7, e5, a2, u2, s, c, f, l;
                  for (t6 = (0, r2.isString)(o3) && o3 ? (0, r2.q$)(t6, o3) : t6, n7 = i4.Pq = i4.Pq || (0, r2.getObjectKeys)(t6), e5 = i4.GEt = [], a2 = t6[n7[0]].length, u2 = 0; u2 < a2; u2++) {
                    for (s = {}, c = 0, f = n7; c < f.length; c++) s[l = f[c]] = t6[l][u2];
                    e5.push(s);
                  }
                  return e5;
                }, e4;
              }
              return a(n5, t5), n5.prototype.parse = function(t6) {
                var n6 = this;
                return new Promise((function(e4, i4) {
                  var o3, a2;
                  (0, r2.isNullOrUndefined)(t6) && i4("value cannot be null or empty"), o3 = n6.Pq = n6.Pq || (0, r2.getObjectKeys)(t6), (a2 = (0, r2.reduce)(o3, (function(n7, e5) {
                    return n7 && (0, r2.isArray)(t6[e5]);
                  }), true)) || i4("The value of each property in column JSON should be an array"), e4(t6);
                }));
              }, n5;
            })(i3.BasicReader), n4.ColumnJsonReader = o2;
          }, "./dist/src/dataSource/dataReader/csvReader.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a = this && this.qKr || (u = function(t5, n5) {
              return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, u(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              u(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), u;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CsvReader = void 0, i3 = e3("./dist/src/dataSource/dataReader/basicReader.js"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = (function(t5) {
              function n5(n6) {
                var e4 = t5.call(this, n6) || this;
                return e4.UEt = n6.delimiter || ['"'], e4.HEt = n6.separator || ",", e4;
              }
              return a(n5, t5), n5.prototype.parse = function(t6) {
                for (var n6, e4, i4, o3, a2 = this, u2 = a2.UEt, s = a2.HEt, c = t6.split(""), f = 0, l = c.length, h = []; f < l; ) {
                  for (i4 = []; f < l && "\r" !== c[f] && "\n" !== c[f]; ) {
                    if (n6 = e4 = f, (0, r2.indexOf)(u2, c[f]) > -1) {
                      for (n6 = e4 = ++f; f < l; ) {
                        if ((0, r2.indexOf)(u2, c[f]) > -1) {
                          if (-1 === (0, r2.indexOf)(u2, c[f + 1])) break;
                          c[++f] = "";
                        }
                        e4 = ++f;
                      }
                      for ((0, r2.indexOf)(u2, c[f]) > -1 && ++f; f < l && "\r" !== c[f] && "\n" !== c[f] && s !== c[f]; ) ++f;
                    } else for (; f < l && "\r" !== c[f] && "\n" !== c[f] && s !== c[f]; ) e4 = ++f;
                    i4.push(c.slice(n6, e4).join("")), s === c[f] && ++f;
                  }
                  "\r" !== c[f] && "\n" !== c[f] || ++f, i4.length > 0 && h.push(i4);
                }
                return o3 = h.shift(), a2.GEt = (0, r2.isNullOrUndefined)(a2.Pq) ? (0, r2.map)(h, (function(t7) {
                  return (0, r2.zipObject)(o3, t7);
                })) : (0, r2.map)(h, (function(t7) {
                  return (0, r2.pick)((0, r2.zipObject)(o3, t7), a2.Pq);
                })), a2.Pq = a2.Pq || o3, Promise.resolve(a2.GEt);
              }, n5;
            })(i3.BasicReader), n4.CsvReader = o2;
          }, "./dist/src/dataSource/dataReader/jsonReader.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2 = this && this.qKr || (a = function(t5, n5) {
              return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, a(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              a(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.JsonReader = void 0, r2 = (function(t5) {
              function n5(n6) {
                return t5.call(this, n6) || this;
              }
              return o2(n5, t5), n5;
            })((i3 = e3("./dist/src/dataSource/dataReader/basicReader.js")).BasicReader), n4.JsonReader = r2;
          }, "./dist/src/dataSource/dataReader/xmlReader.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a = this && this.qKr || (u = function(t5, n5) {
              return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, u(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              u(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), u;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.XmlReader = void 0, i3 = e3("./dist/src/dataSource/dataReader/basicReader.js"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = (function(t5) {
              function n5(n6) {
                var e4 = t5.call(this, n6) || this, i4 = e4, o3 = n6.dataPath;
                return (0, r2.isFunction)(o3) ? i4.FEt = o3 : i4.FEt = function(t6) {
                  if (t6 = (0, r2.isString)(o3) && o3 ? (0, r2.q$)(t6, o3) : t6, (0, r2.isNullOrUndefined)(t6)) return t6;
                  var n7 = i4.Pq;
                  return n7 ? t6 = t6.map((function(t7) {
                    return (0, r2.pick)(t7, n7);
                  })) : e4.Pq = (0, r2.getObjectKeys)(t6[0]), t6;
                }, e4;
              }
              return a(n5, t5), n5.prototype.parse = function(t6) {
                var n6 = new DOMParser(), e4 = n6.parseFromString(t6.trim(), "text/xml"), i4 = this.documentToJSObject(e4);
                return Promise.resolve(i4);
              }, n5.prototype.documentToJSObject = function(t6) {
                var n6, e4, i4 = {}, r3 = t6.children;
                for (n6 = 0, e4 = r3.length; n6 < e4; n6++) this.elementToJSObject(r3[n6], i4);
                return i4;
              }, n5.prototype.elementToJSObject = function(t6, n6) {
                var e4, i4, r3, o3, a2, u2 = t6.children, s = u2.length, c = t6.nodeName;
                if (0 === s) n6[c] = t6.textContent;
                else {
                  for (e4 = {}, void 0 !== (i4 = n6[c]) ? Array.isArray(i4) ? n6[c].push(e4) : n6[c] = [i4, e4] : n6[c] = e4, r3 = t6.attributes, o3 = 0; o3 < r3.length; o3++) e4[(a2 = r3[o3]).nodeName] = a2.nodeValue;
                  for (o3 = 0; o3 < s; o3++) this.elementToJSObject(u2[o3], e4);
                }
              }, n5;
            })(i3.BasicReader), n4.XmlReader = o2;
          }, "./dist/src/dataSource/dataSource.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), r2 = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || i3(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), r2(e3("./dist/src/dataSource/dataSource.js"), n4), r2(e3("./dist/src/dataSource/dataSource.interface.js"), n4), r2(e3("./dist/src/dataSource/utils.js"), n4);
          }, "./dist/src/dataSource/dataSource.interface.js": function(t4, n4) {
            "use strict";
            var e3, i3, r2, o2, a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.TriggerWhenType = n4.FrameExcludeTies = n4.FrameExcludeGroup = n4.FrameExcludeCurrentRow = n4.FrameExcludeNoOthers = n4.OrderDesc = n4.OrderAsc = n4.WindowOverFrameExcludeMode = n4.WindowOverFrameType = n4.WindowOverFrameFollowing = n4.WindowOverFramePreceding = void 0, (function(t5) {
              t5[t5.UnBounded = -2] = "UnBounded", t5[t5.NPreceding = -1] = "NPreceding", t5[t5.CurrentRow = 0] = "CurrentRow";
            })(e3 = n4.WindowOverFramePreceding || (n4.WindowOverFramePreceding = {})), (function(t5) {
              t5[t5.UnBounded = 2] = "UnBounded", t5[t5.NFollowing = 1] = "NFollowing", t5[t5.CurrentRow = 0] = "CurrentRow";
            })(i3 = n4.WindowOverFrameFollowing || (n4.WindowOverFrameFollowing = {})), (function(t5) {
              t5[t5.ROWS = 0] = "ROWS", t5[t5.RANGE = 1] = "RANGE", t5[t5.GROUPS = 2] = "GROUPS";
            })(r2 = n4.WindowOverFrameType || (n4.WindowOverFrameType = {})), (function(t5) {
              t5[t5.none = 0] = "none", t5[t5.current = 1] = "current", t5[t5.group = 2] = "group", t5[t5.ties = 3] = "ties";
            })(o2 = n4.WindowOverFrameExcludeMode || (n4.WindowOverFrameExcludeMode = {})), n4.OrderAsc = "ASC", n4.OrderDesc = "DESC", n4.FrameExcludeNoOthers = "none", n4.FrameExcludeCurrentRow = "current", n4.FrameExcludeGroup = "group", n4.FrameExcludeTies = "ties", (function(t5) {
              t5.onNew = "onNew", t5.onNewAndUpdate = "onNewAndUpdate";
            })(a = n4.TriggerWhenType || (n4.TriggerWhenType = {}));
          }, "./dist/src/dataSource/dataSource.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x = this && this.qKr || (k = function(t5, n5) {
              return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, k(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              k(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), A = this && this.nJr || function() {
              return A = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, A.apply(this, arguments);
            }, I = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            }, k;
            function N(t5) {
              return "".concat(M).concat(t5);
            }
            function j(t5) {
              return "string" == typeof t5 && t5.indexOf(M) > -1;
            }
            function D(t5) {
              return j(t5) ? v : t5;
            }
            function _(t5, n5) {
              var e4 = n5;
              return "odata" !== t5 && "odata4" !== t5 || !n5.value ? "graphql" !== t5 && "rest" !== t5 || !n5.data || (e4 = n5.data) : e4 = n5.value, e4;
            }
            function O(t5, n5) {
              var e4, i4, r3 = {};
              for (e4 in t5) t5.hasOwnProperty(e4) && (i4 = n5[e4], r3[e4] = (0, l.isNullOrUndefined)(i4) ? t5[e4] : i4);
              return r3;
            }
            function E(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2, f2, l2;
              for ("string" == typeof e4 ? o3 = a2 = e4 : (o3 = e4.childrenField1 || "children", a2 = e4.childrenField2 || "children"), u2 = t5[o3] || [], s2 = n5[a2] || [], c2 = 0; c2 < u2.length; c2++) f2 = u2[c2], l2 = s2[c2], i4 && i4(f2, l2, t5, n5), E(f2, l2, e4, i4, r3), r3 && r3(f2, l2, t5, n5);
            }
            function R(t5, n5) {
              var e4, i4, r3, o3, a2;
              if ((0, l.isNullOrUndefined)(t5) || (0, l.isNullOrUndefined)(n5)) return t5 === n5;
              if (e4 = (0, l.getObjectKeys)(t5), i4 = (0, l.getObjectKeys)(n5), e4.length !== i4.length) return false;
              for (r3 = 0, o3 = e4; r3 < o3.length; r3++) if (t5[a2 = o3[r3]] !== n5[a2]) return false;
              return true;
            }
            function L(t5, n5) {
              var e4;
              return A(A({}, t5), { value: null !== (e4 = t5.value) && void 0 !== e4 ? e4 : n5 });
            }
            function F(t5, n5) {
              var e4, i4, r3, o3 = [];
              for (e4 = 0; e4 < n5; e4++) {
                for (r3 in i4 = {}, t5) t5.hasOwnProperty(r3) && (i4[r3] = t5[r3].data[e4]);
                o3[e4] = i4;
              }
              return o3;
            }
            function B(t5) {
              return "xml" === t5 ? "xml" : "csv" === t5 ? "text" : "json";
            }
            function P(t5) {
              var n5, e4, i4, r3, o3, a2, u2 = null === (n5 = t5.schema) || void 0 === n5 ? void 0 : n5.type, s2 = t5.remote;
              u2 && s2 && ((e4 = s2.read) && "object" == typeof e4 && (e4.dataType = B(u2)), (i4 = s2.update) && "object" == typeof i4 && (i4.dataType = B(u2)), (r3 = s2.delete) && "object" == typeof r3 && (r3.dataType = B(u2)), (o3 = s2.create) && "object" == typeof o3 && (o3.dataType = B(u2)), (a2 = s2.batch) && "object" == typeof a2 && (a2.dataType = B(u2)));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.DataSource = n4.HierarchyNode = n4.ONCHANGE = n4.REMOVE_COLUMN = n4.UPDATE_COLUMN = n4.ADD_COLUMN = n4.GET_COLUMNS = n4.RECOVER_DELETE = n4.DELETE = n4.UPDATE = n4.INSERT = n4.CREATE = void 0, i3 = e3("./dist/src/dataSource/dataSource.interface.js"), r2 = e3("./dist/src/dataSource/dataTransport/localDataTransport.js"), o2 = e3("./dist/src/dataSource/dataTransport/remoteDataTransport.js"), a = e3("./dist/src/dataSource/event.js"), u = e3("./dist/src/dataSource/dataReader/jsonReader.js"), s = e3("./dist/src/dataSource/dataReader/columnJsonReader.js"), c = e3("./dist/src/dataSource/dataReader/csvReader.js"), f = e3("./dist/src/dataSource/dataReader/xmlReader.js"), l = e3("./dist/src/dataSource/utils.js"), h = e3("Common"), d = null, v = void 0, n4.CREATE = "create", n4.INSERT = "insert", n4.UPDATE = "update", n4.DELETE = "delete", n4.RECOVER_DELETE = "recover_delete", n4.GET_COLUMNS = "getColumns", n4.ADD_COLUMN = "addColumn", n4.UPDATE_COLUMN = "updateColumn", n4.REMOVE_COLUMN = "removeColumn", p = "onBeforeSend", g = "onFailed", m = "onBeforeEnd", b = "onReady", y = "user cancel the request at step ", n4.ONCHANGE = "onChange", w = Number.NaN, M = "__HIERARCHY__", C = /* @__PURE__ */ (function() {
              function t5() {
              }
              return t5;
            })(), S = (function(t5) {
              function n5(n6) {
                var e4, i4 = t5.call(this) || this;
                return i4.R1t = [], (e4 = i4)._data = n6.data, e4.zEt = n6.isRoot, e4.VEt = n6.getData, e4.YEt = n6.getFieldData, e4.ZEt = n6.idField, e4.WEt = !(0, l.isNullOrUndefined)(n6.idField), e4.QEt = n6.sequenceField, e4.KEt = !(0, l.isNullOrUndefined)(n6.sequenceField), Object.defineProperty(e4, "data", { get: function() {
                  return e4.VEt(e4.lp);
                } }), Object.defineProperty(e4, "isRoot", { get: function() {
                  return e4.zEt;
                } }), Object.defineProperty(e4, "id", { get: function() {
                  if (e4.WEt) {
                    var t6 = e4.YEt(e4.ZEt, e4.lp);
                    return (0, l.isNullOrUndefined)(t6) ? t6 = e4._id : e4._id !== t6 && (e4._id = t6), t6;
                  }
                  return e4._id;
                }, set: function(t6) {
                  e4._id = t6, (0, l.isNullOrUndefined)(e4.JEt) && (e4.JEt = t6);
                } }), Object.defineProperty(e4, "parentId", { get: function() {
                  return (0, l.isNullOrUndefined)(e4.parent) ? v : e4.parent.id;
                } }), Object.defineProperty(e4, "parent", { get: function() {
                  return e4.sft;
                }, set: function(t6) {
                  e4.setParent(t6), (0, l.isNullOrUndefined)(e4.XEt) && !(0, l.isNullOrUndefined)(t6) && (e4.XEt = t6.id);
                } }), Object.defineProperty(e4, "level", { get: function() {
                  return e4.YAt;
                }, set: function(t6) {
                  e4.YAt = t6;
                } }), Object.defineProperty(e4, "children", { get: function() {
                  return e4.R1t;
                }, set: function(t6) {
                  e4.R1t = t6;
                } }), Object.defineProperty(e4, "sequence", { get: function() {
                  return e4.KEt ? e4.YEt(e4.QEt, e4.lp) : e4.qEt;
                }, set: function(t6) {
                  e4.qEt = t6, (0, l.isNullOrUndefined)(e4.$Et) && (e4.$Et = t6);
                } }), i4;
              }
              return x(n5, t5), n5.prototype.sjt = function() {
                return this.qEt;
              }, n5.prototype.setParent = function(t6, n6) {
                var e4 = !(0, l.isNullOrUndefined)(this.parent);
                e4 && this.parent.cjt(this), this.sft = t6, (0, l.isNullOrUndefined)(t6) ? e4 && (this.level = w) : (this.level = t6.level + 1, (0, l.isNullOrUndefined)(n6) ? t6.fjt(this) : t6.ljt(this, n6));
              }, n5.prototype.updateChildrenLevel = function() {
                var t6 = this.level;
                this.children.forEach((function(n6) {
                  n6.level = t6 + 1, n6.updateChildrenLevel();
                }));
              }, n5.prototype.promote = function(t6) {
                this.setParent(t6, this.parent.getCurrentIndex() + 1), this.updateChildrenLevel();
              }, n5.prototype.demote = function(t6, n6) {
                this.parent = t6, (n6 = false !== n6) ? this.updateChildrenLevel() : this.children.forEach((function(n7) {
                  n7.parent = t6;
                }));
              }, n5.prototype.getCurrentIndex = function() {
                return this.parent && this.parent.children.indexOf(this);
              }, n5.prototype.getPrevSibling = function() {
                return this.parent && this.parent.children[this.getCurrentIndex() - 1];
              }, n5.prototype.getNextSibling = function() {
                return this.parent && this.parent.children[this.getCurrentIndex() + 1];
              }, n5.prototype.ljt = function(t6, n6) {
                this.children.splice(n6, 0, t6);
              }, n5.prototype.fjt = function(t6) {
                this.children.push(t6);
              }, n5.prototype.cjt = function(t6) {
                var n6 = this.children.indexOf(t6);
                this.children.splice(n6, 1);
              }, n5.prototype.getChildrenIndexes = function(t6) {
                var n6 = [];
                return (0, l.traversalTree)(this, { invoked: function(t7) {
                  n6.push(t7.lp);
                } }, t6 ? function(t7) {
                  return -t7.sequence;
                } : v), n6;
              }, n5.prototype.getChildrenCount = function() {
                var t6 = 0;
                return (0, l.traversalTree)(this, { invoked: function() {
                  t6++;
                } }), t6;
              }, n5.prototype.getFieldValue = function(t6) {
                return this.YEt(t6, this.lp);
              }, n5;
            })(C), n4.HierarchyNode = S, T = (function() {
              function t5(t6) {
                this.pao = {}, this.HFe = [], this.tjt = {}, this.njt = [], this.ejt = true, this.Mue = false, this.Kyn = 0, this.$Yr = false;
                var e4 = this;
                Object.defineProperty(this, "options", { get: function() {
                  return e4.LEt;
                }, set: function(t7) {
                  e4.setDataSourceOptions(t7);
                } }), e4._events = {}, e4.options = A({ data: d, batch: false }, t6), this.ijt(t6.remote, t6.data), e4.bind([p, m, b, n4.ONCHANGE, g], t6), this.rjt(t6.schema), e4.ajt();
              }
              return t5.prototype.setDataSourceOptions = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2 = this;
                if (P(t6), e4 = h2.LEt, h2.LEt = t6, !(o3 = (i4 = e4 && e4.remote && e4.remote.read && ((0, l.isFunction)(e4.remote.read) ? e4.remote.read : e4.remote.read.url)) !== (r3 = t6 && t6.remote && t6.remote.read && ((0, l.isFunction)(t6.remote.read) ? t6.remote.read : t6.remote.read.url))) && t6 && e4 && !t6.remote && t6.data && t6.data !== e4.data && (o3 = true), h2.ijt(t6.remote, t6.data), a2 = e4 && e4.schema, u2 = t6 && t6.schema, (s2 = (0, l.isNullOrUndefined)(a2) && !(0, l.isNullOrUndefined)(u2) || !(0, l.isNullOrUndefined)(a2) && (0, l.isNullOrUndefined)(u2) || a2 && u2 && (a2.type !== u2.type || a2.dataPath !== u2.dataPath || a2.countPath !== u2.countPath)) && h2.rjt(t6.schema), (c2 = h2.ojt) && (o3 || s2)) return f2 = { isDataSourceChanged: o3 }, h2.$Yr = o3, h2.ajt(f2), h2.load().then((function(t7) {
                  return h2.$Yr = false, n5 && n5(f2), Promise.resolve(t7);
                })).catch((function() {
                  h2.$Yr = false, n5 && n5(f2);
                }));
              }, t5.prototype.ijt = function(t6, n5) {
                this.hjt = t6 ? new o2.RemoteDataTransport(t6) : new r2.LocalDataTransport({ data: n5 || [] });
              }, t5.prototype.rjt = function(t6) {
                var n5, e4;
                "json" === (e4 = (t6 = t6 || {}).type || "json") ? n5 = new u.JsonReader(t6) : "columnJson" === e4 ? n5 = new s.ColumnJsonReader(t6) : "csv" === e4 ? n5 = new c.CsvReader(t6) : "xml" === e4 && (n5 = new f.XmlReader(t6)), this.djt = n5;
              }, t5.prototype.ajt = function(t6) {
                this._data = {}, this.vjt = 0, this.wjt = 0, this.DEt = [], t6 && t6.isDataSourceChanged && (this.HFe = [], delete this.bGe);
              }, t5.prototype.mjt = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = {};
                for (i4 in a2._data) a2._data.hasOwnProperty(i4) && (r3 = a2._data[i4], 0 !== n5 ? (o3 = r3.data.splice(t6, n5), u2[i4] = { data: o3 }) : t6 >= r3.data.length ? r3.data[t6] = e4[i4] : r3.data.splice(t6, 0, e4[i4]));
                return a2.vjt = a2.vjt - n5, e4 && a2.vjt++, F(u2, n5);
              }, t5.prototype.gjt = function(t6, n5) {
                var e4, i4, r3 = this, o3 = {};
                for (e4 in r3._data) r3._data.hasOwnProperty(e4) && (i4 = r3._data[e4], o3[e4] = { data: i4.data.slice(t6, n5) });
                return F(o3, n5 - t6);
              }, t5.prototype.WAr = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this, u2 = [];
                for (n5 = 0, e4 = t6; n5 < e4.length; n5++) {
                  for (o3 in i4 = e4[n5], r3 = {}, a2._data) a2._data.hasOwnProperty(o3) && (r3[o3] = a2._data[o3].data[i4]);
                  u2.push(r3);
                }
                return u2;
              }, t5.prototype.pjt = function(t6, n5, e4) {
                var i4, r3;
                if (!(0, l.isNullOrUndefined)(n5)) if (i4 = this, e4) for (r3 in n5) Object.prototype.hasOwnProperty.call(i4._data, r3) && (i4._data[r3].data[t6] = n5[r3]);
                else for (r3 in i4._data) i4._data.hasOwnProperty(r3) && (i4._data[r3].data[t6] = n5[r3]);
              }, t5.prototype.bjt = function(t6) {
                var n5, e4 = this, i4 = {};
                for (n5 in e4._data) e4._data.hasOwnProperty(n5) && (i4[n5] = e4._data[n5].data[t6]);
                return i4;
              }, t5.prototype.jEe = function(t6) {
                return this._data[t6].data;
              }, t5.prototype.OEe = function(t6, n5) {
                this._data[t6] && (this._data[t6].data = n5);
              }, t5.prototype.yjt = function(t6) {
                var n5, e4, i4;
                return !(!t6 || !t6.reload) || (n5 = this, e4 = this.wjt, 0 === (i4 = n5.vjt) || ((0, l.isNullOrUndefined)(e4), false));
              }, t5.prototype.Mjt = function(t6, n5) {
                var e4, i4 = this.tjt;
                return i4[t6] || (e4 = void 0, n5 ? e4 = h.Common.ct.yU(t6, n5) : (e4 = h.Common.ct.dJ(t6), (0, l.isNullOrUndefined)(e4) && (e4 = new Date(t6)), isNaN(e4) && (e4 = new Date(t6.replace(" ", "T")))), i4[t6] = e4), i4[t6];
              }, t5.prototype.Cjt = function(t6, n5) {
                return n5 ? 0 === n5.split("|").indexOf(t6) : !!t6;
              }, t5.prototype.Sjt = function(t6, n5) {
                return n5 && (t6 = t6.replace(n5, ".")), +(t6 = t6.replace(/,/g, "")) || 0;
              }, t5.prototype.xQi = function(t6) {
                return t6.toString();
              }, t5.prototype.Tjt = function(t6, n5, e4, i4) {
                var r3 = t6;
                return "rowOrder" === n5 ? t6 : (i4 && n5 && "boolean" !== n5 && (r3 += ""), "date" === n5 ? "NULL" === r3 || "" === r3 ? null : this.Mjt(r3, e4) : "boolean" === n5 ? this.Cjt(r3, e4) : "number" === n5 ? this.Sjt(r3, e4) : "string" === n5 ? this.xQi(r3) : t6);
              }, t5.prototype.Ajt = function(t6, n5) {
                var e4 = "number" == typeof t6;
                return (0, l.isNullOrUndefined)(n5) || (0, l.isNullOrUndefined)(t6) || "string" != typeof t6 && !e4 ? t6 : this.Tjt(t6, n5.dataType, n5.dataPattern, e4);
              }, t5.prototype.Ijt = function(t6, n5) {
                var e4, i4, r3, o3;
                for (e4 in t6) if (t6.hasOwnProperty(e4) && (i4 = t6[e4])) {
                  if (o3 = "number" == typeof (r3 = n5[e4]), (0, l.isNullOrUndefined)(r3) || "string" != typeof r3 && !o3) continue;
                  n5[e4] = this.Tjt(r3, i4.dataType, i4.dataPattern, o3);
                }
              }, t5.prototype.xjt = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this._data[t6].data;
                for (i4 = 0; i4 < a2.length; i4++) o3 = "number" == typeof (r3 = a2[i4]), (0, l.isNullOrUndefined)(r3) || "string" != typeof r3 && !o3 || (a2[i4] = this.Tjt(r3, n5, e4, o3));
                this.pGr(t6), this.isHierarchy() && "rowOrder" === n5 && (this.ejt = true);
              }, t5.prototype.Njt = function(t6, n5) {
                var e4, i4;
                t6 === n5 || (0, l.isNullOrEmpty)(n5) || ((e4 = this).VFe(t6, n5), i4 = e4.kjt(t6), e4.Djt(t6, (0, l.isNullOrEmpty)(i4) ? t6 : i4, n5));
              }, t5.prototype.VFe = function(t6, n5) {
                var e4 = this, i4 = e4.DEt.findIndex((function(n6) {
                  return n6 === t6;
                }));
                i4 > -1 && e4.DEt.splice(i4, 1, n5), e4._data[n5] = e4._data[t6], delete e4._data[t6];
              }, t5.prototype.K3e = function() {
                var t6, n5, e4 = this, i4 = null === (t6 = e4.LEt.schema) || void 0 === t6 ? void 0 : t6.columns;
                if (i4) {
                  for (n5 in i4) if (e4.J3e(i4[n5].trigger)) return true;
                }
                return false;
              }, t5.prototype.J3e = function(t6) {
                var n5 = this;
                return t6 && t6.formula && (0, l.isFormula)(t6.formula) && (t6.when === i3.TriggerWhenType.onNew || t6.when === i3.TriggerWhenType.onNewAndUpdate && !(0, l.isNullOrEmpty)(t6.fields) && (t6.fields.indexOf("*") > -1 || t6.fields.split(",").map((function(t7) {
                  return t7.trim();
                })).every((function(t7) {
                  return n5.DEt.indexOf(t7) > -1;
                }))));
              }, t5.prototype.X3e = function(t6) {
                var n5, e4, i4 = this, r3 = null === (e4 = null === (n5 = i4.LEt.schema) || void 0 === n5 ? void 0 : n5.columns[t6]) || void 0 === e4 ? void 0 : e4.trigger;
                if (i4.J3e(r3)) return r3;
              }, t5.prototype.q3e = function(t6, n5) {
                var e4, i4, r3, o3, a2 = this, u2 = null === (e4 = a2.LEt.schema) || void 0 === e4 ? void 0 : e4.columns;
                if (!(0, l.isNullOrUndefined)(u2)) for (r3 in u2) u2.hasOwnProperty(r3) && (!(o3 = a2.X3e(r3)) || t6 && t6 !== o3.when || (i4 === v && (i4 = {}), i4[r3] = n5 ? o3.formula : o3));
                return i4;
              }, t5.prototype.oke = function(t6) {
                var n5, e4, i4, r3 = this;
                return "formula" === (null === (i4 = null === (e4 = null === (n5 = r3.LEt.schema) || void 0 === n5 ? void 0 : n5.columns) || void 0 === e4 ? void 0 : e4[t6]) || void 0 === i4 ? void 0 : i4.dataType);
              }, t5.prototype.GTe = function() {
                var t6, n5, e4, i4 = this, r3 = i4.LEt.schema, o3 = {};
                if (!(0, l.isNullOrUndefined)(r3) && !(0, l.isNullOrUndefined)(r3.columns)) for (n5 in t6 = r3.columns) t6.hasOwnProperty(n5) && "formula" === (e4 = t6[n5]).dataType && (o3[n5] = e4.value);
                return o3;
              }, t5.prototype.BAe = function(t6) {
                var n5, e4, i4 = null === (e4 = null === (n5 = this.LEt.schema) || void 0 === n5 ? void 0 : n5.columns) || void 0 === e4 ? void 0 : e4[t6];
                return "formula" === (null == i4 ? void 0 : i4.dataType) && (null == i4 ? void 0 : i4.value);
              }, t5.prototype.EEe = function() {
                var t6 = {}, n5 = {};
                return this.njt.concat([this.zjt]).forEach((function(e4) {
                  var i4, r3, o3 = "".concat(e4.id), a2 = "".concat(e4.parentId);
                  t6[o3] = a2, n5[o3] = null === (r3 = null !== (i4 = e4.children) && void 0 !== i4 ? i4 : []) || void 0 === r3 ? void 0 : r3.map((function(t7) {
                    return "".concat(t7.id);
                  }));
                })), { orderCache: n5, relationShipCache: t6 };
              }, t5.prototype.REe = function(t6) {
                var n5 = t6.orderCache, e4 = t6.relationShipCache, i4 = {}, r3 = this;
                r3.njt.concat([this.zjt]).forEach((function(t7) {
                  var n6 = "".concat(t7.id);
                  i4[n6] = t7;
                })), r3.njt.forEach((function(t7) {
                  var n6, o3 = "".concat(t7.id), a2 = "".concat(t7.parentId), u2 = e4[o3];
                  (u2 && u2 !== a2 || !t7.parent) && ((n6 = i4[u2]) || u2 !== r3.zjt.id || (n6 = r3.zjt), t7.setParent(n6));
                })), r3.njt.concat([this.zjt]).forEach((function(t7) {
                  var e5, i5 = "".concat(t7.id), r4 = n5[i5];
                  (null !== (e5 = t7.children) && void 0 !== e5 ? e5 : []).sort((function(t8, n6) {
                    return r4.indexOf("".concat(t8.id)) - r4.indexOf("".concat(n6.id));
                  }));
                })), r3.zjt.updateChildrenLevel(), "Custom" === r3.Fjt() && r3.g7t();
              }, t5.prototype.kjt = function(t6) {
                var n5, e4 = this.LEt.schema, i4, r3, o3;
                if (!((0, l.isNullOrUndefined)(e4) || (0, l.isNullOrUndefined)(e4.columns) || (r3 = (i4 = e4.columns)[t6], (0, l.isNullOrUndefined)(r3) || (o3 = r3.dataName, (0, l.isNullOrEmpty)(o3))))) return o3;
              }, t5.prototype.Djt = function(t6, n5, e4) {
                var i4 = this, r3 = i4.LEt.schema, o3, a2;
                (0, l.isNullOrUndefined)(r3) && (i4.LEt.schema = r3 = {}), o3 = r3.columns, (0, l.isNullOrUndefined)(o3) && (r3.columns = o3 = {}), a2 = o3[t6], (0, l.isNullOrUndefined)(a2) && (o3[t6] = a2 = {}), (0, l.isNullOrEmpty)(a2.dataName) && (a2.dataName = n5), (0, l.isNullOrEmpty)(e4) || (o3[e4] = o3[t6], delete o3[t6]);
              }, t5.prototype.h3e = function(t6) {
                var n5, e4, i4 = this, r3 = i4.Bjt(), o3 = r3[1];
                for (n5 in t6) e4 = t6[n5], t6[n5] = i4.Ajt(e4, o3[n5]);
              }, t5.prototype._jt = function(t6) {
                var n5 = this;
                return t6 = n5.Ejt(t6, { isServerToClient: true }), (0, l.isArray)(t6) ? t6 = t6.map((function(e4) {
                  return n5.h3e(t6), n5.xue(e4);
                })) : (n5.h3e(t6), t6 = n5.xue(t6)), t6;
              }, t5.prototype.jjt = function(t6, n5) {
                var e4 = this;
                return t6 = false !== (n5 = n5 || {}).isClone ? (0, l.clone)(t6, true) : t6, e4.Ojt(t6), t6 = e4.Ejt(t6, n5), t6 = (0, l.isArray)(t6) ? t6.map((function(t7) {
                  return e4.kue(t7);
                })) : e4.kue(t6);
              }, t5.prototype.Ejt = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2;
                if (n5 = n5 || {}, i4 = (e4 = this).LEt.schema, r3 = n5.isServerToClient, o3 = n5.isClone, a2 = n5.isPartial, !(0, l.isNullOrUndefined)(t6) && !(0, l.isNullOrUndefined)(i4) && !(0, l.isNullOrUndefined)(i4.columns)) {
                  for (c2 in u2 = i4.columns, s2 = [], u2) (0, l.isNullOrUndefined)(u2[c2].dataName) || u2[c2].dataName === c2 || a2 && !t6.hasOwnProperty(c2) || s2.push(r3 ? [u2[c2].dataName, c2] : [c2, u2[c2].dataName]);
                  s2.length > 0 && (t6 = o3 ? (0, l.clone)(t6, true) : t6, (0, l.isArray)(t6) ? t6.forEach((function(t7) {
                    e4.Rjt(s2, t7);
                  })) : (0, l.isObject)(t6) && e4.Rjt(s2, t6));
                }
                return t6;
              }, t5.prototype.Rjt = function(t6, n5) {
                t6.forEach((function(t7) {
                  var e4 = t7[0], i4 = t7[1];
                  n5[i4] = n5[e4], delete n5[e4];
                }));
              }, t5.prototype.Bjt = function() {
                var t6, n5, e4, i4, r3 = this, o3 = r3.LEt.schema;
                if (!(0, l.isNullOrUndefined)(o3) && !(0, l.isNullOrUndefined)(o3.columns)) {
                  for (i4 in n5 = {}, e4 = {}, t6 = o3.columns) t6.hasOwnProperty(i4) && ((0, l.isNullOrUndefined)(t6[i4].dataName) || (n5[t6[i4].dataName] = i4), (t6[i4].dataType || t6[i4].dataPattern) && (e4[i4] = { dataType: t6[i4].dataType, dataPattern: t6[i4].dataPattern }));
                  return [n5, e4];
                }
                return [{}, {}];
              }, t5.prototype.Y$r = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2;
                if ((0, l.isNullOrUndefined)(t6.dataType)) {
                  for (o3 = 0, a2 = (r3 = (null === (e4 = (i4 = this)._data[n5]) || void 0 === e4 ? void 0 : e4.data) || []).length; o3 < a2; o3++) if (u2 = r3[o3], !(0, l.isNullOrUndefined)(u2)) {
                    if ("string" === (s2 = typeof u2) || "number" === s2 || "boolean" === s2) return s2;
                    if ("object" === s2) return (0, l.isArray)(u2) ? "array" : u2 instanceof Date ? "date" : "object";
                    break;
                  }
                }
              }, t5.prototype.gao = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2 = this, c2 = {}, f2 = s2.$Yr;
                if (s2.HFe = [], 0 === (null == t6 ? void 0 : t6.length) && 0 === s2.vjt && Object.keys((null === (n5 = s2.LEt.schema) || void 0 === n5 ? void 0 : n5.columns) || {}).length > 0 && !s2.KFe() && (t6 = Object.keys(s2.LEt.schema.columns)), (t6 = t6.slice()).length > 0) for (a2 in i4 = (null === (e4 = s2.LEt.schema) || void 0 === e4 ? void 0 : e4.columns) || {}, r3 = void 0, o3 = function(n6) {
                  if (i4.hasOwnProperty(n6)) {
                    var e5 = i4[n6];
                    r3 = c2[n6] = A({}, e5), (0, l.isNullOrEmpty)(e5.dataName) || (r3 = c2[e5.dataName] = A({}, e5)), "formula" === e5.dataType ? t6.push(n6) : t6.some((function(t7) {
                      return (t7.field || t7) === n6;
                    })) || (r3.ZFe = true, f2 && delete i4[n6]);
                  }
                }, i4) o3(a2);
                for (a2 in t6.forEach((function(t7) {
                  var n6, e5, i5, r4, o4 = t7.field || t7, a3 = t7.dataType, u3 = s2.QFe(), f3 = "object" == typeof t7, h2 = f3 ? Object.keys(t7) : [];
                  if (t7 = f3 && h2.length > 0 ? t7 : {}, c2[o4]) {
                    for (n6 = 0, e5 = h2; n6 < e5.length; n6++) r4 = t7[i5 = e5[n6]], c2[o4][i5] === r4 || (0, l.isNullOrEmpty)(r4) || (c2[o4][i5] = r4);
                    c2[o4].Kyn = u3;
                  } else c2[o4] = A(A({}, t7), { Kyn: u3, name: o4, value: o4, dataType: a3 });
                  s2.HFe.push({ key: u3 });
                })), u2 = [], c2) c2[a2].spread || "formula" === c2[a2].dataType || u2.push(a2);
                s2.H3e(u2), s2.pao = c2;
              }, t5.prototype.zFe = function(t6) {
                var n5, e4, i4, r3, o3 = this, a2 = o3.$Yr;
                if (o3.HFe = [], o3.YFe(), (t6 = t6.slice()).length > 0) for (r3 in e4 = o3.LEt.schema.columns, n5 = {}, i4 = function(i5) {
                  if (e4.hasOwnProperty(i5)) {
                    var r4 = e4[i5];
                    n5[i5] = r4, (0, l.isNullOrUndefined)(r4.value) && (r4.value = i5), (0, l.isNullOrUndefined)(r4.name) && (r4.name = i5), (0, l.isNullOrEmpty)(r4.dataName) || (n5[r4.dataName] = r4), "formula" === r4.dataType ? (r4.name = i5, t6.push(i5)) : t6.some((function(t7) {
                      return (t7.field || t7) === i5;
                    })) || (r4.ZFe = true, a2 && delete e4[i5]);
                  }
                }, e4) i4(r3);
                t6.forEach((function(t7) {
                  var e5, i5, r4, a3, u2 = t7.field || t7, s2 = t7.dataType, c2 = o3.QFe(), f2 = "object" == typeof t7, h2 = f2 ? Object.keys(t7) : [];
                  if (t7 = f2 && h2.length > 0 ? t7 : {}, n5[u2]) {
                    for (e5 = 0, i5 = h2; e5 < i5.length; e5++) a3 = t7[r4 = i5[e5]], n5[u2][r4] === a3 || (0, l.isNullOrEmpty)(a3) || (n5[u2][r4] = a3);
                    n5[u2].Kyn = c2;
                  } else o3.LEt.schema.columns[u2] = A(A({}, t7), { Kyn: c2, name: u2, value: u2, dataType: s2 });
                  o3.HFe.push({ key: c2 });
                })), o3.H3e();
              }, t5.prototype.QFe = function() {
                return this.Kyn++;
              }, t5.prototype.WFe = function() {
                var t6 = this, n5 = t6.LEt;
                return !t6.MOt() && n5.remote.getColumns && ("function" == typeof n5.remote.getColumns || !(0, l.isNullOrEmpty)(n5.remote.getColumns.url));
              }, t5.prototype.KFe = function() {
                var t6;
                return this.WFe();
              }, t5.prototype.YFe = function() {
                var t6 = this, n5 = t6.LEt.schema;
                (0, l.isNullOrUndefined)(n5) && (n5 = t6.LEt.schema = {}), (0, l.isNullOrUndefined)(n5.columns) && (n5.columns = {});
              }, t5.prototype.YAe = function(t6) {
                var n5 = this;
                return n5.YFe(), !n5.oke(t6);
              }, t5.prototype.JFe = function(t6) {
                var e4, i4, r3, o3 = this, a2 = t6.source, u2 = t6.name;
                a2 && (e4 = o3.LEt.schema.columns, delete o3.LEt.schema.columns[u2], delete o3._data[u2], o3.DEt.splice(o3.DEt.indexOf(u2), 1), o3.X7t() ? (i4 = a2.columnStatus.key, (r3 = o3.HFe.findIndex((function(t7) {
                  return t7.key === i4;
                }))) > -1 && o3.HFe.splice(r3, 1), o3.ki(n4.ONCHANGE, { action: n4.REMOVE_COLUMN, column: A({}, e4) })) : a2.postData && o3.XFe() ? o3.rOt({ body: a2.postData }, n4.REMOVE_COLUMN).then((function() {
                  o3.ki(n4.ONCHANGE, { action: n4.REMOVE_COLUMN, column: A({}, e4) });
                })) : (o3.mGr(d, u2), o3.ki(n4.ONCHANGE, { action: n4.REMOVE_COLUMN, column: A({}, e4) })));
              }, t5.prototype.qFe = function(t6, e4, i4, r3) {
                var o3 = this;
                o3.YFe(), t6 = A(A({}, t6), { Kyn: o3.QFe() }), e4 = e4 || [], o3.$Fe(t6, e4, (function(r4) {
                  if (r4.source = r4.source || {}, o3.tGe(t6), o3.YAe(t6.name) && (o3.H3e(), e4.length > 0)) {
                    var a2 = o3._data[t6.name];
                    a2 && (a2.data = e4);
                  }
                  o3.ki(n4.ONCHANGE, { action: n4.ADD_COLUMN, column: t6 }), i4 && i4(r4);
                }), r3);
              }, t5.prototype.tGe = function(t6) {
                var n5 = this, e4 = n5.LEt.schema;
                n5.YFe(), e4.columns[t6.name] = A({}, t6), n5.pao[t6.name] = A({}, t6);
              }, t5.prototype.EQe = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2;
                if ((0, l.isNullOrUndefined)(n5) || 0 === n5.length) return [];
                for (o3 = {}, a2 = 0, u2 = r3 = (i4 = this).Ljt(); a2 < u2.length; a2++) s2 = u2[a2], (c2 = i4._data[s2]) && c2.data && c2.data.length > 0 && (o3[s2] = c2.data);
                for (f2 = Object.keys(o3), h2 = [], d2 = 0; d2 < n5.length; d2++) {
                  for ((e4 = {})[t6.name] = n5[d2], v2 = e4, p2 = 0, g2 = f2; p2 < g2.length; p2++) v2[m2 = g2[p2]] = o3[m2][d2];
                  h2.push(v2);
                }
                return h2;
              }, t5.prototype.$Fe = function(t6, e4, i4, r3) {
                var o3, a2 = this, u2 = !(0, l.isNamedFormulaColumn)(t6);
                a2.X7t() ? (a2.HFe.push({ key: t6.Kyn, status: 1, column: A({}, t6), originalColumnData: e4.slice() }), o3 = { columnStatus: A({}, a2.HFe[a2.HFe.length - 1]) }, i4 && i4({ type: n4.ADD_COLUMN, success: true, source: o3 })) : u2 && a2.XFe() ? (o3 = { postData: { column: A(A({}, t6), { field: t6.dataName || t6.value }) } }, i4 && i4({ type: n4.ADD_COLUMN, success: true, source: o3 }), a2.nGe(t6, a2.EQe(t6, e4), d, r3)) : (a2.bGr(t6, e4), i4 && i4({ type: n4.ADD_COLUMN, success: true }));
              }, t5.prototype.bGr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2 = this;
                if (h2.Dkr()) {
                  if (r3 = h2._kr(), o3 = h2.isHierarchy(), (0, l.isNullOrUndefined)(r3)) return;
                  if (a2 = t6.dataName || t6.value, u2 = n5 || [], o3 && "ChildrenPath" === h2.Fjt()) return s2 = h2.Gjt().trim(), s2 = h2.Yjt(s2), c2 = 0, void (0, l.traversalTree)((e4 = {}, e4[s2] = r3, e4), { invoking: function(t7) {
                    t7[a2] = u2[c2], c2++;
                  } }, v, s2);
                  "json" === (f2 = (null === (i4 = h2.LEt.schema) || void 0 === i4 ? void 0 : i4.type) || "json") ? r3.forEach((function(t7, n6) {
                    t7[a2] = u2[n6];
                  })) : r3[a2] = u2.slice();
                }
              }, t5.prototype.nGe = function(t6, e4, i4, r3) {
                var o3;
                this.rOt({ body: { column: A(A({}, t6), { field: t6.dataName || t6.value }), data: e4 } }, n4.ADD_COLUMN).then((function() {
                  i4 && i4({ type: n4.ADD_COLUMN, success: true });
                })).catch((function(t7) {
                  r3 && r3({ type: n4.ADD_COLUMN, success: false, reason: t7 });
                }));
              }, t5.prototype.eGe = function(t6) {
                var e4, i4, r3, o3 = this, a2 = t6.source, u2 = t6.name;
                a2 && (a2.column && (o3.LEt.schema.columns[u2] = A({}, a2.column), o3.pao[u2] = A({}, a2.column)), a2.data && (o3._data[u2] = a2.data), a2.name && o3.DEt.splice(a2.nameIndex, 0, a2.name), e4 = a2.column, o3.X7t() ? (i4 = e4.Kyn, (r3 = o3.HFe.findIndex((function(t7) {
                  return t7.key === i4;
                }))) > -1 ? o3.HFe[r3] = a2.columnStatus : o3.HFe.push(a2.columnStatus), o3.ki(n4.ONCHANGE, { action: n4.ADD_COLUMN, column: A({}, e4) })) : a2.postData && o3.XFe() ? o3.nGe(e4, (function() {
                  o3.ki(n4.ONCHANGE, { action: n4.ADD_COLUMN, column: A({}, e4) });
                })) : (o3.bGr({ value: u2 }, a2.data.data), o3.ki(n4.ONCHANGE, { action: n4.ADD_COLUMN, column: A({}, e4) })));
              }, t5.prototype.iGe = function(t6, e4, i4) {
                var r3, o3, a2, u2 = this;
                u2.YFe(), a2 = A(A({}, u2.pao[t6]), null === (o3 = null === (r3 = u2.LEt.schema) || void 0 === r3 ? void 0 : r3.columns) || void 0 === o3 ? void 0 : o3[t6]), u2.rGe(t6, (function(i5) {
                  var r4, o4 = i5.source = i5.source || {};
                  o4.column = A(A({}, u2.pao[t6]), u2.LEt.schema.columns[t6]), u2.oGe(t6), u2.YAe(t6) && (o4.data = u2._data[t6], delete u2._data[t6], r4 = u2.DEt.findIndex((function(n5) {
                    return n5 === t6;
                  })), o4.name = u2.DEt[r4], o4.nameIndex = r4, u2.DEt.splice(r4, 1)), u2.ki(n4.ONCHANGE, { action: n4.REMOVE_COLUMN, column: A({}, a2) }), e4 && e4(i5);
                }), i4);
              }, t5.prototype.oGe = function(t6) {
                var n5 = this, e4 = n5.LEt.schema;
                null == e4 || delete e4.columns[t6], delete n5.pao[t6];
              }, t5.prototype.rGe = function(t6, e4, i4) {
                var r3, o3, a2, u2, s2 = this, c2 = A(A({}, s2.pao[t6]), s2.LEt.schema.columns[t6]), f2 = !c2.ZFe, l2 = !s2.oke(t6) && f2;
                c2.isPrimaryKey && i4 && i4({ type: n4.REMOVE_COLUMN, success: false }), s2.X7t() ? (r3 = c2.Kyn, a2 = void 0, (o3 = s2.HFe.findIndex((function(t7) {
                  return t7.key === r3;
                }))) > -1 && (a2 = { columnStatus: A({}, s2.HFe[o3]) }, 1 === s2.HFe[o3].status ? s2.HFe.splice(o3, 1) : (2 !== s2.HFe[o3].status && (s2.HFe[o3].originalColumn = A({}, c2), l2 && (s2.HFe[o3].originalColumnData = s2._data[t6].data.slice())), s2.HFe[o3].status = 3)), e4 && e4({ type: n4.REMOVE_COLUMN, success: true, source: a2 })) : l2 && s2.XFe() ? (a2 = { postData: u2 = { column: { field: c2.dataName || c2.value } } }, e4 && e4({ type: n4.REMOVE_COLUMN, success: true, source: a2 }), s2.rOt({ body: u2 }, n4.REMOVE_COLUMN).catch((function(t7) {
                  i4 && i4({ type: n4.REMOVE_COLUMN, success: false, reason: t7 });
                }))) : (s2.mGr(c2), e4 && e4({ type: n4.REMOVE_COLUMN, success: true }));
              }, t5.prototype.mGr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2 = this;
                if (c2.Dkr()) {
                  if (r3 = c2._kr(), o3 = c2.isHierarchy(), (0, l.isNullOrUndefined)(r3)) return;
                  if (a2 = n5 || t6.dataName || t6.value, o3 && "ChildrenPath" === c2.Fjt()) return u2 = c2.Gjt().trim(), u2 = c2.Yjt(u2), void (0, l.traversalTree)((e4 = {}, e4[u2] = r3, e4), { invoking: function(t7) {
                    delete t7[a2];
                  } }, v, u2);
                  "json" === (s2 = (null === (i4 = c2.LEt.schema) || void 0 === i4 ? void 0 : i4.type) || "json") ? r3.forEach((function(t7) {
                    delete t7[a2];
                  })) : delete r3[a2];
                }
              }, t5.prototype.uGe = function(t6) {
                var e4, i4, r3, o3, a2 = this, u2 = t6.source;
                u2 && (e4 = u2.originalColumn, i4 = u2.column, u2.originalColumn && a2.aGe(i4.value, e4, true), u2.shouldUpdateLocalField && a2.VFe(i4.value, e4.value), u2.shouldUpdateDataType && (a2._data[e4.value].data = u2.data), a2.X7t() ? (r3 = e4.Kyn, (o3 = a2.HFe.findIndex((function(t7) {
                  return t7.key === r3;
                }))) > -1 && (a2.HFe[o3] = u2.columnStatus), a2.ki(n4.ONCHANGE, { action: n4.UPDATE_COLUMN, column: A({}, e4), originalColumn: A({}, i4) })) : u2.postData && a2.XFe() ? a2.rOt({ body: { column: u2.postData.originalColumn, originalColumn: u2.postData.column } }, n4.UPDATE_COLUMN).then((function() {
                  a2.ki(n4.ONCHANGE, { action: n4.UPDATE_COLUMN, column: A({}, e4), originalColumn: A({}, i4) });
                })) : (u2.shouldUpdateLocalField && a2.wGr({ value: i4.value }, { value: e4.value }), u2.shouldUpdateDataType && a2.pGr(e4.value), a2.ki(n4.ONCHANGE, { action: n4.UPDATE_COLUMN, column: A({}, e4), originalColumn: A({}, i4) })));
              }, t5.prototype.JEe = function(t6, e4, i4, r3) {
                var o3, a2, u2, s2 = this;
                return s2.YFe(), u2 = A(A({}, s2.pao[t6]), null === (a2 = null === (o3 = s2.LEt.schema) || void 0 === o3 ? void 0 : o3.columns) || void 0 === a2 ? void 0 : a2[t6]), s2.sGe(t6, e4, (function(r4) {
                  var o4 = r4.source = r4.source || {};
                  o4.originalColumn = L(u2, t6), o4.column = L(e4, t6), s2.YAe(t6) && s2.cGe(t6, e4, o4), s2.aGe(t6, e4), s2.ki(n4.ONCHANGE, { action: n4.UPDATE_COLUMN, column: e4, originalColumn: u2 }), i4 && i4(r4);
                }), r3);
              }, t5.prototype.aGe = function(t6, n5, e4) {
                var i4 = this, r3 = i4.LEt.schema, o3 = A(A({}, i4.pao[t6]), r3.columns[t6]);
                (0, l.isNullOrUndefined)(o3) || (o3.name !== n5.name && (delete r3.columns[o3.name], delete i4.pao[o3.name]), r3.columns[n5.name] = e4 || n5.type !== o3.type ? A({}, n5) : A(A({}, o3), n5), i4.pao[n5.name] = A({}, r3.columns[n5.name]));
              }, t5.prototype.sGe = function(t6, e4, i4, r3) {
                var o3, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = this, I2 = L(A(A({}, x2.pao[t6]), x2.LEt.schema.columns[t6]), t6);
                if (e4 = e4.type !== I2.type ? L(A({}, e4), t6) : L(A(A({}, I2), e4), t6), o3 = !I2.ZFe, u2 = !(a2 = x2.oke(t6)) && o3, s2 = I2.dataName, c2 = e4.dataName, f2 = !(0, l.isNullOrEmpty)(s2), h2 = !(0, l.isNullOrEmpty)(c2), d2 = false, v2 = I2.value !== e4.value, p2 = I2.dataType !== e4.dataType, g2 = I2.isPrimaryKey !== e4.isPrimaryKey, m2 = I2.dataPattern !== e4.dataPattern, b2 = !(d2 || p2 || g2 || (0, l.isEqual)(I2, e4, true, true)), f2 && h2 ? s2 !== c2 && (d2 = true) : h2 ? I2.value !== c2 && (d2 = true, s2 = I2.value) : f2 ? s2 !== e4.value && (d2 = true, c2 = e4.value) : v2 && (d2 = true, s2 = I2.value, c2 = e4.value), x2.X7t()) y2 = void 0, w2 = I2.Kyn, (M2 = x2.HFe.findIndex((function(t7) {
                  return t7.key === w2;
                }))) > -1 && (y2 = { columnStatus: A({}, x2.HFe[M2]) }, 1 !== x2.HFe[M2].status && (x2.HFe[M2].status = 2, (0, l.isNullOrUndefined)(x2.HFe[M2].originalColumn) && (u2 && (p2 || m2) && (x2.HFe[M2].originalColumnData = x2._data[t6].data.slice()), x2.HFe[M2].originalColumn = A({}, I2))), x2.HFe[M2].column = A(A({}, e4), { Kyn: w2 })), i4 && i4({ type: n4.UPDATE_COLUMN, success: true, source: y2 });
                else {
                  if (u2 && (d2 || p2 || g2 || b2) && x2.XFe()) return C2 = { column: A(A({}, e4), { field: t6 }), originalColumn: A(A({}, I2), { field: s2 || t6 }) }, d2 && (C2.column.field = c2), y2 = { postData: C2 }, i4 && i4({ type: n4.UPDATE_COLUMN, success: true, source: y2 }), x2.rOt({ body: C2 }, n4.UPDATE_COLUMN).catch((function(t7) {
                    r3 && r3({ type: n4.UPDATE_COLUMN, success: false, reason: t7 });
                  }));
                  S2 = A(A({}, e4), { value: t6 }), T2 = A(A({}, I2), { value: s2 || t6 }), d2 && (S2.value = c2), x2.wGr(T2, S2), i4 && i4({ type: n4.UPDATE_COLUMN, success: true });
                }
              }, t5.prototype.wGr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2 = this;
                if (f2.Dkr()) {
                  if (r3 = f2._kr(), o3 = f2.isHierarchy(), (0, l.isNullOrUndefined)(r3)) return;
                  if (a2 = t6.value, u2 = n5.value, a2 === u2) return;
                  if (o3 && "ChildrenPath" === f2.Fjt()) return s2 = f2.Gjt().trim(), s2 = f2.Yjt(s2), void (0, l.traversalTree)((e4 = {}, e4[s2] = r3, e4), { invoking: function(t7) {
                    t7[u2] = t7[a2], delete t7[a2];
                  } }, v, s2);
                  "json" === (c2 = (null === (i4 = f2.LEt.schema) || void 0 === i4 ? void 0 : i4.type) || "json") ? r3.forEach((function(t7) {
                    t7[u2] = t7[a2], delete t7[a2];
                  })) : (r3[u2] = r3[a2], delete r3[a2]);
                }
              }, t5.prototype.pGr = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2 = this;
                if (c2.Dkr()) {
                  if (i4 = c2._kr(), r3 = c2.isHierarchy(), (0, l.isNullOrUndefined)(i4)) return;
                  if (o3 = c2._data[t6].data, r3 && "ChildrenPath" === c2.Fjt()) return a2 = c2.Gjt().trim(), a2 = c2.Yjt(a2), u2 = 0, void (0, l.traversalTree)((n5 = {}, n5[a2] = i4, n5), { invoking: function(n6) {
                    n6[t6] = o3[u2], u2++;
                  } }, v, a2);
                  "json" === (s2 = (null === (e4 = c2.LEt.schema) || void 0 === e4 ? void 0 : e4.type) || "json") ? i4.forEach((function(n6, e5) {
                    n6[t6] = o3[e5];
                  })) : i4[t6] = o3.slice();
                }
              }, t5.prototype.cGe = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = L(A(A({}, a2.pao[t6]), a2.LEt.schema.columns[t6]), t6);
                n5 = n5.type !== u2.type ? L(A({}, n5), t6) : L(A(A({}, u2), n5), t6), i4 = u2.value !== n5.value, r3 = u2.dataType !== n5.dataType, o3 = u2.dataPattern !== n5.dataPattern, i4 && (e4.shouldUpdateLocalField = true, a2.VFe(u2.value, n5.value)), (r3 || o3) && (e4.shouldUpdateDataType = true, e4.data = a2.fGe(i4 ? n5.value : t6).slice(), a2.xjt(n5.value, n5.dataType, n5.dataPattern));
              }, t5.prototype.Ljt = function() {
                var t6, n5, e4, i4 = this, r3 = i4.LEt.schema, o3 = [];
                if (!(0, l.isNullOrUndefined)(r3) && !(0, l.isNullOrUndefined)(r3.columns)) for (n5 in t6 = r3.columns) t6.hasOwnProperty(n5) && (e4 = t6[n5]).isPrimaryKey && o3.push(n5);
                return o3;
              }, t5.prototype.Ojt = function(t6) {
                var n5, e4, i4, r3 = this;
                !(0, l.isNullOrUndefined)(t6) && r3.isHierarchy() && "Level" === r3.Fjt() && (n5 = r3.Pjt(), (0, l.isNumber)(n5) && (e4 = r3.Gjt(), (0, l.isArray)(t6) ? t6.forEach((function(t7) {
                  i4 = t7[e4], t7[e4] = i4 - n5;
                })) : (i4 = t6[e4], t6[e4] = i4 - n5)));
              }, t5.prototype.Ujt = function(t6) {
                var n5 = this, e4 = n5.njt, i4 = n5.Dkr();
                return e4.map((function(n6, e5) {
                  n6.lp = e5, t6 || (n6.sequence = e5 + 1);
                  var r3 = n6._data;
                  return i4 || (n6._data = v), r3;
                }));
              }, t5.prototype.Hjt = function(t6) {
                var n5 = this, e4 = n5.zjt, i4 = n5.njt = [];
                return (0, l.traversalTree)(e4, (function(t7) {
                  t7.level = t7.parent.level + 1, i4.push(t7);
                }), t6 ? { isOrderChildren: true, getValue: function(t7) {
                  return t7.qEt;
                } } : v), n5.Ujt(t6);
              }, t5.prototype.Vjt = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2, c2, f2, h2, d2, v2 = this, p2 = !(0, l.isNullOrEmpty)(i4), g2 = n5, m2 = i4;
                for (n5 = v2.Yjt(n5), e4 = v2.Yjt(e4), i4 = v2.Yjt(i4), o3 = {}, a2 = 0; a2 < t6.length; a2++) u2 = t6[a2], s2 = new S(v2.Zjt({ data: u2, idField: g2, sequenceField: m2 })), c2 = u2[n5], s2.id = c2, o3[c2] = s2, p2 && (s2.sequence = u2[i4]);
                for ((f2 = new S({ isRoot: true })).level = r3 - 1, a2 = 0; a2 < t6.length; a2++) c2 = t6[a2][n5], h2 = t6[a2][e4], s2 = o3[c2], d2 = o3[h2], (0, l.isNullOrUndefined)(d2) ? (f2.id = h2, s2.parent = f2) : s2.parent = d2;
                return v2.zjt = f2, v2.Hjt(p2);
              }, t5.prototype.Wjt = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2, c2, f2, h2, d2, p2, g2 = this, m2 = !(0, l.isNullOrEmpty)(i4), b2 = n5, y2 = i4;
                for (n5 = g2.Yjt(n5), e4 = g2.Yjt(e4), i4 = g2.Yjt(i4), o3 = v, a2 = 0; a2 < t6.length; a2++) ((u2 = t6[a2][e4]) < o3 || o3 === v) && (o3 = u2);
                for (o3 === v && (o3 = 0), (s2 = g2.zjt = new S({ isRoot: true })).level = o3 + r3 - 1, c2 = [s2], a2 = 0; a2 < t6.length; a2++) {
                  for (f2 = t6[a2], h2 = new S(g2.Zjt({ data: f2, idField: b2, sequenceField: y2 })), d2 = (0, l.isNullOrEmpty)(n5) ? N(a2) : f2[n5], u2 = f2[e4] + r3, h2.id = d2, m2 && (h2.sequence = f2[i4]), p2 = c2[c2.length - 1]; p2.level >= u2; ) p2 = c2.pop().parent;
                  h2.parent = p2, c2.push(h2);
                }
                return g2.Hjt(m2);
              }, t5.prototype.Qjt = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2, s2 = this, c2 = s2.njt = [], f2 = !(0, l.isNullOrEmpty)(i4), h2 = n5, d2 = i4;
                return n5 = s2.Yjt(n5), e4 = s2.Yjt(e4), i4 = s2.Yjt(i4), (a2 = s2.zjt = new S({ isRoot: true })).level = r3 - 1, u2 = [a2], (0, l.traversalTree)(((o3 = {})[e4] = t6, o3), { invoking: function(t7) {
                  var e5 = new S(s2.Zjt({ data: t7, idField: h2, sequenceField: d2 }));
                  e5.id = (0, l.isNullOrEmpty)(n5) ? N(c2.length) : t7[n5], f2 && (e5.sequence = t7[i4]), e5.parent = u2[u2.length - 1], c2.push(e5), u2.push(e5);
                }, invoked: function() {
                  u2.pop();
                } }, f2 ? i4 : v, e4), s2.Ujt(f2);
              }, t5.prototype.Kjt = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2, f2, h2, d2, v2, p2, g2 = this, m2 = !(0, l.isNullOrEmpty)(r3), b2 = n5, y2 = r3;
                for (n5 = g2.Yjt(n5), e4 = g2.Yjt(e4), r3 = g2.Yjt(r3), a2 = {}, u2 = 0; u2 < t6.length; u2++) s2 = t6[u2], c2 = new S(g2.Zjt({ data: s2, idField: b2, sequenceField: y2 })), f2 = s2[e4], c2.id = (0, l.isNullOrEmpty)(n5) ? N(u2) : s2[n5], a2[f2] = c2, m2 && (c2.sequence = s2[r3]);
                for (h2 = g2.Bjt(), (d2 = new S({ isRoot: true })).level = o3 - 1, u2 = 0; u2 < t6.length; u2++) c2 = a2[f2 = t6[u2][e4]], p2 = a2[v2 = i4(g2.Jjt(t6[u2], h2, u2))], (0, l.isNullOrUndefined)(p2) ? c2.parent = d2 : c2.parent = p2;
                return g2.zjt = d2, g2.Hjt(m2);
              }, t5.prototype.Jjt = function(t6, n5, e4) {
                var i4 = this, r3 = { index: e4 };
                return Object.defineProperty(r3, "data", { get: function() {
                  var e5, r4 = n5[0], o3 = n5[1], a2 = {}, u2 = function(n6) {
                    var e6, u3;
                    t6.hasOwnProperty(n6) && (e6 = t6[n6], u3 = r4[n6] || n6, Object.defineProperty(a2, u3, { get: function() {
                      return i4.Ajt(e6, o3[u3]);
                    } }));
                  };
                  for (e5 in t6) u2(e5);
                  return a2;
                } }), r3;
              }, t5.prototype.Zjt = function(t6) {
                var n5 = this;
                return { data: t6.data, idField: t6.idField, sequenceField: t6.sequenceField, getData: n5.bjt.bind(n5), getFieldData: n5.Xjt.bind(n5) };
              }, t5.prototype.lGe = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.LEt.schema;
                if (h2.isHierarchy()) {
                  if (i4 = d2.hierarchy.type.trim(), r3 = null === (e4 = d2.hierarchy.column) || void 0 === e4 ? void 0 : e4.trim(), o3 = h2.$jt(), a2 = h2.Ljt(), "Parent" === i4) {
                    if (t6 === (u2 = a2[0]) || t6 === (s2 = r3) || t6 === o3) return true;
                  } else if ("Level" === i4) {
                    if (t6 === (u2 = a2[0]) || t6 === (c2 = r3) || t6 === o3) return true;
                  } else if ("ChildrenPath" === i4) {
                    if (t6 === (u2 = a2[0]) || t6 === (f2 = r3) || t6 === o3) return true;
                  } else if ("Custom" === i4 && (t6 === (u2 = a2[0]) || t6 === (l2 = r3) || t6 === o3)) return true;
                  if (!n5 && h2.l7t(t6)) return true;
                }
                return false;
              }, t5.prototype.qjt = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.LEt.schema;
                return d2.isHierarchy() && (e4 = v2.hierarchy.type.trim(), i4 = null === (n5 = v2.hierarchy.column) || void 0 === n5 ? void 0 : n5.trim(), r3 = v2.hierarchy.levelOffset || 0, o3 = d2.Ljt(), a2 = d2.$jt(t6), "Parent" === e4 ? (u2 = o3[0], s2 = i4, t6 = d2.Vjt(t6, u2, s2, a2, r3)) : "Level" === e4 ? (u2 = o3[0], c2 = i4, t6 = d2.Wjt(t6, u2, c2, a2, r3)) : "ChildrenPath" === e4 ? (u2 = o3[0], f2 = i4, t6 = d2.Qjt(t6, u2, f2, a2, r3)) : "Custom" === e4 && (u2 = o3[0], l2 = i4, h2 = v2.hierarchy.parse, t6 = d2.Kjt(t6, u2, l2, h2, a2, r3)), d2.t7t(), d2.ejt = false), t6;
              }, t5.prototype.t7t = function() {
                var t6, n5, e4 = this, i4 = e4.$jt(), r3 = e4.njt.slice();
                for ((0, l.isNullOrEmpty)(i4) || r3.sort((function(t7, n6) {
                  return t7.sjt() - n6.sjt();
                })), t6 = 0; t6 < r3.length; t6++) (n5 = r3[t6]).prev = r3[t6 - 1], n5.next = r3[t6 + 1];
              }, t5.prototype.$jt = function(t6) {
                var n5, e4, i4, r3 = this, o3 = r3.LEt.schema;
                if (!(0, l.isNullOrUndefined)(o3) && !(0, l.isNullOrUndefined)(o3.columns)) {
                  for (e4 in n5 = o3.columns) if (Object.prototype.hasOwnProperty.call(n5, e4) && "rowOrder" === (i4 = n5[e4]).dataType && (i4.n7t || r3.e7t(e4, t6))) return i4.n7t = true, e4;
                }
              }, t5.prototype.e7t = function(t6, n5) {
                var e4, i4, r3;
                if (!(0, l.isNullOrUndefined)(t6) && (0, l.isArray)(n5)) {
                  if (0 === n5.length) return true;
                  for (t6 = (e4 = this).Yjt(t6), i4 = 0; i4 < n5.length; i4++) if (r3 = n5[i4][t6], !(0, l.isNullOrUndefined)(r3)) return (0, l.isNumber)(r3);
                }
              }, t5.prototype.qX = function() {
                var t6 = this;
                return !!t6.isHierarchy() && ("Parent" !== t6.Fjt() || !(0, l.isNullOrUndefined)(t6.$jt()));
              }, t5.prototype.i7t = function() {
                return this.options.schema.hierarchy.summaryFields;
              }, t5.prototype.Pjt = function() {
                return this.options.schema.hierarchy.levelOffset;
              }, t5.prototype.r7t = function() {
                return this.options.schema.hierarchy.unparse;
              }, t5.prototype.Gjt = function() {
                return this.options.schema.hierarchy.column;
              }, t5.prototype.Fjt = function() {
                return this.options.schema.hierarchy.type;
              }, t5.prototype.o7t = function() {
                var t6, n5;
                return this.Ljt()[0];
              }, t5.prototype.isHierarchy = function() {
                var t6, n5, e4 = this.options.schema;
                return !(0, l.isNullOrUndefined)(e4) && !(0, l.isNullOrUndefined)(e4.hierarchy) && !(0, l.isNullOrUndefined)(null === (t6 = e4.hierarchy.type) || void 0 === t6 ? void 0 : t6.trim()) && !(0, l.isNullOrUndefined)(null === (n5 = e4.hierarchy.column) || void 0 === n5 ? void 0 : n5.trim()) && ("Custom" !== e4.hierarchy.type || (0, l.isFunction)(e4.hierarchy.parse) && (0, l.isFunction)(e4.hierarchy.unparse));
              }, t5.prototype.a7t = function() {
                return this.ejt;
              }, t5.prototype.u7t = function() {
                this.ejt = true;
              }, t5.prototype.SEt = function(t6) {
                var n5 = this;
                return t6 = n5.s7t(t6), n5.c7t(t6);
              }, t5.prototype.c7t = function(t6) {
                var n5, e4;
                return this.njt[t6];
              }, t5.prototype.f7t = function() {
                return this.zjt;
              }, t5.prototype.l7t = function(t6) {
                var n5, e4 = this.i7t();
                if (!(0, l.isNullOrUndefined)(e4)) return e4[t6];
              }, t5.prototype.h7t = function(t6, n5) {
                var e4, i4 = this, r3 = i4.l7t(t6);
                if (!(0, l.isNullOrEmpty)(r3) && (e4 = i4.SEt(n5), !(0, l.isNullOrUndefined)(e4) && e4.children.length > 0)) return r3;
              }, t5.prototype.Yjt = function(t6) {
                var n5, e4, i4 = this, r3 = i4.LEt.schema;
                if (!(0, l.isNullOrUndefined)(r3) && !(0, l.isNullOrUndefined)(r3.columns)) {
                  for (e4 in n5 = r3.columns) if (e4 === t6) return n5[e4].dataName || t6;
                }
                return t6;
              }, t5.prototype.d7t = function(t6, n5, e4) {
                var i4 = this;
                return i4.v7t(e4, (0, l.isNumber)(t6) ? i4.s7t(t6) : t6, i4.s7t(n5));
              }, t5.prototype.v7t = function(t6, n5, e4) {
                var i4 = this, r3 = i4.njt, o3 = i4.$jt(), a2, u2 = function(t7) {
                  return i4.isHierarchy() ? i4.njt[t7].sequence : i4._data[o3].data[t7];
                };
                return t6 ? (n5 = r3[e4].next && r3[e4].next.lp, (0, l.isNullOrUndefined)(n5) ? (a2 = u2(e4), Math.floor(a2) === a2 ? a2 += 0.5 : a2 = (a2 + Math.ceil(a2)) / 2) : a2 = (u2(e4) + u2(n5)) / 2) : (n5 = r3[e4].prev && r3[e4].prev.lp, a2 = (0, l.isNullOrUndefined)(n5) ? (a2 = u2(e4)) <= 1 ? a2 / 2 : a2 - 0.5 : (u2(n5) + u2(e4)) / 2), a2;
              }, t5.prototype.Cue = function() {
                return this.Mue;
              }, t5.prototype.Sue = function(t6) {
                this.Mue = t6;
              }, t5.prototype.m7t = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2, w2 = this, M2 = w2.$jt(), C2 = w2.isHierarchy();
                if ((0, l.isNullOrUndefined)(M2) && !C2 || n5 === e4 || (0, l.isNullOrUndefined)(n5) || (0, l.isNullOrUndefined)(e4)) return false;
                if (e4 = w2.s7t(e4), i4 = (0, l.isNumber)(i4) ? w2.s7t(i4) : i4, u2 = w2.s7t(n5), c2 = (s2 = w2.njt)[u2], f2 = s2[e4], C2) {
                  if (f2.parent !== c2.parent) return false;
                  g2 = 0, (t6 = (d2 = (h2 = c2.parent.children).indexOf(c2)) < (p2 = h2.indexOf(f2))) ? (g2 = null === (o3 = c2.getNextSibling()) || void 0 === o3 ? void 0 : o3.lp, h2.splice(p2 + 1, 0, c2), h2.splice(d2, 1)) : (g2 = u2, h2.splice(d2, 1), h2.splice(p2, 0, c2)), "Custom" === w2.Fjt() && w2.g7t(g2), (0, l.isNullOrUndefined)(i4) || (m2 = s2[i4], b2 = c2.parent === m2, y2 = c2.parent.parent === m2.parent, (b2 || y2) && (i4 = v));
                }
                return a2 = w2.v7t(t6, i4, e4), C2 && (0, l.isNullOrUndefined)(M2) && (c2.sequence = a2), w2.p7t(t6, e4, u2), (0, l.isNullOrUndefined)(M2) || w2.b7t(u2, ((r3 = {})[M2] = a2, r3)), true;
              }, t5.prototype.p7t = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = o3.isHierarchy();
                a2 && (i4 = o3.c7t((0, l.isNumber)(e4) ? e4 : o3.njt.length - 1), r3 = o3.c7t(n5), (0, l.isNullOrUndefined)(i4.prev) || (i4.prev.next = i4.next), (0, l.isNullOrUndefined)(i4.next) || (i4.next.prev = i4.prev), t6 ? (i4.prev = r3, i4.next = r3.next, (0, l.isNullOrUndefined)(r3.next) || (r3.next.prev = i4), r3.next = i4) : (i4.next = r3, i4.prev = r3.prev, (0, l.isNullOrUndefined)(r3.prev) || (r3.prev.next = i4), r3.prev = i4));
              }, t5.prototype.y7t = function(t6, n5) {
                var e4, i4 = this, r3 = i4.isHierarchy();
                if (r3) for (n5 = n5 || 1, e4 = 0; e4 < n5; e4++) i4.w7t(e4 + t6);
              }, t5.prototype.w7t = function(t6) {
                var n5, e4 = this.c7t(t6);
                (0, l.isNullOrUndefined)(e4.prev) || (e4.prev.next = e4.next), (0, l.isNullOrUndefined)(e4.next) || (e4.next.prev = e4.prev);
              }, t5.prototype.M7t = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2;
                if (this.isHierarchy() && (r3 = (i4 = this).njt, o3 = i4.Gjt(), t6 = i4.s7t(t6), !(a2 = r3[t6]).parent.isRoot)) {
                  for (u2 = i4.Fjt(), s2 = a2.parent.children.slice(a2.getCurrentIndex() + 1), c2 = a2.parent.parent, a2.promote(c2), "Parent" === u2 ? i4.b7t(t6, ((n5 = {})[o3] = D(a2.parentId), n5)) : "Level" === u2 ? i4.C7t(t6) : "ChildrenPath" === u2 && i4.Dkr() && (f2 = i4._kr(), (0, l.isNullOrUndefined)(f2) || (h2 = a2._data, d2 = i4.Gjt().trim(), d2 = i4.Yjt(d2), p2 = [], (0, l.traversalTree)(((e4 = {})[d2] = f2, e4), { invoking: function(t7, n6) {
                    if (h2 === t7) {
                      var e5 = n6[d2].indexOf(t7);
                      return n6[d2].splice(e5, 1), p2[1] ? p2[1][d2].push(t7) : f2.splice(f2.indexOf(n6) + 1, 0, t7), { cancel: true };
                    }
                    p2.push(t7);
                  }, invoked: function() {
                    p2.pop();
                  } }, v, d2))), g2 = function(t7) {
                    var n6, e5, r4, s3, c3, f3, h3, d3;
                    t7.parent = a2, s3 = t7.lp, "Parent" === u2 ? i4.b7t(s3, ((n6 = {})[o3] = a2.id, n6)) : "Level" === u2 ? i4.b7t(s3, ((e5 = {})[o3] = t7.level, e5)) : "ChildrenPath" === u2 && i4.Dkr() && (c3 = i4._kr(), (0, l.isNullOrUndefined)(c3) || (f3 = a2._data, h3 = t7._data, d3 = i4.Gjt().trim(), d3 = i4.Yjt(d3), (0, l.traversalTree)(((r4 = {})[d3] = c3, r4), { invoking: function(t8, n7) {
                      if (h3 === t8) {
                        var e6 = n7[d3].indexOf(t8);
                        return n7[d3].splice(e6, 1), f3[d3] || (f3[d3] = []), f3[d3].push(t8), { cancel: true };
                      }
                    } }, v, d3)));
                  }, m2 = 0, b2 = s2; m2 < b2.length; m2++) g2(y2 = b2[m2]);
                  "Custom" === u2 && i4.g7t(t6);
                }
              }, t5.prototype.S7t = function(t6, n5) {
                this.T7t(t6, n5);
              }, t5.prototype.T7t = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2, w2, M2;
                this.isHierarchy() && (n5 = false !== n5, c2 = (s2 = this).njt, f2 = s2.Gjt(), t6 = e4 ? t6 : s2.s7t(t6), d2 = (h2 = c2[t6]).getPrevSibling(), (0, l.isNullOrUndefined)(d2) || (p2 = h2.children.slice(), h2.demote(d2, n5), g2 = s2.Fjt(), n5 ? "Parent" === g2 ? s2.b7t(t6, ((i4 = {})[f2] = D(h2.parentId), i4)) : "Level" === g2 ? s2.C7t(t6) : "Custom" === g2 ? s2.g7t(t6) : "ChildrenPath" === g2 && s2.Dkr() && (m2 = s2._kr(), (0, l.isNullOrUndefined)(m2) || (b2 = h2._data, y2 = s2.Gjt().trim(), y2 = s2.Yjt(y2), (0, l.traversalTree)(((r3 = {})[y2] = m2, r3), { invoking: function(t7, n6) {
                  var e5, i5;
                  if (b2 === t7) return e5 = n6[y2].indexOf(t7), n6[y2].splice(e5, 1), (i5 = n6[y2][e5 - 1][y2]) || (n6[y2][e5 - 1][y2] = i5 = []), i5.push(t7), { cancel: true };
                } }, v, y2))) : "Parent" === g2 ? (s2.b7t(t6, ((o3 = {})[f2] = D(h2.parentId), o3)), p2.forEach((function(t7) {
                  var n6;
                  s2.b7t(t7.lp, ((n6 = {})[f2] = D(h2.parentId), n6));
                }))) : "Level" === g2 ? s2.b7t(t6, ((a2 = {})[f2] = c2[t6].level, a2)) : "Custom" === g2 ? s2.g7t(t6) : "ChildrenPath" === g2 && s2.Dkr() && (m2 = s2._kr(), (0, l.isNullOrUndefined)(m2) || (w2 = h2._data, M2 = s2.Gjt().trim(), M2 = s2.Yjt(M2), (0, l.traversalTree)(((u2 = {})[M2] = m2, u2), { invoking: function(t7, n6) {
                  var e5, i5, r4;
                  if (w2 === t7) return i5 = n6[M2].indexOf(t7), (e5 = n6[M2]).splice.apply(e5, I([i5, 1], t7[M2], false)), (r4 = n6[M2][i5 - 1][M2]) || (n6[M2][i5 - 1][M2] = r4 = []), r4.push(t7), t7[M2] = v, { cancel: true };
                } }, v, M2)))));
              }, t5.prototype.b7t = function(t6, n5, e4, i4) {
                this.A7t(t6, n5, e4, i4);
              }, t5.prototype.A7t = function(t6, e4, i4, r3) {
                var o3;
                this.I7t({ action: n4.UPDATE, index: t6, item: e4, x7t: true, N7t: true }), i4 && i4({ type: n4.UPDATE, success: true });
              }, t5.prototype.C7t = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = a2.njt, s2 = a2.Gjt(), c2 = u2[t6].getChildrenIndexes().concat(t6);
                for (r3 = 0; r3 < c2.length; r3++) o3 = c2[r3], a2.b7t(o3, ((i4 = {})[s2] = u2[o3].level, i4), n5, e4);
              }, t5.prototype.g7t = function(t6, n5, e4) {
                var i4 = this, r3 = !!(0, l.isNullOrUndefined)(t6), o3 = i4.Gjt();
                (0, l.traversalTree)(i4.zjt, (function(a2) {
                  var u2, s2, c2, f2;
                  false === r3 && t6 === a2.lp && (r3 = true), r3 && (s2 = a2, c2 = a2.lp, f2 = i4.k7t(s2), (0, l.isNullOrUndefined)(f2) || i4.b7t(c2, ((u2 = {})[o3] = f2, u2), n5, e4));
                }));
              }, t5.prototype.k7t = function(t6) {
                var n5 = this, e4 = n5.Gjt(), i4 = n5.r7t(), r3 = t6.data, o3 = r3[e4], a2 = null == i4 ? void 0 : i4(n5.D7t(t6));
                if (o3 !== a2) return a2;
              }, t5.prototype.D7t = function(t6) {
                var n5 = {};
                return Object.defineProperty(n5, "data", { get: function() {
                  return t6.data;
                } }), Object.defineProperty(n5, "index", { get: function() {
                  return t6.getCurrentIndex();
                } }), Object.defineProperty(n5, "parentData", { get: function() {
                  return t6.parent.isRoot ? d : t6.parent.data;
                } }), n5;
              }, t5.prototype._7t = function(t6, n5, e4, i4) {
                var r3 = this, o3 = r3.c7t(t6);
                return r3.E7t(o3.parent, n5 ? o3.getCurrentIndex() : o3.getCurrentIndex() + 1, e4, i4);
              }, t5.prototype.j7t = function(t6) {
                var n5 = this, e4 = n5.c7t(t6), i4 = e4.getPrevSibling(), r3;
                return { sequence: r3 = (0, l.isNullOrUndefined)(i4) ? n5.v7t(false, v, e4.lp) : n5.v7t(false, i4.lp, e4.lp), offset: 0 };
              }, t5.prototype.O7t = function(t6, n5, e4) {
                var i4, r3, o3 = this;
                return t6 = o3.s7t(t6), i4 = o3.j7t(t6).sequence, (r3 = o3._7t(t6, true, n5, e4)).sequence = i4, o3.p7t(false, t6), r3;
              }, t5.prototype.R7t = function(t6) {
                var n5 = this, e4 = n5.c7t(t6), i4 = e4.getNextSibling(), r3;
                return { sequence: r3 = (0, l.isNullOrUndefined)(i4) ? n5.v7t(true, v, e4.lp) : n5.v7t(true, i4.lp, e4.lp), offset: n5.B7t(e4) };
              }, t5.prototype.L7t = function(t6, n5, e4) {
                var i4, r3, o3 = this;
                return t6 = o3.s7t(t6), i4 = o3.R7t(t6).sequence, (r3 = o3._7t(t6, false, n5, e4)).sequence = i4, o3.p7t(true, t6), r3;
              }, t5.prototype.F7t = function(t6, n5) {
                var e4, i4, r3 = this;
                return t6 = r3.s7t(t6), e4 = r3.j7t(t6).sequence, (i4 = r3._7t(t6, true, n5)).sequence = e4, r3.T7t(t6, true, true), r3.p7t(false, t6), i4;
              }, t5.prototype.P7t = function(t6) {
                var n5, e4, i4, r3 = this, o3 = r3.c7t(t6), a2 = o3.children;
                return a2.length > 0 ? (i4 = a2[a2.length - 1], n5 = r3.v7t(true, v, i4.lp), e4 = r3.B7t(o3)) : (n5 = r3.v7t(true, v, o3.lp), e4 = 1), { sequence: n5, offset: e4 };
              }, t5.prototype.G7t = function(t6, n5) {
                var e4, i4, r3 = this;
                return t6 = r3.s7t(t6), e4 = r3.P7t(t6).sequence, (i4 = r3._7t(t6, false, n5)).sequence = e4, r3.U7t(r3.njt.length - 1), r3.p7t(true, t6), i4;
              }, t5.prototype.U7t = function(t6) {
                var n5 = this, e4 = n5.c7t(t6), i4 = e4.getPrevSibling();
                (0, l.isNullOrUndefined)(i4) || e4.demote(i4);
              }, t5.prototype.E7t = function(t6, n5, e4, i4) {
                var r3 = this, o3 = r3.njt, a2 = r3.o7t(), u2 = r3.$jt(), s2 = new S(r3.Zjt({ idField: a2, sequenceField: u2 })), c2 = r3.vjt + 1;
                return (0, l.isNullOrUndefined)(null == i4 ? void 0 : i4.id) ? (0, l.isNullOrUndefined)(e4) || (0, l.isNullOrUndefined)(e4[a2]) ? s2.id = N(c2) : s2.id = e4[a2] : s2.id = i4.id, s2.lp = c2 - 1, s2.setParent(t6, n5), o3.push(s2), s2;
              }, t5.prototype.oge = function(t6, n5) {
                var e4 = this, i4 = this.f7t(), r3 = e4.E7t(i4, void 0, t6, n5);
                return r3.sequence = 1, r3;
              }, t5.prototype.H7t = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this, u2 = a2.$jt(), s2 = a2.Gjt(), c2 = a2.Fjt();
                return "Parent" === c2 ? ((n5 = {})[s2] = D(t6.parentId), r3 = n5) : "Level" === c2 ? ((e4 = {})[s2] = t6.level, r3 = e4) : "Custom" === c2 && (o3 = a2.k7t(t6), (0, l.isNullOrUndefined)(o3) || ((i4 = {})[s2] = o3, r3 = i4)), (0, l.isNullOrEmpty)(u2) || ((r3 = r3 || {})[u2] = t6.sjt()), r3;
              }, t5.prototype.z7t = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = o3.SEt(t6);
                return n5 ? (r3 = a2.getNextSibling(), (0, l.isNullOrUndefined)(r3) || (i4 = false === e4 ? r3 : a2)) : i4 = false === e4 ? a2 : a2.getPrevSibling(), o3.B7t(i4);
              }, t5.prototype.B7t = function(t6) {
                var n5, e4 = 1, i4 = function(t7) {
                  return t7.children.reduce((function(t8, n6) {
                    return t8 + i4(n6);
                  }), t7.children.length);
                };
                return (0, l.isNullOrUndefined)(t6) ? 0 : (n5 = i4(t6)) + e4;
              }, t5.prototype.V7t = function(t6) {
                var n5 = this, e4 = n5.SEt(t6);
                return n5.B7t(e4);
              }, t5.prototype.Y7t = function(t6) {
                var n5, e4, i4 = this;
                i4.isHierarchy() && (n5 = i4.o7t(), !(0, l.isNullOrUndefined)(n5) && j(t6[n5]) && (t6[n5] = v), "Parent" === i4.Fjt() && j(t6[e4 = i4.Gjt()]) && (t6[e4] = v));
              }, t5.prototype.Z7t = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2 = this;
                s2.isHierarchy() && "Parent" === s2.Fjt() && (i4 = s2.o7t(), (0, l.isNullOrUndefined)(i4) || (o3 = (r3 = s2.c7t(t6)).children, a2 = r3.id = r3.JEt = s2.Xjt(i4, t6), u2 = s2.Gjt(), o3.forEach((function(t7) {
                  var n6;
                  t7.XEt = a2, s2.b7t(t7.lp, ((n6 = {})[u2] = a2, n6));
                })), n5 && (0, l.isNullOrEmpty)(n5[u2]) && !r3.parent.isRoot && !j(r3.parentId) && s2.b7t(t6, ((e4 = {})[u2] = r3.parentId, e4))));
              }, t5.prototype.Tue = function(t6) {
                var n5, e4, i4, r3 = [], o3 = (0, l.getObjectKeys)(t6);
                for (n5 = 0, e4 = o3; n5 < e4.length; n5++) t6[i4 = e4[n5]].spread && r3.push(i4);
                return r3;
              }, t5.prototype.Aue = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2 = (0, l.getObjectKeys)(t6);
                if (0 === v2.length) return t6;
                for (i4 = {}, r3 = 0, o3 = v2; r3 < o3.length; r3++) if (u2 = t6[a2 = o3[r3]], n5.indexOf(a2) >= 0) for (s2 = {}, e4 && (e4[a2] = s2), f2 = 0, h2 = c2 = (0, l.getObjectKeys)(u2 || {}); f2 < h2.length; f2++) d2 = h2[f2], v2.indexOf(d2) >= 0 ? (i4[a2 + "_" + d2] = u2[d2], e4 && (s2[a2 + "_" + d2] = d2)) : (i4[d2] = u2[d2], e4 && (s2[d2] = d2));
                else i4[a2] = u2, e4 && (e4[a2] = a2);
                return i4;
              }, t5.prototype.Iue = function(t6, n5) {
                var e4, i4 = this, r3 = i4.LEt, o3 = r3 && r3.schema && r3.schema.columns;
                return o3 && (e4 = i4.Tue(o3)).length > 0 && (t6 = t6.map((function(t7, r4) {
                  return i4.Aue(t7, e4, 0 === r4 ? n5 : v);
                }))), t6;
              }, t5.prototype.xue = function(t6) {
                var n5, e4 = this, i4 = e4.LEt, r3 = i4 && i4.schema && i4.schema.columns;
                return r3 && (n5 = e4.Tue(r3)).length > 0 && (t6 = e4.Aue(t6, n5)), t6;
              }, t5.prototype.Nue = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2 = (0, l.getObjectKeys)(n5);
                if (0 === d2.length) return t6;
                for (e4 = {}, i4 = 0, r3 = d2; i4 < r3.length; i4++) if ("object" == typeof (a2 = n5[o3 = r3[i4]])) for (u2 = {}, e4[o3] = u2, c2 = 0, f2 = s2 = (0, l.getObjectKeys)(a2); c2 < f2.length; c2++) u2[a2[h2 = f2[c2]]] = t6[h2];
                else "string" == typeof a2 && (e4[o3] = t6[a2]);
                return e4;
              }, t5.prototype.kue = function(t6) {
                var n5 = this, e4 = n5.Due;
                return e4 && t6 && (t6 = n5.Nue(t6, e4)), t6;
              }, t5.prototype.hGe = function(t6) {
                var n5, e4, i4, r3, o3 = this, a2 = o3.LEt, u2 = a2 && a2.schema && a2.schema.columns;
                if (u2 && (n5 = o3.Tue(u2)).length > 0 && o3.Due) {
                  for (e4 = 0, i4 = n5; e4 < i4.length; e4++) if (r3 = i4[e4], o3.Due[r3][t6]) return true;
                }
              }, t5.prototype.load = function(t6) {
                var e4, i4, r3 = this, o3 = r3.options.remote;
                return o3 && ((0, l.isNullOrUndefined)(o3.read) || o3.read && !(0, l.isFunction)(o3.read) && (0, l.isNullOrEmpty)(o3.read.url)) ? (e4 = "InvalidRemoteOption", r3.ki(b, { type: "read", success: false, reason: e4 }), Promise.resolve([])) : (i4 = r3.W7t(t6), r3.yjt(i4) ? (r3.ojt = true, r3.Q7t(i4).then((function(t7) {
                  var n5 = { type: "read", data: o3 && o3.read && !(0, l.isFunction)(o3.read) ? _(o3.read.adapter, t7) : t7 };
                  return r3.ki(m, n5) ? Promise.reject({ cancel: true, type: "read", step: p }) : r3.djt.parse(n5.data);
                })).then((function(t7) {
                  return r3.wjt = r3.djt.total(t7), r3.djt.read(t7);
                })).then((function(e5) {
                  var o4, a2, u2, s2, c2, f2, h2, d2;
                  if (t6 && t6.convert && (e5 = t6.convert(e5)), r3._data = t6 && t6.reload ? {} : r3._data || {}, r3.vjt = r3.vjt || 0, r3.DEt = t6 && t6.reload ? [] : r3.DEt || [], e5) {
                    for (e5 = (0, l.isArray)(e5) ? e5 : [e5], e5 = r3.qjt(e5), r3.Due = {}, e5 = r3.Iue(e5, r3.Due), o4 = 0, u2 = (a2 = r3.Bjt())[0], s2 = a2[1], c2 = 0, f2 = e5.length; c2 < f2; c2++) for (h2 in e5[c2]) d2 = e5[c2][h2], h2 = u2[h2] || h2, r3._data[h2] || (r3._data[h2] = { data: [] }, r3.DEt.push(h2)), r3._data[h2].data[o4 + c2] = r3.Ajt(d2, s2[h2]);
                    r3.wjt = r3.vjt = o4 + e5.length, r3.gao(r3.DEt), e5 = r3.K7t(i4).data, r3.ki(n4.ONCHANGE, { action: n4.INSERT, index: o4, items: e5 });
                  }
                  return r3.wjt = r3.vjt, r3.ki(b, { type: "read", success: true, items: e5 }), e5;
                })).then((function(t7) {
                  return r3.KFe() ? r3.Q7t(i4, n4.GET_COLUMNS).then((function(n5) {
                    return (0, l.isArray)(n5) && r3.zFe(n5), t7;
                  })) : t7;
                })).catch((function(t7) {
                  return Promise.reject(r3.oUr(t7));
                }))) : Promise.resolve(r3.K7t(i4).data));
              }, t5.prototype.oUr = function(t6) {
                var n5 = this, e4 = t6 && true === t6.cancel ? y + t6.step : n5.J7t(t6);
                return n5.ki(b, { type: "read", success: false, reason: e4 }), e4;
              }, t5.prototype.H3e = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2 = this, s2 = function(t7) {
                  u2._data[t7] || (u2._data[t7] = { data: [] }, u2.DEt.push(t7));
                };
                if (t6) for (e4 = 0, i4 = t6; e4 < i4.length; e4++) s2(r3 = i4[e4]);
                else if (o3 = null === (n5 = u2.options.schema) || void 0 === n5 ? void 0 : n5.columns) for (a2 in o3) o3[a2].spread || "formula" === o3[a2].dataType || s2(a2);
              }, t5.prototype.$ue = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2 = [];
                for (e4 = 0, i4 = n5.fields; e4 < i4.length; e4++) for (a2 = 0, u2 = o3 = t6[r3 = i4[e4]].data; a2 < u2.length; a2++) s2 = u2[a2], (c2 = {})[n5.as] = r3, c2[n5.valueAs] = s2, f2.push(c2);
                return f2;
              }, t5.prototype.AP = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2 = [], s2 = Object.keys(t6);
                for (n5 = 0, e4 = s2; n5 < e4.length; n5++) for (o3 = (r3 = t6[i4 = e4[n5]]).data ? r3.data : r3, a2 = 0; a2 < o3.length; a2++) u2[a2] || (u2[a2] = {}), u2[a2][i4] = o3[a2];
                return u2;
              }, t5.prototype.loadSync = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2 = this;
                if (v2.ojt = true, (0, l.isNullOrUndefined)(t6) ? n5 ? i4 = v2.AP(e4 || v2._data) : e4 ? i4 = e4 : (r3 = v2.hjt.getDataSync(), v2.wjt = v2.djt.total(r3), i4 = v2.djt.readSync(r3)) : i4 = v2.$ue(v2._data, t6), v2._data = {}, v2.vjt = 0, v2.DEt = [], i4) {
                  for (i4 = (0, l.isArray)(i4) ? i4 : [i4], i4 = v2.qjt(i4), v2.Due = {}, i4 = v2.Iue(i4, v2.Due), o3 = 0, u2 = (a2 = v2.Bjt())[0], s2 = a2[1], c2 = 0, f2 = i4.length; c2 < f2; c2++) for (h2 in i4[c2]) d2 = i4[c2][h2], h2 = u2[h2] || h2, v2._data[h2] || (v2._data[h2] = { data: [] }, v2.DEt.push(h2)), v2._data[h2].data[o3 + c2] = v2.Ajt(d2, s2[h2]);
                  return v2.vjt = o3 + i4.length, v2.wjt = v2.vjt, v2.zFe(v2.DEt), i4 = v2.K7t().data;
                }
                return [];
              }, t5.prototype.length = function() {
                return "number" == typeof this.wjt ? this.wjt : this.vjt;
              }, t5.prototype.setLength = function(t6) {
                var n5 = this, e4 = n5._data, i4 = n5.wjt;
                (0, l.isNullOrUndefined)(i4) ? e4 && (this.vjt = t6) : this.wjt = t6;
              }, t5.prototype.K7t = function(t6) {
                var n5, e4 = this, i4 = e4.X7t(), r3 = 0, o3 = e4.vjt, a2 = i4 ? e4.s7t(r3) : 0, u2 = e4.q7t || [];
                for (i4 || (u2 = []), n5 = []; o3 > 0 && a2 < e4.vjt; ) u2[a2] || (n5.push(e4.bjt(a2)), o3--), a2++;
                return { data: n5 };
              }, t5.prototype.zIr = function() {
                var t6, n5, e4, i4, r3, o3 = this, a2 = o3.X7t(), u2 = {}, s2 = o3._data;
                if (a2) {
                  for (n5 in t6 = o3.q7t || [], s2) if (s2.hasOwnProperty(n5)) {
                    for (e4 = s2[n5].data, i4 = 0, r3 = []; i4 < o3.vjt; ) t6[i4] || r3.push(e4[i4]), i4++;
                    u2[n5] = r3;
                  }
                  return u2;
                }
                for (n5 in s2) s2.hasOwnProperty(n5) && (u2[n5] = s2[n5].data.slice());
                return u2;
              }, t5.prototype.$7t = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this, s2 = u2.X7t(), c2 = 0, f2 = u2.vjt, l2 = s2 ? u2.s7t(c2) : 0, h2 = u2.q7t || [];
                if (s2 || (h2 = []), 0 === h2.length) {
                  for (e4 = [], i4 = 0; i4 < t6.length; i4++) e4[r3 = t6[i4]] = u2.bjt(r3);
                  return { data: e4 };
                }
                for (o3 = [], a2 = 0; f2 > 0 && l2 < u2.vjt; ) h2[l2] || (t6.indexOf(a2) > -1 && (o3[a2] = u2.bjt(l2)), a2++, f2--), l2++;
                return { data: o3 };
              }, t5.prototype.tOt = function(t6) {
                return t6 ? this.$7t(t6).data : this.K7t().data;
              }, t5.prototype.nOt = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2 = this, f2 = c2.Fjt(), h2 = [];
                if ((0, l.isNullOrUndefined)(n5) || t6.length !== n5.length) return h2;
                if ("Level" === f2) for (o3 = 0; o3 < t6.length; o3++) a2 = t6[o3], h2.push(O(a2, n5[o3]));
                else "ChildrenPath" === f2 && (u2 = c2.Yjt(c2.Gjt()), s2 = [(e4 = {}, e4[u2] = h2, e4)], E(((i4 = {})[u2] = t6, i4), ((r3 = {})[u2] = n5, r3), u2, (function(t7, n6) {
                  var e5, i5 = O(t7, n6);
                  delete i5[u2], e5 = s2[s2.length - 1], (0, l.isArray)(e5[u2]) || (e5[u2] = []), e5[u2].push(i5), s2.push(i5);
                }), (function() {
                  s2.pop();
                })));
                return h2;
              }, t5.prototype.eOt = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = this, b2 = m2.Fjt();
                if (!(0, l.isNullOrUndefined)(t6)) {
                  if (r3 = m2.f7t(), u2 = m2.Gjt(), "Level" === b2) {
                    for (o3 = "children", c2 = m2.Yjt(u2), (n5 = {})[o3] = [], n5.data = {}, f2 = [a2 = n5], h2 = 0; h2 < t6.length; h2++) {
                      for (v2 = (d2 = t6[h2])[c2], p2 = f2[f2.length - 1]; p2.data.level >= v2; ) f2.pop(), p2 = f2[f2.length - 1];
                      (e4 = { data: d2 })[o3] = [], g2 = e4, p2[o3].push(g2), f2.push(g2);
                    }
                    s2 = function(t7) {
                      return t7.data;
                    };
                  } else "ChildrenPath" === b2 && ((i4 = {})[o3 = u2] = t6, a2 = i4, s2 = function(t7) {
                    return t7;
                  });
                  E(r3, a2, { childrenField2: o3 }, (function(t7, n6) {
                    m2._jt(s2(n6)), m2.pjt(t7.lp, s2(n6));
                  }));
                }
              }, t5.prototype.iOt = function(t6, n5, e4, i4) {
                var r3 = this;
                return r3.rOt({ body: t6 }, n5).then((function(i5) {
                  var o3, a2 = "batch" === n5, u2 = { type: n5, batch: a2, data: r3.nOt(t6, i5) };
                  return r3.ki(m, u2) ? Promise.reject({ cancel: true, type: n5, batch: a2, step: m }) : (t6 = u2.data, r3.eOt(t6), o3 = { type: n5, success: true, batch: a2, items: (0, l.isArray)(t6) ? t6 : [t6] }, delete r3.oOt, delete r3.q7t, delete r3.aOt, delete r3.uOt, e4 && e4(o3), r3.ki(b, o3), a2 ? Promise.resolve(r3.K7t()) : v);
                })).catch((function(t7) {
                  var e5 = t7 && true === t7.cancel ? y + t7.step : r3.J7t(t7), o3 = { type: n5, success: false, reason: e5 };
                  r3.ki(g, { type: o3 }), i4 && i4(o3);
                }));
              }, t5.prototype.sOt = function() {
                var t6, n5 = this;
                if (n5.isHierarchy()) return "Level" === (t6 = n5.Fjt()) || "ChildrenPath" === t6;
              }, t5.prototype.cOt = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, h2 = this, d2 = h2.Fjt();
                return n5 = n5 || h2.q7t || [], "Level" === d2 ? (o3 = h2.f7t(), a2 = [], (0, l.traversalTree)(o3, (function(e5) {
                  var i5, r4 = e5.lp;
                  n5[r4] || (i5 = h2.bjt(r4), ("create" === t6 || "batch" === t6 && h2.isInserted(r4, true)) && h2.Y7t(i5), i5 = h2.jjt(i5), a2.push(i5));
                })), h2.iOt(a2, t6, e4, i4)) : "ChildrenPath" === d2 ? (o3 = h2.f7t(), u2 = h2.Gjt(), s2 = h2.Yjt(u2), c2 = [], f2 = [(r3 = {}, r3[s2] = c2, r3)], (0, l.traversalTree)(o3, { invoking: function(e5) {
                  var i5, r4, o4 = e5.lp;
                  n5[o4] || (i5 = h2.bjt(o4), ("create" === t6 || "batch" === t6 && h2.isInserted(o4, true)) && h2.Y7t(i5), delete i5[u2], i5 = h2.jjt(i5), f2.length > 0 && (r4 = f2[f2.length - 1], (0, l.isArray)(r4[s2]) || (r4[s2] = []), r4[s2].push(i5)), f2.push(i5));
                }, invoked: function(t7) {
                  n5[t7.lp] || f2.pop();
                } }), h2.iOt(c2, t6, e4, i4)) : Promise.resolve(void 0);
              }, t5.prototype.fOt = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, p2 = this;
                if (p2.isHierarchy()) {
                  for (n5 = p2.njt, e4 = p2.f7t(), i4 = n5.reduce((function(t7, n6) {
                    return t7[n6.JEt] = n6, n6.id = n6.JEt, n6.sequence = n6.$Et, n6.parent = d, t7;
                  }), ((t6 = {})[e4.JEt] = e4, t6)), r3 = 0; r3 < n5.length; r3++) p2.isInserted(r3, true) || ((o3 = n5[r3]).parent = i4[o3.XEt]);
                  if (a2 = p2.options.schema.hierarchy.levelOffset || 0, e4.level = a2 - 1, "Level" === p2.Fjt()) {
                    for (u2 = p2.Gjt(), s2 = v, r3 = 0; r3 < n5.length && !p2.isInserted(r3, true); r3++) f2 = void 0, ((f2 = (c2 = p2.lOt(r3)) ? c2[u2] : p2.Xjt(u2, r3)) < s2 || s2 === v) && (s2 = f2);
                    e4.level = s2 + a2 - 1;
                  }
                  p2.njt = [], h2 = !(0, l.isNullOrEmpty)(p2.$jt()), p2.Hjt(h2);
                }
              }, t5.prototype.dGe = function(t6) {
                var n5, e4 = this, i4 = t6.column;
                return delete e4.LEt.schema.columns[i4.name], (0, l.isNamedFormulaColumn)(i4) ? -1 : (delete e4._data[i4.name], (n5 = e4.DEt.findIndex((function(t7) {
                  return t7 === i4.name;
                }))) > -1 && e4.DEt.splice(n5, 1), n5);
              }, t5.prototype.vGe = function(t6, n5) {
                var e4 = this, i4 = t6.originalColumn || t6.column, r3 = t6.originalColumnData;
                e4.LEt.schema.columns[i4.name] = (0, l.clone)(i4, true), (0, l.isNamedFormulaColumn)(i4) || (e4._data[i4.name] = { data: r3.slice() }, -1 === e4.DEt.findIndex((function(t7) {
                  return t7 === i4.name;
                })) && ((0, l.isNumber)(n5) ? e4.DEt.splice(n5, 0, i4.name) : e4.DEt.push(i4.name)));
              }, t5.prototype.mGe = function(t6) {
                var n5 = this, e4 = n5.dGe(t6);
                n5.vGe(t6, e4);
              }, t5.prototype.gGe = function(t6) {
                var n5 = this;
                switch (t6.status) {
                  case 1:
                    n5.dGe(t6);
                    break;
                  case 2:
                    n5.mGe(t6);
                    break;
                  case 3:
                    n5.vGe(t6);
                }
              }, t5.prototype.cancelChanges = function() {
                var t6, e4, i4, r3, o3, a2, u2, s2, c2 = this;
                if (c2.hasColumnChanges()) for (t6 = 0, e4 = c2.HFe; t6 < e4.length; t6++) i4 = e4[t6], c2.gGe(i4);
                (r3 = c2.getHeldActions()) && 0 !== r3.length && (c2.fOt(), c2.t7t(), o3 = c2.aOt, a2 = c2.q7t || [], u2 = c2.oOt || [], s2 = [], (0, l.forEach)(r3, (function(t7) {
                  var e5 = t7.sourceIndex, i5 = t7.type;
                  i5 === n4.UPDATE ? (c2.pjt(e5, o3[e5]), u2[e5] = [!!u2[e5] && u2[e5][0], false]) : i5 === n4.DELETE ? (a2[e5] = v, u2[e5] && u2[e5][0] ? s2.push(e5) : u2[e5] && u2[e5][1] && (c2.pjt(e5, o3[e5]), u2[e5] = [false, false]), (0, l.isNullOrUndefined)(c2.wjt) || (c2.wjt += 1)) : i5 === n4.INSERT && s2.push(e5);
                })), (0, l.forEachRight)(s2, (function(t7) {
                  c2.mjt(t7, 1), u2.splice(t7, 1), (0, l.isNullOrUndefined)(c2.wjt) || (c2.wjt -= 1);
                })), c2.clearBatchCache_());
              }, t5.prototype.getChanges = function() {
                var t6 = this.getColumnChanges(), n5 = this.hOt(false);
                return t6 && t6.length > 0 ? t6.concat(n5) : n5;
              }, t5.prototype.HQr = function() {
                return this.hOt(false);
              }, t5.prototype.isDataLengthChanged = function() {
                return this.HQr().some((function(t6) {
                  return "delete" === t6.type || "insert" === t6.type;
                }));
              }, t5.prototype.isDataRowOrderChanged = function() {
                var t6, n5 = this, e4 = n5.isHierarchy();
                if (e4) return t6 = n5.$jt(), this.HQr().some((function(n6) {
                  var e5, i4;
                  return "update" === n6.type && (null === (e5 = n6.dataItem) || void 0 === e5 ? void 0 : e5[t6]) !== (null === (i4 = n6.oldDataItem) || void 0 === i4 ? void 0 : i4[t6]);
                }));
              }, t5.prototype.pGe = function() {
                var t6, n5, e4, i4 = this;
                for (t6 = 0; t6 < i4.HFe.length; t6++) (e4 = (n5 = i4.HFe[t6]).originalColumn || n5.column) && ("formula" === e4.dataType || e4.ZFe) && (i4.HFe[t6] = { key: n5.key });
              }, t5.prototype.submitChanges = function(t6, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, h2, p2, b2 = this;
                return b2.hasCachedActions() || b2.hasColumnChanges(true) ? b2.sOt() ? (i4 = (b2.q7t || []).slice(), b2.cOt("batch", v, (function() {
                  for (var t7 = b2.vjt - 1; t7 >= 0; t7--) true === i4[t7] && (b2.mjt(t7, 1), b2.njt[t7].parent = d, b2.njt.splice(t7, 1));
                  b2.njt.forEach((function(t8, n5) {
                    t8.lp = n5;
                  }));
                }))) : (r3 = b2.aOt, o3 = b2.q7t || [], a2 = b2.oOt || [], u2 = b2.getHeldActions(), s2 = [], c2 = n4.UPDATE, (0, l.isNullOrUndefined)(u2) || u2.forEach((function(t7) {
                  t7.dataItem = b2.jjt(t7.dataItem), t7.oldDataItem = b2.jjt(t7.oldDataItem);
                })), u2 = u2 || [], f2 = b2.getColumnChanges(true), p2 = (h2 = f2 && f2.length > 0) ? f2.concat(u2) : u2, b2.rOt({ body: p2 }, "batch").then((function(i5) {
                  var p3, y2, w2, M2, C2, S2 = h2 && i5, T2 = { type: c2, batch: true, data: S2 ? i5.slice(f2.length) : i5, columns: S2 ? i5.slice(0, f2.length) : v };
                  return b2.ki(m, T2) ? Promise.reject({ cancel: true, type: c2, batch: true, step: m }) : (((p3 = T2.data) || []).forEach((function(t7) {
                    t7.succeed && t7.data && (t7.data = b2._jt(t7.data));
                  })), p3.length, u2.length, y2 = [], (0, l.forEach)(u2, (function(t7, e5) {
                    var i6 = p3[e5];
                    i6.succeed ? t7.type === n4.UPDATE ? (r3 && (r3[t7.sourceIndex] = v), a2[t7.sourceIndex][1] = v) : t7.type === n4.INSERT ? (i6.data && (b2.pjt(t7.sourceIndex, i6.data), b2.Z7t(t7.sourceIndex, i6.data)), a2[t7.sourceIndex] = [], r3[t7.sourceIndex] = v) : t7.type === n4.DELETE && s2.push(t7.sourceIndex) : y2.push({ localAction: t7, response: i6 });
                  })), (0, l.forEachRight)(s2, (function(t7) {
                    var n5, e5, i6, u3;
                    for (o3.splice(t7, 1), b2.mjt(t7, 1), r3 && r3.splice(t7, 1), a2.splice(t7, 1), b2.isHierarchy() && (b2.njt[t7].parent = d, b2.njt.splice(t7, 1)), n5 = 0, e5 = y2; n5 < e5.length; n5++) (u3 = (i6 = e5[n5]).localAction.sourceIndex) > t7 && i6.localAction.sourceIndex--;
                  })), b2.isHierarchy() && b2.njt.forEach((function(t7, n5) {
                    t7.lp = n5;
                  })), y2.length > 0 ? (w2 = { type: c2, errorData: y2 }, b2.ki(g, { type: w2 }) || (b2.uOt = [], (0, l.forEach)(y2, (function(e5, i6) {
                    var r4 = e5.response, a3 = e5.localAction, u3 = a3.sourceIndex;
                    a3.type === n4.DELETE && (o3[u3] = v, (0, l.isNullOrUndefined)(b2.wjt) || (b2.wjt += 1)), b2.dOt(u3, { type: a3.type, success: false, reason: r4.reason }), t6(u3, r4.reason, a3.type);
                  })))) : delete b2.uOt, b2.pGe(), M2 = [], C2 = T2.columns, (0, l.forEach)(f2, (function(t7, e5) {
                    var i6, r4 = C2[e5];
                    r4.succeed ? (i6 = b2.HFe.findIndex((function(n5) {
                      return n5.key === t7.column.Kyn;
                    }))) > -1 && (t7.type === n4.REMOVE_COLUMN ? b2.HFe.splice(i6, 1) : b2.HFe[i6] = { key: b2.HFe[i6].key }) : M2.push({ change: t7, response: r4 });
                  })), M2.length > 0 ? (w2 = { type: c2, errorColumns: M2 }, b2.ki(g, { type: w2 }) || (b2.bGe = {}, (0, l.forEach)(M2, (function(t7) {
                    var i6, r4 = t7.response, o4 = t7.change, a3 = o4.name;
                    o4.type === n4.REMOVE_COLUMN && (i6 = b2.HFe.findIndex((function(t8) {
                      return t8.key === o4.column.Kyn;
                    }))) > -1 && (b2.vGe(b2.HFe[i6]), b2.HFe[i6] = { key: b2.HFe[i6].key }), b2.wGe(a3, { type: o4.type, success: false, reason: r4.reason }), e4(a3, r4.reason, o4.type);
                  })))) : delete b2.bGe, Promise.resolve(b2.K7t()));
                })).catch((function(t7) {
                  var n5 = t7 && true === t7.cancel ? y + t7.step : b2.J7t(t7), e5 = { type: c2, reason: n5 };
                  b2.ki(g, { type: e5 });
                }))) : (b2.pGe(), Promise.resolve(void 0));
              }, t5.prototype.getColumnChanges = function(t6) {
                var e4, i4, r3, o3 = this;
                return o3.hasColumnChanges(t6) ? (e4 = function(n5) {
                  return t6 ? A(A({}, n5.column), { Kyn: n5.key, field: n5.column.dataName || n5.column.value }) : A({}, n5.column);
                }, i4 = function(n5) {
                  return t6 ? A(A({}, n5.originalColumn), { Kyn: n5.key, field: n5.originalColumn.dataName || n5.originalColumn.value }) : A({}, n5.originalColumn);
                }, r3 = o3.HFe, t6 && (r3 = o3.HFe.filter((function(t7) {
                  var n5 = t7.originalColumn || t7.column;
                  return t7.status && "formula" !== n5.dataType && !n5.ZFe;
                }))), r3.reduce((function(t7, r4) {
                  switch (r4.status) {
                    case 1:
                      t7.push({ type: n4.ADD_COLUMN, column: e4(r4), data: o3.EQe(r4.column, r4.originalColumnData) });
                      break;
                    case 2:
                      t7.push({ type: n4.UPDATE_COLUMN, column: e4(r4), originalColumn: i4(r4) });
                      break;
                    case 3:
                      t7.push({ type: n4.REMOVE_COLUMN, column: i4(r4) });
                  }
                  return t7;
                }), [])) : d;
              }, t5.prototype.getHeldActions = function() {
                var t6 = this;
                return t6.hasCachedActions() ? t6.hOt(true) : d;
              }, t5.prototype.hOt = function(t6) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2 = this, h2 = [], d2 = f2.oOt || [], p2 = f2.q7t || [], g2 = f2.aOt, m2 = f2.isHierarchy();
                for (r3 = 0; r3 < f2.vjt; r3++) {
                  if (e4 = d2[r3], i4 = null, true === p2[r3]) i4 = { type: n4.DELETE, dataItem: f2.bjt(r3) };
                  else if (e4 && e4[0]) i4 = { type: n4.INSERT, dataItem: f2.bjt(r3) }, t6 && m2 && f2.Y7t(i4.dataItem);
                  else if (e4 && e4[1]) {
                    if (o3 = g2[r3], a2 = f2.bjt(r3), !t6) for (u2 in o3 = A({}, o3)) o3.hasOwnProperty(u2) && o3[u2] === a2[u2] && (delete o3[u2], delete a2[u2]);
                    i4 = { type: n4.UPDATE, dataItem: a2, oldDataItem: o3 };
                  }
                  i4 && (m2 && i4.type === n4.INSERT && j((s2 = f2.c7t(r3).parent).id) && (c2 = s2.isRoot ? v : s2.lp, t6 ? i4.sourceParentIndex = c2 : i4.parentIndex = (0, l.isNumber)(c2) ? f2.TEt(c2) : v), t6 ? i4.sourceIndex = r3 : i4.index = this.TEt(r3), h2.push(i4));
                }
                return h2;
              }, t5.prototype.clearBatchCache_ = function() {
                var t6 = this, n5 = this;
                delete n5.q7t, delete n5.aOt, delete n5.uOt, n5.HFe = n5.HFe.reduce((function(n6, e4) {
                  return 1 !== e4.status && n6.push({ key: t6.QFe() }), n6;
                }), []);
              }, t5.prototype.hasColumnChanges = function(t6) {
                var n5 = this;
                return !!n5.X7t() && (t6 ? n5.HFe.some((function(t7) {
                  var n6 = t7.originalColumn || t7.column;
                  return t7.status && "formula" !== n6.dataType && !n6.ZFe;
                })) : n5.HFe.some((function(t7) {
                  return t7.status;
                })));
              }, t5.prototype.hasCachedActions = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2 = this;
                if (!s2.X7t()) return false;
                if (t6 = s2.oOt, n5 = s2.q7t, !t6 && !n5) return false;
                if (n5) {
                  for (e4 = 0, i4 = n5; e4 < i4.length; e4++) if (r3 = i4[e4]) return true;
                }
                if (t6) {
                  for (o3 = 0, a2 = t6; o3 < a2.length; o3++) if ((u2 = a2[o3]) && (true === u2[0] || true === u2[1])) return true;
                }
                return false;
              }, t5.prototype.bind = function(t6, n5) {
                var e4, i4, r3, o3, u2, s2, c2 = this;
                if (n5) for (i4 = 0, r3 = e4 = (0, l.isArray)(t6) ? t6 : [t6]; i4 < r3.length; i4++) o3 = r3[i4], (u2 = (0, l.isFunction)(n5) ? n5 : n5[o3]) && (s2 = c2._events[o3] = c2._events[o3] || new a.Event()).addHandler(u2, c2);
              }, t5.prototype.unbind = function(t6, n5) {
                var e4, i4 = this;
                if ((0, l.isNullOrUndefined)(t6)) return (0, l.forEach)(i4._events, (function(t7) {
                  t7.removeAllHandlers();
                })), void (i4._events = {});
                (e4 = i4._events[t6]) && (n5 ? e4.removeHandler(n5, i4) : e4.removeAllHandlers());
              }, t5.prototype.ki = function(t6, n5) {
                var e4 = this, i4 = e4._events[t6];
                return !!i4 && ((n5 = n5 || {}).cancel = false, n5.eventName = t6, i4.raise(e4, n5), n5.cancel);
              }, t5.prototype.vOt = function(t6) {
                var n5 = this;
                return n5._events.hasOwnProperty(t6) && n5._events[t6].hasHandlers;
              }, t5.prototype.W7t = function(t6) {
                return t6 = A({}, t6);
              }, t5.prototype.mOt = function(t6) {
                return t6;
              }, t5.prototype.getDirtyIndexes = function() {
                var t6, n5 = this.oOt || [];
                return (0, l.getObjectKeys)(n5).map((function(t7) {
                  return parseInt(t7, 10);
                }));
              }, t5.prototype.gOt = function(t6, n5) {
                var e4 = this, i4;
                return (e4.oOt || [])[t6 = n5 ? t6 : e4.s7t(t6)] || [];
              }, t5.prototype.isInserted = function(t6, n5) {
                return this.gOt(t6, n5)[0];
              }, t5.prototype.isUpdated = function(t6) {
                return this.gOt(t6)[1];
              }, t5.prototype.getErrorInfo = function(t6) {
                var n5 = this, e4 = n5.uOt;
                if (!(0, l.isNullOrUndefined)(e4)) return e4[t6 = n5.s7t(t6)];
              }, t5.prototype.dOt = function(t6, n5) {
                var e4 = this, i4;
                (e4.uOt = e4.uOt || [])[t6] = n5;
              }, t5.prototype.wGe = function(t6, n5) {
                var e4 = this, i4;
                (e4.bGe = e4.bGe || {})[t6] = n5;
              }, t5.prototype.pOt = function() {
                this.oOt = v, this.q7t = v, this.aOt = v, this.uOt = v;
              }, t5.prototype.lOt = function(t6) {
                var n5 = this, e4;
                return (n5.aOt = n5.aOt || [])[t6];
              }, t5.prototype.insertItem = function(t6, e4, i4, r3, o3) {
                var a2 = this, u2 = a2.s7t(t6), s2 = (0, l.isNumber)(o3) ? a2.s7t(o3) : o3;
                a2.I7t({ action: n4.INSERT, index: u2, item: e4, N7t: true, Ekr: s2 }), a2.isHierarchy() && "Custom" === a2.Fjt() && a2.g7t(u2), i4 && i4({ type: n4.CREATE, success: true });
              }, t5.prototype.recoverItemAtBatch = function(t6, e4, i4, r3) {
                var o3 = this;
                o3.X7t() && this.BEe(t6) ? (o3.I7t({ action: n4.RECOVER_DELETE, index: t6, item: e4, N7t: true }), i4 && i4({ type: n4.CREATE, success: true })) : this.insertItem(t6, e4, i4, r3);
              }, t5.prototype.BEe = function(t6) {
                var n5;
                return !!(null === (n5 = this.q7t) || void 0 === n5 ? void 0 : n5[t6]);
              }, t5.prototype.updateItem = function(t6, e4, i4, r3) {
                var o3;
                this.I7t({ action: n4.UPDATE, index: t6, item: e4 }), i4 && i4({ type: n4.UPDATE, success: true });
              }, t5.prototype.updateItemValues = function(t6, e4, i4, r3) {
                var o3;
                this.I7t({ action: n4.UPDATE, index: t6, item: e4, x7t: true }), i4 && i4({ type: n4.UPDATE, success: true });
              }, t5.prototype.resetItem = function(t6, e4, i4) {
                var r3, o3 = this, a2 = o3.aOt = o3.aOt || [];
                r3 = a2[t6 = o3.s7t(t6)], o3.isHierarchy() && (r3 = o3.bOt(t6, r3)), o3.pjt(t6, r3), o3.clearChangedStatus(t6), o3.dOt(t6), e4 && e4({ type: n4.UPDATE, success: true });
              }, t5.prototype.bOt = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this, s2 = u2.isHierarchy();
                return s2 ? (e4 = u2.bjt(t6), i4 = u2.Fjt(), r3 = u2.Gjt(), o3 = u2.$jt(), a2 = A({}, n5), "Parent" !== i4 && "Level" !== i4 && "Custom" !== i4 || (a2[r3] = e4[r3]), (0, l.isNullOrEmpty)(o3) || (a2[o3] = e4[o3]), a2) : n5;
              }, t5.prototype.saveItem = function(t6, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, l2 = this;
                if (t6 = l2.s7t(t6), a2 = (o3 = (r3 = l2.oOt || [])[t6] || [])[0], u2 = o3[1], o3.length > 0 && (a2 || u2)) {
                  if (l2.isHierarchy() && (f2 = !(c2 = (s2 = l2.njt)[t6].parent).isRoot && r3[c2.lp] && r3[c2.lp][0])) return void (i4 && i4({ type: n4.CREATE, success: false }));
                  l2.yOt(t6, l2.bjt(t6), a2 ? n4.INSERT : n4.UPDATE, e4, i4);
                }
              }, t5.prototype.yOt = function(t6, e4, i4, r3, o3) {
                var a2 = this, u2 = i4 === n4.INSERT, s2 = u2 ? n4.CREATE : n4.UPDATE, c2 = a2.X7t(), f2 = a2.wOt(s2), l2 = a2.MOt();
                if (c2 || !f2 || l2) return l2 && (a2.oOt[t6] = [], a2.aOt[t6] = v), void (r3 && r3({ type: s2, success: true }));
                a2.sOt() ? a2.cOt(u2 ? n4.CREATE : n4.UPDATE, v, r3, o3) : (u2 && a2.Y7t(e4), e4 = a2.jjt(e4), a2.rOt({ body: e4 }, u2 ? n4.CREATE : n4.UPDATE).then((function(i5) {
                  var o4, u3 = { type: s2, data: O(e4, i5) };
                  return a2.ki(m, u3) ? Promise.reject({ cancel: true, type: s2, step: m }) : (u3.data = a2._jt(u3.data), a2.pjt(t6, u3.data), a2.oOt[t6] = [], a2.aOt[t6] = v, a2.dOt(t6), o4 = { type: s2, success: true, items: [u3.data] }, s2 === n4.CREATE && a2.Z7t(t6), r3 && r3(o4), a2.ki(b, o4), v);
                })).catch((function(n5) {
                  var e5 = n5 && true === n5.cancel ? y + n5.step : a2.J7t(n5), i5 = { type: s2, success: false, reason: e5 };
                  a2.dOt(t6, i5), a2.ki(g, { type: i5 }), o3(i5);
                })));
              }, t5.prototype.I7t = function(t6) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2 = this, g2 = p2.X7t(), m2 = p2.aOt = p2.aOt || [];
                g2 && (e4 = p2.q7t = p2.q7t || []), i4 = t6.action, r3 = t6.index, o3 = t6.item, a2 = t6.x7t, r3 = (u2 = t6.N7t) ? r3 : p2.s7t(r3), s2 = this.TEt(r3), p2.oOt = p2.oOt || [], c2 = p2.oOt, i4 === n4.INSERT ? (0 === p2.vjt && 0 === p2.DEt.length && p2.COt(), p2.vjt < r3 && (p2.vjt = r3), f2 = r3, (0, l.isNullOrUndefined)(f2) && (f2 = p2.vjt), p2.mjt(f2, 0, o3), m2.length >= r3 ? m2.splice(r3, 0, A({}, o3)) : m2[r3] = A({}, o3), g2 && (e4.length >= r3 ? e4.splice(r3, 0, v) : e4[r3] = v), c2.length >= r3 ? c2.splice(r3, 0, [true]) : c2[r3] = [true], (0, l.isNullOrUndefined)(p2.wjt) || (p2.wjt += 1), p2.Rkr(f2, o3, t6.Ekr), p2.ki(n4.ONCHANGE, { action: i4, index: r3, items: [t6.item], modelIndex: s2 })) : i4 === n4.UPDATE ? (h2 = p2.bjt(r3), m2[r3] || (m2[r3] = A({}, h2)), p2.pjt(r3, o3, a2), p2.oOt[r3] ? p2.oOt[r3] = [p2.oOt[r3][0], true] : p2.oOt[r3] = [false, true], R(A(A({}, h2), o3), m2[r3]) && p2.clearChangedStatus(r3), p2.Fkr(r3, o3), p2.ki(n4.ONCHANGE, { action: i4, index: r3, items: [t6.item], oldItems: [h2], modelIndex: s2 })) : i4 === n4.RECOVER_DELETE && e4 && (d2 = !!e4[r3], delete e4[r3], d2 && this.setLength(this.length() + 1));
              }, t5.prototype.clearChangedStatus = function(t6) {
                var n5 = this;
                n5.oOt[t6][1] = false, true !== n5.oOt[t6][0] && (n5.aOt[t6] = v);
              }, t5.prototype.Rkr = function(t6, n5, e4) {
                this.Bkr(t6, 0, n5, e4);
              }, t5.prototype.Fkr = function(t6, n5) {
                this.Bkr(t6, 1, n5);
              }, t5.prototype._kr = function() {
                var t6, n5, e4 = this, i4 = e4.LEt.data, r3 = null === (t6 = e4.LEt.schema) || void 0 === t6 ? void 0 : t6.dataPath;
                if ((0, l.isString)(r3) || (0, l.isNullOrEmpty)(r3)) {
                  if ((0, l.isNullOrEmpty)(r3)) n5 = i4;
                  else if (n5 = r3.split(".").reduce((function(t7, n6) {
                    return (0, l.isNullOrEmpty)(t7) || (0, l.isNullOrEmpty)(t7[n6]) ? v : t7[n6];
                  }), i4), (0, l.isNullOrUndefined)(n5)) return;
                  return n5;
                }
              }, t5.prototype.Bkr = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2 = this;
                if (y2.Dkr()) {
                  if (a2 = y2._kr(), u2 = y2.isHierarchy(), (0, l.isNullOrUndefined)(a2)) return;
                  if (s2 = t6, c2 = function(t7, n6, e5) {
                    var i5, r4, o4 = y2.jjt(((i5 = {})[n6] = t7[n6], i5), { isPartial: true });
                    for (r4 in o4) o4.hasOwnProperty(r4) && e5(r4, o4[r4]);
                  }, u2) {
                    if (f2 = y2.Fjt(), h2 = y2.c7t(null != i4 ? i4 : t6)._data, "ChildrenPath" === f2) return d2 = y2.Gjt().trim(), d2 = y2.Yjt(d2), void (0, l.traversalTree)((r3 = {}, r3[d2] = a2, r3), { invoking: function(i5, r4) {
                      var o4, a3, u3;
                      if (h2 === i5) {
                        if (o4 = r4[d2].indexOf(i5), e4) if (0 === n5) a3 = y2.jjt(e4), y2.c7t(t6)._data = a3, r4[d2].splice(o4, n5, a3);
                        else for (u3 in y2._data) e4.hasOwnProperty(u3) && c2(e4, u3, (function(t7, n6) {
                          r4[d2][o4][t7] = n6;
                        }));
                        else r4[d2].splice(o4, n5);
                        return { cancel: true };
                      }
                    } }, v, d2);
                    s2 = a2.findIndex((function(t7) {
                      return t7 === h2;
                    }));
                  }
                  if ("json" === (p2 = (null === (o3 = y2.LEt.schema) || void 0 === o3 ? void 0 : o3.type) || "json")) if (e4) if (0 === n5) g2 = y2.jjt(e4), u2 && (y2.c7t(t6)._data = g2), a2.splice(s2, n5, g2);
                  else for (m2 in y2._data) e4.hasOwnProperty(m2) && c2(e4, m2, (function(t7, n6) {
                    a2[s2][t7] = n6;
                  }));
                  else a2.splice(s2, n5);
                  else for (b2 in y2._data) y2._data.hasOwnProperty(b2) && (e4 ? 0 === n5 ? c2(e4, b2, (function(t7, e5) {
                    a2[t7].splice(s2, n5, e5);
                  })) : e4.hasOwnProperty(b2) && c2(e4, b2, (function(t7, n6) {
                    a2[t7][s2] = n6;
                  })) : a2[b2].splice(s2, n5));
                }
              }, t5.prototype.Pkr = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, b2, y2, w2 = this;
                if (w2.Dkr()) {
                  if (i4 = w2._kr(), r3 = w2.isHierarchy(), (0, l.isNullOrUndefined)(i4) || r3 && (0, l.isNullOrEmpty)(w2.o7t())) return;
                  if (r3) {
                    if (o3 = w2.o7t(), a2 = w2.Yjt(o3), u2 = w2.Fjt(), s2 = w2.getFieldValue(o3, t6), c2 = w2.getFieldValue(o3, n5), "ChildrenPath" === u2) return f2 = w2.Gjt().trim(), f2 = w2.Yjt(f2), h2 = w2.bjt(t6), d2 = false, p2 = false, void (0, l.traversalTree)((e4 = {}, e4[f2] = i4, e4), { invoking: function(t7, n6) {
                      var e5, i5, r4 = t7[a2];
                      if (c2 === r4 ? (e5 = n6[f2].indexOf(t7), n6.splice(e5, 0, h2), d2 = true) : s2 === r4 && (i5 = n6[f2].indexOf(t7), n6.splice(i5, 0), p2 = true), d2 && p2) return { cancel: true };
                    } }, v, f2);
                    for (g2 = false, m2 = false, b2 = 0; b2 < i4.length && ((y2 = i4[b2][a2]) === s2 && (t6 = b2, g2 = true), y2 === c2 && (n5 = b2, m2 = true), !m2 || !g2); b2++) ;
                  }
                  i4.splice(n5 - (t6 > n5 ? 0 : 1), 0, i4.splice(t6, 1)[0]);
                }
              }, t5.prototype.get = function(t6) {
                var n5, e4, i4, r3, o3 = this, a2 = o3._data;
                if (t6 = o3.s7t(t6), a2 && t6 < o3.vjt) {
                  for (n5 = {}, e4 = 0, i4 = o3.DEt; e4 < i4.length; e4++) n5[r3 = i4[e4]] = a2[r3].data[t6];
                  return n5;
                }
                return v;
              }, t5.prototype.Xjt = function(t6, n5) {
                var e4 = this, i4 = e4._data;
                return i4 && i4[t6] && n5 < e4.vjt ? i4[t6].data[n5] : v;
              }, t5.prototype.fGe = function(t6) {
                var n5, e4 = this._data;
                return e4 && e4[t6] ? e4[t6].data : [];
              }, t5.prototype.getFieldValue = function(t6, n5) {
                var e4 = this, i4 = e4._data;
                return n5 = e4.s7t(n5), i4 && i4[t6] && n5 < e4.vjt ? i4[t6].data[n5] : v;
              }, t5.prototype.getFieldOriginalValue = function(t6, n5) {
                var e4, i4 = this, r3 = i4._data;
                return n5 = i4.s7t(n5), r3 && r3[t6] && n5 < i4.vjt ? (e4 = i4.lOt(n5), (0, l.isNullOrUndefined)(e4) ? r3[t6].data[n5] : e4[t6]) : v;
              }, t5.prototype.yGe = function(t6) {
                var n5, e4, i4 = this, r3 = i4.length(), o3 = i4.fGe(t6);
                for (n5 = 0; n5 < r3; n5++) if (e4 = o3[n5], !(0, l.isNullOrUndefined)(e4)) return e4;
              }, t5.prototype.MGe = function(t6) {
                var n5 = this.yGe(t6), e4 = typeof n5;
                return "object" === e4 && n5 instanceof Date ? "date" : e4;
              }, t5.prototype.eTe = function(t6) {
                var n5, e4, i4 = this, r3 = i4.s7t(t6), o3 = i4.lOt(r3), a2 = i4._data, u2 = {};
                for (e4 in a2) a2.hasOwnProperty(e4) && (u2[e4] = n5 = a2[e4].data[r3], (0, l.isUndefined)(n5) && (u2[e4] = o3[e4]));
                return u2;
              }, t5.prototype.SOt = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = o3.QAr(t6, n5, e4);
                o3.JAr(a2, i4, r3);
              }, t5.prototype.JAr = function(t6, n5, e4) {
                var i4, r3 = this;
                t6.sort((function(t7, n6) {
                  return n6 - t7;
                })), i4 = t6.map((function(t7) {
                  return function(n6, e5) {
                    r3.KAr(t7, n6, e5);
                  };
                })), (0, l.promiseSerialExecute)(i4).then((function(t7) {
                  var e5, i5, r4, o3, a2, u2, s2, c2 = 0, f2 = [], l2 = {};
                  for (e5 = 0, i5 = t7; e5 < i5.length; e5++) {
                    for (c2 += (r4 = i5[e5]).removedCount || 0, a2 = 0, u2 = o3 = r4.removingIndexes || []; a2 < u2.length; a2++) s2 = u2[a2], f2.push(s2);
                    l2 = A(A({}, l2), r4);
                  }
                  l2.removedCount = c2, l2.removingIndexes = f2, n5 && n5(l2);
                })).catch(e4);
              }, t5.prototype.QAr = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2 = this, l2 = [];
                if (e4 && e4.length > 0) {
                  for (i4 = {}, r3 = 0; r3 < e4.length; r3++) o3 = f2.SEt(e4[r3]), i4[o3.id] = true;
                  for (a2 = function(t7) {
                    return !i4[t7.parentId] && (!t7.parent || a2(t7.parent));
                  }, r3 = 0; r3 < e4.length; r3++) u2 = e4[r3], o3 = f2.SEt(u2), a2(o3) && l2.push(u2);
                } else for (s2 = n5, r3 = 0; r3 < n5; r3++) {
                  if (u2 = t6 + r3, !((c2 = (o3 = f2.SEt(u2)).getChildrenCount()) + 1 < s2)) {
                    l2.push(u2);
                    break;
                  }
                  s2 -= c2 + 1, l2.push(u2), r3 += c2;
                }
                return l2;
              }, t5.prototype.KAr = function(t6, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, h2, d2, v2 = this, p2 = v2.X7t() || !v2.wOt(n4.DELETE) || v2.MOt() || v2.isInserted(t6);
                if (!p2 && v2.sOt()) return t6 = v2.s7t(t6), r3 = v2.c7t(t6), o3 = r3.getChildrenIndexes(true).concat(t6), a2 = o3.map((function(t7) {
                  return v2.TEt(t7);
                })), u2 = o3.reduce((function(t7, n5) {
                  return t7[n5] = true, t7;
                }), []), s2 = function() {
                  o3.forEach((function(t7) {
                    v2.tX(t7, 1, false);
                  })), v2.njt.forEach((function(t7, n5) {
                    t7.lp = n5;
                  }));
                }, v2.bind(m, s2), void v2.cOt(n4.DELETE, u2, (function(t7) {
                  v2.unbind(m, s2), t7.removedCount = o3.length, t7.removingIndexes = a2, e4 && e4(t7);
                }), (function(t7) {
                  v2.unbind(m, s2), i4 && i4(t7);
                }));
                v2.isHierarchy() && (t6 = v2.s7t(t6), r3 = v2.c7t(t6), c2 = r3.getChildrenIndexes(true).concat(t6), f2 = c2.map((function(t7) {
                  return v2.TEt(t7);
                })), h2 = I([], c2, true), d2 = c2.map((function(t7, n5) {
                  return function(e5, i5) {
                    for (var r4 = n5; r4 < c2.length; r4++) c2[r4] > t7 && c2[r4]--;
                    v2.TOt(c2[n5], 1, e5, i5);
                  };
                })), (0, l.promiseSerialExecute)(d2).then((function(t7) {
                  v2.X7t() || (h2.sort((function(t8, n6) {
                    return n6 - t8;
                  })), h2.forEach((function(t8) {
                    v2.tX(t8, 1, false);
                  })), v2.njt.forEach((function(t8, n6) {
                    t8.lp = n6;
                  }))), "Custom" === v2.Fjt() && v2.g7t();
                  var n5 = t7[t7.length - 1];
                  n5.removedCount = h2.length, n5.removingIndexes = f2, e4 && e4(n5);
                })).catch((function(t7) {
                  i4 && i4(t7);
                })));
              }, t5.prototype.removeItems = function(t6, n5, e4) {
                var i4 = this;
                t6.sort((function(t7, n6) {
                  return n6 - t7;
                })), i4.isHierarchy() ? i4.SOt(v, v, t6, n5, e4) : i4.XAr(t6, n5, e4);
              }, t5.prototype.remove = function(t6, n5, e4, i4) {
                var r3 = this;
                r3.isHierarchy() ? r3.SOt(t6, n5, v, e4, i4) : r3.TOt(t6, n5, e4, i4);
              }, t5.prototype.TOt = function(t6, n5, e4, i4) {
                this.qAr(t6, n5, v, e4, i4);
              }, t5.prototype.XAr = function(t6, n5, e4) {
                this.qAr(v, v, t6, n5, e4);
              }, t5.prototype.qAr = function(t6, e4, i4, r3, o3) {
                var a2, u2, s2, c2, f2, l2, h2, d2, p2, w2 = this, M2 = i4 && i4.length > 0, C2 = w2.X7t();
                if (M2 || !(t6 < 0 || t6 >= (C2 ? w2.vjt : w2.length()))) if (a2 = n4.DELETE, C2 || !w2.wOt(n4.DELETE) || w2.MOt() || w2.isInserted(t6)) {
                  if (C2 || !w2.isHierarchy()) if (M2) for (u2 = 0, s2 = i4; u2 < s2.length; u2++) c2 = s2[u2], w2.tX(c2, 1);
                  else w2.tX(t6, e4);
                  f2 = { type: a2, success: true }, r3 && r3(f2);
                } else {
                  if (M2) {
                    if (h2 = i4.filter((function(t7) {
                      return !w2.isInserted(t7);
                    })), !(h2.length > 0)) {
                      for (d2 = 0, p2 = i4; d2 < p2.length; d2++) c2 = p2[d2], w2.tX(c2, 1);
                      return f2 = { type: a2, success: true }, void (r3 && r3(f2));
                    }
                    l2 = w2.WAr(h2);
                  } else l2 = w2.gjt(t6, t6 + e4);
                  w2.jjt(l2, { isClone: false }), w2.rOt({ body: l2 }, n4.DELETE).then((function(n5) {
                    var o4, u3, s3, c3, f3, h3;
                    if (w2.ki(m, { type: a2, data: l2 })) return Promise.reject({ cancel: true, type: a2, step: m });
                    if (l2 && l2[0] && !C2 && (t6 = w2.Mle(t6, l2[0])), !w2.isHierarchy()) if (M2) for (o4 = 0, u3 = i4; o4 < u3.length; o4++) s3 = u3[o4], w2.tX(s3, 1);
                    else w2.tX(t6, e4);
                    if (l2 = w2._jt(l2), M2) for (c3 = 0, f3 = i4; c3 < f3.length; c3++) s3 = f3[c3], w2.dOt(s3);
                    else w2.dOt(t6);
                    return h3 = { type: a2, success: true, items: [l2] }, r3 && r3(h3), w2.ki(b, h3), v;
                  })).catch((function(n5) {
                    var e5, r4, u3, s3 = n5 && true === n5.cancel ? y + n5.step : w2.J7t(n5), c3 = { type: a2, success: false, reason: s3 };
                    if (M2) for (e5 = 0, r4 = i4; e5 < r4.length; e5++) u3 = r4[e5], w2.dOt(u3, c3);
                    else w2.dOt(t6, c3);
                    w2.ki(g, { type: c3 }), o3(c3);
                  }));
                }
                else o3 && o3({ type: n4.DELETE, success: false, reason: "Out of Boundary" });
              }, t5.prototype.tX = function(t6, e4, i4) {
                var r3, o3, a2, u2, s2, c2, f2, h2 = this, v2 = h2.X7t(), p2 = h2.oOt || [], g2 = h2.aOt || [], m2 = t6, b2 = t6, y2 = {};
                if (v2) {
                  for (o3 = h2.q7t = h2.q7t || [], a2 = e4, u2 = [], r3 = [], h2.isHierarchy() ? (b2 = this.TEt(m2), s2 = h2.njt, y2.id = s2[m2].id, s2[m2].parent = d, h2.y7t(t6, e4)) : m2 = h2.s7t(t6), c2 = m2; c2 < h2.vjt && (true !== o3[c2] && r3.length < e4 && (r3.push(h2.bjt(c2)), u2.push(c2), o3[c2] = true, a2 -= 1), 0 !== a2); c2++) ;
                  (0, l.forEachRight)(u2, (function(n5) {
                    if (p2[n5] && p2[n5][0]) {
                      var r4 = h2.njt;
                      o3.splice(n5, 1), p2.splice(n5, 1), g2.splice(n5, 1), h2.mjt(n5, 1), r4.splice(t6, e4), false !== i4 && r4.forEach((function(t7, n6) {
                        t7.lp = n6;
                      }));
                    }
                  }));
                } else s2 = h2.njt, h2.isHierarchy() && (y2.id = s2[t6].id), r3 = h2.mjt(t6, e4), p2.splice(t6, e4), g2.splice(t6, e4), h2.Gkr(t6, e4), h2.isHierarchy() && (s2[t6].parent = d, h2.y7t(t6, e4), s2.splice(t6, e4), false !== i4 && s2.forEach((function(t7, n5) {
                  t7.lp = n5;
                })));
                f2 = r3.length, (0, l.isNullOrUndefined)(h2.wjt) || (h2.wjt -= f2, h2.wjt = Math.max(h2.wjt, 0)), h2.ki(n4.ONCHANGE, { action: n4.DELETE, items: r3, index: null != m2 ? m2 : t6, modelIndex: b2, hierarchyNodeInfo: y2 });
              }, t5.prototype.Gkr = function(t6, n5) {
                this.Bkr(t6, n5);
              }, t5.prototype.COt = function() {
                var t6, n5, e4 = this, i4 = null === (t6 = e4.options.schema) || void 0 === t6 ? void 0 : t6.columns;
                if (i4) for (n5 in i4) Object.prototype.hasOwnProperty.call(i4, n5) && (e4._data[n5] = { data: [] }, e4.DEt.push(n5));
              }, t5.prototype.MOt = function() {
                return (0, l.isNullOrUndefined)(this.options.remote);
              }, t5.prototype.Dkr = function() {
                var t6, n5;
                return !(!this.LEt.data || !this.MOt()) && ("json" === (n5 = (null === (t6 = this.LEt.schema) || void 0 === t6 ? void 0 : t6.type) || "json") || "columnJson" === n5 && !this.isHierarchy());
              }, t5.prototype.X7t = function() {
                var t6;
                return !!this.options.batch && !this.MOt();
              }, t5.prototype.XFe = function() {
                return this.options.autoSync && !this.MOt();
              }, t5.prototype.wOt = function(t6) {
                var n5 = this, e4 = n5.options, i4 = n5.hjt;
                return !!e4.autoSync && !(0, l.isNullOrUndefined)(i4.LEt[t6]);
              }, t5.prototype.rOt = function(t6, e4) {
                var i4 = this, r3 = e4 || n4.UPDATE;
                return (t6 = i4.hjt.setupRequestOptions(t6, e4 || n4.UPDATE)) ? i4.ki(p, { type: r3, requestParams: t6 }) ? Promise.reject({ cancel: true, type: r3, step: p }) : i4.hjt.postData(t6) : Promise.reject({ cancel: true, type: r3, step: p });
              }, t5.prototype.Q7t = function(t6, n5) {
                var e4 = this;
                return t6 = e4.mOt(t6), n5 = n5 || "read", (t6 = e4.hjt.setupRequestOptions(t6, n5)) ? e4.ki(p, { type: n5, requestParams: t6 }) ? Promise.reject({ cancel: true, type: n5, step: p }) : e4.hjt.getData(t6) : Promise.reject({ cancel: true, type: n5, step: p });
              }, t5.prototype.J7t = function(t6) {
                return (0, l.isString)(t6) ? t6 : t6 instanceof Error ? t6.message : "some error happened";
              }, t5.prototype.TBe = function() {
                var t6 = this.q7t;
                return !((0, l.isNullOrUndefined)(t6) || 0 === t6.length);
              }, t5.prototype.s7t = function(t6) {
                var n5, e4, i4, r3, o3 = this.q7t;
                if (!o3 || 0 === o3.length) return t6;
                for (n5 = 0, e4 = 0, i4 = 0, r3 = o3.length; i4 <= r3; i4++) if (o3[i4]) e4 += 1;
                else {
                  if (n5 === t6) break;
                  n5 += 1;
                }
                return t6 + e4;
              }, t5.prototype.TEt = function(t6) {
                var n5, e4, i4 = this.q7t;
                if ((0, l.isNullOrUndefined)(i4) || 0 === i4.length) return t6;
                for (n5 = 0, e4 = Math.min(i4.length, t6); n5 <= e4; n5++) i4[n5] && (t6 -= 1);
                return t6;
              }, t5.prototype.Mle = function(t6, n5) {
                var e4, i4, r3, o3, a2 = this.gjt(t6, t6 + 1);
                if (a2 && R(a2[0], n5)) return t6;
                for (e4 = this.length(), r3 = t6 + 1, o3 = t6 - 1; o3 >= 0 || r3 < e4; ) {
                  if (r3 < e4) {
                    if (i4 = r3, (a2 = this.gjt(i4, i4 + 1)) && R(a2[0], n5)) return i4;
                    r3++, r3 = Math.min(e4, r3);
                  }
                  if (o3 >= 0) {
                    if (i4 = o3, (a2 = this.gjt(i4, i4 + 1)) && R(a2[0], n5)) return i4;
                    o3--, o3 = Math.max(-1, o3);
                  }
                }
                return t6;
              }, t5;
            })(), n4.DataSource = T;
          }, "./dist/src/dataSource/dataTransport/localDataTransport.js": function(t4, n4) {
            "use strict";
            var e3, i3 = this && this.nJr || function() {
              return i3 = Object.assign || function(t5) {
                var n5, e4, i4, r2;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r2 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r2) && (t5[r2] = n5[r2]);
                return t5;
              }, i3.apply(this, arguments);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), n4.LocalDataTransport = void 0, e3 = (function() {
              function t5(t6) {
                t6 && (this._data = t6.data, this.LEt = i3({}, t6));
              }
              return t5.prototype.getData = function(t6) {
                var n5 = this;
                return Promise.resolve(n5._data);
              }, t5.prototype.getDataSync = function() {
                return this._data;
              }, t5.prototype.postData = function(t6) {
                var n5 = this;
                return Promise.resolve(n5._data);
              }, t5.prototype.setupRequestOptions = function(t6, n5) {
                return {};
              }, t5;
            })(), n4.LocalDataTransport = e3;
          }, "./dist/src/dataSource/dataTransport/remoteDataTransport.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v = this && this.nJr || function() {
              return v = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, v.apply(this, arguments);
            };
            function p(t5, n5) {
              var e4, i4, r3, o3, a2;
              if (n5 = n5 || {}, !t5) return n5;
              if (t5 instanceof Headers) t5.forEach((function(t6, e5) {
                n5[e5] = t6;
              }));
              else if (Array.isArray(t5)) for (e4 = 0, i4 = t5; e4 < i4.length; e4++) o3 = (r3 = i4[e4])[0], a2 = r3[1], n5["" + o3] = "" + a2;
              else if ("object" == typeof t5) for (o3 in t5) t5.hasOwnProperty(o3) && (a2 = t5[o3], n5[o3] = a2);
              return n5;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.RemoteDataTransport = void 0, e3("./node_modules/whatwg-fetch/fetch.js"), i3 = e3("./node_modules/fetch-jsonp/build/fetch-jsonp.js"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = null, a = void 0, u = "jsonp", s = "read", c = "create", f = "update", l = "delete", h = "Content-Type", d = (function() {
              function t5(t6) {
                var n5;
                this.LEt = v({}, t6);
              }
              return t5.prototype.getData = function(t6) {
                var n5 = this, e4 = this, o3 = e4.LEt[t6.requestType], s2 = t6.dataType, c2 = s2 === u ? i3 : fetch;
                return t6.requestData = a, t6.requestType = a, (0, r2.isFunction)(o3) ? o3(t6) : c2(t6.url, t6).then((function(t7) {
                  if (!t7.ok) throw t7;
                  return n5.AOt(s2) ? t7.json() : t7.text();
                }));
              }, t5.prototype.postData = function(t6) {
                var n5 = this, e4 = this, i4 = e4.LEt[t6.requestType], o3 = t6.dataType, u2 = t6.requestData;
                return t6.requestData = a, t6.requestType = a, (0, r2.isFunction)(i4) ? i4(u2, t6) : fetch(t6.url, t6).then((function(t7) {
                  if (!t7.ok) throw t7;
                  return n5.AOt(o3) ? t7.json() : t7.text();
                }));
              }, t5.prototype.AOt = function(t6) {
                return void 0 === t6 || "json" === t6 || t6 === u;
              }, t5.prototype.setupRequestOptions = function(t6, n5) {
                var e4, i4, r3, o3, a2, d2, g, m;
                if (t6 = t6 || {}, i4 = (e4 = this).LEt[n5]) return r3 = i4.body, (o3 = t6.body) ? (t6.headers = t6.headers || {}, e4.LEt.dataConverter ? (t6.body = o3 = e4.LEt.dataConverter(o3, n5 || s), t6.headers[h] = "application/plain;") : (t6.body = "string" == typeof o3 ? o3 : JSON.stringify(o3), t6.headers[h] = "application/json; charset=utf-8")) : r3 && (t6.body = "string" == typeof r3 ? r3 : JSON.stringify(r3), t6.headers = {}, t6.headers[h] = "application/json; charset=utf-8"), g = i4.method, n5 === s ? (i4.dataType === u && (a2 = { mode: "no-cors" }), d2 = { method: g || "GET" }) : n5 === c || n5 === f || "batch" === n5 ? d2 = { method: g || "POST" } : n5 === l && (d2 = { method: g || "DELETE" }), (m = i4.options) && m.mode && (a2 = { mode: m.mode }), m && Object.keys(m).length > 0 || (m = {}), m.headers && t6.headers && p(m.headers, t6.headers), v(v(v(v(v(v({}, i4), d2), a2), m), t6), { requestType: n5, requestData: o3 });
              }, t5;
            })(), n4.RemoteDataTransport = d;
          }, "./dist/src/dataSource/event.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            function s(t5, n5) {
              var e4 = t5 && t5.event;
              return e4 || (n5 && (e4 = t5.event = new a()), e4);
            }
            function c(t5, n5, e4, i4) {
              n5 instanceof a && (e4 ? n5.removeHandler(e4, i4 || t5) : n5.removeAllHandlers());
            }
            function f(t5, n5, e4, r3, a2) {
              if ((0, i3.isArray)(n5)) {
                (0, i3.isBoolean)(e4) && (a2 = e4, e4 = o2);
                for (var u2 = 0, s2 = n5.length; u2 < s2; u2++) l(n5[u2], (function(n6) {
                  c(t5, n6, e4, r3);
                }), a2, true);
              } else (0, i3.isBoolean)(e4) && (a2 = e4, e4 = o2), l(n5, (function(n6) {
                c(t5, n6, e4, r3);
              }), a2, true);
            }
            function l(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2, f2;
              if (t5 && n5) {
                if (o3 = n5(r3 = t5.event), a2 = null == r3 ? void 0 : r3.hasHandlers, i4 && !a2 && delete t5.event, false !== o3 && e4) for (s2 in u2 = t5.paths || {}) u2.hasOwnProperty(s2) && ((f2 = l(c2 = u2[s2], n5, e4, i4)) && (a2 = true), i4 && !f2 && delete u2[s2]);
                return !!i4 && a2;
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.EventManager = n4.Event = n4.EventHandler = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = /* @__PURE__ */ (function() {
              function t5(t6, n5, e4) {
                var i4 = this;
                i4.handler = t6, i4.owner = n5, i4.priority = e4;
              }
              return t5;
            })(), n4.EventHandler = r2, o2 = null, a = (function() {
              function t5() {
                this.IOt = [];
              }
              return Object.defineProperty(t5.prototype, "hasHandlers", { get: function() {
                return this.IOt.length > 0;
              }, enumerable: false, configurable: true }), t5.prototype.hasHandler = function(t6, n5) {
                return this.IOt.some((function(e4) {
                  return e4.handler === t6 && (!n5 || e4.owner === n5);
                }));
              }, t5.prototype.addHandler = function(t6, n5, e4) {
                void 0 === e4 && (e4 = 1);
                var i4 = this, o3 = new r2(t6, n5, e4);
                i4.IOt.push(o3), i4.sortHandlers();
              }, t5.prototype.removeHandler = function(t6, n5) {
                var e4, i4, r3 = this, o3 = r3.IOt, a2 = o3.length;
                for (e4 = 0; e4 < a2; e4++) if ((i4 = o3[e4]).handler === t6 && i4.owner === n5) {
                  r3.IOt.splice(e4, 1);
                  break;
                }
              }, t5.prototype.sortHandlers = function() {
                this.IOt.sort((function(t6, n5) {
                  var e4 = t6.priority, i4 = n5.priority;
                  return e4 < i4 ? 1 : e4 > i4 ? -1 : 0;
                }));
              }, t5.prototype.removeHandlersByPriority = function(t6) {
                var n5, e4, i4 = this, r3 = i4.IOt, a2 = r3.length, u2 = o2, s2 = o2;
                for (n5 = 0; n5 < a2; n5++) if ((e4 = r3[n5]).priority === t6) u2 === o2 && (u2 = n5), s2 = n5;
                else if (u2 !== o2) break;
                u2 !== o2 && s2 !== o2 && i4.IOt.splice(u2, s2 - u2 + 1);
              }, t5.prototype.removeAllHandlers = function() {
                this.IOt.length = 0;
              }, t5.prototype.raise = function(t6, n5) {
                var e4, i4, r3, a2, u2, s2 = false, c2 = function() {
                  s2 = true;
                };
                for (n5 === o2 ? n5 = { stopPropagation: c2 } : n5.stopPropagation = c2, i4 = (e4 = this).IOt.length, r3 = e4.IOt.slice(0, i4), a2 = 0; a2 < i4 && !s2; a2++) (u2 = r3[a2]).handler.call(u2.owner, t6, n5);
              }, t5;
            })(), n4.Event = a, u = (function() {
              function t5() {
                this._events = {};
              }
              return t5.prototype.bind = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2 = this;
                if (n5) for (o3 = 0, a2 = r3 = (0, i3.isArray)(t6) ? t6 : [t6]; o3 < a2.length; o3++) (s2 = n5[u2 = a2[o3]] || n5) && c2.D3(u2, s2, e4);
              }, t5.prototype.D3 = function(t6, n5, e4, r3) {
                var o3 = this, a2 = o3.NUr(t6, true);
                (0, i3.isFunction)(n5) || (e4 = n5.bindingThis || e4, r3 = n5.priority || r3), a2.addHandler(n5, e4 || o3, r3);
              }, t5.prototype.unbind = function(t6, n5, e4, r3) {
                var o3 = this;
                if ((0, i3.isNullOrUndefined)(t6)) return f(o3, { paths: o3._events }, n5, e4, true), void (o3._events = {});
                o3._3(t6, n5, e4, r3);
              }, t5.prototype._3 = function(t6, n5, e4, r3) {
                var o3 = this;
                o3.Sao(t6, false, (function(t7, a2) {
                  var u2, s2, c2, l2, h;
                  for (f(o3, t7, n5, e4, r3), u2 = a2.length - 1, s2 = -1; u2 > s2; u2--) if ((!(c2 = a2[u2]).event || !c2.event.hasHandlers) && (!c2.paths || (0, i3.isEmptyObject)(c2.paths))) for (h in l2 = u2 - 1 > s2 ? a2[u2 - 1].paths : o3._events) l2[h] === c2 && delete l2[h];
                }));
              }, t5.prototype.trigger = function(t6, n5) {
                var e4 = this, i4 = true;
                return l(e4.jUr(t6), (function(r3) {
                  if (r3 instanceof a && ((n5 = n5 || {}).cancel = false, n5.eventName = t6, r3.raise(e4, n5), n5.cancel)) return i4 = false, false;
                }), true), i4;
              }, t5.prototype.hasBound = function(t6, n5, e4) {
                var i4 = this, r3 = i4.NUr(t6);
                return r3 && r3.hasHandlers && (!n5 || r3.hasHandler(n5, e4 || i4));
              }, t5.prototype.Sao = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = a2._events, s2 = a2.Tao(t6);
                if (!s2) return u2;
                if (a2.xao(s2)) {
                  for (r3 in i4 = [], u2) u2.hasOwnProperty(r3) && (s2[0] = r3, (o3 = a2.Aao(s2, n5, e4)) && i4.push(o3));
                  return i4;
                }
                return a2.Aao(s2, n5, e4);
              }, t5.prototype.xao = function(t6) {
                return t6.length > 1 && "" === t6[0];
              }, t5.prototype.Tao = function(t6) {
                if (t6) {
                  var n5 = t6.split(".");
                  if (n5 && n5.length > 0) return n5;
                }
                return o2;
              }, t5.prototype.jUr = function(t6, n5) {
                var e4 = this, i4 = e4.Tao(t6);
                return i4 ? this.Aao(i4, n5) : e4._events;
              }, t5.prototype.Aao = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2 = this, f2 = c2._events, l2 = !!e4, h = [];
                for (r3 = 0, o3 = t6.length; r3 < o3; r3++) {
                  if (a2 = 0 === r3, u2 = t6[r3], s2 = a2 ? f2[u2] : f2.paths && f2.paths[u2], (0, i3.isNullOrUndefined)(s2)) {
                    if (!n5) return;
                    a2 ? f2[u2] = s2 = {} : ((0, i3.isNullOrUndefined)(f2.paths) && (f2.paths = {}), f2.paths[u2] = s2 = {});
                  }
                  f2 = s2, l2 && h.push(f2);
                }
                return l2 && e4(f2, h), f2;
              }, t5.prototype.NUr = function(t6, n5) {
                var e4;
                return s(this.jUr(t6, n5), n5);
              }, t5;
            })(), n4.EventManager = u;
          }, "./dist/src/dataSource/utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            function c(t5) {
              return t5 && !(0, n4.isArray)(t5) && "object" == typeof t5;
            }
            function f(t5) {
              if (c(t5)) {
                for (var n5 in t5) if (t5.hasOwnProperty(n5)) return true;
              }
              return false;
            }
            function l(t5) {
              return "function" == typeof t5;
            }
            function h(t5) {
              return "number" == typeof t5;
            }
            function d(t5) {
              return "boolean" == typeof t5;
            }
            function v(t5, e4) {
              var i4, r3, o3, a2, u2;
              if ((0, n4.isArray)(t5)) for (i4 = 0; i4 < t5.length; i4++) e4(t5[i4], i4, t5);
              else if (!j(t5)) for (o3 = 0, a2 = r3 = Object.keys(t5); o3 < a2.length; o3++) e4(t5[u2 = a2[o3]], u2, t5);
            }
            function p(t5, e4) {
              var i4, r3, o3, a2, u2;
              if ((0, n4.isArray)(t5)) for (i4 = t5.length - 1; i4 >= 0; i4--) e4(t5[i4], i4, t5);
              else for ((r3 = Object.keys(t5)).reverse(), o3 = 0, a2 = r3; o3 < a2.length; o3++) e4(t5[u2 = a2[o3]], u2, t5);
            }
            function g(t5) {
              return Object.keys(t5);
            }
            function m(t5, e4, i4) {
              if ((0, n4.isArray)(t5)) return t5.reduce(e4, i4);
              throw new Error("NOT SUPPORT");
            }
            function b(t5, n5, e4) {
              return void 0 === e4 && (e4 = 0), t5.indexOf(n5, e4);
            }
            function y(t5, n5) {
              for (var e4 = 0, i4 = t5.length; e4 < i4; e4++) if (n5(t5[e4], e4, t5)) return e4;
              return -1;
            }
            function w(t5, e4) {
              var i4, r3, o3, a2, u2, s2, c2;
              if (void 0 === e4 && (e4 = false), null == t5 || "object" != typeof t5) return t5;
              if (t5 && (0, n4.isArray)(t5)) return t5.map((function(t6) {
                return w(t6, e4);
              }));
              if (t5 && "object" == typeof t5) {
                for (i4 = {}, o3 = 0, a2 = r3 = Object.keys(t5); o3 < a2.length; o3++) s2 = t5[u2 = a2[o3]], e4 ? (c2 = L(s2), i4[u2] = "object" === c2 || "array" === c2 ? w(s2, e4) : s2) : i4[u2] = s2;
                return i4;
              }
              return t5;
            }
            function M(t5, e4) {
              return void 0 === e4 && (e4 = false), (0, n4.isArray)(t5) && !e4 ? t5.slice() : w(t5, e4);
            }
            function C(t5, e4, i4, r3) {
              var o3, a2, u2, s2, c2, f2;
              if (void 0 === i4 && (i4 = false), void 0 === r3 && (r3 = false), !j(t5) && !j(e4)) {
                if (t5 instanceof Blob || e4 instanceof Blob) return t5 === e4;
                if (t5 instanceof Date && e4 instanceof Date) return t5.valueOf() === e4.valueOf();
                if (i4) {
                  if ((0, n4.isArray)(t5) && (0, n4.isArray)(e4)) {
                    if (t5.length === e4.length) {
                      for (o3 = 0; o3 < t5.length; o3++) if (!C(t5[o3], e4[o3], i4, r3)) return false;
                      return true;
                    }
                  } else if ("object" == typeof t5 && "object" == typeof e4 && (a2 = Object.keys(t5).filter((function(t6) {
                    return !r3 || "_" !== t6[0];
                  })), u2 = Object.keys(e4).filter((function(t6) {
                    return !r3 || "_" !== t6[0];
                  })), a2.length === u2.length)) {
                    for (s2 = 0, c2 = a2; s2 < c2.length; s2++) if (f2 = c2[s2], !e4.hasOwnProperty(f2) || !C(t5[f2], e4[f2], r3)) return false;
                    return true;
                  }
                }
              }
              return t5 === e4;
            }
            function S(t5, n5) {
              return !C(t5, n5, true);
            }
            function T(t5, n5) {
              var e4, i4, r3;
              for (void 0 === t5 && (t5 = []), void 0 === n5 && (n5 = []), e4 = {}, i4 = Math.min(t5.length, n5.length), r3 = 0; r3 < i4; r3++) e4[t5[r3]] = n5[r3];
              return e4;
            }
            function x(t5) {
              return "string" == typeof t5;
            }
            function A(t5, n5) {
              var e4, i4, r3, o3;
              if (x(n5)) return t5[n5];
              for (e4 = {}, i4 = 0, r3 = n5; i4 < r3.length; i4++) e4[o3 = r3[i4]] = t5[o3];
              return e4;
            }
            function I(t5, e4) {
              if ((0, n4.isArray)(t5)) return t5.map(e4);
              throw new Error("NOT SUPPORT");
            }
            function k(t5) {
              return void 0 === t5;
            }
            function N(t5) {
              return null === t5;
            }
            function j(t5) {
              return null == t5;
            }
            function D(t5) {
              return "" === t5 || j(t5);
            }
            function _(t5) {
              if (t5 && "object" == typeof t5) {
                for (var n5 in t5) if (t5.hasOwnProperty(n5)) return false;
              }
              return true;
            }
            function O(t5) {
              return t5 && "=" === t5[0];
            }
            function E(t5) {
              return !x(t5) && x(t5.name) && !O(t5.name) && "formula" === t5.dataType;
            }
            function R(t5) {
              return t5 && t5.indexOf(".") > -1 && !O(t5);
            }
            function L(t5) {
              var n5;
              return Object.prototype.toString.call(t5).match(/\[\w+\s(\w+)\]/)[1].toLowerCase();
            }
            function F(t5, n5, e4, i4) {
              n5 < 0 || n5 > t5.length || e4 < 0 || e4 > t5.length || n5 === e4 || i4 <= 0 || t5.splice.apply(t5, s([e4 - (n5 < e4 ? i4 - 1 : 0), 0], t5.splice(n5, i4), false));
            }
            function B(t5, n5) {
              var e4 = t5.parent;
              e4 && (n5(e4), B(e4, n5));
            }
            function P(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2 = t5[i4 || "children"] || [];
              for (D(e4) ? r3 = v2.slice() : (u2 = void 0, s2 = void 0, "string" == typeof e4 ? o3 = e4 : "function" == typeof e4 ? a2 = e4 : "object" == typeof e4 && (o3 = e4.field, a2 = e4.getValue, u2 = e4.compareFn, s2 = e4.isOrderChildren), r3 = s2 ? v2 : v2.slice(), o3 ? r3.sort((function(t6, n6) {
                return t6[o3] - n6[o3];
              })) : a2 ? r3.sort((function(t6, n6) {
                return a2(t6) - a2(n6);
              })) : u2 && r3.sort(u2)), c2 = n5, "object" == typeof n5 && (c2 = n5.invoking, f2 = n5.invoked), h2 = 0; h2 < r3.length; h2++) {
                if (d2 = r3[h2], c2 && (l2 = c2(d2, t5)) && l2.cancel) return l2;
                if (l2 && l2.cancelDeepRecursion || (l2 = P(d2, n5, e4, i4)), l2 && l2.cancel) return l2;
                if (f2 && (l2 = f2(d2, t5)) && l2.cancel) return l2;
              }
            }
            function G(t5) {
              return t5;
            }
            function U(t5) {
              return void 0 === t5 && (t5 = 0), new Promise((function(n5, e4) {
                setTimeout((function() {
                  n5("timeout");
                }), t5);
              }));
            }
            function H(t5) {
              var n5 = t5.callback, e4 = t5.timeout, i4 = void 0 === e4 ? 5e3 : e4, r3 = t5.retryCount, o3 = void 0 === r3 ? 1 : r3;
              return Promise.race([n5(), U(i4)]).then((function(t6) {
                if ("timeout" === t6) {
                  if (o3 > 0) return --o3, H({ callback: n5, retryCount: o3 });
                  throw "timeout";
                }
                return Promise.resolve(t6);
              }));
            }
            function V(t5, n5) {
              return z(t5.map((function(t6) {
                return function() {
                  return new Promise(t6);
                };
              })), n5);
            }
            function z(t5, n5) {
              var e4 = [];
              return t5.reduce((function(t6, i4) {
                return t6.then((function(t7) {
                  return e4.push(Promise.resolve(t7)), n5 ? H({ callback: i4, timeout: n5.timeout, retryCount: n5.retryCount }) : i4();
                }));
              }), Promise.resolve({})).then((function(t6) {
                return e4.shift(), e4.push(Promise.resolve(t6)), Promise.all(e4);
              }));
            }
            function Y(t5, n5, e4) {
              var i4 = { syncDone: false, asyncCount: 0, args: void 0, succeededArgs: void 0, failedArgs: void 0, completedArgs: void 0, isFailedInvoked: false, chains: [], isChainSyncInvoked: false, onSucceeded: t5, onFailed: n5, onCompleted: e4, onThens: [], invoke: function t6() {
                var n6, e5, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2;
                if (i4.chains.length > 0 && !i4.isChainSyncInvoked) {
                  for (i4.isChainSyncInvoked = true, u2 = function(t7, r4) {
                    var o4 = a2.shift(), u3 = o4[0], s3 = o4[1], c3 = s3.succeed, f3 = s3.fail, l3 = false;
                    if (u3(null !== (e5 = null !== (n6 = i4.completedArgs) && void 0 !== n6 ? n6 : i4.succeededArgs) && void 0 !== e5 ? e5 : i4.failedArgs, (function(t8) {
                      l3 = true, c3(t8);
                    }), (function(t8) {
                      l3 = true, f3(t8);
                    })), !l3) return "break";
                  }, s2 = 0, c2 = (a2 = i4.chains).length; s2 < c2 && "break" !== (f2 = u2(s2, c2)); s2++) ;
                  i4.isChainSyncInvoked = false;
                } else if (0 === i4.asyncCount && i4.syncDone) {
                  if ((l2 = i4.onThens.length) > 0) {
                    for (h2 = i4.onThens, d2 = 0; d2 < l2; d2++) if (v2 = h2[d2][0]) try {
                      i4.succeededArgs = v2(i4.succeededArgs);
                    } catch (t7) {
                      for (p2 = false, g2 = d2 + 1; g2 < l2; g2++) if ((m2 = h2[g2]) && (b2 = m2[1])) try {
                        i4.succeededArgs = b2(t7), p2 = true, d2 = g2;
                        break;
                      } catch (n7) {
                        t7 = n7;
                      }
                      if (!p2) {
                        i4.isFailedInvoked = true, i4.failedArgs = t7;
                        break;
                      }
                    }
                    i4.onThens = [];
                  }
                  i4.isFailedInvoked ? i4.onFailed && i4.onFailed(i4.failedArgs) : i4.onSucceeded && i4.onSucceeded(i4.succeededArgs), i4.onCompleted && i4.onCompleted(null !== (o3 = null !== (r3 = i4.completedArgs) && void 0 !== r3 ? r3 : i4.succeededArgs) && void 0 !== o3 ? o3 : i4.failedArgs), i4.onFailed = void 0, i4.onSucceeded = void 0, i4.onCompleted = void 0;
                }
              }, execute: function t6(n6) {
                return n6 && (i4.onCompleted = n6), i4.syncDone = true, i4.invoke(), i4;
              }, append: function t6(n6) {
                i4.chains.push([function(t7, e5, i5) {
                  n6(e5, i5, t7);
                }, i4.suspend()]);
              }, appendPromiseLike: function t6(n6) {
                i4.chains.push([function(t7, e5, i5) {
                  var r3 = n6(t7);
                  r3 && r3.then ? r3.then(e5, i5) : e5(r3);
                }, i4.suspend()]);
              }, suspend: function t6() {
                return i4.asyncCount++, { succeed: function t7(n6) {
                  i4.succeededArgs = n6, i4.resume();
                }, fail: function t7(n6) {
                  i4.isFailedInvoked = true, i4.failedArgs = n6, i4.resume();
                }, completed: function t7(n6) {
                  i4.completedArgs = n6, i4.resume();
                } };
              }, resume: function t6() {
                i4.asyncCount--, i4.invoke();
              }, then: function(t6, n6) {
                var e5 = [];
                return t6 && (e5[0] = t6), n6 && (e5[1] = n6), e5.length > 0 && i4.onThens.push(e5), 0 === i4.asyncCount && i4.syncDone && i4.invoke(), i4;
              } };
              return i4;
            }
            function Z(t5) {
              return "string" == typeof t5 && ("=" === t5.charAt(0) || t5.indexOf("{{") >= 0 && t5.indexOf("}}") >= 0);
            }
            function W(t5) {
              return !j(t5._error || t5._code);
            }
            function Q(t5) {
              if (j(t5)) return t5;
              var n5 = t5._error || t5._code;
              return j(n5) ? t5 : n5;
            }
            function K(t5, n5) {
              var e4, s2, c2, f2, l2;
              if (j(t5) || "" === t5) return "";
              if (e4 = Z(n5), !n5 || "General" === n5 || e4) return "boolean" == typeof t5 || t5 instanceof Boolean ? (r2 && (t5 = t5 ? r2.getBoolean().boolean_true : r2.getBoolean().boolean_false), t5.toString().toUpperCase()) : t5 instanceof Date ? (c2 = (s2 = o2.Fe(o2.culture()).DateTimeFormat).shortDatePattern, 0 === t5.getHours() && 0 === t5.getMinutes() && 0 === t5.getSeconds() && 0 === t5.getMilliseconds() || (c2 = s2.defaultDatePattern), u.Pe(t5, c2)) : ("number" == typeof t5 && (t5 = a.Ge(t5.toString())), t5.toString());
              try {
                return (f2 = i3.Formatter && i3.Formatter.GeneralFormatter) ? (l2 = null, (l2 = "string" == typeof n5 ? new f2(n5) : n5).format(t5, {})) : t5.toString();
              } catch (n6) {
                return t5.toString();
              }
            }
            function J(t5, n5) {
              var e4, i4;
              if (j(t5) || j(n5)) return t5;
              for (e4 = n5.split("."); e4.length > 0; ) t5 = t5[i4 = e4.shift()];
              return t5;
            }
            function X(t5) {
              var n5, e4, i4, r3, o3;
              if (t5 && t5.length > 0) {
                for (n5 = {}, e4 = [], i4 = 0, r3 = t5; i4 < r3.length; i4++) n5[o3 = r3[i4]] || (n5[o3] = true, e4.push(o3));
                return e4;
              }
              return t5;
            }
            function q(t5, n5, e4) {
              var i4, r3, o3, a2, u2;
              if (t5) {
                if (e4) for (i4 = 0, r3 = n5.length; i4 < r3; i4++) (o3 = t5.indexOf(n5[i4])) > -1 && t5.splice(o3, 1);
                for (a2 = function(e5, i5) {
                  var r4 = t5[e5], o4 = n5.reduce((function(t6, n6) {
                    return n6 < r4 ? t6 + 1 : t6;
                  }), 0);
                  o4 > 0 && (t5[e5] -= o4);
                }, i4 = 0, u2 = t5.length; i4 < u2; i4++) a2(i4, u2);
              }
            }
            function $(t5, n5) {
              var e4, i4, r3;
              if (t5) for (e4 = 0, i4 = t5.length; e4 < i4; e4++) n5 <= (r3 = t5[e4]) && (t5[e4] += 1);
            }
            function tt(t5, n5, e4) {
              $(t5, e4), t5.splice(n5, 0, e4);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.insertIntoIndex = n4.fixInsertIndexes = n4.removeIndexes = n4.getUniqueArray = n4.q$ = n4.format = n4.formatCalcError = n4.isCalcError = n4.useSerialExecutor = n4.lastCallback = n4.promiseAllSerial = n4.promiseSerialExecute = n4.traversalTree = n4.bubbleTree = n4.swapArrayItems = n4.getActualType = n4.isRelation = n4.isNamedFormulaColumn = n4.isFormula = n4.isEmptyObject = n4.isNullOrEmpty = n4.isNullOrUndefined = n4.isNull = n4.isUndefined = n4.map = n4.pick = n4.isString = n4.zipObject = n4.isNotDeepEqual = n4.isEqual = n4.cloneArray = n4.clone = n4.findIndex = n4.indexOf = n4.reduce = n4.getObjectKeys = n4.forEachRight = n4.forEach = n4.isBoolean = n4.isNumber = n4.isFunction = n4.isObjectWithKey = n4.isObject = n4.isArray = void 0, i3 = e3("Common"), r2 = e3("CalcEngine"), o2 = i3.Common.CultureManager, a = i3.Common.st, u = i3.Common.ct, n4.isArray = i3.Common.lt.Nh, n4.isObject = c, n4.isObjectWithKey = f, n4.isFunction = l, n4.isNumber = h, n4.isBoolean = d, n4.forEach = v, n4.forEachRight = p, n4.getObjectKeys = g, n4.reduce = m, n4.indexOf = b, n4.findIndex = y, n4.clone = w, n4.cloneArray = M, n4.isEqual = C, n4.isNotDeepEqual = S, n4.zipObject = T, n4.isString = x, n4.pick = A, n4.map = I, n4.isUndefined = k, n4.isNull = N, n4.isNullOrUndefined = j, n4.isNullOrEmpty = D, n4.isEmptyObject = _, n4.isFormula = O, n4.isNamedFormulaColumn = E, n4.isRelation = R, n4.getActualType = L, n4.swapArrayItems = F, n4.bubbleTree = B, n4.traversalTree = P, n4.promiseSerialExecute = V, n4.promiseAllSerial = z, n4.lastCallback = Y, n4.useSerialExecutor = Y, n4.isCalcError = W, n4.formatCalcError = Q, n4.format = K, n4.q$ = J, n4.getUniqueArray = X, n4.removeIndexes = q, n4.fixInsertIndexes = $, n4.insertIntoIndex = tt;
          }, "./dist/src/interfaces/conditionalFormatOptions.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.c = void 0, n4.c = 0;
          }, "./dist/src/interfaces/interface.js": function(t4, n4) {
            "use strict";
            var e3, i3, r2, o2;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.RelationshipMap = n4.RowColumnStates = n4.StateRuleDirection = n4.ViewArea = n4.DEFAULT_VIEW_NAME = void 0, n4.DEFAULT_VIEW_NAME = "defaultView", (function(t5) {
              t5[t5.colHeader = 1] = "colHeader", t5[t5.viewport = 3] = "viewport";
            })(e3 = n4.ViewArea || (n4.ViewArea = {})), (function(t5) {
              t5[t5.none = 0] = "none", t5[t5.row = 1] = "row", t5[t5.column = 2] = "column", t5[t5.both = 3] = "both";
            })(i3 = n4.StateRuleDirection || (n4.StateRuleDirection = {})), (function(t5) {
              t5[t5.hover = 1] = "hover", t5[t5.readonly = 4] = "readonly", t5[t5.active = 16] = "active", t5[t5.selected = 32] = "selected", t5[t5.dirty = 64] = "dirty", t5[t5.inserted = 128] = "inserted", t5[t5.updated = 256] = "updated", t5[t5.pin = 1024] = "pin", t5[t5.primaryKey = 2048] = "primaryKey", t5[t5.required = 4096] = "required";
            })(r2 = n4.RowColumnStates || (n4.RowColumnStates = {})), (function(t5) {
              t5[t5.OneToOne = 0] = "OneToOne", t5[t5.OneToMany = 1] = "OneToMany";
            })(o2 = n4.RelationshipMap || (n4.RelationshipMap = {}));
          }, "./dist/src/interfaces/styleOptions.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.s = void 0, n4.s = 0;
          }, "./dist/src/interfaces/validatorOptions.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.v = void 0, n4.v = 0;
          }, "./dist/src/polyfills/from-entries.js": function() {
            var t4 = this && this.iJr || function(t5, n5, e3) {
              if (e3 || 2 === arguments.length) for (var i3 = 0, r2 = n5.length, o2; i3 < r2; i3++) !o2 && i3 in n5 || (o2 || (o2 = Array.prototype.slice.call(n5, 0, i3)), o2[i3] = n5[i3]);
              return t5.concat(o2 || Array.prototype.slice.call(n5));
            };
            function n4(n5) {
              return t4([], n5, true).reduce((function(t5, n6) {
                var e3 = n6[0], i3 = n6[1];
                return t5[e3] = i3, t5;
              }), {});
            }
            Object.fromEntries || (Object.fromEntries = n4);
          }, "./dist/src/query.js": function(t4, n4, e3) {
            "use strict";
            var i3;
            Object.defineProperty(n4, "__esModule", { value: true }), e3("./dist/src/dataManager.js").DataManager.prototype.query = function(t5, n5) {
              var e4, i4 = this.U0r;
              return i4.ndr(n5), i4.query(t5);
            };
          }, "./dist/src/query/query-helper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.QueryHelper = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/view/view.entry.js"), o2 = e3("./dist/src/query/utils/table-utils.js"), a = e3("./dist/src/query/utils/query-utils.js"), u = e3("./dist/src/query/utils/window-function-utils.js"), s = e3("./dist/src/query/utils/filter-utils.js"), c = e3("./dist/src/query/utils/sort-utils.js"), f = e3("./dist/src/query/utils/group-utils.js"), l = e3("./dist/src/dataSource/utils.js"), h = e3("./dist/src/viewField/viewField.entry.js"), d = e3("./dist/src/query/utils/query-cache.js"), v = void 0, p = (function() {
              function t5(t6) {
                this.Kwr = new d.QueryCache(), this.Kwr.xTr(t6), this.N3 = t6, this.H0r = new i3.CalcSource(t6.Lp), this.z0r = {}, this.V0r = {}, this.ddr = {}, this.aGr = [];
              }
              return t5.prototype.query = function(t6) {
                var n5, e4, r3, o3, a2, u2 = this.ndr();
                return "string" == typeof t6 ? n5 = (0, l.clone)(this.N3.queries[t6], true) : (n5 = (0, l.clone)(t6, true), t6.name && (this.N3.queries || (this.N3.queries = {}), this.N3.queries[t6.name] = t6)), e4 = JSON.parse(JSON.stringify(n5)), (r3 = this.Kwr.ev(e4)) ? r3 : (o3 = i3.Functions.CALC_PRECISION, i3.Functions.CALC_PRECISION = null == u2 ? void 0 : u2.calcPrecision, a2 = this.Y0r(n5), this.Z0r(), i3.Functions.CALC_PRECISION = o3, this.Kwr.Xwr(e4, a2), this.dkr(), a2);
              }, t5.prototype.dkr = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2, s2, c2;
                for (t6 in this.z0r = {}, this.ddr) this.ddr.hasOwnProperty(t6) && (e4 = (n5 = this.ddr[t6]).table, i4 = n5.column, (r3 = e4.columns[t6]) && r3 === i4 && delete e4.columns[t6]);
                for (this.ddr = {}, o3 = 0, a2 = this.aGr; o3 < a2.length; o3++) e4 = (u2 = a2[o3]).table, s2 = u2.groupKey, (c2 = null == e4 ? void 0 : e4._dataSource._data) && c2.hasOwnProperty(s2) && delete c2[s2];
                this.aGr = [];
              }, t5.prototype.qwr = function(t6) {
                this.Kwr.d5(t6);
              }, t5.prototype.ndr = function(t6) {
                return arguments.length > 0 && (this.edr = t6), this.edr;
              }, t5.prototype.Z0r = function() {
                var t6, n5, e4 = this.N3, i4 = this.V0r, r3 = e4.tables;
                for (t6 in i4) i4.hasOwnProperty(t6) && (n5 = r3[t6]) && (delete n5.W0r, delete n5.Q0r);
                this.V0r = {};
              }, t5.prototype.Y0r = function(t6, n5) {
                var e4, i4, s2, f2, h2, d2, p2, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K = this.N3, J = K.tables[t6.from];
                if (J) {
                  for (e4 = false, t6.unpivot && (e4 = true, J._dataSource.rse = J._dataSource._data, J.fetchSync(t6.unpivot)), this.V0r[J.name] = true, i4 = null == n5 ? void 0 : n5.recordInIndexMap, f2 = (s2 = (0, a.K0r)(t6, [], J)).selectFields, h2 = s2.selectFieldValueCaptionMap, d2 = s2.calculateColumns, p2 = s2.windows, g = s2.limit, m = s2.skip, b = s2.groupInfos, y = s2.sortInfos, w = p2, p2 && Object.keys(p2).length > 0 && (M = (C = J._dataSource.options.schema) && C.window, (0, u.setWindowDefOption)(J, w)), S = 0, T = d2.length; S < T; S++) A = (x = d2[S]).caption, I = x.value, J.columns[A] = { caption: A, value: I }, this.ddr[A] = { table: J, column: J.columns[A] }, J.rRt(A);
                  if (k = (0, r2.ose)(J), N = Object.keys(f2).filter((function(t7) {
                    return J.PAe(t7);
                  })), y && y.length > 0 && b.length <= 0 && (0, u.addWindowFunctionFields)(N, y, J), (0, a.X0r)(K, t6, this.z0r, this.H0r), j = this.z0r[t6.q0r], D = this.$0r(t6, i4), _ = n5 || {}, O = [], N.length > 0 && (D = (0, u.afr)(N, J, k, D, j, this.ndr())), (null == y ? void 0 : y.length) > 0 && b.length <= 0 && (0, c.JFt)(J, k, v, y, D, v, v, j), (0, l.getObjectKeys)(f2).length > 0 && (E = this.sfr(J, f2, h2, g, m, D, j, !(!t6.nest || b && 0 !== b.length)), O = E = this.cfr(_, E, f2, n5)), (null == b ? void 0 : b.length) > 0) for (O = [], R = [].concat(D), L = 0, F = b; L < F.length; L++) {
                    for (B = F[L], G = (P = this.ffr(J, t6, B, y, D, j)).groupSelectData, U = P.groupTreeLeafNodes, this.lfr(_, G, B.groupByInfos), H = 0, V = U; H < V.length; H++) z = V[H], O.push(z);
                    (0, o2.getTableFieldManager)(J).reset(), D = [].concat(R);
                  }
                  if (Y = t6.nest) for (Y.hfr = t6, Y.from === v && (Y.from = t6.from), Z = 0, W = O; Z < W.length; Z++) Q = W[Z], this.Y0r(Y, Q), delete Q.recordRowNumbers, delete Q.recordInIndexMap;
                  return (0, u.resetWindowDefOption)(J, M), e4 && (J._dataSource._data = J._dataSource.rse, J.fetchSync(v, true)), _;
                }
              }, t5.prototype.queryRelationshipMap = function() {
                return this.z0r;
              }, t5.prototype.ffr = function(t6, n5, e4, i4, a2, d2) {
                var v2, p2, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J = this.ndr(), X = e4.groupByInfos, q = t6.name.toUpperCase(), $ = e4.groupSelectFields, tt = e4.groupCalculateInfos, nt = e4.groupFilterInfos, et = e4.groupSortInfos, it = e4.includeDetailRows, rt = (0, l.getObjectKeys)($), ot = (0, f.CFt)(t6, X, a2, d2, J), at = (0, o2.getTableFieldManager)(t6), ut = [], st = at.groupFieldKeys.map((function(t7) {
                  return at.getField(t7);
                })), ct = [], ft = [], lt = (0, f.vfr)(ot.rootNode, X.length), ht = lt.indexMap, dt = lt.queue;
                for (g = 0, m = ht.length; g < m; g++) {
                  for (b = dt[g], y = ht[g], w = d2[y][q], M = /* @__PURE__ */ new Map(), ft.push(w), C = 0, S = rt.length; C < S; C++) T = rt[C], (x = ut[C]) || (x = ut[C] = at.getFieldByName(T)), x && (A = x.getValue(w), (null == J ? void 0 : J.treatUndefinedAsNull) && void 0 === A && (A = null), M.set(T, A));
                  for (n5.nest && (M.set("recordRowNumbers", b.recordRowNumbers), M.set("recordInIndexMap", b.recordInIndexMap)), it && (null === (v2 = null == n5 ? void 0 : n5.Sfr) || void 0 === v2 ? void 0 : v2.idr) && M.set("$rows", b.recordInIndexMap), I = function(t7, n6) {
                    var e5, i5, o3, a3 = X[t7], u2 = a3.summaryFields;
                    if (null == u2 ? void 0 : u2.length) for (e5 = function(n7, e6) {
                      var i6, o4, a4, s2, c2, f2, l2 = u2[n7];
                      if (null == l2 ? void 0 : l2.slice) {
                        for (i6 = (0, r2.tse)(t7), o4 = l2.caption + "_" + l2.slice + i6, a4 = {}, p2 || (p2 = st.filter((function(e7) {
                          var i7 = (0, h.getGroupOptionIndexesFrom)(e7.name);
                          return 3 === i7.length && +i7[0] === t7 && +i7[1] === n7;
                        }))), s2 = 0, c2 = p2.length; s2 < c2; s2++) a4[(f2 = p2[s2]).extra.caption] = f2.getValue(w);
                        M.set(o4, a4);
                      }
                    }, i5 = 0, o3 = u2.length; i5 < o3; i5++) e5(i5, o3);
                  }, k = 0, N = X.length; k < N; k++) I(k, N);
                  j = Object.fromEntries(M.entries()), ct.push(j), (0, o2.gfr)(t6, j, w, this.aGr);
                }
                if (D = (0, c.hasGroupSorts)(et) || i4 && i4.length > 0, tt.length > 0 || nt.length > 0 || D) {
                  for (_ = [], O = 0, E = tt; O < E.length; O++) for (L = (R = E[O]).caption, F = R.value, t6.columns[L] = { caption: L, value: F }, this.ddr[L] = { table: t6, column: t6.columns[L] }, t6.rRt(L), P = 0, G = B = t6.GAe(R.value); P < G.length; P++) U = G[P], _.push(U);
                  for (nt.length > 0 && (H = (0, f.mfr)(nt), V = (0, s.fFt)(t6, H, ft), z = [], ct = V.map((function(t7) {
                    var n6 = ft.indexOf(t7);
                    return z.push(ht[n6]), ct[n6];
                  })), ht = z, ft = V), (0, c.hasGroupSorts)(et) ? (0, u.addWindowFunctionFields)(_, et.reduce((function(t7, n6) {
                    return t7.concat(n6);
                  }), []), t6) : i4 && i4.length > 0 && (0, u.addWindowFunctionFields)(_, i4, t6), Y = (0, r2.ose)(t6), Z = (0, u.afr)(_, t6, Y, ht, d2, J), W = [], ct = Z.map((function(t7, n6) {
                    var e5 = ht.indexOf(t7);
                    return W[n6] = ft[e5], ct[e5];
                  })), ft = W, g = 0, m = ct.length; g < m; g++) for (b = ct[g], w = ft[g], C = 0, S = tt.length; C < S; C++) L = (Q = tt[C]).caption, F = Q.value, b[L] = t6._getValueByField(F, w);
                  return K = (0, f.pfr)(ct, X), ((0, c.hasGroupSorts)(et) || i4 && i4.length > 0) && (0, c.bfr)(K.groupSelectData, X, et, i4), K;
                }
                return (0, f.pfr)(ct, X);
              }, t5.prototype.sfr = function(t6, n5, e4, i4, r3, o3, a2, u2) {
                var s2, c2, f2, l2, h2, d2, v2, p2, g, m, b, y;
                if (void 0 === i4 && (i4 = 0), void 0 === r3 && (r3 = 0), f2 = o3, l2 = t6.name.toUpperCase(), a2 && (f2 = o3.map((function(t7) {
                  return a2[t7][l2];
                }))), h2 = [], d2 = f2.length, i4 >= 0) for (v2 = r3, p2 = 0 === i4 ? d2 : Math.min(r3 + i4, d2); v2 < p2; v2++) {
                  for (m in g = /* @__PURE__ */ new Map(), n5) n5.hasOwnProperty(m) && (b = null !== (s2 = e4[m]) && void 0 !== s2 ? s2 : m, g.set(b, t6._getValueByField(m, f2[v2])));
                  u2 && g.set("recordRowNumbers", [o3[v2]]), h2.push(Object.fromEntries(g.entries()));
                }
                else for (v2 = d2 - 1 - r3, y = Math.max(0, d2 + i4 - r3); v2 >= y; v2--) {
                  for (m in g = /* @__PURE__ */ new Map(), n5) n5.hasOwnProperty(m) && (b = null !== (c2 = e4[m]) && void 0 !== c2 ? c2 : m, g.set(b, t6._getValueByField(m, f2[v2])));
                  u2 && g.set("recordRowNumbers", [o3[v2]]), h2.push(Object.fromEntries(g.entries()));
                }
                return h2;
              }, t5.prototype.cfr = function(t6, n5, e4, i4) {
                return t6.$r = n5, n5;
              }, t5.prototype.lfr = function(t6, n5, e4) {
                var i4, r3, o3 = (null === (i4 = e4[0]) || void 0 === i4 ? void 0 : i4.caption) || (null === (r3 = e4[0]) || void 0 === r3 ? void 0 : r3.field);
                t6[o3] = n5;
              }, t5.prototype.$0r = function(t6, n5) {
                var e4 = this.z0r, i4 = t6.q0r, r3 = t6.hfr, a2 = null == r3 ? void 0 : r3.q0r, u2 = e4[i4], s2 = e4[a2];
                return n5 ? u2 && s2 ? i4 === a2 ? n5 : [] : void 0 : (0, o2.gFt)(u2.length);
              }, t5;
            })(), n4.QueryHelper = p;
          }, "./dist/src/query/utils/filter-utils.js": function(t4, n4, e3) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.wfr = n4.fFt = void 0;
            var i3 = e3("./dist/src/dataManager.entry.js");
            function r2(t5, n5, e4) {
              return (0, i3.isNullOrEmpty)(n5) ? e4.slice() : "string" == typeof n5 ? o2(t5, t5.Ywt(n5, 0, 0), e4) : [];
            }
            function o2(t5, n5, e4, i4) {
              var r3, o3, a = [], u = 0;
              for (r3 = i4 || 0; r3 < e4.length; r3++) o3 = e4[r3], true === t5.nMt(n5, o3, 0) && (a[u] = o3, u++);
              return a;
            }
            n4.fFt = r2, n4.wfr = o2;
          }, "./dist/src/query/utils/group-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u;
            function s(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c2, f2, l2, h2, d2;
              if (n5 && (i4 = (0, r2.getObjectKeys)(n5)).length > 0) for (o3 = 0, a2 = i4; o3 < a2.length; o3++) s2 = n5[u2 = a2[o3]], (0, r2.isFormula)(s2) && t5 === u2 && (t5 = s2);
              if (e4 && (c2 = (0, r2.getObjectKeys)(e4)).length > 0) for (f2 = 0, l2 = c2; f2 < l2.length; f2++) d2 = e4[h2 = l2[f2]], (0, r2.isFormula)(d2) && t5 === h2 && (t5 = d2);
              return t5;
            }
            function c(t5, n5, e4, i4, r3) {
              var a2 = (0, o2.getTableFieldManager)(t5), u2 = (0, o2.getTableGroupManager)(t5), s2 = t5.name.toUpperCase(), c2 = [], l2 = e4.map((function(t6) {
                var n6 = i4[t6][s2];
                return c2[n6] = t6, n6;
              })), h2 = a2.buildGroupFields(n5, l2), d2 = f(t5, n5, 0, e4, i4, r3), v2 = { childrenArray: [d2] }, p2 = [];
              return p2 = u2.eLt(e4, (function() {
                return u2.iLt(h2, v2);
              })).map((function(t6) {
                return c2[t6];
              })), a2.transposeSliceFields(h2), { rootNode: v2, newIndexMap: p2 };
            }
            function f(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, h2, d2, v2 = /* @__PURE__ */ new Map(), p2 = n5[e4], g2 = l(t5, v2, n5, e4, i4, r3, o3);
              if (++e4 < n5.length || (null === (a2 = p2.summaryFields) || void 0 === a2 ? void 0 : a2.length)) for (s2 = function(i5) {
                (null === (u2 = p2.summaryFields) || void 0 === u2 ? void 0 : u2.length) && (i5.slices = [], p2.summaryFields.forEach((function(n6, e5) {
                  var a3, u3, s3;
                  n6.slice && (a3 = { field: n6.slice }, u3 = /* @__PURE__ */ new Map(), s3 = l(t5, u3, [a3], 0, i5.recordInIndexMap, r3, o3), i5.slices[e5] = { childrenArray: [s3] });
                }))), e4 < n5.length && (i5.childrenArray = [f(t5, n5, e4, i5.recordInIndexMap, r3, o3)]);
              }, c2 = 0, h2 = g2; c2 < h2.length; c2++) s2(d2 = h2[c2]);
              return g2;
            }
            function l(t5, n5, e4, r3, o3, s2, c2) {
              var f2, l2 = [], h2 = null == c2 ? void 0 : c2.treatUndefinedAsNull, d2 = e4[r3], v2 = t5.name.toUpperCase(), p2 = d2.field, g2 = d2.ascending === a ? a : d2.ascending ? "asc" : "desc", m2 = s2 ? o3.map((function(t6) {
                return s2[t6][v2];
              })) : o3;
              return m2.forEach((function(e5, i4) {
                var r4, a2 = t5._getValueByField(p2, e5);
                h2 && void 0 === a2 && (a2 = null), (r4 = n5.get(a2 + "")) || (r4 = { value: a2, recordRowNumbers: [], recordInIndexMap: [] }, n5.set(a2 + "", r4), l2.push(r4)), r4.recordRowNumbers.push(e5), r4.recordInIndexMap.push(o3[i4]);
              })), g2 && (f2 = "desc" === g2, l2.sort((function(t6, n6) {
                var e5 = t6.value, r4 = n6.value, o4 = null == e5 || "" === e5 || typeof e5 === u && isNaN(e5), a2 = null == r4 || "" === r4 || typeof r4 === u && isNaN(r4);
                return o4 || a2 ? o4 && a2 ? 0 : o4 && !a2 ? f2 ? -1 : 1 : !o4 && a2 ? f2 ? 1 : -1 : void 0 : (0, i3.isGreaterThan)(r4, e5) ? -1 : 1;
              }))), l2;
            }
            function h(t5, n5) {
              for (var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = [t5], v2 = 0; v2 < n5; ) {
                for (e4 = [], i4 = 0, r3 = d2.length; i4 < r3; i4++) if ((o3 = d2[i4]).childrenArray && o3.childrenArray[0]) for (a2 = 0, u2 = o3.childrenArray[0]; a2 < u2.length; a2++) s2 = u2[a2], e4.push(s2);
                v2++, d2 = e4;
              }
              for (c2 = [], f2 = 0, l2 = d2; f2 < l2.length; f2++) h2 = l2[f2], c2.push(h2.recordInIndexMap[0]);
              return { indexMap: c2, queue: d2 };
            }
            function d(t5) {
              var n5, e4, i4, r3, o3;
              if (0 === t5.length) return "";
              if (1 === t5.length) return t5[0];
              for (n5 = [], e4 = 0, i4 = t5; e4 < i4.length; e4++) o3 = "=" === (r3 = i4[e4])[0] ? r3.slice(1) : r3, n5.push(o3);
              return "=AND(" + n5.join(",") + ")";
            }
            function v(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2, f2, l2, h2, d2 = [].concat(t5);
              if (n5.length >= 2) {
                for (e4 = function(e5) {
                  var i5, o4, a3, u3, s3, c3, f3, l3, h3, d3, v2 = e5 === n5.length - 1, m2 = v2 ? ["$rows", "recordRowNumbers", "recordInIndexMap"] : n5[e5 + 1].field, b2 = [], y2 = n5[e5 - 1].caption || n5[e5 - 1].field, w = n5[e5].caption || n5[e5].field, M = n5[e5].summaryFields, C = M.map((function(t6) {
                    return t6.caption;
                  })), S = M.reduce((function(t6, n6) {
                    return n6.a_e && t6.push({ caption: n6.caption, summaryField: n6.u_e }), t6;
                  }), []), T = M.map((function(t6) {
                    var n6 = (0, r2.tse)(e5);
                    return t6.caption + "_" + t6.slice + n6;
                  })), x = function(t6) {
                    var n6 = (0, r2.tse)(e5);
                    return n6 ? t6.substring(0, t6.lastIndexOf(n6)) : t6;
                  };
                  for (i5 = 0, o4 = t5; i5 < o4.length; i5++) if (u3 = (a3 = o4[i5])[y2], 0 !== b2.length && p(b2[b2.length - 1], a3, n5, e5 - 1)) {
                    for (g(a3, C.concat(w, m2), T, x), h3 = 0, d3 = S; h3 < d3.length; h3++) a3[(l3 = d3[h3]).summaryField] = a3[l3.caption], delete a3[l3.caption];
                    b2[b2.length - 1][w].push(a3);
                  } else {
                    for (s3 = g(a3, C.concat(w, m2), T, x), c3 = 0, f3 = S; c3 < f3.length; c3++) a3[(l3 = f3[c3]).summaryField] = a3[l3.caption], delete a3[l3.caption];
                    s3[y2] = u3, s3[w] = [a3], b2.push(s3);
                  }
                  t5 = b2;
                }, i4 = n5.length - 1; i4 > 0; i4--) e4(i4);
                for (a2 = (o3 = n5[0].summaryFields).reduce((function(t6, n6) {
                  return n6.a_e && t6.push({ caption: n6.caption, summaryField: n6.u_e }), t6;
                }), []), u2 = 0, s2 = t5; u2 < s2.length; u2++) for (c2 = s2[u2], f2 = 0, l2 = a2; f2 < l2.length; f2++) c2[(h2 = l2[f2]).summaryField] = c2[h2.caption], delete c2[h2.caption];
              }
              return { groupSelectData: t5, groupTreeLeafNodes: d2 };
            }
            function p(t5, n5, e4, i4) {
              var r3, o3;
              for (r3 = i4; r3 >= 0; r3--) if (t5[o3 = e4[r3].caption || e4[r3].field] !== n5[o3]) return false;
              return true;
            }
            function g(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2 = (0, r2.getObjectKeys)(t5), f2 = {};
              for (o3 = 0, a2 = c2; o3 < a2.length; o3++) u2 = a2[o3], -1 !== e4.indexOf(u2) ? (s2 = i4(u2)) !== u2 && (t5[s2] = t5[u2], delete t5[u2]) : -1 === n5.indexOf(u2) && (f2[u2] = t5[u2], delete t5[u2]);
              return f2;
            }
            function m(t5) {
              var n5, e4 = [], i4 = [];
              for (n5 in t5) t5.hasOwnProperty(n5) && ("=" !== n5[0] && n5.indexOf(",") >= 0 ? n5.split(",").forEach((function(t6) {
                e4.push(t6), i4.push(t6);
              })) : (e4.push(n5), i4.push(t5[n5].caption || n5)));
              return { groupKeys: e4, groupCaptions: i4 };
            }
            function b(t5, n5) {
              var e4, i4;
              if (!(n5.length <= 0)) {
                for (e4 = t5, i4 = 0; i4 < n5.length; i4++) e4 = y(e4, n5[i4]);
                return e4;
              }
            }
            function y(t5, n5) {
              var e4, i4, r3, o3 = [];
              if (Array.isArray(t5)) for (e4 = 0, i4 = t5; e4 < i4.length; e4++) r3 = i4[e4], o3.push.apply(o3, r3[n5]);
              else o3.push.apply(o3, t5[n5]);
              return o3;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.yfr = n4.Mfr = n4.pfr = n4.mfr = n4.vfr = n4.CFt = n4.Cfr = void 0, i3 = e3("./dist/src/data-manager-report/tree-data-generator/utils/utils.js"), r2 = e3("./dist/src/dataManager.entry.js"), o2 = e3("./dist/src/query/utils/table-utils.js"), a = void 0, u = "number", n4.Cfr = s, n4.CFt = c, n4.vfr = h, n4.mfr = d, n4.pfr = v, n4.Mfr = m, n4.yfr = b;
          }, "./dist/src/query/utils/query-cache.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.QueryCache = void 0;
            var e3 = (function() {
              function t5() {
                this.cE = /* @__PURE__ */ new Map(), this.VUt = 100;
              }
              return t5.prototype.Xwr = function(t6, n5) {
                var e4, i3 = this.PEi(t6);
                this.cE.set(i3, { result: n5, tables: this.$wr(t6), lastAccessTime: /* @__PURE__ */ new Date() }), (e4 = Array.from(this.cE.entries())).length > this.VUt && (e4.sort((function(t7, n6) {
                  return t7[1].lastAccessTime.getTime() - n6[1].lastAccessTime.getTime();
                })), this.cE.delete(e4[0][0]));
              }, t5.prototype.ev = function(t6) {
                var n5 = this.cE.get(this.PEi(t6));
                return n5 && (n5.lastAccessTime = /* @__PURE__ */ new Date()), null == n5 ? void 0 : n5.result;
              }, t5.prototype.d5 = function(t6) {
                var n5 = this;
                Array.from(this.cE.entries()).forEach((function(e4) {
                  e4[1].tables.includes(t6) && n5.cE.delete(e4[0]);
                }));
              }, t5.prototype.eG = function() {
                this.cE.clear();
              }, t5.prototype.xTr = function(t6) {
                this.N3 = t6;
              }, t5.prototype.PEi = function(t6) {
                return "string" == typeof t6 ? t6 : JSON.stringify(t6);
              }, t5.prototype.$wr = function(t6) {
                var n5, e4 = [t6.from], i3 = this.N3, r2 = i3.relationships;
                return r2 && r2.forEach((function(n6) {
                  n6.sourceTable.name === t6.from ? e4.push(n6.targetTable.name) : n6.targetTable.name === t6.from && e4.push(n6.sourceTable.name);
                })), t6.nest && (n5 = this.$wr(t6.nest)).forEach((function(t7) {
                  -1 === e4.indexOf(t7) && e4.push(t7);
                })), e4;
              }, t5;
            })();
            n4.QueryCache = e3;
          }, "./dist/src/query/utils/query-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5, n5, e4) {
              var a2, c2, f2, v2, p2, g2, m2, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt;
              if (t5.Sfr) return t5.Sfr;
              if (p2 = e4.options, g2 = /* @__PURE__ */ new Map(), m2 = {}, b = [], (C = t5.select) && (S = C.fields, y = C.limit, w = C.skip, S)) for (T = 0, x = S; T < x.length; T++) A = x[T], (n5.indexOf(A) >= 0 || A.indexOf(".") >= 0) && b.push({ value: A }), g2.set(A, true), M = true;
              if (I = [], k = t5.calculate) for (j = 0, D = N = (0, i3.getObjectKeys)(k); j < D.length; j++) _ = D[j], O = k[_], O = e4.PAe(O) ? (0, r2.parseWindowOverByOption)(O) : O, I.push({ caption: _, value: O }), E = _ + "", g2.get(E) && (g2.delete(E), g2.set(O + "", true), m2[O] = _);
              if (R = null === (a2 = p2.schema) || void 0 === a2 ? void 0 : a2.dimensions) for (F = 0, B = L = (0, i3.getObjectKeys)(R); F < B.length; F++) P = B[F], G = R[P], I.push({ caption: P, value: G }), U = P + "", g2.get(U) && (g2.delete(U), g2.set(G + "", true), m2[G] = P);
              if (H = t5.groupBy, V = [], H) for (z = null === (c2 = p2.schema) || void 0 === c2 ? void 0 : c2.measures, Y = function(n6) {
                var a3, c3, f3, v3, p3, g3, m3, b2, y2, w2, M2, C2, S2, T2 = [], x2 = [], A2 = [], I2 = void 0, N2 = void 0, j2 = [], D2 = {}, _2 = (0, i3.getObjectKeys)(n6), O2 = function(a4) {
                  var c4, f4, h2, v4, p4 = n6[a4], g4 = [a4];
                  for ("=" !== a4[0] && a4.indexOf(",") >= 0 && (g4 = a4.split(",")), c4 = function(n7) {
                    var a5, c5, f5, h3, v5, g5, m4, b3, y3, w3, M3, C3, S3, _3, O3, E2, L2 = n7;
                    if (a5 = { field: n7 = (0, o2.Cfr)(n7, k, R), summaryFields: [], caption: p4.caption || L2 }, p4.summarize && (a5.summaryFields = p4.summarize.map((function(t6) {
                      var n8, e5, r3, o3, a6, u2, s2, c6 = (0, i3.getObjectKeys)(t6);
                      for (a6 = 0, u2 = c6; a6 < u2.length; a6++) "having" === (s2 = u2[a6]) ? o3 = l(t6[s2], k) : "pivot" === s2 ? e5 = t6[s2] : (n8 = l(d(z, t6[s2]), k, R), D2[r3 = s2] = true);
                      return { formula: n8, filter: o3, slice: e5, caption: r3, u_e: r3, s_e: p4.caption || L2 };
                    }))), c5 = p4.calculate) for (h3 = 0, v5 = f5 = (0, i3.getObjectKeys)(c5); h3 < v5.length; h3++) m4 = c5[g5 = v5[h3]], m4 = l(m4 = e4.PAe(m4) ? (0, r2.parseWindowOverByOption)(m4) : m4, k), j2.push({ caption: g5, value: m4 });
                    if ((b3 = p4.where) ? (y3 = l(b3, k), x2.push(y3)) : x2.push(s), (w3 = p4.orderBy) ? (M3 = (0, u.getOrderOptions)(w3, (function(t6) {
                      var n8, i4, o3, a6 = t6.field;
                      for (n8 = 0, i4 = j2; n8 < i4.length; n8++) if (a6 === (o3 = i4[n8]).caption && e4.PAe(o3.value)) {
                        a6 = (0, r2.parseWindowOverByOption)(o3.value);
                        break;
                      }
                      t6.field = a6;
                    })), A2.push(M3)) : A2.push([]), I2 = p4.includeDetailRows, N2 = !!t5.nest, C3 = p4.attributes) for (S3 = 0, _3 = C3; S3 < _3.length; S3++) O3 = _3[S3], D2[O3] = true;
                    T2.push(a5), E2 = p4.caption || L2, D2[E2] = true;
                  }, f4 = 0, h2 = g4; f4 < h2.length; f4++) c4(v4 = h2[f4]);
                };
                for (a3 = 0, c3 = _2; a3 < c3.length; a3++) O2(f3 = c3[a3]);
                for (v3 = 0; v3 < T2.length; v3++) for (g3 = 0, m3 = (p3 = T2[v3]).summaryFields; g3 < m3.length; g3++) {
                  for (b2 = m3[g3], y2 = v3 + 1; y2 < T2.length; y2++) {
                    for (M2 = 0, C2 = (w2 = T2[y2]).summaryFields; M2 < C2.length; M2++) if (S2 = C2[M2], b2.caption === S2.caption) {
                      b2.a_e = true;
                      break;
                    }
                    if (b2.a_e) break;
                  }
                  b2.a_e && (b2.caption = "".concat(b2.u_e, "__").concat(b2.s_e), D2[b2.caption] = true, x2[v3] = h(x2[v3], b2.u_e, b2.caption));
                }
                x2 = x2.filter((function(t6) {
                  return !(0, i3.isNullOrEmpty)(t6);
                })), V.push({ groupByInfos: T2, groupFilterInfos: x2, groupSortInfos: A2, includeDetailRows: I2, includeDetailRowsForNest: N2, groupCalculateInfos: j2, groupSelectFields: D2 });
              }, Z = 0, W = H; Z < W.length; Z++) Y(Q = W[Z]);
              if ((J = t5.where) && (K = l(J, k, R)), X = [], (q = t5.orderBy) && (X = (0, u.getOrderOptions)(q, (function(t6) {
                var n6, i4, o3, a3 = t6.field;
                for (n6 = 0, i4 = I; n6 < i4.length; n6++) if (a3 === (o3 = i4[n6]).caption && e4.PAe(o3.value)) {
                  a3 = (0, r2.parseWindowOverByOption)(o3.value);
                  break;
                }
                t6.field = a3;
              }))), $ = {}, tt = t5.window) for (nt in tt) tt.hasOwnProperty(nt) && ($[nt] = (0, r2.parseWindowOverByOption)(tt[nt], true));
              return t5.Sfr = { selectFields: Object.fromEntries(g2.entries()), selectFieldValueCaptionMap: m2, relatedColumns: b, calculateColumns: I, windows: $, limit: y, skip: w, filterExpression: K, groupInfos: V, sortInfos: X }, t5.Sfr.idr = M || (null === (v2 = null === (f2 = t5.hfr) || void 0 === f2 ? void 0 : f2.Sfr) || void 0 === v2 ? void 0 : v2.idr), t5.Sfr;
            }
            function l(t5, n5, e4) {
              var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2;
              if (n5 && (r3 = (0, i3.getObjectKeys)(n5)).length > 0) for (o3 = 0, a2 = r3; o3 < a2.length; o3++) s2 = n5[u2 = a2[o3]], (0, i3.isFormula)(s2) && (t5 = t5.replace(new RegExp("\\[@" + u2 + "\\]", "g"), s2.substring(1)));
              if (e4 && (c2 = (0, i3.getObjectKeys)(e4)).length > 0) for (f2 = 0, l2 = c2; f2 < l2.length; f2++) d2 = e4[h2 = l2[f2]], (0, i3.isFormula)(d2) && (t5 = t5.replace(new RegExp("\\[@" + h2 + "\\]", "g"), d2.substring(1)));
              return t5;
            }
            function h(t5, n5, e4) {
              if ((0, i3.isNullOrEmpty)(t5) || -1 === t5.indexOf(n5)) return t5;
              var r3 = t5;
              return r3 = (r3 = (r3 = r3.replace(new RegExp("\\[@\\[" + n5 + "\\]\\]", "g"), "[@[".concat(e4, "]]"))).replace(new RegExp("\\[@" + n5 + "\\]", "g"), "[@".concat(e4, "]"))).replace(new RegExp("\\[" + n5 + "\\]", "g"), "[".concat(e4, "]"));
            }
            function d(t5, n5) {
              return t5 && t5[n5] || n5;
            }
            function v(t5, n5, e4, i4) {
              var r3 = p(n5);
              e4[r3] || (e4[r3] = g(t5, n5, i4));
            }
            function p(t5) {
              var n5, e4, i4, r3, o3;
              return t5.q0r || (o3 = (e4 = void 0 === t5.from ? null === (n5 = t5.hfr) || void 0 === n5 ? void 0 : n5.from : t5.from) + ((i4 = t5.where) ? "__" + i4 : ""), (r3 = t5.hfr) && (o3 = r3.q0r + (t5.from === r3.from ? "" : "__" + o3)), t5.q0r = o3.toUpperCase()), t5.q0r;
            }
            function g(t5, n5, e4) {
              var i4, r3 = [];
              return void 0 !== n5.from && (n5.where ? r3 = (0, a.ule)(t5, { rules: [{ type: "Static", formula: n5.where }], relation: "And" }, n5) : (i4 = t5.tables[n5.from]) && (r3 = m(i4))), r3;
            }
            function m(t5) {
              var n5, e4, i4, r3 = [], o3 = t5.name.toUpperCase();
              for (e4 = 0, i4 = t5.length(); e4 < i4; e4++) r3.push(((n5 = {})[o3] = e4, n5));
              return r3;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.xfr = n4.X0r = n4.K0r = void 0, i3 = e3("./dist/src/dataSource/dataSource.entry.js"), r2 = e3("./dist/src/table/windowOverField.js"), o2 = e3("./dist/src/query/utils/group-utils.js"), a = e3("./dist/src/query/utils/report-utils.js"), u = e3("./dist/src/query/utils/sort-utils.js"), s = void 0, n4.K0r = f, n4.X0r = v, c = /.*\[@.+\..+\]/g, n4.xfr = m;
          }, "./dist/src/query/utils/report-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f;
            function l(t5, n5, e4) {
              var i4;
              return h(t5.Lp.parse(n5, e4, 0, 0));
            }
            function h(t5) {
              var n5, e4, r3, o3, a2 = { rules: [], relation: "And", conditions: [] };
              if (t5.type === i3.ExpressionType.function) {
                if (s.includes(t5.functionName)) for (a2.relation = d(t5.functionName), n5 = 0, e4 = t5.arguments; n5 < e4.length; n5++) r3 = e4[n5], s.includes(r3.functionName) && a2.conditions ? a2.conditions.push(h(r3)) : "NOT" === r3.functionName ? (o3 = v(r3.arguments[0], true)) && a2.rules.push(o3) : (o3 = v(r3)) && a2.rules.push(o3);
                if (c.includes(t5.functionName) && (o3 = v(t5)) && a2.rules.push(o3), "NOT" === t5.functionName) return h(t5.arguments[0]);
              }
              return t5.type === i3.ExpressionType.parentheses && (o3 = v(t5.value)) && a2.rules.push(o3), a2;
            }
            function d(t5) {
              switch (t5) {
                case "SJS.STARTWITH":
                  return "StartWith";
                case "SJS.ENDWITH":
                  return "EndWith";
                case "AND":
                  return "And";
                case "OR":
                  return "Or";
                case "SEARCH":
                case "FIND":
                  return "Contains";
              }
            }
            function v(t5, n5) {
              var e4, r3, o3, a2;
              return t5.type === i3.ExpressionType.operator ? (e4 = t5.value, r3 = t5.value2, a2 = (o3 = e4.type === i3.ExpressionType.name ? e4 : r3) === e4 ? r3 : e4, { column: p(o3.value), operator: g(t5.operatorType), value: { type: m(a2.type), data: b(a2) } }) : t5.type === i3.ExpressionType.function && c.includes(t5.functionName) && t5.arguments ? (e4 = t5.arguments[0], r3 = t5.arguments[1], a2 = (o3 = e4.type === i3.ExpressionType.name ? e4 : r3) === e4 ? r3 : e4, { column: p(o3.value), operator: d(t5.functionName), value: { type: m(a2.type), data: b(a2) } }) : void 0;
            }
            function p(t5) {
              var n5 = t5.match(f);
              return n5 && n5[1] || "";
            }
            function g(t5) {
              switch (t5) {
                case 9:
                default:
                  return "Equal";
                case 10:
                  return "NotEqual";
                case 11:
                  return "LessThan";
                case 12:
                  return "LessThanOrEqual";
                case 13:
                  return "GreaterThan";
                case 14:
                  return "GreaterThanOrEqual";
              }
            }
            function m(t5) {
              switch (t5) {
                case i3.ExpressionType.reference:
                  return "Cell";
                case i3.ExpressionType.number:
                  return "Number";
                case i3.ExpressionType.string:
                  return "String";
                case i3.ExpressionType.boolean:
                  return "Boolean";
                default:
                  return "String";
              }
            }
            function b(t5) {
              switch (t5.type) {
                case i3.ExpressionType.reference:
                  var n5, e4;
                  return y(t5.row, t5.column);
                case i3.ExpressionType.number:
                case i3.ExpressionType.string:
                case i3.ExpressionType.boolean:
                  return t5.value;
              }
            }
            function y(t5, n5) {
              var e4, i4 = "", r3 = "A".charCodeAt(0);
              for (e4 = n5 + 1; e4 > 0; e4 = parseInt((e4 - 1) / 26 + "", 10)) i4 = String.fromCharCode(r3 + (e4 - 1) % 26) + i4;
              return i4 + (t5 + 1);
            }
            function w(t5, n5) {
              var e4, i4, r3, o3 = [];
              if (t5.conditions) for (e4 = 0, i4 = t5.conditions; e4 < i4.length; e4++) r3 = i4[e4], o3.push(w(r3, n5));
              return { rules: M(t5.rules, n5), relation: t5.relation, conditions: o3 };
            }
            function M(t5, n5) {
              var e4 = [];
              return t5.forEach((function(t6) {
                var i4, o3 = t6.formula;
                t6.column && -1 !== t6.column.indexOf("[@") && !t6.column.startsWith("=") && (t6.column = "=" + t6.column), (0, r2.isNullOrUndefined)(o3) ? "Cell" !== t6.value.type && "DataColumn" !== t6.value.type || "object" != typeof t6.value.data || (0, r2.isNullOrUndefined)(t6.value.data) ? e4.push({ type: "Static", field: t6.column, operator: t6.operator, value: t6.value.data, valueType: t6.value.type }) : t6.value.data.tableName ? e4.push({ type: "Join", relationHostTable: null !== (i4 = t6.tableName) && void 0 !== i4 ? i4 : n5, relationHostColumn: t6.column, relationTargetTable: t6.value.data.tableName, relationTargetColumn: t6.value.data.columnName, relationCondition: t6.operator }) : t6.value.data.formulaString && e4.push({ type: "Join", relationHostTable: n5, relationHostColumn: t6.column, relationTargetTable: t6.value.data.formulaTableName, relationTargetColumn: t6.value.data.formulaString, relationCondition: t6.operator }) : (o3.startsWith("=") || (o3 = "=" + o3), e4.push({ type: "Static", formula: o3 }));
              })), e4;
            }
            function C(t5, n5, e4) {
              var i4, r3, o3, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2 = e4.from, C2 = t5.U0r.queryRelationshipMap(), x = n5.rules, A = n5.relation, I = [], k = [];
              for (i4 = 0, r3 = x; i4 < r3.length; i4++) "Join" === (o3 = r3[i4]).type ? (u2 = o3.relationHostTable, s2 = o3.relationHostColumn, c2 = o3.relationTargetTable, f2 = o3.relationTargetColumn, l2 = o3.relationCondition, h2 = o3.formula, d2 = t5.tables[u2], v2 = t5.tables[c2], d2 && v2 && (p2 = S(d2, s2, h2 || l2, v2, f2), I.push({ sourceTable: d2, targetTable: v2, sourceFieldIndexMap: p2.sourceFieldIndexMap, targetFieldIndexMap: p2.targetFieldIndexMap }))) : k.push(o3);
              return (m2 = t5.tables[M2]) && (g2 = (y2 = C2[(b2 = e4.hfr) && b2.q0r]) && y2[0] && y2[0].hasOwnProperty(m2.name.toUpperCase()) ? y2 : (0, a.xfr)(m2)), I.length || (w2 = g2), k.length && (w2 = T(t5, w2, k, M2, A, !!I.length, g2)), w2;
            }
            function S(t5, n5, e4, i4, o3) {
              var a2, u2, s2, c2, f2, l2, h2, d2, v2;
              function p2(t6, n6, e5) {
                t6[n6] ? t6[n6].push(e5) : t6[n6] = [e5];
              }
              for (a2 = [], u2 = [], s2 = [], c2 = t5.length(), f2 = i4.length(), l2 = 0; l2 < c2; l2++) h2 = t5._getValueByField(n5, l2), (0, r2.isNullOrUndefined)(h2) || p2(s2, h2, l2);
              for ("Equal" === e4 && (d2 = function(t6) {
                var n6, e5, c3 = i4._getValueByField(o3, t6);
                (0, r2.isNullOrUndefined)(c3) || (n6 = [], (e5 = s2[c3]) && e5.forEach((function(t7) {
                  return n6.push(t7);
                })), u2[t6] = n6, n6.forEach((function(n7) {
                  p2(a2, n7, t6);
                })));
              }), v2 = 0; v2 < f2; v2++) d2(v2);
              return { sourceTable: t5, targetTable: i4, sourceFieldIndexMap: a2, targetFieldIndexMap: u2 };
            }
            function T(t5, n5, e4, i4, a2, s2, c2) {
              var f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x, A = i4;
              if (n5 = [].concat(n5), f2 = t5.tables[A], l2 = A.toUpperCase(), h2 = [], d2 = [], e4.forEach((function(t6) {
                var e5, i5, v3, p3, g3, m3, b3 = t6.field, y3 = t6.operator, w3 = t6.value, M3 = t6.formula, C3 = t6.valueType, S3 = false, T3 = false;
                (0, r2.isNullOrUndefined)(y3) ? (0, r2.isNullOrUndefined)(M3) || (b3 = M3, T3 = true) : "object" != typeof w3 ? e5 = o2.ValueComparatorFactory.createComparator(y3) : (w3 instanceof Date || "Date" === C3) && (e5 = o2.ValueComparatorFactory.createDateComparator(y3), w3 = new Date(w3), i5 = w3.setHours(0, 0, 0, 0), v3 = w3.setHours(23, 59, 59, 59), w3 = w3.getTime(), S3 = true), b3 !== u && b3.indexOf("@") > -1 && !b3.startsWith("=") && (b3 = "=" + b3), (e5 || T3) && (p3 = void 0, "And" === a2 || a2 === u ? p3 = h2[h2.length - 1] || n5 : "Or" === a2 && ((p3 = d2[d2.length - 1]) || (p3 = s2 ? c2 : n5)), g3 = [], m3 = [], p3.forEach((function(n6) {
                  var r3, o3 = false, a3 = null == n6 ? void 0 : n6[l2];
                  a3 !== u && null !== a3 && (r3 = null != (r3 = f2._getValueByField(b3, a3)) ? r3 : "", T3 ? o3 = r3 : S3 ? (r3 = new Date(r3).getTime(), o3 = e5(r3, w3, i5, v3)) : "Formula" === C3 ? (w3 = f2._getValueByField(t6.value, a3), o3 = e5(r3, w3)) : o3 = e5(r3, w3)), o3 ? g3.push(n6) : m3.push(n6);
                })), h2.push(g3), d2.push(m3));
              })), "And" === a2 || a2 === u) return h2[h2.length - 1];
              if ("Or" === a2) {
                for (v2 = [], p2 = 0, g2 = h2; p2 < g2.length; p2++) m2 = g2[p2], v2 = v2.concat(m2);
                if (s2) {
                  for (b2 = new Array(n5.length), y2 = 0, w2 = n5; y2 < w2.length; y2++) void 0 !== (C2 = (M2 = w2[y2])[A]) && (b2[C2] = true);
                  for (S2 = 0, T2 = v2; S2 < T2.length; S2++) void 0 === (C2 = (x = T2[S2])[A]) || b2[C2] || n5.push(x);
                  return n5;
                }
                return v2;
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.cle = n4.ule = n4.ole = n4.Tfr = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataManager.entry.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/utils/value-comparator-factory.js"), a = e3("./dist/src/query/utils/query-utils.js"), u = void 0, n4.Tfr = l, s = ["AND", "OR"], c = ["SJS.STARTWITH", "SJS.ENDWITH", "SEARCH", "FIND"], f = /\[@(.*?)\]/, n4.ole = w, n4.ule = C, n4.cle = S;
          }, "./dist/src/query/utils/sort-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2;
            function o2(t5, n5) {
              var e4, r3, o3, u2 = [], s2 = function(t6) {
                var e5, i4, r4, o4, s3;
                for (e5 in t6) t6.hasOwnProperty(e5) && (r4 = void 0, o4 = void 0, a(i4 = t6[e5]) ? r4 = i4 : (r4 = i4.order, o4 = i4.list), s3 = { field: e5, ascending: "DESC" !== r4, list: o4, _f: e5 }, null == n5 || n5(s3), u2.push(s3));
              };
              if ((0, i3.isArray)(t5)) for (e4 = 0, r3 = t5; e4 < r3.length; e4++) s2(o3 = r3[e4]);
              else s2(t5);
              return u2;
            }
            function a(t5) {
              return "string" == typeof t5;
            }
            function u(t5, n5, e4, r3, o3, a2, u2, s2) {
              var c2, f2, l2, h = t5.name.toUpperCase(), d = (0, i3.ese)(t5, n5, e4, s2 ? o3.map((function(t6) {
                return s2[t6][h];
              })) : o3, r3);
              if (a2 = a2 || 0, u2 = u2 || o3.length, 0 === a2 && u2 >= o3.length) o3.sort((function(n6, e5) {
                return s2 && (n6 = s2[n6][h], e5 = s2[e5][h]), d(t5, r3, n6, e5);
              }));
              else for ((c2 = o3.slice(a2, u2)).sort((function(n6, e5) {
                return s2 && (n6 = s2[n6][h], e5 = s2[e5][h]), d(t5, r3, n6, e5);
              })), f2 = 0, l2 = c2.length; f2 < l2; f2++) o3[f2 + a2] = c2[f2];
            }
            function s(t5) {
              return t5 && t5.length > 0 && t5.some((function(t6) {
                return t6.length > 0;
              }));
            }
            function c(t5, n5, e4, r3) {
              var o3, a2, u2, c2, h, d, v, p, g, m = [], b = [], y = s(e4), w = r3 && r3.length > 0, M = function(t6) {
                var n6, e5, r4;
                return t6 ? (n6 = t6.ascending, e5 = t6._f || t6.field, (0, i3.isArray)(t6.list) && t6.list.length > 0 ? (r4 = t6.list.reduce((function(t7, n7, e6) {
                  return t7[n7] = e6, t7;
                }), {}), n6 ? function(t7, n7) {
                  return l(t7[e5], n7[e5], r4);
                } : function(t7, n7) {
                  return l(n7[e5], t7[e5], r4);
                }) : n6 ? function(t7, n7) {
                  return f(t7[e5], n7[e5]);
                } : function(t7, n7) {
                  return f(n7[e5], t7[e5]);
                }) : function() {
                  return 0;
                };
              };
              for (y ? m = e4.map((function(t6) {
                return t6.map(M);
              })) : w && (b = r3.filter((function(t6) {
                return null != t6;
              })).map(M), w = b.length > 0), o3 = [t5], a2 = 0; a2 < n5.length; ) {
                for (u2 = 0, c2 = o3.length; u2 < c2; u2++) if ((h = o3.shift()).sort((function(t6, n6) {
                  var e5, i4, r4, o4, u3, s2, c3, f2 = 0;
                  if (y) for (i4 = 0, r4 = e5 = m[a2]; i4 < r4.length && 0 === (f2 = (o4 = r4[i4])(t6, n6)); i4++) ;
                  else if (w) for (u3 = 0, s2 = b; u3 < s2.length && 0 === (f2 = (c3 = s2[u3])(t6, n6)); u3++) ;
                  return f2;
                })), a2 < n5.length - 1) for (d = n5[a2 + 1].field, v = 0, p = h; v < p.length; v++) g = p[v], o3.push(g[d]);
                a2++;
              }
            }
            function f(t5, n5) {
              return (0, i3.isNullOrUndefined)(t5) && (0, i3.isNullOrUndefined)(n5) ? 0 : (0, i3.isNullOrUndefined)(t5) ? -1 : (0, i3.isNullOrUndefined)(n5) ? 1 : "number" == typeof t5 || t5 instanceof Date ? t5 - n5 : t5 > n5 ? 1 : t5 < n5 ? -1 : 0;
            }
            function l(t5, n5, e4) {
              var i4 = e4[t5], o3 = e4[n5];
              return i4 !== r2 && o3 !== r2 ? i4 - o3 : i4 !== r2 ? -1 : o3 !== r2 ? 1 : f(t5, n5);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.bfr = n4.hasGroupSorts = n4.JFt = n4.getOrderOptions = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = void 0, n4.getOrderOptions = o2, n4.JFt = u, n4.hasGroupSorts = s, n4.bfr = c;
          }, "./dist/src/query/utils/table-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u(t5) {
              var n5, e4 = [];
              for (n5 = 0; n5 < t5; n5++) e4[n5] = n5;
              return e4;
            }
            function s(t5, n5, e4) {
              return !n5 || !e4 || n5 === e4 || !!t5.relationships.filter((function(t6) {
                return t6.sourceTable === n5 && t6.targetTable === e4 || t6.sourceTable === e4 && t6.targetTable === n5;
              }))[0];
            }
            function c(t5) {
              if (t5.W0r) return t5.W0r;
              var n5 = new i3.FieldManager(a, t5);
              return n5.prepareFields((0, i3.ose)(t5)), t5.W0r = n5, t5.W0r;
            }
            function f(t5) {
              var n5, e4;
              return t5.Q0r || (n5 = t5.POt, e4 = new i3.GroupManager({}, n5.wEt.bind(n5), t5.QOt, (function(n6, e5, i4) {
                (0, o2.JFt)(t5, [], a, e5, n6, i4);
              }), (function(n6, e5, i4) {
                return (0, r2.wfr)(t5, n6, e5, i4);
              })), t5.Q0r = e4), t5.Q0r;
            }
            function l(t5, n5, e4, i4) {
              var r3, o3, a2 = t5._dataSource._data;
              for (r3 in n5) "recordRowNumbers" !== r3 && "recordInIndexMap" !== r3 && n5.hasOwnProperty(r3) && (a2.hasOwnProperty(r3) || (a2[r3] = { data: [], Afr: true }, i4.push({ table: t5, groupKey: r3 }), t5.rRt(r3)), (o3 = a2[r3]).Afr && (o3.data[e4] = n5[r3]));
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.gfr = n4.getTableGroupManager = n4.getTableFieldManager = n4.Ifr = n4.gFt = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = e3("./dist/src/query/utils/filter-utils.js"), o2 = e3("./dist/src/query/utils/sort-utils.js"), a = void 0, n4.gFt = u, n4.Ifr = s, n4.getTableFieldManager = c, n4.getTableGroupManager = f, n4.gfr = l;
          }, "./dist/src/query/utils/window-function-utils.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u = this && this.nJr || function() {
              return u = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, u.apply(this, arguments);
            };
            function s(t5, n5) {
              var e4 = t5._dataSource.options;
              n5 ? (e4.schema || (e4.schema = {}), e4.schema.window = n5) : e4.schema && (delete e4.schema.window, 0 === Object.keys(e4.schema).length && delete e4.schema);
            }
            function c(t5, n5) {
              var e4 = t5._dataSource.options, i4 = n5;
              return e4.schema ? e4.schema.window ? (i4 = u(u({}, e4.schema.window), n5), e4.schema.window = i4) : e4.schema.window = n5 : e4.schema = { window: n5 }, i4;
            }
            function f(t5, n5, e4) {
              n5.forEach((function(n6) {
                var i4, r3, o3, a2, u2;
                if (n6) for (i4 = n6.field, o3 = 0, a2 = r3 = e4.GAe(i4); o3 < a2.length; o3++) u2 = a2[o3], t5.push(u2);
              }));
            }
            function l(t5, n5, e4, i4, u2, s2) {
              h(n5, t5);
              var c2 = n5.name.toUpperCase();
              return d(t5, (function(t6) {
                i4 = (0, r2.CFt)(n5, t6, i4, u2, s2).newIndexMap;
              }), (function(t6) {
                (0, o2.JFt)(n5, e4, a, t6, i4, a, a, u2);
              }), (function(t6, e5) {
                var r3 = i4.map((function(t7) {
                  return u2[t7][c2];
                }));
                e5(n5.XOt[t6], r3);
              }), (function() {
                return n5.XOt;
              }), (function(t6) {
                return n5.GAe(t6);
              })), i4;
            }
            function h(t5, n5) {
              var e4, i4;
              for (e4 = 0; e4 < n5.length; e4++) i4 = n5[e4], t5.bde(i4);
            }
            function d(t5, n5, e4, i4, r3, o3) {
              var a2, u2, s2, c2, f2, l2 = p(m(t5, r3, o3));
              for (a2 = 0, u2 = l2; a2 < u2.length; a2++) v(c2 = (s2 = u2[a2]).partitions, f2 = s2.orderedFunctions, n5, e4, i4);
              return true;
            }
            function v(t5, n5, e4, r3, o3) {
              var a2, u2, s2, c2, f2;
              if ((0, i3.isArray)(t5) && t5.length > 0) t5[t5.length - 1].windowOrderedFunctions = n5, e4(t5);
              else for (a2 = 0; a2 < n5.length; a2++) for (s2 = (u2 = n5[a2]).orders, (0, i3.isArray)(s2) && s2.length > 0 && r3(s2), c2 = u2.functions, f2 = 0; f2 < c2.length; f2++) o3(c2[f2].windowOverFormula, (function(t6, n6) {
                return t6.evaluateWindowFunction(n6);
              }));
            }
            function p(t5) {
              var n5 = t5[0], e4 = g(n5).windowOverInfos;
              return e4;
            }
            function g(t5) {
              var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = {}, v2 = [];
              for (i4 = 0; i4 < t5.length; i4++) n5 = (r3 = t5[i4]).partitionKey, e4 = r3.orderKey, d2[r3.partitionKey] || (o3 = { partitions: r3.partitions, orderedFunctions: [] }, d2[r3.partitionKey] = { index: v2.length, orderMap: {}, windowOverInfo: o3 }, v2.push(o3)), (u2 = (a2 = d2[r3.partitionKey]).orderMap)[r3.orderKey] || (s2 = { orders: r3.orders, functions: [] }, u2[r3.orderKey] = { index: a2.windowOverInfo.orderedFunctions.length, functionMap: {}, orderFunctions: s2 }, a2.windowOverInfo.orderedFunctions.push(s2)), c2 = r3.frameKey + "__" + r3.windowFormula, u2[r3.orderKey].functionMap[c2] || (u2[r3.orderKey].functionMap[c2] = true, u2[r3.orderKey].orderFunctions.functions.push({ orders: u2[r3.orderKey].orderFunctions.orders, windowOverFormula: r3.windowOverFormula, windowFormula: r3.windowFormula, windowFrame: r3.windowFrame }));
              return f2 = function(t6) {
                var n6, i5, r4 = t6.windowOverInfo.orderedFunctions, o4 = t6.orderMap[e4];
                r4.length > 1 && (i5 = r4[n6 = o4.index], r4.splice(n6, 1), r4.push(i5));
              }, v2.length > 1 ? (h2 = v2[i4 = (l2 = d2[n5]).index], v2.splice(i4, 1), v2.push(h2), f2(l2)) : 1 === v2.length && f2(d2[n5]), { windowOverInfoMap: d2, windowOverInfos: v2 };
            }
            function m(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2 = n5(), f2 = [];
              for (i4 = 0; i4 < t5.length; i4++) if ((o3 = e4(r3 = t5[i4])).length > 0) for (a2 = 0; a2 < o3.length; a2++) false !== (s2 = c2[u2 = o3[a2]]).Khe && f2.push(s2.options);
              return [f2, []];
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Whe = n4.mde = n4.afr = n4.addWindowFunctionFields = n4.setWindowDefOption = n4.resetWindowDefOption = void 0, i3 = e3("./dist/src/dataManager.entry.js"), r2 = e3("./dist/src/query/utils/group-utils.js"), o2 = e3("./dist/src/query/utils/sort-utils.js"), a = void 0, n4.resetWindowDefOption = s, n4.setWindowDefOption = c, n4.addWindowFunctionFields = f, n4.afr = l, n4.mde = h, n4.Whe = d;
          }, "./dist/src/relationship.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Relationship = void 0, i3 = e3("./dist/src/interfaces/interface.js"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = void 0, a = (function() {
              function t5(t6, n5, e4, i4, r3, o3) {
                this.sourceTable = t6, this.sourceFieldName = n5, this.sourceRelationshipName = e4, this.targetTable = i4, this.targetFieldName = r3, this.targetRelationshipName = o3, e4 && (this.sourceField = t6.xOt(n5, e4, i4, r3, this)), o3 && (this.targetField = i4.xOt(r3, o3, t6, n5, this));
              }
              return t5.prototype.Gf = function(n5, e4, i4, r3, o3, a2) {
                return new t5(n5 || this.sourceTable, e4 || this.sourceFieldName, i4 || this.sourceRelationshipName, r3 || this.targetTable, o3 || this.targetFieldName, a2 || this.targetRelationshipName);
              }, t5.prototype.NOt = function(t6) {
                return t6 === this.targetRelationshipName;
              }, t5.prototype.VP = function() {
                this.sourceTable && this.sourceTable.kOt(this), this.targetTable && this.targetTable.kOt(this);
              }, t5.prototype.DOt = function(t6) {
                return this.relationshipMap === i3.RelationshipMap.OneToMany && t6 === this.sourceRelationshipName ? i3.RelationshipMap.OneToOne : this.relationshipMap;
              }, t5.prototype._Ot = function() {
                var t6 = this.sourceTable, n5 = this.sourceFieldName;
                if (t6.EOt()) return t6.jOt(n5) && !t6.OOt() ? i3.RelationshipMap.OneToOne : i3.RelationshipMap.OneToMany;
              }, t5.prototype.ROt = function(t6) {
                var n5 = this.relationshipMap;
                return (0, r2.isNullOrUndefined)(n5) && (n5 = this.relationshipMap = this._Ot()), (0, r2.isNullOrUndefined)(n5) ? t6 : n5 === i3.RelationshipMap.OneToOne ? { _type: "object" } : { _type: "array" };
              }, t5.prototype.BOt = function() {
                var t6, n5, e4, i4, o3, a2, u, s, c;
                function f(t7, n6, e5) {
                  t7[n6] ? (t7[n6].push(e5), t7._type = "array") : t7[n6] = [e5];
                }
                for (t6 = this.sourceField.LOt = { _type: "object" }, n5 = this.targetField.LOt = this.ROt({}), e4 = this.ROt({ _type: "object" }), i4 = this.sourceTable.getDataSync(), o3 = this.targetTable.getDataSync(), a2 = 0; a2 < i4.length; a2++) u = i4[a2][this.sourceFieldName], (0, r2.isNullOrUndefined)(u) || f(e4, u, a2);
                for (s = function(i5) {
                  var a3 = o3[i5][c.targetFieldName];
                  (0, r2.isNullOrUndefined)(a3) || e4[a3] && (n5[i5] = e4[a3], e4[a3].forEach((function(n6) {
                    f(t6, n6, i5);
                  })));
                }, c = this, a2 = 0; a2 < o3.length; a2++) s(a2);
                this.targetField.type = e4._type, this.sourceField.type = t6._type;
              }, t5.prototype.dl = function(t6) {
                this.sourceField.LOt = o2, this.targetField.LOt = o2, this.targetTable.FOt(t6 ? this.targetTable === t6 : o2), this.sourceTable.FOt(t6 ? this.sourceTable === t6 : o2);
              }, t5;
            })(), n4.Relationship = a;
          }, "./dist/src/res.en.js": function(t4, n4) {
            "use strict";
            var e3, i3, r2;
            function o2(t5, n5) {
              return { description: t5, parameters: n5 };
            }
            function a(t5, n5, e4, i4) {
              return { name: t5, optional: n5, repeatable: e4, enum: i4 };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.resource = void 0, e3 = [{ value: "-1", description: "Indicates the upper boundary of the partition." }, { value: "[@]", description: "Indicates the current row or value." }, { value: "[@-n]", description: "Indicates the n preceding of the current, if the order is ascending." }, { value: "[@+n]", description: "Indicates the n preceding of the current, if the order is descending." }], i3 = [{ value: "-1", description: "Indicates the lower following of the partition." }, { value: "[@]", description: "Indicates the current row or value." }, { value: "[@+n]", description: "Indicates the n following of the current, if the order is ascending." }, { value: "[@-n]", description: "Indicates the n following of the current, if the order is descending." }], r2 = [{ value: "0", description: "This is the default case, no rows are excluded." }, { value: "1", description: "The current row is excluded, the other peers of the current row remain." }, { value: "2", description: "The current row and the peers are all excluded." }, { value: "3", description: "The current row remain, the other peers are excluded." }], n4.resource = { Zve: { WINDOW: o2("(TableSheet Specific) Determines the rows as the window by partitioning and ordering to apply the window function.", [a("window_function"), a("partition_by", true), a("order_by", true), a("frame_rows\\range\\groups", true)]), WINDOWDEF: o2("(TableSheet Specific) Define a shorthand that allow to be reused by the WINDOW function.", [a("partition_by", true), a("order_by", true), a("frame_rows\\range\\groups", true)]), PARTITIONBY: o2("(TableSheet Specific) Divides the rows into partitions.", [a("field_function", false, true)]), ORDERBY: o2("(TableSheet Specific) Defines the logical order in each partition.", [a("field_function", false, true)]), ORDERASC: o2("(TableSheet Specific) Specifies ascending order for the specified field.", [a("field_function")]), ORDERDESC: o2("(TableSheet Specific) Specifies descending order for the specified field.", [a("field_function")]), FRAMEROWS: o2("(TableSheet Specific) Limit the row set of the window by specified the beginning or ending rows against the current row.", [a("beginning_function", false, false, e3), a("ending_function", true, false, i3), a("exclude_mode", true, false, r2)]), FRAMERANGE: o2("(TableSheet Specific) Limit the row set of the window by specified the beginning or ending range with respect to the value in the current row.", [a("beginning_function", false, false, e3), a("ending_function", true, false, i3), a("exclude_mode", true, false, r2)]), FRAMEGROUPS: o2('(TableSheet Specific) Limit the row set of the window by specified the beginning or ending range with respect to the counting "groups" relative to the current group.', [a("beginning_function", false, false, e3), a("ending_function", true, false, i3), a("exclude_mode", true, false, r2)]), CUMEDIST: o2("(TableSheet Specific) The cumulative distribution of a value within a group of values.", []), W_PERCENTRANK: o2("(TableSheet Specific) Calculates the percentage of the relative rank of a row within a partition of rows.", []), ROWNUMBER: o2("(TableSheet Specific) Returns the number of the current row within its partition.", []), W_RANK: o2("(TableSheet Specific) Returns the rank of each row within the partition of a result set.", []), DENSERANK: o2("(TableSheet Specific) Returns the rank of the current row within its partition, without gaps.", []), LEAD: o2("(TableSheet Specific) Provides access to the value from a row at a given physical offset that follows the current row.", [a("value_function"), a("offset", true), a("default_value", true)]), LAG: o2("(TableSheet Specific) Provides access to the value from a row at a given physical offset that before the current row.", [a("value_function"), a("offset", true), a("default_value", true)]), NTILE: o2("(TableSheet Specific) Divides a partition into N buckets, assigns each row its bucket number.", [a("n")]), FIRSTVALUE: o2("(TableSheet Specific) Access to the value from the first row within the window frame.", [a("value_function")]), LASTVALUE: o2("(TableSheet Specific) Access to the value from the last row within the window frame.", [a("value_function")]), NTHVALUE: o2("(TableSheet Specific) Access to the value from the n-th row within the window frame.", [a("value_function"), a("n")]), CALCULATE: o2("(TableSheet Grouping Specific) Expand the group context for the formula.", [a("formula"), a("remove_filters_function")]), REMOVEFILTERS: o2("(TableSheet Grouping Specific) Select the context of the upper group level.", [a("group_field_function", true, true)]), CHILDREN: o2("(TableSheet Hierarchy Specific) Retrieves the value of the children that be a certain offset from the parent.", [a("level_offset"), a("field_function")]), ONLYCHILDREN: o2("(TableSheet Hierarchy Specific) Retrieves the value of the children that be not parent.", [a("field_function")]), PARENT: o2("(TableSheet Hierarchy Specific) Retrieves the value of the parent that be a certain offset from the current.", [a("level_offset"), a("field_function")]), LEVEL: o2("(TableSheet Hierarchy Specific) Retrieves the level of the current.", []), LEVELROWNUMBER: o2("(TableSheet Hierarchy Specific) Retrieves the row number of the current under its parent.", []) } };
          }, "./dist/src/table/calcField.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u = this && this.qKr || (s = function(t5, n5) {
              return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, s(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              s(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), s;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CalcField = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = void 0, a = (function(t5) {
              function n5(n6, e4, i4, o3) {
                var a2, u2, s2 = t5.call(this) || this;
                if (s2.zAe = 0, s2.calcSource = e4.POt, s2.calcService = s2.calcSource.getCalcService(), s2.GOt = n6, (a2 = s2.calcSource).HTe = a2.HTe || [], a2.HTe.indexOf(n6) < 0) {
                  a2.HTe.push(n6);
                  try {
                    u2 = s2.expression = i4 || s2.calcService.parse(s2.calcSource, n6, 0, 0), s2.calcService && u2 && (s2.w3 = s2.calcService.getGlobalSourceModel(), s2.w3.cyt(s2, 0, 0, u2, u2, true));
                  } catch (t6) {
                  }
                  a2.HTe.pop();
                }
                return s2.Tl = [], s2.dTe = (0, r2.isNullOrUndefined)(o3) ? 0 : o3, s2;
              }
              return u(n5, t5), n5.prototype.getKey = function() {
                var t6 = this;
                return "T:" + t6.calcSource.nM.name + ":" + t6.GOt;
              }, n5.prototype.vyt = function() {
                this.c_t().I3(this, 3);
              }, n5.prototype.c_t = function() {
                return this.calcService;
              }, n5.prototype.P6t = function() {
                this.C8();
              }, n5.prototype.C8 = function() {
                this.Tl = [], this.Xme = o2, this.zAe = 0;
              }, n5.prototype.getValue = function(t6) {
                var n6, e4, o3;
                if (!this.expression) return "Invalid Formula";
                for ((n6 = this.calcService).VTe = n6.VTe || [], n6.zTe = n6.zTe || [], e4 = 0; e4 < n6.VTe.length; e4++) if (n6.VTe[e4] === this && n6.zTe[e4] === t6) return n6.YTe = true, this.dTe;
                if (0 === n6.VTe.length && (o3 = this.Tl[t6], !(0, r2.isUndefined)(o3) || (0, r2.isUndefined)(t6))) return o3;
                this.calcSource.pe(t6), n6.VTe.push(this), n6.zTe.push(t6);
                try {
                  o3 = this.calcService.evaluateExpression(this.calcSource, this.expression, { row: t6, col: 0 }, n6.VTe.length > 1);
                } catch (t7) {
                }
                return n6.YTe ? o3 = i3.Errors.Calc : 1 === n6.VTe.length && (this.Tl[t6] = o3), n6.VTe.pop(), n6.zTe.pop(), 0 === n6.VTe.length && delete n6.YTe, o3;
              }, n5.prototype.getValues = function(t6, n6, e4, i4, a2, u2) {
                var s2, c, f, l, h, d;
                if (n6 = (0, r2.isNumber)(n6) ? n6 : 0, e4 = (0, r2.isNumber)(e4) ? e4 : t6.length - 1, s2 = [], this.Xme !== t6 || this.zAe !== t6.length) for (c = t6.length, this.Xme = t6, this.zAe = c, f = 0; f < c; f++) s2.push(this.getValue(t6[f]));
                if (0 === s2.length) if (i4 !== o2 && a2 !== o2) {
                  for (l = n6; l < i4; l++) s2.push(this.Tl[t6[l]]);
                  for (u2 !== o2 && s2.push(this.Tl[t6[u2]]), l = a2 + 1, h = e4 + 1; l < h; l++) s2.push(this.Tl[t6[l]]);
                } else for (l = n6, d = e4 + 1; l < d; l++) s2.push(this.Tl[t6[l]]);
                else s2 = s2.slice(n6, e4 + 1), i4 !== o2 && a2 !== o2 && (u2 !== o2 ? s2.splice(i4 - n6, a2 - i4 + 1, s2[u2 - n6]) : s2.splice(i4 - n6, a2 - i4 + 1));
                return s2;
              }, n5.prototype.getValueWithContext = function(t6) {
                var n6 = this.calcSource.DJ, e4 = this.getValue(t6);
                return this.calcSource.DJ = n6, e4;
              }, n5.prototype.insertItem = function(t6, n6) {
              }, n5.prototype.getOriginalValue = function(t6) {
              }, n5.prototype.getRelatedTable = function() {
              }, n5.prototype.getRelationMaps = function() {
              }, n5.prototype.getHostTableIndexes = function(t6) {
              }, n5;
            })(i3.BaseCalc), n4.CalcField = a;
          }, "./dist/src/table/hierarchyField.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.HierarchyField = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/table/calcField.js"), o2 = e3("./dist/src/table/tableField.js"), a = (function() {
              function t5(t6, n5) {
                this.GOt = t6, this.nM = n5, this.UOt = new r2.CalcField(this.l7t(), n5), this.HOt = new o2.TableField(t6, n5);
              }
              return t5.prototype.getKey = function() {
                return this.UOt.getKey();
              }, t5.prototype.vyt = function() {
                this.UOt.vyt();
              }, t5.prototype.c_t = function() {
                return this.UOt.c_t();
              }, t5.prototype.P6t = function() {
                this.C8();
              }, t5.prototype.l7t = function() {
                return this.nM.isHierarchy() ? this.nM._dataSource.l7t(this.GOt) : void 0;
              }, t5.prototype.C8 = function() {
                var t6 = this.l7t();
                (0, i3.isNullOrEmpty)(t6) ? this.UOt = null : (0, i3.isNullOrUndefined)(this.UOt) || t6 !== this.UOt.GOt ? this.UOt = new r2.CalcField(t6, this.nM) : this.UOt.C8(), this.HOt = new o2.TableField(this.GOt, this.nM);
              }, t5.prototype.zOt = function(t6) {
                var n5, e4 = this.nM;
                if (e4.isHierarchy()) return n5 = e4.SEt(t6), !(0, i3.isNullOrUndefined)(n5) && n5.children.length > 0;
              }, t5.prototype.getValue = function(t6) {
                return !(0, i3.isNullOrUndefined)(this.UOt) && this.zOt(t6) ? this.UOt.getValue(t6) : this.HOt.getValue(t6);
              }, t5.prototype.getValues = function(t6, n5) {
                var e4, i4, r3 = [];
                for (e4 = n5 = n5 || 0, i4 = t6.length; e4 < i4; e4++) r3.push(this.getValue(t6[e4]));
                return r3;
              }, t5.prototype.setValue = function(t6, n5) {
                return this.HOt.setValue(t6, n5);
              }, t5.prototype.setItemValue = function(t6, n5, e4, i4) {
                this.HOt.setItemValue(t6, n5, e4, i4);
              }, t5.prototype.hasItem = function(t6) {
                this.HOt.hasItem(t6);
              }, t5.prototype.insertItem = function(t6, n5) {
                this.HOt.insertItem(t6, n5);
              }, t5.prototype.getOriginalValue = function(t6) {
                return this.HOt.getOriginalValue(t6);
              }, t5.prototype.getRelatedTable = function() {
                return this.HOt.getRelatedTable();
              }, t5.prototype.getRelationMaps = function() {
                return this.HOt.getRelationMaps();
              }, t5.prototype.getHostTableIndexes = function(t6) {
                return this.HOt.getHostTableIndexes(t6);
              }, t5;
            })(), n4.HierarchyField = a;
          }, "./dist/src/table/table.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), r2 = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || i3(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), r2(e3("./dist/src/table/tableEvents.js"), n4), r2(e3("./dist/src/table/table.js"), n4);
          }, "./dist/src/table/table.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w = this && this.qKr || (C = function(t5, n5) {
              return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, C(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              C(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), M = this && this.nJr || function() {
              return M = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, M.apply(this, arguments);
            }, C;
            function S(t5, n5) {
              var e4, i4, r3, o3;
              for (e4 in t5) if (t5.hasOwnProperty(e4)) {
                for (r3 in i4 = t5[e4], n5) if (n5.hasOwnProperty(r3) && i4 === (o3 = n5[r3]) && i4.rb > 0) return true;
              }
            }
            function T(t5, n5) {
              return S(n5.views, t5.VOt);
            }
            function x(t5, n5) {
              return t5.indexOf("[".concat(n5, "]")) > -1 || t5.indexOf("[@".concat(n5)) > -1 || t5.indexOf("[@[".concat(n5)) > -1;
            }
            function A(t5, n5, e4, i4) {
              var r3, o3, u2, s2, c2, f2, l2, h2, d2;
              if (0 !== n5) {
                for (u2 = e4 && e4.dataType, s2 = e4 && e4.dataMap, (c2 = "formula" === u2 && !(0, a.isNullOrEmpty)(e4.value)) && (u2 = m), f2 = !!u2, l2 = t5 && "=" === t5[0] || c2 ? function(t6) {
                  return (0, a.formatCalcError)(i4(t6));
                } : i4, h2 = 0; h2 < n5; h2++) d2 = l2(h2), s2 && !(0, a.isNullOrUndefined)(s2[d2]) && (d2 = s2[d2]), f2 || (0, a.isNullOrUndefined)(d2) || (o3 = d2, f2 = true), d2 instanceof Date && (d2 = new Date(d2.getFullYear(), d2.getMonth(), d2.getDate()).toISOString()), r3 || (r3 = {}), r3[d2] || (r3[d2] = []), r3[d2] && r3[d2].push(h2);
                return r3.K$ = u2 || (f2 ? typeof o3 : "object"), r3;
              }
            }
            function I(t5, n5, e4, i4, r3) {
              var o3, u2, s2, c2, f2, l2, h2, d2;
              for (u2 in r3 && (o3 = r3 - 1 > n5), t5) if (t5.hasOwnProperty(u2) && (s2 = t5[u2], f2 = (c2 = i4 && i4[u2]) && c2.dataMap, s2)) {
                if (o3) for (l2 in s2) s2.hasOwnProperty(l2) && (h2 = s2[l2], (0, a.fixInsertIndexes)(h2, n5));
                d2 = e4[u2], f2 && !(0, a.isNullOrUndefined)(f2[d2]) && (d2 = f2[d2]), d2 instanceof Date && (d2 = d2.toISOString()), s2[d2] ? s2[d2].push(n5) : s2[d2] = [n5];
              }
            }
            function k(t5, n5, e4, i4, r3, o3) {
              var u2, s2 = t5[e4], c2 = o3 && o3.dataMap;
              s2 && r3 !== i4 && (c2 && ((0, a.isNullOrUndefined)(c2[i4]) || (i4 = c2[i4]), (0, a.isNullOrUndefined)(c2[r3]) || (r3 = c2[r3])), i4 instanceof Date && (i4 = i4.toISOString()), r3 instanceof Date && (r3 = r3.toISOString()), (u2 = s2[i4]) && (u2.length > 1 ? u2.splice(u2.indexOf(n5), 1) : delete s2[i4], s2[r3] ? s2[r3].push(n5) : s2[r3] = [n5]));
            }
            function N(t5, n5, e4, i4) {
              var r3, o3, u2, s2, c2;
              for (r3 in t5) if (t5.hasOwnProperty(r3) && (o3 = t5[r3])) {
                for (u2 in o3) if (o3.hasOwnProperty(u2) && (0, a.isArray)(o3[u2]) && (s2 = o3[u2], (0, a.isArray)(s2))) {
                  if (i4 && i4.length > 0) (0, a.removeIndexes)(s2, i4, true);
                  else for (c2 = 0; c2 < s2.length; c2++) s2[c2] >= n5 + e4 ? s2[c2] -= e4 : s2[c2] >= n5 && s2[c2] < n5 + e4 && (s2.splice(c2, 1), c2--);
                  0 === s2.length && delete o3[u2];
                }
              }
            }
            function j(t5) {
              var n5, e4, i4 = { data: t5.data, remote: t5.remote, autoSync: t5.autoSync, batch: t5.batch, schema: t5.schema }, r3 = t5.remote;
              return r3 && (n5 = i4.remote = {}, (e4 = r3.read) && !(0, a.isFunction)(e4) && (n5.read = e4), (e4 = r3.create) && !(0, a.isFunction)(e4) && (n5.create = e4), (e4 = r3.update) && !(0, a.isFunction)(e4) && (n5.update = e4), (e4 = r3.delete) && !(0, a.isFunction)(e4) && (n5.delete = e4), (e4 = r3.getColumns) && !(0, a.isFunction)(e4) && (n5.getColumns = e4), (e4 = r3.addColumn) && !(0, a.isFunction)(e4) && (n5.addColumn = e4), (e4 = r3.updateColumn) && !(0, a.isFunction)(e4) && (n5.updateColumn = e4), (e4 = r3.removeColumn) && !(0, a.isFunction)(e4) && (n5.removeColumn = e4), (e4 = r3.batch) && !(0, a.isFunction)(e4) && (n5.batch = e4)), i4;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Table = n4.updateFilterIndexesCacheOnRemove = n4.updateFilterIndexesCacheOnUpdate = n4.updateFilterIndexesCacheOnInsert = n4.generateFilterIndexCache = n4.isInCalcField = void 0, i3 = e3("./dist/src/dataSource/dataSource.js"), r2 = e3("./dist/src/calculation/calcSource.js"), o2 = e3("CalcEngine"), a = e3("./dist/src/dataSource/utils.js"), u = e3("./dist/src/dataSource/dataSource.interface.js"), s = e3("./dist/src/view/view.js"), c = e3("./dist/src/interfaces/interface.js"), f = e3("./dist/src/table/tableEvents.js"), l = e3("./dist/src/table/calcField.js"), h = e3("./dist/src/table/tableField.js"), d = e3("./dist/src/table/hierarchyField.js"), v = e3("./dist/src/table/windowOverField.js"), p = e3("./dist/src/table/triggerCalcField.js"), g = null, m = void 0, n4.isInCalcField = x, n4.generateFilterIndexCache = A, n4.updateFilterIndexesCacheOnInsert = I, n4.updateFilterIndexesCacheOnUpdate = k, n4.updateFilterIndexesCacheOnRemove = N, b = (function() {
              function t5(t6, n5) {
                var e4;
                this.fye = void 0, this.qGr = false, this.YOt = {}, this.ZOt = {}, this.WOt = 0, Object.defineProperty(this, "name", { get: function() {
                  return this.Zc;
                }, set: function(t7) {
                  var n6, e5, i4, r3, o3 = this.Zc;
                  if (this.Zc = t7, n6 = this.QOt) {
                    for (e5 in this.VOt) this.VOt.hasOwnProperty(e5) && (i4 = this.VOt[e5]).KOt(o3, t7);
                    delete (r3 = n6.tables)[o3], r3[t7] = this;
                  }
                } }), Object.defineProperty(this, "options", { get: function() {
                  return this._dataSource.options;
                }, set: function(t7) {
                  var n6, e5, i4, r3, o3, a2 = this;
                  a2.JOt = true, a2.qGr = false, a2.zgr = true, i4 = a2.options, r3 = a2.length(), o3 = a2._dataSource.setDataSourceOptions(t7, (function(t8) {
                    var n7 = t8 && t8.isDataSourceChanged;
                    n7 && (a2.columns = m), a2.ase(r3, n7 ? m : a2.columns, n7);
                  })), a2.cke((null === (n6 = i4.schema) || void 0 === n6 ? void 0 : n6.window) || {}, (null === (e5 = t7.schema) || void 0 === e5 ? void 0 : e5.window) || {}), !a2.fye && o3 && o3.finally ? a2.fye = o3.finally((function() {
                    a2.fye = void 0, a2.zgr = false;
                  })) : a2.zgr = false;
                } }), this.name = t6, e4 = n5 instanceof i3.DataSource ? n5 : new i3.DataSource(n5), this._dataSource = e4, this.views = {}, this.VOt = {}, this.Pq = [], this.XOt = {}, this.qOt = g, this.JOt = true, this.qGr = false, this.aT = {};
              }
              return t5.prototype._Et = function(t6, n5, e4) {
                var i4, r3, o3;
                ((0, a.isNullOrUndefined)(n5) || "" === n5) && (n5 = "*"), "=" === n5[0] ? (i4 = this.bEt(n5)).Iwt(0, t6, e4) : ((r3 = this.aT[n5]) || (r3 = this.aT[n5] = {}), o3 = t6.getKey(), e4 ? r3[o3] = t6 : delete r3[o3]);
              }, t5.prototype.o_t = function(t6, n5) {
                var e4, i4 = function(t7, n6) {
                  for (var e5 in t7) n6 && e5.startsWith("T:") || t7[e5].vyt();
                };
                if ((0, a.isNullOrUndefined)(t6)) for (e4 in this.aT) this.aT[e4] && i4(this.aT[e4], n5);
                else t6.indexOf(".") > -1 && (t6 = t6.split(".")[0]), i4(this.aT[t6]), i4(this.aT["*"]);
              }, t5.prototype.REt = function(t6) {
                var n5, e4;
                if (t6) this.QOt = t6, this.POt = new r2.DataManagerCalcSource(t6.Lp, this);
                else {
                  for (n5 in this.POt = g, this.views) this.views.hasOwnProperty(n5) && this.removeView(n5);
                  for (n5 in this.VOt) this.VOt.hasOwnProperty(n5) && ((e4 = this.VOt[n5]).$Ot(this), delete this.VOt[n5]);
                  this.QOt = t6;
                }
              }, t5.prototype.Ywt = function(t6, n5, e4, i4) {
                var r3 = this.POt;
                return r3.getCalcService().parse(r3, t6, n5 || 0, e4 || 0, i4);
              }, t5.prototype.vde = function(t6, n5) {
                var e4 = this.POt;
                return e4.getCalcService().unparse(e4, t6, 0, 0, n5);
              }, t5.prototype.Cuo = function(t6) {
                var n5 = this.Ywt(t6), e4 = this.vde(n5, true);
                return (0, a.isFormula)(e4) || (e4 = "=" + e4), e4;
              }, t5.prototype.getFormulaWithCulture = function(t6, n5) {
                try {
                  return this.Cuo(t6);
                } catch (e4) {
                  if (n5) throw e4;
                  return t6;
                }
              }, t5.prototype.Suo = function(t6) {
                var n5 = this.Ywt(t6, 0, 0, true), e4 = this.vde(n5);
                return (0, a.isFormula)(e4) || (e4 = "=" + e4), e4;
              }, t5.prototype.getFormulaWithoutCulture = function(t6, n5) {
                try {
                  return this.Suo(t6);
                } catch (e4) {
                  if (n5) throw e4;
                  return t6;
                }
              }, t5.prototype.nMt = function(t6, n5, e4) {
                var i4 = this.POt;
                return (0, a.isNumber)(n5) && i4.pe(n5), i4.getCalcService().evaluateExpression(i4, t6, { row: n5 || 0, col: e4 || 0 });
              }, t5.prototype._fe = function(t6, n5, e4) {
                var i4 = this.POt;
                return i4.pe(n5, m, m, e4), i4.getCalcService().evaluateExpression(i4, t6, { row: n5 || 0, col: 0 });
              }, t5.prototype.getSourceData = function() {
                return this._dataSource.zIr();
              }, t5.prototype.getDataSync = function(t6) {
                return this._dataSource.tOt(t6);
              }, t5.prototype.NEt = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2 = this;
                if (t6) {
                  if (t6.indexOf(u2) >= 0) return g;
                } else {
                  if (u2.tRt) return u2.tRt;
                  e4 = true, t6 = [], n5 = [];
                }
                for (t6.push(u2), n5.push(new Promise((function(t7) {
                  if (u2.JOt) return u2.fetch().finally(t7);
                  t7(null);
                }))), i4 = u2.Pq, r3 = 0; r3 < i4.length; r3++) (a2 = (o3 = i4[r3]).targetTable) && a2.NEt(t6, n5);
                if (e4) return u2.tRt = Promise.all(n5), u2.tRt;
              }, t5.prototype.fetch = function(t6) {
                var n5, e4, i4 = this;
                return true === t6 && !i4.zgr || void 0 === i4.fye ? (i4.BEt && (n5 = i4.columns), e4 = i4.length(), i4.fye = i4._dataSource.load({ reload: t6 }).then((function(r3) {
                  return i4.isFetched() && !t6 || i4.ase(e4, n5, t6), Promise.resolve(r3);
                })).finally((function() {
                  i4.fye = void 0, i4.qGr = true;
                })), i4.fye) : i4.fye;
              }, t5.prototype.isFetched = function() {
                return !this.JOt;
              }, t5.prototype.cPt = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2 = this, c2 = {};
                if (t6 && (n5 = s2.columns)) for (i4 = 0, r3 = e4 = (0, a.getObjectKeys)(n5); i4 < r3.length; i4++) (u2 = n5[o3 = r3[i4]]).value && "=" === u2.value[0] && (c2[o3] = u2), "workTime" === u2.value && (c2[o3] = u2), "TaskResources" === u2.dataType && (c2[o3] = u2);
                return c2;
              }, t5.prototype.V3e = function(t6) {
                var n5, e4, i4, r3, o3 = this, u2 = o3._dataSource.options.schema, s2 = o3.get(0), c2 = u2 && u2.columns;
                if (c2) for (n5 in (0, a.isNullOrUndefined)(s2) && (s2 = {}), c2) s2.hasOwnProperty(n5) || c2[n5].spread || (s2[n5] = c2[n5]);
                s2 ? (e4 = (0, a.getObjectKeys)(s2), i4 = o3.columns = o3.cPt(true), r3 = o3.Pq = o3.Pq.filter((function(t7) {
                  return t7.sourceField || t7.targetField;
                })), e4.forEach((function(n6) {
                  var e5 = t6 && t6[n6];
                  i4[n6] = o3.nRt(n6, e5, c2 && c2[n6]), r3.push({ name: n6 });
                }))) : o3.columns = o3.cPt(true);
              }, t5.prototype.ase = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2 = this, l2 = c2._dataSource.options.schema, h2 = true === c2.JOt, d2 = t6 !== c2.length();
                if ((c2.JOt || e4) && (c2.V3e(n5), c2.JOt = false, c2.qGr = true), e4 && c2.ARt(), l2 && l2.columns) {
                  for (a2 in o3 = [], r3 = l2.columns) r3[a2] && r3[a2].indexed && o3.push(a2);
                  c2.eRt(o3);
                }
                if (e4 && c2.clearIndexes(), c2.BEt = false, c2.dl(), e4) for (s2 in c2._dataSource.pOt(), u2 = c2.views) u2.hasOwnProperty(s2) && u2[s2].iM(d2, true);
                c2.$3e = m, null === (i4 = this.QOt) || void 0 === i4 || i4.U0r.qwr(this.name), c2.ki(f.Events.TableFetched, { tableName: c2.name, reload: e4, isFirstTimeFetched: h2, isDataLengthChanged: d2 });
              }, t5.prototype.fetchSync = function(t6, n5, e4, i4) {
                var r3, o3, u2 = this, s2 = u2.length(), c2 = [];
                try {
                  c2 = u2._dataSource.loadSync(t6, n5, i4);
                } catch (t7) {
                  return u2._dataSource.oUr(t7), c2;
                }
                return r3 = m, o3 = (0, a.isNullOrUndefined)(t6), e4 && (r3 = u2.columns, o3 && u2.V3e(r3)), u2.ase(s2, r3, !o3), c2;
              }, t5.prototype.nRt = function(t6, n5, e4) {
                var i4, r3, o3, u2, s2 = this, c2 = { jOt: false };
                if ((0, a.isNullOrUndefined)(n5)) e4 && (e4.dataType && (i4 = e4.dataType), e4.isPrimaryKey && (c2.jOt = e4.isPrimaryKey));
                else {
                  for (r3 in n5) n5.hasOwnProperty(r3) && !(0, a.isNullOrUndefined)(n5[r3]) && (c2[r3] = n5[r3]);
                  i4 = n5.W5 || n5.dataType || e4 && e4.dataType, (o3 = n5.jOt || n5.isPrimaryKey || e4 && e4.isPrimaryKey) && (c2.jOt = o3);
                }
                return this.qOt && this.qOt.length > 0 && this.qOt.indexOf(t6) > -1 && (c2.jOt = true), c2.value = t6, c2.name = t6, e4 && !(0, a.isNullOrUndefined)(e4.caption) && (c2.caption = e4.caption), (e4 && "formula" === e4.dataType || "formula" === c2.dataType) && (u2 = (null == e4 ? void 0 : e4.value) || n5.value, c2.value = "=" === u2[0] ? u2 : "=" + u2, c2.readonly = true, c2.caption = t6), Object.defineProperty(c2, "dataType", { get: function() {
                  return i4;
                }, set: function(t7) {
                  if (i4 !== t7) {
                    "rowOrder" !== i4 && "rowOrder" !== t7 || !s2.isHierarchy() || s2.setHierarchyOptionChanged(), i4 = t7, "formula" !== t7 && s2._dataSource.xjt(this.name, this.dataType, this.dataPattern);
                    var n6 = this.value;
                    s2.dl(n6), s2.rRt(n6);
                  }
                } }), Object.defineProperty(c2, "isPrimaryKey", { get: function() {
                  return this.jOt;
                }, set: function(t7) {
                  this.jOt !== t7 && (this.jOt = t7, s2.qOt || (s2.qOt = []), s2.qOt.slice().sort().join(",") !== s2.Ljt(true).slice().sort().join(",") && s2.createIndexes(s2.qOt));
                } }), Object.defineProperty(c2, "mappedName", { get: function() {
                  return this.value;
                }, set: function(t7) {
                  if (this.value !== t7 && !(0, a.isNullOrEmpty)(t7)) {
                    var n6 = this.value;
                    s2._dataSource.Njt(n6, t7), s2.dl(n6), s2.rRt(t7), s2.oRt(n6, t7), s2.aRt(n6, t7), s2.Pq.forEach((function(e5) {
                      e5.name === n6 && (e5.name = t7);
                    })), s2.qOt = (s2.qOt || []).map((function(e5) {
                      return e5 === n6 ? t7 : e5;
                    })), s2.columns[t7] = s2.columns[n6], delete s2.columns[n6], this.name = this.value = t7;
                  }
                } }), Object.defineProperty(c2, "relationship", { get: function() {
                  var t7, n6, e5, i5 = s2.QOt.relationships;
                  for (t7 = 0, n6 = i5; t7 < n6.length; t7++) {
                    if ((e5 = n6[t7]).sourceTable === s2 && e5.sourceFieldName === this.value) return { table: e5.targetTable, field: e5.targetFieldName, sourceName: e5.sourceRelationshipName, targetName: e5.targetRelationshipName, relationship: e5 };
                    if (e5.targetTable === s2 && e5.targetFieldName === this.value) return { table: e5.sourceTable, field: e5.sourceFieldName, sourceName: e5.sourceRelationshipName, targetName: e5.targetRelationshipName, relationship: e5 };
                  }
                }, set: function(t7) {
                  var n6, e5, i5, r4 = s2.QOt.relationships;
                  for (n6 = 0, e5 = r4; n6 < e5.length; n6++) if ((i5 = e5[n6]).sourceRelationshipName === t7.sourceName) {
                    s2.QOt.removeRelationship(i5.sourceRelationshipName);
                    break;
                  }
                  t7.table && t7.field && s2.QOt.addRelationship(s2, this.value, t7.sourceName, t7.table, t7.field, t7.targetName);
                } }), c2;
              }, t5.prototype.isDataColumn = function(t6) {
                var n5 = (0, a.isString)(t6) ? t6 : t6.value;
                return !((0, a.isFormula)(n5) || (0, a.isNamedFormulaColumn)(t6) || (0, a.isRelation)(n5) || (0, a.isFunction)(n5)) && this._dataSource.YAe(n5);
              }, t5.prototype.canAddedColumn = function(t6) {
                return (0, a.isNamedFormulaColumn)(t6) && (0, a.isNullOrUndefined)(this.columns[t6.name]) || this.isDataColumn(t6);
              }, t5.prototype.hasExistedColumn = function(t6) {
                var n5 = (0, a.isString)(t6) ? t6 : t6.name;
                return !(0, a.isNullOrUndefined)(this.columns[n5]);
              }, t5.prototype.CGe = function(t6) {
                (0, a.isNamedFormulaColumn)(t6) || (t6.name = t6.value);
              }, t5.prototype.JFe = function(t6) {
                this._dataSource.JFe(t6);
                var n5 = t6.name;
                this.AGe(n5), delete this.columns[n5], this.Pq.splice(this.Pq.findIndex((function(t7) {
                  return t7.name === n5;
                })), 1);
              }, t5.prototype.addColumn = function(t6, n5, e4) {
                var r3, o3 = this;
                this.CGe(t6), !this.hasExistedColumn(t6) && this.canAddedColumn(t6) ? (this.SGe(t6), r3 = this.RQe(t6), this._dataSource.qFe(t6, r3, (function(t7) {
                  o3.dl(), o3.Yhe(), n5 && n5(t7);
                }), e4)) : e4({ type: i3.ADD_COLUMN, success: false });
              }, t5.prototype.SGe = function(t6, n5) {
                var e4 = t6.name, i4 = { name: e4 };
                this.columns[e4] = this.nRt(e4, t6), this.rRt(e4), (0, a.isNumber)(n5) ? this.Pq.splice(n5, 0, i4) : this.Pq.push(i4);
              }, t5.prototype.RQe = function(t6) {
                var n5, e4, i4, r3;
                if (t6 && !(0, a.isUndefined)(t6.defaultValue) && this.isDataColumn(t6)) {
                  if (n5 = this.length(), e4 = [], "object" != typeof t6.defaultValue || t6.defaultValue instanceof Date) if ((0, a.isFormula)(t6.defaultValue)) try {
                    for (r3 = this.Ywt(t6.defaultValue), i4 = 0; i4 < n5; i4++) e4.push(this.nMt(r3, i4));
                  } catch (t7) {
                  }
                  else for (i4 = 0; i4 < n5; i4++) e4.push(t6.defaultValue);
                  else if ((0, a.isArray)(t6.defaultValue)) for (i4 = 0; i4 < n5; i4++) e4.push(t6.defaultValue.slice());
                  else for (i4 = 0; i4 < n5; i4++) e4.push(M({}, t6.defaultValue));
                  return e4;
                }
              }, t5.prototype.eGe = function(t6) {
                this._dataSource.eGe(t6);
                var n5 = t6.table, e4 = t6.name;
                n5 && (n5.column && (this.columns[e4] = n5.column), n5.field && this.Pq.splice(n5.fieldIndex, 0, n5.field), this.dl(), this.Yhe());
              }, t5.prototype.removeColumn = function(t6, n5, e4) {
                var r3, o3 = this;
                !this.hasExistedColumn(t6) || this.lGe(t6) || this.hGe(t6) ? e4({ type: i3.REMOVE_COLUMN, success: false }) : (r3 = {}, this.TGe(t6, r3), this._dataSource.iGe(t6, (function(t7) {
                  t7.table = r3, o3.dl(), o3.Yhe(), n5 && n5(t7);
                }), e4));
              }, t5.prototype.TGe = function(t6, n5) {
                var e4, i4, r3 = !!n5;
                for ((n5 = n5 || {}).column = this.columns[t6], n5.name = t6, delete this.columns[t6], r3 || (this.dl(), this.Yhe()), this.XOt[t6] = m, e4 = 0; e4 < this.Pq.length; e4++) if ((i4 = this.Pq[e4]).name === t6) {
                  this.Pq.splice(e4, 1), n5.field = i4, n5.fieldIndex = e4;
                  break;
                }
                return e4;
              }, t5.prototype.AGe = function(t6) {
                this.dl(t6, true), this.Yhe(), this.ARt(t6), this.IGe(t6);
              }, t5.prototype.uGe = function(t6) {
                var n5, e4, i4;
                if (this._dataSource.uGe(t6), n5 = t6.table) {
                  if (this.AGe(n5.newName), (0, a.isNullOrUndefined)(n5.primaryKey) || (this.qOt = "" === n5.primaryKey ? [] : n5.primaryKey.split(",")), n5.column && (delete this.columns[n5.newName], this.columns[n5.name] = n5.column), n5.field) for (e4 = 0; e4 < this.Pq.length; e4++) (i4 = this.Pq[e4]).name === n5.newName && (i4.name = n5.name);
                  this.dl(), this.Yhe();
                }
              }, t5.prototype.updateColumn = function(t6, n5, e4, r3) {
                var o3, u2 = this;
                !this.hasExistedColumn(t6) || this.lGe(t6) || this.hGe(t6) ? r3({ type: i3.UPDATE_COLUMN, success: false }) : ((0, a.isNullOrUndefined)(n5.value) && (n5.value = t6), o3 = {}, this.CGe(n5), this.xGe(t6, n5, o3), this._dataSource.JEe(t6, n5, (function(t7) {
                  t7.table = o3, u2.dl(), u2.Yhe(), e4 && e4(t7);
                }), r3));
              }, t5.prototype.xGe = function(t6, n5, e4) {
                var i4, r3, o3, u2, s2, c2, f2 = (0, a.isNamedFormulaColumn)(n5), l2 = this.columns[t6].dataType, h2 = n5.dataType, d2 = false;
                for (l2 === h2 || (0, a.isNullOrEmpty)(h2) || ((0, a.isNullOrEmpty)(l2) ? (i4 = this._dataSource.MGe(t6)) !== h2 && (d2 = true) : d2 = true), (d2 || f2 && this.columns[t6].value !== n5.value) && this.AGe(t6), r3 = this.columns[t6], o3 = n5.name, (e4 = e4 || {}).column = r3, e4.name = t6, e4.newName = o3, delete this.columns[t6], u2 = 0; u2 < this.Pq.length; u2++) (s2 = this.Pq[u2]).name === t6 && (s2.name = o3);
                c2 = n5.type !== r3.type ? M({}, n5) : M(M({}, r3), n5), Object.keys(c2).forEach((function(t7) {
                  "_" === t7[0] && delete c2[t7];
                })), this.columns[o3] = this.nRt(o3, c2), r3.isPrimaryKey !== n5.isPrimaryKey && (e4.primaryKey = this.primaryKey(), n5.isPrimaryKey ? this.qOt = (this.qOt || []).concat(o3) : this.qOt = e4.primaryKey.split(",").filter((function(n6) {
                  return n6 !== t6;
                })));
              }, t5.prototype.dGe = function(t6) {
                return this.TGe(t6.column.name);
              }, t5.prototype.vGe = function(t6, n5) {
                this.SGe(t6.originalColumn, n5);
              }, t5.prototype.mGe = function(t6) {
                var n5;
                this.xGe(t6.column.name, t6.originalColumn);
              }, t5.prototype.hGe = function(t6) {
                return this._dataSource.hGe(t6);
              }, t5.prototype.length = function() {
                return this._dataSource.length();
              }, t5.prototype.getDirtyIndexes = function() {
                return this._dataSource.getDirtyIndexes();
              }, t5.prototype.isInserted = function(t6) {
                return this._dataSource.isInserted(t6);
              }, t5.prototype.isUpdated = function(t6, n5) {
                return this._dataSource.isUpdated(t6) || (n5 ? this.uRt(t6) : m);
              }, t5.prototype.getErrorInfo = function(t6) {
                return this._dataSource.getErrorInfo(t6);
              }, t5.prototype.uRt = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2 = this, c2 = s2.Pq;
                for (s2.WOt++, n5 = 0; n5 < c2.length; n5++) if (i4 = (e4 = c2[n5]).targetTable, r3 = e4.LOt, i4 && T(i4, s2) && r3 && r3[t6] && !i4.WOt) {
                  for (o3 = 0, a2 = r3[t6]; o3 < a2.length; o3++) if (u2 = a2[o3], i4.isUpdated(u2)) return s2.WOt--, true;
                }
                s2.WOt--;
              }, t5.prototype.iTe = function() {
                this.Pq.reduce((function(t6, n5) {
                  var e4 = n5.CRt;
                  return e4 && t6.push(e4), t6;
                }), []).forEach((function(t6) {
                  t6.VP();
                }));
              }, t5.prototype.rTe = function(t6) {
                var n5, e4, i4 = t6.ltt();
                for (n5 = 0; n5 < i4.length; n5++) (e4 = i4[n5].CRt) && (e4.sourceTable === t6 ? e4.Gf(this) : e4.Gf(m, m, m, this));
              }, t5.prototype.K3e = function() {
                return this._dataSource.K3e();
              }, t5.prototype.m5e = function() {
                var t6, n5, e4, i4, r3, o3, u2, s2, c2 = this.$3e;
                if ((0, a.isNullOrUndefined)(c2)) {
                  for (t6 = this.name + "__TriggerFormula__" + Math.floor(1e3 * Math.random()), (c2 = this.$3e = new y(t6, { data: [] })).REt(this.QOt), c2.fetchSync(), c2._dataSource.H3e(this._dataSource.DEt), n5 = this._dataSource.q3e(), i4 = 0, r3 = e4 = this._dataSource.DEt; i4 < r3.length; i4++) o3 = r3[i4], c2.p5e(o3, n5[o3]);
                  for (o3 in this.columns) this.columns.hasOwnProperty(o3) && (u2 = this.columns[o3].value, (0, a.isFormula)(u2) && c2.UTe(o3, u2));
                  for (o3 in s2 = this._dataSource.GTe()) s2.hasOwnProperty(o3) && c2.UTe(o3, s2[o3]);
                  c2.dl();
                }
                return c2;
              }, t5.prototype.y5e = function(t6, n5, e4) {
                var i4, r3;
                if (!(0, a.isNullOrUndefined)(t6) && Object.keys(t6).length > 0) {
                  for (r3 in i4 = this.m5e(), e4 ? (i4._dataSource.insertItem(0, e4), i4._dataSource.updateItem(0, n5)) : i4._dataSource.insertItem(0, n5), i4.rTe(this), t6) t6.hasOwnProperty(r3) && (n5[r3] = i4._getValueByField(r3, 0));
                  i4._dataSource.remove(0, 1), i4.dl(), i4.iTe();
                }
              }, t5.prototype.M5e = function(t6) {
                this.y5e(this._dataSource.q3e(), t6);
              }, t5.prototype.C5e = function(t6, n5) {
                var e4, i4 = this.vRt(n5), r3 = this._dataSource.q3e(u.TriggerWhenType.onNewAndUpdate), o3 = Object.keys(t6), a2 = function(t7) {
                  if (r3.hasOwnProperty(t7)) {
                    var n6 = (0, p.getWatchedFields)(r3[t7]);
                    -1 !== n6.indexOf("*") || o3.some((function(t8) {
                      return n6.some((function(n7) {
                        return n7 === t8;
                      }));
                    })) || delete r3[t7];
                  }
                };
                for (e4 in r3) a2(e4);
                this.y5e(r3, t6, i4);
              }, t5.prototype.insertItem = function(t6, n5, e4, r3, o3) {
                var a2, u2, s2, c2 = this;
                for (a2 in this.M5e(n5), n5) n5.hasOwnProperty(a2) && this.o_t(a2);
                u2 = { index: t6, data: n5 }, (s2 = this.ki(f.Events.ItemInserting, u2)) ? r3 && r3({ type: i3.CREATE, success: false, args: u2 }) : this._dataSource.insertItem(t6, n5, (function(i4) {
                  c2.sRt(t6, n5), c2.cRt(t6, n5), c2.dl(), c2.Yhe(), c2.ki(f.Events.ItemInserted, u2), e4 && e4(i4);
                }), r3, o3);
              }, t5.prototype.recoverItemAtBatch = function(t6, n5, e4, i4) {
                var r3, o3, a2 = this;
                for (r3 in this.M5e(n5), n5) n5.hasOwnProperty(r3) && this.o_t(r3);
                o3 = { index: t6, data: n5 }, this.ki(f.Events.ItemInserting, o3), this._dataSource.recoverItemAtBatch(t6, n5, (function(i5) {
                  a2.sRt(t6, n5), a2.cRt(t6, n5), a2.dl(), a2.Yhe(), a2.ki(f.Events.ItemInserted, o3), e4 && e4(i5);
                }), i4);
              }, t5.prototype.updateItem = function(t6, n5, e4, i4) {
                var r3, o3, u2, s2, c2, l2, h2, d2;
                for (c2 in this.C5e(n5, t6), r3 = [], o3 = {}, u2 = {}, s2 = [], n5) n5.hasOwnProperty(c2) && (l2 = n5[c2], h2 = this._getValueByField(c2, t6), (0, a.isNotDeepEqual)(l2, h2) && (r3 = r3.concat(this.hge(t6, c2)), u2[c2] = h2, o3[c2] = l2, s2.push(c2), this.o_t(c2)));
                d2 = { index: t6, data: o3, originalData: u2, changingFields: s2 }, this.ki(f.Events.ItemUpdating, d2), this._dataSource.updateItemValues(t6, o3, this.oTe(t6, o3, u2, d2, r3, e4), i4);
              }, t5.prototype.oTe = function(t6, n5, e4, i4, r3, o3) {
                var a2 = this;
                return function(u2) {
                  var s2, c2, l2;
                  for (s2 in n5) n5.hasOwnProperty(s2) && (c2 = e4[s2], l2 = n5[s2], a2.lRt(t6, c2, l2), a2.hRt(t6, s2, c2, l2));
                  a2.dl(), a2.Yhe(), a2.lge(t6, r3), a2.ki(f.Events.ItemUpdated, i4), o3 && o3(u2);
                };
              }, t5.prototype.fRt = function(t6, n5, e4, i4, r3, o3, a2) {
                var u2 = this;
                return function(s2) {
                  u2.lRt(t6, n5, e4), u2.hRt(t6, i4, n5, e4), u2.dl(), u2.Yhe(), u2.lge(t6, o3), u2.ki(f.Events.ItemUpdated, r3), a2 && a2(s2);
                };
              }, t5.prototype.dRt = function(t6, n5, e4, i4, r3, o3) {
                var a2 = this.hge(t6, e4), u2 = n5[e4], s2 = { index: t6, data: n5, field: e4, originalValue: i4, newValue: u2 };
                this.ki(f.Events.ItemUpdating, s2), this._dataSource.updateItem(t6, n5, this.fRt(t6, i4, u2, e4, s2, a2, r3), o3);
              }, t5.prototype.updateItemValue = function(t6, n5, e4, i4, r3) {
                var o3, a2, u2 = this.hge(t6, n5), s2 = this._getValueByField(n5, t6), c2 = this.vRt(t6);
                c2[n5] = e4, a2 = { index: t6, data: c2, field: n5, originalValue: s2, newValue: e4 }, this.ki(f.Events.ItemUpdating, a2), this._dataSource.updateItemValues(t6, ((o3 = {})[n5] = e4, o3), this.fRt(t6, s2, e4, n5, a2, u2, i4), r3);
              }, t5.prototype.resetItem = function(t6, n5, e4) {
                var i4, r3, o3, u2, s2, c2, l2 = this, h2 = (0, a.lastCallback)(n5, e4);
                this.mRt(t6, h2.suspend), this._dataSource.isUpdated(t6) && (this.o_t(m, true), i4 = h2.suspend(), r3 = i4.succeed, o3 = i4.fail, u2 = this.vRt(t6), s2 = this.gRt(t6), c2 = this.hge(t6), this.ki(f.Events.ItemResetting, { index: t6 }), this._dataSource.resetItem(t6, (function(n6) {
                  l2.pRt(t6, u2, s2), l2.dl(), l2.Yhe(), l2.lge(t6, c2), l2.ki(f.Events.ItemReset, { index: t6, originalData: u2, dataBeforeChanged: s2 }), r3(n6);
                }), o3)), h2.execute();
              }, t5.prototype.pRt = function(t6, n5, e4) {
                var i4, r3, o3, u2 = this, s2 = u2.columns;
                if (!(0, a.isNullOrUndefined)(n5) && !(0, a.isNullOrUndefined)(e4)) for (i4 in s2) s2.hasOwnProperty(i4) && (o3 = (r3 = s2[i4]).value instanceof Function ? r3.value.name : r3.value, u2.hRt(t6, o3, n5[o3], e4[o3]));
              }, t5.prototype.mRt = function(t6, n5) {
                var e4, i4, r3 = this, o3 = r3.Pq;
                for (r3.WOt++, e4 = function(e5) {
                  var i5, a2, u2, s2, c2, f2, l2, h2 = o3[e5], d2 = h2.targetTable, v2 = h2.LOt;
                  if (d2 && T(d2, r3) && v2 && v2[t6] && !d2.WOt) {
                    for (i5 = [], a2 = 0, u2 = v2[t6]; a2 < u2.length; a2++) s2 = u2[a2], d2.isInserted(s2) ? i5.push(s2) : d2.isUpdated(s2) && (f2 = (c2 = n5()).succeed, l2 = c2.fail, d2.resetItem(s2, f2, l2));
                    i5.length > 0 && (i5.sort((function(t7, n6) {
                      return n6 - t7;
                    })), i5.forEach((function(t7) {
                      var e6 = n5(), i6 = e6.succeed, r4 = e6.fail;
                      d2.qCt(t7, 1, i6, r4);
                    })));
                  }
                }, i4 = 0; i4 < o3.length; i4++) e4(i4);
                r3.WOt--;
              }, t5.prototype.saveItem = function(t6, n5, e4) {
                var i4, r3, o3, u2 = this, s2 = (0, a.lastCallback)(n5, e4), c2 = s2.suspend(), l2 = c2.succeed, h2 = c2.fail;
                this.bRt(t6, l2, h2), (this._dataSource.isUpdated(t6) || this._dataSource.isInserted(t6)) && (i4 = s2.suspend(), r3 = i4.succeed, o3 = i4.fail, this.ki(f.Events.ItemSaving, { index: t6 }), this._dataSource.saveItem(t6, (function(n6) {
                  u2.ki(f.Events.ItemSaved, { index: t6 }), r3(n6);
                }), o3)), s2.execute();
              }, t5.prototype.bRt = function(t6, n5, e4) {
                var i4, r3, o3, u2, s2, c2, f2, l2, h2, d2, v2 = (0, a.lastCallback)(n5, e4), p2 = v2.suspend, g2 = this, m2 = g2.Pq;
                for (g2.WOt++, i4 = 0; i4 < m2.length; i4++) if (o3 = (r3 = m2[i4]).targetTable, u2 = r3.LOt, o3 && T(o3, g2) && u2 && u2[t6] && !o3.WOt) for (s2 = 0, c2 = u2[t6]; s2 < c2.length; s2++) f2 = c2[s2], (o3.isUpdated(f2) || o3.isInserted(f2)) && (h2 = (l2 = p2()).succeed, d2 = l2.fail, o3.saveItem(f2, h2, d2));
                v2.execute((function() {
                  return g2.WOt--;
                }));
              }, t5.prototype.get = function(t6) {
                return this._dataSource.get(t6);
              }, t5.prototype.nv = function(t6) {
                return this._dataSource.s7t(t6);
              }, t5.prototype.TBe = function() {
                return this._dataSource.TBe();
              }, t5.prototype.removeItems = function(t6, n5, e4) {
                var i4 = this, r3 = (0, a.lastCallback)((function() {
                  i4.btt(t6, n5, e4);
                }), e4), o3 = r3.suspend(), u2 = o3.succeed, s2 = o3.fail;
                this.yRt(m, m, t6, u2, s2), r3.execute();
              }, t5.prototype.btt = function(t6, n5, e4) {
                var i4 = this, r3 = this, o3 = r3.Zc, a2 = { index: t6[0], count: t6.length, removingIndexes: t6, tableName: o3 };
                r3.o_t(m, true), this.ki(f.Events.ItemRemoving, a2), r3._dataSource.removeItems(t6, (function(e5) {
                  "number" == typeof e5.removedCount && (a2.count = e5.removedCount), e5.removingIndexes && (a2.removingIndexes = e5.removingIndexes), r3.dl(), r3.Yhe(), r3.wRt(), r3.MRt(m, m, t6), i4.ki(f.Events.ItemRemoved, a2), n5 && n5(e5);
                }), e4);
              }, t5.prototype.remove = function(t6, n5, e4, i4) {
                var r3, o3, u2, s2, c2 = this;
                void 0 === n5 && (n5 = 1), u2 = (o3 = (r3 = (0, a.lastCallback)((function() {
                  c2.qCt(t6, n5, e4, i4);
                }), i4)).suspend()).succeed, s2 = o3.fail, this.yRt(t6, n5, m, u2, s2), r3.execute();
              }, t5.prototype.qCt = function(t6, n5, e4, i4) {
                var r3, o3, a2 = this;
                this.o_t(m, true), r3 = this.Zc, o3 = { index: t6, count: n5, tableName: r3, removingIndexes: m }, this.ki(f.Events.ItemRemoving, o3), this._dataSource.remove(t6, n5, (function(i5) {
                  "number" == typeof i5.removedCount && (o3.count = i5.removedCount), i5.removingIndexes && (o3.removingIndexes = i5.removingIndexes), a2.dl(), a2.Yhe(), a2.wRt(), a2.MRt(t6, n5), a2.ki(f.Events.ItemRemoved, o3), e4 && e4(i5);
                }), i4);
              }, t5.prototype.yRt = function(t6, n5, e4, i4, r3) {
                var o3, u2, s2, c2 = (0, a.lastCallback)(i4, r3), f2 = c2.suspend, l2 = this, h2 = l2.Pq;
                for (l2.WOt++, o3 = function(i5) {
                  var r4, o4, a2, s3, c3, l3, d2, v2, p2, g2 = h2[i5], m2 = g2.targetTable, b2 = g2.CRt, y2 = g2.LOt;
                  if (m2 && b2.NOt(g2.name) && y2 && u2.JAe(t6, n5, y2, e4) && !m2.WOt) {
                    if (o4 = (r4 = f2()).succeed, a2 = r4.fail, s3 = [], c3 = function(t7) {
                      var n6 = y2[t7];
                      n6 && (s3 = s3.concat(Object.keys(n6).map((function(t8) {
                        return n6[t8];
                      }))));
                    }, e4 && e4.length > 0) for (l3 = 0, d2 = e4; l3 < d2.length; l3++) c3(v2 = d2[l3]);
                    else for (p2 = 0; p2 < n5; p2++) c3(t6 + p2);
                    if (0 === s3.length) return "continue";
                    m2.removeItems(s3, o4, a2);
                  }
                }, u2 = this, s2 = 0; s2 < h2.length; s2++) o3(s2);
                c2.execute((function() {
                  return l2.WOt--;
                }));
              }, t5.prototype.JAe = function(t6, n5, e4, i4) {
                if (i4 && i4.length > 0) return i4.some((function(t7) {
                  return e4[t7];
                }));
                for (var r3 = 0; r3 < n5; r3++) if (e4[t6 + r3]) return true;
                return false;
              }, t5.prototype.getChanges = function() {
                return this._dataSource.getChanges();
              }, t5.prototype.isDataLengthChanged = function() {
                return this._dataSource.isDataLengthChanged();
              }, t5.prototype.isDataRowOrderChanged = function() {
                return this._dataSource.isDataRowOrderChanged();
              }, t5.prototype.submitChanges = function(t6, n5, e4, i4) {
                var r3 = this;
                return new Promise((function(o3, a2) {
                  r3.SRt(t6, n5, (function(t7) {
                    e4 && e4(t7), o3(t7);
                  }), (function(t7) {
                    i4 && i4(t7), a2(t7);
                  }));
                }));
              }, t5.prototype.SRt = function(t6, n5, e4, i4) {
                var r3 = this, o3 = (0, a.lastCallback)((function() {
                  r3.wRt(), r3.ki(f.Events.ChangesSubmitting, m), r3._dataSource.submitChanges((function(n6, e5, i5) {
                    t6 ? t6(n6, e5, i5) : r3.ki(f.Events.ChangesSubmittedRowFailed, { index: n6, reason: e5, type: i5 });
                  }), (function(t7, e5, i5) {
                    n5 ? n5(t7, e5, i5) : r3.ki(f.Events.ChangesSubmittedColumnFailed, { name: t7, reason: e5, type: i5 });
                  })).then((function(t7) {
                    r3.ki(f.Events.ChangesSubmitted, t7), e4(t7);
                  })).catch((function(t7) {
                    i4(t7);
                  }));
                })), u2 = o3.suspend(), s2 = u2.succeed, c2 = u2.fail;
                this.TRt(s2, c2), o3.execute();
              }, t5.prototype.TRt = function(t6, n5) {
                var e4, i4, r3, o3, u2, s2, c2, f2 = (0, a.lastCallback)(t6, n5), l2 = f2.suspend, h2 = this, d2 = h2.Pq;
                for (h2.WOt++, e4 = 0; e4 < d2.length; e4++) r3 = (i4 = d2[e4]).targetTable, o3 = i4.LOt, r3 && o3 && !r3.WOt && (s2 = (u2 = l2()).succeed, c2 = u2.fail, r3.submitChanges(m, m, s2, c2));
                f2.execute((function() {
                  return h2.WOt--;
                }));
              }, t5.prototype.NGe = function() {
                return this._dataSource.getColumnChanges();
              }, t5.prototype.kGe = function() {
                var t6 = this;
                t6._Ge(this.NGe(), t6.dGe.bind(t6), t6.mGe.bind(t6), t6.vGe.bind(t6));
              }, t5.prototype._Ge = function(t6, n5, e4, r3) {
                var o3, u2, s2;
                if ((0, a.isArray)(t6)) for (o3 = 0, u2 = t6; o3 < u2.length; o3++) switch ((s2 = u2[o3]).type) {
                  case i3.ADD_COLUMN:
                    n5(s2);
                    break;
                  case i3.UPDATE_COLUMN:
                    e4(s2);
                    break;
                  case i3.REMOVE_COLUMN:
                    r3(s2);
                }
              }, t5.prototype.cancelChanges = function(t6, n5) {
                var e4 = this, i4 = (this.NGe() || []).some((function(t7) {
                  return "addColumn" === t7.type || "removeColumn" === t7.type;
                })), r3 = (0, a.lastCallback)((function() {
                  var n6 = { isDataLengthChanged: e4.isDataLengthChanged(), isDataRowOrderChanged: e4.isDataRowOrderChanged(), isColumnCountChanged: i4 };
                  e4.ki(f.Events.ChangesCancelling, m), e4.kGe(), e4._dataSource.cancelChanges(), e4.dl(), e4.Yhe(), e4.wRt(), e4.ARt(), e4.ki(f.Events.ChangesCancelled, n6), t6 && t6(m);
                }));
                this.IRt(r3.suspend), r3.execute();
              }, t5.prototype.IRt = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2 = this, c2 = s2.Pq;
                for (s2.WOt++, n5 = 0; n5 < c2.length; n5++) i4 = (e4 = c2[n5]).targetTable, r3 = e4.LOt, i4 && r3 && !i4.WOt && (a2 = (o3 = t6()).succeed, u2 = o3.fail, i4.cancelChanges(a2, u2));
                s2.WOt--;
              }, t5.prototype.xRt = function(t6, n5) {
                var e4 = t6 instanceof l.CalcField;
                return e4 && this._dataSource.oke(n5) && (e4 = false), e4 || t6 instanceof d.HierarchyField || t6 instanceof p.TriggerCalcField;
              }, t5.prototype.NRt = function() {
                var t6, n5, e4, i4, r3 = this.options.schema.hierarchy.column, o3 = [new RegExp("(\\[@)(".concat(r3, ")\\]|(PARENT)|(CHILDREN)|(ONLYCHILDREN)|(LEVEL)|(LEVELROWNUMBER)"))];
                for (t6 in this.XOt) Object.prototype.hasOwnProperty.call(this.XOt, t6) && (n5 = this.XOt[t6]) instanceof d.HierarchyField && (n5.C8(), o3.push(new RegExp("(\\[@)(".concat(n5.GOt, ")\\]"))));
                for (t6 in e4 = function(t7) {
                  if (Object.prototype.hasOwnProperty.call(i4.XOt, t7)) {
                    var n6 = i4.XOt[t7];
                    n6 instanceof l.CalcField && o3.some((function(t8) {
                      return t8.test(n6.GOt);
                    })) && n6.C8();
                  }
                }, i4 = this, this.XOt) e4(t6);
              }, t5.prototype.FOt = function(t6) {
                var n5, e4;
                for (n5 in this.XOt) Object.prototype.hasOwnProperty.call(this.XOt, n5) && (e4 = this.XOt[n5], this.xRt(e4) ? e4.C8(t6) : this.XOt[n5] = m);
              }, t5.prototype.removeCalcCache = function(t6) {
                this.XOt[t6] = m;
              }, t5.prototype.dl = function(t6, n5) {
                var e4, i4, r3, o3;
                if (null === (e4 = this.QOt) || void 0 === e4 || e4.U0r.qwr(this.name), t6) {
                  for (i4 = this.XOt[t6], this.xRt(i4, t6) ? i4.C8() : this.XOt[t6] = m, r3 = 0; r3 < this.Pq.length; r3++) if (t6 === (o3 = this.Pq[r3]).name || t6 === o3.sourceField || n5 && t6 === o3.targetField) return void (o3.LOt && o3.CRt.dl(this));
                } else for (this.FOt(), r3 = 0; r3 < this.Pq.length; r3++) (o3 = this.Pq[r3]).CRt && o3.CRt.dl(this);
              }, t5.prototype.primaryKey = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2, c2, f2, l2;
                if (0 === arguments.length) return this.qOt || (this.Ljt(), this.createIndexes(this.qOt)), this.qOt.join(",");
                if (!(0, a.isNullOrUndefined)(t6) && (this.qOt = (this.qOt || []).concat(t6.split(",")), n5 = this._dataSource.options.schema, !(0, a.isNullOrUndefined)(n5))) {
                  for (r3 in i4 = [], e4 = n5.columns = n5.columns || {}) Object.prototype.hasOwnProperty.call(e4, r3) && (o3 = e4[r3]).isPrimaryKey && i4.push(r3);
                  if (0 === i4.length) this.qOt.forEach((function(t7) {
                    "" === t7 || (0, a.isNullOrUndefined)(t7) || (e4[t7] = e4[t7] || {}, e4[t7].isPrimaryKey = true);
                  }));
                  else {
                    for (u2 = 0; u2 < i4.length; u2++) s2 = i4[u2], this.columns && this.columns[s2] && (this.columns[s2].isPrimaryKey = true);
                    for (c2 = this.qOt.slice().sort(), i4.sort(), f2 = i4, l2 = 0; l2 < c2.length || l2 < f2.length; l2++) if (c2[l2] !== f2[l2]) return void (this.qOt = f2);
                  }
                }
              }, t5.prototype.getIndexes = function() {
                return (0, a.getObjectKeys)(this.YOt);
              }, t5.prototype.kRt = function() {
                return (0, a.getObjectKeys)(this.ZOt);
              }, t5.prototype.createIndexes = function(t6) {
                var n5, e4, i4, r3 = this.YOt;
                for (n5 = 0, e4 = t6; n5 < e4.length; n5++) r3[i4 = e4[n5]] || (r3[i4] = this.DRt(i4));
              }, t5.prototype.eRt = function(t6, n5) {
                var e4, i4, r3, o3 = this.ZOt;
                for (e4 = 0, i4 = t6; e4 < i4.length; e4++) o3[r3 = i4[e4]] && !n5 || (o3[r3] = this._Rt(r3));
              }, t5.prototype.dropIndexes = function(t6) {
                var n5, e4, i4, r3 = this.YOt;
                for (n5 = 0, e4 = t6; n5 < e4.length; n5++) r3[i4 = e4[n5]] && delete r3[i4];
              }, t5.prototype.clearIndexes = function() {
                this.YOt = {};
              }, t5.prototype.oRt = function(t6, n5) {
                var e4 = this.YOt;
                (0, a.isNullOrUndefined)(e4[t6]) || (e4[n5] = e4[t6], delete e4[t6]);
              }, t5.prototype.IGe = function(t6) {
                this.ORt(t6) && this.dropIndexes([t6]);
              }, t5.prototype.ARt = function(t6) {
                t6 ? delete this.ZOt[t6] : this.ZOt = {};
              }, t5.prototype.aRt = function(t6, n5) {
                var e4 = this.ZOt;
                (0, a.isNullOrUndefined)(e4[t6]) || (e4[n5] = e4[t6], delete e4[t6]);
              }, t5.prototype.wRt = function() {
                var t6 = this.getIndexes();
                this.clearIndexes(), this.createIndexes(t6);
              }, t5.prototype.ERt = function() {
                var t6 = this.kRt();
                this.ARt(), this.eRt(t6);
              }, t5.prototype.DRt = function(t6) {
                var n5, e4, i4, r3, o3 = this.length();
                for (e4 = 0; e4 < o3; e4++) "string" != typeof (r3 = (i4 = this.get(e4))[t6]) && (r3 = String(r3)), n5 || (n5 = {}), n5[r3] || (n5[r3] = []), n5[r3] && n5[r3].push(e4);
                return n5;
              }, t5.prototype._Rt = function(t6) {
                var n5 = this;
                return A(t6, this.length(), this.jRt(t6), (function(e4) {
                  return n5._getValueByField(t6, e4);
                }));
              }, t5.prototype.ORt = function(t6) {
                return !!this.YOt[t6];
              }, t5.prototype.search = function(t6, n5) {
                if (!(0, a.isNullOrUndefined)(t6) && !(0, a.isNullOrUndefined)(n5)) return (0, a.isString)(t6) || (t6 = String(t6)), this.ORt(n5) ? this.RRt(t6, n5) : this.BRt(t6, n5);
              }, t5.prototype.mEt = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this.primaryKey().split(",");
                if (0 === a2.length || !this.YOt[a2[0]]) return [];
                if (1 === a2.length) return this.YOt[a2[0]][t6];
                if ((t6 = t6.split("|")).length !== a2.length) return [];
                for (n5 = 0; n5 < t6.length; n5++) t6[n5] = t6[n5].trim();
                for (e4 = {}, i4 = {}, this.YOt[a2[0]][t6[0]].forEach((function(t7) {
                  e4[t7] = 1;
                })), r3 = function(n6) {
                  o3.YOt[a2[n6]] && o3.YOt[a2[n6]][t6[n6]].forEach((function(t7) {
                    e4[t7] === n6 && (i4[t7] = n6);
                  })), e4 = i4, i4 = {};
                }, o3 = this, n5 = 1; n5 < t6.length; n5++) r3(n5);
                return Object.keys(e4);
              }, t5.prototype.kEt = function(t6, n5, e4) {
                var i4, r3, o3, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2;
                if (e4) {
                  for (i4 = {}, r3 = 0; r3 < n5.length; r3++) o3 = n5[r3], u2 = this._dataSource._data[o3], i4[o3] = u2 && u2.data[t6];
                  for (c2 = 0, f2 = s2 = this.QOt.relationships; c2 < f2.length; c2++) if ((l2 = f2[c2]).sourceTable === this && l2.targetTable !== this) {
                    for (h2 = {}, d2 = l2.sourceRelationshipName + ".", p2 = 0, g2 = v2 = (0, a.getObjectKeys)(l2.targetTable.columns); p2 < g2.length; p2++) h2[m2 = g2[p2]] = l2.sourceTable._getValueByField(d2 + m2, t6);
                    i4[l2.sourceRelationshipName] = h2;
                  }
                  return i4;
                }
                for (i4 = [], r3 = 0; r3 < n5.length; r3++) i4.push(this.rRt(n5[r3]).getValue(t6));
                return i4;
              }, t5.prototype.ASt = function(t6, n5, e4, i4) {
                var r3, o3, a2 = [], u2 = this.length();
                for (r3 = 0; r3 < u2; r3++) o3 = n5 && this.rRt(n5).getValue(r3), n5 !== g && o3 !== t6 && String(o3) !== t6 || a2.push(this.kEt(r3, e4 || this._dataSource.DEt, i4));
                return a2;
              }, t5.prototype.BRt = function(t6, n5) {
                var e4, i4, r3, o3 = [], a2 = this.length();
                for (e4 = 0; e4 < a2; e4++) (r3 = (i4 = this.get(e4))[n5]) !== t6 && String(r3) !== t6 || o3.push(i4);
                return o3;
              }, t5.prototype.RRt = function(t6, n5) {
                var e4, i4, r3, o3 = this.YOt, a2 = o3[n5], u2 = a2[t6], s2 = [];
                if (u2) for (e4 = 0, i4 = u2; e4 < i4.length; e4++) r3 = i4[e4], s2.push(this.get(r3));
                return s2;
              }, t5.prototype.sRt = function(t6, n5) {
                var e4, i4, r3, o3, u2, s2, c2, f2 = this.length();
                for (r3 in f2 && (e4 = f2 - 1 > t6), i4 = this.YOt) if (i4.hasOwnProperty(r3) && (o3 = i4[r3])) {
                  if (e4) for (u2 in o3) o3.hasOwnProperty(u2) && (s2 = o3[u2], (0, a.fixInsertIndexes)(s2, t6));
                  o3[c2 = n5[r3]] ? o3[c2].push(t6) : o3[c2] = [t6];
                }
              }, t5.prototype.cRt = function(t6, n5) {
                var e4 = this._dataSource.options.schema;
                I(this.ZOt, t6, n5, e4 && e4.columns, this.length());
              }, t5.prototype.lRt = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this.YOt;
                for (i4 in a2) a2.hasOwnProperty(i4) && (r3 = a2[i4]) && e4 !== n5 && ((o3 = r3[n5]) && o3.length > 1 ? o3.splice(o3.indexOf(t6), 1) : delete r3[n5], r3[e4] ? r3[e4].push(t6) : r3[e4] = [t6]);
              }, t5.prototype.hRt = function(t6, n5, e4, i4) {
                k(this.ZOt, t6, n5, e4, i4, this.jRt(n5));
              }, t5.prototype.dge = function() {
                var t6, n5, e4 = [];
                if (this.ZOt) for (n5 in t6 = this.ZOt) this.PAe(n5) && e4.push(n5);
                return e4;
              }, t5.prototype.ake = function() {
                var t6 = this.dge();
                t6 && t6.length > 0 && this.eRt(t6, true);
              }, t5.prototype.uke = function(t6) {
                var n5, e4;
                return !!(0, a.isFormula)(t6) || ("formula" === (null === (e4 = null === (n5 = this.columns) || void 0 === n5 ? void 0 : n5[t6]) || void 0 === e4 ? void 0 : e4.dataType) || this._dataSource.oke(t6));
              }, t5.prototype.Nfr = function(t6, n5) {
                return this.d0r(this.UAe(t6), (function(t7) {
                  return t7 === n5;
                }));
              }, t5.prototype.hge = function(t6, n5) {
                var e4, i4, r3 = [];
                if (this.ZOt) for (i4 in e4 = this.ZOt) this.uke(i4) && (n5 === m || this.Nfr(i4, n5) && !this.PAe(i4)) && r3.push({ field: i4, originValue: this._getValueByField(i4, t6) });
                return r3;
              }, t5.prototype.lge = function(t6, n5) {
                var e4, i4, r3;
                if (n5 && n5.length > 0) for (e4 = 0; e4 < n5.length; e4++) i4 = n5[e4].field, r3 = n5[e4].originValue, this.hRt(t6, i4, r3, this._getValueByField(i4, t6));
              }, t5.prototype.MRt = function(t6, n5, e4) {
                N(this.ZOt, t6, n5, e4);
              }, t5.prototype.LRt = function(t6, n5) {
                var e4, i4, r3 = this.ZOt, o3 = r3 && r3[t6];
                if (o3) {
                  for (e4 in o3) if (o3.hasOwnProperty(e4) && (i4 = o3[e4], (0, a.isArray)(i4) && i4.some((function(t7) {
                    return t7 === n5;
                  })))) return e4;
                }
              }, t5.prototype.jOt = function(t6) {
                return this.Ljt().indexOf(t6) >= 0;
              }, t5.prototype.OOt = function() {
                return this.Ljt().length > 1;
              }, t5.prototype.EOt = function() {
                return this.Ljt().length > 0;
              }, t5.prototype.Ljt = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2, c2;
                if (!this.qOt || t6) if (n5 = this._dataSource.options.schema, (0, a.isNullOrUndefined)(n5) || (0, a.isNullOrUndefined)(n5.columns) || 0 === Object.keys(n5.columns).length) for (e4 in this.qOt = [], this.columns) this.columns[e4].isPrimaryKey && this.qOt.push(e4);
                else {
                  for (e4 in r3 = [], i4 = n5.columns = n5.columns || {}) i4.hasOwnProperty(e4) && (o3 = i4[e4]).isPrimaryKey && r3.push(e4);
                  for (this.qOt || (this.qOt = []), u2 = this.qOt.slice().sort(), r3.sort(), s2 = r3, c2 = 0; c2 < u2.length || c2 < s2.length; c2++) if (u2[c2] !== s2[c2]) {
                    this.qOt = s2;
                    break;
                  }
                }
                return this.qOt;
              }, t5.prototype.defaultView = function() {
                var t6 = this;
                return t6.FRt ? Promise.resolve(t6.FRt) : new Promise((function(n5, e4) {
                  t6.fetch().then((function(e5) {
                    var i4 = t6.get(0), r3 = (0, a.getObjectKeys)(i4), o3 = t6.addView(c.DEFAULT_VIEW_NAME, r3);
                    t6.FRt = o3, n5(o3);
                  }));
                }));
              }, t5.prototype.addView = function(t6, n5, e4, i4) {
                var r3 = new s.View(t6, n5, e4, i4);
                return this.views[t6] = r3, r3.PRt(this), r3;
              }, t5.prototype.GRt = function(t6, n5) {
                var e4 = new s.View(t6, n5);
                return e4.PRt(this), this.QOt.rV[t6] = e4, e4;
              }, t5.prototype.removeView = function(t6) {
                var n5 = this.views;
                n5[t6].PRt(g), delete n5[t6], this.URt(t6);
              }, t5.prototype.URt = function(t6) {
                var n5, e4, i4 = this.QOt.tables;
                for (n5 in i4) i4.hasOwnProperty(n5) && (e4 = i4[n5]).VOt[t6] && (e4.VOt[t6].$Ot(e4), delete e4.VOt[t6]);
              }, t5.prototype.HRt = function(t6) {
                return this.views[t6];
              }, t5.prototype.zRt = function(t6) {
                var n5, e4, i4;
                for (n5 = 0, e4 = this.Pq; n5 < e4.length; n5++) if ((i4 = e4[n5]).name === t6) return i4;
                return null;
              }, t5.prototype.h1e = function(t6) {
                var n5, e4, i4;
                for (n5 = 0, e4 = this.Pq; n5 < e4.length; n5++) if ((i4 = e4[n5]).name.toUpperCase() === t6.toUpperCase()) return { field: i4, fieldName: i4.name };
                return null;
              }, t5.prototype.VRt = function(t6) {
                var n5, e4 = this.getDataSync(t6), i4 = [];
                if (t6) for (n5 = 0; n5 < t6.length; n5++) i4.push(e4[t6[n5]]);
                else for (n5 = 0; n5 < e4.length; n5++) i4.push(e4[n5]);
                return i4;
              }, t5.prototype.vRt = function(t6) {
                return this.VRt([t6])[0];
              }, t5.prototype.gRt = function(t6) {
                return this._dataSource.lOt(t6);
              }, t5.prototype.YRt = function(t6, n5) {
                var e4, i4 = [];
                for (e4 = 0; e4 < n5.length; e4++) i4.push(this._getValueByField(t6, n5[e4]));
                return i4;
              }, t5.prototype.p5e = function(t6, n5) {
                var e4 = this.XOt[t6];
                return e4 && e4 instanceof p.TriggerCalcField || (this.XOt[t6] = e4 = new p.TriggerCalcField(t6, n5, this)), e4;
              }, t5.prototype.bEt = function(t6) {
                if (this.XOt[t6] || !this.CEt() || (0, a.isNullOrEmpty)(this._dataSource.l7t(t6)) || (this.XOt[t6] = new d.HierarchyField(t6, this)), this.XOt[t6] || "=" !== t6[0] || this.bde(t6), !this.XOt[t6]) {
                  var n5 = this.UAe(t6);
                  "=" === (null == n5 ? void 0 : n5[0]) ? (this.bde(n5), this.XOt[t6] = new l.CalcField(n5, this)) : "=" === t6[0] ? this.XOt[t6] = new l.CalcField(t6, this) : this.XOt[t6] = new h.TableField(t6, this);
                }
                return this.XOt[t6];
              }, t5.prototype.GAe = function(t6) {
                return (0, a.isNullOrEmpty)(t6) || !(0, a.isString)(t6) ? [] : (0, v.addWindowOverFormulas)(this.POt, this.UAe(t6));
              }, t5.prototype.UAe = function(t6) {
                var n5, e4, i4, r3;
                return (0, a.isFormula)(t6) ? t6 : (i4 = null === (e4 = null === (n5 = this.columns) || void 0 === n5 ? void 0 : n5[t6]) || void 0 === e4 ? void 0 : e4.value, (0, a.isFormula)(i4) ? i4 : ((r3 = this._dataSource.BAe(t6)) && !(0, a.isFormula)(r3) && (r3 = "=" + r3), r3));
              }, t5.prototype.d0r = function(t6, n5) {
                var e4, i4, r3;
                return !((0, a.isNullOrEmpty)(t6) || !(0, a.isString)(t6)) && ((e4 = this.POt.getCalcService()).nke = e4.nke || {}, e4.nke.hasOwnProperty(t6) ? (e4.YTe = true, false) : (e4.nke[t6] = true, i4 = this.Ywt(t6), delete e4.nke[t6], r3 = e4.YTe, 0 === Object.keys(e4.nke).length && (delete e4.nke, delete e4.YTe), !r3 && this.v0r(i4, n5)));
              }, t5.prototype.v0r = function(t6, n5) {
                var e4, i4, r3, u2, s2, c2, f2, l2, h2, d2;
                if (!(0, a.isNullOrUndefined)(t6)) {
                  if (t6.function) {
                    for (i4 = 0, r3 = t6.arguments; i4 < r3.length; i4++) if (u2 = r3[i4], e4 = this.v0r(u2, n5)) return true;
                  } else if (14 === t6.type) {
                    if (t6.value && !t6.value.field.inCircular) {
                      if (e4 = n5(s2 = t6.value.field.GOt || t6.value.Pq.join("."))) return true;
                      if ((c2 = this.UAe(s2)) && (t6.value.field.inCircular = true, e4 = this.d0r(c2, n5), delete t6.value.field.inCircular, e4)) return true;
                    }
                  } else for (f2 = 0, l2 = Object.keys(t6); f2 < l2.length; f2++) if ((d2 = t6[h2 = l2[f2]]) instanceof o2.Expression && (e4 = this.v0r(t6[h2], n5))) return true;
                }
              }, t5.prototype.PAe = function(t6) {
                return !(0, a.isNullOrEmpty)(t6) && ("object" == typeof t6 && "string" == typeof t6.aggregate || this.GAe(t6).length > 0);
              }, t5.prototype.UTe = function(t6, n5) {
                var e4 = this.XOt[t6];
                return e4 && e4 instanceof l.CalcField || (this.XOt[t6] = e4 = new l.CalcField(n5 || t6, this)), e4;
              }, t5.prototype.wve = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2, c2, f2, d2, v2, p2, g2 = this.XOt;
                if (t6.D5 ? n5 = t6.D5 : (n5 = "=" !== (n5 = this.vde(t6))[0] ? "=" + n5 : n5, t6.D5 = n5), i4 = n5, r3 = n5.indexOf("=[@"), o3 = n5.lastIndexOf("]"), u2 = 0 === r3 && o3 === n5.length - 1) {
                  for (f2 = false, d2 = false, v2 = s2 = r3 + 3, p2 = c2 = o3 - 1; v2 < p2 && ("[" !== n5[v2] && s2 === r3 + 3 && (f2 = true, r3 = v2), "]" !== n5[p2] && c2 === o3 - 1 && (d2 = true, o3 = p2), !f2 || !d2); v2++, p2--) ;
                  i4 = n5.slice(r3, o3 + 1);
                }
                return e4 = g2[i4], (0, a.isNullOrUndefined)(e4) && (e4 = g2[i4] = u2 ? new h.TableField(i4, this) : new l.CalcField(i4, this, t6)), u2 ? function(t7) {
                  return e4.getValue(t7);
                } : function(t7) {
                  return e4.getValueWithContext(t7);
                };
              }, t5.prototype.g0r = function(t6, n5) {
                var e4, i4;
                return (0, v.isWindowOverFormula)(t6) && (t6 = (e4 = (0, v.deconstructWindowOverFunction)(this, t6)).formulaFromWindowChaining || e4.windowOverFormula), i4 = {}, (n5 = n5 || []).forEach((function(t7) {
                  i4[t7] = true;
                })), this.d0r(t6, (function(t7) {
                  (0, a.isString)(t7) && (0, a.isRelation)(t7) && !i4[t7] && (n5.push(t7), i4[t7] = true);
                })), n5;
              }, t5.prototype.HAe = function(t6, n5) {
                var e4, i4, r3, o3, u2 = this;
                if (!(0, a.isNullOrEmpty)(t6) && !(0, a.isNullOrUndefined)(n5) && 0 !== n5.length) for (e4 = 1 === n5.length && (0, v.isWindowOverFormula)(t6), i4 = 0; i4 < n5.length; i4++) r3 = n5[i4], o3 = (0, v.deconstructWindowOverFunction)(u2, r3), e4 && (o3.originalWindowOverFormula = t6), u2.Zhe(o3.windowOverFormula, o3);
              }, t5.prototype.bde = function(t6) {
                var n5, e4 = this;
                return !this.XOt[t6] && (n5 = e4.GAe(t6)).length > 0 && (e4.HAe(e4.UAe(t6), n5), true);
              }, t5.prototype.Zhe = function(t6, n5) {
                var e4, i4, r3, o3, u2, s2, c2;
                if (!(this.XOt[t6] && this.XOt[t6] instanceof v.WindowOverCalcField)) {
                  if (e4 = n5.partitions, i4 = n5.orders, (0, a.isArray)(e4)) for (r3 = 0; r3 < e4.length; r3++) o3 = e4[r3], this.columns[o3.field] || this.rRt(o3.field);
                  if ((0, a.isArray)(i4)) for (r3 = 0; r3 < i4.length; r3++) u2 = i4[r3], this.columns[u2.field] || this.rRt(u2.field);
                  s2 = n5.formulaFromWindowChaining || t6, c2 = this.XOt[s2], (0, a.isNullOrUndefined)(c2) && (c2 = new v.WindowOverCalcField(s2, this, n5)), this.XOt[s2] = c2, this.XOt[t6] = c2, (0, a.isNullOrUndefined)(n5.originalWindowOverFormula) || (this.XOt[n5.originalWindowOverFormula] = c2);
                }
                return this.XOt[t6];
              }, t5.prototype.cke = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2, m2 = Object.keys(t6), b2 = Object.keys(n5), y2 = [];
                for (e4 = 0, i4 = m2.concat(b2); e4 < i4.length; e4++) if (r3 = i4[e4], !n5.hasOwnProperty(r3) || t6[r3] !== n5[r3]) {
                  for (a2 = 0, u2 = o3 = Object.keys(this.XOt); a2 < u2.length; a2++) if (s2 = u2[a2], (c2 = this.XOt[s2]) instanceof v.WindowOverCalcField && c2.options.windowDefineName === r3 && s2.indexOf('"'.concat(r3, '"')) > -1) {
                    for (delete this.XOt[s2], f2 = 0, l2 = Object.keys(this.XOt); f2 < l2.length; f2++) h2 = l2[f2], this.XOt[h2] === c2 && delete this.XOt[h2];
                    y2.push(s2);
                  }
                }
                for (d2 = 0, p2 = y2; d2 < p2.length; d2++) g2 = p2[d2], this.bde(g2);
              }, t5.prototype.Yhe = function() {
                this.Whe(true) && this.ake();
              }, t5.prototype.Whe = function(t6) {
              }, t5.prototype.fme = function() {
                return 1 === Object.keys(this.views).length;
              }, t5.prototype.ZRt = function(t6) {
                try {
                  this.rRt(t6);
                } catch (t7) {
                }
                var n5 = this.XOt[t6];
                return n5 && n5.setValue;
              }, t5.prototype.WRt = function(t6, n5, e4) {
                this.rRt(t6);
                var i4 = this.XOt[t6];
                return this.o_t(t6), i4 && i4.setValue && i4.setValue(n5, e4);
              }, t5.prototype.QRt = function(t6, n5, e4, i4, r3) {
                this.rRt(t6);
                var o3 = this.XOt[t6];
                return this.o_t(t6), o3 && o3.setItemValue && o3.setItemValue(n5, e4, i4, r3);
              }, t5.prototype.KRt = function(t6, n5) {
                this.rRt(t6);
                var e4 = this.XOt[t6];
                return e4 && e4.hasItem && e4.hasItem(n5);
              }, t5.prototype.JRt = function(t6, n5, e4, i4, r3) {
                this.rRt(t6);
                var o3 = this.XOt[t6];
                return this.o_t(t6), o3 && o3.insertItem && o3.insertItem(n5, e4, i4, r3);
              }, t5.prototype._getValueByField = function(t6, n5, e4) {
                return this.rRt(t6), this.XOt[t6].getValue(n5, e4);
              }, t5.prototype.XRt = function(t6, n5) {
                return this.rRt(t6), this.XOt[t6].getOriginalValue(n5);
              }, t5.prototype.aTe = function(t6, n5) {
                return this.rRt(t6), this.XOt[t6].getRelatedModelIndex(n5);
              }, t5.prototype.qRt = function(t6) {
                return this.rRt(t6), this.XOt[t6].getRelatedTable();
              }, t5.prototype.$Rt = function(t6) {
                return this.rRt(t6), this.XOt[t6].getRelationMaps();
              }, t5.prototype.tBt = function(t6) {
                var n5, e4, i4, r3 = this, o3 = r3.QOt, a2 = o3.relationships;
                for (n5 = 0, e4 = a2; n5 < e4.length; n5++) {
                  if ((i4 = e4[n5]).sourceTable === r3 && i4.sourceFieldName === t6) return i4.targetTable;
                  if (i4.targetTable === r3 && i4.targetFieldName === t6) return i4.sourceTable;
                }
              }, t5.prototype.nBt = function(t6, n5) {
                return this.rRt(t6), this.XOt[t6].getHostTableIndexes(n5);
              }, t5.prototype.rRt = function(t6) {
                return this.XOt[t6] || this.bEt(t6), this.XOt[t6];
              }, t5.prototype.xOt = function(t6, n5, e4, i4, r3) {
                var o3 = { name: n5, sourceField: t6, targetTable: e4, targetField: i4, CRt: r3 };
                return this.Pq.push(o3), o3;
              }, t5.prototype.kOt = function(t6) {
                for (var n5 = this.Pq.length - 1; n5 >= 0; n5--) this.Pq[n5].CRt === t6 && this.Pq.splice(n5, 1);
              }, t5.prototype.eBt = function(t6) {
                var n5, e4, i4 = [this], r3 = this.Pq;
                for (n5 = 0; n5 < r3.length; n5++) (e4 = r3[n5].targetTable) && -1 === i4.indexOf(e4) && i4.push(e4);
                return t6 ? i4.slice(1) : i4;
              }, t5.prototype.DGe = function() {
                var t6, n5, e4 = [], i4 = [], r3 = this.Pq;
                for (t6 = 0; t6 < r3.length; t6++) (n5 = r3[t6].targetTable) && -1 === i4.indexOf(n5) ? (i4.push(n5), (0, a.isNullOrUndefined)(r3[t6].type) && this.rRt(r3[t6].name), e4.push({ field: r3[t6].name, tableName: n5.name, isMany: "array" === r3[t6].type, isTable: true })) : e4.push({ field: r3[t6].name });
                return e4;
              }, t5.prototype.jGe = function(t6, n5) {
                var e4, i4 = this;
                return t6 ? (null === (e4 = i4.qRt(t6)) || void 0 === e4 ? void 0 : e4.jGe(g, true)) || [] : i4.DGe().filter((function(t7) {
                  return n5 || t7.isTable;
                })).map((function(t7) {
                  return { table: t7.field, tableName: t7.tableName, isTable: t7.isTable, isMany: t7.isMany };
                }));
              }, t5.prototype.OGe = function(t6) {
                var n5, e4, i4 = this, r3 = (0, a.isString)(t6) ? t6 : t6.value;
                return i4.isDataColumn(r3) ? i4.rBt(r3) : (0, a.isRelation)(r3) && (n5 = i4.qRt(r3), e4 = r3.split(".").pop(), n5 && n5.columns && n5.columns[e4]) ? n5.rBt(e4) : void 0;
              }, t5.prototype.iBt = function(t6) {
                var n5 = this, e4 = n5.Pq, i4 = {};
                return e4.forEach((function(e5) {
                  var r3 = e5.name;
                  i4[r3] = n5._getValueByField(r3, t6);
                })), i4;
              }, t5.prototype.ltt = function() {
                return this.Pq;
              }, t5.prototype.rBt = function(t6) {
                var n5 = this.jRt(t6);
                return n5 && n5.dataType;
              }, t5.prototype.jRt = function(t6) {
                var n5, e4 = this, i4 = e4._dataSource.options.schema;
                return i4 && i4.columns && i4.columns[t6] ? n5 = i4.columns[t6] : (0, a.isNullOrUndefined)(e4.columns) || (n5 = e4.columns[t6]), n5;
              }, t5.prototype.oBt = function(t6) {
                var n5, e4, i4;
                return 0 === t6.length ? [] : ((i4 = (e4 = (n5 = this).zRt(t6[0])) && e4.targetTable ? e4.targetTable.oBt(t6.slice(1)) : []).unshift(e4), i4.filter((function(t7) {
                  return !(0, a.isNullOrUndefined)(t7);
                })));
              }, t5.prototype.F_e = function() {
                var t6, n5 = [], e4 = {}, i4 = this.name;
                return e4[i4] || (n5.push(i4), e4[i4] = true), (t6 = this.QOt) && this.P_e(t6, i4, n5, e4), n5;
              }, t5.prototype.P_e = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2, s2, c2 = t6.relationships;
                for (r3 = 0, o3 = c2; r3 < o3.length; r3++) u2 = (a2 = o3[r3]).sourceTable.name, s2 = a2.targetTable.name, u2 === n5 && s2 !== n5 ? i4[s2] || (e4.push(s2), i4[s2] = true, this.P_e(t6, s2, e4, i4)) : s2 === n5 && u2 !== n5 && (i4[u2] || (e4.push(u2), i4[u2] = true, this.P_e(t6, u2, e4, i4)));
              }, t5.prototype.BIr = function() {
                return this._dataSource.MOt();
              }, t5.prototype.toJSON = function(t6) {
                var n5, e4 = this.views, i4 = [];
                for (n5 in e4) e4.hasOwnProperty(n5) && i4.push(e4[n5].toJSON());
                return { name: this.name, dataSourceOption: j(this._dataSource.options), Ukr: (null == t6 ? void 0 : t6.n_r) ? this._dataSource.zIr() : m, primaryKey: this.primaryKey(), views: i4, columns: this.aBt(this.columns), notFetchAfterLoad: this.B_e };
              }, t5.prototype.fromJSON = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2 = this, s2 = t6.views;
                for (e4 = 0, i4 = s2; e4 < i4.length; e4++) r3 = i4[e4], (o3 = this.addView(r3.name, r3.columns, false, r3.options)).fromJSON(r3);
                return this.columns = t6.columns, this.columns && Object.keys(this.columns).forEach((function(t7) {
                  if ("=" === t7[0] && u2.columns[t7] && u2.columns[t7].value === t7 && u2.columns[t7].caption && "=" !== u2.columns[t7].caption[0]) {
                    var n6 = u2.columns[t7].caption;
                    u2.columns[n6] = u2.columns[t7], delete u2.columns[t7];
                  }
                })), this.primaryKey(t6.primaryKey), t6.Ukr ? a2 = this.fetchSync(m, true, m, t6.Ukr) : this._dataSource && this._dataSource.Dkr() && (a2 = this.fetchSync()), a2 ? Promise.resolve(a2) : t6.notFetchAfterLoad || (null === (n5 = this.options) || void 0 === n5 ? void 0 : n5.remote) && !this.options.remote.read ? Promise.resolve(null) : this.fetch();
              }, t5.prototype.bind = function(t6, n5) {
                this._dataSource.bind(t6, n5);
              }, t5.prototype.unbind = function(t6, n5) {
                this._dataSource.unbind(t6, n5);
              }, t5.prototype.ki = function(t6, n5) {
                var e4;
                return null === (e4 = this.QOt) || void 0 === e4 || e4.U0r.qwr(this.name), this._dataSource.ki(t6, n5);
              }, t5.prototype.vOt = function(t6) {
                return this._dataSource.vOt(t6);
              }, t5.prototype.aBt = function(t6) {
                var n5, e4;
                for (n5 in t6) t6.hasOwnProperty(n5) && !(0, a.isNullOrUndefined)(t6[n5]) && ((e4 = t6[n5]).W5 = e4.dataType);
                return t6;
              }, t5.prototype.z7t = function(t6, n5, e4) {
                return this._dataSource.z7t(t6, n5, e4);
              }, t5.prototype.V7t = function(t6) {
                return this._dataSource.V7t(t6);
              }, t5.prototype.d7t = function(t6, n5, e4) {
                return this._dataSource.d7t(t6, n5, e4);
              }, t5.prototype.uBt = function() {
                return this._dataSource.$jt();
              }, t5.prototype.qX = function() {
                return this._dataSource.qX();
              }, t5.prototype.m7t = function(t6, n5, e4, i4) {
                return this.CEt() && this.NRt(), this._dataSource.m7t(t6, n5, e4, i4);
              }, t5.prototype.lGe = function(t6, n5) {
                return this._dataSource.lGe(t6, n5);
              }, t5.prototype.CEt = function() {
                return this._dataSource.isHierarchy();
              }, t5.prototype.isHierarchy = function() {
                return this.CEt();
              }, t5.prototype.getHierarchyType = function() {
                return this._dataSource.Fjt();
              }, t5.prototype.isHierarchyOptionChanged = function() {
                return this._dataSource.a7t();
              }, t5.prototype.setHierarchyOptionChanged = function() {
                this._dataSource.u7t();
              }, t5.prototype.rebuildHierarchyStructure = function() {
                return this._dataSource.load({ reload: true });
              }, t5.prototype.SEt = function(t6) {
                return this._dataSource.SEt(t6);
              }, t5.prototype.f7t = function() {
                return this._dataSource.f7t();
              }, t5.prototype.getHierarchyRootNode = function() {
                return this.f7t();
              }, t5.prototype.M7t = function(t6) {
                this._dataSource.M7t(t6), this.NRt();
              }, t5.prototype.S7t = function(t6, n5) {
                this._dataSource.S7t(t6, n5), this.NRt();
              }, t5.prototype.O7t = function(t6, n5, e4) {
                return this._dataSource.O7t(t6, n5, e4);
              }, t5.prototype.L7t = function(t6, n5, e4) {
                return this._dataSource.L7t(t6, n5, e4);
              }, t5.prototype.F7t = function(t6, n5) {
                return this._dataSource.F7t(t6, n5);
              }, t5.prototype.G7t = function(t6, n5) {
                return this._dataSource.G7t(t6, n5);
              }, t5.prototype.oge = function(t6, n5) {
                return this._dataSource.oge(t6, n5);
              }, t5.prototype.H7t = function(t6) {
                return this._dataSource.H7t(t6);
              }, t5.prototype.h7t = function(t6, n5) {
                return this._dataSource.h7t(t6, n5);
              }, t5.prototype.BEe = function(t6) {
                return this._dataSource.BEe(t6);
              }, t5.prototype.REe = function(t6) {
                this._dataSource.REe(t6);
              }, t5.prototype.EEe = function() {
                return this._dataSource.EEe();
              }, t5.prototype.I7t = function(t6) {
                this._dataSource.I7t(t6);
              }, t5.prototype.X7t = function() {
                return this._dataSource.X7t();
              }, t5.prototype.jEe = function(t6) {
                return this._dataSource.jEe(t6);
              }, t5.prototype.OEe = function(t6, n5) {
                this._dataSource.OEe(t6, n5);
              }, t5.prototype.isColumnSpreadChanged = function() {
                return this._dataSource.Cue();
              }, t5.prototype.setColumnSpreadChanged = function(t6) {
                this._dataSource.Sue(t6);
              }, t5.prototype.getColumnValueType = function(t6, n5) {
                return n5 = n5 || ("string" == typeof t6.value ? t6.value : t6.name), this._dataSource.Y$r(t6, n5);
              }, t5.prototype.getColumnDataType = function(t6) {
                var n5, e4, i4, r3, o3;
                return "string" == typeof t6 ? (r3 = t6, t6 = {}) : r3 = "string" == typeof t6.value ? t6.value : t6.name, (o3 = t6.dataType || (null === (i4 = null === (e4 = null === (n5 = this.options.schema) || void 0 === n5 ? void 0 : n5.columns) || void 0 === e4 ? void 0 : e4[r3]) || void 0 === i4 ? void 0 : i4.dataType)) || this._dataSource.Y$r(t6, r3);
              }, t5;
            })(), n4.Table = b, y = (function(t5) {
              function n5() {
                return null !== t5 && t5.apply(this, arguments) || this;
              }
              return w(n5, t5), n5.prototype.getDataSync = function(t6) {
                var n6, e4, i4, r3 = [];
                if (t6) for (n6 = 0; n6 < t6.length; n6++) r3.push(this._dataSource.eTe(t6[n6]));
                else for (e4 = 0, i4 = this._dataSource.length(); e4 < i4; e4++) r3.push(this._dataSource.eTe(e4));
                return r3;
              }, n5;
            })(b);
          }, "./dist/src/table/tableEvents.js": function(t4, n4) {
            "use strict";
            Object.defineProperty(n4, "__esModule", { value: true }), n4.Events = void 0;
            var e3 = (function() {
              function t5() {
              }
              return t5.TableAdded = "TableAdded", t5.TableRemoved = "TableRemoved", t5.TableFetched = "TableFetched", t5.ItemInserting = "ItemInserting", t5.ItemInserted = "ItemInserted", t5.ItemUpdating = "ItemUpdating", t5.ItemUpdated = "ItemUpdated", t5.ItemResetting = "ItemResetting", t5.ItemReset = "ItemReset", t5.ItemSaving = "ItemSaving", t5.ItemSaved = "ItemSaved", t5.ItemRemoving = "ItemRemoving", t5.ItemRemoved = "ItemRemoved", t5.ChangesSubmitting = "ChangesSubmitting", t5.ChangesSubmittedRowFailed = "ChangesSubmittedRowFailed", t5.ChangesSubmittedColumnFailed = "ChangesSubmittedColumnFailed", t5.ChangesSubmitted = "ChangesSubmitted", t5.ChangesCancelling = "ChangesCancelling", t5.ChangesCancelled = "ChangesCancelled", t5.CalcValueCleared = "CalcValueCleared", t5;
            })();
            n4.Events = e3;
          }, "./dist/src/table/tableField.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a;
            function u(t5, n5, e4) {
              return function(r3, o3, a2, u2) {
                var s = t5.map[r3], c = s;
                return (0, i3.isNullOrUndefined)(c) && (s = t5.map[r3] = []), o3[n5.targetField] = e4._getValueByField(n5.sourceField, r3), t5.relatedTable.JRt(t5.subField, void 0, o3, (function(t6) {
                  s.push(t6.index), t6.index = s.length - 1, a2 && a2(t6);
                }), u2);
              };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.TableField = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = null, o2 = void 0, a = (function() {
              function t5(t6, n5) {
                var e4, o3, a2, s, c = this;
                this.Oit = [], e4 = "string" == typeof t6 ? t6.split(".") : t6, !(o3 = e4[0] && n5.zRt(e4[0])) && e4[0] && (a2 = n5.h1e(e4[0])) && (o3 = a2.field, e4[0] = a2.fieldName), o3 && o3.targetTable ? (this.relatedTable = o3.targetTable, this.map = o3.LOt, this.setValue = null, this.map || (o3.CRt.BOt(), this.map = o3.LOt), this.getRelationMaps = function() {
                  var t7 = [{ name: o3.name, relationshipMap: o3.CRt.DOt(o3.name) }];
                  if (this.relatedTable) return this.subField ? t7.concat(this.relatedTable.$Rt(this.subField)) : t7;
                }, this.getHostTableIndexes = function(t7) {
                  var n6, e5, i4, r3, a3 = [t7];
                  return this.relatedTable ? (this.subField && (a3 = this.relatedTable.nBt(this.subField, t7)), e5 = void 0, e5 = (n6 = o3.CRt).targetTable === this.relatedTable ? n6.targetRelationshipName : n6.sourceRelationshipName, i4 = this.relatedTable.zRt(e5), r3 = i4.LOt, a3.reduce((function(t8, n7) {
                    return t8.concat(r3[n7]);
                  }), [])) : a3;
                }, this.getRelatedModelIndex = function(t7) {
                  var n6 = this.map[t7];
                  if (!(0, i3.isNullOrUndefined)(n6)) return this.relatedTable.aTe(this.subField, n6[0]);
                }, "object" === o3.type ? 1 === e4.length ? (this.getValue = function(t7) {
                  var n6 = c.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? r2 : c.relatedTable.vRt(n6[0]);
                }, this.setValue = function(t7) {
                  var n6 = t7[e4[0]];
                  return t7[o3.sourceField] = n6 ? n6[o3.targetField] : null, t7;
                }) : (this.subField = e4.slice(1).join("."), this.getValue = function(t7) {
                  var n6 = c.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? r2 : c.relatedTable._getValueByField(c.subField, n6[0], true);
                }, this.getOriginalValue = function(t7) {
                  var n6 = this.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? r2 : this.relatedTable.XRt(this.subField, n6[0]);
                }, this.setItemValue = function(t7, n6, e5, o4) {
                  var a3 = c.map[t7];
                  return (0, i3.isNullOrUndefined)(a3) ? r2 : c.relatedTable.QRt(c.subField, a3[0], n6, e5, o4);
                }, this.hasItem = function(t7) {
                  var n6 = c.map[t7];
                  return !(0, i3.isNullOrUndefined)(n6) && c.relatedTable.KRt(c.subField, n6[0]);
                }, this.insertItem = u(this, o3, n5)) : 1 === e4.length ? this.getValue = function(t7) {
                  var n6 = c.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? [] : c.relatedTable.VRt(n6);
                } : (s = e4[1] - 1, isNaN(s) ? (this.subField = e4.slice(1).join("."), this.getValue = function(t7) {
                  var n6 = c.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? r2 : c.relatedTable.YRt(c.subField, n6);
                }, this.getOriginalValue = function(t7) {
                  var n6 = this.map[t7];
                  return (0, i3.isNullOrUndefined)(n6) ? r2 : this.relatedTable.XRt(this.subField, n6);
                }, this.hasItem = function(t7) {
                  var n6 = c.map[t7];
                  return n6 && n6.length > 0;
                }, this.insertItem = u(this, o3, n5)) : 2 === e4.length ? (this.arrayFieldIndex = e4[1] - 1, this.getValue = function(t7) {
                  var n6 = c.map[t7], e5 = n6 && n6[c.arrayFieldIndex];
                  return (0, i3.isNullOrUndefined)(e5) ? r2 : c.relatedTable.vRt(e5);
                }) : (this.arrayFieldIndex = s, this.subField = e4.slice(2).join("."), this.getValue = function(t7) {
                  var n6 = c.map[t7], e5 = n6 && n6[c.arrayFieldIndex];
                  return (0, i3.isNullOrUndefined)(e5) ? r2 : c.relatedTable._getValueByField(c.subField, e5);
                }, this.getOriginalValue = function(t7) {
                  var n6 = this.map[t7], e5 = n6 && n6[this.arrayFieldIndex];
                  return (0, i3.isNullOrUndefined)(e5) ? r2 : this.relatedTable.XRt(this.subField, e5);
                }, this.setItemValue = function(t7, n6, e5, r3) {
                  var o4 = c.map[t7], a3 = o4 && o4[c.arrayFieldIndex];
                  if (!(0, i3.isNullOrUndefined)(a3)) return c.relatedTable.QRt(c.subField, a3, n6, e5, r3);
                }, this.getRelatedModelIndex = function(t7) {
                  var n6 = this.map[t7], e5 = n6 && n6[this.arrayFieldIndex];
                  if (!(0, i3.isNullOrUndefined)(e5)) return this.relatedTable.aTe(this.subField, e5);
                }))) : (0 === e4.length ? this.getValue = function(t7) {
                  return n5._dataSource.get(t7);
                } : 1 === e4.length ? (this.getValue = function(t7) {
                  return n5._dataSource.getFieldValue(e4[0], t7);
                }, this.getOriginalValue = function(t7) {
                  return n5._dataSource.getFieldOriginalValue(e4[0], t7);
                }, this.getRelatedTable = function() {
                  return n5;
                }, this.setItemValue = function(t7, i4, r3, o4) {
                  return n5.updateItemValue(t7, e4[0], i4, r3, o4);
                }, this.hasItem = function(t7) {
                  return n5._dataSource.length() > t7;
                }, this.insertItem = function(t7, e5, r3, o4) {
                  var a3 = (0, i3.isNullOrUndefined)(t7) ? n5.length() : t7;
                  return n5.insertItem(a3, e5, (function(t8) {
                    t8.index = a3, r3 && r3(t8);
                  }), o4);
                }, this.setFieldValue = function(t7, e5, i4) {
                  var r3;
                  n5._dataSource.updateItemValues(t7, ((r3 = {})[e5] = i4, r3));
                }) : (this.getValue = function(t7) {
                  var r3, o4 = n5._dataSource.getFieldValue(e4[0], t7);
                  for (r3 = 1; o4 && r3 < e4.length; r3++) o4 = (0, i3.isArray)(o4) ? o4[e4[r3] - 1] : o4[e4[r3]];
                  return o4;
                }, this.setItemValue = function(t7, r3, o4, a3) {
                  var u2, s2, c2 = n5._getValueByField(e4[0], t7);
                  if (!(0, i3.isNullOrUndefined)(c2)) return s2 = (0, i3.clone)(c2, true), this.setValue(((u2 = {})[e4[0]] = s2, u2), r3), n5.updateItemValue(t7, e4[0], s2, o4, a3);
                }), this.setValue = function(t7, n6) {
                  var r3, o4 = t7, a3 = t7, u2 = e4.length;
                  for (r3 = 0; a3 && r3 < u2; r3++) o4 = (0, i3.isArray)(a3) ? a3[e4[r3] - 1] : a3[e4[r3]], r3 !== u2 - 1 && (a3 = o4);
                  return a3 !== o4 && (o4 !== n6 || (0, i3.isNullOrUndefined)(o4) && (0, i3.isNullOrUndefined)(n6)) && (a3[e4[u2 - 1]] = n6), t7;
                });
              }
              return t5.prototype.getValue = function(t6) {
                return null;
              }, t5.prototype.getValues = function(t6, n5, e4, r3, a2, u2) {
                var s, c, f;
                if (n5 = (0, i3.isNumber)(n5) ? n5 : 0, e4 = (0, i3.isNumber)(e4) ? e4 : t6.length - 1, (s = this.Oit).length !== t6.length || this.Xme !== t6) for (this.Xme = t6, this.Oit = s = [], c = s.length; c < t6.length; c++) s.push(this.getValue(t6[c]));
                return f = s.slice(n5, e4 + 1), r3 !== o2 && a2 !== o2 && (u2 !== o2 ? f.splice(r3 - n5, a2 - r3 + 1, f[u2 - n5]) : f.splice(r3 - n5, a2 - r3 + 1)), f;
              }, t5.prototype.setValue = function(t6, n5) {
                return null;
              }, t5.prototype.setItemValue = function(t6, n5, e4, i4) {
              }, t5.prototype.setFieldValue = function(t6, n5, e4) {
              }, t5.prototype.hasItem = function(t6) {
              }, t5.prototype.insertItem = function(t6, n5) {
              }, t5.prototype.getOriginalValue = function(t6) {
                return null;
              }, t5.prototype.getRelatedTable = function() {
                if (this.relatedTable) return this.subField ? this.relatedTable.qRt(this.subField) : this.relatedTable;
              }, t5.prototype.getRelationMaps = function() {
                return [];
              }, t5.prototype.getHostTableIndexes = function(t6) {
                return [t6];
              }, t5.prototype.getRelatedModelIndex = function(t6) {
                return t6;
              }, t5;
            })(), n4.TableField = a;
          }, "./dist/src/table/triggerCalcField.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5, n5, e4) {
              return t5.split(n5).join(e4);
            }
            function l(t5) {
              return t5.fields.split(",").reduce((function(t6, n5) {
                return n5 = n5.trim(), (0, a.isNullOrEmpty)(n5) || t6.push(n5), t6;
              }), []);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.getWatchedFields = n4.TriggerCalcField = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/calculation/functions/triggerFieldValue.js"), o2 = e3("./dist/src/dataSource/dataSource.interface.js"), a = e3("./dist/src/dataSource/utils.js"), u = e3("./dist/src/table/calcField.js"), s = e3("./dist/src/table/tableField.js"), c = (function() {
              function t5(t6, n5, e4) {
                var a2, c2, h;
                this.GOt = t6, this.nM = e4, this.HOt = new s.TableField(t6, e4), a2 = "=[@".concat(t6, "]"), n5 ? (this.MU = n5, this.S5e = n5.when === o2.TriggerWhenType.onNewAndUpdate, this.S5e && (this.T5e = l(n5), this.A5e = n5.fields.indexOf("*") > -1, this.I5e = this.A5e || this.T5e.indexOf(t6) > -1), a2 = n5.formula, c2 = ["[@".concat(t6, "]"), "[@[".concat(t6, "]]")], (a2.indexOf(c2[0]) > -1 || a2.indexOf(c2[1]) > -1) && (this.x5e = true), this.x5e && (h = "".concat(r2.TRIGGERFIELDVALUE, '("').concat(t6, '", ').concat(this.I5e ? 0 : 1, ")"), this.N5e = f(f(a2, c2[0], h), c2[1], h), this.vTe = new u.CalcField(this.N5e, this.nM, void 0, i3.Errors.Calc))) : this.k5e = true, this.UOt = new u.CalcField(a2, e4, void 0, i3.Errors.Calc);
              }
              return t5.prototype.getKey = function() {
                return this.UOt.getKey();
              }, t5.prototype.vyt = function() {
                this.UOt.vyt();
              }, t5.prototype.c_t = function() {
                return this.UOt.c_t();
              }, t5.prototype.P6t = function() {
                this.C8();
              }, t5.prototype.C8 = function() {
                this.UOt.C8(), this.vTe && this.vTe.C8(), this.HOt = new s.TableField(this.GOt, this.nM), this._5e = false;
              }, t5.prototype.getValue = function(t6) {
                var n5 = this, e4 = this.HOt.getValue(t6), r3 = (0, a.isUndefined)(e4);
                return r3 ? this.k5e ? e4 = this.nM.XRt(this.GOt, 0) : (this.S5e && (this.A5e || (r3 = this.T5e.some((function(t7) {
                  return !(0, a.isUndefined)(n5.nM._dataSource.getFieldValue(t7, 0));
                })))), r3 ? this.x5e ? (this.I5e && !this._5e && (this._5e = true), e4 = this.evaluateSelfTrigger(t6)) : e4 = this.evaluateTrigger(t6) : e4 = this.nM.XRt(this.GOt, 0)) : !this.I5e || this._5e || i3.Convert.BJ(e4) || (this._5e = true, e4 = this.x5e ? this.evaluateSelfTrigger(t6) : this.evaluateTrigger(t6)), e4;
              }, t5.prototype.evaluateTrigger = function(t6) {
                var n5 = this.UOt.getValue(t6);
                return this.HOt.setFieldValue(0, this.GOt, n5), n5;
              }, t5.prototype.evaluateSelfTrigger = function(t6) {
                var n5 = this.vTe.getValue(t6);
                return this.HOt.setFieldValue(0, this.GOt, n5), n5;
              }, t5.prototype.getValues = function(t6, n5) {
                var e4, i4, r3 = [];
                for (e4 = n5 = n5 || 0, i4 = t6.length; e4 < i4; e4++) r3.push(this.getValue(t6[e4]));
                return r3;
              }, t5.prototype.setValue = function(t6, n5) {
                return this.HOt.setValue(t6, n5);
              }, t5.prototype.setItemValue = function(t6, n5, e4, i4) {
                this.HOt.setItemValue(t6, n5, e4, i4);
              }, t5.prototype.hasItem = function(t6) {
                this.HOt.hasItem(t6);
              }, t5.prototype.insertItem = function(t6, n5) {
                this.HOt.insertItem(t6, n5);
              }, t5.prototype.getOriginalValue = function(t6) {
                return this.HOt.getOriginalValue(t6);
              }, t5.prototype.getRelatedTable = function() {
                return this.HOt.getRelatedTable();
              }, t5.prototype.getRelationMaps = function() {
                return this.HOt.getRelationMaps();
              }, t5.prototype.getHostTableIndexes = function(t6) {
                return this.HOt.getHostTableIndexes(t6);
              }, t5;
            })(), n4.TriggerCalcField = c, n4.getWatchedFields = l;
          }, "./dist/src/table/windowOverField.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h = this && this.qKr || (v = function(t5, n5) {
              return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, v(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              v(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), d = this && this.nJr || function() {
              return d = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, d.apply(this, arguments);
            }, v;
            function p(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2;
              for (void 0 === r3 && (r3 = false), o3 = e4, a2 = i4, u2 = f; o3 <= a2; ) (c2 = t5(s2 = Math.floor((o3 + a2) / 2))) >= n5 ? (r3 ? o3 = s2 + 1 : a2 = s2 - 1, u2 = s2) : r3 ? a2 = s2 - 1 : o3 = s2 + 1;
              return u2;
            }
            function g(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2;
              for (void 0 === r3 && (r3 = false), o3 = e4, a2 = i4, u2 = f; o3 <= a2; ) (c2 = t5(s2 = Math.floor((o3 + a2) / 2))) <= n5 ? (r3 ? a2 = s2 - 1 : o3 = s2 + 1, u2 = s2) : r3 ? o3 = s2 + 1 : a2 = s2 - 1;
              return u2;
            }
            function m(t5, n5, e4, i4, r3) {
              for (var o3, a2, u2, s2, c2 = i4, l2 = r3, h2 = f, d2 = e4.length - 1; c2 <= l2; ) {
                for (a2 = true, u2 = t5(o3 = Math.floor((c2 + l2) / 2)), s2 = d2; s2 >= 0; s2--) if (e4[s2] !== n5(u2, s2)) {
                  a2 = false;
                  break;
                }
                a2 ? (l2 = o3 - 1, h2 = o3) : c2 = o3 + 1;
              }
              return h2;
            }
            function b(t5, n5, e4, i4, r3) {
              for (var o3, a2, u2, s2, c2 = i4, l2 = r3, h2 = f, d2 = e4.length - 1; c2 <= l2; ) {
                for (a2 = true, u2 = t5(o3 = Math.floor((c2 + l2) / 2)), s2 = d2; s2 >= 0; s2--) if (e4[s2] !== n5(u2, s2)) {
                  a2 = false;
                  break;
                }
                a2 ? (c2 = o3 + 1, h2 = o3) : l2 = o3 - 1;
              }
              return h2;
            }
            function y(t5, n5, e4, i4) {
              for (var r3, o3 = e4, a2 = i4, u2 = f; o3 <= a2; ) t5(r3 = Math.floor((o3 + a2) / 2)) === n5 ? (o3 = r3 + 1, u2 = r3) : a2 = r3 - 1;
              return u2;
            }
            function w(t5, n5, e4, i4) {
              var r3, o3, a2, s2, c2;
              for (void 0 === i4 && (i4 = false), r3 = n5, o3 = e4, a2 = f; r3 <= o3; ) c2 = t5(s2 = Math.floor((r3 + o3) / 2)), (0, u.isNullOrUndefined)(c2) ? (i4 ? o3 = s2 - 1 : r3 = s2 + 1, a2 = s2) : i4 ? r3 = s2 + 1 : o3 = s2 - 1;
              return a2;
            }
            function M(t5) {
              return (0, u.isNumber)(t5) && t5 > -1 ? t5 : 0;
            }
            function C(t5, n5, e4) {
              var i4, r3, a2;
              return (0, u.isNullOrEmpty)(n5) || !(0, u.isString)(n5) ? [] : (e4 = e4 || [], (i4 = t5.getCalcService()).nke = i4.nke || {}, i4.nke.hasOwnProperty(n5) ? (i4.YTe = true, []) : (i4.nke[n5] = true, r3 = (0, o2.parseFormula)(t5, n5), delete i4.nke[n5], a2 = i4.YTe, 0 === Object.keys(i4.nke).length && (delete i4.nke, delete i4.YTe), a2 ? [] : (S(t5, r3, e4), e4)));
            }
            function S(t5, n5, e4) {
              var i4, r3, a2, f2, l2, h2, d2;
              if (!(0, u.isNullOrUndefined)(n5)) if (n5.function) if ((0, o2.getExprFunctionName)(n5) === o2.WINDOWOVER) e4.push("=" + (0, o2.unparseExpression)(t5, n5));
              else for (i4 = 0, r3 = n5.arguments; i4 < r3.length; i4++) S(t5, a2 = r3[i4], e4);
              else if (14 === n5.type) n5.value && n5.value.field instanceof s.CalcField && !n5.value.field.inCircular && (n5.value.field.inCircular = true, C(t5, n5.value.field.GOt, e4), delete n5.value.field.inCircular);
              else for (f2 = 0, l2 = Object.keys(n5); f2 < l2.length; f2++) (d2 = n5[h2 = l2[f2]]) instanceof c.Expression && S(t5, n5[h2], e4);
            }
            function T(t5) {
              if ((0, u.isNullOrEmpty)(t5)) return false;
              var n5 = typeof t5;
              return "string" === n5 && t5.indexOf(o2.WINDOWOVER) > -1 || "object" === n5 && "string" == typeof t5.aggregate;
            }
            function x(t5) {
              var n5 = t5.indexOf(o2.WINDOWOVER);
              return (0, u.isFormula)(t5) ? 1 === n5 : 0 === n5;
            }
            function A(t5, n5) {
              var e4, i4, r3, a2, u2 = [], s2 = o2.WINDOWOVER.length, c2 = s2 + 2, f2 = 0, l2 = 0;
              do {
                if (-1 === (f2 = t5.indexOf(o2.WINDOWOVER, f2))) break;
                for (l2 = f2 + s2, e4 = 0, i4 = "=".concat(o2.WINDOWOVER), r3 = 0; l2 < t5.length; l2++) if ((" " !== (a2 = t5[l2]) || " " === a2 && (false === n5 || r3 > 0)) && (i4 += a2), "(" === a2) e4++;
                else if (")" === a2) {
                  if (0 === --e4) break;
                } else "[" === a2 ? r3++ : "]" === a2 && r3--;
                if (l2 === t5.length) break;
                u2.push(i4), f2 = l2;
              } while (t5.length - f2 >= c2);
              return u2;
            }
            function I(t5, n5) {
              var e4 = t5.nMt(t5.Ywt(n5.replace(o2.WINDOWOVER, o2.WINDOWOVERDECONSTRUCT))), i4 = (e4.partitions || []).reduce((function(t6, n6) {
                return "".concat(t6, "__").concat(n6.field);
              }), "p"), r3 = (e4.orders || []).reduce((function(t6, n6) {
                return "".concat(t6, "__").concat(n6.field, "_").concat(n6.ascending);
              }), "o"), a2 = "f", u2 = e4.windowFrame;
              return u2 && (a2 += "__".concat(u2.type), u2.begin && (a2 += "__p__".concat(u2.begin.type, "__").concat(u2.begin.offset)), u2.end && (a2 += "__f__".concat(u2.end.type, "__").concat(u2.end.offset))), d({ partitionKey: i4, orderKey: r3, frameKey: a2, windowOverFormula: n5 }, e4);
            }
            function k(t5) {
              return "[" === t5[0] && "]" === t5[t5.length - 1];
            }
            function N(t5) {
              return (0, u.isFormula)(t5) ? t5.slice(1) : k(t5) ? t5 : "[".concat(t5, "]");
            }
            function j(t5, n5) {
              var e4;
              return (0, u.isNumber)(t5) ? e4 = 0 === t5 ? "[@]" : "[@".concat(t5, "]") : "current" === t5 ? e4 = "[@]" : "unbounded" === t5 && (e4 = "-1"), e4 || (n5 ? "-1" : "");
            }
            function D(t5, n5) {
              var e4, r3 = [];
              if (r3.push(j(n5.from, true)), e4 = j(n5.to, false), (0, u.isNullOrEmpty)(e4) || r3.push(e4), !(0, u.isNullOrEmpty)(n5.exclude)) switch (n5.exclude) {
                case i3.FrameExcludeNoOthers:
                  r3.push(0);
                  break;
                case i3.FrameExcludeCurrentRow:
                  r3.push(1);
                  break;
                case i3.FrameExcludeGroup:
                  r3.push(2);
                  break;
                case i3.FrameExcludeTies:
                  r3.push(3);
              }
              return "".concat(t5, "(").concat(r3.join(), ")");
            }
            function _(t5, n5) {
              var e4, r3, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2;
              if ("string" == typeof t5 || (0, u.isNullOrUndefined)(t5)) return t5;
              if (e4 = !n5, r3 = t5.aggregate, !(0, u.isNullOrEmpty)(r3) || !e4) {
                if (a2 = [], e4 && (0, u.isFormula)(r3) && (r3 = r3.slice(1)), e4 && a2.push(r3), s2 = t5.window, c2 = false, f2 = t5.partitionBy, l2 = t5.orderBy, h2 = t5.frame, (0, u.isArray)(f2) ? (d2 = f2.filter((function(t6) {
                  return !(0, u.isNullOrEmpty)(t6);
                })).map(N).join(), a2.push("".concat(o2.PARTITIONBY, "(").concat(d2, ")"))) : e4 && !(0, u.isNullOrEmpty)(s2) && (c2 = true, a2.push('"'.concat(s2, '"'))), !(0, u.isNullOrUndefined)(l2) && ((0, u.isArray)(l2) ? l2.length > 0 : Object.keys(l2).length > 0)) for (p2 = function(t6) {
                  var n6, e5, r4, s3, c3, f3, l3, h3, d3, v3 = Object.keys(t6);
                  if (v3.length > 0) {
                    for (n6 = [], e5 = function(t7) {
                      return "string" == typeof t7 || (0, u.isNullOrUndefined)(t7);
                    }, r4 = function(t7, e6) {
                      t7 === i3.OrderAsc ? n6.push("".concat(o2.ORDERASC, "(").concat(e6, ")")) : t7 === i3.OrderDesc ? n6.push("".concat(o2.ORDERDESC, "(").concat(e6, ")")) : n6.push(e6);
                    }, s3 = 0, c3 = v3; s3 < c3.length; s3++) l3 = N(f3 = c3[s3]), e5(h3 = t6[f3]) ? r4(h3, l3) : e5(d3 = h3.order) && r4(d3, l3);
                    a2.push("".concat(o2.ORDERBY, "(").concat(n6.join(), ")"));
                  }
                }, g2 = 0, m2 = v2 = (0, u.isArray)(l2) ? l2 : [l2]; g2 < m2.length; g2++) p2(b2 = m2[g2]);
                else !e4 || c2 || (0, u.isNullOrEmpty)(s2) || (c2 = true, a2.push('"'.concat(s2, '"')));
                return (0, u.isNullOrUndefined)(h2) ? !e4 || c2 || (0, u.isNullOrEmpty)(s2) || a2.push('"'.concat(s2, '"')) : (y2 = h2.rows, w2 = h2.range, M2 = h2.groups, y2 ? a2.push(D(o2.FRAMEROWS, y2)) : w2 ? a2.push(D(o2.FRAMERANGE, w2)) : M2 && a2.push(D(o2.FRAMEROWS, M2))), "=".concat(e4 ? o2.WINDOWOVER : o2.WINDOWDEF, "(").concat(a2.join(), ")");
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.parseWindowOverByOption = n4.deconstructWindowOverFunction = n4.getWindowOverFormulas = n4.isWindowOverFormula = n4.hasWindowOverFormulas = n4.processWindowOverFormula = n4.addWindowOverFormulas = n4.WindowOverCalcField = void 0, i3 = e3("./dist/src/dataSource/dataSource.interface.js"), r2 = e3("./dist/src/calculation/functions/windowFunctions/util.js"), o2 = e3("./dist/src/calculation/functions/windowOvers/util.js"), a = e3("./dist/src/dataSource/dataSource.interface.js"), u = e3("./dist/src/dataSource/utils.js"), s = e3("./dist/src/table/calcField.js"), c = e3("CalcEngine"), f = -1, l = (function(t5) {
              function n5(n6, e4, i4) {
                var r3 = t5.call(this, i4.windowFormula, e4) || this;
                return r3.GOt = n6, r3.options = i4, r3.zhe = function(t6) {
                  return e4.rRt(t6);
                }, r3.Qhe = { evaluator: r3 }, r3.Khe = true, r3.Mve(), r3.Cve(), r3.m0r(e4, n6), r3;
              }
              return h(n5, t5), n5.prototype.P6t = function() {
              }, n5.prototype.C8 = function(t6) {
                (false !== t6 || this.p0r) && (this.Tl = [], this.Khe = true, this.Mve());
              }, n5.prototype.getValue = function(t6) {
                return this.Tl[t6];
              }, n5.prototype.XBt = function(t6, n6, e4, i4) {
                var r3, o3, a2, s2 = this;
                if (s2.Tl || (s2.Tl = []), e4 = (0, u.isNumber)(e4) ? e4 : 0, i4 = (0, u.isNumber)(i4) ? i4 : t6.length - 1, (0, u.isArray)(n6)) for (o3 = e4, a2 = 0; o3 <= i4; o3++, a2++) r3 = t6[o3], s2.Tl[r3] = n6[a2];
                else for (o3 = e4; o3 <= i4; o3++) r3 = t6[o3], s2.Tl[r3] = n6;
                return s2.Tl;
              }, n5.prototype.m0r = function(t6, n6) {
                var e4 = this.options.partitions && this.options.partitions.some((function(t7) {
                  return (0, u.isRelation)(t7.field);
                }));
                (e4 = e4 || this.options.orders && this.options.orders.some((function(t7) {
                  return (0, u.isRelation)(t7.field);
                }))) || (e4 = t6.d0r(n6, (function(t7) {
                  return (0, u.isString)(t7) && (0, u.isRelation)(t7);
                }))), this.p0r = e4;
              }, n5.prototype.Mve = function() {
                var t6, n6 = this, e4 = n6.options, i4 = n6.Sve = {};
                if ((0, u.isArray)(e4.orders)) for (t6 = 0; t6 < e4.orders.length; t6++) i4[e4.orders[t6].field] = {};
              }, n5.prototype.Cve = function() {
                var t6 = this, n6 = t6.options.windowFormula, e4 = [r2.ROWNUMBER, r2.WRANK, r2.DENSERANK, r2.WPERCENTRANK, r2.CUMEDIST, r2.LEAD, r2.LAG, r2.NTILE, r2.FIRSTVALUE, r2.LASTVALUE, r2.NTHVALUE];
                t6.Tve = !e4.some((function(t7) {
                  return n6.indexOf(t7) > -1;
                }));
              }, n5.prototype.nMt = function(t6, n6, e4, i4, r3, o3, a2) {
                var u2, s2, c2 = this;
                return c2.calcSource.pe(t6, n6, e4, void 0, i4, r3, o3), (u2 = 7 === arguments.length) && c2.calcSource.wEt("extendContext", a2), s2 = c2.calcService.evaluateExpression(c2.calcSource, c2.expression, { row: 0, col: 0 }), u2 && c2.calcSource.wEt("extendContext"), s2;
              }, n5.prototype.Jhe = function(t6, n6, e4, i4, r3, o3, a2, s2) {
                var c2 = this, f2 = c2.Qhe.valueCache, l2, h2;
                if ((0, u.isNullOrUndefined)(f2)) {
                  if (-1 === n6 && -1 === e4) return;
                  c2.Qhe.begin = (0, u.isNumber)(r3) ? r3 : n6, h2 = c2.nMt(t6, n6, e4, o3, a2, s2, c2.Qhe), (0, u.isNumber)(i4) && (n6 = e4 = i4), f2 = c2.Qhe.valueCache, (0, u.isNullOrUndefined)(f2) || (h2 = f2, n6 = r3, e4 = void 0), c2.XBt(t6, h2, n6, e4);
                }
              }, n5.prototype.Ave = function(t6) {
                return this.Sve[t6];
              }, n5.prototype.Ive = function(t6, n6, e4) {
                var i4 = n6[e4];
                return void 0 !== i4 ? i4 : i4 = n6[e4] = this.calcSource.nM._getValueByField(t6, e4);
              }, n5.prototype.evaluateWindowFunction = function(t6, n6) {
                var e4 = this;
                e4.Xhe(t6, n6 || 0), e4.qhe(), e4.Khe = false;
              }, n5.prototype.qhe = function() {
                this.Qhe.begin = void 0, this.Qhe.valueCache = void 0;
              }, n5.prototype.Xhe = function(t6, n6) {
                var e4 = this, i4 = e4.options.windowFrame;
                i4 && i4.begin && -1 === i4.begin.offset && i4.end && -1 === i4.end.offset || (e4.Tve ? e4.$he(e4.options.windowFrame, t6, n6) : e4.Jhe(t6, n6, void 0, void 0, n6));
              }, n5.prototype.$he = function(t6, n6, e4) {
                var i4, r3, o3 = this, a2 = { startIndex: e4, endIndex: e4, lastStartIndex: e4, lastEndIndex: e4 }, u2 = o3.cye(n6, e4);
                for (i4 = e4, r3 = n6.length; i4 < r3; i4++) o3.Vhe(t6, e4, i4, n6, a2, u2), o3.Jhe(n6, a2.startIndex, a2.endIndex, i4, e4, a2.gapStartIndex, a2.gapEndIndex, a2.currentIndex);
              }, n5.prototype.Vhe = function(t6, n6, e4, i4, r3, o3) {
                var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = this, b2 = a.WindowOverFrameExcludeMode.none;
                r3.gapStartIndex = r3.gapEndIndex = r3.currentIndex = void 0, (0, u.isNullOrUndefined)(t6) ? (0, u.isNullOrUndefined)(m2.options.orders) || 0 === m2.options.orders.length ? (s2 = a.WindowOverFrameType.ROWS, c2 = a.WindowOverFramePreceding.UnBounded, l2 = a.WindowOverFrameFollowing.UnBounded) : (s2 = a.WindowOverFrameType.RANGE, c2 = a.WindowOverFramePreceding.UnBounded, l2 = a.WindowOverFrameFollowing.CurrentRow) : (s2 = t6.type, b2 = t6.exclude || b2, d2 = t6.begin, v2 = t6.end, d2 ? (c2 = d2.type, f2 = d2.offset) : c2 = a.WindowOverFramePreceding.UnBounded, v2 ? (l2 = v2.type, h2 = v2.offset) : l2 = a.WindowOverFrameFollowing.CurrentRow, s2 !== a.WindowOverFrameType.RANGE && s2 !== a.WindowOverFrameType.GROUPS || !(0, u.isNullOrUndefined)(m2.options.orders) && 0 !== m2.options.orders.length || (s2 = a.WindowOverFrameType.ROWS, c2 = a.WindowOverFramePreceding.UnBounded, l2 = a.WindowOverFrameFollowing.UnBounded)), p2 = i4.length - 1, s2 === a.WindowOverFrameType.RANGE ? (r3.startIndex = r3.lastStartIndex, r3.endIndex = r3.lastEndIndex, c2 === a.WindowOverFrameFollowing.NFollowing ? r3.startIndex = m2.nde(c2, f2, n6, p2, e4, i4, -1 === r3.startIndex ? e4 + 1 : r3.startIndex, true) : r3.startIndex = m2.tde(c2, f2, n6, e4, i4, -1 === r3.startIndex ? n6 : r3.startIndex), l2 === a.WindowOverFramePreceding.NPreceding ? r3.endIndex = m2.tde(l2, h2, n6, e4, i4, -1 === r3.endIndex ? n6 : r3.endIndex, true) : r3.endIndex = m2.nde(l2, h2, n6, p2, e4, i4, -1 === r3.endIndex ? e4 + 1 : r3.endIndex), r3.startIndex > r3.endIndex ? (r3.startIndex = -1, r3.endIndex = -1) : (m2.jme(c2, l2, n6, p2, r3), r3.lastStartIndex = r3.startIndex, r3.lastEndIndex = r3.endIndex, m2.lye(i4, r3, e4, b2))) : s2 === a.WindowOverFrameType.GROUPS ? (g2 = m2.hye(o3, e4), c2 === a.WindowOverFrameFollowing.NFollowing ? r3.startIndex = m2.dye(c2, f2, p2, e4, o3, g2, true) : r3.startIndex = m2.vye(c2, f2, n6, e4, o3, g2), l2 === a.WindowOverFramePreceding.NPreceding ? r3.endIndex = m2.vye(l2, h2, n6, e4, o3, g2, true) : r3.endIndex = m2.dye(l2, h2, p2, e4, o3, g2), m2.jme(c2, l2, n6, p2, r3), m2.mye(r3, e4, b2, o3 && o3[g2])) : s2 === a.WindowOverFrameType.ROWS && (c2 === a.WindowOverFrameFollowing.NFollowing ? r3.startIndex = m2.ide(c2, f2, p2, e4) : r3.startIndex = m2.ede(c2, f2, n6, e4), l2 === a.WindowOverFramePreceding.NPreceding ? r3.endIndex = m2.ede(l2, h2, n6, e4) : r3.endIndex = m2.ide(l2, h2, p2, e4), m2.jme(c2, l2, n6, p2, r3), m2.gye(i4, r3, e4, b2));
              }, n5.prototype.pye = function(t6, n6) {
                t6.startIndex <= n6 && n6 <= t6.endIndex && (t6.startIndex === n6 && t6.endIndex === n6 ? (t6.startIndex = -1, t6.endIndex = -1) : t6.startIndex === n6 ? t6.startIndex = n6 + 1 : t6.endIndex === n6 ? t6.endIndex = n6 - 1 : (t6.gapStartIndex = n6, t6.gapEndIndex = n6));
              }, n5.prototype.lye = function(t6, n6, e4, i4) {
                var r3, o3, s2, c2, l2, h2, d2, v2, p2, g2, y2, w2, M2, C2, S2, T2 = this;
                if (i4 === a.WindowOverFrameExcludeMode.current) T2.pye(n6, e4);
                else if (i4 !== a.WindowOverFrameExcludeMode.none) {
                  if (c2 = void 0, l2 = void 0, h2 = void 0, o3 = (r3 = T2.options.orders) && r3.length > 0) {
                    for (s2 = [], d2 = [], v2 = [], p2 = void 0, g2 = void 0, y2 = t6[e4], w2 = r3.length - 1, M2 = 0; M2 <= w2; M2++) p2 = r3[M2].field, g2 = T2.Ave(p2), d2.push(p2), v2.push(g2), s2.push(T2.Ive(p2, g2, y2));
                    c2 = function(n7) {
                      return t6[n7];
                    }, l2 = function(t7, n7) {
                      return T2.Ive(d2[n7], v2[n7], t7);
                    }, h2 = function(n7) {
                      var e5, i5 = t6[n7], r4 = !(0, u.isNumber)(i5);
                      if (!r4) {
                        for (e5 = w2; e5 >= 0; e5--) if (s2[e5] !== T2.Ive(d2[e5], v2[e5], i5)) {
                          r4 = true;
                          break;
                        }
                      }
                      return !r4;
                    };
                  }
                  i4 === a.WindowOverFrameExcludeMode.group ? o3 && n6.startIndex <= e4 && e4 <= n6.endIndex && (C2 = e4, h2(e4 - 1) && (C2 = m(c2, l2, s2, n6.startIndex, e4 - 1)) === f && (C2 = e4), S2 = e4, h2(e4 + 1) && (S2 = b(c2, l2, s2, e4 + 1, n6.endIndex)) === f && (S2 = e4), n6.gapStartIndex = C2, n6.gapEndIndex = S2, C2 === n6.startIndex && (n6.startIndex = S2 + 1, n6.gapStartIndex = void 0, n6.gapEndIndex = void 0), S2 === n6.endIndex && (n6.endIndex = C2 - 1, n6.gapStartIndex = void 0, n6.gapEndIndex = void 0), n6.startIndex > n6.endIndex && (n6.startIndex = -1, n6.endIndex = -1)) : i4 === a.WindowOverFrameExcludeMode.ties && o3 && n6.startIndex <= e4 && e4 <= n6.endIndex && (C2 = f, h2(e4 - 1) && (C2 = m(c2, l2, s2, n6.startIndex, e4 - 1)), S2 = f, h2(e4 + 1) && (S2 = b(c2, l2, s2, e4 + 1, n6.endIndex)), n6.gapStartIndex = C2, n6.gapEndIndex = S2, C2 === f && S2 === f ? (n6.gapStartIndex = void 0, n6.gapEndIndex = void 0) : C2 === f ? n6.gapStartIndex = e4 + 1 : S2 === f ? n6.gapEndIndex = e4 - 1 : n6.currentIndex = e4);
                }
              }, n5.prototype.mye = function(t6, n6, e4, i4) {
                var r3, o3, s2 = this;
                (0, u.isNullOrUndefined)(i4) || (e4 === a.WindowOverFrameExcludeMode.current ? s2.pye(t6, n6) : e4 === a.WindowOverFrameExcludeMode.group ? (r3 = i4.begin, o3 = i4.end, t6.startIndex < r3 && o3 < t6.endIndex ? (t6.gapStartIndex = r3, t6.gapEndIndex = o3) : t6.startIndex === r3 && t6.endIndex === o3 ? (t6.startIndex = -1, t6.endIndex = -1) : t6.startIndex <= o3 && t6.startIndex >= r3 ? t6.startIndex = o3 + 1 : t6.endIndex <= o3 && t6.endIndex >= r3 && (t6.endIndex = r3 - 1)) : e4 === a.WindowOverFrameExcludeMode.ties && (r3 = i4.begin, o3 = i4.end, t6.startIndex === r3 && t6.endIndex === o3 ? (t6.startIndex = n6, t6.endIndex = n6) : t6.startIndex <= r3 && o3 <= t6.endIndex ? (t6.gapStartIndex = r3, t6.gapEndIndex = o3, t6.currentIndex = n6) : t6.startIndex <= o3 && t6.startIndex >= r3 ? n6 < t6.startIndex ? t6.startIndex = o3 + 1 : (t6.gapStartIndex = t6.startIndex, t6.gapEndIndex = o3, t6.currentIndex = n6) : t6.endIndex <= o3 && t6.endIndex >= r3 && (n6 > t6.startIndex ? t6.endIndex = r3 - 1 : (t6.gapStartIndex = r3, t6.gapEndIndex = t6.endIndex, t6.currentIndex = n6))));
              }, n5.prototype.gye = function(t6, n6, e4, i4) {
                var r3, o3, s2, c2, l2, h2, d2, v2, p2, g2, y2, w2, M2, C2, S2, T2 = this;
                if (i4 === a.WindowOverFrameExcludeMode.current) T2.pye(n6, e4);
                else if (i4 !== a.WindowOverFrameExcludeMode.none) {
                  if (c2 = void 0, l2 = void 0, h2 = void 0, o3 = (r3 = T2.options.orders) && r3.length > 0) {
                    for (s2 = [], d2 = [], v2 = [], p2 = void 0, g2 = void 0, y2 = t6[e4], w2 = r3.length - 1, M2 = 0; M2 <= w2; M2++) p2 = r3[M2].field, g2 = T2.Ave(p2), d2.push(p2), v2.push(g2), s2.push(T2.Ive(p2, g2, y2));
                    c2 = function(n7) {
                      return t6[n7];
                    }, l2 = function(t7, n7) {
                      return T2.Ive(d2[n7], v2[n7], t7);
                    }, h2 = function(n7) {
                      var e5, i5 = t6[n7], r4 = !(0, u.isNumber)(i5);
                      if (!r4) {
                        for (e5 = w2; e5 >= 0; e5--) if (s2[e5] !== T2.Ive(d2[e5], v2[e5], i5)) {
                          r4 = true;
                          break;
                        }
                      }
                      return !r4;
                    };
                  }
                  i4 === a.WindowOverFrameExcludeMode.group ? o3 ? (n6.startIndex < e4 && e4 < n6.endIndex ? (C2 = e4, h2(e4 - 1) && (C2 = m(c2, l2, s2, n6.startIndex, e4 - 1)) === f && (C2 = e4), S2 = e4, h2(e4 + 1) && (S2 = b(c2, l2, s2, e4 + 1, n6.endIndex)) === f && (S2 = e4), n6.gapStartIndex = C2, n6.gapEndIndex = S2, C2 === n6.startIndex && (n6.startIndex = S2 + 1, n6.gapStartIndex = void 0, n6.gapEndIndex = void 0), S2 === n6.endIndex && (n6.endIndex = C2 - 1, n6.gapStartIndex = void 0, n6.gapEndIndex = void 0)) : e4 <= n6.startIndex ? h2(n6.startIndex) && (S2 = b(c2, l2, s2, n6.startIndex, n6.endIndex)) !== f && (n6.startIndex = S2 + 1) : e4 >= n6.endIndex && h2(n6.endIndex) && (C2 = m(c2, l2, s2, n6.startIndex, n6.endIndex)) !== f && (n6.endIndex = C2 - 1), n6.startIndex > n6.endIndex && (n6.startIndex = -1, n6.endIndex = -1)) : (n6.startIndex = -1, n6.endIndex = -1) : i4 === a.WindowOverFrameExcludeMode.ties && (o3 ? (n6.startIndex <= e4 && e4 <= n6.endIndex ? (C2 = f, h2(e4 - 1) && (C2 = m(c2, l2, s2, n6.startIndex, e4 - 1)), S2 = f, h2(e4 + 1) && (S2 = b(c2, l2, s2, e4 + 1, n6.endIndex)), n6.gapStartIndex = C2, n6.gapEndIndex = S2, C2 === f && S2 === f ? (n6.gapStartIndex = void 0, n6.gapEndIndex = void 0) : C2 === f ? n6.gapStartIndex = e4 + 1 : S2 === f ? n6.gapEndIndex = e4 - 1 : n6.currentIndex = e4) : e4 < n6.startIndex ? h2(n6.startIndex) && (S2 = b(c2, l2, s2, n6.startIndex, n6.endIndex)) !== f && (n6.startIndex = S2 + 1) : e4 > n6.endIndex && h2(n6.endIndex) && (C2 = m(c2, l2, s2, n6.startIndex, n6.endIndex)) !== f && (n6.endIndex = C2 - 1), n6.startIndex > n6.endIndex && (n6.startIndex = -1, n6.endIndex = -1)) : (n6.startIndex = e4, n6.endIndex = e4));
                }
              }, n5.prototype.jme = function(t6, n6, e4, i4, r3) {
                t6 === a.WindowOverFramePreceding.UnBounded ? n6 === a.WindowOverFramePreceding.NPreceding ? -1 !== r3.startIndex && -1 === r3.endIndex && (r3.startIndex = -1) : n6 === a.WindowOverFrameFollowing.NFollowing && -1 !== r3.startIndex && -1 === r3.endIndex && (r3.endIndex = i4) : t6 === a.WindowOverFramePreceding.NPreceding ? n6 === a.WindowOverFramePreceding.NPreceding || n6 === a.WindowOverFramePreceding.CurrentRow ? -1 === r3.startIndex && -1 !== r3.endIndex && (r3.startIndex = e4) : n6 !== a.WindowOverFrameFollowing.NFollowing && n6 !== a.WindowOverFrameFollowing.UnBounded || (-1 === r3.startIndex && (r3.startIndex = e4), -1 === r3.endIndex && (r3.endIndex = i4)) : t6 === a.WindowOverFramePreceding.CurrentRow ? n6 === a.WindowOverFrameFollowing.NFollowing && -1 === r3.endIndex && (r3.endIndex = i4) : t6 === a.WindowOverFrameFollowing.NFollowing && (n6 === a.WindowOverFrameFollowing.NFollowing ? -1 !== r3.startIndex && -1 === r3.endIndex ? r3.endIndex = i4 : -1 === r3.startIndex && -1 !== r3.endIndex && (r3.endIndex = -1) : n6 === a.WindowOverFrameFollowing.UnBounded && -1 === r3.startIndex && -1 !== r3.endIndex && (r3.endIndex = -1));
              }, n5.prototype.ede = function(t6, n6, e4, i4) {
                var r3;
                switch (t6) {
                  case a.WindowOverFramePreceding.UnBounded:
                    r3 = e4;
                    break;
                  case a.WindowOverFramePreceding.NPreceding:
                    r3 = (r3 = i4 - M(n6)) >= e4 ? r3 : -1;
                    break;
                  case a.WindowOverFramePreceding.CurrentRow:
                  default:
                    r3 = i4;
                }
                return r3;
              }, n5.prototype.ide = function(t6, n6, e4, i4) {
                var r3;
                switch (t6) {
                  case a.WindowOverFrameFollowing.UnBounded:
                    r3 = e4;
                    break;
                  case a.WindowOverFrameFollowing.NFollowing:
                    r3 = (r3 = i4 + M(n6)) <= e4 ? r3 : -1;
                    break;
                  case a.WindowOverFrameFollowing.CurrentRow:
                  default:
                    r3 = i4;
                }
                return r3;
              }, n5.prototype.vye = function(t6, n6, e4, i4, r3, o3, s2) {
                var c2, f2, l2;
                switch (t6) {
                  case a.WindowOverFramePreceding.UnBounded:
                    c2 = e4;
                    break;
                  case a.WindowOverFramePreceding.NPreceding:
                    c2 = e4, (0, u.isNullOrUndefined)(r3) || (f2 = r3[o3 - M(n6)], c2 = (0, u.isNullOrUndefined)(f2) ? -1 : s2 ? f2.end : f2.begin);
                    break;
                  case a.WindowOverFramePreceding.CurrentRow:
                    c2 = i4, (0, u.isNullOrUndefined)(r3) || (l2 = r3[o3], c2 = s2 ? l2.end : l2.begin);
                    break;
                  default:
                    c2 = i4;
                }
                return c2;
              }, n5.prototype.dye = function(t6, n6, e4, i4, r3, o3, s2) {
                var c2, f2, l2;
                switch (t6) {
                  case a.WindowOverFrameFollowing.UnBounded:
                    c2 = e4;
                    break;
                  case a.WindowOverFrameFollowing.NFollowing:
                    c2 = e4, (0, u.isNullOrUndefined)(r3) || (f2 = r3[o3 + M(n6)], c2 = (0, u.isNullOrUndefined)(f2) ? -1 : s2 ? f2.begin : f2.end);
                    break;
                  case a.WindowOverFrameFollowing.CurrentRow:
                    c2 = i4, (0, u.isNullOrUndefined)(r3) || (l2 = r3[o3], c2 = s2 ? l2.begin : l2.end);
                    break;
                  default:
                    c2 = i4;
                }
                return c2;
              }, n5.prototype.tde = function(t6, n6, e4, i4, r3, o3, s2) {
                var c2, f2, l2, h2, d2, v2, m2, b2, y2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O, E, R = this, L = R.options.orders;
                switch (t6) {
                  case a.WindowOverFramePreceding.NPreceding:
                    if (n6 = M(n6), c2 = e4, 1 === L.length && (c2 = i4, i4 >= e4)) if (f2 = L[0].field, l2 = L[0].ascending, h2 = R.Ave(f2), d2 = R.Ive(f2, h2, r3[i4]), (0, u.isNullOrUndefined)(d2)) {
                      if (v2 = r3[i4 - 1], d2 !== (m2 = R.Ive(f2, h2, v2))) return c2;
                      c2 = o3;
                    } else (0, u.isNumber)(d2) && (b2 = false === l2 ? d2 + n6 : d2 - n6, y2 = function(t7) {
                      return R.Ive(f2, h2, r3[t7]);
                    }, C2 = r3[w2 = i4 - 1], c2 = (T2 = (S2 = !(0, u.isNumber)(C2) || i4 === e4) || (false === l2 ? b2 < R.Ive(f2, h2, C2) : b2 > R.Ive(f2, h2, C2))) ? s2 ? S2 ? -1 : w2 : i4 : s2 ? false === l2 ? p(y2, b2, o3, w2, true) : g(y2, b2, o3, w2) : false === l2 ? g(y2, b2, o3, w2, true) : p(y2, b2, o3, w2));
                    break;
                  case a.WindowOverFramePreceding.UnBounded:
                    c2 = e4;
                    break;
                  case a.WindowOverFramePreceding.CurrentRow:
                  default:
                    if (c2 = i4, i4 > e4) if (1 === L.length) {
                      if (x2 = L[0].field, A2 = R.Ave(x2), I2 = R.Ive(x2, A2, r3[i4]), v2 = r3[i4 - 1], I2 !== (k2 = R.Ive(x2, A2, v2))) return c2;
                      c2 = o3;
                    } else {
                      for (I2 = [], N2 = [], j2 = [], x2 = void 0, A2 = void 0, D2 = r3[i4], _2 = 0; _2 < L.length; _2++) x2 = L[_2].field, A2 = R.Ave(x2), N2.push(x2), j2.push(A2), I2.push(R.Ive(x2, A2, D2));
                      for (v2 = void 0, O = I2.length - 1, v2 = r3[i4 - 1], E = O; E >= 0; E--) if (I2[E] !== R.Ive(N2[E], j2[E], v2)) return c2;
                      c2 = o3;
                    }
                }
                return c2;
              }, n5.prototype.nde = function(t6, n6, e4, i4, r3, o3, s2, c2) {
                var l2, h2, d2, v2, m2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, O, E, R, L, F, B, P, G, U, H = this, V = H.options.orders;
                switch (t6) {
                  case a.WindowOverFrameFollowing.NFollowing:
                    n6 = M(n6), l2 = i4, 1 === V.length && (h2 = V[0].field, d2 = V[0].ascending, v2 = H.Ave(h2), m2 = H.Ive(h2, v2, o3[r3]), C2 = function(t7) {
                      return H.Ive(h2, v2, o3[t7]);
                    }, (0, u.isNullOrUndefined)(m2) ? (S2 = true, r3 !== e4 && (T2 = o3[r3 - 1], S2 = !(0, u.isNumber)(T2) || m2 !== H.Ive(h2, v2, T2)), l2 = s2, S2 && (x2 = o3[r3 + 1], l2 = (A2 = !(0, u.isNumber)(x2) || m2 !== H.Ive(h2, v2, x2)) ? r3 : w(C2, s2, i4, false === d2))) : (0, u.isNumber)(m2) && (I2 = false === d2 ? m2 - n6 : m2 + n6, x2 = o3[k2 = r3 + 1], l2 = (A2 = (N2 = !(0, u.isNumber)(x2) || r3 === i4) || (false === d2 ? I2 > H.Ive(h2, v2, x2) : I2 < H.Ive(h2, v2, x2))) ? c2 ? N2 ? -1 : k2 : r3 : c2 ? false === d2 ? g(C2, I2, s2, i4, true) : p(C2, I2, s2, i4) : false === d2 ? p(C2, I2, s2, i4, true) : g(C2, I2, s2, i4)));
                    break;
                  case a.WindowOverFrameFollowing.UnBounded:
                    l2 = i4;
                    break;
                  case a.WindowOverFrameFollowing.CurrentRow:
                  default:
                    if (1 === V.length) j2 = V[0].field, D2 = H.Ave(j2), _2 = H.Ive(j2, D2, o3[r3]), C2 = function(t7) {
                      return H.Ive(j2, D2, o3[t7]);
                    }, S2 = true, r3 !== e4 && (T2 = o3[r3 - 1], S2 = !(0, u.isNumber)(T2) || _2 !== H.Ive(j2, D2, T2)), l2 = s2, S2 && (x2 = o3[r3 + 1], l2 = (A2 = !(0, u.isNumber)(x2) || _2 !== H.Ive(j2, D2, x2)) ? r3 : y(C2, _2, s2, i4));
                    else {
                      for (O = [], E = [], R = [], L = void 0, F = void 0, B = o3[r3], P = 0; P < V.length; P++) L = V[P].field, F = H.Ave(L), E.push(L), R.push(F), O.push(H.Ive(L, F, B));
                      G = function(t7) {
                        var n7, e5 = o3[t7], i5 = !(0, u.isNumber)(e5);
                        if (!i5) {
                          for (n7 = V.length - 1; n7 >= 0; n7--) if (O[n7] !== H.Ive(E[n7], R[n7], e5)) {
                            i5 = true;
                            break;
                          }
                        }
                        return i5;
                      }, l2 = s2, S2 = true, r3 !== e4 && (S2 = G(r3 - 1)), S2 && ((A2 = G(r3 + 1)) || (l2 = b(U = function(t7) {
                        return o3[t7];
                      }, C2 = function(t7, n7) {
                        return H.Ive(E[n7], R[n7], t7);
                      }, O, s2 + 1, i4)) === f) && (l2 = r3);
                    }
                }
                return l2;
              }, n5.prototype.cye = function(t6, n6) {
                var e4, i4, r3, o3, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = this, w2 = y2.options.orders, M2 = y2.options.windowFrame && y2.options.windowFrame.type;
                if (w2 && w2.length > 0 && M2 === a.WindowOverFrameType.GROUPS) {
                  if (e4 = t6[n6], i4 = [{ begin: n6, end: n6 }], t6.length - n6 > 1) {
                    for (r3 = [], o3 = [], u2 = [], s2 = void 0, c2 = void 0, f2 = e4, l2 = w2.length - 1, h2 = 0; h2 <= l2; h2++) s2 = w2[h2].field, c2 = y2.Ave(s2), o3.push(s2), u2.push(c2), r3.push(y2.Ive(s2, c2, f2));
                    for (h2 = n6 + 1, d2 = t6.length; h2 < d2; h2++) {
                      for (v2 = t6[h2], p2 = [], g2 = true, m2 = 0; m2 <= l2; m2++) b2 = y2.Ive(o3[m2], u2[m2], v2), p2.push(b2), r3[m2] !== b2 && (g2 = false);
                      g2 ? i4[i4.length - 1].end = h2 : (r3 = p2, i4[i4.length] = { begin: h2, end: h2 });
                    }
                  }
                  return i4;
                }
              }, n5.prototype.hye = function(t6, n6) {
                var e4, i4, r3;
                if (!(0, u.isNullOrUndefined)(t6)) {
                  for (e4 = 0, i4 = t6.length; e4 < i4; e4++) if ((r3 = t6[e4]).begin <= n6 && n6 <= r3.end) return e4;
                }
              }, n5;
            })(s.CalcField), n4.WindowOverCalcField = l, n4.addWindowOverFormulas = C, n4.processWindowOverFormula = S, n4.hasWindowOverFormulas = T, n4.isWindowOverFormula = x, n4.getWindowOverFormulas = A, n4.deconstructWindowOverFunction = I, n4.parseWindowOverByOption = _;
          }, "./dist/src/undo/changesHelper.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ChangesHelper = void 0, i3 = e3("./dist/src/dataSource/dataSource.entry.js"), r2 = e3("./dist/src/undo/interface.js"), o2 = (function() {
              function t5(t6) {
                this.zQt = t6, this.P8 = 0, this.G8 = [];
              }
              return t5.prototype.SRe = function() {
                return { inTransaction: this.P8, changes: a([], this.G8, true) };
              }, t5.prototype.ARe = function(t6) {
                var n5 = t6.inTransaction, e4 = t6.changes;
                this.P8 = n5, this.G8 = e4;
              }, t5.prototype.vCn = function() {
                this.P8++;
              }, t5.prototype.FCn = function() {
                this.P8 = Math.max(this.P8 - 1, 0);
              }, t5.prototype.lM = function() {
                return this.P8 > 0;
              }, t5.prototype.FEe = function(t6) {
                if (this.lM()) return this.G8.push(t6), this.G8;
              }, t5.prototype.LEe = function() {
                return a([], this.G8, true);
              }, t5.prototype.PEe = function() {
                this.G8 = [];
              }, t5.prototype.Mtt = function(t6) {
                var n5, e4, i4, o3, a2, u, s = t6.type;
                if (s === r2.ViewChangeType.Update || s === r2.ViewChangeType.Insert) return this.GEe(t6);
                if (s === r2.ViewChangeType.DefineColumnRemoveColumn || s === r2.ViewChangeType.DefineColumnModifyColumn || s === r2.ViewChangeType.DefineColumnAddColumn || s === r2.ViewChangeType.UpdateColumn || s === r2.ViewChangeType.UpdateColumnName || s === r2.ViewChangeType.DeleteColumn || s === r2.ViewChangeType.AddColumn || s === r2.ViewChangeType.MoveColumnOptions || s === r2.ViewChangeType.MoveColumnInfos || s === r2.ViewChangeType.RemoveCrossFields || s === r2.ViewChangeType.RemoveColumnInfoOptions || s === r2.ViewChangeType.UpdateCrossColumnIndex) this.UEe(t6);
                else if (s === r2.ViewChangeType.SortUpdate) this.zQt.HEe(t6.oldData.sortInfo, t6.oldData.indexMap, t6.oldData.baseIndexMap);
                else if (s === r2.ViewChangeType.DetailColumnsVisible) this.zQt.detailColumnsVisible(t6.oldData);
                else if (s === r2.ViewChangeType.PinnedRows || s === r2.ViewChangeType.PinnedColumns) this.zEe(t6);
                else if (s === r2.ViewChangeType.StyleRuleChanges) for (i4 in this.zQt.clearStyleRules(), e4 = null !== (n5 = t6.oldData) && void 0 !== n5 ? n5 : {}) e4.hasOwnProperty(i4) && (a2 = (o3 = e4[i4]).style, u = o3.rule, this.zQt.addStyleRule(i4, a2, u));
                else s === r2.ViewChangeType.TableSheetColumnDataTypeChanged || s === r2.ViewChangeType.TableSheetColumnIsPrimaryKeyChanged ? this.YEe(t6) : s !== r2.ViewChangeType.HierarchyLevelChanged && s !== r2.ViewChangeType.RowDataChanged && s !== r2.ViewChangeType.MovedUpdateOrDown || this.ZEe(t6);
              }, t5.prototype.ZEe = function(t6) {
                var n5, e4, i4 = t6.type;
                i4 === r2.ViewChangeType.HierarchyLevelChanged ? this.zQt.WEe(t6.oldData) : i4 === r2.ViewChangeType.RowDataChanged ? this.zQt.QEe(t6.oldData) : i4 === r2.ViewChangeType.MovedUpdateOrDown && (n5 = t6.moveIndex, e4 = t6.destIndex, this.zQt.m7t(n5, e4));
              }, t5.prototype.YEe = function(t6) {
                var n5 = t6.type, e4 = t6.oldData;
                n5 === r2.ViewChangeType.TableSheetColumnDataTypeChanged ? (this.zQt.KEe(e4.columnValue, e4.oldData), this.zQt.updateColumnDataType(e4.columnValue, e4.oldDataType)) : n5 === r2.ViewChangeType.TableSheetColumnIsPrimaryKeyChanged && this.zQt.updateColumnIsPrimaryKeyType(e4.columnValue, e4.oldIsPrimaryKey);
              }, t5.prototype.GEe = function(t6) {
                var n5, e4 = this, o3 = t6.type;
                if (o3 === r2.ViewChangeType.Update) this.zQt.updateItem(t6.modelIndex, t6.oldData, null, null, { isModelIndex: true });
                else if (o3 === r2.ViewChangeType.Insert) return (n5 = (0, i3.useSerialExecutor)()).append((function(n6, i4) {
                  e4.zQt.MIr(t6.index, 1, n6, i4);
                })), n5.execute();
              }, t5.prototype.UEe = function(t6) {
                var n5, e4, i4, o3, a2, u, s, c, f, l, h = t6.type;
                h === r2.ViewChangeType.UpdateColumn ? this.zQt.JEe(t6.oldData, t6.isInfo, t6.index) : h === r2.ViewChangeType.UpdateColumnName ? this.zQt.fBe(t6.newName, t6.oldName) : h === r2.ViewChangeType.DeleteColumn ? this.zQt.DRe(t6.index, t6.oldData, t6.isInfo, t6.isField) : h === r2.ViewChangeType.AddColumn ? this.zQt.removeColumn(t6.newData.value) : h === r2.ViewChangeType.DefineColumnRemoveColumn ? this.zQt.eGe(t6) : h === r2.ViewChangeType.DefineColumnModifyColumn ? this.zQt.uGe(t6) : h === r2.ViewChangeType.DefineColumnAddColumn ? this.zQt.JFe(t6) : h === r2.ViewChangeType.MoveColumnOptions ? this.zQt.DPt(t6.to, t6.from) : h === r2.ViewChangeType.MoveColumnInfos ? (n5 = t6.to, e4 = t6.from, i4 = t6.count, a2 = void 0, u = void 0, (o3 = e4 > n5) ? (a2 = n5, u = e4 + i4 - 1) : (a2 = n5 - i4 + 1, u = e4), this.zQt.OPt(a2, u, t6.count)) : h === r2.ViewChangeType.RemoveCrossFields ? this.zQt.XEe(t6.oldData) : h === r2.ViewChangeType.UpdateCrossColumnIndex ? (s = t6.data.map((function(t7) {
                  var n6 = t7.oldIndex, e5;
                  return { oldIndex: t7.newIndex, newIndex: n6 };
                })), this.zQt.wLt(s)) : h === r2.ViewChangeType.RemoveColumnInfoOptions && (f = (c = t6.oldData).columnInfoOptions, l = c.options, this.zQt.qEe(f, l));
              }, t5.prototype.zEe = function(t6) {
                var n5 = t6.oldData, e4 = t6.type;
                e4 === r2.ViewChangeType.PinnedRows ? (this.zQt.$Ee(), this.zQt.togglePinnedRows(this.EFe(n5.pinnedRows))) : e4 === r2.ViewChangeType.PinnedColumns && (this.zQt.eRe(), this.zQt.togglePinnedColumns(n5.pinnedColumns));
              }, t5.prototype.EFe = function(t6) {
                var n5, e4 = this.zQt.iRt;
                return t6.map((function(t7) {
                  return e4.indexOf(t7);
                }));
              }, t5;
            })(), n4.ChangesHelper = o2;
          }, "./dist/src/undo/interface.js": function(t4, n4) {
            "use strict";
            var e3;
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ViewChangeType = void 0, (function(t5) {
              t5.Update = "update", t5.Insert = "insert", t5.UpdateColumn = "updateColumn", t5.UpdateColumnName = "updateColumnName", t5.DeleteColumn = "deleteColumn", t5.AddColumn = "addColumn", t5.DefineColumnAddColumn = "createColumn", t5.DefineColumnRemoveColumn = "removeColumn", t5.DefineColumnModifyColumn = "modifyColumn", t5.MoveColumnOptions = "moveColumnOptions", t5.MoveColumnInfos = "moveColumnInfos", t5.SortUpdate = "sortUpdate", t5.DetailColumnsVisible = "detailColumnsVisible", t5.PinnedRows = "pinnedRows", t5.PinnedColumns = "pinnedColumns", t5.StyleRuleChanges = "styleRuleChanged", t5.TableSheetColumnDataTypeChanged = "tableSheetColumnDataTypeChanged", t5.TableSheetColumnIsPrimaryKeyChanged = "tableSheetColumnIsPrimaryKeyChanged", t5.RemoveCrossFields = "removeCrossFields", t5.RemoveColumnInfoOptions = "removeColumnInfoOptions", t5.UpdateCrossColumnIndex = "updateCrossColumnIndex", t5.HierarchyLevelChanged = "hierarchyLevelChanged", t5.RowDataChanged = "rowDataChanged", t5.MovedUpdateOrDown = "movedUpdateOrDown";
            })(e3 = n4.ViewChangeType || (n4.ViewChangeType = {}));
          }, "./dist/src/view/view-calc.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c = this && this.nJr || function() {
              return c = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, c.apply(this, arguments);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/table/tableEvents.js"), a = e3("./dist/src/view/view.js"), u = void 0, (s = i3.Common.lt.Dh)(a.View.prototype, { kAr: function(t5, n5) {
              this.oIr = t5, this.aIr = n5, this.lLt || (this.RFt(), this.cPt());
            }, uIr: function() {
              return this.oIr;
            }, qTr: function() {
              return this.yLt.some((function(t5) {
                return t5.zTr;
              }));
            }, $Tr: function() {
              var t5;
              this.oIr && this.lLt && (this.lLt.$Ar() && this.ki(o2.Events.CalcValueCleared, { YIr: true }));
            }, YTr: function(t5, n5) {
              var e4, i4, r3, o3 = this, a2 = o3.lLt;
              return !!(n5.zTr && a2 && (e4 = n5.value, i4 = o3.sIr(t5), r3 = a2.getFieldByName(e4))) && r3.hasValue(i4, t5);
            }, cIr: function(t5, n5) {
              if (t5 = this.QGe(t5), (0, r2.isFormula)(t5.value)) {
                var e4 = c(c({}, t5), { value: t5.name, dataType: u, eIr: t5.value, zTr: true });
                return this.qFe(e4, false, n5, this.RGr(n5)), e4;
              }
            }, RGr: function(t5) {
              var n5 = this;
              return { col: null != t5 ? t5 : n5.yLt.length, getCalcSource: function() {
                return n5.oIr;
              }, getCalcOptions: function() {
                return n5.aIr();
              } };
            }, VTr: function(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2;
              t5 = this.$Ge(t5), e4 = this.ife(t5), n5 = this.QGe(n5), (i4 = (0, r2.isFormula)(n5.value)) && t5 && this.lLt && (u2 = this.lLt.getFieldByName(e4)) && (o3 = t5.zTr && (0, r2.isNullOrUndefined)(t5.YEr) && !(0, r2.isNullOrUndefined)(n5.YEr) && (0, r2.isNullOrUndefined)(u2.WK)) && (a2 = u2.data), this.TGe(e4, (function(t6, n6, e5) {
                return e5 && (s2 = t6), n6.splice(t6, 1)[0];
              }), !o3), i4 ? (c2 = this.cIr(n5, s2), o3 && c2 && a2 && a2.length > 0 && this.rGr(c2, a2)) : this.qFe(n5, false, s2);
            } });
          }, "./dist/src/view/view-cross.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/view/view.js"), o2 = e3("./dist/src/dataSource/utils.js"), a = e3("./dist/src/viewField/fieldManager.js"), u = e3("./dist/src/undo/interface.js"), s = i3.Common.lt.Dh, c = void 0, s(r2.View.prototype, { YBt: function() {
              var t5 = this;
              t5.lLt.setCrossFieldValues(t5.iRt);
            }, hLt: function() {
              var t5 = this;
              t5.lLt && (t5.lLt.clearCrossFieldData(), t5.YBt());
            }, dLt: function(t5, n5, e4) {
              var i4 = this;
              i4.lLt && i4.lLt.removeCrossFieldValues(t5, n5, e4);
            }, vLt: function(t5) {
              var n5 = this;
              n5.lLt && n5.lLt.resetCrossFieldRowValues(t5);
            }, mLt: function(t5, n5) {
              if ("string" == typeof t5) {
                var e4 = true, i4 = t5;
                (0, o2.isNullOrUndefined)(this.LEt.cross) || (t5 = this.LEt.cross[i4], (0, o2.isNullOrUndefined)(t5) || (e4 = false)), e4 && (t5 = { over: i4, attributes: [""] });
              }
              return (0, a.isValidCross)(this.gLt, t5, n5);
            }, pLt: function() {
              return this.bLt() && (0, o2.isNullOrUndefined)(this.lLt);
            }, bLt: function() {
              return this.yLt.some((function(t5) {
                return t5.cross;
              }));
            }, wLt: function(t5, n5) {
              var e4, i4, r3, o3, a2, s2, c2, f, l, h, d, v, p, g;
              for (void 0 === n5 && (n5 = true), e4 = this, i4 = [], r3 = function(t6, n6) {
                i4.push({ newIndex: n6, columnInfos: e4.yLt.filter((function(n7) {
                  return n7.RBt === t6;
                })), fields: e4.lLt ? e4.lLt.getFields((function(n7) {
                  return n7.initialOptionIndex === t6;
                })) : [] });
              }, o3 = 0, a2 = t5; o3 < a2.length; o3++) r3(c2 = (s2 = a2[o3]).oldIndex, f = s2.newIndex);
              for (l = function(t6, n6, e5) {
                t6.forEach((function(t7) {
                  return t7.RBt = e5;
                })), n6.forEach((function(t7) {
                  return t7.initialOptionIndex = e5;
                }));
              }, h = 0, d = i4; h < d.length; h++) l(p = (v = d[h]).columnInfos, g = v.fields, f = v.newIndex);
              n5 && this.oRe.FEe({ type: u.ViewChangeType.UpdateCrossColumnIndex, data: t5 });
            }, MLt: function() {
              var t5 = this, n5;
              return t5.CLt.map((function(n6) {
                return t5.SLt(n6);
              }));
            }, TLt: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2 = this, f = c2.MLt(), l = c2.ALt(f);
              if (l.length > 0 && (t5 = l[t5], n5 = l[n5]), (e4 = c2.ILt[t5]) && "string" == typeof e4.cross) {
                if (i4 = c2.ILt[t5 - 1] || {}, r3 = c2.ILt[t5 + 1] || {}, i4.cross === e4.cross || r3.cross === e4.cross) return true;
                if (o3 = c2.ILt[n5], a2 = c2.ILt[t5 < n5 ? n5 + 1 : n5 - 1] || {}, o3.cross === e4.cross || a2.cross === e4.cross) return true;
              }
              return u2 = function(t6, n6) {
                return f.indexOf(t6) > -1 ? u2(t6 + n6, n6) : t6;
              }, s2 = function(t6, n6) {
                var e5 = c2.ILt[u2(t6, -1)] || {}, i5 = c2.ILt[u2(n6, 1)] || {};
                if ("string" == typeof e5.cross && e5.cross === i5.cross) return true;
              }, s2(t5 - 1, t5 + 1) || (t5 < n5 ? s2(n5, n5 + 1) : s2(n5 - 1, n5));
            }, xLt: function(t5) {
              for (var n5 = this, e4 = 0, i4 = function(t6) {
                return t6 && 0 === t6.length ? c : t6;
              }, r3 = { lastFilterInfo: (0, o2.clone)(n5.NLt), lastSortInfo: (0, o2.clone)(n5.kLt), lastSortInfoBeforeGroup: (0, o2.clone)(n5.DLt), lastSortInfoAfterGroup: (0, o2.clone)(n5._Lt), columnInfos: (0, o2.clone)(n5.yLt) }, a2 = function() {
                var i5 = n5.yLt[e4];
                i5.RBt === t5 ? (n5.NLt = n5.NLt && n5.NLt.filter((function(t6) {
                  return t6.field !== i5.value;
                })), n5.kLt = n5.kLt && n5.kLt.filter((function(t6) {
                  return t6.field !== i5.value;
                })), n5.DLt = n5.DLt && n5.DLt.filter((function(t6) {
                  return t6.field !== i5.value;
                })), n5._Lt = n5._Lt && n5._Lt.filter((function(t6) {
                  return t6.field !== i5.value;
                })), n5.yLt.splice(e4, 1), n5.lLt && n5.lLt.removeFields(e4, 1, (function(t6) {
                  var n6;
                  r3.fields = null !== (n6 = r3.fields) && void 0 !== n6 ? n6 : t6;
                }))) : e4++;
              }; e4 < n5.yLt.length; ) a2();
              n5.NLt = i4(n5.NLt), n5.kLt = i4(n5.kLt), n5.DLt = i4(n5.DLt), n5._Lt = i4(n5._Lt), this.oRe.FEe({ type: u.ViewChangeType.RemoveCrossFields, oldData: r3 });
            }, XEe: function(t5) {
              var n5 = this, e4 = t5.lastFilterInfo, i4 = t5.lastSortInfo, r3 = t5.lastSortInfoAfterGroup, o3 = t5.lastSortInfoBeforeGroup, a2 = t5.fields, u2 = t5.columnInfos;
              n5.NLt = e4, n5.kLt = i4, n5._Lt = r3, n5.DLt = o3, n5.yLt = u2, a2 && n5.lLt.rRe(a2);
            }, ELt: function() {
              var t5 = this;
              t5.ILt.forEach((function(n5, e4) {
                (0, o2.isNullOrUndefined)(n5.cross) || ((0, o2.isNullOrUndefined)(n5.LBt) && (n5.LBt = e4), t5.yLt[e4].LBt = n5.LBt);
              }));
            } });
          }, "./dist/src/view/view-event.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5) {
              var n5, e4, i4, a2, u2 = [], s2 = [], c2 = Object.keys(o2.Events);
              if ((0, r2.isArray)(t5)) for (n5 = function(t6) {
                c2.some((function(n6) {
                  return n6 === t6;
                })) ? u2.push(t6) : s2.push(t6);
              }, e4 = 0, i4 = t5; e4 < i4.length; e4++) n5(a2 = i4[e4]);
              else c2.some((function(n6) {
                return n6 === t5;
              })) ? u2.push(t5) : s2.push(t5);
              return [u2, s2];
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/table/tableEvents.js"), a = e3("./dist/src/view/view.js"), u = i3.Common.lt.Dh, s = null, c = void 0, u(a.View.prototype, { bind: function(t5, n5) {
              var e4 = this, i4 = f(t5), r3 = i4[0], o3 = i4[1];
              o3.length > 0 && (e4.jLt(o3, n5), this.gLt.bind(o3, n5)), r3.length > 0 && this.D3(r3, this.OLt(n5), n5);
            }, D3: function(t5, n5, e4) {
              var i4 = this, r3 = i4.RLt(n5);
              i4.jLt(t5, r3, null, e4), i4.gLt.bind(t5, r3);
            }, unbind: function(t5, n5) {
              var e4, i4, r3, o3, a2 = this, u2 = f(t5), s2 = u2[0], c2 = u2[1];
              if (c2.length > 0) for (a2.ege(c2, n5), e4 = 0; e4 < c2.length; e4++) i4 = c2[e4], this.gLt.unbind(i4, n5);
              if (s2.length > 0 && (r3 = this.ege(s2, null, null, n5), a2.gLt)) for (o3 = 0; o3 < r3.length; o3++) a2.gLt.unbind(t5, r3[o3]);
            }, ki: function(t5, n5) {
              return this.gLt.ki(t5, n5);
            }, vOt: function(t5) {
              return this.gLt.vOt(t5);
            }, JTe: function(t5) {
              var n5, e4, i4, o3 = this, a2 = o3.gLt.name, u2 = (0, r2.isArray)(t5) ? t5 : [t5], s2 = o3.BLt[a2] = o3.BLt[a2] || {}, c2 = [];
              for (n5 = 0, e4 = u2; n5 < e4.length; n5++) i4 = e4[n5], c2 = c2.concat(s2[i4] || []);
              return c2;
            }, jLt: function(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l, h, d, v = this;
              if (n5) for (o3 = (e4 || v.gLt).name, u2 = 0, s2 = a2 = (0, r2.isArray)(t5) ? t5 : [t5]; u2 < s2.length; u2++) c2 = s2[u2], (f2 = (0, r2.isFunction)(n5) ? n5 : n5[c2]) && (h = (l = v.BLt[o3] = v.BLt[o3] || {})[c2] = l[c2] || [], (0, r2.isNullOrUndefined)(i4) || (d = (0, r2.isFunction)(i4) ? i4 : i4[c2], f2.ige = d), h.push(f2));
            }, ege: function(t5, n5, e4, i4) {
              var o3, a2, u2, s2, c2, f2, l, h, d, v, p, g, m, b, y, w, M = this, C = (e4 || M.gLt).name, S = (0, r2.isArray)(t5) ? t5 : [t5], T = [];
              if ((0, r2.isNullOrUndefined)(i4)) if (n5) for (o3 = 0, a2 = S; o3 < a2.length; o3++) u2 = a2[o3], (s2 = (0, r2.isFunction)(n5) ? n5 : n5[u2]) && (l = (f2 = (c2 = M.BLt[C] = M.BLt[C] || {})[u2] = c2[u2] || []).indexOf(s2)) > -1 && (T = T.concat(f2.splice(l, 1)));
              else for (h = 0, d = S; h < d.length; h++) for (u2 = d[h], f2 = (c2 = M.BLt[C] = M.BLt[C] || {})[u2] = c2[u2] || [], c2[u2] = [], v = 0; v < f2.length; v++) p = f2[v], T.push(p);
              else for (g = 0, m = S; g < m.length; g++) {
                for (u2 = m[g], f2 = (c2 = M.BLt[C] = M.BLt[C] || {})[u2] = c2[u2] || [], b = [], y = (0, r2.isFunction)(i4) ? i4 : i4[u2], v = 0; v < f2.length; v++) (p = f2[v]).ige === y && b.push(v);
                for (w = b.length - 1; w >= 0; w--) l = b[w], T = T.concat(f2.splice(l, 1));
              }
              return T;
            }, OLt: function(t5) {
              var n5 = this;
              return function(e4, i4) {
                var o3, a2, u2;
                if (n5.LLt(i4), (0, r2.isArray)(t5)) for (o3 = 0, a2 = t5; o3 < a2.length; o3++) (u2 = a2[o3]).call(n5, e4, i4);
                else t5 && t5.call(n5, e4, i4);
              };
            }, LLt: function(t5) {
              var n5 = this;
              t5.hasOwnProperty("row") || Object.defineProperty(t5, "row", { get: function() {
                return (0, r2.isNumber)(t5.Ky) || (t5.Ky = n5.FLt(t5.index)), t5.Ky;
              } });
            }, RLt: function(t5) {
              var n5 = this;
              return function(e4, i4) {
                (i4 && i4.YIr || n5.PLt()) && t5.call(n5, e4, i4);
              };
            }, PLt: function(t5) {
              return true === t5 ? this.rb-- : false === t5 && this.rb++, this.rb = Math.max(this.rb, 0), this.rb < 1;
            }, GLt: function(t5, n5) {
              var e4 = this;
              return e4.PLt(false), { success: function(n6) {
                e4.PLt(true), t5 && t5(n6);
              }, fail: function(t6) {
                e4.PLt(true), n5 && n5(t6);
              } };
            }, v7: function() {
              var t5 = this;
              t5.D3(o2.Events.ItemInserting, (function(n5, e4) {
                var i4 = e4.index, r3 = e4.data;
                t5.ULt(r3), i4 === t5.length() && t5.Dit() && t5.HLt(r3, i4);
              })), t5.D3(o2.Events.ItemInserted, (function(n5, e4) {
                var i4 = e4.index, r3 = e4.data;
                t5.zLt(i4, r3, c, c, false, true);
              })), t5.D3(o2.Events.ItemUpdating, (function(n5, e4) {
                var i4 = e4.data, r3 = e4.index, o3 = e4.originalData;
                t5.uTe(i4, o3, r3);
              })), t5.D3(o2.Events.ItemUpdated, (function(n5, e4) {
                var i4 = e4.data, r3 = e4.index, o3 = e4.originalData;
                t5.YLt(i4, o3, r3);
              })), t5.D3(o2.Events.ItemReset, (function(n5, e4) {
                var i4 = e4.index, r3 = e4.originalData, o3 = e4.dataBeforeChanged;
                t5.ZLt(i4, r3, o3);
              })), t5.D3(o2.Events.ItemRemoved, (function(n5, e4) {
                var i4 = e4.index, r3 = e4.count || e4.removedCount, o3 = e4.removingIndexes;
                t5.WLt(i4, r3, o3, c);
              })), t5.D3(o2.Events.ChangesSubmitted, (function(n5, e4) {
                t5.QLt();
              })), t5.D3(o2.Events.ChangesCancelled, (function(n5, e4) {
                t5.KLt(e4.isDataLengthChanged, e4.isDataRowOrderChanged);
              }));
            }, wpt: function() {
              var t5, n5, e4, i4, r3, o3, a2, u2, s2 = this, c2 = s2.BLt;
              for (t5 in c2) if (c2.hasOwnProperty(t5)) {
                for (e4 in n5 = c2[t5]) if (n5.hasOwnProperty(e4)) for (r3 = 0, o3 = i4 = n5[e4]; r3 < o3.length; r3++) a2 = o3[r3], (u2 = s2.gLt.QOt.tables[t5]) && u2.unbind(e4, a2);
              }
              s2.BLt = {};
            }, $Ot: function(t5) {
              var n5, e4, i4, r3, o3, a2 = this, u2 = a2.BLt, s2 = t5.name, f2 = u2[s2];
              for (n5 in f2) if (f2.hasOwnProperty(n5)) for (i4 = 0, r3 = e4 = f2[n5]; i4 < r3.length; i4++) o3 = r3[i4], t5 && t5.unbind(n5, o3);
              u2[s2] = c;
            }, KOt: function(t5, n5) {
              var e4 = this, i4 = e4.BLt, r3 = i4[t5];
              delete i4[t5], i4[n5] = r3;
            }, XTe: function(t5, n5) {
              var e4, i4, o3, a2 = this, u2 = a2.JTe(n5.eventName);
              for (e4 = 0, i4 = u2; e4 < i4.length; e4++) o3 = i4[e4], (0, r2.isNullOrUndefined)(o3.ige) || o3.call(a2, t5, n5);
            }, JLt: function() {
              var t5, n5, e4, i4, o3, a2, u2, s2, c2, f2, l, h, d, v, p, g, m;
              if (this.XLt()) {
                for (n5 = t5 = this, e4 = t5.name, i4 = t5.yLt, o3 = t5.gLt, a2 = [], u2 = 0, s2 = i4; u2 < s2.length; u2++) if (c2 = s2[u2], (0, r2.isFunction)(c2.value) || (0, r2.isFormula)(c2.value) || !(0, r2.isRelation)(c2.value)) {
                  if ((f2 = this.gLt.GAe(c2.value)).length > 0) for (l = 0, h = f2; l < h.length; l++) d = h[l], this.gLt.g0r(d, a2);
                } else a2.push(c2.value);
                for (v = 0, p = a2; v < p.length; v++) g = p[v], m = o3.qRt(g), !(0, r2.isNullOrUndefined)(m) && (0, r2.isNullOrUndefined)(m.VOt[e4]) && (m.VOt[e4] = n5, t5.qLt(m));
              }
            }, qLt: function(t5) {
              var n5 = this, e4 = n5.gLt, i4 = e4.QOt.relationships.reduce((function(n6, i5) {
                return i5.sourceTable === e4 && i5.targetTable === t5 ? { relationshipName: i5.sourceRelationshipName, relationFieldName: i5.sourceFieldName } : i5.sourceTable === t5 && i5.targetTable === e4 ? { relationshipName: i5.targetRelationshipName, relationFieldName: i5.targetFieldName } : n6;
              }), {}), a2 = i4.relationshipName, u2 = i4.relationFieldName, s2 = function(i5, s3) {
                var f3 = n5.RLt((function(t6, i6) {
                  var f4, l, h, d, v, p, g, m, b = function(t7, n6) {
                    var e5 = t7.value.split(".");
                    return e5[e5.length - 1 - n6];
                  }, y = n5.ILt.filter((function(t7) {
                    return (0, r2.isRelation)(t7.value) && b(t7, 1) === a2;
                  })), w = y;
                  if (i6.eventName !== o2.Events.ItemUpdating && i6.eventName !== o2.Events.ItemUpdated || (w = w.filter((function(t7) {
                    return i6.changingFields.some((function(n6) {
                      return b(t7, 0) === n6;
                    }));
                  }))), f4 = [c], w.forEach((function(e5) {
                    var o3, a3, u3, c2 = !(0, r2.isNullOrUndefined)(e5.cross);
                    c2 ? (a3 = "string" == typeof e5.cross ? n5.LEt.cross[e5.cross].over : e5.cross.over, (0, r2.isNullOrUndefined)(n5.NLt) || (u3 = (0, r2.findIndex)(n5.NLt, (function(t7) {
                      return t7.field.indexOf(e5.value) > -1 && t7.field.indexOf(a3) > -1;
                    }))) > -1 && (o3 = n5.NLt[u3].field)) : n5.$Lt(e5.value) && f4.push(e5.value), s3.call(n5, e5.value, c2, o3)(t6, i6);
                  })), i6.eventName === o2.Events.ItemInserted || i6.eventName === o2.Events.ItemRemoved || i6.eventName === o2.Events.ItemUpdated) {
                    if (i6.eventName === o2.Events.ItemUpdated && (l = i6.changingFields.some((function(t7) {
                      return u2 === t7;
                    })), h = y.some((function(t7) {
                      if (!(0, r2.isNullOrUndefined)(t7.cross)) {
                        var e5 = ("string" == typeof t7.cross ? n5.LEt.cross[t7.cross].over : t7.cross.over).split(".").pop();
                        if (i6.changingFields.some((function(t8) {
                          return e5 === t8;
                        }))) return true;
                      }
                      return false;
                    })), l || h)) for (v = 0, p = d = e4.nBt(y[0].value, i6.index); v < p.length; v++) g = p[v], n5.vLt(g);
                    ((m = n5.gde(true))[0].length > 0 || m[1].length > 0) && n5.gme(), n5.tFt(c, true, f4, c);
                  }
                  n5.XTe(t6, i6);
                }));
                n5.jLt(i5, f3, t5), t5.bind(i5, f3);
              }, f2 = function(t6, i5, r3, o3) {
                var a3, u3, s3, c2, f3, l, h, d, v, p, g, m, b;
                if (n5.Dit()) for (f3 = 0, l = c2 = o3.relatedViewIndexes || e4.nBt(t6, o3.index); f3 < l.length; f3++) h = l[f3], d = void 0, v = void 0, p = void 0, i5 ? (n5.vLt(h), d = e4.LRt(r3, h), (a3 = {})[r3] = d, v = a3, p = n5.nFt(h, (u3 = {}, u3[r3] = true, u3))[r3]) : (d = e4.LRt(t6, h), (s3 = {})[t6] = d, v = s3, p = e4._getValueByField(t6, h)), g = n5.sTe(h, v), n5.iFt(g, d, t6, h), n5.hRt(h, t6, d, p), e4.hRt(h, t6, d, p);
                else if (i5) for (m = 0, b = c2 = o3.relatedViewIndexes || e4.nBt(t6, o3.index); m < b.length; m++) h = b[m], n5.vLt(h);
              };
              s2(o2.Events.ItemRemoving, (function(t6, n6) {
                return function(i5, r3) {
                  n6 && (r3.relatedViewIndexes = e4.nBt(t6, r3.index));
                };
              })), s2(o2.Events.ItemRemoved, (function(t6, n6, e5) {
                return function(i5, r3) {
                  f2(t6, n6, e5, r3);
                };
              })), s2(o2.Events.ItemInserted, (function(t6, n6, e5) {
                return function(i5, r3) {
                  f2(t6, n6, e5, r3);
                };
              })), s2(o2.Events.ItemUpdating, (function(t6, i5, r3) {
                return function(o3, a3) {
                  var u3, s3, c2, f3, l, h, d, v, p;
                  if (n5.Dit()) for (c2 = a3.relatedViewIndexes = e4.nBt(t6, a3.index), a3.relatedViewValues = [], f3 = 0, l = c2; f3 < l.length; f3++) h = l[f3], d = void 0, v = void 0, i5 ? d = (v = n5.nFt(h, ((u3 = {})[r3] = true, u3)))[r3] : (d = e4._getValueByField(t6, h), (s3 = {})[t6] = d, v = s3), p = n5.sTe(h, v), a3.relatedViewValues[h] = d, n5.iFt(p, d, t6, h);
                };
              })), s2(o2.Events.ItemUpdated, (function(t6, i5, r3) {
                return function(o3, a3) {
                  var u3, s3, c2, f3, l, h, d;
                  if (n5.Dit()) for (c2 = 0, f3 = s3 = a3.relatedViewIndexes || e4.nBt(t6, a3.index); c2 < f3.length; c2++) l = f3[c2], h = a3.relatedViewValues[l], d = void 0, i5 ? (d = n5.nFt(l, (u3 = {}, u3[r3] = true, u3))[r3], t6 = r3) : d = e4._getValueByField(t6, l), n5.hRt(l, t6, h, d), e4.hRt(l, t6, h, d);
                };
              }));
            } });
          }, "./dist/src/view/view-filter.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c;
            function f(t5) {
              return l(t5[0]);
            }
            function l(t5) {
              return t5 && void 0 !== t5.Vce;
            }
            function h(t5, n5) {
              for (var e4 = 0, i4 = t5.length; e4 < i4; e4++) if (!d(t5[e4], n5[e4])) return false;
              return true;
            }
            function d(t5, n5) {
              var e4, r3, o3, a2, u2 = ["field", "value", "operator", "relation"];
              for (e4 = 0; e4 < u2.length; e4++) if (!((o3 = t5[r3 = u2[e4]]) === (a2 = n5[r3]) || (0, i3.isNullOrUndefined)(o3) && (0, i3.isNullOrUndefined)(a2))) return false;
              return t5.ort === n5.ort && v(t5.Vce, n5.Vce);
            }
            function v(t5, n5) {
              if (!(0, i3.isNullOrUndefined)(t5) && !(0, i3.isNullOrUndefined)(n5)) {
                if (t5.length === n5.length) {
                  for (var e4 = 0; e4 < t5.length; e4++) if (t5[e4] !== n5[e4]) return false;
                  return true;
                }
                return false;
              }
              return t5 === n5;
            }
            function p(t5, n5) {
              var e4, i4, r3, o3, a2 = {};
              for (e4 = 0; e4 < t5.length; e4++) if (!a2[i4 = t5[e4].field]) {
                for (r3 = a2[i4] = [], o3 = e4; o3 < t5.length; o3++) t5[o3].field === i4 && r3.push(t5[o3]);
                n5(i4, r3);
              }
            }
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/table/table.js"), o2 = e3("./dist/src/view/view-util.js"), a = e3("Common"), u = e3("./dist/src/view/view.js"), s = e3("./dist/src/viewField/fields.js"), (c = a.Common.lt.Dh)(u.View.prototype, { buildInFilter: function(t5) {
              var n5, e4, i4, r3, a2, s2, c2, f2, l2, h2, d2, v2 = this.gLt, p2 = {};
              if (t5.length > 1) {
                for (n5 = [], e4 = [], i4 = function(i5) {
                  var a3, s3 = t5[i5], c3 = s3.field, f3 = s3.operator, l3 = s3.value, h3 = s3.relation, d3 = p2[c3];
                  d3 || (d3 = p2[c3] = v2.jRt(c3)), e4.push(h3), a3 = (0, u.rFt)(r3.gLt, r3.yLt, r3.lLt, c3, t5[i5]), a3 = (0, o2.mapGetValueFunc)(d3, a3), a3 = (0, o2.oFt)(r3, f3, l3, a3), n5.push((function(t6, n6, e5) {
                    return a3(t6, e5, n6[i5]);
                  }));
                }, r3 = this, a2 = 0; a2 < t5.length; a2++) i4(a2);
                return (0, o2.aFt)(n5, e4);
              }
              return c2 = (s2 = t5[0]).field, f2 = s2.operator, l2 = s2.value, h2 = v2.jRt(c2), d2 = (0, u.rFt)(this.gLt, this.yLt, this.lLt, c2, t5[0]), d2 = (0, o2.mapGetValueFunc)(h2, d2), d2 = (0, o2.oFt)(this, f2, l2, d2, c2), function(t6, n6, e5) {
                return d2(t6, e5, n6[0]);
              };
            }, uFt: function(t5) {
              var n5, e4 = this, i4 = e4.ZOt, r3 = e4.gLt;
              return i4[t5] && e4.HTr() && (null === (n5 = e4.$Ge(t5)) || void 0 === n5 ? void 0 : n5.zTr) ? i4[t5] : r3.ZOt[t5] || i4[t5];
            }, eRt: function(t5, n5) {
              var e4 = this, i4 = e4.gLt, r3 = e4.yLt, a2, u2 = [], s2 = [];
              t5.forEach((function(t6) {
                (a2 = r3.filter((function(n6) {
                  return n6.value === t6;
                }))[0]) && ((0, o2.isViewColumn)(a2) ? u2.push(t6) : s2.push(t6));
              })), i4.eRt(s2, n5), e4.sFt(u2);
            }, sFt: function(t5) {
              var n5, e4, i4, r3 = this, o3 = r3.ZOt;
              for (n5 = 0, e4 = t5; n5 < e4.length; n5++) o3[i4 = e4[n5]] || (o3[i4] = this._Rt(i4));
            }, cFt: function(t5) {
              var n5 = this;
              t5 ? (delete n5.ZOt[t5], n5.gLt.ARt(t5)) : n5.ZOt = {};
            }, _Rt: function(t5) {
              var n5, e4, o3, a2, u2 = this.lLt.getFieldByName(t5), c2 = function(t6) {
                return u2.getValue(t6);
              };
              if (u2 instanceof s.ExternalFormulaField && this.length() > 0) {
                for (n5 = this.Efe, e4 = {}, o3 = 0, a2 = n5.length; o3 < a2; o3++) e4[n5[o3]] = o3;
                c2 = function(t6) {
                  return u2.getValue(t6, e4[t6]);
                };
              }
              return (0, r2.generateFilterIndexCache)(t5, (0, i3.isNullOrUndefined)(u2) ? 0 : this.length(), this.jRt(t5), c2);
            }, cRt: function(t5, n5) {
              var e4 = this, i4, o3 = e4.gLt._dataSource.options.schema;
              e4.Yce(t5), (0, r2.updateFilterIndexesCacheOnInsert)(this.ZOt, t5, n5, o3 && o3.columns, e4.length());
            }, hRt: function(t5, n5, e4, i4) {
              var o3 = this;
              o3.Yce(t5, false, n5), o3.vge(n5), (0, r2.updateFilterIndexesCacheOnUpdate)(o3.ZOt, t5, n5, e4, i4, o3.jRt(n5));
            }, pRt: function(t5, n5, e4) {
              var r3, o3, a2, u2, s2 = this, c2 = s2.yLt;
              if (!(0, i3.isNullOrUndefined)(n5) && !(0, i3.isNullOrUndefined)(e4)) for (r3 = 0, o3 = c2; r3 < o3.length; r3++) u2 = (a2 = o3[r3]).value instanceof Function ? a2.value.name : a2.value, s2.hRt(t5, u2, n5[u2], e4[u2]);
            }, MRt: function(t5, n5, e4) {
              var i4 = this;
              i4.Zce(t5, n5, e4), (0, r2.updateFilterIndexesCacheOnRemove)(i4.ZOt, t5, n5, e4);
            }, fFt: function(t5) {
              var n5, e4, r3, o3, a2, u2, s2, c2, l2, h2, d2, v2, p2;
              if (t5) {
                if (e4 = (n5 = this).iRt, r3 = [], a2 = (o3 = n5.lFt).length, o3 && a2 > 0 && (r3 = e4.slice(0, a2)), u2 = a2, "string" == typeof t5) for (s2 = n5.Ywt(t5, 0, 0), c2 = a2; c2 < e4.length; c2++) l2 = e4[c2], true === n5.nMt(s2, l2, 0) && (r3[u2] = l2, u2++);
                else if ("function" == typeof t5) for (c2 = a2; c2 < e4.length; c2++) l2 = e4[c2], t5(n5.getRowData(l2, true)) && (r3[u2] = l2, u2++);
                else {
                  if (e4.length !== n5.length()) return n5.Wce(), void n5.Qce(t5, r3, e4);
                  for (p2 in (0, i3.isArray)(t5) || (t5 = [t5]), (0, i3.isNullOrUndefined)(n5.Jce) && (n5.Jce = {}), h2 = n5.isHierarchy(), n5.qce(t5, (function(t6, i4) {
                    n5.Qce(i4, r3, e4.slice()), h2 && f(i4) && n5.afe(i4), n5.tfe(t6, i4);
                  })), d2 = [], v2 = function(e5) {
                    t5.some((function(t6) {
                      return t6.field === e5;
                    })) ? h2 && f(n5.Jce[e5].options) || d2.push(e5) : delete n5.Jce[e5];
                  }, n5.Jce) v2(p2);
                  r3 = n5.nfe(d2);
                }
                n5.iRt = r3;
              }
            }, Qce: function(t5, n5, e4) {
              var r3, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = (d2.lFt || []).length, g = v2;
              for ((0, i3.isArray)(t5) || (t5 = [t5]), a2 = [], u2 = [], s2 = 0; s2 < t5.length; s2++) c2 = t5[s2], (0, o2.isFieldListFilterInfo)(c2) ? a2.push(c2) : u2.push(c2);
              if (f2 = n5, l2 = e4, a2.length > 0 && (f2 = n5.slice(), p(t5 = a2, (function(t6, e5) {
                var i4 = t6, r4 = d2.uFt(i4);
                r4 || (d2.eRt([i4]), r4 = d2.uFt(i4)), (0, o2.hFt)(f2, g, r4, e5, l2), l2 = f2, f2 = n5.slice();
              })), f2 = l2), u2.length > 0) for (f2 = n5.slice(), t5 = u2, r3 = this.buildInFilter(t5), s2 = v2; s2 < l2.length; s2++) {
                h2 = l2[s2];
                try {
                  r3(d2.gLt, t5, h2) && (f2[g] = h2, g++);
                } catch (t6) {
                }
              }
              d2.iRt = f2;
            }, tfe: function(t5, n5) {
              var e4, r3, o3, a2 = this;
              if (!(0, i3.isNullOrUndefined)(t5)) for (e4 = a2.lFt || [], r3 = a2.Jce[t5] = { options: n5, count: a2.iRt.length - e4.length }, o3 = e4.length; o3 < a2.iRt.length; o3++) r3[a2.iRt[o3]] = true;
            }, afe: function(t5) {
              var n5, e4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g = this, m = [], b = function(n6) {
                var e5 = t5[n6];
                m.push(g.yLt.find((function(t6) {
                  return t6.value === e5.field;
                })));
              };
              for (n5 = 0; n5 < t5.length; n5++) b(n5);
              for (e4 = g.lFt || [], r3 = g.iRt.slice(0, e4.length), n5 = e4.length; n5 < g.iRt.length; n5++) if (o3 = g.iRt[n5], 0 === (a2 = g.getHierarchyNode(o3, true)).children.length) for (u2 = function(t6, n6) {
                return (0, i3.formatCalcError)(g.ufe(t6, n6));
              }, s2 = g.ufe.bind(g), c2 = 0; c2 < t5.length; c2++) {
                for (l2 = "=" === (f2 = t5[c2]).field[0] ? u2 : s2, h2 = a2, d2 = 0; d2 < f2.Vce.length && (v2 = f2.Vce[d2], (p2 = l2(m[c2], h2.modalIndex)) === v2); d2++) h2 = h2.parent;
                if (d2 === f2.Vce.length && h2.isRoot) {
                  r3.push(o3);
                  break;
                }
              }
              g.iRt = r3;
            }, Wce: function() {
              this.Jce = null;
            }, Yce: function(t5, n5, e4) {
              var r3, o3, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Jce;
              if (h2) {
                if ((r3 = l2.lFt || []).indexOf(t5) > -1) return;
                for (a2 in o3 = l2.iRt, h2) ((0, i3.isNullOrUndefined)(e4) || a2 === e4 || false === n5 && l2.Nfr(a2, e4) && !l2.gLt.PAe(a2)) && (s2 = (u2 = h2[a2]).options, c2 = o3.slice(0, r3.length), f2 = o3.slice(0, r3.length).concat(t5), l2.Qce(s2, c2, f2), l2.iRt.indexOf(t5) > -1 ? u2[t5] || (u2[t5] = true, u2.count += 1) : u2[t5] && (delete u2[t5], u2.count -= 1));
                l2.iRt = o3;
              }
            }, vge: function(t5) {
              var n5, e4, r3, o3, a2, u2, s2, c2 = this, f2 = c2.Jce;
              if (f2 && !c2.vme()) {
                for (r3 in n5 = c2.lFt || [], e4 = c2.iRt, f2) (0, i3.isFormula)(r3) && ((0, i3.isNullOrUndefined)(t5) || c2.Nfr(r3, t5)) && c2.gLt.PAe(r3) && (a2 = (o3 = f2[r3]).options, u2 = e4.slice(0, n5.length), s2 = e4.slice(), c2.Qce(a2, u2, s2), (o3 = c2.iRt).count = c2.iRt.length, o3.options = a2);
                c2.iRt = e4;
              }
            }, Zce: function(t5, n5, e4) {
              var r3, o3, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Jce;
              if (h2) {
                if ((r3 = l2.lFt || []).indexOf(t5) > -1) return;
                for (o3 in h2) if (h2.hasOwnProperty(o3)) {
                  if (u2 = (a2 = h2[o3]).options, delete a2.options, delete a2.count, s2 = Object.keys(a2), e4 && e4.length > 0) (0, i3.removeIndexes)(s2, e4, true);
                  else for (c2 = 0; c2 < s2.length; c2++) (f2 = +s2[c2]) >= t5 + n5 ? s2[c2] = f2 - n5 : f2 >= t5 && f2 < t5 + n5 && (s2.splice(c2, 1), c2--);
                  a2 = s2.reduce((function(t6, n6) {
                    return t6[n6] = true, t6;
                  }), {}), a2.options = u2, a2.count = s2.length, h2[o3] = a2;
                }
              }
            }, nfe: function(t5) {
              var n5, e4, i4, r3, o3, a2, u2, s2 = this;
              if (t5.length > 0) {
                if (n5 = s2.lFt || [], e4 = s2.iRt, i4 = s2.Jce, 1 === t5.length && e4.length - n5.length === i4[t5[0]].count) return e4;
                for (r3 = e4.slice(0, n5.length), o3 = n5.length; o3 < e4.length; o3++) {
                  for (a2 = e4[o3], u2 = 0; u2 < t5.length && i4[t5[u2]][a2]; u2++) ;
                  u2 === t5.length && r3.push(a2);
                }
                return r3;
              }
              return s2.iRt;
            }, dFt: function() {
              var t5, n5, e4, i4, r3, o3, a2, u2 = this.iRt;
              if (u2 || (this.gFt(), u2 = this.iRt), this.Efe && this.HTr()) return this.iRt = this.Efe.slice(), void this.cFt();
              for (e4 = (n5 = this.lFt).length, n5 && e4 > 0 && (t5 = u2.slice(0, e4)), i4 = [], r3 = this.length(), o3 = 0, a2 = 0; a2 < r3; a2++) (!t5 || t5.indexOf(a2) < 0) && (i4[o3] = a2, o3++);
              t5 && t5.length > 0 ? this.iRt = t5.concat(i4) : this.iRt = i4, this.cFt();
            }, HLt: function(t5, n5) {
              var e4 = this, i4 = e4.NLt;
              e4.Dit() && e4.autoFilter && (0, o2.addFilterInfoForFieldValue)(i4, t5, e4, void 0, void 0, n5);
            }, iFt: function(t5, n5, e4, i4) {
              var r3 = this, a2 = r3.NLt;
              r3.Dit() && r3.autoFilter && (0, o2.addFilterInfoForFieldValue)(a2, t5, r3, n5, e4, i4);
            }, vFt: function(t5) {
              var n5 = this;
              n5.mFt(t5) && n5.filter(n5.NLt);
            }, mFt: function(t5) {
              return (t5 || this.autoFilter) && this.NLt;
            }, Dit: function() {
              var t5, n5 = this.NLt;
              return (0, i3.isArray)(n5) && n5.length > 0;
            }, RGe: function(t5) {
              var n5, e4, i4, r3 = this;
              if (r3.Dit()) return n5 = r3.NLt, e4 = r3.ife(t5), i4 = false, r3.NLt = n5.filter((function(t6) {
                return t6.field !== e4;
              })), 0 === r3.NLt.length && (r3.NLt = null, i4 = true), r3.cFt(e4), i4;
            }, BGe: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2 = this;
              if (c2.Dit()) {
                if (e4 = c2.NLt, i4 = c2.ife(t5), r3 = c2.ife(n5), t5.type !== n5.type || t5.dataType !== n5.dataType) return c2.RGe(n5), true;
                if (i4 !== r3) {
                  for (o3 = false, a2 = 0, u2 = e4; a2 < u2.length; a2++) (s2 = u2[a2]).field === r3 && (s2.field = i4, o3 = true);
                  o3 && c2.cFt(r3);
                }
              }
            }, filter: function(t5) {
              var n5 = this;
              return n5.iRt || n5.gFt(), t5 && (!(0, i3.isArray)(t5) || t5.length > 0) ? (n5.isHierarchy() && n5.$ce(), n5.fFt(t5), n5.isHierarchy() && n5.yFt(true)) : n5.isHierarchy() ? n5.gFt() : (this.dFt(), n5.hde()), this.NLt = (0, i3.isArray)(t5) && t5.length > 0 ? t5 : null, this.iRt.length;
            }, $ce: function() {
              var t5 = this;
              t5.bFt().forEach((function(n5) {
                var e4;
                t5.getHierarchyNode(n5, true).modalIndex = n5;
              }));
            }, yFt: function(t5) {
              var n5, e4, r3, o3, a2, u2, s2, c2 = this, l2 = c2.iRt;
              if (!(0, i3.isNullOrUndefined)(l2) && 0 !== l2.length) {
                for (t5 || c2.$ce(), n5 = [], e4 = 1, r3 = 0; r3 < l2.length; r3++) o3 = l2[r3], (a2 = c2.getHierarchyNode(o3, true)).visit = e4, (0, i3.bubbleTree)(a2, (function(t6) {
                  t6.isRoot || (t6.visit = e4);
                })), (0, i3.traversalTree)(a2, (function(t6) {
                  t6.visit = e4;
                }));
                for (s2 in c2.Jce) if (f(c2.Jce[s2].options)) {
                  u2 = c2.Jce[s2];
                  break;
                }
                (0, i3.isNullOrUndefined)(u2) || (e4 = 2, c2.fIr(u2, (function(t6) {
                  var n6 = c2.getHierarchyNode(t6, true);
                  (0, i3.isNumber)(n6.visit) && (n6.visit = e4, (0, i3.bubbleTree)(n6, (function(t7) {
                    t7.isRoot || (t7.visit = e4);
                  })));
                }))), (0, i3.traversalTree)(c2.getHierarchyRootNode(), (function(t6) {
                  t6.visit === e4 && (n5.push(t6.modalIndex), delete t6.visit, delete t6.modalIndex);
                })), c2.iRt = n5;
              }
            }, fIr: function(t5, n5) {
              var e4, r3, o3, a2;
              if (!(0, i3.isNullOrUndefined)(t5)) {
                for (o3 in e4 = t5.options, r3 = t5.count, delete t5.options, delete t5.count, t5) if (t5.hasOwnProperty(o3) && false === (a2 = n5(+o3))) break;
                t5.options = e4, t5.count = r3;
              }
            }, bFt: function() {
              var t5 = this, n5 = t5.iRt, e4, r3 = t5.isHierarchy(), o3 = t5.wFt;
              return r3 && !(0, i3.isNullOrUndefined)(o3) ? o3 : (t5.gFt(), t5.sort(t5.kLt), e4 = t5.iRt, t5.iRt = n5, r3 && (t5.wFt = e4), e4);
            }, qce: function(t5, n5) {
              var e4 = this;
              (0, i3.isNullOrUndefined)(e4.Jce) && (e4.Jce = {}), p(t5, (function(t6, r3) {
                var o3 = e4.Jce[t6], a2;
                ((0, i3.isNullOrUndefined)(o3) || o3.options.length !== r3.length || !h(o3.options, r3)) && n5(t6, r3);
              }));
            }, UAr: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.Dit();
              if (v2 && d2.HTr()) {
                for (a2 in t5 = t5 || 0, n5 = n5 || 0, e4 = {}, i4 = d2.Efe.reduce((function(n6, e5, i5) {
                  return n6[e5] = i5 + t5, n6;
                }), {}), r3 = {}, o3 = d2.Jce) o3.hasOwnProperty(a2) && (r3[a2] = d2.lIr(a2) + n5);
                for (s2 = 0, c2 = (u2 = d2.iRt).length; s2 < c2; s2++) for (a2 in (h2 = e4[l2 = i4[f2 = u2[s2]]]) || (e4[l2] = h2 = []), o3) o3[a2][f2] && h2.push(r3[a2]);
                return e4;
              }
              return {};
            }, ETr: function(t5, n5) {
              var e4, i4, r3, o3, a2 = this, u2 = a2.Dit();
              return u2 && a2.HTr() && a2.Jce ? (e4 = a2.Efe, i4 = e4.reduce((function(t6, n6, e5) {
                return t6[n6] = e5, t6;
              }), {}), n5 = n5 || 0, r3 = a2.ife(t5), o3 = [], a2.fIr(a2.Jce[r3], (function(t6) {
                return o3.push(i4[t6] + n5);
              })), o3) : [];
            } });
          }, "./dist/src/view/view-group.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d;
            function v(t5, n5, e4) {
              var i4, r3, f2, l2, h2, d2 = [], v2 = -1, p2 = -1, g2 = c.GROUP_COLUMN_WIDTH, m = {}, b = function(n6) {
                var i5, r4, a2, u2 = t5[n6];
                for (i5 = 0, r4 = e4.length; i5 < r4; i5++) a2 = e4[i5], u2.value === a2.field && (u2.GFt = true, u2.OFt = i5, m[(0, s.combineName)(u2.value, (0, o2.findIndex)(e4, (function(t6) {
                  return t6.field === u2.value;
                })))] = { colInfo: u2, index: n6 });
              };
              for (i4 = 0; i4 < t5.length; i4++) b(i4);
              for (f2 = function(i5, f3) {
                var l3, h3, b2 = n5.getField(r3[i5]), y = b2.name, w = b2.extra.caption, M = { caption: w, value: y, name: y, Kyn: b2.key, isGroup: true };
                p2 = (0, o2.findIndex)(e4, (function(t6, n6) {
                  return (0, s.combineName)(t6.field, n6) === y;
                })), p2 > -1 && (g2 = (0, c.getGroupColumnWidth)(e4[p2].field, t5), v2 = p2, M.DFt = true, l3 = m[y], (0, o2.isNullOrUndefined)(l3) || (l3.colInfo._Ft = i5, M._Ft = l3.index + f3)), M.Q1r = !M.DFt && (0, a.isGroupSummary)(M.value), M.J1r = !M.Q1r && (0, a.isGroupSlice)(M.value), M.OFt = v2, M.width = g2, (h3 = b2.extra) && (0, u.setFieldExtraProperties)((function(t6) {
                  (0, o2.isNullOrUndefined)(h3[t6]) || (M[t6] = h3[t6]);
                })), d2.push(M);
              }, l2 = 0, h2 = (r3 = n5.groupFieldKeys).length; l2 < h2; l2++) f2(l2, h2);
              return d2;
            }
            function p(t5, n5, e4) {
              var i4, r3, o3, a2, u2, s2, c2 = e4 ? e4.length : 0, f2 = {};
              for (i4 = c2; i4 < t5.length; i4++) f2[t5[i4]] = true;
              for (r3 = 0, o3 = c2, a2 = n5.length, u2 = t5.length; r3 < a2 && o3 < u2; r3++) f2[s2 = n5[r3]] && (t5[o3] = s2, o3++);
            }
            function g(t5, n5) {
              var e4, i4, r3, o3, a2;
              if (t5 && t5.length > 0) {
                for (e4 = [], i4 = n5.length, (r3 = t5.length) > 0 && (e4 = t5.slice(0)), o3 = r3, a2 = 0; a2 < i4; a2++) -1 === t5.indexOf(n5[a2]) && (e4[o3] = n5[a2], o3++);
                return e4;
              }
              return n5;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ise = void 0, i3 = e3("Common"), r2 = e3("./dist/src/view/view.js"), o2 = e3("./dist/src/dataSource/utils.js"), a = e3("./dist/src/viewField/groupManager.js"), u = e3("./dist/src/viewField/fields.js"), s = e3("./dist/src/viewField/utils.js"), c = e3("./dist/src/view/view-util.js"), f = e3("./dist/src/undo/interface.js"), l = i3.Common.lt.Dh, h = null, d = void 0, n4.ise = v, l(r2.View.prototype, { groupBy: function(t5) {
              var n5, e4 = this;
              return 0 === arguments.length || !(0, o2.isArray)(t5) || e4.hasHierarchyColumn() || 0 === (t5 = (n5 = e4.yLt.filter((function(t6) {
                return t6.isCross;
              }))).length > 0 ? t5.filter((function(t6) {
                return !n5.some((function(n6) {
                  return n6.value === t6.field;
                }));
              })) : t5).length ? e4.MFt : (e4.iRt || e4.gFt(), e4.CFt(t5), void (this.MFt = t5));
            }, windowOver: function(t5, n5, e4) {
              var i4, r3, a2, u2, s2, c2, f2, l2 = this, h2 = false, d2 = function() {
                return l2.iRt ? (h2 = l2.iRt.length !== l2.length(), i4 = h2 ? l2.qFt() : l2.iRt.slice()) : i4 = l2.qFt(), i4;
              }, v2 = l2.gLt.fme(), m = false, b = false;
              if (v2 ? (m = l2.sde(), b = l2.Dit(), e4 || m || b ? i4 = d2() : (l2.iRt || l2.gFt(), i4 = l2.iRt)) : i4 = d2(), (0, o2.isArray)(t5) && t5.length > 0) t5[t5.length - 1].windowOrderedFunctions = n5, i4 = l2.cde(t5, i4).indexMap;
              else for (r3 = 0; r3 < n5.length; r3++) for (u2 = (a2 = n5[r3]).orders, (0, o2.isArray)(u2) && u2.length > 0 && l2.fde(i4, u2), s2 = a2.functions, c2 = 0; c2 < s2.length; c2++) (f2 = l2.gLt.XOt[s2[c2].windowOverFormula]).evaluateWindowFunction(i4);
              v2 && (m && !h2 || (b ? e4 || p(l2.iRt, i4, l2.lFt) : l2.iRt = g(l2.lFt, i4)));
            }, removeGroupBy: function() {
              var t5 = this;
              t5.isHierarchy() || (t5.AFt(), t5.IFt(), t5.SFt(), t5.MFt = h, t5.xFt(), t5.NFt());
            }, AFt: function() {
              var t5;
              this.kFt();
            }, IFt: function() {
              var t5, n5, e4, i4, r3, o3 = this, a2 = o3.gLt, u2 = o3.NLt, s2 = o3.ZOt, f2 = o3.getColumnInfos();
              if (u2) {
                for (r3 = u2.length - 1; r3 >= 0; r3--) t5 = u2[r3], (n5 = f2.filter((function(n6) {
                  return n6.name === t5.field;
                }))[0]).DFt ? (e4 = (0, c.getColumnName)(f2[n5._Ft]), (i4 = s2[t5.field]) && (a2.ZOt[e4] = s2[t5.field], delete s2[t5.field]), t5.field = e4) : n5.isGroup && (u2.splice(r3, 1), delete s2[t5.field]);
                o3.NLt = 0 === u2.length ? d : u2;
              }
            }, xFt: function() {
              var t5, n5, e4, i4, r3 = this;
              if (r3.kLt) {
                for (t5 = [], n5 = 0, e4 = r3.kLt; n5 < e4.length; n5++) delete (i4 = e4[n5]).EFt, i4.jFt ? (0, a.isGroupField)(i4.field) && (delete i4.jFt, delete i4.OFt, i4.field = (0, a.getGroupFieldName)(i4.field), t5.push(i4)) : t5.push(i4);
                r3.kLt = 0 === t5.length ? d : t5;
              }
              r3._Lt = d, r3.DLt = r3.kLt;
            }, uii: function(t5) {
              var n5, e4, i4, r3 = this;
              if (r3.FGe()) return n5 = r3.MFt, e4 = r3.ife(t5), i4 = false, r3.MFt = n5.filter((function(t6) {
                return t6.field !== e4;
              })), 0 === r3.MFt.length ? (r3.MFt = h, i4 = true) : n5.forEach((function(t6) {
                t6.summaryFields && t6.summaryFields.length > 0 && t6.summaryFields.forEach((function(t7) {
                  if (t7.slice) {
                    var n6 = void 0;
                    (n6 = (0, o2.isString)(t7.slice) ? t7.slice : t7.slice.field) === e4 && delete t7.slice;
                  }
                }));
              })), i4;
            }, LGe: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2 = this;
              if (c2.FGe()) if (e4 = c2.ife(t5), i4 = c2.ife(n5), r3 = t5.type !== n5.type || t5.dataType !== n5.dataType, e4 === i4 || r3) {
                if (r3) return true;
              } else for (a2 = 0, u2 = o3 = c2.MFt; a2 < u2.length; a2++) (s2 = u2[a2]).field === i4 && (s2.field = e4), s2.summaryFields && s2.summaryFields.forEach((function(t6) {
                t6.slice && (t6.slice === i4 ? t6.slice = e4 : t6.slice.field === i4 && (t6.slice.field = e4));
              }));
            }, CFt: function(t5) {
              var n5, e4, i4, r3, o3, a2;
              t5 && ((n5 = this).kFt(), i4 = (e4 = n5.cde(t5)).rootNode, r3 = e4.indexMap, n5.FFt = i4, n5.iRt = r3, o3 = n5.yLt.slice(), a2 = n5.yLt.filter((function(t6) {
                return t6.isGroup;
              })), n5.Cgr(t5), n5.Sgr(o3, a2));
            }, Cgr: function(t5) {
              this.SFt(), this.TFt(t5);
            }, Sgr: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2 = this, l2 = false, h2 = f2.yLt.filter((function(t6) {
                return t6.isGroup;
              }));
              if (h2.length > 0) for (e4 = function(t6) {
                h2.some((function(n6) {
                  return n6.value === t6.value;
                })) || (t6.K1r = true, l2 = true);
              }, i4 = 0, r3 = n5; i4 < r3.length; i4++) e4(o3 = r3[i4]);
              if (a2 = false, n5.length > 0) for (u2 = function(t6) {
                n5.some((function(n6) {
                  return n6.value === t6.value;
                })) || (t6.ume = true, a2 = true);
              }, s2 = 0, c2 = h2; s2 < c2.length; s2++) u2(o3 = c2[s2]);
              l2 || a2 ? (f2.$1r = t5, f2.tdr || (f2.tdr = t5)) : f2.$1r = d, (0 === n5.length && h2.length > 0 || n5.length > 0 && 0 === h2.length) && (f2.$1r = d, f2.tdr = d);
            }, cde: function(t5, n5) {
              var e4, i4, r3 = this, a2 = n5 || r3.iRt, u2 = r3.lLt || r3.RFt(), s2 = r3.BFt || r3.LFt(t5), c2 = a2;
              return r3.length() > a2.length ? ((0, o2.isNullOrUndefined)(r3.Efe) && (r3.Efe = r3.qFt()), c2 = r3.Efe) : r3.Efe = d, e4 = u2.buildGroupFields(t5, c2), i4 = s2.groupBy(e4, a2), u2.transposeSliceFields(e4), i4;
            }, kFt: function() {
              var t5, n5 = this;
              n5.BFt = null, null === (t5 = n5.lLt) || void 0 === t5 || t5.reset(), n5.FFt = null;
            }, lde: function(t5, n5) {
              var e4 = this, i4 = (n5 || this.autoGroup) && this.MFt;
              return i4 ? (0, o2.isString)(t5) ? e4.$Lt(t5) : !((0, o2.isArray)(t5) && t5.length > 0) || t5.some((function(t6) {
                return e4.$Lt(t6);
              })) : i4;
            }, PFt: function(t5, n5) {
              var e4 = this;
              e4.lde(t5, n5) && e4.CFt(e4.MFt);
            }, FGe: function() {
              var t5, n5 = this.MFt;
              return (0, o2.isArray)(n5) && n5.length > 0;
            }, $Lt: function(t5, n5) {
              var e4 = this, i4 = function(i5) {
                return n5 ? !(0, o2.isFormula)(i5) && i5 === t5 : e4.Nfr(i5, t5);
              };
              return e4.MFt && e4.MFt.some((function(r3) {
                return i4(r3.field) || r3.summaryFields && r3.summaryFields.some((function(r4) {
                  return !n5 && r4.formula && e4.Nfr(r4.formula, t5) || r4.slice && ("string" == typeof r4.slice ? i4(r4.slice) : r4.slice.field && i4(r4.slice.field));
                }));
              }));
            }, LFt: function(t5) {
              var n5 = this, e4 = n5.gLt, i4 = e4.POt;
              return n5.BFt = new a.GroupManager(t5, i4.wEt.bind(i4), e4.QOt, n5.fde.bind(n5)), n5.BFt;
            }, SFt: function(t5) {
              var n5, e4, i4 = this, r3 = i4.getColumnInfos();
              for (n5 = r3.length - 1; n5 >= 0; n5--) (e4 = r3[n5]).isGroup && r3.splice(n5, 1), e4.GFt && (false !== t5 && (e4.GFt = d), e4._Ft = d);
              i4.setColumnInfos(r3);
            }, TFt: function(t5) {
              var n5, e4, i4, r3, o3, a2, u2 = this;
              if (u2.Agr()) {
                for (n5 = v(u2.yLt, u2.lLt, t5), e4 = u2.UFt, r3 = 0, o3 = i4 = u2.getColumnInfos(); r3 < o3.length; r3++) a2 = o3[r3], e4 || (a2.visible = false), n5.push(a2);
                u2.setColumnInfos(n5);
              }
            }, HFt: function(t5) {
              var n5, e4, i4, r3, a2, u2, s2, c2, f2, l2;
              if (t5) {
                for (e4 = (n5 = this).FFt, i4 = [], r3 = n5.yLt, a2 = Array.isArray(t5) ? t5 : [t5], u2 = [], s2 = [], c2 = function(t6) {
                  var e5 = a2[t6], i5 = r3.filter((function(t7) {
                    return t7.value === e5.field;
                  }))[0];
                  i5 && (0, o2.isNumber)(i5.OFt) ? (e5.jFt = true, e5.EFt = n5.zFt([e5]), e5.OFt = i5.OFt, u2.push(e5)) : s2.push(e5);
                }, f2 = 0; f2 < a2.length; f2++) c2(f2);
                l2 = n5.zFt(s2), s2.forEach((function(t6) {
                  return t6.EFt = l2;
                })), n5.VFt(e4, i4, 0, u2, s2), n5.iRt = i4;
              }
            }, VFt: function(t5, n5, e4, i4, r3) {
              var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m = t5.childrenArray && t5.childrenArray[0];
              if (m) for (m.length > 1 && i4.length > 0 && (u2 = i4.filter((function(t6) {
                return t6.OFt === e4;
              }))).length > 0 && (s2 = u2[0].EFt, m.sort((function(t6, n6) {
                return s2(g2.gLt, u2, t6.recordRowNumbers && t6.recordRowNumbers[0], n6.recordRowNumbers && n6.recordRowNumbers[0]);
              }))), c2 = 0, f2 = m; c2 < f2.length; c2++) if (d2 = !(h2 = (l2 = f2[c2]).childrenArray) || !h2[0] || 0 === h2[0].length) for ((a2 = l2.recordRowNumbers).length > 1 && r3.length > 0 && (s2 = (u2 = r3)[0].EFt, a2.sort((function(t6, n6) {
                return s2(g2.gLt, u2, t6, n6);
              }))), o3 = n5.length, v2 = 0, p2 = a2.length; v2 < p2; v2++) n5[o3 + v2] = a2[v2];
              else g2.VFt(l2, n5, e4 + 1, i4, r3);
            }, setGroupSliceColumnSettings: function(t5, n5) {
              var e4 = this, i4 = t5[n5];
              t5.isGroup && e4.isGroupSliceColumn(t5) && e4.getGroupSliceColumns(t5).forEach((function(t6) {
                return t6[n5] = i4;
              }));
            }, isGroupSliceColumn: function(t5) {
              return t5.isGroup && (0, a.isGroupSlice)(t5.value);
            }, getGroupSliceColumns: function(t5) {
              var n5, e4, i4 = this, r3 = [], o3 = t5.OFt, u2 = i4.yLt;
              if (t5.isGroup) for (n5 = 0; n5 < u2.length; n5++) (e4 = u2[n5]).OFt === o3 && (0, a.isGroupSlice)(e4.value) && r3.push(e4);
              return r3;
            }, updateColumnSettingToGroupOptions: function(t5, n5) {
              var e4, i4, r3, s2 = this, c2 = s2.MFt;
              if (c2 && t5.isGroup) switch (i4 = function(t6, e5) {
                (0, u.setFieldExtraProperties)((function(i5) {
                  ((0, o2.isNullOrUndefined)(n5) || n5 === i5) && (t6[i5] = e5[i5]);
                }));
              }, (e4 = (0, a.getGroupOptionIndexesFrom)(t5.value)).length) {
                case 1:
                  i4(c2[e4[0]], t5);
                  break;
                case 2:
                  i4(c2[e4[0]].summaryFields[e4[1]], t5);
                  break;
                case 3:
                  "string" == typeof (r3 = c2[e4[0]].summaryFields[e4[1]].slice) && (r3 = c2[e4[0]].summaryFields[e4[1]].slice = { field: r3 }), i4(r3, t5);
              }
            }, detailColumnsVisible: function(t5) {
              var n5, e4, i4, r3 = this;
              if (0 === arguments.length) return r3.UFt;
              if (r3.UFt !== t5) {
                if (n5 = r3.UFt, r3.UFt = t5, r3.BFt) for (e4 = r3.getColumnInfos(), i4 = 0; i4 < e4.length; i4++) e4[i4].isGroup || (e4[i4].visible = t5);
                this.oRe.FEe({ type: f.ViewChangeType.DetailColumnsVisible, oldData: n5 });
              }
            } });
          }, "./dist/src/view/view-sort.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            function l(t5) {
              return t5.iRt.reduce((function(n5, e4) {
                var i4 = t5.getHierarchyNode(e4, true);
                return (0, r2.isNullOrUndefined)(i4) || (n5[i4.id] = e4), n5;
              }), {});
            }
            function h(t5, n5) {
              return function(e4) {
                (0, r2.isNullOrUndefined)(t5[e4.id]) || n5.push(t5[e4.id]);
              };
            }
            function d(t5, n5, e4, i4, a2) {
              var u2, s2, c2 = {}, f2 = (0, o2.rFt)(t5, n5, e4, a2, c2, false);
              for (u2 = 0; u2 < i4.length; u2++) if (s2 = f2(c2, u2, c2), !(0, r2.isNullOrUndefined)(s2) && !(0, r2.isCalcError)(s2)) return s2;
              return null;
            }
            function v(t5, n5, e4, i4, u2, s2) {
              var c2, f2, l2, h2, p2, g, m, b, y;
              if (1 === u2.length) return s2 = s2 || 0, c2 = u2[0], f2 = (0, o2.rFt)(t5, n5, e4, c2.field, c2), l2 = void 0, c2.compare ? l2 = function(t6, n6, e5, i5) {
                var r3 = f2(t6, e5, n6[s2]), o3 = f2(t6, i5, n6[s2]);
                return n6[s2].compare(r3, o3, n6[s2].ascending);
              } : null === (h2 = d(t5, n5, e4, i4, c2.field)) ? l2 = function() {
                return 0;
              } : (p2 = c2.ascending, g = c2.list, (0, r2.isArray)(g) && g.length > 0 ? (m = g.reduce((function(t6, n6, e5) {
                return t6[n6] = e5, t6;
              }), {}), l2 = function(t6, n6, e5, i5) {
                var r3 = f2(t6, e5, n6[s2]), o3 = f2(t6, i5, n6[s2]);
                return (0, a.compareListValue)(p2, h2, r3, o3, m);
              }) : l2 = function(t6, n6, e5, i5) {
                var r3 = f2(t6, e5, n6[s2]), o3 = f2(t6, i5, n6[s2]);
                return (0, a.compareValue)(p2, h2, r3, o3);
              }), l2;
              for (b = 0; b < u2.length; b++) c2 = u2[b], (y = (0, o2.ZFt)(t5, n5, c2.field)).isGroup && (0, r2.isNullOrUndefined)(c2.ascending) && (c2.compare = function(t6, n6) {
                return t6 === n6 ? 0 : 1;
              }), c2.WFt = v(t5, n5, e4, i4, [c2], b);
              return a.multiSort;
            }
            function p(t5) {
              return !t5.gLt.fme() || t5.Dit();
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ese = void 0, i3 = e3("Common"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/view/view.js"), a = e3("./dist/src/view/view-util.js"), u = e3("./dist/src/undo/interface.js"), s = i3.Common.lt.Dh, c = void 0, n4.ese = v, s(o2.View.prototype, { zFt: function(t5, n5) {
              return v(this.gLt, this.yLt, this.lLt, this.iRt, t5, n5);
            }, QFt: function(t5) {
              if (t5) {
                var n5 = this;
                if (n5.isHierarchy()) return n5.wFt = null, n5.DLt = (0, a.getSortInfos)(t5), void n5.KFt(t5);
                if (n5.MFt) return n5._Lt = (0, a.getSortInfos)(t5), void n5.HFt(t5);
                n5.DLt = (0, a.getSortInfos)(t5), n5.JFt(t5);
              }
            }, JFt: function(t5) {
              var n5, e4, i4, r3, o3, a2, u2, s2, c2;
              if (t5) {
                if (i4 = (e4 = (n5 = this).hIr(t5)).startRow, r3 = e4.endRow, a2 = {}, (o3 = n5.Efe && n5.HTr()) && n5.Dit()) for (u2 = 0, s2 = n5.iRt.length; u2 < s2; u2++) a2[u2] = n5.Efe.indexOf(n5.iRt[u2]);
                if (n5.fde(n5.iRt, t5, i4, r3), o3) if (n5.Dit()) for (u2 = 0, c2 = n5.iRt.length; u2 < c2; u2++) n5.Efe[a2[u2]] = n5.iRt[u2];
                else n5.Efe = n5.iRt.slice();
              }
            }, fde: function(t5, n5, e4, i4) {
              var r3, o3, a2, u2, s2, c2;
              if (n5 && (r3 = this, 0 !== (o3 = Array.isArray(n5) ? n5 : [n5]).length)) if (a2 = r3.zFt(o3), e4 = e4 || 0, i4 = i4 || t5.length, 0 === e4 && i4 >= t5.length) t5.sort((function(t6, n6) {
                return a2(r3.gLt, o3, t6, n6);
              }));
              else for ((u2 = t5.slice(e4, i4)).sort((function(t6, n6) {
                return a2(r3.gLt, o3, t6, n6);
              })), s2 = 0, c2 = u2.length; s2 < c2; s2++) t5[s2 + e4] = u2[s2];
            }, hIr: function(t5) {
              var n5 = this, e4 = n5.lFt, i4 = e4.length, r3 = Array.isArray(t5) ? t5 : [t5], o3 = r3[0], a2 = o3.startRow, u2 = void 0 === a2 ? 0 : a2, s2 = o3.endRow, c2 = void 0 === s2 ? n5.length() : s2;
              return { startRow: i4 + u2, endRow: c2 };
            }, XFt: function() {
              var t5, n5 = this, e4 = n5.gLt.uBt();
              return !(0, r2.isNullOrUndefined)(e4) && (0, r2.isNullOrUndefined)(n5.kLt) ? ((!n5.iRt || n5.iRt.length < n5.length()) && (n5.iRt = n5.qFt()), n5.iRt && n5.iRt.length > 0 && (t5 = { field: e4, ascending: true }, n5.isHierarchy() ? n5.KFt(t5) : n5.JFt(t5)), true) : (0, r2.isNullOrUndefined)(e4) && (0, r2.isNullOrUndefined)(n5.kLt) && n5.isHierarchy() ? ((!n5.iRt || n5.iRt.length < n5.length()) && (n5.iRt = n5.qFt()), n5.iRt && n5.iRt.length > 0 && n5.$Ft(), true) : void 0;
            }, KFt: function(t5) {
              var n5, e4, i4, o3, a2, u2;
              t5 && (e4 = (n5 = this).getHierarchyRootNode(), i4 = [], o3 = Array.isArray(t5) ? t5 : [t5], a2 = l(n5), u2 = n5.zFt(o3), o3.forEach((function(t6) {
                return t6.EFt = u2;
              })), (0, r2.traversalTree)(e4, h(a2, i4), { isOrderChildren: n5.rAe, compareFn: function(e5, i5) {
                return u2 = (t5 = o3)[0].EFt, (0, r2.isNullOrUndefined)(a2[e5.id]) || (0, r2.isNullOrUndefined)(a2[i5.id]) ? 0 : u2(n5.gLt, t5, a2[e5.id], a2[i5.id]);
              } }), n5.iRt = i4);
            }, $Ft: function() {
              var t5 = this, n5 = t5.getHierarchyRootNode(), e4 = [], i4 = l(t5);
              (0, r2.traversalTree)(n5, h(i4, e4), { field: "sequence", isOrderChildren: false }), t5.iRt = e4;
            }, NFt: function(t5) {
              var n5 = this;
              n5.tPt(t5) && n5.sort(n5.kLt);
            }, tPt: function(t5) {
              return (t5 || this.autoSort) && this.kLt;
            }, Pct: function() {
              var t5, n5 = this.kLt;
              return (0, r2.isArray)(n5) && n5.length > 0;
            }, PGe: function(t5) {
              var n5, e4, i4, r3 = this;
              if (r3.Pct()) return n5 = r3.kLt, e4 = r3.ife(t5), i4 = false, r3.kLt = n5.filter((function(t6) {
                return t6.field !== e4;
              })), 0 === r3.kLt.length && (r3.kLt = void 0), r3.DLt && (r3.DLt = r3.DLt.filter((function(t6) {
                return t6.field !== e4;
              })), 0 === r3.DLt.length && (r3.DLt = void 0)), r3._Lt && (r3._Lt = r3._Lt.filter((function(t6) {
                return t6.field !== e4;
              })), 0 === r3._Lt.length && (r3._Lt = void 0)), r3.kLt || r3.DLt || r3._Lt || (i4 = true), i4;
            }, GGe: function(t5, n5) {
              var e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g, m = this;
              if (m.Pct()) if (e4 = m.ife(t5), i4 = m.ife(n5), r3 = t5.type !== n5.type || t5.dataType !== n5.dataType, e4 === i4 || r3) {
                if (r3) return true;
              } else {
                if (o3 = m.kLt, a2 = m.DLt, u2 = m._Lt, o3) for (s2 = 0, c2 = o3; s2 < c2.length; s2++) (f2 = c2[s2]).field === i4 && (f2.field = e4);
                if (a2) for (l2 = 0, h2 = a2; l2 < h2.length; l2++) (d2 = h2[l2]).field === i4 && (d2.field = e4);
                if (u2) for (v2 = 0, p2 = u2; v2 < p2.length; v2++) (g = p2[v2]).field === i4 && (g.field = e4);
              }
            }, sort: function(t5) {
              var n5, e4, i4, r3 = this;
              r3.iRt || r3.gFt(), n5 = this.kLt, e4 = f([], this.iRt, true), r3.HTr() && (i4 = r3.Efe.slice()), r3.QFt(t5), this.kLt = t5, this.oRe.FEe({ type: u.ViewChangeType.SortUpdate, oldData: { sortInfo: n5, indexMap: e4, baseIndexMap: i4 } });
            }, HEe: function(t5, n5, e4) {
              if (!t5) return this.kLt = void 0, this.DLt = void 0, this._Lt = void 0, this.iRt = n5, this.HTr() && (this.Efe = e4), void this.CFt(this.MFt);
              this.sort(t5);
            }, VEe: function(t5) {
              this.iRt = t5;
            }, sde: function(t5) {
              var n5 = this;
              return n5.tPt() || n5.lde(t5);
            }, hde: function(t5, n5) {
              var e4, i4, o3, a2, u2, s2, c2, f2 = this;
              if (!f2.sde(t5) && (n5 || p(f2)) && f2.ame()) {
                for (e4 = f2.getColumnInfos(), i4 = [], o3 = e4.length - 1; o3 >= 0; o3--) if (a2 = e4[o3], (u2 = f2.GAe(a2)).length > 0) {
                  c2 = (s2 = f2.gLt.XOt[u2[u2.length - 1]]).options, (0, r2.isArray)(c2.partitions) && c2.partitions.length > 0 && c2.partitions.forEach((function(t6) {
                    return i4.push({ field: t6.field, ascending: t6.ascending });
                  })), (0, r2.isArray)(c2.orders) && c2.orders.length > 0 && c2.orders.forEach((function(t6) {
                    return i4.push({ field: t6.field, ascending: t6.ascending });
                  }));
                  break;
                }
                i4.length > 0 && f2.JFt(i4);
              }
            }, UGe: function() {
              var t5, n5 = this.HGe(), e4 = n5.sortBefore || n5.sortInfo, i4 = f([], this.iRt, true);
              this.HTr() && (t5 = this.Efe.slice()), this.oRe.FEe({ type: u.ViewChangeType.SortUpdate, oldData: { sortInfo: e4, indexMap: i4, baseIndexMap: t5 } });
            }, VGe: function(t5) {
              var n5 = this, e4 = t5 || n5.autoSort, i4 = n5.DLt && n5.DLt.length > 0;
              e4 && i4 && (n5.isHierarchy() ? n5.KFt(n5.DLt) : n5.JFt(n5.DLt));
            }, zGe: function(t5) {
              var n5 = this, e4 = t5 || n5.autoSort, i4 = n5._Lt && n5._Lt.length > 0;
              e4 && i4 && n5.HFt(n5._Lt);
            }, nPt: function(t5, n5) {
              var e4 = this;
              e4.hde(t5), e4.YGe(n5);
            }, YGe: function(t5, n5) {
              var e4, i4, r3, o3 = this;
              o3.VGe(n5), o3.PFt(t5, n5), o3.zGe(n5), o3.$1r && (e4 = o3.$1r.filter((function(t6) {
                return t6.K1r;
              })), i4 = 0, r3 = false, this.NLt && (i4 = this.NLt.length, this.NLt = this.NLt.filter((function(t6) {
                return !e4.some((function(n6) {
                  return n6.value === t6.field;
                }));
              })), this.NLt.length !== i4 && (r3 = true)), this.kLt && (i4 = this.kLt.length, this.kLt = this.kLt.filter((function(t6) {
                return !e4.some((function(n6) {
                  return n6.value === t6.field;
                }));
              })), this.kLt.length !== i4 && (r3 = true)), this._Lt && (i4 = this._Lt.length, this._Lt = this._Lt.filter((function(t6) {
                return !e4.some((function(n6) {
                  return n6.value === t6.field;
                }));
              })), this._Lt.length !== i4 && (r3 = true)), this.DLt && (i4 = this.DLt.length, this.DLt = this.DLt.filter((function(t6) {
                return !e4.some((function(n6) {
                  return n6.value === t6.field;
                }));
              })), this.DLt.length !== i4 && (r3 = true)), r3 && o3.tFt(c, true, c, true));
            } });
          }, "./dist/src/view/view-status.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s = this && this.nJr || function() {
              return s = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, s.apply(this, arguments);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/view/view.js"), a = i3.Common.lt.Dh, u = null, a(o2.View.prototype, { BQe: function(t5, n5) {
              var e4, i4, o3, a2, s2 = this;
              return (0, r2.isNullOrUndefined)(s2.FQe) ? u : (e4 = s2.RJ(t5), o3 = (i4 = s2.kve(n5)) && i4.name, (0, r2.isNullOrUndefined)(o3) || !(0, r2.isNumber)(e4) ? u : (a2 = s2.FQe[o3]) ? a2[e4] : u);
            }, GQe: function(t5, n5, e4) {
              var i4, o3, a2, u2, c, f, l = this;
              (0, r2.isNullOrUndefined)(l.FQe) || (o3 = l.RJ(t5), u2 = (a2 = l.kve(n5)) && a2.name, !(0, r2.isNullOrUndefined)(u2) && (0, r2.isNumber)(o3) && ((c = this.FQe[u2]) ? (f = c[o3], e4 ? c[o3] = s(s({}, f), e4) : f && delete c[o3]) : this.FQe[u2] = ((i4 = {})[o3] = s({}, e4), i4)));
            }, UQe: function(t5, n5) {
              var e4, i4, r3 = this, o3 = r3.$Ge(t5), a2 = o3.name;
              n5 && (i4 = (e4 = r3.$Ge(n5)).name, this.FQe[i4] = this.FQe[a2]), delete this.FQe[a2];
            }, HQe: function(t5, n5, e4) {
              var i4, o3, a2, u2, s2, c = this, f = c.FQe;
              if (f) {
                for (i4 in f) if (f.hasOwnProperty(i4)) {
                  if (o3 = f[i4], (0, r2.isNullOrUndefined)(o3)) continue;
                  if (a2 = Object.keys(o3), e4 && e4.length > 0) (0, r2.removeIndexes)(a2, e4, true);
                  else for (u2 = 0; u2 < a2.length; u2++) (s2 = +a2[u2]) >= t5 + n5 ? (o3[s2 - n5] = o3[s2], delete o3[s2]) : s2 >= t5 && s2 < t5 + n5 && delete o3[s2];
                }
              }
            }, VQe: function(t5) {
              var n5, e4, i4, o3, a2, u2 = this, s2 = u2.FQe;
              if (s2) {
                for (n5 in s2) if (s2.hasOwnProperty(n5)) {
                  if (e4 = s2[n5], (0, r2.isNullOrUndefined)(e4)) continue;
                  for (o3 = (i4 = Object.keys(e4)).length - 1; o3 >= 0; o3--) (a2 = +i4[o3]) >= t5 && (e4[a2 + 1] = e4[a2], delete e4[a2]);
                }
              }
            } });
          }, "./dist/src/view/view-style.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u = this && this.nJr || function() {
              return u = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, u.apply(this, arguments);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), i3 = e3("Common"), r2 = e3("./dist/src/view/view.js"), o2 = e3("./dist/src/undo/interface.js"), (a = i3.Common.lt.Dh)(r2.View.prototype, { getStyleRules: function() {
              return this.LEt.styleRules;
            }, getStyleRule: function(t5) {
              var n5, e4 = this.getStyleRules();
              return u({}, t5 ? null !== (n5 = e4[t5]) && void 0 !== n5 ? n5 : {} : null != e4 ? e4 : {});
            }, addStyleRule: function(t5, n5, e4) {
              var i4, r3, a2, s;
              t5 && (r3 = {}, n5 && (r3.style = n5), e4 && (r3.rule = e4), a2 = null !== (i4 = this.getStyleRules()) && void 0 !== i4 ? i4 : {}, s = u({}, a2), a2[t5] = r3, this.oRe.FEe({ type: o2.ViewChangeType.StyleRuleChanges, oldData: s }));
            }, removeStyleRule: function(t5) {
              var n5 = this.getStyleRules(), e4 = u({}, n5);
              delete n5[t5], this.oRe.FEe({ type: o2.ViewChangeType.StyleRuleChanges, oldData: e4 });
            }, clearStyleRules: function() {
              var t5, n5 = u({}, null !== (t5 = this.LEt.styleRules) && void 0 !== t5 ? t5 : {});
              this.LEt.styleRules = {}, this.oRe.FEe({ type: o2.ViewChangeType.StyleRuleChanges, oldData: n5 });
            } });
          }, "./dist/src/view/view-util.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f = this && this.nJr || function() {
              return f = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, f.apply(this, arguments);
            };
            function l(t5, n5, e4, i4) {
              var o3 = t5 ? e4 : i4, a2 = t5 ? i4 : e4;
              return (0, r2.isNullOrUndefined)(o3) && (0, r2.isNullOrUndefined)(a2) ? 0 : (0, r2.isNullOrUndefined)(o3) ? -1 : (0, r2.isNullOrUndefined)(a2) ? 1 : "number" == typeof n5 || n5 instanceof Date ? o3 - a2 : o3 > a2 ? 1 : o3 < a2 ? -1 : 0;
            }
            function h(t5, n5, e4, i4, r3) {
              var o3 = t5 ? r3[e4] : r3[i4], a2 = t5 ? r3[i4] : r3[e4];
              return o3 !== c && a2 !== c ? o3 - a2 : o3 !== c ? -1 : a2 !== c ? 1 : l(t5, n5, e4, i4);
            }
            function d(t5, n5, e4, i4, r3) {
              var s2, c2;
              if (e4 instanceof Date) if (o2.indexOf(n5) > -1) e4 = e4.getTime(), s2 = i4, i4 = function(t6, n6, e5) {
                return s2(t6, n6, e5) && s2(t6, n6, e5).getTime();
              };
              else {
                if (a.indexOf(n5) > -1) return function() {
                  return false;
                };
                if (u.indexOf(n5) > -1) return function() {
                  return true;
                };
              }
              return c2 = v(t5, n5, e4, r3), function(t6, n6, e5) {
                return c2(i4(t6, n6, e5));
              };
            }
            function v(t5, n5, e4, o3) {
              var a2, u2, f2, l2, h2, d2 = e4 + "", v2 = d2 && d2.length;
              switch ((0, r2.isString)(e4) && (a2 = i3.Common.$T.jJ(e4)), u2 = t5.gLt, n5) {
                case "eq":
                  return f2 = function(t6) {
                    return t6 === e4;
                  }, (0, r2.isNullOrUndefined)(e4) && (f2 = function(t6) {
                    return t6 === s || t6 === c;
                  }), a2 ? function(t6) {
                    return new RegExp("^" + a2 + "$").test(t6);
                  } : f2;
                case "neq":
                  return l2 = function(t6) {
                    return t6 !== e4;
                  }, (0, r2.isNullOrUndefined)(e4) && (l2 = function(t6) {
                    return t6 !== s && t6 !== c;
                  }), a2 ? function(t6) {
                    return !new RegExp("^" + a2 + "$").test(t6);
                  } : l2;
                case "lt":
                  return function(t6) {
                    return null !== t6 && t6 < e4;
                  };
                case "lte":
                  return function(t6) {
                    return null !== t6 && t6 <= e4;
                  };
                case "gt":
                  return function(t6) {
                    return t6 > e4;
                  };
                case "gte":
                  return function(t6) {
                    return t6 >= e4;
                  };
                case "startswith":
                  return a2 ? function(t6) {
                    return new RegExp("^" + a2).test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && (t6 + "").substr(0, v2) === e4;
                  };
                case "doesnotstartwith":
                  return a2 ? function(t6) {
                    return !new RegExp("^" + a2).test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && (t6 + "").substr(0, v2) !== e4;
                  };
                case "endswith":
                  return a2 ? function(t6) {
                    return new RegExp(a2 + "$").test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && -1 !== (t6 + "").indexOf(e4, (t6 + "").length - v2);
                  };
                case "doesnotendwith":
                  return a2 ? function(t6) {
                    return !new RegExp(a2 + "$").test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && -1 === (t6 + "").indexOf(e4, (t6 + "").length - v2);
                  };
                case "contains":
                  return a2 ? function(t6) {
                    return new RegExp(a2).test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && (t6 + "").indexOf(e4) >= 0;
                  };
                case "doesnotcontain":
                  return a2 ? function(t6) {
                    return !new RegExp(a2).test(t6);
                  } : function(t6) {
                    return "string" == typeof (t6 + "") && (t6 + "").indexOf(e4) < 0;
                  };
                case "top":
                case "bottom":
                  return (h2 = t5.uFt(o3)) || (t5.eRt([o3]), h2 = t5.uFt(o3)), e4 = g(Object.keys(h2), n5, e4), function(t6) {
                    return e4.indexOf(t6) > -1;
                  };
                case "above":
                  return e4 = m(p(t5, u2, o3), u2.jRt(o3)), function(t6) {
                    return t6 > e4;
                  };
                case "below":
                  return e4 = m(p(t5, u2, o3), u2.jRt(o3)), function(t6) {
                    return t6 < e4;
                  };
                case "quarter":
                  return function(t6) {
                    return b(e4, t6);
                  };
                case "month":
                  return function(t6) {
                    return (t6 && t6.getMonth()) === e4;
                  };
                default:
                  return function() {
                    return false;
                  };
              }
            }
            function p(t5, n5, e4) {
              var i4, r3, o3, a2, u2;
              if (!e4) return [];
              if (i4 = n5._dataSource._data[e4]) return i4.data;
              if (r3 = t5.length(), o3 = [], a2 = t5.$Ge(e4, true, true)) for (u2 = 0; u2 < r3; u2++) o3.push(t5.Lgr(u2, u2, a2));
              return o3;
            }
            function g(t5, n5, e4) {
              var i4, r3, o3, a2 = [];
              for (i4 = 0, r3 = t5; i4 < r3.length; i4++) o3 = r3[i4], isNaN(o3) || a2.push(parseFloat(o3));
              return e4 >= a2.length || ("top" === n5 ? a2 = C(a2, e4) : "bottom" === n5 && (a2 = x(a2, e4))), a2;
            }
            function m(t5, n5) {
              var e4, i4, r3, o3, a2 = 0;
              if (!t5 || 0 === t5.length) return a2;
              for (e4 = n5 && n5.dataMap, i4 = 0, r3 = t5; i4 < r3.length; i4++) o3 = r3[i4], e4 && "number" == typeof e4[o3] && (o3 = e4[o3]), "number" == typeof o3 && (a2 += o3);
              return a2 / t5.length;
            }
            function b(t5, n5) {
              var e4 = n5 && n5.getMonth();
              switch (t5) {
                case 0:
                  return e4 <= 2;
                case 1:
                  return e4 >= 3 && e4 <= 5;
                case 2:
                  return e4 >= 6 && e4 <= 8;
                case 3:
                  return e4 >= 9;
                default:
                  return false;
              }
            }
            function y(t5, n5, e4, i4) {
              var r3, o3, a2, u2 = 0;
              for (r3 = 0, o3 = n5.length; r3 < o3 && 0 === (u2 = (a2 = n5[r3]).WFt(t5, n5, e4, i4)); r3++) ;
              return u2;
            }
            function w(t5) {
              return Array.isArray(t5) ? t5 : [t5];
            }
            function M(t5, n5) {
              var e4, i4;
              if (0 === t5.length) return [];
              for (e4 = t5.slice(0), i4 = 0; i4 < n5; i4++) -1 === t5.indexOf(i4) && e4.push(i4);
              return e4;
            }
            function C(t5, n5) {
              var e4, i4, r3 = S(t5.slice(0, n5));
              for (e4 = n5; e4 < t5.length; e4++) t5[e4] > r3[0] && (i4 = r3[0], r3[0] = t5[e4], t5[e4] = i4, S(r3));
              return r3;
            }
            function S(t5) {
              var n5, e4 = t5.length;
              for (n5 = Math.floor(e4 / 2); n5 >= 0; n5--) T(t5, n5, e4);
              return t5;
            }
            function T(t5, n5, e4) {
              var i4, r3 = 2 * n5 + 1, o3 = 2 * n5 + 2, a2 = n5;
              r3 < e4 && t5[r3] < t5[a2] && (a2 = r3), o3 < e4 && t5[o3] < t5[a2] && (a2 = o3), n5 !== a2 && (i4 = t5[n5], t5[n5] = t5[a2], t5[a2] = i4, T(t5, a2, e4));
            }
            function x(t5, n5) {
              var e4, i4, r3 = A(t5.slice(0, n5));
              for (e4 = n5; e4 < t5.length; e4++) t5[e4] < r3[0] && (i4 = r3[0], r3[0] = t5[e4], t5[e4] = i4, A(r3));
              return r3;
            }
            function A(t5) {
              var n5, e4 = t5.length;
              for (n5 = Math.floor(e4 / 2); n5 >= 0; n5--) I(t5, n5, e4);
              return t5;
            }
            function I(t5, n5, e4) {
              var i4, r3 = 2 * n5 + 1, o3 = 2 * n5 + 2, a2 = n5;
              r3 < e4 && t5[r3] > t5[a2] && (a2 = r3), o3 < e4 && t5[o3] > t5[a2] && (a2 = o3), n5 !== a2 && (i4 = t5[n5], t5[n5] = t5[a2], t5[a2] = i4, I(t5, a2, e4));
            }
            function k(t5, n5) {
              var e4, i4, r3, o3;
              for (e4 = 0, i4 = t5; e4 < i4.length; e4++) if (o3 = n5(r3 = i4[e4])) return o3;
            }
            function N(t5) {
              var n5, e4, i4, r3 = t5.style;
              r3 || (r3 = t5.style = {}), (n5 = r3.cellButtons) || (n5 = r3.cellButtons = []), (e4 = r3.dropDowns) || (e4 = r3.dropDowns = []), (i4 = k(n5, (function(t6) {
                return "openDateTimePicker" === t6.command;
              }))) ? n5.forEach((function(n6) {
                n6.enabled = !t5.readonly;
              })) : n5.push({ imageType: "dropdown", command: "openDateTimePicker", useButtonStyle: false, buttonBackColor: "transparent", enabled: !t5.readonly }), (i4 = k(e4, (function(t6) {
                return "dateTimePicker" === t6.type;
              }))) || e4.push({ type: "dateTimePicker", option: { showTime: false, calendarPage: "day", startDay: "sunday" } });
            }
            function j(t5, e4) {
              var i4, o3 = (0, r2.findIndex)(e4, (function(n5) {
                return D(n5) === t5;
              }));
              return o3 > -1 && (i4 = e4[o3]).width || n4.GROUP_COLUMN_WIDTH;
            }
            function D(t5) {
              if ((0, r2.isString)(t5)) return t5;
              var n5 = t5.value;
              return "string" == typeof n5 ? n5 : "function" == typeof n5 ? n5.name : void 0;
            }
            function _(t5) {
              return !t5.JOt;
            }
            function O(t5) {
              var n5, e4, i4, r3, o3 = _(t5);
              if (o3) {
                for (t5.WOt++, e4 = 0, i4 = n5 = t5.eBt(); e4 < i4.length && (!(r3 = i4[e4]) || r3.WOt || (o3 = O(r3))); e4++) ;
                t5.WOt--;
              }
              return o3;
            }
            function E(t5) {
              return t5.isGroup || t5.isCross || t5.zTr;
            }
            function R(t5) {
              return L(t5[0]);
            }
            function L(t5) {
              return t5.operator === c;
            }
            function F(t5) {
              return t5[0].operator !== c && t5[0].ort;
            }
            function B(t5, n5, e4, i4, o3, a2) {
              var u2, s2, c2, l2 = e4.isHierarchy(), h2 = {}, d2 = function(u3) {
                var s3, c3, d3, v2, p2, g2, m2, b2, y2, w2;
                if (u3 && !h2[u3.field] && ((0, r2.isNullOrUndefined)(o3) || u3.field === o3)) {
                  if (h2[u3.field] = true, (s3 = e4.uFt(u3.field)) || (e4.eRt([u3.field]), s3 = e4.uFt(u3.field)), c3 = s3 && Object.keys(s3), v2 = void 0, (d3 = n5[u3.field]) instanceof Date) {
                    for ((p2 = new Date(d3)).setHours(0, 0, 0, 0), g2 = p2.toISOString().slice(0, 10), v2 = true, m2 = 0, b2 = c3; m2 < b2.length; m2++) if ((y2 = b2[m2]).startsWith(g2)) {
                      v2 = false;
                      break;
                    }
                  } else v2 = (0, r2.isNullOrUndefined)(d3) ? -1 === c3.indexOf("null") && -1 === c3.indexOf("undefined") : -1 === c3.indexOf(d3 + "");
                  if (!t5.some((function(t6) {
                    return t6.field === u3.field && t6.value === d3;
                  })) && v2 && (R(t5) ? (t5.push(f(f({}, u3), { value: d3, isAdded: true })), l2 && P(e4, t5[t5.length - 1], o3, d3, a2)) : (F(t5) || d3 === i4 && void 0 === i4) && t5.push(f(f({}, u3), { value: d3, operator: "eq", relation: "or", isAdded: true }))), c3.indexOf(i4 + "") > -1 && 1 === s3[i4].length && i4 !== d3) {
                    for (w2 = 0; w2 < t5.length; w2++) if (t5[w2].value === i4 && t5[w2].isAdded) {
                      t5.splice(w2, 1);
                      break;
                    }
                  }
                }
              };
              for (u2 = 0, s2 = t5; u2 < s2.length; u2++) d2(c2 = s2[u2]);
            }
            function P(t5, n5, e4, i4, o3) {
              var a2, u2, s2, c2;
              if (n5.field === e4 || (0, r2.isNullOrUndefined)(e4)) {
                if (a2 = void 0, n5.Vce) (a2 = n5.Vce.slice())[0] = i4;
                else {
                  for (s2 = (u2 = t5.getHierarchyNode(o3, true)).parent, c2 = [i4]; !s2.isRoot; ) c2.push(s2.getFieldValue(n5.field)), s2 = s2.parent;
                  a2 = c2;
                }
                n5.Vce = a2;
              }
            }
            function G(t5) {
              var n5, e4, i4, o3, a2;
              if (!(0, r2.isNullOrUndefined)(t5)) {
                for (n5 = [], e4 = 0, i4 = t5; e4 < i4.length; e4++) o3 = i4[e4], (a2 = f({}, o3)).getValue && delete a2.getValue, n5.push(a2);
                return n5;
              }
              return t5;
            }
            function U(t5, n5) {
              var e4 = function() {
                var e5, i5 = [], r4 = [t5[0]];
                for (e5 = 1; e5 < t5.length; e5++) "or" === n5[e5] ? (i5.push(r4), r4 = [t5[e5]]) : r4.push(t5[e5]);
                return r4.length > 0 && i5.push(r4), i5;
              }, i4 = function(t6, n6, e5, i5) {
                return i5.every((function(i6) {
                  return i6(t6, n6, e5);
                }));
              }, r3 = e4();
              return function(t6, n6, e5) {
                return r3.some((function(r4) {
                  return i4(t6, n6, e5, r4);
                }));
              };
            }
            function H(t5, n5) {
              if (t5 && t5.dataMap) {
                var e4 = JSON.parse(JSON.stringify(t5.dataMap));
                return function(t6, i4, r3) {
                  var o3 = n5(t6, i4, r3);
                  return void 0 !== e4[o3] ? e4[o3] : o3;
                };
              }
              return n5;
            }
            function V(t5, n5, e4, i4, r3) {
              var o3, a2, u2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = [], w2 = false, M2 = false, C2 = i4.map((function(t6) {
                var n6 = t6.value;
                return n6 === s && (w2 = true), n6 === c && (M2 = true), t6.value;
              }));
              for (w2 && !M2 && C2.push(c), M2 && !w2 && C2.push(s), o3 = 0, a2 = C2; o3 < a2.length; o3++) for (u2 = a2[o3], l2 = 0, h2 = f2 = e4 && e4[u2] || []; l2 < h2.length; l2++) y2[d2 = h2[l2]] = true;
              for (v2 = n5, p2 = t5.reduce((function(t6, n6) {
                return t6[n6] = true, t6;
              }), {}), g2 = 0, m2 = r3; g2 < m2.length; g2++) y2[b2 = m2[g2]] && (n5 > 0 && p2[b2] || (t5[v2] = b2, v2++));
            }
            function z(t5, n5, e4, i4, o3, a2, u2) {
              var s2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2 = [], A2 = i4.map((function(t6, n6) {
                return n6;
              })), I2 = [];
              if (o3 && o3.length && (A2 = [], s2 = false, i4.forEach((function(t6, n6) {
                a2.indexOf(n6) > -1 ? (x2.push(n6), A2.push(c)) : (x2.push(c), A2.push(n6)), t6.isCross && (s2 = true);
              })), t5 = o3[t5], n5 = o3[n5], s2)) {
                for (f2 = [], l2 = [], h2 = 0; h2 < i4.length; h2++) i4[h2].isCross ? (f2[i4[h2].RBt] || (f2[i4[h2].RBt] = [], I2.push(f2[i4[h2].RBt])), (d2 = f2[i4[h2].RBt]).push(h2)) : I2.push(h2), t5 === h2 && (t5 = I2.length - 1), n5 === h2 && (n5 = I2.length - 1);
                for (v2 = 0, p2 = a2; v2 < p2.length; v2++) g2 = p2[v2], l2.push(I2.indexOf(g2));
                x2 = [], A2 = [], I2.forEach((function(t6, n6) {
                  l2.indexOf(n6) > -1 ? (x2.push(n6), A2.push(c)) : (x2.push(c), A2.push(n6));
                })), e4 = 1;
              }
              if ((0, r2.swapArrayItems)(A2, t5, n5, e4), A2 = A2.filter((function(t6) {
                return !(0, r2.isNullOrUndefined)(t6);
              })), o3 && o3.length) {
                for (h2 = 0; h2 < x2.length; h2++) void 0 === x2[h2] && (x2[h2] = A2.shift());
                if (I2 && I2.length) {
                  for (m2 = [], b2 = 0; b2 < x2.length; b2++) if (y2 = x2[b2], Array.isArray(I2[y2])) {
                    if ("string" == typeof (w2 = u2[b2].cross)) {
                      for (M2 = [x2[b2]]; b2 + 1 < u2.length && w2 === u2[b2 + 1].cross; ) M2 = M2.concat(x2[b2 + 1]), b2++;
                      for (C2 = I2[M2[0]].length, S2 = [], T2 = 0; T2 < C2; T2++) for (h2 = 0; h2 < M2.length; h2++) S2.push(I2[M2[h2]][T2]);
                      m2 = m2.concat(S2);
                      continue;
                    }
                    m2 = m2.concat(I2[y2]);
                  } else m2.push(I2[y2]);
                  x2 = m2;
                }
              } else x2 = A2;
              return x2;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.ePt = n4.hFt = n4.mapGetValueFunc = n4.aFt = n4.removeExtraInfos = n4.addFilterInfoForFieldValue = n4.isFieldListFilterInfo = n4.isFieldListFilter = n4.isViewColumn = n4.isTableDataReady = n4.getColumnName = n4.getGroupColumnWidth = n4.applyDateTimePicker = n4.array_find = n4.generatePinnedColumnIndexMap = n4.getSortInfos = n4.multiSort = n4.oFt = n4.compareListValue = n4.compareValue = n4.GROUP_COLUMN_WIDTH = void 0, i3 = e3("Common"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = ["eq", "neq", "lt", "lte", "gt", "gte"], a = ["startswith", "doesnotstartwith", "endswith", "contains"], u = ["doesnotendwith", "doesnotcontain"], s = null, c = void 0, n4.GROUP_COLUMN_WIDTH = 100, n4.compareValue = l, n4.compareListValue = h, n4.oFt = d, n4.multiSort = y, n4.getSortInfos = w, n4.generatePinnedColumnIndexMap = M, n4.array_find = k, n4.applyDateTimePicker = N, n4.getGroupColumnWidth = j, n4.getColumnName = D, n4.isTableDataReady = O, n4.isViewColumn = E, n4.isFieldListFilter = R, n4.isFieldListFilterInfo = L, n4.addFilterInfoForFieldValue = B, n4.removeExtraInfos = G, n4.aFt = U, n4.mapGetValueFunc = H, n4.hFt = V, n4.ePt = z;
          }, "./dist/src/view/view.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), r2 = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || i3(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), r2(e3("./dist/src/view/view.js"), n4), r2(e3("./dist/src/view/view-calc.js"), n4), r2(e3("./dist/src/view/view-status.js"), n4), r2(e3("./dist/src/view/view-style.js"), n4), r2(e3("./dist/src/view/view-event.js"), n4), r2(e3("./dist/src/view/view-group.js"), n4), r2(e3("./dist/src/view/view-sort.js"), n4), r2(e3("./dist/src/view/view-filter.js"), n4), r2(e3("./dist/src/view/view-cross.js"), n4);
          }, "./dist/src/view/view.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m = this && this.nJr || function() {
              return m = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, m.apply(this, arguments);
            }, b = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            function y(t5) {
              return { rule: { area: r2.ViewArea.colHeader, direction: r2.StateRuleDirection.column, state: t5 }, style: { decoration: { icons: [{ src: "" }] } } };
            }
            function w(t5) {
              (0, i3.isNullOrUndefined)(t5.styleRules) && (t5.styleRules = (0, i3.clone)(p, true));
            }
            function M(t5) {
              return t5 instanceof Date && !isNaN(t5.valueOf());
            }
            function C(t5) {
              return s.Common.ct.Q0(t5);
            }
            function S(t5) {
              var n5 = s.Common.ct.dJ(t5);
              return n5 && !M(n5) && (n5 = s.Common.ct._DT(t5)), M(n5) ? n5 : null;
            }
            function T(t5) {
              var n5, e4, r3 = [], o3 = t5.columns;
              if (o3) for (n5 in o3) o3.hasOwnProperty(n5) && ("=" === (e4 = (0, i3.clone)(o3[n5])).value[0] && e4.name && (e4.value = e4.name), r3.push(e4));
              return r3;
            }
            function x(t5) {
              return 0 === t5 ? "" : "_" + t5;
            }
            function A(t5, n5, e4, r3, o3) {
              var a2, u2, s2, c2;
              return (0, i3.isNullOrUndefined)(r3) || (u2 = r3.value, r3.isCross || r3.isGroup || r3.zTr ? o3 && (s2 = o3.getFieldByName(u2)) && (a2 = s2.getValue(e4, n5)) : u2 && ("string" === (c2 = typeof u2) ? a2 = N(t5, r3, e4) : "function" === c2 && (a2 = r3.value(t5.iBt(e4))))), a2;
            }
            function I(t5, n5, e4, i4, r3, o3, a2, s2, c2, f2) {
              var l2, h2, d2, v2, p2 = {}, g2 = [], m2 = !!r3;
              if (n5.forEach((function(n6, e5) {
                var r4, u2 = n6.value;
                a2 && !a2[u2] || (n6.isCross ? i4 && (p2[n6.value] = i4.getFieldByColumn(n6).getValue(o3)) : n6.isGroup ? i4 && i4.xve(p2, n6, o3, s2, c2) : u2 && ("string" == typeof u2 ? (r4 = s2 && n6.caption || u2, p2[r4] = N(t5, n6, o3)) : "function" == typeof u2 && g2.push({ name: u2.name, caption: n6.caption, value: u2 })));
              })), g2.length > 0 && (l2 = t5.iBt(o3), g2.forEach((function(t6) {
                p2[t6.name] = t6.value(l2);
              }))), m2 && i4 && r3 && f2) {
                for (h2 in a2) a2.hasOwnProperty(h2) && a2[h2] && (p2[h2] = k(i4, h2, o3, s2));
                for (d2 = function(t6) {
                  var e5, a3 = r3[t6].summaryFields, c3 = function(e6) {
                    var r4, c4, f3, l3, h3, d3, v3, g3 = a3[e6];
                    if (g3 && g3.slice) {
                      for (r4 = x(t6), c4 = g3.caption + "_" + g3.slice + r4, f3 = {}, h3 = 0, d3 = l3 = n5.filter((function(n6) {
                        var i5 = (0, u.getGroupOptionIndexesFrom)(n6.value);
                        return n6.isGroup && 3 === i5.length && +i5[0] === t6 && +i5[1] === e6;
                      })); h3 < d3.length; h3++) f3[(v3 = d3[h3]).caption] = k(i4, v3.value, o3, s2);
                      p2[c4] = f3;
                    }
                  };
                  for (e5 = 0; e5 < a3.length; e5++) c3(e5);
                }, v2 = 0; v2 < r3.length; v2++) d2(v2);
              }
              return p2;
            }
            function k(t5, n5, e4, i4) {
              var r3, o3, a2, s2, c2 = t5.getFields();
              for (r3 = 0, o3 = c2; r3 < o3.length; r3++) if (a2 = o3[r3], (s2 = i4 && !(0, u.isGroupSlice)(a2.name) && a2.extra && a2.extra.caption || a2.name) === n5) return a2.getValue(e4);
            }
            function N(t5, n5, e4) {
              return j(t5._getValueByField(n5.value, e4), n5);
            }
            function j(t5, n5) {
              var e4 = n5 && n5.dataMap;
              return e4 && (t5 = e4[t5] || t5), t5;
            }
            function D(t5, n5) {
              var e4, i4 = t5.value, r3 = t5.dataMap, o3 = n5[i4];
              if (r3) {
                for (e4 in r3) if (o3 === r3[e4]) {
                  n5[i4] = o3 = isNaN(e4) ? e4 : +e4;
                  break;
                }
              }
              return o3;
            }
            function _(t5, n5) {
              var e4, i4 = [];
              for (e4 in t5) t5[e4] !== n5[e4] && i4.push(e4);
              return i4;
            }
            function O(t5, n5) {
              var e4, i4 = {};
              for (e4 in t5) n5.hasOwnProperty(e4) || (i4[e4] = t5[e4]);
              return i4;
            }
            function E(t5, n5) {
              var e4, i4 = {};
              for (e4 in n5) t5.hasOwnProperty(e4) && n5.hasOwnProperty(e4) && (i4[e4] = t5[e4]);
              return i4;
            }
            function R(t5, n5, e4) {
              var r3, a2;
              for (r3 = 0; r3 < n5.length; r3++) if ((a2 = n5[r3]).value === e4 || a2.caption === e4) return !t5.columns[a2.value] || a2.zTr || (0, i3.isFormula)(t5.columns[a2.value].value) || (0, i3.isFormula)(a2.value) ? (0, o2.isViewColumn)(a2) ? { value: a2.value, isGroup: a2.isGroup, isCross: a2.isCross, zTr: a2.zTr } : { value: a2.value } : a2.value;
              return e4 === t5.uBt() || t5.columns[e4] ? e4 : t5.XOt[e4] ? { value: e4 } : d;
            }
            function L(t5, n5, e4) {
              return false !== e4 && "=" === n5[0] ? function(n6, e5, r3) {
                return (0, i3.formatCalcError)(t5(n6, e5, r3));
              } : t5;
            }
            function F(t5, n5, e4, r3, a2, u2) {
              var s2, c2, f2, l2, h2, d2, p2, g2 = R(t5, n5, r3);
              return a2 ? (0, o2.isViewColumn)(g2) ? (a2.getValue = e4.getFieldByName(g2.value), L((function(t6, n6, e5) {
                return e5.getValue.getValue(n6);
              }), g2.value, u2)) : g2.value ? (a2.getValue = t5.XOt[g2.value], (0, i3.isNullOrUndefined)(a2.getValue) && (a2.getValue = { getValue: function(n6) {
                return t5._getValueByField(g2.value, n6);
              } }), L((function(t6, n6, e5) {
                return e5.getValue.getValue(n6);
              }), g2.value, u2)) : (a2.getValue = t5._dataSource._data[g2].data, t5.TBe() ? (s2 = {}, c2 = t5.nv.bind(t5), function(t6, n6, e5) {
                var i4 = s2[n6];
                return i4 === v && (s2[n6] = i4 = c2(n6)), e5.getValue[i4];
              }) : function(t6, n6, e5) {
                return e5.getValue[n6];
              }) : (f2 = String(g2.value), l2 = String(g2), g2.value ? L((function(t6, n6) {
                return t6._getValueByField(f2, n6);
              }), f2, u2) : t5.TBe() ? (h2 = {}, d2 = t5.nv.bind(t5), p2 = t5._dataSource._data[l2].data, function(t6, n6) {
                var e5 = h2[n6];
                return e5 === v && (h2[n6] = e5 = d2(n6)), p2[e5];
              }) : function(t6, n6) {
                return t6._dataSource._data[l2].data[n6];
              });
            }
            function B(t5) {
              var n5 = (0, o2.getColumnName)(t5);
              return (0, i3.isFormula)(n5) && !(0, i3.isNamedFormulaColumn)(t5) || (0, i3.isRelation)(n5) || (0, i3.isFunction)(n5);
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.View = n4.rFt = n4.ZFt = n4.nse = n4.tse = n4.ose = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/interfaces/interface.js"), o2 = e3("./dist/src/view/view-util.js"), a = e3("./dist/src/viewField/fieldManager.js"), u = e3("./dist/src/viewField/groupManager.js"), s = e3("Common"), c = e3("./dist/src/table/windowOverField.js"), f = e3("./dist/src/undo/changesHelper.js"), l = e3("./dist/src/undo/interface.js"), h = e3("./dist/src/dataSource/dataSource.js"), d = null, v = void 0, p = { pin: y(r2.RowColumnStates.pin), primaryKey: y(r2.RowColumnStates.primaryKey), readonly: y(r2.RowColumnStates.readonly), required: y(r2.RowColumnStates.required) }, n4.ose = T, n4.tse = x, n4.nse = I, n4.ZFt = R, n4.rFt = F, g = (function() {
              function t5(t6, n5, e4, r3) {
                void 0 === e4 && (e4 = true), void 0 === r3 && (r3 = {}), this.rPt = 10, this.lFt = [], this.CLt = [], this.oPt = [], this.ZOt = {}, this.FQe = {}, this.dIr = false, this.dme = 0, this.rb = 0, this.BLt = {}, this.Igr = true;
                var o3 = this;
                o3.name = t6, Object.defineProperty(o3, "tableName", { get: function() {
                  var t7;
                  return null === (t7 = o3.gLt) || void 0 === t7 ? void 0 : t7.name;
                } }), n5 || (n5 = []), o3.ILt = (0, i3.clone)(n5).map((function(t7) {
                  return "string" == typeof t7 ? { value: t7 } : t7;
                })), o3.yLt = n5.map((function(t7) {
                  return "string" == typeof t7 ? t7 = { name: t7, value: t7 } : t7.name || "string" != typeof t7.value || (t7.name = t7.value), t7.value && "=" === t7.value[0] && (t7.readonly = true), t7;
                })), o3.aPt = e4, o3.autoSort = true, o3.autoFilter = false, o3.autoGroup = true, o3.UFt = true, o3.dde = false, w(r3), o3.LEt = r3, r3.styleRules || o3.clearStyleRules(), this.oRe = new f.ChangesHelper(o3);
              }
              return t5.prototype.Agr = function(t6) {
                if (0 === arguments.length) return this.Igr;
                this.Igr = t6, this.lLt && this.MFt && this.Cgr(this.MFt);
              }, t5.prototype.XLt = function() {
                var t6, n5 = this.gLt;
                return (0, o2.isTableDataReady)(n5);
              }, t5.prototype.Ywt = function(t6, n5, e4) {
                var i4 = this.gLt;
                return i4 && i4.Ywt(t6, n5, e4);
              }, t5.prototype.vde = function(t6) {
                var n5, e4 = this.gLt.POt;
                return e4.getCalcService().unparse(e4, t6, 0, 0);
              }, t5.prototype.nMt = function(t6, n5, e4) {
                var i4 = this.RJ(n5), r3 = this.uPt(e4);
                return this.sPt(t6, i4, r3);
              }, t5.prototype.sPt = function(t6, n5, e4) {
                return this.jfe(t6, n5, (0, i3.isNumber)(e4) ? (0, o2.getColumnName)(this.yLt[e4]) : v);
              }, t5.prototype.jfe = function(t6, n5, e4) {
                var r3, o3, a2 = this.gLt;
                if (a2) return r3 = false, !(0, i3.isNullOrEmpty)(e4) && (0, i3.isNullOrUndefined)(a2.XOt[e4]) && (r3 = true, a2.XOt[e4] = this.lLt.getFieldByName(e4)), o3 = a2._fe(t6, n5, e4), r3 && delete a2.XOt[e4], o3;
              }, t5.prototype.cPt = function() {
                var t6 = this, n5 = t6.gLt;
                n5 && (t6.aPt && t6.yLt.length <= 0 && (t6.yLt = T(n5), t6.ILt = (0, i3.clone)(t6.yLt)), t6.fPt(), t6.lPt());
              }, t5.prototype.getTable = function() {
                return this.gLt;
              }, t5.prototype.PRt = function(t6) {
                var n5 = this;
                if (!t6) return n5.wpt(), void (n5.gLt = t6);
                n5.gLt = t6, n5.JLt(), n5.bLt() ? n5.XLt() && (n5.RFt(), n5.cPt()) : (n5.XLt() && n5.qTr() && n5.RFt(), n5.cPt()), t6.Whe = n5.Whe.bind(n5), n5.XLt() && (n5.hPt(), n5.dPt = true, n5.dde || (n5.dde = true, n5.mde(), n5.Whe(), n5.gLt.fme() || n5.tFt())), n5.v7();
              }, t5.prototype.TAr = function() {
                return !!this.gLt;
              }, t5.prototype.HTr = function(t6) {
                var n5 = this;
                if (0 === arguments.length) return n5.dIr && !n5.autoFilter && !n5.autoSort && !n5.autoGroup;
                t6 = !!t6, n5.autoFilter = !t6, n5.autoSort = !t6, n5.autoGroup = !t6, n5.dIr = t6, t6 && !n5.Efe && n5.gFt();
              }, t5.prototype.fPt = function() {
                var t6, n5, e4, r3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2 = null === (n5 = null === (t6 = this.gLt._dataSource.options) || void 0 === t6 ? void 0 : t6.schema) || void 0 === n5 ? void 0 : n5.columns;
                if (p2) {
                  for (e4 = this.yLt, a2 = (r3 = this.isHierarchy()) && this.gLt._dataSource.options.schema.hierarchy.column, u2 = ["caption", "width", "style", "conditionalFormats", "validator", "isPrimaryKey", "readonly", "required", "defaultValue", "headerStyle", "visible", "headerFit", "indexed", "allowSort", "allowFilterByValue", "allowFilterByList", "dataMap", "lookup"], s2 = 0, c2 = e4; s2 < c2.length; s2++) if ("string" == typeof (f2 = c2[s2]).value && (r3 && f2.value === a2 && (f2.readonly = true), l2 = p2[f2.value])) {
                    for (h2 = 0, d2 = u2; h2 < d2.length; h2++) v2 = d2[h2], (0, i3.isNullOrUndefined)(f2[v2]) && (f2[v2] = l2[v2]);
                    f2.dataType = l2.dataType, "date" === l2.dataType && (0, o2.applyDateTimePicker)(f2), "formula" === l2.dataType && (f2.readonly = true), r3 && "rowOrder" === l2.dataType && (f2.readonly = true), l2.n7t && "rowOrder" !== l2.dataType && (f2.readonly = false, delete l2.n7t);
                  }
                }
              }, t5.prototype.lPt = function() {
                var t6, n5, e4, r3 = this.LEt.defaultColumnWidth || 60, o3 = this.yLt;
                for (t6 = 0, n5 = o3; t6 < n5.length; t6++) e4 = n5[t6], (0, i3.isNullOrUndefined)(e4.width) && (e4.width = r3);
              }, t5.prototype.ame = function() {
                var t6 = this, n5;
                return t6.yLt.some((function(n6) {
                  return t6.PAe(n6);
                }));
              }, t5.prototype.lme = function() {
                var t6 = this;
                return !t6.vme() && t6.ame() && t6.gLt.fme();
              }, t5.prototype.PAe = function(t6) {
                return !(0, o2.isViewColumn)(t6) && this.gLt.PAe(t6.value);
              }, t5.prototype.GAe = function(t6) {
                return !(0, o2.isViewColumn)(t6) && this.gLt.GAe(t6.value);
              }, t5.prototype.bde = function(t6) {
                return !(0, o2.isViewColumn)(t6) && this.gLt.bde(t6.value);
              }, t5.prototype.gde = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, f2, l2, h2, d2, p2, g2, m2, b2 = this, y2 = b2.gLt, w2 = y2.XOt, M2 = [];
                if (t6) {
                  if (e4 = [], n5 = y2.fme()) for (i4 = b2.getColumnInfos(v, v, v, true), r3 = 0; r3 < i4.length; r3++) o3 = i4[r3], a2 = b2.GAe(o3), e4 = e4.concat(a2);
                  for (u2 in w2) if (w2.hasOwnProperty(u2) && (s2 = w2[u2]) instanceof c.WindowOverCalcField && false !== s2.Khe && !s2.options.ume && (M2.push(s2.options), s2.options.ume = true, n5)) {
                    for (f2 = s2.options.windowOverFormula.slice(1), l2 = 0; l2 < e4.length; l2++) if ((h2 = e4[l2]).indexOf(f2) > -1) {
                      s2.options._de = true;
                      break;
                    }
                  }
                  if (n5) {
                    for (d2 = [], p2 = [], l2 = 0; l2 < M2.length; l2++) delete (g2 = M2[l2]).ume, g2._de ? (delete g2._de, d2.push(g2)) : p2.push(g2);
                    return [d2, p2];
                  }
                  for (l2 = 0; l2 < M2.length; l2++) delete (g2 = M2[l2]).ume;
                } else for (i4 = b2.getColumnInfos(), r3 = 0; r3 < i4.length; r3++) if (o3 = i4[r3], (m2 = b2.GAe(o3)).length > 0) for (l2 = 0; l2 < m2.length; l2++) false !== (s2 = w2[f2 = m2[l2]]).Khe && M2.push(s2.options);
                return [M2, []];
              }, t5.prototype.pde = function(t6) {
                var n5, e4, r3, o3, a2, u2 = this, s2 = t6[0], c2 = t6[1], f2 = u2.Dde(s2), l2 = f2.windowOverInfoMap, h2 = f2.windowOverInfos, d2 = [];
                for (n5 = 0; n5 < c2.length; n5++) e4 = c2[n5], (0, i3.isNullOrUndefined)(l2[e4.partitionKey]) || (0, i3.isNullOrUndefined)(l2[e4.partitionKey].orderMap[e4.orderKey]) ? d2.push(e4) : (r3 = l2[e4.partitionKey].orderMap[e4.orderKey], o3 = e4.frameKey + "__" + e4.windowFormula, (0, i3.isNullOrUndefined)(r3.functionMap[o3]) && (r3.functionMap[o3] = true, r3.orderFunctions.functions.push({ orders: e4.orders, windowOverFormula: e4.windowOverFormula, windowFormula: e4.windowFormula, windowFrame: e4.windowFrame })));
                return [a2 = u2.Dde(d2).windowOverInfos, h2];
              }, t5.prototype.Dde = function(t6) {
                var n5, e4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2 = {}, b2 = [];
                for (o3 = 0; o3 < t6.length; o3++) e4 = (a2 = t6[o3]).partitionKey, r3 = a2.orderKey, (0, i3.isNullOrUndefined)(m2[a2.partitionKey]) && (u2 = { partitions: a2.partitions, orderedFunctions: [] }, m2[a2.partitionKey] = { index: b2.length, orderMap: {}, windowOverInfo: u2 }, b2.push(u2)), c2 = (s2 = m2[a2.partitionKey]).orderMap, (0, i3.isNullOrUndefined)(c2[a2.orderKey]) && (f2 = { orders: a2.orders, functions: [] }, c2[a2.orderKey] = { index: s2.windowOverInfo.orderedFunctions.length, functionMap: {}, orderFunctions: f2 }, s2.windowOverInfo.orderedFunctions.push(f2)), l2 = a2.frameKey + "__" + a2.windowFormula, h2 = c2[a2.orderKey].functionMap[l2], d2 = a2.windowFrame && a2.windowFrame.exclude, ((0, i3.isNullOrUndefined)(h2) || (0, i3.isNullOrUndefined)(h2[d2])) && (c2[a2.orderKey].functionMap[l2] = ((n5 = {})[d2] = true, n5), c2[a2.orderKey].orderFunctions.functions.push({ orders: c2[a2.orderKey].orderFunctions.orders, windowOverFormula: a2.windowOverFormula, windowFormula: a2.windowFormula, windowFrame: a2.windowFrame }));
                return v2 = function(t7) {
                  var n6, e5, i4 = t7.windowOverInfo.orderedFunctions, o4 = t7.orderMap[r3];
                  i4.length > 1 && (e5 = i4[n6 = o4.index], i4.splice(n6, 1), i4.push(e5));
                }, b2.length > 1 ? (g2 = b2[o3 = (p2 = m2[e4]).index], b2.splice(o3, 1), b2.push(g2), v2(p2)) : 1 === b2.length && v2(m2[e4]), { windowOverInfoMap: m2, windowOverInfos: b2 };
              }, t5.prototype.mde = function() {
                var t6, n5, e4 = this, i4 = e4.getColumnInfos();
                for (t6 = 0; t6 < i4.length; t6++) n5 = i4[t6], e4.bde(n5);
              }, t5.prototype.Whe = function(t6) {
                var n5, e4, i4, r3, o3, a2, u2, s2, c2, f2, l2, h2 = this;
                if (0 === h2.dme) {
                  for (t6 && (null === (n5 = h2.BFt) || void 0 === n5 || n5.dl()), i4 = (e4 = h2.pde(h2.gde(t6)))[0], r3 = e4[1], o3 = 0, a2 = i4; o3 < a2.length; o3++) s2 = (u2 = a2[o3]).partitions, c2 = u2.orderedFunctions, h2.windowOver(s2, c2, true);
                  for (f2 = 0, l2 = r3; f2 < l2.length; f2++) s2 = (u2 = l2[f2]).partitions, c2 = u2.orderedFunctions, h2.windowOver(s2, c2, t6);
                  return true;
                }
              }, t5.prototype.mme = function() {
                this.dme++;
              }, t5.prototype.gme = function() {
                this.dme > 0 && this.dme--, this.dme <= 0 && (this.dme = 0, this.Whe(true), this.vge(), this.gLt.ake());
              }, t5.prototype.vme = function() {
                return 0 !== this.dme;
              }, t5.prototype.gFt = function(t6) {
                var n5, e4, i4, r3, o3 = this;
                if (o3.HTr()) return !o3.Efe && (o3.Efe = o3.qFt(t6), o3.iRt) ? void (o3.Pct() && (n5 = o3.kLt, i4 = (e4 = o3.hIr(n5)).startRow, r3 = e4.endRow, o3.fde(o3.Efe, n5, i4, r3))) : void (o3.iRt = o3.Efe.slice());
                o3.XFt() || (o3.iRt = o3.qFt(t6));
              }, t5.prototype.qFt = function(t6) {
                var n5, e4, i4 = [], r3 = t6 || this.length(), o3 = this.lFt, a2 = o3.length;
                for (a2 > 0 && (i4 = o3.slice(0)), n5 = a2, e4 = 0; e4 < r3; e4++) -1 === o3.indexOf(e4) && (i4[n5] = e4, n5++);
                return i4;
              }, t5.prototype.jRt = function(t6) {
                return v;
              }, t5.prototype.RFt = function(t6) {
                var n5 = this, e4 = n5.gLt;
                return n5.iRt || n5.gFt(), n5.lLt = new a.FieldManager(n5.LEt, e4), n5.ELt(), n5.yLt = n5.lLt.prepareFields(t6 || n5.yLt, { getCalcSource: function() {
                  return n5.oIr;
                }, getCalcOptions: function() {
                  return n5.aIr();
                } }), n5.YBt(), n5.lLt;
              }, t5.prototype.vIr = function() {
                var t6, n5, e4, i4 = this;
                if (i4.$Tr(), (t6 = Object.keys(i4.ZOt)).length > 0) for (e4 in n5 = i4.yLt.reduce((function(t7, n6) {
                  return n6.zTr && (t7[i4.ife(n6)] = true), t7;
                }), {}), i4.ZOt) n5[e4] && delete i4.ZOt[e4];
              }, t5.prototype.getLookup = function(t6) {
                return (0, a.getLookupBy)(this.gLt, t6);
              }, t5.prototype.isLookupField = function(t6) {
                return (0, a.isLookupField)(this.gLt, t6);
              }, t5.prototype.isLookupListField = function(t6) {
                return (0, a.isLookupListField)(this.gLt, t6);
              }, t5.prototype.isLookupRelationField = function(t6) {
                return (0, a.isLookupRelationField)(this.gLt, t6);
              }, t5.prototype.RJ = function(t6) {
                return this.iRt || this.gFt(), this.iRt[t6];
              }, t5.prototype.sIr = function(t6) {
                if (this.HTr()) return this.Efe || this.gFt(), this.Efe[t6];
              }, t5.prototype.FLt = function(t6) {
                return this.iRt || this.gFt(), this.iRt.indexOf(t6);
              }, t5.prototype.gIr = function(t6) {
                var n5 = this.sIr(t6);
                return n5 !== v ? this.FLt(n5) : t6;
              }, t5.prototype.YGr = function(t6) {
                return this.Efe || this.gFt(), this.Efe.indexOf(t6);
              }, t5.prototype.length = function() {
                return this.gLt.length();
              }, t5.prototype.visibleLength = function() {
                return this.iRt || this.gFt(), this.iRt.length;
              }, t5.prototype.getDirtyIndexes = function() {
                var t6 = this;
                return t6.gLt.getDirtyIndexes().map((function(n5) {
                  return t6.FLt(n5);
                }));
              }, t5.prototype.isInserted = function(t6) {
                var n5 = this, e4 = n5.RJ(t6);
                return n5.vPt(e4);
              }, t5.prototype.vPt = function(t6) {
                return this.gLt.isInserted(t6);
              }, t5.prototype.isUpdated = function(t6) {
                var n5, e4 = this, i4 = e4.RJ(t6);
                return e4.PLt(false), n5 = e4.gLt.isUpdated(i4, e4.bLt()), e4.PLt(true), n5;
              }, t5.prototype.getErrorInfo = function(t6) {
                var n5, e4 = this.RJ(t6);
                return this.gLt.getErrorInfo(e4);
              }, t5.prototype.K3e = function() {
                return this.gLt.K3e();
              }, t5.prototype.insertItem = function(t6, n5, e4, i4, r3, o3, a2, u2) {
                var s2 = this;
                return s2.HTr() && (t6 = s2.gIr(t6)), s2.mIr(t6, n5, e4, i4, r3, o3, a2, u2);
              }, t5.prototype.mIr = function(t6, n5, e4, i4, r3, o3, a2, u2) {
                var s2, c2 = this;
                return c2.isHierarchy() ? 0 === (s2 = c2.visibleLength()) ? void this.addHierarchyFirstItem(n5, e4, i4, r3, o3) : void (t6 < s2 ? c2.addHierarchyItemBefore(t6, n5, e4, i4, r3, o3) : c2.addHierarchyItemAfter(s2 - 1, n5, e4, i4, r3, o3)) : c2.mPt(t6, n5, e4, i4, o3, a2, u2);
              }, t5.prototype.insertItems = function(t6, n5, e4) {
                var r3 = this, o3 = this, a2 = o3.GLt(n5, e4), u2 = a2.success, s2 = a2.fail, c2 = 0, f2 = 0, l2 = t6.map((function(t7) {
                  return function(n6, e5) {
                    var i4, a3 = t7.row, u3 = t7.isAfter, s3 = t7.data;
                    a3 > c2 && (c2 = a3), f2++, 0 !== (i4 = o3.visibleLength()) ? u3 ? o3.addHierarchyItemAfter(a3, s3, n6, e5) : o3.addHierarchyItemBefore(a3, s3, n6, e5) : r3.addHierarchyFirstItem(s3, n6, e5);
                  };
                }));
                return (0, i3.promiseSerialExecute)(l2).then((function(t7) {
                  t7.row = c2, t7.addedCount = f2, u2 && u2(t7);
                })).catch((function(t7) {
                  s2 && s2(t7);
                }));
              }, t5.prototype.mPt = function(t6, n5, e4, r3, o3, a2, u2) {
                var s2, c2, f2, h2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
                return void 0 === o3 && (o3 = true), c2 = (s2 = this).GLt(e4, r3), f2 = c2.success, h2 = c2.fail, v2 = s2.visibleLength(), t6 = t6 > v2 ? v2 : t6, a2 = null != a2 ? a2 : s2.RJ(t6), p2 = o3 ? s2.gPt(n5) : n5, s2.ULt(p2), this.oRe.FEe({ type: l.ViewChangeType.Insert, index: t6 }), (0, i3.isNullOrUndefined)(a2) && (s2.Dit() ? (a2 = s2.length(), s2.HLt(p2, a2)) : a2 = t6), g2 = s2.gLt.uBt(), m2 = !(0, i3.isNullOrUndefined)(g2), b2 = s2.isHierarchy(), y2 = a2, w2 = t6 < v2, m2 && !b2 && (M2 = void 0, C2 = void 0, S2 = false, w2 ? (M2 = s2.RJ(t6 - 1), C2 = y2) : (C2 = s2.RJ(t6 - 1), S2 = true), p2[g2] = s2.gLt.d7t(M2, C2, S2)), !u2 && s2.HTr() ? y2 = s2.length() : (m2 || b2) && (y2 = s2.Dit() ? s2.length() : v2), s2.gLt.insertItem(y2, p2, (function(n6) {
                  s2.zLt(y2, p2, w2, t6, u2), f2 && f2(n6);
                }), h2, y2 !== a2 ? a2 : d);
              }, t5.prototype.aRe = function(t6, n5, e4, i4) {
                var r3 = this, o3 = r3.GLt(e4, i4), a2 = o3.success, u2 = o3.fail, s2 = t6, c2 = r3.gPt(n5);
                return r3.gLt.recoverItemAtBatch(s2, c2, (function(n6) {
                  r3.zLt(s2, c2, true, t6, true), a2 && a2(n6);
                }), u2);
              }, t5.prototype.zLt = function(t6, n5, e4, r3, o3, a2) {
                var u2, s2, c2, f2, l2, h2, d2, p2 = this;
                if (p2.vIr(), u2 = p2.HTr(), s2 = !(p2.lme() && !p2.Dit()) || u2, e4) return c2 = p2.length() - 1, p2.cRt(c2, n5), p2.VQe(c2), f2 = p2.autoFilter, (l2 = !(0, i3.isNullOrUndefined)(p2.NLt) && !u2) && (p2.autoFilter = true), s2 && ((0, i3.isNumber)(r3) && !p2.tPt() && (p2.isHierarchy() || u2) ? o3 || (p2.pIr(r3, c2, u2), p2.iRt.splice(r3, 0, c2)) : (p2.pIr(-1, c2, u2), p2.iRt.push(c2))), p2.tFt(v, !(l2 || !u2 && o3)), void (l2 && (p2.autoFilter = f2));
                p2.cRt(t6, n5), h2 = p2.length(), d2 = !p2.autoFilter && !!p2.iRt, (0, i3.isNullOrUndefined)(e4) && (0, i3.isNullOrUndefined)(r3) && p2.isHierarchy() && (d2 = false), !d2 || !s2 || u2 && o3 || (p2.pIr(-1, h2 - 1, u2), p2.iRt.push(h2 - 1), u2 && a2 && p2.Dit() && p2.iRt.pop()), p2.tFt(h2, d2);
              }, t5.prototype.pIr = function(t6, n5, e4, r3) {
                var o3, a2 = this;
                (e4 = e4 === v ? a2.HTr() : e4) && (o3 = void 0, o3 = t6 >= a2.Efe.length || t6 < 0 ? a2.Efe.length : r3 ? t6 : a2.Efe.indexOf(a2.iRt[t6]), r3 ? (0, i3.insertIntoIndex)(a2.Efe, o3, n5) : a2.Efe.splice(o3, 0, n5));
              }, t5.prototype.gPt = function(t6) {
                var n5, e4, r3, o3, a2, u2, s2, c2 = {};
                if (this.isHierarchy()) for (n5 in t6) t6.hasOwnProperty(n5) && (c2[n5] = t6[n5]);
                for (r3 = 0, o3 = e4 = this.yLt; r3 < o3.length; r3++) u2 = t6[n5 = (a2 = o3[r3]).value instanceof Function ? a2.value.name : a2.value], (0, i3.isUndefined)(u2) || ("string" == typeof (s2 = a2.value) ? c2[s2] = u2 : s2(c2, u2));
                return c2;
              }, t5.prototype.cTe = function(t6, n5, e4, i4) {
                var r3 = this;
                r3.ULt(t6), r3.iFt(t6, n5, e4, i4);
              }, t5.prototype.fTe = function(t6, n5, e4, r3) {
                var o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = w2.gLt, C2 = w2.lLt, S2 = Object.keys(t6), T2 = this.yLt;
                if (w2.vPt(n5) && S2.some((function(t7) {
                  return T2.some((function(n6) {
                    return n6.isCross && n6.value === t7;
                  }));
                }))) return false;
                for (o3 = {}, a2 = [], u2 = function(e5, r4, a3, u3) {
                  var s3, c3, f3 = M2.qRt(r4);
                  f3.name !== M2.name ? (s3 = o3[f3.name], (0, i3.isNullOrUndefined)(s3) && (o3[f3.name] = s3 = {}), c3 = M2.aTe(u3 ? u3.getRelationField(n5) : r4, n5), (0, i3.isNullOrUndefined)(s3[c3]) && (s3[c3] = {}), s3[c3][a3] = e5) : t6[r4] = e5;
                }, s2 = function(n6, e5, i4) {
                  var r4;
                  a2.push({ data: (r4 = {}, r4[n6.valueField] = t6[e5], r4[n6.dimRelationKey] = n6.getDimValue(), r4), valueRelation: n6.valueRelation, onSucceeded: i4 });
                }, c2 = function(e5) {
                  var o4, a3, c3 = T2[e5], f3 = c3.value;
                  c3.isCross && S2.indexOf(f3) > -1 && (o4 = C2.getFieldByColumn(c3), a3 = M2.KRt(o4.valueRelation, n5), o4.isOneToMany ? (a3 = a3 && (0, i3.isNumber)(o4.getValueIndex(n5))) ? u2(t6[f3], o4.valueRelation, o4.valueField, o4) : s2(o4, f3, (function(t7) {
                    C2.setCrossFieldInsertedIndex(o4, n5, t7.index);
                  })) : a3 ? (u2(t6[f3], o4.valueRelation, o4.valueField), u2(o4.getDimValue(), o4.dimRelationPath, o4.dimRelationKey)) : s2(o4, f3), r3[f3] = t6[f3]);
                }, f2 = 0; f2 < T2.length; f2++) c2(f2);
                if ((l2 = Object.keys(o3)).length > 0) for (h2 = 0; h2 < l2.length; h2++) for (g2 in d2 = l2[h2], v2 = this.gLt.QOt.tables[d2], p2 = o3[d2]) p2.hasOwnProperty(g2) && v2.updateItem(Number(g2), p2[g2]);
                if (a2.length > 0) for (m2 = 0, b2 = a2; m2 < b2.length; m2++) y2 = b2[m2], M2.JRt(y2.valueRelation, n5, y2.data, y2.onSucceeded);
                return Object.keys(t6).length === Object.keys(r3).length ? (w2.VLt(t6, e4, n5), w2.YLt(t6, e4, n5), true) : void 0;
              }, t5.prototype.VLt = function(t6, n5, e4) {
                var i4 = this;
                i4.lTe(e4, t6, n5), i4.uTe(t6, n5, e4);
              }, t5.prototype.uTe = function(t6, n5, e4) {
                var r3, o3, a2 = this;
                for (r3 in t6) (0, i3.isNotDeepEqual)(t6[r3], n5[r3]) && (o3 = n5[r3], a2.cTe(t6, o3, r3, e4));
              }, t5.prototype.YLt = function(t6, n5, e4) {
                var r3, o3, a2 = this, u2 = [];
                for (r3 in a2.vIr(), t6) (0, i3.isNotDeepEqual)(t6[r3], n5[r3]) && (o3 = n5[r3], u2.push(r3), a2.hRt(e4, r3, o3, t6[r3]));
                a2.tFt(v, true, u2, v);
              }, t5.prototype.updateItem = function(t6, n5, e4, r3, o3) {
                var a2 = null != o3 ? o3 : {}, u2 = a2.hasAddNewRowData, s2 = a2.currentModelIndex, c2 = a2.isModelIndex, f2 = void 0 !== c2 && c2, h2 = this, d2 = h2.GLt(e4, r3), v2 = d2.success, p2 = d2.fail, g2 = u2 ? s2 : f2 ? t6 : h2.HTr() ? h2.sIr(t6) : h2.RJ(t6), m2 = this.getRowData(g2, true), b2 = {}, y2 = h2.fTe(n5, g2, m2, b2), w2 = { type: l.ViewChangeType.Update, modelIndex: g2, oldData: E(m2, n5) };
                if (this.oRe.FEe(w2), !(0, i3.isBoolean)(y2)) return h2.VLt(n5, m2, g2), h2.gLt.updateItem(g2, O(n5, b2), (function(t7) {
                  h2.YLt(n5, m2, g2), v2(t7);
                }), p2);
                y2 ? v2({ index: g2, data: n5, originalData: m2, changingFields: _(n5, m2) }) : p2();
              }, t5.prototype.lTe = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2;
                for (e4 = e4 || this.getRowData(t6, true), r3 = (0, i3.clone)(e4, true), o3 = Object.keys(n5), u2 = 0, s2 = a2 = this.yLt; u2 < s2.length; u2++) (f2 = (c2 = s2[u2]).value) instanceof Function && !(0, i3.isUndefined)(n5[f2.name]) && o3.indexOf(f2.name) > -1 && f2(r3, n5[f2.name]);
                for (l2 in r3) r3.hasOwnProperty(l2) && (h2 = r3[l2], (0, i3.isNotDeepEqual)(h2, e4[l2]) && (n5[l2] = h2));
              }, t5.prototype.sTe = function(t6, n5) {
                var e4, r3 = this, o3 = this.yLt, a2 = function(t7) {
                  var e5, r4;
                  n5.hasOwnProperty(t7) && (e5 = n5[t7], (0, i3.isUndefined)(e5) || D(r4 = o3.find((function(n6) {
                    return n6.value === t7;
                  })), n5));
                };
                for (e4 in n5) a2(e4);
                return r3.lTe(t6, n5), n5;
              }, t5.prototype.resetItem = function(t6, n5, e4) {
                var r3 = this, o3 = r3.GLt(n5, e4), a2 = o3.success, u2 = o3.fail, s2 = r3.RJ(t6), c2 = this.getRowData(s2, true), f2 = r3.bPt(s2);
                if (!(0, i3.isNullOrUndefined)(t6) && !(0, i3.isNullOrUndefined)(s2)) return this.oRe.FEe({ type: l.ViewChangeType.Update, modelIndex: s2, oldData: c2 }), r3.uTe(f2, c2, s2), r3.gLt.resetItem(s2, (function(t7) {
                  r3.ZLt(s2, c2, f2), a2(t7);
                }), u2);
                u2();
              }, t5.prototype.ZLt = function(t6, n5, e4) {
                var i4 = this;
                i4.vLt(t6), i4.pRt(t6, n5, e4), i4.tFt(v, true, v, v);
              }, t5.prototype.saveItem = function(t6, n5, e4) {
                var i4 = this, r3 = i4.GLt(n5, e4), o3 = r3.success, a2 = r3.fail, u2 = i4.RJ(t6);
                return i4.gLt.saveItem(u2, (function(t7) {
                  o3(t7);
                }), a2);
              }, t5.prototype.getRowData = function(t6, n5, e4, i4, r3, o3) {
                var a2 = this, u2 = n5 ? t6 : a2.HTr() ? a2.sIr(t6) : a2.RJ(t6);
                return a2.nFt(u2, e4, i4, r3, o3);
              }, t5.prototype.bIr = function() {
                var t6, n5, e4, i4 = this, r3 = [], o3 = i4.yLt, a2 = i4.Efe.length, u2 = o3.length;
                for (t6 = 0; t6 < a2; t6++) {
                  for (n5 = [], e4 = 0; e4 < u2; e4++) n5.push(i4.Lgr(t6, i4.Efe[t6], o3[e4]));
                  r3.push(n5);
                }
                return r3;
              }, t5.prototype.wIr = function(t6) {
                var n5, e4 = this, i4 = [], r3 = e4.yLt, o3 = r3[t6], a2 = e4.Efe.length;
                for (n5 = 0; n5 < a2; n5++) i4.push(e4.Lgr(n5, e4.Efe[n5], o3));
                return i4;
              }, t5.prototype.rGr = function(t6, n5) {
                var e4, i4, r3, o3 = this, a2 = o3.$Ge(t6);
                a2 && (e4 = a2.value, (r3 = (i4 = o3.lLt).getFieldByName(e4)) && r3.setValues(n5));
              }, t5.prototype.Nve = function(t6, n5) {
                var e4 = this;
                return A(e4.gLt, t6, e4.RJ(t6), n5, e4.lLt);
              }, t5.prototype.ZTr = function(t6, n5) {
                var e4 = this;
                return A(e4.gLt, t6, e4.sIr(t6), e4.$Ge(n5), e4.lLt);
              }, t5.prototype.Lgr = function(t6, n5, e4) {
                var i4 = this;
                return A(i4.gLt, t6, n5, e4, i4.lLt);
              }, t5.prototype.yPt = function(t6) {
                return this.isHierarchy() && this.wPt(t6);
              }, t5.prototype.wPt = function(t6, n5) {
                var e4 = this, r3 = e4.gLt.uBt(), o3, a2 = e4.isHierarchy() || !(0, i3.isNullOrUndefined)(r3), u2 = (0, i3.isNullOrUndefined)(e4.MFt), s2 = !(e4.lFt.length > 0) || e4.lFt.length < t6 && (!(0, i3.isNumber)(n5) || e4.lFt.length < n5);
                return a2 && u2 && s2;
              }, t5.prototype.MPt = function() {
                var t6 = this;
                return !!(0, i3.isNullOrUndefined)(t6.kLt) || !!t6.kLt[0].ascending;
              }, t5.prototype.CPt = function(t6, n5) {
                var e4, i4, r3 = this, o3 = r3.getHierarchyNode(t6).parent;
                if (n5) {
                  for (i4 = t6 + 1; i4 < r3.visibleLength(); i4++) if (r3.getHierarchyNode(i4).parent === o3) {
                    e4 = i4;
                    break;
                  }
                } else for (i4 = t6 - 1; i4 >= 0; i4--) if (r3.getHierarchyNode(i4).parent === o3) {
                  e4 = i4;
                  break;
                }
                return e4;
              }, t5.prototype.m7t = function(t6, n5) {
                var e4, i4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2 = this;
                if (t6 !== n5 && g2.wPt(t6, n5)) {
                  if (r3 = (i4 = t6 < n5) ? n5 + 1 : n5 - 1, (e4 = g2.isHierarchy()) && 1 === Math.abs(t6 - n5) && (n5 = g2.CPt(t6, i4)), o3 = g2.gLt.m7t(i4, g2.RJ(t6), g2.RJ(n5), g2.RJ(r3))) {
                    if (a2 = g2.iRt, s2 = 1, c2 = [u2 = g2.RJ(t6)], e4) for (c2 = [], h2 = (f2 = t6) + (s2 = g2.gLt.V7t(u2)); f2 < h2; f2++) c2.push(g2.RJ(f2));
                    i4 ? (d2 = g2.gLt.V7t(g2.RJ(n5)), a2.splice.apply(a2, b([n5 + d2, 0], c2, false)), a2.splice(t6, s2)) : (a2.splice(t6, s2), a2.splice.apply(a2, b([n5, 0], c2, false))), g2.wFt = v, p2 = a2.indexOf(u2), this.oRe.FEe({ type: l.ViewChangeType.MovedUpdateOrDown, moveIndex: p2, destIndex: p2 + (i4 ? -1 : 1) });
                  }
                  return o3;
                }
              }, t5.prototype.moveUp = function(t6) {
                var n5, e4 = 1;
                t6 > 0 && this.m7t(t6, t6 - 1);
              }, t5.prototype.moveDown = function(t6) {
                var n5 = this, e4 = 1;
                t6 < n5.visibleLength() - 1 && n5.m7t(t6, t6 + 1);
              }, t5.prototype.SPt = function(t6) {
                var n5, e4, r3, o3, a2, u2 = this, s2 = u2.gLt._dataSource.options.schema.hierarchy.outlineColumn, c2 = u2.gLt._dataSource.options.schema.columns || {}, f2 = u2.yLt, l2 = -1, h2 = -1;
                for (n5 = 0; n5 < f2.length; n5++) {
                  if (e4 = f2[n5], !(0, i3.isNullOrEmpty)(e4.outlineColumn)) {
                    l2 = n5;
                    break;
                  }
                  -1 === h2 && (r3 = c2[e4.value]) && (true === (o3 = r3.outlineColumn) || (0, i3.isObjectWithKey)(o3)) && (s2 = o3, h2 = n5), -1 !== h2 || e4.value !== s2 && ((0, i3.isNullOrUndefined)(s2) || e4.value !== s2.value) || (h2 = n5);
                }
                return a2 = -1 !== l2 ? { index: l2, options: f2[l2].outlineColumn } : { index: h2, options: s2 }, t6 && (a2.index = this.BPt(a2.index)), a2;
              }, t5.prototype.getHierarchyColumnOptions = function() {
                return this.SPt().options;
              }, t5.prototype.getHierarchyColumnIndex = function(t6) {
                return this.SPt(t6).index;
              }, t5.prototype.hasHierarchyColumn = function(t6) {
                var n5 = this, e4 = n5.isHierarchy(), r3 = e4 && n5.getHierarchyColumnIndex();
                return (0, i3.isNumber)(t6) ? e4 && r3 === n5.uPt(t6) : !(!e4 || -1 === r3);
              }, t5.prototype.lGe = function(t6, n5) {
                return this.gLt.lGe(this.ife(t6), n5);
              }, t5.prototype.isHierarchy = function() {
                return this.gLt.CEt();
              }, t5.prototype.getHierarchyNode = function(t6, n5) {
                var e4, i4 = this;
                if (i4.isHierarchy()) return e4 = n5 ? t6 : i4.RJ(t6), i4.gLt.SEt(e4);
              }, t5.prototype.getHierarchyRootNode = function() {
                var t6 = this;
                if (t6.isHierarchy()) return t6.gLt.f7t();
              }, t5.prototype.promoteHierarchyLevel = function(t6) {
                var n5, e4, i4, r3 = this;
                r3.isHierarchy() && (n5 = this.EEe(), e4 = this.uRe(), this.gLt.M7t(this.RJ(t6)), i4 = e4(), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: n5 }), this.oRe.FEe({ type: l.ViewChangeType.RowDataChanged, oldData: i4 }));
              }, t5.prototype.EEe = function() {
                return this.gLt.EEe();
              }, t5.prototype.uRe = function() {
                var t6, n5 = this, e4 = [], i4 = {}, r3 = b([], this.iRt, true), o3 = this.HTr(), a2 = o3 ? this.Efe.slice() : [], u2 = function(t7, i5, u3) {
                  var s3 = i5.action, c3 = i5.index, f2 = i5.oldItems, l2 = i5.items, h2 = i5.modelIndex, d2 = i5.hierarchyNodeInfo, v2 = n5.gLt.name === u3, p2 = v2 ? r3.indexOf(h2) : h2, g2 = o3 ? a2.indexOf(h2) : -1;
                  e4.push({ rowIndex: p2, baseRowIndex: g2, oldItems: f2, items: l2, action: s3, livingIndex: c3, hierarchyNodeInfo: d2, tableName: u3, modelIndex: h2 });
                }, s2 = this.gLt.QOt.tables, c2 = function(t7) {
                  if (s2.hasOwnProperty(t7)) {
                    var n6 = s2[t7];
                    i4[n6.name] = function(t8, e5) {
                      u2(t8, e5, n6.name);
                    }, n6.bind(h.ONCHANGE, i4[n6.name]);
                  }
                };
                for (t6 in s2) c2(t6);
                return function() {
                  var t7, n6;
                  for (t7 in s2) s2.hasOwnProperty(t7) && (n6 = s2[t7]) && i4[n6.name] && n6.unbind(h.ONCHANGE, i4[n6.name]);
                  return e4;
                };
              }, t5.prototype.WEe = function(t6) {
                this.gLt.REe(t6), this.tFt(void 0, false);
              }, t5.prototype.QEe = function(t6) {
                var n5, e4 = this, r3 = this, o3 = this.isHierarchy(), a2 = r3.HTr(), u2 = [], s2 = {};
                b([], t6, true).reverse().forEach((function(t7) {
                  var n6, c2, f2 = t7.rowIndex, l2 = t7.action, h2 = t7.oldItems, d2 = t7.items, v2 = t7.livingIndex, p2 = t7.hierarchyNodeInfo, g2 = t7.tableName, m2 = e4.gLt.QOt.tables[g2];
                  "update" === l2 ? (n6 = e4.iRt[f2], h2.forEach((function(t8) {
                    m2.I7t({ action: l2, index: n6, item: t8, x7t: true, N7t: false });
                  }))) : "delete" === l2 && (c2 = m2 === e4.gLt, d2.forEach((function(n7, i4) {
                    c2 ? e4.sRe(n7, f2 + i4, v2 + i4, p2, t7.modelIndex) : e4.xRe(n7, f2 + i4, v2 + i4, p2, m2);
                  })), s2[g2] || (u2.push(m2), s2[g2] = true), c2 && !o3 && a2 && ((0, i3.fixInsertIndexes)(r3.iRt, t7.modelIndex), (0, i3.fixInsertIndexes)(r3.Efe, t7.modelIndex)));
                })), !o3 && a2 && ((n5 = t6.slice()).sort((function(t7, n6) {
                  return t7.rowIndex - n6.rowIndex;
                })), n5.forEach((function(t7) {
                  return r3.iRt.splice(t7.rowIndex, 0, t7.modelIndex);
                })), r3.Efe && (n5.sort((function(t7, n6) {
                  return t7.baseRowIndex - n6.baseRowIndex;
                })), n5.forEach((function(t7) {
                  return r3.Efe.splice(t7.baseRowIndex, 0, t7.modelIndex);
                })))), this.NRe(u2);
              }, t5.prototype.NRe = function(t6) {
                t6.length > 0 && (t6.forEach((function(t7) {
                  t7.dl();
                })), this.hLt());
              }, t5.prototype.xRe = function(t6, n5, e4, i4, r3) {
                var o3 = r3.X7t(), a2 = o3 && r3.BEe(e4);
                a2 ? r3.recoverItemAtBatch(e4, t6) : r3.insertItem(n5, t6, null, null);
              }, t5.prototype.sRe = function(t6, n5, e4, i4, r3) {
                var o3 = this.gLt.X7t(), a2 = o3 && this.gLt.BEe(e4);
                a2 ? this.aRe(e4, t6, null, null) : this.mIr(n5, t6, null, null, i4, false, r3, true);
              }, t5.prototype.demoteHierarchyLevel = function(t6, n5) {
                var e4, i4, r3, o3 = this;
                o3.isHierarchy() && (e4 = this.EEe(), i4 = this.uRe(), o3.gLt.S7t(o3.RJ(t6), n5), r3 = i4(), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: e4 }), this.oRe.FEe({ type: l.ViewChangeType.RowDataChanged, oldData: r3 }));
              }, t5.prototype.hasRowOrder = function() {
                var t6 = this;
                return !(0, i3.isNullOrUndefined)(t6.gLt.uBt());
              }, t5.prototype.hasHierarchyRowOrder = function() {
                return this.gLt.qX();
              }, t5.prototype.addHierarchyItemBefore = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2 = this;
                s2.yPt(t6) ? (a2 = this.EEe(), u2 = s2.gLt.O7t(s2.RJ(t6), n5, r3), s2.APt(n5, u2), s2.mPt(t6, n5, e4, i4, o3), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: a2 })) : i4 && i4({ type: "create", success: false });
              }, t5.prototype.addHierarchyItemAfter = function(t6, n5, e4, i4, r3, o3) {
                var a2, u2, s2, c2 = this;
                if (c2.yPt(t6)) return a2 = this.EEe(), u2 = c2.gLt.V7t(c2.RJ(t6)), s2 = c2.gLt.L7t(c2.RJ(t6), n5, r3), c2.APt(n5, s2), c2.mPt(t6 + u2, n5, e4, i4, o3), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: a2 }), u2;
                i4 && i4({ type: "create", success: false });
              }, t5.prototype.addHierarchyItemAbove = function(t6, n5, e4, i4) {
                var r3, o3, a2 = this;
                a2.yPt(t6) ? (r3 = this.EEe(), o3 = a2.gLt.F7t(a2.RJ(t6), n5), a2.APt(n5, o3), a2.mPt(t6, n5, e4, i4), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: r3 })) : i4 && i4({ type: "create", success: false });
              }, t5.prototype.addHierarchyItemBelow = function(t6, n5, e4, i4) {
                var r3, o3, a2, u2 = this;
                if (u2.yPt(t6)) return r3 = this.EEe(), o3 = u2.gLt.V7t(u2.RJ(t6)), a2 = u2.gLt.G7t(u2.RJ(t6), n5), u2.APt(n5, a2), u2.mPt(t6 + o3, n5, e4, i4), this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: r3 }), o3;
                i4 && i4({ type: "create", success: false });
              }, t5.prototype.addHierarchyFirstItem = function(t6, n5, e4, i4, r3) {
                var o3 = this, a2 = o3.gLt.oge(t6, i4);
                o3.APt(t6, a2), o3.mPt(0, t6, n5, e4, r3);
              }, t5.prototype.APt = function(t6, n5) {
                var e4, r3 = this, o3 = r3.gLt.H7t(n5);
                if (!(0, i3.isNullOrUndefined)(o3)) for (e4 in o3) o3.hasOwnProperty(e4) && (t6[e4] = o3[e4]);
              }, t5.prototype.h7t = function(t6, n5) {
                if (this.isHierarchy()) return this.gLt.h7t(t6, n5);
              }, t5.prototype.fetch = function(t6) {
                var n5, e4 = this, i4 = e4.gLt.QOt.tables, r3 = e4.gLt.F_e();
                if (r3.length > 0) return n5 = r3.map((function(n6) {
                  var e5 = i4[n6];
                  return e5 && e5.fetch(t6);
                })), Promise.all(n5).then((function(n6) {
                  return e4.TUr(t6), n6;
                }));
              }, t5.prototype.TUr = function(t6) {
                var n5, e4 = this;
                e4.vIr(), e4.dde || e4.JLt(), e4.pLt() && (e4.RFt(), e4.cPt()), !t6 && e4.dde || (e4.cPt(), e4.dde || e4.mde(), e4.Whe(), e4.gLt.fme() || e4.tFt()), e4.dPt || e4.hPt(), ((n5 = e4).dp || n5.vp) && (n5.dp && n5.dp(), n5.vp && n5.vp()), e4.dde = true;
              }, t5.prototype.iM = function(t6, n5, e4) {
                var i4 = this;
                i4.Wce(), i4.cFt(), i4.vIr(), t6 ? (i4.HTr() && (i4.Efe = v, !i4.iRt || 0 !== i4.iRt.length && i4.iRt.length === i4.length() || i4.Dit() || (i4.iRt = v)), i4.gFt()) : e4 && i4.gFt(), i4.hLt(), i4.lLt && n5 && i4.RFt(i4.ILt.map((function(t7) {
                  return m({}, t7);
                }))), n5 && i4.cPt(), i4.tFt(v, true, v, n5), n5 && i4.NAr && i4.NAr();
              }, t5.prototype.hPt = function() {
                var t6, n5, e4, r3, o3, a2 = this.yLt;
                for (t6 = 0, n5 = a2; t6 < n5.length; t6++) (e4 = n5[t6]).cross || (r3 = e4.lookup, (0, i3.isArray)(r3) ? "string" == typeof e4.value && -1 === e4.value.indexOf(".") && (r3 = (0, i3.getUniqueArray)(r3)).length > 0 && ((o3 = e4.style) || (o3 = e4.style = {}), o3.cellType || (o3.cellType = { type: "combobox", items: r3 })) : (0, i3.isString)(r3) && r3 ? this.IPt(e4, r3) : (0, i3.isObject)(r3) && this.IPt(e4, r3.name, r3.columns));
              }, t5.prototype.IPt = function(t6, n5, e4) {
                var i4, a2, u2, s2, c2, f2, l2, h2, d2 = t6.style;
                d2 || (d2 = t6.style = {}), (i4 = d2.cellButtons) || (i4 = d2.cellButtons = []), (a2 = d2.dropDowns) || (a2 = d2.dropDowns = []), u2 = (0, o2.array_find)(i4, (function(t7) {
                  return "openMultiColumn" === t7.command;
                })), s2 = (0, o2.array_find)(a2, (function(t7) {
                  return "multiColumn" === t7.type;
                })), u2 || s2 || (f2 = (c2 = this.xPt(n5)).table, l2 = c2.field, f2 && l2 && f2 !== this.gLt && (h2 = f2.columns) && (i4.push({ imageType: "ellipsis", command: "openMultiColumn", useButtonStyle: true }), a2.push({ type: "multiColumn", option: { dataSource: f2.views[r2.DEFAULT_VIEW_NAME] || f2.addView(r2.DEFAULT_VIEW_NAME), bindingInfos: this.NPt(h2, e4), valuePath: l2 } })));
              }, t5.prototype.xPt = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this.gLt.QOt.relationships;
                for (i4 = 0, r3 = a2; i4 < r3.length; i4++) if ((o3 = r3[i4]).sourceRelationshipName === t6) {
                  n5 = o3.targetTable, e4 = o3.targetFieldName;
                  break;
                }
                return { table: n5, field: e4 };
              }, t5.prototype.NPt = function(t6, n5) {
                return n5 ? n5.map((function(t7) {
                  return (0, i3.isString)(t7) ? { name: t7, width: "*" } : { name: t7.value, width: (0, i3.isNullOrUndefined)(t7.width) ? "*" : t7.width, displayName: t7.caption, visible: t7.visible };
                })) : Object.keys(t6).map((function(n6) {
                  var e4 = t6[n6];
                  return { name: e4.value, width: (0, i3.isNullOrUndefined)(e4.width) ? "*" : e4.width, displayName: e4.caption, visible: e4.visible };
                }));
              }, t5.prototype.oV = function() {
                var t6, n5 = this, e4 = n5.gLt.length(), i4 = [];
                for (t6 = 0; t6 < e4; t6++) i4.push(n5.nFt(t6));
                return i4;
              }, t5.prototype.ULt = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this.yLt;
                for (n5 = 0, e4 = a2; n5 < e4.length; n5++) "string" == typeof (r3 = (i4 = e4[n5]).value) && (D(i4, t6), t6.hasOwnProperty(r3) && (o3 = this.gLt.bEt(r3)) && o3.relatedTable && o3.setValue && o3.setValue(t6));
              }, t5.prototype.kPt = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2 = this.lFt;
                if (u2 && u2.length > 0) if (e4 && e4.length > 0) for (i4 = 0, r3 = e4; i4 < r3.length; i4++) o3 = r3[i4], this.kPt(o3, 1);
                else {
                  for (a2 = 0; a2 < n5; a2++) (o3 = u2.indexOf(t6 + a2)) > -1 && u2.splice(o3, 1);
                  for (a2 = 0; a2 < u2.length; a2++) u2[a2] > t6 && (u2[a2] -= n5);
                }
              }, t5.prototype.removeItem = function(t6, n5, e4, i4) {
                this.yIr(t6, n5, e4, i4);
              }, t5.prototype.removeRowData = function(t6, n5, e4, i4) {
                this.yIr(t6, n5, e4, i4);
              }, t5.prototype.yIr = function(t6, n5, e4, i4) {
                var r3 = this;
                r3.HTr() && (t6 = r3.gIr(t6)), this.MIr(t6, n5, e4, i4);
              }, t5.prototype.MIr = function(t6, n5, e4, r3) {
                var o3, a2, u2, s2, c2, f2, h2 = this, d2 = h2.GLt(e4, r3), v2 = d2.success, p2 = d2.fail, g2 = h2.gLt, m2 = h2.RJ(t6), y2 = h2.isHierarchy();
                n5 = null != n5 ? n5 : 1, u2 = [], (0, i3.isNullOrUndefined)(t6) || (0, i3.isNullOrUndefined)(m2) || (0, i3.isNullOrUndefined)(n5) ? p2() : (y2 && (o3 = this.EEe()), s2 = false, a2 = this.uRe(), c2 = b([], this.lFt, true), f2 = h2.iRt.slice(t6, t6 + n5), g2.removeItems(f2, (function(e5) {
                  var i4, r4 = e5.removedCount, d3 = e5.removingIndexes;
                  h2.WLt(m2, r4 || n5, d3 || f2, t6), a2 && (i4 = a2()).forEach((function(t7, n6) {
                    u2[n6] = t7;
                  })), s2 || (s2 = true, y2 && h2.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: o3 }), y2 || h2.oRe.FEe({ type: l.ViewChangeType.PinnedRows, oldData: { pinnedRows: c2 } }), h2.oRe.FEe({ type: l.ViewChangeType.RowDataChanged, oldData: u2 })), v2(e5);
                }), p2), s2 || (s2 = true, y2 && this.oRe.FEe({ type: l.ViewChangeType.HierarchyLevelChanged, oldData: o3 }), y2 || this.oRe.FEe({ type: l.ViewChangeType.PinnedRows, oldData: { pinnedRows: c2 } }), this.oRe.FEe({ type: l.ViewChangeType.RowDataChanged, oldData: u2 })));
              }, t5.prototype.removeItems = function(t6, n5, e4) {
                var i4 = this, r3 = i4.HTr();
                return r3 && (t6 = t6.map((function(t7) {
                  return i4.gIr(t7);
                }))), i4.XAr(t6, n5, e4);
              }, t5.prototype.XAr = function(t6, n5, e4) {
                var r3 = this, o3 = this, a2 = o3.GLt(n5, e4), u2 = a2.success, s2 = a2.fail, c2 = o3.gLt, f2 = [], l2 = 0, h2 = t6.map((function(t7) {
                  return function(n6, e5) {
                    var i4, a3, u3 = 1;
                    r3.isHierarchy() && (u3 += (i4 = r3.getHierarchyNode(t7)).getChildrenCount()), a3 = o3.RJ(t7), c2.remove(a3, u3, (function(e6) {
                      var i5 = e6.removedCount || 1;
                      o3.WLt(a3, e6.removedCount || 1, v, t7), f2.push({ index: a3, count: i5 }), l2 += i5, o3.rebuildFieldGetter(), n6();
                    }), e5);
                  };
                }));
                return (0, i3.promiseSerialExecute)(h2).then((function(t7) {
                  t7.removedItems = f2, t7.totalRemovedCount = l2, u2 && u2(t7);
                })).catch((function(t7) {
                  s2 && s2(t7);
                }));
              }, t5.prototype.WLt = function(t6, n5, e4, r3) {
                var o3, a2, u2, s2 = this;
                s2.kPt(t6, n5, e4), o3 = (0, i3.isNumber)(r3), (u2 = s2.HTr()) && (a2 = e4 || s2.iRt.slice(r3, r3 + n5), s2.CIr(r3, n5, a2, u2)), s2.mFt() || s2.lme() && !s2.Dit() || (o3 ? (a2 = a2 || s2.iRt.slice(r3, r3 + n5), (0, i3.removeIndexes)(s2.iRt, a2), s2.iRt.splice(r3, n5)) : (0, i3.removeIndexes)(s2.iRt, a2 || e4 || [t6], true)), s2.vIr(), s2.dLt(t6, n5, e4), s2.MRt(t6, n5, e4), s2.HQe(t6, n5, e4), s2.tFt(void 0, true);
              }, t5.prototype.CIr = function(t6, n5, e4, r3) {
                var o3 = this;
                (r3 === v ? o3.HTr() : r3) && (e4 = e4 || o3.iRt.slice(t6, t6 + n5), (0, i3.removeIndexes)(o3.Efe, e4, true));
              }, t5.prototype.getChanges = function() {
                var t6, n5, e4, r3 = this.gLt, o3 = r3.getChanges();
                for (t6 = 0, n5 = o3; t6 < n5.length; t6++) e4 = n5[t6], (0, i3.isNullOrUndefined)(e4.index) || (e4.index = this.FLt(e4.index));
                return o3;
              }, t5.prototype.isDataLengthChanged = function() {
                return this.gLt.isDataLengthChanged();
              }, t5.prototype.isDataRowOrderChanged = function() {
                return this.gLt.isDataRowOrderChanged();
              }, t5.prototype.submitChanges = function(t6, n5) {
                var e4 = this, i4 = e4.GLt(), r3 = i4.success, o3 = i4.fail, a2;
                return e4.gLt.submitChanges((function(n6, i5, r4) {
                  if (r4 === h.DELETE && (e4.Wce(), e4.cFt(), e4.gFt(), e4.hLt(), e4.tFt(v, true)), t6) {
                    var o4 = e4.FLt(n6);
                    t6(o4, i5, r4);
                  }
                }), (function(t7, e5, i5) {
                  n5 && n5(t7, e5, i5);
                })).then((function(t7) {
                  return e4.QLt(), r3(), t7;
                })).catch(o3);
              }, t5.prototype.QLt = function() {
              }, t5.prototype.cancelChanges = function() {
                var t6 = this, n5 = t6.GLt(), e4 = n5.success, i4 = n5.fail, r3 = t6.isDataLengthChanged(), o3 = r3 || t6.isDataRowOrderChanged(), a2 = t6.gLt.NGe();
                t6.gLt.cancelChanges((function() {
                  t6.kGe(a2), t6.KLt(r3, o3), e4();
                }), i4);
              }, t5.prototype.KLt = function(t6, n5) {
                this.iM(t6, void 0, n5);
              }, t5.prototype.NGe = function() {
                return this.gLt.NGe();
              }, t5.prototype.kGe = function(t6) {
                var n5 = this;
                this.gLt._Ge(t6, (function(t7) {
                  n5.removeColumn(t7.column.name || t7.column.value);
                }), (function(t7) {
                  n5.xGe(t7.column.name || t7.column.value, t7.originalColumn);
                }), (function(t7) {
                  n5.addColumn(t7.originalColumn);
                }));
              }, t5.prototype.DPt = function(t6, n5) {
                var e4, r3, o3, a2 = this, u2 = a2.TLt(t6, n5);
                if (this.oRe.FEe({ type: l.ViewChangeType.MoveColumnOptions, from: t6, to: n5 }), e4 = a2.ILt.map((function(t7, n6) {
                  return { index: n6, option: t7 };
                })), r3 = a2._Pt(t6, n5), e4 = r3.map((function(t7) {
                  return e4[t7];
                })), a2.ILt = e4.map((function(t7) {
                  return t7.option;
                })), u2) return true;
                o3 = [], e4.forEach((function(t7, n6) {
                  (0, i3.isNullOrUndefined)(t7.option.cross) || t7.index === n6 || o3.push({ oldIndex: t7.index, newIndex: n6 });
                })), a2.wLt(o3, false);
              }, t5.prototype.EPt = function() {
                var t6, n5 = this, e4 = n5.CLt;
                return e4 && e4.length > 0 ? (t6 = [], e4.forEach((function(e5, i4) {
                  t6.push(n5.yLt[e5].value);
                })), t6) : [];
              }, t5.prototype.jPt = function(t6) {
                var n5, e4 = this.yLt;
                return (0, i3.isNullOrUndefined)(t6) ? [] : t6.map((function(t7) {
                  return (0, i3.findIndex)(e4, (function(n6) {
                    return n6.value === t7;
                  }));
                }));
              }, t5.prototype.OPt = function(t6, n5, e4) {
                var i4, r3, a2, u2, s2, c2, f2, h2, d2, v2, p2, g2, m2 = this;
                if (m2.yLt.forEach((function(t7, n6) {
                  t7.RPt = n6;
                })), i4 = m2.oPt, this.oRe.FEe({ type: l.ViewChangeType.MoveColumnInfos, from: t6, to: n5, count: e4 }), r3 = (0, o2.ePt)(t6, n5, e4, m2.yLt, m2.oPt, m2.CLt, m2.ILt), a2 = m2.CLt.map((function(t7) {
                  return m2.yLt[t7];
                })), m2.yLt = r3.map((function(t7) {
                  return m2.yLt[t7];
                })), a2 && a2.length) {
                  for (u2 = [], s2 = m2.yLt.length, c2 = -1, f2 = 0, h2 = a2; f2 < h2.length; f2++) d2 = h2[f2], v2 = m2.yLt.indexOf(d2), c2 = Math.max(v2, c2), u2.push(v2);
                  for (p2 = 0; p2 < s2; p2++) -1 === u2.indexOf(p2) && u2.push(p2);
                  m2.oPt = u2, m2.CLt = u2.slice(0, a2.length);
                }
                return g2 = m2.yLt.reduce((function(t7, n6, e5) {
                  return n6.RPt !== e5 && t7.push({ oldIndex: n6.RPt, newIndex: e5 }), delete n6.RPt, t7;
                }), []), m2.yLt.forEach((function(t7) {
                  var n6, e5, i5, r4, o3;
                  for (n6 = 0, e5 = g2; n6 < e5.length; n6++) if (r4 = (i5 = e5[n6]).oldIndex, o3 = i5.newIndex, t7._Ft === r4) {
                    t7._Ft = o3;
                    break;
                  }
                })), m2.lLt && m2.lLt.moveFieldsByIndexes(g2), g2.map((function(t7) {
                  return t7.oldIndex = m2.BPt(t7.oldIndex, i4), t7.newIndex = m2.BPt(t7.newIndex), t7;
                }));
              }, t5.prototype.SLt = function(t6) {
                var n5 = this, e4 = n5.yLt, r3 = n5.ILt, o3 = e4[t6];
                return o3.isCross ? o3.RBt : (0, i3.findIndex)(r3, (function(t7) {
                  return t7.value === o3.value;
                }));
              }, t5.prototype.ALt = function(t6) {
                var n5 = this, e4 = n5.CLt, i4 = n5.ILt;
                return t6 = t6 || e4.map((function(t7) {
                  return n5.SLt(t7);
                })), (0, o2.generatePinnedColumnIndexMap)(t6, i4.length);
              }, t5.prototype._Pt = function(t6, n5) {
                var e4, r3, a2, u2, s2, c2, f2;
                if (t6 !== n5) return r3 = (e4 = this).CLt, a2 = e4.ILt.map((function(t7, n6) {
                  return { index: n6 };
                })), u2 = r3.map((function(t7) {
                  return e4.SLt(t7);
                })), (s2 = (0, o2.generatePinnedColumnIndexMap)(u2, a2.length)).length > 0 && (t6 = s2[t6], n5 = s2[n5]), c2 = u2.map((function(t7) {
                  var n6 = a2[t7];
                  return n6.LPt = true, n6;
                })), (0, i3.swapArrayItems)(a2, t6, n5, 1), f2 = a2.filter((function(t7) {
                  return !t7.LPt;
                })), c2.forEach((function(t7, n6) {
                  f2.splice(u2[n6], 0, t7);
                })), f2.map((function(t7) {
                  return t7.index;
                }));
              }, t5.prototype.getColumnInfos = function(t6, n5, e4, r3) {
                var o3, a2 = [], u2 = this.yLt, s2 = this.oPt, c2 = this.gLt, f2 = function(o4) {
                  var f3, h2 = s2.length > 0 && !e4 ? (0, i3.isNullOrUndefined)(s2[o4]) ? o4 : s2[o4] : o4, d2 = u2[h2];
                  if (!r3 && c2.jOt(d2.value) && (d2.isPrimaryKey = true), !t6 || !d2.isGroup) {
                    if (n5 && d2.isCross && (f3 = d2.RBt, (d2 = l2.ILt[f3]).RBt = f3, a2.some((function(t7) {
                      return t7 === d2;
                    })))) return "continue";
                    a2.push(d2);
                  }
                }, l2 = this;
                for (o3 = 0; o3 < u2.length; o3++) f2(o3);
                return a2;
              }, t5.prototype.ucr = function(t6, n5) {
                var e4 = (0, i3.isFormula)(t6) ? this.Ywt(t6) : t6;
                return e4 ? (0, a.getFieldNamesFrom)(e4, n5) : [];
              }, t5.prototype.Nfr = function(t6, n5) {
                var e4, r3 = (0, i3.isFormula)(t6) ? t6 : this.gLt.uke(t6) ? this.gLt.UAe(t6) : d;
                return (0, i3.isString)(n5) ? e4 = function(t7) {
                  return t7 === n5;
                } : (0, i3.isFunction)(n5) && (e4 = n5), r3 ? this.gLt.d0r(r3, e4) : e4(t6);
              }, t5.prototype.ife = function(t6) {
                var n5 = this;
                return (0, o2.getColumnName)((0, i3.isNumber)(t6) ? n5.kve(t6) : t6);
              }, t5.prototype.FPt = function(t6, n5) {
                var e4 = this.gLt.qRt(t6);
                return !((0, i3.isNullOrUndefined)(e4) || (!n5 || !(0, i3.isRelation)(t6)) && e4 === this.gLt);
              }, t5.prototype.setColumnInfos = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2 = {};
                for (r3 = 0; r3 < this.yLt.length; r3++) "string" == typeof (o3 = this.yLt[r3]).value && o3.value === o3.name && (s2[o3.value] = true);
                for (a2 = 0; a2 < t6.length; a2++) "string" != typeof (u2 = t6[a2]).value || s2[u2.value] || this.bde(u2);
                this.dde && (this.yLt = t6, this.Whe()), e4 && (this.ILt = (0, i3.clone)(t6).map((function(t7) {
                  return "string" == typeof t7 ? { value: t7 } : t7;
                }))), this.yLt = t6, this.HTr() && this.uIr() && this.RFt(), this.PPt(), this.Gfe(), n5 && this.cPt();
              }, t5.prototype.Gfe = function() {
                var t6, n5, e4, i4, r3, o3, a2 = this.ILt;
                for (t6 = 0; t6 < a2.length; t6++) if (!(n5 = a2[t6]).cross) {
                  for (e4 = this.yLt, i4 = 0; i4 < e4.length; i4++) if (r3 = e4[i4], n5.value === r3.value) {
                    for (o3 in r3) r3.hasOwnProperty(o3) && "_" !== o3.charAt(0) && (n5[o3] = r3[o3]);
                    break;
                  }
                }
              }, t5.prototype.PPt = function() {
                var t6, n5, e4, i4, r3, o3, a2, u2 = this.ILt;
                for (t6 = u2.length - 1; t6 >= 0; t6--) "string" == typeof (n5 = u2[t6].value) && "=" === n5[0] && u2.splice(t6, 1);
                for (e4 = this.yLt, t6 = 0, i4 = 0; t6 < e4.length; ) r3 = e4[t6], o3 = u2[i4], r3.isGroup || r3.isCross ? t6++ : o3 && o3.cross ? i4++ : (a2 = r3.value) === (n5 = o3 && o3.value) ? (t6++, i4++) : "string" != typeof a2 || "=" !== a2[0] && "formula" !== r3.dataType ? t6++ : (a2 !== r3.name && this.fBe(r3.name, a2), u2.splice(i4, 0, r3), t6++, i4++);
              }, t5.prototype.GPt = function(t6) {
                var n5;
                return !!this.gLt.ZRt(t6);
              }, t5.prototype.Vfe = function(t6, n5) {
                var e4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.NLt;
                if (d2.mFt()) d2.Wce(), d2.filter();
                else {
                  for (o3 in e4 = d2.iRt, r3 = d2.Jce) if (r3.hasOwnProperty(o3)) {
                    for (u2 = (a2 = r3[o3]).options, s2 = a2.count, delete a2.options, delete a2.count, c2 = 0; c2 < t6.length; c2++) f2 = t6[c2], (0, i3.isNullOrUndefined)(a2[f2]) || (delete a2[f2], s2--);
                    if (n5.length > 0) for (d2.iRt = n5, d2.filter(u2), l2 = 0; l2 < d2.iRt.length; l2++) a2[h2 = d2.iRt[l2]] = true, s2++;
                    a2.options = u2, a2.count = s2;
                  }
                  d2.Jce = r3, d2.iRt = e4;
                }
                d2.NLt = v2;
              }, t5.prototype.togglePinnedRows = function(t6) {
                var n5, e4, r3, o3, a2, u2, s2, c2, f2, h2, d2, p2, g2, m2, y2, w2, M2, C2, S2;
                if ((0, i3.isNullOrUndefined)(t6) || this.hasHierarchyColumn()) return this.lFt && this.lFt.length;
                for (n5 = b([], this.lFt, true), e4 = this.lFt, r3 = this.iRt, o3 = t6.length, a2 = [], u2 = [], s2 = [], c2 = e4.length, f2 = 0; f2 < o3; f2++) (h2 = r3[t6[f2]]) > -1 && ((d2 = e4.indexOf(h2)) > -1 ? (u2.push(d2), s2.push(h2)) : a2.push(h2));
                if (p2 = a2.length, g2 = u2.length, e4.length - g2 + p2 > this.rPt) return -1;
                if (g2 > 0) for (u2.sort(), f2 = g2 - 1; f2 >= 0; f2--) e4.splice(u2[f2], 1);
                for (f2 = 0; f2 < p2; f2++) e4.push(a2[f2]);
                if (g2 > 0 || p2 > 0) {
                  for (m2 = [], y2 = r3.length, (w2 = e4.length) > 0 && (m2 = e4.slice(0)), h2 = w2, f2 = 0; f2 < y2; f2++) -1 === e4.indexOf(r3[f2]) && (m2[h2] = r3[f2], h2++);
                  if (!this.mFt() && !this.tPt()) for (f2 = 0; f2 < g2; f2++) M2 = r3[u2[f2]], C2 = m2.indexOf(M2), S2 = this.UPt(M2, c2, m2), m2.splice(C2, 1), S2 = S2 > C2 ? S2 - 1 : S2, m2.splice(S2, 0, M2), c2 > w2 && c2--;
                  this.iRt = m2, this.Vfe(a2, s2), this.vFt(), this.hde(v, g2 > 0), this.NFt();
                }
                return this.oRe.FEe({ type: l.ViewChangeType.PinnedRows, oldData: { pinnedRows: n5 } }), e4.length;
              }, t5.prototype.$Ee = function() {
                var t6, n5 = this.lFt.length, e4 = [];
                for (t6 = 0; t6 < n5; t6++) e4.push(t6);
                this.togglePinnedRows(e4);
              }, t5.prototype.togglePinnedColumns = function(t6, n5) {
                var e4 = b([], this.CLt, true), i4 = this.ZGe(t6, n5);
                return this.oRe.FEe({ type: l.ViewChangeType.PinnedColumns, oldData: { pinnedColumns: e4 } }), i4;
              }, t5.prototype.ZGe = function(t6, n5) {
                var e4, r3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this;
                if ((0, i3.isNullOrUndefined)(t6)) return this.CLt && this.CLt.length;
                for (e4 = this.oPt, r3 = e4.length > 0, t6 = t6.filter((function(t7) {
                  var n6 = r3 ? e4[t7] : t7;
                  return !g2.yLt[n6].isCross;
                })), a2 = this.CLt, u2 = t6.length, s2 = [], c2 = [], f2 = 0; f2 < u2; f2++) (l2 = r3 ? e4[t6[f2]] : t6[f2]) > -1 && ((h2 = a2.indexOf(l2)) > -1 ? c2.push(h2) : s2.push(l2));
                if (d2 = s2.length, v2 = c2.length, a2.length - v2 + d2 > this.rPt) return -1;
                if (p2 = [], v2 > 0) for (c2.sort(), f2 = v2 - 1; f2 >= 0; f2--) p2.push(a2.splice(c2[f2], 1));
                for (f2 = 0; f2 < d2; f2++) a2.push(s2[f2]);
                return n5 && (a2 = a2.map((function(t7) {
                  var n6, e5, i4;
                  for (n6 = 0, e5 = p2; n6 < e5.length; n6++) t7 > (i4 = e5[n6]) && (t7 -= 1);
                  return t7;
                }))), (d2 > 0 || v2 > 0) && (this.oPt = (0, o2.generatePinnedColumnIndexMap)(a2, this.yLt.length - (n5 ? v2 : 0))), a2.length;
              }, t5.prototype.eRe = function() {
                var t6, n5 = this.CLt.length, e4 = [];
                for (t6 = 0; t6 < n5; t6++) e4.push(t6);
                this.togglePinnedColumns(e4);
              }, t5.prototype.uPt = function(t6) {
                var n5, e4 = this.oPt;
                return e4 && e4.length > 0 ? e4[t6] : t6;
              }, t5.prototype.BPt = function(t6, n5) {
                var e4;
                return (n5 = n5 || this.oPt) && n5.length > 0 ? n5.indexOf(+t6) : +t6;
              }, t5.prototype.getRowDataAsync = function(t6) {
                var n5 = this;
                return n5.fetch().then((function(e4) {
                  var i4 = n5.RJ(t6);
                  return n5.nFt(i4);
                }));
              }, t5.prototype.UPt = function(t6, n5, e4) {
                for (var i4 = n5; i4 < e4.length; i4++) if (e4[i4] > t6) return i4;
                return e4.length;
              }, t5.prototype.nFt = function(t6, n5, e4, i4, r3) {
                var o3 = this;
                return I(o3.gLt, o3.yLt, o3.BFt, o3.lLt, o3.MFt, t6, n5, e4, i4, r3);
              }, t5.prototype.rebuildFieldGetter = function() {
                var t6, n5 = this.gLt;
                n5 && (t6 = this.yLt).forEach((function(t7, e4) {
                  var i4 = t7.value;
                  "string" == typeof i4 && n5.rRt(i4);
                }));
              }, t5.prototype.ufe = function(t6, n5) {
                return N(this.gLt, t6, n5);
              }, t5.prototype.cRe = function(t6) {
                var n5, e4;
                return null === (e4 = null === (n5 = this.gLt) || void 0 === n5 ? void 0 : n5.columns) || void 0 === e4 ? void 0 : e4[t6];
              }, t5.prototype.updateColumnDataType = function(t6, n5) {
                var e4, r3, o3, a2, u2, s2, c2 = this.cRe(t6);
                c2 && ((a2 = null === (o3 = null === (r3 = null === (e4 = this.gLt) || void 0 === e4 ? void 0 : e4.options) || void 0 === r3 ? void 0 : r3.schema) || void 0 === o3 ? void 0 : o3.columns) && (a2[t6] ? a2[t6].dataType = n5 : a2[t6] = { dataType: n5 }), u2 = c2.dataType, s2 = (0, i3.clone)(this.gLt.jEe(c2.name)), this.oRe.FEe({ type: l.ViewChangeType.TableSheetColumnDataTypeChanged, oldData: { columnValue: t6, oldDataType: u2, oldData: s2 } }), c2.dataType = n5);
              }, t5.prototype.KEe = function(t6, n5) {
                var e4 = this.cRe(t6);
                e4 && this.gLt.OEe(e4.name, n5);
              }, t5.prototype.updateColumnIsPrimaryKeyType = function(t6, n5) {
                var e4, i4, r3, o3, a2 = this.cRe(t6);
                a2 && ((o3 = null === (r3 = null === (i4 = null === (e4 = this.gLt) || void 0 === e4 ? void 0 : e4.options) || void 0 === i4 ? void 0 : i4.schema) || void 0 === r3 ? void 0 : r3.columns) && (o3[t6] ? o3[t6].isPrimaryKey = n5 : o3[t6] = { isPrimaryKey: n5 }), this.oRe.FEe({ type: l.ViewChangeType.TableSheetColumnIsPrimaryKeyChanged, oldData: { columnValue: t6, oldIsPrimaryKey: a2.isPrimaryKey } }), a2.isPrimaryKey = n5);
              }, t5.prototype.bPt = function(t6) {
                var n5, e4, r3, o3 = this, a2 = o3.yLt, u2 = {}, s2 = [], c2 = !!o3.MFt, f2 = o3.gLt;
                if (a2.forEach((function(n6, e5) {
                  var r4, a3, l2, h2, d2 = n6.value;
                  n6.isCross ? u2[n6.value] = o3.lLt.getFieldByColumn(n6).getOriginalValue(t6) : d2 && !n6.isGroup && ("string" == typeof d2 ? (r4 = d2.indexOf(".") >= 0, a3 = "=" === d2[0], l2 = f2.XOt && (0, i3.isNullOrUndefined)(f2.XOt[d2]), (!c2 || c2 && (r4 || a3 || l2)) && (u2[h2 = d2] = j(a3 ? f2._getValueByField(d2, t6) : f2.XRt(d2, t6), n6))) : "function" == typeof d2 && s2.push({ name: d2.name, caption: n6.caption, value: d2 }));
                })), s2.length > 0 && (n5 = f2.iBt(t6), s2.forEach((function(t7) {
                  u2[t7.name] = t7.value(n5);
                }))), c2) for (r3 in e4 = this.lLt.CBt(t6)) e4.hasOwnProperty(r3) && (u2[r3] = e4[r3]);
                return u2;
              }, t5.prototype.DGe = function() {
                return this.gLt.DGe();
              }, t5.prototype.jGe = function(t6) {
                return this.gLt.jGe(t6);
              }, t5.prototype.OGe = function(t6) {
                return this.gLt.OGe(t6);
              }, t5.prototype.addColumn = function(t6) {
                this.qFe(t6, true);
              }, t5.prototype.qFe = function(t6, n5, e4, r3) {
                var a2, u2, s2, c2, f2;
                u2 = !(a2 = (t6 = this.QGe(t6)).zTr) && (0, i3.isNamedFormulaColumn)(t6), (n5 || u2) && (t6 = m({}, t6)), a2 || (u2 ? (t6.value = t6.name, delete t6.dataType) : t6.name = (0, o2.getColumnName)(t6)), s2 = this.WGe(t6), (c2 = this.lur(e4)) ? c2.isCross ? (f2 = this.hur(e4, c2), this.yLt.splice(f2, 0, t6), this.ILt.splice(c2.RBt, 0, t6)) : (e4 = this.uPt(e4), this.yLt.splice(e4, 0, t6), this.ILt.splice(e4, 0, t6)) : (this.yLt.push(t6), this.ILt.push(t6)), this.dur(t6), this.oRe.FEe({ type: l.ViewChangeType.AddColumn, newData: m({}, t6) }), s2 || (this.lLt && this.lLt.addBaseField(t6, r3), a2 || (this.bde(t6) && this.dde && this.Whe(), this.PPt()), this.Gfe());
              }, t5.prototype.lur = function(t6) {
                var n5, e4 = (0, i3.isNumber)(t6) && t6 >= 0 && t6 < this.yLt.length;
                if (n5 = (e4 = e4 && (!(this.CLt.length > 0) || t6 >= this.CLt.length)) && this.kve(t6), e4 && !n5.isGroup) return n5;
              }, t5.prototype.hur = function(t6, n5) {
                var e4, i4;
                if (n5 = n5 || this.lur(t6)) {
                  if (n5.isCross) {
                    for (e4 = t6 - 1; e4 >= 0; e4--) if (!(i4 = this.kve(e4)).isCross || i4.RBt !== n5.RBt) return e4 + 1;
                  }
                  return t6;
                }
                return this.yLt.length;
              }, t5.prototype.KGe = function(t6, n5, e4) {
                this.JGe(d, t6, d, n5, e4);
              }, t5.prototype.JGe = function(t6, n5, e4, i4, r3) {
                var a2, u2, s2 = this, c2 = s2.GLt(i4, r3), f2 = c2.success, h2 = c2.fail;
                if (n5 = m({}, s2.QGe(n5)), a2 = s2.gLt.hasExistedColumn(n5), B(n5) || a2) return a2 ? (u2 = s2.$Ge(s2.ife(n5), true, true, true), s2.qFe(u2, false, t6), void s2.aUe(u2, n5, e4, f2, h2)) : (e4 && e4(d), s2.qFe(n5, false, t6), void f2({ success: true, column: m({}, n5) }));
                s2.gLt.addColumn(n5, (function(i5) {
                  e4 && e4(i5), s2.qFe(n5, false, t6), i5.column = m({}, n5), (i5.table || i5.source) && s2.oRe.FEe({ type: l.ViewChangeType.DefineColumnAddColumn, name: (0, o2.getColumnName)(n5), table: i5.table, source: i5.source }), f2(i5);
                }), h2);
              }, t5.prototype.WGe = function(t6) {
                var n5 = this, e4 = n5.ILt.some((function(n6) {
                  return n6.value === t6.value && (0, i3.isNullOrUndefined)(t6.cross);
                })), r3 = !e4 && n5.yLt.some((function(n6) {
                  return n6.value === t6.value;
                }));
                return e4 || r3;
              }, t5.prototype.QGe = function(t6) {
                return "string" == typeof t6 ? t6 = { name: t6, value: t6 } : t6.name || "string" != typeof t6.value || (t6.name = t6.value), t6.value && "=" === t6.value[0] && (t6.readonly = true), "date" === t6.dataType && (0, o2.applyDateTimePicker)(t6), t6;
              }, t5.prototype.DRe = function(t6, n5, e4, i4) {
                e4 ? (this.yLt.splice(t6, 0, n5), i4 && this.lLt && this.lLt.addBaseField(n5, this.HTr() && n5.zTr ? this.RGr(t6) : v), this.dur(n5), this.bde(n5) && this.dde && this.Whe(), this.PPt(), this.Gfe(), this.vIr()) : this.ILt.splice(t6, 0, n5);
              }, t5.prototype.eGe = function(t6) {
                this.gLt.eGe(t6);
              }, t5.prototype.uGe = function(t6) {
                this.gLt.uGe(t6);
              }, t5.prototype.JFe = function(t6) {
                this.gLt.JFe(t6);
              }, t5.prototype.getColumn = function(t6) {
                var n5 = this;
                return (0, i3.isNullOrUndefined)(t6) ? n5.getColumnInfos() : n5.kve(t6, false);
              }, t5.prototype.kve = function(t6, n5, e4) {
                var i4 = this;
                if (!(t6 < 0 || t6 >= i4.yLt.length)) return i4.qGe(i4.uPt(t6), n5, e4);
              }, t5.prototype.qGe = function(t6, n5, e4, i4) {
                var r3, o3;
                if (t6 !== v) return r3 = this.yLt[t6], e4 && (o3 = this.e0r(r3)) ? m(m({}, r3), o3) : (false !== i4 && this.gLt.jOt(r3.value) && (r3.isPrimaryKey = true), false === n5 ? m({}, r3) : r3);
              }, t5.prototype.e0r = function(t6) {
                var n5 = (0, o2.getColumnName)(t6), e4 = this.gLt.jRt(n5);
                if (e4) return (0, i3.isNullOrUndefined)(e4.value) && (e4.value = e4.name = n5), e4;
              }, t5.prototype.i0r = function(t6) {
                var n5 = t6.value;
                return !(0, i3.isNullOrUndefined)(this.$Ge((0, i3.isNullOrUndefined)(n5) ? t6 : n5, true));
              }, t5.prototype.updateColumn = function(t6) {
                this.JEe(t6);
              }, t5.prototype.JEe = function(t6, n5, e4) {
                var i4 = this, r3 = !!t6.cross;
                r3 || false === n5 ? i4.fRe(t6, e4) : (i4.lRe(t6, e4), i4.PPt(), i4.Gfe());
              }, t5.prototype.fBe = function(t6, n5) {
                var e4, i4, r3 = this, o3 = null === (e4 = this.yLt.filter((function(n6) {
                  return n6.name === t6;
                }))) || void 0 === e4 ? void 0 : e4[0], a2 = null === (i4 = this.ILt.filter((function(n6) {
                  return n6.name === t6;
                }))) || void 0 === i4 ? void 0 : i4[0];
                (o3 || a2) && (o3 && (o3.name = n5), a2 && (a2.name = n5), r3.lLt && r3.lLt.renameBaseField(t6, n5), r3.oRe.FEe({ type: l.ViewChangeType.UpdateColumnName, oldName: t6, newName: n5 }));
              }, t5.prototype.fRe = function(t6, n5) {
                var e4, i4 = this;
                (n5 = null != n5 ? n5 : i4.ILt.findIndex((function(n6) {
                  return n6.name === t6.name;
                }))) < 0 || (e4 = i4.ILt[n5] ? m({}, i4.ILt[n5]) : null, i4.ILt[n5] = t6, i4.oRe.FEe({ type: l.ViewChangeType.UpdateColumn, oldData: e4 }));
              }, t5.prototype.lRe = function(t6, n5) {
                var e4, i4 = this;
                (n5 = null != n5 ? n5 : this.yLt.findIndex((function(n6) {
                  return n6.name === t6.name;
                }))) < 0 || (e4 = i4.yLt[n5] ? m({}, i4.yLt[n5]) : null, i4.yLt[n5] = t6, this.oRe.FEe({ type: l.ViewChangeType.UpdateColumn, oldData: e4 }));
              }, t5.prototype.EGr = function(t6, n5) {
                var e4, r3, a2 = this, u2 = a2.$Ge(t6);
                u2 && (e4 = (0, o2.getColumnName)(u2), n5.formula && (0, i3.isFormula)(u2.value) && (u2.value = n5.formula), a2.lLt && a2.HTr() && a2.uIr() && u2.zTr && (r3 = a2.lLt.getFieldByName(e4)) && r3.mir && ((0, i3.isNullOrUndefined)(n5.col) && (n5.col = t6), r3.mir(n5)));
              }, t5.prototype.hRe = function(t6) {
                var n5, e4, r3, o3 = this;
                o3.dRe(t6), null === (n5 = o3.xLt) || void 0 === n5 || n5.call(o3, t6), e4 = [], (r3 = o3.ILt.map((function(t7, n6) {
                  return { index: n6, option: t7 };
                }))).forEach((function(t7, n6) {
                  (0, i3.isNullOrUndefined)(t7.option.cross) || e4.push({ oldIndex: t7.index, newIndex: n6 });
                })), o3.wLt(e4);
              }, t5.prototype.dRe = function(t6) {
                var n5, e4, r3, o3, a2 = this, u2 = { columnInfoOptions: (0, i3.clone)(a2.ILt), options: (0, i3.clone)(a2.LEt), columnInfos: (0, i3.clone)(a2.yLt) }, s2 = a2.ILt.map((function(t7, n6) {
                  return { index: n6, option: t7 };
                })), c2 = (s2.splice(t6, 1)[0] || {}).option, f2 = s2.map((function(t7) {
                  return t7.option;
                })), h2 = a2.LEt;
                if (c2 && "string" == typeof c2.cross) {
                  for (n5 = false, e4 = 0, r3 = f2; e4 < r3.length; e4++) if ((o3 = r3[e4]) && o3.cross === c2.cross) {
                    n5 = true;
                    break;
                  }
                  !n5 && h2.cross && delete h2.cross[c2.cross];
                }
                this.oRe.FEe({ type: l.ViewChangeType.RemoveColumnInfoOptions, oldData: u2 }), a2.ILt = f2, a2.LEt = h2;
              }, t5.prototype.qEe = function(t6, n5) {
                var e4 = this;
                e4.ILt = t6, e4.LEt = n5;
              }, t5.prototype.$Ge = function(t6, n5, e4, r3, a2) {
                var u2, s2;
                if ((0, i3.isNumber)(t6)) return this.kve(t6, n5);
                if ((0, i3.isString)(t6)) {
                  if (u2 = void 0, (s2 = this.yLt.findIndex((function(n6) {
                    return (0, o2.getColumnName)(n6) === t6;
                  }))) > -1) u2 = this.qGe(s2, n5, false, a2);
                  else if (e4 && (u2 = this.e0r(t6))) return false === n5 || r3 ? m({}, u2) : u2;
                  return u2;
                }
                return t6;
              }, t5.prototype.lIr = function(t6) {
                var n5 = this.yLt.findIndex((function(n6) {
                  return (0, o2.getColumnName)(n6) === t6;
                }));
                return this.BPt(n5);
              }, t5.prototype.UFe = function(t6) {
                var n5, e4, r3, o3 = this;
                return (0, i3.isNumber)(t6) && (n5 = o3.uPt(t6)), r3 = function() {
                  var t7 = o3.getHierarchyColumnIndex();
                  return t7 === n5 || o3.yLt[t7] && o3.yLt[t7].value === e4.value;
                }, !(!(e4 = o3.$Ge(t6)) || !(e4.isGroup || e4.isCross || o3.isHierarchy() && r3() || o3.lGe(e4, true) || o3.hGe(e4)));
              }, t5.prototype.Zcr = function(t6, n5) {
                var e4 = this, r3 = e4.$Ge(t6), o3 = function(t7, n6) {
                  var r4 = (0, i3.isFormula)(t7.value) || (0, i3.isRelation)(t7.value) || e4.FPt(t7.value, true) || (0, i3.isNamedFormulaColumn)(t7), o4 = e4.gLt.isDataColumn(n6);
                  return r4 && o4;
                };
                return !(o3(r3, n5) || o3(n5, r3));
              }, t5.prototype.hGe = function(t6) {
                return this.gLt.hGe(this.ife(t6));
              }, t5.prototype.removeColumn = function(t6) {
                this.TGe(t6);
              }, t5.prototype.TGe = function(t6, n5, e4) {
                var i4, r3, a2 = this, u2 = this.$Ge(t6);
                this.UFe(u2) || (i4 = this.ife(u2), this.tUe(u2), this.UQe(u2), r3 = this.lLt && 1 === this.yLt.filter((function(t7) {
                  return (0, o2.getColumnName)(t7) === i4;
                })).length && this.lLt.removeField(i4), this.nUe(t6, (function(t7, e5, i5, o3) {
                  var u3 = n5 ? n5(e5, i5, o3) : i5.splice(e5, 1)[0];
                  a2.oRe.FEe({ type: l.ViewChangeType.DeleteColumn, index: e5, oldData: u3, isInfo: o3, isField: !!o3 && r3 });
                })), false !== e4 && this.vIr());
              }, t5.prototype.eUe = function(t6, n5, e4) {
                this.iUe(t6, d, n5, e4);
              }, t5.prototype.iUe = function(t6, n5, e4, i4) {
                var r3 = this, o3 = r3.GLt(e4, i4), a2 = o3.success, u2 = o3.fail, s2 = r3.ife(t6);
                if (B(s2)) return n5 && n5(d), r3.removeColumn(s2), void a2({ success: true });
                r3.gLt.removeColumn(s2, (function(t7) {
                  n5 && n5(t7), r3.removeColumn(s2), r3.oRe.FEe({ type: l.ViewChangeType.DefineColumnRemoveColumn, name: s2, table: t7.table, source: t7.source }), a2(t7);
                }), u2);
              }, t5.prototype.tUe = function(t6) {
                var n5, e4, i4, r3, a2, u2 = this, s2 = u2.CLt;
                if (s2 && s2.length > 0) for (n5 = u2.yLt, e4 = n5.length, i4 = function(i5) {
                  var r4 = n5[i5];
                  if (t6 === r4) return u2.CLt = s2 = s2.map((function(t7) {
                    return t7 > i5 && (t7 -= 1), t7;
                  })), u2.oPt = (0, o2.generatePinnedColumnIndexMap)(s2, e4 - 1), "break";
                }, r3 = 0; r3 < e4 && "break" !== (a2 = i4(r3)); r3++) ;
              }, t5.prototype.dur = function(t6) {
                var n5, e4, i4, r3, a2, u2 = this, s2 = u2.CLt;
                if (s2 && s2.length > 0) for (n5 = u2.yLt, e4 = n5.length, i4 = function(i5) {
                  var r4 = n5[i5];
                  if (t6 === r4) return u2.CLt = s2 = s2.map((function(t7) {
                    return t7 >= i5 && (t7 += 1), t7;
                  })), u2.oPt = (0, o2.generatePinnedColumnIndexMap)(s2, e4), "break";
                }, r3 = 0; r3 < e4 && "break" !== (a2 = i4(r3)); r3++) ;
              }, t5.prototype.HGe = function() {
                var t6 = this;
                return { sortBefore: (0, o2.removeExtraInfos)(t6.DLt), sortAfter: (0, o2.removeExtraInfos)(t6._Lt), sortInfo: (0, o2.removeExtraInfos)(t6.kLt) };
              }, t5.prototype.xGe = function(t6, n5, e4, r3) {
                var a2, u2 = this, s2 = this.QGe(n5), c2 = u2.ife(t6);
                return e4 && (s2 = m({}, s2)), (0, i3.isNamedFormulaColumn)(s2) ? (s2.value = s2.name, delete s2.name, delete s2.dataType) : s2.name = (0, o2.getColumnName)(s2), u2.rUe(t6, s2, r3), a2 = s2, u2.nUe(t6, (function(t7, n6, e5, i4) {
                  a2 = u2.oUe(s2, t7), e5.splice(n6, 1, a2), u2.oRe.FEe({ type: l.ViewChangeType.UpdateColumn, index: n6, oldData: m({}, t7), isInfo: i4 });
                })), r3 && r3.isNameUpdated && u2.fBe(c2, (0, o2.getColumnName)(a2)), u2.vIr(), a2;
              }, t5.prototype.uUe = function(t6, n5, e4, i4) {
                this.aUe(t6, n5, d, e4, i4);
              }, t5.prototype.aUe = function(t6, n5, e4, r3, a2) {
                var u2, s2, c2, f2 = this, h2 = f2.GLt(r3, a2), v2 = h2.success, p2 = h2.fail;
                if (n5 = f2.QGe(n5), t6 = f2.$Ge(t6), u2 = n5.type !== t6.type ? m({}, n5) : m(m({}, t6), n5), f2.Zcr(t6, u2)) {
                  if (s2 = (0, i3.isNamedFormulaColumn)(t6) ? t6.name : f2.ife(t6), (0, i3.isFormula)(s2) && (0, i3.isFormula)(u2.value) && !(0, i3.isNamedFormulaColumn)(u2) || (0, i3.isRelation)(s2) && (0, i3.isRelation)(u2.value) || (0, i3.isFormula)(s2) && (0, i3.isRelation)(u2.value) || (0, i3.isRelation)(s2) && (0, i3.isFormula)(u2.value)) return c2 = e4 ? { onSucceededBefore: e4 } : d, n5 = f2.xGe(s2, u2, false, c2), void v2(m({ success: true, column: m({}, n5) }, c2));
                  (0, i3.isFormula)(s2) && (0, i3.isNamedFormulaColumn)(u2) ? f2.KGe(u2, (function(t7) {
                    f2.TGe(s2, (function(t8, n6) {
                      return n6.splice(t8, 1, n6.pop())[0];
                    })), v2(t7);
                  }), p2) : f2.gLt.updateColumn(s2, n5, (function(t7) {
                    t7.onSucceededBefore = function(t8) {
                      t8.isNameUpdated && f2.lLt && f2.lLt.renameBaseField(s2, (0, o2.getColumnName)(n5)), e4 && e4(t8);
                    }, n5 = f2.xGe(s2, u2, false, t7), t7.column = m({}, n5), f2.oRe.FEe({ type: l.ViewChangeType.DefineColumnModifyColumn, table: t7.table, source: t7.source }), v2(t7);
                  }), p2);
                } else p2();
              }, t5.prototype.rUe = function(t6, n5, e4) {
                var i4 = this, r3 = i4.$Ge(t6, false, false, false, false), o3 = i4.BGe(n5, r3), a2 = i4.GGe(n5, r3), u2 = i4.LGe(n5, r3), s2 = i4.ife(r3) !== i4.ife(n5);
                s2 && i4.UQe(r3, n5), e4 ? (e4.isNameUpdated = s2, e4.isFilterUpdated = o3, e4.isSortUpdated = a2, e4.isGroupUpdated = u2, e4.onSucceededBefore(e4)) : o3 ? i4.tFt(d, d, d, true) : u2 ? i4.nPt(d, true) : a2 && i4.NFt(true);
              }, t5.prototype.nUe = function(t6, n5) {
                var e4, r3, a2, u2 = this.ILt, s2 = this.yLt;
                if ("number" == typeof t6) return n5(u2[t6], t6, u2, false), n5(s2[t6], t6, s2, true), this.PPt(), void this.Gfe();
                for ((0, i3.isString)(t6) || (t6 = (0, o2.getColumnName)(t6)), e4 = 0; e4 < u2.length; e4++) if (r3 = u2[e4], this.sUe(r3, t6)) {
                  n5(r3, e4, u2, false);
                  break;
                }
                for (e4 = 0; e4 < s2.length; e4++) if (a2 = s2[e4], this.sUe(a2, t6)) {
                  n5(a2, e4, s2, true);
                  break;
                }
                this.PPt(), this.Gfe();
              }, t5.prototype.sUe = function(t6, n5) {
                return t6.value === n5 || t6.name === n5;
              }, t5.prototype.oUe = function(t6, n5) {
                return t6.type !== n5.type ? m({}, t6) : m(m({}, n5), t6);
              }, t5.prototype.tFt = function(t6, n5, e4, i4) {
                n5 || this.gFt(t6);
                var r3 = this.mFt(i4);
                r3 && this.dFt(), this.vFt(i4), this.nPt(r3 ? v : e4, i4), this.wFt = v, this.HTr() || (this.Efe = v);
              }, t5.prototype.vCn = function() {
                this.oRe.vCn();
              }, t5.prototype.FCn = function() {
                this.oRe.FCn();
              }, t5.prototype.lM = function() {
                return this.oRe.lM();
              }, t5.prototype.LEe = function() {
                return this.oRe.LEe();
              }, t5.prototype.SRe = function() {
                return this.oRe.SRe();
              }, t5.prototype.ARe = function(t6) {
                this.oRe.ARe(t6);
              }, t5.prototype.PEe = function() {
                this.oRe.PEe();
              }, t5.prototype.Mtt = function(t6) {
                return this.oRe.Mtt(t6);
              }, t5.prototype.excludeInsertedPinnedRows = function() {
                var t6, n5 = this, e4 = n5.lFt, i4 = [];
                for (t6 = 0; t6 < e4.length; t6++) n5.isInserted(t6) || i4.push(e4[t6]);
                return i4;
              }, t5.prototype.toJSON = function() {
                var t6, n5, e4, r3, a2 = this, u2 = {};
                if (a2._Lt && (u2 = { sortBefore: (0, o2.removeExtraInfos)(a2.DLt), sortAfter: (0, o2.removeExtraInfos)(a2._Lt) }), 0 === (t6 = a2.ILt).length) 0 === a2.yLt.length && a2.cPt(), t6 = a2.ILt = a2.yLt;
                else for (n5 = function(n6) {
                  var e5, r4, o3 = t6[n6].cross;
                  (0, i3.isNullOrUndefined)(o3) && (e5 = a2.yLt.filter((function(e6) {
                    return e6.value === t6[n6].value;
                  }))[0]) && (t6[n6] = e5), (r4 = t6[n6].validator) && "date" === r4.type && (M(r4.value1) && (r4.value1 = C(r4.value1)), M(r4.value2) && (r4.value2 = C(r4.value2)));
                }, e4 = 0; e4 < t6.length; e4++) n5(e4);
                if (a2.HTr() && a2.uIr()) for (r3 = 0; r3 < a2.ILt.length; r3++) delete a2.ILt[r3].YEr;
                return m(m({}, u2), { name: a2.name, options: (0, i3.clone)(a2.LEt), columns: (0, i3.clone)(a2.ILt), indexMap: (0, i3.cloneArray)(a2.iRt), disableAuto: a2.dIr, baseIndexMap: a2.HTr() ? (0, i3.cloneArray)(a2.Efe) : v, columnIndexMap: (0, i3.cloneArray)(a2.oPt), autoSort: a2.autoSort, sortInfo: (0, o2.removeExtraInfos)(a2.kLt), autoFilter: a2.autoFilter, filterInfo: (0, o2.removeExtraInfos)(a2.NLt), autoGroup: a2.autoGroup, groupInfo: (0, i3.clone)(a2.MFt), detailColumnsVisible: a2.UFt, pinnedRows: a2.excludeInsertedPinnedRows(), pinnedColumns: (0, i3.cloneArray)(a2.CLt) });
              }, t5.prototype.fromJSON = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this;
                if (a2.iRt = t6.indexMap, n5 = t6.columnIndexMap, e4 = a2.yLt, n5 && e4 && n5.length > 0 && n5.length < e4.length) for (i4 = n5.length; i4 < e4.length; i4++) n5[i4] = i4;
                for (i4 = 0; i4 < e4.length; i4++) (r3 = e4[i4].validator) && "date" === r3.type && ("string" == typeof r3.value1 && (o3 = S(r3.value1)) && (r3.value1 = o3), "string" == typeof r3.value2 && (o3 = S(r3.value2)) && (r3.value2 = o3));
                a2.oPt = n5, a2.Efe = t6.baseIndexMap, a2.dIr = t6.disableAuto, a2.autoSort = t6.autoSort, a2.kLt = t6.sortInfo, a2.DLt = t6.sortInfo, t6.sortAfter && (a2.DLt = t6.sortBefore, a2._Lt = t6.sortAfter), a2.autoFilter = t6.autoFilter, a2.NLt = t6.filterInfo, a2.autoGroup = t6.autoGroup, a2.MFt = t6.groupInfo, a2.UFt = t6.detailColumnsVisible, a2.lFt = t6.pinnedRows, a2.CLt = t6.pinnedColumns;
              }, t5;
            })(), n4.View = g;
          }, "./dist/src/viewField/fieldManager.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f = this && this.iJr || function(t5, n5, e4) {
              if (e4 || 2 === arguments.length) for (var i4 = 0, r3 = n5.length, o3; i4 < r3; i4++) !o3 && i4 in n5 || (o3 || (o3 = Array.prototype.slice.call(n5, 0, i4)), o3[i4] = n5[i4]);
              return t5.concat(o3 || Array.prototype.slice.call(n5));
            };
            function l(t5, n5, e4, i4) {
              return function(r3, o3) {
                var a2 = t5.getField(o3), c2 = e4 && !(0, s.isGroupSlice)(a2.name) && a2.extra && a2.extra.caption || a2.name;
                return i4 && a2 instanceof u.ColumnDataReaderField || (r3[c2] = a2.getValue(n5)), r3;
              };
            }
            function h(t5, n5) {
              var e4, r3, o3, a2, u2, s2, c2, f2, l2, d2 = [];
              if (t5.function) for (e4 = 0, r3 = t5.arguments; e4 < r3.length; e4++) if (14 === (o3 = r3[e4]).type) {
                if (!n5) {
                  d2.push(o3.value.Pq[0]);
                  break;
                }
                d2.push(o3.value.Pq[0]);
              } else (a2 = h(o3)) && (d2 = d2.concat(a2));
              else for (u2 = 0, s2 = Object.getOwnPropertyNames(t5); u2 < s2.length; u2++) if ((f2 = t5[c2 = s2[u2]]) instanceof i3.Expression) if (14 === f2.type) {
                if (!n5) {
                  d2.push(f2.value.Pq[0]);
                  break;
                }
                d2.push(f2.value.Pq[0]);
              } else (l2 = h(f2)) && (d2 = d2.concat(l2));
              return d2;
            }
            function d(t5, n5) {
              var e4, i4, o3 = n5.valueRelation, u2 = o3.split("."), s2 = t5(o3), c2 = "", f2 = false, l2 = false;
              for (e4 = 0; e4 < u2.length; e4++) i4 = s2[e4], (0, r2.isNullOrEmpty)(u2[e4]) || (c2 += ".".concat(u2[e4])), !l2 && i4 && "array" === i4.type && i4.name === u2[e4] && (l2 = true, f2 = true, c2 += ".".concat(a.RelationTemplateToken));
              return { isOneToMany: f2, relationTemplate: c2.slice(1) };
            }
            function v(t5, n5, e4, i4) {
              var r3 = w(t5), o3 = n5 || r3;
              return { valueRelation: t5, valueCaption: o3, valueIndex: e4, valueCrossKey: i4 };
            }
            function p(t5) {
              var n5, e4 = t5.columns, i4 = t5.crossKeys, r3 = t5.initialOptionIndex, o3 = [];
              for (n5 = 0; n5 < e4.length; n5++) o3.push(v(e4[n5].value, e4[n5].caption, r3 + n5, i4[n5]));
              return o3;
            }
            function g(t5, n5) {
              return m(t5, n5, "");
            }
            function m(t5, n5, e4) {
              return !(0, r2.isNullOrEmpty)(n5) && t5.indexOf(n5) >= 0 ? m(t5 = t5.replace(n5, e4), n5, e4) : t5;
            }
            function b(t5) {
              var n5 = t5.value;
              return "string" == typeof n5 ? n5 : "function" == typeof n5 ? n5.name : void 0;
            }
            function y(t5) {
              var n5;
              return ((n5 = "string" == typeof t5 || (0, r2.isNullOrUndefined)(t5) ? t5 : "function" == typeof t5 ? t5.name : t5.value) || "").split(".");
            }
            function w(t5) {
              var n5 = y(t5);
              return n5[n5.length - 1];
            }
            function M(t5) {
              if (!(0, r2.isNullOrEmpty)(t5.formatter)) return t5.formatter;
            }
            function C(t5) {
              var n5 = y(t5);
              return n5[n5.length - 2];
            }
            function S(t5, n5) {
              var e4 = y(t5);
              return n5 && e4.splice(e4.length - 1, 0, ""), e4.slice(0, e4.length - 1).join(".");
            }
            function T(t5) {
              return "string" == typeof t5 ? [t5] : t5 || [];
            }
            function x(t5) {
              var n5, e4, i4, o3 = 0, a2 = {};
              for (n5 = 0; n5 < t5.length; n5++) e4 = t5[n5].caption, (0, r2.isArray)(e4) ? (t5[n5].caption = e4.map((function(t6) {
                return null == t6 ? void 0 : t6.toString();
              })), a2[n5] = e4.length, a2[n5] > o3 && (o3 = a2[n5])) : t5[n5].caption = null == e4 ? void 0 : e4.toString();
              for (n5 in a2) if (a2[n5] < o3) for (i4 = o3 - a2[n5], e4 = t5[n5].caption; i4 > 0; ) e4.unshift(), i4--;
              for (n5 = 0; n5 < t5.length; n5++) e4 = t5[n5].caption, (0, r2.isArray)(e4) && 1 === e4.length && (t5[n5].caption = e4[0]);
            }
            function A(t5, n5) {
              var e4, i4, o3, a2 = t5.qRt(n5);
              if (!((0, r2.isNullOrUndefined)(a2) || (e4 = a2._dataSource.options.schema, (0, r2.isNullOrUndefined)(e4) || (i4 = e4.columns, (0, r2.isNullOrUndefined)(i4) || (o3 = i4[w(n5)], (0, r2.isNullOrUndefined)(o3)))))) return o3.lookup;
            }
            function I(t5, n5) {
              return k(t5, n5) || N(t5, n5);
            }
            function k(t5, n5) {
              return (0, r2.isArray)(A(t5, n5));
            }
            function N(t5, n5) {
              var e4, i4, o3, a2, u2 = A(t5, n5);
              if ((0, r2.isObject)(u2) && (u2 = u2.name), (0, r2.isString)(u2)) return e4 = t5.qRt(n5), i4 = w(n5), o3 = w(u2), a2 = t5.QOt.relationships.find((function(t6) {
                return t6.sourceTable === e4 && t6.sourceFieldName === i4 && t6.sourceRelationshipName === o3;
              })), !(0, r2.isNullOrUndefined)(a2);
            }
            function j(t5, n5, e4) {
              var i4 = w(e4), r3 = E(t5, (function(t6) {
                return t6.sourceFieldName === i4 && t6.sourceTable === n5;
              }));
              return r3 ? { relationTable: r3.targetTable, relationPrimaryKey: r3.targetFieldName, relationTableName: r3.sourceRelationshipName } : {};
            }
            function D(t5, n5, e4) {
              var i4, a2, u2, s2, c2, f2, l2, h2, d2 = n5.over, v2 = n5.attributes;
              return !((0, r2.isNullOrEmpty)(d2) || (0, r2.isNullOrEmpty)(e4) || e4 === d2 || _(t5, e4)) && (i4 = y(e4), u2 = !(a2 = k(t5, d2)) && (N(t5, d2) && v2 && v2.length > 0), !(!a2 && !u2) && (s2 = j(t5, O(t5, d2), d2), !(i4.indexOf(s2.relationTableName) > -1) && (c2 = t5.$Rt(d2), f2 = t5.$Rt(e4), !(!c2.every((function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToOne;
              })) || !f2.every((function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToOne;
              }))) || (l2 = (0, r2.findIndex)(c2, (function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToMany;
              })), h2 = (0, r2.findIndex)(f2, (function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToMany;
              })), l2 > -1 && l2 === h2 && c2[l2].name === f2[h2].name ? c2.slice(l2 + 1).every((function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToOne;
              })) && f2.slice(l2 + 1).every((function(t6) {
                return t6.relationshipMap === o2.RelationshipMap.OneToOne;
              })) : void 0))));
            }
            function _(t5, n5) {
              var e4 = O(t5, n5), i4 = w(n5);
              return e4.jOt(i4) || E(t5, (function(t6) {
                return t6.sourceTable === e4 && t6.sourceFieldName === i4 || t6.targetTable === e4 && t6.targetFieldName === i4;
              }));
            }
            function O(t5, n5) {
              return t5.qRt(n5);
            }
            function E(t5, n5) {
              return t5.QOt.relationships.find(n5);
            }
            function R(t5) {
              var n5 = t5.ascending, e4 = t5.compare;
              return e4 ? function(t6, i4) {
                return e4(t6.extra.caption, i4.extra.caption, n5);
              } : function(t6, e5) {
                var i4 = t6.extra.caption, r3 = e5.extra.caption, o3 = n5 ? i4 : r3, a2 = n5 ? r3 : i4;
                return o3 > a2 ? 1 : o3 < a2 ? -1 : 0;
              };
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.isValidCross = n4.isLookupRelationField = n4.isLookupListField = n4.isLookupField = n4.getLookupBy = n4.getFieldNamesFrom = n4.FieldManager = void 0, i3 = e3("CalcEngine"), r2 = e3("./dist/src/dataSource/utils.js"), o2 = e3("./dist/src/interfaces/interface.js"), a = e3("./dist/src/viewField/utils.js"), u = e3("./dist/src/viewField/fields.js"), s = e3("./dist/src/viewField/groupManager.js"), c = (function() {
              function t5(t6, n5) {
                this._id = 0, this.Pq = [], this.Z = {}, this.groupFieldKeys = [], this.sBt = t6, this.cBt = {}, this.nM = n5;
              }
              return t5.prototype.ade = function() {
                return this.nM.length();
              }, t5.prototype.fBt = function(t6, n5) {
                return this.nM._getValueByField(t6, n5);
              }, t5.prototype.lBt = function(t6, n5) {
                return this.nM.XRt(t6, n5);
              }, t5.prototype.hBt = function(t6) {
                return this.nM.iBt(t6);
              }, t5.prototype.dBt = function(t6) {
                return E(this.nM, t6);
              }, t5.prototype.vBt = function(t6) {
                return O(this.nM, t6);
              }, t5.prototype.mBt = function(t6) {
                return this.nM._dataSource._data[t6].data;
              }, t5.prototype.gBt = function(t6) {
                return !(0, r2.isNullOrUndefined)(this.nM._dataSource._data[t6]) && !this.nM._dataSource.X7t();
              }, t5.prototype.oBt = function(t6) {
                return this.nM.oBt(t6.split("."));
              }, t5.prototype.pBt = function() {
                return this.nM.POt;
              }, t5.prototype.bBt = function(t6) {
                return A(this.nM, t6);
              }, t5.prototype.yBt = function(t6) {
                return I(this.nM, t6);
              }, t5.prototype.wBt = function(t6) {
                return k(this.nM, t6);
              }, t5.prototype.MBt = function(t6) {
                return N(this.nM, t6);
              }, t5.prototype.getTable = function() {
                return this.nM;
              }, t5.prototype.getField = function(t6) {
                return this.Z[t6] || this.Pq.find((function(n5) {
                  return n5.key === t6;
                }));
              }, t5.prototype.getFieldByColumn = function(t6) {
                return this.getField(t6.Kyn);
              }, t5.prototype.getFieldByName = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this.Z[t6];
                if (!a2) {
                  for (r3 in i4 = this.Z) if (i4.hasOwnProperty(r3) && (o3 = i4[r3]) && ((null === (n5 = o3.column) || void 0 === n5 ? void 0 : n5.caption) === t6 || (null === (e4 = o3.extra) || void 0 === e4 ? void 0 : e4.caption) === t6)) {
                    a2 = o3;
                    break;
                  }
                }
                return a2;
              }, t5.prototype.getFields = function(t6) {
                return t6 ? this.Pq.filter(t6) : this.Pq;
              }, t5.prototype.xve = function(t6, n5, e4, i4, r3) {
                var o3 = this;
                l(o3, e4, i4, r3)(t6, o3.getFieldByColumn(n5).key);
              }, t5.prototype.getFieldValues = function(t6, n5, e4) {
                var i4, r3, o3, a2 = this, u2 = l(a2, t6, n5, e4), s2 = {};
                for (i4 = 0, r3 = a2.Pq; i4 < r3.length; i4++) u2(s2, (o3 = r3[i4]).key);
                return s2;
              }, t5.prototype.CBt = function(t6) {
                var n5, e4, i4, r3 = this, o3 = l(r3, t6), a2 = {};
                for (n5 = 0, e4 = r3.Pq; n5 < e4.length; n5++) (i4 = e4[n5]).isGroup && o3(a2, i4.key);
                return a2;
              }, t5.prototype.moveFields = function(t6, n5, e4) {
                (0, r2.swapArrayItems)(this.Pq, t6, n5, e4);
              }, t5.prototype.moveFieldsByIndexes = function(t6) {
                var n5 = this;
                t6.forEach((function(t7) {
                  t7.field = n5.Pq[t7.oldIndex];
                })), t6.forEach((function(t7) {
                  n5.Pq[t7.newIndex] = t7.field;
                }));
              }, t5.prototype.removeFields = function(t6, n5, e4) {
                var i4;
                e4 && e4({ fields: f([], this.Pq, true) });
              }, t5.prototype.rRe = function(t6) {
                var n5 = t6.fields;
                this.Pq = n5;
              }, t5.prototype.reset = function() {
                var t6 = this;
                t6.Pq = t6.Pq.filter((function(t7) {
                  return t7.isBasic;
                })), t6.Z = {}, t6.groupFieldKeys = [], t6.Pq.forEach((function(n5) {
                  t6.Z[n5.name] = n5, t6.Z[n5.key] = n5;
                }));
              }, t5.prototype.bMt = function(t6) {
                return this.cBt[t6] || this.u3e(t6);
              }, t5.prototype.u3e = function(t6, n5) {
                var e4 = this, i4 = e4.cBt, r3 = i4[t6], o3 = n5 || e4.pBt(), a2 = o3.getCalcService();
                return r3 || (r3 = i4[t6] = e4.fixExpression(a2.parse(o3, t6, 0, 0))), r3;
              }, t5.prototype.SBt = function(t6) {
                var n5 = this, e4 = n5.u3e(t6), i4 = n5.pBt(), r3 = i4.getCalcService();
                return function(t7, n6, o3, a2) {
                  var u2, s2;
                  return i4.pe(t7, n6, o3), (u2 = 4 === arguments.length) && i4.wEt("extendContext", a2), s2 = r3.evaluateExpression(i4, e4, { row: 0, col: 0 }), u2 && i4.wEt("extendContext"), s2;
                };
              }, t5.prototype.TBt = function(t6, n5) {
                var e4 = this, i4 = e4.u3e(t6, n5), o3 = n5 || e4.pBt(), a2 = o3.getCalcService();
                return function(t7, n6, e5, u2) {
                  var s2, c2;
                  return o3.pe(t7, n6, e5), (s2 = 4 === arguments.length) && o3.wEt("extendContext", u2), c2 = a2.MX.evaluateExpression(i4, o3.getEvaluatorContext({ row: 0, col: 0 }, false), false, true), s2 && o3.wEt("extendContext"), (0, r2.isNullOrUndefined)(c2.toArray) ? [] : c2.toArray();
                };
              }, t5.prototype.fixExpression = function(t6) {
                var n5, e4, r3, o3, a2, u2, s2 = this;
                if (t6.function) for (t6.function.isReverseArgs && t6.function.isReverseArgs() && t6.arguments.reverse(), n5 = 0, e4 = t6.arguments; n5 < e4.length; n5++) r3 = e4[n5], s2.fixExpression(r3);
                else for (o3 = 0, a2 = Object.getOwnPropertyNames(t6); o3 < a2.length; o3++) t6[u2 = a2[o3]] instanceof i3.Expression && s2.fixExpression(t6[u2]);
                return t6;
              }, t5.prototype.ABt = function(t6) {
                var n5 = this;
                return t6.key = n5._id++, n5.Pq.push(t6), n5.Z[t6.name] = t6, n5.Z[t6.key] = t6, t6;
              }, t5.prototype.removeField = function(t6) {
                var n5 = this, e4;
                return (0, r2.isString)(t6) && (e4 = n5.getFieldByName(t6)), (e4 instanceof u.ColumnDataField || e4 instanceof u.ColumnDataReaderField || e4 instanceof u.ExternalFormulaField) && (n5.Pq.splice(n5.Pq.indexOf(e4), 1), delete n5.Z[e4.name], delete n5.Z[e4.key], true);
              }, t5.prototype.addBaseField = function(t6, n5) {
                var e4 = this, i4 = b(t6), r3 = t6.value;
                t6.zTr ? e4.addExternalBaseField(i4, t6, n5) : e4.gBt(i4) ? e4.addDataBaseField(i4, e4.mBt(i4), t6) : e4.addReaderBaseField(i4, r3, t6);
              }, t5.prototype.renameBaseField = function(t6, n5) {
                var e4 = this, i4;
                return (0, r2.isString)(t6) && (i4 = e4.getFieldByName(t6)), (i4 instanceof u.ColumnDataField || i4 instanceof u.ColumnDataReaderField || i4 instanceof u.ExternalFormulaField) && (e4.Z[n5] = e4.Z[i4.name], delete e4.Z[i4.name], i4.name = n5, true);
              }, t5.prototype.$Ar = function() {
                var t6, n5, e4 = this, i4 = e4.Pq, r3 = false;
                for (t6 = 0; t6 < i4.length; t6++) (n5 = i4[t6]) instanceof u.ExternalFormulaField && (n5.nIr(), r3 = true);
                return r3;
              }, t5.prototype.addDataBaseField = function(t6, n5, e4) {
                var i4 = this, r3 = i4.addColumnDataField(t6, n5, e4);
                return e4.Kyn = r3.key, i4.EGe(r3);
              }, t5.prototype.addReaderBaseField = function(t6, n5, e4) {
                var i4 = this, r3 = i4.addColumnDataReaderField(t6, "function" == typeof n5 ? n5 : function(t7) {
                  return i4.fBt(n5, t7);
                }, e4, i4.ade.bind(i4));
                return e4.Kyn = r3.key, i4.EGe(r3);
              }, t5.prototype.addExternalBaseField = function(t6, n5, e4) {
                var i4 = this, r3 = i4.addExternalFormulaField(t6, n5, e4);
                return n5.Kyn = r3.key, i4.EGe(r3);
              }, t5.prototype.EGe = function(t6) {
                return t6.isBasic = true, t6;
              }, t5.prototype.addColumnDataField = function(t6, n5, e4) {
                return this.ABt(new u.ColumnDataField(t6, n5, e4));
              }, t5.prototype.addColumnDataReaderField = function(t6, n5, e4, i4) {
                return this.ABt(new u.ColumnDataReaderField(t6, n5, e4, i4));
              }, t5.prototype.addDataField = function(t6, n5) {
                return this.ABt(new u.DataField(t6, n5));
              }, t5.prototype.addFormulaField = function(t6, n5) {
                return this.ABt(this.xBt(t6, n5));
              }, t5.prototype.addExternalFormulaField = function(t6, n5, e4) {
                return this.ABt(new u.ExternalFormulaField(t6, n5, e4));
              }, t5.prototype.xBt = function(t6, n5) {
                return new u.FormulaField(t6, n5, this.SBt(n5));
              }, t5.prototype.addCategoryFormulaField = function(t6, n5, e4) {
                return this.ABt(this.NBt(t6, n5, e4));
              }, t5.prototype.NBt = function(t6, n5, e4) {
                return new u.CategoryFormulaField(t6, n5, this.SBt(n5), e4, e4 ? this.u3e(e4) : null);
              }, t5.prototype.addCategoryField = function(t6, n5) {
                return this.ABt(this.kBt(t6, n5));
              }, t5.prototype.kBt = function(t6, n5) {
                return new u.CategoryField(t6, n5);
              }, t5.prototype.addSliceCategoryField = function(t6) {
                return this.ABt(new u.SliceCategoryField(t6));
              }, t5.prototype.DBt = function(t6, n5, e4, i4, o3) {
                var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m2 = t6.fieldExtra, b2 = t6.field;
                for (h2 = 0, d2 = e4.length; h2 < d2; h2++) s2 = (c2 = e4[h2]).result, f2 = c2.key, (0, r2.isUndefined)(f2) && (v2 = c2.value, t6.field.addKey(v2, c2.recordRowNumbers[0]), p2 = t6.field.getMap(), f2 = c2.key = p2[v2]), l2 = t6.sliceFields[f2], (0, r2.isUndefined)(l2) && (u2 = b2.getValueByKey(f2), (l2 = g2.addSliceCategoryField((0, a.combineName)((0, r2.isNullOrEmpty)(u2) ? " " : u2, "s", n5.name))).isGroup = true, l2.setFieldExtra(m2), l2.setFieldManager(g2), t6.sliceFields[f2] = l2, t6.sliceKeys.push(l2.key)), l2.setData(s2, i4, o3);
              }, t5.prototype._Bt = function(t6, n5, e4, i4) {
                var o3 = this;
                return (0, a.isField)(t6) ? o3.getFieldByName(t6) : (0, r2.isFormula)(t6) ? o3.EBt((0, a.combineName)(t6, "".concat(i4, "_formula_source")), n5, t6, e4) : (0, r2.isRelation)(t6) ? new u.ColumnDataReaderField((0, a.combineName)(t6, "".concat(i4, "_related_source")), (function(n6) {
                  return o3.fBt(t6, n6);
                }), { value: t6 }, o3.ade.bind(o3)) : o3.getFieldByName(t6);
              }, t5.prototype.EBt = function(t6, n5, e4, i4) {
                var r3, o3 = this.xBt((0, a.combineName)(t6, n5), e4);
                return o3.evaluateFormulaBy(i4), o3;
              }, t5.prototype.ocr = function(t6) {
                var n5 = this, e4 = n5.bMt(t6), i4 = h(e4, true);
                return i4 && i4.length > 0 ? i4[0] : null;
              }, t5.prototype.buildGroupFields = function(t6, n5) {
                var e4 = this, i4, o3, u2 = [];
                return t6.forEach((function(t7, s2) {
                  if (!(0, r2.isNullOrEmpty)(t7.field)) {
                    o3 = (0, r2.isNullOrUndefined)(o3) ? i4 = {} : o3.group = {};
                    var c2 = (0, a.combineName)(t7.field, s2), f2 = e4._Bt(t7.field, c2, n5, "group_field"), l2 = e4.addCategoryField(c2, f2);
                    l2.setFieldExtra(t7), l2.setFieldManager(e4), l2.isGroup = true, u2.push(l2.key), o3.field = l2, "boolean" == typeof t7.ascending && (o3.sort = t7.ascending ? "asc" : "desc"), (0, r2.isNullOrUndefined)(t7.summaryFields) || t7.summaryFields.forEach((function(t8, i5) {
                      var s3, f3, l3, h2, d2, v2, p2, g2, m2;
                      (0, r2.isNullOrEmpty)(t8.formula) || (s3 = (0, a.combineName)(t8.formula, i5, c2), (f3 = e4.addCategoryFormulaField(s3, t8.formula, t8.filter)).setFieldExtra(t8), f3.setFieldManager(e4), (0, r2.isNullOrEmpty)(t8.position) || (f3.extra.position = t8.position), (0, r2.isNullOrEmpty)(t8.relateTo) ? (l3 = e4.ocr(t8.formula), (0, r2.isNullOrUndefined)(l3) || (f3.extra.relateTo = l3)) : f3.extra.relateTo = t8.relateTo, (0, r2.isNullOrUndefined)(o3.formulas) && (o3.formulas = []), h2 = o3.formulas.push(f3) - 1, f3.isGroup = true, u2.push(f3.key), (0, r2.isNullOrUndefined)(t8.slice) || (d2 = t8.slice, p2 = (v2 = (0, r2.isString)(d2)) ? d2 : d2.field, g2 = e4._Bt(p2, s3, n5, "slice"), (g2 = e4.kBt((0, a.combineName)(p2, "slice_category", s3), g2)).setFieldManager(e4), (0, r2.isNullOrUndefined)(o3.slices) && (o3.slices = []), m2 = e4.NBt((0, a.combineName)(p2, "slice_formula_result", s3), t8.formula), o3.slices.push({ field: g2, formula: m2, formulaIndex: h2, sliceKeys: [], fieldExtra: v2 ? {} : d2, sliceFields: {}, addSliceField: e4.DBt.bind(e4) })));
                    })), (0, r2.isNullOrUndefined)(t7.windowOrderedFunctions) || (o3.windowFunctionOptions = t7.windowOrderedFunctions.map((function(t8) {
                      return { orders: t8.orders, fields: t8.functions.map((function(t9) {
                        return e4.nM.XOt[t9.windowOverFormula];
                      })) };
                    })));
                  }
                })), e4.groupFieldKeys = u2, i4;
              }, t5.prototype.transposeSliceFields = function(t6) {
                var n5 = this, e4, i4;
                t6.slices && t6.slices.forEach((function(o3) {
                  var a2, u2 = t6.formulas[o3.formulaIndex];
                  e4 = n5.groupFieldKeys.indexOf(u2.key), i4 = o3.sliceKeys, (0, r2.isNullOrUndefined)(o3.fieldExtra.sort) || (i4 = i4.map((function(t7) {
                    return n5.getField(t7);
                  })).sort(R(o3.fieldExtra.sort)).map((function(t7) {
                    return t7.key;
                  }))), (a2 = n5.groupFieldKeys).splice.apply(a2, f([e4 + 1, 0], i4, false));
                })), t6.group && n5.transposeSliceFields(t6.group);
              }, t5.prototype.prepareFields = function(t6, n5) {
                var e4, i4, o3, a2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2 = this, S2 = [];
                for (e4 = 0, i4 = 0; e4 < t6.length; e4++, i4++) if (a2 = b(o3 = t6[e4]), s2 = o3.value, c2 = o3.cross) {
                  if (l2 = (f2 = C2.jBt(t6, e4)).crossColumnOptions, h2 = f2.endColIndex, d2 = l2.columns.length, 0 === (v2 = C2.OBt(l2))) continue;
                  for (p2 = C2.Pq.length - v2, g2 = function(n6, i5) {
                    var o4, a3, s3 = p2 + n6, c3 = e4 + i5, f3 = C2.Pq[s3];
                    f3.setFieldExtra(t6[c3]), f3.setFieldManager(C2), o4 = { value: f3.name, name: f3.name, Kyn: f3.key, isCross: true, RBt: c3 }, f3.isReadonly() && (o4.readonly = true), (a3 = f3.extra) && (0, u.setFieldExtraProperties)((function(t7) {
                      (0, r2.isNullOrUndefined)(a3[t7]) || (o4[t7] = a3[t7]);
                    })), S2.push(o4), n6++, ++i5 >= d2 && (i5 = 0), m2 = n6, y2 = i5;
                  }, w2 = 0, M2 = 0; w2 < v2; ) g2(w2, M2), w2 = m2, M2 = y2;
                  e4 = h2, i4 += v2 - 1;
                } else o3.zTr ? (C2.addExternalBaseField(a2, o3, n5), S2.push(t6[e4])) : C2.gBt(a2) ? (C2.addDataBaseField(a2, C2.mBt(a2), o3), S2.push(t6[e4])) : (C2.addReaderBaseField(a2, s2, o3), S2.push(t6[e4]));
                return x(S2), S2;
              }, t5.prototype.jBt = function(t6, n5) {
                var e4, i4, r3 = this, o3 = n5, a2 = t6[n5], u2 = a2.cross, s2 = r3.BBt(u2, [a2], o3);
                if ("string" == typeof u2) {
                  for (e4 = n5, i4 = n5; n5 < t6.length && !(++i4 < t6.length && u2 !== t6[i4].cross); ) n5++;
                  s2 = r3.BBt(u2, t6.slice(e4, i4), o3);
                }
                return { crossColumnOptions: s2, endColIndex: n5 };
              }, t5.prototype.BBt = function(t6, n5, e4) {
                var i4 = "string" == typeof t6 ? this.sBt.cross[t6] : t6;
                return { initialOptionIndex: e4, crossKeys: n5.map((function(t7) {
                  return t7.LBt;
                })), cross: i4, columns: n5, lookup: this.FBt(i4, n5) };
              }, t5.prototype.FBt = function(t6, n5) {
                var e4 = this;
                return n5.every((function(n6) {
                  return e4.isValidCross(t6, n6.value);
                })) && this.bBt(t6.over);
              }, t5.prototype.isValidCross = function(t6, n5) {
                return D(this.nM, t6, n5);
              }, t5.prototype.OBt = function(t6) {
                var n5 = this, e4 = t6.lookup, i4 = 0;
                return (0, r2.isArray)(e4) ? i4 = n5.PBt(t6) : ((0, r2.isString)(e4) || (0, r2.isObject)(e4)) && (i4 = n5.GBt(t6)), i4;
              }, t5.prototype.GBt = function(t6) {
                var n5, e4, i4, o3, u2, s2, c2, f2, l2, h2, d2, v2, m2, b2, y2, x2, A2, I2 = this, k2 = t6.cross, N2 = I2.sBt.showCrossValueHeader, j2 = T(k2.caption), D2 = 0, _2 = p(t6), O2 = k2.over, E2 = w(O2), R2 = O2, L = k2.attributes || [], F = L.length, B = S(L[0], true), P = I2.UBt(I2.vBt(R2), R2), G = P.relationTableName || C(L[0]), U = P.relationTable || I2.HBt(G), H = U.length(), V = P.relationPrimaryKey || I2.zBt(G, E2), z = k2.filter ? I2.TBt(g(k2.filter, B), U.POt) : null;
                for ((0, r2.isNullOrUndefined)(z) || (e4 = z(null)).length > 0 && (n5 = e4.reduce((function(t7, n6) {
                  var e5;
                  return t7["object" == typeof n6 ? n6[V] : n6] = true, t7;
                }), {})), i4 = [], o3 = 0; o3 < F; o3++) u2 = w(L[o3]), s2 = M(L[o3]), i4.push({ fieldName: u2, formatter: s2 });
                for (c2 = 0; c2 < H; c2++) if (f2 = U._getValueByField(V, c2), (0, r2.isNullOrUndefined)(n5) || n5[f2]) {
                  for (l2 = j2.slice(), o3 = 0; o3 < F; o3++) u2 = i4[o3].fieldName, h2 = U._getValueByField(u2, c2), s2 = i4[o3].formatter, (0, r2.isNullOrUndefined)(s2) || (h2 = (0, r2.format)(h2, s2)), l2.push(h2);
                  for (d2 = 0; d2 < _2.length; d2++) m2 = (v2 = _2[d2]).valueRelation, b2 = v2.valueCaption, y2 = v2.valueIndex, x2 = v2.valueCrossKey, A2 = N2 ? l2.concat(b2) : l2, I2.VBt({ path: A2, value: (0, a.combineName)(m2, f2, O2, x2), valueRelation: m2, dimRelationPath: R2, dimRelationKey: E2, dimTableName: G, dimTableKeyFieldValue: f2, initialOptionIndex: y2 }), D2++;
                }
                return D2;
              }, t5.prototype.PBt = function(t6) {
                var n5, e4, i4, r3, o3, u2, s2, c2, f2, l2, h2 = this, d2 = t6.cross, v2 = t6.lookup, g2 = h2.sBt.showCrossValueHeader, m2 = T(d2.caption), b2 = 0, y2 = p(t6), M2 = d2.over, C2 = w(M2), S2 = M2, x2 = v2.length;
                for (n5 = 0; n5 < x2; n5++) for (e4 = m2.slice(), i4 = v2[n5], e4.push(i4), r3 = 0; r3 < y2.length; r3++) u2 = (o3 = y2[r3]).valueRelation, s2 = o3.valueCaption, c2 = o3.valueIndex, f2 = o3.valueCrossKey, l2 = g2 ? e4.concat(s2) : e4, h2.VBt({ path: l2, value: (0, a.combineName)(u2, i4, M2, f2), valueRelation: u2, dimRelationPath: S2, dimRelationKey: C2, dimTableKeyFieldValue: i4, initialOptionIndex: c2 }), b2++;
                return b2;
              }, t5.prototype.setCrossFieldValues = function(t6) {
                var n5, e4, i4, r3, o3, a2 = this, s2 = a2.Pq, c2 = t6.length, f2 = s2.filter((function(t7) {
                  return t7 instanceof u.CrossField;
                }));
                if (f2.length > 0) for (n5 = 0; n5 < c2; n5++) for (e4 = t6[n5], i4 = {}, r3 = 0; r3 < f2.length; r3++) o3 = f2[r3], a2.YBt(o3, e4, i4);
              }, t5.prototype.YBt = function(t6, n5, e4) {
                var i4, o3 = this, a2 = t6.dimRelationPath, u2 = e4[a2];
                if ((0, r2.isNullOrUndefined)(u2) && t6.isOneToMany && (u2 = e4[a2] = o3.fBt(a2, n5)), (0, r2.isArray)(u2)) {
                  for (i4 = 0; i4 < u2.length; i4++) if (t6.ZBt(u2[i4], t6.dimTableKeyFieldValue) && (0, r2.isNullOrUndefined)(t6.getValueIndex(n5))) {
                    t6.setValueIndex(n5, i4);
                    break;
                  }
                }
              }, t5.prototype.zBt = function(t6, n5) {
                var e4 = this, i4 = e4.dBt((function(e5) {
                  return e5.sourceFieldName === n5 && e5.sourceRelationshipName === t6;
                }));
                return i4 ? i4.targetFieldName : (i4 = e4.dBt((function(e5) {
                  return e5.targetFieldName === n5 && e5.targetRelationshipName === t6;
                }))) ? i4.sourceFieldName : void 0;
              }, t5.prototype.HBt = function(t6) {
                var n5, e4 = this.dBt((function(n6) {
                  return n6.sourceRelationshipName === t6 || n6.targetRelationshipName === t6;
                })) || {}, i4 = e4.sourceRelationshipName === t6 ? e4.sourceField : e4.targetField;
                return i4 ? i4.targetTable : { length: function() {
                  return 0;
                } };
              }, t5.prototype.UBt = function(t6, n5) {
                return j(this.nM, t6, n5);
              }, t5.prototype.WBt = function(t6) {
                var n5 = this, e4 = new u.CrossField(t6, n5.fBt.bind(n5), n5.lBt.bind(n5), n5.hBt.bind(n5));
                return n5.ABt(e4), n5.EGe(e4), e4;
              }, t5.prototype.VBt = function(t6) {
                var n5, e4, i4, r3 = this, o3 = r3.WBt(t6);
                o3.isReadonly() || (e4 = (n5 = d(r3.oBt.bind(r3), o3)).isOneToMany, i4 = n5.relationTemplate, e4 && (o3.isOneToMany = e4, o3.valueArrayRelation = i4));
              }, t5.prototype.isCrossField = function(t6) {
                return t6 instanceof u.CrossField;
              }, t5.prototype.clearCrossFieldData = function() {
                var t6, n5, e4 = this, i4 = e4.Pq;
                for (t6 = 0; t6 < i4.length; t6++) (n5 = i4[t6]) instanceof u.CrossField && n5.clearData();
              }, t5.prototype.resetCrossFieldRowValues = function(t6) {
                var n5, e4, i4 = this, r3 = i4.Pq, o3 = {};
                for (n5 = 0; n5 < r3.length; n5++) (e4 = r3[n5]) instanceof u.CrossField && (e4.clearValue(t6), i4.YBt(e4, t6, o3));
              }, t5.prototype.removeCrossFieldValues = function(t6, n5, e4) {
                var i4, r3, o3 = this, a2 = o3.Pq;
                for (i4 = 0; i4 < a2.length; i4++) (r3 = a2[i4]) instanceof u.CrossField && r3.removeData(t6, n5, e4);
              }, t5.prototype.setCrossFieldInsertedIndex = function(t6, n5, e4) {
                var i4, o3, a2 = this, s2 = a2.Pq, c2 = S(t6.valueRelation, true);
                for (i4 = 0; i4 < s2.length; i4++) (o3 = s2[i4]) instanceof u.CrossField && o3.isOneToMany && t6.dimTableKeyFieldValue === o3.dimTableKeyFieldValue && (0, r2.isNullOrUndefined)(o3.getValueIndex(n5)) && c2 === S(o3.valueRelation, true) && o3.setValueIndex(n5, e4);
              }, t5;
            })(), n4.FieldManager = c, n4.getFieldNamesFrom = h, n4.getLookupBy = A, n4.isLookupField = I, n4.isLookupListField = k, n4.isLookupRelationField = N, n4.isValidCross = D;
          }, "./dist/src/viewField/fields.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c, f, l, h, d, v, p, g, m = this && this.qKr || (b = function(t5, n5) {
              return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n6) {
                t6.__proto__ = n6;
              } || function(t6, n6) {
                for (var e4 in n6) Object.prototype.hasOwnProperty.call(n6, e4) && (t6[e4] = n6[e4]);
              }, b(t5, n5);
            }, function(t5, n5) {
              if ("function" != typeof n5 && null !== n5) throw new TypeError("Class extends value " + String(n5) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              b(t5, n5), t5.prototype = null === n5 ? Object.create(n5) : (e4.prototype = n5.prototype, new e4());
            }), b;
            function y(t5) {
              ["caption", "width", "style", "headerStyle", "conditionalFormats", "validator", "headerFit", "allowSort", "allowFilterByValue", "allowFilterByList"].forEach(t5);
            }
            function w(t5, n5) {
              return t5._error || t5._code ? "Calc Error ".concat(n5, ":").concat(t5._error, ",").concat(t5._code) : t5;
            }
            function M(t5, n5, e4) {
              return (0, i3.isFunction)(t5.valueRelation) ? function(t6, r3) {
                return (0, i3.isFunction)(t6) ? t6(n5(r3)) : e4(t6, r3);
              } : e4;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.CrossField = n4.SliceCategoryField = n4.CategoryFormulaField = n4.CategoryField = n4.ExternalFormulaField = n4.FormulaField = n4.ColumnDataReaderField = n4.ColumnDataField = n4.DataField = n4.Field = n4.setFieldExtraProperties = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/viewField/utils.js"), o2 = null, a = void 0, n4.setFieldExtraProperties = y, u = (function() {
              function t5(t6) {
                this.name = t6;
                var n5 = t6.indexOf(r2.FieldNameDelimiter);
                n5 > -1 && (t6 = t6.slice(0, n5)), this.fieldValue = t6;
              }
              return t5.prototype.setFieldExtra = function(t6) {
                var n5, e4 = this;
                (0, i3.isUndefined)(e4.extra) && (e4.extra = {}), (0, i3.isNullOrUndefined)(t6) || (t6.field && (e4.fieldValue = t6.field), y((function(n6) {
                  e4.JBt(n6, t6);
                })), (0, i3.isNullOrUndefined)(t6.caption) && (n5 = e4.name.indexOf(r2.FieldNameDelimiter)) >= 0 && (e4.extra.caption = e4.name.substring(0, n5)), (0, i3.isNullOrUndefined)(t6.spacing) || (e4.extra.spacing = t6.spacing));
              }, t5.prototype.JBt = function(t6, n5) {
                var e4 = this, r3 = n5[t6];
                (0, i3.isNullOrUndefined)(r3) || (e4.extra[t6] = r3);
              }, t5.prototype.setFieldManager = function(t6) {
                this.fieldManager = t6;
              }, t5.prototype.getFieldManager = function() {
                return this.fieldManager;
              }, t5.prototype.getValue = function(t6, n5) {
                return this.data[t6];
              }, t5.prototype.getOriginalValue = function(t6) {
                return this.getValue(t6);
              }, t5.prototype.getLength = function() {
                return this.data.length;
              }, t5.prototype.setValues = function(t6) {
                this.data = t6;
              }, t5.prototype.XBt = function(t6, n5, e4, r3) {
                var o3, a2, u2, s2 = this;
                if (s2.data || (s2.data = []), e4 = (0, i3.isNumber)(e4) ? e4 : 0, r3 = (0, i3.isNumber)(r3) ? r3 : t6.length - 1, (0, i3.isArray)(n5)) for (a2 = 0, u2 = n5.length; e4 <= r3 && a2 < u2; a2++) o3 = t6[e4 = a2 + e4], s2.data[o3] = n5[a2];
                else for (a2 = e4; a2 <= r3; a2++) o3 = t6[a2], s2.data[o3] = n5;
                return s2.data;
              }, t5.prototype.qBt = function(t6, n5) {
                var e4, i4, r3, o3 = this;
                for (o3.data || (o3.data = []), i4 = 0, r3 = t6.length; i4 < r3; i4++) e4 = t6[i4], o3.data[e4] = n5(e4);
                return o3.data;
              }, t5;
            })(), n4.Field = u, s = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.data = e4 || [], i4;
              }
              return m(n5, t5), n5;
            })(u), n4.DataField = s, c = (function(t5) {
              function n5(n6, e4, i4) {
                var r3 = t5.call(this, n6, e4) || this;
                return r3.column = i4, r3;
              }
              return m(n5, t5), n5;
            })(s), n4.ColumnDataField = c, f = (function(t5) {
              function n5(n6, e4, i4, r3) {
                var o3 = t5.call(this, n6) || this;
                return o3.column = i4, o3.setFieldExtra(i4), o3.getValue = e4, o3.getLength = r3, o3;
              }
              return m(n5, t5), n5;
            })(u), n4.ColumnDataReaderField = f, l = (function(t5) {
              function n5(n6, e4, i4) {
                var r3 = t5.call(this, n6) || this;
                return r3.setFieldExtra({ value: e4 }), r3.formula = e4, r3.P6t = i4, r3;
              }
              return m(n5, t5), n5.prototype.evaluateFormulaBy = function(t6) {
                var n6 = this, e4 = n6.formula, i4 = n6.P6t;
                return n6.qBt(t6, (function(t7) {
                  return w(i4(t7), e4);
                }))[t6[0]];
              }, n5;
            })(s), n4.FormulaField = l, h = (function(t5) {
              function n5(n6, e4, i4) {
                var r3, o3 = this;
                return (o3 = t5.call(this, n6, e4.eIr || e4.value) || this).column = e4, o3.LEt = i4, o3.setFieldExtra(e4), o3.iIr = { row: 0, col: null !== (r3 = i4.col) && void 0 !== r3 ? r3 : 0 }, o3;
              }
              return m(n5, t5), n5.prototype.mir = function(t6) {
                var n6 = t6.formula, e4 = t6.expr, r3 = t6.col;
                n6 && (this.formula = n6, this.setFieldExtra({ value: n6 }), this.column.eIr = n6), e4 && (this.column.YEr = e4, this.WK && (this.WK = e4)), (0, i3.isNumber)(r3) && r3 !== this.iIr.col && (this.LEt.col = r3, this.iIr.col = r3, this.iIr.VEr = false), this.nIr();
              }, n5.prototype.rIr = function() {
                var t6, n6, e4, i4;
                try {
                  return t6 = this.POt = this.LEt.getCalcSource(), n6 = this.Lp = this.POt.getCalcService(), e4 = this.formula, i4 = this.LEt.getCalcOptions().keepUnknownFormulas, this.WK = this.column.YEr || n6.parse(t6, e4, -1, -1, false, true, false, i4), this.WK;
                } catch (t7) {
                  return this.WK = o2, this.WK;
                }
              }, n5.prototype.nIr = function() {
                this.data = [];
              }, n5.prototype.getValue = function(t6, n6) {
                var e4, r3, u2, s2, c2 = this.WK;
                if (c2 === a && (c2 = this.rIr()), c2 === o2) return o2;
                if (e4 = this.data[t6], !(0, i3.isUndefined)(e4)) return e4;
                try {
                  r3 = this.Lp, u2 = this.POt, (s2 = this.iIr).row = n6, e4 = r3.evaluateParsedFormula(u2, c2, s2, false, true);
                } catch (t7) {
                }
                return this.data[t6] = e4, e4;
              }, n5.prototype.hasValue = function(t6) {
                return this.data[t6] !== a;
              }, n5;
            })(l), n4.ExternalFormulaField = h, d = (function(t5) {
              function n5(n6, e4) {
                var i4 = t5.call(this, n6) || this;
                return i4.QBt = e4, i4.KBt = {}, i4.Oit = [], i4;
              }
              return m(n5, t5), n5.prototype.getKey = function(t6) {
                return this.KBt[t6];
              }, n5.prototype.getMap = function() {
                return this.KBt;
              }, n5.prototype.getValueByKey = function(t6) {
                return this.Oit[t6];
              }, n5.prototype.$Bt = function(t6, n6) {
                this.KBt[n6] = t6, this.Oit[t6] = n6;
              }, n5.prototype.getValue = function(t6) {
                var n6 = this;
                return n6.data && n6.data.length > 0 ? n6.Sl(t6) : n6.QBt ? n6.QBt.getValue(t6) : void 0;
              }, n5.prototype.Sl = function(t6) {
                var n6 = this;
                return n6.Oit[n6.data[t6]];
              }, n5.prototype.addKey = function(t6, n6) {
                var e4 = this, r3 = e4.getKey(t6);
                return (0, i3.isUndefined)(r3) && (r3 = n6, e4.$Bt(r3, t6)), r3;
              }, n5.prototype.getSourceField = function() {
                return this.QBt;
              }, n5;
            })(u), n4.CategoryField = d, v = (function(t5) {
              function n5(n6, e4, i4, r3, o3) {
                var a2 = t5.call(this, n6) || this;
                return a2.P6t = i4, a2.formula = e4, a2.filter = r3, a2.filterExpression = o3, a2;
              }
              return m(n5, t5), n5.prototype.evaluateFormulaBy = function(t6, n6, e4) {
                var r3, o3 = this, a2 = 0;
                return (0, i3.isNullOrUndefined)(e4) && (e4 = t6, a2 = n6 || 0), r3 = o3.P6t(e4, a2), o3.XBt(t6, o3.addKey(r3, t6[n6]), n6), r3;
              }, n5;
            })(d), n4.CategoryFormulaField = v, p = (function(t5) {
              function n5(n6) {
                return t5.call(this, n6) || this;
              }
              return m(n5, t5), n5.prototype.setData = function(t6, n6, e4) {
                var i4 = this, r3 = i4.addKey(t6, n6[e4]);
                i4.XBt(n6, r3, e4);
              }, n5;
            })(d), n4.SliceCategoryField = p, g = (function(t5) {
              function n5(n6, e4, i4, r3) {
                var o3 = t5.call(this, n6.value) || this;
                return o3.path = n6.path, o3.valueRelation = n6.valueRelation, o3.valueField = n6.valueRelation.indexOf(".") > -1 ? n6.valueRelation.split(".").pop() : n6.valueRelation, o3.dimRelationPath = n6.dimRelationPath, o3.dimRelationKey = n6.dimRelationKey, o3.dimTableName = n6.dimTableName, o3.isDateDimValue = n6.dimTableKeyFieldValue instanceof Date, o3.dimTableKeyFieldValue = o3.isDateDimValue ? n6.dimTableKeyFieldValue.getTime() : n6.dimTableKeyFieldValue, o3.initialOptionIndex = n6.initialOptionIndex, o3.getValueByField = M(n6, r3, e4), o3.getOriginalValueByField = M(n6, r3, i4), o3.data = [], o3;
              }
              return m(n5, t5), n5.prototype.setFieldExtra = function(n6) {
                t5.prototype.setFieldExtra.call(this, n6), this.extra.caption = this.path;
              }, n5.prototype.ZBt = function(t6, n6) {
                var e4, i4;
                return this.isDateDimValue && t6 instanceof Date ? t6.getTime() === n6 : t6 === n6;
              }, n5.prototype.tLt = function(t6, n6) {
                var e4 = this, i4 = e4.isOneToMany, r3 = e4.dimRelationPath, o3 = e4.dimTableKeyFieldValue;
                return !i4 && e4.ZBt(n6(r3, t6), o3) ? t6 : this.data[t6];
              }, n5.prototype.getDimValue = function() {
                var t6 = this, n6 = t6.isDateDimValue, e4 = t6.dimTableKeyFieldValue;
                return n6 ? new Date(e4) : e4;
              }, n5.prototype.getValueIndex = function(t6) {
                return this.tLt(t6, this.getValueByField);
              }, n5.prototype.setValueIndex = function(t6, n6) {
                this.data[t6] = n6;
              }, n5.prototype.clearData = function() {
                this.data = [];
              }, n5.prototype.clearValue = function(t6) {
                this.data[t6] = void 0;
              }, n5.prototype.removeData = function(t6, n6, e4) {
                var i4, r3, o3;
                if (e4 && e4.length > 0) for (i4 = 0, r3 = e4; i4 < r3.length; i4++) o3 = r3[i4], this.data.splice(o3, 1);
                else this.data.splice(t6, n6);
              }, n5.prototype.isReadonly = function() {
                return (0, i3.isFormula)(this.valueRelation) || (0, i3.isFunction)(this.valueRelation);
              }, n5.prototype.Sl = function(t6, n6) {
                var e4, o3 = this, a2 = o3.isOneToMany, u2 = o3.valueArrayRelation, s2 = o3.valueRelation, c2 = o3.tLt(t6, n6);
                if ((0, i3.isNumber)(c2)) return e4 = void 0, n6(e4 = a2 ? u2.replace(r2.RelationTemplateToken, c2 + 1) : s2, t6);
              }, n5.prototype.getValue = function(t6) {
                return this.Sl(t6, this.getValueByField);
              }, n5.prototype.getOriginalValue = function(t6) {
                return this.Sl(t6, this.getOriginalValueByField);
              }, n5.prototype.getRelationField = function(t6) {
                var n6 = this, e4 = n6.isOneToMany, o3 = n6.valueArrayRelation, a2 = n6.valueRelation, u2 = n6.getValueIndex(t6);
                return e4 ? (0, i3.isNumber)(u2) ? o3.replace(r2.RelationTemplateToken, u2 + 1) : void 0 : a2;
              }, n5;
            })(u), n4.CrossField = g;
          }, "./dist/src/viewField/groupManager.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s, c = this && this.nJr || function() {
              return c = Object.assign || function(t5) {
                var n5, e4, i4, r3;
                for (e4 = 1, i4 = arguments.length; e4 < i4; e4++) for (r3 in n5 = arguments[e4]) Object.prototype.hasOwnProperty.call(n5, r3) && (t5[r3] = n5[r3]);
                return t5;
              }, c.apply(this, arguments);
            };
            function f(t5, n5) {
              var e4, r3, o3, a2, u2;
              if ((0, i3.isNullOrUndefined)(t5) || (0, i3.isNullOrUndefined)(n5)) return t5 === n5;
              if (e4 = Object.keys(t5), r3 = Object.keys(n5), e4.length !== r3.length) return false;
              for (o3 = 0, a2 = e4; o3 < a2.length; o3++) if (t5[u2 = a2[o3]] !== n5[u2]) return false;
              return true;
            }
            function l(t5) {
              var n5, e4 = [], i4 = t5.split(r2.FieldNameDelimiter).reverse();
              for (n5 = 0; n5 < i4.length; n5 += 2) e4.push(i4[n5]);
              return e4;
            }
            function h(t5) {
              return 1 === l(t5).length;
            }
            function d(t5) {
              return 2 === l(t5).length;
            }
            function v(t5) {
              return 3 === l(t5).length;
            }
            function p(t5) {
              return 2 === t5.split(r2.FieldNameDelimiter).length;
            }
            function g(t5) {
              var n5 = t5.split(r2.FieldNameDelimiter);
              return n5[n5.length - 2];
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.GroupManager = n4.getGroupFieldName = n4.isGroupField = n4.isGroupSlice = n4.isGroupSummary = n4.isGroupCategory = n4.getGroupOptionIndexesFrom = void 0, i3 = e3("./dist/src/dataSource/utils.js"), r2 = e3("./dist/src/viewField/utils.js"), o2 = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-group-helper.js"), a = e3("./dist/src/data-manager-report/data-manager-proxy/data-manager-proxy.js"), u = e3("./dist/src/data-manager-report/tree-data-generator/helpers/data-manager-report-sort-helper.js"), n4.getGroupOptionIndexesFrom = l, n4.isGroupCategory = h, n4.isGroupSummary = d, n4.isGroupSlice = v, n4.isGroupField = p, n4.getGroupFieldName = g, s = (function() {
              function t5(t6, n5, e4, i4, r3) {
                this.LEt = t6, this.wEt = n5, this.wwn = i4 || function() {
                }, this.s3e = r3 || function() {
                  return [];
                };
                var s2 = this.QAe = new a.DataManagerProxy(e4);
                this.Cle = new o2.DataManagerReportGroupHelper(s2, void 0, void 0, new u.DataManagerReportSortHelper(s2));
              }
              return t5.prototype.dl = function() {
                this.QAe.clearTableDataCache();
              }, t5.prototype.isGrouped = function(t6) {
                return f(t6, this.LEt);
              }, t5.prototype.groupBy = function(t6, n5) {
                var e4 = this, i4 = e4.Sle(t6), r3 = this.Cle.generateCellNodeTreeData(i4, void 0, void 0, n5, void 0, void 0, { ignoreMultipleTableJoinCache: true }), o3 = { childrenArray: [r3] };
                return { rootNode: o3, indexMap: e4.eLt(n5, (function() {
                  return e4.iLt(t6, o3);
                })) };
              }, t5.prototype.Sle = function(t6) {
                var n5, e4 = this, i4 = t6.field.getSourceField() || t6.field, r3 = i4.fieldValue;
                return { templateCell: { sorts: t6.sort ? [(n5 = {}, n5[t6.sort] = r3, n5)] : void 0, dataColumn: { tableName: t6.field.fieldManager.getTable().name, columnName: r3 } }, data: { groups: [] }, field: t6.field, group: t6.group, children: t6.group ? [this.Sle(t6.group)] : [], slices: t6.slices && t6.slices.length ? t6.slices.map((function(t7) {
                  return e4.Tle(t7);
                })) : null, formulas: t6.formulas };
              }, t5.prototype.Tle = function(t6) {
                var n5 = c({}, t6), e4 = n5.field.getSourceField() || n5.field, i4 = e4.fieldValue;
                return n5.templateCell = { dataColumn: { tableName: t6.field.fieldManager.getTable().name, columnName: i4 } }, n5.children = [], n5.data = { groups: [] }, n5;
              }, t5.prototype.eLt = function(t6, n5) {
                var e4, i4 = this, r3 = i4.LEt;
                return i4.DJ = { path: [], groupOptions: r3, entireScope: t6 }, i4.wEt("groupContext", i4.DJ), e4 = n5(), i4.DJ = null, i4.wEt("groupContext"), e4;
              }, t5.prototype.iLt = function(t6, n5) {
                var e4, i4, r3, o3 = this, a2 = n5.childrenArray && n5.childrenArray[0], u2 = [];
                for (e4 = 0, i4 = a2; e4 < i4.length; e4++) r3 = i4[e4], o3.aLt(r3, t6, u2);
                return u2;
              }, t5.prototype.aLt = function(t6, n5, e4) {
                var i4, r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = this, m = e4.length, b = t6.recordRowNumbers;
                if (g2.uLt(t6), t6.childrenArray && t6.childrenArray[0] && 0 !== t6.childrenArray[0].length) {
                  for (a2 = 0, u2 = o3 = t6.childrenArray[0]; a2 < u2.length; a2++) s2 = u2[a2], g2.aLt(s2, n5.group, e4);
                  g2.acr(t6, g2.sLt(n5.formulas, e4, m)), g2.ude(n5.windowFunctionOptions, e4, m);
                } else {
                  for (i4 = 0, r3 = b.length; i4 < r3; i4++) e4[m + i4] = b[i4];
                  t6.key = n5.field.addKey(t6.value, e4[m]), g2.acr(t6, g2.sLt(n5.formulas, e4, m)), g2.ude(n5.windowFunctionOptions, e4, m);
                }
                if (t6.slices) for (i4 = 0, f2 = (c2 = t6.slices).length; i4 < f2; i4++) {
                  for (l2 = c2[i4], d2 = (h2 = n5.slices[i4]).formula, v2 = 0, p2 = o3 = l2.childrenArray && l2.childrenArray[0]; v2 < p2.length; v2++) (s2 = p2[v2]).result = g2.cLt(d2, s2.recordRowNumbers);
                  h2.addSliceField(h2, n5.formulas[h2.formulaIndex], o3, e4, m);
                }
                g2.fLt();
              }, t5.prototype.acr = function(t6, n5) {
                n5 && (t6.summaryResults = n5);
              }, t5.prototype.c3e = function(t6, n5, e4) {
                var r3 = t6.filter;
                if (!(0, i3.isNullOrEmpty)(r3)) return this.s3e(t6.filterExpression, n5, e4);
              }, t5.prototype.f3e = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2, f2 = [];
                for (a2 = 0, u2 = t6.length; a2 < u2; a2++) c2 = (s2 = t6[a2]).filter, (0, i3.isNullOrEmpty)(c2) || (r3 !== c2 ? (r3 = c2, o3 = f2[a2] = this.s3e(s2.filterExpression, n5, e4)) : f2[a2] = o3);
                return f2;
              }, t5.prototype.sLt = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2;
                if (t6) for (a2 = {}, u2 = this.f3e(t6, n5, e4), s2 = 0, c2 = t6.length; s2 < c2; s2++) l2 = (f2 = t6[s2]).extra && f2.extra.position, h2 = f2.formula, d2 = f2.extra && f2.extra.relateTo, a2[h2] ? (v2 = a2[h2][l2], (0, i3.isNullOrUndefined)(v2) && (a2[h2][l2] = v2 = {}), (0, i3.isNullOrUndefined)(v2[d2]) && (v2[d2] = f2.extra), f2.XBt(n5, f2.addKey(a2[h2].value, n5[e4]), e4)) : (p2 = f2.evaluateFormulaBy(n5, e4, u2[s2]), a2[h2] = ((r3 = { value: p2 })[l2] = ((o3 = {})[d2] = f2.extra, o3), r3));
                return a2;
              }, t5.prototype.cLt = function(t6, n5) {
                if (t6) {
                  var e4 = this.c3e(t6, n5);
                  return t6.evaluateFormulaBy(n5, void 0, e4);
                }
              }, t5.prototype.ude = function(t6, n5, e4) {
                var r3, o3, a2, u2, s2, c2, f2, l2, h2;
                if (t6) for (r3 = this, o3 = 0, a2 = t6.length; o3 < a2; o3++) for (s2 = (u2 = t6[o3]).orders, c2 = u2.fields, (0, i3.isArray)(s2) && s2.length > 0 && r3.wwn(n5, s2, e4), f2 = 0, l2 = c2.length; f2 < l2; f2++) (h2 = c2[f2]).evaluateWindowFunction(n5, e4);
              }, t5.prototype.uLt = function(t6) {
                this.DJ.path.push(t6);
              }, t5.prototype.fLt = function() {
                this.DJ.path.pop();
              }, t5;
            })(), n4.GroupManager = s;
          }, "./dist/src/viewField/utils.js": function(t4, n4) {
            "use strict";
            function e3() {
              var t5, e4 = [];
              for (t5 = 0; t5 < arguments.length; t5++) e4[t5] = arguments[t5];
              return e4.join(n4.FieldNameDelimiter);
            }
            function i3(t5) {
              return t5.indexOf(n4.FieldNameDelimiter) > -1;
            }
            Object.defineProperty(n4, "__esModule", { value: true }), n4.isField = n4.combineName = n4.RelationTemplateToken = n4.CaptionDelimiter = n4.FieldNameDelimiter = void 0, n4.FieldNameDelimiter = "__", n4.CaptionDelimiter = "\\", n4.RelationTemplateToken = "{{}}", n4.combineName = e3, n4.isField = i3;
          }, "./dist/src/viewField/viewField.entry.js": function(t4, n4, e3) {
            "use strict";
            var i3 = this && this.JKr || (Object.create ? function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n5, e4);
              r3 && !("get" in r3 ? !n5.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n5[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n5, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n5[e4];
            }), r2 = this && this.XKr || function(t5, n5) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n5, e4) || i3(n5, t5, e4);
            };
            Object.defineProperty(n4, "__esModule", { value: true }), r2(e3("./dist/src/viewField/groupManager.js"), n4), r2(e3("./dist/src/viewField/fieldManager.js"), n4), r2(e3("./dist/src/viewField/fields.js"), n4), r2(e3("./dist/src/viewField/utils.js"), n4);
          }, "./node_modules/fetch-jsonp/build/fetch-jsonp.js": function(t4, n4) {
            var e3, i3, r2;
            !(function(o2, a) {
              var u;
              i3 = [n4, t4], void 0 === (r2 = "function" == typeof (e3 = a) ? e3.apply(n4, i3) : e3) || (t4.exports = r2);
            })(this, (function(t5, n5) {
              "use strict";
              var e4 = 5e3, i4 = "callback", r3 = null;
              function o2() {
                return "jsonp_" + Date.now() + "_" + Math.ceil(1e5 * Math.random());
              }
              function a(t6) {
                try {
                  delete window[t6];
                } catch (n6) {
                  window[t6] = void 0;
                }
              }
              function u(t6) {
                var n6 = document.getElementById(t6);
                n6 && document.getElementsByTagName("head")[0].removeChild(n6);
              }
              function s(t6) {
                var n6 = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1], r4 = t6, s2 = n6.timeout || e4, c = n6.jsonpCallback || i4, f = void 0;
                return new Promise((function(e5, i5) {
                  var l, h = n6.jsonpCallbackFunction || o2(), d = c + "_" + h;
                  window[h] = function(t7) {
                    e5({ ok: true, json: function n7() {
                      return Promise.resolve(t7);
                    } }), f && clearTimeout(f), u(d), a(h);
                  }, r4 += -1 === r4.indexOf("?") ? "?" : "&", (l = document.createElement("script")).setAttribute("src", "" + r4 + c + "=" + h), n6.charset && l.setAttribute("charset", n6.charset), l.id = d, document.getElementsByTagName("head")[0].appendChild(l), f = setTimeout((function() {
                    i5(new Error("JSONP request to " + t6 + " timed out")), a(h), u(d), window[h] = function() {
                      a(h);
                    };
                  }), s2), l.onerror = function() {
                    i5(new Error("JSONP request to " + t6 + " failed")), a(h), u(d), f && clearTimeout(f);
                  };
                }));
              }
              n5.exports = s;
            }));
          }, "./node_modules/whatwg-fetch/fetch.js": function(t4, n4, e3) {
            "use strict";
            var i3, r2, o2, a, u, s;
            function c(t5) {
              return t5 && DataView.prototype.isPrototypeOf(t5);
            }
            function f(t5) {
              if ("string" != typeof t5 && (t5 = String(t5)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t5)) throw new TypeError("Invalid character in header field name");
              return t5.toLowerCase();
            }
            function l(t5) {
              return "string" != typeof t5 && (t5 = String(t5)), t5;
            }
            function h(t5) {
              var n5 = { next: function() {
                var n6 = t5.shift();
                return { done: void 0 === n6, value: n6 };
              } };
              return i3.iterable && (n5[Symbol.iterator] = function() {
                return n5;
              }), n5;
            }
            function d(t5) {
              this.map = {}, t5 instanceof d ? t5.forEach((function(t6, n5) {
                this.append(n5, t6);
              }), this) : Array.isArray(t5) ? t5.forEach((function(t6) {
                this.append(t6[0], t6[1]);
              }), this) : t5 && Object.getOwnPropertyNames(t5).forEach((function(n5) {
                this.append(n5, t5[n5]);
              }), this);
            }
            function v(t5) {
              if (t5.bodyUsed) return Promise.reject(new TypeError("Already read"));
              t5.bodyUsed = true;
            }
            function p(t5) {
              return new Promise((function(n5, e4) {
                t5.onload = function() {
                  n5(t5.result);
                }, t5.onerror = function() {
                  e4(t5.error);
                };
              }));
            }
            function g(t5) {
              var n5 = new FileReader(), e4 = p(n5);
              return n5.readAsArrayBuffer(t5), e4;
            }
            function m(t5) {
              var n5 = new FileReader(), e4 = p(n5);
              return n5.readAsText(t5), e4;
            }
            function b(t5) {
              var n5, e4 = new Uint8Array(t5), i4 = new Array(e4.length);
              for (n5 = 0; n5 < e4.length; n5++) i4[n5] = String.fromCharCode(e4[n5]);
              return i4.join("");
            }
            function y(t5) {
              if (t5.slice) return t5.slice(0);
              var n5 = new Uint8Array(t5.byteLength);
              return n5.set(new Uint8Array(t5)), n5.buffer;
            }
            function w() {
              return this.bodyUsed = false, this.HPt = function(t5) {
                this.zPt = t5, t5 ? "string" == typeof t5 ? this.VPt = t5 : i3.blob && Blob.prototype.isPrototypeOf(t5) ? this.YPt = t5 : i3.formData && FormData.prototype.isPrototypeOf(t5) ? this.ZPt = t5 : i3.searchParams && URLSearchParams.prototype.isPrototypeOf(t5) ? this.VPt = t5.toString() : i3.arrayBuffer && i3.blob && c(t5) ? (this.WPt = y(t5.buffer), this.zPt = new Blob([this.WPt])) : i3.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(t5) || o2(t5)) ? this.WPt = y(t5) : this.VPt = t5 = Object.prototype.toString.call(t5) : this.VPt = "", this.headers.get("content-type") || ("string" == typeof t5 ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this.YPt && this.YPt.type ? this.headers.set("content-type", this.YPt.type) : i3.searchParams && URLSearchParams.prototype.isPrototypeOf(t5) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
              }, i3.blob && (this.blob = function() {
                var t5 = v(this);
                if (t5) return t5;
                if (this.YPt) return Promise.resolve(this.YPt);
                if (this.WPt) return Promise.resolve(new Blob([this.WPt]));
                if (this.ZPt) throw new Error("could not read FormData body as blob");
                return Promise.resolve(new Blob([this.VPt]));
              }, this.arrayBuffer = function() {
                return this.WPt ? v(this) || Promise.resolve(this.WPt) : this.blob().then(g);
              }), this.text = function() {
                var t5 = v(this);
                if (t5) return t5;
                if (this.YPt) return m(this.YPt);
                if (this.WPt) return Promise.resolve(b(this.WPt));
                if (this.ZPt) throw new Error("could not read FormData body as text");
                return Promise.resolve(this.VPt);
              }, i3.formData && (this.formData = function() {
                return this.text().then(S);
              }), this.json = function() {
                return this.text().then(JSON.parse);
              }, this;
            }
            function M(t5) {
              var n5 = t5.toUpperCase();
              return a.indexOf(n5) > -1 ? n5 : t5;
            }
            function C(t5, n5) {
              var e4 = (n5 = n5 || {}).body;
              if (t5 instanceof C) {
                if (t5.bodyUsed) throw new TypeError("Already read");
                this.url = t5.url, this.credentials = t5.credentials, n5.headers || (this.headers = new d(t5.headers)), this.method = t5.method, this.mode = t5.mode, this.signal = t5.signal, e4 || null == t5.zPt || (e4 = t5.zPt, t5.bodyUsed = true);
              } else this.url = String(t5);
              if (this.credentials = n5.credentials || this.credentials || "same-origin", !n5.headers && this.headers || (this.headers = new d(n5.headers)), this.method = M(n5.method || this.method || "GET"), this.mode = n5.mode || this.mode || null, this.signal = n5.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && e4) throw new TypeError("Body not allowed for GET or HEAD requests");
              this.HPt(e4);
            }
            function S(t5) {
              var n5 = new FormData();
              return t5.trim().split("&").forEach((function(t6) {
                var e4, i4, r3;
                t6 && (i4 = (e4 = t6.split("=")).shift().replace(/\+/g, " "), r3 = e4.join("=").replace(/\+/g, " "), n5.append(decodeURIComponent(i4), decodeURIComponent(r3)));
              })), n5;
            }
            function T(t5) {
              var n5 = new d(), e4 = t5.replace(/\r?\n[\t ]+/g, " ");
              return e4.split(/\r?\n/).forEach((function(t6) {
                var e5, i4 = t6.split(":"), r3 = i4.shift().trim();
                r3 && (e5 = i4.join(":").trim(), n5.append(r3, e5));
              })), n5;
            }
            function x(t5, n5) {
              n5 || (n5 = {}), this.type = "default", this.status = void 0 === n5.status ? 200 : n5.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in n5 ? n5.statusText : "OK", this.headers = new d(n5.headers), this.url = n5.url || "", this.HPt(t5);
            }
            e3.r(n4), e3.d(n4, { DOMException: function() {
              return s;
            }, Headers: function() {
              return d;
            }, Request: function() {
              return C;
            }, Response: function() {
              return x;
            }, fetch: function() {
              return A;
            } }), (i3 = { searchParams: "URLSearchParams" in self, iterable: "Symbol" in self && "iterator" in Symbol, blob: "FileReader" in self && "Blob" in self && (function() {
              try {
                return new Blob(), true;
              } catch (t5) {
                return false;
              }
            })(), formData: "FormData" in self, arrayBuffer: "ArrayBuffer" in self }).arrayBuffer && (r2 = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], o2 = ArrayBuffer.isView || function(t5) {
              return t5 && r2.indexOf(Object.prototype.toString.call(t5)) > -1;
            }), d.prototype.append = function(t5, n5) {
              t5 = f(t5), n5 = l(n5);
              var e4 = this.map[t5];
              this.map[t5] = e4 ? e4 + ", " + n5 : n5;
            }, d.prototype.delete = function(t5) {
              delete this.map[f(t5)];
            }, d.prototype.get = function(t5) {
              return t5 = f(t5), this.has(t5) ? this.map[t5] : null;
            }, d.prototype.has = function(t5) {
              return this.map.hasOwnProperty(f(t5));
            }, d.prototype.set = function(t5, n5) {
              this.map[f(t5)] = l(n5);
            }, d.prototype.forEach = function(t5, n5) {
              for (var e4 in this.map) this.map.hasOwnProperty(e4) && t5.call(n5, this.map[e4], e4, this);
            }, d.prototype.keys = function() {
              var t5 = [];
              return this.forEach((function(n5, e4) {
                t5.push(e4);
              })), h(t5);
            }, d.prototype.values = function() {
              var t5 = [];
              return this.forEach((function(n5) {
                t5.push(n5);
              })), h(t5);
            }, d.prototype.entries = function() {
              var t5 = [];
              return this.forEach((function(n5, e4) {
                t5.push([e4, n5]);
              })), h(t5);
            }, i3.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries), a = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"], C.prototype.clone = function() {
              return new C(this, { body: this.zPt });
            }, w.call(C.prototype), w.call(x.prototype), x.prototype.clone = function() {
              return new x(this.zPt, { status: this.status, statusText: this.statusText, headers: new d(this.headers), url: this.url });
            }, x.error = function() {
              var t5 = new x(null, { status: 0, statusText: "" });
              return t5.type = "error", t5;
            }, u = [301, 302, 303, 307, 308], x.redirect = function(t5, n5) {
              if (-1 === u.indexOf(n5)) throw new RangeError("Invalid status code");
              return new x(null, { status: n5, headers: { location: t5 } });
            }, s = self.DOMException;
            try {
              new s();
            } catch (t5) {
              (s = function(t6, n5) {
                this.message = t6, this.name = n5;
                var e4 = Error(t6);
                this.stack = e4.stack;
              }).prototype = Object.create(Error.prototype), s.prototype.constructor = s;
            }
            function A(t5, n5) {
              return new Promise((function(e4, r3) {
                var o3, a2 = new C(t5, n5);
                if (a2.signal && a2.signal.aborted) return r3(new s("Aborted", "AbortError"));
                function u2() {
                  o3.abort();
                }
                (o3 = new XMLHttpRequest()).onload = function() {
                  var t6, n6 = { status: o3.status, statusText: o3.statusText, headers: T(o3.getAllResponseHeaders() || "") };
                  n6.url = "responseURL" in o3 ? o3.responseURL : n6.headers.get("X-Request-URL"), t6 = "response" in o3 ? o3.response : o3.responseText, e4(new x(t6, n6));
                }, o3.onerror = function() {
                  r3(new TypeError("Network request failed"));
                }, o3.ontimeout = function() {
                  r3(new TypeError("Network request failed"));
                }, o3.onabort = function() {
                  r3(new s("Aborted", "AbortError"));
                }, o3.open(a2.method, a2.url, true), "include" === a2.credentials ? o3.withCredentials = true : "omit" === a2.credentials && (o3.withCredentials = false), "responseType" in o3 && i3.blob && (o3.responseType = "blob"), a2.headers.forEach((function(t6, n6) {
                  o3.setRequestHeader(n6, t6);
                })), a2.signal && (a2.signal.addEventListener("abort", u2), o3.onreadystatechange = function() {
                  4 === o3.readyState && a2.signal.removeEventListener("abort", u2);
                }), o3.send(void 0 === a2.zPt ? null : a2.zPt);
              }));
            }
            A.polyfill = true, self.fetch || (self.fetch = A, self.Headers = d, self.Request = C, self.Response = x);
          }, CalcEngine: function(t4) {
            "use strict";
            t4.exports = e2("CalcEngine");
          }, Common: function(t4) {
            "use strict";
            t4.exports = e2("Common");
          } }, r = {};
          function o(t4) {
            var e3, i3 = r[t4];
            return void 0 !== i3 ? i3.exports : (e3 = r[t4] = { exports: {} }, n3[t4].call(e3.exports, e3, e3.exports, o), e3.exports);
          }
          o.d = function(t4, n4) {
            for (var e3 in n4) o.o(n4, e3) && !o.o(t4, e3) && Object.defineProperty(t4, e3, { enumerable: true, get: n4[e3] });
          }, o.o = function(t4, n4) {
            return Object.prototype.hasOwnProperty.call(t4, n4);
          }, o.r = function(t4) {
            "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t4, "__esModule", { value: true });
          }, t3 = o("./dist/src/dataManager.entry.js"), (i2 = void 0 === i2 ? {} : i2).Data = t3;
        })(), t2.exports = i2.Data;
      }, "./node_modules_local/@spreadjs/js-data-manager/index.js": function(t2, n2, e2) {
        t2.exports = e2("./node_modules_local/@spreadjs/js-data-manager/dist/gc.data.js");
      }, "./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js": function(t2) {
        var n2;
        !(function() {
          "use strict";
          var t3, e2 = { "./src/common/common.entry.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d = this && this.JKr || (Object.create ? function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n4, e4);
              r3 && !("get" in r3 ? !n4.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n4[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n4[e4];
            }), v = this && this.XKr || function(t5, n4) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n4, e4) || d(n4, t5, e4);
            };
            Object.defineProperty(n3, "__esModule", { value: true }), n3.B3 = n3.rbush = n3.CultureManager = n3.CultureInfo = n3.zf = n3.$T = n3.st = n3.ct = n3.Uf = n3.lt = n3.ft = void 0, i3 = e3("./src/common/util/colorhelper.ts"), Object.defineProperty(n3, "ft", { enumerable: true, get: function() {
              return i3.ft;
            } }), r2 = e3("./src/common/util/types.ts"), Object.defineProperty(n3, "lt", { enumerable: true, get: function() {
              return r2.lt;
            } }), o = e3("./src/common/util/arrayhelper.ts"), Object.defineProperty(n3, "Uf", { enumerable: true, get: function() {
              return o.Uf;
            } }), a = e3("./src/common/util/datetimehelper.ts"), Object.defineProperty(n3, "ct", { enumerable: true, get: function() {
              return a.ct;
            } }), Object.defineProperty(n3, "B3", { enumerable: true, get: function() {
              return a.getSR;
            } }), u = e3("./src/common/util/numberhelper.ts"), Object.defineProperty(n3, "st", { enumerable: true, get: function() {
              return u.st;
            } }), s = e3("./src/common/util/regexhelper.ts"), Object.defineProperty(n3, "$T", { enumerable: true, get: function() {
              return s.$T;
            } }), c = e3("./src/common/util/stringhelper.ts"), Object.defineProperty(n3, "zf", { enumerable: true, get: function() {
              return c.zf;
            } }), f = e3("./src/common/util/rbush.ts"), Object.defineProperty(n3, "rbush", { enumerable: true, get: function() {
              return f.rbush;
            } }), l = e3("./src/common/util/common.ts"), Object.defineProperty(n3, "HandleExcelSpecialDate", { set: function(t5) {
              l.HandleExcelSpecialDate = t5;
            }, get: function() {
              return l.HandleExcelSpecialDate;
            } }), v(e3("./src/common/util/common.ts"), n3), h = e3("./src/common/culture/cultureInfo.ts"), Object.defineProperty(n3, "CultureInfo", { enumerable: true, get: function() {
              return h.CultureInfo;
            } }), Object.defineProperty(n3, "CultureManager", { enumerable: true, get: function() {
              return h.CultureManager;
            } }), v(e3("./src/common/util/functionhelper.ts"), n3);
          }, "./src/common/culture/cultureInfo.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j = this && this.qKr || (D = function(t5, n4) {
              return D = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n5) {
                t6.__proto__ = n5;
              } || function(t6, n5) {
                for (var e4 in n5) Object.prototype.hasOwnProperty.call(n5, e4) && (t6[e4] = n5[e4]);
              }, D(t5, n4);
            }, function(t5, n4) {
              if ("function" != typeof n4 && null !== n4) throw new TypeError("Class extends value " + String(n4) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              D(t5, n4), t5.prototype = null === n4 ? Object.create(n4) : (e4.prototype = n4.prototype, new e4());
            }), D;
            function _(t5) {
              return t5.split(" ").join(" ").toUpperCase();
            }
            function O(t5) {
              var n4, e4, i4 = [];
              for (n4 = 0, e4 = t5.length; n4 < e4; n4++) i4[n4] = _(t5[n4]);
              return i4;
            }
            function E(t5, n4, e4) {
              var i4 = _(t5), r3 = n4.indexOf(i4);
              return -1 === r3 && (r3 = e4.indexOf(i4)), r3;
            }
            function R(t5) {
              if (t5) {
                var n4 = t5.charCodeAt(0);
                if (n4 >= 11904 && n4 < 12032 || n4 >= 8208 && n4 < 8252 || n4 >= 12288 && n4 < 40960 || n4 >= 43360 && n4 < 43392 || n4 >= 44032 && n4 < 55215 || n4 >= 63744 && n4 < 64256 || n4 >= 65280 && n4 < 65535) return true;
              }
              return false;
            }
            function L(t5, n4, e4) {
              if (" " === t5 || e4 && "　" === t5) return 0;
              var i4 = e4 && e4(t5);
              return n4.lineBreakingForbidStart && -1 !== n4.lineBreakingForbidStart.indexOf(t5) ? !e4 || i4 ? 7 : 6 : n4.lineBreakingForbidEnd && -1 !== n4.lineBreakingForbidEnd.indexOf(t5) ? !e4 || i4 ? 5 : 4 : i4 ? 2 : n4.lineBreakingChar && -1 !== n4.lineBreakingChar.indexOf(t5) ? 3 : 1;
            }
            function F(t5, n4, e4) {
              var i4, r3, o2, a2, u2, c2;
              if (!t5) return [];
              for (i4 = [t5[0]], r3 = 0, o2 = L(t5[0], n4, e4), a2 = 1; a2 < t5.length; a2++) u2 = L(t5[a2], n4, e4), b[c2 = o2 + "" + u2] && i4[++r3] === s && (i4[r3] = ""), i4[r3] += t5[a2], o2 = u2;
              return i4;
            }
            function B(t5, n4, e4) {
              var i4, r3, o2, a2 = this;
              for (r3 = 0, o2 = n4.length; r3 < o2; r3++) i4 = n4[r3], a2[t5][i4] = e4[r3];
            }
            function P(t5, n4) {
              var e4;
              "object" == typeof document && ("function" != typeof CustomEvent ? (e4 = document.createEvent("CustomEvent")).initCustomEvent("cultureChanged", false, false, void 0) : e4 = new CustomEvent("cultureChanged", {}), e4.cultureInfo = t5, u.gcCultureInfo = t5, u.gcCultureObj = n4, document.dispatchEvent(e4));
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.CultureManager = n3.XPt = n3.CultureInfo = n3.TimelineDateOrder = void 0, i3 = e3("./src/common/util/types.ts"), r2 = e3("./src/common/util/common.ts"), o = e3("./src/common/util/arrayhelper.ts"), a = e3("./src/common/util/regexhelper.ts"), u = "undefined" != typeof window ? window : e3.g, s = void 0, c = null, f = i3.lt.y0, l = i3.lt.Dh, h = (/* @__PURE__ */ new Date()).getFullYear(), p = ["MM-dd-yyyy", "MM-d-yyyy", "M-dd-yyyy", "M-d-yyyy", "yy-MM-dd", "yy-MM-d", "yy-M-dd", "yy-M-d", "yyyy-MM-dd", "yyyy-MM-d", "yyyy-M-dd", "yyyy-M-d", "dd-MMMM-yy", "dd-MMM-yy"], g = (d = ["MM/dd/yyyy", "MM/d/yyyy", "M/dd/yyyy", "M/d/yyyy", "yy/MM/dd", "yy/MM/d", "yy/M/dd", "yy/M/d", "yyyy/MM/dd", "yyyy/MM/d", "yyyy/M/dd", "yyyy/M/d"]).concat(v = ["hh:mm:ss", "hh:mm:s", "hh:m:ss", "hh:m:s", "h:mm:ss", "h:mm:s", "h:m:ss", "h:m:s", "hh:mm:ss tt", "hh:mm:s tt", "hh:m:ss tt", "hh:m:s tt", "h:mm:ss tt", "h:mm:s tt", "h:m:ss tt", "h:m:s tt", "hh:mm", "hh:m", "h:mm", "h:m", "hh:mm tt", "hh:m tt", "h:mm tt", "h:m tt"]), f(d, (function(t5, n4) {
              f(v, (function(t6, e4) {
                t6 < v.length - 4 && g.push(n4 + " " + e4);
              }));
            })), g = g.concat(p), f(p, (function(t5, n4) {
              f(v, (function(t6, e4) {
                t6 < v.length - 4 && g.push(n4 + " " + e4);
              }));
            })), (function(t5) {
              t5[t5.year = 1] = "year", t5[t5.quarterOrMonth = 2] = "quarterOrMonth", t5[t5.date = 3] = "date";
            })(m = n3.TimelineDateOrder || (n3.TimelineDateOrder = {})), b = { "00": 1, "01": 1, "02": 1, "03": 1, "04": 1, "05": 1, "06": 1, "07": 1, 12: 1, 15: 1, 21: 1, 22: 1, 23: 1, 24: 1, 25: 1, 31: 1, 32: 1, 33: 1, 34: 1, 35: 1, 36: 1, 37: 1, 62: 1, 65: 1, 71: 1, 72: 1, 73: 1, 74: 1, 75: 1 }, y = (function() {
              function t5() {
                this.NumberFormat = { currencyDecimalDigits: 2, currencyDecimalSeparator: ".", currencyGroupSeparator: ",", currencyGroupSizes: [3], currencyNegativePattern: 0, currencyPositivePattern: 0, currencySymbol: "¤", digitSubstitution: 1, isReadOnly: true, numberGroupSizes: [3], nanSymbol: "NaN", nativeDigits: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], numberNegativePattern: 1, negativeInfinitySymbol: "-Infinity", negativeSign: "-", numberDecimalDigits: 2, numberDecimalSeparator: ".", numberGroupSeparator: ",", positiveInfinitySymbol: "Infinity", positiveSign: "+", percentDecimalDigits: 2, percentDecimalSeparator: ".", percentGroupSeparator: ",", percentGroupSizes: [3], percentNegativePattern: 0, percentPositivePattern: 0, percentSymbol: "%", perMilleSymbol: "‰", listSeparator: ",", arrayListSeparator: ",", arrayGroupSeparator: ";", dbNumber: {}, standardDictionaryNumbers: { Hundreds: "Hundreds", Thousands: "Thousands", Millions: "Millions", Billions: "Billions", Trillions: "Trillions" }, scientificNotation: "0.##############E+00" }, this.DateTimeFormat = { abbreviatedDayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], abbreviatedMonthGenitiveNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], abbreviatedMonthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], amDesignator: "AM", calendarIsReadOnly: true, calendarWeekRule: 0, Calendar: { MinSupportedDateTime: "@-62135568000000@", MaxSupportedDateTime: "@253402300799999@", AlgorithmType: 1, CalendarType: 1, Eras: [1], TwoDigitYearMax: 2029, isReadOnly: true }, dateSeparator: "/", dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], defaultDatePattern: "MM/dd/yyyy H:mm:ss", firstDayOfWeek: 0, fullDateTimePattern: "dddd, dd MMMM yyyy HH:mm:ss", longDatePattern: "dddd, dd MMMM yyyy", longTimePattern: "HH:mm:ss", monthDayPattern: "MMMM dd", monthGenitiveNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], nativeCalendarName: "Gregorian Calendar", pmDesignator: "PM", rfc1123Pattern: "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'", shortDatePattern: "MM/dd/yyyy", shortestDayNames: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], shortTimePattern: "HH:mm", sortableDateTimePattern: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", timeSeparator: ":", universalSortableDateTimePattern: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", yearMonthPattern: "yyyy MMMM", filterDialogDateFormatter: "yyyy/mmmm/dd", preselectedFormatters: [], eraFormatter: ["ge/M/d", "ge-M-d", "ge.M.d", "gee/MM/dd"] }, this.name = function() {
                  return "";
                }, this.id = -1, this.LocalNumberFormat = {}, this.displayName = "", this.fontScriptCode = s, this.predefinedFormats = {}, this.TimelineDateOrder = [m.quarterOrMonth, m.date, m.year], this.TimelineDateSuffix = { year: "", quarter: "", month: "", date: "" }, this.TextFormat = { lineBreakingChar: [" ", "-"] }, this.equalCharacters = s;
              }
              return t5.prototype.mTe = function() {
                return [" "];
              }, t5.prototype.FAe = function(t6) {
                var n4 = this, e4 = n4.mTe(), i4 = { lineBreakingChar: e4 };
                return n4.TextFormat && n4.TextFormat.lineBreakingStrategy ? n4.TextFormat.lineBreakingStrategy(t6, i4) : F(t6, i4);
              }, t5.prototype.hse = function(t6) {
                if (this.TextFormat && this.TextFormat.lineBreakingStrategy) {
                  var n4 = { lineBreakingChar: this.TextFormat.lineBreakingChar, lineBreakingForbidEnd: this.TextFormat.lineBreakingForbidEnd, lineBreakingForbidStart: this.TextFormat.lineBreakingForbidStart };
                  return this.TextFormat.lineBreakingStrategy(t6, n4);
                }
                return F(t6, this.TextFormat || { lineBreakingChar: [" ", "-"] });
              }, t5.prototype.qPt = function() {
                var t6, n4, e4, i4;
                return this.$Pt || (e4 = (e4 = [n4 = (t6 = this.DateTimeFormat).shortDatePattern.replace(/m/g, "M"), n4 + " h:mm", n4 + " h:mm:ss", n4 + " h:mm:ss.0", "MMMdd", "MMMd", "MMM dd", "MMM d"]).concat(g), 1041 === this.id && (i4 = t6.eraFormatter, e4 = (e4 = e4.concat(this.QPt)).concat(i4)), e4 = e4.concat(t6.preselectedFormatters), this.$Pt = e4), this.$Pt;
              }, t5.prototype.tGt = function(t6) {
                var n4 = this;
                return n4.nGt || (n4.nGt = O(n4.DateTimeFormat.monthNames), n4.eGt = O(n4.DateTimeFormat.monthGenitiveNames)), E(t6, n4.nGt, n4.eGt);
              }, t5.prototype.iGt = function(t6) {
                var n4 = this;
                return n4.rGt || (n4.rGt = O(n4.DateTimeFormat.abbreviatedMonthNames), n4.oGt = O(n4.DateTimeFormat.abbreviatedMonthGenitiveNames)), E(t6, n4.rGt, n4.oGt);
              }, t5.prototype.aGt = function(t6) {
                var n4 = this;
                return n4.uGt || (n4.uGt = O(n4.DateTimeFormat.dayNames)), n4.uGt.indexOf(_(t6));
              }, t5.prototype.sGt = function(t6) {
                var n4 = this;
                return n4.cGt || (n4.cGt = O(n4.DateTimeFormat.abbreviatedDayNames)), n4.cGt.indexOf(_(t6));
              }, t5;
            })(), n3.CultureInfo = y, w = (function() {
              function t5() {
              }
              return t5.fGt = function(n4) {
                return n4 >= t5.lGt() && n4 <= t5.hGt();
              }, t5.dGt = function() {
                var t6, n4, e4 = y.eras;
                if (e4 !== s) {
                  for (t6 = [], n4 = 0; n4 < e4.length; n4++) t6[n4] = new Date(e4[n4].startDate.replace(/-/g, "/"));
                  return t6;
                }
                return this.vGt;
              }, t5.mGt = function(n4) {
                var e4, i4, r3, o2, a2;
                switch (n4) {
                  case "g":
                    e4 = "symbol", i4 = t5.gGt;
                    break;
                  case "gg":
                    e4 = "abbreviation", i4 = t5.pGt;
                    break;
                  case "ggg":
                    e4 = "name", i4 = t5.DEt;
                    break;
                  default:
                    return [];
                }
                if (o2 = [], (r3 = y.eras) !== s) {
                  for (a2 = 0; a2 < r3.length; a2++) o2[a2] = r3[a2][e4];
                  return o2;
                }
                return i4;
              }, t5.hGt = function() {
                var t6, n4 = y.eras;
                return n4 !== s && n4.length > 0 ? ((t6 = new Date(n4[n4.length - 1].startDate.replace(/-/g, "/"))).setFullYear(t6.getFullYear() + 99), t6) : this.bGt;
              }, t5.lGt = function() {
                var t6 = y.eras;
                return t6 !== s && t6.length > 0 ? new Date(t6[0].startDate.replace(/-/g, "/")) : this.yGt;
              }, t5.wGt = function() {
                var t6 = y.eras;
                return t6 !== s ? t6.length : this.MGt;
              }, t5.CGt = function() {
                var t6, n4, e4, i4, r3 = y.eras;
                if (r3 !== s) {
                  for (t6 = [], n4 = 1; n4 < r3.length; n4++) e4 = new Date(r3[n4 - 1].startDate.replace(/-/g, "/")), i4 = new Date(r3[n4].startDate.replace(/-/g, "/")), t6[n4 - 1] = i4.getFullYear() - e4.getFullYear() + 1;
                  return t6[n4 - 1] = 99, t6;
                }
                return this.SGt;
              }, t5.TGt = function(n4) {
                var e4, i4, r3 = { AGt: -1, IGt: -1 };
                if (!t5.fGt(n4)) {
                  if (!(n4 > t5.hGt())) return r3;
                  n4 = t5.hGt();
                }
                for (e4 = 0; e4 < t5.wGt(); e4++) if (n4 < (i4 = e4 + 1 !== t5.wGt() ? t5.dGt()[e4 + 1] : t5.xGt(t5.hGt(), 1))) {
                  r3.AGt = e4, r3.IGt = n4.getFullYear() - t5.dGt()[e4].getFullYear() + 1;
                  break;
                }
                return r3;
              }, t5.xGt = function(t6, n4) {
                var e4 = new Date(t6.getFullYear(), t6.getMonth(), t6.getDate(), t6.getHours(), t6.getMinutes(), t6.getSeconds());
                return e4.setMilliseconds(e4.getMilliseconds() + n4), new Date(e4.valueOf());
              }, t5.NGt = function(n4, e4) {
                var i4;
                return t5.dGt()[n4].getFullYear() + e4 - 1;
              }, t5.kGt = function(n4, e4) {
                var i4, r3;
                for (e4 = e4.toUpperCase(), i4 = t5.mGt(n4), r3 = 0; r3 < i4.length; r3++) if (i4[r3] === e4) return r3;
                return -1;
              }, t5.DGt = function(n4, e4, i4) {
                var r3, o2, a2, u2 = t5, s2 = u2.TGt(e4), c2 = s2.AGt;
                if (c2 >= 0 && (r3 = u2.mGt(n4)).length > 0) return r3[c2];
                if ((o2 = s2.IGt) >= 0) {
                  if ("1" === (a2 = o2.toString()) && i4) return a2 = "元";
                  if ("ee" === n4) return 1 === a2.length && (a2 = "0" + a2), a2;
                  if ("e" === n4) return a2;
                }
                return "";
              }, t5.vGt = [new Date(1868, 8, 8), new Date(1912, 6, 30), new Date(1926, 11, 25), new Date(1989, 0, 8), new Date(2019, 4, 1)], t5.MGt = 5, t5.SGt = [45, 15, 64, 31, 99], t5.bGt = new Date(2117, 11, 31, 23, 59, 59), t5.yGt = new Date(1868, 8, 8), t5._Gt = ["1,m", "2,t", "3,s", "4,h", "5,r"], t5.EGt = [0, 1, 2, 3, 0, 1, 2, 3], t5.DEt = ["明治", "大正", "昭和", "平成", "令和"], t5.gGt = ["M", "T", "S", "H", "R"], t5.pGt = ["明", "大", "昭", "平", "令"], t5.jGt = 99, t5.eraExcelFormatter = "[$-ja-JP-x-gannen]", t5.eraInternalFormatter = "[$-411]", t5;
            })(), n3.XPt = w, M = (function(t5) {
              function n4() {
                var n5, e4 = t5.call(this) || this;
                return B.call(e4, "NumberFormat", ["currencySymbol", "isReadOnly"], ["$", false]), n5 = ["MMM yyyy", "MMMM yyyy"], B.call(e4, "DateTimeFormat", ["fullDateTimePattern", "longDatePattern", "longTimePattern", "shortDatePattern", "shortTimePattern", "yearMonthPattern", "calendarIsReadOnly", "preselectedFormatters"], ["dddd, MMMM dd, yyyy h:mm:ss tt", "dddd, MMMM dd, yyyy", "h:mm:ss tt", "M/d/yyyy", "h:mm tt", "MMMM, yyyy", false, n5]), e4.DateTimeFormat.defaultDatePattern = e4.DateTimeFormat.shortDatePattern + " H:mm:ss", e4.name = function() {
                  return "en-US";
                }, e4.displayName = "English (United States)", e4.id = 1033, e4.predefinedFormats = { Accounting: '_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)', Comma: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', Currency: ["[$$-409]#,##0", "[$$-409]#,##0;[Red][$$-409]#,##0", "[$$-409]#,##0_);([$$-409]#,##0)", "[$$-409]#,##0_);[Red]([$$-409]#,##0)"], Date: ["m/d/yyyy", "[$-409]dddd, mmmm dd, yyyy", "m/d;@", "m/d/yy;@", "mm/dd/yy;@", "[$-409]d-mmm;@", "[$-409]d-mmm-yy;@", "[$-409]mmm-yy;@", "[$-409]mmmm-yy;@", "[$-409]mmmm d, yyyy;@", "[$-409]m/d/yy h:mm AM/PM;@", "m/d/yy h:mm;@", "[$-409]mmmmm;@", "[$-409]mmmmm-yy;@", "m/d/yyyy;@", "[$-409]d-mmm-yyyy;@"], Time: ["[$-409]h:mm:ss AM/PM", "h:mm;@", "[$-409]h:mm AM/PM;@", "h:mm:ss;@", "[$-409]h:mm:ss AM/PM;@", "mm:ss.0;@", "[h]:mm:ss;@", "[$-409]m/d/yy h:mm AM/PM;@", "m/d/yy h:mm;@"], Special: { "Zip Code": "00000", "Zip Code + 4": "00000-0000", "Phone Number": "[<=9999999]###-####;(###) ###-####", "Social Security Number": "000-00-0000" }, shortcut: { Number: "0.00", Currency: "[$$-409]#,##0.00", Accounting: '_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)', ShortDate: "m/d/yyyy", LongDate: "[$-409]dddd, mmmm dd, yyyy", Time: "[$-409]h:mm:ss AM/PM", Percentage: "0.00%", Fraction: "# ?/?", Scientific: "0.00E+00", Text: "@", Comma: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' } }, e4;
              }
              return j(n4, t5), n4;
            })(y), C = (function(t5) {
              function n4() {
                var n5, e4, i4, r3 = t5.call(this) || this, o2 = { 1: { letters: ["兆", "千", "百", "十", "亿", "千", "百", "十", "万", "千", "百", "十", ""], numbers: ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九"] }, 2: { letters: ["兆", "阡", "百", "拾", "億", "阡", "百", "拾", "萬", "阡", "百", "拾", ""], numbers: ["〇", "壱", "弐", "参", "四", "伍", "六", "七", "八", "九"] }, 3: { letters: c, numbers: ["０", "１", "２", "３", "４", "５", "６", "７", "８", "９"] } }, a2 = { Hundreds: "百", Thousands: "千", Millions: "百万", Billions: "十億", Trillions: "兆" };
                return B.call(r3, "NumberFormat", ["currencyDecimalDigits", "currencyNegativePattern", "currencySymbol", "isReadOnly", "nanSymbol", "negativeInfinitySymbol", "percentNegativePattern", "percentPositivePattern", "positiveInfinitySymbol", "dbNumber", "standardDictionaryNumbers"], [0, 1, "¥", false, "NaN (非数値)", "-∞", 1, 1, "+∞", o2, a2]), n5 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], e4 = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], i4 = ["yyyy年M月d日", "yyyy年M月dd日", "yyyy年MM月d日", "yyyy年MM月dd日"], B.call(r3, "DateTimeFormat", ["abbreviatedDayNames", "abbreviatedMonthGenitiveNames", "abbreviatedMonthNames", "amDesignator", "calendarIsReadOnly", "dayNames", "fullDateTimePattern", "longDatePattern", "longTimePattern", "monthDayPattern", "monthGenitiveNames", "monthNames", "nativeCalendarName", "pmDesignator", "shortDatePattern", "shortestDayNames", "shortTimePattern", "yearMonthPattern", "filterDialogDateFormatter", "preselectedFormatters", "EraFilterDialogDateFormatter"], [["日", "月", "火", "水", "木", "金", "土"], n5, n5, "午前", false, ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "yyyy'年'M'月'd'日' H:mm:ss", "yyyy'年'M'月'd'日'", "H:mm:ss", "M'月'd'日'", e4, e4, "西暦 (日本語)", "午後", "yyyy/MM/dd", ["日", "月", "火", "水", "木", "金", "土"], "H:mm", "yyyy'年'M'月'", "yyyy年/mmmm/d日", i4, "ggge/mmmm/d日"]), r3.DateTimeFormat.eras = true, r3.DateTimeFormat.defaultDatePattern = r3.DateTimeFormat.shortDatePattern + " " + r3.DateTimeFormat.longTimePattern, r3.QPt = ['gggee"年"MM"月"dd"日', 'gggee"年"M"月"d"日', 'ge"年"M"月"d"日', 'ggge"年"M"月"d"日', 'ggee"年"M"月"d"日', 'gge"年"M"月"d"日'], r3.name = function() {
                  return "ja-JP";
                }, r3.id = 1041, r3.displayName = "Japanese (Japan)", r3.isJCKCulture = true, r3.predefinedFormats = { Accounting: '_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-', Comma: '_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-', Currency: ["[$¥-411]#,##0_);[Red]([$¥-411]#,##0)", "[$¥-411]#,##0_);([$¥-411]#,##0)", "[$¥-411]#,##0;[Red][$¥-411]#,##0", "[$¥-411]#,##0;-[$¥-411]#,##0", "[$¥-411]#,##0;[Red]-[$¥-411]#,##0"], Date: ["yyyy/mm/dd", "[$-411]dddd, mmmm dd, yyyy", 'yyyy"年"m"月"d"日";@', 'yyyy"年"m"月";@', 'm"月"d"日";@', "yyyy/m/d;@", "[$-409]yyyy/m/d h:mm AM/PM;@", "yyyy/m/d h:mm;@", "m/d;@", "m/d/yy;@", "mm/dd/yy;@", "[$-409]d-mmm;@", "[$-409]d-mmm-yy;@", "[$-409]dd-mmm-yy;@", "[$-409]mmm-yy;@", "[$-409]mmmm-yy;@", "[$-409]mmmmm;@", "[$-409]mmmmm-yy;@"], Time: ["[$-411]h:mm:ss AM/PM", "h:mm;@", "[$-409]h:mm AM/PM;@", "h:mm:ss;@", "[$-409]h:mm:ss AM/PM;@", "[$-409]yyyy/m/d h:mm AM/PM;@", "yyyy/m/d h:mm;@", 'h"時"mm"分";@', 'h"時"mm"分"ss"秒";@'], Special: { "郵便番号": "[<=999]000;[<=9999]000-00;000-0000", "電話番号（東京)": "[<=99999999]####-####;(00) ####-####", "正負記号 （+ = △; - = ▲)": '"△" #,##0;"▲" #,##0', "漢数字（十二万三千四百）": "[DBNum1][$-411]General", "大字 (壱拾弐萬参阡四百)": "[DBNum2][$-411]General", "全角 (１２３４５)": "[DBNum3][$-411]0", "全角 桁区切り（１２,３４５）": "[DBNum3][$-411]#,##0" }, shortcut: { Number: "0.00", Currency: "[$¥-411]#,##0.00", Accounting: '_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-', ShortDate: "yyyy/mm/dd", LongDate: "[$-411]dddd, mmmm dd, yyyy", Time: "[$-411]h:mm:ss AM/PM", Percentage: "0.00%", Fraction: "# ?/?", Scientific: "0.00E+00", Text: "@", Comma: '_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-' } }, r3.TimelineDateOrder = [m.year, m.quarterOrMonth, m.date], r3.TimelineDateSuffix = { year: "年", quarter: "", month: "月", date: "日" }, r3.TextFormat = { lineBreakingChar: [" ", "　", "-"], lineBreakingForbidStart: ["!", "%", ")", ",", ".", ":", ";", "?", "]", "}", "！", "％", "）", "，", "．", "：", "；", "？", "］", "｝", "」", "。", "、", "ー"], lineBreakingForbidEnd: ["(", "[", "{", "（", "［", "｛", "「", "$", "＄", "\\", "￥"], lineBreakingStrategy: function(t6, n6) {
                  return F(t6, n6, R);
                } }, r3.equalCharacters = ["―ゝゞ゠ヽヾー", "㆐㆑㇤㇥", "‸⁊", ".․", "&⁋", "%⁏", "$⁒", "#⁗", '"⁍', "‹⁓"], r3;
              }
              return j(n4, t5), n4;
            })(y), S = (function(t5) {
              function n4() {
                var n5, e4, i4, r3 = t5.call(this) || this, o2 = { 1: { letters: ["兆", "千", "百", "十", "亿", "千", "百", "十", "万", "千", "百", "十", ""], numbers: ["○", "一", "二", "三", "四", "五", "六", "七", "八", "九"] }, 2: { letters: ["兆", "仟", "佰", "拾", "亿", "仟", "佰", "拾", "万", "仟", "佰", "拾", ""], numbers: ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"] }, 3: { letters: c, numbers: ["０", "１", "２", "３", "４", "５", "６", "７", "８", "９"] } }, u2 = { Hundreds: "百", Thousands: "千", Millions: "百万", Billions: "十亿", Trillions: "兆" };
                return B.call(r3, "NumberFormat", ["currencyNegativePattern", "currencySymbol", "isReadOnly", "nanSymbol", "negativeInfinitySymbol", "percentNegativePattern", "percentPositivePattern", "positiveInfinitySymbol", "dbNumber", "standardDictionaryNumbers"], [2, "¥", false, "非数字", "负无穷大", 1, 1, "正无穷大", o2, u2]), n5 = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], e4 = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], i4 = ["yyyy年M月", "M月d日", "yyyy年M月d日", "h时mm分", "h时mm分ss秒"], B.call(r3, "DateTimeFormat", ["abbreviatedDayNames", "abbreviatedMonthGenitiveNames", "abbreviatedMonthNames", "amDesignator", "calendarIsReadOnly", "dayNames", "firstDayOfWeek", "fullDateTimePattern", "longDatePattern", "longTimePattern", "monthDayPattern", "monthGenitiveNames", "monthNames", "nativeCalendarName", "pmDesignator", "shortDatePattern", "shortestDayNames", "shortTimePattern", "yearMonthPattern", "filterDialogDateFormatter", "preselectedFormatters"], [["周日", "周一", "周二", "周三", "周四", "周五", "周六"], n5, n5, "上午", false, ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], 1, "yyyy'年'M'月'd'日' H:mm:ss", "yyyy'年'M'月'd'日'", "H:mm:ss", "M'月'd'日'", e4, e4, "公历", "下午", "yyyy/M/d", ["日", "一", "二", "三", "四", "五", "六"], "H:mm", "yyyy'年'M'月'", "yyyy年/mmmm/d日", i4]), r3.DateTimeFormat.defaultDatePattern = r3.DateTimeFormat.shortDatePattern + " " + r3.DateTimeFormat.longTimePattern, r3.name = function() {
                  return "zh-cn";
                }, r3.id = 2052, r3.displayName = "Chinese (China)", r3.isJCKCulture = true, r3.localeCompare = function(t6, n6) {
                  var e5 = t6.localeCompare(n6, "zh");
                  return e5 < 0 && t6 >= "一" && n6 < "一" || e5 > 0 && n6 >= "一" && t6 < "一" ? -e5 : e5;
                }, r3.predefinedFormats = { Accounting: '_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ', Comma: '_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ', Currency: ["[$¥-804]#,##0", "[$¥-804]#,##0;[Red][$¥-804]#,##0", "[$¥-804]#,##0;[$¥-804]-#,##0", "[$¥-804]#,##0;[Red][$¥-804]-#,##0"], Date: ["yyyy/m/d", "[$-804]dddd, mmmm dd, yyyy", "yyyy-mm-dd;@", '[DBNum1][$-804]yyyy"年"m"月"d"日";@', '[DBNum1][$-804]yyyy"年"m"月";@', '[DBNum1][$-804]m"月"d"日";@', "[$-409]yyyy/m/d h:mm AM/PM;@", 'yyyy"年"m"月"d"日";@', 'yyyy"年"m"月";@', 'm"月"d"日";@', "mm/dd/yy;@", "m/d/yy;@", "yyyy/m/d h:mm AM/PM;@", "yyyy/m/d h:mm;@", "[$-409]d-mmm;@", "[$-409]d-mmm-yy;@", "[$-409]dd-mmm-yy;@", "[$-409]mmm-yy;@", "[$-409]m", "[$-409]m-d;@"], Time: ["[$-804]h:mm:ss AM/PM", "h:mm;@", "[$-409]h:mm AM/PM;@", "h:mm:ss;@", 'h"时"mm"分";@', 'h"时"mm"分"ss"秒";@', '[$-804]上午/下午h"时"mm"分";@', '[$-804]上午/下午h"时"mm"分"ss"秒";@', '[DBNum1][$-804]h"时"mm"分";@', '[DBNum1][$-804]上午/下午h"时"mm"分";@'], Special: { "邮政编码": "000000", "中文小写字母": "[DBNum1][$-804]General", "中文大写字母": "[DBNum2][$-804]General" }, shortcut: { Number: "0.00", Currency: "[$¥-804]#,##0.00", Accounting: '_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ', ShortDate: "yyyy/m/d", LongDate: "[$-804]dddd, mmmm dd, yyyy", Time: "[$-804]h:mm:ss AM/PM", Percentage: "0.00%", Fraction: "# ?/?", Scientific: "0.00E+00", Text: "@", Comma: '_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ' } }, r3.TimelineDateOrder = [m.year, m.quarterOrMonth, m.date], r3.TimelineDateSuffix = { year: "年", quarter: "", month: "", date: "日" }, r3.TextFormat = { lineBreakingChar: [" ", "　", "-"], lineBreakingForbidStart: ["!", "%", ")", ",", ".", ":", ";", "?", "]", "}", "！", "％", "）", "，", "．", "：", "；", "？", "］", "｝"], lineBreakingForbidEnd: ["(", "[", "{", "（", "［", "｛"], lineBreakingStrategy: function(t6, n6) {
                  return F(t6, n6, R);
                } }, r3.normalizeDateTimeString = function(t6) {
                  var n6, e5;
                  return a.$T.qT("^([0-9]{1,2}|[0-9]{4})年[0-9]{1,2}月$").test(t6) ? (n6 = t6.split("年"))[1].replace("月", "") + "/1/" + n6[0] : a.$T.qT("^[0-9]{1,2}月[0-9]{1,2}日$").test(t6) ? (n6 = t6.split("月"))[0] + "/" + n6[1].replace("日", "") + "/" + h : a.$T.qT("^(上午|下午)?[0-9]{1,2}时[0-9]{1,2}分([0-9]{1,2}秒)?$").test(t6) ? ((e5 = (e5 = t6.replace("时", ":").replace("分", ":").replace("秒", "")).endsWith(":") ? e5 + "00" : e5).startsWith("上午") && (e5 = e5.replace("上午", "") + " AM"), e5.startsWith("下午") && (e5 = e5.replace("下午", "") + " PM"), e5) : t6.includes("上午") || t6.includes("下午") ? t6.replace("上午", "am").replace("下午", "pm") : c;
                }, r3;
              }
              return j(n4, t5), n4.prototype.mTe = function() {
                return [" ", "　"];
              }, n4;
            })(y), T = (function(t5) {
              function n4() {
                var n5, e4, i4 = t5.call(this) || this, r3 = { 1: { letters: ["兆", "千", "百", "十", "億", "千", "百", "十", "万", "千", "百", "十", ""], numbers: ["０", "一", "二", "三", "四", "五", "六", "七", "八", "九"] }, 2: { letters: ["兆", "阡", "百", "拾", "億", "阡", "百", "拾", "萬", "阡", "百", "拾", ""], numbers: ["零", "壹", "貳", "參", "四", "伍", "六", "七", "八", "九"] }, 3: { letters: ["兆", "千", "百", "十", "億", "千", "百", "十", "万", "千", "百", "十", ""], numbers: ["０", "１", "２", "３", "４", "５", "６", "７", "８", "９"] }, 4: { letters: ["조", "천", "백", "십", "억", "천", "백", "십", "만", "천", "백", "십", ""], numbers: ["○", "일", "이", "삼", "사", "오", "육", "칠", "팔", "구"] } }, o2 = { Hundreds: "백", Thousands: "천", Millions: "백만", Billions: "10억", Trillions: "조" };
                return B.call(i4, "NumberFormat", ["currencyDecimalDigits", "currencyNegativePattern", "currencySymbol", "isReadOnly", "dbNumber", "standardDictionaryNumbers"], [0, 1, "₩", false, r3, o2]), n5 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], e4 = ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월", ""], B.call(i4, "DateTimeFormat", ["abbreviatedDayNames", "abbreviatedMonthGenitiveNames", "abbreviatedMonthNames", "amDesignator", "calendarIsReadOnly", "dayNames", "firstDayOfWeek", "fullDateTimePattern", "longDatePattern", "longTimePattern", "monthDayPattern", "monthGenitiveNames", "monthNames", "nativeCalendarName", "pmDesignator", "shortDatePattern", "shortestDayNames", "shortTimePattern", "yearMonthPattern", "filterDialogDateFormatter"], [["일", "월", "화", "수", "목", "금", "토"], n5, n5, "오전", false, ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], 1, "yyyy'년' M'월' d'일' dddd h:mm:ss", "yyyy'년' M'월' d'일' dddd", "h:mm:ss", "M'월' d'일'", e4, e4, "서기", "오후", "yyyy-MM-dd", ["일", "월", "화", "수", "목", "금", "토"], "tt h:mm", "yyyy'년' M'월'", "yyyy년/mmmm/d일"]), i4.DateTimeFormat.defaultDatePattern = i4.DateTimeFormat.shortDatePattern + " " + i4.DateTimeFormat.longTimePattern, i4.name = function() {
                  return "ko-kr";
                }, i4.id = 1042, i4.displayName = "Korean (Korea)", i4.isJCKCulture = true, i4.predefinedFormats = { Accounting: '_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-', Comma: '_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-', Currency: ["[$₩-412]#,##0", "[$₩-412]#,##0;[Red][$₩-412]#,##0", "[$₩-412]#,##0;-[$₩-412]#,##0", "[$₩-412]#,##0;[Red]-[$₩-412]#,##0"], Date: ["yyyy-mm-dd", 'yyyy"년" m"월" d"일" dddd', "yyyy-mm-dd;@", 'yyyy"년" m"월" d"일";@', 'yy"年" m"月" d"日";@', 'yyyy"년" m"월";@', 'm"월" d"일";@', "yy-m-d;@", "yy-m-d h:mm;@", 'm"月"d"日";@', "[$-412]yy-m-d AM/PM h:mm;@", "yy/m/d;@", "yyyy/m/d h:mm;@", "m/d;@", "m/d/yy;@", "mm/dd/yy;@", "[$-409]d-mmm;@", "[$-409]d-mmm-yy;@", "[$-409]dd-mmm-yy;@", "[$-409]mmm-yy;@", "[$-409]m", "[$-409]m-d;@"], Time: ["[$-412]h:mm:ss AM/PM", "h:mm;@", "h:mm:ss;@", "[$-412]AM/PM h:mm;@", "[$-412]AM/PM h:mm:ss;@", "[$-409]h:mm AM/PM;@", "[$-409]h:mm:ss AM/PM;@", 'yyyy"-"m"-"d h:mm;@', '[$-412]yyyy"-"m"-"d AM/PM h:mm;@', '[$-409]yyyy"-"m"-"d h:mm AM/PM;@', 'h"시" mm"분";@', 'h"시" mm"분" ss"초";@', '[$-412]AM/PM h"시" mm"분";@', '[$-412]AM/PM h"시" mm"분" ss"초";@'], Special: { "우편 번호": "000-000", "전화 번호 (국번 4자리)": "[<=999999]####-####;(0##) ####-####", "전화 번호 (국번 3자리)": "[<=9999999]###-####;(0##) ###-####", "주민등록번호": "000000-0000000", "숫자(한자)": "[DBNum1][$-412]General", "숫자(한자-갖은자)": "[DBNum2][$-412]General", "숫자(한글)": "[DBNum4][$-412]General" }, shortcut: { Number: "0.00", Currency: "[$₩-412]#,##0.00", Accounting: '_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-', ShortDate: "yyyy-mm-dd", LongDate: 'yyyy"년" m"월" d"일" dddd', Time: "[$-412]h:mm:ss AM/PM", Percentage: "0%", Fraction: "# ?/?", Scientific: "0.00E+00", Text: "@", Comma: '_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-' } }, i4.TimelineDateOrder = [m.year, m.quarterOrMonth, m.date], i4.TimelineDateSuffix = { year: "년", quarter: "", month: "월", date: "일" }, i4;
              }
              return j(n4, t5), n4;
            })(y), x = { invariant: new y(), "en-us": new M(), "ja-jp": new C(), "zh-cn": new S(), "ko-kr": new T() }, A = {}, I = ["lsru", "lsde", "ls1", "ls2", "ls3", "ls4", "ls5", "ls6", "ls7", "ls8", "ls9", "ls10", "ls11"], k = ["wmk1", "wmk2"], N = (function() {
              function t5() {
                this.KPt = 1, this.JPt = {};
              }
              return t5.instance = function() {
                return this.OGt || (this.OGt = new this());
              }, t5.prototype.culture = function(n4) {
                if (0 === arguments.length) return t5.RGt;
                n4 && t5.RGt !== n4 && (t5.RGt = n4.toLowerCase(), this.KPt++, P(t5.RGt, t5.OGt.getCultureInfo()));
              }, t5.prototype.addCultureInfo = function(t6, n4, e4) {
                var i4, o2, a2, u2, s2;
                if (n4 && n4 instanceof y) {
                  if (i4 = n4.NumberFormat && n4.NumberFormat.numberDecimalSeparator, o2 = n4.NumberFormat.arrayListSeparator, a2 = n4.NumberFormat.arrayGroupSeparator, i4 === n4.NumberFormat.listSeparator || a2 === o2) throw (u2 = new r2.ResourceManager(r2.SR)).getResource().Exp_Separator;
                  x[t6.toLowerCase()] = n4;
                }
                e4 && "object" == typeof e4 && (s2 = t6.toLowerCase(), A[s2] = l(true, {}, e4), this.KPt++);
              }, t5.prototype.getCultureInfoDict = function() {
                return x;
              }, t5.prototype.getCultureInfo = function(n4) {
                var e4, i4, r3;
                if (0 === arguments.length) return x[t5.RGt];
                for (r3 in "string" == typeof n4 && (n4 = n4.toLowerCase()), i4 = c, e4 = x) if (r3 === n4 || e4[r3].id !== s && e4[r3].id === n4) {
                  i4 = e4[r3];
                  break;
                }
                return i4;
              }, t5.prototype.getLanguage = function(t6) {
                if ("string" == typeof t6) {
                  var n4 = t6.toLowerCase();
                  return A[n4];
                }
                return c;
              }, t5.prototype.getResources = function(t6) {
                var n4, e4 = this.culture().toLowerCase();
                return t6 !== c && t6 !== s || (t6 = e4), "string" == typeof t6 && (n4 = t6.toLowerCase(), this.JPt[n4]) ? this.BGt(this.JPt[n4]) : c;
              }, t5.prototype.BGt = function(t6) {
                var n4, e4 = "PivotTables", i4 = "ReportSheet", r3 = "GanttSheet", o2 = "DataChart", a2 = "Sheets", u2 = "CalcEngine", s2 = "Functions", c2 = "TableFunctions", f2 = l(true, {}, t6);
                return f2[e4] && this.LGt(f2[e4], k), f2[i4] && this.LGt(f2[i4], k), f2[r3] && this.LGt(f2[r3], k), f2[o2] && this.LGt(f2[o2], k), f2[a2] && this.LGt(f2[a2], I), (n4 = f2[u2]) && (f2[s2] = n4.wmt, f2[c2] = n4.d2t, delete n4.wmt, delete n4.d2t), f2;
              }, t5.prototype.LGt = function(t6, n4) {
                var e4, i4, r3;
                for (e4 = 0, i4 = n4; e4 < i4.length; e4++) delete t6[r3 = i4[e4]];
              }, t5.prototype.FGt = function(t6, n4, e4) {
                var i4, r3, a2 = A[t6.toLowerCase()];
                for (i4 in n4) o.Uf.OS(I, i4) || null !== (r3 = this.PGt(a2, i4, e4)) && "string" == typeof r3 && "string" == typeof n4[i4] && (n4[i4] = r3);
                n4.wmt && a2.Functions && this.GGt(a2.Functions, n4.wmt), n4.d2t && a2.TableFunctions && l(true, n4.d2t, a2.TableFunctions);
              }, t5.prototype.PGt = function(t6, n4, e4) {
                var i4, r3;
                if (t6.hasOwnProperty(n4)) return t6[n4];
                if (e4 && (i4 = t6[e4]) && "object" == typeof i4 && i4.hasOwnProperty(n4)) return i4[n4];
                for (r3 in t6) if ((i4 = t6[r3]) && "object" == typeof i4 && i4.hasOwnProperty(n4)) return i4[n4];
                return null;
              }, t5.prototype.GGt = function(t6, n4) {
                var e4, i4, r3, o2, a2, u2, s2, c2 = {};
                for (e4 in n4) if (t6.hasOwnProperty(e4)) for (u2 in i4 = n4[e4], r3 = t6[e4], o2 = i4.parameters, a2 = r3.parameters, i4.description = r3.description, o2) a2.hasOwnProperty(u2) && "string" == typeof (s2 = a2[u2]) && (o2[u2].name = s2);
                return c2;
              }, t5.prototype.Fe = function(n4) {
                var e4 = this.getCultureInfo(n4);
                return e4 || (e4 = x[t5.RGt]) || (e4 = new y()), e4;
              }, t5.prototype.xat = function(t6, n4) {
                var e4 = this.getCultureInfo(t6) || this.getCultureInfo("en-US"), i4 = e4.DateTimeFormat, r3 = i4.filterDialogDateFormatter;
                return (n4.indexOf("g") >= 0 || n4.indexOf("e") >= 0) && (r3 = i4.EraFilterDialogDateFormatter || r3), r3;
              }, t5.RGt = "en-us", t5;
            })(), n3.CultureManager = N.instance();
          }, "./src/common/util/arrayhelper.ts": function(t4, n3) {
            var e3, i3, r2;
            function o(t5, n4) {
              var i4, r3;
              for (i4 in n4) n4.hasOwnProperty(i4) && (r3 = n4[i4], Array.isArray(r3) ? (t5[i4] = [], o(t5[i4], n4[i4])) : r3 !== e3 && "object" == typeof r3 ? (t5[i4] = {}, o(t5[i4], n4[i4])) : t5[i4] = n4[i4]);
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.Uf = void 0, e3 = null, i3 = void 0, r2 = (function() {
              function t5() {
              }
              return t5.Eit = function(t6, n4, e4) {
                t6.splice(n4, 0, e4);
              }, t5.ZP = function(t6, n4) {
                t6.push(n4);
              }, t5.OS = function(t6, n4) {
                return t6.indexOf(n4) > -1;
              }, t5.VP = function(t6, n4) {
                var e4 = t6.indexOf(n4);
                e4 > -1 && t6.splice(e4, 1);
              }, t5.UGt = function(t6, n4) {
                return t6.slice(0, n4).concat(t6.slice(n4 + 1));
              }, t5.hD = function(t6, n4, e4) {
                return t6.indexOf(n4, e4);
              }, t5.d5 = function(t6, n4, i4) {
                if (!(n4 < 0)) for (var r3 = 0; r3 < i4 && n4 + r3 < t6.length; r3++) t6[n4 + r3] = e3;
              }, t5.N2t = function(t6, n4) {
                var r3, o2;
                for (n4 < 0 && (n4 = -1), o2 = r3 = n4 + 1; o2 < t6.length; o2++) if (t6[o2] !== i3 && t6[o2] !== e3) return o2;
                return -1;
              }, t5.tR = function(t6) {
                return t6 && t6.length;
              }, t5.Gf = function(t6) {
                var n4 = [];
                return o(n4, t6), n4;
              }, t5;
            })(), n3.Uf = r2;
          }, "./src/common/util/colorhelper.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h;
            function d(t5, n4, e4) {
              return e4 < 0 && (e4 += 240), e4 > 240 && (e4 -= 240), e4 < 40 ? t5 + ((n4 - t5) * e4 + 20) / 40 : e4 < 120 ? n4 : e4 < 160 ? t5 + ((n4 - t5) * (160 - e4) + 20) / 40 : t5;
            }
            function v(t5, n4, e4) {
              var i4, r3, o2, a2, u2;
              return 0 === e4 ? i4 = r3 = o2 = s(255 * n4 / 240 + "", 10) : (a2 = void 0, u2 = void 0, i4 = p(a2 = 2 * n4 - (u2 = n4 <= 120 ? s((n4 * (240 + e4) + 120) / 240 + "") : n4 + e4 - s((n4 * e4 + 120) / 240 + "")), u2, t5 + 80), r3 = p(a2, u2, t5), o2 = p(a2, u2, t5 - 80)), { a: 255, r: i4, g: r3, b: o2 };
            }
            function p(t5, n4, e4) {
              return o(s((255 * d(t5, n4, e4) + 120) / 240 + ""), 255);
            }
            function g(t5) {
              var n4, e4, i4, r3, o2, a2, u2, s2, f2, h2;
              return /^#[A-Fa-f0-9]+$/.test(t5) ? (n4 = t5.replace(/^#/, ""), i4 = "", r3 = "", 6 === (e4 = n4.length) || 8 === e4 ? (i4 = n4.substr(0, 6), 8 === e4 && (r3 = n4.substr(6, 2))) : 3 !== e4 && 4 !== e4 || (i4 = (o2 = n4.split(3 === e4 ? /(.)/ : /(..)/)).filter(Boolean).map((function(t6) {
                return parseInt(3 === e4 ? t6 + t6 : t6, 16);
              })).map((function(t6) {
                return t6.toString(16).padStart(2, "0");
              })).join(""), 4 === e4 && (r3 = o2[3] + o2[3])), [a2 = parseInt(i4.slice(0, 2), 16), u2 = parseInt(i4.slice(2, 4), 16), s2 = parseInt(i4.slice(4, 6), 16), f2 = r3 ? parseInt(r3, 16) : 255]) : t5.toLowerCase() in c ? c[t5.toLowerCase()] : null !== (h2 = l.exec(t5)) ? (f2 = void 0 === h2[4] ? 255 : 255 * +h2[4], [h2[1], h2[2], h2[3], f2]) : null;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.ft = void 0, i3 = e3("./src/common/util/numberhelper.ts"), r2 = i3.st.VGt, o = Math.min, a = Math.max, u = Math.abs, s = parseInt, c = { aliceblue: [240, 248, 255, 255], antiquewhite: [250, 235, 215, 255], aqua: [0, 255, 255, 255], aquamarine: [127, 255, 212, 255], azure: [240, 255, 255, 255], beige: [245, 245, 220, 255], bisque: [255, 228, 196, 255], black: [0, 0, 0, 255], blanchedalmond: [255, 235, 205, 255], blue: [0, 0, 255, 255], blueviolet: [138, 43, 226, 255], brown: [165, 42, 42, 255], burlywood: [222, 184, 135, 255], cadetblue: [95, 158, 160, 255], chartreuse: [127, 255, 0, 255], chocolate: [210, 105, 30, 255], coral: [255, 127, 80, 255], cornflowerblue: [100, 149, 237, 255], cornsilk: [255, 248, 220, 255], crimson: [220, 20, 60, 255], cyan: [0, 255, 255, 255], darkblue: [0, 0, 139, 255], darkcyan: [0, 139, 139, 255], darkgoldenrod: [184, 134, 11, 255], darkgray: [169, 169, 169, 255], darkgreen: [0, 100, 0, 255], darkgrey: [169, 169, 169, 255], darkkhaki: [189, 183, 107, 255], darkmagenta: [139, 0, 139, 255], darkolivegreen: [85, 107, 47, 255], darkorange: [255, 140, 0, 255], darkorchid: [153, 50, 204, 255], darkred: [139, 0, 0, 255], darksalmon: [233, 150, 122, 255], darkseagreen: [143, 188, 143, 255], darkslateblue: [72, 61, 139, 255], darkslategray: [47, 79, 79, 255], darkslategrey: [47, 79, 79, 255], darkturquoise: [0, 206, 209, 255], darkviolet: [148, 0, 211, 255], deeppink: [255, 20, 147, 255], deepskyblue: [0, 191, 255, 255], dimgray: [105, 105, 105, 255], dimgrey: [105, 105, 105, 255], dodgerblue: [30, 144, 255, 255], firebrick: [178, 34, 34, 255], floralwhite: [255, 250, 240, 255], forestgreen: [34, 139, 34, 255], fuchsia: [255, 0, 255, 255], gainsboro: [220, 220, 220, 255], ghostwhite: [248, 248, 255, 255], gold: [255, 215, 0, 255], goldenrod: [218, 165, 32, 255], gray: [128, 128, 128, 255], green: [0, 128, 0, 255], greenyellow: [173, 255, 47, 255], grey: [128, 128, 128, 255], honeydew: [240, 255, 240, 255], hotpink: [255, 105, 180, 255], indianred: [205, 92, 92, 255], indigo: [75, 0, 130, 255], ivory: [255, 255, 240, 255], khaki: [240, 230, 140, 255], lavender: [230, 230, 250, 255], lavenderblush: [255, 240, 245, 255], lawngreen: [124, 252, 0, 255], lemonchiffon: [255, 250, 205, 255], lightblue: [173, 216, 230, 255], lightcoral: [240, 128, 128, 255], lightcyan: [224, 255, 255, 255], lightgoldenrodyellow: [250, 250, 210, 255], lightgray: [211, 211, 211, 255], lightgreen: [144, 238, 144, 255], lightgrey: [211, 211, 211, 255], lightpink: [255, 182, 193, 255], lightsalmon: [255, 160, 122, 255], lightseagreen: [32, 178, 170, 255], lightskyblue: [135, 206, 250, 255], lightslategray: [119, 136, 153, 255], lightslategrey: [119, 136, 153, 255], lightsteelblue: [176, 196, 222, 255], lightyellow: [255, 255, 224, 255], lime: [0, 255, 0, 255], limegreen: [50, 205, 50, 255], linen: [250, 240, 230, 255], magenta: [255, 0, 255, 255], maroon: [128, 0, 0, 255], mediumaquamarine: [102, 205, 170, 255], mediumblue: [0, 0, 205, 255], mediumorchid: [186, 85, 211, 255], mediumpurple: [147, 112, 219, 255], mediumseagreen: [60, 179, 113, 255], mediumslateblue: [123, 104, 238, 255], mediumspringgreen: [0, 250, 154, 255], mediumturquoise: [72, 209, 204, 255], mediumvioletred: [199, 21, 133, 255], midnightblue: [25, 25, 112, 255], mintcream: [245, 255, 250, 255], mistyrose: [255, 228, 225, 255], moccasin: [255, 228, 181, 255], navajowhite: [255, 222, 173, 255], navy: [0, 0, 128, 255], oldlace: [253, 245, 230, 255], olive: [128, 128, 0, 255], olivedrab: [107, 142, 35, 255], orange: [255, 165, 0, 255], orangered: [255, 69, 0, 255], orchid: [218, 112, 214, 255], palegoldenrod: [238, 232, 170, 255], palegreen: [152, 251, 152, 255], paleturquoise: [175, 238, 238, 255], palevioletred: [219, 112, 147, 255], papayawhip: [255, 239, 213, 255], peachpuff: [255, 218, 185, 255], peru: [205, 133, 63, 255], pink: [255, 192, 203, 255], plum: [221, 160, 221, 255], powderblue: [176, 224, 230, 255], purple: [128, 0, 128, 255], rebeccapurple: [102, 51, 153, 255], red: [255, 0, 0, 255], rosybrown: [188, 143, 143, 255], royalblue: [65, 105, 225, 255], saddlebrown: [139, 69, 19, 255], salmon: [250, 128, 114, 255], sandybrown: [244, 164, 96, 255], seagreen: [46, 139, 87, 255], seashell: [255, 245, 238, 255], sienna: [160, 82, 45, 255], silver: [192, 192, 192, 255], skyblue: [135, 206, 235, 255], slateblue: [106, 90, 205, 255], slategray: [112, 128, 144, 255], slategrey: [112, 128, 144, 255], snow: [255, 250, 250, 255], springgreen: [0, 255, 127, 255], steelblue: [70, 130, 180, 255], tan: [210, 180, 140, 255], teal: [0, 128, 128, 255], thistle: [216, 191, 216, 255], tomato: [255, 99, 71, 255], turquoise: [64, 224, 208, 255], violet: [238, 130, 238, 255], wheat: [245, 222, 179, 255], white: [255, 255, 255, 255], whitesmoke: [245, 245, 245, 255], yellow: [255, 255, 0, 255], yellowgreen: [154, 205, 50, 255] }, f = (function() {
              function t5(t6) {
                var n4, e4, i4, r3, u2 = this, c2 = t6.r, f2 = t6.g, l2 = t6.b, h2 = a(a(c2, f2), l2), d2 = o(o(c2, f2), l2), v2 = h2 + d2;
                u2.HGt = s((240 * v2 + 255) / 510 + "", 10), 0 === (n4 = h2 - d2) ? (u2.zGt = 0, u2.wv = 160) : (u2.HGt <= 120 ? u2.zGt = s((240 * n4 + v2 / 2) / v2 + "", 10) : u2.zGt = s((240 * n4 + (510 - v2) / 2) / (510 - v2) + "", 10), e4 = (40 * (h2 - c2) + n4 / 2) / n4, i4 = (40 * (h2 - f2) + n4 / 2) / n4, r3 = (40 * (h2 - l2) + n4 / 2) / n4, u2.wv = s(c2 === h2 ? r3 - i4 + "" : f2 === h2 ? 80 + e4 - r3 + "" : 160 + i4 - e4 + "", 10), u2.wv < 0 && (u2.wv += 240), u2.wv > 240 && (u2.wv -= 240));
              }
              return t5.prototype.YGt = function(t6) {
                var n4 = this, e4 = n4.HGt, i4 = n4.ZGt(n4.HGt, 500, true);
                return v(n4.wv, e4 + (i4 - e4) * t6, n4.zGt);
              }, t5.prototype.ZGt = function(t6, n4, e4) {
                return 0 === n4 ? t6 : e4 ? n4 > 0 ? (t6 * (1e3 - n4) + 241 * n4) / 1e3 : t6 * (n4 + 1e3) / 1e3 : ((t6 += 240 * n4 / 1e3) < 0 && (t6 = 0), t6 > 240 && (t6 = 240), t6);
              }, t5;
            })(), l = /rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/, h = (function() {
              function t5() {
              }
              return t5.j = function(t6) {
                var n4 = t6.a, e4 = t6.r, i4 = t6.g, o2 = t6.b;
                return 3 === arguments.length && (n4 = 255, e4 = arguments[0], i4 = arguments[1], o2 = arguments[2]), 4 === arguments.length && (n4 = arguments[0], e4 = arguments[1], i4 = arguments[2], o2 = arguments[3]), 255 === n4 ? "#" + r2(e4, true, 2) + r2(i4, true, 2) + r2(o2, true, 2) : "rgba(" + e4 + "," + i4 + "," + o2 + "," + n4 + ")";
              }, t5.Tv = function(t6, n4) {
                return t6.stops || t6.type ? JSON.stringify(t6) === JSON.stringify(n4) : t6.a === n4.a && t6.r === n4.r && t6.g === n4.g && t6.b === n4.b;
              }, t5.rp = function(t6) {
                return (299 * t6.r + 587 * t6.g + 114 * t6.b) / 1e3;
              }, t5.Km = function(t6, n4) {
                var e4, i4 = 255 - u(t6.r - n4.r), r3 = 255 - u(t6.g - n4.g), o2 = 255 - u(t6.b - n4.b), a2 = u(t6.a - n4.a);
                return !!((e4 = ((i4 /= 255) + (r3 /= 255) + (o2 /= 255)) / 3) >= 0.9 && a2 <= 0.05);
              }, t5.Uv = function(n4) {
                var e4 = 255 ^ n4.r, i4 = 255 ^ n4.g, r3 = 255 ^ n4.b;
                return t5.j(n4.a, e4, i4, r3);
              }, t5.WGt = function(n4) {
                var i4, r3, o2, a2;
                return "object" != typeof document ? g(n4) : ((i4 = t5.xf) || (r3 = document.createElement("canvas")) && r3.getContext && (i4 = t5.xf = r3.getContext("2d", { willReadFrequently: true })), i4 || ((o2 = e3("canvas")) && o2.createCanvas && (r3 = o2.createCanvas(2, 2), i4 = t5.xf = r3.getContext("2d")), i4) ? (i4.clearRect(1, 1, 1, 1), i4.fillStyle = n4, i4.fillRect(1, 1, 1, 1), (a2 = i4.getImageData(1, 1, 1, 1)) ? a2.data : null) : g(n4));
              }, t5._ = function(n4) {
                var e4, i4, r3, o2, a2;
                return n4 instanceof t5 || null !== n4 && "object" == typeof n4 ? n4 : (e4 = 0, i4 = 0, r3 = 0, o2 = 0, n4 && (a2 = t5.WGt(n4)) && (i4 = a2[0], r3 = a2[1], o2 = a2[2], e4 = a2[3]), { a: e4, r: i4, g: r3, b: o2 });
              }, t5.Cv = function(n4, e4) {
                var i4, r3;
                return 0 === e4 ? n4 : (i4 = new f(n4), r3 = s((e4 > 0 ? (240 - i4.HGt) * e4 : i4.HGt * e4) + "", 10), t5.QGt(i4.wv, i4.HGt + r3, i4.zGt));
              }, t5.YGt = function(n4, e4) {
                var i4 = t5._(n4), r3 = new f(i4), o2 = r3.YGt(e4);
                return t5.j(o2);
              }, t5.Dz = d, t5.QGt = v, t5;
            })(), n3.ft = h;
          }, "./src/common/util/common.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u;
            function s(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2;
              if (t5 && 0 <= e4 && e4 < n4) {
                for (r3 = [], o2 = void 0, a2 = void 0, a2 = e4; a2 < n4; a2++) void 0 !== t5[a2] && r3.push(a2);
                for (o2 = r3.length, a2 = 0; a2 < o2; a2++) s2 = t5[u2 = r3[o2 - a2 - 1]], t5[u2] = null, t5[Math.floor(u2) + i4] = s2;
              }
            }
            function c(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2, c2;
              if (t5 && 0 <= e4 && e4 < n4) {
                for (r3 = [], o2 = void 0, a2 = e4 + i4, u2 = void 0, u2 = e4; u2 < n4; u2++) void 0 !== t5[u2] && (e4 <= u2 && u2 < a2 ? t5[u2] = null : u2 >= a2 && r3.push(u2));
                for (o2 = r3.length, u2 = 0; u2 < o2; u2++) c2 = t5[s2 = r3[u2]], t5[s2] = null, t5[Math.floor(s2) - i4] = c2;
              }
            }
            function f(t5, n4) {
              return t5.hasOwnProperty(n4);
            }
            function l(t5, n4) {
              return t5 instanceof n4;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.ut = n3.kh = n3.X8 = n3.J8 = n3.ResourceManager = n3.SR = void 0, i3 = e3("./src/common/culture/cultureInfo.ts"), r2 = e3("./src/common/util/util.res.en.ts"), o = e3("./src/common/util/types.ts"), n3.SR = { en: r2 }, a = o.lt.Dh, u = (function() {
              function t5(t6, n4) {
                this.res = t6, this.KGt = n4, this.JPt = i3.CultureManager.JPt, this.cachedResource = this.JGt(t6, true), this.XGt(this.cachedResource, n4), this.KPt = 0;
              }
              return t5.prototype.getResource = function() {
                var t6 = this.JGt(this.res, !this.cachedResource);
                return t6 && (this.cachedResource = t6), this.XGt(this.cachedResource, this.KGt), this.cachedResource;
              }, t5.prototype.XGt = function(t6, n4) {
                var e4, r3;
                n4 && (r3 = (e4 = i3.CultureManager.culture()).toLowerCase(), this.JPt[r3] = this.JPt[r3] || {}, this.JPt[r3][n4] = t6, i3.CultureManager.JPt = this.JPt);
              }, t5.prototype.JGt = function(t6, n4) {
                var e4, r3, o2, u2 = i3.CultureManager.culture();
                if (t6 && u2) {
                  if (e4 = i3.CultureManager.KPt, this.KPt === e4 && !n4) return;
                  return this.KPt = e4, i3.CultureManager.getLanguage(u2) ? (r3 = a(true, {}, t6.en), i3.CultureManager.FGt(u2, r3, this.KGt), r3) : (o2 = u2.substr(0, 2).toLowerCase(), t6.hasOwnProperty(o2) ? t6[o2] : t6.en);
                }
                return {};
              }, t5;
            })(), n3.ResourceManager = u, n3.J8 = s, n3.X8 = c, n3.kh = f, n3.ut = l;
          }, "./src/common/util/datetimehelper.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d, v, p, g, m, b;
            function y(t5, n4) {
              if (i3.HandleExcelSpecialDate) return i3.HandleExcelSpecialDate.apply(null, [t5, n4]);
              switch (n4) {
                case 0:
                  return t5.getFullYear();
                case 1:
                  return t5.getMonth();
                case 2:
                  return t5.getDate();
                default:
                  return;
              }
            }
            function w(t5, e4, i4, r3) {
              var o2, u2, s2, f2, l2, h2, g2, m2, b2, C2, S2, T2, x2, A, I, k, N, j, D, _, O, E, R, L, F = i4.DateTimeFormat, B = F.Calendar.convert;
              if (!e4 || !e4.length) return i4 && i4.name.length ? B ? w(t5, F.fullDateTimePattern, i4) : t5.toLocaleString() : t5.toString();
              function P() {
                return l2 || h2 || (l2 = g2.test(e4), h2 = d), l2;
              }
              function G(t6, n4) {
                return C2 ? C2[n4] : y(t6, n4);
              }
              for (o2 = F.eras, s2 = "", g2 = /([^d]|^)(d|dd)([^d]|$)/g, m2 = 0, b2 = /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g, !(u2 = "s" === e4) && B && (C2 = B.fromGregorian(t5)), S2 = -2, T2 = -2, x2 = { y4: "" }, A = 0; I = b2.lastIndex, k = b2.exec(e4), N = e4.slice(I, k ? k.index : e4.length), x2.y4 = "", m2 += M(N, x2), s2 += x2.y4, k; A++) if (m2 % 2 != 1) switch (j = G(t5, 0), D = t5.getDay(), _ = t5.getHours(), O = t5.getMinutes(), E = t5.getSeconds(), R = t5.getMilliseconds(), L = t5.getTimezoneOffset(), k[0]) {
                case "dddd":
                  s2 += F.dayNames[D];
                  break;
                case "ddd":
                  s2 += F.abbreviatedDayNames[D];
                  break;
                case "dd":
                  l2 = d, s2 += c(G(t5, 2), 2);
                  break;
                case "d":
                  l2 = d, s2 += G(t5, 2);
                  break;
                case "MMMM":
                  s2 += F.monthGenitiveNames && P() ? F.monthGenitiveNames[G(t5, 1)] : F.monthNames[G(t5, 1)];
                  break;
                case "MMM":
                  s2 += F.abbreviatedMonthGenitiveNames && P() ? F.abbreviatedMonthGenitiveNames[G(t5, 1)] : F.abbreviatedMonthNames[G(t5, 1)];
                  break;
                case "MM":
                  s2 += c(G(t5, 1) + 1, 2);
                  break;
                case "M":
                  s2 += G(t5, 1) + 1;
                  break;
                case "yyyy":
                case "yyy":
                  s2 += S2 >= 0 ? a.XPt.DGt("ee", t5, r3) : c(C2 ? C2[0] : j, 4);
                  break;
                case "yy":
                  s2 += S2 >= 0 ? a.XPt.DGt("ee", t5, r3) : c((C2 ? C2[0] : j) % 100, 2);
                  break;
                case "y":
                  s2 += S2 >= 0 ? a.XPt.DGt("e", t5, r3) : ((C2 ? C2[0] : j) % 100).toString();
                  break;
                case "hh":
                  0 === (f2 = _ % 12) && (f2 = 12), s2 += c(f2, 2);
                  break;
                case "h":
                  0 === (f2 = _ % 12) && (f2 = 12), s2 += f2;
                  break;
                case "HH":
                  s2 += c(_, 2);
                  break;
                case "H":
                  s2 += _.toString();
                  break;
                case "mm":
                  s2 += c(O, 2);
                  break;
                case "m":
                  s2 += O.toString();
                  break;
                case "ss":
                  s2 += c(E, 2);
                  break;
                case "s":
                  s2 += E.toString();
                  break;
                case "tt":
                  s2 += _ < 12 ? F.amDesignator : F.pmDesignator;
                  break;
                case "t":
                  s2 += (_ < 12 ? F.amDesignator : F.pmDesignator).charAt(0);
                  break;
                case "f":
                case "0":
                  s2 += c(R, 3).charAt(0);
                  break;
                case "ff":
                case "00":
                  s2 += c(R, 3).substr(0, 2);
                  break;
                case "fff":
                case "000":
                  s2 += c(R, 3);
                  break;
                case "z":
                  s2 += ((f2 = L / 60) <= 0 ? "+" : "-") + v(p(f2));
                  break;
                case "zz":
                  s2 += ((f2 = L / 60) <= 0 ? "+" : "-") + c(v(p(f2)), 2);
                  break;
                case "zzz":
                  s2 += ((f2 = L / 60) <= 0 ? "+" : "-") + c(v(p(f2)), 2) + ":" + c(p(L % 60), 2);
                  break;
                case "g":
                case "gg":
                case "ggg":
                  if (!o2) break;
                  if (S2 === A - 1) {
                    S2 = A;
                    break;
                  }
                  s2 += a.XPt.DGt(k[0], t5, r3), S2 = A;
                  break;
                case "e":
                case "ee":
                  if (!o2) {
                    s2 += c(C2 ? C2[0] : j, 4);
                    break;
                  }
                  if (T2 === A - 1) {
                    T2 = A;
                    break;
                  }
                  s2 += a.XPt.DGt(k[0], t5, r3), T2 = A;
                  break;
                case "/":
                  s2 += F.dateSeparator;
                  break;
                default:
                  if (!/\[(H+|h+|m+|s+)\]/.test(k[0])) throw new Error((0, n3.getSR)().Exp_InvalidDateFormat);
                  s2 += k[0];
              }
              else s2 += k[0];
              return s2.toString();
            }
            function M(t5, n4) {
              var e4, i4, r3, o2 = 0, a2 = h;
              for (e4 = 0, i4 = t5.length; e4 < i4; e4++) switch (r3 = t5.charAt(e4)) {
                case '"':
                  a2 ? n4.y4 += "'" : o2++, a2 = h;
                  break;
                case "\\":
                  a2 && (n4.y4 += "\\"), a2 = !a2;
                  break;
                default:
                  n4.y4 += r3, a2 = h;
              }
              return o2;
            }
            function C(t5, n4) {
              var e4, i4 = /* @__PURE__ */ new Date(), r3 = t5.DateTimeFormat.eras;
              return r3 && n4 < 100 && (n4 += (e4 = a.XPt.TGt(i4).IGt) - e4 % 100) > t5.DateTimeFormat.Calendar.TwoDigitYearMax && (n4 -= 100), n4;
            }
            function S() {
              return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;
            }
            function T(t5, e4, i4) {
              var r3, a2, u2, s2, c2, l2, h2, d2, v2, p2, g2;
              if (t5.qGt) {
                if (t5.qGt[e4]) return t5.qGt[e4];
              } else t5.qGt = {};
              for (r3 = (r3 = (r3 = e4).replace("%M", "M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g, "\\\\$1"), a2 = "^", u2 = { y4: "" }, s2 = [], c2 = 0, l2 = 0, h2 = /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g; (d2 = h2.exec(r3)) !== f; ) if (u2.y4 = "", v2 = r3.slice(c2, d2.index), c2 = h2.lastIndex, l2 += M(v2, u2), a2 += u2.y4, l2 % 2 != 1) {
                switch (d2[0]) {
                  case "dddd":
                  case "ddd":
                  case "MMMM":
                  case "MMM":
                  case "gggg":
                  case "ggg":
                  case "gg":
                  case "g":
                    a2 += "(\\D+)";
                    break;
                  case "tt":
                  case "t":
                    a2 += "(\\D*)";
                    break;
                  case "dd":
                  case "d":
                  case "MM":
                  case "M":
                  case "yy":
                  case "y":
                  case "HH":
                  case "H":
                  case "hh":
                  case "h":
                  case "mm":
                  case "m":
                  case "ss":
                  case "s":
                    a2 += "(\\d\\d?\\d?)";
                    break;
                  case "eee":
                  case "ee":
                  case "e":
                    a2 += i4 ? "(\\u5143|\\d\\d?)" : "(\\d\\d?)";
                    break;
                  case "yyy":
                  case "yyyy":
                    a2 += "(\\d{2}|\\d{4})";
                    break;
                  case "fff":
                  case "000":
                    a2 += "(\\d{3})";
                    break;
                  case "ff":
                  case "00":
                    a2 += "(\\d{2})";
                    break;
                  case "f":
                  case "0":
                    a2 += "(\\d)";
                    break;
                  case "zzz":
                    a2 += "([+-]?\\d\\d?:\\d{2})";
                    break;
                  case "zz":
                  case "z":
                    a2 += "([+-]?\\d\\d?)";
                    break;
                  case "/":
                    a2 += "/" === t5.dateSeparator ? "(\\/)" : "([\\/\\" + t5.dateSeparator + "])";
                    break;
                  default:
                    throw new Error((0, n3.getSR)().Exp_InvalidDateFormat);
                }
                o.Uf.ZP(s2, d2[0]);
              } else a2 += d2[0];
              return u2.y4 = "", M(r3.slice(c2), u2), a2 += u2.y4, g2 = { $Gt: p2 = (a2 += "$").toString().replace(/\s+/g, "\\s+"), QMt: s2, tUt: new RegExp(p2) }, t5.qGt[e4] = g2, g2;
            }
            function x(t5) {
              var n4 = t5.getTimezoneOffset();
              return -485 === n4 && (n4 = -485 - 43 / 60), -321 === n4 && (n4 = -321 - 10 / 60), -507 === n4 && (n4 = -507 - 52 / 60), -402 === n4 && (n4 = -402 - 4 / 60), n4;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.ct = n3.getSR = void 0, i3 = e3("./src/common/util/common.ts"), r2 = e3("./src/common/util/stringhelper.ts"), o = e3("./src/common/util/arrayhelper.ts"), a = e3("./src/common/culture/cultureInfo.ts"), u = e3("./src/common/util/types.ts"), s = u.lt.ht, c = r2.zf.B9t, f = null, l = parseInt, h = false, d = true, v = Math.floor, p = Math.abs, g = new i3.ResourceManager(i3.SR, "Common"), n3.getSR = g.getResource.bind(g), m = {}, b = (function() {
              function t5() {
              }
              return t5.L9t = function(t6, n4, e4, i4) {
                return e4 || (e4 = a.CultureManager.Fe()), w(t6, n4, e4, i4);
              }, t5.Pe = function(t6, n4, e4) {
                return w(t6, n4, e4 || a.CultureManager.Fe());
              }, t5.Mjt = function(n4, e4, i4) {
                var r3, o2, a2, u2, s2, c2 = h;
                for ((s2 = i4).slice(1).forEach((function(t6) {
                  t6 && (c2 = true);
                })), c2 || (s2 = s2.concat(e4.qPt())), o2 = s2.length, r3 = 1; r3 < o2; r3++) if ((u2 = s2[r3]) && (c2 = d, a2 = t5.nUt(n4, u2, e4))) return a2;
                return f;
              }, t5.yU = function(n4, e4, i4) {
                var r3, o2;
                return e4 || i4 || void 0 === (o2 = m[n4]) ? (r3 = e4 ? [n4, e4] : [n4], o2 = t5.Mjt(n4, i4 || a.CultureManager.Fe(), r3), e4 || i4 || (m[n4] = o2), o2 ? new Date(o2) : o2) : o2 ? new Date(o2) : o2;
              }, t5.Z6t = function(n4, e4) {
                return t5.Mjt(n4, a.CultureManager.Fe("invariant"), [n4, e4]);
              }, t5.nUt = function(t6, n4, e4) {
                var i4, o2, u2, s2, c2, d2, v2, p2, g2, m2, b2, y2, w2, M2, S2, x2, A, I, k, N, j, D, _, O, E, R, L, F, B, P;
                if (t6 = t6.trim(), (s2 = (u2 = T(i4 = e4.DateTimeFormat, n4, o2 = 1041 === e4.id)).tUt.exec(t6)) === f) return f;
                for (c2 = u2.QMt, d2 = f, v2 = f, p2 = f, g2 = f, m2 = f, b2 = 0, w2 = 0, M2 = 0, S2 = 0, x2 = f, A = h, I = h, k = 0, N = c2.length; k < N; k++) if (j = s2[k + 1]) switch (c2[k]) {
                  case "dd":
                  case "d":
                    if ((g2 = l(j, 10)) < 1 || g2 > 31) return f;
                    break;
                  case "MMMM":
                    if ((p2 = e4.tGt(j)) < 0 || p2 > 11) return f;
                    break;
                  case "MMM":
                    if ((p2 = e4.iGt(j)) < 0 || p2 > 11) return f;
                    break;
                  case "M":
                  case "MM":
                  case "%M":
                    if ((p2 = l(j, 10) - 1) < 0 || p2 > 11) return f;
                    break;
                  case "e":
                  case "ee":
                    if ((v2 = o2 && "元" === j ? 1 : C(e4, l(j, 10))) < 0 || v2 > 9999) return f;
                    break;
                  case "y":
                  case "yy":
                  case "yyy":
                  case "yyyy":
                    if ((v2 = l(j, 10)) < 0 || v2 > 9999) return f;
                    break;
                  case "h":
                  case "hh":
                  case "H":
                  case "HH":
                    if ((b2 = l(j, 10)) < 0) return f;
                    break;
                  case "m":
                  case "mm":
                    if ((w2 = l(j, 10)) < 0 || w2 > 59) return f;
                    break;
                  case "s":
                  case "ss":
                    if ((M2 = l(j, 10)) < 0 || M2 > 59) return f;
                    break;
                  case "tt":
                  case "t":
                    if (A = (D = j.toUpperCase()) === i4.pmDesignator.toUpperCase(), I = D === i4.amDesignator.toUpperCase(), !A && !I) return f;
                    break;
                  case "f":
                  case "0":
                    if ((S2 = 100 * l(j, 10)) < 0 || S2 > 999) return f;
                    break;
                  case "ff":
                  case "00":
                    if ((S2 = 10 * l(j, 10)) < 0 || S2 > 999) return f;
                    break;
                  case "fff":
                  case "000":
                    if ((S2 = l(j, 10)) < 0 || S2 > 999) return f;
                    break;
                  case "dddd":
                    if ((m2 = e4.aGt(j)) < 0 || m2 > 6) return f;
                    break;
                  case "ddd":
                    if ((m2 = e4.sGt(j)) < 0 || m2 > 6) return f;
                    break;
                  case "zzz":
                    if (2 !== (_ = j.split(/:/)).length) return f;
                    if ((y2 = l(_[0], 10)) < -12 || y2 > 13) return f;
                    if ((O = l(_[1], 10)) < 0 || O > 59) return f;
                    x2 = 60 * y2 + (r2.zf.fJ(j, "-") ? -O : O);
                    break;
                  case "z":
                  case "zz":
                    if ((y2 = l(j, 10)) < -12 || y2 > 13) return f;
                    x2 = 60 * y2;
                    break;
                  case "g":
                  case "gg":
                  case "ggg":
                    if (!(E = j) || !i4.eras) return f;
                    if ((d2 = a.XPt.kGt(c2[k], E)) < 0) return f;
                }
                if (L = (R = /^(\d|\d\d|\d\d\d):/.test(t6)) ? new Date(1899, 11, 30) : /* @__PURE__ */ new Date(), (B = i4.Calendar.convert) && (F = B.fromGregorian(L)), B || (F = [L.getFullYear(), L.getMonth(), L.getDate()]), v2 === f ? v2 = F[0] : v2 < 100 && (i4.eras && d2 !== f ? v2 = a.XPt.NGt(d2 || 0, v2) : v2 += v2 >= 30 ? 1900 : 2e3), p2 === f && (p2 = F[1]), g2 === f && (g2 = R ? F[2] : 1), B) {
                  if ((L = B.toGregorian(v2, p2, g2)) === f) return f;
                } else {
                  if (L.setFullYear(v2, p2, g2), L.getDate() !== g2) return f;
                  if (m2 !== f && L.getDay() !== m2) return f;
                }
                return A && b2 < 12 ? b2 += 12 : I && 12 === b2 && (b2 = 0), L.setHours(b2, w2, M2, S2), x2 !== f && (P = L.getMinutes() - (x2 + L.getTimezoneOffset()), L.setHours(L.getHours() + P / 60, P % 60)), L;
              }, t5.Y0 = function(t6) {
                var n4, e4 = t6 - 25569, i4 = new Date(864e5 * e4), r3 = x(i4), o2 = Math.round(864e5 * (t6 - 25569 + r3 / 1440)), a2 = new Date(o2), u2 = r3 >= 0 ? 1 : -1, s2 = new Date(o2 + 36e5 * u2), c2 = x(s2);
                if (p(r3 - c2) >= 60) {
                  if (n4 = new Date(o2 + 60 * (c2 - r3) * 1e3), r3 > c2) {
                    if (-1 === u2 || c2 === x(a2)) return n4;
                  } else if (r3 < c2 && (1 === u2 || c2 === x(a2))) return n4;
                }
                return a2;
              }, t5.dJ = function(n4) {
                if ("/OADate(" === n4.substr(0, 8)) {
                  var e4 = parseFloat(n4.substr(8, n4.length - 10));
                  return t5.Y0(e4);
                }
              }, t5.Q0 = function(n4) {
                return "/OADate(" + t5.o0(n4) + ")/";
              }, t5.o0 = function(t6) {
                if (s(t6)) return 0;
                if ("number" != typeof t6 && "string" != typeof t6 || (t6 = new Date(t6)), t6 instanceof Date) {
                  var n4 = x(t6);
                  return (1440 * t6.getTime() + 3181192704e6 - 864e5 * n4) / 124416e6;
                }
                return 0;
              }, t5._DT = function(e4) {
                var i4, r3, o2, a2 = f, u2 = d;
                if (s(e4) ? a2 = t5.Y0(0) : e4 instanceof Date ? a2 = new Date(e4.valueOf()) : "string" == typeof e4 ? ((i4 = t5.yU(e4)) || (isNaN(e4) ? t5.u6t(e4) ? u2 = h : (i4 = new Date(e4), isNaN(i4.valueOf()) && (u2 = h), (o2 = (r3 = /^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(e4.replace(/ |\n/g, "").trim())) && 4 === o2.length && (-1 !== o2.indexOf(i4.getFullYear().toString()) && -1 !== o2.indexOf((i4.getMonth() + 1).toString()) && -1 !== o2.indexOf(i4.getDate().toString()) || (u2 = h))) : (i4 = t5.Y0(parseFloat(e4))) || (u2 = h)), a2 = i4) : "number" == typeof e4 ? a2 = t5.Y0(e4) : u2 = h, u2) return a2;
                throw (0, n3.getSR)().Exp_InvalidCast;
              }, t5.u6t = function(n4) {
                var e4 = a.CultureManager.Fe().DateTimeFormat, i4 = t5.eUt, r3 = function(t6, n5) {
                  var e5 = 0;
                  return n5.forEach((function(n6) {
                    n6 && t6.indexOf(n6) > -1 && e5++;
                  })), e5 > 1;
                }, o2 = function(t6, n5) {
                  if (t6 && t6.indexOf(" ") > -1) {
                    var e5 = t6.split(" "), i5 = e5.length;
                    return i5 >= 2 && n5.indexOf(e5[i5 - 2]) <= -1 && !isNaN(e5[i5 - 1]);
                  }
                  return false;
                }, u2 = function(t6) {
                  var n5 = false;
                  return i4.forEach((function(e5) {
                    t6.indexOf(e5) > -1 && (n5 = true);
                  })), n5;
                };
                return r3(n4, e4.monthNames) || r3(n4, e4.abbreviatedMonthNames) || r3(n4, e4.dayNames) || r3(n4, e4.abbreviatedDayNames) || o2(n4, e4.monthNames.concat(e4.abbreviatedMonthNames)) || u2(n4);
              }, t5.W0 = function(t6) {
                return t6 && (t6.constructor === Date || t6.getUTCDate && t6.setFullYear);
              }, t5.eUt = ["@", "#", "!", "`", "^", "$", "*", "(", ")", "&"], t5;
            })(), n3.ct = b;
          }, "./src/common/util/functionhelper.ts": function(t4, n3, e3) {
            var i3, r2, o, a;
            function u(t5) {
              return t5;
            }
            function s(t5, n4, e4, u2, s2, c2, f2, l, h, d, v) {
              var p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P = e4[o], G = e4[a], U = n4[o], H = n4[a], V = u2[o], z = u2[a], Y = 1 === G, Z = 1 === H;
              if (U === P && H === G) {
                for (D = 0, _ = 0, O = 0, E = 0, M = P * G, p = 0; p < P; p++) for (g = 0; g < G; g++) {
                  if (b = c2(e4[p][g]), y = c2(n4[p][g]), t5 && (r2(b) || r2(y))) return h;
                  D += b, _ += b * b, O += y = d(y), E += b * y;
                }
                for (R = M * E - D * O, C = s2 ? (O * _ - D * E) / (M * _ - D * D) : 0, ((L = (w = s2 ? R / (M * _ - D * D) : E / _).toString()).indexOf("000000000000") > 1 || L.indexOf("999999999999") > 1) && (w = i3.st.E8(w, 12), C = i3.st.E8(C, 12)), S = [], p = 0; p < V; p++) for (S[p] = [], g = 0; g < z; g++) {
                  if (b = c2(u2[p][g]), t5 && r2(b)) return h;
                  S[p][g] = 0 === R ? n4[0][0] : v(i3.st.Jme(w * b, C));
                }
                return f2 ? new f2(S) : S;
              }
              if (Z && U === P || 1 === U && H === G) {
                for (b = [], y = [], N = G + 1, j = G + 2, p = 0; p < P; p++) {
                  if (C = c2(x = Z ? n4[p][0] : n4[0][p]), t5 && r2(C)) return h;
                  y[p] = Y ? d(C) : C;
                }
                for (p = 0; p < P; p++) for (b[p] = [], g = 0; g < G; g++) {
                  if (C = c2(e4[p][g]), t5 && r2(C)) return h;
                  b[p][g] = C;
                }
                for (F = [], w = 0; w < N; w++) for (F[w] = [], M = 0; M < j; M++) F[w][M] = 0;
                for (m = 0; m < P; m++) for (F[0][N] += y[m], p = 0; p < G; p++) for (x = p + 1, F[0][x] += b[m][p], F[x][0] = F[0][x], F[x][N] += b[m][p] * y[m], g = p; g < G; g++) F[I = g + 1][x] += b[m][p] * b[m][g], F[x][I] = F[I][x];
                for (F[0][0] = P, T = B = s2 ? 0 : 1; T < N; T++) {
                  if (t5) {
                    if (0 === F[T][T]) {
                      for (k = false, g = T + 1; !k && g < N; g++) if (0 !== F[g][T]) {
                        for (m = 0; m < j; m++) I = F[T][m], F[T][m] = F[g][m], F[g][m] = I;
                        k = true;
                      }
                      if (!k) return l;
                    }
                  } else {
                    for (p = T; p < N && 0 === F[p][T]; ) p++;
                    if (p >= N) return l;
                    for (A = B; A < j; A++) x = F[T][A], F[T][A] = F[p][A], F[p][A] = x;
                  }
                  for (x = 1 / F[T][T], A = B; A < j; A++) F[T][A] *= x;
                  for (p = B; p < N; p++) if (p !== T) for (x = -F[p][T], A = 0; A < j; A++) F[p][A] += x * F[T][A];
                  s2 || (F[0][N] = 0);
                }
                for (S = [], Z || (S[0] = []), p = 0; p < V; p++) {
                  for (Z && (S[p] = []), x = F[0][N], g = 0; g < G; g++) {
                    if (C = c2(Z ? u2[p][g] : u2[g][p]), t5 && r2(C)) return h;
                    x += F[g + 1][N] * C;
                  }
                  Z ? S[p][0] = v(x) : S[0][p] = v(x);
                }
                return f2 ? new f2(S) : S;
              }
              return l;
            }
            function c(t5, n4, e4, i4, r3, o2, a2, c2) {
              return s(true, t5, n4, e4, i4, r3, o2, c2, a2, u, u);
            }
            function f(t5, n4, e4, i4, r3, c2, f2) {
              var l, h;
              for (l = 0; l < t5[o]; l++) for (h = 0; h < t5[a]; h++) if (t5[l][h] <= 0) return c2;
              return s(false, t5, n4, e4, i4, u, r3, f2, null, Math.log, Math.exp);
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.iit = n3.eit = void 0, i3 = e3("./src/common/util/numberhelper.ts"), r2 = isNaN, o = "rowCount", a = "colCount", n3.eit = c, n3.iit = f;
          }, "./src/common/util/numberhelper.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E;
            function R(t5, n4, e4, i4) {
              return n4 && 0 !== n4.length && "i" !== n4 ? L(t5, n4, e4.NumberFormat, i4) : e4 && e4.name.length > 0 ? t5.toLocaleString() : t5.toString();
            }
            function L(t5, n4, e4, i4) {
              var r3;
              return J(t5, P(n4), e4, i4);
            }
            function F(t5, n4) {
              for (var e4, i4, r3, o2, a2, u2, s2, c2, f2 = m(b(t5)), l2 = { iUt: 1, rUt: 0 }; f2 >= 10 && Number.isFinite(f2); ) f2 /= 10, l2.iUt++;
              return i4 = (e4 = t5.toString()).search(/e/gi), r3 = e4.indexOf(n4), -1 !== i4 ? (a2 = T(e4, 0, i4), u2 = T(e4, i4 + 1), s2 = 0, -1 !== r3 && (s2 = T(a2, r3 + 1).length), (o2 = s2 - (c2 = v(u2))) < 0 && (o2 = 0), l2.rUt = o2) : (o2 = 0, -1 !== r3 && (o2 = T(e4, r3 + 1).length), l2.rUt = o2), l2;
            }
            function B(t5) {
              var n4, e4 = { oUt: t5.charAt(0), aUt: 0, tUt: 0 }, i4 = "";
              for (n4 = 1; n4 < t5.length; n4++) if ("+" === (i4 = t5.charAt(n4))) e4.aUt = 1;
              else {
                if ("-" !== i4) {
                  if ("0" === i4) {
                    e4.tUt = t5.length - n4;
                    break;
                  }
                  throw new Error(I().Exp_InvalidExponentFormat);
                }
                e4.aUt = -1;
              }
              return e4;
            }
            function P(t5) {
              var n4, e4, i4, r3, o2, a2, u2 = { uUt: l, sUt: l, rCt: p, fxt: 0, d0: 0, cUt: 0, fUt: l }, s2 = "", c2 = p, f2 = p, h2 = p, d2 = p, v2 = p, m2 = p, b2 = l, y2 = [];
              for (e4 = 0; e4 < t5.length; e4++) {
                if (n4 = t5.charAt(e4), c2) s2 += n4, '"' === n4 && (y2.push(s2), s2 = "", c2 = p);
                else if (f2) {
                  if ("E" === b2 || "e" === b2) {
                    if (!(["+", "-", "0"].indexOf(n4) >= 0)) {
                      f2 = p, e4--;
                      continue;
                    }
                    s2 += n4;
                  } else if ("+" === b2 || "-" === b2) {
                    if ("0" !== n4) {
                      f2 = p, e4--;
                      continue;
                    }
                    s2 += n4;
                  } else if ("0" === b2) {
                    if ("0" !== n4) {
                      f2 = p, v2 || (v2 = g, u2.fUt = B(s2)), e4--;
                      continue;
                    }
                    s2 += n4;
                  }
                } else if ("*" !== b2 && "_" !== b2 && "\\" !== b2 || "" === s2) if ("*" === n4 || "_" === n4 || "\\" === n4) m2 = p, "" !== s2 && (y2.push(s2), s2 = ""), s2 += n4;
                else if ("'" === n4) m2 = p, "" !== s2 && (y2.push(s2), s2 = ""), y2.push(n4);
                else if ('"' === n4) m2 = p, c2 = g, "" !== s2 && (y2.push(s2), s2 = ""), s2 += n4;
                else if (_.indexOf(n4) >= 0) m2 = g, _.indexOf(b2) < 0 && "" !== s2 && (y2.push(s2), s2 = ""), s2 += n4;
                else if ("." !== n4 || h2) if ("%" === n4) m2 = p, u2.d0++, "" !== s2 && (y2.push(s2), s2 = ""), y2.push(n4);
                else if ("‰" === n4) m2 = p, u2.cUt++, "" !== s2 && (y2.push(s2), s2 = ""), y2.push(n4);
                else if ("," === n4) if (m2) {
                  for (i4 = void 0, "" !== s2 && (y2.push(s2), s2 = ""), r3 = g, o2 = "", a2 = e4 + 1; a2 < t5.length; a2++) if (i4 = t5.charAt(a2), '"' !== o2) if ("\\" !== o2 && "_" !== o2) {
                    if (_.indexOf(i4) >= 0) {
                      r3 = p;
                      break;
                    }
                    if ("." === i4 || ";" === i4) break;
                    o2 = i4;
                  } else o2 = "";
                  else '"' === i4 && (o2 = "");
                  r3 ? u2.fxt++ : h2 || (i4 = t5.charAt(e4 + 1)) && _.indexOf(i4) >= 0 && (d2 = g);
                } else s2 += n4;
                else "E" === n4 || "e" === n4 ? (m2 = p, f2 = g, "" !== s2 && (y2.push(s2), s2 = ""), s2 += n4) : (m2 = p, _.indexOf(b2) >= 0 && "" !== s2 && (y2.push(s2), s2 = ""), s2 += n4);
                else "" !== s2 && (y2.push(s2), s2 = ""), u2.uUt = y2, y2 = [], h2 = g, m2 = p;
                else s2 += n4, y2.push(s2), s2 = "";
                b2 = n4;
              }
              return "" !== s2 && (f2 && !v2 && (u2.fUt = B(s2)), y2.push(s2)), d2 && (u2.rCt = g), h2 ? u2.sUt = y2 : u2.uUt = y2, u2;
            }
            function G(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2, c2 = n4[0], f2 = 1, l2 = 0, h2 = p, d2 = t5.length;
              for (r3 = 0; r3 < d2; r3++) if ("number" === (o2 = t5[r3].type)) {
                for (a2 = "", s2 = (u2 = t5[r3].value).length - 1; s2 >= 0; ) {
                  if (!(1 <= c2 && c2 <= 9 || 0 === c2 && f2 === n4.length)) throw new Error(I().Exp_InvalidNumberGroupSize);
                  /\d/gi.test(u2[s2]) ? (h2 && (a2 && t5.push({ type: "number", value: a2 }), t5.push({ type: "groupSeparator", value: e4 }), a2 = "", h2 = p), l2++) : l2 = 0, a2 = u2[s2] + a2, l2 === c2 && c2 > 0 && (h2 = g, l2 = 0, f2 < n4.length && (c2 = n4[f2], f2++)), s2--;
                }
                a2 && t5.push({ type: o2, value: a2 });
              } else "fillingChar" === o2 && (i4.infillIndex = t5.length - d2), t5.push({ type: o2, value: t5[r3].value });
              return t5.splice(0, d2);
            }
            function U(t5, n4, e4, i4, r3, o2) {
              var a2, u2, s2, l2, h2 = tt(t5, -n4);
              return isFinite(h2) || (h2 = t5), l2 = (a2 = (t5 = h2).toString()).split(/e/i), a2 = l2[0], s2 = l2.length > 1 ? d(l2[1], 10) : 0, l2 = a2.split("."), a2 = l2[0], u2 = l2.length > 1 ? l2[1] : "", s2 > 0 ? (a2 += (u2 = f(u2, s2)).slice(0, s2), u2 = T(u2, s2)) : s2 < 0 && (s2 = -s2, u2 = (a2 = t5 < 0 ? o2 + c(a2.replace(o2, ""), s2 + 1) : c(a2, s2 + 1)).slice(-s2, a2.length) + u2, a2 = a2.slice(0, -s2)), a2 + (u2 = n4 > 0 ? r3 + (u2 = u2.length > n4 ? u2.slice(0, n4) : f(u2, n4)) : "");
            }
            function H(t5, n4, e4, i4) {
              var r3 = t5;
              return n4 > 0 && (r3 = it(r3 * y(100, n4), 15)), e4 > 0 && (r3 = it(r3 * y(1e3, e4), 15)), i4 > 0 && (r3 = it(r3 / y(1e3, i4), 15)), r3;
            }
            function V(t5) {
              var n4, e4, i4 = l;
              if (t5) for (i4 = "", n4 = 0; n4 < t5.length; n4++) e4 = t5[n4], /^(0|#|\?)+/g.test(e4) && (i4 += e4);
              return i4;
            }
            function z(t5, n4) {
              return t5 === n4 || 0 !== t5 && 0 !== n4 && (b(t5 - n4) < b(t5) / E || (t5 = it(t5, 15), n4 = it(n4, 15), b(t5 - n4) < b(t5) / E));
            }
            function Y(t5, n4) {
              return z(t5, -n4) ? 0 : t5 + n4;
            }
            function Z(t5, n4, e4) {
              var i4, r3, o2 = { value: t5, exponentValue: 0 }, a2 = F(t5, "."), u2 = a2.iUt, s2 = b(t5), c2 = e4 ? e4.length : 1;
              if (s2 >= 1) u2 > c2 ? (u2 -= c2, o2.value = t5 / y(10, u2), o2.exponentValue = u2) : o2.exponentValue = 0, -1 === n4.aUt && (n4.aUt = 0);
              else if (s2 < 1 && s2 > 0) {
                for (n4.aUt = -1, i4 = y(10, c2); 10 * s2 < i4 && !z(10 * s2, i4); ) s2 *= 10, o2.exponentValue++;
                r3 = y(10, o2.exponentValue), o2.value *= r3 > M ? 0 : r3;
              }
              return o2;
            }
            function W(t5, n4, e4, i4, r3, o2, a2, u2) {
              var s2, f2, l2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2 = u2.numberGroupSizes, S2 = u2.numberGroupSeparator, x2 = u2.negativeSign, A2 = u2.percentSymbol, I2 = u2.perMilleSymbol, k2 = i4.fUt, N2 = T(n4, 0, 1);
              for (N2 === x2 && (n4 = T(n4, 1)), n4 = 0 === (s2 = 1 === n4.length && "0" === n4 ? 0 : n4.length) ? "" : n4, f2 = 0, l2 = "", h2 = t5.length - 1; h2 >= 0; h2--) if (d2 = "", v2 = t5[h2], /^(0|#|\?)+/g.test(v2)) {
                if (l2 !== e4) {
                  for (p2 = v2.length, m2 = s2 - f2 - 1; m2 >= 0 && p2 > 0; m2--) d2 = (b2 = n4.charAt(m2)) + d2, p2--, f2++;
                  for (y2 = p2 - 1; y2 >= 0; y2--) f2++, "0" === (w2 = v2[y2]) ? d2 = w2 + d2 : "?" === w2 && ("" !== d2 && (o2.push({ type: "number", value: d2 }), d2 = ""), o2.push({ type: "numberPlaceholder", value: w2 }));
                  (l2 = v2 + l2) === e4 && f2 < s2 && (d2 = n4.substr(0, s2 - f2) + d2), "" !== d2 && o2.push({ type: "number", value: d2 });
                }
              } else i4.fUt && !a2.replaceExponent && /^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v2) ? (a2.replaceExponent = g, M2 = "", M2 += k2.oUt, M2 += j[k2.aUt], M2 += c(r3.toString(), k2.tUt), o2.push({ type: "exponent", value: M2 })) : "_" === v2[0] ? o2.push({ type: "placeholder", value: v2[1] }) : "*" === v2[0] ? a2.hasInfilling || (o2.push({ type: "fillingChar", value: v2[1] }), a2.hasInfilling = true, a2.infillIndex = o2.length - 1) : "\\" === v2[0] ? 2 === v2.length && o2.push({ type: "text", value: v2[1] }) : '"' === v2[0] && '"' === v2[v2.length - 1] ? v2.length > 2 && o2.push({ type: "text", value: v2.substr(1, v2.length - 2) }) : v2 === A2 ? o2.push({ type: "percent", value: v2 }) : v2 === I2 ? o2.push({ type: "permille", value: v2 }) : O[v2] ? o2.push({ type: "currency", value: v2 }) : o2.push({ type: "text", value: v2 });
              N2 === x2 && e4 && o2.push({ type: "text", value: N2 }), i4.rCt === g && G(o2, C2, S2, a2), o2.reverse(), a2.infillIndex = o2.length - 1 - a2.infillIndex;
            }
            function Q(t5, n4, e4, i4, r3, o2, a2, u2, s2) {
              var f2, l2, h2, d2, v2, p2, m2, b2, y2, w2, M2, C2, S2 = s2.numberDecimalSeparator, T2 = s2.percentSymbol, x2 = s2.perMilleSymbol, A2 = n4.indexOf(S2), I2 = r3.fUt;
              for ((A2 > 0 || i4 !== k || e4 !== N) && a2.push({ type: "decimalSeparator", value: S2 }), f2 = -1 !== A2 ? n4.substring(A2 + 1) : "", l2 = 0, h2 = "", d2 = 0; d2 < t5.length; d2++) if (v2 = t5[d2], /^(0|#|\?)+/g.test(v2)) {
                if (p2 = "", h2 !== e4) {
                  for (m2 = v2.length, b2 = 0, y2 = l2; m2 > 0 && f2.length - l2 > 0; ) p2 += f2.charAt(y2), m2--, l2++, b2++, y2++;
                  for (w2 = b2; m2 > 0; ) M2 = v2[w2], w2++, l2++, m2--, "0" === M2 ? p2 += M2 : "?" === M2 && ("" !== p2 && (a2.push({ type: "number", value: p2 }), p2 = ""), a2.push({ type: "numberPlaceholder", value: M2 }));
                  "" !== p2 && a2.push({ type: "number", value: p2 }), h2 += v2;
                }
              } else I2 && !u2.replaceExponent && /^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v2) ? (u2.replaceExponent = g, C2 = "", C2 += I2.oUt, C2 += j[I2.aUt], C2 += c(o2.toString(), I2.tUt), a2.push({ type: "exponent", value: C2 })) : "_" === v2[0] ? a2.push({ type: "placeholder", value: v2[1] }) : "*" === v2[0] ? (a2.push({ type: "fillingChar", value: v2[1] }), u2.hasInfilling && a2.splice(u2.infillIndex, 1), u2.hasInfilling = true, u2.infillIndex = a2.length - 1) : "\\" === v2[0] ? 2 === v2.length && a2.push({ type: "text", value: v2[1] }) : '"' === v2[0] && '"' === v2[v2.length - 1] ? v2.length > 2 && a2.push({ type: "text", value: v2.substr(1, v2.length - 2) }) : v2 === T2 ? a2.push({ type: "percent", value: v2 }) : v2 === x2 ? a2.push({ type: "permille", value: v2 }) : O[v2] ? a2.push({ type: "currency", value: v2 }) : a2.push({ type: "text", value: v2 });
            }
            function K(t5, n4) {
              var e4 = t5, i4 = t5.indexOf(n4);
              return -1 !== i4 && (e4 = t5.replace(/0+$/, "")), e4;
            }
            function J(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, y2, M2, C2, S2 = [];
              return t5 = H(t5, n4.d0, n4.cUt, n4.fxt), r3 = n4.uUt, o2 = n4.sUt, r3 || o2 ? (a2 = V(r3), (u2 = V(o2)) || (u2 = ""), n4.fUt && (t5 = (c2 = Z(t5, n4.fUt, a2)).value, s2 = c2.exponentValue), f2 = F(t5, "."), b(t5) > 1 && f2.iUt + f2.rUt > 15 && (t5 = it(t5, 15)), l2 = e4.numberGroupSizes, h2 = e4.numberGroupSeparator, d2 = e4.numberDecimalSeparator, v2 = e4.negativeSign, m2 = U(t5, g2 = w(f2.rUt, u2.length), l2, h2, d2, v2), i4 || (m2 = K(m2, d2)), "" === m2 ? (S2.push({ type: "text", value: (r3 ? r3.join("") : "") + (o2 ? o2.join("") : "") }), S2) : (y2 = { hasInfilling: p, infillIndex: -1, replaceExponent: p }, "10" !== (M2 = m2.split(d2)[0]) || isNaN(s2) || (M2 = "1", s2 += (C2 = n4 && n4.fUt && -1 === n4.fUt.aUt) ? -1 : 1), r3 && W(r3, M2, a2, n4, s2, S2, y2, e4), t5 === Number.POSITIVE_INFINITY || t5 === Number.NEGATIVE_INFINITY || ("0" !== M2 && "" === a2 && o2 && S2.push({ type: "number", value: M2 }), o2 && Q(o2, m2, u2, a2, n4, s2, S2, y2, e4)), S2)) : S2;
            }
            function X(t5, n4) {
              var e4, i4, r3, o2, u2, c2, f2, h2, p2, g2, m2, b2, y2, w2, M2, C2, S2;
              return (t5 = s(t5) ? "" : a.zf.s6t(t5, "")).match(/^[+-]?infinity$/i) ? v(t5) : t5.match(/^0x[a-f0-9]+$/i) ? d(t5, 10) : (o2 = (r3 = q(t5, e4 = n4.NumberFormat, i4 = e4.numberNegativePattern))[0], u2 = r3[1], "" === o2 && 1 !== i4 && (o2 = (r3 = q(t5, e4, 1))[0], u2 = r3[1]), "" === o2 && (o2 = "+"), u2[0] === e4.currencySymbol && (u2 = T(u2, 1)), (h2 = u2.indexOf("e")) < 0 && (h2 = u2.indexOf("E")), h2 < 0 ? (f2 = u2, c2 = l) : (f2 = T(u2, 0, h2), c2 = T(u2, h2 + 1)), (m2 = f2.indexOf(".")) < 0 ? (p2 = f2, g2 = l) : (p2 = T(f2, 0, m2), g2 = T(f2, m2 + 1)), p2 = p2.split(",").join(""), "," !== (b2 = ",".replace(/\u00A0/g, " ")) && (p2 = p2.split(b2).join("")), y2 = o2 + p2, g2 !== l && (y2 += "." + g2), (w2 = y2[y2.length - 1]) === e4.percentSymbol && (y2 = T(y2, 0, y2.length - 1), -1 === (M2 = (y2 = a.zf.s6t(y2, "")).indexOf(".")) && (M2 = y2.length), C2 = "", C2 += T(y2, 0, M2 - 2), C2 += ".", C2 += T(y2, M2 - 2, 2), y2 = C2 += T(y2, M2 + 1)), c2 !== l && ("" === (S2 = q(c2, e4, 1))[0] && (S2[0] = "+"), y2 += "e" + S2[0] + S2[1]), y2.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/) ? v(y2) : NaN);
            }
            function q(t5, n4, e4) {
              var i4 = n4.negativeSign, r3 = n4.positiveSign;
              if (4 !== e4 && 2 !== e4 || (i4 = " " + i4, r3 = " " + r3), 4 === e4 || 3 === e4) {
                if (a.zf.dT(t5, i4)) return ["-", T(t5, 0, t5.length - i4.length)];
                if (a.zf.dT(t5, r3)) return ["+", T(t5, 0, t5.length - r3.length)];
              } else if (2 === e4 || 1 === e4) {
                if (a.zf.fJ(t5, i4)) return ["-", T(t5, i4.length)];
                if (a.zf.fJ(t5, r3)) return ["+", T(t5, r3.length)];
              } else {
                if (0 !== e4) throw new Error("");
                if (a.zf.fJ(t5, "(") && a.zf.dT(t5, ")")) return ["-", T(t5, 1, t5.length - 2)];
              }
              return ["", t5];
            }
            function $(t5, n4, e4) {
              if (0 !== b(m(t5) - t5)) throw new Error(I().Exp_BadFormatSpecifier);
              var i4 = t5 >= 0 ? t5.toString(16) : (D + t5 + 1).toString(16);
              return i4 = n4 ? i4.toLowerCase() : i4.toUpperCase(), !s(e4) && i4.length < e4 ? c(i4, e4) : i4;
            }
            function tt(t5, n4) {
              var e4, i4;
              return t5 = +t5, n4 = +n4, isNaN(t5) || n4 % 1 != 0 ? NaN : (t5 = (e4 = t5 < 0) ? -t5 : t5, typeof n4 === h || 0 === n4 ? (t5 = Math.round(t5), e4 ? -t5 : t5) : (i4 = t5.toString().split("e"), t5 = Math.round(+(i4[0] + "e" + (i4[1] ? +i4[1] - n4 : -n4))), +((i4 = (t5 = e4 ? -t5 : t5).toString().split("e"))[0] + "e" + (i4[1] ? +i4[1] + n4 : n4))));
            }
            function nt(t5) {
              var n4 = u.CultureManager.Fe().NumberFormat;
              return "string" == typeof t5 && (n4 = u.CultureManager.Fe(t5).NumberFormat), n4;
            }
            function et(t5) {
              var n4, e4, i4, r3 = "";
              if (Array.isArray(t5) && t5.length > 0) for (n4 = 0; n4 < t5.length; n4++) if (e4 = t5[n4].type, i4 = t5[n4].value, "placeholder" === e4) r3 += " ";
              else {
                if ("fillingChar" === e4) continue;
                r3 += "numberPlaceholder" === e4 ? " " : i4;
              }
              return r3;
            }
            function it(t5, n4) {
              return "number" == typeof t5 && t5.toString().length >= n4 && (t5 = +t5.toPrecision(n4)), t5;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.st = void 0, i3 = e3("./src/common/util/common.ts"), r2 = e3("./src/common/util/types.ts"), o = e3("./src/common/util/regexhelper.ts"), a = e3("./src/common/util/stringhelper.ts"), u = e3("./src/common/culture/cultureInfo.ts"), s = r2.lt.ht, c = a.zf.B9t, f = a.zf.lUt, l = null, h = void 0, d = parseInt, v = parseFloat, p = false, g = true, m = Math.floor, b = Math.abs, y = Math.pow, w = Math.min, M = Number.MAX_VALUE, C = "#dot#", S = "#group#", T = function(t5, n4, e4) {
              return t5.substr(n4, e4);
            }, x = function(t5) {
              return o.$T.qT(t5);
            }, A = new i3.ResourceManager(i3.SR), I = A.getResource.bind(A), k = "##################0", N = "################", j = { 1: "+", 0: "", "-1": "-" }, D = 4294967295, _ = ["0", "#", "?"], O = { "¤": "¤", Br: "Br", Fdj: "Fdj", Nfk: "Nfk", R: "R", $: "$", FCFA: "FCFA", "GH₵": "GH₵", "ብር": "ብር", "ر.س.‏": "ر.س.‏", XDR: "XDR", "د.إ.‏": "د.إ.‏", "د.ب.‏": "د.ب.‏", "د.ج.‏": "د.ج.‏", "ج.م.‏": "ج.م.‏", "₪": "₪", "د.ع.‏": "د.ع.‏", "د.ا.‏": "د.ا.‏", "ف.ج.ق.‏": "ف.ج.ق.‏", "د.ك.‏": "د.ك.‏", "ل.ل.‏": "ل.ل.‏", "د.ل.‏": "د.ل.‏", "د.م.‏": "د.م.‏", "أ.م.‏": "أ.م.‏", "ر.ع.‏": "ر.ع.‏", "ر.ق.‏": "ر.ق.‏", "ج.س.": "ج.س.", S: "S", "£": "£", "ل.س.‏": "ل.س.‏", "د.ت.‏": "د.ت.‏", "ر.ي.‏": "ر.ي.‏", "₹": "₹", TSh: "TSh", "€": "€", "₼": "₼", "₽": "₽", K: "K", "лв.": "лв.", "₦": "₦", CFA: "CFA", "৳": "৳", "¥": "¥", KM: "KM", "КМ": "КМ", USh: "USh", "Kč": "Kč", "kr.": "kr.", Ksh: "Ksh", CHF: "CHF", "ރ.": "ރ.", "Nu.": "Nu.", EC$: "EC$", P: "P", US$: "US$", D: "D", Rp: "Rp", Ar: "Ar", MOP$: "MOP$", Rs: "Rs", MK: "MK", RM: "RM", "₱": "₱", RF: "RF", SR: "SR", SDG: "SDG", Le: "Le", "NAf.": "NAf.", E: "E", T$: "T$", VT: "VT", WS$: "WS$", Bs: "Bs", "₡": "₡", Q: "Q", L: "L", C$: "C$", "B/.": "B/.", "S/.": "S/.", "₲": "₲", "Bs.": "Bs.", "ريال": "ريال", FG: "FG", UM: "UM", kr: "kr", FBu: "FBu", FC: "FC", DA: "DA", G: "G", CF: "CF", DH: "DH", FCFP: "FCFP", LS: "LS", DT: "DT", kn: "kn", HUF: "HUF", "֏": "֏", ISK: "ISK", "₾": "₾", "​": "​", "₸": "₸", "៛": "៛", "₩": "₩", "сом": "сом", Kz: "Kz", "₭": "₭", MTn: "MTn", "ден": "ден", "₮": "₮", "रु": "रु", "Afl.": "Afl.", "ߖߕ.": "ߖߕ.", "руб.": "руб.", "zł": "zł", "؋": "؋", R$: "R$", Db: "Db", RON: "RON", "₴": "₴", MAD: "MAD", "රු.": "රු.", "Lekë": "Lekë", den: "den", RSD: "RSD", "дин.": "дин.", "ܠ.ܣ.‏": "ܠ.ܣ.‏", "Rs.": "Rs.", "смн": "смн", "฿": "฿", "m.": "m.", "₺": "₺", "ⴷⵔ": "ⴷⵔ", "soʻm": "soʻm", "сўм": "сўм", "₫": "₫", HK$: "HK$", MOP: "MOP", NT$: "NT$" }, E = Math.pow(2, 48), n3.st = { yU: function(t5) {
              return X(t5, u.CultureManager.Fe());
            }, Z6t: function(t5) {
              return X(t5, u.CultureManager.Fe("invariant"));
            }, L9t: function(t5, n4, e4, i4) {
              return e4 || (e4 = u.CultureManager.Fe()), R(t5, n4, e4, i4);
            }, Ge: function(t5, n4) {
              var e4, i4, r3;
              return "string" != typeof t5 || (i4 = (e4 = nt(n4)).numberDecimalSeparator, r3 = e4.numberGroupSeparator, "." !== i4 && (t5 = t5.replace(x("[.]"), C)), "," !== r3 && (t5 = t5.replace(x("[,]"), S)), "." !== i4 && (t5 = t5.replace(x(C), i4)), "," !== r3 && (t5 = t5.replace(x(S), r3))), t5;
            }, Jf: function(t5, n4) {
              var e4, i4, r3;
              return "string" != typeof t5 || (i4 = (e4 = nt(n4)).numberDecimalSeparator, r3 = e4.numberGroupSeparator, "." !== i4 && (t5 = t5.replace(x("[" + i4 + "]"), C)), "," !== r3 && (t5 = t5.replace(x("[" + r3 + "]"), S)), "." !== i4 && (t5 = t5.replace(x(C), ".")), "," !== r3 && (t5 = t5.replace(x(S), ","))), t5;
            }, hUt: function(t5, n4) {
              var e4, i4, r3;
              return !("string" == typeof t5 && (i4 = (e4 = nt(n4)).numberDecimalSeparator, r3 = e4.numberGroupSeparator, "." !== i4 && "." !== r3 && t5.indexOf(".") >= 0 || "," !== i4 && "," !== r3 && t5.indexOf(",") >= 0));
            }, dUt: function(t5, n4) {
              return v(this.Jf(t5, n4));
            }, VGt: $, v0: P, vUt: J, ukt: z, Jme: Y, mUt: et, gUt: k, pUt: N, E8: it };
          }, "./src/common/util/rbush.ts": function(t4, n3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.rbush = void 0;
            var e3 = Math.max, i3 = Math.min, r2 = Number.POSITIVE_INFINITY;
            function o(t5, n4) {
              this.bUt = e3(4, t5 || 9), this.yUt = e3(2, Math.ceil(0.4 * this.bUt)), n4 && this.wUt(n4), this.clear();
            }
            function a(t5, n4, e4) {
              if (!e4) return n4.indexOf(t5);
              for (var i4 = 0; i4 < n4.length; i4++) if (e4(t5, n4[i4])) return i4;
              return -1;
            }
            function u(t5, n4) {
              s(t5, 0, t5.children.length, n4, t5);
            }
            function s(t5, n4, e4, i4, o2) {
              o2 || (o2 = b(null)), o2.minX = r2, o2.minY = r2, o2.maxX = -r2, o2.maxY = -r2;
              for (var a2 = n4, u2 = void 0; a2 < e4; a2++) u2 = t5.children[a2], c(o2, t5.leaf ? i4(u2) : u2);
              return o2;
            }
            function c(t5, n4) {
              return t5.minX = i3(t5.minX, n4.minX), t5.minY = i3(t5.minY, n4.minY), t5.maxX = e3(t5.maxX, n4.maxX), t5.maxY = e3(t5.maxY, n4.maxY), t5;
            }
            function f(t5, n4) {
              return t5.minX - n4.minX;
            }
            function l(t5, n4) {
              return t5.minY - n4.minY;
            }
            function h(t5) {
              return (t5.maxX - t5.minX) * (t5.maxY - t5.minY);
            }
            function d(t5) {
              return t5.maxX - t5.minX + (t5.maxY - t5.minY);
            }
            function v(t5, n4) {
              return (e3(n4.maxX, t5.maxX) - i3(n4.minX, t5.minX)) * (e3(n4.maxY, t5.maxY) - i3(n4.minY, t5.minY));
            }
            function p(t5, n4) {
              var r3 = e3(t5.minX, n4.minX), o2 = e3(t5.minY, n4.minY), a2 = i3(t5.maxX, n4.maxX), u2 = i3(t5.maxY, n4.maxY);
              return e3(0, a2 - r3) * e3(0, u2 - o2);
            }
            function g(t5, n4) {
              return t5.minX <= n4.minX && t5.minY <= n4.minY && (n4.maxX >= 0 && n4.maxX <= t5.maxX || t5.minX < 0) && (n4.maxY >= 0 && n4.maxY <= t5.maxY || t5.minY < 0);
            }
            function m(t5, n4) {
              return (-1 === t5.minY || -1 === n4.minY || t5.minY <= n4.maxY && n4.minY <= t5.maxY) && (-1 === t5.minX || -1 === n4.minX || t5.minX <= n4.maxX && n4.minX <= t5.maxX);
            }
            function b(t5) {
              return { children: t5, height: 1, leaf: true, minX: r2, minY: r2, maxX: -r2, maxY: -r2 };
            }
            n3.rbush = o, o.prototype = { all: function() {
              return this.QP(this.data, []);
            }, search: function(t5) {
              var n4, e4, i4, r3, o2, a2 = this.data, u2 = [], s2 = this.toBBox;
              if (!m(t5, a2)) return u2;
              for (n4 = []; a2; ) {
                for (e4 = 0, i4 = a2.children.length; e4 < i4; e4++) r3 = a2.children[e4], m(t5, o2 = a2.leaf ? s2(r3) : r3) && (a2.leaf ? u2.push(r3) : g(t5, o2) ? this.QP(r3, u2) : n4.push(r3));
                a2 = n4.pop();
              }
              return u2;
            }, collides: function(t5) {
              var n4, e4, i4, r3, o2, a2 = this.data, u2 = this.toBBox;
              if (!m(t5, a2)) return false;
              for (n4 = []; a2; ) {
                for (e4 = 0, i4 = a2.children.length; e4 < i4; e4++) if (r3 = a2.children[e4], m(t5, o2 = a2.leaf ? u2(r3) : r3)) {
                  if (a2.leaf || g(t5, o2)) return true;
                  n4.push(r3);
                }
                a2 = n4.pop();
              }
              return false;
            }, insert: function(t5) {
              return t5 && this.Eit(t5, this.data.height - 1), this;
            }, clear: function() {
              return this.data = b([]), this;
            }, remove: function(t5, n4) {
              if (!t5) return this;
              for (var e4 = this.data, i4 = this.toBBox(t5), r3 = [], o2 = [], u2, s2, c2, f2; e4 || r3.length; ) {
                if (e4 || (e4 = r3.pop(), s2 = r3[r3.length - 1], u2 = o2.pop(), f2 = true), e4.leaf && -1 !== (c2 = a(t5, e4.children, n4))) return e4.children.splice(c2, 1), r3.push(e4), this.MUt(r3), this;
                f2 || e4.leaf || !g(e4, i4) ? s2 ? (u2++, e4 = s2.children[u2], f2 = false) : e4 = null : (r3.push(e4), o2.push(u2), u2 = 0, s2 = e4, e4 = e4.children[0]);
              }
              return this;
            }, toBBox: function(t5) {
              return t5;
            }, compareMinX: f, compareMinY: l, toJSON: function() {
              return this.data;
            }, fromJSON: function(t5) {
              return this.data = t5, this;
            }, QP: function(t5, n4) {
              for (var e4 = []; t5; ) t5.leaf ? n4.push.apply(n4, t5.children) : e4.push.apply(e4, t5.children), t5 = e4.pop();
              return n4;
            }, CUt: function(t5, n4, e4, i4) {
              for (var o2, a2, u2, s2, c2, f2, l2, d2; i4.push(n4), !n4.leaf && i4.length - 1 !== e4; ) {
                for (l2 = d2 = r2, o2 = 0, a2 = n4.children.length; o2 < a2; o2++) c2 = h(u2 = n4.children[o2]), (f2 = v(t5, u2) - c2) < d2 ? (d2 = f2, l2 = c2 < l2 ? c2 : l2, s2 = u2) : f2 === d2 && c2 < l2 && (l2 = c2, s2 = u2);
                n4 = s2 || n4.children[0];
              }
              return n4;
            }, Eit: function(t5, n4, e4) {
              var i4 = this.toBBox, r3 = e4 ? t5 : i4(t5), o2 = [], a2 = this.CUt(r3, this.data, n4, o2);
              for (a2.children.push(t5), c(a2, r3); n4 >= 0 && o2[n4].children.length > this.bUt; ) this.SUt(o2, n4), n4--;
              this.TUt(r3, o2, n4);
            }, SUt: function(t5, n4) {
              var e4, i4, r3 = t5[n4], o2 = r3.children.length, a2 = this.yUt;
              this.AUt(r3, a2, o2), e4 = this.IUt(r3, a2, o2), (i4 = b(r3.children.splice(e4, r3.children.length - e4))).height = r3.height, i4.leaf = r3.leaf, u(r3, this.toBBox), u(i4, this.toBBox), n4 ? t5[n4 - 1].children.push(i4) : this.xUt(r3, i4);
            }, xUt: function(t5, n4) {
              this.data = b([t5, n4]), this.data.height = t5.height + 1, this.data.leaf = false, u(this.data, this.toBBox);
            }, IUt: function(t5, n4, e4) {
              var i4, o2, a2, u2, c2, f2, l2, d2;
              for (f2 = l2 = r2, i4 = n4; i4 <= e4 - n4; i4++) u2 = p(o2 = s(t5, 0, i4, this.toBBox), a2 = s(t5, i4, e4, this.toBBox)), c2 = h(o2) + h(a2), u2 < f2 ? (f2 = u2, d2 = i4, l2 = c2 < l2 ? c2 : l2) : u2 === f2 && c2 < l2 && (l2 = c2, d2 = i4);
              return d2;
            }, AUt: function(t5, n4, e4) {
              var i4 = t5.leaf ? this.compareMinX : f, r3 = t5.leaf ? this.compareMinY : l, o2, a2;
              this.NUt(t5, n4, e4, i4) < this.NUt(t5, n4, e4, r3) && t5.children.sort(i4);
            }, NUt: function(t5, n4, e4, i4) {
              t5.children.sort(i4);
              var r3 = this.toBBox, o2 = s(t5, 0, n4, r3), a2 = s(t5, e4 - n4, e4, r3), u2 = d(o2) + d(a2), f2, l2;
              for (f2 = n4; f2 < e4 - n4; f2++) l2 = t5.children[f2], c(o2, t5.leaf ? r3(l2) : l2), u2 += d(o2);
              for (f2 = e4 - n4 - 1; f2 >= n4; f2--) l2 = t5.children[f2], c(a2, t5.leaf ? r3(l2) : l2), u2 += d(a2);
              return u2;
            }, TUt: function(t5, n4, e4) {
              for (var i4 = e4; i4 >= 0; i4--) c(n4[i4], t5);
            }, MUt: function(t5) {
              for (var n4 = t5.length - 1, e4 = void 0; n4 >= 0; n4--) 0 === t5[n4].children.length ? n4 > 0 ? (e4 = t5[n4 - 1].children).splice(e4.indexOf(t5[n4]), 1) : this.clear() : u(t5[n4], this.toBBox);
            }, wUt: function(t5) {
              var n4 = ["return a", " - b", ";"];
              this.compareMinX = new Function("a", "b", n4.join(t5[0])), this.compareMinY = new Function("a", "b", n4.join(t5[1])), this.toBBox = new Function("a", "return {minX: a" + t5[0] + ", minY: a" + t5[1] + ", maxX: a" + t5[2] + ", maxY: a" + t5[3] + "};");
            } };
          }, "./src/common/util/regexhelper.ts": function(t4, n3, e3) {
            var i3, r2, o, a;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.$T = void 0, i3 = e3("./src/common/util/stringhelper.ts"), r2 = true, o = "empty", a = (function() {
              function t5() {
              }
              return t5.bue = function(n4, e4) {
                var i4;
                if (e4 && t5.yue[e4] && t5.yue[e4][n4]) i4 = t5.yue[e4][n4];
                else try {
                  null == e4 ? (i4 = new RegExp(n4), e4 = o) : i4 = new RegExp(n4, e4), t5.yue[e4] || (t5.yue[e4] = {}), t5.yue[e4][n4] = i4;
                } catch (t6) {
                  return null;
                }
                return i4.lastIndex = 0, i4;
              }, t5.qT = function(n4) {
                var e4 = t5.kUt[n4];
                return e4 || (e4 = t5.kUt[n4] = new RegExp(n4, "g")), e4.lastIndex = 0, e4;
              }, t5.OJ = function(n4) {
                var e4 = t5.DUt[n4];
                return e4 || (e4 = t5.DUt[n4] = new RegExp(n4, "gi")), e4.lastIndex = 0, e4;
              }, t5.jJ = function(n4, e4, i4) {
                var o2, a2, u, s, c, f;
                if (t5._Ut[n4]) return t5.EUt[n4];
                if (o2 = e4 ? "[?*]+" : "[~?*]+", t5.qT(o2).test(n4)) {
                  for (a2 = [], u = n4.split(""), s = void 0, c = { ".": r2, "+": r2, $: r2, "^": r2, "[": r2, "]": r2, "(": r2, ")": r2, "{": r2, "}": r2, "|": r2, "/": r2, "\\": r2 }, f = 0; f < u.length; f++) if ("~" === (s = u[f])) {
                    if (!(f < u.length - 1)) break;
                    "*" !== (s = u[++f]) && "?" !== s || a2.push("\\"), a2.push(s);
                  } else "?" === s ? a2.push(".") : "*" === s ? (a2.push("[\\s\\S]"), i4 ? a2.push("+") : a2.push("*")) : c[s] ? (a2.push("\\"), a2.push(s)) : a2.push(s);
                  return a2.join("");
                }
                return null;
              }, t5.tbt = function(n4, e4, i4) {
                var r3 = t5.jJ(n4, e4, i4);
                return r3 && (r3 = "^" + r3 + "$"), r3;
              }, t5.jUt = function(t6, n4) {
                for (var e4 = "#" + t6 + "0#", r3 = 1; n4.indexOf(e4) > 0; ) e4 = i3.zf.qS(e4, "#" + t6 + (r3 - 1) + "#", "#" + t6 + r3 + "#"), r3++;
                return e4;
              }, t5.D9t = function(t6) {
                return t6.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/, "\\$1");
              }, t5.kUt = {}, t5.DUt = {}, t5.yue = {}, t5._Ut = {}, t5.EUt = {}, t5;
            })(), n3.$T = a;
          }, "./src/common/util/stringhelper.ts": function(t4, n3, e3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.zf = void 0;
            var i3 = e3("./src/common/util/regexhelper.ts");
            function r2(t5, n4, e4) {
              return t5.substr(n4, e4);
            }
            function o(t5) {
              return null == t5;
            }
            function a(t5, n4, e4, i4) {
              var r3, a2;
              if (o(n4)) throw new Error();
              return "" === n4 || !(n4.length > t5.length) && (r3 = t5, a2 = n4, e4 && (r3 = r3.toLowerCase(), a2 = a2.toLowerCase()), i4(r3, a2));
            }
            n3.zf = { OS: function(t5, n4, e4) {
              return e4 && (t5 = t5.toLowerCase(), n4 = n4.toLowerCase()), "" === n4 || t5.indexOf(n4) >= 0;
            }, hD: function(t5, n4, e4) {
              var i4, r3;
              return e4 ? (i4 = t5.toLowerCase(), r3 = n4.toLowerCase(), i4.indexOf(r3)) : t5.indexOf(n4);
            }, cJ: function(t5, n4) {
              if (!n4) return t5;
              for (var e4 = t5; r2(e4, 0, n4.length) === n4; ) e4 = r2(e4, n4.length);
              return e4;
            }, s6t: function(t5, n4) {
              if (!n4) return t5;
              for (var e4 = t5; r2(e4, e4.length - n4.length, n4.length) === n4; ) e4 = r2(e4, 0, e4.length - n4.length);
              return e4;
            }, Eit: function(t5, n4, e4) {
              var i4, a2;
              if (n4 < 0 || n4 > t5.length || o(e4)) throw new Error();
              return (i4 = r2(t5, 0, n4)) + e4 + (a2 = r2(t5, n4, t5.length - n4));
            }, VP: function(t5, n4, e4) {
              var i4, a2;
              if (o(e4) && (e4 = t5.length - n4), n4 < 0 || e4 < 0 || n4 + e4 > t5.length) throw new Error();
              return (i4 = r2(t5, 0, n4)) + (a2 = r2(t5, n4 + e4, t5.length - n4 - e4));
            }, fJ: function(t5, n4, e4) {
              return void 0 === e4 && (e4 = false), a(t5, n4, e4, (function(t6, n5) {
                return t6.slice(0, n5.length) === n5;
              }));
            }, dT: function(t5, n4, e4) {
              return void 0 === e4 && (e4 = false), a(t5, n4, e4, (function(t6, n5) {
                return t6.slice(-n5.length) === n5;
              }));
            }, Vi: function(t5, n4, e4, i4) {
              if (!n4) throw new Error();
              return e4 = ("" + e4).replace(/\$/g, "$$$$"), t5.replace(new RegExp(n4, "g" + (i4 ? "i" : "")), e4);
            }, OUt: function(t5, e4, r3, o2) {
              return e4 = i3.$T.D9t(e4), n3.zf.Vi(t5, e4, r3, o2);
            }, gmt: function(t5, n4) {
              var e4 = t5.indexOf(n4);
              return e4 < 0 || e4 >= t5.length ? t5 : r2(t5, 0, e4);
            }, DU: function(t5, n4) {
              for (var e4 = 0, i4 = t5.indexOf(n4); i4 >= 0; ) e4 += 1, i4 = t5.indexOf(n4, i4 + 1);
              return e4;
            }, qS: function(t5, n4, e4) {
              return t5.split(n4).join(e4);
            }, I5: function(t5, n4) {
              var e4, i4, r3 = t5;
              for (e4 = 0; e4 < n4.length; e4++) i4 = new RegExp("\\{" + e4 + "\\}", "g"), r3 = r3.replace(i4, n4[e4]);
              return r3;
            }, RUt: function(t5, n4, e4) {
              var i4, r3 = t5.toString();
              for (i4 = r3.length; i4 < n4; i4++) r3 = e4 ? "0" + r3 : r3 + "0";
              return r3;
            }, B9t: function(t5, e4) {
              return n3.zf.RUt(t5, e4, true);
            }, lUt: function(t5, e4) {
              return n3.zf.RUt(t5, e4, false);
            }, Dbt: function(t5, n4) {
              return t5 === n4 || !t5 && !n4 || t5 && n4 && t5.toLowerCase() === n4.toLowerCase();
            }, Gmt: function(t5) {
              return t5.toUpperCase();
            }, j0: function(t5) {
              var n4 = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "`": "&#x60;" }, e4 = i3.$T.qT("(?:&|<|>|\"|'|`)");
              return e4.test(t5) ? t5.replace(e4, (function(t6) {
                return n4[t6];
              })) : t5;
            }, dI: function(t5) {
              var n4 = { "&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"', "&#x27;": "'", "&#x60;": "`" }, e4 = i3.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");
              return e4.test(t5) ? t5.replace(e4, (function(t6) {
                return n4[t6];
              })) : t5;
            }, TY: function(t5) {
              for (var n4 = t5, e4 = /javascript:/gi; n4.match(e4); ) n4 = n4.replace(e4, "");
              return n4;
            } };
          }, "./src/common/util/types.ts": function(t4, n3) {
            var e3, i3;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.lt = void 0, e3 = "undefined" != typeof window ? window.File : null, i3 = "undefined" != typeof window ? window.Blob : null, n3.lt = { BUt: null, y0: function(t5, e4) {
              var i4, r2, o, a;
              if (n3.lt.Gh(t5)) for (r2 = 0, o = t5.length; r2 < o && false !== (i4 = e4.call(t5[r2], r2, t5[r2])); r2++) ;
              else for (a in t5) if (t5.hasOwnProperty(a) && false === (i4 = e4.call(t5[a], a, t5[a]))) break;
              return t5;
            }, _h: function(t5) {
              return !t5 || "object" == typeof t5 && 0 === Object.keys(t5).length;
            }, Eh: function(t5) {
              return "function" === n3.lt.Oh(t5);
            }, Nh: function(t5) {
              return Array.isArray ? Array.isArray(t5) : "array" === n3.lt.Oh(t5);
            }, jh: function(t5) {
              return n3.lt.OMt(t5) && (t5 = parseFloat(t5)), !isNaN(t5) && isFinite(t5);
            }, OMt: function(t5) {
              return "string" == typeof t5;
            }, Oh: function(t5) {
              var e4, i4, r2, o, a, u;
              if (null === t5) return "null";
              if (!(e4 = n3.lt.BUt)) for (e4 = n3.lt.BUt = {}, r2 = 0, o = (i4 = ["Boolean", "Number", "String", "Function", "Array", "Date", "RegExp", "Object", "Error"]).length; r2 < o; r2++) e4["[object " + i4[r2] + "]"] = i4[r2].toLowerCase();
              return a = e4.toString, "object" === (u = typeof t5) || "function" === u ? e4[a.call(t5)] || "object" : u;
            }, Rh: function(t5, e4, i4) {
              var r2, o;
              if (e4) {
                if (o = [].indexOf) return o.call(e4, t5, i4);
                for (r2 = e4.length, n3.lt.ht(i4) && (i4 = 0), i4 = i4 < 0 ? Math.max(0, r2 + i4) : i4; i4 < r2; i4++) if (i4 in e4 && e4[i4] === t5) return i4;
              }
              return -1;
            }, Bh: function(t5, n4) {
              var e4 = n4.length, i4 = t5.length, r2 = 0;
              if ("number" == typeof e4) for (; r2 < e4; r2++) t5[i4] = n4[r2], i4++;
              else for (; void 0 !== n4[r2]; ) t5[i4] = n4[r2], i4++, r2++;
              return t5.length = i4, t5;
            }, Lh: function(t5, e4, i4) {
              var r2, o, a, u, s = [];
              if (n3.lt.Gh(t5)) for (o = 0, a = t5.length; o < a; o++) null !== (r2 = e4(t5[o], o, i4)) && (s[s.length] = r2);
              else for (u in u = void 0, t5) t5.hasOwnProperty(u) && null !== (r2 = e4(t5[u], u, i4)) && (s[s.length] = r2);
              return s.concat([]);
            }, Dh: function() {
              var t5, e4, i4, r2, o, a, u, s, c, f, l, h = [];
              for (t5 = 0; t5 < arguments.length; t5++) h[t5] = arguments[t5];
              for (s = h[0] || {}, c = 1, f = h.length, l = false, "boolean" == typeof s && (l = s, s = h[1] || {}, c = 2), "object" == typeof s || n3.lt.Eh(s) || (s = {}), f === c && (s = this, --c); c < f; c++) if (a = h[c], !n3.lt.ht(a)) for (o in a) e4 = s[o], s !== (r2 = a[o]) && (i4 = n3.lt.Nh(r2), l && r2 && (n3.lt.Ph(r2) || i4) ? (u = i4 ? e4 && n3.lt.Nh(e4) ? e4 : [] : e4 && n3.lt.Ph(e4) ? e4 : {}, s[o] = n3.lt.Dh(l, u, r2)) : void 0 !== r2 && (s[o] = r2));
              return s;
            }, Fh: function(t5, n4) {
              for (var e4 in n4) n4.hasOwnProperty(e4) && (t5[e4] = n4[e4]);
              function i4() {
                this.constructor = t5;
              }
              i4.prototype = n4.prototype, t5.prototype = new i4();
            }, Uh: function(t5) {
              return null !== t5 && t5 === t5.window;
            }, Ph: function(t5) {
              var e4, i4;
              if (!t5 || "object" !== n3.lt.Oh(t5) || t5.nodeType || n3.lt.Uh(t5)) return false;
              e4 = {}.hasOwnProperty;
              try {
                if (t5.constructor && !e4.call(t5, "constructor") && !e4.call(t5.constructor.prototype, "isPrototypeOf")) return false;
              } catch (t6) {
                return false;
              }
              for (i4 in t5) ;
              return void 0 === i4 || e4.call(t5, i4);
            }, Gh: function(t5) {
              if (n3.lt.ht(t5)) return false;
              var e4 = t5.length, i4 = n3.lt.Oh(t5);
              return !n3.lt.Uh(t5) && (!(1 !== t5.nodeType || !e4) || ("array" === i4 || "function" !== i4 && (0 === e4 || "number" == typeof e4 && e4 > 0 && e4 - 1 in t5)));
            }, Hh: function(t5, e4) {
              var i4 = e4 || [];
              return null !== t5 && (n3.lt.Gh(Object(t5)) ? n3.lt.Bh(i4, "string" == typeof t5 ? [t5] : t5) : [].push.call(i4, t5)), i4;
            }, dt: null, ht: function(t5) {
              return null == t5;
            }, q8: null, uJ: null, tv: function(t5, r2) {
              if (void 0 === r2 && (r2 = true), !t5) return t5;
              if ("number" == typeof t5 || "string" == typeof t5 || "boolean" == typeof t5 || n3.lt.ht(t5)) return t5;
              if (t5.clone) return t5.clone();
              if (t5 instanceof Date) return new Date(t5.valueOf());
              var o, a, u;
              if (e3 && t5 instanceof e3) return new e3([t5], t5.name, { type: t5.type, lastModified: t5.lastModified });
              if (i3 && t5 instanceof i3) return new i3([t5], { type: t5.type });
              for (a in o = t5 instanceof Object ? new t5.constructor() : new t5.constructor(t5.valueOf()), t5) t5.hasOwnProperty(a) && (u = t5[a], t5.hasOwnProperty(a) && o[a] !== u && (o[a] = "object" == typeof u ? n3.lt.tv(u) : u));
              return r2 && (o.toString = t5.toString, o.valueOf = t5.valueOf), o;
            } };
          }, "./src/common/util/util.res.en.ts": function(t4, n3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.Exp_Separator = n3.Exp_InvalidCast = n3.Exp_InvalidNumberFormat = n3.Exp_BadFormatSpecifier = n3.Exp_InvalidNumberGroupSize = n3.Exp_InvalidSemicolons = n3.Exp_InvalidExponentFormat = n3.Exp_InvalidDateFormat = void 0, n3.Exp_InvalidDateFormat = "Invalid date format pattern", n3.Exp_InvalidExponentFormat = "invalid exponent format", n3.Exp_InvalidSemicolons = "invalid format : too many semicolons", n3.Exp_InvalidNumberGroupSize = "NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.", n3.Exp_BadFormatSpecifier = "Bad Format Specifier", n3.Exp_InvalidNumberFormat = "Invalid number format pattern", n3.Exp_InvalidCast = "InvalidCastException", n3.Exp_Separator = "numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info.";
          }, "./src/plugins/commands/commands.entry.ts": function(t4, n3, e3) {
            var i3, r2;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.UndoManager = n3.CommandManager = n3.Key = void 0, i3 = e3("./src/plugins/commands/commands.ts"), Object.defineProperty(n3, "Key", { enumerable: true, get: function() {
              return i3.Key;
            } }), Object.defineProperty(n3, "CommandManager", { enumerable: true, get: function() {
              return i3.CommandManager;
            } }), r2 = e3("./src/plugins/commands/undomanager.ts"), Object.defineProperty(n3, "UndoManager", { enumerable: true, get: function() {
              return r2.UndoManager;
            } });
          }, "./src/plugins/commands/commands.ts": function(t4, n3) {
            var e3, i3, r2;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.CommandManager = n3.Key = void 0, (function(t5) {
              t5[t5.left = 37] = "left", t5[t5.right = 39] = "right", t5[t5.up = 38] = "up", t5[t5.down = 40] = "down", t5[t5.tab = 9] = "tab", t5[t5.enter = 13] = "enter", t5[t5.shift = 16] = "shift", t5[t5.ctrl = 17] = "ctrl", t5[t5.space = 32] = "space", t5[t5.altkey = 18] = "altkey", t5[t5.home = 36] = "home", t5[t5.end = 35] = "end", t5[t5.pup = 33] = "pup", t5[t5.pdn = 34] = "pdn", t5[t5.backspace = 8] = "backspace", t5[t5.del = 46] = "del", t5[t5.esc = 27] = "esc", t5[t5.a = 65] = "a", t5[t5.c = 67] = "c", t5[t5.v = 86] = "v", t5[t5.x = 88] = "x", t5[t5.z = 90] = "z", t5[t5.y = 89] = "y";
            })(e3 = n3.Key || (n3.Key = {})), i3 = (function() {
              function t5(t6, n4, e4) {
                var i4, r3;
                this.jS = t6, this.LUt = n4, this.Zc = e4, i4 = this, Object.defineProperty(i4, "shortcutKey", { get: function() {
                  return i4.FUt;
                }, set: function(t7) {
                  var n5, e5, o = i4.FUt;
                  o !== t7 && ((n5 = (r3 = i4.jS.PUt)[o]) && (e5 = n5.indexOf(i4)) >= 0 && n5.splice(e5, 1), i4.FUt = t7, t7 && ((n5 = r3[t7]) || (r3[t7] = n5 = []), n5.splice(0, 0, i4)));
                } });
              }
              return t5.prototype.canUndo = function() {
                var t6;
                return this.LUt.canUndo;
              }, t5.prototype.execute = function(t6, n4, e4) {
                var i4, r3, o, a, u, s = this, c = true, f = true;
                if (s.LUt && n4 && (o = { command: n4, result: r3, vM: e4, actionType: e4, metaData: null === (i4 = s.LUt) || void 0 === i4 ? void 0 : i4.metaData, r: null, isBefore: true }, s.jS.MGr(o), o.r && (f = false, r3 = false)), f) {
                  try {
                    c = false !== (r3 = (a = s.LUt.execute || s.LUt)(t6, n4, 1 === e4));
                  } catch (t7) {
                    c = false;
                  }
                  n4 && c && s.jS.HUt({ command: s.Zro(n4), result: r3, vM: e4, actionType: e4 });
                }
                return s.jS && n4 && (u = { command: n4, result: r3, vM: e4, actionType: e4, isBefore: false }, s.jS.MGr(u)), r3;
              }, t5.prototype.Zro = function(t6) {
                return t6 && !t6.cmd && (t6.cmd = this.Zc), t6;
              }, t5;
            })(), r2 = (function() {
              function t5(t6) {
                this.DJ = t6, this.aT = {}, this.GUt = {}, this.yGr = {}, this.PUt = {};
              }
              return t5.prototype.register = function(t6, n4, e4, r3, o, a, u) {
                var s = this, c = new i3(s, n4, t6);
                s[t6] = c, e4 && (c.shortcutKey = s.getShortcutKey(e4, r3, o, a, u));
              }, t5.prototype.getCommand = function(t6) {
                return this[t6];
              }, t5.prototype.execute = function(t6) {
                var n4 = this[t6.cmd];
                if (n4) return n4.execute(this.DJ, t6, 0);
              }, t5.prototype.setShortcutKey = function(t6, n4, e4, i4, r3, o) {
                var a, u, s, c, f = this;
                if (t6) (a = f[t6]) && (a.shortcutKey = f.getShortcutKey(n4, e4, i4, r3, o));
                else if (u = f.getShortcutKey(n4, e4, i4, r3, o), s = f.getCommands(u)) for (c = s.length - 1; c >= 0; c--) s[c].shortcutKey = void 0;
              }, t5.prototype.getShortcutKey = function(t6, n4, i4, r3, o) {
                if (t6) {
                  var a = "A".charCodeAt(0) <= t6 && t6 <= "Z".charCodeAt(0) ? String.fromCharCode(t6) : e3[t6];
                  return a || (a = t6), a + (n4 ? "+ctrl" : "") + (i4 ? "+shift" : "") + (r3 ? "+alt" : "") + (o ? "+window" : "");
                }
              }, t5.prototype.getCommands = function(t6) {
                return this.PUt[t6];
              }, t5.prototype.addListener = function(t6, n4) {
                this.aT[t6] = n4;
              }, t5.prototype.removeListener = function(t6) {
                delete this.aT[t6];
              }, t5.prototype.HUt = function(t6) {
                var n4, e4 = this.aT;
                for (n4 in e4) e4.hasOwnProperty(n4) && e4[n4](t6);
              }, t5.prototype.cM = function(t6, n4) {
                this.GUt[t6] = n4;
              }, t5.prototype.zUt = function(t6) {
                delete this.GUt[t6];
              }, t5.prototype.MGr = function(t6) {
                var n4, e4 = this.GUt;
                for (n4 in e4) e4.hasOwnProperty(n4) && e4[n4](t6);
              }, t5.prototype.L0 = function() {
                this.DJ = null;
              }, t5;
            })(), n3.CommandManager = r2;
          }, "./src/plugins/commands/undomanager.ts": function(t4, n3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.UndoManager = void 0;
            var e3 = (function() {
              function t5(t6, n4, e4) {
                var i3 = this;
                i3.DJ = t6, n4 < 0 && (n4 = 2147483647), i3.VUt = n4, i3.Hw = e4, i3.Nmt = [], i3.kmt = [], i3.YUt = false;
              }
              return t5.prototype.dM = function(t6, n4) {
                var e4, i3, r2, o = this;
                if (t6) {
                  if (1 === n4) o.kmt.push(t6);
                  else {
                    if (e4 = o.VUt, i3 = o.Nmt.length, e4 > 0 && i3 >= e4) for (r2 = 0; r2 < i3 - e4 + 1; r2++) o.Nmt.shift();
                    o.Nmt.push(t6), 0 === n4 && (o.kmt = []);
                  }
                  o.YUt = true;
                }
              }, t5.prototype.canUndo = function() {
                return this.Nmt.length > 0;
              }, t5.prototype.undo = function() {
                var t6, n4, e4 = this, i3 = e4.Nmt, r2 = true;
                if (e4.Hw && e4.canUndo()) {
                  t6 = i3[i3.length - 1];
                  try {
                    (n4 = e4.DJ.commandManager()[t6.cmd]) && (t6.hM = true, r2 = n4.execute(e4.DJ, t6, 1));
                  } catch (t7) {
                    r2 = false;
                  }
                  delete t6.hM, false !== r2 && (i3.pop(), e4.YUt = true, e4.kmt.push(t6));
                }
                return r2;
              }, t5.prototype.canRedo = function() {
                return this.kmt.length > 0;
              }, t5.prototype.redo = function() {
                var t6, n4, e4 = this, i3 = e4.kmt, r2 = true;
                if (e4.Hw && e4.canRedo()) {
                  t6 = i3[i3.length - 1];
                  try {
                    (n4 = e4.DJ.commandManager()[t6.cmd]) && (t6.hM = true, r2 = n4.execute(e4.DJ, t6, 2));
                  } catch (t7) {
                    r2 = false;
                  }
                  delete t6.hM, false !== r2 && (i3.pop(), e4.YUt = true, e4.Nmt.push(t6));
                }
                return r2;
              }, t5.prototype.getRedoStack = function() {
                return this.kmt.slice();
              }, t5.prototype.getUndoStack = function() {
                return this.Nmt.slice();
              }, t5.prototype.maxSize = function(t6) {
                var n4 = this;
                return arguments.length < 1 ? n4.VUt : (t6 >= 0 && (n4.VUt = t6), n4);
              }, t5.prototype.clear = function() {
                this.Nmt = [], this.kmt = [];
              }, t5.prototype.aL = function(t6) {
                this.Nmt = this.Nmt.filter(t6), this.kmt = this.kmt.filter(t6);
              }, t5.prototype.L0 = function() {
                this.DJ = null;
              }, t5.prototype.setNewChangeStatus = function(t6) {
                this.YUt = t6;
              }, t5.prototype.getNewChangeStatus = function() {
                return this.YUt;
              }, t5;
            })();
            n3.UndoManager = e3;
          }, "./src/plugins/formatter/formatter.entry.ts": function(t4, n3, e3) {
            var i3 = this && this.JKr || (Object.create ? function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n4, e4);
              r3 && !("get" in r3 ? !n4.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n4[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n4[e4];
            }), r2 = this && this.XKr || function(t5, n4) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n4, e4) || i3(n4, t5, e4);
            };
            Object.defineProperty(n3, "__esModule", { value: true }), r2(e3("./src/plugins/formatter/formatter.ts"), n3);
          }, "./src/plugins/formatter/formatter.res.en.ts": function(t4, n3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.Exp_InvalidCast = n3.Exp_ValueIllegal = n3.Exp_TokenIllegal = n3.Exp_DuplicatedDescriptor = n3.Exp_ValueIsNull = n3.Exp_FormatIllegal = n3.Exp_InvalidBackslash = n3.Exp_TokenIsNull = void 0, n3.Exp_TokenIsNull = "token is null", n3.Exp_InvalidBackslash = "the '\\' cannot be evaluated", n3.Exp_FormatIllegal = "format is illegal.", n3.Exp_ValueIsNull = "value is null", n3.Exp_DuplicatedDescriptor = "The type of descriptor was added.", n3.Exp_TokenIllegal = "token is illegal.", n3.Exp_ValueIllegal = "value is illegal.", n3.Exp_InvalidCast = "InvalidCastException";
          }, "./src/plugins/formatter/formatter.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at = this && this.qKr || (ut = function(t5, n4) {
              return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n5) {
                t6.__proto__ = n5;
              } || function(t6, n5) {
                for (var e4 in n5) Object.prototype.hasOwnProperty.call(n5, e4) && (t6[e4] = n5[e4]);
              }, ut(t5, n4);
            }, function(t5, n4) {
              if ("function" != typeof n4 && null !== n4) throw new TypeError("Class extends value " + String(n4) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              ut(t5, n4), t5.prototype = null === n4 ? Object.create(n4) : (e4.prototype = n4.prototype, new e4());
            }), ut;
            function st(t5, n4, e4) {
              return t5.substr(n4, e4);
            }
            function ct(t5) {
              return o.lt.ht(t5) ? "" : "boolean" == typeof t5 ? t5 ? "TRUE" : "FALSE" : "string" == typeof t5 ? t5 : t5.toString();
            }
            function ft(t5, n4) {
              if ("\\" === t5[n4]) throw new Error(d().Exp_InvalidBackslash);
              if (n4 - 1 > 0 && n4 - 1 < t5.length && "\\" === t5[n4 - 1]) {
                if (n4 - 2 < 0) return true;
                if (n4 - 2 > 0 && n4 - 2 < t5.length) return "\\" !== t5[n4 - 2];
              }
              return false;
            }
            function lt(t5) {
              if (!t5) throw new Error(d().Exp_TokenIsNull);
              return "[" + t5 + "]";
            }
            function ht(t5) {
              var n4, e4, i4, r3, o2;
              if (t5 === g || t5 === p || "" === t5) return t5;
              for (n4 = "", e4 = 0, i4 = false, r3 = 0; r3 < t5.length; r3++) '"' === (o2 = t5[r3]) ? (i4 = !i4, n4 += o2) : i4 ? n4 += o2 : "[" === o2 ? e4++ : "]" === o2 ? --e4 < 0 && (e4 = 0) : 0 === e4 && (n4 += o2);
              return n4.toString();
            }
            function dt(t5) {
              return t5 = vt(t5, "[", ""), vt(t5, "]", "");
            }
            function vt(t5, n4, e4) {
              return !t5 || t5 === z.oHt || gt(n4, e4, true) ? t5 : (n4 = n4.replace(T, "\\$1"), t5.replace(new RegExp(n4, "g"), e4));
            }
            function pt(t5) {
              var n4, e4, i4 = t5.length, r3 = false, o2 = "";
              for (n4 = 0; n4 < i4; n4++) "\\" === (e4 = t5.charAt(n4)) ? (r3 = !r3) && "@" !== t5.charAt(n4 + 1) || (o2 += e4) : (r3 = false, o2 += e4);
              return o2;
            }
            function gt(t5, n4, e4) {
              return e4 ? G(t5) === G(n4) : t5 === n4;
            }
            function mt(t5, n4) {
              var e4, i4, r3, o2;
              for (1 === arguments.length && (n4 = true), e4 = false, i4 = "", r3 = 0; r3 < t5.length; r3++) {
                if ('"' === (o2 = t5[r3])) e4 = !e4;
                else if (!e4 && !n4 && "/" === o2 && !ft(t5, r3)) continue;
                i4 += o2;
              }
              return i4;
            }
            function bt(t5) {
              var n4, e4, i4, r3 = "", o2 = false;
              for (n4 = 0, e4 = t5.length; n4 < e4; n4++) '"' === (i4 = t5[n4]) && (o2 = !o2), "E" === i4 || o2 || (r3 += G(i4));
              return r3;
            }
            function yt(t5, n4) {
              var e4, i4, r3, o2;
              if (!t5 || t5 === z.oHt) return false;
              for (i4 = bt(e4 = mt(t5)), r3 = 0; r3 < n4.length; r3++) if (0 === (o2 = i4.indexOf(n4[r3])) || o2 > 0 && "_" !== i4[o2 - 1] && "*" !== i4[o2 - 1]) return true;
              return false;
            }
            function wt(t5, n4, e4, i4) {
              this.j9t = t5, this.aHt = n4, this.cultureName = e4, this.O9t = i4;
            }
            function Mt(t5) {
              this.Nat = t5;
            }
            function Ct(t5) {
              var n4, e4, r3 = dt(t5);
              return r3 && r3 !== z.oHt ? (e4 = r3[0], ["<", ">", "="].indexOf(e4) > -1 ? (n4 = K).Name = "ConditionalFormatPart" : i3.zf.fJ(r3, "DBNum", true) ? (n4 = J).Name = "DBNumberFormatPart" : gt(r3[0], v, false) && r3.indexOf("-") > -1 ? (n4 = W).Name = "LocaleIDFormatPart" : Tt(r3) ? (n4 = q).Name = "ABSTimeFormatPart" : r3.indexOf(v) < 0 && r3.length >= 3 && ((n4 = $).Name = "ColorFormatPart"), n4) : n4;
            }
            function St(t5, n4) {
              var e4, i4 = false;
              return yt(t5 = t5 ? t5.toString() : z.oHt, ["general"]) ? e4 = nt : X.a0(t5) ? e4 = X : yt(t5, ["E+", "E-", "#", ".", ",", "%", "0", "/", "?"]) || n4 ? (i4 = true, e4 = tt) : (i4 = true, e4 = et), { uHt: i4, _type: e4 };
            }
            function Tt(t5) {
              var n4, e4 = G(t5), i4 = e4[0];
              if ("h" !== i4 && "m" !== i4 && "s" !== i4) return false;
              for (n4 = 1; n4 < e4.length; n4++) if (i4 !== e4[n4]) return false;
              return true;
            }
            function xt(t5, n4, e4) {
              var i4, r3;
              return i4 = t5 ? t5.cultureInfo() : F(e4), (n4 < 4 || 4 === n4 && ("ko-kr" === e4 || "ko-kr" === i4.name())) && (r3 = i4.NumberFormat.dbNumber) ? r3[n4] : p;
            }
            function At(t5, n4, e4, i4, o2) {
              var a2, u2 = t5;
              if (!R(i4) && n4 instanceof Date) {
                if (!(a2 = xt(e4, i4.type, o2))) return t5;
                u2 = i4.sHt(u2, a2, true), 1 === i4.type && (u2 = u2.replace(new RegExp(w, "g"), M)), u2 = (u2 = u2.replace("@" + b.cHt, r2.ct.Pe(n4, b.cHt))).replace("@" + b.fHt, r2.ct.Pe(n4, b.fHt)), u2 = i4.sHt(u2, a2, false);
              }
              return u2;
            }
            function It(t5, n4, e4, i4, r3) {
              var o2, a2, u2, s2, c2, f2, l2;
              if (!R(i4) && (o2 = xt(e4, i4.type, r3), !R(o2))) {
                for (a2 = false, u2 = void 0, s2 = F(r3), c2 = void 0, f2 = 0, l2 = t5.length; f2 < l2; f2++) "decimalSeparator" === t5[f2].type && (a2 = true, t5[f2].value = i4.sHt(t5[f2].value, o2, n4), u2 = t5[f2].value), "number" === t5[f2].type && (t5[f2].value = a2 ? i4.sHt(u2 + t5[f2].value, o2, n4).slice(1) : i4.sHt(t5[f2].value, o2, n4), "ja-JP" === s2.name() && t5[f2].value.length > 1 && ("一千" !== (c2 = t5[f2].value.substr(0, 2)) && "一百" !== c2 && "一十" !== c2 || (t5[f2].value = t5[f2].value.substr(1))));
                return t5;
              }
              return t5;
            }
            function kt(t5) {
              var n4, e4 = [], i4 = 0, r3 = 0, o2 = t5.length;
              for (n4 = 0; n4 < o2; n4++) "_" === t5[n4] ? i4++ : (";" !== t5[n4] || 0 !== i4 && i4 % 2 != 0 || (e4.push(t5.substring(r3, n4)), r3 = n4 + 1), i4 = 0);
              return r3 <= o2 && e4.push(t5.substring(r3, o2)), e4;
            }
            function Nt(t5) {
              var n4, e4, i4 = [], r3 = false, o2 = false, a2 = "", u2 = function(t6, n5) {
                return { type: t6, content: n5 };
              }, s2 = function(t6) {
                return !R(t6) && -1 !== "yYdDhHmMsSeE".indexOf(t6);
              }, c2 = function(n5, e5) {
                if (s2(n5)) {
                  for (var r4 = n5, o3 = t5[e5 + 1]; s2(o3) && o3.toLowerCase() === n5.toLowerCase() && (r4 += o3, e5 < t5.length - 1); ) e5++, o3 = t5[e5 + 1];
                  i4.push(u2("symbolic", r4));
                } else "a" === n5 && "aaa" === t5.slice(e5, e5 + 3).toLowerCase() ? (i4.push(u2("symbolic", t5.slice(e5, e5 + 3))), e5 += 2) : i4.push(u2("text", n5));
                return e5;
              };
              for (n4 = 0; n4 < t5.length; n4++) if (e4 = t5[n4], r3) i4.push(u2("text", "\\" + e4)), r3 = false;
              else if (o2 && '"' !== e4) a2 += e4;
              else switch (e4) {
                case "\\":
                  r3 = true;
                  break;
                case '"':
                  o2 && (i4.push(u2("text", '"' + a2 + '"')), a2 = ""), o2 = !o2;
                  break;
                default:
                  n4 = c2(e4, n4);
              }
              return i4;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.GeneralFormatter = n3.Hf = n3.FormatterBase = void 0, i3 = e3("./src/common/util/stringhelper.ts"), r2 = e3("./src/common/util/datetimehelper.ts"), o = e3("./src/common/util/types.ts"), a = e3("./src/common/util/numberhelper.ts"), u = e3("./src/common/culture/cultureInfo.ts"), s = e3("./src/common/util/common.ts"), c = e3("./src/plugins/formatter/formatter.res.en.ts"), f = e3("./src/plugins/formatter/formatterGrammar/lexer.ts"), l = e3("./src/plugins/formatter/formatterGrammar/parser.ts"), o.lt.Dh(s.SR.en, c), h = new s.ResourceManager(s.SR), d = h.getResource.bind(h), v = "$", o.lt.dt = function(t5, n4) {
              if (o.lt.ht(t5)) return "null" === n4;
              if (!n4) return false;
              if (n4 instanceof Function && t5 instanceof n4) return true;
              if (typeof t5 === n4) return true;
              if ("function" === n4 && /^\s*\bfunction\b/.test("" + t5)) return true;
              if (Object.prototype.toString.call(t5).slice(8, -1).toLowerCase() === n4.toLowerCase()) return true;
              if ("DateTime" === n4) return t5 instanceof Date;
              if ("TimeSpan" === n4) {
                if (t5 instanceof Date) {
                  var e4 = r2.ct.o0(t5);
                  return e4 >= 0 && e4 < 1;
                }
                return false;
              }
              return "string" == typeof n4 && "undefined number boolean string".indexOf(n4), false;
            }, o.lt.q8 = function(t5, n4) {
              return !!a.st.hUt(t5, n4) && (("string" != typeof t5 || -1 === t5.search(/[\r\n\t]/g)) && (t5 = a.st.Jf(t5, n4), o.lt.dt(t5, "number") || o.lt.dt(t5, "DateTime") || o.lt.dt(t5, "TimeSpan") || t5 && !o.lt.dt(t5, "boolean") && !isNaN(t5) && !isNaN(parseFloat(t5)) && !(t5.length >= 2 && "0" === t5[0] && "x" === t5[1])));
            }, o.lt.uJ = function(t5) {
              return o.lt.ht(t5) || "" === t5 ? 0 : o.lt.dt(t5, "number") ? t5 : o.lt.dt(t5, "string") && !isNaN(t5) ? a.st.yU(t5) : o.lt.dt(t5, "boolean") ? t5 ? 1 : 0 : o.lt.dt(t5, "DateTime") ? r2.ct.o0(t5) : o.lt.dt(t5, "TimeSpan") ? Math.floor(r2.ct.o0(t5)) : parseFloat(t5);
            }, p = null, g = void 0, m = Math.abs, b = { fHt: "yy", hHt: "y", cHt: "yyyy", dHt: "m", vHt: "mm", mHt: "mmm", gHt: "mmmm", pHt: "mmmmm", bHt: "d", yHt: "dd", wHt: "aaa", MHt: "aaaa", CHt: "h", SHt: "hh", THt: "m", AHt: "mm", IHt: "s", xHt: "ss", IGt: "e", NHt: "AM/PM", kHt: "A/P", DHt: "@mmmmm", _Ht: new Date(1899, 11, 30, 0, 0, 0, 0) }, y = [b.hHt, b.fHt, b.cHt, b.dHt, b.vHt, b.mHt, b.gHt, b.pHt, b.bHt, b.yHt, b.wHt, b.MHt, b.CHt, b.SHt, b.THt, b.AHt, b.IHt, b.xHt, "ggg", "gg", "g", "ee", "e"], w = "一十", M = "十", C = { EHt: 0, jHt: 1, OHt: 2, _text: 3 }, S = [{ EHt: 0, jHt: 0, OHt: 0, _text: 0 }, { EHt: 0, jHt: 1, OHt: 0, _text: 0 }, { EHt: 0, jHt: 1, OHt: 2, _text: 0 }, { EHt: 0, jHt: 1, OHt: 2, _text: 3 }], T = new RegExp("([.+?*$^\\[\\](){}|/])", "g"), x = [["M/d", "MMM/d", "MMMM/d", "d/M", "d/MMM", "d/MMMM", "M-d", "MMM-d", "MMMM-d", "d-M", "d-MMM", "d-MMMM"], ["M/y", "MMM/y", "M/yyyy", "MMM/yyyy", "M-y", "MMM-y", "M-yyyy", "MMM-yyyy"], ["M/d/y", "MMM/d/y", "MMMM/d/y", "M/d/yyyy", "MMM/d/yyyy", "MMMM/d/yyyy", "d/M/y", "d/MMM/y", "d/MMMM/y", "d/M/yyyy", "d/MMM/yyyy", "d/MMMM/yyyy", "yyyy/M/d", "M-d-y", "MMM-d-y", "MMMM-d-y", "M-d-yyyy", "MMM-d-yyyy", "MMMM-d-yyyy", "d-M-y", "d-MMM-y", "d-MMMM-y", "d-M-yyyy", "d-MMM-yyyy", "d-MMMM-yyyy", "yyyy-M-d"], ["H:m", "h:m tt"], ["H:m:s", "H:m:s"], ["H:m:s.FFF", "h:m:s.FFF tt"], ["h:m:s tt", "h:mm:ss tt"], ["M/d H:m", "MMM/d H:m", "MMMM/d H:m", "d/M H:m", "d/MMM H:m", "d/MMMM H:m", "M/y H:m", "MMM/y H:m", "M/yyyy H:m", "MMM/yyyy H:m", "M/d/y H:m", "MMM/d/y H:m", "MMMM/d/y H:m", "M/d/yyyy H:m", "MMM/d/yyyy H:m", "MMMM/d/yyyy H:m", "M-d H:m", "MMM-d H:m", "MMMM-d H:m", "d-M H:m", "d-MMM H:m", "d-MMMM H:m", "M-y H:m", "MMM-y H:m", "M-yyyy H:m", "MMM-yyyy H:m", "M-d-y H:m", "MMM-d-y H:m", "MMMM-d-y H:m", "M-d-yyyy H:m", "MMM-d-yyyy H:m", "MMMM-d-yyyy H:m", "M/d h:m tt", "MMM/d h:m tt", "MMMM/d h:m tt", "d/M h:m tt", "d/MMM h:m tt", "d/MMMM h:m tt", "M/y h:m tt", "MMM/y h:m tt", "M/yyyy h:m tt", "MMM/yyyy h:m tt", "M/d/y h:m tt", "MMM/d/y h:m tt", "MMMM/d/y h:m tt", "M/d/yyyy h:m tt", "MMM/d/yyyy h:m tt", "MMMM/d/yyyy h:m tt", "M-d h:m tt", "MMM-d h:m tt", "MMMM-d h:m tt", "d-M h:m tt", "d-MMM h:m tt", "d-MMMM h:m tt", "M-y h:m tt", "MMM-y h:m tt", "M-yyyy h:m tt", "MMM-yyyy h:m tt", "M-d-y h:m tt", "MMM-d-y h:m tt", "MMMM-d-y h:m tt", "M-d-yyyy h:m tt", "MMM-d-yyyy h:m tt", "MMMM-d-yyyy h:m tt", "d/M/y H:m", "d/MMM/y H:m", "d/MMMM/y H:m", "d/M/yyyy H:m", "d/mmm/yyyy H:m", "d/MMMM/yyyy H:m", "yyyy/M/d H:m", "d-M-y H:m", "d-MMM-y H:m", "d-MMMM-y H:m", "d-M-yyyy H:m", "d-MMM-yyyy H:m", "d-MMMM-yyyy H:m", "yyyy-M-d H:m", "d/M/y h:m tt", "d/MMM/y h:m tt", "d/MMMM/y h:m tt", "d/M/yyyy h:m tt", "d/mmm/yyyy h:m tt", "d/MMMM/yyyy h:m tt", "yyyy/M/d h:m tt", "d-M-y h:m tt", "d-MMM-y h:m tt", "d-MMMM-y h:m tt", "d-M-yyyy h:m tt", "d-MMM-yyyy h:m tt", "d-MMMM-yyyy h:m tt", "yyyy-M-d h:m tt"], ["M/d H:m:s", "MMM/d H:m:s", "MMMM/d H:m:s", "d/M H:m:s", "d/MMM H:m:s", "d/MMMM H:m:s", "M/y H:m:s", "MMM/y H:m:s", "M/yyyy H:m:s", "MMM/yyyy H:m:s", "M/d/y H:m:s", "MMM/d/y H:m:s", "MMMM/d/y H:m:s", "M/d/yyyy H:m:s", "MMM/d/yyyy H:m:s", "MMMM/d/yyyy H:m:s", "d/M/y H:m:s", "d/MMM/y H:m:s", "d/MMMM/y H:m:s", "d/M/yyyy H:m:s", "d/MMM/yyyy H:m:s", "d/MMMM/yyyy H:m:s", "yyyy/M/d H:m:s", "M-d H:m:s", "MMM-d H:m:s", "MMMM-d H:m:s", "d-M H:m:s", "d-MMM H:m:s", "d-MMMM H:m:s", "M-y H:m:s", "MMM-y H:m:s", "M-yyyy H:m:s", "MMM-yyyy H:m:s", "M-d-y H:m:s", "MMM-d-y H:m:s", "MMMM-d-y H:m:s", "M-d-yyyy H:m:s", "MMM-d-yyyy H:m:s", "MMMM-d-yyyy H:m:s", "d-M-y H:m:s", "d-MMM-y H:m:s", "d-MMMM-y H:m:s", "d-M-yyyy H:m:s", "d-MMM-yyyy H:m:s", "d-MMMM-yyyy H:m:s", "yyyy-M-d H:m:s", "M/d h:m:s tt", "MMM/d h:m:s tt", "MMMM/d h:m:s tt", "d/M h:m:s tt", "d/MMM h:m:s tt", "d/MMMM h:m:s tt", "M/y h:m:s tt", "MMM/y h:m:s tt", "M/yyyy h:m:s tt", "MMM/yyyy h:m:s tt", "M/d/y h:m:s tt", "MMM/d/y h:m:s tt", "MMMM/d/y h:m:s tt", "M/d/yyyy h:m:s tt", "MMM/d/yyyy h:m:s tt", "MMMM/d/yyyy h:m:s tt", "d/M/y h:m:s tt", "d/MMM/y h:m:s tt", "d/MMMM/y h:m:s tt", "d/M/yyyy h:m:s tt", "d/MMM/yyyy h:m:s tt", "d/MMMM/yyyy h:m:s tt", "yyyy/M/d h:m:s tt", "M/d/yyyy h:mm:ss tt", "M-d h:m:s tt", "MMM-d h:m:s tt", "MMMM-d h:m:s tt", "d-M h:m:s tt", "d-MMM h:m:s tt", "d-MMMM h:m:s tt", "M-y h:m:s tt", "MMM-y h:m:s tt", "M-yyyy h:m:s tt", "MMM-yyyy h:m:s tt", "M-d-y h:m:s tt", "MMM-d-y h:m:s tt", "MMMM-d-y h:m:s tt", "M-d-yyyy h:m:s tt", "MMM-d-yyyy h:m:s tt", "MMMM-d-yyyy h:m:s tt", "d-M-y h:m:s tt", "d-MMM-y h:m:s tt", "d-MMMM-y h:m:s tt", "d-M-yyyy h:m:s tt", "d-MMM-yyyy h:m:s tt", "d-MMMM-yyyy h:m:s tt", "yyyy-M-d h:m:s tt", "M/d/yyyy H:m:s", "M-d-yyyy H:m:s", "M/d/yyyy h:m:s tt", "M-d-yyyy H:m:s tt"], ["M/d H:m:s.FFF", "MMM/d H:m:s.FFF", "MMMM/d H:m:s.FFF", "d/M H:m:s.FFF", "d/MMM H:m:s.FFF", "d/MMMM H:m:s.FFF", "M/y H:m:s.FFF", "MMM/y H:m:s.FFF", "M/yyyy H:m:s.FFF", "MMM/yyyy H:m:s.FFF", "M/d/y H:m:s.FFF", "MMM/d/y H:m:s.FFF", "MMMM/d/y H:m:s.FFF", "MMM/d/yyyy H:m:s.FFF", "MMMM/d/yyyy H:m:s.FFF", "d/M/y H:m:s.FFF", "d/MMM/y H:m:s.FFF", "d/MMMM/y H:m:s.FFF", "d/M/yyyy H:m:s.FFF", "d/MMM/yyyy H:m:s.FFF", "d/MMMM/yyyy H:m:s.FFF", "yyyy/M/d H:m:s.FFF", "M-d H:m:s.FFF", "MMM-d H:m:s.FFF", "MMMM-d H:m:s.FFF", "d-M H:m:s.FFF", "d-MMM H:m:s.FFF", "d-MMMM H:m:s.FFF", "M-y H:m:s.FFF", "MMM-y H:m:s.FFF", "M-yyyy H:m:s.FFF", "MMM-Yyyy H:m:s.FFF", "M-d-y H:m:s.FFF", "MMM-d-y H:m:s.FFF", "MMMM-d-y H:m:s.FFF", "MMM-d-yyyy H:m:s.FFF", "MMMM-d-yyyy H:m:s.FFF", "D-M-y H:m:s.FFF", "d-MMM-y H:m:s.FFF", "d-MMMM-y H:m:s.FFF", "D-M-yyyy H:m:s.FFF", "d-MMM-yyyy H:m:s.FFF", "d-MMMM-yyyy H:m:s.FFF", "yyyy-M-d H:m:s.FFF", "M/d h:m:s.FFF tt", "MMM/d h:m:s.FFF tt", "MMMM/d h:m:s.FFF tt", "d/M h:m:s.FFF tt", "d/MMM h:m:s.FFF tt", "d/MMMM h:m:s.FFF tt", "M/y h:m:s.FFF tt", "MMM/y h:m:s.FFF tt", "M/yyyy h:m:s.FFF tt", "MMM/yyyy h:m:s.FFF tt", "M/d/y h:m:s.FFF tt", "MMM/d/y h:m:s.FFF tt", "MMMM/d/y h:m:s.FFF tt", "MMM/d/yyyy h:m:s.FFF tt", "MMMM/d/yyyy h:m:s.FFF tt", "d/M/y h:m:s.FFF tt", "d/MMM/y h:m:s.FFF tt", "d/MMMM/y h:m:s.FFF tt", "d/M/yyyy h:m:s.FFF tt", "d/MMM/yyyy h:m:s.FFF tt", "d/MMMM/yyyy h:m:s.FFF tt", "yyyy/M/d h:m:s.FFF tt", "M-d h:m:s.FFF tt", "MMM-d h:m:s.FFF tt", "MMMM-d h:m:s.FFF tt", "d-M h:m:s.FFF tt", "d-MMM h:m:s.FFF tt", "d-MMMM h:m:s.FFF tt", "M-y h:m:s.FFF tt", "MMM-y h:m:s.FFF tt", "M-yyyy h:m:s.FFF tt", "MMM-Yyyy h:m:s.FFF tt", "M-d-y h:m:s.FFF tt", "MMM-d-y h:m:s.FFF tt", "MMMM-d-y h:m:s.FFF tt", "MMM-d-yyyy H:m:s.FFF tt", "MMMM-d-yyyy h:m:s.FFF tt", "d-M-y h:m:s.FFF tt", "d-MMM-y h:m:s.FFF tt", "d-MMMM-y h:m:s.FFF tt", "d-M-yyyy h:m:s.FFF tt", "d-MMM-yyyy h:m:s.FFF tt", "d-MMMM-yyyy h:m:s.FFF tt", "yyyy-M-d h:m:s.FFF tt"]], A = ["#000000", "#FFFFFF", "#FF0000", "#00FF00", "#0000FF", "#FFFF00", "#FF00FF", "#00FFFF", "#800000", "#008000", "#000080", "#808000", "#800080", "#008080", "#C0C0C0", "#808080", "#9999FF", "#993366", "#FFFFCC", "#CCFFFF", "#660066", "#FF8080", "#0066CC", "#CCCCFF", "#000080", "#FF00FF", "#FFFF00", "#00FFFF", "#800080", "#800000", "#008080", "#0000FF", "#00CCFF", "#CCFFFF", "#CCFFCC", "#FFFF99", "#99CCFF", "#FF99CC", "#CC99FF", "#FFCC99", "#3366FF", "#33CCCC", "#99CC00", "#FFCC00", "#FF9900", "#FF6600", "#666699", "#969696", "#003366", "#339966", "#003300", "#333300", "#993300", "#993366", "#333399", "#333333"], I = new RegExp("color\\s*(\\d+)", "i"), k = o.lt.dt, N = o.lt.Nh, j = a.st, D = j.gUt + "." + j.pUt, _ = j.mUt, O = j.L9t, E = j.E8, R = o.lt.ht, L = isNaN, F = function(t5) {
              return u.CultureManager.Fe(t5);
            }, B = function(t5) {
              return F(t5).DateTimeFormat;
            }, P = function(t5) {
              return F(t5).NumberFormat;
            }, G = function(t5) {
              return t5 && t5.toLowerCase();
            }, U = function(t5) {
              return t5 && t5.toUpperCase();
            }, H = function() {
              throw new Error(d().Exp_FormatIllegal);
            }, V = function() {
              return u.CultureManager.booleanMapping;
            }, z = { oHt: "", I5: function() {
              var t5, n4, e4, i4, r3, o2, a2 = [];
              for (t5 = 0; t5 < arguments.length; t5++) a2[t5] = arguments[t5];
              for (n4 = [], e4 = 0; e4 < arguments.length; e4++) n4[e4] = arguments[e4];
              if (0 === arguments.length) return p;
              for (i4 = n4[0], r3 = 1; r3 < arguments.length; r3++) o2 = new RegExp("\\{" + (r3 - 1) + "\\}", "gm"), i4 = i4.replace(o2, arguments[r3]);
              return i4;
            }, Ji: function(t5) {
              return !t5 || t5 === z.oHt;
            } }, Y = function(t5) {
              var n4 = t5.charCodeAt(0);
              return n4 >= 48 && n4 <= 57;
            }, Z = function(t5) {
              var n4 = t5.charCodeAt(0);
              return n4 >= 9 && n4 <= 13 || 32 === n4 || 133 === n4 || 160 === n4;
            }, W = (function() {
              function t5(t6, n4) {
                var e4, r3, o2, a2;
                if (Mt.call(this, n4), (e4 = this).Jq = t6, o2 = gt((r3 = e4.Jq)[0], v, false), a2 = r3.indexOf("-"), !(o2 && a2 > -1)) throw new Error(d().Exp_TokenIllegal);
                e4.ZUt = st(r3, 1, a2 - 1), (r3 = i3.zf.VP(r3, 0, a2 + 1)).length > 0 && (e4.Iat = parseInt(r3, 16));
              }
              return t5.prototype.cultureInfo = function() {
                var t6 = this;
                return t6.RHt || (t6.RHt = F(t6.Iat)), t6.RHt;
              }, t5.prototype.currencySymbol = function() {
                return this.ZUt ? i3.zf.Vi(this.ZUt, "\\.", '"."') : z.oHt;
              }, t5.prototype.allowScience = function() {
                if (this.RHt) return !this.RHt.isJCKCulture;
              }, t5.prototype.toString = function() {
                return this.Jq ? lt(this.Jq) : z.oHt;
              }, t5.Name = "LocaleIDFormatPart", t5;
            })(), Q = (function() {
              function t5(t6, n4) {
                this.formatCached = t6, this.cultureName = n4, this.typeName = "";
              }
              return t5.prototype.format = function(t6, n4) {
                return p;
              }, t5.prototype.parse = function(t6) {
                return p;
              }, t5.prototype.formatString = function(t6) {
                return this.formatCached;
              }, t5.prototype.toJSON = function() {
                var t6, n4 = {};
                for (t6 in this) this.hasOwnProperty(t6) && (n4[t6] = this[t6]);
                return n4;
              }, t5.prototype.fromJSON = function(t6) {
                if (t6) for (var n4 in t6) t6[n4] !== g && (this[n4] = t6[n4]);
              }, t5;
            })(), n3.FormatterBase = Q, K = (function() {
              function t5(t6, n4) {
                var e4, r3, o2, a2, u2, s2, c2, f2;
                for (Mt.call(this, n4), e4 = this, s2 = 0, c2 = (u2 = ["<=", "<>", ">=", ">", "<", "="]).length; s2 < c2; s2++) if (r3 = u2[s2], i3.zf.fJ(t6, r3, true)) {
                  o2 = i3.zf.VP(t6, 0, r3.length), f2 = parseFloat(o2), L(f2) || (a2 = f2);
                  break;
                }
                if (a2 === p && a2 === g) throw new Error(d().Exp_TokenIllegal);
                e4.value = a2, e4.WUt = r3, e4.isMeetCondition = function(t7) {
                  var n5 = e4.WUt, i4 = e4.value;
                  switch (n5) {
                    case "<=":
                      return t7 <= i4;
                    case "<>":
                      return t7 !== i4;
                    case ">=":
                      return t7 >= i4;
                    case ">":
                      return t7 > i4;
                    case "<":
                      return t7 < i4;
                    case "=":
                      return t7 === i4;
                  }
                };
              }
              return t5.prototype.toString = function() {
                return lt(this.WUt + this.value.toString());
              }, t5;
            })(), J = (function() {
              function t5(t6, n4) {
                Mt.call(this, n4);
                var e4 = this;
                if (e4.token = t6, e4.type = parseInt(i3.zf.VP(t6, 0, 5), 10), e4.type < 0 || e4.type > 4) throw new Error(d().Exp_TokenIllegal);
              }
              return t5.prototype.sHt = function(n4, e4, r3) {
                var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2;
                if (!n4 || n4 === z.oHt) return n4;
                for (o2 = n4, a2 = n4, u2 = -1, s2 = -1, c2 = false, d2 = n4.length - 1; d2 >= 0; d2--) v2 = a2[d2], !L(v2) && !gt(v2, " ", false) || gt(v2, ".", false) && !c2 ? (gt(v2, ".", false) && (c2 = true), -1 === u2 && (u2 = d2), s2 = d2) : s2 > -1 && u2 > -1 && (f2 = st(a2, s2, u2 - s2 + 1), l2 = parseFloat(f2), L(l2) || (h2 = t5.numberString(f2, e4, r3), o2 = i3.zf.VP(o2, s2, u2 - s2 + 1), o2 = i3.zf.Eit(o2, s2, h2)), u2 = -1, s2 = -1, c2 = false);
                return s2 > -1 && u2 > -1 && (f2 = st(a2, s2, u2 - s2 + 1), l2 = parseFloat(f2), L(l2) || (h2 = t5.numberString(f2, e4, r3), o2 = i3.zf.VP(o2, s2, u2 - s2 + 1), o2 = i3.zf.Eit(o2, s2, h2))), o2;
              }, t5.prototype.toString = function() {
                if (this.type > -1) return lt("DBNum" + this.type);
                throw new Error();
              }, t5.numberString = function(n4, e4, i4) {
                var r3, o2, a2 = t5.formatNumberString, u2 = n4.split(".");
                if (u2) {
                  if (1 === u2.length) return a2(u2[0], e4.numbers, i4 ? e4.letters : p);
                  if (2 === u2.length) return (r3 = a2(u2[0], e4.numbers, i4 ? e4.letters : p)) + "." + (o2 = a2(u2[1], e4.numbers));
                }
                throw new Error(d().Exp_ValueIllegal);
              }, t5.formatNumberString = function(n4, e4, i4) {
                var r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = n4, w2 = 0, M2 = 0;
                if (2 === arguments.length) {
                  for (o2 = ""; w2 < y2.length; w2++) r3 = st(y2, w2, 1), o2 += e4[M2 = parseInt(r3, 10)];
                  return o2;
                }
                if (3 === arguments.length) {
                  if (!i4) return t5.formatNumberString(n4, e4);
                  for (a2 = 0, u2 = "", s2 = y2.length, c2 = false, f2 = []; w2 < s2; w2++) (l2 = i4.length - 1 - w2) > -1 ? f2.push(i4[l2].toString()) : f2.push(z.oHt);
                  for (h2 = [], d2 = f2.length - 1; d2 >= 0; d2--) h2[f2.length - d2 - 1] = f2[d2];
                  for (f2 = h2, v2 = false, d2 = 0; d2 < s2; d2++) r3 = st(y2, d2, 1), M2 = parseInt(r3, 10), p2 = void 0, g2 = z.oHt, s2 - d2 - 16 > 0 ? (p2 = e4[M2], g2 = "", v2 = true) : d2 !== s2 - 1 && d2 !== s2 - 5 && d2 !== s2 - 9 && d2 !== s2 - 13 ? "0" === r3 ? (p2 = "", g2 = "", a2 += 1) : "0" !== r3 && 0 !== a2 ? (p2 = e4[0] + e4[M2], g2 = f2[d2], a2 = 0) : (p2 = e4[M2], g2 = f2[d2], a2 = 0) : "0" !== r3 && 0 !== a2 ? (p2 = e4[0] + e4[M2], g2 = f2[d2], a2 = 0) : "0" !== r3 && 0 === a2 || v2 ? (p2 = e4[M2], g2 = f2[d2], a2 = 0, v2 = false) : "0" === r3 && a2 >= 3 ? (p2 = "", g2 = "", a2 += 1) : s2 >= 11 ? (p2 = "", a2 += 1) : (p2 = "", g2 = f2[d2], a2 += 1), (m2 = p2 + g2 === z.oHt) || (c2 = false), d2 !== s2 - 13 || c2 || (g2 = f2[d2], c2 = true), d2 !== s2 - 9 || c2 || (g2 = f2[d2], c2 = true), d2 === s2 - 1 && (g2 = f2[d2], c2 = true), u2 = u2 + p2 + g2;
                  return 0 === (b2 = parseInt(n4, 10)) ? e4[0] : u2;
                }
              }, t5;
            })(), X = (function() {
              function t5(t6, n4, e4, i4, r3, o2) {
                wt.call(this, n4, e4, i4, o2);
                var a2 = this;
                a2.pU = a2.QUt(mt(t6)), a2.KUt = r3, a2.JUt = 2, a2.Hc();
              }
              return t5.prototype.Hc = function() {
                var n4, e4, i4, r3, o2 = this, a2 = { y4: o2.pU }, u2 = t5;
                if (u2.a0(a2.y4)) {
                  if (n4 = o2.BHt(a2), e4 = B(this.cultureName).amDesignator && B(this.cultureName).pmDesignator, o2.hasJD = o2.Vi(a2.y4, b.pHt, '"' + b.DHt + '"', true, false, a2, false), o2.Vi(a2.y4, b.gHt, "MMMM", true, false, a2, false), o2.Vi(a2.y4, b.mHt, "MMM", true, false, a2, false), o2.LHt(a2.y4, a2), o2.Vi(a2.y4, b.wHt, "ddd", true, true, a2, true), o2.Vi(a2.y4, b.MHt, "dddd", true, true, a2, true), n4 && e4 || (o2.Vi(a2.y4, b.CHt, "H", true, true, a2, false), o2.Vi(a2.y4, b.SHt, "HH", true, true, a2, false)), o2.aHt && (o2.j9t || F(o2.cultureName).NumberFormat.dbNumber) && (o2.FHt = o2.FHt || o2.Vi(a2.y4, b.cHt, '"@' + b.cHt + '"', true, false, a2, true), o2.FHt = o2.FHt || o2.Vi(a2.y4, b.fHt, '"@' + b.fHt + '"', true, false, a2, true)), o2.KUt) for (i4 = 0; i4 < o2.KUt.length; i4++) r3 = o2.KUt[i4], o2.Vi(a2.y4, r3.Nat, "@" + r3.Nat, true, true, a2, true);
                  o2.PHt = a2.y4;
                } else H();
              }, t5.prototype.formatString = function() {
                return this.pU;
              }, t5.prototype.format = function(t6) {
                var n4, e4, o2, a2, u2, s2, c2, f2, l2 = this, h2 = z.oHt, d2 = p;
                try {
                  if ((d2 = r2.ct._DT(t6)) && L(d2.valueOf()) && (d2 = p), d2 ? t6 = d2 : h2 = t6.toString(), d2 && (h2 = r2.ct.L9t(d2, l2.PHt, l2.j9t && l2.j9t.cultureInfo() || F(l2.cultureName), l2.O9t), l2.hasJD && (n4 = F(l2.cultureName).DateTimeFormat.monthNames[d2.getMonth()], h2 = i3.zf.Vi(h2, b.DHt, st(n4, 0, 1))), l2.KUt)) for (e4 = 24 * (r2.ct.o0(d2) - r2.ct.o0(b._Ht)) * 60 * 60 * 1e3, o2 = 0; o2 < l2.KUt.length; o2++) u2 = (a2 = l2.KUt[o2]).XUt(e4), R(u2) || (s2 = a2.Nat.replace("[", "\\[").replace("]", "\\]"), c2 = a2.Nat.replace("[", "").replace("]", ""), f2 = i3.zf.B9t(u2 + "", c2.length), h2 = i3.zf.Vi(h2, "@" + s2, f2));
                } catch (n5) {
                  h2 = ct(t6);
                }
                return At(h2, t6, l2.j9t, l2.aHt, l2.cultureName);
              }, t5.prototype.parse = function(t6) {
                var n4, e4, i4, o2, a2;
                if (!t6 || t6 === z.oHt) return p;
                if (n4 = this, "true" === (i4 = G(e4 = t6))) return true;
                if ("false" === i4) return false;
                if (n4.PHt && (o2 = r2.ct.nUt(e4, n4.PHt, F(n4.cultureName)))) return o2;
                try {
                  return (a2 = r2.ct._DT(e4)) && !L(a2) ? a2 : (a2 = new Date(e4), L(a2.valueOf()) ? e4 : a2);
                } catch (t7) {
                  return e4;
                }
              }, t5.prototype.QUt = function(t6) {
                var n4, e4, i4, r3 = t6, o2 = "", a2 = false;
                for (n4 = 0; n4 < r3.length; n4++) '"' === (e4 = r3[n4]) ? a2 = !a2 : a2 || ("Y" === e4 || "D" === e4 || "S" === e4 || "E" === e4 || "G" === e4 ? e4 = G(e4) : "M" === e4 && (gt("A", i4 = r3[n4 - 1], true) || gt("P", i4, true) || (e4 = G(e4)))), o2 += e4;
                return o2;
              }, t5.prototype.BHt = function(t6) {
                var n4, e4, r3, o2 = B(this.cultureName).amDesignator, a2 = B(this.cultureName).pmDesignator, u2 = [b.NHt];
                for (o2 && a2 ? u2.push(o2 + "/" + a2) : u2.push(b.NHt), u2.push(b.kHt), n4 = ["tt", "tt", "t"], e4 = t6.y4, r3 = 0; r3 < 3; r3++) {
                  if (i3.zf.OS(e4, n4[r3])) return true;
                  if (i3.zf.OS(e4, u2[r3], true)) return t6.y4 = i3.zf.Vi(e4, u2[r3], n4[r3], true), true;
                }
                return false;
              }, t5.prototype.LHt = function(t6, n4) {
                var e4, i4, r3 = Nt(t6), o2 = -1, a2 = -1;
                for (e4 = 0; e4 < r3.length; e4++) "symbolic" === (i4 = r3[e4]).type ? "m" === i4.content[0].toLowerCase() ? o2 >= 0 ? (i4.content = i4.content.toLowerCase(), o2 = -1) : (i4.content = i4.content.toUpperCase(), a2 = e4) : "s" === i4.content[0].toLowerCase() ? a2 >= 0 && (r3[a2].content = r3[a2].content.toLowerCase(), a2 = -1) : "h" === i4.content[0].toLowerCase() ? (o2 = e4, a2 = -1) : a2 = -1 : a2 >= 0 && e4 > 0 && "0" === i4.content && "." === r3[e4 - 1].content && e4 === a2 + 2 && (r3[a2].content = r3[a2].content.toLowerCase());
                n4.y4 = r3.map((function(t7) {
                  return t7.content;
                })).join("");
              }, t5.prototype.Vi = function(n4, e4, r3, o2, a2, u2, s2) {
                var c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2;
                if (o2 || a2) {
                  for (c2 = [], f2 = true, !t5.hasDate(n4) && t5.hasTime(n4) && (f2 = false), l2 = false, h2 = 0; h2 < n4.length; h2++) {
                    if (d2 = n4[h2], t5.hasTime(d2) && !l2 ? f2 = false : t5.hasDate(d2) && !l2 && (f2 = true), o2 && gt(d2, e4[0], s2) && f2 || a2 && gt(d2, e4[0], s2) && !f2) {
                      for (v2 = true, p2 = 0; p2 < e4.length; p2++) if (p2 + h2 >= n4.length || !gt(e4[p2], n4[p2 + h2], s2)) {
                        v2 = false;
                        break;
                      }
                      if (g2 = h2 + e4.length - 1, v2 && g2 + 1 < n4.length) {
                        for (m2 = n4[g2], b2 = -1, b2 = g2 + 1; b2 < n4.length && gt(m2, n4[b2], s2); b2++) ;
                        b2 > g2 + 1 && (h2 = b2, v2 = false);
                      }
                      v2 && !l2 && c2.splice(0, 0, h2);
                    }
                    '"' === d2 && (l2 = !l2);
                  }
                  if (u2.y4 = n4, c2.length > 0) {
                    for (h2 = 0; h2 < c2.length; h2++) y2 = c2[h2], u2.y4 = i3.zf.VP(u2.y4, y2, e4.length), u2.y4 = i3.zf.Eit(u2.y4, y2, r3);
                    return true;
                  }
                  return false;
                }
                return false;
              }, t5.hasTime = function(t6) {
                return i3.zf.hD(t6, b.CHt[0], true) > -1 || i3.zf.hD(t6, b.IHt[0], true) > -1;
              }, t5.hasDate = function(t6) {
                return i3.zf.hD(t6, b.fHt[0], true) > -1 || i3.zf.hD(t6, b.bHt[0], true) > -1;
              }, t5.a0 = function(t6, n4) {
                return yt(t6, n4 || y);
              }, t5;
            })(), n3.Hf = X, q = (function() {
              function t5(t6, n4) {
                var e4, i4, r3;
                if (Mt.call(this, n4), e4 = this, "h" === (i4 = G(t6)[0])) r3 = 3600;
                else if ("m" === i4) r3 = 60;
                else {
                  if ("s" !== i4) throw new Error(d().Exp_TokenIllegal);
                  r3 = 1;
                }
                e4.XUt = function(t7) {
                  var n5 = t7 / 1e3 / r3;
                  return Math.abs(n5 - Math.round(n5)) < 1e-6 ? Math.round(n5) : Math.floor(n5);
                };
              }
              return t5.Name = "ABSTimeFormatPart", t5;
            })(), $ = (function() {
              function t5(t6, n4) {
                var e4, i4;
                Mt.call(this, n4), null !== (e4 = I.exec(t6)) && (i4 = Number(e4[1]), (i4 -= 1) >= 0 && i4 < A.length && (t6 = A[i4])), this.foreColor = t6;
              }
              return t5.prototype.toString = function() {
                return lt(this.foreColor);
              }, t5.Name = "ColorFormatPart", t5;
            })(), tt = (function() {
              function t5(t6, n4, e4, i4) {
                var r3, o2, a2, u2, s2, c2;
                function f2(t7, n5) {
                  var e5, i5, r4, o3, a3, u3 = [], s3 = '"';
                  if (t7 === p || "" === t7) return u3;
                  for (e5 = false, i5 = [], r4 = false, o3 = 0; o3 < t7.length; o3++) (a3 = t7[o3]) !== s3 || e5 || (r4 = !r4), e5 || r4 || a3 !== n5 ? i5.push(a3) : (u3.push(i5.join("")), i5 = []), e5 = "\\" === a3 && !e5;
                  return u3.push(i5.join("")), u3;
                }
                wt.call(this, n4, e4, i4), (r3 = this).qUt = false, r3.JUt = 1, r3.$Ut = ht(t6), o2 = mt(t6), n4 && (o2 = vt(o2, r3.j9t.Nat, r3.j9t.currencySymbol())), (a2 = (o2 = ht(o2)).indexOf("/")) > -1 && (u2 = f2(o2, "/")) && 2 === u2.length && (r3.tHt = u2[1], (s2 = u2[0]) && ((c2 = s2.lastIndexOf(" ")) > -1 ? (r3.nHt = st(s2, 0, c2), r3.eHt = st(s2, c2 + 1, s2.length - c2 - 1)) : r3.eHt = s2)), r3.iHt = o2;
              }
              return t5.prototype.formatString = function() {
                return this.$Ut;
              }, t5.prototype.format = function(n4) {
                var e4, i4, r3, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2;
                return k(n4, "boolean") ? n4.toString().toUpperCase() : (e4 = this, i4 = o.lt.uJ(n4), L(i4) || !isFinite(i4) || L(n4) ? "string" == typeof n4 ? n4 : p : (r3 = F(e4.cultureName), e4.eHt && e4.tHt ? (h2 = { value: 0 }, d2 = { value: 0 }, v2 = { value: 0 }, g2 = e4.GHt(), t5.getFraction(i4, g2, h2, d2, v2) ? ((m2 = t5.getGCD(d2.value, v2.value)) > 1 && (d2.value /= m2, v2.value /= m2), e4.nHt ? (l2 = "", 1 === v2.value && (h2.value += d2.value, d2.value = 0, v2.value = 0), (b2 = _(O(h2.value, e4.nHt, r3))) && "0" !== b2 && (l2 += b2, l2 += " "), 0 === h2.value && i4 < 0 && (l2 += r3.NumberFormat.negativeSign), 0 === i4 && (l2 += "0"), u2 = e4.tHt, s2 = parseFloat(u2), !L(s2) && s2 > 0 && (0 !== d2.value && 0 !== v2.value && (d2.value *= s2 / v2.value), v2.value = s2, u2 = u2.replace(/^\d+/, t5.toNumberPlaceholder(s2)), f2 = (c2 = Math.ceil(d2.value)) - d2.value, d2.value = f2 <= 0.5 && f2 >= 0 ? parseFloat(c2.toString()) : parseFloat((c2 - 1).toString())), y2 = e4.eHt, w2 = parseFloat(y2), L(w2) || 0 !== w2 || ((M2 = y2.length) > (S2 = (C2 = d2.value.toString()).length) ? y2 = y2.substr(0, M2 - (M2 - S2)) : M2 < S2 && (C2 = C2.substr(0, S2 - (S2 - M2)), d2.value = parseInt(C2, 10))), T2 = e4.UHt(d2.value, v2.value, y2, u2, r3), 0 === d2.value && (T2 = T2.replace(/./g, " "), "" === b2) ? "0 " + T2 : "" === (l2 += T2) ? "0" : l2) : (l2 = "", x2 = h2.value * v2.value + d2.value, u2 = e4.tHt, (s2 = parseFloat(u2)) > 0 ? (x2 *= s2 / v2.value, v2.value = s2, l2 += (x2 = (f2 = (c2 = Math.ceil(x2)) - x2) <= 0.5 && f2 >= 0 ? parseFloat(c2.toString()) : parseFloat((c2 - 1).toString())) + "/" + v2.value) : l2 += e4.UHt(x2, v2.value, e4.eHt, e4.tHt, r3), 0 === x2 ? "0" : l2)) : i4.toString()) : a2 = It(a2 = O(i4, e4.iHt, r3), e4.qUt, e4.j9t, e4.aHt, e4.cultureName)));
              }, t5.prototype.parse = function(t6) {
                var n4, e4, r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, b2, y2 = this;
                if (!t6 || t6 === z.oHt) return p;
                if ("TRUE" === (n4 = U(t6)) || n4 === V() && V().boolean_true) return true;
                if ("FALSE" === n4 || n4 === V() && V().boolean_false) return false;
                if ((e4 = "(" === t6.charAt(0) && ")" === t6.charAt(t6.length - 1)) && (t6 = t6.substring(1, t6.length - 1)), r3 = y2.eHt && y2.tHt, o2 = y2.zHt(y2.iHt).HHt, (r3 || o2) && (a2 = 0, r3 && y2.nHt && 0 < (u2 = (t6 = t6.trim()).lastIndexOf(" ")) && u2 < t6.length - 1 && (a2 = parseInt(t6.substr(0, u2), 10), t6 = t6.substr(u2 + 1)), 0 < (s2 = t6.indexOf("/")) && s2 < t6.length - 1 && (c2 = t6.substr(0, s2), f2 = t6.substr(s2 + 1), !(L(c2) || L(f2) || (l2 = parseInt(c2, 10), h2 = parseInt(f2, 10), L(l2) || L(h2) || 0 === h2))))) return a2 + l2 / h2;
                if (t6 = y2.VHt(t6), t6 = y2.YHt(t6), v2 = (d2 = y2.zHt(t6)).HHt, g2 = d2.$6t, y2.ZHt(g2) && (g2 = i3.zf.OUt(g2, P(y2.cultureName).numberGroupSeparator, "", false), b2 = j.dUt(g2, y2.cultureName), !L(b2) && isFinite(b2))) {
                  if (v2 && (b2 = E(b2 / 100, 15)), e4) {
                    if ("-" === g2.charAt(0) || "+" === g2.charAt(0)) return p;
                    b2 = -1 * m(b2);
                  }
                  return b2;
                }
                return p;
              }, t5.prototype.GHt = function() {
                var t6, n4, e4 = this, i4 = e4.tHt, r3 = 0;
                if (i4) for (t6 = i4.length, n4 = 0; n4 < t6 && i4[n4].match(/[#?\d]/); n4++) r3++;
                return r3;
              }, t5.prototype.ZHt = function(t6) {
                var n4, e4 = "", i4 = 0, r3 = 0, o2 = 0, a2 = p, u2 = P(this.cultureName);
                for (n4 = t6.length - 1; n4 > -1; n4--) {
                  if (t6[n4] === u2.numberDecimalSeparator) i4++, o2 > 0 && (a2 = false), e4 = "";
                  else if ("e" === G(t6[n4])) {
                    if (r3++, e4 = "", n4 === t6.length - 1) return false;
                  } else if (t6[n4] === u2.numberGroupSeparator) a2 = 3 === e4.length, o2++, e4 = "";
                  else if ("-" === t6[n4] || "+" === t6[n4]) {
                    if (n4 > 0 && "e" !== G(t6[n4 - 1])) return false;
                  } else {
                    if (!Y(t6[n4])) return false;
                    if (e4 += t6[n4], 0 === n4 && 0 === parseInt(e4, 10) && a2) return false;
                  }
                  if (i4 > 1 || r3 > 1 || false === a2) return false;
                }
                return true;
              }, t5.prototype.VHt = function(t6) {
                var n4, e4, r3, o2, a2, u2, s2, c2 = t6, f2 = [];
                for (n4 = 0; n4 < c2.length; n4++) Y(c2[n4]) && f2.push(n4);
                for (r3 = [(e4 = P(this.cultureName)).currencyDecimalSeparator, e4.currencyGroupSeparator, e4.currencySymbol, v, e4.nanSymbol, e4.negativeInfinitySymbol, e4.negativeSign, e4.numberDecimalSeparator, e4.numberGroupSeparator, e4.percentDecimalSeparator, e4.percentGroupSeparator, e4.percentSymbol, e4.perMilleSymbol, e4.positiveInfinitySymbol, e4.positiveSign], o2 = c2.length - 1; o2 > -1; o2--) if (a2 = c2[o2], Z(a2) && r3.indexOf(a2.toString()) <= -1) (o2 < f2[0] || f2[f2.length - 1] < o2) && (c2 = i3.zf.VP(c2, o2, 1));
                else if (("-" === a2 || "+" === a2) && (u2 = o2 > 0 ? c2[o2 - 1].toString() : p, (s2 = ["e", "E", "(", P(this.cultureName).currencySymbol, v]).indexOf(u2) < 0)) break;
                return c2;
              }, t5.prototype.YHt = function(t6) {
                var n4, e4;
                if (i3.zf.fJ(t6, v)) {
                  if ((n4 = i3.zf.VP(t6, 0, 1)).indexOf(v) < 0) return n4;
                } else if (e4 = P(this.cultureName).currencySymbol, v !== e4 && i3.zf.fJ(t6, e4) && (n4 = i3.zf.VP(t6, 0, e4.length)).indexOf(e4) < 0) return n4;
                return t6;
              }, t5.prototype.zHt = function(t6) {
                var n4 = P(this.cultureName).percentSymbol, e4 = true, r3 = t6;
                return i3.zf.fJ(t6, n4) ? r3 = i3.zf.VP(t6, 0, n4.length) : i3.zf.dT(t6, n4) ? r3 = i3.zf.VP(t6, t6.length - n4.length, n4.length) : e4 = false, i3.zf.OS(r3, n4) && (e4 = false), { $6t: r3, HHt: e4 };
              }, t5.prototype.UHt = function(t6, n4, e4, i4, r3) {
                var o2 = _(O(t6, e4, r3)), a2 = "0." + n4, u2 = "#." + i4, s2 = _(O(a2, u2, r3, true)), c2 = r3 && r3.NumberFormat && r3.NumberFormat.numberDecimalSeparator || ".", f2 = o2 + "/" + s2.substr(s2.indexOf(c2) + 1);
                return "" === e4 && (f2 = t6 + f2), "" === i4 && (f2 += n4), f2;
              }, t5.getGCD = function(t6, n4) {
                var e4, i4, r3;
                if (0 === t6) return m(n4);
                if (0 === n4) return m(t6);
                for (r3 = (e4 = Math.max(t6, n4)) % (i4 = Math.min(t6, n4)); 0 !== r3; ) r3 = (e4 = i4) % (i4 = r3);
                return m(i4);
              }, t5.getFraction = function(t6, n4, e4, i4, r3) {
                var o2, a2, u2, s2, c2, f2, l2, h2, d2, v2 = 0, p2 = 0, g2 = 0, b2 = 0, y2 = Math.ceil;
                for (t6 > 0 ? 1 === (b2 = t6 - y2(t6) + 1) ? (b2 = 0, v2 = t6) : v2 = y2(t6) - 1 : t6 < 0 && (v2 = y2(t6), b2 = y2(t6) - t6), (o2 = Math.pow(10, n4 - 1)) < 2 && (o2 = 2), (a2 = Math.pow(10, n4) - 1) < 2 && (a2 = 2), u2 = false, s2 = 0, c2 = o2; c2 <= a2 && (f2 = c2 * b2, l2 = Math.round(f2), d2 = m((h2 = l2 / c2) - b2), !((!u2 || d2 < m(s2 - b2)) && (u2 = true, s2 = h2, p2 = l2, g2 = c2, d2 < 1e-6))); c2++) ;
                return e4.value = v2, i4.value = p2, r3.value = g2, u2;
              }, t5.toNumberPlaceholder = function(t6) {
                return t6.toString().replace(/\d/g, "?");
              }, t5;
            })(), nt = (function() {
              function t5(n4, e4, i4, r3) {
                wt.call(this, e4, i4, r3), arguments.length > 0 ? (t5.rHt(n4) || H(), this.$Ut = n4) : this.$Ut = "General", this.JUt = 0;
              }
              return t5.rHt = function(t6) {
                var n4, e4, i4 = "", r3 = false, o2 = -1, a2 = t6.length;
                for (n4 = 0; n4 < a2; n4++) '"' === (e4 = t6[n4]) ? o2 = (r3 = !r3) ? n4 : -1 : r3 || (i4 += e4);
                return o2 > 0 && (i4 += t6.substring(o2, a2)), !(i4.indexOf("0") >= 0 || i4.indexOf("#") >= 0 || i4.indexOf(".") >= 0 || i4.indexOf("@") >= 0);
              }, t5.prototype.WHt = function() {
                var t6, n4 = this;
                return n4.QHt || (t6 = vt(t6 = n4.$Ut, "General", D), n4.QHt = new tt(t6, n4.j9t, n4.aHt, n4.cultureName), n4.QHt.qUt = true), n4.QHt;
              }, t5.prototype.KHt = function() {
                var t6 = this;
                return t6.JHt || (t6.JHt = new tt("0.#####E+00", t6.j9t, t6.aHt, t6.cultureName), t6.JHt.qUt = true), t6.JHt;
              }, t5.prototype.formatString = function() {
                return i3.zf.Vi(this.$Ut, "@NumberFormat", "General");
              }, t5.prototype.format = function(t6) {
                var n4, e4, r3, a2 = this;
                if (o.lt.q8(t6, a2.cultureName)) {
                  if (n4 = !a2.j9t || a2.j9t.allowScience(), (e4 = o.lt.uJ(t6)) !== g && e4 !== p) return m(e4) > 99999999999 && n4 || m(e4) < 1e-11 && 0 !== e4 ? a2.KHt().format(t6) : a2.WHt().format(t6);
                } else {
                  if (k(t6, "string")) return r3 = pt(r3 = i3.zf.Vi(a2.formatString(), '"', "")), t6;
                  if (k(t6, "boolean")) return t6.toString().toUpperCase();
                }
                return "";
              }, t5.prototype.parse = function(t6) {
                var n4, e4, o2, a2, s2, c2, f2, l2, h2, d2, v2, b2, y2, w2, M2;
                if (z.Ji(t6)) return p;
                if ("number" == typeof t6) return t6;
                if (n4 = false, e4 = t6.trim(), (o2 = i3.zf.hD(e4, "-", false)) > 0 && !gt(e4.charAt(o2 - 1), "E", true) && (n4 = true), c2 = (s2 = (a2 = F(this.cultureName)).DateTimeFormat).dateSeparator, f2 = s2.timeSeparator, l2 = s2.monthNames, h2 = s2.abbreviatedMonthNames, d2 = function(t7, n5) {
                  var e5, r3, o3;
                  if (!n5 || 0 === n5.length) return false;
                  for (e5 = false, r3 = 0, o3 = n5.length; r3 < o3; r3++) if (i3.zf.OS(t7, n5[r3], true)) {
                    e5 = true;
                    break;
                  }
                  return e5;
                }, (n4 || i3.zf.OS(e4, c2, false) || i3.zf.OS(e4, f2, false) || i3.zf.OS(e4, "/", false) || i3.zf.OS(e4, ":", false) || i3.zf.OS(e4, "-", false) || i3.zf.OS(e4, "年", false) || i3.zf.OS(e4, "月", false) || i3.zf.OS(e4, "日", false) || d2(e4, l2) || d2(e4, h2) || "ja-JP" === a2.name() && u.XPt.gGt.indexOf(e4[0].toUpperCase()) >= 0 && i3.zf.OS(e4, ".", false)) && (v2 = r2.ct.yU(e4))) return v2;
                if ((y2 = "-" === e4.charAt(0)) || "+" === e4.charAt(0)) {
                  if ("(" === (e4 = i3.zf.VP(e4, 0, 1)).charAt(0) && ")" === e4.charAt(e4.length - 1)) return t6;
                } else if ("(" === e4.charAt(0) && ")" === e4.charAt(e4.length - 1) && (w2 = true, "-" === (e4 = (e4 = e4.substring(1, e4.length - 1)).trim()).charAt(0) || "+" === e4.charAt(0))) return t6;
                return (b2 = this.WHt().parse(e4)) !== p && b2 !== g ? (M2 = w2 && k(b2, "boolean")) ? t6 : (w2 || y2) && k(b2, "number") ? -1 * m(b2) : b2 : t6;
              }, t5;
            })(), et = (function() {
              function t5(t6, n4, e4, i4) {
                var r3, o2 = this;
                wt.call(o2, n4, e4, i4), r3 = mt(t6, false), n4 && (r3 = vt(r3, o2.j9t.Nat, o2.j9t.currencySymbol())), r3 = pt(r3 = ht(r3)), o2.pU = r3, o2.JUt = 3;
              }
              return t5.prototype.format = function(t6, n4) {
                var e4, i4, o2, a2 = this;
                try {
                  return e4 = void 0, i4 = void 0, i4 = t6 instanceof Date ? r2.ct.o0(t6).toString() : ct(t6), o2 = a2.XHt(a2.pU), e4 = a2.qHt(i4, o2.formatTokens, t6, o2.hasAtPart, n4);
                } catch (t7) {
                  return "";
                }
              }, t5.prototype.parse = function(t6) {
                return t6 || "";
              }, t5.prototype.formatString = function() {
                return this.pU;
              }, t5.prototype.XHt = function(t6) {
                var n4, e4, i4 = [], r3 = false, o2 = "", a2 = false, u2 = p;
                for (e4 = 0; e4 < t6.length; e4++) n4 = t6.charAt(e4), a2 ? ('"' !== n4 ? o2 += n4 : (o2 += n4, i4.push(o2), o2 = "", a2 = false), u2 = n4) : "*" !== u2 && "_" !== u2 && "\\" !== u2 || "" === o2 ? "*" !== n4 && "_" !== n4 && "\\" !== n4 ? "@" !== n4 ? '"' !== n4 ? (o2 += n4, u2 = n4) : (u2 = n4, "" !== o2 && i4.push(o2), o2 = n4, a2 = true) : (u2 = n4, "" !== o2 && (i4.push(o2), o2 = ""), i4.push(n4), r3 = true) : (u2 = n4, "" !== o2 && (i4.push(o2), o2 = ""), o2 += n4) : (o2 += n4, i4.push(o2), o2 = "");
                return "" !== o2 && i4.push(o2), { formatTokens: i4, hasAtPart: r3 };
              }, t5.prototype.qHt = function(t6, n4, e4, i4, r3) {
                var o2, a2, u2 = [], s2 = false;
                if ("string" != typeof e4 || i4 || r3) for (o2 = n4.length - 1; o2 >= 0; o2--) "*" === (a2 = n4[o2])[0] ? s2 || (s2 = true, u2.push({ type: "fillingChar", value: a2[1] })) : "_" === a2[0] ? u2.push({ type: "placeholder", value: a2[1] }) : '"' === a2[0] && '"' === a2[a2.length - 1] ? a2.length >= 2 && u2.push({ type: "text", value: a2.substr(1, a2.length - 2) }) : "\\@" === a2 ? u2.push({ type: "text", value: "@" }) : "@" === a2[0] ? u2.push({ type: "text", value: t6 }) : u2.push({ type: "text", value: a2 });
                else u2.push({ type: "text", value: e4 });
                return u2.reverse();
              }, t5;
            })(), it = function() {
              return { pattern: x, formatter: ["d-mmm", "mmm-yy", B().shortDatePattern, "h:mm", "h:mm:ss", "h:mm:ss.0", "h:mm:ss tt", B().shortDatePattern + " h:mm", B().shortDatePattern + " h:mm:ss", B().shortDatePattern + " h:mm:ss.0"] };
            }, rt = (function() {
              function t5(t6, n4) {
                var e4 = this;
                0 === arguments.length ? (e4.formatCached = "General", e4.E9t = new nt()) : e4.Hc(t6, n4);
              }
              return t5.prototype.Hc = function(n4, e4) {
                var i4, r3, o2, a2, s2, c2, f2, l2, h2, d2, v2, m2, b2, y2, w2, M2, C2;
                for (n4 !== p && n4 !== g || H(), i4 = n4, (r3 = this).formatCached = n4, o2 = "", a2 = "", s2 = false, c2 = false, f2 = false, l2 = [], h2 = 0; h2 < n4.length; h2++) '"' === (d2 = n4[h2]) ? (c2 = !c2, a2 += d2) : c2 ? a2 += d2 : "[" === d2 ? (s2 && H(), a2 && (o2 || (o2 = ""), o2 += a2), a2 = d2.toString(), s2 = true) : "]" === d2 ? (s2 || H(), a2 ? (v2 = (a2 += d2).toString(), (m2 = Ct(a2.toString())) ? "ABSTimeFormatPart" === m2.Name ? (l2.push(new m2(t5.preProcessPart(v2), v2)), o2 += a2) : v2 === u.XPt.eraExcelFormatter ? (r3.addPart(m2, u.XPt.eraInternalFormatter), f2 = true) : r3.addPart(m2, v2) : (o2 += b2 = t5.partToNormalStr(v2), i4 = vt(n4, v2, b2)), a2 = "") : H(), s2 = false) : a2 += d2;
                a2 ? s2 ? H() : o2 += a2 : o2 || (o2 = r3.$Ht()), r3.localeIDFormatPart && (e4 = r3.localeIDFormatPart.cultureInfo().name()), M2 = (w2 = St(o2, y2 = r3.conditionalFormatPart))._type, C2 = w2.uHt ? i4 : o2, M2 ? r3.E9t = new M2(C2, r3.localeIDFormatPart, r3.dbNumberFormatPart, e4, l2.length > 0 ? l2 : p, f2) : H();
              }, t5.prototype.$Ht = function() {
                var n4, e4 = this, i4 = "";
                return e4.dbNumberFormatPart && ((n4 = t5.proNames.some((function(t6) {
                  return "dbNumberFormatPart" !== t6 && e4[t6];
                }))) || (i4 = "General")), i4;
              }, t5.prototype.formatString = function() {
                var n4, e4, i4, r3 = this, o2 = "";
                for (n4 = 0, e4 = t5.proNames.length; n4 < e4; n4++) r3[i4 = t5.proNames[n4]] && (o2 += r3[i4].toString());
                return o2 += r3.E9t.formatString();
              }, t5.prototype.addPart = function(n4, e4) {
                var i4, r3, o2, a2 = this, u2 = t5.proNames, s2 = t5.preProcessPart(e4);
                for (i4 = 0, r3 = u2.length; i4 < r3; i4++) if (gt(o2 = u2[i4], n4.Name, true)) {
                  if (a2[o2]) throw new Error(d().Exp_DuplicatedDescriptor);
                  a2[o2] = new n4(s2, e4);
                }
              }, t5.prototype.format = function(t6, n4) {
                return this.E9t.format(t6, n4);
              }, t5.prototype.parse = function(t6) {
                return this.E9t.parse(t6);
              }, t5.checkFormatter = function(t6) {
                if (!t6 || t6 === z.oHt) throw new Error(d().Exp_TokenIllegal);
              }, t5.preProcessPart = function(n4) {
                t5.checkFormatter(n4);
                var e4 = dt(n4);
                return t5.checkFormatter(e4), e4;
              }, t5.partToNormalStr = function(n4) {
                var e4 = t5.preProcessPart(n4);
                return e4[0] === v && (e4 = e4.slice(1)), '"' + e4 + '"';
              }, t5.proNames = ["colorFormatPart", "conditionalFormatPart", "dbNumberFormatPart", "localeIDFormatPart"], t5;
            })(), ot = (function(t5) {
              function n4(n5, e4) {
                var i4 = t5.call(this, n5, e4) || this, r3 = i4;
                return r3.lHt = true, r3.PropertyChanged = [], z.Ji(n5) && (n5 = "General"), r3.formatCached = n5, r3.cultureName = e4, r3.init(), i4;
              }
              return at(n4, t5), n4.prototype.toJSON = function() {
                var t6 = this, n5 = { formatCached: t6.formatCached };
                return t6.cultureName && (n5.customerCultureName = t6.cultureName), "general" === G(t6.formatCached) && delete n5.formatCached, n5;
              }, n4.prototype.hasFormattedColor = function() {
                var t6, n5, e4 = this;
                for (t6 in C) if (C.hasOwnProperty(t6) && (n5 = e4.getFormatter(C[t6])) && n5.colorFormatPart) return true;
                return false;
              }, n4.prototype.formatString = function(t6) {
                var n5, e4, i4, r3, o2 = this;
                if (0 === arguments.length) {
                  for (n5 = z.oHt, e4 = 0, i4 = o2.formatters.length; e4 < i4; e4++) n5 += (r3 = o2.formatters[e4]).formatString(), e4 !== i4 - 1 && (n5 += ";");
                  return n5;
                }
                if (!t6) throw new Error(d().Exp_ValueIsNull);
                return o2.formatters = p, o2.formatCached = t6, o2.init(), o2.tzt("formatString"), o2;
              }, n4.prototype.getFormatter = function(t6) {
                var n5 = this;
                return n5.formatters && n5.formatters[t6];
              }, n4.prototype.getPreferredEditingFormatter = function(t6) {
                var e4, i4, r3, a2 = B(this.cultureName), u2 = P(this.cultureName), s2 = n4.defFormatter;
                return k(t6, "TimeSpan") ? s2(a2.longTimePattern) : k(t6, "DateTime") ? (i4 = 0 === t6.getHours() && 0 === t6.getMinutes() && 0 === t6.getSeconds() && 0 === t6.getMilliseconds() ? "" : " h:mm:ss", s2(a2.shortDatePattern + i4)) : o.lt.q8(t6, this.cultureName) ? s2((r3 = o.lt.uJ(t6)) >= 1e21 || r3 <= 1e-17 && r3 > 0 || r3 <= -1e21 || r3 < 0 && r3 >= -1e-17 ? null !== (e4 = u2.scientificNotation) && void 0 !== e4 ? e4 : "0.##############E+00" : D) : s2("General");
              }, n4.prototype.getPreferredDisplayFormatter = function(t6, e4) {
                var a2, u2, s2, c2, f2, l2, h2, d2, v2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, N2, j2, D2, _2, O2 = this, E2 = n4.defFormatter;
                if (e4 || (e4 = { value: p }), e4.value = p, z.Ji(t6)) return new n4();
                if (a2 = t6, u2 = e4.value = O2.parse(a2), k(u2, "DateTime") || k(u2, "TimeSpan")) {
                  for (c2 = (s2 = it()).pattern, f2 = s2.formatter, (d2 = (h2 = (l2 = F(O2.cultureName)).DateTimeFormat).preselectedFormatters).length > 0 && (c2 = c2.concat([d2]), f2 = f2.concat([d2[0]])), "ja-JP" === l2.name() && (c2 = c2.concat([h2.eraFormatter]), f2 = f2.concat(["ge.M.d"]), v2 = l2.QPt.filter((function(t7) {
                    return "ggge" === t7.substr(0, 4);
                  })), c2 = c2.concat([v2]), f2 = f2.concat(['ggge"年"M"月"d"日']), g2 = l2.QPt.filter((function(t7) {
                    return "gge" === t7.substr(0, 3);
                  })), c2 = c2.concat([g2]), f2 = f2.concat(['gge"年"M"月"d"日']), m2 = l2.QPt.filter((function(t7) {
                    return "ge" === t7.substr(0, 2);
                  })), c2 = c2.concat([m2]), f2 = f2.concat(['ge"年"M"月"d"日'])), b2 = 0; b2 < c2.length; b2++) for (y2 = c2[b2], w2 = 0; w2 < y2.length; w2++) if (M2 = y2[w2], (C2 = r2.ct.yU(t6, M2)) && C2 - u2 === 0) return new n4(f2[b2]);
                } else if (o.lt.q8(u2, O2.cultureName)) {
                  if (T2 = (S2 = P(O2.cultureName)).currencySymbol, x2 = S2.numberDecimalSeparator, A2 = S2.percentSymbol, I2 = S2.numberGroupSeparator, N2 = "E", _2 = (D2 = (j2 = i3.zf.OS)(a2, x2)) ? ".00" : "", a2[0] === T2) return E2(z.I5("{0}#,##0{1};[Red]({0}#,##0{1})", T2, _2));
                  if (j2(a2, N2, true)) return E2("0.00E+00");
                  if (a2[0].toString() === A2 || a2[a2.length - 1].toString() === A2) return E2(z.I5("0{0}%", _2));
                  if (j2(a2, I2)) return E2(z.I5("#,##0{0}", _2));
                }
                return E2("General");
              }, n4.prototype.format = function(t6, n5) {
                var e4, i4, r3, a2, u2, s2, c2;
                if (k(t6, "boolean")) return V() && (t6 = t6 ? V().boolean_true : V().boolean_false), t6.toString().toUpperCase();
                if (r3 = 0, a2 = (e4 = this).vn(t6)) {
                  u2 = a2.colorFormatPart, n5 && u2 && (n5.conditionalForeColor = n5.value = u2.foreColor), (i4 = o.lt.q8(t6, e4.cultureName)) && (r3 = o.lt.uJ(t6)), s2 = z.oHt;
                  try {
                    i4 && a2 === e4.getFormatter(C.jHt) && 0 !== this.expressionNumber ? (s2 = a2.format(a2.considerNegSymbol ? r3 : m(r3))) === p && k(t6, "string") && (s2 = t6) : (s2 = a2.value) === g && (c2 = !e4.lHt && a2 === e4.getFormatter(C._text), s2 = a2.format(t6, i4 || c2)), n5 && (n5.content = N(s2) ? s2 : [{ type: "text", value: s2 }]), N(s2) && (s2 = j.mUt(s2));
                  } catch (n6) {
                    k(t6, "string") && (s2 = t6.toString());
                  }
                  return s2;
                }
                return i4 && r3 < 0 ? "-".toString() : k(t6, "string") ? t6.toString() : t6 === g || t6 === p ? z.oHt : t6.toString();
              }, n4.prototype.parse = function(t6) {
                var n5 = this;
                return n5.formatters && n5.formatters.length > 0 ? n5.formatters[0].parse(t6) : p;
              }, n4.prototype.init = function() {
                var t6, n5, e4, i4 = this, r3 = i4.formatCached;
                for (z.Ji(r3) && H(), i4.formatters = [], t6 = kt(r3), i4.lHt = 1 === t6.length, (!t6 || t6.length < 1 || t6.length > 4) && H(), n5 = 0; n5 < t6.length; n5++) -1 !== t6[n5].indexOf("@") && -1 === t6[n5].indexOf("\\@") && (n5 !== t6.length - 1 ? H() : this.hasAt = true), e4 = new rt(t6[n5], i4.cultureName), i4.formatters.push(e4);
                i4.getFormatter(C.EHt) || H(), this.nzt();
              }, n4.prototype.nzt = function() {
                this.expressionNumber = this.formatters.length - (this.hasAt ? 1 : 0);
                var t6 = (0 === this.expressionNumber ? 1 : this.expressionNumber) - 1;
                C = o.lt.Dh({}, S[t6]), this.hasAt && 0 !== this.expressionNumber && (C._text = this.formatters.length - 1);
              }, n4.prototype.vn = function(t6) {
                var n5, e4, i4, r3, a2, u2, s2, c2, f2, l2, h2, d2 = this;
                if (d2.nzt(), e4 = (n5 = d2.getFormatter(C.EHt)) && n5.conditionalFormatPart, i4 = d2.getFormatter(C._text), e4 && (C.OHt = 2, this.hasAt || (C._text = 3)), "string" == typeof t6 && L(t6)) return i4 || (e4 ? t6 : n5);
                if (o.lt.q8(t6, d2.cultureName) || k(t6, "boolean")) {
                  if (r3 = d2.getFormatter(C.jHt), a2 = d2.getFormatter(C.OHt), u2 = o.lt.uJ(t6), s2 = e4 && n5.conditionalFormatPart.isMeetCondition(u2), f2 = (c2 = r3 && r3.conditionalFormatPart) && r3.conditionalFormatPart.isMeetCondition(u2), l2 = void 0, d2.lHt || (e4 ? s2 : u2 > 0 || 0 === u2 && !a2)) l2 = n5;
                  else if (c2 ? f2 : u2 < 0) l2 = r3;
                  else if (a2) l2 = a2;
                  else if (r3) {
                    if (e4 && c2) return { value: h2 = u2 + "" };
                    l2 = r3;
                  }
                  return l2 && (!e4 || c2 || l2 !== r3 || a2 || (l2.considerNegSymbol = true), e4 && c2 && l2 === r3 && r3.conditionalFormatPart && r3.conditionalFormatPart.isMeetCondition(1e-10) && (l2.considerNegSymbol = true), this.expressionNumber <= 1 && (l2.considerNegSymbol = true)), l2;
                }
                return p;
              }, n4.prototype.tzt = function(t6) {
                var n5, e4, i4 = this;
                if (i4.PropertyChanged) for (n5 = 0; n5 < i4.PropertyChanged.length; n5++) "function" == typeof (e4 = i4.PropertyChanged[n5]) && e4(i4, t6);
              }, n4.defFormatter = function(t6) {
                var e4 = n4[t6];
                return e4 || (e4 = new n4(t6), n4[t6] = e4), e4;
              }, n4.test = function(t6) {
                var n5, e4, i4 = true;
                try {
                  n5 = new f.Lexer(t6), (e4 = new l.Parser(n5)).parse();
                } catch (t7) {
                  i4 = false;
                }
                return i4;
              }, n4;
            })(Q), n3.GeneralFormatter = ot;
          }, "./src/plugins/formatter/formatterGrammar/interface.ts": function(t4, n3) {
            Object.defineProperty(n3, "__esModule", { value: true }), n3.throwError = n3.BACKSLASH = n3.UNDERLINE = n3.ASTERISK = n3.DOUBLE_QUOTE = n3.SEMICOLON = void 0, n3.SEMICOLON = ";", n3.DOUBLE_QUOTE = '"', n3.ASTERISK = "*", n3.UNDERLINE = "_", n3.BACKSLASH = "\\";
            var e3 = function() {
              throw new Error("Invalid Number Format");
            };
            n3.throwError = e3;
          }, "./src/plugins/formatter/formatterGrammar/lexer.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.Lexer = void 0, i3 = e3("./src/plugins/formatter/formatterGrammar/interface.ts"), r2 = function(t5) {
              var n4;
              return !!["0", "#", "?", ".", "%", ",", "/", i3.BACKSLASH, i3.ASTERISK, i3.UNDERLINE, "@"].find((function(n5) {
                return n5 === t5;
              }));
            }, o = function(t5) {
              var n4;
              return [i3.BACKSLASH, i3.ASTERISK, i3.UNDERLINE].find((function(n5) {
                return n5 === t5;
              }));
            }, a = function(t5, n4) {
              return { type: t5, value: n4 };
            }, u = (function() {
              function t5(t6) {
                this.Fmt = [], this.DZe = t6, this.vHr();
              }
              return t5.prototype.vHr = function() {
                for (var t6, n4, e4 = 0, u2 = this.DZe; e4 < u2.length; e4++) if (t6 = u2[e4], r2(t6)) {
                  if (o(t6)) {
                    this.Fmt.push(a("symbol", t6)), e4 < u2.length - 1 && (this.Fmt.push(a("char", u2[e4 + 1])), e4++);
                    continue;
                  }
                  this.Fmt.push(a("symbol", t6));
                } else if (t6 !== i3.SEMICOLON) {
                  if (t6 === i3.DOUBLE_QUOTE) {
                    if (-1 !== (n4 = u2.slice(e4 + 1).search(i3.DOUBLE_QUOTE))) {
                      n4 = n4 + e4 + 1, this.Fmt.push(a("text", u2.slice(e4 + 1, n4))), e4 = n4;
                      continue;
                    }
                    (0, i3.throwError)();
                  }
                  this.Fmt.push(a("char", t6));
                } else this.Fmt.push(a("semicolon", t6));
                this.Fmt.push(a("EOF", ""));
              }, t5.prototype.jbi = function() {
                return this.Fmt.shift();
              }, t5;
            })(), n3.Lexer = u;
          }, "./src/plugins/formatter/formatterGrammar/parser.ts": function(t4, n3, e3) {
            var i3, r2;
            Object.defineProperty(n3, "__esModule", { value: true }), n3.Parser = void 0, i3 = e3("./src/plugins/formatter/formatterGrammar/interface.ts"), r2 = (function() {
              function t5(t6) {
                this.gHr = t6, this.mHr = t6.jbi();
              }
              return t5.prototype.pHr = function(t6) {
                this.mHr.type === t6 ? this.mHr = this.gHr.jbi() : (0, i3.throwError)();
              }, t5.prototype.parse = function() {
                for (var t6 = []; "EOF" !== this.mHr.type; ) t6.push(this.bHr()), t6.length > 4 && (0, i3.throwError)();
                return { type: "numberFormat", body: t6 };
              }, t5.prototype.bHr = function() {
                for (var t6, n4 = []; "semicolon" !== this.mHr.type && "EOF" !== this.mHr.type; ) "symbol" === (t6 = this.mHr.type) ? n4.push(this.wHr()) : n4.push(this.yHr());
                return "semicolon" === this.mHr.type && this.pHr("semicolon"), { type: "formatPart", body: n4 };
              }, t5.prototype.wHr = function() {
                var t6, n4 = this.mHr.value;
                return n4 === i3.ASTERISK ? (this.pHr("symbol"), t6 = { type: "asterisk", body: this.mHr.value }, this.pHr("char")) : n4 === i3.BACKSLASH ? (this.pHr("symbol"), t6 = { type: "char", body: this.mHr.value }, this.pHr("char")) : n4 === i3.UNDERLINE ? (this.pHr("symbol"), t6 = { type: "underline", body: this.mHr.value }, this.pHr("char")) : (t6 = { type: "symbol", body: this.mHr.value }, this.pHr("symbol")), t6;
              }, t5.prototype.yHr = function() {
                var t6, n4 = this.mHr.type;
                return "char" === n4 ? (t6 = { type: "char", body: this.mHr.value }, this.pHr("char")) : "text" === n4 && (t6 = { type: "text", body: this.mHr.value }, this.pHr("text")), t6;
              }, t5;
            })(), n3.Parser = r2;
          }, "./src/plugins/slicer/slicer.entry.ts": function(t4, n3, e3) {
            var i3 = this && this.JKr || (Object.create ? function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n4, e4);
              r3 && !("get" in r3 ? !n4.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n4[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n4[e4];
            }), r2 = this && this.XKr || function(t5, n4) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n4, e4) || i3(n4, t5, e4);
            };
            Object.defineProperty(n3, "__esModule", { value: true }), r2(e3("./src/plugins/slicer/slicer.ts"), n3);
          }, "./src/plugins/slicer/slicer.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d;
            function v(t5) {
              return "object" == typeof t5 && t5 !== o && t5.text !== r2;
            }
            function p(t5, n4) {
              var e4, i4, c2;
              if (t5 === o || t5 === r2) return false;
              if (k(t5) === a) n4.value = t5;
              else if (k(t5) === s) n4.value = t5 ? 1 : 0;
              else if (t5 instanceof Date) n4.value = h.o0(t5);
              else {
                if (k(t5) !== u) return false;
                if (0 === N(t5 = t5.trim())) return false;
                if (e4 = false, "%" === t5.charAt(N(t5) - 1) && (e4 = true, t5 = t5.substr(0, N(t5) - 1)), N(t5) >= 2 && "0" === t5[0] && "x" === t5[1]) return false;
                if (i4 = Number(t5).valueOf(), isNaN(i4) || !isFinite(i4)) {
                  if (c2 = new Date(t5), isNaN(c2)) return false;
                  i4 = h.o0(c2);
                }
                e4 && (i4 /= 100), n4.value = i4;
              }
              return true;
            }
            function g(t5) {
              var n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2, p2, g2 = t5.ezt;
              for (g2 || (t5.izt = [], t5.rzt = []), n4 = g2 ? t5.ozt : t5.izt, e4 = t5.azt, i4 = t5.uzt, r3 = g2 ? t5.szt : t5.rzt, o2 = t5.Mct, a2 = t5.czt, u2 = t5.fzt, s2 = t5.SIr(), f2 = {}, l2 = 0; l2 < s2; l2++) {
                for (h2 = false, d2 = void 0, v2 = 0; v2 < N(o2) && (d2 = o2[v2], g2 && d2 === t5.lzt || (i4[d2] ? (I(f2[p2 = t5.columnNames[d2]]) && (f2[p2] = t5.getColumnIndex(p2)), c2 = t5.fue(f2[p2], l2), h2 = !i4[d2][c2]) : e4[d2] && (h2 = !e4[d2][l2]), !h2)); v2++) ;
                !h2 && g2 && (a2 ? (I(f2[p2 = t5.columnNames[d2]]) && (f2[p2] = t5.getColumnIndex(p2)), h2 = !a2[c2 = t5.fue(f2[p2], l2)]) : u2 && (h2 = !u2[l2])), h2 || (n4[l2] = true);
              }
              for (v2 = 0; v2 < N(n4); v2++) n4[v2] && r3.push(v2);
            }
            function m(t5) {
              return "string" == typeof t5 ? t5.toLowerCase() : t5 instanceof Date ? h.o0(t5) : t5;
            }
            function b(t5) {
              var n4, e4, i4 = t5.hzt = {};
              for (t5.dzt = [], t5.vzt = [], t5.mzt = [], t5.gzt = [], n4 = t5.columnNames, e4 = 0; e4 < N(n4); e4++) i4[(n4[e4] + "").toUpperCase()] = e4;
            }
            function y(t5, n4) {
              var e4, i4, r3, o2, a2, u2, s2, c2 = t5.vzt, f2 = t5.pzt, l2 = t5.mzt, h2 = t5.gzt, d2 = h2[n4] = [];
              for (t5.bzt = [], t5.xIr(n4, []), c2[n4] = [], f2[n4] = {}, l2[n4] = [], e4 = {}, i4 = 0; i4 < t5.SIr(); i4++) o2 = v(r3 = t5.JNr(i4, n4)) ? r3.text.trim() : r3, t5.TIr(n4, o2), (a2 = e4[m(o2)]) ? (a2.list.push(i4), d2[i4] = a2.index) : (u2 = [i4], c2[n4].push(o2), l2[n4].push(u2), s2 = N(l2[n4]) - 1, f2[n4][o2] = s2, d2[i4] = s2, e4[m(o2)] = { list: u2, index: s2 });
            }
            function w(t5, n4, e4) {
              var i4, r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, p2, g2 = t5.yzt, m2 = t5.getColumnIndex(n4), b2 = [];
              if (!m2) return b2;
              if (i4 = t5.ezt ? t5.wzt : t5.Mzt[m2], r3 = t5.izt, !i4) return b2;
              for (g2[m2] || t5.Czt(m2), o2 = [], a2 = g2[m2], u2 = 0; u2 < N(a2); u2++) c2 = v(s2 = t5.JNr(u2, m2)) ? s2.value : s2, o2[a2[u2]] = c2;
              for (f2 = t5.Szt[m2], u2 = 0; u2 < N(i4); u2++) {
                for (l2 = i4[u2], h2 = false, p2 = (d2 = t5.Tzt(o2, l2)).start; p2 <= d2.end; p2++) if (r3[f2[p2]]) {
                  h2 = true;
                  break;
                }
                h2 !== e4 && b2.push(l2);
              }
              return b2;
            }
            function M(t5, n4) {
              var e4, i4, r3, o2, a2 = [], u2 = t5.getColumnIndex(n4);
              if (u2 >= 0) {
                for (e4 = N(t5.getData(n4)), i4 = t5.ezt ? t5.ozt : t5.izt, r3 = 0; r3 < e4; r3++) i4[r3] || (o2 = t5.fue(u2, r3), -1 === a2.indexOf(o2) && a2.push(o2));
                return a2;
              }
            }
            function C(t5, n4) {
              var e4, i4, r3, o2, a2, u2, s2, c2 = [], f2 = {}, l2 = t5.getColumnIndex(n4);
              if (l2 >= 0) for (e4 = t5.czt || t5.fzt, i4 = t5.uzt[l2] || t5.azt[l2], r3 = t5.ezt && l2 === t5.lzt ? e4 : i4, a2 = N((o2 = !!t5.azt[l2]) ? t5.getData(n4) : t5.getExclusiveData(n4)), u2 = 0; u2 < a2; u2++) r3 && !r3[u2] && (f2[s2 = o2 ? t5.fue(l2, u2) : u2] || (f2[s2] = true, c2.push(s2)));
              return c2;
            }
            function S(t5, n4) {
              var e4, i4, r3, o2, a2, u2, s2, c2, f2, l2 = {}, h2 = t5.columnNames, d2 = N(h2);
              for (e4 = 0; e4 < d2; e4++) if (h2[e4] !== n4) for (i4 = C(t5, h2[e4]), r3 = 0; r3 < N(i4); r3++) for (o2 = t5.getRowIndexes(h2[e4], i4[r3]), a2 = 0; a2 < N(o2); a2++) l2[o2[a2]] || (l2[o2[a2]] = true);
              for (u2 = {}, d2 = t5.SIr(), e4 = 0; e4 < d2; e4++) s2 = t5.getExclusiveRowIndex(n4, e4), l2[e4] || (u2[s2] = true);
              for (c2 = N(t5.getExclusiveData(n4)), f2 = [], e4 = 0; e4 < c2; e4++) u2[e4] || f2.push(e4);
              return f2;
            }
            function T(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2, c2, f2, l2, h2 = t5.getColumnIndex(n4), d2 = t5.yzt;
              for (d2[h2] || t5.Czt(h2), r3 = [], o2 = d2[h2], a2 = 0; a2 < N(o2); a2++) s2 = v(u2 = t5.JNr(a2, h2)) ? u2.value : u2, r3[o2[a2]] = s2;
              for (c2 = [], a2 = 0; a2 < N(e4); a2++) for (f2 = t5.Tzt(r3, e4[a2]), l2 = 0; l2 < N(o2); l2++) o2[l2] >= f2.start && o2[l2] <= f2.end && (c2[l2] = true);
              i4 ? (t5.fzt = c2, t5.wzt = e4) : (t5.Mzt[h2] = e4, t5.azt[h2] = c2, delete t5.uzt[h2], delete t5.Azt[h2]), g(t5);
            }
            function x(t5, n4, e4, i4) {
              var r3, o2 = t5.getColumnIndex(n4), a2 = [];
              for (r3 = 0; r3 < N(e4); r3++) a2[e4[r3]] = true;
              i4 ? t5.czt = a2 : (t5.uzt[o2] = a2, t5.Azt[o2] = e4, delete t5.Mzt[o2], delete t5.azt[o2]), g(t5);
            }
            function A(t5, n4) {
              t5.ezt = false, t5.czt = [], t5.szt = [], t5.ozt = [], t5.fzt = [], n4 && t5.onFiltered();
            }
            function I(t5) {
              return t5 === r2 || t5 === o;
            }
            function k(t5) {
              return typeof t5;
            }
            function N(t5) {
              return t5 ? t5.length : 0;
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.GeneralSlicerData = n3.xzt = n3.SlicerAggregateType = n3.FilteredOutDataType = void 0, i3 = e3("./src/common/util/datetimehelper.ts"), r2 = void 0, o = null, a = "number", u = "string", s = "boolean", c = i3.ct.o0, (function(t5) {
              t5[t5.all = 0] = "all", t5[t5.byCurrentColumn = 1] = "byCurrentColumn", t5[t5.byOtherColumns = 2] = "byOtherColumns";
            })(f = n3.FilteredOutDataType || (n3.FilteredOutDataType = {})), (function(t5) {
              t5[t5.average = 1] = "average", t5[t5.count = 2] = "count", t5[t5.counta = 3] = "counta", t5[t5.max = 4] = "max", t5[t5.min = 5] = "min", t5[t5.product = 6] = "product", t5[t5.stdev = 7] = "stdev", t5[t5.stdevp = 8] = "stdevp", t5[t5.sum = 9] = "sum", t5[t5.vars = 10] = "vars", t5[t5.varp = 11] = "varp";
            })(l = n3.SlicerAggregateType || (n3.SlicerAggregateType = {})), h = (function() {
              function t5() {
              }
              return t5.o0 = function(t6) {
                return c(t6);
              }, t5.quickSort = function(n4) {
                var e4, i4 = N(n4), r3 = [];
                for (e4 = 0; e4 < i4; e4++) r3[e4] = { index: e4, value: n4[e4] };
                return t5.quickSortImp(r3);
              }, t5.quickSortImp = function(n4) {
                var e4, i4, r3, o2, a2, u2, s2, c2, f2 = n4.length;
                if (f2 <= 1) return n4;
                for (e4 = t5, r3 = n4[i4 = Math.floor(f2 * Math.random())], o2 = [], a2 = [], u2 = [], s2 = 0; s2 < f2; s2++) i4 !== s2 ? (c2 = e4.sortCompare(n4[s2].value, r3.value)) < 0 ? o2.push(n4[s2]) : c2 > 0 ? a2.push(n4[s2]) : u2.push(n4[s2]) : u2.push(n4[s2]);
                return e4.quickSortImp(o2).concat(u2, e4.quickSortImp(a2));
              }, t5.isEquals = function(t6, n4) {
                return !(!I(t6) && "" !== t6 || !I(n4) && "" !== n4) || (t6 instanceof Date && n4 instanceof Date ? t6.valueOf() === n4.valueOf() : k(t6) === u && k(n4) === u ? t6.toLowerCase() === n4.toLowerCase() : t6 === n4);
              }, t5.isGreaterThan = function(n4, e4) {
                var i4 = k(n4), r3 = k(e4);
                return i4 === s ? n4 = n4 ? 1 : 0 : n4 instanceof Date && (n4 = t5.o0(n4)), r3 === s ? e4 = e4 ? 1 : 0 : e4 instanceof Date && (e4 = t5.o0(e4)), i4 === r3 || i4 !== a && r3 !== a ? i4 === u && r3 === u ? n4.toLowerCase() > e4.toLowerCase() : n4 > e4 : r3 === a;
              }, t5.sortCompare = function(n4, e4) {
                var i4 = t5, r3 = -1, o2 = I(n4) || "" === n4 || k(n4) === a && isNaN(n4), u2 = I(e4) || "" === e4 || k(e4) === a && isNaN(e4);
                return o2 && u2 ? r3 = 0 : o2 ? r3 = 1 : u2 ? r3 = -1 : i4.isEquals(n4, e4) ? r3 = 0 : i4.isGreaterThan(n4, e4) && (r3 = 1), r3;
              }, t5;
            })(), n3.xzt = h, d = (function() {
              function t5(t6, n4) {
                var e4 = this;
                e4.hzt = {}, e4.dzt = [], e4.vzt = [], e4.pzt = [], e4.mzt = [], e4.gzt = [], e4.uzt = [], e4.Azt = [], e4.azt = [], e4.Mzt = [], e4.izt = [], e4.rzt = [], e4.Mct = [], e4.szt = [], e4.ozt = [], e4.ezt = false, e4.aT = [], e4.Upt = 0, e4.bzt = [], e4.Szt = [], e4.yzt = [], e4.lue = 0, Object.defineProperty(e4, "data", { get: function() {
                  return this.VEt();
                }, set: function(t7) {
                  e4.HY(t7);
                } }), e4.Izt(t6, n4), e4.AIr();
              }
              return t5.prototype.AIr = function() {
                var t6, n4 = this;
                for (t6 = 0; t6 < n4.SIr(); t6++) n4.izt[t6] = true, n4.rzt.push(t6);
              }, t5.prototype.VEt = function() {
                return this._data;
              }, t5.prototype.HY = function(t6) {
                this._data = t6;
              }, t5.prototype.SIr = function() {
                return N(this._data);
              }, t5.prototype.JNr = function(t6, n4) {
                return this._data[t6][n4];
              }, t5.prototype.IIr = function(t6, n4, e4) {
                this._data[t6][n4] = e4;
              }, t5.prototype.kIr = function(t6, n4) {
                var e4, i4 = this, r3 = this._data, o2 = N(i4.columnNames);
                for (e4 = 0; e4 < n4; e4++) r3.splice(t6, 0, new Array(o2));
              }, t5.prototype.tX = function(t6, n4) {
                this._data.splice(t6, n4);
              }, t5.prototype.NIr = function(t6, n4) {
                var e4, i4 = this._data;
                for (e4 = 0; e4 < N(i4); e4++) i4[e4].splice(t6, n4);
              }, t5.prototype.jIr = function(t6, n4, e4) {
                this.dzt[t6][n4] = e4;
              }, t5.prototype.DIr = function(t6) {
                return !!this.dzt[t6];
              }, t5.prototype.jEe = function(t6) {
                return this.dzt[t6];
              }, t5.prototype.xIr = function(t6, n4) {
                this.dzt[t6] = n4;
              }, t5.prototype.TIr = function(t6, n4) {
                this.dzt[t6].push(n4);
              }, t5.prototype._Ir = function(t6, n4, e4) {
                this.dzt[t6].splice(n4, 0, null != e4 ? e4 : r2);
              }, t5.prototype.OIr = function(t6, n4, e4) {
                this.dzt[t6].splice(n4, e4);
              }, t5.prototype.EIr = function(t6, n4) {
                this.dzt.splice(t6, n4);
              }, t5.prototype.inPreview = function() {
                return this.ezt;
              }, t5.prototype.Izt = function(t6, n4) {
                var e4 = this;
                e4._data = t6, e4.columnNames = n4, b(e4);
              }, t5.prototype.vue = function(t6) {
                var n4 = this;
                n4.mue && 0 === n4.lue && (n4.Nzt("onDataChanged", t6), n4.mue = false);
              }, t5.prototype.gue = function() {
                this.lue++;
              }, t5.prototype.pue = function() {
                var t6 = this;
                t6.lue--, t6.lue <= 0 && (t6.lue = 0, t6.vue());
              }, t5.prototype.onDataChanged = function(t6) {
                var n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = new Array(N(h2.columnNames)), p2 = h2.Azt, m2 = h2.vzt, b2 = h2.uzt, w2 = {};
                for (n4 = 0; n4 < N(t6); n4++) i4 = (e4 = t6[n4]).data, r3 = e4.columnName, o2 = e4.row, I(w2[r3]) && (w2[r3] = h2.getColumnIndex(r3)), a2 = w2[r3], o2 >= h2.SIr() && h2.onRowsAdded(o2, 1, false), h2.IIr(o2, a2, i4), u2 = v(i4) ? i4.text : i4, h2.DIr(a2) && h2.jIr(a2, o2, u2), d2[a2] = true;
                for (s2 = 0; s2 < N(d2); s2++) if (d2[s2]) {
                  for (c2 = p2[s2], p2[s2] = c2 ? [] : void 0, b2[s2] = c2 ? [] : void 0, f2 = [], n4 = 0; c2 && n4 < N(c2); n4++) f2.push(m2[s2][c2[n4]]);
                  for (y(h2, s2), n4 = 0; n4 < N(f2); n4++) l2 = h2.pzt[s2][f2[n4]], p2[s2].push(l2), b2[s2][l2] = true;
                }
                g(h2), h2.mue = true, h2.vue(t6);
              }, t5.prototype.Nzt = function(t6) {
                var n4, e4, i4, r3, o2 = [];
                for (n4 = 1; n4 < arguments.length; n4++) o2[n4 - 1] = arguments[n4];
                for (e4 = this.aT || [], i4 = 0; i4 < N(e4); i4++) (r3 = e4[i4])[t6] && r3[t6].apply(r3, o2);
              }, t5.prototype.onColumnNameChanged = function(t6, n4) {
                var e4 = this, i4 = e4.hzt, r3 = e4.getColumnIndex(t6);
                r3 < 0 || (e4.columnNames[r3] = n4, delete i4[t6.toUpperCase()], i4[n4.toUpperCase()] = r3, e4.Nzt("onColumnNameChanged", t6, n4));
              }, t5.prototype.onRowsAdded = function(t6, n4, e4) {
                var i4, r3, a2, u2, s2, c2, f2, l2, d2, v2, p2, g2, m2, b2 = this, y2 = N(b2.columnNames), w2 = b2.vzt, M2 = b2.mzt, C2 = b2.gzt, S2 = b2.uzt, T2 = b2.Azt, x2 = b2.izt, A2 = b2.rzt, I2 = b2.Mct;
                for (b2.bzt = [], b2.kIr(t6, n4), r3 = 0; r3 < y2; r3++) {
                  for (i4 = 0; i4 < n4; i4++) b2.DIr(r3) && b2._Ir(r3, t6);
                  if (s2 = void 0, u2 = w2[r3]) {
                    for (c2 = o, f2 = 0; f2 < N(u2); f2++) {
                      for (l2 = M2[r3][f2], d2 = 0; d2 < N(l2); d2++) l2[d2] >= t6 && (l2[d2] += n4);
                      h.isEquals(u2[f2], o) && (c2 = l2, s2 = f2);
                    }
                    for (c2 || (c2 = [], u2.push(o), s2 = N(u2) - 1, b2.pzt[r3][o] = s2, M2[r3].push(c2), S2[r3] && -1 === I2.indexOf(r3) && (S2[r3][s2] = true, T2[r3].push(s2))), v2 = t6; v2 < t6 + n4; v2++) c2.push(v2);
                    for (a2 = t6; a2 < t6 + n4; a2++) C2[r3].splice(a2, 0, s2);
                  }
                }
                for (p2 = true, i4 = 0; i4 < N(I2); i4++) g2 = C2[r3 = I2[i4]][t6], true !== S2[r3][g2] && (p2 = false);
                for (i4 = 0; i4 < N(A2); i4++) A2[i4] >= t6 && (A2[i4] += n4);
                for (a2 = b2.SIr() - 1; a2 >= t6 + n4; a2--) x2[a2] = x2[a2 - n4];
                for (m2 = N(I2) > 0, a2 = t6; a2 < t6 + n4; a2++) p2 && A2.push(a2), x2[a2] = !m2;
                e4 || b2.Nzt("onRowsChanged", t6, n4, true);
              }, t5.prototype.onRowsRemoved = function(t6, n4) {
                this.kzt(t6, n4, true);
              }, t5.prototype.kzt = function(t6, n4, e4) {
                var i4, r3, o2, a2, u2, s2, c2, f2, l2 = this, h2 = l2.Azt, d2 = l2.vzt, v2 = l2.uzt, p2 = N(l2.columnNames);
                for (l2.tX(t6, n4), r3 = 0; r3 < p2; r3++) {
                  if (l2.DIr(r3) && l2.OIr(r3, t6, n4), a2 = [], (o2 = h2[r3]) && e4) {
                    for (i4 = 0; i4 < N(o2); i4++) {
                      for (u2 = l2.getRowIndexes(l2.columnNames[r3], o2[i4]), s2 = true, c2 = 0; c2 < N(u2); c2++) if (u2[c2] < t6 || u2[c2] >= t6 + n4) {
                        s2 = false;
                        break;
                      }
                      s2 || a2.push(d2[r3][o2[i4]]);
                    }
                    h2[r3] = [], v2[r3] = [];
                  }
                  if (y(l2, r3), o2 && e4) for (i4 = 0; i4 < N(a2); i4++) f2 = l2.pzt[r3][a2[i4]], h2[r3].push(f2), v2[r3][f2] = true;
                }
                e4 && g(l2), l2.Nzt("onRowsChanged", t6, n4, false);
              }, t5.prototype.onColumnsRemoved = function(t6, n4) {
                var e4, i4, r3, o2, a2, u2, s2, c2, f2 = this, l2 = [], h2 = f2.Mct, d2 = t6 + n4;
                for (e4 = t6; e4 < d2; e4++) (i4 = f2.columnNames[e4]) && (r3 = e4, l2.push(i4), -1 !== h2.indexOf(r3) && f2.doUnfilter(i4));
                for (s2 in o2 = f2.uzt || f2.azt, a2 = f2.Azt || f2.Mzt, u2 = f2.hzt, f2.NIr(t6, n4), f2.bzt = [], f2.columnNames.splice(t6, n4), f2.EIr(t6, n4), f2.vzt.splice(t6, n4), f2.pzt.splice(t6, n4), f2.mzt.splice(t6, n4), f2.gzt.splice(t6, n4), o2.splice(t6, n4), a2.splice(t6, n4), u2) u2[s2] >= t6 + n4 && (u2[s2] -= n4);
                for (e4 = 0; e4 < N(l2); e4++) delete u2[(i4 = l2[e4]).toUpperCase()], t6 = f2.getColumnIndex(i4), -1 !== (c2 = h2.indexOf(t6)) && h2.splice(c2, 1), f2.Nzt("onColumnRemoved", l2[e4]);
              }, t5.prototype.Dzt = function() {
                return this.bzt;
              }, t5.prototype._zt = function() {
                return this.Szt;
              }, t5.prototype.Czt = function(t6) {
                var n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2, d2 = this;
                for (d2.DIr(t6) || y(d2, t6), n4 = d2.SIr(), e4 = [], i4 = 0; i4 < n4; i4++) o2 = v(r3 = d2.JNr(i4, t6)) ? r3.value : r3, e4.push(o2);
                for (a2 = h.quickSort(e4), u2 = d2.bzt[t6] = [], s2 = d2.Szt[t6] = [], c2 = d2.yzt[t6] = [], f2 = 0; f2 < N(a2); f2++) l2 = a2[f2], u2.push(l2.value), s2.push(l2.index), c2[l2.index] = f2;
              }, t5.prototype.getColumnIndex = function(t6) {
                var n4 = this.hzt[null == t6 ? void 0 : t6.toUpperCase()];
                return void 0 === n4 ? -1 : n4;
              }, t5.prototype.getFilteredRowIndexes = function() {
                var t6 = this;
                return t6.ezt ? t6.szt : t6.rzt;
              }, t5.prototype.getFilteredOutRowIndexes = function() {
                var t6, n4 = this, e4 = n4.SIr(), i4 = n4.ezt ? n4.ozt : n4.izt, r3 = [];
                for (t6 = 0; t6 < e4; t6++) i4[t6] || r3.push(t6);
                return r3;
              }, t5.prototype.getData = function(t6, n4) {
                var e4, i4, r3, o2, a2, u2, s2, c2 = this, f2 = c2.getColumnIndex(t6);
                if (f2 >= 0) {
                  if (n4) {
                    for (c2.bzt[f2] || c2.Czt(f2), e4 = c2.jEe(f2), i4 = c2.bzt[f2], o2 = (r3 = c2.Tzt(i4, n4)).start, a2 = r3.end, u2 = [], s2 = o2; s2 <= a2; s2++) u2.push(e4[c2.Szt[f2][s2]]);
                    return u2;
                  }
                  return c2.DIr(f2) || y(c2, f2), c2.jEe(f2);
                }
                return [];
              }, t5.prototype.aggregateData = function(t6, n4, e4) {
                var i4, o2, a2, u2, s2, c2, f2, l2, h2, d2 = this, v2 = d2.getColumnIndex(t6);
                return v2 < 0 ? r2 : (d2.bzt[v2] || d2.Czt(v2), u2 = N(a2 = d2.bzt[v2]), i4 = (s2 = d2.Tzt(a2, e4)).start, o2 = s2.end, 5 === n4 ? i4 >= u2 ? r2 : a2[i4] : 4 === n4 ? o2 < 0 ? r2 : a2[o2] : 3 === n4 ? o2 < i4 ? 0 : o2 - i4 + 1 : (f2 = (c2 = d2.Ezt(a2, n4, i4, o2)).data1, l2 = c2.data2, h2 = c2.data3, 1 === n4 ? f2 /= l2 : 7 === n4 || 10 === n4 ? (f2 = (h2 * l2 - f2 * f2) / (h2 * (h2 - 1)), f2 = 7 === n4 ? Math.sqrt(f2) : f2) : 8 !== n4 && 11 !== n4 || (f2 = (h2 * l2 - f2 * f2) / (h2 * h2), f2 = 8 === n4 ? Math.sqrt(f2) : f2), f2));
              }, t5.prototype.Ezt = function(t6, n4, e4, i4) {
                var a2, u2, s2, c2 = 6 === n4 ? 1 : 0, f2 = 0, l2 = 0;
                for (a2 = e4; a2 <= i4; a2++) (u2 = t6[a2]) === o && u2 === r2 || p(u2, s2 = { value: o }) && (u2 = s2.value, 1 === n4 ? (c2 += u2, f2++) : 2 === n4 ? c2++ : 9 === n4 ? c2 += u2 : 6 === n4 ? c2 *= u2 : 7 !== n4 && 8 !== n4 && 10 !== n4 && 11 !== n4 || (c2 += u2, f2 += u2 * u2, l2++));
                return { data1: c2, data2: f2, data3: l2 };
              }, t5.prototype.Tzt = function(t6, n4) {
                var e4 = N(t6), i4, o2, a2, u2;
                if (n4) {
                  if (n4.min === -1 / 0) i4 = 0;
                  else for (a2 = 0; a2 < e4; a2++) if (u2 = t6[a2], h.isEquals(n4.min, u2) || h.isGreaterThan(u2, n4.min)) {
                    i4 = a2;
                    break;
                  }
                  if (i4 === r2 && (i4 = e4), o2 === 1 / 0) o2 = e4 - 1;
                  else {
                    for (a2 = e4 - 1; a2 >= 0; a2--) if (u2 = t6[a2], h.isEquals(u2, n4.max) || h.isGreaterThan(n4.max, u2)) {
                      o2 = a2;
                      break;
                    }
                    o2 === r2 && (o2 = -1);
                  }
                } else i4 = 0, o2 = e4 - 1;
                return { start: i4, end: o2 };
              }, t5.prototype.getExclusiveData = function(t6) {
                var n4 = this, e4 = n4.vzt, i4 = n4.getColumnIndex(t6);
                return i4 >= 0 ? (e4[i4] || y(n4, i4), e4[i4]) : [];
              }, t5.prototype.getRowIndexes = function(t6, n4) {
                var e4 = this, i4 = e4.getColumnIndex(t6);
                return i4 >= 0 ? (e4.gzt[i4] || y(e4, i4), e4.mzt[i4][n4]) : [];
              }, t5.prototype.getExclusiveRowIndex = function(t6, n4) {
                var e4 = this, i4 = e4.getColumnIndex(t6);
                return e4.fue(i4, n4);
              }, t5.prototype.fue = function(t6, n4) {
                var e4 = this, i4 = e4.gzt;
                return t6 >= 0 ? (i4[t6] || y(e4, t6), i4[t6][n4]) : -1;
              }, t5.prototype.getFilteredIndexes = function(t6) {
                var n4 = [], e4 = {};
                return this.jzt(t6, n4, e4), n4;
              }, t5.prototype.jzt = function(t6, n4, e4) {
                var i4, r3, o2, a2 = this, u2 = a2.ezt ? a2.szt : a2.rzt, s2 = a2.getColumnIndex(t6);
                for (i4 = 0; i4 < N(u2); i4++) r3 = u2[i4], I(o2 = a2.fue(s2, r3)) || (e4[o2] ? e4[o2]++ : (e4[o2] = 1, n4.push(o2)));
              }, t5.prototype.getFilteredRanges = function(t6) {
                return w(this, t6, false);
              }, t5.prototype.getFilteredOutRanges = function(t6) {
                return w(this, t6, true);
              }, t5.prototype.getFilteredOutIndexes = function(t6, n4) {
                var e4 = this;
                return 0 === n4 ? M(e4, t6) : 1 === n4 ? C(e4, t6) : S(e4, t6);
              }, t5.prototype.attachListener = function(t6) {
                -1 === this.aT.indexOf(t6) && this.aT.push(t6);
              }, t5.prototype.detachListener = function(t6) {
                var n4, e4 = this.aT || [];
                for (n4 = 0; n4 < N(e4); n4++) if (e4[n4] === t6) {
                  e4.splice(n4, 1);
                  break;
                }
              }, t5.prototype.suspendFilteredEvents = function() {
                this.Upt++;
              }, t5.prototype.resumeFilteredEvents = function() {
                var t6 = this;
                t6.Upt--, 0 === t6.Upt && t6.onFiltered();
              }, t5.prototype.doFilter = function(t6, n4, e4) {
                this.Ozt(t6, n4, e4), this.onFiltered();
              }, t5.prototype.Ozt = function(t6, n4, e4) {
                var i4 = this, r3 = i4.Mct, o2 = i4.getColumnIndex(t6);
                o2 < 0 || (e4 ? (i4.ezt = true, i4.lzt = o2) : i4.ezt && A(i4, false), r3.indexOf(o2) < 0 && r3.push(o2), n4.ranges ? T(i4, t6, n4.ranges, e4) : x(i4, t6, n4.exclusiveRowIndexes, e4));
              }, t5.prototype.clearPreview = function() {
                A(this, true);
              }, t5.prototype.doUnfilter = function(t6) {
                this.Rzt(t6), this.onFiltered();
              }, t5.prototype.Rzt = function(t6) {
                var n4, e4, i4 = this;
                i4.ezt && A(i4, false), (n4 = i4.getColumnIndex(t6)) < 0 || (delete i4.Mzt[n4], delete i4.azt[n4], delete i4.uzt[n4], delete i4.Azt[n4], g(i4), (e4 = i4.Mct.indexOf(n4)) >= 0 && i4.Mct.splice(e4, 1));
              }, t5.prototype.onFiltered = function() {
                var t6 = this;
                0 === t6.Upt && t6.Nzt("onFiltered", { rowIndexes: t6.getFilteredRowIndexes(), isPreview: t6.ezt });
              }, t5.prototype.getListener = function() {
                return this.aT;
              }, t5;
            })(), n3.GeneralSlicerData = d;
          }, "./src/plugins/sparkline/sparkline.entry.ts": function(t4, n3, e3) {
            var i3 = this && this.JKr || (Object.create ? function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4);
              var r3 = Object.getOwnPropertyDescriptor(n4, e4);
              r3 && !("get" in r3 ? !n4.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
                return n4[e4];
              } }), Object.defineProperty(t5, i4, r3);
            } : function(t5, n4, e4, i4) {
              void 0 === i4 && (i4 = e4), t5[i4] = n4[e4];
            }), r2 = this && this.XKr || function(t5, n4) {
              for (var e4 in t5) "default" === e4 || Object.prototype.hasOwnProperty.call(n4, e4) || i3(n4, t5, e4);
            };
            Object.defineProperty(n3, "__esModule", { value: true }), r2(e3("./src/plugins/sparkline/sparkline.ts"), n3);
          }, "./src/plugins/sparkline/sparkline.ts": function(t4, n3, e3) {
            var i3, r2, o, a, u, s, c, f, l, h, d, v, p, g, m, b, y, w, M, C, S, T, x, A, I, k, N, j, D, _, O, E, R, L, F, B, P, G, U, H, V, z, Y, Z, W, Q, K, J, X, q, $, tt, nt, et, it, rt, ot, at, ut, st, ct, ft, lt, ht, dt, vt, pt, gt, mt, bt, yt, wt, Mt, Ct, St = this && this.qKr || (Tt = function(t5, n4) {
              return Tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t6, n5) {
                t6.__proto__ = n5;
              } || function(t6, n5) {
                for (var e4 in n5) Object.prototype.hasOwnProperty.call(n5, e4) && (t6[e4] = n5[e4]);
              }, Tt(t5, n4);
            }, function(t5, n4) {
              if ("function" != typeof n4 && null !== n4) throw new TypeError("Class extends value " + String(n4) + " is not a constructor or null");
              function e4() {
                this.constructor = t5;
              }
              Tt(t5, n4), t5.prototype = null === n4 ? Object.create(n4) : (e4.prototype = n4.prototype, new e4());
            }), Tt;
            function xt(t5, n4) {
              return { x: t5, y: n4 };
            }
            function At(t5, n4, e4, i4) {
              return { x: t5, y: n4, width: e4, height: i4 };
            }
            function It(t5, n4) {
              var e4, i4, r3, o2 = t5[0], a2 = o2 && o2.value ? o2.value : o2;
              for (i4 = 1, r3 = t5.length; i4 < r3; i4++) e4 = (o2 = t5[i4]) && o2.value ? o2.value : o2, (n4 && a2 > e4 || !n4 && a2 < e4) && (a2 = e4);
              return a2;
            }
            function kt(t5, n4, e4, i4, r3, o2, a2) {
              o2 && (t5.strokeStyle = o2), a2 && (t5.lineWidth = a2), t5.beginPath(), t5.moveTo(n4, e4), t5.lineTo(i4, r3), t5.stroke();
            }
            function Nt(t5, n4, e4, i4, r3, o2, a2) {
              t5.save(), o2 && (t5.strokeStyle = o2), a2 && (t5.lineWidth = a2), t5.beginPath(), t5.moveTo(n4, e4), t5.lineTo(i4, r3), t5.closePath(), t5.stroke(), t5.restore();
            }
            function jt(t5, n4, e4, i4, r3, o2, a2, u2) {
              var s2, c2, f2, l2, h2, d2, v2;
              if (t5.save(), s2 = [o2, a2], t5.setLineDash) t5.beginPath(), t5.strokeStyle = u2, t5.setLineDash(s2), t5.stroke(), t5.moveTo(n4, e4), t5.lineTo(i4, r3), t5.stroke();
              else {
                for (t5.beginPath(), t5.lineWidth = 1, t5.strokeStyle = u2, f2 = { x: (i4 - n4) / (c2 = w(y(i4 - n4, 2) + y(r3 - e4, 2))), y: (r3 - e4) / c2 }, l2 = 0, h2 = 0; l2 < c2; ) l2 += d2 = g(s2[h2 % 2], c2 - l2), (v2 = ++h2 % 2) && t5.moveTo(n4, e4), n4 += d2 * f2.x, e4 += d2 * f2.y, v2 && t5.lineTo(n4, e4);
                t5.stroke();
              }
              t5.restore();
            }
            function Dt(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2) {
              n4 ? kt(t5, e4, i4, r3, o2, f2, l2) : kt(t5, a2, u2, s2, c2, f2, l2);
            }
            function _t(t5, n4, e4, i4, r3, o2, a2, u2) {
              t5.save(), a2 && (t5.fillStyle = a2), t5.textBaseline = u2 || z, t5.beginPath(), t5.font = r3, t5.textAlign = o2, i4 = "string" == typeof i4 ? i4 : i4 + "", t5.fillText(i4, n4, e4), t5.restore();
            }
            function Ot(t5, n4, e4, i4, r3, o2, a2) {
              n4 = Math.floor(n4), e4 = Math.floor(e4), i4 = Math.floor(i4), r3 = Math.floor(r3), a2 % 2 != 0 && (n4 === i4 ? (n4 += 0.5, i4 += 0.5) : e4 === r3 && (e4 += 0.5, r3 += 0.5)), kt(t5, n4, e4, i4, r3, o2, a2);
            }
            function Et(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2) {
              var f2, l2, h2, v2;
              switch (o2 = Math.round(o2), a2 = Math.round(a2), s2) {
                case 0:
                  a2 = Math.round(e4 + u2), v2 = Math.round(a2), h2 = Math.round(o2 + u2), f2 = Math.round((o2 + h2) / 2), l2 = Math.round(a2 - Math.sin(d / 3) * u2);
                  break;
                case 1:
                  o2 = Math.round(n4 + i4 - u2), h2 = Math.round(o2), v2 = Math.round(a2 + u2), f2 = Math.round(o2 + Math.sin(d / 3) * u2), l2 = Math.round((a2 + v2) / 2);
                  break;
                case 2:
                  a2 = Math.round(e4 + r3 - u2), v2 = Math.round(a2), h2 = Math.round(o2 + u2), f2 = Math.round((o2 + h2) / 2), l2 = Math.round(a2 + Math.sin(d / 3) * u2);
                  break;
                case 3:
                  o2 = n4 + u2, h2 = Math.round(o2), v2 = Math.round(a2 + u2), f2 = Math.round(o2 - Math.sin(d / 3) * u2), l2 = Math.round((a2 + v2) / 2);
              }
              t5.beginPath(), t5.moveTo(o2, a2), t5.lineTo(f2, l2), t5.lineTo(h2, v2), t5.closePath(), t5.fillStyle = c2, t5.fill();
            }
            function Rt(t5, n4, e4, i4, r3) {
              t5.beginPath(), t5.fillStyle = r3, t5.arc(n4, e4, i4, 0, 2 * Math.PI), t5.fill();
            }
            function Lt(t5, n4, e4, i4, r3, o2) {
              if (n4) {
                var a2 = r3 / 2;
                Rt(t5, e4 + a2, i4 + a2, a2, o2);
              } else Yt(t5, e4, i4, r3, r3, o2);
            }
            function Ft(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2, h2, d2, v2) {
              var p2, g2, m2, b2, y2, w2;
              s2 ? (p2 = Math.floor(n4 + 0.5 * i4), g2 = Math.floor(u2 ? c2 - f2 : c2), m2 = Math.floor(l2), b2 = Math.floor(f2), y2 = Math.floor(p2 - d2 / 2), w2 = Math.floor(u2 ? g2 - d2 / 2 : g2 + b2 + d2 / 2), Ot(t5, p2, g2, p2, g2 + b2, o2, m2)) : (p2 = Math.floor(u2 ? c2 : c2 - f2), g2 = Math.floor(e4 + 0.5 * r3), m2 = Math.floor(f2), b2 = Math.floor(l2), y2 = Math.floor(u2 ? p2 + m2 + d2 / 2 : p2 - d2 / 2), w2 = Math.floor(g2 - d2 / 2), Ot(t5, p2, g2, p2 + m2, g2, o2, b2)), h2 ? Bt(t5, n4, e4, i4, r3, y2, w2, d2, s2, u2, o2) : s2 ? Lt(t5, v2, y2, u2 ? w2 : w2 -= d2, d2, a2) : Lt(t5, v2, u2 ? y2 -= d2 : y2, w2, d2, a2);
            }
            function Bt(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2, f2) {
              t5.save(), Et(t5, n4, e4, i4, r3, o2, a2, u2, s2 ? c2 ? 0 : 2 : c2 ? 1 : 3, f2), t5.restore();
            }
            function Pt(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2, f2, l2, h2, d2) {
              var v2, p2, g2, m2 = 4, b2 = void 0;
              t5.save(), t5.beginPath(), t5.rect(n4, e4, i4, r3), t5.clip(), t5.font = s2 + W, t5.fillStyle = E, t5.fillStyle = "black", c2 ? (t5.textBaseline = V, (b2 = s2 + (v2 = h2 < d2 ? d2 : h2) + o2 + m2 + d2 / 2) > 0 ? (t5.textAlign = G, f2 ? t5.fillText(u2, n4 + i4 / 2 + d2 / 2, l2 - v2 / 2) : t5.fillText(u2, n4 + i4 / 2 + d2 / 2, l2 + v2 / 2)) : (t5.textAlign = H, f2 ? t5.fillText(u2, n4 + i4 / 2, l2 - v2 - d2 / 2 - s2) : t5.fillText(u2, n4 + i4 / 2, l2 + v2 + d2 / 2 + m2))) : (t5.textBaseline = Y, (b2 = (p2 = t5.measureText(u2).width) + h2 + a2 + m2 + d2 / 2) > 0 ? p2 > h2 + d2 / 2 ? f2 ? (t5.textAlign = U, t5.fillText(u2, l2 - m2, e4 + r3 / 2)) : (t5.textAlign = G, t5.fillText(u2, l2 + d2 / 2, e4 + r3 / 2)) : (t5.textAlign = H, f2 ? t5.fillText(u2, l2 + h2 / 2, e4 + r3 / 2 + s2) : t5.fillText(u2, l2 - h2 / 2, e4 + r3 / 2 + s2)) : f2 ? (t5.textAlign = G, g2 = l2 + h2 + d2 / 2 + m2, t5.fillText(u2, g2, e4 + r3 / 2)) : (t5.textAlign = U, g2 = l2 - h2 - d2 / 2 - m2, t5.fillText(u2, g2, e4 + r3 / 2))), t5.restore();
            }
            function Gt(t5) {
              return r2.ft.rp(s(t5)) < 127.5 ? O : E;
            }
            function Ut(t5, n4, e4, i4, r3, o2, u2, s2) {
              var c2, f2, l2, h2, d2 = s2;
              return a(s2) && (d2 = r3), u2 ? (c2 = n4 + d2 + o2, l2 = i4 - 2 * d2, f2 = t5 + r3, h2 = e4 - 2 * r3) : (c2 = t5 + d2, l2 = e4 - 2 * d2, f2 = n4 + r3, h2 = i4 - 2 * r3), { left: c2, top: f2, width: l2, height: h2 };
            }
            function Ht(t5, n4) {
              var e4, i4, r3 = 0;
              for (e4 = 0, i4 = t5.length; e4 < i4; e4++) r3 += n4 && !n4(t5[e4]) ? 0 : t5[e4];
              return r3;
            }
            function Vt(t5) {
              return t5 * d / 180;
            }
            function zt(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2 = [];
              for (o2 = 0, a2 = 0, u2 = t5.length; o2 < u2; o2++) n4 ? (n4(t5[o2]) ? s2[a2] = e4 ? e4(t5[o2]) : t5[o2] : s2[a2] = 0, a2++) : (r3 = A(t5[o2]), !x(r3) && isFinite(r3) && (s2[a2] = r3, a2++));
              return i4 && i4(s2), s2;
            }
            function Yt(t5, n4, e4, i4, r3, o2) {
              var a2 = b(n4 + i4), u2 = b(e4 + r3);
              n4 = b(n4), e4 = b(e4), i4 = b(a2 - n4), r3 = b(u2 - e4), t5.beginPath(), t5.fillStyle = o2, t5.fillRect(n4, e4, i4, r3), t5.fill();
            }
            function Zt(t5, n4, e4) {
              return t5 = g(t5, n4), t5 = m(t5, e4);
            }
            function Wt(t5, n4, e4, i4, r3) {
              t5.save(), t5.rect(n4, e4, i4, r3), t5.clip();
            }
            function Qt(t5, n4) {
              var e4, i4, r3, o2;
              return !(!t5 || !n4) && (e4 = m(t5.x + t5.width, n4.x + n4.width), i4 = m(t5.y + t5.height, n4.y + n4.height), r3 = g(t5.x, n4.x), o2 = g(t5.y, n4.y), e4 - r3 <= t5.width + n4.width && i4 - o2 <= t5.height + n4.height);
            }
            function Kt(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, f2, l2, h2, m2 = e4 + r3 / 2, b2 = i4 + o2 / 2, y2 = 5, w2 = g(r3, o2) / 2 - y2, C2 = -0.5 * d, S2 = m2 + w2 * p(C2), T2 = b2 + w2 * v(C2), A2 = [], I2 = [];
              if (!(w2 <= 0)) {
                for (f2 = Jt(c2 = (s2 = zt(n4.values, (function(t6) {
                  return !a(t6) && !x(t6) && isFinite(t6);
                }), (function(t6) {
                  return M(t6);
                }), (function(t6) {
                  1 === t6.length && (t6[1] = 1 - t6[0]);
                }))).length, n4.colors), l2 = Ht(s2), t5.save(), h2 = 0; h2 < c2; h2++) u2 = C2 + s2[h2] / l2 * 2 * d, t5.beginPath(), t5.moveTo(m2, b2), t5.lineTo(S2, T2), t5.arc(m2, b2, w2, C2, u2, false), t5.lineTo(m2, b2), t5.fillStyle = f2[h2], t5.fill(), A2.push(S2), I2.push(T2), S2 = m2 + w2 * p(C2 = u2), T2 = b2 + w2 * v(C2);
                for (h2 = 0; h2 < c2; h2++) kt(t5, m2, b2, A2[h2], I2[h2], O);
                t5.restore();
              }
            }
            function Jt(t5, n4) {
              var e4, i4, o2, a2, u2, c2, f2 = [], l2 = n4.length;
              if (t5 <= l2) f2 = n4.slice(0, t5);
              else {
                for (0 === l2 ? (f2.push("darkgray"), l2 = 1) : f2 = n4.slice(0), e4 = [], i4 = void 0, o2 = t5 - l2 + 1, a2 = void 0, a2 = 0; a2 < l2; a2++) e4[a2] = s(f2[a2]);
                for (a2 = l2; a2 < t5; a2++) {
                  for (u2 in i4 = e4[a2 % l2]) i4.hasOwnProperty(u2) && (c2 = i4[u2], i4[u2] = h(c2 - c2 / o2 * (a2 / l2)));
                  i4.a = 255, f2[a2] = r2.ft.j(i4);
                }
              }
              return f2;
            }
            function Xt(t5, n4, e4) {
              return { x: t5, y: n4, value: e4 };
            }
            function qt(t5) {
              return isNaN(t5) || t5 === 1 / 0 ? 0 : t5;
            }
            function $t(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, l2, h2, d2, v2, p2, y2, w2, M2, C2, T2, A2, I2, k2, N2, D2, _2, O2, E2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2;
              if (t5.save(), u2 = n4.points, s2 = n4.mini, c2 = n4.maxi, l2 = n4.line1, h2 = n4.line2, d2 = n4.colorPositive, v2 = n4.colorNegative, p2 = 5, u2 = zt(u2, (function(t6) {
                return !a(t6) && !x(t6) && isFinite(t6);
              })), d2 = a(d2) ? "#787878" : d2, v2 = a(v2) ? j : v2, _2 = It(u2, false), c2 = a(c2) ? _2 : c2, w2 = m(c2, _2), O2 = It(u2, true), s2 = a(s2) ? O2 : s2, y2 = g(s2, O2), M2 = (M2 = (M2 = 0) > (w2 = w2 < 0 ? 0 : w2) ? w2 : M2) < (y2 = y2 > 0 ? 0 : y2) ? y2 - 1 : M2, C2 = u2.length, E2 = Ut(e4, i4, r3, o2, p2), T2 = E2.left, A2 = E2.top, I2 = E2.width, k2 = E2.height, N2 = qt(I2 / (C2 - 1)), L2 = [], D2 = qt((w2 - y2) / k2)) for (P2 = void 0, G2 = void 0, U2 = A2 + qt((w2 - M2) / D2), H2 = void 0, V2 = void 0, z2 = 0; z2 < C2; z2++) P2 = u2[z2], H2 = T2 + N2 * z2, V2 = A2 + qt((w2 - P2) / D2), 0 === z2 && L2.push(new pt(Xt(H2, U2, M2))), z2 > 0 && P2 * u2[z2 - 1] < 0 && (B2 = L2[L2.length - 1]) && (G2 = tn(B2.x, B2.y, H2, V2, U2), L2.push(new pt(Xt(G2, U2, M2)))), L2.push(new pt(Xt(H2, V2, P2))), z2 === C2 - 1 && L2.push(new pt(Xt(H2, U2, M2)));
              for (t5.beginPath(), Y2 = 0, Z2 = L2.length; Y2 < Z2; Y2++) (F2 = L2[Y2]) && (0 === Y2 ? t5.moveTo(F2.x, F2.y) : t5.lineTo(F2.x, F2.y), B2 = L2[Y2 - 1], F2.value === M2 && B2 && (t5.fillStyle = B2.value > M2 ? d2 : v2, t5.fill(), Y2 !== Z2 - 1 && (t5.beginPath(), t5.moveTo(F2.x, F2.y))));
              function W2(n5) {
                var e5, i5, r4;
                n5 === f && typeof n5 !== S || (e5 = Zt(n5, w2, y2), r4 = b(A2 + (i5 = 0 !== D2 ? (w2 - e5) / D2 : k2 / 2)) - 0.5, kt(t5, T2, r4, T2 + I2, r4, R));
              }
              W2(l2), W2(h2), t5.restore();
            }
            function tn(t5, n4, e4, i4, r3) {
              return ((n4 - r3) * e4 + (r3 - i4) * t5) / (n4 - i4);
            }
            function nn(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, f2, l2, h2, v2, p2, y2, w2, M2, C2, S2, T2, x2, A2, k2, D2, O2, E2, R2, L2, F2, B2, P2, G2, U2 = n4.points1, H2 = n4.points2, V2 = n4.minX, z2 = n4.maxX, Y2 = n4.minY, Z2 = n4.maxY, W2 = n4.hLine, Q2 = n4.vLine, K2 = n4.xMinZone, J2 = n4.xMaxZone, X2 = n4.yMinZone, q2 = n4.yMaxZone, $2 = n4.tags, tt2 = n4.drawSymbol, nt2 = n4.drawLines, et2 = n4.color1, it2 = n4.color2, rt2 = n4.dash, ot2 = 4, at2 = Ut(e4, i4, r3, o2, 5), ut2 = at2.left, st2 = at2.top, ct2 = at2.width, ft2 = at2.height;
              if (U2 && !(U2.length <= 0) && !((u2 = an(U2)).length <= 0 || H2 && H2.length > 0 && (s2 = an(H2)).length <= 0)) {
                for (Wt(t5, e4, i4, r3, o2), t5.beginPath(), tt2 = !!a(tt2) || tt2, et2 = a(et2) ? N : et2, it2 = a(it2) ? j : it2, ht2(u2, Y2, Z2, V2, z2), !a(K2) && !a(J2) && !a(X2) && !a(q2) && l2 <= K2 && K2 <= h2 && l2 <= J2 && J2 <= h2 && c2 <= X2 && X2 <= f2 && c2 <= q2 && q2 <= f2 && ((F2 = m(l2, K2)) >= (B2 = g(h2, J2)) && (B2 = F2 + 1), (P2 = m(c2, X2)) >= (G2 = g(f2, q2)) && (G2 = P2 + 1), Yt(t5, ut2 + (F2 - l2) * ct2 / (h2 - l2), st2 + (f2 - G2) * ft2 / (f2 - c2), (B2 - F2) * ct2 / (h2 - l2), (G2 - P2) * ft2 / (f2 - c2), _)), D2 = -I, O2 = -I, E2 = I, R2 = I, y2 = u2.length, v2 = 0; v2 < y2 - 1; v2++) lt2(u2, v2, et2, vt2), $2 && (0 === v2 && (x2 > O2 && (D2 = T2, O2 = x2), x2 < R2 && (E2 = T2, R2 = x2)), k2 > O2 && (D2 = A2, O2 = k2), k2 < R2 && (E2 = A2, R2 = k2));
                if (s2 && s2.length > 0) for (ht2(s2, c2, f2, l2, h2), y2 = s2.length, v2 = 0; v2 < y2 - 1; v2++) lt2(s2, v2, it2, pt2);
                $2 && (dt2(D2, O2, j), dt2(E2, R2, "#0000FF")), !a(W2) && c2 <= W2 && W2 <= f2 && (L2 = b(st2 + (f2 - W2) * ft2 / (f2 - c2)) - 0.5, on(t5, ut2, L2, ut2 + ct2, L2, j)), !a(Q2) && l2 <= Q2 && Q2 <= h2 && (L2 = b(ut2 + (Q2 - l2) * ct2 / (h2 - l2)) - 0.5, on(t5, L2, st2, L2, st2 + ft2, j)), t5.restore();
              }
              function lt2(n5, e5, i5, r4) {
                p2 = n5[e5], w2 = p2.x, M2 = p2.y, p2 = n5[e5 + 1], C2 = p2.x, S2 = p2.y, T2 = ut2 + (w2 - l2) * ct2 / (h2 - l2), A2 = ut2 + (C2 - l2) * ct2 / (h2 - l2), x2 = st2 + (f2 - M2) * ft2 / (f2 - c2), k2 = st2 + (f2 - S2) * ft2 / (f2 - c2), nt2 && on(t5, T2, x2, A2, k2, i5, rt2), tt2 && (0 === e5 && r4(T2, x2), r4(A2, k2));
              }
              function ht2(t6, n5, e5, i5, r4) {
                var o3 = en(t6, true), u3 = en(t6, false);
                c2 = a(Y2) ? o3.y : n5, f2 = a(Z2) ? u3.y : e5, l2 = a(V2) ? o3.x : i5, h2 = a(z2) ? u3.x : r4, h2 = l2 >= h2 ? l2 + 1 : h2, f2 = c2 >= f2 ? c2 + 1 : f2;
              }
              function dt2(n5, e5, i5) {
                t5.beginPath(), t5.arc(n5 - ot2 / 2, e5 - ot2 / 2, ot2 / 2, 0, 2 * d, false), t5.fillStyle = i5, t5.fill();
              }
              function vt2(n5, e5) {
                t5.beginPath(), t5.strokeStyle = et2, t5.arc(n5 - ot2 / 2, e5 - ot2 / 2, ot2 / 2, 0, 2 * d, false), t5.stroke();
              }
              function pt2(n5, e5) {
                t5.beginPath(), t5.strokeStyle = it2, t5.strokeRect(n5 - ot2 / 2, e5 - ot2 / 2, ot2, ot2);
              }
            }
            function en(t5, n4) {
              var e4, i4, r3 = n4 ? 1 : -1, o2 = n4 ? g : m, a2 = new dt(xt(r3 * I, r3 * I)), u2 = t5.length;
              for (i4 = 0; i4 < u2; i4++) e4 = t5[i4], a2.x = o2(a2.x, e4.x), a2.y = o2(a2.y, e4.y);
              return a2;
            }
            function rn(t5, n4, e4, i4) {
              return e4 / i4 * (n4 - t5) + t5;
            }
            function on(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, M2, C2, S2, T2, x2;
              if (a2) {
                for (u2 = w(y(i4 - n4, 2) + y(r3 - e4, 2)), s2 = 0, c2 = 6, f2 = 2, l2 = 4, d2 = void 0, v2 = void 0, p2 = void 0, g2 = void 0, n4 <= i4 ? (d2 = n4, v2 = i4, p2 = n4, g2 = e4) : (d2 = i4, v2 = n4, p2 = i4, g2 = r3), b2 = e4 - (m2 = (r3 - e4) / (i4 - n4)) * n4, (h2 = []).push(new dt(xt(p2, g2))), M2 = [c2, l2, f2, l2]; s2 < u2; ) for (C2 = 0, S2 = M2.length; C2 < S2; C2++) (s2 += M2[C2]) <= u2 && (g2 = m2 * (p2 = rn(d2, v2, s2, u2)) + b2, h2.push(new dt(xt(p2, g2))));
                for (T2 = 0, x2 = h2.length; T2 < x2 - 1; T2 += 2) kt(t5, h2[T2].x, h2[T2].y, h2[T2 + 1].x, h2[T2 + 1].y, o2);
              } else kt(t5, n4, e4, i4, r3, o2);
            }
            function an(t5) {
              var n4, e4, i4, r3 = [], o2 = t5.length;
              if (o2 > 0) {
                if (o2 < (n4 = t5[0].length)) {
                  if (o2 >= 2) for (e4 = 0; e4 < n4; e4++) r3.push(new dt(xt(t5[0][e4], t5[1][e4])));
                } else if (n4 >= 2) for (i4 = 0; i4 < o2; i4++) r3.push(new dt(xt(t5[i4][0], t5[i4][1])));
              }
              return r3;
            }
            function un(t5, n4, e4, i4, r3, o2) {
              var s2, c2, f2, l2, d2, v2, p2, g2, y2, w2, M2, C2, S2, T2, A2, I2, k2, N2 = n4.measure, _2 = n4.target, O2 = n4.maxi, E2 = n4.good, R2 = n4.bad, L2 = n4.forecast, F2 = n4.tickUnit, B2 = n4.colorScheme, P2 = n4.vertical, G2 = 5, U2 = n4.measureColor, H2 = n4.targetColor, V2 = n4.maxiColor, z2 = n4.goodColor, Y2 = n4.badColor, Z2 = n4.forecastColor, W2 = n4.allowMeasureOverMaxi, Q2 = n4.barSize;
              if (!(a(O2) || O2 < 0) && (a(Q2) || !(x(Q2) || Q2 <= 0))) {
                if (Q2 > 1 && (Q2 = 1), N2 = a(N2) || N2 < 0 ? 0 : N2, E2 = a(E2) || E2 < 0 ? 0 : E2, R2 = a(R2) || R2 < 0 ? 0 : R2, _2 = a(_2) ? 0 : _2, L2 = a(L2) ? 0 : L2, F2 = a(F2) ? 0 : F2, B2 = a(B2) ? "#A0A0A0" : B2, s2 = a(U2) ? "#252525" : U2, N2 > O2 && !W2 && (N2 = O2, s2 = j), E2 > O2 && (E2 = O2, s2 = j), R2 > O2 && (R2 = O2, s2 = j), _2 > O2 && (_2 = 0, s2 = j), L2 > O2 && (L2 = O2, s2 = j), c2 = Ut(e4, i4, r3, o2, G2, o2 - 2 * G2, P2), f2 = c2.left, l2 = c2.width, t5.save(), d2 = a(Q2) ? 0.2 : (1 - Q2) / 2, v2 = a(Q2) ? 0.6 : Q2, p2 = W2 ? m(O2, N2) : O2, K2(a(V2) ? u(B2, 1.66) : V2, O2, p2, d2, v2), K2(a(z2) ? u(B2, 1.33) : z2, E2, p2, d2, v2), K2(a(Y2) ? B2 : Y2, R2, p2, d2, v2), g2 = 0.25 * Q2 / 0.6, K2(s2, N2, p2, y2 = a(Q2) ? 0.375 : (1 - g2) / 2, w2 = a(Q2) ? 0.25 : g2), L2 > 0 && (M2 = f2, (C2 = l2 * (L2 / p2)) > l2 && (C2 = l2), S2 = a(Q2) ? 3 : 3 * Q2 / 0.6, Dt(t5, P2, e4 + 0.5 * r3, M2, e4 + 0.5 * r3, M2 - C2, M2, i4 + 0.5 * o2, M2 + C2, i4 + 0.5 * o2, a(Z2) ? "#3690BF" : Z2, S2)), _2 > 0 && (T2 = b(f2 - (P2 ? 1 : -1) * l2 * (_2 / p2)) - 0.5, Dt(t5, P2, e4 + r3 * d2, T2, e4 + r3 * (1 - d2), T2, T2, i4 + o2 * d2, T2, i4 + o2 * (1 - d2), a(H2) ? j : H2, 1)), F2 > 0) for (A2 = h(p2 / F2), I2 = void 0, k2 = 0; k2 <= A2; k2++) I2 = b(f2 - l2 / p2 * F2 * (P2 ? 1 : -1) * k2) - 0.5, Dt(t5, P2, e4, I2, e4 + 0.05 * r3, I2, I2, i4 + o2, I2, i4 + 0.95 * o2, D, 1);
                t5.restore();
              }
              function K2(n5, a2, u2, s3, c3) {
                var h2, d3, v3;
                t5.fillStyle = n5, h2 = f2, (d3 = l2 * (a2 / u2)) > l2 && !W2 && (d3 = l2), v3 = new vt(P2 ? At(e4 + r3 * s3, h2 - d3, r3 * c3, d3) : At(h2, i4 + o2 * s3, d3, o2 * c3)), t5.fillRect(v3.x, v3.y, v3.width, v3.height);
              }
            }
            function sn(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, _2, O2, E2 = n4.spreadData, R2 = n4.showAverage, L2 = n4.scaleStart, F2 = n4.scaleEnd, B2 = n4.style, P2 = n4.colorScheme, G2 = n4.vertical, U2 = 5, H2 = E2.length;
              if (!(H2 <= 0)) {
                for (u2 = E2[0].key, s2 = E2[H2 - 1].key, L2 = a(L2) ? u2 : L2, F2 = a(F2) ? s2 : F2, B2 = a(B2) ? 4 : B2, P2 = a(P2) ? D : P2, f2 = (c2 = Ut(e4, i4, r3, o2, U2, o2 - 2 * U2, G2)).left, l2 = c2.width, h2 = c2.top, d2 = c2.height, Wt(t5, e4, i4, r3, o2), t5.beginPath(), t5.strokeStyle = P2, t5.fillStyle = P2, t5.lineWidth = 2, y2 = It(E2, false), M2 = 0, C2 = E2.length; M2 < C2; M2++) if (T2 = (S2 = E2[M2]).key, x2 = S2.value, v2 = f2 + (G2 ? -1 : 1) * l2 * (T2 - L2) / (F2 - L2), G2 ? (v2 = g(v2, f2), v2 = m(v2, f2 - l2)) : (v2 = m(v2, f2), v2 = g(v2, f2 + l2)), v2 = b(v2), 1 === B2) Dt(t5, G2, A2 = h2 + d2 / 2 - (w2 = (w2 = x2 / 2 * d2 / y2) < 0.5 ? 0.5 : w2), v2, I2 = h2 + d2 / 2 + w2, v2, v2, A2, v2, I2);
                else if (4 === B2) Dt(t5, G2, h2, v2, h2 + (w2 = (w2 = x2 * d2 / y2) < 1 ? 1 : w2), v2, v2, h2 + d2, v2, h2 + d2 - w2);
                else if (6 === B2) Dt(t5, G2, h2, v2, h2 + d2, v2, v2, h2, v2, h2 + d2);
                else for (k2 = 2, N2 = 1; N2 <= x2; N2++) {
                  switch (B2) {
                    case 2:
                      p2 = h2 + d2 / 2 - U2 - (x2 / 2 - N2) * d2 / y2;
                      break;
                    case 3:
                      p2 = h2 + d2 - U2 - (_2 = cn(x2, d2, k2 + 1, S2.randomNumbers))[N2 - 1];
                      break;
                    default:
                      p2 = h2 + d2 - N2 * d2 / y2;
                  }
                  p2 = b(p2), t5.beginPath(), t5.fillRect(G2 ? p2 : v2, G2 ? v2 : p2, k2, k2);
                }
                R2 && Dt(t5, G2, h2 - U2, v2 = f2 - (G2 ? 1 : -1) * l2 * ((O2 = fn(E2)) - L2) / (F2 - L2), h2 + d2 + U2, v2, v2, h2 - U2, v2, h2 + d2 + U2, j), t5.restore();
              }
            }
            function cn(t5, n4, e4, i4) {
              for (var r3, o2 = [], a2 = m(100, 10 * t5), u2 = 0, s2 = [], c2 = 0; o2.length < t5; ) r3 = h(i4[c2] * n4), c2++, (u2 > a2 || ln(r3, s2)) && (o2.push(r3), s2.push([r3 - e4, r3 + e4])), u2++;
              return o2;
            }
            function fn(t5) {
              var n4, e4, i4, r3 = 0, o2 = 0;
              for (n4 = 0, e4 = t5.length; n4 < e4; n4++) o2 += (i4 = t5[n4]).value, r3 += i4.key * i4.value;
              return 0 === o2 ? 0 : r3 / o2;
            }
            function ln(t5, n4) {
              var e4, i4, r3;
              for (e4 = 0, i4 = n4.length; e4 < i4; e4++) if ((r3 = n4[e4])[0] <= t5 && t5 <= r3[1]) return false;
              return true;
            }
            function hn(t5, n4, e4, i4, r3, o2, s2) {
              var c2, h2, d2, v2, p2, g2, m2, y2, w2, M2, C2, S2, T2, A2, I2, k2, N2, _2, O2 = n4.points, E2 = O2 && O2.length, F2 = n4.colorRange, P2 = n4.labelRange, G2 = n4.maximum, U2 = n4.targetRed, V2 = n4.targetGreen, z2 = n4.targetBlue, Z2 = n4.targetYellow, Q2 = n4.color, K2 = n4.highlightPosition, J2 = n4.vertical, X2 = n4.textOrientation, q2 = n4.textSize, $2 = 5;
              if (!(a(O2) || E2 <= 0)) {
                if (Q2 = a(Q2) ? D : Q2, a(F2) || F2.length !== E2 || dn(F2)) for (F2 = [], c2 = 0; c2 < E2; c2++) F2.push(u(Q2, 1 + c2 / E2));
                for (h2 = Ht(O2, (function(t6) {
                  return t6 > 0;
                })), G2 = a(G2) || G2 < h2 ? h2 : G2, X2 = a(X2) ? 0 : X2, q2 = a(q2) || q2 <= 0 ? 10 : q2, q2 = x(q2) ? q2 : q2 * s2.zoomFactor, d2 = Ut(e4, i4, r3, o2, $2, o2 - 2 * $2, J2), v2 = d2.left, p2 = d2.width, g2 = d2.top, m2 = d2.height, t5.save(), y2 = v2, I2 = 0, k2 = E2; I2 < k2; I2++) (A2 = O2[I2]) <= 0 || (w2 = A2 / G2 * p2, J2 ? (M2 = e4 + 0.15 * r3, S2 = 0.7 * r3, C2 = y2 - w2, T2 = w2) : (M2 = y2, S2 = w2, C2 = i4 + 0.15 * o2, T2 = 0.7 * o2), N2 = I2 + 1 === K2 ? j : F2[I2], t5.save(), t5.fillStyle = N2, t5.fillRect(M2, C2, S2, T2), (_2 = P2 && P2[I2]) && (t5.save(), t5.fillStyle = Gt(N2), t5.textBaseline = Y, t5.textAlign = H, t5.font = q2 + W, t5.rect(M2, C2, S2, T2), t5.clip(), 1 === X2 ? (t5.translate(M2 + S2 / 2, C2), t5.rotate(Math.PI / 2), t5.fillText(_2, T2 / 2, 0)) : t5.fillText(_2, M2 + S2 / 2, C2 + T2 / 2), t5.restore()), y2 += (J2 ? -1 : 1) * w2, t5.restore());
                tt2(B, U2, (function(t6) {
                  return t6 > 0;
                })), tt2(L, V2), tt2(R, z2), tt2("yellow", Z2), t5.restore();
              }
              function tt2(n5, e5, i5) {
                var r4, o3;
                e5 !== f && e5 !== l && (e5 = e5 > G2 ? G2 : e5, i5 && !i5(e5) || (o3 = (e5 = e5 < 0 ? 0 : e5) / G2 * p2, J2 ? (r4 = b(v2 - o3) - 0.5, kt(t5, g2, r4, g2 + m2, r4, n5)) : (r4 = b(v2 + o3) - 0.5, kt(t5, r4, g2, r4, g2 + m2, n5))));
              }
            }
            function dn(t5) {
              for (var n4 = 0, e4 = t5.length; n4 < e4; n4++) if (a(t5[n4])) return true;
              return false;
            }
            function vn(t5, n4, e4, i4, r3, o2) {
              kt(t5, mn(n4), mn(e4), mn(i4), mn(r3), a(o2) ? E : o2, 1);
            }
            function pn(t5, n4, e4, i4, r3) {
              var o2, a2, u2, s2, c2, f2 = 0.4 * i4;
              switch (n4 = mn(n4), e4 = mn(e4), t5.beginPath(), t5.moveTo(n4, e4), o2 = f2 / 2, a2 = w(3) * f2 / 2, u2 = f2 / w(3), r3) {
                case 0:
                  s2 = [-o2, 0, o2], c2 = [a2, u2, a2];
                  break;
                case 2:
                  s2 = [-o2, 0, o2], c2 = [-a2, -u2, -a2];
                  break;
                case 3:
                  s2 = [a2, u2, a2], c2 = [-o2, 0, o2];
                  break;
                case 1:
                  s2 = [-a2, -u2, -a2], c2 = [-o2, 0, o2];
                  break;
                default:
                  s2 = [], c2 = [];
              }
              s2.forEach((function(i5, r4) {
                t5.lineTo(mn(n4 + i5), mn(e4 + c2[r4]));
              })), t5.lineTo(n4, e4), t5.closePath(), t5.fillStyle = O, t5.fill();
            }
            function gn(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2, S2 = e4.value, T2 = e4.colorScheme, I2 = e4.axisVisible, k2 = e4.barHeight, N2 = e4.barWidth, j2 = 5, D2 = 5, _2 = false, O2 = A(S2);
              if (!x(O2)) {
                if (a(v2 = 0 === t5 ? k2 : N2)) p2 = 0.7;
                else {
                  if (x(v2) || v2 <= 0) return;
                  p2 = Math.min(1, v2);
                }
                O2 > 1 ? (O2 = 1, _2 = true) : O2 < -1 && (O2 = -1, _2 = true), T2 = a(T2) ? "grey" : T2, I2 = !!a(I2) || I2, n4.save(), 0 === t5 ? (g2 = o2 - 2 * j2, m2 = u2 * p2, O2 >= 0 ? (_2 && (s2 = new dt(xt(i4 + j2 + g2 - D2, r3 + u2 / 2))), c2 = new vt(At(i4 + j2, r3 + u2 * (1 - p2) / 2, g2 * O2, m2)), f2 = new dt(xt(i4 + j2, r3 + 1)), l2 = new dt(xt(i4 + j2, r3 + u2)), h2 = 1) : (b2 = M(g2 * O2), _2 && (s2 = new dt(xt(i4 + j2 + D2, r3 + u2 / 2))), c2 = new vt(At(i4 + o2 - j2 - b2, r3 + u2 * (1 - p2) / 2, b2, m2)), f2 = new dt(xt(i4 + o2 - j2, r3 + 1)), l2 = new dt(xt(i4 + o2 - j2, r3 + u2)), h2 = 3), d2 = a(v2) ? u2 : u2 * p2) : 1 === t5 && (y2 = u2 - 2 * j2, w2 = o2 * p2, O2 >= 0 ? (c2 = new vt(At(i4 + (1 - p2) / 2 * o2, r3 + u2 - j2 - (C2 = y2 * O2), w2, C2)), _2 && (s2 = new dt(xt(i4 + o2 / 2, r3 + u2 - j2 - C2 + D2)), h2 = 0), f2 = new dt(xt(i4 + 1, r3 + u2 - j2)), l2 = new dt(xt(i4 + o2, r3 + u2 - j2))) : (O2 = M(O2), c2 = new vt(At(i4 + (1 - p2) / 2 * o2, r3 + j2, w2, y2 * O2)), _2 && (s2 = new dt(xt(i4 + o2 / 2, r3 + j2 + y2 - D2)), h2 = 2), f2 = new dt(xt(i4 + 1, r3 + j2)), l2 = new dt(xt(i4 + o2, r3 + j2))), d2 = a(v2) ? o2 : o2 * p2), n4.beginPath(), c2 && (Yt(n4, c2.x, c2.y, c2.width, c2.height, T2), Wt(n4, c2.x, c2.y, c2.width, c2.height)), s2 && pn(n4, s2.x, s2.y, d2, h2), n4.restore(), I2 && f2 && vn(n4, f2.x, f2.y, l2.x, l2.y), n4.restore();
              }
            }
            function mn(t5) {
              return b(t5) - 0.5;
            }
            function bn(t5, n4, e4, i4, r3, o2) {
              gn(0, t5, n4, e4, i4, r3, o2);
            }
            function yn(t5, n4, e4, i4, r3, o2) {
              gn(1, t5, n4, e4, i4, r3, o2);
            }
            function wn(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, C2, S2, T2, I2, k2, D2, _2, O2, R2, F2 = n4.variance, P2 = n4.reference, Z2 = n4.mini, Q2 = n4.maxi, K2 = n4.mark, J2 = n4.tickUnit, X2 = n4.legend, q2 = n4.colorPositive, $2 = n4.colorNegative, tt2 = n4.vertical, nt2 = 0.5, et2 = 0.5 - nt2 / 2, it2 = 5, rt2 = j, ot2 = N, at2 = 13 * u2.zoomFactor, ut2 = A(F2);
              if (!(x(ut2) || ($2 = a($2) ? B : $2, q2 = a(q2) ? L : q2, J2 = a(J2) ? 0 : J2, Q2 = a(Q2) ? 1 : Q2, Z2 = a(Z2) ? -1 : Z2, (v2 = !a(P2)) || (P2 = 0), tt2 ? (s2 = i4 + o2 - it2, c2 = o2 - 2 * it2, f2 = r3 - 4 * it2, l2 = -1) : (s2 = e4 + it2, c2 = r3 - 2 * it2, f2 = o2 - 4 * it2, l2 = 1), X2 && (g2 = A(n4.variance), x(g2) || (b2 = (m2 = g2.toString()).substr(m2.indexOf(".") + 1).length, h2 = b2 >= 2 ? (100 * g2).toFixed(b2 - 2) + "%" : (100 * g2).toFixed(0) + "%")), ut2 > Q2 && (ut2 = Q2, p2 = true), ut2 < Z2 && (ut2 = Z2, p2 = true), P2 = Zt(P2, Q2, Z2), p2 && (d2 = Zt(f2, 60, 15)), C2 = c2 / (y2 = M(Q2 - Z2)), S2 = s2 + l2 * M(Z2 - P2) * C2, (T2 = M(ut2 - P2) * C2) > M(y2) * C2 && (T2 = M(y2 + Z2) * C2), I2 = s2 + l2 * c2, tt2 && S2 < I2 || !tt2 && S2 > I2))) {
                if (Wt(t5, e4, i4, r3, o2), ut2 > P2 ? st2(q2, 0, it2 - c2, c2 - it2, 0, 1, i4 - S2, z, V, S2 - e4 - r3, G, U, -1, M(Q2 - ut2) * C2) : (T2 > M(y2) * C2 && (T2 = M(y2 + Z2) * C2, S2 = s2), st2($2, 1, -it2, it2, 2, 3, S2 - i4 - o2, V, z, e4 - S2, U, G, 1, M(Z2 - ut2) * C2)), v2 && (k2 = s2 + l2 * (Math.abs(Z2 - P2) * C2), ft2(e4, k2, e4 + r3, k2, k2, i4, k2, i4 + o2)), J2 > 0) for (t5.beginPath(), D2 = y2 / J2, _2 = 0; _2 <= D2; _2++) ft2(e4, O2 = s2 + c2 / D2 * _2 * l2, e4 + 0.1 * r3, O2, O2, i4 + 0.9 * o2, O2, i4 + o2, ot2, ot2);
                !a(K2) && Z2 <= K2 && K2 <= Q2 && (t5.beginPath(), R2 = s2 - (tt2 ? 1 : -1) * M(Z2 - K2) * C2, ft2(e4, R2, e4 + 0.33 * r3, R2, R2, i4 + 0.66 * o2, R2, i4 + o2, rt2, rt2), t5.fill()), t5.restore();
              }
              function st2(n5, a2, u3, c3, f3, l3, v3, g3, m3, b3, y3, M2, C3, x2) {
                var A2, I3, k3, N2, j2, D3;
                tt2 ? Yt(t5, A2 = e4 + et2 * r3, I3 = 0 === a2 ? S2 - T2 : S2, k3 = r3 * nt2, N2 = T2, n5) : Yt(t5, A2 = 0 === a2 ? S2 : S2 - T2, I3 = i4 + et2 * o2, k3 = T2, N2 = o2 * nt2, n5), p2 && (Wt(t5, A2, I3, k3, N2), tt2 ? pn(t5, e4 + r3 / 2, s2 + u3, d2, f3) : pn(t5, s2 + c3, i4 + o2 / 2, d2, l3), t5.restore()), X2 && (j2 = void 0, D3 = 0, p2 && (D3 = 0.4 * d2 * w(3) / 2 + it2 + 2), t5.save(), t5.beginPath(), t5.font = at2 + W, t5.fillStyle = E, tt2 ? (t5.textAlign = H, ct2(j2 = at2 + T2 + v3, x2, n5, g3, m3, A2, I3, k3, N2, tt2), t5.fillText(h2, e4 + r3 / 2, S2 + C3 * (T2 - D3))) : (t5.textBaseline = Y, ct2(j2 = t5.measureText(h2).width + T2 + b3, x2, n5, y3, M2, A2, I3, k3, N2, tt2), t5.fillText(h2, S2 + C3 * (D3 - T2), i4 + o2 / 2)), t5.restore());
              }
              function ct2(n5, e5, i5, r4, o3, a2, u3, s3, c3, f3) {
                f3 ? t5.textBaseline = r4 : t5.textAlign = r4, n5 > 0 && e5 < T2 && (t5.rect(a2, u3, s3, c3), t5.clip(), f3 ? t5.textBaseline = o3 : t5.textAlign = o3, t5.fillStyle = Gt(i5));
              }
              function ft2(n5, e5, i5, r4, o3, a2, u3, s3, c3, f3) {
                tt2 ? vn(t5, n5, e5, i5, r4, c3) : vn(t5, o3, a2, u3, s3, f3);
              }
            }
            function Mn(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, C2, S2, T2, I2, k2, N2, j2, D2, O2, R2, F2, P2, G2 = n4.plannedValue, U2 = n4.actualValue, H2 = n4.index, V2 = n4.absolute, z2 = n4.reference, Y2 = n4.mini, Z2 = n4.maxi, W2 = n4.tickUnit, Q2 = n4.legend, K2 = n4.colorPositive, J2 = n4.colorNegative, X2 = n4.lollipopHeaderColor, q2 = n4.vertical, $2 = [], tt2 = "", nt2 = 0.9, et2 = 10, it2 = 13 * u2.zoomFactor, rt2 = _, ot2 = false;
              if (!(0 === G2.length || 0 === U2.length || H2 < 0 || H2 >= G2.length || H2 >= U2.length || Y2 >= Z2 || x(U2[H2]) || x(G2[H2]))) {
                if (J2 = a(J2) ? B : J2, K2 = a(K2) ? L : K2, W2 = a(W2) ? 0 : W2, V2 = !a(V2) && V2, h2 = !a(z2), X2 = a(X2) ? E : X2, V2) {
                  for (m2 = 0; m2 < G2.length && m2 < U2.length; m2++) $2.push(U2[m2] - G2[m2]);
                  Z2 = It($2, false), Y2 = It($2, true), Z2 > 0 && Y2 > 0 ? Y2 = 0 : Z2 < 0 && Y2 < 0 && (Z2 = 0), d2 = $2[H2], z2 = 0, h2 = true;
                } else Z2 = a(Z2) ? 1 : Z2, Y2 = a(Y2) ? -1 : Y2, d2 = (U2[H2] - G2[H2]) / Math.abs(G2[H2]), ((z2 = Zt(z2, Z2, Y2)) === Z2 && d2 > z2 || z2 === Y2 && d2 < z2) && (ot2 = true), a(G2[H2]) && (ot2 = true);
                if (h2 || (z2 = 0), q2 ? (s2 = i4 + o2 - et2, c2 = o2 - 2 * et2, f2 = -1) : (s2 = e4 + et2, c2 = r3 - 2 * et2, f2 = 1), !V2 && Q2 ? ((y2 = A((b2 = d2 - z2).toString())) > 0 && (tt2 = "+"), !x(y2) && isFinite(y2) ? l2 = tt2 + (l2 = (C2 = (w2 = y2.toString()).substr(w2.indexOf(".") + 1).length) >= 2 ? (100 * y2).toFixed(2) + "%" : 100 * y2 + "%") : isFinite(y2) || (l2 = tt2 + y2)) : (d2 > 0 && (tt2 = "+"), l2 = tt2 + (l2 = (C2 = (w2 = (y2 = A(d2)).toString()).substr(w2.indexOf(".") + 1).length) >= 2 ? y2.toFixed(2) : y2)), V2 ? g2 = false : (d2 > Z2 && (d2 = Z2, g2 = true), d2 < Y2 && (d2 = Y2, g2 = true)), T2 = c2 / (S2 = M(Z2 - Y2)), I2 = s2 + f2 * M(Y2 - z2) * T2, (k2 = M(d2 - z2) * T2 * nt2) > M(S2) * T2 && (k2 = M(S2 + Y2) * T2), N2 = s2 + f2 * c2, !(q2 && I2 < N2 || !q2 && I2 > N2)) if (V2 || 0 !== G2[H2] && !ot2) {
                  if (Wt(t5, e4, i4, r3, o2), j2 = M(Math.ceil((Z2 - z2) / W2)), D2 = M(Math.floor((z2 - Y2) / W2)), V2) {
                    if (W2 > 5 / T2) if (q2) {
                      for (R2 = 1; R2 <= j2; R2++) Ot(t5, e4, F2 = I2 + W2 * T2 * R2 * -1 * nt2, e4 + r3, F2, rt2, 1);
                      for (R2 = 1; R2 <= D2; R2++) Ot(t5, e4, F2 = I2 + W2 * T2 * R2 * 1 * nt2, e4 + r3, F2, rt2, 1);
                    } else {
                      for (R2 = 1; R2 <= j2; R2++) Ot(t5, P2 = I2 + W2 * T2 * R2 * 1 * nt2, i4, P2, i4 + o2, rt2, 1);
                      for (R2 = 1; R2 <= D2; R2++) Ot(t5, P2 = I2 + W2 * T2 * R2 * -1 * nt2, i4, P2, i4 + o2, rt2, 1);
                    }
                  } else if (W2 > 0 && W2 <= Z2 && W2 > 5 / T2) if (t5.beginPath(), q2) {
                    for (O2 = 0.1 * r3 > 10 ? 10 : 0.1 * r3, R2 = 1; R2 <= j2; R2++) Ot(t5, e4, F2 = I2 + W2 * T2 * R2 * -1 * nt2, e4 + O2, F2, rt2, 1);
                    for (R2 = 1; R2 <= D2; R2++) Ot(t5, e4, F2 = I2 + W2 * T2 * R2 * 1 * nt2, e4 + O2, F2, rt2, 1);
                  } else {
                    for (O2 = 0.1 * o2 > 10 ? 10 : 0.1 * o2, R2 = 1; R2 <= j2; R2++) Ot(t5, P2 = I2 + W2 * T2 * R2 * 1 * nt2, i4 + o2 - O2, P2, i4 + o2, rt2, 1);
                    for (R2 = 1; R2 <= D2; R2++) Ot(t5, P2 = I2 + W2 * T2 * R2 * -1 * nt2, i4 + o2 - O2, P2, i4 + o2, rt2, 1);
                  }
                  v2 = Math.floor(12 * u2.zoomFactor), (p2 = Math.floor(4 * u2.zoomFactor)) % 2 != 0 && (p2 += 1), v2 % 2 != 0 && (v2 += 1), d2 > z2 ? Ft(t5, e4, i4, r3, o2, K2, X2, true, q2, I2, k2, p2, g2, v2, V2) : (k2 > M(S2) * T2 && (k2 = M(S2 + Y2) * T2, I2 = s2), Ft(t5, e4, i4, r3, o2, J2, X2, false, q2, I2, k2, p2, g2, v2, V2)), Q2 && (d2 > z2 ? Pt(t5, e4, i4, r3, o2, i4 - I2, I2 - e4 - r3, l2, it2, q2, true, I2, k2, v2) : Pt(t5, e4, i4, r3, o2, I2 - i4 - o2, e4 - I2, l2, it2, q2, false, I2, k2, v2)), h2 && (q2 ? Ot(t5, e4, I2, e4 + r3, I2, E, 2) : Ot(t5, I2, i4, I2, i4 + o2, E, 2)), t5.restore();
                } else q2 ? Ot(t5, e4, I2, e4 + r3, I2, E, 2) : Ot(t5, I2, i4, I2, i4 + o2, E, 2);
              }
            }
            function Cn(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, l2, h2, d2, v2, p2, b2, y2, w2, C2, S2, I2, k2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, Q2, K2, J2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2, vt2, pt2, Mt2, Ct2, St2 = n4.points, Tt2 = n4.boxPlotClass, xt2 = n4.showAverage, At2 = n4.scaleStart, kt2 = n4.scaleEnd, Nt2 = n4.acceptableStart, jt2 = n4.acceptableEnd, _t2 = n4.style, Ot2 = n4.colorScheme, Et2 = n4.vertical, Rt2 = 5, Lt2 = It(St2, false), Ft2 = It(St2, true);
              if (!(a(St2) || (St2 = zt(St2)).length <= 0)) {
                for ((Tt2 = Tt2 === f || typeof Tt2 !== T ? mt : Tt2.toLocaleLowerCase()) !== mt && Tt2 !== gt && Tt2 !== bt && Tt2 !== yt && Tt2 !== wt && (Tt2 = mt), u2 = A(At2), u2 = x(u2) ? Ft2 : u2, s2 = A(kt2), s2 = x(s2) ? Lt2 : s2, c2 = A(Nt2), l2 = A(jt2), Ot2 !== f && typeof Ot2 === T || (Ot2 = "#D2D2D2"), (_t2 === f || 0 !== _t2 && 1 !== _t2) && (_t2 = 0), h2 = j, u2 > Ft2 && (Ot2 = h2, u2 = Ft2), s2 < Lt2 && (Ot2 = h2, s2 = Lt2), Wt(t5, e4, i4, r3, o2), t5.lineWidth = 2, v2 = (d2 = Ut(e4, i4, r3, o2, Rt2, o2 - 2 * Rt2, Et2)).left, p2 = d2.width, b2 = d2.top, y2 = d2.height, w2 = Et2 ? -1 : 1, C2 = n4.perc02, S2 = n4.perc09, I2 = n4.perc10, k2 = n4.perc90, _2 = n4.perc91, O2 = n4.perc98, E2 = n4.q1, F2 = Ft2, B2 = Lt2, P2 = 1.5 * (L2 = (R2 = n4.q3) - E2), G2 = 1.5 * L2, U2 = n4.stDev, H2 = Ht(St2) / m(1, St2.length), V2 = 0, z2 = 0, Y2 = b2 + 0.1 * y2, Z2 = 0.7 * y2, W2 = M(s2 - u2), Q2 = 0, K2 = St2.length; Q2 < K2; Q2++) (J2 = St2[Q2]) < E2 && J2 >= E2 - 1.5 * L2 && J2 - (E2 - 1.5 * L2) < P2 && (P2 = J2 - (E2 - 1.5 * L2), F2 = J2), J2 > R2 && J2 <= R2 + 1.5 * L2 && R2 + 1.5 * L2 - J2 < G2 && (G2 = R2 + 1.5 * L2 - J2, B2 = J2), X2 = false, V2 = v2 + w2 * (p2 * ((J2 - u2) / W2)), Tt2 === bt && (J2 <= E2 - 1.5 * L2 || J2 >= R2 + 1.5 * L2) && (X2 = true, z2 = J2 <= E2 - 3 * L2 || J2 >= R2 + 3 * L2 ? 0 : 1), Tt2 === gt && (J2 <= C2 || J2 >= O2) && (X2 = true, z2 = 1), Tt2 === wt && (J2 <= H2 - 2 * U2 || J2 >= H2 + 2 * U2) && (X2 = true, z2 = J2 <= H2 - 3 * U2 || J2 >= H2 + 3 * U2 ? 0 : 1), q2 = N, X2 && (1 === _t2 ? 1 === z2 ? Pt2(0.2, 0.8, V2, q2) : Pt2(0.3, 0.7, V2, q2) : (($2 = 0.1 * y2) < 2 && ($2 = 2), t5.beginPath(), t5.strokeStyle = q2, tt2 = b2 + 0.45 * y2, nt2 = V2, t5.arc(Et2 ? tt2 : nt2, Et2 ? nt2 : tt2, $2 / 2, 0, 2 * Math.PI), t5.stroke()));
                switch ((u2 > c2 || s2 < l2) && (Ot2 = "#C0FF00"), (c2 = m(u2, c2)) > (l2 = g(s2, l2)) ? Ot2 = h2 : c2 < l2 && Dt(t5, Et2, rt2 = b2 + 0.9 * y2, et2 = v2 + w2 * (p2 * ((c2 - u2) / W2)), rt2, it2 = v2 + w2 * (p2 * ((l2 - u2) / W2)), et2, rt2, it2, rt2, D), at2 = M(v2 + w2 * (p2 * ((R2 - u2) / W2)) - (ot2 = v2 + w2 * (p2 * ((E2 - u2) / W2)))), st2 = v2 + w2 * (p2 * (((ut2 = n4.median) - u2) / W2)), Tt2) {
                  case gt:
                    lt2 = C2, ht2 = O2;
                    break;
                  case bt:
                    lt2 = F2, ht2 = B2;
                    break;
                  case wt:
                    at2 = M(v2 + w2 * (p2 * ((H2 + U2 - u2) / W2)) - (ot2 = v2 + w2 * (p2 * ((H2 - U2 - u2) / W2)))), st2 = v2 + w2 * (p2 * ((H2 - u2) / W2)), lt2 = (dt2 = H2 - 2 * U2) > u2 ? dt2 : Ft2, ht2 = (dt2 = H2 + 2 * U2) < s2 ? dt2 : Lt2, xt2 = false;
                    break;
                  default:
                    lt2 = Ft2, ht2 = Lt2;
                }
                ct2 = v2 + w2 * (p2 * ((lt2 - u2) / W2)), ft2 = v2 + w2 * (p2 * ((ht2 - u2) / W2)), vt2 = N, 1 === _t2 ? Bt2("#F2F2F2", Y2, ft2, Z2, ct2 - ft2, ct2, Y2, ft2 - ct2, Z2) : Dt(t5, Et2, pt2 = b2 + 0.45 * y2, ct2, pt2, ft2, ct2, pt2, ft2, pt2, vt2), Bt2(Ot2, Y2, ot2 - at2, Z2, at2, ot2, Y2, at2, Z2), Dt(t5, Et2, Y2, st2, Y2 + Z2, st2, st2, Y2, st2, Y2 + Z2, vt2), 0 === _t2 && (Dt(t5, Et2, Y2 + 0.3 * Z2, ft2, Y2 + 0.7 * Z2, ft2, ft2, Y2 + 0.3 * Z2, ft2, Y2 + 0.7 * Z2, vt2), Dt(t5, Et2, Y2 + 0.3 * Z2, ct2, Y2 + 0.7 * Z2, ct2, ct2, Y2 + 0.3 * Z2, ct2, Y2 + 0.7 * Z2, vt2)), Tt2 !== gt && Tt2 !== yt || (Mt2 = void 0, Ct2 = void 0, Tt2 === gt ? (lt2 = S2, ht2 = _2) : (lt2 = I2, ht2 = k2), Mt2 = v2 + w2 * (p2 * ((lt2 - u2) / W2)), Pt2(0.3, 0.7, Ct2 = v2 + w2 * (p2 * ((ht2 - u2) / W2)), vt2), Pt2(0.3, 0.7, Mt2, vt2)), xt2 && Pt2(0.2, 0.8, V2 = v2 + w2 * (p2 * ((H2 - u2) / W2)), h2), t5.restore();
              }
              function Bt2(n5, e5, i5, r4, o3, a2, u3, s3, c3) {
                Et2 ? Yt(t5, e5, i5, r4, o3, n5) : Yt(t5, a2, u3, s3, c3, n5);
              }
              function Pt2(n5, e5, i5, r4) {
                Dt(t5, Et2, Y2 + Z2 * n5, i5, Y2 + Z2 * e5, i5, i5, Y2 + Z2 * n5, i5, Y2 + Z2 * e5, r4);
              }
            }
            function Sn(t5, n4, e4, i4, r3) {
              n4 = b(n4), e4 = b(e4), n4 === (i4 = b(i4)) && (n4 = i4 -= 0.5), e4 === (r3 = b(r3)) && (e4 = r3 -= 0.5), t5.moveTo(n4, e4), t5.lineTo(i4, r3);
            }
            function Tn(t5, n4, e4, i4, r3, o2, a2, u2, s2, c2, f2) {
              t5.beginPath(), t5.strokeStyle = e4, n4 ? Sn(t5, i4, r3, o2, a2) : Sn(t5, u2, s2, c2, f2), t5.stroke();
            }
            function xn(t5, n4, e4, i4, r3) {
              t5.rect(n4, e4, i4, r3), t5.clip();
            }
            function An(t5, n4, e4, i4, r3, o2) {
              var u2, s2, c2, f2, l2, h2, d2, v2 = o2.labelText, p2 = o2.fontSize, g2 = o2.startBox, m2 = o2.endBox, b2 = o2.boxColor, y2 = o2.isInRightOrTopOfBox, w2 = o2.fillStyle;
              t5.save(), t5.beginPath(), t5.font = p2 + W, f2 = 1, w2 = a(w2) ? E : w2, o2.vertical ? (l2 = H, y2 ? (u2 = p2 + m2 - (g2 - e4)) > 0 && g2 - m2 - e4 < m2 ? (h2 = V, w2 = Gt(b2), c2 = g2 - m2 + f2, xn(t5, n4, g2 - m2, i4, m2)) : (h2 = z, c2 = g2 - m2 - f2) : (u2 = p2 - (e4 + r3 - g2)) > 0 && e4 + r3 - g2 < m2 ? (xn(t5, n4, g2 - m2, i4, m2), h2 = z, w2 = Gt(b2), c2 = g2 - f2) : (h2 = V, c2 = g2 + f2), t5.textAlign = l2, t5.textBaseline = h2, t5.fillStyle = w2, t5.fillText(v2, n4 + i4 / 2, c2)) : (h2 = Y, d2 = t5.measureText(v2), y2 ? (u2 = d2.width + m2 - (n4 + i4 - g2)) > 0 && n4 + i4 - (g2 + m2) < m2 ? (xn(t5, g2, e4, m2, r3), l2 = U, w2 = Gt(b2), s2 = g2 + m2 - f2) : (l2 = G, s2 = g2 + m2 + f2) : (u2 = d2.width - (g2 - n4)) > 0 && g2 - n4 < m2 ? (xn(t5, g2, e4, m2, r3), s2 = g2 + f2, l2 = G, w2 = Gt(b2)) : (l2 = U, s2 = g2 - f2), t5.textAlign = l2, t5.textBaseline = h2, t5.fillStyle = w2, t5.fillText(v2, s2, e4 + r3 / 2)), t5.restore();
            }
            function In(t5, n4, e4, i4, r3, o2, s2) {
              var c2, l2, h2, d2, v2, p2, b2, y2, w2, C2, S2, I2, k2, N2, j2, D2, O2, R2, L2, F2, B2, P2, G2, U2, H2, V2, z2, Y2, Z2, W2, X2, q2, $2, tt2, nt2, et2, it2, rt2, ot2, at2, ut2, st2, ct2, ft2, lt2, ht2, dt2, vt2 = n4.points, pt2 = n4.labels, gt2 = n4.pointIndex, mt2 = n4.minimum, bt2 = n4.maximum, yt2 = n4.colorPositive, wt2 = n4.colorNegative, Mt2 = n4.vertical, Ct2 = n4.itemTypeRange, St2 = n4.colorTotal, Tt2 = 5, xt2 = 13 * s2.zoomFactor;
              if (!a(vt2) && !((c2 = vt2.length) <= 0 || (l2 = parseInt(gt2, 10), x(l2) || l2 <= 0 || l2 > c2))) {
                for (pt2 = a(pt2) ? [] : pt2, yt2 !== f && typeof yt2 === T || (yt2 = "#8CBF64"), wt2 !== f && typeof wt2 === T || (wt2 = "#D6604D"), typeof St2 !== T && (St2 = f), h2 = yt2, d2 = u(yt2, 1.3), v2 = wt2, p2 = u(wt2, 1.3), b2 = 1, y2 = 0, w2 = 0, C2 = 0, S2 = 0, I2 = [], k2 = 0, N2 = 0, D2 = 0, O2 = c2; D2 < O2; D2++) N2 = vt2[D2], j2 = Ct2[D2], R2 = false, L2 = 1 === b2, (F2 = !a(j2)) && (j2 === K ? N2 = M(N2) : j2 === Q ? N2 = -M(N2) : j2 === J ? (R2 = true, L2 ? y2 = N2 : N2 = y2) : F2 = false), I2[b2] = [], B2 = I2[b2], x(N2) ? (B2[0] = 0, B2[1] = y2, B2[2] = 0) : (B2[0] = M(N2), y2 = R2 ? y2 : N2 + y2, B2[1] = N2 > 0 ? w2 : y2, B2[2] = N2), B2[3] = b2, C2 = g(w2, C2), S2 = m(w2, S2), ((P2 = b2 === c2) && !F2 || R2) && (k2 = C2 < 0 ? -C2 : 0, B2[1] = N2 > 0 ? 0 : N2), F2 && R2 && !L2 || (w2 = N2 + w2, P2 && F2 && (C2 = g(w2, C2), S2 = m(w2, S2))), b2++;
                G2 = false, a(j2) || (G2 = -1 === (U2 = [Q, K, J]).indexOf(j2)), (a(j2) || G2) && (y2 -= N2), z2 = A(mt2), x(z2) || z2 > 0 || z2 > C2 ? (H2 = C2, z2 = C2) : (H2 = z2, k2 = -z2), Y2 = A(bt2), x(Y2) || Y2 < 0 || Y2 < S2 ? V2 = S2 : (V2 = Y2, k2 = -z2), W2 = (Z2 = Ut(e4, i4, r3, o2, Tt2, o2 - 2 * Tt2, Mt2)).left, X2 = Z2.width, q2 = Z2.top, $2 = Z2.height, tt2 = Mt2 ? -1 : 1, et2 = X2 / (nt2 = V2 - H2), Wt(t5, e4, i4, r3, o2), t5.beginPath(), t5.lineWidth = 1, rt2 = (it2 = I2[l2])[2], ot2 = Ct2[l2 - 1], at2 = W2 + tt2 * (it2[1] + k2) * et2, ut2 = it2[0] * et2, ct2 = ot2 === J, ft2 = (a(ot2) || G2) && l2 === c2 || ct2, st2 = St2 && ft2 ? St2 : 1 === l2 || ft2 ? rt2 >= 0 ? h2 : v2 : rt2 >= 0 ? d2 : p2, Mt2 ? Yt(t5, q2, at2 - ut2, $2, ut2, st2) : Yt(t5, at2, q2, ut2, $2, st2), Mt2 ? (1 !== l2 && (l2 !== c2 ? Tn(t5, rt2 > 0, _, e4, at2, q2 + $2, at2, e4, at2 - ut2, q2 + $2, at2 - ut2) : Tn(t5, true, _, e4, lt2 = W2 - (y2 + k2) * et2, q2 + $2, lt2)), l2 !== c2 && Tn(t5, rt2 > 0, _, q2, at2 - ut2, e4 + r3, at2 - ut2, q2, at2, e4 + r3, at2)) : (1 !== l2 && (l2 !== c2 ? Tn(t5, rt2 > 0, _, at2, i4, at2, q2 + $2, at2 + ut2, i4, at2 + ut2, q2 + $2) : Tn(t5, true, _, ht2 = W2 + (y2 + k2) * et2, i4, ht2, q2 + $2)), l2 !== c2 && Tn(t5, rt2 > 0, _, at2 + ut2, q2, at2 + ut2, i4 + o2, at2, q2, at2, i4 + o2)), dt2 = pt2[l2 - 1], pt2.length > 0 && !a(dt2) && "" !== dt2 && An(t5, e4, i4, r3, o2, { labelText: dt2, vertical: Mt2, isInRightOrTopOfBox: rt2 > 0, fontSize: xt2, startBox: at2, endBox: ut2, boxColor: st2 }), Tn(t5, Mt2, E, e4, W2 - k2 * et2, e4 + r3, W2 - k2 * et2, W2 + k2 * et2, i4, W2 + k2 * et2, i4 + o2), t5.restore();
              }
            }
            function kn(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, y2, w2, M2, S2, I2, k2, D2, _2, O2, E2, R2, L2, F2, B2, P2, G2, U2, H2 = n4.points, V2 = n4.pointIndex, z2 = n4.colorRange, Y2 = n4.target, Z2 = n4.target2, W2 = n4.highlightPosition, Q2 = n4.label, K2 = n4.vertical, J2 = 13 * u2.zoomFactor, X2 = n4.targetColor, q2 = n4.target2Color, $2 = n4.labelColor, tt2 = n4.barSize;
              if (!a(H2) && (a(tt2) || !(x(tt2) || tt2 <= 0)) && (tt2 > 1 && (tt2 = 1), !((s2 = H2.length) <= 0 || (c2 = parseInt(V2, 10), x(c2) || c2 <= 0 || c2 > s2)))) {
                for (z2 = a(z2) ? [] : z2, f2 = parseInt(Q2, 10), f2 = x(f2) ? 0 : f2, l2 = 1, h2 = 0, d2 = [], v2 = 0, p2 = H2.length; v2 < p2; v2++) g2 = H2[v2], d2[l2] = [], m2 = d2[l2], g2 < 0 || x(g2) || a(g2) ? (m2[0] = 1 === l2 ? 0 : h2, m2[1] = 0) : (h2 += g2, m2[0] = 1 === l2 ? 0 : h2 - g2, m2[1] = g2), l2++;
                w2 = 5, y2 = a(tt2) ? w2 : K2 ? r3 * (1 - tt2) / 2 : o2 * (1 - tt2) / 2, M2 = Ut(e4, i4, r3, o2, y2, o2 - 2 * w2, K2, w2), S2 = M2.left, I2 = M2.width, k2 = M2.top, D2 = M2.height, _2 = K2 ? -1 : 1, O2 = I2 / h2, Wt(t5, e4, i4, r3, o2), t5.beginPath(), t5.lineWidth = 1, R2 = (E2 = d2[c2])[1], L2 = S2 + _2 * E2[0] * O2, F2 = E2[1] * O2, B2 = c2 === W2 ? j : 0 === z2.length || typeof z2[c2 - 1] !== T ? N : z2[c2 - 1], K2 ? Yt(t5, k2, L2 - F2, D2, F2, B2) : Yt(t5, L2, k2, F2, D2, B2), 1 === f2 ? P2 = (E2[0] + R2) / h2 * 1e3 : 2 === f2 && (P2 = R2 / h2 * 1e3), G2 = b(P2) / 10 + "%", 1 !== f2 && 2 !== f2 || "" === G2 || An(t5, e4, i4, r3, o2, { labelText: G2, vertical: K2, isInRightOrTopOfBox: (E2[0] + E2[1]) * O2 < I2 / 2, fontSize: J2, startBox: L2, endBox: F2, boxColor: B2, fillStyle: $2 }), U2 = [a(X2) ? "#8CBF64" : X2, a(q2) ? "#EE5D5D" : q2], [Y2, Z2].forEach((function(n5, a2) {
                  var u3 = nt2(n5), s3 = C(S2 + _2 * I2 * u3);
                  Tn(t5, K2, U2[a2], e4, s3, e4 + r3, s3, s3, i4, s3, i4 + o2);
                })), t5.restore();
              }
              function nt2(t6) {
                var n5 = A(t6);
                return n5 = (n5 = (n5 = x(n5) ? 0 : n5) < 0 ? 0 : n5) > 1 ? 1 : n5;
              }
            }
            function Nn(t5, n4) {
              switch (n4) {
                case 2:
                  var e4;
                  return t5 % 4 == 0 && t5 % 100 != 0 || t5 % 400 == 0 ? 29 : 28;
                case 4:
                case 6:
                case 9:
                case 11:
                  return 30;
                default:
                  return 31;
              }
            }
            function jn(t5, n4, e4) {
              var i4, r3, o2, a2, u2, c2;
              return t5 < 0 && (t5 = 0), t5 > 1 && (t5 = 1), i4 = s(n4), r3 = s(e4), o2 = i4.a * (1 - t5) + r3.a * t5, a2 = i4.r * (1 - t5) + r3.r * t5 + "", u2 = i4.g * (1 - t5) + r3.g * t5 + "", c2 = i4.b * (1 - t5) + r3.b * t5 + "", "rgba(" + parseInt(a2, 10) + "," + parseInt(u2, 10) + "," + parseInt(c2, 10) + "," + A(o2 / 255 + "") + ")";
            }
            function Dn(t5, n4, e4) {
              return t5 === n4 && t5 === e4 ? 1 : t5 <= n4 ? 0 : t5 >= e4 ? 1 : (t5 - n4) / (e4 - n4);
            }
            function _n(t5, n4, e4, i4, r3, o2) {
              var a2 = (o2 + r3) / 2;
              return r3 <= i4 && i4 <= a2 ? jn(Dn(i4, r3, a2), t5, n4) : jn(Dn(i4, a2, o2), n4, e4);
            }
            function On(t5) {
              var n4 = I, e4 = -I;
              return t5.forEach((function(t6) {
                t6 !== f && t6 !== l && (n4 > t6 && (n4 = t6), e4 < t6 && (e4 = t6));
              })), { min: n4, max: e4 };
            }
            function En(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2;
              i4 ? t5.forEach((function(t6, r4) {
                0 !== t6 && t6 !== f && t6 !== l && (n4[e4 + r4] = i4[r4] || n4[e4 + r4]);
              })) : (u2 = On(t5), s2 = u2.min, c2 = u2.max, t5.forEach((function(t6, i5) {
                0 !== t6 && t6 !== f && t6 !== l && (n4[e4 + i5] = _n(r3, o2, a2, t6, s2, c2));
              })));
            }
            function Rn(t5, n4, e4, i4, r3, o2) {
              var a2, u2, s2, c2, f2 = n4.year, l2 = n4.month, h2 = n4.values, d2 = n4.emptyColor || "lightgray", v2 = n4.startColor, p2 = n4.middleColor, g2 = n4.endColor, m2 = "white", b2 = 6, y2 = 7, w2 = 2, M2 = (r3 - (b2 + 1) * w2) / b2, C2 = (o2 - (y2 + 1) * w2) / y2, S2 = [], T2 = new Date(f2, l2 - 1, 1).getDay();
              for (a2 = 0; a2 < b2 * y2; a2++) a2 < T2 ? S2[a2] = m2 : a2 < T2 + Nn(f2, l2) ? S2[a2] = d2 : S2[a2] = m2;
              for (En(h2, S2, T2, n4.colors, v2, p2, g2), t5.save(), t5.rect(e4, i4, r3, o2), t5.clip(), t5.beginPath(), u2 = 0, s2 = 0; s2 < b2; s2++) for (c2 = 0; c2 < y2; c2++) t5.fillStyle = S2[u2], u2++, t5.fillRect(e4 + s2 * M2 + (s2 + 1) * w2, i4 + c2 * C2 + (c2 + 1) * w2, M2, C2);
              t5.restore();
            }
            function Ln(t5) {
              var n4, e4 = t5.getFullYear(), i4 = t5.getMonth(), r3 = t5.getDate();
              for (n4 = 1; n4 < i4 + 1; n4++) r3 += Nn(e4, n4);
              return r3;
            }
            function Fn(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2 = n4.year, _2 = n4.values, O2 = n4.emptyColor || "lightgray", E2 = n4.startColor, R2 = n4.middleColor, L2 = n4.endColor, F2 = "white", B2 = 7, P2 = parseInt(366 / B2 + "", 10) + 2, G2 = [], U2 = new Date(D2, 0, 1).getDay(), H2 = Ln(new Date(D2, 11, 31));
              for (u2 = 0; u2 < P2 * B2; u2++) G2[u2] = u2 < U2 ? F2 : u2 < U2 + H2 ? O2 : F2;
              for (En(_2, G2, U2, n4.colors, E2, R2, L2), t5.save(), t5.rect(e4, i4, r3, o2), t5.clip(), f2 = e4 + (c2 = 15 * (s2 = a2.zoomFactor)), l2 = i4, h2 = r3 - c2, d2 = o2, t5.save(), t5.translate(e4 + c2 / 2, l2 + d2), t5.rotate(-Math.PI / 2), t5.font = 13 * s2 + W, t5.fillStyle = "black", t5.textBaseline = "middle", t5.textAlign = "center", t5.fillText(D2 + "", d2 / 2, 0), t5.restore(), p2 = (h2 - (P2 + 1) * (v2 = 2)) / P2, g2 = (d2 - (B2 + 1) * v2) / B2, m2 = 0, M2 = [], y2 = 0; y2 < P2; y2++) for (b2 = 0; b2 < B2; b2++) w2 = { x: f2 + y2 * p2 + (y2 + 1) * v2, y: l2 + b2 * g2 + (b2 + 1) * v2, w: p2, h: g2 }, M2[m2] = w2, t5.fillStyle = G2[m2], m2++, t5.fillRect(w2.x, w2.y, w2.w, w2.h);
              for (C2 = [], S2 = {}, T2 = 0; T2 < 12; T2++) S2[T2] = Ln(new Date(D2, T2, 1)) - 1 + U2;
              for (x2 = S2[11] + Nn(D2, 12) - 1, m2 = 0, y2 = 0; y2 < P2; y2++) for (b2 = 0; b2 < B2; b2++) U2 <= m2 && m2 < U2 + H2 && (k2 = S2[I2 = (A2 = new Date(D2, 0, m2 - U2 + 1)).getMonth()], w2 = M2[m2], k2 <= m2 && m2 < 7 + k2 && C2.push({ x1: w2.x, y1: w2.y - v2 / 2, x2: w2.x, y2: w2.y + w2.h + v2 / 2 }), m2 !== k2 && 0 !== A2.getDay() || C2.push({ x1: w2.x - v2 / 2, y1: w2.y, x2: w2.x + w2.w + v2 / 2 + (m2 === k2 ? v2 : 0), y2: w2.y }), x2 - 7 < m2 && m2 <= x2 && C2.push({ x1: w2.x + w2.w, y1: w2.y - v2 / 2, x2: w2.x + w2.w, y2: w2.y + w2.h + v2 / 2 }), m2 !== x2 && 6 !== A2.getDay() || C2.push({ x1: w2.x - v2 / 2 - (m2 === x2 ? v2 : 0), y1: w2.y + w2.h, x2: w2.x + w2.w + v2 / 2, y2: w2.y + w2.h })), m2++;
              for (t5.strokeStyle = "black", t5.lineWidth = 2, N2 = 0; N2 < C2.length; N2++) j2 = C2[N2], t5.beginPath(), t5.moveTo(j2.x1, j2.y1), t5.lineTo(j2.x2, j2.y2), t5.stroke();
              t5.restore();
            }
            function Bn(t5) {
              var n4, e4, i4 = Vt(t5.minAngle - 90), r3 = Vt(t5.maxAngle - 90), o2 = t5.minValueOption.value, a2 = t5.maxValueOption.value, u2 = t5.ranges, s2 = P, c2 = (r3 - i4) / (a2 - o2), f2 = [];
              return u2.length > 0 && u2.forEach((function(t6) {
                n4 = t6.start, e4 = t6.end, f2.push({ start: c2 * (n4 - o2) + i4, end: c2 * (e4 - o2) + i4, color: t6.color });
              })), f2.unshift({ start: i4, end: r3, color: s2 }), { paintRanges: f2, fillColor: s2, targetValueRadian: c2 * (t5.targetValueOption.value - o2) + i4, currentValueRadian: c2 * (t5.currentValueOption.value - o2) + i4, minValueRadian: i4, maxValueRadian: r3 };
            }
            function Pn(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, d2, v2, p2, b2 = o2.zoomFactor, y2 = t5.currentValueOption.normalFontHeight * b2, w2 = t5.minValueOption.normalFontHeight * b2, C2 = t5.maxValueOption.normalFontHeight * b2, S2 = t5.minAngle, T2 = t5.maxAngle, x2 = t5.currentValueOption.normalFontWidth * b2, A2 = M(S2) > 90 || M(T2) > 90, I2 = M(S2) > 120 || M(T2) > 120, k2 = lt * g(i4, r3);
              return a2 ? (u2 = h(i4 / 2 * ft), s2 = h(r3 * ft), f2 = g(u2, c2 = A2 ? s2 / 2 : s2), v2 = (r3 - (A2 ? 2 * f2 : f2)) / 2, p2 = 0.03 * f2, d2 = { x: n4 + i4 / 2, y: e4 + r3 / 2 + (A2 ? 0 : f2 / 2), outerRadius: f2, innerRadius: f2 * t5.radiusRatio, currentValuePoint: l, enoughShowCurrentLabel: false, enoughShowTargetLabel: true, enoughShowMinLabel: w2 < v2, enoughShowMaxLabel: C2 < v2, moreThanSemiCircle: A2 }, A2 ? I2 ? 2 * y2 / 3 < v2 - p2 - m(C2, w2) && x2 < i4 - 2 * k2 && (d2.currentValuePoint = { x: d2.x, y: d2.y + f2 + p2 + y2 / 2 + m(C2, w2) }, d2.enoughShowCurrentLabel = true) : 2 * y2 / 3 < r3 / 2 - p2 && x2 < i4 - 2 * k2 && (d2.currentValuePoint = { x: d2.x, y: d2.y + 2 * p2 + y2 }, d2.enoughShowCurrentLabel = true) : y2 < v2 - p2 && x2 < i4 - 2 * k2 && (d2.currentValuePoint = { x: d2.x, y: d2.y + y2 }, d2.enoughShowCurrentLabel = true)) : (u2 = h(i4 / 2 * ct), s2 = h(r3 * ct), f2 = g(u2, c2 = A2 ? s2 / 2 : s2), d2 = { x: n4 + i4 / 2, y: e4 + r3 / 2 + (A2 ? 0 : f2 / 2), outerRadius: f2, innerRadius: f2 * t5.radiusRatio }), d2;
            }
            function Gn(t5, n4, e4, i4) {
              return { x: t5 + p(e4) * i4, y: n4 + v(e4) * i4 };
            }
            function Un(t5, n4) {
              return M(n4.x - t5.x) < 0.01 ? { x: n4.x, y: n4.y, textAlign: H } : n4.x > t5.x ? { x: n4.x + it, y: n4.y, textAlign: G } : n4.x < t5.x ? { x: n4.x - it, y: n4.y, textAlign: U } : { x: n4.x, y: n4.y, textAlign: G };
            }
            function Hn(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2, g2, b2, y2, w2, C2, S2, T2, x2, A2, I2, k2, N2, j2, D2, _2, R2, L2, B2, P2, V2, z2, Y2, W2, Q2, K2, J2, tt2, it2, rt2, ot2, ut2, st2 = u2.zoomFactor, ct2 = !!a(n4.showLabel) || n4.showLabel, ft2 = Pn(n4, e4, i4, r3, o2, u2, ct2);
              if (!(ft2.outerRadius <= 0)) return s2 = { showTargetLabel: false, showCurrentLabel: false, showMinLabel: false, showMaxLabel: false }, c2 = ft2.innerRadius, f2 = ft2.outerRadius, l2 = ft2.currentValuePoint, g2 = ft2.moreThanSemiCircle, b2 = { x: ft2.x, y: ft2.y }, w2 = (y2 = Bn(n4)).paintRanges, C2 = y2.fillColor, t5.save(), w2.forEach((function(n5) {
                t5.beginPath(), t5.strokeStyle = O, t5.moveTo(b2.x, b2.y), t5.fillStyle = n5.color || C2, t5.arc(b2.x, b2.y, f2, n5.start, n5.end, false), t5.lineTo(b2.x, b2.y), t5.closePath(), t5.fill(), t5.stroke(), t5.beginPath(), t5.fillStyle = O, t5.strokeStyle = O, t5.moveTo(b2.x, b2.y), t5.arc(b2.x, b2.y, c2, n5.start - ht, n5.end + ht, false), t5.lineTo(b2.x, b2.y), t5.closePath(), t5.fill(), t5.stroke();
              })), t5.beginPath(), t5.moveTo(b2.x, b2.y), t5.fillStyle = E, t5.arc(b2.x, b2.y, f2 * X, 0, 2 * d, false), t5.fill(), S2 = Gn(b2.x, b2.y, y2.targetValueRadian, c2), T2 = Gn(b2.x, b2.y, y2.targetValueRadian, f2 * $), jt(t5, S2.x, S2.y, T2.x, T2.y, nt, et, F), x2 = Gn(b2.x, b2.y, y2.currentValueRadian, f2 * $), kt(t5, b2.x, b2.y, x2.x, x2.y, E, q * f2), ct2 && (t5.save(), t5.beginPath(), t5.textAlign = Z, t5.fillStyle = F, A2 = n4.minValueOption.normalFontHeight * st2, I2 = n4.maxValueOption.normalFontHeight * st2, k2 = n4.minValueOption.normalFontWidth * st2, N2 = n4.maxValueOption.normalFontWidth * st2, j2 = y2.minValueRadian, D2 = y2.maxValueRadian, _2 = n4.currentValueOption.normalFontHeight * st2, R2 = n4.currentValueOption.normalFontWidth * st2, L2 = void 0, B2 = void 0, P2 = void 0, ft2.enoughShowCurrentLabel && (_t(t5, l2.x, l2.y, n4.currentValueOption.label, n4.currentValueOption.fontAfterZoom, H), s2.showCurrentLabel = true, L2 = { x: l2.x - R2 / 2, y: l2.y - _2, width: R2, height: _2 }), ft2.enoughShowMinLabel && M(p(j2) * f2) + k2 < r3 / 2 - at && (V2 = Gn(b2.x, b2.y, y2.minValueRadian, f2), Qt(B2 = { x: (z2 = Un(b2, V2)).x - k2, y: z2.y, width: k2, height: A2 }, L2) || (_t(t5, z2.x, z2.y + h(A2), n4.minValueOption.label, n4.minValueOption.fontAfterZoom, U), s2.showMinLabel = true)), ft2.enoughShowMaxLabel && M(p(D2) * f2) + N2 < r3 / 2 - at && (Y2 = Gn(b2.x, b2.y, y2.maxValueRadian, f2), Qt(P2 = { x: (W2 = Un(b2, Y2)).x, y: W2.y, width: N2, height: I2 }, L2) || (_t(t5, W2.x, W2.y + h(I2), n4.maxValueOption.label, n4.maxValueOption.fontAfterZoom, G), s2.showMaxLabel = true)), ft2.enoughShowTargetLabel && (Q2 = n4.targetValueOption.normalFontWidth * st2, K2 = n4.targetValueOption.normalFontHeight * st2, J2 = n4.targetValueOption.label, tt2 = f2 + 3 * K2 / 2, T2 = Gn(b2.x, b2.y, y2.targetValueRadian, tt2), it2 = Un(b2, T2), rt2 = y2.targetValueRadian, ot2 = g2 ? (o2 - 2 * tt2) / 2 + tt2 : o2 - (o2 - f2) / 2, M(p(rt2) * tt2) + Q2 < r3 / 2 - at && M(v(rt2) * tt2) + K2 / 2 + at / 2 < ot2 && (ut2 = m(A2, I2) / 2, _t(t5, it2.x, it2.y - (rt2 > d ? ut2 : -ut2), J2, n4.targetValueOption.fontAfterZoom, it2.textAlign), s2.showTargetLabel = true)), t5.restore()), t5.restore(), s2;
            }
            function Vn(t5, n4, e4, i4, r3, o2) {
              var a2 = o2.zoomFactor, u2 = t5.showLabel, s2 = t5.minValueOption.normalFontHeight * a2, c2 = t5.maxValueOption.normalFontHeight * a2, f2 = t5.targetValueOption.normalFontHeight * a2, d2 = t5.currentValueOption.normalFontHeight * a2, v2 = t5.minValueOption.normalFontWidth * a2, p2 = t5.maxValueOption.normalFontWidth * a2, g2 = t5.targetValueOption.normalFontWidth * a2, b2 = t5.currentValueOption.normalFontWidth * a2, y2 = 0.05 * i4, w2 = h(r3 * ut), M2 = h(i4 * st), C2 = { x: n4 + i4 * (1 - st) / 2, y: e4 + r3 * (ut + (1 - ut) / 2), graphWidth: M2, graphHeight: w2, targetValuePoint: l, currentValuePoint: l, minValuePoint: l, maxValuePoint: l };
              return u2 && (s2 < (r3 - w2) / 2 && v2 < (i4 - M2) / 2 - y2 && (C2.minValuePoint = { x: C2.x - v2, y: C2.y + s2 / 3 }, C2.enoughShowMinLabel = true), c2 < (r3 - w2) / 2 && p2 < (i4 - M2) / 2 - y2 && (C2.maxValuePoint = { x: C2.x - p2, y: C2.y - w2 + c2 / 3 }, C2.enoughShowMaxLabel = true), (f2 < (r3 - w2) / 2 || f2 / 2 < w2) && g2 < (i4 - M2) / 2 - y2 - m(v2, p2) && (C2.targetValuePoint = { x: C2.x - g2 - m(v2, p2), y: l }, C2.enoughShowTargetLabel = true), (d2 < (r3 - w2) / 2 || d2 / 2 < w2) && b2 < (i4 - M2) / 2 - y2 && (C2.currentValuePoint = { x: C2.x + M2 + y2, y: l }, C2.enoughShowCurrentLabel = true)), C2;
            }
            function zn(t5, n4) {
              var e4, i4, r3 = t5.minValueOption.value, o2 = t5.maxValueOption.value, a2 = t5.ranges, u2 = P, s2 = n4.graphHeight / (o2 - r3), c2 = [];
              return a2.length > 0 && a2.forEach((function(t6) {
                e4 = t6.start, i4 = t6.end, c2.push({ start: n4.y - s2 * (e4 - r3), height: s2 * (i4 - e4), color: t6.color });
              })), c2.unshift({ start: n4.y, height: n4.graphHeight, color: u2 }), { paintRanges: c2, fillColor: u2, targetValueY: n4.y - s2 * (t5.targetValueOption.value - r3), currentValueY: n4.y - s2 * (t5.currentValueOption.value - r3) };
            }
            function Yn(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = a2.zoomFactor, w2 = n4.showLabel, M2 = n4.minValueOption, C2 = n4.maxValueOption, S2 = n4.currentValueOption, T2 = n4.targetValueOption, x2 = Vn(n4, e4, i4, r3, o2, a2), A2 = x2.graphWidth, I2 = x2.graphHeight;
              if (!(A2 <= 0 || I2 <= 0)) return u2 = { showTargetLabel: false, showCurrentLabel: false, showMinLabel: false, showMaxLabel: false }, s2 = x2.currentValuePoint, c2 = x2.targetValuePoint, f2 = x2.minValuePoint, l2 = x2.maxValuePoint, h2 = { x: x2.x, y: x2.y }, v2 = (d2 = zn(n4, x2)).paintRanges, p2 = S2.normalFontHeight * y2, g2 = T2.normalFontHeight * y2, m2 = d2.targetValueY, b2 = d2.currentValueY, t5.save(), v2.forEach((function(n5) {
                Yt(t5, h2.x, n5.start, A2, -n5.height, n5.color);
              })), jt(t5, h2.x - ($ - 1) * A2, m2, h2.x + A2, m2, nt, et, F), kt(t5, h2.x, b2, h2.x + A2 * $, b2, E, tt * I2), w2 && (t5.save(), t5.beginPath(), x2.enoughShowMinLabel && (_t(t5, f2.x, f2.y, M2.label, M2.fontAfterZoom, G, F), u2.showMinLabel = true), x2.enoughShowMaxLabel && (_t(t5, l2.x, l2.y, C2.label, C2.fontAfterZoom, G, F), u2.showMaxLabel = true), x2.enoughShowTargetLabel && !(m2 - i4 + g2 / 2 > o2 || m2 - i4 - ot < 0) && (_t(t5, c2.x, d2.targetValueY + T2.normalFontHeight * y2 / 3, T2.label, T2.fontAfterZoom, G, F), u2.showTargetLabel = true), x2.enoughShowCurrentLabel && !(b2 - i4 + p2 / 2 > o2 || b2 - i4 - ot < 0) && (_t(t5, s2.x, d2.currentValueY + S2.normalFontHeight * y2 / 3, S2.label, S2.fontAfterZoom, G, F), u2.showCurrentLabel = true), t5.restore()), t5.restore(), u2;
            }
            function Zn(t5, n4, e4, i4, r3, o2) {
              var a2 = o2.zoomFactor, u2 = t5.showLabel, s2 = t5.minValueOption.normalFontHeight * a2, c2 = t5.maxValueOption.normalFontHeight * a2, f2 = t5.targetValueOption.normalFontHeight * a2, d2 = t5.currentValueOption.normalFontHeight * a2, v2 = t5.minValueOption.normalFontWidth * a2, p2 = t5.maxValueOption.normalFontWidth * a2, b2 = t5.currentValueOption.normalFontWidth * a2, y2 = t5.targetValueOption.normalFontWidth * a2, w2 = 0.1 * g(i4, r3), M2 = h(r3 * st), C2 = h(i4 * ut), S2 = { x: n4 + i4 * (1 - ut) / 2, y: e4 + r3 * (1 - st) / 2, graphWidth: C2, graphHeight: M2, targetValuePoint: l, currentValuePoint: l, minValuePoint: l, maxValuePoint: l };
              return u2 && ((b2 < 3 * (i4 - C2) / 4 || b2 < C2) && d2 < (r3 - M2) / 2 - at && (S2.currentValuePoint = { x: l, y: S2.y - d2 / 2 }, S2.enoughShowCurrentLabel = true), (y2 < 3 * (i4 - C2) / 4 || y2 < C2) && f2 < (r3 - M2) / 2 - m(s2, c2) && (S2.targetValuePoint = { x: l, y: S2.y + M2 + m(s2, c2) + f2 / 4 * 3 }, S2.enoughShowTargetLabel = true), v2 < 3 * (i4 - C2) / 4 && s2 < (r3 - M2) / 2 - w2 && (S2.minValuePoint = { x: S2.x - v2 / 2, y: S2.y + M2 + s2 }, S2.enoughShowMinLabel = true), p2 < 3 * (i4 - C2) / 4 && c2 < (r3 - M2) / 2 - w2 && (S2.maxValuePoint = { x: S2.x + C2 - p2 / 2, y: S2.y + M2 + c2 }, S2.enoughShowMaxLabel = true)), S2;
            }
            function Wn(t5, n4) {
              var e4, i4, r3 = t5.minValueOption.value, o2 = t5.maxValueOption.value, a2 = t5.ranges, u2 = P, s2 = n4.graphWidth / (o2 - r3), c2 = [];
              return a2.length > 0 && a2.forEach((function(t6) {
                e4 = t6.start, i4 = t6.end, c2.push({ start: n4.x + s2 * (e4 - r3), width: s2 * (i4 - e4), color: t6.color || u2 });
              })), c2.unshift({ start: n4.x, width: n4.graphWidth, color: u2 }), { paintRanges: c2, fillColor: u2, targetValueX: n4.x + s2 * (t5.targetValueOption.value - r3), currentValueX: n4.x + s2 * (t5.currentValueOption.value - r3) };
            }
            function Qn(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2, g2, m2, b2, y2 = a2.zoomFactor, w2 = n4.showLabel, M2 = n4.minValueOption, C2 = n4.maxValueOption, S2 = n4.currentValueOption, T2 = n4.targetValueOption, x2 = Zn(n4, e4, i4, r3, o2, a2), A2 = x2.graphWidth, I2 = x2.graphHeight;
              if (!(A2 <= 0 || I2 <= 0)) return u2 = { showTargetLabel: false, showCurrentLabel: false, showMinLabel: false, showMaxLabel: false }, s2 = x2.currentValuePoint, c2 = x2.targetValuePoint, f2 = x2.minValuePoint, l2 = x2.maxValuePoint, h2 = { x: x2.x, y: x2.y }, v2 = (d2 = Wn(n4, x2)).paintRanges, p2 = S2.normalFontWidth * y2, g2 = T2.normalFontWidth * y2, m2 = d2.targetValueX, b2 = d2.currentValueX, t5.save(), v2.forEach((function(n5) {
                Yt(t5, n5.start, h2.y, n5.width, I2, n5.color);
              })), jt(t5, m2, h2.y, m2, h2.y + I2 * $, nt, et, F), Nt(t5, b2, h2.y + I2 - 1, b2, h2.y - I2 * ($ - 1) - 1, E, A2 * tt), w2 && (t5.save(), x2.enoughShowMinLabel && (_t(t5, f2.x, f2.y, M2.label, M2.fontAfterZoom, G, F), u2.showMinLabel = true), x2.enoughShowMaxLabel && (_t(t5, l2.x, l2.y, C2.label, C2.fontAfterZoom, G, F), u2.showMaxLabel = true), x2.enoughShowTargetLabel && !(m2 - e4 + g2 / 2 + rt > r3 || m2 - e4 - g2 / 2 - rt < 0) && (_t(t5, m2 - T2.normalFontWidth * y2 / 2, c2.y, T2.label, T2.fontAfterZoom, G, F), u2.showTargetLabel = true), x2.enoughShowCurrentLabel && !(b2 - e4 + p2 / 2 + rt > r3 || b2 - e4 - p2 / 2 - rt < 0) && (_t(t5, b2 - S2.normalFontWidth * y2 / 2, s2.y, S2.label, S2.fontAfterZoom, G, F), u2.showCurrentLabel = true), t5.restore()), t5.restore(), u2;
            }
            function Kn(t5, n4, e4, i4, r3, o2, a2) {
              t5.save(), t5.rect(e4, i4, r3, o2), t5.clip(), 0 === n4.gaugeType ? Hn(t5, n4, e4, i4, r3, o2, a2) : 1 === n4.gaugeType ? Yn(t5, n4, e4, i4, r3, o2, a2) : 2 === n4.gaugeType && Qn(t5, n4, e4, i4, r3, o2, a2), t5.restore();
            }
            function Jn(t5, n4, e4, i4, r3, o2, a2, u2) {
              var s2, c2, f2, l2, h2, d2, v2 = [], p2 = t5.length, g2 = 0, m2 = a2.fontPixelSize;
              if (o2 && (g2 = m2 + 3), 0 === p2) return v2;
              for (s2 = i4 / p2, c2 = t5[0].value, f2 = 1; f2 < p2; f2++) c2 = Math.max(c2, t5[f2].value);
              for (l2 = 0; l2 < p2; l2++) h2 = e4 + r3 - g2, (d2 = t5[l2].value / c2 * (r3 - g2)) < 0 && (d2 = 0), v2.push({ x: n4 + l2 * s2 + s2 * (1 - u2) / 2, textX: n4 + l2 * s2, y: h2 - d2, width: s2 * u2, textWidth: s2, height: d2, axis: t5[l2].axis });
              return v2;
            }
            function Xn(t5, n4, e4, i4) {
              t5.save(), t5.fillStyle = e4;
              for (var r3 = 0; r3 < n4.length; r3++) t5.fillRect(n4[r3].x, n4[r3].y, n4[r3].width, n4[r3].height);
              t5.restore();
            }
            function qn(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2;
              for (t5.save(), r3 = e4.fontPixelSize, o2 = ee(e4), t5.textAlign = "center", t5.fillStyle = i4, a2 = 0; a2 < n4.length; a2++) u2 = void 0, s2 = void 0, u2 = n4[a2].x + n4[a2].width / 2, s2 = n4[a2].y + n4[a2].height + 5 + r3, t5.save(), t5.font = o2, t5.beginPath(), t5.rect(n4[a2].textX, n4[a2].y + n4[a2].height + 1, n4[a2].textWidth, r3 + 3), t5.clip(), t5.textBaseline = "bottom", t5.fillText(n4[a2].axis, u2, s2), t5.restore();
              t5.restore();
            }
            function $n(t5, n4, e4, i4) {
              var r3, o2, a2, u2, s2, c2;
              if ("none" !== i4) {
                for (t5.save(), t5.lineWidth = 1, t5.strokeStyle = i4, t5.beginPath(), r3 = 0; r3 < n4.length; r3++) a2 = (o2 = n4[r3]).x, u2 = o2.y, s2 = o2.width, 0 !== (c2 = o2.height) && 0 !== s2 && (kt(t5, a2, u2, a2 + s2, u2), kt(t5, a2, u2 + c2, a2 + s2, u2 + c2), n4[r3 - 1] && n4[r3 - 1].height >= c2 && 1 === e4 || kt(t5, a2, u2, a2, u2 + c2), n4[r3 + 1] && n4[r3 + 1].height > c2 && 1 === e4 || kt(t5, a2 + s2, u2, a2 + s2, u2 + c2));
                t5.stroke(), t5.closePath(), t5.restore();
              }
            }
            function te(t5, n4, e4, i4, r3) {
              var o2, a2, u2, s2, c2, f2 = false;
              for (t5.save(), t5.font = r3, a2 = (e4 - 6) / (o2 = n4.length), u2 = 0, s2 = n4; u2 < s2.length; u2++) if (c2 = s2[u2], t5.measureText(c2.axis).width > a2) {
                f2 = true;
                break;
              }
              return t5.restore(), f2;
            }
            function ne(t5, n4, e4, i4, r3, o2, u2) {
              var s2, c2, f2, l2 = n4.barColor, h2 = n4.values, d2 = n4.paintLabel, v2 = n4.barWidth, p2 = n4.labelFontStyle, g2 = n4.afterZoomFontStyle, m2 = n4.edgeColor, b2 = n4.labelColor;
              a(p2) || (o2 < 3 * (s2 = g2.fontPixelSize) || te(t5, h2, r3, o2, ee(g2))) && (d2 = false), d2 && a(p2) && (c2 = Math.floor(o2 / 3 >= 12 ? 12 : Math.floor(o2 / 3)), g2.fontPixelSize = c2, g2.fontSize = c2 + "px", te(t5, h2, r3, o2, ee(g2)) && (d2 = false)), Xn(t5, f2 = Jn(h2, e4 + 3, i4 + 3, r3 - 6, o2 - 6, d2, g2, v2), l2, m2), $n(t5, f2, v2, m2), d2 && qn(t5, f2, g2, b2);
            }
            function ee(t5) {
              return "".concat(t5.fontStyle, " ").concat(t5.fontWeight, " ").concat(t5.fontSize, " ").concat(t5.fontFamily);
            }
            function ie(t5, n4, e4, i4, r3, o2, a2) {
              var u2, s2, c2, f2, l2, h2, d2, v2, p2;
              t5.save(), t5.rect(e4, i4, r3, o2), t5.clip(), u2 = n4.clipX, s2 = n4.clipY, c2 = n4.clipWidth, f2 = n4.clipHeight, l2 = n4.paintX, h2 = n4.paintY, d2 = n4.paintWidth, v2 = n4.paintHeight, p2 = n4.img, c2 > 0 && f2 > 0 && d2 > 0 && v2 > 0 && t5.drawImage(p2, u2, s2, c2, f2, l2, h2, d2, v2), t5.restore();
            }
            Object.defineProperty(n3, "__esModule", { value: true }), n3.SparklineExRenders = n3.SparklineRender = n3.Uzt = n3.Hzt = n3.zzt = n3.oCt = void 0, i3 = e3("./src/common/util/types.ts"), r2 = e3("./src/common/util/colorhelper.ts"), o = e3("./src/common/util/arrayhelper.ts"), a = i3.lt.ht, u = r2.ft.YGt, s = r2.ft._, c = o.Uf.hD, n3.oCt = {}, f = null, l = void 0, h = Math.floor, d = Math.PI, v = Math.sin, p = Math.cos, g = Math.min, m = Math.max, b = Math.round, y = Math.pow, w = Math.sqrt, M = Math.abs, C = Math.ceil, S = "undefined", T = "string", x = isNaN, A = parseFloat, I = Number.MAX_VALUE, k = /* @__PURE__ */ new Date(""), N = "#969696", j = "#CB0000", D = "#646464", _ = "#DCDCDC", O = "white", E = "black", R = "blue", L = "green", F = "grey", B = "red", P = "lightgrey", G = "left", U = "right", H = "center", V = "top", z = "bottom", Y = "middle", Z = "start", W = "px Arial", Q = "-", K = "+", J = "=", X = 0.05, q = 0.03, $ = 1.06, tt = 0.02, nt = 4, et = 5, it = 5, rt = 3, ot = 10, at = 8, ut = 0.8, st = 0.25, ct = 0.9, ft = 0.7, lt = 0.1, ht = 1 / 45 * d, dt = /* @__PURE__ */ (function() {
              function t5(t6) {
                this.x = t6.x, this.y = t6.y;
              }
              return t5;
            })(), vt = /* @__PURE__ */ (function() {
              function t5(t6) {
                this.x = t6.x, this.y = t6.y, this.width = t6.width, this.height = t6.height;
              }
              return t5;
            })(), pt = (function(t5) {
              function n4(n5) {
                var e4 = t5.call(this, xt(n5.x, n5.y)) || this;
                return e4.value = n5.value, e4;
              }
              return St(n4, t5), n4;
            })(dt), gt = "7ns", mt = "5ns", bt = "tukey", yt = "bowley", wt = "sigma3", n3.zzt = Hn, n3.Hzt = Yn, n3.Uzt = Qn, Mt = /* @__PURE__ */ (function() {
              function t5(t6, n4, e4, i4) {
                this.X = t6, this.Y = n4, this.Width = e4, this.Height = i4, this.Left = this.X, this.Right = this.Left + this.Width, this.Top = this.Y, this.Bottom = this.Y + this.Height;
              }
              return t5;
            })(), Ct = (function() {
              function t5() {
                this.Bzt = 2, this.Lzt = k, this.Fzt = k, this.Pzt = I, this.Gzt = -I;
              }
              return t5.prototype.paint = function(t6, n4, e4, i4, r3, o2) {
                var a2, u2, s2, c2 = this;
                c2.options = n4, c2.setting = n4.settings, a2 = n4.values, u2 = n4.dateValues, s2 = n4.zoomFactor, t6.save(), t6.rect(e4, i4, r3, o2), t6.clip(), t6.beginPath(), 0 === n4.sparklineType && c2.c6(t6, e4, i4, r3, o2, a2, u2, s2), c2.Vzt(t6, e4, i4, r3, o2, a2, u2, s2), c2.Yzt(t6, e4, i4, r3, o2, a2, u2, s2), t6.restore();
              }, t5.prototype.Zzt = function(t6) {
                return 0 === this.options.sparklineType ? 3 + this.Wzt(t6) + 1 : 3;
              }, t5.prototype.Qzt = function(t6, e4) {
                var i4, r3, a2, u2, s2, h2, d2, v2, p2, m2 = this.Kzt;
                if (m2) return m2;
                if (m2 = this.Kzt = [], i4 = t6.length, this.options.displayDateAxis) {
                  for (u2 = e4.length, h2 = [], (s2 = g(i4, u2)) > 0 && (h2 = e4.slice(0, s2)), h2.sort((function(t7, e5) {
                    return t7 === e5 ? 0 : (t7 === n3.oCt && (t7 = 0), e5 === n3.oCt && (e5 = 0), t7 - e5);
                  })), d2 = h2.length, v2 = void 0, p2 = void 0, r3 = 0; r3 < d2; r3++) if (typeof (v2 = h2[r3]) !== S && v2 !== f) {
                    for (p2 = c(e4, v2); o.Uf.OS(m2, p2); ) p2 = c(e4, v2, p2 + 1);
                    isNaN(v2) || (a2 = t6[p2]) !== l && a2 !== f && isNaN(a2) && a2 !== n3.oCt || m2.push(p2);
                  }
                } else for (r3 = 0; r3 < i4; r3++) typeof (a2 = t6[r3]) !== S && a2 !== f && isNaN(a2) && a2 !== n3.oCt || m2.push(r3);
                return m2;
              }, t5.prototype.Sl = function(t6, e4) {
                var i4 = e4[t6];
                return typeof i4 === S || i4 === f ? 1 === this.setting.options.displayEmptyCellsAs && (i4 = 0) : i4 === n3.oCt && (i4 = 0), i4;
              }, t5.prototype.c6 = function(t6, n4, e4, i4, r3, o2, a2, u2) {
                var s2, c2, l2, h2, d2, v2, p2, g2, m2, b2, y2, w2, M2, C2, T2, x2 = this, A2 = x2.Qzt(o2, a2), I2 = A2.length - 1;
                for (I2 < 0 && (I2 = 0), h2 = x2.setting.options, d2 = x2.linePos = [], y2 = h2.displayEmptyCellsAs, s2 = 0; s2 < I2; s2++) if (typeof (v2 = x2.Sl(A2[s2], o2)) !== S && v2 !== f) {
                  if (g2 = s2 + 1, typeof (p2 = x2.Sl(A2[g2], o2)) === S || p2 === f) {
                    if (1 === y2) p2 = 0;
                    else if (2 === y2) {
                      for (g2 = s2 + 2; g2 <= I2; g2++) if (typeof (w2 = o2[A2[g2]]) !== S && w2 !== f) {
                        p2 = w2;
                        break;
                      }
                    }
                  }
                  typeof p2 !== S && p2 !== f ? (m2 = x2.Jzt(A2[s2], { Width: i4, Height: r3 }, o2, a2, u2), b2 = x2.Jzt(A2[g2], { Width: i4, Height: r3 }, o2, a2, u2), M2 = m2.Width / 2, c2 = { X: m2.X + M2, Y: m2.Y + M2 }, l2 = { X: b2.X + M2, Y: b2.Y + M2 }, d2[s2] = { P1: c2, P2: l2 }) : s2++;
                }
                if ((C2 = d2.length) > 0) for (t6.strokeStyle = x2.options.getColor(h2.seriesColor), t6.lineCap = "round", t6.lineWidth = x2.Wzt(u2), s2 = 0; s2 < C2; s2++) (T2 = d2[s2]) && (t6.beginPath(), c2 = T2.P1, l2 = T2.P2, t6.moveTo(n4 + c2.X, e4 + c2.Y), t6.lineTo(n4 + l2.X, e4 + l2.Y), t6.stroke(), t6.closePath());
              }, t5.prototype.Xzt = function(t6, n4, e4) {
                var i4, r3, o2, a2 = this, u2 = a2.options, s2 = a2.setting.options, h2 = f, d2 = a2.Sl(t6, n4), v2 = a2.Qzt(n4, e4), p2 = v2.length, g2 = u2.getColor.bind(a2);
                return typeof d2 !== S && d2 !== f && (a2.Pzt !== I && a2.Gzt !== -I || a2.qzt(n4), d2 === a2.Pzt && s2.showLow && (h2 = g2(s2.lowMarkerColor)), d2 !== a2.Gzt || !s2.showHigh || typeof h2 !== S && h2 !== f || (h2 = g2(s2.highMarkerColor)), typeof h2 !== S && h2 !== f || (u2.displayDateAxis ? 0 === (i4 = c(v2, t6)) && s2.showFirst && (h2 = g2(s2.firstMarkerColor)) : 0 === t6 && s2.showFirst && (h2 = g2(s2.firstMarkerColor))), typeof h2 !== S && h2 !== f || (u2.displayDateAxis ? (r3 = c(v2, t6)) === p2 - 1 && s2.showLast && (h2 = g2(s2.lastMarkerColor)) : t6 === p2 - 1 && s2.showLast && (h2 = g2(s2.lastMarkerColor))), d2 < 0 && s2.showNegative && (typeof h2 === S || h2 === f) && (h2 = g2(s2.negativeColor)), typeof h2 !== S && h2 !== f || (0 === (o2 = u2.sparklineType) ? s2.showMarkers && (h2 = g2(s2.markersColor)) : (1 === o2 || 2 === o2) && (h2 = g2(s2.seriesColor)))), h2 === l || h2 === f ? "Transparent" : h2;
              }, t5.prototype.Vzt = function(t6, n4, e4, i4, r3, o2, a2, u2) {
                var s2, c2, f2, l2, v2, p2, g2, m2, b2, y2, w2 = this, M2 = { Width: i4, Height: r3 }, C2 = w2.Qzt(o2, a2), S2 = C2.length, T2 = w2.options.sparklineType;
                for (y2 = 0; y2 < S2; y2++) s2 = C2[y2], c2 = w2.Xzt(s2, o2, a2), f2 = w2.Jzt(s2, M2, o2, a2, u2), t6.fillStyle !== c2 && (t6.fillStyle = c2), 0 === T2 ? (t6.save(), l2 = n4 + f2.X + f2.Width / 2, v2 = e4 + f2.Y + f2.Height / 2, t6.translate(l2, v2), t6.rotate(45 * d / 180), t6.fillRect(0 - f2.Width / 2, 0 - f2.Height / 2, f2.Width, f2.Height), t6.restore()) : (p2 = n4 + f2.X + f2.Width / 4, p2 = h(p2), g2 = e4 + f2.Y, m2 = f2.Width / 2, b2 = f2.Height, t6.fillRect(p2, g2, m2, b2));
              }, t5.prototype.Yzt = function(t6, n4, e4, i4, r3, o2, a2, u2) {
                var s2, c2, f2, l2, d2, v2, p2, g2 = this, m2 = g2.setting && g2.setting.options;
                m2 && m2.displayXAxis && g2.$zt(o2, a2) && (s2 = { Width: i4, Height: r3 }, c2 = g2.Zzt(u2), f2 = s2.Width - g2.Zzt(u2), d2 = l2 = h(g2.tVt(s2, o2, u2)) + 0.5, v2 = g2.options.getColor(m2.axisColor), (p2 = u2) < 1 && (p2 = 1), t6.strokeStyle !== v2 && (t6.strokeStyle = v2), t6.lineWidth !== p2 && (t6.lineWidth = p2), t6.beginPath(), t6.moveTo(n4 + c2, e4 + l2), t6.lineTo(n4 + f2, e4 + d2), t6.stroke());
              }, t5.prototype.nVt = function(t6) {
                var n4, e4 = this.eVt(t6);
                return e4 === -I || (n4 = this.iVt(t6)) === I || (e4 === n4 || e4 * n4 <= 0);
              }, t5.prototype.$zt = function(t6, n4) {
                var e4, i4, r3, o2, a2, u2 = this.nVt(t6);
                if (2 !== this.options.sparklineType) return u2;
                if (i4 = (e4 = this.Qzt(t6, n4)).length, !u2 && i4 > 0) {
                  for (a2 = 0; a2 < i4; a2++) if (typeof (o2 = t6[r3 = e4[a2]]) !== S && o2 !== f) return true;
                }
                return u2;
              }, t5.prototype.rVt = function(t6, n4) {
                var e4 = this.Lzt;
                return isNaN(e4 && e4.valueOf()) && this.oVt(t6, n4), this.Lzt;
              }, t5.prototype.aVt = function(t6, n4) {
                var e4 = this.Fzt;
                return isNaN(e4 && e4.valueOf()) && this.oVt(t6, n4), this.Fzt;
              }, t5.prototype.oVt = function(t6, n4) {
                var e4, i4, r3, o2, a2 = this, u2 = new Date(0, 0, 0), s2 = I, c2 = a2.Qzt(t6, n4), l2 = c2.length;
                for (o2 = 0; o2 < l2; o2++) i4 = n4[e4 = c2[o2]], isNaN(i4) || (r3 = a2.Sl(e4, t6)) !== f && typeof r3 === S || isNaN(r3) || typeof i4 !== S && i4 !== f && (i4 > u2 && (u2 = i4), i4 < s2 && (s2 = i4));
                a2.Fzt = u2, a2.Lzt = s2;
              }, t5.prototype.uVt = function(t6, n4, e4, i4) {
                var r3, o2, a2, u2, s2, c2, f2, l2, h2 = this, d2 = h2.rVt(n4, e4), v2 = h2.aVt(n4, e4), p2 = [], g2 = h2.Qzt(n4, e4), m2 = g2.length;
                for (r3 = 0; r3 < m2; r3++) (o2 = e4[a2 = g2[r3]]) && !isNaN(o2) && p2.push(o2);
                if (p2.sort((function(t7, n5) {
                  return t7 - n5;
                })), (u2 = p2.length) > 1 && d2 !== v2) {
                  for (s2 = I, c2 = 0, f2 = void 0, r3 = 1; r3 < u2; r3++) (o2 = (f2 = p2[r3]) - p2[r3 - 1]) < s2 && o2 > 0 && (s2 = o2), c2 += o2;
                  return (l2 = (t6.Width - h2.Zzt(i4) - h2.Zzt(i4)) * s2 / c2 / 2) < 2 && (l2 = 2), l2;
                }
                return (t6.Width - h2.Zzt(i4) - h2.Zzt(i4)) / 2;
              }, t5.prototype.sVt = function(t6, n4, e4, i4) {
                var r3, o2 = this;
                return o2.options.displayDateAxis ? o2.uVt(t6, n4, e4, i4) : (r3 = o2.Qzt(n4, e4).length, (t6.Width - o2.Zzt(i4) - o2.Zzt(i4)) / r3);
              }, t5.prototype.cVt = function(t6, n4, e4, i4, r3) {
                var o2, a2, u2, s2, f2, l2, d2, v2, p2 = this, g2 = p2.Zzt(r3);
                return p2.options.displayDateAxis ? (o2 = p2.sVt(t6, e4, i4, r3), (a2 = p2.aVt(e4, i4)) === (u2 = p2.rVt(e4, i4)) ? g2 + o2 / 2 : (s2 = i4[n4]) ? (f2 = t6.Width - g2 - p2.Zzt(r3), f2 -= o2, l2 = a2.valueOf() - u2.valueOf(), g2 + h((s2.valueOf() - u2.valueOf()) / l2 * f2)) : 0) : (o2 = p2.sVt(t6, e4, i4, r3), d2 = c(p2.Qzt(e4, i4), n4), h(v2 = g2 + o2 * d2));
              }, t5.prototype.fVt = function(t6, n4) {
                var e4, i4 = this, r3 = t6.Width - i4.Zzt(n4) - i4.Zzt(n4);
                return r3 = m(r3, 0), e4 = t6.Height - i4.Zzt(n4) - i4.Zzt(n4), { Width: r3, Height: e4 = m(e4, 0) };
              }, t5.prototype.qzt = function(t6) {
                var n4, e4, i4 = this, r3 = t6.length;
                for (e4 = 0; e4 < r3; e4++) typeof (n4 = t6[e4]) !== S && n4 !== f && ("number" != typeof n4 && (n4 = 0), n4 < i4.Pzt && (i4.Pzt = n4), n4 > i4.Gzt && (i4.Gzt = n4));
              }, t5.prototype.eVt = function(t6) {
                var n4, e4, i4 = this;
                return i4.Gzt !== -I && i4.Gzt || i4.qzt(t6), 0 === (e4 = (n4 = i4.setting.options).maxAxisType) ? i4.Gzt : 1 === e4 ? n4.groupMaxValue : 2 === e4 ? n4.manualMax : i4.Gzt;
              }, t5.prototype.iVt = function(t6) {
                var n4, e4, i4 = this;
                return i4.Pzt !== I && i4.Pzt || i4.qzt(t6), 0 === (e4 = (n4 = i4.setting.options).minAxisType) ? i4.Pzt : 1 === e4 ? n4.groupMinValue : 2 === e4 ? n4.manualMin : void 0;
              }, t5.prototype.lVt = function(t6, n4, e4, i4) {
                var r3 = this.fVt(t6, i4), o2 = this.eVt(e4), a2 = this.iVt(e4), u2 = o2 - a2, s2, c2;
                if (o2 === a2) {
                  if (0 === o2) return 0;
                  u2 = M(o2);
                }
                return (s2 = e4[n4]) || (s2 = 0), s2 * (c2 = r3.Height / u2);
              }, t5.prototype.hVt = function(t6, n4, e4, i4) {
                var r3, o2, a2, u2 = this, s2 = u2.options.sparklineType;
                if (0 === s2) return u2.lVt(t6, n4, e4, i4);
                if (1 === s2) {
                  if (r3 = e4[n4], 1 === u2.setting.options.displayEmptyCellsAs && (typeof r3 === S || r3 === f)) return 0;
                  if ((o2 = u2.lVt(t6, n4, e4, i4)) > -u2.Bzt && o2 < u2.Bzt) {
                    if (r3 > 0) return o2 + u2.Bzt;
                    if (r3 < 0) return o2 - u2.Bzt;
                  }
                  return o2;
                }
                return 2 === s2 ? typeof (r3 = e4[n4]) === S || r3 === f || 0 === r3 || isNaN(r3) ? 0 : (a2 = u2.fVt(t6, i4), r3 >= 0 ? a2.Height / 2 : -a2.Height / 2) : void 0;
              }, t5.prototype.dVt = function(t6, n4, e4) {
                var i4, r3, o2 = this, a2 = o2.fVt(t6, e4), u2 = o2.eVt(n4), s2 = o2.iVt(n4);
                if (u2 === -I || s2 === I) return t6.Height / 2;
                if (i4 = u2 - s2, u2 === s2) {
                  if (0 === u2) return t6.Height / 2;
                  i4 = u2, u2 < 0 && (u2 = 0);
                }
                return r3 = a2.Height / i4, o2.Zzt(e4) + u2 * r3;
              }, t5.prototype.tVt = function(t6, n4, e4) {
                return 2 === this.options.sparklineType ? t6.Height / 2 : this.dVt(t6, n4, e4);
              }, t5.prototype.vVt = function(t6, n4, e4, i4) {
                var r3, o2, a2, u2 = this, s2 = u2.fVt(t6, i4), c2 = u2.eVt(e4), l2 = u2.iVt(e4), h2 = c2 - l2;
                if (c2 === l2) {
                  if (0 === c2) return 0;
                  h2 = c2;
                }
                return r3 = s2.Height / h2, typeof (o2 = u2.Sl(n4, e4)) !== S && o2 !== f || (o2 = 0), c2 !== l2 && c2 * l2 > 0 ? (a2 = 0, a2 = o2 >= 0 ? (o2 - l2) * r3 : (o2 - c2) * r3) : o2 * r3;
              }, t5.prototype.mVt = function(t6, n4, e4, i4) {
                var r3, o2, a2, u2 = this, s2 = u2.options.sparklineType;
                return 0 === s2 ? u2.vVt(t6, n4, e4, i4) : 1 === s2 ? (r3 = u2.vVt(t6, n4, e4, i4)) > -(o2 = u2.Bzt) && r3 < o2 && (typeof (a2 = u2.Sl(n4, e4)) !== S && a2 !== f || (a2 = 0), 0 !== a2) ? a2 > 0 ? r3 + o2 : r3 - o2 : r3 : 2 === s2 ? u2.hVt(t6, n4, e4, i4) : void 0;
              }, t5.prototype.gVt = function(t6, n4, e4, i4, r3) {
                var o2, a2, u2, s2, c2, f2, l2, d2, v2, p2 = this, g2 = p2.sVt(n4, e4, i4, r3), b2 = p2.cVt(n4, t6, e4, i4, r3);
                return g2 < 0 && (g2 = 0), (g2 = h(g2)) % 2 == 1 && (g2 += 1), o2 = p2.hVt(n4, t6, e4, r3), a2 = p2.tVt(n4, e4, r3), u2 = p2.eVt(e4), s2 = p2.iVt(e4), c2 = 0, u2 < 0 && s2 < 0 ? c2 = m(p2.Zzt(r3), a2) : (c2 = a2, o2 >= 0 && (c2 = a2 - o2)), f2 = p2.mVt(n4, t6, e4, r3), l2 = new Mt(b2, c2, g2, M(f2)), 0 !== o2 && (d2 = p2.Zzt(r3), l2.Y < d2 && l2.Bottom < d2 + 1 ? l2.Height = h(l2.Height + 1) : (v2 = n4.Height - p2.Zzt(r3), l2.Bottom > v2 && l2.Y > v2 - 1 && (l2.Y = v2 - f2, l2.Height = f2))), l2;
              }, t5.prototype.Wzt = function(t6) {
                var n4 = this.setting.options.lineWeight * t6;
                return n4 < 1 && (n4 = 1), n4;
              }, t5.prototype.Jzt = function(t6, n4, e4, i4, r3) {
                var o2, a2, u2, s2, c2, l2 = this, h2 = l2.Wzt(r3);
                return ++h2 < 2 && (h2 = 2), o2 = l2.gVt(t6, n4, e4, i4, r3), 0 === l2.options.sparklineType && (o2.X = o2.X + (o2.Width - h2) / 2, typeof (a2 = l2.Sl(t6, e4)) !== S && a2 !== f ? (a2 >= 0 ? o2.Y -= h2 / 2 : o2.Y = o2.Bottom - h2 / 2, o2.Width = h2, o2.Height = h2) : (o2.Width = 0, o2.Height = 0)), l2.setting.options.rightToLeft && (u2 = o2.X, c2 = (s2 = n4.Width - u2) - o2.Width, o2 = new Mt(c2, o2.Y, o2.Width, o2.Height)), o2;
              }, t5;
            })(), n3.SparklineRender = Ct, n3.SparklineExRenders = { PIESPARKLINE: Kt, AREASPARKLINE: $t, SCATTERSPARKLINE: nn, BULLETSPARKLINE: un, SPREADSPARKLINE: sn, STACKEDSPARKLINE: hn, HBARSPARKLINE: bn, VBARSPARKLINE: yn, VARISPARKLINE: wn, LOLLIPOPVARISPARKLINE: Mn, BOXPLOTSPARKLINE: Cn, CASCADESPARKLINE: In, PARETOSPARKLINE: kn, MONTHSPARKLINE: Rn, YEARSPARKLINE: Fn, GAUGEKPISPARKLINE: Kn, HISTOGRAMSPARKLINE: ne, IMAGESPARKLINE: ie };
          }, canvas: function(t4) {
            t4.exports = canvas;
          } }, i2 = {};
          function r(t4) {
            var n3, o = i2[t4];
            return void 0 !== o ? o.exports : (n3 = i2[t4] = { exports: {} }, e2[t4].call(n3.exports, n3, n3.exports, r), n3.exports);
          }
          r.g = (function() {
            if ("object" == typeof globalThis) return globalThis;
            try {
              return this || new Function("return this")();
            } catch (t4) {
              if ("object" == typeof window) return window;
            }
          })(), t3 = {}, (function() {
            var n3, e3, i3, o, a, u = t3;
            Object.defineProperty(u, "__esModule", { value: true }), u.Slicers = u.Sparklines = u.Formatter = u.Commands = u.Common = void 0, n3 = r("./src/common/common.entry.ts"), u.Common = n3, e3 = r("./src/plugins/commands/commands.entry.ts"), u.Commands = e3, i3 = r("./src/plugins/formatter/formatter.entry.ts"), u.Formatter = i3, o = r("./src/plugins/sparkline/sparkline.entry.ts"), u.Sparklines = o, a = r("./src/plugins/slicer/slicer.entry.ts"), u.Slicers = a;
          })(), (n2 = void 0 === n2 ? {} : n2).Spread = t3;
        })(), t2.exports = n2.Spread;
      }, "./node_modules_local/@spreadjs/js-sheets-common/index.js": function(t2, n2, e2) {
        t2.exports = e2("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js");
      }, Bindings: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Bindings;
      }, CalcEngine: function(t2) {
        "use strict";
        t2.exports = GC.Spread.CalcEngine;
      }, CellTypes: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.CellTypes;
      }, Common: function(t2) {
        "use strict";
        t2.exports = GC.Spread;
      }, ConditionalFormatting: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.ConditionalFormatting;
      }, ContextMenu: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.ContextMenu;
      }, Core: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets;
      }, DataManager: function(t2) {
        "use strict";
        t2.exports = GC.Data;
      }, Filters: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Filter;
      }, FormulaTextBox: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.FormulaTextBox;
      }, Outlines: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Outlines;
      }, SheetsCalc: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.CalcEngine;
      }, Sparkline: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Sparklines;
      }, Tables: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Tables;
      }, Touch: function(t2) {
        "use strict";
        t2.exports = GC.Spread.Sheets.Touch;
      }, canvas: function(t2) {
        "use strict";
        t2.exports = canvas;
      } }, e = {};
      function i(t2) {
        var r, o = e[t2];
        return void 0 !== o ? o.exports : (r = e[t2] = { exports: {} }, n[t2].call(r.exports, r, r.exports, i), r.exports);
      }
      i.n = function(t2) {
        var n2 = t2 && t2.__esModule ? function() {
          return t2.default;
        } : function() {
          return t2;
        };
        return i.d(n2, { a: n2 }), n2;
      }, i.d = function(t2, n2) {
        for (var e2 in n2) i.o(n2, e2) && !i.o(t2, e2) && Object.defineProperty(t2, e2, { enumerable: true, get: n2[e2] });
      }, i.o = function(t2, n2) {
        return Object.prototype.hasOwnProperty.call(t2, n2);
      }, i.r = function(t2) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
      }, t = i("./all.entry.js"), (GC = void 0 === GC ? {} : GC).Spread = t;
    })(), (function(t) {
      "object" == typeof module && "object" == typeof module.exports ? module.exports = t : "function" == typeof define && define.amd ? define("@mescius/spread-sheets", [], (function() {
        return t;
      })) : "object" == typeof exports && (exports.Spread = t.Spread);
    })(GC || {});
  }
});

// node_modules/@mescius/spread-sheets/index.js
var require_spread_sheets = __commonJS({
  "node_modules/@mescius/spread-sheets/index.js"(exports, module) {
    module.exports = require_gc_spread_sheets_all_min();
  }
});

export {
  require_spread_sheets
};
/*! Bundled license information:

@mescius/spread-sheets/dist/gc.spread.sheets.all.min.js:
  (*!
   * 
   * SpreadJS Library 18.2.3
   *
   * Copyright(c) MESCIUS inc.  All rights reserved.
   *
   * Licensed under the SpreadJS Commercial License.
   * us.sales@mescius.com
   * https://developer.mescius.com/spreadjs
   *
   *)
*/
//# sourceMappingURL=chunk-3C26ODPQ.js.map
